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
@@ -0,0 +1,27 @@
1
+ # typed: strong
2
+
3
+ module WhopSDK
4
+ module Models
5
+ class DmChannelRetrieveParams < WhopSDK::Internal::Type::BaseModel
6
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
7
+ include WhopSDK::Internal::Type::RequestParameters
8
+
9
+ OrHash =
10
+ T.type_alias do
11
+ T.any(WhopSDK::DmChannelRetrieveParams, WhopSDK::Internal::AnyHash)
12
+ end
13
+
14
+ sig do
15
+ params(request_options: WhopSDK::RequestOptions::OrHash).returns(
16
+ T.attached_class
17
+ )
18
+ end
19
+ def self.new(request_options: {})
20
+ end
21
+
22
+ sig { override.returns({ request_options: WhopSDK::RequestOptions }) }
23
+ def to_hash
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,43 @@
1
+ # typed: strong
2
+
3
+ module WhopSDK
4
+ module Models
5
+ class DmChannelUpdateParams < WhopSDK::Internal::Type::BaseModel
6
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
7
+ include WhopSDK::Internal::Type::RequestParameters
8
+
9
+ OrHash =
10
+ T.type_alias do
11
+ T.any(WhopSDK::DmChannelUpdateParams, WhopSDK::Internal::AnyHash)
12
+ end
13
+
14
+ # The custom name for the DM channel
15
+ sig { returns(T.nilable(String)) }
16
+ attr_accessor :custom_name
17
+
18
+ sig do
19
+ params(
20
+ custom_name: T.nilable(String),
21
+ request_options: WhopSDK::RequestOptions::OrHash
22
+ ).returns(T.attached_class)
23
+ end
24
+ def self.new(
25
+ # The custom name for the DM channel
26
+ custom_name: nil,
27
+ request_options: {}
28
+ )
29
+ end
30
+
31
+ sig do
32
+ override.returns(
33
+ {
34
+ custom_name: T.nilable(String),
35
+ request_options: WhopSDK::RequestOptions
36
+ }
37
+ )
38
+ end
39
+ def to_hash
40
+ end
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,34 @@
1
+ # typed: strong
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # The notification preferences for a DMs feed member
6
+ module DmFeedMemberNotificationPreferences
7
+ extend WhopSDK::Internal::Type::Enum
8
+
9
+ TaggedSymbol =
10
+ T.type_alias do
11
+ T.all(Symbol, WhopSDK::DmFeedMemberNotificationPreferences)
12
+ end
13
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
14
+
15
+ ALL =
16
+ T.let(:all, WhopSDK::DmFeedMemberNotificationPreferences::TaggedSymbol)
17
+ MENTIONS =
18
+ T.let(
19
+ :mentions,
20
+ WhopSDK::DmFeedMemberNotificationPreferences::TaggedSymbol
21
+ )
22
+ NONE =
23
+ T.let(:none, WhopSDK::DmFeedMemberNotificationPreferences::TaggedSymbol)
24
+
25
+ sig do
26
+ override.returns(
27
+ T::Array[WhopSDK::DmFeedMemberNotificationPreferences::TaggedSymbol]
28
+ )
29
+ end
30
+ def self.values
31
+ end
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,26 @@
1
+ # typed: strong
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # The statuses of a DMs feed member
6
+ module DmFeedMemberStatuses
7
+ extend WhopSDK::Internal::Type::Enum
8
+
9
+ TaggedSymbol =
10
+ T.type_alias { T.all(Symbol, WhopSDK::DmFeedMemberStatuses) }
11
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
12
+
13
+ REQUESTED = T.let(:requested, WhopSDK::DmFeedMemberStatuses::TaggedSymbol)
14
+ ACCEPTED = T.let(:accepted, WhopSDK::DmFeedMemberStatuses::TaggedSymbol)
15
+ HIDDEN = T.let(:hidden, WhopSDK::DmFeedMemberStatuses::TaggedSymbol)
16
+ CLOSED = T.let(:closed, WhopSDK::DmFeedMemberStatuses::TaggedSymbol)
17
+ ARCHIVED = T.let(:archived, WhopSDK::DmFeedMemberStatuses::TaggedSymbol)
18
+
19
+ sig do
20
+ override.returns(T::Array[WhopSDK::DmFeedMemberStatuses::TaggedSymbol])
21
+ end
22
+ def self.values
23
+ end
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,82 @@
1
+ # typed: strong
2
+
3
+ module WhopSDK
4
+ module Models
5
+ class DmMember < WhopSDK::Internal::Type::BaseModel
6
+ OrHash =
7
+ T.type_alias { T.any(WhopSDK::DmMember, WhopSDK::Internal::AnyHash) }
8
+
9
+ # The unique identifier for the entity
10
+ sig { returns(String) }
11
+ attr_accessor :id
12
+
13
+ # The ID of the DM channel
14
+ sig { returns(String) }
15
+ attr_accessor :channel_id
16
+
17
+ # Timestamp when the member last viewed the channel (in milliseconds since Unix
18
+ # epoch)
19
+ sig { returns(T.nilable(String)) }
20
+ attr_accessor :last_viewed_at
21
+
22
+ # The notification preference for this member (all, mentions, none)
23
+ sig do
24
+ returns(WhopSDK::DmFeedMemberNotificationPreferences::TaggedSymbol)
25
+ end
26
+ attr_accessor :notification_preference
27
+
28
+ # The status of the membership (requested, accepted, rejected)
29
+ sig { returns(WhopSDK::DmFeedMemberStatuses::TaggedSymbol) }
30
+ attr_accessor :status
31
+
32
+ # The ID of the user who is a member of the channel
33
+ sig { returns(String) }
34
+ attr_accessor :user_id
35
+
36
+ # Represents a member of a DM channel
37
+ sig do
38
+ params(
39
+ id: String,
40
+ channel_id: String,
41
+ last_viewed_at: T.nilable(String),
42
+ notification_preference:
43
+ WhopSDK::DmFeedMemberNotificationPreferences::OrSymbol,
44
+ status: WhopSDK::DmFeedMemberStatuses::OrSymbol,
45
+ user_id: String
46
+ ).returns(T.attached_class)
47
+ end
48
+ def self.new(
49
+ # The unique identifier for the entity
50
+ id:,
51
+ # The ID of the DM channel
52
+ channel_id:,
53
+ # Timestamp when the member last viewed the channel (in milliseconds since Unix
54
+ # epoch)
55
+ last_viewed_at:,
56
+ # The notification preference for this member (all, mentions, none)
57
+ notification_preference:,
58
+ # The status of the membership (requested, accepted, rejected)
59
+ status:,
60
+ # The ID of the user who is a member of the channel
61
+ user_id:
62
+ )
63
+ end
64
+
65
+ sig do
66
+ override.returns(
67
+ {
68
+ id: String,
69
+ channel_id: String,
70
+ last_viewed_at: T.nilable(String),
71
+ notification_preference:
72
+ WhopSDK::DmFeedMemberNotificationPreferences::TaggedSymbol,
73
+ status: WhopSDK::DmFeedMemberStatuses::TaggedSymbol,
74
+ user_id: String
75
+ }
76
+ )
77
+ end
78
+ def to_hash
79
+ end
80
+ end
81
+ end
82
+ end
@@ -0,0 +1,51 @@
1
+ # typed: strong
2
+
3
+ module WhopSDK
4
+ module Models
5
+ class DmMemberCreateParams < WhopSDK::Internal::Type::BaseModel
6
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
7
+ include WhopSDK::Internal::Type::RequestParameters
8
+
9
+ OrHash =
10
+ T.type_alias do
11
+ T.any(WhopSDK::DmMemberCreateParams, WhopSDK::Internal::AnyHash)
12
+ end
13
+
14
+ # The ID of the DM channel to add the member to
15
+ sig { returns(String) }
16
+ attr_accessor :channel_id
17
+
18
+ # The ID of the user to add to the channel
19
+ sig { returns(String) }
20
+ attr_accessor :user_id
21
+
22
+ sig do
23
+ params(
24
+ channel_id: String,
25
+ user_id: String,
26
+ request_options: WhopSDK::RequestOptions::OrHash
27
+ ).returns(T.attached_class)
28
+ end
29
+ def self.new(
30
+ # The ID of the DM channel to add the member to
31
+ channel_id:,
32
+ # The ID of the user to add to the channel
33
+ user_id:,
34
+ request_options: {}
35
+ )
36
+ end
37
+
38
+ sig do
39
+ override.returns(
40
+ {
41
+ channel_id: String,
42
+ user_id: String,
43
+ request_options: WhopSDK::RequestOptions
44
+ }
45
+ )
46
+ end
47
+ def to_hash
48
+ end
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,27 @@
1
+ # typed: strong
2
+
3
+ module WhopSDK
4
+ module Models
5
+ class DmMemberDeleteParams < WhopSDK::Internal::Type::BaseModel
6
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
7
+ include WhopSDK::Internal::Type::RequestParameters
8
+
9
+ OrHash =
10
+ T.type_alias do
11
+ T.any(WhopSDK::DmMemberDeleteParams, WhopSDK::Internal::AnyHash)
12
+ end
13
+
14
+ sig do
15
+ params(request_options: WhopSDK::RequestOptions::OrHash).returns(
16
+ T.attached_class
17
+ )
18
+ end
19
+ def self.new(request_options: {})
20
+ end
21
+
22
+ sig { override.returns({ request_options: WhopSDK::RequestOptions }) }
23
+ def to_hash
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,8 @@
1
+ # typed: strong
2
+
3
+ module WhopSDK
4
+ module Models
5
+ DmMemberDeleteResponse =
6
+ T.let(T::Boolean, WhopSDK::Internal::Type::Converter)
7
+ end
8
+ end
@@ -0,0 +1,75 @@
1
+ # typed: strong
2
+
3
+ module WhopSDK
4
+ module Models
5
+ class DmMemberListParams < WhopSDK::Internal::Type::BaseModel
6
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
7
+ include WhopSDK::Internal::Type::RequestParameters
8
+
9
+ OrHash =
10
+ T.type_alias do
11
+ T.any(WhopSDK::DmMemberListParams, WhopSDK::Internal::AnyHash)
12
+ end
13
+
14
+ # The ID of the DM channel to list members for
15
+ sig { returns(String) }
16
+ attr_accessor :channel_id
17
+
18
+ # Returns the elements in the list that come after the specified cursor.
19
+ sig { returns(T.nilable(String)) }
20
+ attr_accessor :after
21
+
22
+ # Returns the elements in the list that come before the specified cursor.
23
+ sig { returns(T.nilable(String)) }
24
+ attr_accessor :before
25
+
26
+ # Returns the first _n_ elements from the list.
27
+ sig { returns(T.nilable(Integer)) }
28
+ attr_accessor :first
29
+
30
+ # Returns the last _n_ elements from the list.
31
+ sig { returns(T.nilable(Integer)) }
32
+ attr_accessor :last
33
+
34
+ sig do
35
+ params(
36
+ channel_id: String,
37
+ after: T.nilable(String),
38
+ before: T.nilable(String),
39
+ first: T.nilable(Integer),
40
+ last: T.nilable(Integer),
41
+ request_options: WhopSDK::RequestOptions::OrHash
42
+ ).returns(T.attached_class)
43
+ end
44
+ def self.new(
45
+ # The ID of the DM channel to list members for
46
+ channel_id:,
47
+ # Returns the elements in the list that come after the specified cursor.
48
+ after: nil,
49
+ # Returns the elements in the list that come before the specified cursor.
50
+ before: nil,
51
+ # Returns the first _n_ elements from the list.
52
+ first: nil,
53
+ # Returns the last _n_ elements from the list.
54
+ last: nil,
55
+ request_options: {}
56
+ )
57
+ end
58
+
59
+ sig do
60
+ override.returns(
61
+ {
62
+ channel_id: String,
63
+ after: T.nilable(String),
64
+ before: T.nilable(String),
65
+ first: T.nilable(Integer),
66
+ last: T.nilable(Integer),
67
+ request_options: WhopSDK::RequestOptions
68
+ }
69
+ )
70
+ end
71
+ def to_hash
72
+ end
73
+ end
74
+ end
75
+ end
@@ -0,0 +1,75 @@
1
+ # typed: strong
2
+
3
+ module WhopSDK
4
+ module Models
5
+ class DmMemberListResponse < WhopSDK::Internal::Type::BaseModel
6
+ OrHash =
7
+ T.type_alias do
8
+ T.any(
9
+ WhopSDK::Models::DmMemberListResponse,
10
+ WhopSDK::Internal::AnyHash
11
+ )
12
+ end
13
+
14
+ # The unique identifier for the entity
15
+ sig { returns(String) }
16
+ attr_accessor :id
17
+
18
+ # The ID of the DM channel
19
+ sig { returns(String) }
20
+ attr_accessor :channel_id
21
+
22
+ # Timestamp when the member last viewed the channel (in milliseconds since Unix
23
+ # epoch)
24
+ sig { returns(T.nilable(String)) }
25
+ attr_accessor :last_viewed_at
26
+
27
+ # The status of the membership (requested, accepted, rejected)
28
+ sig { returns(WhopSDK::DmFeedMemberStatuses::TaggedSymbol) }
29
+ attr_accessor :status
30
+
31
+ # The ID of the user who is a member of the channel
32
+ sig { returns(String) }
33
+ attr_accessor :user_id
34
+
35
+ # Represents a member of a DM channel
36
+ sig do
37
+ params(
38
+ id: String,
39
+ channel_id: String,
40
+ last_viewed_at: T.nilable(String),
41
+ status: WhopSDK::DmFeedMemberStatuses::OrSymbol,
42
+ user_id: String
43
+ ).returns(T.attached_class)
44
+ end
45
+ def self.new(
46
+ # The unique identifier for the entity
47
+ id:,
48
+ # The ID of the DM channel
49
+ channel_id:,
50
+ # Timestamp when the member last viewed the channel (in milliseconds since Unix
51
+ # epoch)
52
+ last_viewed_at:,
53
+ # The status of the membership (requested, accepted, rejected)
54
+ status:,
55
+ # The ID of the user who is a member of the channel
56
+ user_id:
57
+ )
58
+ end
59
+
60
+ sig do
61
+ override.returns(
62
+ {
63
+ id: String,
64
+ channel_id: String,
65
+ last_viewed_at: T.nilable(String),
66
+ status: WhopSDK::DmFeedMemberStatuses::TaggedSymbol,
67
+ user_id: String
68
+ }
69
+ )
70
+ end
71
+ def to_hash
72
+ end
73
+ end
74
+ end
75
+ end
@@ -0,0 +1,27 @@
1
+ # typed: strong
2
+
3
+ module WhopSDK
4
+ module Models
5
+ class DmMemberRetrieveParams < WhopSDK::Internal::Type::BaseModel
6
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
7
+ include WhopSDK::Internal::Type::RequestParameters
8
+
9
+ OrHash =
10
+ T.type_alias do
11
+ T.any(WhopSDK::DmMemberRetrieveParams, WhopSDK::Internal::AnyHash)
12
+ end
13
+
14
+ sig do
15
+ params(request_options: WhopSDK::RequestOptions::OrHash).returns(
16
+ T.attached_class
17
+ )
18
+ end
19
+ def self.new(request_options: {})
20
+ end
21
+
22
+ sig { override.returns({ request_options: WhopSDK::RequestOptions }) }
23
+ def to_hash
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,57 @@
1
+ # typed: strong
2
+
3
+ module WhopSDK
4
+ module Models
5
+ class DmMemberUpdateParams < WhopSDK::Internal::Type::BaseModel
6
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
7
+ include WhopSDK::Internal::Type::RequestParameters
8
+
9
+ OrHash =
10
+ T.type_alias do
11
+ T.any(WhopSDK::DmMemberUpdateParams, WhopSDK::Internal::AnyHash)
12
+ end
13
+
14
+ # The notification preferences for a DMs feed member
15
+ sig do
16
+ returns(
17
+ T.nilable(WhopSDK::DmFeedMemberNotificationPreferences::OrSymbol)
18
+ )
19
+ end
20
+ attr_accessor :notification_preference
21
+
22
+ # The statuses of a DMs feed member
23
+ sig { returns(T.nilable(WhopSDK::DmFeedMemberStatuses::OrSymbol)) }
24
+ attr_accessor :status
25
+
26
+ sig do
27
+ params(
28
+ notification_preference:
29
+ T.nilable(WhopSDK::DmFeedMemberNotificationPreferences::OrSymbol),
30
+ status: T.nilable(WhopSDK::DmFeedMemberStatuses::OrSymbol),
31
+ request_options: WhopSDK::RequestOptions::OrHash
32
+ ).returns(T.attached_class)
33
+ end
34
+ def self.new(
35
+ # The notification preferences for a DMs feed member
36
+ notification_preference: nil,
37
+ # The statuses of a DMs feed member
38
+ status: nil,
39
+ request_options: {}
40
+ )
41
+ end
42
+
43
+ sig do
44
+ override.returns(
45
+ {
46
+ notification_preference:
47
+ T.nilable(WhopSDK::DmFeedMemberNotificationPreferences::OrSymbol),
48
+ status: T.nilable(WhopSDK::DmFeedMemberStatuses::OrSymbol),
49
+ request_options: WhopSDK::RequestOptions
50
+ }
51
+ )
52
+ end
53
+ def to_hash
54
+ end
55
+ end
56
+ end
57
+ end
@@ -29,9 +29,7 @@ module WhopSDK
29
29
  attr_accessor :upload_headers
30
30
 
31
31
  # The upload status of the file
32
- sig do
33
- returns(WhopSDK::Models::FileCreateResponse::UploadStatus::TaggedSymbol)
34
- end
32
+ sig { returns(WhopSDK::UploadStatus::TaggedSymbol) }
35
33
  attr_accessor :upload_status
36
34
 
37
35
  # The presigned URL to upload the file to (only on create)
@@ -50,8 +48,7 @@ module WhopSDK
50
48
  filename: T.nilable(String),
51
49
  size: T.nilable(String),
52
50
  upload_headers: T.nilable(T::Hash[Symbol, T.anything]),
53
- upload_status:
54
- WhopSDK::Models::FileCreateResponse::UploadStatus::OrSymbol,
51
+ upload_status: WhopSDK::UploadStatus::OrSymbol,
55
52
  upload_url: T.nilable(String),
56
53
  url: T.nilable(String)
57
54
  ).returns(T.attached_class)
@@ -84,8 +81,7 @@ module WhopSDK
84
81
  filename: T.nilable(String),
85
82
  size: T.nilable(String),
86
83
  upload_headers: T.nilable(T::Hash[Symbol, T.anything]),
87
- upload_status:
88
- WhopSDK::Models::FileCreateResponse::UploadStatus::TaggedSymbol,
84
+ upload_status: WhopSDK::UploadStatus::TaggedSymbol,
89
85
  upload_url: T.nilable(String),
90
86
  url: T.nilable(String)
91
87
  }
@@ -93,48 +89,6 @@ module WhopSDK
93
89
  end
94
90
  def to_hash
95
91
  end
96
-
97
- # The upload status of the file
98
- module UploadStatus
99
- extend WhopSDK::Internal::Type::Enum
100
-
101
- TaggedSymbol =
102
- T.type_alias do
103
- T.all(Symbol, WhopSDK::Models::FileCreateResponse::UploadStatus)
104
- end
105
- OrSymbol = T.type_alias { T.any(Symbol, String) }
106
-
107
- PENDING =
108
- T.let(
109
- :pending,
110
- WhopSDK::Models::FileCreateResponse::UploadStatus::TaggedSymbol
111
- )
112
- PROCESSING =
113
- T.let(
114
- :processing,
115
- WhopSDK::Models::FileCreateResponse::UploadStatus::TaggedSymbol
116
- )
117
- READY =
118
- T.let(
119
- :ready,
120
- WhopSDK::Models::FileCreateResponse::UploadStatus::TaggedSymbol
121
- )
122
- FAILED =
123
- T.let(
124
- :failed,
125
- WhopSDK::Models::FileCreateResponse::UploadStatus::TaggedSymbol
126
- )
127
-
128
- sig do
129
- override.returns(
130
- T::Array[
131
- WhopSDK::Models::FileCreateResponse::UploadStatus::TaggedSymbol
132
- ]
133
- )
134
- end
135
- def self.values
136
- end
137
- end
138
92
  end
139
93
  end
140
94
  end
@@ -28,11 +28,7 @@ module WhopSDK
28
28
  attr_accessor :size
29
29
 
30
30
  # The upload status of the file
31
- sig do
32
- returns(
33
- WhopSDK::Models::FileRetrieveResponse::UploadStatus::TaggedSymbol
34
- )
35
- end
31
+ sig { returns(WhopSDK::UploadStatus::TaggedSymbol) }
36
32
  attr_accessor :upload_status
37
33
 
38
34
  # The URL to access the file
@@ -46,8 +42,7 @@ module WhopSDK
46
42
  content_type: T.nilable(String),
47
43
  filename: T.nilable(String),
48
44
  size: T.nilable(String),
49
- upload_status:
50
- WhopSDK::Models::FileRetrieveResponse::UploadStatus::OrSymbol,
45
+ upload_status: WhopSDK::UploadStatus::OrSymbol,
51
46
  url: T.nilable(String)
52
47
  ).returns(T.attached_class)
53
48
  end
@@ -74,56 +69,13 @@ module WhopSDK
74
69
  content_type: T.nilable(String),
75
70
  filename: T.nilable(String),
76
71
  size: T.nilable(String),
77
- upload_status:
78
- WhopSDK::Models::FileRetrieveResponse::UploadStatus::TaggedSymbol,
72
+ upload_status: WhopSDK::UploadStatus::TaggedSymbol,
79
73
  url: T.nilable(String)
