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

Merge branch 'main' of github.com:fa0311/twitter-openapi

Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
ふぁ 2023-08-06 20:24:19 +09:00
commit 7bba1caf88
No known key found for this signature in database
GPG key ID: 83A8A5E74872A8AA
28 changed files with 258 additions and 94 deletions

View file

@ -2,6 +2,7 @@
Twitter OpenAPI(Swagger) specification Twitter OpenAPI(Swagger) specification
- [Python](https://github.com/fa0311/twitter_openapi_python)
- [Dart](https://github.com/fa0311/twitter_openapi_dart) - [Dart](https://github.com/fa0311/twitter_openapi_dart)
- [TypeScript](https://github.com/fa0311/twitter-openapi-typescript) - [TypeScript](https://github.com/fa0311/twitter-openapi-typescript)
- [React Documents](https://github.com/fa0311/twitter-openapi-docs) - [React Documents](https://github.com/fa0311/twitter-openapi-docs)

View file

@ -91,7 +91,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/FollowResponse' oneOf:
- $ref: '#/components/schemas/FollowResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation description: Successful operation
headers: headers:
x-connection-hash: x-connection-hash:
@ -182,7 +184,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/FollowResponse' oneOf:
- $ref: '#/components/schemas/FollowResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation description: Successful operation
headers: headers:
x-connection-hash: x-connection-hash:
@ -264,7 +268,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/FollowResponse' oneOf:
- $ref: '#/components/schemas/FollowResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation description: Successful operation
headers: headers:
x-connection-hash: x-connection-hash:

View file

@ -90,7 +90,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/OtherResponse' oneOf:
- $ref: '#/components/schemas/OtherResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation description: Successful operation
tags: tags:
- other - other

View file

@ -181,7 +181,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/CreateRetweetResponse' oneOf:
- $ref: '#/components/schemas/CreateRetweetResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation description: Successful operation
headers: headers:
x-connection-hash: x-connection-hash:
@ -375,7 +377,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/CreateTweetResponse' oneOf:
- $ref: '#/components/schemas/CreateTweetResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation description: Successful operation
headers: headers:
x-connection-hash: x-connection-hash:
@ -449,7 +453,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/DeleteRetweetResponse' oneOf:
- $ref: '#/components/schemas/DeleteRetweetResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation description: Successful operation
headers: headers:
x-connection-hash: x-connection-hash:
@ -523,7 +529,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/DeleteTweetResponse' oneOf:
- $ref: '#/components/schemas/DeleteTweetResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation description: Successful operation
headers: headers:
x-connection-hash: x-connection-hash:
@ -597,7 +605,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/FavoriteTweetResponseData' oneOf:
- $ref: '#/components/schemas/FavoriteTweetResponseData'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation description: Successful operation
headers: headers:
x-connection-hash: x-connection-hash:
@ -671,7 +681,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/UnfavoriteTweetResponseData' oneOf:
- $ref: '#/components/schemas/UnfavoriteTweetResponseData'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation description: Successful operation
headers: headers:
x-connection-hash: x-connection-hash:

View file

@ -95,7 +95,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/ProfileResponse' oneOf:
- $ref: '#/components/schemas/ProfileResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation description: Successful operation
headers: headers:
x-connection-hash: x-connection-hash:

View file

@ -124,7 +124,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/TimelineResponse' oneOf:
- $ref: '#/components/schemas/TimelineResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation description: Successful operation
headers: headers:
x-connection-hash: x-connection-hash:
@ -206,7 +208,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/TimelineResponse' oneOf:
- $ref: '#/components/schemas/TimelineResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation description: Successful operation
headers: headers:
x-connection-hash: x-connection-hash:
@ -286,7 +290,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/ListLatestTweetsTimelineResponse' oneOf:
- $ref: '#/components/schemas/ListLatestTweetsTimelineResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation description: Successful operation
headers: headers:
x-connection-hash: x-connection-hash:
@ -377,7 +383,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/SearchTimelineResponse' oneOf:
- $ref: '#/components/schemas/SearchTimelineResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation description: Successful operation
headers: headers:
x-connection-hash: x-connection-hash:

View file

@ -96,7 +96,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/TweetFavoritersResponse' oneOf:
- $ref: '#/components/schemas/TweetFavoritersResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation description: Successful operation
headers: headers:
x-connection-hash: x-connection-hash:
@ -180,7 +182,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/TweetRetweetersResponse' oneOf:
- $ref: '#/components/schemas/TweetRetweetersResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation description: Successful operation
headers: headers:
x-connection-hash: x-connection-hash:
@ -266,7 +270,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/TweetDetailResponse' oneOf:
- $ref: '#/components/schemas/TweetDetailResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation description: Successful operation
headers: headers:
x-connection-hash: x-connection-hash:

View file

@ -68,7 +68,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/UserResponse' oneOf:
- $ref: '#/components/schemas/UserResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation description: Successful operation
headers: headers:
x-connection-hash: x-connection-hash:
@ -132,7 +134,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/UserResponse' oneOf:
- $ref: '#/components/schemas/UserResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation description: Successful operation
headers: headers:
x-connection-hash: x-connection-hash:
@ -196,7 +200,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/UsersResponse' oneOf:
- $ref: '#/components/schemas/UsersResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation description: Successful operation
headers: headers:
x-connection-hash: x-connection-hash:

View file

@ -120,7 +120,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/UserTweetsResponse' oneOf:
- $ref: '#/components/schemas/UserTweetsResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation description: Successful operation
headers: headers:
x-connection-hash: x-connection-hash:
@ -213,7 +215,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/UserHighlightsTweetsResponse' oneOf:
- $ref: '#/components/schemas/UserHighlightsTweetsResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation description: Successful operation
headers: headers:
x-connection-hash: x-connection-hash:
@ -297,7 +301,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/UserTweetsResponse' oneOf:
- $ref: '#/components/schemas/UserTweetsResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation description: Successful operation
headers: headers:
x-connection-hash: x-connection-hash:
@ -381,7 +387,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/UserTweetsResponse' oneOf:
- $ref: '#/components/schemas/UserTweetsResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation description: Successful operation
headers: headers:
x-connection-hash: x-connection-hash:
@ -463,7 +471,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/UserTweetsResponse' oneOf:
- $ref: '#/components/schemas/UserTweetsResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation description: Successful operation
headers: headers:
x-connection-hash: x-connection-hash:

View file

@ -25,6 +25,14 @@ components:
- $ref: '#/components/schemas/TimelineTimelineItem' - $ref: '#/components/schemas/TimelineTimelineItem'
- $ref: '#/components/schemas/TimelineTimelineModule' - $ref: '#/components/schemas/TimelineTimelineModule'
- $ref: '#/components/schemas/TimelineTimelineCursor' - $ref: '#/components/schemas/TimelineTimelineCursor'
CursorType:
enum:
- Top
- Bottom
- ShowMore
- ShowMoreThreads
- Gap
type: string
ItemContentUnion: ItemContentUnion:
discriminator: discriminator:
mapping": mapping":
@ -92,13 +100,7 @@ components:
__typename: __typename:
$ref: ./typename.yaml#/components/schemas/TypeName $ref: ./typename.yaml#/components/schemas/TypeName
cursorType: cursorType:
enum: $ref: '#/components/schemas/CursorType'
- Top
- Bottom
- ShowMore
- ShowMoreThreads
- Gap
type: string
entryType: entryType:
$ref: '#/components/schemas/ContentEntryType' $ref: '#/components/schemas/ContentEntryType'
itemType: itemType:

View file

@ -183,7 +183,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/FollowResponse' oneOf:
- $ref: '#/components/schemas/FollowResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation description: Successful operation
headers: headers:
x-connection-hash: x-connection-hash:
@ -376,7 +378,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/FollowResponse' oneOf:
- $ref: '#/components/schemas/FollowResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation description: Successful operation
headers: headers:
x-connection-hash: x-connection-hash:
@ -550,7 +554,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/FollowResponse' oneOf:
- $ref: '#/components/schemas/FollowResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation description: Successful operation
headers: headers:
x-connection-hash: x-connection-hash:

View file

@ -90,7 +90,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/OtherResponse' oneOf:
- $ref: '#/components/schemas/OtherResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation description: Successful operation
tags: tags:
- other - other

View file

@ -177,7 +177,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/CreateRetweetResponse' oneOf:
- $ref: '#/components/schemas/CreateRetweetResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation description: Successful operation
headers: headers:
x-connection-hash: x-connection-hash:
@ -369,7 +371,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/CreateTweetResponse' oneOf:
- $ref: '#/components/schemas/CreateTweetResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation description: Successful operation
headers: headers:
x-connection-hash: x-connection-hash:
@ -439,7 +443,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/DeleteRetweetResponse' oneOf:
- $ref: '#/components/schemas/DeleteRetweetResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation description: Successful operation
headers: headers:
x-connection-hash: x-connection-hash:
@ -509,7 +515,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/DeleteTweetResponse' oneOf:
- $ref: '#/components/schemas/DeleteTweetResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation description: Successful operation
headers: headers:
x-connection-hash: x-connection-hash:
@ -579,7 +587,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/FavoriteTweetResponseData' oneOf:
- $ref: '#/components/schemas/FavoriteTweetResponseData'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation description: Successful operation
headers: headers:
x-connection-hash: x-connection-hash:
@ -649,7 +659,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/UnfavoriteTweetResponseData' oneOf:
- $ref: '#/components/schemas/UnfavoriteTweetResponseData'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation description: Successful operation
headers: headers:
x-connection-hash: x-connection-hash:

View file

@ -103,7 +103,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/ProfileResponse' oneOf:
- $ref: '#/components/schemas/ProfileResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation description: Successful operation
headers: headers:
x-connection-hash: x-connection-hash:

View file

@ -221,7 +221,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/TimelineResponse' oneOf:
- $ref: '#/components/schemas/TimelineResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation description: Successful operation
headers: headers:
x-connection-hash: x-connection-hash:
@ -405,7 +407,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/TimelineResponse' oneOf:
- $ref: '#/components/schemas/TimelineResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation description: Successful operation
headers: headers:
x-connection-hash: x-connection-hash:
@ -574,7 +578,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/ListLatestTweetsTimelineResponse' oneOf:
- $ref: '#/components/schemas/ListLatestTweetsTimelineResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation description: Successful operation
headers: headers:
x-connection-hash: x-connection-hash:
@ -772,7 +778,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/SearchTimelineResponse' oneOf:
- $ref: '#/components/schemas/SearchTimelineResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation description: Successful operation
headers: headers:
x-connection-hash: x-connection-hash:

View file

@ -191,7 +191,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/TweetFavoritersResponse' oneOf:
- $ref: '#/components/schemas/TweetFavoritersResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation description: Successful operation
headers: headers:
x-connection-hash: x-connection-hash:
@ -370,7 +372,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/TweetRetweetersResponse' oneOf:
- $ref: '#/components/schemas/TweetRetweetersResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation description: Successful operation
headers: headers:
x-connection-hash: x-connection-hash:
@ -569,7 +573,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/TweetDetailResponse' oneOf:
- $ref: '#/components/schemas/TweetDetailResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation description: Successful operation
headers: headers:
x-connection-hash: x-connection-hash:

View file

@ -111,7 +111,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/UserResponse' oneOf:
- $ref: '#/components/schemas/UserResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation description: Successful operation
headers: headers:
x-connection-hash: x-connection-hash:
@ -210,7 +212,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/UserResponse' oneOf:
- $ref: '#/components/schemas/UserResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation description: Successful operation
headers: headers:
x-connection-hash: x-connection-hash:
@ -301,7 +305,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/UsersResponse' oneOf:
- $ref: '#/components/schemas/UsersResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation description: Successful operation
headers: headers:
x-connection-hash: x-connection-hash:

View file

@ -230,7 +230,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/UserTweetsResponse' oneOf:
- $ref: '#/components/schemas/UserTweetsResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation description: Successful operation
headers: headers:
x-connection-hash: x-connection-hash:
@ -433,7 +435,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/UserHighlightsTweetsResponse' oneOf:
- $ref: '#/components/schemas/UserHighlightsTweetsResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation description: Successful operation
headers: headers:
x-connection-hash: x-connection-hash:
@ -627,7 +631,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/UserTweetsResponse' oneOf:
- $ref: '#/components/schemas/UserTweetsResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation description: Successful operation
headers: headers:
x-connection-hash: x-connection-hash:
@ -816,7 +822,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/UserTweetsResponse' oneOf:
- $ref: '#/components/schemas/UserTweetsResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation description: Successful operation
headers: headers:
x-connection-hash: x-connection-hash:
@ -1005,7 +1013,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/UserTweetsResponse' oneOf:
- $ref: '#/components/schemas/UserTweetsResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation description: Successful operation
headers: headers:
x-connection-hash: x-connection-hash:

View file

@ -25,6 +25,14 @@ components:
- $ref: '#/components/schemas/TimelineTimelineItem' - $ref: '#/components/schemas/TimelineTimelineItem'
- $ref: '#/components/schemas/TimelineTimelineModule' - $ref: '#/components/schemas/TimelineTimelineModule'
- $ref: '#/components/schemas/TimelineTimelineCursor' - $ref: '#/components/schemas/TimelineTimelineCursor'
CursorType:
enum:
- Top
- Bottom
- ShowMore
- ShowMoreThreads
- Gap
type: string
ItemContentUnion: ItemContentUnion:
discriminator: discriminator:
mapping": mapping":
@ -92,13 +100,7 @@ components:
__typename: __typename:
$ref: ./typename.yaml#/components/schemas/TypeName $ref: ./typename.yaml#/components/schemas/TypeName
cursorType: cursorType:
enum: $ref: '#/components/schemas/CursorType'
- Top
- Bottom
- ShowMore
- ShowMoreThreads
- Gap
type: string
entryType: entryType:
$ref: '#/components/schemas/ContentEntryType' $ref: '#/components/schemas/ContentEntryType'
itemType: itemType:

View file

@ -14,7 +14,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/FollowResponse" oneOf:
- $ref: "#/components/schemas/FollowResponse"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
tags: tags:
- "user-list" - "user-list"
@ -28,7 +30,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/FollowResponse" oneOf:
- $ref: "#/components/schemas/FollowResponse"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
tags: tags:
- "user-list" - "user-list"
@ -42,7 +46,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/FollowResponse" oneOf:
- $ref: "#/components/schemas/FollowResponse"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
tags: tags:
- "user-list" - "user-list"

View file

@ -14,7 +14,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/OtherResponse" oneOf:
- $ref: "#/components/schemas/OtherResponse"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
tags: tags:
- "other" - "other"

View file

@ -14,7 +14,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/FavoriteTweetResponseData" oneOf:
- $ref: "#/components/schemas/FavoriteTweetResponseData"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
tags: tags:
- "post" - "post"
@ -28,7 +30,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/UnfavoriteTweetResponseData" oneOf:
- $ref: "#/components/schemas/UnfavoriteTweetResponseData"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
tags: tags:
- "post" - "post"
@ -42,7 +46,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/CreateRetweetResponse" oneOf:
- $ref: "#/components/schemas/CreateRetweetResponse"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
tags: tags:
- "post" - "post"
@ -56,7 +62,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/DeleteRetweetResponse" oneOf:
- $ref: "#/components/schemas/DeleteRetweetResponse"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
tags: tags:
- "post" - "post"
@ -70,7 +78,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/CreateTweetResponse" oneOf:
- $ref: "#/components/schemas/CreateTweetResponse"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
tags: tags:
- "post" - "post"
@ -84,7 +94,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/DeleteTweetResponse" oneOf:
- $ref: "#/components/schemas/DeleteTweetResponse"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
tags: tags:
- "post" - "post"

View file

@ -14,7 +14,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ProfileResponse" oneOf:
- $ref: "#/components/schemas/ProfileResponse"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
components: components:
schemas: schemas:

View file

@ -14,7 +14,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/TimelineResponse" oneOf:
- $ref: "#/components/schemas/TimelineResponse"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
tags: tags:
- "tweet" - "tweet"
@ -28,7 +30,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/TimelineResponse" oneOf:
- $ref: "#/components/schemas/TimelineResponse"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
tags: tags:
- "tweet" - "tweet"
@ -42,7 +46,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ListLatestTweetsTimelineResponse" oneOf:
- $ref: "#/components/schemas/ListLatestTweetsTimelineResponse"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
tags: tags:
- "tweet" - "tweet"
@ -56,7 +62,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/SearchTimelineResponse" oneOf:
- $ref: "#/components/schemas/SearchTimelineResponse"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
tags: tags:
- "tweet" - "tweet"

View file

@ -14,7 +14,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/TweetDetailResponse" oneOf:
- $ref: "#/components/schemas/TweetDetailResponse"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
tags: tags:
- "tweet" - "tweet"
@ -28,7 +30,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/TweetFavoritersResponse" oneOf:
- $ref: "#/components/schemas/TweetFavoritersResponse"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
tags: tags:
- "user-list" - "user-list"
@ -42,7 +46,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/TweetRetweetersResponse" oneOf:
- $ref: "#/components/schemas/TweetRetweetersResponse"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
tags: tags:
- "user-list" - "user-list"

View file

@ -14,7 +14,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/UserResponse" oneOf:
- $ref: "#/components/schemas/UserResponse"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
tags: tags:
- "user" - "user"
@ -28,7 +30,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/UserResponse" oneOf:
- $ref: "#/components/schemas/UserResponse"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
tags: tags:
- "user" - "user"
@ -42,7 +46,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/UsersResponse" oneOf:
- $ref: "#/components/schemas/UsersResponse"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
tags: tags:
- "user" - "user"

View file

@ -14,7 +14,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/UserTweetsResponse" oneOf:
- $ref: "#/components/schemas/UserTweetsResponse"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
tags: tags:
- "tweet" - "tweet"
@ -28,7 +30,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/UserTweetsResponse" oneOf:
- $ref: "#/components/schemas/UserTweetsResponse"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
tags: tags:
- "tweet" - "tweet"
@ -42,7 +46,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/UserHighlightsTweetsResponse" oneOf:
- $ref: "#/components/schemas/UserHighlightsTweetsResponse"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
tags: tags:
- "tweet" - "tweet"
@ -56,7 +62,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/UserTweetsResponse" oneOf:
- $ref: "#/components/schemas/UserTweetsResponse"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
tags: tags:
- "tweet" - "tweet"
@ -70,7 +78,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/UserTweetsResponse" oneOf:
- $ref: "#/components/schemas/UserTweetsResponse"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
tags: tags:
- "tweet" - "tweet"

View file

@ -23,6 +23,10 @@ components:
enum: enum:
[TimelineTimelineItem, TimelineTimelineCursor, TimelineTimelineModule] [TimelineTimelineItem, TimelineTimelineCursor, TimelineTimelineModule]
CursorType:
type: string
enum: [Top, Bottom, ShowMore, ShowMoreThreads, Gap] # Gap???
TimelineTimelineItem: TimelineTimelineItem:
required: required:
- "__typename" - "__typename"
@ -85,8 +89,7 @@ components:
itemType: itemType:
$ref: "#/components/schemas/ContentEntryType" # null | TimelineTimelineCursor $ref: "#/components/schemas/ContentEntryType" # null | TimelineTimelineCursor
cursorType: cursorType:
type: string $ref: "#/components/schemas/CursorType"
enum: [Top, Bottom, ShowMore, ShowMoreThreads, Gap] # Gap???
value: value:
type: string type: string