diff --git a/dist/dart/openapi-3.0.yaml b/dist/dart/openapi-3.0.yaml index 0b61295..2df5ed3 100644 --- a/dist/dart/openapi-3.0.yaml +++ b/dist/dart/openapi-3.0.yaml @@ -48,44 +48,44 @@ paths: $ref: ./paths/v1.1-get.yaml#/paths/~11.1~1search~1typeahead.json /2/search/adaptive.json: $ref: ./paths/v2.0-get.yaml#/paths/~12~1search~1adaptive.json - /graphql/1RyAhNwby-gzGCRVsMxKbQ/CreateTweet: - $ref: ./paths/post.yaml#/paths/~1graphql~11RyAhNwby-gzGCRVsMxKbQ~1CreateTweet - /graphql/2TemLyqrMpTeAmysdbnVqw/ListLatestTweetsTimeline: - $ref: ./paths/timeline.yaml#/paths/~1graphql~12TemLyqrMpTeAmysdbnVqw~1ListLatestTweetsTimeline - /graphql/5fmEkRT-1AdHqEsbVgehMg/Likes: - $ref: ./paths/usertweets.yaml#/paths/~1graphql~15fmEkRT-1AdHqEsbVgehMg~1Likes - /graphql/9zwVLJ48lmVUk8u_Gh9DmA/ProfileSpotlightsQuery: - $ref: ./paths/profile.yaml#/paths/~1graphql~19zwVLJ48lmVUk8u_Gh9DmA~1ProfileSpotlightsQuery - /graphql/HCosKfLNW1AcOo3la3mMgg/HomeTimeline: - $ref: ./paths/timeline.yaml#/paths/~1graphql~1HCosKfLNW1AcOo3la3mMgg~1HomeTimeline - /graphql/HuTx74BxAnezK1gWvYY7zg/UserTweets: - $ref: ./paths/usertweets.yaml#/paths/~1graphql~1HuTx74BxAnezK1gWvYY7zg~1UserTweets - /graphql/IWP6Zt14sARO29lJT35bBw/Following: - $ref: ./paths/follow.yaml#/paths/~1graphql~1IWP6Zt14sARO29lJT35bBw~1Following - /graphql/RIWc55YCNyUJ-U3HHGYkdg/UserTweetsAndReplies: - $ref: ./paths/usertweets.yaml#/paths/~1graphql~1RIWc55YCNyUJ-U3HHGYkdg~1UserTweetsAndReplies - /graphql/VaenaVgh5q5ih7kvyVjgtg/DeleteTweet: - $ref: ./paths/post.yaml#/paths/~1graphql~1VaenaVgh5q5ih7kvyVjgtg~1DeleteTweet - /graphql/YqiE3JL1KNgf9nSljYdxaA/UserMedia: - $ref: ./paths/usertweets.yaml#/paths/~1graphql~1YqiE3JL1KNgf9nSljYdxaA~1UserMedia - /graphql/ZYKSe-w7KEslx3JhSIk5LA/UnfavoriteTweet: - $ref: ./paths/post.yaml#/paths/~1graphql~1ZYKSe-w7KEslx3JhSIk5LA~1UnfavoriteTweet - /graphql/djdTXDIk2qhd4OStqlUFeQ/Followers: - $ref: ./paths/follow.yaml#/paths/~1graphql~1djdTXDIk2qhd4OStqlUFeQ~1Followers - /graphql/iQtK4dl5hBmXewYZuEOKVw/DeleteRetweet: - $ref: ./paths/post.yaml#/paths/~1graphql~1iQtK4dl5hBmXewYZuEOKVw~1DeleteRetweet - /graphql/lI07N6Otwv1PhnEgXILM7A/FavoriteTweet: - $ref: ./paths/post.yaml#/paths/~1graphql~1lI07N6Otwv1PhnEgXILM7A~1FavoriteTweet - /graphql/ojPdsZsimiJrUGLR1sjUtA/CreateRetweet: - $ref: ./paths/post.yaml#/paths/~1graphql~1ojPdsZsimiJrUGLR1sjUtA~1CreateRetweet - /graphql/sLVLhk0bGj3MVFEKTdax1w/UserByScreenName: - $ref: ./paths/user.yaml#/paths/~1graphql~1sLVLhk0bGj3MVFEKTdax1w~1UserByScreenName - /graphql/tmd4ifV8RHltzn8ymGg1aw/Bookmarks: - $ref: ./paths/bookmarks.yaml#/paths/~1graphql~1tmd4ifV8RHltzn8ymGg1aw~1Bookmarks - /graphql/wNNG8DBB8EaXw1lq4vFWGA/TweetDetail: - $ref: ./paths/tweet.yaml#/paths/~1graphql~1wNNG8DBB8EaXw1lq4vFWGA~1TweetDetail - /graphql/zhX91JE87mWvfprhYE97xA/HomeLatestTimeline: - $ref: ./paths/timeline.yaml#/paths/~1graphql~1zhX91JE87mWvfprhYE97xA~1HomeLatestTimeline + /graphql/{pathQueryId}/Bookmarks: + $ref: ./paths/bookmarks.yaml#/paths/~1graphql~1{pathQueryId}~1Bookmarks + /graphql/{pathQueryId}/CreateRetweet: + $ref: ./paths/post.yaml#/paths/~1graphql~1{pathQueryId}~1CreateRetweet + /graphql/{pathQueryId}/CreateTweet: + $ref: ./paths/post.yaml#/paths/~1graphql~1{pathQueryId}~1CreateTweet + /graphql/{pathQueryId}/DeleteRetweet: + $ref: ./paths/post.yaml#/paths/~1graphql~1{pathQueryId}~1DeleteRetweet + /graphql/{pathQueryId}/DeleteTweet: + $ref: ./paths/post.yaml#/paths/~1graphql~1{pathQueryId}~1DeleteTweet + /graphql/{pathQueryId}/FavoriteTweet: + $ref: ./paths/post.yaml#/paths/~1graphql~1{pathQueryId}~1FavoriteTweet + /graphql/{pathQueryId}/Followers: + $ref: ./paths/follow.yaml#/paths/~1graphql~1{pathQueryId}~1Followers + /graphql/{pathQueryId}/Following: + $ref: ./paths/follow.yaml#/paths/~1graphql~1{pathQueryId}~1Following + /graphql/{pathQueryId}/HomeLatestTimeline: + $ref: ./paths/timeline.yaml#/paths/~1graphql~1{pathQueryId}~1HomeLatestTimeline + /graphql/{pathQueryId}/HomeTimeline: + $ref: ./paths/timeline.yaml#/paths/~1graphql~1{pathQueryId}~1HomeTimeline + /graphql/{pathQueryId}/Likes: + $ref: ./paths/usertweets.yaml#/paths/~1graphql~1{pathQueryId}~1Likes + /graphql/{pathQueryId}/ListLatestTweetsTimeline: + $ref: ./paths/timeline.yaml#/paths/~1graphql~1{pathQueryId}~1ListLatestTweetsTimeline + /graphql/{pathQueryId}/ProfileSpotlightsQuery: + $ref: ./paths/profile.yaml#/paths/~1graphql~1{pathQueryId}~1ProfileSpotlightsQuery + /graphql/{pathQueryId}/TweetDetail: + $ref: ./paths/tweet.yaml#/paths/~1graphql~1{pathQueryId}~1TweetDetail + /graphql/{pathQueryId}/UnfavoriteTweet: + $ref: ./paths/post.yaml#/paths/~1graphql~1{pathQueryId}~1UnfavoriteTweet + /graphql/{pathQueryId}/UserByScreenName: + $ref: ./paths/user.yaml#/paths/~1graphql~1{pathQueryId}~1UserByScreenName + /graphql/{pathQueryId}/UserMedia: + $ref: ./paths/usertweets.yaml#/paths/~1graphql~1{pathQueryId}~1UserMedia + /graphql/{pathQueryId}/UserTweets: + $ref: ./paths/usertweets.yaml#/paths/~1graphql~1{pathQueryId}~1UserTweets + /graphql/{pathQueryId}/UserTweetsAndReplies: + $ref: ./paths/usertweets.yaml#/paths/~1graphql~1{pathQueryId}~1UserTweetsAndReplies /other: $ref: ./paths/other.yaml#/paths/~1other security: diff --git a/dist/dart/paths/bookmarks.yaml b/dist/dart/paths/bookmarks.yaml index b06b74a..a23cbf1 100644 --- a/dist/dart/paths/bookmarks.yaml +++ b/dist/dart/paths/bookmarks.yaml @@ -23,7 +23,7 @@ info: version: 0.0.1 openapi: 3.0.3 paths: - /graphql/tmd4ifV8RHltzn8ymGg1aw/Bookmarks: + /graphql/{pathQueryId}/Bookmarks: get: description: get bookmarks operationId: getBookmarks @@ -57,6 +57,13 @@ paths: default: en description: language code. type: string + - in: path + name: pathQueryId + required: true + schema: + default: tmd4ifV8RHltzn8ymGg1aw + example: tmd4ifV8RHltzn8ymGg1aw + type: string - in: query name: queryId required: true diff --git a/dist/dart/paths/follow.yaml b/dist/dart/paths/follow.yaml index bb31433..9b8ade6 100644 --- a/dist/dart/paths/follow.yaml +++ b/dist/dart/paths/follow.yaml @@ -38,118 +38,7 @@ info: version: 0.0.1 openapi: 3.0.3 paths: - /graphql/IWP6Zt14sARO29lJT35bBw/Following: - get: - description: get user list of following - operationId: getFollowing - parameters: - - in: header - name: user-agent - required: true - schema: - default: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, - like Gecko) Chrome/112.0.0.0 Safari/537.36 - description: UserAgent, some APIs may be rejected if changed. - type: string - - in: header - name: authorization - required: true - schema: - default: Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA - description: It is a constant value and does not need to be changed. - type: string - - in: header - name: x-twitter-active-user - required: true - schema: - default: 'yes' - description: Unknown what this value means. - type: string - - in: header - name: x-twitter-client-language - required: true - schema: - default: en - description: language code. - type: string - - in: query - name: queryId - required: true - schema: - default: '"IWP6Zt14sARO29lJT35bBw"' - example: '"IWP6Zt14sARO29lJT35bBw"' - type: string - - in: query - name: variables - required: true - schema: - default: '{"userId": "44196397", "count": 20, "includePromotedContent": - false}' - example: '{"userId": "44196397", "count": 20, "includePromotedContent": - false}' - type: string - - in: query - name: features - required: true - schema: - default: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": - true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": - true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": - false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": - false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": - false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": - false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": - false}' - example: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": - true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": - true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": - false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": - false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": - false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": - false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": - false}' - type: string - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/FollowResponse' - description: Successful operation - headers: - x-connection-hash: - schema: - type: string - x-rate-limit-limit: - schema: - type: integer - x-rate-limit-remaining: - schema: - type: integer - x-rate-limit-reset: - schema: - type: integer - x-response-time: - schema: - type: integer - x-tfe-preserve-body: - schema: - type: boolean - x-transaction-id: - schema: - type: string - x-twitter-response-tags: - schema: - type: string - tags: - - user-list - /graphql/djdTXDIk2qhd4OStqlUFeQ/Followers: + /graphql/{pathQueryId}/Followers: get: description: get user list of followers operationId: getFollowers @@ -183,6 +72,13 @@ paths: default: en description: language code. type: string + - in: path + name: pathQueryId + required: true + schema: + default: djdTXDIk2qhd4OStqlUFeQ + example: djdTXDIk2qhd4OStqlUFeQ + type: string - in: query name: queryId required: true @@ -260,3 +156,121 @@ paths: type: string tags: - user-list + /graphql/{pathQueryId}/Following: + get: + description: get user list of following + operationId: getFollowing + parameters: + - in: header + name: user-agent + required: true + schema: + default: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, + like Gecko) Chrome/112.0.0.0 Safari/537.36 + description: UserAgent, some APIs may be rejected if changed. + type: string + - in: header + name: authorization + required: true + schema: + default: Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA + description: It is a constant value and does not need to be changed. + type: string + - in: header + name: x-twitter-active-user + required: true + schema: + default: 'yes' + description: Unknown what this value means. + type: string + - in: header + name: x-twitter-client-language + required: true + schema: + default: en + description: language code. + type: string + - in: path + name: pathQueryId + required: true + schema: + default: IWP6Zt14sARO29lJT35bBw + example: IWP6Zt14sARO29lJT35bBw + type: string + - in: query + name: queryId + required: true + schema: + default: '"IWP6Zt14sARO29lJT35bBw"' + example: '"IWP6Zt14sARO29lJT35bBw"' + type: string + - in: query + name: variables + required: true + schema: + default: '{"userId": "44196397", "count": 20, "includePromotedContent": + false}' + example: '{"userId": "44196397", "count": 20, "includePromotedContent": + false}' + type: string + - in: query + name: features + required: true + schema: + default: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": + true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": + true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": + false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": + false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": + false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": + false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": + false}' + example: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": + true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": + true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": + false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": + false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": + false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": + false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": + false}' + type: string + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/FollowResponse' + description: Successful operation + headers: + x-connection-hash: + schema: + type: string + x-rate-limit-limit: + schema: + type: integer + x-rate-limit-remaining: + schema: + type: integer + x-rate-limit-reset: + schema: + type: integer + x-response-time: + schema: + type: integer + x-tfe-preserve-body: + schema: + type: boolean + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + tags: + - user-list diff --git a/dist/dart/paths/post.yaml b/dist/dart/paths/post.yaml index 50fd28f..10ff885 100644 --- a/dist/dart/paths/post.yaml +++ b/dist/dart/paths/post.yaml @@ -136,7 +136,110 @@ info: version: 0.0.1 openapi: 3.0.3 paths: - /graphql/1RyAhNwby-gzGCRVsMxKbQ/CreateTweet: + /graphql/{pathQueryId}/CreateRetweet: + post: + description: create Retweet + operationId: postCreateRetweet + parameters: + - in: header + name: user-agent + required: true + schema: + default: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, + like Gecko) Chrome/112.0.0.0 Safari/537.36 + description: UserAgent, some APIs may be rejected if changed. + type: string + - in: header + name: authorization + required: true + schema: + default: Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA + description: It is a constant value and does not need to be changed. + type: string + - in: header + name: x-twitter-active-user + required: true + schema: + default: 'yes' + description: Unknown what this value means. + type: string + - in: header + name: x-twitter-client-language + required: true + schema: + default: en + description: language code. + type: string + - in: path + name: pathQueryId + required: true + schema: + default: ojPdsZsimiJrUGLR1sjUtA + example: ojPdsZsimiJrUGLR1sjUtA + type: string + requestBody: + content: + application/json: + schema: + properties: + queryId: + default: ojPdsZsimiJrUGLR1sjUtA + example: ojPdsZsimiJrUGLR1sjUtA + type: string + variables: + properties: + dark_request: + default: false + example: false + type: boolean + tweet_id: + default: '1349129669258448897' + example: '1349129669258448897' + type: string + required: + - tweet_id + - dark_request + type: object + required: + - queryId + - variables + description: body + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/CreateRetweetResponse' + description: Successful operation + headers: + x-connection-hash: + schema: + type: string + x-rate-limit-limit: + schema: + type: integer + x-rate-limit-remaining: + schema: + type: integer + x-rate-limit-reset: + schema: + type: integer + x-response-time: + schema: + type: integer + x-tfe-preserve-body: + schema: + type: boolean + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + tags: + - post + /graphql/{pathQueryId}/CreateTweet: post: description: create Tweet operationId: postCreateTweet @@ -170,6 +273,13 @@ paths: default: en description: language code. type: string + - in: path + name: pathQueryId + required: true + schema: + default: 1RyAhNwby-gzGCRVsMxKbQ + example: 1RyAhNwby-gzGCRVsMxKbQ + type: string requestBody: content: application/json: @@ -352,199 +462,7 @@ paths: type: string tags: - post - /graphql/VaenaVgh5q5ih7kvyVjgtg/DeleteTweet: - post: - description: delete Retweet - operationId: postDeleteTweet - parameters: - - in: header - name: user-agent - required: true - schema: - default: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, - like Gecko) Chrome/112.0.0.0 Safari/537.36 - description: UserAgent, some APIs may be rejected if changed. - type: string - - in: header - name: authorization - required: true - schema: - default: Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA - description: It is a constant value and does not need to be changed. - type: string - - in: header - name: x-twitter-active-user - required: true - schema: - default: 'yes' - description: Unknown what this value means. - type: string - - in: header - name: x-twitter-client-language - required: true - schema: - default: en - description: language code. - type: string - requestBody: - content: - application/json: - schema: - properties: - queryId: - default: VaenaVgh5q5ih7kvyVjgtg - example: VaenaVgh5q5ih7kvyVjgtg - type: string - variables: - properties: - dark_request: - default: false - example: false - type: boolean - tweet_id: - default: '1349129669258448897' - example: '1349129669258448897' - type: string - required: - - tweet_id - - dark_request - type: object - required: - - queryId - - variables - description: body - required: true - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/DeleteTweetResponse' - description: Successful operation - headers: - x-connection-hash: - schema: - type: string - x-rate-limit-limit: - schema: - type: integer - x-rate-limit-remaining: - schema: - type: integer - x-rate-limit-reset: - schema: - type: integer - x-response-time: - schema: - type: integer - x-tfe-preserve-body: - schema: - type: boolean - x-transaction-id: - schema: - type: string - x-twitter-response-tags: - schema: - type: string - tags: - - post - /graphql/ZYKSe-w7KEslx3JhSIk5LA/UnfavoriteTweet: - post: - description: unfavorite Tweet - operationId: postUnfavoriteTweet - parameters: - - in: header - name: user-agent - required: true - schema: - default: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, - like Gecko) Chrome/112.0.0.0 Safari/537.36 - description: UserAgent, some APIs may be rejected if changed. - type: string - - in: header - name: authorization - required: true - schema: - default: Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA - description: It is a constant value and does not need to be changed. - type: string - - in: header - name: x-twitter-active-user - required: true - schema: - default: 'yes' - description: Unknown what this value means. - type: string - - in: header - name: x-twitter-client-language - required: true - schema: - default: en - description: language code. - type: string - requestBody: - content: - application/json: - schema: - properties: - queryId: - default: ZYKSe-w7KEslx3JhSIk5LA - example: ZYKSe-w7KEslx3JhSIk5LA - type: string - variables: - properties: - dark_request: - default: false - example: false - type: boolean - tweet_id: - default: '1349129669258448897' - example: '1349129669258448897' - type: string - required: - - tweet_id - - dark_request - type: object - required: - - queryId - - variables - description: body - required: true - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/UnfavoriteTweetResponseData' - description: Successful operation - headers: - x-connection-hash: - schema: - type: string - x-rate-limit-limit: - schema: - type: integer - x-rate-limit-remaining: - schema: - type: integer - x-rate-limit-reset: - schema: - type: integer - x-response-time: - schema: - type: integer - x-tfe-preserve-body: - schema: - type: boolean - x-transaction-id: - schema: - type: string - x-twitter-response-tags: - schema: - type: string - tags: - - post - /graphql/iQtK4dl5hBmXewYZuEOKVw/DeleteRetweet: + /graphql/{pathQueryId}/DeleteRetweet: post: description: delete Retweet operationId: postDeleteRetweet @@ -578,6 +496,13 @@ paths: default: en description: language code. type: string + - in: path + name: pathQueryId + required: true + schema: + default: iQtK4dl5hBmXewYZuEOKVw + example: iQtK4dl5hBmXewYZuEOKVw + type: string requestBody: content: application/json: @@ -640,7 +565,110 @@ paths: type: string tags: - post - /graphql/lI07N6Otwv1PhnEgXILM7A/FavoriteTweet: + /graphql/{pathQueryId}/DeleteTweet: + post: + description: delete Retweet + operationId: postDeleteTweet + parameters: + - in: header + name: user-agent + required: true + schema: + default: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, + like Gecko) Chrome/112.0.0.0 Safari/537.36 + description: UserAgent, some APIs may be rejected if changed. + type: string + - in: header + name: authorization + required: true + schema: + default: Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA + description: It is a constant value and does not need to be changed. + type: string + - in: header + name: x-twitter-active-user + required: true + schema: + default: 'yes' + description: Unknown what this value means. + type: string + - in: header + name: x-twitter-client-language + required: true + schema: + default: en + description: language code. + type: string + - in: path + name: pathQueryId + required: true + schema: + default: VaenaVgh5q5ih7kvyVjgtg + example: VaenaVgh5q5ih7kvyVjgtg + type: string + requestBody: + content: + application/json: + schema: + properties: + queryId: + default: VaenaVgh5q5ih7kvyVjgtg + example: VaenaVgh5q5ih7kvyVjgtg + type: string + variables: + properties: + dark_request: + default: false + example: false + type: boolean + tweet_id: + default: '1349129669258448897' + example: '1349129669258448897' + type: string + required: + - tweet_id + - dark_request + type: object + required: + - queryId + - variables + description: body + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DeleteTweetResponse' + description: Successful operation + headers: + x-connection-hash: + schema: + type: string + x-rate-limit-limit: + schema: + type: integer + x-rate-limit-remaining: + schema: + type: integer + x-rate-limit-reset: + schema: + type: integer + x-response-time: + schema: + type: integer + x-tfe-preserve-body: + schema: + type: boolean + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + tags: + - post + /graphql/{pathQueryId}/FavoriteTweet: post: description: favorite Tweet operationId: postFavoriteTweet @@ -674,6 +702,13 @@ paths: default: en description: language code. type: string + - in: path + name: pathQueryId + required: true + schema: + default: lI07N6Otwv1PhnEgXILM7A + example: lI07N6Otwv1PhnEgXILM7A + type: string requestBody: content: application/json: @@ -736,10 +771,10 @@ paths: type: string tags: - post - /graphql/ojPdsZsimiJrUGLR1sjUtA/CreateRetweet: + /graphql/{pathQueryId}/UnfavoriteTweet: post: - description: create Retweet - operationId: postCreateRetweet + description: unfavorite Tweet + operationId: postUnfavoriteTweet parameters: - in: header name: user-agent @@ -770,14 +805,21 @@ paths: default: en description: language code. type: string + - in: path + name: pathQueryId + required: true + schema: + default: ZYKSe-w7KEslx3JhSIk5LA + example: ZYKSe-w7KEslx3JhSIk5LA + type: string requestBody: content: application/json: schema: properties: queryId: - default: ojPdsZsimiJrUGLR1sjUtA - example: ojPdsZsimiJrUGLR1sjUtA + default: ZYKSe-w7KEslx3JhSIk5LA + example: ZYKSe-w7KEslx3JhSIk5LA type: string variables: properties: @@ -803,7 +845,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateRetweetResponse' + $ref: '#/components/schemas/UnfavoriteTweetResponseData' description: Successful operation headers: x-connection-hash: diff --git a/dist/dart/paths/profile.yaml b/dist/dart/paths/profile.yaml index 1bef8b7..e5a5792 100644 --- a/dist/dart/paths/profile.yaml +++ b/dist/dart/paths/profile.yaml @@ -63,7 +63,7 @@ info: version: 0.0.1 openapi: 3.0.3 paths: - /graphql/9zwVLJ48lmVUk8u_Gh9DmA/ProfileSpotlightsQuery: + /graphql/{pathQueryId}/ProfileSpotlightsQuery: get: description: get user by screen name operationId: getProfileSpotlightsQuery @@ -97,6 +97,13 @@ paths: default: en description: language code. type: string + - in: path + name: pathQueryId + required: true + schema: + default: 9zwVLJ48lmVUk8u_Gh9DmA + example: 9zwVLJ48lmVUk8u_Gh9DmA + type: string - in: query name: queryId required: true diff --git a/dist/dart/paths/timeline.yaml b/dist/dart/paths/timeline.yaml index a7b6315..c53a709 100644 --- a/dist/dart/paths/timeline.yaml +++ b/dist/dart/paths/timeline.yaml @@ -47,227 +47,7 @@ info: version: 0.0.1 openapi: 3.0.3 paths: - /graphql/2TemLyqrMpTeAmysdbnVqw/ListLatestTweetsTimeline: - get: - description: get tweet list of timeline - operationId: getListLatestTweetsTimeline - parameters: - - in: header - name: user-agent - required: true - schema: - default: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, - like Gecko) Chrome/112.0.0.0 Safari/537.36 - description: UserAgent, some APIs may be rejected if changed. - type: string - - in: header - name: authorization - required: true - schema: - default: Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA - description: It is a constant value and does not need to be changed. - type: string - - in: header - name: x-twitter-active-user - required: true - schema: - default: 'yes' - description: Unknown what this value means. - type: string - - in: header - name: x-twitter-client-language - required: true - schema: - default: en - description: language code. - type: string - - in: query - name: queryId - required: true - schema: - default: '"2TemLyqrMpTeAmysdbnVqw"' - example: '"2TemLyqrMpTeAmysdbnVqw"' - type: string - - in: query - name: variables - required: true - schema: - default: '{"listId": "53044119", "count": 20}' - example: '{"listId": "53044119", "count": 20}' - type: string - - in: query - name: features - required: true - schema: - default: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": - true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": - true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": - false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": - false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": - false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": - false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": - false}' - example: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": - true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": - true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": - false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": - false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": - false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": - false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": - false}' - type: string - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ListTweetsTimelineResponse' - description: Successful operation - headers: - x-connection-hash: - schema: - type: string - x-rate-limit-limit: - schema: - type: integer - x-rate-limit-remaining: - schema: - type: integer - x-rate-limit-reset: - schema: - type: integer - x-response-time: - schema: - type: integer - x-tfe-preserve-body: - schema: - type: boolean - x-transaction-id: - schema: - type: string - x-twitter-response-tags: - schema: - type: string - tags: - - tweet - /graphql/HCosKfLNW1AcOo3la3mMgg/HomeTimeline: - get: - description: get tweet list of timeline - operationId: getHomeTimeline - parameters: - - in: header - name: user-agent - required: true - schema: - default: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, - like Gecko) Chrome/112.0.0.0 Safari/537.36 - description: UserAgent, some APIs may be rejected if changed. - type: string - - in: header - name: authorization - required: true - schema: - default: Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA - description: It is a constant value and does not need to be changed. - type: string - - in: header - name: x-twitter-active-user - required: true - schema: - default: 'yes' - description: Unknown what this value means. - type: string - - in: header - name: x-twitter-client-language - required: true - schema: - default: en - description: language code. - type: string - - in: query - name: queryId - required: true - schema: - default: '"HCosKfLNW1AcOo3la3mMgg"' - example: '"HCosKfLNW1AcOo3la3mMgg"' - type: string - - in: query - name: variables - required: true - schema: - default: '{"count": 20, "includePromotedContent": true, "latestControlAvailable": - true, "requestContext": "launch", "withCommunity": true}' - example: '{"count": 20, "includePromotedContent": true, "latestControlAvailable": - true, "requestContext": "launch", "withCommunity": true}' - type: string - - in: query - name: features - required: true - schema: - default: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": - true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": - true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": - false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": - false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": - false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": - false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": - false}' - example: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": - true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": - true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": - false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": - false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": - false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": - false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": - false}' - type: string - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/TimelineResponse' - description: Successful operation - headers: - x-connection-hash: - schema: - type: string - x-rate-limit-limit: - schema: - type: integer - x-rate-limit-remaining: - schema: - type: integer - x-rate-limit-reset: - schema: - type: integer - x-response-time: - schema: - type: integer - x-tfe-preserve-body: - schema: - type: boolean - x-transaction-id: - schema: - type: string - x-twitter-response-tags: - schema: - type: string - tags: - - tweet - /graphql/zhX91JE87mWvfprhYE97xA/HomeLatestTimeline: + /graphql/{pathQueryId}/HomeLatestTimeline: get: description: get tweet list of timeline operationId: getHomeLatestTimeline @@ -301,6 +81,13 @@ paths: default: en description: language code. type: string + - in: path + name: pathQueryId + required: true + schema: + default: zhX91JE87mWvfprhYE97xA + example: zhX91JE87mWvfprhYE97xA + type: string - in: query name: queryId required: true @@ -378,3 +165,237 @@ paths: type: string tags: - tweet + /graphql/{pathQueryId}/HomeTimeline: + get: + description: get tweet list of timeline + operationId: getHomeTimeline + parameters: + - in: header + name: user-agent + required: true + schema: + default: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, + like Gecko) Chrome/112.0.0.0 Safari/537.36 + description: UserAgent, some APIs may be rejected if changed. + type: string + - in: header + name: authorization + required: true + schema: + default: Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA + description: It is a constant value and does not need to be changed. + type: string + - in: header + name: x-twitter-active-user + required: true + schema: + default: 'yes' + description: Unknown what this value means. + type: string + - in: header + name: x-twitter-client-language + required: true + schema: + default: en + description: language code. + type: string + - in: path + name: pathQueryId + required: true + schema: + default: HCosKfLNW1AcOo3la3mMgg + example: HCosKfLNW1AcOo3la3mMgg + type: string + - in: query + name: queryId + required: true + schema: + default: '"HCosKfLNW1AcOo3la3mMgg"' + example: '"HCosKfLNW1AcOo3la3mMgg"' + type: string + - in: query + name: variables + required: true + schema: + default: '{"count": 20, "includePromotedContent": true, "latestControlAvailable": + true, "requestContext": "launch", "withCommunity": true}' + example: '{"count": 20, "includePromotedContent": true, "latestControlAvailable": + true, "requestContext": "launch", "withCommunity": true}' + type: string + - in: query + name: features + required: true + schema: + default: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": + true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": + true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": + false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": + false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": + false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": + false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": + false}' + example: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": + true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": + true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": + false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": + false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": + false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": + false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": + false}' + type: string + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/TimelineResponse' + description: Successful operation + headers: + x-connection-hash: + schema: + type: string + x-rate-limit-limit: + schema: + type: integer + x-rate-limit-remaining: + schema: + type: integer + x-rate-limit-reset: + schema: + type: integer + x-response-time: + schema: + type: integer + x-tfe-preserve-body: + schema: + type: boolean + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + tags: + - tweet + /graphql/{pathQueryId}/ListLatestTweetsTimeline: + get: + description: get tweet list of timeline + operationId: getListLatestTweetsTimeline + parameters: + - in: header + name: user-agent + required: true + schema: + default: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, + like Gecko) Chrome/112.0.0.0 Safari/537.36 + description: UserAgent, some APIs may be rejected if changed. + type: string + - in: header + name: authorization + required: true + schema: + default: Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA + description: It is a constant value and does not need to be changed. + type: string + - in: header + name: x-twitter-active-user + required: true + schema: + default: 'yes' + description: Unknown what this value means. + type: string + - in: header + name: x-twitter-client-language + required: true + schema: + default: en + description: language code. + type: string + - in: path + name: pathQueryId + required: true + schema: + default: 2TemLyqrMpTeAmysdbnVqw + example: 2TemLyqrMpTeAmysdbnVqw + type: string + - in: query + name: queryId + required: true + schema: + default: '"2TemLyqrMpTeAmysdbnVqw"' + example: '"2TemLyqrMpTeAmysdbnVqw"' + type: string + - in: query + name: variables + required: true + schema: + default: '{"listId": "53044119", "count": 20}' + example: '{"listId": "53044119", "count": 20}' + type: string + - in: query + name: features + required: true + schema: + default: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": + true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": + true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": + false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": + false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": + false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": + false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": + false}' + example: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": + true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": + true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": + false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": + false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": + false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": + false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": + false}' + type: string + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ListTweetsTimelineResponse' + description: Successful operation + headers: + x-connection-hash: + schema: + type: string + x-rate-limit-limit: + schema: + type: integer + x-rate-limit-remaining: + schema: + type: integer + x-rate-limit-reset: + schema: + type: integer + x-response-time: + schema: + type: integer + x-tfe-preserve-body: + schema: + type: boolean + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + tags: + - tweet diff --git a/dist/dart/paths/tweet.yaml b/dist/dart/paths/tweet.yaml index 84fba4b..d38c941 100644 --- a/dist/dart/paths/tweet.yaml +++ b/dist/dart/paths/tweet.yaml @@ -17,7 +17,7 @@ info: version: 0.0.1 openapi: 3.0.3 paths: - /graphql/wNNG8DBB8EaXw1lq4vFWGA/TweetDetail: + /graphql/{pathQueryId}/TweetDetail: get: description: get TweetDetail operationId: getTweetDetail @@ -51,6 +51,13 @@ paths: default: en description: language code. type: string + - in: path + name: pathQueryId + required: true + schema: + default: wNNG8DBB8EaXw1lq4vFWGA + example: wNNG8DBB8EaXw1lq4vFWGA + type: string - in: query name: queryId required: true diff --git a/dist/dart/paths/user.yaml b/dist/dart/paths/user.yaml index aa13737..fa7a6e7 100644 --- a/dist/dart/paths/user.yaml +++ b/dist/dart/paths/user.yaml @@ -17,7 +17,7 @@ info: version: 0.0.1 openapi: 3.0.3 paths: - /graphql/sLVLhk0bGj3MVFEKTdax1w/UserByScreenName: + /graphql/{pathQueryId}/UserByScreenName: get: description: get user by screen name operationId: getUserByScreenName @@ -51,6 +51,13 @@ paths: default: en description: language code. type: string + - in: path + name: pathQueryId + required: true + schema: + default: sLVLhk0bGj3MVFEKTdax1w + example: sLVLhk0bGj3MVFEKTdax1w + type: string - in: query name: queryId required: true diff --git a/dist/dart/paths/usertweets.yaml b/dist/dart/paths/usertweets.yaml index 125ee0b..b20abec 100644 --- a/dist/dart/paths/usertweets.yaml +++ b/dist/dart/paths/usertweets.yaml @@ -32,7 +32,7 @@ info: version: 0.0.1 openapi: 3.0.3 paths: - /graphql/5fmEkRT-1AdHqEsbVgehMg/Likes: + /graphql/{pathQueryId}/Likes: get: description: get user likes tweets operationId: getLikes @@ -66,6 +66,13 @@ paths: default: en description: language code. type: string + - in: path + name: pathQueryId + required: true + schema: + default: 5fmEkRT-1AdHqEsbVgehMg + example: 5fmEkRT-1AdHqEsbVgehMg + type: string - in: query name: queryId required: true @@ -145,231 +152,7 @@ paths: type: string tags: - tweet - /graphql/HuTx74BxAnezK1gWvYY7zg/UserTweets: - get: - description: get user tweets - operationId: getUserTweets - parameters: - - in: header - name: user-agent - required: true - schema: - default: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, - like Gecko) Chrome/112.0.0.0 Safari/537.36 - description: UserAgent, some APIs may be rejected if changed. - type: string - - in: header - name: authorization - required: true - schema: - default: Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA - description: It is a constant value and does not need to be changed. - type: string - - in: header - name: x-twitter-active-user - required: true - schema: - default: 'yes' - description: Unknown what this value means. - type: string - - in: header - name: x-twitter-client-language - required: true - schema: - default: en - description: language code. - type: string - - in: query - name: queryId - required: true - schema: - default: '"HuTx74BxAnezK1gWvYY7zg"' - example: '"HuTx74BxAnezK1gWvYY7zg"' - type: string - - in: query - name: variables - required: true - schema: - default: '{"userId": "44196397", "count": 40, "includePromotedContent": - true, "withQuickPromoteEligibilityTweetFields": true, "withVoice": true, - "withV2Timeline": true}' - example: '{"userId": "44196397", "count": 40, "includePromotedContent": - true, "withQuickPromoteEligibilityTweetFields": true, "withVoice": true, - "withV2Timeline": true}' - type: string - - in: query - name: features - required: true - schema: - default: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": - true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": - true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": - false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": - false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": - false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": - false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": - false}' - example: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": - true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": - true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": - false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": - false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": - false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": - false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": - false}' - type: string - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/UserTweetsResponse' - description: Successful operation - headers: - x-connection-hash: - schema: - type: string - x-rate-limit-limit: - schema: - type: integer - x-rate-limit-remaining: - schema: - type: integer - x-rate-limit-reset: - schema: - type: integer - x-response-time: - schema: - type: integer - x-tfe-preserve-body: - schema: - type: boolean - x-transaction-id: - schema: - type: string - x-twitter-response-tags: - schema: - type: string - tags: - - tweet - /graphql/RIWc55YCNyUJ-U3HHGYkdg/UserTweetsAndReplies: - get: - description: get user replies tweets - operationId: getUserTweetsAndReplies - parameters: - - in: header - name: user-agent - required: true - schema: - default: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, - like Gecko) Chrome/112.0.0.0 Safari/537.36 - description: UserAgent, some APIs may be rejected if changed. - type: string - - in: header - name: authorization - required: true - schema: - default: Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA - description: It is a constant value and does not need to be changed. - type: string - - in: header - name: x-twitter-active-user - required: true - schema: - default: 'yes' - description: Unknown what this value means. - type: string - - in: header - name: x-twitter-client-language - required: true - schema: - default: en - description: language code. - type: string - - in: query - name: queryId - required: true - schema: - default: '"RIWc55YCNyUJ-U3HHGYkdg"' - example: '"RIWc55YCNyUJ-U3HHGYkdg"' - type: string - - in: query - name: variables - required: true - schema: - default: '{"userId": "44196397", "count": 40, "includePromotedContent": - true, "withCommunity": true, "withVoice": true, "withV2Timeline": true}' - example: '{"userId": "44196397", "count": 40, "includePromotedContent": - true, "withCommunity": true, "withVoice": true, "withV2Timeline": true}' - type: string - - in: query - name: features - required: true - schema: - default: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": - true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": - true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": - false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": - false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": - false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": - false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": - false}' - example: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": - true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": - true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": - false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": - false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": - false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": - false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": - false}' - type: string - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/UserTweetsResponse' - description: Successful operation - headers: - x-connection-hash: - schema: - type: string - x-rate-limit-limit: - schema: - type: integer - x-rate-limit-remaining: - schema: - type: integer - x-rate-limit-reset: - schema: - type: integer - x-response-time: - schema: - type: integer - x-tfe-preserve-body: - schema: - type: boolean - x-transaction-id: - schema: - type: string - x-twitter-response-tags: - schema: - type: string - tags: - - tweet - /graphql/YqiE3JL1KNgf9nSljYdxaA/UserMedia: + /graphql/{pathQueryId}/UserMedia: get: description: get user media tweets operationId: getUserMedia @@ -403,6 +186,13 @@ paths: default: en description: language code. type: string + - in: path + name: pathQueryId + required: true + schema: + default: YqiE3JL1KNgf9nSljYdxaA + example: YqiE3JL1KNgf9nSljYdxaA + type: string - in: query name: queryId required: true @@ -482,3 +272,241 @@ paths: type: string tags: - tweet + /graphql/{pathQueryId}/UserTweets: + get: + description: get user tweets + operationId: getUserTweets + parameters: + - in: header + name: user-agent + required: true + schema: + default: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, + like Gecko) Chrome/112.0.0.0 Safari/537.36 + description: UserAgent, some APIs may be rejected if changed. + type: string + - in: header + name: authorization + required: true + schema: + default: Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA + description: It is a constant value and does not need to be changed. + type: string + - in: header + name: x-twitter-active-user + required: true + schema: + default: 'yes' + description: Unknown what this value means. + type: string + - in: header + name: x-twitter-client-language + required: true + schema: + default: en + description: language code. + type: string + - in: path + name: pathQueryId + required: true + schema: + default: HuTx74BxAnezK1gWvYY7zg + example: HuTx74BxAnezK1gWvYY7zg + type: string + - in: query + name: queryId + required: true + schema: + default: '"HuTx74BxAnezK1gWvYY7zg"' + example: '"HuTx74BxAnezK1gWvYY7zg"' + type: string + - in: query + name: variables + required: true + schema: + default: '{"userId": "44196397", "count": 40, "includePromotedContent": + true, "withQuickPromoteEligibilityTweetFields": true, "withVoice": true, + "withV2Timeline": true}' + example: '{"userId": "44196397", "count": 40, "includePromotedContent": + true, "withQuickPromoteEligibilityTweetFields": true, "withVoice": true, + "withV2Timeline": true}' + type: string + - in: query + name: features + required: true + schema: + default: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": + true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": + true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": + false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": + false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": + false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": + false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": + false}' + example: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": + true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": + true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": + false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": + false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": + false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": + false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": + false}' + type: string + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/UserTweetsResponse' + description: Successful operation + headers: + x-connection-hash: + schema: + type: string + x-rate-limit-limit: + schema: + type: integer + x-rate-limit-remaining: + schema: + type: integer + x-rate-limit-reset: + schema: + type: integer + x-response-time: + schema: + type: integer + x-tfe-preserve-body: + schema: + type: boolean + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + tags: + - tweet + /graphql/{pathQueryId}/UserTweetsAndReplies: + get: + description: get user replies tweets + operationId: getUserTweetsAndReplies + parameters: + - in: header + name: user-agent + required: true + schema: + default: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, + like Gecko) Chrome/112.0.0.0 Safari/537.36 + description: UserAgent, some APIs may be rejected if changed. + type: string + - in: header + name: authorization + required: true + schema: + default: Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA + description: It is a constant value and does not need to be changed. + type: string + - in: header + name: x-twitter-active-user + required: true + schema: + default: 'yes' + description: Unknown what this value means. + type: string + - in: header + name: x-twitter-client-language + required: true + schema: + default: en + description: language code. + type: string + - in: path + name: pathQueryId + required: true + schema: + default: RIWc55YCNyUJ-U3HHGYkdg + example: RIWc55YCNyUJ-U3HHGYkdg + type: string + - in: query + name: queryId + required: true + schema: + default: '"RIWc55YCNyUJ-U3HHGYkdg"' + example: '"RIWc55YCNyUJ-U3HHGYkdg"' + type: string + - in: query + name: variables + required: true + schema: + default: '{"userId": "44196397", "count": 40, "includePromotedContent": + true, "withCommunity": true, "withVoice": true, "withV2Timeline": true}' + example: '{"userId": "44196397", "count": 40, "includePromotedContent": + true, "withCommunity": true, "withVoice": true, "withV2Timeline": true}' + type: string + - in: query + name: features + required: true + schema: + default: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": + true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": + true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": + false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": + false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": + false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": + false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": + false}' + example: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": + true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": + true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": + false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": + false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": + false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": + false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": + false}' + type: string + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/UserTweetsResponse' + description: Successful operation + headers: + x-connection-hash: + schema: + type: string + x-rate-limit-limit: + schema: + type: integer + x-rate-limit-remaining: + schema: + type: integer + x-rate-limit-reset: + schema: + type: integer + x-response-time: + schema: + type: integer + x-tfe-preserve-body: + schema: + type: boolean + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + tags: + - tweet diff --git a/dist/dart/resources/parameters.yaml b/dist/dart/resources/parameters.yaml new file mode 100644 index 0000000..e6a9c38 --- /dev/null +++ b/dist/dart/resources/parameters.yaml @@ -0,0 +1,13 @@ +components: + parameters: + queryId: + in: path + name: queryId + required: true + schema: + type: string +info: + title: Twitter OpenAPI + version: 0.0.1 +openapi: 3.0.3 +paths: {} diff --git a/dist/dart/schemas/tweet.yaml b/dist/dart/schemas/tweet.yaml index 002fcc6..2efabc8 100644 --- a/dist/dart/schemas/tweet.yaml +++ b/dist/dart/schemas/tweet.yaml @@ -130,7 +130,8 @@ components: - name - url type: object - rest_id: string + rest_id: + type: string type: object core: $ref: ./user.yaml#/components/schemas/UserResultCore diff --git a/dist/docs/openapi-3.0.yaml b/dist/docs/openapi-3.0.yaml index 14e3f7f..1794799 100644 --- a/dist/docs/openapi-3.0.yaml +++ b/dist/docs/openapi-3.0.yaml @@ -68,44 +68,44 @@ paths: $ref: ./paths/v1.1-get.yaml#/paths/~11.1~1search~1typeahead.json /2/search/adaptive.json: $ref: ./paths/v2.0-get.yaml#/paths/~12~1search~1adaptive.json - /graphql/1RyAhNwby-gzGCRVsMxKbQ/CreateTweet: - $ref: ./paths/post.yaml#/paths/~1graphql~11RyAhNwby-gzGCRVsMxKbQ~1CreateTweet - /graphql/2TemLyqrMpTeAmysdbnVqw/ListLatestTweetsTimeline: - $ref: ./paths/timeline.yaml#/paths/~1graphql~12TemLyqrMpTeAmysdbnVqw~1ListLatestTweetsTimeline - /graphql/5fmEkRT-1AdHqEsbVgehMg/Likes: - $ref: ./paths/usertweets.yaml#/paths/~1graphql~15fmEkRT-1AdHqEsbVgehMg~1Likes - /graphql/9zwVLJ48lmVUk8u_Gh9DmA/ProfileSpotlightsQuery: - $ref: ./paths/profile.yaml#/paths/~1graphql~19zwVLJ48lmVUk8u_Gh9DmA~1ProfileSpotlightsQuery - /graphql/HCosKfLNW1AcOo3la3mMgg/HomeTimeline: - $ref: ./paths/timeline.yaml#/paths/~1graphql~1HCosKfLNW1AcOo3la3mMgg~1HomeTimeline - /graphql/HuTx74BxAnezK1gWvYY7zg/UserTweets: - $ref: ./paths/usertweets.yaml#/paths/~1graphql~1HuTx74BxAnezK1gWvYY7zg~1UserTweets - /graphql/IWP6Zt14sARO29lJT35bBw/Following: - $ref: ./paths/follow.yaml#/paths/~1graphql~1IWP6Zt14sARO29lJT35bBw~1Following - /graphql/RIWc55YCNyUJ-U3HHGYkdg/UserTweetsAndReplies: - $ref: ./paths/usertweets.yaml#/paths/~1graphql~1RIWc55YCNyUJ-U3HHGYkdg~1UserTweetsAndReplies - /graphql/VaenaVgh5q5ih7kvyVjgtg/DeleteTweet: - $ref: ./paths/post.yaml#/paths/~1graphql~1VaenaVgh5q5ih7kvyVjgtg~1DeleteTweet - /graphql/YqiE3JL1KNgf9nSljYdxaA/UserMedia: - $ref: ./paths/usertweets.yaml#/paths/~1graphql~1YqiE3JL1KNgf9nSljYdxaA~1UserMedia - /graphql/ZYKSe-w7KEslx3JhSIk5LA/UnfavoriteTweet: - $ref: ./paths/post.yaml#/paths/~1graphql~1ZYKSe-w7KEslx3JhSIk5LA~1UnfavoriteTweet - /graphql/djdTXDIk2qhd4OStqlUFeQ/Followers: - $ref: ./paths/follow.yaml#/paths/~1graphql~1djdTXDIk2qhd4OStqlUFeQ~1Followers - /graphql/iQtK4dl5hBmXewYZuEOKVw/DeleteRetweet: - $ref: ./paths/post.yaml#/paths/~1graphql~1iQtK4dl5hBmXewYZuEOKVw~1DeleteRetweet - /graphql/lI07N6Otwv1PhnEgXILM7A/FavoriteTweet: - $ref: ./paths/post.yaml#/paths/~1graphql~1lI07N6Otwv1PhnEgXILM7A~1FavoriteTweet - /graphql/ojPdsZsimiJrUGLR1sjUtA/CreateRetweet: - $ref: ./paths/post.yaml#/paths/~1graphql~1ojPdsZsimiJrUGLR1sjUtA~1CreateRetweet - /graphql/sLVLhk0bGj3MVFEKTdax1w/UserByScreenName: - $ref: ./paths/user.yaml#/paths/~1graphql~1sLVLhk0bGj3MVFEKTdax1w~1UserByScreenName - /graphql/tmd4ifV8RHltzn8ymGg1aw/Bookmarks: - $ref: ./paths/bookmarks.yaml#/paths/~1graphql~1tmd4ifV8RHltzn8ymGg1aw~1Bookmarks - /graphql/wNNG8DBB8EaXw1lq4vFWGA/TweetDetail: - $ref: ./paths/tweet.yaml#/paths/~1graphql~1wNNG8DBB8EaXw1lq4vFWGA~1TweetDetail - /graphql/zhX91JE87mWvfprhYE97xA/HomeLatestTimeline: - $ref: ./paths/timeline.yaml#/paths/~1graphql~1zhX91JE87mWvfprhYE97xA~1HomeLatestTimeline + /graphql/{pathQueryId}/Bookmarks: + $ref: ./paths/bookmarks.yaml#/paths/~1graphql~1{pathQueryId}~1Bookmarks + /graphql/{pathQueryId}/CreateRetweet: + $ref: ./paths/post.yaml#/paths/~1graphql~1{pathQueryId}~1CreateRetweet + /graphql/{pathQueryId}/CreateTweet: + $ref: ./paths/post.yaml#/paths/~1graphql~1{pathQueryId}~1CreateTweet + /graphql/{pathQueryId}/DeleteRetweet: + $ref: ./paths/post.yaml#/paths/~1graphql~1{pathQueryId}~1DeleteRetweet + /graphql/{pathQueryId}/DeleteTweet: + $ref: ./paths/post.yaml#/paths/~1graphql~1{pathQueryId}~1DeleteTweet + /graphql/{pathQueryId}/FavoriteTweet: + $ref: ./paths/post.yaml#/paths/~1graphql~1{pathQueryId}~1FavoriteTweet + /graphql/{pathQueryId}/Followers: + $ref: ./paths/follow.yaml#/paths/~1graphql~1{pathQueryId}~1Followers + /graphql/{pathQueryId}/Following: + $ref: ./paths/follow.yaml#/paths/~1graphql~1{pathQueryId}~1Following + /graphql/{pathQueryId}/HomeLatestTimeline: + $ref: ./paths/timeline.yaml#/paths/~1graphql~1{pathQueryId}~1HomeLatestTimeline + /graphql/{pathQueryId}/HomeTimeline: + $ref: ./paths/timeline.yaml#/paths/~1graphql~1{pathQueryId}~1HomeTimeline + /graphql/{pathQueryId}/Likes: + $ref: ./paths/usertweets.yaml#/paths/~1graphql~1{pathQueryId}~1Likes + /graphql/{pathQueryId}/ListLatestTweetsTimeline: + $ref: ./paths/timeline.yaml#/paths/~1graphql~1{pathQueryId}~1ListLatestTweetsTimeline + /graphql/{pathQueryId}/ProfileSpotlightsQuery: + $ref: ./paths/profile.yaml#/paths/~1graphql~1{pathQueryId}~1ProfileSpotlightsQuery + /graphql/{pathQueryId}/TweetDetail: + $ref: ./paths/tweet.yaml#/paths/~1graphql~1{pathQueryId}~1TweetDetail + /graphql/{pathQueryId}/UnfavoriteTweet: + $ref: ./paths/post.yaml#/paths/~1graphql~1{pathQueryId}~1UnfavoriteTweet + /graphql/{pathQueryId}/UserByScreenName: + $ref: ./paths/user.yaml#/paths/~1graphql~1{pathQueryId}~1UserByScreenName + /graphql/{pathQueryId}/UserMedia: + $ref: ./paths/usertweets.yaml#/paths/~1graphql~1{pathQueryId}~1UserMedia + /graphql/{pathQueryId}/UserTweets: + $ref: ./paths/usertweets.yaml#/paths/~1graphql~1{pathQueryId}~1UserTweets + /graphql/{pathQueryId}/UserTweetsAndReplies: + $ref: ./paths/usertweets.yaml#/paths/~1graphql~1{pathQueryId}~1UserTweetsAndReplies /other: $ref: ./paths/other.yaml#/paths/~1other security: diff --git a/dist/docs/paths/bookmarks.yaml b/dist/docs/paths/bookmarks.yaml index f092aab..573c85e 100644 --- a/dist/docs/paths/bookmarks.yaml +++ b/dist/docs/paths/bookmarks.yaml @@ -23,11 +23,18 @@ info: version: 0.0.1 openapi: 3.0.3 paths: - /graphql/tmd4ifV8RHltzn8ymGg1aw/Bookmarks: + /graphql/{pathQueryId}/Bookmarks: get: description: get bookmarks operationId: getBookmarks parameters: + - in: path + name: pathQueryId + required: true + schema: + default: tmd4ifV8RHltzn8ymGg1aw + example: tmd4ifV8RHltzn8ymGg1aw + type: string - content: application/json: required: diff --git a/dist/docs/paths/follow.yaml b/dist/docs/paths/follow.yaml index 7a67a2a..6588b71 100644 --- a/dist/docs/paths/follow.yaml +++ b/dist/docs/paths/follow.yaml @@ -38,234 +38,18 @@ info: version: 0.0.1 openapi: 3.0.3 paths: - /graphql/IWP6Zt14sARO29lJT35bBw/Following: - get: - description: get user list of following - operationId: getFollowing - parameters: - - content: - application/json: - required: - - I - - W - - P - - '6' - - Z - - t - - '1' - - '4' - - s - - A - - R - - O - - '2' - - '9' - - l - - J - - T - - '3' - - '5' - - b - - B - - w - schema: - default: IWP6Zt14sARO29lJT35bBw - example: IWP6Zt14sARO29lJT35bBw - type: string - in: query - name: queryId - required: true - - content: - application/json: - required: - - userId - - count - - includePromotedContent - schema: - properties: - count: - default: 20 - example: 20 - type: integer - includePromotedContent: - default: false - example: false - type: boolean - userId: - default: '44196397' - example: '44196397' - type: string - required: - - userId - - count - - includePromotedContent - type: object - in: query - name: variables - required: true - - content: - application/json: - required: - - blue_business_profile_image_shape_enabled - - responsive_web_graphql_exclude_directive_enabled - - verified_phone_label_enabled - - responsive_web_graphql_timeline_navigation_enabled - - responsive_web_graphql_skip_user_profile_image_extensions_enabled - - tweetypie_unmention_optimization_enabled - - vibe_api_enabled - - responsive_web_edit_tweet_api_enabled - - graphql_is_translatable_rweb_tweet_is_translatable_enabled - - view_counts_everywhere_api_enabled - - longform_notetweets_consumption_enabled - - tweet_awards_web_tipping_enabled - - freedom_of_speech_not_reach_fetch_enabled - - standardized_nudges_misinfo - - tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled - - interactive_text_enabled - - responsive_web_text_conversations_enabled - - longform_notetweets_rich_text_read_enabled - - responsive_web_enhance_cards_enabled - schema: - properties: - blue_business_profile_image_shape_enabled: - default: true - example: true - type: boolean - freedom_of_speech_not_reach_fetch_enabled: - default: false - example: false - type: boolean - graphql_is_translatable_rweb_tweet_is_translatable_enabled: - default: true - example: true - type: boolean - interactive_text_enabled: - default: true - example: true - type: boolean - longform_notetweets_consumption_enabled: - default: true - example: true - type: boolean - longform_notetweets_rich_text_read_enabled: - default: true - example: true - type: boolean - responsive_web_edit_tweet_api_enabled: - default: true - example: true - type: boolean - responsive_web_enhance_cards_enabled: - default: false - example: false - type: boolean - responsive_web_graphql_exclude_directive_enabled: - default: true - example: true - type: boolean - responsive_web_graphql_skip_user_profile_image_extensions_enabled: - default: false - example: false - type: boolean - responsive_web_graphql_timeline_navigation_enabled: - default: true - example: true - type: boolean - responsive_web_text_conversations_enabled: - default: false - example: false - type: boolean - standardized_nudges_misinfo: - default: true - example: true - type: boolean - tweet_awards_web_tipping_enabled: - default: false - example: false - type: boolean - tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled: - default: false - example: false - type: boolean - tweetypie_unmention_optimization_enabled: - default: true - example: true - type: boolean - verified_phone_label_enabled: - default: false - example: false - type: boolean - vibe_api_enabled: - default: true - example: true - type: boolean - view_counts_everywhere_api_enabled: - default: true - example: true - type: boolean - required: - - blue_business_profile_image_shape_enabled - - responsive_web_graphql_exclude_directive_enabled - - verified_phone_label_enabled - - responsive_web_graphql_timeline_navigation_enabled - - responsive_web_graphql_skip_user_profile_image_extensions_enabled - - tweetypie_unmention_optimization_enabled - - vibe_api_enabled - - responsive_web_edit_tweet_api_enabled - - graphql_is_translatable_rweb_tweet_is_translatable_enabled - - view_counts_everywhere_api_enabled - - longform_notetweets_consumption_enabled - - tweet_awards_web_tipping_enabled - - freedom_of_speech_not_reach_fetch_enabled - - standardized_nudges_misinfo - - tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled - - interactive_text_enabled - - responsive_web_text_conversations_enabled - - longform_notetweets_rich_text_read_enabled - - responsive_web_enhance_cards_enabled - type: object - in: query - name: features - required: true - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/FollowResponse' - description: Successful operation - headers: - x-connection-hash: - schema: - type: string - x-rate-limit-limit: - schema: - type: integer - x-rate-limit-remaining: - schema: - type: integer - x-rate-limit-reset: - schema: - type: integer - x-response-time: - schema: - type: integer - x-tfe-preserve-body: - schema: - type: boolean - x-transaction-id: - schema: - type: string - x-twitter-response-tags: - schema: - type: string - tags: - - user-list - /graphql/djdTXDIk2qhd4OStqlUFeQ/Followers: + /graphql/{pathQueryId}/Followers: get: description: get user list of followers operationId: getFollowers parameters: + - in: path + name: pathQueryId + required: true + schema: + default: djdTXDIk2qhd4OStqlUFeQ + example: djdTXDIk2qhd4OStqlUFeQ + type: string - content: application/json: required: @@ -484,3 +268,233 @@ paths: type: string tags: - user-list + /graphql/{pathQueryId}/Following: + get: + description: get user list of following + operationId: getFollowing + parameters: + - in: path + name: pathQueryId + required: true + schema: + default: IWP6Zt14sARO29lJT35bBw + example: IWP6Zt14sARO29lJT35bBw + type: string + - content: + application/json: + required: + - I + - W + - P + - '6' + - Z + - t + - '1' + - '4' + - s + - A + - R + - O + - '2' + - '9' + - l + - J + - T + - '3' + - '5' + - b + - B + - w + schema: + default: IWP6Zt14sARO29lJT35bBw + example: IWP6Zt14sARO29lJT35bBw + type: string + in: query + name: queryId + required: true + - content: + application/json: + required: + - userId + - count + - includePromotedContent + schema: + properties: + count: + default: 20 + example: 20 + type: integer + includePromotedContent: + default: false + example: false + type: boolean + userId: + default: '44196397' + example: '44196397' + type: string + required: + - userId + - count + - includePromotedContent + type: object + in: query + name: variables + required: true + - content: + application/json: + required: + - blue_business_profile_image_shape_enabled + - responsive_web_graphql_exclude_directive_enabled + - verified_phone_label_enabled + - responsive_web_graphql_timeline_navigation_enabled + - responsive_web_graphql_skip_user_profile_image_extensions_enabled + - tweetypie_unmention_optimization_enabled + - vibe_api_enabled + - responsive_web_edit_tweet_api_enabled + - graphql_is_translatable_rweb_tweet_is_translatable_enabled + - view_counts_everywhere_api_enabled + - longform_notetweets_consumption_enabled + - tweet_awards_web_tipping_enabled + - freedom_of_speech_not_reach_fetch_enabled + - standardized_nudges_misinfo + - tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled + - interactive_text_enabled + - responsive_web_text_conversations_enabled + - longform_notetweets_rich_text_read_enabled + - responsive_web_enhance_cards_enabled + schema: + properties: + blue_business_profile_image_shape_enabled: + default: true + example: true + type: boolean + freedom_of_speech_not_reach_fetch_enabled: + default: false + example: false + type: boolean + graphql_is_translatable_rweb_tweet_is_translatable_enabled: + default: true + example: true + type: boolean + interactive_text_enabled: + default: true + example: true + type: boolean + longform_notetweets_consumption_enabled: + default: true + example: true + type: boolean + longform_notetweets_rich_text_read_enabled: + default: true + example: true + type: boolean + responsive_web_edit_tweet_api_enabled: + default: true + example: true + type: boolean + responsive_web_enhance_cards_enabled: + default: false + example: false + type: boolean + responsive_web_graphql_exclude_directive_enabled: + default: true + example: true + type: boolean + responsive_web_graphql_skip_user_profile_image_extensions_enabled: + default: false + example: false + type: boolean + responsive_web_graphql_timeline_navigation_enabled: + default: true + example: true + type: boolean + responsive_web_text_conversations_enabled: + default: false + example: false + type: boolean + standardized_nudges_misinfo: + default: true + example: true + type: boolean + tweet_awards_web_tipping_enabled: + default: false + example: false + type: boolean + tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled: + default: false + example: false + type: boolean + tweetypie_unmention_optimization_enabled: + default: true + example: true + type: boolean + verified_phone_label_enabled: + default: false + example: false + type: boolean + vibe_api_enabled: + default: true + example: true + type: boolean + view_counts_everywhere_api_enabled: + default: true + example: true + type: boolean + required: + - blue_business_profile_image_shape_enabled + - responsive_web_graphql_exclude_directive_enabled + - verified_phone_label_enabled + - responsive_web_graphql_timeline_navigation_enabled + - responsive_web_graphql_skip_user_profile_image_extensions_enabled + - tweetypie_unmention_optimization_enabled + - vibe_api_enabled + - responsive_web_edit_tweet_api_enabled + - graphql_is_translatable_rweb_tweet_is_translatable_enabled + - view_counts_everywhere_api_enabled + - longform_notetweets_consumption_enabled + - tweet_awards_web_tipping_enabled + - freedom_of_speech_not_reach_fetch_enabled + - standardized_nudges_misinfo + - tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled + - interactive_text_enabled + - responsive_web_text_conversations_enabled + - longform_notetweets_rich_text_read_enabled + - responsive_web_enhance_cards_enabled + type: object + in: query + name: features + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/FollowResponse' + description: Successful operation + headers: + x-connection-hash: + schema: + type: string + x-rate-limit-limit: + schema: + type: integer + x-rate-limit-remaining: + schema: + type: integer + x-rate-limit-reset: + schema: + type: integer + x-response-time: + schema: + type: integer + x-tfe-preserve-body: + schema: + type: boolean + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + tags: + - user-list diff --git a/dist/docs/paths/post.yaml b/dist/docs/paths/post.yaml index 6c7a966..77ebbdf 100644 --- a/dist/docs/paths/post.yaml +++ b/dist/docs/paths/post.yaml @@ -136,11 +136,88 @@ info: version: 0.0.1 openapi: 3.0.3 paths: - /graphql/1RyAhNwby-gzGCRVsMxKbQ/CreateTweet: + /graphql/{pathQueryId}/CreateRetweet: + post: + description: create Retweet + operationId: postCreateRetweet + parameters: + - in: path + name: pathQueryId + required: true + schema: + default: ojPdsZsimiJrUGLR1sjUtA + example: ojPdsZsimiJrUGLR1sjUtA + type: string + - in: query + name: queryId + required: true + schema: + default: ojPdsZsimiJrUGLR1sjUtA + example: ojPdsZsimiJrUGLR1sjUtA + type: string + - in: query + name: variables + required: true + schema: + properties: + dark_request: + default: false + example: false + type: boolean + tweet_id: + default: '1349129669258448897' + example: '1349129669258448897' + type: string + required: + - tweet_id + - dark_request + type: object + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/CreateRetweetResponse' + description: Successful operation + headers: + x-connection-hash: + schema: + type: string + x-rate-limit-limit: + schema: + type: integer + x-rate-limit-remaining: + schema: + type: integer + x-rate-limit-reset: + schema: + type: integer + x-response-time: + schema: + type: integer + x-tfe-preserve-body: + schema: + type: boolean + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + tags: + - post + /graphql/{pathQueryId}/CreateTweet: post: description: create Tweet operationId: postCreateTweet parameters: + - in: path + name: pathQueryId + required: true + schema: + default: 1RyAhNwby-gzGCRVsMxKbQ + example: 1RyAhNwby-gzGCRVsMxKbQ + type: string - in: query name: queryId required: true @@ -321,137 +398,18 @@ paths: type: string tags: - post - /graphql/VaenaVgh5q5ih7kvyVjgtg/DeleteTweet: - post: - description: delete Retweet - operationId: postDeleteTweet - parameters: - - in: query - name: queryId - required: true - schema: - default: VaenaVgh5q5ih7kvyVjgtg - example: VaenaVgh5q5ih7kvyVjgtg - type: string - - in: query - name: variables - required: true - schema: - properties: - dark_request: - default: false - example: false - type: boolean - tweet_id: - default: '1349129669258448897' - example: '1349129669258448897' - type: string - required: - - tweet_id - - dark_request - type: object - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/DeleteTweetResponse' - description: Successful operation - headers: - x-connection-hash: - schema: - type: string - x-rate-limit-limit: - schema: - type: integer - x-rate-limit-remaining: - schema: - type: integer - x-rate-limit-reset: - schema: - type: integer - x-response-time: - schema: - type: integer - x-tfe-preserve-body: - schema: - type: boolean - x-transaction-id: - schema: - type: string - x-twitter-response-tags: - schema: - type: string - tags: - - post - /graphql/ZYKSe-w7KEslx3JhSIk5LA/UnfavoriteTweet: - post: - description: unfavorite Tweet - operationId: postUnfavoriteTweet - parameters: - - in: query - name: queryId - required: true - schema: - default: ZYKSe-w7KEslx3JhSIk5LA - example: ZYKSe-w7KEslx3JhSIk5LA - type: string - - in: query - name: variables - required: true - schema: - properties: - dark_request: - default: false - example: false - type: boolean - tweet_id: - default: '1349129669258448897' - example: '1349129669258448897' - type: string - required: - - tweet_id - - dark_request - type: object - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/UnfavoriteTweetResponseData' - description: Successful operation - headers: - x-connection-hash: - schema: - type: string - x-rate-limit-limit: - schema: - type: integer - x-rate-limit-remaining: - schema: - type: integer - x-rate-limit-reset: - schema: - type: integer - x-response-time: - schema: - type: integer - x-tfe-preserve-body: - schema: - type: boolean - x-transaction-id: - schema: - type: string - x-twitter-response-tags: - schema: - type: string - tags: - - post - /graphql/iQtK4dl5hBmXewYZuEOKVw/DeleteRetweet: + /graphql/{pathQueryId}/DeleteRetweet: post: description: delete Retweet operationId: postDeleteRetweet parameters: + - in: path + name: pathQueryId + required: true + schema: + default: iQtK4dl5hBmXewYZuEOKVw + example: iQtK4dl5hBmXewYZuEOKVw + type: string - in: query name: queryId required: true @@ -510,11 +468,88 @@ paths: type: string tags: - post - /graphql/lI07N6Otwv1PhnEgXILM7A/FavoriteTweet: + /graphql/{pathQueryId}/DeleteTweet: + post: + description: delete Retweet + operationId: postDeleteTweet + parameters: + - in: path + name: pathQueryId + required: true + schema: + default: VaenaVgh5q5ih7kvyVjgtg + example: VaenaVgh5q5ih7kvyVjgtg + type: string + - in: query + name: queryId + required: true + schema: + default: VaenaVgh5q5ih7kvyVjgtg + example: VaenaVgh5q5ih7kvyVjgtg + type: string + - in: query + name: variables + required: true + schema: + properties: + dark_request: + default: false + example: false + type: boolean + tweet_id: + default: '1349129669258448897' + example: '1349129669258448897' + type: string + required: + - tweet_id + - dark_request + type: object + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DeleteTweetResponse' + description: Successful operation + headers: + x-connection-hash: + schema: + type: string + x-rate-limit-limit: + schema: + type: integer + x-rate-limit-remaining: + schema: + type: integer + x-rate-limit-reset: + schema: + type: integer + x-response-time: + schema: + type: integer + x-tfe-preserve-body: + schema: + type: boolean + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + tags: + - post + /graphql/{pathQueryId}/FavoriteTweet: post: description: favorite Tweet operationId: postFavoriteTweet parameters: + - in: path + name: pathQueryId + required: true + schema: + default: lI07N6Otwv1PhnEgXILM7A + example: lI07N6Otwv1PhnEgXILM7A + type: string - in: query name: queryId required: true @@ -573,17 +608,24 @@ paths: type: string tags: - post - /graphql/ojPdsZsimiJrUGLR1sjUtA/CreateRetweet: + /graphql/{pathQueryId}/UnfavoriteTweet: post: - description: create Retweet - operationId: postCreateRetweet + description: unfavorite Tweet + operationId: postUnfavoriteTweet parameters: + - in: path + name: pathQueryId + required: true + schema: + default: ZYKSe-w7KEslx3JhSIk5LA + example: ZYKSe-w7KEslx3JhSIk5LA + type: string - in: query name: queryId required: true schema: - default: ojPdsZsimiJrUGLR1sjUtA - example: ojPdsZsimiJrUGLR1sjUtA + default: ZYKSe-w7KEslx3JhSIk5LA + example: ZYKSe-w7KEslx3JhSIk5LA type: string - in: query name: variables @@ -607,7 +649,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateRetweetResponse' + $ref: '#/components/schemas/UnfavoriteTweetResponseData' description: Successful operation headers: x-connection-hash: diff --git a/dist/docs/paths/profile.yaml b/dist/docs/paths/profile.yaml index 0aa4653..a45d2cd 100644 --- a/dist/docs/paths/profile.yaml +++ b/dist/docs/paths/profile.yaml @@ -63,11 +63,18 @@ info: version: 0.0.1 openapi: 3.0.3 paths: - /graphql/9zwVLJ48lmVUk8u_Gh9DmA/ProfileSpotlightsQuery: + /graphql/{pathQueryId}/ProfileSpotlightsQuery: get: description: get user by screen name operationId: getProfileSpotlightsQuery parameters: + - in: path + name: pathQueryId + required: true + schema: + default: 9zwVLJ48lmVUk8u_Gh9DmA + example: 9zwVLJ48lmVUk8u_Gh9DmA + type: string - content: application/json: required: diff --git a/dist/docs/paths/timeline.yaml b/dist/docs/paths/timeline.yaml index 2029c91..1c651f1 100644 --- a/dist/docs/paths/timeline.yaml +++ b/dist/docs/paths/timeline.yaml @@ -47,39 +47,46 @@ info: version: 0.0.1 openapi: 3.0.3 paths: - /graphql/2TemLyqrMpTeAmysdbnVqw/ListLatestTweetsTimeline: + /graphql/{pathQueryId}/HomeLatestTimeline: get: description: get tweet list of timeline - operationId: getListLatestTweetsTimeline + operationId: getHomeLatestTimeline parameters: + - in: path + name: pathQueryId + required: true + schema: + default: zhX91JE87mWvfprhYE97xA + example: zhX91JE87mWvfprhYE97xA + type: string - content: application/json: required: - - '2' - - T - - e + - z + - h + - X + - '9' + - '1' + - J + - E + - '8' + - '7' - m - - L - - y - - q - - r - - M + - W + - v + - f - p - - T - - e + - r + - h + - Y + - E + - '9' + - '7' + - x - A - - m - - y - - s - - d - - b - - n - - V - - q - - w schema: - default: 2TemLyqrMpTeAmysdbnVqw - example: 2TemLyqrMpTeAmysdbnVqw + default: zhX91JE87mWvfprhYE97xA + example: zhX91JE87mWvfprhYE97xA type: string in: query name: queryId @@ -87,21 +94,33 @@ paths: - content: application/json: required: - - listId - count + - includePromotedContent + - latestControlAvailable + - requestContext schema: properties: count: default: 20 example: 20 type: integer - listId: - default: '53044119' - example: '53044119' + includePromotedContent: + default: true + example: true + type: boolean + latestControlAvailable: + default: true + example: true + type: boolean + requestContext: + default: launch + example: launch type: string required: - - listId - count + - includePromotedContent + - latestControlAvailable + - requestContext type: object in: query name: variables @@ -235,7 +254,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ListTweetsTimelineResponse' + $ref: '#/components/schemas/TimelineResponse' description: Successful operation headers: x-connection-hash: @@ -264,11 +283,18 @@ paths: type: string tags: - tweet - /graphql/HCosKfLNW1AcOo3la3mMgg/HomeTimeline: + /graphql/{pathQueryId}/HomeTimeline: get: description: get tweet list of timeline operationId: getHomeTimeline parameters: + - in: path + name: pathQueryId + required: true + schema: + default: HCosKfLNW1AcOo3la3mMgg + example: HCosKfLNW1AcOo3la3mMgg + type: string - content: application/json: required: @@ -499,39 +525,46 @@ paths: type: string tags: - tweet - /graphql/zhX91JE87mWvfprhYE97xA/HomeLatestTimeline: + /graphql/{pathQueryId}/ListLatestTweetsTimeline: get: description: get tweet list of timeline - operationId: getHomeLatestTimeline + operationId: getListLatestTweetsTimeline parameters: + - in: path + name: pathQueryId + required: true + schema: + default: 2TemLyqrMpTeAmysdbnVqw + example: 2TemLyqrMpTeAmysdbnVqw + type: string - content: application/json: required: - - z - - h - - X - - '9' - - '1' - - J - - E - - '8' - - '7' + - '2' + - T + - e - m - - W - - v - - f - - p + - L + - y + - q - r - - h - - Y - - E - - '9' - - '7' - - x + - M + - p + - T + - e - A + - m + - y + - s + - d + - b + - n + - V + - q + - w schema: - default: zhX91JE87mWvfprhYE97xA - example: zhX91JE87mWvfprhYE97xA + default: 2TemLyqrMpTeAmysdbnVqw + example: 2TemLyqrMpTeAmysdbnVqw type: string in: query name: queryId @@ -539,33 +572,21 @@ paths: - content: application/json: required: + - listId - count - - includePromotedContent - - latestControlAvailable - - requestContext schema: properties: count: default: 20 example: 20 type: integer - includePromotedContent: - default: true - example: true - type: boolean - latestControlAvailable: - default: true - example: true - type: boolean - requestContext: - default: launch - example: launch + listId: + default: '53044119' + example: '53044119' type: string required: + - listId - count - - includePromotedContent - - latestControlAvailable - - requestContext type: object in: query name: variables @@ -699,7 +720,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TimelineResponse' + $ref: '#/components/schemas/ListTweetsTimelineResponse' description: Successful operation headers: x-connection-hash: diff --git a/dist/docs/paths/tweet.yaml b/dist/docs/paths/tweet.yaml index d0e3287..20f79c9 100644 --- a/dist/docs/paths/tweet.yaml +++ b/dist/docs/paths/tweet.yaml @@ -17,11 +17,18 @@ info: version: 0.0.1 openapi: 3.0.3 paths: - /graphql/wNNG8DBB8EaXw1lq4vFWGA/TweetDetail: + /graphql/{pathQueryId}/TweetDetail: get: description: get TweetDetail operationId: getTweetDetail parameters: + - in: path + name: pathQueryId + required: true + schema: + default: wNNG8DBB8EaXw1lq4vFWGA + example: wNNG8DBB8EaXw1lq4vFWGA + type: string - content: application/json: required: diff --git a/dist/docs/paths/user.yaml b/dist/docs/paths/user.yaml index 478516b..f6f3513 100644 --- a/dist/docs/paths/user.yaml +++ b/dist/docs/paths/user.yaml @@ -17,11 +17,18 @@ info: version: 0.0.1 openapi: 3.0.3 paths: - /graphql/sLVLhk0bGj3MVFEKTdax1w/UserByScreenName: + /graphql/{pathQueryId}/UserByScreenName: get: description: get user by screen name operationId: getUserByScreenName parameters: + - in: path + name: pathQueryId + required: true + schema: + default: sLVLhk0bGj3MVFEKTdax1w + example: sLVLhk0bGj3MVFEKTdax1w + type: string - content: application/json: required: diff --git a/dist/docs/paths/usertweets.yaml b/dist/docs/paths/usertweets.yaml index 3147638..2bc9964 100644 --- a/dist/docs/paths/usertweets.yaml +++ b/dist/docs/paths/usertweets.yaml @@ -32,11 +32,18 @@ info: version: 0.0.1 openapi: 3.0.3 paths: - /graphql/5fmEkRT-1AdHqEsbVgehMg/Likes: + /graphql/{pathQueryId}/Likes: get: description: get user likes tweets operationId: getLikes parameters: + - in: path + name: pathQueryId + required: true + schema: + default: 5fmEkRT-1AdHqEsbVgehMg + example: 5fmEkRT-1AdHqEsbVgehMg + type: string - content: application/json: required: @@ -279,493 +286,18 @@ paths: type: string tags: - tweet - /graphql/HuTx74BxAnezK1gWvYY7zg/UserTweets: - get: - description: get user tweets - operationId: getUserTweets - parameters: - - content: - application/json: - required: - - H - - u - - T - - x - - '7' - - '4' - - B - - x - - A - - n - - e - - z - - K - - '1' - - g - - W - - v - - Y - - Y - - '7' - - z - - g - schema: - default: HuTx74BxAnezK1gWvYY7zg - example: HuTx74BxAnezK1gWvYY7zg - type: string - in: query - name: queryId - required: true - - content: - application/json: - required: - - userId - - count - - includePromotedContent - - withQuickPromoteEligibilityTweetFields - - withVoice - - withV2Timeline - schema: - properties: - count: - default: 40 - example: 40 - type: integer - includePromotedContent: - default: true - example: true - type: boolean - userId: - default: '44196397' - example: '44196397' - type: string - withQuickPromoteEligibilityTweetFields: - default: true - example: true - type: boolean - withV2Timeline: - default: true - example: true - type: boolean - withVoice: - default: true - example: true - type: boolean - required: - - userId - - count - - includePromotedContent - - withQuickPromoteEligibilityTweetFields - - withVoice - - withV2Timeline - type: object - in: query - name: variables - required: true - - content: - application/json: - required: - - blue_business_profile_image_shape_enabled - - responsive_web_graphql_exclude_directive_enabled - - verified_phone_label_enabled - - responsive_web_graphql_timeline_navigation_enabled - - responsive_web_graphql_skip_user_profile_image_extensions_enabled - - tweetypie_unmention_optimization_enabled - - vibe_api_enabled - - responsive_web_edit_tweet_api_enabled - - graphql_is_translatable_rweb_tweet_is_translatable_enabled - - view_counts_everywhere_api_enabled - - longform_notetweets_consumption_enabled - - tweet_awards_web_tipping_enabled - - freedom_of_speech_not_reach_fetch_enabled - - standardized_nudges_misinfo - - tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled - - interactive_text_enabled - - responsive_web_text_conversations_enabled - - longform_notetweets_rich_text_read_enabled - - responsive_web_enhance_cards_enabled - schema: - properties: - blue_business_profile_image_shape_enabled: - default: true - example: true - type: boolean - freedom_of_speech_not_reach_fetch_enabled: - default: false - example: false - type: boolean - graphql_is_translatable_rweb_tweet_is_translatable_enabled: - default: true - example: true - type: boolean - interactive_text_enabled: - default: true - example: true - type: boolean - longform_notetweets_consumption_enabled: - default: true - example: true - type: boolean - longform_notetweets_rich_text_read_enabled: - default: true - example: true - type: boolean - responsive_web_edit_tweet_api_enabled: - default: true - example: true - type: boolean - responsive_web_enhance_cards_enabled: - default: false - example: false - type: boolean - responsive_web_graphql_exclude_directive_enabled: - default: true - example: true - type: boolean - responsive_web_graphql_skip_user_profile_image_extensions_enabled: - default: false - example: false - type: boolean - responsive_web_graphql_timeline_navigation_enabled: - default: true - example: true - type: boolean - responsive_web_text_conversations_enabled: - default: false - example: false - type: boolean - standardized_nudges_misinfo: - default: true - example: true - type: boolean - tweet_awards_web_tipping_enabled: - default: false - example: false - type: boolean - tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled: - default: false - example: false - type: boolean - tweetypie_unmention_optimization_enabled: - default: true - example: true - type: boolean - verified_phone_label_enabled: - default: false - example: false - type: boolean - vibe_api_enabled: - default: true - example: true - type: boolean - view_counts_everywhere_api_enabled: - default: true - example: true - type: boolean - required: - - blue_business_profile_image_shape_enabled - - responsive_web_graphql_exclude_directive_enabled - - verified_phone_label_enabled - - responsive_web_graphql_timeline_navigation_enabled - - responsive_web_graphql_skip_user_profile_image_extensions_enabled - - tweetypie_unmention_optimization_enabled - - vibe_api_enabled - - responsive_web_edit_tweet_api_enabled - - graphql_is_translatable_rweb_tweet_is_translatable_enabled - - view_counts_everywhere_api_enabled - - longform_notetweets_consumption_enabled - - tweet_awards_web_tipping_enabled - - freedom_of_speech_not_reach_fetch_enabled - - standardized_nudges_misinfo - - tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled - - interactive_text_enabled - - responsive_web_text_conversations_enabled - - longform_notetweets_rich_text_read_enabled - - responsive_web_enhance_cards_enabled - type: object - in: query - name: features - required: true - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/UserTweetsResponse' - description: Successful operation - headers: - x-connection-hash: - schema: - type: string - x-rate-limit-limit: - schema: - type: integer - x-rate-limit-remaining: - schema: - type: integer - x-rate-limit-reset: - schema: - type: integer - x-response-time: - schema: - type: integer - x-tfe-preserve-body: - schema: - type: boolean - x-transaction-id: - schema: - type: string - x-twitter-response-tags: - schema: - type: string - tags: - - tweet - /graphql/RIWc55YCNyUJ-U3HHGYkdg/UserTweetsAndReplies: - get: - description: get user replies tweets - operationId: getUserTweetsAndReplies - parameters: - - content: - application/json: - required: - - R - - I - - W - - c - - '5' - - '5' - - Y - - C - - N - - y - - U - - J - - '-' - - U - - '3' - - H - - H - - G - - Y - - k - - d - - g - schema: - default: RIWc55YCNyUJ-U3HHGYkdg - example: RIWc55YCNyUJ-U3HHGYkdg - type: string - in: query - name: queryId - required: true - - content: - application/json: - required: - - userId - - count - - includePromotedContent - - withCommunity - - withVoice - - withV2Timeline - schema: - properties: - count: - default: 40 - example: 40 - type: integer - includePromotedContent: - default: true - example: true - type: boolean - userId: - default: '44196397' - example: '44196397' - type: string - withCommunity: - default: true - example: true - type: boolean - withV2Timeline: - default: true - example: true - type: boolean - withVoice: - default: true - example: true - type: boolean - required: - - userId - - count - - includePromotedContent - - withCommunity - - withVoice - - withV2Timeline - type: object - in: query - name: variables - required: true - - content: - application/json: - required: - - blue_business_profile_image_shape_enabled - - responsive_web_graphql_exclude_directive_enabled - - verified_phone_label_enabled - - responsive_web_graphql_timeline_navigation_enabled - - responsive_web_graphql_skip_user_profile_image_extensions_enabled - - tweetypie_unmention_optimization_enabled - - vibe_api_enabled - - responsive_web_edit_tweet_api_enabled - - graphql_is_translatable_rweb_tweet_is_translatable_enabled - - view_counts_everywhere_api_enabled - - longform_notetweets_consumption_enabled - - tweet_awards_web_tipping_enabled - - freedom_of_speech_not_reach_fetch_enabled - - standardized_nudges_misinfo - - tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled - - interactive_text_enabled - - responsive_web_text_conversations_enabled - - longform_notetweets_rich_text_read_enabled - - responsive_web_enhance_cards_enabled - schema: - properties: - blue_business_profile_image_shape_enabled: - default: true - example: true - type: boolean - freedom_of_speech_not_reach_fetch_enabled: - default: false - example: false - type: boolean - graphql_is_translatable_rweb_tweet_is_translatable_enabled: - default: true - example: true - type: boolean - interactive_text_enabled: - default: true - example: true - type: boolean - longform_notetweets_consumption_enabled: - default: true - example: true - type: boolean - longform_notetweets_rich_text_read_enabled: - default: true - example: true - type: boolean - responsive_web_edit_tweet_api_enabled: - default: true - example: true - type: boolean - responsive_web_enhance_cards_enabled: - default: false - example: false - type: boolean - responsive_web_graphql_exclude_directive_enabled: - default: true - example: true - type: boolean - responsive_web_graphql_skip_user_profile_image_extensions_enabled: - default: false - example: false - type: boolean - responsive_web_graphql_timeline_navigation_enabled: - default: true - example: true - type: boolean - responsive_web_text_conversations_enabled: - default: false - example: false - type: boolean - standardized_nudges_misinfo: - default: true - example: true - type: boolean - tweet_awards_web_tipping_enabled: - default: false - example: false - type: boolean - tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled: - default: false - example: false - type: boolean - tweetypie_unmention_optimization_enabled: - default: true - example: true - type: boolean - verified_phone_label_enabled: - default: false - example: false - type: boolean - vibe_api_enabled: - default: true - example: true - type: boolean - view_counts_everywhere_api_enabled: - default: true - example: true - type: boolean - required: - - blue_business_profile_image_shape_enabled - - responsive_web_graphql_exclude_directive_enabled - - verified_phone_label_enabled - - responsive_web_graphql_timeline_navigation_enabled - - responsive_web_graphql_skip_user_profile_image_extensions_enabled - - tweetypie_unmention_optimization_enabled - - vibe_api_enabled - - responsive_web_edit_tweet_api_enabled - - graphql_is_translatable_rweb_tweet_is_translatable_enabled - - view_counts_everywhere_api_enabled - - longform_notetweets_consumption_enabled - - tweet_awards_web_tipping_enabled - - freedom_of_speech_not_reach_fetch_enabled - - standardized_nudges_misinfo - - tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled - - interactive_text_enabled - - responsive_web_text_conversations_enabled - - longform_notetweets_rich_text_read_enabled - - responsive_web_enhance_cards_enabled - type: object - in: query - name: features - required: true - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/UserTweetsResponse' - description: Successful operation - headers: - x-connection-hash: - schema: - type: string - x-rate-limit-limit: - schema: - type: integer - x-rate-limit-remaining: - schema: - type: integer - x-rate-limit-reset: - schema: - type: integer - x-response-time: - schema: - type: integer - x-tfe-preserve-body: - schema: - type: boolean - x-transaction-id: - schema: - type: string - x-twitter-response-tags: - schema: - type: string - tags: - - tweet - /graphql/YqiE3JL1KNgf9nSljYdxaA/UserMedia: + /graphql/{pathQueryId}/UserMedia: get: description: get user media tweets operationId: getUserMedia parameters: + - in: path + name: pathQueryId + required: true + schema: + default: YqiE3JL1KNgf9nSljYdxaA + example: YqiE3JL1KNgf9nSljYdxaA + type: string - content: application/json: required: @@ -1008,3 +540,499 @@ paths: type: string tags: - tweet + /graphql/{pathQueryId}/UserTweets: + get: + description: get user tweets + operationId: getUserTweets + parameters: + - in: path + name: pathQueryId + required: true + schema: + default: HuTx74BxAnezK1gWvYY7zg + example: HuTx74BxAnezK1gWvYY7zg + type: string + - content: + application/json: + required: + - H + - u + - T + - x + - '7' + - '4' + - B + - x + - A + - n + - e + - z + - K + - '1' + - g + - W + - v + - Y + - Y + - '7' + - z + - g + schema: + default: HuTx74BxAnezK1gWvYY7zg + example: HuTx74BxAnezK1gWvYY7zg + type: string + in: query + name: queryId + required: true + - content: + application/json: + required: + - userId + - count + - includePromotedContent + - withQuickPromoteEligibilityTweetFields + - withVoice + - withV2Timeline + schema: + properties: + count: + default: 40 + example: 40 + type: integer + includePromotedContent: + default: true + example: true + type: boolean + userId: + default: '44196397' + example: '44196397' + type: string + withQuickPromoteEligibilityTweetFields: + default: true + example: true + type: boolean + withV2Timeline: + default: true + example: true + type: boolean + withVoice: + default: true + example: true + type: boolean + required: + - userId + - count + - includePromotedContent + - withQuickPromoteEligibilityTweetFields + - withVoice + - withV2Timeline + type: object + in: query + name: variables + required: true + - content: + application/json: + required: + - blue_business_profile_image_shape_enabled + - responsive_web_graphql_exclude_directive_enabled + - verified_phone_label_enabled + - responsive_web_graphql_timeline_navigation_enabled + - responsive_web_graphql_skip_user_profile_image_extensions_enabled + - tweetypie_unmention_optimization_enabled + - vibe_api_enabled + - responsive_web_edit_tweet_api_enabled + - graphql_is_translatable_rweb_tweet_is_translatable_enabled + - view_counts_everywhere_api_enabled + - longform_notetweets_consumption_enabled + - tweet_awards_web_tipping_enabled + - freedom_of_speech_not_reach_fetch_enabled + - standardized_nudges_misinfo + - tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled + - interactive_text_enabled + - responsive_web_text_conversations_enabled + - longform_notetweets_rich_text_read_enabled + - responsive_web_enhance_cards_enabled + schema: + properties: + blue_business_profile_image_shape_enabled: + default: true + example: true + type: boolean + freedom_of_speech_not_reach_fetch_enabled: + default: false + example: false + type: boolean + graphql_is_translatable_rweb_tweet_is_translatable_enabled: + default: true + example: true + type: boolean + interactive_text_enabled: + default: true + example: true + type: boolean + longform_notetweets_consumption_enabled: + default: true + example: true + type: boolean + longform_notetweets_rich_text_read_enabled: + default: true + example: true + type: boolean + responsive_web_edit_tweet_api_enabled: + default: true + example: true + type: boolean + responsive_web_enhance_cards_enabled: + default: false + example: false + type: boolean + responsive_web_graphql_exclude_directive_enabled: + default: true + example: true + type: boolean + responsive_web_graphql_skip_user_profile_image_extensions_enabled: + default: false + example: false + type: boolean + responsive_web_graphql_timeline_navigation_enabled: + default: true + example: true + type: boolean + responsive_web_text_conversations_enabled: + default: false + example: false + type: boolean + standardized_nudges_misinfo: + default: true + example: true + type: boolean + tweet_awards_web_tipping_enabled: + default: false + example: false + type: boolean + tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled: + default: false + example: false + type: boolean + tweetypie_unmention_optimization_enabled: + default: true + example: true + type: boolean + verified_phone_label_enabled: + default: false + example: false + type: boolean + vibe_api_enabled: + default: true + example: true + type: boolean + view_counts_everywhere_api_enabled: + default: true + example: true + type: boolean + required: + - blue_business_profile_image_shape_enabled + - responsive_web_graphql_exclude_directive_enabled + - verified_phone_label_enabled + - responsive_web_graphql_timeline_navigation_enabled + - responsive_web_graphql_skip_user_profile_image_extensions_enabled + - tweetypie_unmention_optimization_enabled + - vibe_api_enabled + - responsive_web_edit_tweet_api_enabled + - graphql_is_translatable_rweb_tweet_is_translatable_enabled + - view_counts_everywhere_api_enabled + - longform_notetweets_consumption_enabled + - tweet_awards_web_tipping_enabled + - freedom_of_speech_not_reach_fetch_enabled + - standardized_nudges_misinfo + - tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled + - interactive_text_enabled + - responsive_web_text_conversations_enabled + - longform_notetweets_rich_text_read_enabled + - responsive_web_enhance_cards_enabled + type: object + in: query + name: features + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/UserTweetsResponse' + description: Successful operation + headers: + x-connection-hash: + schema: + type: string + x-rate-limit-limit: + schema: + type: integer + x-rate-limit-remaining: + schema: + type: integer + x-rate-limit-reset: + schema: + type: integer + x-response-time: + schema: + type: integer + x-tfe-preserve-body: + schema: + type: boolean + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + tags: + - tweet + /graphql/{pathQueryId}/UserTweetsAndReplies: + get: + description: get user replies tweets + operationId: getUserTweetsAndReplies + parameters: + - in: path + name: pathQueryId + required: true + schema: + default: RIWc55YCNyUJ-U3HHGYkdg + example: RIWc55YCNyUJ-U3HHGYkdg + type: string + - content: + application/json: + required: + - R + - I + - W + - c + - '5' + - '5' + - Y + - C + - N + - y + - U + - J + - '-' + - U + - '3' + - H + - H + - G + - Y + - k + - d + - g + schema: + default: RIWc55YCNyUJ-U3HHGYkdg + example: RIWc55YCNyUJ-U3HHGYkdg + type: string + in: query + name: queryId + required: true + - content: + application/json: + required: + - userId + - count + - includePromotedContent + - withCommunity + - withVoice + - withV2Timeline + schema: + properties: + count: + default: 40 + example: 40 + type: integer + includePromotedContent: + default: true + example: true + type: boolean + userId: + default: '44196397' + example: '44196397' + type: string + withCommunity: + default: true + example: true + type: boolean + withV2Timeline: + default: true + example: true + type: boolean + withVoice: + default: true + example: true + type: boolean + required: + - userId + - count + - includePromotedContent + - withCommunity + - withVoice + - withV2Timeline + type: object + in: query + name: variables + required: true + - content: + application/json: + required: + - blue_business_profile_image_shape_enabled + - responsive_web_graphql_exclude_directive_enabled + - verified_phone_label_enabled + - responsive_web_graphql_timeline_navigation_enabled + - responsive_web_graphql_skip_user_profile_image_extensions_enabled + - tweetypie_unmention_optimization_enabled + - vibe_api_enabled + - responsive_web_edit_tweet_api_enabled + - graphql_is_translatable_rweb_tweet_is_translatable_enabled + - view_counts_everywhere_api_enabled + - longform_notetweets_consumption_enabled + - tweet_awards_web_tipping_enabled + - freedom_of_speech_not_reach_fetch_enabled + - standardized_nudges_misinfo + - tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled + - interactive_text_enabled + - responsive_web_text_conversations_enabled + - longform_notetweets_rich_text_read_enabled + - responsive_web_enhance_cards_enabled + schema: + properties: + blue_business_profile_image_shape_enabled: + default: true + example: true + type: boolean + freedom_of_speech_not_reach_fetch_enabled: + default: false + example: false + type: boolean + graphql_is_translatable_rweb_tweet_is_translatable_enabled: + default: true + example: true + type: boolean + interactive_text_enabled: + default: true + example: true + type: boolean + longform_notetweets_consumption_enabled: + default: true + example: true + type: boolean + longform_notetweets_rich_text_read_enabled: + default: true + example: true + type: boolean + responsive_web_edit_tweet_api_enabled: + default: true + example: true + type: boolean + responsive_web_enhance_cards_enabled: + default: false + example: false + type: boolean + responsive_web_graphql_exclude_directive_enabled: + default: true + example: true + type: boolean + responsive_web_graphql_skip_user_profile_image_extensions_enabled: + default: false + example: false + type: boolean + responsive_web_graphql_timeline_navigation_enabled: + default: true + example: true + type: boolean + responsive_web_text_conversations_enabled: + default: false + example: false + type: boolean + standardized_nudges_misinfo: + default: true + example: true + type: boolean + tweet_awards_web_tipping_enabled: + default: false + example: false + type: boolean + tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled: + default: false + example: false + type: boolean + tweetypie_unmention_optimization_enabled: + default: true + example: true + type: boolean + verified_phone_label_enabled: + default: false + example: false + type: boolean + vibe_api_enabled: + default: true + example: true + type: boolean + view_counts_everywhere_api_enabled: + default: true + example: true + type: boolean + required: + - blue_business_profile_image_shape_enabled + - responsive_web_graphql_exclude_directive_enabled + - verified_phone_label_enabled + - responsive_web_graphql_timeline_navigation_enabled + - responsive_web_graphql_skip_user_profile_image_extensions_enabled + - tweetypie_unmention_optimization_enabled + - vibe_api_enabled + - responsive_web_edit_tweet_api_enabled + - graphql_is_translatable_rweb_tweet_is_translatable_enabled + - view_counts_everywhere_api_enabled + - longform_notetweets_consumption_enabled + - tweet_awards_web_tipping_enabled + - freedom_of_speech_not_reach_fetch_enabled + - standardized_nudges_misinfo + - tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled + - interactive_text_enabled + - responsive_web_text_conversations_enabled + - longform_notetweets_rich_text_read_enabled + - responsive_web_enhance_cards_enabled + type: object + in: query + name: features + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/UserTweetsResponse' + description: Successful operation + headers: + x-connection-hash: + schema: + type: string + x-rate-limit-limit: + schema: + type: integer + x-rate-limit-remaining: + schema: + type: integer + x-rate-limit-reset: + schema: + type: integer + x-response-time: + schema: + type: integer + x-tfe-preserve-body: + schema: + type: boolean + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + tags: + - tweet diff --git a/dist/docs/resources/parameters.yaml b/dist/docs/resources/parameters.yaml new file mode 100644 index 0000000..e6a9c38 --- /dev/null +++ b/dist/docs/resources/parameters.yaml @@ -0,0 +1,13 @@ +components: + parameters: + queryId: + in: path + name: queryId + required: true + schema: + type: string +info: + title: Twitter OpenAPI + version: 0.0.1 +openapi: 3.0.3 +paths: {} diff --git a/dist/docs/schemas/tweet.yaml b/dist/docs/schemas/tweet.yaml index 002fcc6..2efabc8 100644 --- a/dist/docs/schemas/tweet.yaml +++ b/dist/docs/schemas/tweet.yaml @@ -130,7 +130,8 @@ components: - name - url type: object - rest_id: string + rest_id: + type: string type: object core: $ref: ./user.yaml#/components/schemas/UserResultCore diff --git a/dist/test/openapi-3.0.yaml b/dist/test/openapi-3.0.yaml index 14e3f7f..1794799 100644 --- a/dist/test/openapi-3.0.yaml +++ b/dist/test/openapi-3.0.yaml @@ -68,44 +68,44 @@ paths: $ref: ./paths/v1.1-get.yaml#/paths/~11.1~1search~1typeahead.json /2/search/adaptive.json: $ref: ./paths/v2.0-get.yaml#/paths/~12~1search~1adaptive.json - /graphql/1RyAhNwby-gzGCRVsMxKbQ/CreateTweet: - $ref: ./paths/post.yaml#/paths/~1graphql~11RyAhNwby-gzGCRVsMxKbQ~1CreateTweet - /graphql/2TemLyqrMpTeAmysdbnVqw/ListLatestTweetsTimeline: - $ref: ./paths/timeline.yaml#/paths/~1graphql~12TemLyqrMpTeAmysdbnVqw~1ListLatestTweetsTimeline - /graphql/5fmEkRT-1AdHqEsbVgehMg/Likes: - $ref: ./paths/usertweets.yaml#/paths/~1graphql~15fmEkRT-1AdHqEsbVgehMg~1Likes - /graphql/9zwVLJ48lmVUk8u_Gh9DmA/ProfileSpotlightsQuery: - $ref: ./paths/profile.yaml#/paths/~1graphql~19zwVLJ48lmVUk8u_Gh9DmA~1ProfileSpotlightsQuery - /graphql/HCosKfLNW1AcOo3la3mMgg/HomeTimeline: - $ref: ./paths/timeline.yaml#/paths/~1graphql~1HCosKfLNW1AcOo3la3mMgg~1HomeTimeline - /graphql/HuTx74BxAnezK1gWvYY7zg/UserTweets: - $ref: ./paths/usertweets.yaml#/paths/~1graphql~1HuTx74BxAnezK1gWvYY7zg~1UserTweets - /graphql/IWP6Zt14sARO29lJT35bBw/Following: - $ref: ./paths/follow.yaml#/paths/~1graphql~1IWP6Zt14sARO29lJT35bBw~1Following - /graphql/RIWc55YCNyUJ-U3HHGYkdg/UserTweetsAndReplies: - $ref: ./paths/usertweets.yaml#/paths/~1graphql~1RIWc55YCNyUJ-U3HHGYkdg~1UserTweetsAndReplies - /graphql/VaenaVgh5q5ih7kvyVjgtg/DeleteTweet: - $ref: ./paths/post.yaml#/paths/~1graphql~1VaenaVgh5q5ih7kvyVjgtg~1DeleteTweet - /graphql/YqiE3JL1KNgf9nSljYdxaA/UserMedia: - $ref: ./paths/usertweets.yaml#/paths/~1graphql~1YqiE3JL1KNgf9nSljYdxaA~1UserMedia - /graphql/ZYKSe-w7KEslx3JhSIk5LA/UnfavoriteTweet: - $ref: ./paths/post.yaml#/paths/~1graphql~1ZYKSe-w7KEslx3JhSIk5LA~1UnfavoriteTweet - /graphql/djdTXDIk2qhd4OStqlUFeQ/Followers: - $ref: ./paths/follow.yaml#/paths/~1graphql~1djdTXDIk2qhd4OStqlUFeQ~1Followers - /graphql/iQtK4dl5hBmXewYZuEOKVw/DeleteRetweet: - $ref: ./paths/post.yaml#/paths/~1graphql~1iQtK4dl5hBmXewYZuEOKVw~1DeleteRetweet - /graphql/lI07N6Otwv1PhnEgXILM7A/FavoriteTweet: - $ref: ./paths/post.yaml#/paths/~1graphql~1lI07N6Otwv1PhnEgXILM7A~1FavoriteTweet - /graphql/ojPdsZsimiJrUGLR1sjUtA/CreateRetweet: - $ref: ./paths/post.yaml#/paths/~1graphql~1ojPdsZsimiJrUGLR1sjUtA~1CreateRetweet - /graphql/sLVLhk0bGj3MVFEKTdax1w/UserByScreenName: - $ref: ./paths/user.yaml#/paths/~1graphql~1sLVLhk0bGj3MVFEKTdax1w~1UserByScreenName - /graphql/tmd4ifV8RHltzn8ymGg1aw/Bookmarks: - $ref: ./paths/bookmarks.yaml#/paths/~1graphql~1tmd4ifV8RHltzn8ymGg1aw~1Bookmarks - /graphql/wNNG8DBB8EaXw1lq4vFWGA/TweetDetail: - $ref: ./paths/tweet.yaml#/paths/~1graphql~1wNNG8DBB8EaXw1lq4vFWGA~1TweetDetail - /graphql/zhX91JE87mWvfprhYE97xA/HomeLatestTimeline: - $ref: ./paths/timeline.yaml#/paths/~1graphql~1zhX91JE87mWvfprhYE97xA~1HomeLatestTimeline + /graphql/{pathQueryId}/Bookmarks: + $ref: ./paths/bookmarks.yaml#/paths/~1graphql~1{pathQueryId}~1Bookmarks + /graphql/{pathQueryId}/CreateRetweet: + $ref: ./paths/post.yaml#/paths/~1graphql~1{pathQueryId}~1CreateRetweet + /graphql/{pathQueryId}/CreateTweet: + $ref: ./paths/post.yaml#/paths/~1graphql~1{pathQueryId}~1CreateTweet + /graphql/{pathQueryId}/DeleteRetweet: + $ref: ./paths/post.yaml#/paths/~1graphql~1{pathQueryId}~1DeleteRetweet + /graphql/{pathQueryId}/DeleteTweet: + $ref: ./paths/post.yaml#/paths/~1graphql~1{pathQueryId}~1DeleteTweet + /graphql/{pathQueryId}/FavoriteTweet: + $ref: ./paths/post.yaml#/paths/~1graphql~1{pathQueryId}~1FavoriteTweet + /graphql/{pathQueryId}/Followers: + $ref: ./paths/follow.yaml#/paths/~1graphql~1{pathQueryId}~1Followers + /graphql/{pathQueryId}/Following: + $ref: ./paths/follow.yaml#/paths/~1graphql~1{pathQueryId}~1Following + /graphql/{pathQueryId}/HomeLatestTimeline: + $ref: ./paths/timeline.yaml#/paths/~1graphql~1{pathQueryId}~1HomeLatestTimeline + /graphql/{pathQueryId}/HomeTimeline: + $ref: ./paths/timeline.yaml#/paths/~1graphql~1{pathQueryId}~1HomeTimeline + /graphql/{pathQueryId}/Likes: + $ref: ./paths/usertweets.yaml#/paths/~1graphql~1{pathQueryId}~1Likes + /graphql/{pathQueryId}/ListLatestTweetsTimeline: + $ref: ./paths/timeline.yaml#/paths/~1graphql~1{pathQueryId}~1ListLatestTweetsTimeline + /graphql/{pathQueryId}/ProfileSpotlightsQuery: + $ref: ./paths/profile.yaml#/paths/~1graphql~1{pathQueryId}~1ProfileSpotlightsQuery + /graphql/{pathQueryId}/TweetDetail: + $ref: ./paths/tweet.yaml#/paths/~1graphql~1{pathQueryId}~1TweetDetail + /graphql/{pathQueryId}/UnfavoriteTweet: + $ref: ./paths/post.yaml#/paths/~1graphql~1{pathQueryId}~1UnfavoriteTweet + /graphql/{pathQueryId}/UserByScreenName: + $ref: ./paths/user.yaml#/paths/~1graphql~1{pathQueryId}~1UserByScreenName + /graphql/{pathQueryId}/UserMedia: + $ref: ./paths/usertweets.yaml#/paths/~1graphql~1{pathQueryId}~1UserMedia + /graphql/{pathQueryId}/UserTweets: + $ref: ./paths/usertweets.yaml#/paths/~1graphql~1{pathQueryId}~1UserTweets + /graphql/{pathQueryId}/UserTweetsAndReplies: + $ref: ./paths/usertweets.yaml#/paths/~1graphql~1{pathQueryId}~1UserTweetsAndReplies /other: $ref: ./paths/other.yaml#/paths/~1other security: diff --git a/dist/test/paths/bookmarks.yaml b/dist/test/paths/bookmarks.yaml index de592e7..35ac8e9 100644 --- a/dist/test/paths/bookmarks.yaml +++ b/dist/test/paths/bookmarks.yaml @@ -23,11 +23,18 @@ info: version: 0.0.1 openapi: 3.0.3 paths: - /graphql/tmd4ifV8RHltzn8ymGg1aw/Bookmarks: + /graphql/{pathQueryId}/Bookmarks: get: description: get bookmarks operationId: getBookmarks parameters: + - in: path + name: pathQueryId + required: true + schema: + default: tmd4ifV8RHltzn8ymGg1aw + example: tmd4ifV8RHltzn8ymGg1aw + type: string - in: query name: queryId required: true diff --git a/dist/test/paths/follow.yaml b/dist/test/paths/follow.yaml index 8af2a42..64a94a3 100644 --- a/dist/test/paths/follow.yaml +++ b/dist/test/paths/follow.yaml @@ -38,93 +38,18 @@ info: version: 0.0.1 openapi: 3.0.3 paths: - /graphql/IWP6Zt14sARO29lJT35bBw/Following: - get: - description: get user list of following - operationId: getFollowing - parameters: - - in: query - name: queryId - required: true - schema: - default: '"IWP6Zt14sARO29lJT35bBw"' - example: '"IWP6Zt14sARO29lJT35bBw"' - type: string - - in: query - name: variables - required: true - schema: - default: '{"userId": "44196397", "count": 20, "includePromotedContent": - false}' - example: '{"userId": "44196397", "count": 20, "includePromotedContent": - false}' - type: string - - in: query - name: features - required: true - schema: - default: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": - true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": - true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": - false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": - false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": - false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": - false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": - false}' - example: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": - true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": - true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": - false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": - false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": - false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": - false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": - false}' - type: string - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/FollowResponse' - description: Successful operation - headers: - x-connection-hash: - schema: - type: string - x-rate-limit-limit: - schema: - type: integer - x-rate-limit-remaining: - schema: - type: integer - x-rate-limit-reset: - schema: - type: integer - x-response-time: - schema: - type: integer - x-tfe-preserve-body: - schema: - type: boolean - x-transaction-id: - schema: - type: string - x-twitter-response-tags: - schema: - type: string - tags: - - user-list - /graphql/djdTXDIk2qhd4OStqlUFeQ/Followers: + /graphql/{pathQueryId}/Followers: get: description: get user list of followers operationId: getFollowers parameters: + - in: path + name: pathQueryId + required: true + schema: + default: djdTXDIk2qhd4OStqlUFeQ + example: djdTXDIk2qhd4OStqlUFeQ + type: string - in: query name: queryId required: true @@ -202,3 +127,92 @@ paths: type: string tags: - user-list + /graphql/{pathQueryId}/Following: + get: + description: get user list of following + operationId: getFollowing + parameters: + - in: path + name: pathQueryId + required: true + schema: + default: IWP6Zt14sARO29lJT35bBw + example: IWP6Zt14sARO29lJT35bBw + type: string + - in: query + name: queryId + required: true + schema: + default: '"IWP6Zt14sARO29lJT35bBw"' + example: '"IWP6Zt14sARO29lJT35bBw"' + type: string + - in: query + name: variables + required: true + schema: + default: '{"userId": "44196397", "count": 20, "includePromotedContent": + false}' + example: '{"userId": "44196397", "count": 20, "includePromotedContent": + false}' + type: string + - in: query + name: features + required: true + schema: + default: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": + true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": + true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": + false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": + false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": + false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": + false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": + false}' + example: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": + true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": + true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": + false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": + false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": + false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": + false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": + false}' + type: string + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/FollowResponse' + description: Successful operation + headers: + x-connection-hash: + schema: + type: string + x-rate-limit-limit: + schema: + type: integer + x-rate-limit-remaining: + schema: + type: integer + x-rate-limit-reset: + schema: + type: integer + x-response-time: + schema: + type: integer + x-tfe-preserve-body: + schema: + type: boolean + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + tags: + - user-list diff --git a/dist/test/paths/post.yaml b/dist/test/paths/post.yaml index ff20a2d..8c2a7ef 100644 --- a/dist/test/paths/post.yaml +++ b/dist/test/paths/post.yaml @@ -136,11 +136,78 @@ info: version: 0.0.1 openapi: 3.0.3 paths: - /graphql/1RyAhNwby-gzGCRVsMxKbQ/CreateTweet: + /graphql/{pathQueryId}/CreateRetweet: + post: + description: create Retweet + operationId: postCreateRetweet + parameters: + - in: path + name: pathQueryId + required: true + schema: + default: ojPdsZsimiJrUGLR1sjUtA + example: ojPdsZsimiJrUGLR1sjUtA + type: string + - in: query + name: queryId + required: true + schema: + default: '"ojPdsZsimiJrUGLR1sjUtA"' + example: '"ojPdsZsimiJrUGLR1sjUtA"' + type: string + - in: query + name: variables + required: true + schema: + default: '{"tweet_id": "1349129669258448897", "dark_request": false}' + example: '{"tweet_id": "1349129669258448897", "dark_request": false}' + type: string + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/CreateRetweetResponse' + description: Successful operation + headers: + x-connection-hash: + schema: + type: string + x-rate-limit-limit: + schema: + type: integer + x-rate-limit-remaining: + schema: + type: integer + x-rate-limit-reset: + schema: + type: integer + x-response-time: + schema: + type: integer + x-tfe-preserve-body: + schema: + type: boolean + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + tags: + - post + /graphql/{pathQueryId}/CreateTweet: post: description: create Tweet operationId: postCreateTweet parameters: + - in: path + name: pathQueryId + required: true + schema: + default: 1RyAhNwby-gzGCRVsMxKbQ + example: 1RyAhNwby-gzGCRVsMxKbQ + type: string - in: query name: queryId required: true @@ -218,117 +285,18 @@ paths: type: string tags: - post - /graphql/VaenaVgh5q5ih7kvyVjgtg/DeleteTweet: - post: - description: delete Retweet - operationId: postDeleteTweet - parameters: - - in: query - name: queryId - required: true - schema: - default: '"VaenaVgh5q5ih7kvyVjgtg"' - example: '"VaenaVgh5q5ih7kvyVjgtg"' - type: string - - in: query - name: variables - required: true - schema: - default: '{"tweet_id": "1349129669258448897", "dark_request": false}' - example: '{"tweet_id": "1349129669258448897", "dark_request": false}' - type: string - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/DeleteTweetResponse' - description: Successful operation - headers: - x-connection-hash: - schema: - type: string - x-rate-limit-limit: - schema: - type: integer - x-rate-limit-remaining: - schema: - type: integer - x-rate-limit-reset: - schema: - type: integer - x-response-time: - schema: - type: integer - x-tfe-preserve-body: - schema: - type: boolean - x-transaction-id: - schema: - type: string - x-twitter-response-tags: - schema: - type: string - tags: - - post - /graphql/ZYKSe-w7KEslx3JhSIk5LA/UnfavoriteTweet: - post: - description: unfavorite Tweet - operationId: postUnfavoriteTweet - parameters: - - in: query - name: queryId - required: true - schema: - default: '"ZYKSe-w7KEslx3JhSIk5LA"' - example: '"ZYKSe-w7KEslx3JhSIk5LA"' - type: string - - in: query - name: variables - required: true - schema: - default: '{"tweet_id": "1349129669258448897", "dark_request": false}' - example: '{"tweet_id": "1349129669258448897", "dark_request": false}' - type: string - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/UnfavoriteTweetResponseData' - description: Successful operation - headers: - x-connection-hash: - schema: - type: string - x-rate-limit-limit: - schema: - type: integer - x-rate-limit-remaining: - schema: - type: integer - x-rate-limit-reset: - schema: - type: integer - x-response-time: - schema: - type: integer - x-tfe-preserve-body: - schema: - type: boolean - x-transaction-id: - schema: - type: string - x-twitter-response-tags: - schema: - type: string - tags: - - post - /graphql/iQtK4dl5hBmXewYZuEOKVw/DeleteRetweet: + /graphql/{pathQueryId}/DeleteRetweet: post: description: delete Retweet operationId: postDeleteRetweet parameters: + - in: path + name: pathQueryId + required: true + schema: + default: iQtK4dl5hBmXewYZuEOKVw + example: iQtK4dl5hBmXewYZuEOKVw + type: string - in: query name: queryId required: true @@ -377,11 +345,78 @@ paths: type: string tags: - post - /graphql/lI07N6Otwv1PhnEgXILM7A/FavoriteTweet: + /graphql/{pathQueryId}/DeleteTweet: + post: + description: delete Retweet + operationId: postDeleteTweet + parameters: + - in: path + name: pathQueryId + required: true + schema: + default: VaenaVgh5q5ih7kvyVjgtg + example: VaenaVgh5q5ih7kvyVjgtg + type: string + - in: query + name: queryId + required: true + schema: + default: '"VaenaVgh5q5ih7kvyVjgtg"' + example: '"VaenaVgh5q5ih7kvyVjgtg"' + type: string + - in: query + name: variables + required: true + schema: + default: '{"tweet_id": "1349129669258448897", "dark_request": false}' + example: '{"tweet_id": "1349129669258448897", "dark_request": false}' + type: string + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DeleteTweetResponse' + description: Successful operation + headers: + x-connection-hash: + schema: + type: string + x-rate-limit-limit: + schema: + type: integer + x-rate-limit-remaining: + schema: + type: integer + x-rate-limit-reset: + schema: + type: integer + x-response-time: + schema: + type: integer + x-tfe-preserve-body: + schema: + type: boolean + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + tags: + - post + /graphql/{pathQueryId}/FavoriteTweet: post: description: favorite Tweet operationId: postFavoriteTweet parameters: + - in: path + name: pathQueryId + required: true + schema: + default: lI07N6Otwv1PhnEgXILM7A + example: lI07N6Otwv1PhnEgXILM7A + type: string - in: query name: queryId required: true @@ -430,17 +465,24 @@ paths: type: string tags: - post - /graphql/ojPdsZsimiJrUGLR1sjUtA/CreateRetweet: + /graphql/{pathQueryId}/UnfavoriteTweet: post: - description: create Retweet - operationId: postCreateRetweet + description: unfavorite Tweet + operationId: postUnfavoriteTweet parameters: + - in: path + name: pathQueryId + required: true + schema: + default: ZYKSe-w7KEslx3JhSIk5LA + example: ZYKSe-w7KEslx3JhSIk5LA + type: string - in: query name: queryId required: true schema: - default: '"ojPdsZsimiJrUGLR1sjUtA"' - example: '"ojPdsZsimiJrUGLR1sjUtA"' + default: '"ZYKSe-w7KEslx3JhSIk5LA"' + example: '"ZYKSe-w7KEslx3JhSIk5LA"' type: string - in: query name: variables @@ -454,7 +496,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateRetweetResponse' + $ref: '#/components/schemas/UnfavoriteTweetResponseData' description: Successful operation headers: x-connection-hash: diff --git a/dist/test/paths/profile.yaml b/dist/test/paths/profile.yaml index 8804d2a..97747bb 100644 --- a/dist/test/paths/profile.yaml +++ b/dist/test/paths/profile.yaml @@ -63,11 +63,18 @@ info: version: 0.0.1 openapi: 3.0.3 paths: - /graphql/9zwVLJ48lmVUk8u_Gh9DmA/ProfileSpotlightsQuery: + /graphql/{pathQueryId}/ProfileSpotlightsQuery: get: description: get user by screen name operationId: getProfileSpotlightsQuery parameters: + - in: path + name: pathQueryId + required: true + schema: + default: 9zwVLJ48lmVUk8u_Gh9DmA + example: 9zwVLJ48lmVUk8u_Gh9DmA + type: string - in: query name: queryId required: true diff --git a/dist/test/paths/timeline.yaml b/dist/test/paths/timeline.yaml index 6d5207b..3316663 100644 --- a/dist/test/paths/timeline.yaml +++ b/dist/test/paths/timeline.yaml @@ -47,173 +47,18 @@ info: version: 0.0.1 openapi: 3.0.3 paths: - /graphql/2TemLyqrMpTeAmysdbnVqw/ListLatestTweetsTimeline: - get: - description: get tweet list of timeline - operationId: getListLatestTweetsTimeline - parameters: - - in: query - name: queryId - required: true - schema: - default: '"2TemLyqrMpTeAmysdbnVqw"' - example: '"2TemLyqrMpTeAmysdbnVqw"' - type: string - - in: query - name: variables - required: true - schema: - default: '{"listId": "53044119", "count": 20}' - example: '{"listId": "53044119", "count": 20}' - type: string - - in: query - name: features - required: true - schema: - default: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": - true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": - true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": - false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": - false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": - false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": - false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": - false}' - example: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": - true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": - true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": - false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": - false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": - false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": - false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": - false}' - type: string - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ListTweetsTimelineResponse' - description: Successful operation - headers: - x-connection-hash: - schema: - type: string - x-rate-limit-limit: - schema: - type: integer - x-rate-limit-remaining: - schema: - type: integer - x-rate-limit-reset: - schema: - type: integer - x-response-time: - schema: - type: integer - x-tfe-preserve-body: - schema: - type: boolean - x-transaction-id: - schema: - type: string - x-twitter-response-tags: - schema: - type: string - tags: - - tweet - /graphql/HCosKfLNW1AcOo3la3mMgg/HomeTimeline: - get: - description: get tweet list of timeline - operationId: getHomeTimeline - parameters: - - in: query - name: queryId - required: true - schema: - default: '"HCosKfLNW1AcOo3la3mMgg"' - example: '"HCosKfLNW1AcOo3la3mMgg"' - type: string - - in: query - name: variables - required: true - schema: - default: '{"count": 20, "includePromotedContent": true, "latestControlAvailable": - true, "requestContext": "launch", "withCommunity": true}' - example: '{"count": 20, "includePromotedContent": true, "latestControlAvailable": - true, "requestContext": "launch", "withCommunity": true}' - type: string - - in: query - name: features - required: true - schema: - default: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": - true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": - true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": - false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": - false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": - false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": - false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": - false}' - example: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": - true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": - true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": - false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": - false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": - false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": - false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": - false}' - type: string - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/TimelineResponse' - description: Successful operation - headers: - x-connection-hash: - schema: - type: string - x-rate-limit-limit: - schema: - type: integer - x-rate-limit-remaining: - schema: - type: integer - x-rate-limit-reset: - schema: - type: integer - x-response-time: - schema: - type: integer - x-tfe-preserve-body: - schema: - type: boolean - x-transaction-id: - schema: - type: string - x-twitter-response-tags: - schema: - type: string - tags: - - tweet - /graphql/zhX91JE87mWvfprhYE97xA/HomeLatestTimeline: + /graphql/{pathQueryId}/HomeLatestTimeline: get: description: get tweet list of timeline operationId: getHomeLatestTimeline parameters: + - in: path + name: pathQueryId + required: true + schema: + default: zhX91JE87mWvfprhYE97xA + example: zhX91JE87mWvfprhYE97xA + type: string - in: query name: queryId required: true @@ -291,3 +136,179 @@ paths: type: string tags: - tweet + /graphql/{pathQueryId}/HomeTimeline: + get: + description: get tweet list of timeline + operationId: getHomeTimeline + parameters: + - in: path + name: pathQueryId + required: true + schema: + default: HCosKfLNW1AcOo3la3mMgg + example: HCosKfLNW1AcOo3la3mMgg + type: string + - in: query + name: queryId + required: true + schema: + default: '"HCosKfLNW1AcOo3la3mMgg"' + example: '"HCosKfLNW1AcOo3la3mMgg"' + type: string + - in: query + name: variables + required: true + schema: + default: '{"count": 20, "includePromotedContent": true, "latestControlAvailable": + true, "requestContext": "launch", "withCommunity": true}' + example: '{"count": 20, "includePromotedContent": true, "latestControlAvailable": + true, "requestContext": "launch", "withCommunity": true}' + type: string + - in: query + name: features + required: true + schema: + default: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": + true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": + true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": + false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": + false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": + false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": + false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": + false}' + example: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": + true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": + true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": + false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": + false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": + false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": + false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": + false}' + type: string + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/TimelineResponse' + description: Successful operation + headers: + x-connection-hash: + schema: + type: string + x-rate-limit-limit: + schema: + type: integer + x-rate-limit-remaining: + schema: + type: integer + x-rate-limit-reset: + schema: + type: integer + x-response-time: + schema: + type: integer + x-tfe-preserve-body: + schema: + type: boolean + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + tags: + - tweet + /graphql/{pathQueryId}/ListLatestTweetsTimeline: + get: + description: get tweet list of timeline + operationId: getListLatestTweetsTimeline + parameters: + - in: path + name: pathQueryId + required: true + schema: + default: 2TemLyqrMpTeAmysdbnVqw + example: 2TemLyqrMpTeAmysdbnVqw + type: string + - in: query + name: queryId + required: true + schema: + default: '"2TemLyqrMpTeAmysdbnVqw"' + example: '"2TemLyqrMpTeAmysdbnVqw"' + type: string + - in: query + name: variables + required: true + schema: + default: '{"listId": "53044119", "count": 20}' + example: '{"listId": "53044119", "count": 20}' + type: string + - in: query + name: features + required: true + schema: + default: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": + true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": + true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": + false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": + false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": + false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": + false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": + false}' + example: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": + true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": + true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": + false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": + false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": + false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": + false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": + false}' + type: string + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ListTweetsTimelineResponse' + description: Successful operation + headers: + x-connection-hash: + schema: + type: string + x-rate-limit-limit: + schema: + type: integer + x-rate-limit-remaining: + schema: + type: integer + x-rate-limit-reset: + schema: + type: integer + x-response-time: + schema: + type: integer + x-tfe-preserve-body: + schema: + type: boolean + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + tags: + - tweet diff --git a/dist/test/paths/tweet.yaml b/dist/test/paths/tweet.yaml index cc14fb4..c44ac24 100644 --- a/dist/test/paths/tweet.yaml +++ b/dist/test/paths/tweet.yaml @@ -17,11 +17,18 @@ info: version: 0.0.1 openapi: 3.0.3 paths: - /graphql/wNNG8DBB8EaXw1lq4vFWGA/TweetDetail: + /graphql/{pathQueryId}/TweetDetail: get: description: get TweetDetail operationId: getTweetDetail parameters: + - in: path + name: pathQueryId + required: true + schema: + default: wNNG8DBB8EaXw1lq4vFWGA + example: wNNG8DBB8EaXw1lq4vFWGA + type: string - in: query name: queryId required: true diff --git a/dist/test/paths/user.yaml b/dist/test/paths/user.yaml index 152ad5d..be746ef 100644 --- a/dist/test/paths/user.yaml +++ b/dist/test/paths/user.yaml @@ -17,11 +17,18 @@ info: version: 0.0.1 openapi: 3.0.3 paths: - /graphql/sLVLhk0bGj3MVFEKTdax1w/UserByScreenName: + /graphql/{pathQueryId}/UserByScreenName: get: description: get user by screen name operationId: getUserByScreenName parameters: + - in: path + name: pathQueryId + required: true + schema: + default: sLVLhk0bGj3MVFEKTdax1w + example: sLVLhk0bGj3MVFEKTdax1w + type: string - in: query name: queryId required: true diff --git a/dist/test/paths/usertweets.yaml b/dist/test/paths/usertweets.yaml index a7fb1a9..eacd2d0 100644 --- a/dist/test/paths/usertweets.yaml +++ b/dist/test/paths/usertweets.yaml @@ -32,11 +32,18 @@ info: version: 0.0.1 openapi: 3.0.3 paths: - /graphql/5fmEkRT-1AdHqEsbVgehMg/Likes: + /graphql/{pathQueryId}/Likes: get: description: get user likes tweets operationId: getLikes parameters: + - in: path + name: pathQueryId + required: true + schema: + default: 5fmEkRT-1AdHqEsbVgehMg + example: 5fmEkRT-1AdHqEsbVgehMg + type: string - in: query name: queryId required: true @@ -116,177 +123,18 @@ paths: type: string tags: - tweet - /graphql/HuTx74BxAnezK1gWvYY7zg/UserTweets: - get: - description: get user tweets - operationId: getUserTweets - parameters: - - in: query - name: queryId - required: true - schema: - default: '"HuTx74BxAnezK1gWvYY7zg"' - example: '"HuTx74BxAnezK1gWvYY7zg"' - type: string - - in: query - name: variables - required: true - schema: - default: '{"userId": "44196397", "count": 40, "includePromotedContent": - true, "withQuickPromoteEligibilityTweetFields": true, "withVoice": true, - "withV2Timeline": true}' - example: '{"userId": "44196397", "count": 40, "includePromotedContent": - true, "withQuickPromoteEligibilityTweetFields": true, "withVoice": true, - "withV2Timeline": true}' - type: string - - in: query - name: features - required: true - schema: - default: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": - true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": - true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": - false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": - false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": - false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": - false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": - false}' - example: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": - true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": - true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": - false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": - false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": - false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": - false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": - false}' - type: string - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/UserTweetsResponse' - description: Successful operation - headers: - x-connection-hash: - schema: - type: string - x-rate-limit-limit: - schema: - type: integer - x-rate-limit-remaining: - schema: - type: integer - x-rate-limit-reset: - schema: - type: integer - x-response-time: - schema: - type: integer - x-tfe-preserve-body: - schema: - type: boolean - x-transaction-id: - schema: - type: string - x-twitter-response-tags: - schema: - type: string - tags: - - tweet - /graphql/RIWc55YCNyUJ-U3HHGYkdg/UserTweetsAndReplies: - get: - description: get user replies tweets - operationId: getUserTweetsAndReplies - parameters: - - in: query - name: queryId - required: true - schema: - default: '"RIWc55YCNyUJ-U3HHGYkdg"' - example: '"RIWc55YCNyUJ-U3HHGYkdg"' - type: string - - in: query - name: variables - required: true - schema: - default: '{"userId": "44196397", "count": 40, "includePromotedContent": - true, "withCommunity": true, "withVoice": true, "withV2Timeline": true}' - example: '{"userId": "44196397", "count": 40, "includePromotedContent": - true, "withCommunity": true, "withVoice": true, "withV2Timeline": true}' - type: string - - in: query - name: features - required: true - schema: - default: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": - true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": - true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": - false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": - false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": - false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": - false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": - false}' - example: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": - true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": - true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": - false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": - false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": - false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": - false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": - false}' - type: string - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/UserTweetsResponse' - description: Successful operation - headers: - x-connection-hash: - schema: - type: string - x-rate-limit-limit: - schema: - type: integer - x-rate-limit-remaining: - schema: - type: integer - x-rate-limit-reset: - schema: - type: integer - x-response-time: - schema: - type: integer - x-tfe-preserve-body: - schema: - type: boolean - x-transaction-id: - schema: - type: string - x-twitter-response-tags: - schema: - type: string - tags: - - tweet - /graphql/YqiE3JL1KNgf9nSljYdxaA/UserMedia: + /graphql/{pathQueryId}/UserMedia: get: description: get user media tweets operationId: getUserMedia parameters: + - in: path + name: pathQueryId + required: true + schema: + default: YqiE3JL1KNgf9nSljYdxaA + example: YqiE3JL1KNgf9nSljYdxaA + type: string - in: query name: queryId required: true @@ -366,3 +214,183 @@ paths: type: string tags: - tweet + /graphql/{pathQueryId}/UserTweets: + get: + description: get user tweets + operationId: getUserTweets + parameters: + - in: path + name: pathQueryId + required: true + schema: + default: HuTx74BxAnezK1gWvYY7zg + example: HuTx74BxAnezK1gWvYY7zg + type: string + - in: query + name: queryId + required: true + schema: + default: '"HuTx74BxAnezK1gWvYY7zg"' + example: '"HuTx74BxAnezK1gWvYY7zg"' + type: string + - in: query + name: variables + required: true + schema: + default: '{"userId": "44196397", "count": 40, "includePromotedContent": + true, "withQuickPromoteEligibilityTweetFields": true, "withVoice": true, + "withV2Timeline": true}' + example: '{"userId": "44196397", "count": 40, "includePromotedContent": + true, "withQuickPromoteEligibilityTweetFields": true, "withVoice": true, + "withV2Timeline": true}' + type: string + - in: query + name: features + required: true + schema: + default: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": + true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": + true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": + false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": + false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": + false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": + false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": + false}' + example: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": + true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": + true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": + false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": + false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": + false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": + false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": + false}' + type: string + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/UserTweetsResponse' + description: Successful operation + headers: + x-connection-hash: + schema: + type: string + x-rate-limit-limit: + schema: + type: integer + x-rate-limit-remaining: + schema: + type: integer + x-rate-limit-reset: + schema: + type: integer + x-response-time: + schema: + type: integer + x-tfe-preserve-body: + schema: + type: boolean + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + tags: + - tweet + /graphql/{pathQueryId}/UserTweetsAndReplies: + get: + description: get user replies tweets + operationId: getUserTweetsAndReplies + parameters: + - in: path + name: pathQueryId + required: true + schema: + default: RIWc55YCNyUJ-U3HHGYkdg + example: RIWc55YCNyUJ-U3HHGYkdg + type: string + - in: query + name: queryId + required: true + schema: + default: '"RIWc55YCNyUJ-U3HHGYkdg"' + example: '"RIWc55YCNyUJ-U3HHGYkdg"' + type: string + - in: query + name: variables + required: true + schema: + default: '{"userId": "44196397", "count": 40, "includePromotedContent": + true, "withCommunity": true, "withVoice": true, "withV2Timeline": true}' + example: '{"userId": "44196397", "count": 40, "includePromotedContent": + true, "withCommunity": true, "withVoice": true, "withV2Timeline": true}' + type: string + - in: query + name: features + required: true + schema: + default: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": + true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": + true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": + false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": + false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": + false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": + false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": + false}' + example: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": + true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": + true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": + false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": + false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": + false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": + false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": + false}' + type: string + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/UserTweetsResponse' + description: Successful operation + headers: + x-connection-hash: + schema: + type: string + x-rate-limit-limit: + schema: + type: integer + x-rate-limit-remaining: + schema: + type: integer + x-rate-limit-reset: + schema: + type: integer + x-response-time: + schema: + type: integer + x-tfe-preserve-body: + schema: + type: boolean + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + tags: + - tweet diff --git a/dist/test/resources/parameters.yaml b/dist/test/resources/parameters.yaml new file mode 100644 index 0000000..e6a9c38 --- /dev/null +++ b/dist/test/resources/parameters.yaml @@ -0,0 +1,13 @@ +components: + parameters: + queryId: + in: path + name: queryId + required: true + schema: + type: string +info: + title: Twitter OpenAPI + version: 0.0.1 +openapi: 3.0.3 +paths: {} diff --git a/dist/test/schemas/tweet.yaml b/dist/test/schemas/tweet.yaml index 002fcc6..2efabc8 100644 --- a/dist/test/schemas/tweet.yaml +++ b/dist/test/schemas/tweet.yaml @@ -130,7 +130,8 @@ components: - name - url type: object - rest_id: string + rest_id: + type: string type: object core: $ref: ./user.yaml#/components/schemas/UserResultCore diff --git a/dist/typescript/openapi-3.0.yaml b/dist/typescript/openapi-3.0.yaml index 14e3f7f..1794799 100644 --- a/dist/typescript/openapi-3.0.yaml +++ b/dist/typescript/openapi-3.0.yaml @@ -68,44 +68,44 @@ paths: $ref: ./paths/v1.1-get.yaml#/paths/~11.1~1search~1typeahead.json /2/search/adaptive.json: $ref: ./paths/v2.0-get.yaml#/paths/~12~1search~1adaptive.json - /graphql/1RyAhNwby-gzGCRVsMxKbQ/CreateTweet: - $ref: ./paths/post.yaml#/paths/~1graphql~11RyAhNwby-gzGCRVsMxKbQ~1CreateTweet - /graphql/2TemLyqrMpTeAmysdbnVqw/ListLatestTweetsTimeline: - $ref: ./paths/timeline.yaml#/paths/~1graphql~12TemLyqrMpTeAmysdbnVqw~1ListLatestTweetsTimeline - /graphql/5fmEkRT-1AdHqEsbVgehMg/Likes: - $ref: ./paths/usertweets.yaml#/paths/~1graphql~15fmEkRT-1AdHqEsbVgehMg~1Likes - /graphql/9zwVLJ48lmVUk8u_Gh9DmA/ProfileSpotlightsQuery: - $ref: ./paths/profile.yaml#/paths/~1graphql~19zwVLJ48lmVUk8u_Gh9DmA~1ProfileSpotlightsQuery - /graphql/HCosKfLNW1AcOo3la3mMgg/HomeTimeline: - $ref: ./paths/timeline.yaml#/paths/~1graphql~1HCosKfLNW1AcOo3la3mMgg~1HomeTimeline - /graphql/HuTx74BxAnezK1gWvYY7zg/UserTweets: - $ref: ./paths/usertweets.yaml#/paths/~1graphql~1HuTx74BxAnezK1gWvYY7zg~1UserTweets - /graphql/IWP6Zt14sARO29lJT35bBw/Following: - $ref: ./paths/follow.yaml#/paths/~1graphql~1IWP6Zt14sARO29lJT35bBw~1Following - /graphql/RIWc55YCNyUJ-U3HHGYkdg/UserTweetsAndReplies: - $ref: ./paths/usertweets.yaml#/paths/~1graphql~1RIWc55YCNyUJ-U3HHGYkdg~1UserTweetsAndReplies - /graphql/VaenaVgh5q5ih7kvyVjgtg/DeleteTweet: - $ref: ./paths/post.yaml#/paths/~1graphql~1VaenaVgh5q5ih7kvyVjgtg~1DeleteTweet - /graphql/YqiE3JL1KNgf9nSljYdxaA/UserMedia: - $ref: ./paths/usertweets.yaml#/paths/~1graphql~1YqiE3JL1KNgf9nSljYdxaA~1UserMedia - /graphql/ZYKSe-w7KEslx3JhSIk5LA/UnfavoriteTweet: - $ref: ./paths/post.yaml#/paths/~1graphql~1ZYKSe-w7KEslx3JhSIk5LA~1UnfavoriteTweet - /graphql/djdTXDIk2qhd4OStqlUFeQ/Followers: - $ref: ./paths/follow.yaml#/paths/~1graphql~1djdTXDIk2qhd4OStqlUFeQ~1Followers - /graphql/iQtK4dl5hBmXewYZuEOKVw/DeleteRetweet: - $ref: ./paths/post.yaml#/paths/~1graphql~1iQtK4dl5hBmXewYZuEOKVw~1DeleteRetweet - /graphql/lI07N6Otwv1PhnEgXILM7A/FavoriteTweet: - $ref: ./paths/post.yaml#/paths/~1graphql~1lI07N6Otwv1PhnEgXILM7A~1FavoriteTweet - /graphql/ojPdsZsimiJrUGLR1sjUtA/CreateRetweet: - $ref: ./paths/post.yaml#/paths/~1graphql~1ojPdsZsimiJrUGLR1sjUtA~1CreateRetweet - /graphql/sLVLhk0bGj3MVFEKTdax1w/UserByScreenName: - $ref: ./paths/user.yaml#/paths/~1graphql~1sLVLhk0bGj3MVFEKTdax1w~1UserByScreenName - /graphql/tmd4ifV8RHltzn8ymGg1aw/Bookmarks: - $ref: ./paths/bookmarks.yaml#/paths/~1graphql~1tmd4ifV8RHltzn8ymGg1aw~1Bookmarks - /graphql/wNNG8DBB8EaXw1lq4vFWGA/TweetDetail: - $ref: ./paths/tweet.yaml#/paths/~1graphql~1wNNG8DBB8EaXw1lq4vFWGA~1TweetDetail - /graphql/zhX91JE87mWvfprhYE97xA/HomeLatestTimeline: - $ref: ./paths/timeline.yaml#/paths/~1graphql~1zhX91JE87mWvfprhYE97xA~1HomeLatestTimeline + /graphql/{pathQueryId}/Bookmarks: + $ref: ./paths/bookmarks.yaml#/paths/~1graphql~1{pathQueryId}~1Bookmarks + /graphql/{pathQueryId}/CreateRetweet: + $ref: ./paths/post.yaml#/paths/~1graphql~1{pathQueryId}~1CreateRetweet + /graphql/{pathQueryId}/CreateTweet: + $ref: ./paths/post.yaml#/paths/~1graphql~1{pathQueryId}~1CreateTweet + /graphql/{pathQueryId}/DeleteRetweet: + $ref: ./paths/post.yaml#/paths/~1graphql~1{pathQueryId}~1DeleteRetweet + /graphql/{pathQueryId}/DeleteTweet: + $ref: ./paths/post.yaml#/paths/~1graphql~1{pathQueryId}~1DeleteTweet + /graphql/{pathQueryId}/FavoriteTweet: + $ref: ./paths/post.yaml#/paths/~1graphql~1{pathQueryId}~1FavoriteTweet + /graphql/{pathQueryId}/Followers: + $ref: ./paths/follow.yaml#/paths/~1graphql~1{pathQueryId}~1Followers + /graphql/{pathQueryId}/Following: + $ref: ./paths/follow.yaml#/paths/~1graphql~1{pathQueryId}~1Following + /graphql/{pathQueryId}/HomeLatestTimeline: + $ref: ./paths/timeline.yaml#/paths/~1graphql~1{pathQueryId}~1HomeLatestTimeline + /graphql/{pathQueryId}/HomeTimeline: + $ref: ./paths/timeline.yaml#/paths/~1graphql~1{pathQueryId}~1HomeTimeline + /graphql/{pathQueryId}/Likes: + $ref: ./paths/usertweets.yaml#/paths/~1graphql~1{pathQueryId}~1Likes + /graphql/{pathQueryId}/ListLatestTweetsTimeline: + $ref: ./paths/timeline.yaml#/paths/~1graphql~1{pathQueryId}~1ListLatestTweetsTimeline + /graphql/{pathQueryId}/ProfileSpotlightsQuery: + $ref: ./paths/profile.yaml#/paths/~1graphql~1{pathQueryId}~1ProfileSpotlightsQuery + /graphql/{pathQueryId}/TweetDetail: + $ref: ./paths/tweet.yaml#/paths/~1graphql~1{pathQueryId}~1TweetDetail + /graphql/{pathQueryId}/UnfavoriteTweet: + $ref: ./paths/post.yaml#/paths/~1graphql~1{pathQueryId}~1UnfavoriteTweet + /graphql/{pathQueryId}/UserByScreenName: + $ref: ./paths/user.yaml#/paths/~1graphql~1{pathQueryId}~1UserByScreenName + /graphql/{pathQueryId}/UserMedia: + $ref: ./paths/usertweets.yaml#/paths/~1graphql~1{pathQueryId}~1UserMedia + /graphql/{pathQueryId}/UserTweets: + $ref: ./paths/usertweets.yaml#/paths/~1graphql~1{pathQueryId}~1UserTweets + /graphql/{pathQueryId}/UserTweetsAndReplies: + $ref: ./paths/usertweets.yaml#/paths/~1graphql~1{pathQueryId}~1UserTweetsAndReplies /other: $ref: ./paths/other.yaml#/paths/~1other security: diff --git a/dist/typescript/paths/bookmarks.yaml b/dist/typescript/paths/bookmarks.yaml index de592e7..35ac8e9 100644 --- a/dist/typescript/paths/bookmarks.yaml +++ b/dist/typescript/paths/bookmarks.yaml @@ -23,11 +23,18 @@ info: version: 0.0.1 openapi: 3.0.3 paths: - /graphql/tmd4ifV8RHltzn8ymGg1aw/Bookmarks: + /graphql/{pathQueryId}/Bookmarks: get: description: get bookmarks operationId: getBookmarks parameters: + - in: path + name: pathQueryId + required: true + schema: + default: tmd4ifV8RHltzn8ymGg1aw + example: tmd4ifV8RHltzn8ymGg1aw + type: string - in: query name: queryId required: true diff --git a/dist/typescript/paths/follow.yaml b/dist/typescript/paths/follow.yaml index 8af2a42..64a94a3 100644 --- a/dist/typescript/paths/follow.yaml +++ b/dist/typescript/paths/follow.yaml @@ -38,93 +38,18 @@ info: version: 0.0.1 openapi: 3.0.3 paths: - /graphql/IWP6Zt14sARO29lJT35bBw/Following: - get: - description: get user list of following - operationId: getFollowing - parameters: - - in: query - name: queryId - required: true - schema: - default: '"IWP6Zt14sARO29lJT35bBw"' - example: '"IWP6Zt14sARO29lJT35bBw"' - type: string - - in: query - name: variables - required: true - schema: - default: '{"userId": "44196397", "count": 20, "includePromotedContent": - false}' - example: '{"userId": "44196397", "count": 20, "includePromotedContent": - false}' - type: string - - in: query - name: features - required: true - schema: - default: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": - true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": - true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": - false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": - false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": - false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": - false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": - false}' - example: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": - true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": - true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": - false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": - false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": - false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": - false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": - false}' - type: string - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/FollowResponse' - description: Successful operation - headers: - x-connection-hash: - schema: - type: string - x-rate-limit-limit: - schema: - type: integer - x-rate-limit-remaining: - schema: - type: integer - x-rate-limit-reset: - schema: - type: integer - x-response-time: - schema: - type: integer - x-tfe-preserve-body: - schema: - type: boolean - x-transaction-id: - schema: - type: string - x-twitter-response-tags: - schema: - type: string - tags: - - user-list - /graphql/djdTXDIk2qhd4OStqlUFeQ/Followers: + /graphql/{pathQueryId}/Followers: get: description: get user list of followers operationId: getFollowers parameters: + - in: path + name: pathQueryId + required: true + schema: + default: djdTXDIk2qhd4OStqlUFeQ + example: djdTXDIk2qhd4OStqlUFeQ + type: string - in: query name: queryId required: true @@ -202,3 +127,92 @@ paths: type: string tags: - user-list + /graphql/{pathQueryId}/Following: + get: + description: get user list of following + operationId: getFollowing + parameters: + - in: path + name: pathQueryId + required: true + schema: + default: IWP6Zt14sARO29lJT35bBw + example: IWP6Zt14sARO29lJT35bBw + type: string + - in: query + name: queryId + required: true + schema: + default: '"IWP6Zt14sARO29lJT35bBw"' + example: '"IWP6Zt14sARO29lJT35bBw"' + type: string + - in: query + name: variables + required: true + schema: + default: '{"userId": "44196397", "count": 20, "includePromotedContent": + false}' + example: '{"userId": "44196397", "count": 20, "includePromotedContent": + false}' + type: string + - in: query + name: features + required: true + schema: + default: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": + true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": + true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": + false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": + false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": + false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": + false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": + false}' + example: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": + true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": + true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": + false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": + false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": + false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": + false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": + false}' + type: string + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/FollowResponse' + description: Successful operation + headers: + x-connection-hash: + schema: + type: string + x-rate-limit-limit: + schema: + type: integer + x-rate-limit-remaining: + schema: + type: integer + x-rate-limit-reset: + schema: + type: integer + x-response-time: + schema: + type: integer + x-tfe-preserve-body: + schema: + type: boolean + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + tags: + - user-list diff --git a/dist/typescript/paths/post.yaml b/dist/typescript/paths/post.yaml index 0c5d558..777db37 100644 --- a/dist/typescript/paths/post.yaml +++ b/dist/typescript/paths/post.yaml @@ -136,11 +136,92 @@ info: version: 0.0.1 openapi: 3.0.3 paths: - /graphql/1RyAhNwby-gzGCRVsMxKbQ/CreateTweet: + /graphql/{pathQueryId}/CreateRetweet: + post: + description: create Retweet + operationId: postCreateRetweet + parameters: + - in: path + name: pathQueryId + required: true + schema: + default: ojPdsZsimiJrUGLR1sjUtA + example: ojPdsZsimiJrUGLR1sjUtA + type: string + requestBody: + content: + application/json: + schema: + properties: + queryId: + default: ojPdsZsimiJrUGLR1sjUtA + example: ojPdsZsimiJrUGLR1sjUtA + type: string + variables: + properties: + dark_request: + default: false + example: false + type: boolean + tweet_id: + default: '1349129669258448897' + example: '1349129669258448897' + type: string + required: + - tweet_id + - dark_request + type: object + required: + - queryId + - variables + description: body + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/CreateRetweetResponse' + description: Successful operation + headers: + x-connection-hash: + schema: + type: string + x-rate-limit-limit: + schema: + type: integer + x-rate-limit-remaining: + schema: + type: integer + x-rate-limit-reset: + schema: + type: integer + x-response-time: + schema: + type: integer + x-tfe-preserve-body: + schema: + type: boolean + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + tags: + - post + /graphql/{pathQueryId}/CreateTweet: post: description: create Tweet operationId: postCreateTweet - parameters: [] + parameters: + - in: path + name: pathQueryId + required: true + schema: + default: 1RyAhNwby-gzGCRVsMxKbQ + example: 1RyAhNwby-gzGCRVsMxKbQ + type: string requestBody: content: application/json: @@ -323,145 +404,18 @@ paths: type: string tags: - post - /graphql/VaenaVgh5q5ih7kvyVjgtg/DeleteTweet: - post: - description: delete Retweet - operationId: postDeleteTweet - parameters: [] - requestBody: - content: - application/json: - schema: - properties: - queryId: - default: VaenaVgh5q5ih7kvyVjgtg - example: VaenaVgh5q5ih7kvyVjgtg - type: string - variables: - properties: - dark_request: - default: false - example: false - type: boolean - tweet_id: - default: '1349129669258448897' - example: '1349129669258448897' - type: string - required: - - tweet_id - - dark_request - type: object - required: - - queryId - - variables - description: body - required: true - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/DeleteTweetResponse' - description: Successful operation - headers: - x-connection-hash: - schema: - type: string - x-rate-limit-limit: - schema: - type: integer - x-rate-limit-remaining: - schema: - type: integer - x-rate-limit-reset: - schema: - type: integer - x-response-time: - schema: - type: integer - x-tfe-preserve-body: - schema: - type: boolean - x-transaction-id: - schema: - type: string - x-twitter-response-tags: - schema: - type: string - tags: - - post - /graphql/ZYKSe-w7KEslx3JhSIk5LA/UnfavoriteTweet: - post: - description: unfavorite Tweet - operationId: postUnfavoriteTweet - parameters: [] - requestBody: - content: - application/json: - schema: - properties: - queryId: - default: ZYKSe-w7KEslx3JhSIk5LA - example: ZYKSe-w7KEslx3JhSIk5LA - type: string - variables: - properties: - dark_request: - default: false - example: false - type: boolean - tweet_id: - default: '1349129669258448897' - example: '1349129669258448897' - type: string - required: - - tweet_id - - dark_request - type: object - required: - - queryId - - variables - description: body - required: true - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/UnfavoriteTweetResponseData' - description: Successful operation - headers: - x-connection-hash: - schema: - type: string - x-rate-limit-limit: - schema: - type: integer - x-rate-limit-remaining: - schema: - type: integer - x-rate-limit-reset: - schema: - type: integer - x-response-time: - schema: - type: integer - x-tfe-preserve-body: - schema: - type: boolean - x-transaction-id: - schema: - type: string - x-twitter-response-tags: - schema: - type: string - tags: - - post - /graphql/iQtK4dl5hBmXewYZuEOKVw/DeleteRetweet: + /graphql/{pathQueryId}/DeleteRetweet: post: description: delete Retweet operationId: postDeleteRetweet - parameters: [] + parameters: + - in: path + name: pathQueryId + required: true + schema: + default: iQtK4dl5hBmXewYZuEOKVw + example: iQtK4dl5hBmXewYZuEOKVw + type: string requestBody: content: application/json: @@ -524,11 +478,92 @@ paths: type: string tags: - post - /graphql/lI07N6Otwv1PhnEgXILM7A/FavoriteTweet: + /graphql/{pathQueryId}/DeleteTweet: + post: + description: delete Retweet + operationId: postDeleteTweet + parameters: + - in: path + name: pathQueryId + required: true + schema: + default: VaenaVgh5q5ih7kvyVjgtg + example: VaenaVgh5q5ih7kvyVjgtg + type: string + requestBody: + content: + application/json: + schema: + properties: + queryId: + default: VaenaVgh5q5ih7kvyVjgtg + example: VaenaVgh5q5ih7kvyVjgtg + type: string + variables: + properties: + dark_request: + default: false + example: false + type: boolean + tweet_id: + default: '1349129669258448897' + example: '1349129669258448897' + type: string + required: + - tweet_id + - dark_request + type: object + required: + - queryId + - variables + description: body + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DeleteTweetResponse' + description: Successful operation + headers: + x-connection-hash: + schema: + type: string + x-rate-limit-limit: + schema: + type: integer + x-rate-limit-remaining: + schema: + type: integer + x-rate-limit-reset: + schema: + type: integer + x-response-time: + schema: + type: integer + x-tfe-preserve-body: + schema: + type: boolean + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + tags: + - post + /graphql/{pathQueryId}/FavoriteTweet: post: description: favorite Tweet operationId: postFavoriteTweet - parameters: [] + parameters: + - in: path + name: pathQueryId + required: true + schema: + default: lI07N6Otwv1PhnEgXILM7A + example: lI07N6Otwv1PhnEgXILM7A + type: string requestBody: content: application/json: @@ -591,19 +626,26 @@ paths: type: string tags: - post - /graphql/ojPdsZsimiJrUGLR1sjUtA/CreateRetweet: + /graphql/{pathQueryId}/UnfavoriteTweet: post: - description: create Retweet - operationId: postCreateRetweet - parameters: [] + description: unfavorite Tweet + operationId: postUnfavoriteTweet + parameters: + - in: path + name: pathQueryId + required: true + schema: + default: ZYKSe-w7KEslx3JhSIk5LA + example: ZYKSe-w7KEslx3JhSIk5LA + type: string requestBody: content: application/json: schema: properties: queryId: - default: ojPdsZsimiJrUGLR1sjUtA - example: ojPdsZsimiJrUGLR1sjUtA + default: ZYKSe-w7KEslx3JhSIk5LA + example: ZYKSe-w7KEslx3JhSIk5LA type: string variables: properties: @@ -629,7 +671,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateRetweetResponse' + $ref: '#/components/schemas/UnfavoriteTweetResponseData' description: Successful operation headers: x-connection-hash: diff --git a/dist/typescript/paths/profile.yaml b/dist/typescript/paths/profile.yaml index 8804d2a..97747bb 100644 --- a/dist/typescript/paths/profile.yaml +++ b/dist/typescript/paths/profile.yaml @@ -63,11 +63,18 @@ info: version: 0.0.1 openapi: 3.0.3 paths: - /graphql/9zwVLJ48lmVUk8u_Gh9DmA/ProfileSpotlightsQuery: + /graphql/{pathQueryId}/ProfileSpotlightsQuery: get: description: get user by screen name operationId: getProfileSpotlightsQuery parameters: + - in: path + name: pathQueryId + required: true + schema: + default: 9zwVLJ48lmVUk8u_Gh9DmA + example: 9zwVLJ48lmVUk8u_Gh9DmA + type: string - in: query name: queryId required: true diff --git a/dist/typescript/paths/timeline.yaml b/dist/typescript/paths/timeline.yaml index 6d5207b..3316663 100644 --- a/dist/typescript/paths/timeline.yaml +++ b/dist/typescript/paths/timeline.yaml @@ -47,173 +47,18 @@ info: version: 0.0.1 openapi: 3.0.3 paths: - /graphql/2TemLyqrMpTeAmysdbnVqw/ListLatestTweetsTimeline: - get: - description: get tweet list of timeline - operationId: getListLatestTweetsTimeline - parameters: - - in: query - name: queryId - required: true - schema: - default: '"2TemLyqrMpTeAmysdbnVqw"' - example: '"2TemLyqrMpTeAmysdbnVqw"' - type: string - - in: query - name: variables - required: true - schema: - default: '{"listId": "53044119", "count": 20}' - example: '{"listId": "53044119", "count": 20}' - type: string - - in: query - name: features - required: true - schema: - default: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": - true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": - true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": - false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": - false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": - false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": - false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": - false}' - example: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": - true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": - true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": - false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": - false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": - false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": - false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": - false}' - type: string - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ListTweetsTimelineResponse' - description: Successful operation - headers: - x-connection-hash: - schema: - type: string - x-rate-limit-limit: - schema: - type: integer - x-rate-limit-remaining: - schema: - type: integer - x-rate-limit-reset: - schema: - type: integer - x-response-time: - schema: - type: integer - x-tfe-preserve-body: - schema: - type: boolean - x-transaction-id: - schema: - type: string - x-twitter-response-tags: - schema: - type: string - tags: - - tweet - /graphql/HCosKfLNW1AcOo3la3mMgg/HomeTimeline: - get: - description: get tweet list of timeline - operationId: getHomeTimeline - parameters: - - in: query - name: queryId - required: true - schema: - default: '"HCosKfLNW1AcOo3la3mMgg"' - example: '"HCosKfLNW1AcOo3la3mMgg"' - type: string - - in: query - name: variables - required: true - schema: - default: '{"count": 20, "includePromotedContent": true, "latestControlAvailable": - true, "requestContext": "launch", "withCommunity": true}' - example: '{"count": 20, "includePromotedContent": true, "latestControlAvailable": - true, "requestContext": "launch", "withCommunity": true}' - type: string - - in: query - name: features - required: true - schema: - default: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": - true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": - true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": - false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": - false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": - false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": - false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": - false}' - example: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": - true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": - true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": - false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": - false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": - false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": - false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": - false}' - type: string - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/TimelineResponse' - description: Successful operation - headers: - x-connection-hash: - schema: - type: string - x-rate-limit-limit: - schema: - type: integer - x-rate-limit-remaining: - schema: - type: integer - x-rate-limit-reset: - schema: - type: integer - x-response-time: - schema: - type: integer - x-tfe-preserve-body: - schema: - type: boolean - x-transaction-id: - schema: - type: string - x-twitter-response-tags: - schema: - type: string - tags: - - tweet - /graphql/zhX91JE87mWvfprhYE97xA/HomeLatestTimeline: + /graphql/{pathQueryId}/HomeLatestTimeline: get: description: get tweet list of timeline operationId: getHomeLatestTimeline parameters: + - in: path + name: pathQueryId + required: true + schema: + default: zhX91JE87mWvfprhYE97xA + example: zhX91JE87mWvfprhYE97xA + type: string - in: query name: queryId required: true @@ -291,3 +136,179 @@ paths: type: string tags: - tweet + /graphql/{pathQueryId}/HomeTimeline: + get: + description: get tweet list of timeline + operationId: getHomeTimeline + parameters: + - in: path + name: pathQueryId + required: true + schema: + default: HCosKfLNW1AcOo3la3mMgg + example: HCosKfLNW1AcOo3la3mMgg + type: string + - in: query + name: queryId + required: true + schema: + default: '"HCosKfLNW1AcOo3la3mMgg"' + example: '"HCosKfLNW1AcOo3la3mMgg"' + type: string + - in: query + name: variables + required: true + schema: + default: '{"count": 20, "includePromotedContent": true, "latestControlAvailable": + true, "requestContext": "launch", "withCommunity": true}' + example: '{"count": 20, "includePromotedContent": true, "latestControlAvailable": + true, "requestContext": "launch", "withCommunity": true}' + type: string + - in: query + name: features + required: true + schema: + default: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": + true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": + true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": + false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": + false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": + false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": + false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": + false}' + example: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": + true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": + true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": + false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": + false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": + false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": + false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": + false}' + type: string + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/TimelineResponse' + description: Successful operation + headers: + x-connection-hash: + schema: + type: string + x-rate-limit-limit: + schema: + type: integer + x-rate-limit-remaining: + schema: + type: integer + x-rate-limit-reset: + schema: + type: integer + x-response-time: + schema: + type: integer + x-tfe-preserve-body: + schema: + type: boolean + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + tags: + - tweet + /graphql/{pathQueryId}/ListLatestTweetsTimeline: + get: + description: get tweet list of timeline + operationId: getListLatestTweetsTimeline + parameters: + - in: path + name: pathQueryId + required: true + schema: + default: 2TemLyqrMpTeAmysdbnVqw + example: 2TemLyqrMpTeAmysdbnVqw + type: string + - in: query + name: queryId + required: true + schema: + default: '"2TemLyqrMpTeAmysdbnVqw"' + example: '"2TemLyqrMpTeAmysdbnVqw"' + type: string + - in: query + name: variables + required: true + schema: + default: '{"listId": "53044119", "count": 20}' + example: '{"listId": "53044119", "count": 20}' + type: string + - in: query + name: features + required: true + schema: + default: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": + true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": + true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": + false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": + false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": + false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": + false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": + false}' + example: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": + true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": + true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": + false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": + false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": + false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": + false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": + false}' + type: string + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ListTweetsTimelineResponse' + description: Successful operation + headers: + x-connection-hash: + schema: + type: string + x-rate-limit-limit: + schema: + type: integer + x-rate-limit-remaining: + schema: + type: integer + x-rate-limit-reset: + schema: + type: integer + x-response-time: + schema: + type: integer + x-tfe-preserve-body: + schema: + type: boolean + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + tags: + - tweet diff --git a/dist/typescript/paths/tweet.yaml b/dist/typescript/paths/tweet.yaml index cc14fb4..c44ac24 100644 --- a/dist/typescript/paths/tweet.yaml +++ b/dist/typescript/paths/tweet.yaml @@ -17,11 +17,18 @@ info: version: 0.0.1 openapi: 3.0.3 paths: - /graphql/wNNG8DBB8EaXw1lq4vFWGA/TweetDetail: + /graphql/{pathQueryId}/TweetDetail: get: description: get TweetDetail operationId: getTweetDetail parameters: + - in: path + name: pathQueryId + required: true + schema: + default: wNNG8DBB8EaXw1lq4vFWGA + example: wNNG8DBB8EaXw1lq4vFWGA + type: string - in: query name: queryId required: true diff --git a/dist/typescript/paths/user.yaml b/dist/typescript/paths/user.yaml index 152ad5d..be746ef 100644 --- a/dist/typescript/paths/user.yaml +++ b/dist/typescript/paths/user.yaml @@ -17,11 +17,18 @@ info: version: 0.0.1 openapi: 3.0.3 paths: - /graphql/sLVLhk0bGj3MVFEKTdax1w/UserByScreenName: + /graphql/{pathQueryId}/UserByScreenName: get: description: get user by screen name operationId: getUserByScreenName parameters: + - in: path + name: pathQueryId + required: true + schema: + default: sLVLhk0bGj3MVFEKTdax1w + example: sLVLhk0bGj3MVFEKTdax1w + type: string - in: query name: queryId required: true diff --git a/dist/typescript/paths/usertweets.yaml b/dist/typescript/paths/usertweets.yaml index a7fb1a9..eacd2d0 100644 --- a/dist/typescript/paths/usertweets.yaml +++ b/dist/typescript/paths/usertweets.yaml @@ -32,11 +32,18 @@ info: version: 0.0.1 openapi: 3.0.3 paths: - /graphql/5fmEkRT-1AdHqEsbVgehMg/Likes: + /graphql/{pathQueryId}/Likes: get: description: get user likes tweets operationId: getLikes parameters: + - in: path + name: pathQueryId + required: true + schema: + default: 5fmEkRT-1AdHqEsbVgehMg + example: 5fmEkRT-1AdHqEsbVgehMg + type: string - in: query name: queryId required: true @@ -116,177 +123,18 @@ paths: type: string tags: - tweet - /graphql/HuTx74BxAnezK1gWvYY7zg/UserTweets: - get: - description: get user tweets - operationId: getUserTweets - parameters: - - in: query - name: queryId - required: true - schema: - default: '"HuTx74BxAnezK1gWvYY7zg"' - example: '"HuTx74BxAnezK1gWvYY7zg"' - type: string - - in: query - name: variables - required: true - schema: - default: '{"userId": "44196397", "count": 40, "includePromotedContent": - true, "withQuickPromoteEligibilityTweetFields": true, "withVoice": true, - "withV2Timeline": true}' - example: '{"userId": "44196397", "count": 40, "includePromotedContent": - true, "withQuickPromoteEligibilityTweetFields": true, "withVoice": true, - "withV2Timeline": true}' - type: string - - in: query - name: features - required: true - schema: - default: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": - true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": - true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": - false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": - false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": - false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": - false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": - false}' - example: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": - true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": - true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": - false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": - false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": - false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": - false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": - false}' - type: string - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/UserTweetsResponse' - description: Successful operation - headers: - x-connection-hash: - schema: - type: string - x-rate-limit-limit: - schema: - type: integer - x-rate-limit-remaining: - schema: - type: integer - x-rate-limit-reset: - schema: - type: integer - x-response-time: - schema: - type: integer - x-tfe-preserve-body: - schema: - type: boolean - x-transaction-id: - schema: - type: string - x-twitter-response-tags: - schema: - type: string - tags: - - tweet - /graphql/RIWc55YCNyUJ-U3HHGYkdg/UserTweetsAndReplies: - get: - description: get user replies tweets - operationId: getUserTweetsAndReplies - parameters: - - in: query - name: queryId - required: true - schema: - default: '"RIWc55YCNyUJ-U3HHGYkdg"' - example: '"RIWc55YCNyUJ-U3HHGYkdg"' - type: string - - in: query - name: variables - required: true - schema: - default: '{"userId": "44196397", "count": 40, "includePromotedContent": - true, "withCommunity": true, "withVoice": true, "withV2Timeline": true}' - example: '{"userId": "44196397", "count": 40, "includePromotedContent": - true, "withCommunity": true, "withVoice": true, "withV2Timeline": true}' - type: string - - in: query - name: features - required: true - schema: - default: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": - true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": - true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": - false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": - false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": - false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": - false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": - false}' - example: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": - true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": - true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": - false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": - false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": - false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": - false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": - false}' - type: string - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/UserTweetsResponse' - description: Successful operation - headers: - x-connection-hash: - schema: - type: string - x-rate-limit-limit: - schema: - type: integer - x-rate-limit-remaining: - schema: - type: integer - x-rate-limit-reset: - schema: - type: integer - x-response-time: - schema: - type: integer - x-tfe-preserve-body: - schema: - type: boolean - x-transaction-id: - schema: - type: string - x-twitter-response-tags: - schema: - type: string - tags: - - tweet - /graphql/YqiE3JL1KNgf9nSljYdxaA/UserMedia: + /graphql/{pathQueryId}/UserMedia: get: description: get user media tweets operationId: getUserMedia parameters: + - in: path + name: pathQueryId + required: true + schema: + default: YqiE3JL1KNgf9nSljYdxaA + example: YqiE3JL1KNgf9nSljYdxaA + type: string - in: query name: queryId required: true @@ -366,3 +214,183 @@ paths: type: string tags: - tweet + /graphql/{pathQueryId}/UserTweets: + get: + description: get user tweets + operationId: getUserTweets + parameters: + - in: path + name: pathQueryId + required: true + schema: + default: HuTx74BxAnezK1gWvYY7zg + example: HuTx74BxAnezK1gWvYY7zg + type: string + - in: query + name: queryId + required: true + schema: + default: '"HuTx74BxAnezK1gWvYY7zg"' + example: '"HuTx74BxAnezK1gWvYY7zg"' + type: string + - in: query + name: variables + required: true + schema: + default: '{"userId": "44196397", "count": 40, "includePromotedContent": + true, "withQuickPromoteEligibilityTweetFields": true, "withVoice": true, + "withV2Timeline": true}' + example: '{"userId": "44196397", "count": 40, "includePromotedContent": + true, "withQuickPromoteEligibilityTweetFields": true, "withVoice": true, + "withV2Timeline": true}' + type: string + - in: query + name: features + required: true + schema: + default: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": + true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": + true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": + false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": + false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": + false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": + false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": + false}' + example: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": + true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": + true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": + false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": + false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": + false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": + false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": + false}' + type: string + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/UserTweetsResponse' + description: Successful operation + headers: + x-connection-hash: + schema: + type: string + x-rate-limit-limit: + schema: + type: integer + x-rate-limit-remaining: + schema: + type: integer + x-rate-limit-reset: + schema: + type: integer + x-response-time: + schema: + type: integer + x-tfe-preserve-body: + schema: + type: boolean + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + tags: + - tweet + /graphql/{pathQueryId}/UserTweetsAndReplies: + get: + description: get user replies tweets + operationId: getUserTweetsAndReplies + parameters: + - in: path + name: pathQueryId + required: true + schema: + default: RIWc55YCNyUJ-U3HHGYkdg + example: RIWc55YCNyUJ-U3HHGYkdg + type: string + - in: query + name: queryId + required: true + schema: + default: '"RIWc55YCNyUJ-U3HHGYkdg"' + example: '"RIWc55YCNyUJ-U3HHGYkdg"' + type: string + - in: query + name: variables + required: true + schema: + default: '{"userId": "44196397", "count": 40, "includePromotedContent": + true, "withCommunity": true, "withVoice": true, "withV2Timeline": true}' + example: '{"userId": "44196397", "count": 40, "includePromotedContent": + true, "withCommunity": true, "withVoice": true, "withV2Timeline": true}' + type: string + - in: query + name: features + required: true + schema: + default: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": + true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": + true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": + false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": + false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": + false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": + false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": + false}' + example: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": + true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled": + true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": + false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": + false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": + false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled": + false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled": + false}' + type: string + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/UserTweetsResponse' + description: Successful operation + headers: + x-connection-hash: + schema: + type: string + x-rate-limit-limit: + schema: + type: integer + x-rate-limit-remaining: + schema: + type: integer + x-rate-limit-reset: + schema: + type: integer + x-response-time: + schema: + type: integer + x-tfe-preserve-body: + schema: + type: boolean + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + tags: + - tweet diff --git a/dist/typescript/resources/parameters.yaml b/dist/typescript/resources/parameters.yaml new file mode 100644 index 0000000..e6a9c38 --- /dev/null +++ b/dist/typescript/resources/parameters.yaml @@ -0,0 +1,13 @@ +components: + parameters: + queryId: + in: path + name: queryId + required: true + schema: + type: string +info: + title: Twitter OpenAPI + version: 0.0.1 +openapi: 3.0.3 +paths: {} diff --git a/dist/typescript/schemas/tweet.yaml b/dist/typescript/schemas/tweet.yaml index 002fcc6..2efabc8 100644 --- a/dist/typescript/schemas/tweet.yaml +++ b/dist/typescript/schemas/tweet.yaml @@ -130,7 +130,8 @@ components: - name - url type: object - rest_id: string + rest_id: + type: string type: object core: $ref: ./user.yaml#/components/schemas/UserResultCore