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:
commit
7bba1caf88
28 changed files with 258 additions and 94 deletions
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
Twitter OpenAPI(Swagger) specification
|
||||
|
||||
- [Python](https://github.com/fa0311/twitter_openapi_python)
|
||||
- [Dart](https://github.com/fa0311/twitter_openapi_dart)
|
||||
- [TypeScript](https://github.com/fa0311/twitter-openapi-typescript)
|
||||
- [React Documents](https://github.com/fa0311/twitter-openapi-docs)
|
||||
|
|
|
|||
12
dist/compatible/paths/follow.yaml
vendored
12
dist/compatible/paths/follow.yaml
vendored
|
|
@ -91,7 +91,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/FollowResponse'
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/FollowResponse'
|
||||
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
||||
description: Successful operation
|
||||
headers:
|
||||
x-connection-hash:
|
||||
|
|
@ -182,7 +184,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/FollowResponse'
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/FollowResponse'
|
||||
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
||||
description: Successful operation
|
||||
headers:
|
||||
x-connection-hash:
|
||||
|
|
@ -264,7 +268,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/FollowResponse'
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/FollowResponse'
|
||||
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
||||
description: Successful operation
|
||||
headers:
|
||||
x-connection-hash:
|
||||
|
|
|
|||
4
dist/compatible/paths/other.yaml
vendored
4
dist/compatible/paths/other.yaml
vendored
|
|
@ -90,7 +90,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/OtherResponse'
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/OtherResponse'
|
||||
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
||||
description: Successful operation
|
||||
tags:
|
||||
- other
|
||||
|
|
|
|||
24
dist/compatible/paths/post.yaml
vendored
24
dist/compatible/paths/post.yaml
vendored
|
|
@ -181,7 +181,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/CreateRetweetResponse'
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/CreateRetweetResponse'
|
||||
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
||||
description: Successful operation
|
||||
headers:
|
||||
x-connection-hash:
|
||||
|
|
@ -375,7 +377,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/CreateTweetResponse'
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/CreateTweetResponse'
|
||||
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
||||
description: Successful operation
|
||||
headers:
|
||||
x-connection-hash:
|
||||
|
|
@ -449,7 +453,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/DeleteRetweetResponse'
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/DeleteRetweetResponse'
|
||||
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
||||
description: Successful operation
|
||||
headers:
|
||||
x-connection-hash:
|
||||
|
|
@ -523,7 +529,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/DeleteTweetResponse'
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/DeleteTweetResponse'
|
||||
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
||||
description: Successful operation
|
||||
headers:
|
||||
x-connection-hash:
|
||||
|
|
@ -597,7 +605,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/FavoriteTweetResponseData'
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/FavoriteTweetResponseData'
|
||||
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
||||
description: Successful operation
|
||||
headers:
|
||||
x-connection-hash:
|
||||
|
|
@ -671,7 +681,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/UnfavoriteTweetResponseData'
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/UnfavoriteTweetResponseData'
|
||||
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
||||
description: Successful operation
|
||||
headers:
|
||||
x-connection-hash:
|
||||
|
|
|
|||
4
dist/compatible/paths/profile.yaml
vendored
4
dist/compatible/paths/profile.yaml
vendored
|
|
@ -95,7 +95,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/ProfileResponse'
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/ProfileResponse'
|
||||
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
||||
description: Successful operation
|
||||
headers:
|
||||
x-connection-hash:
|
||||
|
|
|
|||
16
dist/compatible/paths/timeline.yaml
vendored
16
dist/compatible/paths/timeline.yaml
vendored
|
|
@ -124,7 +124,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/TimelineResponse'
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/TimelineResponse'
|
||||
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
||||
description: Successful operation
|
||||
headers:
|
||||
x-connection-hash:
|
||||
|
|
@ -206,7 +208,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/TimelineResponse'
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/TimelineResponse'
|
||||
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
||||
description: Successful operation
|
||||
headers:
|
||||
x-connection-hash:
|
||||
|
|
@ -286,7 +290,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/ListLatestTweetsTimelineResponse'
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/ListLatestTweetsTimelineResponse'
|
||||
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
||||
description: Successful operation
|
||||
headers:
|
||||
x-connection-hash:
|
||||
|
|
@ -377,7 +383,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/SearchTimelineResponse'
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/SearchTimelineResponse'
|
||||
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
||||
description: Successful operation
|
||||
headers:
|
||||
x-connection-hash:
|
||||
|
|
|
|||
12
dist/compatible/paths/tweet.yaml
vendored
12
dist/compatible/paths/tweet.yaml
vendored
|
|
@ -96,7 +96,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/TweetFavoritersResponse'
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/TweetFavoritersResponse'
|
||||
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
||||
description: Successful operation
|
||||
headers:
|
||||
x-connection-hash:
|
||||
|
|
@ -180,7 +182,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/TweetRetweetersResponse'
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/TweetRetweetersResponse'
|
||||
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
||||
description: Successful operation
|
||||
headers:
|
||||
x-connection-hash:
|
||||
|
|
@ -266,7 +270,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/TweetDetailResponse'
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/TweetDetailResponse'
|
||||
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
||||
description: Successful operation
|
||||
headers:
|
||||
x-connection-hash:
|
||||
|
|
|
|||
12
dist/compatible/paths/user.yaml
vendored
12
dist/compatible/paths/user.yaml
vendored
|
|
@ -68,7 +68,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/UserResponse'
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/UserResponse'
|
||||
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
||||
description: Successful operation
|
||||
headers:
|
||||
x-connection-hash:
|
||||
|
|
@ -132,7 +134,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/UserResponse'
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/UserResponse'
|
||||
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
||||
description: Successful operation
|
||||
headers:
|
||||
x-connection-hash:
|
||||
|
|
@ -196,7 +200,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/UsersResponse'
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/UsersResponse'
|
||||
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
||||
description: Successful operation
|
||||
headers:
|
||||
x-connection-hash:
|
||||
|
|
|
|||
20
dist/compatible/paths/usertweets.yaml
vendored
20
dist/compatible/paths/usertweets.yaml
vendored
|
|
@ -120,7 +120,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/UserTweetsResponse'
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/UserTweetsResponse'
|
||||
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
||||
description: Successful operation
|
||||
headers:
|
||||
x-connection-hash:
|
||||
|
|
@ -213,7 +215,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/UserHighlightsTweetsResponse'
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/UserHighlightsTweetsResponse'
|
||||
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
||||
description: Successful operation
|
||||
headers:
|
||||
x-connection-hash:
|
||||
|
|
@ -297,7 +301,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/UserTweetsResponse'
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/UserTweetsResponse'
|
||||
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
||||
description: Successful operation
|
||||
headers:
|
||||
x-connection-hash:
|
||||
|
|
@ -381,7 +387,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/UserTweetsResponse'
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/UserTweetsResponse'
|
||||
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
||||
description: Successful operation
|
||||
headers:
|
||||
x-connection-hash:
|
||||
|
|
@ -463,7 +471,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/UserTweetsResponse'
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/UserTweetsResponse'
|
||||
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
||||
description: Successful operation
|
||||
headers:
|
||||
x-connection-hash:
|
||||
|
|
|
|||
16
dist/compatible/schemas/content.yaml
vendored
16
dist/compatible/schemas/content.yaml
vendored
|
|
@ -25,6 +25,14 @@ components:
|
|||
- $ref: '#/components/schemas/TimelineTimelineItem'
|
||||
- $ref: '#/components/schemas/TimelineTimelineModule'
|
||||
- $ref: '#/components/schemas/TimelineTimelineCursor'
|
||||
CursorType:
|
||||
enum:
|
||||
- Top
|
||||
- Bottom
|
||||
- ShowMore
|
||||
- ShowMoreThreads
|
||||
- Gap
|
||||
type: string
|
||||
ItemContentUnion:
|
||||
discriminator:
|
||||
mapping":
|
||||
|
|
@ -92,13 +100,7 @@ components:
|
|||
__typename:
|
||||
$ref: ./typename.yaml#/components/schemas/TypeName
|
||||
cursorType:
|
||||
enum:
|
||||
- Top
|
||||
- Bottom
|
||||
- ShowMore
|
||||
- ShowMoreThreads
|
||||
- Gap
|
||||
type: string
|
||||
$ref: '#/components/schemas/CursorType'
|
||||
entryType:
|
||||
$ref: '#/components/schemas/ContentEntryType'
|
||||
itemType:
|
||||
|
|
|
|||
12
dist/docs/paths/follow.yaml
vendored
12
dist/docs/paths/follow.yaml
vendored
|
|
@ -183,7 +183,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/FollowResponse'
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/FollowResponse'
|
||||
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
||||
description: Successful operation
|
||||
headers:
|
||||
x-connection-hash:
|
||||
|
|
@ -376,7 +378,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/FollowResponse'
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/FollowResponse'
|
||||
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
||||
description: Successful operation
|
||||
headers:
|
||||
x-connection-hash:
|
||||
|
|
@ -550,7 +554,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/FollowResponse'
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/FollowResponse'
|
||||
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
||||
description: Successful operation
|
||||
headers:
|
||||
x-connection-hash:
|
||||
|
|
|
|||
4
dist/docs/paths/other.yaml
vendored
4
dist/docs/paths/other.yaml
vendored
|
|
@ -90,7 +90,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/OtherResponse'
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/OtherResponse'
|
||||
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
||||
description: Successful operation
|
||||
tags:
|
||||
- other
|
||||
|
|
|
|||
24
dist/docs/paths/post.yaml
vendored
24
dist/docs/paths/post.yaml
vendored
|
|
@ -177,7 +177,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/CreateRetweetResponse'
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/CreateRetweetResponse'
|
||||
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
||||
description: Successful operation
|
||||
headers:
|
||||
x-connection-hash:
|
||||
|
|
@ -369,7 +371,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/CreateTweetResponse'
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/CreateTweetResponse'
|
||||
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
||||
description: Successful operation
|
||||
headers:
|
||||
x-connection-hash:
|
||||
|
|
@ -439,7 +443,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/DeleteRetweetResponse'
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/DeleteRetweetResponse'
|
||||
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
||||
description: Successful operation
|
||||
headers:
|
||||
x-connection-hash:
|
||||
|
|
@ -509,7 +515,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/DeleteTweetResponse'
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/DeleteTweetResponse'
|
||||
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
||||
description: Successful operation
|
||||
headers:
|
||||
x-connection-hash:
|
||||
|
|
@ -579,7 +587,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/FavoriteTweetResponseData'
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/FavoriteTweetResponseData'
|
||||
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
||||
description: Successful operation
|
||||
headers:
|
||||
x-connection-hash:
|
||||
|
|
@ -649,7 +659,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/UnfavoriteTweetResponseData'
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/UnfavoriteTweetResponseData'
|
||||
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
||||
description: Successful operation
|
||||
headers:
|
||||
x-connection-hash:
|
||||
|
|
|
|||
4
dist/docs/paths/profile.yaml
vendored
4
dist/docs/paths/profile.yaml
vendored
|
|
@ -103,7 +103,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/ProfileResponse'
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/ProfileResponse'
|
||||
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
||||
description: Successful operation
|
||||
headers:
|
||||
x-connection-hash:
|
||||
|
|
|
|||
16
dist/docs/paths/timeline.yaml
vendored
16
dist/docs/paths/timeline.yaml
vendored
|
|
@ -221,7 +221,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/TimelineResponse'
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/TimelineResponse'
|
||||
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
||||
description: Successful operation
|
||||
headers:
|
||||
x-connection-hash:
|
||||
|
|
@ -405,7 +407,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/TimelineResponse'
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/TimelineResponse'
|
||||
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
||||
description: Successful operation
|
||||
headers:
|
||||
x-connection-hash:
|
||||
|
|
@ -574,7 +578,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/ListLatestTweetsTimelineResponse'
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/ListLatestTweetsTimelineResponse'
|
||||
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
||||
description: Successful operation
|
||||
headers:
|
||||
x-connection-hash:
|
||||
|
|
@ -772,7 +778,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/SearchTimelineResponse'
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/SearchTimelineResponse'
|
||||
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
||||
description: Successful operation
|
||||
headers:
|
||||
x-connection-hash:
|
||||
|
|
|
|||
12
dist/docs/paths/tweet.yaml
vendored
12
dist/docs/paths/tweet.yaml
vendored
|
|
@ -191,7 +191,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/TweetFavoritersResponse'
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/TweetFavoritersResponse'
|
||||
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
||||
description: Successful operation
|
||||
headers:
|
||||
x-connection-hash:
|
||||
|
|
@ -370,7 +372,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/TweetRetweetersResponse'
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/TweetRetweetersResponse'
|
||||
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
||||
description: Successful operation
|
||||
headers:
|
||||
x-connection-hash:
|
||||
|
|
@ -569,7 +573,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/TweetDetailResponse'
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/TweetDetailResponse'
|
||||
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
||||
description: Successful operation
|
||||
headers:
|
||||
x-connection-hash:
|
||||
|
|
|
|||
12
dist/docs/paths/user.yaml
vendored
12
dist/docs/paths/user.yaml
vendored
|
|
@ -111,7 +111,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/UserResponse'
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/UserResponse'
|
||||
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
||||
description: Successful operation
|
||||
headers:
|
||||
x-connection-hash:
|
||||
|
|
@ -210,7 +212,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/UserResponse'
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/UserResponse'
|
||||
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
||||
description: Successful operation
|
||||
headers:
|
||||
x-connection-hash:
|
||||
|
|
@ -301,7 +305,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/UsersResponse'
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/UsersResponse'
|
||||
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
||||
description: Successful operation
|
||||
headers:
|
||||
x-connection-hash:
|
||||
|
|
|
|||
20
dist/docs/paths/usertweets.yaml
vendored
20
dist/docs/paths/usertweets.yaml
vendored
|
|
@ -230,7 +230,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/UserTweetsResponse'
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/UserTweetsResponse'
|
||||
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
||||
description: Successful operation
|
||||
headers:
|
||||
x-connection-hash:
|
||||
|
|
@ -433,7 +435,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/UserHighlightsTweetsResponse'
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/UserHighlightsTweetsResponse'
|
||||
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
||||
description: Successful operation
|
||||
headers:
|
||||
x-connection-hash:
|
||||
|
|
@ -627,7 +631,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/UserTweetsResponse'
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/UserTweetsResponse'
|
||||
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
||||
description: Successful operation
|
||||
headers:
|
||||
x-connection-hash:
|
||||
|
|
@ -816,7 +822,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/UserTweetsResponse'
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/UserTweetsResponse'
|
||||
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
||||
description: Successful operation
|
||||
headers:
|
||||
x-connection-hash:
|
||||
|
|
@ -1005,7 +1013,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/UserTweetsResponse'
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/UserTweetsResponse'
|
||||
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
||||
description: Successful operation
|
||||
headers:
|
||||
x-connection-hash:
|
||||
|
|
|
|||
16
dist/docs/schemas/content.yaml
vendored
16
dist/docs/schemas/content.yaml
vendored
|
|
@ -25,6 +25,14 @@ components:
|
|||
- $ref: '#/components/schemas/TimelineTimelineItem'
|
||||
- $ref: '#/components/schemas/TimelineTimelineModule'
|
||||
- $ref: '#/components/schemas/TimelineTimelineCursor'
|
||||
CursorType:
|
||||
enum:
|
||||
- Top
|
||||
- Bottom
|
||||
- ShowMore
|
||||
- ShowMoreThreads
|
||||
- Gap
|
||||
type: string
|
||||
ItemContentUnion:
|
||||
discriminator:
|
||||
mapping":
|
||||
|
|
@ -92,13 +100,7 @@ components:
|
|||
__typename:
|
||||
$ref: ./typename.yaml#/components/schemas/TypeName
|
||||
cursorType:
|
||||
enum:
|
||||
- Top
|
||||
- Bottom
|
||||
- ShowMore
|
||||
- ShowMoreThreads
|
||||
- Gap
|
||||
type: string
|
||||
$ref: '#/components/schemas/CursorType'
|
||||
entryType:
|
||||
$ref: '#/components/schemas/ContentEntryType'
|
||||
itemType:
|
||||
|
|
|
|||
|
|
@ -14,7 +14,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/FollowResponse"
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/FollowResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
tags:
|
||||
- "user-list"
|
||||
|
||||
|
|
@ -28,7 +30,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/FollowResponse"
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/FollowResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
tags:
|
||||
- "user-list"
|
||||
|
||||
|
|
@ -42,7 +46,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/FollowResponse"
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/FollowResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
tags:
|
||||
- "user-list"
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/OtherResponse"
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/OtherResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
tags:
|
||||
- "other"
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/FavoriteTweetResponseData"
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/FavoriteTweetResponseData"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
tags:
|
||||
- "post"
|
||||
|
||||
|
|
@ -28,7 +30,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/UnfavoriteTweetResponseData"
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/UnfavoriteTweetResponseData"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
tags:
|
||||
- "post"
|
||||
|
||||
|
|
@ -42,7 +46,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/CreateRetweetResponse"
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/CreateRetweetResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
tags:
|
||||
- "post"
|
||||
|
||||
|
|
@ -56,7 +62,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/DeleteRetweetResponse"
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/DeleteRetweetResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
tags:
|
||||
- "post"
|
||||
|
||||
|
|
@ -70,7 +78,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/CreateTweetResponse"
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/CreateTweetResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
tags:
|
||||
- "post"
|
||||
|
||||
|
|
@ -84,7 +94,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/DeleteTweetResponse"
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/DeleteTweetResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
tags:
|
||||
- "post"
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ProfileResponse"
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/ProfileResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
|
||||
components:
|
||||
schemas:
|
||||
|
|
|
|||
|
|
@ -14,7 +14,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/TimelineResponse"
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/TimelineResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
tags:
|
||||
- "tweet"
|
||||
|
||||
|
|
@ -28,7 +30,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/TimelineResponse"
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/TimelineResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
tags:
|
||||
- "tweet"
|
||||
|
||||
|
|
@ -42,7 +46,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ListLatestTweetsTimelineResponse"
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/ListLatestTweetsTimelineResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
tags:
|
||||
- "tweet"
|
||||
|
||||
|
|
@ -56,7 +62,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/SearchTimelineResponse"
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/SearchTimelineResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
tags:
|
||||
- "tweet"
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/TweetDetailResponse"
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/TweetDetailResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
tags:
|
||||
- "tweet"
|
||||
|
||||
|
|
@ -28,7 +30,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/TweetFavoritersResponse"
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/TweetFavoritersResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
tags:
|
||||
- "user-list"
|
||||
|
||||
|
|
@ -42,7 +46,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/TweetRetweetersResponse"
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/TweetRetweetersResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
tags:
|
||||
- "user-list"
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/UserResponse"
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/UserResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
tags:
|
||||
- "user"
|
||||
|
||||
|
|
@ -28,7 +30,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/UserResponse"
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/UserResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
tags:
|
||||
- "user"
|
||||
|
||||
|
|
@ -42,7 +46,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/UsersResponse"
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/UsersResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
tags:
|
||||
- "user"
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/UserTweetsResponse"
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/UserTweetsResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
tags:
|
||||
- "tweet"
|
||||
|
||||
|
|
@ -28,7 +30,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/UserTweetsResponse"
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/UserTweetsResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
tags:
|
||||
- "tweet"
|
||||
|
||||
|
|
@ -42,7 +46,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/UserHighlightsTweetsResponse"
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/UserHighlightsTweetsResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
tags:
|
||||
- "tweet"
|
||||
|
||||
|
|
@ -56,7 +62,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/UserTweetsResponse"
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/UserTweetsResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
tags:
|
||||
- "tweet"
|
||||
|
||||
|
|
@ -70,7 +78,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/UserTweetsResponse"
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/UserTweetsResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
tags:
|
||||
- "tweet"
|
||||
|
||||
|
|
|
|||
|
|
@ -23,6 +23,10 @@ components:
|
|||
enum:
|
||||
[TimelineTimelineItem, TimelineTimelineCursor, TimelineTimelineModule]
|
||||
|
||||
CursorType:
|
||||
type: string
|
||||
enum: [Top, Bottom, ShowMore, ShowMoreThreads, Gap] # Gap???
|
||||
|
||||
TimelineTimelineItem:
|
||||
required:
|
||||
- "__typename"
|
||||
|
|
@ -85,8 +89,7 @@ components:
|
|||
itemType:
|
||||
$ref: "#/components/schemas/ContentEntryType" # null | TimelineTimelineCursor
|
||||
cursorType:
|
||||
type: string
|
||||
enum: [Top, Bottom, ShowMore, ShowMoreThreads, Gap] # Gap???
|
||||
$ref: "#/components/schemas/CursorType"
|
||||
value:
|
||||
type: string
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue