mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 15:40:26 +01:00
commit
58e346c34a
4 changed files with 25 additions and 15 deletions
14
dist/compatible/openapi-3.0.yaml
vendored
14
dist/compatible/openapi-3.0.yaml
vendored
|
|
@ -543,6 +543,13 @@ components:
|
|||
required:
|
||||
- actionText
|
||||
type: object
|
||||
DisplayType:
|
||||
enum:
|
||||
- Vertical
|
||||
- VerticalConversation
|
||||
- VerticalGrid
|
||||
- Carousel
|
||||
type: string
|
||||
Entities:
|
||||
properties:
|
||||
hashtags:
|
||||
|
|
@ -1691,12 +1698,7 @@ components:
|
|||
additionalProperties: true
|
||||
type: object
|
||||
displayType:
|
||||
enum:
|
||||
- Vertical
|
||||
- VerticalConversation
|
||||
- VerticalGrid
|
||||
- Carousel
|
||||
type: string
|
||||
$ref: '#/components/schemas/DisplayType'
|
||||
entryType:
|
||||
$ref: '#/components/schemas/ContentEntryType'
|
||||
feedbackInfo:
|
||||
|
|
|
|||
14
dist/docs/openapi-3.0.yaml
vendored
14
dist/docs/openapi-3.0.yaml
vendored
|
|
@ -543,6 +543,13 @@ components:
|
|||
required:
|
||||
- actionText
|
||||
type: object
|
||||
DisplayType:
|
||||
enum:
|
||||
- Vertical
|
||||
- VerticalConversation
|
||||
- VerticalGrid
|
||||
- Carousel
|
||||
type: string
|
||||
Entities:
|
||||
properties:
|
||||
hashtags:
|
||||
|
|
@ -1691,12 +1698,7 @@ components:
|
|||
additionalProperties: true
|
||||
type: object
|
||||
displayType:
|
||||
enum:
|
||||
- Vertical
|
||||
- VerticalConversation
|
||||
- VerticalGrid
|
||||
- Carousel
|
||||
type: string
|
||||
$ref: '#/components/schemas/DisplayType'
|
||||
entryType:
|
||||
$ref: '#/components/schemas/ContentEntryType'
|
||||
feedbackInfo:
|
||||
|
|
|
|||
|
|
@ -59,8 +59,7 @@ components:
|
|||
entryType:
|
||||
$ref: "#/components/schemas/ContentEntryType" # TimelineTimelineCursor
|
||||
displayType:
|
||||
type: string
|
||||
enum: [Vertical, VerticalConversation, VerticalGrid, Carousel]
|
||||
$ref: "#/components/schemas/DisplayType"
|
||||
items:
|
||||
type: array
|
||||
items:
|
||||
|
|
@ -113,6 +112,14 @@ components:
|
|||
|
||||
# ================= Module =================
|
||||
|
||||
DisplayType:
|
||||
type: string
|
||||
enum:
|
||||
- Vertical
|
||||
- VerticalConversation
|
||||
- VerticalGrid
|
||||
- Carousel
|
||||
|
||||
ModuleItem:
|
||||
required:
|
||||
- "entryId"
|
||||
|
|
|
|||
|
|
@ -35,7 +35,6 @@ components:
|
|||
tweetInterstitial:
|
||||
$ref: "#/components/schemas/TweetInterstitial"
|
||||
|
||||
# {'__typename': 'ContextualTweetInterstitial', 'displayType': 'NonCompliant', 'text': {'rtl': False, 'text': 'This Post violated the X Rules. However, X has determined that it may be in the public’s interest for the Post to remain accessible. Learn more', 'entities': [{'fromIndex': 133, 'toIndex': 143, 'ref': {'type': 'TimelineUrl', 'url': 'https://help.twitter.com/rules-and-policies/public-interest', 'urlType': 'ExternalUrl'}}]}, 'revealText': {'rtl': False, 'text': 'View', 'entities': []}}
|
||||
TweetInterstitial:
|
||||
required:
|
||||
- "__typename"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue