diff --git a/dist/compatible/openapi-3.0.yaml b/dist/compatible/openapi-3.0.yaml index d495660..efb86ff 100644 --- a/dist/compatible/openapi-3.0.yaml +++ b/dist/compatible/openapi-3.0.yaml @@ -885,6 +885,8 @@ components: type: string original_info: $ref: '#/components/schemas/MediaOriginalInfo' + sensitive_media_warning: + $ref: '#/components/schemas/SensitiveMediaWarning' sizes: $ref: '#/components/schemas/MediaSizes' source_status_id_str: @@ -949,6 +951,8 @@ components: type: string original_info: $ref: '#/components/schemas/MediaOriginalInfo' + sensitive_media_warning: + $ref: '#/components/schemas/SensitiveMediaWarning' sizes: $ref: '#/components/schemas/MediaSizes' source_status_id_str: @@ -1203,19 +1207,9 @@ components: QuotedRefResult: properties: result: - $ref: '#/components/schemas/QuotedRefResultData' + $ref: '#/components/schemas/TweetUnion' required: - result - QuotedRefResultData: - properties: - __typename: - $ref: '#/components/schemas/TypeName' - rest_id: - pattern: ^[0-9]+$ - type: string - required: - - __typename - - rest_id QuotedStatusPermalink: properties: display: @@ -1277,6 +1271,21 @@ components: type: string required: - id_str + SensitiveMediaWarning: + properties: + adult_content: + default: false + type: boolean + graphic_violence: + default: false + type: boolean + other: + default: false + type: boolean + required: + - adult_content + - graphic_violence + - other Session: properties: SsoInitTokens: @@ -1859,9 +1868,6 @@ components: $ref: '#/components/schemas/TweetView' required: - rest_id - - edit_control - - is_translatable - - views TweetCard: properties: legacy: @@ -2295,7 +2301,6 @@ components: required: - __typename - tweet - - limitedActionResults TwitterTimeFormat: example: Sat Dec 31 23:59:59 +0000 2023 pattern: '^(Sun|Mon|Tue|Wed|Thu|Fri|Sat) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) diff --git a/dist/docs/openapi-3.0.yaml b/dist/docs/openapi-3.0.yaml index a90e81f..fc4720a 100644 --- a/dist/docs/openapi-3.0.yaml +++ b/dist/docs/openapi-3.0.yaml @@ -885,6 +885,8 @@ components: type: string original_info: $ref: '#/components/schemas/MediaOriginalInfo' + sensitive_media_warning: + $ref: '#/components/schemas/SensitiveMediaWarning' sizes: $ref: '#/components/schemas/MediaSizes' source_status_id_str: @@ -949,6 +951,8 @@ components: type: string original_info: $ref: '#/components/schemas/MediaOriginalInfo' + sensitive_media_warning: + $ref: '#/components/schemas/SensitiveMediaWarning' sizes: $ref: '#/components/schemas/MediaSizes' source_status_id_str: @@ -1203,19 +1207,9 @@ components: QuotedRefResult: properties: result: - $ref: '#/components/schemas/QuotedRefResultData' + $ref: '#/components/schemas/TweetUnion' required: - result - QuotedRefResultData: - properties: - __typename: - $ref: '#/components/schemas/TypeName' - rest_id: - pattern: ^[0-9]+$ - type: string - required: - - __typename - - rest_id QuotedStatusPermalink: properties: display: @@ -1277,6 +1271,21 @@ components: type: string required: - id_str + SensitiveMediaWarning: + properties: + adult_content: + default: false + type: boolean + graphic_violence: + default: false + type: boolean + other: + default: false + type: boolean + required: + - adult_content + - graphic_violence + - other Session: properties: SsoInitTokens: @@ -1859,9 +1868,6 @@ components: $ref: '#/components/schemas/TweetView' required: - rest_id - - edit_control - - is_translatable - - views TweetCard: properties: legacy: @@ -2295,7 +2301,6 @@ components: required: - __typename - tweet - - limitedActionResults TwitterTimeFormat: example: Sat Dec 31 23:59:59 +0000 2023 pattern: '^(Sun|Mon|Tue|Wed|Thu|Fri|Sat) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) diff --git a/src/openapi/schemas/tweet.yaml b/src/openapi/schemas/tweet.yaml index 95b45fa..6e5f219 100644 --- a/src/openapi/schemas/tweet.yaml +++ b/src/openapi/schemas/tweet.yaml @@ -23,7 +23,6 @@ components: required: - "__typename" - "tweet" - - "limitedActionResults" properties: __typename: $ref: "./typename.yaml#/components/schemas/TypeName" # TweetWithVisibilityResults @@ -120,13 +119,6 @@ components: Tweet: required: - "rest_id" - # If the tweet has been edited, this property does not exist. - # - "core" - - "edit_control" - - "is_translatable" - # - "source" - # - "legacy" - - "views" properties: __typename: $ref: "./typename.yaml#/components/schemas/TypeName" # null | Tweet @@ -347,18 +339,7 @@ components: - "result" properties: result: - $ref: "#/components/schemas/QuotedRefResultData" - - QuotedRefResultData: - required: - - "__typename" - - "rest_id" - properties: - __typename: - $ref: "./typename.yaml#/components/schemas/TypeName" # Tweet - rest_id: - type: string - pattern: "^[0-9]+$" + $ref: "#/components/schemas/TweetUnion" SuperFollowsReplyUserResult: required: @@ -1061,6 +1042,8 @@ components: pattern: "^[0-9]+$" ext_alt_text: type: string + sensitive_media_warning: + $ref: "#/components/schemas/SensitiveMediaWarning" TweetLegacyScopes: required: @@ -1155,6 +1138,8 @@ components: pattern: "^[0-9]+$" ext_alt_text: type: string + sensitive_media_warning: + $ref: "#/components/schemas/SensitiveMediaWarning" MediaOriginalInfo: required: @@ -1265,6 +1250,22 @@ components: type: string enum: [Available, Unavailable] + SensitiveMediaWarning: + required: + - "adult_content" + - "graphic_violence" + - "other" + properties: + adult_content: + type: boolean + default: false + graphic_violence: + type: boolean + default: false + other: + type: boolean + default: false + MediaSizes: required: - "large"