whop_sdk 0.0.26 → 0.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +63 -0
- data/README.md +1 -1
- data/lib/whop_sdk/client.rb +6 -3
- data/lib/whop_sdk/internal/util.rb +1 -1
- data/lib/whop_sdk/models/access_token_create_params.rb +18 -21
- data/lib/whop_sdk/models/access_token_create_response.rb +11 -5
- data/lib/whop_sdk/models/account_link_create_params.rb +14 -11
- data/lib/whop_sdk/models/account_link_create_response.rb +10 -6
- data/lib/whop_sdk/models/ai_chat.rb +26 -20
- data/lib/whop_sdk/models/ai_chat_create_params.rb +67 -3
- data/lib/whop_sdk/models/ai_chat_list_response.rb +26 -20
- data/lib/whop_sdk/models/ai_chat_update_params.rb +15 -3
- data/lib/whop_sdk/models/app.rb +101 -82
- data/lib/whop_sdk/models/app_build.rb +22 -22
- data/lib/whop_sdk/models/app_build_create_params.rb +20 -21
- data/lib/whop_sdk/models/app_build_list_params.rb +6 -6
- data/lib/whop_sdk/models/app_build_list_response.rb +22 -22
- data/lib/whop_sdk/models/app_create_params.rb +25 -10
- data/lib/whop_sdk/models/app_list_params.rb +7 -7
- data/lib/whop_sdk/models/app_list_response.rb +62 -57
- data/lib/whop_sdk/models/app_update_params.rb +53 -20
- data/lib/whop_sdk/models/authorized_user_list_params.rb +12 -8
- data/lib/whop_sdk/models/authorized_user_list_response.rb +28 -23
- data/lib/whop_sdk/models/authorized_user_retrieve_response.rb +28 -23
- data/lib/whop_sdk/models/business_types.rb +6 -0
- data/lib/whop_sdk/models/card_brands.rb +4 -0
- data/lib/whop_sdk/models/chat_channel.rb +29 -20
- data/lib/whop_sdk/models/chat_channel_list_params.rb +8 -4
- data/lib/whop_sdk/models/chat_channel_list_response.rb +29 -20
- data/lib/whop_sdk/models/chat_channel_update_params.rb +13 -8
- data/lib/whop_sdk/models/checkout_configuration.rb +39 -26
- data/lib/whop_sdk/models/checkout_configuration_create_params.rb +44 -32
- data/lib/whop_sdk/models/checkout_configuration_list_params.rb +12 -8
- data/lib/whop_sdk/models/checkout_configuration_list_response.rb +39 -26
- data/lib/whop_sdk/models/company.rb +48 -42
- data/lib/whop_sdk/models/company_create_params.rb +44 -26
- data/lib/whop_sdk/models/company_list_params.rb +17 -12
- data/lib/whop_sdk/models/company_list_response.rb +41 -36
- data/lib/whop_sdk/models/company_token_transaction.rb +44 -36
- data/lib/whop_sdk/models/company_token_transaction_create_params.rb +19 -12
- data/lib/whop_sdk/models/company_token_transaction_list_params.rb +7 -7
- data/lib/whop_sdk/models/company_token_transaction_list_response.rb +44 -36
- data/lib/whop_sdk/models/{bot_token_transaction_types.rb → company_token_transaction_type.rb} +1 -1
- data/lib/whop_sdk/models/company_update_params.rb +38 -14
- data/lib/whop_sdk/models/course.rb +101 -73
- data/lib/whop_sdk/models/course_chapter.rb +22 -16
- data/lib/whop_sdk/models/course_chapter_create_params.rb +8 -4
- data/lib/whop_sdk/models/course_chapter_list_params.rb +2 -2
- data/lib/whop_sdk/models/course_chapter_list_response.rb +8 -7
- data/lib/whop_sdk/models/course_chapter_update_params.rb +2 -2
- data/lib/whop_sdk/models/course_create_params.rb +20 -19
- data/lib/whop_sdk/models/course_lesson_create_params.rb +21 -15
- data/lib/whop_sdk/models/course_lesson_interaction.rb +44 -40
- data/lib/whop_sdk/models/course_lesson_interaction_completed_webhook_event.rb +7 -2
- data/lib/whop_sdk/models/course_lesson_interaction_list_item.rb +29 -28
- data/lib/whop_sdk/models/course_lesson_interaction_list_params.rb +8 -8
- data/lib/whop_sdk/models/course_lesson_list_params.rb +4 -4
- data/lib/whop_sdk/models/course_lesson_list_response.rb +32 -26
- data/lib/whop_sdk/models/course_lesson_submit_assessment_params.rb +2 -2
- data/lib/whop_sdk/models/course_lesson_submit_assessment_response.rb +16 -16
- data/lib/whop_sdk/models/course_lesson_update_params.rb +31 -26
- data/lib/whop_sdk/models/course_list_params.rb +4 -4
- data/lib/whop_sdk/models/course_list_response.rb +57 -44
- data/lib/whop_sdk/models/course_student_list_params.rb +4 -4
- data/lib/whop_sdk/models/course_student_list_response.rb +29 -22
- data/lib/whop_sdk/models/course_student_retrieve_response.rb +44 -34
- data/lib/whop_sdk/models/course_update_params.rb +19 -18
- data/lib/whop_sdk/models/dispute.rb +182 -131
- data/lib/whop_sdk/models/dispute_created_webhook_event.rb +6 -2
- data/lib/whop_sdk/models/dispute_list_params.rb +6 -6
- data/lib/whop_sdk/models/dispute_list_response.rb +57 -41
- data/lib/whop_sdk/models/dispute_update_evidence_params.rb +37 -32
- data/lib/whop_sdk/models/dispute_updated_webhook_event.rb +6 -2
- data/lib/whop_sdk/models/dm_channel.rb +11 -5
- data/lib/whop_sdk/models/dm_channel_create_params.rb +11 -6
- data/lib/whop_sdk/models/dm_channel_list_params.rb +6 -2
- data/lib/whop_sdk/models/dm_channel_list_response.rb +11 -5
- data/lib/whop_sdk/models/dm_channel_update_params.rb +5 -2
- data/lib/whop_sdk/models/dm_member.rb +14 -12
- data/lib/whop_sdk/models/dm_member_create_params.rb +8 -4
- data/lib/whop_sdk/models/dm_member_list_params.rb +2 -2
- data/lib/whop_sdk/models/dm_member_list_response.rb +12 -10
- data/lib/whop_sdk/models/entry.rb +49 -34
- data/lib/whop_sdk/models/entry_approved_webhook_event.rb +2 -2
- data/lib/whop_sdk/models/entry_created_webhook_event.rb +2 -2
- data/lib/whop_sdk/models/entry_deleted_webhook_event.rb +2 -2
- data/lib/whop_sdk/models/entry_denied_webhook_event.rb +2 -2
- data/lib/whop_sdk/models/entry_list_params.rb +12 -12
- data/lib/whop_sdk/models/entry_list_response.rb +44 -30
- data/lib/whop_sdk/models/experience.rb +65 -49
- data/lib/whop_sdk/models/experience_attach_params.rb +2 -2
- data/lib/whop_sdk/models/experience_create_params.rb +13 -13
- data/lib/whop_sdk/models/experience_detach_params.rb +2 -2
- data/lib/whop_sdk/models/experience_duplicate_params.rb +6 -2
- data/lib/whop_sdk/models/experience_list_params.rb +10 -10
- data/lib/whop_sdk/models/experience_list_response.rb +51 -38
- data/lib/whop_sdk/models/experience_update_params.rb +11 -11
- data/lib/whop_sdk/models/fee_markup_create_params.rb +15 -12
- data/lib/whop_sdk/models/fee_markup_create_response.rb +22 -15
- data/lib/whop_sdk/models/fee_markup_list_params.rb +3 -3
- data/lib/whop_sdk/models/fee_markup_list_response.rb +22 -15
- data/lib/whop_sdk/models/file_create_params.rb +6 -2
- data/lib/whop_sdk/models/file_create_response.rb +22 -17
- data/lib/whop_sdk/models/file_retrieve_response.rb +16 -13
- data/lib/whop_sdk/models/forum.rb +25 -14
- data/lib/whop_sdk/models/forum_list_params.rb +8 -4
- data/lib/whop_sdk/models/forum_list_response.rb +25 -14
- data/lib/whop_sdk/models/forum_post.rb +43 -34
- data/lib/whop_sdk/models/forum_post_create_params.rb +38 -25
- data/lib/whop_sdk/models/forum_post_list_params.rb +11 -6
- data/lib/whop_sdk/models/forum_post_list_response.rb +43 -34
- data/lib/whop_sdk/models/forum_post_update_params.rb +13 -9
- data/lib/whop_sdk/models/friendly_receipt_status.rb +3 -1
- data/lib/whop_sdk/models/industry_groups.rb +148 -0
- data/lib/whop_sdk/models/industry_types.rb +1871 -0
- data/lib/whop_sdk/models/invoice.rb +42 -32
- data/lib/whop_sdk/models/invoice_create_params.rb +55 -43
- data/lib/whop_sdk/models/invoice_created_webhook_event.rb +7 -2
- data/lib/whop_sdk/models/invoice_list_item.rb +42 -32
- data/lib/whop_sdk/models/invoice_list_params.rb +16 -12
- data/lib/whop_sdk/models/invoice_paid_webhook_event.rb +7 -2
- data/lib/whop_sdk/models/invoice_past_due_webhook_event.rb +7 -2
- data/lib/whop_sdk/models/invoice_status.rb +1 -0
- data/lib/whop_sdk/models/invoice_voided_webhook_event.rb +7 -2
- data/lib/whop_sdk/models/lead.rb +51 -34
- data/lib/whop_sdk/models/lead_create_params.rb +15 -11
- data/lib/whop_sdk/models/lead_list_params.rb +8 -8
- data/lib/whop_sdk/models/lead_list_response.rb +51 -34
- data/lib/whop_sdk/models/lead_update_params.rb +8 -4
- data/lib/whop_sdk/models/ledger_account_retrieve_response.rb +39 -27
- data/lib/whop_sdk/models/lesson.rb +99 -75
- data/lib/whop_sdk/models/member_list_params.rb +21 -21
- data/lib/whop_sdk/models/member_list_response.rb +10 -11
- data/lib/whop_sdk/models/member_retrieve_response.rb +12 -13
- data/lib/whop_sdk/models/membership.rb +105 -77
- data/lib/whop_sdk/models/membership_activated_webhook_event.rb +3 -3
- data/lib/whop_sdk/models/membership_cancel_at_period_end_changed_webhook_event.rb +3 -3
- data/lib/whop_sdk/models/membership_deactivated_webhook_event.rb +3 -3
- data/lib/whop_sdk/models/membership_list_params.rb +22 -18
- data/lib/whop_sdk/models/membership_list_response.rb +100 -73
- data/lib/whop_sdk/models/membership_pause_params.rb +3 -3
- data/lib/whop_sdk/models/membership_update_params.rb +6 -2
- data/lib/whop_sdk/models/message.rb +49 -37
- data/lib/whop_sdk/models/message_create_params.rb +17 -11
- data/lib/whop_sdk/models/message_list_params.rb +2 -2
- data/lib/whop_sdk/models/message_list_response.rb +49 -37
- data/lib/whop_sdk/models/message_update_params.rb +12 -6
- data/lib/whop_sdk/models/notification_create_params.rb +26 -22
- data/lib/whop_sdk/models/payment.rb +440 -51
- data/lib/whop_sdk/models/payment_create_params.rb +21 -9
- data/lib/whop_sdk/models/payment_created_webhook_event.rb +6 -2
- data/lib/whop_sdk/models/payment_failed_webhook_event.rb +6 -2
- data/lib/whop_sdk/models/payment_list_params.rb +39 -26
- data/lib/whop_sdk/models/payment_list_response.rb +73 -50
- data/lib/whop_sdk/models/payment_method_list_params.rb +12 -8
- data/lib/whop_sdk/models/payment_method_list_response.rb +182 -92
- data/lib/whop_sdk/models/payment_method_retrieve_params.rb +9 -4
- data/lib/whop_sdk/models/payment_method_retrieve_response.rb +182 -92
- data/lib/whop_sdk/models/payment_method_types.rb +2 -0
- data/lib/whop_sdk/models/payment_pending_webhook_event.rb +6 -2
- data/lib/whop_sdk/models/payment_provider.rb +2 -0
- data/lib/whop_sdk/models/payment_refund_params.rb +6 -2
- data/lib/whop_sdk/models/payment_succeeded_webhook_event.rb +6 -2
- data/lib/whop_sdk/models/payout_method_created_webhook_event.rb +39 -28
- data/lib/whop_sdk/models/payout_method_list_params.rb +2 -2
- data/lib/whop_sdk/models/payout_method_list_response.rb +33 -26
- data/lib/whop_sdk/models/payout_method_retrieve_response.rb +33 -26
- data/lib/whop_sdk/models/plan.rb +110 -73
- data/lib/whop_sdk/models/plan_create_params.rb +45 -41
- data/lib/whop_sdk/models/plan_list_params.rb +14 -14
- data/lib/whop_sdk/models/plan_list_response.rb +99 -65
- data/lib/whop_sdk/models/plan_update_params.rb +45 -40
- data/lib/whop_sdk/models/product.rb +131 -72
- data/lib/whop_sdk/models/product_create_params.rb +52 -95
- data/lib/whop_sdk/models/product_list_item.rb +30 -25
- data/lib/whop_sdk/models/product_list_params.rb +10 -10
- data/lib/whop_sdk/models/product_update_params.rb +62 -29
- data/lib/whop_sdk/models/promo_code.rb +21 -13
- data/lib/whop_sdk/models/promo_code_create_params.rb +41 -33
- data/lib/whop_sdk/models/promo_code_list_params.rb +10 -10
- data/lib/whop_sdk/models/promo_code_list_response.rb +19 -11
- data/lib/whop_sdk/models/reaction.rb +18 -14
- data/lib/whop_sdk/models/reaction_create_params.rb +8 -8
- data/lib/whop_sdk/models/reaction_delete_params.rb +7 -2
- data/lib/whop_sdk/models/reaction_list_params.rb +2 -2
- data/lib/whop_sdk/models/reaction_list_response.rb +18 -14
- data/lib/whop_sdk/models/refund_created_webhook_event.rb +66 -42
- data/lib/whop_sdk/models/refund_list_params.rb +6 -6
- data/lib/whop_sdk/models/refund_list_response.rb +32 -22
- data/lib/whop_sdk/models/refund_retrieve_response.rb +59 -40
- data/lib/whop_sdk/models/refund_updated_webhook_event.rb +66 -42
- data/lib/whop_sdk/models/review_list_params.rb +10 -10
- data/lib/whop_sdk/models/review_list_response.rb +48 -41
- data/lib/whop_sdk/models/review_retrieve_response.rb +71 -57
- data/lib/whop_sdk/models/setup_intent.rb +59 -42
- data/lib/whop_sdk/models/setup_intent_canceled_webhook_event.rb +3 -3
- data/lib/whop_sdk/models/setup_intent_list_params.rb +6 -6
- data/lib/whop_sdk/models/setup_intent_list_response.rb +60 -42
- data/lib/whop_sdk/models/setup_intent_requires_action_webhook_event.rb +3 -3
- data/lib/whop_sdk/models/setup_intent_succeeded_webhook_event.rb +3 -3
- data/lib/whop_sdk/models/shipment.rb +30 -22
- data/lib/whop_sdk/models/shipment_create_params.rb +11 -6
- data/lib/whop_sdk/models/shipment_list_params.rb +6 -6
- data/lib/whop_sdk/models/shipment_list_response.rb +30 -22
- data/lib/whop_sdk/models/support_channel.rb +28 -18
- data/lib/whop_sdk/models/support_channel_create_params.rb +8 -4
- data/lib/whop_sdk/models/support_channel_list_params.rb +5 -6
- data/lib/whop_sdk/models/support_channel_list_response.rb +28 -18
- data/lib/whop_sdk/models/topup_create_params.rb +12 -8
- data/lib/whop_sdk/models/topup_create_response.rb +12 -7
- data/lib/whop_sdk/models/transfer.rb +74 -57
- data/lib/whop_sdk/models/transfer_create_params.rb +19 -16
- data/lib/whop_sdk/models/transfer_list_params.rb +10 -10
- data/lib/whop_sdk/models/transfer_list_response.rb +26 -19
- data/lib/whop_sdk/models/user.rb +83 -0
- data/lib/whop_sdk/models/user_update_profile_params.rb +63 -0
- data/lib/whop_sdk/models/verification_retrieve_response.rb +12 -7
- data/lib/whop_sdk/models/verification_succeeded_webhook_event.rb +18 -9
- data/lib/whop_sdk/models/webhook.rb +22 -21
- data/lib/whop_sdk/models/webhook_create_response.rb +25 -23
- data/lib/whop_sdk/models/webhook_list_params.rb +2 -2
- data/lib/whop_sdk/models/webhook_list_response.rb +18 -17
- data/lib/whop_sdk/models/withdrawal.rb +63 -49
- data/lib/whop_sdk/models/withdrawal_created_webhook_event.rb +6 -2
- data/lib/whop_sdk/models/withdrawal_list_params.rb +6 -6
- data/lib/whop_sdk/models/withdrawal_list_response.rb +22 -20
- data/lib/whop_sdk/models/withdrawal_updated_webhook_event.rb +6 -2
- data/lib/whop_sdk/models.rb +8 -2
- data/lib/whop_sdk/resources/access_tokens.rb +10 -10
- data/lib/whop_sdk/resources/account_links.rb +6 -7
- data/lib/whop_sdk/resources/ai_chats.rb +29 -13
- data/lib/whop_sdk/resources/app_builds.rb +21 -15
- data/lib/whop_sdk/resources/apps.rb +40 -24
- data/lib/whop_sdk/resources/authorized_users.rb +11 -7
- data/lib/whop_sdk/resources/chat_channels.rb +16 -14
- data/lib/whop_sdk/resources/checkout_configurations.rb +18 -14
- data/lib/whop_sdk/resources/companies.rb +41 -26
- data/lib/whop_sdk/resources/company_token_transactions.rb +19 -13
- data/lib/whop_sdk/resources/course_chapters.rb +15 -12
- data/lib/whop_sdk/resources/course_lesson_interactions.rb +8 -7
- data/lib/whop_sdk/resources/course_lessons.rb +45 -35
- data/lib/whop_sdk/resources/course_students.rb +6 -5
- data/lib/whop_sdk/resources/courses.rb +28 -24
- data/lib/whop_sdk/resources/disputes.rb +27 -22
- data/lib/whop_sdk/resources/dm_channels.rb +26 -13
- data/lib/whop_sdk/resources/dm_members.rb +18 -11
- data/lib/whop_sdk/resources/entries.rb +16 -13
- data/lib/whop_sdk/resources/experiences.rb +34 -30
- data/lib/whop_sdk/resources/fee_markups.rb +17 -11
- data/lib/whop_sdk/resources/files.rb +8 -4
- data/lib/whop_sdk/resources/forum_posts.rb +34 -23
- data/lib/whop_sdk/resources/forums.rb +15 -7
- data/lib/whop_sdk/resources/invoices.rb +33 -24
- data/lib/whop_sdk/resources/leads.rb +23 -17
- data/lib/whop_sdk/resources/ledger_accounts.rb +2 -2
- data/lib/whop_sdk/resources/members.rb +14 -13
- data/lib/whop_sdk/resources/memberships.rb +35 -25
- data/lib/whop_sdk/resources/messages.rb +28 -17
- data/lib/whop_sdk/resources/notifications.rb +10 -9
- data/lib/whop_sdk/resources/payment_methods.rb +18 -17
- data/lib/whop_sdk/resources/payments.rb +48 -25
- data/lib/whop_sdk/resources/payout_methods.rb +5 -4
- data/lib/whop_sdk/resources/plans.rb +53 -49
- data/lib/whop_sdk/resources/products.rb +49 -45
- data/lib/whop_sdk/resources/promo_codes.rb +30 -26
- data/lib/whop_sdk/resources/reactions.rb +14 -11
- data/lib/whop_sdk/resources/refunds.rb +7 -6
- data/lib/whop_sdk/resources/reviews.rb +9 -8
- data/lib/whop_sdk/resources/setup_intents.rb +8 -14
- data/lib/whop_sdk/resources/shipments.rb +15 -10
- data/lib/whop_sdk/resources/support_channels.rb +13 -9
- data/lib/whop_sdk/resources/topups.rb +9 -5
- data/lib/whop_sdk/resources/transfers.rb +17 -15
- data/lib/whop_sdk/resources/users.rb +43 -7
- data/lib/whop_sdk/resources/verifications.rb +2 -2
- data/lib/whop_sdk/resources/webhooks.rb +5 -4
- data/lib/whop_sdk/resources/withdrawals.rb +7 -6
- data/lib/whop_sdk/version.rb +1 -1
- data/lib/whop_sdk.rb +4 -2
- data/rbi/whop_sdk/client.rbi +6 -3
- data/rbi/whop_sdk/internal/util.rbi +1 -1
- data/rbi/whop_sdk/models/access_token_create_params.rbi +26 -32
- data/rbi/whop_sdk/models/access_token_create_response.rbi +10 -5
- data/rbi/whop_sdk/models/account_link_create_params.rbi +18 -13
- data/rbi/whop_sdk/models/account_link_create_response.rbi +8 -6
- data/rbi/whop_sdk/models/ai_chat.rbi +25 -20
- data/rbi/whop_sdk/models/ai_chat_create_params.rbi +114 -3
- data/rbi/whop_sdk/models/ai_chat_list_response.rbi +25 -20
- data/rbi/whop_sdk/models/ai_chat_update_params.rbi +16 -3
- data/rbi/whop_sdk/models/app.rbi +124 -97
- data/rbi/whop_sdk/models/app_build.rbi +24 -25
- data/rbi/whop_sdk/models/app_build_create_params.rbi +25 -27
- data/rbi/whop_sdk/models/app_build_list_params.rbi +6 -6
- data/rbi/whop_sdk/models/app_build_list_response.rbi +24 -25
- data/rbi/whop_sdk/models/app_create_params.rbi +23 -9
- data/rbi/whop_sdk/models/app_list_params.rbi +8 -8
- data/rbi/whop_sdk/models/app_list_response.rbi +78 -69
- data/rbi/whop_sdk/models/app_update_params.rbi +75 -19
- data/rbi/whop_sdk/models/authorized_user_list_params.rbi +10 -8
- data/rbi/whop_sdk/models/authorized_user_list_response.rbi +26 -23
- data/rbi/whop_sdk/models/authorized_user_retrieve_response.rbi +26 -23
- data/rbi/whop_sdk/models/business_types.rbi +8 -0
- data/rbi/whop_sdk/models/card_brands.rbi +5 -0
- data/rbi/whop_sdk/models/chat_channel.rbi +25 -20
- data/rbi/whop_sdk/models/chat_channel_list_params.rbi +6 -4
- data/rbi/whop_sdk/models/chat_channel_list_response.rbi +25 -20
- data/rbi/whop_sdk/models/chat_channel_update_params.rbi +12 -8
- data/rbi/whop_sdk/models/checkout_configuration.rbi +47 -27
- data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +53 -36
- data/rbi/whop_sdk/models/checkout_configuration_list_params.rbi +10 -8
- data/rbi/whop_sdk/models/checkout_configuration_list_response.rbi +47 -27
- data/rbi/whop_sdk/models/company.rbi +55 -44
- data/rbi/whop_sdk/models/company_create_params.rbi +49 -29
- data/rbi/whop_sdk/models/company_list_params.rbi +16 -12
- data/rbi/whop_sdk/models/company_list_response.rbi +47 -38
- data/rbi/whop_sdk/models/company_token_transaction.rbi +47 -37
- data/rbi/whop_sdk/models/company_token_transaction_create_params.rbi +20 -12
- data/rbi/whop_sdk/models/company_token_transaction_list_params.rbi +7 -7
- data/rbi/whop_sdk/models/company_token_transaction_list_response.rbi +47 -37
- data/rbi/whop_sdk/models/company_token_transaction_type.rbi +28 -0
- data/rbi/whop_sdk/models/company_update_params.rbi +40 -16
- data/rbi/whop_sdk/models/course.rbi +118 -80
- data/rbi/whop_sdk/models/course_chapter.rbi +20 -16
- data/rbi/whop_sdk/models/course_chapter_create_params.rbi +6 -4
- data/rbi/whop_sdk/models/course_chapter_list_params.rbi +2 -2
- data/rbi/whop_sdk/models/course_chapter_list_response.rbi +8 -7
- data/rbi/whop_sdk/models/course_chapter_update_params.rbi +2 -2
- data/rbi/whop_sdk/models/course_create_params.rbi +25 -23
- data/rbi/whop_sdk/models/course_lesson_create_params.rbi +21 -15
- data/rbi/whop_sdk/models/course_lesson_interaction.rbi +41 -40
- data/rbi/whop_sdk/models/course_lesson_interaction_completed_webhook_event.rbi +4 -2
- data/rbi/whop_sdk/models/course_lesson_interaction_list_item.rbi +29 -28
- data/rbi/whop_sdk/models/course_lesson_interaction_list_params.rbi +8 -8
- data/rbi/whop_sdk/models/course_lesson_list_params.rbi +4 -4
- data/rbi/whop_sdk/models/course_lesson_list_response.rbi +38 -28
- data/rbi/whop_sdk/models/course_lesson_submit_assessment_params.rbi +2 -2
- data/rbi/whop_sdk/models/course_lesson_submit_assessment_response.rbi +16 -16
- data/rbi/whop_sdk/models/course_lesson_update_params.rbi +36 -27
- data/rbi/whop_sdk/models/course_list_params.rbi +4 -4
- data/rbi/whop_sdk/models/course_list_response.rbi +74 -50
- data/rbi/whop_sdk/models/course_student_list_params.rbi +4 -4
- data/rbi/whop_sdk/models/course_student_list_response.rbi +29 -22
- data/rbi/whop_sdk/models/course_student_retrieve_response.rbi +41 -34
- data/rbi/whop_sdk/models/course_update_params.rbi +23 -21
- data/rbi/whop_sdk/models/dispute.rbi +216 -139
- data/rbi/whop_sdk/models/dispute_created_webhook_event.rbi +4 -2
- data/rbi/whop_sdk/models/dispute_list_params.rbi +6 -6
- data/rbi/whop_sdk/models/dispute_list_response.rbi +58 -41
- data/rbi/whop_sdk/models/dispute_update_evidence_params.rbi +35 -32
- data/rbi/whop_sdk/models/dispute_updated_webhook_event.rbi +4 -2
- data/rbi/whop_sdk/models/dm_channel.rbi +10 -5
- data/rbi/whop_sdk/models/dm_channel_create_params.rbi +10 -6
- data/rbi/whop_sdk/models/dm_channel_list_params.rbi +4 -2
- data/rbi/whop_sdk/models/dm_channel_list_response.rbi +10 -5
- data/rbi/whop_sdk/models/dm_channel_update_params.rbi +2 -2
- data/rbi/whop_sdk/models/dm_member.rbi +16 -13
- data/rbi/whop_sdk/models/dm_member_create_params.rbi +6 -4
- data/rbi/whop_sdk/models/dm_member_list_params.rbi +2 -2
- data/rbi/whop_sdk/models/dm_member_list_response.rbi +14 -11
- data/rbi/whop_sdk/models/entry.rbi +45 -34
- data/rbi/whop_sdk/models/entry_approved_webhook_event.rbi +2 -2
- data/rbi/whop_sdk/models/entry_created_webhook_event.rbi +2 -2
- data/rbi/whop_sdk/models/entry_deleted_webhook_event.rbi +2 -2
- data/rbi/whop_sdk/models/entry_denied_webhook_event.rbi +2 -2
- data/rbi/whop_sdk/models/entry_list_params.rbi +12 -12
- data/rbi/whop_sdk/models/entry_list_response.rbi +39 -30
- data/rbi/whop_sdk/models/experience.rbi +71 -54
- data/rbi/whop_sdk/models/experience_attach_params.rbi +2 -2
- data/rbi/whop_sdk/models/experience_create_params.rbi +13 -13
- data/rbi/whop_sdk/models/experience_detach_params.rbi +2 -2
- data/rbi/whop_sdk/models/experience_duplicate_params.rbi +4 -2
- data/rbi/whop_sdk/models/experience_list_params.rbi +10 -10
- data/rbi/whop_sdk/models/experience_list_response.rbi +53 -41
- data/rbi/whop_sdk/models/experience_update_params.rbi +11 -11
- data/rbi/whop_sdk/models/fee_markup_create_params.rbi +12 -12
- data/rbi/whop_sdk/models/fee_markup_create_response.rbi +22 -15
- data/rbi/whop_sdk/models/fee_markup_list_params.rbi +4 -4
- data/rbi/whop_sdk/models/fee_markup_list_response.rbi +22 -15
- data/rbi/whop_sdk/models/file_create_params.rbi +4 -2
- data/rbi/whop_sdk/models/file_create_response.rbi +21 -17
- data/rbi/whop_sdk/models/file_retrieve_response.rbi +13 -13
- data/rbi/whop_sdk/models/forum.rbi +23 -14
- data/rbi/whop_sdk/models/forum_list_params.rbi +6 -4
- data/rbi/whop_sdk/models/forum_list_response.rbi +23 -14
- data/rbi/whop_sdk/models/forum_post.rbi +45 -34
- data/rbi/whop_sdk/models/forum_post_create_params.rbi +45 -29
- data/rbi/whop_sdk/models/forum_post_list_params.rbi +10 -6
- data/rbi/whop_sdk/models/forum_post_list_response.rbi +45 -34
- data/rbi/whop_sdk/models/forum_post_update_params.rbi +16 -10
- data/rbi/whop_sdk/models/friendly_receipt_status.rbi +3 -1
- data/rbi/whop_sdk/models/industry_groups.rbi +418 -0
- data/rbi/whop_sdk/models/industry_types.rbi +3843 -0
- data/rbi/whop_sdk/models/invoice.rbi +44 -33
- data/rbi/whop_sdk/models/invoice_create_params.rbi +66 -53
- data/rbi/whop_sdk/models/invoice_created_webhook_event.rbi +6 -2
- data/rbi/whop_sdk/models/invoice_list_item.rbi +44 -33
- data/rbi/whop_sdk/models/invoice_list_params.rbi +14 -12
- data/rbi/whop_sdk/models/invoice_paid_webhook_event.rbi +6 -2
- data/rbi/whop_sdk/models/invoice_past_due_webhook_event.rbi +6 -2
- data/rbi/whop_sdk/models/invoice_status.rbi +1 -0
- data/rbi/whop_sdk/models/invoice_voided_webhook_event.rbi +6 -2
- data/rbi/whop_sdk/models/lead.rbi +47 -34
- data/rbi/whop_sdk/models/lead_create_params.rbi +18 -12
- data/rbi/whop_sdk/models/lead_list_params.rbi +8 -8
- data/rbi/whop_sdk/models/lead_list_response.rbi +47 -34
- data/rbi/whop_sdk/models/lead_update_params.rbi +6 -4
- data/rbi/whop_sdk/models/ledger_account_retrieve_response.rbi +30 -25
- data/rbi/whop_sdk/models/lesson.rbi +124 -80
- data/rbi/whop_sdk/models/member_list_params.rbi +22 -22
- data/rbi/whop_sdk/models/member_list_response.rbi +10 -11
- data/rbi/whop_sdk/models/member_retrieve_response.rbi +12 -13
- data/rbi/whop_sdk/models/membership.rbi +114 -80
- data/rbi/whop_sdk/models/membership_activated_webhook_event.rbi +4 -4
- data/rbi/whop_sdk/models/membership_cancel_at_period_end_changed_webhook_event.rbi +4 -4
- data/rbi/whop_sdk/models/membership_deactivated_webhook_event.rbi +4 -4
- data/rbi/whop_sdk/models/membership_list_params.rbi +20 -18
- data/rbi/whop_sdk/models/membership_list_response.rbi +108 -76
- data/rbi/whop_sdk/models/membership_pause_params.rbi +4 -4
- data/rbi/whop_sdk/models/membership_update_params.rbi +4 -2
- data/rbi/whop_sdk/models/message.rbi +55 -37
- data/rbi/whop_sdk/models/message_create_params.rbi +17 -11
- data/rbi/whop_sdk/models/message_list_params.rbi +2 -2
- data/rbi/whop_sdk/models/message_list_response.rbi +55 -37
- data/rbi/whop_sdk/models/message_update_params.rbi +10 -6
- data/rbi/whop_sdk/models/notification_create_params.rbi +36 -28
- data/rbi/whop_sdk/models/payment.rbi +824 -50
- data/rbi/whop_sdk/models/payment_create_params.rbi +24 -8
- data/rbi/whop_sdk/models/payment_created_webhook_event.rbi +4 -2
- data/rbi/whop_sdk/models/payment_failed_webhook_event.rbi +4 -2
- data/rbi/whop_sdk/models/payment_list_params.rbi +38 -26
- data/rbi/whop_sdk/models/payment_list_response.rbi +70 -50
- data/rbi/whop_sdk/models/payment_method_list_params.rbi +10 -8
- data/rbi/whop_sdk/models/payment_method_list_response.rbi +178 -86
- data/rbi/whop_sdk/models/payment_method_retrieve_params.rbi +8 -4
- data/rbi/whop_sdk/models/payment_method_retrieve_response.rbi +178 -86
- data/rbi/whop_sdk/models/payment_method_types.rbi +2 -0
- data/rbi/whop_sdk/models/payment_pending_webhook_event.rbi +4 -2
- data/rbi/whop_sdk/models/payment_provider.rbi +3 -0
- data/rbi/whop_sdk/models/payment_refund_params.rbi +4 -2
- data/rbi/whop_sdk/models/payment_succeeded_webhook_event.rbi +4 -2
- data/rbi/whop_sdk/models/payout_method_created_webhook_event.rbi +44 -31
- data/rbi/whop_sdk/models/payout_method_list_params.rbi +2 -2
- data/rbi/whop_sdk/models/payout_method_list_response.rbi +40 -29
- data/rbi/whop_sdk/models/payout_method_retrieve_response.rbi +40 -29
- data/rbi/whop_sdk/models/plan.rbi +131 -73
- data/rbi/whop_sdk/models/plan_create_params.rbi +53 -45
- data/rbi/whop_sdk/models/plan_list_params.rbi +14 -14
- data/rbi/whop_sdk/models/plan_list_response.rbi +117 -65
- data/rbi/whop_sdk/models/plan_update_params.rbi +53 -43
- data/rbi/whop_sdk/models/product.rbi +153 -75
- data/rbi/whop_sdk/models/product_create_params.rbi +55 -160
- data/rbi/whop_sdk/models/product_list_item.rbi +36 -27
- data/rbi/whop_sdk/models/product_list_params.rbi +10 -10
- data/rbi/whop_sdk/models/product_update_params.rbi +83 -29
- data/rbi/whop_sdk/models/promo_code.rbi +21 -13
- data/rbi/whop_sdk/models/promo_code_create_params.rbi +50 -36
- data/rbi/whop_sdk/models/promo_code_list_params.rbi +10 -10
- data/rbi/whop_sdk/models/promo_code_list_response.rbi +19 -11
- data/rbi/whop_sdk/models/reaction.rbi +16 -14
- data/rbi/whop_sdk/models/reaction_create_params.rbi +10 -10
- data/rbi/whop_sdk/models/reaction_delete_params.rbi +6 -2
- data/rbi/whop_sdk/models/reaction_list_params.rbi +2 -2
- data/rbi/whop_sdk/models/reaction_list_response.rbi +16 -14
- data/rbi/whop_sdk/models/refund_created_webhook_event.rbi +62 -42
- data/rbi/whop_sdk/models/refund_list_params.rbi +6 -6
- data/rbi/whop_sdk/models/refund_list_response.rbi +34 -22
- data/rbi/whop_sdk/models/refund_retrieve_response.rbi +58 -40
- data/rbi/whop_sdk/models/refund_updated_webhook_event.rbi +62 -42
- data/rbi/whop_sdk/models/review_list_params.rbi +10 -10
- data/rbi/whop_sdk/models/review_list_response.rbi +55 -42
- data/rbi/whop_sdk/models/review_retrieve_response.rbi +73 -58
- data/rbi/whop_sdk/models/setup_intent.rbi +60 -42
- data/rbi/whop_sdk/models/setup_intent_canceled_webhook_event.rbi +4 -4
- data/rbi/whop_sdk/models/setup_intent_list_params.rbi +6 -6
- data/rbi/whop_sdk/models/setup_intent_list_response.rbi +60 -42
- data/rbi/whop_sdk/models/setup_intent_requires_action_webhook_event.rbi +4 -4
- data/rbi/whop_sdk/models/setup_intent_succeeded_webhook_event.rbi +4 -4
- data/rbi/whop_sdk/models/shipment.rbi +30 -22
- data/rbi/whop_sdk/models/shipment_create_params.rbi +10 -6
- data/rbi/whop_sdk/models/shipment_list_params.rbi +6 -6
- data/rbi/whop_sdk/models/shipment_list_response.rbi +30 -22
- data/rbi/whop_sdk/models/support_channel.rbi +30 -18
- data/rbi/whop_sdk/models/support_channel_create_params.rbi +6 -4
- data/rbi/whop_sdk/models/support_channel_list_params.rbi +6 -8
- data/rbi/whop_sdk/models/support_channel_list_response.rbi +30 -18
- data/rbi/whop_sdk/models/topup_create_params.rbi +10 -8
- data/rbi/whop_sdk/models/topup_create_response.rbi +10 -7
- data/rbi/whop_sdk/models/transfer.rbi +65 -53
- data/rbi/whop_sdk/models/transfer_create_params.rbi +24 -18
- data/rbi/whop_sdk/models/transfer_list_params.rbi +12 -12
- data/rbi/whop_sdk/models/transfer_list_response.rbi +27 -19
- data/rbi/whop_sdk/models/user.rbi +111 -0
- data/rbi/whop_sdk/models/user_update_profile_params.rbi +107 -0
- data/rbi/whop_sdk/models/verification_retrieve_response.rbi +10 -7
- data/rbi/whop_sdk/models/verification_succeeded_webhook_event.rbi +14 -9
- data/rbi/whop_sdk/models/webhook.rbi +24 -23
- data/rbi/whop_sdk/models/webhook_create_response.rbi +28 -25
- data/rbi/whop_sdk/models/webhook_list_params.rbi +2 -2
- data/rbi/whop_sdk/models/webhook_list_response.rbi +20 -19
- data/rbi/whop_sdk/models/withdrawal.rbi +78 -55
- data/rbi/whop_sdk/models/withdrawal_created_webhook_event.rbi +4 -2
- data/rbi/whop_sdk/models/withdrawal_list_params.rbi +6 -6
- data/rbi/whop_sdk/models/withdrawal_list_response.rbi +26 -23
- data/rbi/whop_sdk/models/withdrawal_updated_webhook_event.rbi +4 -2
- data/rbi/whop_sdk/models.rbi +8 -2
- data/rbi/whop_sdk/resources/access_tokens.rbi +17 -20
- data/rbi/whop_sdk/resources/account_links.rbi +10 -9
- data/rbi/whop_sdk/resources/ai_chats.rbi +32 -10
- data/rbi/whop_sdk/resources/app_builds.rbi +24 -21
- data/rbi/whop_sdk/resources/apps.rbi +42 -23
- data/rbi/whop_sdk/resources/authorized_users.rbi +9 -7
- data/rbi/whop_sdk/resources/chat_channels.rbi +17 -13
- data/rbi/whop_sdk/resources/checkout_configurations.rbi +19 -17
- data/rbi/whop_sdk/resources/companies.rbi +53 -32
- data/rbi/whop_sdk/resources/company_token_transactions.rbi +20 -13
- data/rbi/whop_sdk/resources/course_chapters.rbi +13 -12
- data/rbi/whop_sdk/resources/course_lesson_interactions.rbi +8 -7
- data/rbi/whop_sdk/resources/course_lessons.rbi +48 -36
- data/rbi/whop_sdk/resources/course_students.rbi +6 -5
- data/rbi/whop_sdk/resources/courses.rbi +37 -31
- data/rbi/whop_sdk/resources/disputes.rbi +26 -23
- data/rbi/whop_sdk/resources/dm_channels.rbi +20 -13
- data/rbi/whop_sdk/resources/dm_members.rbi +16 -11
- data/rbi/whop_sdk/resources/entries.rbi +16 -13
- data/rbi/whop_sdk/resources/experiences.rbi +32 -30
- data/rbi/whop_sdk/resources/fee_markups.rbi +15 -12
- data/rbi/whop_sdk/resources/files.rbi +6 -4
- data/rbi/whop_sdk/resources/forum_posts.rbi +44 -28
- data/rbi/whop_sdk/resources/forums.rbi +11 -7
- data/rbi/whop_sdk/resources/invoices.rbi +39 -32
- data/rbi/whop_sdk/resources/leads.rbi +24 -18
- data/rbi/whop_sdk/resources/ledger_accounts.rbi +3 -3
- data/rbi/whop_sdk/resources/members.rbi +15 -14
- data/rbi/whop_sdk/resources/memberships.rbi +32 -26
- data/rbi/whop_sdk/resources/messages.rbi +26 -17
- data/rbi/whop_sdk/resources/notifications.rbi +20 -15
- data/rbi/whop_sdk/resources/payment_methods.rbi +15 -17
- data/rbi/whop_sdk/resources/payments.rbi +45 -24
- data/rbi/whop_sdk/resources/payout_methods.rbi +5 -4
- data/rbi/whop_sdk/resources/plans.rbi +69 -56
- data/rbi/whop_sdk/resources/products.rbi +63 -49
- data/rbi/whop_sdk/resources/promo_codes.rbi +39 -29
- data/rbi/whop_sdk/resources/reactions.rbi +20 -14
- data/rbi/whop_sdk/resources/refunds.rbi +7 -6
- data/rbi/whop_sdk/resources/reviews.rbi +9 -8
- data/rbi/whop_sdk/resources/setup_intents.rbi +8 -14
- data/rbi/whop_sdk/resources/shipments.rbi +14 -10
- data/rbi/whop_sdk/resources/support_channels.rbi +12 -11
- data/rbi/whop_sdk/resources/topups.rbi +7 -5
- data/rbi/whop_sdk/resources/transfers.rbi +24 -19
- data/rbi/whop_sdk/resources/users.rbi +37 -7
- data/rbi/whop_sdk/resources/verifications.rbi +2 -2
- data/rbi/whop_sdk/resources/webhooks.rbi +5 -4
- data/rbi/whop_sdk/resources/withdrawals.rbi +7 -6
- data/sig/whop_sdk/models/access_token_create_params.rbs +8 -8
- data/sig/whop_sdk/models/ai_chat_create_params.rbs +46 -1
- data/sig/whop_sdk/models/ai_chat_update_params.rbs +6 -1
- data/sig/whop_sdk/models/app.rbs +5 -0
- data/sig/whop_sdk/models/app_create_params.rbs +6 -1
- data/sig/whop_sdk/models/app_update_params.rbs +21 -0
- data/sig/whop_sdk/models/business_types.rbs +12 -0
- data/sig/whop_sdk/models/card_brands.rbs +8 -0
- data/sig/whop_sdk/models/checkout_configuration_create_params.rbs +5 -0
- data/sig/whop_sdk/models/company_create_params.rbs +20 -10
- data/sig/whop_sdk/models/company_list_params.rbs +6 -6
- data/sig/whop_sdk/models/company_token_transaction.rbs +4 -4
- data/sig/whop_sdk/models/company_token_transaction_list_params.rbs +4 -4
- data/sig/whop_sdk/models/company_token_transaction_list_response.rbs +4 -4
- data/sig/whop_sdk/models/company_token_transaction_type.rbs +15 -0
- data/sig/whop_sdk/models/company_update_params.rbs +15 -0
- data/sig/whop_sdk/models/forum_post_create_params.rbs +5 -0
- data/sig/whop_sdk/models/industry_groups.rbs +280 -0
- data/sig/whop_sdk/models/industry_types.rbs +3742 -0
- data/sig/whop_sdk/models/invoice_create_params.rbs +5 -0
- data/sig/whop_sdk/models/invoice_status.rbs +2 -1
- data/sig/whop_sdk/models/membership.rbs +5 -0
- data/sig/whop_sdk/models/membership_list_response.rbs +5 -0
- data/sig/whop_sdk/models/payment.rbs +316 -0
- data/sig/whop_sdk/models/payment_create_params.rbs +5 -0
- data/sig/whop_sdk/models/payment_list_params.rbs +10 -5
- data/sig/whop_sdk/models/payment_method_types.rbs +4 -0
- data/sig/whop_sdk/models/payment_provider.rbs +4 -0
- data/sig/whop_sdk/models/product.rbs +17 -0
- data/sig/whop_sdk/models/product_create_params.rbs +5 -46
- data/sig/whop_sdk/models/product_update_params.rbs +20 -0
- data/sig/whop_sdk/models/{user_retrieve_response.rbs → user.rbs} +6 -6
- data/sig/whop_sdk/models/user_update_profile_params.rbs +51 -0
- data/sig/whop_sdk/models/withdrawal.rbs +2 -0
- data/sig/whop_sdk/models.rbs +8 -2
- data/sig/whop_sdk/resources/access_tokens.rbs +2 -2
- data/sig/whop_sdk/resources/ai_chats.rbs +5 -0
- data/sig/whop_sdk/resources/apps.rbs +3 -0
- data/sig/whop_sdk/resources/companies.rbs +8 -3
- data/sig/whop_sdk/resources/company_token_transactions.rbs +1 -1
- data/sig/whop_sdk/resources/forum_posts.rbs +1 -0
- data/sig/whop_sdk/resources/invoices.rbs +1 -0
- data/sig/whop_sdk/resources/payments.rbs +2 -1
- data/sig/whop_sdk/resources/products.rbs +3 -1
- data/sig/whop_sdk/resources/users.rbs +9 -1
- metadata +14 -8
- data/lib/whop_sdk/models/user_retrieve_response.rb +0 -77
- data/rbi/whop_sdk/models/bot_token_transaction_types.rbi +0 -28
- data/rbi/whop_sdk/models/user_retrieve_response.rbi +0 -127
- data/sig/whop_sdk/models/bot_token_transaction_types.rbs +0 -15
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 65d1daae72b60c920b505a3d0d31fa263abea2a5c3d7d64f3f08a28dd1ca19b8
|
|
4
|
+
data.tar.gz: ff1e4ffb828933835fc5d71a89c7fd64cc5fbf06cc925d72f5cd666feb24f612
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ca8f9e650c7cf95c9c542f8a8f0d875c898edcbf3206ec04aa2b74073da7081bf4bbbbbcb0d4f2e856a693a277c8caf195efb3aa753a8ca82e36d405e034c3be
|
|
7
|
+
data.tar.gz: bb1912a81b99c2bf887636a855d30a82cebe518b3f6948523794279e2b513f037f8f8b1e597c44c72ed41c1549e6bddd0a8ed4b0265d47f16581f20675d2cabf
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,68 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.0.28 (2026-02-19)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.0.27...v0.0.28](https://github.com/whopio/whopsdk-ruby/compare/v0.0.27...v0.0.28)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([19a8f84](https://github.com/whopio/whopsdk-ruby/commit/19a8f842c19aec2b89cb06edb301d31144ff8f6f))
|
|
10
|
+
* **api:** api update ([9a84f83](https://github.com/whopio/whopsdk-ruby/commit/9a84f83c5637fcf915631af3ce01216c9ab96617))
|
|
11
|
+
* **api:** api update ([a87dffa](https://github.com/whopio/whopsdk-ruby/commit/a87dffa1f3f8c8e88605bf443c565d55f92b8207))
|
|
12
|
+
* **api:** api update ([193161d](https://github.com/whopio/whopsdk-ruby/commit/193161dc23d8868a252b4f98ad550d22b3dabac7))
|
|
13
|
+
* **api:** api update ([5ce4893](https://github.com/whopio/whopsdk-ruby/commit/5ce4893f759e45aadf3703b5d8074b61d333e903))
|
|
14
|
+
* **api:** api update ([3d480a8](https://github.com/whopio/whopsdk-ruby/commit/3d480a8c7b7d440c4edfa1067b156c88a7c07efd))
|
|
15
|
+
* **api:** api update ([1721944](https://github.com/whopio/whopsdk-ruby/commit/1721944bb515a5ee1eecb3f7ba43eea96763b00b))
|
|
16
|
+
* **api:** api update ([3b32134](https://github.com/whopio/whopsdk-ruby/commit/3b321344577fa04c3cb70743bd381108fafdc7c2))
|
|
17
|
+
* **api:** api update ([c4dbb11](https://github.com/whopio/whopsdk-ruby/commit/c4dbb11f8dd3862aa616d63387f96a5ae62392c0))
|
|
18
|
+
* **api:** api update ([a6cec2c](https://github.com/whopio/whopsdk-ruby/commit/a6cec2c09ed799f3d6607d884f543653fb490b57))
|
|
19
|
+
* **api:** api update ([f173bf9](https://github.com/whopio/whopsdk-ruby/commit/f173bf9fa8441ed9cd7fcd92f241dd2d1972e057))
|
|
20
|
+
* **api:** api update ([3fa5697](https://github.com/whopio/whopsdk-ruby/commit/3fa56971b88284df0612640c581e446205d9b5b6))
|
|
21
|
+
* **api:** api update ([63accfc](https://github.com/whopio/whopsdk-ruby/commit/63accfc1df49a36eead79abc81d75f3d4ebf7ce9))
|
|
22
|
+
* **api:** api update ([7eada7c](https://github.com/whopio/whopsdk-ruby/commit/7eada7c05cb4f18d8d84dba1a0c22ca4a61cf460))
|
|
23
|
+
* **api:** api update ([b3c3d77](https://github.com/whopio/whopsdk-ruby/commit/b3c3d77fe6c08d878e4983beacf9fb6b4a84b238))
|
|
24
|
+
* **api:** api update ([6d1c4e9](https://github.com/whopio/whopsdk-ruby/commit/6d1c4e99fe46d43a67aba8bac62ad6347cf22d1c))
|
|
25
|
+
* **api:** api update ([bb02a5e](https://github.com/whopio/whopsdk-ruby/commit/bb02a5ebaa149af41f46d860e0f6da07dec20c0f))
|
|
26
|
+
* **api:** api update ([1957770](https://github.com/whopio/whopsdk-ruby/commit/1957770a92a4fba413f9277312aabeac1ba51dad))
|
|
27
|
+
* **api:** api update ([929026d](https://github.com/whopio/whopsdk-ruby/commit/929026d0eee42ab7f930f81bbeb582348d8b5b8b))
|
|
28
|
+
* **api:** manual updates ([1bd14df](https://github.com/whopio/whopsdk-ruby/commit/1bd14df4007aedf72be1206f27fce029609660b1))
|
|
29
|
+
* **api:** manual updates ([7c05fd4](https://github.com/whopio/whopsdk-ruby/commit/7c05fd452333841f7ca142cd235d922bb281b94a))
|
|
30
|
+
* **api:** manual updates ([023f1ca](https://github.com/whopio/whopsdk-ruby/commit/023f1ca270e0caf1c53fdcd2897a66ac3aa2d863))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Chores
|
|
34
|
+
|
|
35
|
+
* configure new SDK language ([8483357](https://github.com/whopio/whopsdk-ruby/commit/8483357ba5ca5b76ebb4ec832b40861982adf85f))
|
|
36
|
+
|
|
37
|
+
## 0.0.27 (2026-02-09)
|
|
38
|
+
|
|
39
|
+
Full Changelog: [v0.0.26...v0.0.27](https://github.com/whopio/whopsdk-ruby/compare/v0.0.26...v0.0.27)
|
|
40
|
+
|
|
41
|
+
### Features
|
|
42
|
+
|
|
43
|
+
* **api:** api update ([65ed264](https://github.com/whopio/whopsdk-ruby/commit/65ed2647981ae0aba98d848dcf31d40303785c35))
|
|
44
|
+
* **api:** api update ([5337616](https://github.com/whopio/whopsdk-ruby/commit/5337616fe580b2afa16b2210eb2113a2755c8529))
|
|
45
|
+
* **api:** api update ([2bec9bc](https://github.com/whopio/whopsdk-ruby/commit/2bec9bc09fbd1a3b41ef8c1ef4bc57a339db43ea))
|
|
46
|
+
* **api:** api update ([0900d40](https://github.com/whopio/whopsdk-ruby/commit/0900d40866a9819b082ccfbe51a531439c5619d8))
|
|
47
|
+
* **api:** api update ([adcace1](https://github.com/whopio/whopsdk-ruby/commit/adcace101df013b38450625f5eacf7573938d902))
|
|
48
|
+
* **api:** api update ([32441bf](https://github.com/whopio/whopsdk-ruby/commit/32441bff9dd037424c7e93be807c3e73250f5b78))
|
|
49
|
+
* **api:** api update ([be694cf](https://github.com/whopio/whopsdk-ruby/commit/be694cff7f498f177f025c75292ce29c800c1658))
|
|
50
|
+
* **api:** api update ([3bdf111](https://github.com/whopio/whopsdk-ruby/commit/3bdf1117e8b6b434b77713fcf534dd112c743ff1))
|
|
51
|
+
* **api:** api update ([71cfae3](https://github.com/whopio/whopsdk-ruby/commit/71cfae32a386c17a95fd5d82a24ae70ec7f5417d))
|
|
52
|
+
* **api:** manual updates ([1cf2d62](https://github.com/whopio/whopsdk-ruby/commit/1cf2d62a8da26bd66c578465980e3600d14e2a94))
|
|
53
|
+
* **api:** manual updates ([60c21fa](https://github.com/whopio/whopsdk-ruby/commit/60c21fa901ca211970592fa6b0ae6650c11a7fc8))
|
|
54
|
+
* **api:** manual updates ([6ea51d3](https://github.com/whopio/whopsdk-ruby/commit/6ea51d3e2a8809d552d1905e6dff99c19e5b1403))
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
### Bug Fixes
|
|
58
|
+
|
|
59
|
+
* **client:** loosen json header parsing ([1020366](https://github.com/whopio/whopsdk-ruby/commit/1020366437c0cdbba833f84deab255a8902cf610))
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
### Chores
|
|
63
|
+
|
|
64
|
+
* **docs:** remove www prefix ([d581cb1](https://github.com/whopio/whopsdk-ruby/commit/d581cb174e297c951ac30d0790d48d6a53c046e4))
|
|
65
|
+
|
|
3
66
|
## 0.0.26 (2026-02-03)
|
|
4
67
|
|
|
5
68
|
Full Changelog: [v0.0.25...v0.0.26](https://github.com/whopio/whopsdk-ruby/compare/v0.0.25...v0.0.26)
|
data/README.md
CHANGED
data/lib/whop_sdk/client.rb
CHANGED
|
@@ -15,7 +15,9 @@ module WhopSDK
|
|
|
15
15
|
# Default max retry delay in seconds.
|
|
16
16
|
DEFAULT_MAX_RETRY_DELAY = 8.0
|
|
17
17
|
|
|
18
|
-
#
|
|
18
|
+
# A company API key, company scoped JWT, app API key, or user OAuth token. You
|
|
19
|
+
# must prepend your key/token with the word 'Bearer', which will look like
|
|
20
|
+
# `Bearer ***************************`
|
|
19
21
|
# @return [String]
|
|
20
22
|
attr_reader :api_key
|
|
21
23
|
|
|
@@ -182,8 +184,9 @@ module WhopSDK
|
|
|
182
184
|
|
|
183
185
|
# Creates and returns a new client for interacting with the API.
|
|
184
186
|
#
|
|
185
|
-
# @param api_key [String, nil]
|
|
186
|
-
#
|
|
187
|
+
# @param api_key [String, nil] A company API key, company scoped JWT, app API key, or user OAuth token. You
|
|
188
|
+
# must prepend your key/token with the word 'Bearer', which will look like
|
|
189
|
+
# `Bearer ***************************` Defaults to `ENV["WHOP_API_KEY"]`
|
|
187
190
|
#
|
|
188
191
|
# @param app_id [String, nil] When using the SDK in app mode pass this parameter to allow verifying user
|
|
189
192
|
# tokens Defaults to `ENV["WHOP_APP_ID"]`
|
|
@@ -485,7 +485,7 @@ module WhopSDK
|
|
|
485
485
|
end
|
|
486
486
|
|
|
487
487
|
# @type [Regexp]
|
|
488
|
-
JSON_CONTENT = %r{^application/(?:
|
|
488
|
+
JSON_CONTENT = %r{^application/(?:[a-zA-Z0-9.-]+\+)?json(?!l)}
|
|
489
489
|
# @type [Regexp]
|
|
490
490
|
JSONL_CONTENT = %r{^application/(:?x-(?:n|l)djson)|(:?(?:x-)?jsonl)}
|
|
491
491
|
|
|
@@ -8,48 +8,45 @@ module WhopSDK
|
|
|
8
8
|
include WhopSDK::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
10
|
# @!attribute company_id
|
|
11
|
-
# The
|
|
12
|
-
#
|
|
13
|
-
# belongs to or a sub-merchant of it
|
|
11
|
+
# The unique identifier of the company to generate the token for, starting with
|
|
12
|
+
# 'biz\_'. The API key must have permission to access this company.
|
|
14
13
|
#
|
|
15
|
-
# @return [String]
|
|
16
|
-
|
|
14
|
+
# @return [String, nil]
|
|
15
|
+
optional :company_id, String, nil?: true
|
|
17
16
|
|
|
18
17
|
# @!attribute expires_at
|
|
19
|
-
# The expiration timestamp for the access token.
|
|
20
|
-
#
|
|
21
|
-
# of 3 hours from the current time.
|
|
18
|
+
# The expiration timestamp for the access token. Defaults to 1 hour from now, with
|
|
19
|
+
# a maximum of 3 hours.
|
|
22
20
|
#
|
|
23
21
|
# @return [Time, nil]
|
|
24
22
|
optional :expires_at, Time, nil?: true
|
|
25
23
|
|
|
26
24
|
# @!attribute scoped_actions
|
|
27
|
-
#
|
|
28
|
-
#
|
|
29
|
-
#
|
|
30
|
-
# the API keys's existing permissions. Otherwise, an error will be raised.
|
|
25
|
+
# An array of permission scopes to grant to the access token. If empty or omitted,
|
|
26
|
+
# all permissions from the authenticating credential are inherited. Must be a
|
|
27
|
+
# subset of the credential's permissions.
|
|
31
28
|
#
|
|
32
29
|
# @return [Array<String>, nil]
|
|
33
30
|
optional :scoped_actions, WhopSDK::Internal::Type::ArrayOf[String], nil?: true
|
|
34
31
|
|
|
35
32
|
# @!attribute user_id
|
|
36
|
-
# The
|
|
37
|
-
# to access this
|
|
33
|
+
# The unique identifier of the user to generate the token for, starting with
|
|
34
|
+
# 'user\_'. The API key must have permission to access this user.
|
|
38
35
|
#
|
|
39
|
-
# @return [String]
|
|
40
|
-
|
|
36
|
+
# @return [String, nil]
|
|
37
|
+
optional :user_id, String, nil?: true
|
|
41
38
|
|
|
42
|
-
# @!method initialize(company_id
|
|
39
|
+
# @!method initialize(company_id: nil, expires_at: nil, scoped_actions: nil, user_id: nil, request_options: {})
|
|
43
40
|
# Some parameter documentations has been truncated, see
|
|
44
41
|
# {WhopSDK::Models::AccessTokenCreateParams} for more details.
|
|
45
42
|
#
|
|
46
|
-
# @param company_id [String] The
|
|
43
|
+
# @param company_id [String, nil] The unique identifier of the company to generate the token for, starting with 'b
|
|
47
44
|
#
|
|
48
|
-
# @param
|
|
45
|
+
# @param expires_at [Time, nil] The expiration timestamp for the access token. Defaults to 1 hour from now, with
|
|
49
46
|
#
|
|
50
|
-
# @param
|
|
47
|
+
# @param scoped_actions [Array<String>, nil] An array of permission scopes to grant to the access token. If empty or omitted,
|
|
51
48
|
#
|
|
52
|
-
# @param
|
|
49
|
+
# @param user_id [String, nil] The unique identifier of the user to generate the token for, starting with 'user
|
|
53
50
|
#
|
|
54
51
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
55
52
|
end
|
|
@@ -5,23 +5,29 @@ module WhopSDK
|
|
|
5
5
|
# @see WhopSDK::Resources::AccessTokens#create
|
|
6
6
|
class AccessTokenCreateResponse < WhopSDK::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute token
|
|
8
|
-
# The JWT access token string
|
|
8
|
+
# The signed JWT access token string to include in API request Authorization
|
|
9
|
+
# headers.
|
|
9
10
|
#
|
|
10
11
|
# @return [String]
|
|
11
12
|
required :token, String
|
|
12
13
|
|
|
13
14
|
# @!attribute expires_at
|
|
14
|
-
# The
|
|
15
|
+
# The timestamp after which this access token is no longer valid and must be
|
|
16
|
+
# refreshed.
|
|
15
17
|
#
|
|
16
18
|
# @return [Time]
|
|
17
19
|
required :expires_at, Time
|
|
18
20
|
|
|
19
21
|
# @!method initialize(token:, expires_at:)
|
|
20
|
-
#
|
|
22
|
+
# Some parameter documentations has been truncated, see
|
|
23
|
+
# {WhopSDK::Models::AccessTokenCreateResponse} for more details.
|
|
21
24
|
#
|
|
22
|
-
#
|
|
25
|
+
# A short-lived access token used to authenticate API requests on behalf of a
|
|
26
|
+
# user.
|
|
23
27
|
#
|
|
24
|
-
# @param
|
|
28
|
+
# @param token [String] The signed JWT access token string to include in API request Authorization heade
|
|
29
|
+
#
|
|
30
|
+
# @param expires_at [Time] The timestamp after which this access token is no longer valid and must be refre
|
|
25
31
|
end
|
|
26
32
|
end
|
|
27
33
|
end
|
|
@@ -8,27 +8,29 @@ module WhopSDK
|
|
|
8
8
|
include WhopSDK::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
10
|
# @!attribute company_id
|
|
11
|
-
# The
|
|
12
|
-
# sub-merchant of the API key's company.
|
|
11
|
+
# The unique identifier of the company to generate the link for, starting with
|
|
12
|
+
# 'biz\_'. Must be a sub-merchant of the API key's company.
|
|
13
13
|
#
|
|
14
14
|
# @return [String]
|
|
15
15
|
required :company_id, String
|
|
16
16
|
|
|
17
17
|
# @!attribute refresh_url
|
|
18
|
-
# The URL to redirect to if the session expires and needs to be
|
|
19
|
-
#
|
|
18
|
+
# The URL to redirect the user to if the session expires and needs to be
|
|
19
|
+
# re-authenticated, such as 'https://example.com/refresh'.
|
|
20
20
|
#
|
|
21
21
|
# @return [String]
|
|
22
22
|
required :refresh_url, String
|
|
23
23
|
|
|
24
24
|
# @!attribute return_url
|
|
25
|
-
# The URL to redirect to when
|
|
25
|
+
# The URL to redirect the user to when they want to return to your site, such as
|
|
26
|
+
# 'https://example.com/return'.
|
|
26
27
|
#
|
|
27
28
|
# @return [String]
|
|
28
29
|
required :return_url, String
|
|
29
30
|
|
|
30
31
|
# @!attribute use_case
|
|
31
|
-
# The
|
|
32
|
+
# The purpose of the account link, such as hosted payouts portal or hosted KYC
|
|
33
|
+
# onboarding.
|
|
32
34
|
#
|
|
33
35
|
# @return [Symbol, WhopSDK::Models::AccountLinkCreateParams::UseCase]
|
|
34
36
|
required :use_case, enum: -> { WhopSDK::AccountLinkCreateParams::UseCase }
|
|
@@ -37,17 +39,18 @@ module WhopSDK
|
|
|
37
39
|
# Some parameter documentations has been truncated, see
|
|
38
40
|
# {WhopSDK::Models::AccountLinkCreateParams} for more details.
|
|
39
41
|
#
|
|
40
|
-
# @param company_id [String] The
|
|
42
|
+
# @param company_id [String] The unique identifier of the company to generate the link for, starting with 'bi
|
|
41
43
|
#
|
|
42
|
-
# @param refresh_url [String] The URL to redirect to if the session expires and needs to be re-
|
|
44
|
+
# @param refresh_url [String] The URL to redirect the user to if the session expires and needs to be re-authen
|
|
43
45
|
#
|
|
44
|
-
# @param return_url [String] The URL to redirect to when
|
|
46
|
+
# @param return_url [String] The URL to redirect the user to when they want to return to your site, such as '
|
|
45
47
|
#
|
|
46
|
-
# @param use_case [Symbol, WhopSDK::Models::AccountLinkCreateParams::UseCase] The
|
|
48
|
+
# @param use_case [Symbol, WhopSDK::Models::AccountLinkCreateParams::UseCase] The purpose of the account link, such as hosted payouts portal or hosted KYC onb
|
|
47
49
|
#
|
|
48
50
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
49
51
|
|
|
50
|
-
# The
|
|
52
|
+
# The purpose of the account link, such as hosted payouts portal or hosted KYC
|
|
53
|
+
# onboarding.
|
|
51
54
|
module UseCase
|
|
52
55
|
extend WhopSDK::Internal::Type::Enum
|
|
53
56
|
|
|
@@ -5,24 +5,28 @@ module WhopSDK
|
|
|
5
5
|
# @see WhopSDK::Resources::AccountLinks#create
|
|
6
6
|
class AccountLinkCreateResponse < WhopSDK::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute expires_at
|
|
8
|
-
# The
|
|
8
|
+
# The timestamp after which this account link URL is no longer valid.
|
|
9
9
|
#
|
|
10
10
|
# @return [Time]
|
|
11
11
|
required :expires_at, Time
|
|
12
12
|
|
|
13
13
|
# @!attribute url
|
|
14
|
-
# The URL to
|
|
14
|
+
# The temporary URL to redirect the user to for account access. Expires at the
|
|
15
|
+
# time specified by expires_at.
|
|
15
16
|
#
|
|
16
17
|
# @return [String]
|
|
17
18
|
required :url, String
|
|
18
19
|
|
|
19
20
|
# @!method initialize(expires_at:, url:)
|
|
20
|
-
#
|
|
21
|
-
#
|
|
21
|
+
# Some parameter documentations has been truncated, see
|
|
22
|
+
# {WhopSDK::Models::AccountLinkCreateResponse} for more details.
|
|
22
23
|
#
|
|
23
|
-
#
|
|
24
|
+
# A temporary, time-limited URL that grants a user access to an external account
|
|
25
|
+
# management page.
|
|
24
26
|
#
|
|
25
|
-
# @param
|
|
27
|
+
# @param expires_at [Time] The timestamp after which this account link URL is no longer valid.
|
|
28
|
+
#
|
|
29
|
+
# @param url [String] The temporary URL to redirect the user to for account access. Expires at the tim
|
|
26
30
|
end
|
|
27
31
|
end
|
|
28
32
|
end
|
|
@@ -5,84 +5,90 @@ module WhopSDK
|
|
|
5
5
|
# @see WhopSDK::Resources::AIChats#create
|
|
6
6
|
class AIChat < WhopSDK::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute id
|
|
8
|
-
# The unique identifier for the
|
|
8
|
+
# The unique identifier for the ai chat.
|
|
9
9
|
#
|
|
10
10
|
# @return [String]
|
|
11
11
|
required :id, String
|
|
12
12
|
|
|
13
13
|
# @!attribute blended_token_usage
|
|
14
|
-
# The total number of tokens
|
|
14
|
+
# The total number of tokens consumed across all messages in this conversation.
|
|
15
15
|
#
|
|
16
16
|
# @return [String]
|
|
17
17
|
required :blended_token_usage, String
|
|
18
18
|
|
|
19
19
|
# @!attribute created_at
|
|
20
|
-
#
|
|
20
|
+
# The datetime the ai chat was created.
|
|
21
21
|
#
|
|
22
22
|
# @return [Time]
|
|
23
23
|
required :created_at, Time
|
|
24
24
|
|
|
25
25
|
# @!attribute last_message_at
|
|
26
|
-
#
|
|
26
|
+
# The timestamp of the most recent message in this conversation. Null if no
|
|
27
|
+
# messages have been sent yet.
|
|
27
28
|
#
|
|
28
29
|
# @return [Time, nil]
|
|
29
30
|
required :last_message_at, Time, nil?: true
|
|
30
31
|
|
|
31
32
|
# @!attribute message_count
|
|
32
|
-
# The number of messages in
|
|
33
|
+
# The total number of messages exchanged in this conversation.
|
|
33
34
|
#
|
|
34
35
|
# @return [Integer]
|
|
35
36
|
required :message_count, Integer
|
|
36
37
|
|
|
37
38
|
# @!attribute title
|
|
38
|
-
#
|
|
39
|
+
# A short descriptive title for this AI chat conversation. Null if no title has
|
|
40
|
+
# been set.
|
|
39
41
|
#
|
|
40
42
|
# @return [String, nil]
|
|
41
43
|
required :title, String, nil?: true
|
|
42
44
|
|
|
43
45
|
# @!attribute updated_at
|
|
44
|
-
#
|
|
46
|
+
# The datetime the ai chat was last updated.
|
|
45
47
|
#
|
|
46
48
|
# @return [Time]
|
|
47
49
|
required :updated_at, Time
|
|
48
50
|
|
|
49
51
|
# @!attribute user
|
|
50
|
-
# The user who owns
|
|
52
|
+
# The user who owns this AI chat conversation.
|
|
51
53
|
#
|
|
52
54
|
# @return [WhopSDK::Models::AIChat::User]
|
|
53
55
|
required :user, -> { WhopSDK::AIChat::User }
|
|
54
56
|
|
|
55
57
|
# @!method initialize(id:, blended_token_usage:, created_at:, last_message_at:, message_count:, title:, updated_at:, user:)
|
|
56
|
-
#
|
|
58
|
+
# Some parameter documentations has been truncated, see {WhopSDK::Models::AIChat}
|
|
59
|
+
# for more details.
|
|
57
60
|
#
|
|
58
|
-
#
|
|
61
|
+
# An AI-powered chat conversation belonging to a user, with optional scheduled
|
|
62
|
+
# automation.
|
|
59
63
|
#
|
|
60
|
-
# @param
|
|
64
|
+
# @param id [String] The unique identifier for the ai chat.
|
|
61
65
|
#
|
|
62
|
-
# @param
|
|
66
|
+
# @param blended_token_usage [String] The total number of tokens consumed across all messages in this conversation.
|
|
63
67
|
#
|
|
64
|
-
# @param
|
|
68
|
+
# @param created_at [Time] The datetime the ai chat was created.
|
|
65
69
|
#
|
|
66
|
-
# @param
|
|
70
|
+
# @param last_message_at [Time, nil] The timestamp of the most recent message in this conversation. Null if no messag
|
|
67
71
|
#
|
|
68
|
-
# @param
|
|
72
|
+
# @param message_count [Integer] The total number of messages exchanged in this conversation.
|
|
69
73
|
#
|
|
70
|
-
# @param
|
|
74
|
+
# @param title [String, nil] A short descriptive title for this AI chat conversation. Null if no title has be
|
|
71
75
|
#
|
|
72
|
-
# @param
|
|
76
|
+
# @param updated_at [Time] The datetime the ai chat was last updated.
|
|
77
|
+
#
|
|
78
|
+
# @param user [WhopSDK::Models::AIChat::User] The user who owns this AI chat conversation.
|
|
73
79
|
|
|
74
80
|
# @see WhopSDK::Models::AIChat#user
|
|
75
81
|
class User < WhopSDK::Internal::Type::BaseModel
|
|
76
82
|
# @!attribute id
|
|
77
|
-
# The
|
|
83
|
+
# The unique identifier for the user.
|
|
78
84
|
#
|
|
79
85
|
# @return [String]
|
|
80
86
|
required :id, String
|
|
81
87
|
|
|
82
88
|
# @!method initialize(id:)
|
|
83
|
-
# The user who owns
|
|
89
|
+
# The user who owns this AI chat conversation.
|
|
84
90
|
#
|
|
85
|
-
# @param id [String] The
|
|
91
|
+
# @param id [String] The unique identifier for the user.
|
|
86
92
|
end
|
|
87
93
|
end
|
|
88
94
|
end
|
|
@@ -7,16 +7,80 @@ module WhopSDK
|
|
|
7
7
|
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include WhopSDK::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
+
# @!attribute message_text
|
|
11
|
+
# The text content of the first message to send to the AI agent.
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :message_text, String
|
|
15
|
+
|
|
16
|
+
# @!attribute current_company_id
|
|
17
|
+
# The unique identifier of the company to set as context for the AI chat (e.g.,
|
|
18
|
+
# "biz_XXXXX").
|
|
19
|
+
#
|
|
20
|
+
# @return [String, nil]
|
|
21
|
+
optional :current_company_id, String, nil?: true
|
|
22
|
+
|
|
23
|
+
# @!attribute message_attachments
|
|
24
|
+
# A list of previously uploaded file attachments to include with the first
|
|
25
|
+
# message.
|
|
26
|
+
#
|
|
27
|
+
# @return [Array<WhopSDK::Models::AIChatCreateParams::MessageAttachment>, nil]
|
|
28
|
+
optional :message_attachments,
|
|
29
|
+
-> { WhopSDK::Internal::Type::ArrayOf[WhopSDK::AIChatCreateParams::MessageAttachment] },
|
|
30
|
+
nil?: true
|
|
31
|
+
|
|
32
|
+
# @!attribute message_source
|
|
33
|
+
# The source of an AI chat message
|
|
34
|
+
#
|
|
35
|
+
# @return [Symbol, WhopSDK::Models::AIChatCreateParams::MessageSource, nil]
|
|
36
|
+
optional :message_source, enum: -> { WhopSDK::AIChatCreateParams::MessageSource }, nil?: true
|
|
37
|
+
|
|
10
38
|
# @!attribute title
|
|
11
|
-
#
|
|
39
|
+
# An optional display title for the AI chat thread (e.g., "Help with billing").
|
|
12
40
|
#
|
|
13
41
|
# @return [String, nil]
|
|
14
42
|
optional :title, String, nil?: true
|
|
15
43
|
|
|
16
|
-
# @!method initialize(title: nil, request_options: {})
|
|
17
|
-
#
|
|
44
|
+
# @!method initialize(message_text:, current_company_id: nil, message_attachments: nil, message_source: nil, title: nil, request_options: {})
|
|
45
|
+
# Some parameter documentations has been truncated, see
|
|
46
|
+
# {WhopSDK::Models::AIChatCreateParams} for more details.
|
|
47
|
+
#
|
|
48
|
+
# @param message_text [String] The text content of the first message to send to the AI agent.
|
|
49
|
+
#
|
|
50
|
+
# @param current_company_id [String, nil] The unique identifier of the company to set as context for the AI chat (e.g., "b
|
|
51
|
+
#
|
|
52
|
+
# @param message_attachments [Array<WhopSDK::Models::AIChatCreateParams::MessageAttachment>, nil] A list of previously uploaded file attachments to include with the first message
|
|
53
|
+
#
|
|
54
|
+
# @param message_source [Symbol, WhopSDK::Models::AIChatCreateParams::MessageSource, nil] The source of an AI chat message
|
|
55
|
+
#
|
|
56
|
+
# @param title [String, nil] An optional display title for the AI chat thread (e.g., "Help with billing").
|
|
18
57
|
#
|
|
19
58
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
59
|
+
|
|
60
|
+
class MessageAttachment < WhopSDK::Internal::Type::BaseModel
|
|
61
|
+
# @!attribute id
|
|
62
|
+
# The ID of an existing file object.
|
|
63
|
+
#
|
|
64
|
+
# @return [String]
|
|
65
|
+
required :id, String
|
|
66
|
+
|
|
67
|
+
# @!method initialize(id:)
|
|
68
|
+
# Input for an attachment
|
|
69
|
+
#
|
|
70
|
+
# @param id [String] The ID of an existing file object.
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# The source of an AI chat message
|
|
74
|
+
module MessageSource
|
|
75
|
+
extend WhopSDK::Internal::Type::Enum
|
|
76
|
+
|
|
77
|
+
MANUAL = :manual
|
|
78
|
+
SUGGESTION = :suggestion
|
|
79
|
+
LINK = :link
|
|
80
|
+
|
|
81
|
+
# @!method self.values
|
|
82
|
+
# @return [Array<Symbol>]
|
|
83
|
+
end
|
|
20
84
|
end
|
|
21
85
|
end
|
|
22
86
|
end
|
|
@@ -5,84 +5,90 @@ module WhopSDK
|
|
|
5
5
|
# @see WhopSDK::Resources::AIChats#list
|
|
6
6
|
class AIChatListResponse < WhopSDK::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute id
|
|
8
|
-
# The unique identifier for the
|
|
8
|
+
# The unique identifier for the ai chat.
|
|
9
9
|
#
|
|
10
10
|
# @return [String]
|
|
11
11
|
required :id, String
|
|
12
12
|
|
|
13
13
|
# @!attribute blended_token_usage
|
|
14
|
-
# The total number of tokens
|
|
14
|
+
# The total number of tokens consumed across all messages in this conversation.
|
|
15
15
|
#
|
|
16
16
|
# @return [String]
|
|
17
17
|
required :blended_token_usage, String
|
|
18
18
|
|
|
19
19
|
# @!attribute created_at
|
|
20
|
-
#
|
|
20
|
+
# The datetime the ai chat was created.
|
|
21
21
|
#
|
|
22
22
|
# @return [Time]
|
|
23
23
|
required :created_at, Time
|
|
24
24
|
|
|
25
25
|
# @!attribute last_message_at
|
|
26
|
-
#
|
|
26
|
+
# The timestamp of the most recent message in this conversation. Null if no
|
|
27
|
+
# messages have been sent yet.
|
|
27
28
|
#
|
|
28
29
|
# @return [Time, nil]
|
|
29
30
|
required :last_message_at, Time, nil?: true
|
|
30
31
|
|
|
31
32
|
# @!attribute message_count
|
|
32
|
-
# The number of messages in
|
|
33
|
+
# The total number of messages exchanged in this conversation.
|
|
33
34
|
#
|
|
34
35
|
# @return [Integer]
|
|
35
36
|
required :message_count, Integer
|
|
36
37
|
|
|
37
38
|
# @!attribute title
|
|
38
|
-
#
|
|
39
|
+
# A short descriptive title for this AI chat conversation. Null if no title has
|
|
40
|
+
# been set.
|
|
39
41
|
#
|
|
40
42
|
# @return [String, nil]
|
|
41
43
|
required :title, String, nil?: true
|
|
42
44
|
|
|
43
45
|
# @!attribute updated_at
|
|
44
|
-
#
|
|
46
|
+
# The datetime the ai chat was last updated.
|
|
45
47
|
#
|
|
46
48
|
# @return [Time]
|
|
47
49
|
required :updated_at, Time
|
|
48
50
|
|
|
49
51
|
# @!attribute user
|
|
50
|
-
# The user who owns
|
|
52
|
+
# The user who owns this AI chat conversation.
|
|
51
53
|
#
|
|
52
54
|
# @return [WhopSDK::Models::AIChatListResponse::User]
|
|
53
55
|
required :user, -> { WhopSDK::Models::AIChatListResponse::User }
|
|
54
56
|
|
|
55
57
|
# @!method initialize(id:, blended_token_usage:, created_at:, last_message_at:, message_count:, title:, updated_at:, user:)
|
|
56
|
-
#
|
|
58
|
+
# Some parameter documentations has been truncated, see
|
|
59
|
+
# {WhopSDK::Models::AIChatListResponse} for more details.
|
|
57
60
|
#
|
|
58
|
-
#
|
|
61
|
+
# An AI-powered chat conversation belonging to a user, with optional scheduled
|
|
62
|
+
# automation.
|
|
59
63
|
#
|
|
60
|
-
# @param
|
|
64
|
+
# @param id [String] The unique identifier for the ai chat.
|
|
61
65
|
#
|
|
62
|
-
# @param
|
|
66
|
+
# @param blended_token_usage [String] The total number of tokens consumed across all messages in this conversation.
|
|
63
67
|
#
|
|
64
|
-
# @param
|
|
68
|
+
# @param created_at [Time] The datetime the ai chat was created.
|
|
65
69
|
#
|
|
66
|
-
# @param
|
|
70
|
+
# @param last_message_at [Time, nil] The timestamp of the most recent message in this conversation. Null if no messag
|
|
67
71
|
#
|
|
68
|
-
# @param
|
|
72
|
+
# @param message_count [Integer] The total number of messages exchanged in this conversation.
|
|
69
73
|
#
|
|
70
|
-
# @param
|
|
74
|
+
# @param title [String, nil] A short descriptive title for this AI chat conversation. Null if no title has be
|
|
71
75
|
#
|
|
72
|
-
# @param
|
|
76
|
+
# @param updated_at [Time] The datetime the ai chat was last updated.
|
|
77
|
+
#
|
|
78
|
+
# @param user [WhopSDK::Models::AIChatListResponse::User] The user who owns this AI chat conversation.
|
|
73
79
|
|
|
74
80
|
# @see WhopSDK::Models::AIChatListResponse#user
|
|
75
81
|
class User < WhopSDK::Internal::Type::BaseModel
|
|
76
82
|
# @!attribute id
|
|
77
|
-
# The
|
|
83
|
+
# The unique identifier for the user.
|
|
78
84
|
#
|
|
79
85
|
# @return [String]
|
|
80
86
|
required :id, String
|
|
81
87
|
|
|
82
88
|
# @!method initialize(id:)
|
|
83
|
-
# The user who owns
|
|
89
|
+
# The user who owns this AI chat conversation.
|
|
84
90
|
#
|
|
85
|
-
# @param id [String] The
|
|
91
|
+
# @param id [String] The unique identifier for the user.
|
|
86
92
|
end
|
|
87
93
|
end
|
|
88
94
|
end
|