80
74
  }
81
75
  )
82
76
  end
83
77
  def to_hash
84
78
  end
85
-
86
- # The upload status of the file
87
- module UploadStatus
88
- extend WhopSDK::Internal::Type::Enum
89
-
90
- TaggedSymbol =
91
- T.type_alias do
92
- T.all(Symbol, WhopSDK::Models::FileRetrieveResponse::UploadStatus)
93
- end
94
- OrSymbol = T.type_alias { T.any(Symbol, String) }
95
-
96
- PENDING =
97
- T.let(
98
- :pending,
99
- WhopSDK::Models::FileRetrieveResponse::UploadStatus::TaggedSymbol
100
- )
101
- PROCESSING =
102
- T.let(
103
- :processing,
104
- WhopSDK::Models::FileRetrieveResponse::UploadStatus::TaggedSymbol
105
- )
106
- READY =
107
- T.let(
108
- :ready,
109
- WhopSDK::Models::FileRetrieveResponse::UploadStatus::TaggedSymbol
110
- )
111
- FAILED =
112
- T.let(
113
- :failed,
114
- WhopSDK::Models::FileRetrieveResponse::UploadStatus::TaggedSymbol
115
- )
116
-
117
- sig do
118
- override.returns(
119
- T::Array[
120
- WhopSDK::Models::FileRetrieveResponse::UploadStatus::TaggedSymbol
121
- ]
122
- )
123
- end
124
- def self.values
125
- end
126
- end
127
79
  end
128
80
  end
129
81
  end