diff --git a/twitter_openapi_python/pyproject.toml b/twitter_openapi_python/pyproject.toml
index 7a5cf94..f295e4b 100644
--- a/twitter_openapi_python/pyproject.toml
+++ b/twitter_openapi_python/pyproject.toml
@@ -1,6 +1,6 @@
[project]
name = "twitter_openapi_python"
-version = "0.1.1"
+version = "0.1.2"
description = "Twitter OpenAPI"
authors = [{ name = "fa0311", email = "yuki@yuki0311.com" }]
readme = "README.md"
@@ -9,7 +9,7 @@ license-files = ["LICENSE", "LICENSE.AGPL"]
keywords = ["twitter", "api", "python", "scraper"]
requires-python = ">=3.10"
dependencies = [
- "twitter_openapi_python_generated==0.1.1",
+ "twitter_openapi_python_generated==0.1.2",
"pydantic>=2.6",
"requests>=2.31.0,<3.0.0",
"urllib3>=2.1.0,<3.0.0",
diff --git a/twitter_openapi_python/test/api/test_1_birdwatch_api.py b/twitter_openapi_python/test/api/test_1_birdwatch_api.py
new file mode 100644
index 0000000..147a93f
--- /dev/null
+++ b/twitter_openapi_python/test/api/test_1_birdwatch_api.py
@@ -0,0 +1,37 @@
+import logging
+import unittest
+
+import twitter_openapi_python as api
+from test.api import get_client, print_tweet
+
+
+class TestBirdwatchApi(unittest.TestCase):
+ client: api.BirdwatchApiUtils
+
+ def setUp(self):
+ self.client = get_client().get_birdwatch_api()
+
+ def test_get_birdwatch_fetch_alias_self_select_status(self):
+ result = self.client.get_birdwatch_fetch_alias_self_select_status()
+ logging.info(f"can_select: {result.data.can_select} has_selected: {result.data.has_selected}")
+
+ def test_get_birdwatch_fetch_authenticated_user_profile(self):
+ result = self.client.get_birdwatch_fetch_authenticated_user_profile()
+ logging.info(result.data.alias)
+
+ def test_get_birdwatch_fetch_birdwatch_profile(self):
+ result = self.client.get_birdwatch_fetch_birdwatch_profile(alias="me")
+ logging.info(result.data.alias)
+
+ def test_get_birdwatch_fetch_global_timeline(self):
+ result = self.client.get_birdwatch_fetch_global_timeline()
+ for tweet in result.data.data:
+ print_tweet(tweet)
+
+ def test_get_birdwatch_fetch_public_data(self):
+ result = self.client.get_birdwatch_fetch_public_data()
+ logging.info(f"notes files: {len(result.data.notes.urls)}")
+
+
+if __name__ == "__main__":
+ unittest.main()
diff --git a/twitter_openapi_python/test/api/test_1_community_api.py b/twitter_openapi_python/test/api/test_1_community_api.py
new file mode 100644
index 0000000..4d206e4
--- /dev/null
+++ b/twitter_openapi_python/test/api/test_1_community_api.py
@@ -0,0 +1,44 @@
+import logging
+import unittest
+
+import twitter_openapi_python as api
+from test.api import get_client, print_tweet
+
+
+class TestCommunityApi(unittest.TestCase):
+ client: api.CommunityApiUtils
+
+ def setUp(self):
+ self.client = get_client().get_community_api()
+
+ def test_get_communities_fetch_one_query(self):
+ result = self.client.get_communities_fetch_one_query(community_id="1738874426798870555")
+ logging.info(f"{result.data.name}: {result.data.member_count} members")
+
+ def test_get_community_query(self):
+ result = self.client.get_community_query(community_id="1493446837214187523")
+ logging.info(f"{result.data.name}: {result.data.member_count} members")
+
+ def test_get_communities_search_query(self):
+ result = self.client.get_communities_search_query(query="test")
+ for item in result.data.items_results:
+ logging.info(item.result.name)
+
+ def test_get_topic_carousel_query(self):
+ result = self.client.get_topic_carousel_query()
+ for topic in result.data:
+ logging.info(topic.topic_name)
+
+ def test_get_global_communities_post_search_timeline(self):
+ result = self.client.get_global_communities_post_search_timeline(raw_query="test")
+ for tweet in result.data.data:
+ print_tweet(tweet)
+
+ def test_get_global_communities_latest_post_search_timeline(self):
+ result = self.client.get_global_communities_latest_post_search_timeline(raw_query="test")
+ for tweet in result.data.data:
+ print_tweet(tweet)
+
+
+if __name__ == "__main__":
+ unittest.main()
diff --git a/twitter_openapi_python/test/api/test_1_default_api.py b/twitter_openapi_python/test/api/test_1_default_api.py
index cd87b06..0c79953 100644
--- a/twitter_openapi_python/test/api/test_1_default_api.py
+++ b/twitter_openapi_python/test/api/test_1_default_api.py
@@ -27,6 +27,26 @@ def test_get_tweet_result_by_rest_id(self):
assert result.data.tweet.legacy is not None
logging.info(result.data.tweet.legacy.full_text)
+ def test_get_authenticate_periscope(self):
+ result = self.client.get_authenticate_periscope()
+ logging.info(f"token length: {len(result.data)}")
+
+ def test_get_creator_studio_tab_bar_item_query(self):
+ result = self.client.get_creator_studio_tab_bar_item_query()
+ logging.info(f"tasks: {len(result.data.xpayments_audience_rewards_tasks)}")
+
+ def test_get_data_saver_mode(self):
+ result = self.client.get_data_saver_mode()
+ logging.info(result.data.viewer)
+
+ def test_get_grok_home(self):
+ result = self.client.get_grok_home()
+ logging.info(f"grok {result.data.grok_version}: {[m.name for m in result.data.grok_model_options]}")
+
+ def test_get_pinned_timelines(self):
+ result = self.client.get_pinned_timelines()
+ logging.info(f"pinned: {len(result.data.pinned_timelines)}")
+
if __name__ == "__main__":
unittest.main()
diff --git a/twitter_openapi_python/test/api/test_1_tweet_api.py b/twitter_openapi_python/test/api/test_1_tweet_api.py
index 3bf9724..510c62d 100644
--- a/twitter_openapi_python/test/api/test_1_tweet_api.py
+++ b/twitter_openapi_python/test/api/test_1_tweet_api.py
@@ -131,6 +131,16 @@ def test_get_connect_tab_timeline(self):
for user in result.data.data:
print_user(user)
+ def test_get_bookmark_search_timeline(self):
+ result = self.client.get_bookmark_search_timeline(raw_query="test")
+ for tweet in list(filter(self.ad_fillter, result.data.data)):
+ print_tweet(tweet)
+
+ def test_get_explore_sidebar(self):
+ result = self.client.get_explore_sidebar()
+ for trend in result.data.data:
+ logging.info(trend.name)
+
if __name__ == "__main__":
unittest.main()
diff --git a/twitter_openapi_python/test/api/test_1_user_list_api.py b/twitter_openapi_python/test/api/test_1_user_list_api.py
index 85b3ecf..f6d5508 100644
--- a/twitter_openapi_python/test/api/test_1_user_list_api.py
+++ b/twitter_openapi_python/test/api/test_1_user_list_api.py
@@ -70,6 +70,21 @@ def test_get_list_by_rest_id(self):
result = self.client.get_list_by_rest_id(list_id="1141162794290520064")
logging.info(f"{result.data.name}: {result.data.member_count} members")
+ def test_get_list_search_timeline(self):
+ result = self.client.get_list_search_timeline(raw_query="test")
+ for twitter_list in result.data.data:
+ logging.info(twitter_list.name)
+
+ def test_get_combined_lists(self):
+ result = self.client.get_combined_lists(user_id="44196397")
+ for twitter_list in result.data.data:
+ logging.info(twitter_list.name)
+
+ def test_get_lists_management_page_timeline(self):
+ result = self.client.get_lists_management_page_timeline()
+ for twitter_list in result.data.data:
+ logging.info(twitter_list.name)
+
if __name__ == "__main__":
unittest.main()
diff --git a/twitter_openapi_python/test/api/test_1_users_api.py b/twitter_openapi_python/test/api/test_1_users_api.py
index c9dbc2f..21e6d2d 100644
--- a/twitter_openapi_python/test/api/test_1_users_api.py
+++ b/twitter_openapi_python/test/api/test_1_users_api.py
@@ -1,3 +1,4 @@
+import logging
import unittest
from test.api import get_client, print_legacy_user
@@ -16,6 +17,11 @@ def test_get_users_by_rest_ids(self):
for user in result.data:
print_legacy_user(user.user.legacy)
+ def test_get_users_verified_avatars(self):
+ result = self.client.get_users_verified_avatars(user_ids=["44196397"])
+ for user in result.data:
+ logging.info(f"{user.rest_id}: blue={user.is_blue_verified} shape={user.profile_image_shape}")
+
if __name__ == "__main__":
unittest.main()
diff --git a/twitter_openapi_python/twitter_openapi_python/api/__init__.py b/twitter_openapi_python/twitter_openapi_python/api/__init__.py
index 06c2333..e873fd6 100644
--- a/twitter_openapi_python/twitter_openapi_python/api/__init__.py
+++ b/twitter_openapi_python/twitter_openapi_python/api/__init__.py
@@ -2,6 +2,8 @@
# flake8: noqa
+from twitter_openapi_python.api.birdwatch_api import BirdwatchApiUtils
+from twitter_openapi_python.api.community_api import CommunityApiUtils
from twitter_openapi_python.api.default_api import DefaultApiUtils
from twitter_openapi_python.api.initial_state_api import InitialStateApiUtils
from twitter_openapi_python.api.post_api import PostApiUtils
diff --git a/twitter_openapi_python/twitter_openapi_python/api/birdwatch_api.py b/twitter_openapi_python/twitter_openapi_python/api/birdwatch_api.py
new file mode 100644
index 0000000..fe97c37
--- /dev/null
+++ b/twitter_openapi_python/twitter_openapi_python/api/birdwatch_api.py
@@ -0,0 +1,116 @@
+from typing import Any, Optional
+
+import twitter_openapi_python_generated as twitter
+import twitter_openapi_python_generated.models as models
+from x_client_transaction import ClientTransaction
+
+from twitter_openapi_python.models import (
+ TimelineApiUtilsResponse,
+ TweetApiUtilsData,
+ TwitterApiUtilsResponse,
+)
+from twitter_openapi_python.utils import (
+ data_request,
+ error_check,
+ timeline_request,
+ tweet_entries_converter,
+)
+
+ResponseType = TwitterApiUtilsResponse[TimelineApiUtilsResponse[TweetApiUtilsData]]
+ParamType = dict[str, Any]
+
+
+class BirdwatchApiUtils:
+ """Community Notes."""
+
+ api: twitter.BirdwatchApi
+ flag: ParamType
+
+ def __init__(self, api: twitter.BirdwatchApi, flag: ParamType, ct: ClientTransaction):
+ self.api = api
+ self.flag = flag
+ self.ct = ct
+
+ def get_birdwatch_fetch_alias_self_select_status(
+ self,
+ extra_param: Optional[ParamType] = None,
+ ) -> TwitterApiUtilsResponse[models.BirdwatchAliasSelfSelectStatus]:
+ param: ParamType = {}
+ if extra_param is not None:
+ param.update(extra_param)
+ return data_request(
+ self.api.get_birdwatch_fetch_alias_self_select_status_with_http_info,
+ self.flag["BirdwatchFetchAliasSelfSelectStatus"],
+ self.ct,
+ lambda e: error_check(e.data, e.errors).authenticated_user_birdwatch_alias_self_select_status,
+ param,
+ )
+
+ def get_birdwatch_fetch_authenticated_user_profile(
+ self,
+ extra_param: Optional[ParamType] = None,
+ ) -> TwitterApiUtilsResponse[models.BirdwatchProfile]:
+ param: ParamType = {}
+ if extra_param is not None:
+ param.update(extra_param)
+ return data_request(
+ self.api.get_birdwatch_fetch_authenticated_user_profile_with_http_info,
+ self.flag["BirdwatchFetchAuthenticatedUserProfile"],
+ self.ct,
+ lambda e: error_check(e.data, e.errors).authenticated_user_birdwatch_profile,
+ param,
+ )
+
+ def get_birdwatch_fetch_birdwatch_profile(
+ self,
+ alias: str,
+ extra_param: Optional[ParamType] = None,
+ ) -> TwitterApiUtilsResponse[models.BirdwatchProfile]:
+ param: ParamType = {"alias": alias}
+ if extra_param is not None:
+ param.update(extra_param)
+ return data_request(
+ self.api.get_birdwatch_fetch_birdwatch_profile_with_http_info,
+ self.flag["BirdwatchFetchBirdwatchProfile"],
+ self.ct,
+ lambda e: error_check(e.data, e.errors).birdwatch_profile_by_alias,
+ param,
+ )
+
+ def get_birdwatch_fetch_global_timeline(
+ self,
+ cursor: Optional[str] = None,
+ extra_param: Optional[ParamType] = None,
+ ) -> ResponseType:
+ """Posts with notes on the Community Notes home page (first tab)."""
+ param: ParamType = {}
+ if cursor is not None:
+ param["cursor"] = cursor
+ if extra_param is not None:
+ param.update(extra_param)
+ return timeline_request(
+ self.api.get_birdwatch_fetch_global_timeline_with_http_info,
+ self.flag["BirdwatchFetchGlobalTimeline"],
+ self.ct,
+ lambda e: error_check(
+ e.data.viewer.birdwatch_home_page.body.initial_timeline.timeline.timeline, e.errors
+ ).instructions,
+ param,
+ tweet_entries_converter,
+ )
+
+ def get_birdwatch_fetch_public_data(
+ self,
+ extra_param: Optional[ParamType] = None,
+ ) -> TwitterApiUtilsResponse[models.BirdwatchPublicDataFileBundle]:
+ """Download urls of the latest public data files."""
+ param: ParamType = {}
+ if extra_param is not None:
+ param.update(extra_param)
+ return data_request(
+ self.api.get_birdwatch_fetch_public_data_with_http_info,
+ self.flag["BirdwatchFetchPublicData"],
+ self.ct,
+ lambda e: error_check(e.data, e.errors).birdwatch_latest_public_data_file_bundle,
+ param,
+ )
diff --git a/twitter_openapi_python/twitter_openapi_python/api/community_api.py b/twitter_openapi_python/twitter_openapi_python/api/community_api.py
new file mode 100644
index 0000000..0f4313b
--- /dev/null
+++ b/twitter_openapi_python/twitter_openapi_python/api/community_api.py
@@ -0,0 +1,149 @@
+from typing import Any, List, Optional
+
+import twitter_openapi_python_generated as twitter
+import twitter_openapi_python_generated.models as models
+from x_client_transaction import ClientTransaction
+
+from twitter_openapi_python.models import (
+ TimelineApiUtilsResponse,
+ TweetApiUtilsData,
+ TwitterApiUtilsResponse,
+)
+from twitter_openapi_python.utils import (
+ data_request,
+ error_check,
+ timeline_request,
+ tweet_entries_converter,
+)
+
+ResponseType = TwitterApiUtilsResponse[TimelineApiUtilsResponse[TweetApiUtilsData]]
+ParamType = dict[str, Any]
+
+
+class CommunityApiUtils:
+ api: twitter.CommunityApi
+ flag: ParamType
+
+ def __init__(self, api: twitter.CommunityApi, flag: ParamType, ct: ClientTransaction):
+ self.api = api
+ self.flag = flag
+ self.ct = ct
+
+ def get_communities_fetch_one_query(
+ self,
+ community_id: str,
+ extra_param: Optional[ParamType] = None,
+ ) -> TwitterApiUtilsResponse[models.CommunityPageCommunity]:
+ """The community page (full members and moderators)."""
+ param: ParamType = {"communityId": community_id}
+ if extra_param is not None:
+ param.update(extra_param)
+ return data_request(
+ self.api.get_communities_fetch_one_query_with_http_info,
+ self.flag["CommunitiesFetchOneQuery"],
+ self.ct,
+ lambda e: error_check(e.data, e.errors).community_results.result,
+ param,
+ )
+
+ def get_community_query(
+ self,
+ community_id: str,
+ extra_param: Optional[ParamType] = None,
+ ) -> TwitterApiUtilsResponse[models.CommunitySettingsCommunity]:
+ """The community settings / moderation pages (partial users, trending hashtags)."""
+ param: ParamType = {"communityId": community_id}
+ if extra_param is not None:
+ param.update(extra_param)
+ return data_request(
+ self.api.get_community_query_with_http_info,
+ self.flag["CommunityQuery"],
+ self.ct,
+ lambda e: error_check(e.data, e.errors).community_results.result,
+ param,
+ )
+
+ def get_communities_search_query(
+ self,
+ query: str,
+ cursor: Optional[str] = None,
+ extra_param: Optional[ParamType] = None,
+ ) -> TwitterApiUtilsResponse[models.CommunitiesSearchSlice]:
+ """Community cards for a query; the next page is slice_info.next_cursor."""
+ param: ParamType = {"query": query}
+ if cursor is not None:
+ param["cursor"] = cursor
+ if extra_param is not None:
+ param.update(extra_param)
+ return data_request(
+ self.api.get_communities_search_query_with_http_info,
+ self.flag["CommunitiesSearchQuery"],
+ self.ct,
+ lambda e: error_check(e.data, e.errors).communities_search_slice,
+ param,
+ )
+
+ def get_topic_carousel_query(
+ self,
+ extra_param: Optional[ParamType] = None,
+ ) -> TwitterApiUtilsResponse[List[models.CommunityTopic]]:
+ param: ParamType = {}
+ if extra_param is not None:
+ param.update(extra_param)
+ return data_request(
+ self.api.get_topic_carousel_query_with_http_info,
+ self.flag["TopicCarouselQuery"],
+ self.ct,
+ lambda e: error_check(e.data, e.errors).community_topic_results.community_topics,
+ param,
+ )
+
+ def get_global_communities_post_search_timeline(
+ self,
+ raw_query: str,
+ cursor: Optional[str] = None,
+ count: Optional[int] = None,
+ extra_param: Optional[ParamType] = None,
+ ) -> ResponseType:
+ """Posts across communities (Top)."""
+ param: ParamType = {"rawQuery": raw_query}
+ if cursor is not None:
+ param["cursor"] = cursor
+ if count is not None:
+ param["count"] = count
+ if extra_param is not None:
+ param.update(extra_param)
+ return timeline_request(
+ self.api.get_global_communities_post_search_timeline_with_http_info,
+ self.flag["GlobalCommunitiesPostSearchTimeline"],
+ self.ct,
+ lambda e: error_check(e.data.search_by_raw_query.communities_posts_search_page.timeline, e.errors).instructions,
+ param,
+ tweet_entries_converter,
+ )
+
+ def get_global_communities_latest_post_search_timeline(
+ self,
+ raw_query: str,
+ cursor: Optional[str] = None,
+ count: Optional[int] = None,
+ extra_param: Optional[ParamType] = None,
+ ) -> ResponseType:
+ """Posts across communities (Latest)."""
+ param: ParamType = {"rawQuery": raw_query}
+ if cursor is not None:
+ param["cursor"] = cursor
+ if count is not None:
+ param["count"] = count
+ if extra_param is not None:
+ param.update(extra_param)
+ return timeline_request(
+ self.api.get_global_communities_latest_post_search_timeline_with_http_info,
+ self.flag["GlobalCommunitiesLatestPostSearchTimeline"],
+ self.ct,
+ lambda e: error_check(
+ e.data.search_by_raw_query.communities_latest_posts_search_page.timeline, e.errors
+ ).instructions,
+ param,
+ tweet_entries_converter,
+ )
diff --git a/twitter_openapi_python/twitter_openapi_python/api/default_api.py b/twitter_openapi_python/twitter_openapi_python/api/default_api.py
index 3ff5573..0a3238e 100644
--- a/twitter_openapi_python/twitter_openapi_python/api/default_api.py
+++ b/twitter_openapi_python/twitter_openapi_python/api/default_api.py
@@ -78,3 +78,78 @@ def get_tweet_result_by_rest_id(
if response.data is None:
raise Exception("No tweet")
return response # type: ignore
+
+ def get_authenticate_periscope(
+ self,
+ extra_param: Optional[ParamType] = None,
+ ) -> TwitterApiUtilsResponse[str]:
+ """A Periscope (live video) token for the account."""
+ param: ParamType = {}
+ if extra_param is not None:
+ param.update(extra_param)
+ return self.request(
+ apiFn=self.api.get_authenticate_periscope_with_http_info,
+ convertFn=lambda x: error_check(x.data, x.errors).authenticate_periscope,
+ key="AuthenticatePeriscope",
+ param=param,
+ )
+
+ def get_creator_studio_tab_bar_item_query(
+ self,
+ extra_param: Optional[ParamType] = None,
+ ) -> TwitterApiUtilsResponse[models.CreatorStudioTabBarItemQueryResponseData]:
+ param: ParamType = {}
+ if extra_param is not None:
+ param.update(extra_param)
+ return self.request(
+ apiFn=self.api.get_creator_studio_tab_bar_item_query_with_http_info,
+ convertFn=lambda x: error_check(x.data, x.errors),
+ key="CreatorStudioTabBarItemQuery",
+ param=param,
+ )
+
+ def get_data_saver_mode(
+ self,
+ device_id: Optional[str] = None,
+ extra_param: Optional[ParamType] = None,
+ ) -> TwitterApiUtilsResponse[models.DataSaverModeResponseData]:
+ param: ParamType = {}
+ if device_id is not None:
+ param["device_id"] = device_id
+ if extra_param is not None:
+ param.update(extra_param)
+ return self.request(
+ apiFn=self.api.get_data_saver_mode_with_http_info,
+ convertFn=lambda x: error_check(x.data, x.errors),
+ key="DataSaverMode",
+ param=param,
+ )
+
+ def get_grok_home(
+ self,
+ extra_param: Optional[ParamType] = None,
+ ) -> TwitterApiUtilsResponse[models.GrokHome]:
+ """Grok model options, prompts and eligibility."""
+ param: ParamType = {}
+ if extra_param is not None:
+ param.update(extra_param)
+ return self.request(
+ apiFn=self.api.get_grok_home_with_http_info,
+ convertFn=lambda x: error_check(x.data, x.errors).grok_home,
+ key="GrokHome",
+ param=param,
+ )
+
+ def get_pinned_timelines(
+ self,
+ extra_param: Optional[ParamType] = None,
+ ) -> TwitterApiUtilsResponse[models.PinnedTimelines]:
+ param: ParamType = {}
+ if extra_param is not None:
+ param.update(extra_param)
+ return self.request(
+ apiFn=self.api.get_pinned_timelines_with_http_info,
+ convertFn=lambda x: error_check(x.data, x.errors).pinned_timelines,
+ key="PinnedTimelines",
+ param=param,
+ )
diff --git a/twitter_openapi_python/twitter_openapi_python/api/tweet_api.py b/twitter_openapi_python/twitter_openapi_python/api/tweet_api.py
index 06b81c9..179a80a 100644
--- a/twitter_openapi_python/twitter_openapi_python/api/tweet_api.py
+++ b/twitter_openapi_python/twitter_openapi_python/api/tweet_api.py
@@ -636,3 +636,47 @@ def get_connect_tab_timeline(
param,
lambda entry: user_result_converter(user_entries_converter(entry)),
)
+
+ def get_bookmark_search_timeline(
+ self,
+ raw_query: str,
+ cursor: Optional[str] = None,
+ count: Optional[int] = None,
+ extra_param: Optional[ParamType] = None,
+ ) -> ResponseType:
+ """Search the account's bookmarks."""
+ param: ParamType = {"rawQuery": raw_query}
+ if cursor is not None:
+ param["cursor"] = cursor
+ if count is not None:
+ param["count"] = count
+ if extra_param is not None:
+ param.update(extra_param)
+
+ response = self.request(
+ apiFn=self.api.get_bookmark_search_timeline_with_http_info,
+ convertFn=lambda e: error_check(
+ e.data.search_by_raw_query.bookmarks_search_timeline.timeline, e.errors
+ ).instructions,
+ key="BookmarkSearchTimeline",
+ param=param,
+ )
+ return response
+
+ def get_explore_sidebar(
+ self,
+ extra_param: Optional[ParamType] = None,
+ ) -> TrendResponseType:
+ """Trends of the explore sidebar."""
+ param: ParamType = {}
+ if extra_param is not None:
+ param.update(extra_param)
+
+ return timeline_request(
+ self.api.get_explore_sidebar_with_http_info,
+ self.flag["ExploreSidebar"],
+ self.ct,
+ lambda e: error_check(e.data.explore_sidebar.timeline, e.errors).instructions,
+ param,
+ trend_entries_converter,
+ )
diff --git a/twitter_openapi_python/twitter_openapi_python/api/user_list_api.py b/twitter_openapi_python/twitter_openapi_python/api/user_list_api.py
index 232c1fe..355d1ff 100644
--- a/twitter_openapi_python/twitter_openapi_python/api/user_list_api.py
+++ b/twitter_openapi_python/twitter_openapi_python/api/user_list_api.py
@@ -302,3 +302,73 @@ def get_list_by_rest_id(
lambda e: error_check(e.data, e.errors).list,
param,
)
+
+ def get_list_search_timeline(
+ self,
+ raw_query: str,
+ cursor: Optional[str] = None,
+ count: Optional[int] = None,
+ extra_param: Optional[ParamType] = None,
+ ) -> ListResponseType:
+ param: ParamType = {"rawQuery": raw_query}
+ if cursor is not None:
+ param["cursor"] = cursor
+ if count is not None:
+ param["count"] = count
+ if extra_param is not None:
+ param.update(extra_param)
+ return timeline_request(
+ self.api.get_list_search_timeline_with_http_info,
+ self.flag["ListSearchTimeline"],
+ self.ct,
+ lambda e: error_check(e.data.search_by_raw_query.list_search_timeline.timeline, e.errors).instructions,
+ param,
+ list_entries_converter,
+ )
+
+ def get_combined_lists(
+ self,
+ user_id: str,
+ cursor: Optional[str] = None,
+ count: Optional[int] = None,
+ extra_param: Optional[ParamType] = None,
+ ) -> ListResponseType:
+ """Lists a user owns or follows."""
+ param: ParamType = {"userId": user_id}
+ if cursor is not None:
+ param["cursor"] = cursor
+ if count is not None:
+ param["count"] = count
+ if extra_param is not None:
+ param.update(extra_param)
+ return timeline_request(
+ self.api.get_combined_lists_with_http_info,
+ self.flag["CombinedLists"],
+ self.ct,
+ lambda e: error_check(error_check(e.data.user, e.errors).result.timeline.timeline, e.errors).instructions,
+ param,
+ list_entries_converter,
+ )
+
+ def get_lists_management_page_timeline(
+ self,
+ cursor: Optional[str] = None,
+ count: Optional[int] = None,
+ extra_param: Optional[ParamType] = None,
+ ) -> ListResponseType:
+ """The account's lists management page."""
+ param: ParamType = {}
+ if cursor is not None:
+ param["cursor"] = cursor
+ if count is not None:
+ param["count"] = count
+ if extra_param is not None:
+ param.update(extra_param)
+ return timeline_request(
+ self.api.get_lists_management_page_timeline_with_http_info,
+ self.flag["ListsManagementPageTimeline"],
+ self.ct,
+ lambda e: error_check(e.data.viewer.list_management_timeline.timeline, e.errors).instructions,
+ param,
+ list_entries_converter,
+ )
diff --git a/twitter_openapi_python/twitter_openapi_python/api/users_api.py b/twitter_openapi_python/twitter_openapi_python/api/users_api.py
index 0f8f272..b7842af 100644
--- a/twitter_openapi_python/twitter_openapi_python/api/users_api.py
+++ b/twitter_openapi_python/twitter_openapi_python/api/users_api.py
@@ -7,6 +7,7 @@
from twitter_openapi_python.models import TwitterApiUtilsResponse, UserApiUtilsData
from twitter_openapi_python.utils import (
build_response,
+ data_request,
error_check,
get_kwargs,
user_result_converter,
@@ -54,3 +55,20 @@ def get_users_by_rest_ids(
key="UsersByRestIds",
param=param,
)
+
+ def get_users_verified_avatars(
+ self,
+ user_ids: list[str],
+ extra_param: Optional[ParamType] = None,
+ ) -> TwitterApiUtilsResponse[list[models.VerifiedAvatarUser]]:
+ """Partial users (avatar shape, verification) for the given ids."""
+ param: ParamType = {"userIds": user_ids}
+ if extra_param is not None:
+ param.update(extra_param)
+ return data_request(
+ self.api.get_users_verified_avatars_with_http_info,
+ self.flag["UsersVerifiedAvatars"],
+ self.ct,
+ lambda e: [x.result for x in error_check(e.data, e.errors).users_results],
+ param,
+ )
diff --git a/twitter_openapi_python/twitter_openapi_python/client.py b/twitter_openapi_python/twitter_openapi_python/client.py
index 09557da..278f405 100644
--- a/twitter_openapi_python/twitter_openapi_python/client.py
+++ b/twitter_openapi_python/twitter_openapi_python/client.py
@@ -8,6 +8,8 @@
from x_client_transaction import ClientTransaction
from twitter_openapi_python.api import (
+ BirdwatchApiUtils,
+ CommunityApiUtils,
DefaultApiUtils,
InitialStateApiUtils,
PostApiUtils,
@@ -32,6 +34,12 @@ def __init__(self, api: twitter.ApiClient, placeholder: ParamType, ct: ClientTra
self.placeholder = placeholder
self.ct = ct
+ def get_birdwatch_api(self) -> BirdwatchApiUtils:
+ return BirdwatchApiUtils(twitter.BirdwatchApi(self.api), self.placeholder, self.ct)
+
+ def get_community_api(self) -> CommunityApiUtils:
+ return CommunityApiUtils(twitter.CommunityApi(self.api), self.placeholder, self.ct)
+
def get_default_api(self) -> DefaultApiUtils:
return DefaultApiUtils(twitter.DefaultApi(self.api), self.placeholder, self.ct)
@@ -61,7 +69,7 @@ def get_v11_post_api(self) -> V11PostApiUtils:
class TwitterOpenapiPython:
- hash: str = "ec7d907e12cfaca5b93dde55522dcc6045457570"
+ hash: str = "127fa210d7f9b0252276c86a1860a7db816d9d69"
placeholder_url = "https://raw.githubusercontent.com/fa0311/twitter-openapi/{hash}/src/config/placeholder.json"
header = "https://raw.githubusercontent.com/fa0311/latest-user-agent/refs/heads/main/header.json"
access_token: str = (
diff --git a/twitter_openapi_python/uv.lock b/twitter_openapi_python/uv.lock
index dd7214b..1044760 100644
--- a/twitter_openapi_python/uv.lock
+++ b/twitter_openapi_python/uv.lock
@@ -628,7 +628,7 @@ wheels = [
[[package]]
name = "twitter-openapi-python"
-version = "0.1.1"
+version = "0.1.2"
source = { editable = "." }
dependencies = [
{ name = "pydantic" },
@@ -663,7 +663,7 @@ dev = [
[[package]]
name = "twitter-openapi-python-generated"
-version = "0.1.1"
+version = "0.1.2"
source = { editable = "../twitter_openapi_python_generated" }
dependencies = [
{ name = "pydantic" },
diff --git a/twitter_openapi_python_generated/.openapi-generator/FILES b/twitter_openapi_python_generated/.openapi-generator/FILES
index 06c307e..bccd982 100644
--- a/twitter_openapi_python_generated/.openapi-generator/FILES
+++ b/twitter_openapi_python_generated/.openapi-generator/FILES
@@ -23,15 +23,39 @@ docs/ArticleMetadata.md
docs/ArticlePreview.md
docs/ArticleResult.md
docs/ArticleResults.md
+docs/AuthenticatePeriscopeResponse.md
+docs/AuthenticatePeriscopeResponseData.md
docs/AuthorCommunityRelationship.md
docs/BadgeCounts.md
+docs/BirdwatchAliasSelfSelectStatus.md
+docs/BirdwatchApi.md
docs/BirdwatchEntity.md
docs/BirdwatchEntityRef.md
+docs/BirdwatchFetchAliasSelfSelectStatusResponse.md
+docs/BirdwatchFetchAliasSelfSelectStatusResponseData.md
+docs/BirdwatchFetchAuthenticatedUserProfileResponse.md
+docs/BirdwatchFetchAuthenticatedUserProfileResponseData.md
+docs/BirdwatchFetchBirdwatchProfileResponse.md
+docs/BirdwatchFetchBirdwatchProfileResponseData.md
+docs/BirdwatchFetchGlobalTimelineResponse.md
+docs/BirdwatchFetchGlobalTimelineResponseData.md
+docs/BirdwatchFetchPublicDataResponse.md
+docs/BirdwatchFetchPublicDataResponseData.md
+docs/BirdwatchHomePage.md
+docs/BirdwatchHomePageBody.md
+docs/BirdwatchHomeTimeline.md
docs/BirdwatchPivot.md
docs/BirdwatchPivotCallToAction.md
docs/BirdwatchPivotFooter.md
docs/BirdwatchPivotNote.md
docs/BirdwatchPivotSubtitle.md
+docs/BirdwatchProfile.md
+docs/BirdwatchPublicDataFile.md
+docs/BirdwatchPublicDataFileBundle.md
+docs/BirdwatchViewer.md
+docs/BookmarkSearch.md
+docs/BookmarkSearchTimelineResponse.md
+docs/BookmarkSearchTimelineResponseData.md
docs/BookmarksResponse.md
docs/BookmarksResponseData.md
docs/BookmarksTimeline.md
@@ -42,27 +66,64 @@ docs/ClickTrackingInfo.md
docs/ClientEventInfo.md
docs/ClientEventInfoDetails.md
docs/CommunitiesActions.md
+docs/CommunitiesFetchOneQueryResponse.md
+docs/CommunitiesFetchOneQueryResponseData.md
+docs/CommunitiesSearchQueryResponse.md
+docs/CommunitiesSearchQueryResponseData.md
+docs/CommunitiesSearchSlice.md
docs/Community.md
docs/CommunityAboutTimelineResponse.md
docs/CommunityActions.md
+docs/CommunityApi.md
docs/CommunityBannerMedia.md
docs/CommunityBannerMediaInfo.md
docs/CommunityDeleteActionResult.md
docs/CommunityDiscoveryTimelineResponse.md
docs/CommunityDiscoveryTimelineResponseData.md
docs/CommunityDiscoveryTimelineViewer.md
+docs/CommunityFacepileUser.md
+docs/CommunityFacepileUserResults.md
+docs/CommunityHashtag.md
+docs/CommunityHashtagSlice.md
+docs/CommunityIdUserResults.md
docs/CommunityInvitesResult.md
docs/CommunityJoinAction.md
docs/CommunityJoinActionResultUnion.md
docs/CommunityJoinActionUnavailable.md
docs/CommunityJoinRequestsResult.md
docs/CommunityLeaveActionResult.md
+docs/CommunityListMembersActionResult.md
docs/CommunityMediaTimelineResponse.md
docs/CommunityModerationState.md
+docs/CommunityPageActions.md
+docs/CommunityPageCommunity.md
+docs/CommunityPageDeleteActionResult.md
+docs/CommunityPageInvitesResult.md
+docs/CommunityPageJoinActionResult.md
+docs/CommunityPageLeaveActionResult.md
+docs/CommunityPagePinActionResult.md
+docs/CommunityPageResults.md
docs/CommunityPinActionResult.md
+docs/CommunityPrimaryTopicName.md
+docs/CommunityQueryResponse.md
+docs/CommunityQueryResponseData.md
docs/CommunityRelationship.md
+docs/CommunityRelayRule.md
docs/CommunityResult.md
docs/CommunityRule.md
+docs/CommunitySearchCommunity.md
+docs/CommunitySearchResults.md
+docs/CommunitySettingsActions.md
+docs/CommunitySettingsCommunity.md
+docs/CommunitySettingsCreator.md
+docs/CommunitySettingsCreatorCore.md
+docs/CommunitySettingsCreatorResults.md
+docs/CommunitySettingsCreatorVerification.md
+docs/CommunitySettingsInvitesResult.md
+docs/CommunitySettingsResults.md
+docs/CommunitySubtopic.md
+docs/CommunityTopic.md
+docs/CommunityTopicResults.md
docs/CommunityTweetsTimelineResponse.md
docs/CommunityUnavailable.md
docs/CommunityUnion.md
@@ -98,10 +159,14 @@ docs/CreateTweet.md
docs/CreateTweetResponse.md
docs/CreateTweetResponseData.md
docs/CreateTweetResponseResult.md
+docs/CreatorStudioTabBarItemQueryResponse.md
+docs/CreatorStudioTabBarItemQueryResponseData.md
docs/CtaClientEventInfo.md
docs/CtaLimitedActionPrompt.md
docs/CtaLimitedActionPromptText.md
docs/CursorType.md
+docs/DataSaverModeResponse.md
+docs/DataSaverModeResponseData.md
docs/DeepsearchHeader.md
docs/DeepsearchStep.md
docs/DeepsearchWebResult.md
@@ -131,10 +196,18 @@ docs/Entities.md
docs/ErrorExtensions.md
docs/ErrorResponse.md
docs/ErrorResponsePathInner.md
+docs/EventSummaryAdMetadataContainer.md
+docs/EventSummaryEvent.md
+docs/EventSummaryMedia.md
+docs/EventSummaryMediaEntity.md
+docs/EventSummaryMediaKey.md
+docs/EventSummaryPromotedMetadata.md
docs/ExplorePage.md
docs/ExplorePageBody.md
docs/ExplorePageResponse.md
docs/ExplorePageResponseData.md
+docs/ExploreSidebarResponse.md
+docs/ExploreSidebarResponseData.md
docs/ExploreTimeline.md
docs/ExploreTimelineScribeConfig.md
docs/ExtMediaAvailability.md
@@ -156,10 +229,23 @@ docs/FollowResponseUser.md
docs/FollowTimeline.md
docs/GenericTimelineByIdResponse.md
docs/GenericTimelineByIdResponseData.md
+docs/GlobalCommunitiesLatestPostSearch.md
+docs/GlobalCommunitiesLatestPostSearchTimelineResponse.md
+docs/GlobalCommunitiesLatestPostSearchTimelineResponseData.md
+docs/GlobalCommunitiesPostSearch.md
+docs/GlobalCommunitiesPostSearchTimelineResponse.md
+docs/GlobalCommunitiesPostSearchTimelineResponseData.md
docs/GrokAnnotation.md
docs/GrokEntity.md
docs/GrokEntityRef.md
+docs/GrokHome.md
+docs/GrokHomeLayout.md
+docs/GrokHomeLayoutSection.md
+docs/GrokHomePrompt.md
+docs/GrokHomeResponse.md
+docs/GrokHomeResponseData.md
docs/GrokImageAnnotation.md
+docs/GrokModelOption.md
docs/GrokShareAttachment.md
docs/GrokShareAttachmentItem.md
docs/GrokTranslatedBio.md
@@ -195,11 +281,17 @@ docs/ListRecommendedUsersResponse.md
docs/ListRecommendedUsersResponseData.md
docs/ListResponse.md
docs/ListResponseData.md
+docs/ListSearch.md
+docs/ListSearchTimelineResponse.md
+docs/ListSearchTimelineResponseData.md
docs/ListSubscribersList.md
docs/ListSubscribersResponse.md
docs/ListSubscribersResponseData.md
docs/ListTweetsTimelineData.md
docs/ListTweetsTimelineList.md
+docs/ListsManagementPageTimelineResponse.md
+docs/ListsManagementPageTimelineResponseData.md
+docs/ListsManagementViewer.md
docs/Location.md
docs/Media.md
docs/MediaColorInfo.md
@@ -233,6 +325,7 @@ docs/NoteTweetResultMedia.md
docs/NoteTweetResultMediaInlineMedia.md
docs/NoteTweetResultRichText.md
docs/NoteTweetResultRichTextTag.md
+docs/NotificationDetails.md
docs/NotificationTemplate.md
docs/NotificationsResult.md
docs/NotificationsTimelineData.md
@@ -242,6 +335,9 @@ docs/NotificationsViewerV2.md
docs/OneFactorLoginEligibility.md
docs/OtherApi.md
docs/OtherObjectAll.md
+docs/PinnedTimelines.md
+docs/PinnedTimelinesResponse.md
+docs/PinnedTimelinesResponseData.md
docs/PostApi.md
docs/PostCreateBookmarkRequest.md
docs/PostCreateBookmarkRequestVariables.md
@@ -287,6 +383,7 @@ docs/ProfileBioEntitiesUrls.md
docs/ProfileResponse.md
docs/ProfileResponseData.md
docs/PromotedMetadata.md
+docs/PromotedTrend.md
docs/QuotedRefResult.md
docs/QuotedStatusPermalink.md
docs/RankedCommunityResult.md
@@ -296,6 +393,8 @@ docs/ReaderModeConfig.md
docs/Retweet.md
docs/RetweetLegacy.md
docs/RichMessage.md
+docs/RichMessageEntity.md
+docs/RichMessageEntityRef.md
docs/ScheduledTweetsViewer.md
docs/ScribeConfig.md
docs/SearchByRawQuery.md
@@ -305,6 +404,7 @@ docs/SearchTimelineResponse.md
docs/SelfThread.md
docs/SensitiveMediaWarning.md
docs/Session.md
+docs/SliceInfo.md
docs/Smarttag.md
docs/SmarttagTag.md
docs/SmarttagTagInfo.md
@@ -331,6 +431,7 @@ docs/TimelineClearEntriesUnreadState.md
docs/TimelineCommunity.md
docs/TimelineCoverBehavior.md
docs/TimelineCoverBehaviorUrl.md
+docs/TimelineEventSummary.md
docs/TimelineFrame.md
docs/TimelineGeneralContext.md
docs/TimelineHalfCover.md
@@ -374,10 +475,13 @@ docs/TombstoneEntity.md
docs/TombstoneInfo.md
docs/TombstoneRef.md
docs/TombstoneRichText.md
+docs/TopicCarouselQueryResponse.md
+docs/TopicCarouselQueryResponseData.md
docs/TopicContext.md
docs/Tracing.md
docs/TrendImage.md
docs/TrendMetadata.md
+docs/TrendPromotedMetadata.md
docs/TrendResults.md
docs/Tweet.md
docs/TweetApi.md
@@ -499,9 +603,13 @@ docs/UserWebsite.md
docs/UsersApi.md
docs/UsersResponse.md
docs/UsersResponseData.md
+docs/UsersVerifiedAvatarsResponse.md
+docs/UsersVerifiedAvatarsResponseData.md
docs/V11GetApi.md
docs/V11PostApi.md
docs/V20GetApi.md
+docs/VerifiedAvatarUser.md
+docs/VerifiedAvatarUserResults.md
docs/ViewerBadgeCountsResponse.md
docs/ViewerBadgeCountsResponseData.md
docs/ViewerBadgeCountsResult.md
@@ -534,15 +642,39 @@ test/test_article_metadata.py
test/test_article_preview.py
test/test_article_result.py
test/test_article_results.py
+test/test_authenticate_periscope_response.py
+test/test_authenticate_periscope_response_data.py
test/test_author_community_relationship.py
test/test_badge_counts.py
+test/test_birdwatch_alias_self_select_status.py
+test/test_birdwatch_api.py
test/test_birdwatch_entity.py
test/test_birdwatch_entity_ref.py
+test/test_birdwatch_fetch_alias_self_select_status_response.py
+test/test_birdwatch_fetch_alias_self_select_status_response_data.py
+test/test_birdwatch_fetch_authenticated_user_profile_response.py
+test/test_birdwatch_fetch_authenticated_user_profile_response_data.py
+test/test_birdwatch_fetch_birdwatch_profile_response.py
+test/test_birdwatch_fetch_birdwatch_profile_response_data.py
+test/test_birdwatch_fetch_global_timeline_response.py
+test/test_birdwatch_fetch_global_timeline_response_data.py
+test/test_birdwatch_fetch_public_data_response.py
+test/test_birdwatch_fetch_public_data_response_data.py
+test/test_birdwatch_home_page.py
+test/test_birdwatch_home_page_body.py
+test/test_birdwatch_home_timeline.py
test/test_birdwatch_pivot.py
test/test_birdwatch_pivot_call_to_action.py
test/test_birdwatch_pivot_footer.py
test/test_birdwatch_pivot_note.py
test/test_birdwatch_pivot_subtitle.py
+test/test_birdwatch_profile.py
+test/test_birdwatch_public_data_file.py
+test/test_birdwatch_public_data_file_bundle.py
+test/test_birdwatch_viewer.py
+test/test_bookmark_search.py
+test/test_bookmark_search_timeline_response.py
+test/test_bookmark_search_timeline_response_data.py
test/test_bookmarks_response.py
test/test_bookmarks_response_data.py
test/test_bookmarks_timeline.py
@@ -553,27 +685,64 @@ test/test_click_tracking_info.py
test/test_client_event_info.py
test/test_client_event_info_details.py
test/test_communities_actions.py
+test/test_communities_fetch_one_query_response.py
+test/test_communities_fetch_one_query_response_data.py
+test/test_communities_search_query_response.py
+test/test_communities_search_query_response_data.py
+test/test_communities_search_slice.py
test/test_community.py
test/test_community_about_timeline_response.py
test/test_community_actions.py
+test/test_community_api.py
test/test_community_banner_media.py
test/test_community_banner_media_info.py
test/test_community_delete_action_result.py
test/test_community_discovery_timeline_response.py
test/test_community_discovery_timeline_response_data.py
test/test_community_discovery_timeline_viewer.py
+test/test_community_facepile_user.py
+test/test_community_facepile_user_results.py
+test/test_community_hashtag.py
+test/test_community_hashtag_slice.py
+test/test_community_id_user_results.py
test/test_community_invites_result.py
test/test_community_join_action.py
test/test_community_join_action_result_union.py
test/test_community_join_action_unavailable.py
test/test_community_join_requests_result.py
test/test_community_leave_action_result.py
+test/test_community_list_members_action_result.py
test/test_community_media_timeline_response.py
test/test_community_moderation_state.py
+test/test_community_page_actions.py
+test/test_community_page_community.py
+test/test_community_page_delete_action_result.py
+test/test_community_page_invites_result.py
+test/test_community_page_join_action_result.py
+test/test_community_page_leave_action_result.py
+test/test_community_page_pin_action_result.py
+test/test_community_page_results.py
test/test_community_pin_action_result.py
+test/test_community_primary_topic_name.py
+test/test_community_query_response.py
+test/test_community_query_response_data.py
test/test_community_relationship.py
+test/test_community_relay_rule.py
test/test_community_result.py
test/test_community_rule.py
+test/test_community_search_community.py
+test/test_community_search_results.py
+test/test_community_settings_actions.py
+test/test_community_settings_community.py
+test/test_community_settings_creator.py
+test/test_community_settings_creator_core.py
+test/test_community_settings_creator_results.py
+test/test_community_settings_creator_verification.py
+test/test_community_settings_invites_result.py
+test/test_community_settings_results.py
+test/test_community_subtopic.py
+test/test_community_topic.py
+test/test_community_topic_results.py
test/test_community_tweets_timeline_response.py
test/test_community_unavailable.py
test/test_community_union.py
@@ -609,10 +778,14 @@ test/test_create_tweet.py
test/test_create_tweet_response.py
test/test_create_tweet_response_data.py
test/test_create_tweet_response_result.py
+test/test_creator_studio_tab_bar_item_query_response.py
+test/test_creator_studio_tab_bar_item_query_response_data.py
test/test_cta_client_event_info.py
test/test_cta_limited_action_prompt.py
test/test_cta_limited_action_prompt_text.py
test/test_cursor_type.py
+test/test_data_saver_mode_response.py
+test/test_data_saver_mode_response_data.py
test/test_deepsearch_header.py
test/test_deepsearch_step.py
test/test_deepsearch_web_result.py
@@ -642,10 +815,18 @@ test/test_entities.py
test/test_error_extensions.py
test/test_error_response.py
test/test_error_response_path_inner.py
+test/test_event_summary_ad_metadata_container.py
+test/test_event_summary_event.py
+test/test_event_summary_media.py
+test/test_event_summary_media_entity.py
+test/test_event_summary_media_key.py
+test/test_event_summary_promoted_metadata.py
test/test_explore_page.py
test/test_explore_page_body.py
test/test_explore_page_response.py
test/test_explore_page_response_data.py
+test/test_explore_sidebar_response.py
+test/test_explore_sidebar_response_data.py
test/test_explore_timeline.py
test/test_explore_timeline_scribe_config.py
test/test_ext_media_availability.py
@@ -667,10 +848,23 @@ test/test_follow_response_user.py
test/test_follow_timeline.py
test/test_generic_timeline_by_id_response.py
test/test_generic_timeline_by_id_response_data.py
+test/test_global_communities_latest_post_search.py
+test/test_global_communities_latest_post_search_timeline_response.py
+test/test_global_communities_latest_post_search_timeline_response_data.py
+test/test_global_communities_post_search.py
+test/test_global_communities_post_search_timeline_response.py
+test/test_global_communities_post_search_timeline_response_data.py
test/test_grok_annotation.py
test/test_grok_entity.py
test/test_grok_entity_ref.py
+test/test_grok_home.py
+test/test_grok_home_layout.py
+test/test_grok_home_layout_section.py
+test/test_grok_home_prompt.py
+test/test_grok_home_response.py
+test/test_grok_home_response_data.py
test/test_grok_image_annotation.py
+test/test_grok_model_option.py
test/test_grok_share_attachment.py
test/test_grok_share_attachment_item.py
test/test_grok_translated_bio.py
@@ -706,11 +900,17 @@ test/test_list_recommended_users_response.py
test/test_list_recommended_users_response_data.py
test/test_list_response.py
test/test_list_response_data.py
+test/test_list_search.py
+test/test_list_search_timeline_response.py
+test/test_list_search_timeline_response_data.py
test/test_list_subscribers_list.py
test/test_list_subscribers_response.py
test/test_list_subscribers_response_data.py
test/test_list_tweets_timeline_data.py
test/test_list_tweets_timeline_list.py
+test/test_lists_management_page_timeline_response.py
+test/test_lists_management_page_timeline_response_data.py
+test/test_lists_management_viewer.py
test/test_location.py
test/test_media.py
test/test_media_color_info.py
@@ -744,6 +944,7 @@ test/test_note_tweet_result_media.py
test/test_note_tweet_result_media_inline_media.py
test/test_note_tweet_result_rich_text.py
test/test_note_tweet_result_rich_text_tag.py
+test/test_notification_details.py
test/test_notification_template.py
test/test_notifications_result.py
test/test_notifications_timeline_data.py
@@ -753,6 +954,9 @@ test/test_notifications_viewer_v2.py
test/test_one_factor_login_eligibility.py
test/test_other_api.py
test/test_other_object_all.py
+test/test_pinned_timelines.py
+test/test_pinned_timelines_response.py
+test/test_pinned_timelines_response_data.py
test/test_post_api.py
test/test_post_create_bookmark_request.py
test/test_post_create_bookmark_request_variables.py
@@ -798,6 +1002,7 @@ test/test_profile_bio_entities_urls.py
test/test_profile_response.py
test/test_profile_response_data.py
test/test_promoted_metadata.py
+test/test_promoted_trend.py
test/test_quoted_ref_result.py
test/test_quoted_status_permalink.py
test/test_ranked_community_result.py
@@ -807,6 +1012,8 @@ test/test_reader_mode_config.py
test/test_retweet.py
test/test_retweet_legacy.py
test/test_rich_message.py
+test/test_rich_message_entity.py
+test/test_rich_message_entity_ref.py
test/test_scheduled_tweets_viewer.py
test/test_scribe_config.py
test/test_search_by_raw_query.py
@@ -816,6 +1023,7 @@ test/test_search_timeline_response.py
test/test_self_thread.py
test/test_sensitive_media_warning.py
test/test_session.py
+test/test_slice_info.py
test/test_smarttag.py
test/test_smarttag_tag.py
test/test_smarttag_tag_info.py
@@ -842,6 +1050,7 @@ test/test_timeline_clear_entries_unread_state.py
test/test_timeline_community.py
test/test_timeline_cover_behavior.py
test/test_timeline_cover_behavior_url.py
+test/test_timeline_event_summary.py
test/test_timeline_frame.py
test/test_timeline_general_context.py
test/test_timeline_half_cover.py
@@ -885,10 +1094,13 @@ test/test_tombstone_entity.py
test/test_tombstone_info.py
test/test_tombstone_ref.py
test/test_tombstone_rich_text.py
+test/test_topic_carousel_query_response.py
+test/test_topic_carousel_query_response_data.py
test/test_topic_context.py
test/test_tracing.py
test/test_trend_image.py
test/test_trend_metadata.py
+test/test_trend_promoted_metadata.py
test/test_trend_results.py
test/test_tweet.py
test/test_tweet_api.py
@@ -1010,9 +1222,13 @@ test/test_user_website.py
test/test_users_api.py
test/test_users_response.py
test/test_users_response_data.py
+test/test_users_verified_avatars_response.py
+test/test_users_verified_avatars_response_data.py
test/test_v11_get_api.py
test/test_v11_post_api.py
test/test_v20_get_api.py
+test/test_verified_avatar_user.py
+test/test_verified_avatar_user_results.py
test/test_viewer_badge_counts_response.py
test/test_viewer_badge_counts_response_data.py
test/test_viewer_badge_counts_result.py
@@ -1021,6 +1237,8 @@ test/test_viewer_badge_counts_viewer.py
tox.ini
twitter_openapi_python_generated/__init__.py
twitter_openapi_python_generated/api/__init__.py
+twitter_openapi_python_generated/api/birdwatch_api.py
+twitter_openapi_python_generated/api/community_api.py
twitter_openapi_python_generated/api/default_api.py
twitter_openapi_python_generated/api/other_api.py
twitter_openapi_python_generated/api/post_api.py
@@ -1056,15 +1274,38 @@ twitter_openapi_python_generated/models/article_metadata.py
twitter_openapi_python_generated/models/article_preview.py
twitter_openapi_python_generated/models/article_result.py
twitter_openapi_python_generated/models/article_results.py
+twitter_openapi_python_generated/models/authenticate_periscope_response.py
+twitter_openapi_python_generated/models/authenticate_periscope_response_data.py
twitter_openapi_python_generated/models/author_community_relationship.py
twitter_openapi_python_generated/models/badge_counts.py
+twitter_openapi_python_generated/models/birdwatch_alias_self_select_status.py
twitter_openapi_python_generated/models/birdwatch_entity.py
twitter_openapi_python_generated/models/birdwatch_entity_ref.py
+twitter_openapi_python_generated/models/birdwatch_fetch_alias_self_select_status_response.py
+twitter_openapi_python_generated/models/birdwatch_fetch_alias_self_select_status_response_data.py
+twitter_openapi_python_generated/models/birdwatch_fetch_authenticated_user_profile_response.py
+twitter_openapi_python_generated/models/birdwatch_fetch_authenticated_user_profile_response_data.py
+twitter_openapi_python_generated/models/birdwatch_fetch_birdwatch_profile_response.py
+twitter_openapi_python_generated/models/birdwatch_fetch_birdwatch_profile_response_data.py
+twitter_openapi_python_generated/models/birdwatch_fetch_global_timeline_response.py
+twitter_openapi_python_generated/models/birdwatch_fetch_global_timeline_response_data.py
+twitter_openapi_python_generated/models/birdwatch_fetch_public_data_response.py
+twitter_openapi_python_generated/models/birdwatch_fetch_public_data_response_data.py
+twitter_openapi_python_generated/models/birdwatch_home_page.py
+twitter_openapi_python_generated/models/birdwatch_home_page_body.py
+twitter_openapi_python_generated/models/birdwatch_home_timeline.py
twitter_openapi_python_generated/models/birdwatch_pivot.py
twitter_openapi_python_generated/models/birdwatch_pivot_call_to_action.py
twitter_openapi_python_generated/models/birdwatch_pivot_footer.py
twitter_openapi_python_generated/models/birdwatch_pivot_note.py
twitter_openapi_python_generated/models/birdwatch_pivot_subtitle.py
+twitter_openapi_python_generated/models/birdwatch_profile.py
+twitter_openapi_python_generated/models/birdwatch_public_data_file.py
+twitter_openapi_python_generated/models/birdwatch_public_data_file_bundle.py
+twitter_openapi_python_generated/models/birdwatch_viewer.py
+twitter_openapi_python_generated/models/bookmark_search.py
+twitter_openapi_python_generated/models/bookmark_search_timeline_response.py
+twitter_openapi_python_generated/models/bookmark_search_timeline_response_data.py
twitter_openapi_python_generated/models/bookmarks_response.py
twitter_openapi_python_generated/models/bookmarks_response_data.py
twitter_openapi_python_generated/models/bookmarks_timeline.py
@@ -1075,6 +1316,11 @@ twitter_openapi_python_generated/models/click_tracking_info.py
twitter_openapi_python_generated/models/client_event_info.py
twitter_openapi_python_generated/models/client_event_info_details.py
twitter_openapi_python_generated/models/communities_actions.py
+twitter_openapi_python_generated/models/communities_fetch_one_query_response.py
+twitter_openapi_python_generated/models/communities_fetch_one_query_response_data.py
+twitter_openapi_python_generated/models/communities_search_query_response.py
+twitter_openapi_python_generated/models/communities_search_query_response_data.py
+twitter_openapi_python_generated/models/communities_search_slice.py
twitter_openapi_python_generated/models/community.py
twitter_openapi_python_generated/models/community_about_timeline_response.py
twitter_openapi_python_generated/models/community_actions.py
@@ -1084,18 +1330,49 @@ twitter_openapi_python_generated/models/community_delete_action_result.py
twitter_openapi_python_generated/models/community_discovery_timeline_response.py
twitter_openapi_python_generated/models/community_discovery_timeline_response_data.py
twitter_openapi_python_generated/models/community_discovery_timeline_viewer.py
+twitter_openapi_python_generated/models/community_facepile_user.py
+twitter_openapi_python_generated/models/community_facepile_user_results.py
+twitter_openapi_python_generated/models/community_hashtag.py
+twitter_openapi_python_generated/models/community_hashtag_slice.py
+twitter_openapi_python_generated/models/community_id_user_results.py
twitter_openapi_python_generated/models/community_invites_result.py
twitter_openapi_python_generated/models/community_join_action.py
twitter_openapi_python_generated/models/community_join_action_result_union.py
twitter_openapi_python_generated/models/community_join_action_unavailable.py
twitter_openapi_python_generated/models/community_join_requests_result.py
twitter_openapi_python_generated/models/community_leave_action_result.py
+twitter_openapi_python_generated/models/community_list_members_action_result.py
twitter_openapi_python_generated/models/community_media_timeline_response.py
twitter_openapi_python_generated/models/community_moderation_state.py
+twitter_openapi_python_generated/models/community_page_actions.py
+twitter_openapi_python_generated/models/community_page_community.py
+twitter_openapi_python_generated/models/community_page_delete_action_result.py
+twitter_openapi_python_generated/models/community_page_invites_result.py
+twitter_openapi_python_generated/models/community_page_join_action_result.py
+twitter_openapi_python_generated/models/community_page_leave_action_result.py
+twitter_openapi_python_generated/models/community_page_pin_action_result.py
+twitter_openapi_python_generated/models/community_page_results.py
twitter_openapi_python_generated/models/community_pin_action_result.py
+twitter_openapi_python_generated/models/community_primary_topic_name.py
+twitter_openapi_python_generated/models/community_query_response.py
+twitter_openapi_python_generated/models/community_query_response_data.py
twitter_openapi_python_generated/models/community_relationship.py
+twitter_openapi_python_generated/models/community_relay_rule.py
twitter_openapi_python_generated/models/community_result.py
twitter_openapi_python_generated/models/community_rule.py
+twitter_openapi_python_generated/models/community_search_community.py
+twitter_openapi_python_generated/models/community_search_results.py
+twitter_openapi_python_generated/models/community_settings_actions.py
+twitter_openapi_python_generated/models/community_settings_community.py
+twitter_openapi_python_generated/models/community_settings_creator.py
+twitter_openapi_python_generated/models/community_settings_creator_core.py
+twitter_openapi_python_generated/models/community_settings_creator_results.py
+twitter_openapi_python_generated/models/community_settings_creator_verification.py
+twitter_openapi_python_generated/models/community_settings_invites_result.py
+twitter_openapi_python_generated/models/community_settings_results.py
+twitter_openapi_python_generated/models/community_subtopic.py
+twitter_openapi_python_generated/models/community_topic.py
+twitter_openapi_python_generated/models/community_topic_results.py
twitter_openapi_python_generated/models/community_tweets_timeline_response.py
twitter_openapi_python_generated/models/community_unavailable.py
twitter_openapi_python_generated/models/community_union.py
@@ -1131,10 +1408,14 @@ twitter_openapi_python_generated/models/create_tweet.py
twitter_openapi_python_generated/models/create_tweet_response.py
twitter_openapi_python_generated/models/create_tweet_response_data.py
twitter_openapi_python_generated/models/create_tweet_response_result.py
+twitter_openapi_python_generated/models/creator_studio_tab_bar_item_query_response.py
+twitter_openapi_python_generated/models/creator_studio_tab_bar_item_query_response_data.py
twitter_openapi_python_generated/models/cta_client_event_info.py
twitter_openapi_python_generated/models/cta_limited_action_prompt.py
twitter_openapi_python_generated/models/cta_limited_action_prompt_text.py
twitter_openapi_python_generated/models/cursor_type.py
+twitter_openapi_python_generated/models/data_saver_mode_response.py
+twitter_openapi_python_generated/models/data_saver_mode_response_data.py
twitter_openapi_python_generated/models/deepsearch_header.py
twitter_openapi_python_generated/models/deepsearch_step.py
twitter_openapi_python_generated/models/deepsearch_web_result.py
@@ -1163,10 +1444,18 @@ twitter_openapi_python_generated/models/entities.py
twitter_openapi_python_generated/models/error_extensions.py
twitter_openapi_python_generated/models/error_response.py
twitter_openapi_python_generated/models/error_response_path_inner.py
+twitter_openapi_python_generated/models/event_summary_ad_metadata_container.py
+twitter_openapi_python_generated/models/event_summary_event.py
+twitter_openapi_python_generated/models/event_summary_media.py
+twitter_openapi_python_generated/models/event_summary_media_entity.py
+twitter_openapi_python_generated/models/event_summary_media_key.py
+twitter_openapi_python_generated/models/event_summary_promoted_metadata.py
twitter_openapi_python_generated/models/explore_page.py
twitter_openapi_python_generated/models/explore_page_body.py
twitter_openapi_python_generated/models/explore_page_response.py
twitter_openapi_python_generated/models/explore_page_response_data.py
+twitter_openapi_python_generated/models/explore_sidebar_response.py
+twitter_openapi_python_generated/models/explore_sidebar_response_data.py
twitter_openapi_python_generated/models/explore_timeline.py
twitter_openapi_python_generated/models/explore_timeline_scribe_config.py
twitter_openapi_python_generated/models/ext_media_availability.py
@@ -1188,10 +1477,23 @@ twitter_openapi_python_generated/models/follow_response_user.py
twitter_openapi_python_generated/models/follow_timeline.py
twitter_openapi_python_generated/models/generic_timeline_by_id_response.py
twitter_openapi_python_generated/models/generic_timeline_by_id_response_data.py
+twitter_openapi_python_generated/models/global_communities_latest_post_search.py
+twitter_openapi_python_generated/models/global_communities_latest_post_search_timeline_response.py
+twitter_openapi_python_generated/models/global_communities_latest_post_search_timeline_response_data.py
+twitter_openapi_python_generated/models/global_communities_post_search.py
+twitter_openapi_python_generated/models/global_communities_post_search_timeline_response.py
+twitter_openapi_python_generated/models/global_communities_post_search_timeline_response_data.py
twitter_openapi_python_generated/models/grok_annotation.py
twitter_openapi_python_generated/models/grok_entity.py
twitter_openapi_python_generated/models/grok_entity_ref.py
+twitter_openapi_python_generated/models/grok_home.py
+twitter_openapi_python_generated/models/grok_home_layout.py
+twitter_openapi_python_generated/models/grok_home_layout_section.py
+twitter_openapi_python_generated/models/grok_home_prompt.py
+twitter_openapi_python_generated/models/grok_home_response.py
+twitter_openapi_python_generated/models/grok_home_response_data.py
twitter_openapi_python_generated/models/grok_image_annotation.py
+twitter_openapi_python_generated/models/grok_model_option.py
twitter_openapi_python_generated/models/grok_share_attachment.py
twitter_openapi_python_generated/models/grok_share_attachment_item.py
twitter_openapi_python_generated/models/grok_translated_bio.py
@@ -1227,11 +1529,17 @@ twitter_openapi_python_generated/models/list_recommended_users_response.py
twitter_openapi_python_generated/models/list_recommended_users_response_data.py
twitter_openapi_python_generated/models/list_response.py
twitter_openapi_python_generated/models/list_response_data.py
+twitter_openapi_python_generated/models/list_search.py
+twitter_openapi_python_generated/models/list_search_timeline_response.py
+twitter_openapi_python_generated/models/list_search_timeline_response_data.py
twitter_openapi_python_generated/models/list_subscribers_list.py
twitter_openapi_python_generated/models/list_subscribers_response.py
twitter_openapi_python_generated/models/list_subscribers_response_data.py
twitter_openapi_python_generated/models/list_tweets_timeline_data.py
twitter_openapi_python_generated/models/list_tweets_timeline_list.py
+twitter_openapi_python_generated/models/lists_management_page_timeline_response.py
+twitter_openapi_python_generated/models/lists_management_page_timeline_response_data.py
+twitter_openapi_python_generated/models/lists_management_viewer.py
twitter_openapi_python_generated/models/location.py
twitter_openapi_python_generated/models/media.py
twitter_openapi_python_generated/models/media_color_info.py
@@ -1265,6 +1573,7 @@ twitter_openapi_python_generated/models/note_tweet_result_media.py
twitter_openapi_python_generated/models/note_tweet_result_media_inline_media.py
twitter_openapi_python_generated/models/note_tweet_result_rich_text.py
twitter_openapi_python_generated/models/note_tweet_result_rich_text_tag.py
+twitter_openapi_python_generated/models/notification_details.py
twitter_openapi_python_generated/models/notification_template.py
twitter_openapi_python_generated/models/notifications_result.py
twitter_openapi_python_generated/models/notifications_timeline_data.py
@@ -1273,6 +1582,9 @@ twitter_openapi_python_generated/models/notifications_user_results.py
twitter_openapi_python_generated/models/notifications_viewer_v2.py
twitter_openapi_python_generated/models/one_factor_login_eligibility.py
twitter_openapi_python_generated/models/other_object_all.py
+twitter_openapi_python_generated/models/pinned_timelines.py
+twitter_openapi_python_generated/models/pinned_timelines_response.py
+twitter_openapi_python_generated/models/pinned_timelines_response_data.py
twitter_openapi_python_generated/models/post_create_bookmark_request.py
twitter_openapi_python_generated/models/post_create_bookmark_request_variables.py
twitter_openapi_python_generated/models/post_create_draft_tweet_request.py
@@ -1317,6 +1629,7 @@ twitter_openapi_python_generated/models/profile_bio_entities_urls.py
twitter_openapi_python_generated/models/profile_response.py
twitter_openapi_python_generated/models/profile_response_data.py
twitter_openapi_python_generated/models/promoted_metadata.py
+twitter_openapi_python_generated/models/promoted_trend.py
twitter_openapi_python_generated/models/quoted_ref_result.py
twitter_openapi_python_generated/models/quoted_status_permalink.py
twitter_openapi_python_generated/models/ranked_community_result.py
@@ -1326,6 +1639,8 @@ twitter_openapi_python_generated/models/reader_mode_config.py
twitter_openapi_python_generated/models/retweet.py
twitter_openapi_python_generated/models/retweet_legacy.py
twitter_openapi_python_generated/models/rich_message.py
+twitter_openapi_python_generated/models/rich_message_entity.py
+twitter_openapi_python_generated/models/rich_message_entity_ref.py
twitter_openapi_python_generated/models/scheduled_tweets_viewer.py
twitter_openapi_python_generated/models/scribe_config.py
twitter_openapi_python_generated/models/search_by_raw_query.py
@@ -1335,6 +1650,7 @@ twitter_openapi_python_generated/models/search_timeline_response.py
twitter_openapi_python_generated/models/self_thread.py
twitter_openapi_python_generated/models/sensitive_media_warning.py
twitter_openapi_python_generated/models/session.py
+twitter_openapi_python_generated/models/slice_info.py
twitter_openapi_python_generated/models/smarttag.py
twitter_openapi_python_generated/models/smarttag_tag.py
twitter_openapi_python_generated/models/smarttag_tag_info.py
@@ -1361,6 +1677,7 @@ twitter_openapi_python_generated/models/timeline_clear_entries_unread_state.py
twitter_openapi_python_generated/models/timeline_community.py
twitter_openapi_python_generated/models/timeline_cover_behavior.py
twitter_openapi_python_generated/models/timeline_cover_behavior_url.py
+twitter_openapi_python_generated/models/timeline_event_summary.py
twitter_openapi_python_generated/models/timeline_frame.py
twitter_openapi_python_generated/models/timeline_general_context.py
twitter_openapi_python_generated/models/timeline_half_cover.py
@@ -1404,10 +1721,13 @@ twitter_openapi_python_generated/models/tombstone_entity.py
twitter_openapi_python_generated/models/tombstone_info.py
twitter_openapi_python_generated/models/tombstone_ref.py
twitter_openapi_python_generated/models/tombstone_rich_text.py
+twitter_openapi_python_generated/models/topic_carousel_query_response.py
+twitter_openapi_python_generated/models/topic_carousel_query_response_data.py
twitter_openapi_python_generated/models/topic_context.py
twitter_openapi_python_generated/models/tracing.py
twitter_openapi_python_generated/models/trend_image.py
twitter_openapi_python_generated/models/trend_metadata.py
+twitter_openapi_python_generated/models/trend_promoted_metadata.py
twitter_openapi_python_generated/models/trend_results.py
twitter_openapi_python_generated/models/tweet.py
twitter_openapi_python_generated/models/tweet_card.py
@@ -1525,6 +1845,10 @@ twitter_openapi_python_generated/models/user_verification_info_reason_descriptio
twitter_openapi_python_generated/models/user_website.py
twitter_openapi_python_generated/models/users_response.py
twitter_openapi_python_generated/models/users_response_data.py
+twitter_openapi_python_generated/models/users_verified_avatars_response.py
+twitter_openapi_python_generated/models/users_verified_avatars_response_data.py
+twitter_openapi_python_generated/models/verified_avatar_user.py
+twitter_openapi_python_generated/models/verified_avatar_user_results.py
twitter_openapi_python_generated/models/viewer_badge_counts_response.py
twitter_openapi_python_generated/models/viewer_badge_counts_response_data.py
twitter_openapi_python_generated/models/viewer_badge_counts_result.py
diff --git a/twitter_openapi_python_generated/README.md b/twitter_openapi_python_generated/README.md
index b743835..48547fc 100644
--- a/twitter_openapi_python_generated/README.md
+++ b/twitter_openapi_python_generated/README.md
@@ -4,7 +4,7 @@ Twitter OpenAPI(Swagger) specification
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
- API version: 0.0.1
-- Package version: 0.1.1
+- Package version: 0.1.2
- Generator version: 7.26.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
@@ -212,17 +212,16 @@ configuration.api_key['AcceptEncoding'] = os.environ["API_KEY"]
# Enter a context with an instance of the API client
with twitter_openapi_python_generated.ApiClient(configuration) as api_client:
# Create an instance of the API class
- api_instance = twitter_openapi_python_generated.DefaultApi(api_client)
- path_query_id = 'mzoqrVGwk-YTSGME1dRfXQ' # str | (default to 'mzoqrVGwk-YTSGME1dRfXQ')
- variables = '{"screen_name": "elonmusk"}' # str | (default to '{"screen_name": "elonmusk"}')
- features = '{}' # str | (default to '{}')
+ api_instance = twitter_openapi_python_generated.BirdwatchApi(api_client)
+ path_query_id = 'LUEdtkcpBlGktUtms4BvwA' # str | (default to 'LUEdtkcpBlGktUtms4BvwA')
+ variables = '{}' # str | (default to '{}')
try:
- api_response = api_instance.get_profile_spotlights_query(path_query_id, variables, features)
- print("The response of DefaultApi->get_profile_spotlights_query:\n")
+ api_response = api_instance.get_birdwatch_fetch_alias_self_select_status(path_query_id, variables)
+ print("The response of BirdwatchApi->get_birdwatch_fetch_alias_self_select_status:\n")
pprint(api_response)
except ApiException as e:
- print("Exception when calling DefaultApi->get_profile_spotlights_query: %s\n" % e)
+ print("Exception when calling BirdwatchApi->get_birdwatch_fetch_alias_self_select_status: %s\n" % e)
```
@@ -232,6 +231,22 @@ All URIs are relative to *https://x.com/i/api*
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
+*BirdwatchApi* | [**get_birdwatch_fetch_alias_self_select_status**](docs/BirdwatchApi.md#get_birdwatch_fetch_alias_self_select_status) | **GET** /graphql/{pathQueryId}/BirdwatchFetchAliasSelfSelectStatus |
+*BirdwatchApi* | [**get_birdwatch_fetch_authenticated_user_profile**](docs/BirdwatchApi.md#get_birdwatch_fetch_authenticated_user_profile) | **GET** /graphql/{pathQueryId}/BirdwatchFetchAuthenticatedUserProfile |
+*BirdwatchApi* | [**get_birdwatch_fetch_birdwatch_profile**](docs/BirdwatchApi.md#get_birdwatch_fetch_birdwatch_profile) | **GET** /graphql/{pathQueryId}/BirdwatchFetchBirdwatchProfile |
+*BirdwatchApi* | [**get_birdwatch_fetch_global_timeline**](docs/BirdwatchApi.md#get_birdwatch_fetch_global_timeline) | **GET** /graphql/{pathQueryId}/BirdwatchFetchGlobalTimeline |
+*BirdwatchApi* | [**get_birdwatch_fetch_public_data**](docs/BirdwatchApi.md#get_birdwatch_fetch_public_data) | **GET** /graphql/{pathQueryId}/BirdwatchFetchPublicData |
+*CommunityApi* | [**get_communities_fetch_one_query**](docs/CommunityApi.md#get_communities_fetch_one_query) | **GET** /graphql/{pathQueryId}/CommunitiesFetchOneQuery |
+*CommunityApi* | [**get_communities_search_query**](docs/CommunityApi.md#get_communities_search_query) | **GET** /graphql/{pathQueryId}/CommunitiesSearchQuery |
+*CommunityApi* | [**get_community_query**](docs/CommunityApi.md#get_community_query) | **GET** /graphql/{pathQueryId}/CommunityQuery |
+*CommunityApi* | [**get_global_communities_latest_post_search_timeline**](docs/CommunityApi.md#get_global_communities_latest_post_search_timeline) | **GET** /graphql/{pathQueryId}/GlobalCommunitiesLatestPostSearchTimeline |
+*CommunityApi* | [**get_global_communities_post_search_timeline**](docs/CommunityApi.md#get_global_communities_post_search_timeline) | **GET** /graphql/{pathQueryId}/GlobalCommunitiesPostSearchTimeline |
+*CommunityApi* | [**get_topic_carousel_query**](docs/CommunityApi.md#get_topic_carousel_query) | **GET** /graphql/{pathQueryId}/TopicCarouselQuery |
+*DefaultApi* | [**get_authenticate_periscope**](docs/DefaultApi.md#get_authenticate_periscope) | **GET** /graphql/{pathQueryId}/AuthenticatePeriscope |
+*DefaultApi* | [**get_creator_studio_tab_bar_item_query**](docs/DefaultApi.md#get_creator_studio_tab_bar_item_query) | **GET** /graphql/{pathQueryId}/CreatorStudioTabBarItemQuery |
+*DefaultApi* | [**get_data_saver_mode**](docs/DefaultApi.md#get_data_saver_mode) | **GET** /graphql/{pathQueryId}/DataSaverMode |
+*DefaultApi* | [**get_grok_home**](docs/DefaultApi.md#get_grok_home) | **GET** /graphql/{pathQueryId}/GrokHome |
+*DefaultApi* | [**get_pinned_timelines**](docs/DefaultApi.md#get_pinned_timelines) | **GET** /graphql/{pathQueryId}/PinnedTimelines |
*DefaultApi* | [**get_profile_spotlights_query**](docs/DefaultApi.md#get_profile_spotlights_query) | **GET** /graphql/{pathQueryId}/ProfileSpotlightsQuery |
*DefaultApi* | [**get_tweet_result_by_rest_id**](docs/DefaultApi.md#get_tweet_result_by_rest_id) | **GET** /graphql/{pathQueryId}/TweetResultByRestId |
*OtherApi* | [**other**](docs/OtherApi.md#other) | **GET** /other |
@@ -249,6 +264,7 @@ Class | Method | HTTP request | Description
*PostApi* | [**post_list_add_member**](docs/PostApi.md#post_list_add_member) | **POST** /graphql/{pathQueryId}/ListAddMember |
*PostApi* | [**post_list_remove_member**](docs/PostApi.md#post_list_remove_member) | **POST** /graphql/{pathQueryId}/ListRemoveMember |
*PostApi* | [**post_unfavorite_tweet**](docs/PostApi.md#post_unfavorite_tweet) | **POST** /graphql/{pathQueryId}/UnfavoriteTweet |
+*TweetApi* | [**get_bookmark_search_timeline**](docs/TweetApi.md#get_bookmark_search_timeline) | **GET** /graphql/{pathQueryId}/BookmarkSearchTimeline |
*TweetApi* | [**get_bookmarks**](docs/TweetApi.md#get_bookmarks) | **GET** /graphql/{pathQueryId}/Bookmarks |
*TweetApi* | [**get_community_about_timeline**](docs/TweetApi.md#get_community_about_timeline) | **GET** /graphql/{pathQueryId}/CommunityAboutTimeline |
*TweetApi* | [**get_community_discovery_timeline**](docs/TweetApi.md#get_community_discovery_timeline) | **GET** /graphql/{pathQueryId}/CommunityDiscoveryTimeline |
@@ -256,6 +272,7 @@ Class | Method | HTTP request | Description
*TweetApi* | [**get_community_tweets_timeline**](docs/TweetApi.md#get_community_tweets_timeline) | **GET** /graphql/{pathQueryId}/CommunityTweetsTimeline |
*TweetApi* | [**get_connect_tab_timeline**](docs/TweetApi.md#get_connect_tab_timeline) | **GET** /graphql/{pathQueryId}/ConnectTabTimeline |
*TweetApi* | [**get_explore_page**](docs/TweetApi.md#get_explore_page) | **GET** /graphql/{pathQueryId}/ExplorePage |
+*TweetApi* | [**get_explore_sidebar**](docs/TweetApi.md#get_explore_sidebar) | **GET** /graphql/{pathQueryId}/ExploreSidebar |
*TweetApi* | [**get_generic_timeline_by_id**](docs/TweetApi.md#get_generic_timeline_by_id) | **GET** /graphql/{pathQueryId}/GenericTimelineById |
*TweetApi* | [**get_home_latest_timeline**](docs/TweetApi.md#get_home_latest_timeline) | **GET** /graphql/{pathQueryId}/HomeLatestTimeline |
*TweetApi* | [**get_home_timeline**](docs/TweetApi.md#get_home_timeline) | **GET** /graphql/{pathQueryId}/HomeTimeline |
@@ -279,6 +296,7 @@ Class | Method | HTTP request | Description
*UserApi* | [**get_user_by_screen_name**](docs/UserApi.md#get_user_by_screen_name) | **GET** /graphql/{pathQueryId}/UserByScreenName |
*UserApi* | [**get_viewer_badge_counts**](docs/UserApi.md#get_viewer_badge_counts) | **GET** /graphql/{pathQueryId}/ViewerBadgeCounts |
*UserListApi* | [**get_blue_verified_followers**](docs/UserListApi.md#get_blue_verified_followers) | **GET** /graphql/{pathQueryId}/BlueVerifiedFollowers |
+*UserListApi* | [**get_combined_lists**](docs/UserListApi.md#get_combined_lists) | **GET** /graphql/{pathQueryId}/CombinedLists |
*UserListApi* | [**get_favoriters**](docs/UserListApi.md#get_favoriters) | **GET** /graphql/{pathQueryId}/Favoriters |
*UserListApi* | [**get_followers**](docs/UserListApi.md#get_followers) | **GET** /graphql/{pathQueryId}/Followers |
*UserListApi* | [**get_followers_you_know**](docs/UserListApi.md#get_followers_you_know) | **GET** /graphql/{pathQueryId}/FollowersYouKnow |
@@ -288,9 +306,12 @@ Class | Method | HTTP request | Description
*UserListApi* | [**get_list_edit_recommended_users**](docs/UserListApi.md#get_list_edit_recommended_users) | **GET** /graphql/{pathQueryId}/ListEditRecommendedUsers |
*UserListApi* | [**get_list_members**](docs/UserListApi.md#get_list_members) | **GET** /graphql/{pathQueryId}/ListMembers |
*UserListApi* | [**get_list_ownerships**](docs/UserListApi.md#get_list_ownerships) | **GET** /graphql/{pathQueryId}/ListOwnerships |
+*UserListApi* | [**get_list_search_timeline**](docs/UserListApi.md#get_list_search_timeline) | **GET** /graphql/{pathQueryId}/ListSearchTimeline |
*UserListApi* | [**get_list_subscribers**](docs/UserListApi.md#get_list_subscribers) | **GET** /graphql/{pathQueryId}/ListSubscribers |
+*UserListApi* | [**get_lists_management_page_timeline**](docs/UserListApi.md#get_lists_management_page_timeline) | **GET** /graphql/{pathQueryId}/ListsManagementPageTimeline |
*UserListApi* | [**get_retweeters**](docs/UserListApi.md#get_retweeters) | **GET** /graphql/{pathQueryId}/Retweeters |
*UsersApi* | [**get_users_by_rest_ids**](docs/UsersApi.md#get_users_by_rest_ids) | **GET** /graphql/{pathQueryId}/UsersByRestIds |
+*UsersApi* | [**get_users_verified_avatars**](docs/UsersApi.md#get_users_verified_avatars) | **GET** /graphql/{pathQueryId}/UsersVerifiedAvatars |
*V11GetApi* | [**get_friends_following_list**](docs/V11GetApi.md#get_friends_following_list) | **GET** /1.1/friends/following/list.json |
*V11GetApi* | [**get_search_typeahead**](docs/V11GetApi.md#get_search_typeahead) | **GET** /1.1/search/typeahead.json |
*V11PostApi* | [**post_create_friendships**](docs/V11PostApi.md#post_create_friendships) | **POST** /1.1/friendships/create.json |
@@ -320,15 +341,38 @@ Class | Method | HTTP request | Description
- [ArticlePreview](docs/ArticlePreview.md)
- [ArticleResult](docs/ArticleResult.md)
- [ArticleResults](docs/ArticleResults.md)
+ - [AuthenticatePeriscopeResponse](docs/AuthenticatePeriscopeResponse.md)
+ - [AuthenticatePeriscopeResponseData](docs/AuthenticatePeriscopeResponseData.md)
- [AuthorCommunityRelationship](docs/AuthorCommunityRelationship.md)
- [BadgeCounts](docs/BadgeCounts.md)
+ - [BirdwatchAliasSelfSelectStatus](docs/BirdwatchAliasSelfSelectStatus.md)
- [BirdwatchEntity](docs/BirdwatchEntity.md)
- [BirdwatchEntityRef](docs/BirdwatchEntityRef.md)
+ - [BirdwatchFetchAliasSelfSelectStatusResponse](docs/BirdwatchFetchAliasSelfSelectStatusResponse.md)
+ - [BirdwatchFetchAliasSelfSelectStatusResponseData](docs/BirdwatchFetchAliasSelfSelectStatusResponseData.md)
+ - [BirdwatchFetchAuthenticatedUserProfileResponse](docs/BirdwatchFetchAuthenticatedUserProfileResponse.md)
+ - [BirdwatchFetchAuthenticatedUserProfileResponseData](docs/BirdwatchFetchAuthenticatedUserProfileResponseData.md)
+ - [BirdwatchFetchBirdwatchProfileResponse](docs/BirdwatchFetchBirdwatchProfileResponse.md)
+ - [BirdwatchFetchBirdwatchProfileResponseData](docs/BirdwatchFetchBirdwatchProfileResponseData.md)
+ - [BirdwatchFetchGlobalTimelineResponse](docs/BirdwatchFetchGlobalTimelineResponse.md)
+ - [BirdwatchFetchGlobalTimelineResponseData](docs/BirdwatchFetchGlobalTimelineResponseData.md)
+ - [BirdwatchFetchPublicDataResponse](docs/BirdwatchFetchPublicDataResponse.md)
+ - [BirdwatchFetchPublicDataResponseData](docs/BirdwatchFetchPublicDataResponseData.md)
+ - [BirdwatchHomePage](docs/BirdwatchHomePage.md)
+ - [BirdwatchHomePageBody](docs/BirdwatchHomePageBody.md)
+ - [BirdwatchHomeTimeline](docs/BirdwatchHomeTimeline.md)
- [BirdwatchPivot](docs/BirdwatchPivot.md)
- [BirdwatchPivotCallToAction](docs/BirdwatchPivotCallToAction.md)
- [BirdwatchPivotFooter](docs/BirdwatchPivotFooter.md)
- [BirdwatchPivotNote](docs/BirdwatchPivotNote.md)
- [BirdwatchPivotSubtitle](docs/BirdwatchPivotSubtitle.md)
+ - [BirdwatchProfile](docs/BirdwatchProfile.md)
+ - [BirdwatchPublicDataFile](docs/BirdwatchPublicDataFile.md)
+ - [BirdwatchPublicDataFileBundle](docs/BirdwatchPublicDataFileBundle.md)
+ - [BirdwatchViewer](docs/BirdwatchViewer.md)
+ - [BookmarkSearch](docs/BookmarkSearch.md)
+ - [BookmarkSearchTimelineResponse](docs/BookmarkSearchTimelineResponse.md)
+ - [BookmarkSearchTimelineResponseData](docs/BookmarkSearchTimelineResponseData.md)
- [BookmarksResponse](docs/BookmarksResponse.md)
- [BookmarksResponseData](docs/BookmarksResponseData.md)
- [BookmarksTimeline](docs/BookmarksTimeline.md)
@@ -339,6 +383,11 @@ Class | Method | HTTP request | Description
- [ClientEventInfo](docs/ClientEventInfo.md)
- [ClientEventInfoDetails](docs/ClientEventInfoDetails.md)
- [CommunitiesActions](docs/CommunitiesActions.md)
+ - [CommunitiesFetchOneQueryResponse](docs/CommunitiesFetchOneQueryResponse.md)
+ - [CommunitiesFetchOneQueryResponseData](docs/CommunitiesFetchOneQueryResponseData.md)
+ - [CommunitiesSearchQueryResponse](docs/CommunitiesSearchQueryResponse.md)
+ - [CommunitiesSearchQueryResponseData](docs/CommunitiesSearchQueryResponseData.md)
+ - [CommunitiesSearchSlice](docs/CommunitiesSearchSlice.md)
- [Community](docs/Community.md)
- [CommunityAboutTimelineResponse](docs/CommunityAboutTimelineResponse.md)
- [CommunityActions](docs/CommunityActions.md)
@@ -348,18 +397,49 @@ Class | Method | HTTP request | Description
- [CommunityDiscoveryTimelineResponse](docs/CommunityDiscoveryTimelineResponse.md)
- [CommunityDiscoveryTimelineResponseData](docs/CommunityDiscoveryTimelineResponseData.md)
- [CommunityDiscoveryTimelineViewer](docs/CommunityDiscoveryTimelineViewer.md)
+ - [CommunityFacepileUser](docs/CommunityFacepileUser.md)
+ - [CommunityFacepileUserResults](docs/CommunityFacepileUserResults.md)
+ - [CommunityHashtag](docs/CommunityHashtag.md)
+ - [CommunityHashtagSlice](docs/CommunityHashtagSlice.md)
+ - [CommunityIdUserResults](docs/CommunityIdUserResults.md)
- [CommunityInvitesResult](docs/CommunityInvitesResult.md)
- [CommunityJoinAction](docs/CommunityJoinAction.md)
- [CommunityJoinActionResultUnion](docs/CommunityJoinActionResultUnion.md)
- [CommunityJoinActionUnavailable](docs/CommunityJoinActionUnavailable.md)
- [CommunityJoinRequestsResult](docs/CommunityJoinRequestsResult.md)
- [CommunityLeaveActionResult](docs/CommunityLeaveActionResult.md)
+ - [CommunityListMembersActionResult](docs/CommunityListMembersActionResult.md)
- [CommunityMediaTimelineResponse](docs/CommunityMediaTimelineResponse.md)
- [CommunityModerationState](docs/CommunityModerationState.md)
+ - [CommunityPageActions](docs/CommunityPageActions.md)
+ - [CommunityPageCommunity](docs/CommunityPageCommunity.md)
+ - [CommunityPageDeleteActionResult](docs/CommunityPageDeleteActionResult.md)
+ - [CommunityPageInvitesResult](docs/CommunityPageInvitesResult.md)
+ - [CommunityPageJoinActionResult](docs/CommunityPageJoinActionResult.md)
+ - [CommunityPageLeaveActionResult](docs/CommunityPageLeaveActionResult.md)
+ - [CommunityPagePinActionResult](docs/CommunityPagePinActionResult.md)
+ - [CommunityPageResults](docs/CommunityPageResults.md)
- [CommunityPinActionResult](docs/CommunityPinActionResult.md)
+ - [CommunityPrimaryTopicName](docs/CommunityPrimaryTopicName.md)
+ - [CommunityQueryResponse](docs/CommunityQueryResponse.md)
+ - [CommunityQueryResponseData](docs/CommunityQueryResponseData.md)
- [CommunityRelationship](docs/CommunityRelationship.md)
+ - [CommunityRelayRule](docs/CommunityRelayRule.md)
- [CommunityResult](docs/CommunityResult.md)
- [CommunityRule](docs/CommunityRule.md)
+ - [CommunitySearchCommunity](docs/CommunitySearchCommunity.md)
+ - [CommunitySearchResults](docs/CommunitySearchResults.md)
+ - [CommunitySettingsActions](docs/CommunitySettingsActions.md)
+ - [CommunitySettingsCommunity](docs/CommunitySettingsCommunity.md)
+ - [CommunitySettingsCreator](docs/CommunitySettingsCreator.md)
+ - [CommunitySettingsCreatorCore](docs/CommunitySettingsCreatorCore.md)
+ - [CommunitySettingsCreatorResults](docs/CommunitySettingsCreatorResults.md)
+ - [CommunitySettingsCreatorVerification](docs/CommunitySettingsCreatorVerification.md)
+ - [CommunitySettingsInvitesResult](docs/CommunitySettingsInvitesResult.md)
+ - [CommunitySettingsResults](docs/CommunitySettingsResults.md)
+ - [CommunitySubtopic](docs/CommunitySubtopic.md)
+ - [CommunityTopic](docs/CommunityTopic.md)
+ - [CommunityTopicResults](docs/CommunityTopicResults.md)
- [CommunityTweetsTimelineResponse](docs/CommunityTweetsTimelineResponse.md)
- [CommunityUnavailable](docs/CommunityUnavailable.md)
- [CommunityUnion](docs/CommunityUnion.md)
@@ -395,10 +475,14 @@ Class | Method | HTTP request | Description
- [CreateTweetResponse](docs/CreateTweetResponse.md)
- [CreateTweetResponseData](docs/CreateTweetResponseData.md)
- [CreateTweetResponseResult](docs/CreateTweetResponseResult.md)
+ - [CreatorStudioTabBarItemQueryResponse](docs/CreatorStudioTabBarItemQueryResponse.md)
+ - [CreatorStudioTabBarItemQueryResponseData](docs/CreatorStudioTabBarItemQueryResponseData.md)
- [CtaClientEventInfo](docs/CtaClientEventInfo.md)
- [CtaLimitedActionPrompt](docs/CtaLimitedActionPrompt.md)
- [CtaLimitedActionPromptText](docs/CtaLimitedActionPromptText.md)
- [CursorType](docs/CursorType.md)
+ - [DataSaverModeResponse](docs/DataSaverModeResponse.md)
+ - [DataSaverModeResponseData](docs/DataSaverModeResponseData.md)
- [DeepsearchHeader](docs/DeepsearchHeader.md)
- [DeepsearchStep](docs/DeepsearchStep.md)
- [DeepsearchWebResult](docs/DeepsearchWebResult.md)
@@ -427,10 +511,18 @@ Class | Method | HTTP request | Description
- [ErrorExtensions](docs/ErrorExtensions.md)
- [ErrorResponse](docs/ErrorResponse.md)
- [ErrorResponsePathInner](docs/ErrorResponsePathInner.md)
+ - [EventSummaryAdMetadataContainer](docs/EventSummaryAdMetadataContainer.md)
+ - [EventSummaryEvent](docs/EventSummaryEvent.md)
+ - [EventSummaryMedia](docs/EventSummaryMedia.md)
+ - [EventSummaryMediaEntity](docs/EventSummaryMediaEntity.md)
+ - [EventSummaryMediaKey](docs/EventSummaryMediaKey.md)
+ - [EventSummaryPromotedMetadata](docs/EventSummaryPromotedMetadata.md)
- [ExplorePage](docs/ExplorePage.md)
- [ExplorePageBody](docs/ExplorePageBody.md)
- [ExplorePageResponse](docs/ExplorePageResponse.md)
- [ExplorePageResponseData](docs/ExplorePageResponseData.md)
+ - [ExploreSidebarResponse](docs/ExploreSidebarResponse.md)
+ - [ExploreSidebarResponseData](docs/ExploreSidebarResponseData.md)
- [ExploreTimeline](docs/ExploreTimeline.md)
- [ExploreTimelineScribeConfig](docs/ExploreTimelineScribeConfig.md)
- [ExtMediaAvailability](docs/ExtMediaAvailability.md)
@@ -452,10 +544,23 @@ Class | Method | HTTP request | Description
- [FollowTimeline](docs/FollowTimeline.md)
- [GenericTimelineByIdResponse](docs/GenericTimelineByIdResponse.md)
- [GenericTimelineByIdResponseData](docs/GenericTimelineByIdResponseData.md)
+ - [GlobalCommunitiesLatestPostSearch](docs/GlobalCommunitiesLatestPostSearch.md)
+ - [GlobalCommunitiesLatestPostSearchTimelineResponse](docs/GlobalCommunitiesLatestPostSearchTimelineResponse.md)
+ - [GlobalCommunitiesLatestPostSearchTimelineResponseData](docs/GlobalCommunitiesLatestPostSearchTimelineResponseData.md)
+ - [GlobalCommunitiesPostSearch](docs/GlobalCommunitiesPostSearch.md)
+ - [GlobalCommunitiesPostSearchTimelineResponse](docs/GlobalCommunitiesPostSearchTimelineResponse.md)
+ - [GlobalCommunitiesPostSearchTimelineResponseData](docs/GlobalCommunitiesPostSearchTimelineResponseData.md)
- [GrokAnnotation](docs/GrokAnnotation.md)
- [GrokEntity](docs/GrokEntity.md)
- [GrokEntityRef](docs/GrokEntityRef.md)
+ - [GrokHome](docs/GrokHome.md)
+ - [GrokHomeLayout](docs/GrokHomeLayout.md)
+ - [GrokHomeLayoutSection](docs/GrokHomeLayoutSection.md)
+ - [GrokHomePrompt](docs/GrokHomePrompt.md)
+ - [GrokHomeResponse](docs/GrokHomeResponse.md)
+ - [GrokHomeResponseData](docs/GrokHomeResponseData.md)
- [GrokImageAnnotation](docs/GrokImageAnnotation.md)
+ - [GrokModelOption](docs/GrokModelOption.md)
- [GrokShareAttachment](docs/GrokShareAttachment.md)
- [GrokShareAttachmentItem](docs/GrokShareAttachmentItem.md)
- [GrokTranslatedBio](docs/GrokTranslatedBio.md)
@@ -491,11 +596,17 @@ Class | Method | HTTP request | Description
- [ListRecommendedUsersResponseData](docs/ListRecommendedUsersResponseData.md)
- [ListResponse](docs/ListResponse.md)
- [ListResponseData](docs/ListResponseData.md)
+ - [ListSearch](docs/ListSearch.md)
+ - [ListSearchTimelineResponse](docs/ListSearchTimelineResponse.md)
+ - [ListSearchTimelineResponseData](docs/ListSearchTimelineResponseData.md)
- [ListSubscribersList](docs/ListSubscribersList.md)
- [ListSubscribersResponse](docs/ListSubscribersResponse.md)
- [ListSubscribersResponseData](docs/ListSubscribersResponseData.md)
- [ListTweetsTimelineData](docs/ListTweetsTimelineData.md)
- [ListTweetsTimelineList](docs/ListTweetsTimelineList.md)
+ - [ListsManagementPageTimelineResponse](docs/ListsManagementPageTimelineResponse.md)
+ - [ListsManagementPageTimelineResponseData](docs/ListsManagementPageTimelineResponseData.md)
+ - [ListsManagementViewer](docs/ListsManagementViewer.md)
- [Location](docs/Location.md)
- [Media](docs/Media.md)
- [MediaColorInfo](docs/MediaColorInfo.md)
@@ -529,6 +640,7 @@ Class | Method | HTTP request | Description
- [NoteTweetResultMediaInlineMedia](docs/NoteTweetResultMediaInlineMedia.md)
- [NoteTweetResultRichText](docs/NoteTweetResultRichText.md)
- [NoteTweetResultRichTextTag](docs/NoteTweetResultRichTextTag.md)
+ - [NotificationDetails](docs/NotificationDetails.md)
- [NotificationTemplate](docs/NotificationTemplate.md)
- [NotificationsResult](docs/NotificationsResult.md)
- [NotificationsTimelineData](docs/NotificationsTimelineData.md)
@@ -537,6 +649,9 @@ Class | Method | HTTP request | Description
- [NotificationsViewerV2](docs/NotificationsViewerV2.md)
- [OneFactorLoginEligibility](docs/OneFactorLoginEligibility.md)
- [OtherObjectAll](docs/OtherObjectAll.md)
+ - [PinnedTimelines](docs/PinnedTimelines.md)
+ - [PinnedTimelinesResponse](docs/PinnedTimelinesResponse.md)
+ - [PinnedTimelinesResponseData](docs/PinnedTimelinesResponseData.md)
- [PostCreateBookmarkRequest](docs/PostCreateBookmarkRequest.md)
- [PostCreateBookmarkRequestVariables](docs/PostCreateBookmarkRequestVariables.md)
- [PostCreateDraftTweetRequest](docs/PostCreateDraftTweetRequest.md)
@@ -581,6 +696,7 @@ Class | Method | HTTP request | Description
- [ProfileResponse](docs/ProfileResponse.md)
- [ProfileResponseData](docs/ProfileResponseData.md)
- [PromotedMetadata](docs/PromotedMetadata.md)
+ - [PromotedTrend](docs/PromotedTrend.md)
- [QuotedRefResult](docs/QuotedRefResult.md)
- [QuotedStatusPermalink](docs/QuotedStatusPermalink.md)
- [RankedCommunityResult](docs/RankedCommunityResult.md)
@@ -590,6 +706,8 @@ Class | Method | HTTP request | Description
- [Retweet](docs/Retweet.md)
- [RetweetLegacy](docs/RetweetLegacy.md)
- [RichMessage](docs/RichMessage.md)
+ - [RichMessageEntity](docs/RichMessageEntity.md)
+ - [RichMessageEntityRef](docs/RichMessageEntityRef.md)
- [ScheduledTweetsViewer](docs/ScheduledTweetsViewer.md)
- [ScribeConfig](docs/ScribeConfig.md)
- [SearchByRawQuery](docs/SearchByRawQuery.md)
@@ -599,6 +717,7 @@ Class | Method | HTTP request | Description
- [SelfThread](docs/SelfThread.md)
- [SensitiveMediaWarning](docs/SensitiveMediaWarning.md)
- [Session](docs/Session.md)
+ - [SliceInfo](docs/SliceInfo.md)
- [Smarttag](docs/Smarttag.md)
- [SmarttagTag](docs/SmarttagTag.md)
- [SmarttagTagInfo](docs/SmarttagTagInfo.md)
@@ -625,6 +744,7 @@ Class | Method | HTTP request | Description
- [TimelineCommunity](docs/TimelineCommunity.md)
- [TimelineCoverBehavior](docs/TimelineCoverBehavior.md)
- [TimelineCoverBehaviorUrl](docs/TimelineCoverBehaviorUrl.md)
+ - [TimelineEventSummary](docs/TimelineEventSummary.md)
- [TimelineFrame](docs/TimelineFrame.md)
- [TimelineGeneralContext](docs/TimelineGeneralContext.md)
- [TimelineHalfCover](docs/TimelineHalfCover.md)
@@ -668,10 +788,13 @@ Class | Method | HTTP request | Description
- [TombstoneInfo](docs/TombstoneInfo.md)
- [TombstoneRef](docs/TombstoneRef.md)
- [TombstoneRichText](docs/TombstoneRichText.md)
+ - [TopicCarouselQueryResponse](docs/TopicCarouselQueryResponse.md)
+ - [TopicCarouselQueryResponseData](docs/TopicCarouselQueryResponseData.md)
- [TopicContext](docs/TopicContext.md)
- [Tracing](docs/Tracing.md)
- [TrendImage](docs/TrendImage.md)
- [TrendMetadata](docs/TrendMetadata.md)
+ - [TrendPromotedMetadata](docs/TrendPromotedMetadata.md)
- [TrendResults](docs/TrendResults.md)
- [Tweet](docs/Tweet.md)
- [TweetCard](docs/TweetCard.md)
@@ -789,6 +912,10 @@ Class | Method | HTTP request | Description
- [UserWebsite](docs/UserWebsite.md)
- [UsersResponse](docs/UsersResponse.md)
- [UsersResponseData](docs/UsersResponseData.md)
+ - [UsersVerifiedAvatarsResponse](docs/UsersVerifiedAvatarsResponse.md)
+ - [UsersVerifiedAvatarsResponseData](docs/UsersVerifiedAvatarsResponseData.md)
+ - [VerifiedAvatarUser](docs/VerifiedAvatarUser.md)
+ - [VerifiedAvatarUserResults](docs/VerifiedAvatarUserResults.md)
- [ViewerBadgeCountsResponse](docs/ViewerBadgeCountsResponse.md)
- [ViewerBadgeCountsResponseData](docs/ViewerBadgeCountsResponseData.md)
- [ViewerBadgeCountsResult](docs/ViewerBadgeCountsResult.md)
diff --git a/twitter_openapi_python_generated/docs/AdMetadataContainer.md b/twitter_openapi_python_generated/docs/AdMetadataContainer.md
index c6c9257..2b309c8 100644
--- a/twitter_openapi_python_generated/docs/AdMetadataContainer.md
+++ b/twitter_openapi_python_generated/docs/AdMetadataContainer.md
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
**render_legacy_website_card** | **bool** | |
**render_sales_cta_website_card** | **bool** | |
**show_overlay_on_first_card** | **bool** | | [optional]
+**unified_card_override** | **str** | | [optional]
## Example
diff --git a/twitter_openapi_python_generated/docs/AuthenticatePeriscopeResponse.md b/twitter_openapi_python_generated/docs/AuthenticatePeriscopeResponse.md
new file mode 100644
index 0000000..4b74761
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/AuthenticatePeriscopeResponse.md
@@ -0,0 +1,30 @@
+# AuthenticatePeriscopeResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**data** | [**AuthenticatePeriscopeResponseData**](AuthenticatePeriscopeResponseData.md) | |
+**errors** | [**List[ErrorResponse]**](ErrorResponse.md) | | [optional]
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.authenticate_periscope_response import AuthenticatePeriscopeResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of AuthenticatePeriscopeResponse from a JSON string
+authenticate_periscope_response_instance = AuthenticatePeriscopeResponse.from_json(json)
+# print the JSON string representation of the object
+print(AuthenticatePeriscopeResponse.to_json())
+
+# convert the object into a dict
+authenticate_periscope_response_dict = authenticate_periscope_response_instance.to_dict()
+# create an instance of AuthenticatePeriscopeResponse from a dict
+authenticate_periscope_response_from_dict = AuthenticatePeriscopeResponse.from_dict(authenticate_periscope_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/AuthenticatePeriscopeResponseData.md b/twitter_openapi_python_generated/docs/AuthenticatePeriscopeResponseData.md
new file mode 100644
index 0000000..ef9bb3e
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/AuthenticatePeriscopeResponseData.md
@@ -0,0 +1,29 @@
+# AuthenticatePeriscopeResponseData
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**authenticate_periscope** | **str** | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.authenticate_periscope_response_data import AuthenticatePeriscopeResponseData
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of AuthenticatePeriscopeResponseData from a JSON string
+authenticate_periscope_response_data_instance = AuthenticatePeriscopeResponseData.from_json(json)
+# print the JSON string representation of the object
+print(AuthenticatePeriscopeResponseData.to_json())
+
+# convert the object into a dict
+authenticate_periscope_response_data_dict = authenticate_periscope_response_data_instance.to_dict()
+# create an instance of AuthenticatePeriscopeResponseData from a dict
+authenticate_periscope_response_data_from_dict = AuthenticatePeriscopeResponseData.from_dict(authenticate_periscope_response_data_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/BirdwatchAliasSelfSelectStatus.md b/twitter_openapi_python_generated/docs/BirdwatchAliasSelfSelectStatus.md
new file mode 100644
index 0000000..2979a82
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/BirdwatchAliasSelfSelectStatus.md
@@ -0,0 +1,30 @@
+# BirdwatchAliasSelfSelectStatus
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**can_select** | **bool** | |
+**has_selected** | **bool** | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.birdwatch_alias_self_select_status import BirdwatchAliasSelfSelectStatus
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of BirdwatchAliasSelfSelectStatus from a JSON string
+birdwatch_alias_self_select_status_instance = BirdwatchAliasSelfSelectStatus.from_json(json)
+# print the JSON string representation of the object
+print(BirdwatchAliasSelfSelectStatus.to_json())
+
+# convert the object into a dict
+birdwatch_alias_self_select_status_dict = birdwatch_alias_self_select_status_instance.to_dict()
+# create an instance of BirdwatchAliasSelfSelectStatus from a dict
+birdwatch_alias_self_select_status_from_dict = BirdwatchAliasSelfSelectStatus.from_dict(birdwatch_alias_self_select_status_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/BirdwatchApi.md b/twitter_openapi_python_generated/docs/BirdwatchApi.md
new file mode 100644
index 0000000..8229b81
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/BirdwatchApi.md
@@ -0,0 +1,1176 @@
+# twitter_openapi_python_generated.BirdwatchApi
+
+All URIs are relative to *https://x.com/i/api*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**get_birdwatch_fetch_alias_self_select_status**](BirdwatchApi.md#get_birdwatch_fetch_alias_self_select_status) | **GET** /graphql/{pathQueryId}/BirdwatchFetchAliasSelfSelectStatus |
+[**get_birdwatch_fetch_authenticated_user_profile**](BirdwatchApi.md#get_birdwatch_fetch_authenticated_user_profile) | **GET** /graphql/{pathQueryId}/BirdwatchFetchAuthenticatedUserProfile |
+[**get_birdwatch_fetch_birdwatch_profile**](BirdwatchApi.md#get_birdwatch_fetch_birdwatch_profile) | **GET** /graphql/{pathQueryId}/BirdwatchFetchBirdwatchProfile |
+[**get_birdwatch_fetch_global_timeline**](BirdwatchApi.md#get_birdwatch_fetch_global_timeline) | **GET** /graphql/{pathQueryId}/BirdwatchFetchGlobalTimeline |
+[**get_birdwatch_fetch_public_data**](BirdwatchApi.md#get_birdwatch_fetch_public_data) | **GET** /graphql/{pathQueryId}/BirdwatchFetchPublicData |
+
+
+# **get_birdwatch_fetch_alias_self_select_status**
+> BirdwatchFetchAliasSelfSelectStatusResponse get_birdwatch_fetch_alias_self_select_status(path_query_id, variables)
+
+whether the account can pick / has picked a Community Notes alias
+
+### Example
+
+* Api Key Authentication (Accept):
+* Api Key Authentication (ClientLanguage):
+* Api Key Authentication (Priority):
+* Api Key Authentication (Referer):
+* Api Key Authentication (SecFetchDest):
+* Api Key Authentication (SecChUaPlatform):
+* Api Key Authentication (SecFetchMode):
+* Api Key Authentication (CsrfToken):
+* Api Key Authentication (ClientUuid):
+* Bearer Authentication (BearerAuth):
+* Api Key Authentication (GuestToken):
+* Api Key Authentication (SecChUa):
+* Api Key Authentication (CookieGt0):
+* Api Key Authentication (ClientTransactionId):
+* Api Key Authentication (ActiveUser):
+* Api Key Authentication (CookieCt0):
+* Api Key Authentication (UserAgent):
+* Api Key Authentication (AcceptLanguage):
+* Api Key Authentication (SecFetchSite):
+* Api Key Authentication (AuthType):
+* Api Key Authentication (CookieAuthToken):
+* Api Key Authentication (SecChUaMobile):
+* Api Key Authentication (AcceptEncoding):
+
+```python
+import twitter_openapi_python_generated
+from twitter_openapi_python_generated.models.birdwatch_fetch_alias_self_select_status_response import BirdwatchFetchAliasSelfSelectStatusResponse
+from twitter_openapi_python_generated.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://x.com/i/api
+# See configuration.py for a list of all supported configuration parameters.
+configuration = twitter_openapi_python_generated.Configuration(
+ host = "https://x.com/i/api"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: Accept
+configuration.api_key['Accept'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Accept'] = 'Bearer'
+
+# Configure API key authorization: ClientLanguage
+configuration.api_key['ClientLanguage'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientLanguage'] = 'Bearer'
+
+# Configure API key authorization: Priority
+configuration.api_key['Priority'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Priority'] = 'Bearer'
+
+# Configure API key authorization: Referer
+configuration.api_key['Referer'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Referer'] = 'Bearer'
+
+# Configure API key authorization: SecFetchDest
+configuration.api_key['SecFetchDest'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchDest'] = 'Bearer'
+
+# Configure API key authorization: SecChUaPlatform
+configuration.api_key['SecChUaPlatform'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUaPlatform'] = 'Bearer'
+
+# Configure API key authorization: SecFetchMode
+configuration.api_key['SecFetchMode'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchMode'] = 'Bearer'
+
+# Configure API key authorization: CsrfToken
+configuration.api_key['CsrfToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CsrfToken'] = 'Bearer'
+
+# Configure API key authorization: ClientUuid
+configuration.api_key['ClientUuid'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientUuid'] = 'Bearer'
+
+# Configure Bearer authorization: BearerAuth
+configuration = twitter_openapi_python_generated.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Configure API key authorization: GuestToken
+configuration.api_key['GuestToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['GuestToken'] = 'Bearer'
+
+# Configure API key authorization: SecChUa
+configuration.api_key['SecChUa'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUa'] = 'Bearer'
+
+# Configure API key authorization: CookieGt0
+configuration.api_key['CookieGt0'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieGt0'] = 'Bearer'
+
+# Configure API key authorization: ClientTransactionId
+configuration.api_key['ClientTransactionId'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientTransactionId'] = 'Bearer'
+
+# Configure API key authorization: ActiveUser
+configuration.api_key['ActiveUser'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ActiveUser'] = 'Bearer'
+
+# Configure API key authorization: CookieCt0
+configuration.api_key['CookieCt0'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieCt0'] = 'Bearer'
+
+# Configure API key authorization: UserAgent
+configuration.api_key['UserAgent'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['UserAgent'] = 'Bearer'
+
+# Configure API key authorization: AcceptLanguage
+configuration.api_key['AcceptLanguage'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AcceptLanguage'] = 'Bearer'
+
+# Configure API key authorization: SecFetchSite
+configuration.api_key['SecFetchSite'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchSite'] = 'Bearer'
+
+# Configure API key authorization: AuthType
+configuration.api_key['AuthType'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AuthType'] = 'Bearer'
+
+# Configure API key authorization: CookieAuthToken
+configuration.api_key['CookieAuthToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieAuthToken'] = 'Bearer'
+
+# Configure API key authorization: SecChUaMobile
+configuration.api_key['SecChUaMobile'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUaMobile'] = 'Bearer'
+
+# Configure API key authorization: AcceptEncoding
+configuration.api_key['AcceptEncoding'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AcceptEncoding'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with twitter_openapi_python_generated.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = twitter_openapi_python_generated.BirdwatchApi(api_client)
+ path_query_id = 'LUEdtkcpBlGktUtms4BvwA' # str | (default to 'LUEdtkcpBlGktUtms4BvwA')
+ variables = '{}' # str | (default to '{}')
+
+ try:
+ api_response = api_instance.get_birdwatch_fetch_alias_self_select_status(path_query_id, variables)
+ print("The response of BirdwatchApi->get_birdwatch_fetch_alias_self_select_status:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling BirdwatchApi->get_birdwatch_fetch_alias_self_select_status: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **path_query_id** | **str**| | [default to 'LUEdtkcpBlGktUtms4BvwA']
+ **variables** | **str**| | [default to '{}']
+
+### Return type
+
+[**BirdwatchFetchAliasSelfSelectStatusResponse**](BirdwatchFetchAliasSelfSelectStatusResponse.md)
+
+### Authorization
+
+[Accept](../README.md#Accept), [ClientLanguage](../README.md#ClientLanguage), [Priority](../README.md#Priority), [Referer](../README.md#Referer), [SecFetchDest](../README.md#SecFetchDest), [SecChUaPlatform](../README.md#SecChUaPlatform), [SecFetchMode](../README.md#SecFetchMode), [CsrfToken](../README.md#CsrfToken), [ClientUuid](../README.md#ClientUuid), [BearerAuth](../README.md#BearerAuth), [GuestToken](../README.md#GuestToken), [SecChUa](../README.md#SecChUa), [CookieGt0](../README.md#CookieGt0), [ClientTransactionId](../README.md#ClientTransactionId), [ActiveUser](../README.md#ActiveUser), [CookieCt0](../README.md#CookieCt0), [UserAgent](../README.md#UserAgent), [AcceptLanguage](../README.md#AcceptLanguage), [SecFetchSite](../README.md#SecFetchSite), [AuthType](../README.md#AuthType), [CookieAuthToken](../README.md#CookieAuthToken), [SecChUaMobile](../README.md#SecChUaMobile), [AcceptEncoding](../README.md#AcceptEncoding)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful operation | * x-connection-hash -
* x-rate-limit-limit -
* x-rate-limit-remaining -
* x-rate-limit-reset -
* x-response-time -
* x-tfe-preserve-body -
* x-transaction-id -
* x-twitter-response-tags -
|
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_birdwatch_fetch_authenticated_user_profile**
+> BirdwatchFetchAuthenticatedUserProfileResponse get_birdwatch_fetch_authenticated_user_profile(path_query_id, features, variables)
+
+the account's Community Notes profile
+
+### Example
+
+* Api Key Authentication (Accept):
+* Api Key Authentication (ClientLanguage):
+* Api Key Authentication (Priority):
+* Api Key Authentication (Referer):
+* Api Key Authentication (SecFetchDest):
+* Api Key Authentication (SecChUaPlatform):
+* Api Key Authentication (SecFetchMode):
+* Api Key Authentication (CsrfToken):
+* Api Key Authentication (ClientUuid):
+* Bearer Authentication (BearerAuth):
+* Api Key Authentication (GuestToken):
+* Api Key Authentication (SecChUa):
+* Api Key Authentication (CookieGt0):
+* Api Key Authentication (ClientTransactionId):
+* Api Key Authentication (ActiveUser):
+* Api Key Authentication (CookieCt0):
+* Api Key Authentication (UserAgent):
+* Api Key Authentication (AcceptLanguage):
+* Api Key Authentication (SecFetchSite):
+* Api Key Authentication (AuthType):
+* Api Key Authentication (CookieAuthToken):
+* Api Key Authentication (SecChUaMobile):
+* Api Key Authentication (AcceptEncoding):
+
+```python
+import twitter_openapi_python_generated
+from twitter_openapi_python_generated.models.birdwatch_fetch_authenticated_user_profile_response import BirdwatchFetchAuthenticatedUserProfileResponse
+from twitter_openapi_python_generated.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://x.com/i/api
+# See configuration.py for a list of all supported configuration parameters.
+configuration = twitter_openapi_python_generated.Configuration(
+ host = "https://x.com/i/api"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: Accept
+configuration.api_key['Accept'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Accept'] = 'Bearer'
+
+# Configure API key authorization: ClientLanguage
+configuration.api_key['ClientLanguage'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientLanguage'] = 'Bearer'
+
+# Configure API key authorization: Priority
+configuration.api_key['Priority'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Priority'] = 'Bearer'
+
+# Configure API key authorization: Referer
+configuration.api_key['Referer'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Referer'] = 'Bearer'
+
+# Configure API key authorization: SecFetchDest
+configuration.api_key['SecFetchDest'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchDest'] = 'Bearer'
+
+# Configure API key authorization: SecChUaPlatform
+configuration.api_key['SecChUaPlatform'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUaPlatform'] = 'Bearer'
+
+# Configure API key authorization: SecFetchMode
+configuration.api_key['SecFetchMode'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchMode'] = 'Bearer'
+
+# Configure API key authorization: CsrfToken
+configuration.api_key['CsrfToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CsrfToken'] = 'Bearer'
+
+# Configure API key authorization: ClientUuid
+configuration.api_key['ClientUuid'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientUuid'] = 'Bearer'
+
+# Configure Bearer authorization: BearerAuth
+configuration = twitter_openapi_python_generated.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Configure API key authorization: GuestToken
+configuration.api_key['GuestToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['GuestToken'] = 'Bearer'
+
+# Configure API key authorization: SecChUa
+configuration.api_key['SecChUa'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUa'] = 'Bearer'
+
+# Configure API key authorization: CookieGt0
+configuration.api_key['CookieGt0'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieGt0'] = 'Bearer'
+
+# Configure API key authorization: ClientTransactionId
+configuration.api_key['ClientTransactionId'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientTransactionId'] = 'Bearer'
+
+# Configure API key authorization: ActiveUser
+configuration.api_key['ActiveUser'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ActiveUser'] = 'Bearer'
+
+# Configure API key authorization: CookieCt0
+configuration.api_key['CookieCt0'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieCt0'] = 'Bearer'
+
+# Configure API key authorization: UserAgent
+configuration.api_key['UserAgent'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['UserAgent'] = 'Bearer'
+
+# Configure API key authorization: AcceptLanguage
+configuration.api_key['AcceptLanguage'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AcceptLanguage'] = 'Bearer'
+
+# Configure API key authorization: SecFetchSite
+configuration.api_key['SecFetchSite'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchSite'] = 'Bearer'
+
+# Configure API key authorization: AuthType
+configuration.api_key['AuthType'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AuthType'] = 'Bearer'
+
+# Configure API key authorization: CookieAuthToken
+configuration.api_key['CookieAuthToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieAuthToken'] = 'Bearer'
+
+# Configure API key authorization: SecChUaMobile
+configuration.api_key['SecChUaMobile'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUaMobile'] = 'Bearer'
+
+# Configure API key authorization: AcceptEncoding
+configuration.api_key['AcceptEncoding'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AcceptEncoding'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with twitter_openapi_python_generated.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = twitter_openapi_python_generated.BirdwatchApi(api_client)
+ path_query_id = 'kD74-qBfrdRT5rO9YOl57g' # str | (default to 'kD74-qBfrdRT5rO9YOl57g')
+ features = '{"responsive_web_birdwatch_top_contributor_enabled": true, "responsive_web_birdwatch_mobile_nav_setting_enabled": false, "responsive_web_birdwatch_note_limit_enabled": true}' # str | (default to '{"responsive_web_birdwatch_top_contributor_enabled": true, "responsive_web_birdwatch_mobile_nav_setting_enabled": false, "responsive_web_birdwatch_note_limit_enabled": true}')
+ variables = '{}' # str | (default to '{}')
+
+ try:
+ api_response = api_instance.get_birdwatch_fetch_authenticated_user_profile(path_query_id, features, variables)
+ print("The response of BirdwatchApi->get_birdwatch_fetch_authenticated_user_profile:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling BirdwatchApi->get_birdwatch_fetch_authenticated_user_profile: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **path_query_id** | **str**| | [default to 'kD74-qBfrdRT5rO9YOl57g']
+ **features** | **str**| | [default to '{"responsive_web_birdwatch_top_contributor_enabled": true, "responsive_web_birdwatch_mobile_nav_setting_enabled": false, "responsive_web_birdwatch_note_limit_enabled": true}']
+ **variables** | **str**| | [default to '{}']
+
+### Return type
+
+[**BirdwatchFetchAuthenticatedUserProfileResponse**](BirdwatchFetchAuthenticatedUserProfileResponse.md)
+
+### Authorization
+
+[Accept](../README.md#Accept), [ClientLanguage](../README.md#ClientLanguage), [Priority](../README.md#Priority), [Referer](../README.md#Referer), [SecFetchDest](../README.md#SecFetchDest), [SecChUaPlatform](../README.md#SecChUaPlatform), [SecFetchMode](../README.md#SecFetchMode), [CsrfToken](../README.md#CsrfToken), [ClientUuid](../README.md#ClientUuid), [BearerAuth](../README.md#BearerAuth), [GuestToken](../README.md#GuestToken), [SecChUa](../README.md#SecChUa), [CookieGt0](../README.md#CookieGt0), [ClientTransactionId](../README.md#ClientTransactionId), [ActiveUser](../README.md#ActiveUser), [CookieCt0](../README.md#CookieCt0), [UserAgent](../README.md#UserAgent), [AcceptLanguage](../README.md#AcceptLanguage), [SecFetchSite](../README.md#SecFetchSite), [AuthType](../README.md#AuthType), [CookieAuthToken](../README.md#CookieAuthToken), [SecChUaMobile](../README.md#SecChUaMobile), [AcceptEncoding](../README.md#AcceptEncoding)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful operation | * x-connection-hash -
* x-rate-limit-limit -
* x-rate-limit-remaining -
* x-rate-limit-reset -
* x-response-time -
* x-tfe-preserve-body -
* x-transaction-id -
* x-twitter-response-tags -
|
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_birdwatch_fetch_birdwatch_profile**
+> BirdwatchFetchBirdwatchProfileResponse get_birdwatch_fetch_birdwatch_profile(path_query_id, features, variables)
+
+a Community Notes profile by alias
+
+### Example
+
+* Api Key Authentication (Accept):
+* Api Key Authentication (ClientLanguage):
+* Api Key Authentication (Priority):
+* Api Key Authentication (Referer):
+* Api Key Authentication (SecFetchDest):
+* Api Key Authentication (SecChUaPlatform):
+* Api Key Authentication (SecFetchMode):
+* Api Key Authentication (CsrfToken):
+* Api Key Authentication (ClientUuid):
+* Bearer Authentication (BearerAuth):
+* Api Key Authentication (GuestToken):
+* Api Key Authentication (SecChUa):
+* Api Key Authentication (CookieGt0):
+* Api Key Authentication (ClientTransactionId):
+* Api Key Authentication (ActiveUser):
+* Api Key Authentication (CookieCt0):
+* Api Key Authentication (UserAgent):
+* Api Key Authentication (AcceptLanguage):
+* Api Key Authentication (SecFetchSite):
+* Api Key Authentication (AuthType):
+* Api Key Authentication (CookieAuthToken):
+* Api Key Authentication (SecChUaMobile):
+* Api Key Authentication (AcceptEncoding):
+
+```python
+import twitter_openapi_python_generated
+from twitter_openapi_python_generated.models.birdwatch_fetch_birdwatch_profile_response import BirdwatchFetchBirdwatchProfileResponse
+from twitter_openapi_python_generated.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://x.com/i/api
+# See configuration.py for a list of all supported configuration parameters.
+configuration = twitter_openapi_python_generated.Configuration(
+ host = "https://x.com/i/api"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: Accept
+configuration.api_key['Accept'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Accept'] = 'Bearer'
+
+# Configure API key authorization: ClientLanguage
+configuration.api_key['ClientLanguage'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientLanguage'] = 'Bearer'
+
+# Configure API key authorization: Priority
+configuration.api_key['Priority'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Priority'] = 'Bearer'
+
+# Configure API key authorization: Referer
+configuration.api_key['Referer'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Referer'] = 'Bearer'
+
+# Configure API key authorization: SecFetchDest
+configuration.api_key['SecFetchDest'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchDest'] = 'Bearer'
+
+# Configure API key authorization: SecChUaPlatform
+configuration.api_key['SecChUaPlatform'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUaPlatform'] = 'Bearer'
+
+# Configure API key authorization: SecFetchMode
+configuration.api_key['SecFetchMode'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchMode'] = 'Bearer'
+
+# Configure API key authorization: CsrfToken
+configuration.api_key['CsrfToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CsrfToken'] = 'Bearer'
+
+# Configure API key authorization: ClientUuid
+configuration.api_key['ClientUuid'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientUuid'] = 'Bearer'
+
+# Configure Bearer authorization: BearerAuth
+configuration = twitter_openapi_python_generated.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Configure API key authorization: GuestToken
+configuration.api_key['GuestToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['GuestToken'] = 'Bearer'
+
+# Configure API key authorization: SecChUa
+configuration.api_key['SecChUa'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUa'] = 'Bearer'
+
+# Configure API key authorization: CookieGt0
+configuration.api_key['CookieGt0'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieGt0'] = 'Bearer'
+
+# Configure API key authorization: ClientTransactionId
+configuration.api_key['ClientTransactionId'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientTransactionId'] = 'Bearer'
+
+# Configure API key authorization: ActiveUser
+configuration.api_key['ActiveUser'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ActiveUser'] = 'Bearer'
+
+# Configure API key authorization: CookieCt0
+configuration.api_key['CookieCt0'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieCt0'] = 'Bearer'
+
+# Configure API key authorization: UserAgent
+configuration.api_key['UserAgent'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['UserAgent'] = 'Bearer'
+
+# Configure API key authorization: AcceptLanguage
+configuration.api_key['AcceptLanguage'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AcceptLanguage'] = 'Bearer'
+
+# Configure API key authorization: SecFetchSite
+configuration.api_key['SecFetchSite'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchSite'] = 'Bearer'
+
+# Configure API key authorization: AuthType
+configuration.api_key['AuthType'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AuthType'] = 'Bearer'
+
+# Configure API key authorization: CookieAuthToken
+configuration.api_key['CookieAuthToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieAuthToken'] = 'Bearer'
+
+# Configure API key authorization: SecChUaMobile
+configuration.api_key['SecChUaMobile'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUaMobile'] = 'Bearer'
+
+# Configure API key authorization: AcceptEncoding
+configuration.api_key['AcceptEncoding'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AcceptEncoding'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with twitter_openapi_python_generated.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = twitter_openapi_python_generated.BirdwatchApi(api_client)
+ path_query_id = 'id9iGfEQF47W1kvRBHUmRQ' # str | (default to 'id9iGfEQF47W1kvRBHUmRQ')
+ features = '{"responsive_web_birdwatch_top_contributor_enabled": true}' # str | (default to '{"responsive_web_birdwatch_top_contributor_enabled": true}')
+ variables = '{"alias": "me"}' # str | (default to '{"alias": "me"}')
+
+ try:
+ api_response = api_instance.get_birdwatch_fetch_birdwatch_profile(path_query_id, features, variables)
+ print("The response of BirdwatchApi->get_birdwatch_fetch_birdwatch_profile:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling BirdwatchApi->get_birdwatch_fetch_birdwatch_profile: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **path_query_id** | **str**| | [default to 'id9iGfEQF47W1kvRBHUmRQ']
+ **features** | **str**| | [default to '{"responsive_web_birdwatch_top_contributor_enabled": true}']
+ **variables** | **str**| | [default to '{"alias": "me"}']
+
+### Return type
+
+[**BirdwatchFetchBirdwatchProfileResponse**](BirdwatchFetchBirdwatchProfileResponse.md)
+
+### Authorization
+
+[Accept](../README.md#Accept), [ClientLanguage](../README.md#ClientLanguage), [Priority](../README.md#Priority), [Referer](../README.md#Referer), [SecFetchDest](../README.md#SecFetchDest), [SecChUaPlatform](../README.md#SecChUaPlatform), [SecFetchMode](../README.md#SecFetchMode), [CsrfToken](../README.md#CsrfToken), [ClientUuid](../README.md#ClientUuid), [BearerAuth](../README.md#BearerAuth), [GuestToken](../README.md#GuestToken), [SecChUa](../README.md#SecChUa), [CookieGt0](../README.md#CookieGt0), [ClientTransactionId](../README.md#ClientTransactionId), [ActiveUser](../README.md#ActiveUser), [CookieCt0](../README.md#CookieCt0), [UserAgent](../README.md#UserAgent), [AcceptLanguage](../README.md#AcceptLanguage), [SecFetchSite](../README.md#SecFetchSite), [AuthType](../README.md#AuthType), [CookieAuthToken](../README.md#CookieAuthToken), [SecChUaMobile](../README.md#SecChUaMobile), [AcceptEncoding](../README.md#AcceptEncoding)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful operation | * x-connection-hash -
* x-rate-limit-limit -
* x-rate-limit-remaining -
* x-rate-limit-reset -
* x-response-time -
* x-tfe-preserve-body -
* x-transaction-id -
* x-twitter-response-tags -
|
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_birdwatch_fetch_global_timeline**
+> BirdwatchFetchGlobalTimelineResponse get_birdwatch_fetch_global_timeline(path_query_id, features, variables)
+
+the Community Notes home page (segmented timelines)
+
+### Example
+
+* Api Key Authentication (Accept):
+* Api Key Authentication (ClientLanguage):
+* Api Key Authentication (Priority):
+* Api Key Authentication (Referer):
+* Api Key Authentication (SecFetchDest):
+* Api Key Authentication (SecChUaPlatform):
+* Api Key Authentication (SecFetchMode):
+* Api Key Authentication (CsrfToken):
+* Api Key Authentication (ClientUuid):
+* Bearer Authentication (BearerAuth):
+* Api Key Authentication (GuestToken):
+* Api Key Authentication (SecChUa):
+* Api Key Authentication (CookieGt0):
+* Api Key Authentication (ClientTransactionId):
+* Api Key Authentication (ActiveUser):
+* Api Key Authentication (CookieCt0):
+* Api Key Authentication (UserAgent):
+* Api Key Authentication (AcceptLanguage):
+* Api Key Authentication (SecFetchSite):
+* Api Key Authentication (AuthType):
+* Api Key Authentication (CookieAuthToken):
+* Api Key Authentication (SecChUaMobile):
+* Api Key Authentication (AcceptEncoding):
+
+```python
+import twitter_openapi_python_generated
+from twitter_openapi_python_generated.models.birdwatch_fetch_global_timeline_response import BirdwatchFetchGlobalTimelineResponse
+from twitter_openapi_python_generated.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://x.com/i/api
+# See configuration.py for a list of all supported configuration parameters.
+configuration = twitter_openapi_python_generated.Configuration(
+ host = "https://x.com/i/api"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: Accept
+configuration.api_key['Accept'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Accept'] = 'Bearer'
+
+# Configure API key authorization: ClientLanguage
+configuration.api_key['ClientLanguage'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientLanguage'] = 'Bearer'
+
+# Configure API key authorization: Priority
+configuration.api_key['Priority'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Priority'] = 'Bearer'
+
+# Configure API key authorization: Referer
+configuration.api_key['Referer'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Referer'] = 'Bearer'
+
+# Configure API key authorization: SecFetchDest
+configuration.api_key['SecFetchDest'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchDest'] = 'Bearer'
+
+# Configure API key authorization: SecChUaPlatform
+configuration.api_key['SecChUaPlatform'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUaPlatform'] = 'Bearer'
+
+# Configure API key authorization: SecFetchMode
+configuration.api_key['SecFetchMode'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchMode'] = 'Bearer'
+
+# Configure API key authorization: CsrfToken
+configuration.api_key['CsrfToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CsrfToken'] = 'Bearer'
+
+# Configure API key authorization: ClientUuid
+configuration.api_key['ClientUuid'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientUuid'] = 'Bearer'
+
+# Configure Bearer authorization: BearerAuth
+configuration = twitter_openapi_python_generated.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Configure API key authorization: GuestToken
+configuration.api_key['GuestToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['GuestToken'] = 'Bearer'
+
+# Configure API key authorization: SecChUa
+configuration.api_key['SecChUa'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUa'] = 'Bearer'
+
+# Configure API key authorization: CookieGt0
+configuration.api_key['CookieGt0'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieGt0'] = 'Bearer'
+
+# Configure API key authorization: ClientTransactionId
+configuration.api_key['ClientTransactionId'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientTransactionId'] = 'Bearer'
+
+# Configure API key authorization: ActiveUser
+configuration.api_key['ActiveUser'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ActiveUser'] = 'Bearer'
+
+# Configure API key authorization: CookieCt0
+configuration.api_key['CookieCt0'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieCt0'] = 'Bearer'
+
+# Configure API key authorization: UserAgent
+configuration.api_key['UserAgent'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['UserAgent'] = 'Bearer'
+
+# Configure API key authorization: AcceptLanguage
+configuration.api_key['AcceptLanguage'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AcceptLanguage'] = 'Bearer'
+
+# Configure API key authorization: SecFetchSite
+configuration.api_key['SecFetchSite'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchSite'] = 'Bearer'
+
+# Configure API key authorization: AuthType
+configuration.api_key['AuthType'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AuthType'] = 'Bearer'
+
+# Configure API key authorization: CookieAuthToken
+configuration.api_key['CookieAuthToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieAuthToken'] = 'Bearer'
+
+# Configure API key authorization: SecChUaMobile
+configuration.api_key['SecChUaMobile'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUaMobile'] = 'Bearer'
+
+# Configure API key authorization: AcceptEncoding
+configuration.api_key['AcceptEncoding'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AcceptEncoding'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with twitter_openapi_python_generated.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = twitter_openapi_python_generated.BirdwatchApi(api_client)
+ path_query_id = 'FAmIZKHUZkuRclhoxxRAuw' # str | (default to 'FAmIZKHUZkuRclhoxxRAuw')
+ features = '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "responsive_web_profile_redirect_enabled": true, "rweb_tipjar_consumption_enabled": false, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": true, "rweb_cashtags_enabled": true, "creator_subscriptions_tweet_preview_api_enabled": true, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "rweb_cashtags_composer_attachment_enabled": true, "responsive_web_jetfuel_frame": true, "rweb_sports_post_context_enabled": true, "responsive_web_grok_share_attachment_enabled": true, "responsive_web_grok_annotations_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "rweb_conversational_replies_downvote_enabled": false, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "content_disclosure_indicator_enabled": true, "content_disclosure_ai_generated_indicator_enabled": true, "responsive_web_grok_show_grok_translated_post": true, "responsive_web_grok_analysis_button_from_backend": true, "post_ctas_fetch_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": false, "responsive_web_nested_quote_preview_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_grok_imagine_annotation_enabled": true, "responsive_web_grok_community_note_auto_translation_is_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "responsive_web_profile_redirect_enabled": true, "rweb_tipjar_consumption_enabled": false, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": true, "rweb_cashtags_enabled": true, "creator_subscriptions_tweet_preview_api_enabled": true, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "rweb_cashtags_composer_attachment_enabled": true, "responsive_web_jetfuel_frame": true, "rweb_sports_post_context_enabled": true, "responsive_web_grok_share_attachment_enabled": true, "responsive_web_grok_annotations_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "rweb_conversational_replies_downvote_enabled": false, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "content_disclosure_indicator_enabled": true, "content_disclosure_ai_generated_indicator_enabled": true, "responsive_web_grok_show_grok_translated_post": true, "responsive_web_grok_analysis_button_from_backend": true, "post_ctas_fetch_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": false, "responsive_web_nested_quote_preview_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_grok_imagine_annotation_enabled": true, "responsive_web_grok_community_note_auto_translation_is_enabled": true, "responsive_web_enhance_cards_enabled": false}')
+ variables = '{}' # str | (default to '{}')
+
+ try:
+ api_response = api_instance.get_birdwatch_fetch_global_timeline(path_query_id, features, variables)
+ print("The response of BirdwatchApi->get_birdwatch_fetch_global_timeline:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling BirdwatchApi->get_birdwatch_fetch_global_timeline: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **path_query_id** | **str**| | [default to 'FAmIZKHUZkuRclhoxxRAuw']
+ **features** | **str**| | [default to '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled": true, "responsive_web_profile_redirect_enabled": true, "rweb_tipjar_consumption_enabled": false, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": true, "rweb_cashtags_enabled": true, "creator_subscriptions_tweet_preview_api_enabled": true, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "rweb_cashtags_composer_attachment_enabled": true, "responsive_web_jetfuel_frame": true, "rweb_sports_post_context_enabled": true, "responsive_web_grok_share_attachment_enabled": true, "responsive_web_grok_annotations_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "rweb_conversational_replies_downvote_enabled": false, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "content_disclosure_indicator_enabled": true, "content_disclosure_ai_generated_indicator_enabled": true, "responsive_web_grok_show_grok_translated_post": true, "responsive_web_grok_analysis_button_from_backend": true, "post_ctas_fetch_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": false, "responsive_web_nested_quote_preview_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_grok_imagine_annotation_enabled": true, "responsive_web_grok_community_note_auto_translation_is_enabled": true, "responsive_web_enhance_cards_enabled": false}']
+ **variables** | **str**| | [default to '{}']
+
+### Return type
+
+[**BirdwatchFetchGlobalTimelineResponse**](BirdwatchFetchGlobalTimelineResponse.md)
+
+### Authorization
+
+[Accept](../README.md#Accept), [ClientLanguage](../README.md#ClientLanguage), [Priority](../README.md#Priority), [Referer](../README.md#Referer), [SecFetchDest](../README.md#SecFetchDest), [SecChUaPlatform](../README.md#SecChUaPlatform), [SecFetchMode](../README.md#SecFetchMode), [CsrfToken](../README.md#CsrfToken), [ClientUuid](../README.md#ClientUuid), [BearerAuth](../README.md#BearerAuth), [GuestToken](../README.md#GuestToken), [SecChUa](../README.md#SecChUa), [CookieGt0](../README.md#CookieGt0), [ClientTransactionId](../README.md#ClientTransactionId), [ActiveUser](../README.md#ActiveUser), [CookieCt0](../README.md#CookieCt0), [UserAgent](../README.md#UserAgent), [AcceptLanguage](../README.md#AcceptLanguage), [SecFetchSite](../README.md#SecFetchSite), [AuthType](../README.md#AuthType), [CookieAuthToken](../README.md#CookieAuthToken), [SecChUaMobile](../README.md#SecChUaMobile), [AcceptEncoding](../README.md#AcceptEncoding)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful operation | * x-connection-hash -
* x-rate-limit-limit -
* x-rate-limit-remaining -
* x-rate-limit-reset -
* x-response-time -
* x-tfe-preserve-body -
* x-transaction-id -
* x-twitter-response-tags -
|
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_birdwatch_fetch_public_data**
+> BirdwatchFetchPublicDataResponse get_birdwatch_fetch_public_data(path_query_id, features, variables)
+
+download urls of the latest Community Notes public data files
+
+### Example
+
+* Api Key Authentication (Accept):
+* Api Key Authentication (ClientLanguage):
+* Api Key Authentication (Priority):
+* Api Key Authentication (Referer):
+* Api Key Authentication (SecFetchDest):
+* Api Key Authentication (SecChUaPlatform):
+* Api Key Authentication (SecFetchMode):
+* Api Key Authentication (CsrfToken):
+* Api Key Authentication (ClientUuid):
+* Bearer Authentication (BearerAuth):
+* Api Key Authentication (GuestToken):
+* Api Key Authentication (SecChUa):
+* Api Key Authentication (CookieGt0):
+* Api Key Authentication (ClientTransactionId):
+* Api Key Authentication (ActiveUser):
+* Api Key Authentication (CookieCt0):
+* Api Key Authentication (UserAgent):
+* Api Key Authentication (AcceptLanguage):
+* Api Key Authentication (SecFetchSite):
+* Api Key Authentication (AuthType):
+* Api Key Authentication (CookieAuthToken):
+* Api Key Authentication (SecChUaMobile):
+* Api Key Authentication (AcceptEncoding):
+
+```python
+import twitter_openapi_python_generated
+from twitter_openapi_python_generated.models.birdwatch_fetch_public_data_response import BirdwatchFetchPublicDataResponse
+from twitter_openapi_python_generated.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://x.com/i/api
+# See configuration.py for a list of all supported configuration parameters.
+configuration = twitter_openapi_python_generated.Configuration(
+ host = "https://x.com/i/api"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: Accept
+configuration.api_key['Accept'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Accept'] = 'Bearer'
+
+# Configure API key authorization: ClientLanguage
+configuration.api_key['ClientLanguage'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientLanguage'] = 'Bearer'
+
+# Configure API key authorization: Priority
+configuration.api_key['Priority'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Priority'] = 'Bearer'
+
+# Configure API key authorization: Referer
+configuration.api_key['Referer'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Referer'] = 'Bearer'
+
+# Configure API key authorization: SecFetchDest
+configuration.api_key['SecFetchDest'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchDest'] = 'Bearer'
+
+# Configure API key authorization: SecChUaPlatform
+configuration.api_key['SecChUaPlatform'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUaPlatform'] = 'Bearer'
+
+# Configure API key authorization: SecFetchMode
+configuration.api_key['SecFetchMode'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchMode'] = 'Bearer'
+
+# Configure API key authorization: CsrfToken
+configuration.api_key['CsrfToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CsrfToken'] = 'Bearer'
+
+# Configure API key authorization: ClientUuid
+configuration.api_key['ClientUuid'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientUuid'] = 'Bearer'
+
+# Configure Bearer authorization: BearerAuth
+configuration = twitter_openapi_python_generated.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Configure API key authorization: GuestToken
+configuration.api_key['GuestToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['GuestToken'] = 'Bearer'
+
+# Configure API key authorization: SecChUa
+configuration.api_key['SecChUa'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUa'] = 'Bearer'
+
+# Configure API key authorization: CookieGt0
+configuration.api_key['CookieGt0'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieGt0'] = 'Bearer'
+
+# Configure API key authorization: ClientTransactionId
+configuration.api_key['ClientTransactionId'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientTransactionId'] = 'Bearer'
+
+# Configure API key authorization: ActiveUser
+configuration.api_key['ActiveUser'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ActiveUser'] = 'Bearer'
+
+# Configure API key authorization: CookieCt0
+configuration.api_key['CookieCt0'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieCt0'] = 'Bearer'
+
+# Configure API key authorization: UserAgent
+configuration.api_key['UserAgent'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['UserAgent'] = 'Bearer'
+
+# Configure API key authorization: AcceptLanguage
+configuration.api_key['AcceptLanguage'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AcceptLanguage'] = 'Bearer'
+
+# Configure API key authorization: SecFetchSite
+configuration.api_key['SecFetchSite'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchSite'] = 'Bearer'
+
+# Configure API key authorization: AuthType
+configuration.api_key['AuthType'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AuthType'] = 'Bearer'
+
+# Configure API key authorization: CookieAuthToken
+configuration.api_key['CookieAuthToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieAuthToken'] = 'Bearer'
+
+# Configure API key authorization: SecChUaMobile
+configuration.api_key['SecChUaMobile'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUaMobile'] = 'Bearer'
+
+# Configure API key authorization: AcceptEncoding
+configuration.api_key['AcceptEncoding'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AcceptEncoding'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with twitter_openapi_python_generated.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = twitter_openapi_python_generated.BirdwatchApi(api_client)
+ path_query_id = 'T4Qdev0aBeS9tK9v4TkgQg' # str | (default to 'T4Qdev0aBeS9tK9v4TkgQg')
+ features = '{"responsive_web_birdwatch_note_request_download_enabled": true}' # str | (default to '{"responsive_web_birdwatch_note_request_download_enabled": true}')
+ variables = '{}' # str | (default to '{}')
+
+ try:
+ api_response = api_instance.get_birdwatch_fetch_public_data(path_query_id, features, variables)
+ print("The response of BirdwatchApi->get_birdwatch_fetch_public_data:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling BirdwatchApi->get_birdwatch_fetch_public_data: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **path_query_id** | **str**| | [default to 'T4Qdev0aBeS9tK9v4TkgQg']
+ **features** | **str**| | [default to '{"responsive_web_birdwatch_note_request_download_enabled": true}']
+ **variables** | **str**| | [default to '{}']
+
+### Return type
+
+[**BirdwatchFetchPublicDataResponse**](BirdwatchFetchPublicDataResponse.md)
+
+### Authorization
+
+[Accept](../README.md#Accept), [ClientLanguage](../README.md#ClientLanguage), [Priority](../README.md#Priority), [Referer](../README.md#Referer), [SecFetchDest](../README.md#SecFetchDest), [SecChUaPlatform](../README.md#SecChUaPlatform), [SecFetchMode](../README.md#SecFetchMode), [CsrfToken](../README.md#CsrfToken), [ClientUuid](../README.md#ClientUuid), [BearerAuth](../README.md#BearerAuth), [GuestToken](../README.md#GuestToken), [SecChUa](../README.md#SecChUa), [CookieGt0](../README.md#CookieGt0), [ClientTransactionId](../README.md#ClientTransactionId), [ActiveUser](../README.md#ActiveUser), [CookieCt0](../README.md#CookieCt0), [UserAgent](../README.md#UserAgent), [AcceptLanguage](../README.md#AcceptLanguage), [SecFetchSite](../README.md#SecFetchSite), [AuthType](../README.md#AuthType), [CookieAuthToken](../README.md#CookieAuthToken), [SecChUaMobile](../README.md#SecChUaMobile), [AcceptEncoding](../README.md#AcceptEncoding)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful operation | * x-connection-hash -
* x-rate-limit-limit -
* x-rate-limit-remaining -
* x-rate-limit-reset -
* x-response-time -
* x-tfe-preserve-body -
* x-transaction-id -
* x-twitter-response-tags -
|
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/twitter_openapi_python_generated/docs/BirdwatchFetchAliasSelfSelectStatusResponse.md b/twitter_openapi_python_generated/docs/BirdwatchFetchAliasSelfSelectStatusResponse.md
new file mode 100644
index 0000000..2cf58da
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/BirdwatchFetchAliasSelfSelectStatusResponse.md
@@ -0,0 +1,30 @@
+# BirdwatchFetchAliasSelfSelectStatusResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**data** | [**BirdwatchFetchAliasSelfSelectStatusResponseData**](BirdwatchFetchAliasSelfSelectStatusResponseData.md) | |
+**errors** | [**List[ErrorResponse]**](ErrorResponse.md) | | [optional]
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.birdwatch_fetch_alias_self_select_status_response import BirdwatchFetchAliasSelfSelectStatusResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of BirdwatchFetchAliasSelfSelectStatusResponse from a JSON string
+birdwatch_fetch_alias_self_select_status_response_instance = BirdwatchFetchAliasSelfSelectStatusResponse.from_json(json)
+# print the JSON string representation of the object
+print(BirdwatchFetchAliasSelfSelectStatusResponse.to_json())
+
+# convert the object into a dict
+birdwatch_fetch_alias_self_select_status_response_dict = birdwatch_fetch_alias_self_select_status_response_instance.to_dict()
+# create an instance of BirdwatchFetchAliasSelfSelectStatusResponse from a dict
+birdwatch_fetch_alias_self_select_status_response_from_dict = BirdwatchFetchAliasSelfSelectStatusResponse.from_dict(birdwatch_fetch_alias_self_select_status_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/BirdwatchFetchAliasSelfSelectStatusResponseData.md b/twitter_openapi_python_generated/docs/BirdwatchFetchAliasSelfSelectStatusResponseData.md
new file mode 100644
index 0000000..5e317f3
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/BirdwatchFetchAliasSelfSelectStatusResponseData.md
@@ -0,0 +1,29 @@
+# BirdwatchFetchAliasSelfSelectStatusResponseData
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**authenticated_user_birdwatch_alias_self_select_status** | [**BirdwatchAliasSelfSelectStatus**](BirdwatchAliasSelfSelectStatus.md) | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.birdwatch_fetch_alias_self_select_status_response_data import BirdwatchFetchAliasSelfSelectStatusResponseData
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of BirdwatchFetchAliasSelfSelectStatusResponseData from a JSON string
+birdwatch_fetch_alias_self_select_status_response_data_instance = BirdwatchFetchAliasSelfSelectStatusResponseData.from_json(json)
+# print the JSON string representation of the object
+print(BirdwatchFetchAliasSelfSelectStatusResponseData.to_json())
+
+# convert the object into a dict
+birdwatch_fetch_alias_self_select_status_response_data_dict = birdwatch_fetch_alias_self_select_status_response_data_instance.to_dict()
+# create an instance of BirdwatchFetchAliasSelfSelectStatusResponseData from a dict
+birdwatch_fetch_alias_self_select_status_response_data_from_dict = BirdwatchFetchAliasSelfSelectStatusResponseData.from_dict(birdwatch_fetch_alias_self_select_status_response_data_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/BirdwatchFetchAuthenticatedUserProfileResponse.md b/twitter_openapi_python_generated/docs/BirdwatchFetchAuthenticatedUserProfileResponse.md
new file mode 100644
index 0000000..58bcb7b
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/BirdwatchFetchAuthenticatedUserProfileResponse.md
@@ -0,0 +1,30 @@
+# BirdwatchFetchAuthenticatedUserProfileResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**data** | [**BirdwatchFetchAuthenticatedUserProfileResponseData**](BirdwatchFetchAuthenticatedUserProfileResponseData.md) | |
+**errors** | [**List[ErrorResponse]**](ErrorResponse.md) | | [optional]
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.birdwatch_fetch_authenticated_user_profile_response import BirdwatchFetchAuthenticatedUserProfileResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of BirdwatchFetchAuthenticatedUserProfileResponse from a JSON string
+birdwatch_fetch_authenticated_user_profile_response_instance = BirdwatchFetchAuthenticatedUserProfileResponse.from_json(json)
+# print the JSON string representation of the object
+print(BirdwatchFetchAuthenticatedUserProfileResponse.to_json())
+
+# convert the object into a dict
+birdwatch_fetch_authenticated_user_profile_response_dict = birdwatch_fetch_authenticated_user_profile_response_instance.to_dict()
+# create an instance of BirdwatchFetchAuthenticatedUserProfileResponse from a dict
+birdwatch_fetch_authenticated_user_profile_response_from_dict = BirdwatchFetchAuthenticatedUserProfileResponse.from_dict(birdwatch_fetch_authenticated_user_profile_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/BirdwatchFetchAuthenticatedUserProfileResponseData.md b/twitter_openapi_python_generated/docs/BirdwatchFetchAuthenticatedUserProfileResponseData.md
new file mode 100644
index 0000000..ddea271
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/BirdwatchFetchAuthenticatedUserProfileResponseData.md
@@ -0,0 +1,29 @@
+# BirdwatchFetchAuthenticatedUserProfileResponseData
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**authenticated_user_birdwatch_profile** | [**BirdwatchProfile**](BirdwatchProfile.md) | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.birdwatch_fetch_authenticated_user_profile_response_data import BirdwatchFetchAuthenticatedUserProfileResponseData
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of BirdwatchFetchAuthenticatedUserProfileResponseData from a JSON string
+birdwatch_fetch_authenticated_user_profile_response_data_instance = BirdwatchFetchAuthenticatedUserProfileResponseData.from_json(json)
+# print the JSON string representation of the object
+print(BirdwatchFetchAuthenticatedUserProfileResponseData.to_json())
+
+# convert the object into a dict
+birdwatch_fetch_authenticated_user_profile_response_data_dict = birdwatch_fetch_authenticated_user_profile_response_data_instance.to_dict()
+# create an instance of BirdwatchFetchAuthenticatedUserProfileResponseData from a dict
+birdwatch_fetch_authenticated_user_profile_response_data_from_dict = BirdwatchFetchAuthenticatedUserProfileResponseData.from_dict(birdwatch_fetch_authenticated_user_profile_response_data_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/BirdwatchFetchBirdwatchProfileResponse.md b/twitter_openapi_python_generated/docs/BirdwatchFetchBirdwatchProfileResponse.md
new file mode 100644
index 0000000..54472dd
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/BirdwatchFetchBirdwatchProfileResponse.md
@@ -0,0 +1,30 @@
+# BirdwatchFetchBirdwatchProfileResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**data** | [**BirdwatchFetchBirdwatchProfileResponseData**](BirdwatchFetchBirdwatchProfileResponseData.md) | |
+**errors** | [**List[ErrorResponse]**](ErrorResponse.md) | | [optional]
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.birdwatch_fetch_birdwatch_profile_response import BirdwatchFetchBirdwatchProfileResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of BirdwatchFetchBirdwatchProfileResponse from a JSON string
+birdwatch_fetch_birdwatch_profile_response_instance = BirdwatchFetchBirdwatchProfileResponse.from_json(json)
+# print the JSON string representation of the object
+print(BirdwatchFetchBirdwatchProfileResponse.to_json())
+
+# convert the object into a dict
+birdwatch_fetch_birdwatch_profile_response_dict = birdwatch_fetch_birdwatch_profile_response_instance.to_dict()
+# create an instance of BirdwatchFetchBirdwatchProfileResponse from a dict
+birdwatch_fetch_birdwatch_profile_response_from_dict = BirdwatchFetchBirdwatchProfileResponse.from_dict(birdwatch_fetch_birdwatch_profile_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/BirdwatchFetchBirdwatchProfileResponseData.md b/twitter_openapi_python_generated/docs/BirdwatchFetchBirdwatchProfileResponseData.md
new file mode 100644
index 0000000..43c767f
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/BirdwatchFetchBirdwatchProfileResponseData.md
@@ -0,0 +1,29 @@
+# BirdwatchFetchBirdwatchProfileResponseData
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**birdwatch_profile_by_alias** | [**BirdwatchProfile**](BirdwatchProfile.md) | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.birdwatch_fetch_birdwatch_profile_response_data import BirdwatchFetchBirdwatchProfileResponseData
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of BirdwatchFetchBirdwatchProfileResponseData from a JSON string
+birdwatch_fetch_birdwatch_profile_response_data_instance = BirdwatchFetchBirdwatchProfileResponseData.from_json(json)
+# print the JSON string representation of the object
+print(BirdwatchFetchBirdwatchProfileResponseData.to_json())
+
+# convert the object into a dict
+birdwatch_fetch_birdwatch_profile_response_data_dict = birdwatch_fetch_birdwatch_profile_response_data_instance.to_dict()
+# create an instance of BirdwatchFetchBirdwatchProfileResponseData from a dict
+birdwatch_fetch_birdwatch_profile_response_data_from_dict = BirdwatchFetchBirdwatchProfileResponseData.from_dict(birdwatch_fetch_birdwatch_profile_response_data_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/BirdwatchFetchGlobalTimelineResponse.md b/twitter_openapi_python_generated/docs/BirdwatchFetchGlobalTimelineResponse.md
new file mode 100644
index 0000000..0be8482
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/BirdwatchFetchGlobalTimelineResponse.md
@@ -0,0 +1,30 @@
+# BirdwatchFetchGlobalTimelineResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**data** | [**BirdwatchFetchGlobalTimelineResponseData**](BirdwatchFetchGlobalTimelineResponseData.md) | |
+**errors** | [**List[ErrorResponse]**](ErrorResponse.md) | | [optional]
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.birdwatch_fetch_global_timeline_response import BirdwatchFetchGlobalTimelineResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of BirdwatchFetchGlobalTimelineResponse from a JSON string
+birdwatch_fetch_global_timeline_response_instance = BirdwatchFetchGlobalTimelineResponse.from_json(json)
+# print the JSON string representation of the object
+print(BirdwatchFetchGlobalTimelineResponse.to_json())
+
+# convert the object into a dict
+birdwatch_fetch_global_timeline_response_dict = birdwatch_fetch_global_timeline_response_instance.to_dict()
+# create an instance of BirdwatchFetchGlobalTimelineResponse from a dict
+birdwatch_fetch_global_timeline_response_from_dict = BirdwatchFetchGlobalTimelineResponse.from_dict(birdwatch_fetch_global_timeline_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/BirdwatchFetchGlobalTimelineResponseData.md b/twitter_openapi_python_generated/docs/BirdwatchFetchGlobalTimelineResponseData.md
new file mode 100644
index 0000000..67f7d86
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/BirdwatchFetchGlobalTimelineResponseData.md
@@ -0,0 +1,29 @@
+# BirdwatchFetchGlobalTimelineResponseData
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**viewer** | [**BirdwatchViewer**](BirdwatchViewer.md) | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.birdwatch_fetch_global_timeline_response_data import BirdwatchFetchGlobalTimelineResponseData
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of BirdwatchFetchGlobalTimelineResponseData from a JSON string
+birdwatch_fetch_global_timeline_response_data_instance = BirdwatchFetchGlobalTimelineResponseData.from_json(json)
+# print the JSON string representation of the object
+print(BirdwatchFetchGlobalTimelineResponseData.to_json())
+
+# convert the object into a dict
+birdwatch_fetch_global_timeline_response_data_dict = birdwatch_fetch_global_timeline_response_data_instance.to_dict()
+# create an instance of BirdwatchFetchGlobalTimelineResponseData from a dict
+birdwatch_fetch_global_timeline_response_data_from_dict = BirdwatchFetchGlobalTimelineResponseData.from_dict(birdwatch_fetch_global_timeline_response_data_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/BirdwatchFetchPublicDataResponse.md b/twitter_openapi_python_generated/docs/BirdwatchFetchPublicDataResponse.md
new file mode 100644
index 0000000..ab8c1d6
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/BirdwatchFetchPublicDataResponse.md
@@ -0,0 +1,30 @@
+# BirdwatchFetchPublicDataResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**data** | [**BirdwatchFetchPublicDataResponseData**](BirdwatchFetchPublicDataResponseData.md) | |
+**errors** | [**List[ErrorResponse]**](ErrorResponse.md) | | [optional]
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.birdwatch_fetch_public_data_response import BirdwatchFetchPublicDataResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of BirdwatchFetchPublicDataResponse from a JSON string
+birdwatch_fetch_public_data_response_instance = BirdwatchFetchPublicDataResponse.from_json(json)
+# print the JSON string representation of the object
+print(BirdwatchFetchPublicDataResponse.to_json())
+
+# convert the object into a dict
+birdwatch_fetch_public_data_response_dict = birdwatch_fetch_public_data_response_instance.to_dict()
+# create an instance of BirdwatchFetchPublicDataResponse from a dict
+birdwatch_fetch_public_data_response_from_dict = BirdwatchFetchPublicDataResponse.from_dict(birdwatch_fetch_public_data_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/BirdwatchFetchPublicDataResponseData.md b/twitter_openapi_python_generated/docs/BirdwatchFetchPublicDataResponseData.md
new file mode 100644
index 0000000..8175199
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/BirdwatchFetchPublicDataResponseData.md
@@ -0,0 +1,29 @@
+# BirdwatchFetchPublicDataResponseData
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**birdwatch_latest_public_data_file_bundle** | [**BirdwatchPublicDataFileBundle**](BirdwatchPublicDataFileBundle.md) | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.birdwatch_fetch_public_data_response_data import BirdwatchFetchPublicDataResponseData
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of BirdwatchFetchPublicDataResponseData from a JSON string
+birdwatch_fetch_public_data_response_data_instance = BirdwatchFetchPublicDataResponseData.from_json(json)
+# print the JSON string representation of the object
+print(BirdwatchFetchPublicDataResponseData.to_json())
+
+# convert the object into a dict
+birdwatch_fetch_public_data_response_data_dict = birdwatch_fetch_public_data_response_data_instance.to_dict()
+# create an instance of BirdwatchFetchPublicDataResponseData from a dict
+birdwatch_fetch_public_data_response_data_from_dict = BirdwatchFetchPublicDataResponseData.from_dict(birdwatch_fetch_public_data_response_data_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/BirdwatchHomePage.md b/twitter_openapi_python_generated/docs/BirdwatchHomePage.md
new file mode 100644
index 0000000..65db687
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/BirdwatchHomePage.md
@@ -0,0 +1,31 @@
+# BirdwatchHomePage
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**body** | [**BirdwatchHomePageBody**](BirdwatchHomePageBody.md) | |
+**id** | **str** | |
+**scribe_config** | [**ScribeConfig**](ScribeConfig.md) | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.birdwatch_home_page import BirdwatchHomePage
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of BirdwatchHomePage from a JSON string
+birdwatch_home_page_instance = BirdwatchHomePage.from_json(json)
+# print the JSON string representation of the object
+print(BirdwatchHomePage.to_json())
+
+# convert the object into a dict
+birdwatch_home_page_dict = birdwatch_home_page_instance.to_dict()
+# create an instance of BirdwatchHomePage from a dict
+birdwatch_home_page_from_dict = BirdwatchHomePage.from_dict(birdwatch_home_page_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/BirdwatchHomePageBody.md b/twitter_openapi_python_generated/docs/BirdwatchHomePageBody.md
new file mode 100644
index 0000000..481a4dd
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/BirdwatchHomePageBody.md
@@ -0,0 +1,31 @@
+# BirdwatchHomePageBody
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**typename** | [**TypeName**](TypeName.md) | |
+**initial_timeline** | [**BirdwatchHomeTimeline**](BirdwatchHomeTimeline.md) | |
+**timelines** | [**List[BirdwatchHomeTimeline]**](BirdwatchHomeTimeline.md) | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.birdwatch_home_page_body import BirdwatchHomePageBody
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of BirdwatchHomePageBody from a JSON string
+birdwatch_home_page_body_instance = BirdwatchHomePageBody.from_json(json)
+# print the JSON string representation of the object
+print(BirdwatchHomePageBody.to_json())
+
+# convert the object into a dict
+birdwatch_home_page_body_dict = birdwatch_home_page_body_instance.to_dict()
+# create an instance of BirdwatchHomePageBody from a dict
+birdwatch_home_page_body_from_dict = BirdwatchHomePageBody.from_dict(birdwatch_home_page_body_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/BirdwatchHomeTimeline.md b/twitter_openapi_python_generated/docs/BirdwatchHomeTimeline.md
new file mode 100644
index 0000000..6c70054
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/BirdwatchHomeTimeline.md
@@ -0,0 +1,31 @@
+# BirdwatchHomeTimeline
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | |
+**label_text** | **str** | |
+**timeline** | [**TimelineResult**](TimelineResult.md) | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.birdwatch_home_timeline import BirdwatchHomeTimeline
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of BirdwatchHomeTimeline from a JSON string
+birdwatch_home_timeline_instance = BirdwatchHomeTimeline.from_json(json)
+# print the JSON string representation of the object
+print(BirdwatchHomeTimeline.to_json())
+
+# convert the object into a dict
+birdwatch_home_timeline_dict = birdwatch_home_timeline_instance.to_dict()
+# create an instance of BirdwatchHomeTimeline from a dict
+birdwatch_home_timeline_from_dict = BirdwatchHomeTimeline.from_dict(birdwatch_home_timeline_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/BirdwatchProfile.md b/twitter_openapi_python_generated/docs/BirdwatchProfile.md
new file mode 100644
index 0000000..c1d28fe
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/BirdwatchProfile.md
@@ -0,0 +1,29 @@
+# BirdwatchProfile
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**alias** | **str** | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.birdwatch_profile import BirdwatchProfile
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of BirdwatchProfile from a JSON string
+birdwatch_profile_instance = BirdwatchProfile.from_json(json)
+# print the JSON string representation of the object
+print(BirdwatchProfile.to_json())
+
+# convert the object into a dict
+birdwatch_profile_dict = birdwatch_profile_instance.to_dict()
+# create an instance of BirdwatchProfile from a dict
+birdwatch_profile_from_dict = BirdwatchProfile.from_dict(birdwatch_profile_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/BirdwatchPublicDataFile.md b/twitter_openapi_python_generated/docs/BirdwatchPublicDataFile.md
new file mode 100644
index 0000000..bc52fd5
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/BirdwatchPublicDataFile.md
@@ -0,0 +1,30 @@
+# BirdwatchPublicDataFile
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**created_at** | **int** | |
+**urls** | **List[str]** | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.birdwatch_public_data_file import BirdwatchPublicDataFile
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of BirdwatchPublicDataFile from a JSON string
+birdwatch_public_data_file_instance = BirdwatchPublicDataFile.from_json(json)
+# print the JSON string representation of the object
+print(BirdwatchPublicDataFile.to_json())
+
+# convert the object into a dict
+birdwatch_public_data_file_dict = birdwatch_public_data_file_instance.to_dict()
+# create an instance of BirdwatchPublicDataFile from a dict
+birdwatch_public_data_file_from_dict = BirdwatchPublicDataFile.from_dict(birdwatch_public_data_file_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/BirdwatchPublicDataFileBundle.md b/twitter_openapi_python_generated/docs/BirdwatchPublicDataFileBundle.md
new file mode 100644
index 0000000..6f672a7
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/BirdwatchPublicDataFileBundle.md
@@ -0,0 +1,33 @@
+# BirdwatchPublicDataFileBundle
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**bat_signals** | [**BirdwatchPublicDataFile**](BirdwatchPublicDataFile.md) | |
+**note_status_history** | [**BirdwatchPublicDataFile**](BirdwatchPublicDataFile.md) | |
+**notes** | [**BirdwatchPublicDataFile**](BirdwatchPublicDataFile.md) | |
+**ratings** | [**BirdwatchPublicDataFile**](BirdwatchPublicDataFile.md) | |
+**user_enrollment** | [**BirdwatchPublicDataFile**](BirdwatchPublicDataFile.md) | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.birdwatch_public_data_file_bundle import BirdwatchPublicDataFileBundle
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of BirdwatchPublicDataFileBundle from a JSON string
+birdwatch_public_data_file_bundle_instance = BirdwatchPublicDataFileBundle.from_json(json)
+# print the JSON string representation of the object
+print(BirdwatchPublicDataFileBundle.to_json())
+
+# convert the object into a dict
+birdwatch_public_data_file_bundle_dict = birdwatch_public_data_file_bundle_instance.to_dict()
+# create an instance of BirdwatchPublicDataFileBundle from a dict
+birdwatch_public_data_file_bundle_from_dict = BirdwatchPublicDataFileBundle.from_dict(birdwatch_public_data_file_bundle_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/BirdwatchViewer.md b/twitter_openapi_python_generated/docs/BirdwatchViewer.md
new file mode 100644
index 0000000..5b2e657
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/BirdwatchViewer.md
@@ -0,0 +1,29 @@
+# BirdwatchViewer
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**birdwatch_home_page** | [**BirdwatchHomePage**](BirdwatchHomePage.md) | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.birdwatch_viewer import BirdwatchViewer
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of BirdwatchViewer from a JSON string
+birdwatch_viewer_instance = BirdwatchViewer.from_json(json)
+# print the JSON string representation of the object
+print(BirdwatchViewer.to_json())
+
+# convert the object into a dict
+birdwatch_viewer_dict = birdwatch_viewer_instance.to_dict()
+# create an instance of BirdwatchViewer from a dict
+birdwatch_viewer_from_dict = BirdwatchViewer.from_dict(birdwatch_viewer_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/BookmarkSearch.md b/twitter_openapi_python_generated/docs/BookmarkSearch.md
new file mode 100644
index 0000000..faed9ff
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/BookmarkSearch.md
@@ -0,0 +1,29 @@
+# BookmarkSearch
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**bookmarks_search_timeline** | [**TimelineResult**](TimelineResult.md) | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.bookmark_search import BookmarkSearch
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of BookmarkSearch from a JSON string
+bookmark_search_instance = BookmarkSearch.from_json(json)
+# print the JSON string representation of the object
+print(BookmarkSearch.to_json())
+
+# convert the object into a dict
+bookmark_search_dict = bookmark_search_instance.to_dict()
+# create an instance of BookmarkSearch from a dict
+bookmark_search_from_dict = BookmarkSearch.from_dict(bookmark_search_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/BookmarkSearchTimelineResponse.md b/twitter_openapi_python_generated/docs/BookmarkSearchTimelineResponse.md
new file mode 100644
index 0000000..7481722
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/BookmarkSearchTimelineResponse.md
@@ -0,0 +1,30 @@
+# BookmarkSearchTimelineResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**data** | [**BookmarkSearchTimelineResponseData**](BookmarkSearchTimelineResponseData.md) | |
+**errors** | [**List[ErrorResponse]**](ErrorResponse.md) | | [optional]
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.bookmark_search_timeline_response import BookmarkSearchTimelineResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of BookmarkSearchTimelineResponse from a JSON string
+bookmark_search_timeline_response_instance = BookmarkSearchTimelineResponse.from_json(json)
+# print the JSON string representation of the object
+print(BookmarkSearchTimelineResponse.to_json())
+
+# convert the object into a dict
+bookmark_search_timeline_response_dict = bookmark_search_timeline_response_instance.to_dict()
+# create an instance of BookmarkSearchTimelineResponse from a dict
+bookmark_search_timeline_response_from_dict = BookmarkSearchTimelineResponse.from_dict(bookmark_search_timeline_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/BookmarkSearchTimelineResponseData.md b/twitter_openapi_python_generated/docs/BookmarkSearchTimelineResponseData.md
new file mode 100644
index 0000000..8ebe862
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/BookmarkSearchTimelineResponseData.md
@@ -0,0 +1,29 @@
+# BookmarkSearchTimelineResponseData
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**search_by_raw_query** | [**BookmarkSearch**](BookmarkSearch.md) | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.bookmark_search_timeline_response_data import BookmarkSearchTimelineResponseData
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of BookmarkSearchTimelineResponseData from a JSON string
+bookmark_search_timeline_response_data_instance = BookmarkSearchTimelineResponseData.from_json(json)
+# print the JSON string representation of the object
+print(BookmarkSearchTimelineResponseData.to_json())
+
+# convert the object into a dict
+bookmark_search_timeline_response_data_dict = bookmark_search_timeline_response_data_instance.to_dict()
+# create an instance of BookmarkSearchTimelineResponseData from a dict
+bookmark_search_timeline_response_data_from_dict = BookmarkSearchTimelineResponseData.from_dict(bookmark_search_timeline_response_data_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/ClientEventInfoDetails.md b/twitter_openapi_python_generated/docs/ClientEventInfoDetails.md
index 4dddfee..bb75b65 100644
--- a/twitter_openapi_python_generated/docs/ClientEventInfoDetails.md
+++ b/twitter_openapi_python_generated/docs/ClientEventInfoDetails.md
@@ -6,7 +6,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**conversation_details** | [**ConversationDetails**](ConversationDetails.md) | | [optional]
-**timelines_details** | [**TimelinesDetails**](TimelinesDetails.md) | |
+**notification_details** | [**NotificationDetails**](NotificationDetails.md) | | [optional]
+**timelines_details** | [**TimelinesDetails**](TimelinesDetails.md) | | [optional]
## Example
diff --git a/twitter_openapi_python_generated/docs/CommunitiesFetchOneQueryResponse.md b/twitter_openapi_python_generated/docs/CommunitiesFetchOneQueryResponse.md
new file mode 100644
index 0000000..7cbfca9
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/CommunitiesFetchOneQueryResponse.md
@@ -0,0 +1,30 @@
+# CommunitiesFetchOneQueryResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**data** | [**CommunitiesFetchOneQueryResponseData**](CommunitiesFetchOneQueryResponseData.md) | |
+**errors** | [**List[ErrorResponse]**](ErrorResponse.md) | | [optional]
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.communities_fetch_one_query_response import CommunitiesFetchOneQueryResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CommunitiesFetchOneQueryResponse from a JSON string
+communities_fetch_one_query_response_instance = CommunitiesFetchOneQueryResponse.from_json(json)
+# print the JSON string representation of the object
+print(CommunitiesFetchOneQueryResponse.to_json())
+
+# convert the object into a dict
+communities_fetch_one_query_response_dict = communities_fetch_one_query_response_instance.to_dict()
+# create an instance of CommunitiesFetchOneQueryResponse from a dict
+communities_fetch_one_query_response_from_dict = CommunitiesFetchOneQueryResponse.from_dict(communities_fetch_one_query_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/CommunitiesFetchOneQueryResponseData.md b/twitter_openapi_python_generated/docs/CommunitiesFetchOneQueryResponseData.md
new file mode 100644
index 0000000..dd2c5b8
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/CommunitiesFetchOneQueryResponseData.md
@@ -0,0 +1,29 @@
+# CommunitiesFetchOneQueryResponseData
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**community_results** | [**CommunityPageResults**](CommunityPageResults.md) | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.communities_fetch_one_query_response_data import CommunitiesFetchOneQueryResponseData
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CommunitiesFetchOneQueryResponseData from a JSON string
+communities_fetch_one_query_response_data_instance = CommunitiesFetchOneQueryResponseData.from_json(json)
+# print the JSON string representation of the object
+print(CommunitiesFetchOneQueryResponseData.to_json())
+
+# convert the object into a dict
+communities_fetch_one_query_response_data_dict = communities_fetch_one_query_response_data_instance.to_dict()
+# create an instance of CommunitiesFetchOneQueryResponseData from a dict
+communities_fetch_one_query_response_data_from_dict = CommunitiesFetchOneQueryResponseData.from_dict(communities_fetch_one_query_response_data_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/CommunitiesSearchQueryResponse.md b/twitter_openapi_python_generated/docs/CommunitiesSearchQueryResponse.md
new file mode 100644
index 0000000..3476f5b
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/CommunitiesSearchQueryResponse.md
@@ -0,0 +1,30 @@
+# CommunitiesSearchQueryResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**data** | [**CommunitiesSearchQueryResponseData**](CommunitiesSearchQueryResponseData.md) | |
+**errors** | [**List[ErrorResponse]**](ErrorResponse.md) | | [optional]
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.communities_search_query_response import CommunitiesSearchQueryResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CommunitiesSearchQueryResponse from a JSON string
+communities_search_query_response_instance = CommunitiesSearchQueryResponse.from_json(json)
+# print the JSON string representation of the object
+print(CommunitiesSearchQueryResponse.to_json())
+
+# convert the object into a dict
+communities_search_query_response_dict = communities_search_query_response_instance.to_dict()
+# create an instance of CommunitiesSearchQueryResponse from a dict
+communities_search_query_response_from_dict = CommunitiesSearchQueryResponse.from_dict(communities_search_query_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/CommunitiesSearchQueryResponseData.md b/twitter_openapi_python_generated/docs/CommunitiesSearchQueryResponseData.md
new file mode 100644
index 0000000..8a8edf0
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/CommunitiesSearchQueryResponseData.md
@@ -0,0 +1,29 @@
+# CommunitiesSearchQueryResponseData
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**communities_search_slice** | [**CommunitiesSearchSlice**](CommunitiesSearchSlice.md) | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.communities_search_query_response_data import CommunitiesSearchQueryResponseData
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CommunitiesSearchQueryResponseData from a JSON string
+communities_search_query_response_data_instance = CommunitiesSearchQueryResponseData.from_json(json)
+# print the JSON string representation of the object
+print(CommunitiesSearchQueryResponseData.to_json())
+
+# convert the object into a dict
+communities_search_query_response_data_dict = communities_search_query_response_data_instance.to_dict()
+# create an instance of CommunitiesSearchQueryResponseData from a dict
+communities_search_query_response_data_from_dict = CommunitiesSearchQueryResponseData.from_dict(communities_search_query_response_data_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/CommunitiesSearchSlice.md b/twitter_openapi_python_generated/docs/CommunitiesSearchSlice.md
new file mode 100644
index 0000000..3fe6773
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/CommunitiesSearchSlice.md
@@ -0,0 +1,30 @@
+# CommunitiesSearchSlice
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**items_results** | [**List[CommunitySearchResults]**](CommunitySearchResults.md) | |
+**slice_info** | [**SliceInfo**](SliceInfo.md) | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.communities_search_slice import CommunitiesSearchSlice
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CommunitiesSearchSlice from a JSON string
+communities_search_slice_instance = CommunitiesSearchSlice.from_json(json)
+# print the JSON string representation of the object
+print(CommunitiesSearchSlice.to_json())
+
+# convert the object into a dict
+communities_search_slice_dict = communities_search_slice_instance.to_dict()
+# create an instance of CommunitiesSearchSlice from a dict
+communities_search_slice_from_dict = CommunitiesSearchSlice.from_dict(communities_search_slice_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/CommunityApi.md b/twitter_openapi_python_generated/docs/CommunityApi.md
new file mode 100644
index 0000000..c2f1eaf
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/CommunityApi.md
@@ -0,0 +1,1408 @@
+# twitter_openapi_python_generated.CommunityApi
+
+All URIs are relative to *https://x.com/i/api*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**get_communities_fetch_one_query**](CommunityApi.md#get_communities_fetch_one_query) | **GET** /graphql/{pathQueryId}/CommunitiesFetchOneQuery |
+[**get_communities_search_query**](CommunityApi.md#get_communities_search_query) | **GET** /graphql/{pathQueryId}/CommunitiesSearchQuery |
+[**get_community_query**](CommunityApi.md#get_community_query) | **GET** /graphql/{pathQueryId}/CommunityQuery |
+[**get_global_communities_latest_post_search_timeline**](CommunityApi.md#get_global_communities_latest_post_search_timeline) | **GET** /graphql/{pathQueryId}/GlobalCommunitiesLatestPostSearchTimeline |
+[**get_global_communities_post_search_timeline**](CommunityApi.md#get_global_communities_post_search_timeline) | **GET** /graphql/{pathQueryId}/GlobalCommunitiesPostSearchTimeline |
+[**get_topic_carousel_query**](CommunityApi.md#get_topic_carousel_query) | **GET** /graphql/{pathQueryId}/TopicCarouselQuery |
+
+
+# **get_communities_fetch_one_query**
+> CommunitiesFetchOneQueryResponse get_communities_fetch_one_query(path_query_id, features, variables)
+
+a community by id (community page)
+
+### Example
+
+* Api Key Authentication (Accept):
+* Api Key Authentication (ClientLanguage):
+* Api Key Authentication (Priority):
+* Api Key Authentication (Referer):
+* Api Key Authentication (SecFetchDest):
+* Api Key Authentication (SecChUaPlatform):
+* Api Key Authentication (SecFetchMode):
+* Api Key Authentication (CsrfToken):
+* Api Key Authentication (ClientUuid):
+* Bearer Authentication (BearerAuth):
+* Api Key Authentication (GuestToken):
+* Api Key Authentication (SecChUa):
+* Api Key Authentication (CookieGt0):
+* Api Key Authentication (ClientTransactionId):
+* Api Key Authentication (ActiveUser):
+* Api Key Authentication (CookieCt0):
+* Api Key Authentication (UserAgent):
+* Api Key Authentication (AcceptLanguage):
+* Api Key Authentication (SecFetchSite):
+* Api Key Authentication (AuthType):
+* Api Key Authentication (CookieAuthToken):
+* Api Key Authentication (SecChUaMobile):
+* Api Key Authentication (AcceptEncoding):
+
+```python
+import twitter_openapi_python_generated
+from twitter_openapi_python_generated.models.communities_fetch_one_query_response import CommunitiesFetchOneQueryResponse
+from twitter_openapi_python_generated.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://x.com/i/api
+# See configuration.py for a list of all supported configuration parameters.
+configuration = twitter_openapi_python_generated.Configuration(
+ host = "https://x.com/i/api"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: Accept
+configuration.api_key['Accept'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Accept'] = 'Bearer'
+
+# Configure API key authorization: ClientLanguage
+configuration.api_key['ClientLanguage'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientLanguage'] = 'Bearer'
+
+# Configure API key authorization: Priority
+configuration.api_key['Priority'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Priority'] = 'Bearer'
+
+# Configure API key authorization: Referer
+configuration.api_key['Referer'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Referer'] = 'Bearer'
+
+# Configure API key authorization: SecFetchDest
+configuration.api_key['SecFetchDest'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchDest'] = 'Bearer'
+
+# Configure API key authorization: SecChUaPlatform
+configuration.api_key['SecChUaPlatform'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUaPlatform'] = 'Bearer'
+
+# Configure API key authorization: SecFetchMode
+configuration.api_key['SecFetchMode'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchMode'] = 'Bearer'
+
+# Configure API key authorization: CsrfToken
+configuration.api_key['CsrfToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CsrfToken'] = 'Bearer'
+
+# Configure API key authorization: ClientUuid
+configuration.api_key['ClientUuid'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientUuid'] = 'Bearer'
+
+# Configure Bearer authorization: BearerAuth
+configuration = twitter_openapi_python_generated.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Configure API key authorization: GuestToken
+configuration.api_key['GuestToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['GuestToken'] = 'Bearer'
+
+# Configure API key authorization: SecChUa
+configuration.api_key['SecChUa'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUa'] = 'Bearer'
+
+# Configure API key authorization: CookieGt0
+configuration.api_key['CookieGt0'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieGt0'] = 'Bearer'
+
+# Configure API key authorization: ClientTransactionId
+configuration.api_key['ClientTransactionId'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientTransactionId'] = 'Bearer'
+
+# Configure API key authorization: ActiveUser
+configuration.api_key['ActiveUser'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ActiveUser'] = 'Bearer'
+
+# Configure API key authorization: CookieCt0
+configuration.api_key['CookieCt0'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieCt0'] = 'Bearer'
+
+# Configure API key authorization: UserAgent
+configuration.api_key['UserAgent'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['UserAgent'] = 'Bearer'
+
+# Configure API key authorization: AcceptLanguage
+configuration.api_key['AcceptLanguage'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AcceptLanguage'] = 'Bearer'
+
+# Configure API key authorization: SecFetchSite
+configuration.api_key['SecFetchSite'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchSite'] = 'Bearer'
+
+# Configure API key authorization: AuthType
+configuration.api_key['AuthType'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AuthType'] = 'Bearer'
+
+# Configure API key authorization: CookieAuthToken
+configuration.api_key['CookieAuthToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieAuthToken'] = 'Bearer'
+
+# Configure API key authorization: SecChUaMobile
+configuration.api_key['SecChUaMobile'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUaMobile'] = 'Bearer'
+
+# Configure API key authorization: AcceptEncoding
+configuration.api_key['AcceptEncoding'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AcceptEncoding'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with twitter_openapi_python_generated.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = twitter_openapi_python_generated.CommunityApi(api_client)
+ path_query_id = 'WP5rIK_ORn3JzCDlDzC1Cg' # str | (default to 'WP5rIK_ORn3JzCDlDzC1Cg')
+ features = '{"profile_label_improvements_pcf_label_in_post_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_profile_redirect_enabled": true, "rweb_tipjar_consumption_enabled": false, "verified_phone_label_enabled": false}' # str | (default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_profile_redirect_enabled": true, "rweb_tipjar_consumption_enabled": false, "verified_phone_label_enabled": false}')
+ variables = '{"communityId": "1738874426798870555", "withDmMuting": false, "withGrokTranslatedBio": false, "includeProfessionalCategory": true}' # str | (default to '{"communityId": "1738874426798870555", "withDmMuting": false, "withGrokTranslatedBio": false, "includeProfessionalCategory": true}')
+
+ try:
+ api_response = api_instance.get_communities_fetch_one_query(path_query_id, features, variables)
+ print("The response of CommunityApi->get_communities_fetch_one_query:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling CommunityApi->get_communities_fetch_one_query: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **path_query_id** | **str**| | [default to 'WP5rIK_ORn3JzCDlDzC1Cg']
+ **features** | **str**| | [default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_profile_redirect_enabled": true, "rweb_tipjar_consumption_enabled": false, "verified_phone_label_enabled": false}']
+ **variables** | **str**| | [default to '{"communityId": "1738874426798870555", "withDmMuting": false, "withGrokTranslatedBio": false, "includeProfessionalCategory": true}']
+
+### Return type
+
+[**CommunitiesFetchOneQueryResponse**](CommunitiesFetchOneQueryResponse.md)
+
+### Authorization
+
+[Accept](../README.md#Accept), [ClientLanguage](../README.md#ClientLanguage), [Priority](../README.md#Priority), [Referer](../README.md#Referer), [SecFetchDest](../README.md#SecFetchDest), [SecChUaPlatform](../README.md#SecChUaPlatform), [SecFetchMode](../README.md#SecFetchMode), [CsrfToken](../README.md#CsrfToken), [ClientUuid](../README.md#ClientUuid), [BearerAuth](../README.md#BearerAuth), [GuestToken](../README.md#GuestToken), [SecChUa](../README.md#SecChUa), [CookieGt0](../README.md#CookieGt0), [ClientTransactionId](../README.md#ClientTransactionId), [ActiveUser](../README.md#ActiveUser), [CookieCt0](../README.md#CookieCt0), [UserAgent](../README.md#UserAgent), [AcceptLanguage](../README.md#AcceptLanguage), [SecFetchSite](../README.md#SecFetchSite), [AuthType](../README.md#AuthType), [CookieAuthToken](../README.md#CookieAuthToken), [SecChUaMobile](../README.md#SecChUaMobile), [AcceptEncoding](../README.md#AcceptEncoding)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful operation | * x-connection-hash -
* x-rate-limit-limit -
* x-rate-limit-remaining -
* x-rate-limit-reset -
* x-response-time -
* x-tfe-preserve-body -
* x-transaction-id -
* x-twitter-response-tags -
|
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_communities_search_query**
+> CommunitiesSearchQueryResponse get_communities_search_query(path_query_id, variables)
+
+search communities. cursor:[slice_info.next_cursor]
+
+### Example
+
+* Api Key Authentication (Accept):
+* Api Key Authentication (ClientLanguage):
+* Api Key Authentication (Priority):
+* Api Key Authentication (Referer):
+* Api Key Authentication (SecFetchDest):
+* Api Key Authentication (SecChUaPlatform):
+* Api Key Authentication (SecFetchMode):
+* Api Key Authentication (CsrfToken):
+* Api Key Authentication (ClientUuid):
+* Bearer Authentication (BearerAuth):
+* Api Key Authentication (GuestToken):
+* Api Key Authentication (SecChUa):
+* Api Key Authentication (CookieGt0):
+* Api Key Authentication (ClientTransactionId):
+* Api Key Authentication (ActiveUser):
+* Api Key Authentication (CookieCt0):
+* Api Key Authentication (UserAgent):
+* Api Key Authentication (AcceptLanguage):
+* Api Key Authentication (SecFetchSite):
+* Api Key Authentication (AuthType):
+* Api Key Authentication (CookieAuthToken):
+* Api Key Authentication (SecChUaMobile):
+* Api Key Authentication (AcceptEncoding):
+
+```python
+import twitter_openapi_python_generated
+from twitter_openapi_python_generated.models.communities_search_query_response import CommunitiesSearchQueryResponse
+from twitter_openapi_python_generated.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://x.com/i/api
+# See configuration.py for a list of all supported configuration parameters.
+configuration = twitter_openapi_python_generated.Configuration(
+ host = "https://x.com/i/api"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: Accept
+configuration.api_key['Accept'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Accept'] = 'Bearer'
+
+# Configure API key authorization: ClientLanguage
+configuration.api_key['ClientLanguage'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientLanguage'] = 'Bearer'
+
+# Configure API key authorization: Priority
+configuration.api_key['Priority'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Priority'] = 'Bearer'
+
+# Configure API key authorization: Referer
+configuration.api_key['Referer'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Referer'] = 'Bearer'
+
+# Configure API key authorization: SecFetchDest
+configuration.api_key['SecFetchDest'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchDest'] = 'Bearer'
+
+# Configure API key authorization: SecChUaPlatform
+configuration.api_key['SecChUaPlatform'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUaPlatform'] = 'Bearer'
+
+# Configure API key authorization: SecFetchMode
+configuration.api_key['SecFetchMode'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchMode'] = 'Bearer'
+
+# Configure API key authorization: CsrfToken
+configuration.api_key['CsrfToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CsrfToken'] = 'Bearer'
+
+# Configure API key authorization: ClientUuid
+configuration.api_key['ClientUuid'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientUuid'] = 'Bearer'
+
+# Configure Bearer authorization: BearerAuth
+configuration = twitter_openapi_python_generated.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Configure API key authorization: GuestToken
+configuration.api_key['GuestToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['GuestToken'] = 'Bearer'
+
+# Configure API key authorization: SecChUa
+configuration.api_key['SecChUa'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUa'] = 'Bearer'
+
+# Configure API key authorization: CookieGt0
+configuration.api_key['CookieGt0'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieGt0'] = 'Bearer'
+
+# Configure API key authorization: ClientTransactionId
+configuration.api_key['ClientTransactionId'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientTransactionId'] = 'Bearer'
+
+# Configure API key authorization: ActiveUser
+configuration.api_key['ActiveUser'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ActiveUser'] = 'Bearer'
+
+# Configure API key authorization: CookieCt0
+configuration.api_key['CookieCt0'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieCt0'] = 'Bearer'
+
+# Configure API key authorization: UserAgent
+configuration.api_key['UserAgent'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['UserAgent'] = 'Bearer'
+
+# Configure API key authorization: AcceptLanguage
+configuration.api_key['AcceptLanguage'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AcceptLanguage'] = 'Bearer'
+
+# Configure API key authorization: SecFetchSite
+configuration.api_key['SecFetchSite'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchSite'] = 'Bearer'
+
+# Configure API key authorization: AuthType
+configuration.api_key['AuthType'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AuthType'] = 'Bearer'
+
+# Configure API key authorization: CookieAuthToken
+configuration.api_key['CookieAuthToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieAuthToken'] = 'Bearer'
+
+# Configure API key authorization: SecChUaMobile
+configuration.api_key['SecChUaMobile'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUaMobile'] = 'Bearer'
+
+# Configure API key authorization: AcceptEncoding
+configuration.api_key['AcceptEncoding'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AcceptEncoding'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with twitter_openapi_python_generated.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = twitter_openapi_python_generated.CommunityApi(api_client)
+ path_query_id = 'HKgnJbw10TZW41Na4ToaSw' # str | (default to 'HKgnJbw10TZW41Na4ToaSw')
+ variables = '{"query": "test", "cursor": null}' # str | (default to '{"query": "test", "cursor": null}')
+
+ try:
+ api_response = api_instance.get_communities_search_query(path_query_id, variables)
+ print("The response of CommunityApi->get_communities_search_query:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling CommunityApi->get_communities_search_query: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **path_query_id** | **str**| | [default to 'HKgnJbw10TZW41Na4ToaSw']
+ **variables** | **str**| | [default to '{"query": "test", "cursor": null}']
+
+### Return type
+
+[**CommunitiesSearchQueryResponse**](CommunitiesSearchQueryResponse.md)
+
+### Authorization
+
+[Accept](../README.md#Accept), [ClientLanguage](../README.md#ClientLanguage), [Priority](../README.md#Priority), [Referer](../README.md#Referer), [SecFetchDest](../README.md#SecFetchDest), [SecChUaPlatform](../README.md#SecChUaPlatform), [SecFetchMode](../README.md#SecFetchMode), [CsrfToken](../README.md#CsrfToken), [ClientUuid](../README.md#ClientUuid), [BearerAuth](../README.md#BearerAuth), [GuestToken](../README.md#GuestToken), [SecChUa](../README.md#SecChUa), [CookieGt0](../README.md#CookieGt0), [ClientTransactionId](../README.md#ClientTransactionId), [ActiveUser](../README.md#ActiveUser), [CookieCt0](../README.md#CookieCt0), [UserAgent](../README.md#UserAgent), [AcceptLanguage](../README.md#AcceptLanguage), [SecFetchSite](../README.md#SecFetchSite), [AuthType](../README.md#AuthType), [CookieAuthToken](../README.md#CookieAuthToken), [SecChUaMobile](../README.md#SecChUaMobile), [AcceptEncoding](../README.md#AcceptEncoding)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful operation | * x-connection-hash -
* x-rate-limit-limit -
* x-rate-limit-remaining -
* x-rate-limit-reset -
* x-response-time -
* x-tfe-preserve-body -
* x-transaction-id -
* x-twitter-response-tags -
|
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_community_query**
+> CommunityQueryResponse get_community_query(path_query_id, features, variables)
+
+a community by id (community settings and moderation pages)
+
+### Example
+
+* Api Key Authentication (Accept):
+* Api Key Authentication (ClientLanguage):
+* Api Key Authentication (Priority):
+* Api Key Authentication (Referer):
+* Api Key Authentication (SecFetchDest):
+* Api Key Authentication (SecChUaPlatform):
+* Api Key Authentication (SecFetchMode):
+* Api Key Authentication (CsrfToken):
+* Api Key Authentication (ClientUuid):
+* Bearer Authentication (BearerAuth):
+* Api Key Authentication (GuestToken):
+* Api Key Authentication (SecChUa):
+* Api Key Authentication (CookieGt0):
+* Api Key Authentication (ClientTransactionId):
+* Api Key Authentication (ActiveUser):
+* Api Key Authentication (CookieCt0):
+* Api Key Authentication (UserAgent):
+* Api Key Authentication (AcceptLanguage):
+* Api Key Authentication (SecFetchSite):
+* Api Key Authentication (AuthType):
+* Api Key Authentication (CookieAuthToken):
+* Api Key Authentication (SecChUaMobile):
+* Api Key Authentication (AcceptEncoding):
+
+```python
+import twitter_openapi_python_generated
+from twitter_openapi_python_generated.models.community_query_response import CommunityQueryResponse
+from twitter_openapi_python_generated.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://x.com/i/api
+# See configuration.py for a list of all supported configuration parameters.
+configuration = twitter_openapi_python_generated.Configuration(
+ host = "https://x.com/i/api"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: Accept
+configuration.api_key['Accept'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Accept'] = 'Bearer'
+
+# Configure API key authorization: ClientLanguage
+configuration.api_key['ClientLanguage'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientLanguage'] = 'Bearer'
+
+# Configure API key authorization: Priority
+configuration.api_key['Priority'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Priority'] = 'Bearer'
+
+# Configure API key authorization: Referer
+configuration.api_key['Referer'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Referer'] = 'Bearer'
+
+# Configure API key authorization: SecFetchDest
+configuration.api_key['SecFetchDest'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchDest'] = 'Bearer'
+
+# Configure API key authorization: SecChUaPlatform
+configuration.api_key['SecChUaPlatform'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUaPlatform'] = 'Bearer'
+
+# Configure API key authorization: SecFetchMode
+configuration.api_key['SecFetchMode'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchMode'] = 'Bearer'
+
+# Configure API key authorization: CsrfToken
+configuration.api_key['CsrfToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CsrfToken'] = 'Bearer'
+
+# Configure API key authorization: ClientUuid
+configuration.api_key['ClientUuid'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientUuid'] = 'Bearer'
+
+# Configure Bearer authorization: BearerAuth
+configuration = twitter_openapi_python_generated.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Configure API key authorization: GuestToken
+configuration.api_key['GuestToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['GuestToken'] = 'Bearer'
+
+# Configure API key authorization: SecChUa
+configuration.api_key['SecChUa'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUa'] = 'Bearer'
+
+# Configure API key authorization: CookieGt0
+configuration.api_key['CookieGt0'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieGt0'] = 'Bearer'
+
+# Configure API key authorization: ClientTransactionId
+configuration.api_key['ClientTransactionId'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientTransactionId'] = 'Bearer'
+
+# Configure API key authorization: ActiveUser
+configuration.api_key['ActiveUser'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ActiveUser'] = 'Bearer'
+
+# Configure API key authorization: CookieCt0
+configuration.api_key['CookieCt0'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieCt0'] = 'Bearer'
+
+# Configure API key authorization: UserAgent
+configuration.api_key['UserAgent'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['UserAgent'] = 'Bearer'
+
+# Configure API key authorization: AcceptLanguage
+configuration.api_key['AcceptLanguage'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AcceptLanguage'] = 'Bearer'
+
+# Configure API key authorization: SecFetchSite
+configuration.api_key['SecFetchSite'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchSite'] = 'Bearer'
+
+# Configure API key authorization: AuthType
+configuration.api_key['AuthType'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AuthType'] = 'Bearer'
+
+# Configure API key authorization: CookieAuthToken
+configuration.api_key['CookieAuthToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieAuthToken'] = 'Bearer'
+
+# Configure API key authorization: SecChUaMobile
+configuration.api_key['SecChUaMobile'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUaMobile'] = 'Bearer'
+
+# Configure API key authorization: AcceptEncoding
+configuration.api_key['AcceptEncoding'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AcceptEncoding'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with twitter_openapi_python_generated.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = twitter_openapi_python_generated.CommunityApi(api_client)
+ path_query_id = '-ElI1vg3dYbttVMhBhGdLw' # str | (default to '-ElI1vg3dYbttVMhBhGdLw')
+ features = '{"c9s_list_members_action_api_enabled": false, "c9s_superc9s_indication_enabled": false}' # str | (default to '{"c9s_list_members_action_api_enabled": false, "c9s_superc9s_indication_enabled": false}')
+ variables = '{"communityId": "1493446837214187523"}' # str | (default to '{"communityId": "1493446837214187523"}')
+
+ try:
+ api_response = api_instance.get_community_query(path_query_id, features, variables)
+ print("The response of CommunityApi->get_community_query:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling CommunityApi->get_community_query: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **path_query_id** | **str**| | [default to '-ElI1vg3dYbttVMhBhGdLw']
+ **features** | **str**| | [default to '{"c9s_list_members_action_api_enabled": false, "c9s_superc9s_indication_enabled": false}']
+ **variables** | **str**| | [default to '{"communityId": "1493446837214187523"}']
+
+### Return type
+
+[**CommunityQueryResponse**](CommunityQueryResponse.md)
+
+### Authorization
+
+[Accept](../README.md#Accept), [ClientLanguage](../README.md#ClientLanguage), [Priority](../README.md#Priority), [Referer](../README.md#Referer), [SecFetchDest](../README.md#SecFetchDest), [SecChUaPlatform](../README.md#SecChUaPlatform), [SecFetchMode](../README.md#SecFetchMode), [CsrfToken](../README.md#CsrfToken), [ClientUuid](../README.md#ClientUuid), [BearerAuth](../README.md#BearerAuth), [GuestToken](../README.md#GuestToken), [SecChUa](../README.md#SecChUa), [CookieGt0](../README.md#CookieGt0), [ClientTransactionId](../README.md#ClientTransactionId), [ActiveUser](../README.md#ActiveUser), [CookieCt0](../README.md#CookieCt0), [UserAgent](../README.md#UserAgent), [AcceptLanguage](../README.md#AcceptLanguage), [SecFetchSite](../README.md#SecFetchSite), [AuthType](../README.md#AuthType), [CookieAuthToken](../README.md#CookieAuthToken), [SecChUaMobile](../README.md#SecChUaMobile), [AcceptEncoding](../README.md#AcceptEncoding)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful operation | * x-connection-hash -
* x-rate-limit-limit -
* x-rate-limit-remaining -
* x-rate-limit-reset -
* x-response-time -
* x-tfe-preserve-body -
* x-transaction-id -
* x-twitter-response-tags -
|
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_global_communities_latest_post_search_timeline**
+> GlobalCommunitiesLatestPostSearchTimelineResponse get_global_communities_latest_post_search_timeline(path_query_id, features, variables)
+
+search posts across communities (Latest)
+
+### Example
+
+* Api Key Authentication (Accept):
+* Api Key Authentication (ClientLanguage):
+* Api Key Authentication (Priority):
+* Api Key Authentication (Referer):
+* Api Key Authentication (SecFetchDest):
+* Api Key Authentication (SecChUaPlatform):
+* Api Key Authentication (SecFetchMode):
+* Api Key Authentication (CsrfToken):
+* Api Key Authentication (ClientUuid):
+* Bearer Authentication (BearerAuth):
+* Api Key Authentication (GuestToken):
+* Api Key Authentication (SecChUa):
+* Api Key Authentication (CookieGt0):
+* Api Key Authentication (ClientTransactionId):
+* Api Key Authentication (ActiveUser):
+* Api Key Authentication (CookieCt0):
+* Api Key Authentication (UserAgent):
+* Api Key Authentication (AcceptLanguage):
+* Api Key Authentication (SecFetchSite):
+* Api Key Authentication (AuthType):
+* Api Key Authentication (CookieAuthToken):
+* Api Key Authentication (SecChUaMobile):
+* Api Key Authentication (AcceptEncoding):
+
+```python
+import twitter_openapi_python_generated
+from twitter_openapi_python_generated.models.global_communities_latest_post_search_timeline_response import GlobalCommunitiesLatestPostSearchTimelineResponse
+from twitter_openapi_python_generated.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://x.com/i/api
+# See configuration.py for a list of all supported configuration parameters.
+configuration = twitter_openapi_python_generated.Configuration(
+ host = "https://x.com/i/api"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: Accept
+configuration.api_key['Accept'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Accept'] = 'Bearer'
+
+# Configure API key authorization: ClientLanguage
+configuration.api_key['ClientLanguage'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientLanguage'] = 'Bearer'
+
+# Configure API key authorization: Priority
+configuration.api_key['Priority'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Priority'] = 'Bearer'
+
+# Configure API key authorization: Referer
+configuration.api_key['Referer'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Referer'] = 'Bearer'
+
+# Configure API key authorization: SecFetchDest
+configuration.api_key['SecFetchDest'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchDest'] = 'Bearer'
+
+# Configure API key authorization: SecChUaPlatform
+configuration.api_key['SecChUaPlatform'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUaPlatform'] = 'Bearer'
+
+# Configure API key authorization: SecFetchMode
+configuration.api_key['SecFetchMode'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchMode'] = 'Bearer'
+
+# Configure API key authorization: CsrfToken
+configuration.api_key['CsrfToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CsrfToken'] = 'Bearer'
+
+# Configure API key authorization: ClientUuid
+configuration.api_key['ClientUuid'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientUuid'] = 'Bearer'
+
+# Configure Bearer authorization: BearerAuth
+configuration = twitter_openapi_python_generated.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Configure API key authorization: GuestToken
+configuration.api_key['GuestToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['GuestToken'] = 'Bearer'
+
+# Configure API key authorization: SecChUa
+configuration.api_key['SecChUa'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUa'] = 'Bearer'
+
+# Configure API key authorization: CookieGt0
+configuration.api_key['CookieGt0'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieGt0'] = 'Bearer'
+
+# Configure API key authorization: ClientTransactionId
+configuration.api_key['ClientTransactionId'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientTransactionId'] = 'Bearer'
+
+# Configure API key authorization: ActiveUser
+configuration.api_key['ActiveUser'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ActiveUser'] = 'Bearer'
+
+# Configure API key authorization: CookieCt0
+configuration.api_key['CookieCt0'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieCt0'] = 'Bearer'
+
+# Configure API key authorization: UserAgent
+configuration.api_key['UserAgent'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['UserAgent'] = 'Bearer'
+
+# Configure API key authorization: AcceptLanguage
+configuration.api_key['AcceptLanguage'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AcceptLanguage'] = 'Bearer'
+
+# Configure API key authorization: SecFetchSite
+configuration.api_key['SecFetchSite'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchSite'] = 'Bearer'
+
+# Configure API key authorization: AuthType
+configuration.api_key['AuthType'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AuthType'] = 'Bearer'
+
+# Configure API key authorization: CookieAuthToken
+configuration.api_key['CookieAuthToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieAuthToken'] = 'Bearer'
+
+# Configure API key authorization: SecChUaMobile
+configuration.api_key['SecChUaMobile'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUaMobile'] = 'Bearer'
+
+# Configure API key authorization: AcceptEncoding
+configuration.api_key['AcceptEncoding'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AcceptEncoding'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with twitter_openapi_python_generated.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = twitter_openapi_python_generated.CommunityApi(api_client)
+ path_query_id = 'XtgLdT7L-zyrDDKH2dO0lw' # str | (default to 'XtgLdT7L-zyrDDKH2dO0lw')
+ features = '{"rweb_video_screen_enabled": false, "rweb_cashtags_enabled": true, "profile_label_improvements_pcf_label_in_post_enabled": true, "responsive_web_profile_redirect_enabled": true, "rweb_tipjar_consumption_enabled": false, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "rweb_cashtags_composer_attachment_enabled": true, "responsive_web_jetfuel_frame": true, "rweb_sports_post_context_enabled": true, "responsive_web_grok_share_attachment_enabled": true, "responsive_web_grok_annotations_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "rweb_conversational_replies_downvote_enabled": false, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "content_disclosure_indicator_enabled": true, "content_disclosure_ai_generated_indicator_enabled": true, "responsive_web_grok_show_grok_translated_post": true, "responsive_web_grok_analysis_button_from_backend": true, "post_ctas_fetch_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": false, "responsive_web_nested_quote_preview_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_grok_imagine_annotation_enabled": true, "responsive_web_grok_community_note_auto_translation_is_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"rweb_video_screen_enabled": false, "rweb_cashtags_enabled": true, "profile_label_improvements_pcf_label_in_post_enabled": true, "responsive_web_profile_redirect_enabled": true, "rweb_tipjar_consumption_enabled": false, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "rweb_cashtags_composer_attachment_enabled": true, "responsive_web_jetfuel_frame": true, "rweb_sports_post_context_enabled": true, "responsive_web_grok_share_attachment_enabled": true, "responsive_web_grok_annotations_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "rweb_conversational_replies_downvote_enabled": false, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "content_disclosure_indicator_enabled": true, "content_disclosure_ai_generated_indicator_enabled": true, "responsive_web_grok_show_grok_translated_post": true, "responsive_web_grok_analysis_button_from_backend": true, "post_ctas_fetch_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": false, "responsive_web_nested_quote_preview_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_grok_imagine_annotation_enabled": true, "responsive_web_grok_community_note_auto_translation_is_enabled": true, "responsive_web_enhance_cards_enabled": false}')
+ variables = '{"rawQuery": "test", "count": 20}' # str | (default to '{"rawQuery": "test", "count": 20}')
+
+ try:
+ api_response = api_instance.get_global_communities_latest_post_search_timeline(path_query_id, features, variables)
+ print("The response of CommunityApi->get_global_communities_latest_post_search_timeline:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling CommunityApi->get_global_communities_latest_post_search_timeline: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **path_query_id** | **str**| | [default to 'XtgLdT7L-zyrDDKH2dO0lw']
+ **features** | **str**| | [default to '{"rweb_video_screen_enabled": false, "rweb_cashtags_enabled": true, "profile_label_improvements_pcf_label_in_post_enabled": true, "responsive_web_profile_redirect_enabled": true, "rweb_tipjar_consumption_enabled": false, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "rweb_cashtags_composer_attachment_enabled": true, "responsive_web_jetfuel_frame": true, "rweb_sports_post_context_enabled": true, "responsive_web_grok_share_attachment_enabled": true, "responsive_web_grok_annotations_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "rweb_conversational_replies_downvote_enabled": false, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "content_disclosure_indicator_enabled": true, "content_disclosure_ai_generated_indicator_enabled": true, "responsive_web_grok_show_grok_translated_post": true, "responsive_web_grok_analysis_button_from_backend": true, "post_ctas_fetch_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": false, "responsive_web_nested_quote_preview_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_grok_imagine_annotation_enabled": true, "responsive_web_grok_community_note_auto_translation_is_enabled": true, "responsive_web_enhance_cards_enabled": false}']
+ **variables** | **str**| | [default to '{"rawQuery": "test", "count": 20}']
+
+### Return type
+
+[**GlobalCommunitiesLatestPostSearchTimelineResponse**](GlobalCommunitiesLatestPostSearchTimelineResponse.md)
+
+### Authorization
+
+[Accept](../README.md#Accept), [ClientLanguage](../README.md#ClientLanguage), [Priority](../README.md#Priority), [Referer](../README.md#Referer), [SecFetchDest](../README.md#SecFetchDest), [SecChUaPlatform](../README.md#SecChUaPlatform), [SecFetchMode](../README.md#SecFetchMode), [CsrfToken](../README.md#CsrfToken), [ClientUuid](../README.md#ClientUuid), [BearerAuth](../README.md#BearerAuth), [GuestToken](../README.md#GuestToken), [SecChUa](../README.md#SecChUa), [CookieGt0](../README.md#CookieGt0), [ClientTransactionId](../README.md#ClientTransactionId), [ActiveUser](../README.md#ActiveUser), [CookieCt0](../README.md#CookieCt0), [UserAgent](../README.md#UserAgent), [AcceptLanguage](../README.md#AcceptLanguage), [SecFetchSite](../README.md#SecFetchSite), [AuthType](../README.md#AuthType), [CookieAuthToken](../README.md#CookieAuthToken), [SecChUaMobile](../README.md#SecChUaMobile), [AcceptEncoding](../README.md#AcceptEncoding)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful operation | * x-connection-hash -
* x-rate-limit-limit -
* x-rate-limit-remaining -
* x-rate-limit-reset -
* x-response-time -
* x-tfe-preserve-body -
* x-transaction-id -
* x-twitter-response-tags -
|
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_global_communities_post_search_timeline**
+> GlobalCommunitiesPostSearchTimelineResponse get_global_communities_post_search_timeline(path_query_id, features, variables)
+
+search posts across communities (Top)
+
+### Example
+
+* Api Key Authentication (Accept):
+* Api Key Authentication (ClientLanguage):
+* Api Key Authentication (Priority):
+* Api Key Authentication (Referer):
+* Api Key Authentication (SecFetchDest):
+* Api Key Authentication (SecChUaPlatform):
+* Api Key Authentication (SecFetchMode):
+* Api Key Authentication (CsrfToken):
+* Api Key Authentication (ClientUuid):
+* Bearer Authentication (BearerAuth):
+* Api Key Authentication (GuestToken):
+* Api Key Authentication (SecChUa):
+* Api Key Authentication (CookieGt0):
+* Api Key Authentication (ClientTransactionId):
+* Api Key Authentication (ActiveUser):
+* Api Key Authentication (CookieCt0):
+* Api Key Authentication (UserAgent):
+* Api Key Authentication (AcceptLanguage):
+* Api Key Authentication (SecFetchSite):
+* Api Key Authentication (AuthType):
+* Api Key Authentication (CookieAuthToken):
+* Api Key Authentication (SecChUaMobile):
+* Api Key Authentication (AcceptEncoding):
+
+```python
+import twitter_openapi_python_generated
+from twitter_openapi_python_generated.models.global_communities_post_search_timeline_response import GlobalCommunitiesPostSearchTimelineResponse
+from twitter_openapi_python_generated.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://x.com/i/api
+# See configuration.py for a list of all supported configuration parameters.
+configuration = twitter_openapi_python_generated.Configuration(
+ host = "https://x.com/i/api"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: Accept
+configuration.api_key['Accept'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Accept'] = 'Bearer'
+
+# Configure API key authorization: ClientLanguage
+configuration.api_key['ClientLanguage'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientLanguage'] = 'Bearer'
+
+# Configure API key authorization: Priority
+configuration.api_key['Priority'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Priority'] = 'Bearer'
+
+# Configure API key authorization: Referer
+configuration.api_key['Referer'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Referer'] = 'Bearer'
+
+# Configure API key authorization: SecFetchDest
+configuration.api_key['SecFetchDest'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchDest'] = 'Bearer'
+
+# Configure API key authorization: SecChUaPlatform
+configuration.api_key['SecChUaPlatform'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUaPlatform'] = 'Bearer'
+
+# Configure API key authorization: SecFetchMode
+configuration.api_key['SecFetchMode'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchMode'] = 'Bearer'
+
+# Configure API key authorization: CsrfToken
+configuration.api_key['CsrfToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CsrfToken'] = 'Bearer'
+
+# Configure API key authorization: ClientUuid
+configuration.api_key['ClientUuid'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientUuid'] = 'Bearer'
+
+# Configure Bearer authorization: BearerAuth
+configuration = twitter_openapi_python_generated.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Configure API key authorization: GuestToken
+configuration.api_key['GuestToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['GuestToken'] = 'Bearer'
+
+# Configure API key authorization: SecChUa
+configuration.api_key['SecChUa'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUa'] = 'Bearer'
+
+# Configure API key authorization: CookieGt0
+configuration.api_key['CookieGt0'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieGt0'] = 'Bearer'
+
+# Configure API key authorization: ClientTransactionId
+configuration.api_key['ClientTransactionId'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientTransactionId'] = 'Bearer'
+
+# Configure API key authorization: ActiveUser
+configuration.api_key['ActiveUser'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ActiveUser'] = 'Bearer'
+
+# Configure API key authorization: CookieCt0
+configuration.api_key['CookieCt0'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieCt0'] = 'Bearer'
+
+# Configure API key authorization: UserAgent
+configuration.api_key['UserAgent'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['UserAgent'] = 'Bearer'
+
+# Configure API key authorization: AcceptLanguage
+configuration.api_key['AcceptLanguage'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AcceptLanguage'] = 'Bearer'
+
+# Configure API key authorization: SecFetchSite
+configuration.api_key['SecFetchSite'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchSite'] = 'Bearer'
+
+# Configure API key authorization: AuthType
+configuration.api_key['AuthType'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AuthType'] = 'Bearer'
+
+# Configure API key authorization: CookieAuthToken
+configuration.api_key['CookieAuthToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieAuthToken'] = 'Bearer'
+
+# Configure API key authorization: SecChUaMobile
+configuration.api_key['SecChUaMobile'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUaMobile'] = 'Bearer'
+
+# Configure API key authorization: AcceptEncoding
+configuration.api_key['AcceptEncoding'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AcceptEncoding'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with twitter_openapi_python_generated.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = twitter_openapi_python_generated.CommunityApi(api_client)
+ path_query_id = 'z3OlkLD0_MFgCvUXcN1XeA' # str | (default to 'z3OlkLD0_MFgCvUXcN1XeA')
+ features = '{"rweb_video_screen_enabled": false, "rweb_cashtags_enabled": true, "profile_label_improvements_pcf_label_in_post_enabled": true, "responsive_web_profile_redirect_enabled": true, "rweb_tipjar_consumption_enabled": false, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "rweb_cashtags_composer_attachment_enabled": true, "responsive_web_jetfuel_frame": true, "rweb_sports_post_context_enabled": true, "responsive_web_grok_share_attachment_enabled": true, "responsive_web_grok_annotations_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "rweb_conversational_replies_downvote_enabled": false, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "content_disclosure_indicator_enabled": true, "content_disclosure_ai_generated_indicator_enabled": true, "responsive_web_grok_show_grok_translated_post": true, "responsive_web_grok_analysis_button_from_backend": true, "post_ctas_fetch_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": false, "responsive_web_nested_quote_preview_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_grok_imagine_annotation_enabled": true, "responsive_web_grok_community_note_auto_translation_is_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"rweb_video_screen_enabled": false, "rweb_cashtags_enabled": true, "profile_label_improvements_pcf_label_in_post_enabled": true, "responsive_web_profile_redirect_enabled": true, "rweb_tipjar_consumption_enabled": false, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "rweb_cashtags_composer_attachment_enabled": true, "responsive_web_jetfuel_frame": true, "rweb_sports_post_context_enabled": true, "responsive_web_grok_share_attachment_enabled": true, "responsive_web_grok_annotations_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "rweb_conversational_replies_downvote_enabled": false, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "content_disclosure_indicator_enabled": true, "content_disclosure_ai_generated_indicator_enabled": true, "responsive_web_grok_show_grok_translated_post": true, "responsive_web_grok_analysis_button_from_backend": true, "post_ctas_fetch_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": false, "responsive_web_nested_quote_preview_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_grok_imagine_annotation_enabled": true, "responsive_web_grok_community_note_auto_translation_is_enabled": true, "responsive_web_enhance_cards_enabled": false}')
+ variables = '{"rawQuery": "test", "count": 20}' # str | (default to '{"rawQuery": "test", "count": 20}')
+
+ try:
+ api_response = api_instance.get_global_communities_post_search_timeline(path_query_id, features, variables)
+ print("The response of CommunityApi->get_global_communities_post_search_timeline:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling CommunityApi->get_global_communities_post_search_timeline: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **path_query_id** | **str**| | [default to 'z3OlkLD0_MFgCvUXcN1XeA']
+ **features** | **str**| | [default to '{"rweb_video_screen_enabled": false, "rweb_cashtags_enabled": true, "profile_label_improvements_pcf_label_in_post_enabled": true, "responsive_web_profile_redirect_enabled": true, "rweb_tipjar_consumption_enabled": false, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "rweb_cashtags_composer_attachment_enabled": true, "responsive_web_jetfuel_frame": true, "rweb_sports_post_context_enabled": true, "responsive_web_grok_share_attachment_enabled": true, "responsive_web_grok_annotations_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "rweb_conversational_replies_downvote_enabled": false, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "content_disclosure_indicator_enabled": true, "content_disclosure_ai_generated_indicator_enabled": true, "responsive_web_grok_show_grok_translated_post": true, "responsive_web_grok_analysis_button_from_backend": true, "post_ctas_fetch_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": false, "responsive_web_nested_quote_preview_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_grok_imagine_annotation_enabled": true, "responsive_web_grok_community_note_auto_translation_is_enabled": true, "responsive_web_enhance_cards_enabled": false}']
+ **variables** | **str**| | [default to '{"rawQuery": "test", "count": 20}']
+
+### Return type
+
+[**GlobalCommunitiesPostSearchTimelineResponse**](GlobalCommunitiesPostSearchTimelineResponse.md)
+
+### Authorization
+
+[Accept](../README.md#Accept), [ClientLanguage](../README.md#ClientLanguage), [Priority](../README.md#Priority), [Referer](../README.md#Referer), [SecFetchDest](../README.md#SecFetchDest), [SecChUaPlatform](../README.md#SecChUaPlatform), [SecFetchMode](../README.md#SecFetchMode), [CsrfToken](../README.md#CsrfToken), [ClientUuid](../README.md#ClientUuid), [BearerAuth](../README.md#BearerAuth), [GuestToken](../README.md#GuestToken), [SecChUa](../README.md#SecChUa), [CookieGt0](../README.md#CookieGt0), [ClientTransactionId](../README.md#ClientTransactionId), [ActiveUser](../README.md#ActiveUser), [CookieCt0](../README.md#CookieCt0), [UserAgent](../README.md#UserAgent), [AcceptLanguage](../README.md#AcceptLanguage), [SecFetchSite](../README.md#SecFetchSite), [AuthType](../README.md#AuthType), [CookieAuthToken](../README.md#CookieAuthToken), [SecChUaMobile](../README.md#SecChUaMobile), [AcceptEncoding](../README.md#AcceptEncoding)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful operation | * x-connection-hash -
* x-rate-limit-limit -
* x-rate-limit-remaining -
* x-rate-limit-reset -
* x-response-time -
* x-tfe-preserve-body -
* x-transaction-id -
* x-twitter-response-tags -
|
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_topic_carousel_query**
+> TopicCarouselQueryResponse get_topic_carousel_query(path_query_id, variables)
+
+community topics and subtopics
+
+### Example
+
+* Api Key Authentication (Accept):
+* Api Key Authentication (ClientLanguage):
+* Api Key Authentication (Priority):
+* Api Key Authentication (Referer):
+* Api Key Authentication (SecFetchDest):
+* Api Key Authentication (SecChUaPlatform):
+* Api Key Authentication (SecFetchMode):
+* Api Key Authentication (CsrfToken):
+* Api Key Authentication (ClientUuid):
+* Bearer Authentication (BearerAuth):
+* Api Key Authentication (GuestToken):
+* Api Key Authentication (SecChUa):
+* Api Key Authentication (CookieGt0):
+* Api Key Authentication (ClientTransactionId):
+* Api Key Authentication (ActiveUser):
+* Api Key Authentication (CookieCt0):
+* Api Key Authentication (UserAgent):
+* Api Key Authentication (AcceptLanguage):
+* Api Key Authentication (SecFetchSite):
+* Api Key Authentication (AuthType):
+* Api Key Authentication (CookieAuthToken):
+* Api Key Authentication (SecChUaMobile):
+* Api Key Authentication (AcceptEncoding):
+
+```python
+import twitter_openapi_python_generated
+from twitter_openapi_python_generated.models.topic_carousel_query_response import TopicCarouselQueryResponse
+from twitter_openapi_python_generated.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://x.com/i/api
+# See configuration.py for a list of all supported configuration parameters.
+configuration = twitter_openapi_python_generated.Configuration(
+ host = "https://x.com/i/api"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: Accept
+configuration.api_key['Accept'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Accept'] = 'Bearer'
+
+# Configure API key authorization: ClientLanguage
+configuration.api_key['ClientLanguage'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientLanguage'] = 'Bearer'
+
+# Configure API key authorization: Priority
+configuration.api_key['Priority'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Priority'] = 'Bearer'
+
+# Configure API key authorization: Referer
+configuration.api_key['Referer'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Referer'] = 'Bearer'
+
+# Configure API key authorization: SecFetchDest
+configuration.api_key['SecFetchDest'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchDest'] = 'Bearer'
+
+# Configure API key authorization: SecChUaPlatform
+configuration.api_key['SecChUaPlatform'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUaPlatform'] = 'Bearer'
+
+# Configure API key authorization: SecFetchMode
+configuration.api_key['SecFetchMode'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchMode'] = 'Bearer'
+
+# Configure API key authorization: CsrfToken
+configuration.api_key['CsrfToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CsrfToken'] = 'Bearer'
+
+# Configure API key authorization: ClientUuid
+configuration.api_key['ClientUuid'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientUuid'] = 'Bearer'
+
+# Configure Bearer authorization: BearerAuth
+configuration = twitter_openapi_python_generated.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Configure API key authorization: GuestToken
+configuration.api_key['GuestToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['GuestToken'] = 'Bearer'
+
+# Configure API key authorization: SecChUa
+configuration.api_key['SecChUa'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUa'] = 'Bearer'
+
+# Configure API key authorization: CookieGt0
+configuration.api_key['CookieGt0'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieGt0'] = 'Bearer'
+
+# Configure API key authorization: ClientTransactionId
+configuration.api_key['ClientTransactionId'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientTransactionId'] = 'Bearer'
+
+# Configure API key authorization: ActiveUser
+configuration.api_key['ActiveUser'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ActiveUser'] = 'Bearer'
+
+# Configure API key authorization: CookieCt0
+configuration.api_key['CookieCt0'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieCt0'] = 'Bearer'
+
+# Configure API key authorization: UserAgent
+configuration.api_key['UserAgent'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['UserAgent'] = 'Bearer'
+
+# Configure API key authorization: AcceptLanguage
+configuration.api_key['AcceptLanguage'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AcceptLanguage'] = 'Bearer'
+
+# Configure API key authorization: SecFetchSite
+configuration.api_key['SecFetchSite'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchSite'] = 'Bearer'
+
+# Configure API key authorization: AuthType
+configuration.api_key['AuthType'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AuthType'] = 'Bearer'
+
+# Configure API key authorization: CookieAuthToken
+configuration.api_key['CookieAuthToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieAuthToken'] = 'Bearer'
+
+# Configure API key authorization: SecChUaMobile
+configuration.api_key['SecChUaMobile'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUaMobile'] = 'Bearer'
+
+# Configure API key authorization: AcceptEncoding
+configuration.api_key['AcceptEncoding'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AcceptEncoding'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with twitter_openapi_python_generated.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = twitter_openapi_python_generated.CommunityApi(api_client)
+ path_query_id = 'byVjaS0CUtBqAao_lhZFgA' # str | (default to 'byVjaS0CUtBqAao_lhZFgA')
+ variables = '{}' # str | (default to '{}')
+
+ try:
+ api_response = api_instance.get_topic_carousel_query(path_query_id, variables)
+ print("The response of CommunityApi->get_topic_carousel_query:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling CommunityApi->get_topic_carousel_query: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **path_query_id** | **str**| | [default to 'byVjaS0CUtBqAao_lhZFgA']
+ **variables** | **str**| | [default to '{}']
+
+### Return type
+
+[**TopicCarouselQueryResponse**](TopicCarouselQueryResponse.md)
+
+### Authorization
+
+[Accept](../README.md#Accept), [ClientLanguage](../README.md#ClientLanguage), [Priority](../README.md#Priority), [Referer](../README.md#Referer), [SecFetchDest](../README.md#SecFetchDest), [SecChUaPlatform](../README.md#SecChUaPlatform), [SecFetchMode](../README.md#SecFetchMode), [CsrfToken](../README.md#CsrfToken), [ClientUuid](../README.md#ClientUuid), [BearerAuth](../README.md#BearerAuth), [GuestToken](../README.md#GuestToken), [SecChUa](../README.md#SecChUa), [CookieGt0](../README.md#CookieGt0), [ClientTransactionId](../README.md#ClientTransactionId), [ActiveUser](../README.md#ActiveUser), [CookieCt0](../README.md#CookieCt0), [UserAgent](../README.md#UserAgent), [AcceptLanguage](../README.md#AcceptLanguage), [SecFetchSite](../README.md#SecFetchSite), [AuthType](../README.md#AuthType), [CookieAuthToken](../README.md#CookieAuthToken), [SecChUaMobile](../README.md#SecChUaMobile), [AcceptEncoding](../README.md#AcceptEncoding)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful operation | * x-connection-hash -
* x-rate-limit-limit -
* x-rate-limit-remaining -
* x-rate-limit-reset -
* x-response-time -
* x-tfe-preserve-body -
* x-transaction-id -
* x-twitter-response-tags -
|
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/twitter_openapi_python_generated/docs/CommunityFacepileUser.md b/twitter_openapi_python_generated/docs/CommunityFacepileUser.md
new file mode 100644
index 0000000..11131bf
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/CommunityFacepileUser.md
@@ -0,0 +1,31 @@
+# CommunityFacepileUser
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**typename** | [**TypeName**](TypeName.md) | |
+**avatar** | [**UserAvatar**](UserAvatar.md) | |
+**id** | **str** | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.community_facepile_user import CommunityFacepileUser
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CommunityFacepileUser from a JSON string
+community_facepile_user_instance = CommunityFacepileUser.from_json(json)
+# print the JSON string representation of the object
+print(CommunityFacepileUser.to_json())
+
+# convert the object into a dict
+community_facepile_user_dict = community_facepile_user_instance.to_dict()
+# create an instance of CommunityFacepileUser from a dict
+community_facepile_user_from_dict = CommunityFacepileUser.from_dict(community_facepile_user_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/CommunityFacepileUserResults.md b/twitter_openapi_python_generated/docs/CommunityFacepileUserResults.md
new file mode 100644
index 0000000..e10c93c
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/CommunityFacepileUserResults.md
@@ -0,0 +1,30 @@
+# CommunityFacepileUserResults
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | |
+**result** | [**CommunityFacepileUser**](CommunityFacepileUser.md) | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.community_facepile_user_results import CommunityFacepileUserResults
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CommunityFacepileUserResults from a JSON string
+community_facepile_user_results_instance = CommunityFacepileUserResults.from_json(json)
+# print the JSON string representation of the object
+print(CommunityFacepileUserResults.to_json())
+
+# convert the object into a dict
+community_facepile_user_results_dict = community_facepile_user_results_instance.to_dict()
+# create an instance of CommunityFacepileUserResults from a dict
+community_facepile_user_results_from_dict = CommunityFacepileUserResults.from_dict(community_facepile_user_results_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/CommunityHashtag.md b/twitter_openapi_python_generated/docs/CommunityHashtag.md
new file mode 100644
index 0000000..b90e8d8
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/CommunityHashtag.md
@@ -0,0 +1,30 @@
+# CommunityHashtag
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**hashtag** | **str** | |
+**id** | **str** | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.community_hashtag import CommunityHashtag
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CommunityHashtag from a JSON string
+community_hashtag_instance = CommunityHashtag.from_json(json)
+# print the JSON string representation of the object
+print(CommunityHashtag.to_json())
+
+# convert the object into a dict
+community_hashtag_dict = community_hashtag_instance.to_dict()
+# create an instance of CommunityHashtag from a dict
+community_hashtag_from_dict = CommunityHashtag.from_dict(community_hashtag_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/CommunityHashtagSlice.md b/twitter_openapi_python_generated/docs/CommunityHashtagSlice.md
new file mode 100644
index 0000000..c6e2ca2
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/CommunityHashtagSlice.md
@@ -0,0 +1,30 @@
+# CommunityHashtagSlice
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**typename** | [**TypeName**](TypeName.md) | |
+**items** | [**List[CommunityHashtag]**](CommunityHashtag.md) | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.community_hashtag_slice import CommunityHashtagSlice
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CommunityHashtagSlice from a JSON string
+community_hashtag_slice_instance = CommunityHashtagSlice.from_json(json)
+# print the JSON string representation of the object
+print(CommunityHashtagSlice.to_json())
+
+# convert the object into a dict
+community_hashtag_slice_dict = community_hashtag_slice_instance.to_dict()
+# create an instance of CommunityHashtagSlice from a dict
+community_hashtag_slice_from_dict = CommunityHashtagSlice.from_dict(community_hashtag_slice_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/CommunityIdUserResults.md b/twitter_openapi_python_generated/docs/CommunityIdUserResults.md
new file mode 100644
index 0000000..efd4662
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/CommunityIdUserResults.md
@@ -0,0 +1,30 @@
+# CommunityIdUserResults
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | |
+**result** | [**UserUnion**](UserUnion.md) | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.community_id_user_results import CommunityIdUserResults
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CommunityIdUserResults from a JSON string
+community_id_user_results_instance = CommunityIdUserResults.from_json(json)
+# print the JSON string representation of the object
+print(CommunityIdUserResults.to_json())
+
+# convert the object into a dict
+community_id_user_results_dict = community_id_user_results_instance.to_dict()
+# create an instance of CommunityIdUserResults from a dict
+community_id_user_results_from_dict = CommunityIdUserResults.from_dict(community_id_user_results_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/CommunityListMembersActionResult.md b/twitter_openapi_python_generated/docs/CommunityListMembersActionResult.md
new file mode 100644
index 0000000..73fa638
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/CommunityListMembersActionResult.md
@@ -0,0 +1,29 @@
+# CommunityListMembersActionResult
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**typename** | [**TypeName**](TypeName.md) | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.community_list_members_action_result import CommunityListMembersActionResult
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CommunityListMembersActionResult from a JSON string
+community_list_members_action_result_instance = CommunityListMembersActionResult.from_json(json)
+# print the JSON string representation of the object
+print(CommunityListMembersActionResult.to_json())
+
+# convert the object into a dict
+community_list_members_action_result_dict = community_list_members_action_result_instance.to_dict()
+# create an instance of CommunityListMembersActionResult from a dict
+community_list_members_action_result_from_dict = CommunityListMembersActionResult.from_dict(community_list_members_action_result_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/CommunityPageActions.md b/twitter_openapi_python_generated/docs/CommunityPageActions.md
new file mode 100644
index 0000000..5c5b050
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/CommunityPageActions.md
@@ -0,0 +1,33 @@
+# CommunityPageActions
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**delete_action_result** | [**CommunityPageDeleteActionResult**](CommunityPageDeleteActionResult.md) | |
+**id** | **str** | |
+**join_action_result** | [**CommunityPageJoinActionResult**](CommunityPageJoinActionResult.md) | |
+**leave_action_result** | [**CommunityPageLeaveActionResult**](CommunityPageLeaveActionResult.md) | |
+**pin_action_result** | [**CommunityPagePinActionResult**](CommunityPagePinActionResult.md) | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.community_page_actions import CommunityPageActions
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CommunityPageActions from a JSON string
+community_page_actions_instance = CommunityPageActions.from_json(json)
+# print the JSON string representation of the object
+print(CommunityPageActions.to_json())
+
+# convert the object into a dict
+community_page_actions_dict = community_page_actions_instance.to_dict()
+# create an instance of CommunityPageActions from a dict
+community_page_actions_from_dict = CommunityPageActions.from_dict(community_page_actions_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/CommunityPageCommunity.md b/twitter_openapi_python_generated/docs/CommunityPageCommunity.md
new file mode 100644
index 0000000..8796ebe
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/CommunityPageCommunity.md
@@ -0,0 +1,52 @@
+# CommunityPageCommunity
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**typename** | [**TypeName**](TypeName.md) | |
+**actions** | [**CommunityPageActions**](CommunityPageActions.md) | |
+**admin_results** | [**CommunityIdUserResults**](CommunityIdUserResults.md) | |
+**created_at** | **int** | |
+**creator_results** | [**CommunityIdUserResults**](CommunityIdUserResults.md) | |
+**custom_banner_media** | [**CommunityBannerMedia**](CommunityBannerMedia.md) | |
+**default_banner_media** | [**CommunityBannerMedia**](CommunityBannerMedia.md) | |
+**description** | **str** | |
+**id** | **str** | |
+**id_str** | **str** | |
+**invites_policy** | **str** | |
+**invites_result** | [**CommunityPageInvitesResult**](CommunityPageInvitesResult.md) | |
+**is_nsfw** | **bool** | |
+**is_pinned** | **bool** | |
+**join_policy** | **str** | |
+**join_requests_result** | [**CommunityJoinRequestsResult**](CommunityJoinRequestsResult.md) | |
+**member_count** | **int** | |
+**members_facepile_results** | [**List[CommunityIdUserResults]**](CommunityIdUserResults.md) | |
+**moderator_count** | **int** | |
+**name** | **str** | |
+**role** | **str** | |
+**rules** | [**List[CommunityRelayRule]**](CommunityRelayRule.md) | |
+**search_tags** | **List[str]** | |
+**viewer_relationship** | [**CommunityViewerRelationship**](CommunityViewerRelationship.md) | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.community_page_community import CommunityPageCommunity
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CommunityPageCommunity from a JSON string
+community_page_community_instance = CommunityPageCommunity.from_json(json)
+# print the JSON string representation of the object
+print(CommunityPageCommunity.to_json())
+
+# convert the object into a dict
+community_page_community_dict = community_page_community_instance.to_dict()
+# create an instance of CommunityPageCommunity from a dict
+community_page_community_from_dict = CommunityPageCommunity.from_dict(community_page_community_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/CommunityPageDeleteActionResult.md b/twitter_openapi_python_generated/docs/CommunityPageDeleteActionResult.md
new file mode 100644
index 0000000..0510316
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/CommunityPageDeleteActionResult.md
@@ -0,0 +1,31 @@
+# CommunityPageDeleteActionResult
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**is_community_delete_action_result** | **str** | |
+**typename** | [**TypeName**](TypeName.md) | |
+**reason** | **str** | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.community_page_delete_action_result import CommunityPageDeleteActionResult
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CommunityPageDeleteActionResult from a JSON string
+community_page_delete_action_result_instance = CommunityPageDeleteActionResult.from_json(json)
+# print the JSON string representation of the object
+print(CommunityPageDeleteActionResult.to_json())
+
+# convert the object into a dict
+community_page_delete_action_result_dict = community_page_delete_action_result_instance.to_dict()
+# create an instance of CommunityPageDeleteActionResult from a dict
+community_page_delete_action_result_from_dict = CommunityPageDeleteActionResult.from_dict(community_page_delete_action_result_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/CommunityPageInvitesResult.md b/twitter_openapi_python_generated/docs/CommunityPageInvitesResult.md
new file mode 100644
index 0000000..b740c14
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/CommunityPageInvitesResult.md
@@ -0,0 +1,32 @@
+# CommunityPageInvitesResult
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**is_community_invites_result** | **str** | |
+**typename** | [**TypeName**](TypeName.md) | |
+**message** | **str** | |
+**reason** | **str** | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.community_page_invites_result import CommunityPageInvitesResult
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CommunityPageInvitesResult from a JSON string
+community_page_invites_result_instance = CommunityPageInvitesResult.from_json(json)
+# print the JSON string representation of the object
+print(CommunityPageInvitesResult.to_json())
+
+# convert the object into a dict
+community_page_invites_result_dict = community_page_invites_result_instance.to_dict()
+# create an instance of CommunityPageInvitesResult from a dict
+community_page_invites_result_from_dict = CommunityPageInvitesResult.from_dict(community_page_invites_result_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/CommunityPageJoinActionResult.md b/twitter_openapi_python_generated/docs/CommunityPageJoinActionResult.md
new file mode 100644
index 0000000..3994d5d
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/CommunityPageJoinActionResult.md
@@ -0,0 +1,30 @@
+# CommunityPageJoinActionResult
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**is_community_join_action_result** | **str** | |
+**typename** | [**TypeName**](TypeName.md) | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.community_page_join_action_result import CommunityPageJoinActionResult
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CommunityPageJoinActionResult from a JSON string
+community_page_join_action_result_instance = CommunityPageJoinActionResult.from_json(json)
+# print the JSON string representation of the object
+print(CommunityPageJoinActionResult.to_json())
+
+# convert the object into a dict
+community_page_join_action_result_dict = community_page_join_action_result_instance.to_dict()
+# create an instance of CommunityPageJoinActionResult from a dict
+community_page_join_action_result_from_dict = CommunityPageJoinActionResult.from_dict(community_page_join_action_result_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/CommunityPageLeaveActionResult.md b/twitter_openapi_python_generated/docs/CommunityPageLeaveActionResult.md
new file mode 100644
index 0000000..60340de
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/CommunityPageLeaveActionResult.md
@@ -0,0 +1,32 @@
+# CommunityPageLeaveActionResult
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**is_community_leave_action_result** | **str** | |
+**typename** | [**TypeName**](TypeName.md) | |
+**message** | **str** | |
+**reason** | **str** | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.community_page_leave_action_result import CommunityPageLeaveActionResult
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CommunityPageLeaveActionResult from a JSON string
+community_page_leave_action_result_instance = CommunityPageLeaveActionResult.from_json(json)
+# print the JSON string representation of the object
+print(CommunityPageLeaveActionResult.to_json())
+
+# convert the object into a dict
+community_page_leave_action_result_dict = community_page_leave_action_result_instance.to_dict()
+# create an instance of CommunityPageLeaveActionResult from a dict
+community_page_leave_action_result_from_dict = CommunityPageLeaveActionResult.from_dict(community_page_leave_action_result_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/CommunityPagePinActionResult.md b/twitter_openapi_python_generated/docs/CommunityPagePinActionResult.md
new file mode 100644
index 0000000..a47dd01
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/CommunityPagePinActionResult.md
@@ -0,0 +1,30 @@
+# CommunityPagePinActionResult
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**is_community_tweet_pin_action_result** | **str** | |
+**typename** | [**TypeName**](TypeName.md) | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.community_page_pin_action_result import CommunityPagePinActionResult
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CommunityPagePinActionResult from a JSON string
+community_page_pin_action_result_instance = CommunityPagePinActionResult.from_json(json)
+# print the JSON string representation of the object
+print(CommunityPagePinActionResult.to_json())
+
+# convert the object into a dict
+community_page_pin_action_result_dict = community_page_pin_action_result_instance.to_dict()
+# create an instance of CommunityPagePinActionResult from a dict
+community_page_pin_action_result_from_dict = CommunityPagePinActionResult.from_dict(community_page_pin_action_result_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/CommunityPageResults.md b/twitter_openapi_python_generated/docs/CommunityPageResults.md
new file mode 100644
index 0000000..44fd6cc
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/CommunityPageResults.md
@@ -0,0 +1,30 @@
+# CommunityPageResults
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | |
+**result** | [**CommunityPageCommunity**](CommunityPageCommunity.md) | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.community_page_results import CommunityPageResults
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CommunityPageResults from a JSON string
+community_page_results_instance = CommunityPageResults.from_json(json)
+# print the JSON string representation of the object
+print(CommunityPageResults.to_json())
+
+# convert the object into a dict
+community_page_results_dict = community_page_results_instance.to_dict()
+# create an instance of CommunityPageResults from a dict
+community_page_results_from_dict = CommunityPageResults.from_dict(community_page_results_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/CommunityPrimaryTopicName.md b/twitter_openapi_python_generated/docs/CommunityPrimaryTopicName.md
new file mode 100644
index 0000000..a00e3d3
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/CommunityPrimaryTopicName.md
@@ -0,0 +1,29 @@
+# CommunityPrimaryTopicName
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**topic_name** | **str** | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.community_primary_topic_name import CommunityPrimaryTopicName
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CommunityPrimaryTopicName from a JSON string
+community_primary_topic_name_instance = CommunityPrimaryTopicName.from_json(json)
+# print the JSON string representation of the object
+print(CommunityPrimaryTopicName.to_json())
+
+# convert the object into a dict
+community_primary_topic_name_dict = community_primary_topic_name_instance.to_dict()
+# create an instance of CommunityPrimaryTopicName from a dict
+community_primary_topic_name_from_dict = CommunityPrimaryTopicName.from_dict(community_primary_topic_name_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/CommunityQueryResponse.md b/twitter_openapi_python_generated/docs/CommunityQueryResponse.md
new file mode 100644
index 0000000..6bc9b00
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/CommunityQueryResponse.md
@@ -0,0 +1,30 @@
+# CommunityQueryResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**data** | [**CommunityQueryResponseData**](CommunityQueryResponseData.md) | |
+**errors** | [**List[ErrorResponse]**](ErrorResponse.md) | | [optional]
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.community_query_response import CommunityQueryResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CommunityQueryResponse from a JSON string
+community_query_response_instance = CommunityQueryResponse.from_json(json)
+# print the JSON string representation of the object
+print(CommunityQueryResponse.to_json())
+
+# convert the object into a dict
+community_query_response_dict = community_query_response_instance.to_dict()
+# create an instance of CommunityQueryResponse from a dict
+community_query_response_from_dict = CommunityQueryResponse.from_dict(community_query_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/CommunityQueryResponseData.md b/twitter_openapi_python_generated/docs/CommunityQueryResponseData.md
new file mode 100644
index 0000000..4da93d3
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/CommunityQueryResponseData.md
@@ -0,0 +1,29 @@
+# CommunityQueryResponseData
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**community_results** | [**CommunitySettingsResults**](CommunitySettingsResults.md) | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.community_query_response_data import CommunityQueryResponseData
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CommunityQueryResponseData from a JSON string
+community_query_response_data_instance = CommunityQueryResponseData.from_json(json)
+# print the JSON string representation of the object
+print(CommunityQueryResponseData.to_json())
+
+# convert the object into a dict
+community_query_response_data_dict = community_query_response_data_instance.to_dict()
+# create an instance of CommunityQueryResponseData from a dict
+community_query_response_data_from_dict = CommunityQueryResponseData.from_dict(community_query_response_data_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/CommunityRelayRule.md b/twitter_openapi_python_generated/docs/CommunityRelayRule.md
new file mode 100644
index 0000000..bd8439e
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/CommunityRelayRule.md
@@ -0,0 +1,32 @@
+# CommunityRelayRule
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**description** | **str** | | [optional]
+**id** | **str** | |
+**name** | **str** | |
+**rest_id** | **str** | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.community_relay_rule import CommunityRelayRule
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CommunityRelayRule from a JSON string
+community_relay_rule_instance = CommunityRelayRule.from_json(json)
+# print the JSON string representation of the object
+print(CommunityRelayRule.to_json())
+
+# convert the object into a dict
+community_relay_rule_dict = community_relay_rule_instance.to_dict()
+# create an instance of CommunityRelayRule from a dict
+community_relay_rule_from_dict = CommunityRelayRule.from_dict(community_relay_rule_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/CommunitySearchCommunity.md b/twitter_openapi_python_generated/docs/CommunitySearchCommunity.md
new file mode 100644
index 0000000..d80ac71
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/CommunitySearchCommunity.md
@@ -0,0 +1,38 @@
+# CommunitySearchCommunity
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**typename** | [**TypeName**](TypeName.md) | |
+**custom_banner_media** | [**CommunityBannerMedia**](CommunityBannerMedia.md) | | [optional]
+**default_banner_media** | [**CommunityBannerMedia**](CommunityBannerMedia.md) | |
+**id** | **str** | |
+**is_nsfw** | **bool** | |
+**member_count** | **int** | |
+**members_facepile_results** | [**List[CommunityFacepileUserResults]**](CommunityFacepileUserResults.md) | |
+**name** | **str** | |
+**primary_community_topic** | [**CommunityPrimaryTopicName**](CommunityPrimaryTopicName.md) | | [optional]
+**rest_id** | **str** | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.community_search_community import CommunitySearchCommunity
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CommunitySearchCommunity from a JSON string
+community_search_community_instance = CommunitySearchCommunity.from_json(json)
+# print the JSON string representation of the object
+print(CommunitySearchCommunity.to_json())
+
+# convert the object into a dict
+community_search_community_dict = community_search_community_instance.to_dict()
+# create an instance of CommunitySearchCommunity from a dict
+community_search_community_from_dict = CommunitySearchCommunity.from_dict(community_search_community_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/CommunitySearchResults.md b/twitter_openapi_python_generated/docs/CommunitySearchResults.md
new file mode 100644
index 0000000..2acf0a8
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/CommunitySearchResults.md
@@ -0,0 +1,30 @@
+# CommunitySearchResults
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | |
+**result** | [**CommunitySearchCommunity**](CommunitySearchCommunity.md) | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.community_search_results import CommunitySearchResults
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CommunitySearchResults from a JSON string
+community_search_results_instance = CommunitySearchResults.from_json(json)
+# print the JSON string representation of the object
+print(CommunitySearchResults.to_json())
+
+# convert the object into a dict
+community_search_results_dict = community_search_results_instance.to_dict()
+# create an instance of CommunitySearchResults from a dict
+community_search_results_from_dict = CommunitySearchResults.from_dict(community_search_results_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/CommunitySettingsActions.md b/twitter_openapi_python_generated/docs/CommunitySettingsActions.md
new file mode 100644
index 0000000..4faf903
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/CommunitySettingsActions.md
@@ -0,0 +1,31 @@
+# CommunitySettingsActions
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | |
+**join_action_result** | [**CommunityJoinActionResultUnion**](CommunityJoinActionResultUnion.md) | |
+**list_members_action_result** | [**CommunityListMembersActionResult**](CommunityListMembersActionResult.md) | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.community_settings_actions import CommunitySettingsActions
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CommunitySettingsActions from a JSON string
+community_settings_actions_instance = CommunitySettingsActions.from_json(json)
+# print the JSON string representation of the object
+print(CommunitySettingsActions.to_json())
+
+# convert the object into a dict
+community_settings_actions_dict = community_settings_actions_instance.to_dict()
+# create an instance of CommunitySettingsActions from a dict
+community_settings_actions_from_dict = CommunitySettingsActions.from_dict(community_settings_actions_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/CommunitySettingsCommunity.md b/twitter_openapi_python_generated/docs/CommunitySettingsCommunity.md
new file mode 100644
index 0000000..b74a3de
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/CommunitySettingsCommunity.md
@@ -0,0 +1,49 @@
+# CommunitySettingsCommunity
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**typename** | [**TypeName**](TypeName.md) | |
+**actions** | [**CommunitySettingsActions**](CommunitySettingsActions.md) | |
+**created_at** | **int** | |
+**creator_results** | [**CommunitySettingsCreatorResults**](CommunitySettingsCreatorResults.md) | |
+**custom_banner_media** | [**CommunityBannerMedia**](CommunityBannerMedia.md) | |
+**default_banner_media** | [**CommunityBannerMedia**](CommunityBannerMedia.md) | |
+**description** | **str** | |
+**id** | **str** | |
+**invites_result** | [**CommunitySettingsInvitesResult**](CommunitySettingsInvitesResult.md) | |
+**is_member** | **bool** | |
+**is_nsfw** | **bool** | |
+**join_policy** | **str** | |
+**join_requests_result** | [**CommunityJoinRequestsResult**](CommunityJoinRequestsResult.md) | |
+**member_count** | **int** | |
+**members_facepile_results** | [**List[CommunityFacepileUserResults]**](CommunityFacepileUserResults.md) | |
+**name** | **str** | |
+**primary_community_topic** | [**CommunityPrimaryTopicName**](CommunityPrimaryTopicName.md) | |
+**rest_id** | **str** | |
+**role** | **str** | |
+**rules** | [**List[CommunityRelayRule]**](CommunityRelayRule.md) | |
+**trending_hashtags_slice** | [**CommunityHashtagSlice**](CommunityHashtagSlice.md) | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.community_settings_community import CommunitySettingsCommunity
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CommunitySettingsCommunity from a JSON string
+community_settings_community_instance = CommunitySettingsCommunity.from_json(json)
+# print the JSON string representation of the object
+print(CommunitySettingsCommunity.to_json())
+
+# convert the object into a dict
+community_settings_community_dict = community_settings_community_instance.to_dict()
+# create an instance of CommunitySettingsCommunity from a dict
+community_settings_community_from_dict = CommunitySettingsCommunity.from_dict(community_settings_community_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/CommunitySettingsCreator.md b/twitter_openapi_python_generated/docs/CommunitySettingsCreator.md
new file mode 100644
index 0000000..b0c5116
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/CommunitySettingsCreator.md
@@ -0,0 +1,33 @@
+# CommunitySettingsCreator
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**typename** | [**TypeName**](TypeName.md) | |
+**core** | [**CommunitySettingsCreatorCore**](CommunitySettingsCreatorCore.md) | |
+**id** | **str** | |
+**is_blue_verified** | **bool** | |
+**verification** | [**CommunitySettingsCreatorVerification**](CommunitySettingsCreatorVerification.md) | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.community_settings_creator import CommunitySettingsCreator
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CommunitySettingsCreator from a JSON string
+community_settings_creator_instance = CommunitySettingsCreator.from_json(json)
+# print the JSON string representation of the object
+print(CommunitySettingsCreator.to_json())
+
+# convert the object into a dict
+community_settings_creator_dict = community_settings_creator_instance.to_dict()
+# create an instance of CommunitySettingsCreator from a dict
+community_settings_creator_from_dict = CommunitySettingsCreator.from_dict(community_settings_creator_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/CommunitySettingsCreatorCore.md b/twitter_openapi_python_generated/docs/CommunitySettingsCreatorCore.md
new file mode 100644
index 0000000..fc0f9eb
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/CommunitySettingsCreatorCore.md
@@ -0,0 +1,29 @@
+# CommunitySettingsCreatorCore
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**screen_name** | **str** | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.community_settings_creator_core import CommunitySettingsCreatorCore
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CommunitySettingsCreatorCore from a JSON string
+community_settings_creator_core_instance = CommunitySettingsCreatorCore.from_json(json)
+# print the JSON string representation of the object
+print(CommunitySettingsCreatorCore.to_json())
+
+# convert the object into a dict
+community_settings_creator_core_dict = community_settings_creator_core_instance.to_dict()
+# create an instance of CommunitySettingsCreatorCore from a dict
+community_settings_creator_core_from_dict = CommunitySettingsCreatorCore.from_dict(community_settings_creator_core_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/CommunitySettingsCreatorResults.md b/twitter_openapi_python_generated/docs/CommunitySettingsCreatorResults.md
new file mode 100644
index 0000000..9dcb952
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/CommunitySettingsCreatorResults.md
@@ -0,0 +1,30 @@
+# CommunitySettingsCreatorResults
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | |
+**result** | [**CommunitySettingsCreator**](CommunitySettingsCreator.md) | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.community_settings_creator_results import CommunitySettingsCreatorResults
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CommunitySettingsCreatorResults from a JSON string
+community_settings_creator_results_instance = CommunitySettingsCreatorResults.from_json(json)
+# print the JSON string representation of the object
+print(CommunitySettingsCreatorResults.to_json())
+
+# convert the object into a dict
+community_settings_creator_results_dict = community_settings_creator_results_instance.to_dict()
+# create an instance of CommunitySettingsCreatorResults from a dict
+community_settings_creator_results_from_dict = CommunitySettingsCreatorResults.from_dict(community_settings_creator_results_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/CommunitySettingsCreatorVerification.md b/twitter_openapi_python_generated/docs/CommunitySettingsCreatorVerification.md
new file mode 100644
index 0000000..e1f66b2
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/CommunitySettingsCreatorVerification.md
@@ -0,0 +1,29 @@
+# CommunitySettingsCreatorVerification
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**verified** | **bool** | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.community_settings_creator_verification import CommunitySettingsCreatorVerification
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CommunitySettingsCreatorVerification from a JSON string
+community_settings_creator_verification_instance = CommunitySettingsCreatorVerification.from_json(json)
+# print the JSON string representation of the object
+print(CommunitySettingsCreatorVerification.to_json())
+
+# convert the object into a dict
+community_settings_creator_verification_dict = community_settings_creator_verification_instance.to_dict()
+# create an instance of CommunitySettingsCreatorVerification from a dict
+community_settings_creator_verification_from_dict = CommunitySettingsCreatorVerification.from_dict(community_settings_creator_verification_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/CommunitySettingsInvitesResult.md b/twitter_openapi_python_generated/docs/CommunitySettingsInvitesResult.md
new file mode 100644
index 0000000..b754400
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/CommunitySettingsInvitesResult.md
@@ -0,0 +1,29 @@
+# CommunitySettingsInvitesResult
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**typename** | [**TypeName**](TypeName.md) | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.community_settings_invites_result import CommunitySettingsInvitesResult
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CommunitySettingsInvitesResult from a JSON string
+community_settings_invites_result_instance = CommunitySettingsInvitesResult.from_json(json)
+# print the JSON string representation of the object
+print(CommunitySettingsInvitesResult.to_json())
+
+# convert the object into a dict
+community_settings_invites_result_dict = community_settings_invites_result_instance.to_dict()
+# create an instance of CommunitySettingsInvitesResult from a dict
+community_settings_invites_result_from_dict = CommunitySettingsInvitesResult.from_dict(community_settings_invites_result_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/CommunitySettingsResults.md b/twitter_openapi_python_generated/docs/CommunitySettingsResults.md
new file mode 100644
index 0000000..0ab67b5
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/CommunitySettingsResults.md
@@ -0,0 +1,30 @@
+# CommunitySettingsResults
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | |
+**result** | [**CommunitySettingsCommunity**](CommunitySettingsCommunity.md) | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.community_settings_results import CommunitySettingsResults
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CommunitySettingsResults from a JSON string
+community_settings_results_instance = CommunitySettingsResults.from_json(json)
+# print the JSON string representation of the object
+print(CommunitySettingsResults.to_json())
+
+# convert the object into a dict
+community_settings_results_dict = community_settings_results_instance.to_dict()
+# create an instance of CommunitySettingsResults from a dict
+community_settings_results_from_dict = CommunitySettingsResults.from_dict(community_settings_results_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/CommunitySubtopic.md b/twitter_openapi_python_generated/docs/CommunitySubtopic.md
new file mode 100644
index 0000000..d7113f8
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/CommunitySubtopic.md
@@ -0,0 +1,30 @@
+# CommunitySubtopic
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**topic_id** | **str** | |
+**topic_name** | **str** | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.community_subtopic import CommunitySubtopic
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CommunitySubtopic from a JSON string
+community_subtopic_instance = CommunitySubtopic.from_json(json)
+# print the JSON string representation of the object
+print(CommunitySubtopic.to_json())
+
+# convert the object into a dict
+community_subtopic_dict = community_subtopic_instance.to_dict()
+# create an instance of CommunitySubtopic from a dict
+community_subtopic_from_dict = CommunitySubtopic.from_dict(community_subtopic_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/CommunityTopic.md b/twitter_openapi_python_generated/docs/CommunityTopic.md
new file mode 100644
index 0000000..9070572
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/CommunityTopic.md
@@ -0,0 +1,31 @@
+# CommunityTopic
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**subtopics** | [**List[CommunitySubtopic]**](CommunitySubtopic.md) | |
+**topic_id** | **str** | |
+**topic_name** | **str** | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.community_topic import CommunityTopic
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CommunityTopic from a JSON string
+community_topic_instance = CommunityTopic.from_json(json)
+# print the JSON string representation of the object
+print(CommunityTopic.to_json())
+
+# convert the object into a dict
+community_topic_dict = community_topic_instance.to_dict()
+# create an instance of CommunityTopic from a dict
+community_topic_from_dict = CommunityTopic.from_dict(community_topic_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/CommunityTopicResults.md b/twitter_openapi_python_generated/docs/CommunityTopicResults.md
new file mode 100644
index 0000000..a60a000
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/CommunityTopicResults.md
@@ -0,0 +1,29 @@
+# CommunityTopicResults
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**community_topics** | [**List[CommunityTopic]**](CommunityTopic.md) | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.community_topic_results import CommunityTopicResults
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CommunityTopicResults from a JSON string
+community_topic_results_instance = CommunityTopicResults.from_json(json)
+# print the JSON string representation of the object
+print(CommunityTopicResults.to_json())
+
+# convert the object into a dict
+community_topic_results_dict = community_topic_results_instance.to_dict()
+# create an instance of CommunityTopicResults from a dict
+community_topic_results_from_dict = CommunityTopicResults.from_dict(community_topic_results_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/ContentItemType.md b/twitter_openapi_python_generated/docs/ContentItemType.md
index 29a7675..94605dd 100644
--- a/twitter_openapi_python_generated/docs/ContentItemType.md
+++ b/twitter_openapi_python_generated/docs/ContentItemType.md
@@ -27,6 +27,8 @@
* `TIMELINELABEL` (value: `'TimelineLabel'`)
+* `TIMELINEEVENTSUMMARY` (value: `'TimelineEventSummary'`)
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/twitter_openapi_python_generated/docs/CreatorStudioTabBarItemQueryResponse.md b/twitter_openapi_python_generated/docs/CreatorStudioTabBarItemQueryResponse.md
new file mode 100644
index 0000000..377e119
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/CreatorStudioTabBarItemQueryResponse.md
@@ -0,0 +1,30 @@
+# CreatorStudioTabBarItemQueryResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**data** | [**CreatorStudioTabBarItemQueryResponseData**](CreatorStudioTabBarItemQueryResponseData.md) | |
+**errors** | [**List[ErrorResponse]**](ErrorResponse.md) | | [optional]
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.creator_studio_tab_bar_item_query_response import CreatorStudioTabBarItemQueryResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreatorStudioTabBarItemQueryResponse from a JSON string
+creator_studio_tab_bar_item_query_response_instance = CreatorStudioTabBarItemQueryResponse.from_json(json)
+# print the JSON string representation of the object
+print(CreatorStudioTabBarItemQueryResponse.to_json())
+
+# convert the object into a dict
+creator_studio_tab_bar_item_query_response_dict = creator_studio_tab_bar_item_query_response_instance.to_dict()
+# create an instance of CreatorStudioTabBarItemQueryResponse from a dict
+creator_studio_tab_bar_item_query_response_from_dict = CreatorStudioTabBarItemQueryResponse.from_dict(creator_studio_tab_bar_item_query_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/CreatorStudioTabBarItemQueryResponseData.md b/twitter_openapi_python_generated/docs/CreatorStudioTabBarItemQueryResponseData.md
new file mode 100644
index 0000000..e14bf0d
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/CreatorStudioTabBarItemQueryResponseData.md
@@ -0,0 +1,29 @@
+# CreatorStudioTabBarItemQueryResponseData
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**xpayments_audience_rewards_tasks** | **List[object]** | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.creator_studio_tab_bar_item_query_response_data import CreatorStudioTabBarItemQueryResponseData
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreatorStudioTabBarItemQueryResponseData from a JSON string
+creator_studio_tab_bar_item_query_response_data_instance = CreatorStudioTabBarItemQueryResponseData.from_json(json)
+# print the JSON string representation of the object
+print(CreatorStudioTabBarItemQueryResponseData.to_json())
+
+# convert the object into a dict
+creator_studio_tab_bar_item_query_response_data_dict = creator_studio_tab_bar_item_query_response_data_instance.to_dict()
+# create an instance of CreatorStudioTabBarItemQueryResponseData from a dict
+creator_studio_tab_bar_item_query_response_data_from_dict = CreatorStudioTabBarItemQueryResponseData.from_dict(creator_studio_tab_bar_item_query_response_data_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/DataSaverModeResponse.md b/twitter_openapi_python_generated/docs/DataSaverModeResponse.md
new file mode 100644
index 0000000..d8c9b28
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/DataSaverModeResponse.md
@@ -0,0 +1,30 @@
+# DataSaverModeResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**data** | [**DataSaverModeResponseData**](DataSaverModeResponseData.md) | |
+**errors** | [**List[ErrorResponse]**](ErrorResponse.md) | | [optional]
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.data_saver_mode_response import DataSaverModeResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of DataSaverModeResponse from a JSON string
+data_saver_mode_response_instance = DataSaverModeResponse.from_json(json)
+# print the JSON string representation of the object
+print(DataSaverModeResponse.to_json())
+
+# convert the object into a dict
+data_saver_mode_response_dict = data_saver_mode_response_instance.to_dict()
+# create an instance of DataSaverModeResponse from a dict
+data_saver_mode_response_from_dict = DataSaverModeResponse.from_dict(data_saver_mode_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/DataSaverModeResponseData.md b/twitter_openapi_python_generated/docs/DataSaverModeResponseData.md
new file mode 100644
index 0000000..f2df22b
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/DataSaverModeResponseData.md
@@ -0,0 +1,29 @@
+# DataSaverModeResponseData
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**viewer** | **object** | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.data_saver_mode_response_data import DataSaverModeResponseData
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of DataSaverModeResponseData from a JSON string
+data_saver_mode_response_data_instance = DataSaverModeResponseData.from_json(json)
+# print the JSON string representation of the object
+print(DataSaverModeResponseData.to_json())
+
+# convert the object into a dict
+data_saver_mode_response_data_dict = data_saver_mode_response_data_instance.to_dict()
+# create an instance of DataSaverModeResponseData from a dict
+data_saver_mode_response_data_from_dict = DataSaverModeResponseData.from_dict(data_saver_mode_response_data_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/DefaultApi.md b/twitter_openapi_python_generated/docs/DefaultApi.md
index fd198c0..5434e55 100644
--- a/twitter_openapi_python_generated/docs/DefaultApi.md
+++ b/twitter_openapi_python_generated/docs/DefaultApi.md
@@ -4,10 +4,1172 @@ All URIs are relative to *https://x.com/i/api*
Method | HTTP request | Description
------------- | ------------- | -------------
+[**get_authenticate_periscope**](DefaultApi.md#get_authenticate_periscope) | **GET** /graphql/{pathQueryId}/AuthenticatePeriscope |
+[**get_creator_studio_tab_bar_item_query**](DefaultApi.md#get_creator_studio_tab_bar_item_query) | **GET** /graphql/{pathQueryId}/CreatorStudioTabBarItemQuery |
+[**get_data_saver_mode**](DefaultApi.md#get_data_saver_mode) | **GET** /graphql/{pathQueryId}/DataSaverMode |
+[**get_grok_home**](DefaultApi.md#get_grok_home) | **GET** /graphql/{pathQueryId}/GrokHome |
+[**get_pinned_timelines**](DefaultApi.md#get_pinned_timelines) | **GET** /graphql/{pathQueryId}/PinnedTimelines |
[**get_profile_spotlights_query**](DefaultApi.md#get_profile_spotlights_query) | **GET** /graphql/{pathQueryId}/ProfileSpotlightsQuery |
[**get_tweet_result_by_rest_id**](DefaultApi.md#get_tweet_result_by_rest_id) | **GET** /graphql/{pathQueryId}/TweetResultByRestId |
+# **get_authenticate_periscope**
+> AuthenticatePeriscopeResponse get_authenticate_periscope(path_query_id, variables)
+
+a Periscope (live video) token for the account
+
+### Example
+
+* Api Key Authentication (Accept):
+* Api Key Authentication (ClientLanguage):
+* Api Key Authentication (Priority):
+* Api Key Authentication (Referer):
+* Api Key Authentication (SecFetchDest):
+* Api Key Authentication (SecChUaPlatform):
+* Api Key Authentication (SecFetchMode):
+* Api Key Authentication (CsrfToken):
+* Api Key Authentication (ClientUuid):
+* Bearer Authentication (BearerAuth):
+* Api Key Authentication (GuestToken):
+* Api Key Authentication (SecChUa):
+* Api Key Authentication (CookieGt0):
+* Api Key Authentication (ClientTransactionId):
+* Api Key Authentication (ActiveUser):
+* Api Key Authentication (CookieCt0):
+* Api Key Authentication (UserAgent):
+* Api Key Authentication (AcceptLanguage):
+* Api Key Authentication (SecFetchSite):
+* Api Key Authentication (AuthType):
+* Api Key Authentication (CookieAuthToken):
+* Api Key Authentication (SecChUaMobile):
+* Api Key Authentication (AcceptEncoding):
+
+```python
+import twitter_openapi_python_generated
+from twitter_openapi_python_generated.models.authenticate_periscope_response import AuthenticatePeriscopeResponse
+from twitter_openapi_python_generated.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://x.com/i/api
+# See configuration.py for a list of all supported configuration parameters.
+configuration = twitter_openapi_python_generated.Configuration(
+ host = "https://x.com/i/api"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: Accept
+configuration.api_key['Accept'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Accept'] = 'Bearer'
+
+# Configure API key authorization: ClientLanguage
+configuration.api_key['ClientLanguage'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientLanguage'] = 'Bearer'
+
+# Configure API key authorization: Priority
+configuration.api_key['Priority'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Priority'] = 'Bearer'
+
+# Configure API key authorization: Referer
+configuration.api_key['Referer'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Referer'] = 'Bearer'
+
+# Configure API key authorization: SecFetchDest
+configuration.api_key['SecFetchDest'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchDest'] = 'Bearer'
+
+# Configure API key authorization: SecChUaPlatform
+configuration.api_key['SecChUaPlatform'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUaPlatform'] = 'Bearer'
+
+# Configure API key authorization: SecFetchMode
+configuration.api_key['SecFetchMode'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchMode'] = 'Bearer'
+
+# Configure API key authorization: CsrfToken
+configuration.api_key['CsrfToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CsrfToken'] = 'Bearer'
+
+# Configure API key authorization: ClientUuid
+configuration.api_key['ClientUuid'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientUuid'] = 'Bearer'
+
+# Configure Bearer authorization: BearerAuth
+configuration = twitter_openapi_python_generated.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Configure API key authorization: GuestToken
+configuration.api_key['GuestToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['GuestToken'] = 'Bearer'
+
+# Configure API key authorization: SecChUa
+configuration.api_key['SecChUa'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUa'] = 'Bearer'
+
+# Configure API key authorization: CookieGt0
+configuration.api_key['CookieGt0'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieGt0'] = 'Bearer'
+
+# Configure API key authorization: ClientTransactionId
+configuration.api_key['ClientTransactionId'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientTransactionId'] = 'Bearer'
+
+# Configure API key authorization: ActiveUser
+configuration.api_key['ActiveUser'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ActiveUser'] = 'Bearer'
+
+# Configure API key authorization: CookieCt0
+configuration.api_key['CookieCt0'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieCt0'] = 'Bearer'
+
+# Configure API key authorization: UserAgent
+configuration.api_key['UserAgent'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['UserAgent'] = 'Bearer'
+
+# Configure API key authorization: AcceptLanguage
+configuration.api_key['AcceptLanguage'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AcceptLanguage'] = 'Bearer'
+
+# Configure API key authorization: SecFetchSite
+configuration.api_key['SecFetchSite'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchSite'] = 'Bearer'
+
+# Configure API key authorization: AuthType
+configuration.api_key['AuthType'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AuthType'] = 'Bearer'
+
+# Configure API key authorization: CookieAuthToken
+configuration.api_key['CookieAuthToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieAuthToken'] = 'Bearer'
+
+# Configure API key authorization: SecChUaMobile
+configuration.api_key['SecChUaMobile'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUaMobile'] = 'Bearer'
+
+# Configure API key authorization: AcceptEncoding
+configuration.api_key['AcceptEncoding'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AcceptEncoding'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with twitter_openapi_python_generated.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = twitter_openapi_python_generated.DefaultApi(api_client)
+ path_query_id = 'r7VUmxbfqNkx7uwjgONSNw' # str | (default to 'r7VUmxbfqNkx7uwjgONSNw')
+ variables = '{}' # str | (default to '{}')
+
+ try:
+ api_response = api_instance.get_authenticate_periscope(path_query_id, variables)
+ print("The response of DefaultApi->get_authenticate_periscope:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling DefaultApi->get_authenticate_periscope: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **path_query_id** | **str**| | [default to 'r7VUmxbfqNkx7uwjgONSNw']
+ **variables** | **str**| | [default to '{}']
+
+### Return type
+
+[**AuthenticatePeriscopeResponse**](AuthenticatePeriscopeResponse.md)
+
+### Authorization
+
+[Accept](../README.md#Accept), [ClientLanguage](../README.md#ClientLanguage), [Priority](../README.md#Priority), [Referer](../README.md#Referer), [SecFetchDest](../README.md#SecFetchDest), [SecChUaPlatform](../README.md#SecChUaPlatform), [SecFetchMode](../README.md#SecFetchMode), [CsrfToken](../README.md#CsrfToken), [ClientUuid](../README.md#ClientUuid), [BearerAuth](../README.md#BearerAuth), [GuestToken](../README.md#GuestToken), [SecChUa](../README.md#SecChUa), [CookieGt0](../README.md#CookieGt0), [ClientTransactionId](../README.md#ClientTransactionId), [ActiveUser](../README.md#ActiveUser), [CookieCt0](../README.md#CookieCt0), [UserAgent](../README.md#UserAgent), [AcceptLanguage](../README.md#AcceptLanguage), [SecFetchSite](../README.md#SecFetchSite), [AuthType](../README.md#AuthType), [CookieAuthToken](../README.md#CookieAuthToken), [SecChUaMobile](../README.md#SecChUaMobile), [AcceptEncoding](../README.md#AcceptEncoding)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful operation | * x-connection-hash -
* x-rate-limit-limit -
* x-rate-limit-remaining -
* x-rate-limit-reset -
* x-response-time -
* x-tfe-preserve-body -
* x-transaction-id -
* x-twitter-response-tags -
|
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_creator_studio_tab_bar_item_query**
+> CreatorStudioTabBarItemQueryResponse get_creator_studio_tab_bar_item_query(path_query_id, variables)
+
+audience rewards tasks shown in Creator Studio
+
+### Example
+
+* Api Key Authentication (Accept):
+* Api Key Authentication (ClientLanguage):
+* Api Key Authentication (Priority):
+* Api Key Authentication (Referer):
+* Api Key Authentication (SecFetchDest):
+* Api Key Authentication (SecChUaPlatform):
+* Api Key Authentication (SecFetchMode):
+* Api Key Authentication (CsrfToken):
+* Api Key Authentication (ClientUuid):
+* Bearer Authentication (BearerAuth):
+* Api Key Authentication (GuestToken):
+* Api Key Authentication (SecChUa):
+* Api Key Authentication (CookieGt0):
+* Api Key Authentication (ClientTransactionId):
+* Api Key Authentication (ActiveUser):
+* Api Key Authentication (CookieCt0):
+* Api Key Authentication (UserAgent):
+* Api Key Authentication (AcceptLanguage):
+* Api Key Authentication (SecFetchSite):
+* Api Key Authentication (AuthType):
+* Api Key Authentication (CookieAuthToken):
+* Api Key Authentication (SecChUaMobile):
+* Api Key Authentication (AcceptEncoding):
+
+```python
+import twitter_openapi_python_generated
+from twitter_openapi_python_generated.models.creator_studio_tab_bar_item_query_response import CreatorStudioTabBarItemQueryResponse
+from twitter_openapi_python_generated.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://x.com/i/api
+# See configuration.py for a list of all supported configuration parameters.
+configuration = twitter_openapi_python_generated.Configuration(
+ host = "https://x.com/i/api"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: Accept
+configuration.api_key['Accept'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Accept'] = 'Bearer'
+
+# Configure API key authorization: ClientLanguage
+configuration.api_key['ClientLanguage'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientLanguage'] = 'Bearer'
+
+# Configure API key authorization: Priority
+configuration.api_key['Priority'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Priority'] = 'Bearer'
+
+# Configure API key authorization: Referer
+configuration.api_key['Referer'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Referer'] = 'Bearer'
+
+# Configure API key authorization: SecFetchDest
+configuration.api_key['SecFetchDest'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchDest'] = 'Bearer'
+
+# Configure API key authorization: SecChUaPlatform
+configuration.api_key['SecChUaPlatform'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUaPlatform'] = 'Bearer'
+
+# Configure API key authorization: SecFetchMode
+configuration.api_key['SecFetchMode'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchMode'] = 'Bearer'
+
+# Configure API key authorization: CsrfToken
+configuration.api_key['CsrfToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CsrfToken'] = 'Bearer'
+
+# Configure API key authorization: ClientUuid
+configuration.api_key['ClientUuid'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientUuid'] = 'Bearer'
+
+# Configure Bearer authorization: BearerAuth
+configuration = twitter_openapi_python_generated.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Configure API key authorization: GuestToken
+configuration.api_key['GuestToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['GuestToken'] = 'Bearer'
+
+# Configure API key authorization: SecChUa
+configuration.api_key['SecChUa'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUa'] = 'Bearer'
+
+# Configure API key authorization: CookieGt0
+configuration.api_key['CookieGt0'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieGt0'] = 'Bearer'
+
+# Configure API key authorization: ClientTransactionId
+configuration.api_key['ClientTransactionId'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientTransactionId'] = 'Bearer'
+
+# Configure API key authorization: ActiveUser
+configuration.api_key['ActiveUser'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ActiveUser'] = 'Bearer'
+
+# Configure API key authorization: CookieCt0
+configuration.api_key['CookieCt0'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieCt0'] = 'Bearer'
+
+# Configure API key authorization: UserAgent
+configuration.api_key['UserAgent'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['UserAgent'] = 'Bearer'
+
+# Configure API key authorization: AcceptLanguage
+configuration.api_key['AcceptLanguage'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AcceptLanguage'] = 'Bearer'
+
+# Configure API key authorization: SecFetchSite
+configuration.api_key['SecFetchSite'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchSite'] = 'Bearer'
+
+# Configure API key authorization: AuthType
+configuration.api_key['AuthType'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AuthType'] = 'Bearer'
+
+# Configure API key authorization: CookieAuthToken
+configuration.api_key['CookieAuthToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieAuthToken'] = 'Bearer'
+
+# Configure API key authorization: SecChUaMobile
+configuration.api_key['SecChUaMobile'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUaMobile'] = 'Bearer'
+
+# Configure API key authorization: AcceptEncoding
+configuration.api_key['AcceptEncoding'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AcceptEncoding'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with twitter_openapi_python_generated.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = twitter_openapi_python_generated.DefaultApi(api_client)
+ path_query_id = '1KZj_GRTxmPaSrk8jIb1Yw' # str | (default to '1KZj_GRTxmPaSrk8jIb1Yw')
+ variables = '{}' # str | (default to '{}')
+
+ try:
+ api_response = api_instance.get_creator_studio_tab_bar_item_query(path_query_id, variables)
+ print("The response of DefaultApi->get_creator_studio_tab_bar_item_query:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling DefaultApi->get_creator_studio_tab_bar_item_query: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **path_query_id** | **str**| | [default to '1KZj_GRTxmPaSrk8jIb1Yw']
+ **variables** | **str**| | [default to '{}']
+
+### Return type
+
+[**CreatorStudioTabBarItemQueryResponse**](CreatorStudioTabBarItemQueryResponse.md)
+
+### Authorization
+
+[Accept](../README.md#Accept), [ClientLanguage](../README.md#ClientLanguage), [Priority](../README.md#Priority), [Referer](../README.md#Referer), [SecFetchDest](../README.md#SecFetchDest), [SecChUaPlatform](../README.md#SecChUaPlatform), [SecFetchMode](../README.md#SecFetchMode), [CsrfToken](../README.md#CsrfToken), [ClientUuid](../README.md#ClientUuid), [BearerAuth](../README.md#BearerAuth), [GuestToken](../README.md#GuestToken), [SecChUa](../README.md#SecChUa), [CookieGt0](../README.md#CookieGt0), [ClientTransactionId](../README.md#ClientTransactionId), [ActiveUser](../README.md#ActiveUser), [CookieCt0](../README.md#CookieCt0), [UserAgent](../README.md#UserAgent), [AcceptLanguage](../README.md#AcceptLanguage), [SecFetchSite](../README.md#SecFetchSite), [AuthType](../README.md#AuthType), [CookieAuthToken](../README.md#CookieAuthToken), [SecChUaMobile](../README.md#SecChUaMobile), [AcceptEncoding](../README.md#AcceptEncoding)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful operation | * x-connection-hash -
* x-rate-limit-limit -
* x-rate-limit-remaining -
* x-rate-limit-reset -
* x-response-time -
* x-tfe-preserve-body -
* x-transaction-id -
* x-twitter-response-tags -
|
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_data_saver_mode**
+> DataSaverModeResponse get_data_saver_mode(path_query_id, variables)
+
+data saver setting of the account
+
+### Example
+
+* Api Key Authentication (Accept):
+* Api Key Authentication (ClientLanguage):
+* Api Key Authentication (Priority):
+* Api Key Authentication (Referer):
+* Api Key Authentication (SecFetchDest):
+* Api Key Authentication (SecChUaPlatform):
+* Api Key Authentication (SecFetchMode):
+* Api Key Authentication (CsrfToken):
+* Api Key Authentication (ClientUuid):
+* Bearer Authentication (BearerAuth):
+* Api Key Authentication (GuestToken):
+* Api Key Authentication (SecChUa):
+* Api Key Authentication (CookieGt0):
+* Api Key Authentication (ClientTransactionId):
+* Api Key Authentication (ActiveUser):
+* Api Key Authentication (CookieCt0):
+* Api Key Authentication (UserAgent):
+* Api Key Authentication (AcceptLanguage):
+* Api Key Authentication (SecFetchSite):
+* Api Key Authentication (AuthType):
+* Api Key Authentication (CookieAuthToken):
+* Api Key Authentication (SecChUaMobile):
+* Api Key Authentication (AcceptEncoding):
+
+```python
+import twitter_openapi_python_generated
+from twitter_openapi_python_generated.models.data_saver_mode_response import DataSaverModeResponse
+from twitter_openapi_python_generated.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://x.com/i/api
+# See configuration.py for a list of all supported configuration parameters.
+configuration = twitter_openapi_python_generated.Configuration(
+ host = "https://x.com/i/api"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: Accept
+configuration.api_key['Accept'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Accept'] = 'Bearer'
+
+# Configure API key authorization: ClientLanguage
+configuration.api_key['ClientLanguage'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientLanguage'] = 'Bearer'
+
+# Configure API key authorization: Priority
+configuration.api_key['Priority'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Priority'] = 'Bearer'
+
+# Configure API key authorization: Referer
+configuration.api_key['Referer'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Referer'] = 'Bearer'
+
+# Configure API key authorization: SecFetchDest
+configuration.api_key['SecFetchDest'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchDest'] = 'Bearer'
+
+# Configure API key authorization: SecChUaPlatform
+configuration.api_key['SecChUaPlatform'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUaPlatform'] = 'Bearer'
+
+# Configure API key authorization: SecFetchMode
+configuration.api_key['SecFetchMode'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchMode'] = 'Bearer'
+
+# Configure API key authorization: CsrfToken
+configuration.api_key['CsrfToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CsrfToken'] = 'Bearer'
+
+# Configure API key authorization: ClientUuid
+configuration.api_key['ClientUuid'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientUuid'] = 'Bearer'
+
+# Configure Bearer authorization: BearerAuth
+configuration = twitter_openapi_python_generated.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Configure API key authorization: GuestToken
+configuration.api_key['GuestToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['GuestToken'] = 'Bearer'
+
+# Configure API key authorization: SecChUa
+configuration.api_key['SecChUa'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUa'] = 'Bearer'
+
+# Configure API key authorization: CookieGt0
+configuration.api_key['CookieGt0'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieGt0'] = 'Bearer'
+
+# Configure API key authorization: ClientTransactionId
+configuration.api_key['ClientTransactionId'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientTransactionId'] = 'Bearer'
+
+# Configure API key authorization: ActiveUser
+configuration.api_key['ActiveUser'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ActiveUser'] = 'Bearer'
+
+# Configure API key authorization: CookieCt0
+configuration.api_key['CookieCt0'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieCt0'] = 'Bearer'
+
+# Configure API key authorization: UserAgent
+configuration.api_key['UserAgent'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['UserAgent'] = 'Bearer'
+
+# Configure API key authorization: AcceptLanguage
+configuration.api_key['AcceptLanguage'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AcceptLanguage'] = 'Bearer'
+
+# Configure API key authorization: SecFetchSite
+configuration.api_key['SecFetchSite'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchSite'] = 'Bearer'
+
+# Configure API key authorization: AuthType
+configuration.api_key['AuthType'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AuthType'] = 'Bearer'
+
+# Configure API key authorization: CookieAuthToken
+configuration.api_key['CookieAuthToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieAuthToken'] = 'Bearer'
+
+# Configure API key authorization: SecChUaMobile
+configuration.api_key['SecChUaMobile'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUaMobile'] = 'Bearer'
+
+# Configure API key authorization: AcceptEncoding
+configuration.api_key['AcceptEncoding'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AcceptEncoding'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with twitter_openapi_python_generated.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = twitter_openapi_python_generated.DefaultApi(api_client)
+ path_query_id = 'xF6sXnKJfS2AOylzxRjf6A' # str | (default to 'xF6sXnKJfS2AOylzxRjf6A')
+ variables = '{"device_id": "Windows/Chrome"}' # str | (default to '{"device_id": "Windows/Chrome"}')
+
+ try:
+ api_response = api_instance.get_data_saver_mode(path_query_id, variables)
+ print("The response of DefaultApi->get_data_saver_mode:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling DefaultApi->get_data_saver_mode: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **path_query_id** | **str**| | [default to 'xF6sXnKJfS2AOylzxRjf6A']
+ **variables** | **str**| | [default to '{"device_id": "Windows/Chrome"}']
+
+### Return type
+
+[**DataSaverModeResponse**](DataSaverModeResponse.md)
+
+### Authorization
+
+[Accept](../README.md#Accept), [ClientLanguage](../README.md#ClientLanguage), [Priority](../README.md#Priority), [Referer](../README.md#Referer), [SecFetchDest](../README.md#SecFetchDest), [SecChUaPlatform](../README.md#SecChUaPlatform), [SecFetchMode](../README.md#SecFetchMode), [CsrfToken](../README.md#CsrfToken), [ClientUuid](../README.md#ClientUuid), [BearerAuth](../README.md#BearerAuth), [GuestToken](../README.md#GuestToken), [SecChUa](../README.md#SecChUa), [CookieGt0](../README.md#CookieGt0), [ClientTransactionId](../README.md#ClientTransactionId), [ActiveUser](../README.md#ActiveUser), [CookieCt0](../README.md#CookieCt0), [UserAgent](../README.md#UserAgent), [AcceptLanguage](../README.md#AcceptLanguage), [SecFetchSite](../README.md#SecFetchSite), [AuthType](../README.md#AuthType), [CookieAuthToken](../README.md#CookieAuthToken), [SecChUaMobile](../README.md#SecChUaMobile), [AcceptEncoding](../README.md#AcceptEncoding)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful operation | * x-connection-hash -
* x-rate-limit-limit -
* x-rate-limit-remaining -
* x-rate-limit-reset -
* x-response-time -
* x-tfe-preserve-body -
* x-transaction-id -
* x-twitter-response-tags -
|
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_grok_home**
+> GrokHomeResponse get_grok_home(path_query_id, variables)
+
+Grok home: model options, prompts and eligibility
+
+### Example
+
+* Api Key Authentication (Accept):
+* Api Key Authentication (ClientLanguage):
+* Api Key Authentication (Priority):
+* Api Key Authentication (Referer):
+* Api Key Authentication (SecFetchDest):
+* Api Key Authentication (SecChUaPlatform):
+* Api Key Authentication (SecFetchMode):
+* Api Key Authentication (CsrfToken):
+* Api Key Authentication (ClientUuid):
+* Bearer Authentication (BearerAuth):
+* Api Key Authentication (GuestToken):
+* Api Key Authentication (SecChUa):
+* Api Key Authentication (CookieGt0):
+* Api Key Authentication (ClientTransactionId):
+* Api Key Authentication (ActiveUser):
+* Api Key Authentication (CookieCt0):
+* Api Key Authentication (UserAgent):
+* Api Key Authentication (AcceptLanguage):
+* Api Key Authentication (SecFetchSite):
+* Api Key Authentication (AuthType):
+* Api Key Authentication (CookieAuthToken):
+* Api Key Authentication (SecChUaMobile):
+* Api Key Authentication (AcceptEncoding):
+
+```python
+import twitter_openapi_python_generated
+from twitter_openapi_python_generated.models.grok_home_response import GrokHomeResponse
+from twitter_openapi_python_generated.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://x.com/i/api
+# See configuration.py for a list of all supported configuration parameters.
+configuration = twitter_openapi_python_generated.Configuration(
+ host = "https://x.com/i/api"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: Accept
+configuration.api_key['Accept'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Accept'] = 'Bearer'
+
+# Configure API key authorization: ClientLanguage
+configuration.api_key['ClientLanguage'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientLanguage'] = 'Bearer'
+
+# Configure API key authorization: Priority
+configuration.api_key['Priority'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Priority'] = 'Bearer'
+
+# Configure API key authorization: Referer
+configuration.api_key['Referer'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Referer'] = 'Bearer'
+
+# Configure API key authorization: SecFetchDest
+configuration.api_key['SecFetchDest'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchDest'] = 'Bearer'
+
+# Configure API key authorization: SecChUaPlatform
+configuration.api_key['SecChUaPlatform'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUaPlatform'] = 'Bearer'
+
+# Configure API key authorization: SecFetchMode
+configuration.api_key['SecFetchMode'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchMode'] = 'Bearer'
+
+# Configure API key authorization: CsrfToken
+configuration.api_key['CsrfToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CsrfToken'] = 'Bearer'
+
+# Configure API key authorization: ClientUuid
+configuration.api_key['ClientUuid'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientUuid'] = 'Bearer'
+
+# Configure Bearer authorization: BearerAuth
+configuration = twitter_openapi_python_generated.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Configure API key authorization: GuestToken
+configuration.api_key['GuestToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['GuestToken'] = 'Bearer'
+
+# Configure API key authorization: SecChUa
+configuration.api_key['SecChUa'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUa'] = 'Bearer'
+
+# Configure API key authorization: CookieGt0
+configuration.api_key['CookieGt0'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieGt0'] = 'Bearer'
+
+# Configure API key authorization: ClientTransactionId
+configuration.api_key['ClientTransactionId'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientTransactionId'] = 'Bearer'
+
+# Configure API key authorization: ActiveUser
+configuration.api_key['ActiveUser'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ActiveUser'] = 'Bearer'
+
+# Configure API key authorization: CookieCt0
+configuration.api_key['CookieCt0'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieCt0'] = 'Bearer'
+
+# Configure API key authorization: UserAgent
+configuration.api_key['UserAgent'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['UserAgent'] = 'Bearer'
+
+# Configure API key authorization: AcceptLanguage
+configuration.api_key['AcceptLanguage'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AcceptLanguage'] = 'Bearer'
+
+# Configure API key authorization: SecFetchSite
+configuration.api_key['SecFetchSite'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchSite'] = 'Bearer'
+
+# Configure API key authorization: AuthType
+configuration.api_key['AuthType'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AuthType'] = 'Bearer'
+
+# Configure API key authorization: CookieAuthToken
+configuration.api_key['CookieAuthToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieAuthToken'] = 'Bearer'
+
+# Configure API key authorization: SecChUaMobile
+configuration.api_key['SecChUaMobile'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUaMobile'] = 'Bearer'
+
+# Configure API key authorization: AcceptEncoding
+configuration.api_key['AcceptEncoding'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AcceptEncoding'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with twitter_openapi_python_generated.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = twitter_openapi_python_generated.DefaultApi(api_client)
+ path_query_id = 'QAPGIKJVaPXYD-gO9kxc9w' # str | (default to 'QAPGIKJVaPXYD-gO9kxc9w')
+ variables = '{}' # str | (default to '{}')
+
+ try:
+ api_response = api_instance.get_grok_home(path_query_id, variables)
+ print("The response of DefaultApi->get_grok_home:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling DefaultApi->get_grok_home: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **path_query_id** | **str**| | [default to 'QAPGIKJVaPXYD-gO9kxc9w']
+ **variables** | **str**| | [default to '{}']
+
+### Return type
+
+[**GrokHomeResponse**](GrokHomeResponse.md)
+
+### Authorization
+
+[Accept](../README.md#Accept), [ClientLanguage](../README.md#ClientLanguage), [Priority](../README.md#Priority), [Referer](../README.md#Referer), [SecFetchDest](../README.md#SecFetchDest), [SecChUaPlatform](../README.md#SecChUaPlatform), [SecFetchMode](../README.md#SecFetchMode), [CsrfToken](../README.md#CsrfToken), [ClientUuid](../README.md#ClientUuid), [BearerAuth](../README.md#BearerAuth), [GuestToken](../README.md#GuestToken), [SecChUa](../README.md#SecChUa), [CookieGt0](../README.md#CookieGt0), [ClientTransactionId](../README.md#ClientTransactionId), [ActiveUser](../README.md#ActiveUser), [CookieCt0](../README.md#CookieCt0), [UserAgent](../README.md#UserAgent), [AcceptLanguage](../README.md#AcceptLanguage), [SecFetchSite](../README.md#SecFetchSite), [AuthType](../README.md#AuthType), [CookieAuthToken](../README.md#CookieAuthToken), [SecChUaMobile](../README.md#SecChUaMobile), [AcceptEncoding](../README.md#AcceptEncoding)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful operation | * x-connection-hash -
* x-rate-limit-limit -
* x-rate-limit-remaining -
* x-rate-limit-reset -
* x-response-time -
* x-tfe-preserve-body -
* x-transaction-id -
* x-twitter-response-tags -
|
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_pinned_timelines**
+> PinnedTimelinesResponse get_pinned_timelines(path_query_id, features, variables)
+
+the account's pinned timelines
+
+### Example
+
+* Api Key Authentication (Accept):
+* Api Key Authentication (ClientLanguage):
+* Api Key Authentication (Priority):
+* Api Key Authentication (Referer):
+* Api Key Authentication (SecFetchDest):
+* Api Key Authentication (SecChUaPlatform):
+* Api Key Authentication (SecFetchMode):
+* Api Key Authentication (CsrfToken):
+* Api Key Authentication (ClientUuid):
+* Bearer Authentication (BearerAuth):
+* Api Key Authentication (GuestToken):
+* Api Key Authentication (SecChUa):
+* Api Key Authentication (CookieGt0):
+* Api Key Authentication (ClientTransactionId):
+* Api Key Authentication (ActiveUser):
+* Api Key Authentication (CookieCt0):
+* Api Key Authentication (UserAgent):
+* Api Key Authentication (AcceptLanguage):
+* Api Key Authentication (SecFetchSite):
+* Api Key Authentication (AuthType):
+* Api Key Authentication (CookieAuthToken):
+* Api Key Authentication (SecChUaMobile):
+* Api Key Authentication (AcceptEncoding):
+
+```python
+import twitter_openapi_python_generated
+from twitter_openapi_python_generated.models.pinned_timelines_response import PinnedTimelinesResponse
+from twitter_openapi_python_generated.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://x.com/i/api
+# See configuration.py for a list of all supported configuration parameters.
+configuration = twitter_openapi_python_generated.Configuration(
+ host = "https://x.com/i/api"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: Accept
+configuration.api_key['Accept'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Accept'] = 'Bearer'
+
+# Configure API key authorization: ClientLanguage
+configuration.api_key['ClientLanguage'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientLanguage'] = 'Bearer'
+
+# Configure API key authorization: Priority
+configuration.api_key['Priority'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Priority'] = 'Bearer'
+
+# Configure API key authorization: Referer
+configuration.api_key['Referer'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Referer'] = 'Bearer'
+
+# Configure API key authorization: SecFetchDest
+configuration.api_key['SecFetchDest'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchDest'] = 'Bearer'
+
+# Configure API key authorization: SecChUaPlatform
+configuration.api_key['SecChUaPlatform'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUaPlatform'] = 'Bearer'
+
+# Configure API key authorization: SecFetchMode
+configuration.api_key['SecFetchMode'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchMode'] = 'Bearer'
+
+# Configure API key authorization: CsrfToken
+configuration.api_key['CsrfToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CsrfToken'] = 'Bearer'
+
+# Configure API key authorization: ClientUuid
+configuration.api_key['ClientUuid'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientUuid'] = 'Bearer'
+
+# Configure Bearer authorization: BearerAuth
+configuration = twitter_openapi_python_generated.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Configure API key authorization: GuestToken
+configuration.api_key['GuestToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['GuestToken'] = 'Bearer'
+
+# Configure API key authorization: SecChUa
+configuration.api_key['SecChUa'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUa'] = 'Bearer'
+
+# Configure API key authorization: CookieGt0
+configuration.api_key['CookieGt0'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieGt0'] = 'Bearer'
+
+# Configure API key authorization: ClientTransactionId
+configuration.api_key['ClientTransactionId'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientTransactionId'] = 'Bearer'
+
+# Configure API key authorization: ActiveUser
+configuration.api_key['ActiveUser'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ActiveUser'] = 'Bearer'
+
+# Configure API key authorization: CookieCt0
+configuration.api_key['CookieCt0'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieCt0'] = 'Bearer'
+
+# Configure API key authorization: UserAgent
+configuration.api_key['UserAgent'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['UserAgent'] = 'Bearer'
+
+# Configure API key authorization: AcceptLanguage
+configuration.api_key['AcceptLanguage'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AcceptLanguage'] = 'Bearer'
+
+# Configure API key authorization: SecFetchSite
+configuration.api_key['SecFetchSite'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchSite'] = 'Bearer'
+
+# Configure API key authorization: AuthType
+configuration.api_key['AuthType'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AuthType'] = 'Bearer'
+
+# Configure API key authorization: CookieAuthToken
+configuration.api_key['CookieAuthToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieAuthToken'] = 'Bearer'
+
+# Configure API key authorization: SecChUaMobile
+configuration.api_key['SecChUaMobile'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUaMobile'] = 'Bearer'
+
+# Configure API key authorization: AcceptEncoding
+configuration.api_key['AcceptEncoding'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AcceptEncoding'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with twitter_openapi_python_generated.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = twitter_openapi_python_generated.DefaultApi(api_client)
+ path_query_id = '8J1r9u3VjUveEdTY4WUTwQ' # str | (default to '8J1r9u3VjUveEdTY4WUTwQ')
+ features = '{"profile_label_improvements_pcf_label_in_post_enabled": true, "responsive_web_profile_redirect_enabled": true, "rweb_tipjar_consumption_enabled": false, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": true}' # str | (default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "responsive_web_profile_redirect_enabled": true, "rweb_tipjar_consumption_enabled": false, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": true}')
+ variables = '{}' # str | (default to '{}')
+
+ try:
+ api_response = api_instance.get_pinned_timelines(path_query_id, features, variables)
+ print("The response of DefaultApi->get_pinned_timelines:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling DefaultApi->get_pinned_timelines: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **path_query_id** | **str**| | [default to '8J1r9u3VjUveEdTY4WUTwQ']
+ **features** | **str**| | [default to '{"profile_label_improvements_pcf_label_in_post_enabled": true, "responsive_web_profile_redirect_enabled": true, "rweb_tipjar_consumption_enabled": false, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": true}']
+ **variables** | **str**| | [default to '{}']
+
+### Return type
+
+[**PinnedTimelinesResponse**](PinnedTimelinesResponse.md)
+
+### Authorization
+
+[Accept](../README.md#Accept), [ClientLanguage](../README.md#ClientLanguage), [Priority](../README.md#Priority), [Referer](../README.md#Referer), [SecFetchDest](../README.md#SecFetchDest), [SecChUaPlatform](../README.md#SecChUaPlatform), [SecFetchMode](../README.md#SecFetchMode), [CsrfToken](../README.md#CsrfToken), [ClientUuid](../README.md#ClientUuid), [BearerAuth](../README.md#BearerAuth), [GuestToken](../README.md#GuestToken), [SecChUa](../README.md#SecChUa), [CookieGt0](../README.md#CookieGt0), [ClientTransactionId](../README.md#ClientTransactionId), [ActiveUser](../README.md#ActiveUser), [CookieCt0](../README.md#CookieCt0), [UserAgent](../README.md#UserAgent), [AcceptLanguage](../README.md#AcceptLanguage), [SecFetchSite](../README.md#SecFetchSite), [AuthType](../README.md#AuthType), [CookieAuthToken](../README.md#CookieAuthToken), [SecChUaMobile](../README.md#SecChUaMobile), [AcceptEncoding](../README.md#AcceptEncoding)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful operation | * x-connection-hash -
* x-rate-limit-limit -
* x-rate-limit-remaining -
* x-rate-limit-reset -
* x-response-time -
* x-tfe-preserve-body -
* x-transaction-id -
* x-twitter-response-tags -
|
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
# **get_profile_spotlights_query**
> ProfileResponse get_profile_spotlights_query(path_query_id, variables, features)
@@ -198,7 +1360,7 @@ with twitter_openapi_python_generated.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = twitter_openapi_python_generated.DefaultApi(api_client)
path_query_id = 'mzoqrVGwk-YTSGME1dRfXQ' # str | (default to 'mzoqrVGwk-YTSGME1dRfXQ')
- variables = '{"screen_name": "elonmusk"}' # str | (default to '{"screen_name": "elonmusk"}')
+ variables = '{"screen_name": "ptcpz3"}' # str | (default to '{"screen_name": "ptcpz3"}')
features = '{}' # str | (default to '{}')
try:
@@ -217,7 +1379,7 @@ with twitter_openapi_python_generated.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**path_query_id** | **str**| | [default to 'mzoqrVGwk-YTSGME1dRfXQ']
- **variables** | **str**| | [default to '{"screen_name": "elonmusk"}']
+ **variables** | **str**| | [default to '{"screen_name": "ptcpz3"}']
**features** | **str**| | [default to '{}']
### Return type
diff --git a/twitter_openapi_python_generated/docs/EventSummaryAdMetadataContainer.md b/twitter_openapi_python_generated/docs/EventSummaryAdMetadataContainer.md
new file mode 100644
index 0000000..59f6954
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/EventSummaryAdMetadataContainer.md
@@ -0,0 +1,30 @@
+# EventSummaryAdMetadataContainer
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**is_quick_promote** | **bool** | |
+**render_sales_cta_website_card** | **bool** | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.event_summary_ad_metadata_container import EventSummaryAdMetadataContainer
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of EventSummaryAdMetadataContainer from a JSON string
+event_summary_ad_metadata_container_instance = EventSummaryAdMetadataContainer.from_json(json)
+# print the JSON string representation of the object
+print(EventSummaryAdMetadataContainer.to_json())
+
+# convert the object into a dict
+event_summary_ad_metadata_container_dict = event_summary_ad_metadata_container_instance.to_dict()
+# create an instance of EventSummaryAdMetadataContainer from a dict
+event_summary_ad_metadata_container_from_dict = EventSummaryAdMetadataContainer.from_dict(event_summary_ad_metadata_container_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/EventSummaryEvent.md b/twitter_openapi_python_generated/docs/EventSummaryEvent.md
new file mode 100644
index 0000000..4ebd819
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/EventSummaryEvent.md
@@ -0,0 +1,29 @@
+# EventSummaryEvent
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**rest_id** | **str** | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.event_summary_event import EventSummaryEvent
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of EventSummaryEvent from a JSON string
+event_summary_event_instance = EventSummaryEvent.from_json(json)
+# print the JSON string representation of the object
+print(EventSummaryEvent.to_json())
+
+# convert the object into a dict
+event_summary_event_dict = event_summary_event_instance.to_dict()
+# create an instance of EventSummaryEvent from a dict
+event_summary_event_from_dict = EventSummaryEvent.from_dict(event_summary_event_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/EventSummaryMedia.md b/twitter_openapi_python_generated/docs/EventSummaryMedia.md
new file mode 100644
index 0000000..b836c4e
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/EventSummaryMedia.md
@@ -0,0 +1,30 @@
+# EventSummaryMedia
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**media_entity** | [**EventSummaryMediaEntity**](EventSummaryMediaEntity.md) | |
+**media_key** | [**EventSummaryMediaKey**](EventSummaryMediaKey.md) | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.event_summary_media import EventSummaryMedia
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of EventSummaryMedia from a JSON string
+event_summary_media_instance = EventSummaryMedia.from_json(json)
+# print the JSON string representation of the object
+print(EventSummaryMedia.to_json())
+
+# convert the object into a dict
+event_summary_media_dict = event_summary_media_instance.to_dict()
+# create an instance of EventSummaryMedia from a dict
+event_summary_media_from_dict = EventSummaryMedia.from_dict(event_summary_media_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/EventSummaryMediaEntity.md b/twitter_openapi_python_generated/docs/EventSummaryMediaEntity.md
new file mode 100644
index 0000000..14a1f22
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/EventSummaryMediaEntity.md
@@ -0,0 +1,30 @@
+# EventSummaryMediaEntity
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**tweet_results** | [**ItemResult**](ItemResult.md) | |
+**type** | **str** | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.event_summary_media_entity import EventSummaryMediaEntity
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of EventSummaryMediaEntity from a JSON string
+event_summary_media_entity_instance = EventSummaryMediaEntity.from_json(json)
+# print the JSON string representation of the object
+print(EventSummaryMediaEntity.to_json())
+
+# convert the object into a dict
+event_summary_media_entity_dict = event_summary_media_entity_instance.to_dict()
+# create an instance of EventSummaryMediaEntity from a dict
+event_summary_media_entity_from_dict = EventSummaryMediaEntity.from_dict(event_summary_media_entity_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/EventSummaryMediaKey.md b/twitter_openapi_python_generated/docs/EventSummaryMediaKey.md
new file mode 100644
index 0000000..c69b4f0
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/EventSummaryMediaKey.md
@@ -0,0 +1,30 @@
+# EventSummaryMediaKey
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**category** | **int** | |
+**id** | **str** | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.event_summary_media_key import EventSummaryMediaKey
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of EventSummaryMediaKey from a JSON string
+event_summary_media_key_instance = EventSummaryMediaKey.from_json(json)
+# print the JSON string representation of the object
+print(EventSummaryMediaKey.to_json())
+
+# convert the object into a dict
+event_summary_media_key_dict = event_summary_media_key_instance.to_dict()
+# create an instance of EventSummaryMediaKey from a dict
+event_summary_media_key_from_dict = EventSummaryMediaKey.from_dict(event_summary_media_key_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/EventSummaryPromotedMetadata.md b/twitter_openapi_python_generated/docs/EventSummaryPromotedMetadata.md
new file mode 100644
index 0000000..c9be2a8
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/EventSummaryPromotedMetadata.md
@@ -0,0 +1,37 @@
+# EventSummaryPromotedMetadata
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**ad_metadata_container** | [**EventSummaryAdMetadataContainer**](EventSummaryAdMetadataContainer.md) | |
+**advertiser_results** | [**UserResults**](UserResults.md) | |
+**disclosure_type** | **str** | |
+**impression_id** | **str** | |
+**impression_string** | **str** | |
+**promoted_trend** | [**PromotedTrend**](PromotedTrend.md) | |
+**promoted_trend_description** | **str** | |
+**promoted_trend_name** | **str** | |
+**promoted_trend_query_term** | **str** | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.event_summary_promoted_metadata import EventSummaryPromotedMetadata
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of EventSummaryPromotedMetadata from a JSON string
+event_summary_promoted_metadata_instance = EventSummaryPromotedMetadata.from_json(json)
+# print the JSON string representation of the object
+print(EventSummaryPromotedMetadata.to_json())
+
+# convert the object into a dict
+event_summary_promoted_metadata_dict = event_summary_promoted_metadata_instance.to_dict()
+# create an instance of EventSummaryPromotedMetadata from a dict
+event_summary_promoted_metadata_from_dict = EventSummaryPromotedMetadata.from_dict(event_summary_promoted_metadata_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/ExploreSidebarResponse.md b/twitter_openapi_python_generated/docs/ExploreSidebarResponse.md
new file mode 100644
index 0000000..06e6921
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/ExploreSidebarResponse.md
@@ -0,0 +1,30 @@
+# ExploreSidebarResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**data** | [**ExploreSidebarResponseData**](ExploreSidebarResponseData.md) | |
+**errors** | [**List[ErrorResponse]**](ErrorResponse.md) | | [optional]
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.explore_sidebar_response import ExploreSidebarResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ExploreSidebarResponse from a JSON string
+explore_sidebar_response_instance = ExploreSidebarResponse.from_json(json)
+# print the JSON string representation of the object
+print(ExploreSidebarResponse.to_json())
+
+# convert the object into a dict
+explore_sidebar_response_dict = explore_sidebar_response_instance.to_dict()
+# create an instance of ExploreSidebarResponse from a dict
+explore_sidebar_response_from_dict = ExploreSidebarResponse.from_dict(explore_sidebar_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/ExploreSidebarResponseData.md b/twitter_openapi_python_generated/docs/ExploreSidebarResponseData.md
new file mode 100644
index 0000000..10e6fb9
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/ExploreSidebarResponseData.md
@@ -0,0 +1,29 @@
+# ExploreSidebarResponseData
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**explore_sidebar** | [**TimelineResult**](TimelineResult.md) | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.explore_sidebar_response_data import ExploreSidebarResponseData
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ExploreSidebarResponseData from a JSON string
+explore_sidebar_response_data_instance = ExploreSidebarResponseData.from_json(json)
+# print the JSON string representation of the object
+print(ExploreSidebarResponseData.to_json())
+
+# convert the object into a dict
+explore_sidebar_response_data_dict = explore_sidebar_response_data_instance.to_dict()
+# create an instance of ExploreSidebarResponseData from a dict
+explore_sidebar_response_data_from_dict = ExploreSidebarResponseData.from_dict(explore_sidebar_response_data_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/GlobalCommunitiesLatestPostSearch.md b/twitter_openapi_python_generated/docs/GlobalCommunitiesLatestPostSearch.md
new file mode 100644
index 0000000..29c1ee9
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/GlobalCommunitiesLatestPostSearch.md
@@ -0,0 +1,29 @@
+# GlobalCommunitiesLatestPostSearch
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**communities_latest_posts_search_page** | [**TimelineResult**](TimelineResult.md) | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.global_communities_latest_post_search import GlobalCommunitiesLatestPostSearch
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GlobalCommunitiesLatestPostSearch from a JSON string
+global_communities_latest_post_search_instance = GlobalCommunitiesLatestPostSearch.from_json(json)
+# print the JSON string representation of the object
+print(GlobalCommunitiesLatestPostSearch.to_json())
+
+# convert the object into a dict
+global_communities_latest_post_search_dict = global_communities_latest_post_search_instance.to_dict()
+# create an instance of GlobalCommunitiesLatestPostSearch from a dict
+global_communities_latest_post_search_from_dict = GlobalCommunitiesLatestPostSearch.from_dict(global_communities_latest_post_search_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/GlobalCommunitiesLatestPostSearchTimelineResponse.md b/twitter_openapi_python_generated/docs/GlobalCommunitiesLatestPostSearchTimelineResponse.md
new file mode 100644
index 0000000..cf07c5a
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/GlobalCommunitiesLatestPostSearchTimelineResponse.md
@@ -0,0 +1,30 @@
+# GlobalCommunitiesLatestPostSearchTimelineResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**data** | [**GlobalCommunitiesLatestPostSearchTimelineResponseData**](GlobalCommunitiesLatestPostSearchTimelineResponseData.md) | |
+**errors** | [**List[ErrorResponse]**](ErrorResponse.md) | | [optional]
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.global_communities_latest_post_search_timeline_response import GlobalCommunitiesLatestPostSearchTimelineResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GlobalCommunitiesLatestPostSearchTimelineResponse from a JSON string
+global_communities_latest_post_search_timeline_response_instance = GlobalCommunitiesLatestPostSearchTimelineResponse.from_json(json)
+# print the JSON string representation of the object
+print(GlobalCommunitiesLatestPostSearchTimelineResponse.to_json())
+
+# convert the object into a dict
+global_communities_latest_post_search_timeline_response_dict = global_communities_latest_post_search_timeline_response_instance.to_dict()
+# create an instance of GlobalCommunitiesLatestPostSearchTimelineResponse from a dict
+global_communities_latest_post_search_timeline_response_from_dict = GlobalCommunitiesLatestPostSearchTimelineResponse.from_dict(global_communities_latest_post_search_timeline_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/GlobalCommunitiesLatestPostSearchTimelineResponseData.md b/twitter_openapi_python_generated/docs/GlobalCommunitiesLatestPostSearchTimelineResponseData.md
new file mode 100644
index 0000000..711d810
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/GlobalCommunitiesLatestPostSearchTimelineResponseData.md
@@ -0,0 +1,29 @@
+# GlobalCommunitiesLatestPostSearchTimelineResponseData
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**search_by_raw_query** | [**GlobalCommunitiesLatestPostSearch**](GlobalCommunitiesLatestPostSearch.md) | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.global_communities_latest_post_search_timeline_response_data import GlobalCommunitiesLatestPostSearchTimelineResponseData
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GlobalCommunitiesLatestPostSearchTimelineResponseData from a JSON string
+global_communities_latest_post_search_timeline_response_data_instance = GlobalCommunitiesLatestPostSearchTimelineResponseData.from_json(json)
+# print the JSON string representation of the object
+print(GlobalCommunitiesLatestPostSearchTimelineResponseData.to_json())
+
+# convert the object into a dict
+global_communities_latest_post_search_timeline_response_data_dict = global_communities_latest_post_search_timeline_response_data_instance.to_dict()
+# create an instance of GlobalCommunitiesLatestPostSearchTimelineResponseData from a dict
+global_communities_latest_post_search_timeline_response_data_from_dict = GlobalCommunitiesLatestPostSearchTimelineResponseData.from_dict(global_communities_latest_post_search_timeline_response_data_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/GlobalCommunitiesPostSearch.md b/twitter_openapi_python_generated/docs/GlobalCommunitiesPostSearch.md
new file mode 100644
index 0000000..ae6a436
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/GlobalCommunitiesPostSearch.md
@@ -0,0 +1,29 @@
+# GlobalCommunitiesPostSearch
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**communities_posts_search_page** | [**TimelineResult**](TimelineResult.md) | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.global_communities_post_search import GlobalCommunitiesPostSearch
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GlobalCommunitiesPostSearch from a JSON string
+global_communities_post_search_instance = GlobalCommunitiesPostSearch.from_json(json)
+# print the JSON string representation of the object
+print(GlobalCommunitiesPostSearch.to_json())
+
+# convert the object into a dict
+global_communities_post_search_dict = global_communities_post_search_instance.to_dict()
+# create an instance of GlobalCommunitiesPostSearch from a dict
+global_communities_post_search_from_dict = GlobalCommunitiesPostSearch.from_dict(global_communities_post_search_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/GlobalCommunitiesPostSearchTimelineResponse.md b/twitter_openapi_python_generated/docs/GlobalCommunitiesPostSearchTimelineResponse.md
new file mode 100644
index 0000000..2d08a9b
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/GlobalCommunitiesPostSearchTimelineResponse.md
@@ -0,0 +1,30 @@
+# GlobalCommunitiesPostSearchTimelineResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**data** | [**GlobalCommunitiesPostSearchTimelineResponseData**](GlobalCommunitiesPostSearchTimelineResponseData.md) | |
+**errors** | [**List[ErrorResponse]**](ErrorResponse.md) | | [optional]
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.global_communities_post_search_timeline_response import GlobalCommunitiesPostSearchTimelineResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GlobalCommunitiesPostSearchTimelineResponse from a JSON string
+global_communities_post_search_timeline_response_instance = GlobalCommunitiesPostSearchTimelineResponse.from_json(json)
+# print the JSON string representation of the object
+print(GlobalCommunitiesPostSearchTimelineResponse.to_json())
+
+# convert the object into a dict
+global_communities_post_search_timeline_response_dict = global_communities_post_search_timeline_response_instance.to_dict()
+# create an instance of GlobalCommunitiesPostSearchTimelineResponse from a dict
+global_communities_post_search_timeline_response_from_dict = GlobalCommunitiesPostSearchTimelineResponse.from_dict(global_communities_post_search_timeline_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/GlobalCommunitiesPostSearchTimelineResponseData.md b/twitter_openapi_python_generated/docs/GlobalCommunitiesPostSearchTimelineResponseData.md
new file mode 100644
index 0000000..f1034e9
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/GlobalCommunitiesPostSearchTimelineResponseData.md
@@ -0,0 +1,29 @@
+# GlobalCommunitiesPostSearchTimelineResponseData
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**search_by_raw_query** | [**GlobalCommunitiesPostSearch**](GlobalCommunitiesPostSearch.md) | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.global_communities_post_search_timeline_response_data import GlobalCommunitiesPostSearchTimelineResponseData
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GlobalCommunitiesPostSearchTimelineResponseData from a JSON string
+global_communities_post_search_timeline_response_data_instance = GlobalCommunitiesPostSearchTimelineResponseData.from_json(json)
+# print the JSON string representation of the object
+print(GlobalCommunitiesPostSearchTimelineResponseData.to_json())
+
+# convert the object into a dict
+global_communities_post_search_timeline_response_data_dict = global_communities_post_search_timeline_response_data_instance.to_dict()
+# create an instance of GlobalCommunitiesPostSearchTimelineResponseData from a dict
+global_communities_post_search_timeline_response_data_from_dict = GlobalCommunitiesPostSearchTimelineResponseData.from_dict(global_communities_post_search_timeline_response_data_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/GrokHome.md b/twitter_openapi_python_generated/docs/GrokHome.md
new file mode 100644
index 0000000..b0dfd9b
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/GrokHome.md
@@ -0,0 +1,36 @@
+# GrokHome
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**default_grok_mode** | **str** | |
+**default_grok_model_option_id** | **str** | |
+**eligible_for_grok** | **bool** | |
+**free_access_enabled** | **bool** | |
+**grok_model_options** | [**List[GrokModelOption]**](GrokModelOption.md) | |
+**grok_version** | **str** | |
+**ineligible_reasons** | **List[object]** | |
+**layout** | [**GrokHomeLayout**](GrokHomeLayout.md) | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.grok_home import GrokHome
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GrokHome from a JSON string
+grok_home_instance = GrokHome.from_json(json)
+# print the JSON string representation of the object
+print(GrokHome.to_json())
+
+# convert the object into a dict
+grok_home_dict = grok_home_instance.to_dict()
+# create an instance of GrokHome from a dict
+grok_home_from_dict = GrokHome.from_dict(grok_home_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/GrokHomeLayout.md b/twitter_openapi_python_generated/docs/GrokHomeLayout.md
new file mode 100644
index 0000000..fe37e25
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/GrokHomeLayout.md
@@ -0,0 +1,30 @@
+# GrokHomeLayout
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **str** | |
+**sections** | [**List[GrokHomeLayoutSection]**](GrokHomeLayoutSection.md) | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.grok_home_layout import GrokHomeLayout
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GrokHomeLayout from a JSON string
+grok_home_layout_instance = GrokHomeLayout.from_json(json)
+# print the JSON string representation of the object
+print(GrokHomeLayout.to_json())
+
+# convert the object into a dict
+grok_home_layout_dict = grok_home_layout_instance.to_dict()
+# create an instance of GrokHomeLayout from a dict
+grok_home_layout_from_dict = GrokHomeLayout.from_dict(grok_home_layout_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/GrokHomeLayoutSection.md b/twitter_openapi_python_generated/docs/GrokHomeLayoutSection.md
new file mode 100644
index 0000000..45efdc2
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/GrokHomeLayoutSection.md
@@ -0,0 +1,30 @@
+# GrokHomeLayoutSection
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**prompts** | [**List[GrokHomePrompt]**](GrokHomePrompt.md) | |
+**section_type** | **str** | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.grok_home_layout_section import GrokHomeLayoutSection
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GrokHomeLayoutSection from a JSON string
+grok_home_layout_section_instance = GrokHomeLayoutSection.from_json(json)
+# print the JSON string representation of the object
+print(GrokHomeLayoutSection.to_json())
+
+# convert the object into a dict
+grok_home_layout_section_dict = grok_home_layout_section_instance.to_dict()
+# create an instance of GrokHomeLayoutSection from a dict
+grok_home_layout_section_from_dict = GrokHomeLayoutSection.from_dict(grok_home_layout_section_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/GrokHomePrompt.md b/twitter_openapi_python_generated/docs/GrokHomePrompt.md
new file mode 100644
index 0000000..39f0832
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/GrokHomePrompt.md
@@ -0,0 +1,34 @@
+# GrokHomePrompt
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**display_body** | **str** | |
+**display_label** | **str** | |
+**filter_key** | **str** | |
+**icon_name** | **str** | |
+**prompt** | **str** | |
+**prompt_id** | **str** | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.grok_home_prompt import GrokHomePrompt
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GrokHomePrompt from a JSON string
+grok_home_prompt_instance = GrokHomePrompt.from_json(json)
+# print the JSON string representation of the object
+print(GrokHomePrompt.to_json())
+
+# convert the object into a dict
+grok_home_prompt_dict = grok_home_prompt_instance.to_dict()
+# create an instance of GrokHomePrompt from a dict
+grok_home_prompt_from_dict = GrokHomePrompt.from_dict(grok_home_prompt_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/GrokHomeResponse.md b/twitter_openapi_python_generated/docs/GrokHomeResponse.md
new file mode 100644
index 0000000..6049ed8
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/GrokHomeResponse.md
@@ -0,0 +1,30 @@
+# GrokHomeResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**data** | [**GrokHomeResponseData**](GrokHomeResponseData.md) | |
+**errors** | [**List[ErrorResponse]**](ErrorResponse.md) | | [optional]
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.grok_home_response import GrokHomeResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GrokHomeResponse from a JSON string
+grok_home_response_instance = GrokHomeResponse.from_json(json)
+# print the JSON string representation of the object
+print(GrokHomeResponse.to_json())
+
+# convert the object into a dict
+grok_home_response_dict = grok_home_response_instance.to_dict()
+# create an instance of GrokHomeResponse from a dict
+grok_home_response_from_dict = GrokHomeResponse.from_dict(grok_home_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/GrokHomeResponseData.md b/twitter_openapi_python_generated/docs/GrokHomeResponseData.md
new file mode 100644
index 0000000..a792224
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/GrokHomeResponseData.md
@@ -0,0 +1,29 @@
+# GrokHomeResponseData
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**grok_home** | [**GrokHome**](GrokHome.md) | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.grok_home_response_data import GrokHomeResponseData
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GrokHomeResponseData from a JSON string
+grok_home_response_data_instance = GrokHomeResponseData.from_json(json)
+# print the JSON string representation of the object
+print(GrokHomeResponseData.to_json())
+
+# convert the object into a dict
+grok_home_response_data_dict = grok_home_response_data_instance.to_dict()
+# create an instance of GrokHomeResponseData from a dict
+grok_home_response_data_from_dict = GrokHomeResponseData.from_dict(grok_home_response_data_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/GrokModelOption.md b/twitter_openapi_python_generated/docs/GrokModelOption.md
new file mode 100644
index 0000000..73ec147
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/GrokModelOption.md
@@ -0,0 +1,36 @@
+# GrokModelOption
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**description** | **str** | |
+**icon_name** | **str** | |
+**id** | **str** | |
+**is_analyze_enabled** | **bool** | |
+**is_enabled** | **bool** | |
+**is_enhance_enabled** | **bool** | |
+**mode** | **str** | |
+**name** | **str** | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.grok_model_option import GrokModelOption
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GrokModelOption from a JSON string
+grok_model_option_instance = GrokModelOption.from_json(json)
+# print the JSON string representation of the object
+print(GrokModelOption.to_json())
+
+# convert the object into a dict
+grok_model_option_dict = grok_model_option_instance.to_dict()
+# create an instance of GrokModelOption from a dict
+grok_model_option_from_dict = GrokModelOption.from_dict(grok_model_option_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/ItemContentUnion.md b/twitter_openapi_python_generated/docs/ItemContentUnion.md
index 0fe20e9..dba5251 100644
--- a/twitter_openapi_python_generated/docs/ItemContentUnion.md
+++ b/twitter_openapi_python_generated/docs/ItemContentUnion.md
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
**has_moderated_replies** | **bool** | | [optional]
**highlights** | [**Highlight**](Highlight.md) | | [optional]
**item_type** | [**ContentItemType**](ContentItemType.md) | |
-**promoted_metadata** | [**PromotedMetadata**](PromotedMetadata.md) | | [optional]
+**promoted_metadata** | [**EventSummaryPromotedMetadata**](EventSummaryPromotedMetadata.md) | |
**social_context** | [**SocialContextUnion**](SocialContextUnion.md) | | [optional]
**tweet_display_type** | **str** | |
**tweet_results** | [**ItemResult**](ItemResult.md) | |
@@ -25,10 +25,12 @@ Name | Type | Description | Notes
**community_results** | [**CommunityResult**](CommunityResult.md) | |
**tombstone_display_type** | **str** | | [optional]
**tombstone_info** | [**TombstoneInfo**](TombstoneInfo.md) | | [optional]
+**description** | **str** | | [optional]
**grouped_trends** | [**List[GroupedTrend]**](GroupedTrend.md) | | [optional]
**images** | [**List[TrendImage]**](TrendImage.md) | | [optional]
**is_ai_trend** | **bool** | | [optional]
**name** | **str** | |
+**promoted_metadata** | [**TrendPromotedMetadata**](TrendPromotedMetadata.md) | | [optional]
**rank** | **str** | | [optional]
**social_context** | [**SocialContextUnion**](SocialContextUnion.md) | | [optional]
**thumbnail_image** | [**ThumbnailImage**](ThumbnailImage.md) | | [optional]
@@ -46,6 +48,11 @@ Name | Type | Description | Notes
**list** | [**TwitterList**](TwitterList.md) | |
**text** | **str** | |
**url** | [**SocialContextLandingUrl**](SocialContextLandingUrl.md) | |
+**event** | [**EventSummaryEvent**](EventSummaryEvent.md) | |
+**event_summary_display_type** | **str** | |
+**event_summary_url** | [**SocialContextLandingUrl**](SocialContextLandingUrl.md) | |
+**media** | [**EventSummaryMedia**](EventSummaryMedia.md) | |
+**title** | **str** | |
## Example
diff --git a/twitter_openapi_python_generated/docs/ListSearch.md b/twitter_openapi_python_generated/docs/ListSearch.md
new file mode 100644
index 0000000..5c7ece0
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/ListSearch.md
@@ -0,0 +1,29 @@
+# ListSearch
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**list_search_timeline** | [**TimelineResult**](TimelineResult.md) | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.list_search import ListSearch
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ListSearch from a JSON string
+list_search_instance = ListSearch.from_json(json)
+# print the JSON string representation of the object
+print(ListSearch.to_json())
+
+# convert the object into a dict
+list_search_dict = list_search_instance.to_dict()
+# create an instance of ListSearch from a dict
+list_search_from_dict = ListSearch.from_dict(list_search_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/ListSearchTimelineResponse.md b/twitter_openapi_python_generated/docs/ListSearchTimelineResponse.md
new file mode 100644
index 0000000..9a84aa6
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/ListSearchTimelineResponse.md
@@ -0,0 +1,30 @@
+# ListSearchTimelineResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**data** | [**ListSearchTimelineResponseData**](ListSearchTimelineResponseData.md) | |
+**errors** | [**List[ErrorResponse]**](ErrorResponse.md) | | [optional]
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.list_search_timeline_response import ListSearchTimelineResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ListSearchTimelineResponse from a JSON string
+list_search_timeline_response_instance = ListSearchTimelineResponse.from_json(json)
+# print the JSON string representation of the object
+print(ListSearchTimelineResponse.to_json())
+
+# convert the object into a dict
+list_search_timeline_response_dict = list_search_timeline_response_instance.to_dict()
+# create an instance of ListSearchTimelineResponse from a dict
+list_search_timeline_response_from_dict = ListSearchTimelineResponse.from_dict(list_search_timeline_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/ListSearchTimelineResponseData.md b/twitter_openapi_python_generated/docs/ListSearchTimelineResponseData.md
new file mode 100644
index 0000000..bdaa018
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/ListSearchTimelineResponseData.md
@@ -0,0 +1,29 @@
+# ListSearchTimelineResponseData
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**search_by_raw_query** | [**ListSearch**](ListSearch.md) | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.list_search_timeline_response_data import ListSearchTimelineResponseData
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ListSearchTimelineResponseData from a JSON string
+list_search_timeline_response_data_instance = ListSearchTimelineResponseData.from_json(json)
+# print the JSON string representation of the object
+print(ListSearchTimelineResponseData.to_json())
+
+# convert the object into a dict
+list_search_timeline_response_data_dict = list_search_timeline_response_data_instance.to_dict()
+# create an instance of ListSearchTimelineResponseData from a dict
+list_search_timeline_response_data_from_dict = ListSearchTimelineResponseData.from_dict(list_search_timeline_response_data_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/ListsManagementPageTimelineResponse.md b/twitter_openapi_python_generated/docs/ListsManagementPageTimelineResponse.md
new file mode 100644
index 0000000..0bfa149
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/ListsManagementPageTimelineResponse.md
@@ -0,0 +1,30 @@
+# ListsManagementPageTimelineResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**data** | [**ListsManagementPageTimelineResponseData**](ListsManagementPageTimelineResponseData.md) | |
+**errors** | [**List[ErrorResponse]**](ErrorResponse.md) | | [optional]
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.lists_management_page_timeline_response import ListsManagementPageTimelineResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ListsManagementPageTimelineResponse from a JSON string
+lists_management_page_timeline_response_instance = ListsManagementPageTimelineResponse.from_json(json)
+# print the JSON string representation of the object
+print(ListsManagementPageTimelineResponse.to_json())
+
+# convert the object into a dict
+lists_management_page_timeline_response_dict = lists_management_page_timeline_response_instance.to_dict()
+# create an instance of ListsManagementPageTimelineResponse from a dict
+lists_management_page_timeline_response_from_dict = ListsManagementPageTimelineResponse.from_dict(lists_management_page_timeline_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/ListsManagementPageTimelineResponseData.md b/twitter_openapi_python_generated/docs/ListsManagementPageTimelineResponseData.md
new file mode 100644
index 0000000..1f069a6
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/ListsManagementPageTimelineResponseData.md
@@ -0,0 +1,29 @@
+# ListsManagementPageTimelineResponseData
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**viewer** | [**ListsManagementViewer**](ListsManagementViewer.md) | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.lists_management_page_timeline_response_data import ListsManagementPageTimelineResponseData
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ListsManagementPageTimelineResponseData from a JSON string
+lists_management_page_timeline_response_data_instance = ListsManagementPageTimelineResponseData.from_json(json)
+# print the JSON string representation of the object
+print(ListsManagementPageTimelineResponseData.to_json())
+
+# convert the object into a dict
+lists_management_page_timeline_response_data_dict = lists_management_page_timeline_response_data_instance.to_dict()
+# create an instance of ListsManagementPageTimelineResponseData from a dict
+lists_management_page_timeline_response_data_from_dict = ListsManagementPageTimelineResponseData.from_dict(lists_management_page_timeline_response_data_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/ListsManagementViewer.md b/twitter_openapi_python_generated/docs/ListsManagementViewer.md
new file mode 100644
index 0000000..301f890
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/ListsManagementViewer.md
@@ -0,0 +1,29 @@
+# ListsManagementViewer
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**list_management_timeline** | [**TimelineResult**](TimelineResult.md) | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.lists_management_viewer import ListsManagementViewer
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ListsManagementViewer from a JSON string
+lists_management_viewer_instance = ListsManagementViewer.from_json(json)
+# print the JSON string representation of the object
+print(ListsManagementViewer.to_json())
+
+# convert the object into a dict
+lists_management_viewer_dict = lists_management_viewer_instance.to_dict()
+# create an instance of ListsManagementViewer from a dict
+lists_management_viewer_from_dict = ListsManagementViewer.from_dict(lists_management_viewer_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/NotificationDetails.md b/twitter_openapi_python_generated/docs/NotificationDetails.md
new file mode 100644
index 0000000..3311635
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/NotificationDetails.md
@@ -0,0 +1,30 @@
+# NotificationDetails
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**impression_id** | **str** | |
+**metadata** | **str** | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.notification_details import NotificationDetails
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of NotificationDetails from a JSON string
+notification_details_instance = NotificationDetails.from_json(json)
+# print the JSON string representation of the object
+print(NotificationDetails.to_json())
+
+# convert the object into a dict
+notification_details_dict = notification_details_instance.to_dict()
+# create an instance of NotificationDetails from a dict
+notification_details_from_dict = NotificationDetails.from_dict(notification_details_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/PinnedTimelines.md b/twitter_openapi_python_generated/docs/PinnedTimelines.md
new file mode 100644
index 0000000..f924778
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/PinnedTimelines.md
@@ -0,0 +1,29 @@
+# PinnedTimelines
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**pinned_timelines** | **List[object]** | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.pinned_timelines import PinnedTimelines
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of PinnedTimelines from a JSON string
+pinned_timelines_instance = PinnedTimelines.from_json(json)
+# print the JSON string representation of the object
+print(PinnedTimelines.to_json())
+
+# convert the object into a dict
+pinned_timelines_dict = pinned_timelines_instance.to_dict()
+# create an instance of PinnedTimelines from a dict
+pinned_timelines_from_dict = PinnedTimelines.from_dict(pinned_timelines_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/PinnedTimelinesResponse.md b/twitter_openapi_python_generated/docs/PinnedTimelinesResponse.md
new file mode 100644
index 0000000..545581f
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/PinnedTimelinesResponse.md
@@ -0,0 +1,30 @@
+# PinnedTimelinesResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**data** | [**PinnedTimelinesResponseData**](PinnedTimelinesResponseData.md) | |
+**errors** | [**List[ErrorResponse]**](ErrorResponse.md) | | [optional]
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.pinned_timelines_response import PinnedTimelinesResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of PinnedTimelinesResponse from a JSON string
+pinned_timelines_response_instance = PinnedTimelinesResponse.from_json(json)
+# print the JSON string representation of the object
+print(PinnedTimelinesResponse.to_json())
+
+# convert the object into a dict
+pinned_timelines_response_dict = pinned_timelines_response_instance.to_dict()
+# create an instance of PinnedTimelinesResponse from a dict
+pinned_timelines_response_from_dict = PinnedTimelinesResponse.from_dict(pinned_timelines_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/PinnedTimelinesResponseData.md b/twitter_openapi_python_generated/docs/PinnedTimelinesResponseData.md
new file mode 100644
index 0000000..773a708
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/PinnedTimelinesResponseData.md
@@ -0,0 +1,29 @@
+# PinnedTimelinesResponseData
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**pinned_timelines** | [**PinnedTimelines**](PinnedTimelines.md) | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.pinned_timelines_response_data import PinnedTimelinesResponseData
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of PinnedTimelinesResponseData from a JSON string
+pinned_timelines_response_data_instance = PinnedTimelinesResponseData.from_json(json)
+# print the JSON string representation of the object
+print(PinnedTimelinesResponseData.to_json())
+
+# convert the object into a dict
+pinned_timelines_response_data_dict = pinned_timelines_response_data_instance.to_dict()
+# create an instance of PinnedTimelinesResponseData from a dict
+pinned_timelines_response_data_from_dict = PinnedTimelinesResponseData.from_dict(pinned_timelines_response_data_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/PromotedTrend.md b/twitter_openapi_python_generated/docs/PromotedTrend.md
new file mode 100644
index 0000000..e57f428
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/PromotedTrend.md
@@ -0,0 +1,29 @@
+# PromotedTrend
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**rest_id** | **str** | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.promoted_trend import PromotedTrend
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of PromotedTrend from a JSON string
+promoted_trend_instance = PromotedTrend.from_json(json)
+# print the JSON string representation of the object
+print(PromotedTrend.to_json())
+
+# convert the object into a dict
+promoted_trend_dict = promoted_trend_instance.to_dict()
+# create an instance of PromotedTrend from a dict
+promoted_trend_from_dict = PromotedTrend.from_dict(promoted_trend_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/RichMessage.md b/twitter_openapi_python_generated/docs/RichMessage.md
index a3836bd..c9aae60 100644
--- a/twitter_openapi_python_generated/docs/RichMessage.md
+++ b/twitter_openapi_python_generated/docs/RichMessage.md
@@ -5,6 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
+**entities** | [**List[RichMessageEntity]**](RichMessageEntity.md) | | [optional]
**rtl** | **bool** | | [optional]
**text** | **str** | | [optional]
diff --git a/twitter_openapi_python_generated/docs/RichMessageEntity.md b/twitter_openapi_python_generated/docs/RichMessageEntity.md
new file mode 100644
index 0000000..23dd031
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/RichMessageEntity.md
@@ -0,0 +1,31 @@
+# RichMessageEntity
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**from_index** | **int** | |
+**ref** | [**RichMessageEntityRef**](RichMessageEntityRef.md) | |
+**to_index** | **int** | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.rich_message_entity import RichMessageEntity
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of RichMessageEntity from a JSON string
+rich_message_entity_instance = RichMessageEntity.from_json(json)
+# print the JSON string representation of the object
+print(RichMessageEntity.to_json())
+
+# convert the object into a dict
+rich_message_entity_dict = rich_message_entity_instance.to_dict()
+# create an instance of RichMessageEntity from a dict
+rich_message_entity_from_dict = RichMessageEntity.from_dict(rich_message_entity_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/RichMessageEntityRef.md b/twitter_openapi_python_generated/docs/RichMessageEntityRef.md
new file mode 100644
index 0000000..d9cc0bb
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/RichMessageEntityRef.md
@@ -0,0 +1,32 @@
+# RichMessageEntityRef
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | | [optional]
+**type** | **str** | |
+**url** | **str** | | [optional]
+**user_results** | [**UserResults**](UserResults.md) | | [optional]
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.rich_message_entity_ref import RichMessageEntityRef
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of RichMessageEntityRef from a JSON string
+rich_message_entity_ref_instance = RichMessageEntityRef.from_json(json)
+# print the JSON string representation of the object
+print(RichMessageEntityRef.to_json())
+
+# convert the object into a dict
+rich_message_entity_ref_dict = rich_message_entity_ref_instance.to_dict()
+# create an instance of RichMessageEntityRef from a dict
+rich_message_entity_ref_from_dict = RichMessageEntityRef.from_dict(rich_message_entity_ref_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/SliceInfo.md b/twitter_openapi_python_generated/docs/SliceInfo.md
new file mode 100644
index 0000000..6c6eeb5
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/SliceInfo.md
@@ -0,0 +1,29 @@
+# SliceInfo
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**next_cursor** | **str** | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.slice_info import SliceInfo
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of SliceInfo from a JSON string
+slice_info_instance = SliceInfo.from_json(json)
+# print the JSON string representation of the object
+print(SliceInfo.to_json())
+
+# convert the object into a dict
+slice_info_dict = slice_info_instance.to_dict()
+# create an instance of SliceInfo from a dict
+slice_info_from_dict = SliceInfo.from_dict(slice_info_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/TimelineEventSummary.md b/twitter_openapi_python_generated/docs/TimelineEventSummary.md
new file mode 100644
index 0000000..4d8da9c
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/TimelineEventSummary.md
@@ -0,0 +1,36 @@
+# TimelineEventSummary
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**typename** | [**TypeName**](TypeName.md) | |
+**event** | [**EventSummaryEvent**](EventSummaryEvent.md) | |
+**event_summary_display_type** | **str** | |
+**event_summary_url** | [**SocialContextLandingUrl**](SocialContextLandingUrl.md) | |
+**item_type** | [**ContentItemType**](ContentItemType.md) | |
+**media** | [**EventSummaryMedia**](EventSummaryMedia.md) | |
+**promoted_metadata** | [**EventSummaryPromotedMetadata**](EventSummaryPromotedMetadata.md) | |
+**title** | **str** | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.timeline_event_summary import TimelineEventSummary
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of TimelineEventSummary from a JSON string
+timeline_event_summary_instance = TimelineEventSummary.from_json(json)
+# print the JSON string representation of the object
+print(TimelineEventSummary.to_json())
+
+# convert the object into a dict
+timeline_event_summary_dict = timeline_event_summary_instance.to_dict()
+# create an instance of TimelineEventSummary from a dict
+timeline_event_summary_from_dict = TimelineEventSummary.from_dict(timeline_event_summary_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/TimelineTrend.md b/twitter_openapi_python_generated/docs/TimelineTrend.md
index fe38208..340801d 100644
--- a/twitter_openapi_python_generated/docs/TimelineTrend.md
+++ b/twitter_openapi_python_generated/docs/TimelineTrend.md
@@ -6,11 +6,13 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**typename** | [**TypeName**](TypeName.md) | |
+**description** | **str** | | [optional]
**grouped_trends** | [**List[GroupedTrend]**](GroupedTrend.md) | | [optional]
**images** | [**List[TrendImage]**](TrendImage.md) | | [optional]
**is_ai_trend** | **bool** | | [optional]
**item_type** | [**ContentItemType**](ContentItemType.md) | | [optional]
**name** | **str** | |
+**promoted_metadata** | [**TrendPromotedMetadata**](TrendPromotedMetadata.md) | | [optional]
**rank** | **str** | | [optional]
**social_context** | [**SocialContextUnion**](SocialContextUnion.md) | | [optional]
**thumbnail_image** | [**ThumbnailImage**](ThumbnailImage.md) | | [optional]
diff --git a/twitter_openapi_python_generated/docs/TopicCarouselQueryResponse.md b/twitter_openapi_python_generated/docs/TopicCarouselQueryResponse.md
new file mode 100644
index 0000000..00f5b05
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/TopicCarouselQueryResponse.md
@@ -0,0 +1,30 @@
+# TopicCarouselQueryResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**data** | [**TopicCarouselQueryResponseData**](TopicCarouselQueryResponseData.md) | |
+**errors** | [**List[ErrorResponse]**](ErrorResponse.md) | | [optional]
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.topic_carousel_query_response import TopicCarouselQueryResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of TopicCarouselQueryResponse from a JSON string
+topic_carousel_query_response_instance = TopicCarouselQueryResponse.from_json(json)
+# print the JSON string representation of the object
+print(TopicCarouselQueryResponse.to_json())
+
+# convert the object into a dict
+topic_carousel_query_response_dict = topic_carousel_query_response_instance.to_dict()
+# create an instance of TopicCarouselQueryResponse from a dict
+topic_carousel_query_response_from_dict = TopicCarouselQueryResponse.from_dict(topic_carousel_query_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/TopicCarouselQueryResponseData.md b/twitter_openapi_python_generated/docs/TopicCarouselQueryResponseData.md
new file mode 100644
index 0000000..9988f97
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/TopicCarouselQueryResponseData.md
@@ -0,0 +1,29 @@
+# TopicCarouselQueryResponseData
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**community_topic_results** | [**CommunityTopicResults**](CommunityTopicResults.md) | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.topic_carousel_query_response_data import TopicCarouselQueryResponseData
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of TopicCarouselQueryResponseData from a JSON string
+topic_carousel_query_response_data_instance = TopicCarouselQueryResponseData.from_json(json)
+# print the JSON string representation of the object
+print(TopicCarouselQueryResponseData.to_json())
+
+# convert the object into a dict
+topic_carousel_query_response_data_dict = topic_carousel_query_response_data_instance.to_dict()
+# create an instance of TopicCarouselQueryResponseData from a dict
+topic_carousel_query_response_data_from_dict = TopicCarouselQueryResponseData.from_dict(topic_carousel_query_response_data_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/TrendMetadata.md b/twitter_openapi_python_generated/docs/TrendMetadata.md
index 522427d..aa84294 100644
--- a/twitter_openapi_python_generated/docs/TrendMetadata.md
+++ b/twitter_openapi_python_generated/docs/TrendMetadata.md
@@ -6,6 +6,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**domain_context** | **str** | | [optional]
+**meta_description** | **str** | | [optional]
**url** | [**SocialContextLandingUrl**](SocialContextLandingUrl.md) | | [optional]
## Example
diff --git a/twitter_openapi_python_generated/docs/TrendPromotedMetadata.md b/twitter_openapi_python_generated/docs/TrendPromotedMetadata.md
new file mode 100644
index 0000000..3e1f2be
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/TrendPromotedMetadata.md
@@ -0,0 +1,36 @@
+# TrendPromotedMetadata
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**advertiser_results** | [**UserResults**](UserResults.md) | |
+**disclosure_type** | **str** | |
+**impression_id** | **str** | |
+**impression_string** | **str** | |
+**promoted_trend** | [**PromotedTrend**](PromotedTrend.md) | |
+**promoted_trend_description** | **str** | |
+**promoted_trend_name** | **str** | |
+**promoted_trend_query_term** | **str** | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.trend_promoted_metadata import TrendPromotedMetadata
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of TrendPromotedMetadata from a JSON string
+trend_promoted_metadata_instance = TrendPromotedMetadata.from_json(json)
+# print the JSON string representation of the object
+print(TrendPromotedMetadata.to_json())
+
+# convert the object into a dict
+trend_promoted_metadata_dict = trend_promoted_metadata_instance.to_dict()
+# create an instance of TrendPromotedMetadata from a dict
+trend_promoted_metadata_from_dict = TrendPromotedMetadata.from_dict(trend_promoted_metadata_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/TweetApi.md b/twitter_openapi_python_generated/docs/TweetApi.md
index c8fc987..2909aa5 100644
--- a/twitter_openapi_python_generated/docs/TweetApi.md
+++ b/twitter_openapi_python_generated/docs/TweetApi.md
@@ -4,6 +4,7 @@ All URIs are relative to *https://x.com/i/api*
Method | HTTP request | Description
------------- | ------------- | -------------
+[**get_bookmark_search_timeline**](TweetApi.md#get_bookmark_search_timeline) | **GET** /graphql/{pathQueryId}/BookmarkSearchTimeline |
[**get_bookmarks**](TweetApi.md#get_bookmarks) | **GET** /graphql/{pathQueryId}/Bookmarks |
[**get_community_about_timeline**](TweetApi.md#get_community_about_timeline) | **GET** /graphql/{pathQueryId}/CommunityAboutTimeline |
[**get_community_discovery_timeline**](TweetApi.md#get_community_discovery_timeline) | **GET** /graphql/{pathQueryId}/CommunityDiscoveryTimeline |
@@ -11,6 +12,7 @@ Method | HTTP request | Description
[**get_community_tweets_timeline**](TweetApi.md#get_community_tweets_timeline) | **GET** /graphql/{pathQueryId}/CommunityTweetsTimeline |
[**get_connect_tab_timeline**](TweetApi.md#get_connect_tab_timeline) | **GET** /graphql/{pathQueryId}/ConnectTabTimeline |
[**get_explore_page**](TweetApi.md#get_explore_page) | **GET** /graphql/{pathQueryId}/ExplorePage |
+[**get_explore_sidebar**](TweetApi.md#get_explore_sidebar) | **GET** /graphql/{pathQueryId}/ExploreSidebar |
[**get_generic_timeline_by_id**](TweetApi.md#get_generic_timeline_by_id) | **GET** /graphql/{pathQueryId}/GenericTimelineById |
[**get_home_latest_timeline**](TweetApi.md#get_home_latest_timeline) | **GET** /graphql/{pathQueryId}/HomeLatestTimeline |
[**get_home_timeline**](TweetApi.md#get_home_timeline) | **GET** /graphql/{pathQueryId}/HomeTimeline |
@@ -30,6 +32,239 @@ Method | HTTP request | Description
[**get_user_video_timeline**](TweetApi.md#get_user_video_timeline) | **GET** /graphql/{pathQueryId}/UserVideoTimeline |
+# **get_bookmark_search_timeline**
+> BookmarkSearchTimelineResponse get_bookmark_search_timeline(path_query_id, features, variables)
+
+search the account's bookmarks
+
+### Example
+
+* Api Key Authentication (Accept):
+* Api Key Authentication (ClientLanguage):
+* Api Key Authentication (Priority):
+* Api Key Authentication (Referer):
+* Api Key Authentication (SecFetchDest):
+* Api Key Authentication (SecChUaPlatform):
+* Api Key Authentication (SecFetchMode):
+* Api Key Authentication (CsrfToken):
+* Api Key Authentication (ClientUuid):
+* Bearer Authentication (BearerAuth):
+* Api Key Authentication (GuestToken):
+* Api Key Authentication (SecChUa):
+* Api Key Authentication (CookieGt0):
+* Api Key Authentication (ClientTransactionId):
+* Api Key Authentication (ActiveUser):
+* Api Key Authentication (CookieCt0):
+* Api Key Authentication (UserAgent):
+* Api Key Authentication (AcceptLanguage):
+* Api Key Authentication (SecFetchSite):
+* Api Key Authentication (AuthType):
+* Api Key Authentication (CookieAuthToken):
+* Api Key Authentication (SecChUaMobile):
+* Api Key Authentication (AcceptEncoding):
+
+```python
+import twitter_openapi_python_generated
+from twitter_openapi_python_generated.models.bookmark_search_timeline_response import BookmarkSearchTimelineResponse
+from twitter_openapi_python_generated.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://x.com/i/api
+# See configuration.py for a list of all supported configuration parameters.
+configuration = twitter_openapi_python_generated.Configuration(
+ host = "https://x.com/i/api"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: Accept
+configuration.api_key['Accept'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Accept'] = 'Bearer'
+
+# Configure API key authorization: ClientLanguage
+configuration.api_key['ClientLanguage'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientLanguage'] = 'Bearer'
+
+# Configure API key authorization: Priority
+configuration.api_key['Priority'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Priority'] = 'Bearer'
+
+# Configure API key authorization: Referer
+configuration.api_key['Referer'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Referer'] = 'Bearer'
+
+# Configure API key authorization: SecFetchDest
+configuration.api_key['SecFetchDest'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchDest'] = 'Bearer'
+
+# Configure API key authorization: SecChUaPlatform
+configuration.api_key['SecChUaPlatform'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUaPlatform'] = 'Bearer'
+
+# Configure API key authorization: SecFetchMode
+configuration.api_key['SecFetchMode'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchMode'] = 'Bearer'
+
+# Configure API key authorization: CsrfToken
+configuration.api_key['CsrfToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CsrfToken'] = 'Bearer'
+
+# Configure API key authorization: ClientUuid
+configuration.api_key['ClientUuid'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientUuid'] = 'Bearer'
+
+# Configure Bearer authorization: BearerAuth
+configuration = twitter_openapi_python_generated.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Configure API key authorization: GuestToken
+configuration.api_key['GuestToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['GuestToken'] = 'Bearer'
+
+# Configure API key authorization: SecChUa
+configuration.api_key['SecChUa'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUa'] = 'Bearer'
+
+# Configure API key authorization: CookieGt0
+configuration.api_key['CookieGt0'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieGt0'] = 'Bearer'
+
+# Configure API key authorization: ClientTransactionId
+configuration.api_key['ClientTransactionId'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientTransactionId'] = 'Bearer'
+
+# Configure API key authorization: ActiveUser
+configuration.api_key['ActiveUser'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ActiveUser'] = 'Bearer'
+
+# Configure API key authorization: CookieCt0
+configuration.api_key['CookieCt0'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieCt0'] = 'Bearer'
+
+# Configure API key authorization: UserAgent
+configuration.api_key['UserAgent'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['UserAgent'] = 'Bearer'
+
+# Configure API key authorization: AcceptLanguage
+configuration.api_key['AcceptLanguage'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AcceptLanguage'] = 'Bearer'
+
+# Configure API key authorization: SecFetchSite
+configuration.api_key['SecFetchSite'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchSite'] = 'Bearer'
+
+# Configure API key authorization: AuthType
+configuration.api_key['AuthType'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AuthType'] = 'Bearer'
+
+# Configure API key authorization: CookieAuthToken
+configuration.api_key['CookieAuthToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieAuthToken'] = 'Bearer'
+
+# Configure API key authorization: SecChUaMobile
+configuration.api_key['SecChUaMobile'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUaMobile'] = 'Bearer'
+
+# Configure API key authorization: AcceptEncoding
+configuration.api_key['AcceptEncoding'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AcceptEncoding'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with twitter_openapi_python_generated.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = twitter_openapi_python_generated.TweetApi(api_client)
+ path_query_id = 'VxJMx0-NXe-GO_4jC1lNhw' # str | (default to 'VxJMx0-NXe-GO_4jC1lNhw')
+ features = '{"rweb_video_screen_enabled": false, "rweb_cashtags_enabled": true, "profile_label_improvements_pcf_label_in_post_enabled": true, "responsive_web_profile_redirect_enabled": true, "rweb_tipjar_consumption_enabled": false, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "rweb_cashtags_composer_attachment_enabled": true, "responsive_web_jetfuel_frame": true, "rweb_sports_post_context_enabled": true, "responsive_web_grok_share_attachment_enabled": true, "responsive_web_grok_annotations_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "rweb_conversational_replies_downvote_enabled": false, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "content_disclosure_indicator_enabled": true, "content_disclosure_ai_generated_indicator_enabled": true, "responsive_web_grok_show_grok_translated_post": true, "responsive_web_grok_analysis_button_from_backend": true, "post_ctas_fetch_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": false, "responsive_web_nested_quote_preview_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_grok_imagine_annotation_enabled": true, "responsive_web_grok_community_note_auto_translation_is_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"rweb_video_screen_enabled": false, "rweb_cashtags_enabled": true, "profile_label_improvements_pcf_label_in_post_enabled": true, "responsive_web_profile_redirect_enabled": true, "rweb_tipjar_consumption_enabled": false, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "rweb_cashtags_composer_attachment_enabled": true, "responsive_web_jetfuel_frame": true, "rweb_sports_post_context_enabled": true, "responsive_web_grok_share_attachment_enabled": true, "responsive_web_grok_annotations_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "rweb_conversational_replies_downvote_enabled": false, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "content_disclosure_indicator_enabled": true, "content_disclosure_ai_generated_indicator_enabled": true, "responsive_web_grok_show_grok_translated_post": true, "responsive_web_grok_analysis_button_from_backend": true, "post_ctas_fetch_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": false, "responsive_web_nested_quote_preview_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_grok_imagine_annotation_enabled": true, "responsive_web_grok_community_note_auto_translation_is_enabled": true, "responsive_web_enhance_cards_enabled": false}')
+ variables = '{"rawQuery": "test", "count": 20}' # str | (default to '{"rawQuery": "test", "count": 20}')
+
+ try:
+ api_response = api_instance.get_bookmark_search_timeline(path_query_id, features, variables)
+ print("The response of TweetApi->get_bookmark_search_timeline:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling TweetApi->get_bookmark_search_timeline: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **path_query_id** | **str**| | [default to 'VxJMx0-NXe-GO_4jC1lNhw']
+ **features** | **str**| | [default to '{"rweb_video_screen_enabled": false, "rweb_cashtags_enabled": true, "profile_label_improvements_pcf_label_in_post_enabled": true, "responsive_web_profile_redirect_enabled": true, "rweb_tipjar_consumption_enabled": false, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "rweb_cashtags_composer_attachment_enabled": true, "responsive_web_jetfuel_frame": true, "rweb_sports_post_context_enabled": true, "responsive_web_grok_share_attachment_enabled": true, "responsive_web_grok_annotations_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "rweb_conversational_replies_downvote_enabled": false, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "content_disclosure_indicator_enabled": true, "content_disclosure_ai_generated_indicator_enabled": true, "responsive_web_grok_show_grok_translated_post": true, "responsive_web_grok_analysis_button_from_backend": true, "post_ctas_fetch_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": false, "responsive_web_nested_quote_preview_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_grok_imagine_annotation_enabled": true, "responsive_web_grok_community_note_auto_translation_is_enabled": true, "responsive_web_enhance_cards_enabled": false}']
+ **variables** | **str**| | [default to '{"rawQuery": "test", "count": 20}']
+
+### Return type
+
+[**BookmarkSearchTimelineResponse**](BookmarkSearchTimelineResponse.md)
+
+### Authorization
+
+[Accept](../README.md#Accept), [ClientLanguage](../README.md#ClientLanguage), [Priority](../README.md#Priority), [Referer](../README.md#Referer), [SecFetchDest](../README.md#SecFetchDest), [SecChUaPlatform](../README.md#SecChUaPlatform), [SecFetchMode](../README.md#SecFetchMode), [CsrfToken](../README.md#CsrfToken), [ClientUuid](../README.md#ClientUuid), [BearerAuth](../README.md#BearerAuth), [GuestToken](../README.md#GuestToken), [SecChUa](../README.md#SecChUa), [CookieGt0](../README.md#CookieGt0), [ClientTransactionId](../README.md#ClientTransactionId), [ActiveUser](../README.md#ActiveUser), [CookieCt0](../README.md#CookieCt0), [UserAgent](../README.md#UserAgent), [AcceptLanguage](../README.md#AcceptLanguage), [SecFetchSite](../README.md#SecFetchSite), [AuthType](../README.md#AuthType), [CookieAuthToken](../README.md#CookieAuthToken), [SecChUaMobile](../README.md#SecChUaMobile), [AcceptEncoding](../README.md#AcceptEncoding)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful operation | * x-connection-hash -
* x-rate-limit-limit -
* x-rate-limit-remaining -
* x-rate-limit-reset -
* x-response-time -
* x-tfe-preserve-body -
* x-transaction-id -
* x-twitter-response-tags -
|
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
# **get_bookmarks**
> BookmarksResponse get_bookmarks(path_query_id, variables, features)
@@ -1661,6 +1896,239 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+# **get_explore_sidebar**
+> ExploreSidebarResponse get_explore_sidebar(path_query_id, features, variables)
+
+the explore sidebar (trends)
+
+### Example
+
+* Api Key Authentication (Accept):
+* Api Key Authentication (ClientLanguage):
+* Api Key Authentication (Priority):
+* Api Key Authentication (Referer):
+* Api Key Authentication (SecFetchDest):
+* Api Key Authentication (SecChUaPlatform):
+* Api Key Authentication (SecFetchMode):
+* Api Key Authentication (CsrfToken):
+* Api Key Authentication (ClientUuid):
+* Bearer Authentication (BearerAuth):
+* Api Key Authentication (GuestToken):
+* Api Key Authentication (SecChUa):
+* Api Key Authentication (CookieGt0):
+* Api Key Authentication (ClientTransactionId):
+* Api Key Authentication (ActiveUser):
+* Api Key Authentication (CookieCt0):
+* Api Key Authentication (UserAgent):
+* Api Key Authentication (AcceptLanguage):
+* Api Key Authentication (SecFetchSite):
+* Api Key Authentication (AuthType):
+* Api Key Authentication (CookieAuthToken):
+* Api Key Authentication (SecChUaMobile):
+* Api Key Authentication (AcceptEncoding):
+
+```python
+import twitter_openapi_python_generated
+from twitter_openapi_python_generated.models.explore_sidebar_response import ExploreSidebarResponse
+from twitter_openapi_python_generated.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://x.com/i/api
+# See configuration.py for a list of all supported configuration parameters.
+configuration = twitter_openapi_python_generated.Configuration(
+ host = "https://x.com/i/api"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: Accept
+configuration.api_key['Accept'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Accept'] = 'Bearer'
+
+# Configure API key authorization: ClientLanguage
+configuration.api_key['ClientLanguage'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientLanguage'] = 'Bearer'
+
+# Configure API key authorization: Priority
+configuration.api_key['Priority'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Priority'] = 'Bearer'
+
+# Configure API key authorization: Referer
+configuration.api_key['Referer'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Referer'] = 'Bearer'
+
+# Configure API key authorization: SecFetchDest
+configuration.api_key['SecFetchDest'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchDest'] = 'Bearer'
+
+# Configure API key authorization: SecChUaPlatform
+configuration.api_key['SecChUaPlatform'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUaPlatform'] = 'Bearer'
+
+# Configure API key authorization: SecFetchMode
+configuration.api_key['SecFetchMode'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchMode'] = 'Bearer'
+
+# Configure API key authorization: CsrfToken
+configuration.api_key['CsrfToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CsrfToken'] = 'Bearer'
+
+# Configure API key authorization: ClientUuid
+configuration.api_key['ClientUuid'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientUuid'] = 'Bearer'
+
+# Configure Bearer authorization: BearerAuth
+configuration = twitter_openapi_python_generated.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Configure API key authorization: GuestToken
+configuration.api_key['GuestToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['GuestToken'] = 'Bearer'
+
+# Configure API key authorization: SecChUa
+configuration.api_key['SecChUa'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUa'] = 'Bearer'
+
+# Configure API key authorization: CookieGt0
+configuration.api_key['CookieGt0'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieGt0'] = 'Bearer'
+
+# Configure API key authorization: ClientTransactionId
+configuration.api_key['ClientTransactionId'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientTransactionId'] = 'Bearer'
+
+# Configure API key authorization: ActiveUser
+configuration.api_key['ActiveUser'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ActiveUser'] = 'Bearer'
+
+# Configure API key authorization: CookieCt0
+configuration.api_key['CookieCt0'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieCt0'] = 'Bearer'
+
+# Configure API key authorization: UserAgent
+configuration.api_key['UserAgent'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['UserAgent'] = 'Bearer'
+
+# Configure API key authorization: AcceptLanguage
+configuration.api_key['AcceptLanguage'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AcceptLanguage'] = 'Bearer'
+
+# Configure API key authorization: SecFetchSite
+configuration.api_key['SecFetchSite'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchSite'] = 'Bearer'
+
+# Configure API key authorization: AuthType
+configuration.api_key['AuthType'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AuthType'] = 'Bearer'
+
+# Configure API key authorization: CookieAuthToken
+configuration.api_key['CookieAuthToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieAuthToken'] = 'Bearer'
+
+# Configure API key authorization: SecChUaMobile
+configuration.api_key['SecChUaMobile'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUaMobile'] = 'Bearer'
+
+# Configure API key authorization: AcceptEncoding
+configuration.api_key['AcceptEncoding'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AcceptEncoding'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with twitter_openapi_python_generated.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = twitter_openapi_python_generated.TweetApi(api_client)
+ path_query_id = 'bY118dk8ns_5JzfzIMeiBw' # str | (default to 'bY118dk8ns_5JzfzIMeiBw')
+ features = '{"rweb_video_screen_enabled": false, "rweb_cashtags_enabled": true, "profile_label_improvements_pcf_label_in_post_enabled": true, "responsive_web_profile_redirect_enabled": true, "rweb_tipjar_consumption_enabled": false, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "rweb_cashtags_composer_attachment_enabled": true, "responsive_web_jetfuel_frame": true, "rweb_sports_post_context_enabled": true, "responsive_web_grok_share_attachment_enabled": true, "responsive_web_grok_annotations_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "rweb_conversational_replies_downvote_enabled": false, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "content_disclosure_indicator_enabled": true, "content_disclosure_ai_generated_indicator_enabled": true, "responsive_web_grok_show_grok_translated_post": true, "responsive_web_grok_analysis_button_from_backend": true, "post_ctas_fetch_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": false, "responsive_web_nested_quote_preview_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_grok_imagine_annotation_enabled": true, "responsive_web_grok_community_note_auto_translation_is_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"rweb_video_screen_enabled": false, "rweb_cashtags_enabled": true, "profile_label_improvements_pcf_label_in_post_enabled": true, "responsive_web_profile_redirect_enabled": true, "rweb_tipjar_consumption_enabled": false, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "rweb_cashtags_composer_attachment_enabled": true, "responsive_web_jetfuel_frame": true, "rweb_sports_post_context_enabled": true, "responsive_web_grok_share_attachment_enabled": true, "responsive_web_grok_annotations_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "rweb_conversational_replies_downvote_enabled": false, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "content_disclosure_indicator_enabled": true, "content_disclosure_ai_generated_indicator_enabled": true, "responsive_web_grok_show_grok_translated_post": true, "responsive_web_grok_analysis_button_from_backend": true, "post_ctas_fetch_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": false, "responsive_web_nested_quote_preview_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_grok_imagine_annotation_enabled": true, "responsive_web_grok_community_note_auto_translation_is_enabled": true, "responsive_web_enhance_cards_enabled": false}')
+ variables = '{}' # str | (default to '{}')
+
+ try:
+ api_response = api_instance.get_explore_sidebar(path_query_id, features, variables)
+ print("The response of TweetApi->get_explore_sidebar:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling TweetApi->get_explore_sidebar: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **path_query_id** | **str**| | [default to 'bY118dk8ns_5JzfzIMeiBw']
+ **features** | **str**| | [default to '{"rweb_video_screen_enabled": false, "rweb_cashtags_enabled": true, "profile_label_improvements_pcf_label_in_post_enabled": true, "responsive_web_profile_redirect_enabled": true, "rweb_tipjar_consumption_enabled": false, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "rweb_cashtags_composer_attachment_enabled": true, "responsive_web_jetfuel_frame": true, "rweb_sports_post_context_enabled": true, "responsive_web_grok_share_attachment_enabled": true, "responsive_web_grok_annotations_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "rweb_conversational_replies_downvote_enabled": false, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "content_disclosure_indicator_enabled": true, "content_disclosure_ai_generated_indicator_enabled": true, "responsive_web_grok_show_grok_translated_post": true, "responsive_web_grok_analysis_button_from_backend": true, "post_ctas_fetch_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": false, "responsive_web_nested_quote_preview_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_grok_imagine_annotation_enabled": true, "responsive_web_grok_community_note_auto_translation_is_enabled": true, "responsive_web_enhance_cards_enabled": false}']
+ **variables** | **str**| | [default to '{}']
+
+### Return type
+
+[**ExploreSidebarResponse**](ExploreSidebarResponse.md)
+
+### Authorization
+
+[Accept](../README.md#Accept), [ClientLanguage](../README.md#ClientLanguage), [Priority](../README.md#Priority), [Referer](../README.md#Referer), [SecFetchDest](../README.md#SecFetchDest), [SecChUaPlatform](../README.md#SecChUaPlatform), [SecFetchMode](../README.md#SecFetchMode), [CsrfToken](../README.md#CsrfToken), [ClientUuid](../README.md#ClientUuid), [BearerAuth](../README.md#BearerAuth), [GuestToken](../README.md#GuestToken), [SecChUa](../README.md#SecChUa), [CookieGt0](../README.md#CookieGt0), [ClientTransactionId](../README.md#ClientTransactionId), [ActiveUser](../README.md#ActiveUser), [CookieCt0](../README.md#CookieCt0), [UserAgent](../README.md#UserAgent), [AcceptLanguage](../README.md#AcceptLanguage), [SecFetchSite](../README.md#SecFetchSite), [AuthType](../README.md#AuthType), [CookieAuthToken](../README.md#CookieAuthToken), [SecChUaMobile](../README.md#SecChUaMobile), [AcceptEncoding](../README.md#AcceptEncoding)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful operation | * x-connection-hash -
* x-rate-limit-limit -
* x-rate-limit-remaining -
* x-rate-limit-reset -
* x-response-time -
* x-tfe-preserve-body -
* x-transaction-id -
* x-twitter-response-tags -
|
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
# **get_generic_timeline_by_id**
> GenericTimelineByIdResponse get_generic_timeline_by_id(path_query_id, variables, features)
@@ -1851,7 +2319,7 @@ with twitter_openapi_python_generated.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = twitter_openapi_python_generated.TweetApi(api_client)
path_query_id = 'cW93hZ3nlNYbYcUROF5r5A' # str | (default to 'cW93hZ3nlNYbYcUROF5r5A')
- variables = '{"timelineId": "VGltZWxpbmU6CwA6AAAAEzE3ODgyMjQyMDA2MzkxNjAzMjAA", "count": 20, "withQuickPromoteEligibilityTweetFields": true}' # str | (default to '{"timelineId": "VGltZWxpbmU6CwA6AAAAEzE3ODgyMjQyMDA2MzkxNjAzMjAA", "count": 20, "withQuickPromoteEligibilityTweetFields": true}')
+ variables = '{"timelineId": "VGltZWxpbmU6DAC2CwABAAAACHRyZW5kaW5nAAA=", "count": 20, "withQuickPromoteEligibilityTweetFields": true}' # str | (default to '{"timelineId": "VGltZWxpbmU6DAC2CwABAAAACHRyZW5kaW5nAAA=", "count": 20, "withQuickPromoteEligibilityTweetFields": true}')
features = '{"rweb_video_screen_enabled": false, "rweb_cashtags_enabled": true, "profile_label_improvements_pcf_label_in_post_enabled": true, "responsive_web_profile_redirect_enabled": true, "rweb_tipjar_consumption_enabled": false, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "rweb_cashtags_composer_attachment_enabled": true, "responsive_web_jetfuel_frame": true, "rweb_sports_post_context_enabled": true, "responsive_web_grok_share_attachment_enabled": true, "responsive_web_grok_annotations_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "rweb_conversational_replies_downvote_enabled": false, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "content_disclosure_indicator_enabled": true, "content_disclosure_ai_generated_indicator_enabled": true, "responsive_web_grok_show_grok_translated_post": true, "responsive_web_grok_analysis_button_from_backend": true, "post_ctas_fetch_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": false, "responsive_web_nested_quote_preview_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_grok_imagine_annotation_enabled": true, "responsive_web_grok_community_note_auto_translation_is_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"rweb_video_screen_enabled": false, "rweb_cashtags_enabled": true, "profile_label_improvements_pcf_label_in_post_enabled": true, "responsive_web_profile_redirect_enabled": true, "rweb_tipjar_consumption_enabled": false, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "rweb_cashtags_composer_attachment_enabled": true, "responsive_web_jetfuel_frame": true, "rweb_sports_post_context_enabled": true, "responsive_web_grok_share_attachment_enabled": true, "responsive_web_grok_annotations_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "rweb_conversational_replies_downvote_enabled": false, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "content_disclosure_indicator_enabled": true, "content_disclosure_ai_generated_indicator_enabled": true, "responsive_web_grok_show_grok_translated_post": true, "responsive_web_grok_analysis_button_from_backend": true, "post_ctas_fetch_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": false, "responsive_web_nested_quote_preview_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_grok_imagine_annotation_enabled": true, "responsive_web_grok_community_note_auto_translation_is_enabled": true, "responsive_web_enhance_cards_enabled": false}')
try:
@@ -1870,7 +2338,7 @@ with twitter_openapi_python_generated.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**path_query_id** | **str**| | [default to 'cW93hZ3nlNYbYcUROF5r5A']
- **variables** | **str**| | [default to '{"timelineId": "VGltZWxpbmU6CwA6AAAAEzE3ODgyMjQyMDA2MzkxNjAzMjAA", "count": 20, "withQuickPromoteEligibilityTweetFields": true}']
+ **variables** | **str**| | [default to '{"timelineId": "VGltZWxpbmU6DAC2CwABAAAACHRyZW5kaW5nAAA=", "count": 20, "withQuickPromoteEligibilityTweetFields": true}']
**features** | **str**| | [default to '{"rweb_video_screen_enabled": false, "rweb_cashtags_enabled": true, "profile_label_improvements_pcf_label_in_post_enabled": true, "responsive_web_profile_redirect_enabled": true, "rweb_tipjar_consumption_enabled": false, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "rweb_cashtags_composer_attachment_enabled": true, "responsive_web_jetfuel_frame": true, "rweb_sports_post_context_enabled": true, "responsive_web_grok_share_attachment_enabled": true, "responsive_web_grok_annotations_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "rweb_conversational_replies_downvote_enabled": false, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "content_disclosure_indicator_enabled": true, "content_disclosure_ai_generated_indicator_enabled": true, "responsive_web_grok_show_grok_translated_post": true, "responsive_web_grok_analysis_button_from_backend": true, "post_ctas_fetch_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": false, "responsive_web_nested_quote_preview_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_grok_imagine_annotation_enabled": true, "responsive_web_grok_community_note_auto_translation_is_enabled": true, "responsive_web_enhance_cards_enabled": false}']
### Return type
@@ -2554,7 +3022,7 @@ with twitter_openapi_python_generated.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = twitter_openapi_python_generated.TweetApi(api_client)
path_query_id = 'mu4us66Q6RRNOywVQhGtRg' # str | (default to 'mu4us66Q6RRNOywVQhGtRg')
- variables = '{"userId": "44196397", "count": 20, "includePromotedContent": false, "withClientEventToken": false, "withBirdwatchNotes": false, "withVoice": true}' # str | (default to '{"userId": "44196397", "count": 20, "includePromotedContent": false, "withClientEventToken": false, "withBirdwatchNotes": false, "withVoice": true}')
+ variables = '{"userId": "1787148517779406848", "count": 20, "includePromotedContent": false, "withClientEventToken": false, "withBirdwatchNotes": false, "withVoice": true}' # str | (default to '{"userId": "1787148517779406848", "count": 20, "includePromotedContent": false, "withClientEventToken": false, "withBirdwatchNotes": false, "withVoice": true}')
features = '{"rweb_video_screen_enabled": false, "rweb_cashtags_enabled": true, "profile_label_improvements_pcf_label_in_post_enabled": true, "responsive_web_profile_redirect_enabled": true, "rweb_tipjar_consumption_enabled": false, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "rweb_cashtags_composer_attachment_enabled": true, "responsive_web_jetfuel_frame": true, "rweb_sports_post_context_enabled": true, "responsive_web_grok_share_attachment_enabled": true, "responsive_web_grok_annotations_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "rweb_conversational_replies_downvote_enabled": false, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "content_disclosure_indicator_enabled": true, "content_disclosure_ai_generated_indicator_enabled": true, "responsive_web_grok_show_grok_translated_post": true, "responsive_web_grok_analysis_button_from_backend": true, "post_ctas_fetch_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": false, "responsive_web_nested_quote_preview_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_grok_imagine_annotation_enabled": true, "responsive_web_grok_community_note_auto_translation_is_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"rweb_video_screen_enabled": false, "rweb_cashtags_enabled": true, "profile_label_improvements_pcf_label_in_post_enabled": true, "responsive_web_profile_redirect_enabled": true, "rweb_tipjar_consumption_enabled": false, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "rweb_cashtags_composer_attachment_enabled": true, "responsive_web_jetfuel_frame": true, "rweb_sports_post_context_enabled": true, "responsive_web_grok_share_attachment_enabled": true, "responsive_web_grok_annotations_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "rweb_conversational_replies_downvote_enabled": false, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "content_disclosure_indicator_enabled": true, "content_disclosure_ai_generated_indicator_enabled": true, "responsive_web_grok_show_grok_translated_post": true, "responsive_web_grok_analysis_button_from_backend": true, "post_ctas_fetch_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": false, "responsive_web_nested_quote_preview_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_grok_imagine_annotation_enabled": true, "responsive_web_grok_community_note_auto_translation_is_enabled": true, "responsive_web_enhance_cards_enabled": false}')
field_toggles = '{"withPayments": false, "withArticlePlainText": false}' # str | (default to '{"withPayments": false, "withArticlePlainText": false}')
@@ -2574,7 +3042,7 @@ with twitter_openapi_python_generated.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**path_query_id** | **str**| | [default to 'mu4us66Q6RRNOywVQhGtRg']
- **variables** | **str**| | [default to '{"userId": "44196397", "count": 20, "includePromotedContent": false, "withClientEventToken": false, "withBirdwatchNotes": false, "withVoice": true}']
+ **variables** | **str**| | [default to '{"userId": "1787148517779406848", "count": 20, "includePromotedContent": false, "withClientEventToken": false, "withBirdwatchNotes": false, "withVoice": true}']
**features** | **str**| | [default to '{"rweb_video_screen_enabled": false, "rweb_cashtags_enabled": true, "profile_label_improvements_pcf_label_in_post_enabled": true, "responsive_web_profile_redirect_enabled": true, "rweb_tipjar_consumption_enabled": false, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "rweb_cashtags_composer_attachment_enabled": true, "responsive_web_jetfuel_frame": true, "rweb_sports_post_context_enabled": true, "responsive_web_grok_share_attachment_enabled": true, "responsive_web_grok_annotations_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "rweb_conversational_replies_downvote_enabled": false, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "content_disclosure_indicator_enabled": true, "content_disclosure_ai_generated_indicator_enabled": true, "responsive_web_grok_show_grok_translated_post": true, "responsive_web_grok_analysis_button_from_backend": true, "post_ctas_fetch_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": false, "responsive_web_nested_quote_preview_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_grok_imagine_annotation_enabled": true, "responsive_web_grok_community_note_auto_translation_is_enabled": true, "responsive_web_enhance_cards_enabled": false}']
**field_toggles** | **str**| | [default to '{"withPayments": false, "withArticlePlainText": false}']
diff --git a/twitter_openapi_python_generated/docs/TypeName.md b/twitter_openapi_python_generated/docs/TypeName.md
index bc91341..5962001 100644
--- a/twitter_openapi_python_generated/docs/TypeName.md
+++ b/twitter_openapi_python_generated/docs/TypeName.md
@@ -13,6 +13,8 @@
* `TIMELINELABEL` (value: `'TimelineLabel'`)
+* `TIMELINEEVENTSUMMARY` (value: `'TimelineEventSummary'`)
+
* `TIMELINETIMELINEITEM` (value: `'TimelineTimelineItem'`)
* `TIMELINEUSER` (value: `'TimelineUser'`)
@@ -77,6 +79,10 @@
* `COMMUNITYUSERDEFAULTMODERATIONSTATE` (value: `'CommunityUserDefaultModerationState'`)
+* `COMMUNITYHASHTAGSLICE` (value: `'CommunityHashtagSlice'`)
+
+* `COMMUNITYLISTMEMBERSACTION` (value: `'CommunityListMembersAction'`)
+
* `CTALIMITEDACTIONPROMPT` (value: `'CtaLimitedActionPrompt'`)
* `TIMELINERICHTEXTUSER` (value: `'TimelineRichTextUser'`)
diff --git a/twitter_openapi_python_generated/docs/UserListApi.md b/twitter_openapi_python_generated/docs/UserListApi.md
index 0c9d2b0..3337693 100644
--- a/twitter_openapi_python_generated/docs/UserListApi.md
+++ b/twitter_openapi_python_generated/docs/UserListApi.md
@@ -5,6 +5,7 @@ All URIs are relative to *https://x.com/i/api*
Method | HTTP request | Description
------------- | ------------- | -------------
[**get_blue_verified_followers**](UserListApi.md#get_blue_verified_followers) | **GET** /graphql/{pathQueryId}/BlueVerifiedFollowers |
+[**get_combined_lists**](UserListApi.md#get_combined_lists) | **GET** /graphql/{pathQueryId}/CombinedLists |
[**get_favoriters**](UserListApi.md#get_favoriters) | **GET** /graphql/{pathQueryId}/Favoriters |
[**get_followers**](UserListApi.md#get_followers) | **GET** /graphql/{pathQueryId}/Followers |
[**get_followers_you_know**](UserListApi.md#get_followers_you_know) | **GET** /graphql/{pathQueryId}/FollowersYouKnow |
@@ -14,7 +15,9 @@ Method | HTTP request | Description
[**get_list_edit_recommended_users**](UserListApi.md#get_list_edit_recommended_users) | **GET** /graphql/{pathQueryId}/ListEditRecommendedUsers |
[**get_list_members**](UserListApi.md#get_list_members) | **GET** /graphql/{pathQueryId}/ListMembers |
[**get_list_ownerships**](UserListApi.md#get_list_ownerships) | **GET** /graphql/{pathQueryId}/ListOwnerships |
+[**get_list_search_timeline**](UserListApi.md#get_list_search_timeline) | **GET** /graphql/{pathQueryId}/ListSearchTimeline |
[**get_list_subscribers**](UserListApi.md#get_list_subscribers) | **GET** /graphql/{pathQueryId}/ListSubscribers |
+[**get_lists_management_page_timeline**](UserListApi.md#get_lists_management_page_timeline) | **GET** /graphql/{pathQueryId}/ListsManagementPageTimeline |
[**get_retweeters**](UserListApi.md#get_retweeters) | **GET** /graphql/{pathQueryId}/Retweeters |
@@ -251,6 +254,239 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+# **get_combined_lists**
+> UserTweetsResponse get_combined_lists(path_query_id, features, variables)
+
+lists a user owns or follows
+
+### Example
+
+* Api Key Authentication (Accept):
+* Api Key Authentication (ClientLanguage):
+* Api Key Authentication (Priority):
+* Api Key Authentication (Referer):
+* Api Key Authentication (SecFetchDest):
+* Api Key Authentication (SecChUaPlatform):
+* Api Key Authentication (SecFetchMode):
+* Api Key Authentication (CsrfToken):
+* Api Key Authentication (ClientUuid):
+* Bearer Authentication (BearerAuth):
+* Api Key Authentication (GuestToken):
+* Api Key Authentication (SecChUa):
+* Api Key Authentication (CookieGt0):
+* Api Key Authentication (ClientTransactionId):
+* Api Key Authentication (ActiveUser):
+* Api Key Authentication (CookieCt0):
+* Api Key Authentication (UserAgent):
+* Api Key Authentication (AcceptLanguage):
+* Api Key Authentication (SecFetchSite):
+* Api Key Authentication (AuthType):
+* Api Key Authentication (CookieAuthToken):
+* Api Key Authentication (SecChUaMobile):
+* Api Key Authentication (AcceptEncoding):
+
+```python
+import twitter_openapi_python_generated
+from twitter_openapi_python_generated.models.user_tweets_response import UserTweetsResponse
+from twitter_openapi_python_generated.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://x.com/i/api
+# See configuration.py for a list of all supported configuration parameters.
+configuration = twitter_openapi_python_generated.Configuration(
+ host = "https://x.com/i/api"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: Accept
+configuration.api_key['Accept'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Accept'] = 'Bearer'
+
+# Configure API key authorization: ClientLanguage
+configuration.api_key['ClientLanguage'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientLanguage'] = 'Bearer'
+
+# Configure API key authorization: Priority
+configuration.api_key['Priority'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Priority'] = 'Bearer'
+
+# Configure API key authorization: Referer
+configuration.api_key['Referer'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Referer'] = 'Bearer'
+
+# Configure API key authorization: SecFetchDest
+configuration.api_key['SecFetchDest'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchDest'] = 'Bearer'
+
+# Configure API key authorization: SecChUaPlatform
+configuration.api_key['SecChUaPlatform'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUaPlatform'] = 'Bearer'
+
+# Configure API key authorization: SecFetchMode
+configuration.api_key['SecFetchMode'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchMode'] = 'Bearer'
+
+# Configure API key authorization: CsrfToken
+configuration.api_key['CsrfToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CsrfToken'] = 'Bearer'
+
+# Configure API key authorization: ClientUuid
+configuration.api_key['ClientUuid'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientUuid'] = 'Bearer'
+
+# Configure Bearer authorization: BearerAuth
+configuration = twitter_openapi_python_generated.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Configure API key authorization: GuestToken
+configuration.api_key['GuestToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['GuestToken'] = 'Bearer'
+
+# Configure API key authorization: SecChUa
+configuration.api_key['SecChUa'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUa'] = 'Bearer'
+
+# Configure API key authorization: CookieGt0
+configuration.api_key['CookieGt0'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieGt0'] = 'Bearer'
+
+# Configure API key authorization: ClientTransactionId
+configuration.api_key['ClientTransactionId'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientTransactionId'] = 'Bearer'
+
+# Configure API key authorization: ActiveUser
+configuration.api_key['ActiveUser'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ActiveUser'] = 'Bearer'
+
+# Configure API key authorization: CookieCt0
+configuration.api_key['CookieCt0'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieCt0'] = 'Bearer'
+
+# Configure API key authorization: UserAgent
+configuration.api_key['UserAgent'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['UserAgent'] = 'Bearer'
+
+# Configure API key authorization: AcceptLanguage
+configuration.api_key['AcceptLanguage'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AcceptLanguage'] = 'Bearer'
+
+# Configure API key authorization: SecFetchSite
+configuration.api_key['SecFetchSite'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchSite'] = 'Bearer'
+
+# Configure API key authorization: AuthType
+configuration.api_key['AuthType'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AuthType'] = 'Bearer'
+
+# Configure API key authorization: CookieAuthToken
+configuration.api_key['CookieAuthToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieAuthToken'] = 'Bearer'
+
+# Configure API key authorization: SecChUaMobile
+configuration.api_key['SecChUaMobile'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUaMobile'] = 'Bearer'
+
+# Configure API key authorization: AcceptEncoding
+configuration.api_key['AcceptEncoding'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AcceptEncoding'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with twitter_openapi_python_generated.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = twitter_openapi_python_generated.UserListApi(api_client)
+ path_query_id = 'HoclSXITeTmRfg1TF3G-RQ' # str | (default to 'HoclSXITeTmRfg1TF3G-RQ')
+ features = '{"rweb_video_screen_enabled": false, "rweb_cashtags_enabled": true, "profile_label_improvements_pcf_label_in_post_enabled": true, "responsive_web_profile_redirect_enabled": true, "rweb_tipjar_consumption_enabled": false, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "rweb_cashtags_composer_attachment_enabled": true, "responsive_web_jetfuel_frame": true, "rweb_sports_post_context_enabled": true, "responsive_web_grok_share_attachment_enabled": true, "responsive_web_grok_annotations_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "rweb_conversational_replies_downvote_enabled": false, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "content_disclosure_indicator_enabled": true, "content_disclosure_ai_generated_indicator_enabled": true, "responsive_web_grok_show_grok_translated_post": true, "responsive_web_grok_analysis_button_from_backend": true, "post_ctas_fetch_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": false, "responsive_web_nested_quote_preview_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_grok_imagine_annotation_enabled": true, "responsive_web_grok_community_note_auto_translation_is_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"rweb_video_screen_enabled": false, "rweb_cashtags_enabled": true, "profile_label_improvements_pcf_label_in_post_enabled": true, "responsive_web_profile_redirect_enabled": true, "rweb_tipjar_consumption_enabled": false, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "rweb_cashtags_composer_attachment_enabled": true, "responsive_web_jetfuel_frame": true, "rweb_sports_post_context_enabled": true, "responsive_web_grok_share_attachment_enabled": true, "responsive_web_grok_annotations_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "rweb_conversational_replies_downvote_enabled": false, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "content_disclosure_indicator_enabled": true, "content_disclosure_ai_generated_indicator_enabled": true, "responsive_web_grok_show_grok_translated_post": true, "responsive_web_grok_analysis_button_from_backend": true, "post_ctas_fetch_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": false, "responsive_web_nested_quote_preview_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_grok_imagine_annotation_enabled": true, "responsive_web_grok_community_note_auto_translation_is_enabled": true, "responsive_web_enhance_cards_enabled": false}')
+ variables = '{"userId": "44196397", "count": 100}' # str | (default to '{"userId": "44196397", "count": 100}')
+
+ try:
+ api_response = api_instance.get_combined_lists(path_query_id, features, variables)
+ print("The response of UserListApi->get_combined_lists:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling UserListApi->get_combined_lists: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **path_query_id** | **str**| | [default to 'HoclSXITeTmRfg1TF3G-RQ']
+ **features** | **str**| | [default to '{"rweb_video_screen_enabled": false, "rweb_cashtags_enabled": true, "profile_label_improvements_pcf_label_in_post_enabled": true, "responsive_web_profile_redirect_enabled": true, "rweb_tipjar_consumption_enabled": false, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "rweb_cashtags_composer_attachment_enabled": true, "responsive_web_jetfuel_frame": true, "rweb_sports_post_context_enabled": true, "responsive_web_grok_share_attachment_enabled": true, "responsive_web_grok_annotations_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "rweb_conversational_replies_downvote_enabled": false, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "content_disclosure_indicator_enabled": true, "content_disclosure_ai_generated_indicator_enabled": true, "responsive_web_grok_show_grok_translated_post": true, "responsive_web_grok_analysis_button_from_backend": true, "post_ctas_fetch_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": false, "responsive_web_nested_quote_preview_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_grok_imagine_annotation_enabled": true, "responsive_web_grok_community_note_auto_translation_is_enabled": true, "responsive_web_enhance_cards_enabled": false}']
+ **variables** | **str**| | [default to '{"userId": "44196397", "count": 100}']
+
+### Return type
+
+[**UserTweetsResponse**](UserTweetsResponse.md)
+
+### Authorization
+
+[Accept](../README.md#Accept), [ClientLanguage](../README.md#ClientLanguage), [Priority](../README.md#Priority), [Referer](../README.md#Referer), [SecFetchDest](../README.md#SecFetchDest), [SecChUaPlatform](../README.md#SecChUaPlatform), [SecFetchMode](../README.md#SecFetchMode), [CsrfToken](../README.md#CsrfToken), [ClientUuid](../README.md#ClientUuid), [BearerAuth](../README.md#BearerAuth), [GuestToken](../README.md#GuestToken), [SecChUa](../README.md#SecChUa), [CookieGt0](../README.md#CookieGt0), [ClientTransactionId](../README.md#ClientTransactionId), [ActiveUser](../README.md#ActiveUser), [CookieCt0](../README.md#CookieCt0), [UserAgent](../README.md#UserAgent), [AcceptLanguage](../README.md#AcceptLanguage), [SecFetchSite](../README.md#SecFetchSite), [AuthType](../README.md#AuthType), [CookieAuthToken](../README.md#CookieAuthToken), [SecChUaMobile](../README.md#SecChUaMobile), [AcceptEncoding](../README.md#AcceptEncoding)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful operation | * x-connection-hash -
* x-rate-limit-limit -
* x-rate-limit-remaining -
* x-rate-limit-reset -
* x-response-time -
* x-tfe-preserve-body -
* x-transaction-id -
* x-twitter-response-tags -
|
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
# **get_favoriters**
> TweetFavoritersResponse get_favoriters(path_query_id, variables, features)
@@ -2305,7 +2541,7 @@ with twitter_openapi_python_generated.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = twitter_openapi_python_generated.UserListApi(api_client)
path_query_id = 'f1u5dCI80zd4-YFYSkVCVQ' # str | (default to 'f1u5dCI80zd4-YFYSkVCVQ')
- variables = '{"userId": "1788224200639160320", "isListMemberTargetUserId": "44196397", "count": 20}' # str | (default to '{"userId": "1788224200639160320", "isListMemberTargetUserId": "44196397", "count": 20}')
+ variables = '{"userId": "1787148517779406848", "isListMemberTargetUserId": "44196397", "count": 20}' # str | (default to '{"userId": "1787148517779406848", "isListMemberTargetUserId": "44196397", "count": 20}')
features = '{"rweb_video_screen_enabled": false, "rweb_cashtags_enabled": true, "profile_label_improvements_pcf_label_in_post_enabled": true, "responsive_web_profile_redirect_enabled": true, "rweb_tipjar_consumption_enabled": false, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "rweb_cashtags_composer_attachment_enabled": true, "responsive_web_jetfuel_frame": true, "rweb_sports_post_context_enabled": true, "responsive_web_grok_share_attachment_enabled": true, "responsive_web_grok_annotations_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "rweb_conversational_replies_downvote_enabled": false, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "content_disclosure_indicator_enabled": true, "content_disclosure_ai_generated_indicator_enabled": true, "responsive_web_grok_show_grok_translated_post": true, "responsive_web_grok_analysis_button_from_backend": true, "post_ctas_fetch_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": false, "responsive_web_nested_quote_preview_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_grok_imagine_annotation_enabled": true, "responsive_web_grok_community_note_auto_translation_is_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"rweb_video_screen_enabled": false, "rweb_cashtags_enabled": true, "profile_label_improvements_pcf_label_in_post_enabled": true, "responsive_web_profile_redirect_enabled": true, "rweb_tipjar_consumption_enabled": false, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "rweb_cashtags_composer_attachment_enabled": true, "responsive_web_jetfuel_frame": true, "rweb_sports_post_context_enabled": true, "responsive_web_grok_share_attachment_enabled": true, "responsive_web_grok_annotations_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "rweb_conversational_replies_downvote_enabled": false, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "content_disclosure_indicator_enabled": true, "content_disclosure_ai_generated_indicator_enabled": true, "responsive_web_grok_show_grok_translated_post": true, "responsive_web_grok_analysis_button_from_backend": true, "post_ctas_fetch_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": false, "responsive_web_nested_quote_preview_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_grok_imagine_annotation_enabled": true, "responsive_web_grok_community_note_auto_translation_is_enabled": true, "responsive_web_enhance_cards_enabled": false}')
try:
@@ -2324,7 +2560,7 @@ with twitter_openapi_python_generated.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**path_query_id** | **str**| | [default to 'f1u5dCI80zd4-YFYSkVCVQ']
- **variables** | **str**| | [default to '{"userId": "1788224200639160320", "isListMemberTargetUserId": "44196397", "count": 20}']
+ **variables** | **str**| | [default to '{"userId": "1787148517779406848", "isListMemberTargetUserId": "44196397", "count": 20}']
**features** | **str**| | [default to '{"rweb_video_screen_enabled": false, "rweb_cashtags_enabled": true, "profile_label_improvements_pcf_label_in_post_enabled": true, "responsive_web_profile_redirect_enabled": true, "rweb_tipjar_consumption_enabled": false, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "rweb_cashtags_composer_attachment_enabled": true, "responsive_web_jetfuel_frame": true, "rweb_sports_post_context_enabled": true, "responsive_web_grok_share_attachment_enabled": true, "responsive_web_grok_annotations_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "rweb_conversational_replies_downvote_enabled": false, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "content_disclosure_indicator_enabled": true, "content_disclosure_ai_generated_indicator_enabled": true, "responsive_web_grok_show_grok_translated_post": true, "responsive_web_grok_analysis_button_from_backend": true, "post_ctas_fetch_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": false, "responsive_web_nested_quote_preview_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_grok_imagine_annotation_enabled": true, "responsive_web_grok_community_note_auto_translation_is_enabled": true, "responsive_web_enhance_cards_enabled": false}']
### Return type
@@ -2348,10 +2584,10 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **get_list_subscribers**
-> ListSubscribersResponse get_list_subscribers(path_query_id, variables, features)
+# **get_list_search_timeline**
+> ListSearchTimelineResponse get_list_search_timeline(path_query_id, features, variables)
-get list subscribers (followers)
+search lists
### Example
@@ -2381,7 +2617,7 @@ get list subscribers (followers)
```python
import twitter_openapi_python_generated
-from twitter_openapi_python_generated.models.list_subscribers_response import ListSubscribersResponse
+from twitter_openapi_python_generated.models.list_search_timeline_response import ListSearchTimelineResponse
from twitter_openapi_python_generated.rest import ApiException
from pprint import pprint
@@ -2537,16 +2773,16 @@ configuration.api_key['AcceptEncoding'] = os.environ["API_KEY"]
with twitter_openapi_python_generated.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = twitter_openapi_python_generated.UserListApi(api_client)
- path_query_id = 'n52ZU-g4FEWzgdPkv1UC2g' # str | (default to 'n52ZU-g4FEWzgdPkv1UC2g')
- variables = '{"listId": "1141162794290520064", "count": 20}' # str | (default to '{"listId": "1141162794290520064", "count": 20}')
+ path_query_id = '9kXBVnbdRxymiEvafaXCQA' # str | (default to '9kXBVnbdRxymiEvafaXCQA')
features = '{"rweb_video_screen_enabled": false, "rweb_cashtags_enabled": true, "profile_label_improvements_pcf_label_in_post_enabled": true, "responsive_web_profile_redirect_enabled": true, "rweb_tipjar_consumption_enabled": false, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "rweb_cashtags_composer_attachment_enabled": true, "responsive_web_jetfuel_frame": true, "rweb_sports_post_context_enabled": true, "responsive_web_grok_share_attachment_enabled": true, "responsive_web_grok_annotations_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "rweb_conversational_replies_downvote_enabled": false, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "content_disclosure_indicator_enabled": true, "content_disclosure_ai_generated_indicator_enabled": true, "responsive_web_grok_show_grok_translated_post": true, "responsive_web_grok_analysis_button_from_backend": true, "post_ctas_fetch_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": false, "responsive_web_nested_quote_preview_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_grok_imagine_annotation_enabled": true, "responsive_web_grok_community_note_auto_translation_is_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"rweb_video_screen_enabled": false, "rweb_cashtags_enabled": true, "profile_label_improvements_pcf_label_in_post_enabled": true, "responsive_web_profile_redirect_enabled": true, "rweb_tipjar_consumption_enabled": false, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "rweb_cashtags_composer_attachment_enabled": true, "responsive_web_jetfuel_frame": true, "rweb_sports_post_context_enabled": true, "responsive_web_grok_share_attachment_enabled": true, "responsive_web_grok_annotations_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "rweb_conversational_replies_downvote_enabled": false, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "content_disclosure_indicator_enabled": true, "content_disclosure_ai_generated_indicator_enabled": true, "responsive_web_grok_show_grok_translated_post": true, "responsive_web_grok_analysis_button_from_backend": true, "post_ctas_fetch_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": false, "responsive_web_nested_quote_preview_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_grok_imagine_annotation_enabled": true, "responsive_web_grok_community_note_auto_translation_is_enabled": true, "responsive_web_enhance_cards_enabled": false}')
+ variables = '{"rawQuery": "test", "count": 20}' # str | (default to '{"rawQuery": "test", "count": 20}')
try:
- api_response = api_instance.get_list_subscribers(path_query_id, variables, features)
- print("The response of UserListApi->get_list_subscribers:\n")
+ api_response = api_instance.get_list_search_timeline(path_query_id, features, variables)
+ print("The response of UserListApi->get_list_search_timeline:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling UserListApi->get_list_subscribers: %s\n" % e)
+ print("Exception when calling UserListApi->get_list_search_timeline: %s\n" % e)
```
@@ -2556,13 +2792,479 @@ with twitter_openapi_python_generated.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **path_query_id** | **str**| | [default to 'n52ZU-g4FEWzgdPkv1UC2g']
- **variables** | **str**| | [default to '{"listId": "1141162794290520064", "count": 20}']
+ **path_query_id** | **str**| | [default to '9kXBVnbdRxymiEvafaXCQA']
**features** | **str**| | [default to '{"rweb_video_screen_enabled": false, "rweb_cashtags_enabled": true, "profile_label_improvements_pcf_label_in_post_enabled": true, "responsive_web_profile_redirect_enabled": true, "rweb_tipjar_consumption_enabled": false, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "rweb_cashtags_composer_attachment_enabled": true, "responsive_web_jetfuel_frame": true, "rweb_sports_post_context_enabled": true, "responsive_web_grok_share_attachment_enabled": true, "responsive_web_grok_annotations_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "rweb_conversational_replies_downvote_enabled": false, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "content_disclosure_indicator_enabled": true, "content_disclosure_ai_generated_indicator_enabled": true, "responsive_web_grok_show_grok_translated_post": true, "responsive_web_grok_analysis_button_from_backend": true, "post_ctas_fetch_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": false, "responsive_web_nested_quote_preview_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_grok_imagine_annotation_enabled": true, "responsive_web_grok_community_note_auto_translation_is_enabled": true, "responsive_web_enhance_cards_enabled": false}']
+ **variables** | **str**| | [default to '{"rawQuery": "test", "count": 20}']
### Return type
-[**ListSubscribersResponse**](ListSubscribersResponse.md)
+[**ListSearchTimelineResponse**](ListSearchTimelineResponse.md)
+
+### Authorization
+
+[Accept](../README.md#Accept), [ClientLanguage](../README.md#ClientLanguage), [Priority](../README.md#Priority), [Referer](../README.md#Referer), [SecFetchDest](../README.md#SecFetchDest), [SecChUaPlatform](../README.md#SecChUaPlatform), [SecFetchMode](../README.md#SecFetchMode), [CsrfToken](../README.md#CsrfToken), [ClientUuid](../README.md#ClientUuid), [BearerAuth](../README.md#BearerAuth), [GuestToken](../README.md#GuestToken), [SecChUa](../README.md#SecChUa), [CookieGt0](../README.md#CookieGt0), [ClientTransactionId](../README.md#ClientTransactionId), [ActiveUser](../README.md#ActiveUser), [CookieCt0](../README.md#CookieCt0), [UserAgent](../README.md#UserAgent), [AcceptLanguage](../README.md#AcceptLanguage), [SecFetchSite](../README.md#SecFetchSite), [AuthType](../README.md#AuthType), [CookieAuthToken](../README.md#CookieAuthToken), [SecChUaMobile](../README.md#SecChUaMobile), [AcceptEncoding](../README.md#AcceptEncoding)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful operation | * x-connection-hash -
* x-rate-limit-limit -
* x-rate-limit-remaining -
* x-rate-limit-reset -
* x-response-time -
* x-tfe-preserve-body -
* x-transaction-id -
* x-twitter-response-tags -
|
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_list_subscribers**
+> ListSubscribersResponse get_list_subscribers(path_query_id, variables, features)
+
+get list subscribers (followers)
+
+### Example
+
+* Api Key Authentication (Accept):
+* Api Key Authentication (ClientLanguage):
+* Api Key Authentication (Priority):
+* Api Key Authentication (Referer):
+* Api Key Authentication (SecFetchDest):
+* Api Key Authentication (SecChUaPlatform):
+* Api Key Authentication (SecFetchMode):
+* Api Key Authentication (CsrfToken):
+* Api Key Authentication (ClientUuid):
+* Bearer Authentication (BearerAuth):
+* Api Key Authentication (GuestToken):
+* Api Key Authentication (SecChUa):
+* Api Key Authentication (CookieGt0):
+* Api Key Authentication (ClientTransactionId):
+* Api Key Authentication (ActiveUser):
+* Api Key Authentication (CookieCt0):
+* Api Key Authentication (UserAgent):
+* Api Key Authentication (AcceptLanguage):
+* Api Key Authentication (SecFetchSite):
+* Api Key Authentication (AuthType):
+* Api Key Authentication (CookieAuthToken):
+* Api Key Authentication (SecChUaMobile):
+* Api Key Authentication (AcceptEncoding):
+
+```python
+import twitter_openapi_python_generated
+from twitter_openapi_python_generated.models.list_subscribers_response import ListSubscribersResponse
+from twitter_openapi_python_generated.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://x.com/i/api
+# See configuration.py for a list of all supported configuration parameters.
+configuration = twitter_openapi_python_generated.Configuration(
+ host = "https://x.com/i/api"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: Accept
+configuration.api_key['Accept'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Accept'] = 'Bearer'
+
+# Configure API key authorization: ClientLanguage
+configuration.api_key['ClientLanguage'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientLanguage'] = 'Bearer'
+
+# Configure API key authorization: Priority
+configuration.api_key['Priority'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Priority'] = 'Bearer'
+
+# Configure API key authorization: Referer
+configuration.api_key['Referer'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Referer'] = 'Bearer'
+
+# Configure API key authorization: SecFetchDest
+configuration.api_key['SecFetchDest'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchDest'] = 'Bearer'
+
+# Configure API key authorization: SecChUaPlatform
+configuration.api_key['SecChUaPlatform'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUaPlatform'] = 'Bearer'
+
+# Configure API key authorization: SecFetchMode
+configuration.api_key['SecFetchMode'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchMode'] = 'Bearer'
+
+# Configure API key authorization: CsrfToken
+configuration.api_key['CsrfToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CsrfToken'] = 'Bearer'
+
+# Configure API key authorization: ClientUuid
+configuration.api_key['ClientUuid'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientUuid'] = 'Bearer'
+
+# Configure Bearer authorization: BearerAuth
+configuration = twitter_openapi_python_generated.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Configure API key authorization: GuestToken
+configuration.api_key['GuestToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['GuestToken'] = 'Bearer'
+
+# Configure API key authorization: SecChUa
+configuration.api_key['SecChUa'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUa'] = 'Bearer'
+
+# Configure API key authorization: CookieGt0
+configuration.api_key['CookieGt0'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieGt0'] = 'Bearer'
+
+# Configure API key authorization: ClientTransactionId
+configuration.api_key['ClientTransactionId'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientTransactionId'] = 'Bearer'
+
+# Configure API key authorization: ActiveUser
+configuration.api_key['ActiveUser'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ActiveUser'] = 'Bearer'
+
+# Configure API key authorization: CookieCt0
+configuration.api_key['CookieCt0'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieCt0'] = 'Bearer'
+
+# Configure API key authorization: UserAgent
+configuration.api_key['UserAgent'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['UserAgent'] = 'Bearer'
+
+# Configure API key authorization: AcceptLanguage
+configuration.api_key['AcceptLanguage'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AcceptLanguage'] = 'Bearer'
+
+# Configure API key authorization: SecFetchSite
+configuration.api_key['SecFetchSite'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchSite'] = 'Bearer'
+
+# Configure API key authorization: AuthType
+configuration.api_key['AuthType'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AuthType'] = 'Bearer'
+
+# Configure API key authorization: CookieAuthToken
+configuration.api_key['CookieAuthToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieAuthToken'] = 'Bearer'
+
+# Configure API key authorization: SecChUaMobile
+configuration.api_key['SecChUaMobile'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUaMobile'] = 'Bearer'
+
+# Configure API key authorization: AcceptEncoding
+configuration.api_key['AcceptEncoding'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AcceptEncoding'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with twitter_openapi_python_generated.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = twitter_openapi_python_generated.UserListApi(api_client)
+ path_query_id = 'n52ZU-g4FEWzgdPkv1UC2g' # str | (default to 'n52ZU-g4FEWzgdPkv1UC2g')
+ variables = '{"listId": "1141162794290520064", "count": 20}' # str | (default to '{"listId": "1141162794290520064", "count": 20}')
+ features = '{"rweb_video_screen_enabled": false, "rweb_cashtags_enabled": true, "profile_label_improvements_pcf_label_in_post_enabled": true, "responsive_web_profile_redirect_enabled": true, "rweb_tipjar_consumption_enabled": false, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "rweb_cashtags_composer_attachment_enabled": true, "responsive_web_jetfuel_frame": true, "rweb_sports_post_context_enabled": true, "responsive_web_grok_share_attachment_enabled": true, "responsive_web_grok_annotations_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "rweb_conversational_replies_downvote_enabled": false, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "content_disclosure_indicator_enabled": true, "content_disclosure_ai_generated_indicator_enabled": true, "responsive_web_grok_show_grok_translated_post": true, "responsive_web_grok_analysis_button_from_backend": true, "post_ctas_fetch_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": false, "responsive_web_nested_quote_preview_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_grok_imagine_annotation_enabled": true, "responsive_web_grok_community_note_auto_translation_is_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"rweb_video_screen_enabled": false, "rweb_cashtags_enabled": true, "profile_label_improvements_pcf_label_in_post_enabled": true, "responsive_web_profile_redirect_enabled": true, "rweb_tipjar_consumption_enabled": false, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "rweb_cashtags_composer_attachment_enabled": true, "responsive_web_jetfuel_frame": true, "rweb_sports_post_context_enabled": true, "responsive_web_grok_share_attachment_enabled": true, "responsive_web_grok_annotations_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "rweb_conversational_replies_downvote_enabled": false, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "content_disclosure_indicator_enabled": true, "content_disclosure_ai_generated_indicator_enabled": true, "responsive_web_grok_show_grok_translated_post": true, "responsive_web_grok_analysis_button_from_backend": true, "post_ctas_fetch_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": false, "responsive_web_nested_quote_preview_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_grok_imagine_annotation_enabled": true, "responsive_web_grok_community_note_auto_translation_is_enabled": true, "responsive_web_enhance_cards_enabled": false}')
+
+ try:
+ api_response = api_instance.get_list_subscribers(path_query_id, variables, features)
+ print("The response of UserListApi->get_list_subscribers:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling UserListApi->get_list_subscribers: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **path_query_id** | **str**| | [default to 'n52ZU-g4FEWzgdPkv1UC2g']
+ **variables** | **str**| | [default to '{"listId": "1141162794290520064", "count": 20}']
+ **features** | **str**| | [default to '{"rweb_video_screen_enabled": false, "rweb_cashtags_enabled": true, "profile_label_improvements_pcf_label_in_post_enabled": true, "responsive_web_profile_redirect_enabled": true, "rweb_tipjar_consumption_enabled": false, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "rweb_cashtags_composer_attachment_enabled": true, "responsive_web_jetfuel_frame": true, "rweb_sports_post_context_enabled": true, "responsive_web_grok_share_attachment_enabled": true, "responsive_web_grok_annotations_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "rweb_conversational_replies_downvote_enabled": false, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "content_disclosure_indicator_enabled": true, "content_disclosure_ai_generated_indicator_enabled": true, "responsive_web_grok_show_grok_translated_post": true, "responsive_web_grok_analysis_button_from_backend": true, "post_ctas_fetch_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": false, "responsive_web_nested_quote_preview_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_grok_imagine_annotation_enabled": true, "responsive_web_grok_community_note_auto_translation_is_enabled": true, "responsive_web_enhance_cards_enabled": false}']
+
+### Return type
+
+[**ListSubscribersResponse**](ListSubscribersResponse.md)
+
+### Authorization
+
+[Accept](../README.md#Accept), [ClientLanguage](../README.md#ClientLanguage), [Priority](../README.md#Priority), [Referer](../README.md#Referer), [SecFetchDest](../README.md#SecFetchDest), [SecChUaPlatform](../README.md#SecChUaPlatform), [SecFetchMode](../README.md#SecFetchMode), [CsrfToken](../README.md#CsrfToken), [ClientUuid](../README.md#ClientUuid), [BearerAuth](../README.md#BearerAuth), [GuestToken](../README.md#GuestToken), [SecChUa](../README.md#SecChUa), [CookieGt0](../README.md#CookieGt0), [ClientTransactionId](../README.md#ClientTransactionId), [ActiveUser](../README.md#ActiveUser), [CookieCt0](../README.md#CookieCt0), [UserAgent](../README.md#UserAgent), [AcceptLanguage](../README.md#AcceptLanguage), [SecFetchSite](../README.md#SecFetchSite), [AuthType](../README.md#AuthType), [CookieAuthToken](../README.md#CookieAuthToken), [SecChUaMobile](../README.md#SecChUaMobile), [AcceptEncoding](../README.md#AcceptEncoding)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful operation | * x-connection-hash -
* x-rate-limit-limit -
* x-rate-limit-remaining -
* x-rate-limit-reset -
* x-response-time -
* x-tfe-preserve-body -
* x-transaction-id -
* x-twitter-response-tags -
|
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_lists_management_page_timeline**
+> ListsManagementPageTimelineResponse get_lists_management_page_timeline(path_query_id, features, variables)
+
+the account's lists management page
+
+### Example
+
+* Api Key Authentication (Accept):
+* Api Key Authentication (ClientLanguage):
+* Api Key Authentication (Priority):
+* Api Key Authentication (Referer):
+* Api Key Authentication (SecFetchDest):
+* Api Key Authentication (SecChUaPlatform):
+* Api Key Authentication (SecFetchMode):
+* Api Key Authentication (CsrfToken):
+* Api Key Authentication (ClientUuid):
+* Bearer Authentication (BearerAuth):
+* Api Key Authentication (GuestToken):
+* Api Key Authentication (SecChUa):
+* Api Key Authentication (CookieGt0):
+* Api Key Authentication (ClientTransactionId):
+* Api Key Authentication (ActiveUser):
+* Api Key Authentication (CookieCt0):
+* Api Key Authentication (UserAgent):
+* Api Key Authentication (AcceptLanguage):
+* Api Key Authentication (SecFetchSite):
+* Api Key Authentication (AuthType):
+* Api Key Authentication (CookieAuthToken):
+* Api Key Authentication (SecChUaMobile):
+* Api Key Authentication (AcceptEncoding):
+
+```python
+import twitter_openapi_python_generated
+from twitter_openapi_python_generated.models.lists_management_page_timeline_response import ListsManagementPageTimelineResponse
+from twitter_openapi_python_generated.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://x.com/i/api
+# See configuration.py for a list of all supported configuration parameters.
+configuration = twitter_openapi_python_generated.Configuration(
+ host = "https://x.com/i/api"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: Accept
+configuration.api_key['Accept'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Accept'] = 'Bearer'
+
+# Configure API key authorization: ClientLanguage
+configuration.api_key['ClientLanguage'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientLanguage'] = 'Bearer'
+
+# Configure API key authorization: Priority
+configuration.api_key['Priority'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Priority'] = 'Bearer'
+
+# Configure API key authorization: Referer
+configuration.api_key['Referer'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Referer'] = 'Bearer'
+
+# Configure API key authorization: SecFetchDest
+configuration.api_key['SecFetchDest'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchDest'] = 'Bearer'
+
+# Configure API key authorization: SecChUaPlatform
+configuration.api_key['SecChUaPlatform'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUaPlatform'] = 'Bearer'
+
+# Configure API key authorization: SecFetchMode
+configuration.api_key['SecFetchMode'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchMode'] = 'Bearer'
+
+# Configure API key authorization: CsrfToken
+configuration.api_key['CsrfToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CsrfToken'] = 'Bearer'
+
+# Configure API key authorization: ClientUuid
+configuration.api_key['ClientUuid'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientUuid'] = 'Bearer'
+
+# Configure Bearer authorization: BearerAuth
+configuration = twitter_openapi_python_generated.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Configure API key authorization: GuestToken
+configuration.api_key['GuestToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['GuestToken'] = 'Bearer'
+
+# Configure API key authorization: SecChUa
+configuration.api_key['SecChUa'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUa'] = 'Bearer'
+
+# Configure API key authorization: CookieGt0
+configuration.api_key['CookieGt0'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieGt0'] = 'Bearer'
+
+# Configure API key authorization: ClientTransactionId
+configuration.api_key['ClientTransactionId'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientTransactionId'] = 'Bearer'
+
+# Configure API key authorization: ActiveUser
+configuration.api_key['ActiveUser'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ActiveUser'] = 'Bearer'
+
+# Configure API key authorization: CookieCt0
+configuration.api_key['CookieCt0'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieCt0'] = 'Bearer'
+
+# Configure API key authorization: UserAgent
+configuration.api_key['UserAgent'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['UserAgent'] = 'Bearer'
+
+# Configure API key authorization: AcceptLanguage
+configuration.api_key['AcceptLanguage'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AcceptLanguage'] = 'Bearer'
+
+# Configure API key authorization: SecFetchSite
+configuration.api_key['SecFetchSite'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchSite'] = 'Bearer'
+
+# Configure API key authorization: AuthType
+configuration.api_key['AuthType'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AuthType'] = 'Bearer'
+
+# Configure API key authorization: CookieAuthToken
+configuration.api_key['CookieAuthToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieAuthToken'] = 'Bearer'
+
+# Configure API key authorization: SecChUaMobile
+configuration.api_key['SecChUaMobile'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUaMobile'] = 'Bearer'
+
+# Configure API key authorization: AcceptEncoding
+configuration.api_key['AcceptEncoding'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AcceptEncoding'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with twitter_openapi_python_generated.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = twitter_openapi_python_generated.UserListApi(api_client)
+ path_query_id = 'FMDRDwDKo_nl4kT_AKWOCg' # str | (default to 'FMDRDwDKo_nl4kT_AKWOCg')
+ features = '{"rweb_video_screen_enabled": false, "rweb_cashtags_enabled": true, "profile_label_improvements_pcf_label_in_post_enabled": true, "responsive_web_profile_redirect_enabled": true, "rweb_tipjar_consumption_enabled": false, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "rweb_cashtags_composer_attachment_enabled": true, "responsive_web_jetfuel_frame": true, "rweb_sports_post_context_enabled": true, "responsive_web_grok_share_attachment_enabled": true, "responsive_web_grok_annotations_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "rweb_conversational_replies_downvote_enabled": false, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "content_disclosure_indicator_enabled": true, "content_disclosure_ai_generated_indicator_enabled": true, "responsive_web_grok_show_grok_translated_post": true, "responsive_web_grok_analysis_button_from_backend": true, "post_ctas_fetch_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": false, "responsive_web_nested_quote_preview_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_grok_imagine_annotation_enabled": true, "responsive_web_grok_community_note_auto_translation_is_enabled": true, "responsive_web_enhance_cards_enabled": false}' # str | (default to '{"rweb_video_screen_enabled": false, "rweb_cashtags_enabled": true, "profile_label_improvements_pcf_label_in_post_enabled": true, "responsive_web_profile_redirect_enabled": true, "rweb_tipjar_consumption_enabled": false, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "rweb_cashtags_composer_attachment_enabled": true, "responsive_web_jetfuel_frame": true, "rweb_sports_post_context_enabled": true, "responsive_web_grok_share_attachment_enabled": true, "responsive_web_grok_annotations_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "rweb_conversational_replies_downvote_enabled": false, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "content_disclosure_indicator_enabled": true, "content_disclosure_ai_generated_indicator_enabled": true, "responsive_web_grok_show_grok_translated_post": true, "responsive_web_grok_analysis_button_from_backend": true, "post_ctas_fetch_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": false, "responsive_web_nested_quote_preview_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_grok_imagine_annotation_enabled": true, "responsive_web_grok_community_note_auto_translation_is_enabled": true, "responsive_web_enhance_cards_enabled": false}')
+ variables = '{"count": 100}' # str | (default to '{"count": 100}')
+
+ try:
+ api_response = api_instance.get_lists_management_page_timeline(path_query_id, features, variables)
+ print("The response of UserListApi->get_lists_management_page_timeline:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling UserListApi->get_lists_management_page_timeline: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **path_query_id** | **str**| | [default to 'FMDRDwDKo_nl4kT_AKWOCg']
+ **features** | **str**| | [default to '{"rweb_video_screen_enabled": false, "rweb_cashtags_enabled": true, "profile_label_improvements_pcf_label_in_post_enabled": true, "responsive_web_profile_redirect_enabled": true, "rweb_tipjar_consumption_enabled": false, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch": true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled": false, "responsive_web_grok_analyze_post_followups_enabled": true, "rweb_cashtags_composer_attachment_enabled": true, "responsive_web_jetfuel_frame": true, "rweb_sports_post_context_enabled": true, "responsive_web_grok_share_attachment_enabled": true, "responsive_web_grok_annotations_enabled": true, "articles_preview_enabled": true, "responsive_web_edit_tweet_api_enabled": true, "rweb_conversational_replies_downvote_enabled": false, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true, "content_disclosure_indicator_enabled": true, "content_disclosure_ai_generated_indicator_enabled": true, "responsive_web_grok_show_grok_translated_post": true, "responsive_web_grok_analysis_button_from_backend": true, "post_ctas_fetch_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled": false, "responsive_web_nested_quote_preview_enabled": true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_grok_imagine_annotation_enabled": true, "responsive_web_grok_community_note_auto_translation_is_enabled": true, "responsive_web_enhance_cards_enabled": false}']
+ **variables** | **str**| | [default to '{"count": 100}']
+
+### Return type
+
+[**ListsManagementPageTimelineResponse**](ListsManagementPageTimelineResponse.md)
### Authorization
diff --git a/twitter_openapi_python_generated/docs/UsersApi.md b/twitter_openapi_python_generated/docs/UsersApi.md
index 961e4c5..91a8aa5 100644
--- a/twitter_openapi_python_generated/docs/UsersApi.md
+++ b/twitter_openapi_python_generated/docs/UsersApi.md
@@ -5,6 +5,7 @@ All URIs are relative to *https://x.com/i/api*
Method | HTTP request | Description
------------- | ------------- | -------------
[**get_users_by_rest_ids**](UsersApi.md#get_users_by_rest_ids) | **GET** /graphql/{pathQueryId}/UsersByRestIds |
+[**get_users_verified_avatars**](UsersApi.md#get_users_verified_avatars) | **GET** /graphql/{pathQueryId}/UsersVerifiedAvatars |
# **get_users_by_rest_ids**
@@ -240,3 +241,236 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+# **get_users_verified_avatars**
+> UsersVerifiedAvatarsResponse get_users_verified_avatars(path_query_id, features, variables)
+
+verified-avatar users by ids
+
+### Example
+
+* Api Key Authentication (Accept):
+* Api Key Authentication (ClientLanguage):
+* Api Key Authentication (Priority):
+* Api Key Authentication (Referer):
+* Api Key Authentication (SecFetchDest):
+* Api Key Authentication (SecChUaPlatform):
+* Api Key Authentication (SecFetchMode):
+* Api Key Authentication (CsrfToken):
+* Api Key Authentication (ClientUuid):
+* Bearer Authentication (BearerAuth):
+* Api Key Authentication (GuestToken):
+* Api Key Authentication (SecChUa):
+* Api Key Authentication (CookieGt0):
+* Api Key Authentication (ClientTransactionId):
+* Api Key Authentication (ActiveUser):
+* Api Key Authentication (CookieCt0):
+* Api Key Authentication (UserAgent):
+* Api Key Authentication (AcceptLanguage):
+* Api Key Authentication (SecFetchSite):
+* Api Key Authentication (AuthType):
+* Api Key Authentication (CookieAuthToken):
+* Api Key Authentication (SecChUaMobile):
+* Api Key Authentication (AcceptEncoding):
+
+```python
+import twitter_openapi_python_generated
+from twitter_openapi_python_generated.models.users_verified_avatars_response import UsersVerifiedAvatarsResponse
+from twitter_openapi_python_generated.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://x.com/i/api
+# See configuration.py for a list of all supported configuration parameters.
+configuration = twitter_openapi_python_generated.Configuration(
+ host = "https://x.com/i/api"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: Accept
+configuration.api_key['Accept'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Accept'] = 'Bearer'
+
+# Configure API key authorization: ClientLanguage
+configuration.api_key['ClientLanguage'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientLanguage'] = 'Bearer'
+
+# Configure API key authorization: Priority
+configuration.api_key['Priority'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Priority'] = 'Bearer'
+
+# Configure API key authorization: Referer
+configuration.api_key['Referer'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Referer'] = 'Bearer'
+
+# Configure API key authorization: SecFetchDest
+configuration.api_key['SecFetchDest'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchDest'] = 'Bearer'
+
+# Configure API key authorization: SecChUaPlatform
+configuration.api_key['SecChUaPlatform'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUaPlatform'] = 'Bearer'
+
+# Configure API key authorization: SecFetchMode
+configuration.api_key['SecFetchMode'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchMode'] = 'Bearer'
+
+# Configure API key authorization: CsrfToken
+configuration.api_key['CsrfToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CsrfToken'] = 'Bearer'
+
+# Configure API key authorization: ClientUuid
+configuration.api_key['ClientUuid'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientUuid'] = 'Bearer'
+
+# Configure Bearer authorization: BearerAuth
+configuration = twitter_openapi_python_generated.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Configure API key authorization: GuestToken
+configuration.api_key['GuestToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['GuestToken'] = 'Bearer'
+
+# Configure API key authorization: SecChUa
+configuration.api_key['SecChUa'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUa'] = 'Bearer'
+
+# Configure API key authorization: CookieGt0
+configuration.api_key['CookieGt0'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieGt0'] = 'Bearer'
+
+# Configure API key authorization: ClientTransactionId
+configuration.api_key['ClientTransactionId'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ClientTransactionId'] = 'Bearer'
+
+# Configure API key authorization: ActiveUser
+configuration.api_key['ActiveUser'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ActiveUser'] = 'Bearer'
+
+# Configure API key authorization: CookieCt0
+configuration.api_key['CookieCt0'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieCt0'] = 'Bearer'
+
+# Configure API key authorization: UserAgent
+configuration.api_key['UserAgent'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['UserAgent'] = 'Bearer'
+
+# Configure API key authorization: AcceptLanguage
+configuration.api_key['AcceptLanguage'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AcceptLanguage'] = 'Bearer'
+
+# Configure API key authorization: SecFetchSite
+configuration.api_key['SecFetchSite'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecFetchSite'] = 'Bearer'
+
+# Configure API key authorization: AuthType
+configuration.api_key['AuthType'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AuthType'] = 'Bearer'
+
+# Configure API key authorization: CookieAuthToken
+configuration.api_key['CookieAuthToken'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['CookieAuthToken'] = 'Bearer'
+
+# Configure API key authorization: SecChUaMobile
+configuration.api_key['SecChUaMobile'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['SecChUaMobile'] = 'Bearer'
+
+# Configure API key authorization: AcceptEncoding
+configuration.api_key['AcceptEncoding'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['AcceptEncoding'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with twitter_openapi_python_generated.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = twitter_openapi_python_generated.UsersApi(api_client)
+ path_query_id = 'O9O_O1iF0QffoOBjB2OGIQ' # str | (default to 'O9O_O1iF0QffoOBjB2OGIQ')
+ features = '{"responsive_web_graphql_timeline_navigation_enabled": true}' # str | (default to '{"responsive_web_graphql_timeline_navigation_enabled": true}')
+ variables = '{"userIds": ["1787148517779406848"]}' # str | (default to '{"userIds": ["1787148517779406848"]}')
+
+ try:
+ api_response = api_instance.get_users_verified_avatars(path_query_id, features, variables)
+ print("The response of UsersApi->get_users_verified_avatars:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling UsersApi->get_users_verified_avatars: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **path_query_id** | **str**| | [default to 'O9O_O1iF0QffoOBjB2OGIQ']
+ **features** | **str**| | [default to '{"responsive_web_graphql_timeline_navigation_enabled": true}']
+ **variables** | **str**| | [default to '{"userIds": ["1787148517779406848"]}']
+
+### Return type
+
+[**UsersVerifiedAvatarsResponse**](UsersVerifiedAvatarsResponse.md)
+
+### Authorization
+
+[Accept](../README.md#Accept), [ClientLanguage](../README.md#ClientLanguage), [Priority](../README.md#Priority), [Referer](../README.md#Referer), [SecFetchDest](../README.md#SecFetchDest), [SecChUaPlatform](../README.md#SecChUaPlatform), [SecFetchMode](../README.md#SecFetchMode), [CsrfToken](../README.md#CsrfToken), [ClientUuid](../README.md#ClientUuid), [BearerAuth](../README.md#BearerAuth), [GuestToken](../README.md#GuestToken), [SecChUa](../README.md#SecChUa), [CookieGt0](../README.md#CookieGt0), [ClientTransactionId](../README.md#ClientTransactionId), [ActiveUser](../README.md#ActiveUser), [CookieCt0](../README.md#CookieCt0), [UserAgent](../README.md#UserAgent), [AcceptLanguage](../README.md#AcceptLanguage), [SecFetchSite](../README.md#SecFetchSite), [AuthType](../README.md#AuthType), [CookieAuthToken](../README.md#CookieAuthToken), [SecChUaMobile](../README.md#SecChUaMobile), [AcceptEncoding](../README.md#AcceptEncoding)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful operation | * x-connection-hash -
* x-rate-limit-limit -
* x-rate-limit-remaining -
* x-rate-limit-reset -
* x-response-time -
* x-tfe-preserve-body -
* x-transaction-id -
* x-twitter-response-tags -
|
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/twitter_openapi_python_generated/docs/UsersVerifiedAvatarsResponse.md b/twitter_openapi_python_generated/docs/UsersVerifiedAvatarsResponse.md
new file mode 100644
index 0000000..b98a8a1
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/UsersVerifiedAvatarsResponse.md
@@ -0,0 +1,30 @@
+# UsersVerifiedAvatarsResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**data** | [**UsersVerifiedAvatarsResponseData**](UsersVerifiedAvatarsResponseData.md) | |
+**errors** | [**List[ErrorResponse]**](ErrorResponse.md) | | [optional]
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.users_verified_avatars_response import UsersVerifiedAvatarsResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of UsersVerifiedAvatarsResponse from a JSON string
+users_verified_avatars_response_instance = UsersVerifiedAvatarsResponse.from_json(json)
+# print the JSON string representation of the object
+print(UsersVerifiedAvatarsResponse.to_json())
+
+# convert the object into a dict
+users_verified_avatars_response_dict = users_verified_avatars_response_instance.to_dict()
+# create an instance of UsersVerifiedAvatarsResponse from a dict
+users_verified_avatars_response_from_dict = UsersVerifiedAvatarsResponse.from_dict(users_verified_avatars_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/UsersVerifiedAvatarsResponseData.md b/twitter_openapi_python_generated/docs/UsersVerifiedAvatarsResponseData.md
new file mode 100644
index 0000000..6291123
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/UsersVerifiedAvatarsResponseData.md
@@ -0,0 +1,29 @@
+# UsersVerifiedAvatarsResponseData
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**users_results** | [**List[VerifiedAvatarUserResults]**](VerifiedAvatarUserResults.md) | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.users_verified_avatars_response_data import UsersVerifiedAvatarsResponseData
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of UsersVerifiedAvatarsResponseData from a JSON string
+users_verified_avatars_response_data_instance = UsersVerifiedAvatarsResponseData.from_json(json)
+# print the JSON string representation of the object
+print(UsersVerifiedAvatarsResponseData.to_json())
+
+# convert the object into a dict
+users_verified_avatars_response_data_dict = users_verified_avatars_response_data_instance.to_dict()
+# create an instance of UsersVerifiedAvatarsResponseData from a dict
+users_verified_avatars_response_data_from_dict = UsersVerifiedAvatarsResponseData.from_dict(users_verified_avatars_response_data_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/VerifiedAvatarUser.md b/twitter_openapi_python_generated/docs/VerifiedAvatarUser.md
new file mode 100644
index 0000000..5e7f35d
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/VerifiedAvatarUser.md
@@ -0,0 +1,34 @@
+# VerifiedAvatarUser
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**typename** | [**TypeName**](TypeName.md) | |
+**affiliates_highlighted_label** | [**AffiliatesHighlightedLabel**](AffiliatesHighlightedLabel.md) | |
+**is_blue_verified** | **bool** | |
+**profile_image_shape** | **str** | |
+**rest_id** | **str** | |
+**verification** | **object** | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.verified_avatar_user import VerifiedAvatarUser
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of VerifiedAvatarUser from a JSON string
+verified_avatar_user_instance = VerifiedAvatarUser.from_json(json)
+# print the JSON string representation of the object
+print(VerifiedAvatarUser.to_json())
+
+# convert the object into a dict
+verified_avatar_user_dict = verified_avatar_user_instance.to_dict()
+# create an instance of VerifiedAvatarUser from a dict
+verified_avatar_user_from_dict = VerifiedAvatarUser.from_dict(verified_avatar_user_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/docs/VerifiedAvatarUserResults.md b/twitter_openapi_python_generated/docs/VerifiedAvatarUserResults.md
new file mode 100644
index 0000000..af6e66f
--- /dev/null
+++ b/twitter_openapi_python_generated/docs/VerifiedAvatarUserResults.md
@@ -0,0 +1,29 @@
+# VerifiedAvatarUserResults
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**result** | [**VerifiedAvatarUser**](VerifiedAvatarUser.md) | |
+
+## Example
+
+```python
+from twitter_openapi_python_generated.models.verified_avatar_user_results import VerifiedAvatarUserResults
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of VerifiedAvatarUserResults from a JSON string
+verified_avatar_user_results_instance = VerifiedAvatarUserResults.from_json(json)
+# print the JSON string representation of the object
+print(VerifiedAvatarUserResults.to_json())
+
+# convert the object into a dict
+verified_avatar_user_results_dict = verified_avatar_user_results_instance.to_dict()
+# create an instance of VerifiedAvatarUserResults from a dict
+verified_avatar_user_results_from_dict = VerifiedAvatarUserResults.from_dict(verified_avatar_user_results_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/twitter_openapi_python_generated/pyproject.toml b/twitter_openapi_python_generated/pyproject.toml
index 98adb43..91133dd 100644
--- a/twitter_openapi_python_generated/pyproject.toml
+++ b/twitter_openapi_python_generated/pyproject.toml
@@ -1,6 +1,6 @@
[project]
name = "twitter_openapi_python_generated"
-version = "0.1.1"
+version = "0.1.2"
description = "Twitter OpenAPI"
authors = [
{name = "OpenAPI Generator Community",email = "yuki@yuki0311.com"},
diff --git a/twitter_openapi_python_generated/setup.py b/twitter_openapi_python_generated/setup.py
index cf2155e..e76ecda 100644
--- a/twitter_openapi_python_generated/setup.py
+++ b/twitter_openapi_python_generated/setup.py
@@ -20,7 +20,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
NAME = "twitter_openapi_python_generated"
-VERSION = "0.1.1"
+VERSION = "0.1.2"
PYTHON_REQUIRES = ">= 3.10"
REQUIRES = [
"urllib3 >= 2.7.0, < 3.0.0",
diff --git a/twitter_openapi_python_generated/test/test_about_community_result.py b/twitter_openapi_python_generated/test/test_about_community_result.py
index 9fcf4f8..3aec19f 100644
--- a/twitter_openapi_python_generated/test/test_about_community_result.py
+++ b/twitter_openapi_python_generated/test/test_about_community_result.py
@@ -62,7 +62,7 @@ def make_instance(self, include_optional) -> AboutCommunityResult:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -97,7 +97,7 @@ def make_instance(self, include_optional) -> AboutCommunityResult:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_about_community_results.py b/twitter_openapi_python_generated/test/test_about_community_results.py
index d6fe2ff..7fb9e5a 100644
--- a/twitter_openapi_python_generated/test/test_about_community_results.py
+++ b/twitter_openapi_python_generated/test/test_about_community_results.py
@@ -63,7 +63,7 @@ def make_instance(self, include_optional) -> AboutCommunityResults:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -99,7 +99,7 @@ def make_instance(self, include_optional) -> AboutCommunityResults:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_about_community_tweet_data.py b/twitter_openapi_python_generated/test/test_about_community_tweet_data.py
index 3b8a600..81ff8f2 100644
--- a/twitter_openapi_python_generated/test/test_about_community_tweet_data.py
+++ b/twitter_openapi_python_generated/test/test_about_community_tweet_data.py
@@ -64,7 +64,7 @@ def make_instance(self, include_optional) -> AboutCommunityTweetData:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -101,7 +101,7 @@ def make_instance(self, include_optional) -> AboutCommunityTweetData:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_ad_metadata_container.py b/twitter_openapi_python_generated/test/test_ad_metadata_container.py
index 6ac9935..35da681 100644
--- a/twitter_openapi_python_generated/test/test_ad_metadata_container.py
+++ b/twitter_openapi_python_generated/test/test_ad_metadata_container.py
@@ -44,7 +44,8 @@ def make_instance(self, include_optional) -> AdMetadataContainer:
is_quick_promote = True,
render_legacy_website_card = True,
render_sales_cta_website_card = True,
- show_overlay_on_first_card = True
+ show_overlay_on_first_card = True,
+ unified_card_override = ''
)
else:
return AdMetadataContainer(
diff --git a/twitter_openapi_python_generated/test/test_authenticate_periscope_response.py b/twitter_openapi_python_generated/test/test_authenticate_periscope_response.py
new file mode 100644
index 0000000..80b7d02
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_authenticate_periscope_response.py
@@ -0,0 +1,82 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.authenticate_periscope_response import AuthenticatePeriscopeResponse
+
+class TestAuthenticatePeriscopeResponse(unittest.TestCase):
+ """AuthenticatePeriscopeResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> AuthenticatePeriscopeResponse:
+ """Test AuthenticatePeriscopeResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `AuthenticatePeriscopeResponse`
+ """
+ model = AuthenticatePeriscopeResponse()
+ if include_optional:
+ return AuthenticatePeriscopeResponse(
+ data = twitter_openapi_python_generated.models.authenticate_periscope_response_data.AuthenticatePeriscopeResponseData(
+ authenticate_periscope = '', ),
+ errors = [
+ twitter_openapi_python_generated.models.error_response.ErrorResponse(
+ code = 56,
+ extensions = twitter_openapi_python_generated.models.error_extensions.ErrorExtensions(
+ code = 56,
+ kind = '',
+ name = '',
+ retry_after = 56,
+ source = '',
+ tracing = twitter_openapi_python_generated.models.tracing.Tracing(
+ trace_id = 'bf325375e030fccb', ), ),
+ kind = '',
+ locations = [
+ twitter_openapi_python_generated.models.location.Location(
+ column = 56,
+ line = 56, )
+ ],
+ message = '',
+ name = '',
+ path = [
+ null
+ ],
+ retry_after = 56,
+ source = '',
+ tracing = twitter_openapi_python_generated.models.tracing.Tracing(
+ trace_id = 'bf325375e030fccb', ), )
+ ]
+ )
+ else:
+ return AuthenticatePeriscopeResponse(
+ data = twitter_openapi_python_generated.models.authenticate_periscope_response_data.AuthenticatePeriscopeResponseData(
+ authenticate_periscope = '', ),
+ )
+ """
+
+ def testAuthenticatePeriscopeResponse(self):
+ """Test AuthenticatePeriscopeResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_authenticate_periscope_response_data.py b/twitter_openapi_python_generated/test/test_authenticate_periscope_response_data.py
new file mode 100644
index 0000000..a8ffa66
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_authenticate_periscope_response_data.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.authenticate_periscope_response_data import AuthenticatePeriscopeResponseData
+
+class TestAuthenticatePeriscopeResponseData(unittest.TestCase):
+ """AuthenticatePeriscopeResponseData unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> AuthenticatePeriscopeResponseData:
+ """Test AuthenticatePeriscopeResponseData
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `AuthenticatePeriscopeResponseData`
+ """
+ model = AuthenticatePeriscopeResponseData()
+ if include_optional:
+ return AuthenticatePeriscopeResponseData(
+ authenticate_periscope = ''
+ )
+ else:
+ return AuthenticatePeriscopeResponseData(
+ authenticate_periscope = '',
+ )
+ """
+
+ def testAuthenticatePeriscopeResponseData(self):
+ """Test AuthenticatePeriscopeResponseData"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_birdwatch_alias_self_select_status.py b/twitter_openapi_python_generated/test/test_birdwatch_alias_self_select_status.py
new file mode 100644
index 0000000..9ba1b76
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_birdwatch_alias_self_select_status.py
@@ -0,0 +1,55 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.birdwatch_alias_self_select_status import BirdwatchAliasSelfSelectStatus
+
+class TestBirdwatchAliasSelfSelectStatus(unittest.TestCase):
+ """BirdwatchAliasSelfSelectStatus unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> BirdwatchAliasSelfSelectStatus:
+ """Test BirdwatchAliasSelfSelectStatus
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `BirdwatchAliasSelfSelectStatus`
+ """
+ model = BirdwatchAliasSelfSelectStatus()
+ if include_optional:
+ return BirdwatchAliasSelfSelectStatus(
+ can_select = True,
+ has_selected = True
+ )
+ else:
+ return BirdwatchAliasSelfSelectStatus(
+ can_select = True,
+ has_selected = True,
+ )
+ """
+
+ def testBirdwatchAliasSelfSelectStatus(self):
+ """Test BirdwatchAliasSelfSelectStatus"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_birdwatch_api.py b/twitter_openapi_python_generated/test/test_birdwatch_api.py
new file mode 100644
index 0000000..1941eb9
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_birdwatch_api.py
@@ -0,0 +1,62 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.api.birdwatch_api import BirdwatchApi
+
+
+class TestBirdwatchApi(unittest.TestCase):
+ """BirdwatchApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = BirdwatchApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_get_birdwatch_fetch_alias_self_select_status(self) -> None:
+ """Test case for get_birdwatch_fetch_alias_self_select_status
+
+ """
+ pass
+
+ def test_get_birdwatch_fetch_authenticated_user_profile(self) -> None:
+ """Test case for get_birdwatch_fetch_authenticated_user_profile
+
+ """
+ pass
+
+ def test_get_birdwatch_fetch_birdwatch_profile(self) -> None:
+ """Test case for get_birdwatch_fetch_birdwatch_profile
+
+ """
+ pass
+
+ def test_get_birdwatch_fetch_global_timeline(self) -> None:
+ """Test case for get_birdwatch_fetch_global_timeline
+
+ """
+ pass
+
+ def test_get_birdwatch_fetch_public_data(self) -> None:
+ """Test case for get_birdwatch_fetch_public_data
+
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_birdwatch_fetch_alias_self_select_status_response.py b/twitter_openapi_python_generated/test/test_birdwatch_fetch_alias_self_select_status_response.py
new file mode 100644
index 0000000..2a1a486
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_birdwatch_fetch_alias_self_select_status_response.py
@@ -0,0 +1,86 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.birdwatch_fetch_alias_self_select_status_response import BirdwatchFetchAliasSelfSelectStatusResponse
+
+class TestBirdwatchFetchAliasSelfSelectStatusResponse(unittest.TestCase):
+ """BirdwatchFetchAliasSelfSelectStatusResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> BirdwatchFetchAliasSelfSelectStatusResponse:
+ """Test BirdwatchFetchAliasSelfSelectStatusResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `BirdwatchFetchAliasSelfSelectStatusResponse`
+ """
+ model = BirdwatchFetchAliasSelfSelectStatusResponse()
+ if include_optional:
+ return BirdwatchFetchAliasSelfSelectStatusResponse(
+ data = twitter_openapi_python_generated.models.birdwatch_fetch_alias_self_select_status_response_data.BirdwatchFetchAliasSelfSelectStatusResponseData(
+ authenticated_user_birdwatch_alias_self_select_status = twitter_openapi_python_generated.models.birdwatch_alias_self_select_status.BirdwatchAliasSelfSelectStatus(
+ can_select = True,
+ has_selected = True, ), ),
+ errors = [
+ twitter_openapi_python_generated.models.error_response.ErrorResponse(
+ code = 56,
+ extensions = twitter_openapi_python_generated.models.error_extensions.ErrorExtensions(
+ code = 56,
+ kind = '',
+ name = '',
+ retry_after = 56,
+ source = '',
+ tracing = twitter_openapi_python_generated.models.tracing.Tracing(
+ trace_id = 'bf325375e030fccb', ), ),
+ kind = '',
+ locations = [
+ twitter_openapi_python_generated.models.location.Location(
+ column = 56,
+ line = 56, )
+ ],
+ message = '',
+ name = '',
+ path = [
+ null
+ ],
+ retry_after = 56,
+ source = '',
+ tracing = twitter_openapi_python_generated.models.tracing.Tracing(
+ trace_id = 'bf325375e030fccb', ), )
+ ]
+ )
+ else:
+ return BirdwatchFetchAliasSelfSelectStatusResponse(
+ data = twitter_openapi_python_generated.models.birdwatch_fetch_alias_self_select_status_response_data.BirdwatchFetchAliasSelfSelectStatusResponseData(
+ authenticated_user_birdwatch_alias_self_select_status = twitter_openapi_python_generated.models.birdwatch_alias_self_select_status.BirdwatchAliasSelfSelectStatus(
+ can_select = True,
+ has_selected = True, ), ),
+ )
+ """
+
+ def testBirdwatchFetchAliasSelfSelectStatusResponse(self):
+ """Test BirdwatchFetchAliasSelfSelectStatusResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_birdwatch_fetch_alias_self_select_status_response_data.py b/twitter_openapi_python_generated/test/test_birdwatch_fetch_alias_self_select_status_response_data.py
new file mode 100644
index 0000000..d10a214
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_birdwatch_fetch_alias_self_select_status_response_data.py
@@ -0,0 +1,57 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.birdwatch_fetch_alias_self_select_status_response_data import BirdwatchFetchAliasSelfSelectStatusResponseData
+
+class TestBirdwatchFetchAliasSelfSelectStatusResponseData(unittest.TestCase):
+ """BirdwatchFetchAliasSelfSelectStatusResponseData unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> BirdwatchFetchAliasSelfSelectStatusResponseData:
+ """Test BirdwatchFetchAliasSelfSelectStatusResponseData
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `BirdwatchFetchAliasSelfSelectStatusResponseData`
+ """
+ model = BirdwatchFetchAliasSelfSelectStatusResponseData()
+ if include_optional:
+ return BirdwatchFetchAliasSelfSelectStatusResponseData(
+ authenticated_user_birdwatch_alias_self_select_status = twitter_openapi_python_generated.models.birdwatch_alias_self_select_status.BirdwatchAliasSelfSelectStatus(
+ can_select = True,
+ has_selected = True, )
+ )
+ else:
+ return BirdwatchFetchAliasSelfSelectStatusResponseData(
+ authenticated_user_birdwatch_alias_self_select_status = twitter_openapi_python_generated.models.birdwatch_alias_self_select_status.BirdwatchAliasSelfSelectStatus(
+ can_select = True,
+ has_selected = True, ),
+ )
+ """
+
+ def testBirdwatchFetchAliasSelfSelectStatusResponseData(self):
+ """Test BirdwatchFetchAliasSelfSelectStatusResponseData"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_birdwatch_fetch_authenticated_user_profile_response.py b/twitter_openapi_python_generated/test/test_birdwatch_fetch_authenticated_user_profile_response.py
new file mode 100644
index 0000000..822ab43
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_birdwatch_fetch_authenticated_user_profile_response.py
@@ -0,0 +1,84 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.birdwatch_fetch_authenticated_user_profile_response import BirdwatchFetchAuthenticatedUserProfileResponse
+
+class TestBirdwatchFetchAuthenticatedUserProfileResponse(unittest.TestCase):
+ """BirdwatchFetchAuthenticatedUserProfileResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> BirdwatchFetchAuthenticatedUserProfileResponse:
+ """Test BirdwatchFetchAuthenticatedUserProfileResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `BirdwatchFetchAuthenticatedUserProfileResponse`
+ """
+ model = BirdwatchFetchAuthenticatedUserProfileResponse()
+ if include_optional:
+ return BirdwatchFetchAuthenticatedUserProfileResponse(
+ data = twitter_openapi_python_generated.models.birdwatch_fetch_authenticated_user_profile_response_data.BirdwatchFetchAuthenticatedUserProfileResponseData(
+ authenticated_user_birdwatch_profile = twitter_openapi_python_generated.models.birdwatch_profile.BirdwatchProfile(
+ alias = '', ), ),
+ errors = [
+ twitter_openapi_python_generated.models.error_response.ErrorResponse(
+ code = 56,
+ extensions = twitter_openapi_python_generated.models.error_extensions.ErrorExtensions(
+ code = 56,
+ kind = '',
+ name = '',
+ retry_after = 56,
+ source = '',
+ tracing = twitter_openapi_python_generated.models.tracing.Tracing(
+ trace_id = 'bf325375e030fccb', ), ),
+ kind = '',
+ locations = [
+ twitter_openapi_python_generated.models.location.Location(
+ column = 56,
+ line = 56, )
+ ],
+ message = '',
+ name = '',
+ path = [
+ null
+ ],
+ retry_after = 56,
+ source = '',
+ tracing = twitter_openapi_python_generated.models.tracing.Tracing(
+ trace_id = 'bf325375e030fccb', ), )
+ ]
+ )
+ else:
+ return BirdwatchFetchAuthenticatedUserProfileResponse(
+ data = twitter_openapi_python_generated.models.birdwatch_fetch_authenticated_user_profile_response_data.BirdwatchFetchAuthenticatedUserProfileResponseData(
+ authenticated_user_birdwatch_profile = twitter_openapi_python_generated.models.birdwatch_profile.BirdwatchProfile(
+ alias = '', ), ),
+ )
+ """
+
+ def testBirdwatchFetchAuthenticatedUserProfileResponse(self):
+ """Test BirdwatchFetchAuthenticatedUserProfileResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_birdwatch_fetch_authenticated_user_profile_response_data.py b/twitter_openapi_python_generated/test/test_birdwatch_fetch_authenticated_user_profile_response_data.py
new file mode 100644
index 0000000..319d56a
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_birdwatch_fetch_authenticated_user_profile_response_data.py
@@ -0,0 +1,55 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.birdwatch_fetch_authenticated_user_profile_response_data import BirdwatchFetchAuthenticatedUserProfileResponseData
+
+class TestBirdwatchFetchAuthenticatedUserProfileResponseData(unittest.TestCase):
+ """BirdwatchFetchAuthenticatedUserProfileResponseData unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> BirdwatchFetchAuthenticatedUserProfileResponseData:
+ """Test BirdwatchFetchAuthenticatedUserProfileResponseData
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `BirdwatchFetchAuthenticatedUserProfileResponseData`
+ """
+ model = BirdwatchFetchAuthenticatedUserProfileResponseData()
+ if include_optional:
+ return BirdwatchFetchAuthenticatedUserProfileResponseData(
+ authenticated_user_birdwatch_profile = twitter_openapi_python_generated.models.birdwatch_profile.BirdwatchProfile(
+ alias = '', )
+ )
+ else:
+ return BirdwatchFetchAuthenticatedUserProfileResponseData(
+ authenticated_user_birdwatch_profile = twitter_openapi_python_generated.models.birdwatch_profile.BirdwatchProfile(
+ alias = '', ),
+ )
+ """
+
+ def testBirdwatchFetchAuthenticatedUserProfileResponseData(self):
+ """Test BirdwatchFetchAuthenticatedUserProfileResponseData"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_birdwatch_fetch_birdwatch_profile_response.py b/twitter_openapi_python_generated/test/test_birdwatch_fetch_birdwatch_profile_response.py
new file mode 100644
index 0000000..89a69ac
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_birdwatch_fetch_birdwatch_profile_response.py
@@ -0,0 +1,84 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.birdwatch_fetch_birdwatch_profile_response import BirdwatchFetchBirdwatchProfileResponse
+
+class TestBirdwatchFetchBirdwatchProfileResponse(unittest.TestCase):
+ """BirdwatchFetchBirdwatchProfileResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> BirdwatchFetchBirdwatchProfileResponse:
+ """Test BirdwatchFetchBirdwatchProfileResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `BirdwatchFetchBirdwatchProfileResponse`
+ """
+ model = BirdwatchFetchBirdwatchProfileResponse()
+ if include_optional:
+ return BirdwatchFetchBirdwatchProfileResponse(
+ data = twitter_openapi_python_generated.models.birdwatch_fetch_birdwatch_profile_response_data.BirdwatchFetchBirdwatchProfileResponseData(
+ birdwatch_profile_by_alias = twitter_openapi_python_generated.models.birdwatch_profile.BirdwatchProfile(
+ alias = '', ), ),
+ errors = [
+ twitter_openapi_python_generated.models.error_response.ErrorResponse(
+ code = 56,
+ extensions = twitter_openapi_python_generated.models.error_extensions.ErrorExtensions(
+ code = 56,
+ kind = '',
+ name = '',
+ retry_after = 56,
+ source = '',
+ tracing = twitter_openapi_python_generated.models.tracing.Tracing(
+ trace_id = 'bf325375e030fccb', ), ),
+ kind = '',
+ locations = [
+ twitter_openapi_python_generated.models.location.Location(
+ column = 56,
+ line = 56, )
+ ],
+ message = '',
+ name = '',
+ path = [
+ null
+ ],
+ retry_after = 56,
+ source = '',
+ tracing = twitter_openapi_python_generated.models.tracing.Tracing(
+ trace_id = 'bf325375e030fccb', ), )
+ ]
+ )
+ else:
+ return BirdwatchFetchBirdwatchProfileResponse(
+ data = twitter_openapi_python_generated.models.birdwatch_fetch_birdwatch_profile_response_data.BirdwatchFetchBirdwatchProfileResponseData(
+ birdwatch_profile_by_alias = twitter_openapi_python_generated.models.birdwatch_profile.BirdwatchProfile(
+ alias = '', ), ),
+ )
+ """
+
+ def testBirdwatchFetchBirdwatchProfileResponse(self):
+ """Test BirdwatchFetchBirdwatchProfileResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_birdwatch_fetch_birdwatch_profile_response_data.py b/twitter_openapi_python_generated/test/test_birdwatch_fetch_birdwatch_profile_response_data.py
new file mode 100644
index 0000000..2165381
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_birdwatch_fetch_birdwatch_profile_response_data.py
@@ -0,0 +1,55 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.birdwatch_fetch_birdwatch_profile_response_data import BirdwatchFetchBirdwatchProfileResponseData
+
+class TestBirdwatchFetchBirdwatchProfileResponseData(unittest.TestCase):
+ """BirdwatchFetchBirdwatchProfileResponseData unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> BirdwatchFetchBirdwatchProfileResponseData:
+ """Test BirdwatchFetchBirdwatchProfileResponseData
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `BirdwatchFetchBirdwatchProfileResponseData`
+ """
+ model = BirdwatchFetchBirdwatchProfileResponseData()
+ if include_optional:
+ return BirdwatchFetchBirdwatchProfileResponseData(
+ birdwatch_profile_by_alias = twitter_openapi_python_generated.models.birdwatch_profile.BirdwatchProfile(
+ alias = '', )
+ )
+ else:
+ return BirdwatchFetchBirdwatchProfileResponseData(
+ birdwatch_profile_by_alias = twitter_openapi_python_generated.models.birdwatch_profile.BirdwatchProfile(
+ alias = '', ),
+ )
+ """
+
+ def testBirdwatchFetchBirdwatchProfileResponseData(self):
+ """Test BirdwatchFetchBirdwatchProfileResponseData"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_birdwatch_fetch_global_timeline_response.py b/twitter_openapi_python_generated/test/test_birdwatch_fetch_global_timeline_response.py
new file mode 100644
index 0000000..e016bae
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_birdwatch_fetch_global_timeline_response.py
@@ -0,0 +1,118 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.birdwatch_fetch_global_timeline_response import BirdwatchFetchGlobalTimelineResponse
+
+class TestBirdwatchFetchGlobalTimelineResponse(unittest.TestCase):
+ """BirdwatchFetchGlobalTimelineResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> BirdwatchFetchGlobalTimelineResponse:
+ """Test BirdwatchFetchGlobalTimelineResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `BirdwatchFetchGlobalTimelineResponse`
+ """
+ model = BirdwatchFetchGlobalTimelineResponse()
+ if include_optional:
+ return BirdwatchFetchGlobalTimelineResponse(
+ data = twitter_openapi_python_generated.models.birdwatch_fetch_global_timeline_response_data.BirdwatchFetchGlobalTimelineResponseData(
+ viewer = twitter_openapi_python_generated.models.birdwatch_viewer.BirdwatchViewer(
+ birdwatch_home_page = twitter_openapi_python_generated.models.birdwatch_home_page.BirdwatchHomePage(
+ body = twitter_openapi_python_generated.models.birdwatch_home_page_body.BirdwatchHomePageBody(
+ __typename = 'TimelineTweet',
+ initial_timeline = twitter_openapi_python_generated.models.birdwatch_home_timeline.BirdwatchHomeTimeline(
+ id = '',
+ label_text = '',
+ timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '', ), ),
+ timelines = [
+ twitter_openapi_python_generated.models.birdwatch_home_timeline.BirdwatchHomeTimeline(
+ id = '',
+ label_text = '',
+ timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '', ), )
+ ], ),
+ id = '',
+ scribe_config = twitter_openapi_python_generated.models.scribe_config.ScribeConfig(
+ page = '', ), ), ), ),
+ errors = [
+ twitter_openapi_python_generated.models.error_response.ErrorResponse(
+ code = 56,
+ extensions = twitter_openapi_python_generated.models.error_extensions.ErrorExtensions(
+ code = 56,
+ kind = '',
+ name = '',
+ retry_after = 56,
+ source = '',
+ tracing = twitter_openapi_python_generated.models.tracing.Tracing(
+ trace_id = 'bf325375e030fccb', ), ),
+ kind = '',
+ locations = [
+ twitter_openapi_python_generated.models.location.Location(
+ column = 56,
+ line = 56, )
+ ],
+ message = '',
+ name = '',
+ path = [
+ null
+ ],
+ retry_after = 56,
+ source = '',
+ tracing = twitter_openapi_python_generated.models.tracing.Tracing(
+ trace_id = 'bf325375e030fccb', ), )
+ ]
+ )
+ else:
+ return BirdwatchFetchGlobalTimelineResponse(
+ data = twitter_openapi_python_generated.models.birdwatch_fetch_global_timeline_response_data.BirdwatchFetchGlobalTimelineResponseData(
+ viewer = twitter_openapi_python_generated.models.birdwatch_viewer.BirdwatchViewer(
+ birdwatch_home_page = twitter_openapi_python_generated.models.birdwatch_home_page.BirdwatchHomePage(
+ body = twitter_openapi_python_generated.models.birdwatch_home_page_body.BirdwatchHomePageBody(
+ __typename = 'TimelineTweet',
+ initial_timeline = twitter_openapi_python_generated.models.birdwatch_home_timeline.BirdwatchHomeTimeline(
+ id = '',
+ label_text = '',
+ timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '', ), ),
+ timelines = [
+ twitter_openapi_python_generated.models.birdwatch_home_timeline.BirdwatchHomeTimeline(
+ id = '',
+ label_text = '',
+ timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '', ), )
+ ], ),
+ id = '',
+ scribe_config = twitter_openapi_python_generated.models.scribe_config.ScribeConfig(
+ page = '', ), ), ), ),
+ )
+ """
+
+ def testBirdwatchFetchGlobalTimelineResponse(self):
+ """Test BirdwatchFetchGlobalTimelineResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_birdwatch_fetch_global_timeline_response_data.py b/twitter_openapi_python_generated/test/test_birdwatch_fetch_global_timeline_response_data.py
new file mode 100644
index 0000000..9e92e79
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_birdwatch_fetch_global_timeline_response_data.py
@@ -0,0 +1,89 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.birdwatch_fetch_global_timeline_response_data import BirdwatchFetchGlobalTimelineResponseData
+
+class TestBirdwatchFetchGlobalTimelineResponseData(unittest.TestCase):
+ """BirdwatchFetchGlobalTimelineResponseData unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> BirdwatchFetchGlobalTimelineResponseData:
+ """Test BirdwatchFetchGlobalTimelineResponseData
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `BirdwatchFetchGlobalTimelineResponseData`
+ """
+ model = BirdwatchFetchGlobalTimelineResponseData()
+ if include_optional:
+ return BirdwatchFetchGlobalTimelineResponseData(
+ viewer = twitter_openapi_python_generated.models.birdwatch_viewer.BirdwatchViewer(
+ birdwatch_home_page = twitter_openapi_python_generated.models.birdwatch_home_page.BirdwatchHomePage(
+ body = twitter_openapi_python_generated.models.birdwatch_home_page_body.BirdwatchHomePageBody(
+ __typename = 'TimelineTweet',
+ initial_timeline = twitter_openapi_python_generated.models.birdwatch_home_timeline.BirdwatchHomeTimeline(
+ id = '',
+ label_text = '',
+ timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '', ), ),
+ timelines = [
+ twitter_openapi_python_generated.models.birdwatch_home_timeline.BirdwatchHomeTimeline(
+ id = '',
+ label_text = '',
+ timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '', ), )
+ ], ),
+ id = '',
+ scribe_config = twitter_openapi_python_generated.models.scribe_config.ScribeConfig(
+ page = '', ), ), )
+ )
+ else:
+ return BirdwatchFetchGlobalTimelineResponseData(
+ viewer = twitter_openapi_python_generated.models.birdwatch_viewer.BirdwatchViewer(
+ birdwatch_home_page = twitter_openapi_python_generated.models.birdwatch_home_page.BirdwatchHomePage(
+ body = twitter_openapi_python_generated.models.birdwatch_home_page_body.BirdwatchHomePageBody(
+ __typename = 'TimelineTweet',
+ initial_timeline = twitter_openapi_python_generated.models.birdwatch_home_timeline.BirdwatchHomeTimeline(
+ id = '',
+ label_text = '',
+ timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '', ), ),
+ timelines = [
+ twitter_openapi_python_generated.models.birdwatch_home_timeline.BirdwatchHomeTimeline(
+ id = '',
+ label_text = '',
+ timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '', ), )
+ ], ),
+ id = '',
+ scribe_config = twitter_openapi_python_generated.models.scribe_config.ScribeConfig(
+ page = '', ), ), ),
+ )
+ """
+
+ def testBirdwatchFetchGlobalTimelineResponseData(self):
+ """Test BirdwatchFetchGlobalTimelineResponseData"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_birdwatch_fetch_public_data_response.py b/twitter_openapi_python_generated/test/test_birdwatch_fetch_public_data_response.py
new file mode 100644
index 0000000..80224dd
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_birdwatch_fetch_public_data_response.py
@@ -0,0 +1,132 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.birdwatch_fetch_public_data_response import BirdwatchFetchPublicDataResponse
+
+class TestBirdwatchFetchPublicDataResponse(unittest.TestCase):
+ """BirdwatchFetchPublicDataResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> BirdwatchFetchPublicDataResponse:
+ """Test BirdwatchFetchPublicDataResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `BirdwatchFetchPublicDataResponse`
+ """
+ model = BirdwatchFetchPublicDataResponse()
+ if include_optional:
+ return BirdwatchFetchPublicDataResponse(
+ data = twitter_openapi_python_generated.models.birdwatch_fetch_public_data_response_data.BirdwatchFetchPublicDataResponseData(
+ birdwatch_latest_public_data_file_bundle = twitter_openapi_python_generated.models.birdwatch_public_data_file_bundle.BirdwatchPublicDataFileBundle(
+ bat_signals = twitter_openapi_python_generated.models.birdwatch_public_data_file.BirdwatchPublicDataFile(
+ created_at = 56,
+ urls = [
+ ''
+ ], ),
+ note_status_history = twitter_openapi_python_generated.models.birdwatch_public_data_file.BirdwatchPublicDataFile(
+ created_at = 56,
+ urls = [
+ ''
+ ], ),
+ notes = twitter_openapi_python_generated.models.birdwatch_public_data_file.BirdwatchPublicDataFile(
+ created_at = 56,
+ urls = [
+ ''
+ ], ),
+ ratings = twitter_openapi_python_generated.models.birdwatch_public_data_file.BirdwatchPublicDataFile(
+ created_at = 56,
+ urls = [
+ ''
+ ], ),
+ user_enrollment = twitter_openapi_python_generated.models.birdwatch_public_data_file.BirdwatchPublicDataFile(
+ created_at = 56,
+ urls = [
+ ''
+ ], ), ), ),
+ errors = [
+ twitter_openapi_python_generated.models.error_response.ErrorResponse(
+ code = 56,
+ extensions = twitter_openapi_python_generated.models.error_extensions.ErrorExtensions(
+ code = 56,
+ kind = '',
+ name = '',
+ retry_after = 56,
+ source = '',
+ tracing = twitter_openapi_python_generated.models.tracing.Tracing(
+ trace_id = 'bf325375e030fccb', ), ),
+ kind = '',
+ locations = [
+ twitter_openapi_python_generated.models.location.Location(
+ column = 56,
+ line = 56, )
+ ],
+ message = '',
+ name = '',
+ path = [
+ null
+ ],
+ retry_after = 56,
+ source = '',
+ tracing = twitter_openapi_python_generated.models.tracing.Tracing(
+ trace_id = 'bf325375e030fccb', ), )
+ ]
+ )
+ else:
+ return BirdwatchFetchPublicDataResponse(
+ data = twitter_openapi_python_generated.models.birdwatch_fetch_public_data_response_data.BirdwatchFetchPublicDataResponseData(
+ birdwatch_latest_public_data_file_bundle = twitter_openapi_python_generated.models.birdwatch_public_data_file_bundle.BirdwatchPublicDataFileBundle(
+ bat_signals = twitter_openapi_python_generated.models.birdwatch_public_data_file.BirdwatchPublicDataFile(
+ created_at = 56,
+ urls = [
+ ''
+ ], ),
+ note_status_history = twitter_openapi_python_generated.models.birdwatch_public_data_file.BirdwatchPublicDataFile(
+ created_at = 56,
+ urls = [
+ ''
+ ], ),
+ notes = twitter_openapi_python_generated.models.birdwatch_public_data_file.BirdwatchPublicDataFile(
+ created_at = 56,
+ urls = [
+ ''
+ ], ),
+ ratings = twitter_openapi_python_generated.models.birdwatch_public_data_file.BirdwatchPublicDataFile(
+ created_at = 56,
+ urls = [
+ ''
+ ], ),
+ user_enrollment = twitter_openapi_python_generated.models.birdwatch_public_data_file.BirdwatchPublicDataFile(
+ created_at = 56,
+ urls = [
+ ''
+ ], ), ), ),
+ )
+ """
+
+ def testBirdwatchFetchPublicDataResponse(self):
+ """Test BirdwatchFetchPublicDataResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_birdwatch_fetch_public_data_response_data.py b/twitter_openapi_python_generated/test/test_birdwatch_fetch_public_data_response_data.py
new file mode 100644
index 0000000..38958e0
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_birdwatch_fetch_public_data_response_data.py
@@ -0,0 +1,103 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.birdwatch_fetch_public_data_response_data import BirdwatchFetchPublicDataResponseData
+
+class TestBirdwatchFetchPublicDataResponseData(unittest.TestCase):
+ """BirdwatchFetchPublicDataResponseData unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> BirdwatchFetchPublicDataResponseData:
+ """Test BirdwatchFetchPublicDataResponseData
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `BirdwatchFetchPublicDataResponseData`
+ """
+ model = BirdwatchFetchPublicDataResponseData()
+ if include_optional:
+ return BirdwatchFetchPublicDataResponseData(
+ birdwatch_latest_public_data_file_bundle = twitter_openapi_python_generated.models.birdwatch_public_data_file_bundle.BirdwatchPublicDataFileBundle(
+ bat_signals = twitter_openapi_python_generated.models.birdwatch_public_data_file.BirdwatchPublicDataFile(
+ created_at = 56,
+ urls = [
+ ''
+ ], ),
+ note_status_history = twitter_openapi_python_generated.models.birdwatch_public_data_file.BirdwatchPublicDataFile(
+ created_at = 56,
+ urls = [
+ ''
+ ], ),
+ notes = twitter_openapi_python_generated.models.birdwatch_public_data_file.BirdwatchPublicDataFile(
+ created_at = 56,
+ urls = [
+ ''
+ ], ),
+ ratings = twitter_openapi_python_generated.models.birdwatch_public_data_file.BirdwatchPublicDataFile(
+ created_at = 56,
+ urls = [
+ ''
+ ], ),
+ user_enrollment = twitter_openapi_python_generated.models.birdwatch_public_data_file.BirdwatchPublicDataFile(
+ created_at = 56,
+ urls = [
+ ''
+ ], ), )
+ )
+ else:
+ return BirdwatchFetchPublicDataResponseData(
+ birdwatch_latest_public_data_file_bundle = twitter_openapi_python_generated.models.birdwatch_public_data_file_bundle.BirdwatchPublicDataFileBundle(
+ bat_signals = twitter_openapi_python_generated.models.birdwatch_public_data_file.BirdwatchPublicDataFile(
+ created_at = 56,
+ urls = [
+ ''
+ ], ),
+ note_status_history = twitter_openapi_python_generated.models.birdwatch_public_data_file.BirdwatchPublicDataFile(
+ created_at = 56,
+ urls = [
+ ''
+ ], ),
+ notes = twitter_openapi_python_generated.models.birdwatch_public_data_file.BirdwatchPublicDataFile(
+ created_at = 56,
+ urls = [
+ ''
+ ], ),
+ ratings = twitter_openapi_python_generated.models.birdwatch_public_data_file.BirdwatchPublicDataFile(
+ created_at = 56,
+ urls = [
+ ''
+ ], ),
+ user_enrollment = twitter_openapi_python_generated.models.birdwatch_public_data_file.BirdwatchPublicDataFile(
+ created_at = 56,
+ urls = [
+ ''
+ ], ), ),
+ )
+ """
+
+ def testBirdwatchFetchPublicDataResponseData(self):
+ """Test BirdwatchFetchPublicDataResponseData"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_birdwatch_home_page.py b/twitter_openapi_python_generated/test/test_birdwatch_home_page.py
new file mode 100644
index 0000000..068ad56
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_birdwatch_home_page.py
@@ -0,0 +1,85 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.birdwatch_home_page import BirdwatchHomePage
+
+class TestBirdwatchHomePage(unittest.TestCase):
+ """BirdwatchHomePage unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> BirdwatchHomePage:
+ """Test BirdwatchHomePage
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `BirdwatchHomePage`
+ """
+ model = BirdwatchHomePage()
+ if include_optional:
+ return BirdwatchHomePage(
+ body = twitter_openapi_python_generated.models.birdwatch_home_page_body.BirdwatchHomePageBody(
+ __typename = 'TimelineTweet',
+ initial_timeline = twitter_openapi_python_generated.models.birdwatch_home_timeline.BirdwatchHomeTimeline(
+ id = '',
+ label_text = '',
+ timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '', ), ),
+ timelines = [
+ twitter_openapi_python_generated.models.birdwatch_home_timeline.BirdwatchHomeTimeline(
+ id = '',
+ label_text = '',
+ timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '', ), )
+ ], ),
+ id = '',
+ scribe_config = twitter_openapi_python_generated.models.scribe_config.ScribeConfig(
+ page = '', )
+ )
+ else:
+ return BirdwatchHomePage(
+ body = twitter_openapi_python_generated.models.birdwatch_home_page_body.BirdwatchHomePageBody(
+ __typename = 'TimelineTweet',
+ initial_timeline = twitter_openapi_python_generated.models.birdwatch_home_timeline.BirdwatchHomeTimeline(
+ id = '',
+ label_text = '',
+ timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '', ), ),
+ timelines = [
+ twitter_openapi_python_generated.models.birdwatch_home_timeline.BirdwatchHomeTimeline(
+ id = '',
+ label_text = '',
+ timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '', ), )
+ ], ),
+ id = '',
+ scribe_config = twitter_openapi_python_generated.models.scribe_config.ScribeConfig(
+ page = '', ),
+ )
+ """
+
+ def testBirdwatchHomePage(self):
+ """Test BirdwatchHomePage"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_birdwatch_home_page_body.py b/twitter_openapi_python_generated/test/test_birdwatch_home_page_body.py
new file mode 100644
index 0000000..626b787
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_birdwatch_home_page_body.py
@@ -0,0 +1,77 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.birdwatch_home_page_body import BirdwatchHomePageBody
+
+class TestBirdwatchHomePageBody(unittest.TestCase):
+ """BirdwatchHomePageBody unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> BirdwatchHomePageBody:
+ """Test BirdwatchHomePageBody
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `BirdwatchHomePageBody`
+ """
+ model = BirdwatchHomePageBody()
+ if include_optional:
+ return BirdwatchHomePageBody(
+ typename = 'TimelineTweet',
+ initial_timeline = twitter_openapi_python_generated.models.birdwatch_home_timeline.BirdwatchHomeTimeline(
+ id = '',
+ label_text = '',
+ timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '', ), ),
+ timelines = [
+ twitter_openapi_python_generated.models.birdwatch_home_timeline.BirdwatchHomeTimeline(
+ id = '',
+ label_text = '',
+ timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '', ), )
+ ]
+ )
+ else:
+ return BirdwatchHomePageBody(
+ typename = 'TimelineTweet',
+ initial_timeline = twitter_openapi_python_generated.models.birdwatch_home_timeline.BirdwatchHomeTimeline(
+ id = '',
+ label_text = '',
+ timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '', ), ),
+ timelines = [
+ twitter_openapi_python_generated.models.birdwatch_home_timeline.BirdwatchHomeTimeline(
+ id = '',
+ label_text = '',
+ timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '', ), )
+ ],
+ )
+ """
+
+ def testBirdwatchHomePageBody(self):
+ """Test BirdwatchHomePageBody"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_birdwatch_home_timeline.py b/twitter_openapi_python_generated/test/test_birdwatch_home_timeline.py
new file mode 100644
index 0000000..144a2de
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_birdwatch_home_timeline.py
@@ -0,0 +1,59 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.birdwatch_home_timeline import BirdwatchHomeTimeline
+
+class TestBirdwatchHomeTimeline(unittest.TestCase):
+ """BirdwatchHomeTimeline unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> BirdwatchHomeTimeline:
+ """Test BirdwatchHomeTimeline
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `BirdwatchHomeTimeline`
+ """
+ model = BirdwatchHomeTimeline()
+ if include_optional:
+ return BirdwatchHomeTimeline(
+ id = '',
+ label_text = '',
+ timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '', )
+ )
+ else:
+ return BirdwatchHomeTimeline(
+ id = '',
+ label_text = '',
+ timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '', ),
+ )
+ """
+
+ def testBirdwatchHomeTimeline(self):
+ """Test BirdwatchHomeTimeline"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_birdwatch_profile.py b/twitter_openapi_python_generated/test/test_birdwatch_profile.py
new file mode 100644
index 0000000..4d048ee
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_birdwatch_profile.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.birdwatch_profile import BirdwatchProfile
+
+class TestBirdwatchProfile(unittest.TestCase):
+ """BirdwatchProfile unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> BirdwatchProfile:
+ """Test BirdwatchProfile
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `BirdwatchProfile`
+ """
+ model = BirdwatchProfile()
+ if include_optional:
+ return BirdwatchProfile(
+ alias = ''
+ )
+ else:
+ return BirdwatchProfile(
+ alias = '',
+ )
+ """
+
+ def testBirdwatchProfile(self):
+ """Test BirdwatchProfile"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_birdwatch_public_data_file.py b/twitter_openapi_python_generated/test/test_birdwatch_public_data_file.py
new file mode 100644
index 0000000..859a8c5
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_birdwatch_public_data_file.py
@@ -0,0 +1,59 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.birdwatch_public_data_file import BirdwatchPublicDataFile
+
+class TestBirdwatchPublicDataFile(unittest.TestCase):
+ """BirdwatchPublicDataFile unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> BirdwatchPublicDataFile:
+ """Test BirdwatchPublicDataFile
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `BirdwatchPublicDataFile`
+ """
+ model = BirdwatchPublicDataFile()
+ if include_optional:
+ return BirdwatchPublicDataFile(
+ created_at = 56,
+ urls = [
+ ''
+ ]
+ )
+ else:
+ return BirdwatchPublicDataFile(
+ created_at = 56,
+ urls = [
+ ''
+ ],
+ )
+ """
+
+ def testBirdwatchPublicDataFile(self):
+ """Test BirdwatchPublicDataFile"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_birdwatch_public_data_file_bundle.py b/twitter_openapi_python_generated/test/test_birdwatch_public_data_file_bundle.py
new file mode 100644
index 0000000..776f76b
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_birdwatch_public_data_file_bundle.py
@@ -0,0 +1,101 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.birdwatch_public_data_file_bundle import BirdwatchPublicDataFileBundle
+
+class TestBirdwatchPublicDataFileBundle(unittest.TestCase):
+ """BirdwatchPublicDataFileBundle unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> BirdwatchPublicDataFileBundle:
+ """Test BirdwatchPublicDataFileBundle
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `BirdwatchPublicDataFileBundle`
+ """
+ model = BirdwatchPublicDataFileBundle()
+ if include_optional:
+ return BirdwatchPublicDataFileBundle(
+ bat_signals = twitter_openapi_python_generated.models.birdwatch_public_data_file.BirdwatchPublicDataFile(
+ created_at = 56,
+ urls = [
+ ''
+ ], ),
+ note_status_history = twitter_openapi_python_generated.models.birdwatch_public_data_file.BirdwatchPublicDataFile(
+ created_at = 56,
+ urls = [
+ ''
+ ], ),
+ notes = twitter_openapi_python_generated.models.birdwatch_public_data_file.BirdwatchPublicDataFile(
+ created_at = 56,
+ urls = [
+ ''
+ ], ),
+ ratings = twitter_openapi_python_generated.models.birdwatch_public_data_file.BirdwatchPublicDataFile(
+ created_at = 56,
+ urls = [
+ ''
+ ], ),
+ user_enrollment = twitter_openapi_python_generated.models.birdwatch_public_data_file.BirdwatchPublicDataFile(
+ created_at = 56,
+ urls = [
+ ''
+ ], )
+ )
+ else:
+ return BirdwatchPublicDataFileBundle(
+ bat_signals = twitter_openapi_python_generated.models.birdwatch_public_data_file.BirdwatchPublicDataFile(
+ created_at = 56,
+ urls = [
+ ''
+ ], ),
+ note_status_history = twitter_openapi_python_generated.models.birdwatch_public_data_file.BirdwatchPublicDataFile(
+ created_at = 56,
+ urls = [
+ ''
+ ], ),
+ notes = twitter_openapi_python_generated.models.birdwatch_public_data_file.BirdwatchPublicDataFile(
+ created_at = 56,
+ urls = [
+ ''
+ ], ),
+ ratings = twitter_openapi_python_generated.models.birdwatch_public_data_file.BirdwatchPublicDataFile(
+ created_at = 56,
+ urls = [
+ ''
+ ], ),
+ user_enrollment = twitter_openapi_python_generated.models.birdwatch_public_data_file.BirdwatchPublicDataFile(
+ created_at = 56,
+ urls = [
+ ''
+ ], ),
+ )
+ """
+
+ def testBirdwatchPublicDataFileBundle(self):
+ """Test BirdwatchPublicDataFileBundle"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_birdwatch_viewer.py b/twitter_openapi_python_generated/test/test_birdwatch_viewer.py
new file mode 100644
index 0000000..2cb3cd4
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_birdwatch_viewer.py
@@ -0,0 +1,87 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.birdwatch_viewer import BirdwatchViewer
+
+class TestBirdwatchViewer(unittest.TestCase):
+ """BirdwatchViewer unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> BirdwatchViewer:
+ """Test BirdwatchViewer
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `BirdwatchViewer`
+ """
+ model = BirdwatchViewer()
+ if include_optional:
+ return BirdwatchViewer(
+ birdwatch_home_page = twitter_openapi_python_generated.models.birdwatch_home_page.BirdwatchHomePage(
+ body = twitter_openapi_python_generated.models.birdwatch_home_page_body.BirdwatchHomePageBody(
+ __typename = 'TimelineTweet',
+ initial_timeline = twitter_openapi_python_generated.models.birdwatch_home_timeline.BirdwatchHomeTimeline(
+ id = '',
+ label_text = '',
+ timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '', ), ),
+ timelines = [
+ twitter_openapi_python_generated.models.birdwatch_home_timeline.BirdwatchHomeTimeline(
+ id = '',
+ label_text = '',
+ timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '', ), )
+ ], ),
+ id = '',
+ scribe_config = twitter_openapi_python_generated.models.scribe_config.ScribeConfig(
+ page = '', ), )
+ )
+ else:
+ return BirdwatchViewer(
+ birdwatch_home_page = twitter_openapi_python_generated.models.birdwatch_home_page.BirdwatchHomePage(
+ body = twitter_openapi_python_generated.models.birdwatch_home_page_body.BirdwatchHomePageBody(
+ __typename = 'TimelineTweet',
+ initial_timeline = twitter_openapi_python_generated.models.birdwatch_home_timeline.BirdwatchHomeTimeline(
+ id = '',
+ label_text = '',
+ timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '', ), ),
+ timelines = [
+ twitter_openapi_python_generated.models.birdwatch_home_timeline.BirdwatchHomeTimeline(
+ id = '',
+ label_text = '',
+ timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '', ), )
+ ], ),
+ id = '',
+ scribe_config = twitter_openapi_python_generated.models.scribe_config.ScribeConfig(
+ page = '', ), ),
+ )
+ """
+
+ def testBirdwatchViewer(self):
+ """Test BirdwatchViewer"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_bookmark_search.py b/twitter_openapi_python_generated/test/test_bookmark_search.py
new file mode 100644
index 0000000..80bb3a8
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_bookmark_search.py
@@ -0,0 +1,113 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.bookmark_search import BookmarkSearch
+
+class TestBookmarkSearch(unittest.TestCase):
+ """BookmarkSearch unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> BookmarkSearch:
+ """Test BookmarkSearch
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `BookmarkSearch`
+ """
+ model = BookmarkSearch()
+ if include_optional:
+ return BookmarkSearch(
+ bookmarks_search_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '',
+ timeline = twitter_openapi_python_generated.models.timeline.Timeline(
+ instructions = [
+ null
+ ],
+ metadata = twitter_openapi_python_generated.models.timeline_metadata.TimelineMetadata(
+ reader_mode_config = twitter_openapi_python_generated.models.reader_mode_config.ReaderModeConfig(
+ is_reader_mode_available = True, ),
+ scribe_config = twitter_openapi_python_generated.models.scribe_config.ScribeConfig(
+ page = '', ), ),
+ response_objects = twitter_openapi_python_generated.models.timeline_response_objects.TimelineResponseObjects(
+ feedback_actions = [
+ twitter_openapi_python_generated.models.feedback_action_entry.FeedbackActionEntry(
+ key = '',
+ value = twitter_openapi_python_generated.models.feedback_action.FeedbackAction(
+ child_keys = [
+ ''
+ ],
+ client_event_info = twitter_openapi_python_generated.models.feedback_client_event_info.FeedbackClientEventInfo(
+ action = '',
+ component = '',
+ element = '', ),
+ confirmation = '',
+ confirmation_display_type = 'BottomSheet',
+ feedback_type = '',
+ feedback_url = '',
+ has_undo_action = True,
+ icon = 'Frown',
+ prompt = '', ), )
+ ], ), ), )
+ )
+ else:
+ return BookmarkSearch(
+ bookmarks_search_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '',
+ timeline = twitter_openapi_python_generated.models.timeline.Timeline(
+ instructions = [
+ null
+ ],
+ metadata = twitter_openapi_python_generated.models.timeline_metadata.TimelineMetadata(
+ reader_mode_config = twitter_openapi_python_generated.models.reader_mode_config.ReaderModeConfig(
+ is_reader_mode_available = True, ),
+ scribe_config = twitter_openapi_python_generated.models.scribe_config.ScribeConfig(
+ page = '', ), ),
+ response_objects = twitter_openapi_python_generated.models.timeline_response_objects.TimelineResponseObjects(
+ feedback_actions = [
+ twitter_openapi_python_generated.models.feedback_action_entry.FeedbackActionEntry(
+ key = '',
+ value = twitter_openapi_python_generated.models.feedback_action.FeedbackAction(
+ child_keys = [
+ ''
+ ],
+ client_event_info = twitter_openapi_python_generated.models.feedback_client_event_info.FeedbackClientEventInfo(
+ action = '',
+ component = '',
+ element = '', ),
+ confirmation = '',
+ confirmation_display_type = 'BottomSheet',
+ feedback_type = '',
+ feedback_url = '',
+ has_undo_action = True,
+ icon = 'Frown',
+ prompt = '', ), )
+ ], ), ), ),
+ )
+ """
+
+ def testBookmarkSearch(self):
+ """Test BookmarkSearch"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_bookmark_search_timeline_response.py b/twitter_openapi_python_generated/test/test_bookmark_search_timeline_response.py
new file mode 100644
index 0000000..a725a48
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_bookmark_search_timeline_response.py
@@ -0,0 +1,144 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.bookmark_search_timeline_response import BookmarkSearchTimelineResponse
+
+class TestBookmarkSearchTimelineResponse(unittest.TestCase):
+ """BookmarkSearchTimelineResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> BookmarkSearchTimelineResponse:
+ """Test BookmarkSearchTimelineResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `BookmarkSearchTimelineResponse`
+ """
+ model = BookmarkSearchTimelineResponse()
+ if include_optional:
+ return BookmarkSearchTimelineResponse(
+ data = twitter_openapi_python_generated.models.bookmark_search_timeline_response_data.BookmarkSearchTimelineResponseData(
+ search_by_raw_query = twitter_openapi_python_generated.models.bookmark_search.BookmarkSearch(
+ bookmarks_search_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '',
+ timeline = twitter_openapi_python_generated.models.timeline.Timeline(
+ instructions = [
+ null
+ ],
+ metadata = twitter_openapi_python_generated.models.timeline_metadata.TimelineMetadata(
+ reader_mode_config = twitter_openapi_python_generated.models.reader_mode_config.ReaderModeConfig(
+ is_reader_mode_available = True, ),
+ scribe_config = twitter_openapi_python_generated.models.scribe_config.ScribeConfig(
+ page = '', ), ),
+ response_objects = twitter_openapi_python_generated.models.timeline_response_objects.TimelineResponseObjects(
+ feedback_actions = [
+ twitter_openapi_python_generated.models.feedback_action_entry.FeedbackActionEntry(
+ key = '',
+ value = twitter_openapi_python_generated.models.feedback_action.FeedbackAction(
+ child_keys = [
+ ''
+ ],
+ client_event_info = twitter_openapi_python_generated.models.feedback_client_event_info.FeedbackClientEventInfo(
+ action = '',
+ component = '',
+ element = '', ),
+ confirmation = '',
+ confirmation_display_type = 'BottomSheet',
+ feedback_type = '',
+ feedback_url = '',
+ has_undo_action = True,
+ icon = 'Frown',
+ prompt = '', ), )
+ ], ), ), ), ), ),
+ errors = [
+ twitter_openapi_python_generated.models.error_response.ErrorResponse(
+ code = 56,
+ extensions = twitter_openapi_python_generated.models.error_extensions.ErrorExtensions(
+ code = 56,
+ kind = '',
+ name = '',
+ retry_after = 56,
+ source = '',
+ tracing = twitter_openapi_python_generated.models.tracing.Tracing(
+ trace_id = 'bf325375e030fccb', ), ),
+ kind = '',
+ locations = [
+ twitter_openapi_python_generated.models.location.Location(
+ column = 56,
+ line = 56, )
+ ],
+ message = '',
+ name = '',
+ path = [
+ null
+ ],
+ retry_after = 56,
+ source = '',
+ tracing = twitter_openapi_python_generated.models.tracing.Tracing(
+ trace_id = 'bf325375e030fccb', ), )
+ ]
+ )
+ else:
+ return BookmarkSearchTimelineResponse(
+ data = twitter_openapi_python_generated.models.bookmark_search_timeline_response_data.BookmarkSearchTimelineResponseData(
+ search_by_raw_query = twitter_openapi_python_generated.models.bookmark_search.BookmarkSearch(
+ bookmarks_search_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '',
+ timeline = twitter_openapi_python_generated.models.timeline.Timeline(
+ instructions = [
+ null
+ ],
+ metadata = twitter_openapi_python_generated.models.timeline_metadata.TimelineMetadata(
+ reader_mode_config = twitter_openapi_python_generated.models.reader_mode_config.ReaderModeConfig(
+ is_reader_mode_available = True, ),
+ scribe_config = twitter_openapi_python_generated.models.scribe_config.ScribeConfig(
+ page = '', ), ),
+ response_objects = twitter_openapi_python_generated.models.timeline_response_objects.TimelineResponseObjects(
+ feedback_actions = [
+ twitter_openapi_python_generated.models.feedback_action_entry.FeedbackActionEntry(
+ key = '',
+ value = twitter_openapi_python_generated.models.feedback_action.FeedbackAction(
+ child_keys = [
+ ''
+ ],
+ client_event_info = twitter_openapi_python_generated.models.feedback_client_event_info.FeedbackClientEventInfo(
+ action = '',
+ component = '',
+ element = '', ),
+ confirmation = '',
+ confirmation_display_type = 'BottomSheet',
+ feedback_type = '',
+ feedback_url = '',
+ has_undo_action = True,
+ icon = 'Frown',
+ prompt = '', ), )
+ ], ), ), ), ), ),
+ )
+ """
+
+ def testBookmarkSearchTimelineResponse(self):
+ """Test BookmarkSearchTimelineResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_bookmark_search_timeline_response_data.py b/twitter_openapi_python_generated/test/test_bookmark_search_timeline_response_data.py
new file mode 100644
index 0000000..baf1590
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_bookmark_search_timeline_response_data.py
@@ -0,0 +1,115 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.bookmark_search_timeline_response_data import BookmarkSearchTimelineResponseData
+
+class TestBookmarkSearchTimelineResponseData(unittest.TestCase):
+ """BookmarkSearchTimelineResponseData unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> BookmarkSearchTimelineResponseData:
+ """Test BookmarkSearchTimelineResponseData
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `BookmarkSearchTimelineResponseData`
+ """
+ model = BookmarkSearchTimelineResponseData()
+ if include_optional:
+ return BookmarkSearchTimelineResponseData(
+ search_by_raw_query = twitter_openapi_python_generated.models.bookmark_search.BookmarkSearch(
+ bookmarks_search_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '',
+ timeline = twitter_openapi_python_generated.models.timeline.Timeline(
+ instructions = [
+ null
+ ],
+ metadata = twitter_openapi_python_generated.models.timeline_metadata.TimelineMetadata(
+ reader_mode_config = twitter_openapi_python_generated.models.reader_mode_config.ReaderModeConfig(
+ is_reader_mode_available = True, ),
+ scribe_config = twitter_openapi_python_generated.models.scribe_config.ScribeConfig(
+ page = '', ), ),
+ response_objects = twitter_openapi_python_generated.models.timeline_response_objects.TimelineResponseObjects(
+ feedback_actions = [
+ twitter_openapi_python_generated.models.feedback_action_entry.FeedbackActionEntry(
+ key = '',
+ value = twitter_openapi_python_generated.models.feedback_action.FeedbackAction(
+ child_keys = [
+ ''
+ ],
+ client_event_info = twitter_openapi_python_generated.models.feedback_client_event_info.FeedbackClientEventInfo(
+ action = '',
+ component = '',
+ element = '', ),
+ confirmation = '',
+ confirmation_display_type = 'BottomSheet',
+ feedback_type = '',
+ feedback_url = '',
+ has_undo_action = True,
+ icon = 'Frown',
+ prompt = '', ), )
+ ], ), ), ), )
+ )
+ else:
+ return BookmarkSearchTimelineResponseData(
+ search_by_raw_query = twitter_openapi_python_generated.models.bookmark_search.BookmarkSearch(
+ bookmarks_search_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '',
+ timeline = twitter_openapi_python_generated.models.timeline.Timeline(
+ instructions = [
+ null
+ ],
+ metadata = twitter_openapi_python_generated.models.timeline_metadata.TimelineMetadata(
+ reader_mode_config = twitter_openapi_python_generated.models.reader_mode_config.ReaderModeConfig(
+ is_reader_mode_available = True, ),
+ scribe_config = twitter_openapi_python_generated.models.scribe_config.ScribeConfig(
+ page = '', ), ),
+ response_objects = twitter_openapi_python_generated.models.timeline_response_objects.TimelineResponseObjects(
+ feedback_actions = [
+ twitter_openapi_python_generated.models.feedback_action_entry.FeedbackActionEntry(
+ key = '',
+ value = twitter_openapi_python_generated.models.feedback_action.FeedbackAction(
+ child_keys = [
+ ''
+ ],
+ client_event_info = twitter_openapi_python_generated.models.feedback_client_event_info.FeedbackClientEventInfo(
+ action = '',
+ component = '',
+ element = '', ),
+ confirmation = '',
+ confirmation_display_type = 'BottomSheet',
+ feedback_type = '',
+ feedback_url = '',
+ has_undo_action = True,
+ icon = 'Frown',
+ prompt = '', ), )
+ ], ), ), ), ),
+ )
+ """
+
+ def testBookmarkSearchTimelineResponseData(self):
+ """Test BookmarkSearchTimelineResponseData"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_bookmarks_response.py b/twitter_openapi_python_generated/test/test_bookmarks_response.py
index a3e887c..a258b7c 100644
--- a/twitter_openapi_python_generated/test/test_bookmarks_response.py
+++ b/twitter_openapi_python_generated/test/test_bookmarks_response.py
@@ -61,7 +61,7 @@ def make_instance(self, include_optional) -> BookmarksResponse:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_bookmarks_response_data.py b/twitter_openapi_python_generated/test/test_bookmarks_response_data.py
index fd04fa3..c02d5da 100644
--- a/twitter_openapi_python_generated/test/test_bookmarks_response_data.py
+++ b/twitter_openapi_python_generated/test/test_bookmarks_response_data.py
@@ -60,7 +60,7 @@ def make_instance(self, include_optional) -> BookmarksResponseData:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -93,7 +93,7 @@ def make_instance(self, include_optional) -> BookmarksResponseData:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_bookmarks_timeline.py b/twitter_openapi_python_generated/test/test_bookmarks_timeline.py
index 8fa93d8..84c0989 100644
--- a/twitter_openapi_python_generated/test/test_bookmarks_timeline.py
+++ b/twitter_openapi_python_generated/test/test_bookmarks_timeline.py
@@ -59,7 +59,7 @@ def make_instance(self, include_optional) -> BookmarksTimeline:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -91,7 +91,7 @@ def make_instance(self, include_optional) -> BookmarksTimeline:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_client_event_info.py b/twitter_openapi_python_generated/test/test_client_event_info.py
index a9c1bcb..0fb78b0 100644
--- a/twitter_openapi_python_generated/test/test_client_event_info.py
+++ b/twitter_openapi_python_generated/test/test_client_event_info.py
@@ -40,6 +40,9 @@ def make_instance(self, include_optional) -> ClientEventInfo:
details = twitter_openapi_python_generated.models.client_event_info_details.ClientEventInfoDetails(
conversation_details = twitter_openapi_python_generated.models.conversation_details.ConversationDetails(
conversation_section = 'HighQuality', ),
+ notification_details = twitter_openapi_python_generated.models.notification_details.NotificationDetails(
+ impression_id = '',
+ metadata = '', ),
timelines_details = twitter_openapi_python_generated.models.timelines_details.TimelinesDetails(
controller_data = '',
injection_type = '',
diff --git a/twitter_openapi_python_generated/test/test_client_event_info_details.py b/twitter_openapi_python_generated/test/test_client_event_info_details.py
index 535f99d..aceb475 100644
--- a/twitter_openapi_python_generated/test/test_client_event_info_details.py
+++ b/twitter_openapi_python_generated/test/test_client_event_info_details.py
@@ -38,6 +38,9 @@ def make_instance(self, include_optional) -> ClientEventInfoDetails:
return ClientEventInfoDetails(
conversation_details = twitter_openapi_python_generated.models.conversation_details.ConversationDetails(
conversation_section = 'HighQuality', ),
+ notification_details = twitter_openapi_python_generated.models.notification_details.NotificationDetails(
+ impression_id = '',
+ metadata = '', ),
timelines_details = twitter_openapi_python_generated.models.timelines_details.TimelinesDetails(
controller_data = '',
injection_type = '',
@@ -45,10 +48,6 @@ def make_instance(self, include_optional) -> ClientEventInfoDetails:
)
else:
return ClientEventInfoDetails(
- timelines_details = twitter_openapi_python_generated.models.timelines_details.TimelinesDetails(
- controller_data = '',
- injection_type = '',
- source_data = '', ),
)
"""
diff --git a/twitter_openapi_python_generated/test/test_communities_fetch_one_query_response.py b/twitter_openapi_python_generated/test/test_communities_fetch_one_query_response.py
new file mode 100644
index 0000000..3b2c997
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_communities_fetch_one_query_response.py
@@ -0,0 +1,294 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.communities_fetch_one_query_response import CommunitiesFetchOneQueryResponse
+
+class TestCommunitiesFetchOneQueryResponse(unittest.TestCase):
+ """CommunitiesFetchOneQueryResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CommunitiesFetchOneQueryResponse:
+ """Test CommunitiesFetchOneQueryResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CommunitiesFetchOneQueryResponse`
+ """
+ model = CommunitiesFetchOneQueryResponse()
+ if include_optional:
+ return CommunitiesFetchOneQueryResponse(
+ data = twitter_openapi_python_generated.models.communities_fetch_one_query_response_data.CommunitiesFetchOneQueryResponseData(
+ community_results = twitter_openapi_python_generated.models.community_page_results.CommunityPageResults(
+ id = '',
+ result = twitter_openapi_python_generated.models.community_page_community.CommunityPageCommunity(
+ __typename = 'TimelineTweet',
+ actions = twitter_openapi_python_generated.models.community_page_actions.CommunityPageActions(
+ delete_action_result = twitter_openapi_python_generated.models.community_page_delete_action_result.CommunityPageDeleteActionResult(
+ __is_community_delete_action_result = '',
+ __typename = 'TimelineTweet',
+ reason = '', ),
+ id = '',
+ join_action_result = twitter_openapi_python_generated.models.community_page_join_action_result.CommunityPageJoinActionResult(
+ __is_community_join_action_result = '',
+ __typename = 'TimelineTweet', ),
+ leave_action_result = twitter_openapi_python_generated.models.community_page_leave_action_result.CommunityPageLeaveActionResult(
+ __is_community_leave_action_result = '',
+ __typename = 'TimelineTweet',
+ message = '',
+ reason = '', ),
+ pin_action_result = twitter_openapi_python_generated.models.community_page_pin_action_result.CommunityPagePinActionResult(
+ __is_community_tweet_pin_action_result = '',
+ __typename = 'TimelineTweet', ), ),
+ admin_results = twitter_openapi_python_generated.models.community_id_user_results.CommunityIdUserResults(
+ id = '',
+ result = null, ),
+ created_at = 56,
+ creator_results = twitter_openapi_python_generated.models.community_id_user_results.CommunityIdUserResults(
+ id = '',
+ result = null, ),
+ custom_banner_media = twitter_openapi_python_generated.models.community_banner_media.CommunityBannerMedia(
+ id = '',
+ media_info = twitter_openapi_python_generated.models.community_banner_media_info.CommunityBannerMediaInfo(
+ __typename = 'TimelineTweet',
+ color_info = twitter_openapi_python_generated.models.media_color_info.MediaColorInfo(
+ palette = [
+ twitter_openapi_python_generated.models.media_color_info_palette.MediaColorInfoPalette(
+ percentage = 1.337,
+ rgb = twitter_openapi_python_generated.models.media_color_info_palette_rgb.MediaColorInfoPaletteRGB(
+ blue = 56,
+ green = 56,
+ red = 56, ), )
+ ], ),
+ original_img_height = 56,
+ original_img_url = '',
+ original_img_width = 56,
+ salient_rect = twitter_openapi_python_generated.models.media_salient_rect.MediaSalientRect(
+ height = 56,
+ left = 56,
+ top = 56,
+ width = 56, ), ), ),
+ default_banner_media = twitter_openapi_python_generated.models.community_banner_media.CommunityBannerMedia(
+ id = '',
+ media_info = twitter_openapi_python_generated.models.community_banner_media_info.CommunityBannerMediaInfo(
+ __typename = 'TimelineTweet',
+ color_info = twitter_openapi_python_generated.models.media_color_info.MediaColorInfo(
+ palette = [
+ twitter_openapi_python_generated.models.media_color_info_palette.MediaColorInfoPalette(
+ percentage = 1.337,
+ rgb = twitter_openapi_python_generated.models.media_color_info_palette_rgb.MediaColorInfoPaletteRGB(
+ blue = 56,
+ green = 56,
+ red = 56, ), )
+ ], ),
+ original_img_height = 56,
+ original_img_url = '',
+ original_img_width = 56,
+ salient_rect = twitter_openapi_python_generated.models.media_salient_rect.MediaSalientRect(
+ height = 56,
+ left = 56,
+ top = 56,
+ width = 56, ), ), ),
+ description = '',
+ id = '',
+ id_str = '4',
+ invites_policy = '',
+ invites_result = twitter_openapi_python_generated.models.community_page_invites_result.CommunityPageInvitesResult(
+ __is_community_invites_result = '',
+ __typename = 'TimelineTweet',
+ message = '',
+ reason = '', ),
+ is_nsfw = True,
+ is_pinned = True,
+ join_policy = '',
+ join_requests_result = twitter_openapi_python_generated.models.community_join_requests_result.CommunityJoinRequestsResult(
+ __typename = 'TimelineTweet', ),
+ member_count = 56,
+ members_facepile_results = [
+ twitter_openapi_python_generated.models.community_id_user_results.CommunityIdUserResults(
+ id = '',
+ result = null, )
+ ],
+ moderator_count = 56,
+ name = '',
+ role = '',
+ rules = [
+ twitter_openapi_python_generated.models.community_relay_rule.CommunityRelayRule(
+ description = '',
+ id = '',
+ name = '',
+ rest_id = '4', )
+ ],
+ search_tags = [
+ ''
+ ],
+ viewer_relationship = twitter_openapi_python_generated.models.community_viewer_relationship.CommunityViewerRelationship(
+ id = '',
+ moderation_state = twitter_openapi_python_generated.models.community_moderation_state.CommunityModerationState(
+ __typename = 'TimelineTweet', ), ), ), ), ),
+ errors = [
+ twitter_openapi_python_generated.models.error_response.ErrorResponse(
+ code = 56,
+ extensions = twitter_openapi_python_generated.models.error_extensions.ErrorExtensions(
+ code = 56,
+ kind = '',
+ name = '',
+ retry_after = 56,
+ source = '',
+ tracing = twitter_openapi_python_generated.models.tracing.Tracing(
+ trace_id = 'bf325375e030fccb', ), ),
+ kind = '',
+ locations = [
+ twitter_openapi_python_generated.models.location.Location(
+ column = 56,
+ line = 56, )
+ ],
+ message = '',
+ name = '',
+ path = [
+ null
+ ],
+ retry_after = 56,
+ source = '',
+ tracing = twitter_openapi_python_generated.models.tracing.Tracing(
+ trace_id = 'bf325375e030fccb', ), )
+ ]
+ )
+ else:
+ return CommunitiesFetchOneQueryResponse(
+ data = twitter_openapi_python_generated.models.communities_fetch_one_query_response_data.CommunitiesFetchOneQueryResponseData(
+ community_results = twitter_openapi_python_generated.models.community_page_results.CommunityPageResults(
+ id = '',
+ result = twitter_openapi_python_generated.models.community_page_community.CommunityPageCommunity(
+ __typename = 'TimelineTweet',
+ actions = twitter_openapi_python_generated.models.community_page_actions.CommunityPageActions(
+ delete_action_result = twitter_openapi_python_generated.models.community_page_delete_action_result.CommunityPageDeleteActionResult(
+ __is_community_delete_action_result = '',
+ __typename = 'TimelineTweet',
+ reason = '', ),
+ id = '',
+ join_action_result = twitter_openapi_python_generated.models.community_page_join_action_result.CommunityPageJoinActionResult(
+ __is_community_join_action_result = '',
+ __typename = 'TimelineTweet', ),
+ leave_action_result = twitter_openapi_python_generated.models.community_page_leave_action_result.CommunityPageLeaveActionResult(
+ __is_community_leave_action_result = '',
+ __typename = 'TimelineTweet',
+ message = '',
+ reason = '', ),
+ pin_action_result = twitter_openapi_python_generated.models.community_page_pin_action_result.CommunityPagePinActionResult(
+ __is_community_tweet_pin_action_result = '',
+ __typename = 'TimelineTweet', ), ),
+ admin_results = twitter_openapi_python_generated.models.community_id_user_results.CommunityIdUserResults(
+ id = '',
+ result = null, ),
+ created_at = 56,
+ creator_results = twitter_openapi_python_generated.models.community_id_user_results.CommunityIdUserResults(
+ id = '',
+ result = null, ),
+ custom_banner_media = twitter_openapi_python_generated.models.community_banner_media.CommunityBannerMedia(
+ id = '',
+ media_info = twitter_openapi_python_generated.models.community_banner_media_info.CommunityBannerMediaInfo(
+ __typename = 'TimelineTweet',
+ color_info = twitter_openapi_python_generated.models.media_color_info.MediaColorInfo(
+ palette = [
+ twitter_openapi_python_generated.models.media_color_info_palette.MediaColorInfoPalette(
+ percentage = 1.337,
+ rgb = twitter_openapi_python_generated.models.media_color_info_palette_rgb.MediaColorInfoPaletteRGB(
+ blue = 56,
+ green = 56,
+ red = 56, ), )
+ ], ),
+ original_img_height = 56,
+ original_img_url = '',
+ original_img_width = 56,
+ salient_rect = twitter_openapi_python_generated.models.media_salient_rect.MediaSalientRect(
+ height = 56,
+ left = 56,
+ top = 56,
+ width = 56, ), ), ),
+ default_banner_media = twitter_openapi_python_generated.models.community_banner_media.CommunityBannerMedia(
+ id = '',
+ media_info = twitter_openapi_python_generated.models.community_banner_media_info.CommunityBannerMediaInfo(
+ __typename = 'TimelineTweet',
+ color_info = twitter_openapi_python_generated.models.media_color_info.MediaColorInfo(
+ palette = [
+ twitter_openapi_python_generated.models.media_color_info_palette.MediaColorInfoPalette(
+ percentage = 1.337,
+ rgb = twitter_openapi_python_generated.models.media_color_info_palette_rgb.MediaColorInfoPaletteRGB(
+ blue = 56,
+ green = 56,
+ red = 56, ), )
+ ], ),
+ original_img_height = 56,
+ original_img_url = '',
+ original_img_width = 56,
+ salient_rect = twitter_openapi_python_generated.models.media_salient_rect.MediaSalientRect(
+ height = 56,
+ left = 56,
+ top = 56,
+ width = 56, ), ), ),
+ description = '',
+ id = '',
+ id_str = '4',
+ invites_policy = '',
+ invites_result = twitter_openapi_python_generated.models.community_page_invites_result.CommunityPageInvitesResult(
+ __is_community_invites_result = '',
+ __typename = 'TimelineTweet',
+ message = '',
+ reason = '', ),
+ is_nsfw = True,
+ is_pinned = True,
+ join_policy = '',
+ join_requests_result = twitter_openapi_python_generated.models.community_join_requests_result.CommunityJoinRequestsResult(
+ __typename = 'TimelineTweet', ),
+ member_count = 56,
+ members_facepile_results = [
+ twitter_openapi_python_generated.models.community_id_user_results.CommunityIdUserResults(
+ id = '',
+ result = null, )
+ ],
+ moderator_count = 56,
+ name = '',
+ role = '',
+ rules = [
+ twitter_openapi_python_generated.models.community_relay_rule.CommunityRelayRule(
+ description = '',
+ id = '',
+ name = '',
+ rest_id = '4', )
+ ],
+ search_tags = [
+ ''
+ ],
+ viewer_relationship = twitter_openapi_python_generated.models.community_viewer_relationship.CommunityViewerRelationship(
+ id = '',
+ moderation_state = twitter_openapi_python_generated.models.community_moderation_state.CommunityModerationState(
+ __typename = 'TimelineTweet', ), ), ), ), ),
+ )
+ """
+
+ def testCommunitiesFetchOneQueryResponse(self):
+ """Test CommunitiesFetchOneQueryResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_communities_fetch_one_query_response_data.py b/twitter_openapi_python_generated/test/test_communities_fetch_one_query_response_data.py
new file mode 100644
index 0000000..8394471
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_communities_fetch_one_query_response_data.py
@@ -0,0 +1,265 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.communities_fetch_one_query_response_data import CommunitiesFetchOneQueryResponseData
+
+class TestCommunitiesFetchOneQueryResponseData(unittest.TestCase):
+ """CommunitiesFetchOneQueryResponseData unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CommunitiesFetchOneQueryResponseData:
+ """Test CommunitiesFetchOneQueryResponseData
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CommunitiesFetchOneQueryResponseData`
+ """
+ model = CommunitiesFetchOneQueryResponseData()
+ if include_optional:
+ return CommunitiesFetchOneQueryResponseData(
+ community_results = twitter_openapi_python_generated.models.community_page_results.CommunityPageResults(
+ id = '',
+ result = twitter_openapi_python_generated.models.community_page_community.CommunityPageCommunity(
+ __typename = 'TimelineTweet',
+ actions = twitter_openapi_python_generated.models.community_page_actions.CommunityPageActions(
+ delete_action_result = twitter_openapi_python_generated.models.community_page_delete_action_result.CommunityPageDeleteActionResult(
+ __is_community_delete_action_result = '',
+ __typename = 'TimelineTweet',
+ reason = '', ),
+ id = '',
+ join_action_result = twitter_openapi_python_generated.models.community_page_join_action_result.CommunityPageJoinActionResult(
+ __is_community_join_action_result = '',
+ __typename = 'TimelineTweet', ),
+ leave_action_result = twitter_openapi_python_generated.models.community_page_leave_action_result.CommunityPageLeaveActionResult(
+ __is_community_leave_action_result = '',
+ __typename = 'TimelineTweet',
+ message = '',
+ reason = '', ),
+ pin_action_result = twitter_openapi_python_generated.models.community_page_pin_action_result.CommunityPagePinActionResult(
+ __is_community_tweet_pin_action_result = '',
+ __typename = 'TimelineTweet', ), ),
+ admin_results = twitter_openapi_python_generated.models.community_id_user_results.CommunityIdUserResults(
+ id = '',
+ result = null, ),
+ created_at = 56,
+ creator_results = twitter_openapi_python_generated.models.community_id_user_results.CommunityIdUserResults(
+ id = '',
+ result = null, ),
+ custom_banner_media = twitter_openapi_python_generated.models.community_banner_media.CommunityBannerMedia(
+ id = '',
+ media_info = twitter_openapi_python_generated.models.community_banner_media_info.CommunityBannerMediaInfo(
+ __typename = 'TimelineTweet',
+ color_info = twitter_openapi_python_generated.models.media_color_info.MediaColorInfo(
+ palette = [
+ twitter_openapi_python_generated.models.media_color_info_palette.MediaColorInfoPalette(
+ percentage = 1.337,
+ rgb = twitter_openapi_python_generated.models.media_color_info_palette_rgb.MediaColorInfoPaletteRGB(
+ blue = 56,
+ green = 56,
+ red = 56, ), )
+ ], ),
+ original_img_height = 56,
+ original_img_url = '',
+ original_img_width = 56,
+ salient_rect = twitter_openapi_python_generated.models.media_salient_rect.MediaSalientRect(
+ height = 56,
+ left = 56,
+ top = 56,
+ width = 56, ), ), ),
+ default_banner_media = twitter_openapi_python_generated.models.community_banner_media.CommunityBannerMedia(
+ id = '',
+ media_info = twitter_openapi_python_generated.models.community_banner_media_info.CommunityBannerMediaInfo(
+ __typename = 'TimelineTweet',
+ color_info = twitter_openapi_python_generated.models.media_color_info.MediaColorInfo(
+ palette = [
+ twitter_openapi_python_generated.models.media_color_info_palette.MediaColorInfoPalette(
+ percentage = 1.337,
+ rgb = twitter_openapi_python_generated.models.media_color_info_palette_rgb.MediaColorInfoPaletteRGB(
+ blue = 56,
+ green = 56,
+ red = 56, ), )
+ ], ),
+ original_img_height = 56,
+ original_img_url = '',
+ original_img_width = 56,
+ salient_rect = twitter_openapi_python_generated.models.media_salient_rect.MediaSalientRect(
+ height = 56,
+ left = 56,
+ top = 56,
+ width = 56, ), ), ),
+ description = '',
+ id = '',
+ id_str = '4',
+ invites_policy = '',
+ invites_result = twitter_openapi_python_generated.models.community_page_invites_result.CommunityPageInvitesResult(
+ __is_community_invites_result = '',
+ __typename = 'TimelineTweet',
+ message = '',
+ reason = '', ),
+ is_nsfw = True,
+ is_pinned = True,
+ join_policy = '',
+ join_requests_result = twitter_openapi_python_generated.models.community_join_requests_result.CommunityJoinRequestsResult(
+ __typename = 'TimelineTweet', ),
+ member_count = 56,
+ members_facepile_results = [
+ twitter_openapi_python_generated.models.community_id_user_results.CommunityIdUserResults(
+ id = '',
+ result = null, )
+ ],
+ moderator_count = 56,
+ name = '',
+ role = '',
+ rules = [
+ twitter_openapi_python_generated.models.community_relay_rule.CommunityRelayRule(
+ description = '',
+ id = '',
+ name = '',
+ rest_id = '4', )
+ ],
+ search_tags = [
+ ''
+ ],
+ viewer_relationship = twitter_openapi_python_generated.models.community_viewer_relationship.CommunityViewerRelationship(
+ id = '',
+ moderation_state = twitter_openapi_python_generated.models.community_moderation_state.CommunityModerationState(
+ __typename = 'TimelineTweet', ), ), ), )
+ )
+ else:
+ return CommunitiesFetchOneQueryResponseData(
+ community_results = twitter_openapi_python_generated.models.community_page_results.CommunityPageResults(
+ id = '',
+ result = twitter_openapi_python_generated.models.community_page_community.CommunityPageCommunity(
+ __typename = 'TimelineTweet',
+ actions = twitter_openapi_python_generated.models.community_page_actions.CommunityPageActions(
+ delete_action_result = twitter_openapi_python_generated.models.community_page_delete_action_result.CommunityPageDeleteActionResult(
+ __is_community_delete_action_result = '',
+ __typename = 'TimelineTweet',
+ reason = '', ),
+ id = '',
+ join_action_result = twitter_openapi_python_generated.models.community_page_join_action_result.CommunityPageJoinActionResult(
+ __is_community_join_action_result = '',
+ __typename = 'TimelineTweet', ),
+ leave_action_result = twitter_openapi_python_generated.models.community_page_leave_action_result.CommunityPageLeaveActionResult(
+ __is_community_leave_action_result = '',
+ __typename = 'TimelineTweet',
+ message = '',
+ reason = '', ),
+ pin_action_result = twitter_openapi_python_generated.models.community_page_pin_action_result.CommunityPagePinActionResult(
+ __is_community_tweet_pin_action_result = '',
+ __typename = 'TimelineTweet', ), ),
+ admin_results = twitter_openapi_python_generated.models.community_id_user_results.CommunityIdUserResults(
+ id = '',
+ result = null, ),
+ created_at = 56,
+ creator_results = twitter_openapi_python_generated.models.community_id_user_results.CommunityIdUserResults(
+ id = '',
+ result = null, ),
+ custom_banner_media = twitter_openapi_python_generated.models.community_banner_media.CommunityBannerMedia(
+ id = '',
+ media_info = twitter_openapi_python_generated.models.community_banner_media_info.CommunityBannerMediaInfo(
+ __typename = 'TimelineTweet',
+ color_info = twitter_openapi_python_generated.models.media_color_info.MediaColorInfo(
+ palette = [
+ twitter_openapi_python_generated.models.media_color_info_palette.MediaColorInfoPalette(
+ percentage = 1.337,
+ rgb = twitter_openapi_python_generated.models.media_color_info_palette_rgb.MediaColorInfoPaletteRGB(
+ blue = 56,
+ green = 56,
+ red = 56, ), )
+ ], ),
+ original_img_height = 56,
+ original_img_url = '',
+ original_img_width = 56,
+ salient_rect = twitter_openapi_python_generated.models.media_salient_rect.MediaSalientRect(
+ height = 56,
+ left = 56,
+ top = 56,
+ width = 56, ), ), ),
+ default_banner_media = twitter_openapi_python_generated.models.community_banner_media.CommunityBannerMedia(
+ id = '',
+ media_info = twitter_openapi_python_generated.models.community_banner_media_info.CommunityBannerMediaInfo(
+ __typename = 'TimelineTweet',
+ color_info = twitter_openapi_python_generated.models.media_color_info.MediaColorInfo(
+ palette = [
+ twitter_openapi_python_generated.models.media_color_info_palette.MediaColorInfoPalette(
+ percentage = 1.337,
+ rgb = twitter_openapi_python_generated.models.media_color_info_palette_rgb.MediaColorInfoPaletteRGB(
+ blue = 56,
+ green = 56,
+ red = 56, ), )
+ ], ),
+ original_img_height = 56,
+ original_img_url = '',
+ original_img_width = 56,
+ salient_rect = twitter_openapi_python_generated.models.media_salient_rect.MediaSalientRect(
+ height = 56,
+ left = 56,
+ top = 56,
+ width = 56, ), ), ),
+ description = '',
+ id = '',
+ id_str = '4',
+ invites_policy = '',
+ invites_result = twitter_openapi_python_generated.models.community_page_invites_result.CommunityPageInvitesResult(
+ __is_community_invites_result = '',
+ __typename = 'TimelineTweet',
+ message = '',
+ reason = '', ),
+ is_nsfw = True,
+ is_pinned = True,
+ join_policy = '',
+ join_requests_result = twitter_openapi_python_generated.models.community_join_requests_result.CommunityJoinRequestsResult(
+ __typename = 'TimelineTweet', ),
+ member_count = 56,
+ members_facepile_results = [
+ twitter_openapi_python_generated.models.community_id_user_results.CommunityIdUserResults(
+ id = '',
+ result = null, )
+ ],
+ moderator_count = 56,
+ name = '',
+ role = '',
+ rules = [
+ twitter_openapi_python_generated.models.community_relay_rule.CommunityRelayRule(
+ description = '',
+ id = '',
+ name = '',
+ rest_id = '4', )
+ ],
+ search_tags = [
+ ''
+ ],
+ viewer_relationship = twitter_openapi_python_generated.models.community_viewer_relationship.CommunityViewerRelationship(
+ id = '',
+ moderation_state = twitter_openapi_python_generated.models.community_moderation_state.CommunityModerationState(
+ __typename = 'TimelineTweet', ), ), ), ),
+ )
+ """
+
+ def testCommunitiesFetchOneQueryResponseData(self):
+ """Test CommunitiesFetchOneQueryResponseData"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_communities_search_query_response.py b/twitter_openapi_python_generated/test/test_communities_search_query_response.py
new file mode 100644
index 0000000..2b73c0d
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_communities_search_query_response.py
@@ -0,0 +1,214 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.communities_search_query_response import CommunitiesSearchQueryResponse
+
+class TestCommunitiesSearchQueryResponse(unittest.TestCase):
+ """CommunitiesSearchQueryResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CommunitiesSearchQueryResponse:
+ """Test CommunitiesSearchQueryResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CommunitiesSearchQueryResponse`
+ """
+ model = CommunitiesSearchQueryResponse()
+ if include_optional:
+ return CommunitiesSearchQueryResponse(
+ data = twitter_openapi_python_generated.models.communities_search_query_response_data.CommunitiesSearchQueryResponseData(
+ communities_search_slice = twitter_openapi_python_generated.models.communities_search_slice.CommunitiesSearchSlice(
+ items_results = [
+ twitter_openapi_python_generated.models.community_search_results.CommunitySearchResults(
+ id = '',
+ result = twitter_openapi_python_generated.models.community_search_community.CommunitySearchCommunity(
+ __typename = 'TimelineTweet',
+ custom_banner_media = twitter_openapi_python_generated.models.community_banner_media.CommunityBannerMedia(
+ id = '',
+ media_info = twitter_openapi_python_generated.models.community_banner_media_info.CommunityBannerMediaInfo(
+ __typename = 'TimelineTweet',
+ color_info = twitter_openapi_python_generated.models.media_color_info.MediaColorInfo(
+ palette = [
+ twitter_openapi_python_generated.models.media_color_info_palette.MediaColorInfoPalette(
+ percentage = 1.337,
+ rgb = twitter_openapi_python_generated.models.media_color_info_palette_rgb.MediaColorInfoPaletteRGB(
+ blue = 56,
+ green = 56,
+ red = 56, ), )
+ ], ),
+ original_img_height = 56,
+ original_img_url = '',
+ original_img_width = 56,
+ salient_rect = twitter_openapi_python_generated.models.media_salient_rect.MediaSalientRect(
+ height = 56,
+ left = 56,
+ top = 56,
+ width = 56, ), ), ),
+ default_banner_media = twitter_openapi_python_generated.models.community_banner_media.CommunityBannerMedia(
+ id = '',
+ media_info = twitter_openapi_python_generated.models.community_banner_media_info.CommunityBannerMediaInfo(
+ __typename = 'TimelineTweet',
+ color_info = twitter_openapi_python_generated.models.media_color_info.MediaColorInfo(
+ palette = [
+ twitter_openapi_python_generated.models.media_color_info_palette.MediaColorInfoPalette(
+ percentage = 1.337,
+ rgb = twitter_openapi_python_generated.models.media_color_info_palette_rgb.MediaColorInfoPaletteRGB(
+ blue = 56,
+ green = 56,
+ red = 56, ), )
+ ], ),
+ original_img_height = 56,
+ original_img_url = '',
+ original_img_width = 56,
+ salient_rect = twitter_openapi_python_generated.models.media_salient_rect.MediaSalientRect(
+ height = 56,
+ left = 56,
+ top = 56,
+ width = 56, ), ), ),
+ id = '',
+ is_nsfw = True,
+ member_count = 56,
+ members_facepile_results = [
+ twitter_openapi_python_generated.models.community_facepile_user_results.CommunityFacepileUserResults(
+ id = '',
+ result = twitter_openapi_python_generated.models.community_facepile_user.CommunityFacepileUser(
+ __typename = 'TimelineTweet',
+ avatar = twitter_openapi_python_generated.models.user_avatar.UserAvatar(
+ image_url = '', ),
+ id = '', ), )
+ ],
+ name = '',
+ primary_community_topic = twitter_openapi_python_generated.models.community_primary_topic_name.CommunityPrimaryTopicName(
+ topic_name = '', ),
+ rest_id = '4', ), )
+ ],
+ slice_info = twitter_openapi_python_generated.models.slice_info.SliceInfo(
+ next_cursor = '', ), ), ),
+ errors = [
+ twitter_openapi_python_generated.models.error_response.ErrorResponse(
+ code = 56,
+ extensions = twitter_openapi_python_generated.models.error_extensions.ErrorExtensions(
+ code = 56,
+ kind = '',
+ name = '',
+ retry_after = 56,
+ source = '',
+ tracing = twitter_openapi_python_generated.models.tracing.Tracing(
+ trace_id = 'bf325375e030fccb', ), ),
+ kind = '',
+ locations = [
+ twitter_openapi_python_generated.models.location.Location(
+ column = 56,
+ line = 56, )
+ ],
+ message = '',
+ name = '',
+ path = [
+ null
+ ],
+ retry_after = 56,
+ source = '',
+ tracing = twitter_openapi_python_generated.models.tracing.Tracing(
+ trace_id = 'bf325375e030fccb', ), )
+ ]
+ )
+ else:
+ return CommunitiesSearchQueryResponse(
+ data = twitter_openapi_python_generated.models.communities_search_query_response_data.CommunitiesSearchQueryResponseData(
+ communities_search_slice = twitter_openapi_python_generated.models.communities_search_slice.CommunitiesSearchSlice(
+ items_results = [
+ twitter_openapi_python_generated.models.community_search_results.CommunitySearchResults(
+ id = '',
+ result = twitter_openapi_python_generated.models.community_search_community.CommunitySearchCommunity(
+ __typename = 'TimelineTweet',
+ custom_banner_media = twitter_openapi_python_generated.models.community_banner_media.CommunityBannerMedia(
+ id = '',
+ media_info = twitter_openapi_python_generated.models.community_banner_media_info.CommunityBannerMediaInfo(
+ __typename = 'TimelineTweet',
+ color_info = twitter_openapi_python_generated.models.media_color_info.MediaColorInfo(
+ palette = [
+ twitter_openapi_python_generated.models.media_color_info_palette.MediaColorInfoPalette(
+ percentage = 1.337,
+ rgb = twitter_openapi_python_generated.models.media_color_info_palette_rgb.MediaColorInfoPaletteRGB(
+ blue = 56,
+ green = 56,
+ red = 56, ), )
+ ], ),
+ original_img_height = 56,
+ original_img_url = '',
+ original_img_width = 56,
+ salient_rect = twitter_openapi_python_generated.models.media_salient_rect.MediaSalientRect(
+ height = 56,
+ left = 56,
+ top = 56,
+ width = 56, ), ), ),
+ default_banner_media = twitter_openapi_python_generated.models.community_banner_media.CommunityBannerMedia(
+ id = '',
+ media_info = twitter_openapi_python_generated.models.community_banner_media_info.CommunityBannerMediaInfo(
+ __typename = 'TimelineTweet',
+ color_info = twitter_openapi_python_generated.models.media_color_info.MediaColorInfo(
+ palette = [
+ twitter_openapi_python_generated.models.media_color_info_palette.MediaColorInfoPalette(
+ percentage = 1.337,
+ rgb = twitter_openapi_python_generated.models.media_color_info_palette_rgb.MediaColorInfoPaletteRGB(
+ blue = 56,
+ green = 56,
+ red = 56, ), )
+ ], ),
+ original_img_height = 56,
+ original_img_url = '',
+ original_img_width = 56,
+ salient_rect = twitter_openapi_python_generated.models.media_salient_rect.MediaSalientRect(
+ height = 56,
+ left = 56,
+ top = 56,
+ width = 56, ), ), ),
+ id = '',
+ is_nsfw = True,
+ member_count = 56,
+ members_facepile_results = [
+ twitter_openapi_python_generated.models.community_facepile_user_results.CommunityFacepileUserResults(
+ id = '',
+ result = twitter_openapi_python_generated.models.community_facepile_user.CommunityFacepileUser(
+ __typename = 'TimelineTweet',
+ avatar = twitter_openapi_python_generated.models.user_avatar.UserAvatar(
+ image_url = '', ),
+ id = '', ), )
+ ],
+ name = '',
+ primary_community_topic = twitter_openapi_python_generated.models.community_primary_topic_name.CommunityPrimaryTopicName(
+ topic_name = '', ),
+ rest_id = '4', ), )
+ ],
+ slice_info = twitter_openapi_python_generated.models.slice_info.SliceInfo(
+ next_cursor = '', ), ), ),
+ )
+ """
+
+ def testCommunitiesSearchQueryResponse(self):
+ """Test CommunitiesSearchQueryResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_communities_search_query_response_data.py b/twitter_openapi_python_generated/test/test_communities_search_query_response_data.py
new file mode 100644
index 0000000..595ff62
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_communities_search_query_response_data.py
@@ -0,0 +1,185 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.communities_search_query_response_data import CommunitiesSearchQueryResponseData
+
+class TestCommunitiesSearchQueryResponseData(unittest.TestCase):
+ """CommunitiesSearchQueryResponseData unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CommunitiesSearchQueryResponseData:
+ """Test CommunitiesSearchQueryResponseData
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CommunitiesSearchQueryResponseData`
+ """
+ model = CommunitiesSearchQueryResponseData()
+ if include_optional:
+ return CommunitiesSearchQueryResponseData(
+ communities_search_slice = twitter_openapi_python_generated.models.communities_search_slice.CommunitiesSearchSlice(
+ items_results = [
+ twitter_openapi_python_generated.models.community_search_results.CommunitySearchResults(
+ id = '',
+ result = twitter_openapi_python_generated.models.community_search_community.CommunitySearchCommunity(
+ __typename = 'TimelineTweet',
+ custom_banner_media = twitter_openapi_python_generated.models.community_banner_media.CommunityBannerMedia(
+ id = '',
+ media_info = twitter_openapi_python_generated.models.community_banner_media_info.CommunityBannerMediaInfo(
+ __typename = 'TimelineTweet',
+ color_info = twitter_openapi_python_generated.models.media_color_info.MediaColorInfo(
+ palette = [
+ twitter_openapi_python_generated.models.media_color_info_palette.MediaColorInfoPalette(
+ percentage = 1.337,
+ rgb = twitter_openapi_python_generated.models.media_color_info_palette_rgb.MediaColorInfoPaletteRGB(
+ blue = 56,
+ green = 56,
+ red = 56, ), )
+ ], ),
+ original_img_height = 56,
+ original_img_url = '',
+ original_img_width = 56,
+ salient_rect = twitter_openapi_python_generated.models.media_salient_rect.MediaSalientRect(
+ height = 56,
+ left = 56,
+ top = 56,
+ width = 56, ), ), ),
+ default_banner_media = twitter_openapi_python_generated.models.community_banner_media.CommunityBannerMedia(
+ id = '',
+ media_info = twitter_openapi_python_generated.models.community_banner_media_info.CommunityBannerMediaInfo(
+ __typename = 'TimelineTweet',
+ color_info = twitter_openapi_python_generated.models.media_color_info.MediaColorInfo(
+ palette = [
+ twitter_openapi_python_generated.models.media_color_info_palette.MediaColorInfoPalette(
+ percentage = 1.337,
+ rgb = twitter_openapi_python_generated.models.media_color_info_palette_rgb.MediaColorInfoPaletteRGB(
+ blue = 56,
+ green = 56,
+ red = 56, ), )
+ ], ),
+ original_img_height = 56,
+ original_img_url = '',
+ original_img_width = 56,
+ salient_rect = twitter_openapi_python_generated.models.media_salient_rect.MediaSalientRect(
+ height = 56,
+ left = 56,
+ top = 56,
+ width = 56, ), ), ),
+ id = '',
+ is_nsfw = True,
+ member_count = 56,
+ members_facepile_results = [
+ twitter_openapi_python_generated.models.community_facepile_user_results.CommunityFacepileUserResults(
+ id = '',
+ result = twitter_openapi_python_generated.models.community_facepile_user.CommunityFacepileUser(
+ __typename = 'TimelineTweet',
+ avatar = twitter_openapi_python_generated.models.user_avatar.UserAvatar(
+ image_url = '', ),
+ id = '', ), )
+ ],
+ name = '',
+ primary_community_topic = twitter_openapi_python_generated.models.community_primary_topic_name.CommunityPrimaryTopicName(
+ topic_name = '', ),
+ rest_id = '4', ), )
+ ],
+ slice_info = twitter_openapi_python_generated.models.slice_info.SliceInfo(
+ next_cursor = '', ), )
+ )
+ else:
+ return CommunitiesSearchQueryResponseData(
+ communities_search_slice = twitter_openapi_python_generated.models.communities_search_slice.CommunitiesSearchSlice(
+ items_results = [
+ twitter_openapi_python_generated.models.community_search_results.CommunitySearchResults(
+ id = '',
+ result = twitter_openapi_python_generated.models.community_search_community.CommunitySearchCommunity(
+ __typename = 'TimelineTweet',
+ custom_banner_media = twitter_openapi_python_generated.models.community_banner_media.CommunityBannerMedia(
+ id = '',
+ media_info = twitter_openapi_python_generated.models.community_banner_media_info.CommunityBannerMediaInfo(
+ __typename = 'TimelineTweet',
+ color_info = twitter_openapi_python_generated.models.media_color_info.MediaColorInfo(
+ palette = [
+ twitter_openapi_python_generated.models.media_color_info_palette.MediaColorInfoPalette(
+ percentage = 1.337,
+ rgb = twitter_openapi_python_generated.models.media_color_info_palette_rgb.MediaColorInfoPaletteRGB(
+ blue = 56,
+ green = 56,
+ red = 56, ), )
+ ], ),
+ original_img_height = 56,
+ original_img_url = '',
+ original_img_width = 56,
+ salient_rect = twitter_openapi_python_generated.models.media_salient_rect.MediaSalientRect(
+ height = 56,
+ left = 56,
+ top = 56,
+ width = 56, ), ), ),
+ default_banner_media = twitter_openapi_python_generated.models.community_banner_media.CommunityBannerMedia(
+ id = '',
+ media_info = twitter_openapi_python_generated.models.community_banner_media_info.CommunityBannerMediaInfo(
+ __typename = 'TimelineTweet',
+ color_info = twitter_openapi_python_generated.models.media_color_info.MediaColorInfo(
+ palette = [
+ twitter_openapi_python_generated.models.media_color_info_palette.MediaColorInfoPalette(
+ percentage = 1.337,
+ rgb = twitter_openapi_python_generated.models.media_color_info_palette_rgb.MediaColorInfoPaletteRGB(
+ blue = 56,
+ green = 56,
+ red = 56, ), )
+ ], ),
+ original_img_height = 56,
+ original_img_url = '',
+ original_img_width = 56,
+ salient_rect = twitter_openapi_python_generated.models.media_salient_rect.MediaSalientRect(
+ height = 56,
+ left = 56,
+ top = 56,
+ width = 56, ), ), ),
+ id = '',
+ is_nsfw = True,
+ member_count = 56,
+ members_facepile_results = [
+ twitter_openapi_python_generated.models.community_facepile_user_results.CommunityFacepileUserResults(
+ id = '',
+ result = twitter_openapi_python_generated.models.community_facepile_user.CommunityFacepileUser(
+ __typename = 'TimelineTweet',
+ avatar = twitter_openapi_python_generated.models.user_avatar.UserAvatar(
+ image_url = '', ),
+ id = '', ), )
+ ],
+ name = '',
+ primary_community_topic = twitter_openapi_python_generated.models.community_primary_topic_name.CommunityPrimaryTopicName(
+ topic_name = '', ),
+ rest_id = '4', ), )
+ ],
+ slice_info = twitter_openapi_python_generated.models.slice_info.SliceInfo(
+ next_cursor = '', ), ),
+ )
+ """
+
+ def testCommunitiesSearchQueryResponseData(self):
+ """Test CommunitiesSearchQueryResponseData"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_communities_search_slice.py b/twitter_openapi_python_generated/test/test_communities_search_slice.py
new file mode 100644
index 0000000..f5643b9
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_communities_search_slice.py
@@ -0,0 +1,183 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.communities_search_slice import CommunitiesSearchSlice
+
+class TestCommunitiesSearchSlice(unittest.TestCase):
+ """CommunitiesSearchSlice unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CommunitiesSearchSlice:
+ """Test CommunitiesSearchSlice
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CommunitiesSearchSlice`
+ """
+ model = CommunitiesSearchSlice()
+ if include_optional:
+ return CommunitiesSearchSlice(
+ items_results = [
+ twitter_openapi_python_generated.models.community_search_results.CommunitySearchResults(
+ id = '',
+ result = twitter_openapi_python_generated.models.community_search_community.CommunitySearchCommunity(
+ __typename = 'TimelineTweet',
+ custom_banner_media = twitter_openapi_python_generated.models.community_banner_media.CommunityBannerMedia(
+ id = '',
+ media_info = twitter_openapi_python_generated.models.community_banner_media_info.CommunityBannerMediaInfo(
+ __typename = 'TimelineTweet',
+ color_info = twitter_openapi_python_generated.models.media_color_info.MediaColorInfo(
+ palette = [
+ twitter_openapi_python_generated.models.media_color_info_palette.MediaColorInfoPalette(
+ percentage = 1.337,
+ rgb = twitter_openapi_python_generated.models.media_color_info_palette_rgb.MediaColorInfoPaletteRGB(
+ blue = 56,
+ green = 56,
+ red = 56, ), )
+ ], ),
+ original_img_height = 56,
+ original_img_url = '',
+ original_img_width = 56,
+ salient_rect = twitter_openapi_python_generated.models.media_salient_rect.MediaSalientRect(
+ height = 56,
+ left = 56,
+ top = 56,
+ width = 56, ), ), ),
+ default_banner_media = twitter_openapi_python_generated.models.community_banner_media.CommunityBannerMedia(
+ id = '',
+ media_info = twitter_openapi_python_generated.models.community_banner_media_info.CommunityBannerMediaInfo(
+ __typename = 'TimelineTweet',
+ color_info = twitter_openapi_python_generated.models.media_color_info.MediaColorInfo(
+ palette = [
+ twitter_openapi_python_generated.models.media_color_info_palette.MediaColorInfoPalette(
+ percentage = 1.337,
+ rgb = twitter_openapi_python_generated.models.media_color_info_palette_rgb.MediaColorInfoPaletteRGB(
+ blue = 56,
+ green = 56,
+ red = 56, ), )
+ ], ),
+ original_img_height = 56,
+ original_img_url = '',
+ original_img_width = 56,
+ salient_rect = twitter_openapi_python_generated.models.media_salient_rect.MediaSalientRect(
+ height = 56,
+ left = 56,
+ top = 56,
+ width = 56, ), ), ),
+ id = '',
+ is_nsfw = True,
+ member_count = 56,
+ members_facepile_results = [
+ twitter_openapi_python_generated.models.community_facepile_user_results.CommunityFacepileUserResults(
+ id = '',
+ result = twitter_openapi_python_generated.models.community_facepile_user.CommunityFacepileUser(
+ __typename = 'TimelineTweet',
+ avatar = twitter_openapi_python_generated.models.user_avatar.UserAvatar(
+ image_url = '', ),
+ id = '', ), )
+ ],
+ name = '',
+ primary_community_topic = twitter_openapi_python_generated.models.community_primary_topic_name.CommunityPrimaryTopicName(
+ topic_name = '', ),
+ rest_id = '4', ), )
+ ],
+ slice_info = twitter_openapi_python_generated.models.slice_info.SliceInfo(
+ next_cursor = '', )
+ )
+ else:
+ return CommunitiesSearchSlice(
+ items_results = [
+ twitter_openapi_python_generated.models.community_search_results.CommunitySearchResults(
+ id = '',
+ result = twitter_openapi_python_generated.models.community_search_community.CommunitySearchCommunity(
+ __typename = 'TimelineTweet',
+ custom_banner_media = twitter_openapi_python_generated.models.community_banner_media.CommunityBannerMedia(
+ id = '',
+ media_info = twitter_openapi_python_generated.models.community_banner_media_info.CommunityBannerMediaInfo(
+ __typename = 'TimelineTweet',
+ color_info = twitter_openapi_python_generated.models.media_color_info.MediaColorInfo(
+ palette = [
+ twitter_openapi_python_generated.models.media_color_info_palette.MediaColorInfoPalette(
+ percentage = 1.337,
+ rgb = twitter_openapi_python_generated.models.media_color_info_palette_rgb.MediaColorInfoPaletteRGB(
+ blue = 56,
+ green = 56,
+ red = 56, ), )
+ ], ),
+ original_img_height = 56,
+ original_img_url = '',
+ original_img_width = 56,
+ salient_rect = twitter_openapi_python_generated.models.media_salient_rect.MediaSalientRect(
+ height = 56,
+ left = 56,
+ top = 56,
+ width = 56, ), ), ),
+ default_banner_media = twitter_openapi_python_generated.models.community_banner_media.CommunityBannerMedia(
+ id = '',
+ media_info = twitter_openapi_python_generated.models.community_banner_media_info.CommunityBannerMediaInfo(
+ __typename = 'TimelineTweet',
+ color_info = twitter_openapi_python_generated.models.media_color_info.MediaColorInfo(
+ palette = [
+ twitter_openapi_python_generated.models.media_color_info_palette.MediaColorInfoPalette(
+ percentage = 1.337,
+ rgb = twitter_openapi_python_generated.models.media_color_info_palette_rgb.MediaColorInfoPaletteRGB(
+ blue = 56,
+ green = 56,
+ red = 56, ), )
+ ], ),
+ original_img_height = 56,
+ original_img_url = '',
+ original_img_width = 56,
+ salient_rect = twitter_openapi_python_generated.models.media_salient_rect.MediaSalientRect(
+ height = 56,
+ left = 56,
+ top = 56,
+ width = 56, ), ), ),
+ id = '',
+ is_nsfw = True,
+ member_count = 56,
+ members_facepile_results = [
+ twitter_openapi_python_generated.models.community_facepile_user_results.CommunityFacepileUserResults(
+ id = '',
+ result = twitter_openapi_python_generated.models.community_facepile_user.CommunityFacepileUser(
+ __typename = 'TimelineTweet',
+ avatar = twitter_openapi_python_generated.models.user_avatar.UserAvatar(
+ image_url = '', ),
+ id = '', ), )
+ ],
+ name = '',
+ primary_community_topic = twitter_openapi_python_generated.models.community_primary_topic_name.CommunityPrimaryTopicName(
+ topic_name = '', ),
+ rest_id = '4', ), )
+ ],
+ slice_info = twitter_openapi_python_generated.models.slice_info.SliceInfo(
+ next_cursor = '', ),
+ )
+ """
+
+ def testCommunitiesSearchSlice(self):
+ """Test CommunitiesSearchSlice"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_community_about_timeline_response.py b/twitter_openapi_python_generated/test/test_community_about_timeline_response.py
index 8c65a2b..31f34ac 100644
--- a/twitter_openapi_python_generated/test/test_community_about_timeline_response.py
+++ b/twitter_openapi_python_generated/test/test_community_about_timeline_response.py
@@ -65,7 +65,7 @@ def make_instance(self, include_optional) -> CommunityAboutTimelineResponse:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -130,7 +130,7 @@ def make_instance(self, include_optional) -> CommunityAboutTimelineResponse:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_community_api.py b/twitter_openapi_python_generated/test/test_community_api.py
new file mode 100644
index 0000000..5b29d47
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_community_api.py
@@ -0,0 +1,68 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.api.community_api import CommunityApi
+
+
+class TestCommunityApi(unittest.TestCase):
+ """CommunityApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = CommunityApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_get_communities_fetch_one_query(self) -> None:
+ """Test case for get_communities_fetch_one_query
+
+ """
+ pass
+
+ def test_get_communities_search_query(self) -> None:
+ """Test case for get_communities_search_query
+
+ """
+ pass
+
+ def test_get_community_query(self) -> None:
+ """Test case for get_community_query
+
+ """
+ pass
+
+ def test_get_global_communities_latest_post_search_timeline(self) -> None:
+ """Test case for get_global_communities_latest_post_search_timeline
+
+ """
+ pass
+
+ def test_get_global_communities_post_search_timeline(self) -> None:
+ """Test case for get_global_communities_post_search_timeline
+
+ """
+ pass
+
+ def test_get_topic_carousel_query(self) -> None:
+ """Test case for get_topic_carousel_query
+
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_community_discovery_timeline_response.py b/twitter_openapi_python_generated/test/test_community_discovery_timeline_response.py
index e5953c1..3f9bdca 100644
--- a/twitter_openapi_python_generated/test/test_community_discovery_timeline_response.py
+++ b/twitter_openapi_python_generated/test/test_community_discovery_timeline_response.py
@@ -63,7 +63,7 @@ def make_instance(self, include_optional) -> CommunityDiscoveryTimelineResponse:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -126,7 +126,7 @@ def make_instance(self, include_optional) -> CommunityDiscoveryTimelineResponse:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_community_discovery_timeline_response_data.py b/twitter_openapi_python_generated/test/test_community_discovery_timeline_response_data.py
index a715804..c9c6882 100644
--- a/twitter_openapi_python_generated/test/test_community_discovery_timeline_response_data.py
+++ b/twitter_openapi_python_generated/test/test_community_discovery_timeline_response_data.py
@@ -62,7 +62,7 @@ def make_instance(self, include_optional) -> CommunityDiscoveryTimelineResponseD
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -97,7 +97,7 @@ def make_instance(self, include_optional) -> CommunityDiscoveryTimelineResponseD
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_community_discovery_timeline_viewer.py b/twitter_openapi_python_generated/test/test_community_discovery_timeline_viewer.py
index f3a58c6..e5a8297 100644
--- a/twitter_openapi_python_generated/test/test_community_discovery_timeline_viewer.py
+++ b/twitter_openapi_python_generated/test/test_community_discovery_timeline_viewer.py
@@ -61,7 +61,7 @@ def make_instance(self, include_optional) -> CommunityDiscoveryTimelineViewer:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -95,7 +95,7 @@ def make_instance(self, include_optional) -> CommunityDiscoveryTimelineViewer:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_community_facepile_user.py b/twitter_openapi_python_generated/test/test_community_facepile_user.py
new file mode 100644
index 0000000..694791d
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_community_facepile_user.py
@@ -0,0 +1,59 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.community_facepile_user import CommunityFacepileUser
+
+class TestCommunityFacepileUser(unittest.TestCase):
+ """CommunityFacepileUser unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CommunityFacepileUser:
+ """Test CommunityFacepileUser
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CommunityFacepileUser`
+ """
+ model = CommunityFacepileUser()
+ if include_optional:
+ return CommunityFacepileUser(
+ typename = 'TimelineTweet',
+ avatar = twitter_openapi_python_generated.models.user_avatar.UserAvatar(
+ image_url = '', ),
+ id = ''
+ )
+ else:
+ return CommunityFacepileUser(
+ typename = 'TimelineTweet',
+ avatar = twitter_openapi_python_generated.models.user_avatar.UserAvatar(
+ image_url = '', ),
+ id = '',
+ )
+ """
+
+ def testCommunityFacepileUser(self):
+ """Test CommunityFacepileUser"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_community_facepile_user_results.py b/twitter_openapi_python_generated/test/test_community_facepile_user_results.py
new file mode 100644
index 0000000..b640b30
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_community_facepile_user_results.py
@@ -0,0 +1,63 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.community_facepile_user_results import CommunityFacepileUserResults
+
+class TestCommunityFacepileUserResults(unittest.TestCase):
+ """CommunityFacepileUserResults unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CommunityFacepileUserResults:
+ """Test CommunityFacepileUserResults
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CommunityFacepileUserResults`
+ """
+ model = CommunityFacepileUserResults()
+ if include_optional:
+ return CommunityFacepileUserResults(
+ id = '',
+ result = twitter_openapi_python_generated.models.community_facepile_user.CommunityFacepileUser(
+ __typename = 'TimelineTweet',
+ avatar = twitter_openapi_python_generated.models.user_avatar.UserAvatar(
+ image_url = '', ),
+ id = '', )
+ )
+ else:
+ return CommunityFacepileUserResults(
+ id = '',
+ result = twitter_openapi_python_generated.models.community_facepile_user.CommunityFacepileUser(
+ __typename = 'TimelineTweet',
+ avatar = twitter_openapi_python_generated.models.user_avatar.UserAvatar(
+ image_url = '', ),
+ id = '', ),
+ )
+ """
+
+ def testCommunityFacepileUserResults(self):
+ """Test CommunityFacepileUserResults"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_community_hashtag.py b/twitter_openapi_python_generated/test/test_community_hashtag.py
new file mode 100644
index 0000000..dc87ba5
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_community_hashtag.py
@@ -0,0 +1,55 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.community_hashtag import CommunityHashtag
+
+class TestCommunityHashtag(unittest.TestCase):
+ """CommunityHashtag unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CommunityHashtag:
+ """Test CommunityHashtag
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CommunityHashtag`
+ """
+ model = CommunityHashtag()
+ if include_optional:
+ return CommunityHashtag(
+ hashtag = '',
+ id = ''
+ )
+ else:
+ return CommunityHashtag(
+ hashtag = '',
+ id = '',
+ )
+ """
+
+ def testCommunityHashtag(self):
+ """Test CommunityHashtag"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_community_hashtag_slice.py b/twitter_openapi_python_generated/test/test_community_hashtag_slice.py
new file mode 100644
index 0000000..b591a5a
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_community_hashtag_slice.py
@@ -0,0 +1,63 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.community_hashtag_slice import CommunityHashtagSlice
+
+class TestCommunityHashtagSlice(unittest.TestCase):
+ """CommunityHashtagSlice unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CommunityHashtagSlice:
+ """Test CommunityHashtagSlice
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CommunityHashtagSlice`
+ """
+ model = CommunityHashtagSlice()
+ if include_optional:
+ return CommunityHashtagSlice(
+ typename = 'TimelineTweet',
+ items = [
+ twitter_openapi_python_generated.models.community_hashtag.CommunityHashtag(
+ hashtag = '',
+ id = '', )
+ ]
+ )
+ else:
+ return CommunityHashtagSlice(
+ typename = 'TimelineTweet',
+ items = [
+ twitter_openapi_python_generated.models.community_hashtag.CommunityHashtag(
+ hashtag = '',
+ id = '', )
+ ],
+ )
+ """
+
+ def testCommunityHashtagSlice(self):
+ """Test CommunityHashtagSlice"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_community_id_user_results.py b/twitter_openapi_python_generated/test/test_community_id_user_results.py
new file mode 100644
index 0000000..ecf8e85
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_community_id_user_results.py
@@ -0,0 +1,55 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.community_id_user_results import CommunityIdUserResults
+
+class TestCommunityIdUserResults(unittest.TestCase):
+ """CommunityIdUserResults unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CommunityIdUserResults:
+ """Test CommunityIdUserResults
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CommunityIdUserResults`
+ """
+ model = CommunityIdUserResults()
+ if include_optional:
+ return CommunityIdUserResults(
+ id = '',
+ result = None
+ )
+ else:
+ return CommunityIdUserResults(
+ id = '',
+ result = None,
+ )
+ """
+
+ def testCommunityIdUserResults(self):
+ """Test CommunityIdUserResults"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_community_list_members_action_result.py b/twitter_openapi_python_generated/test/test_community_list_members_action_result.py
new file mode 100644
index 0000000..624759f
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_community_list_members_action_result.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.community_list_members_action_result import CommunityListMembersActionResult
+
+class TestCommunityListMembersActionResult(unittest.TestCase):
+ """CommunityListMembersActionResult unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CommunityListMembersActionResult:
+ """Test CommunityListMembersActionResult
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CommunityListMembersActionResult`
+ """
+ model = CommunityListMembersActionResult()
+ if include_optional:
+ return CommunityListMembersActionResult(
+ typename = 'TimelineTweet'
+ )
+ else:
+ return CommunityListMembersActionResult(
+ typename = 'TimelineTweet',
+ )
+ """
+
+ def testCommunityListMembersActionResult(self):
+ """Test CommunityListMembersActionResult"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_community_media_timeline_response.py b/twitter_openapi_python_generated/test/test_community_media_timeline_response.py
index e68c233..902aae5 100644
--- a/twitter_openapi_python_generated/test/test_community_media_timeline_response.py
+++ b/twitter_openapi_python_generated/test/test_community_media_timeline_response.py
@@ -65,7 +65,7 @@ def make_instance(self, include_optional) -> CommunityMediaTimelineResponse:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -130,7 +130,7 @@ def make_instance(self, include_optional) -> CommunityMediaTimelineResponse:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_community_page_actions.py b/twitter_openapi_python_generated/test/test_community_page_actions.py
new file mode 100644
index 0000000..124eca0
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_community_page_actions.py
@@ -0,0 +1,83 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.community_page_actions import CommunityPageActions
+
+class TestCommunityPageActions(unittest.TestCase):
+ """CommunityPageActions unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CommunityPageActions:
+ """Test CommunityPageActions
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CommunityPageActions`
+ """
+ model = CommunityPageActions()
+ if include_optional:
+ return CommunityPageActions(
+ delete_action_result = twitter_openapi_python_generated.models.community_page_delete_action_result.CommunityPageDeleteActionResult(
+ __is_community_delete_action_result = '',
+ __typename = 'TimelineTweet',
+ reason = '', ),
+ id = '',
+ join_action_result = twitter_openapi_python_generated.models.community_page_join_action_result.CommunityPageJoinActionResult(
+ __is_community_join_action_result = '',
+ __typename = 'TimelineTweet', ),
+ leave_action_result = twitter_openapi_python_generated.models.community_page_leave_action_result.CommunityPageLeaveActionResult(
+ __is_community_leave_action_result = '',
+ __typename = 'TimelineTweet',
+ message = '',
+ reason = '', ),
+ pin_action_result = twitter_openapi_python_generated.models.community_page_pin_action_result.CommunityPagePinActionResult(
+ __is_community_tweet_pin_action_result = '',
+ __typename = 'TimelineTweet', )
+ )
+ else:
+ return CommunityPageActions(
+ delete_action_result = twitter_openapi_python_generated.models.community_page_delete_action_result.CommunityPageDeleteActionResult(
+ __is_community_delete_action_result = '',
+ __typename = 'TimelineTweet',
+ reason = '', ),
+ id = '',
+ join_action_result = twitter_openapi_python_generated.models.community_page_join_action_result.CommunityPageJoinActionResult(
+ __is_community_join_action_result = '',
+ __typename = 'TimelineTweet', ),
+ leave_action_result = twitter_openapi_python_generated.models.community_page_leave_action_result.CommunityPageLeaveActionResult(
+ __is_community_leave_action_result = '',
+ __typename = 'TimelineTweet',
+ message = '',
+ reason = '', ),
+ pin_action_result = twitter_openapi_python_generated.models.community_page_pin_action_result.CommunityPagePinActionResult(
+ __is_community_tweet_pin_action_result = '',
+ __typename = 'TimelineTweet', ),
+ )
+ """
+
+ def testCommunityPageActions(self):
+ """Test CommunityPageActions"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_community_page_community.py b/twitter_openapi_python_generated/test/test_community_page_community.py
new file mode 100644
index 0000000..7e503cf
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_community_page_community.py
@@ -0,0 +1,259 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.community_page_community import CommunityPageCommunity
+
+class TestCommunityPageCommunity(unittest.TestCase):
+ """CommunityPageCommunity unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CommunityPageCommunity:
+ """Test CommunityPageCommunity
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CommunityPageCommunity`
+ """
+ model = CommunityPageCommunity()
+ if include_optional:
+ return CommunityPageCommunity(
+ typename = 'TimelineTweet',
+ actions = twitter_openapi_python_generated.models.community_page_actions.CommunityPageActions(
+ delete_action_result = twitter_openapi_python_generated.models.community_page_delete_action_result.CommunityPageDeleteActionResult(
+ __is_community_delete_action_result = '',
+ __typename = 'TimelineTweet',
+ reason = '', ),
+ id = '',
+ join_action_result = twitter_openapi_python_generated.models.community_page_join_action_result.CommunityPageJoinActionResult(
+ __is_community_join_action_result = '',
+ __typename = 'TimelineTweet', ),
+ leave_action_result = twitter_openapi_python_generated.models.community_page_leave_action_result.CommunityPageLeaveActionResult(
+ __is_community_leave_action_result = '',
+ __typename = 'TimelineTweet',
+ message = '',
+ reason = '', ),
+ pin_action_result = twitter_openapi_python_generated.models.community_page_pin_action_result.CommunityPagePinActionResult(
+ __is_community_tweet_pin_action_result = '',
+ __typename = 'TimelineTweet', ), ),
+ admin_results = twitter_openapi_python_generated.models.community_id_user_results.CommunityIdUserResults(
+ id = '',
+ result = null, ),
+ created_at = 56,
+ creator_results = twitter_openapi_python_generated.models.community_id_user_results.CommunityIdUserResults(
+ id = '',
+ result = null, ),
+ custom_banner_media = twitter_openapi_python_generated.models.community_banner_media.CommunityBannerMedia(
+ id = '',
+ media_info = twitter_openapi_python_generated.models.community_banner_media_info.CommunityBannerMediaInfo(
+ __typename = 'TimelineTweet',
+ color_info = twitter_openapi_python_generated.models.media_color_info.MediaColorInfo(
+ palette = [
+ twitter_openapi_python_generated.models.media_color_info_palette.MediaColorInfoPalette(
+ percentage = 1.337,
+ rgb = twitter_openapi_python_generated.models.media_color_info_palette_rgb.MediaColorInfoPaletteRGB(
+ blue = 56,
+ green = 56,
+ red = 56, ), )
+ ], ),
+ original_img_height = 56,
+ original_img_url = '',
+ original_img_width = 56,
+ salient_rect = twitter_openapi_python_generated.models.media_salient_rect.MediaSalientRect(
+ height = 56,
+ left = 56,
+ top = 56,
+ width = 56, ), ), ),
+ default_banner_media = twitter_openapi_python_generated.models.community_banner_media.CommunityBannerMedia(
+ id = '',
+ media_info = twitter_openapi_python_generated.models.community_banner_media_info.CommunityBannerMediaInfo(
+ __typename = 'TimelineTweet',
+ color_info = twitter_openapi_python_generated.models.media_color_info.MediaColorInfo(
+ palette = [
+ twitter_openapi_python_generated.models.media_color_info_palette.MediaColorInfoPalette(
+ percentage = 1.337,
+ rgb = twitter_openapi_python_generated.models.media_color_info_palette_rgb.MediaColorInfoPaletteRGB(
+ blue = 56,
+ green = 56,
+ red = 56, ), )
+ ], ),
+ original_img_height = 56,
+ original_img_url = '',
+ original_img_width = 56,
+ salient_rect = twitter_openapi_python_generated.models.media_salient_rect.MediaSalientRect(
+ height = 56,
+ left = 56,
+ top = 56,
+ width = 56, ), ), ),
+ description = '',
+ id = '',
+ id_str = '4',
+ invites_policy = '',
+ invites_result = twitter_openapi_python_generated.models.community_page_invites_result.CommunityPageInvitesResult(
+ __is_community_invites_result = '',
+ __typename = 'TimelineTweet',
+ message = '',
+ reason = '', ),
+ is_nsfw = True,
+ is_pinned = True,
+ join_policy = '',
+ join_requests_result = twitter_openapi_python_generated.models.community_join_requests_result.CommunityJoinRequestsResult(
+ __typename = 'TimelineTweet', ),
+ member_count = 56,
+ members_facepile_results = [
+ twitter_openapi_python_generated.models.community_id_user_results.CommunityIdUserResults(
+ id = '',
+ result = null, )
+ ],
+ moderator_count = 56,
+ name = '',
+ role = '',
+ rules = [
+ twitter_openapi_python_generated.models.community_relay_rule.CommunityRelayRule(
+ description = '',
+ id = '',
+ name = '',
+ rest_id = '4', )
+ ],
+ search_tags = [
+ ''
+ ],
+ viewer_relationship = twitter_openapi_python_generated.models.community_viewer_relationship.CommunityViewerRelationship(
+ id = '',
+ moderation_state = twitter_openapi_python_generated.models.community_moderation_state.CommunityModerationState(
+ __typename = 'TimelineTweet', ), )
+ )
+ else:
+ return CommunityPageCommunity(
+ typename = 'TimelineTweet',
+ actions = twitter_openapi_python_generated.models.community_page_actions.CommunityPageActions(
+ delete_action_result = twitter_openapi_python_generated.models.community_page_delete_action_result.CommunityPageDeleteActionResult(
+ __is_community_delete_action_result = '',
+ __typename = 'TimelineTweet',
+ reason = '', ),
+ id = '',
+ join_action_result = twitter_openapi_python_generated.models.community_page_join_action_result.CommunityPageJoinActionResult(
+ __is_community_join_action_result = '',
+ __typename = 'TimelineTweet', ),
+ leave_action_result = twitter_openapi_python_generated.models.community_page_leave_action_result.CommunityPageLeaveActionResult(
+ __is_community_leave_action_result = '',
+ __typename = 'TimelineTweet',
+ message = '',
+ reason = '', ),
+ pin_action_result = twitter_openapi_python_generated.models.community_page_pin_action_result.CommunityPagePinActionResult(
+ __is_community_tweet_pin_action_result = '',
+ __typename = 'TimelineTweet', ), ),
+ admin_results = twitter_openapi_python_generated.models.community_id_user_results.CommunityIdUserResults(
+ id = '',
+ result = null, ),
+ created_at = 56,
+ creator_results = twitter_openapi_python_generated.models.community_id_user_results.CommunityIdUserResults(
+ id = '',
+ result = null, ),
+ custom_banner_media = twitter_openapi_python_generated.models.community_banner_media.CommunityBannerMedia(
+ id = '',
+ media_info = twitter_openapi_python_generated.models.community_banner_media_info.CommunityBannerMediaInfo(
+ __typename = 'TimelineTweet',
+ color_info = twitter_openapi_python_generated.models.media_color_info.MediaColorInfo(
+ palette = [
+ twitter_openapi_python_generated.models.media_color_info_palette.MediaColorInfoPalette(
+ percentage = 1.337,
+ rgb = twitter_openapi_python_generated.models.media_color_info_palette_rgb.MediaColorInfoPaletteRGB(
+ blue = 56,
+ green = 56,
+ red = 56, ), )
+ ], ),
+ original_img_height = 56,
+ original_img_url = '',
+ original_img_width = 56,
+ salient_rect = twitter_openapi_python_generated.models.media_salient_rect.MediaSalientRect(
+ height = 56,
+ left = 56,
+ top = 56,
+ width = 56, ), ), ),
+ default_banner_media = twitter_openapi_python_generated.models.community_banner_media.CommunityBannerMedia(
+ id = '',
+ media_info = twitter_openapi_python_generated.models.community_banner_media_info.CommunityBannerMediaInfo(
+ __typename = 'TimelineTweet',
+ color_info = twitter_openapi_python_generated.models.media_color_info.MediaColorInfo(
+ palette = [
+ twitter_openapi_python_generated.models.media_color_info_palette.MediaColorInfoPalette(
+ percentage = 1.337,
+ rgb = twitter_openapi_python_generated.models.media_color_info_palette_rgb.MediaColorInfoPaletteRGB(
+ blue = 56,
+ green = 56,
+ red = 56, ), )
+ ], ),
+ original_img_height = 56,
+ original_img_url = '',
+ original_img_width = 56,
+ salient_rect = twitter_openapi_python_generated.models.media_salient_rect.MediaSalientRect(
+ height = 56,
+ left = 56,
+ top = 56,
+ width = 56, ), ), ),
+ description = '',
+ id = '',
+ id_str = '4',
+ invites_policy = '',
+ invites_result = twitter_openapi_python_generated.models.community_page_invites_result.CommunityPageInvitesResult(
+ __is_community_invites_result = '',
+ __typename = 'TimelineTweet',
+ message = '',
+ reason = '', ),
+ is_nsfw = True,
+ is_pinned = True,
+ join_policy = '',
+ join_requests_result = twitter_openapi_python_generated.models.community_join_requests_result.CommunityJoinRequestsResult(
+ __typename = 'TimelineTweet', ),
+ member_count = 56,
+ members_facepile_results = [
+ twitter_openapi_python_generated.models.community_id_user_results.CommunityIdUserResults(
+ id = '',
+ result = null, )
+ ],
+ moderator_count = 56,
+ name = '',
+ role = '',
+ rules = [
+ twitter_openapi_python_generated.models.community_relay_rule.CommunityRelayRule(
+ description = '',
+ id = '',
+ name = '',
+ rest_id = '4', )
+ ],
+ search_tags = [
+ ''
+ ],
+ viewer_relationship = twitter_openapi_python_generated.models.community_viewer_relationship.CommunityViewerRelationship(
+ id = '',
+ moderation_state = twitter_openapi_python_generated.models.community_moderation_state.CommunityModerationState(
+ __typename = 'TimelineTweet', ), ),
+ )
+ """
+
+ def testCommunityPageCommunity(self):
+ """Test CommunityPageCommunity"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_community_page_delete_action_result.py b/twitter_openapi_python_generated/test/test_community_page_delete_action_result.py
new file mode 100644
index 0000000..e9fab49
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_community_page_delete_action_result.py
@@ -0,0 +1,57 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.community_page_delete_action_result import CommunityPageDeleteActionResult
+
+class TestCommunityPageDeleteActionResult(unittest.TestCase):
+ """CommunityPageDeleteActionResult unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CommunityPageDeleteActionResult:
+ """Test CommunityPageDeleteActionResult
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CommunityPageDeleteActionResult`
+ """
+ model = CommunityPageDeleteActionResult()
+ if include_optional:
+ return CommunityPageDeleteActionResult(
+ is_community_delete_action_result = '',
+ typename = 'TimelineTweet',
+ reason = ''
+ )
+ else:
+ return CommunityPageDeleteActionResult(
+ is_community_delete_action_result = '',
+ typename = 'TimelineTweet',
+ reason = '',
+ )
+ """
+
+ def testCommunityPageDeleteActionResult(self):
+ """Test CommunityPageDeleteActionResult"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_community_page_invites_result.py b/twitter_openapi_python_generated/test/test_community_page_invites_result.py
new file mode 100644
index 0000000..434b3b2
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_community_page_invites_result.py
@@ -0,0 +1,59 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.community_page_invites_result import CommunityPageInvitesResult
+
+class TestCommunityPageInvitesResult(unittest.TestCase):
+ """CommunityPageInvitesResult unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CommunityPageInvitesResult:
+ """Test CommunityPageInvitesResult
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CommunityPageInvitesResult`
+ """
+ model = CommunityPageInvitesResult()
+ if include_optional:
+ return CommunityPageInvitesResult(
+ is_community_invites_result = '',
+ typename = 'TimelineTweet',
+ message = '',
+ reason = ''
+ )
+ else:
+ return CommunityPageInvitesResult(
+ is_community_invites_result = '',
+ typename = 'TimelineTweet',
+ message = '',
+ reason = '',
+ )
+ """
+
+ def testCommunityPageInvitesResult(self):
+ """Test CommunityPageInvitesResult"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_community_page_join_action_result.py b/twitter_openapi_python_generated/test/test_community_page_join_action_result.py
new file mode 100644
index 0000000..c279fd8
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_community_page_join_action_result.py
@@ -0,0 +1,55 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.community_page_join_action_result import CommunityPageJoinActionResult
+
+class TestCommunityPageJoinActionResult(unittest.TestCase):
+ """CommunityPageJoinActionResult unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CommunityPageJoinActionResult:
+ """Test CommunityPageJoinActionResult
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CommunityPageJoinActionResult`
+ """
+ model = CommunityPageJoinActionResult()
+ if include_optional:
+ return CommunityPageJoinActionResult(
+ is_community_join_action_result = '',
+ typename = 'TimelineTweet'
+ )
+ else:
+ return CommunityPageJoinActionResult(
+ is_community_join_action_result = '',
+ typename = 'TimelineTweet',
+ )
+ """
+
+ def testCommunityPageJoinActionResult(self):
+ """Test CommunityPageJoinActionResult"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_community_page_leave_action_result.py b/twitter_openapi_python_generated/test/test_community_page_leave_action_result.py
new file mode 100644
index 0000000..d3b4fd6
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_community_page_leave_action_result.py
@@ -0,0 +1,59 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.community_page_leave_action_result import CommunityPageLeaveActionResult
+
+class TestCommunityPageLeaveActionResult(unittest.TestCase):
+ """CommunityPageLeaveActionResult unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CommunityPageLeaveActionResult:
+ """Test CommunityPageLeaveActionResult
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CommunityPageLeaveActionResult`
+ """
+ model = CommunityPageLeaveActionResult()
+ if include_optional:
+ return CommunityPageLeaveActionResult(
+ is_community_leave_action_result = '',
+ typename = 'TimelineTweet',
+ message = '',
+ reason = ''
+ )
+ else:
+ return CommunityPageLeaveActionResult(
+ is_community_leave_action_result = '',
+ typename = 'TimelineTweet',
+ message = '',
+ reason = '',
+ )
+ """
+
+ def testCommunityPageLeaveActionResult(self):
+ """Test CommunityPageLeaveActionResult"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_community_page_pin_action_result.py b/twitter_openapi_python_generated/test/test_community_page_pin_action_result.py
new file mode 100644
index 0000000..12bfaf5
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_community_page_pin_action_result.py
@@ -0,0 +1,55 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.community_page_pin_action_result import CommunityPagePinActionResult
+
+class TestCommunityPagePinActionResult(unittest.TestCase):
+ """CommunityPagePinActionResult unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CommunityPagePinActionResult:
+ """Test CommunityPagePinActionResult
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CommunityPagePinActionResult`
+ """
+ model = CommunityPagePinActionResult()
+ if include_optional:
+ return CommunityPagePinActionResult(
+ is_community_tweet_pin_action_result = '',
+ typename = 'TimelineTweet'
+ )
+ else:
+ return CommunityPagePinActionResult(
+ is_community_tweet_pin_action_result = '',
+ typename = 'TimelineTweet',
+ )
+ """
+
+ def testCommunityPagePinActionResult(self):
+ """Test CommunityPagePinActionResult"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_community_page_results.py b/twitter_openapi_python_generated/test/test_community_page_results.py
new file mode 100644
index 0000000..28aacaf
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_community_page_results.py
@@ -0,0 +1,263 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.community_page_results import CommunityPageResults
+
+class TestCommunityPageResults(unittest.TestCase):
+ """CommunityPageResults unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CommunityPageResults:
+ """Test CommunityPageResults
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CommunityPageResults`
+ """
+ model = CommunityPageResults()
+ if include_optional:
+ return CommunityPageResults(
+ id = '',
+ result = twitter_openapi_python_generated.models.community_page_community.CommunityPageCommunity(
+ __typename = 'TimelineTweet',
+ actions = twitter_openapi_python_generated.models.community_page_actions.CommunityPageActions(
+ delete_action_result = twitter_openapi_python_generated.models.community_page_delete_action_result.CommunityPageDeleteActionResult(
+ __is_community_delete_action_result = '',
+ __typename = 'TimelineTweet',
+ reason = '', ),
+ id = '',
+ join_action_result = twitter_openapi_python_generated.models.community_page_join_action_result.CommunityPageJoinActionResult(
+ __is_community_join_action_result = '',
+ __typename = 'TimelineTweet', ),
+ leave_action_result = twitter_openapi_python_generated.models.community_page_leave_action_result.CommunityPageLeaveActionResult(
+ __is_community_leave_action_result = '',
+ __typename = 'TimelineTweet',
+ message = '',
+ reason = '', ),
+ pin_action_result = twitter_openapi_python_generated.models.community_page_pin_action_result.CommunityPagePinActionResult(
+ __is_community_tweet_pin_action_result = '',
+ __typename = 'TimelineTweet', ), ),
+ admin_results = twitter_openapi_python_generated.models.community_id_user_results.CommunityIdUserResults(
+ id = '',
+ result = null, ),
+ created_at = 56,
+ creator_results = twitter_openapi_python_generated.models.community_id_user_results.CommunityIdUserResults(
+ id = '',
+ result = null, ),
+ custom_banner_media = twitter_openapi_python_generated.models.community_banner_media.CommunityBannerMedia(
+ id = '',
+ media_info = twitter_openapi_python_generated.models.community_banner_media_info.CommunityBannerMediaInfo(
+ __typename = 'TimelineTweet',
+ color_info = twitter_openapi_python_generated.models.media_color_info.MediaColorInfo(
+ palette = [
+ twitter_openapi_python_generated.models.media_color_info_palette.MediaColorInfoPalette(
+ percentage = 1.337,
+ rgb = twitter_openapi_python_generated.models.media_color_info_palette_rgb.MediaColorInfoPaletteRGB(
+ blue = 56,
+ green = 56,
+ red = 56, ), )
+ ], ),
+ original_img_height = 56,
+ original_img_url = '',
+ original_img_width = 56,
+ salient_rect = twitter_openapi_python_generated.models.media_salient_rect.MediaSalientRect(
+ height = 56,
+ left = 56,
+ top = 56,
+ width = 56, ), ), ),
+ default_banner_media = twitter_openapi_python_generated.models.community_banner_media.CommunityBannerMedia(
+ id = '',
+ media_info = twitter_openapi_python_generated.models.community_banner_media_info.CommunityBannerMediaInfo(
+ __typename = 'TimelineTweet',
+ color_info = twitter_openapi_python_generated.models.media_color_info.MediaColorInfo(
+ palette = [
+ twitter_openapi_python_generated.models.media_color_info_palette.MediaColorInfoPalette(
+ percentage = 1.337,
+ rgb = twitter_openapi_python_generated.models.media_color_info_palette_rgb.MediaColorInfoPaletteRGB(
+ blue = 56,
+ green = 56,
+ red = 56, ), )
+ ], ),
+ original_img_height = 56,
+ original_img_url = '',
+ original_img_width = 56,
+ salient_rect = twitter_openapi_python_generated.models.media_salient_rect.MediaSalientRect(
+ height = 56,
+ left = 56,
+ top = 56,
+ width = 56, ), ), ),
+ description = '',
+ id = '',
+ id_str = '4',
+ invites_policy = '',
+ invites_result = twitter_openapi_python_generated.models.community_page_invites_result.CommunityPageInvitesResult(
+ __is_community_invites_result = '',
+ __typename = 'TimelineTweet',
+ message = '',
+ reason = '', ),
+ is_nsfw = True,
+ is_pinned = True,
+ join_policy = '',
+ join_requests_result = twitter_openapi_python_generated.models.community_join_requests_result.CommunityJoinRequestsResult(
+ __typename = 'TimelineTweet', ),
+ member_count = 56,
+ members_facepile_results = [
+ twitter_openapi_python_generated.models.community_id_user_results.CommunityIdUserResults(
+ id = '',
+ result = null, )
+ ],
+ moderator_count = 56,
+ name = '',
+ role = '',
+ rules = [
+ twitter_openapi_python_generated.models.community_relay_rule.CommunityRelayRule(
+ description = '',
+ id = '',
+ name = '',
+ rest_id = '4', )
+ ],
+ search_tags = [
+ ''
+ ],
+ viewer_relationship = twitter_openapi_python_generated.models.community_viewer_relationship.CommunityViewerRelationship(
+ id = '',
+ moderation_state = twitter_openapi_python_generated.models.community_moderation_state.CommunityModerationState(
+ __typename = 'TimelineTweet', ), ), )
+ )
+ else:
+ return CommunityPageResults(
+ id = '',
+ result = twitter_openapi_python_generated.models.community_page_community.CommunityPageCommunity(
+ __typename = 'TimelineTweet',
+ actions = twitter_openapi_python_generated.models.community_page_actions.CommunityPageActions(
+ delete_action_result = twitter_openapi_python_generated.models.community_page_delete_action_result.CommunityPageDeleteActionResult(
+ __is_community_delete_action_result = '',
+ __typename = 'TimelineTweet',
+ reason = '', ),
+ id = '',
+ join_action_result = twitter_openapi_python_generated.models.community_page_join_action_result.CommunityPageJoinActionResult(
+ __is_community_join_action_result = '',
+ __typename = 'TimelineTweet', ),
+ leave_action_result = twitter_openapi_python_generated.models.community_page_leave_action_result.CommunityPageLeaveActionResult(
+ __is_community_leave_action_result = '',
+ __typename = 'TimelineTweet',
+ message = '',
+ reason = '', ),
+ pin_action_result = twitter_openapi_python_generated.models.community_page_pin_action_result.CommunityPagePinActionResult(
+ __is_community_tweet_pin_action_result = '',
+ __typename = 'TimelineTweet', ), ),
+ admin_results = twitter_openapi_python_generated.models.community_id_user_results.CommunityIdUserResults(
+ id = '',
+ result = null, ),
+ created_at = 56,
+ creator_results = twitter_openapi_python_generated.models.community_id_user_results.CommunityIdUserResults(
+ id = '',
+ result = null, ),
+ custom_banner_media = twitter_openapi_python_generated.models.community_banner_media.CommunityBannerMedia(
+ id = '',
+ media_info = twitter_openapi_python_generated.models.community_banner_media_info.CommunityBannerMediaInfo(
+ __typename = 'TimelineTweet',
+ color_info = twitter_openapi_python_generated.models.media_color_info.MediaColorInfo(
+ palette = [
+ twitter_openapi_python_generated.models.media_color_info_palette.MediaColorInfoPalette(
+ percentage = 1.337,
+ rgb = twitter_openapi_python_generated.models.media_color_info_palette_rgb.MediaColorInfoPaletteRGB(
+ blue = 56,
+ green = 56,
+ red = 56, ), )
+ ], ),
+ original_img_height = 56,
+ original_img_url = '',
+ original_img_width = 56,
+ salient_rect = twitter_openapi_python_generated.models.media_salient_rect.MediaSalientRect(
+ height = 56,
+ left = 56,
+ top = 56,
+ width = 56, ), ), ),
+ default_banner_media = twitter_openapi_python_generated.models.community_banner_media.CommunityBannerMedia(
+ id = '',
+ media_info = twitter_openapi_python_generated.models.community_banner_media_info.CommunityBannerMediaInfo(
+ __typename = 'TimelineTweet',
+ color_info = twitter_openapi_python_generated.models.media_color_info.MediaColorInfo(
+ palette = [
+ twitter_openapi_python_generated.models.media_color_info_palette.MediaColorInfoPalette(
+ percentage = 1.337,
+ rgb = twitter_openapi_python_generated.models.media_color_info_palette_rgb.MediaColorInfoPaletteRGB(
+ blue = 56,
+ green = 56,
+ red = 56, ), )
+ ], ),
+ original_img_height = 56,
+ original_img_url = '',
+ original_img_width = 56,
+ salient_rect = twitter_openapi_python_generated.models.media_salient_rect.MediaSalientRect(
+ height = 56,
+ left = 56,
+ top = 56,
+ width = 56, ), ), ),
+ description = '',
+ id = '',
+ id_str = '4',
+ invites_policy = '',
+ invites_result = twitter_openapi_python_generated.models.community_page_invites_result.CommunityPageInvitesResult(
+ __is_community_invites_result = '',
+ __typename = 'TimelineTweet',
+ message = '',
+ reason = '', ),
+ is_nsfw = True,
+ is_pinned = True,
+ join_policy = '',
+ join_requests_result = twitter_openapi_python_generated.models.community_join_requests_result.CommunityJoinRequestsResult(
+ __typename = 'TimelineTweet', ),
+ member_count = 56,
+ members_facepile_results = [
+ twitter_openapi_python_generated.models.community_id_user_results.CommunityIdUserResults(
+ id = '',
+ result = null, )
+ ],
+ moderator_count = 56,
+ name = '',
+ role = '',
+ rules = [
+ twitter_openapi_python_generated.models.community_relay_rule.CommunityRelayRule(
+ description = '',
+ id = '',
+ name = '',
+ rest_id = '4', )
+ ],
+ search_tags = [
+ ''
+ ],
+ viewer_relationship = twitter_openapi_python_generated.models.community_viewer_relationship.CommunityViewerRelationship(
+ id = '',
+ moderation_state = twitter_openapi_python_generated.models.community_moderation_state.CommunityModerationState(
+ __typename = 'TimelineTweet', ), ), ),
+ )
+ """
+
+ def testCommunityPageResults(self):
+ """Test CommunityPageResults"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_community_primary_topic_name.py b/twitter_openapi_python_generated/test/test_community_primary_topic_name.py
new file mode 100644
index 0000000..d75f291
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_community_primary_topic_name.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.community_primary_topic_name import CommunityPrimaryTopicName
+
+class TestCommunityPrimaryTopicName(unittest.TestCase):
+ """CommunityPrimaryTopicName unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CommunityPrimaryTopicName:
+ """Test CommunityPrimaryTopicName
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CommunityPrimaryTopicName`
+ """
+ model = CommunityPrimaryTopicName()
+ if include_optional:
+ return CommunityPrimaryTopicName(
+ topic_name = ''
+ )
+ else:
+ return CommunityPrimaryTopicName(
+ topic_name = '',
+ )
+ """
+
+ def testCommunityPrimaryTopicName(self):
+ """Test CommunityPrimaryTopicName"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_community_query_response.py b/twitter_openapi_python_generated/test/test_community_query_response.py
new file mode 100644
index 0000000..8052a00
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_community_query_response.py
@@ -0,0 +1,280 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.community_query_response import CommunityQueryResponse
+
+class TestCommunityQueryResponse(unittest.TestCase):
+ """CommunityQueryResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CommunityQueryResponse:
+ """Test CommunityQueryResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CommunityQueryResponse`
+ """
+ model = CommunityQueryResponse()
+ if include_optional:
+ return CommunityQueryResponse(
+ data = twitter_openapi_python_generated.models.community_query_response_data.CommunityQueryResponseData(
+ community_results = twitter_openapi_python_generated.models.community_settings_results.CommunitySettingsResults(
+ id = '',
+ result = twitter_openapi_python_generated.models.community_settings_community.CommunitySettingsCommunity(
+ __typename = 'TimelineTweet',
+ actions = twitter_openapi_python_generated.models.community_settings_actions.CommunitySettingsActions(
+ id = '',
+ join_action_result = null,
+ list_members_action_result = twitter_openapi_python_generated.models.community_list_members_action_result.CommunityListMembersActionResult(
+ __typename = 'TimelineTweet', ), ),
+ created_at = 56,
+ creator_results = twitter_openapi_python_generated.models.community_settings_creator_results.CommunitySettingsCreatorResults(
+ id = '',
+ result = twitter_openapi_python_generated.models.community_settings_creator.CommunitySettingsCreator(
+ __typename = 'TimelineTweet',
+ core = twitter_openapi_python_generated.models.community_settings_creator_core.CommunitySettingsCreatorCore(
+ screen_name = '', ),
+ id = '',
+ is_blue_verified = True,
+ verification = twitter_openapi_python_generated.models.community_settings_creator_verification.CommunitySettingsCreatorVerification(
+ verified = True, ), ), ),
+ custom_banner_media = twitter_openapi_python_generated.models.community_banner_media.CommunityBannerMedia(
+ id = '',
+ media_info = twitter_openapi_python_generated.models.community_banner_media_info.CommunityBannerMediaInfo(
+ __typename = 'TimelineTweet',
+ color_info = twitter_openapi_python_generated.models.media_color_info.MediaColorInfo(
+ palette = [
+ twitter_openapi_python_generated.models.media_color_info_palette.MediaColorInfoPalette(
+ percentage = 1.337,
+ rgb = twitter_openapi_python_generated.models.media_color_info_palette_rgb.MediaColorInfoPaletteRGB(
+ blue = 56,
+ green = 56,
+ red = 56, ), )
+ ], ),
+ original_img_height = 56,
+ original_img_url = '',
+ original_img_width = 56,
+ salient_rect = twitter_openapi_python_generated.models.media_salient_rect.MediaSalientRect(
+ height = 56,
+ left = 56,
+ top = 56,
+ width = 56, ), ), ),
+ default_banner_media = twitter_openapi_python_generated.models.community_banner_media.CommunityBannerMedia(
+ id = '',
+ media_info = twitter_openapi_python_generated.models.community_banner_media_info.CommunityBannerMediaInfo(
+ __typename = 'TimelineTweet',
+ color_info = twitter_openapi_python_generated.models.media_color_info.MediaColorInfo(
+ palette = [
+ twitter_openapi_python_generated.models.media_color_info_palette.MediaColorInfoPalette(
+ percentage = 1.337,
+ rgb = twitter_openapi_python_generated.models.media_color_info_palette_rgb.MediaColorInfoPaletteRGB(
+ blue = 56,
+ green = 56,
+ red = 56, ), )
+ ], ),
+ original_img_height = 56,
+ original_img_url = '',
+ original_img_width = 56,
+ salient_rect = twitter_openapi_python_generated.models.media_salient_rect.MediaSalientRect(
+ height = 56,
+ left = 56,
+ top = 56,
+ width = 56, ), ), ),
+ description = '',
+ id = '',
+ invites_result = twitter_openapi_python_generated.models.community_settings_invites_result.CommunitySettingsInvitesResult(
+ __typename = 'TimelineTweet', ),
+ is_member = True,
+ is_nsfw = True,
+ join_policy = '',
+ join_requests_result = twitter_openapi_python_generated.models.community_join_requests_result.CommunityJoinRequestsResult(
+ __typename = 'TimelineTweet', ),
+ member_count = 56,
+ members_facepile_results = [
+ twitter_openapi_python_generated.models.community_facepile_user_results.CommunityFacepileUserResults(
+ id = '',
+ result = twitter_openapi_python_generated.models.community_facepile_user.CommunityFacepileUser(
+ __typename = 'TimelineTweet',
+ avatar = twitter_openapi_python_generated.models.user_avatar.UserAvatar(
+ image_url = '', ),
+ id = '', ), )
+ ],
+ name = '',
+ primary_community_topic = twitter_openapi_python_generated.models.community_primary_topic_name.CommunityPrimaryTopicName(
+ topic_name = '', ),
+ rest_id = '4',
+ role = '',
+ rules = [
+ twitter_openapi_python_generated.models.community_relay_rule.CommunityRelayRule(
+ description = '',
+ id = '',
+ name = '',
+ rest_id = '4', )
+ ],
+ trending_hashtags_slice = twitter_openapi_python_generated.models.community_hashtag_slice.CommunityHashtagSlice(
+ __typename = 'TimelineTweet',
+ items = [
+ twitter_openapi_python_generated.models.community_hashtag.CommunityHashtag(
+ hashtag = '',
+ id = '', )
+ ], ), ), ), ),
+ errors = [
+ twitter_openapi_python_generated.models.error_response.ErrorResponse(
+ code = 56,
+ extensions = twitter_openapi_python_generated.models.error_extensions.ErrorExtensions(
+ code = 56,
+ kind = '',
+ name = '',
+ retry_after = 56,
+ source = '',
+ tracing = twitter_openapi_python_generated.models.tracing.Tracing(
+ trace_id = 'bf325375e030fccb', ), ),
+ kind = '',
+ locations = [
+ twitter_openapi_python_generated.models.location.Location(
+ column = 56,
+ line = 56, )
+ ],
+ message = '',
+ name = '',
+ path = [
+ null
+ ],
+ retry_after = 56,
+ source = '',
+ tracing = twitter_openapi_python_generated.models.tracing.Tracing(
+ trace_id = 'bf325375e030fccb', ), )
+ ]
+ )
+ else:
+ return CommunityQueryResponse(
+ data = twitter_openapi_python_generated.models.community_query_response_data.CommunityQueryResponseData(
+ community_results = twitter_openapi_python_generated.models.community_settings_results.CommunitySettingsResults(
+ id = '',
+ result = twitter_openapi_python_generated.models.community_settings_community.CommunitySettingsCommunity(
+ __typename = 'TimelineTweet',
+ actions = twitter_openapi_python_generated.models.community_settings_actions.CommunitySettingsActions(
+ id = '',
+ join_action_result = null,
+ list_members_action_result = twitter_openapi_python_generated.models.community_list_members_action_result.CommunityListMembersActionResult(
+ __typename = 'TimelineTweet', ), ),
+ created_at = 56,
+ creator_results = twitter_openapi_python_generated.models.community_settings_creator_results.CommunitySettingsCreatorResults(
+ id = '',
+ result = twitter_openapi_python_generated.models.community_settings_creator.CommunitySettingsCreator(
+ __typename = 'TimelineTweet',
+ core = twitter_openapi_python_generated.models.community_settings_creator_core.CommunitySettingsCreatorCore(
+ screen_name = '', ),
+ id = '',
+ is_blue_verified = True,
+ verification = twitter_openapi_python_generated.models.community_settings_creator_verification.CommunitySettingsCreatorVerification(
+ verified = True, ), ), ),
+ custom_banner_media = twitter_openapi_python_generated.models.community_banner_media.CommunityBannerMedia(
+ id = '',
+ media_info = twitter_openapi_python_generated.models.community_banner_media_info.CommunityBannerMediaInfo(
+ __typename = 'TimelineTweet',
+ color_info = twitter_openapi_python_generated.models.media_color_info.MediaColorInfo(
+ palette = [
+ twitter_openapi_python_generated.models.media_color_info_palette.MediaColorInfoPalette(
+ percentage = 1.337,
+ rgb = twitter_openapi_python_generated.models.media_color_info_palette_rgb.MediaColorInfoPaletteRGB(
+ blue = 56,
+ green = 56,
+ red = 56, ), )
+ ], ),
+ original_img_height = 56,
+ original_img_url = '',
+ original_img_width = 56,
+ salient_rect = twitter_openapi_python_generated.models.media_salient_rect.MediaSalientRect(
+ height = 56,
+ left = 56,
+ top = 56,
+ width = 56, ), ), ),
+ default_banner_media = twitter_openapi_python_generated.models.community_banner_media.CommunityBannerMedia(
+ id = '',
+ media_info = twitter_openapi_python_generated.models.community_banner_media_info.CommunityBannerMediaInfo(
+ __typename = 'TimelineTweet',
+ color_info = twitter_openapi_python_generated.models.media_color_info.MediaColorInfo(
+ palette = [
+ twitter_openapi_python_generated.models.media_color_info_palette.MediaColorInfoPalette(
+ percentage = 1.337,
+ rgb = twitter_openapi_python_generated.models.media_color_info_palette_rgb.MediaColorInfoPaletteRGB(
+ blue = 56,
+ green = 56,
+ red = 56, ), )
+ ], ),
+ original_img_height = 56,
+ original_img_url = '',
+ original_img_width = 56,
+ salient_rect = twitter_openapi_python_generated.models.media_salient_rect.MediaSalientRect(
+ height = 56,
+ left = 56,
+ top = 56,
+ width = 56, ), ), ),
+ description = '',
+ id = '',
+ invites_result = twitter_openapi_python_generated.models.community_settings_invites_result.CommunitySettingsInvitesResult(
+ __typename = 'TimelineTweet', ),
+ is_member = True,
+ is_nsfw = True,
+ join_policy = '',
+ join_requests_result = twitter_openapi_python_generated.models.community_join_requests_result.CommunityJoinRequestsResult(
+ __typename = 'TimelineTweet', ),
+ member_count = 56,
+ members_facepile_results = [
+ twitter_openapi_python_generated.models.community_facepile_user_results.CommunityFacepileUserResults(
+ id = '',
+ result = twitter_openapi_python_generated.models.community_facepile_user.CommunityFacepileUser(
+ __typename = 'TimelineTweet',
+ avatar = twitter_openapi_python_generated.models.user_avatar.UserAvatar(
+ image_url = '', ),
+ id = '', ), )
+ ],
+ name = '',
+ primary_community_topic = twitter_openapi_python_generated.models.community_primary_topic_name.CommunityPrimaryTopicName(
+ topic_name = '', ),
+ rest_id = '4',
+ role = '',
+ rules = [
+ twitter_openapi_python_generated.models.community_relay_rule.CommunityRelayRule(
+ description = '',
+ id = '',
+ name = '',
+ rest_id = '4', )
+ ],
+ trending_hashtags_slice = twitter_openapi_python_generated.models.community_hashtag_slice.CommunityHashtagSlice(
+ __typename = 'TimelineTweet',
+ items = [
+ twitter_openapi_python_generated.models.community_hashtag.CommunityHashtag(
+ hashtag = '',
+ id = '', )
+ ], ), ), ), ),
+ )
+ """
+
+ def testCommunityQueryResponse(self):
+ """Test CommunityQueryResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_community_query_response_data.py b/twitter_openapi_python_generated/test/test_community_query_response_data.py
new file mode 100644
index 0000000..0cbc8dc
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_community_query_response_data.py
@@ -0,0 +1,251 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.community_query_response_data import CommunityQueryResponseData
+
+class TestCommunityQueryResponseData(unittest.TestCase):
+ """CommunityQueryResponseData unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CommunityQueryResponseData:
+ """Test CommunityQueryResponseData
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CommunityQueryResponseData`
+ """
+ model = CommunityQueryResponseData()
+ if include_optional:
+ return CommunityQueryResponseData(
+ community_results = twitter_openapi_python_generated.models.community_settings_results.CommunitySettingsResults(
+ id = '',
+ result = twitter_openapi_python_generated.models.community_settings_community.CommunitySettingsCommunity(
+ __typename = 'TimelineTweet',
+ actions = twitter_openapi_python_generated.models.community_settings_actions.CommunitySettingsActions(
+ id = '',
+ join_action_result = null,
+ list_members_action_result = twitter_openapi_python_generated.models.community_list_members_action_result.CommunityListMembersActionResult(
+ __typename = 'TimelineTweet', ), ),
+ created_at = 56,
+ creator_results = twitter_openapi_python_generated.models.community_settings_creator_results.CommunitySettingsCreatorResults(
+ id = '',
+ result = twitter_openapi_python_generated.models.community_settings_creator.CommunitySettingsCreator(
+ __typename = 'TimelineTweet',
+ core = twitter_openapi_python_generated.models.community_settings_creator_core.CommunitySettingsCreatorCore(
+ screen_name = '', ),
+ id = '',
+ is_blue_verified = True,
+ verification = twitter_openapi_python_generated.models.community_settings_creator_verification.CommunitySettingsCreatorVerification(
+ verified = True, ), ), ),
+ custom_banner_media = twitter_openapi_python_generated.models.community_banner_media.CommunityBannerMedia(
+ id = '',
+ media_info = twitter_openapi_python_generated.models.community_banner_media_info.CommunityBannerMediaInfo(
+ __typename = 'TimelineTweet',
+ color_info = twitter_openapi_python_generated.models.media_color_info.MediaColorInfo(
+ palette = [
+ twitter_openapi_python_generated.models.media_color_info_palette.MediaColorInfoPalette(
+ percentage = 1.337,
+ rgb = twitter_openapi_python_generated.models.media_color_info_palette_rgb.MediaColorInfoPaletteRGB(
+ blue = 56,
+ green = 56,
+ red = 56, ), )
+ ], ),
+ original_img_height = 56,
+ original_img_url = '',
+ original_img_width = 56,
+ salient_rect = twitter_openapi_python_generated.models.media_salient_rect.MediaSalientRect(
+ height = 56,
+ left = 56,
+ top = 56,
+ width = 56, ), ), ),
+ default_banner_media = twitter_openapi_python_generated.models.community_banner_media.CommunityBannerMedia(
+ id = '',
+ media_info = twitter_openapi_python_generated.models.community_banner_media_info.CommunityBannerMediaInfo(
+ __typename = 'TimelineTweet',
+ color_info = twitter_openapi_python_generated.models.media_color_info.MediaColorInfo(
+ palette = [
+ twitter_openapi_python_generated.models.media_color_info_palette.MediaColorInfoPalette(
+ percentage = 1.337,
+ rgb = twitter_openapi_python_generated.models.media_color_info_palette_rgb.MediaColorInfoPaletteRGB(
+ blue = 56,
+ green = 56,
+ red = 56, ), )
+ ], ),
+ original_img_height = 56,
+ original_img_url = '',
+ original_img_width = 56,
+ salient_rect = twitter_openapi_python_generated.models.media_salient_rect.MediaSalientRect(
+ height = 56,
+ left = 56,
+ top = 56,
+ width = 56, ), ), ),
+ description = '',
+ id = '',
+ invites_result = twitter_openapi_python_generated.models.community_settings_invites_result.CommunitySettingsInvitesResult(
+ __typename = 'TimelineTweet', ),
+ is_member = True,
+ is_nsfw = True,
+ join_policy = '',
+ join_requests_result = twitter_openapi_python_generated.models.community_join_requests_result.CommunityJoinRequestsResult(
+ __typename = 'TimelineTweet', ),
+ member_count = 56,
+ members_facepile_results = [
+ twitter_openapi_python_generated.models.community_facepile_user_results.CommunityFacepileUserResults(
+ id = '',
+ result = twitter_openapi_python_generated.models.community_facepile_user.CommunityFacepileUser(
+ __typename = 'TimelineTweet',
+ avatar = twitter_openapi_python_generated.models.user_avatar.UserAvatar(
+ image_url = '', ),
+ id = '', ), )
+ ],
+ name = '',
+ primary_community_topic = twitter_openapi_python_generated.models.community_primary_topic_name.CommunityPrimaryTopicName(
+ topic_name = '', ),
+ rest_id = '4',
+ role = '',
+ rules = [
+ twitter_openapi_python_generated.models.community_relay_rule.CommunityRelayRule(
+ description = '',
+ id = '',
+ name = '',
+ rest_id = '4', )
+ ],
+ trending_hashtags_slice = twitter_openapi_python_generated.models.community_hashtag_slice.CommunityHashtagSlice(
+ __typename = 'TimelineTweet',
+ items = [
+ twitter_openapi_python_generated.models.community_hashtag.CommunityHashtag(
+ hashtag = '',
+ id = '', )
+ ], ), ), )
+ )
+ else:
+ return CommunityQueryResponseData(
+ community_results = twitter_openapi_python_generated.models.community_settings_results.CommunitySettingsResults(
+ id = '',
+ result = twitter_openapi_python_generated.models.community_settings_community.CommunitySettingsCommunity(
+ __typename = 'TimelineTweet',
+ actions = twitter_openapi_python_generated.models.community_settings_actions.CommunitySettingsActions(
+ id = '',
+ join_action_result = null,
+ list_members_action_result = twitter_openapi_python_generated.models.community_list_members_action_result.CommunityListMembersActionResult(
+ __typename = 'TimelineTweet', ), ),
+ created_at = 56,
+ creator_results = twitter_openapi_python_generated.models.community_settings_creator_results.CommunitySettingsCreatorResults(
+ id = '',
+ result = twitter_openapi_python_generated.models.community_settings_creator.CommunitySettingsCreator(
+ __typename = 'TimelineTweet',
+ core = twitter_openapi_python_generated.models.community_settings_creator_core.CommunitySettingsCreatorCore(
+ screen_name = '', ),
+ id = '',
+ is_blue_verified = True,
+ verification = twitter_openapi_python_generated.models.community_settings_creator_verification.CommunitySettingsCreatorVerification(
+ verified = True, ), ), ),
+ custom_banner_media = twitter_openapi_python_generated.models.community_banner_media.CommunityBannerMedia(
+ id = '',
+ media_info = twitter_openapi_python_generated.models.community_banner_media_info.CommunityBannerMediaInfo(
+ __typename = 'TimelineTweet',
+ color_info = twitter_openapi_python_generated.models.media_color_info.MediaColorInfo(
+ palette = [
+ twitter_openapi_python_generated.models.media_color_info_palette.MediaColorInfoPalette(
+ percentage = 1.337,
+ rgb = twitter_openapi_python_generated.models.media_color_info_palette_rgb.MediaColorInfoPaletteRGB(
+ blue = 56,
+ green = 56,
+ red = 56, ), )
+ ], ),
+ original_img_height = 56,
+ original_img_url = '',
+ original_img_width = 56,
+ salient_rect = twitter_openapi_python_generated.models.media_salient_rect.MediaSalientRect(
+ height = 56,
+ left = 56,
+ top = 56,
+ width = 56, ), ), ),
+ default_banner_media = twitter_openapi_python_generated.models.community_banner_media.CommunityBannerMedia(
+ id = '',
+ media_info = twitter_openapi_python_generated.models.community_banner_media_info.CommunityBannerMediaInfo(
+ __typename = 'TimelineTweet',
+ color_info = twitter_openapi_python_generated.models.media_color_info.MediaColorInfo(
+ palette = [
+ twitter_openapi_python_generated.models.media_color_info_palette.MediaColorInfoPalette(
+ percentage = 1.337,
+ rgb = twitter_openapi_python_generated.models.media_color_info_palette_rgb.MediaColorInfoPaletteRGB(
+ blue = 56,
+ green = 56,
+ red = 56, ), )
+ ], ),
+ original_img_height = 56,
+ original_img_url = '',
+ original_img_width = 56,
+ salient_rect = twitter_openapi_python_generated.models.media_salient_rect.MediaSalientRect(
+ height = 56,
+ left = 56,
+ top = 56,
+ width = 56, ), ), ),
+ description = '',
+ id = '',
+ invites_result = twitter_openapi_python_generated.models.community_settings_invites_result.CommunitySettingsInvitesResult(
+ __typename = 'TimelineTweet', ),
+ is_member = True,
+ is_nsfw = True,
+ join_policy = '',
+ join_requests_result = twitter_openapi_python_generated.models.community_join_requests_result.CommunityJoinRequestsResult(
+ __typename = 'TimelineTweet', ),
+ member_count = 56,
+ members_facepile_results = [
+ twitter_openapi_python_generated.models.community_facepile_user_results.CommunityFacepileUserResults(
+ id = '',
+ result = twitter_openapi_python_generated.models.community_facepile_user.CommunityFacepileUser(
+ __typename = 'TimelineTweet',
+ avatar = twitter_openapi_python_generated.models.user_avatar.UserAvatar(
+ image_url = '', ),
+ id = '', ), )
+ ],
+ name = '',
+ primary_community_topic = twitter_openapi_python_generated.models.community_primary_topic_name.CommunityPrimaryTopicName(
+ topic_name = '', ),
+ rest_id = '4',
+ role = '',
+ rules = [
+ twitter_openapi_python_generated.models.community_relay_rule.CommunityRelayRule(
+ description = '',
+ id = '',
+ name = '',
+ rest_id = '4', )
+ ],
+ trending_hashtags_slice = twitter_openapi_python_generated.models.community_hashtag_slice.CommunityHashtagSlice(
+ __typename = 'TimelineTweet',
+ items = [
+ twitter_openapi_python_generated.models.community_hashtag.CommunityHashtag(
+ hashtag = '',
+ id = '', )
+ ], ), ), ),
+ )
+ """
+
+ def testCommunityQueryResponseData(self):
+ """Test CommunityQueryResponseData"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_community_relay_rule.py b/twitter_openapi_python_generated/test/test_community_relay_rule.py
new file mode 100644
index 0000000..6d72866
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_community_relay_rule.py
@@ -0,0 +1,58 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.community_relay_rule import CommunityRelayRule
+
+class TestCommunityRelayRule(unittest.TestCase):
+ """CommunityRelayRule unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CommunityRelayRule:
+ """Test CommunityRelayRule
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CommunityRelayRule`
+ """
+ model = CommunityRelayRule()
+ if include_optional:
+ return CommunityRelayRule(
+ description = '',
+ id = '',
+ name = '',
+ rest_id = '4'
+ )
+ else:
+ return CommunityRelayRule(
+ id = '',
+ name = '',
+ rest_id = '4',
+ )
+ """
+
+ def testCommunityRelayRule(self):
+ """Test CommunityRelayRule"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_community_search_community.py b/twitter_openapi_python_generated/test/test_community_search_community.py
new file mode 100644
index 0000000..8046efa
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_community_search_community.py
@@ -0,0 +1,146 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.community_search_community import CommunitySearchCommunity
+
+class TestCommunitySearchCommunity(unittest.TestCase):
+ """CommunitySearchCommunity unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CommunitySearchCommunity:
+ """Test CommunitySearchCommunity
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CommunitySearchCommunity`
+ """
+ model = CommunitySearchCommunity()
+ if include_optional:
+ return CommunitySearchCommunity(
+ typename = 'TimelineTweet',
+ custom_banner_media = twitter_openapi_python_generated.models.community_banner_media.CommunityBannerMedia(
+ id = '',
+ media_info = twitter_openapi_python_generated.models.community_banner_media_info.CommunityBannerMediaInfo(
+ __typename = 'TimelineTweet',
+ color_info = twitter_openapi_python_generated.models.media_color_info.MediaColorInfo(
+ palette = [
+ twitter_openapi_python_generated.models.media_color_info_palette.MediaColorInfoPalette(
+ percentage = 1.337,
+ rgb = twitter_openapi_python_generated.models.media_color_info_palette_rgb.MediaColorInfoPaletteRGB(
+ blue = 56,
+ green = 56,
+ red = 56, ), )
+ ], ),
+ original_img_height = 56,
+ original_img_url = '',
+ original_img_width = 56,
+ salient_rect = twitter_openapi_python_generated.models.media_salient_rect.MediaSalientRect(
+ height = 56,
+ left = 56,
+ top = 56,
+ width = 56, ), ), ),
+ default_banner_media = twitter_openapi_python_generated.models.community_banner_media.CommunityBannerMedia(
+ id = '',
+ media_info = twitter_openapi_python_generated.models.community_banner_media_info.CommunityBannerMediaInfo(
+ __typename = 'TimelineTweet',
+ color_info = twitter_openapi_python_generated.models.media_color_info.MediaColorInfo(
+ palette = [
+ twitter_openapi_python_generated.models.media_color_info_palette.MediaColorInfoPalette(
+ percentage = 1.337,
+ rgb = twitter_openapi_python_generated.models.media_color_info_palette_rgb.MediaColorInfoPaletteRGB(
+ blue = 56,
+ green = 56,
+ red = 56, ), )
+ ], ),
+ original_img_height = 56,
+ original_img_url = '',
+ original_img_width = 56,
+ salient_rect = twitter_openapi_python_generated.models.media_salient_rect.MediaSalientRect(
+ height = 56,
+ left = 56,
+ top = 56,
+ width = 56, ), ), ),
+ id = '',
+ is_nsfw = True,
+ member_count = 56,
+ members_facepile_results = [
+ twitter_openapi_python_generated.models.community_facepile_user_results.CommunityFacepileUserResults(
+ id = '',
+ result = twitter_openapi_python_generated.models.community_facepile_user.CommunityFacepileUser(
+ __typename = 'TimelineTweet',
+ avatar = twitter_openapi_python_generated.models.user_avatar.UserAvatar(
+ image_url = '', ),
+ id = '', ), )
+ ],
+ name = '',
+ primary_community_topic = twitter_openapi_python_generated.models.community_primary_topic_name.CommunityPrimaryTopicName(
+ topic_name = '', ),
+ rest_id = '4'
+ )
+ else:
+ return CommunitySearchCommunity(
+ typename = 'TimelineTweet',
+ default_banner_media = twitter_openapi_python_generated.models.community_banner_media.CommunityBannerMedia(
+ id = '',
+ media_info = twitter_openapi_python_generated.models.community_banner_media_info.CommunityBannerMediaInfo(
+ __typename = 'TimelineTweet',
+ color_info = twitter_openapi_python_generated.models.media_color_info.MediaColorInfo(
+ palette = [
+ twitter_openapi_python_generated.models.media_color_info_palette.MediaColorInfoPalette(
+ percentage = 1.337,
+ rgb = twitter_openapi_python_generated.models.media_color_info_palette_rgb.MediaColorInfoPaletteRGB(
+ blue = 56,
+ green = 56,
+ red = 56, ), )
+ ], ),
+ original_img_height = 56,
+ original_img_url = '',
+ original_img_width = 56,
+ salient_rect = twitter_openapi_python_generated.models.media_salient_rect.MediaSalientRect(
+ height = 56,
+ left = 56,
+ top = 56,
+ width = 56, ), ), ),
+ id = '',
+ is_nsfw = True,
+ member_count = 56,
+ members_facepile_results = [
+ twitter_openapi_python_generated.models.community_facepile_user_results.CommunityFacepileUserResults(
+ id = '',
+ result = twitter_openapi_python_generated.models.community_facepile_user.CommunityFacepileUser(
+ __typename = 'TimelineTweet',
+ avatar = twitter_openapi_python_generated.models.user_avatar.UserAvatar(
+ image_url = '', ),
+ id = '', ), )
+ ],
+ name = '',
+ rest_id = '4',
+ )
+ """
+
+ def testCommunitySearchCommunity(self):
+ """Test CommunitySearchCommunity"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_community_search_results.py b/twitter_openapi_python_generated/test/test_community_search_results.py
new file mode 100644
index 0000000..91f9389
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_community_search_results.py
@@ -0,0 +1,173 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.community_search_results import CommunitySearchResults
+
+class TestCommunitySearchResults(unittest.TestCase):
+ """CommunitySearchResults unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CommunitySearchResults:
+ """Test CommunitySearchResults
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CommunitySearchResults`
+ """
+ model = CommunitySearchResults()
+ if include_optional:
+ return CommunitySearchResults(
+ id = '',
+ result = twitter_openapi_python_generated.models.community_search_community.CommunitySearchCommunity(
+ __typename = 'TimelineTweet',
+ custom_banner_media = twitter_openapi_python_generated.models.community_banner_media.CommunityBannerMedia(
+ id = '',
+ media_info = twitter_openapi_python_generated.models.community_banner_media_info.CommunityBannerMediaInfo(
+ __typename = 'TimelineTweet',
+ color_info = twitter_openapi_python_generated.models.media_color_info.MediaColorInfo(
+ palette = [
+ twitter_openapi_python_generated.models.media_color_info_palette.MediaColorInfoPalette(
+ percentage = 1.337,
+ rgb = twitter_openapi_python_generated.models.media_color_info_palette_rgb.MediaColorInfoPaletteRGB(
+ blue = 56,
+ green = 56,
+ red = 56, ), )
+ ], ),
+ original_img_height = 56,
+ original_img_url = '',
+ original_img_width = 56,
+ salient_rect = twitter_openapi_python_generated.models.media_salient_rect.MediaSalientRect(
+ height = 56,
+ left = 56,
+ top = 56,
+ width = 56, ), ), ),
+ default_banner_media = twitter_openapi_python_generated.models.community_banner_media.CommunityBannerMedia(
+ id = '',
+ media_info = twitter_openapi_python_generated.models.community_banner_media_info.CommunityBannerMediaInfo(
+ __typename = 'TimelineTweet',
+ color_info = twitter_openapi_python_generated.models.media_color_info.MediaColorInfo(
+ palette = [
+ twitter_openapi_python_generated.models.media_color_info_palette.MediaColorInfoPalette(
+ percentage = 1.337,
+ rgb = twitter_openapi_python_generated.models.media_color_info_palette_rgb.MediaColorInfoPaletteRGB(
+ blue = 56,
+ green = 56,
+ red = 56, ), )
+ ], ),
+ original_img_height = 56,
+ original_img_url = '',
+ original_img_width = 56,
+ salient_rect = twitter_openapi_python_generated.models.media_salient_rect.MediaSalientRect(
+ height = 56,
+ left = 56,
+ top = 56,
+ width = 56, ), ), ),
+ id = '',
+ is_nsfw = True,
+ member_count = 56,
+ members_facepile_results = [
+ twitter_openapi_python_generated.models.community_facepile_user_results.CommunityFacepileUserResults(
+ id = '',
+ result = twitter_openapi_python_generated.models.community_facepile_user.CommunityFacepileUser(
+ __typename = 'TimelineTweet',
+ avatar = twitter_openapi_python_generated.models.user_avatar.UserAvatar(
+ image_url = '', ),
+ id = '', ), )
+ ],
+ name = '',
+ primary_community_topic = twitter_openapi_python_generated.models.community_primary_topic_name.CommunityPrimaryTopicName(
+ topic_name = '', ),
+ rest_id = '4', )
+ )
+ else:
+ return CommunitySearchResults(
+ id = '',
+ result = twitter_openapi_python_generated.models.community_search_community.CommunitySearchCommunity(
+ __typename = 'TimelineTweet',
+ custom_banner_media = twitter_openapi_python_generated.models.community_banner_media.CommunityBannerMedia(
+ id = '',
+ media_info = twitter_openapi_python_generated.models.community_banner_media_info.CommunityBannerMediaInfo(
+ __typename = 'TimelineTweet',
+ color_info = twitter_openapi_python_generated.models.media_color_info.MediaColorInfo(
+ palette = [
+ twitter_openapi_python_generated.models.media_color_info_palette.MediaColorInfoPalette(
+ percentage = 1.337,
+ rgb = twitter_openapi_python_generated.models.media_color_info_palette_rgb.MediaColorInfoPaletteRGB(
+ blue = 56,
+ green = 56,
+ red = 56, ), )
+ ], ),
+ original_img_height = 56,
+ original_img_url = '',
+ original_img_width = 56,
+ salient_rect = twitter_openapi_python_generated.models.media_salient_rect.MediaSalientRect(
+ height = 56,
+ left = 56,
+ top = 56,
+ width = 56, ), ), ),
+ default_banner_media = twitter_openapi_python_generated.models.community_banner_media.CommunityBannerMedia(
+ id = '',
+ media_info = twitter_openapi_python_generated.models.community_banner_media_info.CommunityBannerMediaInfo(
+ __typename = 'TimelineTweet',
+ color_info = twitter_openapi_python_generated.models.media_color_info.MediaColorInfo(
+ palette = [
+ twitter_openapi_python_generated.models.media_color_info_palette.MediaColorInfoPalette(
+ percentage = 1.337,
+ rgb = twitter_openapi_python_generated.models.media_color_info_palette_rgb.MediaColorInfoPaletteRGB(
+ blue = 56,
+ green = 56,
+ red = 56, ), )
+ ], ),
+ original_img_height = 56,
+ original_img_url = '',
+ original_img_width = 56,
+ salient_rect = twitter_openapi_python_generated.models.media_salient_rect.MediaSalientRect(
+ height = 56,
+ left = 56,
+ top = 56,
+ width = 56, ), ), ),
+ id = '',
+ is_nsfw = True,
+ member_count = 56,
+ members_facepile_results = [
+ twitter_openapi_python_generated.models.community_facepile_user_results.CommunityFacepileUserResults(
+ id = '',
+ result = twitter_openapi_python_generated.models.community_facepile_user.CommunityFacepileUser(
+ __typename = 'TimelineTweet',
+ avatar = twitter_openapi_python_generated.models.user_avatar.UserAvatar(
+ image_url = '', ),
+ id = '', ), )
+ ],
+ name = '',
+ primary_community_topic = twitter_openapi_python_generated.models.community_primary_topic_name.CommunityPrimaryTopicName(
+ topic_name = '', ),
+ rest_id = '4', ),
+ )
+ """
+
+ def testCommunitySearchResults(self):
+ """Test CommunitySearchResults"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_community_settings_actions.py b/twitter_openapi_python_generated/test/test_community_settings_actions.py
new file mode 100644
index 0000000..4d0ba92
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_community_settings_actions.py
@@ -0,0 +1,59 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.community_settings_actions import CommunitySettingsActions
+
+class TestCommunitySettingsActions(unittest.TestCase):
+ """CommunitySettingsActions unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CommunitySettingsActions:
+ """Test CommunitySettingsActions
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CommunitySettingsActions`
+ """
+ model = CommunitySettingsActions()
+ if include_optional:
+ return CommunitySettingsActions(
+ id = '',
+ join_action_result = None,
+ list_members_action_result = twitter_openapi_python_generated.models.community_list_members_action_result.CommunityListMembersActionResult(
+ __typename = 'TimelineTweet', )
+ )
+ else:
+ return CommunitySettingsActions(
+ id = '',
+ join_action_result = None,
+ list_members_action_result = twitter_openapi_python_generated.models.community_list_members_action_result.CommunityListMembersActionResult(
+ __typename = 'TimelineTweet', ),
+ )
+ """
+
+ def testCommunitySettingsActions(self):
+ """Test CommunitySettingsActions"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_community_settings_community.py b/twitter_openapi_python_generated/test/test_community_settings_community.py
new file mode 100644
index 0000000..c46395b
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_community_settings_community.py
@@ -0,0 +1,245 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.community_settings_community import CommunitySettingsCommunity
+
+class TestCommunitySettingsCommunity(unittest.TestCase):
+ """CommunitySettingsCommunity unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CommunitySettingsCommunity:
+ """Test CommunitySettingsCommunity
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CommunitySettingsCommunity`
+ """
+ model = CommunitySettingsCommunity()
+ if include_optional:
+ return CommunitySettingsCommunity(
+ typename = 'TimelineTweet',
+ actions = twitter_openapi_python_generated.models.community_settings_actions.CommunitySettingsActions(
+ id = '',
+ join_action_result = null,
+ list_members_action_result = twitter_openapi_python_generated.models.community_list_members_action_result.CommunityListMembersActionResult(
+ __typename = 'TimelineTweet', ), ),
+ created_at = 56,
+ creator_results = twitter_openapi_python_generated.models.community_settings_creator_results.CommunitySettingsCreatorResults(
+ id = '',
+ result = twitter_openapi_python_generated.models.community_settings_creator.CommunitySettingsCreator(
+ __typename = 'TimelineTweet',
+ core = twitter_openapi_python_generated.models.community_settings_creator_core.CommunitySettingsCreatorCore(
+ screen_name = '', ),
+ id = '',
+ is_blue_verified = True,
+ verification = twitter_openapi_python_generated.models.community_settings_creator_verification.CommunitySettingsCreatorVerification(
+ verified = True, ), ), ),
+ custom_banner_media = twitter_openapi_python_generated.models.community_banner_media.CommunityBannerMedia(
+ id = '',
+ media_info = twitter_openapi_python_generated.models.community_banner_media_info.CommunityBannerMediaInfo(
+ __typename = 'TimelineTweet',
+ color_info = twitter_openapi_python_generated.models.media_color_info.MediaColorInfo(
+ palette = [
+ twitter_openapi_python_generated.models.media_color_info_palette.MediaColorInfoPalette(
+ percentage = 1.337,
+ rgb = twitter_openapi_python_generated.models.media_color_info_palette_rgb.MediaColorInfoPaletteRGB(
+ blue = 56,
+ green = 56,
+ red = 56, ), )
+ ], ),
+ original_img_height = 56,
+ original_img_url = '',
+ original_img_width = 56,
+ salient_rect = twitter_openapi_python_generated.models.media_salient_rect.MediaSalientRect(
+ height = 56,
+ left = 56,
+ top = 56,
+ width = 56, ), ), ),
+ default_banner_media = twitter_openapi_python_generated.models.community_banner_media.CommunityBannerMedia(
+ id = '',
+ media_info = twitter_openapi_python_generated.models.community_banner_media_info.CommunityBannerMediaInfo(
+ __typename = 'TimelineTweet',
+ color_info = twitter_openapi_python_generated.models.media_color_info.MediaColorInfo(
+ palette = [
+ twitter_openapi_python_generated.models.media_color_info_palette.MediaColorInfoPalette(
+ percentage = 1.337,
+ rgb = twitter_openapi_python_generated.models.media_color_info_palette_rgb.MediaColorInfoPaletteRGB(
+ blue = 56,
+ green = 56,
+ red = 56, ), )
+ ], ),
+ original_img_height = 56,
+ original_img_url = '',
+ original_img_width = 56,
+ salient_rect = twitter_openapi_python_generated.models.media_salient_rect.MediaSalientRect(
+ height = 56,
+ left = 56,
+ top = 56,
+ width = 56, ), ), ),
+ description = '',
+ id = '',
+ invites_result = twitter_openapi_python_generated.models.community_settings_invites_result.CommunitySettingsInvitesResult(
+ __typename = 'TimelineTweet', ),
+ is_member = True,
+ is_nsfw = True,
+ join_policy = '',
+ join_requests_result = twitter_openapi_python_generated.models.community_join_requests_result.CommunityJoinRequestsResult(
+ __typename = 'TimelineTweet', ),
+ member_count = 56,
+ members_facepile_results = [
+ twitter_openapi_python_generated.models.community_facepile_user_results.CommunityFacepileUserResults(
+ id = '',
+ result = twitter_openapi_python_generated.models.community_facepile_user.CommunityFacepileUser(
+ __typename = 'TimelineTweet',
+ avatar = twitter_openapi_python_generated.models.user_avatar.UserAvatar(
+ image_url = '', ),
+ id = '', ), )
+ ],
+ name = '',
+ primary_community_topic = twitter_openapi_python_generated.models.community_primary_topic_name.CommunityPrimaryTopicName(
+ topic_name = '', ),
+ rest_id = '4',
+ role = '',
+ rules = [
+ twitter_openapi_python_generated.models.community_relay_rule.CommunityRelayRule(
+ description = '',
+ id = '',
+ name = '',
+ rest_id = '4', )
+ ],
+ trending_hashtags_slice = twitter_openapi_python_generated.models.community_hashtag_slice.CommunityHashtagSlice(
+ __typename = 'TimelineTweet',
+ items = [
+ twitter_openapi_python_generated.models.community_hashtag.CommunityHashtag(
+ hashtag = '',
+ id = '', )
+ ], )
+ )
+ else:
+ return CommunitySettingsCommunity(
+ typename = 'TimelineTweet',
+ actions = twitter_openapi_python_generated.models.community_settings_actions.CommunitySettingsActions(
+ id = '',
+ join_action_result = null,
+ list_members_action_result = twitter_openapi_python_generated.models.community_list_members_action_result.CommunityListMembersActionResult(
+ __typename = 'TimelineTweet', ), ),
+ created_at = 56,
+ creator_results = twitter_openapi_python_generated.models.community_settings_creator_results.CommunitySettingsCreatorResults(
+ id = '',
+ result = twitter_openapi_python_generated.models.community_settings_creator.CommunitySettingsCreator(
+ __typename = 'TimelineTweet',
+ core = twitter_openapi_python_generated.models.community_settings_creator_core.CommunitySettingsCreatorCore(
+ screen_name = '', ),
+ id = '',
+ is_blue_verified = True,
+ verification = twitter_openapi_python_generated.models.community_settings_creator_verification.CommunitySettingsCreatorVerification(
+ verified = True, ), ), ),
+ custom_banner_media = twitter_openapi_python_generated.models.community_banner_media.CommunityBannerMedia(
+ id = '',
+ media_info = twitter_openapi_python_generated.models.community_banner_media_info.CommunityBannerMediaInfo(
+ __typename = 'TimelineTweet',
+ color_info = twitter_openapi_python_generated.models.media_color_info.MediaColorInfo(
+ palette = [
+ twitter_openapi_python_generated.models.media_color_info_palette.MediaColorInfoPalette(
+ percentage = 1.337,
+ rgb = twitter_openapi_python_generated.models.media_color_info_palette_rgb.MediaColorInfoPaletteRGB(
+ blue = 56,
+ green = 56,
+ red = 56, ), )
+ ], ),
+ original_img_height = 56,
+ original_img_url = '',
+ original_img_width = 56,
+ salient_rect = twitter_openapi_python_generated.models.media_salient_rect.MediaSalientRect(
+ height = 56,
+ left = 56,
+ top = 56,
+ width = 56, ), ), ),
+ default_banner_media = twitter_openapi_python_generated.models.community_banner_media.CommunityBannerMedia(
+ id = '',
+ media_info = twitter_openapi_python_generated.models.community_banner_media_info.CommunityBannerMediaInfo(
+ __typename = 'TimelineTweet',
+ color_info = twitter_openapi_python_generated.models.media_color_info.MediaColorInfo(
+ palette = [
+ twitter_openapi_python_generated.models.media_color_info_palette.MediaColorInfoPalette(
+ percentage = 1.337,
+ rgb = twitter_openapi_python_generated.models.media_color_info_palette_rgb.MediaColorInfoPaletteRGB(
+ blue = 56,
+ green = 56,
+ red = 56, ), )
+ ], ),
+ original_img_height = 56,
+ original_img_url = '',
+ original_img_width = 56,
+ salient_rect = twitter_openapi_python_generated.models.media_salient_rect.MediaSalientRect(
+ height = 56,
+ left = 56,
+ top = 56,
+ width = 56, ), ), ),
+ description = '',
+ id = '',
+ invites_result = twitter_openapi_python_generated.models.community_settings_invites_result.CommunitySettingsInvitesResult(
+ __typename = 'TimelineTweet', ),
+ is_member = True,
+ is_nsfw = True,
+ join_policy = '',
+ join_requests_result = twitter_openapi_python_generated.models.community_join_requests_result.CommunityJoinRequestsResult(
+ __typename = 'TimelineTweet', ),
+ member_count = 56,
+ members_facepile_results = [
+ twitter_openapi_python_generated.models.community_facepile_user_results.CommunityFacepileUserResults(
+ id = '',
+ result = twitter_openapi_python_generated.models.community_facepile_user.CommunityFacepileUser(
+ __typename = 'TimelineTweet',
+ avatar = twitter_openapi_python_generated.models.user_avatar.UserAvatar(
+ image_url = '', ),
+ id = '', ), )
+ ],
+ name = '',
+ primary_community_topic = twitter_openapi_python_generated.models.community_primary_topic_name.CommunityPrimaryTopicName(
+ topic_name = '', ),
+ rest_id = '4',
+ role = '',
+ rules = [
+ twitter_openapi_python_generated.models.community_relay_rule.CommunityRelayRule(
+ description = '',
+ id = '',
+ name = '',
+ rest_id = '4', )
+ ],
+ trending_hashtags_slice = twitter_openapi_python_generated.models.community_hashtag_slice.CommunityHashtagSlice(
+ __typename = 'TimelineTweet',
+ items = [
+ twitter_openapi_python_generated.models.community_hashtag.CommunityHashtag(
+ hashtag = '',
+ id = '', )
+ ], ),
+ )
+ """
+
+ def testCommunitySettingsCommunity(self):
+ """Test CommunitySettingsCommunity"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_community_settings_creator.py b/twitter_openapi_python_generated/test/test_community_settings_creator.py
new file mode 100644
index 0000000..24d46c6
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_community_settings_creator.py
@@ -0,0 +1,65 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.community_settings_creator import CommunitySettingsCreator
+
+class TestCommunitySettingsCreator(unittest.TestCase):
+ """CommunitySettingsCreator unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CommunitySettingsCreator:
+ """Test CommunitySettingsCreator
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CommunitySettingsCreator`
+ """
+ model = CommunitySettingsCreator()
+ if include_optional:
+ return CommunitySettingsCreator(
+ typename = 'TimelineTweet',
+ core = twitter_openapi_python_generated.models.community_settings_creator_core.CommunitySettingsCreatorCore(
+ screen_name = '', ),
+ id = '',
+ is_blue_verified = True,
+ verification = twitter_openapi_python_generated.models.community_settings_creator_verification.CommunitySettingsCreatorVerification(
+ verified = True, )
+ )
+ else:
+ return CommunitySettingsCreator(
+ typename = 'TimelineTweet',
+ core = twitter_openapi_python_generated.models.community_settings_creator_core.CommunitySettingsCreatorCore(
+ screen_name = '', ),
+ id = '',
+ is_blue_verified = True,
+ verification = twitter_openapi_python_generated.models.community_settings_creator_verification.CommunitySettingsCreatorVerification(
+ verified = True, ),
+ )
+ """
+
+ def testCommunitySettingsCreator(self):
+ """Test CommunitySettingsCreator"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_community_settings_creator_core.py b/twitter_openapi_python_generated/test/test_community_settings_creator_core.py
new file mode 100644
index 0000000..7a33679
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_community_settings_creator_core.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.community_settings_creator_core import CommunitySettingsCreatorCore
+
+class TestCommunitySettingsCreatorCore(unittest.TestCase):
+ """CommunitySettingsCreatorCore unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CommunitySettingsCreatorCore:
+ """Test CommunitySettingsCreatorCore
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CommunitySettingsCreatorCore`
+ """
+ model = CommunitySettingsCreatorCore()
+ if include_optional:
+ return CommunitySettingsCreatorCore(
+ screen_name = ''
+ )
+ else:
+ return CommunitySettingsCreatorCore(
+ screen_name = '',
+ )
+ """
+
+ def testCommunitySettingsCreatorCore(self):
+ """Test CommunitySettingsCreatorCore"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_community_settings_creator_results.py b/twitter_openapi_python_generated/test/test_community_settings_creator_results.py
new file mode 100644
index 0000000..b2dbd42
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_community_settings_creator_results.py
@@ -0,0 +1,69 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.community_settings_creator_results import CommunitySettingsCreatorResults
+
+class TestCommunitySettingsCreatorResults(unittest.TestCase):
+ """CommunitySettingsCreatorResults unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CommunitySettingsCreatorResults:
+ """Test CommunitySettingsCreatorResults
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CommunitySettingsCreatorResults`
+ """
+ model = CommunitySettingsCreatorResults()
+ if include_optional:
+ return CommunitySettingsCreatorResults(
+ id = '',
+ result = twitter_openapi_python_generated.models.community_settings_creator.CommunitySettingsCreator(
+ __typename = 'TimelineTweet',
+ core = twitter_openapi_python_generated.models.community_settings_creator_core.CommunitySettingsCreatorCore(
+ screen_name = '', ),
+ id = '',
+ is_blue_verified = True,
+ verification = twitter_openapi_python_generated.models.community_settings_creator_verification.CommunitySettingsCreatorVerification(
+ verified = True, ), )
+ )
+ else:
+ return CommunitySettingsCreatorResults(
+ id = '',
+ result = twitter_openapi_python_generated.models.community_settings_creator.CommunitySettingsCreator(
+ __typename = 'TimelineTweet',
+ core = twitter_openapi_python_generated.models.community_settings_creator_core.CommunitySettingsCreatorCore(
+ screen_name = '', ),
+ id = '',
+ is_blue_verified = True,
+ verification = twitter_openapi_python_generated.models.community_settings_creator_verification.CommunitySettingsCreatorVerification(
+ verified = True, ), ),
+ )
+ """
+
+ def testCommunitySettingsCreatorResults(self):
+ """Test CommunitySettingsCreatorResults"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_community_settings_creator_verification.py b/twitter_openapi_python_generated/test/test_community_settings_creator_verification.py
new file mode 100644
index 0000000..53454c7
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_community_settings_creator_verification.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.community_settings_creator_verification import CommunitySettingsCreatorVerification
+
+class TestCommunitySettingsCreatorVerification(unittest.TestCase):
+ """CommunitySettingsCreatorVerification unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CommunitySettingsCreatorVerification:
+ """Test CommunitySettingsCreatorVerification
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CommunitySettingsCreatorVerification`
+ """
+ model = CommunitySettingsCreatorVerification()
+ if include_optional:
+ return CommunitySettingsCreatorVerification(
+ verified = True
+ )
+ else:
+ return CommunitySettingsCreatorVerification(
+ verified = True,
+ )
+ """
+
+ def testCommunitySettingsCreatorVerification(self):
+ """Test CommunitySettingsCreatorVerification"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_community_settings_invites_result.py b/twitter_openapi_python_generated/test/test_community_settings_invites_result.py
new file mode 100644
index 0000000..47f6e2e
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_community_settings_invites_result.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.community_settings_invites_result import CommunitySettingsInvitesResult
+
+class TestCommunitySettingsInvitesResult(unittest.TestCase):
+ """CommunitySettingsInvitesResult unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CommunitySettingsInvitesResult:
+ """Test CommunitySettingsInvitesResult
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CommunitySettingsInvitesResult`
+ """
+ model = CommunitySettingsInvitesResult()
+ if include_optional:
+ return CommunitySettingsInvitesResult(
+ typename = 'TimelineTweet'
+ )
+ else:
+ return CommunitySettingsInvitesResult(
+ typename = 'TimelineTweet',
+ )
+ """
+
+ def testCommunitySettingsInvitesResult(self):
+ """Test CommunitySettingsInvitesResult"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_community_settings_results.py b/twitter_openapi_python_generated/test/test_community_settings_results.py
new file mode 100644
index 0000000..1fd180c
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_community_settings_results.py
@@ -0,0 +1,249 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.community_settings_results import CommunitySettingsResults
+
+class TestCommunitySettingsResults(unittest.TestCase):
+ """CommunitySettingsResults unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CommunitySettingsResults:
+ """Test CommunitySettingsResults
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CommunitySettingsResults`
+ """
+ model = CommunitySettingsResults()
+ if include_optional:
+ return CommunitySettingsResults(
+ id = '',
+ result = twitter_openapi_python_generated.models.community_settings_community.CommunitySettingsCommunity(
+ __typename = 'TimelineTweet',
+ actions = twitter_openapi_python_generated.models.community_settings_actions.CommunitySettingsActions(
+ id = '',
+ join_action_result = null,
+ list_members_action_result = twitter_openapi_python_generated.models.community_list_members_action_result.CommunityListMembersActionResult(
+ __typename = 'TimelineTweet', ), ),
+ created_at = 56,
+ creator_results = twitter_openapi_python_generated.models.community_settings_creator_results.CommunitySettingsCreatorResults(
+ id = '',
+ result = twitter_openapi_python_generated.models.community_settings_creator.CommunitySettingsCreator(
+ __typename = 'TimelineTweet',
+ core = twitter_openapi_python_generated.models.community_settings_creator_core.CommunitySettingsCreatorCore(
+ screen_name = '', ),
+ id = '',
+ is_blue_verified = True,
+ verification = twitter_openapi_python_generated.models.community_settings_creator_verification.CommunitySettingsCreatorVerification(
+ verified = True, ), ), ),
+ custom_banner_media = twitter_openapi_python_generated.models.community_banner_media.CommunityBannerMedia(
+ id = '',
+ media_info = twitter_openapi_python_generated.models.community_banner_media_info.CommunityBannerMediaInfo(
+ __typename = 'TimelineTweet',
+ color_info = twitter_openapi_python_generated.models.media_color_info.MediaColorInfo(
+ palette = [
+ twitter_openapi_python_generated.models.media_color_info_palette.MediaColorInfoPalette(
+ percentage = 1.337,
+ rgb = twitter_openapi_python_generated.models.media_color_info_palette_rgb.MediaColorInfoPaletteRGB(
+ blue = 56,
+ green = 56,
+ red = 56, ), )
+ ], ),
+ original_img_height = 56,
+ original_img_url = '',
+ original_img_width = 56,
+ salient_rect = twitter_openapi_python_generated.models.media_salient_rect.MediaSalientRect(
+ height = 56,
+ left = 56,
+ top = 56,
+ width = 56, ), ), ),
+ default_banner_media = twitter_openapi_python_generated.models.community_banner_media.CommunityBannerMedia(
+ id = '',
+ media_info = twitter_openapi_python_generated.models.community_banner_media_info.CommunityBannerMediaInfo(
+ __typename = 'TimelineTweet',
+ color_info = twitter_openapi_python_generated.models.media_color_info.MediaColorInfo(
+ palette = [
+ twitter_openapi_python_generated.models.media_color_info_palette.MediaColorInfoPalette(
+ percentage = 1.337,
+ rgb = twitter_openapi_python_generated.models.media_color_info_palette_rgb.MediaColorInfoPaletteRGB(
+ blue = 56,
+ green = 56,
+ red = 56, ), )
+ ], ),
+ original_img_height = 56,
+ original_img_url = '',
+ original_img_width = 56,
+ salient_rect = twitter_openapi_python_generated.models.media_salient_rect.MediaSalientRect(
+ height = 56,
+ left = 56,
+ top = 56,
+ width = 56, ), ), ),
+ description = '',
+ id = '',
+ invites_result = twitter_openapi_python_generated.models.community_settings_invites_result.CommunitySettingsInvitesResult(
+ __typename = 'TimelineTweet', ),
+ is_member = True,
+ is_nsfw = True,
+ join_policy = '',
+ join_requests_result = twitter_openapi_python_generated.models.community_join_requests_result.CommunityJoinRequestsResult(
+ __typename = 'TimelineTweet', ),
+ member_count = 56,
+ members_facepile_results = [
+ twitter_openapi_python_generated.models.community_facepile_user_results.CommunityFacepileUserResults(
+ id = '',
+ result = twitter_openapi_python_generated.models.community_facepile_user.CommunityFacepileUser(
+ __typename = 'TimelineTweet',
+ avatar = twitter_openapi_python_generated.models.user_avatar.UserAvatar(
+ image_url = '', ),
+ id = '', ), )
+ ],
+ name = '',
+ primary_community_topic = twitter_openapi_python_generated.models.community_primary_topic_name.CommunityPrimaryTopicName(
+ topic_name = '', ),
+ rest_id = '4',
+ role = '',
+ rules = [
+ twitter_openapi_python_generated.models.community_relay_rule.CommunityRelayRule(
+ description = '',
+ id = '',
+ name = '',
+ rest_id = '4', )
+ ],
+ trending_hashtags_slice = twitter_openapi_python_generated.models.community_hashtag_slice.CommunityHashtagSlice(
+ __typename = 'TimelineTweet',
+ items = [
+ twitter_openapi_python_generated.models.community_hashtag.CommunityHashtag(
+ hashtag = '',
+ id = '', )
+ ], ), )
+ )
+ else:
+ return CommunitySettingsResults(
+ id = '',
+ result = twitter_openapi_python_generated.models.community_settings_community.CommunitySettingsCommunity(
+ __typename = 'TimelineTweet',
+ actions = twitter_openapi_python_generated.models.community_settings_actions.CommunitySettingsActions(
+ id = '',
+ join_action_result = null,
+ list_members_action_result = twitter_openapi_python_generated.models.community_list_members_action_result.CommunityListMembersActionResult(
+ __typename = 'TimelineTweet', ), ),
+ created_at = 56,
+ creator_results = twitter_openapi_python_generated.models.community_settings_creator_results.CommunitySettingsCreatorResults(
+ id = '',
+ result = twitter_openapi_python_generated.models.community_settings_creator.CommunitySettingsCreator(
+ __typename = 'TimelineTweet',
+ core = twitter_openapi_python_generated.models.community_settings_creator_core.CommunitySettingsCreatorCore(
+ screen_name = '', ),
+ id = '',
+ is_blue_verified = True,
+ verification = twitter_openapi_python_generated.models.community_settings_creator_verification.CommunitySettingsCreatorVerification(
+ verified = True, ), ), ),
+ custom_banner_media = twitter_openapi_python_generated.models.community_banner_media.CommunityBannerMedia(
+ id = '',
+ media_info = twitter_openapi_python_generated.models.community_banner_media_info.CommunityBannerMediaInfo(
+ __typename = 'TimelineTweet',
+ color_info = twitter_openapi_python_generated.models.media_color_info.MediaColorInfo(
+ palette = [
+ twitter_openapi_python_generated.models.media_color_info_palette.MediaColorInfoPalette(
+ percentage = 1.337,
+ rgb = twitter_openapi_python_generated.models.media_color_info_palette_rgb.MediaColorInfoPaletteRGB(
+ blue = 56,
+ green = 56,
+ red = 56, ), )
+ ], ),
+ original_img_height = 56,
+ original_img_url = '',
+ original_img_width = 56,
+ salient_rect = twitter_openapi_python_generated.models.media_salient_rect.MediaSalientRect(
+ height = 56,
+ left = 56,
+ top = 56,
+ width = 56, ), ), ),
+ default_banner_media = twitter_openapi_python_generated.models.community_banner_media.CommunityBannerMedia(
+ id = '',
+ media_info = twitter_openapi_python_generated.models.community_banner_media_info.CommunityBannerMediaInfo(
+ __typename = 'TimelineTweet',
+ color_info = twitter_openapi_python_generated.models.media_color_info.MediaColorInfo(
+ palette = [
+ twitter_openapi_python_generated.models.media_color_info_palette.MediaColorInfoPalette(
+ percentage = 1.337,
+ rgb = twitter_openapi_python_generated.models.media_color_info_palette_rgb.MediaColorInfoPaletteRGB(
+ blue = 56,
+ green = 56,
+ red = 56, ), )
+ ], ),
+ original_img_height = 56,
+ original_img_url = '',
+ original_img_width = 56,
+ salient_rect = twitter_openapi_python_generated.models.media_salient_rect.MediaSalientRect(
+ height = 56,
+ left = 56,
+ top = 56,
+ width = 56, ), ), ),
+ description = '',
+ id = '',
+ invites_result = twitter_openapi_python_generated.models.community_settings_invites_result.CommunitySettingsInvitesResult(
+ __typename = 'TimelineTweet', ),
+ is_member = True,
+ is_nsfw = True,
+ join_policy = '',
+ join_requests_result = twitter_openapi_python_generated.models.community_join_requests_result.CommunityJoinRequestsResult(
+ __typename = 'TimelineTweet', ),
+ member_count = 56,
+ members_facepile_results = [
+ twitter_openapi_python_generated.models.community_facepile_user_results.CommunityFacepileUserResults(
+ id = '',
+ result = twitter_openapi_python_generated.models.community_facepile_user.CommunityFacepileUser(
+ __typename = 'TimelineTweet',
+ avatar = twitter_openapi_python_generated.models.user_avatar.UserAvatar(
+ image_url = '', ),
+ id = '', ), )
+ ],
+ name = '',
+ primary_community_topic = twitter_openapi_python_generated.models.community_primary_topic_name.CommunityPrimaryTopicName(
+ topic_name = '', ),
+ rest_id = '4',
+ role = '',
+ rules = [
+ twitter_openapi_python_generated.models.community_relay_rule.CommunityRelayRule(
+ description = '',
+ id = '',
+ name = '',
+ rest_id = '4', )
+ ],
+ trending_hashtags_slice = twitter_openapi_python_generated.models.community_hashtag_slice.CommunityHashtagSlice(
+ __typename = 'TimelineTweet',
+ items = [
+ twitter_openapi_python_generated.models.community_hashtag.CommunityHashtag(
+ hashtag = '',
+ id = '', )
+ ], ), ),
+ )
+ """
+
+ def testCommunitySettingsResults(self):
+ """Test CommunitySettingsResults"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_community_subtopic.py b/twitter_openapi_python_generated/test/test_community_subtopic.py
new file mode 100644
index 0000000..84a84ed
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_community_subtopic.py
@@ -0,0 +1,55 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.community_subtopic import CommunitySubtopic
+
+class TestCommunitySubtopic(unittest.TestCase):
+ """CommunitySubtopic unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CommunitySubtopic:
+ """Test CommunitySubtopic
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CommunitySubtopic`
+ """
+ model = CommunitySubtopic()
+ if include_optional:
+ return CommunitySubtopic(
+ topic_id = '4',
+ topic_name = ''
+ )
+ else:
+ return CommunitySubtopic(
+ topic_id = '4',
+ topic_name = '',
+ )
+ """
+
+ def testCommunitySubtopic(self):
+ """Test CommunitySubtopic"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_community_topic.py b/twitter_openapi_python_generated/test/test_community_topic.py
new file mode 100644
index 0000000..36c5bda
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_community_topic.py
@@ -0,0 +1,65 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.community_topic import CommunityTopic
+
+class TestCommunityTopic(unittest.TestCase):
+ """CommunityTopic unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CommunityTopic:
+ """Test CommunityTopic
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CommunityTopic`
+ """
+ model = CommunityTopic()
+ if include_optional:
+ return CommunityTopic(
+ subtopics = [
+ twitter_openapi_python_generated.models.community_subtopic.CommunitySubtopic(
+ topic_id = '4',
+ topic_name = '', )
+ ],
+ topic_id = '4',
+ topic_name = ''
+ )
+ else:
+ return CommunityTopic(
+ subtopics = [
+ twitter_openapi_python_generated.models.community_subtopic.CommunitySubtopic(
+ topic_id = '4',
+ topic_name = '', )
+ ],
+ topic_id = '4',
+ topic_name = '',
+ )
+ """
+
+ def testCommunityTopic(self):
+ """Test CommunityTopic"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_community_topic_results.py b/twitter_openapi_python_generated/test/test_community_topic_results.py
new file mode 100644
index 0000000..5f43bd3
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_community_topic_results.py
@@ -0,0 +1,71 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.community_topic_results import CommunityTopicResults
+
+class TestCommunityTopicResults(unittest.TestCase):
+ """CommunityTopicResults unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CommunityTopicResults:
+ """Test CommunityTopicResults
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CommunityTopicResults`
+ """
+ model = CommunityTopicResults()
+ if include_optional:
+ return CommunityTopicResults(
+ community_topics = [
+ twitter_openapi_python_generated.models.community_topic.CommunityTopic(
+ subtopics = [
+ twitter_openapi_python_generated.models.community_subtopic.CommunitySubtopic(
+ topic_id = '4',
+ topic_name = '', )
+ ],
+ topic_id = '4',
+ topic_name = '', )
+ ]
+ )
+ else:
+ return CommunityTopicResults(
+ community_topics = [
+ twitter_openapi_python_generated.models.community_topic.CommunityTopic(
+ subtopics = [
+ twitter_openapi_python_generated.models.community_subtopic.CommunitySubtopic(
+ topic_id = '4',
+ topic_name = '', )
+ ],
+ topic_id = '4',
+ topic_name = '', )
+ ],
+ )
+ """
+
+ def testCommunityTopicResults(self):
+ """Test CommunityTopicResults"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_community_tweets_timeline_response.py b/twitter_openapi_python_generated/test/test_community_tweets_timeline_response.py
index 42b50a9..aa14d46 100644
--- a/twitter_openapi_python_generated/test/test_community_tweets_timeline_response.py
+++ b/twitter_openapi_python_generated/test/test_community_tweets_timeline_response.py
@@ -65,7 +65,7 @@ def make_instance(self, include_optional) -> CommunityTweetsTimelineResponse:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -130,7 +130,7 @@ def make_instance(self, include_optional) -> CommunityTweetsTimelineResponse:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_connect_tab_timeline_response.py b/twitter_openapi_python_generated/test/test_connect_tab_timeline_response.py
index 80a0fc6..8779ec0 100644
--- a/twitter_openapi_python_generated/test/test_connect_tab_timeline_response.py
+++ b/twitter_openapi_python_generated/test/test_connect_tab_timeline_response.py
@@ -62,7 +62,7 @@ def make_instance(self, include_optional) -> ConnectTabTimelineResponse:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -124,7 +124,7 @@ def make_instance(self, include_optional) -> ConnectTabTimelineResponse:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_connect_tab_timeline_response_data.py b/twitter_openapi_python_generated/test/test_connect_tab_timeline_response_data.py
index 7739935..e9e2a10 100644
--- a/twitter_openapi_python_generated/test/test_connect_tab_timeline_response_data.py
+++ b/twitter_openapi_python_generated/test/test_connect_tab_timeline_response_data.py
@@ -61,7 +61,7 @@ def make_instance(self, include_optional) -> ConnectTabTimelineResponseData:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -95,7 +95,7 @@ def make_instance(self, include_optional) -> ConnectTabTimelineResponseData:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_content_union.py b/twitter_openapi_python_generated/test/test_content_union.py
index 4d52163..2c76a1d 100644
--- a/twitter_openapi_python_generated/test/test_content_union.py
+++ b/twitter_openapi_python_generated/test/test_content_union.py
@@ -42,6 +42,9 @@ def make_instance(self, include_optional) -> ContentUnion:
details = twitter_openapi_python_generated.models.client_event_info_details.ClientEventInfoDetails(
conversation_details = twitter_openapi_python_generated.models.conversation_details.ConversationDetails(
conversation_section = 'HighQuality', ),
+ notification_details = twitter_openapi_python_generated.models.notification_details.NotificationDetails(
+ impression_id = '',
+ metadata = '', ),
timelines_details = twitter_openapi_python_generated.models.timelines_details.TimelinesDetails(
controller_data = '',
injection_type = '',
@@ -60,7 +63,7 @@ def make_instance(self, include_optional) -> ContentUnion:
item_content = None,
display_type = 'Vertical',
footer = twitter_openapi_python_generated.models.module_footer.ModuleFooter(
- display_type = 'Classic',
+ display_type = '',
landing_url = twitter_openapi_python_generated.models.landing_url.LandingUrl(
url = '',
url_type = 'DeepLink', ),
@@ -79,6 +82,9 @@ def make_instance(self, include_optional) -> ContentUnion:
details = twitter_openapi_python_generated.models.client_event_info_details.ClientEventInfoDetails(
conversation_details = twitter_openapi_python_generated.models.conversation_details.ConversationDetails(
conversation_section = 'HighQuality', ),
+ notification_details = twitter_openapi_python_generated.models.notification_details.NotificationDetails(
+ impression_id = '',
+ metadata = '', ),
timelines_details = twitter_openapi_python_generated.models.timelines_details.TimelinesDetails(
controller_data = '',
injection_type = '',
diff --git a/twitter_openapi_python_generated/test/test_creator_studio_tab_bar_item_query_response.py b/twitter_openapi_python_generated/test/test_creator_studio_tab_bar_item_query_response.py
new file mode 100644
index 0000000..0b3e7a7
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_creator_studio_tab_bar_item_query_response.py
@@ -0,0 +1,86 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.creator_studio_tab_bar_item_query_response import CreatorStudioTabBarItemQueryResponse
+
+class TestCreatorStudioTabBarItemQueryResponse(unittest.TestCase):
+ """CreatorStudioTabBarItemQueryResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreatorStudioTabBarItemQueryResponse:
+ """Test CreatorStudioTabBarItemQueryResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreatorStudioTabBarItemQueryResponse`
+ """
+ model = CreatorStudioTabBarItemQueryResponse()
+ if include_optional:
+ return CreatorStudioTabBarItemQueryResponse(
+ data = twitter_openapi_python_generated.models.creator_studio_tab_bar_item_query_response_data.CreatorStudioTabBarItemQueryResponseData(
+ xpayments_audience_rewards_tasks = [
+ None
+ ], ),
+ errors = [
+ twitter_openapi_python_generated.models.error_response.ErrorResponse(
+ code = 56,
+ extensions = twitter_openapi_python_generated.models.error_extensions.ErrorExtensions(
+ code = 56,
+ kind = '',
+ name = '',
+ retry_after = 56,
+ source = '',
+ tracing = twitter_openapi_python_generated.models.tracing.Tracing(
+ trace_id = 'bf325375e030fccb', ), ),
+ kind = '',
+ locations = [
+ twitter_openapi_python_generated.models.location.Location(
+ column = 56,
+ line = 56, )
+ ],
+ message = '',
+ name = '',
+ path = [
+ null
+ ],
+ retry_after = 56,
+ source = '',
+ tracing = twitter_openapi_python_generated.models.tracing.Tracing(
+ trace_id = 'bf325375e030fccb', ), )
+ ]
+ )
+ else:
+ return CreatorStudioTabBarItemQueryResponse(
+ data = twitter_openapi_python_generated.models.creator_studio_tab_bar_item_query_response_data.CreatorStudioTabBarItemQueryResponseData(
+ xpayments_audience_rewards_tasks = [
+ None
+ ], ),
+ )
+ """
+
+ def testCreatorStudioTabBarItemQueryResponse(self):
+ """Test CreatorStudioTabBarItemQueryResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_creator_studio_tab_bar_item_query_response_data.py b/twitter_openapi_python_generated/test/test_creator_studio_tab_bar_item_query_response_data.py
new file mode 100644
index 0000000..dc3d4c4
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_creator_studio_tab_bar_item_query_response_data.py
@@ -0,0 +1,57 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.creator_studio_tab_bar_item_query_response_data import CreatorStudioTabBarItemQueryResponseData
+
+class TestCreatorStudioTabBarItemQueryResponseData(unittest.TestCase):
+ """CreatorStudioTabBarItemQueryResponseData unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreatorStudioTabBarItemQueryResponseData:
+ """Test CreatorStudioTabBarItemQueryResponseData
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreatorStudioTabBarItemQueryResponseData`
+ """
+ model = CreatorStudioTabBarItemQueryResponseData()
+ if include_optional:
+ return CreatorStudioTabBarItemQueryResponseData(
+ xpayments_audience_rewards_tasks = [
+ None
+ ]
+ )
+ else:
+ return CreatorStudioTabBarItemQueryResponseData(
+ xpayments_audience_rewards_tasks = [
+ None
+ ],
+ )
+ """
+
+ def testCreatorStudioTabBarItemQueryResponseData(self):
+ """Test CreatorStudioTabBarItemQueryResponseData"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_data_saver_mode_response.py b/twitter_openapi_python_generated/test/test_data_saver_mode_response.py
new file mode 100644
index 0000000..c3d2cea
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_data_saver_mode_response.py
@@ -0,0 +1,82 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.data_saver_mode_response import DataSaverModeResponse
+
+class TestDataSaverModeResponse(unittest.TestCase):
+ """DataSaverModeResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> DataSaverModeResponse:
+ """Test DataSaverModeResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `DataSaverModeResponse`
+ """
+ model = DataSaverModeResponse()
+ if include_optional:
+ return DataSaverModeResponse(
+ data = twitter_openapi_python_generated.models.data_saver_mode_response_data.DataSaverModeResponseData(
+ viewer = twitter_openapi_python_generated.models.viewer.viewer(), ),
+ errors = [
+ twitter_openapi_python_generated.models.error_response.ErrorResponse(
+ code = 56,
+ extensions = twitter_openapi_python_generated.models.error_extensions.ErrorExtensions(
+ code = 56,
+ kind = '',
+ name = '',
+ retry_after = 56,
+ source = '',
+ tracing = twitter_openapi_python_generated.models.tracing.Tracing(
+ trace_id = 'bf325375e030fccb', ), ),
+ kind = '',
+ locations = [
+ twitter_openapi_python_generated.models.location.Location(
+ column = 56,
+ line = 56, )
+ ],
+ message = '',
+ name = '',
+ path = [
+ null
+ ],
+ retry_after = 56,
+ source = '',
+ tracing = twitter_openapi_python_generated.models.tracing.Tracing(
+ trace_id = 'bf325375e030fccb', ), )
+ ]
+ )
+ else:
+ return DataSaverModeResponse(
+ data = twitter_openapi_python_generated.models.data_saver_mode_response_data.DataSaverModeResponseData(
+ viewer = twitter_openapi_python_generated.models.viewer.viewer(), ),
+ )
+ """
+
+ def testDataSaverModeResponse(self):
+ """Test DataSaverModeResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_data_saver_mode_response_data.py b/twitter_openapi_python_generated/test/test_data_saver_mode_response_data.py
new file mode 100644
index 0000000..7571698
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_data_saver_mode_response_data.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.data_saver_mode_response_data import DataSaverModeResponseData
+
+class TestDataSaverModeResponseData(unittest.TestCase):
+ """DataSaverModeResponseData unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> DataSaverModeResponseData:
+ """Test DataSaverModeResponseData
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `DataSaverModeResponseData`
+ """
+ model = DataSaverModeResponseData()
+ if include_optional:
+ return DataSaverModeResponseData(
+ viewer = twitter_openapi_python_generated.models.viewer.viewer()
+ )
+ else:
+ return DataSaverModeResponseData(
+ viewer = twitter_openapi_python_generated.models.viewer.viewer(),
+ )
+ """
+
+ def testDataSaverModeResponseData(self):
+ """Test DataSaverModeResponseData"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_default_api.py b/twitter_openapi_python_generated/test/test_default_api.py
index 0a47afd..3f2cb5c 100644
--- a/twitter_openapi_python_generated/test/test_default_api.py
+++ b/twitter_openapi_python_generated/test/test_default_api.py
@@ -27,6 +27,36 @@ def setUp(self) -> None:
def tearDown(self) -> None:
pass
+ def test_get_authenticate_periscope(self) -> None:
+ """Test case for get_authenticate_periscope
+
+ """
+ pass
+
+ def test_get_creator_studio_tab_bar_item_query(self) -> None:
+ """Test case for get_creator_studio_tab_bar_item_query
+
+ """
+ pass
+
+ def test_get_data_saver_mode(self) -> None:
+ """Test case for get_data_saver_mode
+
+ """
+ pass
+
+ def test_get_grok_home(self) -> None:
+ """Test case for get_grok_home
+
+ """
+ pass
+
+ def test_get_pinned_timelines(self) -> None:
+ """Test case for get_pinned_timelines
+
+ """
+ pass
+
def test_get_profile_spotlights_query(self) -> None:
"""Test case for get_profile_spotlights_query
diff --git a/twitter_openapi_python_generated/test/test_event_summary_ad_metadata_container.py b/twitter_openapi_python_generated/test/test_event_summary_ad_metadata_container.py
new file mode 100644
index 0000000..20fab6b
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_event_summary_ad_metadata_container.py
@@ -0,0 +1,55 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.event_summary_ad_metadata_container import EventSummaryAdMetadataContainer
+
+class TestEventSummaryAdMetadataContainer(unittest.TestCase):
+ """EventSummaryAdMetadataContainer unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> EventSummaryAdMetadataContainer:
+ """Test EventSummaryAdMetadataContainer
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `EventSummaryAdMetadataContainer`
+ """
+ model = EventSummaryAdMetadataContainer()
+ if include_optional:
+ return EventSummaryAdMetadataContainer(
+ is_quick_promote = True,
+ render_sales_cta_website_card = True
+ )
+ else:
+ return EventSummaryAdMetadataContainer(
+ is_quick_promote = True,
+ render_sales_cta_website_card = True,
+ )
+ """
+
+ def testEventSummaryAdMetadataContainer(self):
+ """Test EventSummaryAdMetadataContainer"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_event_summary_event.py b/twitter_openapi_python_generated/test/test_event_summary_event.py
new file mode 100644
index 0000000..c900652
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_event_summary_event.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.event_summary_event import EventSummaryEvent
+
+class TestEventSummaryEvent(unittest.TestCase):
+ """EventSummaryEvent unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> EventSummaryEvent:
+ """Test EventSummaryEvent
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `EventSummaryEvent`
+ """
+ model = EventSummaryEvent()
+ if include_optional:
+ return EventSummaryEvent(
+ rest_id = '4'
+ )
+ else:
+ return EventSummaryEvent(
+ rest_id = '4',
+ )
+ """
+
+ def testEventSummaryEvent(self):
+ """Test EventSummaryEvent"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_event_summary_media.py b/twitter_openapi_python_generated/test/test_event_summary_media.py
new file mode 100644
index 0000000..1dec8ef
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_event_summary_media.py
@@ -0,0 +1,67 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.event_summary_media import EventSummaryMedia
+
+class TestEventSummaryMedia(unittest.TestCase):
+ """EventSummaryMedia unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> EventSummaryMedia:
+ """Test EventSummaryMedia
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `EventSummaryMedia`
+ """
+ model = EventSummaryMedia()
+ if include_optional:
+ return EventSummaryMedia(
+ media_entity = twitter_openapi_python_generated.models.event_summary_media_entity.EventSummaryMediaEntity(
+ tweet_results = twitter_openapi_python_generated.models.item_result.ItemResult(
+ __typename = 'TimelineTweet',
+ result = null, ),
+ type = '', ),
+ media_key = twitter_openapi_python_generated.models.event_summary_media_key.EventSummaryMediaKey(
+ category = 56,
+ id = '', )
+ )
+ else:
+ return EventSummaryMedia(
+ media_entity = twitter_openapi_python_generated.models.event_summary_media_entity.EventSummaryMediaEntity(
+ tweet_results = twitter_openapi_python_generated.models.item_result.ItemResult(
+ __typename = 'TimelineTweet',
+ result = null, ),
+ type = '', ),
+ media_key = twitter_openapi_python_generated.models.event_summary_media_key.EventSummaryMediaKey(
+ category = 56,
+ id = '', ),
+ )
+ """
+
+ def testEventSummaryMedia(self):
+ """Test EventSummaryMedia"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_event_summary_media_entity.py b/twitter_openapi_python_generated/test/test_event_summary_media_entity.py
new file mode 100644
index 0000000..7fe7c30
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_event_summary_media_entity.py
@@ -0,0 +1,59 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.event_summary_media_entity import EventSummaryMediaEntity
+
+class TestEventSummaryMediaEntity(unittest.TestCase):
+ """EventSummaryMediaEntity unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> EventSummaryMediaEntity:
+ """Test EventSummaryMediaEntity
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `EventSummaryMediaEntity`
+ """
+ model = EventSummaryMediaEntity()
+ if include_optional:
+ return EventSummaryMediaEntity(
+ tweet_results = twitter_openapi_python_generated.models.item_result.ItemResult(
+ __typename = 'TimelineTweet',
+ result = null, ),
+ type = ''
+ )
+ else:
+ return EventSummaryMediaEntity(
+ tweet_results = twitter_openapi_python_generated.models.item_result.ItemResult(
+ __typename = 'TimelineTweet',
+ result = null, ),
+ type = '',
+ )
+ """
+
+ def testEventSummaryMediaEntity(self):
+ """Test EventSummaryMediaEntity"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_event_summary_media_key.py b/twitter_openapi_python_generated/test/test_event_summary_media_key.py
new file mode 100644
index 0000000..41fbf82
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_event_summary_media_key.py
@@ -0,0 +1,55 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.event_summary_media_key import EventSummaryMediaKey
+
+class TestEventSummaryMediaKey(unittest.TestCase):
+ """EventSummaryMediaKey unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> EventSummaryMediaKey:
+ """Test EventSummaryMediaKey
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `EventSummaryMediaKey`
+ """
+ model = EventSummaryMediaKey()
+ if include_optional:
+ return EventSummaryMediaKey(
+ category = 56,
+ id = ''
+ )
+ else:
+ return EventSummaryMediaKey(
+ category = 56,
+ id = '',
+ )
+ """
+
+ def testEventSummaryMediaKey(self):
+ """Test EventSummaryMediaKey"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_event_summary_promoted_metadata.py b/twitter_openapi_python_generated/test/test_event_summary_promoted_metadata.py
new file mode 100644
index 0000000..5c979bc
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_event_summary_promoted_metadata.py
@@ -0,0 +1,77 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.event_summary_promoted_metadata import EventSummaryPromotedMetadata
+
+class TestEventSummaryPromotedMetadata(unittest.TestCase):
+ """EventSummaryPromotedMetadata unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> EventSummaryPromotedMetadata:
+ """Test EventSummaryPromotedMetadata
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `EventSummaryPromotedMetadata`
+ """
+ model = EventSummaryPromotedMetadata()
+ if include_optional:
+ return EventSummaryPromotedMetadata(
+ ad_metadata_container = twitter_openapi_python_generated.models.event_summary_ad_metadata_container.EventSummaryAdMetadataContainer(
+ is_quick_promote = True,
+ render_sales_cta_website_card = True, ),
+ advertiser_results = twitter_openapi_python_generated.models.user_results.UserResults(
+ result = null, ),
+ disclosure_type = '',
+ impression_id = '',
+ impression_string = '',
+ promoted_trend = twitter_openapi_python_generated.models.promoted_trend.PromotedTrend(
+ rest_id = '4', ),
+ promoted_trend_description = '',
+ promoted_trend_name = '',
+ promoted_trend_query_term = ''
+ )
+ else:
+ return EventSummaryPromotedMetadata(
+ ad_metadata_container = twitter_openapi_python_generated.models.event_summary_ad_metadata_container.EventSummaryAdMetadataContainer(
+ is_quick_promote = True,
+ render_sales_cta_website_card = True, ),
+ advertiser_results = twitter_openapi_python_generated.models.user_results.UserResults(
+ result = null, ),
+ disclosure_type = '',
+ impression_id = '',
+ impression_string = '',
+ promoted_trend = twitter_openapi_python_generated.models.promoted_trend.PromotedTrend(
+ rest_id = '4', ),
+ promoted_trend_description = '',
+ promoted_trend_name = '',
+ promoted_trend_query_term = '',
+ )
+ """
+
+ def testEventSummaryPromotedMetadata(self):
+ """Test EventSummaryPromotedMetadata"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_explore_sidebar_response.py b/twitter_openapi_python_generated/test/test_explore_sidebar_response.py
new file mode 100644
index 0000000..2932547
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_explore_sidebar_response.py
@@ -0,0 +1,142 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.explore_sidebar_response import ExploreSidebarResponse
+
+class TestExploreSidebarResponse(unittest.TestCase):
+ """ExploreSidebarResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ExploreSidebarResponse:
+ """Test ExploreSidebarResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ExploreSidebarResponse`
+ """
+ model = ExploreSidebarResponse()
+ if include_optional:
+ return ExploreSidebarResponse(
+ data = twitter_openapi_python_generated.models.explore_sidebar_response_data.ExploreSidebarResponseData(
+ explore_sidebar = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '',
+ timeline = twitter_openapi_python_generated.models.timeline.Timeline(
+ instructions = [
+ null
+ ],
+ metadata = twitter_openapi_python_generated.models.timeline_metadata.TimelineMetadata(
+ reader_mode_config = twitter_openapi_python_generated.models.reader_mode_config.ReaderModeConfig(
+ is_reader_mode_available = True, ),
+ scribe_config = twitter_openapi_python_generated.models.scribe_config.ScribeConfig(
+ page = '', ), ),
+ response_objects = twitter_openapi_python_generated.models.timeline_response_objects.TimelineResponseObjects(
+ feedback_actions = [
+ twitter_openapi_python_generated.models.feedback_action_entry.FeedbackActionEntry(
+ key = '',
+ value = twitter_openapi_python_generated.models.feedback_action.FeedbackAction(
+ child_keys = [
+ ''
+ ],
+ client_event_info = twitter_openapi_python_generated.models.feedback_client_event_info.FeedbackClientEventInfo(
+ action = '',
+ component = '',
+ element = '', ),
+ confirmation = '',
+ confirmation_display_type = 'BottomSheet',
+ feedback_type = '',
+ feedback_url = '',
+ has_undo_action = True,
+ icon = 'Frown',
+ prompt = '', ), )
+ ], ), ), ), ),
+ errors = [
+ twitter_openapi_python_generated.models.error_response.ErrorResponse(
+ code = 56,
+ extensions = twitter_openapi_python_generated.models.error_extensions.ErrorExtensions(
+ code = 56,
+ kind = '',
+ name = '',
+ retry_after = 56,
+ source = '',
+ tracing = twitter_openapi_python_generated.models.tracing.Tracing(
+ trace_id = 'bf325375e030fccb', ), ),
+ kind = '',
+ locations = [
+ twitter_openapi_python_generated.models.location.Location(
+ column = 56,
+ line = 56, )
+ ],
+ message = '',
+ name = '',
+ path = [
+ null
+ ],
+ retry_after = 56,
+ source = '',
+ tracing = twitter_openapi_python_generated.models.tracing.Tracing(
+ trace_id = 'bf325375e030fccb', ), )
+ ]
+ )
+ else:
+ return ExploreSidebarResponse(
+ data = twitter_openapi_python_generated.models.explore_sidebar_response_data.ExploreSidebarResponseData(
+ explore_sidebar = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '',
+ timeline = twitter_openapi_python_generated.models.timeline.Timeline(
+ instructions = [
+ null
+ ],
+ metadata = twitter_openapi_python_generated.models.timeline_metadata.TimelineMetadata(
+ reader_mode_config = twitter_openapi_python_generated.models.reader_mode_config.ReaderModeConfig(
+ is_reader_mode_available = True, ),
+ scribe_config = twitter_openapi_python_generated.models.scribe_config.ScribeConfig(
+ page = '', ), ),
+ response_objects = twitter_openapi_python_generated.models.timeline_response_objects.TimelineResponseObjects(
+ feedback_actions = [
+ twitter_openapi_python_generated.models.feedback_action_entry.FeedbackActionEntry(
+ key = '',
+ value = twitter_openapi_python_generated.models.feedback_action.FeedbackAction(
+ child_keys = [
+ ''
+ ],
+ client_event_info = twitter_openapi_python_generated.models.feedback_client_event_info.FeedbackClientEventInfo(
+ action = '',
+ component = '',
+ element = '', ),
+ confirmation = '',
+ confirmation_display_type = 'BottomSheet',
+ feedback_type = '',
+ feedback_url = '',
+ has_undo_action = True,
+ icon = 'Frown',
+ prompt = '', ), )
+ ], ), ), ), ),
+ )
+ """
+
+ def testExploreSidebarResponse(self):
+ """Test ExploreSidebarResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_explore_sidebar_response_data.py b/twitter_openapi_python_generated/test/test_explore_sidebar_response_data.py
new file mode 100644
index 0000000..df9c0f1
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_explore_sidebar_response_data.py
@@ -0,0 +1,113 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.explore_sidebar_response_data import ExploreSidebarResponseData
+
+class TestExploreSidebarResponseData(unittest.TestCase):
+ """ExploreSidebarResponseData unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ExploreSidebarResponseData:
+ """Test ExploreSidebarResponseData
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ExploreSidebarResponseData`
+ """
+ model = ExploreSidebarResponseData()
+ if include_optional:
+ return ExploreSidebarResponseData(
+ explore_sidebar = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '',
+ timeline = twitter_openapi_python_generated.models.timeline.Timeline(
+ instructions = [
+ null
+ ],
+ metadata = twitter_openapi_python_generated.models.timeline_metadata.TimelineMetadata(
+ reader_mode_config = twitter_openapi_python_generated.models.reader_mode_config.ReaderModeConfig(
+ is_reader_mode_available = True, ),
+ scribe_config = twitter_openapi_python_generated.models.scribe_config.ScribeConfig(
+ page = '', ), ),
+ response_objects = twitter_openapi_python_generated.models.timeline_response_objects.TimelineResponseObjects(
+ feedback_actions = [
+ twitter_openapi_python_generated.models.feedback_action_entry.FeedbackActionEntry(
+ key = '',
+ value = twitter_openapi_python_generated.models.feedback_action.FeedbackAction(
+ child_keys = [
+ ''
+ ],
+ client_event_info = twitter_openapi_python_generated.models.feedback_client_event_info.FeedbackClientEventInfo(
+ action = '',
+ component = '',
+ element = '', ),
+ confirmation = '',
+ confirmation_display_type = 'BottomSheet',
+ feedback_type = '',
+ feedback_url = '',
+ has_undo_action = True,
+ icon = 'Frown',
+ prompt = '', ), )
+ ], ), ), )
+ )
+ else:
+ return ExploreSidebarResponseData(
+ explore_sidebar = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '',
+ timeline = twitter_openapi_python_generated.models.timeline.Timeline(
+ instructions = [
+ null
+ ],
+ metadata = twitter_openapi_python_generated.models.timeline_metadata.TimelineMetadata(
+ reader_mode_config = twitter_openapi_python_generated.models.reader_mode_config.ReaderModeConfig(
+ is_reader_mode_available = True, ),
+ scribe_config = twitter_openapi_python_generated.models.scribe_config.ScribeConfig(
+ page = '', ), ),
+ response_objects = twitter_openapi_python_generated.models.timeline_response_objects.TimelineResponseObjects(
+ feedback_actions = [
+ twitter_openapi_python_generated.models.feedback_action_entry.FeedbackActionEntry(
+ key = '',
+ value = twitter_openapi_python_generated.models.feedback_action.FeedbackAction(
+ child_keys = [
+ ''
+ ],
+ client_event_info = twitter_openapi_python_generated.models.feedback_client_event_info.FeedbackClientEventInfo(
+ action = '',
+ component = '',
+ element = '', ),
+ confirmation = '',
+ confirmation_display_type = 'BottomSheet',
+ feedback_type = '',
+ feedback_url = '',
+ has_undo_action = True,
+ icon = 'Frown',
+ prompt = '', ), )
+ ], ), ), ),
+ )
+ """
+
+ def testExploreSidebarResponseData(self):
+ """Test ExploreSidebarResponseData"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_feedback_action.py b/twitter_openapi_python_generated/test/test_feedback_action.py
index 8a4812e..13dea22 100644
--- a/twitter_openapi_python_generated/test/test_feedback_action.py
+++ b/twitter_openapi_python_generated/test/test_feedback_action.py
@@ -45,7 +45,7 @@ def make_instance(self, include_optional) -> FeedbackAction:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -54,7 +54,7 @@ def make_instance(self, include_optional) -> FeedbackAction:
else:
return FeedbackAction(
confirmation = '',
- feedback_type = 'DontLike',
+ feedback_type = '',
has_undo_action = True,
prompt = '',
)
diff --git a/twitter_openapi_python_generated/test/test_feedback_action_entry.py b/twitter_openapi_python_generated/test/test_feedback_action_entry.py
index a659472..5ec0dd1 100644
--- a/twitter_openapi_python_generated/test/test_feedback_action_entry.py
+++ b/twitter_openapi_python_generated/test/test_feedback_action_entry.py
@@ -47,7 +47,7 @@ def make_instance(self, include_optional) -> FeedbackActionEntry:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -66,7 +66,7 @@ def make_instance(self, include_optional) -> FeedbackActionEntry:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_follow_response.py b/twitter_openapi_python_generated/test/test_follow_response.py
index 30e7609..8b3154a 100644
--- a/twitter_openapi_python_generated/test/test_follow_response.py
+++ b/twitter_openapi_python_generated/test/test_follow_response.py
@@ -64,7 +64,7 @@ def make_instance(self, include_optional) -> FollowResponse:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -128,7 +128,7 @@ def make_instance(self, include_optional) -> FollowResponse:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_follow_response_data.py b/twitter_openapi_python_generated/test/test_follow_response_data.py
index 72bb07e..4184665 100644
--- a/twitter_openapi_python_generated/test/test_follow_response_data.py
+++ b/twitter_openapi_python_generated/test/test_follow_response_data.py
@@ -63,7 +63,7 @@ def make_instance(self, include_optional) -> FollowResponseData:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_follow_response_result.py b/twitter_openapi_python_generated/test/test_follow_response_result.py
index 42d01e1..836dee2 100644
--- a/twitter_openapi_python_generated/test/test_follow_response_result.py
+++ b/twitter_openapi_python_generated/test/test_follow_response_result.py
@@ -61,7 +61,7 @@ def make_instance(self, include_optional) -> FollowResponseResult:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -95,7 +95,7 @@ def make_instance(self, include_optional) -> FollowResponseResult:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_follow_response_user.py b/twitter_openapi_python_generated/test/test_follow_response_user.py
index 9f620f6..f7a9693 100644
--- a/twitter_openapi_python_generated/test/test_follow_response_user.py
+++ b/twitter_openapi_python_generated/test/test_follow_response_user.py
@@ -62,7 +62,7 @@ def make_instance(self, include_optional) -> FollowResponseUser:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -97,7 +97,7 @@ def make_instance(self, include_optional) -> FollowResponseUser:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_follow_timeline.py b/twitter_openapi_python_generated/test/test_follow_timeline.py
index 84d0f3f..a90cb40 100644
--- a/twitter_openapi_python_generated/test/test_follow_timeline.py
+++ b/twitter_openapi_python_generated/test/test_follow_timeline.py
@@ -59,7 +59,7 @@ def make_instance(self, include_optional) -> FollowTimeline:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -91,7 +91,7 @@ def make_instance(self, include_optional) -> FollowTimeline:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_global_communities_latest_post_search.py b/twitter_openapi_python_generated/test/test_global_communities_latest_post_search.py
new file mode 100644
index 0000000..1ef62e2
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_global_communities_latest_post_search.py
@@ -0,0 +1,113 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.global_communities_latest_post_search import GlobalCommunitiesLatestPostSearch
+
+class TestGlobalCommunitiesLatestPostSearch(unittest.TestCase):
+ """GlobalCommunitiesLatestPostSearch unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GlobalCommunitiesLatestPostSearch:
+ """Test GlobalCommunitiesLatestPostSearch
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GlobalCommunitiesLatestPostSearch`
+ """
+ model = GlobalCommunitiesLatestPostSearch()
+ if include_optional:
+ return GlobalCommunitiesLatestPostSearch(
+ communities_latest_posts_search_page = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '',
+ timeline = twitter_openapi_python_generated.models.timeline.Timeline(
+ instructions = [
+ null
+ ],
+ metadata = twitter_openapi_python_generated.models.timeline_metadata.TimelineMetadata(
+ reader_mode_config = twitter_openapi_python_generated.models.reader_mode_config.ReaderModeConfig(
+ is_reader_mode_available = True, ),
+ scribe_config = twitter_openapi_python_generated.models.scribe_config.ScribeConfig(
+ page = '', ), ),
+ response_objects = twitter_openapi_python_generated.models.timeline_response_objects.TimelineResponseObjects(
+ feedback_actions = [
+ twitter_openapi_python_generated.models.feedback_action_entry.FeedbackActionEntry(
+ key = '',
+ value = twitter_openapi_python_generated.models.feedback_action.FeedbackAction(
+ child_keys = [
+ ''
+ ],
+ client_event_info = twitter_openapi_python_generated.models.feedback_client_event_info.FeedbackClientEventInfo(
+ action = '',
+ component = '',
+ element = '', ),
+ confirmation = '',
+ confirmation_display_type = 'BottomSheet',
+ feedback_type = '',
+ feedback_url = '',
+ has_undo_action = True,
+ icon = 'Frown',
+ prompt = '', ), )
+ ], ), ), )
+ )
+ else:
+ return GlobalCommunitiesLatestPostSearch(
+ communities_latest_posts_search_page = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '',
+ timeline = twitter_openapi_python_generated.models.timeline.Timeline(
+ instructions = [
+ null
+ ],
+ metadata = twitter_openapi_python_generated.models.timeline_metadata.TimelineMetadata(
+ reader_mode_config = twitter_openapi_python_generated.models.reader_mode_config.ReaderModeConfig(
+ is_reader_mode_available = True, ),
+ scribe_config = twitter_openapi_python_generated.models.scribe_config.ScribeConfig(
+ page = '', ), ),
+ response_objects = twitter_openapi_python_generated.models.timeline_response_objects.TimelineResponseObjects(
+ feedback_actions = [
+ twitter_openapi_python_generated.models.feedback_action_entry.FeedbackActionEntry(
+ key = '',
+ value = twitter_openapi_python_generated.models.feedback_action.FeedbackAction(
+ child_keys = [
+ ''
+ ],
+ client_event_info = twitter_openapi_python_generated.models.feedback_client_event_info.FeedbackClientEventInfo(
+ action = '',
+ component = '',
+ element = '', ),
+ confirmation = '',
+ confirmation_display_type = 'BottomSheet',
+ feedback_type = '',
+ feedback_url = '',
+ has_undo_action = True,
+ icon = 'Frown',
+ prompt = '', ), )
+ ], ), ), ),
+ )
+ """
+
+ def testGlobalCommunitiesLatestPostSearch(self):
+ """Test GlobalCommunitiesLatestPostSearch"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_global_communities_latest_post_search_timeline_response.py b/twitter_openapi_python_generated/test/test_global_communities_latest_post_search_timeline_response.py
new file mode 100644
index 0000000..c387dfc
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_global_communities_latest_post_search_timeline_response.py
@@ -0,0 +1,144 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.global_communities_latest_post_search_timeline_response import GlobalCommunitiesLatestPostSearchTimelineResponse
+
+class TestGlobalCommunitiesLatestPostSearchTimelineResponse(unittest.TestCase):
+ """GlobalCommunitiesLatestPostSearchTimelineResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GlobalCommunitiesLatestPostSearchTimelineResponse:
+ """Test GlobalCommunitiesLatestPostSearchTimelineResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GlobalCommunitiesLatestPostSearchTimelineResponse`
+ """
+ model = GlobalCommunitiesLatestPostSearchTimelineResponse()
+ if include_optional:
+ return GlobalCommunitiesLatestPostSearchTimelineResponse(
+ data = twitter_openapi_python_generated.models.global_communities_latest_post_search_timeline_response_data.GlobalCommunitiesLatestPostSearchTimelineResponseData(
+ search_by_raw_query = twitter_openapi_python_generated.models.global_communities_latest_post_search.GlobalCommunitiesLatestPostSearch(
+ communities_latest_posts_search_page = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '',
+ timeline = twitter_openapi_python_generated.models.timeline.Timeline(
+ instructions = [
+ null
+ ],
+ metadata = twitter_openapi_python_generated.models.timeline_metadata.TimelineMetadata(
+ reader_mode_config = twitter_openapi_python_generated.models.reader_mode_config.ReaderModeConfig(
+ is_reader_mode_available = True, ),
+ scribe_config = twitter_openapi_python_generated.models.scribe_config.ScribeConfig(
+ page = '', ), ),
+ response_objects = twitter_openapi_python_generated.models.timeline_response_objects.TimelineResponseObjects(
+ feedback_actions = [
+ twitter_openapi_python_generated.models.feedback_action_entry.FeedbackActionEntry(
+ key = '',
+ value = twitter_openapi_python_generated.models.feedback_action.FeedbackAction(
+ child_keys = [
+ ''
+ ],
+ client_event_info = twitter_openapi_python_generated.models.feedback_client_event_info.FeedbackClientEventInfo(
+ action = '',
+ component = '',
+ element = '', ),
+ confirmation = '',
+ confirmation_display_type = 'BottomSheet',
+ feedback_type = '',
+ feedback_url = '',
+ has_undo_action = True,
+ icon = 'Frown',
+ prompt = '', ), )
+ ], ), ), ), ), ),
+ errors = [
+ twitter_openapi_python_generated.models.error_response.ErrorResponse(
+ code = 56,
+ extensions = twitter_openapi_python_generated.models.error_extensions.ErrorExtensions(
+ code = 56,
+ kind = '',
+ name = '',
+ retry_after = 56,
+ source = '',
+ tracing = twitter_openapi_python_generated.models.tracing.Tracing(
+ trace_id = 'bf325375e030fccb', ), ),
+ kind = '',
+ locations = [
+ twitter_openapi_python_generated.models.location.Location(
+ column = 56,
+ line = 56, )
+ ],
+ message = '',
+ name = '',
+ path = [
+ null
+ ],
+ retry_after = 56,
+ source = '',
+ tracing = twitter_openapi_python_generated.models.tracing.Tracing(
+ trace_id = 'bf325375e030fccb', ), )
+ ]
+ )
+ else:
+ return GlobalCommunitiesLatestPostSearchTimelineResponse(
+ data = twitter_openapi_python_generated.models.global_communities_latest_post_search_timeline_response_data.GlobalCommunitiesLatestPostSearchTimelineResponseData(
+ search_by_raw_query = twitter_openapi_python_generated.models.global_communities_latest_post_search.GlobalCommunitiesLatestPostSearch(
+ communities_latest_posts_search_page = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '',
+ timeline = twitter_openapi_python_generated.models.timeline.Timeline(
+ instructions = [
+ null
+ ],
+ metadata = twitter_openapi_python_generated.models.timeline_metadata.TimelineMetadata(
+ reader_mode_config = twitter_openapi_python_generated.models.reader_mode_config.ReaderModeConfig(
+ is_reader_mode_available = True, ),
+ scribe_config = twitter_openapi_python_generated.models.scribe_config.ScribeConfig(
+ page = '', ), ),
+ response_objects = twitter_openapi_python_generated.models.timeline_response_objects.TimelineResponseObjects(
+ feedback_actions = [
+ twitter_openapi_python_generated.models.feedback_action_entry.FeedbackActionEntry(
+ key = '',
+ value = twitter_openapi_python_generated.models.feedback_action.FeedbackAction(
+ child_keys = [
+ ''
+ ],
+ client_event_info = twitter_openapi_python_generated.models.feedback_client_event_info.FeedbackClientEventInfo(
+ action = '',
+ component = '',
+ element = '', ),
+ confirmation = '',
+ confirmation_display_type = 'BottomSheet',
+ feedback_type = '',
+ feedback_url = '',
+ has_undo_action = True,
+ icon = 'Frown',
+ prompt = '', ), )
+ ], ), ), ), ), ),
+ )
+ """
+
+ def testGlobalCommunitiesLatestPostSearchTimelineResponse(self):
+ """Test GlobalCommunitiesLatestPostSearchTimelineResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_global_communities_latest_post_search_timeline_response_data.py b/twitter_openapi_python_generated/test/test_global_communities_latest_post_search_timeline_response_data.py
new file mode 100644
index 0000000..12c9ab0
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_global_communities_latest_post_search_timeline_response_data.py
@@ -0,0 +1,115 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.global_communities_latest_post_search_timeline_response_data import GlobalCommunitiesLatestPostSearchTimelineResponseData
+
+class TestGlobalCommunitiesLatestPostSearchTimelineResponseData(unittest.TestCase):
+ """GlobalCommunitiesLatestPostSearchTimelineResponseData unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GlobalCommunitiesLatestPostSearchTimelineResponseData:
+ """Test GlobalCommunitiesLatestPostSearchTimelineResponseData
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GlobalCommunitiesLatestPostSearchTimelineResponseData`
+ """
+ model = GlobalCommunitiesLatestPostSearchTimelineResponseData()
+ if include_optional:
+ return GlobalCommunitiesLatestPostSearchTimelineResponseData(
+ search_by_raw_query = twitter_openapi_python_generated.models.global_communities_latest_post_search.GlobalCommunitiesLatestPostSearch(
+ communities_latest_posts_search_page = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '',
+ timeline = twitter_openapi_python_generated.models.timeline.Timeline(
+ instructions = [
+ null
+ ],
+ metadata = twitter_openapi_python_generated.models.timeline_metadata.TimelineMetadata(
+ reader_mode_config = twitter_openapi_python_generated.models.reader_mode_config.ReaderModeConfig(
+ is_reader_mode_available = True, ),
+ scribe_config = twitter_openapi_python_generated.models.scribe_config.ScribeConfig(
+ page = '', ), ),
+ response_objects = twitter_openapi_python_generated.models.timeline_response_objects.TimelineResponseObjects(
+ feedback_actions = [
+ twitter_openapi_python_generated.models.feedback_action_entry.FeedbackActionEntry(
+ key = '',
+ value = twitter_openapi_python_generated.models.feedback_action.FeedbackAction(
+ child_keys = [
+ ''
+ ],
+ client_event_info = twitter_openapi_python_generated.models.feedback_client_event_info.FeedbackClientEventInfo(
+ action = '',
+ component = '',
+ element = '', ),
+ confirmation = '',
+ confirmation_display_type = 'BottomSheet',
+ feedback_type = '',
+ feedback_url = '',
+ has_undo_action = True,
+ icon = 'Frown',
+ prompt = '', ), )
+ ], ), ), ), )
+ )
+ else:
+ return GlobalCommunitiesLatestPostSearchTimelineResponseData(
+ search_by_raw_query = twitter_openapi_python_generated.models.global_communities_latest_post_search.GlobalCommunitiesLatestPostSearch(
+ communities_latest_posts_search_page = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '',
+ timeline = twitter_openapi_python_generated.models.timeline.Timeline(
+ instructions = [
+ null
+ ],
+ metadata = twitter_openapi_python_generated.models.timeline_metadata.TimelineMetadata(
+ reader_mode_config = twitter_openapi_python_generated.models.reader_mode_config.ReaderModeConfig(
+ is_reader_mode_available = True, ),
+ scribe_config = twitter_openapi_python_generated.models.scribe_config.ScribeConfig(
+ page = '', ), ),
+ response_objects = twitter_openapi_python_generated.models.timeline_response_objects.TimelineResponseObjects(
+ feedback_actions = [
+ twitter_openapi_python_generated.models.feedback_action_entry.FeedbackActionEntry(
+ key = '',
+ value = twitter_openapi_python_generated.models.feedback_action.FeedbackAction(
+ child_keys = [
+ ''
+ ],
+ client_event_info = twitter_openapi_python_generated.models.feedback_client_event_info.FeedbackClientEventInfo(
+ action = '',
+ component = '',
+ element = '', ),
+ confirmation = '',
+ confirmation_display_type = 'BottomSheet',
+ feedback_type = '',
+ feedback_url = '',
+ has_undo_action = True,
+ icon = 'Frown',
+ prompt = '', ), )
+ ], ), ), ), ),
+ )
+ """
+
+ def testGlobalCommunitiesLatestPostSearchTimelineResponseData(self):
+ """Test GlobalCommunitiesLatestPostSearchTimelineResponseData"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_global_communities_post_search.py b/twitter_openapi_python_generated/test/test_global_communities_post_search.py
new file mode 100644
index 0000000..4fba3c8
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_global_communities_post_search.py
@@ -0,0 +1,113 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.global_communities_post_search import GlobalCommunitiesPostSearch
+
+class TestGlobalCommunitiesPostSearch(unittest.TestCase):
+ """GlobalCommunitiesPostSearch unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GlobalCommunitiesPostSearch:
+ """Test GlobalCommunitiesPostSearch
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GlobalCommunitiesPostSearch`
+ """
+ model = GlobalCommunitiesPostSearch()
+ if include_optional:
+ return GlobalCommunitiesPostSearch(
+ communities_posts_search_page = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '',
+ timeline = twitter_openapi_python_generated.models.timeline.Timeline(
+ instructions = [
+ null
+ ],
+ metadata = twitter_openapi_python_generated.models.timeline_metadata.TimelineMetadata(
+ reader_mode_config = twitter_openapi_python_generated.models.reader_mode_config.ReaderModeConfig(
+ is_reader_mode_available = True, ),
+ scribe_config = twitter_openapi_python_generated.models.scribe_config.ScribeConfig(
+ page = '', ), ),
+ response_objects = twitter_openapi_python_generated.models.timeline_response_objects.TimelineResponseObjects(
+ feedback_actions = [
+ twitter_openapi_python_generated.models.feedback_action_entry.FeedbackActionEntry(
+ key = '',
+ value = twitter_openapi_python_generated.models.feedback_action.FeedbackAction(
+ child_keys = [
+ ''
+ ],
+ client_event_info = twitter_openapi_python_generated.models.feedback_client_event_info.FeedbackClientEventInfo(
+ action = '',
+ component = '',
+ element = '', ),
+ confirmation = '',
+ confirmation_display_type = 'BottomSheet',
+ feedback_type = '',
+ feedback_url = '',
+ has_undo_action = True,
+ icon = 'Frown',
+ prompt = '', ), )
+ ], ), ), )
+ )
+ else:
+ return GlobalCommunitiesPostSearch(
+ communities_posts_search_page = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '',
+ timeline = twitter_openapi_python_generated.models.timeline.Timeline(
+ instructions = [
+ null
+ ],
+ metadata = twitter_openapi_python_generated.models.timeline_metadata.TimelineMetadata(
+ reader_mode_config = twitter_openapi_python_generated.models.reader_mode_config.ReaderModeConfig(
+ is_reader_mode_available = True, ),
+ scribe_config = twitter_openapi_python_generated.models.scribe_config.ScribeConfig(
+ page = '', ), ),
+ response_objects = twitter_openapi_python_generated.models.timeline_response_objects.TimelineResponseObjects(
+ feedback_actions = [
+ twitter_openapi_python_generated.models.feedback_action_entry.FeedbackActionEntry(
+ key = '',
+ value = twitter_openapi_python_generated.models.feedback_action.FeedbackAction(
+ child_keys = [
+ ''
+ ],
+ client_event_info = twitter_openapi_python_generated.models.feedback_client_event_info.FeedbackClientEventInfo(
+ action = '',
+ component = '',
+ element = '', ),
+ confirmation = '',
+ confirmation_display_type = 'BottomSheet',
+ feedback_type = '',
+ feedback_url = '',
+ has_undo_action = True,
+ icon = 'Frown',
+ prompt = '', ), )
+ ], ), ), ),
+ )
+ """
+
+ def testGlobalCommunitiesPostSearch(self):
+ """Test GlobalCommunitiesPostSearch"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_global_communities_post_search_timeline_response.py b/twitter_openapi_python_generated/test/test_global_communities_post_search_timeline_response.py
new file mode 100644
index 0000000..7dd81a6
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_global_communities_post_search_timeline_response.py
@@ -0,0 +1,144 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.global_communities_post_search_timeline_response import GlobalCommunitiesPostSearchTimelineResponse
+
+class TestGlobalCommunitiesPostSearchTimelineResponse(unittest.TestCase):
+ """GlobalCommunitiesPostSearchTimelineResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GlobalCommunitiesPostSearchTimelineResponse:
+ """Test GlobalCommunitiesPostSearchTimelineResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GlobalCommunitiesPostSearchTimelineResponse`
+ """
+ model = GlobalCommunitiesPostSearchTimelineResponse()
+ if include_optional:
+ return GlobalCommunitiesPostSearchTimelineResponse(
+ data = twitter_openapi_python_generated.models.global_communities_post_search_timeline_response_data.GlobalCommunitiesPostSearchTimelineResponseData(
+ search_by_raw_query = twitter_openapi_python_generated.models.global_communities_post_search.GlobalCommunitiesPostSearch(
+ communities_posts_search_page = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '',
+ timeline = twitter_openapi_python_generated.models.timeline.Timeline(
+ instructions = [
+ null
+ ],
+ metadata = twitter_openapi_python_generated.models.timeline_metadata.TimelineMetadata(
+ reader_mode_config = twitter_openapi_python_generated.models.reader_mode_config.ReaderModeConfig(
+ is_reader_mode_available = True, ),
+ scribe_config = twitter_openapi_python_generated.models.scribe_config.ScribeConfig(
+ page = '', ), ),
+ response_objects = twitter_openapi_python_generated.models.timeline_response_objects.TimelineResponseObjects(
+ feedback_actions = [
+ twitter_openapi_python_generated.models.feedback_action_entry.FeedbackActionEntry(
+ key = '',
+ value = twitter_openapi_python_generated.models.feedback_action.FeedbackAction(
+ child_keys = [
+ ''
+ ],
+ client_event_info = twitter_openapi_python_generated.models.feedback_client_event_info.FeedbackClientEventInfo(
+ action = '',
+ component = '',
+ element = '', ),
+ confirmation = '',
+ confirmation_display_type = 'BottomSheet',
+ feedback_type = '',
+ feedback_url = '',
+ has_undo_action = True,
+ icon = 'Frown',
+ prompt = '', ), )
+ ], ), ), ), ), ),
+ errors = [
+ twitter_openapi_python_generated.models.error_response.ErrorResponse(
+ code = 56,
+ extensions = twitter_openapi_python_generated.models.error_extensions.ErrorExtensions(
+ code = 56,
+ kind = '',
+ name = '',
+ retry_after = 56,
+ source = '',
+ tracing = twitter_openapi_python_generated.models.tracing.Tracing(
+ trace_id = 'bf325375e030fccb', ), ),
+ kind = '',
+ locations = [
+ twitter_openapi_python_generated.models.location.Location(
+ column = 56,
+ line = 56, )
+ ],
+ message = '',
+ name = '',
+ path = [
+ null
+ ],
+ retry_after = 56,
+ source = '',
+ tracing = twitter_openapi_python_generated.models.tracing.Tracing(
+ trace_id = 'bf325375e030fccb', ), )
+ ]
+ )
+ else:
+ return GlobalCommunitiesPostSearchTimelineResponse(
+ data = twitter_openapi_python_generated.models.global_communities_post_search_timeline_response_data.GlobalCommunitiesPostSearchTimelineResponseData(
+ search_by_raw_query = twitter_openapi_python_generated.models.global_communities_post_search.GlobalCommunitiesPostSearch(
+ communities_posts_search_page = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '',
+ timeline = twitter_openapi_python_generated.models.timeline.Timeline(
+ instructions = [
+ null
+ ],
+ metadata = twitter_openapi_python_generated.models.timeline_metadata.TimelineMetadata(
+ reader_mode_config = twitter_openapi_python_generated.models.reader_mode_config.ReaderModeConfig(
+ is_reader_mode_available = True, ),
+ scribe_config = twitter_openapi_python_generated.models.scribe_config.ScribeConfig(
+ page = '', ), ),
+ response_objects = twitter_openapi_python_generated.models.timeline_response_objects.TimelineResponseObjects(
+ feedback_actions = [
+ twitter_openapi_python_generated.models.feedback_action_entry.FeedbackActionEntry(
+ key = '',
+ value = twitter_openapi_python_generated.models.feedback_action.FeedbackAction(
+ child_keys = [
+ ''
+ ],
+ client_event_info = twitter_openapi_python_generated.models.feedback_client_event_info.FeedbackClientEventInfo(
+ action = '',
+ component = '',
+ element = '', ),
+ confirmation = '',
+ confirmation_display_type = 'BottomSheet',
+ feedback_type = '',
+ feedback_url = '',
+ has_undo_action = True,
+ icon = 'Frown',
+ prompt = '', ), )
+ ], ), ), ), ), ),
+ )
+ """
+
+ def testGlobalCommunitiesPostSearchTimelineResponse(self):
+ """Test GlobalCommunitiesPostSearchTimelineResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_global_communities_post_search_timeline_response_data.py b/twitter_openapi_python_generated/test/test_global_communities_post_search_timeline_response_data.py
new file mode 100644
index 0000000..90a5e67
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_global_communities_post_search_timeline_response_data.py
@@ -0,0 +1,115 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.global_communities_post_search_timeline_response_data import GlobalCommunitiesPostSearchTimelineResponseData
+
+class TestGlobalCommunitiesPostSearchTimelineResponseData(unittest.TestCase):
+ """GlobalCommunitiesPostSearchTimelineResponseData unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GlobalCommunitiesPostSearchTimelineResponseData:
+ """Test GlobalCommunitiesPostSearchTimelineResponseData
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GlobalCommunitiesPostSearchTimelineResponseData`
+ """
+ model = GlobalCommunitiesPostSearchTimelineResponseData()
+ if include_optional:
+ return GlobalCommunitiesPostSearchTimelineResponseData(
+ search_by_raw_query = twitter_openapi_python_generated.models.global_communities_post_search.GlobalCommunitiesPostSearch(
+ communities_posts_search_page = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '',
+ timeline = twitter_openapi_python_generated.models.timeline.Timeline(
+ instructions = [
+ null
+ ],
+ metadata = twitter_openapi_python_generated.models.timeline_metadata.TimelineMetadata(
+ reader_mode_config = twitter_openapi_python_generated.models.reader_mode_config.ReaderModeConfig(
+ is_reader_mode_available = True, ),
+ scribe_config = twitter_openapi_python_generated.models.scribe_config.ScribeConfig(
+ page = '', ), ),
+ response_objects = twitter_openapi_python_generated.models.timeline_response_objects.TimelineResponseObjects(
+ feedback_actions = [
+ twitter_openapi_python_generated.models.feedback_action_entry.FeedbackActionEntry(
+ key = '',
+ value = twitter_openapi_python_generated.models.feedback_action.FeedbackAction(
+ child_keys = [
+ ''
+ ],
+ client_event_info = twitter_openapi_python_generated.models.feedback_client_event_info.FeedbackClientEventInfo(
+ action = '',
+ component = '',
+ element = '', ),
+ confirmation = '',
+ confirmation_display_type = 'BottomSheet',
+ feedback_type = '',
+ feedback_url = '',
+ has_undo_action = True,
+ icon = 'Frown',
+ prompt = '', ), )
+ ], ), ), ), )
+ )
+ else:
+ return GlobalCommunitiesPostSearchTimelineResponseData(
+ search_by_raw_query = twitter_openapi_python_generated.models.global_communities_post_search.GlobalCommunitiesPostSearch(
+ communities_posts_search_page = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '',
+ timeline = twitter_openapi_python_generated.models.timeline.Timeline(
+ instructions = [
+ null
+ ],
+ metadata = twitter_openapi_python_generated.models.timeline_metadata.TimelineMetadata(
+ reader_mode_config = twitter_openapi_python_generated.models.reader_mode_config.ReaderModeConfig(
+ is_reader_mode_available = True, ),
+ scribe_config = twitter_openapi_python_generated.models.scribe_config.ScribeConfig(
+ page = '', ), ),
+ response_objects = twitter_openapi_python_generated.models.timeline_response_objects.TimelineResponseObjects(
+ feedback_actions = [
+ twitter_openapi_python_generated.models.feedback_action_entry.FeedbackActionEntry(
+ key = '',
+ value = twitter_openapi_python_generated.models.feedback_action.FeedbackAction(
+ child_keys = [
+ ''
+ ],
+ client_event_info = twitter_openapi_python_generated.models.feedback_client_event_info.FeedbackClientEventInfo(
+ action = '',
+ component = '',
+ element = '', ),
+ confirmation = '',
+ confirmation_display_type = 'BottomSheet',
+ feedback_type = '',
+ feedback_url = '',
+ has_undo_action = True,
+ icon = 'Frown',
+ prompt = '', ), )
+ ], ), ), ), ),
+ )
+ """
+
+ def testGlobalCommunitiesPostSearchTimelineResponseData(self):
+ """Test GlobalCommunitiesPostSearchTimelineResponseData"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_grok_home.py b/twitter_openapi_python_generated/test/test_grok_home.py
new file mode 100644
index 0000000..d3ee9f3
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_grok_home.py
@@ -0,0 +1,119 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.grok_home import GrokHome
+
+class TestGrokHome(unittest.TestCase):
+ """GrokHome unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GrokHome:
+ """Test GrokHome
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GrokHome`
+ """
+ model = GrokHome()
+ if include_optional:
+ return GrokHome(
+ default_grok_mode = '',
+ default_grok_model_option_id = '',
+ eligible_for_grok = True,
+ free_access_enabled = True,
+ grok_model_options = [
+ twitter_openapi_python_generated.models.grok_model_option.GrokModelOption(
+ description = '',
+ icon_name = '',
+ id = '',
+ is_analyze_enabled = True,
+ is_enabled = True,
+ is_enhance_enabled = True,
+ mode = '',
+ name = '', )
+ ],
+ grok_version = '',
+ ineligible_reasons = [
+ None
+ ],
+ layout = twitter_openapi_python_generated.models.grok_home_layout.GrokHomeLayout(
+ name = '',
+ sections = [
+ twitter_openapi_python_generated.models.grok_home_layout_section.GrokHomeLayoutSection(
+ prompts = [
+ twitter_openapi_python_generated.models.grok_home_prompt.GrokHomePrompt(
+ display_body = '',
+ display_label = '',
+ filter_key = '',
+ icon_name = '',
+ prompt = '',
+ prompt_id = '', )
+ ],
+ section_type = '', )
+ ], )
+ )
+ else:
+ return GrokHome(
+ default_grok_mode = '',
+ default_grok_model_option_id = '',
+ eligible_for_grok = True,
+ free_access_enabled = True,
+ grok_model_options = [
+ twitter_openapi_python_generated.models.grok_model_option.GrokModelOption(
+ description = '',
+ icon_name = '',
+ id = '',
+ is_analyze_enabled = True,
+ is_enabled = True,
+ is_enhance_enabled = True,
+ mode = '',
+ name = '', )
+ ],
+ grok_version = '',
+ ineligible_reasons = [
+ None
+ ],
+ layout = twitter_openapi_python_generated.models.grok_home_layout.GrokHomeLayout(
+ name = '',
+ sections = [
+ twitter_openapi_python_generated.models.grok_home_layout_section.GrokHomeLayoutSection(
+ prompts = [
+ twitter_openapi_python_generated.models.grok_home_prompt.GrokHomePrompt(
+ display_body = '',
+ display_label = '',
+ filter_key = '',
+ icon_name = '',
+ prompt = '',
+ prompt_id = '', )
+ ],
+ section_type = '', )
+ ], ),
+ )
+ """
+
+ def testGrokHome(self):
+ """Test GrokHome"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_grok_home_layout.py b/twitter_openapi_python_generated/test/test_grok_home_layout.py
new file mode 100644
index 0000000..62f2b6d
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_grok_home_layout.py
@@ -0,0 +1,79 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.grok_home_layout import GrokHomeLayout
+
+class TestGrokHomeLayout(unittest.TestCase):
+ """GrokHomeLayout unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GrokHomeLayout:
+ """Test GrokHomeLayout
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GrokHomeLayout`
+ """
+ model = GrokHomeLayout()
+ if include_optional:
+ return GrokHomeLayout(
+ name = '',
+ sections = [
+ twitter_openapi_python_generated.models.grok_home_layout_section.GrokHomeLayoutSection(
+ prompts = [
+ twitter_openapi_python_generated.models.grok_home_prompt.GrokHomePrompt(
+ display_body = '',
+ display_label = '',
+ filter_key = '',
+ icon_name = '',
+ prompt = '',
+ prompt_id = '', )
+ ],
+ section_type = '', )
+ ]
+ )
+ else:
+ return GrokHomeLayout(
+ name = '',
+ sections = [
+ twitter_openapi_python_generated.models.grok_home_layout_section.GrokHomeLayoutSection(
+ prompts = [
+ twitter_openapi_python_generated.models.grok_home_prompt.GrokHomePrompt(
+ display_body = '',
+ display_label = '',
+ filter_key = '',
+ icon_name = '',
+ prompt = '',
+ prompt_id = '', )
+ ],
+ section_type = '', )
+ ],
+ )
+ """
+
+ def testGrokHomeLayout(self):
+ """Test GrokHomeLayout"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_grok_home_layout_section.py b/twitter_openapi_python_generated/test/test_grok_home_layout_section.py
new file mode 100644
index 0000000..3c72319
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_grok_home_layout_section.py
@@ -0,0 +1,71 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.grok_home_layout_section import GrokHomeLayoutSection
+
+class TestGrokHomeLayoutSection(unittest.TestCase):
+ """GrokHomeLayoutSection unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GrokHomeLayoutSection:
+ """Test GrokHomeLayoutSection
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GrokHomeLayoutSection`
+ """
+ model = GrokHomeLayoutSection()
+ if include_optional:
+ return GrokHomeLayoutSection(
+ prompts = [
+ twitter_openapi_python_generated.models.grok_home_prompt.GrokHomePrompt(
+ display_body = '',
+ display_label = '',
+ filter_key = '',
+ icon_name = '',
+ prompt = '',
+ prompt_id = '', )
+ ],
+ section_type = ''
+ )
+ else:
+ return GrokHomeLayoutSection(
+ prompts = [
+ twitter_openapi_python_generated.models.grok_home_prompt.GrokHomePrompt(
+ display_body = '',
+ display_label = '',
+ filter_key = '',
+ icon_name = '',
+ prompt = '',
+ prompt_id = '', )
+ ],
+ section_type = '',
+ )
+ """
+
+ def testGrokHomeLayoutSection(self):
+ """Test GrokHomeLayoutSection"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_grok_home_prompt.py b/twitter_openapi_python_generated/test/test_grok_home_prompt.py
new file mode 100644
index 0000000..f9bfb0e
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_grok_home_prompt.py
@@ -0,0 +1,63 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.grok_home_prompt import GrokHomePrompt
+
+class TestGrokHomePrompt(unittest.TestCase):
+ """GrokHomePrompt unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GrokHomePrompt:
+ """Test GrokHomePrompt
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GrokHomePrompt`
+ """
+ model = GrokHomePrompt()
+ if include_optional:
+ return GrokHomePrompt(
+ display_body = '',
+ display_label = '',
+ filter_key = '',
+ icon_name = '',
+ prompt = '',
+ prompt_id = ''
+ )
+ else:
+ return GrokHomePrompt(
+ display_body = '',
+ display_label = '',
+ filter_key = '',
+ icon_name = '',
+ prompt = '',
+ prompt_id = '',
+ )
+ """
+
+ def testGrokHomePrompt(self):
+ """Test GrokHomePrompt"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_grok_home_response.py b/twitter_openapi_python_generated/test/test_grok_home_response.py
new file mode 100644
index 0000000..a08a79e
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_grok_home_response.py
@@ -0,0 +1,150 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.grok_home_response import GrokHomeResponse
+
+class TestGrokHomeResponse(unittest.TestCase):
+ """GrokHomeResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GrokHomeResponse:
+ """Test GrokHomeResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GrokHomeResponse`
+ """
+ model = GrokHomeResponse()
+ if include_optional:
+ return GrokHomeResponse(
+ data = twitter_openapi_python_generated.models.grok_home_response_data.GrokHomeResponseData(
+ grok_home = twitter_openapi_python_generated.models.grok_home.GrokHome(
+ default_grok_mode = '',
+ default_grok_model_option_id = '',
+ eligible_for_grok = True,
+ free_access_enabled = True,
+ grok_model_options = [
+ twitter_openapi_python_generated.models.grok_model_option.GrokModelOption(
+ description = '',
+ icon_name = '',
+ id = '',
+ is_analyze_enabled = True,
+ is_enabled = True,
+ is_enhance_enabled = True,
+ mode = '',
+ name = '', )
+ ],
+ grok_version = '',
+ ineligible_reasons = [
+ None
+ ],
+ layout = twitter_openapi_python_generated.models.grok_home_layout.GrokHomeLayout(
+ name = '',
+ sections = [
+ twitter_openapi_python_generated.models.grok_home_layout_section.GrokHomeLayoutSection(
+ prompts = [
+ twitter_openapi_python_generated.models.grok_home_prompt.GrokHomePrompt(
+ display_body = '',
+ display_label = '',
+ filter_key = '',
+ icon_name = '',
+ prompt = '',
+ prompt_id = '', )
+ ],
+ section_type = '', )
+ ], ), ), ),
+ errors = [
+ twitter_openapi_python_generated.models.error_response.ErrorResponse(
+ code = 56,
+ extensions = twitter_openapi_python_generated.models.error_extensions.ErrorExtensions(
+ code = 56,
+ kind = '',
+ name = '',
+ retry_after = 56,
+ source = '',
+ tracing = twitter_openapi_python_generated.models.tracing.Tracing(
+ trace_id = 'bf325375e030fccb', ), ),
+ kind = '',
+ locations = [
+ twitter_openapi_python_generated.models.location.Location(
+ column = 56,
+ line = 56, )
+ ],
+ message = '',
+ name = '',
+ path = [
+ null
+ ],
+ retry_after = 56,
+ source = '',
+ tracing = twitter_openapi_python_generated.models.tracing.Tracing(
+ trace_id = 'bf325375e030fccb', ), )
+ ]
+ )
+ else:
+ return GrokHomeResponse(
+ data = twitter_openapi_python_generated.models.grok_home_response_data.GrokHomeResponseData(
+ grok_home = twitter_openapi_python_generated.models.grok_home.GrokHome(
+ default_grok_mode = '',
+ default_grok_model_option_id = '',
+ eligible_for_grok = True,
+ free_access_enabled = True,
+ grok_model_options = [
+ twitter_openapi_python_generated.models.grok_model_option.GrokModelOption(
+ description = '',
+ icon_name = '',
+ id = '',
+ is_analyze_enabled = True,
+ is_enabled = True,
+ is_enhance_enabled = True,
+ mode = '',
+ name = '', )
+ ],
+ grok_version = '',
+ ineligible_reasons = [
+ None
+ ],
+ layout = twitter_openapi_python_generated.models.grok_home_layout.GrokHomeLayout(
+ name = '',
+ sections = [
+ twitter_openapi_python_generated.models.grok_home_layout_section.GrokHomeLayoutSection(
+ prompts = [
+ twitter_openapi_python_generated.models.grok_home_prompt.GrokHomePrompt(
+ display_body = '',
+ display_label = '',
+ filter_key = '',
+ icon_name = '',
+ prompt = '',
+ prompt_id = '', )
+ ],
+ section_type = '', )
+ ], ), ), ),
+ )
+ """
+
+ def testGrokHomeResponse(self):
+ """Test GrokHomeResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_grok_home_response_data.py b/twitter_openapi_python_generated/test/test_grok_home_response_data.py
new file mode 100644
index 0000000..a7e9f11
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_grok_home_response_data.py
@@ -0,0 +1,121 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.grok_home_response_data import GrokHomeResponseData
+
+class TestGrokHomeResponseData(unittest.TestCase):
+ """GrokHomeResponseData unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GrokHomeResponseData:
+ """Test GrokHomeResponseData
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GrokHomeResponseData`
+ """
+ model = GrokHomeResponseData()
+ if include_optional:
+ return GrokHomeResponseData(
+ grok_home = twitter_openapi_python_generated.models.grok_home.GrokHome(
+ default_grok_mode = '',
+ default_grok_model_option_id = '',
+ eligible_for_grok = True,
+ free_access_enabled = True,
+ grok_model_options = [
+ twitter_openapi_python_generated.models.grok_model_option.GrokModelOption(
+ description = '',
+ icon_name = '',
+ id = '',
+ is_analyze_enabled = True,
+ is_enabled = True,
+ is_enhance_enabled = True,
+ mode = '',
+ name = '', )
+ ],
+ grok_version = '',
+ ineligible_reasons = [
+ None
+ ],
+ layout = twitter_openapi_python_generated.models.grok_home_layout.GrokHomeLayout(
+ name = '',
+ sections = [
+ twitter_openapi_python_generated.models.grok_home_layout_section.GrokHomeLayoutSection(
+ prompts = [
+ twitter_openapi_python_generated.models.grok_home_prompt.GrokHomePrompt(
+ display_body = '',
+ display_label = '',
+ filter_key = '',
+ icon_name = '',
+ prompt = '',
+ prompt_id = '', )
+ ],
+ section_type = '', )
+ ], ), )
+ )
+ else:
+ return GrokHomeResponseData(
+ grok_home = twitter_openapi_python_generated.models.grok_home.GrokHome(
+ default_grok_mode = '',
+ default_grok_model_option_id = '',
+ eligible_for_grok = True,
+ free_access_enabled = True,
+ grok_model_options = [
+ twitter_openapi_python_generated.models.grok_model_option.GrokModelOption(
+ description = '',
+ icon_name = '',
+ id = '',
+ is_analyze_enabled = True,
+ is_enabled = True,
+ is_enhance_enabled = True,
+ mode = '',
+ name = '', )
+ ],
+ grok_version = '',
+ ineligible_reasons = [
+ None
+ ],
+ layout = twitter_openapi_python_generated.models.grok_home_layout.GrokHomeLayout(
+ name = '',
+ sections = [
+ twitter_openapi_python_generated.models.grok_home_layout_section.GrokHomeLayoutSection(
+ prompts = [
+ twitter_openapi_python_generated.models.grok_home_prompt.GrokHomePrompt(
+ display_body = '',
+ display_label = '',
+ filter_key = '',
+ icon_name = '',
+ prompt = '',
+ prompt_id = '', )
+ ],
+ section_type = '', )
+ ], ), ),
+ )
+ """
+
+ def testGrokHomeResponseData(self):
+ """Test GrokHomeResponseData"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_grok_model_option.py b/twitter_openapi_python_generated/test/test_grok_model_option.py
new file mode 100644
index 0000000..c32d149
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_grok_model_option.py
@@ -0,0 +1,67 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.grok_model_option import GrokModelOption
+
+class TestGrokModelOption(unittest.TestCase):
+ """GrokModelOption unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GrokModelOption:
+ """Test GrokModelOption
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GrokModelOption`
+ """
+ model = GrokModelOption()
+ if include_optional:
+ return GrokModelOption(
+ description = '',
+ icon_name = '',
+ id = '',
+ is_analyze_enabled = True,
+ is_enabled = True,
+ is_enhance_enabled = True,
+ mode = '',
+ name = ''
+ )
+ else:
+ return GrokModelOption(
+ description = '',
+ icon_name = '',
+ id = '',
+ is_analyze_enabled = True,
+ is_enabled = True,
+ is_enhance_enabled = True,
+ mode = '',
+ name = '',
+ )
+ """
+
+ def testGrokModelOption(self):
+ """Test GrokModelOption"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_home_timeline_home.py b/twitter_openapi_python_generated/test/test_home_timeline_home.py
index 66a01b5..13a36d3 100644
--- a/twitter_openapi_python_generated/test/test_home_timeline_home.py
+++ b/twitter_openapi_python_generated/test/test_home_timeline_home.py
@@ -59,7 +59,7 @@ def make_instance(self, include_optional) -> HomeTimelineHome:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -91,7 +91,7 @@ def make_instance(self, include_optional) -> HomeTimelineHome:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_home_timeline_response_data.py b/twitter_openapi_python_generated/test/test_home_timeline_response_data.py
index 52ad4e8..dc9a5b4 100644
--- a/twitter_openapi_python_generated/test/test_home_timeline_response_data.py
+++ b/twitter_openapi_python_generated/test/test_home_timeline_response_data.py
@@ -60,7 +60,7 @@ def make_instance(self, include_optional) -> HomeTimelineResponseData:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -93,7 +93,7 @@ def make_instance(self, include_optional) -> HomeTimelineResponseData:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_instruction_union.py b/twitter_openapi_python_generated/test/test_instruction_union.py
index f7bd7d8..1fdedf0 100644
--- a/twitter_openapi_python_generated/test/test_instruction_union.py
+++ b/twitter_openapi_python_generated/test/test_instruction_union.py
@@ -54,6 +54,9 @@ def make_instance(self, include_optional) -> InstructionUnion:
details = twitter_openapi_python_generated.models.client_event_info_details.ClientEventInfoDetails(
conversation_details = twitter_openapi_python_generated.models.conversation_details.ConversationDetails(
conversation_section = 'HighQuality', ),
+ notification_details = twitter_openapi_python_generated.models.notification_details.NotificationDetails(
+ impression_id = '',
+ metadata = '', ),
timelines_details = twitter_openapi_python_generated.models.timelines_details.TimelinesDetails(
controller_data = '',
injection_type = '',
@@ -82,6 +85,9 @@ def make_instance(self, include_optional) -> InstructionUnion:
details = twitter_openapi_python_generated.models.client_event_info_details.ClientEventInfoDetails(
conversation_details = twitter_openapi_python_generated.models.conversation_details.ConversationDetails(
conversation_section = 'HighQuality', ),
+ notification_details = twitter_openapi_python_generated.models.notification_details.NotificationDetails(
+ impression_id = '',
+ metadata = '', ),
timelines_details = twitter_openapi_python_generated.models.timelines_details.TimelinesDetails(
controller_data = '',
injection_type = '',
@@ -173,6 +179,9 @@ def make_instance(self, include_optional) -> InstructionUnion:
details = twitter_openapi_python_generated.models.client_event_info_details.ClientEventInfoDetails(
conversation_details = twitter_openapi_python_generated.models.conversation_details.ConversationDetails(
conversation_section = 'HighQuality', ),
+ notification_details = twitter_openapi_python_generated.models.notification_details.NotificationDetails(
+ impression_id = '',
+ metadata = '', ),
timelines_details = twitter_openapi_python_generated.models.timelines_details.TimelinesDetails(
controller_data = '',
injection_type = '',
@@ -200,6 +209,9 @@ def make_instance(self, include_optional) -> InstructionUnion:
details = twitter_openapi_python_generated.models.client_event_info_details.ClientEventInfoDetails(
conversation_details = twitter_openapi_python_generated.models.conversation_details.ConversationDetails(
conversation_section = 'HighQuality', ),
+ notification_details = twitter_openapi_python_generated.models.notification_details.NotificationDetails(
+ impression_id = '',
+ metadata = '', ),
timelines_details = twitter_openapi_python_generated.models.timelines_details.TimelinesDetails(
controller_data = '',
injection_type = '',
diff --git a/twitter_openapi_python_generated/test/test_item_content_union.py b/twitter_openapi_python_generated/test/test_item_content_union.py
index e0f1325..27c157b 100644
--- a/twitter_openapi_python_generated/test/test_item_content_union.py
+++ b/twitter_openapi_python_generated/test/test_item_content_union.py
@@ -45,27 +45,20 @@ def make_instance(self, include_optional) -> ItemContentUnion:
start_index = 56, )
], ),
item_type = 'TimelineTweet',
- promoted_metadata = twitter_openapi_python_generated.models.promoted_metadata.PromotedMetadata(
- ad_metadata_container = twitter_openapi_python_generated.models.ad_metadata_container.AdMetadataContainer(
- destination_url_params = [
- twitter_openapi_python_generated.models.key_value.KeyValue(
- key = '',
- value = '', )
- ],
+ promoted_metadata = twitter_openapi_python_generated.models.event_summary_promoted_metadata.EventSummaryPromotedMetadata(
+ ad_metadata_container = twitter_openapi_python_generated.models.event_summary_ad_metadata_container.EventSummaryAdMetadataContainer(
is_quick_promote = True,
- render_legacy_website_card = True,
- render_sales_cta_website_card = True,
- show_overlay_on_first_card = True, ),
+ render_sales_cta_website_card = True, ),
advertiser_results = twitter_openapi_python_generated.models.user_results.UserResults(
result = null, ),
- click_tracking_info = twitter_openapi_python_generated.models.click_tracking_info.ClickTrackingInfo(
- url_params = [
- twitter_openapi_python_generated.models.key_value.KeyValue(
- key = '',
- value = '', )
- ], ),
+ disclosure_type = '',
impression_id = '',
- impression_string = '', ),
+ impression_string = '',
+ promoted_trend = twitter_openapi_python_generated.models.promoted_trend.PromotedTrend(
+ rest_id = '4', ),
+ promoted_trend_description = '',
+ promoted_trend_name = '',
+ promoted_trend_query_term = '', ),
social_context = None,
tweet_display_type = 'Tweet',
tweet_results = twitter_openapi_python_generated.models.item_result.ItemResult(
@@ -86,6 +79,9 @@ def make_instance(self, include_optional) -> ItemContentUnion:
details = twitter_openapi_python_generated.models.client_event_info_details.ClientEventInfoDetails(
conversation_details = twitter_openapi_python_generated.models.conversation_details.ConversationDetails(
conversation_section = 'HighQuality', ),
+ notification_details = twitter_openapi_python_generated.models.notification_details.NotificationDetails(
+ impression_id = '',
+ metadata = '', ),
timelines_details = twitter_openapi_python_generated.models.timelines_details.TimelinesDetails(
controller_data = '',
injection_type = '',
@@ -128,6 +124,7 @@ def make_instance(self, include_optional) -> ItemContentUnion:
rtl = True,
text = '', ),
text = '', ),
+ description = '',
grouped_trends = [
twitter_openapi_python_generated.models.grouped_trend.GroupedTrend(
name = '',
@@ -147,6 +144,17 @@ def make_instance(self, include_optional) -> ItemContentUnion:
],
is_ai_trend = True,
name = '',
+ promoted_metadata = twitter_openapi_python_generated.models.trend_promoted_metadata.TrendPromotedMetadata(
+ advertiser_results = twitter_openapi_python_generated.models.user_results.UserResults(
+ result = null, ),
+ disclosure_type = '',
+ impression_id = '',
+ impression_string = '',
+ promoted_trend = twitter_openapi_python_generated.models.promoted_trend.PromotedTrend(
+ rest_id = '4', ),
+ promoted_trend_description = '',
+ promoted_trend_name = '',
+ promoted_trend_query_term = '', ),
rank = '4',
social_context = None,
thumbnail_image = twitter_openapi_python_generated.models.thumbnail_image.ThumbnailImage(
@@ -155,6 +163,7 @@ def make_instance(self, include_optional) -> ItemContentUnion:
original_img_width = 56, ),
trend_metadata = twitter_openapi_python_generated.models.trend_metadata.TrendMetadata(
domain_context = '',
+ meta_description = '',
url = twitter_openapi_python_generated.models.social_context_landing_url.SocialContextLandingUrl(
url_type = 'DeepLink',
urt_endpoint_options = twitter_openapi_python_generated.models.urt_endpoint_options.UrtEndpointOptions(
@@ -187,6 +196,17 @@ def make_instance(self, include_optional) -> ItemContentUnion:
],
title = '', ), ),
rich_message = twitter_openapi_python_generated.models.rich_message.RichMessage(
+ entities = [
+ twitter_openapi_python_generated.models.rich_message_entity.RichMessageEntity(
+ from_index = 56,
+ ref = twitter_openapi_python_generated.models.rich_message_entity_ref.RichMessageEntityRef(
+ id = '4',
+ type = 'TimelineRichTextUser',
+ url = '',
+ user_results = twitter_openapi_python_generated.models.user_results.UserResults(
+ result = null, ), ),
+ to_index = 56, )
+ ],
rtl = True,
text = '', ),
template = twitter_openapi_python_generated.models.notification_template.NotificationTemplate(
@@ -301,12 +321,49 @@ def make_instance(self, include_optional) -> ItemContentUnion:
key = '',
value = '', )
],
- title = '', ), )
+ title = '', ), ),
+ event = twitter_openapi_python_generated.models.event_summary_event.EventSummaryEvent(
+ rest_id = '4', ),
+ event_summary_display_type = '',
+ event_summary_url = twitter_openapi_python_generated.models.social_context_landing_url.SocialContextLandingUrl(
+ url = '',
+ url_type = 'DeepLink',
+ urt_endpoint_options = twitter_openapi_python_generated.models.urt_endpoint_options.UrtEndpointOptions(
+ request_params = [
+ twitter_openapi_python_generated.models.urt_endpoint_request_params.UrtEndpointRequestParams(
+ key = '',
+ value = '', )
+ ],
+ title = '', ), ),
+ media = twitter_openapi_python_generated.models.event_summary_media.EventSummaryMedia(
+ media_entity = twitter_openapi_python_generated.models.event_summary_media_entity.EventSummaryMediaEntity(
+ tweet_results = twitter_openapi_python_generated.models.item_result.ItemResult(
+ __typename = 'TimelineTweet',
+ result = null, ),
+ type = '', ),
+ media_key = twitter_openapi_python_generated.models.event_summary_media_key.EventSummaryMediaKey(
+ category = 56,
+ id = '', ), ),
+ title = ''
)
else:
return ItemContentUnion(
typename = 'TimelineTweet',
item_type = 'TimelineTweet',
+ promoted_metadata = twitter_openapi_python_generated.models.event_summary_promoted_metadata.EventSummaryPromotedMetadata(
+ ad_metadata_container = twitter_openapi_python_generated.models.event_summary_ad_metadata_container.EventSummaryAdMetadataContainer(
+ is_quick_promote = True,
+ render_sales_cta_website_card = True, ),
+ advertiser_results = twitter_openapi_python_generated.models.user_results.UserResults(
+ result = null, ),
+ disclosure_type = '',
+ impression_id = '',
+ impression_string = '',
+ promoted_trend = twitter_openapi_python_generated.models.promoted_trend.PromotedTrend(
+ rest_id = '4', ),
+ promoted_trend_description = '',
+ promoted_trend_name = '',
+ promoted_trend_query_term = '', ),
tweet_display_type = 'Tweet',
tweet_results = twitter_openapi_python_generated.models.item_result.ItemResult(
__typename = 'TimelineTweet',
@@ -321,6 +378,9 @@ def make_instance(self, include_optional) -> ItemContentUnion:
details = twitter_openapi_python_generated.models.client_event_info_details.ClientEventInfoDetails(
conversation_details = twitter_openapi_python_generated.models.conversation_details.ConversationDetails(
conversation_section = 'HighQuality', ),
+ notification_details = twitter_openapi_python_generated.models.notification_details.NotificationDetails(
+ impression_id = '',
+ metadata = '', ),
timelines_details = twitter_openapi_python_generated.models.timelines_details.TimelinesDetails(
controller_data = '',
injection_type = '',
@@ -351,6 +411,7 @@ def make_instance(self, include_optional) -> ItemContentUnion:
name = '',
trend_metadata = twitter_openapi_python_generated.models.trend_metadata.TrendMetadata(
domain_context = '',
+ meta_description = '',
url = twitter_openapi_python_generated.models.social_context_landing_url.SocialContextLandingUrl(
url_type = 'DeepLink',
urt_endpoint_options = twitter_openapi_python_generated.models.urt_endpoint_options.UrtEndpointOptions(
@@ -383,6 +444,17 @@ def make_instance(self, include_optional) -> ItemContentUnion:
],
title = '', ), ),
rich_message = twitter_openapi_python_generated.models.rich_message.RichMessage(
+ entities = [
+ twitter_openapi_python_generated.models.rich_message_entity.RichMessageEntity(
+ from_index = 56,
+ ref = twitter_openapi_python_generated.models.rich_message_entity_ref.RichMessageEntityRef(
+ id = '4',
+ type = 'TimelineRichTextUser',
+ url = '',
+ user_results = twitter_openapi_python_generated.models.user_results.UserResults(
+ result = null, ), ),
+ to_index = 56, )
+ ],
rtl = True,
text = '', ),
template = twitter_openapi_python_generated.models.notification_template.NotificationTemplate(
@@ -497,6 +569,29 @@ def make_instance(self, include_optional) -> ItemContentUnion:
value = '', )
],
title = '', ), ),
+ event = twitter_openapi_python_generated.models.event_summary_event.EventSummaryEvent(
+ rest_id = '4', ),
+ event_summary_display_type = '',
+ event_summary_url = twitter_openapi_python_generated.models.social_context_landing_url.SocialContextLandingUrl(
+ url = '',
+ url_type = 'DeepLink',
+ urt_endpoint_options = twitter_openapi_python_generated.models.urt_endpoint_options.UrtEndpointOptions(
+ request_params = [
+ twitter_openapi_python_generated.models.urt_endpoint_request_params.UrtEndpointRequestParams(
+ key = '',
+ value = '', )
+ ],
+ title = '', ), ),
+ media = twitter_openapi_python_generated.models.event_summary_media.EventSummaryMedia(
+ media_entity = twitter_openapi_python_generated.models.event_summary_media_entity.EventSummaryMediaEntity(
+ tweet_results = twitter_openapi_python_generated.models.item_result.ItemResult(
+ __typename = 'TimelineTweet',
+ result = null, ),
+ type = '', ),
+ media_key = twitter_openapi_python_generated.models.event_summary_media_key.EventSummaryMediaKey(
+ category = 56,
+ id = '', ), ),
+ title = '',
)
"""
diff --git a/twitter_openapi_python_generated/test/test_list_latest_tweets_timeline_response.py b/twitter_openapi_python_generated/test/test_list_latest_tweets_timeline_response.py
index ba717e5..dfdea60 100644
--- a/twitter_openapi_python_generated/test/test_list_latest_tweets_timeline_response.py
+++ b/twitter_openapi_python_generated/test/test_list_latest_tweets_timeline_response.py
@@ -63,7 +63,7 @@ def make_instance(self, include_optional) -> ListLatestTweetsTimelineResponse:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -126,7 +126,7 @@ def make_instance(self, include_optional) -> ListLatestTweetsTimelineResponse:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_list_members_list.py b/twitter_openapi_python_generated/test/test_list_members_list.py
index ed1329a..6756edc 100644
--- a/twitter_openapi_python_generated/test/test_list_members_list.py
+++ b/twitter_openapi_python_generated/test/test_list_members_list.py
@@ -61,7 +61,7 @@ def make_instance(self, include_optional) -> ListMembersList:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -95,7 +95,7 @@ def make_instance(self, include_optional) -> ListMembersList:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_list_members_response.py b/twitter_openapi_python_generated/test/test_list_members_response.py
index 0bd5155..8b29e43 100644
--- a/twitter_openapi_python_generated/test/test_list_members_response.py
+++ b/twitter_openapi_python_generated/test/test_list_members_response.py
@@ -63,7 +63,7 @@ def make_instance(self, include_optional) -> ListMembersResponse:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -126,7 +126,7 @@ def make_instance(self, include_optional) -> ListMembersResponse:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_list_members_response_data.py b/twitter_openapi_python_generated/test/test_list_members_response_data.py
index f4aa788..958951b 100644
--- a/twitter_openapi_python_generated/test/test_list_members_response_data.py
+++ b/twitter_openapi_python_generated/test/test_list_members_response_data.py
@@ -62,7 +62,7 @@ def make_instance(self, include_optional) -> ListMembersResponseData:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -97,7 +97,7 @@ def make_instance(self, include_optional) -> ListMembersResponseData:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_list_recommended_users_list.py b/twitter_openapi_python_generated/test/test_list_recommended_users_list.py
index 2c34c05..225dbf1 100644
--- a/twitter_openapi_python_generated/test/test_list_recommended_users_list.py
+++ b/twitter_openapi_python_generated/test/test_list_recommended_users_list.py
@@ -61,7 +61,7 @@ def make_instance(self, include_optional) -> ListRecommendedUsersList:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -95,7 +95,7 @@ def make_instance(self, include_optional) -> ListRecommendedUsersList:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_list_recommended_users_response.py b/twitter_openapi_python_generated/test/test_list_recommended_users_response.py
index ee8d7e5..f4082a3 100644
--- a/twitter_openapi_python_generated/test/test_list_recommended_users_response.py
+++ b/twitter_openapi_python_generated/test/test_list_recommended_users_response.py
@@ -63,7 +63,7 @@ def make_instance(self, include_optional) -> ListRecommendedUsersResponse:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -126,7 +126,7 @@ def make_instance(self, include_optional) -> ListRecommendedUsersResponse:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_list_recommended_users_response_data.py b/twitter_openapi_python_generated/test/test_list_recommended_users_response_data.py
index 30c8f46..df8a08e 100644
--- a/twitter_openapi_python_generated/test/test_list_recommended_users_response_data.py
+++ b/twitter_openapi_python_generated/test/test_list_recommended_users_response_data.py
@@ -62,7 +62,7 @@ def make_instance(self, include_optional) -> ListRecommendedUsersResponseData:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -97,7 +97,7 @@ def make_instance(self, include_optional) -> ListRecommendedUsersResponseData:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_list_search.py b/twitter_openapi_python_generated/test/test_list_search.py
new file mode 100644
index 0000000..f830871
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_list_search.py
@@ -0,0 +1,113 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.list_search import ListSearch
+
+class TestListSearch(unittest.TestCase):
+ """ListSearch unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ListSearch:
+ """Test ListSearch
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ListSearch`
+ """
+ model = ListSearch()
+ if include_optional:
+ return ListSearch(
+ list_search_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '',
+ timeline = twitter_openapi_python_generated.models.timeline.Timeline(
+ instructions = [
+ null
+ ],
+ metadata = twitter_openapi_python_generated.models.timeline_metadata.TimelineMetadata(
+ reader_mode_config = twitter_openapi_python_generated.models.reader_mode_config.ReaderModeConfig(
+ is_reader_mode_available = True, ),
+ scribe_config = twitter_openapi_python_generated.models.scribe_config.ScribeConfig(
+ page = '', ), ),
+ response_objects = twitter_openapi_python_generated.models.timeline_response_objects.TimelineResponseObjects(
+ feedback_actions = [
+ twitter_openapi_python_generated.models.feedback_action_entry.FeedbackActionEntry(
+ key = '',
+ value = twitter_openapi_python_generated.models.feedback_action.FeedbackAction(
+ child_keys = [
+ ''
+ ],
+ client_event_info = twitter_openapi_python_generated.models.feedback_client_event_info.FeedbackClientEventInfo(
+ action = '',
+ component = '',
+ element = '', ),
+ confirmation = '',
+ confirmation_display_type = 'BottomSheet',
+ feedback_type = '',
+ feedback_url = '',
+ has_undo_action = True,
+ icon = 'Frown',
+ prompt = '', ), )
+ ], ), ), )
+ )
+ else:
+ return ListSearch(
+ list_search_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '',
+ timeline = twitter_openapi_python_generated.models.timeline.Timeline(
+ instructions = [
+ null
+ ],
+ metadata = twitter_openapi_python_generated.models.timeline_metadata.TimelineMetadata(
+ reader_mode_config = twitter_openapi_python_generated.models.reader_mode_config.ReaderModeConfig(
+ is_reader_mode_available = True, ),
+ scribe_config = twitter_openapi_python_generated.models.scribe_config.ScribeConfig(
+ page = '', ), ),
+ response_objects = twitter_openapi_python_generated.models.timeline_response_objects.TimelineResponseObjects(
+ feedback_actions = [
+ twitter_openapi_python_generated.models.feedback_action_entry.FeedbackActionEntry(
+ key = '',
+ value = twitter_openapi_python_generated.models.feedback_action.FeedbackAction(
+ child_keys = [
+ ''
+ ],
+ client_event_info = twitter_openapi_python_generated.models.feedback_client_event_info.FeedbackClientEventInfo(
+ action = '',
+ component = '',
+ element = '', ),
+ confirmation = '',
+ confirmation_display_type = 'BottomSheet',
+ feedback_type = '',
+ feedback_url = '',
+ has_undo_action = True,
+ icon = 'Frown',
+ prompt = '', ), )
+ ], ), ), ),
+ )
+ """
+
+ def testListSearch(self):
+ """Test ListSearch"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_list_search_timeline_response.py b/twitter_openapi_python_generated/test/test_list_search_timeline_response.py
new file mode 100644
index 0000000..5e04683
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_list_search_timeline_response.py
@@ -0,0 +1,144 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.list_search_timeline_response import ListSearchTimelineResponse
+
+class TestListSearchTimelineResponse(unittest.TestCase):
+ """ListSearchTimelineResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ListSearchTimelineResponse:
+ """Test ListSearchTimelineResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ListSearchTimelineResponse`
+ """
+ model = ListSearchTimelineResponse()
+ if include_optional:
+ return ListSearchTimelineResponse(
+ data = twitter_openapi_python_generated.models.list_search_timeline_response_data.ListSearchTimelineResponseData(
+ search_by_raw_query = twitter_openapi_python_generated.models.list_search.ListSearch(
+ list_search_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '',
+ timeline = twitter_openapi_python_generated.models.timeline.Timeline(
+ instructions = [
+ null
+ ],
+ metadata = twitter_openapi_python_generated.models.timeline_metadata.TimelineMetadata(
+ reader_mode_config = twitter_openapi_python_generated.models.reader_mode_config.ReaderModeConfig(
+ is_reader_mode_available = True, ),
+ scribe_config = twitter_openapi_python_generated.models.scribe_config.ScribeConfig(
+ page = '', ), ),
+ response_objects = twitter_openapi_python_generated.models.timeline_response_objects.TimelineResponseObjects(
+ feedback_actions = [
+ twitter_openapi_python_generated.models.feedback_action_entry.FeedbackActionEntry(
+ key = '',
+ value = twitter_openapi_python_generated.models.feedback_action.FeedbackAction(
+ child_keys = [
+ ''
+ ],
+ client_event_info = twitter_openapi_python_generated.models.feedback_client_event_info.FeedbackClientEventInfo(
+ action = '',
+ component = '',
+ element = '', ),
+ confirmation = '',
+ confirmation_display_type = 'BottomSheet',
+ feedback_type = '',
+ feedback_url = '',
+ has_undo_action = True,
+ icon = 'Frown',
+ prompt = '', ), )
+ ], ), ), ), ), ),
+ errors = [
+ twitter_openapi_python_generated.models.error_response.ErrorResponse(
+ code = 56,
+ extensions = twitter_openapi_python_generated.models.error_extensions.ErrorExtensions(
+ code = 56,
+ kind = '',
+ name = '',
+ retry_after = 56,
+ source = '',
+ tracing = twitter_openapi_python_generated.models.tracing.Tracing(
+ trace_id = 'bf325375e030fccb', ), ),
+ kind = '',
+ locations = [
+ twitter_openapi_python_generated.models.location.Location(
+ column = 56,
+ line = 56, )
+ ],
+ message = '',
+ name = '',
+ path = [
+ null
+ ],
+ retry_after = 56,
+ source = '',
+ tracing = twitter_openapi_python_generated.models.tracing.Tracing(
+ trace_id = 'bf325375e030fccb', ), )
+ ]
+ )
+ else:
+ return ListSearchTimelineResponse(
+ data = twitter_openapi_python_generated.models.list_search_timeline_response_data.ListSearchTimelineResponseData(
+ search_by_raw_query = twitter_openapi_python_generated.models.list_search.ListSearch(
+ list_search_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '',
+ timeline = twitter_openapi_python_generated.models.timeline.Timeline(
+ instructions = [
+ null
+ ],
+ metadata = twitter_openapi_python_generated.models.timeline_metadata.TimelineMetadata(
+ reader_mode_config = twitter_openapi_python_generated.models.reader_mode_config.ReaderModeConfig(
+ is_reader_mode_available = True, ),
+ scribe_config = twitter_openapi_python_generated.models.scribe_config.ScribeConfig(
+ page = '', ), ),
+ response_objects = twitter_openapi_python_generated.models.timeline_response_objects.TimelineResponseObjects(
+ feedback_actions = [
+ twitter_openapi_python_generated.models.feedback_action_entry.FeedbackActionEntry(
+ key = '',
+ value = twitter_openapi_python_generated.models.feedback_action.FeedbackAction(
+ child_keys = [
+ ''
+ ],
+ client_event_info = twitter_openapi_python_generated.models.feedback_client_event_info.FeedbackClientEventInfo(
+ action = '',
+ component = '',
+ element = '', ),
+ confirmation = '',
+ confirmation_display_type = 'BottomSheet',
+ feedback_type = '',
+ feedback_url = '',
+ has_undo_action = True,
+ icon = 'Frown',
+ prompt = '', ), )
+ ], ), ), ), ), ),
+ )
+ """
+
+ def testListSearchTimelineResponse(self):
+ """Test ListSearchTimelineResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_list_search_timeline_response_data.py b/twitter_openapi_python_generated/test/test_list_search_timeline_response_data.py
new file mode 100644
index 0000000..1d6ed3d
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_list_search_timeline_response_data.py
@@ -0,0 +1,115 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.list_search_timeline_response_data import ListSearchTimelineResponseData
+
+class TestListSearchTimelineResponseData(unittest.TestCase):
+ """ListSearchTimelineResponseData unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ListSearchTimelineResponseData:
+ """Test ListSearchTimelineResponseData
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ListSearchTimelineResponseData`
+ """
+ model = ListSearchTimelineResponseData()
+ if include_optional:
+ return ListSearchTimelineResponseData(
+ search_by_raw_query = twitter_openapi_python_generated.models.list_search.ListSearch(
+ list_search_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '',
+ timeline = twitter_openapi_python_generated.models.timeline.Timeline(
+ instructions = [
+ null
+ ],
+ metadata = twitter_openapi_python_generated.models.timeline_metadata.TimelineMetadata(
+ reader_mode_config = twitter_openapi_python_generated.models.reader_mode_config.ReaderModeConfig(
+ is_reader_mode_available = True, ),
+ scribe_config = twitter_openapi_python_generated.models.scribe_config.ScribeConfig(
+ page = '', ), ),
+ response_objects = twitter_openapi_python_generated.models.timeline_response_objects.TimelineResponseObjects(
+ feedback_actions = [
+ twitter_openapi_python_generated.models.feedback_action_entry.FeedbackActionEntry(
+ key = '',
+ value = twitter_openapi_python_generated.models.feedback_action.FeedbackAction(
+ child_keys = [
+ ''
+ ],
+ client_event_info = twitter_openapi_python_generated.models.feedback_client_event_info.FeedbackClientEventInfo(
+ action = '',
+ component = '',
+ element = '', ),
+ confirmation = '',
+ confirmation_display_type = 'BottomSheet',
+ feedback_type = '',
+ feedback_url = '',
+ has_undo_action = True,
+ icon = 'Frown',
+ prompt = '', ), )
+ ], ), ), ), )
+ )
+ else:
+ return ListSearchTimelineResponseData(
+ search_by_raw_query = twitter_openapi_python_generated.models.list_search.ListSearch(
+ list_search_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '',
+ timeline = twitter_openapi_python_generated.models.timeline.Timeline(
+ instructions = [
+ null
+ ],
+ metadata = twitter_openapi_python_generated.models.timeline_metadata.TimelineMetadata(
+ reader_mode_config = twitter_openapi_python_generated.models.reader_mode_config.ReaderModeConfig(
+ is_reader_mode_available = True, ),
+ scribe_config = twitter_openapi_python_generated.models.scribe_config.ScribeConfig(
+ page = '', ), ),
+ response_objects = twitter_openapi_python_generated.models.timeline_response_objects.TimelineResponseObjects(
+ feedback_actions = [
+ twitter_openapi_python_generated.models.feedback_action_entry.FeedbackActionEntry(
+ key = '',
+ value = twitter_openapi_python_generated.models.feedback_action.FeedbackAction(
+ child_keys = [
+ ''
+ ],
+ client_event_info = twitter_openapi_python_generated.models.feedback_client_event_info.FeedbackClientEventInfo(
+ action = '',
+ component = '',
+ element = '', ),
+ confirmation = '',
+ confirmation_display_type = 'BottomSheet',
+ feedback_type = '',
+ feedback_url = '',
+ has_undo_action = True,
+ icon = 'Frown',
+ prompt = '', ), )
+ ], ), ), ), ),
+ )
+ """
+
+ def testListSearchTimelineResponseData(self):
+ """Test ListSearchTimelineResponseData"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_list_subscribers_list.py b/twitter_openapi_python_generated/test/test_list_subscribers_list.py
index e1287f1..1f9bcf0 100644
--- a/twitter_openapi_python_generated/test/test_list_subscribers_list.py
+++ b/twitter_openapi_python_generated/test/test_list_subscribers_list.py
@@ -61,7 +61,7 @@ def make_instance(self, include_optional) -> ListSubscribersList:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -95,7 +95,7 @@ def make_instance(self, include_optional) -> ListSubscribersList:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_list_subscribers_response.py b/twitter_openapi_python_generated/test/test_list_subscribers_response.py
index 31fd61a..db6b5e6 100644
--- a/twitter_openapi_python_generated/test/test_list_subscribers_response.py
+++ b/twitter_openapi_python_generated/test/test_list_subscribers_response.py
@@ -63,7 +63,7 @@ def make_instance(self, include_optional) -> ListSubscribersResponse:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -126,7 +126,7 @@ def make_instance(self, include_optional) -> ListSubscribersResponse:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_list_subscribers_response_data.py b/twitter_openapi_python_generated/test/test_list_subscribers_response_data.py
index 6bf86fc..6ece74b 100644
--- a/twitter_openapi_python_generated/test/test_list_subscribers_response_data.py
+++ b/twitter_openapi_python_generated/test/test_list_subscribers_response_data.py
@@ -62,7 +62,7 @@ def make_instance(self, include_optional) -> ListSubscribersResponseData:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -97,7 +97,7 @@ def make_instance(self, include_optional) -> ListSubscribersResponseData:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_list_tweets_timeline_data.py b/twitter_openapi_python_generated/test/test_list_tweets_timeline_data.py
index 581cf60..4df57de 100644
--- a/twitter_openapi_python_generated/test/test_list_tweets_timeline_data.py
+++ b/twitter_openapi_python_generated/test/test_list_tweets_timeline_data.py
@@ -62,7 +62,7 @@ def make_instance(self, include_optional) -> ListTweetsTimelineData:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -97,7 +97,7 @@ def make_instance(self, include_optional) -> ListTweetsTimelineData:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_list_tweets_timeline_list.py b/twitter_openapi_python_generated/test/test_list_tweets_timeline_list.py
index df86f73..2e840e6 100644
--- a/twitter_openapi_python_generated/test/test_list_tweets_timeline_list.py
+++ b/twitter_openapi_python_generated/test/test_list_tweets_timeline_list.py
@@ -61,7 +61,7 @@ def make_instance(self, include_optional) -> ListTweetsTimelineList:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -95,7 +95,7 @@ def make_instance(self, include_optional) -> ListTweetsTimelineList:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_lists_management_page_timeline_response.py b/twitter_openapi_python_generated/test/test_lists_management_page_timeline_response.py
new file mode 100644
index 0000000..6f34efb
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_lists_management_page_timeline_response.py
@@ -0,0 +1,144 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.lists_management_page_timeline_response import ListsManagementPageTimelineResponse
+
+class TestListsManagementPageTimelineResponse(unittest.TestCase):
+ """ListsManagementPageTimelineResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ListsManagementPageTimelineResponse:
+ """Test ListsManagementPageTimelineResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ListsManagementPageTimelineResponse`
+ """
+ model = ListsManagementPageTimelineResponse()
+ if include_optional:
+ return ListsManagementPageTimelineResponse(
+ data = twitter_openapi_python_generated.models.lists_management_page_timeline_response_data.ListsManagementPageTimelineResponseData(
+ viewer = twitter_openapi_python_generated.models.lists_management_viewer.ListsManagementViewer(
+ list_management_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '',
+ timeline = twitter_openapi_python_generated.models.timeline.Timeline(
+ instructions = [
+ null
+ ],
+ metadata = twitter_openapi_python_generated.models.timeline_metadata.TimelineMetadata(
+ reader_mode_config = twitter_openapi_python_generated.models.reader_mode_config.ReaderModeConfig(
+ is_reader_mode_available = True, ),
+ scribe_config = twitter_openapi_python_generated.models.scribe_config.ScribeConfig(
+ page = '', ), ),
+ response_objects = twitter_openapi_python_generated.models.timeline_response_objects.TimelineResponseObjects(
+ feedback_actions = [
+ twitter_openapi_python_generated.models.feedback_action_entry.FeedbackActionEntry(
+ key = '',
+ value = twitter_openapi_python_generated.models.feedback_action.FeedbackAction(
+ child_keys = [
+ ''
+ ],
+ client_event_info = twitter_openapi_python_generated.models.feedback_client_event_info.FeedbackClientEventInfo(
+ action = '',
+ component = '',
+ element = '', ),
+ confirmation = '',
+ confirmation_display_type = 'BottomSheet',
+ feedback_type = '',
+ feedback_url = '',
+ has_undo_action = True,
+ icon = 'Frown',
+ prompt = '', ), )
+ ], ), ), ), ), ),
+ errors = [
+ twitter_openapi_python_generated.models.error_response.ErrorResponse(
+ code = 56,
+ extensions = twitter_openapi_python_generated.models.error_extensions.ErrorExtensions(
+ code = 56,
+ kind = '',
+ name = '',
+ retry_after = 56,
+ source = '',
+ tracing = twitter_openapi_python_generated.models.tracing.Tracing(
+ trace_id = 'bf325375e030fccb', ), ),
+ kind = '',
+ locations = [
+ twitter_openapi_python_generated.models.location.Location(
+ column = 56,
+ line = 56, )
+ ],
+ message = '',
+ name = '',
+ path = [
+ null
+ ],
+ retry_after = 56,
+ source = '',
+ tracing = twitter_openapi_python_generated.models.tracing.Tracing(
+ trace_id = 'bf325375e030fccb', ), )
+ ]
+ )
+ else:
+ return ListsManagementPageTimelineResponse(
+ data = twitter_openapi_python_generated.models.lists_management_page_timeline_response_data.ListsManagementPageTimelineResponseData(
+ viewer = twitter_openapi_python_generated.models.lists_management_viewer.ListsManagementViewer(
+ list_management_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '',
+ timeline = twitter_openapi_python_generated.models.timeline.Timeline(
+ instructions = [
+ null
+ ],
+ metadata = twitter_openapi_python_generated.models.timeline_metadata.TimelineMetadata(
+ reader_mode_config = twitter_openapi_python_generated.models.reader_mode_config.ReaderModeConfig(
+ is_reader_mode_available = True, ),
+ scribe_config = twitter_openapi_python_generated.models.scribe_config.ScribeConfig(
+ page = '', ), ),
+ response_objects = twitter_openapi_python_generated.models.timeline_response_objects.TimelineResponseObjects(
+ feedback_actions = [
+ twitter_openapi_python_generated.models.feedback_action_entry.FeedbackActionEntry(
+ key = '',
+ value = twitter_openapi_python_generated.models.feedback_action.FeedbackAction(
+ child_keys = [
+ ''
+ ],
+ client_event_info = twitter_openapi_python_generated.models.feedback_client_event_info.FeedbackClientEventInfo(
+ action = '',
+ component = '',
+ element = '', ),
+ confirmation = '',
+ confirmation_display_type = 'BottomSheet',
+ feedback_type = '',
+ feedback_url = '',
+ has_undo_action = True,
+ icon = 'Frown',
+ prompt = '', ), )
+ ], ), ), ), ), ),
+ )
+ """
+
+ def testListsManagementPageTimelineResponse(self):
+ """Test ListsManagementPageTimelineResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_lists_management_page_timeline_response_data.py b/twitter_openapi_python_generated/test/test_lists_management_page_timeline_response_data.py
new file mode 100644
index 0000000..cc4cd72
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_lists_management_page_timeline_response_data.py
@@ -0,0 +1,115 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.lists_management_page_timeline_response_data import ListsManagementPageTimelineResponseData
+
+class TestListsManagementPageTimelineResponseData(unittest.TestCase):
+ """ListsManagementPageTimelineResponseData unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ListsManagementPageTimelineResponseData:
+ """Test ListsManagementPageTimelineResponseData
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ListsManagementPageTimelineResponseData`
+ """
+ model = ListsManagementPageTimelineResponseData()
+ if include_optional:
+ return ListsManagementPageTimelineResponseData(
+ viewer = twitter_openapi_python_generated.models.lists_management_viewer.ListsManagementViewer(
+ list_management_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '',
+ timeline = twitter_openapi_python_generated.models.timeline.Timeline(
+ instructions = [
+ null
+ ],
+ metadata = twitter_openapi_python_generated.models.timeline_metadata.TimelineMetadata(
+ reader_mode_config = twitter_openapi_python_generated.models.reader_mode_config.ReaderModeConfig(
+ is_reader_mode_available = True, ),
+ scribe_config = twitter_openapi_python_generated.models.scribe_config.ScribeConfig(
+ page = '', ), ),
+ response_objects = twitter_openapi_python_generated.models.timeline_response_objects.TimelineResponseObjects(
+ feedback_actions = [
+ twitter_openapi_python_generated.models.feedback_action_entry.FeedbackActionEntry(
+ key = '',
+ value = twitter_openapi_python_generated.models.feedback_action.FeedbackAction(
+ child_keys = [
+ ''
+ ],
+ client_event_info = twitter_openapi_python_generated.models.feedback_client_event_info.FeedbackClientEventInfo(
+ action = '',
+ component = '',
+ element = '', ),
+ confirmation = '',
+ confirmation_display_type = 'BottomSheet',
+ feedback_type = '',
+ feedback_url = '',
+ has_undo_action = True,
+ icon = 'Frown',
+ prompt = '', ), )
+ ], ), ), ), )
+ )
+ else:
+ return ListsManagementPageTimelineResponseData(
+ viewer = twitter_openapi_python_generated.models.lists_management_viewer.ListsManagementViewer(
+ list_management_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '',
+ timeline = twitter_openapi_python_generated.models.timeline.Timeline(
+ instructions = [
+ null
+ ],
+ metadata = twitter_openapi_python_generated.models.timeline_metadata.TimelineMetadata(
+ reader_mode_config = twitter_openapi_python_generated.models.reader_mode_config.ReaderModeConfig(
+ is_reader_mode_available = True, ),
+ scribe_config = twitter_openapi_python_generated.models.scribe_config.ScribeConfig(
+ page = '', ), ),
+ response_objects = twitter_openapi_python_generated.models.timeline_response_objects.TimelineResponseObjects(
+ feedback_actions = [
+ twitter_openapi_python_generated.models.feedback_action_entry.FeedbackActionEntry(
+ key = '',
+ value = twitter_openapi_python_generated.models.feedback_action.FeedbackAction(
+ child_keys = [
+ ''
+ ],
+ client_event_info = twitter_openapi_python_generated.models.feedback_client_event_info.FeedbackClientEventInfo(
+ action = '',
+ component = '',
+ element = '', ),
+ confirmation = '',
+ confirmation_display_type = 'BottomSheet',
+ feedback_type = '',
+ feedback_url = '',
+ has_undo_action = True,
+ icon = 'Frown',
+ prompt = '', ), )
+ ], ), ), ), ),
+ )
+ """
+
+ def testListsManagementPageTimelineResponseData(self):
+ """Test ListsManagementPageTimelineResponseData"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_lists_management_viewer.py b/twitter_openapi_python_generated/test/test_lists_management_viewer.py
new file mode 100644
index 0000000..604c11b
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_lists_management_viewer.py
@@ -0,0 +1,113 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.lists_management_viewer import ListsManagementViewer
+
+class TestListsManagementViewer(unittest.TestCase):
+ """ListsManagementViewer unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ListsManagementViewer:
+ """Test ListsManagementViewer
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ListsManagementViewer`
+ """
+ model = ListsManagementViewer()
+ if include_optional:
+ return ListsManagementViewer(
+ list_management_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '',
+ timeline = twitter_openapi_python_generated.models.timeline.Timeline(
+ instructions = [
+ null
+ ],
+ metadata = twitter_openapi_python_generated.models.timeline_metadata.TimelineMetadata(
+ reader_mode_config = twitter_openapi_python_generated.models.reader_mode_config.ReaderModeConfig(
+ is_reader_mode_available = True, ),
+ scribe_config = twitter_openapi_python_generated.models.scribe_config.ScribeConfig(
+ page = '', ), ),
+ response_objects = twitter_openapi_python_generated.models.timeline_response_objects.TimelineResponseObjects(
+ feedback_actions = [
+ twitter_openapi_python_generated.models.feedback_action_entry.FeedbackActionEntry(
+ key = '',
+ value = twitter_openapi_python_generated.models.feedback_action.FeedbackAction(
+ child_keys = [
+ ''
+ ],
+ client_event_info = twitter_openapi_python_generated.models.feedback_client_event_info.FeedbackClientEventInfo(
+ action = '',
+ component = '',
+ element = '', ),
+ confirmation = '',
+ confirmation_display_type = 'BottomSheet',
+ feedback_type = '',
+ feedback_url = '',
+ has_undo_action = True,
+ icon = 'Frown',
+ prompt = '', ), )
+ ], ), ), )
+ )
+ else:
+ return ListsManagementViewer(
+ list_management_timeline = twitter_openapi_python_generated.models.timeline_result.TimelineResult(
+ id = '',
+ timeline = twitter_openapi_python_generated.models.timeline.Timeline(
+ instructions = [
+ null
+ ],
+ metadata = twitter_openapi_python_generated.models.timeline_metadata.TimelineMetadata(
+ reader_mode_config = twitter_openapi_python_generated.models.reader_mode_config.ReaderModeConfig(
+ is_reader_mode_available = True, ),
+ scribe_config = twitter_openapi_python_generated.models.scribe_config.ScribeConfig(
+ page = '', ), ),
+ response_objects = twitter_openapi_python_generated.models.timeline_response_objects.TimelineResponseObjects(
+ feedback_actions = [
+ twitter_openapi_python_generated.models.feedback_action_entry.FeedbackActionEntry(
+ key = '',
+ value = twitter_openapi_python_generated.models.feedback_action.FeedbackAction(
+ child_keys = [
+ ''
+ ],
+ client_event_info = twitter_openapi_python_generated.models.feedback_client_event_info.FeedbackClientEventInfo(
+ action = '',
+ component = '',
+ element = '', ),
+ confirmation = '',
+ confirmation_display_type = 'BottomSheet',
+ feedback_type = '',
+ feedback_url = '',
+ has_undo_action = True,
+ icon = 'Frown',
+ prompt = '', ), )
+ ], ), ), ),
+ )
+ """
+
+ def testListsManagementViewer(self):
+ """Test ListsManagementViewer"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_media_community_result.py b/twitter_openapi_python_generated/test/test_media_community_result.py
index 4384d97..9e9a984 100644
--- a/twitter_openapi_python_generated/test/test_media_community_result.py
+++ b/twitter_openapi_python_generated/test/test_media_community_result.py
@@ -62,7 +62,7 @@ def make_instance(self, include_optional) -> MediaCommunityResult:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -97,7 +97,7 @@ def make_instance(self, include_optional) -> MediaCommunityResult:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_media_community_results.py b/twitter_openapi_python_generated/test/test_media_community_results.py
index 12bb749..75dd98c 100644
--- a/twitter_openapi_python_generated/test/test_media_community_results.py
+++ b/twitter_openapi_python_generated/test/test_media_community_results.py
@@ -63,7 +63,7 @@ def make_instance(self, include_optional) -> MediaCommunityResults:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -99,7 +99,7 @@ def make_instance(self, include_optional) -> MediaCommunityResults:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_media_community_tweet_data.py b/twitter_openapi_python_generated/test/test_media_community_tweet_data.py
index d5932c1..f190dc4 100644
--- a/twitter_openapi_python_generated/test/test_media_community_tweet_data.py
+++ b/twitter_openapi_python_generated/test/test_media_community_tweet_data.py
@@ -64,7 +64,7 @@ def make_instance(self, include_optional) -> MediaCommunityTweetData:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -101,7 +101,7 @@ def make_instance(self, include_optional) -> MediaCommunityTweetData:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_module_entry.py b/twitter_openapi_python_generated/test/test_module_entry.py
index 8cf7d6c..364fe59 100644
--- a/twitter_openapi_python_generated/test/test_module_entry.py
+++ b/twitter_openapi_python_generated/test/test_module_entry.py
@@ -41,6 +41,9 @@ def make_instance(self, include_optional) -> ModuleEntry:
details = twitter_openapi_python_generated.models.client_event_info_details.ClientEventInfoDetails(
conversation_details = twitter_openapi_python_generated.models.conversation_details.ConversationDetails(
conversation_section = 'HighQuality', ),
+ notification_details = twitter_openapi_python_generated.models.notification_details.NotificationDetails(
+ impression_id = '',
+ metadata = '', ),
timelines_details = twitter_openapi_python_generated.models.timelines_details.TimelinesDetails(
controller_data = '',
injection_type = '',
diff --git a/twitter_openapi_python_generated/test/test_module_footer.py b/twitter_openapi_python_generated/test/test_module_footer.py
index 18d19ae..1ca83ad 100644
--- a/twitter_openapi_python_generated/test/test_module_footer.py
+++ b/twitter_openapi_python_generated/test/test_module_footer.py
@@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> ModuleFooter:
model = ModuleFooter()
if include_optional:
return ModuleFooter(
- display_type = 'Classic',
+ display_type = '',
landing_url = twitter_openapi_python_generated.models.landing_url.LandingUrl(
url = '',
url_type = 'DeepLink', ),
@@ -44,7 +44,7 @@ def make_instance(self, include_optional) -> ModuleFooter:
)
else:
return ModuleFooter(
- display_type = 'Classic',
+ display_type = '',
landing_url = twitter_openapi_python_generated.models.landing_url.LandingUrl(
url = '',
url_type = 'DeepLink', ),
diff --git a/twitter_openapi_python_generated/test/test_module_item.py b/twitter_openapi_python_generated/test/test_module_item.py
index 1b50acf..411c546 100644
--- a/twitter_openapi_python_generated/test/test_module_item.py
+++ b/twitter_openapi_python_generated/test/test_module_item.py
@@ -44,6 +44,9 @@ def make_instance(self, include_optional) -> ModuleItem:
details = twitter_openapi_python_generated.models.client_event_info_details.ClientEventInfoDetails(
conversation_details = twitter_openapi_python_generated.models.conversation_details.ConversationDetails(
conversation_section = 'HighQuality', ),
+ notification_details = twitter_openapi_python_generated.models.notification_details.NotificationDetails(
+ impression_id = '',
+ metadata = '', ),
timelines_details = twitter_openapi_python_generated.models.timelines_details.TimelinesDetails(
controller_data = '',
injection_type = '',
@@ -69,6 +72,9 @@ def make_instance(self, include_optional) -> ModuleItem:
details = twitter_openapi_python_generated.models.client_event_info_details.ClientEventInfoDetails(
conversation_details = twitter_openapi_python_generated.models.conversation_details.ConversationDetails(
conversation_section = 'HighQuality', ),
+ notification_details = twitter_openapi_python_generated.models.notification_details.NotificationDetails(
+ impression_id = '',
+ metadata = '', ),
timelines_details = twitter_openapi_python_generated.models.timelines_details.TimelinesDetails(
controller_data = '',
injection_type = '',
diff --git a/twitter_openapi_python_generated/test/test_notification_details.py b/twitter_openapi_python_generated/test/test_notification_details.py
new file mode 100644
index 0000000..073738e
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_notification_details.py
@@ -0,0 +1,55 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.notification_details import NotificationDetails
+
+class TestNotificationDetails(unittest.TestCase):
+ """NotificationDetails unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> NotificationDetails:
+ """Test NotificationDetails
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `NotificationDetails`
+ """
+ model = NotificationDetails()
+ if include_optional:
+ return NotificationDetails(
+ impression_id = '',
+ metadata = ''
+ )
+ else:
+ return NotificationDetails(
+ impression_id = '',
+ metadata = '',
+ )
+ """
+
+ def testNotificationDetails(self):
+ """Test NotificationDetails"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_notifications_result.py b/twitter_openapi_python_generated/test/test_notifications_result.py
index 6af99f8..b2c0aac 100644
--- a/twitter_openapi_python_generated/test/test_notifications_result.py
+++ b/twitter_openapi_python_generated/test/test_notifications_result.py
@@ -62,7 +62,7 @@ def make_instance(self, include_optional) -> NotificationsResult:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -98,7 +98,7 @@ def make_instance(self, include_optional) -> NotificationsResult:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_notifications_timeline_data.py b/twitter_openapi_python_generated/test/test_notifications_timeline_data.py
index 24eca24..175f6a3 100644
--- a/twitter_openapi_python_generated/test/test_notifications_timeline_data.py
+++ b/twitter_openapi_python_generated/test/test_notifications_timeline_data.py
@@ -65,7 +65,7 @@ def make_instance(self, include_optional) -> NotificationsTimelineData:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -104,7 +104,7 @@ def make_instance(self, include_optional) -> NotificationsTimelineData:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_notifications_timeline_response.py b/twitter_openapi_python_generated/test/test_notifications_timeline_response.py
index 0800c39..2efe701 100644
--- a/twitter_openapi_python_generated/test/test_notifications_timeline_response.py
+++ b/twitter_openapi_python_generated/test/test_notifications_timeline_response.py
@@ -66,7 +66,7 @@ def make_instance(self, include_optional) -> NotificationsTimelineResponse:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -133,7 +133,7 @@ def make_instance(self, include_optional) -> NotificationsTimelineResponse:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_notifications_user_results.py b/twitter_openapi_python_generated/test/test_notifications_user_results.py
index 9707625..e9cee8b 100644
--- a/twitter_openapi_python_generated/test/test_notifications_user_results.py
+++ b/twitter_openapi_python_generated/test/test_notifications_user_results.py
@@ -63,7 +63,7 @@ def make_instance(self, include_optional) -> NotificationsUserResults:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -100,7 +100,7 @@ def make_instance(self, include_optional) -> NotificationsUserResults:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_notifications_viewer_v2.py b/twitter_openapi_python_generated/test/test_notifications_viewer_v2.py
index b6b9937..397500a 100644
--- a/twitter_openapi_python_generated/test/test_notifications_viewer_v2.py
+++ b/twitter_openapi_python_generated/test/test_notifications_viewer_v2.py
@@ -64,7 +64,7 @@ def make_instance(self, include_optional) -> NotificationsViewerV2:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -102,7 +102,7 @@ def make_instance(self, include_optional) -> NotificationsViewerV2:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_pinned_timelines.py b/twitter_openapi_python_generated/test/test_pinned_timelines.py
new file mode 100644
index 0000000..e07b93e
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_pinned_timelines.py
@@ -0,0 +1,57 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.pinned_timelines import PinnedTimelines
+
+class TestPinnedTimelines(unittest.TestCase):
+ """PinnedTimelines unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> PinnedTimelines:
+ """Test PinnedTimelines
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `PinnedTimelines`
+ """
+ model = PinnedTimelines()
+ if include_optional:
+ return PinnedTimelines(
+ pinned_timelines = [
+ None
+ ]
+ )
+ else:
+ return PinnedTimelines(
+ pinned_timelines = [
+ None
+ ],
+ )
+ """
+
+ def testPinnedTimelines(self):
+ """Test PinnedTimelines"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_pinned_timelines_response.py b/twitter_openapi_python_generated/test/test_pinned_timelines_response.py
new file mode 100644
index 0000000..c42d1e6
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_pinned_timelines_response.py
@@ -0,0 +1,88 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.pinned_timelines_response import PinnedTimelinesResponse
+
+class TestPinnedTimelinesResponse(unittest.TestCase):
+ """PinnedTimelinesResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> PinnedTimelinesResponse:
+ """Test PinnedTimelinesResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `PinnedTimelinesResponse`
+ """
+ model = PinnedTimelinesResponse()
+ if include_optional:
+ return PinnedTimelinesResponse(
+ data = twitter_openapi_python_generated.models.pinned_timelines_response_data.PinnedTimelinesResponseData(
+ pinned_timelines = twitter_openapi_python_generated.models.pinned_timelines.PinnedTimelines(
+ pinned_timelines = [
+ None
+ ], ), ),
+ errors = [
+ twitter_openapi_python_generated.models.error_response.ErrorResponse(
+ code = 56,
+ extensions = twitter_openapi_python_generated.models.error_extensions.ErrorExtensions(
+ code = 56,
+ kind = '',
+ name = '',
+ retry_after = 56,
+ source = '',
+ tracing = twitter_openapi_python_generated.models.tracing.Tracing(
+ trace_id = 'bf325375e030fccb', ), ),
+ kind = '',
+ locations = [
+ twitter_openapi_python_generated.models.location.Location(
+ column = 56,
+ line = 56, )
+ ],
+ message = '',
+ name = '',
+ path = [
+ null
+ ],
+ retry_after = 56,
+ source = '',
+ tracing = twitter_openapi_python_generated.models.tracing.Tracing(
+ trace_id = 'bf325375e030fccb', ), )
+ ]
+ )
+ else:
+ return PinnedTimelinesResponse(
+ data = twitter_openapi_python_generated.models.pinned_timelines_response_data.PinnedTimelinesResponseData(
+ pinned_timelines = twitter_openapi_python_generated.models.pinned_timelines.PinnedTimelines(
+ pinned_timelines = [
+ None
+ ], ), ),
+ )
+ """
+
+ def testPinnedTimelinesResponse(self):
+ """Test PinnedTimelinesResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_pinned_timelines_response_data.py b/twitter_openapi_python_generated/test/test_pinned_timelines_response_data.py
new file mode 100644
index 0000000..625c017
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_pinned_timelines_response_data.py
@@ -0,0 +1,59 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.pinned_timelines_response_data import PinnedTimelinesResponseData
+
+class TestPinnedTimelinesResponseData(unittest.TestCase):
+ """PinnedTimelinesResponseData unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> PinnedTimelinesResponseData:
+ """Test PinnedTimelinesResponseData
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `PinnedTimelinesResponseData`
+ """
+ model = PinnedTimelinesResponseData()
+ if include_optional:
+ return PinnedTimelinesResponseData(
+ pinned_timelines = twitter_openapi_python_generated.models.pinned_timelines.PinnedTimelines(
+ pinned_timelines = [
+ None
+ ], )
+ )
+ else:
+ return PinnedTimelinesResponseData(
+ pinned_timelines = twitter_openapi_python_generated.models.pinned_timelines.PinnedTimelines(
+ pinned_timelines = [
+ None
+ ], ),
+ )
+ """
+
+ def testPinnedTimelinesResponseData(self):
+ """Test PinnedTimelinesResponseData"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_promoted_metadata.py b/twitter_openapi_python_generated/test/test_promoted_metadata.py
index 0d7b19f..b4586b7 100644
--- a/twitter_openapi_python_generated/test/test_promoted_metadata.py
+++ b/twitter_openapi_python_generated/test/test_promoted_metadata.py
@@ -45,7 +45,8 @@ def make_instance(self, include_optional) -> PromotedMetadata:
is_quick_promote = True,
render_legacy_website_card = True,
render_sales_cta_website_card = True,
- show_overlay_on_first_card = True, ),
+ show_overlay_on_first_card = True,
+ unified_card_override = '', ),
advertiser_results = twitter_openapi_python_generated.models.user_results.UserResults(
result = null, ),
click_tracking_info = twitter_openapi_python_generated.models.click_tracking_info.ClickTrackingInfo(
@@ -68,7 +69,8 @@ def make_instance(self, include_optional) -> PromotedMetadata:
is_quick_promote = True,
render_legacy_website_card = True,
render_sales_cta_website_card = True,
- show_overlay_on_first_card = True, ),
+ show_overlay_on_first_card = True,
+ unified_card_override = '', ),
advertiser_results = twitter_openapi_python_generated.models.user_results.UserResults(
result = null, ),
click_tracking_info = twitter_openapi_python_generated.models.click_tracking_info.ClickTrackingInfo(
diff --git a/twitter_openapi_python_generated/test/test_promoted_trend.py b/twitter_openapi_python_generated/test/test_promoted_trend.py
new file mode 100644
index 0000000..2f804a4
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_promoted_trend.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.promoted_trend import PromotedTrend
+
+class TestPromotedTrend(unittest.TestCase):
+ """PromotedTrend unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> PromotedTrend:
+ """Test PromotedTrend
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `PromotedTrend`
+ """
+ model = PromotedTrend()
+ if include_optional:
+ return PromotedTrend(
+ rest_id = '4'
+ )
+ else:
+ return PromotedTrend(
+ rest_id = '4',
+ )
+ """
+
+ def testPromotedTrend(self):
+ """Test PromotedTrend"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_ranked_community_result.py b/twitter_openapi_python_generated/test/test_ranked_community_result.py
index 38fc8b3..223b20b 100644
--- a/twitter_openapi_python_generated/test/test_ranked_community_result.py
+++ b/twitter_openapi_python_generated/test/test_ranked_community_result.py
@@ -62,7 +62,7 @@ def make_instance(self, include_optional) -> RankedCommunityResult:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -97,7 +97,7 @@ def make_instance(self, include_optional) -> RankedCommunityResult:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_ranked_community_results.py b/twitter_openapi_python_generated/test/test_ranked_community_results.py
index e49d0c6..192ea94 100644
--- a/twitter_openapi_python_generated/test/test_ranked_community_results.py
+++ b/twitter_openapi_python_generated/test/test_ranked_community_results.py
@@ -63,7 +63,7 @@ def make_instance(self, include_optional) -> RankedCommunityResults:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -99,7 +99,7 @@ def make_instance(self, include_optional) -> RankedCommunityResults:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_ranked_community_tweet_data.py b/twitter_openapi_python_generated/test/test_ranked_community_tweet_data.py
index 23dd81b..5d771ed 100644
--- a/twitter_openapi_python_generated/test/test_ranked_community_tweet_data.py
+++ b/twitter_openapi_python_generated/test/test_ranked_community_tweet_data.py
@@ -64,7 +64,7 @@ def make_instance(self, include_optional) -> RankedCommunityTweetData:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -101,7 +101,7 @@ def make_instance(self, include_optional) -> RankedCommunityTweetData:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_rich_message.py b/twitter_openapi_python_generated/test/test_rich_message.py
index 8b68f20..1c393ee 100644
--- a/twitter_openapi_python_generated/test/test_rich_message.py
+++ b/twitter_openapi_python_generated/test/test_rich_message.py
@@ -36,6 +36,17 @@ def make_instance(self, include_optional) -> RichMessage:
model = RichMessage()
if include_optional:
return RichMessage(
+ entities = [
+ twitter_openapi_python_generated.models.rich_message_entity.RichMessageEntity(
+ from_index = 56,
+ ref = twitter_openapi_python_generated.models.rich_message_entity_ref.RichMessageEntityRef(
+ id = '4',
+ type = 'TimelineRichTextUser',
+ url = '',
+ user_results = twitter_openapi_python_generated.models.user_results.UserResults(
+ result = null, ), ),
+ to_index = 56, )
+ ],
rtl = True,
text = ''
)
diff --git a/twitter_openapi_python_generated/test/test_rich_message_entity.py b/twitter_openapi_python_generated/test/test_rich_message_entity.py
new file mode 100644
index 0000000..84d6df0
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_rich_message_entity.py
@@ -0,0 +1,67 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.rich_message_entity import RichMessageEntity
+
+class TestRichMessageEntity(unittest.TestCase):
+ """RichMessageEntity unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> RichMessageEntity:
+ """Test RichMessageEntity
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `RichMessageEntity`
+ """
+ model = RichMessageEntity()
+ if include_optional:
+ return RichMessageEntity(
+ from_index = 56,
+ ref = twitter_openapi_python_generated.models.rich_message_entity_ref.RichMessageEntityRef(
+ id = '4',
+ type = 'TimelineRichTextUser',
+ url = '',
+ user_results = twitter_openapi_python_generated.models.user_results.UserResults(
+ result = null, ), ),
+ to_index = 56
+ )
+ else:
+ return RichMessageEntity(
+ from_index = 56,
+ ref = twitter_openapi_python_generated.models.rich_message_entity_ref.RichMessageEntityRef(
+ id = '4',
+ type = 'TimelineRichTextUser',
+ url = '',
+ user_results = twitter_openapi_python_generated.models.user_results.UserResults(
+ result = null, ), ),
+ to_index = 56,
+ )
+ """
+
+ def testRichMessageEntity(self):
+ """Test RichMessageEntity"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_rich_message_entity_ref.py b/twitter_openapi_python_generated/test/test_rich_message_entity_ref.py
new file mode 100644
index 0000000..e10ecda
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_rich_message_entity_ref.py
@@ -0,0 +1,57 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.rich_message_entity_ref import RichMessageEntityRef
+
+class TestRichMessageEntityRef(unittest.TestCase):
+ """RichMessageEntityRef unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> RichMessageEntityRef:
+ """Test RichMessageEntityRef
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `RichMessageEntityRef`
+ """
+ model = RichMessageEntityRef()
+ if include_optional:
+ return RichMessageEntityRef(
+ id = '4',
+ type = 'TimelineRichTextUser',
+ url = '',
+ user_results = twitter_openapi_python_generated.models.user_results.UserResults(
+ result = null, )
+ )
+ else:
+ return RichMessageEntityRef(
+ type = 'TimelineRichTextUser',
+ )
+ """
+
+ def testRichMessageEntityRef(self):
+ """Test RichMessageEntityRef"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_search_by_raw_query.py b/twitter_openapi_python_generated/test/test_search_by_raw_query.py
index 271ef3a..16d7b5a 100644
--- a/twitter_openapi_python_generated/test/test_search_by_raw_query.py
+++ b/twitter_openapi_python_generated/test/test_search_by_raw_query.py
@@ -60,7 +60,7 @@ def make_instance(self, include_optional) -> SearchByRawQuery:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -93,7 +93,7 @@ def make_instance(self, include_optional) -> SearchByRawQuery:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_search_timeline.py b/twitter_openapi_python_generated/test/test_search_timeline.py
index a7105bf..0d85b3f 100644
--- a/twitter_openapi_python_generated/test/test_search_timeline.py
+++ b/twitter_openapi_python_generated/test/test_search_timeline.py
@@ -59,7 +59,7 @@ def make_instance(self, include_optional) -> SearchTimeline:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_search_timeline_data.py b/twitter_openapi_python_generated/test/test_search_timeline_data.py
index 5d1e1bb..d78cab0 100644
--- a/twitter_openapi_python_generated/test/test_search_timeline_data.py
+++ b/twitter_openapi_python_generated/test/test_search_timeline_data.py
@@ -61,7 +61,7 @@ def make_instance(self, include_optional) -> SearchTimelineData:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -95,7 +95,7 @@ def make_instance(self, include_optional) -> SearchTimelineData:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_search_timeline_response.py b/twitter_openapi_python_generated/test/test_search_timeline_response.py
index a8b909c..fe18d7f 100644
--- a/twitter_openapi_python_generated/test/test_search_timeline_response.py
+++ b/twitter_openapi_python_generated/test/test_search_timeline_response.py
@@ -62,7 +62,7 @@ def make_instance(self, include_optional) -> SearchTimelineResponse:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -124,7 +124,7 @@ def make_instance(self, include_optional) -> SearchTimelineResponse:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_slice_info.py b/twitter_openapi_python_generated/test/test_slice_info.py
new file mode 100644
index 0000000..98d6403
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_slice_info.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.slice_info import SliceInfo
+
+class TestSliceInfo(unittest.TestCase):
+ """SliceInfo unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> SliceInfo:
+ """Test SliceInfo
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `SliceInfo`
+ """
+ model = SliceInfo()
+ if include_optional:
+ return SliceInfo(
+ next_cursor = ''
+ )
+ else:
+ return SliceInfo(
+ next_cursor = '',
+ )
+ """
+
+ def testSliceInfo(self):
+ """Test SliceInfo"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_timeline.py b/twitter_openapi_python_generated/test/test_timeline.py
index d17a3d8..6119225 100644
--- a/twitter_openapi_python_generated/test/test_timeline.py
+++ b/twitter_openapi_python_generated/test/test_timeline.py
@@ -58,7 +58,7 @@ def make_instance(self, include_optional) -> Timeline:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_timeline_add_to_module.py b/twitter_openapi_python_generated/test/test_timeline_add_to_module.py
index 76551a9..f2d5e68 100644
--- a/twitter_openapi_python_generated/test/test_timeline_add_to_module.py
+++ b/twitter_openapi_python_generated/test/test_timeline_add_to_module.py
@@ -47,6 +47,9 @@ def make_instance(self, include_optional) -> TimelineAddToModule:
details = twitter_openapi_python_generated.models.client_event_info_details.ClientEventInfoDetails(
conversation_details = twitter_openapi_python_generated.models.conversation_details.ConversationDetails(
conversation_section = 'HighQuality', ),
+ notification_details = twitter_openapi_python_generated.models.notification_details.NotificationDetails(
+ impression_id = '',
+ metadata = '', ),
timelines_details = twitter_openapi_python_generated.models.timelines_details.TimelinesDetails(
controller_data = '',
injection_type = '',
@@ -79,6 +82,9 @@ def make_instance(self, include_optional) -> TimelineAddToModule:
details = twitter_openapi_python_generated.models.client_event_info_details.ClientEventInfoDetails(
conversation_details = twitter_openapi_python_generated.models.conversation_details.ConversationDetails(
conversation_section = 'HighQuality', ),
+ notification_details = twitter_openapi_python_generated.models.notification_details.NotificationDetails(
+ impression_id = '',
+ metadata = '', ),
timelines_details = twitter_openapi_python_generated.models.timelines_details.TimelinesDetails(
controller_data = '',
injection_type = '',
diff --git a/twitter_openapi_python_generated/test/test_timeline_event_summary.py b/twitter_openapi_python_generated/test/test_timeline_event_summary.py
new file mode 100644
index 0000000..49b6c45
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_timeline_event_summary.py
@@ -0,0 +1,129 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.timeline_event_summary import TimelineEventSummary
+
+class TestTimelineEventSummary(unittest.TestCase):
+ """TimelineEventSummary unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> TimelineEventSummary:
+ """Test TimelineEventSummary
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `TimelineEventSummary`
+ """
+ model = TimelineEventSummary()
+ if include_optional:
+ return TimelineEventSummary(
+ typename = 'TimelineTweet',
+ event = twitter_openapi_python_generated.models.event_summary_event.EventSummaryEvent(
+ rest_id = '4', ),
+ event_summary_display_type = '',
+ event_summary_url = twitter_openapi_python_generated.models.social_context_landing_url.SocialContextLandingUrl(
+ url = '',
+ url_type = 'DeepLink',
+ urt_endpoint_options = twitter_openapi_python_generated.models.urt_endpoint_options.UrtEndpointOptions(
+ request_params = [
+ twitter_openapi_python_generated.models.urt_endpoint_request_params.UrtEndpointRequestParams(
+ key = '',
+ value = '', )
+ ],
+ title = '', ), ),
+ item_type = 'TimelineTweet',
+ media = twitter_openapi_python_generated.models.event_summary_media.EventSummaryMedia(
+ media_entity = twitter_openapi_python_generated.models.event_summary_media_entity.EventSummaryMediaEntity(
+ tweet_results = twitter_openapi_python_generated.models.item_result.ItemResult(
+ __typename = 'TimelineTweet',
+ result = null, ),
+ type = '', ),
+ media_key = twitter_openapi_python_generated.models.event_summary_media_key.EventSummaryMediaKey(
+ category = 56,
+ id = '', ), ),
+ promoted_metadata = twitter_openapi_python_generated.models.event_summary_promoted_metadata.EventSummaryPromotedMetadata(
+ ad_metadata_container = twitter_openapi_python_generated.models.event_summary_ad_metadata_container.EventSummaryAdMetadataContainer(
+ is_quick_promote = True,
+ render_sales_cta_website_card = True, ),
+ advertiser_results = twitter_openapi_python_generated.models.user_results.UserResults(
+ result = null, ),
+ disclosure_type = '',
+ impression_id = '',
+ impression_string = '',
+ promoted_trend = twitter_openapi_python_generated.models.promoted_trend.PromotedTrend(
+ rest_id = '4', ),
+ promoted_trend_description = '',
+ promoted_trend_name = '',
+ promoted_trend_query_term = '', ),
+ title = ''
+ )
+ else:
+ return TimelineEventSummary(
+ typename = 'TimelineTweet',
+ event = twitter_openapi_python_generated.models.event_summary_event.EventSummaryEvent(
+ rest_id = '4', ),
+ event_summary_display_type = '',
+ event_summary_url = twitter_openapi_python_generated.models.social_context_landing_url.SocialContextLandingUrl(
+ url = '',
+ url_type = 'DeepLink',
+ urt_endpoint_options = twitter_openapi_python_generated.models.urt_endpoint_options.UrtEndpointOptions(
+ request_params = [
+ twitter_openapi_python_generated.models.urt_endpoint_request_params.UrtEndpointRequestParams(
+ key = '',
+ value = '', )
+ ],
+ title = '', ), ),
+ item_type = 'TimelineTweet',
+ media = twitter_openapi_python_generated.models.event_summary_media.EventSummaryMedia(
+ media_entity = twitter_openapi_python_generated.models.event_summary_media_entity.EventSummaryMediaEntity(
+ tweet_results = twitter_openapi_python_generated.models.item_result.ItemResult(
+ __typename = 'TimelineTweet',
+ result = null, ),
+ type = '', ),
+ media_key = twitter_openapi_python_generated.models.event_summary_media_key.EventSummaryMediaKey(
+ category = 56,
+ id = '', ), ),
+ promoted_metadata = twitter_openapi_python_generated.models.event_summary_promoted_metadata.EventSummaryPromotedMetadata(
+ ad_metadata_container = twitter_openapi_python_generated.models.event_summary_ad_metadata_container.EventSummaryAdMetadataContainer(
+ is_quick_promote = True,
+ render_sales_cta_website_card = True, ),
+ advertiser_results = twitter_openapi_python_generated.models.user_results.UserResults(
+ result = null, ),
+ disclosure_type = '',
+ impression_id = '',
+ impression_string = '',
+ promoted_trend = twitter_openapi_python_generated.models.promoted_trend.PromotedTrend(
+ rest_id = '4', ),
+ promoted_trend_description = '',
+ promoted_trend_name = '',
+ promoted_trend_query_term = '', ),
+ title = '',
+ )
+ """
+
+ def testTimelineEventSummary(self):
+ """Test TimelineEventSummary"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_timeline_notification.py b/twitter_openapi_python_generated/test/test_timeline_notification.py
index 1c406dd..6f90334 100644
--- a/twitter_openapi_python_generated/test/test_timeline_notification.py
+++ b/twitter_openapi_python_generated/test/test_timeline_notification.py
@@ -51,6 +51,17 @@ def make_instance(self, include_optional) -> TimelineNotification:
],
title = '', ), ),
rich_message = twitter_openapi_python_generated.models.rich_message.RichMessage(
+ entities = [
+ twitter_openapi_python_generated.models.rich_message_entity.RichMessageEntity(
+ from_index = 56,
+ ref = twitter_openapi_python_generated.models.rich_message_entity_ref.RichMessageEntityRef(
+ id = '4',
+ type = 'TimelineRichTextUser',
+ url = '',
+ user_results = twitter_openapi_python_generated.models.user_results.UserResults(
+ result = null, ), ),
+ to_index = 56, )
+ ],
rtl = True,
text = '', ),
template = twitter_openapi_python_generated.models.notification_template.NotificationTemplate(
@@ -80,6 +91,17 @@ def make_instance(self, include_optional) -> TimelineNotification:
],
title = '', ), ),
rich_message = twitter_openapi_python_generated.models.rich_message.RichMessage(
+ entities = [
+ twitter_openapi_python_generated.models.rich_message_entity.RichMessageEntity(
+ from_index = 56,
+ ref = twitter_openapi_python_generated.models.rich_message_entity_ref.RichMessageEntityRef(
+ id = '4',
+ type = 'TimelineRichTextUser',
+ url = '',
+ user_results = twitter_openapi_python_generated.models.user_results.UserResults(
+ result = null, ), ),
+ to_index = 56, )
+ ],
rtl = True,
text = '', ),
template = twitter_openapi_python_generated.models.notification_template.NotificationTemplate(
diff --git a/twitter_openapi_python_generated/test/test_timeline_prompt.py b/twitter_openapi_python_generated/test/test_timeline_prompt.py
index 4db7b9a..a853e86 100644
--- a/twitter_openapi_python_generated/test/test_timeline_prompt.py
+++ b/twitter_openapi_python_generated/test/test_timeline_prompt.py
@@ -42,6 +42,9 @@ def make_instance(self, include_optional) -> TimelinePrompt:
details = twitter_openapi_python_generated.models.client_event_info_details.ClientEventInfoDetails(
conversation_details = twitter_openapi_python_generated.models.conversation_details.ConversationDetails(
conversation_section = 'HighQuality', ),
+ notification_details = twitter_openapi_python_generated.models.notification_details.NotificationDetails(
+ impression_id = '',
+ metadata = '', ),
timelines_details = twitter_openapi_python_generated.models.timelines_details.TimelinesDetails(
controller_data = '',
injection_type = '',
@@ -68,6 +71,9 @@ def make_instance(self, include_optional) -> TimelinePrompt:
details = twitter_openapi_python_generated.models.client_event_info_details.ClientEventInfoDetails(
conversation_details = twitter_openapi_python_generated.models.conversation_details.ConversationDetails(
conversation_section = 'HighQuality', ),
+ notification_details = twitter_openapi_python_generated.models.notification_details.NotificationDetails(
+ impression_id = '',
+ metadata = '', ),
timelines_details = twitter_openapi_python_generated.models.timelines_details.TimelinesDetails(
controller_data = '',
injection_type = '',
diff --git a/twitter_openapi_python_generated/test/test_timeline_response.py b/twitter_openapi_python_generated/test/test_timeline_response.py
index c89a23a..12e0a68 100644
--- a/twitter_openapi_python_generated/test/test_timeline_response.py
+++ b/twitter_openapi_python_generated/test/test_timeline_response.py
@@ -61,7 +61,7 @@ def make_instance(self, include_optional) -> TimelineResponse:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -122,7 +122,7 @@ def make_instance(self, include_optional) -> TimelineResponse:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_timeline_response_objects.py b/twitter_openapi_python_generated/test/test_timeline_response_objects.py
index 2b04cff..5330828 100644
--- a/twitter_openapi_python_generated/test/test_timeline_response_objects.py
+++ b/twitter_openapi_python_generated/test/test_timeline_response_objects.py
@@ -49,7 +49,7 @@ def make_instance(self, include_optional) -> TimelineResponseObjects:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_timeline_result.py b/twitter_openapi_python_generated/test/test_timeline_result.py
index 5064ca0..91d4110 100644
--- a/twitter_openapi_python_generated/test/test_timeline_result.py
+++ b/twitter_openapi_python_generated/test/test_timeline_result.py
@@ -60,7 +60,7 @@ def make_instance(self, include_optional) -> TimelineResult:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_timeline_show_alert.py b/twitter_openapi_python_generated/test/test_timeline_show_alert.py
index d437906..a9cc027 100644
--- a/twitter_openapi_python_generated/test/test_timeline_show_alert.py
+++ b/twitter_openapi_python_generated/test/test_timeline_show_alert.py
@@ -42,6 +42,9 @@ def make_instance(self, include_optional) -> TimelineShowAlert:
details = twitter_openapi_python_generated.models.client_event_info_details.ClientEventInfoDetails(
conversation_details = twitter_openapi_python_generated.models.conversation_details.ConversationDetails(
conversation_section = 'HighQuality', ),
+ notification_details = twitter_openapi_python_generated.models.notification_details.NotificationDetails(
+ impression_id = '',
+ metadata = '', ),
timelines_details = twitter_openapi_python_generated.models.timelines_details.TimelinesDetails(
controller_data = '',
injection_type = '',
@@ -76,6 +79,9 @@ def make_instance(self, include_optional) -> TimelineShowAlert:
details = twitter_openapi_python_generated.models.client_event_info_details.ClientEventInfoDetails(
conversation_details = twitter_openapi_python_generated.models.conversation_details.ConversationDetails(
conversation_section = 'HighQuality', ),
+ notification_details = twitter_openapi_python_generated.models.notification_details.NotificationDetails(
+ impression_id = '',
+ metadata = '', ),
timelines_details = twitter_openapi_python_generated.models.timelines_details.TimelinesDetails(
controller_data = '',
injection_type = '',
diff --git a/twitter_openapi_python_generated/test/test_timeline_show_cover.py b/twitter_openapi_python_generated/test/test_timeline_show_cover.py
index 354bce2..73a1233 100644
--- a/twitter_openapi_python_generated/test/test_timeline_show_cover.py
+++ b/twitter_openapi_python_generated/test/test_timeline_show_cover.py
@@ -41,6 +41,9 @@ def make_instance(self, include_optional) -> TimelineShowCover:
details = twitter_openapi_python_generated.models.client_event_info_details.ClientEventInfoDetails(
conversation_details = twitter_openapi_python_generated.models.conversation_details.ConversationDetails(
conversation_section = 'HighQuality', ),
+ notification_details = twitter_openapi_python_generated.models.notification_details.NotificationDetails(
+ impression_id = '',
+ metadata = '', ),
timelines_details = twitter_openapi_python_generated.models.timelines_details.TimelinesDetails(
controller_data = '',
injection_type = '',
@@ -99,6 +102,9 @@ def make_instance(self, include_optional) -> TimelineShowCover:
details = twitter_openapi_python_generated.models.client_event_info_details.ClientEventInfoDetails(
conversation_details = twitter_openapi_python_generated.models.conversation_details.ConversationDetails(
conversation_section = 'HighQuality', ),
+ notification_details = twitter_openapi_python_generated.models.notification_details.NotificationDetails(
+ impression_id = '',
+ metadata = '', ),
timelines_details = twitter_openapi_python_generated.models.timelines_details.TimelinesDetails(
controller_data = '',
injection_type = '',
diff --git a/twitter_openapi_python_generated/test/test_timeline_timeline_item.py b/twitter_openapi_python_generated/test/test_timeline_timeline_item.py
index abec809..9becbd0 100644
--- a/twitter_openapi_python_generated/test/test_timeline_timeline_item.py
+++ b/twitter_openapi_python_generated/test/test_timeline_timeline_item.py
@@ -42,6 +42,9 @@ def make_instance(self, include_optional) -> TimelineTimelineItem:
details = twitter_openapi_python_generated.models.client_event_info_details.ClientEventInfoDetails(
conversation_details = twitter_openapi_python_generated.models.conversation_details.ConversationDetails(
conversation_section = 'HighQuality', ),
+ notification_details = twitter_openapi_python_generated.models.notification_details.NotificationDetails(
+ impression_id = '',
+ metadata = '', ),
timelines_details = twitter_openapi_python_generated.models.timelines_details.TimelinesDetails(
controller_data = '',
injection_type = '',
diff --git a/twitter_openapi_python_generated/test/test_timeline_timeline_module.py b/twitter_openapi_python_generated/test/test_timeline_timeline_module.py
index 46f984e..bfa69df 100644
--- a/twitter_openapi_python_generated/test/test_timeline_timeline_module.py
+++ b/twitter_openapi_python_generated/test/test_timeline_timeline_module.py
@@ -42,6 +42,9 @@ def make_instance(self, include_optional) -> TimelineTimelineModule:
details = twitter_openapi_python_generated.models.client_event_info_details.ClientEventInfoDetails(
conversation_details = twitter_openapi_python_generated.models.conversation_details.ConversationDetails(
conversation_section = 'HighQuality', ),
+ notification_details = twitter_openapi_python_generated.models.notification_details.NotificationDetails(
+ impression_id = '',
+ metadata = '', ),
timelines_details = twitter_openapi_python_generated.models.timelines_details.TimelinesDetails(
controller_data = '',
injection_type = '',
@@ -59,7 +62,7 @@ def make_instance(self, include_optional) -> TimelineTimelineModule:
],
feedback_metadata = '', ),
footer = twitter_openapi_python_generated.models.module_footer.ModuleFooter(
- display_type = 'Classic',
+ display_type = '',
landing_url = twitter_openapi_python_generated.models.landing_url.LandingUrl(
url = '',
url_type = 'DeepLink', ),
@@ -78,6 +81,9 @@ def make_instance(self, include_optional) -> TimelineTimelineModule:
details = twitter_openapi_python_generated.models.client_event_info_details.ClientEventInfoDetails(
conversation_details = twitter_openapi_python_generated.models.conversation_details.ConversationDetails(
conversation_section = 'HighQuality', ),
+ notification_details = twitter_openapi_python_generated.models.notification_details.NotificationDetails(
+ impression_id = '',
+ metadata = '', ),
timelines_details = twitter_openapi_python_generated.models.timelines_details.TimelinesDetails(
controller_data = '',
injection_type = '',
diff --git a/twitter_openapi_python_generated/test/test_timeline_trend.py b/twitter_openapi_python_generated/test/test_timeline_trend.py
index be06133..cf1de50 100644
--- a/twitter_openapi_python_generated/test/test_timeline_trend.py
+++ b/twitter_openapi_python_generated/test/test_timeline_trend.py
@@ -37,6 +37,7 @@ def make_instance(self, include_optional) -> TimelineTrend:
if include_optional:
return TimelineTrend(
typename = 'TimelineTweet',
+ description = '',
grouped_trends = [
twitter_openapi_python_generated.models.grouped_trend.GroupedTrend(
name = '',
@@ -57,6 +58,17 @@ def make_instance(self, include_optional) -> TimelineTrend:
is_ai_trend = True,
item_type = 'TimelineTweet',
name = '',
+ promoted_metadata = twitter_openapi_python_generated.models.trend_promoted_metadata.TrendPromotedMetadata(
+ advertiser_results = twitter_openapi_python_generated.models.user_results.UserResults(
+ result = null, ),
+ disclosure_type = '',
+ impression_id = '',
+ impression_string = '',
+ promoted_trend = twitter_openapi_python_generated.models.promoted_trend.PromotedTrend(
+ rest_id = '4', ),
+ promoted_trend_description = '',
+ promoted_trend_name = '',
+ promoted_trend_query_term = '', ),
rank = '4',
social_context = None,
thumbnail_image = twitter_openapi_python_generated.models.thumbnail_image.ThumbnailImage(
@@ -65,6 +77,7 @@ def make_instance(self, include_optional) -> TimelineTrend:
original_img_width = 56, ),
trend_metadata = twitter_openapi_python_generated.models.trend_metadata.TrendMetadata(
domain_context = '',
+ meta_description = '',
url = twitter_openapi_python_generated.models.social_context_landing_url.SocialContextLandingUrl(
url_type = 'DeepLink',
urt_endpoint_options = twitter_openapi_python_generated.models.urt_endpoint_options.UrtEndpointOptions(
@@ -91,6 +104,7 @@ def make_instance(self, include_optional) -> TimelineTrend:
name = '',
trend_metadata = twitter_openapi_python_generated.models.trend_metadata.TrendMetadata(
domain_context = '',
+ meta_description = '',
url = twitter_openapi_python_generated.models.social_context_landing_url.SocialContextLandingUrl(
url_type = 'DeepLink',
urt_endpoint_options = twitter_openapi_python_generated.models.urt_endpoint_options.UrtEndpointOptions(
diff --git a/twitter_openapi_python_generated/test/test_timeline_tweet.py b/twitter_openapi_python_generated/test/test_timeline_tweet.py
index 3430a42..c8732c1 100644
--- a/twitter_openapi_python_generated/test/test_timeline_tweet.py
+++ b/twitter_openapi_python_generated/test/test_timeline_tweet.py
@@ -55,7 +55,8 @@ def make_instance(self, include_optional) -> TimelineTweet:
is_quick_promote = True,
render_legacy_website_card = True,
render_sales_cta_website_card = True,
- show_overlay_on_first_card = True, ),
+ show_overlay_on_first_card = True,
+ unified_card_override = '', ),
advertiser_results = twitter_openapi_python_generated.models.user_results.UserResults(
result = null, ),
click_tracking_info = twitter_openapi_python_generated.models.click_tracking_info.ClickTrackingInfo(
diff --git a/twitter_openapi_python_generated/test/test_topic_carousel_query_response.py b/twitter_openapi_python_generated/test/test_topic_carousel_query_response.py
new file mode 100644
index 0000000..6faa2aa
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_topic_carousel_query_response.py
@@ -0,0 +1,102 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.topic_carousel_query_response import TopicCarouselQueryResponse
+
+class TestTopicCarouselQueryResponse(unittest.TestCase):
+ """TopicCarouselQueryResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> TopicCarouselQueryResponse:
+ """Test TopicCarouselQueryResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `TopicCarouselQueryResponse`
+ """
+ model = TopicCarouselQueryResponse()
+ if include_optional:
+ return TopicCarouselQueryResponse(
+ data = twitter_openapi_python_generated.models.topic_carousel_query_response_data.TopicCarouselQueryResponseData(
+ community_topic_results = twitter_openapi_python_generated.models.community_topic_results.CommunityTopicResults(
+ community_topics = [
+ twitter_openapi_python_generated.models.community_topic.CommunityTopic(
+ subtopics = [
+ twitter_openapi_python_generated.models.community_subtopic.CommunitySubtopic(
+ topic_id = '4',
+ topic_name = '', )
+ ],
+ topic_id = '4',
+ topic_name = '', )
+ ], ), ),
+ errors = [
+ twitter_openapi_python_generated.models.error_response.ErrorResponse(
+ code = 56,
+ extensions = twitter_openapi_python_generated.models.error_extensions.ErrorExtensions(
+ code = 56,
+ kind = '',
+ name = '',
+ retry_after = 56,
+ source = '',
+ tracing = twitter_openapi_python_generated.models.tracing.Tracing(
+ trace_id = 'bf325375e030fccb', ), ),
+ kind = '',
+ locations = [
+ twitter_openapi_python_generated.models.location.Location(
+ column = 56,
+ line = 56, )
+ ],
+ message = '',
+ name = '',
+ path = [
+ null
+ ],
+ retry_after = 56,
+ source = '',
+ tracing = twitter_openapi_python_generated.models.tracing.Tracing(
+ trace_id = 'bf325375e030fccb', ), )
+ ]
+ )
+ else:
+ return TopicCarouselQueryResponse(
+ data = twitter_openapi_python_generated.models.topic_carousel_query_response_data.TopicCarouselQueryResponseData(
+ community_topic_results = twitter_openapi_python_generated.models.community_topic_results.CommunityTopicResults(
+ community_topics = [
+ twitter_openapi_python_generated.models.community_topic.CommunityTopic(
+ subtopics = [
+ twitter_openapi_python_generated.models.community_subtopic.CommunitySubtopic(
+ topic_id = '4',
+ topic_name = '', )
+ ],
+ topic_id = '4',
+ topic_name = '', )
+ ], ), ),
+ )
+ """
+
+ def testTopicCarouselQueryResponse(self):
+ """Test TopicCarouselQueryResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_topic_carousel_query_response_data.py b/twitter_openapi_python_generated/test/test_topic_carousel_query_response_data.py
new file mode 100644
index 0000000..c9651d8
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_topic_carousel_query_response_data.py
@@ -0,0 +1,73 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.topic_carousel_query_response_data import TopicCarouselQueryResponseData
+
+class TestTopicCarouselQueryResponseData(unittest.TestCase):
+ """TopicCarouselQueryResponseData unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> TopicCarouselQueryResponseData:
+ """Test TopicCarouselQueryResponseData
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `TopicCarouselQueryResponseData`
+ """
+ model = TopicCarouselQueryResponseData()
+ if include_optional:
+ return TopicCarouselQueryResponseData(
+ community_topic_results = twitter_openapi_python_generated.models.community_topic_results.CommunityTopicResults(
+ community_topics = [
+ twitter_openapi_python_generated.models.community_topic.CommunityTopic(
+ subtopics = [
+ twitter_openapi_python_generated.models.community_subtopic.CommunitySubtopic(
+ topic_id = '4',
+ topic_name = '', )
+ ],
+ topic_id = '4',
+ topic_name = '', )
+ ], )
+ )
+ else:
+ return TopicCarouselQueryResponseData(
+ community_topic_results = twitter_openapi_python_generated.models.community_topic_results.CommunityTopicResults(
+ community_topics = [
+ twitter_openapi_python_generated.models.community_topic.CommunityTopic(
+ subtopics = [
+ twitter_openapi_python_generated.models.community_subtopic.CommunitySubtopic(
+ topic_id = '4',
+ topic_name = '', )
+ ],
+ topic_id = '4',
+ topic_name = '', )
+ ], ),
+ )
+ """
+
+ def testTopicCarouselQueryResponseData(self):
+ """Test TopicCarouselQueryResponseData"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_trend_metadata.py b/twitter_openapi_python_generated/test/test_trend_metadata.py
index 7e0e8b5..ae2489f 100644
--- a/twitter_openapi_python_generated/test/test_trend_metadata.py
+++ b/twitter_openapi_python_generated/test/test_trend_metadata.py
@@ -37,6 +37,7 @@ def make_instance(self, include_optional) -> TrendMetadata:
if include_optional:
return TrendMetadata(
domain_context = '',
+ meta_description = '',
url = twitter_openapi_python_generated.models.social_context_landing_url.SocialContextLandingUrl(
url_type = 'DeepLink',
urt_endpoint_options = twitter_openapi_python_generated.models.urt_endpoint_options.UrtEndpointOptions(
diff --git a/twitter_openapi_python_generated/test/test_trend_promoted_metadata.py b/twitter_openapi_python_generated/test/test_trend_promoted_metadata.py
new file mode 100644
index 0000000..812a7b1
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_trend_promoted_metadata.py
@@ -0,0 +1,71 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.trend_promoted_metadata import TrendPromotedMetadata
+
+class TestTrendPromotedMetadata(unittest.TestCase):
+ """TrendPromotedMetadata unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> TrendPromotedMetadata:
+ """Test TrendPromotedMetadata
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `TrendPromotedMetadata`
+ """
+ model = TrendPromotedMetadata()
+ if include_optional:
+ return TrendPromotedMetadata(
+ advertiser_results = twitter_openapi_python_generated.models.user_results.UserResults(
+ result = null, ),
+ disclosure_type = '',
+ impression_id = '',
+ impression_string = '',
+ promoted_trend = twitter_openapi_python_generated.models.promoted_trend.PromotedTrend(
+ rest_id = '4', ),
+ promoted_trend_description = '',
+ promoted_trend_name = '',
+ promoted_trend_query_term = ''
+ )
+ else:
+ return TrendPromotedMetadata(
+ advertiser_results = twitter_openapi_python_generated.models.user_results.UserResults(
+ result = null, ),
+ disclosure_type = '',
+ impression_id = '',
+ impression_string = '',
+ promoted_trend = twitter_openapi_python_generated.models.promoted_trend.PromotedTrend(
+ rest_id = '4', ),
+ promoted_trend_description = '',
+ promoted_trend_name = '',
+ promoted_trend_query_term = '',
+ )
+ """
+
+ def testTrendPromotedMetadata(self):
+ """Test TrendPromotedMetadata"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_tweet_api.py b/twitter_openapi_python_generated/test/test_tweet_api.py
index 1cca3b0..593a670 100644
--- a/twitter_openapi_python_generated/test/test_tweet_api.py
+++ b/twitter_openapi_python_generated/test/test_tweet_api.py
@@ -27,6 +27,12 @@ def setUp(self) -> None:
def tearDown(self) -> None:
pass
+ def test_get_bookmark_search_timeline(self) -> None:
+ """Test case for get_bookmark_search_timeline
+
+ """
+ pass
+
def test_get_bookmarks(self) -> None:
"""Test case for get_bookmarks
@@ -69,6 +75,12 @@ def test_get_explore_page(self) -> None:
"""
pass
+ def test_get_explore_sidebar(self) -> None:
+ """Test case for get_explore_sidebar
+
+ """
+ pass
+
def test_get_generic_timeline_by_id(self) -> None:
"""Test case for get_generic_timeline_by_id
diff --git a/twitter_openapi_python_generated/test/test_tweet_detail_response.py b/twitter_openapi_python_generated/test/test_tweet_detail_response.py
index cfc2463..5ccf64d 100644
--- a/twitter_openapi_python_generated/test/test_tweet_detail_response.py
+++ b/twitter_openapi_python_generated/test/test_tweet_detail_response.py
@@ -60,7 +60,7 @@ def make_instance(self, include_optional) -> TweetDetailResponse:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -120,7 +120,7 @@ def make_instance(self, include_optional) -> TweetDetailResponse:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_tweet_detail_response_data.py b/twitter_openapi_python_generated/test/test_tweet_detail_response_data.py
index a8813ae..a3cc695 100644
--- a/twitter_openapi_python_generated/test/test_tweet_detail_response_data.py
+++ b/twitter_openapi_python_generated/test/test_tweet_detail_response_data.py
@@ -59,7 +59,7 @@ def make_instance(self, include_optional) -> TweetDetailResponseData:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_tweet_favoriters_response.py b/twitter_openapi_python_generated/test/test_tweet_favoriters_response.py
index 3af65d9..a755113 100644
--- a/twitter_openapi_python_generated/test/test_tweet_favoriters_response.py
+++ b/twitter_openapi_python_generated/test/test_tweet_favoriters_response.py
@@ -62,7 +62,7 @@ def make_instance(self, include_optional) -> TweetFavoritersResponse:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -124,7 +124,7 @@ def make_instance(self, include_optional) -> TweetFavoritersResponse:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_tweet_favoriters_response_data.py b/twitter_openapi_python_generated/test/test_tweet_favoriters_response_data.py
index 83a17d6..ac0f746 100644
--- a/twitter_openapi_python_generated/test/test_tweet_favoriters_response_data.py
+++ b/twitter_openapi_python_generated/test/test_tweet_favoriters_response_data.py
@@ -61,7 +61,7 @@ def make_instance(self, include_optional) -> TweetFavoritersResponseData:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_tweet_retweeters_response.py b/twitter_openapi_python_generated/test/test_tweet_retweeters_response.py
index e97e937..4a1316e 100644
--- a/twitter_openapi_python_generated/test/test_tweet_retweeters_response.py
+++ b/twitter_openapi_python_generated/test/test_tweet_retweeters_response.py
@@ -62,7 +62,7 @@ def make_instance(self, include_optional) -> TweetRetweetersResponse:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -124,7 +124,7 @@ def make_instance(self, include_optional) -> TweetRetweetersResponse:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_tweet_retweeters_response_data.py b/twitter_openapi_python_generated/test/test_tweet_retweeters_response_data.py
index ab5e9c8..e31f672 100644
--- a/twitter_openapi_python_generated/test/test_tweet_retweeters_response_data.py
+++ b/twitter_openapi_python_generated/test/test_tweet_retweeters_response_data.py
@@ -61,7 +61,7 @@ def make_instance(self, include_optional) -> TweetRetweetersResponseData:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_user_highlights_tweets_data.py b/twitter_openapi_python_generated/test/test_user_highlights_tweets_data.py
index d7459e5..9a951cc 100644
--- a/twitter_openapi_python_generated/test/test_user_highlights_tweets_data.py
+++ b/twitter_openapi_python_generated/test/test_user_highlights_tweets_data.py
@@ -63,7 +63,7 @@ def make_instance(self, include_optional) -> UserHighlightsTweetsData:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_user_highlights_tweets_response.py b/twitter_openapi_python_generated/test/test_user_highlights_tweets_response.py
index c85241b..70fcddb 100644
--- a/twitter_openapi_python_generated/test/test_user_highlights_tweets_response.py
+++ b/twitter_openapi_python_generated/test/test_user_highlights_tweets_response.py
@@ -64,7 +64,7 @@ def make_instance(self, include_optional) -> UserHighlightsTweetsResponse:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -128,7 +128,7 @@ def make_instance(self, include_optional) -> UserHighlightsTweetsResponse:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_user_highlights_tweets_result.py b/twitter_openapi_python_generated/test/test_user_highlights_tweets_result.py
index 3a01034..dfff398 100644
--- a/twitter_openapi_python_generated/test/test_user_highlights_tweets_result.py
+++ b/twitter_openapi_python_generated/test/test_user_highlights_tweets_result.py
@@ -61,7 +61,7 @@ def make_instance(self, include_optional) -> UserHighlightsTweetsResult:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -95,7 +95,7 @@ def make_instance(self, include_optional) -> UserHighlightsTweetsResult:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_user_highlights_tweets_timeline.py b/twitter_openapi_python_generated/test/test_user_highlights_tweets_timeline.py
index 2c6933e..abd7c08 100644
--- a/twitter_openapi_python_generated/test/test_user_highlights_tweets_timeline.py
+++ b/twitter_openapi_python_generated/test/test_user_highlights_tweets_timeline.py
@@ -59,7 +59,7 @@ def make_instance(self, include_optional) -> UserHighlightsTweetsTimeline:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -91,7 +91,7 @@ def make_instance(self, include_optional) -> UserHighlightsTweetsTimeline:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_user_highlights_tweets_user.py b/twitter_openapi_python_generated/test/test_user_highlights_tweets_user.py
index 651aa9b..0e16555 100644
--- a/twitter_openapi_python_generated/test/test_user_highlights_tweets_user.py
+++ b/twitter_openapi_python_generated/test/test_user_highlights_tweets_user.py
@@ -62,7 +62,7 @@ def make_instance(self, include_optional) -> UserHighlightsTweetsUser:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -97,7 +97,7 @@ def make_instance(self, include_optional) -> UserHighlightsTweetsUser:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_user_list_api.py b/twitter_openapi_python_generated/test/test_user_list_api.py
index addc247..2fc59d5 100644
--- a/twitter_openapi_python_generated/test/test_user_list_api.py
+++ b/twitter_openapi_python_generated/test/test_user_list_api.py
@@ -33,6 +33,12 @@ def test_get_blue_verified_followers(self) -> None:
"""
pass
+ def test_get_combined_lists(self) -> None:
+ """Test case for get_combined_lists
+
+ """
+ pass
+
def test_get_favoriters(self) -> None:
"""Test case for get_favoriters
@@ -87,12 +93,24 @@ def test_get_list_ownerships(self) -> None:
"""
pass
+ def test_get_list_search_timeline(self) -> None:
+ """Test case for get_list_search_timeline
+
+ """
+ pass
+
def test_get_list_subscribers(self) -> None:
"""Test case for get_list_subscribers
"""
pass
+ def test_get_lists_management_page_timeline(self) -> None:
+ """Test case for get_lists_management_page_timeline
+
+ """
+ pass
+
def test_get_retweeters(self) -> None:
"""Test case for get_retweeters
diff --git a/twitter_openapi_python_generated/test/test_user_tweets_result_v2.py b/twitter_openapi_python_generated/test/test_user_tweets_result_v2.py
index f131702..4dd6bad 100644
--- a/twitter_openapi_python_generated/test/test_user_tweets_result_v2.py
+++ b/twitter_openapi_python_generated/test/test_user_tweets_result_v2.py
@@ -62,7 +62,7 @@ def make_instance(self, include_optional) -> UserTweetsResultV2:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
@@ -97,7 +97,7 @@ def make_instance(self, include_optional) -> UserTweetsResultV2:
element = '', ),
confirmation = '',
confirmation_display_type = 'BottomSheet',
- feedback_type = 'DontLike',
+ feedback_type = '',
feedback_url = '',
has_undo_action = True,
icon = 'Frown',
diff --git a/twitter_openapi_python_generated/test/test_users_api.py b/twitter_openapi_python_generated/test/test_users_api.py
index c6c619f..4adf5bf 100644
--- a/twitter_openapi_python_generated/test/test_users_api.py
+++ b/twitter_openapi_python_generated/test/test_users_api.py
@@ -33,6 +33,12 @@ def test_get_users_by_rest_ids(self) -> None:
"""
pass
+ def test_get_users_verified_avatars(self) -> None:
+ """Test case for get_users_verified_avatars
+
+ """
+ pass
+
if __name__ == '__main__':
unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_users_verified_avatars_response.py b/twitter_openapi_python_generated/test/test_users_verified_avatars_response.py
new file mode 100644
index 0000000..59db5c2
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_users_verified_avatars_response.py
@@ -0,0 +1,150 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.users_verified_avatars_response import UsersVerifiedAvatarsResponse
+
+class TestUsersVerifiedAvatarsResponse(unittest.TestCase):
+ """UsersVerifiedAvatarsResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> UsersVerifiedAvatarsResponse:
+ """Test UsersVerifiedAvatarsResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `UsersVerifiedAvatarsResponse`
+ """
+ model = UsersVerifiedAvatarsResponse()
+ if include_optional:
+ return UsersVerifiedAvatarsResponse(
+ data = twitter_openapi_python_generated.models.users_verified_avatars_response_data.UsersVerifiedAvatarsResponseData(
+ users_results = [
+ twitter_openapi_python_generated.models.verified_avatar_user_results.VerifiedAvatarUserResults(
+ result = twitter_openapi_python_generated.models.verified_avatar_user.VerifiedAvatarUser(
+ __typename = 'TimelineTweet',
+ affiliates_highlighted_label = twitter_openapi_python_generated.models.affiliates_highlighted_label.AffiliatesHighlightedLabel(
+ label = twitter_openapi_python_generated.models.user_label.UserLabel(
+ badge = twitter_openapi_python_generated.models.user_label_badge.UserLabelBadge(
+ url = '', ),
+ description = '',
+ long_description = twitter_openapi_python_generated.models.user_label_text.UserLabelText(
+ entities = [
+ twitter_openapi_python_generated.models.user_label_text_entity.UserLabelTextEntity(
+ from_index = 56,
+ ref = twitter_openapi_python_generated.models.user_label_text_entity_ref.UserLabelTextEntityRef(
+ mention_results = twitter_openapi_python_generated.models.user_label_mention_results.UserLabelMentionResults(
+ result = twitter_openapi_python_generated.models.user_label_mention_user.UserLabelMentionUser(
+ __typename = 'TimelineTweet',
+ core = twitter_openapi_python_generated.models.user_label_mention_user_core.UserLabelMentionUserCore(
+ screen_name = '', ),
+ rest_id = '4', ), ),
+ screen_name = '',
+ type = 'TimelineRichTextMention', ),
+ to_index = 56, )
+ ],
+ text = '', ),
+ url = twitter_openapi_python_generated.models.user_label_url.UserLabelUrl(
+ url = '',
+ url_type = 'DeepLink', ),
+ user_label_display_type = 'Badge',
+ user_label_type = 'AutomatedLabel', ), ),
+ is_blue_verified = True,
+ profile_image_shape = '',
+ rest_id = '4',
+ verification = twitter_openapi_python_generated.models.verification.verification(), ), )
+ ], ),
+ errors = [
+ twitter_openapi_python_generated.models.error_response.ErrorResponse(
+ code = 56,
+ extensions = twitter_openapi_python_generated.models.error_extensions.ErrorExtensions(
+ code = 56,
+ kind = '',
+ name = '',
+ retry_after = 56,
+ source = '',
+ tracing = twitter_openapi_python_generated.models.tracing.Tracing(
+ trace_id = 'bf325375e030fccb', ), ),
+ kind = '',
+ locations = [
+ twitter_openapi_python_generated.models.location.Location(
+ column = 56,
+ line = 56, )
+ ],
+ message = '',
+ name = '',
+ path = [
+ null
+ ],
+ retry_after = 56,
+ source = '',
+ tracing = twitter_openapi_python_generated.models.tracing.Tracing(
+ trace_id = 'bf325375e030fccb', ), )
+ ]
+ )
+ else:
+ return UsersVerifiedAvatarsResponse(
+ data = twitter_openapi_python_generated.models.users_verified_avatars_response_data.UsersVerifiedAvatarsResponseData(
+ users_results = [
+ twitter_openapi_python_generated.models.verified_avatar_user_results.VerifiedAvatarUserResults(
+ result = twitter_openapi_python_generated.models.verified_avatar_user.VerifiedAvatarUser(
+ __typename = 'TimelineTweet',
+ affiliates_highlighted_label = twitter_openapi_python_generated.models.affiliates_highlighted_label.AffiliatesHighlightedLabel(
+ label = twitter_openapi_python_generated.models.user_label.UserLabel(
+ badge = twitter_openapi_python_generated.models.user_label_badge.UserLabelBadge(
+ url = '', ),
+ description = '',
+ long_description = twitter_openapi_python_generated.models.user_label_text.UserLabelText(
+ entities = [
+ twitter_openapi_python_generated.models.user_label_text_entity.UserLabelTextEntity(
+ from_index = 56,
+ ref = twitter_openapi_python_generated.models.user_label_text_entity_ref.UserLabelTextEntityRef(
+ mention_results = twitter_openapi_python_generated.models.user_label_mention_results.UserLabelMentionResults(
+ result = twitter_openapi_python_generated.models.user_label_mention_user.UserLabelMentionUser(
+ __typename = 'TimelineTweet',
+ core = twitter_openapi_python_generated.models.user_label_mention_user_core.UserLabelMentionUserCore(
+ screen_name = '', ),
+ rest_id = '4', ), ),
+ screen_name = '',
+ type = 'TimelineRichTextMention', ),
+ to_index = 56, )
+ ],
+ text = '', ),
+ url = twitter_openapi_python_generated.models.user_label_url.UserLabelUrl(
+ url = '',
+ url_type = 'DeepLink', ),
+ user_label_display_type = 'Badge',
+ user_label_type = 'AutomatedLabel', ), ),
+ is_blue_verified = True,
+ profile_image_shape = '',
+ rest_id = '4',
+ verification = twitter_openapi_python_generated.models.verification.verification(), ), )
+ ], ),
+ )
+ """
+
+ def testUsersVerifiedAvatarsResponse(self):
+ """Test UsersVerifiedAvatarsResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_users_verified_avatars_response_data.py b/twitter_openapi_python_generated/test/test_users_verified_avatars_response_data.py
new file mode 100644
index 0000000..37fcb6e
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_users_verified_avatars_response_data.py
@@ -0,0 +1,121 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.users_verified_avatars_response_data import UsersVerifiedAvatarsResponseData
+
+class TestUsersVerifiedAvatarsResponseData(unittest.TestCase):
+ """UsersVerifiedAvatarsResponseData unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> UsersVerifiedAvatarsResponseData:
+ """Test UsersVerifiedAvatarsResponseData
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `UsersVerifiedAvatarsResponseData`
+ """
+ model = UsersVerifiedAvatarsResponseData()
+ if include_optional:
+ return UsersVerifiedAvatarsResponseData(
+ users_results = [
+ twitter_openapi_python_generated.models.verified_avatar_user_results.VerifiedAvatarUserResults(
+ result = twitter_openapi_python_generated.models.verified_avatar_user.VerifiedAvatarUser(
+ __typename = 'TimelineTweet',
+ affiliates_highlighted_label = twitter_openapi_python_generated.models.affiliates_highlighted_label.AffiliatesHighlightedLabel(
+ label = twitter_openapi_python_generated.models.user_label.UserLabel(
+ badge = twitter_openapi_python_generated.models.user_label_badge.UserLabelBadge(
+ url = '', ),
+ description = '',
+ long_description = twitter_openapi_python_generated.models.user_label_text.UserLabelText(
+ entities = [
+ twitter_openapi_python_generated.models.user_label_text_entity.UserLabelTextEntity(
+ from_index = 56,
+ ref = twitter_openapi_python_generated.models.user_label_text_entity_ref.UserLabelTextEntityRef(
+ mention_results = twitter_openapi_python_generated.models.user_label_mention_results.UserLabelMentionResults(
+ result = twitter_openapi_python_generated.models.user_label_mention_user.UserLabelMentionUser(
+ __typename = 'TimelineTweet',
+ core = twitter_openapi_python_generated.models.user_label_mention_user_core.UserLabelMentionUserCore(
+ screen_name = '', ),
+ rest_id = '4', ), ),
+ screen_name = '',
+ type = 'TimelineRichTextMention', ),
+ to_index = 56, )
+ ],
+ text = '', ),
+ url = twitter_openapi_python_generated.models.user_label_url.UserLabelUrl(
+ url = '',
+ url_type = 'DeepLink', ),
+ user_label_display_type = 'Badge',
+ user_label_type = 'AutomatedLabel', ), ),
+ is_blue_verified = True,
+ profile_image_shape = '',
+ rest_id = '4',
+ verification = twitter_openapi_python_generated.models.verification.verification(), ), )
+ ]
+ )
+ else:
+ return UsersVerifiedAvatarsResponseData(
+ users_results = [
+ twitter_openapi_python_generated.models.verified_avatar_user_results.VerifiedAvatarUserResults(
+ result = twitter_openapi_python_generated.models.verified_avatar_user.VerifiedAvatarUser(
+ __typename = 'TimelineTweet',
+ affiliates_highlighted_label = twitter_openapi_python_generated.models.affiliates_highlighted_label.AffiliatesHighlightedLabel(
+ label = twitter_openapi_python_generated.models.user_label.UserLabel(
+ badge = twitter_openapi_python_generated.models.user_label_badge.UserLabelBadge(
+ url = '', ),
+ description = '',
+ long_description = twitter_openapi_python_generated.models.user_label_text.UserLabelText(
+ entities = [
+ twitter_openapi_python_generated.models.user_label_text_entity.UserLabelTextEntity(
+ from_index = 56,
+ ref = twitter_openapi_python_generated.models.user_label_text_entity_ref.UserLabelTextEntityRef(
+ mention_results = twitter_openapi_python_generated.models.user_label_mention_results.UserLabelMentionResults(
+ result = twitter_openapi_python_generated.models.user_label_mention_user.UserLabelMentionUser(
+ __typename = 'TimelineTweet',
+ core = twitter_openapi_python_generated.models.user_label_mention_user_core.UserLabelMentionUserCore(
+ screen_name = '', ),
+ rest_id = '4', ), ),
+ screen_name = '',
+ type = 'TimelineRichTextMention', ),
+ to_index = 56, )
+ ],
+ text = '', ),
+ url = twitter_openapi_python_generated.models.user_label_url.UserLabelUrl(
+ url = '',
+ url_type = 'DeepLink', ),
+ user_label_display_type = 'Badge',
+ user_label_type = 'AutomatedLabel', ), ),
+ is_blue_verified = True,
+ profile_image_shape = '',
+ rest_id = '4',
+ verification = twitter_openapi_python_generated.models.verification.verification(), ), )
+ ],
+ )
+ """
+
+ def testUsersVerifiedAvatarsResponseData(self):
+ """Test UsersVerifiedAvatarsResponseData"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_verified_avatar_user.py b/twitter_openapi_python_generated/test/test_verified_avatar_user.py
new file mode 100644
index 0000000..6552f0a
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_verified_avatar_user.py
@@ -0,0 +1,113 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.verified_avatar_user import VerifiedAvatarUser
+
+class TestVerifiedAvatarUser(unittest.TestCase):
+ """VerifiedAvatarUser unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> VerifiedAvatarUser:
+ """Test VerifiedAvatarUser
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `VerifiedAvatarUser`
+ """
+ model = VerifiedAvatarUser()
+ if include_optional:
+ return VerifiedAvatarUser(
+ typename = 'TimelineTweet',
+ affiliates_highlighted_label = twitter_openapi_python_generated.models.affiliates_highlighted_label.AffiliatesHighlightedLabel(
+ label = twitter_openapi_python_generated.models.user_label.UserLabel(
+ badge = twitter_openapi_python_generated.models.user_label_badge.UserLabelBadge(
+ url = '', ),
+ description = '',
+ long_description = twitter_openapi_python_generated.models.user_label_text.UserLabelText(
+ entities = [
+ twitter_openapi_python_generated.models.user_label_text_entity.UserLabelTextEntity(
+ from_index = 56,
+ ref = twitter_openapi_python_generated.models.user_label_text_entity_ref.UserLabelTextEntityRef(
+ mention_results = twitter_openapi_python_generated.models.user_label_mention_results.UserLabelMentionResults(
+ result = twitter_openapi_python_generated.models.user_label_mention_user.UserLabelMentionUser(
+ __typename = 'TimelineTweet',
+ core = twitter_openapi_python_generated.models.user_label_mention_user_core.UserLabelMentionUserCore(
+ screen_name = '', ),
+ rest_id = '4', ), ),
+ screen_name = '',
+ type = 'TimelineRichTextMention', ),
+ to_index = 56, )
+ ],
+ text = '', ),
+ url = twitter_openapi_python_generated.models.user_label_url.UserLabelUrl(
+ url = '',
+ url_type = 'DeepLink', ),
+ user_label_display_type = 'Badge',
+ user_label_type = 'AutomatedLabel', ), ),
+ is_blue_verified = True,
+ profile_image_shape = '',
+ rest_id = '4',
+ verification = twitter_openapi_python_generated.models.verification.verification()
+ )
+ else:
+ return VerifiedAvatarUser(
+ typename = 'TimelineTweet',
+ affiliates_highlighted_label = twitter_openapi_python_generated.models.affiliates_highlighted_label.AffiliatesHighlightedLabel(
+ label = twitter_openapi_python_generated.models.user_label.UserLabel(
+ badge = twitter_openapi_python_generated.models.user_label_badge.UserLabelBadge(
+ url = '', ),
+ description = '',
+ long_description = twitter_openapi_python_generated.models.user_label_text.UserLabelText(
+ entities = [
+ twitter_openapi_python_generated.models.user_label_text_entity.UserLabelTextEntity(
+ from_index = 56,
+ ref = twitter_openapi_python_generated.models.user_label_text_entity_ref.UserLabelTextEntityRef(
+ mention_results = twitter_openapi_python_generated.models.user_label_mention_results.UserLabelMentionResults(
+ result = twitter_openapi_python_generated.models.user_label_mention_user.UserLabelMentionUser(
+ __typename = 'TimelineTweet',
+ core = twitter_openapi_python_generated.models.user_label_mention_user_core.UserLabelMentionUserCore(
+ screen_name = '', ),
+ rest_id = '4', ), ),
+ screen_name = '',
+ type = 'TimelineRichTextMention', ),
+ to_index = 56, )
+ ],
+ text = '', ),
+ url = twitter_openapi_python_generated.models.user_label_url.UserLabelUrl(
+ url = '',
+ url_type = 'DeepLink', ),
+ user_label_display_type = 'Badge',
+ user_label_type = 'AutomatedLabel', ), ),
+ is_blue_verified = True,
+ profile_image_shape = '',
+ rest_id = '4',
+ verification = twitter_openapi_python_generated.models.verification.verification(),
+ )
+ """
+
+ def testVerifiedAvatarUser(self):
+ """Test VerifiedAvatarUser"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/test/test_verified_avatar_user_results.py b/twitter_openapi_python_generated/test/test_verified_avatar_user_results.py
new file mode 100644
index 0000000..90b3953
--- /dev/null
+++ b/twitter_openapi_python_generated/test/test_verified_avatar_user_results.py
@@ -0,0 +1,115 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from twitter_openapi_python_generated.models.verified_avatar_user_results import VerifiedAvatarUserResults
+
+class TestVerifiedAvatarUserResults(unittest.TestCase):
+ """VerifiedAvatarUserResults unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> VerifiedAvatarUserResults:
+ """Test VerifiedAvatarUserResults
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `VerifiedAvatarUserResults`
+ """
+ model = VerifiedAvatarUserResults()
+ if include_optional:
+ return VerifiedAvatarUserResults(
+ result = twitter_openapi_python_generated.models.verified_avatar_user.VerifiedAvatarUser(
+ __typename = 'TimelineTweet',
+ affiliates_highlighted_label = twitter_openapi_python_generated.models.affiliates_highlighted_label.AffiliatesHighlightedLabel(
+ label = twitter_openapi_python_generated.models.user_label.UserLabel(
+ badge = twitter_openapi_python_generated.models.user_label_badge.UserLabelBadge(
+ url = '', ),
+ description = '',
+ long_description = twitter_openapi_python_generated.models.user_label_text.UserLabelText(
+ entities = [
+ twitter_openapi_python_generated.models.user_label_text_entity.UserLabelTextEntity(
+ from_index = 56,
+ ref = twitter_openapi_python_generated.models.user_label_text_entity_ref.UserLabelTextEntityRef(
+ mention_results = twitter_openapi_python_generated.models.user_label_mention_results.UserLabelMentionResults(
+ result = twitter_openapi_python_generated.models.user_label_mention_user.UserLabelMentionUser(
+ __typename = 'TimelineTweet',
+ core = twitter_openapi_python_generated.models.user_label_mention_user_core.UserLabelMentionUserCore(
+ screen_name = '', ),
+ rest_id = '4', ), ),
+ screen_name = '',
+ type = 'TimelineRichTextMention', ),
+ to_index = 56, )
+ ],
+ text = '', ),
+ url = twitter_openapi_python_generated.models.user_label_url.UserLabelUrl(
+ url = '',
+ url_type = 'DeepLink', ),
+ user_label_display_type = 'Badge',
+ user_label_type = 'AutomatedLabel', ), ),
+ is_blue_verified = True,
+ profile_image_shape = '',
+ rest_id = '4',
+ verification = twitter_openapi_python_generated.models.verification.verification(), )
+ )
+ else:
+ return VerifiedAvatarUserResults(
+ result = twitter_openapi_python_generated.models.verified_avatar_user.VerifiedAvatarUser(
+ __typename = 'TimelineTweet',
+ affiliates_highlighted_label = twitter_openapi_python_generated.models.affiliates_highlighted_label.AffiliatesHighlightedLabel(
+ label = twitter_openapi_python_generated.models.user_label.UserLabel(
+ badge = twitter_openapi_python_generated.models.user_label_badge.UserLabelBadge(
+ url = '', ),
+ description = '',
+ long_description = twitter_openapi_python_generated.models.user_label_text.UserLabelText(
+ entities = [
+ twitter_openapi_python_generated.models.user_label_text_entity.UserLabelTextEntity(
+ from_index = 56,
+ ref = twitter_openapi_python_generated.models.user_label_text_entity_ref.UserLabelTextEntityRef(
+ mention_results = twitter_openapi_python_generated.models.user_label_mention_results.UserLabelMentionResults(
+ result = twitter_openapi_python_generated.models.user_label_mention_user.UserLabelMentionUser(
+ __typename = 'TimelineTweet',
+ core = twitter_openapi_python_generated.models.user_label_mention_user_core.UserLabelMentionUserCore(
+ screen_name = '', ),
+ rest_id = '4', ), ),
+ screen_name = '',
+ type = 'TimelineRichTextMention', ),
+ to_index = 56, )
+ ],
+ text = '', ),
+ url = twitter_openapi_python_generated.models.user_label_url.UserLabelUrl(
+ url = '',
+ url_type = 'DeepLink', ),
+ user_label_display_type = 'Badge',
+ user_label_type = 'AutomatedLabel', ), ),
+ is_blue_verified = True,
+ profile_image_shape = '',
+ rest_id = '4',
+ verification = twitter_openapi_python_generated.models.verification.verification(), ),
+ )
+ """
+
+ def testVerifiedAvatarUserResults(self):
+ """Test VerifiedAvatarUserResults"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/twitter_openapi_python_generated/tools/openapi-generator-config.yaml b/twitter_openapi_python_generated/tools/openapi-generator-config.yaml
index 3d4c048..1982443 100644
--- a/twitter_openapi_python_generated/tools/openapi-generator-config.yaml
+++ b/twitter_openapi_python_generated/tools/openapi-generator-config.yaml
@@ -2,7 +2,7 @@ inputSpec: twitter-openapi/dist/compatible/openapi-3.0.yaml
outputDir: .
packageName: twitter_openapi_python_generated
-packageVersion: 0.1.1
+packageVersion: 0.1.2
packageUrl: https://github.com/fa0311/twitter_openapi_python_generated
projectName: twitter_openapi_python_generated
projectKeywords: twitter_openapi_python_generated
diff --git a/twitter_openapi_python_generated/twitter-openapi b/twitter_openapi_python_generated/twitter-openapi
index ec7d907..127fa21 160000
--- a/twitter_openapi_python_generated/twitter-openapi
+++ b/twitter_openapi_python_generated/twitter-openapi
@@ -1 +1 @@
-Subproject commit ec7d907e12cfaca5b93dde55522dcc6045457570
+Subproject commit 127fa210d7f9b0252276c86a1860a7db816d9d69
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/__init__.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/__init__.py
index e567b7d..83fe960 100644
--- a/twitter_openapi_python_generated/twitter_openapi_python_generated/__init__.py
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/__init__.py
@@ -15,10 +15,12 @@
""" # noqa: E501
-__version__ = "0.1.1"
+__version__ = "0.1.2"
# Define package exports
__all__ = [
+ "BirdwatchApi",
+ "CommunityApi",
"DefaultApi",
"OtherApi",
"PostApi",
@@ -58,15 +60,38 @@
"ArticlePreview",
"ArticleResult",
"ArticleResults",
+ "AuthenticatePeriscopeResponse",
+ "AuthenticatePeriscopeResponseData",
"AuthorCommunityRelationship",
"BadgeCounts",
+ "BirdwatchAliasSelfSelectStatus",
"BirdwatchEntity",
"BirdwatchEntityRef",
+ "BirdwatchFetchAliasSelfSelectStatusResponse",
+ "BirdwatchFetchAliasSelfSelectStatusResponseData",
+ "BirdwatchFetchAuthenticatedUserProfileResponse",
+ "BirdwatchFetchAuthenticatedUserProfileResponseData",
+ "BirdwatchFetchBirdwatchProfileResponse",
+ "BirdwatchFetchBirdwatchProfileResponseData",
+ "BirdwatchFetchGlobalTimelineResponse",
+ "BirdwatchFetchGlobalTimelineResponseData",
+ "BirdwatchFetchPublicDataResponse",
+ "BirdwatchFetchPublicDataResponseData",
+ "BirdwatchHomePage",
+ "BirdwatchHomePageBody",
+ "BirdwatchHomeTimeline",
"BirdwatchPivot",
"BirdwatchPivotCallToAction",
"BirdwatchPivotFooter",
"BirdwatchPivotNote",
"BirdwatchPivotSubtitle",
+ "BirdwatchProfile",
+ "BirdwatchPublicDataFile",
+ "BirdwatchPublicDataFileBundle",
+ "BirdwatchViewer",
+ "BookmarkSearch",
+ "BookmarkSearchTimelineResponse",
+ "BookmarkSearchTimelineResponseData",
"BookmarksResponse",
"BookmarksResponseData",
"BookmarksTimeline",
@@ -77,6 +102,11 @@
"ClientEventInfo",
"ClientEventInfoDetails",
"CommunitiesActions",
+ "CommunitiesFetchOneQueryResponse",
+ "CommunitiesFetchOneQueryResponseData",
+ "CommunitiesSearchQueryResponse",
+ "CommunitiesSearchQueryResponseData",
+ "CommunitiesSearchSlice",
"Community",
"CommunityAboutTimelineResponse",
"CommunityActions",
@@ -86,18 +116,49 @@
"CommunityDiscoveryTimelineResponse",
"CommunityDiscoveryTimelineResponseData",
"CommunityDiscoveryTimelineViewer",
+ "CommunityFacepileUser",
+ "CommunityFacepileUserResults",
+ "CommunityHashtag",
+ "CommunityHashtagSlice",
+ "CommunityIdUserResults",
"CommunityInvitesResult",
"CommunityJoinAction",
"CommunityJoinActionResultUnion",
"CommunityJoinActionUnavailable",
"CommunityJoinRequestsResult",
"CommunityLeaveActionResult",
+ "CommunityListMembersActionResult",
"CommunityMediaTimelineResponse",
"CommunityModerationState",
+ "CommunityPageActions",
+ "CommunityPageCommunity",
+ "CommunityPageDeleteActionResult",
+ "CommunityPageInvitesResult",
+ "CommunityPageJoinActionResult",
+ "CommunityPageLeaveActionResult",
+ "CommunityPagePinActionResult",
+ "CommunityPageResults",
"CommunityPinActionResult",
+ "CommunityPrimaryTopicName",
+ "CommunityQueryResponse",
+ "CommunityQueryResponseData",
"CommunityRelationship",
+ "CommunityRelayRule",
"CommunityResult",
"CommunityRule",
+ "CommunitySearchCommunity",
+ "CommunitySearchResults",
+ "CommunitySettingsActions",
+ "CommunitySettingsCommunity",
+ "CommunitySettingsCreator",
+ "CommunitySettingsCreatorCore",
+ "CommunitySettingsCreatorResults",
+ "CommunitySettingsCreatorVerification",
+ "CommunitySettingsInvitesResult",
+ "CommunitySettingsResults",
+ "CommunitySubtopic",
+ "CommunityTopic",
+ "CommunityTopicResults",
"CommunityTweetsTimelineResponse",
"CommunityUnavailable",
"CommunityUnion",
@@ -133,10 +194,14 @@
"CreateTweetResponse",
"CreateTweetResponseData",
"CreateTweetResponseResult",
+ "CreatorStudioTabBarItemQueryResponse",
+ "CreatorStudioTabBarItemQueryResponseData",
"CtaClientEventInfo",
"CtaLimitedActionPrompt",
"CtaLimitedActionPromptText",
"CursorType",
+ "DataSaverModeResponse",
+ "DataSaverModeResponseData",
"DeepsearchHeader",
"DeepsearchStep",
"DeepsearchWebResult",
@@ -165,10 +230,18 @@
"ErrorExtensions",
"ErrorResponse",
"ErrorResponsePathInner",
+ "EventSummaryAdMetadataContainer",
+ "EventSummaryEvent",
+ "EventSummaryMedia",
+ "EventSummaryMediaEntity",
+ "EventSummaryMediaKey",
+ "EventSummaryPromotedMetadata",
"ExplorePage",
"ExplorePageBody",
"ExplorePageResponse",
"ExplorePageResponseData",
+ "ExploreSidebarResponse",
+ "ExploreSidebarResponseData",
"ExploreTimeline",
"ExploreTimelineScribeConfig",
"ExtMediaAvailability",
@@ -190,10 +263,23 @@
"FollowTimeline",
"GenericTimelineByIdResponse",
"GenericTimelineByIdResponseData",
+ "GlobalCommunitiesLatestPostSearch",
+ "GlobalCommunitiesLatestPostSearchTimelineResponse",
+ "GlobalCommunitiesLatestPostSearchTimelineResponseData",
+ "GlobalCommunitiesPostSearch",
+ "GlobalCommunitiesPostSearchTimelineResponse",
+ "GlobalCommunitiesPostSearchTimelineResponseData",
"GrokAnnotation",
"GrokEntity",
"GrokEntityRef",
+ "GrokHome",
+ "GrokHomeLayout",
+ "GrokHomeLayoutSection",
+ "GrokHomePrompt",
+ "GrokHomeResponse",
+ "GrokHomeResponseData",
"GrokImageAnnotation",
+ "GrokModelOption",
"GrokShareAttachment",
"GrokShareAttachmentItem",
"GrokTranslatedBio",
@@ -229,11 +315,17 @@
"ListRecommendedUsersResponseData",
"ListResponse",
"ListResponseData",
+ "ListSearch",
+ "ListSearchTimelineResponse",
+ "ListSearchTimelineResponseData",
"ListSubscribersList",
"ListSubscribersResponse",
"ListSubscribersResponseData",
"ListTweetsTimelineData",
"ListTweetsTimelineList",
+ "ListsManagementPageTimelineResponse",
+ "ListsManagementPageTimelineResponseData",
+ "ListsManagementViewer",
"Location",
"Media",
"MediaColorInfo",
@@ -267,6 +359,7 @@
"NoteTweetResultMediaInlineMedia",
"NoteTweetResultRichText",
"NoteTweetResultRichTextTag",
+ "NotificationDetails",
"NotificationTemplate",
"NotificationsResult",
"NotificationsTimelineData",
@@ -275,6 +368,9 @@
"NotificationsViewerV2",
"OneFactorLoginEligibility",
"OtherObjectAll",
+ "PinnedTimelines",
+ "PinnedTimelinesResponse",
+ "PinnedTimelinesResponseData",
"PostCreateBookmarkRequest",
"PostCreateBookmarkRequestVariables",
"PostCreateDraftTweetRequest",
@@ -319,6 +415,7 @@
"ProfileResponse",
"ProfileResponseData",
"PromotedMetadata",
+ "PromotedTrend",
"QuotedRefResult",
"QuotedStatusPermalink",
"RankedCommunityResult",
@@ -328,6 +425,8 @@
"Retweet",
"RetweetLegacy",
"RichMessage",
+ "RichMessageEntity",
+ "RichMessageEntityRef",
"ScheduledTweetsViewer",
"ScribeConfig",
"SearchByRawQuery",
@@ -337,6 +436,7 @@
"SelfThread",
"SensitiveMediaWarning",
"Session",
+ "SliceInfo",
"Smarttag",
"SmarttagTag",
"SmarttagTagInfo",
@@ -363,6 +463,7 @@
"TimelineCommunity",
"TimelineCoverBehavior",
"TimelineCoverBehaviorUrl",
+ "TimelineEventSummary",
"TimelineFrame",
"TimelineGeneralContext",
"TimelineHalfCover",
@@ -406,10 +507,13 @@
"TombstoneInfo",
"TombstoneRef",
"TombstoneRichText",
+ "TopicCarouselQueryResponse",
+ "TopicCarouselQueryResponseData",
"TopicContext",
"Tracing",
"TrendImage",
"TrendMetadata",
+ "TrendPromotedMetadata",
"TrendResults",
"Tweet",
"TweetCard",
@@ -527,6 +631,10 @@
"UserWebsite",
"UsersResponse",
"UsersResponseData",
+ "UsersVerifiedAvatarsResponse",
+ "UsersVerifiedAvatarsResponseData",
+ "VerifiedAvatarUser",
+ "VerifiedAvatarUserResults",
"ViewerBadgeCountsResponse",
"ViewerBadgeCountsResponseData",
"ViewerBadgeCountsResult",
@@ -535,6 +643,8 @@
]
# import apis into sdk package
+from twitter_openapi_python_generated.api.birdwatch_api import BirdwatchApi as BirdwatchApi
+from twitter_openapi_python_generated.api.community_api import CommunityApi as CommunityApi
from twitter_openapi_python_generated.api.default_api import DefaultApi as DefaultApi
from twitter_openapi_python_generated.api.other_api import OtherApi as OtherApi
from twitter_openapi_python_generated.api.post_api import PostApi as PostApi
@@ -578,15 +688,38 @@
from twitter_openapi_python_generated.models.article_preview import ArticlePreview as ArticlePreview
from twitter_openapi_python_generated.models.article_result import ArticleResult as ArticleResult
from twitter_openapi_python_generated.models.article_results import ArticleResults as ArticleResults
+from twitter_openapi_python_generated.models.authenticate_periscope_response import AuthenticatePeriscopeResponse as AuthenticatePeriscopeResponse
+from twitter_openapi_python_generated.models.authenticate_periscope_response_data import AuthenticatePeriscopeResponseData as AuthenticatePeriscopeResponseData
from twitter_openapi_python_generated.models.author_community_relationship import AuthorCommunityRelationship as AuthorCommunityRelationship
from twitter_openapi_python_generated.models.badge_counts import BadgeCounts as BadgeCounts
+from twitter_openapi_python_generated.models.birdwatch_alias_self_select_status import BirdwatchAliasSelfSelectStatus as BirdwatchAliasSelfSelectStatus
from twitter_openapi_python_generated.models.birdwatch_entity import BirdwatchEntity as BirdwatchEntity
from twitter_openapi_python_generated.models.birdwatch_entity_ref import BirdwatchEntityRef as BirdwatchEntityRef
+from twitter_openapi_python_generated.models.birdwatch_fetch_alias_self_select_status_response import BirdwatchFetchAliasSelfSelectStatusResponse as BirdwatchFetchAliasSelfSelectStatusResponse
+from twitter_openapi_python_generated.models.birdwatch_fetch_alias_self_select_status_response_data import BirdwatchFetchAliasSelfSelectStatusResponseData as BirdwatchFetchAliasSelfSelectStatusResponseData
+from twitter_openapi_python_generated.models.birdwatch_fetch_authenticated_user_profile_response import BirdwatchFetchAuthenticatedUserProfileResponse as BirdwatchFetchAuthenticatedUserProfileResponse
+from twitter_openapi_python_generated.models.birdwatch_fetch_authenticated_user_profile_response_data import BirdwatchFetchAuthenticatedUserProfileResponseData as BirdwatchFetchAuthenticatedUserProfileResponseData
+from twitter_openapi_python_generated.models.birdwatch_fetch_birdwatch_profile_response import BirdwatchFetchBirdwatchProfileResponse as BirdwatchFetchBirdwatchProfileResponse
+from twitter_openapi_python_generated.models.birdwatch_fetch_birdwatch_profile_response_data import BirdwatchFetchBirdwatchProfileResponseData as BirdwatchFetchBirdwatchProfileResponseData
+from twitter_openapi_python_generated.models.birdwatch_fetch_global_timeline_response import BirdwatchFetchGlobalTimelineResponse as BirdwatchFetchGlobalTimelineResponse
+from twitter_openapi_python_generated.models.birdwatch_fetch_global_timeline_response_data import BirdwatchFetchGlobalTimelineResponseData as BirdwatchFetchGlobalTimelineResponseData
+from twitter_openapi_python_generated.models.birdwatch_fetch_public_data_response import BirdwatchFetchPublicDataResponse as BirdwatchFetchPublicDataResponse
+from twitter_openapi_python_generated.models.birdwatch_fetch_public_data_response_data import BirdwatchFetchPublicDataResponseData as BirdwatchFetchPublicDataResponseData
+from twitter_openapi_python_generated.models.birdwatch_home_page import BirdwatchHomePage as BirdwatchHomePage
+from twitter_openapi_python_generated.models.birdwatch_home_page_body import BirdwatchHomePageBody as BirdwatchHomePageBody
+from twitter_openapi_python_generated.models.birdwatch_home_timeline import BirdwatchHomeTimeline as BirdwatchHomeTimeline
from twitter_openapi_python_generated.models.birdwatch_pivot import BirdwatchPivot as BirdwatchPivot
from twitter_openapi_python_generated.models.birdwatch_pivot_call_to_action import BirdwatchPivotCallToAction as BirdwatchPivotCallToAction
from twitter_openapi_python_generated.models.birdwatch_pivot_footer import BirdwatchPivotFooter as BirdwatchPivotFooter
from twitter_openapi_python_generated.models.birdwatch_pivot_note import BirdwatchPivotNote as BirdwatchPivotNote
from twitter_openapi_python_generated.models.birdwatch_pivot_subtitle import BirdwatchPivotSubtitle as BirdwatchPivotSubtitle
+from twitter_openapi_python_generated.models.birdwatch_profile import BirdwatchProfile as BirdwatchProfile
+from twitter_openapi_python_generated.models.birdwatch_public_data_file import BirdwatchPublicDataFile as BirdwatchPublicDataFile
+from twitter_openapi_python_generated.models.birdwatch_public_data_file_bundle import BirdwatchPublicDataFileBundle as BirdwatchPublicDataFileBundle
+from twitter_openapi_python_generated.models.birdwatch_viewer import BirdwatchViewer as BirdwatchViewer
+from twitter_openapi_python_generated.models.bookmark_search import BookmarkSearch as BookmarkSearch
+from twitter_openapi_python_generated.models.bookmark_search_timeline_response import BookmarkSearchTimelineResponse as BookmarkSearchTimelineResponse
+from twitter_openapi_python_generated.models.bookmark_search_timeline_response_data import BookmarkSearchTimelineResponseData as BookmarkSearchTimelineResponseData
from twitter_openapi_python_generated.models.bookmarks_response import BookmarksResponse as BookmarksResponse
from twitter_openapi_python_generated.models.bookmarks_response_data import BookmarksResponseData as BookmarksResponseData
from twitter_openapi_python_generated.models.bookmarks_timeline import BookmarksTimeline as BookmarksTimeline
@@ -597,6 +730,11 @@
from twitter_openapi_python_generated.models.client_event_info import ClientEventInfo as ClientEventInfo
from twitter_openapi_python_generated.models.client_event_info_details import ClientEventInfoDetails as ClientEventInfoDetails
from twitter_openapi_python_generated.models.communities_actions import CommunitiesActions as CommunitiesActions
+from twitter_openapi_python_generated.models.communities_fetch_one_query_response import CommunitiesFetchOneQueryResponse as CommunitiesFetchOneQueryResponse
+from twitter_openapi_python_generated.models.communities_fetch_one_query_response_data import CommunitiesFetchOneQueryResponseData as CommunitiesFetchOneQueryResponseData
+from twitter_openapi_python_generated.models.communities_search_query_response import CommunitiesSearchQueryResponse as CommunitiesSearchQueryResponse
+from twitter_openapi_python_generated.models.communities_search_query_response_data import CommunitiesSearchQueryResponseData as CommunitiesSearchQueryResponseData
+from twitter_openapi_python_generated.models.communities_search_slice import CommunitiesSearchSlice as CommunitiesSearchSlice
from twitter_openapi_python_generated.models.community import Community as Community
from twitter_openapi_python_generated.models.community_about_timeline_response import CommunityAboutTimelineResponse as CommunityAboutTimelineResponse
from twitter_openapi_python_generated.models.community_actions import CommunityActions as CommunityActions
@@ -606,18 +744,49 @@
from twitter_openapi_python_generated.models.community_discovery_timeline_response import CommunityDiscoveryTimelineResponse as CommunityDiscoveryTimelineResponse
from twitter_openapi_python_generated.models.community_discovery_timeline_response_data import CommunityDiscoveryTimelineResponseData as CommunityDiscoveryTimelineResponseData
from twitter_openapi_python_generated.models.community_discovery_timeline_viewer import CommunityDiscoveryTimelineViewer as CommunityDiscoveryTimelineViewer
+from twitter_openapi_python_generated.models.community_facepile_user import CommunityFacepileUser as CommunityFacepileUser
+from twitter_openapi_python_generated.models.community_facepile_user_results import CommunityFacepileUserResults as CommunityFacepileUserResults
+from twitter_openapi_python_generated.models.community_hashtag import CommunityHashtag as CommunityHashtag
+from twitter_openapi_python_generated.models.community_hashtag_slice import CommunityHashtagSlice as CommunityHashtagSlice
+from twitter_openapi_python_generated.models.community_id_user_results import CommunityIdUserResults as CommunityIdUserResults
from twitter_openapi_python_generated.models.community_invites_result import CommunityInvitesResult as CommunityInvitesResult
from twitter_openapi_python_generated.models.community_join_action import CommunityJoinAction as CommunityJoinAction
from twitter_openapi_python_generated.models.community_join_action_result_union import CommunityJoinActionResultUnion as CommunityJoinActionResultUnion
from twitter_openapi_python_generated.models.community_join_action_unavailable import CommunityJoinActionUnavailable as CommunityJoinActionUnavailable
from twitter_openapi_python_generated.models.community_join_requests_result import CommunityJoinRequestsResult as CommunityJoinRequestsResult
from twitter_openapi_python_generated.models.community_leave_action_result import CommunityLeaveActionResult as CommunityLeaveActionResult
+from twitter_openapi_python_generated.models.community_list_members_action_result import CommunityListMembersActionResult as CommunityListMembersActionResult
from twitter_openapi_python_generated.models.community_media_timeline_response import CommunityMediaTimelineResponse as CommunityMediaTimelineResponse
from twitter_openapi_python_generated.models.community_moderation_state import CommunityModerationState as CommunityModerationState
+from twitter_openapi_python_generated.models.community_page_actions import CommunityPageActions as CommunityPageActions
+from twitter_openapi_python_generated.models.community_page_community import CommunityPageCommunity as CommunityPageCommunity
+from twitter_openapi_python_generated.models.community_page_delete_action_result import CommunityPageDeleteActionResult as CommunityPageDeleteActionResult
+from twitter_openapi_python_generated.models.community_page_invites_result import CommunityPageInvitesResult as CommunityPageInvitesResult
+from twitter_openapi_python_generated.models.community_page_join_action_result import CommunityPageJoinActionResult as CommunityPageJoinActionResult
+from twitter_openapi_python_generated.models.community_page_leave_action_result import CommunityPageLeaveActionResult as CommunityPageLeaveActionResult
+from twitter_openapi_python_generated.models.community_page_pin_action_result import CommunityPagePinActionResult as CommunityPagePinActionResult
+from twitter_openapi_python_generated.models.community_page_results import CommunityPageResults as CommunityPageResults
from twitter_openapi_python_generated.models.community_pin_action_result import CommunityPinActionResult as CommunityPinActionResult
+from twitter_openapi_python_generated.models.community_primary_topic_name import CommunityPrimaryTopicName as CommunityPrimaryTopicName
+from twitter_openapi_python_generated.models.community_query_response import CommunityQueryResponse as CommunityQueryResponse
+from twitter_openapi_python_generated.models.community_query_response_data import CommunityQueryResponseData as CommunityQueryResponseData
from twitter_openapi_python_generated.models.community_relationship import CommunityRelationship as CommunityRelationship
+from twitter_openapi_python_generated.models.community_relay_rule import CommunityRelayRule as CommunityRelayRule
from twitter_openapi_python_generated.models.community_result import CommunityResult as CommunityResult
from twitter_openapi_python_generated.models.community_rule import CommunityRule as CommunityRule
+from twitter_openapi_python_generated.models.community_search_community import CommunitySearchCommunity as CommunitySearchCommunity
+from twitter_openapi_python_generated.models.community_search_results import CommunitySearchResults as CommunitySearchResults
+from twitter_openapi_python_generated.models.community_settings_actions import CommunitySettingsActions as CommunitySettingsActions
+from twitter_openapi_python_generated.models.community_settings_community import CommunitySettingsCommunity as CommunitySettingsCommunity
+from twitter_openapi_python_generated.models.community_settings_creator import CommunitySettingsCreator as CommunitySettingsCreator
+from twitter_openapi_python_generated.models.community_settings_creator_core import CommunitySettingsCreatorCore as CommunitySettingsCreatorCore
+from twitter_openapi_python_generated.models.community_settings_creator_results import CommunitySettingsCreatorResults as CommunitySettingsCreatorResults
+from twitter_openapi_python_generated.models.community_settings_creator_verification import CommunitySettingsCreatorVerification as CommunitySettingsCreatorVerification
+from twitter_openapi_python_generated.models.community_settings_invites_result import CommunitySettingsInvitesResult as CommunitySettingsInvitesResult
+from twitter_openapi_python_generated.models.community_settings_results import CommunitySettingsResults as CommunitySettingsResults
+from twitter_openapi_python_generated.models.community_subtopic import CommunitySubtopic as CommunitySubtopic
+from twitter_openapi_python_generated.models.community_topic import CommunityTopic as CommunityTopic
+from twitter_openapi_python_generated.models.community_topic_results import CommunityTopicResults as CommunityTopicResults
from twitter_openapi_python_generated.models.community_tweets_timeline_response import CommunityTweetsTimelineResponse as CommunityTweetsTimelineResponse
from twitter_openapi_python_generated.models.community_unavailable import CommunityUnavailable as CommunityUnavailable
from twitter_openapi_python_generated.models.community_union import CommunityUnion as CommunityUnion
@@ -653,10 +822,14 @@
from twitter_openapi_python_generated.models.create_tweet_response import CreateTweetResponse as CreateTweetResponse
from twitter_openapi_python_generated.models.create_tweet_response_data import CreateTweetResponseData as CreateTweetResponseData
from twitter_openapi_python_generated.models.create_tweet_response_result import CreateTweetResponseResult as CreateTweetResponseResult
+from twitter_openapi_python_generated.models.creator_studio_tab_bar_item_query_response import CreatorStudioTabBarItemQueryResponse as CreatorStudioTabBarItemQueryResponse
+from twitter_openapi_python_generated.models.creator_studio_tab_bar_item_query_response_data import CreatorStudioTabBarItemQueryResponseData as CreatorStudioTabBarItemQueryResponseData
from twitter_openapi_python_generated.models.cta_client_event_info import CtaClientEventInfo as CtaClientEventInfo
from twitter_openapi_python_generated.models.cta_limited_action_prompt import CtaLimitedActionPrompt as CtaLimitedActionPrompt
from twitter_openapi_python_generated.models.cta_limited_action_prompt_text import CtaLimitedActionPromptText as CtaLimitedActionPromptText
from twitter_openapi_python_generated.models.cursor_type import CursorType as CursorType
+from twitter_openapi_python_generated.models.data_saver_mode_response import DataSaverModeResponse as DataSaverModeResponse
+from twitter_openapi_python_generated.models.data_saver_mode_response_data import DataSaverModeResponseData as DataSaverModeResponseData
from twitter_openapi_python_generated.models.deepsearch_header import DeepsearchHeader as DeepsearchHeader
from twitter_openapi_python_generated.models.deepsearch_step import DeepsearchStep as DeepsearchStep
from twitter_openapi_python_generated.models.deepsearch_web_result import DeepsearchWebResult as DeepsearchWebResult
@@ -685,10 +858,18 @@
from twitter_openapi_python_generated.models.error_extensions import ErrorExtensions as ErrorExtensions
from twitter_openapi_python_generated.models.error_response import ErrorResponse as ErrorResponse
from twitter_openapi_python_generated.models.error_response_path_inner import ErrorResponsePathInner as ErrorResponsePathInner
+from twitter_openapi_python_generated.models.event_summary_ad_metadata_container import EventSummaryAdMetadataContainer as EventSummaryAdMetadataContainer
+from twitter_openapi_python_generated.models.event_summary_event import EventSummaryEvent as EventSummaryEvent
+from twitter_openapi_python_generated.models.event_summary_media import EventSummaryMedia as EventSummaryMedia
+from twitter_openapi_python_generated.models.event_summary_media_entity import EventSummaryMediaEntity as EventSummaryMediaEntity
+from twitter_openapi_python_generated.models.event_summary_media_key import EventSummaryMediaKey as EventSummaryMediaKey
+from twitter_openapi_python_generated.models.event_summary_promoted_metadata import EventSummaryPromotedMetadata as EventSummaryPromotedMetadata
from twitter_openapi_python_generated.models.explore_page import ExplorePage as ExplorePage
from twitter_openapi_python_generated.models.explore_page_body import ExplorePageBody as ExplorePageBody
from twitter_openapi_python_generated.models.explore_page_response import ExplorePageResponse as ExplorePageResponse
from twitter_openapi_python_generated.models.explore_page_response_data import ExplorePageResponseData as ExplorePageResponseData
+from twitter_openapi_python_generated.models.explore_sidebar_response import ExploreSidebarResponse as ExploreSidebarResponse
+from twitter_openapi_python_generated.models.explore_sidebar_response_data import ExploreSidebarResponseData as ExploreSidebarResponseData
from twitter_openapi_python_generated.models.explore_timeline import ExploreTimeline as ExploreTimeline
from twitter_openapi_python_generated.models.explore_timeline_scribe_config import ExploreTimelineScribeConfig as ExploreTimelineScribeConfig
from twitter_openapi_python_generated.models.ext_media_availability import ExtMediaAvailability as ExtMediaAvailability
@@ -710,10 +891,23 @@
from twitter_openapi_python_generated.models.follow_timeline import FollowTimeline as FollowTimeline
from twitter_openapi_python_generated.models.generic_timeline_by_id_response import GenericTimelineByIdResponse as GenericTimelineByIdResponse
from twitter_openapi_python_generated.models.generic_timeline_by_id_response_data import GenericTimelineByIdResponseData as GenericTimelineByIdResponseData
+from twitter_openapi_python_generated.models.global_communities_latest_post_search import GlobalCommunitiesLatestPostSearch as GlobalCommunitiesLatestPostSearch
+from twitter_openapi_python_generated.models.global_communities_latest_post_search_timeline_response import GlobalCommunitiesLatestPostSearchTimelineResponse as GlobalCommunitiesLatestPostSearchTimelineResponse
+from twitter_openapi_python_generated.models.global_communities_latest_post_search_timeline_response_data import GlobalCommunitiesLatestPostSearchTimelineResponseData as GlobalCommunitiesLatestPostSearchTimelineResponseData
+from twitter_openapi_python_generated.models.global_communities_post_search import GlobalCommunitiesPostSearch as GlobalCommunitiesPostSearch
+from twitter_openapi_python_generated.models.global_communities_post_search_timeline_response import GlobalCommunitiesPostSearchTimelineResponse as GlobalCommunitiesPostSearchTimelineResponse
+from twitter_openapi_python_generated.models.global_communities_post_search_timeline_response_data import GlobalCommunitiesPostSearchTimelineResponseData as GlobalCommunitiesPostSearchTimelineResponseData
from twitter_openapi_python_generated.models.grok_annotation import GrokAnnotation as GrokAnnotation
from twitter_openapi_python_generated.models.grok_entity import GrokEntity as GrokEntity
from twitter_openapi_python_generated.models.grok_entity_ref import GrokEntityRef as GrokEntityRef
+from twitter_openapi_python_generated.models.grok_home import GrokHome as GrokHome
+from twitter_openapi_python_generated.models.grok_home_layout import GrokHomeLayout as GrokHomeLayout
+from twitter_openapi_python_generated.models.grok_home_layout_section import GrokHomeLayoutSection as GrokHomeLayoutSection
+from twitter_openapi_python_generated.models.grok_home_prompt import GrokHomePrompt as GrokHomePrompt
+from twitter_openapi_python_generated.models.grok_home_response import GrokHomeResponse as GrokHomeResponse
+from twitter_openapi_python_generated.models.grok_home_response_data import GrokHomeResponseData as GrokHomeResponseData
from twitter_openapi_python_generated.models.grok_image_annotation import GrokImageAnnotation as GrokImageAnnotation
+from twitter_openapi_python_generated.models.grok_model_option import GrokModelOption as GrokModelOption
from twitter_openapi_python_generated.models.grok_share_attachment import GrokShareAttachment as GrokShareAttachment
from twitter_openapi_python_generated.models.grok_share_attachment_item import GrokShareAttachmentItem as GrokShareAttachmentItem
from twitter_openapi_python_generated.models.grok_translated_bio import GrokTranslatedBio as GrokTranslatedBio
@@ -749,11 +943,17 @@
from twitter_openapi_python_generated.models.list_recommended_users_response_data import ListRecommendedUsersResponseData as ListRecommendedUsersResponseData
from twitter_openapi_python_generated.models.list_response import ListResponse as ListResponse
from twitter_openapi_python_generated.models.list_response_data import ListResponseData as ListResponseData
+from twitter_openapi_python_generated.models.list_search import ListSearch as ListSearch
+from twitter_openapi_python_generated.models.list_search_timeline_response import ListSearchTimelineResponse as ListSearchTimelineResponse
+from twitter_openapi_python_generated.models.list_search_timeline_response_data import ListSearchTimelineResponseData as ListSearchTimelineResponseData
from twitter_openapi_python_generated.models.list_subscribers_list import ListSubscribersList as ListSubscribersList
from twitter_openapi_python_generated.models.list_subscribers_response import ListSubscribersResponse as ListSubscribersResponse
from twitter_openapi_python_generated.models.list_subscribers_response_data import ListSubscribersResponseData as ListSubscribersResponseData
from twitter_openapi_python_generated.models.list_tweets_timeline_data import ListTweetsTimelineData as ListTweetsTimelineData
from twitter_openapi_python_generated.models.list_tweets_timeline_list import ListTweetsTimelineList as ListTweetsTimelineList
+from twitter_openapi_python_generated.models.lists_management_page_timeline_response import ListsManagementPageTimelineResponse as ListsManagementPageTimelineResponse
+from twitter_openapi_python_generated.models.lists_management_page_timeline_response_data import ListsManagementPageTimelineResponseData as ListsManagementPageTimelineResponseData
+from twitter_openapi_python_generated.models.lists_management_viewer import ListsManagementViewer as ListsManagementViewer
from twitter_openapi_python_generated.models.location import Location as Location
from twitter_openapi_python_generated.models.media import Media as Media
from twitter_openapi_python_generated.models.media_color_info import MediaColorInfo as MediaColorInfo
@@ -787,6 +987,7 @@
from twitter_openapi_python_generated.models.note_tweet_result_media_inline_media import NoteTweetResultMediaInlineMedia as NoteTweetResultMediaInlineMedia
from twitter_openapi_python_generated.models.note_tweet_result_rich_text import NoteTweetResultRichText as NoteTweetResultRichText
from twitter_openapi_python_generated.models.note_tweet_result_rich_text_tag import NoteTweetResultRichTextTag as NoteTweetResultRichTextTag
+from twitter_openapi_python_generated.models.notification_details import NotificationDetails as NotificationDetails
from twitter_openapi_python_generated.models.notification_template import NotificationTemplate as NotificationTemplate
from twitter_openapi_python_generated.models.notifications_result import NotificationsResult as NotificationsResult
from twitter_openapi_python_generated.models.notifications_timeline_data import NotificationsTimelineData as NotificationsTimelineData
@@ -795,6 +996,9 @@
from twitter_openapi_python_generated.models.notifications_viewer_v2 import NotificationsViewerV2 as NotificationsViewerV2
from twitter_openapi_python_generated.models.one_factor_login_eligibility import OneFactorLoginEligibility as OneFactorLoginEligibility
from twitter_openapi_python_generated.models.other_object_all import OtherObjectAll as OtherObjectAll
+from twitter_openapi_python_generated.models.pinned_timelines import PinnedTimelines as PinnedTimelines
+from twitter_openapi_python_generated.models.pinned_timelines_response import PinnedTimelinesResponse as PinnedTimelinesResponse
+from twitter_openapi_python_generated.models.pinned_timelines_response_data import PinnedTimelinesResponseData as PinnedTimelinesResponseData
from twitter_openapi_python_generated.models.post_create_bookmark_request import PostCreateBookmarkRequest as PostCreateBookmarkRequest
from twitter_openapi_python_generated.models.post_create_bookmark_request_variables import PostCreateBookmarkRequestVariables as PostCreateBookmarkRequestVariables
from twitter_openapi_python_generated.models.post_create_draft_tweet_request import PostCreateDraftTweetRequest as PostCreateDraftTweetRequest
@@ -839,6 +1043,7 @@
from twitter_openapi_python_generated.models.profile_response import ProfileResponse as ProfileResponse
from twitter_openapi_python_generated.models.profile_response_data import ProfileResponseData as ProfileResponseData
from twitter_openapi_python_generated.models.promoted_metadata import PromotedMetadata as PromotedMetadata
+from twitter_openapi_python_generated.models.promoted_trend import PromotedTrend as PromotedTrend
from twitter_openapi_python_generated.models.quoted_ref_result import QuotedRefResult as QuotedRefResult
from twitter_openapi_python_generated.models.quoted_status_permalink import QuotedStatusPermalink as QuotedStatusPermalink
from twitter_openapi_python_generated.models.ranked_community_result import RankedCommunityResult as RankedCommunityResult
@@ -848,6 +1053,8 @@
from twitter_openapi_python_generated.models.retweet import Retweet as Retweet
from twitter_openapi_python_generated.models.retweet_legacy import RetweetLegacy as RetweetLegacy
from twitter_openapi_python_generated.models.rich_message import RichMessage as RichMessage
+from twitter_openapi_python_generated.models.rich_message_entity import RichMessageEntity as RichMessageEntity
+from twitter_openapi_python_generated.models.rich_message_entity_ref import RichMessageEntityRef as RichMessageEntityRef
from twitter_openapi_python_generated.models.scheduled_tweets_viewer import ScheduledTweetsViewer as ScheduledTweetsViewer
from twitter_openapi_python_generated.models.scribe_config import ScribeConfig as ScribeConfig
from twitter_openapi_python_generated.models.search_by_raw_query import SearchByRawQuery as SearchByRawQuery
@@ -857,6 +1064,7 @@
from twitter_openapi_python_generated.models.self_thread import SelfThread as SelfThread
from twitter_openapi_python_generated.models.sensitive_media_warning import SensitiveMediaWarning as SensitiveMediaWarning
from twitter_openapi_python_generated.models.session import Session as Session
+from twitter_openapi_python_generated.models.slice_info import SliceInfo as SliceInfo
from twitter_openapi_python_generated.models.smarttag import Smarttag as Smarttag
from twitter_openapi_python_generated.models.smarttag_tag import SmarttagTag as SmarttagTag
from twitter_openapi_python_generated.models.smarttag_tag_info import SmarttagTagInfo as SmarttagTagInfo
@@ -883,6 +1091,7 @@
from twitter_openapi_python_generated.models.timeline_community import TimelineCommunity as TimelineCommunity
from twitter_openapi_python_generated.models.timeline_cover_behavior import TimelineCoverBehavior as TimelineCoverBehavior
from twitter_openapi_python_generated.models.timeline_cover_behavior_url import TimelineCoverBehaviorUrl as TimelineCoverBehaviorUrl
+from twitter_openapi_python_generated.models.timeline_event_summary import TimelineEventSummary as TimelineEventSummary
from twitter_openapi_python_generated.models.timeline_frame import TimelineFrame as TimelineFrame
from twitter_openapi_python_generated.models.timeline_general_context import TimelineGeneralContext as TimelineGeneralContext
from twitter_openapi_python_generated.models.timeline_half_cover import TimelineHalfCover as TimelineHalfCover
@@ -926,10 +1135,13 @@
from twitter_openapi_python_generated.models.tombstone_info import TombstoneInfo as TombstoneInfo
from twitter_openapi_python_generated.models.tombstone_ref import TombstoneRef as TombstoneRef
from twitter_openapi_python_generated.models.tombstone_rich_text import TombstoneRichText as TombstoneRichText
+from twitter_openapi_python_generated.models.topic_carousel_query_response import TopicCarouselQueryResponse as TopicCarouselQueryResponse
+from twitter_openapi_python_generated.models.topic_carousel_query_response_data import TopicCarouselQueryResponseData as TopicCarouselQueryResponseData
from twitter_openapi_python_generated.models.topic_context import TopicContext as TopicContext
from twitter_openapi_python_generated.models.tracing import Tracing as Tracing
from twitter_openapi_python_generated.models.trend_image import TrendImage as TrendImage
from twitter_openapi_python_generated.models.trend_metadata import TrendMetadata as TrendMetadata
+from twitter_openapi_python_generated.models.trend_promoted_metadata import TrendPromotedMetadata as TrendPromotedMetadata
from twitter_openapi_python_generated.models.trend_results import TrendResults as TrendResults
from twitter_openapi_python_generated.models.tweet import Tweet as Tweet
from twitter_openapi_python_generated.models.tweet_card import TweetCard as TweetCard
@@ -1047,6 +1259,10 @@
from twitter_openapi_python_generated.models.user_website import UserWebsite as UserWebsite
from twitter_openapi_python_generated.models.users_response import UsersResponse as UsersResponse
from twitter_openapi_python_generated.models.users_response_data import UsersResponseData as UsersResponseData
+from twitter_openapi_python_generated.models.users_verified_avatars_response import UsersVerifiedAvatarsResponse as UsersVerifiedAvatarsResponse
+from twitter_openapi_python_generated.models.users_verified_avatars_response_data import UsersVerifiedAvatarsResponseData as UsersVerifiedAvatarsResponseData
+from twitter_openapi_python_generated.models.verified_avatar_user import VerifiedAvatarUser as VerifiedAvatarUser
+from twitter_openapi_python_generated.models.verified_avatar_user_results import VerifiedAvatarUserResults as VerifiedAvatarUserResults
from twitter_openapi_python_generated.models.viewer_badge_counts_response import ViewerBadgeCountsResponse as ViewerBadgeCountsResponse
from twitter_openapi_python_generated.models.viewer_badge_counts_response_data import ViewerBadgeCountsResponseData as ViewerBadgeCountsResponseData
from twitter_openapi_python_generated.models.viewer_badge_counts_result import ViewerBadgeCountsResult as ViewerBadgeCountsResult
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/api/__init__.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/api/__init__.py
index 643b6c7..ab74c1b 100644
--- a/twitter_openapi_python_generated/twitter_openapi_python_generated/api/__init__.py
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/api/__init__.py
@@ -1,6 +1,8 @@
# flake8: noqa
# import apis into api package
+from twitter_openapi_python_generated.api.birdwatch_api import BirdwatchApi
+from twitter_openapi_python_generated.api.community_api import CommunityApi
from twitter_openapi_python_generated.api.default_api import DefaultApi
from twitter_openapi_python_generated.api.other_api import OtherApi
from twitter_openapi_python_generated.api.post_api import PostApi
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/api/birdwatch_api.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/api/birdwatch_api.py
new file mode 100644
index 0000000..14ca7bc
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/api/birdwatch_api.py
@@ -0,0 +1,1609 @@
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import StrictStr
+from twitter_openapi_python_generated.models.birdwatch_fetch_alias_self_select_status_response import BirdwatchFetchAliasSelfSelectStatusResponse
+from twitter_openapi_python_generated.models.birdwatch_fetch_authenticated_user_profile_response import BirdwatchFetchAuthenticatedUserProfileResponse
+from twitter_openapi_python_generated.models.birdwatch_fetch_birdwatch_profile_response import BirdwatchFetchBirdwatchProfileResponse
+from twitter_openapi_python_generated.models.birdwatch_fetch_global_timeline_response import BirdwatchFetchGlobalTimelineResponse
+from twitter_openapi_python_generated.models.birdwatch_fetch_public_data_response import BirdwatchFetchPublicDataResponse
+
+from twitter_openapi_python_generated.api_client import ApiClient, RequestSerialized
+from twitter_openapi_python_generated.api_response import ApiResponse
+from twitter_openapi_python_generated.rest import RESTResponseType
+
+
+class BirdwatchApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+
+ @validate_call
+ def get_birdwatch_fetch_alias_self_select_status(
+ self,
+ path_query_id: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> BirdwatchFetchAliasSelfSelectStatusResponse:
+ """get_birdwatch_fetch_alias_self_select_status
+
+ whether the account can pick / has picked a Community Notes alias
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_birdwatch_fetch_alias_self_select_status_serialize(
+ path_query_id=path_query_id,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "BirdwatchFetchAliasSelfSelectStatusResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_birdwatch_fetch_alias_self_select_status_with_http_info(
+ self,
+ path_query_id: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[BirdwatchFetchAliasSelfSelectStatusResponse]:
+ """get_birdwatch_fetch_alias_self_select_status
+
+ whether the account can pick / has picked a Community Notes alias
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_birdwatch_fetch_alias_self_select_status_serialize(
+ path_query_id=path_query_id,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "BirdwatchFetchAliasSelfSelectStatusResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_birdwatch_fetch_alias_self_select_status_without_preload_content(
+ self,
+ path_query_id: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """get_birdwatch_fetch_alias_self_select_status
+
+ whether the account can pick / has picked a Community Notes alias
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_birdwatch_fetch_alias_self_select_status_serialize(
+ path_query_id=path_query_id,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "BirdwatchFetchAliasSelfSelectStatusResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_birdwatch_fetch_alias_self_select_status_serialize(
+ self,
+ path_query_id,
+ variables,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if path_query_id is not None:
+ _path_params['pathQueryId'] = path_query_id
+ # process the query parameters
+ if variables is not None:
+
+ _query_params.append(('variables', variables))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'Accept',
+ 'ClientLanguage',
+ 'Priority',
+ 'Referer',
+ 'SecFetchDest',
+ 'SecChUaPlatform',
+ 'SecFetchMode',
+ 'CsrfToken',
+ 'ClientUuid',
+ 'BearerAuth',
+ 'GuestToken',
+ 'SecChUa',
+ 'CookieGt0',
+ 'ClientTransactionId',
+ 'ActiveUser',
+ 'CookieCt0',
+ 'UserAgent',
+ 'AcceptLanguage',
+ 'SecFetchSite',
+ 'AuthType',
+ 'CookieAuthToken',
+ 'SecChUaMobile',
+ 'AcceptEncoding'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/graphql/{pathQueryId}/BirdwatchFetchAliasSelfSelectStatus',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_birdwatch_fetch_authenticated_user_profile(
+ self,
+ path_query_id: StrictStr,
+ features: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> BirdwatchFetchAuthenticatedUserProfileResponse:
+ """get_birdwatch_fetch_authenticated_user_profile
+
+ the account's Community Notes profile
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param features: (required)
+ :type features: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_birdwatch_fetch_authenticated_user_profile_serialize(
+ path_query_id=path_query_id,
+ features=features,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "BirdwatchFetchAuthenticatedUserProfileResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_birdwatch_fetch_authenticated_user_profile_with_http_info(
+ self,
+ path_query_id: StrictStr,
+ features: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[BirdwatchFetchAuthenticatedUserProfileResponse]:
+ """get_birdwatch_fetch_authenticated_user_profile
+
+ the account's Community Notes profile
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param features: (required)
+ :type features: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_birdwatch_fetch_authenticated_user_profile_serialize(
+ path_query_id=path_query_id,
+ features=features,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "BirdwatchFetchAuthenticatedUserProfileResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_birdwatch_fetch_authenticated_user_profile_without_preload_content(
+ self,
+ path_query_id: StrictStr,
+ features: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """get_birdwatch_fetch_authenticated_user_profile
+
+ the account's Community Notes profile
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param features: (required)
+ :type features: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_birdwatch_fetch_authenticated_user_profile_serialize(
+ path_query_id=path_query_id,
+ features=features,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "BirdwatchFetchAuthenticatedUserProfileResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_birdwatch_fetch_authenticated_user_profile_serialize(
+ self,
+ path_query_id,
+ features,
+ variables,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if path_query_id is not None:
+ _path_params['pathQueryId'] = path_query_id
+ # process the query parameters
+ if features is not None:
+
+ _query_params.append(('features', features))
+
+ if variables is not None:
+
+ _query_params.append(('variables', variables))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'Accept',
+ 'ClientLanguage',
+ 'Priority',
+ 'Referer',
+ 'SecFetchDest',
+ 'SecChUaPlatform',
+ 'SecFetchMode',
+ 'CsrfToken',
+ 'ClientUuid',
+ 'BearerAuth',
+ 'GuestToken',
+ 'SecChUa',
+ 'CookieGt0',
+ 'ClientTransactionId',
+ 'ActiveUser',
+ 'CookieCt0',
+ 'UserAgent',
+ 'AcceptLanguage',
+ 'SecFetchSite',
+ 'AuthType',
+ 'CookieAuthToken',
+ 'SecChUaMobile',
+ 'AcceptEncoding'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/graphql/{pathQueryId}/BirdwatchFetchAuthenticatedUserProfile',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_birdwatch_fetch_birdwatch_profile(
+ self,
+ path_query_id: StrictStr,
+ features: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> BirdwatchFetchBirdwatchProfileResponse:
+ """get_birdwatch_fetch_birdwatch_profile
+
+ a Community Notes profile by alias
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param features: (required)
+ :type features: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_birdwatch_fetch_birdwatch_profile_serialize(
+ path_query_id=path_query_id,
+ features=features,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "BirdwatchFetchBirdwatchProfileResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_birdwatch_fetch_birdwatch_profile_with_http_info(
+ self,
+ path_query_id: StrictStr,
+ features: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[BirdwatchFetchBirdwatchProfileResponse]:
+ """get_birdwatch_fetch_birdwatch_profile
+
+ a Community Notes profile by alias
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param features: (required)
+ :type features: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_birdwatch_fetch_birdwatch_profile_serialize(
+ path_query_id=path_query_id,
+ features=features,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "BirdwatchFetchBirdwatchProfileResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_birdwatch_fetch_birdwatch_profile_without_preload_content(
+ self,
+ path_query_id: StrictStr,
+ features: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """get_birdwatch_fetch_birdwatch_profile
+
+ a Community Notes profile by alias
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param features: (required)
+ :type features: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_birdwatch_fetch_birdwatch_profile_serialize(
+ path_query_id=path_query_id,
+ features=features,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "BirdwatchFetchBirdwatchProfileResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_birdwatch_fetch_birdwatch_profile_serialize(
+ self,
+ path_query_id,
+ features,
+ variables,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if path_query_id is not None:
+ _path_params['pathQueryId'] = path_query_id
+ # process the query parameters
+ if features is not None:
+
+ _query_params.append(('features', features))
+
+ if variables is not None:
+
+ _query_params.append(('variables', variables))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'Accept',
+ 'ClientLanguage',
+ 'Priority',
+ 'Referer',
+ 'SecFetchDest',
+ 'SecChUaPlatform',
+ 'SecFetchMode',
+ 'CsrfToken',
+ 'ClientUuid',
+ 'BearerAuth',
+ 'GuestToken',
+ 'SecChUa',
+ 'CookieGt0',
+ 'ClientTransactionId',
+ 'ActiveUser',
+ 'CookieCt0',
+ 'UserAgent',
+ 'AcceptLanguage',
+ 'SecFetchSite',
+ 'AuthType',
+ 'CookieAuthToken',
+ 'SecChUaMobile',
+ 'AcceptEncoding'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/graphql/{pathQueryId}/BirdwatchFetchBirdwatchProfile',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_birdwatch_fetch_global_timeline(
+ self,
+ path_query_id: StrictStr,
+ features: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> BirdwatchFetchGlobalTimelineResponse:
+ """get_birdwatch_fetch_global_timeline
+
+ the Community Notes home page (segmented timelines)
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param features: (required)
+ :type features: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_birdwatch_fetch_global_timeline_serialize(
+ path_query_id=path_query_id,
+ features=features,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "BirdwatchFetchGlobalTimelineResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_birdwatch_fetch_global_timeline_with_http_info(
+ self,
+ path_query_id: StrictStr,
+ features: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[BirdwatchFetchGlobalTimelineResponse]:
+ """get_birdwatch_fetch_global_timeline
+
+ the Community Notes home page (segmented timelines)
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param features: (required)
+ :type features: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_birdwatch_fetch_global_timeline_serialize(
+ path_query_id=path_query_id,
+ features=features,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "BirdwatchFetchGlobalTimelineResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_birdwatch_fetch_global_timeline_without_preload_content(
+ self,
+ path_query_id: StrictStr,
+ features: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """get_birdwatch_fetch_global_timeline
+
+ the Community Notes home page (segmented timelines)
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param features: (required)
+ :type features: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_birdwatch_fetch_global_timeline_serialize(
+ path_query_id=path_query_id,
+ features=features,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "BirdwatchFetchGlobalTimelineResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_birdwatch_fetch_global_timeline_serialize(
+ self,
+ path_query_id,
+ features,
+ variables,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if path_query_id is not None:
+ _path_params['pathQueryId'] = path_query_id
+ # process the query parameters
+ if features is not None:
+
+ _query_params.append(('features', features))
+
+ if variables is not None:
+
+ _query_params.append(('variables', variables))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'Accept',
+ 'ClientLanguage',
+ 'Priority',
+ 'Referer',
+ 'SecFetchDest',
+ 'SecChUaPlatform',
+ 'SecFetchMode',
+ 'CsrfToken',
+ 'ClientUuid',
+ 'BearerAuth',
+ 'GuestToken',
+ 'SecChUa',
+ 'CookieGt0',
+ 'ClientTransactionId',
+ 'ActiveUser',
+ 'CookieCt0',
+ 'UserAgent',
+ 'AcceptLanguage',
+ 'SecFetchSite',
+ 'AuthType',
+ 'CookieAuthToken',
+ 'SecChUaMobile',
+ 'AcceptEncoding'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/graphql/{pathQueryId}/BirdwatchFetchGlobalTimeline',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_birdwatch_fetch_public_data(
+ self,
+ path_query_id: StrictStr,
+ features: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> BirdwatchFetchPublicDataResponse:
+ """get_birdwatch_fetch_public_data
+
+ download urls of the latest Community Notes public data files
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param features: (required)
+ :type features: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_birdwatch_fetch_public_data_serialize(
+ path_query_id=path_query_id,
+ features=features,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "BirdwatchFetchPublicDataResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_birdwatch_fetch_public_data_with_http_info(
+ self,
+ path_query_id: StrictStr,
+ features: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[BirdwatchFetchPublicDataResponse]:
+ """get_birdwatch_fetch_public_data
+
+ download urls of the latest Community Notes public data files
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param features: (required)
+ :type features: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_birdwatch_fetch_public_data_serialize(
+ path_query_id=path_query_id,
+ features=features,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "BirdwatchFetchPublicDataResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_birdwatch_fetch_public_data_without_preload_content(
+ self,
+ path_query_id: StrictStr,
+ features: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """get_birdwatch_fetch_public_data
+
+ download urls of the latest Community Notes public data files
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param features: (required)
+ :type features: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_birdwatch_fetch_public_data_serialize(
+ path_query_id=path_query_id,
+ features=features,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "BirdwatchFetchPublicDataResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_birdwatch_fetch_public_data_serialize(
+ self,
+ path_query_id,
+ features,
+ variables,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if path_query_id is not None:
+ _path_params['pathQueryId'] = path_query_id
+ # process the query parameters
+ if features is not None:
+
+ _query_params.append(('features', features))
+
+ if variables is not None:
+
+ _query_params.append(('variables', variables))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'Accept',
+ 'ClientLanguage',
+ 'Priority',
+ 'Referer',
+ 'SecFetchDest',
+ 'SecChUaPlatform',
+ 'SecFetchMode',
+ 'CsrfToken',
+ 'ClientUuid',
+ 'BearerAuth',
+ 'GuestToken',
+ 'SecChUa',
+ 'CookieGt0',
+ 'ClientTransactionId',
+ 'ActiveUser',
+ 'CookieCt0',
+ 'UserAgent',
+ 'AcceptLanguage',
+ 'SecFetchSite',
+ 'AuthType',
+ 'CookieAuthToken',
+ 'SecChUaMobile',
+ 'AcceptEncoding'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/graphql/{pathQueryId}/BirdwatchFetchPublicData',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/api/community_api.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/api/community_api.py
new file mode 100644
index 0000000..47ef256
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/api/community_api.py
@@ -0,0 +1,1910 @@
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import StrictStr
+from twitter_openapi_python_generated.models.communities_fetch_one_query_response import CommunitiesFetchOneQueryResponse
+from twitter_openapi_python_generated.models.communities_search_query_response import CommunitiesSearchQueryResponse
+from twitter_openapi_python_generated.models.community_query_response import CommunityQueryResponse
+from twitter_openapi_python_generated.models.global_communities_latest_post_search_timeline_response import GlobalCommunitiesLatestPostSearchTimelineResponse
+from twitter_openapi_python_generated.models.global_communities_post_search_timeline_response import GlobalCommunitiesPostSearchTimelineResponse
+from twitter_openapi_python_generated.models.topic_carousel_query_response import TopicCarouselQueryResponse
+
+from twitter_openapi_python_generated.api_client import ApiClient, RequestSerialized
+from twitter_openapi_python_generated.api_response import ApiResponse
+from twitter_openapi_python_generated.rest import RESTResponseType
+
+
+class CommunityApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+
+ @validate_call
+ def get_communities_fetch_one_query(
+ self,
+ path_query_id: StrictStr,
+ features: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> CommunitiesFetchOneQueryResponse:
+ """get_communities_fetch_one_query
+
+ a community by id (community page)
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param features: (required)
+ :type features: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_communities_fetch_one_query_serialize(
+ path_query_id=path_query_id,
+ features=features,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "CommunitiesFetchOneQueryResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_communities_fetch_one_query_with_http_info(
+ self,
+ path_query_id: StrictStr,
+ features: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[CommunitiesFetchOneQueryResponse]:
+ """get_communities_fetch_one_query
+
+ a community by id (community page)
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param features: (required)
+ :type features: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_communities_fetch_one_query_serialize(
+ path_query_id=path_query_id,
+ features=features,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "CommunitiesFetchOneQueryResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_communities_fetch_one_query_without_preload_content(
+ self,
+ path_query_id: StrictStr,
+ features: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """get_communities_fetch_one_query
+
+ a community by id (community page)
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param features: (required)
+ :type features: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_communities_fetch_one_query_serialize(
+ path_query_id=path_query_id,
+ features=features,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "CommunitiesFetchOneQueryResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_communities_fetch_one_query_serialize(
+ self,
+ path_query_id,
+ features,
+ variables,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if path_query_id is not None:
+ _path_params['pathQueryId'] = path_query_id
+ # process the query parameters
+ if features is not None:
+
+ _query_params.append(('features', features))
+
+ if variables is not None:
+
+ _query_params.append(('variables', variables))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'Accept',
+ 'ClientLanguage',
+ 'Priority',
+ 'Referer',
+ 'SecFetchDest',
+ 'SecChUaPlatform',
+ 'SecFetchMode',
+ 'CsrfToken',
+ 'ClientUuid',
+ 'BearerAuth',
+ 'GuestToken',
+ 'SecChUa',
+ 'CookieGt0',
+ 'ClientTransactionId',
+ 'ActiveUser',
+ 'CookieCt0',
+ 'UserAgent',
+ 'AcceptLanguage',
+ 'SecFetchSite',
+ 'AuthType',
+ 'CookieAuthToken',
+ 'SecChUaMobile',
+ 'AcceptEncoding'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/graphql/{pathQueryId}/CommunitiesFetchOneQuery',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_communities_search_query(
+ self,
+ path_query_id: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> CommunitiesSearchQueryResponse:
+ """get_communities_search_query
+
+ search communities. cursor:[slice_info.next_cursor]
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_communities_search_query_serialize(
+ path_query_id=path_query_id,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "CommunitiesSearchQueryResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_communities_search_query_with_http_info(
+ self,
+ path_query_id: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[CommunitiesSearchQueryResponse]:
+ """get_communities_search_query
+
+ search communities. cursor:[slice_info.next_cursor]
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_communities_search_query_serialize(
+ path_query_id=path_query_id,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "CommunitiesSearchQueryResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_communities_search_query_without_preload_content(
+ self,
+ path_query_id: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """get_communities_search_query
+
+ search communities. cursor:[slice_info.next_cursor]
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_communities_search_query_serialize(
+ path_query_id=path_query_id,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "CommunitiesSearchQueryResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_communities_search_query_serialize(
+ self,
+ path_query_id,
+ variables,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if path_query_id is not None:
+ _path_params['pathQueryId'] = path_query_id
+ # process the query parameters
+ if variables is not None:
+
+ _query_params.append(('variables', variables))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'Accept',
+ 'ClientLanguage',
+ 'Priority',
+ 'Referer',
+ 'SecFetchDest',
+ 'SecChUaPlatform',
+ 'SecFetchMode',
+ 'CsrfToken',
+ 'ClientUuid',
+ 'BearerAuth',
+ 'GuestToken',
+ 'SecChUa',
+ 'CookieGt0',
+ 'ClientTransactionId',
+ 'ActiveUser',
+ 'CookieCt0',
+ 'UserAgent',
+ 'AcceptLanguage',
+ 'SecFetchSite',
+ 'AuthType',
+ 'CookieAuthToken',
+ 'SecChUaMobile',
+ 'AcceptEncoding'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/graphql/{pathQueryId}/CommunitiesSearchQuery',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_community_query(
+ self,
+ path_query_id: StrictStr,
+ features: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> CommunityQueryResponse:
+ """get_community_query
+
+ a community by id (community settings and moderation pages)
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param features: (required)
+ :type features: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_community_query_serialize(
+ path_query_id=path_query_id,
+ features=features,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "CommunityQueryResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_community_query_with_http_info(
+ self,
+ path_query_id: StrictStr,
+ features: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[CommunityQueryResponse]:
+ """get_community_query
+
+ a community by id (community settings and moderation pages)
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param features: (required)
+ :type features: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_community_query_serialize(
+ path_query_id=path_query_id,
+ features=features,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "CommunityQueryResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_community_query_without_preload_content(
+ self,
+ path_query_id: StrictStr,
+ features: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """get_community_query
+
+ a community by id (community settings and moderation pages)
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param features: (required)
+ :type features: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_community_query_serialize(
+ path_query_id=path_query_id,
+ features=features,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "CommunityQueryResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_community_query_serialize(
+ self,
+ path_query_id,
+ features,
+ variables,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if path_query_id is not None:
+ _path_params['pathQueryId'] = path_query_id
+ # process the query parameters
+ if features is not None:
+
+ _query_params.append(('features', features))
+
+ if variables is not None:
+
+ _query_params.append(('variables', variables))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'Accept',
+ 'ClientLanguage',
+ 'Priority',
+ 'Referer',
+ 'SecFetchDest',
+ 'SecChUaPlatform',
+ 'SecFetchMode',
+ 'CsrfToken',
+ 'ClientUuid',
+ 'BearerAuth',
+ 'GuestToken',
+ 'SecChUa',
+ 'CookieGt0',
+ 'ClientTransactionId',
+ 'ActiveUser',
+ 'CookieCt0',
+ 'UserAgent',
+ 'AcceptLanguage',
+ 'SecFetchSite',
+ 'AuthType',
+ 'CookieAuthToken',
+ 'SecChUaMobile',
+ 'AcceptEncoding'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/graphql/{pathQueryId}/CommunityQuery',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_global_communities_latest_post_search_timeline(
+ self,
+ path_query_id: StrictStr,
+ features: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GlobalCommunitiesLatestPostSearchTimelineResponse:
+ """get_global_communities_latest_post_search_timeline
+
+ search posts across communities (Latest)
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param features: (required)
+ :type features: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_global_communities_latest_post_search_timeline_serialize(
+ path_query_id=path_query_id,
+ features=features,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GlobalCommunitiesLatestPostSearchTimelineResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_global_communities_latest_post_search_timeline_with_http_info(
+ self,
+ path_query_id: StrictStr,
+ features: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GlobalCommunitiesLatestPostSearchTimelineResponse]:
+ """get_global_communities_latest_post_search_timeline
+
+ search posts across communities (Latest)
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param features: (required)
+ :type features: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_global_communities_latest_post_search_timeline_serialize(
+ path_query_id=path_query_id,
+ features=features,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GlobalCommunitiesLatestPostSearchTimelineResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_global_communities_latest_post_search_timeline_without_preload_content(
+ self,
+ path_query_id: StrictStr,
+ features: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """get_global_communities_latest_post_search_timeline
+
+ search posts across communities (Latest)
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param features: (required)
+ :type features: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_global_communities_latest_post_search_timeline_serialize(
+ path_query_id=path_query_id,
+ features=features,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GlobalCommunitiesLatestPostSearchTimelineResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_global_communities_latest_post_search_timeline_serialize(
+ self,
+ path_query_id,
+ features,
+ variables,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if path_query_id is not None:
+ _path_params['pathQueryId'] = path_query_id
+ # process the query parameters
+ if features is not None:
+
+ _query_params.append(('features', features))
+
+ if variables is not None:
+
+ _query_params.append(('variables', variables))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'Accept',
+ 'ClientLanguage',
+ 'Priority',
+ 'Referer',
+ 'SecFetchDest',
+ 'SecChUaPlatform',
+ 'SecFetchMode',
+ 'CsrfToken',
+ 'ClientUuid',
+ 'BearerAuth',
+ 'GuestToken',
+ 'SecChUa',
+ 'CookieGt0',
+ 'ClientTransactionId',
+ 'ActiveUser',
+ 'CookieCt0',
+ 'UserAgent',
+ 'AcceptLanguage',
+ 'SecFetchSite',
+ 'AuthType',
+ 'CookieAuthToken',
+ 'SecChUaMobile',
+ 'AcceptEncoding'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/graphql/{pathQueryId}/GlobalCommunitiesLatestPostSearchTimeline',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_global_communities_post_search_timeline(
+ self,
+ path_query_id: StrictStr,
+ features: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GlobalCommunitiesPostSearchTimelineResponse:
+ """get_global_communities_post_search_timeline
+
+ search posts across communities (Top)
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param features: (required)
+ :type features: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_global_communities_post_search_timeline_serialize(
+ path_query_id=path_query_id,
+ features=features,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GlobalCommunitiesPostSearchTimelineResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_global_communities_post_search_timeline_with_http_info(
+ self,
+ path_query_id: StrictStr,
+ features: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GlobalCommunitiesPostSearchTimelineResponse]:
+ """get_global_communities_post_search_timeline
+
+ search posts across communities (Top)
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param features: (required)
+ :type features: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_global_communities_post_search_timeline_serialize(
+ path_query_id=path_query_id,
+ features=features,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GlobalCommunitiesPostSearchTimelineResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_global_communities_post_search_timeline_without_preload_content(
+ self,
+ path_query_id: StrictStr,
+ features: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """get_global_communities_post_search_timeline
+
+ search posts across communities (Top)
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param features: (required)
+ :type features: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_global_communities_post_search_timeline_serialize(
+ path_query_id=path_query_id,
+ features=features,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GlobalCommunitiesPostSearchTimelineResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_global_communities_post_search_timeline_serialize(
+ self,
+ path_query_id,
+ features,
+ variables,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if path_query_id is not None:
+ _path_params['pathQueryId'] = path_query_id
+ # process the query parameters
+ if features is not None:
+
+ _query_params.append(('features', features))
+
+ if variables is not None:
+
+ _query_params.append(('variables', variables))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'Accept',
+ 'ClientLanguage',
+ 'Priority',
+ 'Referer',
+ 'SecFetchDest',
+ 'SecChUaPlatform',
+ 'SecFetchMode',
+ 'CsrfToken',
+ 'ClientUuid',
+ 'BearerAuth',
+ 'GuestToken',
+ 'SecChUa',
+ 'CookieGt0',
+ 'ClientTransactionId',
+ 'ActiveUser',
+ 'CookieCt0',
+ 'UserAgent',
+ 'AcceptLanguage',
+ 'SecFetchSite',
+ 'AuthType',
+ 'CookieAuthToken',
+ 'SecChUaMobile',
+ 'AcceptEncoding'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/graphql/{pathQueryId}/GlobalCommunitiesPostSearchTimeline',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_topic_carousel_query(
+ self,
+ path_query_id: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> TopicCarouselQueryResponse:
+ """get_topic_carousel_query
+
+ community topics and subtopics
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_topic_carousel_query_serialize(
+ path_query_id=path_query_id,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "TopicCarouselQueryResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_topic_carousel_query_with_http_info(
+ self,
+ path_query_id: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[TopicCarouselQueryResponse]:
+ """get_topic_carousel_query
+
+ community topics and subtopics
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_topic_carousel_query_serialize(
+ path_query_id=path_query_id,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "TopicCarouselQueryResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_topic_carousel_query_without_preload_content(
+ self,
+ path_query_id: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """get_topic_carousel_query
+
+ community topics and subtopics
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_topic_carousel_query_serialize(
+ path_query_id=path_query_id,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "TopicCarouselQueryResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_topic_carousel_query_serialize(
+ self,
+ path_query_id,
+ variables,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if path_query_id is not None:
+ _path_params['pathQueryId'] = path_query_id
+ # process the query parameters
+ if variables is not None:
+
+ _query_params.append(('variables', variables))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'Accept',
+ 'ClientLanguage',
+ 'Priority',
+ 'Referer',
+ 'SecFetchDest',
+ 'SecChUaPlatform',
+ 'SecFetchMode',
+ 'CsrfToken',
+ 'ClientUuid',
+ 'BearerAuth',
+ 'GuestToken',
+ 'SecChUa',
+ 'CookieGt0',
+ 'ClientTransactionId',
+ 'ActiveUser',
+ 'CookieCt0',
+ 'UserAgent',
+ 'AcceptLanguage',
+ 'SecFetchSite',
+ 'AuthType',
+ 'CookieAuthToken',
+ 'SecChUaMobile',
+ 'AcceptEncoding'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/graphql/{pathQueryId}/TopicCarouselQuery',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/api/default_api.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/api/default_api.py
index 73c1e7e..21b9588 100644
--- a/twitter_openapi_python_generated/twitter_openapi_python_generated/api/default_api.py
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/api/default_api.py
@@ -17,6 +17,11 @@
from typing_extensions import Annotated
from pydantic import StrictStr
+from twitter_openapi_python_generated.models.authenticate_periscope_response import AuthenticatePeriscopeResponse
+from twitter_openapi_python_generated.models.creator_studio_tab_bar_item_query_response import CreatorStudioTabBarItemQueryResponse
+from twitter_openapi_python_generated.models.data_saver_mode_response import DataSaverModeResponse
+from twitter_openapi_python_generated.models.grok_home_response import GrokHomeResponse
+from twitter_openapi_python_generated.models.pinned_timelines_response import PinnedTimelinesResponse
from twitter_openapi_python_generated.models.profile_response import ProfileResponse
from twitter_openapi_python_generated.models.tweet_result_by_rest_id_response import TweetResultByRestIdResponse
@@ -38,6 +43,1523 @@ def __init__(self, api_client=None) -> None:
self.api_client = api_client
+ @validate_call
+ def get_authenticate_periscope(
+ self,
+ path_query_id: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> AuthenticatePeriscopeResponse:
+ """get_authenticate_periscope
+
+ a Periscope (live video) token for the account
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_authenticate_periscope_serialize(
+ path_query_id=path_query_id,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "AuthenticatePeriscopeResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_authenticate_periscope_with_http_info(
+ self,
+ path_query_id: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[AuthenticatePeriscopeResponse]:
+ """get_authenticate_periscope
+
+ a Periscope (live video) token for the account
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_authenticate_periscope_serialize(
+ path_query_id=path_query_id,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "AuthenticatePeriscopeResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_authenticate_periscope_without_preload_content(
+ self,
+ path_query_id: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """get_authenticate_periscope
+
+ a Periscope (live video) token for the account
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_authenticate_periscope_serialize(
+ path_query_id=path_query_id,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "AuthenticatePeriscopeResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_authenticate_periscope_serialize(
+ self,
+ path_query_id,
+ variables,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if path_query_id is not None:
+ _path_params['pathQueryId'] = path_query_id
+ # process the query parameters
+ if variables is not None:
+
+ _query_params.append(('variables', variables))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'Accept',
+ 'ClientLanguage',
+ 'Priority',
+ 'Referer',
+ 'SecFetchDest',
+ 'SecChUaPlatform',
+ 'SecFetchMode',
+ 'CsrfToken',
+ 'ClientUuid',
+ 'BearerAuth',
+ 'GuestToken',
+ 'SecChUa',
+ 'CookieGt0',
+ 'ClientTransactionId',
+ 'ActiveUser',
+ 'CookieCt0',
+ 'UserAgent',
+ 'AcceptLanguage',
+ 'SecFetchSite',
+ 'AuthType',
+ 'CookieAuthToken',
+ 'SecChUaMobile',
+ 'AcceptEncoding'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/graphql/{pathQueryId}/AuthenticatePeriscope',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_creator_studio_tab_bar_item_query(
+ self,
+ path_query_id: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> CreatorStudioTabBarItemQueryResponse:
+ """get_creator_studio_tab_bar_item_query
+
+ audience rewards tasks shown in Creator Studio
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_creator_studio_tab_bar_item_query_serialize(
+ path_query_id=path_query_id,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "CreatorStudioTabBarItemQueryResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_creator_studio_tab_bar_item_query_with_http_info(
+ self,
+ path_query_id: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[CreatorStudioTabBarItemQueryResponse]:
+ """get_creator_studio_tab_bar_item_query
+
+ audience rewards tasks shown in Creator Studio
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_creator_studio_tab_bar_item_query_serialize(
+ path_query_id=path_query_id,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "CreatorStudioTabBarItemQueryResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_creator_studio_tab_bar_item_query_without_preload_content(
+ self,
+ path_query_id: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """get_creator_studio_tab_bar_item_query
+
+ audience rewards tasks shown in Creator Studio
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_creator_studio_tab_bar_item_query_serialize(
+ path_query_id=path_query_id,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "CreatorStudioTabBarItemQueryResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_creator_studio_tab_bar_item_query_serialize(
+ self,
+ path_query_id,
+ variables,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if path_query_id is not None:
+ _path_params['pathQueryId'] = path_query_id
+ # process the query parameters
+ if variables is not None:
+
+ _query_params.append(('variables', variables))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'Accept',
+ 'ClientLanguage',
+ 'Priority',
+ 'Referer',
+ 'SecFetchDest',
+ 'SecChUaPlatform',
+ 'SecFetchMode',
+ 'CsrfToken',
+ 'ClientUuid',
+ 'BearerAuth',
+ 'GuestToken',
+ 'SecChUa',
+ 'CookieGt0',
+ 'ClientTransactionId',
+ 'ActiveUser',
+ 'CookieCt0',
+ 'UserAgent',
+ 'AcceptLanguage',
+ 'SecFetchSite',
+ 'AuthType',
+ 'CookieAuthToken',
+ 'SecChUaMobile',
+ 'AcceptEncoding'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/graphql/{pathQueryId}/CreatorStudioTabBarItemQuery',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_data_saver_mode(
+ self,
+ path_query_id: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> DataSaverModeResponse:
+ """get_data_saver_mode
+
+ data saver setting of the account
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_data_saver_mode_serialize(
+ path_query_id=path_query_id,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "DataSaverModeResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_data_saver_mode_with_http_info(
+ self,
+ path_query_id: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[DataSaverModeResponse]:
+ """get_data_saver_mode
+
+ data saver setting of the account
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_data_saver_mode_serialize(
+ path_query_id=path_query_id,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "DataSaverModeResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_data_saver_mode_without_preload_content(
+ self,
+ path_query_id: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """get_data_saver_mode
+
+ data saver setting of the account
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_data_saver_mode_serialize(
+ path_query_id=path_query_id,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "DataSaverModeResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_data_saver_mode_serialize(
+ self,
+ path_query_id,
+ variables,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if path_query_id is not None:
+ _path_params['pathQueryId'] = path_query_id
+ # process the query parameters
+ if variables is not None:
+
+ _query_params.append(('variables', variables))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'Accept',
+ 'ClientLanguage',
+ 'Priority',
+ 'Referer',
+ 'SecFetchDest',
+ 'SecChUaPlatform',
+ 'SecFetchMode',
+ 'CsrfToken',
+ 'ClientUuid',
+ 'BearerAuth',
+ 'GuestToken',
+ 'SecChUa',
+ 'CookieGt0',
+ 'ClientTransactionId',
+ 'ActiveUser',
+ 'CookieCt0',
+ 'UserAgent',
+ 'AcceptLanguage',
+ 'SecFetchSite',
+ 'AuthType',
+ 'CookieAuthToken',
+ 'SecChUaMobile',
+ 'AcceptEncoding'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/graphql/{pathQueryId}/DataSaverMode',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_grok_home(
+ self,
+ path_query_id: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GrokHomeResponse:
+ """get_grok_home
+
+ Grok home: model options, prompts and eligibility
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_grok_home_serialize(
+ path_query_id=path_query_id,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GrokHomeResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_grok_home_with_http_info(
+ self,
+ path_query_id: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GrokHomeResponse]:
+ """get_grok_home
+
+ Grok home: model options, prompts and eligibility
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_grok_home_serialize(
+ path_query_id=path_query_id,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GrokHomeResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_grok_home_without_preload_content(
+ self,
+ path_query_id: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """get_grok_home
+
+ Grok home: model options, prompts and eligibility
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_grok_home_serialize(
+ path_query_id=path_query_id,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GrokHomeResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_grok_home_serialize(
+ self,
+ path_query_id,
+ variables,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if path_query_id is not None:
+ _path_params['pathQueryId'] = path_query_id
+ # process the query parameters
+ if variables is not None:
+
+ _query_params.append(('variables', variables))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'Accept',
+ 'ClientLanguage',
+ 'Priority',
+ 'Referer',
+ 'SecFetchDest',
+ 'SecChUaPlatform',
+ 'SecFetchMode',
+ 'CsrfToken',
+ 'ClientUuid',
+ 'BearerAuth',
+ 'GuestToken',
+ 'SecChUa',
+ 'CookieGt0',
+ 'ClientTransactionId',
+ 'ActiveUser',
+ 'CookieCt0',
+ 'UserAgent',
+ 'AcceptLanguage',
+ 'SecFetchSite',
+ 'AuthType',
+ 'CookieAuthToken',
+ 'SecChUaMobile',
+ 'AcceptEncoding'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/graphql/{pathQueryId}/GrokHome',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_pinned_timelines(
+ self,
+ path_query_id: StrictStr,
+ features: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> PinnedTimelinesResponse:
+ """get_pinned_timelines
+
+ the account's pinned timelines
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param features: (required)
+ :type features: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_pinned_timelines_serialize(
+ path_query_id=path_query_id,
+ features=features,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "PinnedTimelinesResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_pinned_timelines_with_http_info(
+ self,
+ path_query_id: StrictStr,
+ features: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[PinnedTimelinesResponse]:
+ """get_pinned_timelines
+
+ the account's pinned timelines
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param features: (required)
+ :type features: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_pinned_timelines_serialize(
+ path_query_id=path_query_id,
+ features=features,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "PinnedTimelinesResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_pinned_timelines_without_preload_content(
+ self,
+ path_query_id: StrictStr,
+ features: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """get_pinned_timelines
+
+ the account's pinned timelines
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param features: (required)
+ :type features: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_pinned_timelines_serialize(
+ path_query_id=path_query_id,
+ features=features,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "PinnedTimelinesResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_pinned_timelines_serialize(
+ self,
+ path_query_id,
+ features,
+ variables,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if path_query_id is not None:
+ _path_params['pathQueryId'] = path_query_id
+ # process the query parameters
+ if features is not None:
+
+ _query_params.append(('features', features))
+
+ if variables is not None:
+
+ _query_params.append(('variables', variables))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'Accept',
+ 'ClientLanguage',
+ 'Priority',
+ 'Referer',
+ 'SecFetchDest',
+ 'SecChUaPlatform',
+ 'SecFetchMode',
+ 'CsrfToken',
+ 'ClientUuid',
+ 'BearerAuth',
+ 'GuestToken',
+ 'SecChUa',
+ 'CookieGt0',
+ 'ClientTransactionId',
+ 'ActiveUser',
+ 'CookieCt0',
+ 'UserAgent',
+ 'AcceptLanguage',
+ 'SecFetchSite',
+ 'AuthType',
+ 'CookieAuthToken',
+ 'SecChUaMobile',
+ 'AcceptEncoding'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/graphql/{pathQueryId}/PinnedTimelines',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
@validate_call
def get_profile_spotlights_query(
self,
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/api/tweet_api.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/api/tweet_api.py
index 76a630f..8af6e35 100644
--- a/twitter_openapi_python_generated/twitter_openapi_python_generated/api/tweet_api.py
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/api/tweet_api.py
@@ -17,6 +17,7 @@
from typing_extensions import Annotated
from pydantic import StrictStr
+from twitter_openapi_python_generated.models.bookmark_search_timeline_response import BookmarkSearchTimelineResponse
from twitter_openapi_python_generated.models.bookmarks_response import BookmarksResponse
from twitter_openapi_python_generated.models.community_about_timeline_response import CommunityAboutTimelineResponse
from twitter_openapi_python_generated.models.community_discovery_timeline_response import CommunityDiscoveryTimelineResponse
@@ -24,6 +25,7 @@
from twitter_openapi_python_generated.models.community_tweets_timeline_response import CommunityTweetsTimelineResponse
from twitter_openapi_python_generated.models.connect_tab_timeline_response import ConnectTabTimelineResponse
from twitter_openapi_python_generated.models.explore_page_response import ExplorePageResponse
+from twitter_openapi_python_generated.models.explore_sidebar_response import ExploreSidebarResponse
from twitter_openapi_python_generated.models.generic_timeline_by_id_response import GenericTimelineByIdResponse
from twitter_openapi_python_generated.models.list_latest_tweets_timeline_response import ListLatestTweetsTimelineResponse
from twitter_openapi_python_generated.models.notifications_timeline_response import NotificationsTimelineResponse
@@ -51,6 +53,323 @@ def __init__(self, api_client=None) -> None:
self.api_client = api_client
+ @validate_call
+ def get_bookmark_search_timeline(
+ self,
+ path_query_id: StrictStr,
+ features: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> BookmarkSearchTimelineResponse:
+ """get_bookmark_search_timeline
+
+ search the account's bookmarks
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param features: (required)
+ :type features: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_bookmark_search_timeline_serialize(
+ path_query_id=path_query_id,
+ features=features,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "BookmarkSearchTimelineResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_bookmark_search_timeline_with_http_info(
+ self,
+ path_query_id: StrictStr,
+ features: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[BookmarkSearchTimelineResponse]:
+ """get_bookmark_search_timeline
+
+ search the account's bookmarks
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param features: (required)
+ :type features: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_bookmark_search_timeline_serialize(
+ path_query_id=path_query_id,
+ features=features,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "BookmarkSearchTimelineResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_bookmark_search_timeline_without_preload_content(
+ self,
+ path_query_id: StrictStr,
+ features: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """get_bookmark_search_timeline
+
+ search the account's bookmarks
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param features: (required)
+ :type features: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_bookmark_search_timeline_serialize(
+ path_query_id=path_query_id,
+ features=features,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "BookmarkSearchTimelineResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_bookmark_search_timeline_serialize(
+ self,
+ path_query_id,
+ features,
+ variables,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if path_query_id is not None:
+ _path_params['pathQueryId'] = path_query_id
+ # process the query parameters
+ if features is not None:
+
+ _query_params.append(('features', features))
+
+ if variables is not None:
+
+ _query_params.append(('variables', variables))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'Accept',
+ 'ClientLanguage',
+ 'Priority',
+ 'Referer',
+ 'SecFetchDest',
+ 'SecChUaPlatform',
+ 'SecFetchMode',
+ 'CsrfToken',
+ 'ClientUuid',
+ 'BearerAuth',
+ 'GuestToken',
+ 'SecChUa',
+ 'CookieGt0',
+ 'ClientTransactionId',
+ 'ActiveUser',
+ 'CookieCt0',
+ 'UserAgent',
+ 'AcceptLanguage',
+ 'SecFetchSite',
+ 'AuthType',
+ 'CookieAuthToken',
+ 'SecChUaMobile',
+ 'AcceptEncoding'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/graphql/{pathQueryId}/BookmarkSearchTimeline',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
@validate_call
def get_bookmarks(
self,
@@ -69,7 +388,82 @@ def get_bookmarks(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> BookmarksResponse:
+ ) -> BookmarksResponse:
+ """get_bookmarks
+
+ get bookmarks
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param variables: (required)
+ :type variables: str
+ :param features: (required)
+ :type features: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_bookmarks_serialize(
+ path_query_id=path_query_id,
+ variables=variables,
+ features=features,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "BookmarksResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_bookmarks_with_http_info(
+ self,
+ path_query_id: StrictStr,
+ variables: StrictStr,
+ features: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[BookmarksResponse]:
"""get_bookmarks
get bookmarks
@@ -123,11 +517,11 @@ def get_bookmarks(
return self.api_client.response_deserialize(
response_data=response_data,
response_types_map=_response_types_map,
- ).data
+ )
@validate_call
- def get_bookmarks_with_http_info(
+ def get_bookmarks_without_preload_content(
self,
path_query_id: StrictStr,
variables: StrictStr,
@@ -144,7 +538,7 @@ def get_bookmarks_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[BookmarksResponse]:
+ ) -> RESTResponseType:
"""get_bookmarks
get bookmarks
@@ -194,6 +588,248 @@ def get_bookmarks_with_http_info(
*_param,
_request_timeout=_request_timeout
)
+ return response_data.response
+
+
+ def _get_bookmarks_serialize(
+ self,
+ path_query_id,
+ variables,
+ features,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if path_query_id is not None:
+ _path_params['pathQueryId'] = path_query_id
+ # process the query parameters
+ if variables is not None:
+
+ _query_params.append(('variables', variables))
+
+ if features is not None:
+
+ _query_params.append(('features', features))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'Accept',
+ 'ClientLanguage',
+ 'Priority',
+ 'Referer',
+ 'SecFetchDest',
+ 'SecChUaPlatform',
+ 'SecFetchMode',
+ 'CsrfToken',
+ 'ClientUuid',
+ 'BearerAuth',
+ 'GuestToken',
+ 'SecChUa',
+ 'CookieGt0',
+ 'ClientTransactionId',
+ 'ActiveUser',
+ 'CookieCt0',
+ 'UserAgent',
+ 'AcceptLanguage',
+ 'SecFetchSite',
+ 'AuthType',
+ 'CookieAuthToken',
+ 'SecChUaMobile',
+ 'AcceptEncoding'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/graphql/{pathQueryId}/Bookmarks',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_community_about_timeline(
+ self,
+ path_query_id: StrictStr,
+ variables: StrictStr,
+ features: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> CommunityAboutTimelineResponse:
+ """get_community_about_timeline
+
+ get about of community
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param variables: (required)
+ :type variables: str
+ :param features: (required)
+ :type features: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_community_about_timeline_serialize(
+ path_query_id=path_query_id,
+ variables=variables,
+ features=features,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "CommunityAboutTimelineResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_community_about_timeline_with_http_info(
+ self,
+ path_query_id: StrictStr,
+ variables: StrictStr,
+ features: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[CommunityAboutTimelineResponse]:
+ """get_community_about_timeline
+
+ get about of community
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param variables: (required)
+ :type variables: str
+ :param features: (required)
+ :type features: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_community_about_timeline_serialize(
+ path_query_id=path_query_id,
+ variables=variables,
+ features=features,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "CommunityAboutTimelineResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
response_data.read()
return self.api_client.response_deserialize(
response_data=response_data,
@@ -202,7 +838,7 @@ def get_bookmarks_with_http_info(
@validate_call
- def get_bookmarks_without_preload_content(
+ def get_community_about_timeline_without_preload_content(
self,
path_query_id: StrictStr,
variables: StrictStr,
@@ -220,9 +856,9 @@ def get_bookmarks_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """get_bookmarks
+ """get_community_about_timeline
- get bookmarks
+ get about of community
:param path_query_id: (required)
:type path_query_id: str
@@ -252,7 +888,7 @@ def get_bookmarks_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_bookmarks_serialize(
+ _param = self._get_community_about_timeline_serialize(
path_query_id=path_query_id,
variables=variables,
features=features,
@@ -263,7 +899,7 @@ def get_bookmarks_without_preload_content(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "BookmarksResponse",
+ '200': "CommunityAboutTimelineResponse",
}
response_data = self.api_client.call_api(
*_param,
@@ -272,7 +908,7 @@ def get_bookmarks_without_preload_content(
return response_data.response
- def _get_bookmarks_serialize(
+ def _get_community_about_timeline_serialize(
self,
path_query_id,
variables,
@@ -352,7 +988,7 @@ def _get_bookmarks_serialize(
return self.api_client.param_serialize(
method='GET',
- resource_path='/graphql/{pathQueryId}/Bookmarks',
+ resource_path='/graphql/{pathQueryId}/CommunityAboutTimeline',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -369,7 +1005,7 @@ def _get_bookmarks_serialize(
@validate_call
- def get_community_about_timeline(
+ def get_community_discovery_timeline(
self,
path_query_id: StrictStr,
variables: StrictStr,
@@ -386,10 +1022,10 @@ def get_community_about_timeline(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> CommunityAboutTimelineResponse:
- """get_community_about_timeline
+ ) -> CommunityDiscoveryTimelineResponse:
+ """get_community_discovery_timeline
- get about of community
+ get the communities discovery timeline
:param path_query_id: (required)
:type path_query_id: str
@@ -419,7 +1055,7 @@ def get_community_about_timeline(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_community_about_timeline_serialize(
+ _param = self._get_community_discovery_timeline_serialize(
path_query_id=path_query_id,
variables=variables,
features=features,
@@ -430,7 +1066,7 @@ def get_community_about_timeline(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "CommunityAboutTimelineResponse",
+ '200': "CommunityDiscoveryTimelineResponse",
}
response_data = self.api_client.call_api(
*_param,
@@ -444,7 +1080,7 @@ def get_community_about_timeline(
@validate_call
- def get_community_about_timeline_with_http_info(
+ def get_community_discovery_timeline_with_http_info(
self,
path_query_id: StrictStr,
variables: StrictStr,
@@ -461,10 +1097,10 @@ def get_community_about_timeline_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[CommunityAboutTimelineResponse]:
- """get_community_about_timeline
+ ) -> ApiResponse[CommunityDiscoveryTimelineResponse]:
+ """get_community_discovery_timeline
- get about of community
+ get the communities discovery timeline
:param path_query_id: (required)
:type path_query_id: str
@@ -494,7 +1130,7 @@ def get_community_about_timeline_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_community_about_timeline_serialize(
+ _param = self._get_community_discovery_timeline_serialize(
path_query_id=path_query_id,
variables=variables,
features=features,
@@ -505,7 +1141,7 @@ def get_community_about_timeline_with_http_info(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "CommunityAboutTimelineResponse",
+ '200': "CommunityDiscoveryTimelineResponse",
}
response_data = self.api_client.call_api(
*_param,
@@ -519,7 +1155,7 @@ def get_community_about_timeline_with_http_info(
@validate_call
- def get_community_about_timeline_without_preload_content(
+ def get_community_discovery_timeline_without_preload_content(
self,
path_query_id: StrictStr,
variables: StrictStr,
@@ -537,9 +1173,9 @@ def get_community_about_timeline_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """get_community_about_timeline
+ """get_community_discovery_timeline
- get about of community
+ get the communities discovery timeline
:param path_query_id: (required)
:type path_query_id: str
@@ -569,7 +1205,7 @@ def get_community_about_timeline_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_community_about_timeline_serialize(
+ _param = self._get_community_discovery_timeline_serialize(
path_query_id=path_query_id,
variables=variables,
features=features,
@@ -580,7 +1216,7 @@ def get_community_about_timeline_without_preload_content(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "CommunityAboutTimelineResponse",
+ '200': "CommunityDiscoveryTimelineResponse",
}
response_data = self.api_client.call_api(
*_param,
@@ -589,7 +1225,7 @@ def get_community_about_timeline_without_preload_content(
return response_data.response
- def _get_community_about_timeline_serialize(
+ def _get_community_discovery_timeline_serialize(
self,
path_query_id,
variables,
@@ -669,7 +1305,7 @@ def _get_community_about_timeline_serialize(
return self.api_client.param_serialize(
method='GET',
- resource_path='/graphql/{pathQueryId}/CommunityAboutTimeline',
+ resource_path='/graphql/{pathQueryId}/CommunityDiscoveryTimeline',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -686,7 +1322,7 @@ def _get_community_about_timeline_serialize(
@validate_call
- def get_community_discovery_timeline(
+ def get_community_media_timeline(
self,
path_query_id: StrictStr,
variables: StrictStr,
@@ -703,10 +1339,10 @@ def get_community_discovery_timeline(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> CommunityDiscoveryTimelineResponse:
- """get_community_discovery_timeline
+ ) -> CommunityMediaTimelineResponse:
+ """get_community_media_timeline
- get the communities discovery timeline
+ get media list of community
:param path_query_id: (required)
:type path_query_id: str
@@ -736,7 +1372,7 @@ def get_community_discovery_timeline(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_community_discovery_timeline_serialize(
+ _param = self._get_community_media_timeline_serialize(
path_query_id=path_query_id,
variables=variables,
features=features,
@@ -747,7 +1383,7 @@ def get_community_discovery_timeline(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "CommunityDiscoveryTimelineResponse",
+ '200': "CommunityMediaTimelineResponse",
}
response_data = self.api_client.call_api(
*_param,
@@ -761,7 +1397,7 @@ def get_community_discovery_timeline(
@validate_call
- def get_community_discovery_timeline_with_http_info(
+ def get_community_media_timeline_with_http_info(
self,
path_query_id: StrictStr,
variables: StrictStr,
@@ -778,10 +1414,10 @@ def get_community_discovery_timeline_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[CommunityDiscoveryTimelineResponse]:
- """get_community_discovery_timeline
+ ) -> ApiResponse[CommunityMediaTimelineResponse]:
+ """get_community_media_timeline
- get the communities discovery timeline
+ get media list of community
:param path_query_id: (required)
:type path_query_id: str
@@ -811,7 +1447,7 @@ def get_community_discovery_timeline_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_community_discovery_timeline_serialize(
+ _param = self._get_community_media_timeline_serialize(
path_query_id=path_query_id,
variables=variables,
features=features,
@@ -822,7 +1458,7 @@ def get_community_discovery_timeline_with_http_info(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "CommunityDiscoveryTimelineResponse",
+ '200': "CommunityMediaTimelineResponse",
}
response_data = self.api_client.call_api(
*_param,
@@ -836,7 +1472,7 @@ def get_community_discovery_timeline_with_http_info(
@validate_call
- def get_community_discovery_timeline_without_preload_content(
+ def get_community_media_timeline_without_preload_content(
self,
path_query_id: StrictStr,
variables: StrictStr,
@@ -854,9 +1490,9 @@ def get_community_discovery_timeline_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """get_community_discovery_timeline
+ """get_community_media_timeline
- get the communities discovery timeline
+ get media list of community
:param path_query_id: (required)
:type path_query_id: str
@@ -886,7 +1522,7 @@ def get_community_discovery_timeline_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_community_discovery_timeline_serialize(
+ _param = self._get_community_media_timeline_serialize(
path_query_id=path_query_id,
variables=variables,
features=features,
@@ -897,7 +1533,7 @@ def get_community_discovery_timeline_without_preload_content(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "CommunityDiscoveryTimelineResponse",
+ '200': "CommunityMediaTimelineResponse",
}
response_data = self.api_client.call_api(
*_param,
@@ -906,7 +1542,7 @@ def get_community_discovery_timeline_without_preload_content(
return response_data.response
- def _get_community_discovery_timeline_serialize(
+ def _get_community_media_timeline_serialize(
self,
path_query_id,
variables,
@@ -986,7 +1622,7 @@ def _get_community_discovery_timeline_serialize(
return self.api_client.param_serialize(
method='GET',
- resource_path='/graphql/{pathQueryId}/CommunityDiscoveryTimeline',
+ resource_path='/graphql/{pathQueryId}/CommunityMediaTimeline',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -1003,7 +1639,7 @@ def _get_community_discovery_timeline_serialize(
@validate_call
- def get_community_media_timeline(
+ def get_community_tweets_timeline(
self,
path_query_id: StrictStr,
variables: StrictStr,
@@ -1020,10 +1656,10 @@ def get_community_media_timeline(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> CommunityMediaTimelineResponse:
- """get_community_media_timeline
+ ) -> CommunityTweetsTimelineResponse:
+ """get_community_tweets_timeline
- get media list of community
+ get tweet list of community. rankingMode:[Recency, Relevance]
:param path_query_id: (required)
:type path_query_id: str
@@ -1053,7 +1689,7 @@ def get_community_media_timeline(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_community_media_timeline_serialize(
+ _param = self._get_community_tweets_timeline_serialize(
path_query_id=path_query_id,
variables=variables,
features=features,
@@ -1064,7 +1700,7 @@ def get_community_media_timeline(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "CommunityMediaTimelineResponse",
+ '200': "CommunityTweetsTimelineResponse",
}
response_data = self.api_client.call_api(
*_param,
@@ -1078,7 +1714,7 @@ def get_community_media_timeline(
@validate_call
- def get_community_media_timeline_with_http_info(
+ def get_community_tweets_timeline_with_http_info(
self,
path_query_id: StrictStr,
variables: StrictStr,
@@ -1095,10 +1731,10 @@ def get_community_media_timeline_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[CommunityMediaTimelineResponse]:
- """get_community_media_timeline
+ ) -> ApiResponse[CommunityTweetsTimelineResponse]:
+ """get_community_tweets_timeline
- get media list of community
+ get tweet list of community. rankingMode:[Recency, Relevance]
:param path_query_id: (required)
:type path_query_id: str
@@ -1128,7 +1764,7 @@ def get_community_media_timeline_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_community_media_timeline_serialize(
+ _param = self._get_community_tweets_timeline_serialize(
path_query_id=path_query_id,
variables=variables,
features=features,
@@ -1139,7 +1775,7 @@ def get_community_media_timeline_with_http_info(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "CommunityMediaTimelineResponse",
+ '200': "CommunityTweetsTimelineResponse",
}
response_data = self.api_client.call_api(
*_param,
@@ -1153,7 +1789,7 @@ def get_community_media_timeline_with_http_info(
@validate_call
- def get_community_media_timeline_without_preload_content(
+ def get_community_tweets_timeline_without_preload_content(
self,
path_query_id: StrictStr,
variables: StrictStr,
@@ -1171,9 +1807,9 @@ def get_community_media_timeline_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """get_community_media_timeline
+ """get_community_tweets_timeline
- get media list of community
+ get tweet list of community. rankingMode:[Recency, Relevance]
:param path_query_id: (required)
:type path_query_id: str
@@ -1203,7 +1839,7 @@ def get_community_media_timeline_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_community_media_timeline_serialize(
+ _param = self._get_community_tweets_timeline_serialize(
path_query_id=path_query_id,
variables=variables,
features=features,
@@ -1214,7 +1850,7 @@ def get_community_media_timeline_without_preload_content(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "CommunityMediaTimelineResponse",
+ '200': "CommunityTweetsTimelineResponse",
}
response_data = self.api_client.call_api(
*_param,
@@ -1223,7 +1859,7 @@ def get_community_media_timeline_without_preload_content(
return response_data.response
- def _get_community_media_timeline_serialize(
+ def _get_community_tweets_timeline_serialize(
self,
path_query_id,
variables,
@@ -1303,7 +1939,7 @@ def _get_community_media_timeline_serialize(
return self.api_client.param_serialize(
method='GET',
- resource_path='/graphql/{pathQueryId}/CommunityMediaTimeline',
+ resource_path='/graphql/{pathQueryId}/CommunityTweetsTimeline',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -1320,7 +1956,7 @@ def _get_community_media_timeline_serialize(
@validate_call
- def get_community_tweets_timeline(
+ def get_connect_tab_timeline(
self,
path_query_id: StrictStr,
variables: StrictStr,
@@ -1337,10 +1973,10 @@ def get_community_tweets_timeline(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> CommunityTweetsTimelineResponse:
- """get_community_tweets_timeline
+ ) -> ConnectTabTimelineResponse:
+ """get_connect_tab_timeline
- get tweet list of community. rankingMode:[Recency, Relevance]
+ get the Connect tab (who to follow) timeline
:param path_query_id: (required)
:type path_query_id: str
@@ -1370,7 +2006,7 @@ def get_community_tweets_timeline(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_community_tweets_timeline_serialize(
+ _param = self._get_connect_tab_timeline_serialize(
path_query_id=path_query_id,
variables=variables,
features=features,
@@ -1381,7 +2017,7 @@ def get_community_tweets_timeline(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "CommunityTweetsTimelineResponse",
+ '200': "ConnectTabTimelineResponse",
}
response_data = self.api_client.call_api(
*_param,
@@ -1395,7 +2031,7 @@ def get_community_tweets_timeline(
@validate_call
- def get_community_tweets_timeline_with_http_info(
+ def get_connect_tab_timeline_with_http_info(
self,
path_query_id: StrictStr,
variables: StrictStr,
@@ -1412,10 +2048,10 @@ def get_community_tweets_timeline_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[CommunityTweetsTimelineResponse]:
- """get_community_tweets_timeline
+ ) -> ApiResponse[ConnectTabTimelineResponse]:
+ """get_connect_tab_timeline
- get tweet list of community. rankingMode:[Recency, Relevance]
+ get the Connect tab (who to follow) timeline
:param path_query_id: (required)
:type path_query_id: str
@@ -1445,7 +2081,7 @@ def get_community_tweets_timeline_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_community_tweets_timeline_serialize(
+ _param = self._get_connect_tab_timeline_serialize(
path_query_id=path_query_id,
variables=variables,
features=features,
@@ -1456,7 +2092,7 @@ def get_community_tweets_timeline_with_http_info(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "CommunityTweetsTimelineResponse",
+ '200': "ConnectTabTimelineResponse",
}
response_data = self.api_client.call_api(
*_param,
@@ -1470,7 +2106,7 @@ def get_community_tweets_timeline_with_http_info(
@validate_call
- def get_community_tweets_timeline_without_preload_content(
+ def get_connect_tab_timeline_without_preload_content(
self,
path_query_id: StrictStr,
variables: StrictStr,
@@ -1488,9 +2124,9 @@ def get_community_tweets_timeline_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """get_community_tweets_timeline
+ """get_connect_tab_timeline
- get tweet list of community. rankingMode:[Recency, Relevance]
+ get the Connect tab (who to follow) timeline
:param path_query_id: (required)
:type path_query_id: str
@@ -1520,7 +2156,7 @@ def get_community_tweets_timeline_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_community_tweets_timeline_serialize(
+ _param = self._get_connect_tab_timeline_serialize(
path_query_id=path_query_id,
variables=variables,
features=features,
@@ -1531,7 +2167,7 @@ def get_community_tweets_timeline_without_preload_content(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "CommunityTweetsTimelineResponse",
+ '200': "ConnectTabTimelineResponse",
}
response_data = self.api_client.call_api(
*_param,
@@ -1540,7 +2176,7 @@ def get_community_tweets_timeline_without_preload_content(
return response_data.response
- def _get_community_tweets_timeline_serialize(
+ def _get_connect_tab_timeline_serialize(
self,
path_query_id,
variables,
@@ -1620,7 +2256,7 @@ def _get_community_tweets_timeline_serialize(
return self.api_client.param_serialize(
method='GET',
- resource_path='/graphql/{pathQueryId}/CommunityTweetsTimeline',
+ resource_path='/graphql/{pathQueryId}/ConnectTabTimeline',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -1637,7 +2273,7 @@ def _get_community_tweets_timeline_serialize(
@validate_call
- def get_connect_tab_timeline(
+ def get_explore_page(
self,
path_query_id: StrictStr,
variables: StrictStr,
@@ -1654,10 +2290,10 @@ def get_connect_tab_timeline(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ConnectTabTimelineResponse:
- """get_connect_tab_timeline
+ ) -> ExplorePageResponse:
+ """get_explore_page
- get the Connect tab (who to follow) timeline
+ get the explore page (segmented timelines)
:param path_query_id: (required)
:type path_query_id: str
@@ -1687,7 +2323,7 @@ def get_connect_tab_timeline(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_connect_tab_timeline_serialize(
+ _param = self._get_explore_page_serialize(
path_query_id=path_query_id,
variables=variables,
features=features,
@@ -1698,7 +2334,7 @@ def get_connect_tab_timeline(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ConnectTabTimelineResponse",
+ '200': "ExplorePageResponse",
}
response_data = self.api_client.call_api(
*_param,
@@ -1712,7 +2348,7 @@ def get_connect_tab_timeline(
@validate_call
- def get_connect_tab_timeline_with_http_info(
+ def get_explore_page_with_http_info(
self,
path_query_id: StrictStr,
variables: StrictStr,
@@ -1729,10 +2365,10 @@ def get_connect_tab_timeline_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[ConnectTabTimelineResponse]:
- """get_connect_tab_timeline
+ ) -> ApiResponse[ExplorePageResponse]:
+ """get_explore_page
- get the Connect tab (who to follow) timeline
+ get the explore page (segmented timelines)
:param path_query_id: (required)
:type path_query_id: str
@@ -1762,7 +2398,7 @@ def get_connect_tab_timeline_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_connect_tab_timeline_serialize(
+ _param = self._get_explore_page_serialize(
path_query_id=path_query_id,
variables=variables,
features=features,
@@ -1773,7 +2409,7 @@ def get_connect_tab_timeline_with_http_info(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ConnectTabTimelineResponse",
+ '200': "ExplorePageResponse",
}
response_data = self.api_client.call_api(
*_param,
@@ -1787,7 +2423,7 @@ def get_connect_tab_timeline_with_http_info(
@validate_call
- def get_connect_tab_timeline_without_preload_content(
+ def get_explore_page_without_preload_content(
self,
path_query_id: StrictStr,
variables: StrictStr,
@@ -1805,9 +2441,9 @@ def get_connect_tab_timeline_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """get_connect_tab_timeline
+ """get_explore_page
- get the Connect tab (who to follow) timeline
+ get the explore page (segmented timelines)
:param path_query_id: (required)
:type path_query_id: str
@@ -1837,7 +2473,7 @@ def get_connect_tab_timeline_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_connect_tab_timeline_serialize(
+ _param = self._get_explore_page_serialize(
path_query_id=path_query_id,
variables=variables,
features=features,
@@ -1848,7 +2484,7 @@ def get_connect_tab_timeline_without_preload_content(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ConnectTabTimelineResponse",
+ '200': "ExplorePageResponse",
}
response_data = self.api_client.call_api(
*_param,
@@ -1857,7 +2493,7 @@ def get_connect_tab_timeline_without_preload_content(
return response_data.response
- def _get_connect_tab_timeline_serialize(
+ def _get_explore_page_serialize(
self,
path_query_id,
variables,
@@ -1937,7 +2573,7 @@ def _get_connect_tab_timeline_serialize(
return self.api_client.param_serialize(
method='GET',
- resource_path='/graphql/{pathQueryId}/ConnectTabTimeline',
+ resource_path='/graphql/{pathQueryId}/ExplorePage',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -1954,11 +2590,11 @@ def _get_connect_tab_timeline_serialize(
@validate_call
- def get_explore_page(
+ def get_explore_sidebar(
self,
path_query_id: StrictStr,
- variables: StrictStr,
features: StrictStr,
+ variables: StrictStr,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1971,17 +2607,17 @@ def get_explore_page(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ExplorePageResponse:
- """get_explore_page
+ ) -> ExploreSidebarResponse:
+ """get_explore_sidebar
- get the explore page (segmented timelines)
+ the explore sidebar (trends)
:param path_query_id: (required)
:type path_query_id: str
- :param variables: (required)
- :type variables: str
:param features: (required)
:type features: str
+ :param variables: (required)
+ :type variables: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -2004,10 +2640,10 @@ def get_explore_page(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_explore_page_serialize(
+ _param = self._get_explore_sidebar_serialize(
path_query_id=path_query_id,
- variables=variables,
features=features,
+ variables=variables,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -2015,7 +2651,7 @@ def get_explore_page(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ExplorePageResponse",
+ '200': "ExploreSidebarResponse",
}
response_data = self.api_client.call_api(
*_param,
@@ -2029,11 +2665,11 @@ def get_explore_page(
@validate_call
- def get_explore_page_with_http_info(
+ def get_explore_sidebar_with_http_info(
self,
path_query_id: StrictStr,
- variables: StrictStr,
features: StrictStr,
+ variables: StrictStr,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -2046,17 +2682,17 @@ def get_explore_page_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[ExplorePageResponse]:
- """get_explore_page
+ ) -> ApiResponse[ExploreSidebarResponse]:
+ """get_explore_sidebar
- get the explore page (segmented timelines)
+ the explore sidebar (trends)
:param path_query_id: (required)
:type path_query_id: str
- :param variables: (required)
- :type variables: str
:param features: (required)
:type features: str
+ :param variables: (required)
+ :type variables: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -2079,10 +2715,10 @@ def get_explore_page_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_explore_page_serialize(
+ _param = self._get_explore_sidebar_serialize(
path_query_id=path_query_id,
- variables=variables,
features=features,
+ variables=variables,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -2090,7 +2726,7 @@ def get_explore_page_with_http_info(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ExplorePageResponse",
+ '200': "ExploreSidebarResponse",
}
response_data = self.api_client.call_api(
*_param,
@@ -2104,11 +2740,11 @@ def get_explore_page_with_http_info(
@validate_call
- def get_explore_page_without_preload_content(
+ def get_explore_sidebar_without_preload_content(
self,
path_query_id: StrictStr,
- variables: StrictStr,
features: StrictStr,
+ variables: StrictStr,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -2122,16 +2758,16 @@ def get_explore_page_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """get_explore_page
+ """get_explore_sidebar
- get the explore page (segmented timelines)
+ the explore sidebar (trends)
:param path_query_id: (required)
:type path_query_id: str
- :param variables: (required)
- :type variables: str
:param features: (required)
:type features: str
+ :param variables: (required)
+ :type variables: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -2154,10 +2790,10 @@ def get_explore_page_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_explore_page_serialize(
+ _param = self._get_explore_sidebar_serialize(
path_query_id=path_query_id,
- variables=variables,
features=features,
+ variables=variables,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -2165,7 +2801,7 @@ def get_explore_page_without_preload_content(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ExplorePageResponse",
+ '200': "ExploreSidebarResponse",
}
response_data = self.api_client.call_api(
*_param,
@@ -2174,11 +2810,11 @@ def get_explore_page_without_preload_content(
return response_data.response
- def _get_explore_page_serialize(
+ def _get_explore_sidebar_serialize(
self,
path_query_id,
- variables,
features,
+ variables,
_request_auth,
_content_type,
_headers,
@@ -2203,14 +2839,14 @@ def _get_explore_page_serialize(
if path_query_id is not None:
_path_params['pathQueryId'] = path_query_id
# process the query parameters
- if variables is not None:
-
- _query_params.append(('variables', variables))
-
if features is not None:
_query_params.append(('features', features))
+ if variables is not None:
+
+ _query_params.append(('variables', variables))
+
# process the header parameters
# process the form parameters
# process the body parameter
@@ -2254,7 +2890,7 @@ def _get_explore_page_serialize(
return self.api_client.param_serialize(
method='GET',
- resource_path='/graphql/{pathQueryId}/ExplorePage',
+ resource_path='/graphql/{pathQueryId}/ExploreSidebar',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/api/user_list_api.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/api/user_list_api.py
index 243b2da..1fd65ca 100644
--- a/twitter_openapi_python_generated/twitter_openapi_python_generated/api/user_list_api.py
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/api/user_list_api.py
@@ -21,7 +21,9 @@
from twitter_openapi_python_generated.models.list_members_response import ListMembersResponse
from twitter_openapi_python_generated.models.list_recommended_users_response import ListRecommendedUsersResponse
from twitter_openapi_python_generated.models.list_response import ListResponse
+from twitter_openapi_python_generated.models.list_search_timeline_response import ListSearchTimelineResponse
from twitter_openapi_python_generated.models.list_subscribers_response import ListSubscribersResponse
+from twitter_openapi_python_generated.models.lists_management_page_timeline_response import ListsManagementPageTimelineResponse
from twitter_openapi_python_generated.models.tweet_favoriters_response import TweetFavoritersResponse
from twitter_openapi_python_generated.models.tweet_retweeters_response import TweetRetweetersResponse
from twitter_openapi_python_generated.models.user_tweets_response import UserTweetsResponse
@@ -362,11 +364,11 @@ def _get_blue_verified_followers_serialize(
@validate_call
- def get_favoriters(
+ def get_combined_lists(
self,
path_query_id: StrictStr,
- variables: StrictStr,
features: StrictStr,
+ variables: StrictStr,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -379,17 +381,17 @@ def get_favoriters(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> TweetFavoritersResponse:
- """get_favoriters
+ ) -> UserTweetsResponse:
+ """get_combined_lists
- get tweet favoriters
+ lists a user owns or follows
:param path_query_id: (required)
:type path_query_id: str
- :param variables: (required)
- :type variables: str
:param features: (required)
:type features: str
+ :param variables: (required)
+ :type variables: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -412,10 +414,10 @@ def get_favoriters(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_favoriters_serialize(
+ _param = self._get_combined_lists_serialize(
path_query_id=path_query_id,
- variables=variables,
features=features,
+ variables=variables,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -423,7 +425,7 @@ def get_favoriters(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "TweetFavoritersResponse",
+ '200': "UserTweetsResponse",
}
response_data = self.api_client.call_api(
*_param,
@@ -437,11 +439,11 @@ def get_favoriters(
@validate_call
- def get_favoriters_with_http_info(
+ def get_combined_lists_with_http_info(
self,
path_query_id: StrictStr,
- variables: StrictStr,
features: StrictStr,
+ variables: StrictStr,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -454,17 +456,17 @@ def get_favoriters_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[TweetFavoritersResponse]:
- """get_favoriters
+ ) -> ApiResponse[UserTweetsResponse]:
+ """get_combined_lists
- get tweet favoriters
+ lists a user owns or follows
:param path_query_id: (required)
:type path_query_id: str
- :param variables: (required)
- :type variables: str
:param features: (required)
:type features: str
+ :param variables: (required)
+ :type variables: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -487,10 +489,10 @@ def get_favoriters_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_favoriters_serialize(
+ _param = self._get_combined_lists_serialize(
path_query_id=path_query_id,
- variables=variables,
features=features,
+ variables=variables,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -498,7 +500,7 @@ def get_favoriters_with_http_info(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "TweetFavoritersResponse",
+ '200': "UserTweetsResponse",
}
response_data = self.api_client.call_api(
*_param,
@@ -512,11 +514,11 @@ def get_favoriters_with_http_info(
@validate_call
- def get_favoriters_without_preload_content(
+ def get_combined_lists_without_preload_content(
self,
path_query_id: StrictStr,
- variables: StrictStr,
features: StrictStr,
+ variables: StrictStr,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -530,16 +532,16 @@ def get_favoriters_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """get_favoriters
+ """get_combined_lists
- get tweet favoriters
+ lists a user owns or follows
:param path_query_id: (required)
:type path_query_id: str
- :param variables: (required)
- :type variables: str
:param features: (required)
:type features: str
+ :param variables: (required)
+ :type variables: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -562,10 +564,10 @@ def get_favoriters_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_favoriters_serialize(
+ _param = self._get_combined_lists_serialize(
path_query_id=path_query_id,
- variables=variables,
features=features,
+ variables=variables,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -573,7 +575,7 @@ def get_favoriters_without_preload_content(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "TweetFavoritersResponse",
+ '200': "UserTweetsResponse",
}
response_data = self.api_client.call_api(
*_param,
@@ -582,11 +584,11 @@ def get_favoriters_without_preload_content(
return response_data.response
- def _get_favoriters_serialize(
+ def _get_combined_lists_serialize(
self,
path_query_id,
- variables,
features,
+ variables,
_request_auth,
_content_type,
_headers,
@@ -611,14 +613,14 @@ def _get_favoriters_serialize(
if path_query_id is not None:
_path_params['pathQueryId'] = path_query_id
# process the query parameters
- if variables is not None:
-
- _query_params.append(('variables', variables))
-
if features is not None:
_query_params.append(('features', features))
+ if variables is not None:
+
+ _query_params.append(('variables', variables))
+
# process the header parameters
# process the form parameters
# process the body parameter
@@ -662,7 +664,7 @@ def _get_favoriters_serialize(
return self.api_client.param_serialize(
method='GET',
- resource_path='/graphql/{pathQueryId}/Favoriters',
+ resource_path='/graphql/{pathQueryId}/CombinedLists',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -679,7 +681,7 @@ def _get_favoriters_serialize(
@validate_call
- def get_followers(
+ def get_favoriters(
self,
path_query_id: StrictStr,
variables: StrictStr,
@@ -696,10 +698,10 @@ def get_followers(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> FollowResponse:
- """get_followers
+ ) -> TweetFavoritersResponse:
+ """get_favoriters
- get user list of followers
+ get tweet favoriters
:param path_query_id: (required)
:type path_query_id: str
@@ -729,7 +731,7 @@ def get_followers(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_followers_serialize(
+ _param = self._get_favoriters_serialize(
path_query_id=path_query_id,
variables=variables,
features=features,
@@ -740,7 +742,7 @@ def get_followers(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "FollowResponse",
+ '200': "TweetFavoritersResponse",
}
response_data = self.api_client.call_api(
*_param,
@@ -754,7 +756,7 @@ def get_followers(
@validate_call
- def get_followers_with_http_info(
+ def get_favoriters_with_http_info(
self,
path_query_id: StrictStr,
variables: StrictStr,
@@ -771,10 +773,10 @@ def get_followers_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[FollowResponse]:
- """get_followers
+ ) -> ApiResponse[TweetFavoritersResponse]:
+ """get_favoriters
- get user list of followers
+ get tweet favoriters
:param path_query_id: (required)
:type path_query_id: str
@@ -804,7 +806,7 @@ def get_followers_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_followers_serialize(
+ _param = self._get_favoriters_serialize(
path_query_id=path_query_id,
variables=variables,
features=features,
@@ -815,7 +817,7 @@ def get_followers_with_http_info(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "FollowResponse",
+ '200': "TweetFavoritersResponse",
}
response_data = self.api_client.call_api(
*_param,
@@ -829,7 +831,7 @@ def get_followers_with_http_info(
@validate_call
- def get_followers_without_preload_content(
+ def get_favoriters_without_preload_content(
self,
path_query_id: StrictStr,
variables: StrictStr,
@@ -847,9 +849,9 @@ def get_followers_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """get_followers
+ """get_favoriters
- get user list of followers
+ get tweet favoriters
:param path_query_id: (required)
:type path_query_id: str
@@ -879,7 +881,7 @@ def get_followers_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_followers_serialize(
+ _param = self._get_favoriters_serialize(
path_query_id=path_query_id,
variables=variables,
features=features,
@@ -890,7 +892,7 @@ def get_followers_without_preload_content(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "FollowResponse",
+ '200': "TweetFavoritersResponse",
}
response_data = self.api_client.call_api(
*_param,
@@ -899,7 +901,7 @@ def get_followers_without_preload_content(
return response_data.response
- def _get_followers_serialize(
+ def _get_favoriters_serialize(
self,
path_query_id,
variables,
@@ -979,7 +981,7 @@ def _get_followers_serialize(
return self.api_client.param_serialize(
method='GET',
- resource_path='/graphql/{pathQueryId}/Followers',
+ resource_path='/graphql/{pathQueryId}/Favoriters',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -996,7 +998,7 @@ def _get_followers_serialize(
@validate_call
- def get_followers_you_know(
+ def get_followers(
self,
path_query_id: StrictStr,
variables: StrictStr,
@@ -1014,9 +1016,9 @@ def get_followers_you_know(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> FollowResponse:
- """get_followers_you_know
+ """get_followers
- get followers you know
+ get user list of followers
:param path_query_id: (required)
:type path_query_id: str
@@ -1046,7 +1048,7 @@ def get_followers_you_know(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_followers_you_know_serialize(
+ _param = self._get_followers_serialize(
path_query_id=path_query_id,
variables=variables,
features=features,
@@ -1071,7 +1073,7 @@ def get_followers_you_know(
@validate_call
- def get_followers_you_know_with_http_info(
+ def get_followers_with_http_info(
self,
path_query_id: StrictStr,
variables: StrictStr,
@@ -1089,9 +1091,9 @@ def get_followers_you_know_with_http_info(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> ApiResponse[FollowResponse]:
- """get_followers_you_know
+ """get_followers
- get followers you know
+ get user list of followers
:param path_query_id: (required)
:type path_query_id: str
@@ -1121,7 +1123,7 @@ def get_followers_you_know_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_followers_you_know_serialize(
+ _param = self._get_followers_serialize(
path_query_id=path_query_id,
variables=variables,
features=features,
@@ -1146,7 +1148,7 @@ def get_followers_you_know_with_http_info(
@validate_call
- def get_followers_you_know_without_preload_content(
+ def get_followers_without_preload_content(
self,
path_query_id: StrictStr,
variables: StrictStr,
@@ -1164,9 +1166,9 @@ def get_followers_you_know_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """get_followers_you_know
+ """get_followers
- get followers you know
+ get user list of followers
:param path_query_id: (required)
:type path_query_id: str
@@ -1196,7 +1198,7 @@ def get_followers_you_know_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_followers_you_know_serialize(
+ _param = self._get_followers_serialize(
path_query_id=path_query_id,
variables=variables,
features=features,
@@ -1216,7 +1218,7 @@ def get_followers_you_know_without_preload_content(
return response_data.response
- def _get_followers_you_know_serialize(
+ def _get_followers_serialize(
self,
path_query_id,
variables,
@@ -1296,7 +1298,7 @@ def _get_followers_you_know_serialize(
return self.api_client.param_serialize(
method='GET',
- resource_path='/graphql/{pathQueryId}/FollowersYouKnow',
+ resource_path='/graphql/{pathQueryId}/Followers',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -1313,7 +1315,7 @@ def _get_followers_you_know_serialize(
@validate_call
- def get_following(
+ def get_followers_you_know(
self,
path_query_id: StrictStr,
variables: StrictStr,
@@ -1331,9 +1333,9 @@ def get_following(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> FollowResponse:
- """get_following
+ """get_followers_you_know
- get user list of following
+ get followers you know
:param path_query_id: (required)
:type path_query_id: str
@@ -1363,7 +1365,7 @@ def get_following(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_following_serialize(
+ _param = self._get_followers_you_know_serialize(
path_query_id=path_query_id,
variables=variables,
features=features,
@@ -1388,7 +1390,7 @@ def get_following(
@validate_call
- def get_following_with_http_info(
+ def get_followers_you_know_with_http_info(
self,
path_query_id: StrictStr,
variables: StrictStr,
@@ -1406,9 +1408,9 @@ def get_following_with_http_info(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> ApiResponse[FollowResponse]:
- """get_following
+ """get_followers_you_know
- get user list of following
+ get followers you know
:param path_query_id: (required)
:type path_query_id: str
@@ -1438,7 +1440,7 @@ def get_following_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_following_serialize(
+ _param = self._get_followers_you_know_serialize(
path_query_id=path_query_id,
variables=variables,
features=features,
@@ -1463,7 +1465,7 @@ def get_following_with_http_info(
@validate_call
- def get_following_without_preload_content(
+ def get_followers_you_know_without_preload_content(
self,
path_query_id: StrictStr,
variables: StrictStr,
@@ -1481,9 +1483,9 @@ def get_following_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """get_following
+ """get_followers_you_know
- get user list of following
+ get followers you know
:param path_query_id: (required)
:type path_query_id: str
@@ -1513,7 +1515,7 @@ def get_following_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_following_serialize(
+ _param = self._get_followers_you_know_serialize(
path_query_id=path_query_id,
variables=variables,
features=features,
@@ -1533,7 +1535,7 @@ def get_following_without_preload_content(
return response_data.response
- def _get_following_serialize(
+ def _get_followers_you_know_serialize(
self,
path_query_id,
variables,
@@ -1613,7 +1615,7 @@ def _get_following_serialize(
return self.api_client.param_serialize(
method='GET',
- resource_path='/graphql/{pathQueryId}/Following',
+ resource_path='/graphql/{pathQueryId}/FollowersYouKnow',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -1630,7 +1632,7 @@ def _get_following_serialize(
@validate_call
- def get_list_by_rest_id(
+ def get_following(
self,
path_query_id: StrictStr,
variables: StrictStr,
@@ -1647,10 +1649,10 @@ def get_list_by_rest_id(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ListResponse:
- """get_list_by_rest_id
+ ) -> FollowResponse:
+ """get_following
- get list
+ get user list of following
:param path_query_id: (required)
:type path_query_id: str
@@ -1680,7 +1682,7 @@ def get_list_by_rest_id(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_list_by_rest_id_serialize(
+ _param = self._get_following_serialize(
path_query_id=path_query_id,
variables=variables,
features=features,
@@ -1691,7 +1693,7 @@ def get_list_by_rest_id(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ListResponse",
+ '200': "FollowResponse",
}
response_data = self.api_client.call_api(
*_param,
@@ -1705,7 +1707,7 @@ def get_list_by_rest_id(
@validate_call
- def get_list_by_rest_id_with_http_info(
+ def get_following_with_http_info(
self,
path_query_id: StrictStr,
variables: StrictStr,
@@ -1722,10 +1724,10 @@ def get_list_by_rest_id_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[ListResponse]:
- """get_list_by_rest_id
+ ) -> ApiResponse[FollowResponse]:
+ """get_following
- get list
+ get user list of following
:param path_query_id: (required)
:type path_query_id: str
@@ -1755,7 +1757,7 @@ def get_list_by_rest_id_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_list_by_rest_id_serialize(
+ _param = self._get_following_serialize(
path_query_id=path_query_id,
variables=variables,
features=features,
@@ -1766,7 +1768,7 @@ def get_list_by_rest_id_with_http_info(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ListResponse",
+ '200': "FollowResponse",
}
response_data = self.api_client.call_api(
*_param,
@@ -1780,7 +1782,7 @@ def get_list_by_rest_id_with_http_info(
@validate_call
- def get_list_by_rest_id_without_preload_content(
+ def get_following_without_preload_content(
self,
path_query_id: StrictStr,
variables: StrictStr,
@@ -1798,9 +1800,9 @@ def get_list_by_rest_id_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """get_list_by_rest_id
+ """get_following
- get list
+ get user list of following
:param path_query_id: (required)
:type path_query_id: str
@@ -1830,7 +1832,7 @@ def get_list_by_rest_id_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_list_by_rest_id_serialize(
+ _param = self._get_following_serialize(
path_query_id=path_query_id,
variables=variables,
features=features,
@@ -1841,7 +1843,7 @@ def get_list_by_rest_id_without_preload_content(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ListResponse",
+ '200': "FollowResponse",
}
response_data = self.api_client.call_api(
*_param,
@@ -1850,7 +1852,7 @@ def get_list_by_rest_id_without_preload_content(
return response_data.response
- def _get_list_by_rest_id_serialize(
+ def _get_following_serialize(
self,
path_query_id,
variables,
@@ -1930,7 +1932,7 @@ def _get_list_by_rest_id_serialize(
return self.api_client.param_serialize(
method='GET',
- resource_path='/graphql/{pathQueryId}/ListByRestId',
+ resource_path='/graphql/{pathQueryId}/Following',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -1947,7 +1949,7 @@ def _get_list_by_rest_id_serialize(
@validate_call
- def get_list_creation_recommended_users(
+ def get_list_by_rest_id(
self,
path_query_id: StrictStr,
variables: StrictStr,
@@ -1964,10 +1966,10 @@ def get_list_creation_recommended_users(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ListRecommendedUsersResponse:
- """get_list_creation_recommended_users
+ ) -> ListResponse:
+ """get_list_by_rest_id
- get recommended members while creating a list
+ get list
:param path_query_id: (required)
:type path_query_id: str
@@ -1997,7 +1999,7 @@ def get_list_creation_recommended_users(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_list_creation_recommended_users_serialize(
+ _param = self._get_list_by_rest_id_serialize(
path_query_id=path_query_id,
variables=variables,
features=features,
@@ -2008,7 +2010,7 @@ def get_list_creation_recommended_users(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ListRecommendedUsersResponse",
+ '200': "ListResponse",
}
response_data = self.api_client.call_api(
*_param,
@@ -2022,7 +2024,7 @@ def get_list_creation_recommended_users(
@validate_call
- def get_list_creation_recommended_users_with_http_info(
+ def get_list_by_rest_id_with_http_info(
self,
path_query_id: StrictStr,
variables: StrictStr,
@@ -2039,10 +2041,10 @@ def get_list_creation_recommended_users_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[ListRecommendedUsersResponse]:
- """get_list_creation_recommended_users
+ ) -> ApiResponse[ListResponse]:
+ """get_list_by_rest_id
- get recommended members while creating a list
+ get list
:param path_query_id: (required)
:type path_query_id: str
@@ -2072,7 +2074,7 @@ def get_list_creation_recommended_users_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_list_creation_recommended_users_serialize(
+ _param = self._get_list_by_rest_id_serialize(
path_query_id=path_query_id,
variables=variables,
features=features,
@@ -2083,7 +2085,7 @@ def get_list_creation_recommended_users_with_http_info(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ListRecommendedUsersResponse",
+ '200': "ListResponse",
}
response_data = self.api_client.call_api(
*_param,
@@ -2097,7 +2099,7 @@ def get_list_creation_recommended_users_with_http_info(
@validate_call
- def get_list_creation_recommended_users_without_preload_content(
+ def get_list_by_rest_id_without_preload_content(
self,
path_query_id: StrictStr,
variables: StrictStr,
@@ -2115,9 +2117,9 @@ def get_list_creation_recommended_users_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """get_list_creation_recommended_users
+ """get_list_by_rest_id
- get recommended members while creating a list
+ get list
:param path_query_id: (required)
:type path_query_id: str
@@ -2147,7 +2149,7 @@ def get_list_creation_recommended_users_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_list_creation_recommended_users_serialize(
+ _param = self._get_list_by_rest_id_serialize(
path_query_id=path_query_id,
variables=variables,
features=features,
@@ -2158,7 +2160,7 @@ def get_list_creation_recommended_users_without_preload_content(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ListRecommendedUsersResponse",
+ '200': "ListResponse",
}
response_data = self.api_client.call_api(
*_param,
@@ -2167,7 +2169,7 @@ def get_list_creation_recommended_users_without_preload_content(
return response_data.response
- def _get_list_creation_recommended_users_serialize(
+ def _get_list_by_rest_id_serialize(
self,
path_query_id,
variables,
@@ -2247,7 +2249,7 @@ def _get_list_creation_recommended_users_serialize(
return self.api_client.param_serialize(
method='GET',
- resource_path='/graphql/{pathQueryId}/ListCreationRecommendedUsers',
+ resource_path='/graphql/{pathQueryId}/ListByRestId',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -2264,7 +2266,7 @@ def _get_list_creation_recommended_users_serialize(
@validate_call
- def get_list_edit_recommended_users(
+ def get_list_creation_recommended_users(
self,
path_query_id: StrictStr,
variables: StrictStr,
@@ -2282,9 +2284,9 @@ def get_list_edit_recommended_users(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> ListRecommendedUsersResponse:
- """get_list_edit_recommended_users
+ """get_list_creation_recommended_users
- get recommended members while editing a list
+ get recommended members while creating a list
:param path_query_id: (required)
:type path_query_id: str
@@ -2314,7 +2316,7 @@ def get_list_edit_recommended_users(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_list_edit_recommended_users_serialize(
+ _param = self._get_list_creation_recommended_users_serialize(
path_query_id=path_query_id,
variables=variables,
features=features,
@@ -2339,7 +2341,7 @@ def get_list_edit_recommended_users(
@validate_call
- def get_list_edit_recommended_users_with_http_info(
+ def get_list_creation_recommended_users_with_http_info(
self,
path_query_id: StrictStr,
variables: StrictStr,
@@ -2357,9 +2359,9 @@ def get_list_edit_recommended_users_with_http_info(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> ApiResponse[ListRecommendedUsersResponse]:
- """get_list_edit_recommended_users
+ """get_list_creation_recommended_users
- get recommended members while editing a list
+ get recommended members while creating a list
:param path_query_id: (required)
:type path_query_id: str
@@ -2389,7 +2391,7 @@ def get_list_edit_recommended_users_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_list_edit_recommended_users_serialize(
+ _param = self._get_list_creation_recommended_users_serialize(
path_query_id=path_query_id,
variables=variables,
features=features,
@@ -2414,7 +2416,7 @@ def get_list_edit_recommended_users_with_http_info(
@validate_call
- def get_list_edit_recommended_users_without_preload_content(
+ def get_list_creation_recommended_users_without_preload_content(
self,
path_query_id: StrictStr,
variables: StrictStr,
@@ -2432,9 +2434,9 @@ def get_list_edit_recommended_users_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """get_list_edit_recommended_users
+ """get_list_creation_recommended_users
- get recommended members while editing a list
+ get recommended members while creating a list
:param path_query_id: (required)
:type path_query_id: str
@@ -2464,7 +2466,7 @@ def get_list_edit_recommended_users_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_list_edit_recommended_users_serialize(
+ _param = self._get_list_creation_recommended_users_serialize(
path_query_id=path_query_id,
variables=variables,
features=features,
@@ -2484,7 +2486,7 @@ def get_list_edit_recommended_users_without_preload_content(
return response_data.response
- def _get_list_edit_recommended_users_serialize(
+ def _get_list_creation_recommended_users_serialize(
self,
path_query_id,
variables,
@@ -2564,7 +2566,7 @@ def _get_list_edit_recommended_users_serialize(
return self.api_client.param_serialize(
method='GET',
- resource_path='/graphql/{pathQueryId}/ListEditRecommendedUsers',
+ resource_path='/graphql/{pathQueryId}/ListCreationRecommendedUsers',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -2581,7 +2583,7 @@ def _get_list_edit_recommended_users_serialize(
@validate_call
- def get_list_members(
+ def get_list_edit_recommended_users(
self,
path_query_id: StrictStr,
variables: StrictStr,
@@ -2598,10 +2600,10 @@ def get_list_members(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ListMembersResponse:
- """get_list_members
+ ) -> ListRecommendedUsersResponse:
+ """get_list_edit_recommended_users
- get list members
+ get recommended members while editing a list
:param path_query_id: (required)
:type path_query_id: str
@@ -2631,7 +2633,7 @@ def get_list_members(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_list_members_serialize(
+ _param = self._get_list_edit_recommended_users_serialize(
path_query_id=path_query_id,
variables=variables,
features=features,
@@ -2642,7 +2644,7 @@ def get_list_members(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ListMembersResponse",
+ '200': "ListRecommendedUsersResponse",
}
response_data = self.api_client.call_api(
*_param,
@@ -2656,7 +2658,7 @@ def get_list_members(
@validate_call
- def get_list_members_with_http_info(
+ def get_list_edit_recommended_users_with_http_info(
self,
path_query_id: StrictStr,
variables: StrictStr,
@@ -2673,10 +2675,10 @@ def get_list_members_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[ListMembersResponse]:
- """get_list_members
+ ) -> ApiResponse[ListRecommendedUsersResponse]:
+ """get_list_edit_recommended_users
- get list members
+ get recommended members while editing a list
:param path_query_id: (required)
:type path_query_id: str
@@ -2706,7 +2708,7 @@ def get_list_members_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_list_members_serialize(
+ _param = self._get_list_edit_recommended_users_serialize(
path_query_id=path_query_id,
variables=variables,
features=features,
@@ -2717,7 +2719,7 @@ def get_list_members_with_http_info(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ListMembersResponse",
+ '200': "ListRecommendedUsersResponse",
}
response_data = self.api_client.call_api(
*_param,
@@ -2731,7 +2733,7 @@ def get_list_members_with_http_info(
@validate_call
- def get_list_members_without_preload_content(
+ def get_list_edit_recommended_users_without_preload_content(
self,
path_query_id: StrictStr,
variables: StrictStr,
@@ -2749,9 +2751,9 @@ def get_list_members_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """get_list_members
+ """get_list_edit_recommended_users
- get list members
+ get recommended members while editing a list
:param path_query_id: (required)
:type path_query_id: str
@@ -2781,7 +2783,7 @@ def get_list_members_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_list_members_serialize(
+ _param = self._get_list_edit_recommended_users_serialize(
path_query_id=path_query_id,
variables=variables,
features=features,
@@ -2792,7 +2794,7 @@ def get_list_members_without_preload_content(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ListMembersResponse",
+ '200': "ListRecommendedUsersResponse",
}
response_data = self.api_client.call_api(
*_param,
@@ -2801,7 +2803,7 @@ def get_list_members_without_preload_content(
return response_data.response
- def _get_list_members_serialize(
+ def _get_list_edit_recommended_users_serialize(
self,
path_query_id,
variables,
@@ -2881,7 +2883,7 @@ def _get_list_members_serialize(
return self.api_client.param_serialize(
method='GET',
- resource_path='/graphql/{pathQueryId}/ListMembers',
+ resource_path='/graphql/{pathQueryId}/ListEditRecommendedUsers',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -2898,7 +2900,7 @@ def _get_list_members_serialize(
@validate_call
- def get_list_ownerships(
+ def get_list_members(
self,
path_query_id: StrictStr,
variables: StrictStr,
@@ -2915,10 +2917,10 @@ def get_list_ownerships(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> UserTweetsResponse:
- """get_list_ownerships
+ ) -> ListMembersResponse:
+ """get_list_members
- get the lists a user owns (add/remove from Lists dialog)
+ get list members
:param path_query_id: (required)
:type path_query_id: str
@@ -2948,7 +2950,7 @@ def get_list_ownerships(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_list_ownerships_serialize(
+ _param = self._get_list_members_serialize(
path_query_id=path_query_id,
variables=variables,
features=features,
@@ -2959,7 +2961,7 @@ def get_list_ownerships(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "UserTweetsResponse",
+ '200': "ListMembersResponse",
}
response_data = self.api_client.call_api(
*_param,
@@ -2973,7 +2975,7 @@ def get_list_ownerships(
@validate_call
- def get_list_ownerships_with_http_info(
+ def get_list_members_with_http_info(
self,
path_query_id: StrictStr,
variables: StrictStr,
@@ -2990,10 +2992,10 @@ def get_list_ownerships_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[UserTweetsResponse]:
- """get_list_ownerships
+ ) -> ApiResponse[ListMembersResponse]:
+ """get_list_members
- get the lists a user owns (add/remove from Lists dialog)
+ get list members
:param path_query_id: (required)
:type path_query_id: str
@@ -3023,7 +3025,7 @@ def get_list_ownerships_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_list_ownerships_serialize(
+ _param = self._get_list_members_serialize(
path_query_id=path_query_id,
variables=variables,
features=features,
@@ -3034,7 +3036,7 @@ def get_list_ownerships_with_http_info(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "UserTweetsResponse",
+ '200': "ListMembersResponse",
}
response_data = self.api_client.call_api(
*_param,
@@ -3048,7 +3050,7 @@ def get_list_ownerships_with_http_info(
@validate_call
- def get_list_ownerships_without_preload_content(
+ def get_list_members_without_preload_content(
self,
path_query_id: StrictStr,
variables: StrictStr,
@@ -3066,9 +3068,9 @@ def get_list_ownerships_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """get_list_ownerships
+ """get_list_members
- get the lists a user owns (add/remove from Lists dialog)
+ get list members
:param path_query_id: (required)
:type path_query_id: str
@@ -3098,7 +3100,7 @@ def get_list_ownerships_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_list_ownerships_serialize(
+ _param = self._get_list_members_serialize(
path_query_id=path_query_id,
variables=variables,
features=features,
@@ -3109,7 +3111,7 @@ def get_list_ownerships_without_preload_content(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "UserTweetsResponse",
+ '200': "ListMembersResponse",
}
response_data = self.api_client.call_api(
*_param,
@@ -3118,7 +3120,7 @@ def get_list_ownerships_without_preload_content(
return response_data.response
- def _get_list_ownerships_serialize(
+ def _get_list_members_serialize(
self,
path_query_id,
variables,
@@ -3198,7 +3200,7 @@ def _get_list_ownerships_serialize(
return self.api_client.param_serialize(
method='GET',
- resource_path='/graphql/{pathQueryId}/ListOwnerships',
+ resource_path='/graphql/{pathQueryId}/ListMembers',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -3215,7 +3217,7 @@ def _get_list_ownerships_serialize(
@validate_call
- def get_list_subscribers(
+ def get_list_ownerships(
self,
path_query_id: StrictStr,
variables: StrictStr,
@@ -3232,10 +3234,10 @@ def get_list_subscribers(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ListSubscribersResponse:
- """get_list_subscribers
+ ) -> UserTweetsResponse:
+ """get_list_ownerships
- get list subscribers (followers)
+ get the lists a user owns (add/remove from Lists dialog)
:param path_query_id: (required)
:type path_query_id: str
@@ -3265,7 +3267,7 @@ def get_list_subscribers(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_list_subscribers_serialize(
+ _param = self._get_list_ownerships_serialize(
path_query_id=path_query_id,
variables=variables,
features=features,
@@ -3276,7 +3278,7 @@ def get_list_subscribers(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ListSubscribersResponse",
+ '200': "UserTweetsResponse",
}
response_data = self.api_client.call_api(
*_param,
@@ -3290,7 +3292,7 @@ def get_list_subscribers(
@validate_call
- def get_list_subscribers_with_http_info(
+ def get_list_ownerships_with_http_info(
self,
path_query_id: StrictStr,
variables: StrictStr,
@@ -3307,10 +3309,10 @@ def get_list_subscribers_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[ListSubscribersResponse]:
- """get_list_subscribers
+ ) -> ApiResponse[UserTweetsResponse]:
+ """get_list_ownerships
- get list subscribers (followers)
+ get the lists a user owns (add/remove from Lists dialog)
:param path_query_id: (required)
:type path_query_id: str
@@ -3340,7 +3342,7 @@ def get_list_subscribers_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_list_subscribers_serialize(
+ _param = self._get_list_ownerships_serialize(
path_query_id=path_query_id,
variables=variables,
features=features,
@@ -3351,7 +3353,7 @@ def get_list_subscribers_with_http_info(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ListSubscribersResponse",
+ '200': "UserTweetsResponse",
}
response_data = self.api_client.call_api(
*_param,
@@ -3365,7 +3367,7 @@ def get_list_subscribers_with_http_info(
@validate_call
- def get_list_subscribers_without_preload_content(
+ def get_list_ownerships_without_preload_content(
self,
path_query_id: StrictStr,
variables: StrictStr,
@@ -3383,9 +3385,9 @@ def get_list_subscribers_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """get_list_subscribers
+ """get_list_ownerships
- get list subscribers (followers)
+ get the lists a user owns (add/remove from Lists dialog)
:param path_query_id: (required)
:type path_query_id: str
@@ -3415,7 +3417,7 @@ def get_list_subscribers_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_list_subscribers_serialize(
+ _param = self._get_list_ownerships_serialize(
path_query_id=path_query_id,
variables=variables,
features=features,
@@ -3426,7 +3428,7 @@ def get_list_subscribers_without_preload_content(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ListSubscribersResponse",
+ '200': "UserTweetsResponse",
}
response_data = self.api_client.call_api(
*_param,
@@ -3435,7 +3437,7 @@ def get_list_subscribers_without_preload_content(
return response_data.response
- def _get_list_subscribers_serialize(
+ def _get_list_ownerships_serialize(
self,
path_query_id,
variables,
@@ -3515,7 +3517,958 @@ def _get_list_subscribers_serialize(
return self.api_client.param_serialize(
method='GET',
- resource_path='/graphql/{pathQueryId}/ListSubscribers',
+ resource_path='/graphql/{pathQueryId}/ListOwnerships',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_list_search_timeline(
+ self,
+ path_query_id: StrictStr,
+ features: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ListSearchTimelineResponse:
+ """get_list_search_timeline
+
+ search lists
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param features: (required)
+ :type features: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_list_search_timeline_serialize(
+ path_query_id=path_query_id,
+ features=features,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ListSearchTimelineResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_list_search_timeline_with_http_info(
+ self,
+ path_query_id: StrictStr,
+ features: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[ListSearchTimelineResponse]:
+ """get_list_search_timeline
+
+ search lists
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param features: (required)
+ :type features: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_list_search_timeline_serialize(
+ path_query_id=path_query_id,
+ features=features,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ListSearchTimelineResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_list_search_timeline_without_preload_content(
+ self,
+ path_query_id: StrictStr,
+ features: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """get_list_search_timeline
+
+ search lists
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param features: (required)
+ :type features: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_list_search_timeline_serialize(
+ path_query_id=path_query_id,
+ features=features,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ListSearchTimelineResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_list_search_timeline_serialize(
+ self,
+ path_query_id,
+ features,
+ variables,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if path_query_id is not None:
+ _path_params['pathQueryId'] = path_query_id
+ # process the query parameters
+ if features is not None:
+
+ _query_params.append(('features', features))
+
+ if variables is not None:
+
+ _query_params.append(('variables', variables))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'Accept',
+ 'ClientLanguage',
+ 'Priority',
+ 'Referer',
+ 'SecFetchDest',
+ 'SecChUaPlatform',
+ 'SecFetchMode',
+ 'CsrfToken',
+ 'ClientUuid',
+ 'BearerAuth',
+ 'GuestToken',
+ 'SecChUa',
+ 'CookieGt0',
+ 'ClientTransactionId',
+ 'ActiveUser',
+ 'CookieCt0',
+ 'UserAgent',
+ 'AcceptLanguage',
+ 'SecFetchSite',
+ 'AuthType',
+ 'CookieAuthToken',
+ 'SecChUaMobile',
+ 'AcceptEncoding'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/graphql/{pathQueryId}/ListSearchTimeline',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_list_subscribers(
+ self,
+ path_query_id: StrictStr,
+ variables: StrictStr,
+ features: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ListSubscribersResponse:
+ """get_list_subscribers
+
+ get list subscribers (followers)
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param variables: (required)
+ :type variables: str
+ :param features: (required)
+ :type features: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_list_subscribers_serialize(
+ path_query_id=path_query_id,
+ variables=variables,
+ features=features,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ListSubscribersResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_list_subscribers_with_http_info(
+ self,
+ path_query_id: StrictStr,
+ variables: StrictStr,
+ features: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[ListSubscribersResponse]:
+ """get_list_subscribers
+
+ get list subscribers (followers)
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param variables: (required)
+ :type variables: str
+ :param features: (required)
+ :type features: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_list_subscribers_serialize(
+ path_query_id=path_query_id,
+ variables=variables,
+ features=features,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ListSubscribersResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_list_subscribers_without_preload_content(
+ self,
+ path_query_id: StrictStr,
+ variables: StrictStr,
+ features: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """get_list_subscribers
+
+ get list subscribers (followers)
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param variables: (required)
+ :type variables: str
+ :param features: (required)
+ :type features: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_list_subscribers_serialize(
+ path_query_id=path_query_id,
+ variables=variables,
+ features=features,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ListSubscribersResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_list_subscribers_serialize(
+ self,
+ path_query_id,
+ variables,
+ features,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if path_query_id is not None:
+ _path_params['pathQueryId'] = path_query_id
+ # process the query parameters
+ if variables is not None:
+
+ _query_params.append(('variables', variables))
+
+ if features is not None:
+
+ _query_params.append(('features', features))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'Accept',
+ 'ClientLanguage',
+ 'Priority',
+ 'Referer',
+ 'SecFetchDest',
+ 'SecChUaPlatform',
+ 'SecFetchMode',
+ 'CsrfToken',
+ 'ClientUuid',
+ 'BearerAuth',
+ 'GuestToken',
+ 'SecChUa',
+ 'CookieGt0',
+ 'ClientTransactionId',
+ 'ActiveUser',
+ 'CookieCt0',
+ 'UserAgent',
+ 'AcceptLanguage',
+ 'SecFetchSite',
+ 'AuthType',
+ 'CookieAuthToken',
+ 'SecChUaMobile',
+ 'AcceptEncoding'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/graphql/{pathQueryId}/ListSubscribers',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_lists_management_page_timeline(
+ self,
+ path_query_id: StrictStr,
+ features: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ListsManagementPageTimelineResponse:
+ """get_lists_management_page_timeline
+
+ the account's lists management page
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param features: (required)
+ :type features: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_lists_management_page_timeline_serialize(
+ path_query_id=path_query_id,
+ features=features,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ListsManagementPageTimelineResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_lists_management_page_timeline_with_http_info(
+ self,
+ path_query_id: StrictStr,
+ features: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[ListsManagementPageTimelineResponse]:
+ """get_lists_management_page_timeline
+
+ the account's lists management page
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param features: (required)
+ :type features: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_lists_management_page_timeline_serialize(
+ path_query_id=path_query_id,
+ features=features,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ListsManagementPageTimelineResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_lists_management_page_timeline_without_preload_content(
+ self,
+ path_query_id: StrictStr,
+ features: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """get_lists_management_page_timeline
+
+ the account's lists management page
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param features: (required)
+ :type features: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_lists_management_page_timeline_serialize(
+ path_query_id=path_query_id,
+ features=features,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ListsManagementPageTimelineResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_lists_management_page_timeline_serialize(
+ self,
+ path_query_id,
+ features,
+ variables,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if path_query_id is not None:
+ _path_params['pathQueryId'] = path_query_id
+ # process the query parameters
+ if features is not None:
+
+ _query_params.append(('features', features))
+
+ if variables is not None:
+
+ _query_params.append(('variables', variables))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'Accept',
+ 'ClientLanguage',
+ 'Priority',
+ 'Referer',
+ 'SecFetchDest',
+ 'SecChUaPlatform',
+ 'SecFetchMode',
+ 'CsrfToken',
+ 'ClientUuid',
+ 'BearerAuth',
+ 'GuestToken',
+ 'SecChUa',
+ 'CookieGt0',
+ 'ClientTransactionId',
+ 'ActiveUser',
+ 'CookieCt0',
+ 'UserAgent',
+ 'AcceptLanguage',
+ 'SecFetchSite',
+ 'AuthType',
+ 'CookieAuthToken',
+ 'SecChUaMobile',
+ 'AcceptEncoding'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/graphql/{pathQueryId}/ListsManagementPageTimeline',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/api/users_api.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/api/users_api.py
index a3b0c9f..06c8e0a 100644
--- a/twitter_openapi_python_generated/twitter_openapi_python_generated/api/users_api.py
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/api/users_api.py
@@ -18,6 +18,7 @@
from pydantic import StrictStr
from twitter_openapi_python_generated.models.users_response import UsersResponse
+from twitter_openapi_python_generated.models.users_verified_avatars_response import UsersVerifiedAvatarsResponse
from twitter_openapi_python_generated.api_client import ApiClient, RequestSerialized
from twitter_openapi_python_generated.api_response import ApiResponse
@@ -352,3 +353,320 @@ def _get_users_by_rest_ids_serialize(
)
+
+
+ @validate_call
+ def get_users_verified_avatars(
+ self,
+ path_query_id: StrictStr,
+ features: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> UsersVerifiedAvatarsResponse:
+ """get_users_verified_avatars
+
+ verified-avatar users by ids
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param features: (required)
+ :type features: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_users_verified_avatars_serialize(
+ path_query_id=path_query_id,
+ features=features,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "UsersVerifiedAvatarsResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_users_verified_avatars_with_http_info(
+ self,
+ path_query_id: StrictStr,
+ features: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[UsersVerifiedAvatarsResponse]:
+ """get_users_verified_avatars
+
+ verified-avatar users by ids
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param features: (required)
+ :type features: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_users_verified_avatars_serialize(
+ path_query_id=path_query_id,
+ features=features,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "UsersVerifiedAvatarsResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_users_verified_avatars_without_preload_content(
+ self,
+ path_query_id: StrictStr,
+ features: StrictStr,
+ variables: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """get_users_verified_avatars
+
+ verified-avatar users by ids
+
+ :param path_query_id: (required)
+ :type path_query_id: str
+ :param features: (required)
+ :type features: str
+ :param variables: (required)
+ :type variables: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_users_verified_avatars_serialize(
+ path_query_id=path_query_id,
+ features=features,
+ variables=variables,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "UsersVerifiedAvatarsResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_users_verified_avatars_serialize(
+ self,
+ path_query_id,
+ features,
+ variables,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if path_query_id is not None:
+ _path_params['pathQueryId'] = path_query_id
+ # process the query parameters
+ if features is not None:
+
+ _query_params.append(('features', features))
+
+ if variables is not None:
+
+ _query_params.append(('variables', variables))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'Accept',
+ 'ClientLanguage',
+ 'Priority',
+ 'Referer',
+ 'SecFetchDest',
+ 'SecChUaPlatform',
+ 'SecFetchMode',
+ 'CsrfToken',
+ 'ClientUuid',
+ 'BearerAuth',
+ 'GuestToken',
+ 'SecChUa',
+ 'CookieGt0',
+ 'ClientTransactionId',
+ 'ActiveUser',
+ 'CookieCt0',
+ 'UserAgent',
+ 'AcceptLanguage',
+ 'SecFetchSite',
+ 'AuthType',
+ 'CookieAuthToken',
+ 'SecChUaMobile',
+ 'AcceptEncoding'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/graphql/{pathQueryId}/UsersVerifiedAvatars',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/api_client.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/api_client.py
index 3377be7..c8899f9 100644
--- a/twitter_openapi_python_generated/twitter_openapi_python_generated/api_client.py
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/api_client.py
@@ -92,7 +92,7 @@ def __init__(
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
- self.user_agent = 'OpenAPI-Generator/0.1.1/python'
+ self.user_agent = 'OpenAPI-Generator/0.1.2/python'
self.client_side_validation = configuration.client_side_validation
def __enter__(self):
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/configuration.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/configuration.py
index e58e2e8..811b366 100644
--- a/twitter_openapi_python_generated/twitter_openapi_python_generated/configuration.py
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/configuration.py
@@ -802,7 +802,7 @@ def to_debug_report(self) -> str:
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: 0.0.1\n"\
- "SDK Package Version: 0.1.1".\
+ "SDK Package Version: 0.1.2".\
format(env=sys.platform, pyversion=sys.version)
def get_host_settings(self) -> List[HostSetting]:
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/__init__.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/__init__.py
index 0927070..52e7d26 100644
--- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/__init__.py
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/__init__.py
@@ -34,15 +34,38 @@
from twitter_openapi_python_generated.models.article_preview import ArticlePreview
from twitter_openapi_python_generated.models.article_result import ArticleResult
from twitter_openapi_python_generated.models.article_results import ArticleResults
+from twitter_openapi_python_generated.models.authenticate_periscope_response import AuthenticatePeriscopeResponse
+from twitter_openapi_python_generated.models.authenticate_periscope_response_data import AuthenticatePeriscopeResponseData
from twitter_openapi_python_generated.models.author_community_relationship import AuthorCommunityRelationship
from twitter_openapi_python_generated.models.badge_counts import BadgeCounts
+from twitter_openapi_python_generated.models.birdwatch_alias_self_select_status import BirdwatchAliasSelfSelectStatus
from twitter_openapi_python_generated.models.birdwatch_entity import BirdwatchEntity
from twitter_openapi_python_generated.models.birdwatch_entity_ref import BirdwatchEntityRef
+from twitter_openapi_python_generated.models.birdwatch_fetch_alias_self_select_status_response import BirdwatchFetchAliasSelfSelectStatusResponse
+from twitter_openapi_python_generated.models.birdwatch_fetch_alias_self_select_status_response_data import BirdwatchFetchAliasSelfSelectStatusResponseData
+from twitter_openapi_python_generated.models.birdwatch_fetch_authenticated_user_profile_response import BirdwatchFetchAuthenticatedUserProfileResponse
+from twitter_openapi_python_generated.models.birdwatch_fetch_authenticated_user_profile_response_data import BirdwatchFetchAuthenticatedUserProfileResponseData
+from twitter_openapi_python_generated.models.birdwatch_fetch_birdwatch_profile_response import BirdwatchFetchBirdwatchProfileResponse
+from twitter_openapi_python_generated.models.birdwatch_fetch_birdwatch_profile_response_data import BirdwatchFetchBirdwatchProfileResponseData
+from twitter_openapi_python_generated.models.birdwatch_fetch_global_timeline_response import BirdwatchFetchGlobalTimelineResponse
+from twitter_openapi_python_generated.models.birdwatch_fetch_global_timeline_response_data import BirdwatchFetchGlobalTimelineResponseData
+from twitter_openapi_python_generated.models.birdwatch_fetch_public_data_response import BirdwatchFetchPublicDataResponse
+from twitter_openapi_python_generated.models.birdwatch_fetch_public_data_response_data import BirdwatchFetchPublicDataResponseData
+from twitter_openapi_python_generated.models.birdwatch_home_page import BirdwatchHomePage
+from twitter_openapi_python_generated.models.birdwatch_home_page_body import BirdwatchHomePageBody
+from twitter_openapi_python_generated.models.birdwatch_home_timeline import BirdwatchHomeTimeline
from twitter_openapi_python_generated.models.birdwatch_pivot import BirdwatchPivot
from twitter_openapi_python_generated.models.birdwatch_pivot_call_to_action import BirdwatchPivotCallToAction
from twitter_openapi_python_generated.models.birdwatch_pivot_footer import BirdwatchPivotFooter
from twitter_openapi_python_generated.models.birdwatch_pivot_note import BirdwatchPivotNote
from twitter_openapi_python_generated.models.birdwatch_pivot_subtitle import BirdwatchPivotSubtitle
+from twitter_openapi_python_generated.models.birdwatch_profile import BirdwatchProfile
+from twitter_openapi_python_generated.models.birdwatch_public_data_file import BirdwatchPublicDataFile
+from twitter_openapi_python_generated.models.birdwatch_public_data_file_bundle import BirdwatchPublicDataFileBundle
+from twitter_openapi_python_generated.models.birdwatch_viewer import BirdwatchViewer
+from twitter_openapi_python_generated.models.bookmark_search import BookmarkSearch
+from twitter_openapi_python_generated.models.bookmark_search_timeline_response import BookmarkSearchTimelineResponse
+from twitter_openapi_python_generated.models.bookmark_search_timeline_response_data import BookmarkSearchTimelineResponseData
from twitter_openapi_python_generated.models.bookmarks_response import BookmarksResponse
from twitter_openapi_python_generated.models.bookmarks_response_data import BookmarksResponseData
from twitter_openapi_python_generated.models.bookmarks_timeline import BookmarksTimeline
@@ -53,6 +76,11 @@
from twitter_openapi_python_generated.models.client_event_info import ClientEventInfo
from twitter_openapi_python_generated.models.client_event_info_details import ClientEventInfoDetails
from twitter_openapi_python_generated.models.communities_actions import CommunitiesActions
+from twitter_openapi_python_generated.models.communities_fetch_one_query_response import CommunitiesFetchOneQueryResponse
+from twitter_openapi_python_generated.models.communities_fetch_one_query_response_data import CommunitiesFetchOneQueryResponseData
+from twitter_openapi_python_generated.models.communities_search_query_response import CommunitiesSearchQueryResponse
+from twitter_openapi_python_generated.models.communities_search_query_response_data import CommunitiesSearchQueryResponseData
+from twitter_openapi_python_generated.models.communities_search_slice import CommunitiesSearchSlice
from twitter_openapi_python_generated.models.community import Community
from twitter_openapi_python_generated.models.community_about_timeline_response import CommunityAboutTimelineResponse
from twitter_openapi_python_generated.models.community_actions import CommunityActions
@@ -62,18 +90,49 @@
from twitter_openapi_python_generated.models.community_discovery_timeline_response import CommunityDiscoveryTimelineResponse
from twitter_openapi_python_generated.models.community_discovery_timeline_response_data import CommunityDiscoveryTimelineResponseData
from twitter_openapi_python_generated.models.community_discovery_timeline_viewer import CommunityDiscoveryTimelineViewer
+from twitter_openapi_python_generated.models.community_facepile_user import CommunityFacepileUser
+from twitter_openapi_python_generated.models.community_facepile_user_results import CommunityFacepileUserResults
+from twitter_openapi_python_generated.models.community_hashtag import CommunityHashtag
+from twitter_openapi_python_generated.models.community_hashtag_slice import CommunityHashtagSlice
+from twitter_openapi_python_generated.models.community_id_user_results import CommunityIdUserResults
from twitter_openapi_python_generated.models.community_invites_result import CommunityInvitesResult
from twitter_openapi_python_generated.models.community_join_action import CommunityJoinAction
from twitter_openapi_python_generated.models.community_join_action_result_union import CommunityJoinActionResultUnion
from twitter_openapi_python_generated.models.community_join_action_unavailable import CommunityJoinActionUnavailable
from twitter_openapi_python_generated.models.community_join_requests_result import CommunityJoinRequestsResult
from twitter_openapi_python_generated.models.community_leave_action_result import CommunityLeaveActionResult
+from twitter_openapi_python_generated.models.community_list_members_action_result import CommunityListMembersActionResult
from twitter_openapi_python_generated.models.community_media_timeline_response import CommunityMediaTimelineResponse
from twitter_openapi_python_generated.models.community_moderation_state import CommunityModerationState
+from twitter_openapi_python_generated.models.community_page_actions import CommunityPageActions
+from twitter_openapi_python_generated.models.community_page_community import CommunityPageCommunity
+from twitter_openapi_python_generated.models.community_page_delete_action_result import CommunityPageDeleteActionResult
+from twitter_openapi_python_generated.models.community_page_invites_result import CommunityPageInvitesResult
+from twitter_openapi_python_generated.models.community_page_join_action_result import CommunityPageJoinActionResult
+from twitter_openapi_python_generated.models.community_page_leave_action_result import CommunityPageLeaveActionResult
+from twitter_openapi_python_generated.models.community_page_pin_action_result import CommunityPagePinActionResult
+from twitter_openapi_python_generated.models.community_page_results import CommunityPageResults
from twitter_openapi_python_generated.models.community_pin_action_result import CommunityPinActionResult
+from twitter_openapi_python_generated.models.community_primary_topic_name import CommunityPrimaryTopicName
+from twitter_openapi_python_generated.models.community_query_response import CommunityQueryResponse
+from twitter_openapi_python_generated.models.community_query_response_data import CommunityQueryResponseData
from twitter_openapi_python_generated.models.community_relationship import CommunityRelationship
+from twitter_openapi_python_generated.models.community_relay_rule import CommunityRelayRule
from twitter_openapi_python_generated.models.community_result import CommunityResult
from twitter_openapi_python_generated.models.community_rule import CommunityRule
+from twitter_openapi_python_generated.models.community_search_community import CommunitySearchCommunity
+from twitter_openapi_python_generated.models.community_search_results import CommunitySearchResults
+from twitter_openapi_python_generated.models.community_settings_actions import CommunitySettingsActions
+from twitter_openapi_python_generated.models.community_settings_community import CommunitySettingsCommunity
+from twitter_openapi_python_generated.models.community_settings_creator import CommunitySettingsCreator
+from twitter_openapi_python_generated.models.community_settings_creator_core import CommunitySettingsCreatorCore
+from twitter_openapi_python_generated.models.community_settings_creator_results import CommunitySettingsCreatorResults
+from twitter_openapi_python_generated.models.community_settings_creator_verification import CommunitySettingsCreatorVerification
+from twitter_openapi_python_generated.models.community_settings_invites_result import CommunitySettingsInvitesResult
+from twitter_openapi_python_generated.models.community_settings_results import CommunitySettingsResults
+from twitter_openapi_python_generated.models.community_subtopic import CommunitySubtopic
+from twitter_openapi_python_generated.models.community_topic import CommunityTopic
+from twitter_openapi_python_generated.models.community_topic_results import CommunityTopicResults
from twitter_openapi_python_generated.models.community_tweets_timeline_response import CommunityTweetsTimelineResponse
from twitter_openapi_python_generated.models.community_unavailable import CommunityUnavailable
from twitter_openapi_python_generated.models.community_union import CommunityUnion
@@ -109,10 +168,14 @@
from twitter_openapi_python_generated.models.create_tweet_response import CreateTweetResponse
from twitter_openapi_python_generated.models.create_tweet_response_data import CreateTweetResponseData
from twitter_openapi_python_generated.models.create_tweet_response_result import CreateTweetResponseResult
+from twitter_openapi_python_generated.models.creator_studio_tab_bar_item_query_response import CreatorStudioTabBarItemQueryResponse
+from twitter_openapi_python_generated.models.creator_studio_tab_bar_item_query_response_data import CreatorStudioTabBarItemQueryResponseData
from twitter_openapi_python_generated.models.cta_client_event_info import CtaClientEventInfo
from twitter_openapi_python_generated.models.cta_limited_action_prompt import CtaLimitedActionPrompt
from twitter_openapi_python_generated.models.cta_limited_action_prompt_text import CtaLimitedActionPromptText
from twitter_openapi_python_generated.models.cursor_type import CursorType
+from twitter_openapi_python_generated.models.data_saver_mode_response import DataSaverModeResponse
+from twitter_openapi_python_generated.models.data_saver_mode_response_data import DataSaverModeResponseData
from twitter_openapi_python_generated.models.deepsearch_header import DeepsearchHeader
from twitter_openapi_python_generated.models.deepsearch_step import DeepsearchStep
from twitter_openapi_python_generated.models.deepsearch_web_result import DeepsearchWebResult
@@ -141,10 +204,18 @@
from twitter_openapi_python_generated.models.error_extensions import ErrorExtensions
from twitter_openapi_python_generated.models.error_response import ErrorResponse
from twitter_openapi_python_generated.models.error_response_path_inner import ErrorResponsePathInner
+from twitter_openapi_python_generated.models.event_summary_ad_metadata_container import EventSummaryAdMetadataContainer
+from twitter_openapi_python_generated.models.event_summary_event import EventSummaryEvent
+from twitter_openapi_python_generated.models.event_summary_media import EventSummaryMedia
+from twitter_openapi_python_generated.models.event_summary_media_entity import EventSummaryMediaEntity
+from twitter_openapi_python_generated.models.event_summary_media_key import EventSummaryMediaKey
+from twitter_openapi_python_generated.models.event_summary_promoted_metadata import EventSummaryPromotedMetadata
from twitter_openapi_python_generated.models.explore_page import ExplorePage
from twitter_openapi_python_generated.models.explore_page_body import ExplorePageBody
from twitter_openapi_python_generated.models.explore_page_response import ExplorePageResponse
from twitter_openapi_python_generated.models.explore_page_response_data import ExplorePageResponseData
+from twitter_openapi_python_generated.models.explore_sidebar_response import ExploreSidebarResponse
+from twitter_openapi_python_generated.models.explore_sidebar_response_data import ExploreSidebarResponseData
from twitter_openapi_python_generated.models.explore_timeline import ExploreTimeline
from twitter_openapi_python_generated.models.explore_timeline_scribe_config import ExploreTimelineScribeConfig
from twitter_openapi_python_generated.models.ext_media_availability import ExtMediaAvailability
@@ -166,10 +237,23 @@
from twitter_openapi_python_generated.models.follow_timeline import FollowTimeline
from twitter_openapi_python_generated.models.generic_timeline_by_id_response import GenericTimelineByIdResponse
from twitter_openapi_python_generated.models.generic_timeline_by_id_response_data import GenericTimelineByIdResponseData
+from twitter_openapi_python_generated.models.global_communities_latest_post_search import GlobalCommunitiesLatestPostSearch
+from twitter_openapi_python_generated.models.global_communities_latest_post_search_timeline_response import GlobalCommunitiesLatestPostSearchTimelineResponse
+from twitter_openapi_python_generated.models.global_communities_latest_post_search_timeline_response_data import GlobalCommunitiesLatestPostSearchTimelineResponseData
+from twitter_openapi_python_generated.models.global_communities_post_search import GlobalCommunitiesPostSearch
+from twitter_openapi_python_generated.models.global_communities_post_search_timeline_response import GlobalCommunitiesPostSearchTimelineResponse
+from twitter_openapi_python_generated.models.global_communities_post_search_timeline_response_data import GlobalCommunitiesPostSearchTimelineResponseData
from twitter_openapi_python_generated.models.grok_annotation import GrokAnnotation
from twitter_openapi_python_generated.models.grok_entity import GrokEntity
from twitter_openapi_python_generated.models.grok_entity_ref import GrokEntityRef
+from twitter_openapi_python_generated.models.grok_home import GrokHome
+from twitter_openapi_python_generated.models.grok_home_layout import GrokHomeLayout
+from twitter_openapi_python_generated.models.grok_home_layout_section import GrokHomeLayoutSection
+from twitter_openapi_python_generated.models.grok_home_prompt import GrokHomePrompt
+from twitter_openapi_python_generated.models.grok_home_response import GrokHomeResponse
+from twitter_openapi_python_generated.models.grok_home_response_data import GrokHomeResponseData
from twitter_openapi_python_generated.models.grok_image_annotation import GrokImageAnnotation
+from twitter_openapi_python_generated.models.grok_model_option import GrokModelOption
from twitter_openapi_python_generated.models.grok_share_attachment import GrokShareAttachment
from twitter_openapi_python_generated.models.grok_share_attachment_item import GrokShareAttachmentItem
from twitter_openapi_python_generated.models.grok_translated_bio import GrokTranslatedBio
@@ -205,11 +289,17 @@
from twitter_openapi_python_generated.models.list_recommended_users_response_data import ListRecommendedUsersResponseData
from twitter_openapi_python_generated.models.list_response import ListResponse
from twitter_openapi_python_generated.models.list_response_data import ListResponseData
+from twitter_openapi_python_generated.models.list_search import ListSearch
+from twitter_openapi_python_generated.models.list_search_timeline_response import ListSearchTimelineResponse
+from twitter_openapi_python_generated.models.list_search_timeline_response_data import ListSearchTimelineResponseData
from twitter_openapi_python_generated.models.list_subscribers_list import ListSubscribersList
from twitter_openapi_python_generated.models.list_subscribers_response import ListSubscribersResponse
from twitter_openapi_python_generated.models.list_subscribers_response_data import ListSubscribersResponseData
from twitter_openapi_python_generated.models.list_tweets_timeline_data import ListTweetsTimelineData
from twitter_openapi_python_generated.models.list_tweets_timeline_list import ListTweetsTimelineList
+from twitter_openapi_python_generated.models.lists_management_page_timeline_response import ListsManagementPageTimelineResponse
+from twitter_openapi_python_generated.models.lists_management_page_timeline_response_data import ListsManagementPageTimelineResponseData
+from twitter_openapi_python_generated.models.lists_management_viewer import ListsManagementViewer
from twitter_openapi_python_generated.models.location import Location
from twitter_openapi_python_generated.models.media import Media
from twitter_openapi_python_generated.models.media_color_info import MediaColorInfo
@@ -243,6 +333,7 @@
from twitter_openapi_python_generated.models.note_tweet_result_media_inline_media import NoteTweetResultMediaInlineMedia
from twitter_openapi_python_generated.models.note_tweet_result_rich_text import NoteTweetResultRichText
from twitter_openapi_python_generated.models.note_tweet_result_rich_text_tag import NoteTweetResultRichTextTag
+from twitter_openapi_python_generated.models.notification_details import NotificationDetails
from twitter_openapi_python_generated.models.notification_template import NotificationTemplate
from twitter_openapi_python_generated.models.notifications_result import NotificationsResult
from twitter_openapi_python_generated.models.notifications_timeline_data import NotificationsTimelineData
@@ -251,6 +342,9 @@
from twitter_openapi_python_generated.models.notifications_viewer_v2 import NotificationsViewerV2
from twitter_openapi_python_generated.models.one_factor_login_eligibility import OneFactorLoginEligibility
from twitter_openapi_python_generated.models.other_object_all import OtherObjectAll
+from twitter_openapi_python_generated.models.pinned_timelines import PinnedTimelines
+from twitter_openapi_python_generated.models.pinned_timelines_response import PinnedTimelinesResponse
+from twitter_openapi_python_generated.models.pinned_timelines_response_data import PinnedTimelinesResponseData
from twitter_openapi_python_generated.models.post_create_bookmark_request import PostCreateBookmarkRequest
from twitter_openapi_python_generated.models.post_create_bookmark_request_variables import PostCreateBookmarkRequestVariables
from twitter_openapi_python_generated.models.post_create_draft_tweet_request import PostCreateDraftTweetRequest
@@ -295,6 +389,7 @@
from twitter_openapi_python_generated.models.profile_response import ProfileResponse
from twitter_openapi_python_generated.models.profile_response_data import ProfileResponseData
from twitter_openapi_python_generated.models.promoted_metadata import PromotedMetadata
+from twitter_openapi_python_generated.models.promoted_trend import PromotedTrend
from twitter_openapi_python_generated.models.quoted_ref_result import QuotedRefResult
from twitter_openapi_python_generated.models.quoted_status_permalink import QuotedStatusPermalink
from twitter_openapi_python_generated.models.ranked_community_result import RankedCommunityResult
@@ -304,6 +399,8 @@
from twitter_openapi_python_generated.models.retweet import Retweet
from twitter_openapi_python_generated.models.retweet_legacy import RetweetLegacy
from twitter_openapi_python_generated.models.rich_message import RichMessage
+from twitter_openapi_python_generated.models.rich_message_entity import RichMessageEntity
+from twitter_openapi_python_generated.models.rich_message_entity_ref import RichMessageEntityRef
from twitter_openapi_python_generated.models.scheduled_tweets_viewer import ScheduledTweetsViewer
from twitter_openapi_python_generated.models.scribe_config import ScribeConfig
from twitter_openapi_python_generated.models.search_by_raw_query import SearchByRawQuery
@@ -313,6 +410,7 @@
from twitter_openapi_python_generated.models.self_thread import SelfThread
from twitter_openapi_python_generated.models.sensitive_media_warning import SensitiveMediaWarning
from twitter_openapi_python_generated.models.session import Session
+from twitter_openapi_python_generated.models.slice_info import SliceInfo
from twitter_openapi_python_generated.models.smarttag import Smarttag
from twitter_openapi_python_generated.models.smarttag_tag import SmarttagTag
from twitter_openapi_python_generated.models.smarttag_tag_info import SmarttagTagInfo
@@ -339,6 +437,7 @@
from twitter_openapi_python_generated.models.timeline_community import TimelineCommunity
from twitter_openapi_python_generated.models.timeline_cover_behavior import TimelineCoverBehavior
from twitter_openapi_python_generated.models.timeline_cover_behavior_url import TimelineCoverBehaviorUrl
+from twitter_openapi_python_generated.models.timeline_event_summary import TimelineEventSummary
from twitter_openapi_python_generated.models.timeline_frame import TimelineFrame
from twitter_openapi_python_generated.models.timeline_general_context import TimelineGeneralContext
from twitter_openapi_python_generated.models.timeline_half_cover import TimelineHalfCover
@@ -382,10 +481,13 @@
from twitter_openapi_python_generated.models.tombstone_info import TombstoneInfo
from twitter_openapi_python_generated.models.tombstone_ref import TombstoneRef
from twitter_openapi_python_generated.models.tombstone_rich_text import TombstoneRichText
+from twitter_openapi_python_generated.models.topic_carousel_query_response import TopicCarouselQueryResponse
+from twitter_openapi_python_generated.models.topic_carousel_query_response_data import TopicCarouselQueryResponseData
from twitter_openapi_python_generated.models.topic_context import TopicContext
from twitter_openapi_python_generated.models.tracing import Tracing
from twitter_openapi_python_generated.models.trend_image import TrendImage
from twitter_openapi_python_generated.models.trend_metadata import TrendMetadata
+from twitter_openapi_python_generated.models.trend_promoted_metadata import TrendPromotedMetadata
from twitter_openapi_python_generated.models.trend_results import TrendResults
from twitter_openapi_python_generated.models.tweet import Tweet
from twitter_openapi_python_generated.models.tweet_card import TweetCard
@@ -503,6 +605,10 @@
from twitter_openapi_python_generated.models.user_website import UserWebsite
from twitter_openapi_python_generated.models.users_response import UsersResponse
from twitter_openapi_python_generated.models.users_response_data import UsersResponseData
+from twitter_openapi_python_generated.models.users_verified_avatars_response import UsersVerifiedAvatarsResponse
+from twitter_openapi_python_generated.models.users_verified_avatars_response_data import UsersVerifiedAvatarsResponseData
+from twitter_openapi_python_generated.models.verified_avatar_user import VerifiedAvatarUser
+from twitter_openapi_python_generated.models.verified_avatar_user_results import VerifiedAvatarUserResults
from twitter_openapi_python_generated.models.viewer_badge_counts_response import ViewerBadgeCountsResponse
from twitter_openapi_python_generated.models.viewer_badge_counts_response_data import ViewerBadgeCountsResponseData
from twitter_openapi_python_generated.models.viewer_badge_counts_result import ViewerBadgeCountsResult
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/ad_metadata_container.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/ad_metadata_container.py
index 3f9bd4c..43210e8 100644
--- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/ad_metadata_container.py
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/ad_metadata_container.py
@@ -18,7 +18,7 @@
import re # noqa: F401
import json
-from pydantic import BaseModel, ConfigDict, Field, StrictBool
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
from twitter_openapi_python_generated.models.key_value import KeyValue
from typing import Optional, Set
@@ -34,7 +34,8 @@ class AdMetadataContainer(BaseModel):
render_legacy_website_card: StrictBool = Field(alias="renderLegacyWebsiteCard")
render_sales_cta_website_card: StrictBool = Field(alias="renderSalesCtaWebsiteCard")
show_overlay_on_first_card: Optional[StrictBool] = Field(default=None, alias="showOverlayOnFirstCard")
- __properties: ClassVar[List[str]] = ["destinationUrlParams", "isQuickPromote", "renderLegacyWebsiteCard", "renderSalesCtaWebsiteCard", "showOverlayOnFirstCard"]
+ unified_card_override: Optional[StrictStr] = Field(default=None, alias="unifiedCardOverride")
+ __properties: ClassVar[List[str]] = ["destinationUrlParams", "isQuickPromote", "renderLegacyWebsiteCard", "renderSalesCtaWebsiteCard", "showOverlayOnFirstCard", "unifiedCardOverride"]
model_config = ConfigDict(
validate_by_name=True,
@@ -97,7 +98,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"isQuickPromote": obj.get("isQuickPromote"),
"renderLegacyWebsiteCard": obj.get("renderLegacyWebsiteCard"),
"renderSalesCtaWebsiteCard": obj.get("renderSalesCtaWebsiteCard"),
- "showOverlayOnFirstCard": obj.get("showOverlayOnFirstCard")
+ "showOverlayOnFirstCard": obj.get("showOverlayOnFirstCard"),
+ "unifiedCardOverride": obj.get("unifiedCardOverride")
})
return _obj
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/authenticate_periscope_response.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/authenticate_periscope_response.py
new file mode 100644
index 0000000..946515c
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/authenticate_periscope_response.py
@@ -0,0 +1,102 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List, Optional
+from twitter_openapi_python_generated.models.authenticate_periscope_response_data import AuthenticatePeriscopeResponseData
+from twitter_openapi_python_generated.models.error_response import ErrorResponse
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class AuthenticatePeriscopeResponse(BaseModel):
+ """
+ AuthenticatePeriscopeResponse
+ """ # noqa: E501
+ data: AuthenticatePeriscopeResponseData
+ errors: Optional[List[ErrorResponse]] = None
+ __properties: ClassVar[List[str]] = ["data", "errors"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of AuthenticatePeriscopeResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of data
+ if self.data:
+ _dict['data'] = self.data.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of each item in errors (list)
+ _items = []
+ if self.errors:
+ for _item_errors in self.errors:
+ _items.append(_item_errors.to_dict() if _item_errors is not None else None)
+ _dict['errors'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of AuthenticatePeriscopeResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "data": AuthenticatePeriscopeResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None,
+ "errors": [ErrorResponse.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/authenticate_periscope_response_data.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/authenticate_periscope_response_data.py
new file mode 100644
index 0000000..108ad86
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/authenticate_periscope_response_data.py
@@ -0,0 +1,89 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr
+from typing import Any, ClassVar, Dict, List
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class AuthenticatePeriscopeResponseData(BaseModel):
+ """
+ AuthenticatePeriscopeResponseData
+ """ # noqa: E501
+ authenticate_periscope: StrictStr
+ __properties: ClassVar[List[str]] = ["authenticate_periscope"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of AuthenticatePeriscopeResponseData from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of AuthenticatePeriscopeResponseData from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "authenticate_periscope": obj.get("authenticate_periscope")
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_alias_self_select_status.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_alias_self_select_status.py
new file mode 100644
index 0000000..72a7cb3
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_alias_self_select_status.py
@@ -0,0 +1,91 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictBool
+from typing import Any, ClassVar, Dict, List
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class BirdwatchAliasSelfSelectStatus(BaseModel):
+ """
+ BirdwatchAliasSelfSelectStatus
+ """ # noqa: E501
+ can_select: StrictBool
+ has_selected: StrictBool
+ __properties: ClassVar[List[str]] = ["can_select", "has_selected"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of BirdwatchAliasSelfSelectStatus from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of BirdwatchAliasSelfSelectStatus from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "can_select": obj.get("can_select"),
+ "has_selected": obj.get("has_selected")
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_fetch_alias_self_select_status_response.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_fetch_alias_self_select_status_response.py
new file mode 100644
index 0000000..fbf850b
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_fetch_alias_self_select_status_response.py
@@ -0,0 +1,102 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List, Optional
+from twitter_openapi_python_generated.models.birdwatch_fetch_alias_self_select_status_response_data import BirdwatchFetchAliasSelfSelectStatusResponseData
+from twitter_openapi_python_generated.models.error_response import ErrorResponse
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class BirdwatchFetchAliasSelfSelectStatusResponse(BaseModel):
+ """
+ BirdwatchFetchAliasSelfSelectStatusResponse
+ """ # noqa: E501
+ data: BirdwatchFetchAliasSelfSelectStatusResponseData
+ errors: Optional[List[ErrorResponse]] = None
+ __properties: ClassVar[List[str]] = ["data", "errors"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of BirdwatchFetchAliasSelfSelectStatusResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of data
+ if self.data:
+ _dict['data'] = self.data.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of each item in errors (list)
+ _items = []
+ if self.errors:
+ for _item_errors in self.errors:
+ _items.append(_item_errors.to_dict() if _item_errors is not None else None)
+ _dict['errors'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of BirdwatchFetchAliasSelfSelectStatusResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "data": BirdwatchFetchAliasSelfSelectStatusResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None,
+ "errors": [ErrorResponse.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_fetch_alias_self_select_status_response_data.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_fetch_alias_self_select_status_response_data.py
new file mode 100644
index 0000000..323f66e
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_fetch_alias_self_select_status_response_data.py
@@ -0,0 +1,93 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.birdwatch_alias_self_select_status import BirdwatchAliasSelfSelectStatus
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class BirdwatchFetchAliasSelfSelectStatusResponseData(BaseModel):
+ """
+ BirdwatchFetchAliasSelfSelectStatusResponseData
+ """ # noqa: E501
+ authenticated_user_birdwatch_alias_self_select_status: BirdwatchAliasSelfSelectStatus
+ __properties: ClassVar[List[str]] = ["authenticated_user_birdwatch_alias_self_select_status"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of BirdwatchFetchAliasSelfSelectStatusResponseData from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of authenticated_user_birdwatch_alias_self_select_status
+ if self.authenticated_user_birdwatch_alias_self_select_status:
+ _dict['authenticated_user_birdwatch_alias_self_select_status'] = self.authenticated_user_birdwatch_alias_self_select_status.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of BirdwatchFetchAliasSelfSelectStatusResponseData from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "authenticated_user_birdwatch_alias_self_select_status": BirdwatchAliasSelfSelectStatus.from_dict(obj["authenticated_user_birdwatch_alias_self_select_status"]) if obj.get("authenticated_user_birdwatch_alias_self_select_status") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_fetch_authenticated_user_profile_response.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_fetch_authenticated_user_profile_response.py
new file mode 100644
index 0000000..119c33e
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_fetch_authenticated_user_profile_response.py
@@ -0,0 +1,102 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List, Optional
+from twitter_openapi_python_generated.models.birdwatch_fetch_authenticated_user_profile_response_data import BirdwatchFetchAuthenticatedUserProfileResponseData
+from twitter_openapi_python_generated.models.error_response import ErrorResponse
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class BirdwatchFetchAuthenticatedUserProfileResponse(BaseModel):
+ """
+ BirdwatchFetchAuthenticatedUserProfileResponse
+ """ # noqa: E501
+ data: BirdwatchFetchAuthenticatedUserProfileResponseData
+ errors: Optional[List[ErrorResponse]] = None
+ __properties: ClassVar[List[str]] = ["data", "errors"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of BirdwatchFetchAuthenticatedUserProfileResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of data
+ if self.data:
+ _dict['data'] = self.data.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of each item in errors (list)
+ _items = []
+ if self.errors:
+ for _item_errors in self.errors:
+ _items.append(_item_errors.to_dict() if _item_errors is not None else None)
+ _dict['errors'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of BirdwatchFetchAuthenticatedUserProfileResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "data": BirdwatchFetchAuthenticatedUserProfileResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None,
+ "errors": [ErrorResponse.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_fetch_authenticated_user_profile_response_data.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_fetch_authenticated_user_profile_response_data.py
new file mode 100644
index 0000000..a8dec7f
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_fetch_authenticated_user_profile_response_data.py
@@ -0,0 +1,93 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.birdwatch_profile import BirdwatchProfile
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class BirdwatchFetchAuthenticatedUserProfileResponseData(BaseModel):
+ """
+ BirdwatchFetchAuthenticatedUserProfileResponseData
+ """ # noqa: E501
+ authenticated_user_birdwatch_profile: BirdwatchProfile
+ __properties: ClassVar[List[str]] = ["authenticated_user_birdwatch_profile"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of BirdwatchFetchAuthenticatedUserProfileResponseData from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of authenticated_user_birdwatch_profile
+ if self.authenticated_user_birdwatch_profile:
+ _dict['authenticated_user_birdwatch_profile'] = self.authenticated_user_birdwatch_profile.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of BirdwatchFetchAuthenticatedUserProfileResponseData from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "authenticated_user_birdwatch_profile": BirdwatchProfile.from_dict(obj["authenticated_user_birdwatch_profile"]) if obj.get("authenticated_user_birdwatch_profile") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_fetch_birdwatch_profile_response.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_fetch_birdwatch_profile_response.py
new file mode 100644
index 0000000..4b95241
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_fetch_birdwatch_profile_response.py
@@ -0,0 +1,102 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List, Optional
+from twitter_openapi_python_generated.models.birdwatch_fetch_birdwatch_profile_response_data import BirdwatchFetchBirdwatchProfileResponseData
+from twitter_openapi_python_generated.models.error_response import ErrorResponse
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class BirdwatchFetchBirdwatchProfileResponse(BaseModel):
+ """
+ BirdwatchFetchBirdwatchProfileResponse
+ """ # noqa: E501
+ data: BirdwatchFetchBirdwatchProfileResponseData
+ errors: Optional[List[ErrorResponse]] = None
+ __properties: ClassVar[List[str]] = ["data", "errors"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of BirdwatchFetchBirdwatchProfileResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of data
+ if self.data:
+ _dict['data'] = self.data.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of each item in errors (list)
+ _items = []
+ if self.errors:
+ for _item_errors in self.errors:
+ _items.append(_item_errors.to_dict() if _item_errors is not None else None)
+ _dict['errors'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of BirdwatchFetchBirdwatchProfileResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "data": BirdwatchFetchBirdwatchProfileResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None,
+ "errors": [ErrorResponse.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_fetch_birdwatch_profile_response_data.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_fetch_birdwatch_profile_response_data.py
new file mode 100644
index 0000000..b705185
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_fetch_birdwatch_profile_response_data.py
@@ -0,0 +1,93 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.birdwatch_profile import BirdwatchProfile
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class BirdwatchFetchBirdwatchProfileResponseData(BaseModel):
+ """
+ BirdwatchFetchBirdwatchProfileResponseData
+ """ # noqa: E501
+ birdwatch_profile_by_alias: BirdwatchProfile
+ __properties: ClassVar[List[str]] = ["birdwatch_profile_by_alias"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of BirdwatchFetchBirdwatchProfileResponseData from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of birdwatch_profile_by_alias
+ if self.birdwatch_profile_by_alias:
+ _dict['birdwatch_profile_by_alias'] = self.birdwatch_profile_by_alias.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of BirdwatchFetchBirdwatchProfileResponseData from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "birdwatch_profile_by_alias": BirdwatchProfile.from_dict(obj["birdwatch_profile_by_alias"]) if obj.get("birdwatch_profile_by_alias") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_fetch_global_timeline_response.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_fetch_global_timeline_response.py
new file mode 100644
index 0000000..a403e4b
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_fetch_global_timeline_response.py
@@ -0,0 +1,102 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List, Optional
+from twitter_openapi_python_generated.models.birdwatch_fetch_global_timeline_response_data import BirdwatchFetchGlobalTimelineResponseData
+from twitter_openapi_python_generated.models.error_response import ErrorResponse
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class BirdwatchFetchGlobalTimelineResponse(BaseModel):
+ """
+ BirdwatchFetchGlobalTimelineResponse
+ """ # noqa: E501
+ data: BirdwatchFetchGlobalTimelineResponseData
+ errors: Optional[List[ErrorResponse]] = None
+ __properties: ClassVar[List[str]] = ["data", "errors"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of BirdwatchFetchGlobalTimelineResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of data
+ if self.data:
+ _dict['data'] = self.data.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of each item in errors (list)
+ _items = []
+ if self.errors:
+ for _item_errors in self.errors:
+ _items.append(_item_errors.to_dict() if _item_errors is not None else None)
+ _dict['errors'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of BirdwatchFetchGlobalTimelineResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "data": BirdwatchFetchGlobalTimelineResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None,
+ "errors": [ErrorResponse.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_fetch_global_timeline_response_data.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_fetch_global_timeline_response_data.py
new file mode 100644
index 0000000..d56147f
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_fetch_global_timeline_response_data.py
@@ -0,0 +1,93 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.birdwatch_viewer import BirdwatchViewer
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class BirdwatchFetchGlobalTimelineResponseData(BaseModel):
+ """
+ BirdwatchFetchGlobalTimelineResponseData
+ """ # noqa: E501
+ viewer: BirdwatchViewer
+ __properties: ClassVar[List[str]] = ["viewer"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of BirdwatchFetchGlobalTimelineResponseData from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of viewer
+ if self.viewer:
+ _dict['viewer'] = self.viewer.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of BirdwatchFetchGlobalTimelineResponseData from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "viewer": BirdwatchViewer.from_dict(obj["viewer"]) if obj.get("viewer") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_fetch_public_data_response.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_fetch_public_data_response.py
new file mode 100644
index 0000000..96547d5
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_fetch_public_data_response.py
@@ -0,0 +1,102 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List, Optional
+from twitter_openapi_python_generated.models.birdwatch_fetch_public_data_response_data import BirdwatchFetchPublicDataResponseData
+from twitter_openapi_python_generated.models.error_response import ErrorResponse
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class BirdwatchFetchPublicDataResponse(BaseModel):
+ """
+ BirdwatchFetchPublicDataResponse
+ """ # noqa: E501
+ data: BirdwatchFetchPublicDataResponseData
+ errors: Optional[List[ErrorResponse]] = None
+ __properties: ClassVar[List[str]] = ["data", "errors"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of BirdwatchFetchPublicDataResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of data
+ if self.data:
+ _dict['data'] = self.data.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of each item in errors (list)
+ _items = []
+ if self.errors:
+ for _item_errors in self.errors:
+ _items.append(_item_errors.to_dict() if _item_errors is not None else None)
+ _dict['errors'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of BirdwatchFetchPublicDataResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "data": BirdwatchFetchPublicDataResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None,
+ "errors": [ErrorResponse.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_fetch_public_data_response_data.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_fetch_public_data_response_data.py
new file mode 100644
index 0000000..984efcf
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_fetch_public_data_response_data.py
@@ -0,0 +1,93 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.birdwatch_public_data_file_bundle import BirdwatchPublicDataFileBundle
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class BirdwatchFetchPublicDataResponseData(BaseModel):
+ """
+ BirdwatchFetchPublicDataResponseData
+ """ # noqa: E501
+ birdwatch_latest_public_data_file_bundle: BirdwatchPublicDataFileBundle
+ __properties: ClassVar[List[str]] = ["birdwatch_latest_public_data_file_bundle"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of BirdwatchFetchPublicDataResponseData from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of birdwatch_latest_public_data_file_bundle
+ if self.birdwatch_latest_public_data_file_bundle:
+ _dict['birdwatch_latest_public_data_file_bundle'] = self.birdwatch_latest_public_data_file_bundle.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of BirdwatchFetchPublicDataResponseData from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "birdwatch_latest_public_data_file_bundle": BirdwatchPublicDataFileBundle.from_dict(obj["birdwatch_latest_public_data_file_bundle"]) if obj.get("birdwatch_latest_public_data_file_bundle") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_home_page.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_home_page.py
new file mode 100644
index 0000000..f417e78
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_home_page.py
@@ -0,0 +1,101 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.birdwatch_home_page_body import BirdwatchHomePageBody
+from twitter_openapi_python_generated.models.scribe_config import ScribeConfig
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class BirdwatchHomePage(BaseModel):
+ """
+ BirdwatchHomePage
+ """ # noqa: E501
+ body: BirdwatchHomePageBody
+ id: StrictStr
+ scribe_config: ScribeConfig = Field(alias="scribeConfig")
+ __properties: ClassVar[List[str]] = ["body", "id", "scribeConfig"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of BirdwatchHomePage from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of body
+ if self.body:
+ _dict['body'] = self.body.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of scribe_config
+ if self.scribe_config:
+ _dict['scribeConfig'] = self.scribe_config.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of BirdwatchHomePage from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "body": BirdwatchHomePageBody.from_dict(obj["body"]) if obj.get("body") is not None else None,
+ "id": obj.get("id"),
+ "scribeConfig": ScribeConfig.from_dict(obj["scribeConfig"]) if obj.get("scribeConfig") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_home_page_body.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_home_page_body.py
new file mode 100644
index 0000000..8e946d7
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_home_page_body.py
@@ -0,0 +1,104 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.birdwatch_home_timeline import BirdwatchHomeTimeline
+from twitter_openapi_python_generated.models.type_name import TypeName
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class BirdwatchHomePageBody(BaseModel):
+ """
+ BirdwatchHomePageBody
+ """ # noqa: E501
+ typename: TypeName = Field(alias="__typename")
+ initial_timeline: BirdwatchHomeTimeline = Field(alias="initialTimeline")
+ timelines: List[BirdwatchHomeTimeline]
+ __properties: ClassVar[List[str]] = ["__typename", "initialTimeline", "timelines"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of BirdwatchHomePageBody from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of initial_timeline
+ if self.initial_timeline:
+ _dict['initialTimeline'] = self.initial_timeline.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of each item in timelines (list)
+ _items = []
+ if self.timelines:
+ for _item_timelines in self.timelines:
+ _items.append(_item_timelines.to_dict() if _item_timelines is not None else None)
+ _dict['timelines'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of BirdwatchHomePageBody from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "__typename": obj.get("__typename"),
+ "initialTimeline": BirdwatchHomeTimeline.from_dict(obj["initialTimeline"]) if obj.get("initialTimeline") is not None else None,
+ "timelines": [BirdwatchHomeTimeline.from_dict(_item) for _item in obj["timelines"]] if obj.get("timelines") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_home_timeline.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_home_timeline.py
new file mode 100644
index 0000000..1129be0
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_home_timeline.py
@@ -0,0 +1,97 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.timeline_result import TimelineResult
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class BirdwatchHomeTimeline(BaseModel):
+ """
+ BirdwatchHomeTimeline
+ """ # noqa: E501
+ id: StrictStr
+ label_text: StrictStr = Field(alias="labelText")
+ timeline: TimelineResult
+ __properties: ClassVar[List[str]] = ["id", "labelText", "timeline"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of BirdwatchHomeTimeline from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of timeline
+ if self.timeline:
+ _dict['timeline'] = self.timeline.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of BirdwatchHomeTimeline from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "labelText": obj.get("labelText"),
+ "timeline": TimelineResult.from_dict(obj["timeline"]) if obj.get("timeline") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_profile.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_profile.py
new file mode 100644
index 0000000..db727b2
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_profile.py
@@ -0,0 +1,89 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr
+from typing import Any, ClassVar, Dict, List
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class BirdwatchProfile(BaseModel):
+ """
+ BirdwatchProfile
+ """ # noqa: E501
+ alias: StrictStr
+ __properties: ClassVar[List[str]] = ["alias"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of BirdwatchProfile from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of BirdwatchProfile from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "alias": obj.get("alias")
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_public_data_file.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_public_data_file.py
new file mode 100644
index 0000000..0a51367
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_public_data_file.py
@@ -0,0 +1,91 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class BirdwatchPublicDataFile(BaseModel):
+ """
+ BirdwatchPublicDataFile
+ """ # noqa: E501
+ created_at: StrictInt
+ urls: List[StrictStr]
+ __properties: ClassVar[List[str]] = ["created_at", "urls"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of BirdwatchPublicDataFile from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of BirdwatchPublicDataFile from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "created_at": obj.get("created_at"),
+ "urls": obj.get("urls")
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_public_data_file_bundle.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_public_data_file_bundle.py
new file mode 100644
index 0000000..e373ec0
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_public_data_file_bundle.py
@@ -0,0 +1,113 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.birdwatch_public_data_file import BirdwatchPublicDataFile
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class BirdwatchPublicDataFileBundle(BaseModel):
+ """
+ BirdwatchPublicDataFileBundle
+ """ # noqa: E501
+ bat_signals: BirdwatchPublicDataFile
+ note_status_history: BirdwatchPublicDataFile
+ notes: BirdwatchPublicDataFile
+ ratings: BirdwatchPublicDataFile
+ user_enrollment: BirdwatchPublicDataFile
+ __properties: ClassVar[List[str]] = ["bat_signals", "note_status_history", "notes", "ratings", "user_enrollment"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of BirdwatchPublicDataFileBundle from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of bat_signals
+ if self.bat_signals:
+ _dict['bat_signals'] = self.bat_signals.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of note_status_history
+ if self.note_status_history:
+ _dict['note_status_history'] = self.note_status_history.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of notes
+ if self.notes:
+ _dict['notes'] = self.notes.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of ratings
+ if self.ratings:
+ _dict['ratings'] = self.ratings.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of user_enrollment
+ if self.user_enrollment:
+ _dict['user_enrollment'] = self.user_enrollment.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of BirdwatchPublicDataFileBundle from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "bat_signals": BirdwatchPublicDataFile.from_dict(obj["bat_signals"]) if obj.get("bat_signals") is not None else None,
+ "note_status_history": BirdwatchPublicDataFile.from_dict(obj["note_status_history"]) if obj.get("note_status_history") is not None else None,
+ "notes": BirdwatchPublicDataFile.from_dict(obj["notes"]) if obj.get("notes") is not None else None,
+ "ratings": BirdwatchPublicDataFile.from_dict(obj["ratings"]) if obj.get("ratings") is not None else None,
+ "user_enrollment": BirdwatchPublicDataFile.from_dict(obj["user_enrollment"]) if obj.get("user_enrollment") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_viewer.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_viewer.py
new file mode 100644
index 0000000..f793cf6
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/birdwatch_viewer.py
@@ -0,0 +1,93 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.birdwatch_home_page import BirdwatchHomePage
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class BirdwatchViewer(BaseModel):
+ """
+ BirdwatchViewer
+ """ # noqa: E501
+ birdwatch_home_page: BirdwatchHomePage
+ __properties: ClassVar[List[str]] = ["birdwatch_home_page"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of BirdwatchViewer from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of birdwatch_home_page
+ if self.birdwatch_home_page:
+ _dict['birdwatch_home_page'] = self.birdwatch_home_page.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of BirdwatchViewer from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "birdwatch_home_page": BirdwatchHomePage.from_dict(obj["birdwatch_home_page"]) if obj.get("birdwatch_home_page") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/bookmark_search.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/bookmark_search.py
new file mode 100644
index 0000000..1f083d7
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/bookmark_search.py
@@ -0,0 +1,93 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.timeline_result import TimelineResult
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class BookmarkSearch(BaseModel):
+ """
+ BookmarkSearch
+ """ # noqa: E501
+ bookmarks_search_timeline: TimelineResult
+ __properties: ClassVar[List[str]] = ["bookmarks_search_timeline"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of BookmarkSearch from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of bookmarks_search_timeline
+ if self.bookmarks_search_timeline:
+ _dict['bookmarks_search_timeline'] = self.bookmarks_search_timeline.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of BookmarkSearch from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "bookmarks_search_timeline": TimelineResult.from_dict(obj["bookmarks_search_timeline"]) if obj.get("bookmarks_search_timeline") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/bookmark_search_timeline_response.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/bookmark_search_timeline_response.py
new file mode 100644
index 0000000..dfad036
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/bookmark_search_timeline_response.py
@@ -0,0 +1,102 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List, Optional
+from twitter_openapi_python_generated.models.bookmark_search_timeline_response_data import BookmarkSearchTimelineResponseData
+from twitter_openapi_python_generated.models.error_response import ErrorResponse
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class BookmarkSearchTimelineResponse(BaseModel):
+ """
+ BookmarkSearchTimelineResponse
+ """ # noqa: E501
+ data: BookmarkSearchTimelineResponseData
+ errors: Optional[List[ErrorResponse]] = None
+ __properties: ClassVar[List[str]] = ["data", "errors"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of BookmarkSearchTimelineResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of data
+ if self.data:
+ _dict['data'] = self.data.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of each item in errors (list)
+ _items = []
+ if self.errors:
+ for _item_errors in self.errors:
+ _items.append(_item_errors.to_dict() if _item_errors is not None else None)
+ _dict['errors'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of BookmarkSearchTimelineResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "data": BookmarkSearchTimelineResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None,
+ "errors": [ErrorResponse.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/bookmark_search_timeline_response_data.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/bookmark_search_timeline_response_data.py
new file mode 100644
index 0000000..397ea6c
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/bookmark_search_timeline_response_data.py
@@ -0,0 +1,93 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.bookmark_search import BookmarkSearch
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class BookmarkSearchTimelineResponseData(BaseModel):
+ """
+ BookmarkSearchTimelineResponseData
+ """ # noqa: E501
+ search_by_raw_query: BookmarkSearch
+ __properties: ClassVar[List[str]] = ["search_by_raw_query"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of BookmarkSearchTimelineResponseData from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of search_by_raw_query
+ if self.search_by_raw_query:
+ _dict['search_by_raw_query'] = self.search_by_raw_query.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of BookmarkSearchTimelineResponseData from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "search_by_raw_query": BookmarkSearch.from_dict(obj["search_by_raw_query"]) if obj.get("search_by_raw_query") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/client_event_info_details.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/client_event_info_details.py
index f16dbf2..d4136a6 100644
--- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/client_event_info_details.py
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/client_event_info_details.py
@@ -21,6 +21,7 @@
from pydantic import BaseModel, ConfigDict, Field
from typing import Any, ClassVar, Dict, List, Optional
from twitter_openapi_python_generated.models.conversation_details import ConversationDetails
+from twitter_openapi_python_generated.models.notification_details import NotificationDetails
from twitter_openapi_python_generated.models.timelines_details import TimelinesDetails
from typing import Optional, Set
from typing_extensions import Self
@@ -31,8 +32,9 @@ class ClientEventInfoDetails(BaseModel):
ClientEventInfoDetails
""" # noqa: E501
conversation_details: Optional[ConversationDetails] = Field(default=None, alias="conversationDetails")
- timelines_details: TimelinesDetails = Field(alias="timelinesDetails")
- __properties: ClassVar[List[str]] = ["conversationDetails", "timelinesDetails"]
+ notification_details: Optional[NotificationDetails] = Field(default=None, alias="notificationDetails")
+ timelines_details: Optional[TimelinesDetails] = Field(default=None, alias="timelinesDetails")
+ __properties: ClassVar[List[str]] = ["conversationDetails", "notificationDetails", "timelinesDetails"]
model_config = ConfigDict(
validate_by_name=True,
@@ -76,6 +78,9 @@ def to_dict(self) -> Dict[str, Any]:
# override the default output from pydantic by calling `to_dict()` of conversation_details
if self.conversation_details:
_dict['conversationDetails'] = self.conversation_details.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of notification_details
+ if self.notification_details:
+ _dict['notificationDetails'] = self.notification_details.to_dict()
# override the default output from pydantic by calling `to_dict()` of timelines_details
if self.timelines_details:
_dict['timelinesDetails'] = self.timelines_details.to_dict()
@@ -92,6 +97,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
_obj = cls.model_validate({
"conversationDetails": ConversationDetails.from_dict(obj["conversationDetails"]) if obj.get("conversationDetails") is not None else None,
+ "notificationDetails": NotificationDetails.from_dict(obj["notificationDetails"]) if obj.get("notificationDetails") is not None else None,
"timelinesDetails": TimelinesDetails.from_dict(obj["timelinesDetails"]) if obj.get("timelinesDetails") is not None else None
})
return _obj
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/communities_fetch_one_query_response.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/communities_fetch_one_query_response.py
new file mode 100644
index 0000000..de8339a
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/communities_fetch_one_query_response.py
@@ -0,0 +1,102 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List, Optional
+from twitter_openapi_python_generated.models.communities_fetch_one_query_response_data import CommunitiesFetchOneQueryResponseData
+from twitter_openapi_python_generated.models.error_response import ErrorResponse
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class CommunitiesFetchOneQueryResponse(BaseModel):
+ """
+ CommunitiesFetchOneQueryResponse
+ """ # noqa: E501
+ data: CommunitiesFetchOneQueryResponseData
+ errors: Optional[List[ErrorResponse]] = None
+ __properties: ClassVar[List[str]] = ["data", "errors"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CommunitiesFetchOneQueryResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of data
+ if self.data:
+ _dict['data'] = self.data.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of each item in errors (list)
+ _items = []
+ if self.errors:
+ for _item_errors in self.errors:
+ _items.append(_item_errors.to_dict() if _item_errors is not None else None)
+ _dict['errors'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CommunitiesFetchOneQueryResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "data": CommunitiesFetchOneQueryResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None,
+ "errors": [ErrorResponse.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/communities_fetch_one_query_response_data.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/communities_fetch_one_query_response_data.py
new file mode 100644
index 0000000..1b771a0
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/communities_fetch_one_query_response_data.py
@@ -0,0 +1,93 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.community_page_results import CommunityPageResults
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class CommunitiesFetchOneQueryResponseData(BaseModel):
+ """
+ CommunitiesFetchOneQueryResponseData
+ """ # noqa: E501
+ community_results: CommunityPageResults = Field(alias="communityResults")
+ __properties: ClassVar[List[str]] = ["communityResults"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CommunitiesFetchOneQueryResponseData from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of community_results
+ if self.community_results:
+ _dict['communityResults'] = self.community_results.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CommunitiesFetchOneQueryResponseData from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "communityResults": CommunityPageResults.from_dict(obj["communityResults"]) if obj.get("communityResults") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/communities_search_query_response.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/communities_search_query_response.py
new file mode 100644
index 0000000..4462d18
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/communities_search_query_response.py
@@ -0,0 +1,102 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List, Optional
+from twitter_openapi_python_generated.models.communities_search_query_response_data import CommunitiesSearchQueryResponseData
+from twitter_openapi_python_generated.models.error_response import ErrorResponse
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class CommunitiesSearchQueryResponse(BaseModel):
+ """
+ CommunitiesSearchQueryResponse
+ """ # noqa: E501
+ data: CommunitiesSearchQueryResponseData
+ errors: Optional[List[ErrorResponse]] = None
+ __properties: ClassVar[List[str]] = ["data", "errors"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CommunitiesSearchQueryResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of data
+ if self.data:
+ _dict['data'] = self.data.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of each item in errors (list)
+ _items = []
+ if self.errors:
+ for _item_errors in self.errors:
+ _items.append(_item_errors.to_dict() if _item_errors is not None else None)
+ _dict['errors'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CommunitiesSearchQueryResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "data": CommunitiesSearchQueryResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None,
+ "errors": [ErrorResponse.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/communities_search_query_response_data.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/communities_search_query_response_data.py
new file mode 100644
index 0000000..9bbcd0d
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/communities_search_query_response_data.py
@@ -0,0 +1,93 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.communities_search_slice import CommunitiesSearchSlice
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class CommunitiesSearchQueryResponseData(BaseModel):
+ """
+ CommunitiesSearchQueryResponseData
+ """ # noqa: E501
+ communities_search_slice: CommunitiesSearchSlice
+ __properties: ClassVar[List[str]] = ["communities_search_slice"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CommunitiesSearchQueryResponseData from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of communities_search_slice
+ if self.communities_search_slice:
+ _dict['communities_search_slice'] = self.communities_search_slice.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CommunitiesSearchQueryResponseData from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "communities_search_slice": CommunitiesSearchSlice.from_dict(obj["communities_search_slice"]) if obj.get("communities_search_slice") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/communities_search_slice.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/communities_search_slice.py
new file mode 100644
index 0000000..e11b643
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/communities_search_slice.py
@@ -0,0 +1,102 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.community_search_results import CommunitySearchResults
+from twitter_openapi_python_generated.models.slice_info import SliceInfo
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class CommunitiesSearchSlice(BaseModel):
+ """
+ CommunitiesSearchSlice
+ """ # noqa: E501
+ items_results: List[CommunitySearchResults]
+ slice_info: SliceInfo
+ __properties: ClassVar[List[str]] = ["items_results", "slice_info"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CommunitiesSearchSlice from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in items_results (list)
+ _items = []
+ if self.items_results:
+ for _item_items_results in self.items_results:
+ _items.append(_item_items_results.to_dict() if _item_items_results is not None else None)
+ _dict['items_results'] = _items
+ # override the default output from pydantic by calling `to_dict()` of slice_info
+ if self.slice_info:
+ _dict['slice_info'] = self.slice_info.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CommunitiesSearchSlice from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "items_results": [CommunitySearchResults.from_dict(_item) for _item in obj["items_results"]] if obj.get("items_results") is not None else None,
+ "slice_info": SliceInfo.from_dict(obj["slice_info"]) if obj.get("slice_info") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_facepile_user.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_facepile_user.py
new file mode 100644
index 0000000..5915aee
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_facepile_user.py
@@ -0,0 +1,98 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.type_name import TypeName
+from twitter_openapi_python_generated.models.user_avatar import UserAvatar
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class CommunityFacepileUser(BaseModel):
+ """
+ CommunityFacepileUser
+ """ # noqa: E501
+ typename: TypeName = Field(alias="__typename")
+ avatar: UserAvatar
+ id: StrictStr
+ __properties: ClassVar[List[str]] = ["__typename", "avatar", "id"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CommunityFacepileUser from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of avatar
+ if self.avatar:
+ _dict['avatar'] = self.avatar.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CommunityFacepileUser from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "__typename": obj.get("__typename"),
+ "avatar": UserAvatar.from_dict(obj["avatar"]) if obj.get("avatar") is not None else None,
+ "id": obj.get("id")
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_facepile_user_results.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_facepile_user_results.py
new file mode 100644
index 0000000..0601ade
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_facepile_user_results.py
@@ -0,0 +1,95 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.community_facepile_user import CommunityFacepileUser
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class CommunityFacepileUserResults(BaseModel):
+ """
+ CommunityFacepileUserResults
+ """ # noqa: E501
+ id: StrictStr
+ result: CommunityFacepileUser
+ __properties: ClassVar[List[str]] = ["id", "result"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CommunityFacepileUserResults from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of result
+ if self.result:
+ _dict['result'] = self.result.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CommunityFacepileUserResults from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "result": CommunityFacepileUser.from_dict(obj["result"]) if obj.get("result") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_hashtag.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_hashtag.py
new file mode 100644
index 0000000..8f963bf
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_hashtag.py
@@ -0,0 +1,91 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr
+from typing import Any, ClassVar, Dict, List
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class CommunityHashtag(BaseModel):
+ """
+ CommunityHashtag
+ """ # noqa: E501
+ hashtag: StrictStr
+ id: StrictStr
+ __properties: ClassVar[List[str]] = ["hashtag", "id"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CommunityHashtag from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CommunityHashtag from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "hashtag": obj.get("hashtag"),
+ "id": obj.get("id")
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_hashtag_slice.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_hashtag_slice.py
new file mode 100644
index 0000000..0375143
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_hashtag_slice.py
@@ -0,0 +1,99 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.community_hashtag import CommunityHashtag
+from twitter_openapi_python_generated.models.type_name import TypeName
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class CommunityHashtagSlice(BaseModel):
+ """
+ CommunityHashtagSlice
+ """ # noqa: E501
+ typename: TypeName = Field(alias="__typename")
+ items: List[CommunityHashtag]
+ __properties: ClassVar[List[str]] = ["__typename", "items"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CommunityHashtagSlice from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in items (list)
+ _items = []
+ if self.items:
+ for _item_items in self.items:
+ _items.append(_item_items.to_dict() if _item_items is not None else None)
+ _dict['items'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CommunityHashtagSlice from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "__typename": obj.get("__typename"),
+ "items": [CommunityHashtag.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_id_user_results.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_id_user_results.py
new file mode 100644
index 0000000..8a81758
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_id_user_results.py
@@ -0,0 +1,95 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.user_union import UserUnion
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class CommunityIdUserResults(BaseModel):
+ """
+ CommunityIdUserResults
+ """ # noqa: E501
+ id: StrictStr
+ result: UserUnion
+ __properties: ClassVar[List[str]] = ["id", "result"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CommunityIdUserResults from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of result
+ if self.result:
+ _dict['result'] = self.result.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CommunityIdUserResults from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "result": UserUnion.from_dict(obj["result"]) if obj.get("result") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_list_members_action_result.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_list_members_action_result.py
new file mode 100644
index 0000000..7bc99db
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_list_members_action_result.py
@@ -0,0 +1,90 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.type_name import TypeName
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class CommunityListMembersActionResult(BaseModel):
+ """
+ CommunityListMembersActionResult
+ """ # noqa: E501
+ typename: TypeName = Field(alias="__typename")
+ __properties: ClassVar[List[str]] = ["__typename"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CommunityListMembersActionResult from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CommunityListMembersActionResult from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "__typename": obj.get("__typename")
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_page_actions.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_page_actions.py
new file mode 100644
index 0000000..87d86a7
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_page_actions.py
@@ -0,0 +1,113 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.community_page_delete_action_result import CommunityPageDeleteActionResult
+from twitter_openapi_python_generated.models.community_page_join_action_result import CommunityPageJoinActionResult
+from twitter_openapi_python_generated.models.community_page_leave_action_result import CommunityPageLeaveActionResult
+from twitter_openapi_python_generated.models.community_page_pin_action_result import CommunityPagePinActionResult
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class CommunityPageActions(BaseModel):
+ """
+ CommunityPageActions
+ """ # noqa: E501
+ delete_action_result: CommunityPageDeleteActionResult
+ id: StrictStr
+ join_action_result: CommunityPageJoinActionResult
+ leave_action_result: CommunityPageLeaveActionResult
+ pin_action_result: CommunityPagePinActionResult
+ __properties: ClassVar[List[str]] = ["delete_action_result", "id", "join_action_result", "leave_action_result", "pin_action_result"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CommunityPageActions from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of delete_action_result
+ if self.delete_action_result:
+ _dict['delete_action_result'] = self.delete_action_result.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of join_action_result
+ if self.join_action_result:
+ _dict['join_action_result'] = self.join_action_result.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of leave_action_result
+ if self.leave_action_result:
+ _dict['leave_action_result'] = self.leave_action_result.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of pin_action_result
+ if self.pin_action_result:
+ _dict['pin_action_result'] = self.pin_action_result.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CommunityPageActions from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "delete_action_result": CommunityPageDeleteActionResult.from_dict(obj["delete_action_result"]) if obj.get("delete_action_result") is not None else None,
+ "id": obj.get("id"),
+ "join_action_result": CommunityPageJoinActionResult.from_dict(obj["join_action_result"]) if obj.get("join_action_result") is not None else None,
+ "leave_action_result": CommunityPageLeaveActionResult.from_dict(obj["leave_action_result"]) if obj.get("leave_action_result") is not None else None,
+ "pin_action_result": CommunityPagePinActionResult.from_dict(obj["pin_action_result"]) if obj.get("pin_action_result") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_page_community.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_page_community.py
new file mode 100644
index 0000000..766682c
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_page_community.py
@@ -0,0 +1,187 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List
+from typing_extensions import Annotated
+from twitter_openapi_python_generated.models.community_banner_media import CommunityBannerMedia
+from twitter_openapi_python_generated.models.community_id_user_results import CommunityIdUserResults
+from twitter_openapi_python_generated.models.community_join_requests_result import CommunityJoinRequestsResult
+from twitter_openapi_python_generated.models.community_page_actions import CommunityPageActions
+from twitter_openapi_python_generated.models.community_page_invites_result import CommunityPageInvitesResult
+from twitter_openapi_python_generated.models.community_relay_rule import CommunityRelayRule
+from twitter_openapi_python_generated.models.community_viewer_relationship import CommunityViewerRelationship
+from twitter_openapi_python_generated.models.type_name import TypeName
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class CommunityPageCommunity(BaseModel):
+ """
+ CommunityPageCommunity
+ """ # noqa: E501
+ typename: TypeName = Field(alias="__typename")
+ actions: CommunityPageActions
+ admin_results: CommunityIdUserResults
+ created_at: StrictInt
+ creator_results: CommunityIdUserResults
+ custom_banner_media: CommunityBannerMedia
+ default_banner_media: CommunityBannerMedia
+ description: StrictStr
+ id: StrictStr
+ id_str: Annotated[str, Field(strict=True)]
+ invites_policy: StrictStr
+ invites_result: CommunityPageInvitesResult
+ is_nsfw: StrictBool
+ is_pinned: StrictBool
+ join_policy: StrictStr
+ join_requests_result: CommunityJoinRequestsResult
+ member_count: StrictInt
+ members_facepile_results: List[CommunityIdUserResults]
+ moderator_count: StrictInt
+ name: StrictStr
+ role: StrictStr
+ rules: List[CommunityRelayRule]
+ search_tags: List[StrictStr]
+ viewer_relationship: CommunityViewerRelationship
+ __properties: ClassVar[List[str]] = ["__typename", "actions", "admin_results", "created_at", "creator_results", "custom_banner_media", "default_banner_media", "description", "id", "id_str", "invites_policy", "invites_result", "is_nsfw", "is_pinned", "join_policy", "join_requests_result", "member_count", "members_facepile_results", "moderator_count", "name", "role", "rules", "search_tags", "viewer_relationship"]
+
+ @field_validator('id_str', mode="before")
+ def id_str_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if isinstance(value, str) and not re.match(r"^[0-9]+$", value):
+ raise ValueError(r"must validate the regular expression /^[0-9]+$/")
+ return value
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CommunityPageCommunity from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of actions
+ if self.actions:
+ _dict['actions'] = self.actions.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of admin_results
+ if self.admin_results:
+ _dict['admin_results'] = self.admin_results.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of creator_results
+ if self.creator_results:
+ _dict['creator_results'] = self.creator_results.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of custom_banner_media
+ if self.custom_banner_media:
+ _dict['custom_banner_media'] = self.custom_banner_media.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of default_banner_media
+ if self.default_banner_media:
+ _dict['default_banner_media'] = self.default_banner_media.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of invites_result
+ if self.invites_result:
+ _dict['invites_result'] = self.invites_result.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of join_requests_result
+ if self.join_requests_result:
+ _dict['join_requests_result'] = self.join_requests_result.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of each item in members_facepile_results (list)
+ _items = []
+ if self.members_facepile_results:
+ for _item_members_facepile_results in self.members_facepile_results:
+ _items.append(_item_members_facepile_results.to_dict() if _item_members_facepile_results is not None else None)
+ _dict['members_facepile_results'] = _items
+ # override the default output from pydantic by calling `to_dict()` of each item in rules (list)
+ _items = []
+ if self.rules:
+ for _item_rules in self.rules:
+ _items.append(_item_rules.to_dict() if _item_rules is not None else None)
+ _dict['rules'] = _items
+ # override the default output from pydantic by calling `to_dict()` of viewer_relationship
+ if self.viewer_relationship:
+ _dict['viewer_relationship'] = self.viewer_relationship.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CommunityPageCommunity from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "__typename": obj.get("__typename"),
+ "actions": CommunityPageActions.from_dict(obj["actions"]) if obj.get("actions") is not None else None,
+ "admin_results": CommunityIdUserResults.from_dict(obj["admin_results"]) if obj.get("admin_results") is not None else None,
+ "created_at": obj.get("created_at"),
+ "creator_results": CommunityIdUserResults.from_dict(obj["creator_results"]) if obj.get("creator_results") is not None else None,
+ "custom_banner_media": CommunityBannerMedia.from_dict(obj["custom_banner_media"]) if obj.get("custom_banner_media") is not None else None,
+ "default_banner_media": CommunityBannerMedia.from_dict(obj["default_banner_media"]) if obj.get("default_banner_media") is not None else None,
+ "description": obj.get("description"),
+ "id": obj.get("id"),
+ "id_str": obj.get("id_str"),
+ "invites_policy": obj.get("invites_policy"),
+ "invites_result": CommunityPageInvitesResult.from_dict(obj["invites_result"]) if obj.get("invites_result") is not None else None,
+ "is_nsfw": obj.get("is_nsfw"),
+ "is_pinned": obj.get("is_pinned"),
+ "join_policy": obj.get("join_policy"),
+ "join_requests_result": CommunityJoinRequestsResult.from_dict(obj["join_requests_result"]) if obj.get("join_requests_result") is not None else None,
+ "member_count": obj.get("member_count"),
+ "members_facepile_results": [CommunityIdUserResults.from_dict(_item) for _item in obj["members_facepile_results"]] if obj.get("members_facepile_results") is not None else None,
+ "moderator_count": obj.get("moderator_count"),
+ "name": obj.get("name"),
+ "role": obj.get("role"),
+ "rules": [CommunityRelayRule.from_dict(_item) for _item in obj["rules"]] if obj.get("rules") is not None else None,
+ "search_tags": obj.get("search_tags"),
+ "viewer_relationship": CommunityViewerRelationship.from_dict(obj["viewer_relationship"]) if obj.get("viewer_relationship") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_page_delete_action_result.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_page_delete_action_result.py
new file mode 100644
index 0000000..73267a1
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_page_delete_action_result.py
@@ -0,0 +1,94 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.type_name import TypeName
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class CommunityPageDeleteActionResult(BaseModel):
+ """
+ CommunityPageDeleteActionResult
+ """ # noqa: E501
+ is_community_delete_action_result: StrictStr = Field(alias="__isCommunityDeleteActionResult")
+ typename: TypeName = Field(alias="__typename")
+ reason: StrictStr
+ __properties: ClassVar[List[str]] = ["__isCommunityDeleteActionResult", "__typename", "reason"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CommunityPageDeleteActionResult from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CommunityPageDeleteActionResult from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "__isCommunityDeleteActionResult": obj.get("__isCommunityDeleteActionResult"),
+ "__typename": obj.get("__typename"),
+ "reason": obj.get("reason")
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_page_invites_result.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_page_invites_result.py
new file mode 100644
index 0000000..1edf24d
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_page_invites_result.py
@@ -0,0 +1,96 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.type_name import TypeName
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class CommunityPageInvitesResult(BaseModel):
+ """
+ CommunityPageInvitesResult
+ """ # noqa: E501
+ is_community_invites_result: StrictStr = Field(alias="__isCommunityInvitesResult")
+ typename: TypeName = Field(alias="__typename")
+ message: StrictStr
+ reason: StrictStr
+ __properties: ClassVar[List[str]] = ["__isCommunityInvitesResult", "__typename", "message", "reason"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CommunityPageInvitesResult from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CommunityPageInvitesResult from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "__isCommunityInvitesResult": obj.get("__isCommunityInvitesResult"),
+ "__typename": obj.get("__typename"),
+ "message": obj.get("message"),
+ "reason": obj.get("reason")
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_page_join_action_result.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_page_join_action_result.py
new file mode 100644
index 0000000..e31f884
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_page_join_action_result.py
@@ -0,0 +1,92 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.type_name import TypeName
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class CommunityPageJoinActionResult(BaseModel):
+ """
+ CommunityPageJoinActionResult
+ """ # noqa: E501
+ is_community_join_action_result: StrictStr = Field(alias="__isCommunityJoinActionResult")
+ typename: TypeName = Field(alias="__typename")
+ __properties: ClassVar[List[str]] = ["__isCommunityJoinActionResult", "__typename"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CommunityPageJoinActionResult from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CommunityPageJoinActionResult from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "__isCommunityJoinActionResult": obj.get("__isCommunityJoinActionResult"),
+ "__typename": obj.get("__typename")
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_page_leave_action_result.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_page_leave_action_result.py
new file mode 100644
index 0000000..c493604
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_page_leave_action_result.py
@@ -0,0 +1,96 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.type_name import TypeName
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class CommunityPageLeaveActionResult(BaseModel):
+ """
+ CommunityPageLeaveActionResult
+ """ # noqa: E501
+ is_community_leave_action_result: StrictStr = Field(alias="__isCommunityLeaveActionResult")
+ typename: TypeName = Field(alias="__typename")
+ message: StrictStr
+ reason: StrictStr
+ __properties: ClassVar[List[str]] = ["__isCommunityLeaveActionResult", "__typename", "message", "reason"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CommunityPageLeaveActionResult from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CommunityPageLeaveActionResult from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "__isCommunityLeaveActionResult": obj.get("__isCommunityLeaveActionResult"),
+ "__typename": obj.get("__typename"),
+ "message": obj.get("message"),
+ "reason": obj.get("reason")
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_page_pin_action_result.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_page_pin_action_result.py
new file mode 100644
index 0000000..0cd0567
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_page_pin_action_result.py
@@ -0,0 +1,92 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.type_name import TypeName
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class CommunityPagePinActionResult(BaseModel):
+ """
+ CommunityPagePinActionResult
+ """ # noqa: E501
+ is_community_tweet_pin_action_result: StrictStr = Field(alias="__isCommunityTweetPinActionResult")
+ typename: TypeName = Field(alias="__typename")
+ __properties: ClassVar[List[str]] = ["__isCommunityTweetPinActionResult", "__typename"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CommunityPagePinActionResult from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CommunityPagePinActionResult from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "__isCommunityTweetPinActionResult": obj.get("__isCommunityTweetPinActionResult"),
+ "__typename": obj.get("__typename")
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_page_results.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_page_results.py
new file mode 100644
index 0000000..408ed6b
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_page_results.py
@@ -0,0 +1,95 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.community_page_community import CommunityPageCommunity
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class CommunityPageResults(BaseModel):
+ """
+ CommunityPageResults
+ """ # noqa: E501
+ id: StrictStr
+ result: CommunityPageCommunity
+ __properties: ClassVar[List[str]] = ["id", "result"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CommunityPageResults from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of result
+ if self.result:
+ _dict['result'] = self.result.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CommunityPageResults from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "result": CommunityPageCommunity.from_dict(obj["result"]) if obj.get("result") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_primary_topic_name.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_primary_topic_name.py
new file mode 100644
index 0000000..ff0b58c
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_primary_topic_name.py
@@ -0,0 +1,89 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr
+from typing import Any, ClassVar, Dict, List
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class CommunityPrimaryTopicName(BaseModel):
+ """
+ CommunityPrimaryTopicName
+ """ # noqa: E501
+ topic_name: StrictStr
+ __properties: ClassVar[List[str]] = ["topic_name"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CommunityPrimaryTopicName from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CommunityPrimaryTopicName from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "topic_name": obj.get("topic_name")
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_query_response.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_query_response.py
new file mode 100644
index 0000000..737e6d5
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_query_response.py
@@ -0,0 +1,102 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List, Optional
+from twitter_openapi_python_generated.models.community_query_response_data import CommunityQueryResponseData
+from twitter_openapi_python_generated.models.error_response import ErrorResponse
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class CommunityQueryResponse(BaseModel):
+ """
+ CommunityQueryResponse
+ """ # noqa: E501
+ data: CommunityQueryResponseData
+ errors: Optional[List[ErrorResponse]] = None
+ __properties: ClassVar[List[str]] = ["data", "errors"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CommunityQueryResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of data
+ if self.data:
+ _dict['data'] = self.data.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of each item in errors (list)
+ _items = []
+ if self.errors:
+ for _item_errors in self.errors:
+ _items.append(_item_errors.to_dict() if _item_errors is not None else None)
+ _dict['errors'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CommunityQueryResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "data": CommunityQueryResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None,
+ "errors": [ErrorResponse.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_query_response_data.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_query_response_data.py
new file mode 100644
index 0000000..88f9a59
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_query_response_data.py
@@ -0,0 +1,93 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.community_settings_results import CommunitySettingsResults
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class CommunityQueryResponseData(BaseModel):
+ """
+ CommunityQueryResponseData
+ """ # noqa: E501
+ community_results: CommunitySettingsResults = Field(alias="communityResults")
+ __properties: ClassVar[List[str]] = ["communityResults"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CommunityQueryResponseData from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of community_results
+ if self.community_results:
+ _dict['communityResults'] = self.community_results.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CommunityQueryResponseData from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "communityResults": CommunitySettingsResults.from_dict(obj["communityResults"]) if obj.get("communityResults") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_relay_rule.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_relay_rule.py
new file mode 100644
index 0000000..5b7255c
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_relay_rule.py
@@ -0,0 +1,103 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class CommunityRelayRule(BaseModel):
+ """
+ CommunityRelayRule
+ """ # noqa: E501
+ description: Optional[StrictStr] = None
+ id: StrictStr
+ name: StrictStr
+ rest_id: Annotated[str, Field(strict=True)]
+ __properties: ClassVar[List[str]] = ["description", "id", "name", "rest_id"]
+
+ @field_validator('rest_id', mode="before")
+ def rest_id_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if isinstance(value, str) and not re.match(r"^[0-9]+$", value):
+ raise ValueError(r"must validate the regular expression /^[0-9]+$/")
+ return value
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CommunityRelayRule from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CommunityRelayRule from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "description": obj.get("description"),
+ "id": obj.get("id"),
+ "name": obj.get("name"),
+ "rest_id": obj.get("rest_id")
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_search_community.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_search_community.py
new file mode 100644
index 0000000..fd95763
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_search_community.py
@@ -0,0 +1,134 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from twitter_openapi_python_generated.models.community_banner_media import CommunityBannerMedia
+from twitter_openapi_python_generated.models.community_facepile_user_results import CommunityFacepileUserResults
+from twitter_openapi_python_generated.models.community_primary_topic_name import CommunityPrimaryTopicName
+from twitter_openapi_python_generated.models.type_name import TypeName
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class CommunitySearchCommunity(BaseModel):
+ """
+ CommunitySearchCommunity
+ """ # noqa: E501
+ typename: TypeName = Field(alias="__typename")
+ custom_banner_media: Optional[CommunityBannerMedia] = None
+ default_banner_media: CommunityBannerMedia
+ id: StrictStr
+ is_nsfw: StrictBool
+ member_count: StrictInt
+ members_facepile_results: List[CommunityFacepileUserResults]
+ name: StrictStr
+ primary_community_topic: Optional[CommunityPrimaryTopicName] = None
+ rest_id: Annotated[str, Field(strict=True)]
+ __properties: ClassVar[List[str]] = ["__typename", "custom_banner_media", "default_banner_media", "id", "is_nsfw", "member_count", "members_facepile_results", "name", "primary_community_topic", "rest_id"]
+
+ @field_validator('rest_id', mode="before")
+ def rest_id_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if isinstance(value, str) and not re.match(r"^[0-9]+$", value):
+ raise ValueError(r"must validate the regular expression /^[0-9]+$/")
+ return value
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CommunitySearchCommunity from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of custom_banner_media
+ if self.custom_banner_media:
+ _dict['custom_banner_media'] = self.custom_banner_media.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of default_banner_media
+ if self.default_banner_media:
+ _dict['default_banner_media'] = self.default_banner_media.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of each item in members_facepile_results (list)
+ _items = []
+ if self.members_facepile_results:
+ for _item_members_facepile_results in self.members_facepile_results:
+ _items.append(_item_members_facepile_results.to_dict() if _item_members_facepile_results is not None else None)
+ _dict['members_facepile_results'] = _items
+ # override the default output from pydantic by calling `to_dict()` of primary_community_topic
+ if self.primary_community_topic:
+ _dict['primary_community_topic'] = self.primary_community_topic.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CommunitySearchCommunity from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "__typename": obj.get("__typename"),
+ "custom_banner_media": CommunityBannerMedia.from_dict(obj["custom_banner_media"]) if obj.get("custom_banner_media") is not None else None,
+ "default_banner_media": CommunityBannerMedia.from_dict(obj["default_banner_media"]) if obj.get("default_banner_media") is not None else None,
+ "id": obj.get("id"),
+ "is_nsfw": obj.get("is_nsfw"),
+ "member_count": obj.get("member_count"),
+ "members_facepile_results": [CommunityFacepileUserResults.from_dict(_item) for _item in obj["members_facepile_results"]] if obj.get("members_facepile_results") is not None else None,
+ "name": obj.get("name"),
+ "primary_community_topic": CommunityPrimaryTopicName.from_dict(obj["primary_community_topic"]) if obj.get("primary_community_topic") is not None else None,
+ "rest_id": obj.get("rest_id")
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_search_results.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_search_results.py
new file mode 100644
index 0000000..55acf16
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_search_results.py
@@ -0,0 +1,95 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.community_search_community import CommunitySearchCommunity
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class CommunitySearchResults(BaseModel):
+ """
+ CommunitySearchResults
+ """ # noqa: E501
+ id: StrictStr
+ result: CommunitySearchCommunity
+ __properties: ClassVar[List[str]] = ["id", "result"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CommunitySearchResults from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of result
+ if self.result:
+ _dict['result'] = self.result.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CommunitySearchResults from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "result": CommunitySearchCommunity.from_dict(obj["result"]) if obj.get("result") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_settings_actions.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_settings_actions.py
new file mode 100644
index 0000000..e0aa3d2
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_settings_actions.py
@@ -0,0 +1,101 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.community_join_action_result_union import CommunityJoinActionResultUnion
+from twitter_openapi_python_generated.models.community_list_members_action_result import CommunityListMembersActionResult
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class CommunitySettingsActions(BaseModel):
+ """
+ CommunitySettingsActions
+ """ # noqa: E501
+ id: StrictStr
+ join_action_result: CommunityJoinActionResultUnion
+ list_members_action_result: CommunityListMembersActionResult
+ __properties: ClassVar[List[str]] = ["id", "join_action_result", "list_members_action_result"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CommunitySettingsActions from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of join_action_result
+ if self.join_action_result:
+ _dict['join_action_result'] = self.join_action_result.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of list_members_action_result
+ if self.list_members_action_result:
+ _dict['list_members_action_result'] = self.list_members_action_result.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CommunitySettingsActions from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "join_action_result": CommunityJoinActionResultUnion.from_dict(obj["join_action_result"]) if obj.get("join_action_result") is not None else None,
+ "list_members_action_result": CommunityListMembersActionResult.from_dict(obj["list_members_action_result"]) if obj.get("list_members_action_result") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_settings_community.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_settings_community.py
new file mode 100644
index 0000000..738b835
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_settings_community.py
@@ -0,0 +1,183 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List
+from typing_extensions import Annotated
+from twitter_openapi_python_generated.models.community_banner_media import CommunityBannerMedia
+from twitter_openapi_python_generated.models.community_facepile_user_results import CommunityFacepileUserResults
+from twitter_openapi_python_generated.models.community_hashtag_slice import CommunityHashtagSlice
+from twitter_openapi_python_generated.models.community_join_requests_result import CommunityJoinRequestsResult
+from twitter_openapi_python_generated.models.community_primary_topic_name import CommunityPrimaryTopicName
+from twitter_openapi_python_generated.models.community_relay_rule import CommunityRelayRule
+from twitter_openapi_python_generated.models.community_settings_actions import CommunitySettingsActions
+from twitter_openapi_python_generated.models.community_settings_creator_results import CommunitySettingsCreatorResults
+from twitter_openapi_python_generated.models.community_settings_invites_result import CommunitySettingsInvitesResult
+from twitter_openapi_python_generated.models.type_name import TypeName
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class CommunitySettingsCommunity(BaseModel):
+ """
+ CommunitySettingsCommunity
+ """ # noqa: E501
+ typename: TypeName = Field(alias="__typename")
+ actions: CommunitySettingsActions
+ created_at: StrictInt
+ creator_results: CommunitySettingsCreatorResults
+ custom_banner_media: CommunityBannerMedia
+ default_banner_media: CommunityBannerMedia
+ description: StrictStr
+ id: StrictStr
+ invites_result: CommunitySettingsInvitesResult
+ is_member: StrictBool
+ is_nsfw: StrictBool
+ join_policy: StrictStr
+ join_requests_result: CommunityJoinRequestsResult
+ member_count: StrictInt
+ members_facepile_results: List[CommunityFacepileUserResults]
+ name: StrictStr
+ primary_community_topic: CommunityPrimaryTopicName
+ rest_id: Annotated[str, Field(strict=True)]
+ role: StrictStr
+ rules: List[CommunityRelayRule]
+ trending_hashtags_slice: CommunityHashtagSlice
+ __properties: ClassVar[List[str]] = ["__typename", "actions", "created_at", "creator_results", "custom_banner_media", "default_banner_media", "description", "id", "invites_result", "is_member", "is_nsfw", "join_policy", "join_requests_result", "member_count", "members_facepile_results", "name", "primary_community_topic", "rest_id", "role", "rules", "trending_hashtags_slice"]
+
+ @field_validator('rest_id', mode="before")
+ def rest_id_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if isinstance(value, str) and not re.match(r"^[0-9]+$", value):
+ raise ValueError(r"must validate the regular expression /^[0-9]+$/")
+ return value
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CommunitySettingsCommunity from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of actions
+ if self.actions:
+ _dict['actions'] = self.actions.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of creator_results
+ if self.creator_results:
+ _dict['creator_results'] = self.creator_results.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of custom_banner_media
+ if self.custom_banner_media:
+ _dict['custom_banner_media'] = self.custom_banner_media.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of default_banner_media
+ if self.default_banner_media:
+ _dict['default_banner_media'] = self.default_banner_media.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of invites_result
+ if self.invites_result:
+ _dict['invites_result'] = self.invites_result.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of join_requests_result
+ if self.join_requests_result:
+ _dict['join_requests_result'] = self.join_requests_result.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of each item in members_facepile_results (list)
+ _items = []
+ if self.members_facepile_results:
+ for _item_members_facepile_results in self.members_facepile_results:
+ _items.append(_item_members_facepile_results.to_dict() if _item_members_facepile_results is not None else None)
+ _dict['members_facepile_results'] = _items
+ # override the default output from pydantic by calling `to_dict()` of primary_community_topic
+ if self.primary_community_topic:
+ _dict['primary_community_topic'] = self.primary_community_topic.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of each item in rules (list)
+ _items = []
+ if self.rules:
+ for _item_rules in self.rules:
+ _items.append(_item_rules.to_dict() if _item_rules is not None else None)
+ _dict['rules'] = _items
+ # override the default output from pydantic by calling `to_dict()` of trending_hashtags_slice
+ if self.trending_hashtags_slice:
+ _dict['trending_hashtags_slice'] = self.trending_hashtags_slice.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CommunitySettingsCommunity from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "__typename": obj.get("__typename"),
+ "actions": CommunitySettingsActions.from_dict(obj["actions"]) if obj.get("actions") is not None else None,
+ "created_at": obj.get("created_at"),
+ "creator_results": CommunitySettingsCreatorResults.from_dict(obj["creator_results"]) if obj.get("creator_results") is not None else None,
+ "custom_banner_media": CommunityBannerMedia.from_dict(obj["custom_banner_media"]) if obj.get("custom_banner_media") is not None else None,
+ "default_banner_media": CommunityBannerMedia.from_dict(obj["default_banner_media"]) if obj.get("default_banner_media") is not None else None,
+ "description": obj.get("description"),
+ "id": obj.get("id"),
+ "invites_result": CommunitySettingsInvitesResult.from_dict(obj["invites_result"]) if obj.get("invites_result") is not None else None,
+ "is_member": obj.get("is_member"),
+ "is_nsfw": obj.get("is_nsfw"),
+ "join_policy": obj.get("join_policy"),
+ "join_requests_result": CommunityJoinRequestsResult.from_dict(obj["join_requests_result"]) if obj.get("join_requests_result") is not None else None,
+ "member_count": obj.get("member_count"),
+ "members_facepile_results": [CommunityFacepileUserResults.from_dict(_item) for _item in obj["members_facepile_results"]] if obj.get("members_facepile_results") is not None else None,
+ "name": obj.get("name"),
+ "primary_community_topic": CommunityPrimaryTopicName.from_dict(obj["primary_community_topic"]) if obj.get("primary_community_topic") is not None else None,
+ "rest_id": obj.get("rest_id"),
+ "role": obj.get("role"),
+ "rules": [CommunityRelayRule.from_dict(_item) for _item in obj["rules"]] if obj.get("rules") is not None else None,
+ "trending_hashtags_slice": CommunityHashtagSlice.from_dict(obj["trending_hashtags_slice"]) if obj.get("trending_hashtags_slice") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_settings_creator.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_settings_creator.py
new file mode 100644
index 0000000..3b18a4d
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_settings_creator.py
@@ -0,0 +1,106 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.community_settings_creator_core import CommunitySettingsCreatorCore
+from twitter_openapi_python_generated.models.community_settings_creator_verification import CommunitySettingsCreatorVerification
+from twitter_openapi_python_generated.models.type_name import TypeName
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class CommunitySettingsCreator(BaseModel):
+ """
+ CommunitySettingsCreator
+ """ # noqa: E501
+ typename: TypeName = Field(alias="__typename")
+ core: CommunitySettingsCreatorCore
+ id: StrictStr
+ is_blue_verified: StrictBool
+ verification: CommunitySettingsCreatorVerification
+ __properties: ClassVar[List[str]] = ["__typename", "core", "id", "is_blue_verified", "verification"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CommunitySettingsCreator from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of core
+ if self.core:
+ _dict['core'] = self.core.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of verification
+ if self.verification:
+ _dict['verification'] = self.verification.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CommunitySettingsCreator from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "__typename": obj.get("__typename"),
+ "core": CommunitySettingsCreatorCore.from_dict(obj["core"]) if obj.get("core") is not None else None,
+ "id": obj.get("id"),
+ "is_blue_verified": obj.get("is_blue_verified"),
+ "verification": CommunitySettingsCreatorVerification.from_dict(obj["verification"]) if obj.get("verification") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_settings_creator_core.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_settings_creator_core.py
new file mode 100644
index 0000000..06f9181
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_settings_creator_core.py
@@ -0,0 +1,89 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr
+from typing import Any, ClassVar, Dict, List
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class CommunitySettingsCreatorCore(BaseModel):
+ """
+ CommunitySettingsCreatorCore
+ """ # noqa: E501
+ screen_name: StrictStr
+ __properties: ClassVar[List[str]] = ["screen_name"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CommunitySettingsCreatorCore from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CommunitySettingsCreatorCore from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "screen_name": obj.get("screen_name")
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_settings_creator_results.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_settings_creator_results.py
new file mode 100644
index 0000000..17a8cb1
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_settings_creator_results.py
@@ -0,0 +1,95 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.community_settings_creator import CommunitySettingsCreator
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class CommunitySettingsCreatorResults(BaseModel):
+ """
+ CommunitySettingsCreatorResults
+ """ # noqa: E501
+ id: StrictStr
+ result: CommunitySettingsCreator
+ __properties: ClassVar[List[str]] = ["id", "result"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CommunitySettingsCreatorResults from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of result
+ if self.result:
+ _dict['result'] = self.result.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CommunitySettingsCreatorResults from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "result": CommunitySettingsCreator.from_dict(obj["result"]) if obj.get("result") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_settings_creator_verification.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_settings_creator_verification.py
new file mode 100644
index 0000000..2986b4c
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_settings_creator_verification.py
@@ -0,0 +1,89 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictBool
+from typing import Any, ClassVar, Dict, List
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class CommunitySettingsCreatorVerification(BaseModel):
+ """
+ CommunitySettingsCreatorVerification
+ """ # noqa: E501
+ verified: StrictBool
+ __properties: ClassVar[List[str]] = ["verified"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CommunitySettingsCreatorVerification from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CommunitySettingsCreatorVerification from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "verified": obj.get("verified")
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_settings_invites_result.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_settings_invites_result.py
new file mode 100644
index 0000000..c0e960a
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_settings_invites_result.py
@@ -0,0 +1,90 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.type_name import TypeName
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class CommunitySettingsInvitesResult(BaseModel):
+ """
+ CommunitySettingsInvitesResult
+ """ # noqa: E501
+ typename: TypeName = Field(alias="__typename")
+ __properties: ClassVar[List[str]] = ["__typename"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CommunitySettingsInvitesResult from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CommunitySettingsInvitesResult from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "__typename": obj.get("__typename")
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_settings_results.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_settings_results.py
new file mode 100644
index 0000000..1677c71
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_settings_results.py
@@ -0,0 +1,95 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.community_settings_community import CommunitySettingsCommunity
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class CommunitySettingsResults(BaseModel):
+ """
+ CommunitySettingsResults
+ """ # noqa: E501
+ id: StrictStr
+ result: CommunitySettingsCommunity
+ __properties: ClassVar[List[str]] = ["id", "result"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CommunitySettingsResults from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of result
+ if self.result:
+ _dict['result'] = self.result.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CommunitySettingsResults from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "result": CommunitySettingsCommunity.from_dict(obj["result"]) if obj.get("result") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_subtopic.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_subtopic.py
new file mode 100644
index 0000000..a40d07d
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_subtopic.py
@@ -0,0 +1,99 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List
+from typing_extensions import Annotated
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class CommunitySubtopic(BaseModel):
+ """
+ CommunitySubtopic
+ """ # noqa: E501
+ topic_id: Annotated[str, Field(strict=True)]
+ topic_name: StrictStr
+ __properties: ClassVar[List[str]] = ["topic_id", "topic_name"]
+
+ @field_validator('topic_id', mode="before")
+ def topic_id_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if isinstance(value, str) and not re.match(r"^[0-9]+$", value):
+ raise ValueError(r"must validate the regular expression /^[0-9]+$/")
+ return value
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CommunitySubtopic from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CommunitySubtopic from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "topic_id": obj.get("topic_id"),
+ "topic_name": obj.get("topic_name")
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_topic.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_topic.py
new file mode 100644
index 0000000..3e98490
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_topic.py
@@ -0,0 +1,108 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List
+from typing_extensions import Annotated
+from twitter_openapi_python_generated.models.community_subtopic import CommunitySubtopic
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class CommunityTopic(BaseModel):
+ """
+ CommunityTopic
+ """ # noqa: E501
+ subtopics: List[CommunitySubtopic]
+ topic_id: Annotated[str, Field(strict=True)]
+ topic_name: StrictStr
+ __properties: ClassVar[List[str]] = ["subtopics", "topic_id", "topic_name"]
+
+ @field_validator('topic_id', mode="before")
+ def topic_id_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if isinstance(value, str) and not re.match(r"^[0-9]+$", value):
+ raise ValueError(r"must validate the regular expression /^[0-9]+$/")
+ return value
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CommunityTopic from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in subtopics (list)
+ _items = []
+ if self.subtopics:
+ for _item_subtopics in self.subtopics:
+ _items.append(_item_subtopics.to_dict() if _item_subtopics is not None else None)
+ _dict['subtopics'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CommunityTopic from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "subtopics": [CommunitySubtopic.from_dict(_item) for _item in obj["subtopics"]] if obj.get("subtopics") is not None else None,
+ "topic_id": obj.get("topic_id"),
+ "topic_name": obj.get("topic_name")
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_topic_results.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_topic_results.py
new file mode 100644
index 0000000..c2dd1d4
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/community_topic_results.py
@@ -0,0 +1,96 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.community_topic import CommunityTopic
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class CommunityTopicResults(BaseModel):
+ """
+ CommunityTopicResults
+ """ # noqa: E501
+ community_topics: List[CommunityTopic]
+ __properties: ClassVar[List[str]] = ["community_topics"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CommunityTopicResults from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in community_topics (list)
+ _items = []
+ if self.community_topics:
+ for _item_community_topics in self.community_topics:
+ _items.append(_item_community_topics.to_dict() if _item_community_topics is not None else None)
+ _dict['community_topics'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CommunityTopicResults from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "community_topics": [CommunityTopic.from_dict(_item) for _item in obj["community_topics"]] if obj.get("community_topics") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/content_item_type.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/content_item_type.py
index 0a17c1b..b113441 100644
--- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/content_item_type.py
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/content_item_type.py
@@ -39,6 +39,7 @@ class ContentItemType(str, Enum):
TIMELINEFRAME = 'TimelineFrame'
TIMELINETWITTERLIST = 'TimelineTwitterList'
TIMELINELABEL = 'TimelineLabel'
+ TIMELINEEVENTSUMMARY = 'TimelineEventSummary'
@classmethod
def from_json(cls, json_str: str) -> Self:
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/creator_studio_tab_bar_item_query_response.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/creator_studio_tab_bar_item_query_response.py
new file mode 100644
index 0000000..bd098a1
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/creator_studio_tab_bar_item_query_response.py
@@ -0,0 +1,102 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List, Optional
+from twitter_openapi_python_generated.models.creator_studio_tab_bar_item_query_response_data import CreatorStudioTabBarItemQueryResponseData
+from twitter_openapi_python_generated.models.error_response import ErrorResponse
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class CreatorStudioTabBarItemQueryResponse(BaseModel):
+ """
+ CreatorStudioTabBarItemQueryResponse
+ """ # noqa: E501
+ data: CreatorStudioTabBarItemQueryResponseData
+ errors: Optional[List[ErrorResponse]] = None
+ __properties: ClassVar[List[str]] = ["data", "errors"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreatorStudioTabBarItemQueryResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of data
+ if self.data:
+ _dict['data'] = self.data.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of each item in errors (list)
+ _items = []
+ if self.errors:
+ for _item_errors in self.errors:
+ _items.append(_item_errors.to_dict() if _item_errors is not None else None)
+ _dict['errors'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreatorStudioTabBarItemQueryResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "data": CreatorStudioTabBarItemQueryResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None,
+ "errors": [ErrorResponse.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/creator_studio_tab_bar_item_query_response_data.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/creator_studio_tab_bar_item_query_response_data.py
new file mode 100644
index 0000000..a570ac5
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/creator_studio_tab_bar_item_query_response_data.py
@@ -0,0 +1,89 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class CreatorStudioTabBarItemQueryResponseData(BaseModel):
+ """
+ CreatorStudioTabBarItemQueryResponseData
+ """ # noqa: E501
+ xpayments_audience_rewards_tasks: List[Dict[str, Any]]
+ __properties: ClassVar[List[str]] = ["xpayments_audience_rewards_tasks"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreatorStudioTabBarItemQueryResponseData from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreatorStudioTabBarItemQueryResponseData from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "xpayments_audience_rewards_tasks": obj.get("xpayments_audience_rewards_tasks")
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/data_saver_mode_response.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/data_saver_mode_response.py
new file mode 100644
index 0000000..c0c47e3
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/data_saver_mode_response.py
@@ -0,0 +1,102 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List, Optional
+from twitter_openapi_python_generated.models.data_saver_mode_response_data import DataSaverModeResponseData
+from twitter_openapi_python_generated.models.error_response import ErrorResponse
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class DataSaverModeResponse(BaseModel):
+ """
+ DataSaverModeResponse
+ """ # noqa: E501
+ data: DataSaverModeResponseData
+ errors: Optional[List[ErrorResponse]] = None
+ __properties: ClassVar[List[str]] = ["data", "errors"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of DataSaverModeResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of data
+ if self.data:
+ _dict['data'] = self.data.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of each item in errors (list)
+ _items = []
+ if self.errors:
+ for _item_errors in self.errors:
+ _items.append(_item_errors.to_dict() if _item_errors is not None else None)
+ _dict['errors'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of DataSaverModeResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "data": DataSaverModeResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None,
+ "errors": [ErrorResponse.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/data_saver_mode_response_data.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/data_saver_mode_response_data.py
new file mode 100644
index 0000000..fab707c
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/data_saver_mode_response_data.py
@@ -0,0 +1,89 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class DataSaverModeResponseData(BaseModel):
+ """
+ DataSaverModeResponseData
+ """ # noqa: E501
+ viewer: Dict[str, Any]
+ __properties: ClassVar[List[str]] = ["viewer"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of DataSaverModeResponseData from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of DataSaverModeResponseData from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "viewer": obj.get("viewer")
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/event_summary_ad_metadata_container.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/event_summary_ad_metadata_container.py
new file mode 100644
index 0000000..6c3380b
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/event_summary_ad_metadata_container.py
@@ -0,0 +1,91 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool
+from typing import Any, ClassVar, Dict, List
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class EventSummaryAdMetadataContainer(BaseModel):
+ """
+ EventSummaryAdMetadataContainer
+ """ # noqa: E501
+ is_quick_promote: StrictBool = Field(alias="isQuickPromote")
+ render_sales_cta_website_card: StrictBool = Field(alias="renderSalesCtaWebsiteCard")
+ __properties: ClassVar[List[str]] = ["isQuickPromote", "renderSalesCtaWebsiteCard"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of EventSummaryAdMetadataContainer from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of EventSummaryAdMetadataContainer from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "isQuickPromote": obj.get("isQuickPromote"),
+ "renderSalesCtaWebsiteCard": obj.get("renderSalesCtaWebsiteCard")
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/event_summary_event.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/event_summary_event.py
new file mode 100644
index 0000000..861be91
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/event_summary_event.py
@@ -0,0 +1,97 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, field_validator
+from typing import Any, ClassVar, Dict, List
+from typing_extensions import Annotated
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class EventSummaryEvent(BaseModel):
+ """
+ EventSummaryEvent
+ """ # noqa: E501
+ rest_id: Annotated[str, Field(strict=True)]
+ __properties: ClassVar[List[str]] = ["rest_id"]
+
+ @field_validator('rest_id', mode="before")
+ def rest_id_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if isinstance(value, str) and not re.match(r"^[0-9]+$", value):
+ raise ValueError(r"must validate the regular expression /^[0-9]+$/")
+ return value
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of EventSummaryEvent from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of EventSummaryEvent from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "rest_id": obj.get("rest_id")
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/event_summary_media.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/event_summary_media.py
new file mode 100644
index 0000000..774183b
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/event_summary_media.py
@@ -0,0 +1,99 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.event_summary_media_entity import EventSummaryMediaEntity
+from twitter_openapi_python_generated.models.event_summary_media_key import EventSummaryMediaKey
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class EventSummaryMedia(BaseModel):
+ """
+ EventSummaryMedia
+ """ # noqa: E501
+ media_entity: EventSummaryMediaEntity = Field(alias="mediaEntity")
+ media_key: EventSummaryMediaKey = Field(alias="mediaKey")
+ __properties: ClassVar[List[str]] = ["mediaEntity", "mediaKey"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of EventSummaryMedia from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of media_entity
+ if self.media_entity:
+ _dict['mediaEntity'] = self.media_entity.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of media_key
+ if self.media_key:
+ _dict['mediaKey'] = self.media_key.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of EventSummaryMedia from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "mediaEntity": EventSummaryMediaEntity.from_dict(obj["mediaEntity"]) if obj.get("mediaEntity") is not None else None,
+ "mediaKey": EventSummaryMediaKey.from_dict(obj["mediaKey"]) if obj.get("mediaKey") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/event_summary_media_entity.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/event_summary_media_entity.py
new file mode 100644
index 0000000..19f6e11
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/event_summary_media_entity.py
@@ -0,0 +1,95 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.item_result import ItemResult
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class EventSummaryMediaEntity(BaseModel):
+ """
+ EventSummaryMediaEntity
+ """ # noqa: E501
+ tweet_results: ItemResult
+ type: StrictStr
+ __properties: ClassVar[List[str]] = ["tweet_results", "type"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of EventSummaryMediaEntity from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of tweet_results
+ if self.tweet_results:
+ _dict['tweet_results'] = self.tweet_results.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of EventSummaryMediaEntity from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "tweet_results": ItemResult.from_dict(obj["tweet_results"]) if obj.get("tweet_results") is not None else None,
+ "type": obj.get("type")
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/event_summary_media_key.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/event_summary_media_key.py
new file mode 100644
index 0000000..fa633fd
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/event_summary_media_key.py
@@ -0,0 +1,91 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class EventSummaryMediaKey(BaseModel):
+ """
+ EventSummaryMediaKey
+ """ # noqa: E501
+ category: StrictInt
+ id: StrictStr
+ __properties: ClassVar[List[str]] = ["category", "id"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of EventSummaryMediaKey from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of EventSummaryMediaKey from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "category": obj.get("category"),
+ "id": obj.get("id")
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/event_summary_promoted_metadata.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/event_summary_promoted_metadata.py
new file mode 100644
index 0000000..68a2df7
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/event_summary_promoted_metadata.py
@@ -0,0 +1,117 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.event_summary_ad_metadata_container import EventSummaryAdMetadataContainer
+from twitter_openapi_python_generated.models.promoted_trend import PromotedTrend
+from twitter_openapi_python_generated.models.user_results import UserResults
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class EventSummaryPromotedMetadata(BaseModel):
+ """
+ EventSummaryPromotedMetadata
+ """ # noqa: E501
+ ad_metadata_container: EventSummaryAdMetadataContainer = Field(alias="adMetadataContainer")
+ advertiser_results: UserResults
+ disclosure_type: StrictStr = Field(alias="disclosureType")
+ impression_id: StrictStr = Field(alias="impressionId")
+ impression_string: StrictStr = Field(alias="impressionString")
+ promoted_trend: PromotedTrend = Field(alias="promotedTrend")
+ promoted_trend_description: StrictStr = Field(alias="promotedTrendDescription")
+ promoted_trend_name: StrictStr = Field(alias="promotedTrendName")
+ promoted_trend_query_term: StrictStr = Field(alias="promotedTrendQueryTerm")
+ __properties: ClassVar[List[str]] = ["adMetadataContainer", "advertiser_results", "disclosureType", "impressionId", "impressionString", "promotedTrend", "promotedTrendDescription", "promotedTrendName", "promotedTrendQueryTerm"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of EventSummaryPromotedMetadata from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of ad_metadata_container
+ if self.ad_metadata_container:
+ _dict['adMetadataContainer'] = self.ad_metadata_container.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of advertiser_results
+ if self.advertiser_results:
+ _dict['advertiser_results'] = self.advertiser_results.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of promoted_trend
+ if self.promoted_trend:
+ _dict['promotedTrend'] = self.promoted_trend.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of EventSummaryPromotedMetadata from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "adMetadataContainer": EventSummaryAdMetadataContainer.from_dict(obj["adMetadataContainer"]) if obj.get("adMetadataContainer") is not None else None,
+ "advertiser_results": UserResults.from_dict(obj["advertiser_results"]) if obj.get("advertiser_results") is not None else None,
+ "disclosureType": obj.get("disclosureType"),
+ "impressionId": obj.get("impressionId"),
+ "impressionString": obj.get("impressionString"),
+ "promotedTrend": PromotedTrend.from_dict(obj["promotedTrend"]) if obj.get("promotedTrend") is not None else None,
+ "promotedTrendDescription": obj.get("promotedTrendDescription"),
+ "promotedTrendName": obj.get("promotedTrendName"),
+ "promotedTrendQueryTerm": obj.get("promotedTrendQueryTerm")
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/explore_sidebar_response.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/explore_sidebar_response.py
new file mode 100644
index 0000000..2087f81
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/explore_sidebar_response.py
@@ -0,0 +1,102 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List, Optional
+from twitter_openapi_python_generated.models.error_response import ErrorResponse
+from twitter_openapi_python_generated.models.explore_sidebar_response_data import ExploreSidebarResponseData
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class ExploreSidebarResponse(BaseModel):
+ """
+ ExploreSidebarResponse
+ """ # noqa: E501
+ data: ExploreSidebarResponseData
+ errors: Optional[List[ErrorResponse]] = None
+ __properties: ClassVar[List[str]] = ["data", "errors"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of ExploreSidebarResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of data
+ if self.data:
+ _dict['data'] = self.data.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of each item in errors (list)
+ _items = []
+ if self.errors:
+ for _item_errors in self.errors:
+ _items.append(_item_errors.to_dict() if _item_errors is not None else None)
+ _dict['errors'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ExploreSidebarResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "data": ExploreSidebarResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None,
+ "errors": [ErrorResponse.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/explore_sidebar_response_data.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/explore_sidebar_response_data.py
new file mode 100644
index 0000000..69e0b06
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/explore_sidebar_response_data.py
@@ -0,0 +1,93 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.timeline_result import TimelineResult
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class ExploreSidebarResponseData(BaseModel):
+ """
+ ExploreSidebarResponseData
+ """ # noqa: E501
+ explore_sidebar: TimelineResult
+ __properties: ClassVar[List[str]] = ["explore_sidebar"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of ExploreSidebarResponseData from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of explore_sidebar
+ if self.explore_sidebar:
+ _dict['explore_sidebar'] = self.explore_sidebar.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ExploreSidebarResponseData from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "explore_sidebar": TimelineResult.from_dict(obj["explore_sidebar"]) if obj.get("explore_sidebar") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/feedback_action.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/feedback_action.py
index 90f7cc2..10438b9 100644
--- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/feedback_action.py
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/feedback_action.py
@@ -50,13 +50,6 @@ def confirmation_display_type_validate_enum(cls, value):
raise ValueError("must be one of enum values ('BottomSheet', 'Inline')")
return value
- @field_validator('feedback_type')
- def feedback_type_validate_enum(cls, value):
- """Validates the enum"""
- if value not in set(['DontLike', 'GiveFeedback', 'NotCredible', 'NotRelevant', 'SeeFewer']):
- raise ValueError("must be one of enum values ('DontLike', 'GiveFeedback', 'NotCredible', 'NotRelevant', 'SeeFewer')")
- return value
-
@field_validator('icon')
def icon_validate_enum(cls, value):
"""Validates the enum"""
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/global_communities_latest_post_search.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/global_communities_latest_post_search.py
new file mode 100644
index 0000000..ed3ac2b
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/global_communities_latest_post_search.py
@@ -0,0 +1,93 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.timeline_result import TimelineResult
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class GlobalCommunitiesLatestPostSearch(BaseModel):
+ """
+ GlobalCommunitiesLatestPostSearch
+ """ # noqa: E501
+ communities_latest_posts_search_page: TimelineResult
+ __properties: ClassVar[List[str]] = ["communities_latest_posts_search_page"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GlobalCommunitiesLatestPostSearch from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of communities_latest_posts_search_page
+ if self.communities_latest_posts_search_page:
+ _dict['communities_latest_posts_search_page'] = self.communities_latest_posts_search_page.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GlobalCommunitiesLatestPostSearch from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "communities_latest_posts_search_page": TimelineResult.from_dict(obj["communities_latest_posts_search_page"]) if obj.get("communities_latest_posts_search_page") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/global_communities_latest_post_search_timeline_response.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/global_communities_latest_post_search_timeline_response.py
new file mode 100644
index 0000000..ce6fafc
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/global_communities_latest_post_search_timeline_response.py
@@ -0,0 +1,102 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List, Optional
+from twitter_openapi_python_generated.models.error_response import ErrorResponse
+from twitter_openapi_python_generated.models.global_communities_latest_post_search_timeline_response_data import GlobalCommunitiesLatestPostSearchTimelineResponseData
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class GlobalCommunitiesLatestPostSearchTimelineResponse(BaseModel):
+ """
+ GlobalCommunitiesLatestPostSearchTimelineResponse
+ """ # noqa: E501
+ data: GlobalCommunitiesLatestPostSearchTimelineResponseData
+ errors: Optional[List[ErrorResponse]] = None
+ __properties: ClassVar[List[str]] = ["data", "errors"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GlobalCommunitiesLatestPostSearchTimelineResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of data
+ if self.data:
+ _dict['data'] = self.data.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of each item in errors (list)
+ _items = []
+ if self.errors:
+ for _item_errors in self.errors:
+ _items.append(_item_errors.to_dict() if _item_errors is not None else None)
+ _dict['errors'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GlobalCommunitiesLatestPostSearchTimelineResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "data": GlobalCommunitiesLatestPostSearchTimelineResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None,
+ "errors": [ErrorResponse.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/global_communities_latest_post_search_timeline_response_data.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/global_communities_latest_post_search_timeline_response_data.py
new file mode 100644
index 0000000..0a1150c
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/global_communities_latest_post_search_timeline_response_data.py
@@ -0,0 +1,93 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.global_communities_latest_post_search import GlobalCommunitiesLatestPostSearch
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class GlobalCommunitiesLatestPostSearchTimelineResponseData(BaseModel):
+ """
+ GlobalCommunitiesLatestPostSearchTimelineResponseData
+ """ # noqa: E501
+ search_by_raw_query: GlobalCommunitiesLatestPostSearch
+ __properties: ClassVar[List[str]] = ["search_by_raw_query"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GlobalCommunitiesLatestPostSearchTimelineResponseData from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of search_by_raw_query
+ if self.search_by_raw_query:
+ _dict['search_by_raw_query'] = self.search_by_raw_query.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GlobalCommunitiesLatestPostSearchTimelineResponseData from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "search_by_raw_query": GlobalCommunitiesLatestPostSearch.from_dict(obj["search_by_raw_query"]) if obj.get("search_by_raw_query") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/global_communities_post_search.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/global_communities_post_search.py
new file mode 100644
index 0000000..df40be2
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/global_communities_post_search.py
@@ -0,0 +1,93 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.timeline_result import TimelineResult
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class GlobalCommunitiesPostSearch(BaseModel):
+ """
+ GlobalCommunitiesPostSearch
+ """ # noqa: E501
+ communities_posts_search_page: TimelineResult
+ __properties: ClassVar[List[str]] = ["communities_posts_search_page"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GlobalCommunitiesPostSearch from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of communities_posts_search_page
+ if self.communities_posts_search_page:
+ _dict['communities_posts_search_page'] = self.communities_posts_search_page.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GlobalCommunitiesPostSearch from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "communities_posts_search_page": TimelineResult.from_dict(obj["communities_posts_search_page"]) if obj.get("communities_posts_search_page") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/global_communities_post_search_timeline_response.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/global_communities_post_search_timeline_response.py
new file mode 100644
index 0000000..634efe4
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/global_communities_post_search_timeline_response.py
@@ -0,0 +1,102 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List, Optional
+from twitter_openapi_python_generated.models.error_response import ErrorResponse
+from twitter_openapi_python_generated.models.global_communities_post_search_timeline_response_data import GlobalCommunitiesPostSearchTimelineResponseData
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class GlobalCommunitiesPostSearchTimelineResponse(BaseModel):
+ """
+ GlobalCommunitiesPostSearchTimelineResponse
+ """ # noqa: E501
+ data: GlobalCommunitiesPostSearchTimelineResponseData
+ errors: Optional[List[ErrorResponse]] = None
+ __properties: ClassVar[List[str]] = ["data", "errors"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GlobalCommunitiesPostSearchTimelineResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of data
+ if self.data:
+ _dict['data'] = self.data.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of each item in errors (list)
+ _items = []
+ if self.errors:
+ for _item_errors in self.errors:
+ _items.append(_item_errors.to_dict() if _item_errors is not None else None)
+ _dict['errors'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GlobalCommunitiesPostSearchTimelineResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "data": GlobalCommunitiesPostSearchTimelineResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None,
+ "errors": [ErrorResponse.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/global_communities_post_search_timeline_response_data.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/global_communities_post_search_timeline_response_data.py
new file mode 100644
index 0000000..aba964d
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/global_communities_post_search_timeline_response_data.py
@@ -0,0 +1,93 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.global_communities_post_search import GlobalCommunitiesPostSearch
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class GlobalCommunitiesPostSearchTimelineResponseData(BaseModel):
+ """
+ GlobalCommunitiesPostSearchTimelineResponseData
+ """ # noqa: E501
+ search_by_raw_query: GlobalCommunitiesPostSearch
+ __properties: ClassVar[List[str]] = ["search_by_raw_query"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GlobalCommunitiesPostSearchTimelineResponseData from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of search_by_raw_query
+ if self.search_by_raw_query:
+ _dict['search_by_raw_query'] = self.search_by_raw_query.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GlobalCommunitiesPostSearchTimelineResponseData from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "search_by_raw_query": GlobalCommunitiesPostSearch.from_dict(obj["search_by_raw_query"]) if obj.get("search_by_raw_query") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/grok_home.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/grok_home.py
new file mode 100644
index 0000000..4bb8736
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/grok_home.py
@@ -0,0 +1,114 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.grok_home_layout import GrokHomeLayout
+from twitter_openapi_python_generated.models.grok_model_option import GrokModelOption
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class GrokHome(BaseModel):
+ """
+ GrokHome
+ """ # noqa: E501
+ default_grok_mode: StrictStr
+ default_grok_model_option_id: StrictStr
+ eligible_for_grok: StrictBool
+ free_access_enabled: StrictBool
+ grok_model_options: List[GrokModelOption]
+ grok_version: StrictStr
+ ineligible_reasons: List[Dict[str, Any]]
+ layout: GrokHomeLayout
+ __properties: ClassVar[List[str]] = ["default_grok_mode", "default_grok_model_option_id", "eligible_for_grok", "free_access_enabled", "grok_model_options", "grok_version", "ineligible_reasons", "layout"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GrokHome from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in grok_model_options (list)
+ _items = []
+ if self.grok_model_options:
+ for _item_grok_model_options in self.grok_model_options:
+ _items.append(_item_grok_model_options.to_dict() if _item_grok_model_options is not None else None)
+ _dict['grok_model_options'] = _items
+ # override the default output from pydantic by calling `to_dict()` of layout
+ if self.layout:
+ _dict['layout'] = self.layout.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GrokHome from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "default_grok_mode": obj.get("default_grok_mode"),
+ "default_grok_model_option_id": obj.get("default_grok_model_option_id"),
+ "eligible_for_grok": obj.get("eligible_for_grok"),
+ "free_access_enabled": obj.get("free_access_enabled"),
+ "grok_model_options": [GrokModelOption.from_dict(_item) for _item in obj["grok_model_options"]] if obj.get("grok_model_options") is not None else None,
+ "grok_version": obj.get("grok_version"),
+ "ineligible_reasons": obj.get("ineligible_reasons"),
+ "layout": GrokHomeLayout.from_dict(obj["layout"]) if obj.get("layout") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/grok_home_layout.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/grok_home_layout.py
new file mode 100644
index 0000000..ad2a452
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/grok_home_layout.py
@@ -0,0 +1,98 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.grok_home_layout_section import GrokHomeLayoutSection
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class GrokHomeLayout(BaseModel):
+ """
+ GrokHomeLayout
+ """ # noqa: E501
+ name: StrictStr
+ sections: List[GrokHomeLayoutSection]
+ __properties: ClassVar[List[str]] = ["name", "sections"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GrokHomeLayout from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in sections (list)
+ _items = []
+ if self.sections:
+ for _item_sections in self.sections:
+ _items.append(_item_sections.to_dict() if _item_sections is not None else None)
+ _dict['sections'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GrokHomeLayout from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "name": obj.get("name"),
+ "sections": [GrokHomeLayoutSection.from_dict(_item) for _item in obj["sections"]] if obj.get("sections") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/grok_home_layout_section.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/grok_home_layout_section.py
new file mode 100644
index 0000000..a56cfc3
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/grok_home_layout_section.py
@@ -0,0 +1,98 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.grok_home_prompt import GrokHomePrompt
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class GrokHomeLayoutSection(BaseModel):
+ """
+ GrokHomeLayoutSection
+ """ # noqa: E501
+ prompts: List[GrokHomePrompt]
+ section_type: StrictStr
+ __properties: ClassVar[List[str]] = ["prompts", "section_type"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GrokHomeLayoutSection from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in prompts (list)
+ _items = []
+ if self.prompts:
+ for _item_prompts in self.prompts:
+ _items.append(_item_prompts.to_dict() if _item_prompts is not None else None)
+ _dict['prompts'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GrokHomeLayoutSection from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "prompts": [GrokHomePrompt.from_dict(_item) for _item in obj["prompts"]] if obj.get("prompts") is not None else None,
+ "section_type": obj.get("section_type")
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/grok_home_prompt.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/grok_home_prompt.py
new file mode 100644
index 0000000..248dbf3
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/grok_home_prompt.py
@@ -0,0 +1,99 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr
+from typing import Any, ClassVar, Dict, List
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class GrokHomePrompt(BaseModel):
+ """
+ GrokHomePrompt
+ """ # noqa: E501
+ display_body: StrictStr
+ display_label: StrictStr
+ filter_key: StrictStr
+ icon_name: StrictStr
+ prompt: StrictStr
+ prompt_id: StrictStr
+ __properties: ClassVar[List[str]] = ["display_body", "display_label", "filter_key", "icon_name", "prompt", "prompt_id"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GrokHomePrompt from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GrokHomePrompt from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "display_body": obj.get("display_body"),
+ "display_label": obj.get("display_label"),
+ "filter_key": obj.get("filter_key"),
+ "icon_name": obj.get("icon_name"),
+ "prompt": obj.get("prompt"),
+ "prompt_id": obj.get("prompt_id")
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/grok_home_response.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/grok_home_response.py
new file mode 100644
index 0000000..d1ca044
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/grok_home_response.py
@@ -0,0 +1,102 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List, Optional
+from twitter_openapi_python_generated.models.error_response import ErrorResponse
+from twitter_openapi_python_generated.models.grok_home_response_data import GrokHomeResponseData
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class GrokHomeResponse(BaseModel):
+ """
+ GrokHomeResponse
+ """ # noqa: E501
+ data: GrokHomeResponseData
+ errors: Optional[List[ErrorResponse]] = None
+ __properties: ClassVar[List[str]] = ["data", "errors"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GrokHomeResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of data
+ if self.data:
+ _dict['data'] = self.data.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of each item in errors (list)
+ _items = []
+ if self.errors:
+ for _item_errors in self.errors:
+ _items.append(_item_errors.to_dict() if _item_errors is not None else None)
+ _dict['errors'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GrokHomeResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "data": GrokHomeResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None,
+ "errors": [ErrorResponse.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/grok_home_response_data.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/grok_home_response_data.py
new file mode 100644
index 0000000..1beac69
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/grok_home_response_data.py
@@ -0,0 +1,93 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.grok_home import GrokHome
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class GrokHomeResponseData(BaseModel):
+ """
+ GrokHomeResponseData
+ """ # noqa: E501
+ grok_home: GrokHome
+ __properties: ClassVar[List[str]] = ["grok_home"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GrokHomeResponseData from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of grok_home
+ if self.grok_home:
+ _dict['grok_home'] = self.grok_home.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GrokHomeResponseData from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "grok_home": GrokHome.from_dict(obj["grok_home"]) if obj.get("grok_home") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/grok_model_option.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/grok_model_option.py
new file mode 100644
index 0000000..fd6c397
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/grok_model_option.py
@@ -0,0 +1,103 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class GrokModelOption(BaseModel):
+ """
+ GrokModelOption
+ """ # noqa: E501
+ description: StrictStr
+ icon_name: StrictStr
+ id: StrictStr
+ is_analyze_enabled: StrictBool
+ is_enabled: StrictBool
+ is_enhance_enabled: StrictBool
+ mode: StrictStr
+ name: StrictStr
+ __properties: ClassVar[List[str]] = ["description", "icon_name", "id", "is_analyze_enabled", "is_enabled", "is_enhance_enabled", "mode", "name"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GrokModelOption from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GrokModelOption from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "description": obj.get("description"),
+ "icon_name": obj.get("icon_name"),
+ "id": obj.get("id"),
+ "is_analyze_enabled": obj.get("is_analyze_enabled"),
+ "is_enabled": obj.get("is_enabled"),
+ "is_enhance_enabled": obj.get("is_enhance_enabled"),
+ "mode": obj.get("mode"),
+ "name": obj.get("name")
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/item_content_union.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/item_content_union.py
index 5446271..6226319 100644
--- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/item_content_union.py
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/item_content_union.py
@@ -19,6 +19,7 @@
from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator
from typing import Any, List, Optional
from twitter_openapi_python_generated.models.timeline_community import TimelineCommunity
+from twitter_openapi_python_generated.models.timeline_event_summary import TimelineEventSummary
from twitter_openapi_python_generated.models.timeline_frame import TimelineFrame
from twitter_openapi_python_generated.models.timeline_label import TimelineLabel
from twitter_openapi_python_generated.models.timeline_message_prompt import TimelineMessagePrompt
@@ -34,7 +35,7 @@
from typing import Union, List, Set, Optional, Dict
from typing_extensions import Literal, Self
-ITEMCONTENTUNION_ONE_OF_SCHEMAS = ["TimelineCommunity", "TimelineFrame", "TimelineLabel", "TimelineMessagePrompt", "TimelineNotification", "TimelinePrompt", "TimelineTimelineCursor", "TimelineTombstone", "TimelineTrend", "TimelineTweet", "TimelineTwitterList", "TimelineUser"]
+ITEMCONTENTUNION_ONE_OF_SCHEMAS = ["TimelineCommunity", "TimelineEventSummary", "TimelineFrame", "TimelineLabel", "TimelineMessagePrompt", "TimelineNotification", "TimelinePrompt", "TimelineTimelineCursor", "TimelineTombstone", "TimelineTrend", "TimelineTweet", "TimelineTwitterList", "TimelineUser"]
class ItemContentUnion(BaseModel):
"""
@@ -64,8 +65,10 @@ class ItemContentUnion(BaseModel):
oneof_schema_11_validator: Optional[TimelineTwitterList] = None
# data type: TimelineLabel
oneof_schema_12_validator: Optional[TimelineLabel] = None
- actual_instance: Optional[Union[TimelineCommunity, TimelineFrame, TimelineLabel, TimelineMessagePrompt, TimelineNotification, TimelinePrompt, TimelineTimelineCursor, TimelineTombstone, TimelineTrend, TimelineTweet, TimelineTwitterList, TimelineUser]] = None
- one_of_schemas: Set[str] = { "TimelineCommunity", "TimelineFrame", "TimelineLabel", "TimelineMessagePrompt", "TimelineNotification", "TimelinePrompt", "TimelineTimelineCursor", "TimelineTombstone", "TimelineTrend", "TimelineTweet", "TimelineTwitterList", "TimelineUser" }
+ # data type: TimelineEventSummary
+ oneof_schema_13_validator: Optional[TimelineEventSummary] = None
+ actual_instance: Optional[Union[TimelineCommunity, TimelineEventSummary, TimelineFrame, TimelineLabel, TimelineMessagePrompt, TimelineNotification, TimelinePrompt, TimelineTimelineCursor, TimelineTombstone, TimelineTrend, TimelineTweet, TimelineTwitterList, TimelineUser]] = None
+ one_of_schemas: Set[str] = { "TimelineCommunity", "TimelineEventSummary", "TimelineFrame", "TimelineLabel", "TimelineMessagePrompt", "TimelineNotification", "TimelinePrompt", "TimelineTimelineCursor", "TimelineTombstone", "TimelineTrend", "TimelineTweet", "TimelineTwitterList", "TimelineUser" }
model_config = ConfigDict(
validate_assignment=True,
@@ -151,12 +154,17 @@ def actual_instance_must_validate_oneof(cls, v):
error_messages.append(f"Error! Input type `{type(v)}` is not `TimelineLabel`")
else:
match += 1
+ # validate data type: TimelineEventSummary
+ if not isinstance(v, TimelineEventSummary):
+ error_messages.append(f"Error! Input type `{type(v)}` is not `TimelineEventSummary`")
+ else:
+ match += 1
if match > 1:
# more than 1 match
- raise ValueError("Multiple matches found when setting `actual_instance` in ItemContentUnion with oneOf schemas: TimelineCommunity, TimelineFrame, TimelineLabel, TimelineMessagePrompt, TimelineNotification, TimelinePrompt, TimelineTimelineCursor, TimelineTombstone, TimelineTrend, TimelineTweet, TimelineTwitterList, TimelineUser. Details: " + ", ".join(error_messages))
+ raise ValueError("Multiple matches found when setting `actual_instance` in ItemContentUnion with oneOf schemas: TimelineCommunity, TimelineEventSummary, TimelineFrame, TimelineLabel, TimelineMessagePrompt, TimelineNotification, TimelinePrompt, TimelineTimelineCursor, TimelineTombstone, TimelineTrend, TimelineTweet, TimelineTwitterList, TimelineUser. Details: " + ", ".join(error_messages))
elif match == 0:
# no match
- raise ValueError("No match found when setting `actual_instance` in ItemContentUnion with oneOf schemas: TimelineCommunity, TimelineFrame, TimelineLabel, TimelineMessagePrompt, TimelineNotification, TimelinePrompt, TimelineTimelineCursor, TimelineTombstone, TimelineTrend, TimelineTweet, TimelineTwitterList, TimelineUser. Details: " + ", ".join(error_messages))
+ raise ValueError("No match found when setting `actual_instance` in ItemContentUnion with oneOf schemas: TimelineCommunity, TimelineEventSummary, TimelineFrame, TimelineLabel, TimelineMessagePrompt, TimelineNotification, TimelinePrompt, TimelineTimelineCursor, TimelineTombstone, TimelineTrend, TimelineTweet, TimelineTwitterList, TimelineUser. Details: " + ", ".join(error_messages))
else:
return v
@@ -182,6 +190,11 @@ def from_json(cls, json_str: str) -> Self:
instance.actual_instance = TimelineCommunity.from_json(json_str)
return instance
+ # check if data type is `TimelineEventSummary`
+ if _data_type == "TimelineEventSummary":
+ instance.actual_instance = TimelineEventSummary.from_json(json_str)
+ return instance
+
# check if data type is `TimelineFrame`
if _data_type == "TimelineFrame":
instance.actual_instance = TimelineFrame.from_json(json_str)
@@ -309,13 +322,19 @@ def from_json(cls, json_str: str) -> Self:
match += 1
except (ValidationError, ValueError) as e:
error_messages.append(str(e))
+ # deserialize data into TimelineEventSummary
+ try:
+ instance.actual_instance = TimelineEventSummary.from_json(json_str)
+ match += 1
+ except (ValidationError, ValueError) as e:
+ error_messages.append(str(e))
if match > 1:
# more than 1 match
- raise ValueError("Multiple matches found when deserializing the JSON string into ItemContentUnion with oneOf schemas: TimelineCommunity, TimelineFrame, TimelineLabel, TimelineMessagePrompt, TimelineNotification, TimelinePrompt, TimelineTimelineCursor, TimelineTombstone, TimelineTrend, TimelineTweet, TimelineTwitterList, TimelineUser. Details: " + ", ".join(error_messages))
+ raise ValueError("Multiple matches found when deserializing the JSON string into ItemContentUnion with oneOf schemas: TimelineCommunity, TimelineEventSummary, TimelineFrame, TimelineLabel, TimelineMessagePrompt, TimelineNotification, TimelinePrompt, TimelineTimelineCursor, TimelineTombstone, TimelineTrend, TimelineTweet, TimelineTwitterList, TimelineUser. Details: " + ", ".join(error_messages))
elif match == 0:
# no match
- raise ValueError("No match found when deserializing the JSON string into ItemContentUnion with oneOf schemas: TimelineCommunity, TimelineFrame, TimelineLabel, TimelineMessagePrompt, TimelineNotification, TimelinePrompt, TimelineTimelineCursor, TimelineTombstone, TimelineTrend, TimelineTweet, TimelineTwitterList, TimelineUser. Details: " + ", ".join(error_messages))
+ raise ValueError("No match found when deserializing the JSON string into ItemContentUnion with oneOf schemas: TimelineCommunity, TimelineEventSummary, TimelineFrame, TimelineLabel, TimelineMessagePrompt, TimelineNotification, TimelinePrompt, TimelineTimelineCursor, TimelineTombstone, TimelineTrend, TimelineTweet, TimelineTwitterList, TimelineUser. Details: " + ", ".join(error_messages))
else:
return instance
@@ -329,7 +348,7 @@ def to_json(self) -> str:
else:
return json.dumps(self.actual_instance)
- def to_dict(self) -> Optional[Union[Dict[str, Any], TimelineCommunity, TimelineFrame, TimelineLabel, TimelineMessagePrompt, TimelineNotification, TimelinePrompt, TimelineTimelineCursor, TimelineTombstone, TimelineTrend, TimelineTweet, TimelineTwitterList, TimelineUser]]:
+ def to_dict(self) -> Optional[Union[Dict[str, Any], TimelineCommunity, TimelineEventSummary, TimelineFrame, TimelineLabel, TimelineMessagePrompt, TimelineNotification, TimelinePrompt, TimelineTimelineCursor, TimelineTombstone, TimelineTrend, TimelineTweet, TimelineTwitterList, TimelineUser]]:
"""Returns the dict representation of the actual instance"""
if self.actual_instance is None:
return None
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/list_search.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/list_search.py
new file mode 100644
index 0000000..301dc11
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/list_search.py
@@ -0,0 +1,93 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.timeline_result import TimelineResult
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class ListSearch(BaseModel):
+ """
+ ListSearch
+ """ # noqa: E501
+ list_search_timeline: TimelineResult
+ __properties: ClassVar[List[str]] = ["list_search_timeline"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of ListSearch from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of list_search_timeline
+ if self.list_search_timeline:
+ _dict['list_search_timeline'] = self.list_search_timeline.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ListSearch from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "list_search_timeline": TimelineResult.from_dict(obj["list_search_timeline"]) if obj.get("list_search_timeline") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/list_search_timeline_response.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/list_search_timeline_response.py
new file mode 100644
index 0000000..ddb7f1a
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/list_search_timeline_response.py
@@ -0,0 +1,102 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List, Optional
+from twitter_openapi_python_generated.models.error_response import ErrorResponse
+from twitter_openapi_python_generated.models.list_search_timeline_response_data import ListSearchTimelineResponseData
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class ListSearchTimelineResponse(BaseModel):
+ """
+ ListSearchTimelineResponse
+ """ # noqa: E501
+ data: ListSearchTimelineResponseData
+ errors: Optional[List[ErrorResponse]] = None
+ __properties: ClassVar[List[str]] = ["data", "errors"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of ListSearchTimelineResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of data
+ if self.data:
+ _dict['data'] = self.data.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of each item in errors (list)
+ _items = []
+ if self.errors:
+ for _item_errors in self.errors:
+ _items.append(_item_errors.to_dict() if _item_errors is not None else None)
+ _dict['errors'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ListSearchTimelineResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "data": ListSearchTimelineResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None,
+ "errors": [ErrorResponse.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/list_search_timeline_response_data.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/list_search_timeline_response_data.py
new file mode 100644
index 0000000..0d6f2c3
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/list_search_timeline_response_data.py
@@ -0,0 +1,93 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.list_search import ListSearch
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class ListSearchTimelineResponseData(BaseModel):
+ """
+ ListSearchTimelineResponseData
+ """ # noqa: E501
+ search_by_raw_query: ListSearch
+ __properties: ClassVar[List[str]] = ["search_by_raw_query"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of ListSearchTimelineResponseData from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of search_by_raw_query
+ if self.search_by_raw_query:
+ _dict['search_by_raw_query'] = self.search_by_raw_query.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ListSearchTimelineResponseData from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "search_by_raw_query": ListSearch.from_dict(obj["search_by_raw_query"]) if obj.get("search_by_raw_query") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/lists_management_page_timeline_response.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/lists_management_page_timeline_response.py
new file mode 100644
index 0000000..1762838
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/lists_management_page_timeline_response.py
@@ -0,0 +1,102 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List, Optional
+from twitter_openapi_python_generated.models.error_response import ErrorResponse
+from twitter_openapi_python_generated.models.lists_management_page_timeline_response_data import ListsManagementPageTimelineResponseData
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class ListsManagementPageTimelineResponse(BaseModel):
+ """
+ ListsManagementPageTimelineResponse
+ """ # noqa: E501
+ data: ListsManagementPageTimelineResponseData
+ errors: Optional[List[ErrorResponse]] = None
+ __properties: ClassVar[List[str]] = ["data", "errors"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of ListsManagementPageTimelineResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of data
+ if self.data:
+ _dict['data'] = self.data.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of each item in errors (list)
+ _items = []
+ if self.errors:
+ for _item_errors in self.errors:
+ _items.append(_item_errors.to_dict() if _item_errors is not None else None)
+ _dict['errors'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ListsManagementPageTimelineResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "data": ListsManagementPageTimelineResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None,
+ "errors": [ErrorResponse.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/lists_management_page_timeline_response_data.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/lists_management_page_timeline_response_data.py
new file mode 100644
index 0000000..d96bb6a
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/lists_management_page_timeline_response_data.py
@@ -0,0 +1,93 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.lists_management_viewer import ListsManagementViewer
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class ListsManagementPageTimelineResponseData(BaseModel):
+ """
+ ListsManagementPageTimelineResponseData
+ """ # noqa: E501
+ viewer: ListsManagementViewer
+ __properties: ClassVar[List[str]] = ["viewer"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of ListsManagementPageTimelineResponseData from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of viewer
+ if self.viewer:
+ _dict['viewer'] = self.viewer.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ListsManagementPageTimelineResponseData from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "viewer": ListsManagementViewer.from_dict(obj["viewer"]) if obj.get("viewer") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/lists_management_viewer.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/lists_management_viewer.py
new file mode 100644
index 0000000..7759277
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/lists_management_viewer.py
@@ -0,0 +1,93 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.timeline_result import TimelineResult
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class ListsManagementViewer(BaseModel):
+ """
+ ListsManagementViewer
+ """ # noqa: E501
+ list_management_timeline: TimelineResult
+ __properties: ClassVar[List[str]] = ["list_management_timeline"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of ListsManagementViewer from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of list_management_timeline
+ if self.list_management_timeline:
+ _dict['list_management_timeline'] = self.list_management_timeline.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ListsManagementViewer from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "list_management_timeline": TimelineResult.from_dict(obj["list_management_timeline"]) if obj.get("list_management_timeline") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/module_footer.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/module_footer.py
index 1cdfab1..db69267 100644
--- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/module_footer.py
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/module_footer.py
@@ -18,7 +18,7 @@
import re # noqa: F401
import json
-from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
from typing import Any, ClassVar, Dict, List
from twitter_openapi_python_generated.models.landing_url import LandingUrl
from typing import Optional, Set
@@ -34,13 +34,6 @@ class ModuleFooter(BaseModel):
text: StrictStr
__properties: ClassVar[List[str]] = ["displayType", "landingUrl", "text"]
- @field_validator('display_type')
- def display_type_validate_enum(cls, value):
- """Validates the enum"""
- if value not in set(['Classic']):
- raise ValueError("must be one of enum values ('Classic')")
- return value
-
model_config = ConfigDict(
validate_by_name=True,
validate_by_alias=True,
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/notification_details.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/notification_details.py
new file mode 100644
index 0000000..23822cb
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/notification_details.py
@@ -0,0 +1,91 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class NotificationDetails(BaseModel):
+ """
+ NotificationDetails
+ """ # noqa: E501
+ impression_id: StrictStr = Field(alias="impressionId")
+ metadata: StrictStr
+ __properties: ClassVar[List[str]] = ["impressionId", "metadata"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of NotificationDetails from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of NotificationDetails from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "impressionId": obj.get("impressionId"),
+ "metadata": obj.get("metadata")
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/pinned_timelines.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/pinned_timelines.py
new file mode 100644
index 0000000..74673cf
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/pinned_timelines.py
@@ -0,0 +1,89 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class PinnedTimelines(BaseModel):
+ """
+ PinnedTimelines
+ """ # noqa: E501
+ pinned_timelines: List[Dict[str, Any]]
+ __properties: ClassVar[List[str]] = ["pinned_timelines"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of PinnedTimelines from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of PinnedTimelines from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "pinned_timelines": obj.get("pinned_timelines")
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/pinned_timelines_response.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/pinned_timelines_response.py
new file mode 100644
index 0000000..d1a76d9
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/pinned_timelines_response.py
@@ -0,0 +1,102 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List, Optional
+from twitter_openapi_python_generated.models.error_response import ErrorResponse
+from twitter_openapi_python_generated.models.pinned_timelines_response_data import PinnedTimelinesResponseData
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class PinnedTimelinesResponse(BaseModel):
+ """
+ PinnedTimelinesResponse
+ """ # noqa: E501
+ data: PinnedTimelinesResponseData
+ errors: Optional[List[ErrorResponse]] = None
+ __properties: ClassVar[List[str]] = ["data", "errors"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of PinnedTimelinesResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of data
+ if self.data:
+ _dict['data'] = self.data.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of each item in errors (list)
+ _items = []
+ if self.errors:
+ for _item_errors in self.errors:
+ _items.append(_item_errors.to_dict() if _item_errors is not None else None)
+ _dict['errors'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of PinnedTimelinesResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "data": PinnedTimelinesResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None,
+ "errors": [ErrorResponse.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/pinned_timelines_response_data.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/pinned_timelines_response_data.py
new file mode 100644
index 0000000..275cf31
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/pinned_timelines_response_data.py
@@ -0,0 +1,93 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.pinned_timelines import PinnedTimelines
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class PinnedTimelinesResponseData(BaseModel):
+ """
+ PinnedTimelinesResponseData
+ """ # noqa: E501
+ pinned_timelines: PinnedTimelines
+ __properties: ClassVar[List[str]] = ["pinned_timelines"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of PinnedTimelinesResponseData from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of pinned_timelines
+ if self.pinned_timelines:
+ _dict['pinned_timelines'] = self.pinned_timelines.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of PinnedTimelinesResponseData from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "pinned_timelines": PinnedTimelines.from_dict(obj["pinned_timelines"]) if obj.get("pinned_timelines") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/promoted_trend.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/promoted_trend.py
new file mode 100644
index 0000000..47ce369
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/promoted_trend.py
@@ -0,0 +1,97 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, field_validator
+from typing import Any, ClassVar, Dict, List
+from typing_extensions import Annotated
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class PromotedTrend(BaseModel):
+ """
+ PromotedTrend
+ """ # noqa: E501
+ rest_id: Annotated[str, Field(strict=True)]
+ __properties: ClassVar[List[str]] = ["rest_id"]
+
+ @field_validator('rest_id', mode="before")
+ def rest_id_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if isinstance(value, str) and not re.match(r"^[0-9]+$", value):
+ raise ValueError(r"must validate the regular expression /^[0-9]+$/")
+ return value
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of PromotedTrend from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of PromotedTrend from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "rest_id": obj.get("rest_id")
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/rich_message.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/rich_message.py
index 9f4d3f2..bdd87a8 100644
--- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/rich_message.py
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/rich_message.py
@@ -20,6 +20,7 @@
from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
+from twitter_openapi_python_generated.models.rich_message_entity import RichMessageEntity
from typing import Optional, Set
from typing_extensions import Self
from pydantic_core import to_jsonable_python
@@ -28,9 +29,10 @@ class RichMessage(BaseModel):
"""
RichMessage
""" # noqa: E501
+ entities: Optional[List[RichMessageEntity]] = None
rtl: Optional[StrictBool] = None
text: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["rtl", "text"]
+ __properties: ClassVar[List[str]] = ["entities", "rtl", "text"]
model_config = ConfigDict(
validate_by_name=True,
@@ -71,6 +73,12 @@ def to_dict(self) -> Dict[str, Any]:
exclude=excluded_fields,
exclude_none=True,
)
+ # override the default output from pydantic by calling `to_dict()` of each item in entities (list)
+ _items = []
+ if self.entities:
+ for _item_entities in self.entities:
+ _items.append(_item_entities.to_dict() if _item_entities is not None else None)
+ _dict['entities'] = _items
return _dict
@classmethod
@@ -83,6 +91,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
+ "entities": [RichMessageEntity.from_dict(_item) for _item in obj["entities"]] if obj.get("entities") is not None else None,
"rtl": obj.get("rtl"),
"text": obj.get("text")
})
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/rich_message_entity.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/rich_message_entity.py
new file mode 100644
index 0000000..f3ce506
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/rich_message_entity.py
@@ -0,0 +1,97 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictInt
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.rich_message_entity_ref import RichMessageEntityRef
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class RichMessageEntity(BaseModel):
+ """
+ RichMessageEntity
+ """ # noqa: E501
+ from_index: StrictInt = Field(alias="fromIndex")
+ ref: RichMessageEntityRef
+ to_index: StrictInt = Field(alias="toIndex")
+ __properties: ClassVar[List[str]] = ["fromIndex", "ref", "toIndex"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of RichMessageEntity from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of ref
+ if self.ref:
+ _dict['ref'] = self.ref.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of RichMessageEntity from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "fromIndex": obj.get("fromIndex"),
+ "ref": RichMessageEntityRef.from_dict(obj["ref"]) if obj.get("ref") is not None else None,
+ "toIndex": obj.get("toIndex")
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/rich_message_entity_ref.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/rich_message_entity_ref.py
new file mode 100644
index 0000000..06af4cd
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/rich_message_entity_ref.py
@@ -0,0 +1,117 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from twitter_openapi_python_generated.models.user_results import UserResults
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class RichMessageEntityRef(BaseModel):
+ """
+ RichMessageEntityRef
+ """ # noqa: E501
+ id: Optional[Annotated[str, Field(strict=True)]] = None
+ type: StrictStr
+ url: Optional[StrictStr] = None
+ user_results: Optional[UserResults] = None
+ __properties: ClassVar[List[str]] = ["id", "type", "url", "user_results"]
+
+ @field_validator('id', mode="before")
+ def id_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if value is None:
+ return value
+
+ if isinstance(value, str) and not re.match(r"^[0-9]+$", value):
+ raise ValueError(r"must validate the regular expression /^[0-9]+$/")
+ return value
+
+ @field_validator('type')
+ def type_validate_enum(cls, value):
+ """Validates the enum"""
+ if value not in set(['TimelineRichTextUser', 'TimelineRichTextList']):
+ raise ValueError("must be one of enum values ('TimelineRichTextUser', 'TimelineRichTextList')")
+ return value
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of RichMessageEntityRef from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of user_results
+ if self.user_results:
+ _dict['user_results'] = self.user_results.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of RichMessageEntityRef from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "type": obj.get("type"),
+ "url": obj.get("url"),
+ "user_results": UserResults.from_dict(obj["user_results"]) if obj.get("user_results") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/slice_info.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/slice_info.py
new file mode 100644
index 0000000..06c8111
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/slice_info.py
@@ -0,0 +1,89 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr
+from typing import Any, ClassVar, Dict, List
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class SliceInfo(BaseModel):
+ """
+ SliceInfo
+ """ # noqa: E501
+ next_cursor: StrictStr
+ __properties: ClassVar[List[str]] = ["next_cursor"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of SliceInfo from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of SliceInfo from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "next_cursor": obj.get("next_cursor")
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_event_summary.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_event_summary.py
new file mode 100644
index 0000000..32e5ccc
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_event_summary.py
@@ -0,0 +1,121 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.content_item_type import ContentItemType
+from twitter_openapi_python_generated.models.event_summary_event import EventSummaryEvent
+from twitter_openapi_python_generated.models.event_summary_media import EventSummaryMedia
+from twitter_openapi_python_generated.models.event_summary_promoted_metadata import EventSummaryPromotedMetadata
+from twitter_openapi_python_generated.models.social_context_landing_url import SocialContextLandingUrl
+from twitter_openapi_python_generated.models.type_name import TypeName
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class TimelineEventSummary(BaseModel):
+ """
+ TimelineEventSummary
+ """ # noqa: E501
+ typename: TypeName = Field(alias="__typename")
+ event: EventSummaryEvent
+ event_summary_display_type: StrictStr = Field(alias="eventSummaryDisplayType")
+ event_summary_url: SocialContextLandingUrl = Field(alias="eventSummaryUrl")
+ item_type: ContentItemType = Field(alias="itemType")
+ media: EventSummaryMedia
+ promoted_metadata: EventSummaryPromotedMetadata = Field(alias="promotedMetadata")
+ title: StrictStr
+ __properties: ClassVar[List[str]] = ["__typename", "event", "eventSummaryDisplayType", "eventSummaryUrl", "itemType", "media", "promotedMetadata", "title"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of TimelineEventSummary from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of event
+ if self.event:
+ _dict['event'] = self.event.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of event_summary_url
+ if self.event_summary_url:
+ _dict['eventSummaryUrl'] = self.event_summary_url.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of media
+ if self.media:
+ _dict['media'] = self.media.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of promoted_metadata
+ if self.promoted_metadata:
+ _dict['promotedMetadata'] = self.promoted_metadata.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of TimelineEventSummary from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "__typename": obj.get("__typename"),
+ "event": EventSummaryEvent.from_dict(obj["event"]) if obj.get("event") is not None else None,
+ "eventSummaryDisplayType": obj.get("eventSummaryDisplayType"),
+ "eventSummaryUrl": SocialContextLandingUrl.from_dict(obj["eventSummaryUrl"]) if obj.get("eventSummaryUrl") is not None else None,
+ "itemType": obj.get("itemType"),
+ "media": EventSummaryMedia.from_dict(obj["media"]) if obj.get("media") is not None else None,
+ "promotedMetadata": EventSummaryPromotedMetadata.from_dict(obj["promotedMetadata"]) if obj.get("promotedMetadata") is not None else None,
+ "title": obj.get("title")
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_trend.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_trend.py
index 79970fa..e9c565d 100644
--- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_trend.py
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/timeline_trend.py
@@ -28,6 +28,7 @@
from twitter_openapi_python_generated.models.thumbnail_image import ThumbnailImage
from twitter_openapi_python_generated.models.trend_image import TrendImage
from twitter_openapi_python_generated.models.trend_metadata import TrendMetadata
+from twitter_openapi_python_generated.models.trend_promoted_metadata import TrendPromotedMetadata
from twitter_openapi_python_generated.models.type_name import TypeName
from typing import Optional, Set
from typing_extensions import Self
@@ -38,17 +39,19 @@ class TimelineTrend(BaseModel):
TimelineTrend
""" # noqa: E501
typename: TypeName = Field(alias="__typename")
+ description: Optional[StrictStr] = None
grouped_trends: Optional[List[GroupedTrend]] = None
images: Optional[List[TrendImage]] = None
is_ai_trend: Optional[StrictBool] = None
item_type: Optional[ContentItemType] = Field(default=None, alias="itemType")
name: StrictStr
+ promoted_metadata: Optional[TrendPromotedMetadata] = None
rank: Optional[Annotated[str, Field(strict=True)]] = None
social_context: Optional[SocialContextUnion] = None
thumbnail_image: Optional[ThumbnailImage] = None
trend_metadata: TrendMetadata
trend_url: SocialContextLandingUrl
- __properties: ClassVar[List[str]] = ["__typename", "grouped_trends", "images", "is_ai_trend", "itemType", "name", "rank", "social_context", "thumbnail_image", "trend_metadata", "trend_url"]
+ __properties: ClassVar[List[str]] = ["__typename", "description", "grouped_trends", "images", "is_ai_trend", "itemType", "name", "promoted_metadata", "rank", "social_context", "thumbnail_image", "trend_metadata", "trend_url"]
@field_validator('rank', mode="before")
def rank_validate_regular_expression(cls, value):
@@ -111,6 +114,9 @@ def to_dict(self) -> Dict[str, Any]:
for _item_images in self.images:
_items.append(_item_images.to_dict() if _item_images is not None else None)
_dict['images'] = _items
+ # override the default output from pydantic by calling `to_dict()` of promoted_metadata
+ if self.promoted_metadata:
+ _dict['promoted_metadata'] = self.promoted_metadata.to_dict()
# override the default output from pydantic by calling `to_dict()` of social_context
if self.social_context:
_dict['social_context'] = self.social_context.to_dict()
@@ -136,11 +142,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
_obj = cls.model_validate({
"__typename": obj.get("__typename"),
+ "description": obj.get("description"),
"grouped_trends": [GroupedTrend.from_dict(_item) for _item in obj["grouped_trends"]] if obj.get("grouped_trends") is not None else None,
"images": [TrendImage.from_dict(_item) for _item in obj["images"]] if obj.get("images") is not None else None,
"is_ai_trend": obj.get("is_ai_trend"),
"itemType": obj.get("itemType"),
"name": obj.get("name"),
+ "promoted_metadata": TrendPromotedMetadata.from_dict(obj["promoted_metadata"]) if obj.get("promoted_metadata") is not None else None,
"rank": obj.get("rank"),
"social_context": SocialContextUnion.from_dict(obj["social_context"]) if obj.get("social_context") is not None else None,
"thumbnail_image": ThumbnailImage.from_dict(obj["thumbnail_image"]) if obj.get("thumbnail_image") is not None else None,
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/topic_carousel_query_response.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/topic_carousel_query_response.py
new file mode 100644
index 0000000..352135a
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/topic_carousel_query_response.py
@@ -0,0 +1,102 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List, Optional
+from twitter_openapi_python_generated.models.error_response import ErrorResponse
+from twitter_openapi_python_generated.models.topic_carousel_query_response_data import TopicCarouselQueryResponseData
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class TopicCarouselQueryResponse(BaseModel):
+ """
+ TopicCarouselQueryResponse
+ """ # noqa: E501
+ data: TopicCarouselQueryResponseData
+ errors: Optional[List[ErrorResponse]] = None
+ __properties: ClassVar[List[str]] = ["data", "errors"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of TopicCarouselQueryResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of data
+ if self.data:
+ _dict['data'] = self.data.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of each item in errors (list)
+ _items = []
+ if self.errors:
+ for _item_errors in self.errors:
+ _items.append(_item_errors.to_dict() if _item_errors is not None else None)
+ _dict['errors'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of TopicCarouselQueryResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "data": TopicCarouselQueryResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None,
+ "errors": [ErrorResponse.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/topic_carousel_query_response_data.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/topic_carousel_query_response_data.py
new file mode 100644
index 0000000..08dbdc5
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/topic_carousel_query_response_data.py
@@ -0,0 +1,93 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.community_topic_results import CommunityTopicResults
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class TopicCarouselQueryResponseData(BaseModel):
+ """
+ TopicCarouselQueryResponseData
+ """ # noqa: E501
+ community_topic_results: CommunityTopicResults = Field(alias="communityTopicResults")
+ __properties: ClassVar[List[str]] = ["communityTopicResults"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of TopicCarouselQueryResponseData from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of community_topic_results
+ if self.community_topic_results:
+ _dict['communityTopicResults'] = self.community_topic_results.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of TopicCarouselQueryResponseData from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "communityTopicResults": CommunityTopicResults.from_dict(obj["communityTopicResults"]) if obj.get("communityTopicResults") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/trend_metadata.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/trend_metadata.py
index 0aecc58..95e5c60 100644
--- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/trend_metadata.py
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/trend_metadata.py
@@ -30,8 +30,9 @@ class TrendMetadata(BaseModel):
TrendMetadata
""" # noqa: E501
domain_context: Optional[StrictStr] = None
+ meta_description: Optional[StrictStr] = None
url: Optional[SocialContextLandingUrl] = None
- __properties: ClassVar[List[str]] = ["domain_context", "url"]
+ __properties: ClassVar[List[str]] = ["domain_context", "meta_description", "url"]
model_config = ConfigDict(
validate_by_name=True,
@@ -88,6 +89,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
_obj = cls.model_validate({
"domain_context": obj.get("domain_context"),
+ "meta_description": obj.get("meta_description"),
"url": SocialContextLandingUrl.from_dict(obj["url"]) if obj.get("url") is not None else None
})
return _obj
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/trend_promoted_metadata.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/trend_promoted_metadata.py
new file mode 100644
index 0000000..45c1957
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/trend_promoted_metadata.py
@@ -0,0 +1,111 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.promoted_trend import PromotedTrend
+from twitter_openapi_python_generated.models.user_results import UserResults
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class TrendPromotedMetadata(BaseModel):
+ """
+ TrendPromotedMetadata
+ """ # noqa: E501
+ advertiser_results: UserResults
+ disclosure_type: StrictStr = Field(alias="disclosureType")
+ impression_id: StrictStr = Field(alias="impressionId")
+ impression_string: StrictStr = Field(alias="impressionString")
+ promoted_trend: PromotedTrend = Field(alias="promotedTrend")
+ promoted_trend_description: StrictStr = Field(alias="promotedTrendDescription")
+ promoted_trend_name: StrictStr = Field(alias="promotedTrendName")
+ promoted_trend_query_term: StrictStr = Field(alias="promotedTrendQueryTerm")
+ __properties: ClassVar[List[str]] = ["advertiser_results", "disclosureType", "impressionId", "impressionString", "promotedTrend", "promotedTrendDescription", "promotedTrendName", "promotedTrendQueryTerm"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of TrendPromotedMetadata from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of advertiser_results
+ if self.advertiser_results:
+ _dict['advertiser_results'] = self.advertiser_results.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of promoted_trend
+ if self.promoted_trend:
+ _dict['promotedTrend'] = self.promoted_trend.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of TrendPromotedMetadata from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "advertiser_results": UserResults.from_dict(obj["advertiser_results"]) if obj.get("advertiser_results") is not None else None,
+ "disclosureType": obj.get("disclosureType"),
+ "impressionId": obj.get("impressionId"),
+ "impressionString": obj.get("impressionString"),
+ "promotedTrend": PromotedTrend.from_dict(obj["promotedTrend"]) if obj.get("promotedTrend") is not None else None,
+ "promotedTrendDescription": obj.get("promotedTrendDescription"),
+ "promotedTrendName": obj.get("promotedTrendName"),
+ "promotedTrendQueryTerm": obj.get("promotedTrendQueryTerm")
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/type_name.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/type_name.py
index dec1971..c58ae82 100644
--- a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/type_name.py
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/type_name.py
@@ -32,6 +32,7 @@ class TypeName(str, Enum):
TIMELINEFRAME = 'TimelineFrame'
TIMELINETWITTERLIST = 'TimelineTwitterList'
TIMELINELABEL = 'TimelineLabel'
+ TIMELINEEVENTSUMMARY = 'TimelineEventSummary'
TIMELINETIMELINEITEM = 'TimelineTimelineItem'
TIMELINEUSER = 'TimelineUser'
TIMELINETIMELINECURSOR = 'TimelineTimelineCursor'
@@ -64,6 +65,8 @@ class TypeName(str, Enum):
APIIMAGE = 'ApiImage'
APIMEDIA = 'ApiMedia'
COMMUNITYUSERDEFAULTMODERATIONSTATE = 'CommunityUserDefaultModerationState'
+ COMMUNITYHASHTAGSLICE = 'CommunityHashtagSlice'
+ COMMUNITYLISTMEMBERSACTION = 'CommunityListMembersAction'
CTALIMITEDACTIONPROMPT = 'CtaLimitedActionPrompt'
TIMELINERICHTEXTUSER = 'TimelineRichTextUser'
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/users_verified_avatars_response.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/users_verified_avatars_response.py
new file mode 100644
index 0000000..500393d
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/users_verified_avatars_response.py
@@ -0,0 +1,102 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List, Optional
+from twitter_openapi_python_generated.models.error_response import ErrorResponse
+from twitter_openapi_python_generated.models.users_verified_avatars_response_data import UsersVerifiedAvatarsResponseData
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class UsersVerifiedAvatarsResponse(BaseModel):
+ """
+ UsersVerifiedAvatarsResponse
+ """ # noqa: E501
+ data: UsersVerifiedAvatarsResponseData
+ errors: Optional[List[ErrorResponse]] = None
+ __properties: ClassVar[List[str]] = ["data", "errors"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of UsersVerifiedAvatarsResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of data
+ if self.data:
+ _dict['data'] = self.data.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of each item in errors (list)
+ _items = []
+ if self.errors:
+ for _item_errors in self.errors:
+ _items.append(_item_errors.to_dict() if _item_errors is not None else None)
+ _dict['errors'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of UsersVerifiedAvatarsResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "data": UsersVerifiedAvatarsResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None,
+ "errors": [ErrorResponse.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/users_verified_avatars_response_data.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/users_verified_avatars_response_data.py
new file mode 100644
index 0000000..9aa8273
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/users_verified_avatars_response_data.py
@@ -0,0 +1,96 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.verified_avatar_user_results import VerifiedAvatarUserResults
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class UsersVerifiedAvatarsResponseData(BaseModel):
+ """
+ UsersVerifiedAvatarsResponseData
+ """ # noqa: E501
+ users_results: List[VerifiedAvatarUserResults] = Field(alias="usersResults")
+ __properties: ClassVar[List[str]] = ["usersResults"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of UsersVerifiedAvatarsResponseData from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in users_results (list)
+ _items = []
+ if self.users_results:
+ for _item_users_results in self.users_results:
+ _items.append(_item_users_results.to_dict() if _item_users_results is not None else None)
+ _dict['usersResults'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of UsersVerifiedAvatarsResponseData from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "usersResults": [VerifiedAvatarUserResults.from_dict(_item) for _item in obj["usersResults"]] if obj.get("usersResults") is not None else None
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/verified_avatar_user.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/verified_avatar_user.py
new file mode 100644
index 0000000..5bca2b7
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/verified_avatar_user.py
@@ -0,0 +1,112 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List
+from typing_extensions import Annotated
+from twitter_openapi_python_generated.models.affiliates_highlighted_label import AffiliatesHighlightedLabel
+from twitter_openapi_python_generated.models.type_name import TypeName
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class VerifiedAvatarUser(BaseModel):
+ """
+ VerifiedAvatarUser
+ """ # noqa: E501
+ typename: TypeName = Field(alias="__typename")
+ affiliates_highlighted_label: AffiliatesHighlightedLabel
+ is_blue_verified: StrictBool
+ profile_image_shape: StrictStr
+ rest_id: Annotated[str, Field(strict=True)]
+ verification: Dict[str, Any]
+ __properties: ClassVar[List[str]] = ["__typename", "affiliates_highlighted_label", "is_blue_verified", "profile_image_shape", "rest_id", "verification"]
+
+ @field_validator('rest_id', mode="before")
+ def rest_id_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if isinstance(value, str) and not re.match(r"^[0-9]+$", value):
+ raise ValueError(r"must validate the regular expression /^[0-9]+$/")
+ return value
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of VerifiedAvatarUser from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of affiliates_highlighted_label
+ if self.affiliates_highlighted_label:
+ _dict['affiliates_highlighted_label'] = self.affiliates_highlighted_label.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of VerifiedAvatarUser from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "__typename": obj.get("__typename"),
+ "affiliates_highlighted_label": AffiliatesHighlightedLabel.from_dict(obj["affiliates_highlighted_label"]) if obj.get("affiliates_highlighted_label") is not None else None,
+ "is_blue_verified": obj.get("is_blue_verified"),
+ "profile_image_shape": obj.get("profile_image_shape"),
+ "rest_id": obj.get("rest_id"),
+ "verification": obj.get("verification")
+ })
+ return _obj
+
+
diff --git a/twitter_openapi_python_generated/twitter_openapi_python_generated/models/verified_avatar_user_results.py b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/verified_avatar_user_results.py
new file mode 100644
index 0000000..3b60d2f
--- /dev/null
+++ b/twitter_openapi_python_generated/twitter_openapi_python_generated/models/verified_avatar_user_results.py
@@ -0,0 +1,93 @@
+# coding: utf-8
+
+"""
+ Twitter OpenAPI
+
+ Twitter OpenAPI(Swagger) specification
+
+ The version of the OpenAPI document: 0.0.1
+ Contact: yuki@yuki0311.com
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List
+from twitter_openapi_python_generated.models.verified_avatar_user import VerifiedAvatarUser
+from typing import Optional, Set
+from typing_extensions import Self
+from pydantic_core import to_jsonable_python
+
+class VerifiedAvatarUserResults(BaseModel):
+ """
+ VerifiedAvatarUserResults
+ """ # noqa: E501
+ result: VerifiedAvatarUser
+ __properties: ClassVar[List[str]] = ["result"]
+
+ model_config = ConfigDict(
+ validate_by_name=True,
+ validate_by_alias=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(to_jsonable_python(self.to_dict()))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of VerifiedAvatarUserResults from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of result
+ if self.result:
+ _dict['result'] = self.result.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of VerifiedAvatarUserResults from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "result": VerifiedAvatarUser.from_dict(obj["result"]) if obj.get("result") is not None else None
+ })
+ return _obj
+
+