mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 15:40:26 +01:00
add note tweet
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
parent
a4bb8f6e31
commit
915b9280f5
3 changed files with 210 additions and 0 deletions
69
dist/compatible/openapi-3.0.yaml
vendored
69
dist/compatible/openapi-3.0.yaml
vendored
|
|
@ -682,6 +682,71 @@ components:
|
||||||
required:
|
required:
|
||||||
- entryId
|
- entryId
|
||||||
- item
|
- item
|
||||||
|
NoteTweet:
|
||||||
|
properties:
|
||||||
|
is_expandable:
|
||||||
|
type: boolean
|
||||||
|
note_tweet_results:
|
||||||
|
$ref: '#/components/schemas/NoteTweetResult'
|
||||||
|
required:
|
||||||
|
- is_expandable
|
||||||
|
- note_tweet_results
|
||||||
|
NoteTweetResult:
|
||||||
|
properties:
|
||||||
|
result:
|
||||||
|
$ref: '#/components/schemas/NoteTweetResultData'
|
||||||
|
required:
|
||||||
|
- result
|
||||||
|
NoteTweetResultData:
|
||||||
|
properties:
|
||||||
|
entity_set:
|
||||||
|
$ref: '#/components/schemas/Entities'
|
||||||
|
id:
|
||||||
|
pattern: ^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$
|
||||||
|
type: string
|
||||||
|
media:
|
||||||
|
$ref: '#/components/schemas/NoteTweetResultMedia'
|
||||||
|
richtext:
|
||||||
|
$ref: '#/components/schemas/NoteTweetResultRichText'
|
||||||
|
text:
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- entity_set
|
||||||
|
- id
|
||||||
|
- text
|
||||||
|
NoteTweetResultMedia:
|
||||||
|
properties:
|
||||||
|
inline_media:
|
||||||
|
items:
|
||||||
|
type: object
|
||||||
|
type: array
|
||||||
|
required:
|
||||||
|
- inline_media
|
||||||
|
NoteTweetResultRichText:
|
||||||
|
properties:
|
||||||
|
richtext_tags:
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/NoteTweetResultRichTextTag'
|
||||||
|
type: array
|
||||||
|
required:
|
||||||
|
- richtext_tags
|
||||||
|
NoteTweetResultRichTextTag:
|
||||||
|
properties:
|
||||||
|
from_index:
|
||||||
|
type: integer
|
||||||
|
richtext_types:
|
||||||
|
items:
|
||||||
|
enum:
|
||||||
|
- Bold
|
||||||
|
- Italic
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
to_index:
|
||||||
|
type: integer
|
||||||
|
required:
|
||||||
|
- from_index
|
||||||
|
- to_index
|
||||||
|
- richtext_types
|
||||||
OneFactorLoginEligibility:
|
OneFactorLoginEligibility:
|
||||||
properties:
|
properties:
|
||||||
fetchStatus:
|
fetchStatus:
|
||||||
|
|
@ -1197,6 +1262,10 @@ components:
|
||||||
type: boolean
|
type: boolean
|
||||||
legacy:
|
legacy:
|
||||||
$ref: '#/components/schemas/TweetLegacy'
|
$ref: '#/components/schemas/TweetLegacy'
|
||||||
|
note_tweet:
|
||||||
|
$ref: '#/components/schemas/NoteTweet'
|
||||||
|
quick_promote_eligibility:
|
||||||
|
type: object
|
||||||
quoted_status_result:
|
quoted_status_result:
|
||||||
$ref: '#/components/schemas/ItemResult'
|
$ref: '#/components/schemas/ItemResult'
|
||||||
rest_id:
|
rest_id:
|
||||||
|
|
|
||||||
69
dist/docs/openapi-3.0.yaml
vendored
69
dist/docs/openapi-3.0.yaml
vendored
|
|
@ -682,6 +682,71 @@ components:
|
||||||
required:
|
required:
|
||||||
- entryId
|
- entryId
|
||||||
- item
|
- item
|
||||||
|
NoteTweet:
|
||||||
|
properties:
|
||||||
|
is_expandable:
|
||||||
|
type: boolean
|
||||||
|
note_tweet_results:
|
||||||
|
$ref: '#/components/schemas/NoteTweetResult'
|
||||||
|
required:
|
||||||
|
- is_expandable
|
||||||
|
- note_tweet_results
|
||||||
|
NoteTweetResult:
|
||||||
|
properties:
|
||||||
|
result:
|
||||||
|
$ref: '#/components/schemas/NoteTweetResultData'
|
||||||
|
required:
|
||||||
|
- result
|
||||||
|
NoteTweetResultData:
|
||||||
|
properties:
|
||||||
|
entity_set:
|
||||||
|
$ref: '#/components/schemas/Entities'
|
||||||
|
id:
|
||||||
|
pattern: ^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$
|
||||||
|
type: string
|
||||||
|
media:
|
||||||
|
$ref: '#/components/schemas/NoteTweetResultMedia'
|
||||||
|
richtext:
|
||||||
|
$ref: '#/components/schemas/NoteTweetResultRichText'
|
||||||
|
text:
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- entity_set
|
||||||
|
- id
|
||||||
|
- text
|
||||||
|
NoteTweetResultMedia:
|
||||||
|
properties:
|
||||||
|
inline_media:
|
||||||
|
items:
|
||||||
|
type: object
|
||||||
|
type: array
|
||||||
|
required:
|
||||||
|
- inline_media
|
||||||
|
NoteTweetResultRichText:
|
||||||
|
properties:
|
||||||
|
richtext_tags:
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/NoteTweetResultRichTextTag'
|
||||||
|
type: array
|
||||||
|
required:
|
||||||
|
- richtext_tags
|
||||||
|
NoteTweetResultRichTextTag:
|
||||||
|
properties:
|
||||||
|
from_index:
|
||||||
|
type: integer
|
||||||
|
richtext_types:
|
||||||
|
items:
|
||||||
|
enum:
|
||||||
|
- Bold
|
||||||
|
- Italic
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
to_index:
|
||||||
|
type: integer
|
||||||
|
required:
|
||||||
|
- from_index
|
||||||
|
- to_index
|
||||||
|
- richtext_types
|
||||||
OneFactorLoginEligibility:
|
OneFactorLoginEligibility:
|
||||||
properties:
|
properties:
|
||||||
fetchStatus:
|
fetchStatus:
|
||||||
|
|
@ -1197,6 +1262,10 @@ components:
|
||||||
type: boolean
|
type: boolean
|
||||||
legacy:
|
legacy:
|
||||||
$ref: '#/components/schemas/TweetLegacy'
|
$ref: '#/components/schemas/TweetLegacy'
|
||||||
|
note_tweet:
|
||||||
|
$ref: '#/components/schemas/NoteTweet'
|
||||||
|
quick_promote_eligibility:
|
||||||
|
type: object
|
||||||
quoted_status_result:
|
quoted_status_result:
|
||||||
$ref: '#/components/schemas/ItemResult'
|
$ref: '#/components/schemas/ItemResult'
|
||||||
rest_id:
|
rest_id:
|
||||||
|
|
|
||||||
|
|
@ -74,6 +74,10 @@ components:
|
||||||
$ref: "#/components/schemas/TweetView"
|
$ref: "#/components/schemas/TweetView"
|
||||||
quoted_status_result:
|
quoted_status_result:
|
||||||
$ref: "./content.yaml#/components/schemas/ItemResult"
|
$ref: "./content.yaml#/components/schemas/ItemResult"
|
||||||
|
note_tweet:
|
||||||
|
$ref: "#/components/schemas/NoteTweet"
|
||||||
|
quick_promote_eligibility:
|
||||||
|
type: object
|
||||||
|
|
||||||
TweetEditControl:
|
TweetEditControl:
|
||||||
properties:
|
properties:
|
||||||
|
|
@ -134,6 +138,74 @@ components:
|
||||||
type: string
|
type: string
|
||||||
enum: [EnabledWithCount]
|
enum: [EnabledWithCount]
|
||||||
|
|
||||||
|
NoteTweet:
|
||||||
|
required:
|
||||||
|
- "is_expandable"
|
||||||
|
- "note_tweet_results"
|
||||||
|
properties:
|
||||||
|
is_expandable:
|
||||||
|
type: boolean
|
||||||
|
note_tweet_results:
|
||||||
|
$ref: "#/components/schemas/NoteTweetResult"
|
||||||
|
|
||||||
|
NoteTweetResult:
|
||||||
|
required:
|
||||||
|
- "result"
|
||||||
|
properties:
|
||||||
|
result:
|
||||||
|
$ref: "#/components/schemas/NoteTweetResultData"
|
||||||
|
|
||||||
|
NoteTweetResultData:
|
||||||
|
required:
|
||||||
|
- "entity_set"
|
||||||
|
- "id"
|
||||||
|
- "text"
|
||||||
|
properties:
|
||||||
|
entity_set:
|
||||||
|
$ref: "#/components/schemas/Entities"
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
pattern: "^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$" # base64
|
||||||
|
media:
|
||||||
|
$ref: "#/components/schemas/NoteTweetResultMedia"
|
||||||
|
richtext:
|
||||||
|
$ref: "#/components/schemas/NoteTweetResultRichText"
|
||||||
|
text:
|
||||||
|
type: string
|
||||||
|
|
||||||
|
NoteTweetResultMedia:
|
||||||
|
required:
|
||||||
|
- "inline_media"
|
||||||
|
properties:
|
||||||
|
inline_media:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: object
|
||||||
|
NoteTweetResultRichText:
|
||||||
|
required:
|
||||||
|
- "richtext_tags"
|
||||||
|
properties:
|
||||||
|
richtext_tags:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: "#/components/schemas/NoteTweetResultRichTextTag"
|
||||||
|
|
||||||
|
NoteTweetResultRichTextTag:
|
||||||
|
required:
|
||||||
|
- "from_index"
|
||||||
|
- "to_index"
|
||||||
|
- "richtext_types"
|
||||||
|
properties:
|
||||||
|
from_index:
|
||||||
|
type: integer
|
||||||
|
to_index:
|
||||||
|
type: integer
|
||||||
|
richtext_types:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
enum: [Bold, Italic]
|
||||||
|
|
||||||
TweetCard:
|
TweetCard:
|
||||||
properties:
|
properties:
|
||||||
rest_id:
|
rest_id:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue