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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +32 -0
- data/README.md +3 -3
- data/lib/whop_sdk/client.rb +16 -0
- data/lib/whop_sdk/internal/transport/pooled_net_requester.rb +1 -1
- data/lib/whop_sdk/models/ai_chat.rb +89 -0
- data/lib/whop_sdk/models/ai_chat_create_params.rb +22 -0
- data/lib/whop_sdk/models/ai_chat_delete_params.rb +14 -0
- data/lib/whop_sdk/models/ai_chat_delete_response.rb +8 -0
- data/lib/whop_sdk/models/ai_chat_list_params.rb +46 -0
- data/lib/whop_sdk/models/ai_chat_list_response.rb +89 -0
- data/lib/whop_sdk/models/ai_chat_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/ai_chat_update_params.rb +22 -0
- data/lib/whop_sdk/models/api_version.rb +17 -0
- data/lib/whop_sdk/models/app_list_params.rb +1 -0
- data/lib/whop_sdk/models/authorized_user_list_params.rb +9 -9
- data/lib/whop_sdk/models/authorized_user_list_response.rb +31 -1
- data/lib/whop_sdk/models/authorized_user_retrieve_response.rb +31 -1
- data/lib/whop_sdk/models/bot_token_transaction_types.rb +17 -0
- data/lib/whop_sdk/models/cancel_options.rb +22 -0
- data/lib/whop_sdk/models/company_token_transaction.rb +165 -0
- data/lib/whop_sdk/models/company_token_transaction_create_params.rb +69 -0
- data/lib/whop_sdk/models/company_token_transaction_list_params.rb +70 -0
- data/lib/whop_sdk/models/company_token_transaction_list_response.rb +165 -0
- data/lib/whop_sdk/models/company_token_transaction_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/dm_channel.rb +43 -0
- data/lib/whop_sdk/models/dm_channel_create_params.rb +38 -0
- data/lib/whop_sdk/models/dm_channel_delete_params.rb +14 -0
- data/lib/whop_sdk/models/dm_channel_delete_response.rb +8 -0
- data/lib/whop_sdk/models/dm_channel_list_params.rb +54 -0
- data/lib/whop_sdk/models/dm_channel_list_response.rb +43 -0
- data/lib/whop_sdk/models/dm_channel_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/dm_channel_update_params.rb +22 -0
- data/lib/whop_sdk/models/dm_feed_member_notification_preferences.rb +17 -0
- data/lib/whop_sdk/models/dm_feed_member_statuses.rb +19 -0
- data/lib/whop_sdk/models/dm_member.rb +63 -0
- data/lib/whop_sdk/models/dm_member_create_params.rb +30 -0
- data/lib/whop_sdk/models/dm_member_delete_params.rb +14 -0
- data/lib/whop_sdk/models/dm_member_delete_response.rb +8 -0
- data/lib/whop_sdk/models/dm_member_list_params.rb +54 -0
- data/lib/whop_sdk/models/dm_member_list_response.rb +55 -0
- data/lib/whop_sdk/models/dm_member_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/dm_member_update_params.rb +30 -0
- data/lib/whop_sdk/models/file_create_response.rb +3 -18
- data/lib/whop_sdk/models/file_retrieve_response.rb +3 -18
- data/lib/whop_sdk/models/{lead_create_response.rb → lead.rb} +13 -13
- data/lib/whop_sdk/models/ledger_account_retrieve_response.rb +6 -63
- data/lib/whop_sdk/models/member_list_params.rb +9 -9
- data/lib/whop_sdk/models/membership.rb +3 -22
- data/lib/whop_sdk/models/membership_list_params.rb +3 -20
- data/lib/whop_sdk/models/membership_list_response.rb +3 -22
- data/lib/whop_sdk/models/message_create_params.rb +9 -1
- data/lib/whop_sdk/models/message_delete_params.rb +14 -0
- data/lib/whop_sdk/models/message_delete_response.rb +8 -0
- data/lib/whop_sdk/models/payment.rb +63 -1
- data/lib/whop_sdk/models/payment_list_response.rb +63 -1
- data/lib/whop_sdk/models/payment_method_types.rb +1 -0
- data/lib/whop_sdk/models/payout_destination_category.rb +20 -0
- data/lib/whop_sdk/models/payout_method_created_webhook_event.rb +3 -20
- data/lib/whop_sdk/models/payout_method_list_response.rb +3 -20
- data/lib/whop_sdk/models/payout_method_retrieve_response.rb +3 -20
- data/lib/whop_sdk/models/reaction_create_params.rb +10 -1
- data/lib/whop_sdk/models/reaction_delete_params.rb +22 -0
- data/lib/whop_sdk/models/reaction_delete_response.rb +8 -0
- data/lib/whop_sdk/models/upload_status.rb +18 -0
- data/lib/whop_sdk/models/verification_error_code.rb +33 -0
- data/lib/whop_sdk/models/verification_retrieve_response.rb +6 -62
- data/lib/whop_sdk/models/verification_status.rb +27 -0
- data/lib/whop_sdk/models/verification_succeeded_webhook_event.rb +6 -62
- data/lib/whop_sdk/models/webhook.rb +88 -0
- data/lib/whop_sdk/models/webhook_create_params.rb +6 -56
- data/lib/whop_sdk/models/webhook_create_response.rb +9 -97
- data/lib/whop_sdk/models/webhook_event.rb +41 -0
- data/lib/whop_sdk/models/webhook_list_response.rb +6 -57
- data/lib/whop_sdk/models/webhook_update_params.rb +6 -56
- data/lib/whop_sdk/models/{withdrawal_create_response.rb → withdrawal.rb} +15 -15
- data/lib/whop_sdk/models/withdrawal_created_webhook_event.rb +3 -267
- data/lib/whop_sdk/models/withdrawal_updated_webhook_event.rb +3 -267
- data/lib/whop_sdk/models.rb +74 -0
- data/lib/whop_sdk/resources/ai_chats.rb +141 -0
- data/lib/whop_sdk/resources/authorized_users.rb +4 -4
- data/lib/whop_sdk/resources/company_token_transactions.rb +121 -0
- data/lib/whop_sdk/resources/dm_channels.rb +151 -0
- data/lib/whop_sdk/resources/dm_members.rb +155 -0
- data/lib/whop_sdk/resources/leads.rb +6 -12
- data/lib/whop_sdk/resources/members.rb +4 -4
- data/lib/whop_sdk/resources/memberships.rb +1 -1
- data/lib/whop_sdk/resources/messages.rb +27 -1
- data/lib/whop_sdk/resources/reactions.rb +34 -1
- data/lib/whop_sdk/resources/webhooks.rb +8 -8
- data/lib/whop_sdk/resources/withdrawals.rb +4 -4
- data/lib/whop_sdk/version.rb +1 -1
- data/lib/whop_sdk.rb +50 -7
- data/rbi/whop_sdk/client.rbi +12 -0
- data/rbi/whop_sdk/models/ai_chat.rbi +118 -0
- data/rbi/whop_sdk/models/ai_chat_create_params.rbi +40 -0
- data/rbi/whop_sdk/models/ai_chat_delete_params.rbi +27 -0
- data/rbi/whop_sdk/models/ai_chat_delete_response.rbi +7 -0
- data/rbi/whop_sdk/models/ai_chat_list_params.rbi +67 -0
- data/rbi/whop_sdk/models/ai_chat_list_response.rbi +125 -0
- data/rbi/whop_sdk/models/ai_chat_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/ai_chat_update_params.rbi +40 -0
- data/rbi/whop_sdk/models/api_version.rbi +21 -0
- data/rbi/whop_sdk/models/app_list_params.rbi +2 -0
- data/rbi/whop_sdk/models/authorized_user_list_params.rbi +8 -8
- data/rbi/whop_sdk/models/authorized_user_list_response.rbi +47 -0
- data/rbi/whop_sdk/models/authorized_user_retrieve_response.rbi +49 -0
- data/rbi/whop_sdk/models/bot_token_transaction_types.rbi +28 -0
- data/rbi/whop_sdk/models/cancel_options.rbi +30 -0
- data/rbi/whop_sdk/models/company_token_transaction.rbi +237 -0
- data/rbi/whop_sdk/models/company_token_transaction_create_params.rbi +92 -0
- data/rbi/whop_sdk/models/company_token_transaction_list_params.rbi +96 -0
- data/rbi/whop_sdk/models/company_token_transaction_list_response.rbi +262 -0
- data/rbi/whop_sdk/models/company_token_transaction_retrieve_params.rbi +30 -0
- data/rbi/whop_sdk/models/dm_channel.rbi +60 -0
- data/rbi/whop_sdk/models/dm_channel_create_params.rbi +59 -0
- data/rbi/whop_sdk/models/dm_channel_delete_params.rbi +27 -0
- data/rbi/whop_sdk/models/dm_channel_delete_response.rbi +8 -0
- data/rbi/whop_sdk/models/dm_channel_list_params.rbi +75 -0
- data/rbi/whop_sdk/models/dm_channel_list_response.rbi +65 -0
- data/rbi/whop_sdk/models/dm_channel_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/dm_channel_update_params.rbi +43 -0
- data/rbi/whop_sdk/models/dm_feed_member_notification_preferences.rbi +34 -0
- data/rbi/whop_sdk/models/dm_feed_member_statuses.rbi +26 -0
- data/rbi/whop_sdk/models/dm_member.rbi +82 -0
- data/rbi/whop_sdk/models/dm_member_create_params.rbi +51 -0
- data/rbi/whop_sdk/models/dm_member_delete_params.rbi +27 -0
- data/rbi/whop_sdk/models/dm_member_delete_response.rbi +8 -0
- data/rbi/whop_sdk/models/dm_member_list_params.rbi +75 -0
- data/rbi/whop_sdk/models/dm_member_list_response.rbi +75 -0
- data/rbi/whop_sdk/models/dm_member_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/dm_member_update_params.rbi +57 -0
- data/rbi/whop_sdk/models/file_create_response.rbi +3 -49
- data/rbi/whop_sdk/models/file_retrieve_response.rbi +3 -51
- data/rbi/whop_sdk/models/{lead_update_response.rbi → lead.rbi} +17 -42
- data/rbi/whop_sdk/models/ledger_account_retrieve_response.rbi +6 -230
- data/rbi/whop_sdk/models/member_list_params.rbi +8 -8
- data/rbi/whop_sdk/models/membership.rbi +3 -47
- data/rbi/whop_sdk/models/membership_list_params.rbi +3 -70
- data/rbi/whop_sdk/models/membership_list_response.rbi +3 -73
- data/rbi/whop_sdk/models/message_create_params.rbi +8 -0
- data/rbi/whop_sdk/models/message_delete_params.rbi +27 -0
- data/rbi/whop_sdk/models/message_delete_response.rbi +8 -0
- data/rbi/whop_sdk/models/payment.rbi +88 -0
- data/rbi/whop_sdk/models/payment_list_response.rbi +100 -0
- data/rbi/whop_sdk/models/payment_method_types.rbi +1 -0
- data/rbi/whop_sdk/models/payout_destination_category.rbi +33 -0
- data/rbi/whop_sdk/models/payout_method_created_webhook_event.rbi +3 -64
- data/rbi/whop_sdk/models/payout_method_list_response.rbi +3 -64
- data/rbi/whop_sdk/models/payout_method_retrieve_response.rbi +3 -64
- data/rbi/whop_sdk/models/reaction_create_params.rbi +10 -0
- data/rbi/whop_sdk/models/reaction_delete_params.rbi +40 -0
- data/rbi/whop_sdk/models/reaction_delete_response.rbi +8 -0
- data/rbi/whop_sdk/models/upload_status.rbi +22 -0
- data/rbi/whop_sdk/models/verification_error_code.rbi +101 -0
- data/rbi/whop_sdk/models/verification_retrieve_response.rbi +6 -230
- data/rbi/whop_sdk/models/verification_status.rbi +38 -0
- data/rbi/whop_sdk/models/verification_succeeded_webhook_event.rbi +6 -232
- data/rbi/whop_sdk/models/webhook.rbi +104 -0
- data/rbi/whop_sdk/models/webhook_create_params.rbi +6 -194
- data/rbi/whop_sdk/models/webhook_create_response.rbi +9 -386
- data/rbi/whop_sdk/models/webhook_event.rbi +79 -0
- data/rbi/whop_sdk/models/webhook_list_response.rbi +6 -210
- data/rbi/whop_sdk/models/webhook_update_params.rbi +6 -194
- data/rbi/whop_sdk/models/{withdrawal_create_response.rbi → withdrawal.rbi} +63 -127
- data/rbi/whop_sdk/models/withdrawal_created_webhook_event.rbi +4 -571
- data/rbi/whop_sdk/models/withdrawal_updated_webhook_event.rbi +4 -571
- data/rbi/whop_sdk/models.rbi +78 -0
- data/rbi/whop_sdk/resources/ai_chats.rbi +108 -0
- data/rbi/whop_sdk/resources/authorized_users.rbi +3 -3
- data/rbi/whop_sdk/resources/company_token_transactions.rbi +112 -0
- data/rbi/whop_sdk/resources/dm_channels.rbi +121 -0
- data/rbi/whop_sdk/resources/dm_members.rbi +126 -0
- data/rbi/whop_sdk/resources/leads.rbi +3 -3
- data/rbi/whop_sdk/resources/members.rbi +3 -3
- data/rbi/whop_sdk/resources/memberships.rbi +1 -4
- data/rbi/whop_sdk/resources/messages.rbi +21 -0
- data/rbi/whop_sdk/resources/reactions.rbi +26 -0
- data/rbi/whop_sdk/resources/webhooks.rbi +6 -10
- data/rbi/whop_sdk/resources/withdrawals.rbi +2 -2
- data/sig/whop_sdk/client.rbs +8 -0
- data/sig/whop_sdk/models/ai_chat.rbs +65 -0
- data/sig/whop_sdk/models/ai_chat_create_params.rbs +23 -0
- data/sig/whop_sdk/models/ai_chat_delete_params.rbs +15 -0
- data/sig/whop_sdk/models/ai_chat_delete_response.rbs +5 -0
- data/sig/whop_sdk/models/ai_chat_list_params.rbs +36 -0
- data/sig/whop_sdk/models/ai_chat_list_response.rbs +65 -0
- data/sig/whop_sdk/models/ai_chat_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/ai_chat_update_params.rbs +23 -0
- data/sig/whop_sdk/models/api_version.rbs +15 -0
- data/sig/whop_sdk/models/app_list_params.rbs +3 -1
- data/sig/whop_sdk/models/authorized_user_list_params.rbs +5 -5
- data/sig/whop_sdk/models/authorized_user_list_response.rbs +17 -0
- data/sig/whop_sdk/models/authorized_user_retrieve_response.rbs +17 -0
- data/sig/whop_sdk/models/bot_token_transaction_types.rbs +15 -0
- data/sig/whop_sdk/models/cancel_options.rbs +26 -0
- data/sig/whop_sdk/models/company_token_transaction.rbs +103 -0
- data/sig/whop_sdk/models/company_token_transaction_create_params.rbs +56 -0
- data/sig/whop_sdk/models/company_token_transaction_list_params.rbs +56 -0
- data/sig/whop_sdk/models/company_token_transaction_list_response.rbs +103 -0
- data/sig/whop_sdk/models/company_token_transaction_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/dm_channel.rbs +30 -0
- data/sig/whop_sdk/models/dm_channel_create_params.rbs +36 -0
- data/sig/whop_sdk/models/dm_channel_delete_params.rbs +15 -0
- data/sig/whop_sdk/models/dm_channel_delete_response.rbs +5 -0
- data/sig/whop_sdk/models/dm_channel_list_params.rbs +46 -0
- data/sig/whop_sdk/models/dm_channel_list_response.rbs +30 -0
- data/sig/whop_sdk/models/dm_channel_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/dm_channel_update_params.rbs +23 -0
- data/sig/whop_sdk/models/dm_feed_member_notification_preferences.rbs +15 -0
- data/sig/whop_sdk/models/dm_feed_member_statuses.rbs +18 -0
- data/sig/whop_sdk/models/dm_member.rbs +45 -0
- data/sig/whop_sdk/models/dm_member_create_params.rbs +28 -0
- data/sig/whop_sdk/models/dm_member_delete_params.rbs +15 -0
- data/sig/whop_sdk/models/dm_member_delete_response.rbs +5 -0
- data/sig/whop_sdk/models/dm_member_list_params.rbs +46 -0
- data/sig/whop_sdk/models/dm_member_list_response.rbs +40 -0
- data/sig/whop_sdk/models/dm_member_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/dm_member_update_params.rbs +31 -0
- data/sig/whop_sdk/models/file_create_response.rbs +4 -17
- data/sig/whop_sdk/models/file_retrieve_response.rbs +4 -17
- data/sig/whop_sdk/models/{lead_create_response.rbs → lead.rbs} +14 -14
- data/sig/whop_sdk/models/ledger_account_retrieve_response.rbs +8 -90
- data/sig/whop_sdk/models/member_list_params.rbs +5 -5
- data/sig/whop_sdk/models/membership.rbs +4 -27
- data/sig/whop_sdk/models/membership_list_params.rbs +4 -27
- data/sig/whop_sdk/models/membership_list_response.rbs +4 -27
- data/sig/whop_sdk/models/message_create_params.rbs +6 -1
- data/sig/whop_sdk/models/message_delete_params.rbs +15 -0
- data/sig/whop_sdk/models/message_delete_response.rbs +5 -0
- data/sig/whop_sdk/models/payment.rbs +47 -0
- data/sig/whop_sdk/models/payment_list_response.rbs +47 -0
- data/sig/whop_sdk/models/payment_method_types.rbs +2 -0
- data/sig/whop_sdk/models/payout_destination_category.rbs +19 -0
- data/sig/whop_sdk/models/payout_method_created_webhook_event.rbs +4 -25
- data/sig/whop_sdk/models/payout_method_list_response.rbs +4 -25
- data/sig/whop_sdk/models/payout_method_retrieve_response.rbs +4 -25
- data/sig/whop_sdk/models/reaction_create_params.rbs +5 -1
- data/sig/whop_sdk/models/reaction_delete_params.rbs +23 -0
- data/sig/whop_sdk/models/reaction_delete_response.rbs +5 -0
- data/sig/whop_sdk/models/upload_status.rbs +16 -0
- data/sig/whop_sdk/models/verification_error_code.rbs +50 -0
- data/sig/whop_sdk/models/verification_retrieve_response.rbs +8 -90
- data/sig/whop_sdk/models/verification_status.rbs +38 -0
- data/sig/whop_sdk/models/verification_succeeded_webhook_event.rbs +8 -90
- data/sig/whop_sdk/models/webhook.rbs +60 -0
- data/sig/whop_sdk/models/webhook_create_params.rbs +8 -83
- data/sig/whop_sdk/models/webhook_create_response.rbs +12 -150
- data/sig/whop_sdk/models/webhook_event.rbs +66 -0
- data/sig/whop_sdk/models/webhook_list_response.rbs +8 -83
- data/sig/whop_sdk/models/webhook_update_params.rbs +8 -83
- data/sig/whop_sdk/models/{withdrawal_create_response.rbs → withdrawal.rbs} +15 -15
- data/sig/whop_sdk/models/withdrawal_created_webhook_event.rbs +4 -241
- data/sig/whop_sdk/models/withdrawal_updated_webhook_event.rbs +4 -241
- data/sig/whop_sdk/models.rbs +74 -0
- data/sig/whop_sdk/resources/ai_chats.rbs +33 -0
- data/sig/whop_sdk/resources/authorized_users.rbs +1 -1
- data/sig/whop_sdk/resources/company_token_transactions.rbs +34 -0
- data/sig/whop_sdk/resources/dm_channels.rbs +36 -0
- data/sig/whop_sdk/resources/dm_members.rbs +36 -0
- data/sig/whop_sdk/resources/leads.rbs +3 -3
- data/sig/whop_sdk/resources/members.rbs +1 -1
- data/sig/whop_sdk/resources/memberships.rbs +1 -1
- data/sig/whop_sdk/resources/messages.rbs +3 -0
- data/sig/whop_sdk/resources/reactions.rbs +7 -0
- data/sig/whop_sdk/resources/webhooks.rbs +6 -6
- data/sig/whop_sdk/resources/withdrawals.rbs +2 -2
- metadata +152 -23
- data/lib/whop_sdk/models/lead_retrieve_response.rb +0 -149
- data/lib/whop_sdk/models/lead_update_response.rb +0 -149
- data/lib/whop_sdk/models/webhook_retrieve_response.rb +0 -176
- data/lib/whop_sdk/models/webhook_update_response.rb +0 -176
- data/lib/whop_sdk/models/withdrawal_retrieve_response.rb +0 -268
- data/rbi/whop_sdk/models/lead_create_response.rbi +0 -234
- data/rbi/whop_sdk/models/lead_retrieve_response.rbi +0 -238
- data/rbi/whop_sdk/models/webhook_retrieve_response.rbi +0 -491
- data/rbi/whop_sdk/models/webhook_update_response.rbi +0 -486
- data/rbi/whop_sdk/models/withdrawal_retrieve_response.rbi +0 -568
- data/sig/whop_sdk/models/lead_retrieve_response.rbs +0 -104
- data/sig/whop_sdk/models/lead_update_response.rbs +0 -104
- data/sig/whop_sdk/models/webhook_retrieve_response.rbs +0 -198
- data/sig/whop_sdk/models/webhook_update_response.rbs +0 -198
- 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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6a80be479329709bdcbe983b4d0e2319dfb9f42720475ed5da78872b9510c2e2
|
|
4
|
+
data.tar.gz: 8ab39c69907d254193380ce538039600ae3da39cb82058827124e58fe2b33632
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
[](https://cursor.com/en-US/install-mcp?name=%40whop%2Fmcp&config=
|
|
12
|
-
[](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
|
+
[](https://cursor.com/en-US/install-mcp?name=%40whop%2Fmcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkB3aG9wL21jcCJdLCJlbnYiOnsiV0hPUF9BUElfS0VZIjoiTXkgQVBJIEtleSIsIldIT1BfV0VCSE9PS19TRUNSRVQiOiJNeSBXZWJob29rIEtleSIsIldIT1BfQVBQX0lEIjoiYXBwX3h4eHh4eHh4eHh4eHh4In19)
|
|
12
|
+
[](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.
|
|
29
|
+
gem "whop_sdk", "~> 0.0.26"
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
<!-- x-release-please-end -->
|
data/lib/whop_sdk/client.rb
CHANGED
|
@@ -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
|
-
|
|
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,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(
|
|
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
|