mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 15:40:26 +01:00
commit
bc50143798
6 changed files with 123 additions and 21 deletions
34
dist/compatible/openapi-3.0.yaml
vendored
34
dist/compatible/openapi-3.0.yaml
vendored
|
|
@ -319,11 +319,8 @@ components:
|
||||||
$ref: '#/components/schemas/CommunityLeaveActionResult'
|
$ref: '#/components/schemas/CommunityLeaveActionResult'
|
||||||
pin_action_result:
|
pin_action_result:
|
||||||
$ref: '#/components/schemas/CommunityPinActionResult'
|
$ref: '#/components/schemas/CommunityPinActionResult'
|
||||||
required:
|
unpin_action_result:
|
||||||
- delete_action_result
|
$ref: '#/components/schemas/CommunityUnpinActionResult'
|
||||||
- join_action_result
|
|
||||||
- leave_action_result
|
|
||||||
- pin_action_result
|
|
||||||
CommunityData:
|
CommunityData:
|
||||||
properties:
|
properties:
|
||||||
__typename:
|
__typename:
|
||||||
|
|
@ -471,6 +468,23 @@ components:
|
||||||
$ref: '#/components/schemas/TypeName'
|
$ref: '#/components/schemas/TypeName'
|
||||||
required:
|
required:
|
||||||
- __typename
|
- __typename
|
||||||
|
CommunityRelationship:
|
||||||
|
properties:
|
||||||
|
actions:
|
||||||
|
$ref: '#/components/schemas/CommunityActions'
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
moderation_state:
|
||||||
|
additionalProperties: true
|
||||||
|
type: object
|
||||||
|
rest_id:
|
||||||
|
pattern: ^[0-9]+$
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- id
|
||||||
|
- rest_id
|
||||||
|
- moderation_state
|
||||||
|
- actions
|
||||||
CommunityRule:
|
CommunityRule:
|
||||||
properties:
|
properties:
|
||||||
description:
|
description:
|
||||||
|
|
@ -483,6 +497,12 @@ components:
|
||||||
required:
|
required:
|
||||||
- rest_id
|
- rest_id
|
||||||
- name
|
- name
|
||||||
|
CommunityUnpinActionResult:
|
||||||
|
properties:
|
||||||
|
__typename:
|
||||||
|
$ref: '#/components/schemas/TypeName'
|
||||||
|
required:
|
||||||
|
- __typename
|
||||||
CommunityUrls:
|
CommunityUrls:
|
||||||
properties:
|
properties:
|
||||||
permalink:
|
permalink:
|
||||||
|
|
@ -2031,6 +2051,8 @@ components:
|
||||||
$ref: '#/components/schemas/BirdwatchPivot'
|
$ref: '#/components/schemas/BirdwatchPivot'
|
||||||
card:
|
card:
|
||||||
$ref: '#/components/schemas/TweetCard'
|
$ref: '#/components/schemas/TweetCard'
|
||||||
|
community_relationship:
|
||||||
|
$ref: '#/components/schemas/CommunityRelationship'
|
||||||
community_results:
|
community_results:
|
||||||
$ref: '#/components/schemas/Community'
|
$ref: '#/components/schemas/Community'
|
||||||
core:
|
core:
|
||||||
|
|
@ -2542,6 +2564,7 @@ components:
|
||||||
- CommunityJoinAction
|
- CommunityJoinAction
|
||||||
- CommunityLeaveActionUnavailable
|
- CommunityLeaveActionUnavailable
|
||||||
- CommunityTweetPinActionUnavailable
|
- CommunityTweetPinActionUnavailable
|
||||||
|
- CommunityTweetUnpinActionUnavailable
|
||||||
- CommunityInvitesUnavailable
|
- CommunityInvitesUnavailable
|
||||||
- CommunityJoinRequestsUnavailable
|
- CommunityJoinRequestsUnavailable
|
||||||
- ApiImage
|
- ApiImage
|
||||||
|
|
@ -4438,6 +4461,7 @@ paths:
|
||||||
- media
|
- media
|
||||||
- semantic_annotation_ids
|
- semantic_annotation_ids
|
||||||
- dark_request
|
- dark_request
|
||||||
|
- disallowed_reply_options
|
||||||
type: object
|
type: object
|
||||||
required:
|
required:
|
||||||
- queryId
|
- queryId
|
||||||
|
|
|
||||||
34
dist/compatible_discriminator/openapi-3.0.yaml
vendored
34
dist/compatible_discriminator/openapi-3.0.yaml
vendored
|
|
@ -319,11 +319,8 @@ components:
|
||||||
$ref: '#/components/schemas/CommunityLeaveActionResult'
|
$ref: '#/components/schemas/CommunityLeaveActionResult'
|
||||||
pin_action_result:
|
pin_action_result:
|
||||||
$ref: '#/components/schemas/CommunityPinActionResult'
|
$ref: '#/components/schemas/CommunityPinActionResult'
|
||||||
required:
|
unpin_action_result:
|
||||||
- delete_action_result
|
$ref: '#/components/schemas/CommunityUnpinActionResult'
|
||||||
- join_action_result
|
|
||||||
- leave_action_result
|
|
||||||
- pin_action_result
|
|
||||||
CommunityData:
|
CommunityData:
|
||||||
properties:
|
properties:
|
||||||
__typename:
|
__typename:
|
||||||
|
|
@ -471,6 +468,23 @@ components:
|
||||||
$ref: '#/components/schemas/TypeName'
|
$ref: '#/components/schemas/TypeName'
|
||||||
required:
|
required:
|
||||||
- __typename
|
- __typename
|
||||||
|
CommunityRelationship:
|
||||||
|
properties:
|
||||||
|
actions:
|
||||||
|
$ref: '#/components/schemas/CommunityActions'
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
moderation_state:
|
||||||
|
additionalProperties: true
|
||||||
|
type: object
|
||||||
|
rest_id:
|
||||||
|
pattern: ^[0-9]+$
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- id
|
||||||
|
- rest_id
|
||||||
|
- moderation_state
|
||||||
|
- actions
|
||||||
CommunityRule:
|
CommunityRule:
|
||||||
properties:
|
properties:
|
||||||
description:
|
description:
|
||||||
|
|
@ -483,6 +497,12 @@ components:
|
||||||
required:
|
required:
|
||||||
- rest_id
|
- rest_id
|
||||||
- name
|
- name
|
||||||
|
CommunityUnpinActionResult:
|
||||||
|
properties:
|
||||||
|
__typename:
|
||||||
|
$ref: '#/components/schemas/TypeName'
|
||||||
|
required:
|
||||||
|
- __typename
|
||||||
CommunityUrls:
|
CommunityUrls:
|
||||||
properties:
|
properties:
|
||||||
permalink:
|
permalink:
|
||||||
|
|
@ -2031,6 +2051,8 @@ components:
|
||||||
$ref: '#/components/schemas/BirdwatchPivot'
|
$ref: '#/components/schemas/BirdwatchPivot'
|
||||||
card:
|
card:
|
||||||
$ref: '#/components/schemas/TweetCard'
|
$ref: '#/components/schemas/TweetCard'
|
||||||
|
community_relationship:
|
||||||
|
$ref: '#/components/schemas/CommunityRelationship'
|
||||||
community_results:
|
community_results:
|
||||||
$ref: '#/components/schemas/Community'
|
$ref: '#/components/schemas/Community'
|
||||||
core:
|
core:
|
||||||
|
|
@ -2542,6 +2564,7 @@ components:
|
||||||
- CommunityJoinAction
|
- CommunityJoinAction
|
||||||
- CommunityLeaveActionUnavailable
|
- CommunityLeaveActionUnavailable
|
||||||
- CommunityTweetPinActionUnavailable
|
- CommunityTweetPinActionUnavailable
|
||||||
|
- CommunityTweetUnpinActionUnavailable
|
||||||
- CommunityInvitesUnavailable
|
- CommunityInvitesUnavailable
|
||||||
- CommunityJoinRequestsUnavailable
|
- CommunityJoinRequestsUnavailable
|
||||||
- ApiImage
|
- ApiImage
|
||||||
|
|
@ -4432,6 +4455,7 @@ paths:
|
||||||
- media
|
- media
|
||||||
- semantic_annotation_ids
|
- semantic_annotation_ids
|
||||||
- dark_request
|
- dark_request
|
||||||
|
- disallowed_reply_options
|
||||||
type: object
|
type: object
|
||||||
required:
|
required:
|
||||||
- queryId
|
- queryId
|
||||||
|
|
|
||||||
34
dist/docs/openapi-3.0.yaml
vendored
34
dist/docs/openapi-3.0.yaml
vendored
|
|
@ -319,11 +319,8 @@ components:
|
||||||
$ref: '#/components/schemas/CommunityLeaveActionResult'
|
$ref: '#/components/schemas/CommunityLeaveActionResult'
|
||||||
pin_action_result:
|
pin_action_result:
|
||||||
$ref: '#/components/schemas/CommunityPinActionResult'
|
$ref: '#/components/schemas/CommunityPinActionResult'
|
||||||
required:
|
unpin_action_result:
|
||||||
- delete_action_result
|
$ref: '#/components/schemas/CommunityUnpinActionResult'
|
||||||
- join_action_result
|
|
||||||
- leave_action_result
|
|
||||||
- pin_action_result
|
|
||||||
CommunityData:
|
CommunityData:
|
||||||
properties:
|
properties:
|
||||||
__typename:
|
__typename:
|
||||||
|
|
@ -471,6 +468,23 @@ components:
|
||||||
$ref: '#/components/schemas/TypeName'
|
$ref: '#/components/schemas/TypeName'
|
||||||
required:
|
required:
|
||||||
- __typename
|
- __typename
|
||||||
|
CommunityRelationship:
|
||||||
|
properties:
|
||||||
|
actions:
|
||||||
|
$ref: '#/components/schemas/CommunityActions'
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
moderation_state:
|
||||||
|
additionalProperties: true
|
||||||
|
type: object
|
||||||
|
rest_id:
|
||||||
|
pattern: ^[0-9]+$
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- id
|
||||||
|
- rest_id
|
||||||
|
- moderation_state
|
||||||
|
- actions
|
||||||
CommunityRule:
|
CommunityRule:
|
||||||
properties:
|
properties:
|
||||||
description:
|
description:
|
||||||
|
|
@ -483,6 +497,12 @@ components:
|
||||||
required:
|
required:
|
||||||
- rest_id
|
- rest_id
|
||||||
- name
|
- name
|
||||||
|
CommunityUnpinActionResult:
|
||||||
|
properties:
|
||||||
|
__typename:
|
||||||
|
$ref: '#/components/schemas/TypeName'
|
||||||
|
required:
|
||||||
|
- __typename
|
||||||
CommunityUrls:
|
CommunityUrls:
|
||||||
properties:
|
properties:
|
||||||
permalink:
|
permalink:
|
||||||
|
|
@ -2031,6 +2051,8 @@ components:
|
||||||
$ref: '#/components/schemas/BirdwatchPivot'
|
$ref: '#/components/schemas/BirdwatchPivot'
|
||||||
card:
|
card:
|
||||||
$ref: '#/components/schemas/TweetCard'
|
$ref: '#/components/schemas/TweetCard'
|
||||||
|
community_relationship:
|
||||||
|
$ref: '#/components/schemas/CommunityRelationship'
|
||||||
community_results:
|
community_results:
|
||||||
$ref: '#/components/schemas/Community'
|
$ref: '#/components/schemas/Community'
|
||||||
core:
|
core:
|
||||||
|
|
@ -2542,6 +2564,7 @@ components:
|
||||||
- CommunityJoinAction
|
- CommunityJoinAction
|
||||||
- CommunityLeaveActionUnavailable
|
- CommunityLeaveActionUnavailable
|
||||||
- CommunityTweetPinActionUnavailable
|
- CommunityTweetPinActionUnavailable
|
||||||
|
- CommunityTweetUnpinActionUnavailable
|
||||||
- CommunityInvitesUnavailable
|
- CommunityInvitesUnavailable
|
||||||
- CommunityJoinRequestsUnavailable
|
- CommunityJoinRequestsUnavailable
|
||||||
- ApiImage
|
- ApiImage
|
||||||
|
|
@ -4544,6 +4567,7 @@ paths:
|
||||||
- media
|
- media
|
||||||
- semantic_annotation_ids
|
- semantic_annotation_ids
|
||||||
- dark_request
|
- dark_request
|
||||||
|
- disallowed_reply_options
|
||||||
type: object
|
type: object
|
||||||
required:
|
required:
|
||||||
- queryId
|
- queryId
|
||||||
|
|
|
||||||
|
|
@ -710,7 +710,8 @@
|
||||||
"variables": {
|
"variables": {
|
||||||
"tweet_text": "test",
|
"tweet_text": "test",
|
||||||
"media": {
|
"media": {
|
||||||
"media_entities": [
|
"media_entities": [],
|
||||||
|
"media_entities?": [
|
||||||
{
|
{
|
||||||
"media_id": "1111111111111111111",
|
"media_id": "1111111111111111111",
|
||||||
"tagged_users": ["44196397"]
|
"tagged_users": ["44196397"]
|
||||||
|
|
@ -724,6 +725,7 @@
|
||||||
"exclude_reply_user_ids": []
|
"exclude_reply_user_ids": []
|
||||||
},
|
},
|
||||||
"dark_request": false,
|
"dark_request": false,
|
||||||
|
"disallowed_reply_options": null,
|
||||||
"disallowed_reply_options?": {},
|
"disallowed_reply_options?": {},
|
||||||
"conversation_control?": {
|
"conversation_control?": {
|
||||||
"mode": "Community"
|
"mode": "Community"
|
||||||
|
|
|
||||||
|
|
@ -193,6 +193,8 @@ components:
|
||||||
$ref: "#/components/schemas/SuperFollowsReplyUserResult"
|
$ref: "#/components/schemas/SuperFollowsReplyUserResult"
|
||||||
has_birdwatch_notes:
|
has_birdwatch_notes:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
community_relationship:
|
||||||
|
$ref: "#/components/schemas/CommunityRelationship"
|
||||||
author_community_relationship:
|
author_community_relationship:
|
||||||
$ref: "#/components/schemas/AuthorCommunityRelationship"
|
$ref: "#/components/schemas/AuthorCommunityRelationship"
|
||||||
article:
|
article:
|
||||||
|
|
@ -397,6 +399,25 @@ components:
|
||||||
screen_name:
|
screen_name:
|
||||||
type: string
|
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:
|
AuthorCommunityRelationship:
|
||||||
required:
|
required:
|
||||||
- "community_results"
|
- "community_results"
|
||||||
|
|
@ -516,11 +537,8 @@ components:
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
CommunityActions:
|
CommunityActions:
|
||||||
required:
|
# required:
|
||||||
- "delete_action_result"
|
# - "pin_action_result"
|
||||||
- "join_action_result"
|
|
||||||
- "leave_action_result"
|
|
||||||
- "pin_action_result"
|
|
||||||
properties:
|
properties:
|
||||||
delete_action_result:
|
delete_action_result:
|
||||||
$ref: "#/components/schemas/CommunityDeleteActionResult"
|
$ref: "#/components/schemas/CommunityDeleteActionResult"
|
||||||
|
|
@ -530,6 +548,8 @@ components:
|
||||||
$ref: "#/components/schemas/CommunityLeaveActionResult"
|
$ref: "#/components/schemas/CommunityLeaveActionResult"
|
||||||
pin_action_result:
|
pin_action_result:
|
||||||
$ref: "#/components/schemas/CommunityPinActionResult"
|
$ref: "#/components/schemas/CommunityPinActionResult"
|
||||||
|
unpin_action_result:
|
||||||
|
$ref: "#/components/schemas/CommunityUnpinActionResult"
|
||||||
|
|
||||||
CommunityDeleteActionResult:
|
CommunityDeleteActionResult:
|
||||||
required:
|
required:
|
||||||
|
|
@ -570,6 +590,13 @@ components:
|
||||||
__typename:
|
__typename:
|
||||||
$ref: "./typename.yaml#/components/schemas/TypeName" # CommunityTweetPinActionUnavailable
|
$ref: "./typename.yaml#/components/schemas/TypeName" # CommunityTweetPinActionUnavailable
|
||||||
|
|
||||||
|
CommunityUnpinActionResult:
|
||||||
|
required:
|
||||||
|
- "__typename"
|
||||||
|
properties:
|
||||||
|
__typename:
|
||||||
|
$ref: "./typename.yaml#/components/schemas/TypeName" # CommunityTweetUnpinActionUnavailable
|
||||||
|
|
||||||
CommunityInvitesResult:
|
CommunityInvitesResult:
|
||||||
required:
|
required:
|
||||||
- "__typename"
|
- "__typename"
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,7 @@ components:
|
||||||
CommunityJoinAction,
|
CommunityJoinAction,
|
||||||
CommunityLeaveActionUnavailable,
|
CommunityLeaveActionUnavailable,
|
||||||
CommunityTweetPinActionUnavailable,
|
CommunityTweetPinActionUnavailable,
|
||||||
|
CommunityTweetUnpinActionUnavailable,
|
||||||
CommunityInvitesUnavailable,
|
CommunityInvitesUnavailable,
|
||||||
CommunityJoinRequestsUnavailable,
|
CommunityJoinRequestsUnavailable,
|
||||||
ApiImage,
|
ApiImage,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue