From ee7bc7306617fad6adecf3c588938e4a666c799f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Thu, 11 May 2023 11:54:07 +0900 Subject: [PATCH] build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- dist/dart/paths/post.yaml | 19 +++ dist/dart/paths/v1.1-get.yaml | 66 +++++++- dist/dart/paths/v1.1-post.yaml | 232 +++++++++++++++++++++++---- dist/dart/paths/v2.0-get.yaml | 29 ++++ dist/docs/openapi-3.0.yaml | 20 +++ dist/docs/paths/bookmarks.yaml | 47 ++++++ dist/docs/paths/follow.yaml | 94 +++++++++++ dist/docs/paths/profile.yaml | 26 +++ dist/docs/paths/timeline.yaml | 143 +++++++++++++++++ dist/docs/paths/tweet.yaml | 52 ++++++ dist/docs/paths/user.yaml | 32 ++++ dist/docs/paths/usertweets.yaml | 202 +++++++++++++++++++++++ dist/docs/paths/v1.1-get.yaml | 8 +- dist/docs/paths/v1.1-post.yaml | 8 +- dist/test/openapi-3.0.yaml | 20 +++ dist/test/paths/v1.1-get.yaml | 8 +- dist/test/paths/v1.1-post.yaml | 8 +- dist/typescript/openapi-3.0.yaml | 20 +++ dist/typescript/paths/v1.1-get.yaml | 8 +- dist/typescript/paths/v1.1-post.yaml | 8 +- 20 files changed, 994 insertions(+), 56 deletions(-) diff --git a/dist/dart/paths/post.yaml b/dist/dart/paths/post.yaml index 9b56ad4..50fd28f 100644 --- a/dist/dart/paths/post.yaml +++ b/dist/dart/paths/post.yaml @@ -312,6 +312,10 @@ paths: - semantic_annotation_ids - dark_request type: object + required: + - queryId + - variables + - features description: body required: true responses: @@ -405,6 +409,9 @@ paths: - tweet_id - dark_request type: object + required: + - queryId + - variables description: body required: true responses: @@ -498,6 +505,9 @@ paths: - tweet_id - dark_request type: object + required: + - queryId + - variables description: body required: true responses: @@ -591,6 +601,9 @@ paths: - source_tweet_id - dark_request type: object + required: + - queryId + - variables description: body required: true responses: @@ -684,6 +697,9 @@ paths: - tweet_id - dark_request type: object + required: + - queryId + - variables description: body required: true responses: @@ -777,6 +793,9 @@ paths: - tweet_id - dark_request type: object + required: + - queryId + - variables description: body required: true responses: diff --git a/dist/dart/paths/v1.1-get.yaml b/dist/dart/paths/v1.1-get.yaml index 0fd9956..4039283 100644 --- a/dist/dart/paths/v1.1-get.yaml +++ b/dist/dart/paths/v1.1-get.yaml @@ -8,6 +8,35 @@ paths: description: get friends following list operationId: getFriendsFollowingList 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: include_profile_interstitial_type required: true @@ -110,8 +139,8 @@ paths: name: user_id required: true schema: - default: '17152334' - example: '17152334' + default: '"17152334"' + example: '"17152334"' type: string - in: query name: count @@ -165,6 +194,35 @@ paths: description: get search typeahead operationId: getSearchTypeahead 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: include_ext_is_blue_verified required: true @@ -190,8 +248,8 @@ paths: name: q required: true schema: - default: '"aaa"' - example: '"aaa"' + default: '"test"' + example: '"test"' type: string - in: query name: src diff --git a/dist/dart/paths/v1.1-post.yaml b/dist/dart/paths/v1.1-post.yaml index a51362b..84caef2 100644 --- a/dist/dart/paths/v1.1-post.yaml +++ b/dist/dart/paths/v1.1-post.yaml @@ -7,24 +7,112 @@ paths: post: description: post create friendships operationId: postCreateFriendships - parameters: [] + 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/x-www-form-urlencoded: schema: - default: '{"include_profile_interstitial_type": 1, "include_blocking": - 1, "include_blocked_by": 1, "include_followed_by": 1, "include_want_retweets": - 1, "include_mute_edge": 1, "include_can_dm": 1, "include_can_media_tag": - 1, "include_ext_has_nft_avatar": 1, "include_ext_is_blue_verified": - 1, "include_ext_verified_type": 1, "include_ext_profile_image_shape": - 1, "skip_status": 1, "user_id": 44196397}' - example: '{"include_profile_interstitial_type": 1, "include_blocking": - 1, "include_blocked_by": 1, "include_followed_by": 1, "include_want_retweets": - 1, "include_mute_edge": 1, "include_can_dm": 1, "include_can_media_tag": - 1, "include_ext_has_nft_avatar": 1, "include_ext_is_blue_verified": - 1, "include_ext_verified_type": 1, "include_ext_profile_image_shape": - 1, "skip_status": 1, "user_id": 44196397}' - type: object + properties: + include_blocked_by: + default: 1 + example: 1 + type: integer + include_blocking: + default: 1 + example: 1 + type: integer + include_can_dm: + default: 1 + example: 1 + type: integer + include_can_media_tag: + default: 1 + example: 1 + type: integer + include_ext_has_nft_avatar: + default: 1 + example: 1 + type: integer + include_ext_is_blue_verified: + default: 1 + example: 1 + type: integer + include_ext_profile_image_shape: + default: 1 + example: 1 + type: integer + include_ext_verified_type: + default: 1 + example: 1 + type: integer + include_followed_by: + default: 1 + example: 1 + type: integer + include_mute_edge: + default: 1 + example: 1 + type: integer + include_profile_interstitial_type: + default: 1 + example: 1 + type: integer + include_want_retweets: + default: 1 + example: 1 + type: integer + skip_status: + default: 1 + example: 1 + type: integer + user_id: + default: '44196397' + example: '44196397' + type: string + required: + - include_profile_interstitial_type + - include_blocking + - include_blocked_by + - include_followed_by + - include_want_retweets + - include_mute_edge + - include_can_dm + - include_can_media_tag + - include_ext_has_nft_avatar + - include_ext_is_blue_verified + - include_ext_verified_type + - include_ext_profile_image_shape + - skip_status + - user_id description: body required: true responses: @@ -64,24 +152,112 @@ paths: post: description: post destroy friendships operationId: postDestroyFriendships - parameters: [] + 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/x-www-form-urlencoded: schema: - default: '{"include_profile_interstitial_type": 1, "include_blocking": - 1, "include_blocked_by": 1, "include_followed_by": 1, "include_want_retweets": - 1, "include_mute_edge": 1, "include_can_dm": 1, "include_can_media_tag": - 1, "include_ext_has_nft_avatar": 1, "include_ext_is_blue_verified": - 1, "include_ext_verified_type": 1, "include_ext_profile_image_shape": - 1, "skip_status": 1, "user_id": 44196397}' - example: '{"include_profile_interstitial_type": 1, "include_blocking": - 1, "include_blocked_by": 1, "include_followed_by": 1, "include_want_retweets": - 1, "include_mute_edge": 1, "include_can_dm": 1, "include_can_media_tag": - 1, "include_ext_has_nft_avatar": 1, "include_ext_is_blue_verified": - 1, "include_ext_verified_type": 1, "include_ext_profile_image_shape": - 1, "skip_status": 1, "user_id": 44196397}' - type: object + properties: + include_blocked_by: + default: 1 + example: 1 + type: integer + include_blocking: + default: 1 + example: 1 + type: integer + include_can_dm: + default: 1 + example: 1 + type: integer + include_can_media_tag: + default: 1 + example: 1 + type: integer + include_ext_has_nft_avatar: + default: 1 + example: 1 + type: integer + include_ext_is_blue_verified: + default: 1 + example: 1 + type: integer + include_ext_profile_image_shape: + default: 1 + example: 1 + type: integer + include_ext_verified_type: + default: 1 + example: 1 + type: integer + include_followed_by: + default: 1 + example: 1 + type: integer + include_mute_edge: + default: 1 + example: 1 + type: integer + include_profile_interstitial_type: + default: 1 + example: 1 + type: integer + include_want_retweets: + default: 1 + example: 1 + type: integer + skip_status: + default: 1 + example: 1 + type: integer + user_id: + default: '44196397' + example: '44196397' + type: string + required: + - include_profile_interstitial_type + - include_blocking + - include_blocked_by + - include_followed_by + - include_want_retweets + - include_mute_edge + - include_can_dm + - include_can_media_tag + - include_ext_has_nft_avatar + - include_ext_is_blue_verified + - include_ext_verified_type + - include_ext_profile_image_shape + - skip_status + - user_id description: body required: true responses: diff --git a/dist/dart/paths/v2.0-get.yaml b/dist/dart/paths/v2.0-get.yaml index 93fded6..dc68b1e 100644 --- a/dist/dart/paths/v2.0-get.yaml +++ b/dist/dart/paths/v2.0-get.yaml @@ -8,6 +8,35 @@ paths: description: get search adaptive operationId: getSearchAdaptive 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: include_profile_interstitial_type required: true diff --git a/dist/docs/openapi-3.0.yaml b/dist/docs/openapi-3.0.yaml index 621757a..cabc5dd 100644 --- a/dist/docs/openapi-3.0.yaml +++ b/dist/docs/openapi-3.0.yaml @@ -1,6 +1,20 @@ components: schemas: {} securitySchemes: + ActiveUser: + description: 'yes' + in: header + name: x-twitter-active-user + type: apiKey + BearerAuth: + description: AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA + scheme: bearer + type: http + ClientLanguage: + description: en + in: header + name: x-twitter-client-language + type: apiKey CookieAuthToken: description: HttpOnly cookie in: cookie @@ -16,6 +30,12 @@ components: in: header name: x-csrf-token type: apiKey + UserAgent: + description: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, + like Gecko) Chrome/112.0.0.0 Safari/537.36 + in: header + name: user-agent + type: apiKey authType: description: OAuth2Session if you are logged in in: header diff --git a/dist/docs/paths/bookmarks.yaml b/dist/docs/paths/bookmarks.yaml index fddfa3e..f092aab 100644 --- a/dist/docs/paths/bookmarks.yaml +++ b/dist/docs/paths/bookmarks.yaml @@ -30,6 +30,29 @@ paths: parameters: - content: application/json: + required: + - t + - m + - d + - '4' + - i + - f + - V + - '8' + - R + - H + - l + - t + - z + - n + - '8' + - y + - m + - G + - g + - '1' + - a + - w schema: default: tmd4ifV8RHltzn8ymGg1aw example: tmd4ifV8RHltzn8ymGg1aw @@ -39,6 +62,9 @@ paths: required: true - content: application/json: + required: + - count + - includePromotedContent schema: properties: count: @@ -58,6 +84,27 @@ paths: required: true - content: application/json: + required: + - graphql_timeline_v2_bookmark_timeline + - 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: diff --git a/dist/docs/paths/follow.yaml b/dist/docs/paths/follow.yaml index 7ccdfc3..7a67a2a 100644 --- a/dist/docs/paths/follow.yaml +++ b/dist/docs/paths/follow.yaml @@ -45,6 +45,29 @@ paths: 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 @@ -54,6 +77,10 @@ paths: required: true - content: application/json: + required: + - userId + - count + - includePromotedContent schema: properties: count: @@ -78,6 +105,26 @@ paths: 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: @@ -221,6 +268,29 @@ paths: parameters: - content: application/json: + required: + - d + - j + - d + - T + - X + - D + - I + - k + - '2' + - q + - h + - d + - '4' + - O + - S + - t + - q + - l + - U + - F + - e + - Q schema: default: djdTXDIk2qhd4OStqlUFeQ example: djdTXDIk2qhd4OStqlUFeQ @@ -230,6 +300,10 @@ paths: required: true - content: application/json: + required: + - userId + - count + - includePromotedContent schema: properties: count: @@ -254,6 +328,26 @@ paths: 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: diff --git a/dist/docs/paths/profile.yaml b/dist/docs/paths/profile.yaml index c4b1546..0aa4653 100644 --- a/dist/docs/paths/profile.yaml +++ b/dist/docs/paths/profile.yaml @@ -70,6 +70,29 @@ paths: parameters: - content: application/json: + required: + - '9' + - z + - w + - V + - L + - J + - '4' + - '8' + - l + - m + - V + - U + - k + - '8' + - u + - _ + - G + - h + - '9' + - D + - m + - A schema: default: 9zwVLJ48lmVUk8u_Gh9DmA example: 9zwVLJ48lmVUk8u_Gh9DmA @@ -79,6 +102,8 @@ paths: required: true - content: application/json: + required: + - screen_name schema: properties: screen_name: @@ -93,6 +118,7 @@ paths: required: true - content: application/json: + required: [] schema: properties: {} type: object diff --git a/dist/docs/paths/timeline.yaml b/dist/docs/paths/timeline.yaml index 3021ab2..2029c91 100644 --- a/dist/docs/paths/timeline.yaml +++ b/dist/docs/paths/timeline.yaml @@ -54,6 +54,29 @@ paths: parameters: - content: application/json: + required: + - '2' + - T + - e + - m + - L + - y + - q + - r + - M + - p + - T + - e + - A + - m + - y + - s + - d + - b + - n + - V + - q + - w schema: default: 2TemLyqrMpTeAmysdbnVqw example: 2TemLyqrMpTeAmysdbnVqw @@ -63,6 +86,9 @@ paths: required: true - content: application/json: + required: + - listId + - count schema: properties: count: @@ -82,6 +108,26 @@ paths: 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: @@ -225,6 +271,29 @@ paths: parameters: - content: application/json: + required: + - H + - C + - o + - s + - K + - f + - L + - N + - W + - '1' + - A + - c + - O + - o + - '3' + - l + - a + - '3' + - m + - M + - g + - g schema: default: HCosKfLNW1AcOo3la3mMgg example: HCosKfLNW1AcOo3la3mMgg @@ -234,6 +303,12 @@ paths: required: true - content: application/json: + required: + - count + - includePromotedContent + - latestControlAvailable + - requestContext + - withCommunity schema: properties: count: @@ -268,6 +343,26 @@ paths: 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: @@ -411,6 +506,29 @@ paths: parameters: - content: application/json: + required: + - z + - h + - X + - '9' + - '1' + - J + - E + - '8' + - '7' + - m + - W + - v + - f + - p + - r + - h + - Y + - E + - '9' + - '7' + - x + - A schema: default: zhX91JE87mWvfprhYE97xA example: zhX91JE87mWvfprhYE97xA @@ -420,6 +538,11 @@ paths: required: true - content: application/json: + required: + - count + - includePromotedContent + - latestControlAvailable + - requestContext schema: properties: count: @@ -449,6 +572,26 @@ paths: 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: diff --git a/dist/docs/paths/tweet.yaml b/dist/docs/paths/tweet.yaml index 1fd1c4f..d0e3287 100644 --- a/dist/docs/paths/tweet.yaml +++ b/dist/docs/paths/tweet.yaml @@ -24,6 +24,29 @@ paths: parameters: - content: application/json: + required: + - w + - N + - N + - G + - '8' + - D + - B + - B + - '8' + - E + - a + - X + - w + - '1' + - l + - q + - '4' + - v + - F + - W + - G + - A schema: default: wNNG8DBB8EaXw1lq4vFWGA example: wNNG8DBB8EaXw1lq4vFWGA @@ -33,6 +56,15 @@ paths: required: true - content: application/json: + required: + - focalTweetId + - with_rux_injections + - includePromotedContent + - withCommunity + - withQuickPromoteEligibilityTweetFields + - withBirdwatchNotes + - withVoice + - withV2Timeline schema: properties: focalTweetId: @@ -82,6 +114,26 @@ paths: 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: diff --git a/dist/docs/paths/user.yaml b/dist/docs/paths/user.yaml index 95c7b3e..478516b 100644 --- a/dist/docs/paths/user.yaml +++ b/dist/docs/paths/user.yaml @@ -24,6 +24,29 @@ paths: parameters: - content: application/json: + required: + - s + - L + - V + - L + - h + - k + - '0' + - b + - G + - j + - '3' + - M + - V + - F + - E + - K + - T + - d + - a + - x + - '1' + - w schema: default: sLVLhk0bGj3MVFEKTdax1w example: sLVLhk0bGj3MVFEKTdax1w @@ -33,6 +56,9 @@ paths: required: true - content: application/json: + required: + - screen_name + - withSafetyModeUserFields schema: properties: screen_name: @@ -52,6 +78,12 @@ paths: 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_skip_user_profile_image_extensions_enabled + - responsive_web_graphql_timeline_navigation_enabled schema: properties: blue_business_profile_image_shape_enabled: diff --git a/dist/docs/paths/usertweets.yaml b/dist/docs/paths/usertweets.yaml index ad70578..3147638 100644 --- a/dist/docs/paths/usertweets.yaml +++ b/dist/docs/paths/usertweets.yaml @@ -39,6 +39,29 @@ paths: parameters: - content: application/json: + required: + - '5' + - f + - m + - E + - k + - R + - T + - '-' + - '1' + - A + - d + - H + - q + - E + - s + - b + - V + - g + - e + - h + - M + - g schema: default: 5fmEkRT-1AdHqEsbVgehMg example: 5fmEkRT-1AdHqEsbVgehMg @@ -48,6 +71,14 @@ paths: required: true - content: application/json: + required: + - userId + - count + - includePromotedContent + - withClientEventToken + - withBirdwatchNotes + - withVoice + - withV2Timeline schema: properties: count: @@ -92,6 +123,26 @@ paths: 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: @@ -235,6 +286,29 @@ paths: 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 @@ -244,6 +318,13 @@ paths: required: true - content: application/json: + required: + - userId + - count + - includePromotedContent + - withQuickPromoteEligibilityTweetFields + - withVoice + - withV2Timeline schema: properties: count: @@ -283,6 +364,26 @@ paths: 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: @@ -426,6 +527,29 @@ paths: 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 @@ -435,6 +559,13 @@ paths: required: true - content: application/json: + required: + - userId + - count + - includePromotedContent + - withCommunity + - withVoice + - withV2Timeline schema: properties: count: @@ -474,6 +605,26 @@ paths: 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: @@ -617,6 +768,29 @@ paths: parameters: - content: application/json: + required: + - Y + - q + - i + - E + - '3' + - J + - L + - '1' + - K + - N + - g + - f + - '9' + - n + - S + - l + - j + - Y + - d + - x + - a + - A schema: default: YqiE3JL1KNgf9nSljYdxaA example: YqiE3JL1KNgf9nSljYdxaA @@ -626,6 +800,14 @@ paths: required: true - content: application/json: + required: + - userId + - count + - includePromotedContent + - withClientEventToken + - withBirdwatchNotes + - withVoice + - withV2Timeline schema: properties: count: @@ -670,6 +852,26 @@ paths: 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: diff --git a/dist/docs/paths/v1.1-get.yaml b/dist/docs/paths/v1.1-get.yaml index 0fd9956..c828ebf 100644 --- a/dist/docs/paths/v1.1-get.yaml +++ b/dist/docs/paths/v1.1-get.yaml @@ -110,8 +110,8 @@ paths: name: user_id required: true schema: - default: '17152334' - example: '17152334' + default: '"17152334"' + example: '"17152334"' type: string - in: query name: count @@ -190,8 +190,8 @@ paths: name: q required: true schema: - default: '"aaa"' - example: '"aaa"' + default: '"test"' + example: '"test"' type: string - in: query name: src diff --git a/dist/docs/paths/v1.1-post.yaml b/dist/docs/paths/v1.1-post.yaml index e0fd515..576c093 100644 --- a/dist/docs/paths/v1.1-post.yaml +++ b/dist/docs/paths/v1.1-post.yaml @@ -103,8 +103,8 @@ paths: name: user_id required: true schema: - default: '44196397' - example: '44196397' + default: '"44196397"' + example: '"44196397"' type: string responses: '200': @@ -239,8 +239,8 @@ paths: name: user_id required: true schema: - default: '44196397' - example: '44196397' + default: '"44196397"' + example: '"44196397"' type: string responses: '200': diff --git a/dist/test/openapi-3.0.yaml b/dist/test/openapi-3.0.yaml index 621757a..cabc5dd 100644 --- a/dist/test/openapi-3.0.yaml +++ b/dist/test/openapi-3.0.yaml @@ -1,6 +1,20 @@ components: schemas: {} securitySchemes: + ActiveUser: + description: 'yes' + in: header + name: x-twitter-active-user + type: apiKey + BearerAuth: + description: AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA + scheme: bearer + type: http + ClientLanguage: + description: en + in: header + name: x-twitter-client-language + type: apiKey CookieAuthToken: description: HttpOnly cookie in: cookie @@ -16,6 +30,12 @@ components: in: header name: x-csrf-token type: apiKey + UserAgent: + description: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, + like Gecko) Chrome/112.0.0.0 Safari/537.36 + in: header + name: user-agent + type: apiKey authType: description: OAuth2Session if you are logged in in: header diff --git a/dist/test/paths/v1.1-get.yaml b/dist/test/paths/v1.1-get.yaml index d8e768a..1c5d129 100644 --- a/dist/test/paths/v1.1-get.yaml +++ b/dist/test/paths/v1.1-get.yaml @@ -110,8 +110,8 @@ paths: name: user_id required: true schema: - default: '17152334' - example: '17152334' + default: '"17152334"' + example: '"17152334"' type: object - in: query name: count @@ -190,8 +190,8 @@ paths: name: q required: true schema: - default: '"aaa"' - example: '"aaa"' + default: '"test"' + example: '"test"' type: object - in: query name: src diff --git a/dist/test/paths/v1.1-post.yaml b/dist/test/paths/v1.1-post.yaml index ee799ef..315e012 100644 --- a/dist/test/paths/v1.1-post.yaml +++ b/dist/test/paths/v1.1-post.yaml @@ -103,8 +103,8 @@ paths: name: user_id required: true schema: - default: '44196397' - example: '44196397' + default: '"44196397"' + example: '"44196397"' type: object responses: '200': @@ -239,8 +239,8 @@ paths: name: user_id required: true schema: - default: '44196397' - example: '44196397' + default: '"44196397"' + example: '"44196397"' type: object responses: '200': diff --git a/dist/typescript/openapi-3.0.yaml b/dist/typescript/openapi-3.0.yaml index 621757a..cabc5dd 100644 --- a/dist/typescript/openapi-3.0.yaml +++ b/dist/typescript/openapi-3.0.yaml @@ -1,6 +1,20 @@ components: schemas: {} securitySchemes: + ActiveUser: + description: 'yes' + in: header + name: x-twitter-active-user + type: apiKey + BearerAuth: + description: AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA + scheme: bearer + type: http + ClientLanguage: + description: en + in: header + name: x-twitter-client-language + type: apiKey CookieAuthToken: description: HttpOnly cookie in: cookie @@ -16,6 +30,12 @@ components: in: header name: x-csrf-token type: apiKey + UserAgent: + description: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, + like Gecko) Chrome/112.0.0.0 Safari/537.36 + in: header + name: user-agent + type: apiKey authType: description: OAuth2Session if you are logged in in: header diff --git a/dist/typescript/paths/v1.1-get.yaml b/dist/typescript/paths/v1.1-get.yaml index d8e768a..1c5d129 100644 --- a/dist/typescript/paths/v1.1-get.yaml +++ b/dist/typescript/paths/v1.1-get.yaml @@ -110,8 +110,8 @@ paths: name: user_id required: true schema: - default: '17152334' - example: '17152334' + default: '"17152334"' + example: '"17152334"' type: object - in: query name: count @@ -190,8 +190,8 @@ paths: name: q required: true schema: - default: '"aaa"' - example: '"aaa"' + default: '"test"' + example: '"test"' type: object - in: query name: src diff --git a/dist/typescript/paths/v1.1-post.yaml b/dist/typescript/paths/v1.1-post.yaml index ee799ef..315e012 100644 --- a/dist/typescript/paths/v1.1-post.yaml +++ b/dist/typescript/paths/v1.1-post.yaml @@ -103,8 +103,8 @@ paths: name: user_id required: true schema: - default: '44196397' - example: '44196397' + default: '"44196397"' + example: '"44196397"' type: object responses: '200': @@ -239,8 +239,8 @@ paths: name: user_id required: true schema: - default: '44196397' - example: '44196397' + default: '"44196397"' + example: '"44196397"' type: object responses: '200':