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

add note tweet

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

View file

@ -682,6 +682,71 @@ components:
required:
- entryId
- 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:
properties:
fetchStatus:
@ -1197,6 +1262,10 @@ components:
type: boolean
legacy:
$ref: '#/components/schemas/TweetLegacy'
note_tweet:
$ref: '#/components/schemas/NoteTweet'
quick_promote_eligibility:
type: object
quoted_status_result:
$ref: '#/components/schemas/ItemResult'
rest_id:

View file

@ -682,6 +682,71 @@ components:
required:
- entryId
- 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:
properties:
fetchStatus:
@ -1197,6 +1262,10 @@ components:
type: boolean
legacy:
$ref: '#/components/schemas/TweetLegacy'
note_tweet:
$ref: '#/components/schemas/NoteTweet'
quick_promote_eligibility:
type: object
quoted_status_result:
$ref: '#/components/schemas/ItemResult'
rest_id:

View file

@ -74,6 +74,10 @@ components:
$ref: "#/components/schemas/TweetView"
quoted_status_result:
$ref: "./content.yaml#/components/schemas/ItemResult"
note_tweet:
$ref: "#/components/schemas/NoteTweet"
quick_promote_eligibility:
type: object
TweetEditControl:
properties:
@ -134,6 +138,74 @@ components:
type: string
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:
properties:
rest_id: