twitter-openapi-typescript-generated 0.0.5 → 0.0.7

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 (199) hide show
  1. package/.openapi-generator/FILES +7 -1
  2. package/README.md +2 -2
  3. package/dist/apis/DefaultApi.d.ts +1 -1
  4. package/dist/apis/DefaultApi.d.ts.map +1 -1
  5. package/dist/apis/DefaultApi.js +3 -6
  6. package/dist/apis/DefaultApi.js.map +1 -1
  7. package/dist/apis/PostApi.d.ts +6 -0
  8. package/dist/apis/PostApi.d.ts.map +1 -1
  9. package/dist/apis/PostApi.js +24 -6
  10. package/dist/apis/PostApi.js.map +1 -1
  11. package/dist/apis/TweetApi.d.ts +9 -9
  12. package/dist/apis/TweetApi.d.ts.map +1 -1
  13. package/dist/apis/TweetApi.js +27 -54
  14. package/dist/apis/TweetApi.js.map +1 -1
  15. package/dist/apis/UserApi.d.ts +1 -1
  16. package/dist/apis/UserApi.d.ts.map +1 -1
  17. package/dist/apis/UserApi.js +3 -6
  18. package/dist/apis/UserApi.js.map +1 -1
  19. package/dist/apis/UserListApi.d.ts +2 -2
  20. package/dist/apis/UserListApi.d.ts.map +1 -1
  21. package/dist/apis/UserListApi.js +6 -12
  22. package/dist/apis/UserListApi.js.map +1 -1
  23. package/dist/models/Entities.d.ts +3 -2
  24. package/dist/models/Entities.d.ts.map +1 -1
  25. package/dist/models/Entities.js +3 -2
  26. package/dist/models/Entities.js.map +1 -1
  27. package/dist/models/PostCreateRetweetRequest.d.ts +3 -3
  28. package/dist/models/PostCreateRetweetRequest.d.ts.map +1 -1
  29. package/dist/models/PostCreateRetweetRequest.js +3 -3
  30. package/dist/models/PostCreateRetweetRequest.js.map +1 -1
  31. package/dist/models/PostCreateRetweetRequestVariables.d.ts +38 -0
  32. package/dist/models/PostCreateRetweetRequestVariables.d.ts.map +1 -0
  33. package/dist/models/PostCreateRetweetRequestVariables.js +54 -0
  34. package/dist/models/PostCreateRetweetRequestVariables.js.map +1 -0
  35. package/dist/models/PostDeleteTweetRequest.d.ts +3 -3
  36. package/dist/models/PostDeleteTweetRequest.d.ts.map +1 -1
  37. package/dist/models/PostDeleteTweetRequest.js +3 -3
  38. package/dist/models/PostDeleteTweetRequest.js.map +1 -1
  39. package/dist/models/PostFavoriteTweetRequest.d.ts +3 -3
  40. package/dist/models/PostFavoriteTweetRequest.d.ts.map +1 -1
  41. package/dist/models/PostFavoriteTweetRequest.js +3 -3
  42. package/dist/models/PostFavoriteTweetRequest.js.map +1 -1
  43. package/dist/models/PostUnfavoriteTweetRequest.d.ts +3 -3
  44. package/dist/models/PostUnfavoriteTweetRequest.d.ts.map +1 -1
  45. package/dist/models/PostUnfavoriteTweetRequest.js +3 -3
  46. package/dist/models/PostUnfavoriteTweetRequest.js.map +1 -1
  47. package/dist/models/Tweet.d.ts +7 -0
  48. package/dist/models/Tweet.d.ts.map +1 -1
  49. package/dist/models/Tweet.js +3 -0
  50. package/dist/models/Tweet.js.map +1 -1
  51. package/dist/models/TweetCard.d.ts +39 -0
  52. package/dist/models/TweetCard.d.ts.map +1 -0
  53. package/dist/models/TweetCard.js +54 -0
  54. package/dist/models/TweetCard.js.map +1 -0
  55. package/dist/models/TweetCardLegacy.d.ts +45 -0
  56. package/dist/models/TweetCardLegacy.d.ts.map +1 -0
  57. package/dist/models/TweetCardLegacy.js +58 -0
  58. package/dist/models/TweetCardLegacy.js.map +1 -0
  59. package/dist/models/TweetCardLegacyBindingValuesInner.d.ts +39 -0
  60. package/dist/models/TweetCardLegacyBindingValuesInner.d.ts.map +1 -0
  61. package/dist/models/TweetCardLegacyBindingValuesInner.js +55 -0
  62. package/dist/models/TweetCardLegacyBindingValuesInner.js.map +1 -0
  63. package/dist/models/TweetCardLegacyBindingValuesInnerValue.d.ts +50 -0
  64. package/dist/models/TweetCardLegacyBindingValuesInnerValue.d.ts.map +1 -0
  65. package/dist/models/TweetCardLegacyBindingValuesInnerValue.js +58 -0
  66. package/dist/models/TweetCardLegacyBindingValuesInnerValue.js.map +1 -0
  67. package/dist/models/TweetLegacy.d.ts +7 -0
  68. package/dist/models/TweetLegacy.d.ts.map +1 -1
  69. package/dist/models/TweetLegacy.js +3 -0
  70. package/dist/models/TweetLegacy.js.map +1 -1
  71. package/dist/models/TweetLegacySelfThread.d.ts +32 -0
  72. package/dist/models/TweetLegacySelfThread.d.ts.map +1 -0
  73. package/dist/models/TweetLegacySelfThread.js +51 -0
  74. package/dist/models/TweetLegacySelfThread.js.map +1 -0
  75. package/dist/models/Url.d.ts +50 -0
  76. package/dist/models/Url.d.ts.map +1 -0
  77. package/dist/models/Url.js +60 -0
  78. package/dist/models/Url.js.map +1 -0
  79. package/dist/models/index.d.ts +7 -1
  80. package/dist/models/index.d.ts.map +1 -1
  81. package/dist/models/index.js +7 -1
  82. package/dist/models/index.js.map +1 -1
  83. package/package.json +1 -1
  84. package/src/apis/DefaultApi.ts +4 -8
  85. package/src/apis/PostApi.ts +36 -6
  86. package/src/apis/TweetApi.ts +36 -72
  87. package/src/apis/UserApi.ts +4 -8
  88. package/src/apis/UserListApi.ts +8 -16
  89. package/src/models/Entities.ts +10 -4
  90. package/src/models/PostCreateRetweetRequest.ts +9 -9
  91. package/src/models/{PostDeleteTweetRequestVariables.ts → PostCreateRetweetRequestVariables.ts} +10 -10
  92. package/src/models/PostDeleteTweetRequest.ts +9 -9
  93. package/src/models/PostFavoriteTweetRequest.ts +9 -9
  94. package/src/models/PostUnfavoriteTweetRequest.ts +9 -9
  95. package/src/models/Tweet.ts +14 -0
  96. package/src/models/TweetCard.ts +80 -0
  97. package/src/models/TweetCardLegacy.ts +91 -0
  98. package/src/models/TweetCardLegacyBindingValuesInner.ts +82 -0
  99. package/src/models/TweetCardLegacyBindingValuesInnerValue.ts +90 -0
  100. package/src/models/TweetLegacy.ts +14 -0
  101. package/src/models/TweetLegacySelfThread.ts +66 -0
  102. package/src/models/Url.ts +93 -0
  103. package/src/models/index.ts +7 -1
  104. package/tools/openapi-generator-config.yaml +2 -2
  105. package/tools/win/replace.py +20 -20
  106. package/twitter-openapi/README.md +4 -6
  107. package/twitter-openapi/dist/{test → compatible}/openapi-3.0.yaml +38 -38
  108. package/twitter-openapi/dist/{typescript → compatible}/paths/bookmarks.yaml +5 -5
  109. package/twitter-openapi/dist/{test → compatible}/paths/follow.yaml +14 -14
  110. package/twitter-openapi/dist/{typescript → compatible}/paths/post.yaml +135 -93
  111. package/twitter-openapi/dist/{test → compatible}/paths/profile.yaml +5 -5
  112. package/twitter-openapi/dist/{typescript → compatible}/paths/timeline.yaml +25 -25
  113. package/twitter-openapi/dist/{test → compatible}/paths/tweet.yaml +5 -5
  114. package/twitter-openapi/dist/{test → compatible}/paths/user.yaml +5 -5
  115. package/twitter-openapi/dist/{test → compatible}/paths/usertweets.yaml +36 -36
  116. package/twitter-openapi/dist/compatible/resources/parameters.yaml +13 -0
  117. package/twitter-openapi/dist/{dart → compatible}/schemas/tweet.yaml +65 -0
  118. package/twitter-openapi/dist/docs/openapi-3.0.yaml +38 -38
  119. package/twitter-openapi/dist/docs/paths/bookmarks.yaml +7 -56
  120. package/twitter-openapi/dist/docs/paths/follow.yaml +18 -116
  121. package/twitter-openapi/dist/docs/paths/post.yaml +124 -82
  122. package/twitter-openapi/dist/docs/paths/profile.yaml +7 -35
  123. package/twitter-openapi/dist/docs/paths/timeline.yaml +43 -192
  124. package/twitter-openapi/dist/docs/paths/tweet.yaml +7 -61
  125. package/twitter-openapi/dist/docs/paths/user.yaml +7 -41
  126. package/twitter-openapi/dist/docs/paths/usertweets.yaml +53 -263
  127. package/twitter-openapi/dist/docs/resources/parameters.yaml +13 -0
  128. package/twitter-openapi/dist/docs/schemas/tweet.yaml +65 -0
  129. package/twitter-openapi/src/openapi/paths/bookmarks.yaml +1 -1
  130. package/twitter-openapi/src/openapi/paths/follow.yaml +2 -2
  131. package/twitter-openapi/src/openapi/paths/post.yaml +6 -6
  132. package/twitter-openapi/src/openapi/paths/profile.yaml +1 -1
  133. package/twitter-openapi/src/openapi/paths/timeline.yaml +3 -3
  134. package/twitter-openapi/src/openapi/paths/tweet.yaml +1 -1
  135. package/twitter-openapi/src/openapi/paths/user.yaml +1 -1
  136. package/twitter-openapi/src/openapi/paths/usertweets.yaml +4 -4
  137. package/twitter-openapi/src/openapi/resources/parameters.yaml +15 -0
  138. package/twitter-openapi/src/openapi/schemas/tweet.yaml +66 -1
  139. package/twitter-openapi/tools/__pycache__/build_config.cpython-310.pyc +0 -0
  140. package/twitter-openapi/tools/__pycache__/hooks.cpython-310.pyc +0 -0
  141. package/twitter-openapi/tools/build_config.py +67 -190
  142. package/twitter-openapi/tools/hooks.py +58 -13
  143. package/dist/models/PostDeleteTweetRequestVariables.d.ts +0 -38
  144. package/dist/models/PostDeleteTweetRequestVariables.d.ts.map +0 -1
  145. package/dist/models/PostDeleteTweetRequestVariables.js +0 -54
  146. package/dist/models/PostDeleteTweetRequestVariables.js.map +0 -1
  147. package/twitter-openapi/dist/dart/openapi-3.0.yaml +0 -117
  148. package/twitter-openapi/dist/dart/paths/bookmarks.yaml +0 -134
  149. package/twitter-openapi/dist/dart/paths/follow.yaml +0 -262
  150. package/twitter-openapi/dist/dart/paths/post.yaml +0 -834
  151. package/twitter-openapi/dist/dart/paths/profile.yaml +0 -152
  152. package/twitter-openapi/dist/dart/paths/timeline.yaml +0 -380
  153. package/twitter-openapi/dist/dart/paths/tweet.yaml +0 -134
  154. package/twitter-openapi/dist/dart/paths/user.yaml +0 -112
  155. package/twitter-openapi/dist/dart/paths/usertweets.yaml +0 -484
  156. package/twitter-openapi/dist/dart/paths/v1.1-get.yaml +0 -300
  157. package/twitter-openapi/dist/dart/paths/v1.1-post.yaml +0 -295
  158. package/twitter-openapi/dist/dart/paths/v2.0-get.yaml +0 -331
  159. package/twitter-openapi/dist/test/paths/bookmarks.yaml +0 -105
  160. package/twitter-openapi/dist/test/paths/other.yaml +0 -96
  161. package/twitter-openapi/dist/test/paths/post.yaml +0 -485
  162. package/twitter-openapi/dist/test/paths/timeline.yaml +0 -293
  163. package/twitter-openapi/dist/test/paths/v1.1-get.yaml +0 -242
  164. package/twitter-openapi/dist/test/paths/v1.1-post.yaml +0 -277
  165. package/twitter-openapi/dist/test/paths/v2.0-get.yaml +0 -302
  166. package/twitter-openapi/dist/test/response/error.yaml +0 -90
  167. package/twitter-openapi/dist/test/schemas/content.yaml +0 -181
  168. package/twitter-openapi/dist/test/schemas/general.yaml +0 -13
  169. package/twitter-openapi/dist/test/schemas/instruction.yaml +0 -83
  170. package/twitter-openapi/dist/test/schemas/timeline.yaml +0 -25
  171. package/twitter-openapi/dist/test/schemas/tweet.yaml +0 -251
  172. package/twitter-openapi/dist/test/schemas/typename.yaml +0 -19
  173. package/twitter-openapi/dist/test/schemas/user.yaml +0 -206
  174. package/twitter-openapi/dist/typescript/openapi-3.0.yaml +0 -141
  175. package/twitter-openapi/dist/typescript/paths/follow.yaml +0 -204
  176. package/twitter-openapi/dist/typescript/paths/other.yaml +0 -96
  177. package/twitter-openapi/dist/typescript/paths/profile.yaml +0 -123
  178. package/twitter-openapi/dist/typescript/paths/tweet.yaml +0 -105
  179. package/twitter-openapi/dist/typescript/paths/user.yaml +0 -83
  180. package/twitter-openapi/dist/typescript/paths/usertweets.yaml +0 -368
  181. package/twitter-openapi/dist/typescript/response/error.yaml +0 -90
  182. package/twitter-openapi/dist/typescript/schemas/content.yaml +0 -181
  183. package/twitter-openapi/dist/typescript/schemas/general.yaml +0 -13
  184. package/twitter-openapi/dist/typescript/schemas/instruction.yaml +0 -83
  185. package/twitter-openapi/dist/typescript/schemas/timeline.yaml +0 -25
  186. package/twitter-openapi/dist/typescript/schemas/tweet.yaml +0 -251
  187. package/twitter-openapi/dist/typescript/schemas/typename.yaml +0 -19
  188. package/twitter-openapi/dist/typescript/schemas/user.yaml +0 -206
  189. /package/twitter-openapi/dist/{dart → compatible}/paths/other.yaml +0 -0
  190. /package/twitter-openapi/dist/{typescript → compatible}/paths/v1.1-get.yaml +0 -0
  191. /package/twitter-openapi/dist/{typescript → compatible}/paths/v1.1-post.yaml +0 -0
  192. /package/twitter-openapi/dist/{typescript → compatible}/paths/v2.0-get.yaml +0 -0
  193. /package/twitter-openapi/dist/{dart → compatible}/response/error.yaml +0 -0
  194. /package/twitter-openapi/dist/{dart → compatible}/schemas/content.yaml +0 -0
  195. /package/twitter-openapi/dist/{dart → compatible}/schemas/general.yaml +0 -0
  196. /package/twitter-openapi/dist/{dart → compatible}/schemas/instruction.yaml +0 -0
  197. /package/twitter-openapi/dist/{dart → compatible}/schemas/timeline.yaml +0 -0
  198. /package/twitter-openapi/dist/{dart → compatible}/schemas/typename.yaml +0 -0
  199. /package/twitter-openapi/dist/{dart → compatible}/schemas/user.yaml +0 -0
@@ -17,54 +17,20 @@ info:
17
17
  version: 0.0.1
18
18
  openapi: 3.0.3
19
19
  paths:
20
- /graphql/wNNG8DBB8EaXw1lq4vFWGA/TweetDetail:
20
+ /graphql/{pathQueryId}/TweetDetail:
21
21
  get:
22
22
  description: get TweetDetail
23
23
  operationId: getTweetDetail
24
24
  parameters:
25
- - content:
26
- application/json:
27
- required:
28
- - w
29
- - N
30
- - N
31
- - G
32
- - '8'
33
- - D
34
- - B
35
- - B
36
- - '8'
37
- - E
38
- - a
39
- - X
40
- - w
41
- - '1'
42
- - l
43
- - q
44
- - '4'
45
- - v
46
- - F
47
- - W
48
- - G
49
- - A
50
- schema:
51
- default: wNNG8DBB8EaXw1lq4vFWGA
52
- example: wNNG8DBB8EaXw1lq4vFWGA
53
- type: string
54
- in: query
55
- name: queryId
25
+ - in: path
26
+ name: pathQueryId
56
27
  required: true
28
+ schema:
29
+ default: wNNG8DBB8EaXw1lq4vFWGA
30
+ example: wNNG8DBB8EaXw1lq4vFWGA
31
+ type: string
57
32
  - content:
58
33
  application/json:
59
- required:
60
- - focalTweetId
61
- - with_rux_injections
62
- - includePromotedContent
63
- - withCommunity
64
- - withQuickPromoteEligibilityTweetFields
65
- - withBirdwatchNotes
66
- - withVoice
67
- - withV2Timeline
68
34
  schema:
69
35
  properties:
70
36
  focalTweetId:
@@ -114,26 +80,6 @@ paths:
114
80
  required: true
115
81
  - content:
116
82
  application/json:
117
- required:
118
- - blue_business_profile_image_shape_enabled
119
- - responsive_web_graphql_exclude_directive_enabled
120
- - verified_phone_label_enabled
121
- - responsive_web_graphql_timeline_navigation_enabled
122
- - responsive_web_graphql_skip_user_profile_image_extensions_enabled
123
- - tweetypie_unmention_optimization_enabled
124
- - vibe_api_enabled
125
- - responsive_web_edit_tweet_api_enabled
126
- - graphql_is_translatable_rweb_tweet_is_translatable_enabled
127
- - view_counts_everywhere_api_enabled
128
- - longform_notetweets_consumption_enabled
129
- - tweet_awards_web_tipping_enabled
130
- - freedom_of_speech_not_reach_fetch_enabled
131
- - standardized_nudges_misinfo
132
- - tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled
133
- - interactive_text_enabled
134
- - responsive_web_text_conversations_enabled
135
- - longform_notetweets_rich_text_read_enabled
136
- - responsive_web_enhance_cards_enabled
137
83
  schema:
