@whop/sdk 0.0.30 → 0.0.32

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 (505) hide show
  1. package/CHANGELOG.md +57 -105
  2. package/client.d.mts +165 -9
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +165 -9
  5. package/client.d.ts.map +1 -1
  6. package/client.js +164 -7
  7. package/client.js.map +1 -1
  8. package/client.mjs +164 -7
  9. package/client.mjs.map +1 -1
  10. package/internal/tslib.js +22 -22
  11. package/internal/utils/query.d.mts +2 -0
  12. package/internal/utils/query.d.mts.map +1 -0
  13. package/internal/utils/query.d.ts +2 -0
  14. package/internal/utils/query.d.ts.map +1 -0
  15. package/internal/utils/query.js +10 -0
  16. package/internal/utils/query.js.map +1 -0
  17. package/internal/utils/query.mjs +6 -0
  18. package/internal/utils/query.mjs.map +1 -0
  19. package/internal/utils.d.mts +1 -0
  20. package/internal/utils.d.ts +1 -0
  21. package/internal/utils.js +1 -0
  22. package/internal/utils.js.map +1 -1
  23. package/internal/utils.mjs +1 -0
  24. package/package.json +7 -1
  25. package/resources/access-tokens.d.mts +3 -0
  26. package/resources/access-tokens.d.mts.map +1 -1
  27. package/resources/access-tokens.d.ts +3 -0
  28. package/resources/access-tokens.d.ts.map +1 -1
  29. package/resources/access-tokens.js +3 -0
  30. package/resources/access-tokens.js.map +1 -1
  31. package/resources/access-tokens.mjs +3 -0
  32. package/resources/access-tokens.mjs.map +1 -1
  33. package/resources/account-links.d.mts +3 -0
  34. package/resources/account-links.d.mts.map +1 -1
  35. package/resources/account-links.d.ts +3 -0
  36. package/resources/account-links.d.ts.map +1 -1
  37. package/resources/account-links.js +3 -0
  38. package/resources/account-links.js.map +1 -1
  39. package/resources/account-links.mjs +3 -0
  40. package/resources/account-links.mjs.map +1 -1
  41. package/resources/ai-chats.d.mts +12 -0
  42. package/resources/ai-chats.d.mts.map +1 -1
  43. package/resources/ai-chats.d.ts +12 -0
  44. package/resources/ai-chats.d.ts.map +1 -1
  45. package/resources/ai-chats.js +3 -0
  46. package/resources/ai-chats.js.map +1 -1
  47. package/resources/ai-chats.mjs +3 -0
  48. package/resources/ai-chats.mjs.map +1 -1
  49. package/resources/app-builds.d.mts +3 -0
  50. package/resources/app-builds.d.mts.map +1 -1
  51. package/resources/app-builds.d.ts +3 -0
  52. package/resources/app-builds.d.ts.map +1 -1
  53. package/resources/app-builds.js +3 -0
  54. package/resources/app-builds.js.map +1 -1
  55. package/resources/app-builds.mjs +3 -0
  56. package/resources/app-builds.mjs.map +1 -1
  57. package/resources/apps.d.mts +3 -0
  58. package/resources/apps.d.mts.map +1 -1
  59. package/resources/apps.d.ts +3 -0
  60. package/resources/apps.d.ts.map +1 -1
  61. package/resources/apps.js +3 -0
  62. package/resources/apps.js.map +1 -1
  63. package/resources/apps.mjs +3 -0
  64. package/resources/apps.mjs.map +1 -1
  65. package/resources/authorized-users.d.mts +88 -6
  66. package/resources/authorized-users.d.mts.map +1 -1
  67. package/resources/authorized-users.d.ts +88 -6
  68. package/resources/authorized-users.d.ts.map +1 -1
  69. package/resources/authorized-users.js +57 -0
  70. package/resources/authorized-users.js.map +1 -1
  71. package/resources/authorized-users.mjs +57 -0
  72. package/resources/authorized-users.mjs.map +1 -1
  73. package/resources/chat-channels.d.mts +3 -0
  74. package/resources/chat-channels.d.mts.map +1 -1
  75. package/resources/chat-channels.d.ts +3 -0
  76. package/resources/chat-channels.d.ts.map +1 -1
  77. package/resources/chat-channels.js +3 -0
  78. package/resources/chat-channels.js.map +1 -1
  79. package/resources/chat-channels.mjs +3 -0
  80. package/resources/chat-channels.mjs.map +1 -1
  81. package/resources/checkout-configurations.d.mts +3 -0
  82. package/resources/checkout-configurations.d.mts.map +1 -1
  83. package/resources/checkout-configurations.d.ts +3 -0
  84. package/resources/checkout-configurations.d.ts.map +1 -1
  85. package/resources/checkout-configurations.js +3 -0
  86. package/resources/checkout-configurations.js.map +1 -1
  87. package/resources/checkout-configurations.mjs +3 -0
  88. package/resources/checkout-configurations.mjs.map +1 -1
  89. package/resources/companies.d.mts +54 -1
  90. package/resources/companies.d.mts.map +1 -1
  91. package/resources/companies.d.ts +54 -1
  92. package/resources/companies.d.ts.map +1 -1
  93. package/resources/companies.js +3 -0
  94. package/resources/companies.js.map +1 -1
  95. package/resources/companies.mjs +3 -0
  96. package/resources/companies.mjs.map +1 -1
  97. package/resources/company-token-transactions.d.mts +3 -0
  98. package/resources/company-token-transactions.d.mts.map +1 -1
  99. package/resources/company-token-transactions.d.ts +3 -0
  100. package/resources/company-token-transactions.d.ts.map +1 -1
  101. package/resources/company-token-transactions.js +3 -0
  102. package/resources/company-token-transactions.js.map +1 -1
  103. package/resources/company-token-transactions.mjs +3 -0
  104. package/resources/company-token-transactions.mjs.map +1 -1
  105. package/resources/course-chapters.d.mts +3 -0
  106. package/resources/course-chapters.d.mts.map +1 -1
  107. package/resources/course-chapters.d.ts +3 -0
  108. package/resources/course-chapters.d.ts.map +1 -1
  109. package/resources/course-chapters.js +3 -0
  110. package/resources/course-chapters.js.map +1 -1
  111. package/resources/course-chapters.mjs +3 -0
  112. package/resources/course-chapters.mjs.map +1 -1
  113. package/resources/course-lesson-interactions.d.mts +3 -0
  114. package/resources/course-lesson-interactions.d.mts.map +1 -1
  115. package/resources/course-lesson-interactions.d.ts +3 -0
  116. package/resources/course-lesson-interactions.d.ts.map +1 -1
  117. package/resources/course-lesson-interactions.js +3 -0
  118. package/resources/course-lesson-interactions.js.map +1 -1
  119. package/resources/course-lesson-interactions.mjs +3 -0
  120. package/resources/course-lesson-interactions.mjs.map +1 -1
  121. package/resources/course-lessons.d.mts +3 -0
  122. package/resources/course-lessons.d.mts.map +1 -1
  123. package/resources/course-lessons.d.ts +3 -0
  124. package/resources/course-lessons.d.ts.map +1 -1
  125. package/resources/course-lessons.js +3 -0
  126. package/resources/course-lessons.js.map +1 -1
  127. package/resources/course-lessons.mjs +3 -0
  128. package/resources/course-lessons.mjs.map +1 -1
  129. package/resources/course-students.d.mts +3 -0
  130. package/resources/course-students.d.mts.map +1 -1
  131. package/resources/course-students.d.ts +3 -0
  132. package/resources/course-students.d.ts.map +1 -1
  133. package/resources/course-students.js +3 -0
  134. package/resources/course-students.js.map +1 -1
  135. package/resources/course-students.mjs +3 -0
  136. package/resources/course-students.mjs.map +1 -1
  137. package/resources/courses.d.mts +3 -0
  138. package/resources/courses.d.mts.map +1 -1
  139. package/resources/courses.d.ts +3 -0
  140. package/resources/courses.d.ts.map +1 -1
  141. package/resources/courses.js +3 -0
  142. package/resources/courses.js.map +1 -1
  143. package/resources/courses.mjs +3 -0
  144. package/resources/courses.mjs.map +1 -1
  145. package/resources/dispute-alerts.d.mts +3 -0
  146. package/resources/dispute-alerts.d.mts.map +1 -1
  147. package/resources/dispute-alerts.d.ts +3 -0
  148. package/resources/dispute-alerts.d.ts.map +1 -1
  149. package/resources/dispute-alerts.js +3 -0
  150. package/resources/dispute-alerts.js.map +1 -1
  151. package/resources/dispute-alerts.mjs +3 -0
  152. package/resources/dispute-alerts.mjs.map +1 -1
  153. package/resources/disputes.d.mts +3 -0
  154. package/resources/disputes.d.mts.map +1 -1
  155. package/resources/disputes.d.ts +3 -0
  156. package/resources/disputes.d.ts.map +1 -1
  157. package/resources/disputes.js +3 -0
  158. package/resources/disputes.js.map +1 -1
  159. package/resources/disputes.mjs +3 -0
  160. package/resources/disputes.mjs.map +1 -1
  161. package/resources/dm-channels.d.mts +3 -0
  162. package/resources/dm-channels.d.mts.map +1 -1
  163. package/resources/dm-channels.d.ts +3 -0
  164. package/resources/dm-channels.d.ts.map +1 -1
  165. package/resources/dm-channels.js +3 -0
  166. package/resources/dm-channels.js.map +1 -1
  167. package/resources/dm-channels.mjs +3 -0
  168. package/resources/dm-channels.mjs.map +1 -1
  169. package/resources/dm-members.d.mts +3 -0
  170. package/resources/dm-members.d.mts.map +1 -1
  171. package/resources/dm-members.d.ts +3 -0
  172. package/resources/dm-members.d.ts.map +1 -1
  173. package/resources/dm-members.js +3 -0
  174. package/resources/dm-members.js.map +1 -1
  175. package/resources/dm-members.mjs +3 -0
  176. package/resources/dm-members.mjs.map +1 -1
  177. package/resources/entries.d.mts +3 -0
  178. package/resources/entries.d.mts.map +1 -1
  179. package/resources/entries.d.ts +3 -0
  180. package/resources/entries.d.ts.map +1 -1
  181. package/resources/entries.js +3 -0
  182. package/resources/entries.js.map +1 -1
  183. package/resources/entries.mjs +3 -0
  184. package/resources/entries.mjs.map +1 -1
  185. package/resources/experiences.d.mts +3 -0
  186. package/resources/experiences.d.mts.map +1 -1
  187. package/resources/experiences.d.ts +3 -0
  188. package/resources/experiences.d.ts.map +1 -1
  189. package/resources/experiences.js +3 -0
  190. package/resources/experiences.js.map +1 -1
  191. package/resources/experiences.mjs +3 -0
  192. package/resources/experiences.mjs.map +1 -1
  193. package/resources/fee-markups.d.mts +3 -0
  194. package/resources/fee-markups.d.mts.map +1 -1
  195. package/resources/fee-markups.d.ts +3 -0
  196. package/resources/fee-markups.d.ts.map +1 -1
  197. package/resources/fee-markups.js +3 -0
  198. package/resources/fee-markups.js.map +1 -1
  199. package/resources/fee-markups.mjs +3 -0
  200. package/resources/fee-markups.mjs.map +1 -1
  201. package/resources/files.d.mts +3 -0
  202. package/resources/files.d.mts.map +1 -1
  203. package/resources/files.d.ts +3 -0
  204. package/resources/files.d.ts.map +1 -1
  205. package/resources/files.js +3 -0
  206. package/resources/files.js.map +1 -1
  207. package/resources/files.mjs +3 -0
  208. package/resources/files.mjs.map +1 -1
  209. package/resources/forum-posts.d.mts +38 -0
  210. package/resources/forum-posts.d.mts.map +1 -1
  211. package/resources/forum-posts.d.ts +38 -0
  212. package/resources/forum-posts.d.ts.map +1 -1
  213. package/resources/forum-posts.js +3 -0
  214. package/resources/forum-posts.js.map +1 -1
  215. package/resources/forum-posts.mjs +3 -0
  216. package/resources/forum-posts.mjs.map +1 -1
  217. package/resources/forums.d.mts +20 -0
  218. package/resources/forums.d.mts.map +1 -1
  219. package/resources/forums.d.ts +20 -0
  220. package/resources/forums.d.ts.map +1 -1
  221. package/resources/forums.js +3 -0
  222. package/resources/forums.js.map +1 -1
  223. package/resources/forums.mjs +3 -0
  224. package/resources/forums.mjs.map +1 -1
  225. package/resources/index.d.mts +5 -4
  226. package/resources/index.d.mts.map +1 -1
  227. package/resources/index.d.ts +5 -4
  228. package/resources/index.d.ts.map +1 -1
  229. package/resources/index.js +4 -1
  230. package/resources/index.js.map +1 -1
  231. package/resources/index.mjs +1 -0
  232. package/resources/index.mjs.map +1 -1
  233. package/resources/invoices.d.mts +141 -8
  234. package/resources/invoices.d.mts.map +1 -1
  235. package/resources/invoices.d.ts +141 -8
  236. package/resources/invoices.d.ts.map +1 -1
  237. package/resources/invoices.js +4 -4
  238. package/resources/invoices.js.map +1 -1
  239. package/resources/invoices.mjs +4 -4
  240. package/resources/invoices.mjs.map +1 -1
  241. package/resources/leads.d.mts +3 -0
  242. package/resources/leads.d.mts.map +1 -1
  243. package/resources/leads.d.ts +3 -0
  244. package/resources/leads.d.ts.map +1 -1
  245. package/resources/leads.js +3 -0
  246. package/resources/leads.js.map +1 -1
  247. package/resources/leads.mjs +3 -0
  248. package/resources/leads.mjs.map +1 -1
  249. package/resources/ledger-accounts.d.mts +3 -0
  250. package/resources/ledger-accounts.d.mts.map +1 -1
  251. package/resources/ledger-accounts.d.ts +3 -0
  252. package/resources/ledger-accounts.d.ts.map +1 -1
  253. package/resources/ledger-accounts.js +3 -0
  254. package/resources/ledger-accounts.js.map +1 -1
  255. package/resources/ledger-accounts.mjs +3 -0
  256. package/resources/ledger-accounts.mjs.map +1 -1
  257. package/resources/members.d.mts +3 -0
  258. package/resources/members.d.mts.map +1 -1
  259. package/resources/members.d.ts +3 -0
  260. package/resources/members.d.ts.map +1 -1
  261. package/resources/members.js +3 -0
  262. package/resources/members.js.map +1 -1
  263. package/resources/members.mjs +3 -0
  264. package/resources/members.mjs.map +1 -1
  265. package/resources/memberships.d.mts +81 -2
  266. package/resources/memberships.d.mts.map +1 -1
  267. package/resources/memberships.d.ts +81 -2
  268. package/resources/memberships.d.ts.map +1 -1
  269. package/resources/memberships.js +75 -1
  270. package/resources/memberships.js.map +1 -1
  271. package/resources/memberships.mjs +75 -1
  272. package/resources/memberships.mjs.map +1 -1
  273. package/resources/messages.d.mts +12 -0
  274. package/resources/messages.d.mts.map +1 -1
  275. package/resources/messages.d.ts +12 -0
  276. package/resources/messages.d.ts.map +1 -1
  277. package/resources/messages.js +3 -0
  278. package/resources/messages.js.map +1 -1
  279. package/resources/messages.mjs +3 -0
  280. package/resources/messages.mjs.map +1 -1
  281. package/resources/notifications.d.mts +3 -0
  282. package/resources/notifications.d.mts.map +1 -1
  283. package/resources/notifications.d.ts +3 -0
  284. package/resources/notifications.d.ts.map +1 -1
  285. package/resources/notifications.js +3 -0
  286. package/resources/notifications.js.map +1 -1
  287. package/resources/notifications.mjs +3 -0
  288. package/resources/notifications.mjs.map +1 -1
  289. package/resources/payment-methods.d.mts +3 -0
  290. package/resources/payment-methods.d.mts.map +1 -1
  291. package/resources/payment-methods.d.ts +3 -0
  292. package/resources/payment-methods.d.ts.map +1 -1
  293. package/resources/payment-methods.js +3 -0
  294. package/resources/payment-methods.js.map +1 -1
  295. package/resources/payment-methods.mjs +3 -0
  296. package/resources/payment-methods.mjs.map +1 -1
  297. package/resources/payments.d.mts +19 -2
  298. package/resources/payments.d.mts.map +1 -1
  299. package/resources/payments.d.ts +19 -2
  300. package/resources/payments.d.ts.map +1 -1
  301. package/resources/payments.js +3 -0
  302. package/resources/payments.js.map +1 -1
  303. package/resources/payments.mjs +3 -0
  304. package/resources/payments.mjs.map +1 -1
  305. package/resources/payout-methods.d.mts +3 -0
  306. package/resources/payout-methods.d.mts.map +1 -1
  307. package/resources/payout-methods.d.ts +3 -0
  308. package/resources/payout-methods.d.ts.map +1 -1
  309. package/resources/payout-methods.js +3 -0
  310. package/resources/payout-methods.js.map +1 -1
  311. package/resources/payout-methods.mjs +3 -0
  312. package/resources/payout-methods.mjs.map +1 -1
  313. package/resources/plans.d.mts +3 -0
  314. package/resources/plans.d.mts.map +1 -1
  315. package/resources/plans.d.ts +3 -0
  316. package/resources/plans.d.ts.map +1 -1
  317. package/resources/plans.js +3 -0
  318. package/resources/plans.js.map +1 -1
  319. package/resources/plans.mjs +3 -0
  320. package/resources/plans.mjs.map +1 -1
  321. package/resources/products.d.mts +13 -0
  322. package/resources/products.d.mts.map +1 -1
  323. package/resources/products.d.ts +13 -0
  324. package/resources/products.d.ts.map +1 -1
  325. package/resources/products.js +3 -0
  326. package/resources/products.js.map +1 -1
  327. package/resources/products.mjs +3 -0
  328. package/resources/products.mjs.map +1 -1
  329. package/resources/promo-codes.d.mts +3 -0
  330. package/resources/promo-codes.d.mts.map +1 -1
  331. package/resources/promo-codes.d.ts +3 -0
  332. package/resources/promo-codes.d.ts.map +1 -1
  333. package/resources/promo-codes.js +3 -0
  334. package/resources/promo-codes.js.map +1 -1
  335. package/resources/promo-codes.mjs +3 -0
  336. package/resources/promo-codes.mjs.map +1 -1
  337. package/resources/reactions.d.mts +3 -0
  338. package/resources/reactions.d.mts.map +1 -1
  339. package/resources/reactions.d.ts +3 -0
  340. package/resources/reactions.d.ts.map +1 -1
  341. package/resources/reactions.js +3 -0
  342. package/resources/reactions.js.map +1 -1
  343. package/resources/reactions.mjs +3 -0
  344. package/resources/reactions.mjs.map +1 -1
  345. package/resources/refunds.d.mts +17 -1
  346. package/resources/refunds.d.mts.map +1 -1
  347. package/resources/refunds.d.ts +17 -1
  348. package/resources/refunds.d.ts.map +1 -1
  349. package/resources/refunds.js +3 -0
  350. package/resources/refunds.js.map +1 -1
  351. package/resources/refunds.mjs +3 -0
  352. package/resources/refunds.mjs.map +1 -1
  353. package/resources/resolution-center-cases.d.mts +367 -0
  354. package/resources/resolution-center-cases.d.mts.map +1 -0
  355. package/resources/resolution-center-cases.d.ts +367 -0
  356. package/resources/resolution-center-cases.d.ts.map +1 -0
  357. package/resources/resolution-center-cases.js +38 -0
  358. package/resources/resolution-center-cases.js.map +1 -0
  359. package/resources/resolution-center-cases.mjs +34 -0
  360. package/resources/resolution-center-cases.mjs.map +1 -0
  361. package/resources/reviews.d.mts +3 -0
  362. package/resources/reviews.d.mts.map +1 -1
  363. package/resources/reviews.d.ts +3 -0
  364. package/resources/reviews.d.ts.map +1 -1
  365. package/resources/reviews.js +3 -0
  366. package/resources/reviews.js.map +1 -1
  367. package/resources/reviews.mjs +3 -0
  368. package/resources/reviews.mjs.map +1 -1
  369. package/resources/setup-intents.d.mts +3 -0
  370. package/resources/setup-intents.d.mts.map +1 -1
  371. package/resources/setup-intents.d.ts +3 -0
  372. package/resources/setup-intents.d.ts.map +1 -1
  373. package/resources/setup-intents.js +3 -0
  374. package/resources/setup-intents.js.map +1 -1
  375. package/resources/setup-intents.mjs +3 -0
  376. package/resources/setup-intents.mjs.map +1 -1
  377. package/resources/shared.d.mts +63 -9
  378. package/resources/shared.d.mts.map +1 -1
  379. package/resources/shared.d.ts +63 -9
  380. package/resources/shared.d.ts.map +1 -1
  381. package/resources/shipments.d.mts +3 -0
  382. package/resources/shipments.d.mts.map +1 -1
  383. package/resources/shipments.d.ts +3 -0
  384. package/resources/shipments.d.ts.map +1 -1
  385. package/resources/shipments.js +3 -0
  386. package/resources/shipments.js.map +1 -1
  387. package/resources/shipments.mjs +3 -0
  388. package/resources/shipments.mjs.map +1 -1
  389. package/resources/support-channels.d.mts +3 -0
  390. package/resources/support-channels.d.mts.map +1 -1
  391. package/resources/support-channels.d.ts +3 -0
  392. package/resources/support-channels.d.ts.map +1 -1
  393. package/resources/support-channels.js +3 -0
  394. package/resources/support-channels.js.map +1 -1
  395. package/resources/support-channels.mjs +3 -0
  396. package/resources/support-channels.mjs.map +1 -1
  397. package/resources/topups.d.mts +3 -0
  398. package/resources/topups.d.mts.map +1 -1
  399. package/resources/topups.d.ts +3 -0
  400. package/resources/topups.d.ts.map +1 -1
  401. package/resources/topups.js +3 -0
  402. package/resources/topups.js.map +1 -1
  403. package/resources/topups.mjs +3 -0
  404. package/resources/topups.mjs.map +1 -1
  405. package/resources/transfers.d.mts +3 -0
  406. package/resources/transfers.d.mts.map +1 -1
  407. package/resources/transfers.d.ts +3 -0
  408. package/resources/transfers.d.ts.map +1 -1
  409. package/resources/transfers.js +3 -0
  410. package/resources/transfers.js.map +1 -1
  411. package/resources/transfers.mjs +3 -0
  412. package/resources/transfers.mjs.map +1 -1
  413. package/resources/users.d.mts +3 -0
  414. package/resources/users.d.mts.map +1 -1
  415. package/resources/users.d.ts +3 -0
  416. package/resources/users.d.ts.map +1 -1
  417. package/resources/users.js +3 -0
  418. package/resources/users.js.map +1 -1
  419. package/resources/users.mjs +3 -0
  420. package/resources/users.mjs.map +1 -1
  421. package/resources/verifications.d.mts +3 -0
  422. package/resources/verifications.d.mts.map +1 -1
  423. package/resources/verifications.d.ts +3 -0
  424. package/resources/verifications.d.ts.map +1 -1
  425. package/resources/verifications.js +3 -0
  426. package/resources/verifications.js.map +1 -1
  427. package/resources/verifications.mjs +3 -0
  428. package/resources/verifications.mjs.map +1 -1
  429. package/resources/webhooks.d.mts +29 -0
  430. package/resources/webhooks.d.mts.map +1 -1
  431. package/resources/webhooks.d.ts +29 -0
  432. package/resources/webhooks.d.ts.map +1 -1
  433. package/resources/webhooks.js +3 -0
  434. package/resources/webhooks.js.map +1 -1
  435. package/resources/webhooks.mjs +3 -0
  436. package/resources/webhooks.mjs.map +1 -1
  437. package/resources/withdrawals.d.mts +3 -0
  438. package/resources/withdrawals.d.mts.map +1 -1
  439. package/resources/withdrawals.d.ts +3 -0
  440. package/resources/withdrawals.d.ts.map +1 -1
  441. package/resources/withdrawals.js +3 -0
  442. package/resources/withdrawals.js.map +1 -1
  443. package/resources/withdrawals.mjs +3 -0
  444. package/resources/withdrawals.mjs.map +1 -1
  445. package/src/client.ts +205 -12
  446. package/src/internal/utils/query.ts +7 -0
  447. package/src/internal/utils.ts +1 -0
  448. package/src/resources/access-tokens.ts +3 -0
  449. package/src/resources/account-links.ts +3 -0
  450. package/src/resources/ai-chats.ts +14 -0
  451. package/src/resources/app-builds.ts +3 -0
  452. package/src/resources/apps.ts +3 -0
  453. package/src/resources/authorized-users.ts +108 -6
  454. package/src/resources/chat-channels.ts +3 -0
  455. package/src/resources/checkout-configurations.ts +3 -0
  456. package/src/resources/companies.ts +72 -0
  457. package/src/resources/company-token-transactions.ts +3 -0
  458. package/src/resources/course-chapters.ts +3 -0
  459. package/src/resources/course-lesson-interactions.ts +3 -0
  460. package/src/resources/course-lessons.ts +3 -0
  461. package/src/resources/course-students.ts +3 -0
  462. package/src/resources/courses.ts +3 -0
  463. package/src/resources/dispute-alerts.ts +3 -0
  464. package/src/resources/disputes.ts +3 -0
  465. package/src/resources/dm-channels.ts +3 -0
  466. package/src/resources/dm-members.ts +3 -0
  467. package/src/resources/entries.ts +3 -0
  468. package/src/resources/experiences.ts +3 -0
  469. package/src/resources/fee-markups.ts +3 -0
  470. package/src/resources/files.ts +3 -0
  471. package/src/resources/forum-posts.ts +44 -0
  472. package/src/resources/forums.ts +22 -0
  473. package/src/resources/index.ts +19 -1
  474. package/src/resources/invoices.ts +162 -9
  475. package/src/resources/leads.ts +3 -0
  476. package/src/resources/ledger-accounts.ts +3 -0
  477. package/src/resources/members.ts +3 -0
  478. package/src/resources/memberships.ts +89 -1
  479. package/src/resources/messages.ts +14 -0
  480. package/src/resources/notifications.ts +3 -0
  481. package/src/resources/payment-methods.ts +3 -0
  482. package/src/resources/payments.ts +22 -0
  483. package/src/resources/payout-methods.ts +3 -0
  484. package/src/resources/plans.ts +3 -0
  485. package/src/resources/products.ts +15 -0
  486. package/src/resources/promo-codes.ts +3 -0
  487. package/src/resources/reactions.ts +3 -0
  488. package/src/resources/refunds.ts +21 -1
  489. package/src/resources/resolution-center-cases.ts +492 -0
  490. package/src/resources/reviews.ts +3 -0
  491. package/src/resources/setup-intents.ts +3 -0
  492. package/src/resources/shared.ts +74 -33
  493. package/src/resources/shipments.ts +3 -0
  494. package/src/resources/support-channels.ts +3 -0
  495. package/src/resources/topups.ts +3 -0
  496. package/src/resources/transfers.ts +3 -0
  497. package/src/resources/users.ts +3 -0
  498. package/src/resources/verifications.ts +3 -0
  499. package/src/resources/webhooks.ts +35 -0
  500. package/src/resources/withdrawals.ts +3 -0
  501. package/src/version.ts +1 -1
  502. package/version.d.mts +1 -1
  503. package/version.d.ts +1 -1
  504. package/version.js +1 -1
  505. package/version.mjs +1 -1
@@ -8,6 +8,9 @@ import { CursorPage, type CursorPageParams, PagePromise } from '../core/paginati
8
8
  import { RequestOptions } from '../internal/request-options';
9
9
  import { path } from '../internal/utils/path';
10
10
 
11
+ /**
12
+ * Refunds
13
+ */
11
14
  export class Refunds extends APIResource {
12
15
  /**
13
16
  * Retrieves the details of an existing refund.
@@ -56,7 +59,8 @@ export type PaymentProvider =
56
59
  | 'adyen'
57
60
  | 'claritypay'
58
61
  | 'checkout_dot_com'
59
- | 'airwallex';
62
+ | 'airwallex'
63
+ | 'coinflow';
60
64
 
61
65
  /**
62
66
  * The status of the refund reference.
@@ -210,6 +214,22 @@ export namespace RefundRetrieveResponse {
210
214
  */
211
215
  subtotal: number | null;
212
216
 
217
+ /**
218
+ * The calculated amount of the sales/VAT tax (if applicable).
219
+ */
220
+ tax_amount: number | null;
221
+
222
+ /**
223
+ * The type of tax inclusivity applied to the receipt, for determining whether the
224
+ * tax is included in the final price, or paid on top.
225
+ */
226
+ tax_behavior: PaymentsAPI.ReceiptTaxBehavior | null;
227
+
228
+ /**
229
+ * The amount of tax that has been refunded (if applicable).
230
+ */
231
+ tax_refunded_amount: number | null;
232
+
213
233
  /**
214
234
  * The total to show to the creator (excluding buyer fees).
215
235
  */
@@ -0,0 +1,492 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import * as Shared from './shared';
5
+ import { APIPromise } from '../core/api-promise';
6
+ import { CursorPage, type CursorPageParams, PagePromise } from '../core/pagination';
7
+ import { RequestOptions } from '../internal/request-options';
8
+ import { path } from '../internal/utils/path';
9
+
10
+ /**
11
+ * Resolution center cases
12
+ */
13
+ export class ResolutionCenterCases extends APIResource {
14
+ /**
15
+ * Retrieves the details of an existing resolution center case.
16
+ *
17
+ * Required permissions:
18
+ *
19
+ * - `payment:resolution_center_case:read`
20
+ */
21
+ retrieve(id: string, options?: RequestOptions): APIPromise<ResolutionCenterCaseRetrieveResponse> {
22
+ return this._client.get(path`/resolution_center_cases/${id}`, options);
23
+ }
24
+
25
+ /**
26
+ * Returns a paginated list of resolution center cases, with optional filtering by
27
+ * company, status, and creation date.
28
+ *
29
+ * Required permissions:
30
+ *
31
+ * - `payment:resolution_center_case:read`
32
+ */
33
+ list(
34
+ query: ResolutionCenterCaseListParams | null | undefined = {},
35
+ options?: RequestOptions,
36
+ ): PagePromise<ResolutionCenterCaseListResponsesCursorPage, ResolutionCenterCaseListResponse> {
37
+ return this._client.getAPIList('/resolution_center_cases', CursorPage<ResolutionCenterCaseListResponse>, {
38
+ query,
39
+ ...options,
40
+ });
41
+ }
42
+ }
43
+
44
+ export type ResolutionCenterCaseListResponsesCursorPage = CursorPage<ResolutionCenterCaseListResponse>;
45
+
46
+ /**
47
+ * The types of responses a customer can make to a resolution.
48
+ */
49
+ export type ResolutionCenterCaseCustomerResponse = 'respond' | 'appeal' | 'withdraw';
50
+
51
+ /**
52
+ * The different types of issues a resolution can be
53
+ */
54
+ export type ResolutionCenterCaseIssueType =
55
+ | 'forgot_to_cancel'
56
+ | 'item_not_received'
57
+ | 'significantly_not_as_described'
58
+ | 'unauthorized_transaction'
59
+ | 'product_unacceptable';
60
+
61
+ /**
62
+ * The types of responses a merchant can make to a resolution.
63
+ */
64
+ export type ResolutionCenterCaseMerchantResponse =
65
+ | 'accept'
66
+ | 'deny'
67
+ | 'request_more_info'
68
+ | 'appeal'
69
+ | 'respond';
70
+
71
+ /**
72
+ * The types of responses the platform can make to a resolution.
73
+ */
74
+ export type ResolutionCenterCasePlatformResponse =
75
+ | 'request_buyer_info'
76
+ | 'request_merchant_info'
77
+ | 'merchant_wins'
78
+ | 'platform_refund'
79
+ | 'merchant_refund';
80
+
81
+ /**
82
+ * The statuses a resolution object can have
83
+ */
84
+ export type ResolutionCenterCaseStatus =
85
+ | 'merchant_response_needed'
86
+ | 'customer_response_needed'
87
+ | 'merchant_info_needed'
88
+ | 'customer_info_needed'
89
+ | 'under_platform_review'
90
+ | 'customer_won'
91
+ | 'merchant_won'
92
+ | 'customer_withdrew';
93
+
94
+ /**
95
+ * A resolution center case is a dispute or support case between a user and a
96
+ * company, tracking the issue, status, and outcome.
97
+ */
98
+ export interface ResolutionCenterCaseRetrieveResponse {
99
+ /**
100
+ * The unique identifier for the resolution.
101
+ */
102
+ id: string;
103
+
104
+ /**
105
+ * The company involved in this resolution case. Null if the company no longer
106
+ * exists.
107
+ */
108
+ company: ResolutionCenterCaseRetrieveResponse.Company | null;
109
+
110
+ /**
111
+ * The datetime the resolution was created.
112
+ */
113
+ created_at: string;
114
+
115
+ /**
116
+ * Whether the customer has filed an appeal after the initial resolution decision.
117
+ */
118
+ customer_appealed: boolean;
119
+
120
+ /**
121
+ * The list of actions currently available to the customer.
122
+ */
123
+ customer_response_actions: Array<ResolutionCenterCaseCustomerResponse>;
124
+
125
+ /**
126
+ * The deadline by which the next response is required. Null if no deadline is
127
+ * currently active. As a Unix timestamp.
128
+ */
129
+ due_date: string | null;
130
+
131
+ /**
132
+ * The category of the dispute.
133
+ */
134
+ issue: ResolutionCenterCaseIssueType;
135
+
136
+ /**
137
+ * The membership record associated with the disputed payment. Null if the
138
+ * membership no longer exists.
139
+ */
140
+ member: ResolutionCenterCaseRetrieveResponse.Member | null;
141
+
142
+ /**
143
+ * Whether the merchant has filed an appeal after the initial resolution decision.
144
+ */
145
+ merchant_appealed: boolean;
146
+
147
+ /**
148
+ * The list of actions currently available to the merchant.
149
+ */
150
+ merchant_response_actions: Array<ResolutionCenterCaseMerchantResponse>;
151
+
152
+ /**
153
+ * The payment record that is the subject of this resolution case.
154
+ */
155
+ payment: ResolutionCenterCaseRetrieveResponse.Payment;
156
+
157
+ /**
158
+ * The list of actions currently available to the Whop platform for moderating this
159
+ * resolution.
160
+ */
161
+ platform_response_actions: Array<ResolutionCenterCasePlatformResponse>;
162
+
163
+ /**
164
+ * The most recent 50 messages, actions, and status changes that have occurred
165
+ * during this resolution case.
166
+ */
167
+ resolution_events: Array<ResolutionCenterCaseRetrieveResponse.ResolutionEvent>;
168
+
169
+ /**
170
+ * The current status of the resolution case, indicating which party needs to
171
+ * respond or if the case is closed.
172
+ */
173
+ status: ResolutionCenterCaseStatus;
174
+
175
+ /**
176
+ * The datetime the resolution was last updated.
177
+ */
178
+ updated_at: string;
179
+
180
+ /**
181
+ * The customer (buyer) who filed this resolution case.
182
+ */
183
+ user: ResolutionCenterCaseRetrieveResponse.User;
184
+ }
185
+
186
+ export namespace ResolutionCenterCaseRetrieveResponse {
187
+ /**
188
+ * The company involved in this resolution case. Null if the company no longer
189
+ * exists.
190
+ */
191
+ export interface Company {
192
+ /**
193
+ * The unique identifier for the company.
194
+ */
195
+ id: string;
196
+
197
+ /**
198
+ * The display name of the company shown to customers.
199
+ */
200
+ title: string;
201
+ }
202
+
203
+ /**
204
+ * The membership record associated with the disputed payment. Null if the
205
+ * membership no longer exists.
206
+ */
207
+ export interface Member {
208
+ /**
209
+ * The unique identifier for the extra public member.
210
+ */
211
+ id: string;
212
+ }
213
+
214
+ /**
215
+ * The payment record that is the subject of this resolution case.
216
+ */
217
+ export interface Payment {
218
+ /**
219
+ * The unique identifier for the payment.
220
+ */
221
+ id: string;
222
+
223
+ /**
224
+ * The datetime the payment was created.
225
+ */
226
+ created_at: string;
227
+
228
+ /**
229
+ * The available currencies on the platform
230
+ */
231
+ currency: Shared.Currency | null;
232
+
233
+ /**
234
+ * The time at which this payment was successfully collected. Null if the payment
235
+ * has not yet succeeded. As a Unix timestamp.
236
+ */
237
+ paid_at: string | null;
238
+
239
+ /**
240
+ * The payment amount before taxes and discounts are applied. In the currency
241
+ * specified by the currency field.
242
+ */
243
+ subtotal: number | null;
244
+
245
+ /**
246
+ * The total amount charged to the customer for this payment, including taxes and
247
+ * after any discounts. In the currency specified by the currency field.
248
+ */
249
+ total: number;
250
+ }
251
+
252
+ /**
253
+ * A resolution event is a message or action within a resolution case, such as a
254
+ * response, escalation, or status change.
255
+ */
256
+ export interface ResolutionEvent {
257
+ /**
258
+ * The unique identifier for the resolution event.
259
+ */
260
+ id: string;
261
+
262
+ /**
263
+ * The type of action recorded in this event.
264
+ */
265
+ action:
266
+ | 'created'
267
+ | 'responded'
268
+ | 'accepted'
269
+ | 'denied'
270
+ | 'appealed'
271
+ | 'withdrew'
272
+ | 'requested_more_info'
273
+ | 'escalated'
274
+ | 'dispute_opened'
275
+ | 'dispute_customer_won'
276
+ | 'dispute_merchant_won';
277
+
278
+ /**
279
+ * The datetime the resolution event was created.
280
+ */
281
+ created_at: string;
282
+
283
+ /**
284
+ * The message body or additional context provided with this resolution event. Null
285
+ * if no details were included.
286
+ */
287
+ details: string | null;
288
+
289
+ /**
290
+ * The party who performed this action.
291
+ */
292
+ reporter_type: 'merchant' | 'customer' | 'platform' | 'system';
293
+ }
294
+
295
+ /**
296
+ * The customer (buyer) who filed this resolution case.
297
+ */
298
+ export interface User {
299
+ /**
300
+ * The unique identifier for the user.
301
+ */
302
+ id: string;
303
+
304
+ /**
305
+ * The user's display name shown on their public profile.
306
+ */
307
+ name: string | null;
308
+
309
+ /**
310
+ * The user's unique username shown on their public profile.
311
+ */
312
+ username: string;
313
+ }
314
+ }
315
+
316
+ /**
317
+ * A resolution center case is a dispute or support case between a user and a
318
+ * company, tracking the issue, status, and outcome.
319
+ */
320
+ export interface ResolutionCenterCaseListResponse {
321
+ /**
322
+ * The unique identifier for the resolution.
323
+ */
324
+ id: string;
325
+
326
+ /**
327
+ * The company involved in this resolution case. Null if the company no longer
328
+ * exists.
329
+ */
330
+ company: ResolutionCenterCaseListResponse.Company | null;
331
+
332
+ /**
333
+ * The datetime the resolution was created.
334
+ */
335
+ created_at: string;
336
+
337
+ /**
338
+ * Whether the customer has filed an appeal after the initial resolution decision.
339
+ */
340
+ customer_appealed: boolean;
341
+
342
+ /**
343
+ * The list of actions currently available to the customer.
344
+ */
345
+ customer_response_actions: Array<ResolutionCenterCaseCustomerResponse>;
346
+
347
+ /**
348
+ * The deadline by which the next response is required. Null if no deadline is
349
+ * currently active. As a Unix timestamp.
350
+ */
351
+ due_date: string | null;
352
+
353
+ /**
354
+ * The category of the dispute.
355
+ */
356
+ issue: ResolutionCenterCaseIssueType;
357
+
358
+ /**
359
+ * Whether the merchant has filed an appeal after the initial resolution decision.
360
+ */
361
+ merchant_appealed: boolean;
362
+
363
+ /**
364
+ * The list of actions currently available to the merchant.
365
+ */
366
+ merchant_response_actions: Array<ResolutionCenterCaseMerchantResponse>;
367
+
368
+ /**
369
+ * The payment record that is the subject of this resolution case.
370
+ */
371
+ payment: ResolutionCenterCaseListResponse.Payment;
372
+
373
+ /**
374
+ * The current status of the resolution case, indicating which party needs to
375
+ * respond or if the case is closed.
376
+ */
377
+ status: ResolutionCenterCaseStatus;
378
+
379
+ /**
380
+ * The datetime the resolution was last updated.
381
+ */
382
+ updated_at: string;
383
+
384
+ /**
385
+ * The customer (buyer) who filed this resolution case.
386
+ */
387
+ user: ResolutionCenterCaseListResponse.User;
388
+ }
389
+
390
+ export namespace ResolutionCenterCaseListResponse {
391
+ /**
392
+ * The company involved in this resolution case. Null if the company no longer
393
+ * exists.
394
+ */
395
+ export interface Company {
396
+ /**
397
+ * The unique identifier for the company.
398
+ */
399
+ id: string;
400
+
401
+ /**
402
+ * The display name of the company shown to customers.
403
+ */
404
+ title: string;
405
+ }
406
+
407
+ /**
408
+ * The payment record that is the subject of this resolution case.
409
+ */
410
+ export interface Payment {
411
+ /**
412
+ * The unique identifier for the payment.
413
+ */
414
+ id: string;
415
+ }
416
+
417
+ /**
418
+ * The customer (buyer) who filed this resolution case.
419
+ */
420
+ export interface User {
421
+ /**
422
+ * The unique identifier for the user.
423
+ */
424
+ id: string;
425
+
426
+ /**
427
+ * The user's display name shown on their public profile.
428
+ */
429
+ name: string | null;
430
+
431
+ /**
432
+ * The user's unique username shown on their public profile.
433
+ */
434
+ username: string;
435
+ }
436
+ }
437
+
438
+ export interface ResolutionCenterCaseListParams extends CursorPageParams {
439
+ /**
440
+ * Returns the elements in the list that come before the specified cursor.
441
+ */
442
+ before?: string | null;
443
+
444
+ /**
445
+ * The unique identifier of the company to list resolution center cases for.
446
+ */
447
+ company_id?: string | null;
448
+
449
+ /**
450
+ * Only return cases created after this timestamp.
451
+ */
452
+ created_after?: string | null;
453
+
454
+ /**
455
+ * Only return cases created before this timestamp.
456
+ */
457
+ created_before?: string | null;
458
+
459
+ /**
460
+ * The direction of the sort.
461
+ */
462
+ direction?: Shared.Direction | null;
463
+
464
+ /**
465
+ * Returns the first _n_ elements from the list.
466
+ */
467
+ first?: number | null;
468
+
469
+ /**
470
+ * Returns the last _n_ elements from the list.
471
+ */
472
+ last?: number | null;
473
+
474
+ /**
475
+ * Filter by resolution center case status.
476
+ */
477
+ statuses?: Array<ResolutionCenterCaseStatus> | null;
478
+ }
479
+
480
+ export declare namespace ResolutionCenterCases {
481
+ export {
482
+ type ResolutionCenterCaseCustomerResponse as ResolutionCenterCaseCustomerResponse,
483
+ type ResolutionCenterCaseIssueType as ResolutionCenterCaseIssueType,
484
+ type ResolutionCenterCaseMerchantResponse as ResolutionCenterCaseMerchantResponse,
485
+ type ResolutionCenterCasePlatformResponse as ResolutionCenterCasePlatformResponse,
486
+ type ResolutionCenterCaseStatus as ResolutionCenterCaseStatus,
487
+ type ResolutionCenterCaseRetrieveResponse as ResolutionCenterCaseRetrieveResponse,
488
+ type ResolutionCenterCaseListResponse as ResolutionCenterCaseListResponse,
489
+ type ResolutionCenterCaseListResponsesCursorPage as ResolutionCenterCaseListResponsesCursorPage,
490
+ type ResolutionCenterCaseListParams as ResolutionCenterCaseListParams,
491
+ };
492
+ }
@@ -6,6 +6,9 @@ import { CursorPage, type CursorPageParams, PagePromise } from '../core/paginati
6
6
  import { RequestOptions } from '../internal/request-options';
7
7
  import { path } from '../internal/utils/path';
8
8
 
9
+ /**
10
+ * Reviews
11
+ */
9
12
  export class Reviews extends APIResource {
10
13
  /**
11
14
  * Retrieves the details of an existing review.
@@ -8,6 +8,9 @@ import { CursorPage, type CursorPageParams, PagePromise } from '../core/paginati
8
8
  import { RequestOptions } from '../internal/request-options';
9
9
  import { path } from '../internal/utils/path';
10
10
 
11
+ /**
12
+ * Setup intents
13
+ */
11
14
  export class SetupIntents extends APIResource {
12
15
  /**
13
16
  * Retrieves the details of an existing setup intent.