onlyfans 0.2.0 → 0.3.0
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 +315 -0
- data/README.md +9 -4
- data/lib/onlyfans/client.rb +11 -3
- data/lib/onlyfans/internal/transport/base_client.rb +4 -1
- data/lib/onlyfans/models/analytics/financial/profitability_get_history_response.rb +114 -36
- data/lib/onlyfans/models/analytics/financial/profitability_get_profitability_response.rb +112 -46
- data/lib/onlyfans/models/authenticate_start_params.rb +1 -0
- data/lib/onlyfans/models/chat_list_media_params.rb +6 -2
- data/lib/onlyfans/models/chat_list_params.rb +8 -3
- data/lib/onlyfans/models/chats/message_list_params.rb +6 -6
- data/lib/onlyfans/models/chats/message_send_params.rb +41 -6
- data/lib/onlyfans/models/client_session_create_params.rb +1 -0
- data/lib/onlyfans/models/data_export_create_params.rb +36 -21
- data/lib/onlyfans/models/data_export_list_params.rb +5 -0
- data/lib/onlyfans/models/data_export_list_response.rb +7 -1
- data/lib/onlyfans/models/data_export_retrieve_response.rb +7 -1
- data/lib/onlyfans/models/engagement/message_get_message_buyers_params.rb +2 -2
- data/lib/onlyfans/models/engagement/message_get_top_message_params.rb +3 -3
- data/lib/onlyfans/models/engagement/messages/direct_message_chart_params.rb +2 -2
- data/lib/onlyfans/models/engagement/messages/direct_message_list_params.rb +3 -3
- data/lib/onlyfans/models/engagement/messages/mass_message_chart_params.rb +2 -2
- data/lib/onlyfans/models/engagement/messages/mass_message_list_params.rb +3 -3
- data/lib/onlyfans/models/fan_list_active_params.rb +55 -13
- data/lib/onlyfans/models/fan_list_all_params.rb +55 -13
- data/lib/onlyfans/models/fan_list_expired_params.rb +55 -13
- data/lib/onlyfans/models/fan_list_latest_params.rb +8 -8
- data/lib/onlyfans/models/fan_list_top_params.rb +6 -6
- data/lib/onlyfans/models/fans/summary_get_summary_response.rb +49 -2
- data/lib/onlyfans/models/following_list_active_params.rb +79 -1
- data/lib/onlyfans/models/following_list_all_params.rb +79 -1
- data/lib/onlyfans/models/following_list_expired_params.rb +79 -1
- data/lib/onlyfans/models/link_tag_list_params.rb +4 -3
- data/lib/onlyfans/models/mass_messaging_retrieve_overview_params.rb +3 -3
- data/lib/onlyfans/models/mass_messaging_send_params.rb +44 -6
- data/lib/onlyfans/models/mass_messaging_update_params.rb +34 -6
- data/lib/onlyfans/models/media/upload_get_status_response.rb +54 -27
- data/lib/onlyfans/models/media/vault/list_list_params.rb +14 -1
- data/lib/onlyfans/models/media/vault/list_list_response.rb +420 -202
- data/lib/onlyfans/models/media/vault/list_update_params.rb +11 -1
- data/lib/onlyfans/models/media/vault_upload_params.rb +3 -1
- data/lib/onlyfans/models/media_upload_params.rb +3 -1
- data/lib/onlyfans/models/notification_list_params.rb +3 -3
- data/lib/onlyfans/models/post_create_params.rb +29 -1
- data/lib/onlyfans/models/post_update_params.rb +29 -1
- data/lib/onlyfans/models/queue_list_params.rb +36 -15
- data/lib/onlyfans/models/release_form_list_taggable_users_response.rb +8 -8
- data/lib/onlyfans/models/shared_tracking_link_list_params.rb +75 -10
- data/lib/onlyfans/models/shared_trial_link_list_params.rb +26 -10
- data/lib/onlyfans/models/smart_link_create_response.rb +2 -2
- data/lib/onlyfans/models/smart_link_list_clicks_response.rb +19 -1
- data/lib/onlyfans/models/smart_link_list_conversions_params.rb +1 -0
- data/lib/onlyfans/models/smart_link_list_conversions_response.rb +19 -1
- data/lib/onlyfans/models/smart_link_list_fans_params.rb +21 -1
- data/lib/onlyfans/models/smart_link_list_fans_response.rb +99 -3
- data/lib/onlyfans/models/smart_link_list_params.rb +27 -9
- data/lib/onlyfans/models/smart_link_postback_create_params.rb +66 -4
- data/lib/onlyfans/models/smart_link_postback_create_response.rb +48 -1
- data/lib/onlyfans/models/smart_link_postback_list_response.rb +48 -1
- data/lib/onlyfans/models/smart_link_postback_retrieve_response.rb +48 -1
- data/lib/onlyfans/models/smart_link_postback_update_params.rb +65 -1
- data/lib/onlyfans/models/smart_link_postback_update_response.rb +48 -1
- data/lib/onlyfans/models/statistic_calculate_total_transactions_params.rb +5 -5
- data/lib/onlyfans/models/statistic_get_subscriber_metrics_params.rb +25 -1
- data/lib/onlyfans/models/statistics/reach_get_profile_visitors_params.rb +2 -2
- data/lib/onlyfans/models/statistics/statement_get_earnings_params.rb +10 -10
- data/lib/onlyfans/models/stored_list_tracking_links_response.rb +7 -1
- data/lib/onlyfans/models/stored_list_trial_links_response.rb +7 -1
- data/lib/onlyfans/models/story_create_params.rb +293 -6
- data/lib/onlyfans/models/story_create_response.rb +330 -7
- data/lib/onlyfans/models/tracking_link_get_stats_response.rb +7 -1
- data/lib/onlyfans/models/tracking_link_list_params.rb +58 -30
- data/lib/onlyfans/models/tracking_link_list_response.rb +7 -1
- data/lib/onlyfans/models/tracking_link_list_spenders_response.rb +7 -1
- data/lib/onlyfans/models/tracking_link_retrieve_response.rb +7 -1
- data/lib/onlyfans/models/transaction_list_params.rb +2 -2
- data/lib/onlyfans/models/trial_link_list_params.rb +44 -27
- data/lib/onlyfans/models/trial_link_list_response.rb +7 -1
- data/lib/onlyfans/models/trial_link_list_spenders_response.rb +7 -1
- data/lib/onlyfans/models/trial_link_retrieve_response.rb +7 -1
- data/lib/onlyfans/models/trial_link_retrieve_stats_response.rb +7 -1
- data/lib/onlyfans/models/user_list_list_params.rb +21 -1
- data/lib/onlyfans/models/user_lists/user_add_params.rb +18 -1
- data/lib/onlyfans/models/user_lists/user_add_response.rb +246 -88
- data/lib/onlyfans/models/webhook_create_params.rb +11 -7
- data/lib/onlyfans/models/webhook_update_params.rb +11 -7
- data/lib/onlyfans/models.rb +0 -2
- data/lib/onlyfans/resources/analytics/financial/profitability.rb +4 -4
- data/lib/onlyfans/resources/chats/messages.rb +47 -8
- data/lib/onlyfans/resources/chats.rb +7 -4
- data/lib/onlyfans/resources/data_exports.rb +1 -1
- data/lib/onlyfans/resources/engagement/messages/direct_messages.rb +2 -2
- data/lib/onlyfans/resources/engagement/messages/mass_messages.rb +2 -2
- data/lib/onlyfans/resources/engagement/messages.rb +2 -2
- data/lib/onlyfans/resources/fans.rb +43 -10
- data/lib/onlyfans/resources/following.rb +58 -12
- data/lib/onlyfans/resources/link_tags.rb +4 -4
- data/lib/onlyfans/resources/mass_messaging.rb +18 -9
- data/lib/onlyfans/resources/media/uploads.rb +6 -1
- data/lib/onlyfans/resources/media/vault/lists.rb +30 -5
- data/lib/onlyfans/resources/media.rb +14 -8
- data/lib/onlyfans/resources/messages.rb +0 -39
- data/lib/onlyfans/resources/notifications.rb +1 -1
- data/lib/onlyfans/resources/posts.rb +6 -2
- data/lib/onlyfans/resources/queue.rb +9 -6
- data/lib/onlyfans/resources/release_forms.rb +2 -1
- data/lib/onlyfans/resources/shared_tracking_links.rb +12 -5
- data/lib/onlyfans/resources/shared_trial_links.rb +6 -5
- data/lib/onlyfans/resources/smart_link_postbacks.rb +18 -3
- data/lib/onlyfans/resources/smart_links.rb +13 -4
- data/lib/onlyfans/resources/statistics/reach.rb +1 -1
- data/lib/onlyfans/resources/statistics/statements.rb +3 -3
- data/lib/onlyfans/resources/statistics.rb +5 -3
- data/lib/onlyfans/resources/stories.rb +13 -6
- data/lib/onlyfans/resources/tracking_links/tags.rb +5 -1
- data/lib/onlyfans/resources/tracking_links.rb +21 -11
- data/lib/onlyfans/resources/transactions.rb +1 -1
- data/lib/onlyfans/resources/trial_links/tags.rb +5 -1
- data/lib/onlyfans/resources/trial_links.rb +22 -10
- data/lib/onlyfans/resources/user_lists/users.rb +7 -2
- data/lib/onlyfans/resources/user_lists.rb +5 -2
- data/lib/onlyfans/resources/users.rb +4 -1
- data/lib/onlyfans/resources/webhooks.rb +6 -4
- data/lib/onlyfans/version.rb +1 -1
- data/lib/onlyfans.rb +0 -3
- data/rbi/onlyfans/client.rbi +11 -3
- data/rbi/onlyfans/models/analytics/financial/profitability_get_history_response.rbi +203 -63
- data/rbi/onlyfans/models/analytics/financial/profitability_get_profitability_response.rbi +201 -79
- data/rbi/onlyfans/models/authenticate_start_params.rbi +5 -0
- data/rbi/onlyfans/models/chat_list_media_params.rbi +4 -2
- data/rbi/onlyfans/models/chat_list_params.rbi +6 -3
- data/rbi/onlyfans/models/chats/message_list_params.rbi +8 -8
- data/rbi/onlyfans/models/chats/message_send_params.rbi +88 -6
- data/rbi/onlyfans/models/client_session_create_params.rbi +5 -0
- data/rbi/onlyfans/models/data_export_create_params.rbi +69 -37
- data/rbi/onlyfans/models/data_export_list_params.rbi +18 -0
- data/rbi/onlyfans/models/data_export_list_response.rbi +9 -0
- data/rbi/onlyfans/models/data_export_retrieve_response.rbi +9 -0
- data/rbi/onlyfans/models/engagement/message_get_message_buyers_params.rbi +2 -2
- data/rbi/onlyfans/models/engagement/message_get_top_message_params.rbi +4 -4
- data/rbi/onlyfans/models/engagement/messages/direct_message_chart_params.rbi +2 -2
- data/rbi/onlyfans/models/engagement/messages/direct_message_list_params.rbi +4 -4
- data/rbi/onlyfans/models/engagement/messages/mass_message_chart_params.rbi +2 -2
- data/rbi/onlyfans/models/engagement/messages/mass_message_list_params.rbi +4 -4
- data/rbi/onlyfans/models/fan_list_active_params.rbi +84 -13
- data/rbi/onlyfans/models/fan_list_all_params.rbi +84 -13
- data/rbi/onlyfans/models/fan_list_expired_params.rbi +84 -13
- data/rbi/onlyfans/models/fan_list_latest_params.rbi +10 -10
- data/rbi/onlyfans/models/fan_list_top_params.rbi +8 -8
- data/rbi/onlyfans/models/fans/summary_get_summary_response.rbi +96 -0
- data/rbi/onlyfans/models/following_list_active_params.rbi +160 -0
- data/rbi/onlyfans/models/following_list_all_params.rbi +155 -0
- data/rbi/onlyfans/models/following_list_expired_params.rbi +160 -0
- data/rbi/onlyfans/models/link_tag_list_params.rbi +5 -3
- data/rbi/onlyfans/models/mass_messaging_retrieve_overview_params.rbi +4 -4
- data/rbi/onlyfans/models/mass_messaging_send_params.rbi +91 -6
- data/rbi/onlyfans/models/mass_messaging_update_params.rbi +76 -6
- data/rbi/onlyfans/models/media/upload_get_status_response.rbi +79 -33
- data/rbi/onlyfans/models/media/vault/list_list_params.rbi +15 -0
- data/rbi/onlyfans/models/media/vault/list_list_response.rbi +972 -428
- data/rbi/onlyfans/models/media/vault/list_update_params.rbi +13 -1
- data/rbi/onlyfans/models/media/vault_upload_params.rbi +6 -2
- data/rbi/onlyfans/models/media_upload_params.rbi +6 -2
- data/rbi/onlyfans/models/notification_list_params.rbi +3 -3
- data/rbi/onlyfans/models/post_create_params.rbi +66 -0
- data/rbi/onlyfans/models/post_update_params.rbi +66 -0
- data/rbi/onlyfans/models/queue_list_params.rbi +59 -16
- data/rbi/onlyfans/models/release_form_list_taggable_users_response.rbi +12 -12
- data/rbi/onlyfans/models/shared_tracking_link_list_params.rbi +198 -11
- data/rbi/onlyfans/models/shared_trial_link_list_params.rbi +64 -11
- data/rbi/onlyfans/models/smart_link_create_response.rbi +6 -3
- data/rbi/onlyfans/models/smart_link_list_clicks_response.rbi +21 -3
- data/rbi/onlyfans/models/smart_link_list_conversions_params.rbi +5 -0
- data/rbi/onlyfans/models/smart_link_list_conversions_response.rbi +21 -3
- data/rbi/onlyfans/models/smart_link_list_fans_params.rbi +24 -0
- data/rbi/onlyfans/models/smart_link_list_fans_response.rbi +205 -3
- data/rbi/onlyfans/models/smart_link_list_params.rbi +45 -8
- data/rbi/onlyfans/models/smart_link_postback_create_params.rbi +139 -4
- data/rbi/onlyfans/models/smart_link_postback_create_response.rbi +96 -0
- data/rbi/onlyfans/models/smart_link_postback_list_response.rbi +96 -0
- data/rbi/onlyfans/models/smart_link_postback_retrieve_response.rbi +96 -0
- data/rbi/onlyfans/models/smart_link_postback_update_params.rbi +133 -0
- data/rbi/onlyfans/models/smart_link_postback_update_response.rbi +96 -0
- data/rbi/onlyfans/models/statistic_calculate_total_transactions_params.rbi +12 -6
- data/rbi/onlyfans/models/statistic_get_subscriber_metrics_params.rbi +63 -0
- data/rbi/onlyfans/models/statistics/reach_get_profile_visitors_params.rbi +2 -2
- data/rbi/onlyfans/models/statistics/statement_get_earnings_params.rbi +10 -13
- data/rbi/onlyfans/models/stored_list_tracking_links_response.rbi +9 -0
- data/rbi/onlyfans/models/stored_list_trial_links_response.rbi +9 -0
- data/rbi/onlyfans/models/story_create_params.rbi +548 -4
- data/rbi/onlyfans/models/story_create_response.rbi +670 -8
- data/rbi/onlyfans/models/tracking_link_get_stats_response.rbi +9 -0
- data/rbi/onlyfans/models/tracking_link_list_params.rbi +144 -45
- data/rbi/onlyfans/models/tracking_link_list_response.rbi +9 -0
- data/rbi/onlyfans/models/tracking_link_list_spenders_response.rbi +17 -5
- data/rbi/onlyfans/models/tracking_link_retrieve_response.rbi +9 -0
- data/rbi/onlyfans/models/transaction_list_params.rbi +2 -2
- data/rbi/onlyfans/models/trial_link_list_params.rbi +66 -33
- data/rbi/onlyfans/models/trial_link_list_response.rbi +9 -0
- data/rbi/onlyfans/models/trial_link_list_spenders_response.rbi +17 -5
- data/rbi/onlyfans/models/trial_link_retrieve_response.rbi +9 -0
- data/rbi/onlyfans/models/trial_link_retrieve_stats_response.rbi +9 -0
- data/rbi/onlyfans/models/user_list_list_params.rbi +33 -0
- data/rbi/onlyfans/models/user_lists/user_add_params.rbi +23 -0
- data/rbi/onlyfans/models/user_lists/user_add_response.rbi +596 -181
- data/rbi/onlyfans/models/webhook_create_params.rbi +16 -10
- data/rbi/onlyfans/models/webhook_update_params.rbi +16 -10
- data/rbi/onlyfans/models.rbi +0 -2
- data/rbi/onlyfans/resources/analytics/financial/profitability.rbi +2 -6
- data/rbi/onlyfans/resources/chats/messages.rbi +53 -10
- data/rbi/onlyfans/resources/chats.rbi +6 -5
- data/rbi/onlyfans/resources/data_exports.rbi +26 -17
- data/rbi/onlyfans/resources/engagement/messages/direct_messages.rbi +3 -3
- data/rbi/onlyfans/resources/engagement/messages/mass_messages.rbi +3 -3
- data/rbi/onlyfans/resources/engagement/messages.rbi +3 -3
- data/rbi/onlyfans/resources/fans.rbi +50 -17
- data/rbi/onlyfans/resources/following.rbi +122 -4
- data/rbi/onlyfans/resources/link_tags.rbi +4 -4
- data/rbi/onlyfans/resources/mass_messaging.rbi +32 -10
- data/rbi/onlyfans/resources/media/uploads.rbi +5 -0
- data/rbi/onlyfans/resources/media/vault/lists.rbi +28 -3
- data/rbi/onlyfans/resources/media/vault.rbi +3 -1
- data/rbi/onlyfans/resources/media.rbi +16 -7
- data/rbi/onlyfans/resources/messages.rbi +0 -29
- data/rbi/onlyfans/resources/notifications.rbi +1 -1
- data/rbi/onlyfans/resources/posts.rbi +14 -0
- data/rbi/onlyfans/resources/queue.rbi +15 -8
- data/rbi/onlyfans/resources/release_forms.rbi +2 -1
- data/rbi/onlyfans/resources/shared_tracking_links.rbi +21 -5
- data/rbi/onlyfans/resources/shared_trial_links.rbi +8 -5
- data/rbi/onlyfans/resources/smart_link_postbacks.rbi +27 -2
- data/rbi/onlyfans/resources/smart_links.rbi +12 -3
- data/rbi/onlyfans/resources/statistics/reach.rbi +1 -1
- data/rbi/onlyfans/resources/statistics/statements.rbi +4 -4
- data/rbi/onlyfans/resources/statistics.rbi +9 -2
- data/rbi/onlyfans/resources/stories.rbi +16 -3
- data/rbi/onlyfans/resources/tracking_links/tags.rbi +5 -1
- data/rbi/onlyfans/resources/tracking_links.rbi +30 -19
- data/rbi/onlyfans/resources/transactions.rbi +1 -1
- data/rbi/onlyfans/resources/trial_links/tags.rbi +5 -1
- data/rbi/onlyfans/resources/trial_links.rbi +29 -14
- data/rbi/onlyfans/resources/user_lists/users.rbi +10 -1
- data/rbi/onlyfans/resources/user_lists.rbi +6 -1
- data/rbi/onlyfans/resources/users.rbi +2 -1
- data/rbi/onlyfans/resources/webhooks.rbi +16 -10
- data/sig/onlyfans/models/analytics/financial/profitability_get_history_response.rbs +129 -40
- data/sig/onlyfans/models/analytics/financial/profitability_get_profitability_response.rbs +125 -50
- data/sig/onlyfans/models/authenticate_start_params.rbs +2 -1
- data/sig/onlyfans/models/chats/message_send_params.rbs +34 -6
- data/sig/onlyfans/models/client_session_create_params.rbs +2 -1
- data/sig/onlyfans/models/data_export_create_params.rbs +4 -0
- data/sig/onlyfans/models/data_export_list_params.rbs +10 -0
- data/sig/onlyfans/models/data_export_list_response.rbs +7 -0
- data/sig/onlyfans/models/data_export_retrieve_response.rbs +7 -0
- data/sig/onlyfans/models/fan_list_active_params.rbs +7 -0
- data/sig/onlyfans/models/fan_list_all_params.rbs +7 -0
- data/sig/onlyfans/models/fan_list_expired_params.rbs +7 -0
- data/sig/onlyfans/models/fans/summary_get_summary_response.rbs +53 -0
- data/sig/onlyfans/models/following_list_active_params.rbs +35 -1
- data/sig/onlyfans/models/following_list_all_params.rbs +35 -1
- data/sig/onlyfans/models/following_list_expired_params.rbs +35 -1
- data/sig/onlyfans/models/link_tag_list_params.rbs +2 -1
- data/sig/onlyfans/models/mass_messaging_send_params.rbs +33 -5
- data/sig/onlyfans/models/mass_messaging_update_params.rbs +26 -5
- data/sig/onlyfans/models/media/upload_get_status_response.rbs +65 -39
- data/sig/onlyfans/models/media/vault/list_list_params.rbs +13 -1
- data/sig/onlyfans/models/media/vault/list_list_response.rbs +519 -235
- data/sig/onlyfans/models/media/vault/list_update_params.rbs +5 -1
- data/sig/onlyfans/models/post_create_params.rbs +21 -0
- data/sig/onlyfans/models/post_update_params.rbs +21 -0
- data/sig/onlyfans/models/queue_list_params.rbs +28 -6
- data/sig/onlyfans/models/release_form_list_taggable_users_response.rbs +7 -10
- data/sig/onlyfans/models/shared_tracking_link_list_params.rbs +78 -4
- data/sig/onlyfans/models/shared_trial_link_list_params.rbs +31 -4
- data/sig/onlyfans/models/smart_link_create_response.rbs +6 -4
- data/sig/onlyfans/models/smart_link_list_clicks_response.rbs +18 -3
- data/sig/onlyfans/models/smart_link_list_conversions_params.rbs +2 -0
- data/sig/onlyfans/models/smart_link_list_conversions_response.rbs +18 -3
- data/sig/onlyfans/models/smart_link_list_fans_params.rbs +15 -1
- data/sig/onlyfans/models/smart_link_list_fans_response.rbs +125 -3
- data/sig/onlyfans/models/smart_link_list_params.rbs +27 -6
- data/sig/onlyfans/models/smart_link_postback_create_params.rbs +48 -0
- data/sig/onlyfans/models/smart_link_postback_create_response.rbs +53 -0
- data/sig/onlyfans/models/smart_link_postback_list_response.rbs +53 -0
- data/sig/onlyfans/models/smart_link_postback_retrieve_response.rbs +53 -0
- data/sig/onlyfans/models/smart_link_postback_update_params.rbs +48 -0
- data/sig/onlyfans/models/smart_link_postback_update_response.rbs +53 -0
- data/sig/onlyfans/models/statistic_calculate_total_transactions_params.rbs +8 -4
- data/sig/onlyfans/models/statistic_get_subscriber_metrics_params.rbs +23 -1
- data/sig/onlyfans/models/statistics/statement_get_earnings_params.rbs +5 -7
- data/sig/onlyfans/models/stored_list_tracking_links_response.rbs +7 -0
- data/sig/onlyfans/models/stored_list_trial_links_response.rbs +7 -0
- data/sig/onlyfans/models/story_create_params.rbs +271 -1
- data/sig/onlyfans/models/story_create_response.rbs +419 -9
- data/sig/onlyfans/models/tracking_link_get_stats_response.rbs +7 -0
- data/sig/onlyfans/models/tracking_link_list_params.rbs +75 -26
- data/sig/onlyfans/models/tracking_link_list_response.rbs +7 -0
- data/sig/onlyfans/models/tracking_link_list_spenders_response.rbs +16 -3
- data/sig/onlyfans/models/tracking_link_retrieve_response.rbs +7 -0
- data/sig/onlyfans/models/trial_link_list_params.rbs +42 -18
- data/sig/onlyfans/models/trial_link_list_response.rbs +7 -0
- data/sig/onlyfans/models/trial_link_list_spenders_response.rbs +16 -3
- data/sig/onlyfans/models/trial_link_retrieve_response.rbs +7 -0
- data/sig/onlyfans/models/trial_link_retrieve_stats_response.rbs +7 -0
- data/sig/onlyfans/models/user_list_list_params.rbs +24 -1
- data/sig/onlyfans/models/user_lists/user_add_params.rbs +12 -1
- data/sig/onlyfans/models/user_lists/user_add_response.rbs +300 -101
- data/sig/onlyfans/models.rbs +0 -2
- data/sig/onlyfans/resources/analytics/financial/profitability.rbs +2 -2
- data/sig/onlyfans/resources/chats/messages.rbs +3 -1
- data/sig/onlyfans/resources/following.rbs +6 -0
- data/sig/onlyfans/resources/mass_messaging.rbs +5 -2
- data/sig/onlyfans/resources/media/vault/lists.rbs +3 -1
- data/sig/onlyfans/resources/media.rbs +1 -1
- data/sig/onlyfans/resources/messages.rbs +0 -9
- data/sig/onlyfans/resources/posts.rbs +2 -0
- data/sig/onlyfans/resources/queue.rbs +2 -1
- data/sig/onlyfans/resources/shared_tracking_links.rbs +5 -1
- data/sig/onlyfans/resources/shared_trial_links.rbs +2 -1
- data/sig/onlyfans/resources/smart_link_postbacks.rbs +6 -0
- data/sig/onlyfans/resources/smart_links.rbs +4 -1
- data/sig/onlyfans/resources/statistics/statements.rbs +1 -1
- data/sig/onlyfans/resources/statistics.rbs +3 -2
- data/sig/onlyfans/resources/stories.rbs +4 -0
- data/sig/onlyfans/resources/tracking_links.rbs +7 -6
- data/sig/onlyfans/resources/trial_links.rbs +7 -5
- data/sig/onlyfans/resources/user_lists/users.rbs +2 -1
- data/sig/onlyfans/resources/user_lists.rbs +1 -0
- metadata +9 -15
- data/lib/onlyfans/models/media_download_response.rb +0 -7
- data/lib/onlyfans/models/message_attach_tags_params.rb +0 -52
- data/lib/onlyfans/models/message_attach_tags_response.rb +0 -125
- data/rbi/onlyfans/models/media_download_response.rbi +0 -7
- data/rbi/onlyfans/models/message_attach_tags_params.rbi +0 -80
- data/rbi/onlyfans/models/message_attach_tags_response.rbi +0 -308
- data/sig/onlyfans/models/media_download_response.rbs +0 -5
- data/sig/onlyfans/models/message_attach_tags_params.rbs +0 -52
- data/sig/onlyfans/models/message_attach_tags_response.rbs +0 -164
|
@@ -30,13 +30,36 @@ module Onlyfans
|
|
|
30
30
|
# @return [String]
|
|
31
31
|
required :url, String
|
|
32
32
|
|
|
33
|
+
# @!attribute body
|
|
34
|
+
# Optional request body template for POST postbacks. Variables are replaced when
|
|
35
|
+
# the postback is dispatched.
|
|
36
|
+
#
|
|
37
|
+
# @return [String, nil]
|
|
38
|
+
optional :body, String
|
|
39
|
+
|
|
40
|
+
# @!attribute headers
|
|
41
|
+
# Optional request headers. Header values may include postback variables.
|
|
42
|
+
#
|
|
43
|
+
# @return [Array<Onlyfans::Models::SmartLinkPostbackUpdateParams::Header>, nil]
|
|
44
|
+
optional :headers,
|
|
45
|
+
-> { Onlyfans::Internal::Type::ArrayOf[Onlyfans::SmartLinkPostbackUpdateParams::Header] }
|
|
46
|
+
|
|
47
|
+
# @!attribute http_method
|
|
48
|
+
# HTTP method used for the postback request. Existing value is kept when omitted.
|
|
49
|
+
#
|
|
50
|
+
# @return [Symbol, Onlyfans::Models::SmartLinkPostbackUpdateParams::HTTPMethod, nil]
|
|
51
|
+
optional :http_method, enum: -> { Onlyfans::SmartLinkPostbackUpdateParams::HTTPMethod }
|
|
52
|
+
|
|
33
53
|
# @!attribute smart_link_ids
|
|
34
54
|
# Smart Link ULIDs. Required when `smart_link_scope` is `campaign_specific`.
|
|
35
55
|
#
|
|
36
56
|
# @return [Array<String>, nil]
|
|
37
57
|
optional :smart_link_ids, Onlyfans::Internal::Type::ArrayOf[String]
|
|
38
58
|
|
|
39
|
-
# @!method initialize(postback_id:, conversion_types:, smart_link_scope:, url:, smart_link_ids: nil, request_options: {})
|
|
59
|
+
# @!method initialize(postback_id:, conversion_types:, smart_link_scope:, url:, body: nil, headers: nil, http_method: nil, smart_link_ids: nil, request_options: {})
|
|
60
|
+
# Some parameter documentations has been truncated, see
|
|
61
|
+
# {Onlyfans::Models::SmartLinkPostbackUpdateParams} for more details.
|
|
62
|
+
#
|
|
40
63
|
# @param postback_id [Integer]
|
|
41
64
|
#
|
|
42
65
|
# @param conversion_types [Array<String>] One or more Smart Link conversion types that should trigger this postback.
|
|
@@ -45,6 +68,12 @@ module Onlyfans
|
|
|
45
68
|
#
|
|
46
69
|
# @param url [String] The destination URL.
|
|
47
70
|
#
|
|
71
|
+
# @param body [String] Optional request body template for POST postbacks. Variables are replaced when t
|
|
72
|
+
#
|
|
73
|
+
# @param headers [Array<Onlyfans::Models::SmartLinkPostbackUpdateParams::Header>] Optional request headers. Header values may include postback variables.
|
|
74
|
+
#
|
|
75
|
+
# @param http_method [Symbol, Onlyfans::Models::SmartLinkPostbackUpdateParams::HTTPMethod] HTTP method used for the postback request. Existing value is kept when omitted.
|
|
76
|
+
#
|
|
48
77
|
# @param smart_link_ids [Array<String>] Smart Link ULIDs. Required when `smart_link_scope` is `campaign_specific`.
|
|
49
78
|
#
|
|
50
79
|
# @param request_options [Onlyfans::RequestOptions, Hash{Symbol=>Object}]
|
|
@@ -59,6 +88,41 @@ module Onlyfans
|
|
|
59
88
|
# @!method self.values
|
|
60
89
|
# @return [Array<Symbol>]
|
|
61
90
|
end
|
|
91
|
+
|
|
92
|
+
class Header < Onlyfans::Internal::Type::BaseModel
|
|
93
|
+
# @!attribute name
|
|
94
|
+
# This field is required when <code>headers._.value</code> is present. Must match
|
|
95
|
+
# the regex /\A[A-Za-z0-9!#$%&'_+.^\_`|~-]+\z/. Must not be greater than 100
|
|
96
|
+
# characters.
|
|
97
|
+
#
|
|
98
|
+
# @return [String, nil]
|
|
99
|
+
optional :name, String, nil?: true
|
|
100
|
+
|
|
101
|
+
# @!attribute value
|
|
102
|
+
# Must not be greater than 2000 characters.
|
|
103
|
+
#
|
|
104
|
+
# @return [String, nil]
|
|
105
|
+
optional :value, String, nil?: true
|
|
106
|
+
|
|
107
|
+
# @!method initialize(name: nil, value: nil)
|
|
108
|
+
# Some parameter documentations has been truncated, see
|
|
109
|
+
# {Onlyfans::Models::SmartLinkPostbackUpdateParams::Header} for more details.
|
|
110
|
+
#
|
|
111
|
+
# @param name [String, nil] This field is required when <code>headers.\*.value</code> is present. Must match
|
|
112
|
+
#
|
|
113
|
+
# @param value [String, nil] Must not be greater than 2000 characters.
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# HTTP method used for the postback request. Existing value is kept when omitted.
|
|
117
|
+
module HTTPMethod
|
|
118
|
+
extend Onlyfans::Internal::Type::Enum
|
|
119
|
+
|
|
120
|
+
GET = :GET
|
|
121
|
+
POST = :POST
|
|
122
|
+
|
|
123
|
+
# @!method self.values
|
|
124
|
+
# @return [Array<Symbol>]
|
|
125
|
+
end
|
|
62
126
|
end
|
|
63
127
|
end
|
|
64
128
|
end
|
|
@@ -82,6 +82,11 @@ module Onlyfans
|
|
|
82
82
|
# @return [Integer, nil]
|
|
83
83
|
optional :id, Integer
|
|
84
84
|
|
|
85
|
+
# @!attribute body
|
|
86
|
+
#
|
|
87
|
+
# @return [String, nil]
|
|
88
|
+
optional :body, String
|
|
89
|
+
|
|
85
90
|
# @!attribute conversion_types
|
|
86
91
|
#
|
|
87
92
|
# @return [Array<String>, nil]
|
|
@@ -92,6 +97,17 @@ module Onlyfans
|
|
|
92
97
|
# @return [String, nil]
|
|
93
98
|
optional :created_at, String
|
|
94
99
|
|
|
100
|
+
# @!attribute headers
|
|
101
|
+
#
|
|
102
|
+
# @return [Array<Onlyfans::Models::SmartLinkPostbackUpdateResponse::Data::Header>, nil]
|
|
103
|
+
optional :headers,
|
|
104
|
+
-> { Onlyfans::Internal::Type::ArrayOf[Onlyfans::Models::SmartLinkPostbackUpdateResponse::Data::Header] }
|
|
105
|
+
|
|
106
|
+
# @!attribute http_method
|
|
107
|
+
#
|
|
108
|
+
# @return [String, nil]
|
|
109
|
+
optional :http_method, String
|
|
110
|
+
|
|
95
111
|
# @!attribute latest_response
|
|
96
112
|
#
|
|
97
113
|
# @return [String, nil]
|
|
@@ -113,6 +129,16 @@ module Onlyfans
|
|
|
113
129
|
optional :smart_links,
|
|
114
130
|
-> { Onlyfans::Internal::Type::ArrayOf[Onlyfans::Models::SmartLinkPostbackUpdateResponse::Data::SmartLink] }
|
|
115
131
|
|
|
132
|
+
# @!attribute traffic_source_ids
|
|
133
|
+
#
|
|
134
|
+
# @return [Array<Object>, nil]
|
|
135
|
+
optional :traffic_source_ids, Onlyfans::Internal::Type::ArrayOf[Onlyfans::Internal::Type::Unknown]
|
|
136
|
+
|
|
137
|
+
# @!attribute traffic_sources
|
|
138
|
+
#
|
|
139
|
+
# @return [Array<Object>, nil]
|
|
140
|
+
optional :traffic_sources, Onlyfans::Internal::Type::ArrayOf[Onlyfans::Internal::Type::Unknown]
|
|
141
|
+
|
|
116
142
|
# @!attribute updated_at
|
|
117
143
|
#
|
|
118
144
|
# @return [String, nil]
|
|
@@ -123,17 +149,38 @@ module Onlyfans
|
|
|
123
149
|
# @return [String, nil]
|
|
124
150
|
optional :url, String
|
|
125
151
|
|
|
126
|
-
# @!method initialize(id: nil, conversion_types: nil, created_at: nil, latest_response: nil, smart_link_ids: nil, smart_link_scope: nil, smart_links: nil, updated_at: nil, url: nil)
|
|
152
|
+
# @!method initialize(id: nil, body: nil, conversion_types: nil, created_at: nil, headers: nil, http_method: nil, latest_response: nil, smart_link_ids: nil, smart_link_scope: nil, smart_links: nil, traffic_source_ids: nil, traffic_sources: nil, updated_at: nil, url: nil)
|
|
127
153
|
# @param id [Integer]
|
|
154
|
+
# @param body [String]
|
|
128
155
|
# @param conversion_types [Array<String>]
|
|
129
156
|
# @param created_at [String]
|
|
157
|
+
# @param headers [Array<Onlyfans::Models::SmartLinkPostbackUpdateResponse::Data::Header>]
|
|
158
|
+
# @param http_method [String]
|
|
130
159
|
# @param latest_response [String, nil]
|
|
131
160
|
# @param smart_link_ids [Array<String>]
|
|
132
161
|
# @param smart_link_scope [String]
|
|
133
162
|
# @param smart_links [Array<Onlyfans::Models::SmartLinkPostbackUpdateResponse::Data::SmartLink>]
|
|
163
|
+
# @param traffic_source_ids [Array<Object>]
|
|
164
|
+
# @param traffic_sources [Array<Object>]
|
|
134
165
|
# @param updated_at [String]
|
|
135
166
|
# @param url [String]
|
|
136
167
|
|
|
168
|
+
class Header < Onlyfans::Internal::Type::BaseModel
|
|
169
|
+
# @!attribute name
|
|
170
|
+
#
|
|
171
|
+
# @return [String, nil]
|
|
172
|
+
optional :name, String
|
|
173
|
+
|
|
174
|
+
# @!attribute value
|
|
175
|
+
#
|
|
176
|
+
# @return [String, nil]
|
|
177
|
+
optional :value, String
|
|
178
|
+
|
|
179
|
+
# @!method initialize(name: nil, value: nil)
|
|
180
|
+
# @param name [String]
|
|
181
|
+
# @param value [String]
|
|
182
|
+
end
|
|
183
|
+
|
|
137
184
|
class SmartLink < Onlyfans::Internal::Type::BaseModel
|
|
138
185
|
# @!attribute account_display_name
|
|
139
186
|
#
|
|
@@ -15,16 +15,16 @@ module Onlyfans
|
|
|
15
15
|
# @!attribute end_date
|
|
16
16
|
# The end date for the period. Keep empty to calculate everything.
|
|
17
17
|
#
|
|
18
|
-
# @return [String]
|
|
19
|
-
|
|
18
|
+
# @return [String, nil]
|
|
19
|
+
optional :end_date, String
|
|
20
20
|
|
|
21
21
|
# @!attribute start_date
|
|
22
22
|
# The start date for the period. Keep empty to calculate everything.
|
|
23
23
|
#
|
|
24
|
-
# @return [String]
|
|
25
|
-
|
|
24
|
+
# @return [String, nil]
|
|
25
|
+
optional :start_date, String
|
|
26
26
|
|
|
27
|
-
# @!method initialize(account:, end_date
|
|
27
|
+
# @!method initialize(account:, end_date: nil, start_date: nil, request_options: {})
|
|
28
28
|
# @param account [String]
|
|
29
29
|
#
|
|
30
30
|
# @param end_date [String] The end date for the period. Keep empty to calculate everything.
|
|
@@ -31,7 +31,16 @@ module Onlyfans
|
|
|
31
31
|
# @return [Boolean, nil]
|
|
32
32
|
optional :detailed, Onlyfans::Internal::Type::Boolean, nil?: true
|
|
33
33
|
|
|
34
|
-
# @!
|
|
34
|
+
# @!attribute detailed_type
|
|
35
|
+
# Use only with `detailed=true` - otherwise, it has no effect. Filter the
|
|
36
|
+
# subscriber statistics (default = total)
|
|
37
|
+
#
|
|
38
|
+
# @return [Symbol, Onlyfans::Models::StatisticGetSubscriberMetricsParams::DetailedType, nil]
|
|
39
|
+
optional :detailed_type,
|
|
40
|
+
enum: -> { Onlyfans::StatisticGetSubscriberMetricsParams::DetailedType },
|
|
41
|
+
nil?: true
|
|
42
|
+
|
|
43
|
+
# @!method initialize(account:, end_date:, start_date:, detailed: nil, detailed_type: nil, request_options: {})
|
|
35
44
|
# Some parameter documentations has been truncated, see
|
|
36
45
|
# {Onlyfans::Models::StatisticGetSubscriberMetricsParams} for more details.
|
|
37
46
|
#
|
|
@@ -43,7 +52,22 @@ module Onlyfans
|
|
|
43
52
|
#
|
|
44
53
|
# @param detailed [Boolean, nil] Include paid and free fan metrics. Will slow down the response time, and might t
|
|
45
54
|
#
|
|
55
|
+
# @param detailed_type [Symbol, Onlyfans::Models::StatisticGetSubscriberMetricsParams::DetailedType, nil] Use only with `detailed=true` - otherwise, it has no effect. Filter the subscrib
|
|
56
|
+
#
|
|
46
57
|
# @param request_options [Onlyfans::RequestOptions, Hash{Symbol=>Object}]
|
|
58
|
+
|
|
59
|
+
# Use only with `detailed=true` - otherwise, it has no effect. Filter the
|
|
60
|
+
# subscriber statistics (default = total)
|
|
61
|
+
module DetailedType
|
|
62
|
+
extend Onlyfans::Internal::Type::Enum
|
|
63
|
+
|
|
64
|
+
TOTAL = :total
|
|
65
|
+
RENEW = :renew
|
|
66
|
+
NEW = :new
|
|
67
|
+
|
|
68
|
+
# @!method self.values
|
|
69
|
+
# @return [Array<Symbol>]
|
|
70
|
+
end
|
|
47
71
|
end
|
|
48
72
|
end
|
|
49
73
|
end
|
|
@@ -20,7 +20,7 @@ module Onlyfans
|
|
|
20
20
|
required :end_date, String
|
|
21
21
|
|
|
22
22
|
# @!attribute start_date
|
|
23
|
-
# The start date for the period
|
|
23
|
+
# The start date for the period.
|
|
24
24
|
#
|
|
25
25
|
# @return [String]
|
|
26
26
|
required :start_date, String
|
|
@@ -52,7 +52,7 @@ module Onlyfans
|
|
|
52
52
|
#
|
|
53
53
|
# @param end_date [String] The end date for the period.
|
|
54
54
|
#
|
|
55
|
-
# @param start_date [String] The start date for the period
|
|
55
|
+
# @param start_date [String] The start date for the period.
|
|
56
56
|
#
|
|
57
57
|
# @param filter [Symbol, Onlyfans::Models::Statistics::ReachGetProfileVisitorsParams::Filter, nil] Optionally, filter the results by `chart` or `topCountries`. See example respons
|
|
58
58
|
#
|
|
@@ -13,17 +13,17 @@ module Onlyfans
|
|
|
13
13
|
# @return [String]
|
|
14
14
|
required :account, String
|
|
15
15
|
|
|
16
|
-
# @!attribute
|
|
17
|
-
# The
|
|
16
|
+
# @!attribute end_date
|
|
17
|
+
# The end date for the period.
|
|
18
18
|
#
|
|
19
19
|
# @return [String]
|
|
20
|
-
required :
|
|
20
|
+
required :end_date, String
|
|
21
21
|
|
|
22
|
-
# @!attribute
|
|
23
|
-
# The
|
|
22
|
+
# @!attribute start_date
|
|
23
|
+
# The start date for the period.
|
|
24
24
|
#
|
|
25
|
-
# @return [String
|
|
26
|
-
|
|
25
|
+
# @return [String]
|
|
26
|
+
required :start_date, String
|
|
27
27
|
|
|
28
28
|
# @!attribute type
|
|
29
29
|
# Filter by All / Subscriptions / Tips / Posts / Messages / Streams
|
|
@@ -31,13 +31,13 @@ module Onlyfans
|
|
|
31
31
|
# @return [Symbol, Onlyfans::Models::Statistics::StatementGetEarningsParams::Type, nil]
|
|
32
32
|
optional :type, enum: -> { Onlyfans::Statistics::StatementGetEarningsParams::Type }
|
|
33
33
|
|
|
34
|
-
# @!method initialize(account:, start_date:,
|
|
34
|
+
# @!method initialize(account:, end_date:, start_date:, type: nil, request_options: {})
|
|
35
35
|
# @param account [String]
|
|
36
36
|
#
|
|
37
|
-
# @param start_date [String] The start date for the period
|
|
38
|
-
#
|
|
39
37
|
# @param end_date [String] The end date for the period.
|
|
40
38
|
#
|
|
39
|
+
# @param start_date [String] The start date for the period.
|
|
40
|
+
#
|
|
41
41
|
# @param type [Symbol, Onlyfans::Models::Statistics::StatementGetEarningsParams::Type] Filter by All / Subscriptions / Tips / Posts / Messages / Streams
|
|
42
42
|
#
|
|
43
43
|
# @param request_options [Onlyfans::RequestOptions, Hash{Symbol=>Object}]
|
|
@@ -301,6 +301,11 @@ module Onlyfans
|
|
|
301
301
|
# @return [String, nil]
|
|
302
302
|
optional :calculated_at, String, api_name: :calculatedAt
|
|
303
303
|
|
|
304
|
+
# @!attribute chargebacks
|
|
305
|
+
#
|
|
306
|
+
# @return [Integer, nil]
|
|
307
|
+
optional :chargebacks, Integer
|
|
308
|
+
|
|
304
309
|
# @!attribute is_loading
|
|
305
310
|
#
|
|
306
311
|
# @return [Boolean, nil]
|
|
@@ -326,8 +331,9 @@ module Onlyfans
|
|
|
326
331
|
# @return [Integer, nil]
|
|
327
332
|
optional :total, Integer
|
|
328
333
|
|
|
329
|
-
# @!method initialize(calculated_at: nil, is_loading: nil, revenue_per_click: nil, revenue_per_subscriber: nil, spenders_count: nil, total: nil)
|
|
334
|
+
# @!method initialize(calculated_at: nil, chargebacks: nil, is_loading: nil, revenue_per_click: nil, revenue_per_subscriber: nil, spenders_count: nil, total: nil)
|
|
330
335
|
# @param calculated_at [String]
|
|
336
|
+
# @param chargebacks [Integer]
|
|
331
337
|
# @param is_loading [Boolean]
|
|
332
338
|
# @param revenue_per_click [Float]
|
|
333
339
|
# @param revenue_per_subscriber [Integer]
|
|
@@ -313,6 +313,11 @@ module Onlyfans
|
|
|
313
313
|
# @return [String, nil]
|
|
314
314
|
optional :calculated_at, String, api_name: :calculatedAt
|
|
315
315
|
|
|
316
|
+
# @!attribute chargebacks
|
|
317
|
+
#
|
|
318
|
+
# @return [Float, nil]
|
|
319
|
+
optional :chargebacks, Float
|
|
320
|
+
|
|
316
321
|
# @!attribute is_loading
|
|
317
322
|
#
|
|
318
323
|
# @return [Boolean, nil]
|
|
@@ -333,8 +338,9 @@ module Onlyfans
|
|
|
333
338
|
# @return [Float, nil]
|
|
334
339
|
optional :total, Float
|
|
335
340
|
|
|
336
|
-
# @!method initialize(calculated_at: nil, is_loading: nil, revenue_per_subscriber: nil, spenders_count: nil, total: nil)
|
|
341
|
+
# @!method initialize(calculated_at: nil, chargebacks: nil, is_loading: nil, revenue_per_subscriber: nil, spenders_count: nil, total: nil)
|
|
337
342
|
# @param calculated_at [String]
|
|
343
|
+
# @param chargebacks [Float]
|
|
338
344
|
# @param is_loading [Boolean]
|
|
339
345
|
# @param revenue_per_subscriber [Float]
|
|
340
346
|
# @param spenders_count [Integer]
|
|
@@ -13,21 +13,308 @@ module Onlyfans
|
|
|
13
13
|
required :account, String
|
|
14
14
|
|
|
15
15
|
# @!attribute media_files
|
|
16
|
-
# Array of media file upload prefixed_ids, or OF media IDs
|
|
17
|
-
# not 0).
|
|
16
|
+
# Array of media file upload prefixed_ids, or OF vault media IDs.
|
|
18
17
|
#
|
|
19
18
|
# @return [Array<String>]
|
|
20
19
|
required :media_files, Onlyfans::Internal::Type::ArrayOf[String], api_name: :mediaFiles
|
|
21
20
|
|
|
22
|
-
# @!
|
|
23
|
-
#
|
|
24
|
-
# {Onlyfans::Models::StoryCreateParams} for more details.
|
|
21
|
+
# @!attribute canvas_height
|
|
22
|
+
# Canvas height overlay positions are relative to. Default `1920`.
|
|
25
23
|
#
|
|
24
|
+
# @return [Integer, nil]
|
|
25
|
+
optional :canvas_height, Integer, api_name: :canvasHeight
|
|
26
|
+
|
|
27
|
+
# @!attribute canvas_width
|
|
28
|
+
# Canvas width overlay positions are relative to. Default `1080`.
|
|
29
|
+
#
|
|
30
|
+
# @return [Integer, nil]
|
|
31
|
+
optional :canvas_width, Integer, api_name: :canvasWidth
|
|
32
|
+
|
|
33
|
+
# @!attribute question
|
|
34
|
+
# Interactive question sticker viewers can answer.
|
|
35
|
+
#
|
|
36
|
+
# @return [Onlyfans::Models::StoryCreateParams::Question, nil]
|
|
37
|
+
optional :question, -> { Onlyfans::StoryCreateParams::Question }
|
|
38
|
+
|
|
39
|
+
# @!attribute texts
|
|
40
|
+
# Text and @mention overlays.
|
|
41
|
+
#
|
|
42
|
+
# @return [Array<Onlyfans::Models::StoryCreateParams::Text>, nil]
|
|
43
|
+
optional :texts, -> { Onlyfans::Internal::Type::ArrayOf[Onlyfans::StoryCreateParams::Text] }
|
|
44
|
+
|
|
45
|
+
# @!method initialize(account:, media_files:, canvas_height: nil, canvas_width: nil, question: nil, texts: nil, request_options: {})
|
|
26
46
|
# @param account [String]
|
|
27
47
|
#
|
|
28
|
-
# @param media_files [Array<String>] Array of media file upload prefixed_ids, or OF media IDs
|
|
48
|
+
# @param media_files [Array<String>] Array of media file upload prefixed_ids, or OF vault media IDs.
|
|
49
|
+
#
|
|
50
|
+
# @param canvas_height [Integer] Canvas height overlay positions are relative to. Default `1920`.
|
|
51
|
+
#
|
|
52
|
+
# @param canvas_width [Integer] Canvas width overlay positions are relative to. Default `1080`.
|
|
53
|
+
#
|
|
54
|
+
# @param question [Onlyfans::Models::StoryCreateParams::Question] Interactive question sticker viewers can answer.
|
|
55
|
+
#
|
|
56
|
+
# @param texts [Array<Onlyfans::Models::StoryCreateParams::Text>] Text and @mention overlays.
|
|
29
57
|
#
|
|
30
58
|
# @param request_options [Onlyfans::RequestOptions, Hash{Symbol=>Object}]
|
|
59
|
+
|
|
60
|
+
class Question < Onlyfans::Internal::Type::BaseModel
|
|
61
|
+
# @!attribute color
|
|
62
|
+
# Sticker accent color (hex). Default `#FF51DC`.
|
|
63
|
+
#
|
|
64
|
+
# @return [String, nil]
|
|
65
|
+
optional :color, String
|
|
66
|
+
|
|
67
|
+
# @!attribute height
|
|
68
|
+
# Sticker height in canvas px. Default `160`.
|
|
69
|
+
#
|
|
70
|
+
# @return [Float, nil]
|
|
71
|
+
optional :height, Float
|
|
72
|
+
|
|
73
|
+
# @!attribute left
|
|
74
|
+
# Horizontal position as a percentage of the canvas width (0-100). Default `25`.
|
|
75
|
+
#
|
|
76
|
+
# @return [Float, nil]
|
|
77
|
+
optional :left, Float
|
|
78
|
+
|
|
79
|
+
# @!attribute text
|
|
80
|
+
# The question to ask.
|
|
81
|
+
#
|
|
82
|
+
# @return [String, nil]
|
|
83
|
+
optional :text, String
|
|
84
|
+
|
|
85
|
+
# @!attribute top
|
|
86
|
+
# Vertical position as a percentage of the canvas height (0-100). Default `30`.
|
|
87
|
+
#
|
|
88
|
+
# @return [Float, nil]
|
|
89
|
+
optional :top, Float
|
|
90
|
+
|
|
91
|
+
# @!attribute width
|
|
92
|
+
# Sticker width in canvas px. Default `257`.
|
|
93
|
+
#
|
|
94
|
+
# @return [Float, nil]
|
|
95
|
+
optional :width, Float
|
|
96
|
+
|
|
97
|
+
# @!method initialize(color: nil, height: nil, left: nil, text: nil, top: nil, width: nil)
|
|
98
|
+
# Interactive question sticker viewers can answer.
|
|
99
|
+
#
|
|
100
|
+
# @param color [String] Sticker accent color (hex). Default `#FF51DC`.
|
|
101
|
+
#
|
|
102
|
+
# @param height [Float] Sticker height in canvas px. Default `160`.
|
|
103
|
+
#
|
|
104
|
+
# @param left [Float] Horizontal position as a percentage of the canvas width (0-100). Default `25`.
|
|
105
|
+
#
|
|
106
|
+
# @param text [String] The question to ask.
|
|
107
|
+
#
|
|
108
|
+
# @param top [Float] Vertical position as a percentage of the canvas height (0-100). Default `30`.
|
|
109
|
+
#
|
|
110
|
+
# @param width [Float] Sticker width in canvas px. Default `257`.
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
class Text < Onlyfans::Internal::Type::BaseModel
|
|
114
|
+
# @!attribute text
|
|
115
|
+
# The overlay text. For mentions this must be the `@username` to mention (OnlyFans
|
|
116
|
+
# resolves the user and adds them to the story's release forms).
|
|
117
|
+
#
|
|
118
|
+
# @return [String]
|
|
119
|
+
required :text, String
|
|
120
|
+
|
|
121
|
+
# @!attribute angle
|
|
122
|
+
# Rotation in degrees. Default `0`.
|
|
123
|
+
#
|
|
124
|
+
# @return [Float, nil]
|
|
125
|
+
optional :angle, Float
|
|
126
|
+
|
|
127
|
+
# @!attribute bg_color
|
|
128
|
+
# Background color (hex, `#00000000` = transparent). Native editor palette:
|
|
129
|
+
# #FFFFFF #000000 #69818C #FF51DC #FF4081 #FA3240 #FF8040 #FCA800 #70CF27 #00C864
|
|
130
|
+
# #00B1CC #2196F3 #7953F5 #A832BF. Default: transparent for texts, white for
|
|
131
|
+
# mentions.
|
|
132
|
+
#
|
|
133
|
+
# @return [String, nil]
|
|
134
|
+
optional :bg_color, String, api_name: :bgColor
|
|
135
|
+
|
|
136
|
+
# @!attribute color
|
|
137
|
+
# Text color (hex). Defaults to the native editor behavior: white on a colored
|
|
138
|
+
# background, black on a white background (mentions: OnlyFans blue `#0091EA` on
|
|
139
|
+
# white).
|
|
140
|
+
#
|
|
141
|
+
# @return [String, nil]
|
|
142
|
+
optional :color, String
|
|
143
|
+
|
|
144
|
+
# @!attribute font_family
|
|
145
|
+
# Font family. Families support specific weights only: Roboto (400/500/700),
|
|
146
|
+
# PTMono (400), ShantellSans (400), SofiaSans (400, renders uppercase),
|
|
147
|
+
# YanoneKaffeesatz (700), RubikMedium (500), RubikBlack (700). Default `Roboto`.
|
|
148
|
+
# Ignored for mentions (always Roboto 500).
|
|
149
|
+
#
|
|
150
|
+
# @return [Symbol, Onlyfans::Models::StoryCreateParams::Text::FontFamily, nil]
|
|
151
|
+
optional :font_family,
|
|
152
|
+
enum: -> {
|
|
153
|
+
Onlyfans::StoryCreateParams::Text::FontFamily
|
|
154
|
+
},
|
|
155
|
+
api_name: :fontFamily
|
|
156
|
+
|
|
157
|
+
# @!attribute font_size
|
|
158
|
+
# Font size in canvas px (8-100). The native editor uses 9-36. Default `20`.
|
|
159
|
+
#
|
|
160
|
+
# @return [Float, nil]
|
|
161
|
+
optional :font_size, Float, api_name: :fontSize
|
|
162
|
+
|
|
163
|
+
# @!attribute font_weight
|
|
164
|
+
# Font weight; must match the chosen family (see `fontFamily`).
|
|
165
|
+
#
|
|
166
|
+
# @return [Integer, Onlyfans::Models::StoryCreateParams::Text::FontWeight, nil]
|
|
167
|
+
optional :font_weight,
|
|
168
|
+
enum: -> {
|
|
169
|
+
Onlyfans::StoryCreateParams::Text::FontWeight
|
|
170
|
+
},
|
|
171
|
+
api_name: :fontWeight
|
|
172
|
+
|
|
173
|
+
# @!attribute left
|
|
174
|
+
# Horizontal position as a percentage of the canvas width (0-100). Default `25`.
|
|
175
|
+
#
|
|
176
|
+
# @return [Float, nil]
|
|
177
|
+
optional :left, Float
|
|
178
|
+
|
|
179
|
+
# @!attribute scale
|
|
180
|
+
# Scale factor. Default `1`.
|
|
181
|
+
#
|
|
182
|
+
# @return [Float, nil]
|
|
183
|
+
optional :scale, Float
|
|
184
|
+
|
|
185
|
+
# @!attribute text_align
|
|
186
|
+
# Text alignment. Default `left`.
|
|
187
|
+
#
|
|
188
|
+
# @return [Symbol, Onlyfans::Models::StoryCreateParams::Text::TextAlign, nil]
|
|
189
|
+
optional :text_align, enum: -> { Onlyfans::StoryCreateParams::Text::TextAlign }, api_name: :textAlign
|
|
190
|
+
|
|
191
|
+
# @!attribute text_height
|
|
192
|
+
# Rendered text box height in canvas px. Estimated automatically when omitted.
|
|
193
|
+
#
|
|
194
|
+
# @return [Float, nil]
|
|
195
|
+
optional :text_height, Float, api_name: :textHeight
|
|
196
|
+
|
|
197
|
+
# @!attribute text_width
|
|
198
|
+
# Rendered text box width in canvas px. Estimated automatically when omitted.
|
|
199
|
+
#
|
|
200
|
+
# @return [Float, nil]
|
|
201
|
+
optional :text_width, Float, api_name: :textWidth
|
|
202
|
+
|
|
203
|
+
# @!attribute top
|
|
204
|
+
# Vertical position as a percentage of the canvas height (0-100). Defaults stagger
|
|
205
|
+
# each overlay below the previous one.
|
|
206
|
+
#
|
|
207
|
+
# @return [Float, nil]
|
|
208
|
+
optional :top, Float
|
|
209
|
+
|
|
210
|
+
# @!attribute type
|
|
211
|
+
# Overlay type. Default `text`.
|
|
212
|
+
#
|
|
213
|
+
# @return [Symbol, Onlyfans::Models::StoryCreateParams::Text::Type, nil]
|
|
214
|
+
optional :type, enum: -> { Onlyfans::StoryCreateParams::Text::Type }
|
|
215
|
+
|
|
216
|
+
# @!attribute z_index
|
|
217
|
+
# Stacking order. Defaults to placement order.
|
|
218
|
+
#
|
|
219
|
+
# @return [Integer, nil]
|
|
220
|
+
optional :z_index, Integer, api_name: :zIndex
|
|
221
|
+
|
|
222
|
+
# @!method initialize(text:, angle: nil, bg_color: nil, color: nil, font_family: nil, font_size: nil, font_weight: nil, left: nil, scale: nil, text_align: nil, text_height: nil, text_width: nil, top: nil, type: nil, z_index: nil)
|
|
223
|
+
# Some parameter documentations has been truncated, see
|
|
224
|
+
# {Onlyfans::Models::StoryCreateParams::Text} for more details.
|
|
225
|
+
#
|
|
226
|
+
# @param text [String] The overlay text. For mentions this must be the `@username` to mention (OnlyFans
|
|
227
|
+
#
|
|
228
|
+
# @param angle [Float] Rotation in degrees. Default `0`.
|
|
229
|
+
#
|
|
230
|
+
# @param bg_color [String] Background color (hex, `#00000000` = transparent). Native editor palette: #FFFFF
|
|
231
|
+
#
|
|
232
|
+
# @param color [String] Text color (hex). Defaults to the native editor behavior: white on a colored bac
|
|
233
|
+
#
|
|
234
|
+
# @param font_family [Symbol, Onlyfans::Models::StoryCreateParams::Text::FontFamily] Font family. Families support specific weights only: Roboto (400/500/700), PTMon
|
|
235
|
+
#
|
|
236
|
+
# @param font_size [Float] Font size in canvas px (8-100). The native editor uses 9-36. Default `20`.
|
|
237
|
+
#
|
|
238
|
+
# @param font_weight [Integer, Onlyfans::Models::StoryCreateParams::Text::FontWeight] Font weight; must match the chosen family (see `fontFamily`).
|
|
239
|
+
#
|
|
240
|
+
# @param left [Float] Horizontal position as a percentage of the canvas width (0-100). Default `25`.
|
|
241
|
+
#
|
|
242
|
+
# @param scale [Float] Scale factor. Default `1`.
|
|
243
|
+
#
|
|
244
|
+
# @param text_align [Symbol, Onlyfans::Models::StoryCreateParams::Text::TextAlign] Text alignment. Default `left`.
|
|
245
|
+
#
|
|
246
|
+
# @param text_height [Float] Rendered text box height in canvas px. Estimated automatically when omitted.
|
|
247
|
+
#
|
|
248
|
+
# @param text_width [Float] Rendered text box width in canvas px. Estimated automatically when omitted.
|
|
249
|
+
#
|
|
250
|
+
# @param top [Float] Vertical position as a percentage of the canvas height (0-100). Defaults stagger
|
|
251
|
+
#
|
|
252
|
+
# @param type [Symbol, Onlyfans::Models::StoryCreateParams::Text::Type] Overlay type. Default `text`.
|
|
253
|
+
#
|
|
254
|
+
# @param z_index [Integer] Stacking order. Defaults to placement order.
|
|
255
|
+
|
|
256
|
+
# Font family. Families support specific weights only: Roboto (400/500/700),
|
|
257
|
+
# PTMono (400), ShantellSans (400), SofiaSans (400, renders uppercase),
|
|
258
|
+
# YanoneKaffeesatz (700), RubikMedium (500), RubikBlack (700). Default `Roboto`.
|
|
259
|
+
# Ignored for mentions (always Roboto 500).
|
|
260
|
+
#
|
|
261
|
+
# @see Onlyfans::Models::StoryCreateParams::Text#font_family
|
|
262
|
+
module FontFamily
|
|
263
|
+
extend Onlyfans::Internal::Type::Enum
|
|
264
|
+
|
|
265
|
+
ROBOTO = :Roboto
|
|
266
|
+
PT_MONO = :PTMono
|
|
267
|
+
SHANTELL_SANS = :ShantellSans
|
|
268
|
+
SOFIA_SANS = :SofiaSans
|
|
269
|
+
YANONE_KAFFEESATZ = :YanoneKaffeesatz
|
|
270
|
+
RUBIK_MEDIUM = :RubikMedium
|
|
271
|
+
RUBIK_BLACK = :RubikBlack
|
|
272
|
+
|
|
273
|
+
# @!method self.values
|
|
274
|
+
# @return [Array<Symbol>]
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
# Font weight; must match the chosen family (see `fontFamily`).
|
|
278
|
+
#
|
|
279
|
+
# @see Onlyfans::Models::StoryCreateParams::Text#font_weight
|
|
280
|
+
module FontWeight
|
|
281
|
+
extend Onlyfans::Internal::Type::Enum
|
|
282
|
+
|
|
283
|
+
FONT_WEIGHT_400 = 400
|
|
284
|
+
FONT_WEIGHT_500 = 500
|
|
285
|
+
FONT_WEIGHT_700 = 700
|
|
286
|
+
|
|
287
|
+
# @!method self.values
|
|
288
|
+
# @return [Array<Integer>]
|
|
289
|
+
end
|
|
290
|
+
|
|
291
|
+
# Text alignment. Default `left`.
|
|
292
|
+
#
|
|
293
|
+
# @see Onlyfans::Models::StoryCreateParams::Text#text_align
|
|
294
|
+
module TextAlign
|
|
295
|
+
extend Onlyfans::Internal::Type::Enum
|
|
296
|
+
|
|
297
|
+
LEFT = :left
|
|
298
|
+
CENTER = :center
|
|
299
|
+
RIGHT = :right
|
|
300
|
+
|
|
301
|
+
# @!method self.values
|
|
302
|
+
# @return [Array<Symbol>]
|
|
303
|
+
end
|
|
304
|
+
|
|
305
|
+
# Overlay type. Default `text`.
|
|
306
|
+
#
|
|
307
|
+
# @see Onlyfans::Models::StoryCreateParams::Text#type
|
|
308
|
+
module Type
|
|
309
|
+
extend Onlyfans::Internal::Type::Enum
|
|
310
|
+
|
|
311
|
+
TEXT = :text
|
|
312
|
+
MENTION = :mention
|
|
313
|
+
|
|
314
|
+
# @!method self.values
|
|
315
|
+
# @return [Array<Symbol>]
|
|
316
|
+
end
|
|
317
|
+
end
|
|
31
318
|
end
|
|
32
319
|
end
|
|
33
320
|
end
|