mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 07:30:37 +01:00
add SensitiveMediaWarning
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
parent
e9162dc2fc
commit
d33b37b200
3 changed files with 61 additions and 50 deletions
35
dist/compatible/openapi-3.0.yaml
vendored
35
dist/compatible/openapi-3.0.yaml
vendored
|
|
@ -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)
|
||||
|
|
|
|||
35
dist/docs/openapi-3.0.yaml
vendored
35
dist/docs/openapi-3.0.yaml
vendored
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue