mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 23:50:26 +01:00
add Community note
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
parent
915b9280f5
commit
e9964037bf
3 changed files with 275 additions and 0 deletions
91
dist/compatible/openapi-3.0.yaml
vendored
91
dist/compatible/openapi-3.0.yaml
vendored
|
|
@ -6,6 +6,95 @@ components:
|
||||||
type: boolean
|
type: boolean
|
||||||
required:
|
required:
|
||||||
- monetizable
|
- monetizable
|
||||||
|
BirdwatchEntity:
|
||||||
|
properties:
|
||||||
|
fromIndex:
|
||||||
|
type: integer
|
||||||
|
ref:
|
||||||
|
$ref: '#/components/schemas/BirdwatchEntityRef'
|
||||||
|
toIndex:
|
||||||
|
type: integer
|
||||||
|
required:
|
||||||
|
- fromIndex
|
||||||
|
- toIndex
|
||||||
|
- ref
|
||||||
|
BirdwatchEntityRef:
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
enum:
|
||||||
|
- TimelineUrl
|
||||||
|
type: string
|
||||||
|
url:
|
||||||
|
format: uri
|
||||||
|
type: string
|
||||||
|
urlType:
|
||||||
|
enum:
|
||||||
|
- ExternalUrl
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
- url
|
||||||
|
- urlType
|
||||||
|
BirdwatchPivot:
|
||||||
|
properties:
|
||||||
|
destinationUrl:
|
||||||
|
format: uri
|
||||||
|
type: string
|
||||||
|
footer:
|
||||||
|
$ref: '#/components/schemas/BirdwatchPivotFooter'
|
||||||
|
iconType:
|
||||||
|
enum:
|
||||||
|
- BirdwatchV1Icon
|
||||||
|
type: string
|
||||||
|
note:
|
||||||
|
$ref: '#/components/schemas/BirdwatchPivotNote'
|
||||||
|
shorttitle:
|
||||||
|
type: string
|
||||||
|
subtitle:
|
||||||
|
$ref: '#/components/schemas/BirdwatchPivotSubtitle'
|
||||||
|
title:
|
||||||
|
type: string
|
||||||
|
visualStyle:
|
||||||
|
enum:
|
||||||
|
- Default
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- destinationUrl
|
||||||
|
- footer
|
||||||
|
- note
|
||||||
|
- subtitle
|
||||||
|
- title
|
||||||
|
- shorttitle
|
||||||
|
- iconType
|
||||||
|
BirdwatchPivotFooter:
|
||||||
|
properties:
|
||||||
|
entities:
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/BirdwatchEntity'
|
||||||
|
type: array
|
||||||
|
text:
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- text
|
||||||
|
- entities
|
||||||
|
BirdwatchPivotNote:
|
||||||
|
properties:
|
||||||
|
rest_id:
|
||||||
|
pattern: ^[0-9]+$
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- rest_id
|
||||||
|
BirdwatchPivotSubtitle:
|
||||||
|
properties:
|
||||||
|
entities:
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/BirdwatchEntity'
|
||||||
|
type: array
|
||||||
|
text:
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- text
|
||||||
|
- entities
|
||||||
BookmarksResponse:
|
BookmarksResponse:
|
||||||
properties:
|
properties:
|
||||||
data:
|
data:
|
||||||
|
|
@ -1249,6 +1338,8 @@ components:
|
||||||
properties:
|
properties:
|
||||||
__typename:
|
__typename:
|
||||||
$ref: '#/components/schemas/TypeName'
|
$ref: '#/components/schemas/TypeName'
|
||||||
|
birdwatch_pivot:
|
||||||
|
$ref: '#/components/schemas/BirdwatchPivot'
|
||||||
card:
|
card:
|
||||||
$ref: '#/components/schemas/TweetCard'
|
$ref: '#/components/schemas/TweetCard'
|
||||||
core:
|
core:
|
||||||
|
|
|
||||||
91
dist/docs/openapi-3.0.yaml
vendored
91
dist/docs/openapi-3.0.yaml
vendored
|
|
@ -6,6 +6,95 @@ components:
|
||||||
type: boolean
|
type: boolean
|
||||||
required:
|
required:
|
||||||
- monetizable
|
- monetizable
|
||||||
|
BirdwatchEntity:
|
||||||
|
properties:
|
||||||
|
fromIndex:
|
||||||
|
type: integer
|
||||||
|
ref:
|
||||||
|
$ref: '#/components/schemas/BirdwatchEntityRef'
|
||||||
|
toIndex:
|
||||||
|
type: integer
|
||||||
|
required:
|
||||||
|
- fromIndex
|
||||||
|
- toIndex
|
||||||
|
- ref
|
||||||
|
BirdwatchEntityRef:
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
enum:
|
||||||
|
- TimelineUrl
|
||||||
|
type: string
|
||||||
|
url:
|
||||||
|
format: uri
|
||||||
|
type: string
|
||||||
|
urlType:
|
||||||
|
enum:
|
||||||
|
- ExternalUrl
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
- url
|
||||||
|
- urlType
|
||||||
|
BirdwatchPivot:
|
||||||
|
properties:
|
||||||
|
destinationUrl:
|
||||||
|
format: uri
|
||||||
|
type: string
|
||||||
|
footer:
|
||||||
|
$ref: '#/components/schemas/BirdwatchPivotFooter'
|
||||||
|
iconType:
|
||||||
|
enum:
|
||||||
|
- BirdwatchV1Icon
|
||||||
|
type: string
|
||||||
|
note:
|
||||||
|
$ref: '#/components/schemas/BirdwatchPivotNote'
|
||||||
|
shorttitle:
|
||||||
|
type: string
|
||||||
|
subtitle:
|
||||||
|
$ref: '#/components/schemas/BirdwatchPivotSubtitle'
|
||||||
|
title:
|
||||||
|
type: string
|
||||||
|
visualStyle:
|
||||||
|
enum:
|
||||||
|
- Default
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- destinationUrl
|
||||||
|
- footer
|
||||||
|
- note
|
||||||
|
- subtitle
|
||||||
|
- title
|
||||||
|
- shorttitle
|
||||||
|
- iconType
|
||||||
|
BirdwatchPivotFooter:
|
||||||
|
properties:
|
||||||
|
entities:
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/BirdwatchEntity'
|
||||||
|
type: array
|
||||||
|
text:
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- text
|
||||||
|
- entities
|
||||||
|
BirdwatchPivotNote:
|
||||||
|
properties:
|
||||||
|
rest_id:
|
||||||
|
pattern: ^[0-9]+$
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- rest_id
|
||||||
|
BirdwatchPivotSubtitle:
|
||||||
|
properties:
|
||||||
|
entities:
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/BirdwatchEntity'
|
||||||
|
type: array
|
||||||
|
text:
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- text
|
||||||
|
- entities
|
||||||
BookmarksResponse:
|
BookmarksResponse:
|
||||||
properties:
|
properties:
|
||||||
data:
|
data:
|
||||||
|
|
@ -1249,6 +1338,8 @@ components:
|
||||||
properties:
|
properties:
|
||||||
__typename:
|
__typename:
|
||||||
$ref: '#/components/schemas/TypeName'
|
$ref: '#/components/schemas/TypeName'
|
||||||
|
birdwatch_pivot:
|
||||||
|
$ref: '#/components/schemas/BirdwatchPivot'
|
||||||
card:
|
card:
|
||||||
$ref: '#/components/schemas/TweetCard'
|
$ref: '#/components/schemas/TweetCard'
|
||||||
core:
|
core:
|
||||||
|
|
|
||||||
|
|
@ -52,6 +52,8 @@ components:
|
||||||
rest_id:
|
rest_id:
|
||||||
type: string
|
type: string
|
||||||
pattern: "^[0-9]+$"
|
pattern: "^[0-9]+$"
|
||||||
|
birdwatch_pivot:
|
||||||
|
$ref: "#/components/schemas/BirdwatchPivot"
|
||||||
core:
|
core:
|
||||||
$ref: "./user.yaml#/components/schemas/UserResultCore"
|
$ref: "./user.yaml#/components/schemas/UserResultCore"
|
||||||
card:
|
card:
|
||||||
|
|
@ -206,6 +208,97 @@ components:
|
||||||
type: string
|
type: string
|
||||||
enum: [Bold, Italic]
|
enum: [Bold, Italic]
|
||||||
|
|
||||||
|
BirdwatchPivot:
|
||||||
|
required:
|
||||||
|
- "destinationUrl"
|
||||||
|
- "footer"
|
||||||
|
- "note"
|
||||||
|
- "subtitle"
|
||||||
|
- "title"
|
||||||
|
- "shorttitle"
|
||||||
|
- "iconType"
|
||||||
|
properties:
|
||||||
|
destinationUrl:
|
||||||
|
type: string
|
||||||
|
format: uri
|
||||||
|
footer:
|
||||||
|
$ref: "#/components/schemas/BirdwatchPivotFooter"
|
||||||
|
note:
|
||||||
|
$ref: "#/components/schemas/BirdwatchPivotNote"
|
||||||
|
subtitle:
|
||||||
|
$ref: "#/components/schemas/BirdwatchPivotSubtitle"
|
||||||
|
title:
|
||||||
|
type: string
|
||||||
|
shorttitle:
|
||||||
|
type: string
|
||||||
|
visualStyle:
|
||||||
|
type: string
|
||||||
|
enum: [Default]
|
||||||
|
iconType:
|
||||||
|
type: string
|
||||||
|
enum: [BirdwatchV1Icon]
|
||||||
|
|
||||||
|
BirdwatchPivotFooter:
|
||||||
|
required:
|
||||||
|
- "text"
|
||||||
|
- "entities"
|
||||||
|
properties:
|
||||||
|
text:
|
||||||
|
type: string
|
||||||
|
entities:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: "#/components/schemas/BirdwatchEntity"
|
||||||
|
|
||||||
|
BirdwatchEntity:
|
||||||
|
required:
|
||||||
|
- "fromIndex"
|
||||||
|
- "toIndex"
|
||||||
|
- "ref"
|
||||||
|
properties:
|
||||||
|
fromIndex:
|
||||||
|
type: integer
|
||||||
|
toIndex:
|
||||||
|
type: integer
|
||||||
|
ref:
|
||||||
|
$ref: "#/components/schemas/BirdwatchEntityRef"
|
||||||
|
|
||||||
|
BirdwatchEntityRef:
|
||||||
|
required:
|
||||||
|
- "type"
|
||||||
|
- "url"
|
||||||
|
- "urlType"
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
type: string
|
||||||
|
enum: [TimelineUrl]
|
||||||
|
url:
|
||||||
|
type: string
|
||||||
|
format: uri
|
||||||
|
urlType:
|
||||||
|
type: string
|
||||||
|
enum: [ExternalUrl]
|
||||||
|
|
||||||
|
BirdwatchPivotNote:
|
||||||
|
required:
|
||||||
|
- "rest_id"
|
||||||
|
properties:
|
||||||
|
rest_id:
|
||||||
|
type: string
|
||||||
|
pattern: "^[0-9]+$"
|
||||||
|
|
||||||
|
BirdwatchPivotSubtitle:
|
||||||
|
required:
|
||||||
|
- "text"
|
||||||
|
- "entities"
|
||||||
|
properties:
|
||||||
|
text:
|
||||||
|
type: string
|
||||||
|
entities:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: "#/components/schemas/BirdwatchEntity"
|
||||||
|
|
||||||
TweetCard:
|
TweetCard:
|
||||||
properties:
|
properties:
|
||||||
rest_id:
|
rest_id:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue