1
Fork 0
mirror of https://github.com/thegeneralist01/twitter-openapi synced 2026-01-11 07:30:37 +01:00

add Community note

Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
ふぁ 2023-11-05 14:55:45 +09:00
parent 915b9280f5
commit e9964037bf
No known key found for this signature in database
GPG key ID: 83A8A5E74872A8AA
3 changed files with 275 additions and 0 deletions

View file

@ -52,6 +52,8 @@ components:
rest_id:
type: string
pattern: "^[0-9]+$"
birdwatch_pivot:
$ref: "#/components/schemas/BirdwatchPivot"
core:
$ref: "./user.yaml#/components/schemas/UserResultCore"
card:
@ -206,6 +208,97 @@ components:
type: string
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:
properties:
rest_id: