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

add TimelineCommunity

Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
ふぁ 2023-11-05 14:18:54 +09:00
parent 522a4aea02
commit a4bb8f6e31
No known key found for this signature in database
GPG key ID: 83A8A5E74872A8AA
4 changed files with 28 additions and 0 deletions

View file

@ -60,6 +60,7 @@ components:
- TimelineUser
- TimelinePrompt
- TimelineMessagePrompt
- TimelineCommunity
type: string
ContentUnion:
discriminator:
@ -427,6 +428,7 @@ components:
ItemContentUnion:
discriminator:
mapping":
TimelineCommunity: '#/components/schemas/TimelineCommunity'
TimelineMessagePrompt: '#/components/schemas/TimelineMessagePrompt'
TimelinePrompt: '#/components/schemas/TimelinePrompt'
TimelineTimelineCursor: '#/components/schemas/TimelineTimelineCursor'
@ -439,6 +441,7 @@ components:
- $ref: '#/components/schemas/TimelineUser'
- $ref: '#/components/schemas/TimelinePrompt'
- $ref: '#/components/schemas/TimelineMessagePrompt'
- $ref: '#/components/schemas/TimelineCommunity'
ItemResult:
properties:
__typename:
@ -914,6 +917,11 @@ components:
$ref: '#/components/schemas/InstructionType'
required:
- type
TimelineCommunity:
additionalProperties: true
properties:
__typename:
$ref: '#/components/schemas/TypeName'
TimelineCoverBehavior:
properties:
type:
@ -1465,6 +1473,7 @@ components:
- TweetTombstone
- TimelinePrompt
- TimelineMessagePrompt
- TimelineCommunity
- TweetUnavailable
- Tweet
- User

View file

@ -60,6 +60,7 @@ components:
- TimelineUser
- TimelinePrompt
- TimelineMessagePrompt
- TimelineCommunity
type: string
ContentUnion:
discriminator:
@ -427,6 +428,7 @@ components:
ItemContentUnion:
discriminator:
mapping":
TimelineCommunity: '#/components/schemas/TimelineCommunity'
TimelineMessagePrompt: '#/components/schemas/TimelineMessagePrompt'
TimelinePrompt: '#/components/schemas/TimelinePrompt'
TimelineTimelineCursor: '#/components/schemas/TimelineTimelineCursor'
@ -439,6 +441,7 @@ components:
- $ref: '#/components/schemas/TimelineUser'
- $ref: '#/components/schemas/TimelinePrompt'
- $ref: '#/components/schemas/TimelineMessagePrompt'
- $ref: '#/components/schemas/TimelineCommunity'
ItemResult:
properties:
__typename:
@ -914,6 +917,11 @@ components:
$ref: '#/components/schemas/InstructionType'
required:
- type
TimelineCommunity:
additionalProperties: true
properties:
__typename:
$ref: '#/components/schemas/TypeName'
TimelineCoverBehavior:
properties:
type:
@ -1465,6 +1473,7 @@ components:
- TweetTombstone
- TimelinePrompt
- TimelineMessagePrompt
- TimelineCommunity
- TweetUnavailable
- Tweet
- User

View file

@ -125,6 +125,7 @@ components:
- $ref: "#/components/schemas/TimelineUser"
- $ref: "#/components/schemas/TimelinePrompt"
- $ref: "#/components/schemas/TimelineMessagePrompt"
- $ref: "#/components/schemas/TimelineCommunity"
discriminator:
propertyName: __typename
@ -134,6 +135,7 @@ components:
TimelineUser: "#/components/schemas/TimelineUser"
TimelinePrompt: "#/components/schemas/TimelinePrompt"
TimelineMessagePrompt: "#/components/schemas/TimelineMessagePrompt"
TimelineCommunity: "#/components/schemas/TimelineCommunity"
ContentItemType:
type: string
@ -144,6 +146,7 @@ components:
TimelineUser,
TimelinePrompt,
TimelineMessagePrompt,
TimelineCommunity,
]
TimelineTweet:
@ -216,6 +219,12 @@ components:
$ref: "./typename.yaml#/components/schemas/TypeName" # TimelineMessagePrompt
additionalProperties: true # todo
TimelineCommunity:
properties:
__typename:
$ref: "./typename.yaml#/components/schemas/TypeName" # TimelineCommunity
additionalProperties: true # todo
ClientEventInfo:
properties:
component:

View file

@ -18,6 +18,7 @@ components:
TweetTombstone,
TimelinePrompt,
TimelineMessagePrompt,
TimelineCommunity,
TweetUnavailable,
Tweet,
User,