1
Fork 0
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:
ふぁ 2024-02-09 17:22:13 +09:00
parent 95ef71b398
commit a82844dfa5
No known key found for this signature in database
GPG key ID: 83A8A5E74872A8AA
7 changed files with 1679 additions and 35 deletions

View file

@ -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: