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

add TimelineMessagePrompt, TimelinePrompt

Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
ふぁ 2023-07-10 01:15:42 +09:00
parent c025cda1d3
commit 24b04344f1
No known key found for this signature in database
GPG key ID: 83A8A5E74872A8AA
3 changed files with 51 additions and 1 deletions

View file

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