1
Fork 0
mirror of https://github.com/thegeneralist01/twitter-openapi synced 2026-01-11 15:40:26 +01:00

Merge branch 'main' into dev

Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
ふぁ 2024-11-07 22:23:38 +09:00
commit e7bbba9fb8
No known key found for this signature in database
GPG key ID: 83A8A5E74872A8AA
21 changed files with 410 additions and 7166 deletions

View file

@ -266,14 +266,14 @@ components:
properties:
data:
$ref: '#/components/schemas/BookmarksResponseData'
required:
- data
errors:
items:
$ref: '#/components/schemas/Error'
type: array
BookmarksResponseData:
properties:
bookmark_timeline_v2:
$ref: '#/components/schemas/BookmarksTimeline'
required:
- bookmark_timeline_v2
BookmarksTimeline:
properties:
timeline:
@ -577,14 +577,16 @@ components:
properties:
data:
$ref: '#/components/schemas/CreateBookmarkResponseData'
errors:
items:
$ref: '#/components/schemas/Error'
type: array
required:
- data
CreateBookmarkResponseData:
properties:
tweet_bookmark_put:
type: string
required:
- tweet_bookmark_put
CreateRetweet:
properties:
result:
@ -595,14 +597,16 @@ components:
properties:
data:
$ref: '#/components/schemas/CreateRetweetResponseData'
errors:
items:
$ref: '#/components/schemas/Error'
type: array
required:
- data
CreateRetweetResponseData:
properties:
create_retweet:
$ref: '#/components/schemas/CreateRetweetResponseResult'
required:
- create_retweet
CreateRetweetResponseResult:
properties:
retweet_results:
@ -619,14 +623,16 @@ components:
properties:
data:
$ref: '#/components/schemas/CreateTweetResponseData'
errors:
items:
$ref: '#/components/schemas/Error'
type: array
required:
- data
CreateTweetResponseData:
properties:
create_tweet:
$ref: '#/components/schemas/CreateTweetResponseResult'
required:
- create_tweet
CreateTweetResponseResult:
properties:
tweet_results:
@ -654,14 +660,16 @@ components:
properties:
data:
$ref: '#/components/schemas/DeleteBookmarkResponseData'
errors:
items:
$ref: '#/components/schemas/Error'
type: array
required:
- data
DeleteBookmarkResponseData:
properties:
tweet_bookmark_delete:
type: string
required:
- tweet_bookmark_delete
DeleteRetweet:
properties:
result:
@ -674,14 +682,16 @@ components:
properties:
data:
$ref: '#/components/schemas/DeleteRetweetResponseData'
errors:
items:
$ref: '#/components/schemas/Error'
type: array
required:
- data
DeleteRetweetResponseData:
properties:
create_retweet:
$ref: '#/components/schemas/CreateRetweetResponseResult'
required:
- unretweet
$ref: '#/components/schemas/DeleteRetweetResponseResult'
DeleteRetweetResponseResult:
properties:
retweet_results:
@ -692,14 +702,16 @@ components:
properties:
data:
$ref: '#/components/schemas/DeleteTweetResponseData'
errors:
items:
$ref: '#/components/schemas/Error'
type: array
required:
- data
DeleteTweetResponseData:
properties:
delete_retweet:
$ref: '#/components/schemas/DeleteTweetResponseResult'
required:
- delete_tweet
DeleteTweetResponseResult:
properties:
tweet_results:
@ -811,23 +823,6 @@ components:
- kind
- tracing
type: object
Errors:
properties:
data:
$ref: '#/components/schemas/ErrorsData'
errors:
items:
$ref: '#/components/schemas/Error'
type: array
required:
- errors
type: object
ErrorsData:
properties:
user:
pattern: dummy
type: string
type: object
ExtMediaAvailability:
properties:
reason:
@ -849,12 +844,14 @@ components:
properties:
favorite_tweet:
type: string
required:
- favorite_tweet
FavoriteTweetResponseData:
FavoriteTweetResponse:
properties:
data:
$ref: '#/components/schemas/FavoriteTweet'
errors:
items:
$ref: '#/components/schemas/Error'
type: array
required:
- data
FeedbackInfo:
@ -869,14 +866,16 @@ components:
properties:
data:
$ref: '#/components/schemas/FollowResponseData'
errors:
items:
$ref: '#/components/schemas/Error'
type: array
required:
- data
FollowResponseData:
properties:
user:
$ref: '#/components/schemas/FollowResponseUser'
required:
- user
FollowResponseResult:
properties:
__typename:
@ -920,8 +919,6 @@ components:
properties:
home:
$ref: '#/components/schemas/HomeTimelineHome'
required:
- home
InstructionType:
enum:
- TimelineAddEntries
@ -981,6 +978,10 @@ components:
properties:
data:
$ref: '#/components/schemas/ListTweetsTimelineData'
errors:
items:
$ref: '#/components/schemas/Error'
type: array
required:
- data
ListTweetsTimeline:
@ -991,8 +992,6 @@ components:
properties:
list:
$ref: '#/components/schemas/ListTweetsTimelineList'
required:
- list
ListTweetsTimelineList:
properties:
tweets_timeline:
@ -1368,7 +1367,7 @@ components:
required:
- fetchStatus
type: object
OtherResponse:
OtherObjectAll:
properties:
Session:
$ref: '#/components/schemas/Session'
@ -1387,14 +1386,16 @@ components:
properties:
data:
$ref: '#/components/schemas/ProfileResponseData'
errors:
items:
$ref: '#/components/schemas/Error'
type: array
required:
- data
ProfileResponseData:
properties:
user_result_by_screen_name:
$ref: '#/components/schemas/UserResultByScreenName'
required:
- user_result_by_screen_name
QuotedRefResult:
properties:
result:
@ -1445,12 +1446,14 @@ components:
properties:
search_by_raw_query:
$ref: '#/components/schemas/SearchByRawQuery'
required:
- search_by_raw_query
SearchTimelineResponse:
properties:
data:
$ref: '#/components/schemas/SearchTimelineData'
errors:
items:
$ref: '#/components/schemas/Error'
type: array
required:
- data
SelfThread:
@ -1468,10 +1471,6 @@ components:
type: boolean
other:
type: boolean
required:
- adult_content
- graphic_violence
- other
Session:
properties:
SsoInitTokens:
@ -1800,6 +1799,10 @@ components:
properties:
data:
$ref: '#/components/schemas/HomeTimelineResponseData'
errors:
items:
$ref: '#/components/schemas/Error'
type: array
required:
- data
TimelineShowAlert:
@ -2199,14 +2202,16 @@ components:
properties:
data:
$ref: '#/components/schemas/TweetDetailResponseData'
errors:
items:
$ref: '#/components/schemas/Error'
type: array
required:
- data
TweetDetailResponseData:
properties:
threaded_conversation_with_injections_v2:
$ref: '#/components/schemas/Timeline'
required:
- threaded_conversation_with_injections_v2
TweetEditControl:
properties:
edit_control_initial:
@ -2257,14 +2262,16 @@ components:
properties:
data:
$ref: '#/components/schemas/TweetFavoritersResponseData'
errors:
items:
$ref: '#/components/schemas/Error'
type: array
required:
- data
TweetFavoritersResponseData:
properties:
favoriters_timeline:
$ref: '#/components/schemas/TimelineV2'
required:
- favoriters_timeline
TweetInterstitial:
properties:
__typename:
@ -2464,26 +2471,30 @@ components:
properties:
tweetResult:
$ref: '#/components/schemas/ItemResult'
required:
- tweetResult
TweetResultByRestIdResponse:
properties:
data:
$ref: '#/components/schemas/TweetResultByRestIdData'
errors:
items:
$ref: '#/components/schemas/Error'
type: array
required:
- data
TweetRetweetersResponse:
properties:
data:
$ref: '#/components/schemas/TweetRetweetersResponseData'
errors:
items:
$ref: '#/components/schemas/Error'
type: array
required:
- data
TweetRetweetersResponseData:
properties:
retweeters_timeline:
$ref: '#/components/schemas/TimelineV2'
required:
- retweeters_timeline
TweetTombstone:
additionalProperties: true
properties:
@ -2573,12 +2584,14 @@ components:
properties:
unfavorite_tweet:
type: string
required:
- unfavorite_tweet
UnfavoriteTweetResponseData:
UnfavoriteTweetResponse:
properties:
data:
$ref: '#/components/schemas/UnfavoriteTweet'
errors:
items:
$ref: '#/components/schemas/Error'
type: array
required:
- data
UnifiedCard:
@ -2714,12 +2727,14 @@ components:
properties:
user:
$ref: '#/components/schemas/UserHighlightsTweetsUser'
required:
- user
UserHighlightsTweetsResponse:
properties:
data:
$ref: '#/components/schemas/UserHighlightsTweetsData'
errors:
items:
$ref: '#/components/schemas/Error'
type: array
required:
- data
UserHighlightsTweetsResult:
@ -2934,6 +2949,10 @@ components:
properties:
data:
$ref: '#/components/schemas/UserResponseData'
errors:
items:
$ref: '#/components/schemas/Error'
type: array
required:
- data
UserResponseData:
@ -3019,12 +3038,14 @@ components:
properties:
user:
$ref: '#/components/schemas/UserTweetsUser'
required:
- user
UserTweetsResponse:
properties:
data:
$ref: '#/components/schemas/UserTweetsData'
errors:
items:
$ref: '#/components/schemas/Error'
type: array
required:
- data
UserTweetsResult:
@ -3129,6 +3150,10 @@ components:
properties:
data:
$ref: '#/components/schemas/UsersResponseData'
errors:
items:
$ref: '#/components/schemas/Error'
type: array
required:
- data
UsersResponseData:
@ -3137,8 +3162,6 @@ components:
items:
$ref: '#/components/schemas/UserResults'
type: array
required:
- users
securitySchemes:
Accept:
description: '*/*'
@ -4076,9 +4099,7 @@ paths:
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/BookmarksResponse'
- $ref: '#/components/schemas/Errors'
$ref: '#/components/schemas/BookmarksResponse'
description: Successful operation
headers:
x-connection-hash:
@ -4147,9 +4168,7 @@ paths:
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/CreateBookmarkResponse'
- $ref: '#/components/schemas/Errors'
$ref: '#/components/schemas/CreateBookmarkResponse'
description: Successful operation
headers:
x-connection-hash:
@ -4223,9 +4242,7 @@ paths:
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/CreateRetweetResponse'
- $ref: '#/components/schemas/Errors'
$ref: '#/components/schemas/CreateRetweetResponse'
description: Successful operation
headers:
x-connection-hash:
@ -4477,9 +4494,7 @@ paths:
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/CreateTweetResponse'
- $ref: '#/components/schemas/Errors'
$ref: '#/components/schemas/CreateTweetResponse'
description: Successful operation
headers:
x-connection-hash:
@ -4548,9 +4563,7 @@ paths:
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/DeleteBookmarkResponse'
- $ref: '#/components/schemas/Errors'
$ref: '#/components/schemas/DeleteBookmarkResponse'
description: Successful operation
headers:
x-connection-hash:
@ -4624,9 +4637,7 @@ paths:
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/DeleteRetweetResponse'
- $ref: '#/components/schemas/Errors'
$ref: '#/components/schemas/DeleteRetweetResponse'
description: Successful operation
headers:
x-connection-hash:
@ -4700,9 +4711,7 @@ paths:
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/DeleteTweetResponse'
- $ref: '#/components/schemas/Errors'
$ref: '#/components/schemas/DeleteTweetResponse'
description: Successful operation
headers:
x-connection-hash:
@ -4771,9 +4780,7 @@ paths:
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/FavoriteTweetResponseData'
- $ref: '#/components/schemas/Errors'
$ref: '#/components/schemas/FavoriteTweetResponse'
description: Successful operation
headers:
x-connection-hash:
@ -4861,9 +4868,7 @@ paths:
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/TweetFavoritersResponse'
- $ref: '#/components/schemas/Errors'
$ref: '#/components/schemas/TweetFavoritersResponse'
description: Successful operation
headers:
x-connection-hash:
@ -4951,9 +4956,7 @@ paths:
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/FollowResponse'
- $ref: '#/components/schemas/Errors'
$ref: '#/components/schemas/FollowResponse'
description: Successful operation
headers:
x-connection-hash:
@ -5041,9 +5044,7 @@ paths:
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/FollowResponse'
- $ref: '#/components/schemas/Errors'
$ref: '#/components/schemas/FollowResponse'
description: Successful operation
headers:
x-connection-hash:
@ -5131,9 +5132,7 @@ paths:
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/FollowResponse'
- $ref: '#/components/schemas/Errors'
$ref: '#/components/schemas/FollowResponse'
description: Successful operation
headers:
x-connection-hash:
@ -5221,9 +5220,7 @@ paths:
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/TimelineResponse'
- $ref: '#/components/schemas/Errors'
$ref: '#/components/schemas/TimelineResponse'
description: Successful operation
headers:
x-connection-hash:
@ -5313,9 +5310,7 @@ paths:
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/TimelineResponse'
- $ref: '#/components/schemas/Errors'
$ref: '#/components/schemas/TimelineResponse'
description: Successful operation
headers:
x-connection-hash:
@ -5412,9 +5407,7 @@ paths:
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/UserTweetsResponse'
- $ref: '#/components/schemas/Errors'
$ref: '#/components/schemas/UserTweetsResponse'
description: Successful operation
headers:
x-connection-hash:
@ -5500,9 +5493,7 @@ paths:
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/ListLatestTweetsTimelineResponse'
- $ref: '#/components/schemas/Errors'
$ref: '#/components/schemas/ListLatestTweetsTimelineResponse'
description: Successful operation
headers:
x-connection-hash:
@ -5562,9 +5553,7 @@ paths:
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/ProfileResponse'
- $ref: '#/components/schemas/Errors'
$ref: '#/components/schemas/ProfileResponse'
description: Successful operation
headers:
x-connection-hash:
@ -5650,9 +5639,7 @@ paths:
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/TweetRetweetersResponse'
- $ref: '#/components/schemas/Errors'
$ref: '#/components/schemas/TweetRetweetersResponse'
description: Successful operation
headers:
x-connection-hash:
@ -5740,9 +5727,7 @@ paths:
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/SearchTimelineResponse'
- $ref: '#/components/schemas/Errors'
$ref: '#/components/schemas/SearchTimelineResponse'
description: Successful operation
headers:
x-connection-hash:
@ -5843,9 +5828,7 @@ paths:
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/TweetDetailResponse'
- $ref: '#/components/schemas/Errors'
$ref: '#/components/schemas/TweetDetailResponse'
description: Successful operation
headers:
x-connection-hash:
@ -5946,9 +5929,7 @@ paths:
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/TweetResultByRestIdResponse'
- $ref: '#/components/schemas/Errors'
$ref: '#/components/schemas/TweetResultByRestIdResponse'
description: Successful operation
headers:
x-connection-hash:
@ -6020,9 +6001,7 @@ paths:
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/UnfavoriteTweetResponseData'
- $ref: '#/components/schemas/Errors'
$ref: '#/components/schemas/UnfavoriteTweetResponse'
description: Successful operation
headers:
x-connection-hash:
@ -6090,9 +6069,7 @@ paths:
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/UserResponse'
- $ref: '#/components/schemas/Errors'
$ref: '#/components/schemas/UserResponse'
description: Successful operation
headers:
x-connection-hash:
@ -6173,9 +6150,7 @@ paths:
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/UserResponse'
- $ref: '#/components/schemas/Errors'
$ref: '#/components/schemas/UserResponse'
description: Successful operation
headers:
x-connection-hash:
@ -6263,9 +6238,7 @@ paths:
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/UserHighlightsTweetsResponse'
- $ref: '#/components/schemas/Errors'
$ref: '#/components/schemas/UserHighlightsTweetsResponse'
description: Successful operation
headers:
x-connection-hash:
@ -6362,9 +6335,7 @@ paths:
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/UserTweetsResponse'
- $ref: '#/components/schemas/Errors'
$ref: '#/components/schemas/UserTweetsResponse'
description: Successful operation
headers:
x-connection-hash:
@ -6461,9 +6432,7 @@ paths:
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/UserTweetsResponse'
- $ref: '#/components/schemas/Errors'
$ref: '#/components/schemas/UserTweetsResponse'
description: Successful operation
headers:
x-connection-hash:
@ -6558,9 +6527,7 @@ paths:
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/UserTweetsResponse'
- $ref: '#/components/schemas/Errors'
$ref: '#/components/schemas/UserTweetsResponse'
description: Successful operation
headers:
x-connection-hash:
@ -6624,9 +6591,7 @@ paths:
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/UsersResponse'
- $ref: '#/components/schemas/Errors'
$ref: '#/components/schemas/UsersResponse'
description: Successful operation
headers:
x-connection-hash:
@ -6664,7 +6629,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/OtherResponse'
$ref: '#/components/schemas/OtherObjectAll'
description: Successful operation
tags:
- other