138
84
  properties:
139
85
  blue_business_profile_image_shape_enabled:
@@ -17,48 +17,20 @@ info:
17
17
  version: 0.0.1
18
18
  openapi: 3.0.3
19
19
  paths:
20
- /graphql/sLVLhk0bGj3MVFEKTdax1w/UserByScreenName:
20
+ /graphql/{pathQueryId}/UserByScreenName:
21
21
  get:
22
22
  description: get user by screen name
23
23
  operationId: getUserByScreenName
24
24
  parameters:
25
- - content:
26
- application/json:
27
- required:
28
- - s
29
- - L
30
- - V
31
- - L
32
- - h
33
- - k
34
- - '0'
35
- - b
36
- - G
37
- - j
38
- - '3'
39
- - M
40
- - V
41
- - F
42
- - E
43
- - K
44
- - T
45
- - d
46
- - a
47
- - x
48
- - '1'
49
- - w
50
- schema:
51
- default: sLVLhk0bGj3MVFEKTdax1w
52
- example: sLVLhk0bGj3MVFEKTdax1w
53
- type: string
54
- in: query
55
- name: queryId
25
+ - in: path
26
+ name: pathQueryId
56
27
  required: true
28
+ schema:
29
+ default: sLVLhk0bGj3MVFEKTdax1w
30
+ example: sLVLhk0bGj3MVFEKTdax1w
31
+ type: string
57
32
  - content:
58
33
  application/json:
59
- required:
60
- - screen_name
61
- - withSafetyModeUserFields
62
34
  schema:
63
35
  properties:
64
36
  screen_name:
@@ -78,12 +50,6 @@ paths:
78
50
  required: true
79
51
  - content:
80
52
  application/json:
81
- required:
82
- - blue_business_profile_image_shape_enabled
83
- - responsive_web_graphql_exclude_directive_enabled
84
- - verified_phone_label_enabled
85
- - responsive_web_graphql_skip_user_profile_image_extensions_enabled
86
- - responsive_web_graphql_timeline_navigation_enabled
87
53
  schema:
88
54
  properties:
89
55
  blue_business_profile_image_shape_enabled:
@@ -32,53 +32,20 @@ info:
32
32
  version: 0.0.1
33
33
  openapi: 3.0.3
34
34
  paths:
35
- /graphql/5fmEkRT-1AdHqEsbVgehMg/Likes:
35
+ /graphql/{pathQueryId}/Likes:
36
36
  get:
37
37
  description: get user likes tweets
38
38
  operationId: getLikes
39
39
  parameters:
40
- - content:
41
- application/json:
42
- required:
43
- - '5'
44
- - f
45
- - m
46
- - E
47
- - k
48
- - R
49
- - T
50
- - '-'
51
- - '1'
52
- - A
53
- - d
54
- - H
55
- - q
56
- - E
57
- - s
58
- - b
59
- - V
60
- - g
61
- - e
62
- - h
63
- - M
64
- - g
65
- schema:
66
- default: 5fmEkRT-1AdHqEsbVgehMg
67
- example: 5fmEkRT-1AdHqEsbVgehMg
68
- type: string
69
- in: query
70
- name: queryId
40
+ - in: path
41
+ name: pathQueryId
71
42
  required: true
43
+ schema:
44
+ default: 5fmEkRT-1AdHqEsbVgehMg
45
+ example: 5fmEkRT-1AdHqEsbVgehMg
46
+ type: string
72
47
  - content:
73
48
  application/json:
74
- required:
75
- - userId
76
- - count
77
- - includePromotedContent
78
- - withClientEventToken
79
- - withBirdwatchNotes
80
- - withVoice
81
- - withV2Timeline
82
49
  schema:
83
50
  properties:
84
51
  count:
@@ -123,26 +90,6 @@ paths:
123
90
  required: true
124
91
  - content:
125
92
  application/json:
126
- required:
127
- - blue_business_profile_image_shape_enabled
128
- - responsive_web_graphql_exclude_directive_enabled
129
- - verified_phone_label_enabled
130
- - responsive_web_graphql_timeline_navigation_enabled
131
- - responsive_web_graphql_skip_user_profile_image_extensions_enabled
132
- - tweetypie_unmention_optimization_enabled
133
- - vibe_api_enabled
134
- - responsive_web_edit_tweet_api_enabled
135
- - graphql_is_translatable_rweb_tweet_is_translatable_enabled
136
- - view_counts_everywhere_api_enabled
137
- - longform_notetweets_consumption_enabled
138
- - tweet_awards_web_tipping_enabled
139
- - freedom_of_speech_not_reach_fetch_enabled
140
- - standardized_nudges_misinfo
141
- - tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled
142
- - interactive_text_enabled
143
- - responsive_web_text_conversations_enabled
144
- - longform_notetweets_rich_text_read_enabled
145
- - responsive_web_enhance_cards_enabled
146
93
  schema:
147
94
  properties:
148
95
  blue_business_profile_image_shape_enabled:
@@ -279,52 +226,20 @@ paths:
279
226
  type: string
280
227
  tags:
281
228
  - tweet
282
- /graphql/HuTx74BxAnezK1gWvYY7zg/UserTweets:
229
+ /graphql/{pathQueryId}/UserMedia:
283
230
  get:
284
- description: get user tweets
285
- operationId: getUserTweets
231
+ description: get user media tweets
232
+ operationId: getUserMedia
286
233
  parameters:
287
- - content:
288
- application/json:
289
- required:
290
- - H
291
- - u
292
- - T
293
- - x
294
- - '7'
295
- - '4'
296
- - B
297
- - x
298
- - A
299
- - n
300
- - e
301
- - z
302
- - K
303
- - '1'
304
- - g
305
- - W
306
- - v
307
- - Y
308
- - Y
309
- - '7'
310
- - z
311
- - g
312
- schema:
313
- default: HuTx74BxAnezK1gWvYY7zg
314
- example: HuTx74BxAnezK1gWvYY7zg
315
- type: string
316
- in: query
317
- name: queryId
234
+ - in: path
235
+ name: pathQueryId
318
236
  required: true
237
+ schema:
238
+ default: YqiE3JL1KNgf9nSljYdxaA
239
+ example: YqiE3JL1KNgf9nSljYdxaA
240
+ type: string
319
241
  - content:
320
242
  application/json:
321
- required:
322
- - userId
323
- - count
324
- - includePromotedContent
325
- - withQuickPromoteEligibilityTweetFields
326
- - withVoice
327
- - withV2Timeline
328
243
  schema:
329
244
  properties:
330
245
  count:
@@ -332,16 +247,20 @@ paths:
332
247
  example: 40
333
248
  type: integer
334
249
  includePromotedContent:
335
- default: true
336
- example: true
250
+ default: false
251
+ example: false
337
252
  type: boolean
338
253
  userId:
339
254
  default: '44196397'
340
255
  example: '44196397'
341
256
  type: string
342
- withQuickPromoteEligibilityTweetFields:
343
- default: true
344
- example: true
257
+ withBirdwatchNotes:
258
+ default: false
259
+ example: false
260
+ type: boolean
261
+ withClientEventToken:
262
+ default: false
263
+ example: false
345
264
  type: boolean
346
265
  withV2Timeline:
347
266
  default: true
@@ -355,7 +274,8 @@ paths:
355
274
  - userId
356
275
  - count
357
276
  - includePromotedContent
358
- - withQuickPromoteEligibilityTweetFields
277
+ - withClientEventToken
278
+ - withBirdwatchNotes
359
279
  - withVoice
360
280
  - withV2Timeline
361
281
  type: object
@@ -364,26 +284,6 @@ paths:
364
284
  required: true
365
285
  - content:
366
286
  application/json:
367
- required:
368
- - blue_business_profile_image_shape_enabled
369
- - responsive_web_graphql_exclude_directive_enabled
370
- - verified_phone_label_enabled
371
- - responsive_web_graphql_timeline_navigation_enabled
372
- - responsive_web_graphql_skip_user_profile_image_extensions_enabled
373
- - tweetypie_unmention_optimization_enabled
374
- - vibe_api_enabled
375
- - responsive_web_edit_tweet_api_enabled
376
- - graphql_is_translatable_rweb_tweet_is_translatable_enabled
377
- - view_counts_everywhere_api_enabled
378
- - longform_notetweets_consumption_enabled
379
- - tweet_awards_web_tipping_enabled
380
- - freedom_of_speech_not_reach_fetch_enabled
381
- - standardized_nudges_misinfo
382
- - tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled
383
- - interactive_text_enabled
384
- - responsive_web_text_conversations_enabled
385
- - longform_notetweets_rich_text_read_enabled
386
- - responsive_web_enhance_cards_enabled
387
287
  schema:
388
288
  properties:
389
289
  blue_business_profile_image_shape_enabled:
@@ -520,52 +420,20 @@ paths:
520
420
  type: string
521
421
  tags:
522
422
  - tweet
523
- /graphql/RIWc55YCNyUJ-U3HHGYkdg/UserTweetsAndReplies:
423
+ /graphql/{pathQueryId}/UserTweets:
524
424
  get:
525
- description: get user replies tweets
526
- operationId: getUserTweetsAndReplies
425
+ description: get user tweets
426
+ operationId: getUserTweets
527
427
  parameters:
528
- - content:
529
- application/json:
530
- required:
531
- - R
532
- - I
533
- - W
534
- - c
535
- - '5'
536
- - '5'
537
- - Y
538
- - C
539
- - N
540
- - y
541
- - U
542
- - J
543
- - '-'
544
- - U
545
- - '3'
546
- - H
547
- - H
548
- - G
549
- - Y
550
- - k
551
- - d
552
- - g
553
- schema:
554
- default: RIWc55YCNyUJ-U3HHGYkdg
555
- example: RIWc55YCNyUJ-U3HHGYkdg
556
- type: string
557
- in: query
558
- name: queryId
428
+ - in: path
429
+ name: pathQueryId
559
430
  required: true
431
+ schema:
432
+ default: HuTx74BxAnezK1gWvYY7zg
433
+ example: HuTx74BxAnezK1gWvYY7zg
434
+ type: string
560
435
  - content:
561
436
  application/json:
562
- required:
563
- - userId
564
- - count
565
- - includePromotedContent
566
- - withCommunity
567
- - withVoice
568
- - withV2Timeline
569
437
  schema:
570
438
  properties:
571
439
  count:
@@ -580,7 +448,7 @@ paths:
580
448
  default: '44196397'
581
449
  example: '44196397'
582
450
  type: string
583
- withCommunity:
451
+ withQuickPromoteEligibilityTweetFields:
584
452
  default: true
585
453
  example: true
586
454
  type: boolean
@@ -596,7 +464,7 @@ paths:
596
464
  - userId
597
465
  - count
598
466
  - includePromotedContent
599
- - withCommunity
467
+ - withQuickPromoteEligibilityTweetFields
600
468
  - withVoice
601
469
  - withV2Timeline
602
470
  type: object
@@ -605,26 +473,6 @@ paths:
605
473
  required: true
606
474
  - content:
607
475
  application/json:
608
- required:
609
- - blue_business_profile_image_shape_enabled
610
- - responsive_web_graphql_exclude_directive_enabled
611
- - verified_phone_label_enabled
612
- - responsive_web_graphql_timeline_navigation_enabled
613
- - responsive_web_graphql_skip_user_profile_image_extensions_enabled
614
- - tweetypie_unmention_optimization_enabled
615
- - vibe_api_enabled
616
- - responsive_web_edit_tweet_api_enabled
617
- - graphql_is_translatable_rweb_tweet_is_translatable_enabled
618
- - view_counts_everywhere_api_enabled
619
- - longform_notetweets_consumption_enabled
620
- - tweet_awards_web_tipping_enabled
621
- - freedom_of_speech_not_reach_fetch_enabled
622
- - standardized_nudges_misinfo
623
- - tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled
624
- - interactive_text_enabled
625
- - responsive_web_text_conversations_enabled
626
- - longform_notetweets_rich_text_read_enabled
627
- - responsive_web_enhance_cards_enabled
628
476
  schema:
629
477
  properties:
630
478
  blue_business_profile_image_shape_enabled:
@@ -761,53 +609,20 @@ paths:
761
609
  type: string
762
610
  tags:
763
611
  - tweet
764
- /graphql/YqiE3JL1KNgf9nSljYdxaA/UserMedia:
612
+ /graphql/{pathQueryId}/UserTweetsAndReplies:
765
613
  get:
766
- description: get user media tweets
767
- operationId: getUserMedia
614
+ description: get user replies tweets
615
+ operationId: getUserTweetsAndReplies
768
616
  parameters:
769
- - content:
770
- application/json:
771
- required:
772
- - Y
773
- - q
774
- - i
775
- - E
776
- - '3'
777
- - J
778
- - L
779
- - '1'
780
- - K
781
- - N
782
- - g
783
- - f
784
- - '9'
785
- - n
786
- - S
787
- - l
788
- - j
789
- - Y
790
- - d
791
- - x
792
- - a
793
- - A
794
- schema:
795
- default: YqiE3JL1KNgf9nSljYdxaA
796
- example: YqiE3JL1KNgf9nSljYdxaA
797
- type: string
798
- in: query
799
- name: queryId
617
+ - in: path
618
+ name: pathQueryId
800
619
  required: true
620
+ schema:
621
+ default: RIWc55YCNyUJ-U3HHGYkdg
622
+ example: RIWc55YCNyUJ-U3HHGYkdg
623
+ type: string
801
624
  - content:
802
625
  application/json:
803
- required:
804
- - userId
805
- - count
806
- - includePromotedContent
807
- - withClientEventToken
808
- - withBirdwatchNotes
809
- - withVoice
810
- - withV2Timeline
811
626
  schema:
812
627
  properties:
813
628
  count:
@@ -815,20 +630,16 @@ paths:
815
630
  example: 40
816
631
  type: integer
817
632
  includePromotedContent:
818
- default: false
819
- example: false
633
+ default: true
634
+ example: true
820
635
  type: boolean
821
636
  userId:
822
637
  default: '44196397'
823
638
  example: '44196397'
824
639
  type: string
825
- withBirdwatchNotes:
826
- default: false
827
- example: false
828
- type: boolean
829
- withClientEventToken:
830
- default: false
831
- example: false
640
+ withCommunity:
641
+ default: true
642
+ example: true
832
643
  type: boolean
833
644
  withV2Timeline:
834
645
  default: true
@@ -842,8 +653,7 @@ paths:
842
653
  - userId
843
654
  - count
844
655
  - includePromotedContent
845
- - withClientEventToken
846
- - withBirdwatchNotes
656
+ - withCommunity
847
657
  - withVoice
848
658
  - withV2Timeline
849
659
  type: object
@@ -852,26 +662,6 @@ paths:
852
662
  required: true
853
663
  - content:
854
664
  application/json:
855
- required:
856
- - blue_business_profile_image_shape_enabled
857
- - responsive_web_graphql_exclude_directive_enabled
858
- - verified_phone_label_enabled
859
- - responsive_web_graphql_timeline_navigation_enabled
860
- - responsive_web_graphql_skip_user_profile_image_extensions_enabled
861
- - tweetypie_unmention_optimization_enabled
862
- - vibe_api_enabled
863
- - responsive_web_edit_tweet_api_enabled
864
- - graphql_is_translatable_rweb_tweet_is_translatable_enabled
865
- - view_counts_everywhere_api_enabled
866
- - longform_notetweets_consumption_enabled
867
- - tweet_awards_web_tipping_enabled
868
- - freedom_of_speech_not_reach_fetch_enabled
869
- - standardized_nudges_misinfo
870
- - tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled
871
- - interactive_text_enabled
872
- - responsive_web_text_conversations_enabled
873
- - longform_notetweets_rich_text_read_enabled
874
- - responsive_web_enhance_cards_enabled
875
665
  schema:
876
666
  properties:
877
667
  blue_business_profile_image_shape_enabled:
@@ -0,0 +1,13 @@
1
+ components:
2
+ parameters:
3
+ queryId:
4
+ in: path
5
+ name: queryId
6
+ required: true
7
+ schema:
8
+ type: string
9
+ info:
10
+ title: Twitter OpenAPI
11
+ version: 0.0.1
12
+ openapi: 3.0.3
13
+ paths: {}
@@ -94,6 +94,45 @@ components:
94
94
  properties:
95
95
  __typename:
96
96
  $ref: ./typename.yaml#/components/schemas/TypeName
97
+ card:
98
+ properties:
99
+ legacy:
100
+ properties:
101
+ binding_values:
102
+ items:
103
+ properties:
104
+ key:
105
+ type: string
106
+ value:
107
+ properties:
108
+ boolean_value:
109
+ type: boolean
110
+ scribe_key:
111
+ type: string
112
+ string_value:
113
+ type: string
114
+ type:
115
+ type: string
116
+ required:
117
+ - type
118
+ type: object
119
+ required:
120
+ - key
121
+ - value
122
+ type: object
123
+ type: array
124
+ name:
125
+ type: string
126
+ url:
127
+ type: string
128
+ required:
129
+ - binding_values
130
+ - name
131
+ - url
132
+ type: object
133
+ rest_id:
134
+ type: string
135
+ type: object
97
136
  core:
98
137
  $ref: ./user.yaml#/components/schemas/UserResultCore
99
138
  edit_control:
@@ -195,6 +234,14 @@ components:
195
234
  type: boolean
196
235
  retweeted_status_result:
197
236
  $ref: ./content.yaml#/components/schemas/ItemResult
237
+ self_thread:
238
+ properties:
239
+ id_str:
240
+ pattern: ^[0-9]+$
241
+ type: string
242
+ required:
243
+ - id_str
244
+ type: object
198
245
  user_id_str:
199
246
  pattern: ^[0-9]+$
200
247
  type: string
@@ -241,6 +288,24 @@ components:
241
288
  - __typename
242
289
  - tweet
243
290
  Url:
291
+ properties:
292
+ display_url:
293
+ type: string
294
+ expanded_url:
295
+ format: uri
296
+ type: string
297
+ indices:
298
+ items:
299
+ type: integer
300
+ type: array
301
+ url:
302
+ format: uri
303
+ type: string
304
+ required:
305
+ - url
306
+ - indices
307
+ - expanded_url
308
+ - display_url
244
309
  type: object
245
310
  UserMention:
246
311
  type: object
@@ -4,7 +4,7 @@ info:
4
4
  version: 0.0.1
5
5
 
6
6
  paths:
7
- /graphql/{{queryId}}/Bookmarks:
7
+ /graphql/{pathQueryId}/Bookmarks:
8
8
  get:
9
9
  operationId: getBookmarks
10
10
  description: get bookmarks