mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-12 08:00:27 +01:00
add TimelineMessagePrompt, TimelinePrompt
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
parent
c025cda1d3
commit
24b04344f1
3 changed files with 51 additions and 1 deletions
|
|
@ -118,16 +118,28 @@ components:
|
|||
- $ref: "#/components/schemas/TimelineTweet"
|
||||
- $ref: "#/components/schemas/TimelineTimelineCursor"
|
||||
- $ref: "#/components/schemas/TimelineUser"
|
||||
- $ref: "#/components/schemas/TimelinePrompt"
|
||||
- $ref: "#/components/schemas/TimelineMessagePrompt"
|
||||
|
||||
discriminator:
|
||||
propertyName: itemType
|
||||
mapping": # deprecated
|
||||
TimelineTweet: "#/components/schemas/TimelineTweet"
|
||||
TimelineTimelineCursor: "#/components/schemas/TimelineTimelineCursor"
|
||||
TimelineUser: "#/components/schemas/TimelineUser"
|
||||
TimelinePrompt: "#/components/schemas/TimelinePrompt"
|
||||
TimelineMessagePrompt: "#/components/schemas/TimelineMessagePrompt"
|
||||
|
||||
ContentItemType:
|
||||
type: string
|
||||
enum: [TimelineTweet, TimelineTimelineCursor, TimelineUser]
|
||||
enum:
|
||||
[
|
||||
TimelineTweet,
|
||||
TimelineTimelineCursor,
|
||||
TimelineUser,
|
||||
TimelinePrompt,
|
||||
TimelineMessagePrompt,
|
||||
]
|
||||
|
||||
TimelineTweet:
|
||||
required:
|
||||
|
|
@ -188,3 +200,13 @@ components:
|
|||
type: string
|
||||
type:
|
||||
type: string # enum
|
||||
|
||||
TimelinePrompt: # todo
|
||||
properties:
|
||||
__typename:
|
||||
$ref: "./typename.yaml#/components/schemas/TypeName" # TimelinePrompt
|
||||
|
||||
TimelineMessagePrompt: # todo
|
||||
properties:
|
||||
__typename:
|
||||
$ref: "./typename.yaml#/components/schemas/TypeName" # TimelineMessagePrompt
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue