From 2d477a0fb84d249a30b5af535b467efc25b34923 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Thu, 20 Jul 2023 10:58:44 +0900 Subject: [PATCH] add highlight MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- src/config/placeholder.json | 37 +++++++++++++++++++++- src/openapi/paths/usertweets.yaml | 52 +++++++++++++++++++++++++++++++ 2 files changed, 88 insertions(+), 1 deletion(-) diff --git a/src/config/placeholder.json b/src/config/placeholder.json index 1b574e2..001bc66 100644 --- a/src/config/placeholder.json +++ b/src/config/placeholder.json @@ -115,7 +115,7 @@ "highlights_tweets_tab_ui_enabled": true, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, - "responsive_web_graphql_timeline_navigation_enabled":true + "responsive_web_graphql_timeline_navigation_enabled": true } }, "UsersByRestIds": { @@ -201,6 +201,41 @@ "responsive_web_enhance_cards_enabled": false } }, + "UserHighlightsTweets": { + "queryId": "sTveqh05FMMAFfDNpRc_Jg", + "variables": { + "userId": "44196397", + "count": 20, + "includePromotedContent": true, + "withVoice": true + }, + "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": { + "withAuxiliaryUserLabels": false, + "withArticleRichContentState": false + } + }, "UserMedia": { "queryId": "YqiE3JL1KNgf9nSljYdxaA", "variables": { diff --git a/src/openapi/paths/usertweets.yaml b/src/openapi/paths/usertweets.yaml index 03ecf11..74a42e0 100644 --- a/src/openapi/paths/usertweets.yaml +++ b/src/openapi/paths/usertweets.yaml @@ -32,6 +32,20 @@ paths: tags: - "tweet" + /graphql/{pathQueryId}/UserHighlightsTweets: + get: + operationId: getUserHighlightsTweets + description: "get user highlights tweets" + responses: + "200": + description: Successful operation + content: + application/json: + schema: + $ref: "#/components/schemas/UserHighlightsTweetsResponse" + tags: + - "tweet" + /graphql/{pathQueryId}/UserMedia: get: operationId: getUserMedia @@ -92,3 +106,41 @@ components: $ref: "./../schemas/typename.yaml#/components/schemas/TypeName" # User timeline_v2: $ref: "./../schemas/timeline.yaml#/components/schemas/TimelineV2" + + UserHighlightsTweetsResponse: + required: + - "data" + properties: + data: + $ref: "#/components/schemas/UserHighlightsTweetsData" + + UserHighlightsTweetsData: + required: + - "user" + properties: + user: + $ref: "#/components/schemas/UserHighlightsTweetsUser" + + UserHighlightsTweetsUser: + required: + - "result" + properties: + result: + $ref: "#/components/schemas/UserHighlightsTweetsResult" + + UserHighlightsTweetsResult: + required: + - "timeline" + - "__typename" + properties: + timeline: + $ref: "#/components/schemas/UserHighlightsTweetsTimeline" + __typename: + $ref: "./../schemas/typename.yaml#/components/schemas/TypeName" # User + + UserHighlightsTweetsTimeline: + required: + - "timeline" + properties: + timeline: + $ref: "./../schemas/timeline.yaml#/components/schemas/Timeline"