diff --git a/openapi/src/components/schemas/Content.yaml b/openapi/src/components/schemas/Content.yaml index fb7a0a2..59d24a3 100644 --- a/openapi/src/components/schemas/Content.yaml +++ b/openapi/src/components/schemas/Content.yaml @@ -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 diff --git a/openapi/src/components/schemas/Instruction.yaml b/openapi/src/components/schemas/Instruction.yaml index 693a024..a7f6425 100644 --- a/openapi/src/components/schemas/Instruction.yaml +++ b/openapi/src/components/schemas/Instruction.yaml @@ -8,13 +8,7 @@ InstructionUnion: InstructionType: type: string - enum: - [ - TimelineAddEntries, - TimelineAddToModule, - TimelineTerminateTimeline, - TimelineShowAlert, - ] + enum: [TimelineAddEntries] TimelineAddEntries: required: diff --git a/openapi/src/components/schemas/Tweet.yaml b/openapi/src/components/schemas/Tweet.yaml index 3b8efa5..56e8e73 100644 --- a/openapi/src/components/schemas/Tweet.yaml +++ b/openapi/src/components/schemas/Tweet.yaml @@ -60,7 +60,6 @@ TweetLegacy: required: - "bookmark_count" - "bookmarked" - - "created_at" - "conversation_id_str" - "display_text_range" - "entities" diff --git a/openapi/src/components/schemas/TypeName.yaml b/openapi/src/components/schemas/TypeName.yaml index 1777e70..3353f78 100644 --- a/openapi/src/components/schemas/TypeName.yaml +++ b/openapi/src/components/schemas/TypeName.yaml @@ -6,6 +6,7 @@ TypeName: TimelineTimelineItem, TimelineTimelineCursor, TweetWithVisibilityResults, + TimelineTimelineModule, Tweet, User, ] diff --git a/openapi/src/components/schemas/User.yaml b/openapi/src/components/schemas/User.yaml index e34bb6b..31a5605 100644 --- a/openapi/src/components/schemas/User.yaml +++ b/openapi/src/components/schemas/User.yaml @@ -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