twitter-openapi-typescript-generated 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +17 -1
- package/README.md +2 -2
- package/dist/apis/TweetApi.d.ts +17 -3
- package/dist/apis/TweetApi.d.ts.map +1 -1
- package/dist/apis/TweetApi.js +90 -1
- package/dist/apis/TweetApi.js.map +1 -1
- package/dist/apis/UserApi.d.ts +27 -1
- package/dist/apis/UserApi.d.ts.map +1 -1
- package/dist/apis/UserApi.js +166 -0
- package/dist/apis/UserApi.js.map +1 -1
- package/dist/apis/UserListApi.d.ts +41 -1
- package/dist/apis/UserListApi.d.ts.map +1 -1
- package/dist/apis/UserListApi.js +255 -0
- package/dist/apis/UserListApi.js.map +1 -1
- package/dist/models/ContentItemType.d.ts +2 -0
- package/dist/models/ContentItemType.d.ts.map +1 -1
- package/dist/models/ContentItemType.js +3 -1
- package/dist/models/ContentItemType.js.map +1 -1
- package/dist/models/InstructionType.d.ts +3 -0
- package/dist/models/InstructionType.d.ts.map +1 -1
- package/dist/models/InstructionType.js +3 -0
- package/dist/models/InstructionType.js.map +1 -1
- package/dist/models/InstructionUnion.d.ts +9 -0
- package/dist/models/InstructionUnion.d.ts.map +1 -1
- package/dist/models/InstructionUnion.js +15 -0
- package/dist/models/InstructionUnion.js.map +1 -1
- package/dist/models/ItemContentUnion.d.ts +6 -0
- package/dist/models/ItemContentUnion.d.ts.map +1 -1
- package/dist/models/ItemContentUnion.js +10 -0
- package/dist/models/ItemContentUnion.js.map +1 -1
- package/dist/models/ListLatestTweetsTimelineResponse.d.ts +33 -0
- package/dist/models/ListLatestTweetsTimelineResponse.d.ts.map +1 -0
- package/dist/models/ListLatestTweetsTimelineResponse.js +52 -0
- package/dist/models/ListLatestTweetsTimelineResponse.js.map +1 -0
- package/dist/models/SearchByRawQuery.d.ts +33 -0
- package/dist/models/SearchByRawQuery.d.ts.map +1 -0
- package/dist/models/SearchByRawQuery.js +52 -0
- package/dist/models/SearchByRawQuery.js.map +1 -0
- package/dist/models/SearchTimeline.d.ts +33 -0
- package/dist/models/SearchTimeline.d.ts.map +1 -0
- package/dist/models/SearchTimeline.js +52 -0
- package/dist/models/SearchTimeline.js.map +1 -0
- package/dist/models/SearchTimelineData.d.ts +33 -0
- package/dist/models/SearchTimelineData.d.ts.map +1 -0
- package/dist/models/SearchTimelineData.js +52 -0
- package/dist/models/SearchTimelineData.js.map +1 -0
- package/dist/models/SearchTimelineResponse.d.ts +33 -0
- package/dist/models/SearchTimelineResponse.d.ts.map +1 -0
- package/dist/models/SearchTimelineResponse.js +52 -0
- package/dist/models/SearchTimelineResponse.js.map +1 -0
- package/dist/models/TimelineAddToModule.d.ts +52 -0
- package/dist/models/TimelineAddToModule.d.ts.map +1 -0
- package/dist/models/TimelineAddToModule.js +62 -0
- package/dist/models/TimelineAddToModule.js.map +1 -0
- package/dist/models/TimelineMessagePrompt.d.ts +33 -0
- package/dist/models/TimelineMessagePrompt.d.ts.map +1 -0
- package/dist/models/TimelineMessagePrompt.js +52 -0
- package/dist/models/TimelineMessagePrompt.js.map +1 -0
- package/dist/models/TimelinePrompt.d.ts +33 -0
- package/dist/models/TimelinePrompt.d.ts.map +1 -0
- package/dist/models/TimelinePrompt.js +52 -0
- package/dist/models/TimelinePrompt.js.map +1 -0
- package/dist/models/TimelineReplaceEntry.d.ts +46 -0
- package/dist/models/TimelineReplaceEntry.d.ts.map +1 -0
- package/dist/models/TimelineReplaceEntry.js +59 -0
- package/dist/models/TimelineReplaceEntry.js.map +1 -0
- package/dist/models/TimelineShowAlert.d.ts +97 -0
- package/dist/models/TimelineShowAlert.d.ts.map +1 -0
- package/dist/models/TimelineShowAlert.js +85 -0
- package/dist/models/TimelineShowAlert.js.map +1 -0
- package/dist/models/TimelineShowAlertRichText.d.ts +38 -0
- package/dist/models/TimelineShowAlertRichText.d.ts.map +1 -0
- package/dist/models/TimelineShowAlertRichText.js +53 -0
- package/dist/models/TimelineShowAlertRichText.js.map +1 -0
- package/dist/models/TweetFavoritersResponse.d.ts +33 -0
- package/dist/models/TweetFavoritersResponse.d.ts.map +1 -0
- package/dist/models/TweetFavoritersResponse.js +52 -0
- package/dist/models/TweetFavoritersResponse.js.map +1 -0
- package/dist/models/TweetFavoritersResponseData.d.ts +33 -0
- package/dist/models/TweetFavoritersResponseData.d.ts.map +1 -0
- package/dist/models/TweetFavoritersResponseData.js +52 -0
- package/dist/models/TweetFavoritersResponseData.js.map +1 -0
- package/dist/models/TweetRetweetersResponse.d.ts +33 -0
- package/dist/models/TweetRetweetersResponse.d.ts.map +1 -0
- package/dist/models/TweetRetweetersResponse.js +52 -0
- package/dist/models/TweetRetweetersResponse.js.map +1 -0
- package/dist/models/TweetRetweetersResponseData.d.ts +33 -0
- package/dist/models/TweetRetweetersResponseData.d.ts.map +1 -0
- package/dist/models/TweetRetweetersResponseData.js +52 -0
- package/dist/models/TweetRetweetersResponseData.js.map +1 -0
- package/dist/models/UsersResponse.d.ts +33 -0
- package/dist/models/UsersResponse.d.ts.map +1 -0
- package/dist/models/UsersResponse.js +52 -0
- package/dist/models/UsersResponse.js.map +1 -0
- package/dist/models/UsersResponseData.d.ts +33 -0
- package/dist/models/UsersResponseData.d.ts.map +1 -0
- package/dist/models/UsersResponseData.js +52 -0
- package/dist/models/UsersResponseData.js.map +1 -0
- package/dist/models/index.d.ts +17 -1
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +17 -1
- package/dist/models/index.js.map +1 -1
- package/package.json +3 -2
- package/src/apis/TweetApi.ts +102 -6
- package/src/apis/UserApi.ts +171 -0
- package/src/apis/UserListApi.ts +267 -0
- package/src/models/ContentItemType.ts +3 -1
- package/src/models/InstructionType.ts +3 -0
- package/src/models/InstructionUnion.ts +34 -1
- package/src/models/ItemContentUnion.ts +23 -1
- package/src/models/{ListTweetsTimelineResponse.ts → ListLatestTweetsTimelineResponse.ts} +9 -9
- package/src/models/SearchByRawQuery.ts +73 -0
- package/src/models/SearchTimeline.ts +73 -0
- package/src/models/SearchTimelineData.ts +73 -0
- package/src/models/SearchTimelineResponse.ts +73 -0
- package/src/models/TimelineAddToModule.ts +105 -0
- package/src/models/TimelineMessagePrompt.ts +72 -0
- package/src/models/TimelinePrompt.ts +72 -0
- package/src/models/TimelineReplaceEntry.ts +97 -0
- package/src/models/TimelineShowAlert.ts +169 -0
- package/src/models/TimelineShowAlertRichText.ts +73 -0
- package/src/models/TweetFavoritersResponse.ts +73 -0
- package/src/models/TweetFavoritersResponseData.ts +73 -0
- package/src/models/TweetRetweetersResponse.ts +73 -0
- package/src/models/TweetRetweetersResponseData.ts +73 -0
- package/src/models/UsersResponse.ts +73 -0
- package/src/models/UsersResponseData.ts +73 -0
- package/src/models/index.ts +17 -1
- package/tools/openapi-generator-config.yaml +1 -1
- package/tools/win/replace.py +1 -1
- package/twitter-openapi/dist/compatible/openapi-3.0.yaml +12 -0
- package/twitter-openapi/dist/compatible/paths/follow.yaml +91 -0
- package/twitter-openapi/dist/compatible/paths/timeline.yaml +118 -3
- package/twitter-openapi/dist/compatible/paths/tweet.yaml +192 -0
- package/twitter-openapi/dist/compatible/paths/user.yaml +144 -0
- package/twitter-openapi/dist/compatible/schemas/content.yaml +14 -0
- package/twitter-openapi/dist/compatible/schemas/instruction.yaml +77 -0
- package/twitter-openapi/dist/docs/openapi-3.0.yaml +12 -0
- package/twitter-openapi/dist/docs/paths/follow.yaml +193 -0
- package/twitter-openapi/dist/docs/paths/timeline.yaml +225 -3
- package/twitter-openapi/dist/docs/paths/tweet.yaml +382 -0
- package/twitter-openapi/dist/docs/paths/user.yaml +214 -0
- package/twitter-openapi/dist/docs/schemas/content.yaml +14 -0
- package/twitter-openapi/dist/docs/schemas/instruction.yaml +77 -0
- package/twitter-openapi/src/config/placeholder.json +155 -0
- package/twitter-openapi/src/openapi/paths/follow.yaml +14 -0
- package/twitter-openapi/src/openapi/paths/timeline.yaml +44 -2
- package/twitter-openapi/src/openapi/paths/tweet.yaml +56 -0
- package/twitter-openapi/src/openapi/paths/user.yaml +44 -0
- package/twitter-openapi/src/openapi/schemas/content.yaml +23 -1
- package/twitter-openapi/src/openapi/schemas/instruction.yaml +78 -0
- package/twitter-openapi/tools/__pycache__/build_config.cpython-310.pyc +0 -0
- package/twitter-openapi/tools/__pycache__/hooks.cpython-310.pyc +0 -0
- package/dist/models/ListTweetsTimelineResponse.d.ts +0 -33
- package/dist/models/ListTweetsTimelineResponse.d.ts.map +0 -1
- package/dist/models/ListTweetsTimelineResponse.js +0 -52
- package/dist/models/ListTweetsTimelineResponse.js.map +0 -1
|
@@ -12,11 +12,203 @@ components:
|
|
|
12
12
|
$ref: ./../schemas/timeline.yaml#/components/schemas/Timeline
|
|
13
13
|
required:
|
|
14
14
|
- threaded_conversation_with_injections_v2
|
|
15
|
+
TweetFavoritersResponse:
|
|
16
|
+
properties:
|
|
17
|
+
data:
|
|
18
|
+
$ref: '#/components/schemas/TweetFavoritersResponseData'
|
|
19
|
+
required:
|
|
20
|
+
- data
|
|
21
|
+
TweetFavoritersResponseData:
|
|
22
|
+
properties:
|
|
23
|
+
favoriters_timeline:
|
|
24
|
+
$ref: ./../schemas/timeline.yaml#/components/schemas/TimelineV2
|
|
25
|
+
required:
|
|
26
|
+
- favoriters_timeline
|
|
27
|
+
TweetRetweetersResponse:
|
|
28
|
+
properties:
|
|
29
|
+
data:
|
|
30
|
+
$ref: '#/components/schemas/TweetRetweetersResponseData'
|
|
31
|
+
required:
|
|
32
|
+
- data
|
|
33
|
+
TweetRetweetersResponseData:
|
|
34
|
+
properties:
|
|
35
|
+
retweeters_timeline:
|
|
36
|
+
$ref: ./../schemas/timeline.yaml#/components/schemas/TimelineV2
|
|
37
|
+
required:
|
|
38
|
+
- retweeters_timeline
|
|
15
39
|
info:
|
|
16
40
|
title: Twitter OpenAPI
|
|
17
41
|
version: 0.0.1
|
|
18
42
|
openapi: 3.0.3
|
|
19
43
|
paths:
|
|
44
|
+
/graphql/{pathQueryId}/Favoriters:
|
|
45
|
+
get:
|
|
46
|
+
description: get tweet favoriters
|
|
47
|
+
operationId: getTweetFavoriters
|
|
48
|
+
parameters:
|
|
49
|
+
- in: path
|
|
50
|
+
name: pathQueryId
|
|
51
|
+
required: true
|
|
52
|
+
schema:
|
|
53
|
+
default: rUyh8HWk8IXv_fvVKj3QjA
|
|
54
|
+
example: rUyh8HWk8IXv_fvVKj3QjA
|
|
55
|
+
type: string
|
|
56
|
+
- in: query
|
|
57
|
+
name: variables
|
|
58
|
+
required: true
|
|
59
|
+
schema:
|
|
60
|
+
default: '{"tweetId": "1349129669258448897", "count": 20, "includePromotedContent":
|
|
61
|
+
true}'
|
|
62
|
+
example: '{"tweetId": "1349129669258448897", "count": 20, "includePromotedContent":
|
|
63
|
+
true}'
|
|
64
|
+
type: string
|
|
65
|
+
- in: query
|
|
66
|
+
name: features
|
|
67
|
+
required: true
|
|
68
|
+
schema:
|
|
69
|
+
default: '{"rweb_lists_timeline_redesign_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
|
|
70
|
+
true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled":
|
|
71
|
+
true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
|
|
72
|
+
false, "tweetypie_unmention_optimization_enabled": true, "responsive_web_edit_tweet_api_enabled":
|
|
73
|
+
true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true,
|
|
74
|
+
"view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
|
|
75
|
+
true, "responsive_web_twitter_article_tweet_consumption_enabled": false,
|
|
76
|
+
"tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
|
|
77
|
+
true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
|
|
78
|
+
true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled":
|
|
79
|
+
true, "responsive_web_media_download_video_enabled": false, "responsive_web_enhance_cards_enabled":
|
|
80
|
+
false}'
|
|
81
|
+
example: '{"rweb_lists_timeline_redesign_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
|
|
82
|
+
true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled":
|
|
83
|
+
true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
|
|
84
|
+
false, "tweetypie_unmention_optimization_enabled": true, "responsive_web_edit_tweet_api_enabled":
|
|
85
|
+
true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true,
|
|
86
|
+
"view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
|
|
87
|
+
true, "responsive_web_twitter_article_tweet_consumption_enabled": false,
|
|
88
|
+
"tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
|
|
89
|
+
true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
|
|
90
|
+
true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled":
|
|
91
|
+
true, "responsive_web_media_download_video_enabled": false, "responsive_web_enhance_cards_enabled":
|
|
92
|
+
false}'
|
|
93
|
+
type: string
|
|
94
|
+
responses:
|
|
95
|
+
'200':
|
|
96
|
+
content:
|
|
97
|
+
application/json:
|
|
98
|
+
schema:
|
|
99
|
+
$ref: '#/components/schemas/TweetFavoritersResponse'
|
|
100
|
+
description: Successful operation
|
|
101
|
+
headers:
|
|
102
|
+
x-connection-hash:
|
|
103
|
+
schema:
|
|
104
|
+
type: string
|
|
105
|
+
x-rate-limit-limit:
|
|
106
|
+
schema:
|
|
107
|
+
type: integer
|
|
108
|
+
x-rate-limit-remaining:
|
|
109
|
+
schema:
|
|
110
|
+
type: integer
|
|
111
|
+
x-rate-limit-reset:
|
|
112
|
+
schema:
|
|
113
|
+
type: integer
|
|
114
|
+
x-response-time:
|
|
115
|
+
schema:
|
|
116
|
+
type: integer
|
|
117
|
+
x-tfe-preserve-body:
|
|
118
|
+
schema:
|
|
119
|
+
type: boolean
|
|
120
|
+
x-transaction-id:
|
|
121
|
+
schema:
|
|
122
|
+
type: string
|
|
123
|
+
x-twitter-response-tags:
|
|
124
|
+
schema:
|
|
125
|
+
type: string
|
|
126
|
+
tags:
|
|
127
|
+
- user-list
|
|
128
|
+
/graphql/{pathQueryId}/Retweeters:
|
|
129
|
+
get:
|
|
130
|
+
description: get tweet retweeters
|
|
131
|
+
operationId: getTweetRetweeters
|
|
132
|
+
parameters:
|
|
133
|
+
- in: path
|
|
134
|
+
name: pathQueryId
|
|
135
|
+
required: true
|
|
136
|
+
schema:
|
|
137
|
+
default: Gnw_Swm60cS-biSLn2OWNw
|
|
138
|
+
example: Gnw_Swm60cS-biSLn2OWNw
|
|
139
|
+
type: string
|
|
140
|
+
- in: query
|
|
141
|
+
name: variables
|
|
142
|
+
required: true
|
|
143
|
+
schema:
|
|
144
|
+
default: '{"tweetId": "1349129669258448897", "count": 20, "includePromotedContent":
|
|
145
|
+
true}'
|
|
146
|
+
example: '{"tweetId": "1349129669258448897", "count": 20, "includePromotedContent":
|
|
147
|
+
true}'
|
|
148
|
+
type: string
|
|
149
|
+
- in: query
|
|
150
|
+
name: features
|
|
151
|
+
required: true
|
|
152
|
+
schema:
|
|
153
|
+
default: '{"rweb_lists_timeline_redesign_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
|
|
154
|
+
true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled":
|
|
155
|
+
true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
|
|
156
|
+
false, "tweetypie_unmention_optimization_enabled": true, "responsive_web_edit_tweet_api_enabled":
|
|
157
|
+
true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true,
|
|
158
|
+
"view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
|
|
159
|
+
true, "responsive_web_twitter_article_tweet_consumption_enabled": false,
|
|
160
|
+
"tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
|
|
161
|
+
true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
|
|
162
|
+
true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled":
|
|
163
|
+
true, "responsive_web_media_download_video_enabled": false, "responsive_web_enhance_cards_enabled":
|
|
164
|
+
false}'
|
|
165
|
+
example: '{"rweb_lists_timeline_redesign_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
|
|
166
|
+
true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled":
|
|
167
|
+
true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
|
|
168
|
+
false, "tweetypie_unmention_optimization_enabled": true, "responsive_web_edit_tweet_api_enabled":
|
|
169
|
+
true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true,
|
|
170
|
+
"view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
|
|
171
|
+
true, "responsive_web_twitter_article_tweet_consumption_enabled": false,
|
|
172
|
+
"tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
|
|
173
|
+
true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
|
|
174
|
+
true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled":
|
|
175
|
+
true, "responsive_web_media_download_video_enabled": false, "responsive_web_enhance_cards_enabled":
|
|
176
|
+
false}'
|
|
177
|
+
type: string
|
|
178
|
+
responses:
|
|
179
|
+
'200':
|
|
180
|
+
content:
|
|
181
|
+
application/json:
|
|
182
|
+
schema:
|
|
183
|
+
$ref: '#/components/schemas/TweetRetweetersResponse'
|
|
184
|
+
description: Successful operation
|
|
185
|
+
headers:
|
|
186
|
+
x-connection-hash:
|
|
187
|
+
schema:
|
|
188
|
+
type: string
|
|
189
|
+
x-rate-limit-limit:
|
|
190
|
+
schema:
|
|
191
|
+
type: integer
|
|
192
|
+
x-rate-limit-remaining:
|
|
193
|
+
schema:
|
|
194
|
+
type: integer
|
|
195
|
+
x-rate-limit-reset:
|
|
196
|
+
schema:
|
|
197
|
+
type: integer
|
|
198
|
+
x-response-time:
|
|
199
|
+
schema:
|
|
200
|
+
type: integer
|
|
201
|
+
x-tfe-preserve-body:
|
|
202
|
+
schema:
|
|
203
|
+
type: boolean
|
|
204
|
+
x-transaction-id:
|
|
205
|
+
schema:
|
|
206
|
+
type: string
|
|
207
|
+
x-twitter-response-tags:
|
|
208
|
+
schema:
|
|
209
|
+
type: string
|
|
210
|
+
tags:
|
|
211
|
+
- user-list
|
|
20
212
|
/graphql/{pathQueryId}/TweetDetail:
|
|
21
213
|
get:
|
|
22
214
|
description: get TweetDetail
|
|
@@ -12,11 +12,91 @@ components:
|
|
|
12
12
|
$ref: ./../schemas/user.yaml#/components/schemas/UserResults
|
|
13
13
|
required:
|
|
14
14
|
- user
|
|
15
|
+
UsersResponse:
|
|
16
|
+
properties:
|
|
17
|
+
data:
|
|
18
|
+
$ref: '#/components/schemas/UsersResponseData'
|
|
19
|
+
required:
|
|
20
|
+
- data
|
|
21
|
+
UsersResponseData:
|
|
22
|
+
properties:
|
|
23
|
+
users:
|
|
24
|
+
items:
|
|
25
|
+
$ref: ./../schemas/user.yaml#/components/schemas/UserResults
|
|
26
|
+
type: array
|
|
27
|
+
required:
|
|
28
|
+
- users
|
|
15
29
|
info:
|
|
16
30
|
title: Twitter OpenAPI
|
|
17
31
|
version: 0.0.1
|
|
18
32
|
openapi: 3.0.3
|
|
19
33
|
paths:
|
|
34
|
+
/graphql/{pathQueryId}/UserByRestId:
|
|
35
|
+
get:
|
|
36
|
+
description: get user by rest id
|
|
37
|
+
operationId: getUserByRestId
|
|
38
|
+
parameters:
|
|
39
|
+
- in: path
|
|
40
|
+
name: pathQueryId
|
|
41
|
+
required: true
|
|
42
|
+
schema:
|
|
43
|
+
default: Lxg1V9AiIzzXEiP2c8dRnw
|
|
44
|
+
example: Lxg1V9AiIzzXEiP2c8dRnw
|
|
45
|
+
type: string
|
|
46
|
+
- in: query
|
|
47
|
+
name: variables
|
|
48
|
+
required: true
|
|
49
|
+
schema:
|
|
50
|
+
default: '{"userId": "44196397", "withSafetyModeUserFields": true}'
|
|
51
|
+
example: '{"userId": "44196397", "withSafetyModeUserFields": true}'
|
|
52
|
+
type: string
|
|
53
|
+
- in: query
|
|
54
|
+
name: features
|
|
55
|
+
required: true
|
|
56
|
+
schema:
|
|
57
|
+
default: '{"hidden_profile_likes_enabled": false, "responsive_web_graphql_exclude_directive_enabled":
|
|
58
|
+
true, "verified_phone_label_enabled": false, "highlights_tweets_tab_ui_enabled":
|
|
59
|
+
true, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
|
|
60
|
+
false, "responsive_web_graphql_timeline_navigation_enabled": true}'
|
|
61
|
+
example: '{"hidden_profile_likes_enabled": false, "responsive_web_graphql_exclude_directive_enabled":
|
|
62
|
+
true, "verified_phone_label_enabled": false, "highlights_tweets_tab_ui_enabled":
|
|
63
|
+
true, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
|
|
64
|
+
false, "responsive_web_graphql_timeline_navigation_enabled": true}'
|
|
65
|
+
type: string
|
|
66
|
+
responses:
|
|
67
|
+
'200':
|
|
68
|
+
content:
|
|
69
|
+
application/json:
|
|
70
|
+
schema:
|
|
71
|
+
$ref: '#/components/schemas/UserResponse'
|
|
72
|
+
description: Successful operation
|
|
73
|
+
headers:
|
|
74
|
+
x-connection-hash:
|
|
75
|
+
schema:
|
|
76
|
+
type: string
|
|
77
|
+
x-rate-limit-limit:
|
|
78
|
+
schema:
|
|
79
|
+
type: integer
|
|
80
|
+
x-rate-limit-remaining:
|
|
81
|
+
schema:
|
|
82
|
+
type: integer
|
|
83
|
+
x-rate-limit-reset:
|
|
84
|
+
schema:
|
|
85
|
+
type: integer
|
|
86
|
+
x-response-time:
|
|
87
|
+
schema:
|
|
88
|
+
type: integer
|
|
89
|
+
x-tfe-preserve-body:
|
|
90
|
+
schema:
|
|
91
|
+
type: boolean
|
|
92
|
+
x-transaction-id:
|
|
93
|
+
schema:
|
|
94
|
+
type: string
|
|
95
|
+
x-twitter-response-tags:
|
|
96
|
+
schema:
|
|
97
|
+
type: string
|
|
98
|
+
tags:
|
|
99
|
+
- user
|
|
20
100
|
/graphql/{pathQueryId}/UserByScreenName:
|
|
21
101
|
get:
|
|
22
102
|
description: get user by screen name
|
|
@@ -81,3 +161,67 @@ paths:
|
|
|
81
161
|
type: string
|
|
82
162
|
tags:
|
|
83
163
|
- user
|
|
164
|
+
/graphql/{pathQueryId}/UsersByRestIds:
|
|
165
|
+
get:
|
|
166
|
+
description: get users by rest ids
|
|
167
|
+
operationId: getUsersByRestIds
|
|
168
|
+
parameters:
|
|
169
|
+
- in: path
|
|
170
|
+
name: pathQueryId
|
|
171
|
+
required: true
|
|
172
|
+
schema:
|
|
173
|
+
default: GD4q8bBE2i6cqWw2iT74Gg
|
|
174
|
+
example: GD4q8bBE2i6cqWw2iT74Gg
|
|
175
|
+
type: string
|
|
176
|
+
- in: query
|
|
177
|
+
name: variables
|
|
178
|
+
required: true
|
|
179
|
+
schema:
|
|
180
|
+
default: '{"userIds": ["44196397"]}'
|
|
181
|
+
example: '{"userIds": ["44196397"]}'
|
|
182
|
+
type: string
|
|
183
|
+
- in: query
|
|
184
|
+
name: features
|
|
185
|
+
required: true
|
|
186
|
+
schema:
|
|
187
|
+
default: '{"responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled":
|
|
188
|
+
false, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
|
|
189
|
+
false, "responsive_web_graphql_timeline_navigation_enabled": true}'
|
|
190
|
+
example: '{"responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled":
|
|
191
|
+
false, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
|
|
192
|
+
false, "responsive_web_graphql_timeline_navigation_enabled": true}'
|
|
193
|
+
type: string
|
|
194
|
+
responses:
|
|
195
|
+
'200':
|
|
196
|
+
content:
|
|
197
|
+
application/json:
|
|
198
|
+
schema:
|
|
199
|
+
$ref: '#/components/schemas/UsersResponse'
|
|
200
|
+
description: Successful operation
|
|
201
|
+
headers:
|
|
202
|
+
x-connection-hash:
|
|
203
|
+
schema:
|
|
204
|
+
type: string
|
|
205
|
+
x-rate-limit-limit:
|
|
206
|
+
schema:
|
|
207
|
+
type: integer
|
|
208
|
+
x-rate-limit-remaining:
|
|
209
|
+
schema:
|
|
210
|
+
type: integer
|
|
211
|
+
x-rate-limit-reset:
|
|
212
|
+
schema:
|
|
213
|
+
type: integer
|
|
214
|
+
x-response-time:
|
|
215
|
+
schema:
|
|
216
|
+
type: integer
|
|
217
|
+
x-tfe-preserve-body:
|
|
218
|
+
schema:
|
|
219
|
+
type: boolean
|
|
220
|
+
x-transaction-id:
|
|
221
|
+
schema:
|
|
222
|
+
type: string
|
|
223
|
+
x-twitter-response-tags:
|
|
224
|
+
schema:
|
|
225
|
+
type: string
|
|
226
|
+
tags:
|
|
227
|
+
- user
|
|
@@ -11,6 +11,8 @@ components:
|
|
|
11
11
|
- TimelineTweet
|
|
12
12
|
- TimelineTimelineCursor
|
|
13
13
|
- TimelineUser
|
|
14
|
+
- TimelinePrompt
|
|
15
|
+
- TimelineMessagePrompt
|
|
14
16
|
type: string
|
|
15
17
|
ContentUnion:
|
|
16
18
|
discriminator:
|
|
@@ -26,6 +28,8 @@ components:
|
|
|
26
28
|
ItemContentUnion:
|
|
27
29
|
discriminator:
|
|
28
30
|
mapping":
|
|
31
|
+
TimelineMessagePrompt: '#/components/schemas/TimelineMessagePrompt'
|
|
32
|
+
TimelinePrompt: '#/components/schemas/TimelinePrompt'
|
|
29
33
|
TimelineTimelineCursor: '#/components/schemas/TimelineTimelineCursor'
|
|
30
34
|
TimelineTweet: '#/components/schemas/TimelineTweet'
|
|
31
35
|
TimelineUser: '#/components/schemas/TimelineUser'
|
|
@@ -34,6 +38,8 @@ components:
|
|
|
34
38
|
- $ref: '#/components/schemas/TimelineTweet'
|
|
35
39
|
- $ref: '#/components/schemas/TimelineTimelineCursor'
|
|
36
40
|
- $ref: '#/components/schemas/TimelineUser'
|
|
41
|
+
- $ref: '#/components/schemas/TimelinePrompt'
|
|
42
|
+
- $ref: '#/components/schemas/TimelineMessagePrompt'
|
|
37
43
|
ItemResult:
|
|
38
44
|
properties:
|
|
39
45
|
__typename:
|
|
@@ -70,6 +76,14 @@ components:
|
|
|
70
76
|
type:
|
|
71
77
|
type: string
|
|
72
78
|
type: object
|
|
79
|
+
TimelineMessagePrompt:
|
|
80
|
+
properties:
|
|
81
|
+
__typename:
|
|
82
|
+
$ref: ./typename.yaml#/components/schemas/TypeName
|
|
83
|
+
TimelinePrompt:
|
|
84
|
+
properties:
|
|
85
|
+
__typename:
|
|
86
|
+
$ref: ./typename.yaml#/components/schemas/TypeName
|
|
73
87
|
TimelineTimelineCursor:
|
|
74
88
|
properties:
|
|
75
89
|
__typename:
|
|
@@ -3,22 +3,31 @@ components:
|
|
|
3
3
|
InstructionType:
|
|
4
4
|
enum:
|
|
5
5
|
- TimelineAddEntries
|
|
6
|
+
- TimelineAddToModule
|
|
6
7
|
- TimelineClearCache
|
|
7
8
|
- TimelinePinEntry
|
|
9
|
+
- TimelineReplaceEntry
|
|
10
|
+
- TimelineShowAlert
|
|
8
11
|
- TimelineTerminateTimeline
|
|
9
12
|
type: string
|
|
10
13
|
InstructionUnion:
|
|
11
14
|
discriminator:
|
|
12
15
|
mapping":
|
|
13
16
|
TimelineAddEntries: '#/components/schemas/TimelineAddEntries'
|
|
17
|
+
TimelineAddToModule: '#/components/schemas/TimelineAddToModule'
|
|
14
18
|
TimelineClearCache: '#/components/schemas/TimelineClearCache'
|
|
15
19
|
TimelinePinEntry: '#/components/schemas/TimelinePinEntry'
|
|
20
|
+
TimelineReplaceEntry: '#/components/schemas/TimelineReplaceEntry'
|
|
21
|
+
TimelineShowAlert: '#/components/schemas/TimelineShowAlert'
|
|
16
22
|
TimelineTerminateTimeline: '#/components/schemas/TimelineTerminateTimeline'
|
|
17
23
|
propertyName: type
|
|
18
24
|
oneOf:
|
|
19
25
|
- $ref: '#/components/schemas/TimelineAddEntries'
|
|
26
|
+
- $ref: '#/components/schemas/TimelineAddToModule'
|
|
20
27
|
- $ref: '#/components/schemas/TimelineClearCache'
|
|
21
28
|
- $ref: '#/components/schemas/TimelinePinEntry'
|
|
29
|
+
- $ref: '#/components/schemas/TimelineReplaceEntry'
|
|
30
|
+
- $ref: '#/components/schemas/TimelineShowAlert'
|
|
22
31
|
- $ref: '#/components/schemas/TimelineTerminateTimeline'
|
|
23
32
|
TimelineAddEntries:
|
|
24
33
|
properties:
|
|
@@ -46,6 +55,23 @@ components:
|
|
|
46
55
|
- content
|
|
47
56
|
- entryId
|
|
48
57
|
- sortIndex
|
|
58
|
+
TimelineAddToModule:
|
|
59
|
+
properties:
|
|
60
|
+
moduleEntryId:
|
|
61
|
+
type: string
|
|
62
|
+
moduleItems:
|
|
63
|
+
items:
|
|
64
|
+
$ref: ./content.yaml#/components/schemas/ModuleItem
|
|
65
|
+
type: array
|
|
66
|
+
prepend:
|
|
67
|
+
type: boolean
|
|
68
|
+
type:
|
|
69
|
+
$ref: '#/components/schemas/InstructionType'
|
|
70
|
+
type: string
|
|
71
|
+
required:
|
|
72
|
+
- type
|
|
73
|
+
- moduleItems
|
|
74
|
+
- moduleEntryId
|
|
49
75
|
TimelineClearCache:
|
|
50
76
|
properties:
|
|
51
77
|
type:
|
|
@@ -63,6 +89,57 @@ components:
|
|
|
63
89
|
required:
|
|
64
90
|
- type
|
|
65
91
|
- entry
|
|
92
|
+
TimelineReplaceEntry:
|
|
93
|
+
properties:
|
|
94
|
+
entry:
|
|
95
|
+
$ref: '#/components/schemas/TimelineAddEntry'
|
|
96
|
+
entry_id_to_replace:
|
|
97
|
+
type: string
|
|
98
|
+
type:
|
|
99
|
+
$ref: '#/components/schemas/InstructionType'
|
|
100
|
+
type: string
|
|
101
|
+
required:
|
|
102
|
+
- type
|
|
103
|
+
- entry_id_to_replace
|
|
104
|
+
- entry
|
|
105
|
+
TimelineShowAlert:
|
|
106
|
+
properties:
|
|
107
|
+
alertType:
|
|
108
|
+
enum:
|
|
109
|
+
- NewTweets
|
|
110
|
+
type: string
|
|
111
|
+
colorConfig:
|
|
112
|
+
type: object
|
|
113
|
+
displayDurationMs:
|
|
114
|
+
type: integer
|
|
115
|
+
displayLocation:
|
|
116
|
+
enum:
|
|
117
|
+
- Top
|
|
118
|
+
type: string
|
|
119
|
+
iconDisplayInfo:
|
|
120
|
+
type: object
|
|
121
|
+
richText:
|
|
122
|
+
properties:
|
|
123
|
+
entities:
|
|
124
|
+
items:
|
|
125
|
+
type: object
|
|
126
|
+
type: array
|
|
127
|
+
text:
|
|
128
|
+
type: string
|
|
129
|
+
type: object
|
|
130
|
+
triggerDelayMs:
|
|
131
|
+
type: integer
|
|
132
|
+
type:
|
|
133
|
+
$ref: '#/components/schemas/InstructionType'
|
|
134
|
+
type: string
|
|
135
|
+
usersResults:
|
|
136
|
+
items:
|
|
137
|
+
$ref: ./user.yaml#/components/schemas/UserResults
|
|
138
|
+
type: array
|
|
139
|
+
required:
|
|
140
|
+
- type
|
|
141
|
+
- usersResults
|
|
142
|
+
- richText
|
|
66
143
|
TimelineTerminateTimeline:
|
|
67
144
|
properties:
|
|
68
145
|
direction:
|
|
@@ -80,8 +80,12 @@ paths:
|
|
|
80
80
|
$ref: ./paths/post.yaml#/paths/~1graphql~1{pathQueryId}~1DeleteTweet
|
|
81
81
|
/graphql/{pathQueryId}/FavoriteTweet:
|
|
82
82
|
$ref: ./paths/post.yaml#/paths/~1graphql~1{pathQueryId}~1FavoriteTweet
|
|
83
|
+
/graphql/{pathQueryId}/Favoriters:
|
|
84
|
+
$ref: ./paths/tweet.yaml#/paths/~1graphql~1{pathQueryId}~1Favoriters
|
|
83
85
|
/graphql/{pathQueryId}/Followers:
|
|
84
86
|
$ref: ./paths/follow.yaml#/paths/~1graphql~1{pathQueryId}~1Followers
|
|
87
|
+
/graphql/{pathQueryId}/FollowersYouKnow:
|
|
88
|
+
$ref: ./paths/follow.yaml#/paths/~1graphql~1{pathQueryId}~1FollowersYouKnow
|
|
85
89
|
/graphql/{pathQueryId}/Following:
|
|
86
90
|
$ref: ./paths/follow.yaml#/paths/~1graphql~1{pathQueryId}~1Following
|
|
87
91
|
/graphql/{pathQueryId}/HomeLatestTimeline:
|
|
@@ -94,10 +98,16 @@ paths:
|
|
|
94
98
|
$ref: ./paths/timeline.yaml#/paths/~1graphql~1{pathQueryId}~1ListLatestTweetsTimeline
|
|
95
99
|
/graphql/{pathQueryId}/ProfileSpotlightsQuery:
|
|
96
100
|
$ref: ./paths/profile.yaml#/paths/~1graphql~1{pathQueryId}~1ProfileSpotlightsQuery
|
|
101
|
+
/graphql/{pathQueryId}/Retweeters:
|
|
102
|
+
$ref: ./paths/tweet.yaml#/paths/~1graphql~1{pathQueryId}~1Retweeters
|
|
103
|
+
/graphql/{pathQueryId}/SearchTimeline:
|
|
104
|
+
$ref: ./paths/timeline.yaml#/paths/~1graphql~1{pathQueryId}~1SearchTimeline
|
|
97
105
|
/graphql/{pathQueryId}/TweetDetail:
|
|
98
106
|
$ref: ./paths/tweet.yaml#/paths/~1graphql~1{pathQueryId}~1TweetDetail
|
|
99
107
|
/graphql/{pathQueryId}/UnfavoriteTweet:
|
|
100
108
|
$ref: ./paths/post.yaml#/paths/~1graphql~1{pathQueryId}~1UnfavoriteTweet
|
|
109
|
+
/graphql/{pathQueryId}/UserByRestId:
|
|
110
|
+
$ref: ./paths/user.yaml#/paths/~1graphql~1{pathQueryId}~1UserByRestId
|
|
101
111
|
/graphql/{pathQueryId}/UserByScreenName:
|
|
102
112
|
$ref: ./paths/user.yaml#/paths/~1graphql~1{pathQueryId}~1UserByScreenName
|
|
103
113
|
/graphql/{pathQueryId}/UserMedia:
|
|
@@ -106,6 +116,8 @@ paths:
|
|
|
106
116
|
$ref: ./paths/usertweets.yaml#/paths/~1graphql~1{pathQueryId}~1UserTweets
|
|
107
117
|
/graphql/{pathQueryId}/UserTweetsAndReplies:
|
|
108
118
|
$ref: ./paths/usertweets.yaml#/paths/~1graphql~1{pathQueryId}~1UserTweetsAndReplies
|
|
119
|
+
/graphql/{pathQueryId}/UsersByRestIds:
|
|
120
|
+
$ref: ./paths/user.yaml#/paths/~1graphql~1{pathQueryId}~1UsersByRestIds
|
|
109
121
|
/other:
|
|
110
122
|
$ref: ./paths/other.yaml#/paths/~1other
|
|
111
123
|
security:
|