twitter-openapi-typescript-generated 0.0.8 → 0.0.9

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 (364) hide show
  1. package/.openapi-generator/FILES +34 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +2 -2
  4. package/dist/apis/DefaultApi.d.ts +3 -3
  5. package/dist/apis/DefaultApi.d.ts.map +1 -1
  6. package/dist/apis/DefaultApi.js +1 -1
  7. package/dist/apis/DefaultApi.js.map +1 -1
  8. package/dist/apis/OtherApi.d.ts +3 -3
  9. package/dist/apis/OtherApi.d.ts.map +1 -1
  10. package/dist/apis/OtherApi.js +1 -1
  11. package/dist/apis/OtherApi.js.map +1 -1
  12. package/dist/apis/PostApi.d.ts +13 -13
  13. package/dist/apis/PostApi.d.ts.map +1 -1
  14. package/dist/apis/PostApi.js +6 -6
  15. package/dist/apis/PostApi.js.map +1 -1
  16. package/dist/apis/TweetApi.d.ts +35 -21
  17. package/dist/apis/TweetApi.d.ts.map +1 -1
  18. package/dist/apis/TweetApi.js +99 -10
  19. package/dist/apis/TweetApi.js.map +1 -1
  20. package/dist/apis/UserApi.d.ts +5 -18
  21. package/dist/apis/UserApi.d.ts.map +1 -1
  22. package/dist/apis/UserApi.js +2 -85
  23. package/dist/apis/UserApi.js.map +1 -1
  24. package/dist/apis/UserListApi.d.ts +23 -23
  25. package/dist/apis/UserListApi.d.ts.map +1 -1
  26. package/dist/apis/UserListApi.js +53 -53
  27. package/dist/apis/UserListApi.js.map +1 -1
  28. package/dist/apis/UsersApi.d.ts +32 -0
  29. package/dist/apis/UsersApi.d.ts.map +1 -0
  30. package/dist/apis/UsersApi.js +164 -0
  31. package/dist/apis/UsersApi.js.map +1 -0
  32. package/dist/apis/index.d.ts +1 -0
  33. package/dist/apis/index.d.ts.map +1 -1
  34. package/dist/apis/index.js +1 -0
  35. package/dist/apis/index.js.map +1 -1
  36. package/dist/models/CursorType.d.ts +27 -0
  37. package/dist/models/CursorType.d.ts.map +1 -0
  38. package/dist/models/CursorType.js +40 -0
  39. package/dist/models/CursorType.js.map +1 -0
  40. package/dist/models/Entities.d.ts +12 -6
  41. package/dist/models/Entities.d.ts.map +1 -1
  42. package/dist/models/ErrorExtensions.d.ts +63 -0
  43. package/dist/models/ErrorExtensions.d.ts.map +1 -0
  44. package/dist/models/ErrorExtensions.js +67 -0
  45. package/dist/models/ErrorExtensions.js.map +1 -0
  46. package/dist/models/Errors.d.ts +32 -0
  47. package/dist/models/Errors.d.ts.map +1 -0
  48. package/dist/models/Errors.js +51 -0
  49. package/dist/models/Errors.js.map +1 -0
  50. package/dist/models/GetBookmarks200Response.d.ts +23 -0
  51. package/dist/models/GetBookmarks200Response.d.ts.map +1 -0
  52. package/dist/models/GetBookmarks200Response.js +57 -0
  53. package/dist/models/GetBookmarks200Response.js.map +1 -0
  54. package/dist/models/GetFavoriters200Response.d.ts +23 -0
  55. package/dist/models/GetFavoriters200Response.d.ts.map +1 -0
  56. package/dist/models/GetFavoriters200Response.js +57 -0
  57. package/dist/models/GetFavoriters200Response.js.map +1 -0
  58. package/dist/models/GetFollowers200Response.d.ts +23 -0
  59. package/dist/models/GetFollowers200Response.d.ts.map +1 -0
  60. package/dist/models/GetFollowers200Response.js +57 -0
  61. package/dist/models/GetFollowers200Response.js.map +1 -0
  62. package/dist/models/GetHomeLatestTimeline200Response.d.ts +23 -0
  63. package/dist/models/GetHomeLatestTimeline200Response.d.ts.map +1 -0
  64. package/dist/models/GetHomeLatestTimeline200Response.js +57 -0
  65. package/dist/models/GetHomeLatestTimeline200Response.js.map +1 -0
  66. package/dist/models/GetLikes200Response.d.ts +23 -0
  67. package/dist/models/GetLikes200Response.d.ts.map +1 -0
  68. package/dist/models/GetLikes200Response.js +57 -0
  69. package/dist/models/GetLikes200Response.js.map +1 -0
  70. package/dist/models/GetListLatestTweetsTimeline200Response.d.ts +23 -0
  71. package/dist/models/GetListLatestTweetsTimeline200Response.d.ts.map +1 -0
  72. package/dist/models/GetListLatestTweetsTimeline200Response.js +57 -0
  73. package/dist/models/GetListLatestTweetsTimeline200Response.js.map +1 -0
  74. package/dist/models/GetProfileSpotlightsQuery200Response.d.ts +23 -0
  75. package/dist/models/GetProfileSpotlightsQuery200Response.d.ts.map +1 -0
  76. package/dist/models/GetProfileSpotlightsQuery200Response.js +57 -0
  77. package/dist/models/GetProfileSpotlightsQuery200Response.js.map +1 -0
  78. package/dist/models/GetRetweeters200Response.d.ts +23 -0
  79. package/dist/models/GetRetweeters200Response.d.ts.map +1 -0
  80. package/dist/models/GetRetweeters200Response.js +57 -0
  81. package/dist/models/GetRetweeters200Response.js.map +1 -0
  82. package/dist/models/GetSearchTimeline200Response.d.ts +23 -0
  83. package/dist/models/GetSearchTimeline200Response.d.ts.map +1 -0
  84. package/dist/models/GetSearchTimeline200Response.js +57 -0
  85. package/dist/models/GetSearchTimeline200Response.js.map +1 -0
  86. package/dist/models/GetTweetDetail200Response.d.ts +23 -0
  87. package/dist/models/GetTweetDetail200Response.d.ts.map +1 -0
  88. package/dist/models/GetTweetDetail200Response.js +57 -0
  89. package/dist/models/GetTweetDetail200Response.js.map +1 -0
  90. package/dist/models/GetUserByRestId200Response.d.ts +23 -0
  91. package/dist/models/GetUserByRestId200Response.d.ts.map +1 -0
  92. package/dist/models/GetUserByRestId200Response.js +57 -0
  93. package/dist/models/GetUserByRestId200Response.js.map +1 -0
  94. package/dist/models/GetUserHighlightsTweets200Response.d.ts +23 -0
  95. package/dist/models/GetUserHighlightsTweets200Response.d.ts.map +1 -0
  96. package/dist/models/GetUserHighlightsTweets200Response.js +57 -0
  97. package/dist/models/GetUserHighlightsTweets200Response.js.map +1 -0
  98. package/dist/models/GetUsersByRestIds200Response.d.ts +23 -0
  99. package/dist/models/GetUsersByRestIds200Response.d.ts.map +1 -0
  100. package/dist/models/GetUsersByRestIds200Response.js +57 -0
  101. package/dist/models/GetUsersByRestIds200Response.js.map +1 -0
  102. package/dist/models/ItemContentUnion.d.ts +5 -5
  103. package/dist/models/ItemContentUnion.js +9 -9
  104. package/dist/models/ItemContentUnion.js.map +1 -1
  105. package/dist/models/Location.d.ts +38 -0
  106. package/dist/models/Location.d.ts.map +1 -0
  107. package/dist/models/Location.js +54 -0
  108. package/dist/models/Location.js.map +1 -0
  109. package/dist/models/Media.d.ts +8 -4
  110. package/dist/models/Media.d.ts.map +1 -1
  111. package/dist/models/MediaOriginalInfo.d.ts +4 -2
  112. package/dist/models/MediaOriginalInfo.d.ts.map +1 -1
  113. package/dist/models/ModelError.d.ts +89 -0
  114. package/dist/models/ModelError.d.ts.map +1 -0
  115. package/dist/models/ModelError.js +81 -0
  116. package/dist/models/ModelError.js.map +1 -0
  117. package/dist/models/ModuleEntry.d.ts +4 -2
  118. package/dist/models/ModuleEntry.d.ts.map +1 -1
  119. package/dist/models/Other200Response.d.ts +22 -0
  120. package/dist/models/Other200Response.d.ts.map +1 -0
  121. package/dist/models/Other200Response.js +53 -0
  122. package/dist/models/Other200Response.js.map +1 -0
  123. package/dist/models/PostCreateRetweet200Response.d.ts +23 -0
  124. package/dist/models/PostCreateRetweet200Response.d.ts.map +1 -0
  125. package/dist/models/PostCreateRetweet200Response.js +57 -0
  126. package/dist/models/PostCreateRetweet200Response.js.map +1 -0
  127. package/dist/models/PostCreateTweet200Response.d.ts +23 -0
  128. package/dist/models/PostCreateTweet200Response.d.ts.map +1 -0
  129. package/dist/models/PostCreateTweet200Response.js +57 -0
  130. package/dist/models/PostCreateTweet200Response.js.map +1 -0
  131. package/dist/models/PostDeleteRetweet200Response.d.ts +23 -0
  132. package/dist/models/PostDeleteRetweet200Response.d.ts.map +1 -0
  133. package/dist/models/PostDeleteRetweet200Response.js +57 -0
  134. package/dist/models/PostDeleteRetweet200Response.js.map +1 -0
  135. package/dist/models/PostDeleteTweet200Response.d.ts +23 -0
  136. package/dist/models/PostDeleteTweet200Response.d.ts.map +1 -0
  137. package/dist/models/PostDeleteTweet200Response.js +57 -0
  138. package/dist/models/PostDeleteTweet200Response.js.map +1 -0
  139. package/dist/models/PostFavoriteTweet200Response.d.ts +23 -0
  140. package/dist/models/PostFavoriteTweet200Response.d.ts.map +1 -0
  141. package/dist/models/PostFavoriteTweet200Response.js +57 -0
  142. package/dist/models/PostFavoriteTweet200Response.js.map +1 -0
  143. package/dist/models/PostUnfavoriteTweet200Response.d.ts +23 -0
  144. package/dist/models/PostUnfavoriteTweet200Response.d.ts.map +1 -0
  145. package/dist/models/PostUnfavoriteTweet200Response.js +57 -0
  146. package/dist/models/PostUnfavoriteTweet200Response.js.map +1 -0
  147. package/dist/models/Timeline.d.ts +8 -4
  148. package/dist/models/Timeline.d.ts.map +1 -1
  149. package/dist/models/TimelineMessagePrompt.d.ts +1 -0
  150. package/dist/models/TimelineMessagePrompt.d.ts.map +1 -1
  151. package/dist/models/TimelineMessagePrompt.js +13 -6
  152. package/dist/models/TimelineMessagePrompt.js.map +1 -1
  153. package/dist/models/TimelinePrompt.d.ts +1 -0
  154. package/dist/models/TimelinePrompt.d.ts.map +1 -1
  155. package/dist/models/TimelinePrompt.js +13 -6
  156. package/dist/models/TimelinePrompt.js.map +1 -1
  157. package/dist/models/TimelineShowAlert.d.ts +8 -4
  158. package/dist/models/TimelineShowAlert.d.ts.map +1 -1
  159. package/dist/models/TimelineShowAlertRichText.d.ts +4 -2
  160. package/dist/models/TimelineShowAlertRichText.d.ts.map +1 -1
  161. package/dist/models/TimelineTimelineCursor.d.ts +3 -13
  162. package/dist/models/TimelineTimelineCursor.d.ts.map +1 -1
  163. package/dist/models/TimelineTimelineCursor.js +4 -13
  164. package/dist/models/TimelineTimelineCursor.js.map +1 -1
  165. package/dist/models/TimelineTimelineItem.d.ts +8 -4
  166. package/dist/models/TimelineTimelineItem.d.ts.map +1 -1
  167. package/dist/models/TimelineTimelineModule.d.ts +12 -6
  168. package/dist/models/TimelineTimelineModule.d.ts.map +1 -1
  169. package/dist/models/TimelineTweet.d.ts +4 -2
  170. package/dist/models/TimelineTweet.d.ts.map +1 -1
  171. package/dist/models/Tracing.d.ts +32 -0
  172. package/dist/models/Tracing.d.ts.map +1 -0
  173. package/dist/models/Tracing.js +51 -0
  174. package/dist/models/Tracing.js.map +1 -0
  175. package/dist/models/Tweet.d.ts +5 -3
  176. package/dist/models/Tweet.d.ts.map +1 -1
  177. package/dist/models/Tweet.js +1 -2
  178. package/dist/models/Tweet.js.map +1 -1
  179. package/dist/models/TweetTombstone.d.ts +1 -0
  180. package/dist/models/TweetTombstone.d.ts.map +1 -1
  181. package/dist/models/TweetTombstone.js +13 -6
  182. package/dist/models/TweetTombstone.js.map +1 -1
  183. package/dist/models/TypeName.d.ts +3 -0
  184. package/dist/models/TypeName.d.ts.map +1 -1
  185. package/dist/models/TypeName.js +4 -1
  186. package/dist/models/TypeName.js.map +1 -1
  187. package/dist/models/User.d.ts +8 -4
  188. package/dist/models/User.d.ts.map +1 -1
  189. package/dist/models/UserHighlightsTweetsData.d.ts +33 -0
  190. package/dist/models/UserHighlightsTweetsData.d.ts.map +1 -0
  191. package/dist/models/UserHighlightsTweetsData.js +52 -0
  192. package/dist/models/UserHighlightsTweetsData.js.map +1 -0
  193. package/dist/models/UserHighlightsTweetsResponse.d.ts +33 -0
  194. package/dist/models/UserHighlightsTweetsResponse.d.ts.map +1 -0
  195. package/dist/models/UserHighlightsTweetsResponse.js +52 -0
  196. package/dist/models/UserHighlightsTweetsResponse.js.map +1 -0
  197. package/dist/models/UserHighlightsTweetsResult.d.ts +40 -0
  198. package/dist/models/UserHighlightsTweetsResult.d.ts.map +1 -0
  199. package/dist/models/UserHighlightsTweetsResult.js +56 -0
  200. package/dist/models/UserHighlightsTweetsResult.js.map +1 -0
  201. package/dist/models/UserHighlightsTweetsTimeline.d.ts +33 -0
  202. package/dist/models/UserHighlightsTweetsTimeline.d.ts.map +1 -0
  203. package/dist/models/UserHighlightsTweetsTimeline.js +52 -0
  204. package/dist/models/UserHighlightsTweetsTimeline.js.map +1 -0
  205. package/dist/models/UserHighlightsTweetsUser.d.ts +33 -0
  206. package/dist/models/UserHighlightsTweetsUser.d.ts.map +1 -0
  207. package/dist/models/UserHighlightsTweetsUser.js +52 -0
  208. package/dist/models/UserHighlightsTweetsUser.js.map +1 -0
  209. package/dist/models/UserLegacy.d.ts +9 -7
  210. package/dist/models/UserLegacy.d.ts.map +1 -1
  211. package/dist/models/UserLegacy.js +5 -10
  212. package/dist/models/UserLegacy.js.map +1 -1
  213. package/dist/models/UserResultByScreenNameResult.d.ts +4 -2
  214. package/dist/models/UserResultByScreenNameResult.d.ts.map +1 -1
  215. package/dist/models/UserResults.d.ts +3 -3
  216. package/dist/models/UserResults.d.ts.map +1 -1
  217. package/dist/models/UserResults.js +3 -3
  218. package/dist/models/UserResults.js.map +1 -1
  219. package/dist/models/UserUnavailable.d.ts +39 -0
  220. package/dist/models/UserUnavailable.d.ts.map +1 -0
  221. package/dist/models/UserUnavailable.js +55 -0
  222. package/dist/models/UserUnavailable.js.map +1 -0
  223. package/dist/models/UserUnion.d.ts +27 -0
  224. package/dist/models/UserUnion.d.ts.map +1 -0
  225. package/dist/models/UserUnion.js +65 -0
  226. package/dist/models/UserUnion.js.map +1 -0
  227. package/dist/models/index.d.ts +33 -0
  228. package/dist/models/index.d.ts.map +1 -1
  229. package/dist/models/index.js +33 -0
  230. package/dist/models/index.js.map +1 -1
  231. package/package.json +1 -1
  232. package/src/apis/DefaultApi.ts +6 -6
  233. package/src/apis/OtherApi.ts +6 -6
  234. package/src/apis/PostApi.ts +36 -36
  235. package/src/apis/TweetApi.ts +144 -48
  236. package/src/apis/UserApi.ts +9 -96
  237. package/src/apis/UserListApi.ts +70 -70
  238. package/src/apis/UsersApi.ts +114 -0
  239. package/src/apis/index.ts +1 -0
  240. package/src/models/CursorType.ts +41 -0
  241. package/src/models/Entities.ts +6 -6
  242. package/src/models/ErrorExtensions.ts +118 -0
  243. package/src/models/Errors.ts +66 -0
  244. package/src/models/GetBookmarks200Response.ts +65 -0
  245. package/src/models/GetFavoriters200Response.ts +65 -0
  246. package/src/models/GetFollowers200Response.ts +65 -0
  247. package/src/models/GetHomeLatestTimeline200Response.ts +65 -0
  248. package/src/models/GetLikes200Response.ts +65 -0
  249. package/src/models/GetListLatestTweetsTimeline200Response.ts +65 -0
  250. package/src/models/GetProfileSpotlightsQuery200Response.ts +65 -0
  251. package/src/models/GetRetweeters200Response.ts +65 -0
  252. package/src/models/GetSearchTimeline200Response.ts +65 -0
  253. package/src/models/GetTweetDetail200Response.ts +65 -0
  254. package/src/models/GetUserByRestId200Response.ts +65 -0
  255. package/src/models/GetUserHighlightsTweets200Response.ts +65 -0
  256. package/src/models/GetUsersByRestIds200Response.ts +65 -0
  257. package/src/models/ItemContentUnion.ts +10 -10
  258. package/src/models/Location.ts +75 -0
  259. package/src/models/Media.ts +4 -4
  260. package/src/models/MediaOriginalInfo.ts +2 -2
  261. package/src/models/ModelError.ts +166 -0
  262. package/src/models/ModuleEntry.ts +2 -2
  263. package/src/models/Other200Response.ts +55 -0
  264. package/src/models/PostCreateRetweet200Response.ts +65 -0
  265. package/src/models/PostCreateTweet200Response.ts +65 -0
  266. package/src/models/PostDeleteRetweet200Response.ts +65 -0
  267. package/src/models/PostDeleteTweet200Response.ts +65 -0
  268. package/src/models/PostFavoriteTweet200Response.ts +65 -0
  269. package/src/models/PostUnfavoriteTweet200Response.ts +65 -0
  270. package/src/models/Timeline.ts +4 -4
  271. package/src/models/TimelineMessagePrompt.ts +3 -0
  272. package/src/models/TimelinePrompt.ts +3 -0
  273. package/src/models/TimelineShowAlert.ts +4 -4
  274. package/src/models/TimelineShowAlertRichText.ts +2 -2
  275. package/src/models/TimelineTimelineCursor.ts +10 -18
  276. package/src/models/TimelineTimelineItem.ts +4 -4
  277. package/src/models/TimelineTimelineModule.ts +6 -6
  278. package/src/models/TimelineTweet.ts +2 -2
  279. package/src/models/Tracing.ts +66 -0
  280. package/src/models/Tweet.ts +4 -5
  281. package/src/models/TweetTombstone.ts +3 -0
  282. package/src/models/TypeName.ts +4 -1
  283. package/src/models/User.ts +4 -4
  284. package/src/models/UserHighlightsTweetsData.ts +73 -0
  285. package/src/models/UserHighlightsTweetsResponse.ts +73 -0
  286. package/src/models/UserHighlightsTweetsResult.ts +88 -0
  287. package/src/models/UserHighlightsTweetsTimeline.ts +73 -0
  288. package/src/models/UserHighlightsTweetsUser.ts +73 -0
  289. package/src/models/UserLegacy.ts +12 -17
  290. package/src/models/UserResultByScreenNameResult.ts +2 -2
  291. package/src/models/UserResults.ts +9 -9
  292. package/src/models/UserUnavailable.ts +82 -0
  293. package/src/models/UserUnion.ts +72 -0
  294. package/src/models/index.ts +33 -0
  295. package/tools/openapi-generator-config.yaml +1 -1
  296. package/twitter-openapi/.github/workflows/test-build.yaml +87 -0
  297. package/twitter-openapi/.github/workflows/test-python.yaml +100 -0
  298. package/twitter-openapi/.vscode/launch.json +25 -0
  299. package/twitter-openapi/.vscode/settings.json +1 -1
  300. package/twitter-openapi/.vscode/tasks.json +45 -0
  301. package/twitter-openapi/CONTRIBUTING.md +13 -0
  302. package/twitter-openapi/README.md +2 -2
  303. package/twitter-openapi/dist/compatible/openapi-3.0.yaml +7 -3
  304. package/twitter-openapi/dist/compatible/paths/bookmarks.yaml +3 -1
  305. package/twitter-openapi/dist/compatible/paths/follow.yaml +9 -3
  306. package/twitter-openapi/dist/compatible/paths/other.yaml +2 -1
  307. package/twitter-openapi/dist/compatible/paths/post.yaml +18 -6
  308. package/twitter-openapi/dist/compatible/paths/profile.yaml +5 -2
  309. package/twitter-openapi/dist/compatible/paths/timeline.yaml +12 -4
  310. package/twitter-openapi/dist/compatible/paths/tweet.yaml +11 -5
  311. package/twitter-openapi/dist/compatible/paths/user.yaml +10 -4
  312. package/twitter-openapi/dist/compatible/paths/usertweets.yaml +140 -4
  313. package/twitter-openapi/dist/compatible/schemas/content.yaml +21 -15
  314. package/twitter-openapi/dist/compatible/schemas/error.yaml +94 -0
  315. package/twitter-openapi/dist/compatible/schemas/instruction.yaml +4 -8
  316. package/twitter-openapi/dist/compatible/schemas/timeline.yaml +2 -0
  317. package/twitter-openapi/dist/compatible/schemas/tweet.yaml +8 -1
  318. package/twitter-openapi/dist/compatible/schemas/typename.yaml +3 -0
  319. package/twitter-openapi/dist/compatible/schemas/user.yaml +23 -7
  320. package/twitter-openapi/dist/docs/openapi-3.0.yaml +7 -3
  321. package/twitter-openapi/dist/docs/paths/bookmarks.yaml +3 -1
  322. package/twitter-openapi/dist/docs/paths/follow.yaml +9 -3
  323. package/twitter-openapi/dist/docs/paths/other.yaml +2 -1
  324. package/twitter-openapi/dist/docs/paths/post.yaml +18 -6
  325. package/twitter-openapi/dist/docs/paths/profile.yaml +5 -2
  326. package/twitter-openapi/dist/docs/paths/timeline.yaml +12 -4
  327. package/twitter-openapi/dist/docs/paths/tweet.yaml +11 -5
  328. package/twitter-openapi/dist/docs/paths/user.yaml +10 -4
  329. package/twitter-openapi/dist/docs/paths/usertweets.yaml +250 -4
  330. package/twitter-openapi/dist/docs/schemas/content.yaml +21 -15
  331. package/twitter-openapi/dist/docs/schemas/error.yaml +94 -0
  332. package/twitter-openapi/dist/docs/schemas/instruction.yaml +4 -8
  333. package/twitter-openapi/dist/docs/schemas/timeline.yaml +2 -0
  334. package/twitter-openapi/dist/docs/schemas/tweet.yaml +8 -1
  335. package/twitter-openapi/dist/docs/schemas/typename.yaml +3 -0
  336. package/twitter-openapi/dist/docs/schemas/user.yaml +23 -7
  337. package/twitter-openapi/src/config/placeholder.json +36 -1
  338. package/twitter-openapi/src/openapi/openapi-3.0.yaml +5 -3
  339. package/twitter-openapi/src/openapi/paths/bookmarks.yaml +3 -1
  340. package/twitter-openapi/src/openapi/paths/follow.yaml +9 -3
  341. package/twitter-openapi/src/openapi/paths/other.yaml +2 -1
  342. package/twitter-openapi/src/openapi/paths/post.yaml +18 -6
  343. package/twitter-openapi/src/openapi/paths/profile.yaml +6 -3
  344. package/twitter-openapi/src/openapi/paths/timeline.yaml +12 -4
  345. package/twitter-openapi/src/openapi/paths/tweet.yaml +11 -5
  346. package/twitter-openapi/src/openapi/paths/user.yaml +10 -4
  347. package/twitter-openapi/src/openapi/paths/usertweets.yaml +66 -4
  348. package/twitter-openapi/src/openapi/schemas/content.yaml +26 -19
  349. package/twitter-openapi/src/openapi/schemas/error.yaml +99 -0
  350. package/twitter-openapi/src/openapi/schemas/instruction.yaml +7 -11
  351. package/twitter-openapi/src/openapi/schemas/timeline.yaml +4 -2
  352. package/twitter-openapi/src/openapi/schemas/tweet.yaml +16 -9
  353. package/twitter-openapi/src/openapi/schemas/typename.yaml +3 -0
  354. package/twitter-openapi/src/openapi/schemas/user.yaml +33 -10
  355. package/twitter-openapi/test/dart-dio/openapi-generator-config.yaml +2 -0
  356. package/twitter-openapi/test/local.sh +6 -0
  357. package/twitter-openapi/test/python/openapi-generator-config.yaml +4 -0
  358. package/twitter-openapi/test/python/test_serialize.py +160 -0
  359. package/twitter-openapi/test/typescript-fetch/openapi-generator-config.yaml +4 -0
  360. package/twitter-openapi/tools/__pycache__/build_config.cpython-310.pyc +0 -0
  361. package/twitter-openapi/tools/__pycache__/hooks.cpython-310.pyc +0 -0
  362. package/twitter-openapi/tools/build_config.py +1 -1
  363. package/twitter-openapi/tools/hooks.py +23 -0
  364. package/twitter-openapi/tools/login.py +17 -0
@@ -13,12 +13,12 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
- import type { User } from './User';
16
+ import type { UserUnion } from './UserUnion';
17
17
  import {
18
- UserFromJSON,
19
- UserFromJSONTyped,
20
- UserToJSON,
21
- } from './User';
18
+ UserUnionFromJSON,
19
+ UserUnionFromJSONTyped,
20
+ UserUnionToJSON,
21
+ } from './UserUnion';
22
22
 
23
23
  /**
24
24
  *
@@ -28,10 +28,10 @@ import {
28
28
  export interface UserResults {
29
29
  /**
30
30
  *
31
- * @type {User}
31
+ * @type {UserUnion}
32
32
  * @memberof UserResults
33
33
  */
34
- result: User;
34
+ result: UserUnion;
35
35
  }
36
36
 
37
37
  /**
@@ -54,7 +54,7 @@ export function UserResultsFromJSONTyped(json: any, ignoreDiscriminator: boolean
54
54
  }
55
55
  return {
56
56
 
57
- 'result': UserFromJSON(json['result']),
57
+ 'result': UserUnionFromJSON(json['result']),
58
58
  };
59
59
  }
60
60
 
@@ -67,7 +67,7 @@ export function UserResultsToJSON(value?: UserResults | null): any {
67
67
  }
68
68
  return {
69
69
 
70
- 'result': UserToJSON(value.result),
70
+ 'result': UserUnionToJSON(value.result),
71
71
  };
72
72
  }
73
73
 
@@ -0,0 +1,82 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Twitter OpenAPI
5
+ * Twitter OpenAPI(Swagger) specification
6
+ *
7
+ * The version of the OpenAPI document: 0.0.1
8
+ * Contact: yuki@yuki0311.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ import type { TypeName } from './TypeName';
17
+ import {
18
+ TypeNameFromJSON,
19
+ TypeNameFromJSONTyped,
20
+ TypeNameToJSON,
21
+ } from './TypeName';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface UserUnavailable
27
+ */
28
+ export interface UserUnavailable {
29
+ /**
30
+ *
31
+ * @type {TypeName}
32
+ * @memberof UserUnavailable
33
+ */
34
+ typename: TypeName;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof UserUnavailable
39
+ */
40
+ reason: string;
41
+ }
42
+
43
+ /**
44
+ * Check if a given object implements the UserUnavailable interface.
45
+ */
46
+ export function instanceOfUserUnavailable(value: object): boolean {
47
+ let isInstance = true;
48
+ isInstance = isInstance && "typename" in value;
49
+ isInstance = isInstance && "reason" in value;
50
+
51
+ return isInstance;
52
+ }
53
+
54
+ export function UserUnavailableFromJSON(json: any): UserUnavailable {
55
+ return UserUnavailableFromJSONTyped(json, false);
56
+ }
57
+
58
+ export function UserUnavailableFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserUnavailable {
59
+ if ((json === undefined) || (json === null)) {
60
+ return json;
61
+ }
62
+ return {
63
+
64
+ 'typename': TypeNameFromJSON(json['__typename']),
65
+ 'reason': json['reason'],
66
+ };
67
+ }
68
+
69
+ export function UserUnavailableToJSON(value?: UserUnavailable | null): any {
70
+ if (value === undefined) {
71
+ return undefined;
72
+ }
73
+ if (value === null) {
74
+ return null;
75
+ }
76
+ return {
77
+
78
+ '__typename': TypeNameToJSON(value.typename),
79
+ 'reason': value.reason,
80
+ };
81
+ }
82
+
@@ -0,0 +1,72 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Twitter OpenAPI
5
+ * Twitter OpenAPI(Swagger) specification
6
+ *
7
+ * The version of the OpenAPI document: 0.0.1
8
+ * Contact: yuki@yuki0311.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import {
16
+ User,
17
+ instanceOfUser,
18
+ UserFromJSON,
19
+ UserFromJSONTyped,
20
+ UserToJSON,
21
+ } from './User';
22
+ import {
23
+ UserUnavailable,
24
+ instanceOfUserUnavailable,
25
+ UserUnavailableFromJSON,
26
+ UserUnavailableFromJSONTyped,
27
+ UserUnavailableToJSON,
28
+ } from './UserUnavailable';
29
+
30
+ /**
31
+ * @type UserUnion
32
+ *
33
+ * @export
34
+ */
35
+ export type UserUnion = { typename: 'User' } & User | { typename: 'UserUnavailable' } & UserUnavailable;
36
+
37
+ export function UserUnionFromJSON(json: any): UserUnion {
38
+ return UserUnionFromJSONTyped(json, false);
39
+ }
40
+
41
+ export function UserUnionFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserUnion {
42
+ if ((json === undefined) || (json === null)) {
43
+ return json;
44
+ }
45
+ switch (json['__typename']) {
46
+ case 'User':
47
+ return {...UserFromJSONTyped(json, true), typename: 'User'};
48
+ case 'UserUnavailable':
49
+ return {...UserUnavailableFromJSONTyped(json, true), typename: 'UserUnavailable'};
50
+ default:
51
+ throw new Error(`No variant of UserUnion exists with 'typename=${json['__typename']}'`);
52
+ }
53
+ }
54
+
55
+ export function UserUnionToJSON(value?: UserUnion | null): any {
56
+ if (value === undefined) {
57
+ return undefined;
58
+ }
59
+ if (value === null) {
60
+ return null;
61
+ }
62
+ switch (value['typename']) {
63
+ case 'User':
64
+ return UserToJSON(value);
65
+ case 'UserUnavailable':
66
+ return UserUnavailableToJSON(value);
67
+ default:
68
+ throw new Error(`No variant of UserUnion exists with 'typename=${value['typename']}'`);
69
+ }
70
+
71
+ }
72
+
@@ -15,12 +15,15 @@ export * from './CreateTweet';
15
15
  export * from './CreateTweetResponse';
