mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 07:30:37 +01:00
build
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
parent
c19d43c42a
commit
95ef71b398
2 changed files with 310 additions and 44 deletions
177
dist/compatible/openapi-3.0.yaml
vendored
177
dist/compatible/openapi-3.0.yaml
vendored
|
|
@ -395,6 +395,15 @@ components:
|
|||
required:
|
||||
- errors
|
||||
type: object
|
||||
ExtMediaAvailability:
|
||||
properties:
|
||||
reason:
|
||||
type: string
|
||||
status:
|
||||
enum:
|
||||
- Available
|
||||
- Unavailable
|
||||
type: string
|
||||
ExtendedEntities:
|
||||
properties:
|
||||
media:
|
||||
|
|
@ -571,12 +580,17 @@ components:
|
|||
type: object
|
||||
Media:
|
||||
properties:
|
||||
additional_media_info:
|
||||
additionalProperties: true
|
||||
type: object
|
||||
display_url:
|
||||
format: uri
|
||||
type: string
|
||||
expanded_url:
|
||||
format: uri
|
||||
type: string
|
||||
ext_media_availability:
|
||||
$ref: '#/components/schemas/ExtMediaAvailability'
|
||||
features:
|
||||
type: object
|
||||
id_str:
|
||||
|
|
@ -586,6 +600,8 @@ components:
|
|||
items:
|
||||
type: integer
|
||||
type: array
|
||||
media_key:
|
||||
type: string
|
||||
media_url_https:
|
||||
format: uri
|
||||
type: string
|
||||
|
|
@ -602,6 +618,9 @@ components:
|
|||
url:
|
||||
format: uri
|
||||
type: string
|
||||
video_info:
|
||||
additionalProperties: true
|
||||
type: object
|
||||
required:
|
||||
- display_url
|
||||
- expanded_url
|
||||
|
|
@ -612,6 +631,8 @@ components:
|
|||
- url
|
||||
- sizes
|
||||
- original_info
|
||||
- media_key
|
||||
- ext_media_availability
|
||||
MediaExtended:
|
||||
properties:
|
||||
additional_media_info:
|
||||
|
|
@ -623,7 +644,7 @@ components:
|
|||
format: uri
|
||||
type: string
|
||||
ext_media_availability:
|
||||
$ref: '#/components/schemas/extMediaAvailability'
|
||||
$ref: '#/components/schemas/ExtMediaAvailability'
|
||||
features:
|
||||
type: object
|
||||
id_str:
|
||||
|
|
@ -634,7 +655,7 @@ components:
|
|||
type: integer
|
||||
type: array
|
||||
mediaStats:
|
||||
$ref: '#/components/schemas/mediaStats'
|
||||
$ref: '#/components/schemas/MediaStats'
|
||||
media_key:
|
||||
type: string
|
||||
media_url_https:
|
||||
|
|
@ -725,6 +746,12 @@ components:
|
|||
- medium
|
||||
- small
|
||||
- thumb
|
||||
MediaStats:
|
||||
properties:
|
||||
viewCount:
|
||||
type: integer
|
||||
required:
|
||||
- viewCount
|
||||
MediaVideoInfo:
|
||||
properties:
|
||||
aspect_ratio:
|
||||
|
|
@ -970,10 +997,26 @@ components:
|
|||
SocialContext:
|
||||
properties:
|
||||
contextType:
|
||||
enum:
|
||||
- Follow
|
||||
type: string
|
||||
landingUrl:
|
||||
$ref: '#/components/schemas/SocialContextLandingUrl'
|
||||
text:
|
||||
type: string
|
||||
type:
|
||||
enum:
|
||||
- TimelineGeneralContext
|
||||
type: string
|
||||
type: object
|
||||
SocialContextLandingUrl:
|
||||
properties:
|
||||
Url:
|
||||
format: uri
|
||||
type: string
|
||||
urlType:
|
||||
enum:
|
||||
- DeepLink
|
||||
type: string
|
||||
type: object
|
||||
Symbol:
|
||||
|
|
@ -1234,12 +1277,16 @@ components:
|
|||
$ref: '#/components/schemas/ContentEntryType'
|
||||
itemType:
|
||||
$ref: '#/components/schemas/ContentEntryType'
|
||||
stopOnEmptyResponse:
|
||||
default: false
|
||||
type: boolean
|
||||
value:
|
||||
type: string
|
||||
required:
|
||||
- __typename
|
||||
- cursorType
|
||||
- value
|
||||
- stopOnEmptyResponse
|
||||
TimelineTimelineItem:
|
||||
properties:
|
||||
__typename:
|
||||
|
|
@ -1291,8 +1338,6 @@ components:
|
|||
- clientEventInfo
|
||||
TimelineTweet:
|
||||
properties:
|
||||
SocialContext:
|
||||
$ref: '#/components/schemas/SocialContext'
|
||||
__typename:
|
||||
$ref: '#/components/schemas/TypeName'
|
||||
itemType:
|
||||
|
|
@ -1300,6 +1345,8 @@ components:
|
|||
promotedMetadata:
|
||||
additionalProperties: true
|
||||
type: object
|
||||
socialContext:
|
||||
$ref: '#/components/schemas/SocialContext'
|
||||
tweetDisplayType:
|
||||
type: string
|
||||
tweet_results:
|
||||
|
|
@ -1311,12 +1358,12 @@ components:
|
|||
- tweet_results
|
||||
TimelineUser:
|
||||
properties:
|
||||
SocialContext:
|
||||
$ref: '#/components/schemas/SocialContext'
|
||||
__typename:
|
||||
$ref: '#/components/schemas/TypeName'
|
||||
itemType:
|
||||
$ref: '#/components/schemas/ContentItemType'
|
||||
socialContext:
|
||||
$ref: '#/components/schemas/SocialContext'
|
||||
userDisplayType:
|
||||
enum:
|
||||
- User
|
||||
|
|
@ -1328,7 +1375,6 @@ components:
|
|||
required:
|
||||
- __typename
|
||||
- itemType
|
||||
- socialContext
|
||||
- userDisplayType
|
||||
- user_results
|
||||
TimelineV2:
|
||||
|
|
@ -1375,6 +1421,8 @@ components:
|
|||
type: string
|
||||
source:
|
||||
type: string
|
||||
unified_card:
|
||||
$ref: '#/components/schemas/UnifiedCard'
|
||||
unmention_data:
|
||||
additionalProperties: true
|
||||
type: object
|
||||
|
|
@ -1397,6 +1445,8 @@ components:
|
|||
items:
|
||||
$ref: '#/components/schemas/TweetCardLegacyBindingValue'
|
||||
type: array
|
||||
card_platform:
|
||||
$ref: '#/components/schemas/TweetCardPlatformData'
|
||||
name:
|
||||
type: string
|
||||
url:
|
||||
|
|
@ -1426,6 +1476,39 @@ components:
|
|||
type: string
|
||||
required:
|
||||
- type
|
||||
TweetCardPlatform:
|
||||
properties:
|
||||
audience:
|
||||
$ref: '#/components/schemas/TweetCardPlatformAudience'
|
||||
device:
|
||||
$ref: '#/components/schemas/TweetCardPlatformDevice'
|
||||
required:
|
||||
- audience
|
||||
- device
|
||||
TweetCardPlatformAudience:
|
||||
properties:
|
||||
name:
|
||||
enum:
|
||||
- production
|
||||
type: string
|
||||
required:
|
||||
- name
|
||||
TweetCardPlatformData:
|
||||
properties:
|
||||
platform:
|
||||
$ref: '#/components/schemas/TweetCardPlatform'
|
||||
required:
|
||||
- platform
|
||||
TweetCardPlatformDevice:
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
version:
|
||||
pattern: ^[0-9]+$
|
||||
type: string
|
||||
required:
|
||||
- name
|
||||
- version
|
||||
TweetDetailResponse:
|
||||
properties:
|
||||
data:
|
||||
|
|
@ -1524,6 +1607,14 @@ components:
|
|||
id_str:
|
||||
pattern: ^[0-9]+$
|
||||
type: string
|
||||
in_reply_to_screen_name:
|
||||
type: string
|
||||
in_reply_to_status_id_str:
|
||||
pattern: ^[0-9]+$
|
||||
type: string
|
||||
in_reply_to_user_id_str:
|
||||
pattern: ^[0-9]+$
|
||||
type: string
|
||||
is_quote_status:
|
||||
type: boolean
|
||||
lang:
|
||||
|
|
@ -1544,6 +1635,8 @@ components:
|
|||
type: boolean
|
||||
retweeted_status_result:
|
||||
$ref: '#/components/schemas/ItemResult'
|
||||
scopes:
|
||||
$ref: '#/components/schemas/TweetLegacyScopes'
|
||||
self_thread:
|
||||
$ref: '#/components/schemas/SelfThread'
|
||||
user_id_str:
|
||||
|
|
@ -1567,6 +1660,12 @@ components:
|
|||
- retweeted
|
||||
- user_id_str
|
||||
- id_str
|
||||
TweetLegacyScopes:
|
||||
properties:
|
||||
followers:
|
||||
type: boolean
|
||||
required:
|
||||
- followers
|
||||
TweetResultByRestIdData:
|
||||
properties:
|
||||
tweetResult:
|
||||
|
|
@ -1662,6 +1761,14 @@ components:
|
|||
$ref: '#/components/schemas/UnfavoriteTweet'
|
||||
required:
|
||||
- data
|
||||
UnifiedCard:
|
||||
properties:
|
||||
card_fetch_state:
|
||||
enum:
|
||||
- NoCard
|
||||
type: string
|
||||
required:
|
||||
- card_fetch_state
|
||||
Url:
|
||||
properties:
|
||||
display_url:
|
||||
|
|
@ -1705,6 +1812,13 @@ components:
|
|||
type: boolean
|
||||
legacy:
|
||||
$ref: '#/components/schemas/UserLegacy'
|
||||
professional:
|
||||
$ref: '#/components/schemas/UserProfessional'
|
||||
profile_image_shape:
|
||||
enum:
|
||||
- Circle
|
||||
- Square
|
||||
type: string
|
||||
rest_id:
|
||||
pattern: ^[0-9]+$
|
||||
type: string
|
||||
|
|
@ -1727,6 +1841,7 @@ components:
|
|||
- super_follow_eligible
|
||||
- super_followed_by
|
||||
- super_following
|
||||
- profile_image_shape
|
||||
UserFeatures:
|
||||
properties:
|
||||
mediatool_studio_library:
|
||||
|
|
@ -1872,6 +1987,10 @@ components:
|
|||
type: string
|
||||
verified:
|
||||
type: boolean
|
||||
verified_type:
|
||||
enum:
|
||||
- Business
|
||||
type: string
|
||||
want_retweets:
|
||||
default: false
|
||||
type: boolean
|
||||
|
|
@ -1910,6 +2029,35 @@ components:
|
|||
UserMention:
|
||||
additionalProperties: true
|
||||
type: object
|
||||
UserProfessional:
|
||||
properties:
|
||||
category:
|
||||
items:
|
||||
$ref: '#/components/schemas/UserProfessionalCategory'
|
||||
type: array
|
||||
professional_type:
|
||||
enum:
|
||||
- Business
|
||||
type: string
|
||||
rest_id:
|
||||
pattern: ^[0-9]+$
|
||||
type: string
|
||||
required:
|
||||
- rest_id
|
||||
- professional_type
|
||||
- category
|
||||
UserProfessionalCategory:
|
||||
properties:
|
||||
icon_name:
|
||||
type: string
|
||||
id:
|
||||
type: integer
|
||||
name:
|
||||
type: string
|
||||
required:
|
||||
- id
|
||||
- name
|
||||
- icon_name
|
||||
UserResponse:
|
||||
properties:
|
||||
data:
|
||||
|
|
@ -2038,21 +2186,6 @@ components:
|
|||
type: array
|
||||
required:
|
||||
- users
|
||||
extMediaAvailability:
|
||||
properties:
|
||||
reason:
|
||||
type: string
|
||||
status:
|
||||
enum:
|
||||
- Available
|
||||
- Unavailable
|
||||
type: string
|
||||
mediaStats:
|
||||
properties:
|
||||
viewCount:
|
||||
type: integer
|
||||
required:
|
||||
- viewCount
|
||||
securitySchemes:
|
||||
Accept:
|
||||
description: '*/*'
|
||||
|
|
|
|||
177
dist/docs/openapi-3.0.yaml
vendored
177
dist/docs/openapi-3.0.yaml
vendored
|
|
@ -395,6 +395,15 @@ components:
|
|||
required:
|
||||
- errors
|
||||
type: object
|
||||
ExtMediaAvailability:
|
||||
properties:
|
||||
reason:
|
||||
type: string
|
||||
status:
|
||||
enum:
|
||||
- Available
|
||||
- Unavailable
|
||||
type: string
|
||||
ExtendedEntities:
|
||||
properties:
|
||||
media:
|
||||
|
|
@ -571,12 +580,17 @@ components:
|
|||
type: object
|
||||
Media:
|
||||
properties:
|
||||
additional_media_info:
|
||||
additionalProperties: true
|
||||
type: object
|
||||
display_url:
|
||||
format: uri
|
||||
type: string
|
||||
expanded_url:
|
||||
format: uri
|
||||
type: string
|
||||
ext_media_availability:
|
||||
$ref: '#/components/schemas/ExtMediaAvailability'
|
||||
features:
|
||||
type: object
|
||||
id_str:
|
||||
|
|
@ -586,6 +600,8 @@ components:
|
|||
items:
|
||||
type: integer
|
||||
type: array
|
||||
media_key:
|
||||
type: string
|
||||
media_url_https:
|
||||
format: uri
|
||||
type: string
|
||||
|
|
@ -602,6 +618,9 @@ components:
|
|||
url:
|
||||
format: uri
|
||||
type: string
|
||||
video_info:
|
||||
additionalProperties: true
|
||||
type: object
|
||||
required:
|
||||
- display_url
|
||||
- expanded_url
|
||||
|
|
@ -612,6 +631,8 @@ components:
|
|||
- url
|
||||
- sizes
|
||||
- original_info
|
||||
- media_key
|
||||
- ext_media_availability
|
||||
MediaExtended:
|
||||
properties:
|
||||
additional_media_info:
|
||||
|
|
@ -623,7 +644,7 @@ components:
|
|||
format: uri
|
||||
type: string
|
||||
ext_media_availability:
|
||||
$ref: '#/components/schemas/extMediaAvailability'
|
||||
$ref: '#/components/schemas/ExtMediaAvailability'
|
||||
features:
|
||||
type: object
|
||||
id_str:
|
||||
|
|
@ -634,7 +655,7 @@ components:
|
|||
type: integer
|
||||
type: array
|
||||
mediaStats:
|
||||
$ref: '#/components/schemas/mediaStats'
|
||||
$ref: '#/components/schemas/MediaStats'
|
||||
media_key:
|
||||
type: string
|
||||
media_url_https:
|
||||
|
|
@ -725,6 +746,12 @@ components:
|
|||
- medium
|
||||
- small
|
||||
- thumb
|
||||
MediaStats:
|
||||
properties:
|
||||
viewCount:
|
||||
type: integer
|
||||
required:
|
||||
- viewCount
|
||||
MediaVideoInfo:
|
||||
properties:
|
||||
aspect_ratio:
|
||||
|
|
@ -970,10 +997,26 @@ components:
|
|||
SocialContext:
|
||||
properties:
|
||||
contextType:
|
||||
enum:
|
||||
- Follow
|
||||
type: string
|
||||
landingUrl:
|
||||
$ref: '#/components/schemas/SocialContextLandingUrl'
|
||||
text:
|
||||
type: string
|
||||
type:
|
||||
enum:
|
||||
- TimelineGeneralContext
|
||||
type: string
|
||||
type: object
|
||||
SocialContextLandingUrl:
|
||||
properties:
|
||||
Url:
|
||||
format: uri
|
||||
type: string
|
||||
urlType:
|
||||
enum:
|
||||
- DeepLink
|
||||
type: string
|
||||
type: object
|
||||
Symbol:
|
||||
|
|
@ -1234,12 +1277,16 @@ components:
|
|||
$ref: '#/components/schemas/ContentEntryType'
|
||||
itemType:
|
||||
$ref: '#/components/schemas/ContentEntryType'
|
||||
stopOnEmptyResponse:
|
||||
default: false
|
||||
type: boolean
|
||||
value:
|
||||
type: string
|
||||
required:
|
||||
- __typename
|
||||
- cursorType
|
||||
- value
|
||||
- stopOnEmptyResponse
|
||||
TimelineTimelineItem:
|
||||
properties:
|
||||
__typename:
|
||||
|
|
@ -1291,8 +1338,6 @@ components:
|
|||
- clientEventInfo
|
||||
TimelineTweet:
|
||||
properties:
|
||||
SocialContext:
|
||||
$ref: '#/components/schemas/SocialContext'
|
||||
__typename:
|
||||
$ref: '#/components/schemas/TypeName'
|
||||
itemType:
|
||||
|
|
@ -1300,6 +1345,8 @@ components:
|
|||
promotedMetadata:
|
||||
additionalProperties: true
|
||||
type: object
|
||||
socialContext:
|
||||
$ref: '#/components/schemas/SocialContext'
|
||||
tweetDisplayType:
|
||||
type: string
|
||||
tweet_results:
|
||||
|
|
@ -1311,12 +1358,12 @@ components:
|
|||
- tweet_results
|
||||
TimelineUser:
|
||||
properties:
|
||||
SocialContext:
|
||||
$ref: '#/components/schemas/SocialContext'
|
||||
__typename:
|
||||
$ref: '#/components/schemas/TypeName'
|
||||
itemType:
|
||||
$ref: '#/components/schemas/ContentItemType'
|
||||
socialContext:
|
||||
$ref: '#/components/schemas/SocialContext'
|
||||
userDisplayType:
|
||||
enum:
|
||||
- User
|
||||
|
|
@ -1328,7 +1375,6 @@ components:
|
|||
required:
|
||||
- __typename
|
||||
- itemType
|
||||
- socialContext
|
||||
- userDisplayType
|
||||
- user_results
|
||||
TimelineV2:
|
||||
|
|
@ -1375,6 +1421,8 @@ components:
|
|||
type: string
|
||||
source:
|
||||
type: string
|
||||
unified_card:
|
||||
$ref: '#/components/schemas/UnifiedCard'
|
||||
unmention_data:
|
||||
additionalProperties: true
|
||||
type: object
|
||||
|
|
@ -1397,6 +1445,8 @@ components:
|
|||
items:
|
||||
$ref: '#/components/schemas/TweetCardLegacyBindingValue'
|
||||
type: array
|
||||
card_platform:
|
||||
$ref: '#/components/schemas/TweetCardPlatformData'
|
||||
name:
|
||||
type: string
|
||||
url:
|
||||
|
|
@ -1426,6 +1476,39 @@ components:
|
|||
type: string
|
||||
required:
|
||||
- type
|
||||
TweetCardPlatform:
|
||||
properties:
|
||||
audience:
|
||||
$ref: '#/components/schemas/TweetCardPlatformAudience'
|
||||
device:
|
||||
$ref: '#/components/schemas/TweetCardPlatformDevice'
|
||||
required:
|
||||
- audience
|
||||
- device
|
||||
TweetCardPlatformAudience:
|
||||
properties:
|
||||
name:
|
||||
enum:
|
||||
- production
|
||||
type: string
|
||||
required:
|
||||
- name
|
||||
TweetCardPlatformData:
|
||||
properties:
|
||||
platform:
|
||||
$ref: '#/components/schemas/TweetCardPlatform'
|
||||
required:
|
||||
- platform
|
||||
TweetCardPlatformDevice:
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
version:
|
||||
pattern: ^[0-9]+$
|
||||
type: string
|
||||
required:
|
||||
- name
|
||||
- version
|
||||
TweetDetailResponse:
|
||||
properties:
|
||||
data:
|
||||
|
|
@ -1524,6 +1607,14 @@ components:
|
|||
id_str:
|
||||
pattern: ^[0-9]+$
|
||||
type: string
|
||||
in_reply_to_screen_name:
|
||||
type: string
|
||||
in_reply_to_status_id_str:
|
||||
pattern: ^[0-9]+$
|
||||
type: string
|
||||
in_reply_to_user_id_str:
|
||||
pattern: ^[0-9]+$
|
||||
type: string
|
||||
is_quote_status:
|
||||
type: boolean
|
||||
lang:
|
||||
|
|
@ -1544,6 +1635,8 @@ components:
|
|||
type: boolean
|
||||
retweeted_status_result:
|
||||
$ref: '#/components/schemas/ItemResult'
|
||||
scopes:
|
||||
$ref: '#/components/schemas/TweetLegacyScopes'
|
||||
self_thread:
|
||||
$ref: '#/components/schemas/SelfThread'
|
||||
user_id_str:
|
||||
|
|
@ -1567,6 +1660,12 @@ components:
|
|||
- retweeted
|
||||
- user_id_str
|
||||
- id_str
|
||||
TweetLegacyScopes:
|
||||
properties:
|
||||
followers:
|
||||
type: boolean
|
||||
required:
|
||||
- followers
|
||||
TweetResultByRestIdData:
|
||||
properties:
|
||||
tweetResult:
|
||||
|
|
@ -1662,6 +1761,14 @@ components:
|
|||
$ref: '#/components/schemas/UnfavoriteTweet'
|
||||
required:
|
||||
- data
|
||||
UnifiedCard:
|
||||
properties:
|
||||
card_fetch_state:
|
||||
enum:
|
||||
- NoCard
|
||||
type: string
|
||||
required:
|
||||
- card_fetch_state
|
||||
Url:
|
||||
properties:
|
||||
display_url:
|
||||
|
|
@ -1705,6 +1812,13 @@ components:
|
|||
type: boolean
|
||||
legacy:
|
||||
$ref: '#/components/schemas/UserLegacy'
|
||||
professional:
|
||||
$ref: '#/components/schemas/UserProfessional'
|
||||
profile_image_shape:
|
||||
enum:
|
||||
- Circle
|
||||
- Square
|
||||
type: string
|
||||
rest_id:
|
||||
pattern: ^[0-9]+$
|
||||
type: string
|
||||
|
|
@ -1727,6 +1841,7 @@ components:
|
|||
- super_follow_eligible
|
||||
- super_followed_by
|
||||
- super_following
|
||||
- profile_image_shape
|
||||
UserFeatures:
|
||||
properties:
|
||||
mediatool_studio_library:
|
||||
|
|
@ -1872,6 +1987,10 @@ components:
|
|||
type: string
|
||||
verified:
|
||||
type: boolean
|
||||
verified_type:
|
||||
enum:
|
||||
- Business
|
||||
type: string
|
||||
want_retweets:
|
||||
default: false
|
||||
type: boolean
|
||||
|
|
@ -1910,6 +2029,35 @@ components:
|
|||
UserMention:
|
||||
additionalProperties: true
|
||||
type: object
|
||||
UserProfessional:
|
||||
properties:
|
||||
category:
|
||||
items:
|
||||
$ref: '#/components/schemas/UserProfessionalCategory'
|
||||
type: array
|
||||
professional_type:
|
||||
enum:
|
||||
- Business
|
||||
type: string
|
||||
rest_id:
|
||||
pattern: ^[0-9]+$
|
||||
type: string
|
||||
required:
|
||||
- rest_id
|
||||
- professional_type
|
||||
- category
|
||||
UserProfessionalCategory:
|
||||
properties:
|
||||
icon_name:
|
||||
type: string
|
||||
id:
|
||||
type: integer
|
||||
name:
|
||||
type: string
|
||||
required:
|
||||
- id
|
||||
- name
|
||||
- icon_name
|
||||
UserResponse:
|
||||
properties:
|
||||
data:
|
||||
|
|
@ -2038,21 +2186,6 @@ components:
|
|||
type: array
|
||||
required:
|
||||
- users
|
||||
extMediaAvailability:
|
||||
properties:
|
||||
reason:
|
||||
type: string
|
||||
status:
|
||||
enum:
|
||||
- Available
|
||||
- Unavailable
|
||||
type: string
|
||||
mediaStats:
|
||||
properties:
|
||||
viewCount:
|
||||
type: integer
|
||||
required:
|
||||
- viewCount
|
||||
securitySchemes:
|
||||
Accept:
|
||||
description: '*/*'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue