From 92b54baa5889925e4b991c81eae48ba252e744be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Fri, 5 May 2023 21:11:23 +0900 Subject: [PATCH] build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- dist/dart/openapi-3.0.yaml | 22 +- dist/dart/paths/follow.yaml | 4 +- dist/dart/paths/{v1.1.yaml => v1.1-get.yaml} | 115 ++++++- dist/dart/paths/v1.1-post.yaml | 277 ++++++++++++++++ dist/dart/paths/v2.0-get.yaml | 302 ++++++++++++++++++ dist/docs/openapi-3.0.yaml | 22 +- dist/docs/paths/follow.yaml | 4 +- dist/docs/paths/post.yaml | 5 - dist/docs/paths/profile.yaml | 1 - dist/docs/paths/{v1.1.yaml => v1.1-get.yaml} | 115 ++++++- dist/docs/paths/v1.1-post.yaml | 277 ++++++++++++++++ dist/docs/paths/v2.0-get.yaml | 302 ++++++++++++++++++ dist/test/openapi-3.0.yaml | 22 +- dist/test/paths/follow.yaml | 4 +- .../v1.1.yaml => test/paths/v1.1-get.yaml} | 115 ++++++- dist/test/paths/v1.1-post.yaml | 277 ++++++++++++++++ dist/test/paths/v1.1.yaml | 141 -------- dist/test/paths/v2.0-get.yaml | 302 ++++++++++++++++++ dist/typescript/openapi-3.0.yaml | 22 +- dist/typescript/paths/follow.yaml | 4 +- dist/typescript/paths/v1.1-get.yaml | 242 ++++++++++++++ dist/typescript/paths/v1.1-post.yaml | 277 ++++++++++++++++ dist/typescript/paths/v2.0-get.yaml | 302 ++++++++++++++++++ 23 files changed, 2962 insertions(+), 192 deletions(-) rename dist/dart/paths/{v1.1.yaml => v1.1-get.yaml} (54%) create mode 100644 dist/dart/paths/v1.1-post.yaml create mode 100644 dist/dart/paths/v2.0-get.yaml rename dist/docs/paths/{v1.1.yaml => v1.1-get.yaml} (54%) create mode 100644 dist/docs/paths/v1.1-post.yaml create mode 100644 dist/docs/paths/v2.0-get.yaml rename dist/{typescript/paths/v1.1.yaml => test/paths/v1.1-get.yaml} (54%) create mode 100644 dist/test/paths/v1.1-post.yaml delete mode 100644 dist/test/paths/v1.1.yaml create mode 100644 dist/test/paths/v2.0-get.yaml create mode 100644 dist/typescript/paths/v1.1-get.yaml create mode 100644 dist/typescript/paths/v1.1-post.yaml create mode 100644 dist/typescript/paths/v2.0-get.yaml diff --git a/dist/dart/openapi-3.0.yaml b/dist/dart/openapi-3.0.yaml index a9efd4c..d233697 100644 --- a/dist/dart/openapi-3.0.yaml +++ b/dist/dart/openapi-3.0.yaml @@ -33,8 +33,16 @@ info: version: 0.0.1 openapi: 3.0.3 paths: + /1.1/friends/following/list.json: + $ref: ./paths/v1.1-get.yaml#/paths/~11.1~1friends~1following~1list.json /1.1/friendships/create.json: - $ref: ./paths/v1.1.yaml#/paths/~11.1~1friendships~1create.json + $ref: ./paths/v1.1-post.yaml#/paths/~11.1~1friendships~1create.json + /1.1/friendships/destroy.json: + $ref: ./paths/v1.1-post.yaml#/paths/~11.1~1friendships~1destroy.json + /1.1/search/typeahead.json: + $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: @@ -87,10 +95,16 @@ tags: - description: response User name: user - description: response User list - name: userList + name: user-list - description: response tweet name: tweet - description: post name: post -- description: legacy APIs - name: v1.1 +- description: legacy APIs get + name: v1.1-get +- description: legacy APIs post + name: v1.1-post +- description: legacy APIs get + name: v2-get +- description: legacy APIs post + name: v2-post diff --git a/dist/dart/paths/follow.yaml b/dist/dart/paths/follow.yaml index e4b63a7..bb31433 100644 --- a/dist/dart/paths/follow.yaml +++ b/dist/dart/paths/follow.yaml @@ -148,7 +148,7 @@ paths: schema: type: string tags: - - userList + - user-list /graphql/djdTXDIk2qhd4OStqlUFeQ/Followers: get: description: get user list of followers @@ -259,4 +259,4 @@ paths: schema: type: string tags: - - userList + - user-list diff --git a/dist/dart/paths/v1.1.yaml b/dist/dart/paths/v1.1-get.yaml similarity index 54% rename from dist/dart/paths/v1.1.yaml rename to dist/dart/paths/v1.1-get.yaml index ed5a1fa..d8e768a 100644 --- a/dist/dart/paths/v1.1.yaml +++ b/dist/dart/paths/v1.1-get.yaml @@ -3,10 +3,10 @@ info: version: 0.0.1 openapi: 3.0.3 paths: - /1.1/friendships/create.json: - post: - description: post create friendships - operationId: postCreateFriendships + /1.1/friends/following/list.json: + get: + description: get friends following list + operationId: getFriendsFollowingList parameters: - in: query name: include_profile_interstitial_type @@ -99,12 +99,33 @@ paths: default: '1' example: '1' type: object + - in: query + name: cursor + required: true + schema: + default: '-1' + example: '-1' + type: object - in: query name: user_id required: true schema: - default: '1180389371481976833' - example: '1180389371481976833' + default: '17152334' + example: '17152334' + type: object + - in: query + name: count + required: true + schema: + default: '3' + example: '3' + type: object + - in: query + name: with_total_count + required: true + schema: + default: 'true' + example: 'true' type: object responses: '200': @@ -138,4 +159,84 @@ paths: schema: type: string tags: - - v1.1 + - v1.1-get + /1.1/search/typeahead.json: + get: + description: get search typeahead + operationId: getSearchTypeahead + parameters: + - in: query + name: include_ext_is_blue_verified + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_ext_verified_type + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_ext_profile_image_shape + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: q + required: true + schema: + default: '"aaa"' + example: '"aaa"' + type: object + - in: query + name: src + required: true + schema: + default: '"search_box"' + example: '"search_box"' + type: object + - in: query + name: result_type + required: true + schema: + default: '"events,users,topics"' + example: '"events,users,topics"' + type: object + responses: + '200': + description: Successful operation + headers: + status: + schema: + type: string + x-access-level: + schema: + type: string + x-client-event-enabled: + schema: + type: boolean + x-connection-hash: + schema: + type: string + x-content-type-options: + schema: + type: string + x-response-time: + schema: + type: integer + x-transaction: + schema: + type: string + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + tags: + - v1.1-get diff --git a/dist/dart/paths/v1.1-post.yaml b/dist/dart/paths/v1.1-post.yaml new file mode 100644 index 0000000..ee799ef --- /dev/null +++ b/dist/dart/paths/v1.1-post.yaml @@ -0,0 +1,277 @@ +info: + title: Twitter OpenAPI + version: 0.0.1 +openapi: 3.0.3 +paths: + /1.1/friendships/create.json: + post: + description: post create friendships + operationId: postCreateFriendships + parameters: + - in: query + name: include_profile_interstitial_type + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_blocking + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_blocked_by + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_followed_by + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_want_retweets + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_mute_edge + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_can_dm + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_can_media_tag + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_ext_has_nft_avatar + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_ext_is_blue_verified + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_ext_verified_type + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_ext_profile_image_shape + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: skip_status + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: user_id + required: true + schema: + default: '44196397' + example: '44196397' + type: object + responses: + '200': + description: Successful operation + headers: + status: + schema: + type: string + x-access-level: + schema: + type: string + x-client-event-enabled: + schema: + type: boolean + x-connection-hash: + schema: + type: string + x-content-type-options: + schema: + type: string + x-response-time: + schema: + type: integer + x-transaction: + schema: + type: string + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + tags: + - v1.1-post + /1.1/friendships/destroy.json: + post: + description: post destroy friendships + operationId: postDestroyFriendships + parameters: + - in: query + name: include_profile_interstitial_type + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_blocking + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_blocked_by + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_followed_by + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_want_retweets + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_mute_edge + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_can_dm + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_can_media_tag + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_ext_has_nft_avatar + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_ext_is_blue_verified + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_ext_verified_type + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_ext_profile_image_shape + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: skip_status + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: user_id + required: true + schema: + default: '44196397' + example: '44196397' + type: object + responses: + '200': + description: Successful operation + headers: + status: + schema: + type: string + x-access-level: + schema: + type: string + x-client-event-enabled: + schema: + type: boolean + x-connection-hash: + schema: + type: string + x-content-type-options: + schema: + type: string + x-response-time: + schema: + type: integer + x-transaction: + schema: + type: string + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + tags: + - v1.1-post diff --git a/dist/dart/paths/v2.0-get.yaml b/dist/dart/paths/v2.0-get.yaml new file mode 100644 index 0000000..881694a --- /dev/null +++ b/dist/dart/paths/v2.0-get.yaml @@ -0,0 +1,302 @@ +info: + title: Twitter OpenAPI + version: 0.0.1 +openapi: 3.0.3 +paths: + /2/search/adaptive.json: + get: + description: get search adaptive + operationId: getSearchAdaptive + parameters: + - in: query + name: include_profile_interstitial_type + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_blocking + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_blocked_by + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_followed_by + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_want_retweets + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_mute_edge + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_can_dm + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_can_media_tag + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_ext_has_nft_avatar + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_ext_is_blue_verified + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_ext_verified_type + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_ext_profile_image_shape + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: skip_status + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: cards_platform + required: true + schema: + default: '"Web-12"' + example: '"Web-12"' + type: object + - in: query + name: include_cards + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_ext_alt_text + required: true + schema: + default: 'true' + example: 'true' + type: object + - in: query + name: include_ext_limited_action_results + required: true + schema: + default: 'false' + example: 'false' + type: object + - in: query + name: include_quote_count + required: true + schema: + default: 'true' + example: 'true' + type: object + - in: query + name: include_reply_count + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: tweet_mode + required: true + schema: + default: '"extended"' + example: '"extended"' + type: object + - in: query + name: include_ext_views + required: true + schema: + default: 'true' + example: 'true' + type: object + - in: query + name: include_entities + required: true + schema: + default: 'true' + example: 'true' + type: object + - in: query + name: include_user_entities + required: true + schema: + default: 'true' + example: 'true' + type: object + - in: query + name: include_ext_media_color + required: true + schema: + default: 'true' + example: 'true' + type: object + - in: query + name: include_ext_media_availability + required: true + schema: + default: 'true' + example: 'true' + type: object + - in: query + name: include_ext_sensitive_media_warning + required: true + schema: + default: 'true' + example: 'true' + type: object + - in: query + name: include_ext_trusted_friends_metadata + required: true + schema: + default: 'true' + example: 'true' + type: object + - in: query + name: send_error_codes + required: true + schema: + default: 'true' + example: 'true' + type: object + - in: query + name: simple_quoted_tweet + required: true + schema: + default: 'true' + example: 'true' + type: object + - in: query + name: q + required: true + schema: + default: '"elon musk"' + example: '"elon musk"' + type: object + - in: query + name: query_source + required: true + schema: + default: '"trend_click"' + example: '"trend_click"' + type: object + - in: query + name: count + required: true + schema: + default: '20' + example: '20' + type: object + - in: query + name: requestContext + required: true + schema: + default: '"launch"' + example: '"launch"' + type: object + - in: query + name: pc + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: spelling_corrections + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_ext_edit_control + required: true + schema: + default: 'true' + example: 'true' + type: object + - in: query + name: ext + required: true + schema: + default: '"mediaStats,highlightedLabel,hasNftAvatar,voiceInfo,birdwatchPivot,enrichments,superFollowMetadata,unmentionInfo,editControl,vibe"' + example: '"mediaStats,highlightedLabel,hasNftAvatar,voiceInfo,birdwatchPivot,enrichments,superFollowMetadata,unmentionInfo,editControl,vibe"' + type: object + responses: + '200': + description: Successful operation + headers: + status: + schema: + type: string + x-access-level: + schema: + type: string + x-client-event-enabled: + schema: + type: boolean + x-connection-hash: + schema: + type: string + x-content-type-options: + schema: + type: string + x-response-time: + schema: + type: integer + x-transaction: + schema: + type: string + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + tags: + - v2.0-get diff --git a/dist/docs/openapi-3.0.yaml b/dist/docs/openapi-3.0.yaml index a9efd4c..d233697 100644 --- a/dist/docs/openapi-3.0.yaml +++ b/dist/docs/openapi-3.0.yaml @@ -33,8 +33,16 @@ info: version: 0.0.1 openapi: 3.0.3 paths: + /1.1/friends/following/list.json: + $ref: ./paths/v1.1-get.yaml#/paths/~11.1~1friends~1following~1list.json /1.1/friendships/create.json: - $ref: ./paths/v1.1.yaml#/paths/~11.1~1friendships~1create.json + $ref: ./paths/v1.1-post.yaml#/paths/~11.1~1friendships~1create.json + /1.1/friendships/destroy.json: + $ref: ./paths/v1.1-post.yaml#/paths/~11.1~1friendships~1destroy.json + /1.1/search/typeahead.json: + $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: @@ -87,10 +95,16 @@ tags: - description: response User name: user - description: response User list - name: userList + name: user-list - description: response tweet name: tweet - description: post name: post -- description: legacy APIs - name: v1.1 +- description: legacy APIs get + name: v1.1-get +- description: legacy APIs post + name: v1.1-post +- description: legacy APIs get + name: v2-get +- description: legacy APIs post + name: v2-post diff --git a/dist/docs/paths/follow.yaml b/dist/docs/paths/follow.yaml index 5e44be8..7ccdfc3 100644 --- a/dist/docs/paths/follow.yaml +++ b/dist/docs/paths/follow.yaml @@ -213,7 +213,7 @@ paths: schema: type: string tags: - - userList + - user-list /graphql/djdTXDIk2qhd4OStqlUFeQ/Followers: get: description: get user list of followers @@ -389,4 +389,4 @@ paths: schema: type: string tags: - - userList + - user-list diff --git a/dist/docs/paths/post.yaml b/dist/docs/paths/post.yaml index 2fc6fb8..7fce902 100644 --- a/dist/docs/paths/post.yaml +++ b/dist/docs/paths/post.yaml @@ -350,7 +350,6 @@ paths: required: true schema: properties: {} - required: [] type: object responses: '200': @@ -405,7 +404,6 @@ paths: properties: features: properties: {} - required: [] type: object variables: properties: @@ -473,7 +471,6 @@ paths: properties: features: properties: {} - required: [] type: object variables: properties: @@ -541,7 +538,6 @@ paths: properties: features: properties: {} - required: [] type: object variables: properties: @@ -609,7 +605,6 @@ paths: properties: features: properties: {} - required: [] type: object variables: properties: diff --git a/dist/docs/paths/profile.yaml b/dist/docs/paths/profile.yaml index 0fb34b6..c4b1546 100644 --- a/dist/docs/paths/profile.yaml +++ b/dist/docs/paths/profile.yaml @@ -95,7 +95,6 @@ paths: application/json: schema: properties: {} - required: [] type: object in: query name: features diff --git a/dist/docs/paths/v1.1.yaml b/dist/docs/paths/v1.1-get.yaml similarity index 54% rename from dist/docs/paths/v1.1.yaml rename to dist/docs/paths/v1.1-get.yaml index fb96227..3465ade 100644 --- a/dist/docs/paths/v1.1.yaml +++ b/dist/docs/paths/v1.1-get.yaml @@ -3,10 +3,10 @@ info: version: 0.0.1 openapi: 3.0.3 paths: - /1.1/friendships/create.json: - post: - description: post create friendships - operationId: postCreateFriendships + /1.1/friends/following/list.json: + get: + description: get friends following list + operationId: getFriendsFollowingList parameters: - in: query name: include_profile_interstitial_type @@ -99,13 +99,34 @@ paths: default: 1 example: 1 type: integer + - in: query + name: cursor + required: true + schema: + default: -1 + example: -1 + type: integer - in: query name: user_id required: true schema: - default: 1180389371481976833 - example: 1180389371481976833 + default: 17152334 + example: 17152334 type: integer + - in: query + name: count + required: true + schema: + default: 3 + example: 3 + type: integer + - in: query + name: with_total_count + required: true + schema: + default: true + example: true + type: boolean responses: '200': description: Successful operation @@ -138,4 +159,84 @@ paths: schema: type: string tags: - - v1.1 + - v1.1-get + /1.1/search/typeahead.json: + get: + description: get search typeahead + operationId: getSearchTypeahead + parameters: + - in: query + name: include_ext_is_blue_verified + required: true + schema: + default: 1 + example: 1 + type: integer + - in: query + name: include_ext_verified_type + required: true + schema: + default: 1 + example: 1 + type: integer + - in: query + name: include_ext_profile_image_shape + required: true + schema: + default: 1 + example: 1 + type: integer + - in: query + name: q + required: true + schema: + default: aaa + example: aaa + type: string + - in: query + name: src + required: true + schema: + default: search_box + example: search_box + type: string + - in: query + name: result_type + required: true + schema: + default: events,users,topics + example: events,users,topics + type: string + responses: + '200': + description: Successful operation + headers: + status: + schema: + type: string + x-access-level: + schema: + type: string + x-client-event-enabled: + schema: + type: boolean + x-connection-hash: + schema: + type: string + x-content-type-options: + schema: + type: string + x-response-time: + schema: + type: integer + x-transaction: + schema: + type: string + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + tags: + - v1.1-get diff --git a/dist/docs/paths/v1.1-post.yaml b/dist/docs/paths/v1.1-post.yaml new file mode 100644 index 0000000..00aef52 --- /dev/null +++ b/dist/docs/paths/v1.1-post.yaml @@ -0,0 +1,277 @@ +info: + title: Twitter OpenAPI + version: 0.0.1 +openapi: 3.0.3 +paths: + /1.1/friendships/create.json: + post: + description: post create friendships + operationId: postCreateFriendships + parameters: + - in: query + name: include_profile_interstitial_type + required: true + schema: + default: 1 + example: 1 + type: integer + - in: query + name: include_blocking + required: true + schema: + default: 1 + example: 1 + type: integer + - in: query + name: include_blocked_by + required: true + schema: + default: 1 + example: 1 + type: integer + - in: query + name: include_followed_by + required: true + schema: + default: 1 + example: 1 + type: integer + - in: query + name: include_want_retweets + required: true + schema: + default: 1 + example: 1 + type: integer + - in: query + name: include_mute_edge + required: true + schema: + default: 1 + example: 1 + type: integer + - in: query + name: include_can_dm + required: true + schema: + default: 1 + example: 1 + type: integer + - in: query + name: include_can_media_tag + required: true + schema: + default: 1 + example: 1 + type: integer + - in: query + name: include_ext_has_nft_avatar + required: true + schema: + default: 1 + example: 1 + type: integer + - in: query + name: include_ext_is_blue_verified + required: true + schema: + default: 1 + example: 1 + type: integer + - in: query + name: include_ext_verified_type + required: true + schema: + default: 1 + example: 1 + type: integer + - in: query + name: include_ext_profile_image_shape + required: true + schema: + default: 1 + example: 1 + type: integer + - in: query + name: skip_status + required: true + schema: + default: 1 + example: 1 + type: integer + - in: query + name: user_id + required: true + schema: + default: 44196397 + example: 44196397 + type: integer + responses: + '200': + description: Successful operation + headers: + status: + schema: + type: string + x-access-level: + schema: + type: string + x-client-event-enabled: + schema: + type: boolean + x-connection-hash: + schema: + type: string + x-content-type-options: + schema: + type: string + x-response-time: + schema: + type: integer + x-transaction: + schema: + type: string + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + tags: + - v1.1-post + /1.1/friendships/destroy.json: + post: + description: post destroy friendships + operationId: postDestroyFriendships + parameters: + - in: query + name: include_profile_interstitial_type + required: true + schema: + default: 1 + example: 1 + type: integer + - in: query + name: include_blocking + required: true + schema: + default: 1 + example: 1 + type: integer + - in: query + name: include_blocked_by + required: true + schema: + default: 1 + example: 1 + type: integer + - in: query + name: include_followed_by + required: true + schema: + default: 1 + example: 1 + type: integer + - in: query + name: include_want_retweets + required: true + schema: + default: 1 + example: 1 + type: integer + - in: query + name: include_mute_edge + required: true + schema: + default: 1 + example: 1 + type: integer + - in: query + name: include_can_dm + required: true + schema: + default: 1 + example: 1 + type: integer + - in: query + name: include_can_media_tag + required: true + schema: + default: 1 + example: 1 + type: integer + - in: query + name: include_ext_has_nft_avatar + required: true + schema: + default: 1 + example: 1 + type: integer + - in: query + name: include_ext_is_blue_verified + required: true + schema: + default: 1 + example: 1 + type: integer + - in: query + name: include_ext_verified_type + required: true + schema: + default: 1 + example: 1 + type: integer + - in: query + name: include_ext_profile_image_shape + required: true + schema: + default: 1 + example: 1 + type: integer + - in: query + name: skip_status + required: true + schema: + default: 1 + example: 1 + type: integer + - in: query + name: user_id + required: true + schema: + default: 44196397 + example: 44196397 + type: integer + responses: + '200': + description: Successful operation + headers: + status: + schema: + type: string + x-access-level: + schema: + type: string + x-client-event-enabled: + schema: + type: boolean + x-connection-hash: + schema: + type: string + x-content-type-options: + schema: + type: string + x-response-time: + schema: + type: integer + x-transaction: + schema: + type: string + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + tags: + - v1.1-post diff --git a/dist/docs/paths/v2.0-get.yaml b/dist/docs/paths/v2.0-get.yaml new file mode 100644 index 0000000..9c39865 --- /dev/null +++ b/dist/docs/paths/v2.0-get.yaml @@ -0,0 +1,302 @@ +info: + title: Twitter OpenAPI + version: 0.0.1 +openapi: 3.0.3 +paths: + /2/search/adaptive.json: + get: + description: get search adaptive + operationId: getSearchAdaptive + parameters: + - in: query + name: include_profile_interstitial_type + required: true + schema: + default: 1 + example: 1 + type: integer + - in: query + name: include_blocking + required: true + schema: + default: 1 + example: 1 + type: integer + - in: query + name: include_blocked_by + required: true + schema: + default: 1 + example: 1 + type: integer + - in: query + name: include_followed_by + required: true + schema: + default: 1 + example: 1 + type: integer + - in: query + name: include_want_retweets + required: true + schema: + default: 1 + example: 1 + type: integer + - in: query + name: include_mute_edge + required: true + schema: + default: 1 + example: 1 + type: integer + - in: query + name: include_can_dm + required: true + schema: + default: 1 + example: 1 + type: integer + - in: query + name: include_can_media_tag + required: true + schema: + default: 1 + example: 1 + type: integer + - in: query + name: include_ext_has_nft_avatar + required: true + schema: + default: 1 + example: 1 + type: integer + - in: query + name: include_ext_is_blue_verified + required: true + schema: + default: 1 + example: 1 + type: integer + - in: query + name: include_ext_verified_type + required: true + schema: + default: 1 + example: 1 + type: integer + - in: query + name: include_ext_profile_image_shape + required: true + schema: + default: 1 + example: 1 + type: integer + - in: query + name: skip_status + required: true + schema: + default: 1 + example: 1 + type: integer + - in: query + name: cards_platform + required: true + schema: + default: Web-12 + example: Web-12 + type: string + - in: query + name: include_cards + required: true + schema: + default: 1 + example: 1 + type: integer + - in: query + name: include_ext_alt_text + required: true + schema: + default: true + example: true + type: boolean + - in: query + name: include_ext_limited_action_results + required: true + schema: + default: false + example: false + type: boolean + - in: query + name: include_quote_count + required: true + schema: + default: true + example: true + type: boolean + - in: query + name: include_reply_count + required: true + schema: + default: 1 + example: 1 + type: integer + - in: query + name: tweet_mode + required: true + schema: + default: extended + example: extended + type: string + - in: query + name: include_ext_views + required: true + schema: + default: true + example: true + type: boolean + - in: query + name: include_entities + required: true + schema: + default: true + example: true + type: boolean + - in: query + name: include_user_entities + required: true + schema: + default: true + example: true + type: boolean + - in: query + name: include_ext_media_color + required: true + schema: + default: true + example: true + type: boolean + - in: query + name: include_ext_media_availability + required: true + schema: + default: true + example: true + type: boolean + - in: query + name: include_ext_sensitive_media_warning + required: true + schema: + default: true + example: true + type: boolean + - in: query + name: include_ext_trusted_friends_metadata + required: true + schema: + default: true + example: true + type: boolean + - in: query + name: send_error_codes + required: true + schema: + default: true + example: true + type: boolean + - in: query + name: simple_quoted_tweet + required: true + schema: + default: true + example: true + type: boolean + - in: query + name: q + required: true + schema: + default: elon musk + example: elon musk + type: string + - in: query + name: query_source + required: true + schema: + default: trend_click + example: trend_click + type: string + - in: query + name: count + required: true + schema: + default: 20 + example: 20 + type: integer + - in: query + name: requestContext + required: true + schema: + default: launch + example: launch + type: string + - in: query + name: pc + required: true + schema: + default: 1 + example: 1 + type: integer + - in: query + name: spelling_corrections + required: true + schema: + default: 1 + example: 1 + type: integer + - in: query + name: include_ext_edit_control + required: true + schema: + default: true + example: true + type: boolean + - in: query + name: ext + required: true + schema: + default: mediaStats,highlightedLabel,hasNftAvatar,voiceInfo,birdwatchPivot,enrichments,superFollowMetadata,unmentionInfo,editControl,vibe + example: mediaStats,highlightedLabel,hasNftAvatar,voiceInfo,birdwatchPivot,enrichments,superFollowMetadata,unmentionInfo,editControl,vibe + type: string + responses: + '200': + description: Successful operation + headers: + status: + schema: + type: string + x-access-level: + schema: + type: string + x-client-event-enabled: + schema: + type: boolean + x-connection-hash: + schema: + type: string + x-content-type-options: + schema: + type: string + x-response-time: + schema: + type: integer + x-transaction: + schema: + type: string + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + tags: + - v2.0-get diff --git a/dist/test/openapi-3.0.yaml b/dist/test/openapi-3.0.yaml index a9efd4c..d233697 100644 --- a/dist/test/openapi-3.0.yaml +++ b/dist/test/openapi-3.0.yaml @@ -33,8 +33,16 @@ info: version: 0.0.1 openapi: 3.0.3 paths: + /1.1/friends/following/list.json: + $ref: ./paths/v1.1-get.yaml#/paths/~11.1~1friends~1following~1list.json /1.1/friendships/create.json: - $ref: ./paths/v1.1.yaml#/paths/~11.1~1friendships~1create.json + $ref: ./paths/v1.1-post.yaml#/paths/~11.1~1friendships~1create.json + /1.1/friendships/destroy.json: + $ref: ./paths/v1.1-post.yaml#/paths/~11.1~1friendships~1destroy.json + /1.1/search/typeahead.json: + $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: @@ -87,10 +95,16 @@ tags: - description: response User name: user - description: response User list - name: userList + name: user-list - description: response tweet name: tweet - description: post name: post -- description: legacy APIs - name: v1.1 +- description: legacy APIs get + name: v1.1-get +- description: legacy APIs post + name: v1.1-post +- description: legacy APIs get + name: v2-get +- description: legacy APIs post + name: v2-post diff --git a/dist/test/paths/follow.yaml b/dist/test/paths/follow.yaml index a7dd0b7..8af2a42 100644 --- a/dist/test/paths/follow.yaml +++ b/dist/test/paths/follow.yaml @@ -119,7 +119,7 @@ paths: schema: type: string tags: - - userList + - user-list /graphql/djdTXDIk2qhd4OStqlUFeQ/Followers: get: description: get user list of followers @@ -201,4 +201,4 @@ paths: schema: type: string tags: - - userList + - user-list diff --git a/dist/typescript/paths/v1.1.yaml b/dist/test/paths/v1.1-get.yaml similarity index 54% rename from dist/typescript/paths/v1.1.yaml rename to dist/test/paths/v1.1-get.yaml index ed5a1fa..d8e768a 100644 --- a/dist/typescript/paths/v1.1.yaml +++ b/dist/test/paths/v1.1-get.yaml @@ -3,10 +3,10 @@ info: version: 0.0.1 openapi: 3.0.3 paths: - /1.1/friendships/create.json: - post: - description: post create friendships - operationId: postCreateFriendships + /1.1/friends/following/list.json: + get: + description: get friends following list + operationId: getFriendsFollowingList parameters: - in: query name: include_profile_interstitial_type @@ -99,12 +99,33 @@ paths: default: '1' example: '1' type: object + - in: query + name: cursor + required: true + schema: + default: '-1' + example: '-1' + type: object - in: query name: user_id required: true schema: - default: '1180389371481976833' - example: '1180389371481976833' + default: '17152334' + example: '17152334' + type: object + - in: query + name: count + required: true + schema: + default: '3' + example: '3' + type: object + - in: query + name: with_total_count + required: true + schema: + default: 'true' + example: 'true' type: object responses: '200': @@ -138,4 +159,84 @@ paths: schema: type: string tags: - - v1.1 + - v1.1-get + /1.1/search/typeahead.json: + get: + description: get search typeahead + operationId: getSearchTypeahead + parameters: + - in: query + name: include_ext_is_blue_verified + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_ext_verified_type + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_ext_profile_image_shape + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: q + required: true + schema: + default: '"aaa"' + example: '"aaa"' + type: object + - in: query + name: src + required: true + schema: + default: '"search_box"' + example: '"search_box"' + type: object + - in: query + name: result_type + required: true + schema: + default: '"events,users,topics"' + example: '"events,users,topics"' + type: object + responses: + '200': + description: Successful operation + headers: + status: + schema: + type: string + x-access-level: + schema: + type: string + x-client-event-enabled: + schema: + type: boolean + x-connection-hash: + schema: + type: string + x-content-type-options: + schema: + type: string + x-response-time: + schema: + type: integer + x-transaction: + schema: + type: string + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + tags: + - v1.1-get diff --git a/dist/test/paths/v1.1-post.yaml b/dist/test/paths/v1.1-post.yaml new file mode 100644 index 0000000..ee799ef --- /dev/null +++ b/dist/test/paths/v1.1-post.yaml @@ -0,0 +1,277 @@ +info: + title: Twitter OpenAPI + version: 0.0.1 +openapi: 3.0.3 +paths: + /1.1/friendships/create.json: + post: + description: post create friendships + operationId: postCreateFriendships + parameters: + - in: query + name: include_profile_interstitial_type + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_blocking + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_blocked_by + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_followed_by + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_want_retweets + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_mute_edge + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_can_dm + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_can_media_tag + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_ext_has_nft_avatar + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_ext_is_blue_verified + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_ext_verified_type + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_ext_profile_image_shape + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: skip_status + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: user_id + required: true + schema: + default: '44196397' + example: '44196397' + type: object + responses: + '200': + description: Successful operation + headers: + status: + schema: + type: string + x-access-level: + schema: + type: string + x-client-event-enabled: + schema: + type: boolean + x-connection-hash: + schema: + type: string + x-content-type-options: + schema: + type: string + x-response-time: + schema: + type: integer + x-transaction: + schema: + type: string + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + tags: + - v1.1-post + /1.1/friendships/destroy.json: + post: + description: post destroy friendships + operationId: postDestroyFriendships + parameters: + - in: query + name: include_profile_interstitial_type + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_blocking + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_blocked_by + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_followed_by + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_want_retweets + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_mute_edge + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_can_dm + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_can_media_tag + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_ext_has_nft_avatar + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_ext_is_blue_verified + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_ext_verified_type + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_ext_profile_image_shape + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: skip_status + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: user_id + required: true + schema: + default: '44196397' + example: '44196397' + type: object + responses: + '200': + description: Successful operation + headers: + status: + schema: + type: string + x-access-level: + schema: + type: string + x-client-event-enabled: + schema: + type: boolean + x-connection-hash: + schema: + type: string + x-content-type-options: + schema: + type: string + x-response-time: + schema: + type: integer + x-transaction: + schema: + type: string + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + tags: + - v1.1-post diff --git a/dist/test/paths/v1.1.yaml b/dist/test/paths/v1.1.yaml deleted file mode 100644 index fa406a7..0000000 --- a/dist/test/paths/v1.1.yaml +++ /dev/null @@ -1,141 +0,0 @@ -info: - title: Twitter OpenAPI - version: 0.0.1 -openapi: 3.0.3 -paths: - /1.1/friendships/create.json: - post: - description: post create friendships - operationId: postCreateFriendships - parameters: - - in: query - name: include_profile_interstitial_type - required: true - schema: - default: '1' - example: '1' - type: string - - in: query - name: include_blocking - required: true - schema: - default: '1' - example: '1' - type: string - - in: query - name: include_blocked_by - required: true - schema: - default: '1' - example: '1' - type: string - - in: query - name: include_followed_by - required: true - schema: - default: '1' - example: '1' - type: string - - in: query - name: include_want_retweets - required: true - schema: - default: '1' - example: '1' - type: string - - in: query - name: include_mute_edge - required: true - schema: - default: '1' - example: '1' - type: string - - in: query - name: include_can_dm - required: true - schema: - default: '1' - example: '1' - type: string - - in: query - name: include_can_media_tag - required: true - schema: - default: '1' - example: '1' - type: string - - in: query - name: include_ext_has_nft_avatar - required: true - schema: - default: '1' - example: '1' - type: string - - in: query - name: include_ext_is_blue_verified - required: true - schema: - default: '1' - example: '1' - type: string - - in: query - name: include_ext_verified_type - required: true - schema: - default: '1' - example: '1' - type: string - - in: query - name: include_ext_profile_image_shape - required: true - schema: - default: '1' - example: '1' - type: string - - in: query - name: skip_status - required: true - schema: - default: '1' - example: '1' - type: string - - in: query - name: user_id - required: true - schema: - default: '1180389371481976833' - example: '1180389371481976833' - type: string - responses: - '200': - description: Successful operation - headers: - status: - schema: - type: string - x-access-level: - schema: - type: string - x-client-event-enabled: - schema: - type: boolean - x-connection-hash: - schema: - type: string - x-content-type-options: - schema: - type: string - x-response-time: - schema: - type: integer - x-transaction: - schema: - type: string - x-transaction-id: - schema: - type: string - x-twitter-response-tags: - schema: - type: string - tags: - - v1.1 diff --git a/dist/test/paths/v2.0-get.yaml b/dist/test/paths/v2.0-get.yaml new file mode 100644 index 0000000..881694a --- /dev/null +++ b/dist/test/paths/v2.0-get.yaml @@ -0,0 +1,302 @@ +info: + title: Twitter OpenAPI + version: 0.0.1 +openapi: 3.0.3 +paths: + /2/search/adaptive.json: + get: + description: get search adaptive + operationId: getSearchAdaptive + parameters: + - in: query + name: include_profile_interstitial_type + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_blocking + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_blocked_by + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_followed_by + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_want_retweets + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_mute_edge + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_can_dm + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_can_media_tag + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_ext_has_nft_avatar + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_ext_is_blue_verified + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_ext_verified_type + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_ext_profile_image_shape + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: skip_status + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: cards_platform + required: true + schema: + default: '"Web-12"' + example: '"Web-12"' + type: object + - in: query + name: include_cards + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_ext_alt_text + required: true + schema: + default: 'true' + example: 'true' + type: object + - in: query + name: include_ext_limited_action_results + required: true + schema: + default: 'false' + example: 'false' + type: object + - in: query + name: include_quote_count + required: true + schema: + default: 'true' + example: 'true' + type: object + - in: query + name: include_reply_count + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: tweet_mode + required: true + schema: + default: '"extended"' + example: '"extended"' + type: object + - in: query + name: include_ext_views + required: true + schema: + default: 'true' + example: 'true' + type: object + - in: query + name: include_entities + required: true + schema: + default: 'true' + example: 'true' + type: object + - in: query + name: include_user_entities + required: true + schema: + default: 'true' + example: 'true' + type: object + - in: query + name: include_ext_media_color + required: true + schema: + default: 'true' + example: 'true' + type: object + - in: query + name: include_ext_media_availability + required: true + schema: + default: 'true' + example: 'true' + type: object + - in: query + name: include_ext_sensitive_media_warning + required: true + schema: + default: 'true' + example: 'true' + type: object + - in: query + name: include_ext_trusted_friends_metadata + required: true + schema: + default: 'true' + example: 'true' + type: object + - in: query + name: send_error_codes + required: true + schema: + default: 'true' + example: 'true' + type: object + - in: query + name: simple_quoted_tweet + required: true + schema: + default: 'true' + example: 'true' + type: object + - in: query + name: q + required: true + schema: + default: '"elon musk"' + example: '"elon musk"' + type: object + - in: query + name: query_source + required: true + schema: + default: '"trend_click"' + example: '"trend_click"' + type: object + - in: query + name: count + required: true + schema: + default: '20' + example: '20' + type: object + - in: query + name: requestContext + required: true + schema: + default: '"launch"' + example: '"launch"' + type: object + - in: query + name: pc + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: spelling_corrections + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_ext_edit_control + required: true + schema: + default: 'true' + example: 'true' + type: object + - in: query + name: ext + required: true + schema: + default: '"mediaStats,highlightedLabel,hasNftAvatar,voiceInfo,birdwatchPivot,enrichments,superFollowMetadata,unmentionInfo,editControl,vibe"' + example: '"mediaStats,highlightedLabel,hasNftAvatar,voiceInfo,birdwatchPivot,enrichments,superFollowMetadata,unmentionInfo,editControl,vibe"' + type: object + responses: + '200': + description: Successful operation + headers: + status: + schema: + type: string + x-access-level: + schema: + type: string + x-client-event-enabled: + schema: + type: boolean + x-connection-hash: + schema: + type: string + x-content-type-options: + schema: + type: string + x-response-time: + schema: + type: integer + x-transaction: + schema: + type: string + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + tags: + - v2.0-get diff --git a/dist/typescript/openapi-3.0.yaml b/dist/typescript/openapi-3.0.yaml index a9efd4c..d233697 100644 --- a/dist/typescript/openapi-3.0.yaml +++ b/dist/typescript/openapi-3.0.yaml @@ -33,8 +33,16 @@ info: version: 0.0.1 openapi: 3.0.3 paths: + /1.1/friends/following/list.json: + $ref: ./paths/v1.1-get.yaml#/paths/~11.1~1friends~1following~1list.json /1.1/friendships/create.json: - $ref: ./paths/v1.1.yaml#/paths/~11.1~1friendships~1create.json + $ref: ./paths/v1.1-post.yaml#/paths/~11.1~1friendships~1create.json + /1.1/friendships/destroy.json: + $ref: ./paths/v1.1-post.yaml#/paths/~11.1~1friendships~1destroy.json + /1.1/search/typeahead.json: + $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: @@ -87,10 +95,16 @@ tags: - description: response User name: user - description: response User list - name: userList + name: user-list - description: response tweet name: tweet - description: post name: post -- description: legacy APIs - name: v1.1 +- description: legacy APIs get + name: v1.1-get +- description: legacy APIs post + name: v1.1-post +- description: legacy APIs get + name: v2-get +- description: legacy APIs post + name: v2-post diff --git a/dist/typescript/paths/follow.yaml b/dist/typescript/paths/follow.yaml index a7dd0b7..8af2a42 100644 --- a/dist/typescript/paths/follow.yaml +++ b/dist/typescript/paths/follow.yaml @@ -119,7 +119,7 @@ paths: schema: type: string tags: - - userList + - user-list /graphql/djdTXDIk2qhd4OStqlUFeQ/Followers: get: description: get user list of followers @@ -201,4 +201,4 @@ paths: schema: type: string tags: - - userList + - user-list diff --git a/dist/typescript/paths/v1.1-get.yaml b/dist/typescript/paths/v1.1-get.yaml new file mode 100644 index 0000000..d8e768a --- /dev/null +++ b/dist/typescript/paths/v1.1-get.yaml @@ -0,0 +1,242 @@ +info: + title: Twitter OpenAPI + version: 0.0.1 +openapi: 3.0.3 +paths: + /1.1/friends/following/list.json: + get: + description: get friends following list + operationId: getFriendsFollowingList + parameters: + - in: query + name: include_profile_interstitial_type + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_blocking + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_blocked_by + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_followed_by + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_want_retweets + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_mute_edge + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_can_dm + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_can_media_tag + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_ext_has_nft_avatar + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_ext_is_blue_verified + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_ext_verified_type + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_ext_profile_image_shape + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: skip_status + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: cursor + required: true + schema: + default: '-1' + example: '-1' + type: object + - in: query + name: user_id + required: true + schema: + default: '17152334' + example: '17152334' + type: object + - in: query + name: count + required: true + schema: + default: '3' + example: '3' + type: object + - in: query + name: with_total_count + required: true + schema: + default: 'true' + example: 'true' + type: object + responses: + '200': + description: Successful operation + headers: + status: + schema: + type: string + x-access-level: + schema: + type: string + x-client-event-enabled: + schema: + type: boolean + x-connection-hash: + schema: + type: string + x-content-type-options: + schema: + type: string + x-response-time: + schema: + type: integer + x-transaction: + schema: + type: string + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + tags: + - v1.1-get + /1.1/search/typeahead.json: + get: + description: get search typeahead + operationId: getSearchTypeahead + parameters: + - in: query + name: include_ext_is_blue_verified + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_ext_verified_type + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_ext_profile_image_shape + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: q + required: true + schema: + default: '"aaa"' + example: '"aaa"' + type: object + - in: query + name: src + required: true + schema: + default: '"search_box"' + example: '"search_box"' + type: object + - in: query + name: result_type + required: true + schema: + default: '"events,users,topics"' + example: '"events,users,topics"' + type: object + responses: + '200': + description: Successful operation + headers: + status: + schema: + type: string + x-access-level: + schema: + type: string + x-client-event-enabled: + schema: + type: boolean + x-connection-hash: + schema: + type: string + x-content-type-options: + schema: + type: string + x-response-time: + schema: + type: integer + x-transaction: + schema: + type: string + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + tags: + - v1.1-get diff --git a/dist/typescript/paths/v1.1-post.yaml b/dist/typescript/paths/v1.1-post.yaml new file mode 100644 index 0000000..ee799ef --- /dev/null +++ b/dist/typescript/paths/v1.1-post.yaml @@ -0,0 +1,277 @@ +info: + title: Twitter OpenAPI + version: 0.0.1 +openapi: 3.0.3 +paths: + /1.1/friendships/create.json: + post: + description: post create friendships + operationId: postCreateFriendships + parameters: + - in: query + name: include_profile_interstitial_type + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_blocking + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_blocked_by + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_followed_by + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_want_retweets + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_mute_edge + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_can_dm + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_can_media_tag + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_ext_has_nft_avatar + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_ext_is_blue_verified + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_ext_verified_type + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_ext_profile_image_shape + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: skip_status + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: user_id + required: true + schema: + default: '44196397' + example: '44196397' + type: object + responses: + '200': + description: Successful operation + headers: + status: + schema: + type: string + x-access-level: + schema: + type: string + x-client-event-enabled: + schema: + type: boolean + x-connection-hash: + schema: + type: string + x-content-type-options: + schema: + type: string + x-response-time: + schema: + type: integer + x-transaction: + schema: + type: string + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + tags: + - v1.1-post + /1.1/friendships/destroy.json: + post: + description: post destroy friendships + operationId: postDestroyFriendships + parameters: + - in: query + name: include_profile_interstitial_type + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_blocking + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_blocked_by + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_followed_by + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_want_retweets + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_mute_edge + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_can_dm + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_can_media_tag + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_ext_has_nft_avatar + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_ext_is_blue_verified + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_ext_verified_type + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_ext_profile_image_shape + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: skip_status + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: user_id + required: true + schema: + default: '44196397' + example: '44196397' + type: object + responses: + '200': + description: Successful operation + headers: + status: + schema: + type: string + x-access-level: + schema: + type: string + x-client-event-enabled: + schema: + type: boolean + x-connection-hash: + schema: + type: string + x-content-type-options: + schema: + type: string + x-response-time: + schema: + type: integer + x-transaction: + schema: + type: string + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + tags: + - v1.1-post diff --git a/dist/typescript/paths/v2.0-get.yaml b/dist/typescript/paths/v2.0-get.yaml new file mode 100644 index 0000000..881694a --- /dev/null +++ b/dist/typescript/paths/v2.0-get.yaml @@ -0,0 +1,302 @@ +info: + title: Twitter OpenAPI + version: 0.0.1 +openapi: 3.0.3 +paths: + /2/search/adaptive.json: + get: + description: get search adaptive + operationId: getSearchAdaptive + parameters: + - in: query + name: include_profile_interstitial_type + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_blocking + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_blocked_by + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_followed_by + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_want_retweets + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_mute_edge + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_can_dm + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_can_media_tag + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_ext_has_nft_avatar + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_ext_is_blue_verified + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_ext_verified_type + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_ext_profile_image_shape + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: skip_status + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: cards_platform + required: true + schema: + default: '"Web-12"' + example: '"Web-12"' + type: object + - in: query + name: include_cards + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_ext_alt_text + required: true + schema: + default: 'true' + example: 'true' + type: object + - in: query + name: include_ext_limited_action_results + required: true + schema: + default: 'false' + example: 'false' + type: object + - in: query + name: include_quote_count + required: true + schema: + default: 'true' + example: 'true' + type: object + - in: query + name: include_reply_count + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: tweet_mode + required: true + schema: + default: '"extended"' + example: '"extended"' + type: object + - in: query + name: include_ext_views + required: true + schema: + default: 'true' + example: 'true' + type: object + - in: query + name: include_entities + required: true + schema: + default: 'true' + example: 'true' + type: object + - in: query + name: include_user_entities + required: true + schema: + default: 'true' + example: 'true' + type: object + - in: query + name: include_ext_media_color + required: true + schema: + default: 'true' + example: 'true' + type: object + - in: query + name: include_ext_media_availability + required: true + schema: + default: 'true' + example: 'true' + type: object + - in: query + name: include_ext_sensitive_media_warning + required: true + schema: + default: 'true' + example: 'true' + type: object + - in: query + name: include_ext_trusted_friends_metadata + required: true + schema: + default: 'true' + example: 'true' + type: object + - in: query + name: send_error_codes + required: true + schema: + default: 'true' + example: 'true' + type: object + - in: query + name: simple_quoted_tweet + required: true + schema: + default: 'true' + example: 'true' + type: object + - in: query + name: q + required: true + schema: + default: '"elon musk"' + example: '"elon musk"' + type: object + - in: query + name: query_source + required: true + schema: + default: '"trend_click"' + example: '"trend_click"' + type: object + - in: query + name: count + required: true + schema: + default: '20' + example: '20' + type: object + - in: query + name: requestContext + required: true + schema: + default: '"launch"' + example: '"launch"' + type: object + - in: query + name: pc + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: spelling_corrections + required: true + schema: + default: '1' + example: '1' + type: object + - in: query + name: include_ext_edit_control + required: true + schema: + default: 'true' + example: 'true' + type: object + - in: query + name: ext + required: true + schema: + default: '"mediaStats,highlightedLabel,hasNftAvatar,voiceInfo,birdwatchPivot,enrichments,superFollowMetadata,unmentionInfo,editControl,vibe"' + example: '"mediaStats,highlightedLabel,hasNftAvatar,voiceInfo,birdwatchPivot,enrichments,superFollowMetadata,unmentionInfo,editControl,vibe"' + type: object + responses: + '200': + description: Successful operation + headers: + status: + schema: + type: string + x-access-level: + schema: + type: string + x-client-event-enabled: + schema: + type: boolean + x-connection-hash: + schema: + type: string + x-content-type-options: + schema: + type: string + x-response-time: + schema: + type: integer + x-transaction: + schema: + type: string + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + tags: + - v2.0-get