mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 23:50:26 +01:00
update chemas
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
parent
b622d6ec61
commit
c19d43c42a
3 changed files with 144 additions and 7 deletions
|
|
@ -81,6 +81,7 @@ components:
|
||||||
- "__typename"
|
- "__typename"
|
||||||
- "cursorType"
|
- "cursorType"
|
||||||
- "value"
|
- "value"
|
||||||
|
- "stopOnEmptyResponse"
|
||||||
properties:
|
properties:
|
||||||
__typename:
|
__typename:
|
||||||
$ref: "./typename.yaml#/components/schemas/TypeName" # TimelineTimelineCursor
|
$ref: "./typename.yaml#/components/schemas/TypeName" # TimelineTimelineCursor
|
||||||
|
|
@ -92,6 +93,9 @@ components:
|
||||||
$ref: "#/components/schemas/CursorType"
|
$ref: "#/components/schemas/CursorType"
|
||||||
value:
|
value:
|
||||||
type: string
|
type: string
|
||||||
|
stopOnEmptyResponse:
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
|
||||||
# ================= Module =================
|
# ================= Module =================
|
||||||
|
|
||||||
|
|
@ -163,7 +167,7 @@ components:
|
||||||
type: string
|
type: string
|
||||||
tweet_results:
|
tweet_results:
|
||||||
$ref: "#/components/schemas/ItemResult"
|
$ref: "#/components/schemas/ItemResult"
|
||||||
SocialContext:
|
socialContext:
|
||||||
$ref: "#/components/schemas/SocialContext"
|
$ref: "#/components/schemas/SocialContext"
|
||||||
promotedMetadata:
|
promotedMetadata:
|
||||||
type: object
|
type: object
|
||||||
|
|
@ -173,7 +177,6 @@ components:
|
||||||
required:
|
required:
|
||||||
- "__typename"
|
- "__typename"
|
||||||
- "itemType"
|
- "itemType"
|
||||||
- "socialContext"
|
|
||||||
- "userDisplayType"
|
- "userDisplayType"
|
||||||
- "user_results"
|
- "user_results"
|
||||||
properties:
|
properties:
|
||||||
|
|
@ -181,7 +184,7 @@ components:
|
||||||
$ref: "./typename.yaml#/components/schemas/TypeName" # TimelineUser
|
$ref: "./typename.yaml#/components/schemas/TypeName" # TimelineUser
|
||||||
itemType:
|
itemType:
|
||||||
$ref: "#/components/schemas/ContentItemType" # TimelineUser
|
$ref: "#/components/schemas/ContentItemType" # TimelineUser
|
||||||
SocialContext:
|
socialContext:
|
||||||
$ref: "#/components/schemas/SocialContext"
|
$ref: "#/components/schemas/SocialContext"
|
||||||
userDisplayType:
|
userDisplayType:
|
||||||
type: string
|
type: string
|
||||||
|
|
@ -201,10 +204,24 @@ components:
|
||||||
properties:
|
properties:
|
||||||
contextType:
|
contextType:
|
||||||
type: string # enum
|
type: string # enum
|
||||||
|
enum: ["Follow"]
|
||||||
text:
|
text:
|
||||||
type: string
|
type: string
|
||||||
type:
|
type:
|
||||||
type: string # enum
|
type: string # enum
|
||||||
|
enum: ["TimelineGeneralContext"]
|
||||||
|
landingUrl:
|
||||||
|
$ref: "#/components/schemas/SocialContextLandingUrl"
|
||||||
|
|
||||||
|
SocialContextLandingUrl:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
urlType:
|
||||||
|
type: string # enum
|
||||||
|
enum: ["DeepLink"]
|
||||||
|
Url:
|
||||||
|
type: string # twitter://user?id=900282258736545792
|
||||||
|
format: uri
|
||||||
|
|
||||||
TimelinePrompt:
|
TimelinePrompt:
|
||||||
properties:
|
properties:
|
||||||
|
|
|
||||||
|
|
@ -80,6 +80,8 @@ components:
|
||||||
$ref: "#/components/schemas/NoteTweet"
|
$ref: "#/components/schemas/NoteTweet"
|
||||||
quick_promote_eligibility:
|
quick_promote_eligibility:
|
||||||
type: object
|
type: object
|
||||||
|
unified_card:
|
||||||
|
$ref: "#/components/schemas/UnifiedCard"
|
||||||
|
|
||||||
TweetEditControl:
|
TweetEditControl:
|
||||||
properties:
|
properties:
|
||||||
|
|
@ -220,6 +222,14 @@ components:
|
||||||
type: string
|
type: string
|
||||||
enum: [Bold, Italic]
|
enum: [Bold, Italic]
|
||||||
|
|
||||||
|
UnifiedCard:
|
||||||
|
required:
|
||||||
|
- "card_fetch_state"
|
||||||
|
properties:
|
||||||
|
card_fetch_state:
|
||||||
|
type: string
|
||||||
|
enum: [NoCard]
|
||||||
|
|
||||||
BirdwatchPivot:
|
BirdwatchPivot:
|
||||||
required:
|
required:
|
||||||
- "destinationUrl"
|
- "destinationUrl"
|
||||||
|
|
@ -333,6 +343,46 @@ components:
|
||||||
items:
|
items:
|
||||||
$ref: "#/components/schemas/TweetCardLegacyBindingValue"
|
$ref: "#/components/schemas/TweetCardLegacyBindingValue"
|
||||||
|
|
||||||
|
# {'platform': {'audience': {'name': 'production'}, 'device': {'name': 'Swift', 'version': '12'}}}
|
||||||
|
card_platform:
|
||||||
|
$ref: "#/components/schemas/TweetCardPlatformData"
|
||||||
|
|
||||||
|
TweetCardPlatformData:
|
||||||
|
required:
|
||||||
|
- "platform"
|
||||||
|
properties:
|
||||||
|
platform:
|
||||||
|
$ref: "#/components/schemas/TweetCardPlatform"
|
||||||
|
|
||||||
|
TweetCardPlatform:
|
||||||
|
required:
|
||||||
|
- "audience"
|
||||||
|
- "device"
|
||||||
|
properties:
|
||||||
|
audience:
|
||||||
|
$ref: "#/components/schemas/TweetCardPlatformAudience"
|
||||||
|
device:
|
||||||
|
$ref: "#/components/schemas/TweetCardPlatformDevice"
|
||||||
|
|
||||||
|
TweetCardPlatformAudience:
|
||||||
|
required:
|
||||||
|
- "name"
|
||||||
|
properties:
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
enum: [production]
|
||||||
|
|
||||||
|
TweetCardPlatformDevice:
|
||||||
|
required:
|
||||||
|
- "name"
|
||||||
|
- "version"
|
||||||
|
properties:
|
||||||
|
name:
|
||||||
|
type: string # enum Swift
|
||||||
|
version:
|
||||||
|
type: string
|
||||||
|
pattern: "^[0-9]+$"
|
||||||
|
|
||||||
TweetCardLegacyBindingValue:
|
TweetCardLegacyBindingValue:
|
||||||
required:
|
required:
|
||||||
- "key"
|
- "key"
|
||||||
|
|
@ -427,6 +477,16 @@ components:
|
||||||
$ref: "#/components/schemas/SelfThread"
|
$ref: "#/components/schemas/SelfThread"
|
||||||
extended_entities:
|
extended_entities:
|
||||||
$ref: "#/components/schemas/ExtendedEntities"
|
$ref: "#/components/schemas/ExtendedEntities"
|
||||||
|
scopes:
|
||||||
|
$ref: "#/components/schemas/TweetLegacyScopes"
|
||||||
|
in_reply_to_screen_name:
|
||||||
|
type: string
|
||||||
|
in_reply_to_status_id_str:
|
||||||
|
type: string
|
||||||
|
pattern: "^[0-9]+$"
|
||||||
|
in_reply_to_user_id_str:
|
||||||
|
type: string
|
||||||
|
pattern: "^[0-9]+$"
|
||||||
|
|
||||||
SelfThread:
|
SelfThread:
|
||||||
required:
|
required:
|
||||||
|
|
@ -506,6 +566,8 @@ components:
|
||||||
# - "features"
|
# - "features"
|
||||||
- "sizes"
|
- "sizes"
|
||||||
- "original_info"
|
- "original_info"
|
||||||
|
- "media_key"
|
||||||
|
- "ext_media_availability"
|
||||||
properties:
|
properties:
|
||||||
display_url:
|
display_url:
|
||||||
type: string
|
type: string
|
||||||
|
|
@ -535,6 +597,23 @@ components:
|
||||||
$ref: "#/components/schemas/MediaSizes"
|
$ref: "#/components/schemas/MediaSizes"
|
||||||
original_info:
|
original_info:
|
||||||
$ref: "#/components/schemas/MediaOriginalInfo"
|
$ref: "#/components/schemas/MediaOriginalInfo"
|
||||||
|
media_key:
|
||||||
|
type: string
|
||||||
|
ext_media_availability:
|
||||||
|
$ref: "#/components/schemas/ExtMediaAvailability"
|
||||||
|
video_info:
|
||||||
|
type: object
|
||||||
|
additionalProperties: true # todo
|
||||||
|
additional_media_info:
|
||||||
|
type: object
|
||||||
|
additionalProperties: true # todo
|
||||||
|
|
||||||
|
TweetLegacyScopes:
|
||||||
|
required:
|
||||||
|
- "followers"
|
||||||
|
properties:
|
||||||
|
followers:
|
||||||
|
type: boolean
|
||||||
|
|
||||||
ExtendedEntities:
|
ExtendedEntities:
|
||||||
required:
|
required:
|
||||||
|
|
@ -587,9 +666,9 @@ components:
|
||||||
additional_media_info:
|
additional_media_info:
|
||||||
$ref: "#/components/schemas/AdditionalMediaInfo"
|
$ref: "#/components/schemas/AdditionalMediaInfo"
|
||||||
mediaStats:
|
mediaStats:
|
||||||
$ref: "#/components/schemas/mediaStats"
|
$ref: "#/components/schemas/MediaStats"
|
||||||
ext_media_availability:
|
ext_media_availability:
|
||||||
$ref: "#/components/schemas/extMediaAvailability"
|
$ref: "#/components/schemas/ExtMediaAvailability"
|
||||||
features:
|
features:
|
||||||
type: object
|
type: object
|
||||||
sizes:
|
sizes:
|
||||||
|
|
@ -666,14 +745,14 @@ components:
|
||||||
monetizable:
|
monetizable:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
|
||||||
mediaStats:
|
MediaStats:
|
||||||
required:
|
required:
|
||||||
- "viewCount"
|
- "viewCount"
|
||||||
properties:
|
properties:
|
||||||
viewCount:
|
viewCount:
|
||||||
type: integer
|
type: integer
|
||||||
|
|
||||||
extMediaAvailability:
|
ExtMediaAvailability:
|
||||||
# required:
|
# required:
|
||||||
# - "status"
|
# - "status"
|
||||||
properties:
|
properties:
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,7 @@ components:
|
||||||
- "super_follow_eligible"
|
- "super_follow_eligible"
|
||||||
- "super_followed_by"
|
- "super_followed_by"
|
||||||
- "super_following"
|
- "super_following"
|
||||||
|
- "profile_image_shape"
|
||||||
|
|
||||||
properties:
|
properties:
|
||||||
__typename:
|
__typename:
|
||||||
|
|
@ -73,6 +74,43 @@ components:
|
||||||
super_following:
|
super_following:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
|
profile_image_shape:
|
||||||
|
type: string
|
||||||
|
enum:
|
||||||
|
- "Circle"
|
||||||
|
- "Square"
|
||||||
|
professional:
|
||||||
|
$ref: "#/components/schemas/UserProfessional"
|
||||||
|
|
||||||
|
UserProfessional:
|
||||||
|
required:
|
||||||
|
- "rest_id"
|
||||||
|
- "professional_type"
|
||||||
|
- "category"
|
||||||
|
properties:
|
||||||
|
rest_id:
|
||||||
|
type: string
|
||||||
|
pattern: "^[0-9]+$"
|
||||||
|
professional_type:
|
||||||
|
type: string
|
||||||
|
enum: ["Business"]
|
||||||
|
category:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: "#/components/schemas/UserProfessionalCategory"
|
||||||
|
|
||||||
|
UserProfessionalCategory:
|
||||||
|
required:
|
||||||
|
- "id"
|
||||||
|
- "name"
|
||||||
|
- "icon_name"
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
type: integer
|
||||||
|
name:
|
||||||
|
type: string # enum
|
||||||
|
icon_name:
|
||||||
|
type: string # IconBriefcaseStroke ?
|
||||||
|
|
||||||
UserLegacy:
|
UserLegacy:
|
||||||
required:
|
required:
|
||||||
|
|
@ -219,6 +257,9 @@ components:
|
||||||
want_retweets:
|
want_retweets:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
|
verified_type:
|
||||||
|
type: string
|
||||||
|
enum: ["Business"]
|
||||||
|
|
||||||
UserUnavailable:
|
UserUnavailable:
|
||||||
required:
|
required:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue