mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-09 14:50:25 +01:00
[destructive] error handling
This commit is contained in:
parent
28b4dbcaf5
commit
db793e66fb
16 changed files with 380 additions and 7115 deletions
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
|
|
@ -4,7 +4,7 @@
|
|||
"yaml.validate": true,
|
||||
"yaml.hover": true,
|
||||
"yaml.schemas": {
|
||||
"https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/schemas/v3.0/schema.json": "src/**/*.yaml"
|
||||
"https://raw.githubusercontent.com/OAI/OpenAPI-Specification/refs/heads/main/schemas/v3.0/schema.yaml": "src/**/*.yaml"
|
||||
},
|
||||
"[json]": {
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||
|
|
|
|||
|
|
@ -17,9 +17,8 @@ openapi-generator-cli generate -g <language> -i https://raw.githubusercontent.co
|
|||
|
||||
There are several outputs, but the one that most closely follows the OpenAPI specification is `dist/docs`.
|
||||
However, a lot of syntax that is not supported by some generators is used.
|
||||
Therefore, it is recommended to use `dist/compatible` or `dist/compatible_discriminator`.
|
||||
|
||||
You can also modify the hook to make the generated results more user-friendly. [build_config.py](./tools/build_config.py)
|
||||
You can also modify the hook to make the generated results more user-friendly. [build_config.py](./tools/build_config.py)
|
||||
|
||||
Note that the license also inherits to the output.
|
||||
|
||||
|
|
|
|||
275
dist/compatible/openapi-3.0.yaml
vendored
275
dist/compatible/openapi-3.0.yaml
vendored
|
|
@ -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:
|
||||
|
|
@ -1796,6 +1799,10 @@ components:
|
|||
properties:
|
||||
data:
|
||||
$ref: '#/components/schemas/HomeTimelineResponseData'
|
||||
errors:
|
||||
items:
|
||||
$ref: '#/components/schemas/Error'
|
||||
type: array
|
||||
required:
|
||||
- data
|
||||
TimelineShowAlert:
|
||||
|
|
@ -2195,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:
|
||||
|
|
@ -2253,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:
|
||||
|
|
@ -2460,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:
|
||||
|
|
@ -2569,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:
|
||||
|
|
@ -2710,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:
|
||||
|
|
@ -2930,6 +2949,10 @@ components:
|
|||
properties:
|
||||
data:
|
||||
$ref: '#/components/schemas/UserResponseData'
|
||||
errors:
|
||||
items:
|
||||
$ref: '#/components/schemas/Error'
|
||||
type: array
|
||||
required:
|
||||
- data
|
||||
UserResponseData:
|
||||
|
|
@ -3015,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:
|
||||
|
|
@ -3125,6 +3150,10 @@ components:
|
|||
properties:
|
||||
data:
|
||||
$ref: '#/components/schemas/UsersResponseData'
|
||||
errors:
|
||||
items:
|
||||
$ref: '#/components/schemas/Error'
|
||||
type: array
|
||||
required:
|
||||
- data
|
||||
UsersResponseData:
|
||||
|
|
@ -3133,8 +3162,6 @@ components:
|
|||
items:
|
||||
$ref: '#/components/schemas/UserResults'
|
||||
type: array
|
||||
required:
|
||||
- users
|
||||
securitySchemes:
|
||||
Accept:
|
||||
description: '*/*'
|
||||
|
|
@ -4067,9 +4094,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:
|
||||
|
|
@ -4138,9 +4163,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:
|
||||
|
|
@ -4214,9 +4237,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:
|
||||
|
|
@ -4468,9 +4489,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:
|
||||
|
|
@ -4539,9 +4558,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:
|
||||
|
|
@ -4615,9 +4632,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:
|
||||
|
|
@ -4691,9 +4706,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:
|
||||
|
|
@ -4762,9 +4775,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:
|
||||
|
|
@ -4852,9 +4863,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:
|
||||
|
|
@ -4942,9 +4951,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:
|
||||
|
|
@ -5032,9 +5039,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:
|
||||
|
|
@ -5122,9 +5127,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:
|
||||
|
|
@ -5212,9 +5215,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:
|
||||
|
|
@ -5304,9 +5305,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:
|
||||
|
|
@ -5403,9 +5402,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:
|
||||
|
|
@ -5491,9 +5488,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:
|
||||
|
|
@ -5553,9 +5548,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:
|
||||
|
|
@ -5641,9 +5634,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:
|
||||
|
|
@ -5731,9 +5722,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:
|
||||
|
|
@ -5834,9 +5823,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:
|
||||
|
|
@ -5937,9 +5924,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:
|
||||
|
|
@ -6011,9 +5996,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:
|
||||
|
|
@ -6081,9 +6064,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:
|
||||
|
|
@ -6164,9 +6145,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:
|
||||
|
|
@ -6254,9 +6233,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:
|
||||
|
|
@ -6353,9 +6330,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:
|
||||
|
|
@ -6452,9 +6427,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:
|
||||
|
|
@ -6549,9 +6522,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:
|
||||
|
|
@ -6615,9 +6586,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:
|
||||
|
|
@ -6655,7 +6624,7 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/OtherResponse'
|
||||
$ref: '#/components/schemas/OtherObjectAll'
|
||||
description: Successful operation
|
||||
tags:
|
||||
- other
|
||||
|
|
|
|||
6650
dist/compatible_discriminator/openapi-3.0.yaml
vendored
6650
dist/compatible_discriminator/openapi-3.0.yaml
vendored
File diff suppressed because it is too large
Load diff
275
dist/docs/openapi-3.0.yaml
vendored
275
dist/docs/openapi-3.0.yaml
vendored
|
|
@ -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:
|
||||
|
|
@ -1796,6 +1799,10 @@ components:
|
|||
properties:
|
||||
data:
|
||||
$ref: '#/components/schemas/HomeTimelineResponseData'
|
||||
errors:
|
||||
items:
|
||||
$ref: '#/components/schemas/Error'
|
||||
type: array
|
||||
required:
|
||||
- data
|
||||
TimelineShowAlert:
|
||||
|
|
@ -2195,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:
|
||||
|
|
@ -2253,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:
|
||||
|
|
@ -2460,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:
|
||||
|
|
@ -2569,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:
|
||||
|
|
@ -2710,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:
|
||||
|
|
@ -2930,6 +2949,10 @@ components:
|
|||
properties:
|
||||
data:
|
||||
$ref: '#/components/schemas/UserResponseData'
|
||||
errors:
|
||||
items:
|
||||
$ref: '#/components/schemas/Error'
|
||||
type: array
|
||||
required:
|
||||
- data
|
||||
UserResponseData:
|
||||
|
|
@ -3015,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:
|
||||
|
|
@ -3125,6 +3150,10 @@ components:
|
|||
properties:
|
||||
data:
|
||||
$ref: '#/components/schemas/UsersResponseData'
|
||||
errors:
|
||||
items:
|
||||
$ref: '#/components/schemas/Error'
|
||||
type: array
|
||||
required:
|
||||
- data
|
||||
UsersResponseData:
|
||||
|
|
@ -3133,8 +3162,6 @@ components:
|
|||
items:
|
||||
$ref: '#/components/schemas/UserResults'
|
||||
type: array
|
||||
required:
|
||||
- users
|
||||
securitySchemes:
|
||||
Accept:
|
||||
description: '*/*'
|
||||
|
|
@ -4173,9 +4200,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:
|
||||
|
|
@ -4244,9 +4269,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:
|
||||
|
|
@ -4320,9 +4343,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:
|
||||
|
|
@ -4574,9 +4595,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:
|
||||
|
|
@ -4645,9 +4664,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:
|
||||
|
|
@ -4721,9 +4738,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:
|
||||
|
|
@ -4797,9 +4812,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:
|
||||
|
|
@ -4868,9 +4881,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:
|
||||
|
|
@ -5064,9 +5075,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:
|
||||
|
|
@ -5260,9 +5269,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:
|
||||
|
|
@ -5456,9 +5463,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:
|
||||
|
|
@ -5652,9 +5657,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:
|
||||
|
|
@ -5860,9 +5863,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:
|
||||
|
|
@ -6073,9 +6074,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:
|
||||
|
|
@ -6303,9 +6302,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:
|
||||
|
|
@ -6494,9 +6491,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:
|
||||
|
|
@ -6564,9 +6559,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:
|
||||
|
|
@ -6758,9 +6751,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:
|
||||
|
|
@ -6959,9 +6950,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:
|
||||
|
|
@ -7214,9 +7203,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:
|
||||
|
|
@ -7444,9 +7431,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:
|
||||
|
|
@ -7518,9 +7503,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:
|
||||
|
|
@ -7639,9 +7622,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:
|
||||
|
|
@ -7784,9 +7765,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:
|
||||
|
|
@ -7985,9 +7964,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:
|
||||
|
|
@ -8215,9 +8192,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:
|
||||
|
|
@ -8440,9 +8415,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:
|
||||
|
|
@ -8665,9 +8638,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:
|
||||
|
|
@ -8763,9 +8734,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:
|
||||
|
|
@ -8803,7 +8772,7 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/OtherResponse'
|
||||
$ref: '#/components/schemas/OtherObjectAll'
|
||||
description: Successful operation
|
||||
tags:
|
||||
- other
|
||||
|
|
|
|||
|
|
@ -14,24 +14,22 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/BookmarksResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
$ref: "#/components/schemas/BookmarksResponse"
|
||||
tags:
|
||||
- "tweet"
|
||||
|
||||
components:
|
||||
schemas:
|
||||
BookmarksResponse:
|
||||
required:
|
||||
- "data"
|
||||
properties:
|
||||
data:
|
||||
$ref: "#/components/schemas/BookmarksResponseData"
|
||||
errors:
|
||||
type: array
|
||||
items:
|
||||
$ref: "./../response/error.yaml#/components/schemas/Error"
|
||||
|
||||
BookmarksResponseData:
|
||||
required:
|
||||
- "bookmark_timeline_v2"
|
||||
properties:
|
||||
bookmark_timeline_v2:
|
||||
$ref: "#/components/schemas/BookmarksTimeline"
|
||||
|
|
|
|||
|
|
@ -14,9 +14,7 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/FollowResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
$ref: "#/components/schemas/FollowResponse"
|
||||
tags:
|
||||
- "user-list"
|
||||
|
||||
|
|
@ -30,9 +28,7 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/FollowResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
$ref: "#/components/schemas/FollowResponse"
|
||||
tags:
|
||||
- "user-list"
|
||||
|
||||
|
|
@ -46,9 +42,7 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/FollowResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
$ref: "#/components/schemas/FollowResponse"
|
||||
tags:
|
||||
- "user-list"
|
||||
|
||||
|
|
@ -60,10 +54,12 @@ components:
|
|||
properties:
|
||||
data:
|
||||
$ref: "#/components/schemas/FollowResponseData"
|
||||
errors:
|
||||
type: array
|
||||
items:
|
||||
$ref: "./../response/error.yaml#/components/schemas/Error"
|
||||
|
||||
FollowResponseData:
|
||||
required:
|
||||
- "user"
|
||||
properties:
|
||||
user:
|
||||
$ref: "#/components/schemas/FollowResponseUser"
|
||||
|
|
|
|||
|
|
@ -14,13 +14,13 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/OtherResponse"
|
||||
$ref: "#/components/schemas/OtherObjectAll"
|
||||
tags:
|
||||
- "other"
|
||||
|
||||
components:
|
||||
schemas:
|
||||
OtherResponse:
|
||||
OtherObjectAll:
|
||||
type: object
|
||||
properties:
|
||||
Session:
|
||||
|
|
|
|||
|
|
@ -14,9 +14,7 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/FavoriteTweetResponseData"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
$ref: "#/components/schemas/FavoriteTweetResponse"
|
||||
tags:
|
||||
- "post"
|
||||
|
||||
|
|
@ -30,9 +28,7 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/UnfavoriteTweetResponseData"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
$ref: "#/components/schemas/UnfavoriteTweetResponse"
|
||||
tags:
|
||||
- "post"
|
||||
|
||||
|
|
@ -46,9 +42,7 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/CreateRetweetResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
$ref: "#/components/schemas/CreateRetweetResponse"
|
||||
tags:
|
||||
- "post"
|
||||
|
||||
|
|
@ -62,9 +56,7 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/DeleteRetweetResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
$ref: "#/components/schemas/DeleteRetweetResponse"
|
||||
tags:
|
||||
- "post"
|
||||
|
||||
|
|
@ -78,9 +70,7 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/CreateTweetResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
$ref: "#/components/schemas/CreateTweetResponse"
|
||||
tags:
|
||||
- "post"
|
||||
|
||||
|
|
@ -94,9 +84,7 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/DeleteTweetResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
$ref: "#/components/schemas/DeleteTweetResponse"
|
||||
tags:
|
||||
- "post"
|
||||
|
||||
|
|
@ -110,9 +98,7 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/CreateBookmarkResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
$ref: "#/components/schemas/CreateBookmarkResponse"
|
||||
tags:
|
||||
- "post"
|
||||
|
||||
|
|
@ -126,38 +112,43 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/DeleteBookmarkResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
$ref: "#/components/schemas/DeleteBookmarkResponse"
|
||||
tags:
|
||||
- "post"
|
||||
|
||||
components:
|
||||
schemas:
|
||||
FavoriteTweetResponseData:
|
||||
# ---Favorite---
|
||||
FavoriteTweetResponse:
|
||||
required:
|
||||
- "data"
|
||||
properties:
|
||||
data:
|
||||
$ref: "#/components/schemas/FavoriteTweet"
|
||||
errors:
|
||||
type: array
|
||||
items:
|
||||
$ref: "./../response/error.yaml#/components/schemas/Error"
|
||||
|
||||
FavoriteTweet:
|
||||
required:
|
||||
- "favorite_tweet"
|
||||
properties:
|
||||
favorite_tweet:
|
||||
type: string
|
||||
|
||||
UnfavoriteTweetResponseData:
|
||||
# ---Unfavorite---
|
||||
|
||||
UnfavoriteTweetResponse:
|
||||
required:
|
||||
- "data"
|
||||
properties:
|
||||
data:
|
||||
$ref: "#/components/schemas/UnfavoriteTweet"
|
||||
errors:
|
||||
type: array
|
||||
items:
|
||||
$ref: "./../response/error.yaml#/components/schemas/Error"
|
||||
|
||||
UnfavoriteTweet:
|
||||
required:
|
||||
- "unfavorite_tweet"
|
||||
properties:
|
||||
unfavorite_tweet:
|
||||
type: string
|
||||
|
|
@ -170,10 +161,12 @@ components:
|
|||
properties:
|
||||
data:
|
||||
$ref: "#/components/schemas/CreateRetweetResponseData"
|
||||
errors:
|
||||
type: array
|
||||
items:
|
||||
$ref: "./../response/error.yaml#/components/schemas/Error"
|
||||
|
||||
CreateRetweetResponseData:
|
||||
required:
|
||||
- "create_retweet"
|
||||
properties:
|
||||
create_retweet:
|
||||
$ref: "#/components/schemas/CreateRetweetResponseResult"
|
||||
|
|
@ -208,19 +201,23 @@ components:
|
|||
full_text:
|
||||
type: string
|
||||
|
||||
# ---DeleteRetweet---
|
||||
|
||||
DeleteRetweetResponse:
|
||||
required:
|
||||
- "data"
|
||||
properties:
|
||||
data:
|
||||
$ref: "#/components/schemas/DeleteRetweetResponseData"
|
||||
errors:
|
||||
type: array
|
||||
items:
|
||||
$ref: "./../response/error.yaml#/components/schemas/Error"
|
||||
|
||||
DeleteRetweetResponseData:
|
||||
required:
|
||||
- "unretweet"
|
||||
properties:
|
||||
create_retweet:
|
||||
$ref: "#/components/schemas/CreateRetweetResponseResult"
|
||||
$ref: "#/components/schemas/DeleteRetweetResponseResult"
|
||||
|
||||
DeleteRetweetResponseResult:
|
||||
required:
|
||||
|
|
@ -246,10 +243,12 @@ components:
|
|||
properties:
|
||||
data:
|
||||
$ref: "#/components/schemas/CreateTweetResponseData"
|
||||
errors:
|
||||
type: array
|
||||
items:
|
||||
$ref: "./../response/error.yaml#/components/schemas/Error"
|
||||
|
||||
CreateTweetResponseData:
|
||||
required:
|
||||
- "create_tweet"
|
||||
properties:
|
||||
create_tweet:
|
||||
$ref: "#/components/schemas/CreateTweetResponseResult"
|
||||
|
|
@ -268,16 +267,20 @@ components:
|
|||
result:
|
||||
$ref: "./../schemas/tweet.yaml#/components/schemas/Tweet"
|
||||
|
||||
# ---DeleteTweet---
|
||||
|
||||
DeleteTweetResponse:
|
||||
required:
|
||||
- "data"
|
||||
properties:
|
||||
data:
|
||||
$ref: "#/components/schemas/DeleteTweetResponseData"
|
||||
errors:
|
||||
type: array
|
||||
items:
|
||||
$ref: "./../response/error.yaml#/components/schemas/Error"
|
||||
|
||||
DeleteTweetResponseData:
|
||||
required:
|
||||
- "delete_tweet"
|
||||
properties:
|
||||
delete_retweet:
|
||||
$ref: "#/components/schemas/DeleteTweetResponseResult"
|
||||
|
|
@ -289,30 +292,38 @@ components:
|
|||
tweet_results:
|
||||
type: object
|
||||
|
||||
# ---Bookmark---
|
||||
|
||||
CreateBookmarkResponse:
|
||||
required:
|
||||
- "data"
|
||||
properties:
|
||||
data:
|
||||
$ref: "#/components/schemas/CreateBookmarkResponseData"
|
||||
errors:
|
||||
type: array
|
||||
items:
|
||||
$ref: "./../response/error.yaml#/components/schemas/Error"
|
||||
|
||||
CreateBookmarkResponseData:
|
||||
required:
|
||||
- "tweet_bookmark_put"
|
||||
properties:
|
||||
tweet_bookmark_put:
|
||||
type: string
|
||||
|
||||
# ---DeleteBookmark---
|
||||
|
||||
DeleteBookmarkResponse:
|
||||
required:
|
||||
- "data"
|
||||
properties:
|
||||
data:
|
||||
$ref: "#/components/schemas/DeleteBookmarkResponseData"
|
||||
errors:
|
||||
type: array
|
||||
items:
|
||||
$ref: "./../response/error.yaml#/components/schemas/Error"
|
||||
|
||||
DeleteBookmarkResponseData:
|
||||
required:
|
||||
- "tweet_bookmark_delete"
|
||||
properties:
|
||||
tweet_bookmark_delete:
|
||||
type: string
|
||||
|
|
|
|||
|
|
@ -14,9 +14,7 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/ProfileResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
$ref: "#/components/schemas/ProfileResponse"
|
||||
|
||||
components:
|
||||
schemas:
|
||||
|
|
@ -26,10 +24,12 @@ components:
|
|||
properties:
|
||||
data:
|
||||
$ref: "#/components/schemas/ProfileResponseData"
|
||||
errors:
|
||||
type: array
|
||||
items:
|
||||
$ref: "./../response/error.yaml#/components/schemas/Error"
|
||||
|
||||
ProfileResponseData:
|
||||
required:
|
||||
- "user_result_by_screen_name"
|
||||
properties:
|
||||
user_result_by_screen_name:
|
||||
$ref: "#/components/schemas/UserResultByScreenName"
|
||||
|
|
|
|||
|
|
@ -14,9 +14,7 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/TimelineResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
$ref: "#/components/schemas/TimelineResponse"
|
||||
tags:
|
||||
- "tweet"
|
||||
|
||||
|
|
@ -30,9 +28,7 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/TimelineResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
$ref: "#/components/schemas/TimelineResponse"
|
||||
tags:
|
||||
- "tweet"
|
||||
|
||||
|
|
@ -46,9 +42,7 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/ListLatestTweetsTimelineResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
$ref: "#/components/schemas/ListLatestTweetsTimelineResponse"
|
||||
tags:
|
||||
- "tweet"
|
||||
|
||||
|
|
@ -62,9 +56,7 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/SearchTimelineResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
$ref: "#/components/schemas/SearchTimelineResponse"
|
||||
tags:
|
||||
- "tweet"
|
||||
|
||||
|
|
@ -76,10 +68,12 @@ components:
|
|||
properties:
|
||||
data:
|
||||
$ref: "#/components/schemas/HomeTimelineResponseData"
|
||||
errors:
|
||||
type: array
|
||||
items:
|
||||
$ref: "./../response/error.yaml#/components/schemas/Error"
|
||||
|
||||
HomeTimelineResponseData:
|
||||
required:
|
||||
- "home"
|
||||
properties:
|
||||
home:
|
||||
$ref: "#/components/schemas/HomeTimelineHome"
|
||||
|
|
@ -97,10 +91,12 @@ components:
|
|||
properties:
|
||||
data:
|
||||
$ref: "#/components/schemas/ListTweetsTimelineData"
|
||||
errors:
|
||||
type: array
|
||||
items:
|
||||
$ref: "./../response/error.yaml#/components/schemas/Error"
|
||||
|
||||
ListTweetsTimelineData:
|
||||
required:
|
||||
- "list"
|
||||
properties:
|
||||
list:
|
||||
$ref: "#/components/schemas/ListTweetsTimelineList"
|
||||
|
|
@ -123,10 +119,12 @@ components:
|
|||
properties:
|
||||
data:
|
||||
$ref: "#/components/schemas/SearchTimelineData"
|
||||
errors:
|
||||
type: array
|
||||
items:
|
||||
$ref: "./../response/error.yaml#/components/schemas/Error"
|
||||
|
||||
SearchTimelineData:
|
||||
required:
|
||||
- "search_by_raw_query"
|
||||
properties:
|
||||
search_by_raw_query:
|
||||
$ref: "#/components/schemas/SearchByRawQuery"
|
||||
|
|
|
|||
|
|
@ -14,9 +14,7 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/TweetDetailResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
$ref: "#/components/schemas/TweetDetailResponse"
|
||||
tags:
|
||||
- "tweet"
|
||||
|
||||
|
|
@ -30,9 +28,7 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/TweetResultByRestIdResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
$ref: "#/components/schemas/TweetResultByRestIdResponse"
|
||||
# tags:
|
||||
# - "tweet"
|
||||
|
||||
|
|
@ -46,9 +42,7 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/TweetFavoritersResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
$ref: "#/components/schemas/TweetFavoritersResponse"
|
||||
tags:
|
||||
- "user-list"
|
||||
|
||||
|
|
@ -62,9 +56,7 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/TweetRetweetersResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
$ref: "#/components/schemas/TweetRetweetersResponse"
|
||||
tags:
|
||||
- "user-list"
|
||||
|
||||
|
|
@ -76,10 +68,12 @@ components:
|
|||
properties:
|
||||
data:
|
||||
$ref: "#/components/schemas/TweetDetailResponseData"
|
||||
errors:
|
||||
type: array
|
||||
items:
|
||||
$ref: "./../response/error.yaml#/components/schemas/Error"
|
||||
|
||||
TweetDetailResponseData:
|
||||
required:
|
||||
- "threaded_conversation_with_injections_v2"
|
||||
properties:
|
||||
threaded_conversation_with_injections_v2:
|
||||
$ref: "./../schemas/timeline.yaml#/components/schemas/Timeline"
|
||||
|
|
@ -90,10 +84,12 @@ components:
|
|||
properties:
|
||||
data:
|
||||
$ref: "#/components/schemas/TweetResultByRestIdData"
|
||||
errors:
|
||||
type: array
|
||||
items:
|
||||
$ref: "./../response/error.yaml#/components/schemas/Error"
|
||||
|
||||
TweetResultByRestIdData:
|
||||
required:
|
||||
- "tweetResult"
|
||||
properties:
|
||||
tweetResult:
|
||||
$ref: "./../schemas/content.yaml#/components/schemas/ItemResult"
|
||||
|
|
@ -104,10 +100,12 @@ components:
|
|||
properties:
|
||||
data:
|
||||
$ref: "#/components/schemas/TweetFavoritersResponseData"
|
||||
errors:
|
||||
type: array
|
||||
items:
|
||||
$ref: "./../response/error.yaml#/components/schemas/Error"
|
||||
|
||||
TweetFavoritersResponseData:
|
||||
required:
|
||||
- "favoriters_timeline"
|
||||
properties:
|
||||
favoriters_timeline:
|
||||
$ref: "./../schemas/timeline.yaml#/components/schemas/TimelineV2"
|
||||
|
|
@ -118,10 +116,12 @@ components:
|
|||
properties:
|
||||
data:
|
||||
$ref: "#/components/schemas/TweetRetweetersResponseData"
|
||||
errors:
|
||||
type: array
|
||||
items:
|
||||
$ref: "./../response/error.yaml#/components/schemas/Error"
|
||||
|
||||
TweetRetweetersResponseData:
|
||||
required:
|
||||
- "retweeters_timeline"
|
||||
properties:
|
||||
retweeters_timeline:
|
||||
$ref: "./../schemas/timeline.yaml#/components/schemas/TimelineV2"
|
||||
|
|
|
|||
|
|
@ -14,9 +14,7 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/UserResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
$ref: "#/components/schemas/UserResponse"
|
||||
tags:
|
||||
- "user"
|
||||
|
||||
|
|
@ -30,9 +28,7 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/UserResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
$ref: "#/components/schemas/UserResponse"
|
||||
tags:
|
||||
- "user"
|
||||
|
||||
|
|
@ -46,9 +42,7 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/UsersResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
$ref: "#/components/schemas/UsersResponse"
|
||||
tags:
|
||||
- "users"
|
||||
|
||||
|
|
@ -60,6 +54,10 @@ components:
|
|||
properties:
|
||||
data:
|
||||
$ref: "#/components/schemas/UserResponseData"
|
||||
errors:
|
||||
type: array
|
||||
items:
|
||||
$ref: "./../response/error.yaml#/components/schemas/Error"
|
||||
|
||||
UserResponseData:
|
||||
properties:
|
||||
|
|
@ -72,10 +70,12 @@ components:
|
|||
properties:
|
||||
data:
|
||||
$ref: "#/components/schemas/UsersResponseData"
|
||||
errors:
|
||||
type: array
|
||||
items:
|
||||
$ref: "./../response/error.yaml#/components/schemas/Error"
|
||||
|
||||
UsersResponseData:
|
||||
required:
|
||||
- "users"
|
||||
properties:
|
||||
users:
|
||||
type: array
|
||||
|
|
|
|||
|
|
@ -14,9 +14,7 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/UserTweetsResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
$ref: "#/components/schemas/UserTweetsResponse"
|
||||
tags:
|
||||
- "tweet"
|
||||
|
||||
|
|
@ -30,9 +28,7 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/UserTweetsResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
$ref: "#/components/schemas/UserTweetsResponse"
|
||||
tags:
|
||||
- "tweet"
|
||||
|
||||
|
|
@ -46,9 +42,7 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/UserHighlightsTweetsResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
$ref: "#/components/schemas/UserHighlightsTweetsResponse"
|
||||
tags:
|
||||
- "tweet"
|
||||
|
||||
|
|
@ -62,9 +56,7 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/UserTweetsResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
$ref: "#/components/schemas/UserTweetsResponse"
|
||||
tags:
|
||||
- "tweet"
|
||||
|
||||
|
|
@ -78,9 +70,7 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/UserTweetsResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
$ref: "#/components/schemas/UserTweetsResponse"
|
||||
tags:
|
||||
- "tweet"
|
||||
|
||||
|
|
@ -92,10 +82,12 @@ components:
|
|||
properties:
|
||||
data:
|
||||
$ref: "#/components/schemas/UserTweetsData"
|
||||
errors:
|
||||
type: array
|
||||
items:
|
||||
$ref: "./../response/error.yaml#/components/schemas/Error"
|
||||
|
||||
UserTweetsData:
|
||||
required:
|
||||
- "user"
|
||||
properties:
|
||||
user:
|
||||
$ref: "#/components/schemas/UserTweetsUser"
|
||||
|
|
@ -123,10 +115,12 @@ components:
|
|||
properties:
|
||||
data:
|
||||
$ref: "#/components/schemas/UserHighlightsTweetsData"
|
||||
errors:
|
||||
type: array
|
||||
items:
|
||||
$ref: "./../response/error.yaml#/components/schemas/Error"
|
||||
|
||||
UserHighlightsTweetsData:
|
||||
required:
|
||||
- "user"
|
||||
properties:
|
||||
user:
|
||||
$ref: "#/components/schemas/UserHighlightsTweetsUser"
|
||||
|
|
|
|||
|
|
@ -6,25 +6,6 @@ info:
|
|||
paths: {}
|
||||
components:
|
||||
schemas:
|
||||
Errors:
|
||||
type: object
|
||||
required:
|
||||
- errors
|
||||
properties:
|
||||
errors:
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/components/schemas/Error"
|
||||
data:
|
||||
$ref: "#/components/schemas/ErrorsData"
|
||||
|
||||
ErrorsData:
|
||||
type: object
|
||||
properties:
|
||||
user:
|
||||
type: string # always null
|
||||
pattern: "dummy"
|
||||
|
||||
Error:
|
||||
type: object
|
||||
required:
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
inputSpec: dist/compatible_discriminator/openapi-3.0.yaml
|
||||
inputSpec: dist/compatible/openapi-3.0.yaml
|
||||
outputDir: python_generated
|
||||
|
||||
useOneOfDiscriminatorLookup: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue