twitter-openapi-typescript-generated 0.0.7 → 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 (454) hide show
  1. package/.openapi-generator/FILES +51 -1
  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 +47 -19
  17. package/dist/apis/TweetApi.d.ts.map +1 -1
  18. package/dist/apis/TweetApi.js +187 -9
  19. package/dist/apis/TweetApi.js.map +1 -1
  20. package/dist/apis/UserApi.d.ts +16 -3
  21. package/dist/apis/UserApi.d.ts.map +1 -1
  22. package/dist/apis/UserApi.js +84 -1
  23. package/dist/apis/UserApi.js.map +1 -1
  24. package/dist/apis/UserListApi.d.ts +45 -5
  25. package/dist/apis/UserListApi.d.ts.map +1 -1
  26. package/dist/apis/UserListApi.js +257 -2
  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/ContentItemType.d.ts +2 -0
  37. package/dist/models/ContentItemType.d.ts.map +1 -1
  38. package/dist/models/ContentItemType.js +3 -1
  39. package/dist/models/ContentItemType.js.map +1 -1
  40. package/dist/models/CursorType.d.ts +27 -0
  41. package/dist/models/CursorType.d.ts.map +1 -0
  42. package/dist/models/CursorType.js +40 -0
  43. package/dist/models/CursorType.js.map +1 -0
  44. package/dist/models/Entities.d.ts +12 -6
  45. package/dist/models/Entities.d.ts.map +1 -1
  46. package/dist/models/ErrorExtensions.d.ts +63 -0
  47. package/dist/models/ErrorExtensions.d.ts.map +1 -0
  48. package/dist/models/ErrorExtensions.js +67 -0
  49. package/dist/models/ErrorExtensions.js.map +1 -0
  50. package/dist/models/Errors.d.ts +32 -0
  51. package/dist/models/Errors.d.ts.map +1 -0
  52. package/dist/models/Errors.js +51 -0
  53. package/dist/models/Errors.js.map +1 -0
  54. package/dist/models/GetBookmarks200Response.d.ts +23 -0
  55. package/dist/models/GetBookmarks200Response.d.ts.map +1 -0
  56. package/dist/models/GetBookmarks200Response.js +57 -0
  57. package/dist/models/GetBookmarks200Response.js.map +1 -0
  58. package/dist/models/GetFavoriters200Response.d.ts +23 -0
  59. package/dist/models/GetFavoriters200Response.d.ts.map +1 -0
  60. package/dist/models/GetFavoriters200Response.js +57 -0
  61. package/dist/models/GetFavoriters200Response.js.map +1 -0
  62. package/dist/models/GetFollowers200Response.d.ts +23 -0
  63. package/dist/models/GetFollowers200Response.d.ts.map +1 -0
  64. package/dist/models/GetFollowers200Response.js +57 -0
  65. package/dist/models/GetFollowers200Response.js.map +1 -0
  66. package/dist/models/GetHomeLatestTimeline200Response.d.ts +23 -0
  67. package/dist/models/GetHomeLatestTimeline200Response.d.ts.map +1 -0
  68. package/dist/models/GetHomeLatestTimeline200Response.js +57 -0
  69. package/dist/models/GetHomeLatestTimeline200Response.js.map +1 -0
  70. package/dist/models/GetLikes200Response.d.ts +23 -0
  71. package/dist/models/GetLikes200Response.d.ts.map +1 -0
  72. package/dist/models/GetLikes200Response.js +57 -0
  73. package/dist/models/GetLikes200Response.js.map +1 -0
  74. package/dist/models/GetListLatestTweetsTimeline200Response.d.ts +23 -0
  75. package/dist/models/GetListLatestTweetsTimeline200Response.d.ts.map +1 -0
  76. package/dist/models/GetListLatestTweetsTimeline200Response.js +57 -0
  77. package/dist/models/GetListLatestTweetsTimeline200Response.js.map +1 -0
  78. package/dist/models/GetProfileSpotlightsQuery200Response.d.ts +23 -0
  79. package/dist/models/GetProfileSpotlightsQuery200Response.d.ts.map +1 -0
  80. package/dist/models/GetProfileSpotlightsQuery200Response.js +57 -0
  81. package/dist/models/GetProfileSpotlightsQuery200Response.js.map +1 -0
  82. package/dist/models/GetRetweeters200Response.d.ts +23 -0
  83. package/dist/models/GetRetweeters200Response.d.ts.map +1 -0
  84. package/dist/models/GetRetweeters200Response.js +57 -0
  85. package/dist/models/GetRetweeters200Response.js.map +1 -0
  86. package/dist/models/GetSearchTimeline200Response.d.ts +23 -0
  87. package/dist/models/GetSearchTimeline200Response.d.ts.map +1 -0
  88. package/dist/models/GetSearchTimeline200Response.js +57 -0
  89. package/dist/models/GetSearchTimeline200Response.js.map +1 -0
  90. package/dist/models/GetTweetDetail200Response.d.ts +23 -0
  91. package/dist/models/GetTweetDetail200Response.d.ts.map +1 -0
  92. package/dist/models/GetTweetDetail200Response.js +57 -0
  93. package/dist/models/GetTweetDetail200Response.js.map +1 -0
  94. package/dist/models/GetUserByRestId200Response.d.ts +23 -0
  95. package/dist/models/GetUserByRestId200Response.d.ts.map +1 -0
  96. package/dist/models/GetUserByRestId200Response.js +57 -0
  97. package/dist/models/GetUserByRestId200Response.js.map +1 -0
  98. package/dist/models/GetUserHighlightsTweets200Response.d.ts +23 -0
  99. package/dist/models/GetUserHighlightsTweets200Response.d.ts.map +1 -0
  100. package/dist/models/GetUserHighlightsTweets200Response.js +57 -0
  101. package/dist/models/GetUserHighlightsTweets200Response.js.map +1 -0
  102. package/dist/models/GetUsersByRestIds200Response.d.ts +23 -0
  103. package/dist/models/GetUsersByRestIds200Response.d.ts.map +1 -0
  104. package/dist/models/GetUsersByRestIds200Response.js +57 -0
  105. package/dist/models/GetUsersByRestIds200Response.js.map +1 -0
  106. package/dist/models/InstructionType.d.ts +3 -0
  107. package/dist/models/InstructionType.d.ts.map +1 -1
  108. package/dist/models/InstructionType.js +3 -0
  109. package/dist/models/InstructionType.js.map +1 -1
  110. package/dist/models/InstructionUnion.d.ts +9 -0
  111. package/dist/models/InstructionUnion.d.ts.map +1 -1
  112. package/dist/models/InstructionUnion.js +15 -0
  113. package/dist/models/InstructionUnion.js.map +1 -1
  114. package/dist/models/ItemContentUnion.d.ts +9 -3
  115. package/dist/models/ItemContentUnion.d.ts.map +1 -1
  116. package/dist/models/ItemContentUnion.js +17 -7
  117. package/dist/models/ItemContentUnion.js.map +1 -1
  118. package/dist/models/ListLatestTweetsTimelineResponse.d.ts +33 -0
  119. package/dist/models/ListLatestTweetsTimelineResponse.d.ts.map +1 -0
  120. package/dist/models/ListLatestTweetsTimelineResponse.js +52 -0
  121. package/dist/models/ListLatestTweetsTimelineResponse.js.map +1 -0
  122. package/dist/models/Location.d.ts +38 -0
  123. package/dist/models/Location.d.ts.map +1 -0
  124. package/dist/models/Location.js +54 -0
  125. package/dist/models/Location.js.map +1 -0
  126. package/dist/models/Media.d.ts +8 -4
  127. package/dist/models/Media.d.ts.map +1 -1
  128. package/dist/models/MediaOriginalInfo.d.ts +4 -2
  129. package/dist/models/MediaOriginalInfo.d.ts.map +1 -1
  130. package/dist/models/ModelError.d.ts +89 -0
  131. package/dist/models/ModelError.d.ts.map +1 -0
  132. package/dist/models/ModelError.js +81 -0
  133. package/dist/models/ModelError.js.map +1 -0
  134. package/dist/models/ModuleEntry.d.ts +4 -2
  135. package/dist/models/ModuleEntry.d.ts.map +1 -1
  136. package/dist/models/Other200Response.d.ts +22 -0
  137. package/dist/models/Other200Response.d.ts.map +1 -0
  138. package/dist/models/Other200Response.js +53 -0
  139. package/dist/models/Other200Response.js.map +1 -0
  140. package/dist/models/PostCreateRetweet200Response.d.ts +23 -0
  141. package/dist/models/PostCreateRetweet200Response.d.ts.map +1 -0
  142. package/dist/models/PostCreateRetweet200Response.js +57 -0
  143. package/dist/models/PostCreateRetweet200Response.js.map +1 -0
  144. package/dist/models/PostCreateTweet200Response.d.ts +23 -0
  145. package/dist/models/PostCreateTweet200Response.d.ts.map +1 -0
  146. package/dist/models/PostCreateTweet200Response.js +57 -0
  147. package/dist/models/PostCreateTweet200Response.js.map +1 -0
  148. package/dist/models/PostDeleteRetweet200Response.d.ts +23 -0
  149. package/dist/models/PostDeleteRetweet200Response.d.ts.map +1 -0
  150. package/dist/models/PostDeleteRetweet200Response.js +57 -0
  151. package/dist/models/PostDeleteRetweet200Response.js.map +1 -0
  152. package/dist/models/PostDeleteTweet200Response.d.ts +23 -0
  153. package/dist/models/PostDeleteTweet200Response.d.ts.map +1 -0
  154. package/dist/models/PostDeleteTweet200Response.js +57 -0
  155. package/dist/models/PostDeleteTweet200Response.js.map +1 -0
  156. package/dist/models/PostFavoriteTweet200Response.d.ts +23 -0
  157. package/dist/models/PostFavoriteTweet200Response.d.ts.map +1 -0
  158. package/dist/models/PostFavoriteTweet200Response.js +57 -0
  159. package/dist/models/PostFavoriteTweet200Response.js.map +1 -0
  160. package/dist/models/PostUnfavoriteTweet200Response.d.ts +23 -0
  161. package/dist/models/PostUnfavoriteTweet200Response.d.ts.map +1 -0
  162. package/dist/models/PostUnfavoriteTweet200Response.js +57 -0
  163. package/dist/models/PostUnfavoriteTweet200Response.js.map +1 -0
  164. package/dist/models/SearchByRawQuery.d.ts +33 -0
  165. package/dist/models/SearchByRawQuery.d.ts.map +1 -0
  166. package/dist/models/SearchByRawQuery.js +52 -0
  167. package/dist/models/SearchByRawQuery.js.map +1 -0
  168. package/dist/models/SearchTimeline.d.ts +33 -0
  169. package/dist/models/SearchTimeline.d.ts.map +1 -0
  170. package/dist/models/SearchTimeline.js +52 -0
  171. package/dist/models/SearchTimeline.js.map +1 -0
  172. package/dist/models/SearchTimelineData.d.ts +33 -0
  173. package/dist/models/SearchTimelineData.d.ts.map +1 -0
  174. package/dist/models/SearchTimelineData.js +52 -0
  175. package/dist/models/SearchTimelineData.js.map +1 -0
  176. package/dist/models/SearchTimelineResponse.d.ts +33 -0
  177. package/dist/models/SearchTimelineResponse.d.ts.map +1 -0
  178. package/dist/models/SearchTimelineResponse.js +52 -0
  179. package/dist/models/SearchTimelineResponse.js.map +1 -0
  180. package/dist/models/Timeline.d.ts +8 -4
  181. package/dist/models/Timeline.d.ts.map +1 -1
  182. package/dist/models/TimelineAddToModule.d.ts +52 -0
  183. package/dist/models/TimelineAddToModule.d.ts.map +1 -0
  184. package/dist/models/TimelineAddToModule.js +62 -0
  185. package/dist/models/TimelineAddToModule.js.map +1 -0
  186. package/dist/models/TimelineMessagePrompt.d.ts +34 -0
  187. package/dist/models/TimelineMessagePrompt.d.ts.map +1 -0
  188. package/dist/models/TimelineMessagePrompt.js +59 -0
  189. package/dist/models/TimelineMessagePrompt.js.map +1 -0
  190. package/dist/models/TimelinePrompt.d.ts +34 -0
  191. package/dist/models/TimelinePrompt.d.ts.map +1 -0
  192. package/dist/models/TimelinePrompt.js +59 -0
  193. package/dist/models/TimelinePrompt.js.map +1 -0
  194. package/dist/models/TimelineReplaceEntry.d.ts +46 -0
  195. package/dist/models/TimelineReplaceEntry.d.ts.map +1 -0
  196. package/dist/models/TimelineReplaceEntry.js +59 -0
  197. package/dist/models/TimelineReplaceEntry.js.map +1 -0
  198. package/dist/models/TimelineShowAlert.d.ts +101 -0
  199. package/dist/models/TimelineShowAlert.d.ts.map +1 -0
  200. package/dist/models/TimelineShowAlert.js +85 -0
  201. package/dist/models/TimelineShowAlert.js.map +1 -0
  202. package/dist/models/TimelineShowAlertRichText.d.ts +40 -0
  203. package/dist/models/TimelineShowAlertRichText.d.ts.map +1 -0
  204. package/dist/models/TimelineShowAlertRichText.js +53 -0
  205. package/dist/models/TimelineShowAlertRichText.js.map +1 -0
  206. package/dist/models/TimelineTimelineCursor.d.ts +3 -13
  207. package/dist/models/TimelineTimelineCursor.d.ts.map +1 -1
  208. package/dist/models/TimelineTimelineCursor.js +4 -13
  209. package/dist/models/TimelineTimelineCursor.js.map +1 -1
  210. package/dist/models/TimelineTimelineItem.d.ts +8 -4
  211. package/dist/models/TimelineTimelineItem.d.ts.map +1 -1
  212. package/dist/models/TimelineTimelineModule.d.ts +12 -6
  213. package/dist/models/TimelineTimelineModule.d.ts.map +1 -1
  214. package/dist/models/TimelineTweet.d.ts +4 -2
  215. package/dist/models/TimelineTweet.d.ts.map +1 -1
  216. package/dist/models/Tracing.d.ts +32 -0
  217. package/dist/models/Tracing.d.ts.map +1 -0
  218. package/dist/models/Tracing.js +51 -0
  219. package/dist/models/Tracing.js.map +1 -0
  220. package/dist/models/Tweet.d.ts +5 -3
  221. package/dist/models/Tweet.d.ts.map +1 -1
  222. package/dist/models/Tweet.js +1 -2
  223. package/dist/models/Tweet.js.map +1 -1
  224. package/dist/models/TweetFavoritersResponse.d.ts +33 -0
  225. package/dist/models/TweetFavoritersResponse.d.ts.map +1 -0
  226. package/dist/models/TweetFavoritersResponse.js +52 -0
  227. package/dist/models/TweetFavoritersResponse.js.map +1 -0
  228. package/dist/models/TweetFavoritersResponseData.d.ts +33 -0
  229. package/dist/models/TweetFavoritersResponseData.d.ts.map +1 -0
  230. package/dist/models/TweetFavoritersResponseData.js +52 -0
  231. package/dist/models/TweetFavoritersResponseData.js.map +1 -0
  232. package/dist/models/TweetRetweetersResponse.d.ts +33 -0
  233. package/dist/models/TweetRetweetersResponse.d.ts.map +1 -0
  234. package/dist/models/TweetRetweetersResponse.js +52 -0
  235. package/dist/models/TweetRetweetersResponse.js.map +1 -0
  236. package/dist/models/TweetRetweetersResponseData.d.ts +33 -0
  237. package/dist/models/TweetRetweetersResponseData.d.ts.map +1 -0
  238. package/dist/models/TweetRetweetersResponseData.js +52 -0
  239. package/dist/models/TweetRetweetersResponseData.js.map +1 -0
  240. package/dist/models/TweetTombstone.d.ts +1 -0
  241. package/dist/models/TweetTombstone.d.ts.map +1 -1
  242. package/dist/models/TweetTombstone.js +13 -6
  243. package/dist/models/TweetTombstone.js.map +1 -1
  244. package/dist/models/TypeName.d.ts +3 -0
  245. package/dist/models/TypeName.d.ts.map +1 -1
  246. package/dist/models/TypeName.js +4 -1
  247. package/dist/models/TypeName.js.map +1 -1
  248. package/dist/models/User.d.ts +8 -4
  249. package/dist/models/User.d.ts.map +1 -1
  250. package/dist/models/UserHighlightsTweetsData.d.ts +33 -0
  251. package/dist/models/UserHighlightsTweetsData.d.ts.map +1 -0
  252. package/dist/models/UserHighlightsTweetsData.js +52 -0
  253. package/dist/models/UserHighlightsTweetsData.js.map +1 -0
  254. package/dist/models/UserHighlightsTweetsResponse.d.ts +33 -0
  255. package/dist/models/UserHighlightsTweetsResponse.d.ts.map +1 -0
  256. package/dist/models/UserHighlightsTweetsResponse.js +52 -0
  257. package/dist/models/UserHighlightsTweetsResponse.js.map +1 -0
  258. package/dist/models/UserHighlightsTweetsResult.d.ts +40 -0
  259. package/dist/models/UserHighlightsTweetsResult.d.ts.map +1 -0
  260. package/dist/models/UserHighlightsTweetsResult.js +56 -0
  261. package/dist/models/UserHighlightsTweetsResult.js.map +1 -0
  262. package/dist/models/UserHighlightsTweetsTimeline.d.ts +33 -0
  263. package/dist/models/UserHighlightsTweetsTimeline.d.ts.map +1 -0
  264. package/dist/models/UserHighlightsTweetsTimeline.js +52 -0
  265. package/dist/models/UserHighlightsTweetsTimeline.js.map +1 -0
  266. package/dist/models/UserHighlightsTweetsUser.d.ts +33 -0
  267. package/dist/models/UserHighlightsTweetsUser.d.ts.map +1 -0
  268. package/dist/models/UserHighlightsTweetsUser.js +52 -0
  269. package/dist/models/UserHighlightsTweetsUser.js.map +1 -0
  270. package/dist/models/UserLegacy.d.ts +9 -7
  271. package/dist/models/UserLegacy.d.ts.map +1 -1
  272. package/dist/models/UserLegacy.js +5 -10
  273. package/dist/models/UserLegacy.js.map +1 -1
  274. package/dist/models/UserResultByScreenNameResult.d.ts +4 -2
  275. package/dist/models/UserResultByScreenNameResult.d.ts.map +1 -1
  276. package/dist/models/UserResults.d.ts +3 -3
  277. package/dist/models/UserResults.d.ts.map +1 -1
  278. package/dist/models/UserResults.js +3 -3
  279. package/dist/models/UserResults.js.map +1 -1
  280. package/dist/models/UserUnavailable.d.ts +39 -0
  281. package/dist/models/UserUnavailable.d.ts.map +1 -0
  282. package/dist/models/UserUnavailable.js +55 -0
  283. package/dist/models/UserUnavailable.js.map +1 -0
  284. package/dist/models/UserUnion.d.ts +27 -0
  285. package/dist/models/UserUnion.d.ts.map +1 -0
  286. package/dist/models/UserUnion.js +65 -0
  287. package/dist/models/UserUnion.js.map +1 -0
  288. package/dist/models/UsersResponse.d.ts +33 -0
  289. package/dist/models/UsersResponse.d.ts.map +1 -0
  290. package/dist/models/UsersResponse.js +52 -0
  291. package/dist/models/UsersResponse.js.map +1 -0
  292. package/dist/models/UsersResponseData.d.ts +33 -0
  293. package/dist/models/UsersResponseData.d.ts.map +1 -0
  294. package/dist/models/UsersResponseData.js +52 -0
  295. package/dist/models/UsersResponseData.js.map +1 -0
  296. package/dist/models/index.d.ts +50 -1
  297. package/dist/models/index.d.ts.map +1 -1
  298. package/dist/models/index.js +50 -1
  299. package/dist/models/index.js.map +1 -1
  300. package/package.json +3 -2
  301. package/src/apis/DefaultApi.ts +6 -6
  302. package/src/apis/OtherApi.ts +6 -6
  303. package/src/apis/PostApi.ts +36 -36
  304. package/src/apis/TweetApi.ts +234 -42
  305. package/src/apis/UserApi.ts +90 -6
  306. package/src/apis/UserListApi.ts +276 -9
  307. package/src/apis/UsersApi.ts +114 -0
  308. package/src/apis/index.ts +1 -0
  309. package/src/models/ContentItemType.ts +3 -1
  310. package/src/models/CursorType.ts +41 -0
  311. package/src/models/Entities.ts +6 -6
  312. package/src/models/ErrorExtensions.ts +118 -0
  313. package/src/models/Errors.ts +66 -0
  314. package/src/models/GetBookmarks200Response.ts +65 -0
  315. package/src/models/GetFavoriters200Response.ts +65 -0
  316. package/src/models/GetFollowers200Response.ts +65 -0
  317. package/src/models/GetHomeLatestTimeline200Response.ts +65 -0
  318. package/src/models/GetLikes200Response.ts +65 -0
  319. package/src/models/GetListLatestTweetsTimeline200Response.ts +65 -0
  320. package/src/models/GetProfileSpotlightsQuery200Response.ts +65 -0
  321. package/src/models/GetRetweeters200Response.ts +65 -0
  322. package/src/models/GetSearchTimeline200Response.ts +65 -0
  323. package/src/models/GetTweetDetail200Response.ts +65 -0
  324. package/src/models/GetUserByRestId200Response.ts +65 -0
  325. package/src/models/GetUserHighlightsTweets200Response.ts +65 -0
  326. package/src/models/GetUsersByRestIds200Response.ts +65 -0
  327. package/src/models/InstructionType.ts +3 -0
  328. package/src/models/InstructionUnion.ts +34 -1
  329. package/src/models/ItemContentUnion.ts +30 -8
  330. package/src/models/{ListTweetsTimelineResponse.ts → ListLatestTweetsTimelineResponse.ts} +9 -9
  331. package/src/models/Location.ts +75 -0
  332. package/src/models/Media.ts +4 -4
  333. package/src/models/MediaOriginalInfo.ts +2 -2
  334. package/src/models/ModelError.ts +166 -0
  335. package/src/models/ModuleEntry.ts +2 -2
  336. package/src/models/Other200Response.ts +55 -0
  337. package/src/models/PostCreateRetweet200Response.ts +65 -0
  338. package/src/models/PostCreateTweet200Response.ts +65 -0
  339. package/src/models/PostDeleteRetweet200Response.ts +65 -0
  340. package/src/models/PostDeleteTweet200Response.ts +65 -0
  341. package/src/models/PostFavoriteTweet200Response.ts +65 -0
  342. package/src/models/PostUnfavoriteTweet200Response.ts +65 -0
  343. package/src/models/SearchByRawQuery.ts +73 -0
  344. package/src/models/SearchTimeline.ts +73 -0
  345. package/src/models/SearchTimelineData.ts +73 -0
  346. package/src/models/SearchTimelineResponse.ts +73 -0
  347. package/src/models/Timeline.ts +4 -4
  348. package/src/models/TimelineAddToModule.ts +105 -0
  349. package/src/models/TimelineMessagePrompt.ts +75 -0
  350. package/src/models/TimelinePrompt.ts +75 -0
  351. package/src/models/TimelineReplaceEntry.ts +97 -0
  352. package/src/models/TimelineShowAlert.ts +169 -0
  353. package/src/models/TimelineShowAlertRichText.ts +73 -0
  354. package/src/models/TimelineTimelineCursor.ts +10 -18
  355. package/src/models/TimelineTimelineItem.ts +4 -4
  356. package/src/models/TimelineTimelineModule.ts +6 -6
  357. package/src/models/TimelineTweet.ts +2 -2
  358. package/src/models/Tracing.ts +66 -0
  359. package/src/models/Tweet.ts +4 -5
  360. package/src/models/TweetFavoritersResponse.ts +73 -0
  361. package/src/models/TweetFavoritersResponseData.ts +73 -0
  362. package/src/models/TweetRetweetersResponse.ts +73 -0
  363. package/src/models/TweetRetweetersResponseData.ts +73 -0
  364. package/src/models/TweetTombstone.ts +3 -0
  365. package/src/models/TypeName.ts +4 -1
  366. package/src/models/User.ts +4 -4
  367. package/src/models/UserHighlightsTweetsData.ts +73 -0
  368. package/src/models/UserHighlightsTweetsResponse.ts +73 -0
  369. package/src/models/UserHighlightsTweetsResult.ts +88 -0
  370. package/src/models/UserHighlightsTweetsTimeline.ts +73 -0
  371. package/src/models/UserHighlightsTweetsUser.ts +73 -0
  372. package/src/models/UserLegacy.ts +12 -17
  373. package/src/models/UserResultByScreenNameResult.ts +2 -2
  374. package/src/models/UserResults.ts +9 -9
  375. package/src/models/UserUnavailable.ts +82 -0
  376. package/src/models/UserUnion.ts +72 -0
  377. package/src/models/UsersResponse.ts +73 -0
  378. package/src/models/UsersResponseData.ts +73 -0
  379. package/src/models/index.ts +50 -1
  380. package/tools/openapi-generator-config.yaml +1 -1
  381. package/tools/win/replace.py +1 -1
  382. package/twitter-openapi/.github/workflows/test-build.yaml +87 -0
  383. package/twitter-openapi/.github/workflows/test-python.yaml +100 -0
  384. package/twitter-openapi/.vscode/launch.json +25 -0
  385. package/twitter-openapi/.vscode/settings.json +1 -1
  386. package/twitter-openapi/.vscode/tasks.json +45 -0
  387. package/twitter-openapi/CONTRIBUTING.md +13 -0
  388. package/twitter-openapi/README.md +2 -2
  389. package/twitter-openapi/dist/compatible/openapi-3.0.yaml +19 -3
  390. package/twitter-openapi/dist/compatible/paths/bookmarks.yaml +3 -1
  391. package/twitter-openapi/dist/compatible/paths/follow.yaml +99 -2
  392. package/twitter-openapi/dist/compatible/paths/other.yaml +2 -1
  393. package/twitter-openapi/dist/compatible/paths/post.yaml +18 -6
  394. package/twitter-openapi/dist/compatible/paths/profile.yaml +5 -2
  395. package/twitter-openapi/dist/compatible/paths/timeline.yaml +128 -5
  396. package/twitter-openapi/dist/compatible/paths/tweet.yaml +199 -1
  397. package/twitter-openapi/dist/compatible/paths/user.yaml +151 -1
  398. package/twitter-openapi/dist/compatible/paths/usertweets.yaml +140 -4
  399. package/twitter-openapi/dist/compatible/schemas/content.yaml +35 -15
  400. package/twitter-openapi/dist/compatible/schemas/error.yaml +94 -0
  401. package/twitter-openapi/dist/compatible/schemas/instruction.yaml +77 -4
  402. package/twitter-openapi/dist/compatible/schemas/timeline.yaml +2 -0
  403. package/twitter-openapi/dist/compatible/schemas/tweet.yaml +8 -1
  404. package/twitter-openapi/dist/compatible/schemas/typename.yaml +3 -0
  405. package/twitter-openapi/dist/compatible/schemas/user.yaml +23 -7
  406. package/twitter-openapi/dist/docs/openapi-3.0.yaml +19 -3
  407. package/twitter-openapi/dist/docs/paths/bookmarks.yaml +3 -1
  408. package/twitter-openapi/dist/docs/paths/follow.yaml +201 -2
  409. package/twitter-openapi/dist/docs/paths/other.yaml +2 -1
  410. package/twitter-openapi/dist/docs/paths/post.yaml +18 -6
  411. package/twitter-openapi/dist/docs/paths/profile.yaml +5 -2
  412. package/twitter-openapi/dist/docs/paths/timeline.yaml +235 -5
  413. package/twitter-openapi/dist/docs/paths/tweet.yaml +389 -1
  414. package/twitter-openapi/dist/docs/paths/user.yaml +221 -1
  415. package/twitter-openapi/dist/docs/paths/usertweets.yaml +250 -4
  416. package/twitter-openapi/dist/docs/schemas/content.yaml +35 -15
  417. package/twitter-openapi/dist/docs/schemas/error.yaml +94 -0
  418. package/twitter-openapi/dist/docs/schemas/instruction.yaml +77 -4
  419. package/twitter-openapi/dist/docs/schemas/timeline.yaml +2 -0
  420. package/twitter-openapi/dist/docs/schemas/tweet.yaml +8 -1
  421. package/twitter-openapi/dist/docs/schemas/typename.yaml +3 -0
  422. package/twitter-openapi/dist/docs/schemas/user.yaml +23 -7
  423. package/twitter-openapi/src/config/placeholder.json +190 -0
  424. package/twitter-openapi/src/openapi/openapi-3.0.yaml +5 -3
  425. package/twitter-openapi/src/openapi/paths/bookmarks.yaml +3 -1
  426. package/twitter-openapi/src/openapi/paths/follow.yaml +22 -2
  427. package/twitter-openapi/src/openapi/paths/other.yaml +2 -1
  428. package/twitter-openapi/src/openapi/paths/post.yaml +18 -6
  429. package/twitter-openapi/src/openapi/paths/profile.yaml +6 -3
  430. package/twitter-openapi/src/openapi/paths/timeline.yaml +54 -4
  431. package/twitter-openapi/src/openapi/paths/tweet.yaml +63 -1
  432. package/twitter-openapi/src/openapi/paths/user.yaml +51 -1
  433. package/twitter-openapi/src/openapi/paths/usertweets.yaml +66 -4
  434. package/twitter-openapi/src/openapi/schemas/content.yaml +47 -18
  435. package/twitter-openapi/src/openapi/schemas/error.yaml +99 -0
  436. package/twitter-openapi/src/openapi/schemas/instruction.yaml +79 -5
  437. package/twitter-openapi/src/openapi/schemas/timeline.yaml +4 -2
  438. package/twitter-openapi/src/openapi/schemas/tweet.yaml +16 -9
  439. package/twitter-openapi/src/openapi/schemas/typename.yaml +3 -0
  440. package/twitter-openapi/src/openapi/schemas/user.yaml +33 -10
  441. package/twitter-openapi/test/dart-dio/openapi-generator-config.yaml +2 -0
  442. package/twitter-openapi/test/local.sh +6 -0
  443. package/twitter-openapi/test/python/openapi-generator-config.yaml +4 -0
  444. package/twitter-openapi/test/python/test_serialize.py +160 -0
  445. package/twitter-openapi/test/typescript-fetch/openapi-generator-config.yaml +4 -0
  446. package/twitter-openapi/tools/__pycache__/build_config.cpython-310.pyc +0 -0
  447. package/twitter-openapi/tools/__pycache__/hooks.cpython-310.pyc +0 -0
  448. package/twitter-openapi/tools/build_config.py +1 -1
  449. package/twitter-openapi/tools/hooks.py +23 -0
  450. package/twitter-openapi/tools/login.py +17 -0
  451. package/dist/models/ListTweetsTimelineResponse.d.ts +0 -33
  452. package/dist/models/ListTweetsTimelineResponse.d.ts.map +0 -1
  453. package/dist/models/ListTweetsTimelineResponse.js +0 -52
  454. package/dist/models/ListTweetsTimelineResponse.js.map +0 -1
@@ -0,0 +1,73 @@
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 { Timeline } from './Timeline';
17
+ import {
18
+ TimelineFromJSON,
19
+ TimelineFromJSONTyped,
20
+ TimelineToJSON,
21
+ } from './Timeline';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface SearchTimeline
27
+ */
28
+ export interface SearchTimeline {
29
+ /**
30
+ *
31
+ * @type {Timeline}
32
+ * @memberof SearchTimeline
33
+ */
34
+ timeline: Timeline;
35
+ }
36
+
37
+ /**
38
+ * Check if a given object implements the SearchTimeline interface.
39
+ */
40
+ export function instanceOfSearchTimeline(value: object): boolean {
41
+ let isInstance = true;
42
+ isInstance = isInstance && "timeline" in value;
43
+
44
+ return isInstance;
45
+ }
46
+
47
+ export function SearchTimelineFromJSON(json: any): SearchTimeline {
48
+ return SearchTimelineFromJSONTyped(json, false);
49
+ }
50
+
51
+ export function SearchTimelineFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchTimeline {
52
+ if ((json === undefined) || (json === null)) {
53
+ return json;
54
+ }
55
+ return {
56
+
57
+ 'timeline': TimelineFromJSON(json['timeline']),
58
+ };
59
+ }
60
+
61
+ export function SearchTimelineToJSON(value?: SearchTimeline | null): any {
62
+ if (value === undefined) {
63
+ return undefined;
64
+ }
65
+ if (value === null) {
66
+ return null;
67
+ }
68
+ return {
69
+
70
+ 'timeline': TimelineToJSON(value.timeline),
71
+ };
72
+ }
73
+
@@ -0,0 +1,73 @@
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 { SearchByRawQuery } from './SearchByRawQuery';
17
+ import {
18
+ SearchByRawQueryFromJSON,
19
+ SearchByRawQueryFromJSONTyped,
20
+ SearchByRawQueryToJSON,
21
+ } from './SearchByRawQuery';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface SearchTimelineData
27
+ */
28
+ export interface SearchTimelineData {
29
+ /**
30
+ *
31
+ * @type {SearchByRawQuery}
32
+ * @memberof SearchTimelineData
33
+ */
34
+ searchByRawQuery: SearchByRawQuery;
35
+ }
36
+
37
+ /**
38
+ * Check if a given object implements the SearchTimelineData interface.
39
+ */
40
+ export function instanceOfSearchTimelineData(value: object): boolean {
41
+ let isInstance = true;
42
+ isInstance = isInstance && "searchByRawQuery" in value;
43
+
44
+ return isInstance;
45
+ }
46
+
47
+ export function SearchTimelineDataFromJSON(json: any): SearchTimelineData {
48
+ return SearchTimelineDataFromJSONTyped(json, false);
49
+ }
50
+
51
+ export function SearchTimelineDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchTimelineData {
52
+ if ((json === undefined) || (json === null)) {
53
+ return json;
54
+ }
55
+ return {
56
+
57
+ 'searchByRawQuery': SearchByRawQueryFromJSON(json['search_by_raw_query']),
58
+ };
59
+ }
60
+
61
+ export function SearchTimelineDataToJSON(value?: SearchTimelineData | null): any {
62
+ if (value === undefined) {
63
+ return undefined;
64
+ }
65
+ if (value === null) {
66
+ return null;
67
+ }
68
+ return {
69
+
70
+ 'search_by_raw_query': SearchByRawQueryToJSON(value.searchByRawQuery),
71
+ };
72
+ }
73
+
@@ -0,0 +1,73 @@
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 { SearchTimelineData } from './SearchTimelineData';
17
+ import {
18
+ SearchTimelineDataFromJSON,
19
+ SearchTimelineDataFromJSONTyped,
20
+ SearchTimelineDataToJSON,
21
+ } from './SearchTimelineData';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface SearchTimelineResponse
27
+ */
28
+ export interface SearchTimelineResponse {
29
+ /**
30
+ *
31
+ * @type {SearchTimelineData}
32
+ * @memberof SearchTimelineResponse
33
+ */
34
+ data: SearchTimelineData;
35
+ }
36
+
37
+ /**
38
+ * Check if a given object implements the SearchTimelineResponse interface.
39
+ */
40
+ export function instanceOfSearchTimelineResponse(value: object): boolean {
41
+ let isInstance = true;
42
+ isInstance = isInstance && "data" in value;
43
+
44
+ return isInstance;
45
+ }
46
+
47
+ export function SearchTimelineResponseFromJSON(json: any): SearchTimelineResponse {
48
+ return SearchTimelineResponseFromJSONTyped(json, false);
49
+ }
50
+
51
+ export function SearchTimelineResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchTimelineResponse {
52
+ if ((json === undefined) || (json === null)) {
53
+ return json;
54
+ }
55
+ return {
56
+
57
+ 'data': SearchTimelineDataFromJSON(json['data']),
58
+ };
59
+ }
60
+
61
+ export function SearchTimelineResponseToJSON(value?: SearchTimelineResponse | null): any {
62
+ if (value === undefined) {
63
+ return undefined;
64
+ }
65
+ if (value === null) {
66
+ return null;
67
+ }
68
+ return {
69
+
70
+ 'data': SearchTimelineDataToJSON(value.data),
71
+ };
72
+ }
73
+
@@ -34,16 +34,16 @@ export interface Timeline {
34
34
  instructions: Array<InstructionUnion>;
35
35
  /**
36
36
  *
37
- * @type {object}
37
+ * @type {{ [key: string]: any; }}
38
38
  * @memberof Timeline
39
39
  */
40
- metadata?: object;
40
+ metadata?: { [key: string]: any; };
41
41
  /**
42
42
  *
43
- * @type {object}
43
+ * @type {{ [key: string]: any; }}
44
44
  * @memberof Timeline
45
45
  */
46
- responseObjects?: object;
46
+ responseObjects?: { [key: string]: any; };
47
47
  }
48
48
 
49
49
  /**
@@ -0,0 +1,105 @@
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 { InstructionType } from './InstructionType';
17
+ import {
18
+ InstructionTypeFromJSON,
19
+ InstructionTypeFromJSONTyped,
20
+ InstructionTypeToJSON,
21
+ } from './InstructionType';
22
+ import type { ModuleItem } from './ModuleItem';
23
+ import {
24
+ ModuleItemFromJSON,
25
+ ModuleItemFromJSONTyped,
26
+ ModuleItemToJSON,
27
+ } from './ModuleItem';
28
+
29
+ /**
30
+ *
31
+ * @export
32
+ * @interface TimelineAddToModule
33
+ */
34
+ export interface TimelineAddToModule {
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof TimelineAddToModule
39
+ */
40
+ moduleEntryId: string;
41
+ /**
42
+ *
43
+ * @type {Array<ModuleItem>}
44
+ * @memberof TimelineAddToModule
45
+ */
46
+ moduleItems: Array<ModuleItem>;
47
+ /**
48
+ *
49
+ * @type {boolean}
50
+ * @memberof TimelineAddToModule
51
+ */
52
+ prepend?: boolean;
53
+ /**
54
+ *
55
+ * @type {InstructionType}
56
+ * @memberof TimelineAddToModule
57
+ */
58
+ type: InstructionType;
59
+ }
60
+
61
+ /**
62
+ * Check if a given object implements the TimelineAddToModule interface.
63
+ */
64
+ export function instanceOfTimelineAddToModule(value: object): boolean {
65
+ let isInstance = true;
66
+ isInstance = isInstance && "moduleEntryId" in value;
67
+ isInstance = isInstance && "moduleItems" in value;
68
+ isInstance = isInstance && "type" in value;
69
+
70
+ return isInstance;
71
+ }
72
+
73
+ export function TimelineAddToModuleFromJSON(json: any): TimelineAddToModule {
74
+ return TimelineAddToModuleFromJSONTyped(json, false);
75
+ }
76
+
77
+ export function TimelineAddToModuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimelineAddToModule {
78
+ if ((json === undefined) || (json === null)) {
79
+ return json;
80
+ }
81
+ return {
82
+
83
+ 'moduleEntryId': json['moduleEntryId'],
84
+ 'moduleItems': ((json['moduleItems'] as Array<any>).map(ModuleItemFromJSON)),
85
+ 'prepend': !exists(json, 'prepend') ? undefined : json['prepend'],
86
+ 'type': InstructionTypeFromJSON(json['type']),
87
+ };
88
+ }
89
+
90
+ export function TimelineAddToModuleToJSON(value?: TimelineAddToModule | null): any {
91
+ if (value === undefined) {
92
+ return undefined;
93
+ }
94
+ if (value === null) {
95
+ return null;
96
+ }
97
+ return {
98
+
99
+ 'moduleEntryId': value.moduleEntryId,
100
+ 'moduleItems': ((value.moduleItems as Array<any>).map(ModuleItemToJSON)),
101
+ 'prepend': value.prepend,
102
+ 'type': InstructionTypeToJSON(value.type),
103
+ };
104
+ }
105
+
@@ -0,0 +1,75 @@
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 TimelineMessagePrompt
27
+ */
28
+ export interface TimelineMessagePrompt {
29
+ [key: string]: any | any;
30
+ /**
31
+ *
32
+ * @type {TypeName}
33
+ * @memberof TimelineMessagePrompt
34
+ */
35
+ typename?: TypeName;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the TimelineMessagePrompt interface.
40
+ */
41
+ export function instanceOfTimelineMessagePrompt(value: object): boolean {
42
+ let isInstance = true;
43
+
44
+ return isInstance;
45
+ }
46
+
47
+ export function TimelineMessagePromptFromJSON(json: any): TimelineMessagePrompt {
48
+ return TimelineMessagePromptFromJSONTyped(json, false);
49
+ }
50
+
51
+ export function TimelineMessagePromptFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimelineMessagePrompt {
52
+ if ((json === undefined) || (json === null)) {
53
+ return json;
54
+ }
55
+ return {
56
+
57
+ ...json,
58
+ 'typename': !exists(json, '__typename') ? undefined : TypeNameFromJSON(json['__typename']),
59
+ };
60
+ }
61
+
62
+ export function TimelineMessagePromptToJSON(value?: TimelineMessagePrompt | null): any {
63
+ if (value === undefined) {
64
+ return undefined;
65
+ }
66
+ if (value === null) {
67
+ return null;
68
+ }
69
+ return {
70
+
71
+ ...value,
72
+ '__typename': TypeNameToJSON(value.typename),
73
+ };
74
+ }
75
+
@@ -0,0 +1,75 @@
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 TimelinePrompt
27
+ */
28
+ export interface TimelinePrompt {
29
+ [key: string]: any | any;
30
+ /**
31
+ *
32
+ * @type {TypeName}
33
+ * @memberof TimelinePrompt
34
+ */
35
+ typename?: TypeName;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the TimelinePrompt interface.
40
+ */
41
+ export function instanceOfTimelinePrompt(value: object): boolean {
42
+ let isInstance = true;
43
+
44
+ return isInstance;
45
+ }
46
+
47
+ export function TimelinePromptFromJSON(json: any): TimelinePrompt {
48
+ return TimelinePromptFromJSONTyped(json, false);
49
+ }
50
+
51
+ export function TimelinePromptFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimelinePrompt {
52
+ if ((json === undefined) || (json === null)) {
53
+ return json;
54
+ }
55
+ return {
56
+
57
+ ...json,
58
+ 'typename': !exists(json, '__typename') ? undefined : TypeNameFromJSON(json['__typename']),
59
+ };
60
+ }
61
+
62
+ export function TimelinePromptToJSON(value?: TimelinePrompt | null): any {
63
+ if (value === undefined) {
64
+ return undefined;
65
+ }
66
+ if (value === null) {
67
+ return null;
68
+ }
69
+ return {
70
+
71
+ ...value,
72
+ '__typename': TypeNameToJSON(value.typename),
73
+ };
74
+ }
75
+
@@ -0,0 +1,97 @@
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 { InstructionType } from './InstructionType';
17
+ import {
18
+ InstructionTypeFromJSON,
19
+ InstructionTypeFromJSONTyped,
20
+ InstructionTypeToJSON,
21
+ } from './InstructionType';
22
+ import type { TimelineAddEntry } from './TimelineAddEntry';
23
+ import {
24
+ TimelineAddEntryFromJSON,
25
+ TimelineAddEntryFromJSONTyped,
26
+ TimelineAddEntryToJSON,
27
+ } from './TimelineAddEntry';
28
+
29
+ /**
30
+ *
31
+ * @export
32
+ * @interface TimelineReplaceEntry
33
+ */
34
+ export interface TimelineReplaceEntry {
35
+ /**
36
+ *
37
+ * @type {TimelineAddEntry}
38
+ * @memberof TimelineReplaceEntry
39
+ */
40
+ entry: TimelineAddEntry;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof TimelineReplaceEntry
45
+ */
46
+ entryIdToReplace: string;
47
+ /**
48
+ *
49
+ * @type {InstructionType}
50
+ * @memberof TimelineReplaceEntry
51
+ */
52
+ type: InstructionType;
53
+ }
54
+
55
+ /**
56
+ * Check if a given object implements the TimelineReplaceEntry interface.
57
+ */
58
+ export function instanceOfTimelineReplaceEntry(value: object): boolean {
59
+ let isInstance = true;
60
+ isInstance = isInstance && "entry" in value;
61
+ isInstance = isInstance && "entryIdToReplace" in value;
62
+ isInstance = isInstance && "type" in value;
63
+
64
+ return isInstance;
65
+ }
66
+
67
+ export function TimelineReplaceEntryFromJSON(json: any): TimelineReplaceEntry {
68
+ return TimelineReplaceEntryFromJSONTyped(json, false);
69
+ }
70
+
71
+ export function TimelineReplaceEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimelineReplaceEntry {
72
+ if ((json === undefined) || (json === null)) {
73
+ return json;
74
+ }
75
+ return {
76
+
77
+ 'entry': TimelineAddEntryFromJSON(json['entry']),
78
+ 'entryIdToReplace': json['entry_id_to_replace'],
79
+ 'type': InstructionTypeFromJSON(json['type']),
80
+ };
81
+ }
82
+
83
+ export function TimelineReplaceEntryToJSON(value?: TimelineReplaceEntry | null): any {
84
+ if (value === undefined) {
85
+ return undefined;
86
+ }
87
+ if (value === null) {
88
+ return null;
89
+ }
90
+ return {
91
+
92
+ 'entry': TimelineAddEntryToJSON(value.entry),
93
+ 'entry_id_to_replace': value.entryIdToReplace,
94
+ 'type': InstructionTypeToJSON(value.type),
95
+ };
96
+ }
97
+