mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 23:50:26 +01:00
update schema
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
parent
95ef71b398
commit
a82844dfa5
7 changed files with 1679 additions and 35 deletions
|
|
@ -71,10 +71,12 @@ components:
|
|||
header:
|
||||
type: object
|
||||
additionalProperties: true # todo
|
||||
|
||||
clientEventInfo:
|
||||
type: object
|
||||
additionalProperties: true # todo
|
||||
metadata:
|
||||
type: object
|
||||
additionalProperties: true # todo
|
||||
|
||||
TimelineTimelineCursor:
|
||||
required:
|
||||
|
|
@ -96,6 +98,16 @@ components:
|
|||
stopOnEmptyResponse:
|
||||
type: boolean
|
||||
default: false
|
||||
displayTreatment:
|
||||
$ref: "#/components/schemas/DisplayTreatment"
|
||||
|
||||
DisplayTreatment:
|
||||
type: object
|
||||
required:
|
||||
- "actionText"
|
||||
properties:
|
||||
actionText:
|
||||
type: string
|
||||
|
||||
# ================= Module =================
|
||||
|
||||
|
|
@ -172,6 +184,8 @@ components:
|
|||
promotedMetadata:
|
||||
type: object
|
||||
additionalProperties: true # todo
|
||||
highlights:
|
||||
$ref: "#/components/schemas/Highlight"
|
||||
|
||||
TimelineUser:
|
||||
required:
|
||||
|
|
@ -218,10 +232,57 @@ components:
|
|||
properties:
|
||||
urlType:
|
||||
type: string # enum
|
||||
enum: ["DeepLink"]
|
||||
Url:
|
||||
enum: ["DeepLink", "UrtEndpoint"]
|
||||
url:
|
||||
type: string # twitter://user?id=900282258736545792
|
||||
format: uri
|
||||
urtEndpointOptions:
|
||||
$ref: "#/components/schemas/UrtEndpointOptions"
|
||||
|
||||
UrtEndpointOptions:
|
||||
type: object
|
||||
required:
|
||||
- "title"
|
||||
- "requestParams"
|
||||
properties:
|
||||
title:
|
||||
type: string
|
||||
requestParams:
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/components/schemas/UrtEndpointRequestParams"
|
||||
|
||||
UrtEndpointRequestParams:
|
||||
type: object
|
||||
required:
|
||||
- "key"
|
||||
- "value"
|
||||
properties:
|
||||
key:
|
||||
type: string
|
||||
value:
|
||||
type: string
|
||||
|
||||
Highlight:
|
||||
type: object
|
||||
required:
|
||||
- "textHighlights"
|
||||
properties:
|
||||
textHighlights:
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/components/schemas/TextHighlight"
|
||||
|
||||
TextHighlight:
|
||||
type: object
|
||||
required:
|
||||
- "startIndex"
|
||||
- "endIndex"
|
||||
properties:
|
||||
startIndex:
|
||||
type: integer
|
||||
endIndex:
|
||||
type: integer
|
||||
|
||||
TimelinePrompt:
|
||||
properties:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue