mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 07:30:37 +01:00
add ConversationControl
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
parent
d74a5fdf5b
commit
2d3d1475ab
5 changed files with 129 additions and 9 deletions
34
dist/compatible/openapi-3.0.yaml
vendored
34
dist/compatible/openapi-3.0.yaml
vendored
|
|
@ -522,6 +522,16 @@ components:
|
|||
- $ref: '#/components/schemas/TimelineTimelineItem'
|
||||
- $ref: '#/components/schemas/TimelineTimelineModule'
|
||||
- $ref: '#/components/schemas/TimelineTimelineCursor'
|
||||
ConversationControl:
|
||||
properties:
|
||||
mode:
|
||||
enum:
|
||||
- Community
|
||||
- Verified
|
||||
- ByInvitation
|
||||
type: string
|
||||
required:
|
||||
- mode
|
||||
CoverCta:
|
||||
properties:
|
||||
Text:
|
||||
|
|
@ -2310,7 +2320,7 @@ components:
|
|||
bookmarked:
|
||||
type: boolean
|
||||
conversation_control:
|
||||
additionalProperties: true
|
||||
$ref: '#/components/schemas/ConversationControl'
|
||||
conversation_id_str:
|
||||
pattern: ^[0-9]+$
|
||||
type: string
|
||||
|
|
@ -4357,6 +4367,24 @@ paths:
|
|||
type: string
|
||||
variables:
|
||||
properties:
|
||||
attachment_url:
|
||||
default: https://x.com/elonmusk/status/1349129669258448897
|
||||
example: https://x.com/elonmusk/status/1349129669258448897
|
||||
type: string
|
||||
conversation_control:
|
||||
properties:
|
||||
conversation_control:
|
||||
properties:
|
||||
mode:
|
||||
default: Community
|
||||
example: Community
|
||||
type: string
|
||||
required:
|
||||
- mode
|
||||
type: object
|
||||
required:
|
||||
- conversation_control
|
||||
type: object
|
||||
dark_request:
|
||||
default: false
|
||||
example: false
|
||||
|
|
@ -4375,7 +4403,9 @@ paths:
|
|||
type: string
|
||||
tagged_users:
|
||||
items:
|
||||
type: object
|
||||
default: '44196397'
|
||||
example: '44196397'
|
||||
type: string
|
||||
type: array
|
||||
required:
|
||||
- media_id
|
||||
|
|
|
|||
34
dist/compatible_discriminator/openapi-3.0.yaml
vendored
34
dist/compatible_discriminator/openapi-3.0.yaml
vendored
|
|
@ -522,6 +522,16 @@ components:
|
|||
- $ref: '#/components/schemas/TimelineTimelineItem'
|
||||
- $ref: '#/components/schemas/TimelineTimelineModule'
|
||||
- $ref: '#/components/schemas/TimelineTimelineCursor'
|
||||
ConversationControl:
|
||||
properties:
|
||||
mode:
|
||||
enum:
|
||||
- Community
|
||||
- Verified
|
||||
- ByInvitation
|
||||
type: string
|
||||
required:
|
||||
- mode
|
||||
CoverCta:
|
||||
properties:
|
||||
Text:
|
||||
|
|
@ -2310,7 +2320,7 @@ components:
|
|||
bookmarked:
|
||||
type: boolean
|
||||
conversation_control:
|
||||
additionalProperties: true
|
||||
$ref: '#/components/schemas/ConversationControl'
|
||||
conversation_id_str:
|
||||
pattern: ^[0-9]+$
|
||||
type: string
|
||||
|
|
@ -4351,6 +4361,24 @@ paths:
|
|||
type: string
|
||||
variables:
|
||||
properties:
|
||||
attachment_url:
|
||||
default: https://x.com/elonmusk/status/1349129669258448897
|
||||
example: https://x.com/elonmusk/status/1349129669258448897
|
||||
type: string
|
||||
conversation_control:
|
||||
properties:
|
||||
conversation_control:
|
||||
properties:
|
||||
mode:
|
||||
default: Community
|
||||
example: Community
|
||||
type: string
|
||||
required:
|
||||
- mode
|
||||
type: object
|
||||
required:
|
||||
- conversation_control
|
||||
type: object
|
||||
dark_request:
|
||||
default: false
|
||||
example: false
|
||||
|
|
@ -4369,7 +4397,9 @@ paths:
|
|||
type: string
|
||||
tagged_users:
|
||||
items:
|
||||
type: object
|
||||
default: '44196397'
|
||||
example: '44196397'
|
||||
type: string
|
||||
type: array
|
||||
required:
|
||||
- media_id
|
||||
|
|
|
|||
34
dist/docs/openapi-3.0.yaml
vendored
34
dist/docs/openapi-3.0.yaml
vendored
|
|
@ -522,6 +522,16 @@ components:
|
|||
- $ref: '#/components/schemas/TimelineTimelineItem'
|
||||
- $ref: '#/components/schemas/TimelineTimelineModule'
|
||||
- $ref: '#/components/schemas/TimelineTimelineCursor'
|
||||
ConversationControl:
|
||||
properties:
|
||||
mode:
|
||||
enum:
|
||||
- Community
|
||||
- Verified
|
||||
- ByInvitation
|
||||
type: string
|
||||
required:
|
||||
- mode
|
||||
CoverCta:
|
||||
properties:
|
||||
Text:
|
||||
|
|
@ -2310,7 +2320,7 @@ components:
|
|||
bookmarked:
|
||||
type: boolean
|
||||
conversation_control:
|
||||
additionalProperties: true
|
||||
$ref: '#/components/schemas/ConversationControl'
|
||||
conversation_id_str:
|
||||
pattern: ^[0-9]+$
|
||||
type: string
|
||||
|
|
@ -4463,6 +4473,24 @@ paths:
|
|||
type: string
|
||||
variables:
|
||||
properties:
|
||||
attachment_url:
|
||||
default: https://x.com/elonmusk/status/1349129669258448897
|
||||
example: https://x.com/elonmusk/status/1349129669258448897
|
||||
type: string
|
||||
conversation_control:
|
||||
properties:
|
||||
conversation_control:
|
||||
properties:
|
||||
mode:
|
||||
default: Community
|
||||
example: Community
|
||||
type: string
|
||||
required:
|
||||
- mode
|
||||
type: object
|
||||
required:
|
||||
- conversation_control
|
||||
type: object
|
||||
dark_request:
|
||||
default: false
|
||||
example: false
|
||||
|
|
@ -4481,7 +4509,9 @@ paths:
|
|||
type: string
|
||||
tagged_users:
|
||||
items:
|
||||
type: object
|
||||
default: '44196397'
|
||||
example: '44196397'
|
||||
type: string
|
||||
type: array
|
||||
required:
|
||||
- media_id
|
||||
|
|
|
|||
|
|
@ -698,7 +698,7 @@
|
|||
"media_entities": [
|
||||
{
|
||||
"media_id": "1111111111111111111",
|
||||
"tagged_users": []
|
||||
"tagged_users": ["44196397"]
|
||||
}
|
||||
],
|
||||
"possibly_sensitive": false
|
||||
|
|
@ -709,7 +709,13 @@
|
|||
"exclude_reply_user_ids": []
|
||||
},
|
||||
"dark_request": false,
|
||||
"disallowed_reply_options?": {}
|
||||
"disallowed_reply_options?": {},
|
||||
"conversation_control?": {
|
||||
"conversation_control": {
|
||||
"mode": "Community"
|
||||
}
|
||||
},
|
||||
"attachment_url?": "https://x.com/elonmusk/status/1349129669258448897"
|
||||
},
|
||||
"features": {
|
||||
"communities_web_enable_tweet_community_results_fetch": true,
|
||||
|
|
@ -1046,5 +1052,21 @@
|
|||
"features": {
|
||||
"responsive_web_graphql_timeline_navigation_enabled": true
|
||||
}
|
||||
},
|
||||
"CreateDraftTweet": {
|
||||
"queryId": "cH9HZWz_EW9gnswvA4ZRiQ",
|
||||
"variables": {
|
||||
"post_tweet_request": {
|
||||
"attachment_url": "https://x.com/elonmusk/status/1349129669258448897",
|
||||
"auto_populate_reply_metadata": false,
|
||||
"status": "test",
|
||||
"exclude_reply_user_ids": [],
|
||||
"media_ids": []
|
||||
}
|
||||
}
|
||||
},
|
||||
"FetchDraftTweets": {
|
||||
"queryId": "fMp3izG_gCZKVk3Aa1vVKw",
|
||||
"ascending": false
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -932,7 +932,7 @@ components:
|
|||
type: string
|
||||
pattern: "^[0-9]+$"
|
||||
conversation_control:
|
||||
additionalProperties: true # todo
|
||||
$ref: "#/components/schemas/ConversationControl"
|
||||
limited_actions:
|
||||
type: string
|
||||
enum:
|
||||
|
|
@ -1332,6 +1332,14 @@ components:
|
|||
type: string
|
||||
enum: [crop, fit]
|
||||
|
||||
ConversationControl:
|
||||
required:
|
||||
- "mode"
|
||||
properties:
|
||||
mode:
|
||||
type: string
|
||||
enum: [Community, Verified, ByInvitation]
|
||||
|
||||
Timestamp:
|
||||
required:
|
||||
- "indices"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue