@whop/sdk 0.0.26 → 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 (463) hide show
  1. package/CHANGELOG.md +78 -0
  2. package/client.d.mts +10 -9
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +10 -9
  5. package/client.d.ts.map +1 -1
  6. package/client.js +16 -2
  7. package/client.js.map +1 -1
  8. package/client.mjs +16 -2
  9. package/client.mjs.map +1 -1
  10. package/package.json +3 -3
  11. package/resources/access-tokens.d.mts +34 -54
  12. package/resources/access-tokens.d.mts.map +1 -1
  13. package/resources/access-tokens.d.ts +34 -54
  14. package/resources/access-tokens.d.ts.map +1 -1
  15. package/resources/access-tokens.js +6 -8
  16. package/resources/access-tokens.js.map +1 -1
  17. package/resources/access-tokens.mjs +6 -8
  18. package/resources/access-tokens.mjs.map +1 -1
  19. package/resources/account-links.d.mts +15 -13
  20. package/resources/account-links.d.mts.map +1 -1
  21. package/resources/account-links.d.ts +15 -13
  22. package/resources/account-links.d.ts.map +1 -1
  23. package/resources/account-links.js +2 -3
  24. package/resources/account-links.js.map +1 -1
  25. package/resources/account-links.mjs +2 -3
  26. package/resources/account-links.mjs.map +1 -1
  27. package/resources/ai-chats.d.mts +70 -30
  28. package/resources/ai-chats.d.mts.map +1 -1
  29. package/resources/ai-chats.d.ts +70 -30
  30. package/resources/ai-chats.d.ts.map +1 -1
  31. package/resources/ai-chats.js +6 -6
  32. package/resources/ai-chats.js.map +1 -1
  33. package/resources/ai-chats.mjs +6 -6
  34. package/resources/ai-chats.mjs.map +1 -1
  35. package/resources/app-builds.d.mts +37 -35
  36. package/resources/app-builds.d.mts.map +1 -1
  37. package/resources/app-builds.d.ts +37 -35
  38. package/resources/app-builds.d.ts.map +1 -1
  39. package/resources/app-builds.js +7 -4
  40. package/resources/app-builds.js.map +1 -1
  41. package/resources/app-builds.mjs +7 -4
  42. package/resources/app-builds.mjs.map +1 -1
  43. package/resources/apps.d.mts +86 -60
  44. package/resources/apps.d.mts.map +1 -1
  45. package/resources/apps.d.ts +86 -60
  46. package/resources/apps.d.ts.map +1 -1
  47. package/resources/apps.js +7 -4
  48. package/resources/apps.js.map +1 -1
  49. package/resources/apps.mjs +7 -4
  50. package/resources/apps.mjs.map +1 -1
  51. package/resources/authorized-users.d.mts +38 -32
  52. package/resources/authorized-users.d.mts.map +1 -1
  53. package/resources/authorized-users.d.ts +38 -32
  54. package/resources/authorized-users.d.ts.map +1 -1
  55. package/resources/authorized-users.js +3 -2
  56. package/resources/authorized-users.js.map +1 -1
  57. package/resources/authorized-users.mjs +3 -2
  58. package/resources/authorized-users.mjs.map +1 -1
  59. package/resources/chat-channels.d.mts +28 -20
  60. package/resources/chat-channels.d.mts.map +1 -1
  61. package/resources/chat-channels.d.ts +28 -20
  62. package/resources/chat-channels.d.ts.map +1 -1
  63. package/resources/chat-channels.js +5 -3
  64. package/resources/chat-channels.js.map +1 -1
  65. package/resources/chat-channels.mjs +5 -3
  66. package/resources/chat-channels.mjs.map +1 -1
  67. package/resources/checkout-configurations.d.mts +75 -58
  68. package/resources/checkout-configurations.d.mts.map +1 -1
  69. package/resources/checkout-configurations.d.ts +75 -58
  70. package/resources/checkout-configurations.d.ts.map +1 -1
  71. package/resources/checkout-configurations.js +3 -2
  72. package/resources/checkout-configurations.js.map +1 -1
  73. package/resources/checkout-configurations.mjs +3 -2
  74. package/resources/checkout-configurations.mjs.map +1 -1
  75. package/resources/companies.d.mts +88 -56
  76. package/resources/companies.d.mts.map +1 -1
  77. package/resources/companies.d.ts +88 -56
  78. package/resources/companies.d.ts.map +1 -1
  79. package/resources/companies.js +9 -7
  80. package/resources/companies.js.map +1 -1
  81. package/resources/companies.mjs +9 -7
  82. package/resources/companies.mjs.map +1 -1
  83. package/resources/company-token-transactions.d.mts +90 -67
  84. package/resources/company-token-transactions.d.mts.map +1 -1
  85. package/resources/company-token-transactions.d.ts +90 -67
  86. package/resources/company-token-transactions.d.ts.map +1 -1
  87. package/resources/company-token-transactions.js +6 -3
  88. package/resources/company-token-transactions.js.map +1 -1
  89. package/resources/company-token-transactions.mjs +6 -3
  90. package/resources/company-token-transactions.mjs.map +1 -1
  91. package/resources/course-chapters.d.mts +27 -22
  92. package/resources/course-chapters.d.mts.map +1 -1
  93. package/resources/course-chapters.d.ts +27 -22
  94. package/resources/course-chapters.d.ts.map +1 -1
  95. package/resources/course-chapters.js +5 -5
  96. package/resources/course-chapters.mjs +5 -5
  97. package/resources/course-lesson-interactions.d.mts +7 -6
  98. package/resources/course-lesson-interactions.d.mts.map +1 -1
  99. package/resources/course-lesson-interactions.d.ts +7 -6
  100. package/resources/course-lesson-interactions.d.ts.map +1 -1
  101. package/resources/course-lesson-interactions.js +3 -2
  102. package/resources/course-lesson-interactions.js.map +1 -1
  103. package/resources/course-lesson-interactions.mjs +3 -2
  104. package/resources/course-lesson-interactions.mjs.map +1 -1
  105. package/resources/course-lessons.d.mts +141 -99
  106. package/resources/course-lessons.d.mts.map +1 -1
  107. package/resources/course-lessons.d.ts +141 -99
  108. package/resources/course-lessons.d.ts.map +1 -1
  109. package/resources/course-lessons.js +12 -8
  110. package/resources/course-lessons.js.map +1 -1
  111. package/resources/course-lessons.mjs +12 -8
  112. package/resources/course-lessons.mjs.map +1 -1
  113. package/resources/course-students.d.mts +44 -35
  114. package/resources/course-students.d.mts.map +1 -1
  115. package/resources/course-students.d.ts +44 -35
  116. package/resources/course-students.d.ts.map +1 -1
  117. package/resources/course-students.js +3 -2
  118. package/resources/course-students.js.map +1 -1
  119. package/resources/course-students.mjs +3 -2
  120. package/resources/course-students.mjs.map +1 -1
  121. package/resources/courses.d.mts +140 -99
  122. package/resources/courses.d.mts.map +1 -1
  123. package/resources/courses.d.ts +140 -99
  124. package/resources/courses.d.ts.map +1 -1
  125. package/resources/courses.js +9 -5
  126. package/resources/courses.js.map +1 -1
  127. package/resources/courses.mjs +9 -5
  128. package/resources/courses.mjs.map +1 -1
  129. package/resources/disputes.d.mts +176 -120
  130. package/resources/disputes.d.mts.map +1 -1
  131. package/resources/disputes.d.ts +176 -120
  132. package/resources/disputes.d.ts.map +1 -1
  133. package/resources/disputes.js +4 -2
  134. package/resources/disputes.js.map +1 -1
  135. package/resources/disputes.mjs +4 -2
  136. package/resources/disputes.mjs.map +1 -1
  137. package/resources/dm-channels.d.mts +29 -16
  138. package/resources/dm-channels.d.mts.map +1 -1
  139. package/resources/dm-channels.d.ts +29 -16
  140. package/resources/dm-channels.d.ts.map +1 -1
  141. package/resources/dm-channels.js +9 -5
  142. package/resources/dm-channels.js.map +1 -1
  143. package/resources/dm-channels.mjs +9 -5
  144. package/resources/dm-channels.mjs.map +1 -1
  145. package/resources/dm-members.d.mts +30 -21
  146. package/resources/dm-members.d.mts.map +1 -1
  147. package/resources/dm-members.d.ts +30 -21
  148. package/resources/dm-members.d.ts.map +1 -1
  149. package/resources/dm-members.js +9 -5
  150. package/resources/dm-members.js.map +1 -1
  151. package/resources/dm-members.mjs +9 -5
  152. package/resources/dm-members.mjs.map +1 -1
  153. package/resources/entries.d.mts +35 -27
  154. package/resources/entries.d.mts.map +1 -1
  155. package/resources/entries.d.ts +35 -27
  156. package/resources/entries.d.ts.map +1 -1
  157. package/resources/entries.js +7 -4
  158. package/resources/entries.js.map +1 -1
  159. package/resources/entries.mjs +7 -4
  160. package/resources/entries.mjs.map +1 -1
  161. package/resources/experiences.d.mts +58 -49
  162. package/resources/experiences.d.mts.map +1 -1
  163. package/resources/experiences.d.ts +58 -49
  164. package/resources/experiences.d.ts.map +1 -1
  165. package/resources/experiences.js +6 -5
  166. package/resources/experiences.js.map +1 -1
  167. package/resources/experiences.mjs +6 -5
  168. package/resources/experiences.mjs.map +1 -1
  169. package/resources/fee-markups.d.mts +38 -27
  170. package/resources/fee-markups.d.mts.map +1 -1
  171. package/resources/fee-markups.d.ts +38 -27
  172. package/resources/fee-markups.d.ts.map +1 -1
  173. package/resources/fee-markups.js +6 -3
  174. package/resources/fee-markups.js.map +1 -1
  175. package/resources/fee-markups.mjs +6 -3
  176. package/resources/fee-markups.mjs.map +1 -1
  177. package/resources/files.d.mts +23 -19
  178. package/resources/files.d.mts.map +1 -1
  179. package/resources/files.d.ts +23 -19
  180. package/resources/files.d.ts.map +1 -1
  181. package/resources/files.js +3 -2
  182. package/resources/files.js.map +1 -1
  183. package/resources/files.mjs +3 -2
  184. package/resources/files.mjs.map +1 -1
  185. package/resources/forum-posts.d.mts +68 -45
  186. package/resources/forum-posts.d.mts.map +1 -1
  187. package/resources/forum-posts.d.ts +68 -45
  188. package/resources/forum-posts.d.ts.map +1 -1
  189. package/resources/forum-posts.js +8 -4
  190. package/resources/forum-posts.js.map +1 -1
  191. package/resources/forum-posts.mjs +8 -4
  192. package/resources/forum-posts.mjs.map +1 -1
  193. package/resources/forums.d.mts +21 -13
  194. package/resources/forums.d.mts.map +1 -1
  195. package/resources/forums.d.ts +21 -13
  196. package/resources/forums.d.ts.map +1 -1
  197. package/resources/forums.js +5 -3
  198. package/resources/forums.js.map +1 -1
  199. package/resources/forums.mjs +5 -3
  200. package/resources/forums.mjs.map +1 -1
  201. package/resources/index.d.mts +3 -3
  202. package/resources/index.d.mts.map +1 -1
  203. package/resources/index.d.ts +3 -3
  204. package/resources/index.d.ts.map +1 -1
  205. package/resources/index.js.map +1 -1
  206. package/resources/index.mjs.map +1 -1
  207. package/resources/invoices.d.mts +136 -100
  208. package/resources/invoices.d.mts.map +1 -1
  209. package/resources/invoices.d.ts +136 -100
  210. package/resources/invoices.d.ts.map +1 -1
  211. package/resources/invoices.js +7 -4
  212. package/resources/invoices.js.map +1 -1
  213. package/resources/invoices.mjs +7 -4
  214. package/resources/invoices.mjs.map +1 -1
  215. package/resources/leads.d.mts +76 -54
  216. package/resources/leads.d.mts.map +1 -1
  217. package/resources/leads.d.ts +76 -54
  218. package/resources/leads.d.ts.map +1 -1
  219. package/resources/leads.js +6 -4
  220. package/resources/leads.js.map +1 -1
  221. package/resources/leads.mjs +6 -4
  222. package/resources/leads.mjs.map +1 -1
  223. package/resources/ledger-accounts.d.mts +19 -15
  224. package/resources/ledger-accounts.d.mts.map +1 -1
  225. package/resources/ledger-accounts.d.ts +19 -15
  226. package/resources/ledger-accounts.d.ts.map +1 -1
  227. package/resources/ledger-accounts.js +1 -1
  228. package/resources/ledger-accounts.mjs +1 -1
  229. package/resources/members.d.mts +27 -28
  230. package/resources/members.d.mts.map +1 -1
  231. package/resources/members.d.ts +27 -28
  232. package/resources/members.d.ts.map +1 -1
  233. package/resources/members.js +3 -2
  234. package/resources/members.js.map +1 -1
  235. package/resources/members.mjs +3 -2
  236. package/resources/members.mjs.map +1 -1
  237. package/resources/memberships.d.mts +85 -62
  238. package/resources/memberships.d.mts.map +1 -1
  239. package/resources/memberships.d.ts +85 -62
  240. package/resources/memberships.d.ts.map +1 -1
  241. package/resources/memberships.js +12 -8
  242. package/resources/memberships.js.map +1 -1
  243. package/resources/memberships.mjs +12 -8
  244. package/resources/memberships.mjs.map +1 -1
  245. package/resources/messages.d.mts +53 -35
  246. package/resources/messages.d.mts.map +1 -1
  247. package/resources/messages.d.ts +53 -35
  248. package/resources/messages.d.ts.map +1 -1
  249. package/resources/messages.js +9 -5
  250. package/resources/messages.js.map +1 -1
  251. package/resources/messages.mjs +9 -5
  252. package/resources/messages.mjs.map +1 -1
  253. package/resources/notifications.d.mts +33 -25
  254. package/resources/notifications.d.mts.map +1 -1
  255. package/resources/notifications.d.ts +33 -25
  256. package/resources/notifications.d.ts.map +1 -1
  257. package/resources/notifications.js +2 -1
  258. package/resources/notifications.js.map +1 -1
  259. package/resources/notifications.mjs +2 -1
  260. package/resources/notifications.mjs.map +1 -1
  261. package/resources/payment-methods.d.mts +212 -114
  262. package/resources/payment-methods.d.mts.map +1 -1
  263. package/resources/payment-methods.d.ts +212 -114
  264. package/resources/payment-methods.d.ts.map +1 -1
  265. package/resources/payment-methods.js +5 -10
  266. package/resources/payment-methods.js.map +1 -1
  267. package/resources/payment-methods.mjs +5 -10
  268. package/resources/payment-methods.mjs.map +1 -1
  269. package/resources/payments.d.mts +96 -56
  270. package/resources/payments.d.mts.map +1 -1
  271. package/resources/payments.d.ts +96 -56
  272. package/resources/payments.d.ts.map +1 -1
  273. package/resources/payments.js +23 -10
  274. package/resources/payments.js.map +1 -1
  275. package/resources/payments.mjs +23 -10
  276. package/resources/payments.mjs.map +1 -1
  277. package/resources/payout-methods.d.mts +50 -35
  278. package/resources/payout-methods.d.mts.map +1 -1
  279. package/resources/payout-methods.d.ts +50 -35
  280. package/resources/payout-methods.d.ts.map +1 -1
  281. package/resources/payout-methods.js +3 -2
  282. package/resources/payout-methods.js.map +1 -1
  283. package/resources/payout-methods.mjs +3 -2
  284. package/resources/payout-methods.mjs.map +1 -1
  285. package/resources/plans.d.mts +136 -95
  286. package/resources/plans.d.mts.map +1 -1
  287. package/resources/plans.d.ts +136 -95
  288. package/resources/plans.d.ts.map +1 -1
  289. package/resources/plans.js +9 -5
  290. package/resources/plans.js.map +1 -1
  291. package/resources/plans.mjs +9 -5
  292. package/resources/plans.mjs.map +1 -1
  293. package/resources/products.d.mts +80 -67
  294. package/resources/products.d.mts.map +1 -1
  295. package/resources/products.d.ts +80 -67
  296. package/resources/products.d.ts.map +1 -1
  297. package/resources/products.js +7 -5
  298. package/resources/products.js.map +1 -1
  299. package/resources/products.mjs +7 -5
  300. package/resources/products.mjs.map +1 -1
  301. package/resources/promo-codes.d.mts +60 -40
  302. package/resources/promo-codes.d.mts.map +1 -1
  303. package/resources/promo-codes.d.ts +60 -40
  304. package/resources/promo-codes.d.ts.map +1 -1
  305. package/resources/promo-codes.js +7 -4
  306. package/resources/promo-codes.js.map +1 -1
  307. package/resources/promo-codes.mjs +7 -4
  308. package/resources/promo-codes.mjs.map +1 -1
  309. package/resources/reactions.d.mts +25 -19
  310. package/resources/reactions.d.mts.map +1 -1
  311. package/resources/reactions.d.ts +25 -19
  312. package/resources/reactions.d.ts.map +1 -1
  313. package/resources/reactions.js +7 -4
  314. package/resources/reactions.js.map +1 -1
  315. package/resources/reactions.mjs +7 -4
  316. package/resources/reactions.mjs.map +1 -1
  317. package/resources/refunds.d.mts +57 -39
  318. package/resources/refunds.d.mts.map +1 -1
  319. package/resources/refunds.d.ts +57 -39
  320. package/resources/refunds.d.ts.map +1 -1
  321. package/resources/refunds.js +3 -2
  322. package/resources/refunds.js.map +1 -1
  323. package/resources/refunds.mjs +3 -2
  324. package/resources/refunds.mjs.map +1 -1
  325. package/resources/reviews.d.mts +76 -60
  326. package/resources/reviews.d.mts.map +1 -1
  327. package/resources/reviews.d.ts +76 -60
  328. package/resources/reviews.d.ts.map +1 -1
  329. package/resources/reviews.js +3 -2
  330. package/resources/reviews.js.map +1 -1
  331. package/resources/reviews.mjs +3 -2
  332. package/resources/reviews.mjs.map +1 -1
  333. package/resources/setup-intents.d.mts +77 -61
  334. package/resources/setup-intents.d.mts.map +1 -1
  335. package/resources/setup-intents.d.ts +77 -61
  336. package/resources/setup-intents.d.ts.map +1 -1
  337. package/resources/setup-intents.js +4 -10
  338. package/resources/setup-intents.js.map +1 -1
  339. package/resources/setup-intents.mjs +4 -10
  340. package/resources/setup-intents.mjs.map +1 -1
  341. package/resources/shared.d.mts +854 -509
  342. package/resources/shared.d.mts.map +1 -1
  343. package/resources/shared.d.ts +854 -509
  344. package/resources/shared.d.ts.map +1 -1
  345. package/resources/shipments.d.mts +30 -21
  346. package/resources/shipments.d.mts.map +1 -1
  347. package/resources/shipments.d.ts +30 -21
  348. package/resources/shipments.d.ts.map +1 -1
  349. package/resources/shipments.js +5 -3
  350. package/resources/shipments.js.map +1 -1
  351. package/resources/shipments.mjs +5 -3
  352. package/resources/shipments.mjs.map +1 -1
  353. package/resources/support-channels.d.mts +28 -20
  354. package/resources/support-channels.d.mts.map +1 -1
  355. package/resources/support-channels.d.ts +28 -20
  356. package/resources/support-channels.d.ts.map +1 -1
  357. package/resources/support-channels.js +5 -4
  358. package/resources/support-channels.js.map +1 -1
  359. package/resources/support-channels.mjs +5 -4
  360. package/resources/support-channels.mjs.map +1 -1
  361. package/resources/topups.d.mts +13 -9
  362. package/resources/topups.d.mts.map +1 -1
  363. package/resources/topups.d.ts +13 -9
  364. package/resources/topups.d.ts.map +1 -1
  365. package/resources/topups.js +2 -1
  366. package/resources/topups.js.map +1 -1
  367. package/resources/topups.mjs +2 -1
  368. package/resources/topups.mjs.map +1 -1
  369. package/resources/transfers.d.mts +37 -28
  370. package/resources/transfers.d.mts.map +1 -1
  371. package/resources/transfers.d.ts +37 -28
  372. package/resources/transfers.d.ts.map +1 -1
  373. package/resources/transfers.js +5 -3
  374. package/resources/transfers.js.map +1 -1
  375. package/resources/transfers.mjs +5 -3
  376. package/resources/transfers.mjs.map +1 -1
  377. package/resources/users.d.mts +60 -18
  378. package/resources/users.d.mts.map +1 -1
  379. package/resources/users.d.ts +60 -18
  380. package/resources/users.d.ts.map +1 -1
  381. package/resources/users.js +13 -2
  382. package/resources/users.js.map +1 -1
  383. package/resources/users.mjs +13 -2
  384. package/resources/users.mjs.map +1 -1
  385. package/resources/verifications.d.mts +7 -5
  386. package/resources/verifications.d.mts.map +1 -1
  387. package/resources/verifications.d.ts +7 -5
  388. package/resources/verifications.d.ts.map +1 -1
  389. package/resources/verifications.js +1 -1
  390. package/resources/verifications.mjs +1 -1
  391. package/resources/webhooks.d.mts +188 -133
  392. package/resources/webhooks.d.mts.map +1 -1
  393. package/resources/webhooks.d.ts +188 -133
  394. package/resources/webhooks.d.ts.map +1 -1
  395. package/resources/webhooks.js +3 -2
  396. package/resources/webhooks.js.map +1 -1
  397. package/resources/webhooks.mjs +3 -2
  398. package/resources/webhooks.mjs.map +1 -1
  399. package/resources/withdrawals.d.mts +60 -47
  400. package/resources/withdrawals.d.mts.map +1 -1
  401. package/resources/withdrawals.d.ts +60 -47
  402. package/resources/withdrawals.d.ts.map +1 -1
  403. package/resources/withdrawals.js +3 -2
  404. package/resources/withdrawals.js.map +1 -1
  405. package/resources/withdrawals.mjs +3 -2
  406. package/resources/withdrawals.mjs.map +1 -1
  407. package/src/client.ts +33 -11
  408. package/src/resources/access-tokens.ts +37 -59
  409. package/src/resources/account-links.ts +15 -13
  410. package/src/resources/ai-chats.ts +76 -30
  411. package/src/resources/app-builds.ts +37 -35
  412. package/src/resources/apps.ts +89 -60
  413. package/src/resources/authorized-users.ts +38 -32
  414. package/src/resources/chat-channels.ts +28 -20
  415. package/src/resources/checkout-configurations.ts +76 -58
  416. package/src/resources/companies.ts +94 -57
  417. package/src/resources/company-token-transactions.ts +91 -68
  418. package/src/resources/course-chapters.ts +27 -22
  419. package/src/resources/course-lesson-interactions.ts +7 -6
  420. package/src/resources/course-lessons.ts +141 -99
  421. package/src/resources/course-students.ts +44 -35
  422. package/src/resources/courses.ts +140 -99
  423. package/src/resources/disputes.ts +176 -120
  424. package/src/resources/dm-channels.ts +29 -16
  425. package/src/resources/dm-members.ts +30 -21
  426. package/src/resources/entries.ts +35 -27
  427. package/src/resources/experiences.ts +58 -49
  428. package/src/resources/fee-markups.ts +38 -27
  429. package/src/resources/files.ts +23 -19
  430. package/src/resources/forum-posts.ts +69 -45
  431. package/src/resources/forums.ts +21 -13
  432. package/src/resources/index.ts +4 -2
  433. package/src/resources/invoices.ts +140 -100
  434. package/src/resources/leads.ts +76 -54
  435. package/src/resources/ledger-accounts.ts +19 -15
  436. package/src/resources/members.ts +27 -28
  437. package/src/resources/memberships.ts +86 -62
  438. package/src/resources/messages.ts +53 -35
  439. package/src/resources/notifications.ts +33 -25
  440. package/src/resources/payment-methods.ts +212 -114
  441. package/src/resources/payments.ts +103 -55
  442. package/src/resources/payout-methods.ts +50 -35
  443. package/src/resources/plans.ts +136 -95
  444. package/src/resources/products.ts +219 -70
  445. package/src/resources/promo-codes.ts +60 -40
  446. package/src/resources/reactions.ts +25 -19
  447. package/src/resources/refunds.ts +59 -39
  448. package/src/resources/reviews.ts +76 -60
  449. package/src/resources/setup-intents.ts +77 -61
  450. package/src/resources/shared.ts +2797 -508
  451. package/src/resources/shipments.ts +30 -21
  452. package/src/resources/support-channels.ts +28 -20
  453. package/src/resources/topups.ts +13 -9
  454. package/src/resources/transfers.ts +37 -28
  455. package/src/resources/users.ts +72 -18
  456. package/src/resources/verifications.ts +7 -5
  457. package/src/resources/webhooks.ts +188 -133
  458. package/src/resources/withdrawals.ts +60 -46
  459. package/src/version.ts +1 -1
  460. package/version.d.mts +1 -1
  461. package/version.d.ts +1 -1
  462. package/version.js +1 -1
  463. package/version.mjs +1 -1
@@ -5,7 +5,8 @@ import { CursorPage, type CursorPageParams, PagePromise } from "../core/paginati
5
5
  import { RequestOptions } from "../internal/request-options.js";
6
6
  export declare class CourseLessons extends APIResource {
7
7
  /**
8
- * Creates a new course lesson
8
+ * Create a new lesson within a course chapter. Lessons can contain video, text, or
9
+ * assessment content.
9
10
  *
10
11
  * Required permissions:
11
12
  *
@@ -21,7 +22,7 @@ export declare class CourseLessons extends APIResource {
21
22
  */
22
23
  create(body: CourseLessonCreateParams, options?: RequestOptions): APIPromise<Lesson>;
23
24
  /**
24
- * Retrieves a course lesson by ID
25
+ * Retrieves the details of an existing course lesson.
25
26
  *
26
27
  * Required permissions:
27
28
  *
@@ -36,7 +37,8 @@ export declare class CourseLessons extends APIResource {
36
37
  */
37
38
  retrieve(id: string, options?: RequestOptions): APIPromise<Lesson>;
38
39
  /**
39
- * Updates a course lesson
40
+ * Update a lesson's content, type, visibility, assessment questions, or media
41
+ * attachments.
40
42
  *
41
43
  * Required permissions:
42
44
  *
@@ -51,7 +53,8 @@ export declare class CourseLessons extends APIResource {
51
53
  */
52
54
  update(id: string, body?: CourseLessonUpdateParams | null | undefined, options?: RequestOptions): APIPromise<Lesson>;
53
55
  /**
54
- * Lists lessons for a course or chapter
56
+ * Returns a paginated list of lessons within a course or chapter, ordered by
57
+ * position.
55
58
  *
56
59
  * Required permissions:
57
60
  *
@@ -67,7 +70,7 @@ export declare class CourseLessons extends APIResource {
67
70
  */
68
71
  list(query?: CourseLessonListParams | null | undefined, options?: RequestOptions): PagePromise<CourseLessonListResponsesCursorPage, CourseLessonListResponse>;
69
72
  /**
70
- * Deletes a course lesson
73
+ * Permanently delete a lesson and remove it from its chapter.
71
74
  *
72
75
  * Required permissions:
73
76
  *
@@ -82,7 +85,7 @@ export declare class CourseLessons extends APIResource {
82
85
  */
83
86
  delete(id: string, options?: RequestOptions): APIPromise<CourseLessonDeleteResponse>;
84
87
  /**
85
- * Marks a course lesson as completed
88
+ * Mark a lesson as completed for the current user after they finish the content.
86
89
  *
87
90
  * @example
88
91
  * ```ts
@@ -93,7 +96,8 @@ export declare class CourseLessons extends APIResource {
93
96
  */
94
97
  markAsCompleted(lessonID: string, options?: RequestOptions): APIPromise<CourseLessonMarkAsCompletedResponse>;
95
98
  /**
96
- * Starts a course lesson
99
+ * Record that the current user has started viewing a lesson, creating progress
100
+ * tracking records.
97
101
  *
98
102
  * @example
99
103
  * ```ts
@@ -104,7 +108,7 @@ export declare class CourseLessons extends APIResource {
104
108
  */
105
109
  start(lessonID: string, options?: RequestOptions): APIPromise<CourseLessonStartResponse>;
106
110
  /**
107
- * Submits answers for a course assessment
111
+ * Submit answers for a quiz or knowledge check lesson and receive a graded result.
108
112
  *
109
113
  * @example
110
114
  * ```ts
@@ -126,35 +130,40 @@ export type AssessmentQuestionTypes = 'short_answer' | 'true_false' | 'multiple_
126
130
  */
127
131
  export type EmbedType = 'youtube' | 'loom';
128
132
  /**
129
- * A lesson from the courses app
133
+ * An individual learning unit within a chapter, which can contain text, video,
134
+ * PDF, or assessment content.
130
135
  */
131
136
  export interface Lesson {
132
137
  /**
133
- * The ID of the lesson
138
+ * The unique identifier for the lesson.
134
139
  */
135
140
  id: string;
136
141
  /**
137
- * Assessment questions for quiz/knowledge check lessons
142
+ * The list of questions for quiz or knowledge check lessons. Empty for
143
+ * non-assessment lesson types.
138
144
  */
139
145
  assessment_questions: Array<Lesson.AssessmentQuestion>;
140
146
  /**
141
- * The attached files in this lesson as a flat array
147
+ * All supplementary files attached to this lesson returned as a flat array rather
148
+ * than a paginated connection.
142
149
  */
143
150
  attachments: Array<Lesson.Attachment>;
144
151
  /**
145
- * The content of the lesson
152
+ * The Markdown content body of the lesson. Null if the lesson has no text content.
146
153
  */
147
154
  content: string | null;
148
155
  /**
149
- * The timestamp of when the lesson was created
156
+ * The datetime the lesson was created.
150
157
  */
151
158
  created_at: string;
152
159
  /**
153
- * Number of days from course start until the lesson is unlocked
160
+ * The number of days after a student starts the course before this lesson becomes
161
+ * accessible. Null if the lesson is available immediately.
154
162
  */
155
163
  days_from_course_start_until_unlock: number | null;
156
164
  /**
157
- * ID for the embed (YouTube video ID or Loom share ID)
165
+ * The external video identifier for embedded video lessons, such as a YouTube
166
+ * video ID or Loom share ID. Null if the lesson has no embed.
158
167
  */
159
168
  embed_id: string | null;
160
169
  /**
@@ -162,32 +171,36 @@ export interface Lesson {
162
171
  */
163
172
  embed_type: EmbedType | null;
164
173
  /**
165
- * The type of the lesson (text, video, pdf, multi, quiz, knowledge_check)
174
+ * The content format of this lesson. One of: text, video, pdf, multi, quiz,
175
+ * knowledge_check.
166
176
  */
167
177
  lesson_type: LessonTypes;
168
178
  /**
169
- * The main PDF file for this lesson
179
+ * The primary PDF document for PDF-type lessons. Null if this lesson is not a PDF
180
+ * lesson or no PDF has been uploaded.
170
181
  */
171
182
  main_pdf: Lesson.MainPdf | null;
172
183
  /**
173
- * The order of the lesson within its chapter
184
+ * The sort position of this lesson within its parent chapter, starting from zero.
174
185
  */
175
186
  order: number;
176
187
  /**
177
- * The thumbnail for the lesson
188
+ * The thumbnail image displayed on lesson cards and previews. Null if no thumbnail
189
+ * has been uploaded.
178
190
  */
179
191
  thumbnail: Lesson.Thumbnail | null;
180
192
  /**
181
- * The title of the lesson
193
+ * The display name of the lesson shown to students. Maximum 120 characters.
182
194
  */
183
195
  title: string;
184
196
  /**
185
- * The associated Mux asset for video lessons
197
+ * The Mux video asset for video-type lessons, used for streaming playback. Null if
198
+ * this lesson has no hosted video.
186
199
  */
187
200
  video_asset: Lesson.VideoAsset | null;
188
201
  /**
189
- * The visibility of the lesson. Determines how / whether this lesson is visible to
190
- * users.
202
+ * The visibility setting that controls whether this lesson appears to students.
203
+ * One of: visible, hidden.
191
204
  */
192
205
  visibility: LessonVisibilities;
193
206
  }
@@ -197,7 +210,7 @@ export declare namespace Lesson {
197
210
  */
198
211
  interface AssessmentQuestion {
199
212
  /**
200
- * The ID of the assessment question
213
+ * The unique identifier for the assessment question.
201
214
  */
202
215
  id: string;
203
216
  /**
@@ -206,7 +219,7 @@ export declare namespace Lesson {
206
219
  */
207
220
  correct_answer: string | null;
208
221
  /**
209
- * When the question was created
222
+ * The datetime the assessment question was created.
210
223
  */
211
224
  created_at: string;
212
225
  /**
@@ -236,20 +249,24 @@ export declare namespace Lesson {
236
249
  */
237
250
  interface Image {
238
251
  /**
239
- * The ID of the attachment
252
+ * Represents a unique identifier that is Base64 obfuscated. It is often used to
253
+ * refetch an object or as key for a cache. The ID type appears in a JSON response
254
+ * as a String; however, it is not intended to be human-readable. When expected as
255
+ * an input type, any string (such as `"VXNlci0xMA=="`) or integer (such as `4`)
256
+ * input value will be accepted as an ID.
240
257
  */
241
258
  id: string;
242
259
  /**
243
- * The attachment's content type (e.g., image/jpg, video/mp4)
260
+ * The MIME type of the uploaded file (e.g., image/jpeg, video/mp4, audio/mpeg).
244
261
  */
245
262
  content_type: string | null;
246
263
  /**
247
- * The name of the file
264
+ * The original filename of the uploaded attachment, including its file extension.
248
265
  */
249
266
  filename: string | null;
250
267
  /**
251
- * This is the URL you use to render optimized attachments on the client. This
252
- * should be used for apps.
268
+ * A pre-optimized URL for rendering this attachment on the client. This should be
269
+ * used for displaying attachments in apps.
253
270
  */
254
271
  url: string | null;
255
272
  }
@@ -258,7 +275,7 @@ export declare namespace Lesson {
258
275
  */
259
276
  interface Option {
260
277
  /**
261
- * The ID of the assessment question option
278
+ * The unique identifier for the assessment question option.
262
279
  */
263
280
  id: string;
264
281
  /**
@@ -281,61 +298,72 @@ export declare namespace Lesson {
281
298
  */
282
299
  interface Attachment {
283
300
  /**
284
- * The ID of the attachment
301
+ * Represents a unique identifier that is Base64 obfuscated. It is often used to
302
+ * refetch an object or as key for a cache. The ID type appears in a JSON response
303
+ * as a String; however, it is not intended to be human-readable. When expected as
304
+ * an input type, any string (such as `"VXNlci0xMA=="`) or integer (such as `4`)
305
+ * input value will be accepted as an ID.
285
306
  */
286
307
  id: string;
287
308
  /**
288
- * The attachment's content type (e.g., image/jpg, video/mp4)
309
+ * The MIME type of the uploaded file (e.g., image/jpeg, video/mp4, audio/mpeg).
289
310
  */
290
311
  content_type: string | null;
291
312
  /**
292
- * The name of the file
313
+ * The original filename of the uploaded attachment, including its file extension.
293
314
  */
294
315
  filename: string | null;
295
316
  /**
296
- * This is the URL you use to render optimized attachments on the client. This
297
- * should be used for apps.
317
+ * A pre-optimized URL for rendering this attachment on the client. This should be
318
+ * used for displaying attachments in apps.
298
319
  */
299
320
  url: string | null;
300
321
  }
301
322
  /**
302
- * The main PDF file for this lesson
323
+ * The primary PDF document for PDF-type lessons. Null if this lesson is not a PDF
324
+ * lesson or no PDF has been uploaded.
303
325
  */
304
326
  interface MainPdf {
305
327
  /**
306
- * The ID of the attachment
328
+ * Represents a unique identifier that is Base64 obfuscated. It is often used to
329
+ * refetch an object or as key for a cache. The ID type appears in a JSON response
330
+ * as a String; however, it is not intended to be human-readable. When expected as
331
+ * an input type, any string (such as `"VXNlci0xMA=="`) or integer (such as `4`)
332
+ * input value will be accepted as an ID.
307
333
  */
308
334
  id: string;
309
335
  /**
310
- * The attachment's content type (e.g., image/jpg, video/mp4)
336
+ * The MIME type of the uploaded file (e.g., image/jpeg, video/mp4, audio/mpeg).
311
337
  */
312
338
  content_type: string | null;
313
339
  /**
314
- * The name of the file
340
+ * The original filename of the uploaded attachment, including its file extension.
315
341
  */
316
342
  filename: string | null;
317
343
  /**
318
- * This is the URL you use to render optimized attachments on the client. This
319
- * should be used for apps.
344
+ * A pre-optimized URL for rendering this attachment on the client. This should be
345
+ * used for displaying attachments in apps.
320
346
  */
321
347
  url: string | null;
322
348
  }
323
349
  /**
324
- * The thumbnail for the lesson
350
+ * The thumbnail image displayed on lesson cards and previews. Null if no thumbnail
351
+ * has been uploaded.
325
352
  */
326
353
  interface Thumbnail {
327
354
  /**
328
- * This is the URL you use to render optimized attachments on the client. This
329
- * should be used for apps.
355
+ * A pre-optimized URL for rendering this attachment on the client. This should be
356
+ * used for displaying attachments in apps.
330
357
  */
331
358
  url: string | null;
332
359
  }
333
360
  /**
334
- * The associated Mux asset for video lessons
361
+ * The Mux video asset for video-type lessons, used for streaming playback. Null if
362
+ * this lesson has no hosted video.
335
363
  */
336
364
  interface VideoAsset {
337
365
  /**
338
- * The ID of the Mux asset
366
+ * The unique identifier for the mux asset.
339
367
  */
340
368
  id: string;
341
369
  /**
@@ -347,7 +375,7 @@ export declare namespace Lesson {
347
375
  */
348
376
  audio_only: boolean;
349
377
  /**
350
- * The time at which the Mux asset was created
378
+ * The datetime the mux asset was created.
351
379
  */
352
380
  created_at: string;
353
381
  /**
@@ -383,7 +411,7 @@ export declare namespace Lesson {
383
411
  */
384
412
  status: 'uploading' | 'created' | 'ready';
385
413
  /**
386
- * The time at which the Mux asset was last updated
414
+ * The datetime the mux asset was last updated.
387
415
  */
388
416
  updated_at: string;
389
417
  }
@@ -398,27 +426,30 @@ export type LessonTypes = 'text' | 'video' | 'pdf' | 'multi' | 'quiz' | 'knowled
398
426
  */
399
427
  export type LessonVisibilities = 'visible' | 'hidden';
400
428
  /**
401
- * A lesson from the courses app
429
+ * An individual learning unit within a chapter, which can contain text, video,
430
+ * PDF, or assessment content.
402
431
  */
403
432
  export interface CourseLessonListResponse {
404
433
  /**
405
- * The ID of the lesson
434
+ * The unique identifier for the lesson.
406
435
  */
407
436
  id: string;
408
437
  /**
409
- * The content of the lesson
438
+ * The Markdown content body of the lesson. Null if the lesson has no text content.
410
439
  */
411
440
  content: string | null;
412
441
  /**
413
- * The timestamp of when the lesson was created
442
+ * The datetime the lesson was created.
414
443
  */
415
444
  created_at: string;
416
445
  /**
417
- * Number of days from course start until the lesson is unlocked
446
+ * The number of days after a student starts the course before this lesson becomes
447
+ * accessible. Null if the lesson is available immediately.
418
448
  */
419
449
  days_from_course_start_until_unlock: number | null;
420
450
  /**
421
- * ID for the embed (YouTube video ID or Loom share ID)
451
+ * The external video identifier for embedded video lessons, such as a YouTube
452
+ * video ID or Loom share ID. Null if the lesson has no embed.
422
453
  */
423
454
  embed_id: string | null;
424
455
  /**
@@ -426,35 +457,38 @@ export interface CourseLessonListResponse {
426
457
  */
427
458
  embed_type: EmbedType | null;
428
459
  /**
429
- * The type of the lesson (text, video, pdf, multi, quiz, knowledge_check)
460
+ * The content format of this lesson. One of: text, video, pdf, multi, quiz,
461
+ * knowledge_check.
430
462
  */
431
463
  lesson_type: LessonTypes;
432
464
  /**
433
- * The order of the lesson within its chapter
465
+ * The sort position of this lesson within its parent chapter, starting from zero.
434
466
  */
435
467
  order: number;
436
468
  /**
437
- * The thumbnail for the lesson
469
+ * The thumbnail image displayed on lesson cards and previews. Null if no thumbnail
470
+ * has been uploaded.
438
471
  */
439
472
  thumbnail: CourseLessonListResponse.Thumbnail | null;
440
473
  /**
441
- * The title of the lesson
474
+ * The display name of the lesson shown to students. Maximum 120 characters.
442
475
  */
443
476
  title: string;
444
477
  /**
445
- * The visibility of the lesson. Determines how / whether this lesson is visible to
446
- * users.
478
+ * The visibility setting that controls whether this lesson appears to students.
479
+ * One of: visible, hidden.
447
480
  */
448
481
  visibility: LessonVisibilities;
449
482
  }
450
483
  export declare namespace CourseLessonListResponse {
451
484
  /**
452
- * The thumbnail for the lesson
485
+ * The thumbnail image displayed on lesson cards and previews. Null if no thumbnail
486
+ * has been uploaded.
453
487
  */
454
488
  interface Thumbnail {
455
489
  /**
456
- * This is the URL you use to render optimized attachments on the client. This
457
- * should be used for apps.
490
+ * A pre-optimized URL for rendering this attachment on the client. This should be
491
+ * used for displaying attachments in apps.
458
492
  */
459
493
  url: string | null;
460
494
  }
@@ -476,11 +510,11 @@ export type CourseLessonStartResponse = boolean;
476
510
  */
477
511
  export interface CourseLessonSubmitAssessmentResponse {
478
512
  /**
479
- * The ID of the assessment result
513
+ * The unique identifier for the assessment result.
480
514
  */
481
515
  id: string;
482
516
  /**
483
- * When the assessment was taken
517
+ * The datetime the assessment result was created.
484
518
  */
485
519
  created_at: string;
486
520
  /**
@@ -514,7 +548,7 @@ export interface CourseLessonSubmitAssessmentResponse {
514
548
  */
515
549
  score_percent: number;
516
550
  /**
517
- * When the assessment result was last updated
551
+ * The datetime the assessment result was last updated.
518
552
  */
519
553
  updated_at: string;
520
554
  /**
@@ -528,11 +562,11 @@ export declare namespace CourseLessonSubmitAssessmentResponse {
528
562
  */
529
563
  interface Lesson {
530
564
  /**
531
- * The ID of the lesson
565
+ * The unique identifier for the lesson.
532
566
  */
533
567
  id: string;
534
568
  /**
535
- * The title of the lesson
569
+ * The display name of the lesson shown to students. Maximum 120 characters.
536
570
  */
537
571
  title: string;
538
572
  }
@@ -541,38 +575,41 @@ export declare namespace CourseLessonSubmitAssessmentResponse {
541
575
  */
542
576
  interface User {
543
577
  /**
544
- * The internal ID of the user.
578
+ * The unique identifier for the user.
545
579
  */
546
580
  id: string;
547
581
  /**
548
- * The name of the user from their Whop account.
582
+ * The user's display name shown on their public profile.
549
583
  */
550
584
  name: string | null;
551
585
  /**
552
- * The username of the user from their Whop account.
586
+ * The user's unique username shown on their public profile.
553
587
  */
554
588
  username: string;
555
589
  }
556
590
  }
557
591
  export interface CourseLessonCreateParams {
558
592
  /**
559
- * The ID of the chapter to create the lesson in
593
+ * The unique identifier of the chapter to create the lesson in (e.g.,
594
+ * "chap_XXXXX").
560
595
  */
561
596
  chapter_id: string;
562
597
  /**
563
- * The type of the lesson
598
+ * The content type of the lesson, such as video, text, quiz, or knowledge check.
564
599
  */
565
600
  lesson_type: LessonTypes;
566
601
  /**
567
- * The content of the lesson
602
+ * The Markdown content body of the lesson.
568
603
  */
569
604
  content?: string | null;
570
605
  /**
571
- * Days from course start until unlock
606
+ * The number of days after a student starts the course before this lesson becomes
607
+ * accessible.
572
608
  */
573
609
  days_from_course_start_until_unlock?: number | null;
574
610
  /**
575
- * ID for the embed (YouTube video ID or Loom share ID)
611
+ * The external video identifier for embedded content (e.g., a YouTube video ID or
612
+ * Loom share ID).
576
613
  */
577
614
  embed_id?: string | null;
578
615
  /**
@@ -580,17 +617,17 @@ export interface CourseLessonCreateParams {
580
617
  */
581
618
  embed_type?: EmbedType | null;
582
619
  /**
583
- * The thumbnail for the lesson in png, jpeg, or gif format
620
+ * The thumbnail image for the lesson in PNG, JPEG, or GIF format.
584
621
  */
585
622
  thumbnail?: CourseLessonCreateParams.Thumbnail | null;
586
623
  /**
587
- * The title of the lesson
624
+ * The display title of the lesson (e.g., "Getting Started with APIs").
588
625
  */
589
626
  title?: string | null;
590
627
  }
591
628
  export declare namespace CourseLessonCreateParams {
592
629
  /**
593
- * The thumbnail for the lesson in png, jpeg, or gif format
630
+ * The thumbnail image for the lesson in PNG, JPEG, or GIF format.
594
631
  */
595
632
  interface Thumbnail {
596
633
  /**
@@ -601,29 +638,32 @@ export declare namespace CourseLessonCreateParams {
601
638
  }
602
639
  export interface CourseLessonUpdateParams {
603
640
  /**
604
- * Completion requirements for quiz/knowledge check lessons
641
+ * The passing criteria for quiz or knowledge check lessons, such as minimum grade
642
+ * or correct answers.
605
643
  */
606
644
  assessment_completion_requirement?: CourseLessonUpdateParams.AssessmentCompletionRequirement | null;
607
645
  /**
608
- * Assessment questions for quiz/knowledge check lessons. Replaces all existing
609
- * questions.
646
+ * The full list of assessment questions for quiz or knowledge check lessons.
647
+ * Replaces all existing questions.
610
648
  */
611
649
  assessment_questions?: Array<CourseLessonUpdateParams.AssessmentQuestion> | null;
612
650
  /**
613
- * General attachments for the lesson (PDFs, files, etc). Replaces all existing
651
+ * File attachments for the lesson such as PDFs or documents. Replaces all existing
614
652
  * attachments.
615
653
  */
616
654
  attachments?: Array<CourseLessonUpdateParams.Attachment> | null;
617
655
  /**
618
- * The content of the lesson
656
+ * The Markdown content body of the lesson.
619
657
  */
620
658
  content?: string | null;
621
659
  /**
622
- * Days from course start until unlock
660
+ * The number of days after a student starts the course before this lesson becomes
661
+ * accessible.
623
662
  */
624
663
  days_from_course_start_until_unlock?: number | null;
625
664
  /**
626
- * ID for the embed (YouTube video ID or Loom share ID)
665
+ * The external video identifier for embedded content (e.g., a YouTube video ID or
666
+ * Loom share ID).
627
667
  */
628
668
  embed_id?: string | null;
629
669
  /**
@@ -635,23 +675,24 @@ export interface CourseLessonUpdateParams {
635
675
  */
636
676
  lesson_type?: LessonTypes | null;
637
677
  /**
638
- * The main PDF file for this lesson
678
+ * The primary PDF document attached to this lesson for student reference.
639
679
  */
640
680
  main_pdf?: CourseLessonUpdateParams.MainPdf | null;
641
681
  /**
642
- * Maximum number of attempts allowed for assessments
682
+ * The maximum number of attempts a student is allowed for assessment lessons.
643
683
  */
644
684
  max_attempts?: number | null;
645
685
  /**
646
- * The ID of the Mux asset to attach to this lesson for video lessons
686
+ * The identifier of a Mux video asset to attach to this lesson (e.g.,
687
+ * "mux_XXXXX").
647
688
  */
648
689
  mux_asset_id?: string | null;
649
690
  /**
650
- * The thumbnail for the lesson in png, jpeg, or gif format
691
+ * The thumbnail image for the lesson in PNG, JPEG, or GIF format.
651
692
  */
652
693
  thumbnail?: CourseLessonUpdateParams.Thumbnail | null;
653
694
  /**
654
- * The title of the lesson
695
+ * The display title of the lesson (e.g., "Getting Started with APIs").
655
696
  */
656
697
  title?: string | null;
657
698
  /**
@@ -662,7 +703,8 @@ export interface CourseLessonUpdateParams {
662
703
  }
663
704
  export declare namespace CourseLessonUpdateParams {
664
705
  /**
665
- * Completion requirements for quiz/knowledge check lessons
706
+ * The passing criteria for quiz or knowledge check lessons, such as minimum grade
707
+ * or correct answers.
666
708
  */
667
709
  interface AssessmentCompletionRequirement {
668
710
  /**
@@ -745,7 +787,7 @@ export declare namespace CourseLessonUpdateParams {
745
787
  id: string;
746
788
  }
747
789
  /**
748
- * The main PDF file for this lesson
790
+ * The primary PDF document attached to this lesson for student reference.
749
791
  */
750
792
  interface MainPdf {
751
793
  /**
@@ -754,7 +796,7 @@ export declare namespace CourseLessonUpdateParams {
754
796
  id: string;
755
797
  }
756
798
  /**
757
- * The thumbnail for the lesson in png, jpeg, or gif format
799
+ * The thumbnail image for the lesson in PNG, JPEG, or GIF format.
758
800
  */
759
801
  interface Thumbnail {
760
802
  /**
@@ -769,11 +811,11 @@ export interface CourseLessonListParams extends CursorPageParams {
769
811
  */
770
812
  before?: string | null;
771
813
  /**
772
- * The ID of the chapter (returns lessons only for this chapter)
814
+ * The unique identifier of a chapter to return only its lessons.
773
815
  */
774
816
  chapter_id?: string | null;
775
817
  /**
776
- * The ID of the course (returns all lessons across all chapters)
818
+ * The unique identifier of the course to return all lessons across all chapters.
777
819
  */
778
820
  course_id?: string | null;
779
821
  /**
@@ -787,7 +829,7 @@ export interface CourseLessonListParams extends CursorPageParams {
787
829
  }
788
830
  export interface CourseLessonSubmitAssessmentParams {
789
831
  /**
790
- * The answers to the assessment questions
832
+ * The list of answers to submit for each assessment question.
791
833
  */
792
834
  answers: Array<CourseLessonSubmitAssessmentParams.Answer>;
793
835
  }