whop_sdk 0.0.24 → 0.0.26

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 (283) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +32 -0
  3. data/README.md +3 -3
  4. data/lib/whop_sdk/client.rb +16 -0
  5. data/lib/whop_sdk/internal/transport/pooled_net_requester.rb +1 -1
  6. data/lib/whop_sdk/models/ai_chat.rb +89 -0
  7. data/lib/whop_sdk/models/ai_chat_create_params.rb +22 -0
  8. data/lib/whop_sdk/models/ai_chat_delete_params.rb +14 -0
  9. data/lib/whop_sdk/models/ai_chat_delete_response.rb +8 -0
  10. data/lib/whop_sdk/models/ai_chat_list_params.rb +46 -0
  11. data/lib/whop_sdk/models/ai_chat_list_response.rb +89 -0
  12. data/lib/whop_sdk/models/ai_chat_retrieve_params.rb +14 -0
  13. data/lib/whop_sdk/models/ai_chat_update_params.rb +22 -0
  14. data/lib/whop_sdk/models/api_version.rb +17 -0
  15. data/lib/whop_sdk/models/app_list_params.rb +1 -0
  16. data/lib/whop_sdk/models/authorized_user_list_params.rb +9 -9
  17. data/lib/whop_sdk/models/authorized_user_list_response.rb +31 -1
  18. data/lib/whop_sdk/models/authorized_user_retrieve_response.rb +31 -1
  19. data/lib/whop_sdk/models/bot_token_transaction_types.rb +17 -0
  20. data/lib/whop_sdk/models/cancel_options.rb +22 -0
  21. data/lib/whop_sdk/models/company_token_transaction.rb +165 -0
  22. data/lib/whop_sdk/models/company_token_transaction_create_params.rb +69 -0
  23. data/lib/whop_sdk/models/company_token_transaction_list_params.rb +70 -0
  24. data/lib/whop_sdk/models/company_token_transaction_list_response.rb +165 -0
  25. data/lib/whop_sdk/models/company_token_transaction_retrieve_params.rb +14 -0
  26. data/lib/whop_sdk/models/dm_channel.rb +43 -0
  27. data/lib/whop_sdk/models/dm_channel_create_params.rb +38 -0
  28. data/lib/whop_sdk/models/dm_channel_delete_params.rb +14 -0
  29. data/lib/whop_sdk/models/dm_channel_delete_response.rb +8 -0
  30. data/lib/whop_sdk/models/dm_channel_list_params.rb +54 -0
  31. data/lib/whop_sdk/models/dm_channel_list_response.rb +43 -0
  32. data/lib/whop_sdk/models/dm_channel_retrieve_params.rb +14 -0
  33. data/lib/whop_sdk/models/dm_channel_update_params.rb +22 -0
  34. data/lib/whop_sdk/models/dm_feed_member_notification_preferences.rb +17 -0
  35. data/lib/whop_sdk/models/dm_feed_member_statuses.rb +19 -0
  36. data/lib/whop_sdk/models/dm_member.rb +63 -0
  37. data/lib/whop_sdk/models/dm_member_create_params.rb +30 -0
  38. data/lib/whop_sdk/models/dm_member_delete_params.rb +14 -0
  39. data/lib/whop_sdk/models/dm_member_delete_response.rb +8 -0
  40. data/lib/whop_sdk/models/dm_member_list_params.rb +54 -0
  41. data/lib/whop_sdk/models/dm_member_list_response.rb +55 -0
  42. data/lib/whop_sdk/models/dm_member_retrieve_params.rb +14 -0
  43. data/lib/whop_sdk/models/dm_member_update_params.rb +30 -0
  44. data/lib/whop_sdk/models/file_create_response.rb +3 -18
  45. data/lib/whop_sdk/models/file_retrieve_response.rb +3 -18
  46. data/lib/whop_sdk/models/{lead_create_response.rb → lead.rb} +13 -13
  47. data/lib/whop_sdk/models/ledger_account_retrieve_response.rb +6 -63
  48. data/lib/whop_sdk/models/member_list_params.rb +9 -9
  49. data/lib/whop_sdk/models/membership.rb +3 -22
  50. data/lib/whop_sdk/models/membership_list_params.rb +3 -20
  51. data/lib/whop_sdk/models/membership_list_response.rb +3 -22
  52. data/lib/whop_sdk/models/message_create_params.rb +9 -1
  53. data/lib/whop_sdk/models/message_delete_params.rb +14 -0
  54. data/lib/whop_sdk/models/message_delete_response.rb +8 -0
  55. data/lib/whop_sdk/models/payment.rb +63 -1
  56. data/lib/whop_sdk/models/payment_list_response.rb +63 -1
  57. data/lib/whop_sdk/models/payment_method_types.rb +1 -0
  58. data/lib/whop_sdk/models/payout_destination_category.rb +20 -0
  59. data/lib/whop_sdk/models/payout_method_created_webhook_event.rb +3 -20
  60. data/lib/whop_sdk/models/payout_method_list_response.rb +3 -20
  61. data/lib/whop_sdk/models/payout_method_retrieve_response.rb +3 -20
  62. data/lib/whop_sdk/models/reaction_create_params.rb +10 -1
  63. data/lib/whop_sdk/models/reaction_delete_params.rb +22 -0
  64. data/lib/whop_sdk/models/reaction_delete_response.rb +8 -0
  65. data/lib/whop_sdk/models/upload_status.rb +18 -0
  66. data/lib/whop_sdk/models/verification_error_code.rb +33 -0
  67. data/lib/whop_sdk/models/verification_retrieve_response.rb +6 -62
  68. data/lib/whop_sdk/models/verification_status.rb +27 -0
  69. data/lib/whop_sdk/models/verification_succeeded_webhook_event.rb +6 -62
  70. data/lib/whop_sdk/models/webhook.rb +88 -0
  71. data/lib/whop_sdk/models/webhook_create_params.rb +6 -56
  72. data/lib/whop_sdk/models/webhook_create_response.rb +9 -97
  73. data/lib/whop_sdk/models/webhook_event.rb +41 -0
  74. data/lib/whop_sdk/models/webhook_list_response.rb +6 -57
  75. data/lib/whop_sdk/models/webhook_update_params.rb +6 -56
  76. data/lib/whop_sdk/models/{withdrawal_create_response.rb → withdrawal.rb} +15 -15
  77. data/lib/whop_sdk/models/withdrawal_created_webhook_event.rb +3 -267
  78. data/lib/whop_sdk/models/withdrawal_updated_webhook_event.rb +3 -267
  79. data/lib/whop_sdk/models.rb +74 -0
  80. data/lib/whop_sdk/resources/ai_chats.rb +141 -0
  81. data/lib/whop_sdk/resources/authorized_users.rb +4 -4
  82. data/lib/whop_sdk/resources/company_token_transactions.rb +121 -0
  83. data/lib/whop_sdk/resources/dm_channels.rb +151 -0
  84. data/lib/whop_sdk/resources/dm_members.rb +155 -0
  85. data/lib/whop_sdk/resources/leads.rb +6 -12
  86. data/lib/whop_sdk/resources/members.rb +4 -4
  87. data/lib/whop_sdk/resources/memberships.rb +1 -1
  88. data/lib/whop_sdk/resources/messages.rb +27 -1
  89. data/lib/whop_sdk/resources/reactions.rb +34 -1
  90. data/lib/whop_sdk/resources/webhooks.rb +8 -8
  91. data/lib/whop_sdk/resources/withdrawals.rb +4 -4
  92. data/lib/whop_sdk/version.rb +1 -1
  93. data/lib/whop_sdk.rb +50 -7
  94. data/rbi/whop_sdk/client.rbi +12 -0
  95. data/rbi/whop_sdk/models/ai_chat.rbi +118 -0
  96. data/rbi/whop_sdk/models/ai_chat_create_params.rbi +40 -0
  97. data/rbi/whop_sdk/models/ai_chat_delete_params.rbi +27 -0
  98. data/rbi/whop_sdk/models/ai_chat_delete_response.rbi +7 -0
  99. data/rbi/whop_sdk/models/ai_chat_list_params.rbi +67 -0
  100. data/rbi/whop_sdk/models/ai_chat_list_response.rbi +125 -0
  101. data/rbi/whop_sdk/models/ai_chat_retrieve_params.rbi +27 -0
  102. data/rbi/whop_sdk/models/ai_chat_update_params.rbi +40 -0
  103. data/rbi/whop_sdk/models/api_version.rbi +21 -0
  104. data/rbi/whop_sdk/models/app_list_params.rbi +2 -0
  105. data/rbi/whop_sdk/models/authorized_user_list_params.rbi +8 -8
  106. data/rbi/whop_sdk/models/authorized_user_list_response.rbi +47 -0
  107. data/rbi/whop_sdk/models/authorized_user_retrieve_response.rbi +49 -0
  108. data/rbi/whop_sdk/models/bot_token_transaction_types.rbi +28 -0
  109. data/rbi/whop_sdk/models/cancel_options.rbi +30 -0
  110. data/rbi/whop_sdk/models/company_token_transaction.rbi +237 -0
  111. data/rbi/whop_sdk/models/company_token_transaction_create_params.rbi +92 -0
  112. data/rbi/whop_sdk/models/company_token_transaction_list_params.rbi +96 -0
  113. data/rbi/whop_sdk/models/company_token_transaction_list_response.rbi +262 -0
  114. data/rbi/whop_sdk/models/company_token_transaction_retrieve_params.rbi +30 -0
  115. data/rbi/whop_sdk/models/dm_channel.rbi +60 -0
  116. data/rbi/whop_sdk/models/dm_channel_create_params.rbi +59 -0
  117. data/rbi/whop_sdk/models/dm_channel_delete_params.rbi +27 -0
  118. data/rbi/whop_sdk/models/dm_channel_delete_response.rbi +8 -0
  119. data/rbi/whop_sdk/models/dm_channel_list_params.rbi +75 -0
  120. data/rbi/whop_sdk/models/dm_channel_list_response.rbi +65 -0
  121. data/rbi/whop_sdk/models/dm_channel_retrieve_params.rbi +27 -0
  122. data/rbi/whop_sdk/models/dm_channel_update_params.rbi +43 -0
  123. data/rbi/whop_sdk/models/dm_feed_member_notification_preferences.rbi +34 -0
  124. data/rbi/whop_sdk/models/dm_feed_member_statuses.rbi +26 -0
  125. data/rbi/whop_sdk/models/dm_member.rbi +82 -0
  126. data/rbi/whop_sdk/models/dm_member_create_params.rbi +51 -0
  127. data/rbi/whop_sdk/models/dm_member_delete_params.rbi +27 -0
  128. data/rbi/whop_sdk/models/dm_member_delete_response.rbi +8 -0
  129. data/rbi/whop_sdk/models/dm_member_list_params.rbi +75 -0
  130. data/rbi/whop_sdk/models/dm_member_list_response.rbi +75 -0
  131. data/rbi/whop_sdk/models/dm_member_retrieve_params.rbi +27 -0
  132. data/rbi/whop_sdk/models/dm_member_update_params.rbi +57 -0
  133. data/rbi/whop_sdk/models/file_create_response.rbi +3 -49
  134. data/rbi/whop_sdk/models/file_retrieve_response.rbi +3 -51
  135. data/rbi/whop_sdk/models/{lead_update_response.rbi → lead.rbi} +17 -42
  136. data/rbi/whop_sdk/models/ledger_account_retrieve_response.rbi +6 -230
  137. data/rbi/whop_sdk/models/member_list_params.rbi +8 -8
  138. data/rbi/whop_sdk/models/membership.rbi +3 -47
  139. data/rbi/whop_sdk/models/membership_list_params.rbi +3 -70
  140. data/rbi/whop_sdk/models/membership_list_response.rbi +3 -73
  141. data/rbi/whop_sdk/models/message_create_params.rbi +8 -0
  142. data/rbi/whop_sdk/models/message_delete_params.rbi +27 -0
  143. data/rbi/whop_sdk/models/message_delete_response.rbi +8 -0
  144. data/rbi/whop_sdk/models/payment.rbi +88 -0
  145. data/rbi/whop_sdk/models/payment_list_response.rbi +100 -0
  146. data/rbi/whop_sdk/models/payment_method_types.rbi +1 -0
  147. data/rbi/whop_sdk/models/payout_destination_category.rbi +33 -0
  148. data/rbi/whop_sdk/models/payout_method_created_webhook_event.rbi +3 -64
  149. data/rbi/whop_sdk/models/payout_method_list_response.rbi +3 -64
  150. data/rbi/whop_sdk/models/payout_method_retrieve_response.rbi +3 -64
  151. data/rbi/whop_sdk/models/reaction_create_params.rbi +10 -0
  152. data/rbi/whop_sdk/models/reaction_delete_params.rbi +40 -0
  153. data/rbi/whop_sdk/models/reaction_delete_response.rbi +8 -0
  154. data/rbi/whop_sdk/models/upload_status.rbi +22 -0
  155. data/rbi/whop_sdk/models/verification_error_code.rbi +101 -0
  156. data/rbi/whop_sdk/models/verification_retrieve_response.rbi +6 -230
  157. data/rbi/whop_sdk/models/verification_status.rbi +38 -0
  158. data/rbi/whop_sdk/models/verification_succeeded_webhook_event.rbi +6 -232
  159. data/rbi/whop_sdk/models/webhook.rbi +104 -0
  160. data/rbi/whop_sdk/models/webhook_create_params.rbi +6 -194
  161. data/rbi/whop_sdk/models/webhook_create_response.rbi +9 -386
  162. data/rbi/whop_sdk/models/webhook_event.rbi +79 -0
  163. data/rbi/whop_sdk/models/webhook_list_response.rbi +6 -210
  164. data/rbi/whop_sdk/models/webhook_update_params.rbi +6 -194
  165. data/rbi/whop_sdk/models/{withdrawal_create_response.rbi → withdrawal.rbi} +63 -127
  166. data/rbi/whop_sdk/models/withdrawal_created_webhook_event.rbi +4 -571
  167. data/rbi/whop_sdk/models/withdrawal_updated_webhook_event.rbi +4 -571
  168. data/rbi/whop_sdk/models.rbi +78 -0
  169. data/rbi/whop_sdk/resources/ai_chats.rbi +108 -0
  170. data/rbi/whop_sdk/resources/authorized_users.rbi +3 -3
  171. data/rbi/whop_sdk/resources/company_token_transactions.rbi +112 -0
  172. data/rbi/whop_sdk/resources/dm_channels.rbi +121 -0
  173. data/rbi/whop_sdk/resources/dm_members.rbi +126 -0
  174. data/rbi/whop_sdk/resources/leads.rbi +3 -3
  175. data/rbi/whop_sdk/resources/members.rbi +3 -3
  176. data/rbi/whop_sdk/resources/memberships.rbi +1 -4
  177. data/rbi/whop_sdk/resources/messages.rbi +21 -0
  178. data/rbi/whop_sdk/resources/reactions.rbi +26 -0
  179. data/rbi/whop_sdk/resources/webhooks.rbi +6 -10
  180. data/rbi/whop_sdk/resources/withdrawals.rbi +2 -2
  181. data/sig/whop_sdk/client.rbs +8 -0
  182. data/sig/whop_sdk/models/ai_chat.rbs +65 -0
  183. data/sig/whop_sdk/models/ai_chat_create_params.rbs +23 -0
  184. data/sig/whop_sdk/models/ai_chat_delete_params.rbs +15 -0
  185. data/sig/whop_sdk/models/ai_chat_delete_response.rbs +5 -0
  186. data/sig/whop_sdk/models/ai_chat_list_params.rbs +36 -0
  187. data/sig/whop_sdk/models/ai_chat_list_response.rbs +65 -0
  188. data/sig/whop_sdk/models/ai_chat_retrieve_params.rbs +15 -0
  189. data/sig/whop_sdk/models/ai_chat_update_params.rbs +23 -0
  190. data/sig/whop_sdk/models/api_version.rbs +15 -0
  191. data/sig/whop_sdk/models/app_list_params.rbs +3 -1
  192. data/sig/whop_sdk/models/authorized_user_list_params.rbs +5 -5
  193. data/sig/whop_sdk/models/authorized_user_list_response.rbs +17 -0
  194. data/sig/whop_sdk/models/authorized_user_retrieve_response.rbs +17 -0
  195. data/sig/whop_sdk/models/bot_token_transaction_types.rbs +15 -0
  196. data/sig/whop_sdk/models/cancel_options.rbs +26 -0
  197. data/sig/whop_sdk/models/company_token_transaction.rbs +103 -0
  198. data/sig/whop_sdk/models/company_token_transaction_create_params.rbs +56 -0
  199. data/sig/whop_sdk/models/company_token_transaction_list_params.rbs +56 -0
  200. data/sig/whop_sdk/models/company_token_transaction_list_response.rbs +103 -0
  201. data/sig/whop_sdk/models/company_token_transaction_retrieve_params.rbs +15 -0
  202. data/sig/whop_sdk/models/dm_channel.rbs +30 -0
  203. data/sig/whop_sdk/models/dm_channel_create_params.rbs +36 -0
  204. data/sig/whop_sdk/models/dm_channel_delete_params.rbs +15 -0
  205. data/sig/whop_sdk/models/dm_channel_delete_response.rbs +5 -0
  206. data/sig/whop_sdk/models/dm_channel_list_params.rbs +46 -0
  207. data/sig/whop_sdk/models/dm_channel_list_response.rbs +30 -0
  208. data/sig/whop_sdk/models/dm_channel_retrieve_params.rbs +15 -0
  209. data/sig/whop_sdk/models/dm_channel_update_params.rbs +23 -0
  210. data/sig/whop_sdk/models/dm_feed_member_notification_preferences.rbs +15 -0
  211. data/sig/whop_sdk/models/dm_feed_member_statuses.rbs +18 -0
  212. data/sig/whop_sdk/models/dm_member.rbs +45 -0
  213. data/sig/whop_sdk/models/dm_member_create_params.rbs +28 -0
  214. data/sig/whop_sdk/models/dm_member_delete_params.rbs +15 -0
  215. data/sig/whop_sdk/models/dm_member_delete_response.rbs +5 -0
  216. data/sig/whop_sdk/models/dm_member_list_params.rbs +46 -0
  217. data/sig/whop_sdk/models/dm_member_list_response.rbs +40 -0
  218. data/sig/whop_sdk/models/dm_member_retrieve_params.rbs +15 -0
  219. data/sig/whop_sdk/models/dm_member_update_params.rbs +31 -0
  220. data/sig/whop_sdk/models/file_create_response.rbs +4 -17
  221. data/sig/whop_sdk/models/file_retrieve_response.rbs +4 -17
  222. data/sig/whop_sdk/models/{lead_create_response.rbs → lead.rbs} +14 -14
  223. data/sig/whop_sdk/models/ledger_account_retrieve_response.rbs +8 -90
  224. data/sig/whop_sdk/models/member_list_params.rbs +5 -5
  225. data/sig/whop_sdk/models/membership.rbs +4 -27
  226. data/sig/whop_sdk/models/membership_list_params.rbs +4 -27
  227. data/sig/whop_sdk/models/membership_list_response.rbs +4 -27
  228. data/sig/whop_sdk/models/message_create_params.rbs +6 -1
  229. data/sig/whop_sdk/models/message_delete_params.rbs +15 -0
  230. data/sig/whop_sdk/models/message_delete_response.rbs +5 -0
  231. data/sig/whop_sdk/models/payment.rbs +47 -0
  232. data/sig/whop_sdk/models/payment_list_response.rbs +47 -0
  233. data/sig/whop_sdk/models/payment_method_types.rbs +2 -0
  234. data/sig/whop_sdk/models/payout_destination_category.rbs +19 -0
  235. data/sig/whop_sdk/models/payout_method_created_webhook_event.rbs +4 -25
  236. data/sig/whop_sdk/models/payout_method_list_response.rbs +4 -25
  237. data/sig/whop_sdk/models/payout_method_retrieve_response.rbs +4 -25
  238. data/sig/whop_sdk/models/reaction_create_params.rbs +5 -1
  239. data/sig/whop_sdk/models/reaction_delete_params.rbs +23 -0
  240. data/sig/whop_sdk/models/reaction_delete_response.rbs +5 -0
  241. data/sig/whop_sdk/models/upload_status.rbs +16 -0
  242. data/sig/whop_sdk/models/verification_error_code.rbs +50 -0
  243. data/sig/whop_sdk/models/verification_retrieve_response.rbs +8 -90
  244. data/sig/whop_sdk/models/verification_status.rbs +38 -0
  245. data/sig/whop_sdk/models/verification_succeeded_webhook_event.rbs +8 -90
  246. data/sig/whop_sdk/models/webhook.rbs +60 -0
  247. data/sig/whop_sdk/models/webhook_create_params.rbs +8 -83
  248. data/sig/whop_sdk/models/webhook_create_response.rbs +12 -150
  249. data/sig/whop_sdk/models/webhook_event.rbs +66 -0
  250. data/sig/whop_sdk/models/webhook_list_response.rbs +8 -83
  251. data/sig/whop_sdk/models/webhook_update_params.rbs +8 -83
  252. data/sig/whop_sdk/models/{withdrawal_create_response.rbs → withdrawal.rbs} +15 -15
  253. data/sig/whop_sdk/models/withdrawal_created_webhook_event.rbs +4 -241
  254. data/sig/whop_sdk/models/withdrawal_updated_webhook_event.rbs +4 -241
  255. data/sig/whop_sdk/models.rbs +74 -0
  256. data/sig/whop_sdk/resources/ai_chats.rbs +33 -0
  257. data/sig/whop_sdk/resources/authorized_users.rbs +1 -1
  258. data/sig/whop_sdk/resources/company_token_transactions.rbs +34 -0
  259. data/sig/whop_sdk/resources/dm_channels.rbs +36 -0
  260. data/sig/whop_sdk/resources/dm_members.rbs +36 -0
  261. data/sig/whop_sdk/resources/leads.rbs +3 -3
  262. data/sig/whop_sdk/resources/members.rbs +1 -1
  263. data/sig/whop_sdk/resources/memberships.rbs +1 -1
  264. data/sig/whop_sdk/resources/messages.rbs +3 -0
  265. data/sig/whop_sdk/resources/reactions.rbs +7 -0
  266. data/sig/whop_sdk/resources/webhooks.rbs +6 -6
  267. data/sig/whop_sdk/resources/withdrawals.rbs +2 -2
  268. metadata +152 -23
  269. data/lib/whop_sdk/models/lead_retrieve_response.rb +0 -149
  270. data/lib/whop_sdk/models/lead_update_response.rb +0 -149
  271. data/lib/whop_sdk/models/webhook_retrieve_response.rb +0 -176
  272. data/lib/whop_sdk/models/webhook_update_response.rb +0 -176
  273. data/lib/whop_sdk/models/withdrawal_retrieve_response.rb +0 -268
  274. data/rbi/whop_sdk/models/lead_create_response.rbi +0 -234
  275. data/rbi/whop_sdk/models/lead_retrieve_response.rbi +0 -238
  276. data/rbi/whop_sdk/models/webhook_retrieve_response.rbi +0 -491
  277. data/rbi/whop_sdk/models/webhook_update_response.rbi +0 -486
  278. data/rbi/whop_sdk/models/withdrawal_retrieve_response.rbi +0 -568
  279. data/sig/whop_sdk/models/lead_retrieve_response.rbs +0 -104
  280. data/sig/whop_sdk/models/lead_update_response.rbs +0 -104
  281. data/sig/whop_sdk/models/webhook_retrieve_response.rbs +0 -198
  282. data/sig/whop_sdk/models/webhook_update_response.rbs +0 -198
  283. data/sig/whop_sdk/models/withdrawal_retrieve_response.rbs +0 -240
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 70eecb4bdfda145393289d3aae4565f2da950068f23c0419bc88f542b8850b60
4
- data.tar.gz: 01ad88064c3a33de5996d30f640dfc34d30fff3b1b298955355cc3476c894868
3
+ metadata.gz: 6a80be479329709bdcbe983b4d0e2319dfb9f42720475ed5da78872b9510c2e2
4
+ data.tar.gz: 8ab39c69907d254193380ce538039600ae3da39cb82058827124e58fe2b33632
5
5
  SHA512:
6
- metadata.gz: b261c018f26b048b7966ed679e5811a8680cfe001e10f832abcc1121cf6b98dc39e966b9e304a7d64e537cf6e5c649184b1196cfd655b94d357f1c36ff120091
7
- data.tar.gz: 2c7605007defe75103f8e2c97aa5c0c74b7ae8d19464ca185df760e2180e692842ea0b074bebd209cce9b47d50d3752b27c6ae275be3bcf02ce1cb106910cec2
6
+ metadata.gz: 54302147cc07d4734043c43e8db74fef84a67ac3b6a4e123bf4f6135c3cbc2f7bd27292caa3805ce6cc00e6b6f2395637c6463c938fb193d3bea763781a39132
7
+ data.tar.gz: '0842d8980e5bc4c49e6f37e443e50ae5c1d8aa1610e2e7167d19c5499f47af47393e9e10944c4f8bd90b0f91e3a889fe93f7751d81ebb381df2cba133d4d29d9'
data/CHANGELOG.md CHANGED
@@ -1,5 +1,37 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.0.26 (2026-02-03)
4
+
5
+ Full Changelog: [v0.0.25...v0.0.26](https://github.com/whopio/whopsdk-ruby/compare/v0.0.25...v0.0.26)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([f744e2e](https://github.com/whopio/whopsdk-ruby/commit/f744e2ea4784f2953df9acb4c83a0405b5aefcd7))
10
+ * **api:** api update ([52101f1](https://github.com/whopio/whopsdk-ruby/commit/52101f12c04d82f01f0af510bf827aa6a457f54c))
11
+ * **api:** manual updates ([d730b3c](https://github.com/whopio/whopsdk-ruby/commit/d730b3c044eb4c4dc4c1138f57c05325bc11ffd9))
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * **client:** always add content-length to post body, even when empty ([ab4f8ef](https://github.com/whopio/whopsdk-ruby/commit/ab4f8ef3f0ff4041d21758170752cac27eeaf0af))
17
+
18
+ ## 0.0.25 (2026-01-29)
19
+
20
+ Full Changelog: [v0.0.24...v0.0.25](https://github.com/whopio/whopsdk-ruby/compare/v0.0.24...v0.0.25)
21
+
22
+ ### Features
23
+
24
+ * **api:** api update ([44184b5](https://github.com/whopio/whopsdk-ruby/commit/44184b56139c2b4843f0e8ed9175b6be9b9c81bd))
25
+ * **api:** api update ([f5a8974](https://github.com/whopio/whopsdk-ruby/commit/f5a8974925764c0650da47ef456b8a16283477d8))
26
+ * **api:** api update ([810edc1](https://github.com/whopio/whopsdk-ruby/commit/810edc1b45b05d50e106ba445253797509f5ace3))
27
+ * **api:** api update ([6a9ad61](https://github.com/whopio/whopsdk-ruby/commit/6a9ad618f1b4cdc4197d250b4fb10a95d4fa5088))
28
+ * **api:** manual updates ([7c26b23](https://github.com/whopio/whopsdk-ruby/commit/7c26b2393e9a36c4e42df81d1c15fc5569913a79))
29
+
30
+
31
+ ### Bug Fixes
32
+
33
+ * **docs:** fix mcp installation instructions for remote servers ([b9e24d0](https://github.com/whopio/whopsdk-ruby/commit/b9e24d0a6fb0efa7370a94e5d5b4f9e2778de8d7))
34
+
3
35
  ## 0.0.24 (2026-01-25)
4
36
 
5
37
  Full Changelog: [v0.0.23...v0.0.24](https://github.com/whopio/whopsdk-ruby/compare/v0.0.23...v0.0.24)
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.24"
29
+ gem "whop_sdk", "~> 0.0.26"
30
30
  ```
31
31
 
32
32
  <!-- x-release-please-end -->
@@ -159,6 +159,18 @@ 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
+
171
+ # @return [WhopSDK::Resources::DmChannels]
172
+ attr_reader :dm_channels
173
+
162
174
  # @api private
163
175
  #
164
176
  # @return [Hash{String=>String}]
@@ -261,6 +273,10 @@ module WhopSDK
261
273
  @leads = WhopSDK::Resources::Leads.new(client: self)
262
274
  @topups = WhopSDK::Resources::Topups.new(client: self)
263
275
  @files = WhopSDK::Resources::Files.new(client: self)
276
+ @company_token_transactions = WhopSDK::Resources::CompanyTokenTransactions.new(client: self)
277
+ @dm_members = WhopSDK::Resources::DmMembers.new(client: self)
278
+ @ai_chats = WhopSDK::Resources::AIChats.new(client: self)
279
+ @dm_channels = WhopSDK::Resources::DmChannels.new(client: self)
264
280
  end
265
281
 
266
282
  # Verifies a Whop user token
@@ -75,7 +75,7 @@ module WhopSDK
75
75
 
76
76
  case body
77
77
  in nil
78
- nil
78
+ req["content-length"] ||= 0 unless req["transfer-encoding"]
79
79
  in String
80
80
  req["content-length"] ||= body.bytesize.to_s unless req["transfer-encoding"]
81
81
  req.body_stream = WhopSDK::Internal::Util::ReadIOAdapter.new(body, &blk)
@@ -0,0 +1,89 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # @see WhopSDK::Resources::AIChats#create
6
+ class AIChat < 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::AIChat::User]
53
+ required :user, -> { WhopSDK::AIChat::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::AIChat::User] The user who owns the AI chat
73
+
74
+ # @see WhopSDK::Models::AIChat#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#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,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,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,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # The different API versions
6
+ module APIVersion
7
+ extend WhopSDK::Internal::Type::Enum
8
+
9
+ V1 = :v1
10
+ V2 = :v2
11
+ V5 = :v5
12
+
13
+ # @!method self.values
14
+ # @return [Array<Symbol>]
15
+ end
16
+ end
17
+ end
@@ -106,6 +106,7 @@ module WhopSDK
106
106
  module Order
107
107
  extend WhopSDK::Internal::Type::Enum
108
108
 
109
+ CREATED_AT = :created_at
109
110
  DISCOVERABLE_AT = :discoverable_at
110
111
  TOTAL_INSTALLS_LAST_30_DAYS = :total_installs_last_30_days
111
112
  TOTAL_INSTALLS_LAST_7_DAYS = :total_installs_last_7_days
@@ -7,12 +7,6 @@ module WhopSDK
7
7
  extend WhopSDK::Internal::Type::RequestParameters::Converter
8
8
  include WhopSDK::Internal::Type::RequestParameters
9
9
 
10
- # @!attribute company_id
11
- # The ID of the company to list authorized users for
12
- #
13
- # @return [String]
14
- required :company_id, String
15
-
16
10
  # @!attribute after
17
11
  # Returns the elements in the list that come after the specified cursor.
18
12
  #
@@ -25,6 +19,12 @@ module WhopSDK
25
19
  # @return [String, nil]
26
20
  optional :before, String, nil?: true
27
21
 
22
+ # @!attribute company_id
23
+ # The ID of the company to list authorized users for
24
+ #
25
+ # @return [String, nil]
26
+ optional :company_id, String, nil?: true
27
+
28
28
  # @!attribute created_after
29
29
  # The minimum creation date to filter by
30
30
  #
@@ -61,13 +61,13 @@ module WhopSDK
61
61
  # @return [String, nil]
62
62
  optional :user_id, String, nil?: true
63
63
 
64
- # @!method initialize(company_id:, after: nil, before: nil, created_after: nil, created_before: nil, first: nil, last: nil, role: nil, user_id: nil, request_options: {})
65
- # @param company_id [String] The ID of the company to list authorized users for
66
- #
64
+ # @!method initialize(after: nil, before: nil, company_id: nil, created_after: nil, created_before: nil, first: nil, last: nil, role: nil, user_id: nil, request_options: {})
67
65
  # @param after [String, nil] Returns the elements in the list that come after the specified cursor.
68
66
  #
69
67
  # @param before [String, nil] Returns the elements in the list that come before the specified cursor.
70
68
  #
69
+ # @param company_id [String, nil] The ID of the company to list authorized users for
70
+ #
71
71
  # @param created_after [Time, nil] The minimum creation date to filter by
72
72
  #
73
73
  # @param created_before [Time, nil] The maximum creation date to filter by
@@ -10,6 +10,12 @@ module WhopSDK
10
10
  # @return [String]
11
11
  required :id, String
12
12
 
13
+ # @!attribute company
14
+ # The company associated with the authorized user.
15
+ #
16
+ # @return [WhopSDK::Models::AuthorizedUserListResponse::Company]
17
+ required :company, -> { WhopSDK::Models::AuthorizedUserListResponse::Company }
18
+
13
19
  # @!attribute role
14
20
  # The role of the authorized user in the company.
15
21
  #
@@ -22,15 +28,39 @@ module WhopSDK
22
28
  # @return [WhopSDK::Models::AuthorizedUserListResponse::User]
23
29
  required :user, -> { WhopSDK::Models::AuthorizedUserListResponse::User }
24
30
 
25
- # @!method initialize(id:, role:, user:)
31
+ # @!method initialize(id:, company:, role:, user:)
26
32
  # A user who has elevated security privileges for a company
27
33
  #
28
34
  # @param id [String] A unique ID representing the authorized user object.
29
35
  #
36
+ # @param company [WhopSDK::Models::AuthorizedUserListResponse::Company] The company associated with the authorized user.
37
+ #
30
38
  # @param role [Symbol, WhopSDK::Models::AuthorizedUserRoles] The role of the authorized user in the company.
31
39
  #
32
40
  # @param user [WhopSDK::Models::AuthorizedUserListResponse::User] The user associated with the authorized user.
33
41
 
42
+ # @see WhopSDK::Models::AuthorizedUserListResponse#company
43
+ class Company < WhopSDK::Internal::Type::BaseModel
44
+ # @!attribute id
45
+ # The ID (tag) of the company.
46
+ #
47
+ # @return [String]
48
+ required :id, String
49
+
50
+ # @!attribute title
51
+ # The title of the company.
52
+ #
53
+ # @return [String]
54
+ required :title, String
55
+
56
+ # @!method initialize(id:, title:)
57
+ # The company associated with the authorized user.
58
+ #
59
+ # @param id [String] The ID (tag) of the company.
60
+ #
61
+ # @param title [String] The title of the company.
62
+ end
63
+
34
64
  # @see WhopSDK::Models::AuthorizedUserListResponse#user
35
65
  class User < WhopSDK::Internal::Type::BaseModel
36
66
  # @!attribute id
@@ -10,6 +10,12 @@ module WhopSDK
10
10
  # @return [String]
11
11
  required :id, String
12
12
 
13
+ # @!attribute company
14
+ # The company associated with the authorized user.
15
+ #
16
+ # @return [WhopSDK::Models::AuthorizedUserRetrieveResponse::Company]
17
+ required :company, -> { WhopSDK::Models::AuthorizedUserRetrieveResponse::Company }
18
+
13
19
  # @!attribute role
14
20
  # The role of the authorized user in the company.
15
21
  #
@@ -22,15 +28,39 @@ module WhopSDK
22
28
  # @return [WhopSDK::Models::AuthorizedUserRetrieveResponse::User]
23
29
  required :user, -> { WhopSDK::Models::AuthorizedUserRetrieveResponse::User }
24
30
 
25
- # @!method initialize(id:, role:, user:)
31
+ # @!method initialize(id:, company:, role:, user:)
26
32
  # A user who has elevated security privileges for a company
27
33
  #
28
34
  # @param id [String] A unique ID representing the authorized user object.
29
35
  #
36
+ # @param company [WhopSDK::Models::AuthorizedUserRetrieveResponse::Company] The company associated with the authorized user.
37
+ #
30
38
  # @param role [Symbol, WhopSDK::Models::AuthorizedUserRoles] The role of the authorized user in the company.
31
39
  #
32
40
  # @param user [WhopSDK::Models::AuthorizedUserRetrieveResponse::User] The user associated with the authorized user.
33
41
 
42
+ # @see WhopSDK::Models::AuthorizedUserRetrieveResponse#company
43
+ class Company < WhopSDK::Internal::Type::BaseModel
44
+ # @!attribute id
45
+ # The ID (tag) of the company.
46
+ #
47
+ # @return [String]
48
+ required :id, String
49
+
50
+ # @!attribute title
51
+ # The title of the company.
52
+ #
53
+ # @return [String]
54
+ required :title, String
55
+
56
+ # @!method initialize(id:, title:)
57
+ # The company associated with the authorized user.
58
+ #
59
+ # @param id [String] The ID (tag) of the company.
60
+ #
61
+ # @param title [String] The title of the company.
62
+ end
63
+
34
64
  # @see WhopSDK::Models::AuthorizedUserRetrieveResponse#user
35
65
  class User < WhopSDK::Internal::Type::BaseModel
36
66
  # @!attribute id
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # The type of token transaction
6
+ module BotTokenTransactionTypes
7
+ extend WhopSDK::Internal::Type::Enum
8
+
9
+ ADD = :add
10
+ SUBTRACT = :subtract
11
+ TRANSFER = :transfer
12
+
13
+ # @!method self.values
14
+ # @return [Array<Symbol>]
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # The different reasons a user can choose for why they are canceling their
6
+ # membership.
7
+ module CancelOptions
8
+ extend WhopSDK::Internal::Type::Enum
9
+
10
+ TOO_EXPENSIVE = :too_expensive
11
+ SWITCHING = :switching
12
+ MISSING_FEATURES = :missing_features
13
+ TECHNICAL_ISSUES = :technical_issues
14
+ BAD_EXPERIENCE = :bad_experience
15
+ OTHER = :other
16
+ TESTING = :testing
17
+
18
+ # @!method self.values
19
+ # @return [Array<Symbol>]
20
+ end
21
+ end
22
+ end