@whop/sdk 0.0.29 → 0.0.31

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 (494) hide show
  1. package/CHANGELOG.md +48 -99
  2. package/client.d.mts +161 -13
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +161 -13
  5. package/client.d.ts.map +1 -1
  6. package/client.js +158 -7
  7. package/client.js.map +1 -1
  8. package/client.mjs +158 -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 +8 -0
  42. package/resources/ai-chats.d.mts.map +1 -1
  43. package/resources/ai-chats.d.ts +8 -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 +142 -1
  66. package/resources/authorized-users.d.mts.map +1 -1
  67. package/resources/authorized-users.d.ts +142 -1
  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 -13
  82. package/resources/checkout-configurations.d.mts.map +1 -1
  83. package/resources/checkout-configurations.d.ts +3 -13
  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 -34
  90. package/resources/companies.d.mts.map +1 -1
  91. package/resources/companies.d.ts +54 -34
  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 -5
  226. package/resources/index.d.mts.map +1 -1
  227. package/resources/index.d.ts +5 -5
  228. package/resources/index.d.ts.map +1 -1
  229. package/resources/index.js.map +1 -1
  230. package/resources/index.mjs.map +1 -1
  231. package/resources/invoices.d.mts +141 -8
  232. package/resources/invoices.d.mts.map +1 -1
  233. package/resources/invoices.d.ts +141 -8
  234. package/resources/invoices.d.ts.map +1 -1
  235. package/resources/invoices.js +4 -4
  236. package/resources/invoices.js.map +1 -1
  237. package/resources/invoices.mjs +4 -4
  238. package/resources/invoices.mjs.map +1 -1
  239. package/resources/leads.d.mts +3 -0
  240. package/resources/leads.d.mts.map +1 -1
  241. package/resources/leads.d.ts +3 -0
  242. package/resources/leads.d.ts.map +1 -1
  243. package/resources/leads.js +3 -0
  244. package/resources/leads.js.map +1 -1
  245. package/resources/leads.mjs +3 -0
  246. package/resources/leads.mjs.map +1 -1
  247. package/resources/ledger-accounts.d.mts +3 -0
  248. package/resources/ledger-accounts.d.mts.map +1 -1
  249. package/resources/ledger-accounts.d.ts +3 -0
  250. package/resources/ledger-accounts.d.ts.map +1 -1
  251. package/resources/ledger-accounts.js +3 -0
  252. package/resources/ledger-accounts.js.map +1 -1
  253. package/resources/ledger-accounts.mjs +3 -0
  254. package/resources/ledger-accounts.mjs.map +1 -1
  255. package/resources/members.d.mts +3 -0
  256. package/resources/members.d.mts.map +1 -1
  257. package/resources/members.d.ts +3 -0
  258. package/resources/members.d.ts.map +1 -1
  259. package/resources/members.js +3 -0
  260. package/resources/members.js.map +1 -1
  261. package/resources/members.mjs +3 -0
  262. package/resources/members.mjs.map +1 -1
  263. package/resources/memberships.d.mts +81 -2
  264. package/resources/memberships.d.mts.map +1 -1
  265. package/resources/memberships.d.ts +81 -2
  266. package/resources/memberships.d.ts.map +1 -1
  267. package/resources/memberships.js +75 -1
  268. package/resources/memberships.js.map +1 -1
  269. package/resources/memberships.mjs +75 -1
  270. package/resources/memberships.mjs.map +1 -1
  271. package/resources/messages.d.mts +12 -0
  272. package/resources/messages.d.mts.map +1 -1
  273. package/resources/messages.d.ts +12 -0
  274. package/resources/messages.d.ts.map +1 -1
  275. package/resources/messages.js +3 -0
  276. package/resources/messages.js.map +1 -1
  277. package/resources/messages.mjs +3 -0
  278. package/resources/messages.mjs.map +1 -1
  279. package/resources/notifications.d.mts +3 -0
  280. package/resources/notifications.d.mts.map +1 -1
  281. package/resources/notifications.d.ts +3 -0
  282. package/resources/notifications.d.ts.map +1 -1
  283. package/resources/notifications.js +3 -0
  284. package/resources/notifications.js.map +1 -1
  285. package/resources/notifications.mjs +3 -0
  286. package/resources/notifications.mjs.map +1 -1
  287. package/resources/payment-methods.d.mts +3 -0
  288. package/resources/payment-methods.d.mts.map +1 -1
  289. package/resources/payment-methods.d.ts +3 -0
  290. package/resources/payment-methods.d.ts.map +1 -1
  291. package/resources/payment-methods.js +3 -0
  292. package/resources/payment-methods.js.map +1 -1
  293. package/resources/payment-methods.mjs +3 -0
  294. package/resources/payment-methods.mjs.map +1 -1
  295. package/resources/payments.d.mts +19 -15
  296. package/resources/payments.d.mts.map +1 -1
  297. package/resources/payments.d.ts +19 -15
  298. package/resources/payments.d.ts.map +1 -1
  299. package/resources/payments.js +3 -0
  300. package/resources/payments.js.map +1 -1
  301. package/resources/payments.mjs +3 -0
  302. package/resources/payments.mjs.map +1 -1
  303. package/resources/payout-methods.d.mts +3 -0
  304. package/resources/payout-methods.d.mts.map +1 -1
  305. package/resources/payout-methods.d.ts +3 -0
  306. package/resources/payout-methods.d.ts.map +1 -1
  307. package/resources/payout-methods.js +3 -0
  308. package/resources/payout-methods.js.map +1 -1
  309. package/resources/payout-methods.mjs +3 -0
  310. package/resources/payout-methods.mjs.map +1 -1
  311. package/resources/plans.d.mts +3 -0
  312. package/resources/plans.d.mts.map +1 -1
  313. package/resources/plans.d.ts +3 -0
  314. package/resources/plans.d.ts.map +1 -1
  315. package/resources/plans.js +3 -0
  316. package/resources/plans.js.map +1 -1
  317. package/resources/plans.mjs +3 -0
  318. package/resources/plans.mjs.map +1 -1
  319. package/resources/products.d.mts +4 -29
  320. package/resources/products.d.mts.map +1 -1
  321. package/resources/products.d.ts +4 -29
  322. package/resources/products.d.ts.map +1 -1
  323. package/resources/products.js +3 -0
  324. package/resources/products.js.map +1 -1
  325. package/resources/products.mjs +3 -0
  326. package/resources/products.mjs.map +1 -1
  327. package/resources/promo-codes.d.mts +3 -0
  328. package/resources/promo-codes.d.mts.map +1 -1
  329. package/resources/promo-codes.d.ts +3 -0
  330. package/resources/promo-codes.d.ts.map +1 -1
  331. package/resources/promo-codes.js +3 -0
  332. package/resources/promo-codes.js.map +1 -1
  333. package/resources/promo-codes.mjs +3 -0
  334. package/resources/promo-codes.mjs.map +1 -1
  335. package/resources/reactions.d.mts +3 -0
  336. package/resources/reactions.d.mts.map +1 -1
  337. package/resources/reactions.d.ts +3 -0
  338. package/resources/reactions.d.ts.map +1 -1
  339. package/resources/reactions.js +3 -0
  340. package/resources/reactions.js.map +1 -1
  341. package/resources/reactions.mjs +3 -0
  342. package/resources/reactions.mjs.map +1 -1
  343. package/resources/refunds.d.mts +17 -1
  344. package/resources/refunds.d.mts.map +1 -1
  345. package/resources/refunds.d.ts +17 -1
  346. package/resources/refunds.d.ts.map +1 -1
  347. package/resources/refunds.js +3 -0
  348. package/resources/refunds.js.map +1 -1
  349. package/resources/refunds.mjs +3 -0
  350. package/resources/refunds.mjs.map +1 -1
  351. package/resources/reviews.d.mts +3 -0
  352. package/resources/reviews.d.mts.map +1 -1
  353. package/resources/reviews.d.ts +3 -0
  354. package/resources/reviews.d.ts.map +1 -1
  355. package/resources/reviews.js +3 -0
  356. package/resources/reviews.js.map +1 -1
  357. package/resources/reviews.mjs +3 -0
  358. package/resources/reviews.mjs.map +1 -1
  359. package/resources/setup-intents.d.mts +3 -0
  360. package/resources/setup-intents.d.mts.map +1 -1
  361. package/resources/setup-intents.d.ts +3 -0
  362. package/resources/setup-intents.d.ts.map +1 -1
  363. package/resources/setup-intents.js +3 -0
  364. package/resources/setup-intents.js.map +1 -1
  365. package/resources/setup-intents.mjs +3 -0
  366. package/resources/setup-intents.mjs.map +1 -1
  367. package/resources/shared.d.mts +55 -34
  368. package/resources/shared.d.mts.map +1 -1
  369. package/resources/shared.d.ts +55 -34
  370. package/resources/shared.d.ts.map +1 -1
  371. package/resources/shipments.d.mts +3 -0
  372. package/resources/shipments.d.mts.map +1 -1
  373. package/resources/shipments.d.ts +3 -0
  374. package/resources/shipments.d.ts.map +1 -1
  375. package/resources/shipments.js +3 -0
  376. package/resources/shipments.js.map +1 -1
  377. package/resources/shipments.mjs +3 -0
  378. package/resources/shipments.mjs.map +1 -1
  379. package/resources/support-channels.d.mts +3 -0
  380. package/resources/support-channels.d.mts.map +1 -1
  381. package/resources/support-channels.d.ts +3 -0
  382. package/resources/support-channels.d.ts.map +1 -1
  383. package/resources/support-channels.js +3 -0
  384. package/resources/support-channels.js.map +1 -1
  385. package/resources/support-channels.mjs +3 -0
  386. package/resources/support-channels.mjs.map +1 -1
  387. package/resources/topups.d.mts +3 -0
  388. package/resources/topups.d.mts.map +1 -1
  389. package/resources/topups.d.ts +3 -0
  390. package/resources/topups.d.ts.map +1 -1
  391. package/resources/topups.js +3 -0
  392. package/resources/topups.js.map +1 -1
  393. package/resources/topups.mjs +3 -0
  394. package/resources/topups.mjs.map +1 -1
  395. package/resources/transfers.d.mts +3 -0
  396. package/resources/transfers.d.mts.map +1 -1
  397. package/resources/transfers.d.ts +3 -0
  398. package/resources/transfers.d.ts.map +1 -1
  399. package/resources/transfers.js +3 -0
  400. package/resources/transfers.js.map +1 -1
  401. package/resources/transfers.mjs +3 -0
  402. package/resources/transfers.mjs.map +1 -1
  403. package/resources/users.d.mts +3 -0
  404. package/resources/users.d.mts.map +1 -1
  405. package/resources/users.d.ts +3 -0
  406. package/resources/users.d.ts.map +1 -1
  407. package/resources/users.js +3 -0
  408. package/resources/users.js.map +1 -1
  409. package/resources/users.mjs +3 -0
  410. package/resources/users.mjs.map +1 -1
  411. package/resources/verifications.d.mts +3 -0
  412. package/resources/verifications.d.mts.map +1 -1
  413. package/resources/verifications.d.ts +3 -0
  414. package/resources/verifications.d.ts.map +1 -1
  415. package/resources/verifications.js +3 -0
  416. package/resources/verifications.js.map +1 -1
  417. package/resources/verifications.mjs +3 -0
  418. package/resources/verifications.mjs.map +1 -1
  419. package/resources/webhooks.d.mts +29 -0
  420. package/resources/webhooks.d.mts.map +1 -1
  421. package/resources/webhooks.d.ts +29 -0
  422. package/resources/webhooks.d.ts.map +1 -1
  423. package/resources/webhooks.js +3 -0
  424. package/resources/webhooks.js.map +1 -1
  425. package/resources/webhooks.mjs +3 -0
  426. package/resources/webhooks.mjs.map +1 -1
  427. package/resources/withdrawals.d.mts +3 -0
  428. package/resources/withdrawals.d.mts.map +1 -1
  429. package/resources/withdrawals.d.ts +3 -0
  430. package/resources/withdrawals.d.ts.map +1 -1
  431. package/resources/withdrawals.js +3 -0
  432. package/resources/withdrawals.js.map +1 -1
  433. package/resources/withdrawals.mjs +3 -0
  434. package/resources/withdrawals.mjs.map +1 -1
  435. package/src/client.ts +175 -14
  436. package/src/internal/utils/query.ts +7 -0
  437. package/src/internal/utils.ts +1 -0
  438. package/src/resources/access-tokens.ts +3 -0
  439. package/src/resources/account-links.ts +3 -0
  440. package/src/resources/ai-chats.ts +9 -0
  441. package/src/resources/app-builds.ts +3 -0
  442. package/src/resources/apps.ts +3 -0
  443. package/src/resources/authorized-users.ts +175 -0
  444. package/src/resources/chat-channels.ts +3 -0
  445. package/src/resources/checkout-configurations.ts +3 -16
  446. package/src/resources/companies.ts +72 -41
  447. package/src/resources/company-token-transactions.ts +3 -0
  448. package/src/resources/course-chapters.ts +3 -0
  449. package/src/resources/course-lesson-interactions.ts +3 -0
  450. package/src/resources/course-lessons.ts +3 -0
  451. package/src/resources/course-students.ts +3 -0
  452. package/src/resources/courses.ts +3 -0
  453. package/src/resources/dispute-alerts.ts +3 -0
  454. package/src/resources/disputes.ts +3 -0
  455. package/src/resources/dm-channels.ts +3 -0
  456. package/src/resources/dm-members.ts +3 -0
  457. package/src/resources/entries.ts +3 -0
  458. package/src/resources/experiences.ts +3 -0
  459. package/src/resources/fee-markups.ts +3 -0
  460. package/src/resources/files.ts +3 -0
  461. package/src/resources/forum-posts.ts +44 -0
  462. package/src/resources/forums.ts +22 -0
  463. package/src/resources/index.ts +7 -1
  464. package/src/resources/invoices.ts +162 -9
  465. package/src/resources/leads.ts +3 -0
  466. package/src/resources/ledger-accounts.ts +3 -0
  467. package/src/resources/members.ts +3 -0
  468. package/src/resources/memberships.ts +89 -1
  469. package/src/resources/messages.ts +14 -0
  470. package/src/resources/notifications.ts +3 -0
  471. package/src/resources/payment-methods.ts +3 -0
  472. package/src/resources/payments.ts +22 -16
  473. package/src/resources/payout-methods.ts +3 -0
  474. package/src/resources/plans.ts +3 -0
  475. package/src/resources/products.ts +3 -174
  476. package/src/resources/promo-codes.ts +3 -0
  477. package/src/resources/reactions.ts +3 -0
  478. package/src/resources/refunds.ts +21 -1
  479. package/src/resources/reviews.ts +3 -0
  480. package/src/resources/setup-intents.ts +3 -0
  481. package/src/resources/shared.ts +66 -2011
  482. package/src/resources/shipments.ts +3 -0
  483. package/src/resources/support-channels.ts +3 -0
  484. package/src/resources/topups.ts +3 -0
  485. package/src/resources/transfers.ts +3 -0
  486. package/src/resources/users.ts +3 -0
  487. package/src/resources/verifications.ts +3 -0
  488. package/src/resources/webhooks.ts +35 -0
  489. package/src/resources/withdrawals.ts +3 -0
  490. package/src/version.ts +1 -1
  491. package/version.d.mts +1 -1
  492. package/version.d.ts +1 -1
  493. package/version.js +1 -1
  494. package/version.mjs +1 -1
