whop_sdk 0.0.23 → 0.0.25

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 (284) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +52 -0
  3. data/README.md +3 -3
  4. data/lib/whop_sdk/client.rb +12 -0
  5. data/lib/whop_sdk/models/ai_chat_create_params.rb +22 -0
  6. data/lib/whop_sdk/models/ai_chat_create_response.rb +89 -0
  7. data/lib/whop_sdk/models/ai_chat_delete_params.rb +14 -0
  8. data/lib/whop_sdk/models/ai_chat_delete_response.rb +8 -0
  9. data/lib/whop_sdk/models/ai_chat_list_params.rb +46 -0
  10. data/lib/whop_sdk/models/ai_chat_list_response.rb +89 -0
  11. data/lib/whop_sdk/models/ai_chat_retrieve_params.rb +14 -0
  12. data/lib/whop_sdk/models/ai_chat_retrieve_response.rb +89 -0
  13. data/lib/whop_sdk/models/ai_chat_update_params.rb +22 -0
  14. data/lib/whop_sdk/models/ai_chat_update_response.rb +89 -0
  15. data/lib/whop_sdk/models/app_build_create_params.rb +16 -55
  16. data/lib/whop_sdk/models/app_create_params.rb +22 -1
  17. data/lib/whop_sdk/models/app_list_params.rb +6 -0
  18. data/lib/whop_sdk/models/app_update_params.rb +14 -53
  19. data/lib/whop_sdk/models/card_brands.rb +16 -0
  20. data/lib/whop_sdk/models/checkout_configuration_create_params.rb +32 -56
  21. data/lib/whop_sdk/models/company_create_params.rb +22 -1
  22. data/lib/whop_sdk/models/company_token_transaction_create_params.rb +69 -0
  23. data/lib/whop_sdk/models/company_token_transaction_create_response.rb +180 -0
  24. data/lib/whop_sdk/models/company_token_transaction_list_params.rb +84 -0
  25. data/lib/whop_sdk/models/company_token_transaction_list_response.rb +180 -0
  26. data/lib/whop_sdk/models/company_token_transaction_retrieve_params.rb +14 -0
  27. data/lib/whop_sdk/models/company_token_transaction_retrieve_response.rb +180 -0
  28. data/lib/whop_sdk/models/company_update_params.rb +28 -106
  29. data/lib/whop_sdk/models/course_create_params.rb +15 -62
  30. data/lib/whop_sdk/models/course_lesson_create_params.rb +14 -53
  31. data/lib/whop_sdk/models/course_lesson_update_params.rb +53 -214
  32. data/lib/whop_sdk/models/course_update_params.rb +14 -61
  33. data/lib/whop_sdk/models/dispute_update_evidence_params.rb +56 -212
  34. data/lib/whop_sdk/models/dm_member_create_params.rb +30 -0
  35. data/lib/whop_sdk/models/dm_member_create_response.rb +94 -0
  36. data/lib/whop_sdk/models/dm_member_delete_params.rb +14 -0
  37. data/lib/whop_sdk/models/dm_member_delete_response.rb +8 -0
  38. data/lib/whop_sdk/models/dm_member_list_params.rb +54 -0
  39. data/lib/whop_sdk/models/dm_member_list_response.rb +71 -0
  40. data/lib/whop_sdk/models/dm_member_retrieve_params.rb +14 -0
  41. data/lib/whop_sdk/models/dm_member_retrieve_response.rb +94 -0
  42. data/lib/whop_sdk/models/dm_member_update_params.rb +58 -0
  43. data/lib/whop_sdk/models/dm_member_update_response.rb +94 -0
  44. data/lib/whop_sdk/models/experience_create_params.rb +22 -1
  45. data/lib/whop_sdk/models/experience_update_params.rb +14 -53
  46. data/lib/whop_sdk/models/forum_post_create_params.rb +13 -52
  47. data/lib/whop_sdk/models/forum_post_update_params.rb +13 -52
  48. data/lib/whop_sdk/models/friendly_receipt_status.rb +23 -11
  49. data/lib/whop_sdk/models/ledger_account_retrieve_response.rb +1 -34
  50. data/lib/whop_sdk/models/member_list_response.rb +9 -1
  51. data/lib/whop_sdk/models/member_retrieve_response.rb +9 -1
  52. data/lib/whop_sdk/models/membership.rb +76 -2
  53. data/lib/whop_sdk/models/membership_list_response.rb +38 -2
  54. data/lib/whop_sdk/models/membership_uncancel_params.rb +14 -0
  55. data/lib/whop_sdk/models/message_create_params.rb +22 -53
  56. data/lib/whop_sdk/models/message_delete_params.rb +14 -0
  57. data/lib/whop_sdk/models/message_delete_response.rb +8 -0
  58. data/lib/whop_sdk/models/message_update_params.rb +14 -53
  59. data/lib/whop_sdk/models/payment.rb +17 -1
  60. data/lib/whop_sdk/models/payment_list_response.rb +17 -1
  61. data/lib/whop_sdk/models/payment_method_types.rb +59 -57
  62. data/lib/whop_sdk/models/payment_provider.rb +1 -0
  63. data/lib/whop_sdk/models/payout_method_created_webhook_event.rb +26 -1
  64. data/lib/whop_sdk/models/payout_method_list_response.rb +26 -1
  65. data/lib/whop_sdk/models/payout_method_retrieve_response.rb +26 -1
  66. data/lib/whop_sdk/models/plan_create_params.rb +14 -53
  67. data/lib/whop_sdk/models/plan_update_params.rb +14 -53
  68. data/lib/whop_sdk/models/reaction_create_params.rb +10 -1
  69. data/lib/whop_sdk/models/reaction_delete_params.rb +22 -0
  70. data/lib/whop_sdk/models/reaction_delete_response.rb +8 -0
  71. data/lib/whop_sdk/models/withdrawal_create_params.rb +21 -1
  72. data/lib/whop_sdk/models/withdrawal_create_response.rb +2 -9
  73. data/lib/whop_sdk/models/withdrawal_created_webhook_event.rb +2 -9
  74. data/lib/whop_sdk/models/withdrawal_list_response.rb +1 -9
  75. data/lib/whop_sdk/models/withdrawal_retrieve_response.rb +2 -9
  76. data/lib/whop_sdk/models/withdrawal_updated_webhook_event.rb +2 -9
  77. data/lib/whop_sdk/models.rb +32 -2
  78. data/lib/whop_sdk/resources/ai_chats.rb +141 -0
  79. data/lib/whop_sdk/resources/app_builds.rb +1 -1
  80. data/lib/whop_sdk/resources/apps.rb +4 -2
  81. data/lib/whop_sdk/resources/checkout_configurations.rb +3 -1
  82. data/lib/whop_sdk/resources/companies.rb +5 -3
  83. data/lib/whop_sdk/resources/company_token_transactions.rb +121 -0
  84. data/lib/whop_sdk/resources/course_lessons.rb +4 -4
  85. data/lib/whop_sdk/resources/courses.rb +4 -8
  86. data/lib/whop_sdk/resources/disputes.rb +4 -4
  87. data/lib/whop_sdk/resources/dm_members.rb +155 -0
  88. data/lib/whop_sdk/resources/experiences.rb +4 -2
  89. data/lib/whop_sdk/resources/forum_posts.rb +2 -2
  90. data/lib/whop_sdk/resources/memberships.rb +32 -0
  91. data/lib/whop_sdk/resources/messages.rb +29 -3
  92. data/lib/whop_sdk/resources/notifications.rb +4 -0
  93. data/lib/whop_sdk/resources/plans.rb +2 -2
  94. data/lib/whop_sdk/resources/reactions.rb +34 -1
  95. data/lib/whop_sdk/resources/withdrawals.rb +8 -1
  96. data/lib/whop_sdk/version.rb +1 -1
  97. data/lib/whop_sdk.rb +34 -1
  98. data/rbi/whop_sdk/client.rbi +9 -0
  99. data/rbi/whop_sdk/models/ai_chat_create_params.rbi +40 -0
  100. data/rbi/whop_sdk/models/ai_chat_create_response.rbi +128 -0
  101. data/rbi/whop_sdk/models/ai_chat_delete_params.rbi +27 -0
  102. data/rbi/whop_sdk/models/ai_chat_delete_response.rbi +7 -0
  103. data/rbi/whop_sdk/models/ai_chat_list_params.rbi +67 -0
  104. data/rbi/whop_sdk/models/ai_chat_list_response.rbi +125 -0
  105. data/rbi/whop_sdk/models/ai_chat_retrieve_params.rbi +27 -0
  106. data/rbi/whop_sdk/models/ai_chat_retrieve_response.rbi +128 -0
  107. data/rbi/whop_sdk/models/ai_chat_update_params.rbi +40 -0
  108. data/rbi/whop_sdk/models/ai_chat_update_response.rbi +128 -0
  109. data/rbi/whop_sdk/models/app_build_create_params.rbi +26 -89
  110. data/rbi/whop_sdk/models/app_create_params.rbi +36 -0
  111. data/rbi/whop_sdk/models/app_list_params.rbi +12 -0
  112. data/rbi/whop_sdk/models/app_update_params.rbi +21 -93
  113. data/rbi/whop_sdk/models/card_brands.rbi +17 -0
  114. data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +45 -87
  115. data/rbi/whop_sdk/models/company_create_params.rbi +39 -0
  116. data/rbi/whop_sdk/models/company_token_transaction_create_params.rbi +92 -0
  117. data/rbi/whop_sdk/models/company_token_transaction_create_response.rbi +308 -0
  118. data/rbi/whop_sdk/models/company_token_transaction_list_params.rbi +146 -0
  119. data/rbi/whop_sdk/models/company_token_transaction_list_response.rbi +308 -0
  120. data/rbi/whop_sdk/models/company_token_transaction_retrieve_params.rbi +30 -0
  121. data/rbi/whop_sdk/models/company_token_transaction_retrieve_response.rbi +312 -0
  122. data/rbi/whop_sdk/models/company_update_params.rbi +47 -185
  123. data/rbi/whop_sdk/models/course_create_params.rbi +24 -101
  124. data/rbi/whop_sdk/models/course_lesson_create_params.rbi +25 -92
  125. data/rbi/whop_sdk/models/course_lesson_update_params.rbi +97 -359
  126. data/rbi/whop_sdk/models/course_update_params.rbi +24 -101
  127. data/rbi/whop_sdk/models/dispute_update_evidence_params.rbi +116 -340
  128. data/rbi/whop_sdk/models/dm_member_create_params.rbi +51 -0
  129. data/rbi/whop_sdk/models/dm_member_create_response.rbi +179 -0
  130. data/rbi/whop_sdk/models/dm_member_delete_params.rbi +27 -0
  131. data/rbi/whop_sdk/models/dm_member_delete_response.rbi +8 -0
  132. data/rbi/whop_sdk/models/dm_member_list_params.rbi +75 -0
  133. data/rbi/whop_sdk/models/dm_member_list_response.rbi +124 -0
  134. data/rbi/whop_sdk/models/dm_member_retrieve_params.rbi +27 -0
  135. data/rbi/whop_sdk/models/dm_member_retrieve_response.rbi +179 -0
  136. data/rbi/whop_sdk/models/dm_member_update_params.rbi +130 -0
  137. data/rbi/whop_sdk/models/dm_member_update_response.rbi +179 -0
  138. data/rbi/whop_sdk/models/experience_create_params.rbi +41 -0
  139. data/rbi/whop_sdk/models/experience_update_params.rbi +24 -93
  140. data/rbi/whop_sdk/models/forum_post_create_params.rbi +18 -94
  141. data/rbi/whop_sdk/models/forum_post_update_params.rbi +18 -94
  142. data/rbi/whop_sdk/models/friendly_receipt_status.rbi +62 -17
  143. data/rbi/whop_sdk/models/ledger_account_retrieve_response.rbi +0 -105
  144. data/rbi/whop_sdk/models/member_list_response.rbi +8 -0
  145. data/rbi/whop_sdk/models/member_retrieve_response.rbi +8 -0
  146. data/rbi/whop_sdk/models/membership.rbi +126 -4
  147. data/rbi/whop_sdk/models/membership_list_response.rbi +98 -4
  148. data/rbi/whop_sdk/models/membership_uncancel_params.rbi +27 -0
  149. data/rbi/whop_sdk/models/message_create_params.rbi +26 -94
  150. data/rbi/whop_sdk/models/message_delete_params.rbi +27 -0
  151. data/rbi/whop_sdk/models/message_delete_response.rbi +8 -0
  152. data/rbi/whop_sdk/models/message_update_params.rbi +18 -94
  153. data/rbi/whop_sdk/models/payment.rbi +16 -0
  154. data/rbi/whop_sdk/models/payment_list_response.rbi +16 -0
  155. data/rbi/whop_sdk/models/payment_method_types.rbi +67 -64
  156. data/rbi/whop_sdk/models/payment_provider.rbi +1 -0
  157. data/rbi/whop_sdk/models/payout_method_created_webhook_event.rbi +26 -0
  158. data/rbi/whop_sdk/models/payout_method_list_response.rbi +26 -0
  159. data/rbi/whop_sdk/models/payout_method_retrieve_response.rbi +26 -0
  160. data/rbi/whop_sdk/models/plan_create_params.rbi +21 -93
  161. data/rbi/whop_sdk/models/plan_update_params.rbi +21 -93
  162. data/rbi/whop_sdk/models/reaction_create_params.rbi +10 -0
  163. data/rbi/whop_sdk/models/reaction_delete_params.rbi +40 -0
  164. data/rbi/whop_sdk/models/reaction_delete_response.rbi +8 -0
  165. data/rbi/whop_sdk/models/withdrawal_create_params.rbi +18 -0
  166. data/rbi/whop_sdk/models/withdrawal_create_response.rbi +8 -11
  167. data/rbi/whop_sdk/models/withdrawal_created_webhook_event.rbi +8 -11
  168. data/rbi/whop_sdk/models/withdrawal_list_response.rbi +3 -11
  169. data/rbi/whop_sdk/models/withdrawal_retrieve_response.rbi +8 -11
  170. data/rbi/whop_sdk/models/withdrawal_updated_webhook_event.rbi +8 -11
  171. data/rbi/whop_sdk/models.rbi +35 -2
  172. data/rbi/whop_sdk/resources/ai_chats.rbi +108 -0
  173. data/rbi/whop_sdk/resources/app_builds.rbi +1 -5
  174. data/rbi/whop_sdk/resources/apps.rbi +4 -7
  175. data/rbi/whop_sdk/resources/checkout_configurations.rbi +3 -0
  176. data/rbi/whop_sdk/resources/companies.rbi +5 -13
  177. data/rbi/whop_sdk/resources/company_token_transactions.rbi +114 -0
  178. data/rbi/whop_sdk/resources/course_lessons.rbi +4 -24
  179. data/rbi/whop_sdk/resources/courses.rbi +2 -20
  180. data/rbi/whop_sdk/resources/disputes.rbi +4 -16
  181. data/rbi/whop_sdk/resources/dm_members.rbi +128 -0
  182. data/rbi/whop_sdk/resources/experiences.rbi +4 -7
  183. data/rbi/whop_sdk/resources/forum_posts.rbi +2 -12
  184. data/rbi/whop_sdk/resources/memberships.rbi +26 -0
  185. data/rbi/whop_sdk/resources/messages.rbi +23 -12
  186. data/rbi/whop_sdk/resources/notifications.rbi +4 -0
  187. data/rbi/whop_sdk/resources/plans.rbi +2 -14
  188. data/rbi/whop_sdk/resources/reactions.rbi +26 -0
  189. data/rbi/whop_sdk/resources/withdrawals.rbi +7 -0
  190. data/sig/whop_sdk/client.rbs +6 -0
  191. data/sig/whop_sdk/models/ai_chat_create_params.rbs +23 -0
  192. data/sig/whop_sdk/models/ai_chat_create_response.rbs +65 -0
  193. data/sig/whop_sdk/models/ai_chat_delete_params.rbs +15 -0
  194. data/sig/whop_sdk/models/ai_chat_delete_response.rbs +5 -0
  195. data/sig/whop_sdk/models/ai_chat_list_params.rbs +36 -0
  196. data/sig/whop_sdk/models/ai_chat_list_response.rbs +65 -0
  197. data/sig/whop_sdk/models/ai_chat_retrieve_params.rbs +15 -0
  198. data/sig/whop_sdk/models/ai_chat_retrieve_response.rbs +65 -0
  199. data/sig/whop_sdk/models/ai_chat_update_params.rbs +23 -0
  200. data/sig/whop_sdk/models/ai_chat_update_response.rbs +65 -0
  201. data/sig/whop_sdk/models/app_build_create_params.rbs +9 -30
  202. data/sig/whop_sdk/models/app_create_params.rbs +20 -1
  203. data/sig/whop_sdk/models/app_list_params.rbs +13 -1
  204. data/sig/whop_sdk/models/app_update_params.rbs +9 -30
  205. data/sig/whop_sdk/models/card_brands.rbs +32 -0
  206. data/sig/whop_sdk/models/checkout_configuration_create_params.rbs +19 -30
  207. data/sig/whop_sdk/models/company_create_params.rbs +15 -0
  208. data/sig/whop_sdk/models/company_token_transaction_create_params.rbs +56 -0
  209. data/sig/whop_sdk/models/company_token_transaction_create_response.rbs +115 -0
  210. data/sig/whop_sdk/models/company_token_transaction_list_params.rbs +68 -0
  211. data/sig/whop_sdk/models/company_token_transaction_list_response.rbs +115 -0
  212. data/sig/whop_sdk/models/company_token_transaction_retrieve_params.rbs +15 -0
  213. data/sig/whop_sdk/models/company_token_transaction_retrieve_response.rbs +115 -0
  214. data/sig/whop_sdk/models/company_update_params.rbs +18 -60
  215. data/sig/whop_sdk/models/course_create_params.rbs +9 -35
  216. data/sig/whop_sdk/models/course_lesson_create_params.rbs +9 -30
  217. data/sig/whop_sdk/models/course_lesson_update_params.rbs +36 -120
  218. data/sig/whop_sdk/models/course_update_params.rbs +9 -35
  219. data/sig/whop_sdk/models/dispute_update_evidence_params.rbs +36 -120
  220. data/sig/whop_sdk/models/dm_member_create_params.rbs +28 -0
  221. data/sig/whop_sdk/models/dm_member_create_response.rbs +71 -0
  222. data/sig/whop_sdk/models/dm_member_delete_params.rbs +15 -0
  223. data/sig/whop_sdk/models/dm_member_delete_response.rbs +5 -0
  224. data/sig/whop_sdk/models/dm_member_list_params.rbs +46 -0
  225. data/sig/whop_sdk/models/dm_member_list_response.rbs +54 -0
  226. data/sig/whop_sdk/models/dm_member_retrieve_params.rbs +15 -0
  227. data/sig/whop_sdk/models/dm_member_retrieve_response.rbs +71 -0
  228. data/sig/whop_sdk/models/dm_member_update_params.rbs +57 -0
  229. data/sig/whop_sdk/models/dm_member_update_response.rbs +71 -0
  230. data/sig/whop_sdk/models/experience_create_params.rbs +15 -0
  231. data/sig/whop_sdk/models/experience_update_params.rbs +9 -30
  232. data/sig/whop_sdk/models/forum_post_create_params.rbs +9 -30
  233. data/sig/whop_sdk/models/forum_post_update_params.rbs +9 -30
  234. data/sig/whop_sdk/models/friendly_receipt_status.rbs +46 -22
  235. data/sig/whop_sdk/models/ledger_account_retrieve_response.rbs +0 -38
  236. data/sig/whop_sdk/models/member_list_response.rbs +5 -0
  237. data/sig/whop_sdk/models/member_retrieve_response.rbs +5 -0
  238. data/sig/whop_sdk/models/membership.rbs +65 -4
  239. data/sig/whop_sdk/models/membership_list_response.rbs +45 -4
  240. data/sig/whop_sdk/models/membership_uncancel_params.rbs +15 -0
  241. data/sig/whop_sdk/models/message_create_params.rbs +15 -31
  242. data/sig/whop_sdk/models/message_delete_params.rbs +15 -0
  243. data/sig/whop_sdk/models/message_delete_response.rbs +5 -0
  244. data/sig/whop_sdk/models/message_update_params.rbs +9 -30
  245. data/sig/whop_sdk/models/payment.rbs +10 -0
  246. data/sig/whop_sdk/models/payment_list_response.rbs +10 -0
  247. data/sig/whop_sdk/models/payment_method_types.rbs +119 -115
  248. data/sig/whop_sdk/models/payment_provider.rbs +2 -0
  249. data/sig/whop_sdk/models/payout_method_created_webhook_event.rbs +15 -0
  250. data/sig/whop_sdk/models/payout_method_list_response.rbs +15 -0
  251. data/sig/whop_sdk/models/payout_method_retrieve_response.rbs +15 -0
  252. data/sig/whop_sdk/models/plan_create_params.rbs +9 -30
  253. data/sig/whop_sdk/models/plan_update_params.rbs +9 -30
  254. data/sig/whop_sdk/models/reaction_create_params.rbs +5 -1
  255. data/sig/whop_sdk/models/reaction_delete_params.rbs +23 -0
  256. data/sig/whop_sdk/models/reaction_delete_response.rbs +5 -0
  257. data/sig/whop_sdk/models/withdrawal_create_params.rbs +11 -1
  258. data/sig/whop_sdk/models/withdrawal_create_response.rbs +5 -8
  259. data/sig/whop_sdk/models/withdrawal_created_webhook_event.rbs +5 -8
  260. data/sig/whop_sdk/models/withdrawal_list_response.rbs +3 -8
  261. data/sig/whop_sdk/models/withdrawal_retrieve_response.rbs +5 -8
  262. data/sig/whop_sdk/models/withdrawal_updated_webhook_event.rbs +5 -8
  263. data/sig/whop_sdk/models.rbs +32 -2
  264. data/sig/whop_sdk/resources/ai_chats.rbs +33 -0
  265. data/sig/whop_sdk/resources/app_builds.rbs +1 -1
  266. data/sig/whop_sdk/resources/apps.rbs +2 -1
  267. data/sig/whop_sdk/resources/checkout_configurations.rbs +1 -0
  268. data/sig/whop_sdk/resources/companies.rbs +3 -2
  269. data/sig/whop_sdk/resources/company_token_transactions.rbs +34 -0
  270. data/sig/whop_sdk/resources/course_lessons.rbs +4 -4
  271. data/sig/whop_sdk/resources/courses.rbs +2 -4
  272. data/sig/whop_sdk/resources/disputes.rbs +4 -4
  273. data/sig/whop_sdk/resources/dm_members.rbs +36 -0
  274. data/sig/whop_sdk/resources/experiences.rbs +2 -1
  275. data/sig/whop_sdk/resources/forum_posts.rbs +2 -2
  276. data/sig/whop_sdk/resources/memberships.rbs +5 -0
  277. data/sig/whop_sdk/resources/messages.rbs +5 -2
  278. data/sig/whop_sdk/resources/plans.rbs +2 -2
  279. data/sig/whop_sdk/resources/reactions.rbs +7 -0
  280. data/sig/whop_sdk/resources/withdrawals.rbs +2 -0
  281. metadata +118 -5
  282. data/lib/whop_sdk/models/withdrawal_types.rb +0 -16
  283. data/rbi/whop_sdk/models/withdrawal_types.rbi +0 -20
  284. data/sig/whop_sdk/models/withdrawal_types.rbs +0 -14
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1c724e98153a9b2da18320ec44a1a8c6210873521c6eb4525c5f93207913190e
4
- data.tar.gz: 418b37092a6facdd88dfc74ff4e273767fcb62efa4dfed034cd783cf3ee8790c
3
+ metadata.gz: 4e5eca1e3a76d76c0abbd65ac3f711827b980070c18a14cc5ada1e3e974cd3b3
4
+ data.tar.gz: 86c30174c97849aa5eb3075fc11216ba68789b2b9e088e7e3cc0fcd43a4913dd
5
5
  SHA512:
6
- metadata.gz: 121e768b3fd4815b3e63d0a40e519468bca26dd2768ebaaf9ee885c653a876e295abdac34f0e584c952054a019ce22bda4785fac3f14c8d54819833b40589026
7
- data.tar.gz: 2e92c54e7a0c90b4c5df4357b1ba0744cb2bf0f2cd4e40e35d4f53f8f029073fd35d7dfb4f1b330bb5abb3f64c463868944458f753e8517a9f44ae31ecbaaa56
6
+ metadata.gz: 7d4775ef928025478833b16791453cb3ad411e6e98ed46fb514057df360b1800757ef3af77eb6927d9ae8569a1710d06b843d088c0091b125d954d155a722f55
7
+ data.tar.gz: e02c7d6b5d9819986e5ac23c38c12844e5c79e71cb118d429e36d53445e90792042877c13f09a7c743e0b6b83cbfe969531b2565a5006fc91f49f0c86aad2bf5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,57 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.0.25 (2026-01-29)
4
+
5
+ Full Changelog: [v0.0.24...v0.0.25](https://github.com/whopio/whopsdk-ruby/compare/v0.0.24...v0.0.25)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([44184b5](https://github.com/whopio/whopsdk-ruby/commit/44184b56139c2b4843f0e8ed9175b6be9b9c81bd))
10
+ * **api:** api update ([f5a8974](https://github.com/whopio/whopsdk-ruby/commit/f5a8974925764c0650da47ef456b8a16283477d8))
11
+ * **api:** api update ([810edc1](https://github.com/whopio/whopsdk-ruby/commit/810edc1b45b05d50e106ba445253797509f5ace3))
12
+ * **api:** api update ([6a9ad61](https://github.com/whopio/whopsdk-ruby/commit/6a9ad618f1b4cdc4197d250b4fb10a95d4fa5088))
13
+ * **api:** manual updates ([7c26b23](https://github.com/whopio/whopsdk-ruby/commit/7c26b2393e9a36c4e42df81d1c15fc5569913a79))
14
+
15
+
16
+ ### Bug Fixes
17
+
18
+ * **docs:** fix mcp installation instructions for remote servers ([b9e24d0](https://github.com/whopio/whopsdk-ruby/commit/b9e24d0a6fb0efa7370a94e5d5b4f9e2778de8d7))
19
+
20
+ ## 0.0.24 (2026-01-25)
21
+
22
+ Full Changelog: [v0.0.23...v0.0.24](https://github.com/whopio/whopsdk-ruby/compare/v0.0.23...v0.0.24)
23
+
24
+ ### Features
25
+
26
+ * **api:** api update ([3f8895d](https://github.com/whopio/whopsdk-ruby/commit/3f8895d21e7f848239d7d5237dfe03c1c9bb40a5))
27
+ * **api:** api update ([8c45d4d](https://github.com/whopio/whopsdk-ruby/commit/8c45d4dac11f2e932e5eb0f5c1332539256f6f64))
28
+ * **api:** api update ([56c5958](https://github.com/whopio/whopsdk-ruby/commit/56c59586b405691fbb2c2673df015a6c4c6bac77))
29
+ * **api:** api update ([575a5ca](https://github.com/whopio/whopsdk-ruby/commit/575a5ca14f1a3e9feb9203f2a51bc39bc8cfe149))
30
+ * **api:** api update ([903a063](https://github.com/whopio/whopsdk-ruby/commit/903a0634fd7f585eee51454982dc27a08a0f0948))
31
+ * **api:** api update ([72ec1cb](https://github.com/whopio/whopsdk-ruby/commit/72ec1cbe453d7cc8342d2996216780493833e4da))
32
+ * **api:** api update ([2cf1fad](https://github.com/whopio/whopsdk-ruby/commit/2cf1fadbece71a34040e07c4323de0b4884cedc5))
33
+ * **api:** api update ([c26ce69](https://github.com/whopio/whopsdk-ruby/commit/c26ce69644916463ef0a386090ef1e592f2ac07f))
34
+ * **api:** api update ([d249eca](https://github.com/whopio/whopsdk-ruby/commit/d249eca80ddf15dee5653c08e3beef0835d41738))
35
+ * **api:** api update ([dc41323](https://github.com/whopio/whopsdk-ruby/commit/dc4132327cf3e40421bf9f3caeb62323ec0d1ab2))
36
+ * **api:** api update ([89df280](https://github.com/whopio/whopsdk-ruby/commit/89df280a85ad325ba5dd06ffffe7f5810590e92f))
37
+ * **api:** api update ([4cafc17](https://github.com/whopio/whopsdk-ruby/commit/4cafc1725f1047d564d1560ce959b20bf5493aa2))
38
+ * **api:** api update ([c9daa39](https://github.com/whopio/whopsdk-ruby/commit/c9daa39be528817b477fca8a6b460a31a39504e8))
39
+ * **api:** api update ([71ef795](https://github.com/whopio/whopsdk-ruby/commit/71ef7957231d741348eeb7f10e42304a6f4e9ffb))
40
+ * **api:** api update ([652a0be](https://github.com/whopio/whopsdk-ruby/commit/652a0bedb7dd68fd8e765228bbe9d251bf7c9f19))
41
+ * **api:** api update ([cb282a1](https://github.com/whopio/whopsdk-ruby/commit/cb282a111add351df6dfa3fec0fb8a428344f9bf))
42
+ * **api:** api update ([555ee4d](https://github.com/whopio/whopsdk-ruby/commit/555ee4d29583437178d523cead08eefb6690e178))
43
+ * **api:** api update ([7aab597](https://github.com/whopio/whopsdk-ruby/commit/7aab597e000981c1cb8a3048b429fd68b075cc21))
44
+ * **api:** api update ([49ad3d2](https://github.com/whopio/whopsdk-ruby/commit/49ad3d22688f431ccc5b327dd84b583591905300))
45
+ * **api:** api update ([54634cf](https://github.com/whopio/whopsdk-ruby/commit/54634cf5c996c93e3c39ce69dcc646fedbceb473))
46
+ * **api:** api update ([8a9cfc7](https://github.com/whopio/whopsdk-ruby/commit/8a9cfc7e1dc415b22d57e509b9227b0d60c88f9d))
47
+ * **api:** manual updates ([fb65c56](https://github.com/whopio/whopsdk-ruby/commit/fb65c56b9fb542b2aec52bcf1b508ce49f5da572))
48
+
49
+
50
+ ### Chores
51
+
52
+ * **internal:** update `actions/checkout` version ([c27b1b0](https://github.com/whopio/whopsdk-ruby/commit/c27b1b08d527e42f390dd61d00716f12095b8026))
53
+ * move `cgi` into dependencies for ruby 4 ([ea9feac](https://github.com/whopio/whopsdk-ruby/commit/ea9feac06b6b5b7e217cc62207993c5132348add))
54
+
3
55
  ## 0.0.23 (2026-01-09)
4
56
 
5
57
  Full Changelog: [v0.0.22...v0.0.23](https://github.com/whopio/whopsdk-ruby/compare/v0.0.22...v0.0.23)
data/README.md CHANGED
@@ -8,8 +8,8 @@ It is generated with [Stainless](https://www.stainless.com/).
8
8
 
9
9
  Use the Whop MCP Server to enable AI assistants to interact with this API, allowing them to explore endpoints, make test requests, and use documentation to help integrate this SDK into your application.
10
10
 
11
- [![Add to Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en-US/install-mcp?name=%40whop%2Fmcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkB3aG9wL21jcCJdfQ)
12
- [![Install in VS Code](https://img.shields.io/badge/_-Add_to_VS_Code-blue?style=for-the-badge&logo=data:image/svg%2bxml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCA0MCA0MCI+PHBhdGggZmlsbD0iI0VFRSIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMzAuMjM1IDM5Ljg4NGEyLjQ5MSAyLjQ5MSAwIDAgMS0xLjc4MS0uNzNMMTIuNyAyNC43OGwtMy40NiAyLjYyNC0zLjQwNiAyLjU4MmExLjY2NSAxLjY2NSAwIDAgMS0xLjA4Mi4zMzggMS42NjQgMS42NjQgMCAwIDEtMS4wNDYtLjQzMWwtMi4yLTJhMS42NjYgMS42NjYgMCAwIDEgMC0yLjQ2M0w3LjQ1OCAyMCA0LjY3IDE3LjQ1MyAxLjUwNyAxNC41N2ExLjY2NSAxLjY2NSAwIDAgMSAwLTIuNDYzbDIuMi0yYTEuNjY1IDEuNjY1IDAgMCAxIDIuMTMtLjA5N2w2Ljg2MyA1LjIwOUwyOC40NTIuODQ0YTIuNDg4IDIuNDg4IDAgMCAxIDEuODQxLS43MjljLjM1MS4wMDkuNjk5LjA5MSAxLjAxOS4yNDVsOC4yMzYgMy45NjFhMi41IDIuNSAwIDAgMSAxLjQxNSAyLjI1M3YuMDk5LS4wNDVWMzMuMzd2LS4wNDUuMDk1YTIuNTAxIDIuNTAxIDAgMCAxLTEuNDE2IDIuMjU3bC04LjIzNSAzLjk2MWEyLjQ5MiAyLjQ5MiAwIDAgMS0xLjA3Ny4yNDZabS43MTYtMjguOTQ3LTExLjk0OCA5LjA2MiAxMS45NTIgOS4wNjUtLjAwNC0xOC4xMjdaIi8+PC9zdmc+)](https://vscode.stainless.com/mcp/%7B%22name%22%3A%22%40whop%2Fmcp%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40whop%2Fmcp%22%5D%7D)
11
+ [![Add to Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en-US/install-mcp?name=%40whop%2Fmcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkB3aG9wL21jcCJdLCJlbnYiOnsiV0hPUF9BUElfS0VZIjoiTXkgQVBJIEtleSIsIldIT1BfV0VCSE9PS19TRUNSRVQiOiJNeSBXZWJob29rIEtleSIsIldIT1BfQVBQX0lEIjoiYXBwX3h4eHh4eHh4eHh4eHh4In19)
12
+ [![Install in VS Code](https://img.shields.io/badge/_-Add_to_VS_Code-blue?style=for-the-badge&logo=data:image/svg%2bxml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCA0MCA0MCI+PHBhdGggZmlsbD0iI0VFRSIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMzAuMjM1IDM5Ljg4NGEyLjQ5MSAyLjQ5MSAwIDAgMS0xLjc4MS0uNzNMMTIuNyAyNC43OGwtMy40NiAyLjYyNC0zLjQwNiAyLjU4MmExLjY2NSAxLjY2NSAwIDAgMS0xLjA4Mi4zMzggMS42NjQgMS42NjQgMCAwIDEtMS4wNDYtLjQzMWwtMi4yLTJhMS42NjYgMS42NjYgMCAwIDEgMC0yLjQ2M0w3LjQ1OCAyMCA0LjY3IDE3LjQ1MyAxLjUwNyAxNC41N2ExLjY2NSAxLjY2NSAwIDAgMSAwLTIuNDYzbDIuMi0yYTEuNjY1IDEuNjY1IDAgMCAxIDIuMTMtLjA5N2w2Ljg2MyA1LjIwOUwyOC40NTIuODQ0YTIuNDg4IDIuNDg4IDAgMCAxIDEuODQxLS43MjljLjM1MS4wMDkuNjk5LjA5MSAxLjAxOS4yNDVsOC4yMzYgMy45NjFhMi41IDIuNSAwIDAgMSAxLjQxNSAyLjI1M3YuMDk5LS4wNDVWMzMuMzd2LS4wNDUuMDk1YTIuNTAxIDIuNTAxIDAgMCAxLTEuNDE2IDIuMjU3bC04LjIzNSAzLjk2MWEyLjQ5MiAyLjQ5MiAwIDAgMS0xLjA3Ny4yNDZabS43MTYtMjguOTQ3LTExLjk0OCA5LjA2MiAxMS45NTIgOS4wNjUtLjAwNC0xOC4xMjdaIi8+PC9zdmc+)](https://vscode.stainless.com/mcp/%7B%22name%22%3A%22%40whop%2Fmcp%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40whop%2Fmcp%22%5D%2C%22env%22%3A%7B%22WHOP_API_KEY%22%3A%22My%20API%20Key%22%2C%22WHOP_WEBHOOK_SECRET%22%3A%22My%20Webhook%20Key%22%2C%22WHOP_APP_ID%22%3A%22app_xxxxxxxxxxxxxx%22%7D%7D)
13
13
 
14
14
  > Note: You may need to set environment variables in your MCP client.
15
15
 
@@ -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.23"
29
+ gem "whop_sdk", "~> 0.0.25"
30
30
  ```
31
31
 
32
32
  <!-- x-release-please-end -->
@@ -159,6 +159,15 @@ module WhopSDK
159
159
  # @return [WhopSDK::Resources::Files]
160
160
  attr_reader :files
161
161
 
162
+ # @return [WhopSDK::Resources::CompanyTokenTransactions]
163
+ attr_reader :company_token_transactions
164
+
165
+ # @return [WhopSDK::Resources::DmMembers]
166
+ attr_reader :dm_members
167
+
168
+ # @return [WhopSDK::Resources::AIChats]
169
+ attr_reader :ai_chats
170
+
162
171
  # @api private
163
172
  #
164
173
  # @return [Hash{String=>String}]
@@ -261,6 +270,9 @@ module WhopSDK
261
270
  @leads = WhopSDK::Resources::Leads.new(client: self)
262
271
  @topups = WhopSDK::Resources::Topups.new(client: self)
263
272
  @files = WhopSDK::Resources::Files.new(client: self)
273
+ @company_token_transactions = WhopSDK::Resources::CompanyTokenTransactions.new(client: self)
274
+ @dm_members = WhopSDK::Resources::DmMembers.new(client: self)
275
+ @ai_chats = WhopSDK::Resources::AIChats.new(client: self)
264
276
  end
265
277
 
266
278
  # Verifies a Whop user token
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # @see WhopSDK::Resources::AIChats#create
6
+ class AIChatCreateParams < WhopSDK::Internal::Type::BaseModel
7
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
8
+ include WhopSDK::Internal::Type::RequestParameters
9
+
10
+ # @!attribute title
11
+ # The title of the AI chat
12
+ #
13
+ # @return [String, nil]
14
+ optional :title, String, nil?: true
15
+
16
+ # @!method initialize(title: nil, request_options: {})
17
+ # @param title [String, nil] The title of the AI chat
18
+ #
19
+ # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,89 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # @see WhopSDK::Resources::AIChats#create
6
+ class AIChatCreateResponse < WhopSDK::Internal::Type::BaseModel
7
+ # @!attribute id
8
+ # The unique identifier for the AI chat
9
+ #
10
+ # @return [String]
11
+ required :id, String
12
+
13
+ # @!attribute blended_token_usage
14
+ # The total number of tokens used in the chat
15
+ #
16
+ # @return [String]
17
+ required :blended_token_usage, String
18
+
19
+ # @!attribute created_at
20
+ # When the AI chat was created
21
+ #
22
+ # @return [Time]
23
+ required :created_at, Time
24
+
25
+ # @!attribute last_message_at
26
+ # When the last message was sent
27
+ #
28
+ # @return [Time, nil]
29
+ required :last_message_at, Time, nil?: true
30
+
31
+ # @!attribute message_count
32
+ # The number of messages in the chat
33
+ #
34
+ # @return [Integer]
35
+ required :message_count, Integer
36
+
37
+ # @!attribute title
38
+ # The title of the AI chat
39
+ #
40
+ # @return [String, nil]
41
+ required :title, String, nil?: true
42
+
43
+ # @!attribute updated_at
44
+ # When the AI chat was last updated
45
+ #
46
+ # @return [Time]
47
+ required :updated_at, Time
48
+
49
+ # @!attribute user
50
+ # The user who owns the AI chat
51
+ #
52
+ # @return [WhopSDK::Models::AIChatCreateResponse::User]
53
+ required :user, -> { WhopSDK::Models::AIChatCreateResponse::User }
54
+
55
+ # @!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
57
+ #
58
+ # @param id [String] The unique identifier for the AI chat
59
+ #
60
+ # @param blended_token_usage [String] The total number of tokens used in the chat
61
+ #
62
+ # @param created_at [Time] When the AI chat was created
63
+ #
64
+ # @param last_message_at [Time, nil] When the last message was sent
65
+ #
66
+ # @param message_count [Integer] The number of messages in the chat
67
+ #
68
+ # @param title [String, nil] The title of the AI chat
69
+ #
70
+ # @param updated_at [Time] When the AI chat was last updated
71
+ #
72
+ # @param user [WhopSDK::Models::AIChatCreateResponse::User] The user who owns the AI chat
73
+
74
+ # @see WhopSDK::Models::AIChatCreateResponse#user
75
+ class User < WhopSDK::Internal::Type::BaseModel
76
+ # @!attribute id
77
+ # The internal ID of the user.
78
+ #
79
+ # @return [String]
80
+ required :id, String
81
+
82
+ # @!method initialize(id:)
83
+ # The user who owns the AI chat
84
+ #
85
+ # @param id [String] The internal ID of the user.
86
+ end
87
+ end
88
+ end
89
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # @see WhopSDK::Resources::AIChats#delete
6
+ class AIChatDeleteParams < WhopSDK::Internal::Type::BaseModel
7
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
8
+ include WhopSDK::Internal::Type::RequestParameters
9
+
10
+ # @!method initialize(request_options: {})
11
+ # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # @type [WhopSDK::Internal::Type::Converter]
6
+ AIChatDeleteResponse = WhopSDK::Internal::Type::Boolean
7
+ end
8
+ end
@@ -0,0 +1,46 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # @see WhopSDK::Resources::AIChats#list
6
+ class AIChatListParams < WhopSDK::Internal::Type::BaseModel
7
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
8
+ include WhopSDK::Internal::Type::RequestParameters
9
+
10
+ # @!attribute after
11
+ # Returns the elements in the list that come after the specified cursor.
12
+ #
13
+ # @return [String, nil]
14
+ optional :after, String, nil?: true
15
+
16
+ # @!attribute before
17
+ # Returns the elements in the list that come before the specified cursor.
18
+ #
19
+ # @return [String, nil]
20
+ optional :before, String, nil?: true
21
+
22
+ # @!attribute first
23
+ # Returns the first _n_ elements from the list.
24
+ #
25
+ # @return [Integer, nil]
26
+ optional :first, Integer, nil?: true
27
+
28
+ # @!attribute last
29
+ # Returns the last _n_ elements from the list.
30
+ #
31
+ # @return [Integer, nil]
32
+ optional :last, Integer, nil?: true
33
+
34
+ # @!method initialize(after: nil, before: nil, first: nil, last: nil, request_options: {})
35
+ # @param after [String, nil] Returns the elements in the list that come after the specified cursor.
36
+ #
37
+ # @param before [String, nil] Returns the elements in the list that come before the specified cursor.
38
+ #
39
+ # @param first [Integer, nil] Returns the first _n_ elements from the list.
40
+ #
41
+ # @param last [Integer, nil] Returns the last _n_ elements from the list.
42
+ #
43
+ # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,89 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # @see WhopSDK::Resources::AIChats#list
6
+ class AIChatListResponse < WhopSDK::Internal::Type::BaseModel
7
+ # @!attribute id
8
+ # The unique identifier for the AI chat
9
+ #
10
+ # @return [String]
11
+ required :id, String
12
+
13
+ # @!attribute blended_token_usage
14
+ # The total number of tokens used in the chat
15
+ #
16
+ # @return [String]
17
+ required :blended_token_usage, String
18
+
19
+ # @!attribute created_at
20
+ # When the AI chat was created
21
+ #
22
+ # @return [Time]
23
+ required :created_at, Time
24
+
25
+ # @!attribute last_message_at
26
+ # When the last message was sent
27
+ #
28
+ # @return [Time, nil]
29
+ required :last_message_at, Time, nil?: true
30
+
31
+ # @!attribute message_count
32
+ # The number of messages in the chat
33
+ #
34
+ # @return [Integer]
35
+ required :message_count, Integer
36
+
37
+ # @!attribute title
38
+ # The title of the AI chat
39
+ #
40
+ # @return [String, nil]
41
+ required :title, String, nil?: true
42
+
43
+ # @!attribute updated_at
44
+ # When the AI chat was last updated
45
+ #
46
+ # @return [Time]
47
+ required :updated_at, Time
48
+
49
+ # @!attribute user
50
+ # The user who owns the AI chat
51
+ #
52
+ # @return [WhopSDK::Models::AIChatListResponse::User]
53
+ required :user, -> { WhopSDK::Models::AIChatListResponse::User }
54
+
55
+ # @!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
57
+ #
58
+ # @param id [String] The unique identifier for the AI chat
59
+ #
60
+ # @param blended_token_usage [String] The total number of tokens used in the chat
61
+ #
62
+ # @param created_at [Time] When the AI chat was created
63
+ #
64
+ # @param last_message_at [Time, nil] When the last message was sent
65
+ #
66
+ # @param message_count [Integer] The number of messages in the chat
67
+ #
68
+ # @param title [String, nil] The title of the AI chat
69
+ #
70
+ # @param updated_at [Time] When the AI chat was last updated
71
+ #
72
+ # @param user [WhopSDK::Models::AIChatListResponse::User] The user who owns the AI chat
73
+
74
+ # @see WhopSDK::Models::AIChatListResponse#user
75
+ class User < WhopSDK::Internal::Type::BaseModel
76
+ # @!attribute id
77
+ # The internal ID of the user.
78
+ #
79
+ # @return [String]
80
+ required :id, String
81
+
82
+ # @!method initialize(id:)
83
+ # The user who owns the AI chat
84
+ #
85
+ # @param id [String] The internal ID of the user.
86
+ end
87
+ end
88
+ end
89
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # @see WhopSDK::Resources::AIChats#retrieve
6
+ class AIChatRetrieveParams < WhopSDK::Internal::Type::BaseModel
7
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
8
+ include WhopSDK::Internal::Type::RequestParameters
9
+
10
+ # @!method initialize(request_options: {})
11
+ # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,89 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # @see WhopSDK::Resources::AIChats#retrieve
6
+ class AIChatRetrieveResponse < WhopSDK::Internal::Type::BaseModel
7
+ # @!attribute id
8
+ # The unique identifier for the AI chat
9
+ #
10
+ # @return [String]
11
+ required :id, String
12
+
13
+ # @!attribute blended_token_usage
14
+ # The total number of tokens used in the chat
15
+ #
16
+ # @return [String]
17
+ required :blended_token_usage, String
18
+
19
+ # @!attribute created_at
20
+ # When the AI chat was created
21
+ #
22
+ # @return [Time]
23
+ required :created_at, Time
24
+
25
+ # @!attribute last_message_at
26
+ # When the last message was sent
27
+ #
28
+ # @return [Time, nil]
29
+ required :last_message_at, Time, nil?: true
30
+
31
+ # @!attribute message_count
32
+ # The number of messages in the chat
33
+ #
34
+ # @return [Integer]
35
+ required :message_count, Integer
36
+
37
+ # @!attribute title
38
+ # The title of the AI chat
39
+ #
40
+ # @return [String, nil]
41
+ required :title, String, nil?: true
42
+
43
+ # @!attribute updated_at
44
+ # When the AI chat was last updated
45
+ #
46
+ # @return [Time]
47
+ required :updated_at, Time
48
+
49
+ # @!attribute user
50
+ # The user who owns the AI chat
51
+ #
52
+ # @return [WhopSDK::Models::AIChatRetrieveResponse::User]
53
+ required :user, -> { WhopSDK::Models::AIChatRetrieveResponse::User }
54
+
55
+ # @!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
57
+ #
58
+ # @param id [String] The unique identifier for the AI chat
59
+ #
60
+ # @param blended_token_usage [String] The total number of tokens used in the chat
61
+ #
62
+ # @param created_at [Time] When the AI chat was created
63
+ #
64
+ # @param last_message_at [Time, nil] When the last message was sent
65
+ #
66
+ # @param message_count [Integer] The number of messages in the chat
67
+ #
68
+ # @param title [String, nil] The title of the AI chat
69
+ #
70
+ # @param updated_at [Time] When the AI chat was last updated
71
+ #
72
+ # @param user [WhopSDK::Models::AIChatRetrieveResponse::User] The user who owns the AI chat
73
+
74
+ # @see WhopSDK::Models::AIChatRetrieveResponse#user
75
+ class User < WhopSDK::Internal::Type::BaseModel
76
+ # @!attribute id
77
+ # The internal ID of the user.
78
+ #
79
+ # @return [String]
80
+ required :id, String
81
+
82
+ # @!method initialize(id:)
83
+ # The user who owns the AI chat
84
+ #
85
+ # @param id [String] The internal ID of the user.
86
+ end
87
+ end
88
+ end
89
+ end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # @see WhopSDK::Resources::AIChats#update
6
+ class AIChatUpdateParams < WhopSDK::Internal::Type::BaseModel
7
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
8
+ include WhopSDK::Internal::Type::RequestParameters
9
+
10
+ # @!attribute title
11
+ # The new title for the AI chat
12
+ #
13
+ # @return [String, nil]
14
+ optional :title, String, nil?: true
15
+
16
+ # @!method initialize(title: nil, request_options: {})
17
+ # @param title [String, nil] The new title for the AI chat
18
+ #
19
+ # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,89 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # @see WhopSDK::Resources::AIChats#update
6
+ class AIChatUpdateResponse < WhopSDK::Internal::Type::BaseModel
7
+ # @!attribute id
8
+ # The unique identifier for the AI chat
9
+ #
10
+ # @return [String]
11
+ required :id, String
12
+
13
+ # @!attribute blended_token_usage
14
+ # The total number of tokens used in the chat
15
+ #
16
+ # @return [String]
17
+ required :blended_token_usage, String
18
+
19
+ # @!attribute created_at
20
+ # When the AI chat was created
21
+ #
22
+ # @return [Time]
23
+ required :created_at, Time
24
+
25
+ # @!attribute last_message_at
26
+ # When the last message was sent
27
+ #
28
+ # @return [Time, nil]
29
+ required :last_message_at, Time, nil?: true
30
+
31
+ # @!attribute message_count
32
+ # The number of messages in the chat
33
+ #
34
+ # @return [Integer]
35
+ required :message_count, Integer
36
+
37
+ # @!attribute title
38
+ # The title of the AI chat
39
+ #
40
+ # @return [String, nil]
41
+ required :title, String, nil?: true
42
+
43
+ # @!attribute updated_at
44
+ # When the AI chat was last updated
45
+ #
46
+ # @return [Time]
47
+ required :updated_at, Time
48
+
49
+ # @!attribute user
50
+ # The user who owns the AI chat
51
+ #
52
+ # @return [WhopSDK::Models::AIChatUpdateResponse::User]
53
+ required :user, -> { WhopSDK::Models::AIChatUpdateResponse::User }
54
+
55
+ # @!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
57
+ #
58
+ # @param id [String] The unique identifier for the AI chat
59
+ #
60
+ # @param blended_token_usage [String] The total number of tokens used in the chat
61
+ #
62
+ # @param created_at [Time] When the AI chat was created
63
+ #
64
+ # @param last_message_at [Time, nil] When the last message was sent
65
+ #
66
+ # @param message_count [Integer] The number of messages in the chat
67
+ #
68
+ # @param title [String, nil] The title of the AI chat
69
+ #
70
+ # @param updated_at [Time] When the AI chat was last updated
71
+ #
72
+ # @param user [WhopSDK::Models::AIChatUpdateResponse::User] The user who owns the AI chat
73
+
74
+ # @see WhopSDK::Models::AIChatUpdateResponse#user
75
+ class User < WhopSDK::Internal::Type::BaseModel
76
+ # @!attribute id
77
+ # The internal ID of the user.
78
+ #
79
+ # @return [String]
80
+ required :id, String
81
+
82
+ # @!method initialize(id:)
83
+ # The user who owns the AI chat
84
+ #
85
+ # @param id [String] The internal ID of the user.
86
+ end
87
+ end
88
+ end
89
+ end