@revkeen/sdk 1.20260414.869 → 1.20260414.883

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 (2272) hide show
  1. package/README.md +137 -0
  2. package/dist/auth.d.mts +17 -0
  3. package/dist/auth.d.ts +17 -0
  4. package/dist/auth.js +111 -0
  5. package/dist/auth.js.map +1 -0
  6. package/dist/auth.mjs +7 -0
  7. package/dist/auth.mjs.map +1 -0
  8. package/dist/chunk-R2LGIZGP.mjs +179 -0
  9. package/dist/chunk-R2LGIZGP.mjs.map +1 -0
  10. package/dist/chunk-VKMDZSYJ.mjs +102 -0
  11. package/dist/chunk-VKMDZSYJ.mjs.map +1 -0
  12. package/dist/index.d.mts +9593 -0
  13. package/dist/index.d.ts +9593 -0
  14. package/dist/index.js +1946 -0
  15. package/dist/index.js.map +1 -0
  16. package/dist/index.mjs +1588 -0
  17. package/dist/index.mjs.map +1 -0
  18. package/{webhooks.js → dist/webhooks.d.mts} +86 -154
  19. package/{webhooks.d.ts → dist/webhooks.d.ts} +14 -14
  20. package/dist/webhooks.js +209 -0
  21. package/dist/webhooks.js.map +1 -0
  22. package/dist/webhooks.mjs +21 -0
  23. package/dist/webhooks.mjs.map +1 -0
  24. package/package.json +36 -33
  25. package/BaseClient.d.ts +0 -41
  26. package/BaseClient.js +0 -29
  27. package/BaseClient.ts +0 -83
  28. package/Client.d.ts +0 -114
  29. package/Client.js +0 -144
  30. package/Client.ts +0 -222
  31. package/api/errors/BadRequestError.d.ts +0 -6
  32. package/api/errors/BadRequestError.js +0 -18
  33. package/api/errors/BadRequestError.ts +0 -21
  34. package/api/errors/ConflictError.d.ts +0 -6
  35. package/api/errors/ConflictError.js +0 -18
  36. package/api/errors/ConflictError.ts +0 -21
  37. package/api/errors/ForbiddenError.d.ts +0 -6
  38. package/api/errors/ForbiddenError.js +0 -18
  39. package/api/errors/ForbiddenError.ts +0 -21
  40. package/api/errors/InternalServerError.d.ts +0 -6
  41. package/api/errors/InternalServerError.js +0 -18
  42. package/api/errors/InternalServerError.ts +0 -21
  43. package/api/errors/NotFoundError.d.ts +0 -6
  44. package/api/errors/NotFoundError.js +0 -18
  45. package/api/errors/NotFoundError.ts +0 -21
  46. package/api/errors/UnauthorizedError.d.ts +0 -6
  47. package/api/errors/UnauthorizedError.js +0 -18
  48. package/api/errors/UnauthorizedError.ts +0 -21
  49. package/api/errors/UnprocessableEntityError.d.ts +0 -6
  50. package/api/errors/UnprocessableEntityError.js +0 -18
  51. package/api/errors/UnprocessableEntityError.ts +0 -21
  52. package/api/errors/index.d.ts +0 -8
  53. package/api/errors/index.js +0 -8
  54. package/api/errors/index.ts +0 -7
  55. package/api/index.d.ts +0 -4
  56. package/api/index.js +0 -4
  57. package/api/index.ts +0 -3
  58. package/api/resources/analytics/client/Client.d.ts +0 -176
  59. package/api/resources/analytics/client/Client.js +0 -619
  60. package/api/resources/analytics/client/Client.ts +0 -866
  61. package/api/resources/analytics/client/index.d.ts +0 -2
  62. package/api/resources/analytics/client/index.js +0 -2
  63. package/api/resources/analytics/client/index.ts +0 -1
  64. package/api/resources/analytics/client/requests/AnalyticsCheckoutAbandonmentGetSummaryRequest.d.ts +0 -14
  65. package/api/resources/analytics/client/requests/AnalyticsCheckoutAbandonmentGetSummaryRequest.js +0 -3
  66. package/api/resources/analytics/client/requests/AnalyticsCheckoutAbandonmentGetSummaryRequest.ts +0 -15
  67. package/api/resources/analytics/client/requests/AnalyticsCheckoutAbandonmentListRequest.d.ts +0 -16
  68. package/api/resources/analytics/client/requests/AnalyticsCheckoutAbandonmentListRequest.js +0 -3
  69. package/api/resources/analytics/client/requests/AnalyticsCheckoutAbandonmentListRequest.ts +0 -18
  70. package/api/resources/analytics/client/requests/AnalyticsCheckoutGetFunnelRequest.d.ts +0 -14
  71. package/api/resources/analytics/client/requests/AnalyticsCheckoutGetFunnelRequest.js +0 -3
  72. package/api/resources/analytics/client/requests/AnalyticsCheckoutGetFunnelRequest.ts +0 -15
  73. package/api/resources/analytics/client/requests/AnalyticsCheckoutWinbackListRequest.d.ts +0 -18
  74. package/api/resources/analytics/client/requests/AnalyticsCheckoutWinbackListRequest.js +0 -3
  75. package/api/resources/analytics/client/requests/AnalyticsCheckoutWinbackListRequest.ts +0 -20
  76. package/api/resources/analytics/client/requests/AnalyticsCollectionsGetDsoRequest.d.ts +0 -14
  77. package/api/resources/analytics/client/requests/AnalyticsCollectionsGetDsoRequest.js +0 -3
  78. package/api/resources/analytics/client/requests/AnalyticsCollectionsGetDsoRequest.ts +0 -15
  79. package/api/resources/analytics/client/requests/AnalyticsCustomersGetLtvRequest.d.ts +0 -11
  80. package/api/resources/analytics/client/requests/AnalyticsCustomersGetLtvRequest.js +0 -3
  81. package/api/resources/analytics/client/requests/AnalyticsCustomersGetLtvRequest.ts +0 -12
  82. package/api/resources/analytics/client/requests/AnalyticsCustomersRetrieveRequest.d.ts +0 -11
  83. package/api/resources/analytics/client/requests/AnalyticsCustomersRetrieveRequest.js +0 -3
  84. package/api/resources/analytics/client/requests/AnalyticsCustomersRetrieveRequest.ts +0 -12
  85. package/api/resources/analytics/client/requests/AnalyticsInvoicesGetArAgingRequest.d.ts +0 -11
  86. package/api/resources/analytics/client/requests/AnalyticsInvoicesGetArAgingRequest.js +0 -3
  87. package/api/resources/analytics/client/requests/AnalyticsInvoicesGetArAgingRequest.ts +0 -12
  88. package/api/resources/analytics/client/requests/AnalyticsPaymentLinksGetConversionRequest.d.ts +0 -14
  89. package/api/resources/analytics/client/requests/AnalyticsPaymentLinksGetConversionRequest.js +0 -3
  90. package/api/resources/analytics/client/requests/AnalyticsPaymentLinksGetConversionRequest.ts +0 -15
  91. package/api/resources/analytics/client/requests/AnalyticsRevenueGetMrrSummaryRequest.d.ts +0 -11
  92. package/api/resources/analytics/client/requests/AnalyticsRevenueGetMrrSummaryRequest.js +0 -3
  93. package/api/resources/analytics/client/requests/AnalyticsRevenueGetMrrSummaryRequest.ts +0 -12
  94. package/api/resources/analytics/client/requests/AnalyticsRevenueGetTimeSeriesRequest.d.ts +0 -17
  95. package/api/resources/analytics/client/requests/AnalyticsRevenueGetTimeSeriesRequest.js +0 -3
  96. package/api/resources/analytics/client/requests/AnalyticsRevenueGetTimeSeriesRequest.ts +0 -19
  97. package/api/resources/analytics/client/requests/index.d.ts +0 -12
  98. package/api/resources/analytics/client/requests/index.js +0 -2
  99. package/api/resources/analytics/client/requests/index.ts +0 -11
  100. package/api/resources/analytics/index.d.ts +0 -3
  101. package/api/resources/analytics/index.js +0 -3
  102. package/api/resources/analytics/index.ts +0 -2
  103. package/api/resources/analytics/types/AnalyticsCheckoutAbandonmentGetSummaryResponse.d.ts +0 -22
  104. package/api/resources/analytics/types/AnalyticsCheckoutAbandonmentGetSummaryResponse.js +0 -3
  105. package/api/resources/analytics/types/AnalyticsCheckoutAbandonmentGetSummaryResponse.ts +0 -25
  106. package/api/resources/analytics/types/AnalyticsCheckoutAbandonmentListRequestSeverity.d.ts +0 -9
  107. package/api/resources/analytics/types/AnalyticsCheckoutAbandonmentListRequestSeverity.js +0 -9
  108. package/api/resources/analytics/types/AnalyticsCheckoutAbandonmentListRequestSeverity.ts +0 -11
  109. package/api/resources/analytics/types/AnalyticsCheckoutAbandonmentListRequestStatus.d.ts +0 -9
  110. package/api/resources/analytics/types/AnalyticsCheckoutAbandonmentListRequestStatus.js +0 -9
  111. package/api/resources/analytics/types/AnalyticsCheckoutAbandonmentListRequestStatus.ts +0 -11
  112. package/api/resources/analytics/types/AnalyticsCheckoutAbandonmentListResponse.d.ts +0 -31
  113. package/api/resources/analytics/types/AnalyticsCheckoutAbandonmentListResponse.js +0 -3
  114. package/api/resources/analytics/types/AnalyticsCheckoutAbandonmentListResponse.ts +0 -34
  115. package/api/resources/analytics/types/AnalyticsCheckoutGetFunnelResponse.d.ts +0 -25
  116. package/api/resources/analytics/types/AnalyticsCheckoutGetFunnelResponse.js +0 -3
  117. package/api/resources/analytics/types/AnalyticsCheckoutGetFunnelResponse.ts +0 -28
  118. package/api/resources/analytics/types/AnalyticsCheckoutWinbackGetSummaryResponse.d.ts +0 -23
  119. package/api/resources/analytics/types/AnalyticsCheckoutWinbackGetSummaryResponse.js +0 -3
  120. package/api/resources/analytics/types/AnalyticsCheckoutWinbackGetSummaryResponse.ts +0 -26
  121. package/api/resources/analytics/types/AnalyticsCheckoutWinbackListRequestStatus.d.ts +0 -10
  122. package/api/resources/analytics/types/AnalyticsCheckoutWinbackListRequestStatus.js +0 -10
  123. package/api/resources/analytics/types/AnalyticsCheckoutWinbackListRequestStatus.ts +0 -12
  124. package/api/resources/analytics/types/AnalyticsCheckoutWinbackListRequestType.d.ts +0 -8
  125. package/api/resources/analytics/types/AnalyticsCheckoutWinbackListRequestType.js +0 -8
  126. package/api/resources/analytics/types/AnalyticsCheckoutWinbackListRequestType.ts +0 -10
  127. package/api/resources/analytics/types/AnalyticsCheckoutWinbackListResponse.d.ts +0 -45
  128. package/api/resources/analytics/types/AnalyticsCheckoutWinbackListResponse.js +0 -23
  129. package/api/resources/analytics/types/AnalyticsCheckoutWinbackListResponse.ts +0 -49
  130. package/api/resources/analytics/types/AnalyticsCollectionsGetDsoResponse.d.ts +0 -16
  131. package/api/resources/analytics/types/AnalyticsCollectionsGetDsoResponse.js +0 -10
  132. package/api/resources/analytics/types/AnalyticsCollectionsGetDsoResponse.ts +0 -18
  133. package/api/resources/analytics/types/AnalyticsCustomersGetLtvResponse.d.ts +0 -19
  134. package/api/resources/analytics/types/AnalyticsCustomersGetLtvResponse.js +0 -3
  135. package/api/resources/analytics/types/AnalyticsCustomersGetLtvResponse.ts +0 -22
  136. package/api/resources/analytics/types/AnalyticsCustomersRetrieveResponse.d.ts +0 -10
  137. package/api/resources/analytics/types/AnalyticsCustomersRetrieveResponse.js +0 -3
  138. package/api/resources/analytics/types/AnalyticsCustomersRetrieveResponse.ts +0 -11
  139. package/api/resources/analytics/types/AnalyticsInvoicesGetArAgingResponse.d.ts +0 -17
  140. package/api/resources/analytics/types/AnalyticsInvoicesGetArAgingResponse.js +0 -3
  141. package/api/resources/analytics/types/AnalyticsInvoicesGetArAgingResponse.ts +0 -20
  142. package/api/resources/analytics/types/AnalyticsPaymentLinksGetConversionResponse.d.ts +0 -9
  143. package/api/resources/analytics/types/AnalyticsPaymentLinksGetConversionResponse.js +0 -3
  144. package/api/resources/analytics/types/AnalyticsPaymentLinksGetConversionResponse.ts +0 -10
  145. package/api/resources/analytics/types/AnalyticsRevenueGetMrrSummaryResponse.d.ts +0 -11
  146. package/api/resources/analytics/types/AnalyticsRevenueGetMrrSummaryResponse.js +0 -3
  147. package/api/resources/analytics/types/AnalyticsRevenueGetMrrSummaryResponse.ts +0 -12
  148. package/api/resources/analytics/types/AnalyticsRevenueGetTimeSeriesRequestGranularity.d.ts +0 -10
  149. package/api/resources/analytics/types/AnalyticsRevenueGetTimeSeriesRequestGranularity.js +0 -10
  150. package/api/resources/analytics/types/AnalyticsRevenueGetTimeSeriesRequestGranularity.ts +0 -12
  151. package/api/resources/analytics/types/AnalyticsRevenueGetTimeSeriesResponse.d.ts +0 -19
  152. package/api/resources/analytics/types/AnalyticsRevenueGetTimeSeriesResponse.js +0 -3
  153. package/api/resources/analytics/types/AnalyticsRevenueGetTimeSeriesResponse.ts +0 -22
  154. package/api/resources/analytics/types/index.d.ts +0 -18
  155. package/api/resources/analytics/types/index.js +0 -18
  156. package/api/resources/analytics/types/index.ts +0 -17
  157. package/api/resources/billing/client/Client.d.ts +0 -61
  158. package/api/resources/billing/client/Client.js +0 -156
  159. package/api/resources/billing/client/Client.ts +0 -213
  160. package/api/resources/billing/client/index.d.ts +0 -2
  161. package/api/resources/billing/client/index.js +0 -2
  162. package/api/resources/billing/client/index.ts +0 -1
  163. package/api/resources/billing/client/requests/BillingGeneratePreviewRequest.d.ts +0 -50
  164. package/api/resources/billing/client/requests/BillingGeneratePreviewRequest.js +0 -27
  165. package/api/resources/billing/client/requests/BillingGeneratePreviewRequest.ts +0 -52
  166. package/api/resources/billing/client/requests/index.d.ts +0 -2
  167. package/api/resources/billing/client/requests/index.js +0 -2
  168. package/api/resources/billing/client/requests/index.ts +0 -1
  169. package/api/resources/billing/index.d.ts +0 -2
  170. package/api/resources/billing/index.js +0 -2
  171. package/api/resources/billing/index.ts +0 -1
  172. package/api/resources/charges/client/Client.d.ts +0 -110
  173. package/api/resources/charges/client/Client.js +0 -317
  174. package/api/resources/charges/client/Client.ts +0 -412
  175. package/api/resources/charges/client/index.d.ts +0 -2
  176. package/api/resources/charges/client/index.js +0 -2
  177. package/api/resources/charges/client/index.ts +0 -1
  178. package/api/resources/charges/client/requests/ChargesCaptureRequest.d.ts +0 -11
  179. package/api/resources/charges/client/requests/ChargesCaptureRequest.js +0 -3
  180. package/api/resources/charges/client/requests/ChargesCaptureRequest.ts +0 -12
  181. package/api/resources/charges/client/requests/ChargesCreateRequest.d.ts +0 -21
  182. package/api/resources/charges/client/requests/ChargesCreateRequest.js +0 -3
  183. package/api/resources/charges/client/requests/ChargesCreateRequest.ts +0 -22
  184. package/api/resources/charges/client/requests/ChargesListRequest.d.ts +0 -20
  185. package/api/resources/charges/client/requests/ChargesListRequest.js +0 -3
  186. package/api/resources/charges/client/requests/ChargesListRequest.ts +0 -22
  187. package/api/resources/charges/client/requests/ChargesRefundRequest.d.ts +0 -22
  188. package/api/resources/charges/client/requests/ChargesRefundRequest.js +0 -11
  189. package/api/resources/charges/client/requests/ChargesRefundRequest.ts +0 -24
  190. package/api/resources/charges/client/requests/ChargesRetrieveRequest.d.ts +0 -10
  191. package/api/resources/charges/client/requests/ChargesRetrieveRequest.js +0 -3
  192. package/api/resources/charges/client/requests/ChargesRetrieveRequest.ts +0 -11
  193. package/api/resources/charges/client/requests/index.d.ts +0 -6
  194. package/api/resources/charges/client/requests/index.js +0 -2
  195. package/api/resources/charges/client/requests/index.ts +0 -5
  196. package/api/resources/charges/index.d.ts +0 -3
  197. package/api/resources/charges/index.js +0 -3
  198. package/api/resources/charges/index.ts +0 -2
  199. package/api/resources/charges/types/ChargesListRequestStatus.d.ts +0 -10
  200. package/api/resources/charges/types/ChargesListRequestStatus.js +0 -10
  201. package/api/resources/charges/types/ChargesListRequestStatus.ts +0 -11
  202. package/api/resources/charges/types/index.d.ts +0 -2
  203. package/api/resources/charges/types/index.js +0 -2
  204. package/api/resources/charges/types/index.ts +0 -1
  205. package/api/resources/checkoutSessions/client/Client.d.ts +0 -70
  206. package/api/resources/checkoutSessions/client/Client.js +0 -198
  207. package/api/resources/checkoutSessions/client/Client.ts +0 -264
  208. package/api/resources/checkoutSessions/client/index.d.ts +0 -2
  209. package/api/resources/checkoutSessions/client/index.js +0 -2
  210. package/api/resources/checkoutSessions/client/index.ts +0 -1
  211. package/api/resources/checkoutSessions/client/requests/CheckoutSessionsExpireRequest.d.ts +0 -10
  212. package/api/resources/checkoutSessions/client/requests/CheckoutSessionsExpireRequest.js +0 -3
  213. package/api/resources/checkoutSessions/client/requests/CheckoutSessionsExpireRequest.ts +0 -11
  214. package/api/resources/checkoutSessions/client/requests/CheckoutSessionsRetrieveRequest.d.ts +0 -10
  215. package/api/resources/checkoutSessions/client/requests/CheckoutSessionsRetrieveRequest.js +0 -3
  216. package/api/resources/checkoutSessions/client/requests/CheckoutSessionsRetrieveRequest.ts +0 -11
  217. package/api/resources/checkoutSessions/client/requests/CreateCheckoutSessionInput.d.ts +0 -27
  218. package/api/resources/checkoutSessions/client/requests/CreateCheckoutSessionInput.js +0 -12
  219. package/api/resources/checkoutSessions/client/requests/CreateCheckoutSessionInput.ts +0 -30
  220. package/api/resources/checkoutSessions/client/requests/index.d.ts +0 -4
  221. package/api/resources/checkoutSessions/client/requests/index.js +0 -2
  222. package/api/resources/checkoutSessions/client/requests/index.ts +0 -3
  223. package/api/resources/checkoutSessions/index.d.ts +0 -2
  224. package/api/resources/checkoutSessions/index.js +0 -2
  225. package/api/resources/checkoutSessions/index.ts +0 -1
  226. package/api/resources/comms/client/Client.d.ts +0 -56
  227. package/api/resources/comms/client/Client.js +0 -170
  228. package/api/resources/comms/client/Client.ts +0 -236
  229. package/api/resources/comms/client/index.d.ts +0 -2
  230. package/api/resources/comms/client/index.js +0 -2
  231. package/api/resources/comms/client/index.ts +0 -1
  232. package/api/resources/comms/client/requests/CommsMessagesListRequest.d.ts +0 -15
  233. package/api/resources/comms/client/requests/CommsMessagesListRequest.js +0 -3
  234. package/api/resources/comms/client/requests/CommsMessagesListRequest.ts +0 -16
  235. package/api/resources/comms/client/requests/CommsMessagesSendRequest.d.ts +0 -45
  236. package/api/resources/comms/client/requests/CommsMessagesSendRequest.js +0 -22
  237. package/api/resources/comms/client/requests/CommsMessagesSendRequest.ts +0 -47
  238. package/api/resources/comms/client/requests/CommsThreadsListRequest.d.ts +0 -20
  239. package/api/resources/comms/client/requests/CommsThreadsListRequest.js +0 -3
  240. package/api/resources/comms/client/requests/CommsThreadsListRequest.ts +0 -22
  241. package/api/resources/comms/client/requests/index.d.ts +0 -4
  242. package/api/resources/comms/client/requests/index.js +0 -2
  243. package/api/resources/comms/client/requests/index.ts +0 -3
  244. package/api/resources/comms/index.d.ts +0 -3
  245. package/api/resources/comms/index.js +0 -3
  246. package/api/resources/comms/index.ts +0 -2
  247. package/api/resources/comms/types/CommsMessagesListResponse.d.ts +0 -8
  248. package/api/resources/comms/types/CommsMessagesListResponse.js +0 -3
  249. package/api/resources/comms/types/CommsMessagesListResponse.ts +0 -9
  250. package/api/resources/comms/types/CommsMessagesSendResponse.d.ts +0 -8
  251. package/api/resources/comms/types/CommsMessagesSendResponse.js +0 -3
  252. package/api/resources/comms/types/CommsMessagesSendResponse.ts +0 -9
  253. package/api/resources/comms/types/CommsThreadsListRequestStatus.d.ts +0 -8
  254. package/api/resources/comms/types/CommsThreadsListRequestStatus.js +0 -8
  255. package/api/resources/comms/types/CommsThreadsListRequestStatus.ts +0 -10
  256. package/api/resources/comms/types/CommsThreadsListResponse.d.ts +0 -8
  257. package/api/resources/comms/types/CommsThreadsListResponse.js +0 -3
  258. package/api/resources/comms/types/CommsThreadsListResponse.ts +0 -9
  259. package/api/resources/comms/types/index.d.ts +0 -5
  260. package/api/resources/comms/types/index.js +0 -5
  261. package/api/resources/comms/types/index.ts +0 -4
  262. package/api/resources/creditNotes/client/Client.d.ts +0 -125
  263. package/api/resources/creditNotes/client/Client.js +0 -378
  264. package/api/resources/creditNotes/client/Client.ts +0 -509
  265. package/api/resources/creditNotes/client/index.d.ts +0 -2
  266. package/api/resources/creditNotes/client/index.js +0 -2
  267. package/api/resources/creditNotes/client/index.ts +0 -1
  268. package/api/resources/creditNotes/client/requests/CreateCreditNoteInput.d.ts +0 -58
  269. package/api/resources/creditNotes/client/requests/CreateCreditNoteInput.js +0 -21
  270. package/api/resources/creditNotes/client/requests/CreateCreditNoteInput.ts +0 -60
  271. package/api/resources/creditNotes/client/requests/CreditNotesInvoiceEligibilityRequest.d.ts +0 -11
  272. package/api/resources/creditNotes/client/requests/CreditNotesInvoiceEligibilityRequest.js +0 -3
  273. package/api/resources/creditNotes/client/requests/CreditNotesInvoiceEligibilityRequest.ts +0 -12
  274. package/api/resources/creditNotes/client/requests/CreditNotesListRequest.d.ts +0 -28
  275. package/api/resources/creditNotes/client/requests/CreditNotesListRequest.js +0 -3
  276. package/api/resources/creditNotes/client/requests/CreditNotesListRequest.ts +0 -30
  277. package/api/resources/creditNotes/client/requests/CreditNotesRetrieveRequest.d.ts +0 -11
  278. package/api/resources/creditNotes/client/requests/CreditNotesRetrieveRequest.js +0 -3
  279. package/api/resources/creditNotes/client/requests/CreditNotesRetrieveRequest.ts +0 -12
  280. package/api/resources/creditNotes/client/requests/CreditNotesTransactionReversalEligibilityRequest.d.ts +0 -13
  281. package/api/resources/creditNotes/client/requests/CreditNotesTransactionReversalEligibilityRequest.js +0 -3
  282. package/api/resources/creditNotes/client/requests/CreditNotesTransactionReversalEligibilityRequest.ts +0 -14
  283. package/api/resources/creditNotes/client/requests/CreditNotesVoidRequest.d.ts +0 -11
  284. package/api/resources/creditNotes/client/requests/CreditNotesVoidRequest.js +0 -3
  285. package/api/resources/creditNotes/client/requests/CreditNotesVoidRequest.ts +0 -12
  286. package/api/resources/creditNotes/client/requests/index.d.ts +0 -7
  287. package/api/resources/creditNotes/client/requests/index.js +0 -2
  288. package/api/resources/creditNotes/client/requests/index.ts +0 -6
  289. package/api/resources/creditNotes/index.d.ts +0 -3
  290. package/api/resources/creditNotes/index.js +0 -3
  291. package/api/resources/creditNotes/index.ts +0 -2
  292. package/api/resources/creditNotes/types/CreditNotesInvoiceEligibilityResponse.d.ts +0 -5
  293. package/api/resources/creditNotes/types/CreditNotesInvoiceEligibilityResponse.js +0 -3
  294. package/api/resources/creditNotes/types/CreditNotesInvoiceEligibilityResponse.ts +0 -7
  295. package/api/resources/creditNotes/types/CreditNotesListRequestCreditMethod.d.ts +0 -8
  296. package/api/resources/creditNotes/types/CreditNotesListRequestCreditMethod.js +0 -8
  297. package/api/resources/creditNotes/types/CreditNotesListRequestCreditMethod.ts +0 -10
  298. package/api/resources/creditNotes/types/CreditNotesListRequestStatus.d.ts +0 -10
  299. package/api/resources/creditNotes/types/CreditNotesListRequestStatus.js +0 -10
  300. package/api/resources/creditNotes/types/CreditNotesListRequestStatus.ts +0 -12
  301. package/api/resources/creditNotes/types/CreditNotesTransactionReversalEligibilityResponse.d.ts +0 -5
  302. package/api/resources/creditNotes/types/CreditNotesTransactionReversalEligibilityResponse.js +0 -3
  303. package/api/resources/creditNotes/types/CreditNotesTransactionReversalEligibilityResponse.ts +0 -7
  304. package/api/resources/creditNotes/types/index.d.ts +0 -5
  305. package/api/resources/creditNotes/types/index.js +0 -5
  306. package/api/resources/creditNotes/types/index.ts +0 -4
  307. package/api/resources/customers/client/Client.d.ts +0 -223
  308. package/api/resources/customers/client/Client.js +0 -729
  309. package/api/resources/customers/client/Client.ts +0 -978
  310. package/api/resources/customers/client/index.d.ts +0 -2
  311. package/api/resources/customers/client/index.js +0 -2
  312. package/api/resources/customers/client/index.ts +0 -1
  313. package/api/resources/customers/client/requests/CustomersCreateRequest.d.ts +0 -19
  314. package/api/resources/customers/client/requests/CustomersCreateRequest.js +0 -3
  315. package/api/resources/customers/client/requests/CustomersCreateRequest.ts +0 -20
  316. package/api/resources/customers/client/requests/CustomersExternalBatchRequest.d.ts +0 -53
  317. package/api/resources/customers/client/requests/CustomersExternalBatchRequest.js +0 -3
  318. package/api/resources/customers/client/requests/CustomersExternalBatchRequest.ts +0 -56
  319. package/api/resources/customers/client/requests/CustomersExternalUpsertByExternalIdRequest.d.ts +0 -31
  320. package/api/resources/customers/client/requests/CustomersExternalUpsertByExternalIdRequest.js +0 -3
  321. package/api/resources/customers/client/requests/CustomersExternalUpsertByExternalIdRequest.ts +0 -32
  322. package/api/resources/customers/client/requests/CustomersInvoicesListRequest.d.ts +0 -18
  323. package/api/resources/customers/client/requests/CustomersInvoicesListRequest.js +0 -3
  324. package/api/resources/customers/client/requests/CustomersInvoicesListRequest.ts +0 -19
  325. package/api/resources/customers/client/requests/CustomersListRequest.d.ts +0 -13
  326. package/api/resources/customers/client/requests/CustomersListRequest.js +0 -3
  327. package/api/resources/customers/client/requests/CustomersListRequest.ts +0 -14
  328. package/api/resources/customers/client/requests/CustomersOrdersListRequest.d.ts +0 -21
  329. package/api/resources/customers/client/requests/CustomersOrdersListRequest.js +0 -3
  330. package/api/resources/customers/client/requests/CustomersOrdersListRequest.ts +0 -23
  331. package/api/resources/customers/client/requests/CustomersPaymentMethodsListRequest.d.ts +0 -11
  332. package/api/resources/customers/client/requests/CustomersPaymentMethodsListRequest.js +0 -3
  333. package/api/resources/customers/client/requests/CustomersPaymentMethodsListRequest.ts +0 -12
  334. package/api/resources/customers/client/requests/CustomersPaymentsListRequest.d.ts +0 -21
  335. package/api/resources/customers/client/requests/CustomersPaymentsListRequest.js +0 -3
  336. package/api/resources/customers/client/requests/CustomersPaymentsListRequest.ts +0 -23
  337. package/api/resources/customers/client/requests/CustomersPortalSessionsCreateRequest.d.ts +0 -13
  338. package/api/resources/customers/client/requests/CustomersPortalSessionsCreateRequest.js +0 -3
  339. package/api/resources/customers/client/requests/CustomersPortalSessionsCreateRequest.ts +0 -14
  340. package/api/resources/customers/client/requests/CustomersRetrieveRequest.d.ts +0 -11
  341. package/api/resources/customers/client/requests/CustomersRetrieveRequest.js +0 -3
  342. package/api/resources/customers/client/requests/CustomersRetrieveRequest.ts +0 -12
  343. package/api/resources/customers/client/requests/CustomersSubscriptionsListRequest.d.ts +0 -21
  344. package/api/resources/customers/client/requests/CustomersSubscriptionsListRequest.js +0 -3
  345. package/api/resources/customers/client/requests/CustomersSubscriptionsListRequest.ts +0 -23
  346. package/api/resources/customers/client/requests/CustomersUpdateRequest.d.ts +0 -21
  347. package/api/resources/customers/client/requests/CustomersUpdateRequest.js +0 -3
  348. package/api/resources/customers/client/requests/CustomersUpdateRequest.ts +0 -22
  349. package/api/resources/customers/client/requests/index.d.ts +0 -13
  350. package/api/resources/customers/client/requests/index.js +0 -2
  351. package/api/resources/customers/client/requests/index.ts +0 -12
  352. package/api/resources/customers/index.d.ts +0 -3
  353. package/api/resources/customers/index.js +0 -3
  354. package/api/resources/customers/index.ts +0 -2
  355. package/api/resources/customers/types/CustomersExternalBatchResponse.d.ts +0 -20
  356. package/api/resources/customers/types/CustomersExternalBatchResponse.js +0 -3
  357. package/api/resources/customers/types/CustomersExternalBatchResponse.ts +0 -23
  358. package/api/resources/customers/types/CustomersExternalUpsertByExternalIdResponse.d.ts +0 -23
  359. package/api/resources/customers/types/CustomersExternalUpsertByExternalIdResponse.js +0 -3
  360. package/api/resources/customers/types/CustomersExternalUpsertByExternalIdResponse.ts +0 -26
  361. package/api/resources/customers/types/CustomersInvoicesListResponse.d.ts +0 -14
  362. package/api/resources/customers/types/CustomersInvoicesListResponse.js +0 -8
  363. package/api/resources/customers/types/CustomersInvoicesListResponse.ts +0 -17
  364. package/api/resources/customers/types/CustomersOrdersListRequestStatus.d.ts +0 -9
  365. package/api/resources/customers/types/CustomersOrdersListRequestStatus.js +0 -9
  366. package/api/resources/customers/types/CustomersOrdersListRequestStatus.ts +0 -11
  367. package/api/resources/customers/types/CustomersOrdersListResponse.d.ts +0 -14
  368. package/api/resources/customers/types/CustomersOrdersListResponse.js +0 -8
  369. package/api/resources/customers/types/CustomersOrdersListResponse.ts +0 -17
  370. package/api/resources/customers/types/CustomersPaymentsListRequestStatus.d.ts +0 -11
  371. package/api/resources/customers/types/CustomersPaymentsListRequestStatus.js +0 -11
  372. package/api/resources/customers/types/CustomersPaymentsListRequestStatus.ts +0 -13
  373. package/api/resources/customers/types/CustomersPaymentsListResponse.d.ts +0 -14
  374. package/api/resources/customers/types/CustomersPaymentsListResponse.js +0 -8
  375. package/api/resources/customers/types/CustomersPaymentsListResponse.ts +0 -17
  376. package/api/resources/customers/types/CustomersSubscriptionsListRequestStatus.d.ts +0 -10
  377. package/api/resources/customers/types/CustomersSubscriptionsListRequestStatus.js +0 -10
  378. package/api/resources/customers/types/CustomersSubscriptionsListRequestStatus.ts +0 -12
  379. package/api/resources/customers/types/CustomersSubscriptionsListResponse.d.ts +0 -14
  380. package/api/resources/customers/types/CustomersSubscriptionsListResponse.js +0 -8
  381. package/api/resources/customers/types/CustomersSubscriptionsListResponse.ts +0 -17
  382. package/api/resources/customers/types/index.d.ts +0 -10
  383. package/api/resources/customers/types/index.js +0 -10
  384. package/api/resources/customers/types/index.ts +0 -9
  385. package/api/resources/discounts/client/Client.d.ts +0 -104
  386. package/api/resources/discounts/client/Client.js +0 -300
  387. package/api/resources/discounts/client/Client.ts +0 -395
  388. package/api/resources/discounts/client/index.d.ts +0 -2
  389. package/api/resources/discounts/client/index.js +0 -2
  390. package/api/resources/discounts/client/index.ts +0 -1
  391. package/api/resources/discounts/client/requests/CreateDiscountInput.d.ts +0 -71
  392. package/api/resources/discounts/client/requests/CreateDiscountInput.js +0 -28
  393. package/api/resources/discounts/client/requests/CreateDiscountInput.ts +0 -73
  394. package/api/resources/discounts/client/requests/DiscountsDeleteRequest.d.ts +0 -11
  395. package/api/resources/discounts/client/requests/DiscountsDeleteRequest.js +0 -3
  396. package/api/resources/discounts/client/requests/DiscountsDeleteRequest.ts +0 -12
  397. package/api/resources/discounts/client/requests/DiscountsListRequest.d.ts +0 -18
  398. package/api/resources/discounts/client/requests/DiscountsListRequest.js +0 -3
  399. package/api/resources/discounts/client/requests/DiscountsListRequest.ts +0 -20
  400. package/api/resources/discounts/client/requests/DiscountsRetrieveRequest.d.ts +0 -11
  401. package/api/resources/discounts/client/requests/DiscountsRetrieveRequest.js +0 -3
  402. package/api/resources/discounts/client/requests/DiscountsRetrieveRequest.ts +0 -12
  403. package/api/resources/discounts/client/requests/UpdateDiscountInput.d.ts +0 -46
  404. package/api/resources/discounts/client/requests/UpdateDiscountInput.js +0 -20
  405. package/api/resources/discounts/client/requests/UpdateDiscountInput.ts +0 -48
  406. package/api/resources/discounts/client/requests/index.d.ts +0 -6
  407. package/api/resources/discounts/client/requests/index.js +0 -3
  408. package/api/resources/discounts/client/requests/index.ts +0 -5
  409. package/api/resources/discounts/index.d.ts +0 -3
  410. package/api/resources/discounts/index.js +0 -3
  411. package/api/resources/discounts/index.ts +0 -2
  412. package/api/resources/discounts/types/DiscountsListRequestIsActive.d.ts +0 -7
  413. package/api/resources/discounts/types/DiscountsListRequestIsActive.js +0 -7
  414. package/api/resources/discounts/types/DiscountsListRequestIsActive.ts +0 -9
  415. package/api/resources/discounts/types/DiscountsListRequestIsArchived.d.ts +0 -7
  416. package/api/resources/discounts/types/DiscountsListRequestIsArchived.js +0 -7
  417. package/api/resources/discounts/types/DiscountsListRequestIsArchived.ts +0 -9
  418. package/api/resources/discounts/types/index.d.ts +0 -3
  419. package/api/resources/discounts/types/index.js +0 -3
  420. package/api/resources/discounts/types/index.ts +0 -2
  421. package/api/resources/disputes/client/Client.d.ts +0 -72
  422. package/api/resources/disputes/client/Client.js +0 -199
  423. package/api/resources/disputes/client/Client.ts +0 -270
  424. package/api/resources/disputes/client/index.d.ts +0 -2
  425. package/api/resources/disputes/client/index.js +0 -2
  426. package/api/resources/disputes/client/index.ts +0 -1
  427. package/api/resources/disputes/client/requests/DisputesGetOpenRequest.d.ts +0 -11
  428. package/api/resources/disputes/client/requests/DisputesGetOpenRequest.js +0 -3
  429. package/api/resources/disputes/client/requests/DisputesGetOpenRequest.ts +0 -12
  430. package/api/resources/disputes/client/requests/DisputesListRequest.d.ts +0 -30
  431. package/api/resources/disputes/client/requests/DisputesListRequest.js +0 -3
  432. package/api/resources/disputes/client/requests/DisputesListRequest.ts +0 -32
  433. package/api/resources/disputes/client/requests/DisputesRetrieveRequest.d.ts +0 -11
  434. package/api/resources/disputes/client/requests/DisputesRetrieveRequest.js +0 -3
  435. package/api/resources/disputes/client/requests/DisputesRetrieveRequest.ts +0 -12
  436. package/api/resources/disputes/client/requests/index.d.ts +0 -4
  437. package/api/resources/disputes/client/requests/index.js +0 -2
  438. package/api/resources/disputes/client/requests/index.ts +0 -3
  439. package/api/resources/disputes/index.d.ts +0 -3
  440. package/api/resources/disputes/index.js +0 -3
  441. package/api/resources/disputes/index.ts +0 -2
  442. package/api/resources/disputes/types/DisputesGetOpenResponse.d.ts +0 -14
  443. package/api/resources/disputes/types/DisputesGetOpenResponse.js +0 -3
  444. package/api/resources/disputes/types/DisputesGetOpenResponse.ts +0 -17
  445. package/api/resources/disputes/types/DisputesListRequestNeedsEvidence.d.ts +0 -7
  446. package/api/resources/disputes/types/DisputesListRequestNeedsEvidence.js +0 -7
  447. package/api/resources/disputes/types/DisputesListRequestNeedsEvidence.ts +0 -9
  448. package/api/resources/disputes/types/DisputesListRequestResolution.d.ts +0 -8
  449. package/api/resources/disputes/types/DisputesListRequestResolution.js +0 -8
  450. package/api/resources/disputes/types/DisputesListRequestResolution.ts +0 -10
  451. package/api/resources/disputes/types/DisputesListRequestStatus.d.ts +0 -11
  452. package/api/resources/disputes/types/DisputesListRequestStatus.js +0 -11
  453. package/api/resources/disputes/types/DisputesListRequestStatus.ts +0 -12
  454. package/api/resources/disputes/types/DisputesListResponse.d.ts +0 -18
  455. package/api/resources/disputes/types/DisputesListResponse.js +0 -3
  456. package/api/resources/disputes/types/DisputesListResponse.ts +0 -21
  457. package/api/resources/disputes/types/DisputesRetrieveResponse.d.ts +0 -15
  458. package/api/resources/disputes/types/DisputesRetrieveResponse.js +0 -3
  459. package/api/resources/disputes/types/DisputesRetrieveResponse.ts +0 -18
  460. package/api/resources/disputes/types/index.d.ts +0 -7
  461. package/api/resources/disputes/types/index.js +0 -7
  462. package/api/resources/disputes/types/index.ts +0 -6
  463. package/api/resources/entitlements/client/Client.d.ts +0 -138
  464. package/api/resources/entitlements/client/Client.js +0 -446
  465. package/api/resources/entitlements/client/Client.ts +0 -607
  466. package/api/resources/entitlements/client/index.d.ts +0 -2
  467. package/api/resources/entitlements/client/index.js +0 -2
  468. package/api/resources/entitlements/client/index.ts +0 -1
  469. package/api/resources/entitlements/client/requests/CustomersEntitlementsCheckRequest.d.ts +0 -14
  470. package/api/resources/entitlements/client/requests/CustomersEntitlementsCheckRequest.js +0 -3
  471. package/api/resources/entitlements/client/requests/CustomersEntitlementsCheckRequest.ts +0 -15
  472. package/api/resources/entitlements/client/requests/CustomersEntitlementsGrantRequest.d.ts +0 -15
  473. package/api/resources/entitlements/client/requests/CustomersEntitlementsGrantRequest.js +0 -3
  474. package/api/resources/entitlements/client/requests/CustomersEntitlementsGrantRequest.ts +0 -16
  475. package/api/resources/entitlements/client/requests/CustomersEntitlementsListRequest.d.ts +0 -21
  476. package/api/resources/entitlements/client/requests/CustomersEntitlementsListRequest.js +0 -3
  477. package/api/resources/entitlements/client/requests/CustomersEntitlementsListRequest.ts +0 -22
  478. package/api/resources/entitlements/client/requests/CustomersEntitlementsRevokeByIdRequest.d.ts +0 -14
  479. package/api/resources/entitlements/client/requests/CustomersEntitlementsRevokeByIdRequest.js +0 -3
  480. package/api/resources/entitlements/client/requests/CustomersEntitlementsRevokeByIdRequest.ts +0 -15
  481. package/api/resources/entitlements/client/requests/CustomersEntitlementsRevokeByKeyRequest.d.ts +0 -13
  482. package/api/resources/entitlements/client/requests/CustomersEntitlementsRevokeByKeyRequest.js +0 -3
  483. package/api/resources/entitlements/client/requests/CustomersEntitlementsRevokeByKeyRequest.ts +0 -14
  484. package/api/resources/entitlements/client/requests/EntitlementsCheckRequest.d.ts +0 -14
  485. package/api/resources/entitlements/client/requests/EntitlementsCheckRequest.js +0 -3
  486. package/api/resources/entitlements/client/requests/EntitlementsCheckRequest.ts +0 -15
  487. package/api/resources/entitlements/client/requests/EntitlementsListRequest.d.ts +0 -21
  488. package/api/resources/entitlements/client/requests/EntitlementsListRequest.js +0 -3
  489. package/api/resources/entitlements/client/requests/EntitlementsListRequest.ts +0 -22
  490. package/api/resources/entitlements/client/requests/index.d.ts +0 -8
  491. package/api/resources/entitlements/client/requests/index.js +0 -2
  492. package/api/resources/entitlements/client/requests/index.ts +0 -7
  493. package/api/resources/entitlements/index.d.ts +0 -3
  494. package/api/resources/entitlements/index.js +0 -3
  495. package/api/resources/entitlements/index.ts +0 -2
  496. package/api/resources/entitlements/types/CustomersEntitlementsCheckResponse.d.ts +0 -45
  497. package/api/resources/entitlements/types/CustomersEntitlementsCheckResponse.js +0 -22
  498. package/api/resources/entitlements/types/CustomersEntitlementsCheckResponse.ts +0 -49
  499. package/api/resources/entitlements/types/CustomersEntitlementsGrantResponse.d.ts +0 -52
  500. package/api/resources/entitlements/types/CustomersEntitlementsGrantResponse.js +0 -22
  501. package/api/resources/entitlements/types/CustomersEntitlementsGrantResponse.ts +0 -56
  502. package/api/resources/entitlements/types/CustomersEntitlementsListResponse.d.ts +0 -66
  503. package/api/resources/entitlements/types/CustomersEntitlementsListResponse.js +0 -25
  504. package/api/resources/entitlements/types/CustomersEntitlementsListResponse.ts +0 -73
  505. package/api/resources/entitlements/types/CustomersEntitlementsRevokeByIdResponse.d.ts +0 -52
  506. package/api/resources/entitlements/types/CustomersEntitlementsRevokeByIdResponse.js +0 -22
  507. package/api/resources/entitlements/types/CustomersEntitlementsRevokeByIdResponse.ts +0 -56
  508. package/api/resources/entitlements/types/CustomersEntitlementsRevokeByKeyResponse.d.ts +0 -52
  509. package/api/resources/entitlements/types/CustomersEntitlementsRevokeByKeyResponse.js +0 -22
  510. package/api/resources/entitlements/types/CustomersEntitlementsRevokeByKeyResponse.ts +0 -56
  511. package/api/resources/entitlements/types/index.d.ts +0 -6
  512. package/api/resources/entitlements/types/index.js +0 -6
  513. package/api/resources/entitlements/types/index.ts +0 -5
  514. package/api/resources/events/client/Client.d.ts +0 -84
  515. package/api/resources/events/client/Client.js +0 -243
  516. package/api/resources/events/client/Client.ts +0 -333
  517. package/api/resources/events/client/index.d.ts +0 -2
  518. package/api/resources/events/client/index.js +0 -2
  519. package/api/resources/events/client/index.ts +0 -1
  520. package/api/resources/events/client/requests/CreateTestEventRequest.d.ts +0 -60
  521. package/api/resources/events/client/requests/CreateTestEventRequest.js +0 -51
  522. package/api/resources/events/client/requests/CreateTestEventRequest.ts +0 -62
  523. package/api/resources/events/client/requests/EventsListRequest.d.ts +0 -32
  524. package/api/resources/events/client/requests/EventsListRequest.js +0 -3
  525. package/api/resources/events/client/requests/EventsListRequest.ts +0 -33
  526. package/api/resources/events/client/requests/EventsResendRequest.d.ts +0 -11
  527. package/api/resources/events/client/requests/EventsResendRequest.js +0 -3
  528. package/api/resources/events/client/requests/EventsResendRequest.ts +0 -12
  529. package/api/resources/events/client/requests/EventsRetrieveRequest.d.ts +0 -11
  530. package/api/resources/events/client/requests/EventsRetrieveRequest.js +0 -3
  531. package/api/resources/events/client/requests/EventsRetrieveRequest.ts +0 -12
  532. package/api/resources/events/client/requests/index.d.ts +0 -5
  533. package/api/resources/events/client/requests/index.js +0 -2
  534. package/api/resources/events/client/requests/index.ts +0 -4
  535. package/api/resources/events/index.d.ts +0 -2
  536. package/api/resources/events/index.js +0 -2
  537. package/api/resources/events/index.ts +0 -1
  538. package/api/resources/exports/client/Client.d.ts +0 -53
  539. package/api/resources/exports/client/Client.js +0 -129
  540. package/api/resources/exports/client/Client.ts +0 -173
  541. package/api/resources/exports/client/index.d.ts +0 -2
  542. package/api/resources/exports/client/index.js +0 -2
  543. package/api/resources/exports/client/index.ts +0 -1
  544. package/api/resources/exports/client/requests/CreateExportRequest.d.ts +0 -42
  545. package/api/resources/exports/client/requests/CreateExportRequest.js +0 -25
  546. package/api/resources/exports/client/requests/CreateExportRequest.ts +0 -44
  547. package/api/resources/exports/client/requests/ExportsRetrieveRequest.d.ts +0 -11
  548. package/api/resources/exports/client/requests/ExportsRetrieveRequest.js +0 -3
  549. package/api/resources/exports/client/requests/ExportsRetrieveRequest.ts +0 -12
  550. package/api/resources/exports/client/requests/index.d.ts +0 -3
  551. package/api/resources/exports/client/requests/index.js +0 -2
  552. package/api/resources/exports/client/requests/index.ts +0 -2
  553. package/api/resources/exports/index.d.ts +0 -2
  554. package/api/resources/exports/index.js +0 -2
  555. package/api/resources/exports/index.ts +0 -1
  556. package/api/resources/finance/client/Client.d.ts +0 -52
  557. package/api/resources/finance/client/Client.js +0 -136
  558. package/api/resources/finance/client/Client.ts +0 -184
  559. package/api/resources/finance/client/index.d.ts +0 -2
  560. package/api/resources/finance/client/index.js +0 -2
  561. package/api/resources/finance/client/index.ts +0 -1
  562. package/api/resources/finance/client/requests/FinanceGetIncomeRequest.d.ts +0 -21
  563. package/api/resources/finance/client/requests/FinanceGetIncomeRequest.js +0 -3
  564. package/api/resources/finance/client/requests/FinanceGetIncomeRequest.ts +0 -23
  565. package/api/resources/finance/client/requests/index.d.ts +0 -2
  566. package/api/resources/finance/client/requests/index.js +0 -2
  567. package/api/resources/finance/client/requests/index.ts +0 -1
  568. package/api/resources/finance/index.d.ts +0 -3
  569. package/api/resources/finance/index.js +0 -3
  570. package/api/resources/finance/index.ts +0 -2
  571. package/api/resources/finance/types/FinanceGetIncomeRequestGroupBy.d.ts +0 -8
  572. package/api/resources/finance/types/FinanceGetIncomeRequestGroupBy.js +0 -8
  573. package/api/resources/finance/types/FinanceGetIncomeRequestGroupBy.ts +0 -10
  574. package/api/resources/finance/types/FinanceGetIncomeResponse.d.ts +0 -15
  575. package/api/resources/finance/types/FinanceGetIncomeResponse.js +0 -3
  576. package/api/resources/finance/types/FinanceGetIncomeResponse.ts +0 -17
  577. package/api/resources/finance/types/FinanceGetSummaryResponse.d.ts +0 -7
  578. package/api/resources/finance/types/FinanceGetSummaryResponse.js +0 -3
  579. package/api/resources/finance/types/FinanceGetSummaryResponse.ts +0 -8
  580. package/api/resources/finance/types/index.d.ts +0 -4
  581. package/api/resources/finance/types/index.js +0 -4
  582. package/api/resources/finance/types/index.ts +0 -3
  583. package/api/resources/imports/client/Client.d.ts +0 -53
  584. package/api/resources/imports/client/Client.js +0 -129
  585. package/api/resources/imports/client/Client.ts +0 -173
  586. package/api/resources/imports/client/index.d.ts +0 -2
  587. package/api/resources/imports/client/index.js +0 -2
  588. package/api/resources/imports/client/index.ts +0 -1
  589. package/api/resources/imports/client/requests/CreateImportRequest.d.ts +0 -33
  590. package/api/resources/imports/client/requests/CreateImportRequest.js +0 -17
  591. package/api/resources/imports/client/requests/CreateImportRequest.ts +0 -35
  592. package/api/resources/imports/client/requests/ImportsRetrieveRequest.d.ts +0 -11
  593. package/api/resources/imports/client/requests/ImportsRetrieveRequest.js +0 -3
  594. package/api/resources/imports/client/requests/ImportsRetrieveRequest.ts +0 -12
  595. package/api/resources/imports/client/requests/index.d.ts +0 -3
  596. package/api/resources/imports/client/requests/index.js +0 -2
  597. package/api/resources/imports/client/requests/index.ts +0 -2
  598. package/api/resources/imports/index.d.ts +0 -2
  599. package/api/resources/imports/index.js +0 -2
  600. package/api/resources/imports/index.ts +0 -1
  601. package/api/resources/index.d.ts +0 -96
  602. package/api/resources/index.js +0 -96
  603. package/api/resources/index.ts +0 -95
  604. package/api/resources/integrations/client/Client.d.ts +0 -500
  605. package/api/resources/integrations/client/Client.js +0 -1671
  606. package/api/resources/integrations/client/Client.ts +0 -2318
  607. package/api/resources/integrations/client/index.d.ts +0 -2
  608. package/api/resources/integrations/client/index.js +0 -2
  609. package/api/resources/integrations/client/index.ts +0 -1
  610. package/api/resources/integrations/client/requests/IntegrationsActivateRequest.d.ts +0 -42
  611. package/api/resources/integrations/client/requests/IntegrationsActivateRequest.js +0 -3
  612. package/api/resources/integrations/client/requests/IntegrationsActivateRequest.ts +0 -47
  613. package/api/resources/integrations/client/requests/IntegrationsAutoSendInvoicesRequest.d.ts +0 -13
  614. package/api/resources/integrations/client/requests/IntegrationsAutoSendInvoicesRequest.js +0 -3
  615. package/api/resources/integrations/client/requests/IntegrationsAutoSendInvoicesRequest.ts +0 -15
  616. package/api/resources/integrations/client/requests/IntegrationsBatchRetryRequest.d.ts +0 -15
  617. package/api/resources/integrations/client/requests/IntegrationsBatchRetryRequest.js +0 -3
  618. package/api/resources/integrations/client/requests/IntegrationsBatchRetryRequest.ts +0 -17
  619. package/api/resources/integrations/client/requests/IntegrationsDeactivateRequest.d.ts +0 -12
  620. package/api/resources/integrations/client/requests/IntegrationsDeactivateRequest.js +0 -3
  621. package/api/resources/integrations/client/requests/IntegrationsDeactivateRequest.ts +0 -14
  622. package/api/resources/integrations/client/requests/IntegrationsDeleteProductMappingRequest.d.ts +0 -13
  623. package/api/resources/integrations/client/requests/IntegrationsDeleteProductMappingRequest.js +0 -3
  624. package/api/resources/integrations/client/requests/IntegrationsDeleteProductMappingRequest.ts +0 -15
  625. package/api/resources/integrations/client/requests/IntegrationsGetBillableItemsRequest.d.ts +0 -11
  626. package/api/resources/integrations/client/requests/IntegrationsGetBillableItemsRequest.js +0 -3
  627. package/api/resources/integrations/client/requests/IntegrationsGetBillableItemsRequest.ts +0 -13
  628. package/api/resources/integrations/client/requests/IntegrationsGetPackagesRequest.d.ts +0 -11
  629. package/api/resources/integrations/client/requests/IntegrationsGetPackagesRequest.js +0 -3
  630. package/api/resources/integrations/client/requests/IntegrationsGetPackagesRequest.ts +0 -13
  631. package/api/resources/integrations/client/requests/IntegrationsGetPaymentMethodsRequest.d.ts +0 -11
  632. package/api/resources/integrations/client/requests/IntegrationsGetPaymentMethodsRequest.js +0 -3
  633. package/api/resources/integrations/client/requests/IntegrationsGetPaymentMethodsRequest.ts +0 -13
  634. package/api/resources/integrations/client/requests/IntegrationsGetProductMappingsRequest.d.ts +0 -11
  635. package/api/resources/integrations/client/requests/IntegrationsGetProductMappingsRequest.js +0 -3
  636. package/api/resources/integrations/client/requests/IntegrationsGetProductMappingsRequest.ts +0 -13
  637. package/api/resources/integrations/client/requests/IntegrationsGetStatusRequest.d.ts +0 -11
  638. package/api/resources/integrations/client/requests/IntegrationsGetStatusRequest.js +0 -3
  639. package/api/resources/integrations/client/requests/IntegrationsGetStatusRequest.ts +0 -13
  640. package/api/resources/integrations/client/requests/IntegrationsGetUnmappedAttemptsRequest.d.ts +0 -11
  641. package/api/resources/integrations/client/requests/IntegrationsGetUnmappedAttemptsRequest.js +0 -3
  642. package/api/resources/integrations/client/requests/IntegrationsGetUnmappedAttemptsRequest.ts +0 -13
  643. package/api/resources/integrations/client/requests/IntegrationsInvoiceLookbackRequest.d.ts +0 -13
  644. package/api/resources/integrations/client/requests/IntegrationsInvoiceLookbackRequest.js +0 -3
  645. package/api/resources/integrations/client/requests/IntegrationsInvoiceLookbackRequest.ts +0 -15
  646. package/api/resources/integrations/client/requests/IntegrationsPaymentMappingsRequest.d.ts +0 -27
  647. package/api/resources/integrations/client/requests/IntegrationsPaymentMappingsRequest.js +0 -3
  648. package/api/resources/integrations/client/requests/IntegrationsPaymentMappingsRequest.ts +0 -31
  649. package/api/resources/integrations/client/requests/IntegrationsPostPaymentMethodsRequest.d.ts +0 -17
  650. package/api/resources/integrations/client/requests/IntegrationsPostPaymentMethodsRequest.js +0 -3
  651. package/api/resources/integrations/client/requests/IntegrationsPostPaymentMethodsRequest.ts +0 -19
  652. package/api/resources/integrations/client/requests/IntegrationsPutProductMappingsRequest.d.ts +0 -33
  653. package/api/resources/integrations/client/requests/IntegrationsPutProductMappingsRequest.js +0 -3
  654. package/api/resources/integrations/client/requests/IntegrationsPutProductMappingsRequest.ts +0 -38
  655. package/api/resources/integrations/client/requests/IntegrationsResumeSyncRequest.d.ts +0 -11
  656. package/api/resources/integrations/client/requests/IntegrationsResumeSyncRequest.js +0 -3
  657. package/api/resources/integrations/client/requests/IntegrationsResumeSyncRequest.ts +0 -13
  658. package/api/resources/integrations/client/requests/IntegrationsRetryLogRequest.d.ts +0 -13
  659. package/api/resources/integrations/client/requests/IntegrationsRetryLogRequest.js +0 -3
  660. package/api/resources/integrations/client/requests/IntegrationsRetryLogRequest.ts +0 -15
  661. package/api/resources/integrations/client/requests/IntegrationsSuggestMappingsRequest.d.ts +0 -38
  662. package/api/resources/integrations/client/requests/IntegrationsSuggestMappingsRequest.js +0 -16
  663. package/api/resources/integrations/client/requests/IntegrationsSuggestMappingsRequest.ts +0 -43
  664. package/api/resources/integrations/client/requests/IntegrationsSyncIntervalRequest.d.ts +0 -13
  665. package/api/resources/integrations/client/requests/IntegrationsSyncIntervalRequest.js +0 -3
  666. package/api/resources/integrations/client/requests/IntegrationsSyncIntervalRequest.ts +0 -15
  667. package/api/resources/integrations/client/requests/IntegrationsSyncLogByIdRequest.d.ts +0 -13
  668. package/api/resources/integrations/client/requests/IntegrationsSyncLogByIdRequest.js +0 -3
  669. package/api/resources/integrations/client/requests/IntegrationsSyncLogByIdRequest.ts +0 -15
  670. package/api/resources/integrations/client/requests/IntegrationsSyncLogsRequest.d.ts +0 -20
  671. package/api/resources/integrations/client/requests/IntegrationsSyncLogsRequest.js +0 -3
  672. package/api/resources/integrations/client/requests/IntegrationsSyncLogsRequest.ts +0 -22
  673. package/api/resources/integrations/client/requests/IntegrationsSyncStatesRequest.d.ts +0 -11
  674. package/api/resources/integrations/client/requests/IntegrationsSyncStatesRequest.js +0 -3
  675. package/api/resources/integrations/client/requests/IntegrationsSyncStatesRequest.ts +0 -13
  676. package/api/resources/integrations/client/requests/IntegrationsSyncStatsByTypeRequest.d.ts +0 -13
  677. package/api/resources/integrations/client/requests/IntegrationsSyncStatsByTypeRequest.js +0 -3
  678. package/api/resources/integrations/client/requests/IntegrationsSyncStatsByTypeRequest.ts +0 -15
  679. package/api/resources/integrations/client/requests/IntegrationsSyncStatsRequest.d.ts +0 -13
  680. package/api/resources/integrations/client/requests/IntegrationsSyncStatsRequest.js +0 -3
  681. package/api/resources/integrations/client/requests/IntegrationsSyncStatsRequest.ts +0 -15
  682. package/api/resources/integrations/client/requests/IntegrationsSyncToggleRequest.d.ts +0 -13
  683. package/api/resources/integrations/client/requests/IntegrationsSyncToggleRequest.js +0 -3
  684. package/api/resources/integrations/client/requests/IntegrationsSyncToggleRequest.ts +0 -15
  685. package/api/resources/integrations/client/requests/IntegrationsTestRequest.d.ts +0 -24
  686. package/api/resources/integrations/client/requests/IntegrationsTestRequest.js +0 -3
  687. package/api/resources/integrations/client/requests/IntegrationsTestRequest.ts +0 -27
  688. package/api/resources/integrations/client/requests/IntegrationsTriggerSyncRequest.d.ts +0 -12
  689. package/api/resources/integrations/client/requests/IntegrationsTriggerSyncRequest.js +0 -3
  690. package/api/resources/integrations/client/requests/IntegrationsTriggerSyncRequest.ts +0 -14
  691. package/api/resources/integrations/client/requests/IntegrationsUpdateStatusRequest.d.ts +0 -23
  692. package/api/resources/integrations/client/requests/IntegrationsUpdateStatusRequest.js +0 -11
  693. package/api/resources/integrations/client/requests/IntegrationsUpdateStatusRequest.ts +0 -26
  694. package/api/resources/integrations/client/requests/index.d.ts +0 -29
  695. package/api/resources/integrations/client/requests/index.js +0 -3
  696. package/api/resources/integrations/client/requests/index.ts +0 -28
  697. package/api/resources/integrations/index.d.ts +0 -3
  698. package/api/resources/integrations/index.js +0 -3
  699. package/api/resources/integrations/index.ts +0 -2
  700. package/api/resources/integrations/types/IntegrationsActivateRequestProvider.d.ts +0 -7
  701. package/api/resources/integrations/types/IntegrationsActivateRequestProvider.js +0 -7
  702. package/api/resources/integrations/types/IntegrationsActivateRequestProvider.ts +0 -9
  703. package/api/resources/integrations/types/IntegrationsActivateResponse.d.ts +0 -54
  704. package/api/resources/integrations/types/IntegrationsActivateResponse.js +0 -24
  705. package/api/resources/integrations/types/IntegrationsActivateResponse.ts +0 -59
  706. package/api/resources/integrations/types/IntegrationsAutoSendInvoicesRequestProvider.d.ts +0 -7
  707. package/api/resources/integrations/types/IntegrationsAutoSendInvoicesRequestProvider.js +0 -7
  708. package/api/resources/integrations/types/IntegrationsAutoSendInvoicesRequestProvider.ts +0 -9
  709. package/api/resources/integrations/types/IntegrationsAutoSendInvoicesResponse.d.ts +0 -4
  710. package/api/resources/integrations/types/IntegrationsAutoSendInvoicesResponse.js +0 -3
  711. package/api/resources/integrations/types/IntegrationsAutoSendInvoicesResponse.ts +0 -5
  712. package/api/resources/integrations/types/IntegrationsBatchRetryRequestProvider.d.ts +0 -7
  713. package/api/resources/integrations/types/IntegrationsBatchRetryRequestProvider.js +0 -7
  714. package/api/resources/integrations/types/IntegrationsBatchRetryRequestProvider.ts +0 -9
  715. package/api/resources/integrations/types/IntegrationsBatchRetryResponse.d.ts +0 -5
  716. package/api/resources/integrations/types/IntegrationsBatchRetryResponse.js +0 -3
  717. package/api/resources/integrations/types/IntegrationsBatchRetryResponse.ts +0 -6
  718. package/api/resources/integrations/types/IntegrationsDeactivateRequestProvider.d.ts +0 -7
  719. package/api/resources/integrations/types/IntegrationsDeactivateRequestProvider.js +0 -7
  720. package/api/resources/integrations/types/IntegrationsDeactivateRequestProvider.ts +0 -9
  721. package/api/resources/integrations/types/IntegrationsDeactivateResponse.d.ts +0 -5
  722. package/api/resources/integrations/types/IntegrationsDeactivateResponse.js +0 -3
  723. package/api/resources/integrations/types/IntegrationsDeactivateResponse.ts +0 -6
  724. package/api/resources/integrations/types/IntegrationsDeleteProductMappingRequestProvider.d.ts +0 -7
  725. package/api/resources/integrations/types/IntegrationsDeleteProductMappingRequestProvider.js +0 -7
  726. package/api/resources/integrations/types/IntegrationsDeleteProductMappingRequestProvider.ts +0 -9
  727. package/api/resources/integrations/types/IntegrationsDeleteProductMappingResponse.d.ts +0 -4
  728. package/api/resources/integrations/types/IntegrationsDeleteProductMappingResponse.js +0 -3
  729. package/api/resources/integrations/types/IntegrationsDeleteProductMappingResponse.ts +0 -5
  730. package/api/resources/integrations/types/IntegrationsGetBillableItemsRequestProvider.d.ts +0 -7
  731. package/api/resources/integrations/types/IntegrationsGetBillableItemsRequestProvider.js +0 -7
  732. package/api/resources/integrations/types/IntegrationsGetBillableItemsRequestProvider.ts +0 -9
  733. package/api/resources/integrations/types/IntegrationsGetBillableItemsResponse.d.ts +0 -25
  734. package/api/resources/integrations/types/IntegrationsGetBillableItemsResponse.js +0 -14
  735. package/api/resources/integrations/types/IntegrationsGetBillableItemsResponse.ts +0 -29
  736. package/api/resources/integrations/types/IntegrationsGetPackagesRequestProvider.d.ts +0 -7
  737. package/api/resources/integrations/types/IntegrationsGetPackagesRequestProvider.js +0 -7
  738. package/api/resources/integrations/types/IntegrationsGetPackagesRequestProvider.ts +0 -9
  739. package/api/resources/integrations/types/IntegrationsGetPackagesResponse.d.ts +0 -25
  740. package/api/resources/integrations/types/IntegrationsGetPackagesResponse.js +0 -3
  741. package/api/resources/integrations/types/IntegrationsGetPackagesResponse.ts +0 -29
  742. package/api/resources/integrations/types/IntegrationsGetPaymentMethodsRequestProvider.d.ts +0 -7
  743. package/api/resources/integrations/types/IntegrationsGetPaymentMethodsRequestProvider.js +0 -7
  744. package/api/resources/integrations/types/IntegrationsGetPaymentMethodsRequestProvider.ts +0 -9
  745. package/api/resources/integrations/types/IntegrationsGetPaymentMethodsResponse.d.ts +0 -16
  746. package/api/resources/integrations/types/IntegrationsGetPaymentMethodsResponse.js +0 -3
  747. package/api/resources/integrations/types/IntegrationsGetPaymentMethodsResponse.ts +0 -19
  748. package/api/resources/integrations/types/IntegrationsGetProductMappingsRequestProvider.d.ts +0 -7
  749. package/api/resources/integrations/types/IntegrationsGetProductMappingsRequestProvider.js +0 -7
  750. package/api/resources/integrations/types/IntegrationsGetProductMappingsRequestProvider.ts +0 -9
  751. package/api/resources/integrations/types/IntegrationsGetProductMappingsResponse.d.ts +0 -20
  752. package/api/resources/integrations/types/IntegrationsGetProductMappingsResponse.js +0 -3
  753. package/api/resources/integrations/types/IntegrationsGetProductMappingsResponse.ts +0 -23
  754. package/api/resources/integrations/types/IntegrationsGetStatusRequestProvider.d.ts +0 -7
  755. package/api/resources/integrations/types/IntegrationsGetStatusRequestProvider.js +0 -7
  756. package/api/resources/integrations/types/IntegrationsGetStatusRequestProvider.ts +0 -9
  757. package/api/resources/integrations/types/IntegrationsGetStatusResponse.d.ts +0 -53
  758. package/api/resources/integrations/types/IntegrationsGetStatusResponse.js +0 -24
  759. package/api/resources/integrations/types/IntegrationsGetStatusResponse.ts +0 -58
  760. package/api/resources/integrations/types/IntegrationsGetUnmappedAttemptsRequestProvider.d.ts +0 -7
  761. package/api/resources/integrations/types/IntegrationsGetUnmappedAttemptsRequestProvider.js +0 -7
  762. package/api/resources/integrations/types/IntegrationsGetUnmappedAttemptsRequestProvider.ts +0 -9
  763. package/api/resources/integrations/types/IntegrationsGetUnmappedAttemptsResponse.d.ts +0 -17
  764. package/api/resources/integrations/types/IntegrationsGetUnmappedAttemptsResponse.js +0 -3
  765. package/api/resources/integrations/types/IntegrationsGetUnmappedAttemptsResponse.ts +0 -20
  766. package/api/resources/integrations/types/IntegrationsInvoiceLookbackRequestProvider.d.ts +0 -7
  767. package/api/resources/integrations/types/IntegrationsInvoiceLookbackRequestProvider.js +0 -7
  768. package/api/resources/integrations/types/IntegrationsInvoiceLookbackRequestProvider.ts +0 -9
  769. package/api/resources/integrations/types/IntegrationsInvoiceLookbackResponse.d.ts +0 -4
  770. package/api/resources/integrations/types/IntegrationsInvoiceLookbackResponse.js +0 -3
  771. package/api/resources/integrations/types/IntegrationsInvoiceLookbackResponse.ts +0 -5
  772. package/api/resources/integrations/types/IntegrationsListResponse.d.ts +0 -56
  773. package/api/resources/integrations/types/IntegrationsListResponse.js +0 -27
  774. package/api/resources/integrations/types/IntegrationsListResponse.ts +0 -62
  775. package/api/resources/integrations/types/IntegrationsPaymentMappingsRequestProvider.d.ts +0 -7
  776. package/api/resources/integrations/types/IntegrationsPaymentMappingsRequestProvider.js +0 -7
  777. package/api/resources/integrations/types/IntegrationsPaymentMappingsRequestProvider.ts +0 -9
  778. package/api/resources/integrations/types/IntegrationsPaymentMappingsResponse.d.ts +0 -4
  779. package/api/resources/integrations/types/IntegrationsPaymentMappingsResponse.js +0 -3
  780. package/api/resources/integrations/types/IntegrationsPaymentMappingsResponse.ts +0 -5
  781. package/api/resources/integrations/types/IntegrationsPostPaymentMethodsRequestProvider.d.ts +0 -7
  782. package/api/resources/integrations/types/IntegrationsPostPaymentMethodsRequestProvider.js +0 -7
  783. package/api/resources/integrations/types/IntegrationsPostPaymentMethodsRequestProvider.ts +0 -9
  784. package/api/resources/integrations/types/IntegrationsPostPaymentMethodsResponse.d.ts +0 -16
  785. package/api/resources/integrations/types/IntegrationsPostPaymentMethodsResponse.js +0 -3
  786. package/api/resources/integrations/types/IntegrationsPostPaymentMethodsResponse.ts +0 -19
  787. package/api/resources/integrations/types/IntegrationsPutProductMappingsRequestProvider.d.ts +0 -7
  788. package/api/resources/integrations/types/IntegrationsPutProductMappingsRequestProvider.js +0 -7
  789. package/api/resources/integrations/types/IntegrationsPutProductMappingsRequestProvider.ts +0 -9
  790. package/api/resources/integrations/types/IntegrationsPutProductMappingsResponse.d.ts +0 -5
  791. package/api/resources/integrations/types/IntegrationsPutProductMappingsResponse.js +0 -3
  792. package/api/resources/integrations/types/IntegrationsPutProductMappingsResponse.ts +0 -6
  793. package/api/resources/integrations/types/IntegrationsResumeSyncRequestProvider.d.ts +0 -7
  794. package/api/resources/integrations/types/IntegrationsResumeSyncRequestProvider.js +0 -7
  795. package/api/resources/integrations/types/IntegrationsResumeSyncRequestProvider.ts +0 -9
  796. package/api/resources/integrations/types/IntegrationsResumeSyncResponse.d.ts +0 -6
  797. package/api/resources/integrations/types/IntegrationsResumeSyncResponse.js +0 -3
  798. package/api/resources/integrations/types/IntegrationsResumeSyncResponse.ts +0 -7
  799. package/api/resources/integrations/types/IntegrationsRetryLogRequestProvider.d.ts +0 -7
  800. package/api/resources/integrations/types/IntegrationsRetryLogRequestProvider.js +0 -7
  801. package/api/resources/integrations/types/IntegrationsRetryLogRequestProvider.ts +0 -9
  802. package/api/resources/integrations/types/IntegrationsRetryLogResponse.d.ts +0 -5
  803. package/api/resources/integrations/types/IntegrationsRetryLogResponse.js +0 -3
  804. package/api/resources/integrations/types/IntegrationsRetryLogResponse.ts +0 -6
  805. package/api/resources/integrations/types/IntegrationsSuggestMappingsRequestProvider.d.ts +0 -7
  806. package/api/resources/integrations/types/IntegrationsSuggestMappingsRequestProvider.js +0 -7
  807. package/api/resources/integrations/types/IntegrationsSuggestMappingsRequestProvider.ts +0 -9
  808. package/api/resources/integrations/types/IntegrationsSuggestMappingsResponse.d.ts +0 -16
  809. package/api/resources/integrations/types/IntegrationsSuggestMappingsResponse.js +0 -3
  810. package/api/resources/integrations/types/IntegrationsSuggestMappingsResponse.ts +0 -19
  811. package/api/resources/integrations/types/IntegrationsSyncIntervalRequestProvider.d.ts +0 -7
  812. package/api/resources/integrations/types/IntegrationsSyncIntervalRequestProvider.js +0 -7
  813. package/api/resources/integrations/types/IntegrationsSyncIntervalRequestProvider.ts +0 -9
  814. package/api/resources/integrations/types/IntegrationsSyncIntervalResponse.d.ts +0 -4
  815. package/api/resources/integrations/types/IntegrationsSyncIntervalResponse.js +0 -3
  816. package/api/resources/integrations/types/IntegrationsSyncIntervalResponse.ts +0 -5
  817. package/api/resources/integrations/types/IntegrationsSyncLogByIdRequestProvider.d.ts +0 -7
  818. package/api/resources/integrations/types/IntegrationsSyncLogByIdRequestProvider.js +0 -7
  819. package/api/resources/integrations/types/IntegrationsSyncLogByIdRequestProvider.ts +0 -9
  820. package/api/resources/integrations/types/IntegrationsSyncLogByIdResponse.d.ts +0 -5
  821. package/api/resources/integrations/types/IntegrationsSyncLogByIdResponse.js +0 -3
  822. package/api/resources/integrations/types/IntegrationsSyncLogByIdResponse.ts +0 -6
  823. package/api/resources/integrations/types/IntegrationsSyncLogsRequestJobType.d.ts +0 -8
  824. package/api/resources/integrations/types/IntegrationsSyncLogsRequestJobType.js +0 -8
  825. package/api/resources/integrations/types/IntegrationsSyncLogsRequestJobType.ts +0 -10
  826. package/api/resources/integrations/types/IntegrationsSyncLogsRequestLatestOnly.d.ts +0 -6
  827. package/api/resources/integrations/types/IntegrationsSyncLogsRequestLatestOnly.js +0 -6
  828. package/api/resources/integrations/types/IntegrationsSyncLogsRequestLatestOnly.ts +0 -8
  829. package/api/resources/integrations/types/IntegrationsSyncLogsRequestProvider.d.ts +0 -7
  830. package/api/resources/integrations/types/IntegrationsSyncLogsRequestProvider.js +0 -7
  831. package/api/resources/integrations/types/IntegrationsSyncLogsRequestProvider.ts +0 -9
  832. package/api/resources/integrations/types/IntegrationsSyncLogsRequestStatus.d.ts +0 -9
  833. package/api/resources/integrations/types/IntegrationsSyncLogsRequestStatus.js +0 -9
  834. package/api/resources/integrations/types/IntegrationsSyncLogsRequestStatus.ts +0 -11
  835. package/api/resources/integrations/types/IntegrationsSyncLogsResponse.d.ts +0 -5
  836. package/api/resources/integrations/types/IntegrationsSyncLogsResponse.js +0 -3
  837. package/api/resources/integrations/types/IntegrationsSyncLogsResponse.ts +0 -6
  838. package/api/resources/integrations/types/IntegrationsSyncStatesRequestProvider.d.ts +0 -7
  839. package/api/resources/integrations/types/IntegrationsSyncStatesRequestProvider.js +0 -7
  840. package/api/resources/integrations/types/IntegrationsSyncStatesRequestProvider.ts +0 -9
  841. package/api/resources/integrations/types/IntegrationsSyncStatesResponse.d.ts +0 -18
  842. package/api/resources/integrations/types/IntegrationsSyncStatesResponse.js +0 -3
  843. package/api/resources/integrations/types/IntegrationsSyncStatesResponse.ts +0 -21
  844. package/api/resources/integrations/types/IntegrationsSyncStatsByTypeRequestProvider.d.ts +0 -7
  845. package/api/resources/integrations/types/IntegrationsSyncStatsByTypeRequestProvider.js +0 -7
  846. package/api/resources/integrations/types/IntegrationsSyncStatsByTypeRequestProvider.ts +0 -9
  847. package/api/resources/integrations/types/IntegrationsSyncStatsByTypeResponse.d.ts +0 -5
  848. package/api/resources/integrations/types/IntegrationsSyncStatsByTypeResponse.js +0 -3
  849. package/api/resources/integrations/types/IntegrationsSyncStatsByTypeResponse.ts +0 -6
  850. package/api/resources/integrations/types/IntegrationsSyncStatsRequestProvider.d.ts +0 -7
  851. package/api/resources/integrations/types/IntegrationsSyncStatsRequestProvider.js +0 -7
  852. package/api/resources/integrations/types/IntegrationsSyncStatsRequestProvider.ts +0 -9
  853. package/api/resources/integrations/types/IntegrationsSyncStatsResponse.d.ts +0 -5
  854. package/api/resources/integrations/types/IntegrationsSyncStatsResponse.js +0 -3
  855. package/api/resources/integrations/types/IntegrationsSyncStatsResponse.ts +0 -6
  856. package/api/resources/integrations/types/IntegrationsSyncToggleRequestProvider.d.ts +0 -7
  857. package/api/resources/integrations/types/IntegrationsSyncToggleRequestProvider.js +0 -7
  858. package/api/resources/integrations/types/IntegrationsSyncToggleRequestProvider.ts +0 -9
  859. package/api/resources/integrations/types/IntegrationsSyncToggleResponse.d.ts +0 -4
  860. package/api/resources/integrations/types/IntegrationsSyncToggleResponse.js +0 -3
  861. package/api/resources/integrations/types/IntegrationsSyncToggleResponse.ts +0 -5
  862. package/api/resources/integrations/types/IntegrationsTestRequestProvider.d.ts +0 -7
  863. package/api/resources/integrations/types/IntegrationsTestRequestProvider.js +0 -7
  864. package/api/resources/integrations/types/IntegrationsTestRequestProvider.ts +0 -9
  865. package/api/resources/integrations/types/IntegrationsTestResponse.d.ts +0 -5
  866. package/api/resources/integrations/types/IntegrationsTestResponse.js +0 -3
  867. package/api/resources/integrations/types/IntegrationsTestResponse.ts +0 -6
  868. package/api/resources/integrations/types/IntegrationsTriggerSyncRequestProvider.d.ts +0 -7
  869. package/api/resources/integrations/types/IntegrationsTriggerSyncRequestProvider.js +0 -7
  870. package/api/resources/integrations/types/IntegrationsTriggerSyncRequestProvider.ts +0 -9
  871. package/api/resources/integrations/types/IntegrationsTriggerSyncResponse.d.ts +0 -5
  872. package/api/resources/integrations/types/IntegrationsTriggerSyncResponse.js +0 -3
  873. package/api/resources/integrations/types/IntegrationsTriggerSyncResponse.ts +0 -6
  874. package/api/resources/integrations/types/IntegrationsUpdateStatusRequestProvider.d.ts +0 -7
  875. package/api/resources/integrations/types/IntegrationsUpdateStatusRequestProvider.js +0 -7
  876. package/api/resources/integrations/types/IntegrationsUpdateStatusRequestProvider.ts +0 -9
  877. package/api/resources/integrations/types/IntegrationsUpdateStatusResponse.d.ts +0 -4
  878. package/api/resources/integrations/types/IntegrationsUpdateStatusResponse.js +0 -3
  879. package/api/resources/integrations/types/IntegrationsUpdateStatusResponse.ts +0 -5
  880. package/api/resources/integrations/types/index.d.ts +0 -61
  881. package/api/resources/integrations/types/index.js +0 -61
  882. package/api/resources/integrations/types/index.ts +0 -60
  883. package/api/resources/invoices/client/Client.d.ts +0 -297
  884. package/api/resources/invoices/client/Client.js +0 -964
  885. package/api/resources/invoices/client/Client.ts +0 -1290
  886. package/api/resources/invoices/client/index.d.ts +0 -2
  887. package/api/resources/invoices/client/index.js +0 -2
  888. package/api/resources/invoices/client/index.ts +0 -1
  889. package/api/resources/invoices/client/requests/InvoicesCommentsAddRequest.d.ts +0 -15
  890. package/api/resources/invoices/client/requests/InvoicesCommentsAddRequest.js +0 -3
  891. package/api/resources/invoices/client/requests/InvoicesCommentsAddRequest.ts +0 -16
  892. package/api/resources/invoices/client/requests/InvoicesCommentsListRequest.d.ts +0 -13
  893. package/api/resources/invoices/client/requests/InvoicesCommentsListRequest.js +0 -3
  894. package/api/resources/invoices/client/requests/InvoicesCommentsListRequest.ts +0 -14
  895. package/api/resources/invoices/client/requests/InvoicesCreateRequest.d.ts +0 -32
  896. package/api/resources/invoices/client/requests/InvoicesCreateRequest.js +0 -12
  897. package/api/resources/invoices/client/requests/InvoicesCreateRequest.ts +0 -36
  898. package/api/resources/invoices/client/requests/InvoicesCreditEligibilityRequest.d.ts +0 -10
  899. package/api/resources/invoices/client/requests/InvoicesCreditEligibilityRequest.js +0 -3
  900. package/api/resources/invoices/client/requests/InvoicesCreditEligibilityRequest.ts +0 -11
  901. package/api/resources/invoices/client/requests/InvoicesCreditNoteIssueRequest.d.ts +0 -56
  902. package/api/resources/invoices/client/requests/InvoicesCreditNoteIssueRequest.js +0 -23
  903. package/api/resources/invoices/client/requests/InvoicesCreditNoteIssueRequest.ts +0 -58
  904. package/api/resources/invoices/client/requests/InvoicesCreditNotesListRequest.d.ts +0 -10
  905. package/api/resources/invoices/client/requests/InvoicesCreditNotesListRequest.js +0 -3
  906. package/api/resources/invoices/client/requests/InvoicesCreditNotesListRequest.ts +0 -11
  907. package/api/resources/invoices/client/requests/InvoicesDeleteRequest.d.ts +0 -10
  908. package/api/resources/invoices/client/requests/InvoicesDeleteRequest.js +0 -3
  909. package/api/resources/invoices/client/requests/InvoicesDeleteRequest.ts +0 -11
  910. package/api/resources/invoices/client/requests/InvoicesExternalBatchRequest.d.ts +0 -74
  911. package/api/resources/invoices/client/requests/InvoicesExternalBatchRequest.js +0 -3
  912. package/api/resources/invoices/client/requests/InvoicesExternalBatchRequest.ts +0 -81
  913. package/api/resources/invoices/client/requests/InvoicesExternalUpsertByExternalIdRequest.d.ts +0 -50
  914. package/api/resources/invoices/client/requests/InvoicesExternalUpsertByExternalIdRequest.js +0 -3
  915. package/api/resources/invoices/client/requests/InvoicesExternalUpsertByExternalIdRequest.ts +0 -55
  916. package/api/resources/invoices/client/requests/InvoicesFinalizeRequest.d.ts +0 -12
  917. package/api/resources/invoices/client/requests/InvoicesFinalizeRequest.js +0 -3
  918. package/api/resources/invoices/client/requests/InvoicesFinalizeRequest.ts +0 -13
  919. package/api/resources/invoices/client/requests/InvoicesListRequest.d.ts +0 -15
  920. package/api/resources/invoices/client/requests/InvoicesListRequest.js +0 -3
  921. package/api/resources/invoices/client/requests/InvoicesListRequest.ts +0 -16
  922. package/api/resources/invoices/client/requests/InvoicesPayRequest.d.ts +0 -30
  923. package/api/resources/invoices/client/requests/InvoicesPayRequest.js +0 -12
  924. package/api/resources/invoices/client/requests/InvoicesPayRequest.ts +0 -32
  925. package/api/resources/invoices/client/requests/InvoicesRefundRequest.d.ts +0 -14
  926. package/api/resources/invoices/client/requests/InvoicesRefundRequest.js +0 -3
  927. package/api/resources/invoices/client/requests/InvoicesRefundRequest.ts +0 -15
  928. package/api/resources/invoices/client/requests/InvoicesRejectRequest.d.ts +0 -13
  929. package/api/resources/invoices/client/requests/InvoicesRejectRequest.js +0 -3
  930. package/api/resources/invoices/client/requests/InvoicesRejectRequest.ts +0 -14
  931. package/api/resources/invoices/client/requests/InvoicesRetrieveRequest.d.ts +0 -10
  932. package/api/resources/invoices/client/requests/InvoicesRetrieveRequest.js +0 -3
  933. package/api/resources/invoices/client/requests/InvoicesRetrieveRequest.ts +0 -11
  934. package/api/resources/invoices/client/requests/InvoicesSendRequest.d.ts +0 -23
  935. package/api/resources/invoices/client/requests/InvoicesSendRequest.js +0 -11
  936. package/api/resources/invoices/client/requests/InvoicesSendRequest.ts +0 -25
  937. package/api/resources/invoices/client/requests/InvoicesUpdateRequest.d.ts +0 -65
  938. package/api/resources/invoices/client/requests/InvoicesUpdateRequest.js +0 -31
  939. package/api/resources/invoices/client/requests/InvoicesUpdateRequest.ts +0 -68
  940. package/api/resources/invoices/client/requests/InvoicesVoidRequest.d.ts +0 -12
  941. package/api/resources/invoices/client/requests/InvoicesVoidRequest.js +0 -3
  942. package/api/resources/invoices/client/requests/InvoicesVoidRequest.ts +0 -13
  943. package/api/resources/invoices/client/requests/index.d.ts +0 -19
  944. package/api/resources/invoices/client/requests/index.js +0 -6
  945. package/api/resources/invoices/client/requests/index.ts +0 -18
  946. package/api/resources/invoices/index.d.ts +0 -3
  947. package/api/resources/invoices/index.js +0 -3
  948. package/api/resources/invoices/index.ts +0 -2
  949. package/api/resources/invoices/types/InvoicesExternalBatchResponse.d.ts +0 -23
  950. package/api/resources/invoices/types/InvoicesExternalBatchResponse.js +0 -3
  951. package/api/resources/invoices/types/InvoicesExternalBatchResponse.ts +0 -26
  952. package/api/resources/invoices/types/InvoicesExternalUpsertByExternalIdResponse.d.ts +0 -3
  953. package/api/resources/invoices/types/InvoicesExternalUpsertByExternalIdResponse.js +0 -3
  954. package/api/resources/invoices/types/InvoicesExternalUpsertByExternalIdResponse.ts +0 -5
  955. package/api/resources/invoices/types/index.d.ts +0 -3
  956. package/api/resources/invoices/types/index.js +0 -3
  957. package/api/resources/invoices/types/index.ts +0 -2
  958. package/api/resources/meters/client/Client.d.ts +0 -159
  959. package/api/resources/meters/client/Client.js +0 -473
  960. package/api/resources/meters/client/Client.ts +0 -629
  961. package/api/resources/meters/client/index.d.ts +0 -2
  962. package/api/resources/meters/client/index.js +0 -2
  963. package/api/resources/meters/client/index.ts +0 -1
  964. package/api/resources/meters/client/requests/CreateMeterPriceRequest.d.ts +0 -50
  965. package/api/resources/meters/client/requests/CreateMeterPriceRequest.js +0 -12
  966. package/api/resources/meters/client/requests/CreateMeterPriceRequest.ts +0 -53
  967. package/api/resources/meters/client/requests/CreateMeterRequest.d.ts +0 -45
  968. package/api/resources/meters/client/requests/CreateMeterRequest.js +0 -13
  969. package/api/resources/meters/client/requests/CreateMeterRequest.ts +0 -47
  970. package/api/resources/meters/client/requests/DeactivatePriceMetersRequest.d.ts +0 -14
  971. package/api/resources/meters/client/requests/DeactivatePriceMetersRequest.js +0 -3
  972. package/api/resources/meters/client/requests/DeactivatePriceMetersRequest.ts +0 -15
  973. package/api/resources/meters/client/requests/GetMetersRequest.d.ts +0 -11
  974. package/api/resources/meters/client/requests/GetMetersRequest.js +0 -3
  975. package/api/resources/meters/client/requests/GetMetersRequest.ts +0 -12
  976. package/api/resources/meters/client/requests/ListMetersRequest.d.ts +0 -17
  977. package/api/resources/meters/client/requests/ListMetersRequest.js +0 -3
  978. package/api/resources/meters/client/requests/ListMetersRequest.ts +0 -18
  979. package/api/resources/meters/client/requests/ListPricesMetersRequest.d.ts +0 -11
  980. package/api/resources/meters/client/requests/ListPricesMetersRequest.js +0 -3
  981. package/api/resources/meters/client/requests/ListPricesMetersRequest.ts +0 -12
  982. package/api/resources/meters/client/requests/UpdateMeterPriceRequest.d.ts +0 -34
  983. package/api/resources/meters/client/requests/UpdateMeterPriceRequest.js +0 -3
  984. package/api/resources/meters/client/requests/UpdateMeterPriceRequest.ts +0 -37
  985. package/api/resources/meters/client/requests/UpdateMeterRequest.d.ts +0 -42
  986. package/api/resources/meters/client/requests/UpdateMeterRequest.js +0 -11
  987. package/api/resources/meters/client/requests/UpdateMeterRequest.ts +0 -44
  988. package/api/resources/meters/client/requests/index.d.ts +0 -9
  989. package/api/resources/meters/client/requests/index.js +0 -4
  990. package/api/resources/meters/client/requests/index.ts +0 -8
  991. package/api/resources/meters/index.d.ts +0 -2
  992. package/api/resources/meters/index.js +0 -2
  993. package/api/resources/meters/index.ts +0 -1
  994. package/api/resources/orders/client/Client.d.ts +0 -123
  995. package/api/resources/orders/client/Client.js +0 -372
  996. package/api/resources/orders/client/Client.ts +0 -493
  997. package/api/resources/orders/client/index.d.ts +0 -2
  998. package/api/resources/orders/client/index.js +0 -2
  999. package/api/resources/orders/client/index.ts +0 -1
  1000. package/api/resources/orders/client/requests/CancelOrderRequest.d.ts +0 -13
  1001. package/api/resources/orders/client/requests/CancelOrderRequest.js +0 -3
  1002. package/api/resources/orders/client/requests/CancelOrderRequest.ts +0 -14
  1003. package/api/resources/orders/client/requests/CreateOrderRequest.d.ts +0 -50
  1004. package/api/resources/orders/client/requests/CreateOrderRequest.js +0 -10
  1005. package/api/resources/orders/client/requests/CreateOrderRequest.ts +0 -53
  1006. package/api/resources/orders/client/requests/FulfillOrderRequest.d.ts +0 -19
  1007. package/api/resources/orders/client/requests/FulfillOrderRequest.js +0 -3
  1008. package/api/resources/orders/client/requests/FulfillOrderRequest.ts +0 -20
  1009. package/api/resources/orders/client/requests/OrdersListRequest.d.ts +0 -24
  1010. package/api/resources/orders/client/requests/OrdersListRequest.js +0 -3
  1011. package/api/resources/orders/client/requests/OrdersListRequest.ts +0 -26
  1012. package/api/resources/orders/client/requests/OrdersRetrieveRequest.d.ts +0 -11
  1013. package/api/resources/orders/client/requests/OrdersRetrieveRequest.js +0 -3
  1014. package/api/resources/orders/client/requests/OrdersRetrieveRequest.ts +0 -12
  1015. package/api/resources/orders/client/requests/PayOrderRequest.d.ts +0 -17
  1016. package/api/resources/orders/client/requests/PayOrderRequest.js +0 -3
  1017. package/api/resources/orders/client/requests/PayOrderRequest.ts +0 -18
  1018. package/api/resources/orders/client/requests/index.d.ts +0 -7
  1019. package/api/resources/orders/client/requests/index.js +0 -2
  1020. package/api/resources/orders/client/requests/index.ts +0 -6
  1021. package/api/resources/orders/index.d.ts +0 -3
  1022. package/api/resources/orders/index.js +0 -3
  1023. package/api/resources/orders/index.ts +0 -2
  1024. package/api/resources/orders/types/OrdersListRequestBillingType.d.ts +0 -7
  1025. package/api/resources/orders/types/OrdersListRequestBillingType.js +0 -7
  1026. package/api/resources/orders/types/OrdersListRequestBillingType.ts +0 -9
  1027. package/api/resources/orders/types/OrdersListRequestStatus.d.ts +0 -12
  1028. package/api/resources/orders/types/OrdersListRequestStatus.js +0 -12
  1029. package/api/resources/orders/types/OrdersListRequestStatus.ts +0 -13
  1030. package/api/resources/orders/types/index.d.ts +0 -3
  1031. package/api/resources/orders/types/index.js +0 -3
  1032. package/api/resources/orders/types/index.ts +0 -2
  1033. package/api/resources/paymentIntents/client/Client.d.ts +0 -132
  1034. package/api/resources/paymentIntents/client/Client.js +0 -410
  1035. package/api/resources/paymentIntents/client/Client.ts +0 -557
  1036. package/api/resources/paymentIntents/client/index.d.ts +0 -2
  1037. package/api/resources/paymentIntents/client/index.js +0 -2
  1038. package/api/resources/paymentIntents/client/index.ts +0 -1
  1039. package/api/resources/paymentIntents/client/requests/CancelPaymentIntentRequest.d.ts +0 -24
  1040. package/api/resources/paymentIntents/client/requests/CancelPaymentIntentRequest.js +0 -13
  1041. package/api/resources/paymentIntents/client/requests/CancelPaymentIntentRequest.ts +0 -26
  1042. package/api/resources/paymentIntents/client/requests/CapturePaymentIntentRequest.d.ts +0 -13
  1043. package/api/resources/paymentIntents/client/requests/CapturePaymentIntentRequest.js +0 -3
  1044. package/api/resources/paymentIntents/client/requests/CapturePaymentIntentRequest.ts +0 -14
  1045. package/api/resources/paymentIntents/client/requests/ConfirmPaymentIntentRequest.d.ts +0 -15
  1046. package/api/resources/paymentIntents/client/requests/ConfirmPaymentIntentRequest.js +0 -3
  1047. package/api/resources/paymentIntents/client/requests/ConfirmPaymentIntentRequest.ts +0 -16
  1048. package/api/resources/paymentIntents/client/requests/CreatePaymentIntentRequest.d.ts +0 -40
  1049. package/api/resources/paymentIntents/client/requests/CreatePaymentIntentRequest.js +0 -10
  1050. package/api/resources/paymentIntents/client/requests/CreatePaymentIntentRequest.ts +0 -42
  1051. package/api/resources/paymentIntents/client/requests/PaymentIntentsListRequest.d.ts +0 -22
  1052. package/api/resources/paymentIntents/client/requests/PaymentIntentsListRequest.js +0 -3
  1053. package/api/resources/paymentIntents/client/requests/PaymentIntentsListRequest.ts +0 -24
  1054. package/api/resources/paymentIntents/client/requests/PaymentIntentsRetrieveRequest.d.ts +0 -11
  1055. package/api/resources/paymentIntents/client/requests/PaymentIntentsRetrieveRequest.js +0 -3
  1056. package/api/resources/paymentIntents/client/requests/PaymentIntentsRetrieveRequest.ts +0 -12
  1057. package/api/resources/paymentIntents/client/requests/UpdatePaymentIntentRequest.d.ts +0 -27
  1058. package/api/resources/paymentIntents/client/requests/UpdatePaymentIntentRequest.js +0 -3
  1059. package/api/resources/paymentIntents/client/requests/UpdatePaymentIntentRequest.ts +0 -28
  1060. package/api/resources/paymentIntents/client/requests/index.d.ts +0 -8
  1061. package/api/resources/paymentIntents/client/requests/index.js +0 -3
  1062. package/api/resources/paymentIntents/client/requests/index.ts +0 -7
  1063. package/api/resources/paymentIntents/index.d.ts +0 -3
  1064. package/api/resources/paymentIntents/index.js +0 -3
  1065. package/api/resources/paymentIntents/index.ts +0 -2
  1066. package/api/resources/paymentIntents/types/PaymentIntentsListRequestStatus.d.ts +0 -11
  1067. package/api/resources/paymentIntents/types/PaymentIntentsListRequestStatus.js +0 -11
  1068. package/api/resources/paymentIntents/types/PaymentIntentsListRequestStatus.ts +0 -13
  1069. package/api/resources/paymentIntents/types/index.d.ts +0 -2
  1070. package/api/resources/paymentIntents/types/index.js +0 -2
  1071. package/api/resources/paymentIntents/types/index.ts +0 -1
  1072. package/api/resources/paymentLinks/client/Client.d.ts +0 -151
  1073. package/api/resources/paymentLinks/client/Client.js +0 -478
  1074. package/api/resources/paymentLinks/client/Client.ts +0 -629
  1075. package/api/resources/paymentLinks/client/index.d.ts +0 -2
  1076. package/api/resources/paymentLinks/client/index.js +0 -2
  1077. package/api/resources/paymentLinks/client/index.ts +0 -1
  1078. package/api/resources/paymentLinks/client/requests/ActivatePaymentLinkRequest.d.ts +0 -11
  1079. package/api/resources/paymentLinks/client/requests/ActivatePaymentLinkRequest.js +0 -3
  1080. package/api/resources/paymentLinks/client/requests/ActivatePaymentLinkRequest.ts +0 -12
  1081. package/api/resources/paymentLinks/client/requests/ArchivePaymentLinkRequest.d.ts +0 -11
  1082. package/api/resources/paymentLinks/client/requests/ArchivePaymentLinkRequest.js +0 -3
  1083. package/api/resources/paymentLinks/client/requests/ArchivePaymentLinkRequest.ts +0 -12
  1084. package/api/resources/paymentLinks/client/requests/CreatePaymentLinkRequest.d.ts +0 -86
  1085. package/api/resources/paymentLinks/client/requests/CreatePaymentLinkRequest.js +0 -37
  1086. package/api/resources/paymentLinks/client/requests/CreatePaymentLinkRequest.ts +0 -95
  1087. package/api/resources/paymentLinks/client/requests/DeactivatePaymentLinkRequest.d.ts +0 -11
  1088. package/api/resources/paymentLinks/client/requests/DeactivatePaymentLinkRequest.js +0 -3
  1089. package/api/resources/paymentLinks/client/requests/DeactivatePaymentLinkRequest.ts +0 -12
  1090. package/api/resources/paymentLinks/client/requests/ExpirePaymentLinkRequest.d.ts +0 -12
  1091. package/api/resources/paymentLinks/client/requests/ExpirePaymentLinkRequest.js +0 -3
  1092. package/api/resources/paymentLinks/client/requests/ExpirePaymentLinkRequest.ts +0 -13
  1093. package/api/resources/paymentLinks/client/requests/GetPaymentLinkRequest.d.ts +0 -11
  1094. package/api/resources/paymentLinks/client/requests/GetPaymentLinkRequest.js +0 -3
  1095. package/api/resources/paymentLinks/client/requests/GetPaymentLinkRequest.ts +0 -12
  1096. package/api/resources/paymentLinks/client/requests/ListPaymentLinksRequest.d.ts +0 -13
  1097. package/api/resources/paymentLinks/client/requests/ListPaymentLinksRequest.js +0 -3
  1098. package/api/resources/paymentLinks/client/requests/ListPaymentLinksRequest.ts +0 -15
  1099. package/api/resources/paymentLinks/client/requests/UpdatePaymentLinkStatusRequest.d.ts +0 -23
  1100. package/api/resources/paymentLinks/client/requests/UpdatePaymentLinkStatusRequest.js +0 -11
  1101. package/api/resources/paymentLinks/client/requests/UpdatePaymentLinkStatusRequest.ts +0 -25
  1102. package/api/resources/paymentLinks/client/requests/index.d.ts +0 -9
  1103. package/api/resources/paymentLinks/client/requests/index.js +0 -3
  1104. package/api/resources/paymentLinks/client/requests/index.ts +0 -8
  1105. package/api/resources/paymentLinks/index.d.ts +0 -3
  1106. package/api/resources/paymentLinks/index.js +0 -3
  1107. package/api/resources/paymentLinks/index.ts +0 -2
  1108. package/api/resources/paymentLinks/types/ActivatePaymentLinkResponse.d.ts +0 -16
  1109. package/api/resources/paymentLinks/types/ActivatePaymentLinkResponse.js +0 -10
  1110. package/api/resources/paymentLinks/types/ActivatePaymentLinkResponse.ts +0 -18
  1111. package/api/resources/paymentLinks/types/ArchivePaymentLinkResponse.d.ts +0 -16
  1112. package/api/resources/paymentLinks/types/ArchivePaymentLinkResponse.js +0 -10
  1113. package/api/resources/paymentLinks/types/ArchivePaymentLinkResponse.ts +0 -18
  1114. package/api/resources/paymentLinks/types/CreatePaymentLinkResponse.d.ts +0 -84
  1115. package/api/resources/paymentLinks/types/CreatePaymentLinkResponse.js +0 -39
  1116. package/api/resources/paymentLinks/types/CreatePaymentLinkResponse.ts +0 -91
  1117. package/api/resources/paymentLinks/types/DeactivatePaymentLinkResponse.d.ts +0 -16
  1118. package/api/resources/paymentLinks/types/DeactivatePaymentLinkResponse.js +0 -10
  1119. package/api/resources/paymentLinks/types/DeactivatePaymentLinkResponse.ts +0 -18
  1120. package/api/resources/paymentLinks/types/ExpirePaymentLinkResponse.d.ts +0 -84
  1121. package/api/resources/paymentLinks/types/ExpirePaymentLinkResponse.js +0 -39
  1122. package/api/resources/paymentLinks/types/ExpirePaymentLinkResponse.ts +0 -91
  1123. package/api/resources/paymentLinks/types/GetPaymentLinkResponse.d.ts +0 -84
  1124. package/api/resources/paymentLinks/types/GetPaymentLinkResponse.js +0 -39
  1125. package/api/resources/paymentLinks/types/GetPaymentLinkResponse.ts +0 -91
  1126. package/api/resources/paymentLinks/types/ListPaymentLinksRequestMode.d.ts +0 -7
  1127. package/api/resources/paymentLinks/types/ListPaymentLinksRequestMode.js +0 -7
  1128. package/api/resources/paymentLinks/types/ListPaymentLinksRequestMode.ts +0 -9
  1129. package/api/resources/paymentLinks/types/ListPaymentLinksRequestStatus.d.ts +0 -8
  1130. package/api/resources/paymentLinks/types/ListPaymentLinksRequestStatus.js +0 -8
  1131. package/api/resources/paymentLinks/types/ListPaymentLinksRequestStatus.ts +0 -10
  1132. package/api/resources/paymentLinks/types/ListPaymentLinksResponse.d.ts +0 -98
  1133. package/api/resources/paymentLinks/types/ListPaymentLinksResponse.js +0 -45
  1134. package/api/resources/paymentLinks/types/ListPaymentLinksResponse.ts +0 -108
  1135. package/api/resources/paymentLinks/types/UpdatePaymentLinkStatusResponse.d.ts +0 -16
  1136. package/api/resources/paymentLinks/types/UpdatePaymentLinkStatusResponse.js +0 -10
  1137. package/api/resources/paymentLinks/types/UpdatePaymentLinkStatusResponse.ts +0 -18
  1138. package/api/resources/paymentLinks/types/index.d.ts +0 -11
  1139. package/api/resources/paymentLinks/types/index.js +0 -11
  1140. package/api/resources/paymentLinks/types/index.ts +0 -10
  1141. package/api/resources/payments/client/Client.d.ts +0 -52
  1142. package/api/resources/payments/client/Client.js +0 -135
  1143. package/api/resources/payments/client/Client.ts +0 -189
  1144. package/api/resources/payments/client/index.d.ts +0 -2
  1145. package/api/resources/payments/client/index.js +0 -2
  1146. package/api/resources/payments/client/index.ts +0 -1
  1147. package/api/resources/payments/client/requests/PaymentsListRequest.d.ts +0 -26
  1148. package/api/resources/payments/client/requests/PaymentsListRequest.js +0 -3
  1149. package/api/resources/payments/client/requests/PaymentsListRequest.ts +0 -28
  1150. package/api/resources/payments/client/requests/PaymentsRetrieveRequest.d.ts +0 -11
  1151. package/api/resources/payments/client/requests/PaymentsRetrieveRequest.js +0 -3
  1152. package/api/resources/payments/client/requests/PaymentsRetrieveRequest.ts +0 -12
  1153. package/api/resources/payments/client/requests/index.d.ts +0 -3
  1154. package/api/resources/payments/client/requests/index.js +0 -2
  1155. package/api/resources/payments/client/requests/index.ts +0 -2
  1156. package/api/resources/payments/index.d.ts +0 -3
  1157. package/api/resources/payments/index.js +0 -3
  1158. package/api/resources/payments/index.ts +0 -2
  1159. package/api/resources/payments/types/PaymentsListRequestPaymentChannel.d.ts +0 -9
  1160. package/api/resources/payments/types/PaymentsListRequestPaymentChannel.js +0 -9
  1161. package/api/resources/payments/types/PaymentsListRequestPaymentChannel.ts +0 -11
  1162. package/api/resources/payments/types/PaymentsListRequestStatus.d.ts +0 -13
  1163. package/api/resources/payments/types/PaymentsListRequestStatus.js +0 -13
  1164. package/api/resources/payments/types/PaymentsListRequestStatus.ts +0 -14
  1165. package/api/resources/payments/types/index.d.ts +0 -3
  1166. package/api/resources/payments/types/index.js +0 -3
  1167. package/api/resources/payments/types/index.ts +0 -2
  1168. package/api/resources/payouts/client/Client.d.ts +0 -72
  1169. package/api/resources/payouts/client/Client.js +0 -199
  1170. package/api/resources/payouts/client/Client.ts +0 -260
  1171. package/api/resources/payouts/client/index.d.ts +0 -2
  1172. package/api/resources/payouts/client/index.js +0 -2
  1173. package/api/resources/payouts/client/index.ts +0 -1
  1174. package/api/resources/payouts/client/requests/PayoutsListRequest.d.ts +0 -24
  1175. package/api/resources/payouts/client/requests/PayoutsListRequest.js +0 -3
  1176. package/api/resources/payouts/client/requests/PayoutsListRequest.ts +0 -26
  1177. package/api/resources/payouts/client/requests/PayoutsPaymentsListRequest.d.ts +0 -15
  1178. package/api/resources/payouts/client/requests/PayoutsPaymentsListRequest.js +0 -3
  1179. package/api/resources/payouts/client/requests/PayoutsPaymentsListRequest.ts +0 -16
  1180. package/api/resources/payouts/client/requests/PayoutsRetrieveRequest.d.ts +0 -11
  1181. package/api/resources/payouts/client/requests/PayoutsRetrieveRequest.js +0 -3
  1182. package/api/resources/payouts/client/requests/PayoutsRetrieveRequest.ts +0 -12
  1183. package/api/resources/payouts/client/requests/index.d.ts +0 -4
  1184. package/api/resources/payouts/client/requests/index.js +0 -2
  1185. package/api/resources/payouts/client/requests/index.ts +0 -3
  1186. package/api/resources/payouts/index.d.ts +0 -3
  1187. package/api/resources/payouts/index.js +0 -3
  1188. package/api/resources/payouts/index.ts +0 -2
  1189. package/api/resources/payouts/types/PayoutsListRequestStatus.d.ts +0 -10
  1190. package/api/resources/payouts/types/PayoutsListRequestStatus.js +0 -10
  1191. package/api/resources/payouts/types/PayoutsListRequestStatus.ts +0 -11
  1192. package/api/resources/payouts/types/PayoutsListResponse.d.ts +0 -14
  1193. package/api/resources/payouts/types/PayoutsListResponse.js +0 -3
  1194. package/api/resources/payouts/types/PayoutsListResponse.ts +0 -17
  1195. package/api/resources/payouts/types/PayoutsPaymentsListResponse.d.ts +0 -14
  1196. package/api/resources/payouts/types/PayoutsPaymentsListResponse.js +0 -3
  1197. package/api/resources/payouts/types/PayoutsPaymentsListResponse.ts +0 -17
  1198. package/api/resources/payouts/types/PayoutsRetrieveResponse.d.ts +0 -5
  1199. package/api/resources/payouts/types/PayoutsRetrieveResponse.js +0 -3
  1200. package/api/resources/payouts/types/PayoutsRetrieveResponse.ts +0 -7
  1201. package/api/resources/payouts/types/index.d.ts +0 -5
  1202. package/api/resources/payouts/types/index.js +0 -5
  1203. package/api/resources/payouts/types/index.ts +0 -4
  1204. package/api/resources/prices/client/Client.d.ts +0 -100
  1205. package/api/resources/prices/client/Client.js +0 -303
  1206. package/api/resources/prices/client/Client.ts +0 -408
  1207. package/api/resources/prices/client/index.d.ts +0 -2
  1208. package/api/resources/prices/client/index.js +0 -2
  1209. package/api/resources/prices/client/index.ts +0 -1
  1210. package/api/resources/prices/client/requests/CreatePriceRequest.d.ts +0 -82
  1211. package/api/resources/prices/client/requests/CreatePriceRequest.js +0 -33
  1212. package/api/resources/prices/client/requests/CreatePriceRequest.ts +0 -85
  1213. package/api/resources/prices/client/requests/PricesArchiveRequest.d.ts +0 -11
  1214. package/api/resources/prices/client/requests/PricesArchiveRequest.js +0 -3
  1215. package/api/resources/prices/client/requests/PricesArchiveRequest.ts +0 -12
  1216. package/api/resources/prices/client/requests/PricesListRequest.d.ts +0 -26
  1217. package/api/resources/prices/client/requests/PricesListRequest.js +0 -3
  1218. package/api/resources/prices/client/requests/PricesListRequest.ts +0 -28
  1219. package/api/resources/prices/client/requests/PricesRetrieveRequest.d.ts +0 -11
  1220. package/api/resources/prices/client/requests/PricesRetrieveRequest.js +0 -3
  1221. package/api/resources/prices/client/requests/PricesRetrieveRequest.ts +0 -12
  1222. package/api/resources/prices/client/requests/UpdatePriceRequest.d.ts +0 -19
  1223. package/api/resources/prices/client/requests/UpdatePriceRequest.js +0 -3
  1224. package/api/resources/prices/client/requests/UpdatePriceRequest.ts +0 -20
  1225. package/api/resources/prices/client/requests/index.d.ts +0 -6
  1226. package/api/resources/prices/client/requests/index.js +0 -2
  1227. package/api/resources/prices/client/requests/index.ts +0 -5
  1228. package/api/resources/prices/index.d.ts +0 -3
  1229. package/api/resources/prices/index.js +0 -3
  1230. package/api/resources/prices/index.ts +0 -2
  1231. package/api/resources/prices/types/PricesListRequestActive.d.ts +0 -7
  1232. package/api/resources/prices/types/PricesListRequestActive.js +0 -7
  1233. package/api/resources/prices/types/PricesListRequestActive.ts +0 -8
  1234. package/api/resources/prices/types/PricesListRequestPricingModel.d.ts +0 -8
  1235. package/api/resources/prices/types/PricesListRequestPricingModel.js +0 -8
  1236. package/api/resources/prices/types/PricesListRequestPricingModel.ts +0 -10
  1237. package/api/resources/prices/types/PricesListRequestType.d.ts +0 -7
  1238. package/api/resources/prices/types/PricesListRequestType.js +0 -7
  1239. package/api/resources/prices/types/PricesListRequestType.ts +0 -8
  1240. package/api/resources/prices/types/index.d.ts +0 -4
  1241. package/api/resources/prices/types/index.js +0 -4
  1242. package/api/resources/prices/types/index.ts +0 -3
  1243. package/api/resources/products/client/Client.d.ts +0 -130
  1244. package/api/resources/products/client/Client.js +0 -379
  1245. package/api/resources/products/client/Client.ts +0 -496
  1246. package/api/resources/products/client/index.d.ts +0 -2
  1247. package/api/resources/products/client/index.js +0 -2
  1248. package/api/resources/products/client/index.ts +0 -1
  1249. package/api/resources/products/client/requests/CreateProductRequest.d.ts +0 -80
  1250. package/api/resources/products/client/requests/CreateProductRequest.js +0 -38
  1251. package/api/resources/products/client/requests/CreateProductRequest.ts +0 -82
  1252. package/api/resources/products/client/requests/ProductsExternalBatchRequest.d.ts +0 -65
  1253. package/api/resources/products/client/requests/ProductsExternalBatchRequest.js +0 -23
  1254. package/api/resources/products/client/requests/ProductsExternalBatchRequest.ts +0 -69
  1255. package/api/resources/products/client/requests/ProductsExternalUpsertRequest.d.ts +0 -56
  1256. package/api/resources/products/client/requests/ProductsExternalUpsertRequest.js +0 -17
  1257. package/api/resources/products/client/requests/ProductsExternalUpsertRequest.ts +0 -58
  1258. package/api/resources/products/client/requests/ProductsListRequest.d.ts +0 -13
  1259. package/api/resources/products/client/requests/ProductsListRequest.js +0 -3
  1260. package/api/resources/products/client/requests/ProductsListRequest.ts +0 -14
  1261. package/api/resources/products/client/requests/ProductsRetrieveRequest.d.ts +0 -10
  1262. package/api/resources/products/client/requests/ProductsRetrieveRequest.js +0 -3
  1263. package/api/resources/products/client/requests/ProductsRetrieveRequest.ts +0 -11
  1264. package/api/resources/products/client/requests/UpdateProductRequest.d.ts +0 -60
  1265. package/api/resources/products/client/requests/UpdateProductRequest.js +0 -28
  1266. package/api/resources/products/client/requests/UpdateProductRequest.ts +0 -62
  1267. package/api/resources/products/client/requests/index.d.ts +0 -7
  1268. package/api/resources/products/client/requests/index.js +0 -5
  1269. package/api/resources/products/client/requests/index.ts +0 -6
  1270. package/api/resources/products/index.d.ts +0 -3
  1271. package/api/resources/products/index.js +0 -3
  1272. package/api/resources/products/index.ts +0 -2
  1273. package/api/resources/products/types/ProductsExternalBatchResponse.d.ts +0 -20
  1274. package/api/resources/products/types/ProductsExternalBatchResponse.js +0 -3
  1275. package/api/resources/products/types/ProductsExternalBatchResponse.ts +0 -23
  1276. package/api/resources/products/types/ProductsExternalUpsertResponse.d.ts +0 -32
  1277. package/api/resources/products/types/ProductsExternalUpsertResponse.js +0 -12
  1278. package/api/resources/products/types/ProductsExternalUpsertResponse.ts +0 -35
  1279. package/api/resources/products/types/index.d.ts +0 -3
  1280. package/api/resources/products/types/index.js +0 -3
  1281. package/api/resources/products/types/index.ts +0 -2
  1282. package/api/resources/refunds/client/Client.d.ts +0 -75
  1283. package/api/resources/refunds/client/Client.js +0 -202
  1284. package/api/resources/refunds/client/Client.ts +0 -272
  1285. package/api/resources/refunds/client/index.d.ts +0 -2
  1286. package/api/resources/refunds/client/index.js +0 -2
  1287. package/api/resources/refunds/client/index.ts +0 -1
  1288. package/api/resources/refunds/client/requests/CreateRefundInput.d.ts +0 -30
  1289. package/api/resources/refunds/client/requests/CreateRefundInput.js +0 -15
  1290. package/api/resources/refunds/client/requests/CreateRefundInput.ts +0 -32
  1291. package/api/resources/refunds/client/requests/RefundsListRequest.d.ts +0 -28
  1292. package/api/resources/refunds/client/requests/RefundsListRequest.js +0 -3
  1293. package/api/resources/refunds/client/requests/RefundsListRequest.ts +0 -30
  1294. package/api/resources/refunds/client/requests/RefundsRetrieveRequest.d.ts +0 -11
  1295. package/api/resources/refunds/client/requests/RefundsRetrieveRequest.js +0 -3
  1296. package/api/resources/refunds/client/requests/RefundsRetrieveRequest.ts +0 -12
  1297. package/api/resources/refunds/client/requests/index.d.ts +0 -4
  1298. package/api/resources/refunds/client/requests/index.js +0 -2
  1299. package/api/resources/refunds/client/requests/index.ts +0 -3
  1300. package/api/resources/refunds/index.d.ts +0 -3
  1301. package/api/resources/refunds/index.js +0 -3
  1302. package/api/resources/refunds/index.ts +0 -2
  1303. package/api/resources/refunds/types/RefundsListRequestReason.d.ts +0 -12
  1304. package/api/resources/refunds/types/RefundsListRequestReason.js +0 -12
  1305. package/api/resources/refunds/types/RefundsListRequestReason.ts +0 -13
  1306. package/api/resources/refunds/types/RefundsListRequestStatus.d.ts +0 -10
  1307. package/api/resources/refunds/types/RefundsListRequestStatus.js +0 -10
  1308. package/api/resources/refunds/types/RefundsListRequestStatus.ts +0 -11
  1309. package/api/resources/refunds/types/index.d.ts +0 -3
  1310. package/api/resources/refunds/types/index.js +0 -3
  1311. package/api/resources/refunds/types/index.ts +0 -2
  1312. package/api/resources/subscriptionSchedules/client/Client.d.ts +0 -122
  1313. package/api/resources/subscriptionSchedules/client/Client.js +0 -372
  1314. package/api/resources/subscriptionSchedules/client/Client.ts +0 -503
  1315. package/api/resources/subscriptionSchedules/client/index.d.ts +0 -2
  1316. package/api/resources/subscriptionSchedules/client/index.js +0 -2
  1317. package/api/resources/subscriptionSchedules/client/index.ts +0 -1
  1318. package/api/resources/subscriptionSchedules/client/requests/CancelSubscriptionScheduleRequest.d.ts +0 -15
  1319. package/api/resources/subscriptionSchedules/client/requests/CancelSubscriptionScheduleRequest.js +0 -3
  1320. package/api/resources/subscriptionSchedules/client/requests/CancelSubscriptionScheduleRequest.ts +0 -16
  1321. package/api/resources/subscriptionSchedules/client/requests/CreateSubscriptionScheduleRequest.d.ts +0 -39
  1322. package/api/resources/subscriptionSchedules/client/requests/CreateSubscriptionScheduleRequest.js +0 -10
  1323. package/api/resources/subscriptionSchedules/client/requests/CreateSubscriptionScheduleRequest.ts +0 -42
  1324. package/api/resources/subscriptionSchedules/client/requests/ReleaseSubscriptionScheduleRequest.d.ts +0 -13
  1325. package/api/resources/subscriptionSchedules/client/requests/ReleaseSubscriptionScheduleRequest.js +0 -3
  1326. package/api/resources/subscriptionSchedules/client/requests/ReleaseSubscriptionScheduleRequest.ts +0 -14
  1327. package/api/resources/subscriptionSchedules/client/requests/SubscriptionSchedulesListRequest.d.ts +0 -24
  1328. package/api/resources/subscriptionSchedules/client/requests/SubscriptionSchedulesListRequest.js +0 -3
  1329. package/api/resources/subscriptionSchedules/client/requests/SubscriptionSchedulesListRequest.ts +0 -26
  1330. package/api/resources/subscriptionSchedules/client/requests/SubscriptionSchedulesRetrieveRequest.d.ts +0 -11
  1331. package/api/resources/subscriptionSchedules/client/requests/SubscriptionSchedulesRetrieveRequest.js +0 -3
  1332. package/api/resources/subscriptionSchedules/client/requests/SubscriptionSchedulesRetrieveRequest.ts +0 -12
  1333. package/api/resources/subscriptionSchedules/client/requests/UpdateSubscriptionScheduleRequest.d.ts +0 -35
  1334. package/api/resources/subscriptionSchedules/client/requests/UpdateSubscriptionScheduleRequest.js +0 -16
  1335. package/api/resources/subscriptionSchedules/client/requests/UpdateSubscriptionScheduleRequest.ts +0 -38
  1336. package/api/resources/subscriptionSchedules/client/requests/index.d.ts +0 -7
  1337. package/api/resources/subscriptionSchedules/client/requests/index.js +0 -3
  1338. package/api/resources/subscriptionSchedules/client/requests/index.ts +0 -6
  1339. package/api/resources/subscriptionSchedules/index.d.ts +0 -3
  1340. package/api/resources/subscriptionSchedules/index.js +0 -3
  1341. package/api/resources/subscriptionSchedules/index.ts +0 -2
  1342. package/api/resources/subscriptionSchedules/types/SubscriptionSchedulesListRequestStatus.d.ts +0 -10
  1343. package/api/resources/subscriptionSchedules/types/SubscriptionSchedulesListRequestStatus.js +0 -10
  1344. package/api/resources/subscriptionSchedules/types/SubscriptionSchedulesListRequestStatus.ts +0 -12
  1345. package/api/resources/subscriptionSchedules/types/index.d.ts +0 -2
  1346. package/api/resources/subscriptionSchedules/types/index.js +0 -2
  1347. package/api/resources/subscriptionSchedules/types/index.ts +0 -1
  1348. package/api/resources/subscriptions/client/Client.d.ts +0 -309
  1349. package/api/resources/subscriptions/client/Client.js +0 -971
  1350. package/api/resources/subscriptions/client/Client.ts +0 -1293
  1351. package/api/resources/subscriptions/client/index.d.ts +0 -2
  1352. package/api/resources/subscriptions/client/index.js +0 -2
  1353. package/api/resources/subscriptions/client/index.ts +0 -1
  1354. package/api/resources/subscriptions/client/requests/CancelSubscriptionInput.d.ts +0 -24
  1355. package/api/resources/subscriptions/client/requests/CancelSubscriptionInput.js +0 -10
  1356. package/api/resources/subscriptions/client/requests/CancelSubscriptionInput.ts +0 -26
  1357. package/api/resources/subscriptions/client/requests/CreateSubscriptionItemInput.d.ts +0 -38
  1358. package/api/resources/subscriptions/client/requests/CreateSubscriptionItemInput.js +0 -11
  1359. package/api/resources/subscriptions/client/requests/CreateSubscriptionItemInput.ts +0 -40
  1360. package/api/resources/subscriptions/client/requests/PauseSubscriptionInput.d.ts +0 -24
  1361. package/api/resources/subscriptions/client/requests/PauseSubscriptionInput.js +0 -11
  1362. package/api/resources/subscriptions/client/requests/PauseSubscriptionInput.ts +0 -26
  1363. package/api/resources/subscriptions/client/requests/SubscriptionItemsDeleteRequest.d.ts +0 -14
  1364. package/api/resources/subscriptions/client/requests/SubscriptionItemsDeleteRequest.js +0 -3
  1365. package/api/resources/subscriptions/client/requests/SubscriptionItemsDeleteRequest.ts +0 -15
  1366. package/api/resources/subscriptions/client/requests/SubscriptionItemsListRequest.d.ts +0 -15
  1367. package/api/resources/subscriptions/client/requests/SubscriptionItemsListRequest.js +0 -3
  1368. package/api/resources/subscriptions/client/requests/SubscriptionItemsListRequest.ts +0 -16
  1369. package/api/resources/subscriptions/client/requests/SubscriptionsCancelRequest.d.ts +0 -11
  1370. package/api/resources/subscriptions/client/requests/SubscriptionsCancelRequest.js +0 -3
  1371. package/api/resources/subscriptions/client/requests/SubscriptionsCancelRequest.ts +0 -12
  1372. package/api/resources/subscriptions/client/requests/SubscriptionsChangePlanRequest.d.ts +0 -24
  1373. package/api/resources/subscriptions/client/requests/SubscriptionsChangePlanRequest.js +0 -10
  1374. package/api/resources/subscriptions/client/requests/SubscriptionsChangePlanRequest.ts +0 -26
  1375. package/api/resources/subscriptions/client/requests/SubscriptionsChangeQuantityRequest.d.ts +0 -24
  1376. package/api/resources/subscriptions/client/requests/SubscriptionsChangeQuantityRequest.js +0 -10
  1377. package/api/resources/subscriptions/client/requests/SubscriptionsChangeQuantityRequest.ts +0 -26
  1378. package/api/resources/subscriptions/client/requests/SubscriptionsCreateRequest.d.ts +0 -42
  1379. package/api/resources/subscriptions/client/requests/SubscriptionsCreateRequest.js +0 -15
  1380. package/api/resources/subscriptions/client/requests/SubscriptionsCreateRequest.ts +0 -44
  1381. package/api/resources/subscriptions/client/requests/SubscriptionsListRequest.d.ts +0 -16
  1382. package/api/resources/subscriptions/client/requests/SubscriptionsListRequest.js +0 -3
  1383. package/api/resources/subscriptions/client/requests/SubscriptionsListRequest.ts +0 -18
  1384. package/api/resources/subscriptions/client/requests/SubscriptionsPreviewRenewalRequest.d.ts +0 -12
  1385. package/api/resources/subscriptions/client/requests/SubscriptionsPreviewRenewalRequest.js +0 -3
  1386. package/api/resources/subscriptions/client/requests/SubscriptionsPreviewRenewalRequest.ts +0 -13
  1387. package/api/resources/subscriptions/client/requests/SubscriptionsReactivateRequest.d.ts +0 -11
  1388. package/api/resources/subscriptions/client/requests/SubscriptionsReactivateRequest.js +0 -3
  1389. package/api/resources/subscriptions/client/requests/SubscriptionsReactivateRequest.ts +0 -12
  1390. package/api/resources/subscriptions/client/requests/SubscriptionsResumeRequest.d.ts +0 -11
  1391. package/api/resources/subscriptions/client/requests/SubscriptionsResumeRequest.js +0 -3
  1392. package/api/resources/subscriptions/client/requests/SubscriptionsResumeRequest.ts +0 -12
  1393. package/api/resources/subscriptions/client/requests/SubscriptionsRetrieveRequest.d.ts +0 -11
  1394. package/api/resources/subscriptions/client/requests/SubscriptionsRetrieveRequest.js +0 -3
  1395. package/api/resources/subscriptions/client/requests/SubscriptionsRetrieveRequest.ts +0 -12
  1396. package/api/resources/subscriptions/client/requests/SubscriptionsUpdateRequest.d.ts +0 -30
  1397. package/api/resources/subscriptions/client/requests/SubscriptionsUpdateRequest.js +0 -13
  1398. package/api/resources/subscriptions/client/requests/SubscriptionsUpdateRequest.ts +0 -32
  1399. package/api/resources/subscriptions/client/requests/UpdateSubscriptionItemInput.d.ts +0 -33
  1400. package/api/resources/subscriptions/client/requests/UpdateSubscriptionItemInput.js +0 -11
  1401. package/api/resources/subscriptions/client/requests/UpdateSubscriptionItemInput.ts +0 -35
  1402. package/api/resources/subscriptions/client/requests/index.d.ts +0 -17
  1403. package/api/resources/subscriptions/client/requests/index.js +0 -9
  1404. package/api/resources/subscriptions/client/requests/index.ts +0 -16
  1405. package/api/resources/subscriptions/index.d.ts +0 -3
  1406. package/api/resources/subscriptions/index.js +0 -3
  1407. package/api/resources/subscriptions/index.ts +0 -2
  1408. package/api/resources/subscriptions/types/SubscriptionsListRequestStatus.d.ts +0 -12
  1409. package/api/resources/subscriptions/types/SubscriptionsListRequestStatus.js +0 -12
  1410. package/api/resources/subscriptions/types/SubscriptionsListRequestStatus.ts +0 -14
  1411. package/api/resources/subscriptions/types/index.d.ts +0 -2
  1412. package/api/resources/subscriptions/types/index.js +0 -2
  1413. package/api/resources/subscriptions/types/index.ts +0 -1
  1414. package/api/resources/syncState/client/Client.d.ts +0 -52
  1415. package/api/resources/syncState/client/Client.js +0 -129
  1416. package/api/resources/syncState/client/Client.ts +0 -183
  1417. package/api/resources/syncState/client/index.d.ts +0 -2
  1418. package/api/resources/syncState/client/index.js +0 -2
  1419. package/api/resources/syncState/client/index.ts +0 -1
  1420. package/api/resources/syncState/client/requests/SyncStateListRequest.d.ts +0 -14
  1421. package/api/resources/syncState/client/requests/SyncStateListRequest.js +0 -3
  1422. package/api/resources/syncState/client/requests/SyncStateListRequest.ts +0 -15
  1423. package/api/resources/syncState/client/requests/SyncStateUpdateRequest.d.ts +0 -31
  1424. package/api/resources/syncState/client/requests/SyncStateUpdateRequest.js +0 -11
  1425. package/api/resources/syncState/client/requests/SyncStateUpdateRequest.ts +0 -33
  1426. package/api/resources/syncState/client/requests/index.d.ts +0 -3
  1427. package/api/resources/syncState/client/requests/index.js +0 -2
  1428. package/api/resources/syncState/client/requests/index.ts +0 -2
  1429. package/api/resources/syncState/index.d.ts +0 -3
  1430. package/api/resources/syncState/index.js +0 -3
  1431. package/api/resources/syncState/index.ts +0 -2
  1432. package/api/resources/syncState/types/SyncStateListResponse.d.ts +0 -31
  1433. package/api/resources/syncState/types/SyncStateListResponse.js +0 -17
  1434. package/api/resources/syncState/types/SyncStateListResponse.ts +0 -35
  1435. package/api/resources/syncState/types/SyncStateUpdateResponse.d.ts +0 -29
  1436. package/api/resources/syncState/types/SyncStateUpdateResponse.js +0 -14
  1437. package/api/resources/syncState/types/SyncStateUpdateResponse.ts +0 -32
  1438. package/api/resources/syncState/types/index.d.ts +0 -3
  1439. package/api/resources/syncState/types/index.js +0 -3
  1440. package/api/resources/syncState/types/index.ts +0 -2
  1441. package/api/resources/terminalDevices/client/Client.d.ts +0 -50
  1442. package/api/resources/terminalDevices/client/Client.js +0 -124
  1443. package/api/resources/terminalDevices/client/Client.ts +0 -168
  1444. package/api/resources/terminalDevices/client/index.d.ts +0 -2
  1445. package/api/resources/terminalDevices/client/index.js +0 -2
  1446. package/api/resources/terminalDevices/client/index.ts +0 -1
  1447. package/api/resources/terminalDevices/client/requests/ListTerminalDevicesRequest.d.ts +0 -12
  1448. package/api/resources/terminalDevices/client/requests/ListTerminalDevicesRequest.js +0 -3
  1449. package/api/resources/terminalDevices/client/requests/ListTerminalDevicesRequest.ts +0 -14
  1450. package/api/resources/terminalDevices/client/requests/RetrieveTerminalDevicesRequest.d.ts +0 -11
  1451. package/api/resources/terminalDevices/client/requests/RetrieveTerminalDevicesRequest.js +0 -3
  1452. package/api/resources/terminalDevices/client/requests/RetrieveTerminalDevicesRequest.ts +0 -12
  1453. package/api/resources/terminalDevices/client/requests/index.d.ts +0 -3
  1454. package/api/resources/terminalDevices/client/requests/index.js +0 -2
  1455. package/api/resources/terminalDevices/client/requests/index.ts +0 -2
  1456. package/api/resources/terminalDevices/index.d.ts +0 -3
  1457. package/api/resources/terminalDevices/index.js +0 -3
  1458. package/api/resources/terminalDevices/index.ts +0 -2
  1459. package/api/resources/terminalDevices/types/ListTerminalDevicesRequestStatus.d.ts +0 -8
  1460. package/api/resources/terminalDevices/types/ListTerminalDevicesRequestStatus.js +0 -8
  1461. package/api/resources/terminalDevices/types/ListTerminalDevicesRequestStatus.ts +0 -10
  1462. package/api/resources/terminalDevices/types/index.d.ts +0 -2
  1463. package/api/resources/terminalDevices/types/index.js +0 -2
  1464. package/api/resources/terminalDevices/types/index.ts +0 -1
  1465. package/api/resources/terminalPayments/client/Client.d.ts +0 -134
  1466. package/api/resources/terminalPayments/client/Client.js +0 -374
  1467. package/api/resources/terminalPayments/client/Client.ts +0 -503
  1468. package/api/resources/terminalPayments/client/index.d.ts +0 -2
  1469. package/api/resources/terminalPayments/client/index.js +0 -2
  1470. package/api/resources/terminalPayments/client/index.ts +0 -1
  1471. package/api/resources/terminalPayments/client/requests/CancelTerminalPaymentsRequest.d.ts +0 -11
  1472. package/api/resources/terminalPayments/client/requests/CancelTerminalPaymentsRequest.js +0 -3
  1473. package/api/resources/terminalPayments/client/requests/CancelTerminalPaymentsRequest.ts +0 -12
  1474. package/api/resources/terminalPayments/client/requests/CreateTerminalPaymentRequest.d.ts +0 -21
  1475. package/api/resources/terminalPayments/client/requests/CreateTerminalPaymentRequest.js +0 -3
  1476. package/api/resources/terminalPayments/client/requests/CreateTerminalPaymentRequest.ts +0 -22
  1477. package/api/resources/terminalPayments/client/requests/ListTerminalPaymentsRequest.d.ts +0 -20
  1478. package/api/resources/terminalPayments/client/requests/ListTerminalPaymentsRequest.js +0 -3
  1479. package/api/resources/terminalPayments/client/requests/ListTerminalPaymentsRequest.ts +0 -22
  1480. package/api/resources/terminalPayments/client/requests/RefundTerminalPaymentRequest.d.ts +0 -15
  1481. package/api/resources/terminalPayments/client/requests/RefundTerminalPaymentRequest.js +0 -3
  1482. package/api/resources/terminalPayments/client/requests/RefundTerminalPaymentRequest.ts +0 -16
  1483. package/api/resources/terminalPayments/client/requests/RetrieveTerminalPaymentsRequest.d.ts +0 -11
  1484. package/api/resources/terminalPayments/client/requests/RetrieveTerminalPaymentsRequest.js +0 -3
  1485. package/api/resources/terminalPayments/client/requests/RetrieveTerminalPaymentsRequest.ts +0 -12
  1486. package/api/resources/terminalPayments/client/requests/VoidTerminalPaymentRequest.d.ts +0 -13
  1487. package/api/resources/terminalPayments/client/requests/VoidTerminalPaymentRequest.js +0 -3
  1488. package/api/resources/terminalPayments/client/requests/VoidTerminalPaymentRequest.ts +0 -14
  1489. package/api/resources/terminalPayments/client/requests/index.d.ts +0 -7
  1490. package/api/resources/terminalPayments/client/requests/index.js +0 -2
  1491. package/api/resources/terminalPayments/client/requests/index.ts +0 -6
  1492. package/api/resources/terminalPayments/index.d.ts +0 -3
  1493. package/api/resources/terminalPayments/index.js +0 -3
  1494. package/api/resources/terminalPayments/index.ts +0 -2
  1495. package/api/resources/terminalPayments/types/ListTerminalPaymentsRequestStatus.d.ts +0 -12
  1496. package/api/resources/terminalPayments/types/ListTerminalPaymentsRequestStatus.js +0 -12
  1497. package/api/resources/terminalPayments/types/ListTerminalPaymentsRequestStatus.ts +0 -14
  1498. package/api/resources/terminalPayments/types/ListTerminalPaymentsRequestType.d.ts +0 -8
  1499. package/api/resources/terminalPayments/types/ListTerminalPaymentsRequestType.js +0 -8
  1500. package/api/resources/terminalPayments/types/ListTerminalPaymentsRequestType.ts +0 -10
  1501. package/api/resources/terminalPayments/types/index.d.ts +0 -3
  1502. package/api/resources/terminalPayments/types/index.js +0 -3
  1503. package/api/resources/terminalPayments/types/index.ts +0 -2
  1504. package/api/resources/transactions/client/Client.d.ts +0 -49
  1505. package/api/resources/transactions/client/Client.js +0 -132
  1506. package/api/resources/transactions/client/Client.ts +0 -186
  1507. package/api/resources/transactions/client/index.d.ts +0 -2
  1508. package/api/resources/transactions/client/index.js +0 -2
  1509. package/api/resources/transactions/client/index.ts +0 -1
  1510. package/api/resources/transactions/client/requests/TransactionsListRequest.d.ts +0 -26
  1511. package/api/resources/transactions/client/requests/TransactionsListRequest.js +0 -3
  1512. package/api/resources/transactions/client/requests/TransactionsListRequest.ts +0 -28
  1513. package/api/resources/transactions/client/requests/TransactionsRetrieveRequest.d.ts +0 -11
  1514. package/api/resources/transactions/client/requests/TransactionsRetrieveRequest.js +0 -3
  1515. package/api/resources/transactions/client/requests/TransactionsRetrieveRequest.ts +0 -12
  1516. package/api/resources/transactions/client/requests/index.d.ts +0 -3
  1517. package/api/resources/transactions/client/requests/index.js +0 -2
  1518. package/api/resources/transactions/client/requests/index.ts +0 -2
  1519. package/api/resources/transactions/index.d.ts +0 -3
  1520. package/api/resources/transactions/index.js +0 -3
  1521. package/api/resources/transactions/index.ts +0 -2
  1522. package/api/resources/transactions/types/TransactionsListRequestStatus.d.ts +0 -9
  1523. package/api/resources/transactions/types/TransactionsListRequestStatus.js +0 -9
  1524. package/api/resources/transactions/types/TransactionsListRequestStatus.ts +0 -11
  1525. package/api/resources/transactions/types/TransactionsListRequestType.d.ts +0 -11
  1526. package/api/resources/transactions/types/TransactionsListRequestType.js +0 -11
  1527. package/api/resources/transactions/types/TransactionsListRequestType.ts +0 -13
  1528. package/api/resources/transactions/types/index.d.ts +0 -3
  1529. package/api/resources/transactions/types/index.js +0 -3
  1530. package/api/resources/transactions/types/index.ts +0 -2
  1531. package/api/resources/usage/client/Client.d.ts +0 -115
  1532. package/api/resources/usage/client/Client.js +0 -324
  1533. package/api/resources/usage/client/Client.ts +0 -444
  1534. package/api/resources/usage/client/index.d.ts +0 -2
  1535. package/api/resources/usage/client/index.js +0 -2
  1536. package/api/resources/usage/client/index.ts +0 -1
  1537. package/api/resources/usage/client/requests/AggregateUsageRequest.d.ts +0 -23
  1538. package/api/resources/usage/client/requests/AggregateUsageRequest.js +0 -3
  1539. package/api/resources/usage/client/requests/AggregateUsageRequest.ts +0 -24
  1540. package/api/resources/usage/client/requests/GetBalanceUsageRequest.d.ts +0 -18
  1541. package/api/resources/usage/client/requests/GetBalanceUsageRequest.js +0 -3
  1542. package/api/resources/usage/client/requests/GetBalanceUsageRequest.ts +0 -19
  1543. package/api/resources/usage/client/requests/ListEventsUsageRequest.d.ts +0 -25
  1544. package/api/resources/usage/client/requests/ListEventsUsageRequest.js +0 -3
  1545. package/api/resources/usage/client/requests/ListEventsUsageRequest.ts +0 -26
  1546. package/api/resources/usage/client/requests/index.d.ts +0 -4
  1547. package/api/resources/usage/client/requests/index.js +0 -2
  1548. package/api/resources/usage/client/requests/index.ts +0 -3
  1549. package/api/resources/usage/index.d.ts +0 -2
  1550. package/api/resources/usage/index.js +0 -2
  1551. package/api/resources/usage/index.ts +0 -1
  1552. package/api/resources/voids/client/Client.d.ts +0 -73
  1553. package/api/resources/voids/client/Client.js +0 -199
  1554. package/api/resources/voids/client/Client.ts +0 -268
  1555. package/api/resources/voids/client/index.d.ts +0 -2
  1556. package/api/resources/voids/client/index.js +0 -2
  1557. package/api/resources/voids/client/index.ts +0 -1
  1558. package/api/resources/voids/client/requests/CreateVoidInput.d.ts +0 -26
  1559. package/api/resources/voids/client/requests/CreateVoidInput.js +0 -13
  1560. package/api/resources/voids/client/requests/CreateVoidInput.ts +0 -28
  1561. package/api/resources/voids/client/requests/VoidsListRequest.d.ts +0 -26
  1562. package/api/resources/voids/client/requests/VoidsListRequest.js +0 -3
  1563. package/api/resources/voids/client/requests/VoidsListRequest.ts +0 -28
  1564. package/api/resources/voids/client/requests/VoidsRetrieveRequest.d.ts +0 -11
  1565. package/api/resources/voids/client/requests/VoidsRetrieveRequest.js +0 -3
  1566. package/api/resources/voids/client/requests/VoidsRetrieveRequest.ts +0 -12
  1567. package/api/resources/voids/client/requests/index.d.ts +0 -4
  1568. package/api/resources/voids/client/requests/index.js +0 -2
  1569. package/api/resources/voids/client/requests/index.ts +0 -3
  1570. package/api/resources/voids/index.d.ts +0 -3
  1571. package/api/resources/voids/index.js +0 -3
  1572. package/api/resources/voids/index.ts +0 -2
  1573. package/api/resources/voids/types/VoidsListRequestStatus.d.ts +0 -9
  1574. package/api/resources/voids/types/VoidsListRequestStatus.js +0 -9
  1575. package/api/resources/voids/types/VoidsListRequestStatus.ts +0 -10
  1576. package/api/resources/voids/types/index.d.ts +0 -2
  1577. package/api/resources/voids/types/index.js +0 -2
  1578. package/api/resources/voids/types/index.ts +0 -1
  1579. package/api/resources/webhookEndpoints/client/Client.d.ts +0 -82
  1580. package/api/resources/webhookEndpoints/client/Client.js +0 -286
  1581. package/api/resources/webhookEndpoints/client/Client.ts +0 -404
  1582. package/api/resources/webhookEndpoints/client/index.d.ts +0 -2
  1583. package/api/resources/webhookEndpoints/client/index.js +0 -2
  1584. package/api/resources/webhookEndpoints/client/index.ts +0 -1
  1585. package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsCreateRequest.d.ts +0 -13
  1586. package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsCreateRequest.js +0 -3
  1587. package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsCreateRequest.ts +0 -14
  1588. package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsDeleteRequest.d.ts +0 -10
  1589. package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsDeleteRequest.js +0 -3
  1590. package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsDeleteRequest.ts +0 -11
  1591. package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsListRequest.d.ts +0 -11
  1592. package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsListRequest.js +0 -3
  1593. package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsListRequest.ts +0 -13
  1594. package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsRetrieveRequest.d.ts +0 -10
  1595. package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsRetrieveRequest.js +0 -3
  1596. package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsRetrieveRequest.ts +0 -11
  1597. package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsRotateSecretRequest.d.ts +0 -10
  1598. package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsRotateSecretRequest.js +0 -3
  1599. package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsRotateSecretRequest.ts +0 -11
  1600. package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsUpdateRequest.d.ts +0 -14
  1601. package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsUpdateRequest.js +0 -3
  1602. package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsUpdateRequest.ts +0 -15
  1603. package/api/resources/webhookEndpoints/client/requests/index.d.ts +0 -7
  1604. package/api/resources/webhookEndpoints/client/requests/index.js +0 -2
  1605. package/api/resources/webhookEndpoints/client/requests/index.ts +0 -6
  1606. package/api/resources/webhookEndpoints/index.d.ts +0 -3
  1607. package/api/resources/webhookEndpoints/index.js +0 -3
  1608. package/api/resources/webhookEndpoints/index.ts +0 -2
  1609. package/api/resources/webhookEndpoints/types/WebhookEndpointsCreateResponse.d.ts +0 -5
  1610. package/api/resources/webhookEndpoints/types/WebhookEndpointsCreateResponse.js +0 -3
  1611. package/api/resources/webhookEndpoints/types/WebhookEndpointsCreateResponse.ts +0 -7
  1612. package/api/resources/webhookEndpoints/types/WebhookEndpointsDeleteResponse.d.ts +0 -10
  1613. package/api/resources/webhookEndpoints/types/WebhookEndpointsDeleteResponse.js +0 -3
  1614. package/api/resources/webhookEndpoints/types/WebhookEndpointsDeleteResponse.ts +0 -12
  1615. package/api/resources/webhookEndpoints/types/WebhookEndpointsListRequestStatus.d.ts +0 -6
  1616. package/api/resources/webhookEndpoints/types/WebhookEndpointsListRequestStatus.js +0 -6
  1617. package/api/resources/webhookEndpoints/types/WebhookEndpointsListRequestStatus.ts +0 -8
  1618. package/api/resources/webhookEndpoints/types/WebhookEndpointsListResponse.d.ts +0 -43
  1619. package/api/resources/webhookEndpoints/types/WebhookEndpointsListResponse.js +0 -20
  1620. package/api/resources/webhookEndpoints/types/WebhookEndpointsListResponse.ts +0 -48
  1621. package/api/resources/webhookEndpoints/types/WebhookEndpointsRetrieveResponse.d.ts +0 -33
  1622. package/api/resources/webhookEndpoints/types/WebhookEndpointsRetrieveResponse.js +0 -17
  1623. package/api/resources/webhookEndpoints/types/WebhookEndpointsRetrieveResponse.ts +0 -36
  1624. package/api/resources/webhookEndpoints/types/WebhookEndpointsRotateSecretResponse.d.ts +0 -5
  1625. package/api/resources/webhookEndpoints/types/WebhookEndpointsRotateSecretResponse.js +0 -3
  1626. package/api/resources/webhookEndpoints/types/WebhookEndpointsRotateSecretResponse.ts +0 -7
  1627. package/api/resources/webhookEndpoints/types/WebhookEndpointsUpdateResponse.d.ts +0 -33
  1628. package/api/resources/webhookEndpoints/types/WebhookEndpointsUpdateResponse.js +0 -17
  1629. package/api/resources/webhookEndpoints/types/WebhookEndpointsUpdateResponse.ts +0 -36
  1630. package/api/resources/webhookEndpoints/types/index.d.ts +0 -8
  1631. package/api/resources/webhookEndpoints/types/index.js +0 -8
  1632. package/api/resources/webhookEndpoints/types/index.ts +0 -7
  1633. package/api/types/BadRequestErrorBody.d.ts +0 -4
  1634. package/api/types/BadRequestErrorBody.js +0 -3
  1635. package/api/types/BadRequestErrorBody.ts +0 -5
  1636. package/api/types/BankAccountDetails.d.ts +0 -22
  1637. package/api/types/BankAccountDetails.js +0 -10
  1638. package/api/types/BankAccountDetails.ts +0 -24
  1639. package/api/types/BatchIngestRequest.d.ts +0 -9
  1640. package/api/types/BatchIngestRequest.js +0 -3
  1641. package/api/types/BatchIngestRequest.ts +0 -11
  1642. package/api/types/BatchIngestResult.d.ts +0 -39
  1643. package/api/types/BatchIngestResult.js +0 -20
  1644. package/api/types/BatchIngestResult.ts +0 -45
  1645. package/api/types/Benefit.d.ts +0 -14
  1646. package/api/types/Benefit.js +0 -3
  1647. package/api/types/Benefit.ts +0 -15
  1648. package/api/types/BillingAnchorRulesResponse.d.ts +0 -18
  1649. package/api/types/BillingAnchorRulesResponse.js +0 -3
  1650. package/api/types/BillingAnchorRulesResponse.ts +0 -21
  1651. package/api/types/BillingDetails.d.ts +0 -27
  1652. package/api/types/BillingDetails.js +0 -3
  1653. package/api/types/BillingDetails.ts +0 -29
  1654. package/api/types/BillingIntervalsResponse.d.ts +0 -17
  1655. package/api/types/BillingIntervalsResponse.js +0 -3
  1656. package/api/types/BillingIntervalsResponse.ts +0 -20
  1657. package/api/types/BillingPreviewErrorResponse.d.ts +0 -8
  1658. package/api/types/BillingPreviewErrorResponse.js +0 -3
  1659. package/api/types/BillingPreviewErrorResponse.ts +0 -9
  1660. package/api/types/BillingPreviewResponse.d.ts +0 -34
  1661. package/api/types/BillingPreviewResponse.js +0 -3
  1662. package/api/types/BillingPreviewResponse.ts +0 -38
  1663. package/api/types/CardDetails.d.ts +0 -38
  1664. package/api/types/CardDetails.js +0 -23
  1665. package/api/types/CardDetails.ts +0 -40
  1666. package/api/types/ChargeCaptureResponse.d.ts +0 -43
  1667. package/api/types/ChargeCaptureResponse.js +0 -17
  1668. package/api/types/ChargeCaptureResponse.ts +0 -46
  1669. package/api/types/ChargeCreateResponse.d.ts +0 -43
  1670. package/api/types/ChargeCreateResponse.js +0 -17
  1671. package/api/types/ChargeCreateResponse.ts +0 -46
  1672. package/api/types/ChargeDuplicateErrorResponse.d.ts +0 -8
  1673. package/api/types/ChargeDuplicateErrorResponse.js +0 -3
  1674. package/api/types/ChargeDuplicateErrorResponse.ts +0 -9
  1675. package/api/types/ChargeErrorResponse.d.ts +0 -8
  1676. package/api/types/ChargeErrorResponse.js +0 -3
  1677. package/api/types/ChargeErrorResponse.ts +0 -9
  1678. package/api/types/ChargeListResponse.d.ts +0 -57
  1679. package/api/types/ChargeListResponse.js +0 -20
  1680. package/api/types/ChargeListResponse.ts +0 -62
  1681. package/api/types/ChargeRefundResponse.d.ts +0 -43
  1682. package/api/types/ChargeRefundResponse.js +0 -17
  1683. package/api/types/ChargeRefundResponse.ts +0 -46
  1684. package/api/types/ChargeRetrieveResponse.d.ts +0 -43
  1685. package/api/types/ChargeRetrieveResponse.js +0 -17
  1686. package/api/types/ChargeRetrieveResponse.ts +0 -46
  1687. package/api/types/CheckoutSession.d.ts +0 -29
  1688. package/api/types/CheckoutSession.js +0 -8
  1689. package/api/types/CheckoutSession.ts +0 -31
  1690. package/api/types/CheckoutSessionCreateResponse.d.ts +0 -21
  1691. package/api/types/CheckoutSessionCreateResponse.js +0 -3
  1692. package/api/types/CheckoutSessionCreateResponse.ts +0 -23
  1693. package/api/types/CheckoutSessionErrorResponse.d.ts +0 -7
  1694. package/api/types/CheckoutSessionErrorResponse.js +0 -3
  1695. package/api/types/CheckoutSessionErrorResponse.ts +0 -8
  1696. package/api/types/CheckoutSessionExpireResponse.d.ts +0 -18
  1697. package/api/types/CheckoutSessionExpireResponse.js +0 -11
  1698. package/api/types/CheckoutSessionExpireResponse.ts +0 -21
  1699. package/api/types/CheckoutSessionRetrieveResponse.d.ts +0 -6
  1700. package/api/types/CheckoutSessionRetrieveResponse.js +0 -3
  1701. package/api/types/CheckoutSessionRetrieveResponse.ts +0 -8
  1702. package/api/types/ConflictErrorBody.d.ts +0 -5
  1703. package/api/types/ConflictErrorBody.js +0 -3
  1704. package/api/types/ConflictErrorBody.ts +0 -6
  1705. package/api/types/CreateMeterResponse.d.ts +0 -8
  1706. package/api/types/CreateMeterResponse.js +0 -3
  1707. package/api/types/CreateMeterResponse.ts +0 -9
  1708. package/api/types/CreditEligibilityResponse.d.ts +0 -22
  1709. package/api/types/CreditEligibilityResponse.js +0 -3
  1710. package/api/types/CreditEligibilityResponse.ts +0 -24
  1711. package/api/types/CreditNote.d.ts +0 -36
  1712. package/api/types/CreditNote.js +0 -3
  1713. package/api/types/CreditNote.ts +0 -37
  1714. package/api/types/CreditNoteCreateResponse.d.ts +0 -8
  1715. package/api/types/CreditNoteCreateResponse.js +0 -3
  1716. package/api/types/CreditNoteCreateResponse.ts +0 -10
  1717. package/api/types/CreditNoteEligibilityResponse.d.ts +0 -38
  1718. package/api/types/CreditNoteEligibilityResponse.js +0 -3
  1719. package/api/types/CreditNoteEligibilityResponse.ts +0 -42
  1720. package/api/types/CreditNoteListResponse.d.ts +0 -9
  1721. package/api/types/CreditNoteListResponse.js +0 -3
  1722. package/api/types/CreditNoteListResponse.ts +0 -11
  1723. package/api/types/CreditNoteResponse.d.ts +0 -9
  1724. package/api/types/CreditNoteResponse.js +0 -3
  1725. package/api/types/CreditNoteResponse.ts +0 -11
  1726. package/api/types/CreditNoteRetrieveResponse.d.ts +0 -8
  1727. package/api/types/CreditNoteRetrieveResponse.js +0 -3
  1728. package/api/types/CreditNoteRetrieveResponse.ts +0 -10
  1729. package/api/types/CreditNoteVoidResponse.d.ts +0 -8
  1730. package/api/types/CreditNoteVoidResponse.js +0 -3
  1731. package/api/types/CreditNoteVoidResponse.ts +0 -10
  1732. package/api/types/CustomerCreateResponse.d.ts +0 -33
  1733. package/api/types/CustomerCreateResponse.js +0 -3
  1734. package/api/types/CustomerCreateResponse.ts +0 -35
  1735. package/api/types/CustomerInvoice.d.ts +0 -15
  1736. package/api/types/CustomerInvoice.js +0 -3
  1737. package/api/types/CustomerInvoice.ts +0 -16
  1738. package/api/types/CustomerListResponse.d.ts +0 -42
  1739. package/api/types/CustomerListResponse.js +0 -3
  1740. package/api/types/CustomerListResponse.ts +0 -46
  1741. package/api/types/CustomerOrder.d.ts +0 -16
  1742. package/api/types/CustomerOrder.js +0 -3
  1743. package/api/types/CustomerOrder.ts +0 -17
  1744. package/api/types/CustomerPayment.d.ts +0 -15
  1745. package/api/types/CustomerPayment.js +0 -3
  1746. package/api/types/CustomerPayment.ts +0 -16
  1747. package/api/types/CustomerPaymentMethodsListResponse.d.ts +0 -8
  1748. package/api/types/CustomerPaymentMethodsListResponse.js +0 -3
  1749. package/api/types/CustomerPaymentMethodsListResponse.ts +0 -10
  1750. package/api/types/CustomerPortalSessionCreateResponse.d.ts +0 -17
  1751. package/api/types/CustomerPortalSessionCreateResponse.js +0 -3
  1752. package/api/types/CustomerPortalSessionCreateResponse.ts +0 -19
  1753. package/api/types/CustomerRetrieveResponse.d.ts +0 -33
  1754. package/api/types/CustomerRetrieveResponse.js +0 -3
  1755. package/api/types/CustomerRetrieveResponse.ts +0 -35
  1756. package/api/types/CustomerSubscription.d.ts +0 -17
  1757. package/api/types/CustomerSubscription.js +0 -3
  1758. package/api/types/CustomerSubscription.ts +0 -18
  1759. package/api/types/CustomerUpdateResponse.d.ts +0 -33
  1760. package/api/types/CustomerUpdateResponse.js +0 -3
  1761. package/api/types/CustomerUpdateResponse.ts +0 -35
  1762. package/api/types/Discount.d.ts +0 -25
  1763. package/api/types/Discount.js +0 -3
  1764. package/api/types/Discount.ts +0 -26
  1765. package/api/types/DiscountCreateResponse.d.ts +0 -8
  1766. package/api/types/DiscountCreateResponse.js +0 -3
  1767. package/api/types/DiscountCreateResponse.ts +0 -10
  1768. package/api/types/DiscountDeleteResponse.d.ts +0 -8
  1769. package/api/types/DiscountDeleteResponse.js +0 -3
  1770. package/api/types/DiscountDeleteResponse.ts +0 -10
  1771. package/api/types/DiscountListResponse.d.ts +0 -17
  1772. package/api/types/DiscountListResponse.js +0 -3
  1773. package/api/types/DiscountListResponse.ts +0 -20
  1774. package/api/types/DiscountRetrieveResponse.d.ts +0 -8
  1775. package/api/types/DiscountRetrieveResponse.js +0 -3
  1776. package/api/types/DiscountRetrieveResponse.ts +0 -10
  1777. package/api/types/DiscountUpdateResponse.d.ts +0 -8
  1778. package/api/types/DiscountUpdateResponse.js +0 -3
  1779. package/api/types/DiscountUpdateResponse.ts +0 -10
  1780. package/api/types/Dispute.d.ts +0 -73
  1781. package/api/types/Dispute.js +0 -20
  1782. package/api/types/Dispute.ts +0 -75
  1783. package/api/types/DryRunResult.d.ts +0 -43
  1784. package/api/types/DryRunResult.js +0 -19
  1785. package/api/types/DryRunResult.ts +0 -50
  1786. package/api/types/Entitlement.d.ts +0 -34
  1787. package/api/types/Entitlement.js +0 -19
  1788. package/api/types/Entitlement.ts +0 -37
  1789. package/api/types/EntitlementCheck.d.ts +0 -28
  1790. package/api/types/EntitlementCheck.js +0 -19
  1791. package/api/types/EntitlementCheck.ts +0 -31
  1792. package/api/types/EntitlementCheckResponse.d.ts +0 -5
  1793. package/api/types/EntitlementCheckResponse.js +0 -3
  1794. package/api/types/EntitlementCheckResponse.ts +0 -7
  1795. package/api/types/EntitlementListResponse.d.ts +0 -19
  1796. package/api/types/EntitlementListResponse.js +0 -3
  1797. package/api/types/EntitlementListResponse.ts +0 -23
  1798. package/api/types/ErrorResponse.d.ts +0 -13
  1799. package/api/types/ErrorResponse.js +0 -3
  1800. package/api/types/ErrorResponse.ts +0 -15
  1801. package/api/types/Event.d.ts +0 -40
  1802. package/api/types/Event.js +0 -9
  1803. package/api/types/Event.ts +0 -44
  1804. package/api/types/EventErrorResponse.d.ts +0 -19
  1805. package/api/types/EventErrorResponse.js +0 -3
  1806. package/api/types/EventErrorResponse.ts +0 -21
  1807. package/api/types/EventListResponse.d.ts +0 -18
  1808. package/api/types/EventListResponse.js +0 -8
  1809. package/api/types/EventListResponse.ts +0 -21
  1810. package/api/types/EventRequest.d.ts +0 -10
  1811. package/api/types/EventRequest.js +0 -3
  1812. package/api/types/EventRequest.ts +0 -11
  1813. package/api/types/Export.d.ts +0 -59
  1814. package/api/types/Export.js +0 -30
  1815. package/api/types/Export.ts +0 -61
  1816. package/api/types/ExportCreateResponse.d.ts +0 -8
  1817. package/api/types/ExportCreateResponse.js +0 -3
  1818. package/api/types/ExportCreateResponse.ts +0 -10
  1819. package/api/types/ExportRetrieveResponse.d.ts +0 -8
  1820. package/api/types/ExportRetrieveResponse.js +0 -3
  1821. package/api/types/ExportRetrieveResponse.ts +0 -10
  1822. package/api/types/ExternalUpsertResponse.d.ts +0 -11
  1823. package/api/types/ExternalUpsertResponse.js +0 -3
  1824. package/api/types/ExternalUpsertResponse.ts +0 -13
  1825. package/api/types/Import.d.ts +0 -63
  1826. package/api/types/Import.js +0 -24
  1827. package/api/types/Import.ts +0 -66
  1828. package/api/types/ImportCreateResponse.d.ts +0 -8
  1829. package/api/types/ImportCreateResponse.js +0 -3
  1830. package/api/types/ImportCreateResponse.ts +0 -10
  1831. package/api/types/ImportRetrieveResponse.d.ts +0 -8
  1832. package/api/types/ImportRetrieveResponse.js +0 -3
  1833. package/api/types/ImportRetrieveResponse.ts +0 -10
  1834. package/api/types/InternalServerErrorBody.d.ts +0 -5
  1835. package/api/types/InternalServerErrorBody.js +0 -3
  1836. package/api/types/InternalServerErrorBody.ts +0 -6
  1837. package/api/types/Invoice.d.ts +0 -86
  1838. package/api/types/Invoice.js +0 -31
  1839. package/api/types/Invoice.ts +0 -89
  1840. package/api/types/InvoiceCommentDetail.d.ts +0 -13
  1841. package/api/types/InvoiceCommentDetail.js +0 -3
  1842. package/api/types/InvoiceCommentDetail.ts +0 -14
  1843. package/api/types/InvoiceCommentDetailResponse.d.ts +0 -9
  1844. package/api/types/InvoiceCommentDetailResponse.js +0 -3
  1845. package/api/types/InvoiceCommentDetailResponse.ts +0 -11
  1846. package/api/types/InvoiceCommentListDetailResponse.d.ts +0 -9
  1847. package/api/types/InvoiceCommentListDetailResponse.js +0 -3
  1848. package/api/types/InvoiceCommentListDetailResponse.ts +0 -11
  1849. package/api/types/InvoiceListResponse.d.ts +0 -9
  1850. package/api/types/InvoiceListResponse.js +0 -3
  1851. package/api/types/InvoiceListResponse.ts +0 -11
  1852. package/api/types/InvoiceResponse.d.ts +0 -9
  1853. package/api/types/InvoiceResponse.js +0 -3
  1854. package/api/types/InvoiceResponse.ts +0 -11
  1855. package/api/types/MeterError.d.ts +0 -13
  1856. package/api/types/MeterError.js +0 -3
  1857. package/api/types/MeterError.ts +0 -17
  1858. package/api/types/MeterGetResponse.d.ts +0 -8
  1859. package/api/types/MeterGetResponse.js +0 -3
  1860. package/api/types/MeterGetResponse.ts +0 -9
  1861. package/api/types/MeterListResponse.d.ts +0 -16
  1862. package/api/types/MeterListResponse.js +0 -3
  1863. package/api/types/MeterListResponse.ts +0 -18
  1864. package/api/types/MeterPriceError.d.ts +0 -13
  1865. package/api/types/MeterPriceError.js +0 -3
  1866. package/api/types/MeterPriceError.ts +0 -17
  1867. package/api/types/MeterPriceListResponse.d.ts +0 -8
  1868. package/api/types/MeterPriceListResponse.js +0 -3
  1869. package/api/types/MeterPriceListResponse.ts +0 -9
  1870. package/api/types/MeterPriceResponse.d.ts +0 -8
  1871. package/api/types/MeterPriceResponse.js +0 -3
  1872. package/api/types/MeterPriceResponse.ts +0 -9
  1873. package/api/types/NotFoundErrorBody.d.ts +0 -4
  1874. package/api/types/NotFoundErrorBody.js +0 -3
  1875. package/api/types/NotFoundErrorBody.ts +0 -5
  1876. package/api/types/OauthScope.d.ts +0 -205
  1877. package/api/types/OauthScope.js +0 -205
  1878. package/api/types/OauthScope.ts +0 -206
  1879. package/api/types/OpenDispute.d.ts +0 -36
  1880. package/api/types/OpenDispute.js +0 -3
  1881. package/api/types/OpenDispute.ts +0 -37
  1882. package/api/types/Order.d.ts +0 -83
  1883. package/api/types/Order.js +0 -31
  1884. package/api/types/Order.ts +0 -86
  1885. package/api/types/OrderErrorResponse.d.ts +0 -15
  1886. package/api/types/OrderErrorResponse.js +0 -3
  1887. package/api/types/OrderErrorResponse.ts +0 -17
  1888. package/api/types/OrderLineItem.d.ts +0 -23
  1889. package/api/types/OrderLineItem.js +0 -3
  1890. package/api/types/OrderLineItem.ts +0 -24
  1891. package/api/types/OrderListResponse.d.ts +0 -17
  1892. package/api/types/OrderListResponse.js +0 -8
  1893. package/api/types/OrderListResponse.ts +0 -20
  1894. package/api/types/Pagination.d.ts +0 -13
  1895. package/api/types/Pagination.js +0 -3
  1896. package/api/types/Pagination.ts +0 -14
  1897. package/api/types/Payment.d.ts +0 -86
  1898. package/api/types/Payment.js +0 -35
  1899. package/api/types/Payment.ts +0 -88
  1900. package/api/types/PaymentErrorResponse.d.ts +0 -15
  1901. package/api/types/PaymentErrorResponse.js +0 -3
  1902. package/api/types/PaymentErrorResponse.ts +0 -17
  1903. package/api/types/PaymentIntent.d.ts +0 -133
  1904. package/api/types/PaymentIntent.js +0 -40
  1905. package/api/types/PaymentIntent.ts +0 -141
  1906. package/api/types/PaymentIntentErrorResponse.d.ts +0 -19
  1907. package/api/types/PaymentIntentErrorResponse.js +0 -3
  1908. package/api/types/PaymentIntentErrorResponse.ts +0 -21
  1909. package/api/types/PaymentIntentListResponse.d.ts +0 -18
  1910. package/api/types/PaymentIntentListResponse.js +0 -8
  1911. package/api/types/PaymentIntentListResponse.ts +0 -21
  1912. package/api/types/PaymentListResponse.d.ts +0 -17
  1913. package/api/types/PaymentListResponse.js +0 -8
  1914. package/api/types/PaymentListResponse.ts +0 -20
  1915. package/api/types/PaymentMethod.d.ts +0 -51
  1916. package/api/types/PaymentMethod.js +0 -21
  1917. package/api/types/PaymentMethod.ts +0 -54
  1918. package/api/types/Payout.d.ts +0 -34
  1919. package/api/types/Payout.js +0 -12
  1920. package/api/types/Payout.ts +0 -36
  1921. package/api/types/PayoutPayment.d.ts +0 -14
  1922. package/api/types/PayoutPayment.js +0 -3
  1923. package/api/types/PayoutPayment.ts +0 -15
  1924. package/api/types/PhaseItem.d.ts +0 -10
  1925. package/api/types/PhaseItem.js +0 -3
  1926. package/api/types/PhaseItem.ts +0 -11
  1927. package/api/types/Price.d.ts +0 -112
  1928. package/api/types/Price.js +0 -45
  1929. package/api/types/Price.ts +0 -117
  1930. package/api/types/PriceErrorResponse.d.ts +0 -15
  1931. package/api/types/PriceErrorResponse.js +0 -3
  1932. package/api/types/PriceErrorResponse.ts +0 -17
  1933. package/api/types/PriceListResponse.d.ts +0 -17
  1934. package/api/types/PriceListResponse.js +0 -8
  1935. package/api/types/PriceListResponse.ts +0 -20
  1936. package/api/types/PriceTier.d.ts +0 -9
  1937. package/api/types/PriceTier.js +0 -3
  1938. package/api/types/PriceTier.ts +0 -10
  1939. package/api/types/Product.d.ts +0 -110
  1940. package/api/types/Product.js +0 -44
  1941. package/api/types/Product.ts +0 -112
  1942. package/api/types/ProductCreateResponse.d.ts +0 -8
  1943. package/api/types/ProductCreateResponse.js +0 -3
  1944. package/api/types/ProductCreateResponse.ts +0 -10
  1945. package/api/types/ProductErrorResponse.d.ts +0 -7
  1946. package/api/types/ProductErrorResponse.js +0 -3
  1947. package/api/types/ProductErrorResponse.ts +0 -8
  1948. package/api/types/ProductListResponse.d.ts +0 -9
  1949. package/api/types/ProductListResponse.js +0 -3
  1950. package/api/types/ProductListResponse.ts +0 -11
  1951. package/api/types/ProductRetrieveResponse.d.ts +0 -8
  1952. package/api/types/ProductRetrieveResponse.js +0 -3
  1953. package/api/types/ProductRetrieveResponse.ts +0 -10
  1954. package/api/types/ProductUpdateResponse.d.ts +0 -8
  1955. package/api/types/ProductUpdateResponse.js +0 -3
  1956. package/api/types/ProductUpdateResponse.ts +0 -10
  1957. package/api/types/Refund.d.ts +0 -45
  1958. package/api/types/Refund.js +0 -21
  1959. package/api/types/Refund.ts +0 -47
  1960. package/api/types/RefundCreateResponse.d.ts +0 -8
  1961. package/api/types/RefundCreateResponse.js +0 -3
  1962. package/api/types/RefundCreateResponse.ts +0 -10
  1963. package/api/types/RefundListResponse.d.ts +0 -21
  1964. package/api/types/RefundListResponse.js +0 -3
  1965. package/api/types/RefundListResponse.ts +0 -24
  1966. package/api/types/RefundRetrieveResponse.d.ts +0 -8
  1967. package/api/types/RefundRetrieveResponse.js +0 -3
  1968. package/api/types/RefundRetrieveResponse.ts +0 -10
  1969. package/api/types/ResendWebhookResponse.d.ts +0 -12
  1970. package/api/types/ResendWebhookResponse.js +0 -3
  1971. package/api/types/ResendWebhookResponse.ts +0 -13
  1972. package/api/types/SchedulePhase.d.ts +0 -42
  1973. package/api/types/SchedulePhase.js +0 -16
  1974. package/api/types/SchedulePhase.ts +0 -45
  1975. package/api/types/StaleUpdateResponse.d.ts +0 -17
  1976. package/api/types/StaleUpdateResponse.js +0 -8
  1977. package/api/types/StaleUpdateResponse.ts +0 -19
  1978. package/api/types/SubscriptionCancelResponse.d.ts +0 -7
  1979. package/api/types/SubscriptionCancelResponse.js +0 -3
  1980. package/api/types/SubscriptionCancelResponse.ts +0 -8
  1981. package/api/types/SubscriptionCancelSubscriptionResponse.d.ts +0 -66
  1982. package/api/types/SubscriptionCancelSubscriptionResponse.js +0 -30
  1983. package/api/types/SubscriptionCancelSubscriptionResponse.ts +0 -71
  1984. package/api/types/SubscriptionChangePlanResponse.d.ts +0 -70
  1985. package/api/types/SubscriptionChangePlanResponse.js +0 -30
  1986. package/api/types/SubscriptionChangePlanResponse.ts +0 -75
  1987. package/api/types/SubscriptionChangeQuantityResponse.d.ts +0 -70
  1988. package/api/types/SubscriptionChangeQuantityResponse.js +0 -30
  1989. package/api/types/SubscriptionChangeQuantityResponse.ts +0 -75
  1990. package/api/types/SubscriptionCreateResponse.d.ts +0 -66
  1991. package/api/types/SubscriptionCreateResponse.js +0 -30
  1992. package/api/types/SubscriptionCreateResponse.ts +0 -71
  1993. package/api/types/SubscriptionItem.d.ts +0 -31
  1994. package/api/types/SubscriptionItem.js +0 -11
  1995. package/api/types/SubscriptionItem.ts +0 -33
  1996. package/api/types/SubscriptionItemCreateResponse.d.ts +0 -8
  1997. package/api/types/SubscriptionItemCreateResponse.js +0 -3
  1998. package/api/types/SubscriptionItemCreateResponse.ts +0 -10
  1999. package/api/types/SubscriptionItemDeleteResponse.d.ts +0 -8
  2000. package/api/types/SubscriptionItemDeleteResponse.js +0 -3
  2001. package/api/types/SubscriptionItemDeleteResponse.ts +0 -9
  2002. package/api/types/SubscriptionItemListResponse.d.ts +0 -17
  2003. package/api/types/SubscriptionItemListResponse.js +0 -3
  2004. package/api/types/SubscriptionItemListResponse.ts +0 -20
  2005. package/api/types/SubscriptionItemUpdateResponse.d.ts +0 -8
  2006. package/api/types/SubscriptionItemUpdateResponse.js +0 -3
  2007. package/api/types/SubscriptionItemUpdateResponse.ts +0 -10
  2008. package/api/types/SubscriptionListResponse.d.ts +0 -76
  2009. package/api/types/SubscriptionListResponse.js +0 -33
  2010. package/api/types/SubscriptionListResponse.ts +0 -83
  2011. package/api/types/SubscriptionPauseResponse.d.ts +0 -66
  2012. package/api/types/SubscriptionPauseResponse.js +0 -30
  2013. package/api/types/SubscriptionPauseResponse.ts +0 -71
  2014. package/api/types/SubscriptionPreviewRenewalResponse.d.ts +0 -32
  2015. package/api/types/SubscriptionPreviewRenewalResponse.js +0 -3
  2016. package/api/types/SubscriptionPreviewRenewalResponse.ts +0 -36
  2017. package/api/types/SubscriptionReactivateResponse.d.ts +0 -66
  2018. package/api/types/SubscriptionReactivateResponse.js +0 -30
  2019. package/api/types/SubscriptionReactivateResponse.ts +0 -71
  2020. package/api/types/SubscriptionResumeResponse.d.ts +0 -66
  2021. package/api/types/SubscriptionResumeResponse.js +0 -30
  2022. package/api/types/SubscriptionResumeResponse.ts +0 -71
  2023. package/api/types/SubscriptionRetrieveResponse.d.ts +0 -66
  2024. package/api/types/SubscriptionRetrieveResponse.js +0 -30
  2025. package/api/types/SubscriptionRetrieveResponse.ts +0 -71
  2026. package/api/types/SubscriptionSchedule.d.ts +0 -64
  2027. package/api/types/SubscriptionSchedule.js +0 -22
  2028. package/api/types/SubscriptionSchedule.ts +0 -69
  2029. package/api/types/SubscriptionScheduleErrorResponse.d.ts +0 -19
  2030. package/api/types/SubscriptionScheduleErrorResponse.js +0 -3
  2031. package/api/types/SubscriptionScheduleErrorResponse.ts +0 -21
  2032. package/api/types/SubscriptionScheduleListResponse.d.ts +0 -18
  2033. package/api/types/SubscriptionScheduleListResponse.js +0 -8
  2034. package/api/types/SubscriptionScheduleListResponse.ts +0 -21
  2035. package/api/types/SubscriptionTerms.d.ts +0 -49
  2036. package/api/types/SubscriptionTerms.js +0 -28
  2037. package/api/types/SubscriptionTerms.ts +0 -51
  2038. package/api/types/SubscriptionUpdateResponse.d.ts +0 -66
  2039. package/api/types/SubscriptionUpdateResponse.js +0 -30
  2040. package/api/types/SubscriptionUpdateResponse.ts +0 -71
  2041. package/api/types/SuccessResponse.d.ts +0 -7
  2042. package/api/types/SuccessResponse.js +0 -3
  2043. package/api/types/SuccessResponse.ts +0 -8
  2044. package/api/types/TerminalDevice.d.ts +0 -42
  2045. package/api/types/TerminalDevice.js +0 -17
  2046. package/api/types/TerminalDevice.ts +0 -44
  2047. package/api/types/TerminalDeviceErrorResponse.d.ts +0 -8
  2048. package/api/types/TerminalDeviceErrorResponse.js +0 -3
  2049. package/api/types/TerminalDeviceErrorResponse.ts +0 -9
  2050. package/api/types/TerminalDeviceListResponse.d.ts +0 -14
  2051. package/api/types/TerminalDeviceListResponse.js +0 -3
  2052. package/api/types/TerminalDeviceListResponse.ts +0 -17
  2053. package/api/types/TerminalDeviceResponse.d.ts +0 -8
  2054. package/api/types/TerminalDeviceResponse.js +0 -3
  2055. package/api/types/TerminalDeviceResponse.ts +0 -10
  2056. package/api/types/TerminalPayment.d.ts +0 -66
  2057. package/api/types/TerminalPayment.js +0 -23
  2058. package/api/types/TerminalPayment.ts +0 -68
  2059. package/api/types/TerminalPaymentErrorResponse.d.ts +0 -9
  2060. package/api/types/TerminalPaymentErrorResponse.js +0 -3
  2061. package/api/types/TerminalPaymentErrorResponse.ts +0 -10
  2062. package/api/types/TerminalPaymentListResponse.d.ts +0 -15
  2063. package/api/types/TerminalPaymentListResponse.js +0 -3
  2064. package/api/types/TerminalPaymentListResponse.ts +0 -18
  2065. package/api/types/TerminalPaymentResponse.d.ts +0 -8
  2066. package/api/types/TerminalPaymentResponse.js +0 -3
  2067. package/api/types/TerminalPaymentResponse.ts +0 -10
  2068. package/api/types/TestEventResponse.d.ts +0 -12
  2069. package/api/types/TestEventResponse.js +0 -3
  2070. package/api/types/TestEventResponse.ts +0 -14
  2071. package/api/types/Transaction.d.ts +0 -71
  2072. package/api/types/Transaction.js +0 -25
  2073. package/api/types/Transaction.ts +0 -73
  2074. package/api/types/TransactionListResponse.d.ts +0 -17
  2075. package/api/types/TransactionListResponse.js +0 -8
  2076. package/api/types/TransactionListResponse.ts +0 -20
  2077. package/api/types/TransactionRetrieveResponse.d.ts +0 -8
  2078. package/api/types/TransactionRetrieveResponse.js +0 -3
  2079. package/api/types/TransactionRetrieveResponse.ts +0 -10
  2080. package/api/types/TransactionReversalEligibilityResponse.d.ts +0 -26
  2081. package/api/types/TransactionReversalEligibilityResponse.js +0 -3
  2082. package/api/types/TransactionReversalEligibilityResponse.ts +0 -28
  2083. package/api/types/TransformQuantity.d.ts +0 -18
  2084. package/api/types/TransformQuantity.js +0 -10
  2085. package/api/types/TransformQuantity.ts +0 -20
  2086. package/api/types/UnauthorizedErrorBody.d.ts +0 -4
  2087. package/api/types/UnauthorizedErrorBody.js +0 -3
  2088. package/api/types/UnauthorizedErrorBody.ts +0 -5
  2089. package/api/types/UpdateMeterResponse.d.ts +0 -8
  2090. package/api/types/UpdateMeterResponse.js +0 -3
  2091. package/api/types/UpdateMeterResponse.ts +0 -9
  2092. package/api/types/UsageAggregateResponse.d.ts +0 -20
  2093. package/api/types/UsageAggregateResponse.js +0 -8
  2094. package/api/types/UsageAggregateResponse.ts +0 -22
  2095. package/api/types/UsageBalanceMeter.d.ts +0 -34
  2096. package/api/types/UsageBalanceMeter.js +0 -3
  2097. package/api/types/UsageBalanceMeter.ts +0 -35
  2098. package/api/types/UsageBalanceResponse.d.ts +0 -21
  2099. package/api/types/UsageBalanceResponse.js +0 -8
  2100. package/api/types/UsageBalanceResponse.ts +0 -24
  2101. package/api/types/UsageEvent.d.ts +0 -24
  2102. package/api/types/UsageEvent.js +0 -3
  2103. package/api/types/UsageEvent.ts +0 -25
  2104. package/api/types/UsageEventError.d.ts +0 -13
  2105. package/api/types/UsageEventError.js +0 -3
  2106. package/api/types/UsageEventError.ts +0 -17
  2107. package/api/types/UsageEventListResponse.d.ts +0 -16
  2108. package/api/types/UsageEventListResponse.js +0 -8
  2109. package/api/types/UsageEventListResponse.ts +0 -18
  2110. package/api/types/Void.d.ts +0 -42
  2111. package/api/types/Void.js +0 -18
  2112. package/api/types/Void.ts +0 -44
  2113. package/api/types/VoidCreateResponse.d.ts +0 -8
  2114. package/api/types/VoidCreateResponse.js +0 -3
  2115. package/api/types/VoidCreateResponse.ts +0 -10
  2116. package/api/types/VoidListResponse.d.ts +0 -21
  2117. package/api/types/VoidListResponse.js +0 -3
  2118. package/api/types/VoidListResponse.ts +0 -24
  2119. package/api/types/VoidRetrieveResponse.d.ts +0 -8
  2120. package/api/types/VoidRetrieveResponse.js +0 -3
  2121. package/api/types/VoidRetrieveResponse.ts +0 -10
  2122. package/api/types/WebhookEndpoint.d.ts +0 -30
  2123. package/api/types/WebhookEndpoint.js +0 -14
  2124. package/api/types/WebhookEndpoint.ts +0 -32
  2125. package/api/types/index.d.ts +0 -165
  2126. package/api/types/index.js +0 -165
  2127. package/api/types/index.ts +0 -164
  2128. package/auth/HeaderAuthProvider.d.ts +0 -21
  2129. package/auth/HeaderAuthProvider.js +0 -33
  2130. package/auth/HeaderAuthProvider.ts +0 -48
  2131. package/auth/index.d.ts +0 -2
  2132. package/auth/index.js +0 -2
  2133. package/auth/index.ts +0 -1
  2134. package/core/auth/AuthProvider.d.ts +0 -8
  2135. package/core/auth/AuthProvider.js +0 -2
  2136. package/core/auth/AuthProvider.ts +0 -6
  2137. package/core/auth/AuthRequest.d.ts +0 -10
  2138. package/core/auth/AuthRequest.js +0 -2
  2139. package/core/auth/AuthRequest.ts +0 -9
  2140. package/core/auth/BasicAuth.d.ts +0 -9
  2141. package/core/auth/BasicAuth.js +0 -25
  2142. package/core/auth/BasicAuth.ts +0 -32
  2143. package/core/auth/BearerToken.d.ts +0 -8
  2144. package/core/auth/BearerToken.js +0 -14
  2145. package/core/auth/BearerToken.ts +0 -20
  2146. package/core/auth/NoOpAuthProvider.d.ts +0 -6
  2147. package/core/auth/NoOpAuthProvider.js +0 -6
  2148. package/core/auth/NoOpAuthProvider.ts +0 -8
  2149. package/core/auth/index.d.ts +0 -6
  2150. package/core/auth/index.js +0 -4
  2151. package/core/auth/index.ts +0 -5
  2152. package/core/base64.d.ts +0 -3
  2153. package/core/base64.js +0 -23
  2154. package/core/base64.ts +0 -27
  2155. package/core/exports.d.ts +0 -2
  2156. package/core/exports.js +0 -2
  2157. package/core/exports.ts +0 -1
  2158. package/core/fetcher/APIResponse.d.ts +0 -21
  2159. package/core/fetcher/APIResponse.js +0 -2
  2160. package/core/fetcher/APIResponse.ts +0 -23
  2161. package/core/fetcher/BinaryResponse.d.ts +0 -20
  2162. package/core/fetcher/BinaryResponse.js +0 -15
  2163. package/core/fetcher/BinaryResponse.ts +0 -34
  2164. package/core/fetcher/EndpointMetadata.d.ts +0 -14
  2165. package/core/fetcher/EndpointMetadata.js +0 -2
  2166. package/core/fetcher/EndpointMetadata.ts +0 -13
  2167. package/core/fetcher/EndpointSupplier.d.ts +0 -13
  2168. package/core/fetcher/EndpointSupplier.js +0 -11
  2169. package/core/fetcher/EndpointSupplier.ts +0 -14
  2170. package/core/fetcher/Fetcher.d.ts +0 -49
  2171. package/core/fetcher/Fetcher.js +0 -296
  2172. package/core/fetcher/Fetcher.ts +0 -391
  2173. package/core/fetcher/Headers.d.ts +0 -3
  2174. package/core/fetcher/Headers.js +0 -83
  2175. package/core/fetcher/Headers.ts +0 -93
  2176. package/core/fetcher/HttpResponsePromise.d.ts +0 -59
  2177. package/core/fetcher/HttpResponsePromise.js +0 -89
  2178. package/core/fetcher/HttpResponsePromise.ts +0 -116
  2179. package/core/fetcher/RawResponse.d.ts +0 -30
  2180. package/core/fetcher/RawResponse.js +0 -41
  2181. package/core/fetcher/RawResponse.ts +0 -61
  2182. package/core/fetcher/Supplier.d.ts +0 -5
  2183. package/core/fetcher/Supplier.js +0 -11
  2184. package/core/fetcher/Supplier.ts +0 -11
  2185. package/core/fetcher/createRequestUrl.d.ts +0 -2
  2186. package/core/fetcher/createRequestUrl.js +0 -6
  2187. package/core/fetcher/createRequestUrl.ts +0 -6
  2188. package/core/fetcher/getErrorResponseBody.d.ts +0 -2
  2189. package/core/fetcher/getErrorResponseBody.js +0 -31
  2190. package/core/fetcher/getErrorResponseBody.ts +0 -33
  2191. package/core/fetcher/getFetchFn.d.ts +0 -2
  2192. package/core/fetcher/getFetchFn.js +0 -4
  2193. package/core/fetcher/getFetchFn.ts +0 -3
  2194. package/core/fetcher/getHeader.d.ts +0 -2
  2195. package/core/fetcher/getHeader.js +0 -9
  2196. package/core/fetcher/getHeader.ts +0 -8
  2197. package/core/fetcher/getRequestBody.d.ts +0 -8
  2198. package/core/fetcher/getRequestBody.js +0 -14
  2199. package/core/fetcher/getRequestBody.ts +0 -20
  2200. package/core/fetcher/getResponseBody.d.ts +0 -2
  2201. package/core/fetcher/getResponseBody.js +0 -56
  2202. package/core/fetcher/getResponseBody.ts +0 -58
  2203. package/core/fetcher/index.d.ts +0 -12
  2204. package/core/fetcher/index.js +0 -7
  2205. package/core/fetcher/index.ts +0 -11
  2206. package/core/fetcher/makeRequest.d.ts +0 -2
  2207. package/core/fetcher/makeRequest.js +0 -28
  2208. package/core/fetcher/makeRequest.ts +0 -42
  2209. package/core/fetcher/requestWithRetries.d.ts +0 -2
  2210. package/core/fetcher/requestWithRetries.js +0 -54
  2211. package/core/fetcher/requestWithRetries.ts +0 -64
  2212. package/core/fetcher/signals.d.ts +0 -6
  2213. package/core/fetcher/signals.js +0 -21
  2214. package/core/fetcher/signals.ts +0 -26
  2215. package/core/headers.d.ts +0 -3
  2216. package/core/headers.js +0 -28
  2217. package/core/headers.ts +0 -33
  2218. package/core/index.d.ts +0 -7
  2219. package/core/index.js +0 -7
  2220. package/core/index.ts +0 -6
  2221. package/core/json.d.ts +0 -16
  2222. package/core/json.js +0 -20
  2223. package/core/json.ts +0 -27
  2224. package/core/logging/exports.d.ts +0 -19
  2225. package/core/logging/exports.js +0 -10
  2226. package/core/logging/exports.ts +0 -19
  2227. package/core/logging/index.d.ts +0 -2
  2228. package/core/logging/index.js +0 -2
  2229. package/core/logging/index.ts +0 -1
  2230. package/core/logging/logger.d.ts +0 -127
  2231. package/core/logging/logger.js +0 -138
  2232. package/core/logging/logger.ts +0 -203
  2233. package/core/runtime/index.d.ts +0 -2
  2234. package/core/runtime/index.js +0 -2
  2235. package/core/runtime/index.ts +0 -1
  2236. package/core/runtime/runtime.d.ts +0 -10
  2237. package/core/runtime/runtime.js +0 -100
  2238. package/core/runtime/runtime.ts +0 -134
  2239. package/core/url/encodePathParam.d.ts +0 -2
  2240. package/core/url/encodePathParam.js +0 -19
  2241. package/core/url/encodePathParam.ts +0 -18
  2242. package/core/url/index.d.ts +0 -4
  2243. package/core/url/index.js +0 -4
  2244. package/core/url/index.ts +0 -3
  2245. package/core/url/join.d.ts +0 -2
  2246. package/core/url/join.js +0 -66
  2247. package/core/url/join.ts +0 -79
  2248. package/core/url/qs.d.ts +0 -7
  2249. package/core/url/qs.js +0 -65
  2250. package/core/url/qs.ts +0 -74
  2251. package/environments.d.ts +0 -5
  2252. package/environments.js +0 -5
  2253. package/environments.ts +0 -7
  2254. package/errors/RevKeenError.d.ts +0 -13
  2255. package/errors/RevKeenError.js +0 -29
  2256. package/errors/RevKeenError.ts +0 -58
  2257. package/errors/RevKeenTimeoutError.d.ts +0 -4
  2258. package/errors/RevKeenTimeoutError.js +0 -12
  2259. package/errors/RevKeenTimeoutError.ts +0 -13
  2260. package/errors/handleNonStatusCodeError.d.ts +0 -3
  2261. package/errors/handleNonStatusCodeError.js +0 -30
  2262. package/errors/handleNonStatusCodeError.ts +0 -37
  2263. package/errors/index.d.ts +0 -3
  2264. package/errors/index.js +0 -3
  2265. package/errors/index.ts +0 -2
  2266. package/exports.d.ts +0 -2
  2267. package/exports.js +0 -2
  2268. package/exports.ts +0 -1
  2269. package/index.d.ts +0 -9
  2270. package/index.js +0 -8
  2271. package/index.ts +0 -10
  2272. package/webhooks.ts +0 -562
package/README.md ADDED
@@ -0,0 +1,137 @@
1
+ # RevKeen TypeScript SDK
2
+
3
+ [![npm version](https://img.shields.io/npm/v/@revkeen/sdk.svg)](https://www.npmjs.com/package/@revkeen/sdk)
4
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
5
+
6
+ Official TypeScript/Node.js SDK for the [RevKeen API](https://docs.revkeen.com/api-reference/openapi) — auto-generated from the OpenAPI specification via [Fern](https://buildwithfern.com).
7
+
8
+ ## Installation
9
+
10
+ ```bash
11
+ npm install @revkeen/sdk
12
+ ```
13
+
14
+ ```bash
15
+ pnpm add @revkeen/sdk
16
+ ```
17
+
18
+ ```bash
19
+ yarn add @revkeen/sdk
20
+ ```
21
+
22
+ ## Quick Start
23
+
24
+ ```typescript
25
+ import { RevKeen } from '@revkeen/sdk';
26
+
27
+ const client = new RevKeen({ apiKey: process.env.REVKEEN_API_KEY! });
28
+
29
+ const customers = await client.customers.list({ limit: 10 });
30
+
31
+ for (const customer of customers.data) {
32
+ console.log(customer.name, customer.email);
33
+ }
34
+ ```
35
+
36
+ ## Authentication
37
+
38
+ ### API Key (recommended for server-to-server)
39
+
40
+ ```typescript
41
+ const client = new RevKeen({ apiKey: process.env.REVKEEN_API_KEY! });
42
+ ```
43
+
44
+ ### OAuth 2.1 (recommended for MCP and third-party integrations)
45
+
46
+ ```typescript
47
+ const client = new RevKeen({
48
+ oauth: {
49
+ clientId: process.env.REVKEEN_CLIENT_ID!,
50
+ clientSecret: process.env.REVKEEN_CLIENT_SECRET!,
51
+ scopes: ['customers:read', 'invoices:read'],
52
+ },
53
+ });
54
+ ```
55
+
56
+ The SDK handles token acquisition, caching, and automatic refresh. See the [OAuth guide](https://docs.revkeen.com/docs/developers/oauth) for details.
57
+
58
+ ## Resources
59
+
60
+ Every API resource is available as a typed property on the client:
61
+
62
+ | Resource | Method examples |
63
+ |----------|----------------|
64
+ | `client.customers` | `list()`, `create()`, `get()`, `update()`, `delete()` |
65
+ | `client.invoices` | `list()`, `create()`, `get()`, `update()`, `finalize()`, `send()`, `void()` |
66
+ | `client.subscriptions` | `list()`, `create()`, `get()`, `update()`, `cancel()`, `pause()`, `resume()` |
67
+ | `client.products` | `list()`, `create()`, `get()`, `update()`, `delete()` |
68
+ | `client.payments` | `list()`, `create()`, `get()` |
69
+ | `client.checkoutSessions` | `create()`, `get()` |
70
+ | `client.discounts` | `list()`, `create()`, `get()`, `update()`, `delete()` |
71
+ | `client.creditNotes` | `list()`, `create()`, `get()` |
72
+ | `client.paymentLinks` | `list()`, `create()`, `get()`, `update()` |
73
+ | `client.paymentMethods` | `list()`, `get()`, `detach()` |
74
+ | `client.webhookEndpoints` | `list()`, `create()`, `delete()` |
75
+ | `client.events` | `list()`, `get()` |
76
+ | `client.entitlements` | `list()`, `check()` |
77
+
78
+ ## Webhook Verification
79
+
80
+ ```typescript
81
+ import { constructEvent, WebhookSignatureVerificationError } from '@revkeen/sdk';
82
+
83
+ try {
84
+ const event = constructEvent(
85
+ requestBody,
86
+ headers['revkeen-signature'],
87
+ process.env.REVKEEN_WEBHOOK_SECRET!
88
+ );
89
+
90
+ switch (event.type) {
91
+ case 'invoice.paid':
92
+ console.log('Invoice paid:', event.data.id);
93
+ break;
94
+ }
95
+ } catch (error) {
96
+ if (error instanceof WebhookSignatureVerificationError) {
97
+ console.error('Invalid signature');
98
+ }
99
+ }
100
+ ```
101
+
102
+ ## Error Handling
103
+
104
+ ```typescript
105
+ try {
106
+ const customer = await client.customers.get('cus_nonexistent');
107
+ } catch (error) {
108
+ if (error instanceof RevKeen.ApiError) {
109
+ console.error(`API error ${error.statusCode}: ${error.message}`);
110
+ }
111
+ }
112
+ ```
113
+
114
+ ## Configuration
115
+
116
+ ```typescript
117
+ const client = new RevKeen({
118
+ apiKey: process.env.REVKEEN_API_KEY!,
119
+ // Staging environment
120
+ baseUrl: 'https://staging-api.revkeen.com',
121
+ // Custom timeout (ms)
122
+ timeoutInSeconds: 30,
123
+ });
124
+ ```
125
+
126
+ ## Compatibility
127
+
128
+ - **Runtime:** Node.js 18+
129
+ - **Package format:** ESM and CommonJS
130
+ - **TypeScript:** Full type definitions included
131
+
132
+ ## Links
133
+
134
+ - [API Reference](https://docs.revkeen.com/api-reference/openapi)
135
+ - [SDK Documentation](https://docs.revkeen.com/docs/developers/sdks/typescript)
136
+ - [Go SDK](https://github.com/revkeen/sdk-go)
137
+ - [PHP SDK](https://github.com/revkeen/sdk-php)
@@ -0,0 +1,17 @@
1
+ interface OAuthConfig {
2
+ clientId: string;
3
+ clientSecret: string;
4
+ tokenEndpoint?: string;
5
+ scopes?: string[];
6
+ }
7
+ declare class OAuthTokenManager {
8
+ private config;
9
+ private cachedToken;
10
+ private inflightRequest;
11
+ constructor(config: OAuthConfig);
12
+ getToken(): Promise<string>;
13
+ private fetchToken;
14
+ private requestToken;
15
+ }
16
+
17
+ export { type OAuthConfig, OAuthTokenManager };
package/dist/auth.d.ts ADDED
@@ -0,0 +1,17 @@
1
+ interface OAuthConfig {
2
+ clientId: string;
3
+ clientSecret: string;
4
+ tokenEndpoint?: string;
5
+ scopes?: string[];
6
+ }
7
+ declare class OAuthTokenManager {
8
+ private config;
9
+ private cachedToken;
10
+ private inflightRequest;
11
+ constructor(config: OAuthConfig);
12
+ getToken(): Promise<string>;
13
+ private fetchToken;
14
+ private requestToken;
15
+ }
16
+
17
+ export { type OAuthConfig, OAuthTokenManager };
package/dist/auth.js ADDED
@@ -0,0 +1,111 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/auth.ts
21
+ var auth_exports = {};
22
+ __export(auth_exports, {
23
+ OAuthTokenManager: () => OAuthTokenManager
24
+ });
25
+ module.exports = __toCommonJS(auth_exports);
26
+
27
+ // src/core/errors.ts
28
+ var RevKeenError = class extends Error {
29
+ constructor(message) {
30
+ super(message);
31
+ this.name = "RevKeenError";
32
+ }
33
+ };
34
+
35
+ // src/core/oauth.ts
36
+ var DEFAULT_TOKEN_ENDPOINT = "https://api.revkeen.com/api/auth/oauth2/token";
37
+ var PRE_EXPIRY_BUFFER_MS = 6e4;
38
+ var OAuthTokenManager = class {
39
+ config;
40
+ cachedToken = null;
41
+ inflightRequest = null;
42
+ constructor(config) {
43
+ this.config = {
44
+ clientId: config.clientId,
45
+ clientSecret: config.clientSecret,
46
+ tokenEndpoint: config.tokenEndpoint || DEFAULT_TOKEN_ENDPOINT,
47
+ scopes: config.scopes
48
+ };
49
+ }
50
+ async getToken() {
51
+ if (this.cachedToken && Date.now() < this.cachedToken.expiresAt - PRE_EXPIRY_BUFFER_MS) {
52
+ return this.cachedToken.accessToken;
53
+ }
54
+ if (this.inflightRequest) {
55
+ return this.inflightRequest;
56
+ }
57
+ this.inflightRequest = this.fetchToken();
58
+ try {
59
+ return await this.inflightRequest;
60
+ } finally {
61
+ this.inflightRequest = null;
62
+ }
63
+ }
64
+ async fetchToken() {
65
+ if (this.cachedToken?.refreshToken) {
66
+ try {
67
+ return await this.requestToken("refresh_token");
68
+ } catch {
69
+ }
70
+ }
71
+ return await this.requestToken("client_credentials");
72
+ }
73
+ async requestToken(grantType) {
74
+ const body = new URLSearchParams();
75
+ body.set("grant_type", grantType);
76
+ if (grantType === "client_credentials") {
77
+ body.set("client_id", this.config.clientId);
78
+ body.set("client_secret", this.config.clientSecret);
79
+ if (this.config.scopes?.length) {
80
+ body.set("scope", this.config.scopes.join(" "));
81
+ }
82
+ } else if (grantType === "refresh_token" && this.cachedToken?.refreshToken) {
83
+ body.set("refresh_token", this.cachedToken.refreshToken);
84
+ body.set("client_id", this.config.clientId);
85
+ body.set("client_secret", this.config.clientSecret);
86
+ }
87
+ const res = await fetch(this.config.tokenEndpoint, {
88
+ method: "POST",
89
+ headers: { "Content-Type": "application/x-www-form-urlencoded" },
90
+ body: body.toString()
91
+ });
92
+ if (!res.ok) {
93
+ const errorBody = await res.text().catch(() => "");
94
+ throw new RevKeenError(
95
+ `OAuth token request failed (${res.status}): ${errorBody || res.statusText}`
96
+ );
97
+ }
98
+ const data = await res.json();
99
+ this.cachedToken = {
100
+ accessToken: data.access_token,
101
+ refreshToken: data.refresh_token ?? this.cachedToken?.refreshToken,
102
+ expiresAt: Date.now() + data.expires_in * 1e3
103
+ };
104
+ return data.access_token;
105
+ }
106
+ };
107
+ // Annotate the CommonJS export names for ESM import in node:
108
+ 0 && (module.exports = {
109
+ OAuthTokenManager
110
+ });
111
+ //# sourceMappingURL=auth.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/auth.ts","../src/core/errors.ts","../src/core/oauth.ts"],"sourcesContent":["export { OAuthTokenManager } from \"./core/oauth.js\";\nexport type { OAuthConfig } from \"./core/oauth.js\";\n","export class RevKeenError extends Error {\n constructor(message: string) {\n super(message);\n this.name = \"RevKeenError\";\n }\n}\n\nexport class RevKeenAPIError extends RevKeenError {\n constructor(\n public readonly status: number,\n message: string,\n public readonly body: unknown,\n ) {\n super(message);\n this.name = \"RevKeenAPIError\";\n }\n}\n\nexport class RevKeenTimeoutError extends RevKeenError {\n constructor(message: string) {\n super(message);\n this.name = \"RevKeenTimeoutError\";\n }\n}\n","import { RevKeenError } from \"./errors.js\";\n\nexport interface OAuthConfig {\n clientId: string;\n clientSecret: string;\n tokenEndpoint?: string;\n scopes?: string[];\n}\n\ninterface TokenResponse {\n access_token: string;\n token_type: string;\n expires_in: number;\n refresh_token?: string;\n scope?: string;\n}\n\ninterface CachedToken {\n accessToken: string;\n refreshToken?: string;\n expiresAt: number;\n}\n\nconst DEFAULT_TOKEN_ENDPOINT = \"https://api.revkeen.com/api/auth/oauth2/token\";\nconst PRE_EXPIRY_BUFFER_MS = 60_000; // Refresh 60s before expiry\n\nexport class OAuthTokenManager {\n private config: Required<Pick<OAuthConfig, \"clientId\" | \"clientSecret\" | \"tokenEndpoint\">> &\n Pick<OAuthConfig, \"scopes\">;\n private cachedToken: CachedToken | null = null;\n private inflightRequest: Promise<string> | null = null;\n\n constructor(config: OAuthConfig) {\n this.config = {\n clientId: config.clientId,\n clientSecret: config.clientSecret,\n tokenEndpoint: config.tokenEndpoint || DEFAULT_TOKEN_ENDPOINT,\n scopes: config.scopes,\n };\n }\n\n async getToken(): Promise<string> {\n // Return cached token if still valid\n if (this.cachedToken && Date.now() < this.cachedToken.expiresAt - PRE_EXPIRY_BUFFER_MS) {\n return this.cachedToken.accessToken;\n }\n\n // Deduplicate concurrent requests\n if (this.inflightRequest) {\n return this.inflightRequest;\n }\n\n this.inflightRequest = this.fetchToken();\n try {\n return await this.inflightRequest;\n } finally {\n this.inflightRequest = null;\n }\n }\n\n private async fetchToken(): Promise<string> {\n // Try refresh token first if available\n if (this.cachedToken?.refreshToken) {\n try {\n return await this.requestToken(\"refresh_token\");\n } catch {\n // Fall back to client_credentials\n }\n }\n\n return await this.requestToken(\"client_credentials\");\n }\n\n private async requestToken(grantType: \"client_credentials\" | \"refresh_token\"): Promise<string> {\n const body = new URLSearchParams();\n body.set(\"grant_type\", grantType);\n\n if (grantType === \"client_credentials\") {\n body.set(\"client_id\", this.config.clientId);\n body.set(\"client_secret\", this.config.clientSecret);\n if (this.config.scopes?.length) {\n body.set(\"scope\", this.config.scopes.join(\" \"));\n }\n } else if (grantType === \"refresh_token\" && this.cachedToken?.refreshToken) {\n body.set(\"refresh_token\", this.cachedToken.refreshToken);\n body.set(\"client_id\", this.config.clientId);\n body.set(\"client_secret\", this.config.clientSecret);\n }\n\n const res = await fetch(this.config.tokenEndpoint, {\n method: \"POST\",\n headers: { \"Content-Type\": \"application/x-www-form-urlencoded\" },\n body: body.toString(),\n });\n\n if (!res.ok) {\n const errorBody = await res.text().catch(() => \"\");\n throw new RevKeenError(\n `OAuth token request failed (${res.status}): ${errorBody || res.statusText}`\n );\n }\n\n const data = (await res.json()) as TokenResponse;\n\n this.cachedToken = {\n accessToken: data.access_token,\n refreshToken: data.refresh_token ?? this.cachedToken?.refreshToken,\n expiresAt: Date.now() + data.expires_in * 1000,\n };\n\n return data.access_token;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAO,IAAM,eAAN,cAA2B,MAAM;AAAA,EACtC,YAAY,SAAiB;AAC3B,UAAM,OAAO;AACb,SAAK,OAAO;AAAA,EACd;AACF;;;ACkBA,IAAM,yBAAyB;AAC/B,IAAM,uBAAuB;AAEtB,IAAM,oBAAN,MAAwB;AAAA,EACrB;AAAA,EAEA,cAAkC;AAAA,EAClC,kBAA0C;AAAA,EAElD,YAAY,QAAqB;AAC/B,SAAK,SAAS;AAAA,MACZ,UAAU,OAAO;AAAA,MACjB,cAAc,OAAO;AAAA,MACrB,eAAe,OAAO,iBAAiB;AAAA,MACvC,QAAQ,OAAO;AAAA,IACjB;AAAA,EACF;AAAA,EAEA,MAAM,WAA4B;AAEhC,QAAI,KAAK,eAAe,KAAK,IAAI,IAAI,KAAK,YAAY,YAAY,sBAAsB;AACtF,aAAO,KAAK,YAAY;AAAA,IAC1B;AAGA,QAAI,KAAK,iBAAiB;AACxB,aAAO,KAAK;AAAA,IACd;AAEA,SAAK,kBAAkB,KAAK,WAAW;AACvC,QAAI;AACF,aAAO,MAAM,KAAK;AAAA,IACpB,UAAE;AACA,WAAK,kBAAkB;AAAA,IACzB;AAAA,EACF;AAAA,EAEA,MAAc,aAA8B;AAE1C,QAAI,KAAK,aAAa,cAAc;AAClC,UAAI;AACF,eAAO,MAAM,KAAK,aAAa,eAAe;AAAA,MAChD,QAAQ;AAAA,MAER;AAAA,IACF;AAEA,WAAO,MAAM,KAAK,aAAa,oBAAoB;AAAA,EACrD;AAAA,EAEA,MAAc,aAAa,WAAoE;AAC7F,UAAM,OAAO,IAAI,gBAAgB;AACjC,SAAK,IAAI,cAAc,SAAS;AAEhC,QAAI,cAAc,sBAAsB;AACtC,WAAK,IAAI,aAAa,KAAK,OAAO,QAAQ;AAC1C,WAAK,IAAI,iBAAiB,KAAK,OAAO,YAAY;AAClD,UAAI,KAAK,OAAO,QAAQ,QAAQ;AAC9B,aAAK,IAAI,SAAS,KAAK,OAAO,OAAO,KAAK,GAAG,CAAC;AAAA,MAChD;AAAA,IACF,WAAW,cAAc,mBAAmB,KAAK,aAAa,cAAc;AAC1E,WAAK,IAAI,iBAAiB,KAAK,YAAY,YAAY;AACvD,WAAK,IAAI,aAAa,KAAK,OAAO,QAAQ;AAC1C,WAAK,IAAI,iBAAiB,KAAK,OAAO,YAAY;AAAA,IACpD;AAEA,UAAM,MAAM,MAAM,MAAM,KAAK,OAAO,eAAe;AAAA,MACjD,QAAQ;AAAA,MACR,SAAS,EAAE,gBAAgB,oCAAoC;AAAA,MAC/D,MAAM,KAAK,SAAS;AAAA,IACtB,CAAC;AAED,QAAI,CAAC,IAAI,IAAI;AACX,YAAM,YAAY,MAAM,IAAI,KAAK,EAAE,MAAM,MAAM,EAAE;AACjD,YAAM,IAAI;AAAA,QACR,+BAA+B,IAAI,MAAM,MAAM,aAAa,IAAI,UAAU;AAAA,MAC5E;AAAA,IACF;AAEA,UAAM,OAAQ,MAAM,IAAI,KAAK;AAE7B,SAAK,cAAc;AAAA,MACjB,aAAa,KAAK;AAAA,MAClB,cAAc,KAAK,iBAAiB,KAAK,aAAa;AAAA,MACtD,WAAW,KAAK,IAAI,IAAI,KAAK,aAAa;AAAA,IAC5C;AAEA,WAAO,KAAK;AAAA,EACd;AACF;","names":[]}
package/dist/auth.mjs ADDED
@@ -0,0 +1,7 @@
1
+ import {
2
+ OAuthTokenManager
3
+ } from "./chunk-VKMDZSYJ.mjs";
4
+ export {
5
+ OAuthTokenManager
6
+ };
7
+ //# sourceMappingURL=auth.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,179 @@
1
+ // src/webhooks.ts
2
+ import { createHmac, timingSafeEqual } from "crypto";
3
+ var WEBHOOK_TOLERANCE_IN_SECONDS = 300;
4
+ function extractWebhookHeaders(headers) {
5
+ const getHeader = (name) => {
6
+ const value = headers[name] || headers[name.toLowerCase()];
7
+ if (Array.isArray(value)) return value[0];
8
+ return value || void 0;
9
+ };
10
+ const signature = getHeader("X-Revkeen-Signature") || getHeader("x-rk-signature");
11
+ if (!signature) {
12
+ throw new WebhookSignatureVerificationError(
13
+ "Missing webhook signature header (X-Revkeen-Signature or x-rk-signature)"
14
+ );
15
+ }
16
+ return {
17
+ signature,
18
+ version: getHeader("X-Revkeen-Version"),
19
+ account: getHeader("X-Revkeen-Account"),
20
+ eventId: getHeader("X-Revkeen-Event-Id"),
21
+ timestamp: getHeader("X-Revkeen-Timestamp")
22
+ };
23
+ }
24
+ var WebhookSignatureVerificationError = class _WebhookSignatureVerificationError extends Error {
25
+ constructor(message) {
26
+ super(message);
27
+ this.name = "WebhookSignatureVerificationError";
28
+ if (Error.captureStackTrace) {
29
+ Error.captureStackTrace(this, _WebhookSignatureVerificationError);
30
+ }
31
+ }
32
+ };
33
+ function parseSignatureHeader(header) {
34
+ const parts = header.split(",");
35
+ let timestamp;
36
+ const signatures = [];
37
+ for (const part of parts) {
38
+ const [key, value] = part.split("=");
39
+ if (key === "t") {
40
+ timestamp = parseInt(value, 10);
41
+ } else if (key === "v1") {
42
+ signatures.push(value);
43
+ }
44
+ }
45
+ if (!timestamp || signatures.length === 0) {
46
+ throw new WebhookSignatureVerificationError(
47
+ "Invalid signature header: missing timestamp or signature"
48
+ );
49
+ }
50
+ return { timestamp, signatures };
51
+ }
52
+ function verifySignature(options) {
53
+ const {
54
+ payload,
55
+ signature,
56
+ secret,
57
+ tolerance = WEBHOOK_TOLERANCE_IN_SECONDS
58
+ } = options;
59
+ if (!signature) {
60
+ throw new WebhookSignatureVerificationError(
61
+ "Missing webhook signature header"
62
+ );
63
+ }
64
+ const parsed = parseSignatureHeader(signature);
65
+ const currentTime = Math.floor(Date.now() / 1e3);
66
+ const timeDiff = Math.abs(currentTime - parsed.timestamp);
67
+ if (timeDiff > tolerance) {
68
+ throw new WebhookSignatureVerificationError(
69
+ `Timestamp outside tolerance window (${timeDiff}s > ${tolerance}s). The webhook might be a replay attack, or your server's clock might be out of sync.`
70
+ );
71
+ }
72
+ const signedPayload = `${parsed.timestamp}.${payload}`;
73
+ const expectedSignature = createHmac("sha256", secret).update(signedPayload, "utf8").digest("hex");
74
+ const signatureValid = parsed.signatures.some((sig) => {
75
+ try {
76
+ const sigBuffer = Buffer.from(sig, "hex");
77
+ const expectedBuffer = Buffer.from(expectedSignature, "hex");
78
+ if (sigBuffer.length !== expectedBuffer.length) {
79
+ return false;
80
+ }
81
+ return timingSafeEqual(sigBuffer, expectedBuffer);
82
+ } catch {
83
+ return false;
84
+ }
85
+ });
86
+ if (!signatureValid) {
87
+ throw new WebhookSignatureVerificationError(
88
+ "Signature verification failed. Ensure you're using the correct webhook secret and the raw request body."
89
+ );
90
+ }
91
+ return true;
92
+ }
93
+ function constructEvent(payload, signature, secret, options) {
94
+ verifySignature({
95
+ payload,
96
+ signature,
97
+ secret,
98
+ tolerance: options?.tolerance
99
+ });
100
+ try {
101
+ const event = JSON.parse(payload);
102
+ if (!event.id || !event.type || !event.data) {
103
+ throw new Error("Invalid event structure");
104
+ }
105
+ return event;
106
+ } catch (error) {
107
+ if (error instanceof SyntaxError) {
108
+ throw new WebhookSignatureVerificationError(
109
+ "Invalid JSON payload: " + error.message
110
+ );
111
+ }
112
+ throw error;
113
+ }
114
+ }
115
+ function constructEventWithHeaders(payload, headers, secret, options) {
116
+ verifySignature({
117
+ payload,
118
+ signature: headers.signature,
119
+ secret,
120
+ tolerance: options?.tolerance
121
+ });
122
+ try {
123
+ const event = JSON.parse(payload);
124
+ if (!event.id || !event.type || !event.data) {
125
+ throw new Error("Invalid event structure");
126
+ }
127
+ return {
128
+ ...event,
129
+ api_version: event.api_version || headers.version || "unknown",
130
+ account: event.account || headers.account
131
+ };
132
+ } catch (error) {
133
+ if (error instanceof SyntaxError) {
134
+ throw new WebhookSignatureVerificationError(
135
+ "Invalid JSON payload: " + error.message
136
+ );
137
+ }
138
+ throw error;
139
+ }
140
+ }
141
+ var webhooks = {
142
+ /**
143
+ * Constructs and verifies a webhook event
144
+ * @see constructEvent
145
+ */
146
+ constructEvent,
147
+ /**
148
+ * Constructs and verifies a webhook event with header metadata
149
+ * @see constructEventWithHeaders
150
+ */
151
+ constructEventWithHeaders,
152
+ /**
153
+ * Extract webhook headers from request
154
+ * @see extractWebhookHeaders
155
+ */
156
+ extractWebhookHeaders,
157
+ /**
158
+ * Verifies a webhook signature without parsing the payload
159
+ * @see verifySignature
160
+ */
161
+ verifySignature,
162
+ /**
163
+ * Default timestamp tolerance in seconds
164
+ */
165
+ TOLERANCE_IN_SECONDS: WEBHOOK_TOLERANCE_IN_SECONDS
166
+ };
167
+ var webhooks_default = webhooks;
168
+
169
+ export {
170
+ WEBHOOK_TOLERANCE_IN_SECONDS,
171
+ extractWebhookHeaders,
172
+ WebhookSignatureVerificationError,
173
+ verifySignature,
174
+ constructEvent,
175
+ constructEventWithHeaders,
176
+ webhooks,
177
+ webhooks_default
178
+ };
179
+ //# sourceMappingURL=chunk-R2LGIZGP.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/webhooks.ts"],"sourcesContent":["/**\n * RevKeen Webhook Utilities for TypeScript/Node.js SDK\n *\n * This file is automatically bundled with the generated SDK.\n * It provides webhook signature verification and event construction.\n *\n * ## Webhook Headers\n *\n * RevKeen sends the following headers with each webhook delivery:\n * - `X-Revkeen-Signature`: HMAC signature (format: `t=xxx,v1=yyy`)\n * - `X-Revkeen-Version`: API version date (e.g., `2026-01-01`)\n * - `X-Revkeen-Account`: Merchant account ID\n * - `X-Revkeen-Event-Id`: Unique event identifier\n * - `X-Revkeen-Timestamp`: Unix timestamp\n *\n * @example Basic usage\n * ```typescript\n * import { RevKeen, constructEvent, WebhookSignatureVerificationError } from '@revkeen/sdk';\n *\n * // In your webhook endpoint\n * app.post('/webhook', express.raw({ type: 'application/json' }), (req, res) => {\n * const signature = req.headers['x-revkeen-signature'] as string;\n *\n * try {\n * const event = constructEvent(req.body.toString(), signature, webhookSecret);\n *\n * switch (event.type) {\n * case 'invoice.paid':\n * const invoice = event.data.object;\n * // Handle invoice paid...\n * break;\n * case 'subscription.created':\n * const subscription = event.data.object;\n * // Handle subscription created...\n * break;\n * }\n *\n * res.json({ received: true });\n * } catch (error) {\n * if (error instanceof WebhookSignatureVerificationError) {\n * console.error('Webhook signature verification failed:', error.message);\n * return res.status(400).json({ error: 'Invalid signature' });\n * }\n * throw error;\n * }\n * });\n * ```\n *\n * @example With version headers (recommended)\n * ```typescript\n * import {\n * extractWebhookHeaders,\n * constructEventWithHeaders,\n * WebhookSignatureVerificationError\n * } from '@revkeen/sdk';\n *\n * app.post('/webhook', express.raw({ type: 'application/json' }), (req, res) => {\n * try {\n * const headers = extractWebhookHeaders(req.headers);\n * const event = constructEventWithHeaders(req.body.toString(), headers, webhookSecret);\n *\n * console.log('API Version:', event.api_version);\n * console.log('Account:', event.account);\n *\n * // Handle the event...\n * res.json({ received: true });\n * } catch (error) {\n * if (error instanceof WebhookSignatureVerificationError) {\n * return res.status(400).json({ error: 'Invalid signature' });\n * }\n * throw error;\n * }\n * });\n * ```\n */\n\nimport { createHmac, timingSafeEqual } from \"crypto\";\n\n/**\n * Default tolerance for timestamp validation (5 minutes)\n */\nexport const WEBHOOK_TOLERANCE_IN_SECONDS = 300;\n\n/**\n * All possible webhook event types\n */\nexport type WebhookEventType =\n // Invoice events\n | \"invoice.created\"\n | \"invoice.updated\"\n | \"invoice.finalized\"\n | \"invoice.sent\"\n | \"invoice.paid\"\n | \"invoice.voided\"\n | \"invoice.payment_failed\"\n | \"invoice.overdue\"\n // Subscription events\n | \"subscription.created\"\n | \"subscription.updated\"\n | \"subscription.renewed\"\n | \"subscription.canceled\"\n | \"subscription.paused\"\n | \"subscription.resumed\"\n | \"subscription.trial_ending\"\n | \"subscription.trial_ended\"\n | \"subscription.past_due\"\n // Payment events\n | \"payment.succeeded\"\n | \"payment.failed\"\n | \"payment.refunded\"\n | \"payment.disputed\"\n | \"payment.captured\"\n // Customer events\n | \"customer.created\"\n | \"customer.updated\"\n | \"customer.deleted\"\n | \"customer.payment_method.attached\"\n | \"customer.payment_method.detached\"\n // Checkout events\n | \"checkout.session.completed\"\n | \"checkout.session.expired\"\n | \"checkout.session.async_payment_succeeded\"\n | \"checkout.session.async_payment_failed\"\n // Order events\n | \"order.created\"\n | \"order.updated\"\n | \"order.paid\"\n | \"order.canceled\"\n | \"order.fulfilled\"\n // Plan/Product events\n | \"plan.created\"\n | \"plan.updated\"\n | \"plan.deleted\"\n | \"product.created\"\n | \"product.updated\"\n | \"product.deleted\"\n // Price events\n | \"price.created\"\n | \"price.updated\"\n | \"price.deleted\"\n // Integration events\n | \"integration.product_mapping.created\"\n | \"integration.product_mapping.updated\"\n | \"integration.product_mapping.deleted\";\n\n/**\n * Webhook event data structure\n */\nexport interface WebhookEventData<T = unknown> {\n /** The object that triggered the event */\n object: T;\n /** Previous attributes if this is an update event */\n previous_attributes?: Partial<T>;\n}\n\n/**\n * Webhook event structure (Stripe-compatible)\n */\nexport interface WebhookEvent<T = unknown> {\n /** Unique event identifier */\n id: string;\n /** Object type, always \"event\" */\n object: \"event\";\n /** Event type */\n type: WebhookEventType;\n /** Unix timestamp when the event was created */\n created: number;\n /** Whether this is a live mode event */\n livemode: boolean;\n /** API version used to render the event data */\n api_version: string;\n /** Merchant account ID */\n account?: string;\n /** Event data */\n data: WebhookEventData<T>;\n /** Request information */\n request?: {\n id?: string;\n idempotency_key?: string;\n };\n}\n\n/**\n * Options for webhook signature verification\n */\nexport interface WebhookVerifyOptions {\n /** The raw request body as a string */\n payload: string;\n /** The signature header value (revkeen-signature) */\n signature: string;\n /** Your webhook secret (starts with rk_wh_) */\n secret: string;\n /** Tolerance in seconds for timestamp validation (default: 300) */\n tolerance?: number;\n}\n\n/**\n * Webhook headers sent with each delivery\n */\nexport interface WebhookHeaders {\n /** X-Revkeen-Signature: HMAC signature (t=xxx,v1=yyy) */\n signature: string;\n /** X-Revkeen-Version: API version date (e.g., \"2026-01-01\") */\n version?: string;\n /** X-Revkeen-Account: Merchant account ID */\n account?: string;\n /** X-Revkeen-Event-Id: Unique event identifier */\n eventId?: string;\n /** X-Revkeen-Timestamp: Unix timestamp */\n timestamp?: string;\n}\n\n/**\n * Extract webhook headers from request headers\n * Works with both Request objects and plain header objects\n *\n * @example\n * ```typescript\n * // Express.js\n * const headers = extractWebhookHeaders({\n * 'x-revkeen-signature': req.headers['x-revkeen-signature'],\n * 'x-revkeen-version': req.headers['x-revkeen-version'],\n * 'x-revkeen-account': req.headers['x-revkeen-account'],\n * 'x-revkeen-event-id': req.headers['x-revkeen-event-id'],\n * 'x-revkeen-timestamp': req.headers['x-revkeen-timestamp'],\n * });\n *\n * // Next.js / Web Request\n * const headers = extractWebhookHeaders({\n * 'x-revkeen-signature': request.headers.get('x-revkeen-signature'),\n * 'x-revkeen-version': request.headers.get('x-revkeen-version'),\n * 'x-revkeen-account': request.headers.get('x-revkeen-account'),\n * 'x-revkeen-event-id': request.headers.get('x-revkeen-event-id'),\n * 'x-revkeen-timestamp': request.headers.get('x-revkeen-timestamp'),\n * });\n * ```\n */\nexport function extractWebhookHeaders(\n headers: Record<string, string | string[] | null | undefined>\n): WebhookHeaders {\n const getHeader = (name: string): string | undefined => {\n const value = headers[name] || headers[name.toLowerCase()];\n if (Array.isArray(value)) return value[0];\n return value || undefined;\n };\n\n const signature = getHeader(\"X-Revkeen-Signature\") || getHeader(\"x-rk-signature\");\n if (!signature) {\n throw new WebhookSignatureVerificationError(\n \"Missing webhook signature header (X-Revkeen-Signature or x-rk-signature)\"\n );\n }\n\n return {\n signature,\n version: getHeader(\"X-Revkeen-Version\"),\n account: getHeader(\"X-Revkeen-Account\"),\n eventId: getHeader(\"X-Revkeen-Event-Id\"),\n timestamp: getHeader(\"X-Revkeen-Timestamp\"),\n };\n}\n\n/**\n * Error thrown when webhook signature verification fails\n */\nexport class WebhookSignatureVerificationError extends Error {\n constructor(message: string) {\n super(message);\n this.name = \"WebhookSignatureVerificationError\";\n // Maintains proper stack trace for where our error was thrown\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, WebhookSignatureVerificationError);\n }\n }\n}\n\n/**\n * Parsed webhook signature components\n */\ninterface ParsedSignature {\n timestamp: number;\n signatures: string[];\n}\n\n/**\n * Parses a webhook signature header\n * Format: \"t={timestamp},v1={signature}\"\n */\nfunction parseSignatureHeader(header: string): ParsedSignature {\n const parts = header.split(\",\");\n let timestamp: number | undefined;\n const signatures: string[] = [];\n\n for (const part of parts) {\n const [key, value] = part.split(\"=\");\n\n if (key === \"t\") {\n timestamp = parseInt(value, 10);\n } else if (key === \"v1\") {\n signatures.push(value);\n }\n }\n\n if (!timestamp || signatures.length === 0) {\n throw new WebhookSignatureVerificationError(\n \"Invalid signature header: missing timestamp or signature\"\n );\n }\n\n return { timestamp, signatures };\n}\n\n/**\n * Verifies a webhook signature and returns whether it's valid\n *\n * @param options - Verification options\n * @returns true if the signature is valid\n * @throws WebhookSignatureVerificationError if verification fails\n */\nexport function verifySignature(options: WebhookVerifyOptions): boolean {\n const {\n payload,\n signature,\n secret,\n tolerance = WEBHOOK_TOLERANCE_IN_SECONDS,\n } = options;\n\n // Check if signature header exists\n if (!signature) {\n throw new WebhookSignatureVerificationError(\n \"Missing webhook signature header\"\n );\n }\n\n // Parse signature header\n const parsed = parseSignatureHeader(signature);\n\n // Check timestamp tolerance (prevent replay attacks)\n const currentTime = Math.floor(Date.now() / 1000);\n const timeDiff = Math.abs(currentTime - parsed.timestamp);\n\n if (timeDiff > tolerance) {\n throw new WebhookSignatureVerificationError(\n `Timestamp outside tolerance window (${timeDiff}s > ${tolerance}s). ` +\n \"The webhook might be a replay attack, or your server's clock might be out of sync.\"\n );\n }\n\n // Generate expected signature\n const signedPayload = `${parsed.timestamp}.${payload}`;\n const expectedSignature = createHmac(\"sha256\", secret)\n .update(signedPayload, \"utf8\")\n .digest(\"hex\");\n\n // Compare signatures using constant-time comparison\n const signatureValid = parsed.signatures.some((sig) => {\n try {\n const sigBuffer = Buffer.from(sig, \"hex\");\n const expectedBuffer = Buffer.from(expectedSignature, \"hex\");\n\n // Only compare if lengths match\n if (sigBuffer.length !== expectedBuffer.length) {\n return false;\n }\n\n return timingSafeEqual(sigBuffer, expectedBuffer);\n } catch {\n return false;\n }\n });\n\n if (!signatureValid) {\n throw new WebhookSignatureVerificationError(\n \"Signature verification failed. \" +\n \"Ensure you're using the correct webhook secret and the raw request body.\"\n );\n }\n\n return true;\n}\n\n/**\n * Constructs and verifies a webhook event from a raw payload\n *\n * @param payload - The raw request body as a string\n * @param signature - The signature header value (revkeen-signature header)\n * @param secret - Your webhook secret (starts with rk_wh_)\n * @param options - Additional options\n * @returns The verified webhook event\n * @throws WebhookSignatureVerificationError if verification fails\n *\n * @example\n * ```typescript\n * // Express.js example\n * app.post('/webhook', express.raw({ type: 'application/json' }), (req, res) => {\n * const event = constructEvent(\n * req.body.toString(),\n * req.headers['revkeen-signature'] as string,\n * process.env.REVKEEN_WEBHOOK_SECRET!\n * );\n *\n * console.log('Received event:', event.type);\n * res.json({ received: true });\n * });\n * ```\n *\n * @example\n * ```typescript\n * // Next.js API route example\n * export async function POST(req: Request) {\n * const body = await req.text();\n * const signature = req.headers.get('revkeen-signature')!;\n *\n * const event = constructEvent(body, signature, process.env.REVKEEN_WEBHOOK_SECRET!);\n *\n * // Handle the event...\n * return Response.json({ received: true });\n * }\n * ```\n */\nexport function constructEvent(\n payload: string,\n signature: string,\n secret: string,\n options?: {\n tolerance?: number;\n }\n): WebhookEvent {\n // Verify the signature\n verifySignature({\n payload,\n signature,\n secret,\n tolerance: options?.tolerance,\n });\n\n // Parse and return the event\n try {\n const event = JSON.parse(payload) as WebhookEvent;\n\n // Basic validation\n if (!event.id || !event.type || !event.data) {\n throw new Error(\"Invalid event structure\");\n }\n\n return event;\n } catch (error) {\n if (error instanceof SyntaxError) {\n throw new WebhookSignatureVerificationError(\n \"Invalid JSON payload: \" + error.message\n );\n }\n throw error;\n }\n}\n\n/**\n * Constructs and verifies a webhook event with header metadata\n *\n * This function extracts version information from headers and merges it\n * with the event payload for a richer event object.\n *\n * @param payload - The raw request body as a string\n * @param headers - Webhook headers extracted from the request\n * @param secret - Your webhook secret (starts with rk_wh_)\n * @param options - Additional options\n * @returns The verified webhook event with header metadata\n * @throws WebhookSignatureVerificationError if verification fails\n *\n * @example\n * ```typescript\n * // Express.js example\n * app.post('/webhook', express.raw({ type: 'application/json' }), (req, res) => {\n * const headers = extractWebhookHeaders(req.headers);\n * const event = constructEventWithHeaders(\n * req.body.toString(),\n * headers,\n * process.env.REVKEEN_WEBHOOK_SECRET!\n * );\n *\n * console.log('API Version:', event.api_version);\n * console.log('Account:', event.account);\n * res.json({ received: true });\n * });\n * ```\n */\nexport function constructEventWithHeaders(\n payload: string,\n headers: WebhookHeaders,\n secret: string,\n options?: {\n tolerance?: number;\n }\n): WebhookEvent {\n // Verify the signature using the header\n verifySignature({\n payload,\n signature: headers.signature,\n secret,\n tolerance: options?.tolerance,\n });\n\n // Parse the event\n try {\n const event = JSON.parse(payload) as WebhookEvent;\n\n // Basic validation\n if (!event.id || !event.type || !event.data) {\n throw new Error(\"Invalid event structure\");\n }\n\n // Merge header metadata into event if not already present\n return {\n ...event,\n api_version: event.api_version || headers.version || \"unknown\",\n account: event.account || headers.account,\n };\n } catch (error) {\n if (error instanceof SyntaxError) {\n throw new WebhookSignatureVerificationError(\n \"Invalid JSON payload: \" + error.message\n );\n }\n throw error;\n }\n}\n\n/**\n * Webhook utilities namespace for SDK integration\n */\nexport const webhooks = {\n /**\n * Constructs and verifies a webhook event\n * @see constructEvent\n */\n constructEvent,\n\n /**\n * Constructs and verifies a webhook event with header metadata\n * @see constructEventWithHeaders\n */\n constructEventWithHeaders,\n\n /**\n * Extract webhook headers from request\n * @see extractWebhookHeaders\n */\n extractWebhookHeaders,\n\n /**\n * Verifies a webhook signature without parsing the payload\n * @see verifySignature\n */\n verifySignature,\n\n /**\n * Default timestamp tolerance in seconds\n */\n TOLERANCE_IN_SECONDS: WEBHOOK_TOLERANCE_IN_SECONDS,\n};\n\nexport default webhooks;\n"],"mappings":";AA4EA,SAAS,YAAY,uBAAuB;AAKrC,IAAM,+BAA+B;AA4JrC,SAAS,sBACd,SACgB;AAChB,QAAM,YAAY,CAAC,SAAqC;AACtD,UAAM,QAAQ,QAAQ,IAAI,KAAK,QAAQ,KAAK,YAAY,CAAC;AACzD,QAAI,MAAM,QAAQ,KAAK,EAAG,QAAO,MAAM,CAAC;AACxC,WAAO,SAAS;AAAA,EAClB;AAEA,QAAM,YAAY,UAAU,qBAAqB,KAAK,UAAU,gBAAgB;AAChF,MAAI,CAAC,WAAW;AACd,UAAM,IAAI;AAAA,MACR;AAAA,IACF;AAAA,EACF;AAEA,SAAO;AAAA,IACL;AAAA,IACA,SAAS,UAAU,mBAAmB;AAAA,IACtC,SAAS,UAAU,mBAAmB;AAAA,IACtC,SAAS,UAAU,oBAAoB;AAAA,IACvC,WAAW,UAAU,qBAAqB;AAAA,EAC5C;AACF;AAKO,IAAM,oCAAN,MAAM,2CAA0C,MAAM;AAAA,EAC3D,YAAY,SAAiB;AAC3B,UAAM,OAAO;AACb,SAAK,OAAO;AAEZ,QAAI,MAAM,mBAAmB;AAC3B,YAAM,kBAAkB,MAAM,kCAAiC;AAAA,IACjE;AAAA,EACF;AACF;AAcA,SAAS,qBAAqB,QAAiC;AAC7D,QAAM,QAAQ,OAAO,MAAM,GAAG;AAC9B,MAAI;AACJ,QAAM,aAAuB,CAAC;AAE9B,aAAW,QAAQ,OAAO;AACxB,UAAM,CAAC,KAAK,KAAK,IAAI,KAAK,MAAM,GAAG;AAEnC,QAAI,QAAQ,KAAK;AACf,kBAAY,SAAS,OAAO,EAAE;AAAA,IAChC,WAAW,QAAQ,MAAM;AACvB,iBAAW,KAAK,KAAK;AAAA,IACvB;AAAA,EACF;AAEA,MAAI,CAAC,aAAa,WAAW,WAAW,GAAG;AACzC,UAAM,IAAI;AAAA,MACR;AAAA,IACF;AAAA,EACF;AAEA,SAAO,EAAE,WAAW,WAAW;AACjC;AASO,SAAS,gBAAgB,SAAwC;AACtE,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA,YAAY;AAAA,EACd,IAAI;AAGJ,MAAI,CAAC,WAAW;AACd,UAAM,IAAI;AAAA,MACR;AAAA,IACF;AAAA,EACF;AAGA,QAAM,SAAS,qBAAqB,SAAS;AAG7C,QAAM,cAAc,KAAK,MAAM,KAAK,IAAI,IAAI,GAAI;AAChD,QAAM,WAAW,KAAK,IAAI,cAAc,OAAO,SAAS;AAExD,MAAI,WAAW,WAAW;AACxB,UAAM,IAAI;AAAA,MACR,uCAAuC,QAAQ,OAAO,SAAS;AAAA,IAEjE;AAAA,EACF;AAGA,QAAM,gBAAgB,GAAG,OAAO,SAAS,IAAI,OAAO;AACpD,QAAM,oBAAoB,WAAW,UAAU,MAAM,EAClD,OAAO,eAAe,MAAM,EAC5B,OAAO,KAAK;AAGf,QAAM,iBAAiB,OAAO,WAAW,KAAK,CAAC,QAAQ;AACrD,QAAI;AACF,YAAM,YAAY,OAAO,KAAK,KAAK,KAAK;AACxC,YAAM,iBAAiB,OAAO,KAAK,mBAAmB,KAAK;AAG3D,UAAI,UAAU,WAAW,eAAe,QAAQ;AAC9C,eAAO;AAAA,MACT;AAEA,aAAO,gBAAgB,WAAW,cAAc;AAAA,IAClD,QAAQ;AACN,aAAO;AAAA,IACT;AAAA,EACF,CAAC;AAED,MAAI,CAAC,gBAAgB;AACnB,UAAM,IAAI;AAAA,MACR;AAAA,IAEF;AAAA,EACF;AAEA,SAAO;AACT;AAyCO,SAAS,eACd,SACA,WACA,QACA,SAGc;AAEd,kBAAgB;AAAA,IACd;AAAA,IACA;AAAA,IACA;AAAA,IACA,WAAW,SAAS;AAAA,EACtB,CAAC;AAGD,MAAI;AACF,UAAM,QAAQ,KAAK,MAAM,OAAO;AAGhC,QAAI,CAAC,MAAM,MAAM,CAAC,MAAM,QAAQ,CAAC,MAAM,MAAM;AAC3C,YAAM,IAAI,MAAM,yBAAyB;AAAA,IAC3C;AAEA,WAAO;AAAA,EACT,SAAS,OAAO;AACd,QAAI,iBAAiB,aAAa;AAChC,YAAM,IAAI;AAAA,QACR,2BAA2B,MAAM;AAAA,MACnC;AAAA,IACF;AACA,UAAM;AAAA,EACR;AACF;AAgCO,SAAS,0BACd,SACA,SACA,QACA,SAGc;AAEd,kBAAgB;AAAA,IACd;AAAA,IACA,WAAW,QAAQ;AAAA,IACnB;AAAA,IACA,WAAW,SAAS;AAAA,EACtB,CAAC;AAGD,MAAI;AACF,UAAM,QAAQ,KAAK,MAAM,OAAO;AAGhC,QAAI,CAAC,MAAM,MAAM,CAAC,MAAM,QAAQ,CAAC,MAAM,MAAM;AAC3C,YAAM,IAAI,MAAM,yBAAyB;AAAA,IAC3C;AAGA,WAAO;AAAA,MACL,GAAG;AAAA,MACH,aAAa,MAAM,eAAe,QAAQ,WAAW;AAAA,MACrD,SAAS,MAAM,WAAW,QAAQ;AAAA,IACpC;AAAA,EACF,SAAS,OAAO;AACd,QAAI,iBAAiB,aAAa;AAChC,YAAM,IAAI;AAAA,QACR,2BAA2B,MAAM;AAAA,MACnC;AAAA,IACF;AACA,UAAM;AAAA,EACR;AACF;AAKO,IAAM,WAAW;AAAA;AAAA;AAAA;AAAA;AAAA,EAKtB;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA;AAAA;AAAA;AAAA;AAAA,EAKA,sBAAsB;AACxB;AAEA,IAAO,mBAAQ;","names":[]}
@@ -0,0 +1,102 @@
1
+ // src/core/errors.ts
2
+ var RevKeenError = class extends Error {
3
+ constructor(message) {
4
+ super(message);
5
+ this.name = "RevKeenError";
6
+ }
7
+ };
8
+ var RevKeenAPIError = class extends RevKeenError {
9
+ constructor(status, message, body) {
10
+ super(message);
11
+ this.status = status;
12
+ this.body = body;
13
+ this.name = "RevKeenAPIError";
14
+ }
15
+ };
16
+ var RevKeenTimeoutError = class extends RevKeenError {
17
+ constructor(message) {
18
+ super(message);
19
+ this.name = "RevKeenTimeoutError";
20
+ }
21
+ };
22
+
23
+ // src/core/oauth.ts
24
+ var DEFAULT_TOKEN_ENDPOINT = "https://api.revkeen.com/api/auth/oauth2/token";
25
+ var PRE_EXPIRY_BUFFER_MS = 6e4;
26
+ var OAuthTokenManager = class {
27
+ config;
28
+ cachedToken = null;
29
+ inflightRequest = null;
30
+ constructor(config) {
31
+ this.config = {
32
+ clientId: config.clientId,
33
+ clientSecret: config.clientSecret,
34
+ tokenEndpoint: config.tokenEndpoint || DEFAULT_TOKEN_ENDPOINT,
35
+ scopes: config.scopes
36
+ };
37
+ }
38
+ async getToken() {
39
+ if (this.cachedToken && Date.now() < this.cachedToken.expiresAt - PRE_EXPIRY_BUFFER_MS) {
40
+ return this.cachedToken.accessToken;
41
+ }
42
+ if (this.inflightRequest) {
43
+ return this.inflightRequest;
44
+ }
45
+ this.inflightRequest = this.fetchToken();
46
+ try {
47
+ return await this.inflightRequest;
48
+ } finally {
49
+ this.inflightRequest = null;
50
+ }
51
+ }
52
+ async fetchToken() {
53
+ if (this.cachedToken?.refreshToken) {
54
+ try {
55
+ return await this.requestToken("refresh_token");
56
+ } catch {
57
+ }
58
+ }
59
+ return await this.requestToken("client_credentials");
60
+ }
61
+ async requestToken(grantType) {
62
+ const body = new URLSearchParams();
63
+ body.set("grant_type", grantType);
64
+ if (grantType === "client_credentials") {
65
+ body.set("client_id", this.config.clientId);
66
+ body.set("client_secret", this.config.clientSecret);
67
+ if (this.config.scopes?.length) {
68
+ body.set("scope", this.config.scopes.join(" "));
69
+ }
70
+ } else if (grantType === "refresh_token" && this.cachedToken?.refreshToken) {
71
+ body.set("refresh_token", this.cachedToken.refreshToken);
72
+ body.set("client_id", this.config.clientId);
73
+ body.set("client_secret", this.config.clientSecret);
74
+ }
75
+ const res = await fetch(this.config.tokenEndpoint, {
76
+ method: "POST",
77
+ headers: { "Content-Type": "application/x-www-form-urlencoded" },
78
+ body: body.toString()
79
+ });
80
+ if (!res.ok) {
81
+ const errorBody = await res.text().catch(() => "");
82
+ throw new RevKeenError(
83
+ `OAuth token request failed (${res.status}): ${errorBody || res.statusText}`
84
+ );
85
+ }
86
+ const data = await res.json();
87
+ this.cachedToken = {
88
+ accessToken: data.access_token,
89
+ refreshToken: data.refresh_token ?? this.cachedToken?.refreshToken,
90
+ expiresAt: Date.now() + data.expires_in * 1e3
91
+ };
92
+ return data.access_token;
93
+ }
94
+ };
95
+
96
+ export {
97
+ RevKeenError,
98
+ RevKeenAPIError,
99
+ RevKeenTimeoutError,
100
+ OAuthTokenManager
101
+ };
102
+ //# sourceMappingURL=chunk-VKMDZSYJ.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/core/errors.ts","../src/core/oauth.ts"],"sourcesContent":["export class RevKeenError extends Error {\n constructor(message: string) {\n super(message);\n this.name = \"RevKeenError\";\n }\n}\n\nexport class RevKeenAPIError extends RevKeenError {\n constructor(\n public readonly status: number,\n message: string,\n public readonly body: unknown,\n ) {\n super(message);\n this.name = \"RevKeenAPIError\";\n }\n}\n\nexport class RevKeenTimeoutError extends RevKeenError {\n constructor(message: string) {\n super(message);\n this.name = \"RevKeenTimeoutError\";\n }\n}\n","import { RevKeenError } from \"./errors.js\";\n\nexport interface OAuthConfig {\n clientId: string;\n clientSecret: string;\n tokenEndpoint?: string;\n scopes?: string[];\n}\n\ninterface TokenResponse {\n access_token: string;\n token_type: string;\n expires_in: number;\n refresh_token?: string;\n scope?: string;\n}\n\ninterface CachedToken {\n accessToken: string;\n refreshToken?: string;\n expiresAt: number;\n}\n\nconst DEFAULT_TOKEN_ENDPOINT = \"https://api.revkeen.com/api/auth/oauth2/token\";\nconst PRE_EXPIRY_BUFFER_MS = 60_000; // Refresh 60s before expiry\n\nexport class OAuthTokenManager {\n private config: Required<Pick<OAuthConfig, \"clientId\" | \"clientSecret\" | \"tokenEndpoint\">> &\n Pick<OAuthConfig, \"scopes\">;\n private cachedToken: CachedToken | null = null;\n private inflightRequest: Promise<string> | null = null;\n\n constructor(config: OAuthConfig) {\n this.config = {\n clientId: config.clientId,\n clientSecret: config.clientSecret,\n tokenEndpoint: config.tokenEndpoint || DEFAULT_TOKEN_ENDPOINT,\n scopes: config.scopes,\n };\n }\n\n async getToken(): Promise<string> {\n // Return cached token if still valid\n if (this.cachedToken && Date.now() < this.cachedToken.expiresAt - PRE_EXPIRY_BUFFER_MS) {\n return this.cachedToken.accessToken;\n }\n\n // Deduplicate concurrent requests\n if (this.inflightRequest) {\n return this.inflightRequest;\n }\n\n this.inflightRequest = this.fetchToken();\n try {\n return await this.inflightRequest;\n } finally {\n this.inflightRequest = null;\n }\n }\n\n private async fetchToken(): Promise<string> {\n // Try refresh token first if available\n if (this.cachedToken?.refreshToken) {\n try {\n return await this.requestToken(\"refresh_token\");\n } catch {\n // Fall back to client_credentials\n }\n }\n\n return await this.requestToken(\"client_credentials\");\n }\n\n private async requestToken(grantType: \"client_credentials\" | \"refresh_token\"): Promise<string> {\n const body = new URLSearchParams();\n body.set(\"grant_type\", grantType);\n\n if (grantType === \"client_credentials\") {\n body.set(\"client_id\", this.config.clientId);\n body.set(\"client_secret\", this.config.clientSecret);\n if (this.config.scopes?.length) {\n body.set(\"scope\", this.config.scopes.join(\" \"));\n }\n } else if (grantType === \"refresh_token\" && this.cachedToken?.refreshToken) {\n body.set(\"refresh_token\", this.cachedToken.refreshToken);\n body.set(\"client_id\", this.config.clientId);\n body.set(\"client_secret\", this.config.clientSecret);\n }\n\n const res = await fetch(this.config.tokenEndpoint, {\n method: \"POST\",\n headers: { \"Content-Type\": \"application/x-www-form-urlencoded\" },\n body: body.toString(),\n });\n\n if (!res.ok) {\n const errorBody = await res.text().catch(() => \"\");\n throw new RevKeenError(\n `OAuth token request failed (${res.status}): ${errorBody || res.statusText}`\n );\n }\n\n const data = (await res.json()) as TokenResponse;\n\n this.cachedToken = {\n accessToken: data.access_token,\n refreshToken: data.refresh_token ?? this.cachedToken?.refreshToken,\n expiresAt: Date.now() + data.expires_in * 1000,\n };\n\n return data.access_token;\n }\n}\n"],"mappings":";AAAO,IAAM,eAAN,cAA2B,MAAM;AAAA,EACtC,YAAY,SAAiB;AAC3B,UAAM,OAAO;AACb,SAAK,OAAO;AAAA,EACd;AACF;AAEO,IAAM,kBAAN,cAA8B,aAAa;AAAA,EAChD,YACkB,QAChB,SACgB,MAChB;AACA,UAAM,OAAO;AAJG;AAEA;AAGhB,SAAK,OAAO;AAAA,EACd;AACF;AAEO,IAAM,sBAAN,cAAkC,aAAa;AAAA,EACpD,YAAY,SAAiB;AAC3B,UAAM,OAAO;AACb,SAAK,OAAO;AAAA,EACd;AACF;;;ACAA,IAAM,yBAAyB;AAC/B,IAAM,uBAAuB;AAEtB,IAAM,oBAAN,MAAwB;AAAA,EACrB;AAAA,EAEA,cAAkC;AAAA,EAClC,kBAA0C;AAAA,EAElD,YAAY,QAAqB;AAC/B,SAAK,SAAS;AAAA,MACZ,UAAU,OAAO;AAAA,MACjB,cAAc,OAAO;AAAA,MACrB,eAAe,OAAO,iBAAiB;AAAA,MACvC,QAAQ,OAAO;AAAA,IACjB;AAAA,EACF;AAAA,EAEA,MAAM,WAA4B;AAEhC,QAAI,KAAK,eAAe,KAAK,IAAI,IAAI,KAAK,YAAY,YAAY,sBAAsB;AACtF,aAAO,KAAK,YAAY;AAAA,IAC1B;AAGA,QAAI,KAAK,iBAAiB;AACxB,aAAO,KAAK;AAAA,IACd;AAEA,SAAK,kBAAkB,KAAK,WAAW;AACvC,QAAI;AACF,aAAO,MAAM,KAAK;AAAA,IACpB,UAAE;AACA,WAAK,kBAAkB;AAAA,IACzB;AAAA,EACF;AAAA,EAEA,MAAc,aAA8B;AAE1C,QAAI,KAAK,aAAa,cAAc;AAClC,UAAI;AACF,eAAO,MAAM,KAAK,aAAa,eAAe;AAAA,MAChD,QAAQ;AAAA,MAER;AAAA,IACF;AAEA,WAAO,MAAM,KAAK,aAAa,oBAAoB;AAAA,EACrD;AAAA,EAEA,MAAc,aAAa,WAAoE;AAC7F,UAAM,OAAO,IAAI,gBAAgB;AACjC,SAAK,IAAI,cAAc,SAAS;AAEhC,QAAI,cAAc,sBAAsB;AACtC,WAAK,IAAI,aAAa,KAAK,OAAO,QAAQ;AAC1C,WAAK,IAAI,iBAAiB,KAAK,OAAO,YAAY;AAClD,UAAI,KAAK,OAAO,QAAQ,QAAQ;AAC9B,aAAK,IAAI,SAAS,KAAK,OAAO,OAAO,KAAK,GAAG,CAAC;AAAA,MAChD;AAAA,IACF,WAAW,cAAc,mBAAmB,KAAK,aAAa,cAAc;AAC1E,WAAK,IAAI,iBAAiB,KAAK,YAAY,YAAY;AACvD,WAAK,IAAI,aAAa,KAAK,OAAO,QAAQ;AAC1C,WAAK,IAAI,iBAAiB,KAAK,OAAO,YAAY;AAAA,IACpD;AAEA,UAAM,MAAM,MAAM,MAAM,KAAK,OAAO,eAAe;AAAA,MACjD,QAAQ;AAAA,MACR,SAAS,EAAE,gBAAgB,oCAAoC;AAAA,MAC/D,MAAM,KAAK,SAAS;AAAA,IACtB,CAAC;AAED,QAAI,CAAC,IAAI,IAAI;AACX,YAAM,YAAY,MAAM,IAAI,KAAK,EAAE,MAAM,MAAM,EAAE;AACjD,YAAM,IAAI;AAAA,QACR,+BAA+B,IAAI,MAAM,MAAM,aAAa,IAAI,UAAU;AAAA,MAC5E;AAAA,IACF;AAEA,UAAM,OAAQ,MAAM,IAAI,KAAK;AAE7B,SAAK,cAAc;AAAA,MACjB,aAAa,KAAK;AAAA,MAClB,cAAc,KAAK,iBAAiB,KAAK,aAAa;AAAA,MACtD,WAAW,KAAK,IAAI,IAAI,KAAK,aAAa;AAAA,IAC5C;AAEA,WAAO,KAAK;AAAA,EACd;AACF;","names":[]}