@whop/sdk 0.0.27 → 0.0.28

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 (459) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/client.d.mts +4 -4
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +4 -4
  5. package/client.d.ts.map +1 -1
  6. package/client.js +7 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +7 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/access-tokens.d.mts +19 -20
  12. package/resources/access-tokens.d.mts.map +1 -1
  13. package/resources/access-tokens.d.ts +19 -20
  14. package/resources/access-tokens.d.ts.map +1 -1
  15. package/resources/access-tokens.js +4 -4
  16. package/resources/access-tokens.mjs +4 -4
  17. package/resources/account-links.d.mts +15 -13
  18. package/resources/account-links.d.mts.map +1 -1
  19. package/resources/account-links.d.ts +15 -13
  20. package/resources/account-links.d.ts.map +1 -1
  21. package/resources/account-links.js +2 -3
  22. package/resources/account-links.js.map +1 -1
  23. package/resources/account-links.mjs +2 -3
  24. package/resources/account-links.mjs.map +1 -1
  25. package/resources/ai-chats.d.mts +38 -26
  26. package/resources/ai-chats.d.mts.map +1 -1
  27. package/resources/ai-chats.d.ts +38 -26
  28. package/resources/ai-chats.d.ts.map +1 -1
  29. package/resources/ai-chats.js +5 -5
  30. package/resources/ai-chats.mjs +5 -5
  31. package/resources/app-builds.d.mts +35 -33
  32. package/resources/app-builds.d.mts.map +1 -1
  33. package/resources/app-builds.d.ts +35 -33
  34. package/resources/app-builds.d.ts.map +1 -1
  35. package/resources/app-builds.js +7 -4
  36. package/resources/app-builds.js.map +1 -1
  37. package/resources/app-builds.mjs +7 -4
  38. package/resources/app-builds.mjs.map +1 -1
  39. package/resources/apps.d.mts +81 -56
  40. package/resources/apps.d.mts.map +1 -1
  41. package/resources/apps.d.ts +81 -56
  42. package/resources/apps.d.ts.map +1 -1
  43. package/resources/apps.js +7 -4
  44. package/resources/apps.js.map +1 -1
  45. package/resources/apps.mjs +7 -4
  46. package/resources/apps.mjs.map +1 -1
  47. package/resources/authorized-users.d.mts +32 -26
  48. package/resources/authorized-users.d.mts.map +1 -1
  49. package/resources/authorized-users.d.ts +32 -26
  50. package/resources/authorized-users.d.ts.map +1 -1
  51. package/resources/authorized-users.js +3 -2
  52. package/resources/authorized-users.js.map +1 -1
  53. package/resources/authorized-users.mjs +3 -2
  54. package/resources/authorized-users.mjs.map +1 -1
  55. package/resources/chat-channels.d.mts +27 -19
  56. package/resources/chat-channels.d.mts.map +1 -1
  57. package/resources/chat-channels.d.ts +27 -19
  58. package/resources/chat-channels.d.ts.map +1 -1
  59. package/resources/chat-channels.js +5 -3
  60. package/resources/chat-channels.js.map +1 -1
  61. package/resources/chat-channels.mjs +5 -3
  62. package/resources/chat-channels.mjs.map +1 -1
  63. package/resources/checkout-configurations.d.mts +55 -46
  64. package/resources/checkout-configurations.d.mts.map +1 -1
  65. package/resources/checkout-configurations.d.ts +55 -46
  66. package/resources/checkout-configurations.d.ts.map +1 -1
  67. package/resources/checkout-configurations.js +3 -2
  68. package/resources/checkout-configurations.js.map +1 -1
  69. package/resources/checkout-configurations.mjs +3 -2
  70. package/resources/checkout-configurations.mjs.map +1 -1
  71. package/resources/companies.d.mts +65 -46
  72. package/resources/companies.d.mts.map +1 -1
  73. package/resources/companies.d.ts +65 -46
  74. package/resources/companies.d.ts.map +1 -1
  75. package/resources/companies.js +7 -8
  76. package/resources/companies.js.map +1 -1
  77. package/resources/companies.mjs +7 -8
  78. package/resources/companies.mjs.map +1 -1
  79. package/resources/company-token-transactions.d.mts +80 -57
  80. package/resources/company-token-transactions.d.mts.map +1 -1
  81. package/resources/company-token-transactions.d.ts +80 -57
  82. package/resources/company-token-transactions.d.ts.map +1 -1
  83. package/resources/company-token-transactions.js +6 -3
  84. package/resources/company-token-transactions.js.map +1 -1
  85. package/resources/company-token-transactions.mjs +6 -3
  86. package/resources/company-token-transactions.mjs.map +1 -1
  87. package/resources/course-chapters.d.mts +24 -19
  88. package/resources/course-chapters.d.mts.map +1 -1
  89. package/resources/course-chapters.d.ts +24 -19
  90. package/resources/course-chapters.d.ts.map +1 -1
  91. package/resources/course-chapters.js +5 -5
  92. package/resources/course-chapters.mjs +5 -5
  93. package/resources/course-lesson-interactions.d.mts +7 -6
  94. package/resources/course-lesson-interactions.d.mts.map +1 -1
  95. package/resources/course-lesson-interactions.d.ts +7 -6
  96. package/resources/course-lesson-interactions.d.ts.map +1 -1
  97. package/resources/course-lesson-interactions.js +3 -2
  98. package/resources/course-lesson-interactions.js.map +1 -1
  99. package/resources/course-lesson-interactions.mjs +3 -2
  100. package/resources/course-lesson-interactions.mjs.map +1 -1
  101. package/resources/course-lessons.d.mts +126 -84
  102. package/resources/course-lessons.d.mts.map +1 -1
  103. package/resources/course-lessons.d.ts +126 -84
  104. package/resources/course-lessons.d.ts.map +1 -1
  105. package/resources/course-lessons.js +12 -8
  106. package/resources/course-lessons.js.map +1 -1
  107. package/resources/course-lessons.mjs +12 -8
  108. package/resources/course-lessons.mjs.map +1 -1
  109. package/resources/course-students.d.mts +38 -29
  110. package/resources/course-students.d.mts.map +1 -1
  111. package/resources/course-students.d.ts +38 -29
  112. package/resources/course-students.d.ts.map +1 -1
  113. package/resources/course-students.js +3 -2
  114. package/resources/course-students.js.map +1 -1
  115. package/resources/course-students.mjs +3 -2
  116. package/resources/course-students.mjs.map +1 -1
  117. package/resources/courses.d.mts +132 -91
  118. package/resources/courses.d.mts.map +1 -1
  119. package/resources/courses.d.ts +132 -91
  120. package/resources/courses.d.ts.map +1 -1
  121. package/resources/courses.js +9 -5
  122. package/resources/courses.js.map +1 -1
  123. package/resources/courses.mjs +9 -5
  124. package/resources/courses.mjs.map +1 -1
  125. package/resources/disputes.d.mts +156 -102
  126. package/resources/disputes.d.mts.map +1 -1
  127. package/resources/disputes.d.ts +156 -102
  128. package/resources/disputes.d.ts.map +1 -1
  129. package/resources/disputes.js +4 -2
  130. package/resources/disputes.js.map +1 -1
  131. package/resources/disputes.mjs +4 -2
  132. package/resources/disputes.mjs.map +1 -1
  133. package/resources/dm-channels.d.mts +29 -16
  134. package/resources/dm-channels.d.mts.map +1 -1
  135. package/resources/dm-channels.d.ts +29 -16
  136. package/resources/dm-channels.d.ts.map +1 -1
  137. package/resources/dm-channels.js +9 -5
  138. package/resources/dm-channels.js.map +1 -1
  139. package/resources/dm-channels.mjs +9 -5
  140. package/resources/dm-channels.mjs.map +1 -1
  141. package/resources/dm-members.d.mts +30 -21
  142. package/resources/dm-members.d.mts.map +1 -1
  143. package/resources/dm-members.d.ts +30 -21
  144. package/resources/dm-members.d.ts.map +1 -1
  145. package/resources/dm-members.js +9 -5
  146. package/resources/dm-members.js.map +1 -1
  147. package/resources/dm-members.mjs +9 -5
  148. package/resources/dm-members.mjs.map +1 -1
  149. package/resources/entries.d.mts +29 -21
  150. package/resources/entries.d.mts.map +1 -1
  151. package/resources/entries.d.ts +29 -21
  152. package/resources/entries.d.ts.map +1 -1
  153. package/resources/entries.js +7 -4
  154. package/resources/entries.js.map +1 -1
  155. package/resources/entries.mjs +7 -4
  156. package/resources/entries.mjs.map +1 -1
  157. package/resources/experiences.d.mts +53 -45
  158. package/resources/experiences.d.mts.map +1 -1
  159. package/resources/experiences.d.ts +53 -45
  160. package/resources/experiences.d.ts.map +1 -1
  161. package/resources/experiences.js +6 -5
  162. package/resources/experiences.js.map +1 -1
  163. package/resources/experiences.mjs +6 -5
  164. package/resources/experiences.mjs.map +1 -1
  165. package/resources/fee-markups.d.mts +32 -21
  166. package/resources/fee-markups.d.mts.map +1 -1
  167. package/resources/fee-markups.d.ts +32 -21
  168. package/resources/fee-markups.d.ts.map +1 -1
  169. package/resources/fee-markups.js +6 -3
  170. package/resources/fee-markups.js.map +1 -1
  171. package/resources/fee-markups.mjs +6 -3
  172. package/resources/fee-markups.mjs.map +1 -1
  173. package/resources/files.d.mts +21 -17
  174. package/resources/files.d.mts.map +1 -1
  175. package/resources/files.d.ts +21 -17
  176. package/resources/files.d.ts.map +1 -1
  177. package/resources/files.js +3 -2
  178. package/resources/files.js.map +1 -1
  179. package/resources/files.mjs +3 -2
  180. package/resources/files.mjs.map +1 -1
  181. package/resources/forum-posts.d.mts +62 -43
  182. package/resources/forum-posts.d.mts.map +1 -1
  183. package/resources/forum-posts.d.ts +62 -43
  184. package/resources/forum-posts.d.ts.map +1 -1
  185. package/resources/forum-posts.js +8 -4
  186. package/resources/forum-posts.js.map +1 -1
  187. package/resources/forum-posts.mjs +8 -4
  188. package/resources/forum-posts.mjs.map +1 -1
  189. package/resources/forums.d.mts +20 -12
  190. package/resources/forums.d.mts.map +1 -1
  191. package/resources/forums.d.ts +20 -12
  192. package/resources/forums.d.ts.map +1 -1
  193. package/resources/forums.js +5 -3
  194. package/resources/forums.js.map +1 -1
  195. package/resources/forums.mjs +5 -3
  196. package/resources/forums.mjs.map +1 -1
  197. package/resources/index.d.mts +2 -2
  198. package/resources/index.d.mts.map +1 -1
  199. package/resources/index.d.ts +2 -2
  200. package/resources/index.d.ts.map +1 -1
  201. package/resources/index.js.map +1 -1
  202. package/resources/index.mjs.map +1 -1
  203. package/resources/invoices.d.mts +108 -80
  204. package/resources/invoices.d.mts.map +1 -1
  205. package/resources/invoices.d.ts +108 -80
  206. package/resources/invoices.d.ts.map +1 -1
  207. package/resources/invoices.js +7 -4
  208. package/resources/invoices.js.map +1 -1
  209. package/resources/invoices.mjs +7 -4
  210. package/resources/invoices.mjs.map +1 -1
  211. package/resources/leads.d.mts +64 -42
  212. package/resources/leads.d.mts.map +1 -1
  213. package/resources/leads.d.ts +64 -42
  214. package/resources/leads.d.ts.map +1 -1
  215. package/resources/leads.js +6 -4
  216. package/resources/leads.js.map +1 -1
  217. package/resources/leads.mjs +6 -4
  218. package/resources/leads.mjs.map +1 -1
  219. package/resources/ledger-accounts.d.mts +10 -8
  220. package/resources/ledger-accounts.d.mts.map +1 -1
  221. package/resources/ledger-accounts.d.ts +10 -8
  222. package/resources/ledger-accounts.d.ts.map +1 -1
  223. package/resources/ledger-accounts.js +1 -1
  224. package/resources/ledger-accounts.mjs +1 -1
  225. package/resources/members.d.mts +18 -19
  226. package/resources/members.d.mts.map +1 -1
  227. package/resources/members.d.ts +18 -19
  228. package/resources/members.d.ts.map +1 -1
  229. package/resources/members.js +3 -2
  230. package/resources/members.js.map +1 -1
  231. package/resources/members.mjs +3 -2
  232. package/resources/members.mjs.map +1 -1
  233. package/resources/memberships.d.mts +69 -51
  234. package/resources/memberships.d.mts.map +1 -1
  235. package/resources/memberships.d.ts +69 -51
  236. package/resources/memberships.d.ts.map +1 -1
  237. package/resources/memberships.js +12 -8
  238. package/resources/memberships.js.map +1 -1
  239. package/resources/memberships.mjs +12 -8
  240. package/resources/memberships.mjs.map +1 -1
  241. package/resources/messages.d.mts +46 -32
  242. package/resources/messages.d.mts.map +1 -1
  243. package/resources/messages.d.ts +46 -32
  244. package/resources/messages.d.ts.map +1 -1
  245. package/resources/messages.js +9 -5
  246. package/resources/messages.js.map +1 -1
  247. package/resources/messages.mjs +9 -5
  248. package/resources/messages.mjs.map +1 -1
  249. package/resources/notifications.d.mts +33 -25
  250. package/resources/notifications.d.mts.map +1 -1
  251. package/resources/notifications.d.ts +33 -25
  252. package/resources/notifications.d.ts.map +1 -1
  253. package/resources/notifications.js +2 -1
  254. package/resources/notifications.js.map +1 -1
  255. package/resources/notifications.mjs +2 -1
  256. package/resources/notifications.mjs.map +1 -1
  257. package/resources/payment-methods.d.mts +212 -114
  258. package/resources/payment-methods.d.mts.map +1 -1
  259. package/resources/payment-methods.d.ts +212 -114
  260. package/resources/payment-methods.d.ts.map +1 -1
  261. package/resources/payment-methods.js +5 -10
  262. package/resources/payment-methods.js.map +1 -1
  263. package/resources/payment-methods.mjs +5 -10
  264. package/resources/payment-methods.mjs.map +1 -1
  265. package/resources/payments.d.mts +73 -40
  266. package/resources/payments.d.mts.map +1 -1
  267. package/resources/payments.d.ts +73 -40
  268. package/resources/payments.d.ts.map +1 -1
  269. package/resources/payments.js +23 -10
  270. package/resources/payments.js.map +1 -1
  271. package/resources/payments.mjs +23 -10
  272. package/resources/payments.mjs.map +1 -1
  273. package/resources/payout-methods.d.mts +44 -29
  274. package/resources/payout-methods.d.mts.map +1 -1
  275. package/resources/payout-methods.d.ts +44 -29
  276. package/resources/payout-methods.d.ts.map +1 -1
  277. package/resources/payout-methods.js +3 -2
  278. package/resources/payout-methods.js.map +1 -1
  279. package/resources/payout-methods.mjs +3 -2
  280. package/resources/payout-methods.mjs.map +1 -1
  281. package/resources/plans.d.mts +121 -90
  282. package/resources/plans.d.mts.map +1 -1
  283. package/resources/plans.d.ts +121 -90
  284. package/resources/plans.d.ts.map +1 -1
  285. package/resources/plans.js +9 -5
  286. package/resources/plans.js.map +1 -1
  287. package/resources/plans.mjs +9 -5
  288. package/resources/plans.mjs.map +1 -1
  289. package/resources/products.d.mts +76 -65
  290. package/resources/products.d.mts.map +1 -1
  291. package/resources/products.d.ts +76 -65
  292. package/resources/products.d.ts.map +1 -1
  293. package/resources/products.js +7 -5
  294. package/resources/products.js.map +1 -1
  295. package/resources/products.mjs +7 -5
  296. package/resources/products.mjs.map +1 -1
  297. package/resources/promo-codes.d.mts +41 -31
  298. package/resources/promo-codes.d.mts.map +1 -1
  299. package/resources/promo-codes.d.ts +41 -31
  300. package/resources/promo-codes.d.ts.map +1 -1
  301. package/resources/promo-codes.js +7 -4
  302. package/resources/promo-codes.js.map +1 -1
  303. package/resources/promo-codes.mjs +7 -4
  304. package/resources/promo-codes.mjs.map +1 -1
  305. package/resources/reactions.d.mts +24 -18
  306. package/resources/reactions.d.mts.map +1 -1
  307. package/resources/reactions.d.ts +24 -18
  308. package/resources/reactions.d.ts.map +1 -1
  309. package/resources/reactions.js +7 -4
  310. package/resources/reactions.js.map +1 -1
  311. package/resources/reactions.mjs +7 -4
  312. package/resources/reactions.mjs.map +1 -1
  313. package/resources/refunds.d.mts +43 -29
  314. package/resources/refunds.d.mts.map +1 -1
  315. package/resources/refunds.d.ts +43 -29
  316. package/resources/refunds.d.ts.map +1 -1
  317. package/resources/refunds.js +3 -2
  318. package/resources/refunds.js.map +1 -1
  319. package/resources/refunds.mjs +3 -2
  320. package/resources/refunds.mjs.map +1 -1
  321. package/resources/reviews.d.mts +66 -50
  322. package/resources/reviews.d.mts.map +1 -1
  323. package/resources/reviews.d.ts +66 -50
  324. package/resources/reviews.d.ts.map +1 -1
  325. package/resources/reviews.js +3 -2
  326. package/resources/reviews.js.map +1 -1
  327. package/resources/reviews.mjs +3 -2
  328. package/resources/reviews.mjs.map +1 -1
  329. package/resources/setup-intents.d.mts +61 -43
  330. package/resources/setup-intents.d.mts.map +1 -1
  331. package/resources/setup-intents.d.ts +61 -43
  332. package/resources/setup-intents.d.ts.map +1 -1
  333. package/resources/setup-intents.js +4 -10
  334. package/resources/setup-intents.js.map +1 -1
  335. package/resources/setup-intents.mjs +4 -10
  336. package/resources/setup-intents.mjs.map +1 -1
  337. package/resources/shared.d.mts +695 -388
  338. package/resources/shared.d.mts.map +1 -1
  339. package/resources/shared.d.ts +695 -388
  340. package/resources/shared.d.ts.map +1 -1
  341. package/resources/shipments.d.mts +26 -17
  342. package/resources/shipments.d.mts.map +1 -1
  343. package/resources/shipments.d.ts +26 -17
  344. package/resources/shipments.d.ts.map +1 -1
  345. package/resources/shipments.js +5 -3
  346. package/resources/shipments.js.map +1 -1
  347. package/resources/shipments.mjs +5 -3
  348. package/resources/shipments.mjs.map +1 -1
  349. package/resources/support-channels.d.mts +27 -19
  350. package/resources/support-channels.d.mts.map +1 -1
  351. package/resources/support-channels.d.ts +27 -19
  352. package/resources/support-channels.d.ts.map +1 -1
  353. package/resources/support-channels.js +5 -4
  354. package/resources/support-channels.js.map +1 -1
  355. package/resources/support-channels.mjs +5 -4
  356. package/resources/support-channels.mjs.map +1 -1
  357. package/resources/topups.d.mts +11 -9
  358. package/resources/topups.d.mts.map +1 -1
  359. package/resources/topups.d.ts +11 -9
  360. package/resources/topups.d.ts.map +1 -1
  361. package/resources/topups.js +2 -1
  362. package/resources/topups.js.map +1 -1
  363. package/resources/topups.mjs +2 -1
  364. package/resources/topups.mjs.map +1 -1
  365. package/resources/transfers.d.mts +35 -29
  366. package/resources/transfers.d.mts.map +1 -1
  367. package/resources/transfers.d.ts +35 -29
  368. package/resources/transfers.d.ts.map +1 -1
  369. package/resources/transfers.js +5 -3
  370. package/resources/transfers.js.map +1 -1
  371. package/resources/transfers.mjs +5 -3
  372. package/resources/transfers.mjs.map +1 -1
  373. package/resources/users.d.mts +20 -16
  374. package/resources/users.d.mts.map +1 -1
  375. package/resources/users.d.ts +20 -16
  376. package/resources/users.d.ts.map +1 -1
  377. package/resources/users.js +4 -3
  378. package/resources/users.js.map +1 -1
  379. package/resources/users.mjs +4 -3
  380. package/resources/users.mjs.map +1 -1
  381. package/resources/verifications.d.mts +6 -4
  382. package/resources/verifications.d.mts.map +1 -1
  383. package/resources/verifications.d.ts +6 -4
  384. package/resources/verifications.d.ts.map +1 -1
  385. package/resources/verifications.js +1 -1
  386. package/resources/verifications.mjs +1 -1
  387. package/resources/webhooks.d.mts +136 -95
  388. package/resources/webhooks.d.mts.map +1 -1
  389. package/resources/webhooks.d.ts +136 -95
  390. package/resources/webhooks.d.ts.map +1 -1
  391. package/resources/webhooks.js +3 -2
  392. package/resources/webhooks.js.map +1 -1
  393. package/resources/webhooks.mjs +3 -2
  394. package/resources/webhooks.mjs.map +1 -1
  395. package/resources/withdrawals.d.mts +53 -44
  396. package/resources/withdrawals.d.mts.map +1 -1
  397. package/resources/withdrawals.d.ts +53 -44
  398. package/resources/withdrawals.d.ts.map +1 -1
  399. package/resources/withdrawals.js +3 -2
  400. package/resources/withdrawals.js.map +1 -1
  401. package/resources/withdrawals.mjs +3 -2
  402. package/resources/withdrawals.mjs.map +1 -1
  403. package/src/client.ts +13 -3
  404. package/src/resources/access-tokens.ts +19 -20
  405. package/src/resources/account-links.ts +15 -13
  406. package/src/resources/ai-chats.ts +39 -26
  407. package/src/resources/app-builds.ts +35 -33
  408. package/src/resources/apps.ts +84 -56
  409. package/src/resources/authorized-users.ts +32 -26
  410. package/src/resources/chat-channels.ts +27 -19
  411. package/src/resources/checkout-configurations.ts +56 -46
  412. package/src/resources/companies.ts +68 -46
  413. package/src/resources/company-token-transactions.ts +81 -58
  414. package/src/resources/course-chapters.ts +24 -19
  415. package/src/resources/course-lesson-interactions.ts +7 -6
  416. package/src/resources/course-lessons.ts +126 -84
  417. package/src/resources/course-students.ts +38 -29
  418. package/src/resources/courses.ts +132 -91
  419. package/src/resources/disputes.ts +156 -102
  420. package/src/resources/dm-channels.ts +29 -16
  421. package/src/resources/dm-members.ts +30 -21
  422. package/src/resources/entries.ts +29 -21
  423. package/src/resources/experiences.ts +53 -45
  424. package/src/resources/fee-markups.ts +32 -21
  425. package/src/resources/files.ts +21 -17
  426. package/src/resources/forum-posts.ts +63 -43
  427. package/src/resources/forums.ts +20 -12
  428. package/src/resources/index.ts +2 -1
  429. package/src/resources/invoices.ts +112 -80
  430. package/src/resources/leads.ts +64 -42
  431. package/src/resources/ledger-accounts.ts +10 -8
  432. package/src/resources/members.ts +18 -19
  433. package/src/resources/memberships.ts +69 -51
  434. package/src/resources/messages.ts +46 -32
  435. package/src/resources/notifications.ts +33 -25
  436. package/src/resources/payment-methods.ts +212 -114
  437. package/src/resources/payments.ts +77 -39
  438. package/src/resources/payout-methods.ts +44 -29
  439. package/src/resources/plans.ts +121 -90
  440. package/src/resources/products.ts +215 -68
  441. package/src/resources/promo-codes.ts +41 -31
  442. package/src/resources/reactions.ts +24 -18
  443. package/src/resources/refunds.ts +44 -29
  444. package/src/resources/reviews.ts +66 -50
  445. package/src/resources/setup-intents.ts +61 -43
  446. package/src/resources/shared.ts +2637 -387
  447. package/src/resources/shipments.ts +26 -17
  448. package/src/resources/support-channels.ts +27 -19
  449. package/src/resources/topups.ts +11 -9
  450. package/src/resources/transfers.ts +35 -29
  451. package/src/resources/users.ts +20 -16
  452. package/src/resources/verifications.ts +6 -4
  453. package/src/resources/webhooks.ts +136 -95
  454. package/src/resources/withdrawals.ts +53 -43
  455. package/src/version.ts +1 -1
  456. package/version.d.mts +1 -1
  457. package/version.d.ts +1 -1
  458. package/version.js +1 -1
  459. package/version.mjs +1 -1
@@ -27,7 +27,7 @@ export declare class Webhooks extends APIResource {
27
27
  */
28
28
  create(body: WebhookCreateParams, options?: RequestOptions): APIPromise<WebhookCreateResponse>;
29
29
  /**
30
- * Retrieves a webhook by ID
30
+ * Retrieves the details of an existing webhook.
31
31
  *
32
32
  * Required permissions:
33
33
  *
@@ -57,7 +57,8 @@ export declare class Webhooks extends APIResource {
57
57
  */
58
58
  update(id: string, body?: WebhookUpdateParams | null | undefined, options?: RequestOptions): APIPromise<Webhook>;
59
59
  /**
60
- * Lists webhooks for a company
60
+ * Returns a paginated list of webhook endpoints configured for a company, ordered
61
+ * by most recently created.
61
62
  *
62
63
  * Required permissions:
63
64
  *
@@ -109,13 +110,13 @@ export interface Webhook {
109
110
  */
110
111
  id: string;
111
112
  /**
112
- * The API version for this webhook
113
+ * The API version used to format payloads sent to this webhook endpoint.
113
114
  */
114
115
  api_version: APIVersion;
115
116
  /**
116
- * Whether or not to send events for child resources. For example, if the webhook
117
- * is created for a Company, enabling this will only send events from the Company's
118
- * sub-merchants (child companies).
117
+ * Whether events are sent for child resources. For example, if the webhook is on a
118
+ * company, enabling this sends events only from the company's sub-merchants (child
119
+ * companies).
119
120
  */
120
121
  child_resource_events: boolean;
121
122
  /**
@@ -123,23 +124,23 @@ export interface Webhook {
123
124
  */
124
125
  created_at: string;
125
126
  /**
126
- * Whether or not this webhook is turned on or not
127
+ * Whether this webhook endpoint is currently active and receiving events.
127
128
  */
128
129
  enabled: boolean;
129
130
  /**
130
- * The number of events this webhooks is configured to receive
131
+ * The list of event types this webhook is subscribed to.
131
132
  */
132
133
  events: Array<WebhookEvent>;
133
134
  /**
134
- * The resource ID
135
+ * The ID of the resource (company or product) this webhook is attached to.
135
136
  */
136
137
  resource_id: string;
137
138
  /**
138
- * The list of events that can be tested with this webhook
139
+ * The subset of subscribed event types that support sending test payloads.
139
140
  */
140
141
  testable_events: Array<WebhookEvent>;
141
142
  /**
142
- * The URL the webhook events will be sent to
143
+ * The destination URL where webhook payloads are delivered via HTTP POST.
143
144
  */
144
145
  url: string;
145
146
  }
@@ -157,13 +158,13 @@ export interface WebhookCreateResponse {
157
158
  */
158
159
  id: string;
159
160
  /**
160
- * The API version for this webhook
161
+ * The API version used to format payloads sent to this webhook endpoint.
161
162
  */
162
163
  api_version: APIVersion;
163
164
  /**
164
- * Whether or not to send events for child resources. For example, if the webhook
165
- * is created for a Company, enabling this will only send events from the Company's
166
- * sub-merchants (child companies).
165
+ * Whether events are sent for child resources. For example, if the webhook is on a
166
+ * company, enabling this sends events only from the company's sub-merchants (child
167
+ * companies).
167
168
  */
168
169
  child_resource_events: boolean;
169
170
  /**
@@ -171,27 +172,28 @@ export interface WebhookCreateResponse {
171
172
  */
172
173
  created_at: string;
173
174
  /**
174
- * Whether or not this webhook is turned on or not
175
+ * Whether this webhook endpoint is currently active and receiving events.
175
176
  */
176
177
  enabled: boolean;
177
178
  /**
178
- * The number of events this webhooks is configured to receive
179
+ * The list of event types this webhook is subscribed to.
179
180
  */
180
181
  events: Array<WebhookEvent>;
181
182
  /**
182
- * The resource ID
183
+ * The ID of the resource (company or product) this webhook is attached to.
183
184
  */
184
185
  resource_id: string;
185
186
  /**
186
- * The list of events that can be tested with this webhook
187
+ * The subset of subscribed event types that support sending test payloads.
187
188
  */
188
189
  testable_events: Array<WebhookEvent>;
189
190
  /**
190
- * The URL the webhook events will be sent to
191
+ * The destination URL where webhook payloads are delivered via HTTP POST.
191
192
  */
192
193
  url: string;
193
194
  /**
194
- * A unique secret key that will be sent with each webhook event
195
+ * The secret key used to sign webhook payloads for verification. Include this in
196
+ * your HMAC validation logic.
195
197
  */
196
198
  webhook_secret: string;
197
199
  }
@@ -205,13 +207,13 @@ export interface WebhookListResponse {
205
207
  */
206
208
  id: string;
207
209
  /**
208
- * The API version for this webhook
210
+ * The API version used to format payloads sent to this webhook endpoint.
209
211
  */
210
212
  api_version: APIVersion;
211
213
  /**
212
- * Whether or not to send events for child resources. For example, if the webhook
213
- * is created for a Company, enabling this will only send events from the Company's
214
- * sub-merchants (child companies).
214
+ * Whether events are sent for child resources. For example, if the webhook is on a
215
+ * company, enabling this sends events only from the company's sub-merchants (child
216
+ * companies).
215
217
  */
216
218
  child_resource_events: boolean;
217
219
  /**
@@ -219,15 +221,15 @@ export interface WebhookListResponse {
219
221
  */
220
222
  created_at: string;
221
223
  /**
222
- * Whether or not this webhook is turned on or not
224
+ * Whether this webhook endpoint is currently active and receiving events.
223
225
  */
224
226
  enabled: boolean;
225
227
  /**
226
- * The number of events this webhooks is configured to receive
228
+ * The list of event types this webhook is subscribed to.
227
229
  */
228
230
  events: Array<WebhookEvent>;
229
231
  /**
230
- * The URL the webhook events will be sent to
232
+ * The destination URL where webhook payloads are delivered via HTTP POST.
231
233
  */
232
234
  url: string;
233
235
  }
@@ -245,7 +247,9 @@ export interface InvoiceCreatedWebhookEvent {
245
247
  */
246
248
  api_version: 'v1';
247
249
  /**
248
- * A statement that defines an amount due by a customer.
250
+ * An invoice represents an itemized bill sent by a company to a customer for a
251
+ * specific product and plan, tracking the amount owed, due date, and payment
252
+ * status.
249
253
  */
250
254
  data: Shared.Invoice;
251
255
  /**
@@ -271,7 +275,9 @@ export interface InvoicePaidWebhookEvent {
271
275
  */
272
276
  api_version: 'v1';
273
277
  /**
274
- * A statement that defines an amount due by a customer.
278
+ * An invoice represents an itemized bill sent by a company to a customer for a
279
+ * specific product and plan, tracking the amount owed, due date, and payment
280
+ * status.
275
281
  */
276
282
  data: Shared.Invoice;
277
283
  /**
@@ -297,7 +303,9 @@ export interface InvoicePastDueWebhookEvent {
297
303
  */
298
304
  api_version: 'v1';
299
305
  /**
300
- * A statement that defines an amount due by a customer.
306
+ * An invoice represents an itemized bill sent by a company to a customer for a
307
+ * specific product and plan, tracking the amount owed, due date, and payment
308
+ * status.
301
309
  */
302
310
  data: Shared.Invoice;
303
311
  /**
@@ -323,7 +331,9 @@ export interface InvoiceVoidedWebhookEvent {
323
331
  */
324
332
  api_version: 'v1';
325
333
  /**
326
- * A statement that defines an amount due by a customer.
334
+ * An invoice represents an itemized bill sent by a company to a customer for a
335
+ * specific product and plan, tracking the amount owed, due date, and payment
336
+ * status.
327
337
  */
328
338
  data: Shared.Invoice;
329
339
  /**
@@ -507,7 +517,8 @@ export interface SetupIntentRequiresActionWebhookEvent {
507
517
  */
508
518
  api_version: 'v1';
509
519
  /**
510
- * A setup intent allows a user to save a payment method without making a purchase.
520
+ * A setup intent allows a user to save a payment method for future use without
521
+ * making an immediate purchase.
511
522
  */
512
523
  data: SetupIntentsAPI.SetupIntent;
513
524
  /**
@@ -533,7 +544,8 @@ export interface SetupIntentSucceededWebhookEvent {
533
544
  */
534
545
  api_version: 'v1';
535
546
  /**
536
- * A setup intent allows a user to save a payment method without making a purchase.
547
+ * A setup intent allows a user to save a payment method for future use without
548
+ * making an immediate purchase.
537
549
  */
538
550
  data: SetupIntentsAPI.SetupIntent;
539
551
  /**
@@ -559,7 +571,8 @@ export interface SetupIntentCanceledWebhookEvent {
559
571
  */
560
572
  api_version: 'v1';
561
573
  /**
562
- * A setup intent allows a user to save a payment method without making a purchase.
574
+ * A setup intent allows a user to save a payment method for future use without
575
+ * making an immediate purchase.
563
576
  */
564
577
  data: SetupIntentsAPI.SetupIntent;
565
578
  /**
@@ -585,8 +598,8 @@ export interface WithdrawalCreatedWebhookEvent {
585
598
  */
586
599
  api_version: 'v1';
587
600
  /**
588
- * A withdrawal represents a request to transfer funds from a company's ledger
589
- * account to an external payout method.
601
+ * A withdrawal represents a request to transfer funds from a ledger account to an
602
+ * external payout method.
590
603
  */
591
604
  data: WithdrawalsAPI.Withdrawal;
592
605
  /**
@@ -612,8 +625,8 @@ export interface WithdrawalUpdatedWebhookEvent {
612
625
  */
613
626
  api_version: 'v1';
614
627
  /**
615
- * A withdrawal represents a request to transfer funds from a company's ledger
616
- * account to an external payout method.
628
+ * A withdrawal represents a request to transfer funds from a ledger account to an
629
+ * external payout method.
617
630
  */
618
631
  data: WithdrawalsAPI.Withdrawal;
619
632
  /**
@@ -639,7 +652,8 @@ export interface CourseLessonInteractionCompletedWebhookEvent {
639
652
  */
640
653
  api_version: 'v1';
641
654
  /**
642
- * A lesson interaction tracking user progress in courses
655
+ * A record of a user's progress on a specific lesson, tracking whether they have
656
+ * completed it.
643
657
  */
644
658
  data: Shared.CourseLessonInteraction;
645
659
  /**
@@ -665,7 +679,8 @@ export interface PayoutMethodCreatedWebhookEvent {
665
679
  */
666
680
  api_version: 'v1';
667
681
  /**
668
- * An object representing an user's setup payout destination.
682
+ * A configured payout destination where a user receives earned funds, such as a
683
+ * bank account or digital wallet.
669
684
  */
670
685
  data: PayoutMethodCreatedWebhookEvent.Data;
671
686
  /**
@@ -683,7 +698,8 @@ export interface PayoutMethodCreatedWebhookEvent {
683
698
  }
684
699
  export declare namespace PayoutMethodCreatedWebhookEvent {
685
700
  /**
686
- * An object representing an user's setup payout destination.
701
+ * A configured payout destination where a user receives earned funds, such as a
702
+ * bank account or digital wallet.
687
703
  */
688
704
  interface Data {
689
705
  /**
@@ -691,12 +707,13 @@ export declare namespace PayoutMethodCreatedWebhookEvent {
691
707
  */
692
708
  id: string;
693
709
  /**
694
- * A reference to identify the payout destination, such as the last 4 digits of an
695
- * account number or an email address.
710
+ * A masked identifier for the payout destination, such as the last four digits of
711
+ * a bank account or an email address. Null if no reference is available.
696
712
  */
697
713
  account_reference: string | null;
698
714
  /**
699
- * The company associated with the payout token
715
+ * The company associated with this payout destination. Null if not linked to a
716
+ * specific company.
700
717
  */
701
718
  company: Data.Company | null;
702
719
  /**
@@ -704,31 +721,35 @@ export declare namespace PayoutMethodCreatedWebhookEvent {
704
721
  */
705
722
  created_at: string;
706
723
  /**
707
- * The currency code of the payout destination. This is the currency that payouts
708
- * will be made in for this token.
724
+ * The three-letter ISO currency code that payouts are delivered in for this
725
+ * destination.
709
726
  */
710
727
  currency: string;
711
728
  /**
712
- * The payout destination associated with the payout token
729
+ * The payout destination configuration linked to this token. Null if not yet
730
+ * configured.
713
731
  */
714
732
  destination: Data.Destination | null;
715
733
  /**
716
- * The name of the bank or financial institution.
734
+ * The name of the bank or financial institution receiving payouts. Null if not
735
+ * applicable or not provided.
717
736
  */
718
737
  institution_name: string | null;
719
738
  /**
720
- * Whether this payout token is the default for the payout account
739
+ * Whether this is the default payout destination for the associated payout
740
+ * account.
721
741
  */
722
742
  is_default: boolean;
723
743
  /**
724
- * An optional nickname for the payout token to help the user identify it. This is
725
- * not used by the provider and is only for the user's reference.
744
+ * A user-defined label to help identify this payout destination. Not sent to the
745
+ * provider. Null if no nickname has been set.
726
746
  */
727
747
  nickname: string | null;
728
748
  }
729
749
  namespace Data {
730
750
  /**
731
- * The company associated with the payout token
751
+ * The company associated with this payout destination. Null if not linked to a
752
+ * specific company.
732
753
  */
733
754
  interface Company {
734
755
  /**
@@ -737,7 +758,8 @@ export declare namespace PayoutMethodCreatedWebhookEvent {
737
758
  id: string;
738
759
  }
739
760
  /**
740
- * The payout destination associated with the payout token
761
+ * The payout destination configuration linked to this token. Null if not yet
762
+ * configured.
741
763
  */
742
764
  interface Destination {
743
765
  /**
@@ -765,7 +787,8 @@ export interface VerificationSucceededWebhookEvent {
765
787
  */
766
788
  api_version: 'v1';
767
789
  /**
768
- * An object representing an identity verification session
790
+ * An identity verification session used to confirm a person or entity's identity
791
+ * for payout account eligibility.
769
792
  */
770
793
  data: VerificationSucceededWebhookEvent.Data;
771
794
  /**
@@ -783,7 +806,8 @@ export interface VerificationSucceededWebhookEvent {
783
806
  }
784
807
  export declare namespace VerificationSucceededWebhookEvent {
785
808
  /**
786
- * An object representing an identity verification session
809
+ * An identity verification session used to confirm a person or entity's identity
810
+ * for payout account eligibility.
787
811
  */
788
812
  interface Data {
789
813
  /**
@@ -795,11 +819,12 @@ export declare namespace VerificationSucceededWebhookEvent {
795
819
  */
796
820
  last_error_code: VerificationsAPI.VerificationErrorCode | null;
797
821
  /**
798
- * The last error reason that occurred during the verification.
822
+ * A human-readable explanation of the most recent verification error. Null if no
823
+ * error has occurred.
799
824
  */
800
825
  last_error_reason: string | null;
801
826
  /**
802
- * The status of the verification.
827
+ * The current status of this verification session.
803
828
  */
804
829
  status: VerificationsAPI.VerificationStatus;
805
830
  }
@@ -814,8 +839,8 @@ export interface PaymentCreatedWebhookEvent {
814
839
  */
815
840
  api_version: 'v1';
816
841
  /**
817
- * A payment represents a completed or attempted charge for a membership. Payments
818
- * track the amount, status, currency, and payment method used.
842
+ * A payment represents a completed or attempted charge. Payments track the amount,
843
+ * status, currency, and payment method used.
819
844
  */
820
845
  data: Shared.Payment;
821
846
  /**
@@ -841,8 +866,8 @@ export interface PaymentSucceededWebhookEvent {
841
866
  */
842
867
  api_version: 'v1';
843
868
  /**
844
- * A payment represents a completed or attempted charge for a membership. Payments
845
- * track the amount, status, currency, and payment method used.
869
+ * A payment represents a completed or attempted charge. Payments track the amount,
870
+ * status, currency, and payment method used.
846
871
  */
847
872
  data: Shared.Payment;
848
873
  /**
@@ -868,8 +893,8 @@ export interface PaymentFailedWebhookEvent {
868
893
  */
869
894
  api_version: 'v1';
870
895
  /**
871
- * A payment represents a completed or attempted charge for a membership. Payments
872
- * track the amount, status, currency, and payment method used.
896
+ * A payment represents a completed or attempted charge. Payments track the amount,
897
+ * status, currency, and payment method used.
873
898
  */
874
899
  data: Shared.Payment;
875
900
  /**
@@ -895,8 +920,8 @@ export interface PaymentPendingWebhookEvent {
895
920
  */
896
921
  api_version: 'v1';
897
922
  /**
898
- * A payment represents a completed or attempted charge for a membership. Payments
899
- * track the amount, status, currency, and payment method used.
923
+ * A payment represents a completed or attempted charge. Payments track the amount,
924
+ * status, currency, and payment method used.
900
925
  */
901
926
  data: Shared.Payment;
902
927
  /**
@@ -1004,8 +1029,8 @@ export declare namespace RefundCreatedWebhookEvent {
1004
1029
  */
1005
1030
  id: string;
1006
1031
  /**
1007
- * The amount of the refund. Provided as a number in the specified currency. Eg:
1008
- * 10.43 for $10.43 USD.
1032
+ * The refunded amount as a decimal in the specified currency, such as 10.43 for
1033
+ * $10.43 USD.
1009
1034
  */
1010
1035
  amount: number;
1011
1036
  /**
@@ -1013,19 +1038,21 @@ export declare namespace RefundCreatedWebhookEvent {
1013
1038
  */
1014
1039
  created_at: string;
1015
1040
  /**
1016
- * The currency of the refund.
1041
+ * The three-letter ISO currency code for the refunded amount.
1017
1042
  */
1018
1043
  currency: Shared.Currency;
1019
1044
  /**
1020
- * The payment associated with the refund.
1045
+ * The original payment that this refund was issued against. Null if the payment is
1046
+ * no longer available.
1021
1047
  */
1022
1048
  payment: Data.Payment | null;
1023
1049
  /**
1024
- * The provider of the refund.
1050
+ * The payment provider that processed the refund.
1025
1051
  */
1026
1052
  provider: RefundsAPI.PaymentProvider;
1027
1053
  /**
1028
- * The time the refund was created by the provider.
1054
+ * The timestamp when the refund was created in the payment provider's system. Null
1055
+ * if not available from the provider.
1029
1056
  */
1030
1057
  provider_created_at: string | null;
1031
1058
  /**
@@ -1037,17 +1064,20 @@ export declare namespace RefundCreatedWebhookEvent {
1037
1064
  */
1038
1065
  reference_type: RefundsAPI.RefundReferenceType | null;
1039
1066
  /**
1040
- * The value of the reference.
1067
+ * The tracking reference value from the payment processor, used to trace the
1068
+ * refund through banking networks. Null if no reference was provided.
1041
1069
  */
1042
1070
  reference_value: string | null;
1043
1071
  /**
1044
- * The status of the refund.
1072
+ * The current processing status of the refund, such as pending, succeeded, or
1073
+ * failed.
1045
1074
  */
1046
1075
  status: RefundsAPI.RefundStatus;
1047
1076
  }
1048
1077
  namespace Data {
1049
1078
  /**
1050
- * The payment associated with the refund.
1079
+ * The original payment that this refund was issued against. Null if the payment is
1080
+ * no longer available.
1051
1081
  */
1052
1082
  interface Payment {
1053
1083
  /**
@@ -1063,7 +1093,8 @@ export declare namespace RefundCreatedWebhookEvent {
1063
1093
  */
1064
1094
  card_brand: PaymentsAPI.CardBrands | null;
1065
1095
  /**
1066
- * The last 4 digits of the card used to make the payment.
1096
+ * The last four digits of the card used to make this payment. Null if the payment
1097
+ * was not made with a card.
1067
1098
  */
1068
1099
  card_last4: string | null;
1069
1100
  /**
@@ -1087,7 +1118,8 @@ export declare namespace RefundCreatedWebhookEvent {
1087
1118
  */
1088
1119
  membership: Payment.Membership | null;
1089
1120
  /**
1090
- * The datetime the payment was paid
1121
+ * The time at which this payment was successfully collected. Null if the payment
1122
+ * has not yet succeeded. As a Unix timestamp.
1091
1123
  */
1092
1124
  paid_at: string | null;
1093
1125
  /**
@@ -1147,15 +1179,16 @@ export declare namespace RefundCreatedWebhookEvent {
1147
1179
  */
1148
1180
  id: string;
1149
1181
  /**
1150
- * The email of the user
1182
+ * The user's email address. Requires the member:email:read permission to access.
1183
+ * Null if not authorized.
1151
1184
  */
1152
1185
  email: string | null;
1153
1186
  /**
1154
- * The name of the user from their Whop account.
1187
+ * The user's display name shown on their public profile.
1155
1188
  */
1156
1189
  name: string | null;
1157
1190
  /**
1158
- * The username of the user from their Whop account.
1191
+ * The user's unique username shown on their public profile.
1159
1192
  */
1160
1193
  username: string;
1161
1194
  }
@@ -1200,8 +1233,8 @@ export declare namespace RefundUpdatedWebhookEvent {
1200
1233
  */
1201
1234
  id: string;
1202
1235
  /**
1203
- * The amount of the refund. Provided as a number in the specified currency. Eg:
1204
- * 10.43 for $10.43 USD.
1236
+ * The refunded amount as a decimal in the specified currency, such as 10.43 for
1237
+ * $10.43 USD.
1205
1238
  */
1206
1239
  amount: number;
1207
1240
  /**
@@ -1209,19 +1242,21 @@ export declare namespace RefundUpdatedWebhookEvent {
1209
1242
  */
1210
1243
  created_at: string;
1211
1244
  /**
1212
- * The currency of the refund.
1245
+ * The three-letter ISO currency code for the refunded amount.
1213
1246
  */
1214
1247
  currency: Shared.Currency;
1215
1248
  /**
1216
- * The payment associated with the refund.
1249
+ * The original payment that this refund was issued against. Null if the payment is
1250
+ * no longer available.
1217
1251
  */
1218
1252
  payment: Data.Payment | null;
1219
1253
  /**
1220
- * The provider of the refund.
1254
+ * The payment provider that processed the refund.
1221
1255
  */
1222
1256
  provider: RefundsAPI.PaymentProvider;
1223
1257
  /**
1224
- * The time the refund was created by the provider.
1258
+ * The timestamp when the refund was created in the payment provider's system. Null
1259
+ * if not available from the provider.
1225
1260
  */
1226
1261
  provider_created_at: string | null;
1227
1262
  /**
@@ -1233,17 +1268,20 @@ export declare namespace RefundUpdatedWebhookEvent {
1233
1268
  */
1234
1269
  reference_type: RefundsAPI.RefundReferenceType | null;
1235
1270
  /**
1236
- * The value of the reference.
1271
+ * The tracking reference value from the payment processor, used to trace the
1272
+ * refund through banking networks. Null if no reference was provided.
1237
1273
  */
1238
1274
  reference_value: string | null;
1239
1275
  /**
1240
- * The status of the refund.
1276
+ * The current processing status of the refund, such as pending, succeeded, or
1277
+ * failed.
1241
1278
  */
1242
1279
  status: RefundsAPI.RefundStatus;
1243
1280
  }
1244
1281
  namespace Data {
1245
1282
  /**
1246
- * The payment associated with the refund.
1283
+ * The original payment that this refund was issued against. Null if the payment is
1284
+ * no longer available.
1247
1285
  */
1248
1286
  interface Payment {
1249
1287
  /**
@@ -1259,7 +1297,8 @@ export declare namespace RefundUpdatedWebhookEvent {
1259
1297
  */
1260
1298
  card_brand: PaymentsAPI.CardBrands | null;
1261
1299
  /**
1262
- * The last 4 digits of the card used to make the payment.
1300
+ * The last four digits of the card used to make this payment. Null if the payment
1301
+ * was not made with a card.
1263
1302
  */
1264
1303
  card_last4: string | null;
1265
1304
  /**
@@ -1283,7 +1322,8 @@ export declare namespace RefundUpdatedWebhookEvent {
1283
1322
  */
1284
1323
  membership: Payment.Membership | null;
1285
1324
  /**
1286
- * The datetime the payment was paid
1325
+ * The time at which this payment was successfully collected. Null if the payment
1326
+ * has not yet succeeded. As a Unix timestamp.
1287
1327
  */
1288
1328
  paid_at: string | null;
1289
1329
  /**
@@ -1343,15 +1383,16 @@ export declare namespace RefundUpdatedWebhookEvent {
1343
1383
  */
1344
1384
  id: string;
1345
1385
  /**
1346
- * The email of the user
1386
+ * The user's email address. Requires the member:email:read permission to access.
1387
+ * Null if not authorized.
1347
1388
  */
1348
1389
  email: string | null;
1349
1390
  /**
1350
- * The name of the user from their Whop account.
1391
+ * The user's display name shown on their public profile.
1351
1392
  */
1352
1393
  name: string | null;
1353
1394
  /**
1354
- * The username of the user from their Whop account.
1395
+ * The user's unique username shown on their public profile.
1355
1396
  */
1356
1397
  username: string;
1357
1398
  }
@@ -1438,7 +1479,7 @@ export interface WebhookUpdateParams {
1438
1479
  }
1439
1480
  export interface WebhookListParams extends CursorPageParams {
1440
1481
  /**
1441
- * The ID of the company to list webhooks for
1482
+ * The unique identifier of the company to list webhooks for.
1442
1483
  */
1443
1484
  company_id: string;
1444
1485
  /**