mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 15:40:26 +01:00
add TweetEditControl
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
parent
bc05f30d3a
commit
7f3270cf8a
2 changed files with 30 additions and 2 deletions
|
|
@ -185,7 +185,7 @@ components:
|
||||||
$ref: "#/components/schemas/SocialContext"
|
$ref: "#/components/schemas/SocialContext"
|
||||||
userDisplayType:
|
userDisplayType:
|
||||||
type: string
|
type: string
|
||||||
enum: [User, UserDetailed]
|
enum: [User, UserDetailed, SubscribableUser]
|
||||||
user_results:
|
user_results:
|
||||||
$ref: "./user.yaml#/components/schemas/UserResults"
|
$ref: "./user.yaml#/components/schemas/UserResults"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -40,8 +40,8 @@ components:
|
||||||
- "rest_id"
|
- "rest_id"
|
||||||
- "core"
|
- "core"
|
||||||
- "edit_control"
|
- "edit_control"
|
||||||
# - "edit_prespective"
|
|
||||||
- "is_translatable"
|
- "is_translatable"
|
||||||
|
- "source"
|
||||||
- "legacy"
|
- "legacy"
|
||||||
- "views"
|
- "views"
|
||||||
|
|
||||||
|
|
@ -65,6 +65,8 @@ components:
|
||||||
is_translatable:
|
is_translatable:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
|
source:
|
||||||
|
type: string # html (<a href="http://twitter.com/download/android" rel="nofollow">Twitter for Android</a>)
|
||||||
legacy:
|
legacy:
|
||||||
$ref: "#/components/schemas/TweetLegacy"
|
$ref: "#/components/schemas/TweetLegacy"
|
||||||
views:
|
views:
|
||||||
|
|
@ -87,6 +89,32 @@ components:
|
||||||
edits_remaining:
|
edits_remaining:
|
||||||
type: string
|
type: string
|
||||||
pattern: "^[0-9]+$"
|
pattern: "^[0-9]+$"
|
||||||
|
initial_tweet_id:
|
||||||
|
type: string
|
||||||
|
pattern: "^[0-9]+$"
|
||||||
|
edit_control_initial:
|
||||||
|
$ref: "#/components/schemas/TweetEditControlInitial"
|
||||||
|
|
||||||
|
TweetEditControlInitial:
|
||||||
|
required:
|
||||||
|
- "edit_tweet_ids"
|
||||||
|
- "editable_until_msecs"
|
||||||
|
- "is_edit_eligible"
|
||||||
|
- "edits_remaining"
|
||||||
|
properties:
|
||||||
|
edit_tweet_ids:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
pattern: "^[0-9]+$"
|
||||||
|
editable_until_msecs:
|
||||||
|
type: string
|
||||||
|
pattern: "^[0-9]+$"
|
||||||
|
is_edit_eligible:
|
||||||
|
type: boolean
|
||||||
|
edits_remaining:
|
||||||
|
type: string
|
||||||
|
pattern: "^[0-9]+$"
|
||||||
|
|
||||||
TweetEditPrespective:
|
TweetEditPrespective:
|
||||||
properties:
|
properties:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue