mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 15:40:26 +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
|
additionalProperties: true # todo
|
||||||
tweetInterstitial:
|
tweetInterstitial:
|
||||||
$ref: "#/components/schemas/TweetInterstitial"
|
$ref: "#/components/schemas/TweetInterstitial"
|
||||||
|
mediaVisibilityResults:
|
||||||
|
$ref: "#/components/schemas/MediaVisibilityResults"
|
||||||
|
|
||||||
TweetInterstitial:
|
TweetInterstitial:
|
||||||
required:
|
required:
|
||||||
|
|
@ -95,6 +97,26 @@ components:
|
||||||
type: string
|
type: string
|
||||||
enum: [ExternalUrl]
|
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:
|
TweetInterstitialRevealText:
|
||||||
required:
|
required:
|
||||||
- "rtl"
|
- "rtl"
|
||||||
|
|
@ -999,7 +1021,6 @@ components:
|
||||||
- "original_info"
|
- "original_info"
|
||||||
- "media_key"
|
- "media_key"
|
||||||
- "ext_media_availability"
|
- "ext_media_availability"
|
||||||
- "media_results"
|
|
||||||
properties:
|
properties:
|
||||||
display_url:
|
display_url:
|
||||||
type: string
|
type: string
|
||||||
|
|
@ -1098,7 +1119,6 @@ components:
|
||||||
# - "features"
|
# - "features"
|
||||||
- "sizes"
|
- "sizes"
|
||||||
- "original_info"
|
- "original_info"
|
||||||
- "media_results"
|
|
||||||
properties:
|
properties:
|
||||||
display_url:
|
display_url:
|
||||||
type: string
|
type: string
|
||||||
|
|
@ -1345,7 +1365,6 @@ components:
|
||||||
- "preview_text"
|
- "preview_text"
|
||||||
- "cover_media"
|
- "cover_media"
|
||||||
- "metadata"
|
- "metadata"
|
||||||
- "lifecycle_state"
|
|
||||||
properties:
|
properties:
|
||||||
rest_id:
|
rest_id:
|
||||||
type: string
|
type: string
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,6 @@ components:
|
||||||
- "super_followed_by"
|
- "super_followed_by"
|
||||||
- "super_following"
|
- "super_following"
|
||||||
- "profile_image_shape"
|
- "profile_image_shape"
|
||||||
- "tipjar_settings"
|
|
||||||
|
|
||||||
properties:
|
properties:
|
||||||
__typename:
|
__typename:
|
||||||
|
|
@ -95,6 +94,8 @@ components:
|
||||||
type: boolean
|
type: boolean
|
||||||
tipjar_settings:
|
tipjar_settings:
|
||||||
$ref: "#/components/schemas/UserTipJarSettings"
|
$ref: "#/components/schemas/UserTipJarSettings"
|
||||||
|
legacy_extended_profile:
|
||||||
|
$ref: "#/components/schemas/UserLegacyExtendedProfile"
|
||||||
|
|
||||||
UserProfessional:
|
UserProfessional:
|
||||||
required:
|
required:
|
||||||
|
|
@ -214,6 +215,32 @@ components:
|
||||||
gofundme_handle:
|
gofundme_handle:
|
||||||
type: string # uri
|
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:
|
UserLegacy:
|
||||||
required:
|
required:
|
||||||
- "blocked_by"
|
- "blocked_by"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue