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,123 @@
1
+ components:
2
+ schemas:
3
+ ProfileResponse:
4
+ properties:
5
+ data:
6
+ $ref: '#/components/schemas/ProfileResponseData'
7
+ required:
8
+ - data
9
+ ProfileResponseData:
10
+ properties:
11
+ user_result_by_screen_name:
12
+ $ref: '#/components/schemas/UserResultByScreenName'
13
+ required:
14
+ - user_result_by_screen_name
15
+ UserResultByScreenName:
16
+ properties:
17
+ id:
18
+ pattern: ^[0-9a-zA-Z]+$
19
+ type: string
20
+ result:
21
+ $ref: '#/components/schemas/UserResultByScreenNameResult'
22
+ required:
23
+ - id
24
+ - result
25
+ UserResultByScreenNameLegacy:
26
+ properties:
27
+ blocked_by:
28
+ type: boolean
29
+ blocking:
30
+ type: boolean
31
+ followed_by:
32
+ type: boolean
33
+ following:
34
+ type: boolean
35
+ name:
36
+ type: string
37
+ protected:
38
+ type: boolean
39
+ screen_name:
40
+ type: string
41
+ UserResultByScreenNameResult:
42
+ properties:
43
+ __typename:
44
+ $ref: ./../schemas/typename.yaml#/components/schemas/TypeName
45
+ id:
46
+ pattern: ^[0-9a-zA-Z=]+$
47
+ type: string
48
+ legacy:
49
+ $ref: '#/components/schemas/UserResultByScreenNameLegacy'
50
+ profilemodules:
51
+ type: object
52
+ rest_id:
53
+ pattern: ^[0-9]+$
54
+ type: string
55
+ required:
56
+ - __typename
57
+ - id
58
+ - legacy
59
+ - profilemodules
60
+ - rest_id
61
+ info:
62
+ title: Twitter OpenAPI
63
+ version: 0.0.1
64
+ openapi: 3.0.3
65
+ paths:
66
+ /graphql/9zwVLJ48lmVUk8u_Gh9DmA/ProfileSpotlightsQuery:
67
+ get:
68
+ description: get user by screen name
69
+ operationId: getProfileSpotlightsQuery
70
+ parameters:
71
+ - in: query
72
+ name: queryId
73
+ required: true
74
+ schema:
75
+ default: '"9zwVLJ48lmVUk8u_Gh9DmA"'
76
+ example: '"9zwVLJ48lmVUk8u_Gh9DmA"'
77
+ type: string
78
+ - in: query
79
+ name: variables
80
+ required: true
81
+ schema:
82
+ default: '{"screen_name": "elonmusk"}'
83
+ example: '{"screen_name": "elonmusk"}'
84
+ type: string
85
+ - in: query
86
+ name: features
87
+ required: true
88
+ schema:
89
+ default: '{}'
90
+ example: '{}'
91
+ type: string
92
+ responses:
93
+ '200':
94
+ content:
95
+ application/json:
96
+ schema:
97
+ $ref: '#/components/schemas/ProfileResponse'
98
+ description: Successful operation
99
+ headers:
100
+ x-connection-hash:
101
+ schema:
102
+ type: string
103
+ x-rate-limit-limit:
104
+ schema:
105
+ type: integer
106
+ x-rate-limit-remaining:
107
+ schema:
108
+ type: integer
109
+ x-rate-limit-reset:
110
+ schema:
111
+ type: integer
112
+ x-response-time:
113
+ schema:
114
+ type: integer
115
+ x-tfe-preserve-body:
116
+ schema:
117
+ type: boolean
118
+ x-transaction-id:
119
+ schema:
120
+ type: string
121
+ x-twitter-response-tags:
122
+ schema:
123
+ type: string
@@ -0,0 +1,293 @@
1
+ components:
2
+ schemas:
3
+ HomeTimelineHome:
4
+ properties:
5
+ home_timeline_urt:
6
+ $ref: ./../schemas/timeline.yaml#/components/schemas/Timeline
7
+ required:
8
+ - home_timeline_urt
9
+ HomeTimelineResponseData:
10
+ properties:
11
+ home:
12
+ $ref: '#/components/schemas/HomeTimelineHome'
13
+ required:
14
+ - home
15
+ ListTweetsTimeline:
16
+ properties:
17
+ timeline:
18
+ $ref: ./../schemas/timeline.yaml#/components/schemas/Timeline
19
+ required:
20
+ - timeline
21
+ ListTweetsTimelineData:
22
+ properties:
23
+ list:
24
+ $ref: '#/components/schemas/ListTweetsTimelineList'
25
+ required:
26
+ - list
27
+ ListTweetsTimelineList:
28
+ properties:
29
+ tweets_timeline:
30
+ $ref: '#/components/schemas/ListTweetsTimeline'
31
+ required:
32
+ - tweets_timeline
33
+ ListTweetsTimelineResponse:
34
+ properties:
35
+ data:
36
+ $ref: '#/components/schemas/ListTweetsTimelineData'
37
+ required:
38
+ - data
39
+ TimelineResponse:
40
+ properties:
41
+ data:
42
+ $ref: '#/components/schemas/HomeTimelineResponseData'
43
+ required:
44
+ - data
45
+ info:
46
+ title: Twitter OpenAPI
47
+ version: 0.0.1
48
+ openapi: 3.0.3
49
+ paths:
50
+ /graphql/2TemLyqrMpTeAmysdbnVqw/ListLatestTweetsTimeline:
51
+ get:
52
+ description: get tweet list of timeline
53
+ operationId: getListLatestTweetsTimeline
54
+ parameters:
55
+ - in: query
56
+ name: queryId
57
+ required: true
58
+ schema:
59
+ default: '"2TemLyqrMpTeAmysdbnVqw"'
60
+ example: '"2TemLyqrMpTeAmysdbnVqw"'
61
+ type: string
62
+ - in: query
63
+ name: variables
64
+ required: true
65
+ schema:
66
+ default: '{"listId": "53044119", "count": 20}'
67
+ example: '{"listId": "53044119", "count": 20}'
68
+ type: string
69
+ - in: query
70
+ name: features
71
+ required: true
72
+ schema:
73
+ default: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
74
+ true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled":
75
+ true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
76
+ false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_enabled":
77
+ true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled":
78
+ true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
79
+ true, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
80
+ false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
81
+ false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled":
82
+ false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled":
83
+ false}'
84
+ example: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
85
+ true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled":
86
+ true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
87
+ false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_enabled":
88
+ true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled":
89
+ true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
90
+ true, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
91
+ false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
92
+ false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled":
93
+ false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled":
94
+ false}'
95
+ type: string
96
+ responses:
97
+ '200':
98
+ content:
99
+ application/json:
100
+ schema:
101
+ $ref: '#/components/schemas/ListTweetsTimelineResponse'
102
+ description: Successful operation
103
+ headers:
104
+ x-connection-hash:
105
+ schema:
106
+ type: string
107
+ x-rate-limit-limit:
108
+ schema:
109
+ type: integer
110
+ x-rate-limit-remaining:
111
+ schema:
112
+ type: integer
113
+ x-rate-limit-reset:
114
+ schema:
115
+ type: integer
116
+ x-response-time:
117
+ schema:
118
+ type: integer
119
+ x-tfe-preserve-body:
120
+ schema:
121
+ type: boolean
122
+ x-transaction-id:
123
+ schema:
124
+ type: string
125
+ x-twitter-response-tags:
126
+ schema:
127
+ type: string
128
+ tags:
129
+ - tweet
130
+ /graphql/HCosKfLNW1AcOo3la3mMgg/HomeTimeline:
131
+ get:
132
+ description: get tweet list of timeline
133
+ operationId: getHomeTimeline
134
+ parameters:
135
+ - in: query
136
+ name: queryId
137
+ required: true
138
+ schema:
139
+ default: '"HCosKfLNW1AcOo3la3mMgg"'
140
+ example: '"HCosKfLNW1AcOo3la3mMgg"'
141
+ type: string
142
+ - in: query
143
+ name: variables
144
+ required: true
145
+ schema:
146
+ default: '{"count": 20, "includePromotedContent": true, "latestControlAvailable":
147
+ true, "requestContext": "launch", "withCommunity": true}'
148
+ example: '{"count": 20, "includePromotedContent": true, "latestControlAvailable":
149
+ true, "requestContext": "launch", "withCommunity": true}'
150
+ type: string
151
+ - in: query
152
+ name: features
153
+ required: true
154
+ schema:
155
+ default: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
156
+ true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled":
157
+ true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
158
+ false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_enabled":
159
+ true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled":
160
+ true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
161
+ true, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
162
+ false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
163
+ false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled":
164
+ false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled":
165
+ false}'
166
+ example: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
167
+ true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled":
168
+ true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
169
+ false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_enabled":
170
+ true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled":
171
+ true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
172
+ true, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
173
+ false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
174
+ false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled":
175
+ false, "longform_notetweets_rich_text_read_enabled": true, "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/TimelineResponse'
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
+ - tweet
212
+ /graphql/zhX91JE87mWvfprhYE97xA/HomeLatestTimeline:
213
+ get:
214
+ description: get tweet list of timeline
215
+ operationId: getHomeLatestTimeline
216
+ parameters:
217
+ - in: query
218
+ name: queryId
219
+ required: true
220
+ schema:
221
+ default: '"zhX91JE87mWvfprhYE97xA"'
222
+ example: '"zhX91JE87mWvfprhYE97xA"'
223
+ type: string
224
+ - in: query
225
+ name: variables
226
+ required: true
227
+ schema:
228
+ default: '{"count": 20, "includePromotedContent": true, "latestControlAvailable":
229
+ true, "requestContext": "launch"}'
230
+ example: '{"count": 20, "includePromotedContent": true, "latestControlAvailable":
231
+ true, "requestContext": "launch"}'
232
+ type: string
233
+ - in: query
234
+ name: features
235
+ required: true
236
+ schema:
237
+ default: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
238
+ true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled":
239
+ true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
240
+ false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_enabled":
241
+ true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled":
242
+ true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
243
+ true, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
244
+ false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
245
+ false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled":
246
+ false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled":
247
+ false}'
248
+ example: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
249
+ true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled":
250
+ true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
251
+ false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_enabled":
252
+ true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled":
253
+ true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
254
+ true, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
255
+ false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
256
+ false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled":
257
+ false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled":
258
+ false}'
259
+ type: string
260
+ responses:
261
+ '200':
262
+ content:
263
+ application/json:
264
+ schema:
265
+ $ref: '#/components/schemas/TimelineResponse'
266
+ description: Successful operation
267
+ headers:
268
+ x-connection-hash:
269
+ schema:
270
+ type: string
271
+ x-rate-limit-limit:
272
+ schema:
273
+ type: integer
274
+ x-rate-limit-remaining:
275
+ schema:
276
+ type: integer
277
+ x-rate-limit-reset:
278
+ schema:
279
+ type: integer
280
+ x-response-time:
281
+ schema:
282
+ type: integer
283
+ x-tfe-preserve-body:
284
+ schema:
285
+ type: boolean
286
+ x-transaction-id:
287
+ schema:
288
+ type: string
289
+ x-twitter-response-tags:
290
+ schema:
291
+ type: string
292
+ tags:
293
+ - tweet
@@ -0,0 +1,105 @@
1
+ components:
2
+ schemas:
3
+ TweetDetailResponse:
4
+ properties:
5
+ data:
6
+ $ref: '#/components/schemas/TweetDetailResponseData'
7
+ required:
8
+ - data
9
+ TweetDetailResponseData:
10
+ properties:
11
+ threaded_conversation_with_injections_v2:
12
+ $ref: ./../schemas/timeline.yaml#/components/schemas/Timeline
13
+ required:
14
+ - threaded_conversation_with_injections_v2
15
+ info:
16
+ title: Twitter OpenAPI
17
+ version: 0.0.1
18
+ openapi: 3.0.3
19
+ paths:
20
+ /graphql/wNNG8DBB8EaXw1lq4vFWGA/TweetDetail:
21
+ get:
22
+ description: get TweetDetail
23
+ operationId: getTweetDetail
24
+ parameters:
25
+ - in: query
26
+ name: queryId
27
+ required: true
28
+ schema:
29
+ default: '"wNNG8DBB8EaXw1lq4vFWGA"'
30
+ example: '"wNNG8DBB8EaXw1lq4vFWGA"'
31
+ type: string
32
+ - in: query
33
+ name: variables
34
+ required: true
35
+ schema:
36
+ default: '{"focalTweetId": "1349129669258448897", "with_rux_injections":
37
+ false, "includePromotedContent": true, "withCommunity": true, "withQuickPromoteEligibilityTweetFields":
38
+ true, "withBirdwatchNotes": true, "withVoice": true, "withV2Timeline":
39
+ true}'
40
+ example: '{"focalTweetId": "1349129669258448897", "with_rux_injections":
41
+ false, "includePromotedContent": true, "withCommunity": true, "withQuickPromoteEligibilityTweetFields":
42
+ true, "withBirdwatchNotes": true, "withVoice": true, "withV2Timeline":
43
+ true}'
44
+ type: string
45
+ - in: query
46
+ name: features
47
+ required: true
48
+ schema:
49
+ default: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
50
+ true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled":
51
+ true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
52
+ false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_enabled":
53
+ true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled":
54
+ true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
55
+ true, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
56
+ false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
57
+ false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled":
58
+ false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled":
59
+ false}'
60
+ example: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
61
+ true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled":
62
+ true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
63
+ false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_enabled":
64
+ true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled":
65
+ true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
66
+ true, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
67
+ false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
68
+ false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled":
69
+ false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled":
70
+ false}'
71
+ type: string
72
+ responses:
73
+ '200':
74
+ content:
75
+ application/json:
76
+ schema:
77
+ $ref: '#/components/schemas/TweetDetailResponse'
78
+ description: Successful operation
79
+ headers:
80
+ x-connection-hash:
81
+ schema:
82
+ type: string
83
+ x-rate-limit-limit:
84
+ schema:
85
+ type: integer
86
+ x-rate-limit-remaining:
87
+ schema:
88
+ type: integer
89
+ x-rate-limit-reset:
90
+ schema:
91
+ type: integer
92
+ x-response-time:
93
+ schema:
94
+ type: integer
95
+ x-tfe-preserve-body:
96
+ schema:
97
+ type: boolean
98
+ x-transaction-id:
99
+ schema:
100
+ type: string
101
+ x-twitter-response-tags:
102
+ schema:
103
+ type: string
104
+ tags:
105
+ - tweet
@@ -0,0 +1,83 @@
1
+ components:
2
+ schemas:
3
+ UserResponse:
4
+ properties:
5
+ data:
6
+ $ref: '#/components/schemas/UserResponseData'
7
+ required:
8
+ - data
9
+ UserResponseData:
10
+ properties:
11
+ user:
12
+ $ref: ./../schemas/user.yaml#/components/schemas/UserResults
13
+ required:
14
+ - user
15
+ info:
16
+ title: Twitter OpenAPI
17
+ version: 0.0.1
18
+ openapi: 3.0.3
19
+ paths:
20
+ /graphql/sLVLhk0bGj3MVFEKTdax1w/UserByScreenName:
21
+ get:
22
+ description: get user by screen name
23
+ operationId: getUserByScreenName
24
+ parameters:
25
+ - in: query
26
+ name: queryId
27
+ required: true
28
+ schema:
29
+ default: '"sLVLhk0bGj3MVFEKTdax1w"'
30
+ example: '"sLVLhk0bGj3MVFEKTdax1w"'
31
+ type: string
32
+ - in: query
33
+ name: variables
34
+ required: true
35
+ schema:
36
+ default: '{"screen_name": "elonmusk", "withSafetyModeUserFields": true}'
37
+ example: '{"screen_name": "elonmusk", "withSafetyModeUserFields": true}'
38
+ type: string
39
+ - in: query
40
+ name: features
41
+ required: true
42
+ schema:
43
+ default: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
44
+ true, "verified_phone_label_enabled": false, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
45
+ false, "responsive_web_graphql_timeline_navigation_enabled": true}'
46
+ example: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
47
+ true, "verified_phone_label_enabled": false, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
48
+ false, "responsive_web_graphql_timeline_navigation_enabled": true}'
49
+ type: string
50
+ responses:
51
+ '200':
52
+ content:
53
+ application/json:
54
+ schema:
55
+ $ref: '#/components/schemas/UserResponse'
56
+ description: Successful operation
57
+ headers:
58
+ x-connection-hash:
59
+ schema:
60
+ type: string
61
+ x-rate-limit-limit:
62
+ schema:
63
+ type: integer
64
+ x-rate-limit-remaining:
65
+ schema:
66
+ type: integer
67
+ x-rate-limit-reset:
68
+ schema:
69
+ type: integer
70
+ x-response-time:
71
+ schema:
72
+ type: integer
73
+ x-tfe-preserve-body:
74
+ schema:
75
+ type: boolean
76
+ x-transaction-id:
77
+ schema:
78
+ type: string
79
+ x-twitter-response-tags:
80
+ schema:
81
+ type: string
82
+ tags:
83
+ - user