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-12 03:47:57 +09:00
parent 3d54c8d9a7
commit 6fbb3310d8
No known key found for this signature in database
GPG key ID: 83A8A5E74872A8AA
5 changed files with 25 additions and 12 deletions

View file

@ -2,15 +2,17 @@ ContentUnion:
oneOf:
- $ref: "#/TimelineTimelineItem"
- $ref: "#/TimelineTimelineCursor"
- $ref: "#/TimelineTimelineModule"
discriminator:
propertyName: entryType
mapping": # deprecated
TimelineTimelineItem: "#/TimelineTimelineItem"
TimelineTimelineCursor: "#/TimelineTimelineCursor"
TimelineTimelineModule: "#/TimelineTimelineModule"
ContentEntryType:
type: string
enum: [TimelineTimelineItem, TimelineTimelineCursor]
enum: [TimelineTimelineItem, TimelineTimelineCursor, TimelineTimelineModule]
TimelineTimelineItem:
required:
@ -47,3 +49,15 @@ TimelineTimelineCursor:
enum: [Top, Bottom]
value:
type: string
TimelineTimelineModule:
required:
- "__typename"
- "entryType"
properties:
__typename:
$ref: "./TypeName.yaml#/TypeName" # TimelineTimelineModule
entryType:
type: string # enum
$ref: "#/ContentEntryType" # TimelineTimelineCursor

View file

@ -8,13 +8,7 @@ InstructionUnion:
InstructionType:
type: string
enum:
[
TimelineAddEntries,
TimelineAddToModule,
TimelineTerminateTimeline,
TimelineShowAlert,
]
enum: [TimelineAddEntries]
TimelineAddEntries:
required:

View file

@ -60,7 +60,6 @@ TweetLegacy:
required:
- "bookmark_count"
- "bookmarked"
- "created_at"
- "conversation_id_str"
- "display_text_range"
- "entities"

View file

@ -6,6 +6,7 @@ TypeName:
TimelineTimelineItem,
TimelineTimelineCursor,
TweetWithVisibilityResults,
TimelineTimelineModule,
Tweet,
User,
]

View file

@ -64,11 +64,8 @@ UserLegacy:
- "blocking"
- "can_dm"
- "can_media_tag"
- "created_at"
- "default_profile"
- "default_profile_image"
- "description"
- "fast_followers_count"
- "favourites_count"
- "follow_request_sent"
- "followed_by"
@ -103,14 +100,18 @@ UserLegacy:
default: false
can_dm:
type: boolean
default: false
can_media_tag:
type: boolean
default: false
created_at:
type: string # Wed Jul 08 14:05:58 +0000 2009
default_profile:
type: boolean
default: false
default_profile_image:
type: boolean
default: false
description:
type: string
entities:
@ -134,8 +135,10 @@ UserLegacy:
type: integer
has_custom_timelines:
type: boolean
default: false
is_translator:
type: boolean
default: false
listed_count:
type: integer
location:
@ -158,6 +161,7 @@ UserLegacy:
type: string
possibly_sensitive:
type: boolean
default: false
profile_banner_extensions:
type: object
profile_banner_url:
@ -183,3 +187,4 @@ UserLegacy:
type: boolean
want_retweets:
type: boolean
default: false