twitter-openapi-typescript-generated 0.0.3 → 0.0.4

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 (562) hide show
  1. package/.openapi-generator/FILES +0 -1
  2. package/.openapi-generator/VERSION +1 -1
  3. package/.openapi-generator-ignore +2 -1
  4. package/README.md +2 -2
  5. package/package.json +1 -1
  6. package/src/apis/DefaultApi.ts +4 -0
  7. package/src/apis/OtherApi.ts +4 -0
  8. package/src/apis/PostApi.ts +24 -0
  9. package/src/apis/TweetApi.ts +36 -0
  10. package/src/apis/UserApi.ts +4 -0
  11. package/src/apis/UserListApi.ts +8 -0
  12. package/src/apis/V11GetApi.ts +8 -0
  13. package/src/apis/V11PostApi.ts +8 -0
  14. package/src/apis/V20GetApi.ts +4 -0
  15. package/tools/openapi-generator-config.yaml +1 -1
  16. package/twitter-openapi/src/openapi/openapi-3.0.yaml +8 -1
  17. package/twitter-openapi/tools/__pycache__/build_config.cpython-310.pyc +0 -0
  18. package/twitter-openapi/tools/__pycache__/hooks.cpython-310.pyc +0 -0
  19. package/dist/apis/DefaultApi.d.ts +0 -32
  20. package/dist/apis/DefaultApi.d.ts.map +0 -1
  21. package/dist/apis/DefaultApi.js +0 -164
  22. package/dist/apis/DefaultApi.js.map +0 -1
  23. package/dist/apis/OtherApi.d.ts +0 -27
  24. package/dist/apis/OtherApi.d.ts.map +0 -1
  25. package/dist/apis/OtherApi.js +0 -146
  26. package/dist/apis/OtherApi.js.map +0 -1
  27. package/dist/apis/PostApi.d.ts +0 -85
  28. package/dist/apis/PostApi.d.ts.map +0 -1
  29. package/dist/apis/PostApi.js +0 -501
  30. package/dist/apis/PostApi.js.map +0 -1
  31. package/dist/apis/TweetApi.d.ts +0 -136
  32. package/dist/apis/TweetApi.d.ts.map +0 -1
  33. package/dist/apis/TweetApi.js +0 -828
  34. package/dist/apis/TweetApi.js.map +0 -1
  35. package/dist/apis/UserApi.d.ts +0 -32
  36. package/dist/apis/UserApi.d.ts.map +0 -1
  37. package/dist/apis/UserApi.js +0 -164
  38. package/dist/apis/UserApi.js.map +0 -1
  39. package/dist/apis/UserListApi.d.ts +0 -45
  40. package/dist/apis/UserListApi.d.ts.map +0 -1
  41. package/dist/apis/UserListApi.js +0 -247
  42. package/dist/apis/UserListApi.js.map +0 -1
  43. package/dist/apis/V11GetApi.d.ts +0 -61
  44. package/dist/apis/V11GetApi.d.ts.map +0 -1
  45. package/dist/apis/V11GetApi.js +0 -344
  46. package/dist/apis/V11GetApi.js.map +0 -1
  47. package/dist/apis/V11PostApi.d.ts +0 -66
  48. package/dist/apis/V11PostApi.d.ts.map +0 -1
  49. package/dist/apis/V11PostApi.js +0 -400
  50. package/dist/apis/V11PostApi.js.map +0 -1
  51. package/dist/apis/V20GetApi.d.ts +0 -65
  52. package/dist/apis/V20GetApi.d.ts.map +0 -1
  53. package/dist/apis/V20GetApi.js +0 -365
  54. package/dist/apis/V20GetApi.js.map +0 -1
  55. package/dist/apis/index.d.ts +0 -10
  56. package/dist/apis/index.d.ts.map +0 -1
  57. package/dist/apis/index.js +0 -28
  58. package/dist/apis/index.js.map +0 -1
  59. package/dist/index.d.ts +0 -4
  60. package/dist/index.d.ts.map +0 -1
  61. package/dist/index.js +0 -22
  62. package/dist/index.js.map +0 -1
  63. package/dist/models/BookmarksResponse.d.ts +0 -33
  64. package/dist/models/BookmarksResponse.d.ts.map +0 -1
  65. package/dist/models/BookmarksResponse.js +0 -52
  66. package/dist/models/BookmarksResponse.js.map +0 -1
  67. package/dist/models/BookmarksResponseData.d.ts +0 -33
  68. package/dist/models/BookmarksResponseData.d.ts.map +0 -1
  69. package/dist/models/BookmarksResponseData.js +0 -52
  70. package/dist/models/BookmarksResponseData.js.map +0 -1
  71. package/dist/models/BookmarksTimeline.d.ts +0 -33
  72. package/dist/models/BookmarksTimeline.d.ts.map +0 -1
  73. package/dist/models/BookmarksTimeline.js +0 -52
  74. package/dist/models/BookmarksTimeline.js.map +0 -1
  75. package/dist/models/CommunitiesActions.d.ts +0 -32
  76. package/dist/models/CommunitiesActions.d.ts.map +0 -1
  77. package/dist/models/CommunitiesActions.js +0 -51
  78. package/dist/models/CommunitiesActions.js.map +0 -1
  79. package/dist/models/ContentEntryType.d.ts +0 -25
  80. package/dist/models/ContentEntryType.d.ts.map +0 -1
  81. package/dist/models/ContentEntryType.js +0 -38
  82. package/dist/models/ContentEntryType.js.map +0 -1
  83. package/dist/models/ContentItemType.d.ts +0 -25
  84. package/dist/models/ContentItemType.d.ts.map +0 -1
  85. package/dist/models/ContentItemType.js +0 -38
  86. package/dist/models/ContentItemType.js.map +0 -1
  87. package/dist/models/ContentUnion.d.ts +0 -30
  88. package/dist/models/ContentUnion.d.ts.map +0 -1
  89. package/dist/models/ContentUnion.js +0 -70
  90. package/dist/models/ContentUnion.js.map +0 -1
  91. package/dist/models/CreateRetweet.d.ts +0 -33
  92. package/dist/models/CreateRetweet.d.ts.map +0 -1
  93. package/dist/models/CreateRetweet.js +0 -52
  94. package/dist/models/CreateRetweet.js.map +0 -1
  95. package/dist/models/CreateRetweetResponse.d.ts +0 -33
  96. package/dist/models/CreateRetweetResponse.d.ts.map +0 -1
  97. package/dist/models/CreateRetweetResponse.js +0 -52
  98. package/dist/models/CreateRetweetResponse.js.map +0 -1
  99. package/dist/models/CreateRetweetResponseData.d.ts +0 -33
  100. package/dist/models/CreateRetweetResponseData.d.ts.map +0 -1
  101. package/dist/models/CreateRetweetResponseData.js +0 -52
  102. package/dist/models/CreateRetweetResponseData.js.map +0 -1
  103. package/dist/models/CreateRetweetResponseResult.d.ts +0 -33
  104. package/dist/models/CreateRetweetResponseResult.d.ts.map +0 -1
  105. package/dist/models/CreateRetweetResponseResult.js +0 -52
  106. package/dist/models/CreateRetweetResponseResult.js.map +0 -1
  107. package/dist/models/CreateTweet.d.ts +0 -33
  108. package/dist/models/CreateTweet.d.ts.map +0 -1
  109. package/dist/models/CreateTweet.js +0 -52
  110. package/dist/models/CreateTweet.js.map +0 -1
  111. package/dist/models/CreateTweetResponse.d.ts +0 -33
  112. package/dist/models/CreateTweetResponse.d.ts.map +0 -1
  113. package/dist/models/CreateTweetResponse.js +0 -52
  114. package/dist/models/CreateTweetResponse.js.map +0 -1
  115. package/dist/models/CreateTweetResponseData.d.ts +0 -33
  116. package/dist/models/CreateTweetResponseData.d.ts.map +0 -1
  117. package/dist/models/CreateTweetResponseData.js +0 -52
  118. package/dist/models/CreateTweetResponseData.js.map +0 -1
  119. package/dist/models/CreateTweetResponseResult.d.ts +0 -33
  120. package/dist/models/CreateTweetResponseResult.d.ts.map +0 -1
  121. package/dist/models/CreateTweetResponseResult.js +0 -52
  122. package/dist/models/CreateTweetResponseResult.js.map +0 -1
  123. package/dist/models/DeleteRetweetResponse.d.ts +0 -33
  124. package/dist/models/DeleteRetweetResponse.d.ts.map +0 -1
  125. package/dist/models/DeleteRetweetResponse.js +0 -52
  126. package/dist/models/DeleteRetweetResponse.js.map +0 -1
  127. package/dist/models/DeleteRetweetResponseData.d.ts +0 -33
  128. package/dist/models/DeleteRetweetResponseData.d.ts.map +0 -1
  129. package/dist/models/DeleteRetweetResponseData.js +0 -52
  130. package/dist/models/DeleteRetweetResponseData.js.map +0 -1
  131. package/dist/models/DeleteTweetResponse.d.ts +0 -33
  132. package/dist/models/DeleteTweetResponse.d.ts.map +0 -1
  133. package/dist/models/DeleteTweetResponse.js +0 -52
  134. package/dist/models/DeleteTweetResponse.js.map +0 -1
  135. package/dist/models/DeleteTweetResponseData.d.ts +0 -33
  136. package/dist/models/DeleteTweetResponseData.d.ts.map +0 -1
  137. package/dist/models/DeleteTweetResponseData.js +0 -52
  138. package/dist/models/DeleteTweetResponseData.js.map +0 -1
  139. package/dist/models/DeleteTweetResponseResult.d.ts +0 -32
  140. package/dist/models/DeleteTweetResponseResult.d.ts.map +0 -1
  141. package/dist/models/DeleteTweetResponseResult.js +0 -51
  142. package/dist/models/DeleteTweetResponseResult.js.map +0 -1
  143. package/dist/models/Entities.d.ts +0 -57
  144. package/dist/models/Entities.d.ts.map +0 -1
  145. package/dist/models/Entities.js +0 -64
  146. package/dist/models/Entities.js.map +0 -1
  147. package/dist/models/ExtendedEntities.d.ts +0 -33
  148. package/dist/models/ExtendedEntities.d.ts.map +0 -1
  149. package/dist/models/ExtendedEntities.js +0 -52
  150. package/dist/models/ExtendedEntities.js.map +0 -1
  151. package/dist/models/FavoriteTweet.d.ts +0 -32
  152. package/dist/models/FavoriteTweet.d.ts.map +0 -1
  153. package/dist/models/FavoriteTweet.js +0 -51
  154. package/dist/models/FavoriteTweet.js.map +0 -1
  155. package/dist/models/FavoriteTweetResponseData.d.ts +0 -33
  156. package/dist/models/FavoriteTweetResponseData.d.ts.map +0 -1
  157. package/dist/models/FavoriteTweetResponseData.js +0 -52
  158. package/dist/models/FavoriteTweetResponseData.js.map +0 -1
  159. package/dist/models/FollowResponse.d.ts +0 -33
  160. package/dist/models/FollowResponse.d.ts.map +0 -1
  161. package/dist/models/FollowResponse.js +0 -52
  162. package/dist/models/FollowResponse.js.map +0 -1
  163. package/dist/models/FollowResponseData.d.ts +0 -33
  164. package/dist/models/FollowResponseData.d.ts.map +0 -1
  165. package/dist/models/FollowResponseData.js +0 -52
  166. package/dist/models/FollowResponseData.js.map +0 -1
  167. package/dist/models/FollowResponseResult.d.ts +0 -40
  168. package/dist/models/FollowResponseResult.d.ts.map +0 -1
  169. package/dist/models/FollowResponseResult.js +0 -56
  170. package/dist/models/FollowResponseResult.js.map +0 -1
  171. package/dist/models/FollowResponseUser.d.ts +0 -33
  172. package/dist/models/FollowResponseUser.d.ts.map +0 -1
  173. package/dist/models/FollowResponseUser.js +0 -52
  174. package/dist/models/FollowResponseUser.js.map +0 -1
  175. package/dist/models/FollowTimeline.d.ts +0 -33
  176. package/dist/models/FollowTimeline.d.ts.map +0 -1
  177. package/dist/models/FollowTimeline.js +0 -52
  178. package/dist/models/FollowTimeline.js.map +0 -1
  179. package/dist/models/HomeTimelineHome.d.ts +0 -33
  180. package/dist/models/HomeTimelineHome.d.ts.map +0 -1
  181. package/dist/models/HomeTimelineHome.js +0 -52
  182. package/dist/models/HomeTimelineHome.js.map +0 -1
  183. package/dist/models/HomeTimelineResponseData.d.ts +0 -33
  184. package/dist/models/HomeTimelineResponseData.d.ts.map +0 -1
  185. package/dist/models/HomeTimelineResponseData.js +0 -52
  186. package/dist/models/HomeTimelineResponseData.js.map +0 -1
  187. package/dist/models/InstructionType.d.ts +0 -26
  188. package/dist/models/InstructionType.d.ts.map +0 -1
  189. package/dist/models/InstructionType.js +0 -39
  190. package/dist/models/InstructionType.js.map +0 -1
  191. package/dist/models/InstructionUnion.d.ts +0 -33
  192. package/dist/models/InstructionUnion.d.ts.map +0 -1
  193. package/dist/models/InstructionUnion.js +0 -75
  194. package/dist/models/InstructionUnion.js.map +0 -1
  195. package/dist/models/ItemContentUnion.d.ts +0 -30
  196. package/dist/models/ItemContentUnion.d.ts.map +0 -1
  197. package/dist/models/ItemContentUnion.js +0 -70
  198. package/dist/models/ItemContentUnion.js.map +0 -1
  199. package/dist/models/ItemResult.d.ts +0 -40
  200. package/dist/models/ItemResult.d.ts.map +0 -1
  201. package/dist/models/ItemResult.js +0 -56
  202. package/dist/models/ItemResult.js.map +0 -1
  203. package/dist/models/ListTweetsTimeline.d.ts +0 -33
  204. package/dist/models/ListTweetsTimeline.d.ts.map +0 -1
  205. package/dist/models/ListTweetsTimeline.js +0 -52
  206. package/dist/models/ListTweetsTimeline.js.map +0 -1
  207. package/dist/models/ListTweetsTimelineData.d.ts +0 -33
  208. package/dist/models/ListTweetsTimelineData.d.ts.map +0 -1
  209. package/dist/models/ListTweetsTimelineData.js +0 -52
  210. package/dist/models/ListTweetsTimelineData.js.map +0 -1
  211. package/dist/models/ListTweetsTimelineList.d.ts +0 -33
  212. package/dist/models/ListTweetsTimelineList.d.ts.map +0 -1
  213. package/dist/models/ListTweetsTimelineList.js +0 -52
  214. package/dist/models/ListTweetsTimelineList.js.map +0 -1
  215. package/dist/models/ListTweetsTimelineResponse.d.ts +0 -33
  216. package/dist/models/ListTweetsTimelineResponse.d.ts.map +0 -1
  217. package/dist/models/ListTweetsTimelineResponse.js +0 -52
  218. package/dist/models/ListTweetsTimelineResponse.js.map +0 -1
  219. package/dist/models/Media.d.ts +0 -93
  220. package/dist/models/Media.d.ts.map +0 -1
  221. package/dist/models/Media.js +0 -81
  222. package/dist/models/Media.js.map +0 -1
  223. package/dist/models/MediaOriginalInfo.d.ts +0 -44
  224. package/dist/models/MediaOriginalInfo.d.ts.map +0 -1
  225. package/dist/models/MediaOriginalInfo.js +0 -55
  226. package/dist/models/MediaOriginalInfo.js.map +0 -1
  227. package/dist/models/ModuleEntry.d.ts +0 -39
  228. package/dist/models/ModuleEntry.d.ts.map +0 -1
  229. package/dist/models/ModuleEntry.js +0 -55
  230. package/dist/models/ModuleEntry.js.map +0 -1
  231. package/dist/models/ModuleItem.d.ts +0 -39
  232. package/dist/models/ModuleItem.d.ts.map +0 -1
  233. package/dist/models/ModuleItem.js +0 -55
  234. package/dist/models/ModuleItem.js.map +0 -1
  235. package/dist/models/OneFactorLoginEligibility.d.ts +0 -32
  236. package/dist/models/OneFactorLoginEligibility.d.ts.map +0 -1
  237. package/dist/models/OneFactorLoginEligibility.js +0 -51
  238. package/dist/models/OneFactorLoginEligibility.js.map +0 -1
  239. package/dist/models/OtherResponse.d.ts +0 -33
  240. package/dist/models/OtherResponse.d.ts.map +0 -1
  241. package/dist/models/OtherResponse.js +0 -52
  242. package/dist/models/OtherResponse.js.map +0 -1
  243. package/dist/models/PostCreateRetweetRequest.d.ts +0 -39
  244. package/dist/models/PostCreateRetweetRequest.d.ts.map +0 -1
  245. package/dist/models/PostCreateRetweetRequest.js +0 -55
  246. package/dist/models/PostCreateRetweetRequest.js.map +0 -1
  247. package/dist/models/PostCreateTweetRequest.d.ts +0 -46
  248. package/dist/models/PostCreateTweetRequest.d.ts.map +0 -1
  249. package/dist/models/PostCreateTweetRequest.js +0 -59
  250. package/dist/models/PostCreateTweetRequest.js.map +0 -1
  251. package/dist/models/PostCreateTweetRequestFeatures.d.ts +0 -140
  252. package/dist/models/PostCreateTweetRequestFeatures.d.ts.map +0 -1
  253. package/dist/models/PostCreateTweetRequestFeatures.js +0 -105
  254. package/dist/models/PostCreateTweetRequestFeatures.js.map +0 -1
  255. package/dist/models/PostCreateTweetRequestVariables.d.ts +0 -51
  256. package/dist/models/PostCreateTweetRequestVariables.d.ts.map +0 -1
  257. package/dist/models/PostCreateTweetRequestVariables.js +0 -61
  258. package/dist/models/PostCreateTweetRequestVariables.js.map +0 -1
  259. package/dist/models/PostCreateTweetRequestVariablesMedia.d.ts +0 -38
  260. package/dist/models/PostCreateTweetRequestVariablesMedia.d.ts.map +0 -1
  261. package/dist/models/PostCreateTweetRequestVariablesMedia.js +0 -54
  262. package/dist/models/PostCreateTweetRequestVariablesMedia.js.map +0 -1
  263. package/dist/models/PostDeleteRetweetRequest.d.ts +0 -39
  264. package/dist/models/PostDeleteRetweetRequest.d.ts.map +0 -1
  265. package/dist/models/PostDeleteRetweetRequest.js +0 -55
  266. package/dist/models/PostDeleteRetweetRequest.js.map +0 -1
  267. package/dist/models/PostDeleteRetweetRequestVariables.d.ts +0 -38
  268. package/dist/models/PostDeleteRetweetRequestVariables.d.ts.map +0 -1
  269. package/dist/models/PostDeleteRetweetRequestVariables.js +0 -54
  270. package/dist/models/PostDeleteRetweetRequestVariables.js.map +0 -1
  271. package/dist/models/PostDeleteTweetRequest.d.ts +0 -39
  272. package/dist/models/PostDeleteTweetRequest.d.ts.map +0 -1
  273. package/dist/models/PostDeleteTweetRequest.js +0 -55
  274. package/dist/models/PostDeleteTweetRequest.js.map +0 -1
  275. package/dist/models/PostDeleteTweetRequestVariables.d.ts +0 -38
  276. package/dist/models/PostDeleteTweetRequestVariables.d.ts.map +0 -1
  277. package/dist/models/PostDeleteTweetRequestVariables.js +0 -54
  278. package/dist/models/PostDeleteTweetRequestVariables.js.map +0 -1
  279. package/dist/models/PostFavoriteTweetRequest.d.ts +0 -39
  280. package/dist/models/PostFavoriteTweetRequest.d.ts.map +0 -1
  281. package/dist/models/PostFavoriteTweetRequest.js +0 -55
  282. package/dist/models/PostFavoriteTweetRequest.js.map +0 -1
  283. package/dist/models/PostUnfavoriteTweetRequest.d.ts +0 -39
  284. package/dist/models/PostUnfavoriteTweetRequest.d.ts.map +0 -1
  285. package/dist/models/PostUnfavoriteTweetRequest.js +0 -55
  286. package/dist/models/PostUnfavoriteTweetRequest.js.map +0 -1
  287. package/dist/models/ProfileResponse.d.ts +0 -33
  288. package/dist/models/ProfileResponse.d.ts.map +0 -1
  289. package/dist/models/ProfileResponse.js +0 -52
  290. package/dist/models/ProfileResponse.js.map +0 -1
  291. package/dist/models/ProfileResponseData.d.ts +0 -33
  292. package/dist/models/ProfileResponseData.d.ts.map +0 -1
  293. package/dist/models/ProfileResponseData.js +0 -52
  294. package/dist/models/ProfileResponseData.js.map +0 -1
  295. package/dist/models/Retweet.d.ts +0 -39
  296. package/dist/models/Retweet.d.ts.map +0 -1
  297. package/dist/models/Retweet.js +0 -55
  298. package/dist/models/Retweet.js.map +0 -1
  299. package/dist/models/RetweetLegacy.d.ts +0 -32
  300. package/dist/models/RetweetLegacy.d.ts.map +0 -1
  301. package/dist/models/RetweetLegacy.js +0 -51
  302. package/dist/models/RetweetLegacy.js.map +0 -1
  303. package/dist/models/Session.d.ts +0 -113
  304. package/dist/models/Session.d.ts.map +0 -1
  305. package/dist/models/Session.js +0 -93
  306. package/dist/models/Session.js.map +0 -1
  307. package/dist/models/SocialContext.d.ts +0 -44
  308. package/dist/models/SocialContext.d.ts.map +0 -1
  309. package/dist/models/SocialContext.js +0 -55
  310. package/dist/models/SocialContext.js.map +0 -1
  311. package/dist/models/Timeline.d.ts +0 -45
  312. package/dist/models/Timeline.d.ts.map +0 -1
  313. package/dist/models/Timeline.js +0 -57
  314. package/dist/models/Timeline.js.map +0 -1
  315. package/dist/models/TimelineAddEntries.d.ts +0 -40
  316. package/dist/models/TimelineAddEntries.d.ts.map +0 -1
  317. package/dist/models/TimelineAddEntries.js +0 -56
  318. package/dist/models/TimelineAddEntries.js.map +0 -1
  319. package/dist/models/TimelineAddEntry.d.ts +0 -45
  320. package/dist/models/TimelineAddEntry.d.ts.map +0 -1
  321. package/dist/models/TimelineAddEntry.js +0 -58
  322. package/dist/models/TimelineAddEntry.js.map +0 -1
  323. package/dist/models/TimelineClearCache.d.ts +0 -33
  324. package/dist/models/TimelineClearCache.d.ts.map +0 -1
  325. package/dist/models/TimelineClearCache.js +0 -52
  326. package/dist/models/TimelineClearCache.js.map +0 -1
  327. package/dist/models/TimelinePinEntry.d.ts +0 -40
  328. package/dist/models/TimelinePinEntry.d.ts.map +0 -1
  329. package/dist/models/TimelinePinEntry.js +0 -56
  330. package/dist/models/TimelinePinEntry.js.map +0 -1
  331. package/dist/models/TimelineResponse.d.ts +0 -33
  332. package/dist/models/TimelineResponse.d.ts.map +0 -1
  333. package/dist/models/TimelineResponse.js +0 -52
  334. package/dist/models/TimelineResponse.js.map +0 -1
  335. package/dist/models/TimelineTerminateTimeline.d.ts +0 -47
  336. package/dist/models/TimelineTerminateTimeline.d.ts.map +0 -1
  337. package/dist/models/TimelineTerminateTimeline.js +0 -62
  338. package/dist/models/TimelineTerminateTimeline.js.map +0 -1
  339. package/dist/models/TimelineTimelineCursor.d.ts +0 -69
  340. package/dist/models/TimelineTimelineCursor.d.ts.map +0 -1
  341. package/dist/models/TimelineTimelineCursor.js +0 -74
  342. package/dist/models/TimelineTimelineCursor.js.map +0 -1
  343. package/dist/models/TimelineTimelineItem.d.ts +0 -59
  344. package/dist/models/TimelineTimelineItem.d.ts.map +0 -1
  345. package/dist/models/TimelineTimelineItem.js +0 -65
  346. package/dist/models/TimelineTimelineItem.js.map +0 -1
  347. package/dist/models/TimelineTimelineModule.d.ts +0 -71
  348. package/dist/models/TimelineTimelineModule.d.ts.map +0 -1
  349. package/dist/models/TimelineTimelineModule.js +0 -70
  350. package/dist/models/TimelineTimelineModule.js.map +0 -1
  351. package/dist/models/TimelineTweet.d.ts +0 -66
  352. package/dist/models/TimelineTweet.d.ts.map +0 -1
  353. package/dist/models/TimelineTweet.js +0 -69
  354. package/dist/models/TimelineTweet.js.map +0 -1
  355. package/dist/models/TimelineUser.d.ts +0 -60
  356. package/dist/models/TimelineUser.d.ts.map +0 -1
  357. package/dist/models/TimelineUser.js +0 -67
  358. package/dist/models/TimelineUser.js.map +0 -1
  359. package/dist/models/TimelineV2.d.ts +0 -33
  360. package/dist/models/TimelineV2.d.ts.map +0 -1
  361. package/dist/models/TimelineV2.js +0 -52
  362. package/dist/models/TimelineV2.js.map +0 -1
  363. package/dist/models/Tweet.d.ts +0 -93
  364. package/dist/models/Tweet.d.ts.map +0 -1
  365. package/dist/models/Tweet.js +0 -83
  366. package/dist/models/Tweet.js.map +0 -1
  367. package/dist/models/TweetDetailResponse.d.ts +0 -33
  368. package/dist/models/TweetDetailResponse.d.ts.map +0 -1
  369. package/dist/models/TweetDetailResponse.js +0 -52
  370. package/dist/models/TweetDetailResponse.js.map +0 -1
  371. package/dist/models/TweetDetailResponseData.d.ts +0 -33
  372. package/dist/models/TweetDetailResponseData.d.ts.map +0 -1
  373. package/dist/models/TweetDetailResponseData.js +0 -52
  374. package/dist/models/TweetDetailResponseData.js.map +0 -1
  375. package/dist/models/TweetEditControl.d.ts +0 -50
  376. package/dist/models/TweetEditControl.d.ts.map +0 -1
  377. package/dist/models/TweetEditControl.js +0 -57
  378. package/dist/models/TweetEditControl.js.map +0 -1
  379. package/dist/models/TweetEditPrespective.d.ts +0 -38
  380. package/dist/models/TweetEditPrespective.d.ts.map +0 -1
  381. package/dist/models/TweetEditPrespective.js +0 -53
  382. package/dist/models/TweetEditPrespective.js.map +0 -1
  383. package/dist/models/TweetLegacy.d.ts +0 -155
  384. package/dist/models/TweetLegacy.d.ts.map +0 -1
  385. package/dist/models/TweetLegacy.js +0 -111
  386. package/dist/models/TweetLegacy.js.map +0 -1
  387. package/dist/models/TweetTombstone.d.ts +0 -33
  388. package/dist/models/TweetTombstone.d.ts.map +0 -1
  389. package/dist/models/TweetTombstone.js +0 -52
  390. package/dist/models/TweetTombstone.js.map +0 -1
  391. package/dist/models/TweetUnion.d.ts +0 -30
  392. package/dist/models/TweetUnion.d.ts.map +0 -1
  393. package/dist/models/TweetUnion.js +0 -70
  394. package/dist/models/TweetUnion.js.map +0 -1
  395. package/dist/models/TweetViews.d.ts +0 -38
  396. package/dist/models/TweetViews.d.ts.map +0 -1
  397. package/dist/models/TweetViews.js +0 -53
  398. package/dist/models/TweetViews.js.map +0 -1
  399. package/dist/models/TweetWithVisibilityResults.d.ts +0 -40
  400. package/dist/models/TweetWithVisibilityResults.d.ts.map +0 -1
  401. package/dist/models/TweetWithVisibilityResults.js +0 -56
  402. package/dist/models/TweetWithVisibilityResults.js.map +0 -1
  403. package/dist/models/TypeName.d.ts +0 -31
  404. package/dist/models/TypeName.d.ts.map +0 -1
  405. package/dist/models/TypeName.js +0 -44
  406. package/dist/models/TypeName.js.map +0 -1
  407. package/dist/models/UnfavoriteTweet.d.ts +0 -32
  408. package/dist/models/UnfavoriteTweet.d.ts.map +0 -1
  409. package/dist/models/UnfavoriteTweet.js +0 -51
  410. package/dist/models/UnfavoriteTweet.js.map +0 -1
  411. package/dist/models/UnfavoriteTweetResponseData.d.ts +0 -33
  412. package/dist/models/UnfavoriteTweetResponseData.d.ts.map +0 -1
  413. package/dist/models/UnfavoriteTweetResponseData.js +0 -52
  414. package/dist/models/UnfavoriteTweetResponseData.js.map +0 -1
  415. package/dist/models/User.d.ts +0 -100
  416. package/dist/models/User.d.ts.map +0 -1
  417. package/dist/models/User.js +0 -84
  418. package/dist/models/User.js.map +0 -1
  419. package/dist/models/UserFeatures.d.ts +0 -32
  420. package/dist/models/UserFeatures.d.ts.map +0 -1
  421. package/dist/models/UserFeatures.js +0 -51
  422. package/dist/models/UserFeatures.js.map +0 -1
  423. package/dist/models/UserLegacy.d.ts +0 -260
  424. package/dist/models/UserLegacy.d.ts.map +0 -1
  425. package/dist/models/UserLegacy.js +0 -162
  426. package/dist/models/UserLegacy.js.map +0 -1
  427. package/dist/models/UserResponse.d.ts +0 -33
  428. package/dist/models/UserResponse.d.ts.map +0 -1
  429. package/dist/models/UserResponse.js +0 -52
  430. package/dist/models/UserResponse.js.map +0 -1
  431. package/dist/models/UserResponseData.d.ts +0 -33
  432. package/dist/models/UserResponseData.d.ts.map +0 -1
  433. package/dist/models/UserResponseData.js +0 -52
  434. package/dist/models/UserResponseData.js.map +0 -1
  435. package/dist/models/UserResultByScreenName.d.ts +0 -39
  436. package/dist/models/UserResultByScreenName.d.ts.map +0 -1
  437. package/dist/models/UserResultByScreenName.js +0 -55
  438. package/dist/models/UserResultByScreenName.js.map +0 -1
  439. package/dist/models/UserResultByScreenNameLegacy.d.ts +0 -68
  440. package/dist/models/UserResultByScreenNameLegacy.d.ts.map +0 -1
  441. package/dist/models/UserResultByScreenNameLegacy.js +0 -63
  442. package/dist/models/UserResultByScreenNameLegacy.js.map +0 -1
  443. package/dist/models/UserResultByScreenNameResult.d.ts +0 -58
  444. package/dist/models/UserResultByScreenNameResult.d.ts.map +0 -1
  445. package/dist/models/UserResultByScreenNameResult.js +0 -65
  446. package/dist/models/UserResultByScreenNameResult.js.map +0 -1
  447. package/dist/models/UserResultCore.d.ts +0 -33
  448. package/dist/models/UserResultCore.d.ts.map +0 -1
  449. package/dist/models/UserResultCore.js +0 -52
  450. package/dist/models/UserResultCore.js.map +0 -1
  451. package/dist/models/UserResults.d.ts +0 -33
  452. package/dist/models/UserResults.d.ts.map +0 -1
  453. package/dist/models/UserResults.js +0 -52
  454. package/dist/models/UserResults.js.map +0 -1
  455. package/dist/models/UserTweetsData.d.ts +0 -33
  456. package/dist/models/UserTweetsData.d.ts.map +0 -1
  457. package/dist/models/UserTweetsData.js +0 -52
  458. package/dist/models/UserTweetsData.js.map +0 -1
  459. package/dist/models/UserTweetsResponse.d.ts +0 -33
  460. package/dist/models/UserTweetsResponse.d.ts.map +0 -1
  461. package/dist/models/UserTweetsResponse.js +0 -52
  462. package/dist/models/UserTweetsResponse.js.map +0 -1
  463. package/dist/models/UserTweetsResult.d.ts +0 -40
  464. package/dist/models/UserTweetsResult.d.ts.map +0 -1
  465. package/dist/models/UserTweetsResult.js +0 -56
  466. package/dist/models/UserTweetsResult.js.map +0 -1
  467. package/dist/models/UserTweetsUser.d.ts +0 -33
  468. package/dist/models/UserTweetsUser.d.ts.map +0 -1
  469. package/dist/models/UserTweetsUser.js +0 -52
  470. package/dist/models/UserTweetsUser.js.map +0 -1
  471. package/dist/models/index.d.ts +0 -103
  472. package/dist/models/index.d.ts.map +0 -1
  473. package/dist/models/index.js +0 -121
  474. package/dist/models/index.js.map +0 -1
  475. package/dist/runtime.d.ts +0 -183
  476. package/dist/runtime.d.ts.map +0 -1
  477. package/dist/runtime.js +0 -556
  478. package/dist/runtime.js.map +0 -1
  479. package/twitter-openapi/dist/dart/openapi-3.0.yaml +0 -111
  480. package/twitter-openapi/dist/dart/paths/bookmarks.yaml +0 -134
  481. package/twitter-openapi/dist/dart/paths/follow.yaml +0 -262
  482. package/twitter-openapi/dist/dart/paths/other.yaml +0 -96
  483. package/twitter-openapi/dist/dart/paths/post.yaml +0 -834
  484. package/twitter-openapi/dist/dart/paths/profile.yaml +0 -152
  485. package/twitter-openapi/dist/dart/paths/timeline.yaml +0 -380
  486. package/twitter-openapi/dist/dart/paths/tweet.yaml +0 -134
  487. package/twitter-openapi/dist/dart/paths/user.yaml +0 -112
  488. package/twitter-openapi/dist/dart/paths/usertweets.yaml +0 -484
  489. package/twitter-openapi/dist/dart/paths/v1.1-get.yaml +0 -300
  490. package/twitter-openapi/dist/dart/paths/v1.1-post.yaml +0 -295
  491. package/twitter-openapi/dist/dart/paths/v2.0-get.yaml +0 -331
  492. package/twitter-openapi/dist/dart/response/error.yaml +0 -90
  493. package/twitter-openapi/dist/dart/schemas/content.yaml +0 -181
  494. package/twitter-openapi/dist/dart/schemas/general.yaml +0 -13
  495. package/twitter-openapi/dist/dart/schemas/instruction.yaml +0 -83
  496. package/twitter-openapi/dist/dart/schemas/timeline.yaml +0 -25
  497. package/twitter-openapi/dist/dart/schemas/tweet.yaml +0 -251
  498. package/twitter-openapi/dist/dart/schemas/typename.yaml +0 -19
  499. package/twitter-openapi/dist/dart/schemas/user.yaml +0 -206
  500. package/twitter-openapi/dist/docs/openapi-3.0.yaml +0 -135
  501. package/twitter-openapi/dist/docs/paths/bookmarks.yaml +0 -248
  502. package/twitter-openapi/dist/docs/paths/follow.yaml +0 -486
  503. package/twitter-openapi/dist/docs/paths/other.yaml +0 -96
  504. package/twitter-openapi/dist/docs/paths/post.yaml +0 -638
  505. package/twitter-openapi/dist/docs/paths/profile.yaml +0 -159
  506. package/twitter-openapi/dist/docs/paths/timeline.yaml +0 -730
  507. package/twitter-openapi/dist/docs/paths/tweet.yaml +0 -272
  508. package/twitter-openapi/dist/docs/paths/user.yaml +0 -152
  509. package/twitter-openapi/dist/docs/paths/usertweets.yaml +0 -1010
  510. package/twitter-openapi/dist/docs/paths/v1.1-get.yaml +0 -242
  511. package/twitter-openapi/dist/docs/paths/v1.1-post.yaml +0 -237
  512. package/twitter-openapi/dist/docs/paths/v2.0-get.yaml +0 -302
  513. package/twitter-openapi/dist/docs/response/error.yaml +0 -90
  514. package/twitter-openapi/dist/docs/schemas/content.yaml +0 -181
  515. package/twitter-openapi/dist/docs/schemas/general.yaml +0 -13
  516. package/twitter-openapi/dist/docs/schemas/instruction.yaml +0 -83
  517. package/twitter-openapi/dist/docs/schemas/timeline.yaml +0 -25
  518. package/twitter-openapi/dist/docs/schemas/tweet.yaml +0 -251
  519. package/twitter-openapi/dist/docs/schemas/typename.yaml +0 -19
  520. package/twitter-openapi/dist/docs/schemas/user.yaml +0 -206
  521. package/twitter-openapi/dist/test/openapi-3.0.yaml +0 -135
  522. package/twitter-openapi/dist/test/paths/bookmarks.yaml +0 -105
  523. package/twitter-openapi/dist/test/paths/follow.yaml +0 -204
  524. package/twitter-openapi/dist/test/paths/other.yaml +0 -96
  525. package/twitter-openapi/dist/test/paths/post.yaml +0 -485
  526. package/twitter-openapi/dist/test/paths/profile.yaml +0 -123
  527. package/twitter-openapi/dist/test/paths/timeline.yaml +0 -293
  528. package/twitter-openapi/dist/test/paths/tweet.yaml +0 -105
  529. package/twitter-openapi/dist/test/paths/user.yaml +0 -83
  530. package/twitter-openapi/dist/test/paths/usertweets.yaml +0 -368
  531. package/twitter-openapi/dist/test/paths/v1.1-get.yaml +0 -242
  532. package/twitter-openapi/dist/test/paths/v1.1-post.yaml +0 -277
  533. package/twitter-openapi/dist/test/paths/v2.0-get.yaml +0 -302
  534. package/twitter-openapi/dist/test/response/error.yaml +0 -90
  535. package/twitter-openapi/dist/test/schemas/content.yaml +0 -181
  536. package/twitter-openapi/dist/test/schemas/general.yaml +0 -13
  537. package/twitter-openapi/dist/test/schemas/instruction.yaml +0 -83
  538. package/twitter-openapi/dist/test/schemas/timeline.yaml +0 -25
  539. package/twitter-openapi/dist/test/schemas/tweet.yaml +0 -251
  540. package/twitter-openapi/dist/test/schemas/typename.yaml +0 -19
  541. package/twitter-openapi/dist/test/schemas/user.yaml +0 -206
  542. package/twitter-openapi/dist/typescript/openapi-3.0.yaml +0 -135
  543. package/twitter-openapi/dist/typescript/paths/bookmarks.yaml +0 -105
  544. package/twitter-openapi/dist/typescript/paths/follow.yaml +0 -204
  545. package/twitter-openapi/dist/typescript/paths/other.yaml +0 -96
  546. package/twitter-openapi/dist/typescript/paths/post.yaml +0 -660
  547. package/twitter-openapi/dist/typescript/paths/profile.yaml +0 -123
  548. package/twitter-openapi/dist/typescript/paths/timeline.yaml +0 -293
  549. package/twitter-openapi/dist/typescript/paths/tweet.yaml +0 -105
  550. package/twitter-openapi/dist/typescript/paths/user.yaml +0 -83
  551. package/twitter-openapi/dist/typescript/paths/usertweets.yaml +0 -368
  552. package/twitter-openapi/dist/typescript/paths/v1.1-get.yaml +0 -242
  553. package/twitter-openapi/dist/typescript/paths/v1.1-post.yaml +0 -237
  554. package/twitter-openapi/dist/typescript/paths/v2.0-get.yaml +0 -302
  555. package/twitter-openapi/dist/typescript/response/error.yaml +0 -90
  556. package/twitter-openapi/dist/typescript/schemas/content.yaml +0 -181
  557. package/twitter-openapi/dist/typescript/schemas/general.yaml +0 -13
  558. package/twitter-openapi/dist/typescript/schemas/instruction.yaml +0 -83
  559. package/twitter-openapi/dist/typescript/schemas/timeline.yaml +0 -25
  560. package/twitter-openapi/dist/typescript/schemas/tweet.yaml +0 -251
  561. package/twitter-openapi/dist/typescript/schemas/typename.yaml +0 -19
  562. package/twitter-openapi/dist/typescript/schemas/user.yaml +0 -206
@@ -1,828 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Twitter OpenAPI
6
- * Twitter OpenAPI(Swagger) specification
7
- *
8
- * The version of the OpenAPI document: 0.0.1
9
- * Contact: yuki@yuki0311.com
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- var __extends = (this && this.__extends) || (function () {
16
- var extendStatics = function (d, b) {
17
- extendStatics = Object.setPrototypeOf ||
18
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
- return extendStatics(d, b);
21
- };
22
- return function (d, b) {
23
- if (typeof b !== "function" && b !== null)
24
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
- extendStatics(d, b);
26
- function __() { this.constructor = d; }
27
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
- };
29
- })();
30
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
31
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
32
- return new (P || (P = Promise))(function (resolve, reject) {
33
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
34
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
35
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
36
- step((generator = generator.apply(thisArg, _arguments || [])).next());
37
- });
38
- };
39
- var __generator = (this && this.__generator) || function (thisArg, body) {
40
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
41
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
42
- function verb(n) { return function (v) { return step([n, v]); }; }
43
- function step(op) {
44
- if (f) throw new TypeError("Generator is already executing.");
45
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
46
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
47
- if (y = 0, t) op = [op[0] & 2, t.value];
48
- switch (op[0]) {
49
- case 0: case 1: t = op; break;
50
- case 4: _.label++; return { value: op[1], done: false };
51
- case 5: _.label++; y = op[1]; op = [0]; continue;
52
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
53
- default:
54
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
55
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
56
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
57
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
58
- if (t[2]) _.ops.pop();
59
- _.trys.pop(); continue;
60
- }
61
- op = body.call(thisArg, _);
62
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
63
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
64
- }
65
- };
66
- Object.defineProperty(exports, "__esModule", { value: true });
67
- exports.TweetApi = void 0;
68
- var runtime = require("../runtime");
69
- var models_1 = require("../models");
70
- /**
71
- *
72
- */
73
- var TweetApi = /** @class */ (function (_super) {
74
- __extends(TweetApi, _super);
75
- function TweetApi() {
76
- return _super !== null && _super.apply(this, arguments) || this;
77
- }
78
- /**
79
- * get bookmarks
80
- */
81
- TweetApi.prototype.getBookmarksRaw = function (requestParameters, initOverrides) {
82
- return __awaiter(this, void 0, void 0, function () {
83
- var queryParameters, headerParameters, token, tokenString, response;
84
- return __generator(this, function (_a) {
85
- switch (_a.label) {
86
- case 0:
87
- if (requestParameters.queryId === null || requestParameters.queryId === undefined) {
88
- throw new runtime.RequiredError('queryId', 'Required parameter requestParameters.queryId was null or undefined when calling getBookmarks.');
89
- }
90
- if (requestParameters.variables === null || requestParameters.variables === undefined) {
91
- throw new runtime.RequiredError('variables', 'Required parameter requestParameters.variables was null or undefined when calling getBookmarks.');
92
- }
93
- if (requestParameters.features === null || requestParameters.features === undefined) {
94
- throw new runtime.RequiredError('features', 'Required parameter requestParameters.features was null or undefined when calling getBookmarks.');
95
- }
96
- queryParameters = {};
97
- if (requestParameters.queryId !== undefined) {
98
- queryParameters['queryId'] = requestParameters.queryId;
99
- }
100
- if (requestParameters.variables !== undefined) {
101
- queryParameters['variables'] = requestParameters.variables;
102
- }
103
- if (requestParameters.features !== undefined) {
104
- queryParameters['features'] = requestParameters.features;
105
- }
106
- headerParameters = {};
107
- if (this.configuration && this.configuration.apiKey) {
108
- headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
109
- }
110
- if (this.configuration && this.configuration.apiKey) {
111
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
112
- }
113
- if (this.configuration && this.configuration.apiKey) {
114
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
115
- }
116
- if (this.configuration && this.configuration.apiKey) {
117
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
118
- }
119
- if (this.configuration && this.configuration.apiKey) {
120
- headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
121
- }
122
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
123
- token = this.configuration.accessToken;
124
- return [4 /*yield*/, token("BearerAuth", [])];
125
- case 1:
126
- tokenString = _a.sent();
127
- if (tokenString) {
128
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
129
- }
130
- _a.label = 2;
131
- case 2: return [4 /*yield*/, this.request({
132
- path: "/graphql/tmd4ifV8RHltzn8ymGg1aw/Bookmarks",
133
- method: 'GET',
134
- headers: headerParameters,
135
- query: queryParameters,
136
- }, initOverrides)];
137
- case 3:
138
- response = _a.sent();
139
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.BookmarksResponseFromJSON)(jsonValue); })];
140
- }
141
- });
142
- });
143
- };
144
- /**
145
- * get bookmarks
146
- */
147
- TweetApi.prototype.getBookmarks = function (requestParameters, initOverrides) {
148
- return __awaiter(this, void 0, void 0, function () {
149
- var response;
150
- return __generator(this, function (_a) {
151
- switch (_a.label) {
152
- case 0: return [4 /*yield*/, this.getBookmarksRaw(requestParameters, initOverrides)];
153
- case 1:
154
- response = _a.sent();
155
- return [4 /*yield*/, response.value()];
156
- case 2: return [2 /*return*/, _a.sent()];
157
- }
158
- });
159
- });
160
- };
161
- /**
162
- * get tweet list of timeline
163
- */
164
- TweetApi.prototype.getHomeLatestTimelineRaw = function (requestParameters, initOverrides) {
165
- return __awaiter(this, void 0, void 0, function () {
166
- var queryParameters, headerParameters, token, tokenString, response;
167
- return __generator(this, function (_a) {
168
- switch (_a.label) {
169
- case 0:
170
- if (requestParameters.queryId === null || requestParameters.queryId === undefined) {
171
- throw new runtime.RequiredError('queryId', 'Required parameter requestParameters.queryId was null or undefined when calling getHomeLatestTimeline.');
172
- }
173
- if (requestParameters.variables === null || requestParameters.variables === undefined) {
174
- throw new runtime.RequiredError('variables', 'Required parameter requestParameters.variables was null or undefined when calling getHomeLatestTimeline.');
175
- }
176
- if (requestParameters.features === null || requestParameters.features === undefined) {
177
- throw new runtime.RequiredError('features', 'Required parameter requestParameters.features was null or undefined when calling getHomeLatestTimeline.');
178
- }
179
- queryParameters = {};
180
- if (requestParameters.queryId !== undefined) {
181
- queryParameters['queryId'] = requestParameters.queryId;
182
- }
183
- if (requestParameters.variables !== undefined) {
184
- queryParameters['variables'] = requestParameters.variables;
185
- }
186
- if (requestParameters.features !== undefined) {
187
- queryParameters['features'] = requestParameters.features;
188
- }
189
- headerParameters = {};
190
- if (this.configuration && this.configuration.apiKey) {
191
- headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
192
- }
193
- if (this.configuration && this.configuration.apiKey) {
194
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
195
- }
196
- if (this.configuration && this.configuration.apiKey) {
197
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
198
- }
199
- if (this.configuration && this.configuration.apiKey) {
200
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
201
- }
202
- if (this.configuration && this.configuration.apiKey) {
203
- headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
204
- }
205
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
206
- token = this.configuration.accessToken;
207
- return [4 /*yield*/, token("BearerAuth", [])];
208
- case 1:
209
- tokenString = _a.sent();
210
- if (tokenString) {
211
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
212
- }
213
- _a.label = 2;
214
- case 2: return [4 /*yield*/, this.request({
215
- path: "/graphql/zhX91JE87mWvfprhYE97xA/HomeLatestTimeline",
216
- method: 'GET',
217
- headers: headerParameters,
218
- query: queryParameters,
219
- }, initOverrides)];
220
- case 3:
221
- response = _a.sent();
222
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.TimelineResponseFromJSON)(jsonValue); })];
223
- }
224
- });
225
- });
226
- };
227
- /**
228
- * get tweet list of timeline
229
- */
230
- TweetApi.prototype.getHomeLatestTimeline = function (requestParameters, initOverrides) {
231
- return __awaiter(this, void 0, void 0, function () {
232
- var response;
233
- return __generator(this, function (_a) {
234
- switch (_a.label) {
235
- case 0: return [4 /*yield*/, this.getHomeLatestTimelineRaw(requestParameters, initOverrides)];
236
- case 1:
237
- response = _a.sent();
238
- return [4 /*yield*/, response.value()];
239
- case 2: return [2 /*return*/, _a.sent()];
240
- }
241
- });
242
- });
243
- };
244
- /**
245
- * get tweet list of timeline
246
- */
247
- TweetApi.prototype.getHomeTimelineRaw = function (requestParameters, initOverrides) {
248
- return __awaiter(this, void 0, void 0, function () {
249
- var queryParameters, headerParameters, token, tokenString, response;
250
- return __generator(this, function (_a) {
251
- switch (_a.label) {
252
- case 0:
253
- if (requestParameters.queryId === null || requestParameters.queryId === undefined) {
254
- throw new runtime.RequiredError('queryId', 'Required parameter requestParameters.queryId was null or undefined when calling getHomeTimeline.');
255
- }
256
- if (requestParameters.variables === null || requestParameters.variables === undefined) {
257
- throw new runtime.RequiredError('variables', 'Required parameter requestParameters.variables was null or undefined when calling getHomeTimeline.');
258
- }
259
- if (requestParameters.features === null || requestParameters.features === undefined) {
260
- throw new runtime.RequiredError('features', 'Required parameter requestParameters.features was null or undefined when calling getHomeTimeline.');
261
- }
262
- queryParameters = {};
263
- if (requestParameters.queryId !== undefined) {
264
- queryParameters['queryId'] = requestParameters.queryId;
265
- }
266
- if (requestParameters.variables !== undefined) {
267
- queryParameters['variables'] = requestParameters.variables;
268
- }
269
- if (requestParameters.features !== undefined) {
270
- queryParameters['features'] = requestParameters.features;
271
- }
272
- headerParameters = {};
273
- if (this.configuration && this.configuration.apiKey) {
274
- headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
275
- }
276
- if (this.configuration && this.configuration.apiKey) {
277
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
278
- }
279
- if (this.configuration && this.configuration.apiKey) {
280
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
281
- }
282
- if (this.configuration && this.configuration.apiKey) {
283
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
284
- }
285
- if (this.configuration && this.configuration.apiKey) {
286
- headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
287
- }
288
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
289
- token = this.configuration.accessToken;
290
- return [4 /*yield*/, token("BearerAuth", [])];
291
- case 1:
292
- tokenString = _a.sent();
293
- if (tokenString) {
294
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
295
- }
296
- _a.label = 2;
297
- case 2: return [4 /*yield*/, this.request({
298
- path: "/graphql/HCosKfLNW1AcOo3la3mMgg/HomeTimeline",
299
- method: 'GET',
300
- headers: headerParameters,
301
- query: queryParameters,
302
- }, initOverrides)];
303
- case 3:
304
- response = _a.sent();
305
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.TimelineResponseFromJSON)(jsonValue); })];
306
- }
307
- });
308
- });
309
- };
310
- /**
311
- * get tweet list of timeline
312
- */
313
- TweetApi.prototype.getHomeTimeline = function (requestParameters, initOverrides) {
314
- return __awaiter(this, void 0, void 0, function () {
315
- var response;
316
- return __generator(this, function (_a) {
317
- switch (_a.label) {
318
- case 0: return [4 /*yield*/, this.getHomeTimelineRaw(requestParameters, initOverrides)];
319
- case 1:
320
- response = _a.sent();
321
- return [4 /*yield*/, response.value()];
322
- case 2: return [2 /*return*/, _a.sent()];
323
- }
324
- });
325
- });
326
- };
327
- /**
328
- * get user likes tweets
329
- */
330
- TweetApi.prototype.getLikesRaw = function (requestParameters, initOverrides) {
331
- return __awaiter(this, void 0, void 0, function () {
332
- var queryParameters, headerParameters, token, tokenString, response;
333
- return __generator(this, function (_a) {
334
- switch (_a.label) {
335
- case 0:
336
- if (requestParameters.queryId === null || requestParameters.queryId === undefined) {
337
- throw new runtime.RequiredError('queryId', 'Required parameter requestParameters.queryId was null or undefined when calling getLikes.');
338
- }
339
- if (requestParameters.variables === null || requestParameters.variables === undefined) {
340
- throw new runtime.RequiredError('variables', 'Required parameter requestParameters.variables was null or undefined when calling getLikes.');
341
- }
342
- if (requestParameters.features === null || requestParameters.features === undefined) {
343
- throw new runtime.RequiredError('features', 'Required parameter requestParameters.features was null or undefined when calling getLikes.');
344
- }
345
- queryParameters = {};
346
- if (requestParameters.queryId !== undefined) {
347
- queryParameters['queryId'] = requestParameters.queryId;
348
- }
349
- if (requestParameters.variables !== undefined) {
350
- queryParameters['variables'] = requestParameters.variables;
351
- }
352
- if (requestParameters.features !== undefined) {
353
- queryParameters['features'] = requestParameters.features;
354
- }
355
- headerParameters = {};
356
- if (this.configuration && this.configuration.apiKey) {
357
- headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
358
- }
359
- if (this.configuration && this.configuration.apiKey) {
360
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
361
- }
362
- if (this.configuration && this.configuration.apiKey) {
363
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
364
- }
365
- if (this.configuration && this.configuration.apiKey) {
366
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
367
- }
368
- if (this.configuration && this.configuration.apiKey) {
369
- headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
370
- }
371
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
372
- token = this.configuration.accessToken;
373
- return [4 /*yield*/, token("BearerAuth", [])];
374
- case 1:
375
- tokenString = _a.sent();
376
- if (tokenString) {
377
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
378
- }
379
- _a.label = 2;
380
- case 2: return [4 /*yield*/, this.request({
381
- path: "/graphql/5fmEkRT-1AdHqEsbVgehMg/Likes",
382
- method: 'GET',
383
- headers: headerParameters,
384
- query: queryParameters,
385
- }, initOverrides)];
386
- case 3:
387
- response = _a.sent();
388
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.UserTweetsResponseFromJSON)(jsonValue); })];
389
- }
390
- });
391
- });
392
- };
393
- /**
394
- * get user likes tweets
395
- */
396
- TweetApi.prototype.getLikes = function (requestParameters, initOverrides) {
397
- return __awaiter(this, void 0, void 0, function () {
398
- var response;
399
- return __generator(this, function (_a) {
400
- switch (_a.label) {
401
- case 0: return [4 /*yield*/, this.getLikesRaw(requestParameters, initOverrides)];
402
- case 1:
403
- response = _a.sent();
404
- return [4 /*yield*/, response.value()];
405
- case 2: return [2 /*return*/, _a.sent()];
406
- }
407
- });
408
- });
409
- };
410
- /**
411
- * get tweet list of timeline
412
- */
413
- TweetApi.prototype.getListLatestTweetsTimelineRaw = function (requestParameters, initOverrides) {
414
- return __awaiter(this, void 0, void 0, function () {
415
- var queryParameters, headerParameters, token, tokenString, response;
416
- return __generator(this, function (_a) {
417
- switch (_a.label) {
418
- case 0:
419
- if (requestParameters.queryId === null || requestParameters.queryId === undefined) {
420
- throw new runtime.RequiredError('queryId', 'Required parameter requestParameters.queryId was null or undefined when calling getListLatestTweetsTimeline.');
421
- }
422
- if (requestParameters.variables === null || requestParameters.variables === undefined) {
423
- throw new runtime.RequiredError('variables', 'Required parameter requestParameters.variables was null or undefined when calling getListLatestTweetsTimeline.');
424
- }
425
- if (requestParameters.features === null || requestParameters.features === undefined) {
426
- throw new runtime.RequiredError('features', 'Required parameter requestParameters.features was null or undefined when calling getListLatestTweetsTimeline.');
427
- }
428
- queryParameters = {};
429
- if (requestParameters.queryId !== undefined) {
430
- queryParameters['queryId'] = requestParameters.queryId;
431
- }
432
- if (requestParameters.variables !== undefined) {
433
- queryParameters['variables'] = requestParameters.variables;
434
- }
435
- if (requestParameters.features !== undefined) {
436
- queryParameters['features'] = requestParameters.features;
437
- }
438
- headerParameters = {};
439
- if (this.configuration && this.configuration.apiKey) {
440
- headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
441
- }
442
- if (this.configuration && this.configuration.apiKey) {
443
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
444
- }
445
- if (this.configuration && this.configuration.apiKey) {
446
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
447
- }
448
- if (this.configuration && this.configuration.apiKey) {
449
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
450
- }
451
- if (this.configuration && this.configuration.apiKey) {
452
- headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
453
- }
454
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
455
- token = this.configuration.accessToken;
456
- return [4 /*yield*/, token("BearerAuth", [])];
457
- case 1:
458
- tokenString = _a.sent();
459
- if (tokenString) {
460
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
461
- }
462
- _a.label = 2;
463
- case 2: return [4 /*yield*/, this.request({
464
- path: "/graphql/2TemLyqrMpTeAmysdbnVqw/ListLatestTweetsTimeline",
465
- method: 'GET',
466
- headers: headerParameters,
467
- query: queryParameters,
468
- }, initOverrides)];
469
- case 3:
470
- response = _a.sent();
471
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.ListTweetsTimelineResponseFromJSON)(jsonValue); })];
472
- }
473
- });
474
- });
475
- };
476
- /**
477
- * get tweet list of timeline
478
- */
479
- TweetApi.prototype.getListLatestTweetsTimeline = function (requestParameters, initOverrides) {
480
- return __awaiter(this, void 0, void 0, function () {
481
- var response;
482
- return __generator(this, function (_a) {
483
- switch (_a.label) {
484
- case 0: return [4 /*yield*/, this.getListLatestTweetsTimelineRaw(requestParameters, initOverrides)];
485
- case 1:
486
- response = _a.sent();
487
- return [4 /*yield*/, response.value()];
488
- case 2: return [2 /*return*/, _a.sent()];
489
- }
490
- });
491
- });
492
- };
493
- /**
494
- * get TweetDetail
495
- */
496
- TweetApi.prototype.getTweetDetailRaw = function (requestParameters, initOverrides) {
497
- return __awaiter(this, void 0, void 0, function () {
498
- var queryParameters, headerParameters, token, tokenString, response;
499
- return __generator(this, function (_a) {
500
- switch (_a.label) {
501
- case 0:
502
- if (requestParameters.queryId === null || requestParameters.queryId === undefined) {
503
- throw new runtime.RequiredError('queryId', 'Required parameter requestParameters.queryId was null or undefined when calling getTweetDetail.');
504
- }
505
- if (requestParameters.variables === null || requestParameters.variables === undefined) {
506
- throw new runtime.RequiredError('variables', 'Required parameter requestParameters.variables was null or undefined when calling getTweetDetail.');
507
- }
508
- if (requestParameters.features === null || requestParameters.features === undefined) {
509
- throw new runtime.RequiredError('features', 'Required parameter requestParameters.features was null or undefined when calling getTweetDetail.');
510
- }
511
- queryParameters = {};
512
- if (requestParameters.queryId !== undefined) {
513
- queryParameters['queryId'] = requestParameters.queryId;
514
- }
515
- if (requestParameters.variables !== undefined) {
516
- queryParameters['variables'] = requestParameters.variables;
517
- }
518
- if (requestParameters.features !== undefined) {
519
- queryParameters['features'] = requestParameters.features;
520
- }
521
- headerParameters = {};
522
- if (this.configuration && this.configuration.apiKey) {
523
- headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
524
- }
525
- if (this.configuration && this.configuration.apiKey) {
526
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
527
- }
528
- if (this.configuration && this.configuration.apiKey) {
529
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
530
- }
531
- if (this.configuration && this.configuration.apiKey) {
532
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
533
- }
534
- if (this.configuration && this.configuration.apiKey) {
535
- headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
536
- }
537
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
538
- token = this.configuration.accessToken;
539
- return [4 /*yield*/, token("BearerAuth", [])];
540
- case 1:
541
- tokenString = _a.sent();
542
- if (tokenString) {
543
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
544
- }
545
- _a.label = 2;
546
- case 2: return [4 /*yield*/, this.request({
547
- path: "/graphql/wNNG8DBB8EaXw1lq4vFWGA/TweetDetail",
548
- method: 'GET',
549
- headers: headerParameters,
550
- query: queryParameters,
551
- }, initOverrides)];
552
- case 3:
553
- response = _a.sent();
554
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.TweetDetailResponseFromJSON)(jsonValue); })];
555
- }
556
- });
557
- });
558
- };
559
- /**
560
- * get TweetDetail
561
- */
562
- TweetApi.prototype.getTweetDetail = function (requestParameters, initOverrides) {
563
- return __awaiter(this, void 0, void 0, function () {
564
- var response;
565
- return __generator(this, function (_a) {
566
- switch (_a.label) {
567
- case 0: return [4 /*yield*/, this.getTweetDetailRaw(requestParameters, initOverrides)];
568
- case 1:
569
- response = _a.sent();
570
- return [4 /*yield*/, response.value()];
571
- case 2: return [2 /*return*/, _a.sent()];
572
- }
573
- });
574
- });
575
- };
576
- /**
577
- * get user media tweets
578
- */
579
- TweetApi.prototype.getUserMediaRaw = function (requestParameters, initOverrides) {
580
- return __awaiter(this, void 0, void 0, function () {
581
- var queryParameters, headerParameters, token, tokenString, response;
582
- return __generator(this, function (_a) {
583
- switch (_a.label) {
584
- case 0:
585
- if (requestParameters.queryId === null || requestParameters.queryId === undefined) {
586
- throw new runtime.RequiredError('queryId', 'Required parameter requestParameters.queryId was null or undefined when calling getUserMedia.');
587
- }
588
- if (requestParameters.variables === null || requestParameters.variables === undefined) {
589
- throw new runtime.RequiredError('variables', 'Required parameter requestParameters.variables was null or undefined when calling getUserMedia.');
590
- }
591
- if (requestParameters.features === null || requestParameters.features === undefined) {
592
- throw new runtime.RequiredError('features', 'Required parameter requestParameters.features was null or undefined when calling getUserMedia.');
593
- }
594
- queryParameters = {};
595
- if (requestParameters.queryId !== undefined) {
596
- queryParameters['queryId'] = requestParameters.queryId;
597
- }
598
- if (requestParameters.variables !== undefined) {
599
- queryParameters['variables'] = requestParameters.variables;
600
- }
601
- if (requestParameters.features !== undefined) {
602
- queryParameters['features'] = requestParameters.features;
603
- }
604
- headerParameters = {};
605
- if (this.configuration && this.configuration.apiKey) {
606
- headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
607
- }
608
- if (this.configuration && this.configuration.apiKey) {
609
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
610
- }
611
- if (this.configuration && this.configuration.apiKey) {
612
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
613
- }
614
- if (this.configuration && this.configuration.apiKey) {
615
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
616
- }
617
- if (this.configuration && this.configuration.apiKey) {
618
- headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
619
- }
620
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
621
- token = this.configuration.accessToken;
622
- return [4 /*yield*/, token("BearerAuth", [])];
623
- case 1:
624
- tokenString = _a.sent();
625
- if (tokenString) {
626
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
627
- }
628
- _a.label = 2;
629
- case 2: return [4 /*yield*/, this.request({
630
- path: "/graphql/YqiE3JL1KNgf9nSljYdxaA/UserMedia",
631
- method: 'GET',
632
- headers: headerParameters,
633
- query: queryParameters,
634
- }, initOverrides)];
635
- case 3:
636
- response = _a.sent();
637
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.UserTweetsResponseFromJSON)(jsonValue); })];
638
- }
639
- });
640
- });
641
- };
642
- /**
643
- * get user media tweets
644
- */
645
- TweetApi.prototype.getUserMedia = function (requestParameters, initOverrides) {
646
- return __awaiter(this, void 0, void 0, function () {
647
- var response;
648
- return __generator(this, function (_a) {
649
- switch (_a.label) {
650
- case 0: return [4 /*yield*/, this.getUserMediaRaw(requestParameters, initOverrides)];
651
- case 1:
652
- response = _a.sent();
653
- return [4 /*yield*/, response.value()];
654
- case 2: return [2 /*return*/, _a.sent()];
655
- }
656
- });
657
- });
658
- };
659
- /**
660
- * get user tweets
661
- */
662
- TweetApi.prototype.getUserTweetsRaw = function (requestParameters, initOverrides) {
663
- return __awaiter(this, void 0, void 0, function () {
664
- var queryParameters, headerParameters, token, tokenString, response;
665
- return __generator(this, function (_a) {
666
- switch (_a.label) {
667
- case 0:
668
- if (requestParameters.queryId === null || requestParameters.queryId === undefined) {
669
- throw new runtime.RequiredError('queryId', 'Required parameter requestParameters.queryId was null or undefined when calling getUserTweets.');
670
- }
671
- if (requestParameters.variables === null || requestParameters.variables === undefined) {
672
- throw new runtime.RequiredError('variables', 'Required parameter requestParameters.variables was null or undefined when calling getUserTweets.');
673
- }
674
- if (requestParameters.features === null || requestParameters.features === undefined) {
675
- throw new runtime.RequiredError('features', 'Required parameter requestParameters.features was null or undefined when calling getUserTweets.');
676
- }
677
- queryParameters = {};
678
- if (requestParameters.queryId !== undefined) {
679
- queryParameters['queryId'] = requestParameters.queryId;
680
- }
681
- if (requestParameters.variables !== undefined) {
682
- queryParameters['variables'] = requestParameters.variables;
683
- }
684
- if (requestParameters.features !== undefined) {
685
- queryParameters['features'] = requestParameters.features;
686
- }
687
- headerParameters = {};
688
- if (this.configuration && this.configuration.apiKey) {
689
- headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
690
- }
691
- if (this.configuration && this.configuration.apiKey) {
692
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
693
- }
694
- if (this.configuration && this.configuration.apiKey) {
695
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
696
- }
697
- if (this.configuration && this.configuration.apiKey) {
698
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
699
- }
700
- if (this.configuration && this.configuration.apiKey) {
701
- headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
702
- }
703
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
704
- token = this.configuration.accessToken;
705
- return [4 /*yield*/, token("BearerAuth", [])];
706
- case 1:
707
- tokenString = _a.sent();
708
- if (tokenString) {
709
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
710
- }
711
- _a.label = 2;
712
- case 2: return [4 /*yield*/, this.request({
713
- path: "/graphql/HuTx74BxAnezK1gWvYY7zg/UserTweets",
714
- method: 'GET',
715
- headers: headerParameters,
716
- query: queryParameters,
717
- }, initOverrides)];
718
- case 3:
719
- response = _a.sent();
720
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.UserTweetsResponseFromJSON)(jsonValue); })];
721
- }
722
- });
723
- });
724
- };
725
- /**
726
- * get user tweets
727
- */
728
- TweetApi.prototype.getUserTweets = function (requestParameters, initOverrides) {
729
- return __awaiter(this, void 0, void 0, function () {
730
- var response;
731
- return __generator(this, function (_a) {
732
- switch (_a.label) {
733
- case 0: return [4 /*yield*/, this.getUserTweetsRaw(requestParameters, initOverrides)];
734
- case 1:
735
- response = _a.sent();
736
- return [4 /*yield*/, response.value()];
737
- case 2: return [2 /*return*/, _a.sent()];
738
- }
739
- });
740
- });
741
- };
742
- /**
743
- * get user replies tweets
744
- */
745
- TweetApi.prototype.getUserTweetsAndRepliesRaw = function (requestParameters, initOverrides) {
746
- return __awaiter(this, void 0, void 0, function () {
747
- var queryParameters, headerParameters, token, tokenString, response;
748
- return __generator(this, function (_a) {
749
- switch (_a.label) {
750
- case 0:
751
- if (requestParameters.queryId === null || requestParameters.queryId === undefined) {
752
- throw new runtime.RequiredError('queryId', 'Required parameter requestParameters.queryId was null or undefined when calling getUserTweetsAndReplies.');
753
- }
754
- if (requestParameters.variables === null || requestParameters.variables === undefined) {
755
- throw new runtime.RequiredError('variables', 'Required parameter requestParameters.variables was null or undefined when calling getUserTweetsAndReplies.');
756
- }
757
- if (requestParameters.features === null || requestParameters.features === undefined) {
758
- throw new runtime.RequiredError('features', 'Required parameter requestParameters.features was null or undefined when calling getUserTweetsAndReplies.');
759
- }
760
- queryParameters = {};
761
- if (requestParameters.queryId !== undefined) {
762
- queryParameters['queryId'] = requestParameters.queryId;
763
- }
764
- if (requestParameters.variables !== undefined) {
765
- queryParameters['variables'] = requestParameters.variables;
766
- }
767
- if (requestParameters.features !== undefined) {
768
- queryParameters['features'] = requestParameters.features;
769
- }
770
- headerParameters = {};
771
- if (this.configuration && this.configuration.apiKey) {
772
- headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
773
- }
774
- if (this.configuration && this.configuration.apiKey) {
775
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
776
- }
777
- if (this.configuration && this.configuration.apiKey) {
778
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
779
- }
780
- if (this.configuration && this.configuration.apiKey) {
781
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
782
- }
783
- if (this.configuration && this.configuration.apiKey) {
784
- headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
785
- }
786
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
787
- token = this.configuration.accessToken;
788
- return [4 /*yield*/, token("BearerAuth", [])];
789
- case 1:
790
- tokenString = _a.sent();
791
- if (tokenString) {
792
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
793
- }
794
- _a.label = 2;
795
- case 2: return [4 /*yield*/, this.request({
796
- path: "/graphql/RIWc55YCNyUJ-U3HHGYkdg/UserTweetsAndReplies",
797
- method: 'GET',
798
- headers: headerParameters,
799
- query: queryParameters,
800
- }, initOverrides)];
801
- case 3:
802
- response = _a.sent();
803
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.UserTweetsResponseFromJSON)(jsonValue); })];
804
- }
805
- });
806
- });
807
- };
808
- /**
809
- * get user replies tweets
810
- */
811
- TweetApi.prototype.getUserTweetsAndReplies = function (requestParameters, initOverrides) {
812
- return __awaiter(this, void 0, void 0, function () {
813
- var response;
814
- return __generator(this, function (_a) {
815
- switch (_a.label) {
816
- case 0: return [4 /*yield*/, this.getUserTweetsAndRepliesRaw(requestParameters, initOverrides)];
817
- case 1:
818
- response = _a.sent();
819
- return [4 /*yield*/, response.value()];
820
- case 2: return [2 /*return*/, _a.sent()];
821
- }
822
- });
823
- });
824
- };
825
- return TweetApi;
826
- }(runtime.BaseAPI));
827
- exports.TweetApi = TweetApi;
828
- //# sourceMappingURL=TweetApi.js.map