From 01eee8484d3f5d7c1aca60718ee3c7aad93aa051 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Wed, 26 Apr 2023 20:22:49 +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 | 12 + dist/dart/paths/post.yaml | 678 ++++++++++++++++++++++++++++++ dist/dart/schemas/post.yaml | 60 +++ dist/typescript/openapi-3.0.yaml | 12 + dist/typescript/paths/post.yaml | 504 ++++++++++++++++++++++ dist/typescript/schemas/post.yaml | 60 +++ src/openapi/paths/post.yaml | 8 +- 7 files changed, 1330 insertions(+), 4 deletions(-) create mode 100644 dist/dart/paths/post.yaml create mode 100644 dist/dart/schemas/post.yaml create mode 100644 dist/typescript/paths/post.yaml create mode 100644 dist/typescript/schemas/post.yaml diff --git a/dist/dart/openapi-3.0.yaml b/dist/dart/openapi-3.0.yaml index 13e48f5..0300b26 100644 --- a/dist/dart/openapi-3.0.yaml +++ b/dist/dart/openapi-3.0.yaml @@ -33,6 +33,8 @@ info: version: 0.0.1 openapi: 3.0.3 paths: + /1RyAhNwby-gzGCRVsMxKbQ/CreateTweet: + $ref: ./paths/post.yaml#/paths/~11RyAhNwby-gzGCRVsMxKbQ~1CreateTweet /2TemLyqrMpTeAmysdbnVqw/ListLatestTweetsTimeline: $ref: ./paths/timeline.yaml#/paths/~12TemLyqrMpTeAmysdbnVqw~1ListLatestTweetsTimeline /5fmEkRT-1AdHqEsbVgehMg/Likes: @@ -47,10 +49,20 @@ paths: $ref: ./paths/follow.yaml#/paths/~1IWP6Zt14sARO29lJT35bBw~1Following /RIWc55YCNyUJ-U3HHGYkdg/UserTweetsAndReplies: $ref: ./paths/usertweets.yaml#/paths/~1RIWc55YCNyUJ-U3HHGYkdg~1UserTweetsAndReplies + /VaenaVgh5q5ih7kvyVjgtg/DeleteTweet: + $ref: ./paths/post.yaml#/paths/~1VaenaVgh5q5ih7kvyVjgtg~1DeleteTweet /YqiE3JL1KNgf9nSljYdxaA/UserMedia: $ref: ./paths/usertweets.yaml#/paths/~1YqiE3JL1KNgf9nSljYdxaA~1UserMedia + /ZYKSe-w7KEslx3JhSIk5LA/UnfavoriteTweet: + $ref: ./paths/post.yaml#/paths/~1ZYKSe-w7KEslx3JhSIk5LA~1UnfavoriteTweet /djdTXDIk2qhd4OStqlUFeQ/Followers: $ref: ./paths/follow.yaml#/paths/~1djdTXDIk2qhd4OStqlUFeQ~1Followers + /iQtK4dl5hBmXewYZuEOKVw/DeleteRetweet: + $ref: ./paths/post.yaml#/paths/~1iQtK4dl5hBmXewYZuEOKVw~1DeleteRetweet + /lI07N6Otwv1PhnEgXILM7A/FavoriteTweet: + $ref: ./paths/post.yaml#/paths/~1lI07N6Otwv1PhnEgXILM7A~1FavoriteTweet + /ojPdsZsimiJrUGLR1sjUtA/CreateRetweet: + $ref: ./paths/post.yaml#/paths/~1ojPdsZsimiJrUGLR1sjUtA~1CreateRetweet /sLVLhk0bGj3MVFEKTdax1w/UserByScreenName: $ref: ./paths/user.yaml#/paths/~1sLVLhk0bGj3MVFEKTdax1w~1UserByScreenName /tmd4ifV8RHltzn8ymGg1aw/Bookmarks: diff --git a/dist/dart/paths/post.yaml b/dist/dart/paths/post.yaml new file mode 100644 index 0000000..ad507a8 --- /dev/null +++ b/dist/dart/paths/post.yaml @@ -0,0 +1,678 @@ +components: + schemas: + CreateRetweetResponse: + properties: + data: + $ref: '#/components/schemas/CreateRetweetResponseData' + required: + - data + CreateRetweetResponseData: + properties: + create_retweet: + $ref: '#/components/schemas/CreateRetweetResponseResult' + required: + - create_retweet + CreateRetweetResponseResult: + properties: + retweet_results: + $ref: ./../schemas/post.yaml#/components/schemas/CreateRetweet + required: + - retweet_results + CreateTweetResponse: + properties: + data: + $ref: '#/components/schemas/CreateTweetResponseData' + required: + - data + CreateTweetResponseData: + properties: + create_retweet: + $ref: '#/components/schemas/CreateTweetResponseResult' + required: + - create_tweet + CreateTweetResponseResult: + properties: + tweet_results: + $ref: ./../schemas/post.yaml#/components/schemas/CreateTweet + required: + - tweet_results + DeleteRetweetResponse: + properties: + data: + $ref: '#/components/schemas/DeleteRetweetResponseData' + required: + - data + DeleteRetweetResponseData: + properties: + create_retweet: + $ref: '#/components/schemas/CreateRetweetResponseResult' + required: + - unretweet + DeleteRetweetResponseResult: + properties: + retweet_results: + $ref: ./../schemas/post.yaml#/components/schemas/DeleteRetweet + required: + - source_tweet_results + DeleteTweetResponse: + properties: + data: + $ref: '#/components/schemas/DeleteTweetResponseData' + required: + - data + DeleteTweetResponseData: + properties: + delete_retweet: + $ref: '#/components/schemas/DeleteTweetResponseResult' + required: + - delete_tweet + DeleteTweetResponseResult: + properties: + tweet_results: + $ref: ./../schemas/post.yaml#/components/schemas/DeleteTweet + required: + - tweet_results + FavoriteTweetResponseData: + properties: + data: + $ref: ./../schemas/post.yaml#/components/schemas/FavoriteTweet + required: + - data + UnfavoriteTweetResponseData: + properties: + data: + $ref: ./../schemas/post.yaml#/components/schemas/UnfavoriteTweet + required: + - data +info: + title: Twitter OpenAPI + version: 0.0.1 +openapi: 3.0.3 +paths: + /1RyAhNwby-gzGCRVsMxKbQ/CreateTweet: + post: + description: create Tweet + operationId: createTweet + parameters: + - in: query + name: variables + required: true + schema: + example: '{"tweet_text": "test", "media": {"media_entities": [], "possibly_sensitive": + false}, "semantic_annotation_ids": []}' + type: string + - in: query + name: features + required: true + schema: + example: '{"tweetypie_unmention_optimization_enabled": true, "vibe_api_enabled": + true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": + true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": + true, "tweet_awards_web_tipping_enabled": false, "interactive_text_enabled": + true, "responsive_web_text_conversations_enabled": false, "longform_notetweets_rich_text_read_enabled": + true, "blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": + true, "verified_phone_label_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": + true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": + false, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": + false, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_enhance_cards_enabled": + false}' + type: string + - in: query + name: queryId + required: true + schema: + default: 1RyAhNwby-gzGCRVsMxKbQ + example: 1RyAhNwby-gzGCRVsMxKbQ + 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: 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 + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/CreateTweetResponse' + description: Successful operation + headers: + x-connection-hash: + schema: + type: string + x-content-type-options: + schema: + type: string + x-frame-options: + schema: + type: string + x-rate-limit-limit: + schema: + type: integer + x-rate-limit-remaining: + schema: + type: integer + x-rate-limit-reset: + schema: + type: integer + x-response-time: + schema: + type: integer + x-tfe-preserve-body: + schema: + type: boolean + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + x-xss-protection: + schema: + type: integer + tags: + - Post + /VaenaVgh5q5ih7kvyVjgtg/DeleteTweet: + post: + description: delete Retweet + operationId: deleteTweet + parameters: + - in: query + name: variables + required: true + schema: + example: '{"tweet_id": "1349129669258448897"}' + type: string + - in: query + name: features + required: true + schema: + example: '{}' + type: string + - in: query + name: queryId + required: true + schema: + default: VaenaVgh5q5ih7kvyVjgtg + example: VaenaVgh5q5ih7kvyVjgtg + 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: 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 + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DeleteTweetResponse' + description: Successful operation + headers: + x-connection-hash: + schema: + type: string + x-content-type-options: + schema: + type: string + x-frame-options: + schema: + type: string + x-rate-limit-limit: + schema: + type: integer + x-rate-limit-remaining: + schema: + type: integer + x-rate-limit-reset: + schema: + type: integer + x-response-time: + schema: + type: integer + x-tfe-preserve-body: + schema: + type: boolean + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + x-xss-protection: + schema: + type: integer + tags: + - Post + /ZYKSe-w7KEslx3JhSIk5LA/UnfavoriteTweet: + post: + description: unfavorite Tweet + operationId: unfavoriteTweet + parameters: + - in: query + name: variables + required: true + schema: + example: '{"tweet_id": "1349129669258448897"}' + type: string + - in: query + name: features + required: true + schema: + example: '{}' + type: string + - in: query + name: queryId + required: true + schema: + default: ZYKSe-w7KEslx3JhSIk5LA + example: ZYKSe-w7KEslx3JhSIk5LA + 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: 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 + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/UnfavoriteTweetResponseData' + description: Successful operation + headers: + x-connection-hash: + schema: + type: string + x-content-type-options: + schema: + type: string + x-frame-options: + schema: + type: string + x-rate-limit-limit: + schema: + type: integer + x-rate-limit-remaining: + schema: + type: integer + x-rate-limit-reset: + schema: + type: integer + x-response-time: + schema: + type: integer + x-tfe-preserve-body: + schema: + type: boolean + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + x-xss-protection: + schema: + type: integer + tags: + - Post + /iQtK4dl5hBmXewYZuEOKVw/DeleteRetweet: + post: + description: delete Retweet + operationId: deleteRetweet + parameters: + - in: query + name: variables + required: true + schema: + example: '{"tweet_id": "1349129669258448897"}' + type: string + - in: query + name: features + required: true + schema: + example: '{}' + type: string + - in: query + name: queryId + required: true + schema: + default: iQtK4dl5hBmXewYZuEOKVw + example: iQtK4dl5hBmXewYZuEOKVw + 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: 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 + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DeleteRetweetResponse' + description: Successful operation + headers: + x-connection-hash: + schema: + type: string + x-content-type-options: + schema: + type: string + x-frame-options: + schema: + type: string + x-rate-limit-limit: + schema: + type: integer + x-rate-limit-remaining: + schema: + type: integer + x-rate-limit-reset: + schema: + type: integer + x-response-time: + schema: + type: integer + x-tfe-preserve-body: + schema: + type: boolean + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + x-xss-protection: + schema: + type: integer + tags: + - Post + /lI07N6Otwv1PhnEgXILM7A/FavoriteTweet: + post: + description: favorite Tweet + operationId: favoriteTweet + parameters: + - in: query + name: variables + required: true + schema: + example: '{"tweet_id": "1349129669258448897"}' + type: string + - in: query + name: features + required: true + schema: + example: '{}' + type: string + - in: query + name: queryId + required: true + schema: + default: lI07N6Otwv1PhnEgXILM7A + example: lI07N6Otwv1PhnEgXILM7A + 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: 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 + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/FavoriteTweetResponseData' + description: Successful operation + headers: + x-connection-hash: + schema: + type: string + x-content-type-options: + schema: + type: string + x-frame-options: + schema: + type: string + x-rate-limit-limit: + schema: + type: integer + x-rate-limit-remaining: + schema: + type: integer + x-rate-limit-reset: + schema: + type: integer + x-response-time: + schema: + type: integer + x-tfe-preserve-body: + schema: + type: boolean + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + x-xss-protection: + schema: + type: integer + tags: + - Post + /ojPdsZsimiJrUGLR1sjUtA/CreateRetweet: + post: + description: create Retweet + operationId: createRetweet + parameters: + - in: query + name: variables + required: true + schema: + example: '{"tweet_id": "1349129669258448897"}' + type: string + - in: query + name: features + required: true + schema: + example: '{}' + type: string + - in: query + name: queryId + required: true + schema: + default: ojPdsZsimiJrUGLR1sjUtA + example: ojPdsZsimiJrUGLR1sjUtA + 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: 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 + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/CreateRetweetResponse' + description: Successful operation + headers: + x-connection-hash: + schema: + type: string + x-content-type-options: + schema: + type: string + x-frame-options: + schema: + type: string + x-rate-limit-limit: + schema: + type: integer + x-rate-limit-remaining: + schema: + type: integer + x-rate-limit-reset: + schema: + type: integer + x-response-time: + schema: + type: integer + x-tfe-preserve-body: + schema: + type: boolean + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + x-xss-protection: + schema: + type: integer + tags: + - Post diff --git a/dist/dart/schemas/post.yaml b/dist/dart/schemas/post.yaml new file mode 100644 index 0000000..cf686ef --- /dev/null +++ b/dist/dart/schemas/post.yaml @@ -0,0 +1,60 @@ +components: + schemas: + CreateRetweet: + properties: + result: + items: + $ref: '#/components/schemas/Retweet' + type: object + required: + - result + CreateTweet: + properties: + result: + items: + $ref: ./tweet.yaml#/components/schemas/Tweet + type: object + required: + - result + DeleteRetweet: + properties: + result: + items: + $ref: '#/components/schemas/Retweet' + type: object + required: + - result + DeleteTweet: + properties: + nullable: true + type: object + FavoriteTweet: + properties: + favorite_tweet: + type: string + required: + - favorite_tweet + Retweet: + properties: + legacy: + items: + properties: + full_text: + type: string + type: object + rest_id: + type: string + required: + - rest_id + - legacy + UnfavoriteTweet: + properties: + unfavorite_tweet: + type: string + required: + - unfavorite_tweet +info: + title: Twitter OpenAPI + version: 0.0.1 +openapi: 3.0.3 +paths: {} diff --git a/dist/typescript/openapi-3.0.yaml b/dist/typescript/openapi-3.0.yaml index 2d55929..0b1141b 100644 --- a/dist/typescript/openapi-3.0.yaml +++ b/dist/typescript/openapi-3.0.yaml @@ -53,6 +53,8 @@ info: version: 0.0.1 openapi: 3.0.3 paths: + /1RyAhNwby-gzGCRVsMxKbQ/CreateTweet: + $ref: ./paths/post.yaml#/paths/~11RyAhNwby-gzGCRVsMxKbQ~1CreateTweet /2TemLyqrMpTeAmysdbnVqw/ListLatestTweetsTimeline: $ref: ./paths/timeline.yaml#/paths/~12TemLyqrMpTeAmysdbnVqw~1ListLatestTweetsTimeline /5fmEkRT-1AdHqEsbVgehMg/Likes: @@ -67,10 +69,20 @@ paths: $ref: ./paths/follow.yaml#/paths/~1IWP6Zt14sARO29lJT35bBw~1Following /RIWc55YCNyUJ-U3HHGYkdg/UserTweetsAndReplies: $ref: ./paths/usertweets.yaml#/paths/~1RIWc55YCNyUJ-U3HHGYkdg~1UserTweetsAndReplies + /VaenaVgh5q5ih7kvyVjgtg/DeleteTweet: + $ref: ./paths/post.yaml#/paths/~1VaenaVgh5q5ih7kvyVjgtg~1DeleteTweet /YqiE3JL1KNgf9nSljYdxaA/UserMedia: $ref: ./paths/usertweets.yaml#/paths/~1YqiE3JL1KNgf9nSljYdxaA~1UserMedia + /ZYKSe-w7KEslx3JhSIk5LA/UnfavoriteTweet: + $ref: ./paths/post.yaml#/paths/~1ZYKSe-w7KEslx3JhSIk5LA~1UnfavoriteTweet /djdTXDIk2qhd4OStqlUFeQ/Followers: $ref: ./paths/follow.yaml#/paths/~1djdTXDIk2qhd4OStqlUFeQ~1Followers + /iQtK4dl5hBmXewYZuEOKVw/DeleteRetweet: + $ref: ./paths/post.yaml#/paths/~1iQtK4dl5hBmXewYZuEOKVw~1DeleteRetweet + /lI07N6Otwv1PhnEgXILM7A/FavoriteTweet: + $ref: ./paths/post.yaml#/paths/~1lI07N6Otwv1PhnEgXILM7A~1FavoriteTweet + /ojPdsZsimiJrUGLR1sjUtA/CreateRetweet: + $ref: ./paths/post.yaml#/paths/~1ojPdsZsimiJrUGLR1sjUtA~1CreateRetweet /sLVLhk0bGj3MVFEKTdax1w/UserByScreenName: $ref: ./paths/user.yaml#/paths/~1sLVLhk0bGj3MVFEKTdax1w~1UserByScreenName /tmd4ifV8RHltzn8ymGg1aw/Bookmarks: diff --git a/dist/typescript/paths/post.yaml b/dist/typescript/paths/post.yaml new file mode 100644 index 0000000..a14c6df --- /dev/null +++ b/dist/typescript/paths/post.yaml @@ -0,0 +1,504 @@ +components: + schemas: + CreateRetweetResponse: + properties: + data: + $ref: '#/components/schemas/CreateRetweetResponseData' + required: + - data + CreateRetweetResponseData: + properties: + create_retweet: + $ref: '#/components/schemas/CreateRetweetResponseResult' + required: + - create_retweet + CreateRetweetResponseResult: + properties: + retweet_results: + $ref: ./../schemas/post.yaml#/components/schemas/CreateRetweet + required: + - retweet_results + CreateTweetResponse: + properties: + data: + $ref: '#/components/schemas/CreateTweetResponseData' + required: + - data + CreateTweetResponseData: + properties: + create_retweet: + $ref: '#/components/schemas/CreateTweetResponseResult' + required: + - create_tweet + CreateTweetResponseResult: + properties: + tweet_results: + $ref: ./../schemas/post.yaml#/components/schemas/CreateTweet + required: + - tweet_results + DeleteRetweetResponse: + properties: + data: + $ref: '#/components/schemas/DeleteRetweetResponseData' + required: + - data + DeleteRetweetResponseData: + properties: + create_retweet: + $ref: '#/components/schemas/CreateRetweetResponseResult' + required: + - unretweet + DeleteRetweetResponseResult: + properties: + retweet_results: + $ref: ./../schemas/post.yaml#/components/schemas/DeleteRetweet + required: + - source_tweet_results + DeleteTweetResponse: + properties: + data: + $ref: '#/components/schemas/DeleteTweetResponseData' + required: + - data + DeleteTweetResponseData: + properties: + delete_retweet: + $ref: '#/components/schemas/DeleteTweetResponseResult' + required: + - delete_tweet + DeleteTweetResponseResult: + properties: + tweet_results: + $ref: ./../schemas/post.yaml#/components/schemas/DeleteTweet + required: + - tweet_results + FavoriteTweetResponseData: + properties: + data: + $ref: ./../schemas/post.yaml#/components/schemas/FavoriteTweet + required: + - data + UnfavoriteTweetResponseData: + properties: + data: + $ref: ./../schemas/post.yaml#/components/schemas/UnfavoriteTweet + required: + - data +info: + title: Twitter OpenAPI + version: 0.0.1 +openapi: 3.0.3 +paths: + /1RyAhNwby-gzGCRVsMxKbQ/CreateTweet: + post: + description: create Tweet + operationId: createTweet + parameters: + - in: query + name: variables + required: true + schema: + example: '{"tweet_text": "test", "media": {"media_entities": [], "possibly_sensitive": + false}, "semantic_annotation_ids": []}' + type: string + - in: query + name: features + required: true + schema: + example: '{"tweetypie_unmention_optimization_enabled": true, "vibe_api_enabled": + true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": + true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled": + true, "tweet_awards_web_tipping_enabled": false, "interactive_text_enabled": + true, "responsive_web_text_conversations_enabled": false, "longform_notetweets_rich_text_read_enabled": + true, "blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled": + true, "verified_phone_label_enabled": false, "freedom_of_speech_not_reach_fetch_enabled": + true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": + false, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": + false, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_enhance_cards_enabled": + false}' + type: string + - in: query + name: queryId + required: true + schema: + default: 1RyAhNwby-gzGCRVsMxKbQ + example: 1RyAhNwby-gzGCRVsMxKbQ + type: string + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/CreateTweetResponse' + description: Successful operation + headers: + x-connection-hash: + schema: + type: string + x-content-type-options: + schema: + type: string + x-frame-options: + schema: + type: string + x-rate-limit-limit: + schema: + type: integer + x-rate-limit-remaining: + schema: + type: integer + x-rate-limit-reset: + schema: + type: integer + x-response-time: + schema: + type: integer + x-tfe-preserve-body: + schema: + type: boolean + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + x-xss-protection: + schema: + type: integer + tags: + - Post + /VaenaVgh5q5ih7kvyVjgtg/DeleteTweet: + post: + description: delete Retweet + operationId: deleteTweet + parameters: + - in: query + name: variables + required: true + schema: + example: '{"tweet_id": "1349129669258448897"}' + type: string + - in: query + name: features + required: true + schema: + example: '{}' + type: string + - in: query + name: queryId + required: true + schema: + default: VaenaVgh5q5ih7kvyVjgtg + example: VaenaVgh5q5ih7kvyVjgtg + type: string + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DeleteTweetResponse' + description: Successful operation + headers: + x-connection-hash: + schema: + type: string + x-content-type-options: + schema: + type: string + x-frame-options: + schema: + type: string + x-rate-limit-limit: + schema: + type: integer + x-rate-limit-remaining: + schema: + type: integer + x-rate-limit-reset: + schema: + type: integer + x-response-time: + schema: + type: integer + x-tfe-preserve-body: + schema: + type: boolean + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + x-xss-protection: + schema: + type: integer + tags: + - Post + /ZYKSe-w7KEslx3JhSIk5LA/UnfavoriteTweet: + post: + description: unfavorite Tweet + operationId: unfavoriteTweet + parameters: + - in: query + name: variables + required: true + schema: + example: '{"tweet_id": "1349129669258448897"}' + type: string + - in: query + name: features + required: true + schema: + example: '{}' + type: string + - in: query + name: queryId + required: true + schema: + default: ZYKSe-w7KEslx3JhSIk5LA + example: ZYKSe-w7KEslx3JhSIk5LA + type: string + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/UnfavoriteTweetResponseData' + description: Successful operation + headers: + x-connection-hash: + schema: + type: string + x-content-type-options: + schema: + type: string + x-frame-options: + schema: + type: string + x-rate-limit-limit: + schema: + type: integer + x-rate-limit-remaining: + schema: + type: integer + x-rate-limit-reset: + schema: + type: integer + x-response-time: + schema: + type: integer + x-tfe-preserve-body: + schema: + type: boolean + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + x-xss-protection: + schema: + type: integer + tags: + - Post + /iQtK4dl5hBmXewYZuEOKVw/DeleteRetweet: + post: + description: delete Retweet + operationId: deleteRetweet + parameters: + - in: query + name: variables + required: true + schema: + example: '{"tweet_id": "1349129669258448897"}' + type: string + - in: query + name: features + required: true + schema: + example: '{}' + type: string + - in: query + name: queryId + required: true + schema: + default: iQtK4dl5hBmXewYZuEOKVw + example: iQtK4dl5hBmXewYZuEOKVw + type: string + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DeleteRetweetResponse' + description: Successful operation + headers: + x-connection-hash: + schema: + type: string + x-content-type-options: + schema: + type: string + x-frame-options: + schema: + type: string + x-rate-limit-limit: + schema: + type: integer + x-rate-limit-remaining: + schema: + type: integer + x-rate-limit-reset: + schema: + type: integer + x-response-time: + schema: + type: integer + x-tfe-preserve-body: + schema: + type: boolean + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + x-xss-protection: + schema: + type: integer + tags: + - Post + /lI07N6Otwv1PhnEgXILM7A/FavoriteTweet: + post: + description: favorite Tweet + operationId: favoriteTweet + parameters: + - in: query + name: variables + required: true + schema: + example: '{"tweet_id": "1349129669258448897"}' + type: string + - in: query + name: features + required: true + schema: + example: '{}' + type: string + - in: query + name: queryId + required: true + schema: + default: lI07N6Otwv1PhnEgXILM7A + example: lI07N6Otwv1PhnEgXILM7A + type: string + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/FavoriteTweetResponseData' + description: Successful operation + headers: + x-connection-hash: + schema: + type: string + x-content-type-options: + schema: + type: string + x-frame-options: + schema: + type: string + x-rate-limit-limit: + schema: + type: integer + x-rate-limit-remaining: + schema: + type: integer + x-rate-limit-reset: + schema: + type: integer + x-response-time: + schema: + type: integer + x-tfe-preserve-body: + schema: + type: boolean + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + x-xss-protection: + schema: + type: integer + tags: + - Post + /ojPdsZsimiJrUGLR1sjUtA/CreateRetweet: + post: + description: create Retweet + operationId: createRetweet + parameters: + - in: query + name: variables + required: true + schema: + example: '{"tweet_id": "1349129669258448897"}' + type: string + - in: query + name: features + required: true + schema: + example: '{}' + type: string + - in: query + name: queryId + required: true + schema: + default: ojPdsZsimiJrUGLR1sjUtA + example: ojPdsZsimiJrUGLR1sjUtA + type: string + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/CreateRetweetResponse' + description: Successful operation + headers: + x-connection-hash: + schema: + type: string + x-content-type-options: + schema: + type: string + x-frame-options: + schema: + type: string + x-rate-limit-limit: + schema: + type: integer + x-rate-limit-remaining: + schema: + type: integer + x-rate-limit-reset: + schema: + type: integer + x-response-time: + schema: + type: integer + x-tfe-preserve-body: + schema: + type: boolean + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + x-xss-protection: + schema: + type: integer + tags: + - Post diff --git a/dist/typescript/schemas/post.yaml b/dist/typescript/schemas/post.yaml new file mode 100644 index 0000000..cf686ef --- /dev/null +++ b/dist/typescript/schemas/post.yaml @@ -0,0 +1,60 @@ +components: + schemas: + CreateRetweet: + properties: + result: + items: + $ref: '#/components/schemas/Retweet' + type: object + required: + - result + CreateTweet: + properties: + result: + items: + $ref: ./tweet.yaml#/components/schemas/Tweet + type: object + required: + - result + DeleteRetweet: + properties: + result: + items: + $ref: '#/components/schemas/Retweet' + type: object + required: + - result + DeleteTweet: + properties: + nullable: true + type: object + FavoriteTweet: + properties: + favorite_tweet: + type: string + required: + - favorite_tweet + Retweet: + properties: + legacy: + items: + properties: + full_text: + type: string + type: object + rest_id: + type: string + required: + - rest_id + - legacy + UnfavoriteTweet: + properties: + unfavorite_tweet: + type: string + required: + - unfavorite_tweet +info: + title: Twitter OpenAPI + version: 0.0.1 +openapi: 3.0.3 +paths: {} diff --git a/src/openapi/paths/post.yaml b/src/openapi/paths/post.yaml index 06725f2..93655ff 100644 --- a/src/openapi/paths/post.yaml +++ b/src/openapi/paths/post.yaml @@ -17,7 +17,7 @@ paths: $ref: "#/components/schemas/FavoriteTweetResponseData" tags: - "Post" - + /{{UnfavoriteTweetQuery}}/UnfavoriteTweet: post: operationId: unfavoriteTweet @@ -147,7 +147,7 @@ components: properties: retweet_results: $ref: "./../schemas/post.yaml#/components/schemas/DeleteRetweet" - + # ---Tweet--- CreateTweetResponse: @@ -170,7 +170,7 @@ components: properties: tweet_results: $ref: "./../schemas/post.yaml#/components/schemas/CreateTweet" - + DeleteTweetResponse: required: - "data" @@ -190,4 +190,4 @@ components: - "tweet_results" properties: tweet_results: - $ref: "./../schemas/post.yaml#/components/schemas/DeleteTweet" \ No newline at end of file + $ref: "./../schemas/post.yaml#/components/schemas/DeleteTweet"