@@ -2,13 +2,15 @@
2
2
 
3
3
  import { APIResource } from '../core/resource';
4
4
  import * as PaymentsAPI from './payments';
5
- import * as ProductsAPI from './products';
6
5
  import * as Shared from './shared';
7
6
  import { APIPromise } from '../core/api-promise';
8
7
  import { CursorPage, type CursorPageParams, PagePromise } from '../core/pagination';
9
8
  import { RequestOptions } from '../internal/request-options';
10
9
  import { path } from '../internal/utils/path';
11
10
 
11
+ /**
12
+ * Checkout configurations
13
+ */
12
14
  export class CheckoutConfigurations extends APIResource {
13
15
  /**
14
16
  * Creates a new checkout configuration
@@ -495,11 +497,6 @@ export declare namespace CheckoutConfigurationCreateParams {
495
497
  */
496
498
  title: string;
497
499
 
498
- /**
499
- * The different business types a company can be.
500
- */
501
- business_type?: Shared.BusinessTypes | null;
502
-
503
500
  /**
504
501
  * Whether or not to collect shipping information at checkout from the customer.
505
502
  */
@@ -532,16 +529,6 @@ export declare namespace CheckoutConfigurationCreateParams {
532
529
  */
533
530
  headline?: string | null;
534
531
 
535
- /**
536
- * The different industry groups a company can be in.
537
- */
538
- industry_group?: ProductsAPI.IndustryGroups | null;
539
-
540
- /**
541
- * The different industry types a company can be in.
542
- */
543
- industry_type?: Shared.IndustryTypes | null;
544
-
545
532
  /**
546
533
  * The ID of the product tax code to apply to this product.
547
534
  */
@@ -1,13 +1,16 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { APIResource } from '../core/resource';
4
- import * as ProductsAPI from './products';
4
+ import * as CompaniesAPI from './companies';
5
5
  import * as Shared from './shared';
6
6
  import { APIPromise } from '../core/api-promise';
7
7
  import { CursorPage, type CursorPageParams, PagePromise } from '../core/pagination';
8
8
  import { RequestOptions } from '../internal/request-options';
9
9
  import { path } from '../internal/utils/path';
10
10
 
11
+ /**
12
+ * Companies
13
+ */
11
14
  export class Companies extends APIResource {
12
15
  /**
13
16
  * Create a new company. Pass parent_company_id to create a connected account under
@@ -68,6 +71,20 @@ export class Companies extends APIResource {
68
71
 
69
72
  export type CompanyListResponsesCursorPage = CursorPage<CompanyListResponse>;
70
73
 
74
+ /**
75
+ * The different websites you can have social links for
76
+ */
77
+ export type SocialLinkWebsites =
78
+ | 'x'
79
+ | 'instagram'
80
+ | 'facebook'
81
+ | 'tiktok'
82
+ | 'youtube'
83
+ | 'linkedin'
84
+ | 'twitch'
85
+ | 'website'
86
+ | 'custom';
87
+
71
88
  /**
72
89
  * A company is a seller on Whop. Companies own products, manage members, and
73
90
  * receive payouts.
@@ -78,11 +95,6 @@ export interface CompanyListResponse {
78
95
  */
79
96
  id: string;
80
97
 
81
- /**
82
- * The different business types a company can be.
83
- */
84
- business_type: Shared.BusinessTypes | null;
85
-
86
98
  /**
87
99
  * The datetime the company was created.
88
100
  */
@@ -94,11 +106,6 @@ export interface CompanyListResponse {
94
106
  */
95
107
  description: string | null;
96
108
 
97
- /**
98
- * The different industry types a company can be in.
99
- */
100
- industry_type: Shared.IndustryTypes | null;
101
-
102
109
  /**
103
110
  * The company's logo.
104
111
  */
@@ -193,11 +200,6 @@ export interface CompanyCreateParams {
193
200
  */
194
201
  title: string;
195
202
 
196
- /**
197
- * The different business types a company can be.
198
- */
199
- business_type?: Shared.BusinessTypes | null;
200
-
201
203
  /**
202
204
  * A promotional pitch displayed to potential customers on the company's store
203
205
  * page.
@@ -210,16 +212,6 @@ export interface CompanyCreateParams {
210
212
  */
211
213
  email?: string | null;
212
214
 
213
- /**
214
- * The different industry groups a company can be in.
215
- */
216
- industry_group?: ProductsAPI.IndustryGroups | null;
217
-
218
- /**
219
- * The different industry types a company can be in.
220
- */
221
- industry_type?: Shared.IndustryTypes | null;
222
-
223
215
  /**
224
216
  * The company's logo image. Accepts PNG, JPEG, or GIF format.
225
217
  */
@@ -262,27 +254,12 @@ export interface CompanyUpdateParams {
262
254
  */
263
255
  banner_image?: CompanyUpdateParams.BannerImage | null;
264
256
 
265
- /**
266
- * The different business types a company can be.
267
- */
268
- business_type?: Shared.BusinessTypes | null;
269
-
270
257
  /**
271
258
  * A promotional pitch displayed to potential customers on the company's store
272
259
  * page.
273
260
  */
274
261
  description?: string | null;
275
262
 
276
- /**
277
- * The different industry groups a company can be in.
278
- */
279
- industry_group?: ProductsAPI.IndustryGroups | null;
280
-
281
- /**
282
- * The different industry types a company can be in.
283
- */
284
- industry_type?: Shared.IndustryTypes | null;
285
-
286
263
  /**
287
264
  * The company's logo image. Accepts PNG, JPEG, or GIF format.
288
265
  */
@@ -301,6 +278,12 @@ export interface CompanyUpdateParams {
301
278
  */
302
279
  send_customer_emails?: boolean | null;
303
280
 
281
+ /**
282
+ * The social media links to display on the company's store page. Pass the full
283
+ * list of desired social links — any existing links not included will be removed.
284
+ */
285
+ social_links?: Array<CompanyUpdateParams.SocialLink> | null;
286
+
304
287
  /**
305
288
  * The target audience for this company (e.g., 'beginner day traders aged 18-25
306
289
  * looking to learn options').
@@ -333,6 +316,53 @@ export namespace CompanyUpdateParams {
333
316
  */
334
317
  id: string;
335
318
  }
319
+
320
+ /**
321
+ * Input for creating a social link for a company
322
+ */
323
+ export interface SocialLink {
324
+ /**
325
+ * The URL of the social link
326
+ */
327
+ url: string;
328
+
329
+ /**
330
+ * The website this link is for
331
+ */
332
+ website: CompaniesAPI.SocialLinkWebsites;
333
+
334
+ /**
335
+ * The custom image for the social link
336
+ */
337
+ image?: SocialLink.Image | null;
338
+
339
+ /**
340
+ * The order of the social link
341
+ */
342
+ order?: string | null;
343
+
344
+ /**
345
+ * The title of the social link
346
+ */
347
+ title?: string | null;
348
+
349
+ /**
350
+ * The order of the website social link
351
+ */
352
+ website_order?: string | null;
353
+ }
354
+
355
+ export namespace SocialLink {
356
+ /**
357
+ * The custom image for the social link
358
+ */
359
+ export interface Image {
360
+ /**
361
+ * The ID of an existing file object.
362
+ */
363
+ id: string;
364
+ }
365
+ }
336
366
  }
337
367
 
338
368
  export interface CompanyListParams extends CursorPageParams {
@@ -376,6 +406,7 @@ export interface CompanyListParams extends CursorPageParams {
376
406
 
377
407
  export declare namespace Companies {
378
408
  export {
409
+ type SocialLinkWebsites as SocialLinkWebsites,
379
410
  type CompanyListResponse as CompanyListResponse,
380
411
  type CompanyListResponsesCursorPage as CompanyListResponsesCursorPage,
381
412
  type CompanyCreateParams as CompanyCreateParams,
@@ -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
+ * Company token transactions
11
+ */
9
12
  export class CompanyTokenTransactions extends APIResource {
10
13
  /**
11
14
  * Create a token transaction to add, subtract, or transfer tokens for a member
@@ -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
+ * Course chapters
11
+ */
9
12
  export class CourseChapters extends APIResource {
10
13
  /**
11
14
  * Create a new chapter within a course to organize lessons into sections.
@@ -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
+ * Course lesson interactions
13
+ */
11
14
  export class CourseLessonInteractions extends APIResource {
12
15
  /**
13
16
  * Retrieves the details of an existing course lesson interaction.
@@ -7,6 +7,9 @@ import { CursorPage, type CursorPageParams, PagePromise } from '../core/paginati
7
7
  import { RequestOptions } from '../internal/request-options';
8
8
  import { path } from '../internal/utils/path';
9
9
 
10
+ /**
11
+ * Course lessons
12
+ */
10
13
  export class CourseLessons extends APIResource {
11
14
  /**
12
15
  * Create a new lesson within a course chapter. Lessons can contain video, text, or
@@ -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
+ * Course students
11
+ */
9
12
  export class CourseStudents extends APIResource {
10
13
  /**
11
14
  * Retrieves the details of an existing course student.
@@ -7,6 +7,9 @@ import { CursorPage, type CursorPageParams, PagePromise } from '../core/paginati
7
7
  import { RequestOptions } from '../internal/request-options';
8
8
  import { path } from '../internal/utils/path';
9
9
 
10
+ /**
11
+ * Courses
12
+ */
10
13
  export class Courses extends APIResource {
11
14
  /**
12
15
  * Create a new course within an experience, with optional chapters, lessons, and a
@@ -9,6 +9,9 @@ import { CursorPage, type CursorPageParams, PagePromise } from '../core/paginati
9
9
  import { RequestOptions } from '../internal/request-options';
10
10
  import { path } from '../internal/utils/path';
11
11
 
12
+ /**
13
+ * Dispute alerts
14
+ */
12
15
  export class DisputeAlerts extends APIResource {
13
16
  /**
14
17
  * Retrieves the details of an existing dispute alert.
@@ -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
+ * Disputes
13
+ */
11
14
  export class Disputes extends APIResource {
12
15
  /**
13
16
  * Retrieves the details of an existing dispute.
@@ -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
+ * Dm channels
11
+ */
9
12
  export class DmChannels extends APIResource {
10
13
  /**
11
14
  * Create a new DM channel between two or more users, optionally scoped to a
@@ -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
+ * Dm members
11
+ */
9
12
  export class DmMembers extends APIResource {
10
13
  /**
11
14
  * Add a new user to an existing DM channel. Only an admin of the channel can add
@@ -7,6 +7,9 @@ import { CursorPage, type CursorPageParams, PagePromise } from '../core/paginati
7
7
  import { RequestOptions } from '../internal/request-options';
8
8
  import { path } from '../internal/utils/path';
9
9
 
10
+ /**
11
+ * Entries
12
+ */
10
13
  export class Entries extends APIResource {
11
14
  /**
12
15
  * Retrieves the details of an existing waitlist entry.
@@ -7,6 +7,9 @@ import { CursorPage, type CursorPageParams, PagePromise } from '../core/paginati
7
7
  import { RequestOptions } from '../internal/request-options';
8
8
  import { path } from '../internal/utils/path';
9
9
 
10
+ /**
11
+ * Experiences
12
+ */
10
13
  export class Experiences extends APIResource {
11
14
  /**
12
15
  * Required permissions:
@@ -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
+ * Fee markups
11
+ */
9
12
  export class FeeMarkups extends APIResource {
10
13
  /**
11
14
  * Create or update a fee markup for a company. If a markup for the specified fee
@@ -7,6 +7,9 @@ import { path } from '../internal/utils/path';
7
7
  import type { ToFileInput, Uploadable } from '../core/uploads';
8
8
  import { uploadFile } from '../lib/upload-file';
9
9
 
10
+ /**
11
+ * Files
12
+ */
10
13
  export class Files extends APIResource {
11
14
  /**
12
15
  * Create a new file record and receive a presigned URL for uploading content to
@@ -7,6 +7,9 @@ import { CursorPage, type CursorPageParams, PagePromise } from '../core/paginati
7
7
  import { RequestOptions } from '../internal/request-options';
8
8
  import { path } from '../internal/utils/path';
9
9
 
10
+ /**
11
+ * Forum posts
12
+ */
10
13
  export class ForumPosts extends APIResource {
11
14
  /**
12
15
  * Create a new forum post or comment within an experience. Supports text content,
@@ -108,6 +111,11 @@ export interface ForumPostListResponse {
108
111
  */
109
112
  id: string;
110
113
 
114
+ /**
115
+ * All file attachments on this post, such as images, documents, and videos.
116
+ */
117
+ attachments: Array<ForumPostListResponse.Attachment>;
118
+
111
119
  /**
112
120
  * The total number of direct comments on this post.
113
121
  */
@@ -171,6 +179,36 @@ export interface ForumPostListResponse {
171
179
  }
172
180
 
173
181
  export namespace ForumPostListResponse {
182
+ /**
183
+ * Represents an image attachment
184
+ */
185
+ export interface Attachment {
186
+ /**
187
+ * Represents a unique identifier that is Base64 obfuscated. It is often used to
188
+ * refetch an object or as key for a cache. The ID type appears in a JSON response
189
+ * as a String; however, it is not intended to be human-readable. When expected as
190
+ * an input type, any string (such as `"VXNlci0xMA=="`) or integer (such as `4`)
191
+ * input value will be accepted as an ID.
192
+ */
193
+ id: string;
194
+
195
+ /**
196
+ * The MIME type of the uploaded file (e.g., image/jpeg, video/mp4, audio/mpeg).
197
+ */
198
+ content_type: string | null;
199
+
200
+ /**
201
+ * The original filename of the uploaded attachment, including its file extension.
202
+ */
203
+ filename: string | null;
204
+
205
+ /**
206
+ * A pre-optimized URL for rendering this attachment on the client. This should be
207
+ * used for displaying attachments in apps.
208
+ */
209
+ url: string | null;
210
+ }
211
+
174
212
  /**
175
213
  * The user who authored this forum post.
176
214
  */
@@ -251,6 +289,12 @@ export interface ForumPostCreateParams {
251
289
  */
252
290
  poll?: ForumPostCreateParams.Poll | null;
253
291
 
292
+ /**
293
+ * The rich content of the post in Tiptap JSON format. When provided, takes
294
+ * priority over the markdown content field for rendering.
295
+ */
296
+ rich_content?: string | null;
297
+
254
298
  /**
255
299
  * The title of the post, displayed prominently at the top. Required for paywalled
256
300
  * posts as it remains visible to non-purchasers.
@@ -7,6 +7,9 @@ import { CursorPage, type CursorPageParams, PagePromise } from '../core/paginati
7
7
  import { RequestOptions } from '../internal/request-options';
8
8
  import { path } from '../internal/utils/path';
9
9
 
10
+ /**
11
+ * Forums
12
+ */
10
13
  export class Forums extends APIResource {
11
14
  /**
12
15
  * Retrieves the details of an existing forum.
@@ -106,6 +109,12 @@ export namespace ForumListResponse {
106
109
  }
107
110
 
108
111
  export interface ForumUpdateParams {
112
+ /**
113
+ * The banner image displayed at the top of the forum page. Pass null to remove the
114
+ * existing banner.
115
+ */
116
+ banner_image?: ForumUpdateParams.BannerImage | null;
117
+
109
118
  /**
110
119
  * Email notification preference option for a forum feed
111
120
  */
@@ -122,6 +131,19 @@ export interface ForumUpdateParams {
122
131
  who_can_post?: Shared.WhoCanPostTypes | null;
123
132
  }
124
133
 
134
+ export namespace ForumUpdateParams {
135
+ /**
136
+ * The banner image displayed at the top of the forum page. Pass null to remove the
137
+ * existing banner.
138
+ */
139
+ export interface BannerImage {
140
+ /**
141
+ * The ID of an existing file object.
142
+ */
143
+ id: string;
144
+ }
145
+ }
146
+
125
147
  export interface ForumListParams extends CursorPageParams {
126
148
  /**
127
149
  * The unique identifier of the company to list forums for.
@@ -31,9 +31,13 @@ export {
31
31
  } from './apps';
32
32
  export {
33
33
  AuthorizedUsers,
34
+ type AuthorizedUserCreateResponse,
34
35
  type AuthorizedUserRetrieveResponse,
35
36
  type AuthorizedUserListResponse,
37
+ type AuthorizedUserDeleteResponse,
38
+ type AuthorizedUserCreateParams,
36
39
  type AuthorizedUserListParams,
40
+ type AuthorizedUserDeleteParams,
37
41
  type AuthorizedUserListResponsesCursorPage,
38
42
  } from './authorized-users';
39
43
  export {
@@ -53,6 +57,7 @@ export {
53
57
  } from './checkout-configurations';
54
58
  export {
55
59
  Companies,
60
+ type SocialLinkWebsites,
56
61
  type CompanyListResponse,
57
62
  type CompanyCreateParams,
58
63
  type CompanyUpdateParams,
@@ -239,6 +244,7 @@ export {
239
244
  type MembershipListResponse,
240
245
  type MembershipUpdateParams,
241
246
  type MembershipListParams,
247
+ type MembershipAddFreeDaysParams,
242
248
  type MembershipCancelParams,
243
249
  type MembershipPauseParams,
244
250
  type MembershipListResponsesCursorPage,
@@ -270,6 +276,7 @@ export {
270
276
  type BillingReasons,
271
277
  type CardBrands,
272
278
  type PaymentMethodTypes,
279
+ type ReceiptTaxBehavior,
273
280
  type PaymentListResponse,
274
281
  type PaymentListFeesResponse,
275
282
  type PaymentCreateParams,
@@ -298,7 +305,6 @@ export {
298
305
  } from './plans';
299
306
  export {
300
307
  Products,
301
- type IndustryGroups,
302
308
  type ProductDeleteResponse,
303
309
  type ProductCreateParams,
304
310
  type ProductUpdateParams,