twitter-openapi-python-generated 0.0.32__py3-none-any.whl → 0.0.34__py3-none-any.whl
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.
- twitter_openapi_python_generated/__init__.py +742 -330
- twitter_openapi_python_generated/api/default_api.py +1 -2
- twitter_openapi_python_generated/api/other_api.py +1 -2
- twitter_openapi_python_generated/api/post_api.py +1 -2
- twitter_openapi_python_generated/api/tweet_api.py +1 -2
- twitter_openapi_python_generated/api/user_api.py +1 -2
- twitter_openapi_python_generated/api/user_list_api.py +318 -2
- twitter_openapi_python_generated/api/users_api.py +1 -2
- twitter_openapi_python_generated/api/v11_get_api.py +1 -2
- twitter_openapi_python_generated/api/v11_post_api.py +1 -2
- twitter_openapi_python_generated/api/v20_get_api.py +1 -2
- twitter_openapi_python_generated/api_client.py +35 -28
- twitter_openapi_python_generated/configuration.py +47 -23
- twitter_openapi_python_generated/exceptions.py +7 -5
- twitter_openapi_python_generated/models/__init__.py +41 -2
- twitter_openapi_python_generated/models/about_community_result.py +4 -3
- twitter_openapi_python_generated/models/about_community_results.py +4 -3
- twitter_openapi_python_generated/models/about_community_tweet_data.py +4 -3
- twitter_openapi_python_generated/models/additional_media_info.py +4 -3
- twitter_openapi_python_generated/models/additional_media_info_call_to_actions.py +4 -3
- twitter_openapi_python_generated/models/additional_media_info_call_to_actions_url.py +4 -3
- twitter_openapi_python_generated/models/allow_download_status.py +4 -3
- twitter_openapi_python_generated/models/analysis_results.py +4 -3
- twitter_openapi_python_generated/models/article.py +4 -3
- twitter_openapi_python_generated/models/article_cover_media.py +7 -3
- twitter_openapi_python_generated/models/article_cover_media_color_info.py +4 -3
- twitter_openapi_python_generated/models/article_cover_media_color_info_palette.py +4 -3
- twitter_openapi_python_generated/models/article_cover_media_color_info_palette_rgb.py +4 -3
- twitter_openapi_python_generated/models/article_cover_media_info.py +4 -3
- twitter_openapi_python_generated/models/article_lifecycle_state.py +4 -3
- twitter_openapi_python_generated/models/article_metadata.py +4 -3
- twitter_openapi_python_generated/models/article_preview.py +99 -0
- twitter_openapi_python_generated/models/article_result.py +23 -6
- twitter_openapi_python_generated/models/article_results.py +4 -3
- twitter_openapi_python_generated/models/author_community_relationship.py +9 -8
- twitter_openapi_python_generated/models/birdwatch_entity.py +4 -3
- twitter_openapi_python_generated/models/birdwatch_entity_ref.py +4 -3
- twitter_openapi_python_generated/models/birdwatch_pivot.py +19 -6
- twitter_openapi_python_generated/models/birdwatch_pivot_call_to_action.py +4 -3
- twitter_openapi_python_generated/models/birdwatch_pivot_footer.py +4 -3
- twitter_openapi_python_generated/models/birdwatch_pivot_note.py +20 -6
- twitter_openapi_python_generated/models/birdwatch_pivot_subtitle.py +4 -3
- twitter_openapi_python_generated/models/bookmarks_response.py +4 -3
- twitter_openapi_python_generated/models/bookmarks_response_data.py +4 -3
- twitter_openapi_python_generated/models/bookmarks_timeline.py +4 -3
- twitter_openapi_python_generated/models/callback.py +4 -3
- twitter_openapi_python_generated/models/client_event_info.py +4 -3
- twitter_openapi_python_generated/models/communities_actions.py +4 -3
- twitter_openapi_python_generated/models/community.py +146 -12
- twitter_openapi_python_generated/models/community_about_timeline_response.py +4 -3
- twitter_openapi_python_generated/models/community_actions.py +4 -3
- twitter_openapi_python_generated/models/community_delete_action_result.py +4 -3
- twitter_openapi_python_generated/models/community_invites_result.py +4 -3
- twitter_openapi_python_generated/models/community_join_action.py +4 -3
- twitter_openapi_python_generated/models/community_join_action_unavailable.py +4 -3
- twitter_openapi_python_generated/models/community_join_requests_result.py +4 -3
- twitter_openapi_python_generated/models/community_leave_action_result.py +4 -3
- twitter_openapi_python_generated/models/community_media_timeline_response.py +4 -3
- twitter_openapi_python_generated/models/community_pin_action_result.py +4 -3
- twitter_openapi_python_generated/models/community_relationship.py +7 -3
- twitter_openapi_python_generated/models/community_result.py +93 -0
- twitter_openapi_python_generated/models/community_rule.py +7 -3
- twitter_openapi_python_generated/models/community_tweets_timeline_response.py +4 -3
- twitter_openapi_python_generated/models/community_unavailable.py +90 -0
- twitter_openapi_python_generated/models/community_union.py +156 -0
- twitter_openapi_python_generated/models/community_unpin_action_result.py +4 -3
- twitter_openapi_python_generated/models/community_urls.py +4 -3
- twitter_openapi_python_generated/models/community_urls_permalink.py +4 -3
- twitter_openapi_python_generated/models/content_disclosure.py +99 -0
- twitter_openapi_python_generated/models/content_disclosure_advertising_disclosure.py +89 -0
- twitter_openapi_python_generated/models/content_disclosure_ai_generated_disclosure.py +103 -0
- twitter_openapi_python_generated/models/conversation_control.py +4 -3
- twitter_openapi_python_generated/models/cover_cta.py +4 -3
- twitter_openapi_python_generated/models/create_bookmark_response.py +4 -3
- twitter_openapi_python_generated/models/create_bookmark_response_data.py +4 -3
- twitter_openapi_python_generated/models/create_retweet.py +4 -3
- twitter_openapi_python_generated/models/create_retweet_response.py +4 -3
- twitter_openapi_python_generated/models/create_retweet_response_data.py +4 -3
- twitter_openapi_python_generated/models/create_retweet_response_result.py +4 -3
- twitter_openapi_python_generated/models/create_tweet.py +4 -3
- twitter_openapi_python_generated/models/create_tweet_response.py +4 -3
- twitter_openapi_python_generated/models/create_tweet_response_data.py +4 -3
- twitter_openapi_python_generated/models/create_tweet_response_result.py +4 -3
- twitter_openapi_python_generated/models/cta_client_event_info.py +4 -3
- twitter_openapi_python_generated/models/delete_bookmark_response.py +4 -3
- twitter_openapi_python_generated/models/delete_bookmark_response_data.py +4 -3
- twitter_openapi_python_generated/models/delete_retweet.py +4 -3
- twitter_openapi_python_generated/models/delete_retweet_response.py +4 -3
- twitter_openapi_python_generated/models/delete_retweet_response_data.py +4 -3
- twitter_openapi_python_generated/models/delete_retweet_response_result.py +4 -3
- twitter_openapi_python_generated/models/delete_tweet_response.py +4 -3
- twitter_openapi_python_generated/models/delete_tweet_response_data.py +4 -3
- twitter_openapi_python_generated/models/delete_tweet_response_result.py +4 -3
- twitter_openapi_python_generated/models/display_treatment.py +4 -3
- twitter_openapi_python_generated/models/entities.py +19 -8
- twitter_openapi_python_generated/models/error_extensions.py +4 -3
- twitter_openapi_python_generated/models/error_response.py +14 -5
- twitter_openapi_python_generated/models/error_response_path_inner.py +144 -0
- twitter_openapi_python_generated/models/ext_media_availability.py +4 -3
- twitter_openapi_python_generated/models/extended_entities.py +4 -3
- twitter_openapi_python_generated/models/favorite_tweet.py +4 -3
- twitter_openapi_python_generated/models/favorite_tweet_response.py +4 -3
- twitter_openapi_python_generated/models/feedback_info.py +4 -3
- twitter_openapi_python_generated/models/follow_response.py +4 -3
- twitter_openapi_python_generated/models/follow_response_data.py +4 -3
- twitter_openapi_python_generated/models/follow_response_result.py +4 -3
- twitter_openapi_python_generated/models/follow_response_user.py +4 -3
- twitter_openapi_python_generated/models/follow_timeline.py +4 -3
- twitter_openapi_python_generated/models/grok_annotation.py +89 -0
- twitter_openapi_python_generated/models/grok_entity.py +97 -0
- twitter_openapi_python_generated/models/grok_entity_ref.py +116 -0
- twitter_openapi_python_generated/models/grok_image_annotation.py +4 -3
- twitter_openapi_python_generated/models/grok_share_attachment.py +4 -3
- twitter_openapi_python_generated/models/grok_share_attachment_item.py +7 -4
- twitter_openapi_python_generated/models/grok_translated_community_note.py +105 -0
- twitter_openapi_python_generated/models/grok_translated_community_note_with_availability.py +95 -0
- twitter_openapi_python_generated/models/grok_translated_post.py +103 -0
- twitter_openapi_python_generated/models/grok_translated_post_with_availability.py +95 -0
- twitter_openapi_python_generated/models/highlight.py +4 -3
- twitter_openapi_python_generated/models/home_timeline_home.py +4 -3
- twitter_openapi_python_generated/models/home_timeline_response_data.py +4 -3
- twitter_openapi_python_generated/models/item_result.py +4 -3
- twitter_openapi_python_generated/models/limited_action_results_data.py +4 -3
- twitter_openapi_python_generated/models/list_latest_tweets_timeline_response.py +4 -3
- twitter_openapi_python_generated/models/list_tweets_timeline_data.py +4 -3
- twitter_openapi_python_generated/models/list_tweets_timeline_list.py +4 -3
- twitter_openapi_python_generated/models/location.py +4 -3
- twitter_openapi_python_generated/models/media.py +17 -4
- twitter_openapi_python_generated/models/media_community_result.py +4 -3
- twitter_openapi_python_generated/models/media_community_results.py +4 -3
- twitter_openapi_python_generated/models/media_community_tweet_data.py +4 -3
- twitter_openapi_python_generated/models/media_extended.py +17 -4
- twitter_openapi_python_generated/models/media_original_info.py +4 -3
- twitter_openapi_python_generated/models/media_original_info_focus_rect.py +4 -3
- twitter_openapi_python_generated/models/media_result.py +4 -3
- twitter_openapi_python_generated/models/media_results.py +4 -3
- twitter_openapi_python_generated/models/media_size.py +4 -3
- twitter_openapi_python_generated/models/media_sizes.py +4 -3
- twitter_openapi_python_generated/models/media_stats.py +4 -3
- twitter_openapi_python_generated/models/media_video_info.py +4 -3
- twitter_openapi_python_generated/models/media_video_info_variant.py +4 -3
- twitter_openapi_python_generated/models/media_visibility_results.py +4 -3
- twitter_openapi_python_generated/models/media_visibility_results_blurred_image_interstitial.py +4 -3
- twitter_openapi_python_generated/models/module_entry.py +4 -3
- twitter_openapi_python_generated/models/module_item.py +7 -3
- twitter_openapi_python_generated/models/note_tweet.py +6 -5
- twitter_openapi_python_generated/models/note_tweet_result.py +4 -3
- twitter_openapi_python_generated/models/note_tweet_result_data.py +7 -3
- twitter_openapi_python_generated/models/note_tweet_result_media.py +4 -3
- twitter_openapi_python_generated/models/note_tweet_result_media_inline_media.py +7 -3
- twitter_openapi_python_generated/models/note_tweet_result_rich_text.py +4 -3
- twitter_openapi_python_generated/models/note_tweet_result_rich_text_tag.py +4 -3
- twitter_openapi_python_generated/models/notification_template.py +4 -3
- twitter_openapi_python_generated/models/notifications_result.py +7 -3
- twitter_openapi_python_generated/models/notifications_timeline_data.py +4 -3
- twitter_openapi_python_generated/models/notifications_timeline_response.py +4 -3
- twitter_openapi_python_generated/models/notifications_user_results.py +4 -3
- twitter_openapi_python_generated/models/notifications_viewer_v2.py +4 -3
- twitter_openapi_python_generated/models/one_factor_login_eligibility.py +4 -3
- twitter_openapi_python_generated/models/other_object_all.py +4 -3
- twitter_openapi_python_generated/models/post_create_bookmark_request.py +5 -8
- twitter_openapi_python_generated/models/post_create_bookmark_request_variables.py +4 -3
- twitter_openapi_python_generated/models/post_create_retweet_request.py +6 -9
- twitter_openapi_python_generated/models/post_create_retweet_request_variables.py +4 -3
- twitter_openapi_python_generated/models/post_create_tweet_request.py +6 -9
- twitter_openapi_python_generated/models/post_create_tweet_request_features.py +30 -15
- twitter_openapi_python_generated/models/post_create_tweet_request_variables.py +4 -3
- twitter_openapi_python_generated/models/post_create_tweet_request_variables_conversation_control.py +4 -3
- twitter_openapi_python_generated/models/post_create_tweet_request_variables_media.py +4 -3
- twitter_openapi_python_generated/models/post_create_tweet_request_variables_media_media_entities_inner.py +4 -3
- twitter_openapi_python_generated/models/post_create_tweet_request_variables_reply.py +4 -3
- twitter_openapi_python_generated/models/post_cta.py +101 -0
- twitter_openapi_python_generated/models/post_cta_title_text.py +99 -0
- twitter_openapi_python_generated/models/post_cta_title_text_entity.py +97 -0
- twitter_openapi_python_generated/models/post_cta_title_text_entity_ref.py +96 -0
- twitter_openapi_python_generated/models/post_cta_user_results.py +93 -0
- twitter_openapi_python_generated/models/post_cta_user_results_avatar.py +89 -0
- twitter_openapi_python_generated/models/post_cta_user_results_result.py +96 -0
- twitter_openapi_python_generated/models/post_delete_bookmark_request.py +5 -8
- twitter_openapi_python_generated/models/post_delete_retweet_request.py +6 -9
- twitter_openapi_python_generated/models/post_delete_retweet_request_variables.py +4 -3
- twitter_openapi_python_generated/models/post_delete_tweet_request.py +5 -8
- twitter_openapi_python_generated/models/post_favorite_tweet_request.py +5 -8
- twitter_openapi_python_generated/models/post_unfavorite_tweet_request.py +5 -8
- twitter_openapi_python_generated/models/primary_community_topic.py +7 -3
- twitter_openapi_python_generated/models/profile_bio.py +89 -0
- twitter_openapi_python_generated/models/profile_response.py +4 -3
- twitter_openapi_python_generated/models/profile_response_data.py +4 -3
- twitter_openapi_python_generated/models/quoted_ref_result.py +4 -3
- twitter_openapi_python_generated/models/quoted_status_permalink.py +4 -3
- twitter_openapi_python_generated/models/ranked_community_result.py +4 -3
- twitter_openapi_python_generated/models/ranked_community_results.py +4 -3
- twitter_openapi_python_generated/models/ranked_community_tweet_data.py +4 -3
- twitter_openapi_python_generated/models/retweet.py +7 -3
- twitter_openapi_python_generated/models/retweet_legacy.py +4 -3
- twitter_openapi_python_generated/models/rich_message.py +4 -3
- twitter_openapi_python_generated/models/search_by_raw_query.py +4 -3
- twitter_openapi_python_generated/models/search_timeline.py +4 -3
- twitter_openapi_python_generated/models/search_timeline_data.py +4 -3
- twitter_openapi_python_generated/models/search_timeline_response.py +4 -3
- twitter_openapi_python_generated/models/self_thread.py +7 -3
- twitter_openapi_python_generated/models/sensitive_media_warning.py +4 -3
- twitter_openapi_python_generated/models/session.py +16 -3
- twitter_openapi_python_generated/models/smarttag.py +97 -0
- twitter_openapi_python_generated/models/smarttag_tag.py +89 -0
- twitter_openapi_python_generated/models/social_context_landing_url.py +4 -3
- twitter_openapi_python_generated/models/super_follow_user_profile.py +89 -0
- twitter_openapi_python_generated/models/super_follows_reply_user_result.py +4 -3
- twitter_openapi_python_generated/models/super_follows_reply_user_result_core.py +89 -0
- twitter_openapi_python_generated/models/super_follows_reply_user_result_data.py +12 -11
- twitter_openapi_python_generated/models/super_follows_reply_user_result_legacy.py +4 -3
- twitter_openapi_python_generated/models/text.py +4 -3
- twitter_openapi_python_generated/models/text_entity.py +4 -3
- twitter_openapi_python_generated/models/text_entity_ref.py +4 -3
- twitter_openapi_python_generated/models/text_highlight.py +4 -3
- twitter_openapi_python_generated/models/thumbnail_image.py +4 -3
- twitter_openapi_python_generated/models/timeline.py +4 -3
- twitter_openapi_python_generated/models/timeline_add_entries.py +4 -3
- twitter_openapi_python_generated/models/timeline_add_entry.py +10 -3
- twitter_openapi_python_generated/models/timeline_add_to_module.py +4 -3
- twitter_openapi_python_generated/models/timeline_clear_cache.py +4 -3
- twitter_openapi_python_generated/models/timeline_clear_entries_unread_state.py +4 -3
- twitter_openapi_python_generated/models/timeline_community.py +4 -3
- twitter_openapi_python_generated/models/timeline_cover_behavior.py +4 -3
- twitter_openapi_python_generated/models/timeline_cover_behavior_url.py +4 -3
- twitter_openapi_python_generated/models/timeline_general_context.py +4 -3
- twitter_openapi_python_generated/models/timeline_half_cover.py +4 -3
- twitter_openapi_python_generated/models/timeline_mark_entries_unread_greater_than_sort_index.py +7 -3
- twitter_openapi_python_generated/models/timeline_message_prompt.py +4 -3
- twitter_openapi_python_generated/models/timeline_notification.py +4 -3
- twitter_openapi_python_generated/models/timeline_pin_entry.py +4 -3
- twitter_openapi_python_generated/models/timeline_prompt.py +4 -3
- twitter_openapi_python_generated/models/timeline_replace_entry.py +4 -3
- twitter_openapi_python_generated/models/timeline_response.py +4 -3
- twitter_openapi_python_generated/models/timeline_result.py +4 -3
- twitter_openapi_python_generated/models/timeline_show_alert.py +11 -4
- twitter_openapi_python_generated/models/timeline_show_alert_rich_text.py +4 -3
- twitter_openapi_python_generated/models/timeline_show_cover.py +4 -3
- twitter_openapi_python_generated/models/timeline_terminate_timeline.py +4 -3
- twitter_openapi_python_generated/models/timeline_timeline_cursor.py +4 -3
- twitter_openapi_python_generated/models/timeline_timeline_item.py +4 -3
- twitter_openapi_python_generated/models/timeline_timeline_module.py +4 -3
- twitter_openapi_python_generated/models/timeline_tombstone.py +4 -3
- twitter_openapi_python_generated/models/timeline_topic_context.py +4 -3
- twitter_openapi_python_generated/models/timeline_trend.py +4 -3
- twitter_openapi_python_generated/models/timeline_tweet.py +4 -3
- twitter_openapi_python_generated/models/timeline_user.py +4 -3
- twitter_openapi_python_generated/models/timestamp.py +4 -3
- twitter_openapi_python_generated/models/tombstone_entity.py +4 -3
- twitter_openapi_python_generated/models/tombstone_info.py +4 -3
- twitter_openapi_python_generated/models/tombstone_ref.py +4 -3
- twitter_openapi_python_generated/models/tombstone_rich_text.py +4 -3
- twitter_openapi_python_generated/models/topic_context.py +4 -3
- twitter_openapi_python_generated/models/tracing.py +7 -3
- twitter_openapi_python_generated/models/trend_image.py +4 -3
- twitter_openapi_python_generated/models/trend_metadata.py +4 -3
- twitter_openapi_python_generated/models/trend_results.py +7 -3
- twitter_openapi_python_generated/models/tweet.py +39 -7
- twitter_openapi_python_generated/models/tweet_card.py +4 -3
- twitter_openapi_python_generated/models/tweet_card_legacy.py +4 -3
- twitter_openapi_python_generated/models/tweet_card_legacy_binding_value.py +4 -3
- twitter_openapi_python_generated/models/tweet_card_legacy_binding_value_data.py +4 -3
- twitter_openapi_python_generated/models/tweet_card_legacy_binding_value_data_image.py +4 -3
- twitter_openapi_python_generated/models/tweet_card_platform.py +4 -3
- twitter_openapi_python_generated/models/tweet_card_platform_audience.py +4 -3
- twitter_openapi_python_generated/models/tweet_card_platform_data.py +4 -3
- twitter_openapi_python_generated/models/tweet_card_platform_device.py +7 -3
- twitter_openapi_python_generated/models/tweet_detail_response.py +4 -3
- twitter_openapi_python_generated/models/tweet_detail_response_data.py +4 -3
- twitter_openapi_python_generated/models/tweet_edit_control.py +13 -3
- twitter_openapi_python_generated/models/tweet_edit_control_initial.py +10 -3
- twitter_openapi_python_generated/models/tweet_edit_prespective.py +4 -3
- twitter_openapi_python_generated/models/tweet_favoriters_response.py +4 -3
- twitter_openapi_python_generated/models/tweet_favoriters_response_data.py +4 -3
- twitter_openapi_python_generated/models/tweet_interstitial.py +6 -5
- twitter_openapi_python_generated/models/tweet_interstitial_reveal_text.py +4 -3
- twitter_openapi_python_generated/models/tweet_interstitial_text.py +4 -3
- twitter_openapi_python_generated/models/tweet_interstitial_text_entity.py +4 -3
- twitter_openapi_python_generated/models/tweet_interstitial_text_entity_ref.py +4 -3
- twitter_openapi_python_generated/models/tweet_legacy.py +26 -4
- twitter_openapi_python_generated/models/tweet_legacy_scopes.py +4 -3
- twitter_openapi_python_generated/models/tweet_limited_action_results.py +4 -3
- twitter_openapi_python_generated/models/tweet_post_cta.py +105 -0
- twitter_openapi_python_generated/models/tweet_preview_display.py +4 -3
- twitter_openapi_python_generated/models/tweet_preview_display_cta.py +4 -3
- twitter_openapi_python_generated/models/tweet_preview_display_cta_url.py +4 -3
- twitter_openapi_python_generated/models/tweet_preview_display_tweet.py +18 -5
- twitter_openapi_python_generated/models/tweet_preview_display_tweet_view_count.py +7 -3
- twitter_openapi_python_generated/models/tweet_previous_counts.py +4 -3
- twitter_openapi_python_generated/models/tweet_result_by_rest_id_data.py +4 -3
- twitter_openapi_python_generated/models/tweet_result_by_rest_id_response.py +4 -3
- twitter_openapi_python_generated/models/tweet_retweeters_response.py +4 -3
- twitter_openapi_python_generated/models/tweet_retweeters_response_data.py +4 -3
- twitter_openapi_python_generated/models/tweet_tombstone.py +4 -3
- twitter_openapi_python_generated/models/tweet_unavailable.py +4 -3
- twitter_openapi_python_generated/models/tweet_view.py +7 -3
- twitter_openapi_python_generated/models/tweet_with_visibility_results.py +4 -3
- twitter_openapi_python_generated/models/type_name.py +2 -0
- twitter_openapi_python_generated/models/unfavorite_tweet.py +4 -3
- twitter_openapi_python_generated/models/unfavorite_tweet_response.py +4 -3
- twitter_openapi_python_generated/models/unified_card.py +4 -3
- twitter_openapi_python_generated/models/url.py +4 -3
- twitter_openapi_python_generated/models/urt_endpoint_options.py +4 -3
- twitter_openapi_python_generated/models/urt_endpoint_request_params.py +4 -3
- twitter_openapi_python_generated/models/user.py +83 -7
- twitter_openapi_python_generated/models/user_avatar.py +89 -0
- twitter_openapi_python_generated/models/user_core.py +104 -0
- twitter_openapi_python_generated/models/user_dm_permissions.py +89 -0
- twitter_openapi_python_generated/models/user_features.py +4 -3
- twitter_openapi_python_generated/models/user_highlights_info.py +4 -3
- twitter_openapi_python_generated/models/user_highlights_tweets_data.py +4 -3
- twitter_openapi_python_generated/models/user_highlights_tweets_response.py +4 -3
- twitter_openapi_python_generated/models/user_highlights_tweets_result.py +4 -3
- twitter_openapi_python_generated/models/user_highlights_tweets_timeline.py +4 -3
- twitter_openapi_python_generated/models/user_highlights_tweets_user.py +4 -3
- twitter_openapi_python_generated/models/user_legacy.py +27 -12
- twitter_openapi_python_generated/models/user_legacy_extended_profile.py +4 -3
- twitter_openapi_python_generated/models/user_legacy_extended_profile_birthdate.py +4 -3
- twitter_openapi_python_generated/models/user_location.py +89 -0
- twitter_openapi_python_generated/models/user_media_permissions.py +89 -0
- twitter_openapi_python_generated/models/user_privacy.py +89 -0
- twitter_openapi_python_generated/models/user_professional.py +9 -5
- twitter_openapi_python_generated/models/user_professional_category.py +4 -3
- twitter_openapi_python_generated/models/user_profile.py +93 -0
- twitter_openapi_python_generated/models/user_relationship_perspectives.py +95 -0
- twitter_openapi_python_generated/models/user_response.py +4 -3
- twitter_openapi_python_generated/models/user_response_data.py +4 -3
- twitter_openapi_python_generated/models/user_result_by_screen_name.py +7 -3
- twitter_openapi_python_generated/models/user_result_by_screen_name_core.py +91 -0
- twitter_openapi_python_generated/models/user_result_by_screen_name_legacy.py +4 -3
- twitter_openapi_python_generated/models/user_result_by_screen_name_result.py +31 -6
- twitter_openapi_python_generated/models/user_result_core.py +4 -3
- twitter_openapi_python_generated/models/user_result_privacy.py +89 -0
- twitter_openapi_python_generated/models/user_result_relationship_perspectives.py +95 -0
- twitter_openapi_python_generated/models/user_results.py +4 -3
- twitter_openapi_python_generated/models/user_tip_jar_settings.py +4 -3
- twitter_openapi_python_generated/models/user_tweets_data.py +4 -3
- twitter_openapi_python_generated/models/user_tweets_response.py +4 -3
- twitter_openapi_python_generated/models/user_tweets_result_v1.py +4 -3
- twitter_openapi_python_generated/models/user_tweets_result_v2.py +4 -3
- twitter_openapi_python_generated/models/user_tweets_user.py +4 -3
- twitter_openapi_python_generated/models/user_unavailable.py +4 -3
- twitter_openapi_python_generated/models/user_value.py +7 -3
- twitter_openapi_python_generated/models/user_verification.py +101 -0
- twitter_openapi_python_generated/models/user_verification_info.py +4 -3
- twitter_openapi_python_generated/models/user_verification_info_reason.py +7 -3
- twitter_openapi_python_generated/models/user_verification_info_reason_description.py +4 -3
- twitter_openapi_python_generated/models/user_verification_info_reason_description_entities.py +4 -3
- twitter_openapi_python_generated/models/user_verification_info_reason_description_entities_ref.py +4 -3
- twitter_openapi_python_generated/models/users_response.py +4 -3
- twitter_openapi_python_generated/models/users_response_data.py +4 -3
- twitter_openapi_python_generated/rest.py +7 -2
- twitter_openapi_python_generated-0.0.34.dist-info/METADATA +816 -0
- twitter_openapi_python_generated-0.0.34.dist-info/RECORD +374 -0
- {twitter_openapi_python_generated-0.0.32.dist-info → twitter_openapi_python_generated-0.0.34.dist-info}/WHEEL +1 -1
- twitter_openapi_python_generated/models/community_data.py +0 -219
- twitter_openapi_python_generated-0.0.32.dist-info/METADATA +0 -29
- twitter_openapi_python_generated-0.0.32.dist-info/RECORD +0 -335
- {twitter_openapi_python_generated-0.0.32.dist-info → twitter_openapi_python_generated-0.0.34.dist-info}/licenses/LICENSE +0 -0
- {twitter_openapi_python_generated-0.0.32.dist-info → twitter_openapi_python_generated-0.0.34.dist-info}/licenses/LICENSE.AGPL +0 -0
- {twitter_openapi_python_generated-0.0.32.dist-info → twitter_openapi_python_generated-0.0.34.dist-info}/top_level.txt +0 -0
|
@@ -19,21 +19,23 @@ import re # noqa: F401
|
|
|
19
19
|
import json
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, StrictBool
|
|
22
|
-
from typing import Any, ClassVar, Dict, List
|
|
22
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
23
|
from twitter_openapi_python_generated.models.note_tweet_result import NoteTweetResult
|
|
24
24
|
from typing import Optional, Set
|
|
25
25
|
from typing_extensions import Self
|
|
26
|
+
from pydantic_core import to_jsonable_python
|
|
26
27
|
|
|
27
28
|
class NoteTweet(BaseModel):
|
|
28
29
|
"""
|
|
29
30
|
NoteTweet
|
|
30
31
|
""" # noqa: E501
|
|
31
|
-
is_expandable: StrictBool
|
|
32
|
+
is_expandable: Optional[StrictBool] = None
|
|
32
33
|
note_tweet_results: NoteTweetResult
|
|
33
34
|
__properties: ClassVar[List[str]] = ["is_expandable", "note_tweet_results"]
|
|
34
35
|
|
|
35
36
|
model_config = ConfigDict(
|
|
36
|
-
|
|
37
|
+
validate_by_name=True,
|
|
38
|
+
validate_by_alias=True,
|
|
37
39
|
validate_assignment=True,
|
|
38
40
|
protected_namespaces=(),
|
|
39
41
|
)
|
|
@@ -45,8 +47,7 @@ class NoteTweet(BaseModel):
|
|
|
45
47
|
|
|
46
48
|
def to_json(self) -> str:
|
|
47
49
|
"""Returns the JSON representation of the model using alias"""
|
|
48
|
-
|
|
49
|
-
return json.dumps(self.to_dict())
|
|
50
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
50
51
|
|
|
51
52
|
@classmethod
|
|
52
53
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -23,6 +23,7 @@ from typing import Any, ClassVar, Dict, List
|
|
|
23
23
|
from twitter_openapi_python_generated.models.note_tweet_result_data import NoteTweetResultData
|
|
24
24
|
from typing import Optional, Set
|
|
25
25
|
from typing_extensions import Self
|
|
26
|
+
from pydantic_core import to_jsonable_python
|
|
26
27
|
|
|
27
28
|
class NoteTweetResult(BaseModel):
|
|
28
29
|
"""
|
|
@@ -32,7 +33,8 @@ class NoteTweetResult(BaseModel):
|
|
|
32
33
|
__properties: ClassVar[List[str]] = ["result"]
|
|
33
34
|
|
|
34
35
|
model_config = ConfigDict(
|
|
35
|
-
|
|
36
|
+
validate_by_name=True,
|
|
37
|
+
validate_by_alias=True,
|
|
36
38
|
validate_assignment=True,
|
|
37
39
|
protected_namespaces=(),
|
|
38
40
|
)
|
|
@@ -44,8 +46,7 @@ class NoteTweetResult(BaseModel):
|
|
|
44
46
|
|
|
45
47
|
def to_json(self) -> str:
|
|
46
48
|
"""Returns the JSON representation of the model using alias"""
|
|
47
|
-
|
|
48
|
-
return json.dumps(self.to_dict())
|
|
49
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
49
50
|
|
|
50
51
|
@classmethod
|
|
51
52
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -26,6 +26,7 @@ from twitter_openapi_python_generated.models.note_tweet_result_media import Note
|
|
|
26
26
|
from twitter_openapi_python_generated.models.note_tweet_result_rich_text import NoteTweetResultRichText
|
|
27
27
|
from typing import Optional, Set
|
|
28
28
|
from typing_extensions import Self
|
|
29
|
+
from pydantic_core import to_jsonable_python
|
|
29
30
|
|
|
30
31
|
class NoteTweetResultData(BaseModel):
|
|
31
32
|
"""
|
|
@@ -41,12 +42,16 @@ class NoteTweetResultData(BaseModel):
|
|
|
41
42
|
@field_validator('id')
|
|
42
43
|
def id_validate_regular_expression(cls, value):
|
|
43
44
|
"""Validates the regular expression"""
|
|
45
|
+
if not isinstance(value, str):
|
|
46
|
+
value = str(value)
|
|
47
|
+
|
|
44
48
|
if not re.match(r"^([A-Za-z0-9+\/]{4})*([A-Za-z0-9+\/]{3}=|[A-Za-z0-9+\/]{2}==)?$", value):
|
|
45
49
|
raise ValueError(r"must validate the regular expression /^([A-Za-z0-9+\/]{4})*([A-Za-z0-9+\/]{3}=|[A-Za-z0-9+\/]{2}==)?$/")
|
|
46
50
|
return value
|
|
47
51
|
|
|
48
52
|
model_config = ConfigDict(
|
|
49
|
-
|
|
53
|
+
validate_by_name=True,
|
|
54
|
+
validate_by_alias=True,
|
|
50
55
|
validate_assignment=True,
|
|
51
56
|
protected_namespaces=(),
|
|
52
57
|
)
|
|
@@ -58,8 +63,7 @@ class NoteTweetResultData(BaseModel):
|
|
|
58
63
|
|
|
59
64
|
def to_json(self) -> str:
|
|
60
65
|
"""Returns the JSON representation of the model using alias"""
|
|
61
|
-
|
|
62
|
-
return json.dumps(self.to_dict())
|
|
66
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
63
67
|
|
|
64
68
|
@classmethod
|
|
65
69
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -23,6 +23,7 @@ from typing import Any, ClassVar, Dict, List
|
|
|
23
23
|
from twitter_openapi_python_generated.models.note_tweet_result_media_inline_media import NoteTweetResultMediaInlineMedia
|
|
24
24
|
from typing import Optional, Set
|
|
25
25
|
from typing_extensions import Self
|
|
26
|
+
from pydantic_core import to_jsonable_python
|
|
26
27
|
|
|
27
28
|
class NoteTweetResultMedia(BaseModel):
|
|
28
29
|
"""
|
|
@@ -32,7 +33,8 @@ class NoteTweetResultMedia(BaseModel):
|
|
|
32
33
|
__properties: ClassVar[List[str]] = ["inline_media"]
|
|
33
34
|
|
|
34
35
|
model_config = ConfigDict(
|
|
35
|
-
|
|
36
|
+
validate_by_name=True,
|
|
37
|
+
validate_by_alias=True,
|
|
36
38
|
validate_assignment=True,
|
|
37
39
|
protected_namespaces=(),
|
|
38
40
|
)
|
|
@@ -44,8 +46,7 @@ class NoteTweetResultMedia(BaseModel):
|
|
|
44
46
|
|
|
45
47
|
def to_json(self) -> str:
|
|
46
48
|
"""Returns the JSON representation of the model using alias"""
|
|
47
|
-
|
|
48
|
-
return json.dumps(self.to_dict())
|
|
49
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
49
50
|
|
|
50
51
|
@classmethod
|
|
51
52
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -23,6 +23,7 @@ from typing import Any, ClassVar, Dict, List
|
|
|
23
23
|
from typing_extensions import Annotated
|
|
24
24
|
from typing import Optional, Set
|
|
25
25
|
from typing_extensions import Self
|
|
26
|
+
from pydantic_core import to_jsonable_python
|
|
26
27
|
|
|
27
28
|
class NoteTweetResultMediaInlineMedia(BaseModel):
|
|
28
29
|
"""
|
|
@@ -35,12 +36,16 @@ class NoteTweetResultMediaInlineMedia(BaseModel):
|
|
|
35
36
|
@field_validator('media_id')
|
|
36
37
|
def media_id_validate_regular_expression(cls, value):
|
|
37
38
|
"""Validates the regular expression"""
|
|
39
|
+
if not isinstance(value, str):
|
|
40
|
+
value = str(value)
|
|
41
|
+
|
|
38
42
|
if not re.match(r"^[0-9]+$", value):
|
|
39
43
|
raise ValueError(r"must validate the regular expression /^[0-9]+$/")
|
|
40
44
|
return value
|
|
41
45
|
|
|
42
46
|
model_config = ConfigDict(
|
|
43
|
-
|
|
47
|
+
validate_by_name=True,
|
|
48
|
+
validate_by_alias=True,
|
|
44
49
|
validate_assignment=True,
|
|
45
50
|
protected_namespaces=(),
|
|
46
51
|
)
|
|
@@ -52,8 +57,7 @@ class NoteTweetResultMediaInlineMedia(BaseModel):
|
|
|
52
57
|
|
|
53
58
|
def to_json(self) -> str:
|
|
54
59
|
"""Returns the JSON representation of the model using alias"""
|
|
55
|
-
|
|
56
|
-
return json.dumps(self.to_dict())
|
|
60
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
57
61
|
|
|
58
62
|
@classmethod
|
|
59
63
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -23,6 +23,7 @@ from typing import Any, ClassVar, Dict, List
|
|
|
23
23
|
from twitter_openapi_python_generated.models.note_tweet_result_rich_text_tag import NoteTweetResultRichTextTag
|
|
24
24
|
from typing import Optional, Set
|
|
25
25
|
from typing_extensions import Self
|
|
26
|
+
from pydantic_core import to_jsonable_python
|
|
26
27
|
|
|
27
28
|
class NoteTweetResultRichText(BaseModel):
|
|
28
29
|
"""
|
|
@@ -32,7 +33,8 @@ class NoteTweetResultRichText(BaseModel):
|
|
|
32
33
|
__properties: ClassVar[List[str]] = ["richtext_tags"]
|
|
33
34
|
|
|
34
35
|
model_config = ConfigDict(
|
|
35
|
-
|
|
36
|
+
validate_by_name=True,
|
|
37
|
+
validate_by_alias=True,
|
|
36
38
|
validate_assignment=True,
|
|
37
39
|
protected_namespaces=(),
|
|
38
40
|
)
|
|
@@ -44,8 +46,7 @@ class NoteTweetResultRichText(BaseModel):
|
|
|
44
46
|
|
|
45
47
|
def to_json(self) -> str:
|
|
46
48
|
"""Returns the JSON representation of the model using alias"""
|
|
47
|
-
|
|
48
|
-
return json.dumps(self.to_dict())
|
|
49
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
49
50
|
|
|
50
51
|
@classmethod
|
|
51
52
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -22,6 +22,7 @@ from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr, field_validato
|
|
|
22
22
|
from typing import Any, ClassVar, Dict, List
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
|
+
from pydantic_core import to_jsonable_python
|
|
25
26
|
|
|
26
27
|
class NoteTweetResultRichTextTag(BaseModel):
|
|
27
28
|
"""
|
|
@@ -41,7 +42,8 @@ class NoteTweetResultRichTextTag(BaseModel):
|
|
|
41
42
|
return value
|
|
42
43
|
|
|
43
44
|
model_config = ConfigDict(
|
|
44
|
-
|
|
45
|
+
validate_by_name=True,
|
|
46
|
+
validate_by_alias=True,
|
|
45
47
|
validate_assignment=True,
|
|
46
48
|
protected_namespaces=(),
|
|
47
49
|
)
|
|
@@ -53,8 +55,7 @@ class NoteTweetResultRichTextTag(BaseModel):
|
|
|
53
55
|
|
|
54
56
|
def to_json(self) -> str:
|
|
55
57
|
"""Returns the JSON representation of the model using alias"""
|
|
56
|
-
|
|
57
|
-
return json.dumps(self.to_dict())
|
|
58
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
58
59
|
|
|
59
60
|
@classmethod
|
|
60
61
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -23,6 +23,7 @@ from typing import Any, ClassVar, Dict, List, Optional
|
|
|
23
23
|
from twitter_openapi_python_generated.models.type_name import TypeName
|
|
24
24
|
from typing import Optional, Set
|
|
25
25
|
from typing_extensions import Self
|
|
26
|
+
from pydantic_core import to_jsonable_python
|
|
26
27
|
|
|
27
28
|
class NotificationTemplate(BaseModel):
|
|
28
29
|
"""
|
|
@@ -34,7 +35,8 @@ class NotificationTemplate(BaseModel):
|
|
|
34
35
|
__properties: ClassVar[List[str]] = ["__typename", "from_users", "target_objects"]
|
|
35
36
|
|
|
36
37
|
model_config = ConfigDict(
|
|
37
|
-
|
|
38
|
+
validate_by_name=True,
|
|
39
|
+
validate_by_alias=True,
|
|
38
40
|
validate_assignment=True,
|
|
39
41
|
protected_namespaces=(),
|
|
40
42
|
)
|
|
@@ -46,8 +48,7 @@ class NotificationTemplate(BaseModel):
|
|
|
46
48
|
|
|
47
49
|
def to_json(self) -> str:
|
|
48
50
|
"""Returns the JSON representation of the model using alias"""
|
|
49
|
-
|
|
50
|
-
return json.dumps(self.to_dict())
|
|
51
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
51
52
|
|
|
52
53
|
@classmethod
|
|
53
54
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -25,6 +25,7 @@ from twitter_openapi_python_generated.models.timeline_result import TimelineResu
|
|
|
25
25
|
from twitter_openapi_python_generated.models.type_name import TypeName
|
|
26
26
|
from typing import Optional, Set
|
|
27
27
|
from typing_extensions import Self
|
|
28
|
+
from pydantic_core import to_jsonable_python
|
|
28
29
|
|
|
29
30
|
class NotificationsResult(BaseModel):
|
|
30
31
|
"""
|
|
@@ -38,12 +39,16 @@ class NotificationsResult(BaseModel):
|
|
|
38
39
|
@field_validator('rest_id')
|
|
39
40
|
def rest_id_validate_regular_expression(cls, value):
|
|
40
41
|
"""Validates the regular expression"""
|
|
42
|
+
if not isinstance(value, str):
|
|
43
|
+
value = str(value)
|
|
44
|
+
|
|
41
45
|
if not re.match(r"^[0-9]+$", value):
|
|
42
46
|
raise ValueError(r"must validate the regular expression /^[0-9]+$/")
|
|
43
47
|
return value
|
|
44
48
|
|
|
45
49
|
model_config = ConfigDict(
|
|
46
|
-
|
|
50
|
+
validate_by_name=True,
|
|
51
|
+
validate_by_alias=True,
|
|
47
52
|
validate_assignment=True,
|
|
48
53
|
protected_namespaces=(),
|
|
49
54
|
)
|
|
@@ -55,8 +60,7 @@ class NotificationsResult(BaseModel):
|
|
|
55
60
|
|
|
56
61
|
def to_json(self) -> str:
|
|
57
62
|
"""Returns the JSON representation of the model using alias"""
|
|
58
|
-
|
|
59
|
-
return json.dumps(self.to_dict())
|
|
63
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
60
64
|
|
|
61
65
|
@classmethod
|
|
62
66
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -23,6 +23,7 @@ from typing import Any, ClassVar, Dict, List
|
|
|
23
23
|
from twitter_openapi_python_generated.models.notifications_viewer_v2 import NotificationsViewerV2
|
|
24
24
|
from typing import Optional, Set
|
|
25
25
|
from typing_extensions import Self
|
|
26
|
+
from pydantic_core import to_jsonable_python
|
|
26
27
|
|
|
27
28
|
class NotificationsTimelineData(BaseModel):
|
|
28
29
|
"""
|
|
@@ -32,7 +33,8 @@ class NotificationsTimelineData(BaseModel):
|
|
|
32
33
|
__properties: ClassVar[List[str]] = ["viewer_v2"]
|
|
33
34
|
|
|
34
35
|
model_config = ConfigDict(
|
|
35
|
-
|
|
36
|
+
validate_by_name=True,
|
|
37
|
+
validate_by_alias=True,
|
|
36
38
|
validate_assignment=True,
|
|
37
39
|
protected_namespaces=(),
|
|
38
40
|
)
|
|
@@ -44,8 +46,7 @@ class NotificationsTimelineData(BaseModel):
|
|
|
44
46
|
|
|
45
47
|
def to_json(self) -> str:
|
|
46
48
|
"""Returns the JSON representation of the model using alias"""
|
|
47
|
-
|
|
48
|
-
return json.dumps(self.to_dict())
|
|
49
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
49
50
|
|
|
50
51
|
@classmethod
|
|
51
52
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -24,6 +24,7 @@ from twitter_openapi_python_generated.models.error_response import ErrorResponse
|
|
|
24
24
|
from twitter_openapi_python_generated.models.notifications_timeline_data import NotificationsTimelineData
|
|
25
25
|
from typing import Optional, Set
|
|
26
26
|
from typing_extensions import Self
|
|
27
|
+
from pydantic_core import to_jsonable_python
|
|
27
28
|
|
|
28
29
|
class NotificationsTimelineResponse(BaseModel):
|
|
29
30
|
"""
|
|
@@ -34,7 +35,8 @@ class NotificationsTimelineResponse(BaseModel):
|
|
|
34
35
|
__properties: ClassVar[List[str]] = ["data", "errors"]
|
|
35
36
|
|
|
36
37
|
model_config = ConfigDict(
|
|
37
|
-
|
|
38
|
+
validate_by_name=True,
|
|
39
|
+
validate_by_alias=True,
|
|
38
40
|
validate_assignment=True,
|
|
39
41
|
protected_namespaces=(),
|
|
40
42
|
)
|
|
@@ -46,8 +48,7 @@ class NotificationsTimelineResponse(BaseModel):
|
|
|
46
48
|
|
|
47
49
|
def to_json(self) -> str:
|
|
48
50
|
"""Returns the JSON representation of the model using alias"""
|
|
49
|
-
|
|
50
|
-
return json.dumps(self.to_dict())
|
|
51
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
51
52
|
|
|
52
53
|
@classmethod
|
|
53
54
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -23,6 +23,7 @@ from typing import Any, ClassVar, Dict, List
|
|
|
23
23
|
from twitter_openapi_python_generated.models.notifications_result import NotificationsResult
|
|
24
24
|
from typing import Optional, Set
|
|
25
25
|
from typing_extensions import Self
|
|
26
|
+
from pydantic_core import to_jsonable_python
|
|
26
27
|
|
|
27
28
|
class NotificationsUserResults(BaseModel):
|
|
28
29
|
"""
|
|
@@ -32,7 +33,8 @@ class NotificationsUserResults(BaseModel):
|
|
|
32
33
|
__properties: ClassVar[List[str]] = ["result"]
|
|
33
34
|
|
|
34
35
|
model_config = ConfigDict(
|
|
35
|
-
|
|
36
|
+
validate_by_name=True,
|
|
37
|
+
validate_by_alias=True,
|
|
36
38
|
validate_assignment=True,
|
|
37
39
|
protected_namespaces=(),
|
|
38
40
|
)
|
|
@@ -44,8 +46,7 @@ class NotificationsUserResults(BaseModel):
|
|
|
44
46
|
|
|
45
47
|
def to_json(self) -> str:
|
|
46
48
|
"""Returns the JSON representation of the model using alias"""
|
|
47
|
-
|
|
48
|
-
return json.dumps(self.to_dict())
|
|
49
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
49
50
|
|
|
50
51
|
@classmethod
|
|
51
52
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -23,6 +23,7 @@ from typing import Any, ClassVar, Dict, List
|
|
|
23
23
|
from twitter_openapi_python_generated.models.notifications_user_results import NotificationsUserResults
|
|
24
24
|
from typing import Optional, Set
|
|
25
25
|
from typing_extensions import Self
|
|
26
|
+
from pydantic_core import to_jsonable_python
|
|
26
27
|
|
|
27
28
|
class NotificationsViewerV2(BaseModel):
|
|
28
29
|
"""
|
|
@@ -32,7 +33,8 @@ class NotificationsViewerV2(BaseModel):
|
|
|
32
33
|
__properties: ClassVar[List[str]] = ["user_results"]
|
|
33
34
|
|
|
34
35
|
model_config = ConfigDict(
|
|
35
|
-
|
|
36
|
+
validate_by_name=True,
|
|
37
|
+
validate_by_alias=True,
|
|
36
38
|
validate_assignment=True,
|
|
37
39
|
protected_namespaces=(),
|
|
38
40
|
)
|
|
@@ -44,8 +46,7 @@ class NotificationsViewerV2(BaseModel):
|
|
|
44
46
|
|
|
45
47
|
def to_json(self) -> str:
|
|
46
48
|
"""Returns the JSON representation of the model using alias"""
|
|
47
|
-
|
|
48
|
-
return json.dumps(self.to_dict())
|
|
49
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
49
50
|
|
|
50
51
|
@classmethod
|
|
51
52
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -22,6 +22,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
|
22
22
|
from typing import Any, ClassVar, Dict, List
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
|
+
from pydantic_core import to_jsonable_python
|
|
25
26
|
|
|
26
27
|
class OneFactorLoginEligibility(BaseModel):
|
|
27
28
|
"""
|
|
@@ -31,7 +32,8 @@ class OneFactorLoginEligibility(BaseModel):
|
|
|
31
32
|
__properties: ClassVar[List[str]] = ["fetchStatus"]
|
|
32
33
|
|
|
33
34
|
model_config = ConfigDict(
|
|
34
|
-
|
|
35
|
+
validate_by_name=True,
|
|
36
|
+
validate_by_alias=True,
|
|
35
37
|
validate_assignment=True,
|
|
36
38
|
protected_namespaces=(),
|
|
37
39
|
)
|
|
@@ -43,8 +45,7 @@ class OneFactorLoginEligibility(BaseModel):
|
|
|
43
45
|
|
|
44
46
|
def to_json(self) -> str:
|
|
45
47
|
"""Returns the JSON representation of the model using alias"""
|
|
46
|
-
|
|
47
|
-
return json.dumps(self.to_dict())
|
|
48
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
48
49
|
|
|
49
50
|
@classmethod
|
|
50
51
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -23,6 +23,7 @@ from typing import Any, ClassVar, Dict, List, Optional
|
|
|
23
23
|
from twitter_openapi_python_generated.models.session import Session
|
|
24
24
|
from typing import Optional, Set
|
|
25
25
|
from typing_extensions import Self
|
|
26
|
+
from pydantic_core import to_jsonable_python
|
|
26
27
|
|
|
27
28
|
class OtherObjectAll(BaseModel):
|
|
28
29
|
"""
|
|
@@ -32,7 +33,8 @@ class OtherObjectAll(BaseModel):
|
|
|
32
33
|
__properties: ClassVar[List[str]] = ["Session"]
|
|
33
34
|
|
|
34
35
|
model_config = ConfigDict(
|
|
35
|
-
|
|
36
|
+
validate_by_name=True,
|
|
37
|
+
validate_by_alias=True,
|
|
36
38
|
validate_assignment=True,
|
|
37
39
|
protected_namespaces=(),
|
|
38
40
|
)
|
|
@@ -44,8 +46,7 @@ class OtherObjectAll(BaseModel):
|
|
|
44
46
|
|
|
45
47
|
def to_json(self) -> str:
|
|
46
48
|
"""Returns the JSON representation of the model using alias"""
|
|
47
|
-
|
|
48
|
-
return json.dumps(self.to_dict())
|
|
49
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
49
50
|
|
|
50
51
|
@classmethod
|
|
51
52
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -23,19 +23,19 @@ from typing import Any, ClassVar, Dict, List
|
|
|
23
23
|
from twitter_openapi_python_generated.models.post_create_bookmark_request_variables import PostCreateBookmarkRequestVariables
|
|
24
24
|
from typing import Optional, Set
|
|
25
25
|
from typing_extensions import Self
|
|
26
|
+
from pydantic_core import to_jsonable_python
|
|
26
27
|
|
|
27
28
|
class PostCreateBookmarkRequest(BaseModel):
|
|
28
29
|
"""
|
|
29
30
|
PostCreateBookmarkRequest
|
|
30
31
|
""" # noqa: E501
|
|
31
|
-
method: StrictStr = Field(alias="@method")
|
|
32
|
-
path: StrictStr = Field(alias="@path")
|
|
33
32
|
query_id: StrictStr = Field(alias="queryId")
|
|
34
33
|
variables: PostCreateBookmarkRequestVariables
|
|
35
|
-
__properties: ClassVar[List[str]] = ["
|
|
34
|
+
__properties: ClassVar[List[str]] = ["queryId", "variables"]
|
|
36
35
|
|
|
37
36
|
model_config = ConfigDict(
|
|
38
|
-
|
|
37
|
+
validate_by_name=True,
|
|
38
|
+
validate_by_alias=True,
|
|
39
39
|
validate_assignment=True,
|
|
40
40
|
protected_namespaces=(),
|
|
41
41
|
)
|
|
@@ -47,8 +47,7 @@ class PostCreateBookmarkRequest(BaseModel):
|
|
|
47
47
|
|
|
48
48
|
def to_json(self) -> str:
|
|
49
49
|
"""Returns the JSON representation of the model using alias"""
|
|
50
|
-
|
|
51
|
-
return json.dumps(self.to_dict())
|
|
50
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
52
51
|
|
|
53
52
|
@classmethod
|
|
54
53
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -88,8 +87,6 @@ class PostCreateBookmarkRequest(BaseModel):
|
|
|
88
87
|
return cls.model_validate(obj)
|
|
89
88
|
|
|
90
89
|
_obj = cls.model_validate({
|
|
91
|
-
"@method": obj.get("@method") if obj.get("@method") is not None else 'POST',
|
|
92
|
-
"@path": obj.get("@path") if obj.get("@path") is not None else '/i/api/graphql/aoDbu3RHznuiSkQ9aNM67Q/CreateBookmark',
|
|
93
90
|
"queryId": obj.get("queryId") if obj.get("queryId") is not None else 'aoDbu3RHznuiSkQ9aNM67Q',
|
|
94
91
|
"variables": PostCreateBookmarkRequestVariables.from_dict(obj["variables"]) if obj.get("variables") is not None else None
|
|
95
92
|
})
|
|
@@ -22,6 +22,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr
|
|
|
22
22
|
from typing import Any, ClassVar, Dict, List
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
|
+
from pydantic_core import to_jsonable_python
|
|
25
26
|
|
|
26
27
|
class PostCreateBookmarkRequestVariables(BaseModel):
|
|
27
28
|
"""
|
|
@@ -31,7 +32,8 @@ class PostCreateBookmarkRequestVariables(BaseModel):
|
|
|
31
32
|
__properties: ClassVar[List[str]] = ["tweet_id"]
|
|
32
33
|
|
|
33
34
|
model_config = ConfigDict(
|
|
34
|
-
|
|
35
|
+
validate_by_name=True,
|
|
36
|
+
validate_by_alias=True,
|
|
35
37
|
validate_assignment=True,
|
|
36
38
|
protected_namespaces=(),
|
|
37
39
|
)
|
|
@@ -43,8 +45,7 @@ class PostCreateBookmarkRequestVariables(BaseModel):
|
|
|
43
45
|
|
|
44
46
|
def to_json(self) -> str:
|
|
45
47
|
"""Returns the JSON representation of the model using alias"""
|
|
46
|
-
|
|
47
|
-
return json.dumps(self.to_dict())
|
|
48
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
48
49
|
|
|
49
50
|
@classmethod
|
|
50
51
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -23,19 +23,19 @@ from typing import Any, ClassVar, Dict, List
|
|
|
23
23
|
from twitter_openapi_python_generated.models.post_create_retweet_request_variables import PostCreateRetweetRequestVariables
|
|
24
24
|
from typing import Optional, Set
|
|
25
25
|
from typing_extensions import Self
|
|
26
|
+
from pydantic_core import to_jsonable_python
|
|
26
27
|
|
|
27
28
|
class PostCreateRetweetRequest(BaseModel):
|
|
28
29
|
"""
|
|
29
30
|
PostCreateRetweetRequest
|
|
30
31
|
""" # noqa: E501
|
|
31
|
-
method: StrictStr = Field(alias="@method")
|
|
32
|
-
path: StrictStr = Field(alias="@path")
|
|
33
32
|
query_id: StrictStr = Field(alias="queryId")
|
|
34
33
|
variables: PostCreateRetweetRequestVariables
|
|
35
|
-
__properties: ClassVar[List[str]] = ["
|
|
34
|
+
__properties: ClassVar[List[str]] = ["queryId", "variables"]
|
|
36
35
|
|
|
37
36
|
model_config = ConfigDict(
|
|
38
|
-
|
|
37
|
+
validate_by_name=True,
|
|
38
|
+
validate_by_alias=True,
|
|
39
39
|
validate_assignment=True,
|
|
40
40
|
protected_namespaces=(),
|
|
41
41
|
)
|
|
@@ -47,8 +47,7 @@ class PostCreateRetweetRequest(BaseModel):
|
|
|
47
47
|
|
|
48
48
|
def to_json(self) -> str:
|
|
49
49
|
"""Returns the JSON representation of the model using alias"""
|
|
50
|
-
|
|
51
|
-
return json.dumps(self.to_dict())
|
|
50
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
52
51
|
|
|
53
52
|
@classmethod
|
|
54
53
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -88,9 +87,7 @@ class PostCreateRetweetRequest(BaseModel):
|
|
|
88
87
|
return cls.model_validate(obj)
|
|
89
88
|
|
|
90
89
|
_obj = cls.model_validate({
|
|
91
|
-
"
|
|
92
|
-
"@path": obj.get("@path") if obj.get("@path") is not None else '/i/api/graphql/ojPdsZsimiJrUGLR1sjUtA/CreateRetweet',
|
|
93
|
-
"queryId": obj.get("queryId") if obj.get("queryId") is not None else 'ojPdsZsimiJrUGLR1sjUtA',
|
|
90
|
+
"queryId": obj.get("queryId") if obj.get("queryId") is not None else 'mbRO74GrOvSfRcJnlMapnQ',
|
|
94
91
|
"variables": PostCreateRetweetRequestVariables.from_dict(obj["variables"]) if obj.get("variables") is not None else None
|
|
95
92
|
})
|
|
96
93
|
return _obj
|
|
@@ -22,6 +22,7 @@ from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
|
|
|
22
22
|
from typing import Any, ClassVar, Dict, List
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
|
+
from pydantic_core import to_jsonable_python
|
|
25
26
|
|
|
26
27
|
class PostCreateRetweetRequestVariables(BaseModel):
|
|
27
28
|
"""
|
|
@@ -32,7 +33,8 @@ class PostCreateRetweetRequestVariables(BaseModel):
|
|
|
32
33
|
__properties: ClassVar[List[str]] = ["dark_request", "tweet_id"]
|
|
33
34
|
|
|
34
35
|
model_config = ConfigDict(
|
|
35
|
-
|
|
36
|
+
validate_by_name=True,
|
|
37
|
+
validate_by_alias=True,
|
|
36
38
|
validate_assignment=True,
|
|
37
39
|
protected_namespaces=(),
|
|
38
40
|
)
|
|
@@ -44,8 +46,7 @@ class PostCreateRetweetRequestVariables(BaseModel):
|
|
|
44
46
|
|
|
45
47
|
def to_json(self) -> str:
|
|
46
48
|
"""Returns the JSON representation of the model using alias"""
|
|
47
|
-
|
|
48
|
-
return json.dumps(self.to_dict())
|
|
49
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
49
50
|
|
|
50
51
|
@classmethod
|
|
51
52
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -24,20 +24,20 @@ from twitter_openapi_python_generated.models.post_create_tweet_request_features
|
|
|
24
24
|
from twitter_openapi_python_generated.models.post_create_tweet_request_variables import PostCreateTweetRequestVariables
|
|
25
25
|
from typing import Optional, Set
|
|
26
26
|
from typing_extensions import Self
|
|
27
|
+
from pydantic_core import to_jsonable_python
|
|
27
28
|
|
|
28
29
|
class PostCreateTweetRequest(BaseModel):
|
|
29
30
|
"""
|
|
30
31
|
PostCreateTweetRequest
|
|
31
32
|
""" # noqa: E501
|
|
32
|
-
method: StrictStr = Field(alias="@method")
|
|
33
|
-
path: StrictStr = Field(alias="@path")
|
|
34
33
|
features: PostCreateTweetRequestFeatures
|
|
35
34
|
query_id: StrictStr = Field(alias="queryId")
|
|
36
35
|
variables: PostCreateTweetRequestVariables
|
|
37
|
-
__properties: ClassVar[List[str]] = ["
|
|
36
|
+
__properties: ClassVar[List[str]] = ["features", "queryId", "variables"]
|
|
38
37
|
|
|
39
38
|
model_config = ConfigDict(
|
|
40
|
-
|
|
39
|
+
validate_by_name=True,
|
|
40
|
+
validate_by_alias=True,
|
|
41
41
|
validate_assignment=True,
|
|
42
42
|
protected_namespaces=(),
|
|
43
43
|
)
|
|
@@ -49,8 +49,7 @@ class PostCreateTweetRequest(BaseModel):
|
|
|
49
49
|
|
|
50
50
|
def to_json(self) -> str:
|
|
51
51
|
"""Returns the JSON representation of the model using alias"""
|
|
52
|
-
|
|
53
|
-
return json.dumps(self.to_dict())
|
|
52
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
54
53
|
|
|
55
54
|
@classmethod
|
|
56
55
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -93,10 +92,8 @@ class PostCreateTweetRequest(BaseModel):
|
|
|
93
92
|
return cls.model_validate(obj)
|
|
94
93
|
|
|
95
94
|
_obj = cls.model_validate({
|
|
96
|
-
"@method": obj.get("@method") if obj.get("@method") is not None else 'POST',
|
|
97
|
-
"@path": obj.get("@path") if obj.get("@path") is not None else '/i/api/graphql/IID9x6WsdMnTlXnzXGq8ng/CreateTweet',
|
|
98
95
|
"features": PostCreateTweetRequestFeatures.from_dict(obj["features"]) if obj.get("features") is not None else None,
|
|
99
|
-
"queryId": obj.get("queryId") if obj.get("queryId") is not None else '
|
|
96
|
+
"queryId": obj.get("queryId") if obj.get("queryId") is not None else '5CdvsV_zjv4L64XFifAglw',
|
|
100
97
|
"variables": PostCreateTweetRequestVariables.from_dict(obj["variables"]) if obj.get("variables") is not None else None
|
|
101
98
|
})
|
|
102
99
|
return _obj
|