mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 23:50:26 +01:00
update existing components
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
parent
a5d954f4f2
commit
996bf5798e
6 changed files with 123 additions and 21 deletions
|
|
@ -710,7 +710,8 @@
|
|||
"variables": {
|
||||
"tweet_text": "test",
|
||||
"media": {
|
||||
"media_entities": [
|
||||
"media_entities": [],
|
||||
"media_entities?": [
|
||||
{
|
||||
"media_id": "1111111111111111111",
|
||||
"tagged_users": ["44196397"]
|
||||
|
|
@ -724,6 +725,7 @@
|
|||
"exclude_reply_user_ids": []
|
||||
},
|
||||
"dark_request": false,
|
||||
"disallowed_reply_options": null,
|
||||
"disallowed_reply_options?": {},
|
||||
"conversation_control?": {
|
||||
"mode": "Community"
|
||||
|
|
|
|||
|
|
@ -193,6 +193,8 @@ components:
|
|||
$ref: "#/components/schemas/SuperFollowsReplyUserResult"
|
||||
has_birdwatch_notes:
|
||||
type: boolean
|
||||
community_relationship:
|
||||
$ref: "#/components/schemas/CommunityRelationship"
|
||||
author_community_relationship:
|
||||
$ref: "#/components/schemas/AuthorCommunityRelationship"
|
||||
article:
|
||||
|
|
@ -397,6 +399,25 @@ components:
|
|||
screen_name:
|
||||
type: string
|
||||
|
||||
# {'id': 'VHdlZXRDb21tdW5pdHlSZWxhdGlvbnNoaXA6MTg1MjA1NTM2NDA3MTgyNTY0NQ==', 'rest_id': '1852055364071825645', 'moderation_state': {}, 'actions': {'pin_action_result': {'__typename': 'CommunityTweetPinActionUnavailable'}
|
||||
CommunityRelationship:
|
||||
required:
|
||||
- "id"
|
||||
- "rest_id"
|
||||
- "moderation_state"
|
||||
- "actions"
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
rest_id:
|
||||
type: string
|
||||
pattern: "^[0-9]+$"
|
||||
moderation_state:
|
||||
type: object
|
||||
additionalProperties: true # todo
|
||||
actions:
|
||||
$ref: "#/components/schemas/CommunityActions"
|
||||
|
||||
AuthorCommunityRelationship:
|
||||
required:
|
||||
- "community_results"
|
||||
|
|
@ -516,11 +537,8 @@ components:
|
|||
type: string
|
||||
|
||||
CommunityActions:
|
||||
required:
|
||||
- "delete_action_result"
|
||||
- "join_action_result"
|
||||
- "leave_action_result"
|
||||
- "pin_action_result"
|
||||
# required:
|
||||
# - "pin_action_result"
|
||||
properties:
|
||||
delete_action_result:
|
||||
$ref: "#/components/schemas/CommunityDeleteActionResult"
|
||||
|
|
@ -530,6 +548,8 @@ components:
|
|||
$ref: "#/components/schemas/CommunityLeaveActionResult"
|
||||
pin_action_result:
|
||||
$ref: "#/components/schemas/CommunityPinActionResult"
|
||||
unpin_action_result:
|
||||
$ref: "#/components/schemas/CommunityUnpinActionResult"
|
||||
|
||||
CommunityDeleteActionResult:
|
||||
required:
|
||||
|
|
@ -570,6 +590,13 @@ components:
|
|||
__typename:
|
||||
$ref: "./typename.yaml#/components/schemas/TypeName" # CommunityTweetPinActionUnavailable
|
||||
|
||||
CommunityUnpinActionResult:
|
||||
required:
|
||||
- "__typename"
|
||||
properties:
|
||||
__typename:
|
||||
$ref: "./typename.yaml#/components/schemas/TypeName" # CommunityTweetUnpinActionUnavailable
|
||||
|
||||
CommunityInvitesResult:
|
||||
required:
|
||||
- "__typename"
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ components:
|
|||
CommunityJoinAction,
|
||||
CommunityLeaveActionUnavailable,
|
||||
CommunityTweetPinActionUnavailable,
|
||||
CommunityTweetUnpinActionUnavailable,
|
||||
CommunityInvitesUnavailable,
|
||||
CommunityJoinRequestsUnavailable,
|
||||
ApiImage,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue