twitter-openapi-typescript-generated 0.0.12 → 0.0.14

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 (831) hide show
  1. package/.openapi-generator/FILES +14 -0
  2. package/README.md +2 -2
  3. package/package.json +2 -3
  4. package/src/models/BirdwatchEntity.ts +91 -0
  5. package/src/models/BirdwatchEntityRef.ts +102 -0
  6. package/src/models/BirdwatchPivot.ts +165 -0
  7. package/src/models/BirdwatchPivotFooter.ts +82 -0
  8. package/src/models/BirdwatchPivotNote.ts +66 -0
  9. package/src/models/BirdwatchPivotSubtitle.ts +82 -0
  10. package/src/models/ContentItemType.ts +2 -1
  11. package/src/models/ExtMediaAvailability.ts +10 -1
  12. package/src/models/ItemContentUnion.ts +12 -1
  13. package/src/models/NoteTweet.ts +82 -0
  14. package/src/models/NoteTweetResult.ts +73 -0
  15. package/src/models/NoteTweetResultData.ts +119 -0
  16. package/src/models/NoteTweetResultMedia.ts +73 -0
  17. package/src/models/NoteTweetResultMediaInlineMedia.ts +75 -0
  18. package/src/models/NoteTweetResultRichText.ts +73 -0
  19. package/src/models/NoteTweetResultRichTextTag.ts +95 -0
  20. package/src/models/TimelineCommunity.ts +75 -0
  21. package/src/models/Tweet.ts +36 -0
  22. package/src/models/TypeName.ts +1 -0
  23. package/src/models/index.ts +14 -0
  24. package/tools/openapi-generator-config.yaml +1 -1
  25. package/tools/win/gen.ps1 +2 -2
  26. package/tools/win/replace.py +3 -0
  27. package/twitter-openapi/README.md +2 -0
  28. package/twitter-openapi/dist/compatible/openapi-3.0.yaml +182 -0
  29. package/twitter-openapi/dist/docs/openapi-3.0.yaml +182 -0
  30. package/twitter-openapi/src/openapi/schemas/content.yaml +9 -0
  31. package/twitter-openapi/src/openapi/schemas/tweet.yaml +180 -1
  32. package/twitter-openapi/src/openapi/schemas/typename.yaml +1 -0
  33. package/twitter-openapi/test/python/test_serialize.py +14 -0
  34. package/dist/apis/DefaultApi.d.ts +0 -45
  35. package/dist/apis/DefaultApi.d.ts.map +0 -1
  36. package/dist/apis/DefaultApi.js +0 -315
  37. package/dist/apis/DefaultApi.js.map +0 -1
  38. package/dist/apis/OtherApi.d.ts +0 -27
  39. package/dist/apis/OtherApi.d.ts.map +0 -1
  40. package/dist/apis/OtherApi.js +0 -183
  41. package/dist/apis/OtherApi.js.map +0 -1
  42. package/dist/apis/PostApi.d.ts +0 -91
  43. package/dist/apis/PostApi.d.ts.map +0 -1
  44. package/dist/apis/PostApi.js +0 -741
  45. package/dist/apis/PostApi.js.map +0 -1
  46. package/dist/apis/TweetApi.d.ts +0 -163
  47. package/dist/apis/TweetApi.d.ts.map +0 -1
  48. package/dist/apis/TweetApi.js +0 -1374
  49. package/dist/apis/TweetApi.js.map +0 -1
  50. package/dist/apis/UserApi.d.ts +0 -46
  51. package/dist/apis/UserApi.d.ts.map +0 -1
  52. package/dist/apis/UserApi.js +0 -321
  53. package/dist/apis/UserApi.js.map +0 -1
  54. package/dist/apis/UserListApi.d.ts +0 -84
  55. package/dist/apis/UserListApi.d.ts.map +0 -1
  56. package/dist/apis/UserListApi.js +0 -666
  57. package/dist/apis/UserListApi.js.map +0 -1
  58. package/dist/apis/UsersApi.d.ts +0 -32
  59. package/dist/apis/UsersApi.d.ts.map +0 -1
  60. package/dist/apis/UsersApi.js +0 -198
  61. package/dist/apis/UsersApi.js.map +0 -1
  62. package/dist/apis/V11GetApi.d.ts +0 -61
  63. package/dist/apis/V11GetApi.d.ts.map +0 -1
  64. package/dist/apis/V11GetApi.js +0 -418
  65. package/dist/apis/V11GetApi.js.map +0 -1
  66. package/dist/apis/V11PostApi.d.ts +0 -66
  67. package/dist/apis/V11PostApi.d.ts.map +0 -1
  68. package/dist/apis/V11PostApi.js +0 -472
  69. package/dist/apis/V11PostApi.js.map +0 -1
  70. package/dist/apis/V20GetApi.d.ts +0 -65
  71. package/dist/apis/V20GetApi.d.ts.map +0 -1
  72. package/dist/apis/V20GetApi.js +0 -402
  73. package/dist/apis/V20GetApi.js.map +0 -1
  74. package/dist/apis/index.d.ts +0 -11
  75. package/dist/apis/index.d.ts.map +0 -1
  76. package/dist/apis/index.js +0 -29
  77. package/dist/apis/index.js.map +0 -1
  78. package/dist/index.d.ts +0 -4
  79. package/dist/index.d.ts.map +0 -1
  80. package/dist/index.js +0 -22
  81. package/dist/index.js.map +0 -1
  82. package/dist/models/AdditionalMediaInfo.d.ts +0 -32
  83. package/dist/models/AdditionalMediaInfo.d.ts.map +0 -1
  84. package/dist/models/AdditionalMediaInfo.js +0 -51
  85. package/dist/models/AdditionalMediaInfo.js.map +0 -1
  86. package/dist/models/BookmarksResponse.d.ts +0 -33
  87. package/dist/models/BookmarksResponse.d.ts.map +0 -1
  88. package/dist/models/BookmarksResponse.js +0 -52
  89. package/dist/models/BookmarksResponse.js.map +0 -1
  90. package/dist/models/BookmarksResponseData.d.ts +0 -33
  91. package/dist/models/BookmarksResponseData.d.ts.map +0 -1
  92. package/dist/models/BookmarksResponseData.js +0 -52
  93. package/dist/models/BookmarksResponseData.js.map +0 -1
  94. package/dist/models/BookmarksTimeline.d.ts +0 -33
  95. package/dist/models/BookmarksTimeline.d.ts.map +0 -1
  96. package/dist/models/BookmarksTimeline.js +0 -52
  97. package/dist/models/BookmarksTimeline.js.map +0 -1
  98. package/dist/models/Callback.d.ts +0 -32
  99. package/dist/models/Callback.d.ts.map +0 -1
  100. package/dist/models/Callback.js +0 -51
  101. package/dist/models/Callback.js.map +0 -1
  102. package/dist/models/ClientEventInfo.d.ts +0 -46
  103. package/dist/models/ClientEventInfo.d.ts.map +0 -1
  104. package/dist/models/ClientEventInfo.js +0 -55
  105. package/dist/models/ClientEventInfo.js.map +0 -1
  106. package/dist/models/CommunitiesActions.d.ts +0 -32
  107. package/dist/models/CommunitiesActions.d.ts.map +0 -1
  108. package/dist/models/CommunitiesActions.js +0 -51
  109. package/dist/models/CommunitiesActions.js.map +0 -1
  110. package/dist/models/ContentEntryType.d.ts +0 -25
  111. package/dist/models/ContentEntryType.d.ts.map +0 -1
  112. package/dist/models/ContentEntryType.js +0 -38
  113. package/dist/models/ContentEntryType.js.map +0 -1
  114. package/dist/models/ContentItemType.d.ts +0 -27
  115. package/dist/models/ContentItemType.d.ts.map +0 -1
  116. package/dist/models/ContentItemType.js +0 -40
  117. package/dist/models/ContentItemType.js.map +0 -1
  118. package/dist/models/ContentUnion.d.ts +0 -30
  119. package/dist/models/ContentUnion.d.ts.map +0 -1
  120. package/dist/models/ContentUnion.js +0 -70
  121. package/dist/models/ContentUnion.js.map +0 -1
  122. package/dist/models/CoverCta.d.ts +0 -66
  123. package/dist/models/CoverCta.d.ts.map +0 -1
  124. package/dist/models/CoverCta.js +0 -71
  125. package/dist/models/CoverCta.js.map +0 -1
  126. package/dist/models/CreateRetweet.d.ts +0 -33
  127. package/dist/models/CreateRetweet.d.ts.map +0 -1
  128. package/dist/models/CreateRetweet.js +0 -52
  129. package/dist/models/CreateRetweet.js.map +0 -1
  130. package/dist/models/CreateRetweetResponse.d.ts +0 -33
  131. package/dist/models/CreateRetweetResponse.d.ts.map +0 -1
  132. package/dist/models/CreateRetweetResponse.js +0 -52
  133. package/dist/models/CreateRetweetResponse.js.map +0 -1
  134. package/dist/models/CreateRetweetResponseData.d.ts +0 -33
  135. package/dist/models/CreateRetweetResponseData.d.ts.map +0 -1
  136. package/dist/models/CreateRetweetResponseData.js +0 -52
  137. package/dist/models/CreateRetweetResponseData.js.map +0 -1
  138. package/dist/models/CreateRetweetResponseResult.d.ts +0 -33
  139. package/dist/models/CreateRetweetResponseResult.d.ts.map +0 -1
  140. package/dist/models/CreateRetweetResponseResult.js +0 -52
  141. package/dist/models/CreateRetweetResponseResult.js.map +0 -1
  142. package/dist/models/CreateTweet.d.ts +0 -33
  143. package/dist/models/CreateTweet.d.ts.map +0 -1
  144. package/dist/models/CreateTweet.js +0 -52
  145. package/dist/models/CreateTweet.js.map +0 -1
  146. package/dist/models/CreateTweetResponse.d.ts +0 -33
  147. package/dist/models/CreateTweetResponse.d.ts.map +0 -1
  148. package/dist/models/CreateTweetResponse.js +0 -52
  149. package/dist/models/CreateTweetResponse.js.map +0 -1
  150. package/dist/models/CreateTweetResponseData.d.ts +0 -33
  151. package/dist/models/CreateTweetResponseData.d.ts.map +0 -1
  152. package/dist/models/CreateTweetResponseData.js +0 -52
  153. package/dist/models/CreateTweetResponseData.js.map +0 -1
  154. package/dist/models/CreateTweetResponseResult.d.ts +0 -33
  155. package/dist/models/CreateTweetResponseResult.d.ts.map +0 -1
  156. package/dist/models/CreateTweetResponseResult.js +0 -52
  157. package/dist/models/CreateTweetResponseResult.js.map +0 -1
  158. package/dist/models/CtaClientEventInfo.d.ts +0 -39
  159. package/dist/models/CtaClientEventInfo.d.ts.map +0 -1
  160. package/dist/models/CtaClientEventInfo.js +0 -57
  161. package/dist/models/CtaClientEventInfo.js.map +0 -1
  162. package/dist/models/CursorType.d.ts +0 -27
  163. package/dist/models/CursorType.d.ts.map +0 -1
  164. package/dist/models/CursorType.js +0 -40
  165. package/dist/models/CursorType.js.map +0 -1
  166. package/dist/models/DeleteRetweet.d.ts +0 -33
  167. package/dist/models/DeleteRetweet.d.ts.map +0 -1
  168. package/dist/models/DeleteRetweet.js +0 -52
  169. package/dist/models/DeleteRetweet.js.map +0 -1
  170. package/dist/models/DeleteRetweetResponse.d.ts +0 -33
  171. package/dist/models/DeleteRetweetResponse.d.ts.map +0 -1
  172. package/dist/models/DeleteRetweetResponse.js +0 -52
  173. package/dist/models/DeleteRetweetResponse.js.map +0 -1
  174. package/dist/models/DeleteRetweetResponseData.d.ts +0 -33
  175. package/dist/models/DeleteRetweetResponseData.d.ts.map +0 -1
  176. package/dist/models/DeleteRetweetResponseData.js +0 -52
  177. package/dist/models/DeleteRetweetResponseData.js.map +0 -1
  178. package/dist/models/DeleteRetweetResponseResult.d.ts +0 -33
  179. package/dist/models/DeleteRetweetResponseResult.d.ts.map +0 -1
  180. package/dist/models/DeleteRetweetResponseResult.js +0 -52
  181. package/dist/models/DeleteRetweetResponseResult.js.map +0 -1
  182. package/dist/models/DeleteTweetResponse.d.ts +0 -33
  183. package/dist/models/DeleteTweetResponse.d.ts.map +0 -1
  184. package/dist/models/DeleteTweetResponse.js +0 -52
  185. package/dist/models/DeleteTweetResponse.js.map +0 -1
  186. package/dist/models/DeleteTweetResponseData.d.ts +0 -33
  187. package/dist/models/DeleteTweetResponseData.d.ts.map +0 -1
  188. package/dist/models/DeleteTweetResponseData.js +0 -52
  189. package/dist/models/DeleteTweetResponseData.js.map +0 -1
  190. package/dist/models/DeleteTweetResponseResult.d.ts +0 -32
  191. package/dist/models/DeleteTweetResponseResult.d.ts.map +0 -1
  192. package/dist/models/DeleteTweetResponseResult.js +0 -51
  193. package/dist/models/DeleteTweetResponseResult.js.map +0 -1
  194. package/dist/models/Entities.d.ts +0 -64
  195. package/dist/models/Entities.d.ts.map +0 -1
  196. package/dist/models/Entities.js +0 -65
  197. package/dist/models/Entities.js.map +0 -1
  198. package/dist/models/ErrorExtensions.d.ts +0 -63
  199. package/dist/models/ErrorExtensions.d.ts.map +0 -1
  200. package/dist/models/ErrorExtensions.js +0 -67
  201. package/dist/models/ErrorExtensions.js.map +0 -1
  202. package/dist/models/ErrorResponse.d.ts +0 -33
  203. package/dist/models/ErrorResponse.d.ts.map +0 -1
  204. package/dist/models/ErrorResponse.js +0 -52
  205. package/dist/models/ErrorResponse.js.map +0 -1
  206. package/dist/models/Errors.d.ts +0 -32
  207. package/dist/models/Errors.d.ts.map +0 -1
  208. package/dist/models/Errors.js +0 -51
  209. package/dist/models/Errors.js.map +0 -1
  210. package/dist/models/ExtMediaAvailability.d.ts +0 -39
  211. package/dist/models/ExtMediaAvailability.d.ts.map +0 -1
  212. package/dist/models/ExtMediaAvailability.js +0 -57
  213. package/dist/models/ExtMediaAvailability.js.map +0 -1
  214. package/dist/models/ExtendedEntities.d.ts +0 -33
  215. package/dist/models/ExtendedEntities.d.ts.map +0 -1
  216. package/dist/models/ExtendedEntities.js +0 -52
  217. package/dist/models/ExtendedEntities.js.map +0 -1
  218. package/dist/models/Extensions.d.ts +0 -57
  219. package/dist/models/Extensions.d.ts.map +0 -1
  220. package/dist/models/Extensions.js +0 -64
  221. package/dist/models/Extensions.js.map +0 -1
  222. package/dist/models/FavoriteTweet.d.ts +0 -32
  223. package/dist/models/FavoriteTweet.d.ts.map +0 -1
  224. package/dist/models/FavoriteTweet.js +0 -51
  225. package/dist/models/FavoriteTweet.js.map +0 -1
  226. package/dist/models/FavoriteTweetResponseData.d.ts +0 -33
  227. package/dist/models/FavoriteTweetResponseData.d.ts.map +0 -1
  228. package/dist/models/FavoriteTweetResponseData.js +0 -52
  229. package/dist/models/FavoriteTweetResponseData.js.map +0 -1
  230. package/dist/models/FollowResponse.d.ts +0 -33
  231. package/dist/models/FollowResponse.d.ts.map +0 -1
  232. package/dist/models/FollowResponse.js +0 -52
  233. package/dist/models/FollowResponse.js.map +0 -1
  234. package/dist/models/FollowResponseData.d.ts +0 -33
  235. package/dist/models/FollowResponseData.d.ts.map +0 -1
  236. package/dist/models/FollowResponseData.js +0 -52
  237. package/dist/models/FollowResponseData.js.map +0 -1
  238. package/dist/models/FollowResponseResult.d.ts +0 -40
  239. package/dist/models/FollowResponseResult.d.ts.map +0 -1
  240. package/dist/models/FollowResponseResult.js +0 -56
  241. package/dist/models/FollowResponseResult.js.map +0 -1
  242. package/dist/models/FollowResponseUser.d.ts +0 -33
  243. package/dist/models/FollowResponseUser.d.ts.map +0 -1
  244. package/dist/models/FollowResponseUser.js +0 -52
  245. package/dist/models/FollowResponseUser.js.map +0 -1
  246. package/dist/models/FollowTimeline.d.ts +0 -33
  247. package/dist/models/FollowTimeline.d.ts.map +0 -1
  248. package/dist/models/FollowTimeline.js +0 -52
  249. package/dist/models/FollowTimeline.js.map +0 -1
  250. package/dist/models/GetBookmarks200Response.d.ts +0 -23
  251. package/dist/models/GetBookmarks200Response.d.ts.map +0 -1
  252. package/dist/models/GetBookmarks200Response.js +0 -57
  253. package/dist/models/GetBookmarks200Response.js.map +0 -1
  254. package/dist/models/GetFavoriters200Response.d.ts +0 -23
  255. package/dist/models/GetFavoriters200Response.d.ts.map +0 -1
  256. package/dist/models/GetFavoriters200Response.js +0 -57
  257. package/dist/models/GetFavoriters200Response.js.map +0 -1
  258. package/dist/models/GetFollowers200Response.d.ts +0 -23
  259. package/dist/models/GetFollowers200Response.d.ts.map +0 -1
  260. package/dist/models/GetFollowers200Response.js +0 -57
  261. package/dist/models/GetFollowers200Response.js.map +0 -1
  262. package/dist/models/GetHomeLatestTimeline200Response.d.ts +0 -23
  263. package/dist/models/GetHomeLatestTimeline200Response.d.ts.map +0 -1
  264. package/dist/models/GetHomeLatestTimeline200Response.js +0 -57
  265. package/dist/models/GetHomeLatestTimeline200Response.js.map +0 -1
  266. package/dist/models/GetLikes200Response.d.ts +0 -23
  267. package/dist/models/GetLikes200Response.d.ts.map +0 -1
  268. package/dist/models/GetLikes200Response.js +0 -57
  269. package/dist/models/GetLikes200Response.js.map +0 -1
  270. package/dist/models/GetListLatestTweetsTimeline200Response.d.ts +0 -23
  271. package/dist/models/GetListLatestTweetsTimeline200Response.d.ts.map +0 -1
  272. package/dist/models/GetListLatestTweetsTimeline200Response.js +0 -57
  273. package/dist/models/GetListLatestTweetsTimeline200Response.js.map +0 -1
  274. package/dist/models/GetProfileSpotlightsQuery200Response.d.ts +0 -23
  275. package/dist/models/GetProfileSpotlightsQuery200Response.d.ts.map +0 -1
  276. package/dist/models/GetProfileSpotlightsQuery200Response.js +0 -57
  277. package/dist/models/GetProfileSpotlightsQuery200Response.js.map +0 -1
  278. package/dist/models/GetRetweeters200Response.d.ts +0 -23
  279. package/dist/models/GetRetweeters200Response.d.ts.map +0 -1
  280. package/dist/models/GetRetweeters200Response.js +0 -57
  281. package/dist/models/GetRetweeters200Response.js.map +0 -1
  282. package/dist/models/GetSearchTimeline200Response.d.ts +0 -23
  283. package/dist/models/GetSearchTimeline200Response.d.ts.map +0 -1
  284. package/dist/models/GetSearchTimeline200Response.js +0 -57
  285. package/dist/models/GetSearchTimeline200Response.js.map +0 -1
  286. package/dist/models/GetTweetDetail200Response.d.ts +0 -23
  287. package/dist/models/GetTweetDetail200Response.d.ts.map +0 -1
  288. package/dist/models/GetTweetDetail200Response.js +0 -57
  289. package/dist/models/GetTweetDetail200Response.js.map +0 -1
  290. package/dist/models/GetTweetResultByRestId200Response.d.ts +0 -23
  291. package/dist/models/GetTweetResultByRestId200Response.d.ts.map +0 -1
  292. package/dist/models/GetTweetResultByRestId200Response.js +0 -57
  293. package/dist/models/GetTweetResultByRestId200Response.js.map +0 -1
  294. package/dist/models/GetUserByRestId200Response.d.ts +0 -23
  295. package/dist/models/GetUserByRestId200Response.d.ts.map +0 -1
  296. package/dist/models/GetUserByRestId200Response.js +0 -57
  297. package/dist/models/GetUserByRestId200Response.js.map +0 -1
  298. package/dist/models/GetUserHighlightsTweets200Response.d.ts +0 -23
  299. package/dist/models/GetUserHighlightsTweets200Response.d.ts.map +0 -1
  300. package/dist/models/GetUserHighlightsTweets200Response.js +0 -57
  301. package/dist/models/GetUserHighlightsTweets200Response.js.map +0 -1
  302. package/dist/models/GetUsersByRestIds200Response.d.ts +0 -23
  303. package/dist/models/GetUsersByRestIds200Response.d.ts.map +0 -1
  304. package/dist/models/GetUsersByRestIds200Response.js +0 -57
  305. package/dist/models/GetUsersByRestIds200Response.js.map +0 -1
  306. package/dist/models/HomeTimelineHome.d.ts +0 -33
  307. package/dist/models/HomeTimelineHome.d.ts.map +0 -1
  308. package/dist/models/HomeTimelineHome.js +0 -52
  309. package/dist/models/HomeTimelineHome.js.map +0 -1
  310. package/dist/models/HomeTimelineResponseData.d.ts +0 -33
  311. package/dist/models/HomeTimelineResponseData.d.ts.map +0 -1
  312. package/dist/models/HomeTimelineResponseData.js +0 -52
  313. package/dist/models/HomeTimelineResponseData.js.map +0 -1
  314. package/dist/models/InstructionType.d.ts +0 -30
  315. package/dist/models/InstructionType.d.ts.map +0 -1
  316. package/dist/models/InstructionType.js +0 -43
  317. package/dist/models/InstructionType.js.map +0 -1
  318. package/dist/models/InstructionUnion.d.ts +0 -45
  319. package/dist/models/InstructionUnion.d.ts.map +0 -1
  320. package/dist/models/InstructionUnion.js +0 -95
  321. package/dist/models/InstructionUnion.js.map +0 -1
  322. package/dist/models/ItemContentUnion.d.ts +0 -36
  323. package/dist/models/ItemContentUnion.d.ts.map +0 -1
  324. package/dist/models/ItemContentUnion.js +0 -80
  325. package/dist/models/ItemContentUnion.js.map +0 -1
  326. package/dist/models/ItemResult.d.ts +0 -40
  327. package/dist/models/ItemResult.d.ts.map +0 -1
  328. package/dist/models/ItemResult.js +0 -55
  329. package/dist/models/ItemResult.js.map +0 -1
  330. package/dist/models/ListLatestTweetsTimelineResponse.d.ts +0 -33
  331. package/dist/models/ListLatestTweetsTimelineResponse.d.ts.map +0 -1
  332. package/dist/models/ListLatestTweetsTimelineResponse.js +0 -52
  333. package/dist/models/ListLatestTweetsTimelineResponse.js.map +0 -1
  334. package/dist/models/ListTweetsTimeline.d.ts +0 -33
  335. package/dist/models/ListTweetsTimeline.d.ts.map +0 -1
  336. package/dist/models/ListTweetsTimeline.js +0 -52
  337. package/dist/models/ListTweetsTimeline.js.map +0 -1
  338. package/dist/models/ListTweetsTimelineData.d.ts +0 -33
  339. package/dist/models/ListTweetsTimelineData.d.ts.map +0 -1
  340. package/dist/models/ListTweetsTimelineData.js +0 -52
  341. package/dist/models/ListTweetsTimelineData.js.map +0 -1
  342. package/dist/models/ListTweetsTimelineList.d.ts +0 -33
  343. package/dist/models/ListTweetsTimelineList.d.ts.map +0 -1
  344. package/dist/models/ListTweetsTimelineList.js +0 -52
  345. package/dist/models/ListTweetsTimelineList.js.map +0 -1
  346. package/dist/models/Location.d.ts +0 -38
  347. package/dist/models/Location.d.ts.map +0 -1
  348. package/dist/models/Location.js +0 -54
  349. package/dist/models/Location.js.map +0 -1
  350. package/dist/models/Media.d.ts +0 -97
  351. package/dist/models/Media.d.ts.map +0 -1
  352. package/dist/models/Media.js +0 -88
  353. package/dist/models/Media.js.map +0 -1
  354. package/dist/models/MediaExtended.d.ts +0 -131
  355. package/dist/models/MediaExtended.d.ts.map +0 -1
  356. package/dist/models/MediaExtended.js +0 -103
  357. package/dist/models/MediaExtended.js.map +0 -1
  358. package/dist/models/MediaOriginalInfo.d.ts +0 -45
  359. package/dist/models/MediaOriginalInfo.d.ts.map +0 -1
  360. package/dist/models/MediaOriginalInfo.js +0 -58
  361. package/dist/models/MediaOriginalInfo.js.map +0 -1
  362. package/dist/models/MediaOriginalInfoFocusRect.d.ts +0 -50
  363. package/dist/models/MediaOriginalInfoFocusRect.d.ts.map +0 -1
  364. package/dist/models/MediaOriginalInfoFocusRect.js +0 -60
  365. package/dist/models/MediaOriginalInfoFocusRect.js.map +0 -1
  366. package/dist/models/MediaSize.d.ts +0 -52
  367. package/dist/models/MediaSize.d.ts.map +0 -1
  368. package/dist/models/MediaSize.js +0 -64
  369. package/dist/models/MediaSize.js.map +0 -1
  370. package/dist/models/MediaSizes.d.ts +0 -51
  371. package/dist/models/MediaSizes.d.ts.map +0 -1
  372. package/dist/models/MediaSizes.js +0 -61
  373. package/dist/models/MediaSizes.js.map +0 -1
  374. package/dist/models/MediaStats.d.ts +0 -32
  375. package/dist/models/MediaStats.d.ts.map +0 -1
  376. package/dist/models/MediaStats.js +0 -51
  377. package/dist/models/MediaStats.js.map +0 -1
  378. package/dist/models/MediaVideoInfo.d.ts +0 -45
  379. package/dist/models/MediaVideoInfo.d.ts.map +0 -1
  380. package/dist/models/MediaVideoInfo.js +0 -58
  381. package/dist/models/MediaVideoInfo.js.map +0 -1
  382. package/dist/models/MediaVideoInfoVariant.d.ts +0 -44
  383. package/dist/models/MediaVideoInfoVariant.d.ts.map +0 -1
  384. package/dist/models/MediaVideoInfoVariant.js +0 -57
  385. package/dist/models/MediaVideoInfoVariant.js.map +0 -1
  386. package/dist/models/ModelError.d.ts +0 -89
  387. package/dist/models/ModelError.d.ts.map +0 -1
  388. package/dist/models/ModelError.js +0 -81
  389. package/dist/models/ModelError.js.map +0 -1
  390. package/dist/models/ModuleEntry.d.ts +0 -40
  391. package/dist/models/ModuleEntry.d.ts.map +0 -1
  392. package/dist/models/ModuleEntry.js +0 -56
  393. package/dist/models/ModuleEntry.js.map +0 -1
  394. package/dist/models/ModuleItem.d.ts +0 -39
  395. package/dist/models/ModuleItem.d.ts.map +0 -1
  396. package/dist/models/ModuleItem.js +0 -55
  397. package/dist/models/ModuleItem.js.map +0 -1
  398. package/dist/models/OneFactorLoginEligibility.d.ts +0 -32
  399. package/dist/models/OneFactorLoginEligibility.d.ts.map +0 -1
  400. package/dist/models/OneFactorLoginEligibility.js +0 -51
  401. package/dist/models/OneFactorLoginEligibility.js.map +0 -1
  402. package/dist/models/Other200Response.d.ts +0 -22
  403. package/dist/models/Other200Response.d.ts.map +0 -1
  404. package/dist/models/Other200Response.js +0 -53
  405. package/dist/models/Other200Response.js.map +0 -1
  406. package/dist/models/OtherResponse.d.ts +0 -33
  407. package/dist/models/OtherResponse.d.ts.map +0 -1
  408. package/dist/models/OtherResponse.js +0 -52
  409. package/dist/models/OtherResponse.js.map +0 -1
  410. package/dist/models/PostCreateRetweet200Response.d.ts +0 -23
  411. package/dist/models/PostCreateRetweet200Response.d.ts.map +0 -1
  412. package/dist/models/PostCreateRetweet200Response.js +0 -57
  413. package/dist/models/PostCreateRetweet200Response.js.map +0 -1
  414. package/dist/models/PostCreateRetweetRequest.d.ts +0 -39
  415. package/dist/models/PostCreateRetweetRequest.d.ts.map +0 -1
  416. package/dist/models/PostCreateRetweetRequest.js +0 -55
  417. package/dist/models/PostCreateRetweetRequest.js.map +0 -1
  418. package/dist/models/PostCreateRetweetRequestVariables.d.ts +0 -38
  419. package/dist/models/PostCreateRetweetRequestVariables.d.ts.map +0 -1
  420. package/dist/models/PostCreateRetweetRequestVariables.js +0 -54
  421. package/dist/models/PostCreateRetweetRequestVariables.js.map +0 -1
  422. package/dist/models/PostCreateTweet200Response.d.ts +0 -23
  423. package/dist/models/PostCreateTweet200Response.d.ts.map +0 -1
  424. package/dist/models/PostCreateTweet200Response.js +0 -57
  425. package/dist/models/PostCreateTweet200Response.js.map +0 -1
  426. package/dist/models/PostCreateTweetRequest.d.ts +0 -46
  427. package/dist/models/PostCreateTweetRequest.d.ts.map +0 -1
  428. package/dist/models/PostCreateTweetRequest.js +0 -59
  429. package/dist/models/PostCreateTweetRequest.js.map +0 -1
  430. package/dist/models/PostCreateTweetRequestFeatures.d.ts +0 -134
  431. package/dist/models/PostCreateTweetRequestFeatures.d.ts.map +0 -1
  432. package/dist/models/PostCreateTweetRequestFeatures.js +0 -102
  433. package/dist/models/PostCreateTweetRequestFeatures.js.map +0 -1
  434. package/dist/models/PostCreateTweetRequestVariables.d.ts +0 -51
  435. package/dist/models/PostCreateTweetRequestVariables.d.ts.map +0 -1
  436. package/dist/models/PostCreateTweetRequestVariables.js +0 -61
  437. package/dist/models/PostCreateTweetRequestVariables.js.map +0 -1
  438. package/dist/models/PostCreateTweetRequestVariablesMedia.d.ts +0 -39
  439. package/dist/models/PostCreateTweetRequestVariablesMedia.d.ts.map +0 -1
  440. package/dist/models/PostCreateTweetRequestVariablesMedia.js +0 -55
  441. package/dist/models/PostCreateTweetRequestVariablesMedia.js.map +0 -1
  442. package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.d.ts +0 -38
  443. package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.d.ts.map +0 -1
  444. package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.js +0 -54
  445. package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.js.map +0 -1
  446. package/dist/models/PostDeleteRetweet200Response.d.ts +0 -23
  447. package/dist/models/PostDeleteRetweet200Response.d.ts.map +0 -1
  448. package/dist/models/PostDeleteRetweet200Response.js +0 -57
  449. package/dist/models/PostDeleteRetweet200Response.js.map +0 -1
  450. package/dist/models/PostDeleteRetweetRequest.d.ts +0 -39
  451. package/dist/models/PostDeleteRetweetRequest.d.ts.map +0 -1
  452. package/dist/models/PostDeleteRetweetRequest.js +0 -55
  453. package/dist/models/PostDeleteRetweetRequest.js.map +0 -1
  454. package/dist/models/PostDeleteRetweetRequestVariables.d.ts +0 -38
  455. package/dist/models/PostDeleteRetweetRequestVariables.d.ts.map +0 -1
  456. package/dist/models/PostDeleteRetweetRequestVariables.js +0 -54
  457. package/dist/models/PostDeleteRetweetRequestVariables.js.map +0 -1
  458. package/dist/models/PostDeleteTweet200Response.d.ts +0 -23
  459. package/dist/models/PostDeleteTweet200Response.d.ts.map +0 -1
  460. package/dist/models/PostDeleteTweet200Response.js +0 -57
  461. package/dist/models/PostDeleteTweet200Response.js.map +0 -1
  462. package/dist/models/PostDeleteTweetRequest.d.ts +0 -39
  463. package/dist/models/PostDeleteTweetRequest.d.ts.map +0 -1
  464. package/dist/models/PostDeleteTweetRequest.js +0 -55
  465. package/dist/models/PostDeleteTweetRequest.js.map +0 -1
  466. package/dist/models/PostFavoriteTweet200Response.d.ts +0 -23
  467. package/dist/models/PostFavoriteTweet200Response.d.ts.map +0 -1
  468. package/dist/models/PostFavoriteTweet200Response.js +0 -57
  469. package/dist/models/PostFavoriteTweet200Response.js.map +0 -1
  470. package/dist/models/PostFavoriteTweetRequest.d.ts +0 -39
  471. package/dist/models/PostFavoriteTweetRequest.d.ts.map +0 -1
  472. package/dist/models/PostFavoriteTweetRequest.js +0 -55
  473. package/dist/models/PostFavoriteTweetRequest.js.map +0 -1
  474. package/dist/models/PostUnfavoriteTweet200Response.d.ts +0 -23
  475. package/dist/models/PostUnfavoriteTweet200Response.d.ts.map +0 -1
  476. package/dist/models/PostUnfavoriteTweet200Response.js +0 -57
  477. package/dist/models/PostUnfavoriteTweet200Response.js.map +0 -1
  478. package/dist/models/PostUnfavoriteTweetRequest.d.ts +0 -39
  479. package/dist/models/PostUnfavoriteTweetRequest.d.ts.map +0 -1
  480. package/dist/models/PostUnfavoriteTweetRequest.js +0 -55
  481. package/dist/models/PostUnfavoriteTweetRequest.js.map +0 -1
  482. package/dist/models/ProfileResponse.d.ts +0 -33
  483. package/dist/models/ProfileResponse.d.ts.map +0 -1
  484. package/dist/models/ProfileResponse.js +0 -52
  485. package/dist/models/ProfileResponse.js.map +0 -1
  486. package/dist/models/ProfileResponseData.d.ts +0 -33
  487. package/dist/models/ProfileResponseData.d.ts.map +0 -1
  488. package/dist/models/ProfileResponseData.js +0 -52
  489. package/dist/models/ProfileResponseData.js.map +0 -1
  490. package/dist/models/Retweet.d.ts +0 -39
  491. package/dist/models/Retweet.d.ts.map +0 -1
  492. package/dist/models/Retweet.js +0 -55
  493. package/dist/models/Retweet.js.map +0 -1
  494. package/dist/models/RetweetLegacy.d.ts +0 -32
  495. package/dist/models/RetweetLegacy.d.ts.map +0 -1
  496. package/dist/models/RetweetLegacy.js +0 -51
  497. package/dist/models/RetweetLegacy.js.map +0 -1
  498. package/dist/models/SearchByRawQuery.d.ts +0 -33
  499. package/dist/models/SearchByRawQuery.d.ts.map +0 -1
  500. package/dist/models/SearchByRawQuery.js +0 -52
  501. package/dist/models/SearchByRawQuery.js.map +0 -1
  502. package/dist/models/SearchTimeline.d.ts +0 -33
  503. package/dist/models/SearchTimeline.d.ts.map +0 -1
  504. package/dist/models/SearchTimeline.js +0 -52
  505. package/dist/models/SearchTimeline.js.map +0 -1
  506. package/dist/models/SearchTimelineData.d.ts +0 -33
  507. package/dist/models/SearchTimelineData.d.ts.map +0 -1
  508. package/dist/models/SearchTimelineData.js +0 -52
  509. package/dist/models/SearchTimelineData.js.map +0 -1
  510. package/dist/models/SearchTimelineResponse.d.ts +0 -33
  511. package/dist/models/SearchTimelineResponse.d.ts.map +0 -1
  512. package/dist/models/SearchTimelineResponse.js +0 -52
  513. package/dist/models/SearchTimelineResponse.js.map +0 -1
  514. package/dist/models/SelfThread.d.ts +0 -32
  515. package/dist/models/SelfThread.d.ts.map +0 -1
  516. package/dist/models/SelfThread.js +0 -51
  517. package/dist/models/SelfThread.js.map +0 -1
  518. package/dist/models/Session.d.ts +0 -120
  519. package/dist/models/Session.d.ts.map +0 -1
  520. package/dist/models/Session.js +0 -99
  521. package/dist/models/Session.js.map +0 -1
  522. package/dist/models/SocialContext.d.ts +0 -44
  523. package/dist/models/SocialContext.d.ts.map +0 -1
  524. package/dist/models/SocialContext.js +0 -55
  525. package/dist/models/SocialContext.js.map +0 -1
  526. package/dist/models/Text.d.ts +0 -39
  527. package/dist/models/Text.d.ts.map +0 -1
  528. package/dist/models/Text.js +0 -55
  529. package/dist/models/Text.js.map +0 -1
  530. package/dist/models/TextEntity.d.ts +0 -45
  531. package/dist/models/TextEntity.d.ts.map +0 -1
  532. package/dist/models/TextEntity.js +0 -58
  533. package/dist/models/TextEntity.js.map +0 -1
  534. package/dist/models/TextEntityRef.d.ts +0 -58
  535. package/dist/models/TextEntityRef.d.ts.map +0 -1
  536. package/dist/models/TextEntityRef.js +0 -69
  537. package/dist/models/TextEntityRef.js.map +0 -1
  538. package/dist/models/Timeline.d.ts +0 -49
  539. package/dist/models/Timeline.d.ts.map +0 -1
  540. package/dist/models/Timeline.js +0 -57
  541. package/dist/models/Timeline.js.map +0 -1
  542. package/dist/models/TimelineAddEntries.d.ts +0 -40
  543. package/dist/models/TimelineAddEntries.d.ts.map +0 -1
  544. package/dist/models/TimelineAddEntries.js +0 -56
  545. package/dist/models/TimelineAddEntries.js.map +0 -1
  546. package/dist/models/TimelineAddEntry.d.ts +0 -45
  547. package/dist/models/TimelineAddEntry.d.ts.map +0 -1
  548. package/dist/models/TimelineAddEntry.js +0 -58
  549. package/dist/models/TimelineAddEntry.js.map +0 -1
  550. package/dist/models/TimelineAddToModule.d.ts +0 -52
  551. package/dist/models/TimelineAddToModule.d.ts.map +0 -1
  552. package/dist/models/TimelineAddToModule.js +0 -62
  553. package/dist/models/TimelineAddToModule.js.map +0 -1
  554. package/dist/models/TimelineClearCache.d.ts +0 -33
  555. package/dist/models/TimelineClearCache.d.ts.map +0 -1
  556. package/dist/models/TimelineClearCache.js +0 -52
  557. package/dist/models/TimelineClearCache.js.map +0 -1
  558. package/dist/models/TimelineCoverBehavior.d.ts +0 -39
  559. package/dist/models/TimelineCoverBehavior.d.ts.map +0 -1
  560. package/dist/models/TimelineCoverBehavior.js +0 -57
  561. package/dist/models/TimelineCoverBehavior.js.map +0 -1
  562. package/dist/models/TimelineHalfCover.d.ts +0 -85
  563. package/dist/models/TimelineHalfCover.d.ts.map +0 -1
  564. package/dist/models/TimelineHalfCover.js +0 -84
  565. package/dist/models/TimelineHalfCover.js.map +0 -1
  566. package/dist/models/TimelineMessagePrompt.d.ts +0 -34
  567. package/dist/models/TimelineMessagePrompt.d.ts.map +0 -1
  568. package/dist/models/TimelineMessagePrompt.js +0 -59
  569. package/dist/models/TimelineMessagePrompt.js.map +0 -1
  570. package/dist/models/TimelinePinEntry.d.ts +0 -40
  571. package/dist/models/TimelinePinEntry.d.ts.map +0 -1
  572. package/dist/models/TimelinePinEntry.js +0 -56
  573. package/dist/models/TimelinePinEntry.js.map +0 -1
  574. package/dist/models/TimelinePrompt.d.ts +0 -34
  575. package/dist/models/TimelinePrompt.d.ts.map +0 -1
  576. package/dist/models/TimelinePrompt.js +0 -59
  577. package/dist/models/TimelinePrompt.js.map +0 -1
  578. package/dist/models/TimelineReplaceEntry.d.ts +0 -46
  579. package/dist/models/TimelineReplaceEntry.d.ts.map +0 -1
  580. package/dist/models/TimelineReplaceEntry.js +0 -59
  581. package/dist/models/TimelineReplaceEntry.js.map +0 -1
  582. package/dist/models/TimelineResponse.d.ts +0 -33
  583. package/dist/models/TimelineResponse.d.ts.map +0 -1
  584. package/dist/models/TimelineResponse.js +0 -52
  585. package/dist/models/TimelineResponse.js.map +0 -1
  586. package/dist/models/TimelineShowAlert.d.ts +0 -101
  587. package/dist/models/TimelineShowAlert.d.ts.map +0 -1
  588. package/dist/models/TimelineShowAlert.js +0 -85
  589. package/dist/models/TimelineShowAlert.js.map +0 -1
  590. package/dist/models/TimelineShowAlertRichText.d.ts +0 -40
  591. package/dist/models/TimelineShowAlertRichText.d.ts.map +0 -1
  592. package/dist/models/TimelineShowAlertRichText.js +0 -53
  593. package/dist/models/TimelineShowAlertRichText.js.map +0 -1
  594. package/dist/models/TimelineShowCover.d.ts +0 -47
  595. package/dist/models/TimelineShowCover.d.ts.map +0 -1
  596. package/dist/models/TimelineShowCover.js +0 -60
  597. package/dist/models/TimelineShowCover.js.map +0 -1
  598. package/dist/models/TimelineTerminateTimeline.d.ts +0 -47
  599. package/dist/models/TimelineTerminateTimeline.d.ts.map +0 -1
  600. package/dist/models/TimelineTerminateTimeline.js +0 -62
  601. package/dist/models/TimelineTerminateTimeline.js.map +0 -1
  602. package/dist/models/TimelineTimelineCursor.d.ts +0 -59
  603. package/dist/models/TimelineTimelineCursor.d.ts.map +0 -1
  604. package/dist/models/TimelineTimelineCursor.js +0 -65
  605. package/dist/models/TimelineTimelineCursor.js.map +0 -1
  606. package/dist/models/TimelineTimelineItem.d.ts +0 -62
  607. package/dist/models/TimelineTimelineItem.d.ts.map +0 -1
  608. package/dist/models/TimelineTimelineItem.js +0 -66
  609. package/dist/models/TimelineTimelineItem.js.map +0 -1
  610. package/dist/models/TimelineTimelineModule.d.ts +0 -85
  611. package/dist/models/TimelineTimelineModule.d.ts.map +0 -1
  612. package/dist/models/TimelineTimelineModule.js +0 -77
  613. package/dist/models/TimelineTimelineModule.js.map +0 -1
  614. package/dist/models/TimelineTweet.d.ts +0 -68
  615. package/dist/models/TimelineTweet.d.ts.map +0 -1
  616. package/dist/models/TimelineTweet.js +0 -69
  617. package/dist/models/TimelineTweet.js.map +0 -1
  618. package/dist/models/TimelineUser.d.ts +0 -69
  619. package/dist/models/TimelineUser.d.ts.map +0 -1
  620. package/dist/models/TimelineUser.js +0 -75
  621. package/dist/models/TimelineUser.js.map +0 -1
  622. package/dist/models/TimelineV2.d.ts +0 -33
  623. package/dist/models/TimelineV2.d.ts.map +0 -1
  624. package/dist/models/TimelineV2.js +0 -52
  625. package/dist/models/TimelineV2.js.map +0 -1
  626. package/dist/models/Tracing.d.ts +0 -32
  627. package/dist/models/Tracing.d.ts.map +0 -1
  628. package/dist/models/Tracing.js +0 -51
  629. package/dist/models/Tracing.js.map +0 -1
  630. package/dist/models/Tweet.d.ts +0 -108
  631. package/dist/models/Tweet.d.ts.map +0 -1
  632. package/dist/models/Tweet.js +0 -85
  633. package/dist/models/Tweet.js.map +0 -1
  634. package/dist/models/TweetCard.d.ts +0 -39
  635. package/dist/models/TweetCard.d.ts.map +0 -1
  636. package/dist/models/TweetCard.js +0 -54
  637. package/dist/models/TweetCard.js.map +0 -1
  638. package/dist/models/TweetCardLegacy.d.ts +0 -45
  639. package/dist/models/TweetCardLegacy.d.ts.map +0 -1
  640. package/dist/models/TweetCardLegacy.js +0 -58
  641. package/dist/models/TweetCardLegacy.js.map +0 -1
  642. package/dist/models/TweetCardLegacyBindingValue.d.ts +0 -39
  643. package/dist/models/TweetCardLegacyBindingValue.d.ts.map +0 -1
  644. package/dist/models/TweetCardLegacyBindingValue.js +0 -55
  645. package/dist/models/TweetCardLegacyBindingValue.js.map +0 -1
  646. package/dist/models/TweetCardLegacyBindingValueData.d.ts +0 -50
  647. package/dist/models/TweetCardLegacyBindingValueData.d.ts.map +0 -1
  648. package/dist/models/TweetCardLegacyBindingValueData.js +0 -58
  649. package/dist/models/TweetCardLegacyBindingValueData.js.map +0 -1
  650. package/dist/models/TweetDetailResponse.d.ts +0 -33
  651. package/dist/models/TweetDetailResponse.d.ts.map +0 -1
  652. package/dist/models/TweetDetailResponse.js +0 -52
  653. package/dist/models/TweetDetailResponse.js.map +0 -1
  654. package/dist/models/TweetDetailResponseData.d.ts +0 -33
  655. package/dist/models/TweetDetailResponseData.d.ts.map +0 -1
  656. package/dist/models/TweetDetailResponseData.js +0 -52
  657. package/dist/models/TweetDetailResponseData.js.map +0 -1
  658. package/dist/models/TweetEditControl.d.ts +0 -63
  659. package/dist/models/TweetEditControl.d.ts.map +0 -1
  660. package/dist/models/TweetEditControl.js +0 -62
  661. package/dist/models/TweetEditControl.js.map +0 -1
  662. package/dist/models/TweetEditControlInitial.d.ts +0 -50
  663. package/dist/models/TweetEditControlInitial.d.ts.map +0 -1
  664. package/dist/models/TweetEditControlInitial.js +0 -60
  665. package/dist/models/TweetEditControlInitial.js.map +0 -1
  666. package/dist/models/TweetEditPrespective.d.ts +0 -38
  667. package/dist/models/TweetEditPrespective.d.ts.map +0 -1
  668. package/dist/models/TweetEditPrespective.js +0 -53
  669. package/dist/models/TweetEditPrespective.js.map +0 -1
  670. package/dist/models/TweetFavoritersResponse.d.ts +0 -33
  671. package/dist/models/TweetFavoritersResponse.d.ts.map +0 -1
  672. package/dist/models/TweetFavoritersResponse.js +0 -52
  673. package/dist/models/TweetFavoritersResponse.js.map +0 -1
  674. package/dist/models/TweetFavoritersResponseData.d.ts +0 -33
  675. package/dist/models/TweetFavoritersResponseData.d.ts.map +0 -1
  676. package/dist/models/TweetFavoritersResponseData.js +0 -52
  677. package/dist/models/TweetFavoritersResponseData.js.map +0 -1
  678. package/dist/models/TweetLegacy.d.ts +0 -162
  679. package/dist/models/TweetLegacy.d.ts.map +0 -1
  680. package/dist/models/TweetLegacy.js +0 -114
  681. package/dist/models/TweetLegacy.js.map +0 -1
  682. package/dist/models/TweetResultByRestIdData.d.ts +0 -33
  683. package/dist/models/TweetResultByRestIdData.d.ts.map +0 -1
  684. package/dist/models/TweetResultByRestIdData.js +0 -52
  685. package/dist/models/TweetResultByRestIdData.js.map +0 -1
  686. package/dist/models/TweetResultByRestIdResponse.d.ts +0 -33
  687. package/dist/models/TweetResultByRestIdResponse.d.ts.map +0 -1
  688. package/dist/models/TweetResultByRestIdResponse.js +0 -52
  689. package/dist/models/TweetResultByRestIdResponse.js.map +0 -1
  690. package/dist/models/TweetRetweetersResponse.d.ts +0 -33
  691. package/dist/models/TweetRetweetersResponse.d.ts.map +0 -1
  692. package/dist/models/TweetRetweetersResponse.js +0 -52
  693. package/dist/models/TweetRetweetersResponse.js.map +0 -1
  694. package/dist/models/TweetRetweetersResponseData.d.ts +0 -33
  695. package/dist/models/TweetRetweetersResponseData.d.ts.map +0 -1
  696. package/dist/models/TweetRetweetersResponseData.js +0 -52
  697. package/dist/models/TweetRetweetersResponseData.js.map +0 -1
  698. package/dist/models/TweetTombstone.d.ts +0 -34
  699. package/dist/models/TweetTombstone.d.ts.map +0 -1
  700. package/dist/models/TweetTombstone.js +0 -59
  701. package/dist/models/TweetTombstone.js.map +0 -1
  702. package/dist/models/TweetUnion.d.ts +0 -30
  703. package/dist/models/TweetUnion.d.ts.map +0 -1
  704. package/dist/models/TweetUnion.js +0 -70
  705. package/dist/models/TweetUnion.js.map +0 -1
  706. package/dist/models/TweetView.d.ts +0 -45
  707. package/dist/models/TweetView.d.ts.map +0 -1
  708. package/dist/models/TweetView.js +0 -60
  709. package/dist/models/TweetView.js.map +0 -1
  710. package/dist/models/TweetWithVisibilityResults.d.ts +0 -40
  711. package/dist/models/TweetWithVisibilityResults.d.ts.map +0 -1
  712. package/dist/models/TweetWithVisibilityResults.js +0 -56
  713. package/dist/models/TweetWithVisibilityResults.js.map +0 -1
  714. package/dist/models/TypeName.d.ts +0 -35
  715. package/dist/models/TypeName.d.ts.map +0 -1
  716. package/dist/models/TypeName.js +0 -48
  717. package/dist/models/TypeName.js.map +0 -1
  718. package/dist/models/UnfavoriteTweet.d.ts +0 -32
  719. package/dist/models/UnfavoriteTweet.d.ts.map +0 -1
  720. package/dist/models/UnfavoriteTweet.js +0 -51
  721. package/dist/models/UnfavoriteTweet.js.map +0 -1
  722. package/dist/models/UnfavoriteTweetResponseData.d.ts +0 -33
  723. package/dist/models/UnfavoriteTweetResponseData.d.ts.map +0 -1
  724. package/dist/models/UnfavoriteTweetResponseData.js +0 -52
  725. package/dist/models/UnfavoriteTweetResponseData.js.map +0 -1
  726. package/dist/models/Url.d.ts +0 -50
  727. package/dist/models/Url.d.ts.map +0 -1
  728. package/dist/models/Url.js +0 -60
  729. package/dist/models/Url.js.map +0 -1
  730. package/dist/models/User.d.ts +0 -104
  731. package/dist/models/User.d.ts.map +0 -1
  732. package/dist/models/User.js +0 -84
  733. package/dist/models/User.js.map +0 -1
  734. package/dist/models/UserFeatures.d.ts +0 -32
  735. package/dist/models/UserFeatures.d.ts.map +0 -1
  736. package/dist/models/UserFeatures.js +0 -51
  737. package/dist/models/UserFeatures.js.map +0 -1
  738. package/dist/models/UserHighlightsTweetsData.d.ts +0 -33
  739. package/dist/models/UserHighlightsTweetsData.d.ts.map +0 -1
  740. package/dist/models/UserHighlightsTweetsData.js +0 -52
  741. package/dist/models/UserHighlightsTweetsData.js.map +0 -1
  742. package/dist/models/UserHighlightsTweetsResponse.d.ts +0 -33
  743. package/dist/models/UserHighlightsTweetsResponse.d.ts.map +0 -1
  744. package/dist/models/UserHighlightsTweetsResponse.js +0 -52
  745. package/dist/models/UserHighlightsTweetsResponse.js.map +0 -1
  746. package/dist/models/UserHighlightsTweetsResult.d.ts +0 -40
  747. package/dist/models/UserHighlightsTweetsResult.d.ts.map +0 -1
  748. package/dist/models/UserHighlightsTweetsResult.js +0 -56
  749. package/dist/models/UserHighlightsTweetsResult.js.map +0 -1
  750. package/dist/models/UserHighlightsTweetsTimeline.d.ts +0 -33
  751. package/dist/models/UserHighlightsTweetsTimeline.d.ts.map +0 -1
  752. package/dist/models/UserHighlightsTweetsTimeline.js +0 -52
  753. package/dist/models/UserHighlightsTweetsTimeline.js.map +0 -1
  754. package/dist/models/UserHighlightsTweetsUser.d.ts +0 -33
  755. package/dist/models/UserHighlightsTweetsUser.d.ts.map +0 -1
  756. package/dist/models/UserHighlightsTweetsUser.js +0 -52
  757. package/dist/models/UserHighlightsTweetsUser.js.map +0 -1
  758. package/dist/models/UserLegacy.d.ts +0 -262
  759. package/dist/models/UserLegacy.d.ts.map +0 -1
  760. package/dist/models/UserLegacy.js +0 -157
  761. package/dist/models/UserLegacy.js.map +0 -1
  762. package/dist/models/UserResponse.d.ts +0 -33
  763. package/dist/models/UserResponse.d.ts.map +0 -1
  764. package/dist/models/UserResponse.js +0 -52
  765. package/dist/models/UserResponse.js.map +0 -1
  766. package/dist/models/UserResponseData.d.ts +0 -33
  767. package/dist/models/UserResponseData.d.ts.map +0 -1
  768. package/dist/models/UserResponseData.js +0 -52
  769. package/dist/models/UserResponseData.js.map +0 -1
  770. package/dist/models/UserResultByScreenName.d.ts +0 -39
  771. package/dist/models/UserResultByScreenName.d.ts.map +0 -1
  772. package/dist/models/UserResultByScreenName.js +0 -55
  773. package/dist/models/UserResultByScreenName.js.map +0 -1
  774. package/dist/models/UserResultByScreenNameLegacy.d.ts +0 -68
  775. package/dist/models/UserResultByScreenNameLegacy.d.ts.map +0 -1
  776. package/dist/models/UserResultByScreenNameLegacy.js +0 -63
  777. package/dist/models/UserResultByScreenNameLegacy.js.map +0 -1
  778. package/dist/models/UserResultByScreenNameResult.d.ts +0 -60
  779. package/dist/models/UserResultByScreenNameResult.d.ts.map +0 -1
  780. package/dist/models/UserResultByScreenNameResult.js +0 -65
  781. package/dist/models/UserResultByScreenNameResult.js.map +0 -1
  782. package/dist/models/UserResultCore.d.ts +0 -33
  783. package/dist/models/UserResultCore.d.ts.map +0 -1
  784. package/dist/models/UserResultCore.js +0 -52
  785. package/dist/models/UserResultCore.js.map +0 -1
  786. package/dist/models/UserResults.d.ts +0 -33
  787. package/dist/models/UserResults.d.ts.map +0 -1
  788. package/dist/models/UserResults.js +0 -52
  789. package/dist/models/UserResults.js.map +0 -1
  790. package/dist/models/UserTweetsData.d.ts +0 -33
  791. package/dist/models/UserTweetsData.d.ts.map +0 -1
  792. package/dist/models/UserTweetsData.js +0 -52
  793. package/dist/models/UserTweetsData.js.map +0 -1
  794. package/dist/models/UserTweetsResponse.d.ts +0 -33
  795. package/dist/models/UserTweetsResponse.d.ts.map +0 -1
  796. package/dist/models/UserTweetsResponse.js +0 -52
  797. package/dist/models/UserTweetsResponse.js.map +0 -1
  798. package/dist/models/UserTweetsResult.d.ts +0 -40
  799. package/dist/models/UserTweetsResult.d.ts.map +0 -1
  800. package/dist/models/UserTweetsResult.js +0 -56
  801. package/dist/models/UserTweetsResult.js.map +0 -1
  802. package/dist/models/UserTweetsUser.d.ts +0 -33
  803. package/dist/models/UserTweetsUser.d.ts.map +0 -1
  804. package/dist/models/UserTweetsUser.js +0 -52
  805. package/dist/models/UserTweetsUser.js.map +0 -1
  806. package/dist/models/UserUnavailable.d.ts +0 -39
  807. package/dist/models/UserUnavailable.d.ts.map +0 -1
  808. package/dist/models/UserUnavailable.js +0 -55
  809. package/dist/models/UserUnavailable.js.map +0 -1
  810. package/dist/models/UserUnion.d.ts +0 -27
  811. package/dist/models/UserUnion.d.ts.map +0 -1
  812. package/dist/models/UserUnion.js +0 -65
  813. package/dist/models/UserUnion.js.map +0 -1
  814. package/dist/models/UsersResponse.d.ts +0 -33
  815. package/dist/models/UsersResponse.d.ts.map +0 -1
  816. package/dist/models/UsersResponse.js +0 -52
  817. package/dist/models/UsersResponse.js.map +0 -1
  818. package/dist/models/UsersResponseData.d.ts +0 -33
  819. package/dist/models/UsersResponseData.d.ts.map +0 -1
  820. package/dist/models/UsersResponseData.js +0 -52
  821. package/dist/models/UsersResponseData.js.map +0 -1
  822. package/dist/models/index.d.ts +0 -186
  823. package/dist/models/index.d.ts.map +0 -1
  824. package/dist/models/index.js +0 -204
  825. package/dist/models/index.js.map +0 -1
  826. package/dist/runtime.d.ts +0 -183
  827. package/dist/runtime.d.ts.map +0 -1
  828. package/dist/runtime.js +0 -556
  829. package/dist/runtime.js.map +0 -1
  830. package/twitter-openapi/tools/__pycache__/build_config.cpython-310.pyc +0 -0
  831. package/twitter-openapi/tools/__pycache__/hooks.cpython-310.pyc +0 -0
@@ -1,1374 +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.pathQueryId === null || requestParameters.pathQueryId === undefined) {
88
- throw new runtime.RequiredError('pathQueryId', 'Required parameter requestParameters.pathQueryId 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.variables !== undefined) {
98
- queryParameters['variables'] = requestParameters.variables;
99
- }
100
- if (requestParameters.features !== undefined) {
101
- queryParameters['features'] = requestParameters.features;
102
- }
103
- headerParameters = {};
104
- if (this.configuration && this.configuration.apiKey) {
105
- headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
106
- }
107
- if (this.configuration && this.configuration.apiKey) {
108
- headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
109
- }
110
- if (this.configuration && this.configuration.apiKey) {
111
- headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
112
- }
113
- if (this.configuration && this.configuration.apiKey) {
114
- headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
115
- }
116
- if (this.configuration && this.configuration.apiKey) {
117
- headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
118
- }
119
- if (this.configuration && this.configuration.apiKey) {
120
- headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
121
- }
122
- if (this.configuration && this.configuration.apiKey) {
123
- headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
124
- }
125
- if (this.configuration && this.configuration.apiKey) {
126
- headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
127
- }
128
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
129
- token = this.configuration.accessToken;
130
- return [4 /*yield*/, token("BearerAuth", [])];
131
- case 1:
132
- tokenString = _a.sent();
133
- if (tokenString) {
134
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
135
- }
136
- _a.label = 2;
137
- case 2:
138
- if (this.configuration && this.configuration.apiKey) {
139
- headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
140
- }
141
- if (this.configuration && this.configuration.apiKey) {
142
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
143
- }
144
- if (this.configuration && this.configuration.apiKey) {
145
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
146
- }
147
- if (this.configuration && this.configuration.apiKey) {
148
- headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
149
- }
150
- if (this.configuration && this.configuration.apiKey) {
151
- headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
152
- }
153
- if (this.configuration && this.configuration.apiKey) {
154
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
155
- }
156
- if (this.configuration && this.configuration.apiKey) {
157
- headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
158
- }
159
- if (this.configuration && this.configuration.apiKey) {
160
- headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
161
- }
162
- if (this.configuration && this.configuration.apiKey) {
163
- headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
164
- }
165
- return [4 /*yield*/, this.request({
166
- path: "/graphql/{pathQueryId}/Bookmarks".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
167
- method: 'GET',
168
- headers: headerParameters,
169
- query: queryParameters,
170
- }, initOverrides)];
171
- case 3:
172
- response = _a.sent();
173
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.GetBookmarks200ResponseFromJSON)(jsonValue); })];
174
- }
175
- });
176
- });
177
- };
178
- /**
179
- * get bookmarks
180
- */
181
- TweetApi.prototype.getBookmarks = function (requestParameters, initOverrides) {
182
- return __awaiter(this, void 0, void 0, function () {
183
- var response;
184
- return __generator(this, function (_a) {
185
- switch (_a.label) {
186
- case 0: return [4 /*yield*/, this.getBookmarksRaw(requestParameters, initOverrides)];
187
- case 1:
188
- response = _a.sent();
189
- return [4 /*yield*/, response.value()];
190
- case 2: return [2 /*return*/, _a.sent()];
191
- }
192
- });
193
- });
194
- };
195
- /**
196
- * get tweet list of timeline
197
- */
198
- TweetApi.prototype.getHomeLatestTimelineRaw = function (requestParameters, initOverrides) {
199
- return __awaiter(this, void 0, void 0, function () {
200
- var queryParameters, headerParameters, token, tokenString, response;
201
- return __generator(this, function (_a) {
202
- switch (_a.label) {
203
- case 0:
204
- if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
205
- throw new runtime.RequiredError('pathQueryId', 'Required parameter requestParameters.pathQueryId was null or undefined when calling getHomeLatestTimeline.');
206
- }
207
- if (requestParameters.variables === null || requestParameters.variables === undefined) {
208
- throw new runtime.RequiredError('variables', 'Required parameter requestParameters.variables was null or undefined when calling getHomeLatestTimeline.');
209
- }
210
- if (requestParameters.features === null || requestParameters.features === undefined) {
211
- throw new runtime.RequiredError('features', 'Required parameter requestParameters.features was null or undefined when calling getHomeLatestTimeline.');
212
- }
213
- queryParameters = {};
214
- if (requestParameters.variables !== undefined) {
215
- queryParameters['variables'] = requestParameters.variables;
216
- }
217
- if (requestParameters.features !== undefined) {
218
- queryParameters['features'] = requestParameters.features;
219
- }
220
- headerParameters = {};
221
- if (this.configuration && this.configuration.apiKey) {
222
- headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
223
- }
224
- if (this.configuration && this.configuration.apiKey) {
225
- headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
226
- }
227
- if (this.configuration && this.configuration.apiKey) {
228
- headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
229
- }
230
- if (this.configuration && this.configuration.apiKey) {
231
- headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
232
- }
233
- if (this.configuration && this.configuration.apiKey) {
234
- headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
235
- }
236
- if (this.configuration && this.configuration.apiKey) {
237
- headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
238
- }
239
- if (this.configuration && this.configuration.apiKey) {
240
- headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
241
- }
242
- if (this.configuration && this.configuration.apiKey) {
243
- headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
244
- }
245
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
246
- token = this.configuration.accessToken;
247
- return [4 /*yield*/, token("BearerAuth", [])];
248
- case 1:
249
- tokenString = _a.sent();
250
- if (tokenString) {
251
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
252
- }
253
- _a.label = 2;
254
- case 2:
255
- if (this.configuration && this.configuration.apiKey) {
256
- headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
257
- }
258
- if (this.configuration && this.configuration.apiKey) {
259
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
260
- }
261
- if (this.configuration && this.configuration.apiKey) {
262
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
263
- }
264
- if (this.configuration && this.configuration.apiKey) {
265
- headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
266
- }
267
- if (this.configuration && this.configuration.apiKey) {
268
- headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
269
- }
270
- if (this.configuration && this.configuration.apiKey) {
271
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
272
- }
273
- if (this.configuration && this.configuration.apiKey) {
274
- headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
275
- }
276
- if (this.configuration && this.configuration.apiKey) {
277
- headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
278
- }
279
- if (this.configuration && this.configuration.apiKey) {
280
- headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
281
- }
282
- return [4 /*yield*/, this.request({
283
- path: "/graphql/{pathQueryId}/HomeLatestTimeline".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
284
- method: 'GET',
285
- headers: headerParameters,
286
- query: queryParameters,
287
- }, initOverrides)];
288
- case 3:
289
- response = _a.sent();
290
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.GetHomeLatestTimeline200ResponseFromJSON)(jsonValue); })];
291
- }
292
- });
293
- });
294
- };
295
- /**
296
- * get tweet list of timeline
297
- */
298
- TweetApi.prototype.getHomeLatestTimeline = function (requestParameters, initOverrides) {
299
- return __awaiter(this, void 0, void 0, function () {
300
- var response;
301
- return __generator(this, function (_a) {
302
- switch (_a.label) {
303
- case 0: return [4 /*yield*/, this.getHomeLatestTimelineRaw(requestParameters, initOverrides)];
304
- case 1:
305
- response = _a.sent();
306
- return [4 /*yield*/, response.value()];
307
- case 2: return [2 /*return*/, _a.sent()];
308
- }
309
- });
310
- });
311
- };
312
- /**
313
- * get tweet list of timeline
314
- */
315
- TweetApi.prototype.getHomeTimelineRaw = function (requestParameters, initOverrides) {
316
- return __awaiter(this, void 0, void 0, function () {
317
- var queryParameters, headerParameters, token, tokenString, response;
318
- return __generator(this, function (_a) {
319
- switch (_a.label) {
320
- case 0:
321
- if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
322
- throw new runtime.RequiredError('pathQueryId', 'Required parameter requestParameters.pathQueryId was null or undefined when calling getHomeTimeline.');
323
- }
324
- if (requestParameters.variables === null || requestParameters.variables === undefined) {
325
- throw new runtime.RequiredError('variables', 'Required parameter requestParameters.variables was null or undefined when calling getHomeTimeline.');
326
- }
327
- if (requestParameters.features === null || requestParameters.features === undefined) {
328
- throw new runtime.RequiredError('features', 'Required parameter requestParameters.features was null or undefined when calling getHomeTimeline.');
329
- }
330
- queryParameters = {};
331
- if (requestParameters.variables !== undefined) {
332
- queryParameters['variables'] = requestParameters.variables;
333
- }
334
- if (requestParameters.features !== undefined) {
335
- queryParameters['features'] = requestParameters.features;
336
- }
337
- headerParameters = {};
338
- if (this.configuration && this.configuration.apiKey) {
339
- headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
340
- }
341
- if (this.configuration && this.configuration.apiKey) {
342
- headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
343
- }
344
- if (this.configuration && this.configuration.apiKey) {
345
- headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
346
- }
347
- if (this.configuration && this.configuration.apiKey) {
348
- headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
349
- }
350
- if (this.configuration && this.configuration.apiKey) {
351
- headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
352
- }
353
- if (this.configuration && this.configuration.apiKey) {
354
- headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
355
- }
356
- if (this.configuration && this.configuration.apiKey) {
357
- headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
358
- }
359
- if (this.configuration && this.configuration.apiKey) {
360
- headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
361
- }
362
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
363
- token = this.configuration.accessToken;
364
- return [4 /*yield*/, token("BearerAuth", [])];
365
- case 1:
366
- tokenString = _a.sent();
367
- if (tokenString) {
368
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
369
- }
370
- _a.label = 2;
371
- case 2:
372
- if (this.configuration && this.configuration.apiKey) {
373
- headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
374
- }
375
- if (this.configuration && this.configuration.apiKey) {
376
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
377
- }
378
- if (this.configuration && this.configuration.apiKey) {
379
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
380
- }
381
- if (this.configuration && this.configuration.apiKey) {
382
- headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
383
- }
384
- if (this.configuration && this.configuration.apiKey) {
385
- headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
386
- }
387
- if (this.configuration && this.configuration.apiKey) {
388
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
389
- }
390
- if (this.configuration && this.configuration.apiKey) {
391
- headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
392
- }
393
- if (this.configuration && this.configuration.apiKey) {
394
- headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
395
- }
396
- if (this.configuration && this.configuration.apiKey) {
397
- headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
398
- }
399
- return [4 /*yield*/, this.request({
400
- path: "/graphql/{pathQueryId}/HomeTimeline".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
401
- method: 'GET',
402
- headers: headerParameters,
403
- query: queryParameters,
404
- }, initOverrides)];
405
- case 3:
406
- response = _a.sent();
407
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.GetHomeLatestTimeline200ResponseFromJSON)(jsonValue); })];
408
- }
409
- });
410
- });
411
- };
412
- /**
413
- * get tweet list of timeline
414
- */
415
- TweetApi.prototype.getHomeTimeline = function (requestParameters, initOverrides) {
416
- return __awaiter(this, void 0, void 0, function () {
417
- var response;
418
- return __generator(this, function (_a) {
419
- switch (_a.label) {
420
- case 0: return [4 /*yield*/, this.getHomeTimelineRaw(requestParameters, initOverrides)];
421
- case 1:
422
- response = _a.sent();
423
- return [4 /*yield*/, response.value()];
424
- case 2: return [2 /*return*/, _a.sent()];
425
- }
426
- });
427
- });
428
- };
429
- /**
430
- * get user likes tweets
431
- */
432
- TweetApi.prototype.getLikesRaw = function (requestParameters, initOverrides) {
433
- return __awaiter(this, void 0, void 0, function () {
434
- var queryParameters, headerParameters, token, tokenString, response;
435
- return __generator(this, function (_a) {
436
- switch (_a.label) {
437
- case 0:
438
- if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
439
- throw new runtime.RequiredError('pathQueryId', 'Required parameter requestParameters.pathQueryId was null or undefined when calling getLikes.');
440
- }
441
- if (requestParameters.variables === null || requestParameters.variables === undefined) {
442
- throw new runtime.RequiredError('variables', 'Required parameter requestParameters.variables was null or undefined when calling getLikes.');
443
- }
444
- if (requestParameters.features === null || requestParameters.features === undefined) {
445
- throw new runtime.RequiredError('features', 'Required parameter requestParameters.features was null or undefined when calling getLikes.');
446
- }
447
- queryParameters = {};
448
- if (requestParameters.variables !== undefined) {
449
- queryParameters['variables'] = requestParameters.variables;
450
- }
451
- if (requestParameters.features !== undefined) {
452
- queryParameters['features'] = requestParameters.features;
453
- }
454
- headerParameters = {};
455
- if (this.configuration && this.configuration.apiKey) {
456
- headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
457
- }
458
- if (this.configuration && this.configuration.apiKey) {
459
- headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
460
- }
461
- if (this.configuration && this.configuration.apiKey) {
462
- headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
463
- }
464
- if (this.configuration && this.configuration.apiKey) {
465
- headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
466
- }
467
- if (this.configuration && this.configuration.apiKey) {
468
- headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
469
- }
470
- if (this.configuration && this.configuration.apiKey) {
471
- headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
472
- }
473
- if (this.configuration && this.configuration.apiKey) {
474
- headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
475
- }
476
- if (this.configuration && this.configuration.apiKey) {
477
- headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
478
- }
479
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
480
- token = this.configuration.accessToken;
481
- return [4 /*yield*/, token("BearerAuth", [])];
482
- case 1:
483
- tokenString = _a.sent();
484
- if (tokenString) {
485
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
486
- }
487
- _a.label = 2;
488
- case 2:
489
- if (this.configuration && this.configuration.apiKey) {
490
- headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
491
- }
492
- if (this.configuration && this.configuration.apiKey) {
493
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
494
- }
495
- if (this.configuration && this.configuration.apiKey) {
496
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
497
- }
498
- if (this.configuration && this.configuration.apiKey) {
499
- headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
500
- }
501
- if (this.configuration && this.configuration.apiKey) {
502
- headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
503
- }
504
- if (this.configuration && this.configuration.apiKey) {
505
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
506
- }
507
- if (this.configuration && this.configuration.apiKey) {
508
- headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
509
- }
510
- if (this.configuration && this.configuration.apiKey) {
511
- headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
512
- }
513
- if (this.configuration && this.configuration.apiKey) {
514
- headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
515
- }
516
- return [4 /*yield*/, this.request({
517
- path: "/graphql/{pathQueryId}/Likes".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
518
- method: 'GET',
519
- headers: headerParameters,
520
- query: queryParameters,
521
- }, initOverrides)];
522
- case 3:
523
- response = _a.sent();
524
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.GetLikes200ResponseFromJSON)(jsonValue); })];
525
- }
526
- });
527
- });
528
- };
529
- /**
530
- * get user likes tweets
531
- */
532
- TweetApi.prototype.getLikes = function (requestParameters, initOverrides) {
533
- return __awaiter(this, void 0, void 0, function () {
534
- var response;
535
- return __generator(this, function (_a) {
536
- switch (_a.label) {
537
- case 0: return [4 /*yield*/, this.getLikesRaw(requestParameters, initOverrides)];
538
- case 1:
539
- response = _a.sent();
540
- return [4 /*yield*/, response.value()];
541
- case 2: return [2 /*return*/, _a.sent()];
542
- }
543
- });
544
- });
545
- };
546
- /**
547
- * get tweet list of timeline
548
- */
549
- TweetApi.prototype.getListLatestTweetsTimelineRaw = function (requestParameters, initOverrides) {
550
- return __awaiter(this, void 0, void 0, function () {
551
- var queryParameters, headerParameters, token, tokenString, response;
552
- return __generator(this, function (_a) {
553
- switch (_a.label) {
554
- case 0:
555
- if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
556
- throw new runtime.RequiredError('pathQueryId', 'Required parameter requestParameters.pathQueryId was null or undefined when calling getListLatestTweetsTimeline.');
557
- }
558
- if (requestParameters.variables === null || requestParameters.variables === undefined) {
559
- throw new runtime.RequiredError('variables', 'Required parameter requestParameters.variables was null or undefined when calling getListLatestTweetsTimeline.');
560
- }
561
- if (requestParameters.features === null || requestParameters.features === undefined) {
562
- throw new runtime.RequiredError('features', 'Required parameter requestParameters.features was null or undefined when calling getListLatestTweetsTimeline.');
563
- }
564
- queryParameters = {};
565
- if (requestParameters.variables !== undefined) {
566
- queryParameters['variables'] = requestParameters.variables;
567
- }
568
- if (requestParameters.features !== undefined) {
569
- queryParameters['features'] = requestParameters.features;
570
- }
571
- headerParameters = {};
572
- if (this.configuration && this.configuration.apiKey) {
573
- headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
574
- }
575
- if (this.configuration && this.configuration.apiKey) {
576
- headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
577
- }
578
- if (this.configuration && this.configuration.apiKey) {
579
- headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
580
- }
581
- if (this.configuration && this.configuration.apiKey) {
582
- headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
583
- }
584
- if (this.configuration && this.configuration.apiKey) {
585
- headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
586
- }
587
- if (this.configuration && this.configuration.apiKey) {
588
- headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
589
- }
590
- if (this.configuration && this.configuration.apiKey) {
591
- headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
592
- }
593
- if (this.configuration && this.configuration.apiKey) {
594
- headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
595
- }
596
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
597
- token = this.configuration.accessToken;
598
- return [4 /*yield*/, token("BearerAuth", [])];
599
- case 1:
600
- tokenString = _a.sent();
601
- if (tokenString) {
602
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
603
- }
604
- _a.label = 2;
605
- case 2:
606
- if (this.configuration && this.configuration.apiKey) {
607
- headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
608
- }
609
- if (this.configuration && this.configuration.apiKey) {
610
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
611
- }
612
- if (this.configuration && this.configuration.apiKey) {
613
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
614
- }
615
- if (this.configuration && this.configuration.apiKey) {
616
- headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
617
- }
618
- if (this.configuration && this.configuration.apiKey) {
619
- headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
620
- }
621
- if (this.configuration && this.configuration.apiKey) {
622
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
623
- }
624
- if (this.configuration && this.configuration.apiKey) {
625
- headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
626
- }
627
- if (this.configuration && this.configuration.apiKey) {
628
- headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
629
- }
630
- if (this.configuration && this.configuration.apiKey) {
631
- headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
632
- }
633
- return [4 /*yield*/, this.request({
634
- path: "/graphql/{pathQueryId}/ListLatestTweetsTimeline".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
635
- method: 'GET',
636
- headers: headerParameters,
637
- query: queryParameters,
638
- }, initOverrides)];
639
- case 3:
640
- response = _a.sent();
641
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.GetListLatestTweetsTimeline200ResponseFromJSON)(jsonValue); })];
642
- }
643
- });
644
- });
645
- };
646
- /**
647
- * get tweet list of timeline
648
- */
649
- TweetApi.prototype.getListLatestTweetsTimeline = function (requestParameters, initOverrides) {
650
- return __awaiter(this, void 0, void 0, function () {
651
- var response;
652
- return __generator(this, function (_a) {
653
- switch (_a.label) {
654
- case 0: return [4 /*yield*/, this.getListLatestTweetsTimelineRaw(requestParameters, initOverrides)];
655
- case 1:
656
- response = _a.sent();
657
- return [4 /*yield*/, response.value()];
658
- case 2: return [2 /*return*/, _a.sent()];
659
- }
660
- });
661
- });
662
- };
663
- /**
664
- * search tweet list. product:[Top, Latest, People, Photos, Videos]
665
- */
666
- TweetApi.prototype.getSearchTimelineRaw = function (requestParameters, initOverrides) {
667
- return __awaiter(this, void 0, void 0, function () {
668
- var queryParameters, headerParameters, token, tokenString, response;
669
- return __generator(this, function (_a) {
670
- switch (_a.label) {
671
- case 0:
672
- if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
673
- throw new runtime.RequiredError('pathQueryId', 'Required parameter requestParameters.pathQueryId was null or undefined when calling getSearchTimeline.');
674
- }
675
- if (requestParameters.variables === null || requestParameters.variables === undefined) {
676
- throw new runtime.RequiredError('variables', 'Required parameter requestParameters.variables was null or undefined when calling getSearchTimeline.');
677
- }
678
- if (requestParameters.features === null || requestParameters.features === undefined) {
679
- throw new runtime.RequiredError('features', 'Required parameter requestParameters.features was null or undefined when calling getSearchTimeline.');
680
- }
681
- queryParameters = {};
682
- if (requestParameters.variables !== undefined) {
683
- queryParameters['variables'] = requestParameters.variables;
684
- }
685
- if (requestParameters.features !== undefined) {
686
- queryParameters['features'] = requestParameters.features;
687
- }
688
- headerParameters = {};
689
- if (this.configuration && this.configuration.apiKey) {
690
- headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
691
- }
692
- if (this.configuration && this.configuration.apiKey) {
693
- headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
694
- }
695
- if (this.configuration && this.configuration.apiKey) {
696
- headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
697
- }
698
- if (this.configuration && this.configuration.apiKey) {
699
- headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
700
- }
701
- if (this.configuration && this.configuration.apiKey) {
702
- headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
703
- }
704
- if (this.configuration && this.configuration.apiKey) {
705
- headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
706
- }
707
- if (this.configuration && this.configuration.apiKey) {
708
- headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
709
- }
710
- if (this.configuration && this.configuration.apiKey) {
711
- headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
712
- }
713
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
714
- token = this.configuration.accessToken;
715
- return [4 /*yield*/, token("BearerAuth", [])];
716
- case 1:
717
- tokenString = _a.sent();
718
- if (tokenString) {
719
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
720
- }
721
- _a.label = 2;
722
- case 2:
723
- if (this.configuration && this.configuration.apiKey) {
724
- headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
725
- }
726
- if (this.configuration && this.configuration.apiKey) {
727
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
728
- }
729
- if (this.configuration && this.configuration.apiKey) {
730
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
731
- }
732
- if (this.configuration && this.configuration.apiKey) {
733
- headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
734
- }
735
- if (this.configuration && this.configuration.apiKey) {
736
- headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
737
- }
738
- if (this.configuration && this.configuration.apiKey) {
739
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
740
- }
741
- if (this.configuration && this.configuration.apiKey) {
742
- headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
743
- }
744
- if (this.configuration && this.configuration.apiKey) {
745
- headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
746
- }
747
- if (this.configuration && this.configuration.apiKey) {
748
- headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
749
- }
750
- return [4 /*yield*/, this.request({
751
- path: "/graphql/{pathQueryId}/SearchTimeline".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
752
- method: 'GET',
753
- headers: headerParameters,
754
- query: queryParameters,
755
- }, initOverrides)];
756
- case 3:
757
- response = _a.sent();
758
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.GetSearchTimeline200ResponseFromJSON)(jsonValue); })];
759
- }
760
- });
761
- });
762
- };
763
- /**
764
- * search tweet list. product:[Top, Latest, People, Photos, Videos]
765
- */
766
- TweetApi.prototype.getSearchTimeline = function (requestParameters, initOverrides) {
767
- return __awaiter(this, void 0, void 0, function () {
768
- var response;
769
- return __generator(this, function (_a) {
770
- switch (_a.label) {
771
- case 0: return [4 /*yield*/, this.getSearchTimelineRaw(requestParameters, initOverrides)];
772
- case 1:
773
- response = _a.sent();
774
- return [4 /*yield*/, response.value()];
775
- case 2: return [2 /*return*/, _a.sent()];
776
- }
777
- });
778
- });
779
- };
780
- /**
781
- * get TweetDetail
782
- */
783
- TweetApi.prototype.getTweetDetailRaw = function (requestParameters, initOverrides) {
784
- return __awaiter(this, void 0, void 0, function () {
785
- var queryParameters, headerParameters, token, tokenString, response;
786
- return __generator(this, function (_a) {
787
- switch (_a.label) {
788
- case 0:
789
- if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
790
- throw new runtime.RequiredError('pathQueryId', 'Required parameter requestParameters.pathQueryId was null or undefined when calling getTweetDetail.');
791
- }
792
- if (requestParameters.variables === null || requestParameters.variables === undefined) {
793
- throw new runtime.RequiredError('variables', 'Required parameter requestParameters.variables was null or undefined when calling getTweetDetail.');
794
- }
795
- if (requestParameters.features === null || requestParameters.features === undefined) {
796
- throw new runtime.RequiredError('features', 'Required parameter requestParameters.features was null or undefined when calling getTweetDetail.');
797
- }
798
- if (requestParameters.fieldToggles === null || requestParameters.fieldToggles === undefined) {
799
- throw new runtime.RequiredError('fieldToggles', 'Required parameter requestParameters.fieldToggles was null or undefined when calling getTweetDetail.');
800
- }
801
- queryParameters = {};
802
- if (requestParameters.variables !== undefined) {
803
- queryParameters['variables'] = requestParameters.variables;
804
- }
805
- if (requestParameters.features !== undefined) {
806
- queryParameters['features'] = requestParameters.features;
807
- }
808
- if (requestParameters.fieldToggles !== undefined) {
809
- queryParameters['fieldToggles'] = requestParameters.fieldToggles;
810
- }
811
- headerParameters = {};
812
- if (this.configuration && this.configuration.apiKey) {
813
- headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
814
- }
815
- if (this.configuration && this.configuration.apiKey) {
816
- headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
817
- }
818
- if (this.configuration && this.configuration.apiKey) {
819
- headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
820
- }
821
- if (this.configuration && this.configuration.apiKey) {
822
- headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
823
- }
824
- if (this.configuration && this.configuration.apiKey) {
825
- headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
826
- }
827
- if (this.configuration && this.configuration.apiKey) {
828
- headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
829
- }
830
- if (this.configuration && this.configuration.apiKey) {
831
- headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
832
- }
833
- if (this.configuration && this.configuration.apiKey) {
834
- headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
835
- }
836
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
837
- token = this.configuration.accessToken;
838
- return [4 /*yield*/, token("BearerAuth", [])];
839
- case 1:
840
- tokenString = _a.sent();
841
- if (tokenString) {
842
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
843
- }
844
- _a.label = 2;
845
- case 2:
846
- if (this.configuration && this.configuration.apiKey) {
847
- headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
848
- }
849
- if (this.configuration && this.configuration.apiKey) {
850
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
851
- }
852
- if (this.configuration && this.configuration.apiKey) {
853
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
854
- }
855
- if (this.configuration && this.configuration.apiKey) {
856
- headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
857
- }
858
- if (this.configuration && this.configuration.apiKey) {
859
- headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
860
- }
861
- if (this.configuration && this.configuration.apiKey) {
862
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
863
- }
864
- if (this.configuration && this.configuration.apiKey) {
865
- headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
866
- }
867
- if (this.configuration && this.configuration.apiKey) {
868
- headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
869
- }
870
- if (this.configuration && this.configuration.apiKey) {
871
- headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
872
- }
873
- return [4 /*yield*/, this.request({
874
- path: "/graphql/{pathQueryId}/TweetDetail".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
875
- method: 'GET',
876
- headers: headerParameters,
877
- query: queryParameters,
878
- }, initOverrides)];
879
- case 3:
880
- response = _a.sent();
881
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.GetTweetDetail200ResponseFromJSON)(jsonValue); })];
882
- }
883
- });
884
- });
885
- };
886
- /**
887
- * get TweetDetail
888
- */
889
- TweetApi.prototype.getTweetDetail = function (requestParameters, initOverrides) {
890
- return __awaiter(this, void 0, void 0, function () {
891
- var response;
892
- return __generator(this, function (_a) {
893
- switch (_a.label) {
894
- case 0: return [4 /*yield*/, this.getTweetDetailRaw(requestParameters, initOverrides)];
895
- case 1:
896
- response = _a.sent();
897
- return [4 /*yield*/, response.value()];
898
- case 2: return [2 /*return*/, _a.sent()];
899
- }
900
- });
901
- });
902
- };
903
- /**
904
- * get user highlights tweets
905
- */
906
- TweetApi.prototype.getUserHighlightsTweetsRaw = function (requestParameters, initOverrides) {
907
- return __awaiter(this, void 0, void 0, function () {
908
- var queryParameters, headerParameters, token, tokenString, response;
909
- return __generator(this, function (_a) {
910
- switch (_a.label) {
911
- case 0:
912
- if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
913
- throw new runtime.RequiredError('pathQueryId', 'Required parameter requestParameters.pathQueryId was null or undefined when calling getUserHighlightsTweets.');
914
- }
915
- if (requestParameters.variables === null || requestParameters.variables === undefined) {
916
- throw new runtime.RequiredError('variables', 'Required parameter requestParameters.variables was null or undefined when calling getUserHighlightsTweets.');
917
- }
918
- if (requestParameters.features === null || requestParameters.features === undefined) {
919
- throw new runtime.RequiredError('features', 'Required parameter requestParameters.features was null or undefined when calling getUserHighlightsTweets.');
920
- }
921
- queryParameters = {};
922
- if (requestParameters.variables !== undefined) {
923
- queryParameters['variables'] = requestParameters.variables;
924
- }
925
- if (requestParameters.features !== undefined) {
926
- queryParameters['features'] = requestParameters.features;
927
- }
928
- headerParameters = {};
929
- if (this.configuration && this.configuration.apiKey) {
930
- headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
931
- }
932
- if (this.configuration && this.configuration.apiKey) {
933
- headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
934
- }
935
- if (this.configuration && this.configuration.apiKey) {
936
- headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
937
- }
938
- if (this.configuration && this.configuration.apiKey) {
939
- headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
940
- }
941
- if (this.configuration && this.configuration.apiKey) {
942
- headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
943
- }
944
- if (this.configuration && this.configuration.apiKey) {
945
- headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
946
- }
947
- if (this.configuration && this.configuration.apiKey) {
948
- headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
949
- }
950
- if (this.configuration && this.configuration.apiKey) {
951
- headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
952
- }
953
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
954
- token = this.configuration.accessToken;
955
- return [4 /*yield*/, token("BearerAuth", [])];
956
- case 1:
957
- tokenString = _a.sent();
958
- if (tokenString) {
959
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
960
- }
961
- _a.label = 2;
962
- case 2:
963
- if (this.configuration && this.configuration.apiKey) {
964
- headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
965
- }
966
- if (this.configuration && this.configuration.apiKey) {
967
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
968
- }
969
- if (this.configuration && this.configuration.apiKey) {
970
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
971
- }
972
- if (this.configuration && this.configuration.apiKey) {
973
- headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
974
- }
975
- if (this.configuration && this.configuration.apiKey) {
976
- headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
977
- }
978
- if (this.configuration && this.configuration.apiKey) {
979
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
980
- }
981
- if (this.configuration && this.configuration.apiKey) {
982
- headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
983
- }
984
- if (this.configuration && this.configuration.apiKey) {
985
- headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
986
- }
987
- if (this.configuration && this.configuration.apiKey) {
988
- headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
989
- }
990
- return [4 /*yield*/, this.request({
991
- path: "/graphql/{pathQueryId}/UserHighlightsTweets".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
992
- method: 'GET',
993
- headers: headerParameters,
994
- query: queryParameters,
995
- }, initOverrides)];
996
- case 3:
997
- response = _a.sent();
998
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.GetUserHighlightsTweets200ResponseFromJSON)(jsonValue); })];
999
- }
1000
- });
1001
- });
1002
- };
1003
- /**
1004
- * get user highlights tweets
1005
- */
1006
- TweetApi.prototype.getUserHighlightsTweets = function (requestParameters, initOverrides) {
1007
- return __awaiter(this, void 0, void 0, function () {
1008
- var response;
1009
- return __generator(this, function (_a) {
1010
- switch (_a.label) {
1011
- case 0: return [4 /*yield*/, this.getUserHighlightsTweetsRaw(requestParameters, initOverrides)];
1012
- case 1:
1013
- response = _a.sent();
1014
- return [4 /*yield*/, response.value()];
1015
- case 2: return [2 /*return*/, _a.sent()];
1016
- }
1017
- });
1018
- });
1019
- };
1020
- /**
1021
- * get user media tweets
1022
- */
1023
- TweetApi.prototype.getUserMediaRaw = function (requestParameters, initOverrides) {
1024
- return __awaiter(this, void 0, void 0, function () {
1025
- var queryParameters, headerParameters, token, tokenString, response;
1026
- return __generator(this, function (_a) {
1027
- switch (_a.label) {
1028
- case 0:
1029
- if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
1030
- throw new runtime.RequiredError('pathQueryId', 'Required parameter requestParameters.pathQueryId was null or undefined when calling getUserMedia.');
1031
- }
1032
- if (requestParameters.variables === null || requestParameters.variables === undefined) {
1033
- throw new runtime.RequiredError('variables', 'Required parameter requestParameters.variables was null or undefined when calling getUserMedia.');
1034
- }
1035
- if (requestParameters.features === null || requestParameters.features === undefined) {
1036
- throw new runtime.RequiredError('features', 'Required parameter requestParameters.features was null or undefined when calling getUserMedia.');
1037
- }
1038
- queryParameters = {};
1039
- if (requestParameters.variables !== undefined) {
1040
- queryParameters['variables'] = requestParameters.variables;
1041
- }
1042
- if (requestParameters.features !== undefined) {
1043
- queryParameters['features'] = requestParameters.features;
1044
- }
1045
- headerParameters = {};
1046
- if (this.configuration && this.configuration.apiKey) {
1047
- headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
1048
- }
1049
- if (this.configuration && this.configuration.apiKey) {
1050
- headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
1051
- }
1052
- if (this.configuration && this.configuration.apiKey) {
1053
- headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
1054
- }
1055
- if (this.configuration && this.configuration.apiKey) {
1056
- headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
1057
- }
1058
- if (this.configuration && this.configuration.apiKey) {
1059
- headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
1060
- }
1061
- if (this.configuration && this.configuration.apiKey) {
1062
- headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
1063
- }
1064
- if (this.configuration && this.configuration.apiKey) {
1065
- headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
1066
- }
1067
- if (this.configuration && this.configuration.apiKey) {
1068
- headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
1069
- }
1070
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
1071
- token = this.configuration.accessToken;
1072
- return [4 /*yield*/, token("BearerAuth", [])];
1073
- case 1:
1074
- tokenString = _a.sent();
1075
- if (tokenString) {
1076
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
1077
- }
1078
- _a.label = 2;
1079
- case 2:
1080
- if (this.configuration && this.configuration.apiKey) {
1081
- headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
1082
- }
1083
- if (this.configuration && this.configuration.apiKey) {
1084
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
1085
- }
1086
- if (this.configuration && this.configuration.apiKey) {
1087
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
1088
- }
1089
- if (this.configuration && this.configuration.apiKey) {
1090
- headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
1091
- }
1092
- if (this.configuration && this.configuration.apiKey) {
1093
- headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
1094
- }
1095
- if (this.configuration && this.configuration.apiKey) {
1096
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
1097
- }
1098
- if (this.configuration && this.configuration.apiKey) {
1099
- headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
1100
- }
1101
- if (this.configuration && this.configuration.apiKey) {
1102
- headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
1103
- }
1104
- if (this.configuration && this.configuration.apiKey) {
1105
- headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
1106
- }
1107
- return [4 /*yield*/, this.request({
1108
- path: "/graphql/{pathQueryId}/UserMedia".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
1109
- method: 'GET',
1110
- headers: headerParameters,
1111
- query: queryParameters,
1112
- }, initOverrides)];
1113
- case 3:
1114
- response = _a.sent();
1115
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.GetLikes200ResponseFromJSON)(jsonValue); })];
1116
- }
1117
- });
1118
- });
1119
- };
1120
- /**
1121
- * get user media tweets
1122
- */
1123
- TweetApi.prototype.getUserMedia = function (requestParameters, initOverrides) {
1124
- return __awaiter(this, void 0, void 0, function () {
1125
- var response;
1126
- return __generator(this, function (_a) {
1127
- switch (_a.label) {
1128
- case 0: return [4 /*yield*/, this.getUserMediaRaw(requestParameters, initOverrides)];
1129
- case 1:
1130
- response = _a.sent();
1131
- return [4 /*yield*/, response.value()];
1132
- case 2: return [2 /*return*/, _a.sent()];
1133
- }
1134
- });
1135
- });
1136
- };
1137
- /**
1138
- * get user tweets
1139
- */
1140
- TweetApi.prototype.getUserTweetsRaw = function (requestParameters, initOverrides) {
1141
- return __awaiter(this, void 0, void 0, function () {
1142
- var queryParameters, headerParameters, token, tokenString, response;
1143
- return __generator(this, function (_a) {
1144
- switch (_a.label) {
1145
- case 0:
1146
- if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
1147
- throw new runtime.RequiredError('pathQueryId', 'Required parameter requestParameters.pathQueryId was null or undefined when calling getUserTweets.');
1148
- }
1149
- if (requestParameters.variables === null || requestParameters.variables === undefined) {
1150
- throw new runtime.RequiredError('variables', 'Required parameter requestParameters.variables was null or undefined when calling getUserTweets.');
1151
- }
1152
- if (requestParameters.features === null || requestParameters.features === undefined) {
1153
- throw new runtime.RequiredError('features', 'Required parameter requestParameters.features was null or undefined when calling getUserTweets.');
1154
- }
1155
- queryParameters = {};
1156
- if (requestParameters.variables !== undefined) {
1157
- queryParameters['variables'] = requestParameters.variables;
1158
- }
1159
- if (requestParameters.features !== undefined) {
1160
- queryParameters['features'] = requestParameters.features;
1161
- }
1162
- headerParameters = {};
1163
- if (this.configuration && this.configuration.apiKey) {
1164
- headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
1165
- }
1166
- if (this.configuration && this.configuration.apiKey) {
1167
- headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
1168
- }
1169
- if (this.configuration && this.configuration.apiKey) {
1170
- headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
1171
- }
1172
- if (this.configuration && this.configuration.apiKey) {
1173
- headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
1174
- }
1175
- if (this.configuration && this.configuration.apiKey) {
1176
- headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
1177
- }
1178
- if (this.configuration && this.configuration.apiKey) {
1179
- headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
1180
- }
1181
- if (this.configuration && this.configuration.apiKey) {
1182
- headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
1183
- }
1184
- if (this.configuration && this.configuration.apiKey) {
1185
- headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
1186
- }
1187
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
1188
- token = this.configuration.accessToken;
1189
- return [4 /*yield*/, token("BearerAuth", [])];
1190
- case 1:
1191
- tokenString = _a.sent();
1192
- if (tokenString) {
1193
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
1194
- }
1195
- _a.label = 2;
1196
- case 2:
1197
- if (this.configuration && this.configuration.apiKey) {
1198
- headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
1199
- }
1200
- if (this.configuration && this.configuration.apiKey) {
1201
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
1202
- }
1203
- if (this.configuration && this.configuration.apiKey) {
1204
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
1205
- }
1206
- if (this.configuration && this.configuration.apiKey) {
1207
- headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
1208
- }
1209
- if (this.configuration && this.configuration.apiKey) {
1210
- headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
1211
- }
1212
- if (this.configuration && this.configuration.apiKey) {
1213
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
1214
- }
1215
- if (this.configuration && this.configuration.apiKey) {
1216
- headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
1217
- }
1218
- if (this.configuration && this.configuration.apiKey) {
1219
- headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
1220
- }
1221
- if (this.configuration && this.configuration.apiKey) {
1222
- headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
1223
- }
1224
- return [4 /*yield*/, this.request({
1225
- path: "/graphql/{pathQueryId}/UserTweets".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
1226
- method: 'GET',
1227
- headers: headerParameters,
1228
- query: queryParameters,
1229
- }, initOverrides)];
1230
- case 3:
1231
- response = _a.sent();
1232
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.GetLikes200ResponseFromJSON)(jsonValue); })];
1233
- }
1234
- });
1235
- });
1236
- };
1237
- /**
1238
- * get user tweets
1239
- */
1240
- TweetApi.prototype.getUserTweets = function (requestParameters, initOverrides) {
1241
- return __awaiter(this, void 0, void 0, function () {
1242
- var response;
1243
- return __generator(this, function (_a) {
1244
- switch (_a.label) {
1245
- case 0: return [4 /*yield*/, this.getUserTweetsRaw(requestParameters, initOverrides)];
1246
- case 1:
1247
- response = _a.sent();
1248
- return [4 /*yield*/, response.value()];
1249
- case 2: return [2 /*return*/, _a.sent()];
1250
- }
1251
- });
1252
- });
1253
- };
1254
- /**
1255
- * get user replies tweets
1256
- */
1257
- TweetApi.prototype.getUserTweetsAndRepliesRaw = function (requestParameters, initOverrides) {
1258
- return __awaiter(this, void 0, void 0, function () {
1259
- var queryParameters, headerParameters, token, tokenString, response;
1260
- return __generator(this, function (_a) {
1261
- switch (_a.label) {
1262
- case 0:
1263
- if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
1264
- throw new runtime.RequiredError('pathQueryId', 'Required parameter requestParameters.pathQueryId was null or undefined when calling getUserTweetsAndReplies.');
1265
- }
1266
- if (requestParameters.variables === null || requestParameters.variables === undefined) {
1267
- throw new runtime.RequiredError('variables', 'Required parameter requestParameters.variables was null or undefined when calling getUserTweetsAndReplies.');
1268
- }
1269
- if (requestParameters.features === null || requestParameters.features === undefined) {
1270
- throw new runtime.RequiredError('features', 'Required parameter requestParameters.features was null or undefined when calling getUserTweetsAndReplies.');
1271
- }
1272
- queryParameters = {};
1273
- if (requestParameters.variables !== undefined) {
1274
- queryParameters['variables'] = requestParameters.variables;
1275
- }
1276
- if (requestParameters.features !== undefined) {
1277
- queryParameters['features'] = requestParameters.features;
1278
- }
1279
- headerParameters = {};
1280
- if (this.configuration && this.configuration.apiKey) {
1281
- headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
1282
- }
1283
- if (this.configuration && this.configuration.apiKey) {
1284
- headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
1285
- }
1286
- if (this.configuration && this.configuration.apiKey) {
1287
- headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
1288
- }
1289
- if (this.configuration && this.configuration.apiKey) {
1290
- headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
1291
- }
1292
- if (this.configuration && this.configuration.apiKey) {
1293
- headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
1294
- }
1295
- if (this.configuration && this.configuration.apiKey) {
1296
- headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
1297
- }
1298
- if (this.configuration && this.configuration.apiKey) {
1299
- headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
1300
- }
1301
- if (this.configuration && this.configuration.apiKey) {
1302
- headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
1303
- }
1304
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
1305
- token = this.configuration.accessToken;
1306
- return [4 /*yield*/, token("BearerAuth", [])];
1307
- case 1:
1308
- tokenString = _a.sent();
1309
- if (tokenString) {
1310
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
1311
- }
1312
- _a.label = 2;
1313
- case 2:
1314
- if (this.configuration && this.configuration.apiKey) {
1315
- headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
1316
- }
1317
- if (this.configuration && this.configuration.apiKey) {
1318
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
1319
- }
1320
- if (this.configuration && this.configuration.apiKey) {
1321
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
1322
- }
1323
- if (this.configuration && this.configuration.apiKey) {
1324
- headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
1325
- }
1326
- if (this.configuration && this.configuration.apiKey) {
1327
- headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
1328
- }
1329
- if (this.configuration && this.configuration.apiKey) {
1330
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
1331
- }
1332
- if (this.configuration && this.configuration.apiKey) {
1333
- headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
1334
- }
1335
- if (this.configuration && this.configuration.apiKey) {
1336
- headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
1337
- }
1338
- if (this.configuration && this.configuration.apiKey) {
1339
- headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
1340
- }
1341
- return [4 /*yield*/, this.request({
1342
- path: "/graphql/{pathQueryId}/UserTweetsAndReplies".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
1343
- method: 'GET',
1344
- headers: headerParameters,
1345
- query: queryParameters,
1346
- }, initOverrides)];
1347
- case 3:
1348
- response = _a.sent();
1349
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.GetLikes200ResponseFromJSON)(jsonValue); })];
1350
- }
1351
- });
1352
- });
1353
- };
1354
- /**
1355
- * get user replies tweets
1356
- */
1357
- TweetApi.prototype.getUserTweetsAndReplies = function (requestParameters, initOverrides) {
1358
- return __awaiter(this, void 0, void 0, function () {
1359
- var response;
1360
- return __generator(this, function (_a) {
1361
- switch (_a.label) {
1362
- case 0: return [4 /*yield*/, this.getUserTweetsAndRepliesRaw(requestParameters, initOverrides)];
1363
- case 1:
1364
- response = _a.sent();
1365
- return [4 /*yield*/, response.value()];
1366
- case 2: return [2 /*return*/, _a.sent()];
1367
- }
1368
- });
1369
- });
1370
- };
1371
- return TweetApi;
1372
- }(runtime.BaseAPI));
1373
- exports.TweetApi = TweetApi;
1374
- //# sourceMappingURL=TweetApi.js.map