16
16
  export * from './CreateTweetResponseData';
17
17
  export * from './CreateTweetResponseResult';
18
+ export * from './CursorType';
18
19
  export * from './DeleteRetweetResponse';
19
20
  export * from './DeleteRetweetResponseData';
20
21
  export * from './DeleteTweetResponse';
21
22
  export * from './DeleteTweetResponseData';
22
23
  export * from './DeleteTweetResponseResult';
23
24
  export * from './Entities';
25
+ export * from './ErrorExtensions';
26
+ export * from './Errors';
24
27
  export * from './ExtendedEntities';
25
28
  export * from './FavoriteTweet';
26
29
  export * from './FavoriteTweetResponseData';
@@ -29,6 +32,19 @@ export * from './FollowResponseData';
29
32
  export * from './FollowResponseResult';
30
33
  export * from './FollowResponseUser';
31
34
  export * from './FollowTimeline';
35
+ export * from './GetBookmarks200Response';
36
+ export * from './GetFavoriters200Response';
37
+ export * from './GetFollowers200Response';
38
+ export * from './GetHomeLatestTimeline200Response';
39
+ export * from './GetLikes200Response';
40
+ export * from './GetListLatestTweetsTimeline200Response';
41
+ export * from './GetProfileSpotlightsQuery200Response';
42
+ export * from './GetRetweeters200Response';
43
+ export * from './GetSearchTimeline200Response';
44
+ export * from './GetTweetDetail200Response';
45
+ export * from './GetUserByRestId200Response';
46
+ export * from './GetUserHighlightsTweets200Response';
47
+ export * from './GetUsersByRestIds200Response';
32
48
  export * from './HomeTimelineHome';
33
49
  export * from './HomeTimelineResponseData';
34
50
  export * from './InstructionType';
@@ -39,22 +55,31 @@ export * from './ListLatestTweetsTimelineResponse';
39
55
  export * from './ListTweetsTimeline';
40
56
  export * from './ListTweetsTimelineData';
41
57
  export * from './ListTweetsTimelineList';
58
+ export * from './Location';
42
59
  export * from './Media';
43
60
  export * from './MediaOriginalInfo';
61
+ export * from './ModelError';
44
62
  export * from './ModuleEntry';
45
63
  export * from './ModuleItem';
46
64
  export * from './OneFactorLoginEligibility';
65
+ export * from './Other200Response';
47
66
  export * from './OtherResponse';
67
+ export * from './PostCreateRetweet200Response';
48
68
  export * from './PostCreateRetweetRequest';
49
69
  export * from './PostCreateRetweetRequestVariables';
70
+ export * from './PostCreateTweet200Response';
50
71
  export * from './PostCreateTweetRequest';
51
72
  export * from './PostCreateTweetRequestFeatures';
52
73
  export * from './PostCreateTweetRequestVariables';
53
74
  export * from './PostCreateTweetRequestVariablesMedia';
75
+ export * from './PostDeleteRetweet200Response';
54
76
  export * from './PostDeleteRetweetRequest';
55
77
  export * from './PostDeleteRetweetRequestVariables';
78
+ export * from './PostDeleteTweet200Response';
56
79
  export * from './PostDeleteTweetRequest';
80
+ export * from './PostFavoriteTweet200Response';
57
81
  export * from './PostFavoriteTweetRequest';
82
+ export * from './PostUnfavoriteTweet200Response';
58
83
  export * from './PostUnfavoriteTweetRequest';
59
84
  export * from './ProfileResponse';
60
85
  export * from './ProfileResponseData';
@@ -85,6 +110,7 @@ export * from './TimelineTimelineModule';
85
110
  export * from './TimelineTweet';
86
111
  export * from './TimelineUser';
87
112
  export * from './TimelineV2';
113
+ export * from './Tracing';
88
114
  export * from './Tweet';
89
115
  export * from './TweetCard';
90
116
  export * from './TweetCardLegacy';
@@ -110,6 +136,11 @@ export * from './UnfavoriteTweetResponseData';
110
136
  export * from './Url';
111
137
  export * from './User';
112
138
  export * from './UserFeatures';
139
+ export * from './UserHighlightsTweetsData';
140
+ export * from './UserHighlightsTweetsResponse';
141
+ export * from './UserHighlightsTweetsResult';
142
+ export * from './UserHighlightsTweetsTimeline';
143
+ export * from './UserHighlightsTweetsUser';
113
144
  export * from './UserLegacy';
114
145
  export * from './UserResponse';
115
146
  export * from './UserResponseData';
@@ -122,5 +153,7 @@ export * from './UserTweetsData';
122
153
  export * from './UserTweetsResponse';
123
154
  export * from './UserTweetsResult';
124
155
  export * from './UserTweetsUser';
156
+ export * from './UserUnavailable';
157
+ export * from './UserUnion';
125
158
  export * from './UsersResponse';
126
159
  export * from './UsersResponseData';
@@ -1,7 +1,7 @@
1
1
  inputSpec: twitter-openapi/dist/compatible/openapi-3.0.yaml
2
2
  outputDir: .
3
3
  npmName: twitter-openapi-typescript-generated
4
- npmVersion: 0.0.8
4
+ npmVersion: 0.0.9
5
5
 
6
6
  # withoutRuntimeChecks: false
7
7
  legacyDiscriminatorBehavior: false
@@ -0,0 +1,87 @@
1
+ name: build-test
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
+ branches:
9
+ - main
10
+
11
+ jobs:
12
+ build:
13
+ runs-on: ubuntu-latest
14
+
15
+ steps:
16
+ - uses: actions/checkout@v3
17
+
18
+ # Openapi Generator Setup
19
+ - name: Get OpenJDK 11
20
+ uses: actions/setup-java@v2
21
+ with:
22
+ distribution: "temurin"
23
+ java-version: 11
24
+
25
+ - name: Get Java version
26
+ run: java -version
27
+
28
+ - name: Get Openapi Generator cache file
29
+ id: openapi-generator-cache
30
+ run: echo "file=openapi-generator-cli.jar" >> $GITHUB_OUTPUT
31
+
32
+ - name: Openapi Generator cache
33
+ uses: actions/cache@v3
34
+ with:
35
+ path: ${{ steps.openapi-generator-cache.outputs.file }}
36
+ key: ${{ runner.os }}-openapi-generator-${{ hashFiles('openapi-generator-cli.jar') }}
37
+ restore-keys: |
38
+ ${{ runner.os }}-openapi-generator-
39
+
40
+ - name: Get Openapi Generator
41
+ run: |
42
+ wget https://github.com/fa0311/openapi-generator/releases/download/twitter_openapi_python_1.3.0/openapi-generator-cli.jar -O openapi-generator-cli.jar --no-verbose
43
+ if: steps.openapi-generator-cache.outputs.cache-hit != 'true'
44
+
45
+ # Python Setup
46
+ - name: Set up Python 3.10
47
+ uses: actions/setup-python@v4
48
+ with:
49
+ python-version: "3.10"
50
+ architecture: "x64"
51
+
52
+ - name: Get Python version
53
+ run: python -V
54
+
55
+ - name: Get pip cache dir
56
+ id: pip-cache
57
+ run: echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
58
+
59
+ - name: pip cache
60
+ uses: actions/cache@v3
61
+ with:
62
+ path: ${{ steps.pip-cache.outputs.dir }}
63
+ key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
64
+ restore-keys: |
65
+ ${{ runner.os }}-pip-
66
+
67
+ - name: Install dependencies
68
+ run: |
69
+ python -m pip install --upgrade pip
70
+ pip install -r requirements.txt
71
+
72
+ # generate
73
+ - name: Build twitter-openapi
74
+ run: |
75
+ python tools/build.py
76
+
77
+ # clean up dependencies
78
+ - name: Clean up dependencies
79
+ run: |
80
+ pip uninstall -y -r requirements.txt
81
+
82
+ # generate
83
+ - name: Generate
84
+ run: |
85
+ java -jar openapi-generator-cli.jar generate -c test/python/openapi-generator-config.yaml -g python
86
+ java -jar openapi-generator-cli.jar generate -c test/dart-dio/openapi-generator-config.yaml -g dart-dio
87
+ java -jar openapi-generator-cli.jar generate -c test/typescript-fetch/openapi-generator-config.yaml -g typescript-fetch
@@ -0,0 +1,100 @@
1
+ name: test-python
2
+
3
+ on:
4
+ pull_request_target:
5
+ types: [labeled]
6
+ workflow_dispatch:
7
+
8
+ jobs:
9
+ build_and_preview:
10
+ runs-on: ubuntu-latest
11
+ name: Test
12
+ if: contains(github.event.pull_request.labels.*.name, 'safe to test')
13
+
14
+ steps:
15
+ - uses: actions/checkout@v3
16
+ with:
17
+ ref: "${{ github.event.pull_request.merge_commit_sha }}"
18
+
19
+ # Openapi Generator Setup
20
+ - name: Get OpenJDK 11
21
+ uses: actions/setup-java@v2
22
+ with:
23
+ distribution: "temurin"
24
+ java-version: 11
25
+
26
+ - name: Get Java version
27
+ run: java -version
28
+
29
+ - name: Get Openapi Generator cache file
30
+ id: openapi-generator-cache
31
+ run: echo "file=openapi-generator-cli.jar" >> $GITHUB_OUTPUT
32
+
33
+ - name: Openapi Generator cache
34
+ uses: actions/cache@v3
35
+ with:
36
+ path: ${{ steps.openapi-generator-cache.outputs.file }}
37
+ key: ${{ runner.os }}-openapi-generator-${{ hashFiles('openapi-generator-cli.jar') }}
38
+ restore-keys: |
39
+ ${{ runner.os }}-openapi-generator-
40
+
41
+ - name: Get Openapi Generator
42
+ run: |
43
+ wget https://github.com/fa0311/openapi-generator/releases/download/twitter_openapi_python_1.3.0/openapi-generator-cli.jar -O openapi-generator-cli.jar --no-verbose
44
+ if: steps.openapi-generator-cache.outputs.cache-hit != 'true'
45
+
46
+ # Python Setup
47
+ - name: Set up Python 3.10
48
+ uses: actions/setup-python@v4
49
+ with:
50
+ python-version: "3.10"
51
+ architecture: "x64"
52
+
53
+ - name: Get Python version
54
+ run: python -V
55
+
56
+ - name: Get pip cache dir
57
+ id: pip-cache
58
+ run: echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
59
+
60
+ - name: pip cache
61
+ uses: actions/cache@v3
62
+ with:
63
+ path: ${{ steps.pip-cache.outputs.dir }}
64
+ key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
65
+ restore-keys: |
66
+ ${{ runner.os }}-pip-
67
+
68
+ - name: Install dependencies
69
+ run: |
70
+ python -m pip install --upgrade pip
71
+ pip install -r requirements.txt
72
+
73
+ # generate
74
+ - name: Build twitter-openapi
75
+ run: |
76
+ python tools/build.py
77
+
78
+ # clean up dependencies
79
+ - name: Clean up dependencies
80
+ run: |
81
+ pip uninstall -y -r requirements.txt
82
+
83
+ # generate
84
+ - name: Generate Python client
85
+ run: |
86
+ java -jar openapi-generator-cli.jar generate -c test/python/openapi-generator-config.yaml -g python
87
+
88
+ # test
89
+ - name: Test Python client
90
+ run: |
91
+ pip install ./python_generated
92
+
93
+ - name: Run Python client test
94
+ run: |
95
+ python test/python/test_serialize.py
96
+ env:
97
+ TWITTER_SESSION: ${{ secrets.TWITTER_SESSION }}
98
+ ERROR_UNCATCHED: "False"
99
+ SLEEP_TIME: 2
100
+ CUESOR_TEST_COUNT: 5
@@ -0,0 +1,25 @@
1
+ {
2
+ "version": "0.2.0",
3
+ "configurations": [
4
+ {
5
+ "name": "build",
6
+ "type": "python",
7
+ "request": "launch",
8
+ "program": "tools/build.py",
9
+ "console": "integratedTerminal",
10
+ "justMyCode": true
11
+ },
12
+ {
13
+ "name": "test",
14
+ "type": "python",
15
+ "request": "launch",
16
+ "program": "test/python/test_serialize.py",
17
+ "console": "integratedTerminal",
18
+ "justMyCode": false,
19
+ "preLaunchTask": "build-task",
20
+ "env": {
21
+ "ERROR_UNCATCHED": "True"
22
+ }
23
+ }
24
+ ]
25
+ }
@@ -4,6 +4,6 @@
4
4
  "yaml.validate": true,
5
5
  "yaml.hover": true,
6
6
  "yaml.schemas": {
7
- "https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/schemas/v3.0/schema.json": "twitter-openapi/**/*.yaml"
7
+ "https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/schemas/v3.0/schema.json": "src/**/*.yaml"
8
8
  }
9
9
  }
@@ -0,0 +1,45 @@
1
+ {
2
+ "version": "2.0.0",
3
+ "tasks": [
4
+ {
5
+ "label": "build-task",
6
+ "type": "shell",
7
+ "linux": {
8
+ "command": [
9
+ "python3 tools/build.py;",
10
+ "java -jar openapi-generator-cli.jar generate -c test/python/openapi-generator-config.yaml -g python;",
11
+ "python3 -m pip install ./python_generated;"
12
+ ]
13
+ },
14
+ "windows": {
15
+ "command": [
16
+ ".venv/Scripts/activate;",
17
+ "python tools/build.py;",
18
+ "java -jar openapi-generator-cli.jar generate -c test/python/openapi-generator-config.yaml -g python;",
19
+ "python -m pip install ./python_generated;"
20
+ ]
21
+ }
22
+ },
23
+ {
24
+ "label": "init-venv",
25
+ "type": "shell",
26
+ "runOptions": {
27
+ "runOn": "folderOpen"
28
+ },
29
+ "linux": {
30
+ "command": [
31
+ "python3 -m venv .venv;",
32
+ ".venv/bin/python3 -m pip install -r requirements.txt;",
33
+ "wget https://github.com/fa0311/openapi-generator/releases/download/twitter_openapi_python_1.3.0/openapi-generator-cli.jar -O openapi-generator-cli.jar;"
34
+ ]
35
+ },
36
+ "windows": {
37
+ "command": [
38
+ "python -m venv .venv;",
39
+ ".venv/Scripts/python -m pip install -r requirements.txt;",
40
+ "Invoke-WebRequest https://github.com/fa0311/openapi-generator/releases/download/twitter_openapi_python_1.3.0/openapi-generator-cli.jar -OutFile openapi-generator-cli.jar;"
41
+ ]
42
+ }
43
+ }
44
+ ]
45
+ }
@@ -0,0 +1,13 @@
1
+ # CONTRIBUTING
2
+
3
+ - `src` *.yaml files should be written according to the [v3.0/schema.json](https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/schemas/v3.0/schema.json)
4
+ - `dist` Do not rewrite this file as it is an automatically generated OpenAPI file.
5
+ - `dist` Do not include this in the pull request due to potential conflicts.
6
+
7
+ Users using vscode can build and test with the GUI.
8
+ [.vscode/launch.json](.vscode/launch.json) is a configuration file for vscode.
9
+
10
+ ## Good first issues
11
+
12
+ - Add a new endpoint
13
+ - Add type to `type: object # todo`
@@ -2,6 +2,7 @@
2
2
 
3
3
  Twitter OpenAPI(Swagger) specification
4
4
 
5
+ - [Python](https://github.com/fa0311/twitter_openapi_python)
5
6
  - [Dart](https://github.com/fa0311/twitter_openapi_dart)
6
7
  - [TypeScript](https://github.com/fa0311/twitter-openapi-typescript)
7
8
  - [React Documents](https://github.com/fa0311/twitter-openapi-docs)
@@ -20,8 +21,7 @@ Note that the license also inherits to the output.
20
21
 
21
22
  ## Contribute
22
23
 
23
- - `src` *.yaml files should be written according to the [v3.0/schema.json](https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/schemas/v3.0/schema.json)
24
- - `dist` Do not rewrite this file as it is an automatically generated OpenAPI file.
24
+ [CONTRIBUTING.md](./CONTRIBUTING.md)
25
25
 
26
26
  ### build
27
27
 
@@ -110,6 +110,8 @@ paths:
110
110
  $ref: ./paths/user.yaml#/paths/~1graphql~1{pathQueryId}~1UserByRestId
111
111
  /graphql/{pathQueryId}/UserByScreenName:
112
112
  $ref: ./paths/user.yaml#/paths/~1graphql~1{pathQueryId}~1UserByScreenName
113
+ /graphql/{pathQueryId}/UserHighlightsTweets:
114
+ $ref: ./paths/usertweets.yaml#/paths/~1graphql~1{pathQueryId}~1UserHighlightsTweets
113
115
  /graphql/{pathQueryId}/UserMedia:
114
116
  $ref: ./paths/usertweets.yaml#/paths/~1graphql~1{pathQueryId}~1UserMedia
115
117
  /graphql/{pathQueryId}/UserTweets:
@@ -133,11 +135,13 @@ security:
133
135
  servers:
134
136
  - url: https://twitter.com/i/api
135
137
  tags:
136
- - description: response User
138
+ - description: Responses containing User objects.
137
139
  name: user
138
- - description: response User list
140
+ - description: Responses containing List[User] objects.
141
+ name: users
142
+ - description: Responses containing instruction objects.
139
143
  name: user-list
140
- - description: response tweet
144
+ - description: Responses containing instruction objects.
141
145
  name: tweet
142
146
  - description: post
143
147
  name: post
@@ -74,7 +74,9 @@ paths:
74
74
  content:
75
75
  application/json:
76
76
  schema:
77
- $ref: '#/components/schemas/BookmarksResponse'
77
+ oneOf:
78
+ - $ref: '#/components/schemas/BookmarksResponse'
79
+ - $ref: ./../schemas/error.yaml#/components/schemas/Errors
78
80
  description: Successful operation
79
81
  headers:
80
82
  x-connection-hash:
@@ -91,7 +91,9 @@ paths:
91
91
  content:
92
92
  application/json:
93
93
  schema:
94
- $ref: '#/components/schemas/FollowResponse'
94
+ oneOf:
95
+ - $ref: '#/components/schemas/FollowResponse'
96
+ - $ref: ./../schemas/error.yaml#/components/schemas/Errors
95
97
  description: Successful operation
96
98
  headers:
97
99
  x-connection-hash:
@@ -182,7 +184,9 @@ paths:
182
184
  content:
183
185
  application/json:
184
186
  schema:
185
- $ref: '#/components/schemas/FollowResponse'
187
+ oneOf:
188
+ - $ref: '#/components/schemas/FollowResponse'
189
+ - $ref: ./../schemas/error.yaml#/components/schemas/Errors
186
190
  description: Successful operation
187
191
  headers:
188
192
  x-connection-hash:
@@ -264,7 +268,9 @@ paths:
264
268
  content:
265
269
  application/json:
266
270
  schema:
267
- $ref: '#/components/schemas/FollowResponse'
271
+ oneOf:
272
+ - $ref: '#/components/schemas/FollowResponse'
273
+ - $ref: ./../schemas/error.yaml#/components/schemas/Errors
268
274
  description: Successful operation
269
275
  headers:
270
276
  x-connection-hash: