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

update chemas

Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
ふぁ 2024-02-07 17:55:08 +09:00
parent b622d6ec61
commit c19d43c42a
No known key found for this signature in database
GPG key ID: 83A8A5E74872A8AA
3 changed files with 144 additions and 7 deletions

View file

@ -81,6 +81,7 @@ components:
- "__typename"
- "cursorType"
- "value"
- "stopOnEmptyResponse"
properties:
__typename:
$ref: "./typename.yaml#/components/schemas/TypeName" # TimelineTimelineCursor
@ -92,6 +93,9 @@ components:
$ref: "#/components/schemas/CursorType"
value:
type: string
stopOnEmptyResponse:
type: boolean
default: false
# ================= Module =================
@ -163,7 +167,7 @@ components:
type: string
tweet_results:
$ref: "#/components/schemas/ItemResult"
SocialContext:
socialContext:
$ref: "#/components/schemas/SocialContext"
promotedMetadata:
type: object
@ -173,7 +177,6 @@ components:
required:
- "__typename"
- "itemType"
- "socialContext"
- "userDisplayType"
- "user_results"
properties:
@ -181,7 +184,7 @@ components:
$ref: "./typename.yaml#/components/schemas/TypeName" # TimelineUser
itemType:
$ref: "#/components/schemas/ContentItemType" # TimelineUser
SocialContext:
socialContext:
$ref: "#/components/schemas/SocialContext"
userDisplayType:
type: string
@ -201,10 +204,24 @@ components:
properties:
contextType:
type: string # enum
enum: ["Follow"]
text:
type: string
type:
type: string # enum
enum: ["TimelineGeneralContext"]
landingUrl:
$ref: "#/components/schemas/SocialContextLandingUrl"
SocialContextLandingUrl:
type: object
properties:
urlType:
type: string # enum
enum: ["DeepLink"]
Url:
type: string # twitter://user?id=900282258736545792
format: uri
TimelinePrompt:
properties: