mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-12 16:10:26 +01:00
update model
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
parent
138c983060
commit
f0e37687a4
5 changed files with 289 additions and 40 deletions
|
|
@ -999,6 +999,7 @@ components:
|
|||
- "original_info"
|
||||
- "media_key"
|
||||
- "ext_media_availability"
|
||||
- "media_results"
|
||||
properties:
|
||||
display_url:
|
||||
type: string
|
||||
|
|
@ -1033,11 +1034,9 @@ components:
|
|||
ext_media_availability:
|
||||
$ref: "#/components/schemas/ExtMediaAvailability"
|
||||
video_info:
|
||||
type: object
|
||||
additionalProperties: true # todo
|
||||
$ref: "#/components/schemas/MediaVideoInfo"
|
||||
additional_media_info:
|
||||
type: object
|
||||
additionalProperties: true # todo
|
||||
$ref: "#/components/schemas/AdditionalMediaInfo"
|
||||
source_user_id_str:
|
||||
type: string
|
||||
pattern: "^[0-9]+$"
|
||||
|
|
@ -1048,6 +1047,10 @@ components:
|
|||
type: string
|
||||
sensitive_media_warning:
|
||||
$ref: "#/components/schemas/SensitiveMediaWarning"
|
||||
allow_download_status:
|
||||
$ref: "#/components/schemas/AllowDownloadStatus"
|
||||
media_results:
|
||||
$ref: "#/components/schemas/MediaResults"
|
||||
|
||||
TweetLegacyScopes:
|
||||
required:
|
||||
|
|
@ -1095,6 +1098,7 @@ components:
|
|||
# - "features"
|
||||
- "sizes"
|
||||
- "original_info"
|
||||
- "media_results"
|
||||
properties:
|
||||
display_url:
|
||||
type: string
|
||||
|
|
@ -1144,6 +1148,10 @@ components:
|
|||
type: string
|
||||
sensitive_media_warning:
|
||||
$ref: "#/components/schemas/SensitiveMediaWarning"
|
||||
allow_download_status:
|
||||
$ref: "#/components/schemas/AllowDownloadStatus"
|
||||
media_results:
|
||||
$ref: "#/components/schemas/MediaResults"
|
||||
|
||||
MediaOriginalInfo:
|
||||
required:
|
||||
|
|
@ -1336,6 +1344,8 @@ components:
|
|||
- "title"
|
||||
- "preview_text"
|
||||
- "cover_media"
|
||||
- "metadata"
|
||||
- "lifecycle_state"
|
||||
properties:
|
||||
rest_id:
|
||||
type: string
|
||||
|
|
@ -1348,6 +1358,10 @@ components:
|
|||
type: string
|
||||
cover_media:
|
||||
$ref: "#/components/schemas/ArticleCoverMedia"
|
||||
metadata:
|
||||
$ref: "#/components/schemas/ArticleMetadata"
|
||||
lifecycle_state:
|
||||
$ref: "#/components/schemas/ArticleLifecycleState"
|
||||
|
||||
ArticleCoverMedia:
|
||||
required:
|
||||
|
|
@ -1416,3 +1430,38 @@ components:
|
|||
type: integer
|
||||
red:
|
||||
type: integer
|
||||
|
||||
ArticleMetadata:
|
||||
required:
|
||||
- "first_published_at_secs"
|
||||
properties:
|
||||
first_published_at_secs:
|
||||
type: integer
|
||||
|
||||
ArticleLifecycleState:
|
||||
required:
|
||||
- "modified_at_secs"
|
||||
properties:
|
||||
modified_at_secs:
|
||||
type: integer
|
||||
|
||||
AllowDownloadStatus:
|
||||
required:
|
||||
- "allow_download"
|
||||
properties:
|
||||
allow_download:
|
||||
type: boolean
|
||||
|
||||
MediaResults:
|
||||
required:
|
||||
- "result"
|
||||
properties:
|
||||
result:
|
||||
$ref: "#/components/schemas/MediaResult"
|
||||
|
||||
MediaResult:
|
||||
required:
|
||||
- "media_key"
|
||||
properties:
|
||||
media_key:
|
||||
type: string
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@ components:
|
|||
- "super_followed_by"
|
||||
- "super_following"
|
||||
- "profile_image_shape"
|
||||
- "tipjar_settings"
|
||||
|
||||
properties:
|
||||
__typename:
|
||||
|
|
@ -92,6 +93,8 @@ components:
|
|||
$ref: "#/components/schemas/UserVerificationInfo"
|
||||
is_profile_translatable:
|
||||
type: boolean
|
||||
tipjar_settings:
|
||||
$ref: "#/components/schemas/UserTipJarSettings"
|
||||
|
||||
UserProfessional:
|
||||
required:
|
||||
|
|
@ -194,6 +197,23 @@ components:
|
|||
type: string
|
||||
enum: ["ExternalUrl"]
|
||||
|
||||
UserTipJarSettings:
|
||||
properties:
|
||||
is_enabled:
|
||||
type: boolean
|
||||
patreon_handle:
|
||||
type: string
|
||||
bitcoin_handle:
|
||||
type: string
|
||||
ethereum_handle:
|
||||
type: string
|
||||
cash_app_handle:
|
||||
type: string
|
||||
venmo_handle:
|
||||
type: string
|
||||
gofundme_handle:
|
||||
type: string # uri
|
||||
|
||||
UserLegacy:
|
||||
required:
|
||||
- "blocked_by"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue