mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 15:40:26 +01:00
build
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
parent
1335efb0a1
commit
305609f839
4 changed files with 366 additions and 0 deletions
2
dist/compatible/openapi-3.0.yaml
vendored
2
dist/compatible/openapi-3.0.yaml
vendored
|
|
@ -110,6 +110,8 @@ paths:
|
||||||
$ref: ./paths/user.yaml#/paths/~1graphql~1{pathQueryId}~1UserByRestId
|
$ref: ./paths/user.yaml#/paths/~1graphql~1{pathQueryId}~1UserByRestId
|
||||||
/graphql/{pathQueryId}/UserByScreenName:
|
/graphql/{pathQueryId}/UserByScreenName:
|
||||||
$ref: ./paths/user.yaml#/paths/~1graphql~1{pathQueryId}~1UserByScreenName
|
$ref: ./paths/user.yaml#/paths/~1graphql~1{pathQueryId}~1UserByScreenName
|
||||||
|
/graphql/{pathQueryId}/UserHighlightsTweets:
|
||||||
|
$ref: ./paths/usertweets.yaml#/paths/~1graphql~1{pathQueryId}~1UserHighlightsTweets
|
||||||
/graphql/{pathQueryId}/UserMedia:
|
/graphql/{pathQueryId}/UserMedia:
|
||||||
$ref: ./paths/usertweets.yaml#/paths/~1graphql~1{pathQueryId}~1UserMedia
|
$ref: ./paths/usertweets.yaml#/paths/~1graphql~1{pathQueryId}~1UserMedia
|
||||||
/graphql/{pathQueryId}/UserTweets:
|
/graphql/{pathQueryId}/UserTweets:
|
||||||
|
|
|
||||||
126
dist/compatible/paths/usertweets.yaml
vendored
126
dist/compatible/paths/usertweets.yaml
vendored
|
|
@ -1,5 +1,38 @@
|
||||||
components:
|
components:
|
||||||
schemas:
|
schemas:
|
||||||
|
UserHighlightsTweetsData:
|
||||||
|
properties:
|
||||||
|
user:
|
||||||
|
$ref: '#/components/schemas/UserHighlightsTweetsUser'
|
||||||
|
required:
|
||||||
|
- user
|
||||||
|
UserHighlightsTweetsResponse:
|
||||||
|
properties:
|
||||||
|
data:
|
||||||
|
$ref: '#/components/schemas/UserHighlightsTweetsData'
|
||||||
|
required:
|
||||||
|
- data
|
||||||
|
UserHighlightsTweetsResult:
|
||||||
|
properties:
|
||||||
|
__typename:
|
||||||
|
$ref: ./../schemas/typename.yaml#/components/schemas/TypeName
|
||||||
|
timeline:
|
||||||
|
$ref: '#/components/schemas/UserHighlightsTweetsTimeline'
|
||||||
|
required:
|
||||||
|
- timeline
|
||||||
|
- __typename
|
||||||
|
UserHighlightsTweetsTimeline:
|
||||||
|
properties:
|
||||||
|
timeline:
|
||||||
|
$ref: ./../schemas/timeline.yaml#/components/schemas/Timeline
|
||||||
|
required:
|
||||||
|
- timeline
|
||||||
|
UserHighlightsTweetsUser:
|
||||||
|
properties:
|
||||||
|
result:
|
||||||
|
$ref: '#/components/schemas/UserHighlightsTweetsResult'
|
||||||
|
required:
|
||||||
|
- result
|
||||||
UserTweetsData:
|
UserTweetsData:
|
||||||
properties:
|
properties:
|
||||||
user:
|
user:
|
||||||
|
|
@ -116,6 +149,99 @@ paths:
|
||||||
type: string
|
type: string
|
||||||
tags:
|
tags:
|
||||||
- tweet
|
- tweet
|
||||||
|
/graphql/{pathQueryId}/UserHighlightsTweets:
|
||||||
|
get:
|
||||||
|
description: get user highlights tweets
|
||||||
|
operationId: getUserHighlightsTweets
|
||||||
|
parameters:
|
||||||
|
- in: path
|
||||||
|
name: pathQueryId
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
default: sTveqh05FMMAFfDNpRc_Jg
|
||||||
|
example: sTveqh05FMMAFfDNpRc_Jg
|
||||||
|
type: string
|
||||||
|
- in: query
|
||||||
|
name: variables
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
default: '{"userId": "44196397", "count": 20, "includePromotedContent":
|
||||||
|
true, "withVoice": true}'
|
||||||
|
example: '{"userId": "44196397", "count": 20, "includePromotedContent":
|
||||||
|
true, "withVoice": true}'
|
||||||
|
type: string
|
||||||
|
- in: query
|
||||||
|
name: features
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
default: '{"rweb_lists_timeline_redesign_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
|
||||||
|
true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled":
|
||||||
|
true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
|
||||||
|
false, "tweetypie_unmention_optimization_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, "responsive_web_twitter_article_tweet_consumption_enabled": false,
|
||||||
|
"tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
|
||||||
|
true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
|
||||||
|
true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled":
|
||||||
|
true, "responsive_web_media_download_video_enabled": false, "responsive_web_enhance_cards_enabled":
|
||||||
|
false}'
|
||||||
|
example: '{"rweb_lists_timeline_redesign_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
|
||||||
|
true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled":
|
||||||
|
true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
|
||||||
|
false, "tweetypie_unmention_optimization_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, "responsive_web_twitter_article_tweet_consumption_enabled": false,
|
||||||
|
"tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
|
||||||
|
true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
|
||||||
|
true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled":
|
||||||
|
true, "responsive_web_media_download_video_enabled": false, "responsive_web_enhance_cards_enabled":
|
||||||
|
false}'
|
||||||
|
type: string
|
||||||
|
- in: query
|
||||||
|
name: fieldToggles
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
default: '{"withAuxiliaryUserLabels": false, "withArticleRichContentState":
|
||||||
|
false}'
|
||||||
|
example: '{"withAuxiliaryUserLabels": false, "withArticleRichContentState":
|
||||||
|
false}'
|
||||||
|
type: string
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/UserHighlightsTweetsResponse'
|
||||||
|
description: Successful operation
|
||||||
|
headers:
|
||||||
|
x-connection-hash:
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
x-rate-limit-limit:
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
x-rate-limit-remaining:
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
x-rate-limit-reset:
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
x-response-time:
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
x-tfe-preserve-body:
|
||||||
|
schema:
|
||||||
|
type: boolean
|
||||||
|
x-transaction-id:
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
x-twitter-response-tags:
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
tags:
|
||||||
|
- tweet
|
||||||
/graphql/{pathQueryId}/UserMedia:
|
/graphql/{pathQueryId}/UserMedia:
|
||||||
get:
|
get:
|
||||||
description: get user media tweets
|
description: get user media tweets
|
||||||
|
|
|
||||||
2
dist/docs/openapi-3.0.yaml
vendored
2
dist/docs/openapi-3.0.yaml
vendored
|
|
@ -110,6 +110,8 @@ paths:
|
||||||
$ref: ./paths/user.yaml#/paths/~1graphql~1{pathQueryId}~1UserByRestId
|
$ref: ./paths/user.yaml#/paths/~1graphql~1{pathQueryId}~1UserByRestId
|
||||||
/graphql/{pathQueryId}/UserByScreenName:
|
/graphql/{pathQueryId}/UserByScreenName:
|
||||||
$ref: ./paths/user.yaml#/paths/~1graphql~1{pathQueryId}~1UserByScreenName
|
$ref: ./paths/user.yaml#/paths/~1graphql~1{pathQueryId}~1UserByScreenName
|
||||||
|
/graphql/{pathQueryId}/UserHighlightsTweets:
|
||||||
|
$ref: ./paths/usertweets.yaml#/paths/~1graphql~1{pathQueryId}~1UserHighlightsTweets
|
||||||
/graphql/{pathQueryId}/UserMedia:
|
/graphql/{pathQueryId}/UserMedia:
|
||||||
$ref: ./paths/usertweets.yaml#/paths/~1graphql~1{pathQueryId}~1UserMedia
|
$ref: ./paths/usertweets.yaml#/paths/~1graphql~1{pathQueryId}~1UserMedia
|
||||||
/graphql/{pathQueryId}/UserTweets:
|
/graphql/{pathQueryId}/UserTweets:
|
||||||
|
|
|
||||||
236
dist/docs/paths/usertweets.yaml
vendored
236
dist/docs/paths/usertweets.yaml
vendored
|
|
@ -1,5 +1,38 @@
|
||||||
components:
|
components:
|
||||||
schemas:
|
schemas:
|
||||||
|
UserHighlightsTweetsData:
|
||||||
|
properties:
|
||||||
|
user:
|
||||||
|
$ref: '#/components/schemas/UserHighlightsTweetsUser'
|
||||||
|
required:
|
||||||
|
- user
|
||||||
|
UserHighlightsTweetsResponse:
|
||||||
|
properties:
|
||||||
|
data:
|
||||||
|
$ref: '#/components/schemas/UserHighlightsTweetsData'
|
||||||
|
required:
|
||||||
|
- data
|
||||||
|
UserHighlightsTweetsResult:
|
||||||
|
properties:
|
||||||
|
__typename:
|
||||||
|
$ref: ./../schemas/typename.yaml#/components/schemas/TypeName
|
||||||
|
timeline:
|
||||||
|
$ref: '#/components/schemas/UserHighlightsTweetsTimeline'
|
||||||
|
required:
|
||||||
|
- timeline
|
||||||
|
- __typename
|
||||||
|
UserHighlightsTweetsTimeline:
|
||||||
|
properties:
|
||||||
|
timeline:
|
||||||
|
$ref: ./../schemas/timeline.yaml#/components/schemas/Timeline
|
||||||
|
required:
|
||||||
|
- timeline
|
||||||
|
UserHighlightsTweetsUser:
|
||||||
|
properties:
|
||||||
|
result:
|
||||||
|
$ref: '#/components/schemas/UserHighlightsTweetsResult'
|
||||||
|
required:
|
||||||
|
- result
|
||||||
UserTweetsData:
|
UserTweetsData:
|
||||||
properties:
|
properties:
|
||||||
user:
|
user:
|
||||||
|
|
@ -226,6 +259,209 @@ paths:
|
||||||
type: string
|
type: string
|
||||||
tags:
|
tags:
|
||||||
- tweet
|
- tweet
|
||||||
|
/graphql/{pathQueryId}/UserHighlightsTweets:
|
||||||
|
get:
|
||||||
|
description: get user highlights tweets
|
||||||
|
operationId: getUserHighlightsTweets
|
||||||
|
parameters:
|
||||||
|
- in: path
|
||||||
|
name: pathQueryId
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
default: sTveqh05FMMAFfDNpRc_Jg
|
||||||
|
example: sTveqh05FMMAFfDNpRc_Jg
|
||||||
|
type: string
|
||||||
|
- content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
properties:
|
||||||
|
count:
|
||||||
|
default: 20
|
||||||
|
example: 20
|
||||||
|
type: integer
|
||||||
|
includePromotedContent:
|
||||||
|
default: true
|
||||||
|
example: true
|
||||||
|
type: boolean
|
||||||
|
userId:
|
||||||
|
default: '44196397'
|
||||||
|
example: '44196397'
|
||||||
|
type: string
|
||||||
|
withVoice:
|
||||||
|
default: true
|
||||||
|
example: true
|
||||||
|
type: boolean
|
||||||
|
required:
|
||||||
|
- userId
|
||||||
|
- count
|
||||||
|
- includePromotedContent
|
||||||
|
- withVoice
|
||||||
|
type: object
|
||||||
|
in: query
|
||||||
|
name: variables
|
||||||
|
required: true
|
||||||
|
- content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
properties:
|
||||||
|
creator_subscriptions_tweet_preview_api_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
|
||||||
|
longform_notetweets_consumption_enabled:
|
||||||
|
default: true
|
||||||
|
example: true
|
||||||
|
type: boolean
|
||||||
|
longform_notetweets_inline_media_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_media_download_video_enabled:
|
||||||
|
default: false
|
||||||
|
example: false
|
||||||
|
type: boolean
|
||||||
|
responsive_web_twitter_article_tweet_consumption_enabled:
|
||||||
|
default: false
|
||||||
|
example: false
|
||||||
|
type: boolean
|
||||||
|
rweb_lists_timeline_redesign_enabled:
|
||||||
|
default: true
|
||||||
|
example: true
|
||||||
|
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: true
|
||||||
|
example: true
|
||||||
|
type: boolean
|
||||||
|
tweetypie_unmention_optimization_enabled:
|
||||||
|
default: true
|
||||||
|
example: true
|
||||||
|
type: boolean
|
||||||
|
verified_phone_label_enabled:
|
||||||
|
default: false
|
||||||
|
example: false
|
||||||
|
type: boolean
|
||||||
|
view_counts_everywhere_api_enabled:
|
||||||
|
default: true
|
||||||
|
example: true
|
||||||
|
type: boolean
|
||||||
|
required:
|
||||||
|
- rweb_lists_timeline_redesign_enabled
|
||||||
|
- responsive_web_graphql_exclude_directive_enabled
|
||||||
|
- verified_phone_label_enabled
|
||||||
|
- creator_subscriptions_tweet_preview_api_enabled
|
||||||
|
- responsive_web_graphql_timeline_navigation_enabled
|
||||||
|
- responsive_web_graphql_skip_user_profile_image_extensions_enabled
|
||||||
|
- tweetypie_unmention_optimization_enabled
|
||||||
|
- responsive_web_edit_tweet_api_enabled
|
||||||
|
- graphql_is_translatable_rweb_tweet_is_translatable_enabled
|
||||||
|
- view_counts_everywhere_api_enabled
|
||||||
|
- longform_notetweets_consumption_enabled
|
||||||
|
- responsive_web_twitter_article_tweet_consumption_enabled
|
||||||
|
- tweet_awards_web_tipping_enabled
|
||||||
|
- freedom_of_speech_not_reach_fetch_enabled
|
||||||
|
- standardized_nudges_misinfo
|
||||||
|
- tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled
|
||||||
|
- longform_notetweets_rich_text_read_enabled
|
||||||
|
- longform_notetweets_inline_media_enabled
|
||||||
|
- responsive_web_media_download_video_enabled
|
||||||
|
- responsive_web_enhance_cards_enabled
|
||||||
|
type: object
|
||||||
|
in: query
|
||||||
|
name: features
|
||||||
|
required: true
|
||||||
|
- content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
properties:
|
||||||
|
withArticleRichContentState:
|
||||||
|
default: false
|
||||||
|
example: false
|
||||||
|
type: boolean
|
||||||
|
withAuxiliaryUserLabels:
|
||||||
|
default: false
|
||||||
|
example: false
|
||||||
|
type: boolean
|
||||||
|
required:
|
||||||
|
- withAuxiliaryUserLabels
|
||||||
|
- withArticleRichContentState
|
||||||
|
type: object
|
||||||
|
in: query
|
||||||
|
name: fieldToggles
|
||||||
|
required: true
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/UserHighlightsTweetsResponse'
|
||||||
|
description: Successful operation
|
||||||
|
headers:
|
||||||
|
x-connection-hash:
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
x-rate-limit-limit:
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
x-rate-limit-remaining:
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
x-rate-limit-reset:
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
x-response-time:
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
x-tfe-preserve-body:
|
||||||
|
schema:
|
||||||
|
type: boolean
|
||||||
|
x-transaction-id:
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
x-twitter-response-tags:
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
tags:
|
||||||
|
- tweet
|
||||||
/graphql/{pathQueryId}/UserMedia:
|
/graphql/{pathQueryId}/UserMedia:
|
||||||
get:
|
get:
|
||||||
description: get user media tweets
|
description: get user media tweets
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue