1
Fork 0
mirror of https://github.com/thegeneralist01/twitter-openapi synced 2026-01-11 23:50:26 +01:00
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
ふぁ 2023-04-18 02:21:04 +09:00
parent 4e52a2e558
commit f2c4e0fa37
No known key found for this signature in database
GPG key ID: 83A8A5E74872A8AA

View file

@ -587,20 +587,23 @@ components:
required: required:
- "user" - "user"
properties: properties:
home: user:
$ref: "#/components/schemas/UserTweetsUser" $ref: "#/components/schemas/UserTweetsUser"
UserTweetsUser: UserTweetsUser:
required: required:
- "result" - "result"
properties: properties:
tweets_timeline: result:
$ref: "#/components/schemas/UserTweetsResult" $ref: "#/components/schemas/UserTweetsResult"
UserTweetsResult: UserTweetsResult:
required: required:
- "__typename"
- "timeline_v2" - "timeline_v2"
properties: properties:
__typename:
$ref: "#/components/schemas/TypeName" # User
timeline_v2: timeline_v2:
$ref: "#/components/schemas/TimelineV2" $ref: "#/components/schemas/TimelineV2"
@ -624,20 +627,14 @@ components:
TimelineV2: TimelineV2:
required: required:
- "__typename"
- "timeline" - "timeline"
properties: properties:
__typename:
$ref: "#/components/schemas/TypeName" # User
timeline: timeline:
type: array $ref: "#/components/schemas/Timeline"
items:
$ref: "#/components/schemas/Timeline"
Timeline: Timeline:
required: required:
- "instructions" - "instructions"
- "metadata"
properties: properties:
instructions: instructions:
type: array type: array
@ -654,15 +651,17 @@ components:
oneOf: oneOf:
- $ref: "#/components/schemas/TimelineAddEntries" - $ref: "#/components/schemas/TimelineAddEntries"
- $ref: "#/components/schemas/TimelineClearCache" - $ref: "#/components/schemas/TimelineClearCache"
- $ref: "#/components/schemas/TimelinePinEntry"
discriminator: discriminator:
propertyName: type propertyName: type
mapping": # deprecated mapping": # deprecated
TimelineAddEntries: "#/components/schemas/TimelineAddEntries" TimelineAddEntries: "#/components/schemas/TimelineAddEntries"
TimelineClearCache: "#/components/schemas/TimelineClearCache" TimelineClearCache: "#/components/schemas/TimelineClearCache"
TimelinePinEntry: "#/components/schemas/TimelinePinEntry"
InstructionType: InstructionType:
type: string type: string
enum: [TimelineAddEntries] enum: [TimelineAddEntries, TimelineClearCache, TimelinePinEntry]
TimelineAddEntries: TimelineAddEntries:
required: required:
@ -685,6 +684,17 @@ components:
type: string type: string
$ref: "#/components/schemas/InstructionType" # TimelineClearCache $ref: "#/components/schemas/InstructionType" # TimelineClearCache
TimelinePinEntry:
required:
- type
- entry
properties:
type:
type: string
$ref: "#/components/schemas/InstructionType" # TimelinePinEntry
entry:
$ref: "#/components/schemas/TimelineAddEntry"
TimelineAddEntry: TimelineAddEntry:
required: required:
- "content" - "content"
@ -787,6 +797,15 @@ components:
type: string type: string
tweet_results: tweet_results:
$ref: "#/components/schemas/ItemResult" $ref: "#/components/schemas/ItemResult"
socialContext:
type: object
properties:
contextType:
type: string # enum
text:
type: string
type:
type: string # enum
ItemResult: ItemResult:
required: required: