twitter-openapi-typescript-generated 0.0.6 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (241) hide show
  1. package/.openapi-generator/FILES +18 -1
  2. package/README.md +2 -2
  3. package/dist/apis/DefaultApi.d.ts +0 -1
  4. package/dist/apis/DefaultApi.d.ts.map +1 -1
  5. package/dist/apis/DefaultApi.js +0 -6
  6. package/dist/apis/DefaultApi.js.map +1 -1
  7. package/dist/apis/TweetApi.d.ts +17 -12
  8. package/dist/apis/TweetApi.d.ts.map +1 -1
  9. package/dist/apis/TweetApi.js +90 -55
  10. package/dist/apis/TweetApi.js.map +1 -1
  11. package/dist/apis/UserApi.d.ts +27 -2
  12. package/dist/apis/UserApi.d.ts.map +1 -1
  13. package/dist/apis/UserApi.js +166 -6
  14. package/dist/apis/UserApi.js.map +1 -1
  15. package/dist/apis/UserListApi.d.ts +41 -3
  16. package/dist/apis/UserListApi.d.ts.map +1 -1
  17. package/dist/apis/UserListApi.js +255 -12
  18. package/dist/apis/UserListApi.js.map +1 -1
  19. package/dist/models/ContentItemType.d.ts +2 -0
  20. package/dist/models/ContentItemType.d.ts.map +1 -1
  21. package/dist/models/ContentItemType.js +3 -1
  22. package/dist/models/ContentItemType.js.map +1 -1
  23. package/dist/models/InstructionType.d.ts +3 -0
  24. package/dist/models/InstructionType.d.ts.map +1 -1
  25. package/dist/models/InstructionType.js +3 -0
  26. package/dist/models/InstructionType.js.map +1 -1
  27. package/dist/models/InstructionUnion.d.ts +9 -0
  28. package/dist/models/InstructionUnion.d.ts.map +1 -1
  29. package/dist/models/InstructionUnion.js +15 -0
  30. package/dist/models/InstructionUnion.js.map +1 -1
  31. package/dist/models/ItemContentUnion.d.ts +6 -0
  32. package/dist/models/ItemContentUnion.d.ts.map +1 -1
  33. package/dist/models/ItemContentUnion.js +10 -0
  34. package/dist/models/ItemContentUnion.js.map +1 -1
  35. package/dist/models/ListLatestTweetsTimelineResponse.d.ts +33 -0
  36. package/dist/models/ListLatestTweetsTimelineResponse.d.ts.map +1 -0
  37. package/dist/models/ListLatestTweetsTimelineResponse.js +52 -0
  38. package/dist/models/ListLatestTweetsTimelineResponse.js.map +1 -0
  39. package/dist/models/SearchByRawQuery.d.ts +33 -0
  40. package/dist/models/SearchByRawQuery.d.ts.map +1 -0
  41. package/dist/models/SearchByRawQuery.js +52 -0
  42. package/dist/models/SearchByRawQuery.js.map +1 -0
  43. package/dist/models/SearchTimeline.d.ts +33 -0
  44. package/dist/models/SearchTimeline.d.ts.map +1 -0
  45. package/dist/models/SearchTimeline.js +52 -0
  46. package/dist/models/SearchTimeline.js.map +1 -0
  47. package/dist/models/SearchTimelineData.d.ts +33 -0
  48. package/dist/models/SearchTimelineData.d.ts.map +1 -0
  49. package/dist/models/SearchTimelineData.js +52 -0
  50. package/dist/models/SearchTimelineData.js.map +1 -0
  51. package/dist/models/SearchTimelineResponse.d.ts +33 -0
  52. package/dist/models/SearchTimelineResponse.d.ts.map +1 -0
  53. package/dist/models/SearchTimelineResponse.js +52 -0
  54. package/dist/models/SearchTimelineResponse.js.map +1 -0
  55. package/dist/models/TimelineAddToModule.d.ts +52 -0
  56. package/dist/models/TimelineAddToModule.d.ts.map +1 -0
  57. package/dist/models/TimelineAddToModule.js +62 -0
  58. package/dist/models/TimelineAddToModule.js.map +1 -0
  59. package/dist/models/TimelineMessagePrompt.d.ts +33 -0
  60. package/dist/models/TimelineMessagePrompt.d.ts.map +1 -0
  61. package/dist/models/TimelineMessagePrompt.js +52 -0
  62. package/dist/models/TimelineMessagePrompt.js.map +1 -0
  63. package/dist/models/TimelinePrompt.d.ts +33 -0
  64. package/dist/models/TimelinePrompt.d.ts.map +1 -0
  65. package/dist/models/TimelinePrompt.js +52 -0
  66. package/dist/models/TimelinePrompt.js.map +1 -0
  67. package/dist/models/TimelineReplaceEntry.d.ts +46 -0
  68. package/dist/models/TimelineReplaceEntry.d.ts.map +1 -0
  69. package/dist/models/TimelineReplaceEntry.js +59 -0
  70. package/dist/models/TimelineReplaceEntry.js.map +1 -0
  71. package/dist/models/TimelineShowAlert.d.ts +97 -0
  72. package/dist/models/TimelineShowAlert.d.ts.map +1 -0
  73. package/dist/models/TimelineShowAlert.js +85 -0
  74. package/dist/models/TimelineShowAlert.js.map +1 -0
  75. package/dist/models/TimelineShowAlertRichText.d.ts +38 -0
  76. package/dist/models/TimelineShowAlertRichText.d.ts.map +1 -0
  77. package/dist/models/TimelineShowAlertRichText.js +53 -0
  78. package/dist/models/TimelineShowAlertRichText.js.map +1 -0
  79. package/dist/models/TweetFavoritersResponse.d.ts +33 -0
  80. package/dist/models/TweetFavoritersResponse.d.ts.map +1 -0
  81. package/dist/models/TweetFavoritersResponse.js +52 -0
  82. package/dist/models/TweetFavoritersResponse.js.map +1 -0
  83. package/dist/models/TweetFavoritersResponseData.d.ts +33 -0
  84. package/dist/models/TweetFavoritersResponseData.d.ts.map +1 -0
  85. package/dist/models/TweetFavoritersResponseData.js +52 -0
  86. package/dist/models/TweetFavoritersResponseData.js.map +1 -0
  87. package/dist/models/TweetLegacy.d.ts +7 -0
  88. package/dist/models/TweetLegacy.d.ts.map +1 -1
  89. package/dist/models/TweetLegacy.js +3 -0
  90. package/dist/models/TweetLegacy.js.map +1 -1
  91. package/dist/models/TweetLegacySelfThread.d.ts +32 -0
  92. package/dist/models/TweetLegacySelfThread.d.ts.map +1 -0
  93. package/dist/models/TweetLegacySelfThread.js +51 -0
  94. package/dist/models/TweetLegacySelfThread.js.map +1 -0
  95. package/dist/models/TweetRetweetersResponse.d.ts +33 -0
  96. package/dist/models/TweetRetweetersResponse.d.ts.map +1 -0
  97. package/dist/models/TweetRetweetersResponse.js +52 -0
  98. package/dist/models/TweetRetweetersResponse.js.map +1 -0
  99. package/dist/models/TweetRetweetersResponseData.d.ts +33 -0
  100. package/dist/models/TweetRetweetersResponseData.d.ts.map +1 -0
  101. package/dist/models/TweetRetweetersResponseData.js +52 -0
  102. package/dist/models/TweetRetweetersResponseData.js.map +1 -0
  103. package/dist/models/UsersResponse.d.ts +33 -0
  104. package/dist/models/UsersResponse.d.ts.map +1 -0
  105. package/dist/models/UsersResponse.js +52 -0
  106. package/dist/models/UsersResponse.js.map +1 -0
  107. package/dist/models/UsersResponseData.d.ts +33 -0
  108. package/dist/models/UsersResponseData.d.ts.map +1 -0
  109. package/dist/models/UsersResponseData.js +52 -0
  110. package/dist/models/UsersResponseData.js.map +1 -0
  111. package/dist/models/index.d.ts +18 -1
  112. package/dist/models/index.d.ts.map +1 -1
  113. package/dist/models/index.js +18 -1
  114. package/dist/models/index.js.map +1 -1
  115. package/package.json +3 -2
  116. package/src/apis/DefaultApi.ts +0 -9
  117. package/src/apis/TweetApi.ts +102 -87
  118. package/src/apis/UserApi.ts +171 -9
  119. package/src/apis/UserListApi.ts +267 -18
  120. package/src/models/ContentItemType.ts +3 -1
  121. package/src/models/InstructionType.ts +3 -0
  122. package/src/models/InstructionUnion.ts +34 -1
  123. package/src/models/ItemContentUnion.ts +23 -1
  124. package/src/models/{ListTweetsTimelineResponse.ts → ListLatestTweetsTimelineResponse.ts} +9 -9
  125. package/src/models/SearchByRawQuery.ts +73 -0
  126. package/src/models/SearchTimeline.ts +73 -0
  127. package/src/models/SearchTimelineData.ts +73 -0
  128. package/src/models/SearchTimelineResponse.ts +73 -0
  129. package/src/models/TimelineAddToModule.ts +105 -0
  130. package/src/models/TimelineMessagePrompt.ts +72 -0
  131. package/src/models/TimelinePrompt.ts +72 -0
  132. package/src/models/TimelineReplaceEntry.ts +97 -0
  133. package/src/models/TimelineShowAlert.ts +169 -0
  134. package/src/models/TimelineShowAlertRichText.ts +73 -0
  135. package/src/models/TweetFavoritersResponse.ts +73 -0
  136. package/src/models/TweetFavoritersResponseData.ts +73 -0
  137. package/src/models/TweetLegacy.ts +14 -0
  138. package/src/models/TweetLegacySelfThread.ts +66 -0
  139. package/src/models/TweetRetweetersResponse.ts +73 -0
  140. package/src/models/TweetRetweetersResponseData.ts +73 -0
  141. package/src/models/UsersResponse.ts +73 -0
  142. package/src/models/UsersResponseData.ts +73 -0
  143. package/src/models/index.ts +18 -1
  144. package/tools/openapi-generator-config.yaml +2 -2
  145. package/tools/win/replace.py +1 -1
  146. package/twitter-openapi/dist/{test → compatible}/openapi-3.0.yaml +12 -0
  147. package/twitter-openapi/dist/{typescript → compatible}/paths/bookmarks.yaml +0 -7
  148. package/twitter-openapi/dist/{dart → compatible}/paths/follow.yaml +82 -63
  149. package/twitter-openapi/dist/{test → compatible}/paths/profile.yaml +0 -7
  150. package/twitter-openapi/dist/{dart → compatible}/paths/timeline.yaml +118 -111
  151. package/twitter-openapi/dist/compatible/paths/tweet.yaml +297 -0
  152. package/twitter-openapi/dist/compatible/paths/user.yaml +227 -0
  153. package/twitter-openapi/dist/{test → compatible}/paths/usertweets.yaml +0 -28
  154. package/twitter-openapi/dist/{typescript → compatible}/schemas/content.yaml +14 -0
  155. package/twitter-openapi/dist/compatible/schemas/instruction.yaml +160 -0
  156. package/twitter-openapi/dist/{dart → compatible}/schemas/tweet.yaml +8 -0
  157. package/twitter-openapi/dist/docs/openapi-3.0.yaml +12 -0
  158. package/twitter-openapi/dist/docs/paths/bookmarks.yaml +0 -56
  159. package/twitter-openapi/dist/docs/paths/follow.yaml +193 -112
  160. package/twitter-openapi/dist/docs/paths/profile.yaml +0 -35
  161. package/twitter-openapi/dist/docs/paths/timeline.yaml +225 -173
  162. package/twitter-openapi/dist/docs/paths/tweet.yaml +382 -61
  163. package/twitter-openapi/dist/docs/paths/user.yaml +214 -41
  164. package/twitter-openapi/dist/docs/paths/usertweets.yaml +0 -238
  165. package/twitter-openapi/dist/docs/schemas/content.yaml +14 -0
  166. package/twitter-openapi/dist/docs/schemas/instruction.yaml +77 -0
  167. package/twitter-openapi/dist/docs/schemas/tweet.yaml +8 -0
  168. package/twitter-openapi/src/config/placeholder.json +155 -0
  169. package/twitter-openapi/src/openapi/paths/follow.yaml +14 -0
  170. package/twitter-openapi/src/openapi/paths/timeline.yaml +44 -2
  171. package/twitter-openapi/src/openapi/paths/tweet.yaml +56 -0
  172. package/twitter-openapi/src/openapi/paths/user.yaml +44 -0
  173. package/twitter-openapi/src/openapi/schemas/content.yaml +23 -1
  174. package/twitter-openapi/src/openapi/schemas/instruction.yaml +78 -0
  175. package/twitter-openapi/src/openapi/schemas/tweet.yaml +8 -0
  176. package/twitter-openapi/tools/__pycache__/build_config.cpython-310.pyc +0 -0
  177. package/twitter-openapi/tools/__pycache__/hooks.cpython-310.pyc +0 -0
  178. package/twitter-openapi/tools/build_config.py +67 -190
  179. package/twitter-openapi/tools/hooks.py +28 -7
  180. package/dist/models/ListTweetsTimelineResponse.d.ts +0 -33
  181. package/dist/models/ListTweetsTimelineResponse.d.ts.map +0 -1
  182. package/dist/models/ListTweetsTimelineResponse.js +0 -52
  183. package/dist/models/ListTweetsTimelineResponse.js.map +0 -1
  184. package/twitter-openapi/dist/dart/openapi-3.0.yaml +0 -117
  185. package/twitter-openapi/dist/dart/paths/bookmarks.yaml +0 -141
  186. package/twitter-openapi/dist/dart/paths/post.yaml +0 -876
  187. package/twitter-openapi/dist/dart/paths/profile.yaml +0 -159
  188. package/twitter-openapi/dist/dart/paths/tweet.yaml +0 -141
  189. package/twitter-openapi/dist/dart/paths/user.yaml +0 -119
  190. package/twitter-openapi/dist/dart/paths/usertweets.yaml +0 -512
  191. package/twitter-openapi/dist/dart/paths/v1.1-get.yaml +0 -300
  192. package/twitter-openapi/dist/dart/paths/v1.1-post.yaml +0 -295
  193. package/twitter-openapi/dist/dart/paths/v2.0-get.yaml +0 -331
  194. package/twitter-openapi/dist/dart/schemas/content.yaml +0 -181
  195. package/twitter-openapi/dist/dart/schemas/instruction.yaml +0 -83
  196. package/twitter-openapi/dist/test/paths/bookmarks.yaml +0 -112
  197. package/twitter-openapi/dist/test/paths/follow.yaml +0 -218
  198. package/twitter-openapi/dist/test/paths/other.yaml +0 -96
  199. package/twitter-openapi/dist/test/paths/post.yaml +0 -527
  200. package/twitter-openapi/dist/test/paths/timeline.yaml +0 -314
  201. package/twitter-openapi/dist/test/paths/tweet.yaml +0 -112
  202. package/twitter-openapi/dist/test/paths/user.yaml +0 -90
  203. package/twitter-openapi/dist/test/paths/v1.1-get.yaml +0 -242
  204. package/twitter-openapi/dist/test/paths/v1.1-post.yaml +0 -277
  205. package/twitter-openapi/dist/test/paths/v2.0-get.yaml +0 -302
  206. package/twitter-openapi/dist/test/resources/parameters.yaml +0 -13
  207. package/twitter-openapi/dist/test/response/error.yaml +0 -90
  208. package/twitter-openapi/dist/test/schemas/content.yaml +0 -181
  209. package/twitter-openapi/dist/test/schemas/general.yaml +0 -13
  210. package/twitter-openapi/dist/test/schemas/instruction.yaml +0 -83
  211. package/twitter-openapi/dist/test/schemas/timeline.yaml +0 -25
  212. package/twitter-openapi/dist/test/schemas/tweet.yaml +0 -308
  213. package/twitter-openapi/dist/test/schemas/typename.yaml +0 -19
  214. package/twitter-openapi/dist/test/schemas/user.yaml +0 -206
  215. package/twitter-openapi/dist/typescript/openapi-3.0.yaml +0 -141
  216. package/twitter-openapi/dist/typescript/paths/follow.yaml +0 -218
  217. package/twitter-openapi/dist/typescript/paths/other.yaml +0 -96
  218. package/twitter-openapi/dist/typescript/paths/profile.yaml +0 -130
  219. package/twitter-openapi/dist/typescript/paths/timeline.yaml +0 -314
  220. package/twitter-openapi/dist/typescript/paths/tweet.yaml +0 -112
  221. package/twitter-openapi/dist/typescript/paths/user.yaml +0 -90
  222. package/twitter-openapi/dist/typescript/paths/usertweets.yaml +0 -396
  223. package/twitter-openapi/dist/typescript/resources/parameters.yaml +0 -13
  224. package/twitter-openapi/dist/typescript/response/error.yaml +0 -90
  225. package/twitter-openapi/dist/typescript/schemas/general.yaml +0 -13
  226. package/twitter-openapi/dist/typescript/schemas/instruction.yaml +0 -83
  227. package/twitter-openapi/dist/typescript/schemas/timeline.yaml +0 -25
  228. package/twitter-openapi/dist/typescript/schemas/tweet.yaml +0 -308
  229. package/twitter-openapi/dist/typescript/schemas/typename.yaml +0 -19
  230. package/twitter-openapi/dist/typescript/schemas/user.yaml +0 -206
  231. /package/twitter-openapi/dist/{dart → compatible}/paths/other.yaml +0 -0
  232. /package/twitter-openapi/dist/{typescript → compatible}/paths/post.yaml +0 -0
  233. /package/twitter-openapi/dist/{typescript → compatible}/paths/v1.1-get.yaml +0 -0
  234. /package/twitter-openapi/dist/{typescript → compatible}/paths/v1.1-post.yaml +0 -0
  235. /package/twitter-openapi/dist/{typescript → compatible}/paths/v2.0-get.yaml +0 -0
  236. /package/twitter-openapi/dist/{dart → compatible}/resources/parameters.yaml +0 -0
  237. /package/twitter-openapi/dist/{dart → compatible}/response/error.yaml +0 -0
  238. /package/twitter-openapi/dist/{dart → compatible}/schemas/general.yaml +0 -0
  239. /package/twitter-openapi/dist/{dart → compatible}/schemas/timeline.yaml +0 -0
  240. /package/twitter-openapi/dist/{dart → compatible}/schemas/typename.yaml +0 -0
  241. /package/twitter-openapi/dist/{dart → compatible}/schemas/user.yaml +0 -0
@@ -3,22 +3,31 @@ components:
3
3
  InstructionType:
4
4
  enum:
5
5
  - TimelineAddEntries
6
+ - TimelineAddToModule
6
7
  - TimelineClearCache
7
8
  - TimelinePinEntry
9
+ - TimelineReplaceEntry
10
+ - TimelineShowAlert
8
11
  - TimelineTerminateTimeline
9
12
  type: string
10
13
  InstructionUnion:
11
14
  discriminator:
12
15
  mapping":
13
16
  TimelineAddEntries: '#/components/schemas/TimelineAddEntries'
17
+ TimelineAddToModule: '#/components/schemas/TimelineAddToModule'
14
18
  TimelineClearCache: '#/components/schemas/TimelineClearCache'
15
19
  TimelinePinEntry: '#/components/schemas/TimelinePinEntry'
20
+ TimelineReplaceEntry: '#/components/schemas/TimelineReplaceEntry'
21
+ TimelineShowAlert: '#/components/schemas/TimelineShowAlert'
16
22
  TimelineTerminateTimeline: '#/components/schemas/TimelineTerminateTimeline'
17
23
  propertyName: type
18
24
  oneOf:
19
25
  - $ref: '#/components/schemas/TimelineAddEntries'
26
+ - $ref: '#/components/schemas/TimelineAddToModule'
20
27
  - $ref: '#/components/schemas/TimelineClearCache'
21
28
  - $ref: '#/components/schemas/TimelinePinEntry'
29
+ - $ref: '#/components/schemas/TimelineReplaceEntry'
30
+ - $ref: '#/components/schemas/TimelineShowAlert'
22
31
  - $ref: '#/components/schemas/TimelineTerminateTimeline'
23
32
  TimelineAddEntries:
24
33
  properties:
@@ -46,6 +55,23 @@ components:
46
55
  - content
47
56
  - entryId
48
57
  - sortIndex
58
+ TimelineAddToModule:
59
+ properties:
60
+ moduleEntryId:
61
+ type: string
62
+ moduleItems:
63
+ items:
64
+ $ref: ./content.yaml#/components/schemas/ModuleItem
65
+ type: array
66
+ prepend:
67
+ type: boolean
68
+ type:
69
+ $ref: '#/components/schemas/InstructionType'
70
+ type: string
71
+ required:
72
+ - type
73
+ - moduleItems
74
+ - moduleEntryId
49
75
  TimelineClearCache:
50
76
  properties:
51
77
  type:
@@ -63,6 +89,57 @@ components:
63
89
  required:
64
90
  - type
65
91
  - entry
92
+ TimelineReplaceEntry:
93
+ properties:
94
+ entry:
95
+ $ref: '#/components/schemas/TimelineAddEntry'
96
+ entry_id_to_replace:
97
+ type: string
98
+ type:
99
+ $ref: '#/components/schemas/InstructionType'
100
+ type: string
101
+ required:
102
+ - type
103
+ - entry_id_to_replace
104
+ - entry
105
+ TimelineShowAlert:
106
+ properties:
107
+ alertType:
108
+ enum:
109
+ - NewTweets
110
+ type: string
111
+ colorConfig:
112
+ type: object
113
+ displayDurationMs:
114
+ type: integer
115
+ displayLocation:
116
+ enum:
117
+ - Top
118
+ type: string
119
+ iconDisplayInfo:
120
+ type: object
121
+ richText:
122
+ properties:
123
+ entities:
124
+ items:
125
+ type: object
126
+ type: array
127
+ text:
128
+ type: string
129
+ type: object
130
+ triggerDelayMs:
131
+ type: integer
132
+ type:
133
+ $ref: '#/components/schemas/InstructionType'
134
+ type: string
135
+ usersResults:
136
+ items:
137
+ $ref: ./user.yaml#/components/schemas/UserResults
138
+ type: array
139
+ required:
140
+ - type
141
+ - usersResults
142
+ - richText
66
143
  TimelineTerminateTimeline:
67
144
  properties:
68
145
  direction:
@@ -234,6 +234,14 @@ components:
234
234
  type: boolean
235
235
  retweeted_status_result:
236
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
237
245
  user_id_str:
238
246
  pattern: ^[0-9]+$
239
247
  type: string
@@ -102,6 +102,34 @@
102
102
  "responsive_web_graphql_timeline_navigation_enabled": true
103
103
  }
104
104
  },
105
+ "UserByRestId": {
106
+ "queryId": "Lxg1V9AiIzzXEiP2c8dRnw",
107
+ "variables": {
108
+ "userId": "44196397",
109
+ "withSafetyModeUserFields": true
110
+ },
111
+ "features": {
112
+ "hidden_profile_likes_enabled": false,
113
+ "responsive_web_graphql_exclude_directive_enabled": true,
114
+ "verified_phone_label_enabled": false,
115
+ "highlights_tweets_tab_ui_enabled": true,
116
+ "creator_subscriptions_tweet_preview_api_enabled": true,
117
+ "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false,
118
+ "responsive_web_graphql_timeline_navigation_enabled":true
119
+ }
120
+ },
121
+ "UsersByRestIds": {
122
+ "queryId": "GD4q8bBE2i6cqWw2iT74Gg",
123
+ "variables": {
124
+ "userIds": ["44196397"]
125
+ },
126
+ "features": {
127
+ "responsive_web_graphql_exclude_directive_enabled": true,
128
+ "verified_phone_label_enabled": false,
129
+ "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false,
130
+ "responsive_web_graphql_timeline_navigation_enabled": true
131
+ }
132
+ },
105
133
  "ProfileSpotlightsQuery": {
106
134
  "queryId": "9zwVLJ48lmVUk8u_Gh9DmA",
107
135
  "variables": {
@@ -302,6 +330,100 @@
302
330
  "responsive_web_enhance_cards_enabled": false
303
331
  }
304
332
  },
333
+ "SearchTimeline": {
334
+ "queryId": "L1VfBERtzc3VkBBT0YAYHA",
335
+ "variables": {
336
+ "rawQuery": "elonmusk",
337
+ "count": 20,
338
+ "querySource": "typed_query",
339
+ "product": "Top"
340
+ },
341
+ "features": {
342
+ "rweb_lists_timeline_redesign_enabled": true,
343
+ "responsive_web_graphql_exclude_directive_enabled": true,
344
+ "verified_phone_label_enabled": false,
345
+ "creator_subscriptions_tweet_preview_api_enabled": true,
346
+ "responsive_web_graphql_timeline_navigation_enabled": true,
347
+ "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false,
348
+ "tweetypie_unmention_optimization_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
+ "responsive_web_twitter_article_tweet_consumption_enabled": false,
354
+ "tweet_awards_web_tipping_enabled": false,
355
+ "freedom_of_speech_not_reach_fetch_enabled": true,
356
+ "standardized_nudges_misinfo": true,
357
+ "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true,
358
+ "longform_notetweets_rich_text_read_enabled": true,
359
+ "longform_notetweets_inline_media_enabled": true,
360
+ "responsive_web_media_download_video_enabled": false,
361
+ "responsive_web_enhance_cards_enabled": false
362
+ },
363
+ "fieldToggles": {
364
+ "withArticleRichContentState": false
365
+ }
366
+ },
367
+ "Favoriters": {
368
+ "queryId": "rUyh8HWk8IXv_fvVKj3QjA",
369
+ "variables": {
370
+ "tweetId": "1349129669258448897",
371
+ "count": 20,
372
+ "includePromotedContent": true
373
+ },
374
+ "features": {
375
+ "rweb_lists_timeline_redesign_enabled": true,
376
+ "responsive_web_graphql_exclude_directive_enabled": true,
377
+ "verified_phone_label_enabled": false,
378
+ "creator_subscriptions_tweet_preview_api_enabled": true,
379
+ "responsive_web_graphql_timeline_navigation_enabled": true,
380
+ "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false,
381
+ "tweetypie_unmention_optimization_enabled": true,
382
+ "responsive_web_edit_tweet_api_enabled": true,
383
+ "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true,
384
+ "view_counts_everywhere_api_enabled": true,
385
+ "longform_notetweets_consumption_enabled": true,
386
+ "responsive_web_twitter_article_tweet_consumption_enabled": false,
387
+ "tweet_awards_web_tipping_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": true,
391
+ "longform_notetweets_rich_text_read_enabled": true,
392
+ "longform_notetweets_inline_media_enabled": true,
393
+ "responsive_web_media_download_video_enabled": false,
394
+ "responsive_web_enhance_cards_enabled": false
395
+ }
396
+ },
397
+ "Retweeters": {
398
+ "queryId": "Gnw_Swm60cS-biSLn2OWNw",
399
+ "variables": {
400
+ "tweetId": "1349129669258448897",
401
+ "count": 20,
402
+ "includePromotedContent": true
403
+ },
404
+ "features": {
405
+ "rweb_lists_timeline_redesign_enabled": true,
406
+ "responsive_web_graphql_exclude_directive_enabled": true,
407
+ "verified_phone_label_enabled": false,
408
+ "creator_subscriptions_tweet_preview_api_enabled": true,
409
+ "responsive_web_graphql_timeline_navigation_enabled": true,
410
+ "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false,
411
+ "tweetypie_unmention_optimization_enabled": true,
412
+ "responsive_web_edit_tweet_api_enabled": true,
413
+ "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true,
414
+ "view_counts_everywhere_api_enabled": true,
415
+ "longform_notetweets_consumption_enabled": true,
416
+ "responsive_web_twitter_article_tweet_consumption_enabled": false,
417
+ "tweet_awards_web_tipping_enabled": false,
418
+ "freedom_of_speech_not_reach_fetch_enabled": true,
419
+ "standardized_nudges_misinfo": true,
420
+ "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true,
421
+ "longform_notetweets_rich_text_read_enabled": true,
422
+ "longform_notetweets_inline_media_enabled": true,
423
+ "responsive_web_media_download_video_enabled": false,
424
+ "responsive_web_enhance_cards_enabled": false
425
+ }
426
+ },
305
427
  "Followers": {
306
428
  "queryId": "djdTXDIk2qhd4OStqlUFeQ",
307
429
  "variables": {
@@ -360,6 +482,39 @@
360
482
  "responsive_web_enhance_cards_enabled": false
361
483
  }
362
484
  },
485
+ "FollowersYouKnow": {
486
+ "queryId": "W9Iz6TVLymzCWjG2uOFKZg",
487
+ "variables": {
488
+ "userId": "44196397",
489
+ "count": 20,
490
+ "includePromotedContent": false
491
+ },
492
+ "features": {
493
+ "rweb_lists_timeline_redesign_enabled": true,
494
+ "responsive_web_graphql_exclude_directive_enabled": true,
495
+ "verified_phone_label_enabled": false,
496
+ "creator_subscriptions_tweet_preview_api_enabled": true,
497
+ "responsive_web_graphql_timeline_navigation_enabled": true,
498
+ "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false,
499
+ "tweetypie_unmention_optimization_enabled": true,
500
+ "responsive_web_edit_tweet_api_enabled": true,
501
+ "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true,
502
+ "view_counts_everywhere_api_enabled": true,
503
+ "longform_notetweets_consumption_enabled": true,
504
+ "responsive_web_twitter_article_tweet_consumption_enabled": false,
505
+ "tweet_awards_web_tipping_enabled": false,
506
+ "freedom_of_speech_not_reach_fetch_enabled": true,
507
+ "standardized_nudges_misinfo": true,
508
+ "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true,
509
+ "longform_notetweets_rich_text_read_enabled": true,
510
+ "longform_notetweets_inline_media_enabled": true,
511
+ "responsive_web_media_download_video_enabled": false,
512
+ "responsive_web_enhance_cards_enabled": false
513
+ },
514
+ "fieldToggles": {
515
+ "withArticleRichContentState": false
516
+ }
517
+ },
363
518
  "CreateTweet": {
364
519
  "queryId": "1RyAhNwby-gzGCRVsMxKbQ",
365
520
  "variables": {
@@ -32,6 +32,20 @@ paths:
32
32
  tags:
33
33
  - "user-list"
34
34
 
35
+ /graphql/{pathQueryId}/FollowersYouKnow:
36
+ get:
37
+ operationId: getFollowersYouKnow
38
+ description: "get followers you know"
39
+ responses:
40
+ "200":
41
+ description: Successful operation
42
+ content:
43
+ application/json:
44
+ schema:
45
+ $ref: "#/components/schemas/FollowResponse"
46
+ tags:
47
+ - "user-list"
48
+
35
49
  components:
36
50
  schemas:
37
51
  FollowResponse:
@@ -42,7 +42,21 @@ paths:
42
42
  content:
43
43
  application/json:
44
44
  schema:
45
- $ref: "#/components/schemas/ListTweetsTimelineResponse"
45
+ $ref: "#/components/schemas/ListLatestTweetsTimelineResponse"
46
+ tags:
47
+ - "tweet"
48
+
49
+ /graphql/{pathQueryId}/SearchTimeline:
50
+ get:
51
+ operationId: getSearchTimeline
52
+ description: search tweet list. product:[Top, Latest, People, Photos, Videos]
53
+ responses:
54
+ "200":
55
+ description: Successful operation
56
+ content:
57
+ application/json:
58
+ schema:
59
+ $ref: "#/components/schemas/SearchTimelineResponse"
46
60
  tags:
47
61
  - "tweet"
48
62
 
@@ -69,7 +83,7 @@ components:
69
83
  home_timeline_urt:
70
84
  $ref: "./../schemas/timeline.yaml#/components/schemas/Timeline"
71
85
 
72
- ListTweetsTimelineResponse:
86
+ ListLatestTweetsTimelineResponse:
73
87
  required:
74
88
  - "data"
75
89
  properties:
@@ -96,3 +110,31 @@ components:
96
110
  properties:
97
111
  timeline:
98
112
  $ref: "./../schemas/timeline.yaml#/components/schemas/Timeline"
113
+
114
+ SearchTimelineResponse:
115
+ required:
116
+ - "data"
117
+ properties:
118
+ data:
119
+ $ref: "#/components/schemas/SearchTimelineData"
120
+
121
+ SearchTimelineData:
122
+ required:
123
+ - "search_by_raw_query"
124
+ properties:
125
+ search_by_raw_query:
126
+ $ref: "#/components/schemas/SearchByRawQuery"
127
+
128
+ SearchByRawQuery:
129
+ required:
130
+ - "search_timeline"
131
+ properties:
132
+ search_timeline:
133
+ $ref: "#/components/schemas/SearchTimeline"
134
+
135
+ SearchTimeline:
136
+ required:
137
+ - "timeline"
138
+ properties:
139
+ timeline:
140
+ $ref: "./../schemas/timeline.yaml#/components/schemas/Timeline"
@@ -18,6 +18,34 @@ paths:
18
18
  tags:
19
19
  - "tweet"
20
20
 
21
+ /graphql/{pathQueryId}/Favoriters:
22
+ get:
23
+ operationId: getTweetFavoriters
24
+ description: get tweet favoriters
25
+ responses:
26
+ "200":
27
+ description: Successful operation
28
+ content:
29
+ application/json:
30
+ schema:
31
+ $ref: "#/components/schemas/TweetFavoritersResponse"
32
+ tags:
33
+ - "user-list"
34
+
35
+ /graphql/{pathQueryId}/Retweeters:
36
+ get:
37
+ operationId: getTweetRetweeters
38
+ description: get tweet retweeters
39
+ responses:
40
+ "200":
41
+ description: Successful operation
42
+ content:
43
+ application/json:
44
+ schema:
45
+ $ref: "#/components/schemas/TweetRetweetersResponse"
46
+ tags:
47
+ - "user-list"
48
+
21
49
  components:
22
50
  schemas:
23
51
  TweetDetailResponse:
@@ -33,3 +61,31 @@ components:
33
61
  properties:
34
62
  threaded_conversation_with_injections_v2:
35
63
  $ref: "./../schemas/timeline.yaml#/components/schemas/Timeline"
64
+
65
+ TweetFavoritersResponse:
66
+ required:
67
+ - "data"
68
+ properties:
69
+ data:
70
+ $ref: "#/components/schemas/TweetFavoritersResponseData"
71
+
72
+ TweetFavoritersResponseData:
73
+ required:
74
+ - "favoriters_timeline"
75
+ properties:
76
+ favoriters_timeline:
77
+ $ref: "./../schemas/timeline.yaml#/components/schemas/TimelineV2"
78
+
79
+ TweetRetweetersResponse:
80
+ required:
81
+ - "data"
82
+ properties:
83
+ data:
84
+ $ref: "#/components/schemas/TweetRetweetersResponseData"
85
+
86
+ TweetRetweetersResponseData:
87
+ required:
88
+ - "retweeters_timeline"
89
+ properties:
90
+ retweeters_timeline:
91
+ $ref: "./../schemas/timeline.yaml#/components/schemas/TimelineV2"
@@ -18,6 +18,34 @@ paths:
18
18
  tags:
19
19
  - "user"
20
20
 
21
+ /graphql/{pathQueryId}/UserByRestId:
22
+ get:
23
+ operationId: getUserByRestId
24
+ description: "get user by rest id"
25
+ responses:
26
+ "200":
27
+ description: Successful operation
28
+ content:
29
+ application/json:
30
+ schema:
31
+ $ref: "#/components/schemas/UserResponse"
32
+ tags:
33
+ - "user"
34
+
35
+ /graphql/{pathQueryId}/UsersByRestIds:
36
+ get:
37
+ operationId: getUsersByRestIds
38
+ description: "get users by rest ids"
39
+ responses:
40
+ "200":
41
+ description: Successful operation
42
+ content:
43
+ application/json:
44
+ schema:
45
+ $ref: "#/components/schemas/UsersResponse"
46
+ tags:
47
+ - "user"
48
+
21
49
  components:
22
50
  schemas:
23
51
  UserResponse:
@@ -33,3 +61,19 @@ components:
33
61
  properties:
34
62
  user:
35
63
  $ref: "./../schemas/user.yaml#/components/schemas/UserResults"
64
+
65
+ UsersResponse:
66
+ required:
67
+ - "data"
68
+ properties:
69
+ data:
70
+ $ref: "#/components/schemas/UsersResponseData"
71
+
72
+ UsersResponseData:
73
+ required:
74
+ - "users"
75
+ properties:
76
+ users:
77
+ type: array
78
+ items:
79
+ $ref: "./../schemas/user.yaml#/components/schemas/UserResults"
@@ -118,16 +118,28 @@ components:
118
118
  - $ref: "#/components/schemas/TimelineTweet"
119
119
  - $ref: "#/components/schemas/TimelineTimelineCursor"
120
120
  - $ref: "#/components/schemas/TimelineUser"
121
+ - $ref: "#/components/schemas/TimelinePrompt"
122
+ - $ref: "#/components/schemas/TimelineMessagePrompt"
123
+
121
124
  discriminator:
122
125
  propertyName: itemType
123
126
  mapping": # deprecated
124
127
  TimelineTweet: "#/components/schemas/TimelineTweet"
125
128
  TimelineTimelineCursor: "#/components/schemas/TimelineTimelineCursor"
126
129
  TimelineUser: "#/components/schemas/TimelineUser"
130
+ TimelinePrompt: "#/components/schemas/TimelinePrompt"
131
+ TimelineMessagePrompt: "#/components/schemas/TimelineMessagePrompt"
127
132
 
128
133
  ContentItemType:
129
134
  type: string
130
- enum: [TimelineTweet, TimelineTimelineCursor, TimelineUser]
135
+ enum:
136
+ [
137
+ TimelineTweet,
138
+ TimelineTimelineCursor,
139
+ TimelineUser,
140
+ TimelinePrompt,
141
+ TimelineMessagePrompt,
142
+ ]
131
143
 
132
144
  TimelineTweet:
133
145
  required:
@@ -188,3 +200,13 @@ components:
188
200
  type: string
189
201
  type:
190
202
  type: string # enum
203
+
204
+ TimelinePrompt: # todo
205
+ properties:
206
+ __typename:
207
+ $ref: "./typename.yaml#/components/schemas/TypeName" # TimelinePrompt
208
+
209
+ TimelineMessagePrompt: # todo
210
+ properties:
211
+ __typename:
212
+ $ref: "./typename.yaml#/components/schemas/TypeName" # TimelineMessagePrompt
@@ -9,15 +9,21 @@ components:
9
9
  InstructionUnion:
10
10
  oneOf:
11
11
  - $ref: "#/components/schemas/TimelineAddEntries"
12
+ - $ref: "#/components/schemas/TimelineAddToModule"
12
13
  - $ref: "#/components/schemas/TimelineClearCache"
13
14
  - $ref: "#/components/schemas/TimelinePinEntry"
15
+ - $ref: "#/components/schemas/TimelineReplaceEntry"
16
+ - $ref: "#/components/schemas/TimelineShowAlert"
14
17
  - $ref: "#/components/schemas/TimelineTerminateTimeline"
15
18
  discriminator:
16
19
  propertyName: type
17
20
  mapping": # deprecated
18
21
  TimelineAddEntries: "#/components/schemas/TimelineAddEntries"
22
+ TimelineAddToModule: "#/components/schemas/TimelineAddToModule"
19
23
  TimelineClearCache: "#/components/schemas/TimelineClearCache"
20
24
  TimelinePinEntry: "#/components/schemas/TimelinePinEntry"
25
+ TimelineReplaceEntry: "#/components/schemas/TimelineReplaceEntry"
26
+ TimelineShowAlert: "#/components/schemas/TimelineShowAlert"
21
27
  TimelineTerminateTimeline: "#/components/schemas/TimelineTerminateTimeline"
22
28
 
23
29
  InstructionType:
@@ -25,8 +31,11 @@ components:
25
31
  enum:
26
32
  [
27
33
  TimelineAddEntries,
34
+ TimelineAddToModule,
28
35
  TimelineClearCache,
29
36
  TimelinePinEntry,
37
+ TimelineReplaceEntry,
38
+ TimelineShowAlert,
30
39
  TimelineTerminateTimeline,
31
40
  ]
32
41
 
@@ -43,6 +52,24 @@ components:
43
52
  items:
44
53
  $ref: "#/components/schemas/TimelineAddEntry"
45
54
 
55
+ TimelineAddToModule:
56
+ required:
57
+ - type
58
+ - moduleItems
59
+ - moduleEntryId
60
+ properties:
61
+ type:
62
+ type: string
63
+ $ref: "#/components/schemas/InstructionType" # TimelineAddToModule
64
+ moduleItems:
65
+ type: array
66
+ items:
67
+ $ref: "./content.yaml#/components/schemas/ModuleItem"
68
+ moduleEntryId:
69
+ type: string
70
+ prepend:
71
+ type: boolean
72
+
46
73
  TimelineClearCache:
47
74
  required:
48
75
  - type
@@ -62,6 +89,57 @@ components:
62
89
  entry:
63
90
  $ref: "#/components/schemas/TimelineAddEntry"
64
91
 
92
+ TimelineReplaceEntry:
93
+ required:
94
+ - type
95
+ - entry_id_to_replace
96
+ - entry
97
+ properties:
98
+ type:
99
+ type: string
100
+ $ref: "#/components/schemas/InstructionType" # TimelineReplaceEntry
101
+ entry_id_to_replace:
102
+ type: string
103
+ entry:
104
+ $ref: "#/components/schemas/TimelineAddEntry"
105
+
106
+ TimelineShowAlert:
107
+ required:
108
+ - type
109
+ - usersResults
110
+ - richText
111
+ properties:
112
+ type:
113
+ type: string
114
+ $ref: "#/components/schemas/InstructionType" # TimelineShowAlert
115
+ alertType:
116
+ type: string
117
+ enum: [NewTweets] # which else?
118
+ triggerDelayMs:
119
+ type: integer
120
+ displayDurationMs:
121
+ type: integer
122
+ usersResults:
123
+ type: array
124
+ items:
125
+ $ref: "./user.yaml#/components/schemas/UserResults"
126
+ richText:
127
+ type: object
128
+ properties:
129
+ text:
130
+ type: string
131
+ entities:
132
+ type: array
133
+ items:
134
+ type: object # todo
135
+ iconDisplayInfo:
136
+ type: object # todo
137
+ colorConfig:
138
+ type: object # todo
139
+ displayLocation:
140
+ type: string
141
+ enum: [Top] # which else?
142
+
65
143
  TimelineTerminateTimeline:
66
144
  required:
67
145
  - type
@@ -200,6 +200,14 @@ components:
200
200
  id_str:
201
201
  type: string
202
202
  pattern: "^[0-9]+$"
203
+ self_thread:
204
+ type: object
205
+ required:
206
+ - "id_str"
207
+ properties:
208
+ id_str:
209
+ type: string
210
+ pattern: "^[0-9]+$"
203
211
  extended_entities:
204
212
  $ref: "#/components/schemas/ExtendedEntities"
205
213