diff --git a/dist/schemas/tweet.yaml b/dist/schemas/tweet.yaml index 70163c7..9756e51 100644 --- a/dist/schemas/tweet.yaml +++ b/dist/schemas/tweet.yaml @@ -122,15 +122,21 @@ components: - retweeted - user_id_str - id_str + TweetTombstone: + properties: + __typename: + $ref: ./typename.yaml#/components/schemas/TypeName TweetUnion: discriminator: mapping": Tweet: '#/components/schemas/Tweet' + TweetTombstone: '#/components/schemas/TweetTombstone' TweetWithVisibilityResults: '#/components/schemas/TweetWithVisibilityResults' propertyName: __typename oneOf: - $ref: '#/components/schemas/Tweet' - $ref: '#/components/schemas/TweetWithVisibilityResults' + - $ref: '#/components/schemas/TweetTombstone' TweetWithVisibilityResults: properties: __typename: diff --git a/dist/schemas/typename.yaml b/dist/schemas/typename.yaml index 42c9123..21121fc 100644 --- a/dist/schemas/typename.yaml +++ b/dist/schemas/typename.yaml @@ -8,6 +8,7 @@ components: - TimelineTimelineCursor - TweetWithVisibilityResults - TimelineTimelineModule + - TweetTombstone - Tweet - User type: string diff --git a/dist/schemas/user.yaml b/dist/schemas/user.yaml index fccfd97..d9bb43c 100644 --- a/dist/schemas/user.yaml +++ b/dist/schemas/user.yaml @@ -36,7 +36,6 @@ components: required: - __typename - affiliates_highlighted_label - - has_graduated_access - id - is_blue_verified - legacy diff --git a/src/openapi/schemas/tweet.yaml b/src/openapi/schemas/tweet.yaml index f34c1ce..620af9f 100644 --- a/src/openapi/schemas/tweet.yaml +++ b/src/openapi/schemas/tweet.yaml @@ -11,11 +11,13 @@ components: oneOf: - $ref: "#/components/schemas/Tweet" - $ref: "#/components/schemas/TweetWithVisibilityResults" + - $ref: "#/components/schemas/TweetTombstone" discriminator: propertyName: __typename mapping": # deprecated Tweet: "#/components/schemas/Tweet" TweetWithVisibilityResults: "#/components/schemas/TweetWithVisibilityResults" + TweetTombstone: "#/components/schemas/TweetTombstone" TweetWithVisibilityResults: required: @@ -27,6 +29,12 @@ components: tweet: $ref: "#/components/schemas/Tweet" + TweetTombstone: #remove tweet + properties: + __typename: + $ref: "./typename.yaml#/components/schemas/TypeName" # TweetWithVisibilityResults + # todo + Tweet: required: - "rest_id" diff --git a/src/openapi/schemas/typename.yaml b/src/openapi/schemas/typename.yaml index 5cc88dc..f307af5 100644 --- a/src/openapi/schemas/typename.yaml +++ b/src/openapi/schemas/typename.yaml @@ -15,6 +15,7 @@ components: TimelineTimelineCursor, TweetWithVisibilityResults, TimelineTimelineModule, + TweetTombstone, Tweet, User, ] diff --git a/src/openapi/schemas/user.yaml b/src/openapi/schemas/user.yaml index 81a4abf..e4b54f6 100644 --- a/src/openapi/schemas/user.yaml +++ b/src/openapi/schemas/user.yaml @@ -23,7 +23,6 @@ components: required: - "__typename" - "affiliates_highlighted_label" - - "has_graduated_access" - "id" - "is_blue_verified" - "legacy"