From 85cd1e120df86c52e1438a0e44124051a49ce17f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Sun, 9 Jul 2023 23:45:24 +0900 Subject: [PATCH] add #18 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- src/config/placeholder.json | 67 +++++++++++++++++++++++++++++++++ src/openapi/paths/follow.yaml | 14 +++++++ src/openapi/paths/timeline.yaml | 46 +++++++++++++++++++++- 3 files changed, 125 insertions(+), 2 deletions(-) diff --git a/src/config/placeholder.json b/src/config/placeholder.json index afe8f5b..eb0d09b 100644 --- a/src/config/placeholder.json +++ b/src/config/placeholder.json @@ -302,6 +302,40 @@ "responsive_web_enhance_cards_enabled": false } }, + "SearchTimeline": { + "queryId": "L1VfBERtzc3VkBBT0YAYHA", + "variables": { + "rawQuery": "elonmusk", + "count": 20, + "querySource": "typed_query", + "product": "Top" + }, + "features": { + "rweb_lists_timeline_redesign_enabled": true, + "responsive_web_graphql_exclude_directive_enabled": true, + "verified_phone_label_enabled": false, + "creator_subscriptions_tweet_preview_api_enabled": true, + "responsive_web_graphql_timeline_navigation_enabled": true, + "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, + "tweetypie_unmention_optimization_enabled": true, + "responsive_web_edit_tweet_api_enabled": true, + "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": false, + "tweet_awards_web_tipping_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": true, + "responsive_web_media_download_video_enabled": false, + "responsive_web_enhance_cards_enabled": false + }, + "fieldToggles": { + "withArticleRichContentState": false + } + }, "Favoriters": { "queryId": "rUyh8HWk8IXv_fvVKj3QjA", "variables": { @@ -420,6 +454,39 @@ "responsive_web_enhance_cards_enabled": false } }, + "FollowersYouKnow": { + "queryId": "W9Iz6TVLymzCWjG2uOFKZg", + "variables": { + "userId": "44196397", + "count": 20, + "includePromotedContent": false + }, + "features": { + "rweb_lists_timeline_redesign_enabled": true, + "responsive_web_graphql_exclude_directive_enabled": true, + "verified_phone_label_enabled": false, + "creator_subscriptions_tweet_preview_api_enabled": true, + "responsive_web_graphql_timeline_navigation_enabled": true, + "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, + "tweetypie_unmention_optimization_enabled": true, + "responsive_web_edit_tweet_api_enabled": true, + "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": false, + "tweet_awards_web_tipping_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": true, + "responsive_web_media_download_video_enabled": false, + "responsive_web_enhance_cards_enabled": false + }, + "fieldToggles": { + "withArticleRichContentState": false + } + }, "CreateTweet": { "queryId": "1RyAhNwby-gzGCRVsMxKbQ", "variables": { diff --git a/src/openapi/paths/follow.yaml b/src/openapi/paths/follow.yaml index 91134ab..3ae6491 100644 --- a/src/openapi/paths/follow.yaml +++ b/src/openapi/paths/follow.yaml @@ -32,6 +32,20 @@ paths: tags: - "user-list" + /graphql/{pathQueryId}/FollowersYouKnow: + get: + operationId: getFollowersYouKnow + description: "get followers you know" + responses: + "200": + description: Successful operation + content: + application/json: + schema: + $ref: "#/components/schemas/FollowResponse" + tags: + - "user-list" + components: schemas: FollowResponse: diff --git a/src/openapi/paths/timeline.yaml b/src/openapi/paths/timeline.yaml index 368eb34..a2c4b6a 100644 --- a/src/openapi/paths/timeline.yaml +++ b/src/openapi/paths/timeline.yaml @@ -42,7 +42,21 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ListTweetsTimelineResponse" + $ref: "#/components/schemas/ListLatestTweetsTimelineResponse" + tags: + - "tweet" + + /graphql/{pathQueryId}/SearchTimeline: + get: + operationId: getSearchTimeline + description: search tweet list. product:[Top, Latest, People, Photos, Videos] + responses: + "200": + description: Successful operation + content: + application/json: + schema: + $ref: "#/components/schemas/SearchTimelineResponse" tags: - "tweet" @@ -69,7 +83,7 @@ components: home_timeline_urt: $ref: "./../schemas/timeline.yaml#/components/schemas/Timeline" - ListTweetsTimelineResponse: + ListLatestTweetsTimelineResponse: required: - "data" properties: @@ -96,3 +110,31 @@ components: properties: timeline: $ref: "./../schemas/timeline.yaml#/components/schemas/Timeline" + + SearchTimelineResponse: + required: + - "data" + properties: + data: + $ref: "#/components/schemas/SearchTimelineData" + + SearchTimelineData: + required: + - "search_by_raw_query" + properties: + search_by_raw_query: + $ref: "#/components/schemas/SearchByRawQuery" + + SearchByRawQuery: + required: + - "search_timeline" + properties: + search_timeline: + $ref: "#/components/schemas/SearchTimeline" + + SearchTimeline: + required: + - "timeline" + properties: + timeline: + $ref: "./../schemas/timeline.yaml#/components/schemas/Timeline"