1
Fork 0
mirror of https://github.com/thegeneralist01/twitter-openapi synced 2026-01-11 23:50:26 +01:00
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
ふぁ 2023-05-10 11:49:37 +09:00
parent 31a2103cd0
commit 982181af54
No known key found for this signature in database
GPG key ID: 83A8A5E74872A8AA
7 changed files with 554 additions and 530 deletions

View file

@ -3,9 +3,7 @@ components:
CreateRetweet:
properties:
result:
items:
$ref: '#/components/schemas/Retweet'
type: object
$ref: '#/components/schemas/Retweet'
required:
- result
CreateRetweetResponse:
@ -109,12 +107,14 @@ components:
Retweet:
properties:
legacy:
items:
properties:
full_text:
type: string
properties:
full_text:
type: string
required:
- full_text
type: object
rest_id:
pattern: ^[0-9]+$
type: string
required:
- rest_id
@ -170,49 +170,150 @@ paths:
default: en
description: language code.
type: string
- in: query
name: queryId
requestBody:
content:
application/json:
schema:
properties:
features:
properties:
blue_business_profile_image_shape_enabled:
default: true
example: true
type: boolean
freedom_of_speech_not_reach_fetch_enabled:
default: true
example: true
type: boolean
graphql_is_translatable_rweb_tweet_is_translatable_enabled:
default: true
example: true
type: boolean
interactive_text_enabled:
default: true
example: true
type: boolean
longform_notetweets_consumption_enabled:
default: true
example: true
type: boolean
longform_notetweets_rich_text_read_enabled:
default: true
example: true
type: boolean
responsive_web_edit_tweet_api_enabled:
default: true
example: true
type: boolean
responsive_web_enhance_cards_enabled:
default: false
example: false
type: boolean
responsive_web_graphql_exclude_directive_enabled:
default: true
example: true
type: boolean
responsive_web_graphql_skip_user_profile_image_extensions_enabled:
default: false
example: false
type: boolean
responsive_web_graphql_timeline_navigation_enabled:
default: true
example: true
type: boolean
responsive_web_text_conversations_enabled:
default: false
example: false
type: boolean
standardized_nudges_misinfo:
default: true
example: true
type: boolean
tweet_awards_web_tipping_enabled:
default: false
example: false
type: boolean
tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled:
default: false
example: false
type: boolean
tweetypie_unmention_optimization_enabled:
default: true
example: true
type: boolean
verified_phone_label_enabled:
default: false
example: false
type: boolean
vibe_api_enabled:
default: true
example: true
type: boolean
view_counts_everywhere_api_enabled:
default: true
example: true
type: boolean
required:
- tweetypie_unmention_optimization_enabled
- vibe_api_enabled
- responsive_web_edit_tweet_api_enabled
- graphql_is_translatable_rweb_tweet_is_translatable_enabled
- view_counts_everywhere_api_enabled
- longform_notetweets_consumption_enabled
- tweet_awards_web_tipping_enabled
- interactive_text_enabled
- responsive_web_text_conversations_enabled
- longform_notetweets_rich_text_read_enabled
- blue_business_profile_image_shape_enabled
- responsive_web_graphql_exclude_directive_enabled
- verified_phone_label_enabled
- freedom_of_speech_not_reach_fetch_enabled
- standardized_nudges_misinfo
- tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled
- responsive_web_graphql_skip_user_profile_image_extensions_enabled
- responsive_web_graphql_timeline_navigation_enabled
- responsive_web_enhance_cards_enabled
type: object
queryId:
default: 1RyAhNwby-gzGCRVsMxKbQ
example: 1RyAhNwby-gzGCRVsMxKbQ
type: string
variables:
properties:
dark_request:
default: false
example: false
type: boolean
media:
properties:
media_entities:
items:
type: object
type: array
possibly_sensitive:
default: false
example: false
type: boolean
required:
- media_entities
- possibly_sensitive
type: object
semantic_annotation_ids:
items:
type: object
type: array
tweet_text:
default: test
example: test
type: string
required:
- tweet_text
- media
- semantic_annotation_ids
- dark_request
type: object
description: body
required: true
schema:
default: '"1RyAhNwby-gzGCRVsMxKbQ"'
example: '"1RyAhNwby-gzGCRVsMxKbQ"'
type: object
- in: query
name: variables
required: true
schema:
default: '{"tweet_text": "test", "media": {"media_entities": [], "possibly_sensitive":
false}, "semantic_annotation_ids": [], "dark_request": false}'
example: '{"tweet_text": "test", "media": {"media_entities": [], "possibly_sensitive":
false}, "semantic_annotation_ids": [], "dark_request": false}'
type: object
- in: query
name: features
required: true
schema:
default: '{"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}'
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: object
responses:
'200':
content:
@ -281,27 +382,31 @@ paths:
default: en
description: language code.
type: string
- in: query
name: queryId
requestBody:
content:
application/json:
schema:
properties:
queryId:
default: VaenaVgh5q5ih7kvyVjgtg
example: VaenaVgh5q5ih7kvyVjgtg
type: string
variables:
properties:
dark_request:
default: false
example: false
type: boolean
tweet_id:
default: '1349129669258448897'
example: '1349129669258448897'
type: string
required:
- tweet_id
- dark_request
type: object
description: body
required: true
schema:
default: '"VaenaVgh5q5ih7kvyVjgtg"'
example: '"VaenaVgh5q5ih7kvyVjgtg"'
type: object
- in: query
name: variables
required: true
schema:
default: '{"tweet_id": "1349129669258448897"}'
example: '{"tweet_id": "1349129669258448897"}'
type: object
- in: query
name: features
required: true
schema:
default: '{}'
example: '{}'
type: object
responses:
'200':
content:
@ -370,22 +475,31 @@ paths:
default: en
description: language code.
type: string
- in: query
name: queryId
requestBody:
content:
application/json:
schema:
properties:
queryId:
default: ZYKSe-w7KEslx3JhSIk5LA
example: ZYKSe-w7KEslx3JhSIk5LA
type: string
variables:
properties:
dark_request:
default: false
example: false
type: boolean
tweet_id:
default: '1349129669258448897'
example: '1349129669258448897'
type: string
required:
- tweet_id
- dark_request
type: object
description: body
required: true
schema:
default: '"ZYKSe-w7KEslx3JhSIk5LA"'
example: '"ZYKSe-w7KEslx3JhSIk5LA"'
type: object
- in: query
name: Parameters
required: true
schema:
default: '{"variables": {"tweet_id": "1349129669258448897"}, "features":
{}}'
example: '{"variables": {"tweet_id": "1349129669258448897"}, "features":
{}}'
type: object
responses:
'200':
content:
@ -454,22 +568,31 @@ paths:
default: en
description: language code.
type: string
- in: query
name: queryId
requestBody:
content:
application/json:
schema:
properties:
queryId:
default: iQtK4dl5hBmXewYZuEOKVw
example: iQtK4dl5hBmXewYZuEOKVw
type: string
variables:
properties:
dark_request:
default: false
example: false
type: boolean
source_tweet_id:
default: '1349129669258448897'
example: '1349129669258448897'
type: string
required:
- source_tweet_id
- dark_request
type: object
description: body
required: true
schema:
default: '"iQtK4dl5hBmXewYZuEOKVw"'
example: '"iQtK4dl5hBmXewYZuEOKVw"'
type: object
- in: query
name: Parameters
required: true
schema:
default: '{"variables": {"tweet_id": "1349129669258448897"}, "features":
{}}'
example: '{"variables": {"tweet_id": "1349129669258448897"}, "features":
{}}'
type: object
responses:
'200':
content:
@ -538,22 +661,31 @@ paths:
default: en
description: language code.
type: string
- in: query
name: queryId
requestBody:
content:
application/json:
schema:
properties:
queryId:
default: lI07N6Otwv1PhnEgXILM7A
example: lI07N6Otwv1PhnEgXILM7A
type: string
variables:
properties:
dark_request:
default: false
example: false
type: boolean
tweet_id:
default: '1349129669258448897'
example: '1349129669258448897'
type: string
required:
- tweet_id
- dark_request
type: object
description: body
required: true
schema:
default: '"lI07N6Otwv1PhnEgXILM7A"'
example: '"lI07N6Otwv1PhnEgXILM7A"'
type: object
- in: query
name: Parameters
required: true
schema:
default: '{"variables": {"tweet_id": "1349129669258448897"}, "features":
{}}'
example: '{"variables": {"tweet_id": "1349129669258448897"}, "features":
{}}'
type: object
responses:
'200':
content:
@ -622,22 +754,31 @@ paths:
default: en
description: language code.
type: string
- in: query
name: queryId
requestBody:
content:
application/json:
schema:
properties:
queryId:
default: ojPdsZsimiJrUGLR1sjUtA
example: ojPdsZsimiJrUGLR1sjUtA
type: string
variables:
properties:
dark_request:
default: false
example: false
type: boolean
tweet_id:
default: '1349129669258448897'
example: '1349129669258448897'
type: string
required:
- tweet_id
- dark_request
type: object
description: body
required: true
schema:
default: '"ojPdsZsimiJrUGLR1sjUtA"'
example: '"ojPdsZsimiJrUGLR1sjUtA"'
type: object
- in: query
name: Parameters
required: true
schema:
default: '{"variables": {"tweet_id": "1349129669258448897"}, "features":
{}}'
example: '{"variables": {"tweet_id": "1349129669258448897"}, "features":
{}}'
type: object
responses:
'200':
content: