twitter-openapi-typescript-generated 0.0.1 → 0.0.2

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.
Files changed (127) hide show
  1. package/.openapi-generator-ignore +1 -2
  2. package/README.md +2 -2
  3. package/package.json +25 -26
  4. package/tools/openapi-generator-config.yaml +10 -0
  5. package/tools/win/clean.ps1 +21 -0
  6. package/tools/win/gen.ps1 +8 -0
  7. package/tools/win/init.ps1 +1 -0
  8. package/tools/win/replace.py +40 -0
  9. package/twitter-openapi/.vscode/extensions.json +3 -0
  10. package/twitter-openapi/.vscode/settings.json +9 -0
  11. package/twitter-openapi/LICENSE.txt +661 -0
  12. package/twitter-openapi/README.md +38 -0
  13. package/twitter-openapi/dist/dart/openapi-3.0.yaml +111 -0
  14. package/twitter-openapi/dist/dart/paths/bookmarks.yaml +134 -0
  15. package/twitter-openapi/dist/dart/paths/follow.yaml +262 -0
  16. package/twitter-openapi/dist/dart/paths/other.yaml +96 -0
  17. package/twitter-openapi/dist/dart/paths/post.yaml +834 -0
  18. package/twitter-openapi/dist/dart/paths/profile.yaml +152 -0
  19. package/twitter-openapi/dist/dart/paths/timeline.yaml +380 -0
  20. package/twitter-openapi/dist/dart/paths/tweet.yaml +134 -0
  21. package/twitter-openapi/dist/dart/paths/user.yaml +112 -0
  22. package/twitter-openapi/dist/dart/paths/usertweets.yaml +484 -0
  23. package/twitter-openapi/dist/dart/paths/v1.1-get.yaml +300 -0
  24. package/twitter-openapi/dist/dart/paths/v1.1-post.yaml +295 -0
  25. package/twitter-openapi/dist/dart/paths/v2.0-get.yaml +331 -0
  26. package/twitter-openapi/dist/dart/response/error.yaml +90 -0
  27. package/twitter-openapi/dist/dart/schemas/content.yaml +181 -0
  28. package/twitter-openapi/dist/dart/schemas/general.yaml +13 -0
  29. package/twitter-openapi/dist/dart/schemas/instruction.yaml +83 -0
  30. package/twitter-openapi/dist/dart/schemas/timeline.yaml +25 -0
  31. package/twitter-openapi/dist/dart/schemas/tweet.yaml +251 -0
  32. package/twitter-openapi/dist/dart/schemas/typename.yaml +19 -0
  33. package/twitter-openapi/dist/dart/schemas/user.yaml +206 -0
  34. package/twitter-openapi/dist/docs/openapi-3.0.yaml +135 -0
  35. package/twitter-openapi/dist/docs/paths/bookmarks.yaml +248 -0
  36. package/twitter-openapi/dist/docs/paths/follow.yaml +486 -0
  37. package/twitter-openapi/dist/docs/paths/other.yaml +96 -0
  38. package/twitter-openapi/dist/docs/paths/post.yaml +638 -0
  39. package/twitter-openapi/dist/docs/paths/profile.yaml +159 -0
  40. package/twitter-openapi/dist/docs/paths/timeline.yaml +730 -0
  41. package/twitter-openapi/dist/docs/paths/tweet.yaml +272 -0
  42. package/twitter-openapi/dist/docs/paths/user.yaml +152 -0
  43. package/twitter-openapi/dist/docs/paths/usertweets.yaml +1010 -0
  44. package/twitter-openapi/dist/docs/paths/v1.1-get.yaml +242 -0
  45. package/twitter-openapi/dist/docs/paths/v1.1-post.yaml +237 -0
  46. package/twitter-openapi/dist/docs/paths/v2.0-get.yaml +302 -0
  47. package/twitter-openapi/dist/docs/response/error.yaml +90 -0
  48. package/twitter-openapi/dist/docs/schemas/content.yaml +181 -0
  49. package/twitter-openapi/dist/docs/schemas/general.yaml +13 -0
  50. package/twitter-openapi/dist/docs/schemas/instruction.yaml +83 -0
  51. package/twitter-openapi/dist/docs/schemas/timeline.yaml +25 -0
  52. package/twitter-openapi/dist/docs/schemas/tweet.yaml +251 -0
  53. package/twitter-openapi/dist/docs/schemas/typename.yaml +19 -0
  54. package/twitter-openapi/dist/docs/schemas/user.yaml +206 -0
  55. package/twitter-openapi/dist/test/openapi-3.0.yaml +135 -0
  56. package/twitter-openapi/dist/test/paths/bookmarks.yaml +105 -0
  57. package/twitter-openapi/dist/test/paths/follow.yaml +204 -0
  58. package/twitter-openapi/dist/test/paths/other.yaml +96 -0
  59. package/twitter-openapi/dist/test/paths/post.yaml +485 -0
  60. package/twitter-openapi/dist/test/paths/profile.yaml +123 -0
  61. package/twitter-openapi/dist/test/paths/timeline.yaml +293 -0
  62. package/twitter-openapi/dist/test/paths/tweet.yaml +105 -0
  63. package/twitter-openapi/dist/test/paths/user.yaml +83 -0
  64. package/twitter-openapi/dist/test/paths/usertweets.yaml +368 -0
  65. package/twitter-openapi/dist/test/paths/v1.1-get.yaml +242 -0
  66. package/twitter-openapi/dist/test/paths/v1.1-post.yaml +277 -0
  67. package/twitter-openapi/dist/test/paths/v2.0-get.yaml +302 -0
  68. package/twitter-openapi/dist/test/response/error.yaml +90 -0
  69. package/twitter-openapi/dist/test/schemas/content.yaml +181 -0
  70. package/twitter-openapi/dist/test/schemas/general.yaml +13 -0
  71. package/twitter-openapi/dist/test/schemas/instruction.yaml +83 -0
  72. package/twitter-openapi/dist/test/schemas/timeline.yaml +25 -0
  73. package/twitter-openapi/dist/test/schemas/tweet.yaml +251 -0
  74. package/twitter-openapi/dist/test/schemas/typename.yaml +19 -0
  75. package/twitter-openapi/dist/test/schemas/user.yaml +206 -0
  76. package/twitter-openapi/dist/typescript/openapi-3.0.yaml +135 -0
  77. package/twitter-openapi/dist/typescript/paths/bookmarks.yaml +105 -0
  78. package/twitter-openapi/dist/typescript/paths/follow.yaml +204 -0
  79. package/twitter-openapi/dist/typescript/paths/other.yaml +96 -0
  80. package/twitter-openapi/dist/typescript/paths/post.yaml +660 -0
  81. package/twitter-openapi/dist/typescript/paths/profile.yaml +123 -0
  82. package/twitter-openapi/dist/typescript/paths/timeline.yaml +293 -0
  83. package/twitter-openapi/dist/typescript/paths/tweet.yaml +105 -0
  84. package/twitter-openapi/dist/typescript/paths/user.yaml +83 -0
  85. package/twitter-openapi/dist/typescript/paths/usertweets.yaml +368 -0
  86. package/twitter-openapi/dist/typescript/paths/v1.1-get.yaml +242 -0
  87. package/twitter-openapi/dist/typescript/paths/v1.1-post.yaml +237 -0
  88. package/twitter-openapi/dist/typescript/paths/v2.0-get.yaml +302 -0
  89. package/twitter-openapi/dist/typescript/response/error.yaml +90 -0
  90. package/twitter-openapi/dist/typescript/schemas/content.yaml +181 -0
  91. package/twitter-openapi/dist/typescript/schemas/general.yaml +13 -0
  92. package/twitter-openapi/dist/typescript/schemas/instruction.yaml +83 -0
  93. package/twitter-openapi/dist/typescript/schemas/timeline.yaml +25 -0
  94. package/twitter-openapi/dist/typescript/schemas/tweet.yaml +251 -0
  95. package/twitter-openapi/dist/typescript/schemas/typename.yaml +19 -0
  96. package/twitter-openapi/dist/typescript/schemas/user.yaml +206 -0
  97. package/twitter-openapi/requirements.txt +0 -0
  98. package/twitter-openapi/src/config/component/response_header.yaml +32 -0
  99. package/twitter-openapi/src/config/component/response_header_legacy.yaml +35 -0
  100. package/twitter-openapi/src/config/component/security_schemes.yaml +67 -0
  101. package/twitter-openapi/src/config/placeholder.json +535 -0
  102. package/twitter-openapi/src/openapi/openapi-3.0.yaml +68 -0
  103. package/twitter-openapi/src/openapi/paths/bookmarks.yaml +42 -0
  104. package/twitter-openapi/src/openapi/paths/follow.yaml +73 -0
  105. package/twitter-openapi/src/openapi/paths/other.yaml +101 -0
  106. package/twitter-openapi/src/openapi/paths/post.yaml +246 -0
  107. package/twitter-openapi/src/openapi/paths/profile.yaml +81 -0
  108. package/twitter-openapi/src/openapi/paths/timeline.yaml +98 -0
  109. package/twitter-openapi/src/openapi/paths/tweet.yaml +35 -0
  110. package/twitter-openapi/src/openapi/paths/user.yaml +35 -0
  111. package/twitter-openapi/src/openapi/paths/usertweets.yaml +94 -0
  112. package/twitter-openapi/src/openapi/paths/v1.1-get.yaml +25 -0
  113. package/twitter-openapi/src/openapi/paths/v1.1-post.yaml +25 -0
  114. package/twitter-openapi/src/openapi/paths/v2.0-get.yaml +15 -0
  115. package/twitter-openapi/src/openapi/response/error.yaml +97 -0
  116. package/twitter-openapi/src/openapi/schemas/content.yaml +190 -0
  117. package/twitter-openapi/src/openapi/schemas/general.yaml +12 -0
  118. package/twitter-openapi/src/openapi/schemas/instruction.yaml +90 -0
  119. package/twitter-openapi/src/openapi/schemas/timeline.yaml +27 -0
  120. package/twitter-openapi/src/openapi/schemas/tweet.yaml +264 -0
  121. package/twitter-openapi/src/openapi/schemas/typename.yaml +21 -0
  122. package/twitter-openapi/src/openapi/schemas/user.yaml +210 -0
  123. package/twitter-openapi/tools/__pycache__/build_config.cpython-310.pyc +0 -0
  124. package/twitter-openapi/tools/__pycache__/hooks.cpython-310.pyc +0 -0
  125. package/twitter-openapi/tools/build.py +79 -0
  126. package/twitter-openapi/tools/build_config.py +200 -0
  127. package/twitter-openapi/tools/hooks.py +265 -0
@@ -0,0 +1,535 @@
1
+ {
2
+ "HomeTimeline": {
3
+ "queryId": "HCosKfLNW1AcOo3la3mMgg",
4
+ "variables": {
5
+ "count": 20,
6
+ "includePromotedContent": true,
7
+ "latestControlAvailable": true,
8
+ "requestContext": "launch",
9
+ "withCommunity": true
10
+ },
11
+ "features": {
12
+ "blue_business_profile_image_shape_enabled": true,
13
+ "responsive_web_graphql_exclude_directive_enabled": true,
14
+ "verified_phone_label_enabled": false,
15
+ "responsive_web_graphql_timeline_navigation_enabled": true,
16
+ "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false,
17
+ "tweetypie_unmention_optimization_enabled": true,
18
+ "vibe_api_enabled": true,
19
+ "responsive_web_edit_tweet_api_enabled": true,
20
+ "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true,
21
+ "view_counts_everywhere_api_enabled": true,
22
+ "longform_notetweets_consumption_enabled": true,
23
+ "tweet_awards_web_tipping_enabled": false,
24
+ "freedom_of_speech_not_reach_fetch_enabled": false,
25
+ "standardized_nudges_misinfo": true,
26
+ "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": false,
27
+ "interactive_text_enabled": true,
28
+ "responsive_web_text_conversations_enabled": false,
29
+ "longform_notetweets_rich_text_read_enabled": true,
30
+ "responsive_web_enhance_cards_enabled": false
31
+ }
32
+ },
33
+ "HomeLatestTimeline": {
34
+ "queryId": "zhX91JE87mWvfprhYE97xA",
35
+ "variables": {
36
+ "count": 20,
37
+ "includePromotedContent": true,
38
+ "latestControlAvailable": true,
39
+ "requestContext": "launch"
40
+ },
41
+ "features": {
42
+ "blue_business_profile_image_shape_enabled": true,
43
+ "responsive_web_graphql_exclude_directive_enabled": true,
44
+ "verified_phone_label_enabled": false,
45
+ "responsive_web_graphql_timeline_navigation_enabled": true,
46
+ "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false,
47
+ "tweetypie_unmention_optimization_enabled": true,
48
+ "vibe_api_enabled": true,
49
+ "responsive_web_edit_tweet_api_enabled": true,
50
+ "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true,
51
+ "view_counts_everywhere_api_enabled": true,
52
+ "longform_notetweets_consumption_enabled": true,
53
+ "tweet_awards_web_tipping_enabled": false,
54
+ "freedom_of_speech_not_reach_fetch_enabled": false,
55
+ "standardized_nudges_misinfo": true,
56
+ "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": false,
57
+ "interactive_text_enabled": true,
58
+ "responsive_web_text_conversations_enabled": false,
59
+ "longform_notetweets_rich_text_read_enabled": true,
60
+ "responsive_web_enhance_cards_enabled": false
61
+ }
62
+ },
63
+ "ListLatestTweetsTimeline": {
64
+ "queryId": "2TemLyqrMpTeAmysdbnVqw",
65
+ "variables": {
66
+ "listId": "53044119",
67
+ "count": 20
68
+ },
69
+ "features": {
70
+ "blue_business_profile_image_shape_enabled": true,
71
+ "responsive_web_graphql_exclude_directive_enabled": true,
72
+ "verified_phone_label_enabled": false,
73
+ "responsive_web_graphql_timeline_navigation_enabled": true,
74
+ "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false,
75
+ "tweetypie_unmention_optimization_enabled": true,
76
+ "vibe_api_enabled": true,
77
+ "responsive_web_edit_tweet_api_enabled": true,
78
+ "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true,
79
+ "view_counts_everywhere_api_enabled": true,
80
+ "longform_notetweets_consumption_enabled": true,
81
+ "tweet_awards_web_tipping_enabled": false,
82
+ "freedom_of_speech_not_reach_fetch_enabled": false,
83
+ "standardized_nudges_misinfo": true,
84
+ "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": false,
85
+ "interactive_text_enabled": true,
86
+ "responsive_web_text_conversations_enabled": false,
87
+ "longform_notetweets_rich_text_read_enabled": true,
88
+ "responsive_web_enhance_cards_enabled": false
89
+ }
90
+ },
91
+ "UserByScreenName": {
92
+ "queryId": "sLVLhk0bGj3MVFEKTdax1w",
93
+ "variables": {
94
+ "screen_name": "elonmusk",
95
+ "withSafetyModeUserFields": true
96
+ },
97
+ "features": {
98
+ "blue_business_profile_image_shape_enabled": true,
99
+ "responsive_web_graphql_exclude_directive_enabled": true,
100
+ "verified_phone_label_enabled": false,
101
+ "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false,
102
+ "responsive_web_graphql_timeline_navigation_enabled": true
103
+ }
104
+ },
105
+ "ProfileSpotlightsQuery": {
106
+ "queryId": "9zwVLJ48lmVUk8u_Gh9DmA",
107
+ "variables": {
108
+ "screen_name": "elonmusk"
109
+ },
110
+ "features": {}
111
+ },
112
+ "UserTweets": {
113
+ "queryId": "HuTx74BxAnezK1gWvYY7zg",
114
+ "variables": {
115
+ "userId": "44196397",
116
+ "count": 40,
117
+ "includePromotedContent": true,
118
+ "withQuickPromoteEligibilityTweetFields": true,
119
+ "withVoice": true,
120
+ "withV2Timeline": true
121
+ },
122
+ "features": {
123
+ "blue_business_profile_image_shape_enabled": true,
124
+ "responsive_web_graphql_exclude_directive_enabled": true,
125
+ "verified_phone_label_enabled": false,
126
+ "responsive_web_graphql_timeline_navigation_enabled": true,
127
+ "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false,
128
+ "tweetypie_unmention_optimization_enabled": true,
129
+ "vibe_api_enabled": true,
130
+ "responsive_web_edit_tweet_api_enabled": true,
131
+ "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true,
132
+ "view_counts_everywhere_api_enabled": true,
133
+ "longform_notetweets_consumption_enabled": true,
134
+ "tweet_awards_web_tipping_enabled": false,
135
+ "freedom_of_speech_not_reach_fetch_enabled": false,
136
+ "standardized_nudges_misinfo": true,
137
+ "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": false,
138
+ "interactive_text_enabled": true,
139
+ "responsive_web_text_conversations_enabled": false,
140
+ "longform_notetweets_rich_text_read_enabled": true,
141
+ "responsive_web_enhance_cards_enabled": false
142
+ }
143
+ },
144
+ "UserTweetsAndReplies": {
145
+ "queryId": "RIWc55YCNyUJ-U3HHGYkdg",
146
+ "variables": {
147
+ "userId": "44196397",
148
+ "count": 40,
149
+ "includePromotedContent": true,
150
+ "withCommunity": true,
151
+ "withVoice": true,
152
+ "withV2Timeline": true
153
+ },
154
+ "features": {
155
+ "blue_business_profile_image_shape_enabled": true,
156
+ "responsive_web_graphql_exclude_directive_enabled": true,
157
+ "verified_phone_label_enabled": false,
158
+ "responsive_web_graphql_timeline_navigation_enabled": true,
159
+ "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false,
160
+ "tweetypie_unmention_optimization_enabled": true,
161
+ "vibe_api_enabled": true,
162
+ "responsive_web_edit_tweet_api_enabled": true,
163
+ "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true,
164
+ "view_counts_everywhere_api_enabled": true,
165
+ "longform_notetweets_consumption_enabled": true,
166
+ "tweet_awards_web_tipping_enabled": false,
167
+ "freedom_of_speech_not_reach_fetch_enabled": false,
168
+ "standardized_nudges_misinfo": true,
169
+ "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": false,
170
+ "interactive_text_enabled": true,
171
+ "responsive_web_text_conversations_enabled": false,
172
+ "longform_notetweets_rich_text_read_enabled": true,
173
+ "responsive_web_enhance_cards_enabled": false
174
+ }
175
+ },
176
+ "UserMedia": {
177
+ "queryId": "YqiE3JL1KNgf9nSljYdxaA",
178
+ "variables": {
179
+ "userId": "44196397",
180
+ "count": 40,
181
+ "includePromotedContent": false,
182
+ "withClientEventToken": false,
183
+ "withBirdwatchNotes": false,
184
+ "withVoice": true,
185
+ "withV2Timeline": true
186
+ },
187
+ "features": {
188
+ "blue_business_profile_image_shape_enabled": true,
189
+ "responsive_web_graphql_exclude_directive_enabled": true,
190
+ "verified_phone_label_enabled": false,
191
+ "responsive_web_graphql_timeline_navigation_enabled": true,
192
+ "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false,
193
+ "tweetypie_unmention_optimization_enabled": true,
194
+ "vibe_api_enabled": true,
195
+ "responsive_web_edit_tweet_api_enabled": true,
196
+ "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true,
197
+ "view_counts_everywhere_api_enabled": true,
198
+ "longform_notetweets_consumption_enabled": true,
199
+ "tweet_awards_web_tipping_enabled": false,
200
+ "freedom_of_speech_not_reach_fetch_enabled": false,
201
+ "standardized_nudges_misinfo": true,
202
+ "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": false,
203
+ "interactive_text_enabled": true,
204
+ "responsive_web_text_conversations_enabled": false,
205
+ "longform_notetweets_rich_text_read_enabled": true,
206
+ "responsive_web_enhance_cards_enabled": false
207
+ }
208
+ },
209
+ "Likes": {
210
+ "queryId": "5fmEkRT-1AdHqEsbVgehMg",
211
+ "variables": {
212
+ "userId": "44196397",
213
+ "count": 20,
214
+ "includePromotedContent": false,
215
+ "withClientEventToken": false,
216
+ "withBirdwatchNotes": false,
217
+ "withVoice": true,
218
+ "withV2Timeline": true
219
+ },
220
+ "features": {
221
+ "blue_business_profile_image_shape_enabled": true,
222
+ "responsive_web_graphql_exclude_directive_enabled": true,
223
+ "verified_phone_label_enabled": false,
224
+ "responsive_web_graphql_timeline_navigation_enabled": true,
225
+ "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false,
226
+ "tweetypie_unmention_optimization_enabled": true,
227
+ "vibe_api_enabled": true,
228
+ "responsive_web_edit_tweet_api_enabled": true,
229
+ "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true,
230
+ "view_counts_everywhere_api_enabled": true,
231
+ "longform_notetweets_consumption_enabled": true,
232
+ "tweet_awards_web_tipping_enabled": false,
233
+ "freedom_of_speech_not_reach_fetch_enabled": false,
234
+ "standardized_nudges_misinfo": true,
235
+ "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": false,
236
+ "interactive_text_enabled": true,
237
+ "responsive_web_text_conversations_enabled": false,
238
+ "longform_notetweets_rich_text_read_enabled": true,
239
+ "responsive_web_enhance_cards_enabled": false
240
+ }
241
+ },
242
+ "Bookmarks": {
243
+ "queryId": "tmd4ifV8RHltzn8ymGg1aw",
244
+ "variables": {
245
+ "count": 20,
246
+ "includePromotedContent": true
247
+ },
248
+ "features": {
249
+ "graphql_timeline_v2_bookmark_timeline": true,
250
+ "blue_business_profile_image_shape_enabled": true,
251
+ "responsive_web_graphql_exclude_directive_enabled": true,
252
+ "verified_phone_label_enabled": false,
253
+ "responsive_web_graphql_timeline_navigation_enabled": true,
254
+ "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false,
255
+ "tweetypie_unmention_optimization_enabled": true,
256
+ "vibe_api_enabled": true,
257
+ "responsive_web_edit_tweet_api_enabled": true,
258
+ "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true,
259
+ "view_counts_everywhere_api_enabled": true,
260
+ "longform_notetweets_consumption_enabled": true,
261
+ "tweet_awards_web_tipping_enabled": false,
262
+ "freedom_of_speech_not_reach_fetch_enabled": false,
263
+ "standardized_nudges_misinfo": true,
264
+ "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": false,
265
+ "interactive_text_enabled": true,
266
+ "responsive_web_text_conversations_enabled": false,
267
+ "longform_notetweets_rich_text_read_enabled": true,
268
+ "responsive_web_enhance_cards_enabled": false
269
+ }
270
+ },
271
+ "TweetDetail": {
272
+ "queryId": "wNNG8DBB8EaXw1lq4vFWGA",
273
+ "variables": {
274
+ "focalTweetId": "1349129669258448897",
275
+ "with_rux_injections": false,
276
+ "includePromotedContent": true,
277
+ "withCommunity": true,
278
+ "withQuickPromoteEligibilityTweetFields": true,
279
+ "withBirdwatchNotes": true,
280
+ "withVoice": true,
281
+ "withV2Timeline": true
282
+ },
283
+ "features": {
284
+ "blue_business_profile_image_shape_enabled": true,
285
+ "responsive_web_graphql_exclude_directive_enabled": true,
286
+ "verified_phone_label_enabled": false,
287
+ "responsive_web_graphql_timeline_navigation_enabled": true,
288
+ "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false,
289
+ "tweetypie_unmention_optimization_enabled": true,
290
+ "vibe_api_enabled": true,
291
+ "responsive_web_edit_tweet_api_enabled": true,
292
+ "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true,
293
+ "view_counts_everywhere_api_enabled": true,
294
+ "longform_notetweets_consumption_enabled": true,
295
+ "tweet_awards_web_tipping_enabled": false,
296
+ "freedom_of_speech_not_reach_fetch_enabled": false,
297
+ "standardized_nudges_misinfo": true,
298
+ "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": false,
299
+ "interactive_text_enabled": true,
300
+ "responsive_web_text_conversations_enabled": false,
301
+ "longform_notetweets_rich_text_read_enabled": true,
302
+ "responsive_web_enhance_cards_enabled": false
303
+ }
304
+ },
305
+ "Followers": {
306
+ "queryId": "djdTXDIk2qhd4OStqlUFeQ",
307
+ "variables": {
308
+ "userId": "44196397",
309
+ "count": 20,
310
+ "includePromotedContent": false
311
+ },
312
+ "features": {
313
+ "blue_business_profile_image_shape_enabled": true,
314
+ "responsive_web_graphql_exclude_directive_enabled": true,
315
+ "verified_phone_label_enabled": false,
316
+ "responsive_web_graphql_timeline_navigation_enabled": true,
317
+ "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false,
318
+ "tweetypie_unmention_optimization_enabled": true,
319
+ "vibe_api_enabled": true,
320
+ "responsive_web_edit_tweet_api_enabled": true,
321
+ "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true,
322
+ "view_counts_everywhere_api_enabled": true,
323
+ "longform_notetweets_consumption_enabled": true,
324
+ "tweet_awards_web_tipping_enabled": false,
325
+ "freedom_of_speech_not_reach_fetch_enabled": false,
326
+ "standardized_nudges_misinfo": true,
327
+ "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": false,
328
+ "interactive_text_enabled": true,
329
+ "responsive_web_text_conversations_enabled": false,
330
+ "longform_notetweets_rich_text_read_enabled": true,
331
+ "responsive_web_enhance_cards_enabled": false
332
+ }
333
+ },
334
+ "Following": {
335
+ "queryId": "IWP6Zt14sARO29lJT35bBw",
336
+ "variables": {
337
+ "userId": "44196397",
338
+ "count": 20,
339
+ "includePromotedContent": false
340
+ },
341
+ "features": {
342
+ "blue_business_profile_image_shape_enabled": true,
343
+ "responsive_web_graphql_exclude_directive_enabled": true,
344
+ "verified_phone_label_enabled": false,
345
+ "responsive_web_graphql_timeline_navigation_enabled": true,
346
+ "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false,
347
+ "tweetypie_unmention_optimization_enabled": true,
348
+ "vibe_api_enabled": true,
349
+ "responsive_web_edit_tweet_api_enabled": true,
350
+ "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true,
351
+ "view_counts_everywhere_api_enabled": true,
352
+ "longform_notetweets_consumption_enabled": true,
353
+ "tweet_awards_web_tipping_enabled": false,
354
+ "freedom_of_speech_not_reach_fetch_enabled": false,
355
+ "standardized_nudges_misinfo": true,
356
+ "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": false,
357
+ "interactive_text_enabled": true,
358
+ "responsive_web_text_conversations_enabled": false,
359
+ "longform_notetweets_rich_text_read_enabled": true,
360
+ "responsive_web_enhance_cards_enabled": false
361
+ }
362
+ },
363
+ "CreateTweet": {
364
+ "queryId": "1RyAhNwby-gzGCRVsMxKbQ",
365
+ "variables": {
366
+ "tweet_text": "test",
367
+ "media": {
368
+ "media_entities": [],
369
+ "possibly_sensitive": false
370
+ },
371
+ "semantic_annotation_ids": [],
372
+ "dark_request": false
373
+ },
374
+ "features": {
375
+ "tweetypie_unmention_optimization_enabled": true,
376
+ "vibe_api_enabled": true,
377
+ "responsive_web_edit_tweet_api_enabled": true,
378
+ "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true,
379
+ "view_counts_everywhere_api_enabled": true,
380
+ "longform_notetweets_consumption_enabled": true,
381
+ "tweet_awards_web_tipping_enabled": false,
382
+ "interactive_text_enabled": true,
383
+ "responsive_web_text_conversations_enabled": false,
384
+ "longform_notetweets_rich_text_read_enabled": true,
385
+ "blue_business_profile_image_shape_enabled": true,
386
+ "responsive_web_graphql_exclude_directive_enabled": true,
387
+ "verified_phone_label_enabled": false,
388
+ "freedom_of_speech_not_reach_fetch_enabled": true,
389
+ "standardized_nudges_misinfo": true,
390
+ "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": false,
391
+ "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false,
392
+ "responsive_web_graphql_timeline_navigation_enabled": true,
393
+ "responsive_web_enhance_cards_enabled": false
394
+ }
395
+ },
396
+ "FavoriteTweet": {
397
+ "queryId": "lI07N6Otwv1PhnEgXILM7A",
398
+ "variables": {
399
+ "tweet_id": "1349129669258448897",
400
+ "dark_request": false
401
+ }
402
+ },
403
+ "UnfavoriteTweet": {
404
+ "queryId": "ZYKSe-w7KEslx3JhSIk5LA",
405
+ "variables": {
406
+ "tweet_id": "1349129669258448897",
407
+ "dark_request": false
408
+ }
409
+ },
410
+ "CreateRetweet": {
411
+ "queryId": "ojPdsZsimiJrUGLR1sjUtA",
412
+ "variables": {
413
+ "tweet_id": "1349129669258448897",
414
+ "dark_request": false
415
+ }
416
+ },
417
+ "DeleteRetweet": {
418
+ "queryId": "iQtK4dl5hBmXewYZuEOKVw",
419
+ "variables": {
420
+ "source_tweet_id": "1349129669258448897",
421
+ "dark_request": false
422
+ }
423
+ },
424
+ "DeleteTweet": {
425
+ "queryId": "VaenaVgh5q5ih7kvyVjgtg",
426
+ "variables": {
427
+ "tweet_id": "1349129669258448897",
428
+ "dark_request": false
429
+ }
430
+ },
431
+ "#=====v1.1====": {
432
+ "url": "https://twitter.com/i/api/1.1/"
433
+ },
434
+ "friendships/create.json": {
435
+ "include_profile_interstitial_type": 1,
436
+ "include_blocking": 1,
437
+ "include_blocked_by": 1,
438
+ "include_followed_by": 1,
439
+ "include_want_retweets": 1,
440
+ "include_mute_edge": 1,
441
+ "include_can_dm": 1,
442
+ "include_can_media_tag": 1,
443
+ "include_ext_has_nft_avatar": 1,
444
+ "include_ext_is_blue_verified": 1,
445
+ "include_ext_verified_type": 1,
446
+ "include_ext_profile_image_shape": 1,
447
+ "skip_status": 1,
448
+ "user_id": "44196397"
449
+ },
450
+ "friendships/destroy.json": {
451
+ "include_profile_interstitial_type": 1,
452
+ "include_blocking": 1,
453
+ "include_blocked_by": 1,
454
+ "include_followed_by": 1,
455
+ "include_want_retweets": 1,
456
+ "include_mute_edge": 1,
457
+ "include_can_dm": 1,
458
+ "include_can_media_tag": 1,
459
+ "include_ext_has_nft_avatar": 1,
460
+ "include_ext_is_blue_verified": 1,
461
+ "include_ext_verified_type": 1,
462
+ "include_ext_profile_image_shape": 1,
463
+ "skip_status": 1,
464
+ "user_id": "44196397"
465
+ },
466
+ "friends/following/list.json": {
467
+ "include_profile_interstitial_type": 1,
468
+ "include_blocking": 1,
469
+ "include_blocked_by": 1,
470
+ "include_followed_by": 1,
471
+ "include_want_retweets": 1,
472
+ "include_mute_edge": 1,
473
+ "include_can_dm": 1,
474
+ "include_can_media_tag": 1,
475
+ "include_ext_has_nft_avatar": 1,
476
+ "include_ext_is_blue_verified": 1,
477
+ "include_ext_verified_type": 1,
478
+ "include_ext_profile_image_shape": 1,
479
+ "skip_status": 1,
480
+ "cursor": -1,
481
+ "user_id": "44196397",
482
+ "count": 3,
483
+ "with_total_count": true
484
+ },
485
+ "search/typeahead.json": {
486
+ "include_ext_is_blue_verified": 1,
487
+ "include_ext_verified_type": 1,
488
+ "include_ext_profile_image_shape": 1,
489
+ "q": "test",
490
+ "src": "search_box",
491
+ "result_type": "events,users,topics"
492
+ },
493
+ "#=====v2====": {
494
+ "url": "https://twitter.com/i/api/2"
495
+ },
496
+ "search/adaptive.json": {
497
+ "include_profile_interstitial_type": 1,
498
+ "include_blocking": 1,
499
+ "include_blocked_by": 1,
500
+ "include_followed_by": 1,
501
+ "include_want_retweets": 1,
502
+ "include_mute_edge": 1,
503
+ "include_can_dm": 1,
504
+ "include_can_media_tag": 1,
505
+ "include_ext_has_nft_avatar": 1,
506
+ "include_ext_is_blue_verified": 1,
507
+ "include_ext_verified_type": 1,
508
+ "include_ext_profile_image_shape": 1,
509
+ "skip_status": 1,
510
+ "cards_platform": "Web-12",
511
+ "include_cards": 1,
512
+ "include_ext_alt_text": true,
513
+ "include_ext_limited_action_results": false,
514
+ "include_quote_count": true,
515
+ "include_reply_count": 1,
516
+ "tweet_mode": "extended",
517
+ "include_ext_views": true,
518
+ "include_entities": true,
519
+ "include_user_entities": true,
520
+ "include_ext_media_color": true,
521
+ "include_ext_media_availability": true,
522
+ "include_ext_sensitive_media_warning": true,
523
+ "include_ext_trusted_friends_metadata": true,
524
+ "send_error_codes": true,
525
+ "simple_quoted_tweet": true,
526
+ "q": "elon musk",
527
+ "query_source": "trend_click",
528
+ "count": 20,
529
+ "requestContext": "launch",
530
+ "pc": 1,
531
+ "spelling_corrections": 1,
532
+ "include_ext_edit_control": true,
533
+ "ext": "mediaStats,highlightedLabel,hasNftAvatar,voiceInfo,birdwatchPivot,enrichments,superFollowMetadata,unmentionInfo,editControl,vibe"
534
+ }
535
+ }
@@ -0,0 +1,68 @@
1
+ openapi: 3.0.3
2
+ info:
3
+ title: Twitter OpenAPI
4
+ description: |-
5
+ Twitter OpenAPI(Swagger) specification
6
+ termsOfService: https://github.com/fa0311
7
+ contact:
8
+ email: yuki@yuki0311.com
9
+ license:
10
+ name: GNU Affero General Public License v3.
11
+ url: https://raw.githubusercontent.com/fa0311/twitter-openapi/main/LICENSE.txt
12
+ version: 0.0.1
13
+ servers:
14
+ - url: https://twitter.com/i/api
15
+
16
+ paths: {}
17
+ components:
18
+ schemas: {}
19
+
20
+ securitySchemes:
21
+ CsrfToken:
22
+ type: apiKey
23
+ in: header
24
+ name: x-csrf-token
25
+ description: "document.cookie.split('; ').find(row => row.startsWith('ct0='));"
26
+
27
+ CookieCt0:
28
+ type: apiKey
29
+ in: cookie
30
+ name: ct0
31
+ description: "document.cookie.split('; ').find(row => row.startsWith('ct0='));"
32
+
33
+ CookieAuthToken:
34
+ type: apiKey
35
+ in: cookie
36
+ name: auth_token
37
+ description: "HttpOnly cookie"
38
+
39
+ AuthType:
40
+ type: apiKey
41
+ in: header
42
+ name: x-twitter-auth-type
43
+ description: "OAuth2Session if you are logged in"
44
+
45
+ security:
46
+ - CsrfToken: []
47
+ - CookieCt0: []
48
+ - CookieAuthToken: []
49
+ - AuthType: []
50
+ tags:
51
+ - name: user
52
+ description: response User
53
+ - name: user-list
54
+ description: response User list
55
+ - name: tweet
56
+ description: response tweet
57
+ - name: post
58
+ description: post
59
+ - name: v1.1-get
60
+ description: legacy APIs get
61
+ - name: v1.1-post
62
+ description: legacy APIs post
63
+ - name: v2.0-get
64
+ description: legacy APIs get
65
+ - name: v2.0-post
66
+ description: legacy APIs post
67
+ - name: other
68
+ description: other
@@ -0,0 +1,42 @@
1
+ openapi: 3.0.3
2
+ info:
3
+ title: Twitter OpenAPI
4
+ version: 0.0.1
5
+
6
+ paths:
7
+ /graphql/{{queryId}}/Bookmarks:
8
+ get:
9
+ operationId: getBookmarks
10
+ description: get bookmarks
11
+ responses:
12
+ "200":
13
+ description: Successful operation
14
+ content:
15
+ application/json:
16
+ schema:
17
+ $ref: "#/components/schemas/BookmarksResponse"
18
+ tags:
19
+ - "tweet"
20
+
21
+ components:
22
+ schemas:
23
+ BookmarksResponse:
24
+ required:
25
+ - "data"
26
+ properties:
27
+ data:
28
+ $ref: "#/components/schemas/BookmarksResponseData"
29
+
30
+ BookmarksResponseData:
31
+ required:
32
+ - "bookmark_timeline_v2"
33
+ properties:
34
+ bookmark_timeline_v2:
35
+ $ref: "#/components/schemas/BookmarksTimeline"
36
+
37
+ BookmarksTimeline:
38
+ required:
39
+ - "timeline"
40
+ properties:
41
+ timeline:
42
+ $ref: "./../schemas/timeline.yaml#/components/schemas/Timeline"