mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 07:30:37 +01:00
fix model
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
parent
d9082fbeea
commit
0d0f563c0d
2 changed files with 50 additions and 4 deletions
|
|
@ -33,6 +33,8 @@ components:
|
|||
additionalProperties: true # todo
|
||||
tweetInterstitial:
|
||||
$ref: "#/components/schemas/TweetInterstitial"
|
||||
mediaVisibilityResults:
|
||||
$ref: "#/components/schemas/MediaVisibilityResults"
|
||||
|
||||
TweetInterstitial:
|
||||
required:
|
||||
|
|
@ -95,6 +97,26 @@ components:
|
|||
type: string
|
||||
enum: [ExternalUrl]
|
||||
|
||||
MediaVisibilityResults:
|
||||
required:
|
||||
- "blurred_image_interstitial"
|
||||
properties:
|
||||
blurred_image_interstitial:
|
||||
$ref: "#/components/schemas/MediaVisibilityResultsBlurredImageInterstitial"
|
||||
|
||||
MediaVisibilityResultsBlurredImageInterstitial:
|
||||
required:
|
||||
- "opacity"
|
||||
- "text"
|
||||
- "title"
|
||||
properties:
|
||||
opacity:
|
||||
type: number
|
||||
text:
|
||||
$ref: "#/components/schemas/TweetInterstitialText"
|
||||
title:
|
||||
$ref: "#/components/schemas/TweetInterstitialText"
|
||||
|
||||
TweetInterstitialRevealText:
|
||||
required:
|
||||
- "rtl"
|
||||
|
|
@ -999,7 +1021,6 @@ components:
|
|||
- "original_info"
|
||||
- "media_key"
|
||||
- "ext_media_availability"
|
||||
- "media_results"
|
||||
properties:
|
||||
display_url:
|
||||
type: string
|
||||
|
|
@ -1098,7 +1119,6 @@ components:
|
|||
# - "features"
|
||||
- "sizes"
|
||||
- "original_info"
|
||||
- "media_results"
|
||||
properties:
|
||||
display_url:
|
||||
type: string
|
||||
|
|
@ -1345,7 +1365,6 @@ components:
|
|||
- "preview_text"
|
||||
- "cover_media"
|
||||
- "metadata"
|
||||
- "lifecycle_state"
|
||||
properties:
|
||||
rest_id:
|
||||
type: string
|
||||
|
|
|
|||
|
|
@ -39,7 +39,6 @@ components:
|
|||
- "super_followed_by"
|
||||
- "super_following"
|
||||
- "profile_image_shape"
|
||||
- "tipjar_settings"
|
||||
|
||||
properties:
|
||||
__typename:
|
||||
|
|
@ -95,6 +94,8 @@ components:
|
|||
type: boolean
|
||||
tipjar_settings:
|
||||
$ref: "#/components/schemas/UserTipJarSettings"
|
||||
legacy_extended_profile:
|
||||
$ref: "#/components/schemas/UserLegacyExtendedProfile"
|
||||
|
||||
UserProfessional:
|
||||
required:
|
||||
|
|
@ -214,6 +215,32 @@ components:
|
|||
gofundme_handle:
|
||||
type: string # uri
|
||||
|
||||
UserLegacyExtendedProfile:
|
||||
properties:
|
||||
birthdate:
|
||||
$ref: "#/components/schemas/UserLegacyExtendedProfileBirthdate"
|
||||
|
||||
UserLegacyExtendedProfileBirthdate:
|
||||
required:
|
||||
- "day"
|
||||
- "month"
|
||||
- "year"
|
||||
- "visibility"
|
||||
- "year_visibility"
|
||||
properties:
|
||||
day:
|
||||
type: integer
|
||||
month:
|
||||
type: integer
|
||||
year:
|
||||
type: integer
|
||||
visibility:
|
||||
type: string
|
||||
enum: ["Self", "Public", "MutualFollow", "Followers", "Following"]
|
||||
year_visibility:
|
||||
type: string
|
||||
enum: ["Self", "Public", "MutualFollow", "Followers", "Following"]
|
||||
|
||||
UserLegacy:
|
||||
required:
|
||||
- "blocked_by"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue