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 (605) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +63 -0
  3. data/README.md +1 -1
  4. data/lib/whop_sdk/client.rb +6 -3
  5. data/lib/whop_sdk/internal/util.rb +1 -1
  6. data/lib/whop_sdk/models/access_token_create_params.rb +18 -21
  7. data/lib/whop_sdk/models/access_token_create_response.rb +11 -5
  8. data/lib/whop_sdk/models/account_link_create_params.rb +14 -11
  9. data/lib/whop_sdk/models/account_link_create_response.rb +10 -6
  10. data/lib/whop_sdk/models/ai_chat.rb +26 -20
  11. data/lib/whop_sdk/models/ai_chat_create_params.rb +67 -3
  12. data/lib/whop_sdk/models/ai_chat_list_response.rb +26 -20
  13. data/lib/whop_sdk/models/ai_chat_update_params.rb +15 -3
  14. data/lib/whop_sdk/models/app.rb +101 -82
  15. data/lib/whop_sdk/models/app_build.rb +22 -22
  16. data/lib/whop_sdk/models/app_build_create_params.rb +20 -21
  17. data/lib/whop_sdk/models/app_build_list_params.rb +6 -6
  18. data/lib/whop_sdk/models/app_build_list_response.rb +22 -22
  19. data/lib/whop_sdk/models/app_create_params.rb +25 -10
  20. data/lib/whop_sdk/models/app_list_params.rb +7 -7
  21. data/lib/whop_sdk/models/app_list_response.rb +62 -57
  22. data/lib/whop_sdk/models/app_update_params.rb +53 -20
  23. data/lib/whop_sdk/models/authorized_user_list_params.rb +12 -8
  24. data/lib/whop_sdk/models/authorized_user_list_response.rb +28 -23
  25. data/lib/whop_sdk/models/authorized_user_retrieve_response.rb +28 -23
  26. data/lib/whop_sdk/models/business_types.rb +6 -0
  27. data/lib/whop_sdk/models/card_brands.rb +4 -0
  28. data/lib/whop_sdk/models/chat_channel.rb +29 -20
  29. data/lib/whop_sdk/models/chat_channel_list_params.rb +8 -4
  30. data/lib/whop_sdk/models/chat_channel_list_response.rb +29 -20
  31. data/lib/whop_sdk/models/chat_channel_update_params.rb +13 -8
  32. data/lib/whop_sdk/models/checkout_configuration.rb +39 -26
  33. data/lib/whop_sdk/models/checkout_configuration_create_params.rb +44 -32
  34. data/lib/whop_sdk/models/checkout_configuration_list_params.rb +12 -8
  35. data/lib/whop_sdk/models/checkout_configuration_list_response.rb +39 -26
  36. data/lib/whop_sdk/models/company.rb +48 -42
  37. data/lib/whop_sdk/models/company_create_params.rb +44 -26
  38. data/lib/whop_sdk/models/company_list_params.rb +17 -12
  39. data/lib/whop_sdk/models/company_list_response.rb +41 -36
  40. data/lib/whop_sdk/models/company_token_transaction.rb +44 -36
  41. data/lib/whop_sdk/models/company_token_transaction_create_params.rb +19 -12
  42. data/lib/whop_sdk/models/company_token_transaction_list_params.rb +7 -7
  43. data/lib/whop_sdk/models/company_token_transaction_list_response.rb +44 -36
  44. data/lib/whop_sdk/models/{bot_token_transaction_types.rb → company_token_transaction_type.rb} +1 -1
  45. data/lib/whop_sdk/models/company_update_params.rb +38 -14
  46. data/lib/whop_sdk/models/course.rb +101 -73
  47. data/lib/whop_sdk/models/course_chapter.rb +22 -16
  48. data/lib/whop_sdk/models/course_chapter_create_params.rb +8 -4
  49. data/lib/whop_sdk/models/course_chapter_list_params.rb +2 -2
  50. data/lib/whop_sdk/models/course_chapter_list_response.rb +8 -7
  51. data/lib/whop_sdk/models/course_chapter_update_params.rb +2 -2
  52. data/lib/whop_sdk/models/course_create_params.rb +20 -19
  53. data/lib/whop_sdk/models/course_lesson_create_params.rb +21 -15
  54. data/lib/whop_sdk/models/course_lesson_interaction.rb +44 -40
  55. data/lib/whop_sdk/models/course_lesson_interaction_completed_webhook_event.rb +7 -2
  56. data/lib/whop_sdk/models/course_lesson_interaction_list_item.rb +29 -28
  57. data/lib/whop_sdk/models/course_lesson_interaction_list_params.rb +8 -8
  58. data/lib/whop_sdk/models/course_lesson_list_params.rb +4 -4
  59. data/lib/whop_sdk/models/course_lesson_list_response.rb +32 -26
  60. data/lib/whop_sdk/models/course_lesson_submit_assessment_params.rb +2 -2
  61. data/lib/whop_sdk/models/course_lesson_submit_assessment_response.rb +16 -16
  62. data/lib/whop_sdk/models/course_lesson_update_params.rb +31 -26
  63. data/lib/whop_sdk/models/course_list_params.rb +4 -4
  64. data/lib/whop_sdk/models/course_list_response.rb +57 -44
  65. data/lib/whop_sdk/models/course_student_list_params.rb +4 -4
  66. data/lib/whop_sdk/models/course_student_list_response.rb +29 -22
  67. data/lib/whop_sdk/models/course_student_retrieve_response.rb +44 -34
  68. data/lib/whop_sdk/models/course_update_params.rb +19 -18
  69. data/lib/whop_sdk/models/dispute.rb +182 -131
  70. data/lib/whop_sdk/models/dispute_created_webhook_event.rb +6 -2
  71. data/lib/whop_sdk/models/dispute_list_params.rb +6 -6
  72. data/lib/whop_sdk/models/dispute_list_response.rb +57 -41
  73. data/lib/whop_sdk/models/dispute_update_evidence_params.rb +37 -32
  74. data/lib/whop_sdk/models/dispute_updated_webhook_event.rb +6 -2
  75. data/lib/whop_sdk/models/dm_channel.rb +11 -5
  76. data/lib/whop_sdk/models/dm_channel_create_params.rb +11 -6
  77. data/lib/whop_sdk/models/dm_channel_list_params.rb +6 -2
  78. data/lib/whop_sdk/models/dm_channel_list_response.rb +11 -5
  79. data/lib/whop_sdk/models/dm_channel_update_params.rb +5 -2
  80. data/lib/whop_sdk/models/dm_member.rb +14 -12
  81. data/lib/whop_sdk/models/dm_member_create_params.rb +8 -4
  82. data/lib/whop_sdk/models/dm_member_list_params.rb +2 -2
  83. data/lib/whop_sdk/models/dm_member_list_response.rb +12 -10
  84. data/lib/whop_sdk/models/entry.rb +49 -34
  85. data/lib/whop_sdk/models/entry_approved_webhook_event.rb +2 -2
  86. data/lib/whop_sdk/models/entry_created_webhook_event.rb +2 -2
  87. data/lib/whop_sdk/models/entry_deleted_webhook_event.rb +2 -2
  88. data/lib/whop_sdk/models/entry_denied_webhook_event.rb +2 -2
  89. data/lib/whop_sdk/models/entry_list_params.rb +12 -12
  90. data/lib/whop_sdk/models/entry_list_response.rb +44 -30
  91. data/lib/whop_sdk/models/experience.rb +65 -49
  92. data/lib/whop_sdk/models/experience_attach_params.rb +2 -2
  93. data/lib/whop_sdk/models/experience_create_params.rb +13 -13
  94. data/lib/whop_sdk/models/experience_detach_params.rb +2 -2
  95. data/lib/whop_sdk/models/experience_duplicate_params.rb +6 -2
  96. data/lib/whop_sdk/models/experience_list_params.rb +10 -10
  97. data/lib/whop_sdk/models/experience_list_response.rb +51 -38
  98. data/lib/whop_sdk/models/experience_update_params.rb +11 -11
  99. data/lib/whop_sdk/models/fee_markup_create_params.rb +15 -12
  100. data/lib/whop_sdk/models/fee_markup_create_response.rb +22 -15
  101. data/lib/whop_sdk/models/fee_markup_list_params.rb +3 -3
  102. data/lib/whop_sdk/models/fee_markup_list_response.rb +22 -15
  103. data/lib/whop_sdk/models/file_create_params.rb +6 -2
  104. data/lib/whop_sdk/models/file_create_response.rb +22 -17
  105. data/lib/whop_sdk/models/file_retrieve_response.rb +16 -13
  106. data/lib/whop_sdk/models/forum.rb +25 -14
  107. data/lib/whop_sdk/models/forum_list_params.rb +8 -4
  108. data/lib/whop_sdk/models/forum_list_response.rb +25 -14
  109. data/lib/whop_sdk/models/forum_post.rb +43 -34
  110. data/lib/whop_sdk/models/forum_post_create_params.rb +38 -25
  111. data/lib/whop_sdk/models/forum_post_list_params.rb +11 -6
  112. data/lib/whop_sdk/models/forum_post_list_response.rb +43 -34
  113. data/lib/whop_sdk/models/forum_post_update_params.rb +13 -9
  114. data/lib/whop_sdk/models/friendly_receipt_status.rb +3 -1
  115. data/lib/whop_sdk/models/industry_groups.rb +148 -0
  116. data/lib/whop_sdk/models/industry_types.rb +1871 -0
  117. data/lib/whop_sdk/models/invoice.rb +42 -32
  118. data/lib/whop_sdk/models/invoice_create_params.rb +55 -43
  119. data/lib/whop_sdk/models/invoice_created_webhook_event.rb +7 -2
  120. data/lib/whop_sdk/models/invoice_list_item.rb +42 -32
  121. data/lib/whop_sdk/models/invoice_list_params.rb +16 -12
  122. data/lib/whop_sdk/models/invoice_paid_webhook_event.rb +7 -2
  123. data/lib/whop_sdk/models/invoice_past_due_webhook_event.rb +7 -2
  124. data/lib/whop_sdk/models/invoice_status.rb +1 -0
  125. data/lib/whop_sdk/models/invoice_voided_webhook_event.rb +7 -2
  126. data/lib/whop_sdk/models/lead.rb +51 -34
  127. data/lib/whop_sdk/models/lead_create_params.rb +15 -11
  128. data/lib/whop_sdk/models/lead_list_params.rb +8 -8
  129. data/lib/whop_sdk/models/lead_list_response.rb +51 -34
  130. data/lib/whop_sdk/models/lead_update_params.rb +8 -4
  131. data/lib/whop_sdk/models/ledger_account_retrieve_response.rb +39 -27
  132. data/lib/whop_sdk/models/lesson.rb +99 -75
  133. data/lib/whop_sdk/models/member_list_params.rb +21 -21
  134. data/lib/whop_sdk/models/member_list_response.rb +10 -11
  135. data/lib/whop_sdk/models/member_retrieve_response.rb +12 -13
  136. data/lib/whop_sdk/models/membership.rb +105 -77
  137. data/lib/whop_sdk/models/membership_activated_webhook_event.rb +3 -3
  138. data/lib/whop_sdk/models/membership_cancel_at_period_end_changed_webhook_event.rb +3 -3
  139. data/lib/whop_sdk/models/membership_deactivated_webhook_event.rb +3 -3
  140. data/lib/whop_sdk/models/membership_list_params.rb +22 -18
  141. data/lib/whop_sdk/models/membership_list_response.rb +100 -73
  142. data/lib/whop_sdk/models/membership_pause_params.rb +3 -3
  143. data/lib/whop_sdk/models/membership_update_params.rb +6 -2
  144. data/lib/whop_sdk/models/message.rb +49 -37
  145. data/lib/whop_sdk/models/message_create_params.rb +17 -11
  146. data/lib/whop_sdk/models/message_list_params.rb +2 -2
  147. data/lib/whop_sdk/models/message_list_response.rb +49 -37
  148. data/lib/whop_sdk/models/message_update_params.rb +12 -6
  149. data/lib/whop_sdk/models/notification_create_params.rb +26 -22
  150. data/lib/whop_sdk/models/payment.rb +440 -51
  151. data/lib/whop_sdk/models/payment_create_params.rb +21 -9
  152. data/lib/whop_sdk/models/payment_created_webhook_event.rb +6 -2
  153. data/lib/whop_sdk/models/payment_failed_webhook_event.rb +6 -2
  154. data/lib/whop_sdk/models/payment_list_params.rb +39 -26
  155. data/lib/whop_sdk/models/payment_list_response.rb +73 -50
  156. data/lib/whop_sdk/models/payment_method_list_params.rb +12 -8
  157. data/lib/whop_sdk/models/payment_method_list_response.rb +182 -92
  158. data/lib/whop_sdk/models/payment_method_retrieve_params.rb +9 -4
  159. data/lib/whop_sdk/models/payment_method_retrieve_response.rb +182 -92
  160. data/lib/whop_sdk/models/payment_method_types.rb +2 -0
  161. data/lib/whop_sdk/models/payment_pending_webhook_event.rb +6 -2
  162. data/lib/whop_sdk/models/payment_provider.rb +2 -0
  163. data/lib/whop_sdk/models/payment_refund_params.rb +6 -2
  164. data/lib/whop_sdk/models/payment_succeeded_webhook_event.rb +6 -2
  165. data/lib/whop_sdk/models/payout_method_created_webhook_event.rb +39 -28
  166. data/lib/whop_sdk/models/payout_method_list_params.rb +2 -2
  167. data/lib/whop_sdk/models/payout_method_list_response.rb +33 -26
  168. data/lib/whop_sdk/models/payout_method_retrieve_response.rb +33 -26
  169. data/lib/whop_sdk/models/plan.rb +110 -73
  170. data/lib/whop_sdk/models/plan_create_params.rb +45 -41
  171. data/lib/whop_sdk/models/plan_list_params.rb +14 -14
  172. data/lib/whop_sdk/models/plan_list_response.rb +99 -65
  173. data/lib/whop_sdk/models/plan_update_params.rb +45 -40
  174. data/lib/whop_sdk/models/product.rb +131 -72
  175. data/lib/whop_sdk/models/product_create_params.rb +52 -95
  176. data/lib/whop_sdk/models/product_list_item.rb +30 -25
  177. data/lib/whop_sdk/models/product_list_params.rb +10 -10
  178. data/lib/whop_sdk/models/product_update_params.rb +62 -29
  179. data/lib/whop_sdk/models/promo_code.rb +21 -13
  180. data/lib/whop_sdk/models/promo_code_create_params.rb +41 -33
  181. data/lib/whop_sdk/models/promo_code_list_params.rb +10 -10
  182. data/lib/whop_sdk/models/promo_code_list_response.rb +19 -11
  183. data/lib/whop_sdk/models/reaction.rb +18 -14
  184. data/lib/whop_sdk/models/reaction_create_params.rb +8 -8
  185. data/lib/whop_sdk/models/reaction_delete_params.rb +7 -2
  186. data/lib/whop_sdk/models/reaction_list_params.rb +2 -2
  187. data/lib/whop_sdk/models/reaction_list_response.rb +18 -14
  188. data/lib/whop_sdk/models/refund_created_webhook_event.rb +66 -42
  189. data/lib/whop_sdk/models/refund_list_params.rb +6 -6
  190. data/lib/whop_sdk/models/refund_list_response.rb +32 -22
  191. data/lib/whop_sdk/models/refund_retrieve_response.rb +59 -40
  192. data/lib/whop_sdk/models/refund_updated_webhook_event.rb +66 -42
  193. data/lib/whop_sdk/models/review_list_params.rb +10 -10
  194. data/lib/whop_sdk/models/review_list_response.rb +48 -41
  195. data/lib/whop_sdk/models/review_retrieve_response.rb +71 -57
  196. data/lib/whop_sdk/models/setup_intent.rb +59 -42
  197. data/lib/whop_sdk/models/setup_intent_canceled_webhook_event.rb +3 -3
  198. data/lib/whop_sdk/models/setup_intent_list_params.rb +6 -6
  199. data/lib/whop_sdk/models/setup_intent_list_response.rb +60 -42
  200. data/lib/whop_sdk/models/setup_intent_requires_action_webhook_event.rb +3 -3
  201. data/lib/whop_sdk/models/setup_intent_succeeded_webhook_event.rb +3 -3
  202. data/lib/whop_sdk/models/shipment.rb +30 -22
  203. data/lib/whop_sdk/models/shipment_create_params.rb +11 -6
  204. data/lib/whop_sdk/models/shipment_list_params.rb +6 -6
  205. data/lib/whop_sdk/models/shipment_list_response.rb +30 -22
  206. data/lib/whop_sdk/models/support_channel.rb +28 -18
  207. data/lib/whop_sdk/models/support_channel_create_params.rb +8 -4
  208. data/lib/whop_sdk/models/support_channel_list_params.rb +5 -6
  209. data/lib/whop_sdk/models/support_channel_list_response.rb +28 -18
  210. data/lib/whop_sdk/models/topup_create_params.rb +12 -8
  211. data/lib/whop_sdk/models/topup_create_response.rb +12 -7
  212. data/lib/whop_sdk/models/transfer.rb +74 -57
  213. data/lib/whop_sdk/models/transfer_create_params.rb +19 -16
  214. data/lib/whop_sdk/models/transfer_list_params.rb +10 -10
  215. data/lib/whop_sdk/models/transfer_list_response.rb +26 -19
  216. data/lib/whop_sdk/models/user.rb +83 -0
  217. data/lib/whop_sdk/models/user_update_profile_params.rb +63 -0
  218. data/lib/whop_sdk/models/verification_retrieve_response.rb +12 -7
  219. data/lib/whop_sdk/models/verification_succeeded_webhook_event.rb +18 -9
  220. data/lib/whop_sdk/models/webhook.rb +22 -21
  221. data/lib/whop_sdk/models/webhook_create_response.rb +25 -23
  222. data/lib/whop_sdk/models/webhook_list_params.rb +2 -2
  223. data/lib/whop_sdk/models/webhook_list_response.rb +18 -17
  224. data/lib/whop_sdk/models/withdrawal.rb +63 -49
  225. data/lib/whop_sdk/models/withdrawal_created_webhook_event.rb +6 -2
  226. data/lib/whop_sdk/models/withdrawal_list_params.rb +6 -6
  227. data/lib/whop_sdk/models/withdrawal_list_response.rb +22 -20
  228. data/lib/whop_sdk/models/withdrawal_updated_webhook_event.rb +6 -2
  229. data/lib/whop_sdk/models.rb +8 -2
  230. data/lib/whop_sdk/resources/access_tokens.rb +10 -10
  231. data/lib/whop_sdk/resources/account_links.rb +6 -7
  232. data/lib/whop_sdk/resources/ai_chats.rb +29 -13
  233. data/lib/whop_sdk/resources/app_builds.rb +21 -15
  234. data/lib/whop_sdk/resources/apps.rb +40 -24
  235. data/lib/whop_sdk/resources/authorized_users.rb +11 -7
  236. data/lib/whop_sdk/resources/chat_channels.rb +16 -14
  237. data/lib/whop_sdk/resources/checkout_configurations.rb +18 -14
  238. data/lib/whop_sdk/resources/companies.rb +41 -26
  239. data/lib/whop_sdk/resources/company_token_transactions.rb +19 -13
  240. data/lib/whop_sdk/resources/course_chapters.rb +15 -12
  241. data/lib/whop_sdk/resources/course_lesson_interactions.rb +8 -7
  242. data/lib/whop_sdk/resources/course_lessons.rb +45 -35
  243. data/lib/whop_sdk/resources/course_students.rb +6 -5
  244. data/lib/whop_sdk/resources/courses.rb +28 -24
  245. data/lib/whop_sdk/resources/disputes.rb +27 -22
  246. data/lib/whop_sdk/resources/dm_channels.rb +26 -13
  247. data/lib/whop_sdk/resources/dm_members.rb +18 -11
  248. data/lib/whop_sdk/resources/entries.rb +16 -13
  249. data/lib/whop_sdk/resources/experiences.rb +34 -30
  250. data/lib/whop_sdk/resources/fee_markups.rb +17 -11
  251. data/lib/whop_sdk/resources/files.rb +8 -4
  252. data/lib/whop_sdk/resources/forum_posts.rb +34 -23
  253. data/lib/whop_sdk/resources/forums.rb +15 -7
  254. data/lib/whop_sdk/resources/invoices.rb +33 -24
  255. data/lib/whop_sdk/resources/leads.rb +23 -17
  256. data/lib/whop_sdk/resources/ledger_accounts.rb +2 -2
  257. data/lib/whop_sdk/resources/members.rb +14 -13
  258. data/lib/whop_sdk/resources/memberships.rb +35 -25
  259. data/lib/whop_sdk/resources/messages.rb +28 -17
  260. data/lib/whop_sdk/resources/notifications.rb +10 -9
  261. data/lib/whop_sdk/resources/payment_methods.rb +18 -17
  262. data/lib/whop_sdk/resources/payments.rb +48 -25
  263. data/lib/whop_sdk/resources/payout_methods.rb +5 -4
  264. data/lib/whop_sdk/resources/plans.rb +53 -49
  265. data/lib/whop_sdk/resources/products.rb +49 -45
  266. data/lib/whop_sdk/resources/promo_codes.rb +30 -26
  267. data/lib/whop_sdk/resources/reactions.rb +14 -11
  268. data/lib/whop_sdk/resources/refunds.rb +7 -6
  269. data/lib/whop_sdk/resources/reviews.rb +9 -8
  270. data/lib/whop_sdk/resources/setup_intents.rb +8 -14
  271. data/lib/whop_sdk/resources/shipments.rb +15 -10
  272. data/lib/whop_sdk/resources/support_channels.rb +13 -9
  273. data/lib/whop_sdk/resources/topups.rb +9 -5
  274. data/lib/whop_sdk/resources/transfers.rb +17 -15
  275. data/lib/whop_sdk/resources/users.rb +43 -7
  276. data/lib/whop_sdk/resources/verifications.rb +2 -2
  277. data/lib/whop_sdk/resources/webhooks.rb +5 -4
  278. data/lib/whop_sdk/resources/withdrawals.rb +7 -6
  279. data/lib/whop_sdk/version.rb +1 -1
  280. data/lib/whop_sdk.rb +4 -2
  281. data/rbi/whop_sdk/client.rbi +6 -3
  282. data/rbi/whop_sdk/internal/util.rbi +1 -1
  283. data/rbi/whop_sdk/models/access_token_create_params.rbi +26 -32
  284. data/rbi/whop_sdk/models/access_token_create_response.rbi +10 -5
  285. data/rbi/whop_sdk/models/account_link_create_params.rbi +18 -13
  286. data/rbi/whop_sdk/models/account_link_create_response.rbi +8 -6
  287. data/rbi/whop_sdk/models/ai_chat.rbi +25 -20
  288. data/rbi/whop_sdk/models/ai_chat_create_params.rbi +114 -3
  289. data/rbi/whop_sdk/models/ai_chat_list_response.rbi +25 -20
  290. data/rbi/whop_sdk/models/ai_chat_update_params.rbi +16 -3
  291. data/rbi/whop_sdk/models/app.rbi +124 -97
  292. data/rbi/whop_sdk/models/app_build.rbi +24 -25
  293. data/rbi/whop_sdk/models/app_build_create_params.rbi +25 -27
  294. data/rbi/whop_sdk/models/app_build_list_params.rbi +6 -6
  295. data/rbi/whop_sdk/models/app_build_list_response.rbi +24 -25
  296. data/rbi/whop_sdk/models/app_create_params.rbi +23 -9
  297. data/rbi/whop_sdk/models/app_list_params.rbi +8 -8
  298. data/rbi/whop_sdk/models/app_list_response.rbi +78 -69
  299. data/rbi/whop_sdk/models/app_update_params.rbi +75 -19
  300. data/rbi/whop_sdk/models/authorized_user_list_params.rbi +10 -8
  301. data/rbi/whop_sdk/models/authorized_user_list_response.rbi +26 -23
  302. data/rbi/whop_sdk/models/authorized_user_retrieve_response.rbi +26 -23
  303. data/rbi/whop_sdk/models/business_types.rbi +8 -0
  304. data/rbi/whop_sdk/models/card_brands.rbi +5 -0
  305. data/rbi/whop_sdk/models/chat_channel.rbi +25 -20
  306. data/rbi/whop_sdk/models/chat_channel_list_params.rbi +6 -4
  307. data/rbi/whop_sdk/models/chat_channel_list_response.rbi +25 -20
  308. data/rbi/whop_sdk/models/chat_channel_update_params.rbi +12 -8
  309. data/rbi/whop_sdk/models/checkout_configuration.rbi +47 -27
  310. data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +53 -36
  311. data/rbi/whop_sdk/models/checkout_configuration_list_params.rbi +10 -8
  312. data/rbi/whop_sdk/models/checkout_configuration_list_response.rbi +47 -27
  313. data/rbi/whop_sdk/models/company.rbi +55 -44
  314. data/rbi/whop_sdk/models/company_create_params.rbi +49 -29
  315. data/rbi/whop_sdk/models/company_list_params.rbi +16 -12
  316. data/rbi/whop_sdk/models/company_list_response.rbi +47 -38
  317. data/rbi/whop_sdk/models/company_token_transaction.rbi +47 -37
  318. data/rbi/whop_sdk/models/company_token_transaction_create_params.rbi +20 -12
  319. data/rbi/whop_sdk/models/company_token_transaction_list_params.rbi +7 -7
  320. data/rbi/whop_sdk/models/company_token_transaction_list_response.rbi +47 -37
  321. data/rbi/whop_sdk/models/company_token_transaction_type.rbi +28 -0
  322. data/rbi/whop_sdk/models/company_update_params.rbi +40 -16
  323. data/rbi/whop_sdk/models/course.rbi +118 -80
  324. data/rbi/whop_sdk/models/course_chapter.rbi +20 -16
  325. data/rbi/whop_sdk/models/course_chapter_create_params.rbi +6 -4
  326. data/rbi/whop_sdk/models/course_chapter_list_params.rbi +2 -2
  327. data/rbi/whop_sdk/models/course_chapter_list_response.rbi +8 -7
  328. data/rbi/whop_sdk/models/course_chapter_update_params.rbi +2 -2
  329. data/rbi/whop_sdk/models/course_create_params.rbi +25 -23
  330. data/rbi/whop_sdk/models/course_lesson_create_params.rbi +21 -15
  331. data/rbi/whop_sdk/models/course_lesson_interaction.rbi +41 -40
  332. data/rbi/whop_sdk/models/course_lesson_interaction_completed_webhook_event.rbi +4 -2
  333. data/rbi/whop_sdk/models/course_lesson_interaction_list_item.rbi +29 -28
  334. data/rbi/whop_sdk/models/course_lesson_interaction_list_params.rbi +8 -8
  335. data/rbi/whop_sdk/models/course_lesson_list_params.rbi +4 -4
  336. data/rbi/whop_sdk/models/course_lesson_list_response.rbi +38 -28
  337. data/rbi/whop_sdk/models/course_lesson_submit_assessment_params.rbi +2 -2
  338. data/rbi/whop_sdk/models/course_lesson_submit_assessment_response.rbi +16 -16
  339. data/rbi/whop_sdk/models/course_lesson_update_params.rbi +36 -27
  340. data/rbi/whop_sdk/models/course_list_params.rbi +4 -4
  341. data/rbi/whop_sdk/models/course_list_response.rbi +74 -50
  342. data/rbi/whop_sdk/models/course_student_list_params.rbi +4 -4
  343. data/rbi/whop_sdk/models/course_student_list_response.rbi +29 -22
  344. data/rbi/whop_sdk/models/course_student_retrieve_response.rbi +41 -34
  345. data/rbi/whop_sdk/models/course_update_params.rbi +23 -21
  346. data/rbi/whop_sdk/models/dispute.rbi +216 -139
  347. data/rbi/whop_sdk/models/dispute_created_webhook_event.rbi +4 -2
  348. data/rbi/whop_sdk/models/dispute_list_params.rbi +6 -6
  349. data/rbi/whop_sdk/models/dispute_list_response.rbi +58 -41
  350. data/rbi/whop_sdk/models/dispute_update_evidence_params.rbi +35 -32
  351. data/rbi/whop_sdk/models/dispute_updated_webhook_event.rbi +4 -2
  352. data/rbi/whop_sdk/models/dm_channel.rbi +10 -5
  353. data/rbi/whop_sdk/models/dm_channel_create_params.rbi +10 -6
  354. data/rbi/whop_sdk/models/dm_channel_list_params.rbi +4 -2
  355. data/rbi/whop_sdk/models/dm_channel_list_response.rbi +10 -5
  356. data/rbi/whop_sdk/models/dm_channel_update_params.rbi +2 -2
  357. data/rbi/whop_sdk/models/dm_member.rbi +16 -13
  358. data/rbi/whop_sdk/models/dm_member_create_params.rbi +6 -4
  359. data/rbi/whop_sdk/models/dm_member_list_params.rbi +2 -2
  360. data/rbi/whop_sdk/models/dm_member_list_response.rbi +14 -11
  361. data/rbi/whop_sdk/models/entry.rbi +45 -34
  362. data/rbi/whop_sdk/models/entry_approved_webhook_event.rbi +2 -2
  363. data/rbi/whop_sdk/models/entry_created_webhook_event.rbi +2 -2
  364. data/rbi/whop_sdk/models/entry_deleted_webhook_event.rbi +2 -2
  365. data/rbi/whop_sdk/models/entry_denied_webhook_event.rbi +2 -2
  366. data/rbi/whop_sdk/models/entry_list_params.rbi +12 -12
  367. data/rbi/whop_sdk/models/entry_list_response.rbi +39 -30
  368. data/rbi/whop_sdk/models/experience.rbi +71 -54
  369. data/rbi/whop_sdk/models/experience_attach_params.rbi +2 -2
  370. data/rbi/whop_sdk/models/experience_create_params.rbi +13 -13
  371. data/rbi/whop_sdk/models/experience_detach_params.rbi +2 -2
  372. data/rbi/whop_sdk/models/experience_duplicate_params.rbi +4 -2
  373. data/rbi/whop_sdk/models/experience_list_params.rbi +10 -10
  374. data/rbi/whop_sdk/models/experience_list_response.rbi +53 -41
  375. data/rbi/whop_sdk/models/experience_update_params.rbi +11 -11
  376. data/rbi/whop_sdk/models/fee_markup_create_params.rbi +12 -12
  377. data/rbi/whop_sdk/models/fee_markup_create_response.rbi +22 -15
  378. data/rbi/whop_sdk/models/fee_markup_list_params.rbi +4 -4
  379. data/rbi/whop_sdk/models/fee_markup_list_response.rbi +22 -15
  380. data/rbi/whop_sdk/models/file_create_params.rbi +4 -2
  381. data/rbi/whop_sdk/models/file_create_response.rbi +21 -17
  382. data/rbi/whop_sdk/models/file_retrieve_response.rbi +13 -13
  383. data/rbi/whop_sdk/models/forum.rbi +23 -14
  384. data/rbi/whop_sdk/models/forum_list_params.rbi +6 -4
  385. data/rbi/whop_sdk/models/forum_list_response.rbi +23 -14
  386. data/rbi/whop_sdk/models/forum_post.rbi +45 -34
  387. data/rbi/whop_sdk/models/forum_post_create_params.rbi +45 -29
  388. data/rbi/whop_sdk/models/forum_post_list_params.rbi +10 -6
  389. data/rbi/whop_sdk/models/forum_post_list_response.rbi +45 -34
  390. data/rbi/whop_sdk/models/forum_post_update_params.rbi +16 -10
  391. data/rbi/whop_sdk/models/friendly_receipt_status.rbi +3 -1
  392. data/rbi/whop_sdk/models/industry_groups.rbi +418 -0
  393. data/rbi/whop_sdk/models/industry_types.rbi +3843 -0
  394. data/rbi/whop_sdk/models/invoice.rbi +44 -33
  395. data/rbi/whop_sdk/models/invoice_create_params.rbi +66 -53
  396. data/rbi/whop_sdk/models/invoice_created_webhook_event.rbi +6 -2
  397. data/rbi/whop_sdk/models/invoice_list_item.rbi +44 -33
  398. data/rbi/whop_sdk/models/invoice_list_params.rbi +14 -12
  399. data/rbi/whop_sdk/models/invoice_paid_webhook_event.rbi +6 -2
  400. data/rbi/whop_sdk/models/invoice_past_due_webhook_event.rbi +6 -2
  401. data/rbi/whop_sdk/models/invoice_status.rbi +1 -0
  402. data/rbi/whop_sdk/models/invoice_voided_webhook_event.rbi +6 -2
  403. data/rbi/whop_sdk/models/lead.rbi +47 -34
  404. data/rbi/whop_sdk/models/lead_create_params.rbi +18 -12
  405. data/rbi/whop_sdk/models/lead_list_params.rbi +8 -8
  406. data/rbi/whop_sdk/models/lead_list_response.rbi +47 -34
  407. data/rbi/whop_sdk/models/lead_update_params.rbi +6 -4
  408. data/rbi/whop_sdk/models/ledger_account_retrieve_response.rbi +30 -25
  409. data/rbi/whop_sdk/models/lesson.rbi +124 -80
  410. data/rbi/whop_sdk/models/member_list_params.rbi +22 -22
  411. data/rbi/whop_sdk/models/member_list_response.rbi +10 -11
  412. data/rbi/whop_sdk/models/member_retrieve_response.rbi +12 -13
  413. data/rbi/whop_sdk/models/membership.rbi +114 -80
  414. data/rbi/whop_sdk/models/membership_activated_webhook_event.rbi +4 -4
  415. data/rbi/whop_sdk/models/membership_cancel_at_period_end_changed_webhook_event.rbi +4 -4
  416. data/rbi/whop_sdk/models/membership_deactivated_webhook_event.rbi +4 -4
  417. data/rbi/whop_sdk/models/membership_list_params.rbi +20 -18
  418. data/rbi/whop_sdk/models/membership_list_response.rbi +108 -76
  419. data/rbi/whop_sdk/models/membership_pause_params.rbi +4 -4
  420. data/rbi/whop_sdk/models/membership_update_params.rbi +4 -2
  421. data/rbi/whop_sdk/models/message.rbi +55 -37
  422. data/rbi/whop_sdk/models/message_create_params.rbi +17 -11
  423. data/rbi/whop_sdk/models/message_list_params.rbi +2 -2
  424. data/rbi/whop_sdk/models/message_list_response.rbi +55 -37
  425. data/rbi/whop_sdk/models/message_update_params.rbi +10 -6
  426. data/rbi/whop_sdk/models/notification_create_params.rbi +36 -28
  427. data/rbi/whop_sdk/models/payment.rbi +824 -50
  428. data/rbi/whop_sdk/models/payment_create_params.rbi +24 -8
  429. data/rbi/whop_sdk/models/payment_created_webhook_event.rbi +4 -2
  430. data/rbi/whop_sdk/models/payment_failed_webhook_event.rbi +4 -2
  431. data/rbi/whop_sdk/models/payment_list_params.rbi +38 -26
  432. data/rbi/whop_sdk/models/payment_list_response.rbi +70 -50
  433. data/rbi/whop_sdk/models/payment_method_list_params.rbi +10 -8
  434. data/rbi/whop_sdk/models/payment_method_list_response.rbi +178 -86
  435. data/rbi/whop_sdk/models/payment_method_retrieve_params.rbi +8 -4
  436. data/rbi/whop_sdk/models/payment_method_retrieve_response.rbi +178 -86
  437. data/rbi/whop_sdk/models/payment_method_types.rbi +2 -0
  438. data/rbi/whop_sdk/models/payment_pending_webhook_event.rbi +4 -2
  439. data/rbi/whop_sdk/models/payment_provider.rbi +3 -0
  440. data/rbi/whop_sdk/models/payment_refund_params.rbi +4 -2
  441. data/rbi/whop_sdk/models/payment_succeeded_webhook_event.rbi +4 -2
  442. data/rbi/whop_sdk/models/payout_method_created_webhook_event.rbi +44 -31
  443. data/rbi/whop_sdk/models/payout_method_list_params.rbi +2 -2
  444. data/rbi/whop_sdk/models/payout_method_list_response.rbi +40 -29
  445. data/rbi/whop_sdk/models/payout_method_retrieve_response.rbi +40 -29
  446. data/rbi/whop_sdk/models/plan.rbi +131 -73
  447. data/rbi/whop_sdk/models/plan_create_params.rbi +53 -45
  448. data/rbi/whop_sdk/models/plan_list_params.rbi +14 -14
  449. data/rbi/whop_sdk/models/plan_list_response.rbi +117 -65
  450. data/rbi/whop_sdk/models/plan_update_params.rbi +53 -43
  451. data/rbi/whop_sdk/models/product.rbi +153 -75
  452. data/rbi/whop_sdk/models/product_create_params.rbi +55 -160
  453. data/rbi/whop_sdk/models/product_list_item.rbi +36 -27
  454. data/rbi/whop_sdk/models/product_list_params.rbi +10 -10
  455. data/rbi/whop_sdk/models/product_update_params.rbi +83 -29
  456. data/rbi/whop_sdk/models/promo_code.rbi +21 -13
  457. data/rbi/whop_sdk/models/promo_code_create_params.rbi +50 -36
  458. data/rbi/whop_sdk/models/promo_code_list_params.rbi +10 -10
  459. data/rbi/whop_sdk/models/promo_code_list_response.rbi +19 -11
  460. data/rbi/whop_sdk/models/reaction.rbi +16 -14
  461. data/rbi/whop_sdk/models/reaction_create_params.rbi +10 -10
  462. data/rbi/whop_sdk/models/reaction_delete_params.rbi +6 -2
  463. data/rbi/whop_sdk/models/reaction_list_params.rbi +2 -2
  464. data/rbi/whop_sdk/models/reaction_list_response.rbi +16 -14
  465. data/rbi/whop_sdk/models/refund_created_webhook_event.rbi +62 -42
  466. data/rbi/whop_sdk/models/refund_list_params.rbi +6 -6
  467. data/rbi/whop_sdk/models/refund_list_response.rbi +34 -22
  468. data/rbi/whop_sdk/models/refund_retrieve_response.rbi +58 -40
  469. data/rbi/whop_sdk/models/refund_updated_webhook_event.rbi +62 -42
  470. data/rbi/whop_sdk/models/review_list_params.rbi +10 -10
  471. data/rbi/whop_sdk/models/review_list_response.rbi +55 -42
  472. data/rbi/whop_sdk/models/review_retrieve_response.rbi +73 -58
  473. data/rbi/whop_sdk/models/setup_intent.rbi +60 -42
  474. data/rbi/whop_sdk/models/setup_intent_canceled_webhook_event.rbi +4 -4
  475. data/rbi/whop_sdk/models/setup_intent_list_params.rbi +6 -6
  476. data/rbi/whop_sdk/models/setup_intent_list_response.rbi +60 -42
  477. data/rbi/whop_sdk/models/setup_intent_requires_action_webhook_event.rbi +4 -4
  478. data/rbi/whop_sdk/models/setup_intent_succeeded_webhook_event.rbi +4 -4
  479. data/rbi/whop_sdk/models/shipment.rbi +30 -22
  480. data/rbi/whop_sdk/models/shipment_create_params.rbi +10 -6
  481. data/rbi/whop_sdk/models/shipment_list_params.rbi +6 -6
  482. data/rbi/whop_sdk/models/shipment_list_response.rbi +30 -22
  483. data/rbi/whop_sdk/models/support_channel.rbi +30 -18
  484. data/rbi/whop_sdk/models/support_channel_create_params.rbi +6 -4
  485. data/rbi/whop_sdk/models/support_channel_list_params.rbi +6 -8
  486. data/rbi/whop_sdk/models/support_channel_list_response.rbi +30 -18
  487. data/rbi/whop_sdk/models/topup_create_params.rbi +10 -8
  488. data/rbi/whop_sdk/models/topup_create_response.rbi +10 -7
  489. data/rbi/whop_sdk/models/transfer.rbi +65 -53
  490. data/rbi/whop_sdk/models/transfer_create_params.rbi +24 -18
  491. data/rbi/whop_sdk/models/transfer_list_params.rbi +12 -12
  492. data/rbi/whop_sdk/models/transfer_list_response.rbi +27 -19
  493. data/rbi/whop_sdk/models/user.rbi +111 -0
  494. data/rbi/whop_sdk/models/user_update_profile_params.rbi +107 -0
  495. data/rbi/whop_sdk/models/verification_retrieve_response.rbi +10 -7
  496. data/rbi/whop_sdk/models/verification_succeeded_webhook_event.rbi +14 -9
  497. data/rbi/whop_sdk/models/webhook.rbi +24 -23
  498. data/rbi/whop_sdk/models/webhook_create_response.rbi +28 -25
  499. data/rbi/whop_sdk/models/webhook_list_params.rbi +2 -2
  500. data/rbi/whop_sdk/models/webhook_list_response.rbi +20 -19
  501. data/rbi/whop_sdk/models/withdrawal.rbi +78 -55
  502. data/rbi/whop_sdk/models/withdrawal_created_webhook_event.rbi +4 -2
  503. data/rbi/whop_sdk/models/withdrawal_list_params.rbi +6 -6
  504. data/rbi/whop_sdk/models/withdrawal_list_response.rbi +26 -23
  505. data/rbi/whop_sdk/models/withdrawal_updated_webhook_event.rbi +4 -2
  506. data/rbi/whop_sdk/models.rbi +8 -2
  507. data/rbi/whop_sdk/resources/access_tokens.rbi +17 -20
  508. data/rbi/whop_sdk/resources/account_links.rbi +10 -9
  509. data/rbi/whop_sdk/resources/ai_chats.rbi +32 -10
  510. data/rbi/whop_sdk/resources/app_builds.rbi +24 -21
  511. data/rbi/whop_sdk/resources/apps.rbi +42 -23
  512. data/rbi/whop_sdk/resources/authorized_users.rbi +9 -7
  513. data/rbi/whop_sdk/resources/chat_channels.rbi +17 -13
  514. data/rbi/whop_sdk/resources/checkout_configurations.rbi +19 -17
  515. data/rbi/whop_sdk/resources/companies.rbi +53 -32
  516. data/rbi/whop_sdk/resources/company_token_transactions.rbi +20 -13
  517. data/rbi/whop_sdk/resources/course_chapters.rbi +13 -12
  518. data/rbi/whop_sdk/resources/course_lesson_interactions.rbi +8 -7
  519. data/rbi/whop_sdk/resources/course_lessons.rbi +48 -36
  520. data/rbi/whop_sdk/resources/course_students.rbi +6 -5
  521. data/rbi/whop_sdk/resources/courses.rbi +37 -31
  522. data/rbi/whop_sdk/resources/disputes.rbi +26 -23
  523. data/rbi/whop_sdk/resources/dm_channels.rbi +20 -13
  524. data/rbi/whop_sdk/resources/dm_members.rbi +16 -11
  525. data/rbi/whop_sdk/resources/entries.rbi +16 -13
  526. data/rbi/whop_sdk/resources/experiences.rbi +32 -30
  527. data/rbi/whop_sdk/resources/fee_markups.rbi +15 -12
  528. data/rbi/whop_sdk/resources/files.rbi +6 -4
  529. data/rbi/whop_sdk/resources/forum_posts.rbi +44 -28
  530. data/rbi/whop_sdk/resources/forums.rbi +11 -7
  531. data/rbi/whop_sdk/resources/invoices.rbi +39 -32
  532. data/rbi/whop_sdk/resources/leads.rbi +24 -18
  533. data/rbi/whop_sdk/resources/ledger_accounts.rbi +3 -3
  534. data/rbi/whop_sdk/resources/members.rbi +15 -14
  535. data/rbi/whop_sdk/resources/memberships.rbi +32 -26
  536. data/rbi/whop_sdk/resources/messages.rbi +26 -17
  537. data/rbi/whop_sdk/resources/notifications.rbi +20 -15
  538. data/rbi/whop_sdk/resources/payment_methods.rbi +15 -17
  539. data/rbi/whop_sdk/resources/payments.rbi +45 -24
  540. data/rbi/whop_sdk/resources/payout_methods.rbi +5 -4
  541. data/rbi/whop_sdk/resources/plans.rbi +69 -56
  542. data/rbi/whop_sdk/resources/products.rbi +63 -49
  543. data/rbi/whop_sdk/resources/promo_codes.rbi +39 -29
  544. data/rbi/whop_sdk/resources/reactions.rbi +20 -14
  545. data/rbi/whop_sdk/resources/refunds.rbi +7 -6
  546. data/rbi/whop_sdk/resources/reviews.rbi +9 -8
  547. data/rbi/whop_sdk/resources/setup_intents.rbi +8 -14
  548. data/rbi/whop_sdk/resources/shipments.rbi +14 -10
  549. data/rbi/whop_sdk/resources/support_channels.rbi +12 -11
  550. data/rbi/whop_sdk/resources/topups.rbi +7 -5
  551. data/rbi/whop_sdk/resources/transfers.rbi +24 -19
  552. data/rbi/whop_sdk/resources/users.rbi +37 -7
  553. data/rbi/whop_sdk/resources/verifications.rbi +2 -2
  554. data/rbi/whop_sdk/resources/webhooks.rbi +5 -4
  555. data/rbi/whop_sdk/resources/withdrawals.rbi +7 -6
  556. data/sig/whop_sdk/models/access_token_create_params.rbs +8 -8
  557. data/sig/whop_sdk/models/ai_chat_create_params.rbs +46 -1
  558. data/sig/whop_sdk/models/ai_chat_update_params.rbs +6 -1
  559. data/sig/whop_sdk/models/app.rbs +5 -0
  560. data/sig/whop_sdk/models/app_create_params.rbs +6 -1
  561. data/sig/whop_sdk/models/app_update_params.rbs +21 -0
  562. data/sig/whop_sdk/models/business_types.rbs +12 -0
  563. data/sig/whop_sdk/models/card_brands.rbs +8 -0
  564. data/sig/whop_sdk/models/checkout_configuration_create_params.rbs +5 -0
  565. data/sig/whop_sdk/models/company_create_params.rbs +20 -10
  566. data/sig/whop_sdk/models/company_list_params.rbs +6 -6
  567. data/sig/whop_sdk/models/company_token_transaction.rbs +4 -4
  568. data/sig/whop_sdk/models/company_token_transaction_list_params.rbs +4 -4
  569. data/sig/whop_sdk/models/company_token_transaction_list_response.rbs +4 -4
  570. data/sig/whop_sdk/models/company_token_transaction_type.rbs +15 -0
  571. data/sig/whop_sdk/models/company_update_params.rbs +15 -0
  572. data/sig/whop_sdk/models/forum_post_create_params.rbs +5 -0
  573. data/sig/whop_sdk/models/industry_groups.rbs +280 -0
  574. data/sig/whop_sdk/models/industry_types.rbs +3742 -0
  575. data/sig/whop_sdk/models/invoice_create_params.rbs +5 -0
  576. data/sig/whop_sdk/models/invoice_status.rbs +2 -1
  577. data/sig/whop_sdk/models/membership.rbs +5 -0
  578. data/sig/whop_sdk/models/membership_list_response.rbs +5 -0
  579. data/sig/whop_sdk/models/payment.rbs +316 -0
  580. data/sig/whop_sdk/models/payment_create_params.rbs +5 -0
  581. data/sig/whop_sdk/models/payment_list_params.rbs +10 -5
  582. data/sig/whop_sdk/models/payment_method_types.rbs +4 -0
  583. data/sig/whop_sdk/models/payment_provider.rbs +4 -0
  584. data/sig/whop_sdk/models/product.rbs +17 -0
  585. data/sig/whop_sdk/models/product_create_params.rbs +5 -46
  586. data/sig/whop_sdk/models/product_update_params.rbs +20 -0
  587. data/sig/whop_sdk/models/{user_retrieve_response.rbs → user.rbs} +6 -6
  588. data/sig/whop_sdk/models/user_update_profile_params.rbs +51 -0
  589. data/sig/whop_sdk/models/withdrawal.rbs +2 -0
  590. data/sig/whop_sdk/models.rbs +8 -2
  591. data/sig/whop_sdk/resources/access_tokens.rbs +2 -2
  592. data/sig/whop_sdk/resources/ai_chats.rbs +5 -0
  593. data/sig/whop_sdk/resources/apps.rbs +3 -0
  594. data/sig/whop_sdk/resources/companies.rbs +8 -3
  595. data/sig/whop_sdk/resources/company_token_transactions.rbs +1 -1
  596. data/sig/whop_sdk/resources/forum_posts.rbs +1 -0
  597. data/sig/whop_sdk/resources/invoices.rbs +1 -0
  598. data/sig/whop_sdk/resources/payments.rbs +2 -1
  599. data/sig/whop_sdk/resources/products.rbs +3 -1
  600. data/sig/whop_sdk/resources/users.rbs +9 -1
  601. metadata +14 -8
  602. data/lib/whop_sdk/models/user_retrieve_response.rb +0 -77
  603. data/rbi/whop_sdk/models/bot_token_transaction_types.rbi +0 -28
  604. data/rbi/whop_sdk/models/user_retrieve_response.rbi +0 -127
  605. data/sig/whop_sdk/models/bot_token_transaction_types.rbs +0 -15
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6a80be479329709bdcbe983b4d0e2319dfb9f42720475ed5da78872b9510c2e2
4
- data.tar.gz: 8ab39c69907d254193380ce538039600ae3da39cb82058827124e58fe2b33632
3
+ metadata.gz: 65d1daae72b60c920b505a3d0d31fa263abea2a5c3d7d64f3f08a28dd1ca19b8
4
+ data.tar.gz: ff1e4ffb828933835fc5d71a89c7fd64cc5fbf06cc925d72f5cd666feb24f612
5
5
  SHA512:
6
- metadata.gz: 54302147cc07d4734043c43e8db74fef84a67ac3b6a4e123bf4f6135c3cbc2f7bd27292caa3805ce6cc00e6b6f2395637c6463c938fb193d3bea763781a39132
7
- data.tar.gz: '0842d8980e5bc4c49e6f37e443e50ae5c1d8aa1610e2e7167d19c5499f47af47393e9e10944c4f8bd90b0f91e3a889fe93f7751d81ebb381df2cba133d4d29d9'
6
+ metadata.gz: ca8f9e650c7cf95c9c542f8a8f0d875c898edcbf3206ec04aa2b74073da7081bf4bbbbbcb0d4f2e856a693a277c8caf195efb3aa753a8ca82e36d405e034c3be
7
+ data.tar.gz: bb1912a81b99c2bf887636a855d30a82cebe518b3f6948523794279e2b513f037f8f8b1e597c44c72ed41c1549e6bddd0a8ed4b0265d47f16581f20675d2cabf
data/CHANGELOG.md CHANGED
@@ -1,5 +1,68 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.0.28 (2026-02-19)
4
+
5
+ Full Changelog: [v0.0.27...v0.0.28](https://github.com/whopio/whopsdk-ruby/compare/v0.0.27...v0.0.28)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([19a8f84](https://github.com/whopio/whopsdk-ruby/commit/19a8f842c19aec2b89cb06edb301d31144ff8f6f))
10
+ * **api:** api update ([9a84f83](https://github.com/whopio/whopsdk-ruby/commit/9a84f83c5637fcf915631af3ce01216c9ab96617))
11
+ * **api:** api update ([a87dffa](https://github.com/whopio/whopsdk-ruby/commit/a87dffa1f3f8c8e88605bf443c565d55f92b8207))
12
+ * **api:** api update ([193161d](https://github.com/whopio/whopsdk-ruby/commit/193161dc23d8868a252b4f98ad550d22b3dabac7))
13
+ * **api:** api update ([5ce4893](https://github.com/whopio/whopsdk-ruby/commit/5ce4893f759e45aadf3703b5d8074b61d333e903))
14
+ * **api:** api update ([3d480a8](https://github.com/whopio/whopsdk-ruby/commit/3d480a8c7b7d440c4edfa1067b156c88a7c07efd))
15
+ * **api:** api update ([1721944](https://github.com/whopio/whopsdk-ruby/commit/1721944bb515a5ee1eecb3f7ba43eea96763b00b))
16
+ * **api:** api update ([3b32134](https://github.com/whopio/whopsdk-ruby/commit/3b321344577fa04c3cb70743bd381108fafdc7c2))
17
+ * **api:** api update ([c4dbb11](https://github.com/whopio/whopsdk-ruby/commit/c4dbb11f8dd3862aa616d63387f96a5ae62392c0))
18
+ * **api:** api update ([a6cec2c](https://github.com/whopio/whopsdk-ruby/commit/a6cec2c09ed799f3d6607d884f543653fb490b57))
19
+ * **api:** api update ([f173bf9](https://github.com/whopio/whopsdk-ruby/commit/f173bf9fa8441ed9cd7fcd92f241dd2d1972e057))
20
+ * **api:** api update ([3fa5697](https://github.com/whopio/whopsdk-ruby/commit/3fa56971b88284df0612640c581e446205d9b5b6))
21
+ * **api:** api update ([63accfc](https://github.com/whopio/whopsdk-ruby/commit/63accfc1df49a36eead79abc81d75f3d4ebf7ce9))
22
+ * **api:** api update ([7eada7c](https://github.com/whopio/whopsdk-ruby/commit/7eada7c05cb4f18d8d84dba1a0c22ca4a61cf460))
23
+ * **api:** api update ([b3c3d77](https://github.com/whopio/whopsdk-ruby/commit/b3c3d77fe6c08d878e4983beacf9fb6b4a84b238))
24
+ * **api:** api update ([6d1c4e9](https://github.com/whopio/whopsdk-ruby/commit/6d1c4e99fe46d43a67aba8bac62ad6347cf22d1c))
25
+ * **api:** api update ([bb02a5e](https://github.com/whopio/whopsdk-ruby/commit/bb02a5ebaa149af41f46d860e0f6da07dec20c0f))
26
+ * **api:** api update ([1957770](https://github.com/whopio/whopsdk-ruby/commit/1957770a92a4fba413f9277312aabeac1ba51dad))
27
+ * **api:** api update ([929026d](https://github.com/whopio/whopsdk-ruby/commit/929026d0eee42ab7f930f81bbeb582348d8b5b8b))
28
+ * **api:** manual updates ([1bd14df](https://github.com/whopio/whopsdk-ruby/commit/1bd14df4007aedf72be1206f27fce029609660b1))
29
+ * **api:** manual updates ([7c05fd4](https://github.com/whopio/whopsdk-ruby/commit/7c05fd452333841f7ca142cd235d922bb281b94a))
30
+ * **api:** manual updates ([023f1ca](https://github.com/whopio/whopsdk-ruby/commit/023f1ca270e0caf1c53fdcd2897a66ac3aa2d863))
31
+
32
+
33
+ ### Chores
34
+
35
+ * configure new SDK language ([8483357](https://github.com/whopio/whopsdk-ruby/commit/8483357ba5ca5b76ebb4ec832b40861982adf85f))
36
+
37
+ ## 0.0.27 (2026-02-09)
38
+
39
+ Full Changelog: [v0.0.26...v0.0.27](https://github.com/whopio/whopsdk-ruby/compare/v0.0.26...v0.0.27)
40
+
41
+ ### Features
42
+
43
+ * **api:** api update ([65ed264](https://github.com/whopio/whopsdk-ruby/commit/65ed2647981ae0aba98d848dcf31d40303785c35))
44
+ * **api:** api update ([5337616](https://github.com/whopio/whopsdk-ruby/commit/5337616fe580b2afa16b2210eb2113a2755c8529))
45
+ * **api:** api update ([2bec9bc](https://github.com/whopio/whopsdk-ruby/commit/2bec9bc09fbd1a3b41ef8c1ef4bc57a339db43ea))
46
+ * **api:** api update ([0900d40](https://github.com/whopio/whopsdk-ruby/commit/0900d40866a9819b082ccfbe51a531439c5619d8))
47
+ * **api:** api update ([adcace1](https://github.com/whopio/whopsdk-ruby/commit/adcace101df013b38450625f5eacf7573938d902))
48
+ * **api:** api update ([32441bf](https://github.com/whopio/whopsdk-ruby/commit/32441bff9dd037424c7e93be807c3e73250f5b78))
49
+ * **api:** api update ([be694cf](https://github.com/whopio/whopsdk-ruby/commit/be694cff7f498f177f025c75292ce29c800c1658))
50
+ * **api:** api update ([3bdf111](https://github.com/whopio/whopsdk-ruby/commit/3bdf1117e8b6b434b77713fcf534dd112c743ff1))
51
+ * **api:** api update ([71cfae3](https://github.com/whopio/whopsdk-ruby/commit/71cfae32a386c17a95fd5d82a24ae70ec7f5417d))
52
+ * **api:** manual updates ([1cf2d62](https://github.com/whopio/whopsdk-ruby/commit/1cf2d62a8da26bd66c578465980e3600d14e2a94))
53
+ * **api:** manual updates ([60c21fa](https://github.com/whopio/whopsdk-ruby/commit/60c21fa901ca211970592fa6b0ae6650c11a7fc8))
54
+ * **api:** manual updates ([6ea51d3](https://github.com/whopio/whopsdk-ruby/commit/6ea51d3e2a8809d552d1905e6dff99c19e5b1403))
55
+
56
+
57
+ ### Bug Fixes
58
+
59
+ * **client:** loosen json header parsing ([1020366](https://github.com/whopio/whopsdk-ruby/commit/1020366437c0cdbba833f84deab255a8902cf610))
60
+
61
+
62
+ ### Chores
63
+
64
+ * **docs:** remove www prefix ([d581cb1](https://github.com/whopio/whopsdk-ruby/commit/d581cb174e297c951ac30d0790d48d6a53c046e4))
65
+
3
66
  ## 0.0.26 (2026-02-03)
4
67
 
5
68
  Full Changelog: [v0.0.25...v0.0.26](https://github.com/whopio/whopsdk-ruby/compare/v0.0.25...v0.0.26)
data/README.md CHANGED
@@ -26,7 +26,7 @@ To use this gem, install via Bundler by adding the following to your application
26
26
  <!-- x-release-please-start-version -->
27
27
 
28
28
  ```ruby
29
- gem "whop_sdk", "~> 0.0.26"
29
+ gem "whop_sdk", "~> 0.0.28"
30
30
  ```
31
31
 
32
32
  <!-- x-release-please-end -->
@@ -15,7 +15,9 @@ module WhopSDK
15
15
  # Default max retry delay in seconds.
16
16
  DEFAULT_MAX_RETRY_DELAY = 8.0
17
17
 
18
- # The app API key from an app from the /dashboard/developer page
18
+ # A company API key, company scoped JWT, app API key, or user OAuth token. You
19
+ # must prepend your key/token with the word 'Bearer', which will look like
20
+ # `Bearer ***************************`
19
21
  # @return [String]
20
22
  attr_reader :api_key
21
23
 
@@ -182,8 +184,9 @@ module WhopSDK
182
184
 
183
185
  # Creates and returns a new client for interacting with the API.
184
186
  #
185
- # @param api_key [String, nil] The app API key from an app from the /dashboard/developer page Defaults to
186
- # `ENV["WHOP_API_KEY"]`
187
+ # @param api_key [String, nil] A company API key, company scoped JWT, app API key, or user OAuth token. You
188
+ # must prepend your key/token with the word 'Bearer', which will look like
189
+ # `Bearer ***************************` Defaults to `ENV["WHOP_API_KEY"]`
187
190
  #
188
191
  # @param app_id [String, nil] When using the SDK in app mode pass this parameter to allow verifying user
189
192
  # tokens Defaults to `ENV["WHOP_APP_ID"]`
@@ -485,7 +485,7 @@ module WhopSDK
485
485
  end
486
486
 
487
487
  # @type [Regexp]
488
- JSON_CONTENT = %r{^application/(?:vnd(?:\.[^.]+)*\+)?json(?!l)}
488
+ JSON_CONTENT = %r{^application/(?:[a-zA-Z0-9.-]+\+)?json(?!l)}
489
489
  # @type [Regexp]
490
490
  JSONL_CONTENT = %r{^application/(:?x-(?:n|l)djson)|(:?(?:x-)?jsonl)}
491
491
 
@@ -8,48 +8,45 @@ module WhopSDK
8
8
  include WhopSDK::Internal::Type::RequestParameters
9
9
 
10
10
  # @!attribute company_id
11
- # The ID of the Company to generate the token for. The API key must have
12
- # permission to access this Company, such as the being the company the API key
13
- # belongs to or a sub-merchant of it
11
+ # The unique identifier of the company to generate the token for, starting with
12
+ # 'biz\_'. The API key must have permission to access this company.
14
13
  #
15
- # @return [String]
16
- required :company_id, String
14
+ # @return [String, nil]
15
+ optional :company_id, String, nil?: true
17
16
 
18
17
  # @!attribute expires_at
19
- # The expiration timestamp for the access token. If not provided, a default
20
- # expiration time of 1 hour will be used. The expiration can be set to a maximum
21
- # of 3 hours from the current time.
18
+ # The expiration timestamp for the access token. Defaults to 1 hour from now, with
19
+ # a maximum of 3 hours.
22
20
  #
23
21
  # @return [Time, nil]
24
22
  optional :expires_at, Time, nil?: true
25
23
 
26
24
  # @!attribute scoped_actions
27
- # Array of desired scoped actions for the access token. If sent as an empty array
28
- # or not provided, all permissions from the API key making the request will be
29
- # available on the token. If sending an explicit list, they must be a subset of
30
- # the API keys's existing permissions. Otherwise, an error will be raised.
25
+ # An array of permission scopes to grant to the access token. If empty or omitted,
26
+ # all permissions from the authenticating credential are inherited. Must be a
27
+ # subset of the credential's permissions.
31
28
  #
32
29
  # @return [Array<String>, nil]
33
30
  optional :scoped_actions, WhopSDK::Internal::Type::ArrayOf[String], nil?: true
34
31
 
35
32
  # @!attribute user_id
36
- # The ID of the User to generate the token for. The API key must have permission
37
- # to access this User.
33
+ # The unique identifier of the user to generate the token for, starting with
34
+ # 'user\_'. The API key must have permission to access this user.
38
35
  #
39
- # @return [String]
40
- required :user_id, String
36
+ # @return [String, nil]
37
+ optional :user_id, String, nil?: true
41
38
 
42
- # @!method initialize(company_id:, user_id:, expires_at: nil, scoped_actions: nil, request_options: {})
39
+ # @!method initialize(company_id: nil, expires_at: nil, scoped_actions: nil, user_id: nil, request_options: {})
43
40
  # Some parameter documentations has been truncated, see
44
41
  # {WhopSDK::Models::AccessTokenCreateParams} for more details.
45
42
  #
46
- # @param company_id [String] The ID of the Company to generate the token for. The API key must have permissio
43
+ # @param company_id [String, nil] The unique identifier of the company to generate the token for, starting with 'b
47
44
  #
48
- # @param user_id [String] The ID of the User to generate the token for. The API key must have permission t
45
+ # @param expires_at [Time, nil] The expiration timestamp for the access token. Defaults to 1 hour from now, with
49
46
  #
50
- # @param expires_at [Time, nil] The expiration timestamp for the access token. If not provided, a default expira
47
+ # @param scoped_actions [Array<String>, nil] An array of permission scopes to grant to the access token. If empty or omitted,
51
48
  #
52
- # @param scoped_actions [Array<String>, nil] Array of desired scoped actions for the access token. If sent as an empty array
49
+ # @param user_id [String, nil] The unique identifier of the user to generate the token for, starting with 'user
53
50
  #
54
51
  # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
55
52
  end
@@ -5,23 +5,29 @@ module WhopSDK
5
5
  # @see WhopSDK::Resources::AccessTokens#create
6
6
  class AccessTokenCreateResponse < WhopSDK::Internal::Type::BaseModel
7
7
  # @!attribute token
8
- # The JWT access token string.
8
+ # The signed JWT access token string to include in API request Authorization
9
+ # headers.
9
10
  #
10
11
  # @return [String]
11
12
  required :token, String
12
13
 
13
14
  # @!attribute expires_at
14
- # The expiration timestamp of the access token.
15
+ # The timestamp after which this access token is no longer valid and must be
16
+ # refreshed.
15
17
  #
16
18
  # @return [Time]
17
19
  required :expires_at, Time
18
20
 
19
21
  # @!method initialize(token:, expires_at:)
20
- # An object representing an access token used for authenticating API requests.
22
+ # Some parameter documentations has been truncated, see
23
+ # {WhopSDK::Models::AccessTokenCreateResponse} for more details.
21
24
  #
22
- # @param token [String] The JWT access token string.
25
+ # A short-lived access token used to authenticate API requests on behalf of a
26
+ # user.
23
27
  #
24
- # @param expires_at [Time] The expiration timestamp of the access token.
28
+ # @param token [String] The signed JWT access token string to include in API request Authorization heade
29
+ #
30
+ # @param expires_at [Time] The timestamp after which this access token is no longer valid and must be refre
25
31
  end
26
32
  end
27
33
  end
@@ -8,27 +8,29 @@ module WhopSDK
8
8
  include WhopSDK::Internal::Type::RequestParameters
9
9
 
10
10
  # @!attribute company_id
11
- # The ID of the Company to generate the url for. The company must be a
12
- # sub-merchant of the API key's company.
11
+ # The unique identifier of the company to generate the link for, starting with
12
+ # 'biz\_'. Must be a sub-merchant of the API key's company.
13
13
  #
14
14
  # @return [String]
15
15
  required :company_id, String
16
16
 
17
17
  # @!attribute refresh_url
18
- # The URL to redirect to if the session expires and needs to be re-authenticated
19
- # due to the token expiring.
18
+ # The URL to redirect the user to if the session expires and needs to be
19
+ # re-authenticated, such as 'https://example.com/refresh'.
20
20
  #
21
21
  # @return [String]
22
22
  required :refresh_url, String
23
23
 
24
24
  # @!attribute return_url
25
- # The URL to redirect to when the customer wants to return to your site.
25
+ # The URL to redirect the user to when they want to return to your site, such as
26
+ # 'https://example.com/return'.
26
27
  #
27
28
  # @return [String]
28
29
  required :return_url, String
29
30
 
30
31
  # @!attribute use_case
31
- # The use case for which the link will be used.
32
+ # The purpose of the account link, such as hosted payouts portal or hosted KYC
33
+ # onboarding.
32
34
  #
33
35
  # @return [Symbol, WhopSDK::Models::AccountLinkCreateParams::UseCase]
34
36
  required :use_case, enum: -> { WhopSDK::AccountLinkCreateParams::UseCase }
@@ -37,17 +39,18 @@ module WhopSDK
37
39
  # Some parameter documentations has been truncated, see
38
40
  # {WhopSDK::Models::AccountLinkCreateParams} for more details.
39
41
  #
40
- # @param company_id [String] The ID of the Company to generate the url for. The company must be a sub-merchan
42
+ # @param company_id [String] The unique identifier of the company to generate the link for, starting with 'bi
41
43
  #
42
- # @param refresh_url [String] The URL to redirect to if the session expires and needs to be re-authenticated d
44
+ # @param refresh_url [String] The URL to redirect the user to if the session expires and needs to be re-authen
43
45
  #
44
- # @param return_url [String] The URL to redirect to when the customer wants to return to your site.
46
+ # @param return_url [String] The URL to redirect the user to when they want to return to your site, such as '
45
47
  #
46
- # @param use_case [Symbol, WhopSDK::Models::AccountLinkCreateParams::UseCase] The use case for which the link will be used.
48
+ # @param use_case [Symbol, WhopSDK::Models::AccountLinkCreateParams::UseCase] The purpose of the account link, such as hosted payouts portal or hosted KYC onb
47
49
  #
48
50
  # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
49
51
 
50
- # The use case for which the link will be used.
52
+ # The purpose of the account link, such as hosted payouts portal or hosted KYC
53
+ # onboarding.
51
54
  module UseCase
52
55
  extend WhopSDK::Internal::Type::Enum
53
56
 
@@ -5,24 +5,28 @@ module WhopSDK
5
5
  # @see WhopSDK::Resources::AccountLinks#create
6
6
  class AccountLinkCreateResponse < WhopSDK::Internal::Type::BaseModel
7
7
  # @!attribute expires_at
8
- # The expiration timestamp of the url.
8
+ # The timestamp after which this account link URL is no longer valid.
9
9
  #
10
10
  # @return [Time]
11
11
  required :expires_at, Time
12
12
 
13
13
  # @!attribute url
14
- # The URL to navigate the user to.
14
+ # The temporary URL to redirect the user to for account access. Expires at the
15
+ # time specified by expires_at.
15
16
  #
16
17
  # @return [String]
17
18
  required :url, String
18
19
 
19
20
  # @!method initialize(expires_at:, url:)
20
- # An object representing a url that a user can be directed to to access their
21
- # account.
21
+ # Some parameter documentations has been truncated, see
22
+ # {WhopSDK::Models::AccountLinkCreateResponse} for more details.
22
23
  #
23
- # @param expires_at [Time] The expiration timestamp of the url.
24
+ # A temporary, time-limited URL that grants a user access to an external account
25
+ # management page.
24
26
  #
25
- # @param url [String] The URL to navigate the user to.
27
+ # @param expires_at [Time] The timestamp after which this account link URL is no longer valid.
28
+ #
29
+ # @param url [String] The temporary URL to redirect the user to for account access. Expires at the tim
26
30
  end
27
31
  end
28
32
  end
@@ -5,84 +5,90 @@ module WhopSDK
5
5
  # @see WhopSDK::Resources::AIChats#create
6
6
  class AIChat < WhopSDK::Internal::Type::BaseModel
7
7
  # @!attribute id
8
- # The unique identifier for the AI chat
8
+ # The unique identifier for the ai chat.
9
9
  #
10
10
  # @return [String]
11
11
  required :id, String
12
12
 
13
13
  # @!attribute blended_token_usage
14
- # The total number of tokens used in the chat
14
+ # The total number of tokens consumed across all messages in this conversation.
15
15
  #
16
16
  # @return [String]
17
17
  required :blended_token_usage, String
18
18
 
19
19
  # @!attribute created_at
20
- # When the AI chat was created
20
+ # The datetime the ai chat was created.
21
21
  #
22
22
  # @return [Time]
23
23
  required :created_at, Time
24
24
 
25
25
  # @!attribute last_message_at
26
- # When the last message was sent
26
+ # The timestamp of the most recent message in this conversation. Null if no
27
+ # messages have been sent yet.
27
28
  #
28
29
  # @return [Time, nil]
29
30
  required :last_message_at, Time, nil?: true
30
31
 
31
32
  # @!attribute message_count
32
- # The number of messages in the chat
33
+ # The total number of messages exchanged in this conversation.
33
34
  #
34
35
  # @return [Integer]
35
36
  required :message_count, Integer
36
37
 
37
38
  # @!attribute title
38
- # The title of the AI chat
39
+ # A short descriptive title for this AI chat conversation. Null if no title has
40
+ # been set.
39
41
  #
40
42
  # @return [String, nil]
41
43
  required :title, String, nil?: true
42
44
 
43
45
  # @!attribute updated_at
44
- # When the AI chat was last updated
46
+ # The datetime the ai chat was last updated.
45
47
  #
46
48
  # @return [Time]
47
49
  required :updated_at, Time
48
50
 
49
51
  # @!attribute user
50
- # The user who owns the AI chat
52
+ # The user who owns this AI chat conversation.
51
53
  #
52
54
  # @return [WhopSDK::Models::AIChat::User]
53
55
  required :user, -> { WhopSDK::AIChat::User }
54
56
 
55
57
  # @!method initialize(id:, blended_token_usage:, created_at:, last_message_at:, message_count:, title:, updated_at:, user:)
56
- # An AI chat conversation belonging to a user
58
+ # Some parameter documentations has been truncated, see {WhopSDK::Models::AIChat}
59
+ # for more details.
57
60
  #
58
- # @param id [String] The unique identifier for the AI chat
61
+ # An AI-powered chat conversation belonging to a user, with optional scheduled
62
+ # automation.
59
63
  #
60
- # @param blended_token_usage [String] The total number of tokens used in the chat
64
+ # @param id [String] The unique identifier for the ai chat.
61
65
  #
62
- # @param created_at [Time] When the AI chat was created
66
+ # @param blended_token_usage [String] The total number of tokens consumed across all messages in this conversation.
63
67
  #
64
- # @param last_message_at [Time, nil] When the last message was sent
68
+ # @param created_at [Time] The datetime the ai chat was created.
65
69
  #
66
- # @param message_count [Integer] The number of messages in the chat
70
+ # @param last_message_at [Time, nil] The timestamp of the most recent message in this conversation. Null if no messag
67
71
  #
68
- # @param title [String, nil] The title of the AI chat
72
+ # @param message_count [Integer] The total number of messages exchanged in this conversation.
69
73
  #
70
- # @param updated_at [Time] When the AI chat was last updated
74
+ # @param title [String, nil] A short descriptive title for this AI chat conversation. Null if no title has be
71
75
  #
72
- # @param user [WhopSDK::Models::AIChat::User] The user who owns the AI chat
76
+ # @param updated_at [Time] The datetime the ai chat was last updated.
77
+ #
78
+ # @param user [WhopSDK::Models::AIChat::User] The user who owns this AI chat conversation.
73
79
 
74
80
  # @see WhopSDK::Models::AIChat#user
75
81
  class User < WhopSDK::Internal::Type::BaseModel
76
82
  # @!attribute id
77
- # The internal ID of the user.
83
+ # The unique identifier for the user.
78
84
  #
79
85
  # @return [String]
80
86
  required :id, String
81
87
 
82
88
  # @!method initialize(id:)
83
- # The user who owns the AI chat
89
+ # The user who owns this AI chat conversation.
84
90
  #
85
- # @param id [String] The internal ID of the user.
91
+ # @param id [String] The unique identifier for the user.
86
92
  end
87
93
  end
88
94
  end
@@ -7,16 +7,80 @@ module WhopSDK
7
7
  extend WhopSDK::Internal::Type::RequestParameters::Converter
8
8
  include WhopSDK::Internal::Type::RequestParameters
9
9
 
10
+ # @!attribute message_text
11
+ # The text content of the first message to send to the AI agent.
12
+ #
13
+ # @return [String]
14
+ required :message_text, String
15
+
16
+ # @!attribute current_company_id
17
+ # The unique identifier of the company to set as context for the AI chat (e.g.,
18
+ # "biz_XXXXX").
19
+ #
20
+ # @return [String, nil]
21
+ optional :current_company_id, String, nil?: true
22
+
23
+ # @!attribute message_attachments
24
+ # A list of previously uploaded file attachments to include with the first
25
+ # message.
26
+ #
27
+ # @return [Array<WhopSDK::Models::AIChatCreateParams::MessageAttachment>, nil]
28
+ optional :message_attachments,
29
+ -> { WhopSDK::Internal::Type::ArrayOf[WhopSDK::AIChatCreateParams::MessageAttachment] },
30
+ nil?: true
31
+
32
+ # @!attribute message_source
33
+ # The source of an AI chat message
34
+ #
35
+ # @return [Symbol, WhopSDK::Models::AIChatCreateParams::MessageSource, nil]
36
+ optional :message_source, enum: -> { WhopSDK::AIChatCreateParams::MessageSource }, nil?: true
37
+
10
38
  # @!attribute title
11
- # The title of the AI chat
39
+ # An optional display title for the AI chat thread (e.g., "Help with billing").
12
40
  #
13
41
  # @return [String, nil]
14
42
  optional :title, String, nil?: true
15
43
 
16
- # @!method initialize(title: nil, request_options: {})
17
- # @param title [String, nil] The title of the AI chat
44
+ # @!method initialize(message_text:, current_company_id: nil, message_attachments: nil, message_source: nil, title: nil, request_options: {})
45
+ # Some parameter documentations has been truncated, see
46
+ # {WhopSDK::Models::AIChatCreateParams} for more details.
47
+ #
48
+ # @param message_text [String] The text content of the first message to send to the AI agent.
49
+ #
50
+ # @param current_company_id [String, nil] The unique identifier of the company to set as context for the AI chat (e.g., "b
51
+ #
52
+ # @param message_attachments [Array<WhopSDK::Models::AIChatCreateParams::MessageAttachment>, nil] A list of previously uploaded file attachments to include with the first message
53
+ #
54
+ # @param message_source [Symbol, WhopSDK::Models::AIChatCreateParams::MessageSource, nil] The source of an AI chat message
55
+ #
56
+ # @param title [String, nil] An optional display title for the AI chat thread (e.g., "Help with billing").
18
57
  #
19
58
  # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
59
+
60
+ class MessageAttachment < WhopSDK::Internal::Type::BaseModel
61
+ # @!attribute id
62
+ # The ID of an existing file object.
63
+ #
64
+ # @return [String]
65
+ required :id, String
66
+
67
+ # @!method initialize(id:)
68
+ # Input for an attachment
69
+ #
70
+ # @param id [String] The ID of an existing file object.
71
+ end
72
+
73
+ # The source of an AI chat message
74
+ module MessageSource
75
+ extend WhopSDK::Internal::Type::Enum
76
+
77
+ MANUAL = :manual
78
+ SUGGESTION = :suggestion
79
+ LINK = :link
80
+
81
+ # @!method self.values
82
+ # @return [Array<Symbol>]
83
+ end
20
84
  end
21
85
  end
22
86
  end
@@ -5,84 +5,90 @@ module WhopSDK
5
5
  # @see WhopSDK::Resources::AIChats#list
6
6
  class AIChatListResponse < WhopSDK::Internal::Type::BaseModel
7
7
  # @!attribute id
8
- # The unique identifier for the AI chat
8
+ # The unique identifier for the ai chat.
9
9
  #
10
10
  # @return [String]
11
11
  required :id, String
12
12
 
13
13
  # @!attribute blended_token_usage
14
- # The total number of tokens used in the chat
14
+ # The total number of tokens consumed across all messages in this conversation.
15
15
  #
16
16
  # @return [String]
17
17
  required :blended_token_usage, String
18
18
 
19
19
  # @!attribute created_at
20
- # When the AI chat was created
20
+ # The datetime the ai chat was created.
21
21
  #
22
22
  # @return [Time]
23
23
  required :created_at, Time
24
24
 
25
25
  # @!attribute last_message_at
26
- # When the last message was sent
26
+ # The timestamp of the most recent message in this conversation. Null if no
27
+ # messages have been sent yet.
27
28
  #
28
29
  # @return [Time, nil]
29
30
  required :last_message_at, Time, nil?: true
30
31
 
31
32
  # @!attribute message_count
32
- # The number of messages in the chat
33
+ # The total number of messages exchanged in this conversation.
33
34
  #
34
35
  # @return [Integer]
35
36
  required :message_count, Integer
36
37
 
37
38
  # @!attribute title
38
- # The title of the AI chat
39
+ # A short descriptive title for this AI chat conversation. Null if no title has
40
+ # been set.
39
41
  #
40
42
  # @return [String, nil]
41
43
  required :title, String, nil?: true
42
44
 
43
45
  # @!attribute updated_at
44
- # When the AI chat was last updated
46
+ # The datetime the ai chat was last updated.
45
47
  #
46
48
  # @return [Time]
47
49
  required :updated_at, Time
48
50
 
49
51
  # @!attribute user
50
- # The user who owns the AI chat
52
+ # The user who owns this AI chat conversation.
51
53
  #
52
54
  # @return [WhopSDK::Models::AIChatListResponse::User]
53
55
  required :user, -> { WhopSDK::Models::AIChatListResponse::User }
54
56
 
55
57
  # @!method initialize(id:, blended_token_usage:, created_at:, last_message_at:, message_count:, title:, updated_at:, user:)
56
- # An AI chat conversation belonging to a user
58
+ # Some parameter documentations has been truncated, see
59
+ # {WhopSDK::Models::AIChatListResponse} for more details.
57
60
  #
58
- # @param id [String] The unique identifier for the AI chat
61
+ # An AI-powered chat conversation belonging to a user, with optional scheduled
62
+ # automation.
59
63
  #
60
- # @param blended_token_usage [String] The total number of tokens used in the chat
64
+ # @param id [String] The unique identifier for the ai chat.
61
65
  #
62
- # @param created_at [Time] When the AI chat was created
66
+ # @param blended_token_usage [String] The total number of tokens consumed across all messages in this conversation.
63
67
  #
64
- # @param last_message_at [Time, nil] When the last message was sent
68
+ # @param created_at [Time] The datetime the ai chat was created.
65
69
  #
66
- # @param message_count [Integer] The number of messages in the chat
70
+ # @param last_message_at [Time, nil] The timestamp of the most recent message in this conversation. Null if no messag
67
71
  #
68
- # @param title [String, nil] The title of the AI chat
72
+ # @param message_count [Integer] The total number of messages exchanged in this conversation.
69
73
  #
70
- # @param updated_at [Time] When the AI chat was last updated
74
+ # @param title [String, nil] A short descriptive title for this AI chat conversation. Null if no title has be
71
75
  #
72
- # @param user [WhopSDK::Models::AIChatListResponse::User] The user who owns the AI chat
76
+ # @param updated_at [Time] The datetime the ai chat was last updated.
77
+ #
78
+ # @param user [WhopSDK::Models::AIChatListResponse::User] The user who owns this AI chat conversation.
73
79
 
74
80
  # @see WhopSDK::Models::AIChatListResponse#user
75
81
  class User < WhopSDK::Internal::Type::BaseModel
76
82
  # @!attribute id
77
- # The internal ID of the user.
83
+ # The unique identifier for the user.
78
84
  #
79
85
  # @return [String]
80
86
  required :id, String
81
87
 
82
88
  # @!method initialize(id:)
83
- # The user who owns the AI chat
89
+ # The user who owns this AI chat conversation.
84
90
  #
85
- # @param id [String] The internal ID of the user.
91
+ # @param id [String] The unique identifier for the user.
86
92
  end
87
93
  end
88
94
  end