mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-03-07 12:39:54 +01:00
parent
c7d323f781
commit
99c7c0f4b9
6 changed files with 1455 additions and 110 deletions
|
|
@ -60,6 +60,48 @@ paths:
|
|||
tags:
|
||||
- "tweet"
|
||||
|
||||
/graphql/{pathQueryId}/CommunityTweetsTimeline:
|
||||
get:
|
||||
operationId: getCommunityTweetsTimeline
|
||||
description: get tweet list of community. rankingMode:[Recency, Relevance]
|
||||
responses:
|
||||
"200":
|
||||
description: Successful operation
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/CommunityTweetsTimelineResponse"
|
||||
tags:
|
||||
- "tweet"
|
||||
|
||||
/graphql/{pathQueryId}/CommunityMediaTimeline:
|
||||
get:
|
||||
operationId: getCommunityMediaTimeline
|
||||
description: get media list of community
|
||||
responses:
|
||||
"200":
|
||||
description: Successful operation
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/CommunityMediaTimelineResponse"
|
||||
tags:
|
||||
- "tweet"
|
||||
|
||||
/graphql/{pathQueryId}/CommunityAboutTimeline:
|
||||
get:
|
||||
operationId: getCommunityAboutTimeline
|
||||
description: get about of community
|
||||
responses:
|
||||
"200":
|
||||
description: Successful operation
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/CommunityAboutTimelineResponse"
|
||||
tags:
|
||||
- "tweet"
|
||||
|
||||
components:
|
||||
schemas:
|
||||
TimelineResponse:
|
||||
|
|
@ -74,6 +116,8 @@ components:
|
|||
$ref: "./../response/error.yaml#/components/schemas/ErrorResponse"
|
||||
|
||||
HomeTimelineResponseData:
|
||||
required:
|
||||
- "home"
|
||||
properties:
|
||||
home:
|
||||
$ref: "#/components/schemas/HomeTimelineHome"
|
||||
|
|
@ -97,6 +141,8 @@ components:
|
|||
$ref: "./../response/error.yaml#/components/schemas/ErrorResponse"
|
||||
|
||||
ListTweetsTimelineData:
|
||||
required:
|
||||
- "list"
|
||||
properties:
|
||||
list:
|
||||
$ref: "#/components/schemas/ListTweetsTimelineList"
|
||||
|
|
@ -106,12 +152,7 @@ components:
|
|||
- "tweets_timeline"
|
||||
properties:
|
||||
tweets_timeline:
|
||||
$ref: "#/components/schemas/ListTweetsTimeline"
|
||||
|
||||
ListTweetsTimeline:
|
||||
properties:
|
||||
timeline:
|
||||
$ref: "./../schemas/timeline.yaml#/components/schemas/Timeline"
|
||||
$ref: "#/components/schemas/TimelineResult"
|
||||
|
||||
SearchTimelineResponse:
|
||||
required:
|
||||
|
|
@ -125,6 +166,8 @@ components:
|
|||
$ref: "./../response/error.yaml#/components/schemas/ErrorResponse"
|
||||
|
||||
SearchTimelineData:
|
||||
required:
|
||||
- "search_by_raw_query"
|
||||
properties:
|
||||
search_by_raw_query:
|
||||
$ref: "#/components/schemas/SearchByRawQuery"
|
||||
|
|
@ -142,3 +185,109 @@ components:
|
|||
properties:
|
||||
timeline:
|
||||
$ref: "./../schemas/timeline.yaml#/components/schemas/Timeline"
|
||||
|
||||
CommunityTweetsTimelineResponse:
|
||||
required:
|
||||
- "data"
|
||||
properties:
|
||||
data:
|
||||
$ref: "#/components/schemas/RankedCommunityTweetData"
|
||||
errors:
|
||||
type: array
|
||||
items:
|
||||
$ref: "./../response/error.yaml#/components/schemas/ErrorResponse"
|
||||
|
||||
RankedCommunityTweetData:
|
||||
required:
|
||||
- "communityResults"
|
||||
properties:
|
||||
communityResults:
|
||||
$ref: "#/components/schemas/RankedCommunityResults"
|
||||
|
||||
RankedCommunityResults:
|
||||
required:
|
||||
- "result"
|
||||
properties:
|
||||
result:
|
||||
$ref: "#/components/schemas/RankedCommunityResult"
|
||||
|
||||
RankedCommunityResult:
|
||||
required:
|
||||
- "__typename"
|
||||
- "ranked_community_timeline"
|
||||
properties:
|
||||
__typename:
|
||||
$ref: "./../schemas/typename.yaml#/components/schemas/TypeName" # Community
|
||||
ranked_community_timeline:
|
||||
$ref: "./../schemas/timeline.yaml#/components/schemas/TimelineResult"
|
||||
|
||||
CommunityMediaTimelineResponse:
|
||||
required:
|
||||
- "data"
|
||||
properties:
|
||||
data:
|
||||
$ref: "#/components/schemas/MediaCommunityTweetData"
|
||||
errors:
|
||||
type: array
|
||||
items:
|
||||
$ref: "./../response/error.yaml#/components/schemas/ErrorResponse"
|
||||
|
||||
MediaCommunityTweetData:
|
||||
required:
|
||||
- "__typename"
|
||||
- "communityResults"
|
||||
properties:
|
||||
communityResults:
|
||||
$ref: "#/components/schemas/MediaCommunityResults"
|
||||
|
||||
MediaCommunityResults:
|
||||
required:
|
||||
- "result"
|
||||
properties:
|
||||
result:
|
||||
$ref: "#/components/schemas/MediaCommunityResult"
|
||||
|
||||
MediaCommunityResult:
|
||||
required:
|
||||
- "__typename"
|
||||
- "community_media_timeline"
|
||||
properties:
|
||||
__typename:
|
||||
$ref: "./../schemas/typename.yaml#/components/schemas/TypeName" # Community
|
||||
community_media_timeline:
|
||||
$ref: "./../schemas/timeline.yaml#/components/schemas/TimelineResult"
|
||||
|
||||
CommunityAboutTimelineResponse:
|
||||
required:
|
||||
- "data"
|
||||
properties:
|
||||
data:
|
||||
$ref: "#/components/schemas/AboutCommunityTweetData"
|
||||
errors:
|
||||
type: array
|
||||
items:
|
||||
$ref: "./../response/error.yaml#/components/schemas/ErrorResponse"
|
||||
|
||||
AboutCommunityTweetData:
|
||||
required:
|
||||
- "communityResults"
|
||||
properties:
|
||||
communityResults:
|
||||
$ref: "#/components/schemas/AboutCommunityResults"
|
||||
|
||||
AboutCommunityResults:
|
||||
required:
|
||||
- "result"
|
||||
properties:
|
||||
result:
|
||||
$ref: "#/components/schemas/AboutCommunityResult"
|
||||
|
||||
AboutCommunityResult:
|
||||
required:
|
||||
- "__typename"
|
||||
- "about_timeline"
|
||||
properties:
|
||||
__typename:
|
||||
$ref: "./../schemas/typename.yaml#/components/schemas/TypeName" # Community
|
||||
about_timeline:
|
||||
$ref: "./../schemas/timeline.yaml#/components/schemas/TimelineResult"
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ components:
|
|||
- "entryType"
|
||||
- "displayType"
|
||||
# - "items"
|
||||
- "clientEventInfo"
|
||||
# - "clientEventInfo"
|
||||
properties:
|
||||
__typename:
|
||||
type: string
|
||||
|
|
@ -126,7 +126,7 @@ components:
|
|||
properties:
|
||||
entryId:
|
||||
type: string
|
||||
pattern: "^(([a-z]+|[0-9]+|[0-9a-f]+)(-|$))+"
|
||||
pattern: "^(([a-zA-Z]+|[0-9]+|[0-9a-f]+)(-|$))+"
|
||||
item:
|
||||
$ref: "#/components/schemas/ModuleEntry"
|
||||
dispensable:
|
||||
|
|
@ -233,7 +233,7 @@ components:
|
|||
$ref: "#/components/schemas/SocialContextUnion"
|
||||
userDisplayType:
|
||||
type: string
|
||||
enum: [User, UserDetailed, SubscribableUser]
|
||||
enum: [User, UserDetailed, SubscribableUser, UserConcise]
|
||||
user_results:
|
||||
$ref: "./user.yaml#/components/schemas/UserResults"
|
||||
|
||||
|
|
@ -395,7 +395,7 @@ components:
|
|||
element:
|
||||
type: string
|
||||
# august-2023-privacy-prompt-candidate
|
||||
# pattern: "(([a-z]+|[0-9]+|[0-9a-f]+)(-|$))+"
|
||||
# pattern: "^(([a-zA-Z]+|[0-9]+|[0-9a-f]+)(-|$))+"
|
||||
# pattern: "^(january|february|march|april|may|june|july|august|september|october|november|december)-[0-9]{4}-([a-z]-)+[a-z]+$"
|
||||
details:
|
||||
type: object
|
||||
|
|
|
|||
|
|
@ -162,7 +162,7 @@ components:
|
|||
$ref: "./content.yaml#/components/schemas/ContentUnion"
|
||||
entryId:
|
||||
type: string
|
||||
pattern: "^(([a-z]+|[0-9]+|[0-9a-f]+)(-|$))+"
|
||||
pattern: "^(([a-zA-Z]+|[0-9]+|[0-9a-f]+)(-|$))+"
|
||||
sortIndex:
|
||||
type: string
|
||||
pattern: "[0-9]+$"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue