twitter-openapi-typescript-generated 0.0.37 → 0.0.38

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 (1032) hide show
  1. package/dist/apis/DefaultApi.d.ts +45 -45
  2. package/dist/apis/DefaultApi.js +520 -520
  3. package/dist/apis/DefaultApi.js.map +1 -1
  4. package/dist/apis/OtherApi.d.ts +26 -26
  5. package/dist/apis/OtherApi.js +282 -282
  6. package/dist/apis/OtherApi.js.map +1 -1
  7. package/dist/apis/PostApi.d.ts +114 -114
  8. package/dist/apis/PostApi.js +1760 -1760
  9. package/dist/apis/PostApi.js.map +1 -1
  10. package/dist/apis/TweetApi.d.ts +219 -167
  11. package/dist/apis/TweetApi.d.ts.map +1 -1
  12. package/dist/apis/TweetApi.js +3371 -2503
  13. package/dist/apis/TweetApi.js.map +1 -1
  14. package/dist/apis/UserApi.d.ts +45 -45
  15. package/dist/apis/UserApi.js +520 -520
  16. package/dist/apis/UserApi.js.map +1 -1
  17. package/dist/apis/UserListApi.d.ts +83 -83
  18. package/dist/apis/UserListApi.js +1165 -1165
  19. package/dist/apis/UserListApi.js.map +1 -1
  20. package/dist/apis/UsersApi.d.ts +31 -31
  21. package/dist/apis/UsersApi.js +297 -297
  22. package/dist/apis/UsersApi.js.map +1 -1
  23. package/dist/apis/V11GetApi.d.ts +60 -60
  24. package/dist/apis/V11GetApi.js +617 -617
  25. package/dist/apis/V11GetApi.js.map +1 -1
  26. package/dist/apis/V11PostApi.d.ts +65 -65
  27. package/dist/apis/V11PostApi.js +673 -673
  28. package/dist/apis/V11PostApi.js.map +1 -1
  29. package/dist/apis/V20GetApi.d.ts +64 -64
  30. package/dist/apis/V20GetApi.js +501 -501
  31. package/dist/apis/V20GetApi.js.map +1 -1
  32. package/dist/apis/index.d.ts +10 -10
  33. package/dist/apis/index.js +28 -28
  34. package/dist/index.d.ts +3 -3
  35. package/dist/index.js +21 -21
  36. package/dist/models/AboutCommunityResult.d.ts +41 -0
  37. package/dist/models/AboutCommunityResult.d.ts.map +1 -0
  38. package/dist/models/AboutCommunityResult.js +58 -0
  39. package/dist/models/AboutCommunityResult.js.map +1 -0
  40. package/dist/models/AboutCommunityResults.d.ts +34 -0
  41. package/dist/models/AboutCommunityResults.d.ts.map +1 -0
  42. package/dist/models/AboutCommunityResults.js +53 -0
  43. package/dist/models/AboutCommunityResults.js.map +1 -0
  44. package/dist/models/AboutCommunityTweetData.d.ts +34 -0
  45. package/dist/models/AboutCommunityTweetData.d.ts.map +1 -0
  46. package/dist/models/AboutCommunityTweetData.js +53 -0
  47. package/dist/models/AboutCommunityTweetData.js.map +1 -0
  48. package/dist/models/AdditionalMediaInfo.d.ts +64 -64
  49. package/dist/models/AdditionalMediaInfo.js +63 -64
  50. package/dist/models/AdditionalMediaInfo.js.map +1 -1
  51. package/dist/models/AdditionalMediaInfoCallToActions.d.ts +39 -39
  52. package/dist/models/AdditionalMediaInfoCallToActions.js +52 -53
  53. package/dist/models/AdditionalMediaInfoCallToActions.js.map +1 -1
  54. package/dist/models/AdditionalMediaInfoCallToActionsUrl.d.ts +32 -32
  55. package/dist/models/AdditionalMediaInfoCallToActionsUrl.js +51 -52
  56. package/dist/models/AdditionalMediaInfoCallToActionsUrl.js.map +1 -1
  57. package/dist/models/AllowDownloadStatus.d.ts +32 -32
  58. package/dist/models/AllowDownloadStatus.js +49 -50
  59. package/dist/models/AllowDownloadStatus.js.map +1 -1
  60. package/dist/models/AnalysisResults.d.ts +34 -0
  61. package/dist/models/AnalysisResults.d.ts.map +1 -0
  62. package/dist/models/AnalysisResults.js +53 -0
  63. package/dist/models/AnalysisResults.js.map +1 -0
  64. package/dist/models/Article.d.ts +33 -33
  65. package/dist/models/Article.js +52 -53
  66. package/dist/models/Article.js.map +1 -1
  67. package/dist/models/ArticleCoverMedia.d.ts +51 -51
  68. package/dist/models/ArticleCoverMedia.js +64 -65
  69. package/dist/models/ArticleCoverMedia.js.map +1 -1
  70. package/dist/models/ArticleCoverMediaColorInfo.d.ts +33 -33
  71. package/dist/models/ArticleCoverMediaColorInfo.js +52 -53
  72. package/dist/models/ArticleCoverMediaColorInfo.js.map +1 -1
  73. package/dist/models/ArticleCoverMediaColorInfoPalette.d.ts +39 -39
  74. package/dist/models/ArticleCoverMediaColorInfoPalette.js +56 -57
  75. package/dist/models/ArticleCoverMediaColorInfoPalette.js.map +1 -1
  76. package/dist/models/ArticleCoverMediaColorInfoPaletteRGB.d.ts +44 -44
  77. package/dist/models/ArticleCoverMediaColorInfoPaletteRGB.js +59 -60
  78. package/dist/models/ArticleCoverMediaColorInfoPaletteRGB.js.map +1 -1
  79. package/dist/models/ArticleCoverMediaInfo.d.ts +58 -58
  80. package/dist/models/ArticleCoverMediaInfo.js +67 -68
  81. package/dist/models/ArticleCoverMediaInfo.js.map +1 -1
  82. package/dist/models/ArticleLifecycleState.d.ts +32 -32
  83. package/dist/models/ArticleLifecycleState.js +51 -52
  84. package/dist/models/ArticleLifecycleState.js.map +1 -1
  85. package/dist/models/ArticleMetadata.d.ts +32 -32
  86. package/dist/models/ArticleMetadata.js +51 -52
  87. package/dist/models/ArticleMetadata.js.map +1 -1
  88. package/dist/models/ArticleResult.d.ts +71 -71
  89. package/dist/models/ArticleResult.js +76 -77
  90. package/dist/models/ArticleResult.js.map +1 -1
  91. package/dist/models/ArticleResults.d.ts +33 -33
  92. package/dist/models/ArticleResults.js +52 -53
  93. package/dist/models/ArticleResults.js.map +1 -1
  94. package/dist/models/AuthorCommunityRelationship.d.ts +55 -55
  95. package/dist/models/AuthorCommunityRelationship.js +66 -66
  96. package/dist/models/AuthorCommunityRelationship.js.map +1 -1
  97. package/dist/models/BirdwatchEntity.d.ts +45 -45
  98. package/dist/models/BirdwatchEntity.js +60 -61
  99. package/dist/models/BirdwatchEntity.js.map +1 -1
  100. package/dist/models/BirdwatchEntityRef.d.ts +65 -65
  101. package/dist/models/BirdwatchEntityRef.js +71 -71
  102. package/dist/models/BirdwatchEntityRef.js.map +1 -1
  103. package/dist/models/BirdwatchPivot.d.ts +105 -99
  104. package/dist/models/BirdwatchPivot.d.ts.map +1 -1
  105. package/dist/models/BirdwatchPivot.js +91 -89
  106. package/dist/models/BirdwatchPivot.js.map +1 -1
  107. package/dist/models/BirdwatchPivotCallToAction.d.ts +44 -44
  108. package/dist/models/BirdwatchPivotCallToAction.js +59 -60
  109. package/dist/models/BirdwatchPivotCallToAction.js.map +1 -1
  110. package/dist/models/BirdwatchPivotFooter.d.ts +39 -39
  111. package/dist/models/BirdwatchPivotFooter.js +56 -57
  112. package/dist/models/BirdwatchPivotFooter.js.map +1 -1
  113. package/dist/models/BirdwatchPivotNote.d.ts +32 -32
  114. package/dist/models/BirdwatchPivotNote.js +51 -52
  115. package/dist/models/BirdwatchPivotNote.js.map +1 -1
  116. package/dist/models/BirdwatchPivotSubtitle.d.ts +39 -39
  117. package/dist/models/BirdwatchPivotSubtitle.js +56 -57
  118. package/dist/models/BirdwatchPivotSubtitle.js.map +1 -1
  119. package/dist/models/BookmarksResponse.d.ts +40 -40
  120. package/dist/models/BookmarksResponse.js +53 -54
  121. package/dist/models/BookmarksResponse.js.map +1 -1
  122. package/dist/models/BookmarksResponseData.d.ts +33 -33
  123. package/dist/models/BookmarksResponseData.js +52 -53
  124. package/dist/models/BookmarksResponseData.js.map +1 -1
  125. package/dist/models/BookmarksTimeline.d.ts +33 -33
  126. package/dist/models/BookmarksTimeline.js +52 -53
  127. package/dist/models/BookmarksTimeline.js.map +1 -1
  128. package/dist/models/Callback.d.ts +32 -32
  129. package/dist/models/Callback.js +51 -52
  130. package/dist/models/Callback.js.map +1 -1
  131. package/dist/models/ClientEventInfo.d.ts +46 -46
  132. package/dist/models/ClientEventInfo.js +53 -54
  133. package/dist/models/ClientEventInfo.js.map +1 -1
  134. package/dist/models/CommunitiesActions.d.ts +32 -32
  135. package/dist/models/CommunitiesActions.js +51 -52
  136. package/dist/models/CommunitiesActions.js.map +1 -1
  137. package/dist/models/Community.d.ts +33 -33
  138. package/dist/models/Community.js +52 -53
  139. package/dist/models/Community.js.map +1 -1
  140. package/dist/models/CommunityAboutTimelineResponse.d.ts +41 -0
  141. package/dist/models/CommunityAboutTimelineResponse.d.ts.map +1 -0
  142. package/dist/models/CommunityAboutTimelineResponse.js +56 -0
  143. package/dist/models/CommunityAboutTimelineResponse.js.map +1 -0
  144. package/dist/models/CommunityActions.d.ts +61 -61
  145. package/dist/models/CommunityActions.js +62 -63
  146. package/dist/models/CommunityActions.js.map +1 -1
  147. package/dist/models/CommunityData.d.ts +219 -219
  148. package/dist/models/CommunityData.js +132 -132
  149. package/dist/models/CommunityData.js.map +1 -1
  150. package/dist/models/CommunityDeleteActionResult.d.ts +46 -46
  151. package/dist/models/CommunityDeleteActionResult.js +63 -63
  152. package/dist/models/CommunityDeleteActionResult.js.map +1 -1
  153. package/dist/models/CommunityInvitesResult.d.ts +52 -52
  154. package/dist/models/CommunityInvitesResult.js +67 -67
  155. package/dist/models/CommunityInvitesResult.js.map +1 -1
  156. package/dist/models/CommunityJoinAction.d.ts +33 -33
  157. package/dist/models/CommunityJoinAction.js +52 -53
  158. package/dist/models/CommunityJoinAction.js.map +1 -1
  159. package/dist/models/CommunityJoinActionResultUnion.d.ts +27 -27
  160. package/dist/models/CommunityJoinActionResultUnion.js +54 -55
  161. package/dist/models/CommunityJoinActionResultUnion.js.map +1 -1
  162. package/dist/models/CommunityJoinActionUnavailable.d.ts +52 -52
  163. package/dist/models/CommunityJoinActionUnavailable.js +67 -67
  164. package/dist/models/CommunityJoinActionUnavailable.js.map +1 -1
  165. package/dist/models/CommunityJoinRequestsResult.d.ts +33 -33
  166. package/dist/models/CommunityJoinRequestsResult.js +52 -53
  167. package/dist/models/CommunityJoinRequestsResult.js.map +1 -1
  168. package/dist/models/CommunityLeaveActionResult.d.ts +52 -52
  169. package/dist/models/CommunityLeaveActionResult.js +67 -67
  170. package/dist/models/CommunityLeaveActionResult.js.map +1 -1
  171. package/dist/models/CommunityMediaTimelineResponse.d.ts +41 -0
  172. package/dist/models/CommunityMediaTimelineResponse.d.ts.map +1 -0
  173. package/dist/models/CommunityMediaTimelineResponse.js +56 -0
  174. package/dist/models/CommunityMediaTimelineResponse.js.map +1 -0
  175. package/dist/models/CommunityPinActionResult.d.ts +33 -33
  176. package/dist/models/CommunityPinActionResult.js +52 -53
  177. package/dist/models/CommunityPinActionResult.js.map +1 -1
  178. package/dist/models/CommunityRelationship.d.ts +53 -53
  179. package/dist/models/CommunityRelationship.js +64 -65
  180. package/dist/models/CommunityRelationship.js.map +1 -1
  181. package/dist/models/CommunityRule.d.ts +44 -44
  182. package/dist/models/CommunityRule.js +57 -58
  183. package/dist/models/CommunityRule.js.map +1 -1
  184. package/dist/models/CommunityTweetsTimelineResponse.d.ts +41 -0
  185. package/dist/models/CommunityTweetsTimelineResponse.d.ts.map +1 -0
  186. package/dist/models/CommunityTweetsTimelineResponse.js +56 -0
  187. package/dist/models/CommunityTweetsTimelineResponse.js.map +1 -0
  188. package/dist/models/CommunityUnpinActionResult.d.ts +33 -33
  189. package/dist/models/CommunityUnpinActionResult.js +52 -53
  190. package/dist/models/CommunityUnpinActionResult.js.map +1 -1
  191. package/dist/models/CommunityUrls.d.ts +33 -33
  192. package/dist/models/CommunityUrls.js +52 -53
  193. package/dist/models/CommunityUrls.js.map +1 -1
  194. package/dist/models/CommunityUrlsPermalink.d.ts +32 -32
  195. package/dist/models/CommunityUrlsPermalink.js +51 -52
  196. package/dist/models/CommunityUrlsPermalink.js.map +1 -1
  197. package/dist/models/ContentEntryType.d.ts +26 -26
  198. package/dist/models/ContentEntryType.js +52 -52
  199. package/dist/models/ContentEntryType.js.map +1 -1
  200. package/dist/models/ContentItemType.d.ts +32 -30
  201. package/dist/models/ContentItemType.d.ts.map +1 -1
  202. package/dist/models/ContentItemType.js +58 -56
  203. package/dist/models/ContentItemType.js.map +1 -1
  204. package/dist/models/ContentUnion.d.ts +30 -30
  205. package/dist/models/ContentUnion.js +59 -60
  206. package/dist/models/ContentUnion.js.map +1 -1
  207. package/dist/models/ConversationControl.d.ts +41 -41
  208. package/dist/models/ConversationControl.js +60 -60
  209. package/dist/models/ConversationControl.js.map +1 -1
  210. package/dist/models/CoverCta.d.ts +66 -66
  211. package/dist/models/CoverCta.js +73 -73
  212. package/dist/models/CoverCta.js.map +1 -1
  213. package/dist/models/CreateBookmarkResponse.d.ts +40 -40
  214. package/dist/models/CreateBookmarkResponse.js +55 -56
  215. package/dist/models/CreateBookmarkResponse.js.map +1 -1
  216. package/dist/models/CreateBookmarkResponseData.d.ts +32 -32
  217. package/dist/models/CreateBookmarkResponseData.js +49 -50
  218. package/dist/models/CreateBookmarkResponseData.js.map +1 -1
  219. package/dist/models/CreateRetweet.d.ts +33 -33
  220. package/dist/models/CreateRetweet.js +52 -53
  221. package/dist/models/CreateRetweet.js.map +1 -1
  222. package/dist/models/CreateRetweetResponse.d.ts +40 -40
  223. package/dist/models/CreateRetweetResponse.js +55 -56
  224. package/dist/models/CreateRetweetResponse.js.map +1 -1
  225. package/dist/models/CreateRetweetResponseData.d.ts +33 -33
  226. package/dist/models/CreateRetweetResponseData.js +50 -51
  227. package/dist/models/CreateRetweetResponseData.js.map +1 -1
  228. package/dist/models/CreateRetweetResponseResult.d.ts +33 -33
  229. package/dist/models/CreateRetweetResponseResult.js +52 -53
  230. package/dist/models/CreateRetweetResponseResult.js.map +1 -1
  231. package/dist/models/CreateTweet.d.ts +33 -33
  232. package/dist/models/CreateTweet.js +52 -53
  233. package/dist/models/CreateTweet.js.map +1 -1
  234. package/dist/models/CreateTweetResponse.d.ts +40 -40
  235. package/dist/models/CreateTweetResponse.js +55 -56
  236. package/dist/models/CreateTweetResponse.js.map +1 -1
  237. package/dist/models/CreateTweetResponseData.d.ts +33 -33
  238. package/dist/models/CreateTweetResponseData.js +50 -51
  239. package/dist/models/CreateTweetResponseData.js.map +1 -1
  240. package/dist/models/CreateTweetResponseResult.d.ts +33 -33
  241. package/dist/models/CreateTweetResponseResult.js +52 -53
  242. package/dist/models/CreateTweetResponseResult.js.map +1 -1
  243. package/dist/models/CtaClientEventInfo.d.ts +39 -39
  244. package/dist/models/CtaClientEventInfo.js +58 -58
  245. package/dist/models/CtaClientEventInfo.js.map +1 -1
  246. package/dist/models/CursorType.d.ts +29 -29
  247. package/dist/models/CursorType.js +55 -55
  248. package/dist/models/CursorType.js.map +1 -1
  249. package/dist/models/DeleteBookmarkResponse.d.ts +40 -40
  250. package/dist/models/DeleteBookmarkResponse.js +55 -56
  251. package/dist/models/DeleteBookmarkResponse.js.map +1 -1
  252. package/dist/models/DeleteBookmarkResponseData.d.ts +32 -32
  253. package/dist/models/DeleteBookmarkResponseData.js +49 -50
  254. package/dist/models/DeleteBookmarkResponseData.js.map +1 -1
  255. package/dist/models/DeleteRetweet.d.ts +33 -33
  256. package/dist/models/DeleteRetweet.js +52 -53
  257. package/dist/models/DeleteRetweet.js.map +1 -1
  258. package/dist/models/DeleteRetweetResponse.d.ts +40 -40
  259. package/dist/models/DeleteRetweetResponse.js +55 -56
  260. package/dist/models/DeleteRetweetResponse.js.map +1 -1
  261. package/dist/models/DeleteRetweetResponseData.d.ts +33 -33
  262. package/dist/models/DeleteRetweetResponseData.js +50 -51
  263. package/dist/models/DeleteRetweetResponseData.js.map +1 -1
  264. package/dist/models/DeleteRetweetResponseResult.d.ts +33 -33
  265. package/dist/models/DeleteRetweetResponseResult.js +50 -51
  266. package/dist/models/DeleteRetweetResponseResult.js.map +1 -1
  267. package/dist/models/DeleteTweetResponse.d.ts +40 -40
  268. package/dist/models/DeleteTweetResponse.js +55 -56
  269. package/dist/models/DeleteTweetResponse.js.map +1 -1
  270. package/dist/models/DeleteTweetResponseData.d.ts +33 -33
  271. package/dist/models/DeleteTweetResponseData.js +50 -51
  272. package/dist/models/DeleteTweetResponseData.js.map +1 -1
  273. package/dist/models/DeleteTweetResponseResult.d.ts +32 -32
  274. package/dist/models/DeleteTweetResponseResult.js +51 -52
  275. package/dist/models/DeleteTweetResponseResult.js.map +1 -1
  276. package/dist/models/DisplayTreatment.d.ts +38 -38
  277. package/dist/models/DisplayTreatment.js +53 -54
  278. package/dist/models/DisplayTreatment.js.map +1 -1
  279. package/dist/models/DisplayType.d.ts +27 -27
  280. package/dist/models/DisplayType.js +53 -53
  281. package/dist/models/DisplayType.js.map +1 -1
  282. package/dist/models/Entities.d.ts +71 -71
  283. package/dist/models/Entities.js +70 -71
  284. package/dist/models/Entities.js.map +1 -1
  285. package/dist/models/ErrorExtensions.d.ts +63 -63
  286. package/dist/models/ErrorExtensions.js +70 -71
  287. package/dist/models/ErrorExtensions.js.map +1 -1
  288. package/dist/models/ErrorResponse.d.ts +89 -89
  289. package/dist/models/ErrorResponse.js +88 -89
  290. package/dist/models/ErrorResponse.js.map +1 -1
  291. package/dist/models/ExtMediaAvailability.d.ts +46 -46
  292. package/dist/models/ExtMediaAvailability.js +59 -59
  293. package/dist/models/ExtMediaAvailability.js.map +1 -1
  294. package/dist/models/ExtendedEntities.d.ts +33 -33
  295. package/dist/models/ExtendedEntities.js +52 -53
  296. package/dist/models/ExtendedEntities.js.map +1 -1
  297. package/dist/models/FavoriteTweet.d.ts +32 -32
  298. package/dist/models/FavoriteTweet.js +49 -50
  299. package/dist/models/FavoriteTweet.js.map +1 -1
  300. package/dist/models/FavoriteTweetResponse.d.ts +40 -40
  301. package/dist/models/FavoriteTweetResponse.js +55 -56
  302. package/dist/models/FavoriteTweetResponse.js.map +1 -1
  303. package/dist/models/FeedbackInfo.d.ts +39 -39
  304. package/dist/models/FeedbackInfo.js +52 -53
  305. package/dist/models/FeedbackInfo.js.map +1 -1
  306. package/dist/models/FollowResponse.d.ts +40 -40
  307. package/dist/models/FollowResponse.js +55 -56
  308. package/dist/models/FollowResponse.js.map +1 -1
  309. package/dist/models/FollowResponseData.d.ts +33 -33
  310. package/dist/models/FollowResponseData.js +50 -51
  311. package/dist/models/FollowResponseData.js.map +1 -1
  312. package/dist/models/FollowResponseResult.d.ts +40 -40
  313. package/dist/models/FollowResponseResult.js +57 -58
  314. package/dist/models/FollowResponseResult.js.map +1 -1
  315. package/dist/models/FollowResponseUser.d.ts +33 -33
  316. package/dist/models/FollowResponseUser.js +52 -53
  317. package/dist/models/FollowResponseUser.js.map +1 -1
  318. package/dist/models/FollowTimeline.d.ts +33 -33
  319. package/dist/models/FollowTimeline.js +52 -53
  320. package/dist/models/FollowTimeline.js.map +1 -1
  321. package/dist/models/GrokImageAnnotation.d.ts +39 -0
  322. package/dist/models/GrokImageAnnotation.d.ts.map +1 -0
  323. package/dist/models/GrokImageAnnotation.js +56 -0
  324. package/dist/models/GrokImageAnnotation.js.map +1 -0
  325. package/dist/models/GrokShareAttachment.d.ts +33 -33
  326. package/dist/models/GrokShareAttachment.js +52 -53
  327. package/dist/models/GrokShareAttachment.js.map +1 -1
  328. package/dist/models/GrokShareAttachmentItem.d.ts +45 -38
  329. package/dist/models/GrokShareAttachmentItem.d.ts.map +1 -1
  330. package/dist/models/GrokShareAttachmentItem.js +58 -56
  331. package/dist/models/GrokShareAttachmentItem.js.map +1 -1
  332. package/dist/models/Highlight.d.ts +33 -33
  333. package/dist/models/Highlight.js +52 -53
  334. package/dist/models/Highlight.js.map +1 -1
  335. package/dist/models/HomeTimelineHome.d.ts +33 -33
  336. package/dist/models/HomeTimelineHome.js +52 -53
  337. package/dist/models/HomeTimelineHome.js.map +1 -1
  338. package/dist/models/HomeTimelineResponseData.d.ts +33 -33
  339. package/dist/models/HomeTimelineResponseData.d.ts.map +1 -1
  340. package/dist/models/HomeTimelineResponseData.js +52 -51
  341. package/dist/models/HomeTimelineResponseData.js.map +1 -1
  342. package/dist/models/InstructionType.d.ts +33 -31
  343. package/dist/models/InstructionType.d.ts.map +1 -1
  344. package/dist/models/InstructionType.js +59 -57
  345. package/dist/models/InstructionType.js.map +1 -1
  346. package/dist/models/InstructionUnion.d.ts +51 -45
  347. package/dist/models/InstructionUnion.d.ts.map +1 -1
  348. package/dist/models/InstructionUnion.js +94 -85
  349. package/dist/models/InstructionUnion.js.map +1 -1
  350. package/dist/models/ItemContentUnion.d.ts +48 -45
  351. package/dist/models/ItemContentUnion.d.ts.map +1 -1
  352. package/dist/models/ItemContentUnion.js +89 -85
  353. package/dist/models/ItemContentUnion.js.map +1 -1
  354. package/dist/models/ItemResult.d.ts +40 -40
  355. package/dist/models/ItemResult.js +53 -54
  356. package/dist/models/ItemResult.js.map +1 -1
  357. package/dist/models/LimitedActionResultsData.d.ts +52 -52
  358. package/dist/models/LimitedActionResultsData.js +71 -71
  359. package/dist/models/LimitedActionResultsData.js.map +1 -1
  360. package/dist/models/ListLatestTweetsTimelineResponse.d.ts +40 -40
  361. package/dist/models/ListLatestTweetsTimelineResponse.js +55 -56
  362. package/dist/models/ListLatestTweetsTimelineResponse.js.map +1 -1
  363. package/dist/models/ListTweetsTimelineData.d.ts +33 -33
  364. package/dist/models/ListTweetsTimelineData.d.ts.map +1 -1
  365. package/dist/models/ListTweetsTimelineData.js +52 -51
  366. package/dist/models/ListTweetsTimelineData.js.map +1 -1
  367. package/dist/models/ListTweetsTimelineList.d.ts +33 -33
  368. package/dist/models/ListTweetsTimelineList.d.ts.map +1 -1
  369. package/dist/models/ListTweetsTimelineList.js +52 -53
  370. package/dist/models/ListTweetsTimelineList.js.map +1 -1
  371. package/dist/models/Location.d.ts +38 -38
  372. package/dist/models/Location.js +55 -56
  373. package/dist/models/Location.js.map +1 -1
  374. package/dist/models/Media.d.ts +163 -163
  375. package/dist/models/Media.js +126 -126
  376. package/dist/models/Media.js.map +1 -1
  377. package/dist/models/MediaCommunityResult.d.ts +41 -0
  378. package/dist/models/MediaCommunityResult.d.ts.map +1 -0
  379. package/dist/models/MediaCommunityResult.js +58 -0
  380. package/dist/models/MediaCommunityResult.js.map +1 -0
  381. package/dist/models/MediaCommunityResults.d.ts +34 -0
  382. package/dist/models/MediaCommunityResults.d.ts.map +1 -0
  383. package/dist/models/MediaCommunityResults.js +53 -0
  384. package/dist/models/MediaCommunityResults.js.map +1 -0
  385. package/dist/models/MediaCommunityTweetData.d.ts +34 -0
  386. package/dist/models/MediaCommunityTweetData.d.ts.map +1 -0
  387. package/dist/models/MediaCommunityTweetData.js +53 -0
  388. package/dist/models/MediaCommunityTweetData.js.map +1 -0
  389. package/dist/models/MediaExtended.d.ts +170 -170
  390. package/dist/models/MediaExtended.js +127 -127
  391. package/dist/models/MediaExtended.js.map +1 -1
  392. package/dist/models/MediaOriginalInfo.d.ts +45 -45
  393. package/dist/models/MediaOriginalInfo.js +58 -59
  394. package/dist/models/MediaOriginalInfo.js.map +1 -1
  395. package/dist/models/MediaOriginalInfoFocusRect.d.ts +50 -50
  396. package/dist/models/MediaOriginalInfoFocusRect.js +63 -64
  397. package/dist/models/MediaOriginalInfoFocusRect.js.map +1 -1
  398. package/dist/models/MediaResult.d.ts +39 -32
  399. package/dist/models/MediaResult.d.ts.map +1 -1
  400. package/dist/models/MediaResult.js +54 -52
  401. package/dist/models/MediaResult.js.map +1 -1
  402. package/dist/models/MediaResults.d.ts +33 -33
  403. package/dist/models/MediaResults.js +52 -53
  404. package/dist/models/MediaResults.js.map +1 -1
  405. package/dist/models/MediaSize.d.ts +52 -52
  406. package/dist/models/MediaSize.js +67 -67
  407. package/dist/models/MediaSize.js.map +1 -1
  408. package/dist/models/MediaSizes.d.ts +51 -51
  409. package/dist/models/MediaSizes.js +64 -65
  410. package/dist/models/MediaSizes.js.map +1 -1
  411. package/dist/models/MediaStats.d.ts +32 -32
  412. package/dist/models/MediaStats.js +51 -52
  413. package/dist/models/MediaStats.js.map +1 -1
  414. package/dist/models/MediaVideoInfo.d.ts +45 -45
  415. package/dist/models/MediaVideoInfo.js +58 -59
  416. package/dist/models/MediaVideoInfo.js.map +1 -1
  417. package/dist/models/MediaVideoInfoVariant.d.ts +44 -44
  418. package/dist/models/MediaVideoInfoVariant.js +57 -58
  419. package/dist/models/MediaVideoInfoVariant.js.map +1 -1
  420. package/dist/models/MediaVisibilityResults.d.ts +33 -33
  421. package/dist/models/MediaVisibilityResults.js +52 -53
  422. package/dist/models/MediaVisibilityResults.js.map +1 -1
  423. package/dist/models/MediaVisibilityResultsBlurredImageInterstitial.d.ts +45 -45
  424. package/dist/models/MediaVisibilityResultsBlurredImageInterstitial.js +60 -61
  425. package/dist/models/MediaVisibilityResultsBlurredImageInterstitial.js.map +1 -1
  426. package/dist/models/ModuleEntry.d.ts +47 -47
  427. package/dist/models/ModuleEntry.js +58 -59
  428. package/dist/models/ModuleEntry.js.map +1 -1
  429. package/dist/models/ModuleItem.d.ts +45 -45
  430. package/dist/models/ModuleItem.js +58 -59
  431. package/dist/models/ModuleItem.js.map +1 -1
  432. package/dist/models/NoteTweet.d.ts +39 -39
  433. package/dist/models/NoteTweet.js +56 -57
  434. package/dist/models/NoteTweet.js.map +1 -1
  435. package/dist/models/NoteTweetResult.d.ts +33 -33
  436. package/dist/models/NoteTweetResult.js +52 -53
  437. package/dist/models/NoteTweetResult.js.map +1 -1
  438. package/dist/models/NoteTweetResultData.d.ts +59 -59
  439. package/dist/models/NoteTweetResultData.js +66 -67
  440. package/dist/models/NoteTweetResultData.js.map +1 -1
  441. package/dist/models/NoteTweetResultMedia.d.ts +33 -33
  442. package/dist/models/NoteTweetResultMedia.js +52 -53
  443. package/dist/models/NoteTweetResultMedia.js.map +1 -1
  444. package/dist/models/NoteTweetResultMediaInlineMedia.d.ts +38 -38
  445. package/dist/models/NoteTweetResultMediaInlineMedia.js +55 -56
  446. package/dist/models/NoteTweetResultMediaInlineMedia.js.map +1 -1
  447. package/dist/models/NoteTweetResultRichText.d.ts +33 -33
  448. package/dist/models/NoteTweetResultRichText.js +52 -53
  449. package/dist/models/NoteTweetResultRichText.js.map +1 -1
  450. package/dist/models/NoteTweetResultRichTextTag.d.ts +52 -52
  451. package/dist/models/NoteTweetResultRichTextTag.js +67 -67
  452. package/dist/models/NoteTweetResultRichTextTag.js.map +1 -1
  453. package/dist/models/NotificationTemplate.d.ts +46 -0
  454. package/dist/models/NotificationTemplate.d.ts.map +1 -0
  455. package/dist/models/NotificationTemplate.js +55 -0
  456. package/dist/models/NotificationTemplate.js.map +1 -0
  457. package/dist/models/NotificationsResult.d.ts +47 -0
  458. package/dist/models/NotificationsResult.d.ts.map +1 -0
  459. package/dist/models/NotificationsResult.js +62 -0
  460. package/dist/models/NotificationsResult.js.map +1 -0
  461. package/dist/models/NotificationsTimelineData.d.ts +34 -0
  462. package/dist/models/NotificationsTimelineData.d.ts.map +1 -0
  463. package/dist/models/NotificationsTimelineData.js +53 -0
  464. package/dist/models/NotificationsTimelineData.js.map +1 -0
  465. package/dist/models/NotificationsTimelineResponse.d.ts +41 -0
  466. package/dist/models/NotificationsTimelineResponse.d.ts.map +1 -0
  467. package/dist/models/NotificationsTimelineResponse.js +56 -0
  468. package/dist/models/NotificationsTimelineResponse.js.map +1 -0
  469. package/dist/models/NotificationsUserResults.d.ts +34 -0
  470. package/dist/models/NotificationsUserResults.d.ts.map +1 -0
  471. package/dist/models/NotificationsUserResults.js +53 -0
  472. package/dist/models/NotificationsUserResults.js.map +1 -0
  473. package/dist/models/NotificationsViewerV2.d.ts +34 -0
  474. package/dist/models/NotificationsViewerV2.d.ts.map +1 -0
  475. package/dist/models/NotificationsViewerV2.js +53 -0
  476. package/dist/models/NotificationsViewerV2.js.map +1 -0
  477. package/dist/models/OneFactorLoginEligibility.d.ts +32 -32
  478. package/dist/models/OneFactorLoginEligibility.js +51 -52
  479. package/dist/models/OneFactorLoginEligibility.js.map +1 -1
  480. package/dist/models/OtherObjectAll.d.ts +33 -33
  481. package/dist/models/OtherObjectAll.js +50 -51
  482. package/dist/models/OtherObjectAll.js.map +1 -1
  483. package/dist/models/PostCreateBookmarkRequest.d.ts +39 -39
  484. package/dist/models/PostCreateBookmarkRequest.js +56 -57
  485. package/dist/models/PostCreateBookmarkRequest.js.map +1 -1
  486. package/dist/models/PostCreateBookmarkRequestVariables.d.ts +32 -32
  487. package/dist/models/PostCreateBookmarkRequestVariables.js +51 -52
  488. package/dist/models/PostCreateBookmarkRequestVariables.js.map +1 -1
  489. package/dist/models/PostCreateRetweetRequest.d.ts +39 -39
  490. package/dist/models/PostCreateRetweetRequest.js +56 -57
  491. package/dist/models/PostCreateRetweetRequest.js.map +1 -1
  492. package/dist/models/PostCreateRetweetRequestVariables.d.ts +38 -38
  493. package/dist/models/PostCreateRetweetRequestVariables.js +55 -56
  494. package/dist/models/PostCreateRetweetRequestVariables.js.map +1 -1
  495. package/dist/models/PostCreateTweetRequest.d.ts +46 -46
  496. package/dist/models/PostCreateTweetRequest.js +61 -62
  497. package/dist/models/PostCreateTweetRequest.js.map +1 -1
  498. package/dist/models/PostCreateTweetRequestFeatures.d.ts +200 -158
  499. package/dist/models/PostCreateTweetRequestFeatures.d.ts.map +1 -1
  500. package/dist/models/PostCreateTweetRequestFeatures.js +163 -136
  501. package/dist/models/PostCreateTweetRequestFeatures.js.map +1 -1
  502. package/dist/models/PostCreateTweetRequestVariables.d.ts +77 -77
  503. package/dist/models/PostCreateTweetRequestVariables.js +74 -75
  504. package/dist/models/PostCreateTweetRequestVariables.js.map +1 -1
  505. package/dist/models/PostCreateTweetRequestVariablesConversationControl.d.ts +32 -32
  506. package/dist/models/PostCreateTweetRequestVariablesConversationControl.js +51 -52
  507. package/dist/models/PostCreateTweetRequestVariablesConversationControl.js.map +1 -1
  508. package/dist/models/PostCreateTweetRequestVariablesMedia.d.ts +39 -39
  509. package/dist/models/PostCreateTweetRequestVariablesMedia.js +54 -55
  510. package/dist/models/PostCreateTweetRequestVariablesMedia.js.map +1 -1
  511. package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.d.ts +38 -38
  512. package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.js +55 -56
  513. package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.js.map +1 -1
  514. package/dist/models/PostCreateTweetRequestVariablesReply.d.ts +38 -38
  515. package/dist/models/PostCreateTweetRequestVariablesReply.js +55 -56
  516. package/dist/models/PostCreateTweetRequestVariablesReply.js.map +1 -1
  517. package/dist/models/PostDeleteBookmarkRequest.d.ts +39 -39
  518. package/dist/models/PostDeleteBookmarkRequest.js +56 -57
  519. package/dist/models/PostDeleteBookmarkRequest.js.map +1 -1
  520. package/dist/models/PostDeleteRetweetRequest.d.ts +39 -39
  521. package/dist/models/PostDeleteRetweetRequest.js +56 -57
  522. package/dist/models/PostDeleteRetweetRequest.js.map +1 -1
  523. package/dist/models/PostDeleteRetweetRequestVariables.d.ts +38 -38
  524. package/dist/models/PostDeleteRetweetRequestVariables.js +55 -56
  525. package/dist/models/PostDeleteRetweetRequestVariables.js.map +1 -1
  526. package/dist/models/PostDeleteTweetRequest.d.ts +39 -39
  527. package/dist/models/PostDeleteTweetRequest.js +56 -57
  528. package/dist/models/PostDeleteTweetRequest.js.map +1 -1
  529. package/dist/models/PostFavoriteTweetRequest.d.ts +39 -39
  530. package/dist/models/PostFavoriteTweetRequest.js +56 -57
  531. package/dist/models/PostFavoriteTweetRequest.js.map +1 -1
  532. package/dist/models/PostUnfavoriteTweetRequest.d.ts +39 -39
  533. package/dist/models/PostUnfavoriteTweetRequest.js +56 -57
  534. package/dist/models/PostUnfavoriteTweetRequest.js.map +1 -1
  535. package/dist/models/PrimaryCommunityTopic.d.ts +38 -38
  536. package/dist/models/PrimaryCommunityTopic.js +55 -56
  537. package/dist/models/PrimaryCommunityTopic.js.map +1 -1
  538. package/dist/models/ProfileResponse.d.ts +40 -40
  539. package/dist/models/ProfileResponse.js +55 -56
  540. package/dist/models/ProfileResponse.js.map +1 -1
  541. package/dist/models/ProfileResponseData.d.ts +33 -33
  542. package/dist/models/ProfileResponseData.js +50 -51
  543. package/dist/models/ProfileResponseData.js.map +1 -1
  544. package/dist/models/QuotedRefResult.d.ts +33 -33
  545. package/dist/models/QuotedRefResult.js +50 -51
  546. package/dist/models/QuotedRefResult.js.map +1 -1
  547. package/dist/models/QuotedStatusPermalink.d.ts +44 -44
  548. package/dist/models/QuotedStatusPermalink.js +59 -60
  549. package/dist/models/QuotedStatusPermalink.js.map +1 -1
  550. package/dist/models/RankedCommunityResult.d.ts +41 -0
  551. package/dist/models/RankedCommunityResult.d.ts.map +1 -0
  552. package/dist/models/RankedCommunityResult.js +58 -0
  553. package/dist/models/RankedCommunityResult.js.map +1 -0
  554. package/dist/models/RankedCommunityResults.d.ts +34 -0
  555. package/dist/models/RankedCommunityResults.d.ts.map +1 -0
  556. package/dist/models/RankedCommunityResults.js +53 -0
  557. package/dist/models/RankedCommunityResults.js.map +1 -0
  558. package/dist/models/RankedCommunityTweetData.d.ts +34 -0
  559. package/dist/models/RankedCommunityTweetData.d.ts.map +1 -0
  560. package/dist/models/RankedCommunityTweetData.js +53 -0
  561. package/dist/models/RankedCommunityTweetData.js.map +1 -0
  562. package/dist/models/Retweet.d.ts +39 -39
  563. package/dist/models/Retweet.js +56 -57
  564. package/dist/models/Retweet.js.map +1 -1
  565. package/dist/models/RetweetLegacy.d.ts +32 -32
  566. package/dist/models/RetweetLegacy.js +51 -52
  567. package/dist/models/RetweetLegacy.js.map +1 -1
  568. package/dist/models/RichMessage.d.ts +39 -0
  569. package/dist/models/RichMessage.d.ts.map +1 -0
  570. package/dist/models/RichMessage.js +52 -0
  571. package/dist/models/RichMessage.js.map +1 -0
  572. package/dist/models/SearchByRawQuery.d.ts +33 -33
  573. package/dist/models/SearchByRawQuery.js +52 -53
  574. package/dist/models/SearchByRawQuery.js.map +1 -1
  575. package/dist/models/SearchTimeline.d.ts +33 -33
  576. package/dist/models/SearchTimeline.js +52 -53
  577. package/dist/models/SearchTimeline.js.map +1 -1
  578. package/dist/models/SearchTimelineData.d.ts +33 -33
  579. package/dist/models/SearchTimelineData.d.ts.map +1 -1
  580. package/dist/models/SearchTimelineData.js +52 -51
  581. package/dist/models/SearchTimelineData.js.map +1 -1
  582. package/dist/models/SearchTimelineResponse.d.ts +40 -40
  583. package/dist/models/SearchTimelineResponse.js +55 -56
  584. package/dist/models/SearchTimelineResponse.js.map +1 -1
  585. package/dist/models/SelfThread.d.ts +32 -32
  586. package/dist/models/SelfThread.js +51 -52
  587. package/dist/models/SelfThread.js.map +1 -1
  588. package/dist/models/SensitiveMediaWarning.d.ts +44 -44
  589. package/dist/models/SensitiveMediaWarning.js +53 -54
  590. package/dist/models/SensitiveMediaWarning.js.map +1 -1
  591. package/dist/models/Session.d.ts +120 -120
  592. package/dist/models/Session.js +111 -111
  593. package/dist/models/Session.js.map +1 -1
  594. package/dist/models/SocialContextLandingUrl.d.ts +54 -54
  595. package/dist/models/SocialContextLandingUrl.js +63 -63
  596. package/dist/models/SocialContextLandingUrl.js.map +1 -1
  597. package/dist/models/SocialContextUnion.d.ts +27 -27
  598. package/dist/models/SocialContextUnion.js +54 -55
  599. package/dist/models/SocialContextUnion.js.map +1 -1
  600. package/dist/models/SocialContextUnionType.d.ts +25 -25
  601. package/dist/models/SocialContextUnionType.js +51 -51
  602. package/dist/models/SocialContextUnionType.js.map +1 -1
  603. package/dist/models/SuperFollowsReplyUserResult.d.ts +33 -33
  604. package/dist/models/SuperFollowsReplyUserResult.js +52 -53
  605. package/dist/models/SuperFollowsReplyUserResult.js.map +1 -1
  606. package/dist/models/SuperFollowsReplyUserResultData.d.ts +40 -40
  607. package/dist/models/SuperFollowsReplyUserResultData.js +57 -58
  608. package/dist/models/SuperFollowsReplyUserResultData.js.map +1 -1
  609. package/dist/models/SuperFollowsReplyUserResultLegacy.d.ts +32 -32
  610. package/dist/models/SuperFollowsReplyUserResultLegacy.js +51 -52
  611. package/dist/models/SuperFollowsReplyUserResultLegacy.js.map +1 -1
  612. package/dist/models/Text.d.ts +39 -39
  613. package/dist/models/Text.js +56 -57
  614. package/dist/models/Text.js.map +1 -1
  615. package/dist/models/TextEntity.d.ts +45 -45
  616. package/dist/models/TextEntity.js +60 -61
  617. package/dist/models/TextEntity.js.map +1 -1
  618. package/dist/models/TextEntityRef.d.ts +58 -58
  619. package/dist/models/TextEntityRef.js +72 -72
  620. package/dist/models/TextEntityRef.js.map +1 -1
  621. package/dist/models/TextHighlight.d.ts +38 -38
  622. package/dist/models/TextHighlight.js +55 -56
  623. package/dist/models/TextHighlight.js.map +1 -1
  624. package/dist/models/ThumbnailImage.d.ts +44 -44
  625. package/dist/models/ThumbnailImage.js +53 -54
  626. package/dist/models/ThumbnailImage.js.map +1 -1
  627. package/dist/models/Timeline.d.ts +49 -49
  628. package/dist/models/Timeline.js +56 -57
  629. package/dist/models/Timeline.js.map +1 -1
  630. package/dist/models/TimelineAddEntries.d.ts +40 -40
  631. package/dist/models/TimelineAddEntries.js +57 -58
  632. package/dist/models/TimelineAddEntries.js.map +1 -1
  633. package/dist/models/TimelineAddEntry.d.ts +45 -45
  634. package/dist/models/TimelineAddEntry.js +60 -61
  635. package/dist/models/TimelineAddEntry.js.map +1 -1
  636. package/dist/models/TimelineAddToModule.d.ts +52 -52
  637. package/dist/models/TimelineAddToModule.js +63 -64
  638. package/dist/models/TimelineAddToModule.js.map +1 -1
  639. package/dist/models/TimelineClearCache.d.ts +33 -33
  640. package/dist/models/TimelineClearCache.js +52 -53
  641. package/dist/models/TimelineClearCache.js.map +1 -1
  642. package/dist/models/TimelineClearEntriesUnreadState.d.ts +34 -0
  643. package/dist/models/TimelineClearEntriesUnreadState.d.ts.map +1 -0
  644. package/dist/models/TimelineClearEntriesUnreadState.js +53 -0
  645. package/dist/models/TimelineClearEntriesUnreadState.js.map +1 -0
  646. package/dist/models/TimelineCommunity.d.ts +34 -34
  647. package/dist/models/TimelineCommunity.js +57 -58
  648. package/dist/models/TimelineCommunity.js.map +1 -1
  649. package/dist/models/TimelineCoverBehavior.d.ts +47 -47
  650. package/dist/models/TimelineCoverBehavior.js +62 -62
  651. package/dist/models/TimelineCoverBehavior.js.map +1 -1
  652. package/dist/models/TimelineCoverBehaviorUrl.d.ts +45 -45
  653. package/dist/models/TimelineCoverBehaviorUrl.js +62 -62
  654. package/dist/models/TimelineCoverBehaviorUrl.js.map +1 -1
  655. package/dist/models/TimelineGeneralContext.d.ts +73 -66
  656. package/dist/models/TimelineGeneralContext.d.ts.map +1 -1
  657. package/dist/models/TimelineGeneralContext.js +74 -71
  658. package/dist/models/TimelineGeneralContext.js.map +1 -1
  659. package/dist/models/TimelineHalfCover.d.ts +85 -85
  660. package/dist/models/TimelineHalfCover.js +91 -91
  661. package/dist/models/TimelineHalfCover.js.map +1 -1
  662. package/dist/models/TimelineMarkEntriesUnreadGreaterThanSortIndex.d.ts +40 -0
  663. package/dist/models/TimelineMarkEntriesUnreadGreaterThanSortIndex.d.ts.map +1 -0
  664. package/dist/models/TimelineMarkEntriesUnreadGreaterThanSortIndex.js +55 -0
  665. package/dist/models/TimelineMarkEntriesUnreadGreaterThanSortIndex.js.map +1 -0
  666. package/dist/models/TimelineMessagePrompt.d.ts +34 -34
  667. package/dist/models/TimelineMessagePrompt.js +57 -58
  668. package/dist/models/TimelineMessagePrompt.js.map +1 -1
  669. package/dist/models/TimelineNotification.d.ts +80 -0
  670. package/dist/models/TimelineNotification.d.ts.map +1 -0
  671. package/dist/models/TimelineNotification.js +85 -0
  672. package/dist/models/TimelineNotification.js.map +1 -0
  673. package/dist/models/TimelinePinEntry.d.ts +40 -40
  674. package/dist/models/TimelinePinEntry.js +57 -58
  675. package/dist/models/TimelinePinEntry.js.map +1 -1
  676. package/dist/models/TimelinePrompt.d.ts +34 -34
  677. package/dist/models/TimelinePrompt.js +57 -58
  678. package/dist/models/TimelinePrompt.js.map +1 -1
  679. package/dist/models/TimelineReplaceEntry.d.ts +46 -46
  680. package/dist/models/TimelineReplaceEntry.js +61 -62
  681. package/dist/models/TimelineReplaceEntry.js.map +1 -1
  682. package/dist/models/TimelineResponse.d.ts +40 -40
  683. package/dist/models/TimelineResponse.js +55 -56
  684. package/dist/models/TimelineResponse.js.map +1 -1
  685. package/dist/models/TimelineResult.d.ts +40 -0
  686. package/dist/models/TimelineResult.d.ts.map +1 -0
  687. package/dist/models/{TimelineV2.js → TimelineResult.js} +53 -52
  688. package/dist/models/TimelineResult.js.map +1 -0
  689. package/dist/models/TimelineShowAlert.d.ts +101 -101
  690. package/dist/models/TimelineShowAlert.js +87 -87
  691. package/dist/models/TimelineShowAlert.js.map +1 -1
  692. package/dist/models/TimelineShowAlertRichText.d.ts +40 -40
  693. package/dist/models/TimelineShowAlertRichText.js +51 -52
  694. package/dist/models/TimelineShowAlertRichText.js.map +1 -1
  695. package/dist/models/TimelineShowCover.d.ts +47 -47
  696. package/dist/models/TimelineShowCover.js +62 -63
  697. package/dist/models/TimelineShowCover.js.map +1 -1
  698. package/dist/models/TimelineTerminateTimeline.d.ts +48 -48
  699. package/dist/models/TimelineTerminateTimeline.js +65 -65
  700. package/dist/models/TimelineTerminateTimeline.js.map +1 -1
  701. package/dist/models/TimelineTimelineCursor.d.ts +72 -72
  702. package/dist/models/TimelineTimelineCursor.js +71 -72
  703. package/dist/models/TimelineTimelineCursor.js.map +1 -1
  704. package/dist/models/TimelineTimelineItem.d.ts +62 -62
  705. package/dist/models/TimelineTimelineItem.js +67 -68
  706. package/dist/models/TimelineTimelineItem.js.map +1 -1
  707. package/dist/models/TimelineTimelineModule.d.ts +92 -92
  708. package/dist/models/TimelineTimelineModule.d.ts.map +1 -1
  709. package/dist/models/TimelineTimelineModule.js +77 -80
  710. package/dist/models/TimelineTimelineModule.js.map +1 -1
  711. package/dist/models/TimelineTombstone.d.ts +60 -60
  712. package/dist/models/TimelineTombstone.js +65 -65
  713. package/dist/models/TimelineTombstone.js.map +1 -1
  714. package/dist/models/TimelineTopicContext.d.ts +53 -53
  715. package/dist/models/TimelineTopicContext.js +62 -62
  716. package/dist/models/TimelineTopicContext.js.map +1 -1
  717. package/dist/models/TimelineTrend.d.ts +87 -87
  718. package/dist/models/TimelineTrend.d.ts.map +1 -1
  719. package/dist/models/TimelineTrend.js +80 -87
  720. package/dist/models/TimelineTrend.js.map +1 -1
  721. package/dist/models/TimelineTweet.d.ts +91 -91
  722. package/dist/models/TimelineTweet.js +86 -86
  723. package/dist/models/TimelineTweet.js.map +1 -1
  724. package/dist/models/TimelineUser.d.ts +70 -69
  725. package/dist/models/TimelineUser.d.ts.map +1 -1
  726. package/dist/models/TimelineUser.js +79 -78
  727. package/dist/models/TimelineUser.js.map +1 -1
  728. package/dist/models/Timestamp.d.ts +44 -44
  729. package/dist/models/Timestamp.js +59 -60
  730. package/dist/models/Timestamp.js.map +1 -1
  731. package/dist/models/TombstoneEntity.d.ts +45 -45
  732. package/dist/models/TombstoneEntity.js +54 -55
  733. package/dist/models/TombstoneEntity.js.map +1 -1
  734. package/dist/models/TombstoneInfo.d.ts +39 -39
  735. package/dist/models/TombstoneInfo.js +52 -53
  736. package/dist/models/TombstoneInfo.js.map +1 -1
  737. package/dist/models/TombstoneRef.d.ts +58 -58
  738. package/dist/models/TombstoneRef.js +66 -66
  739. package/dist/models/TombstoneRef.js.map +1 -1
  740. package/dist/models/TombstoneRichText.d.ts +45 -45
  741. package/dist/models/TombstoneRichText.js +54 -55
  742. package/dist/models/TombstoneRichText.js.map +1 -1
  743. package/dist/models/TopicContext.d.ts +68 -68
  744. package/dist/models/TopicContext.js +61 -62
  745. package/dist/models/TopicContext.js.map +1 -1
  746. package/dist/models/Tracing.d.ts +32 -32
  747. package/dist/models/Tracing.js +51 -52
  748. package/dist/models/Tracing.js.map +1 -1
  749. package/dist/models/TrendImage.d.ts +32 -32
  750. package/dist/models/TrendImage.js +49 -50
  751. package/dist/models/TrendImage.js.map +1 -1
  752. package/dist/models/TrendMetadata.d.ts +33 -33
  753. package/dist/models/TrendMetadata.js +50 -51
  754. package/dist/models/TrendMetadata.js.map +1 -1
  755. package/dist/models/TrendResults.d.ts +32 -32
  756. package/dist/models/TrendResults.js +51 -52
  757. package/dist/models/TrendResults.js.map +1 -1
  758. package/dist/models/Tweet.d.ts +216 -216
  759. package/dist/models/Tweet.js +125 -126
  760. package/dist/models/Tweet.js.map +1 -1
  761. package/dist/models/TweetCard.d.ts +39 -39
  762. package/dist/models/TweetCard.js +52 -53
  763. package/dist/models/TweetCard.js.map +1 -1
  764. package/dist/models/TweetCardLegacy.d.ts +59 -59
  765. package/dist/models/TweetCardLegacy.js +66 -67
  766. package/dist/models/TweetCardLegacy.js.map +1 -1
  767. package/dist/models/TweetCardLegacyBindingValue.d.ts +39 -39
  768. package/dist/models/TweetCardLegacyBindingValue.js +56 -57
  769. package/dist/models/TweetCardLegacyBindingValue.js.map +1 -1
  770. package/dist/models/TweetCardLegacyBindingValueData.d.ts +72 -72
  771. package/dist/models/TweetCardLegacyBindingValueData.js +65 -66
  772. package/dist/models/TweetCardLegacyBindingValueData.js.map +1 -1
  773. package/dist/models/TweetCardLegacyBindingValueDataImage.d.ts +50 -50
  774. package/dist/models/TweetCardLegacyBindingValueDataImage.js +61 -62
  775. package/dist/models/TweetCardLegacyBindingValueDataImage.js.map +1 -1
  776. package/dist/models/TweetCardPlatform.d.ts +40 -40
  777. package/dist/models/TweetCardPlatform.js +57 -58
  778. package/dist/models/TweetCardPlatform.js.map +1 -1
  779. package/dist/models/TweetCardPlatformAudience.d.ts +39 -39
  780. package/dist/models/TweetCardPlatformAudience.js +58 -58
  781. package/dist/models/TweetCardPlatformAudience.js.map +1 -1
  782. package/dist/models/TweetCardPlatformData.d.ts +33 -33
  783. package/dist/models/TweetCardPlatformData.js +52 -53
  784. package/dist/models/TweetCardPlatformData.js.map +1 -1
  785. package/dist/models/TweetCardPlatformDevice.d.ts +38 -38
  786. package/dist/models/TweetCardPlatformDevice.js +55 -56
  787. package/dist/models/TweetCardPlatformDevice.js.map +1 -1
  788. package/dist/models/TweetDetailResponse.d.ts +40 -40
  789. package/dist/models/TweetDetailResponse.js +55 -56
  790. package/dist/models/TweetDetailResponse.js.map +1 -1
  791. package/dist/models/TweetDetailResponseData.d.ts +33 -33
  792. package/dist/models/TweetDetailResponseData.js +50 -51
  793. package/dist/models/TweetDetailResponseData.js.map +1 -1
  794. package/dist/models/TweetEditControl.d.ts +63 -63
  795. package/dist/models/TweetEditControl.js +60 -61
  796. package/dist/models/TweetEditControl.js.map +1 -1
  797. package/dist/models/TweetEditControlInitial.d.ts +50 -50
  798. package/dist/models/TweetEditControlInitial.js +63 -64
  799. package/dist/models/TweetEditControlInitial.js.map +1 -1
  800. package/dist/models/TweetEditPrespective.d.ts +38 -38
  801. package/dist/models/TweetEditPrespective.js +51 -52
  802. package/dist/models/TweetEditPrespective.js.map +1 -1
  803. package/dist/models/TweetFavoritersResponse.d.ts +40 -40
  804. package/dist/models/TweetFavoritersResponse.js +55 -56
  805. package/dist/models/TweetFavoritersResponse.js.map +1 -1
  806. package/dist/models/TweetFavoritersResponseData.d.ts +33 -33
  807. package/dist/models/TweetFavoritersResponseData.d.ts.map +1 -1
  808. package/dist/models/TweetFavoritersResponseData.js +50 -51
  809. package/dist/models/TweetFavoritersResponseData.js.map +1 -1
  810. package/dist/models/TweetInterstitial.d.ts +60 -60
  811. package/dist/models/TweetInterstitial.js +73 -73
  812. package/dist/models/TweetInterstitial.js.map +1 -1
  813. package/dist/models/TweetInterstitialRevealText.d.ts +45 -45
  814. package/dist/models/TweetInterstitialRevealText.js +60 -61
  815. package/dist/models/TweetInterstitialRevealText.js.map +1 -1
  816. package/dist/models/TweetInterstitialText.d.ts +45 -45
  817. package/dist/models/TweetInterstitialText.js +60 -61
  818. package/dist/models/TweetInterstitialText.js.map +1 -1
  819. package/dist/models/TweetInterstitialTextEntity.d.ts +45 -45
  820. package/dist/models/TweetInterstitialTextEntity.js +60 -61
  821. package/dist/models/TweetInterstitialTextEntity.js.map +1 -1
  822. package/dist/models/TweetInterstitialTextEntityRef.d.ts +58 -58
  823. package/dist/models/TweetInterstitialTextEntityRef.js +72 -72
  824. package/dist/models/TweetInterstitialTextEntityRef.js.map +1 -1
  825. package/dist/models/TweetLegacy.d.ts +235 -235
  826. package/dist/models/TweetLegacy.js +162 -162
  827. package/dist/models/TweetLegacy.js.map +1 -1
  828. package/dist/models/TweetLegacyScopes.d.ts +32 -32
  829. package/dist/models/TweetLegacyScopes.js +51 -52
  830. package/dist/models/TweetLegacyScopes.js.map +1 -1
  831. package/dist/models/TweetLimitedActionResults.d.ts +33 -33
  832. package/dist/models/TweetLimitedActionResults.js +52 -53
  833. package/dist/models/TweetLimitedActionResults.js.map +1 -1
  834. package/dist/models/TweetPreviewDisplay.d.ts +54 -54
  835. package/dist/models/TweetPreviewDisplay.js +67 -68
  836. package/dist/models/TweetPreviewDisplay.js.map +1 -1
  837. package/dist/models/TweetPreviewDisplayCta.d.ts +39 -39
  838. package/dist/models/TweetPreviewDisplayCta.js +56 -57
  839. package/dist/models/TweetPreviewDisplayCta.js.map +1 -1
  840. package/dist/models/TweetPreviewDisplayCtaUrl.d.ts +47 -47
  841. package/dist/models/TweetPreviewDisplayCtaUrl.js +64 -64
  842. package/dist/models/TweetPreviewDisplayCtaUrl.js.map +1 -1
  843. package/dist/models/TweetPreviewDisplayTweet.d.ts +94 -94
  844. package/dist/models/TweetPreviewDisplayTweet.js +93 -94
  845. package/dist/models/TweetPreviewDisplayTweet.js.map +1 -1
  846. package/dist/models/TweetPreviewDisplayTweetViewCount.d.ts +32 -32
  847. package/dist/models/TweetPreviewDisplayTweetViewCount.js +51 -52
  848. package/dist/models/TweetPreviewDisplayTweetViewCount.js.map +1 -1
  849. package/dist/models/TweetPreviousCounts.d.ts +56 -56
  850. package/dist/models/TweetPreviousCounts.js +67 -68
  851. package/dist/models/TweetPreviousCounts.js.map +1 -1
  852. package/dist/models/TweetResultByRestIdData.d.ts +33 -33
  853. package/dist/models/TweetResultByRestIdData.js +50 -51
  854. package/dist/models/TweetResultByRestIdData.js.map +1 -1
  855. package/dist/models/TweetResultByRestIdResponse.d.ts +40 -40
  856. package/dist/models/TweetResultByRestIdResponse.js +55 -56
  857. package/dist/models/TweetResultByRestIdResponse.js.map +1 -1
  858. package/dist/models/TweetRetweetersResponse.d.ts +40 -40
  859. package/dist/models/TweetRetweetersResponse.js +55 -56
  860. package/dist/models/TweetRetweetersResponse.js.map +1 -1
  861. package/dist/models/TweetRetweetersResponseData.d.ts +33 -33
  862. package/dist/models/TweetRetweetersResponseData.d.ts.map +1 -1
  863. package/dist/models/TweetRetweetersResponseData.js +50 -51
  864. package/dist/models/TweetRetweetersResponseData.js.map +1 -1
  865. package/dist/models/TweetTombstone.d.ts +34 -34
  866. package/dist/models/TweetTombstone.js +57 -58
  867. package/dist/models/TweetTombstone.js.map +1 -1
  868. package/dist/models/TweetUnavailable.d.ts +39 -39
  869. package/dist/models/TweetUnavailable.js +52 -53
  870. package/dist/models/TweetUnavailable.js.map +1 -1
  871. package/dist/models/TweetUnion.d.ts +36 -36
  872. package/dist/models/TweetUnion.js +69 -70
  873. package/dist/models/TweetUnion.js.map +1 -1
  874. package/dist/models/TweetView.d.ts +46 -46
  875. package/dist/models/TweetView.js +61 -61
  876. package/dist/models/TweetView.js.map +1 -1
  877. package/dist/models/TweetWithVisibilityResults.d.ts +62 -62
  878. package/dist/models/TweetWithVisibilityResults.js +65 -66
  879. package/dist/models/TweetWithVisibilityResults.js.map +1 -1
  880. package/dist/models/TypeName.d.ts +53 -51
  881. package/dist/models/TypeName.d.ts.map +1 -1
  882. package/dist/models/TypeName.js +79 -77
  883. package/dist/models/TypeName.js.map +1 -1
  884. package/dist/models/UnfavoriteTweet.d.ts +32 -32
  885. package/dist/models/UnfavoriteTweet.js +49 -50
  886. package/dist/models/UnfavoriteTweet.js.map +1 -1
  887. package/dist/models/UnfavoriteTweetResponse.d.ts +40 -40
  888. package/dist/models/UnfavoriteTweetResponse.js +55 -56
  889. package/dist/models/UnfavoriteTweetResponse.js.map +1 -1
  890. package/dist/models/UnifiedCard.d.ts +39 -39
  891. package/dist/models/UnifiedCard.js +58 -58
  892. package/dist/models/UnifiedCard.js.map +1 -1
  893. package/dist/models/Url.d.ts +50 -50
  894. package/dist/models/Url.js +61 -62
  895. package/dist/models/Url.js.map +1 -1
  896. package/dist/models/UrtEndpointOptions.d.ts +39 -39
  897. package/dist/models/UrtEndpointOptions.js +56 -57
  898. package/dist/models/UrtEndpointOptions.js.map +1 -1
  899. package/dist/models/UrtEndpointRequestParams.d.ts +38 -38
  900. package/dist/models/UrtEndpointRequestParams.js +55 -56
  901. package/dist/models/UrtEndpointRequestParams.js.map +1 -1
  902. package/dist/models/User.d.ts +205 -204
  903. package/dist/models/User.d.ts.map +1 -1
  904. package/dist/models/User.js +133 -132
  905. package/dist/models/User.js.map +1 -1
  906. package/dist/models/UserFeatures.d.ts +32 -32
  907. package/dist/models/UserFeatures.js +51 -52
  908. package/dist/models/UserFeatures.js.map +1 -1
  909. package/dist/models/UserHighlightsInfo.d.ts +38 -38
  910. package/dist/models/UserHighlightsInfo.js +55 -56
  911. package/dist/models/UserHighlightsInfo.js.map +1 -1
  912. package/dist/models/UserHighlightsTweetsData.d.ts +33 -33
  913. package/dist/models/UserHighlightsTweetsData.js +50 -51
  914. package/dist/models/UserHighlightsTweetsData.js.map +1 -1
  915. package/dist/models/UserHighlightsTweetsResponse.d.ts +40 -40
  916. package/dist/models/UserHighlightsTweetsResponse.js +55 -56
  917. package/dist/models/UserHighlightsTweetsResponse.js.map +1 -1
  918. package/dist/models/UserHighlightsTweetsResult.d.ts +40 -40
  919. package/dist/models/UserHighlightsTweetsResult.js +57 -58
  920. package/dist/models/UserHighlightsTweetsResult.js.map +1 -1
  921. package/dist/models/UserHighlightsTweetsTimeline.d.ts +33 -33
  922. package/dist/models/UserHighlightsTweetsTimeline.js +52 -53
  923. package/dist/models/UserHighlightsTweetsTimeline.js.map +1 -1
  924. package/dist/models/UserHighlightsTweetsUser.d.ts +33 -33
  925. package/dist/models/UserHighlightsTweetsUser.js +52 -53
  926. package/dist/models/UserHighlightsTweetsUser.js.map +1 -1
  927. package/dist/models/UserLegacy.d.ts +282 -282
  928. package/dist/models/UserLegacy.js +185 -185
  929. package/dist/models/UserLegacy.js.map +1 -1
  930. package/dist/models/UserLegacyExtendedProfile.d.ts +33 -33
  931. package/dist/models/UserLegacyExtendedProfile.js +50 -51
  932. package/dist/models/UserLegacyExtendedProfile.js.map +1 -1
  933. package/dist/models/UserLegacyExtendedProfileBirthdate.d.ts +78 -78
  934. package/dist/models/UserLegacyExtendedProfileBirthdate.js +86 -86
  935. package/dist/models/UserLegacyExtendedProfileBirthdate.js.map +1 -1
  936. package/dist/models/UserProfessional.d.ts +53 -53
  937. package/dist/models/UserProfessional.js +68 -68
  938. package/dist/models/UserProfessional.js.map +1 -1
  939. package/dist/models/UserProfessionalCategory.d.ts +44 -44
  940. package/dist/models/UserProfessionalCategory.js +59 -60
  941. package/dist/models/UserProfessionalCategory.js.map +1 -1
  942. package/dist/models/UserResponse.d.ts +40 -40
  943. package/dist/models/UserResponse.js +55 -56
  944. package/dist/models/UserResponse.js.map +1 -1
  945. package/dist/models/UserResponseData.d.ts +33 -33
  946. package/dist/models/UserResponseData.js +50 -51
  947. package/dist/models/UserResponseData.js.map +1 -1
  948. package/dist/models/UserResultByScreenName.d.ts +39 -39
  949. package/dist/models/UserResultByScreenName.js +56 -57
  950. package/dist/models/UserResultByScreenName.js.map +1 -1
  951. package/dist/models/UserResultByScreenNameLegacy.d.ts +68 -68
  952. package/dist/models/UserResultByScreenNameLegacy.js +61 -62
  953. package/dist/models/UserResultByScreenNameLegacy.js.map +1 -1
  954. package/dist/models/UserResultByScreenNameResult.d.ts +60 -60
  955. package/dist/models/UserResultByScreenNameResult.js +69 -70
  956. package/dist/models/UserResultByScreenNameResult.js.map +1 -1
  957. package/dist/models/UserResultCore.d.ts +33 -33
  958. package/dist/models/UserResultCore.js +52 -53
  959. package/dist/models/UserResultCore.js.map +1 -1
  960. package/dist/models/UserResults.d.ts +33 -33
  961. package/dist/models/UserResults.js +50 -51
  962. package/dist/models/UserResults.js.map +1 -1
  963. package/dist/models/UserTipJarSettings.d.ts +80 -80
  964. package/dist/models/UserTipJarSettings.js +65 -66
  965. package/dist/models/UserTipJarSettings.js.map +1 -1
  966. package/dist/models/UserTweetsData.d.ts +33 -33
  967. package/dist/models/UserTweetsData.js +50 -51
  968. package/dist/models/UserTweetsData.js.map +1 -1
  969. package/dist/models/UserTweetsResponse.d.ts +40 -40
  970. package/dist/models/UserTweetsResponse.js +55 -56
  971. package/dist/models/UserTweetsResponse.js.map +1 -1
  972. package/dist/models/UserTweetsResultV1.d.ts +41 -0
  973. package/dist/models/UserTweetsResultV1.d.ts.map +1 -0
  974. package/dist/models/UserTweetsResultV1.js +58 -0
  975. package/dist/models/UserTweetsResultV1.js.map +1 -0
  976. package/dist/models/UserTweetsResultV2.d.ts +41 -0
  977. package/dist/models/UserTweetsResultV2.d.ts.map +1 -0
  978. package/dist/models/UserTweetsResultV2.js +58 -0
  979. package/dist/models/UserTweetsResultV2.js.map +1 -0
  980. package/dist/models/UserTweetsUser.d.ts +33 -33
  981. package/dist/models/UserTweetsUser.d.ts.map +1 -1
  982. package/dist/models/UserTweetsUser.js +52 -53
  983. package/dist/models/UserTweetsUser.js.map +1 -1
  984. package/dist/models/UserUnavailable.d.ts +45 -45
  985. package/dist/models/UserUnavailable.js +58 -59
  986. package/dist/models/UserUnavailable.js.map +1 -1
  987. package/dist/models/UserUnion.d.ts +27 -27
  988. package/dist/models/UserUnion.js +54 -55
  989. package/dist/models/UserUnion.js.map +1 -1
  990. package/dist/models/UserValue.d.ts +32 -32
  991. package/dist/models/UserValue.js +51 -52
  992. package/dist/models/UserValue.js.map +1 -1
  993. package/dist/models/UserVerificationInfo.d.ts +39 -39
  994. package/dist/models/UserVerificationInfo.js +54 -55
  995. package/dist/models/UserVerificationInfo.js.map +1 -1
  996. package/dist/models/UserVerificationInfoReason.d.ts +45 -45
  997. package/dist/models/UserVerificationInfoReason.js +58 -59
  998. package/dist/models/UserVerificationInfoReason.js.map +1 -1
  999. package/dist/models/UserVerificationInfoReasonDescription.d.ts +39 -39
  1000. package/dist/models/UserVerificationInfoReasonDescription.js +56 -57
  1001. package/dist/models/UserVerificationInfoReasonDescription.js.map +1 -1
  1002. package/dist/models/UserVerificationInfoReasonDescriptionEntities.d.ts +45 -45
  1003. package/dist/models/UserVerificationInfoReasonDescriptionEntities.js +60 -61
  1004. package/dist/models/UserVerificationInfoReasonDescriptionEntities.js.map +1 -1
  1005. package/dist/models/UserVerificationInfoReasonDescriptionEntitiesRef.d.ts +45 -45
  1006. package/dist/models/UserVerificationInfoReasonDescriptionEntitiesRef.js +62 -62
  1007. package/dist/models/UserVerificationInfoReasonDescriptionEntitiesRef.js.map +1 -1
  1008. package/dist/models/UsersResponse.d.ts +40 -40
  1009. package/dist/models/UsersResponse.js +55 -56
  1010. package/dist/models/UsersResponse.js.map +1 -1
  1011. package/dist/models/UsersResponseData.d.ts +33 -33
  1012. package/dist/models/UsersResponseData.js +50 -51
  1013. package/dist/models/UsersResponseData.js.map +1 -1
  1014. package/dist/models/index.d.ts +310 -286
  1015. package/dist/models/index.d.ts.map +1 -1
  1016. package/dist/models/index.js +328 -304
  1017. package/dist/models/index.js.map +1 -1
  1018. package/dist/runtime.d.ts +182 -182
  1019. package/dist/runtime.js +562 -562
  1020. package/dist/runtime.js.map +1 -1
  1021. package/package.json +1 -1
  1022. package/dist/models/ListTweetsTimeline.d.ts +0 -34
  1023. package/dist/models/ListTweetsTimeline.d.ts.map +0 -1
  1024. package/dist/models/ListTweetsTimeline.js +0 -52
  1025. package/dist/models/ListTweetsTimeline.js.map +0 -1
  1026. package/dist/models/TimelineV2.d.ts +0 -34
  1027. package/dist/models/TimelineV2.d.ts.map +0 -1
  1028. package/dist/models/TimelineV2.js.map +0 -1
  1029. package/dist/models/UserTweetsResult.d.ts +0 -41
  1030. package/dist/models/UserTweetsResult.d.ts.map +0 -1
  1031. package/dist/models/UserTweetsResult.js +0 -59
  1032. package/dist/models/UserTweetsResult.js.map +0 -1
@@ -1,1166 +1,1166 @@
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.UserListApi = void 0;
68
- var runtime = require("../runtime");
69
- var index_1 = require("../models/index");
70
- /**
71
- *
72
- */
73
- var UserListApi = /** @class */ (function (_super) {
74
- __extends(UserListApi, _super);
75
- function UserListApi() {
76
- return _super !== null && _super.apply(this, arguments) || this;
77
- }
78
- /**
79
- * get tweet favoriters
80
- */
81
- UserListApi.prototype.getFavoritersRaw = function (requestParameters, initOverrides) {
82
- return __awaiter(this, void 0, void 0, function () {
83
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, response;
84
- return __generator(this, function (_14) {
85
- switch (_14.label) {
86
- case 0:
87
- if (requestParameters['pathQueryId'] == null) {
88
- throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getFavoriters().');
89
- }
90
- if (requestParameters['variables'] == null) {
91
- throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getFavoriters().');
92
- }
93
- if (requestParameters['features'] == null) {
94
- throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getFavoriters().');
95
- }
96
- queryParameters = {};
97
- if (requestParameters['variables'] != null) {
98
- queryParameters['variables'] = requestParameters['variables'];
99
- }
100
- if (requestParameters['features'] != null) {
101
- queryParameters['features'] = requestParameters['features'];
102
- }
103
- headerParameters = {};
104
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
105
- _a = headerParameters;
106
- _b = "Accept";
107
- return [4 /*yield*/, this.configuration.apiKey("Accept")];
108
- case 1:
109
- _a[_b] = _14.sent(); // Accept authentication
110
- _14.label = 2;
111
- case 2:
112
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
113
- _c = headerParameters;
114
- _d = "x-twitter-client-language";
115
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
116
- case 3:
117
- _c[_d] = _14.sent(); // ClientLanguage authentication
118
- _14.label = 4;
119
- case 4:
120
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
121
- _e = headerParameters;
122
- _f = "Priority";
123
- return [4 /*yield*/, this.configuration.apiKey("Priority")];
124
- case 5:
125
- _e[_f] = _14.sent(); // Priority authentication
126
- _14.label = 6;
127
- case 6:
128
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
129
- _g = headerParameters;
130
- _h = "Referer";
131
- return [4 /*yield*/, this.configuration.apiKey("Referer")];
132
- case 7:
133
- _g[_h] = _14.sent(); // Referer authentication
134
- _14.label = 8;
135
- case 8:
136
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
137
- _j = headerParameters;
138
- _k = "Sec-Fetch-Dest";
139
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
140
- case 9:
141
- _j[_k] = _14.sent(); // SecFetchDest authentication
142
- _14.label = 10;
143
- case 10:
144
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
145
- _l = headerParameters;
146
- _m = "Sec-Ch-Ua-Platform";
147
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
148
- case 11:
149
- _l[_m] = _14.sent(); // SecChUaPlatform authentication
150
- _14.label = 12;
151
- case 12:
152
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
153
- _o = headerParameters;
154
- _p = "Sec-Fetch-Mode";
155
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
156
- case 13:
157
- _o[_p] = _14.sent(); // SecFetchMode authentication
158
- _14.label = 14;
159
- case 14:
160
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
161
- _q = headerParameters;
162
- _r = "x-csrf-token";
163
- return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
164
- case 15:
165
- _q[_r] = _14.sent(); // CsrfToken authentication
166
- _14.label = 16;
167
- case 16:
168
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
169
- _s = headerParameters;
170
- _t = "x-client-uuid";
171
- return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
172
- case 17:
173
- _s[_t] = _14.sent(); // ClientUuid authentication
174
- _14.label = 18;
175
- case 18:
176
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
177
- token = this.configuration.accessToken;
178
- return [4 /*yield*/, token("BearerAuth", [])];
179
- case 19:
180
- tokenString = _14.sent();
181
- if (tokenString) {
182
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
183
- }
184
- _14.label = 20;
185
- case 20:
186
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
187
- _u = headerParameters;
188
- _v = "x-guest-token";
189
- return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
190
- case 21:
191
- _u[_v] = _14.sent(); // GuestToken authentication
192
- _14.label = 22;
193
- case 22:
194
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
195
- _w = headerParameters;
196
- _x = "Sec-Ch-Ua";
197
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
198
- case 23:
199
- _w[_x] = _14.sent(); // SecChUa authentication
200
- _14.label = 24;
201
- case 24:
202
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
203
- _y = headerParameters;
204
- _z = "x-client-transaction-id";
205
- return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
206
- case 25:
207
- _y[_z] = _14.sent(); // ClientTransactionId authentication
208
- _14.label = 26;
209
- case 26:
210
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
211
- _0 = headerParameters;
212
- _1 = "x-twitter-active-user";
213
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
214
- case 27:
215
- _0[_1] = _14.sent(); // ActiveUser authentication
216
- _14.label = 28;
217
- case 28:
218
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
219
- _2 = headerParameters;
220
- _3 = "user-agent";
221
- return [4 /*yield*/, this.configuration.apiKey("user-agent")];
222
- case 29:
223
- _2[_3] = _14.sent(); // UserAgent authentication
224
- _14.label = 30;
225
- case 30:
226
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
227
- _4 = headerParameters;
228
- _5 = "Accept-Language";
229
- return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
230
- case 31:
231
- _4[_5] = _14.sent(); // AcceptLanguage authentication
232
- _14.label = 32;
233
- case 32:
234
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
235
- _6 = headerParameters;
236
- _7 = "Sec-Fetch-Site";
237
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
238
- case 33:
239
- _6[_7] = _14.sent(); // SecFetchSite authentication
240
- _14.label = 34;
241
- case 34:
242
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
243
- _8 = headerParameters;
244
- _9 = "x-twitter-auth-type";
245
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
246
- case 35:
247
- _8[_9] = _14.sent(); // AuthType authentication
248
- _14.label = 36;
249
- case 36:
250
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
251
- _10 = headerParameters;
252
- _11 = "Sec-Ch-Ua-Mobile";
253
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
254
- case 37:
255
- _10[_11] = _14.sent(); // SecChUaMobile authentication
256
- _14.label = 38;
257
- case 38:
258
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 40];
259
- _12 = headerParameters;
260
- _13 = "Accept-Encoding";
261
- return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
262
- case 39:
263
- _12[_13] = _14.sent(); // AcceptEncoding authentication
264
- _14.label = 40;
265
- case 40: return [4 /*yield*/, this.request({
266
- path: "/graphql/{pathQueryId}/Favoriters".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
267
- method: 'GET',
268
- headers: headerParameters,
269
- query: queryParameters,
270
- }, initOverrides)];
271
- case 41:
272
- response = _14.sent();
273
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.TweetFavoritersResponseFromJSON)(jsonValue); })];
274
- }
275
- });
276
- });
277
- };
278
- /**
279
- * get tweet favoriters
280
- */
281
- UserListApi.prototype.getFavoriters = function (requestParameters, initOverrides) {
282
- return __awaiter(this, void 0, void 0, function () {
283
- var response;
284
- return __generator(this, function (_a) {
285
- switch (_a.label) {
286
- case 0: return [4 /*yield*/, this.getFavoritersRaw(requestParameters, initOverrides)];
287
- case 1:
288
- response = _a.sent();
289
- return [4 /*yield*/, response.value()];
290
- case 2: return [2 /*return*/, _a.sent()];
291
- }
292
- });
293
- });
294
- };
295
- /**
296
- * get user list of followers
297
- */
298
- UserListApi.prototype.getFollowersRaw = function (requestParameters, initOverrides) {
299
- return __awaiter(this, void 0, void 0, function () {
300
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, response;
301
- return __generator(this, function (_14) {
302
- switch (_14.label) {
303
- case 0:
304
- if (requestParameters['pathQueryId'] == null) {
305
- throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getFollowers().');
306
- }
307
- if (requestParameters['variables'] == null) {
308
- throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getFollowers().');
309
- }
310
- if (requestParameters['features'] == null) {
311
- throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getFollowers().');
312
- }
313
- queryParameters = {};
314
- if (requestParameters['variables'] != null) {
315
- queryParameters['variables'] = requestParameters['variables'];
316
- }
317
- if (requestParameters['features'] != null) {
318
- queryParameters['features'] = requestParameters['features'];
319
- }
320
- headerParameters = {};
321
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
322
- _a = headerParameters;
323
- _b = "Accept";
324
- return [4 /*yield*/, this.configuration.apiKey("Accept")];
325
- case 1:
326
- _a[_b] = _14.sent(); // Accept authentication
327
- _14.label = 2;
328
- case 2:
329
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
330
- _c = headerParameters;
331
- _d = "x-twitter-client-language";
332
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
333
- case 3:
334
- _c[_d] = _14.sent(); // ClientLanguage authentication
335
- _14.label = 4;
336
- case 4:
337
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
338
- _e = headerParameters;
339
- _f = "Priority";
340
- return [4 /*yield*/, this.configuration.apiKey("Priority")];
341
- case 5:
342
- _e[_f] = _14.sent(); // Priority authentication
343
- _14.label = 6;
344
- case 6:
345
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
346
- _g = headerParameters;
347
- _h = "Referer";
348
- return [4 /*yield*/, this.configuration.apiKey("Referer")];
349
- case 7:
350
- _g[_h] = _14.sent(); // Referer authentication
351
- _14.label = 8;
352
- case 8:
353
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
354
- _j = headerParameters;
355
- _k = "Sec-Fetch-Dest";
356
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
357
- case 9:
358
- _j[_k] = _14.sent(); // SecFetchDest authentication
359
- _14.label = 10;
360
- case 10:
361
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
362
- _l = headerParameters;
363
- _m = "Sec-Ch-Ua-Platform";
364
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
365
- case 11:
366
- _l[_m] = _14.sent(); // SecChUaPlatform authentication
367
- _14.label = 12;
368
- case 12:
369
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
370
- _o = headerParameters;
371
- _p = "Sec-Fetch-Mode";
372
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
373
- case 13:
374
- _o[_p] = _14.sent(); // SecFetchMode authentication
375
- _14.label = 14;
376
- case 14:
377
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
378
- _q = headerParameters;
379
- _r = "x-csrf-token";
380
- return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
381
- case 15:
382
- _q[_r] = _14.sent(); // CsrfToken authentication
383
- _14.label = 16;
384
- case 16:
385
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
386
- _s = headerParameters;
387
- _t = "x-client-uuid";
388
- return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
389
- case 17:
390
- _s[_t] = _14.sent(); // ClientUuid authentication
391
- _14.label = 18;
392
- case 18:
393
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
394
- token = this.configuration.accessToken;
395
- return [4 /*yield*/, token("BearerAuth", [])];
396
- case 19:
397
- tokenString = _14.sent();
398
- if (tokenString) {
399
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
400
- }
401
- _14.label = 20;
402
- case 20:
403
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
404
- _u = headerParameters;
405
- _v = "x-guest-token";
406
- return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
407
- case 21:
408
- _u[_v] = _14.sent(); // GuestToken authentication
409
- _14.label = 22;
410
- case 22:
411
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
412
- _w = headerParameters;
413
- _x = "Sec-Ch-Ua";
414
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
415
- case 23:
416
- _w[_x] = _14.sent(); // SecChUa authentication
417
- _14.label = 24;
418
- case 24:
419
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
420
- _y = headerParameters;
421
- _z = "x-client-transaction-id";
422
- return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
423
- case 25:
424
- _y[_z] = _14.sent(); // ClientTransactionId authentication
425
- _14.label = 26;
426
- case 26:
427
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
428
- _0 = headerParameters;
429
- _1 = "x-twitter-active-user";
430
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
431
- case 27:
432
- _0[_1] = _14.sent(); // ActiveUser authentication
433
- _14.label = 28;
434
- case 28:
435
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
436
- _2 = headerParameters;
437
- _3 = "user-agent";
438
- return [4 /*yield*/, this.configuration.apiKey("user-agent")];
439
- case 29:
440
- _2[_3] = _14.sent(); // UserAgent authentication
441
- _14.label = 30;
442
- case 30:
443
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
444
- _4 = headerParameters;
445
- _5 = "Accept-Language";
446
- return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
447
- case 31:
448
- _4[_5] = _14.sent(); // AcceptLanguage authentication
449
- _14.label = 32;
450
- case 32:
451
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
452
- _6 = headerParameters;
453
- _7 = "Sec-Fetch-Site";
454
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
455
- case 33:
456
- _6[_7] = _14.sent(); // SecFetchSite authentication
457
- _14.label = 34;
458
- case 34:
459
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
460
- _8 = headerParameters;
461
- _9 = "x-twitter-auth-type";
462
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
463
- case 35:
464
- _8[_9] = _14.sent(); // AuthType authentication
465
- _14.label = 36;
466
- case 36:
467
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
468
- _10 = headerParameters;
469
- _11 = "Sec-Ch-Ua-Mobile";
470
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
471
- case 37:
472
- _10[_11] = _14.sent(); // SecChUaMobile authentication
473
- _14.label = 38;
474
- case 38:
475
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 40];
476
- _12 = headerParameters;
477
- _13 = "Accept-Encoding";
478
- return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
479
- case 39:
480
- _12[_13] = _14.sent(); // AcceptEncoding authentication
481
- _14.label = 40;
482
- case 40: return [4 /*yield*/, this.request({
483
- path: "/graphql/{pathQueryId}/Followers".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
484
- method: 'GET',
485
- headers: headerParameters,
486
- query: queryParameters,
487
- }, initOverrides)];
488
- case 41:
489
- response = _14.sent();
490
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.FollowResponseFromJSON)(jsonValue); })];
491
- }
492
- });
493
- });
494
- };
495
- /**
496
- * get user list of followers
497
- */
498
- UserListApi.prototype.getFollowers = function (requestParameters, initOverrides) {
499
- return __awaiter(this, void 0, void 0, function () {
500
- var response;
501
- return __generator(this, function (_a) {
502
- switch (_a.label) {
503
- case 0: return [4 /*yield*/, this.getFollowersRaw(requestParameters, initOverrides)];
504
- case 1:
505
- response = _a.sent();
506
- return [4 /*yield*/, response.value()];
507
- case 2: return [2 /*return*/, _a.sent()];
508
- }
509
- });
510
- });
511
- };
512
- /**
513
- * get followers you know
514
- */
515
- UserListApi.prototype.getFollowersYouKnowRaw = function (requestParameters, initOverrides) {
516
- return __awaiter(this, void 0, void 0, function () {
517
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, response;
518
- return __generator(this, function (_14) {
519
- switch (_14.label) {
520
- case 0:
521
- if (requestParameters['pathQueryId'] == null) {
522
- throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getFollowersYouKnow().');
523
- }
524
- if (requestParameters['variables'] == null) {
525
- throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getFollowersYouKnow().');
526
- }
527
- if (requestParameters['features'] == null) {
528
- throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getFollowersYouKnow().');
529
- }
530
- queryParameters = {};
531
- if (requestParameters['variables'] != null) {
532
- queryParameters['variables'] = requestParameters['variables'];
533
- }
534
- if (requestParameters['features'] != null) {
535
- queryParameters['features'] = requestParameters['features'];
536
- }
537
- headerParameters = {};
538
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
539
- _a = headerParameters;
540
- _b = "Accept";
541
- return [4 /*yield*/, this.configuration.apiKey("Accept")];
542
- case 1:
543
- _a[_b] = _14.sent(); // Accept authentication
544
- _14.label = 2;
545
- case 2:
546
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
547
- _c = headerParameters;
548
- _d = "x-twitter-client-language";
549
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
550
- case 3:
551
- _c[_d] = _14.sent(); // ClientLanguage authentication
552
- _14.label = 4;
553
- case 4:
554
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
555
- _e = headerParameters;
556
- _f = "Priority";
557
- return [4 /*yield*/, this.configuration.apiKey("Priority")];
558
- case 5:
559
- _e[_f] = _14.sent(); // Priority authentication
560
- _14.label = 6;
561
- case 6:
562
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
563
- _g = headerParameters;
564
- _h = "Referer";
565
- return [4 /*yield*/, this.configuration.apiKey("Referer")];
566
- case 7:
567
- _g[_h] = _14.sent(); // Referer authentication
568
- _14.label = 8;
569
- case 8:
570
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
571
- _j = headerParameters;
572
- _k = "Sec-Fetch-Dest";
573
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
574
- case 9:
575
- _j[_k] = _14.sent(); // SecFetchDest authentication
576
- _14.label = 10;
577
- case 10:
578
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
579
- _l = headerParameters;
580
- _m = "Sec-Ch-Ua-Platform";
581
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
582
- case 11:
583
- _l[_m] = _14.sent(); // SecChUaPlatform authentication
584
- _14.label = 12;
585
- case 12:
586
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
587
- _o = headerParameters;
588
- _p = "Sec-Fetch-Mode";
589
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
590
- case 13:
591
- _o[_p] = _14.sent(); // SecFetchMode authentication
592
- _14.label = 14;
593
- case 14:
594
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
595
- _q = headerParameters;
596
- _r = "x-csrf-token";
597
- return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
598
- case 15:
599
- _q[_r] = _14.sent(); // CsrfToken authentication
600
- _14.label = 16;
601
- case 16:
602
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
603
- _s = headerParameters;
604
- _t = "x-client-uuid";
605
- return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
606
- case 17:
607
- _s[_t] = _14.sent(); // ClientUuid authentication
608
- _14.label = 18;
609
- case 18:
610
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
611
- token = this.configuration.accessToken;
612
- return [4 /*yield*/, token("BearerAuth", [])];
613
- case 19:
614
- tokenString = _14.sent();
615
- if (tokenString) {
616
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
617
- }
618
- _14.label = 20;
619
- case 20:
620
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
621
- _u = headerParameters;
622
- _v = "x-guest-token";
623
- return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
624
- case 21:
625
- _u[_v] = _14.sent(); // GuestToken authentication
626
- _14.label = 22;
627
- case 22:
628
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
629
- _w = headerParameters;
630
- _x = "Sec-Ch-Ua";
631
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
632
- case 23:
633
- _w[_x] = _14.sent(); // SecChUa authentication
634
- _14.label = 24;
635
- case 24:
636
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
637
- _y = headerParameters;
638
- _z = "x-client-transaction-id";
639
- return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
640
- case 25:
641
- _y[_z] = _14.sent(); // ClientTransactionId authentication
642
- _14.label = 26;
643
- case 26:
644
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
645
- _0 = headerParameters;
646
- _1 = "x-twitter-active-user";
647
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
648
- case 27:
649
- _0[_1] = _14.sent(); // ActiveUser authentication
650
- _14.label = 28;
651
- case 28:
652
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
653
- _2 = headerParameters;
654
- _3 = "user-agent";
655
- return [4 /*yield*/, this.configuration.apiKey("user-agent")];
656
- case 29:
657
- _2[_3] = _14.sent(); // UserAgent authentication
658
- _14.label = 30;
659
- case 30:
660
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
661
- _4 = headerParameters;
662
- _5 = "Accept-Language";
663
- return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
664
- case 31:
665
- _4[_5] = _14.sent(); // AcceptLanguage authentication
666
- _14.label = 32;
667
- case 32:
668
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
669
- _6 = headerParameters;
670
- _7 = "Sec-Fetch-Site";
671
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
672
- case 33:
673
- _6[_7] = _14.sent(); // SecFetchSite authentication
674
- _14.label = 34;
675
- case 34:
676
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
677
- _8 = headerParameters;
678
- _9 = "x-twitter-auth-type";
679
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
680
- case 35:
681
- _8[_9] = _14.sent(); // AuthType authentication
682
- _14.label = 36;
683
- case 36:
684
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
685
- _10 = headerParameters;
686
- _11 = "Sec-Ch-Ua-Mobile";
687
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
688
- case 37:
689
- _10[_11] = _14.sent(); // SecChUaMobile authentication
690
- _14.label = 38;
691
- case 38:
692
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 40];
693
- _12 = headerParameters;
694
- _13 = "Accept-Encoding";
695
- return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
696
- case 39:
697
- _12[_13] = _14.sent(); // AcceptEncoding authentication
698
- _14.label = 40;
699
- case 40: return [4 /*yield*/, this.request({
700
- path: "/graphql/{pathQueryId}/FollowersYouKnow".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
701
- method: 'GET',
702
- headers: headerParameters,
703
- query: queryParameters,
704
- }, initOverrides)];
705
- case 41:
706
- response = _14.sent();
707
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.FollowResponseFromJSON)(jsonValue); })];
708
- }
709
- });
710
- });
711
- };
712
- /**
713
- * get followers you know
714
- */
715
- UserListApi.prototype.getFollowersYouKnow = function (requestParameters, initOverrides) {
716
- return __awaiter(this, void 0, void 0, function () {
717
- var response;
718
- return __generator(this, function (_a) {
719
- switch (_a.label) {
720
- case 0: return [4 /*yield*/, this.getFollowersYouKnowRaw(requestParameters, initOverrides)];
721
- case 1:
722
- response = _a.sent();
723
- return [4 /*yield*/, response.value()];
724
- case 2: return [2 /*return*/, _a.sent()];
725
- }
726
- });
727
- });
728
- };
729
- /**
730
- * get user list of following
731
- */
732
- UserListApi.prototype.getFollowingRaw = function (requestParameters, initOverrides) {
733
- return __awaiter(this, void 0, void 0, function () {
734
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, response;
735
- return __generator(this, function (_14) {
736
- switch (_14.label) {
737
- case 0:
738
- if (requestParameters['pathQueryId'] == null) {
739
- throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getFollowing().');
740
- }
741
- if (requestParameters['variables'] == null) {
742
- throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getFollowing().');
743
- }
744
- if (requestParameters['features'] == null) {
745
- throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getFollowing().');
746
- }
747
- queryParameters = {};
748
- if (requestParameters['variables'] != null) {
749
- queryParameters['variables'] = requestParameters['variables'];
750
- }
751
- if (requestParameters['features'] != null) {
752
- queryParameters['features'] = requestParameters['features'];
753
- }
754
- headerParameters = {};
755
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
756
- _a = headerParameters;
757
- _b = "Accept";
758
- return [4 /*yield*/, this.configuration.apiKey("Accept")];
759
- case 1:
760
- _a[_b] = _14.sent(); // Accept authentication
761
- _14.label = 2;
762
- case 2:
763
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
764
- _c = headerParameters;
765
- _d = "x-twitter-client-language";
766
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
767
- case 3:
768
- _c[_d] = _14.sent(); // ClientLanguage authentication
769
- _14.label = 4;
770
- case 4:
771
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
772
- _e = headerParameters;
773
- _f = "Priority";
774
- return [4 /*yield*/, this.configuration.apiKey("Priority")];
775
- case 5:
776
- _e[_f] = _14.sent(); // Priority authentication
777
- _14.label = 6;
778
- case 6:
779
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
780
- _g = headerParameters;
781
- _h = "Referer";
782
- return [4 /*yield*/, this.configuration.apiKey("Referer")];
783
- case 7:
784
- _g[_h] = _14.sent(); // Referer authentication
785
- _14.label = 8;
786
- case 8:
787
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
788
- _j = headerParameters;
789
- _k = "Sec-Fetch-Dest";
790
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
791
- case 9:
792
- _j[_k] = _14.sent(); // SecFetchDest authentication
793
- _14.label = 10;
794
- case 10:
795
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
796
- _l = headerParameters;
797
- _m = "Sec-Ch-Ua-Platform";
798
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
799
- case 11:
800
- _l[_m] = _14.sent(); // SecChUaPlatform authentication
801
- _14.label = 12;
802
- case 12:
803
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
804
- _o = headerParameters;
805
- _p = "Sec-Fetch-Mode";
806
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
807
- case 13:
808
- _o[_p] = _14.sent(); // SecFetchMode authentication
809
- _14.label = 14;
810
- case 14:
811
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
812
- _q = headerParameters;
813
- _r = "x-csrf-token";
814
- return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
815
- case 15:
816
- _q[_r] = _14.sent(); // CsrfToken authentication
817
- _14.label = 16;
818
- case 16:
819
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
820
- _s = headerParameters;
821
- _t = "x-client-uuid";
822
- return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
823
- case 17:
824
- _s[_t] = _14.sent(); // ClientUuid authentication
825
- _14.label = 18;
826
- case 18:
827
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
828
- token = this.configuration.accessToken;
829
- return [4 /*yield*/, token("BearerAuth", [])];
830
- case 19:
831
- tokenString = _14.sent();
832
- if (tokenString) {
833
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
834
- }
835
- _14.label = 20;
836
- case 20:
837
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
838
- _u = headerParameters;
839
- _v = "x-guest-token";
840
- return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
841
- case 21:
842
- _u[_v] = _14.sent(); // GuestToken authentication
843
- _14.label = 22;
844
- case 22:
845
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
846
- _w = headerParameters;
847
- _x = "Sec-Ch-Ua";
848
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
849
- case 23:
850
- _w[_x] = _14.sent(); // SecChUa authentication
851
- _14.label = 24;
852
- case 24:
853
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
854
- _y = headerParameters;
855
- _z = "x-client-transaction-id";
856
- return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
857
- case 25:
858
- _y[_z] = _14.sent(); // ClientTransactionId authentication
859
- _14.label = 26;
860
- case 26:
861
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
862
- _0 = headerParameters;
863
- _1 = "x-twitter-active-user";
864
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
865
- case 27:
866
- _0[_1] = _14.sent(); // ActiveUser authentication
867
- _14.label = 28;
868
- case 28:
869
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
870
- _2 = headerParameters;
871
- _3 = "user-agent";
872
- return [4 /*yield*/, this.configuration.apiKey("user-agent")];
873
- case 29:
874
- _2[_3] = _14.sent(); // UserAgent authentication
875
- _14.label = 30;
876
- case 30:
877
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
878
- _4 = headerParameters;
879
- _5 = "Accept-Language";
880
- return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
881
- case 31:
882
- _4[_5] = _14.sent(); // AcceptLanguage authentication
883
- _14.label = 32;
884
- case 32:
885
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
886
- _6 = headerParameters;
887
- _7 = "Sec-Fetch-Site";
888
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
889
- case 33:
890
- _6[_7] = _14.sent(); // SecFetchSite authentication
891
- _14.label = 34;
892
- case 34:
893
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
894
- _8 = headerParameters;
895
- _9 = "x-twitter-auth-type";
896
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
897
- case 35:
898
- _8[_9] = _14.sent(); // AuthType authentication
899
- _14.label = 36;
900
- case 36:
901
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
902
- _10 = headerParameters;
903
- _11 = "Sec-Ch-Ua-Mobile";
904
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
905
- case 37:
906
- _10[_11] = _14.sent(); // SecChUaMobile authentication
907
- _14.label = 38;
908
- case 38:
909
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 40];
910
- _12 = headerParameters;
911
- _13 = "Accept-Encoding";
912
- return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
913
- case 39:
914
- _12[_13] = _14.sent(); // AcceptEncoding authentication
915
- _14.label = 40;
916
- case 40: return [4 /*yield*/, this.request({
917
- path: "/graphql/{pathQueryId}/Following".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
918
- method: 'GET',
919
- headers: headerParameters,
920
- query: queryParameters,
921
- }, initOverrides)];
922
- case 41:
923
- response = _14.sent();
924
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.FollowResponseFromJSON)(jsonValue); })];
925
- }
926
- });
927
- });
928
- };
929
- /**
930
- * get user list of following
931
- */
932
- UserListApi.prototype.getFollowing = function (requestParameters, initOverrides) {
933
- return __awaiter(this, void 0, void 0, function () {
934
- var response;
935
- return __generator(this, function (_a) {
936
- switch (_a.label) {
937
- case 0: return [4 /*yield*/, this.getFollowingRaw(requestParameters, initOverrides)];
938
- case 1:
939
- response = _a.sent();
940
- return [4 /*yield*/, response.value()];
941
- case 2: return [2 /*return*/, _a.sent()];
942
- }
943
- });
944
- });
945
- };
946
- /**
947
- * get tweet retweeters
948
- */
949
- UserListApi.prototype.getRetweetersRaw = function (requestParameters, initOverrides) {
950
- return __awaiter(this, void 0, void 0, function () {
951
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, response;
952
- return __generator(this, function (_14) {
953
- switch (_14.label) {
954
- case 0:
955
- if (requestParameters['pathQueryId'] == null) {
956
- throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getRetweeters().');
957
- }
958
- if (requestParameters['variables'] == null) {
959
- throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getRetweeters().');
960
- }
961
- if (requestParameters['features'] == null) {
962
- throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getRetweeters().');
963
- }
964
- queryParameters = {};
965
- if (requestParameters['variables'] != null) {
966
- queryParameters['variables'] = requestParameters['variables'];
967
- }
968
- if (requestParameters['features'] != null) {
969
- queryParameters['features'] = requestParameters['features'];
970
- }
971
- headerParameters = {};
972
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
973
- _a = headerParameters;
974
- _b = "Accept";
975
- return [4 /*yield*/, this.configuration.apiKey("Accept")];
976
- case 1:
977
- _a[_b] = _14.sent(); // Accept authentication
978
- _14.label = 2;
979
- case 2:
980
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
981
- _c = headerParameters;
982
- _d = "x-twitter-client-language";
983
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
984
- case 3:
985
- _c[_d] = _14.sent(); // ClientLanguage authentication
986
- _14.label = 4;
987
- case 4:
988
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
989
- _e = headerParameters;
990
- _f = "Priority";
991
- return [4 /*yield*/, this.configuration.apiKey("Priority")];
992
- case 5:
993
- _e[_f] = _14.sent(); // Priority authentication
994
- _14.label = 6;
995
- case 6:
996
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
997
- _g = headerParameters;
998
- _h = "Referer";
999
- return [4 /*yield*/, this.configuration.apiKey("Referer")];
1000
- case 7:
1001
- _g[_h] = _14.sent(); // Referer authentication
1002
- _14.label = 8;
1003
- case 8:
1004
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
1005
- _j = headerParameters;
1006
- _k = "Sec-Fetch-Dest";
1007
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
1008
- case 9:
1009
- _j[_k] = _14.sent(); // SecFetchDest authentication
1010
- _14.label = 10;
1011
- case 10:
1012
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
1013
- _l = headerParameters;
1014
- _m = "Sec-Ch-Ua-Platform";
1015
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
1016
- case 11:
1017
- _l[_m] = _14.sent(); // SecChUaPlatform authentication
1018
- _14.label = 12;
1019
- case 12:
1020
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
1021
- _o = headerParameters;
1022
- _p = "Sec-Fetch-Mode";
1023
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
1024
- case 13:
1025
- _o[_p] = _14.sent(); // SecFetchMode authentication
1026
- _14.label = 14;
1027
- case 14:
1028
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
1029
- _q = headerParameters;
1030
- _r = "x-csrf-token";
1031
- return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
1032
- case 15:
1033
- _q[_r] = _14.sent(); // CsrfToken authentication
1034
- _14.label = 16;
1035
- case 16:
1036
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
1037
- _s = headerParameters;
1038
- _t = "x-client-uuid";
1039
- return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
1040
- case 17:
1041
- _s[_t] = _14.sent(); // ClientUuid authentication
1042
- _14.label = 18;
1043
- case 18:
1044
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
1045
- token = this.configuration.accessToken;
1046
- return [4 /*yield*/, token("BearerAuth", [])];
1047
- case 19:
1048
- tokenString = _14.sent();
1049
- if (tokenString) {
1050
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
1051
- }
1052
- _14.label = 20;
1053
- case 20:
1054
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
1055
- _u = headerParameters;
1056
- _v = "x-guest-token";
1057
- return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
1058
- case 21:
1059
- _u[_v] = _14.sent(); // GuestToken authentication
1060
- _14.label = 22;
1061
- case 22:
1062
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
1063
- _w = headerParameters;
1064
- _x = "Sec-Ch-Ua";
1065
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
1066
- case 23:
1067
- _w[_x] = _14.sent(); // SecChUa authentication
1068
- _14.label = 24;
1069
- case 24:
1070
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
1071
- _y = headerParameters;
1072
- _z = "x-client-transaction-id";
1073
- return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
1074
- case 25:
1075
- _y[_z] = _14.sent(); // ClientTransactionId authentication
1076
- _14.label = 26;
1077
- case 26:
1078
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
1079
- _0 = headerParameters;
1080
- _1 = "x-twitter-active-user";
1081
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
1082
- case 27:
1083
- _0[_1] = _14.sent(); // ActiveUser authentication
1084
- _14.label = 28;
1085
- case 28:
1086
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
1087
- _2 = headerParameters;
1088
- _3 = "user-agent";
1089
- return [4 /*yield*/, this.configuration.apiKey("user-agent")];
1090
- case 29:
1091
- _2[_3] = _14.sent(); // UserAgent authentication
1092
- _14.label = 30;
1093
- case 30:
1094
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
1095
- _4 = headerParameters;
1096
- _5 = "Accept-Language";
1097
- return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
1098
- case 31:
1099
- _4[_5] = _14.sent(); // AcceptLanguage authentication
1100
- _14.label = 32;
1101
- case 32:
1102
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
1103
- _6 = headerParameters;
1104
- _7 = "Sec-Fetch-Site";
1105
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
1106
- case 33:
1107
- _6[_7] = _14.sent(); // SecFetchSite authentication
1108
- _14.label = 34;
1109
- case 34:
1110
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
1111
- _8 = headerParameters;
1112
- _9 = "x-twitter-auth-type";
1113
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
1114
- case 35:
1115
- _8[_9] = _14.sent(); // AuthType authentication
1116
- _14.label = 36;
1117
- case 36:
1118
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
1119
- _10 = headerParameters;
1120
- _11 = "Sec-Ch-Ua-Mobile";
1121
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
1122
- case 37:
1123
- _10[_11] = _14.sent(); // SecChUaMobile authentication
1124
- _14.label = 38;
1125
- case 38:
1126
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 40];
1127
- _12 = headerParameters;
1128
- _13 = "Accept-Encoding";
1129
- return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
1130
- case 39:
1131
- _12[_13] = _14.sent(); // AcceptEncoding authentication
1132
- _14.label = 40;
1133
- case 40: return [4 /*yield*/, this.request({
1134
- path: "/graphql/{pathQueryId}/Retweeters".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
1135
- method: 'GET',
1136
- headers: headerParameters,
1137
- query: queryParameters,
1138
- }, initOverrides)];
1139
- case 41:
1140
- response = _14.sent();
1141
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.TweetRetweetersResponseFromJSON)(jsonValue); })];
1142
- }
1143
- });
1144
- });
1145
- };
1146
- /**
1147
- * get tweet retweeters
1148
- */
1149
- UserListApi.prototype.getRetweeters = function (requestParameters, initOverrides) {
1150
- return __awaiter(this, void 0, void 0, function () {
1151
- var response;
1152
- return __generator(this, function (_a) {
1153
- switch (_a.label) {
1154
- case 0: return [4 /*yield*/, this.getRetweetersRaw(requestParameters, initOverrides)];
1155
- case 1:
1156
- response = _a.sent();
1157
- return [4 /*yield*/, response.value()];
1158
- case 2: return [2 /*return*/, _a.sent()];
1159
- }
1160
- });
1161
- });
1162
- };
1163
- return UserListApi;
1164
- }(runtime.BaseAPI));
1165
- exports.UserListApi = UserListApi;
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 = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
41
+ return g.next = verb(0), g["throw"] = verb(1), g["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.UserListApi = void 0;
68
+ var runtime = require("../runtime");
69
+ var index_1 = require("../models/index");
70
+ /**
71
+ *
72
+ */
73
+ var UserListApi = /** @class */ (function (_super) {
74
+ __extends(UserListApi, _super);
75
+ function UserListApi() {
76
+ return _super !== null && _super.apply(this, arguments) || this;
77
+ }
78
+ /**
79
+ * get tweet favoriters
80
+ */
81
+ UserListApi.prototype.getFavoritersRaw = function (requestParameters, initOverrides) {
82
+ return __awaiter(this, void 0, void 0, function () {
83
+ var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, response;
84
+ return __generator(this, function (_14) {
85
+ switch (_14.label) {
86
+ case 0:
87
+ if (requestParameters['pathQueryId'] == null) {
88
+ throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getFavoriters().');
89
+ }
90
+ if (requestParameters['variables'] == null) {
91
+ throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getFavoriters().');
92
+ }
93
+ if (requestParameters['features'] == null) {
94
+ throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getFavoriters().');
95
+ }
96
+ queryParameters = {};
97
+ if (requestParameters['variables'] != null) {
98
+ queryParameters['variables'] = requestParameters['variables'];
99
+ }
100
+ if (requestParameters['features'] != null) {
101
+ queryParameters['features'] = requestParameters['features'];
102
+ }
103
+ headerParameters = {};
104
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
105
+ _a = headerParameters;
106
+ _b = "Accept";
107
+ return [4 /*yield*/, this.configuration.apiKey("Accept")];
108
+ case 1:
109
+ _a[_b] = _14.sent(); // Accept authentication
110
+ _14.label = 2;
111
+ case 2:
112
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
113
+ _c = headerParameters;
114
+ _d = "x-twitter-client-language";
115
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
116
+ case 3:
117
+ _c[_d] = _14.sent(); // ClientLanguage authentication
118
+ _14.label = 4;
119
+ case 4:
120
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
121
+ _e = headerParameters;
122
+ _f = "Priority";
123
+ return [4 /*yield*/, this.configuration.apiKey("Priority")];
124
+ case 5:
125
+ _e[_f] = _14.sent(); // Priority authentication
126
+ _14.label = 6;
127
+ case 6:
128
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
129
+ _g = headerParameters;
130
+ _h = "Referer";
131
+ return [4 /*yield*/, this.configuration.apiKey("Referer")];
132
+ case 7:
133
+ _g[_h] = _14.sent(); // Referer authentication
134
+ _14.label = 8;
135
+ case 8:
136
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
137
+ _j = headerParameters;
138
+ _k = "Sec-Fetch-Dest";
139
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
140
+ case 9:
141
+ _j[_k] = _14.sent(); // SecFetchDest authentication
142
+ _14.label = 10;
143
+ case 10:
144
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
145
+ _l = headerParameters;
146
+ _m = "Sec-Ch-Ua-Platform";
147
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
148
+ case 11:
149
+ _l[_m] = _14.sent(); // SecChUaPlatform authentication
150
+ _14.label = 12;
151
+ case 12:
152
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
153
+ _o = headerParameters;
154
+ _p = "Sec-Fetch-Mode";
155
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
156
+ case 13:
157
+ _o[_p] = _14.sent(); // SecFetchMode authentication
158
+ _14.label = 14;
159
+ case 14:
160
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
161
+ _q = headerParameters;
162
+ _r = "x-csrf-token";
163
+ return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
164
+ case 15:
165
+ _q[_r] = _14.sent(); // CsrfToken authentication
166
+ _14.label = 16;
167
+ case 16:
168
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
169
+ _s = headerParameters;
170
+ _t = "x-client-uuid";
171
+ return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
172
+ case 17:
173
+ _s[_t] = _14.sent(); // ClientUuid authentication
174
+ _14.label = 18;
175
+ case 18:
176
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
177
+ token = this.configuration.accessToken;
178
+ return [4 /*yield*/, token("BearerAuth", [])];
179
+ case 19:
180
+ tokenString = _14.sent();
181
+ if (tokenString) {
182
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
183
+ }
184
+ _14.label = 20;
185
+ case 20:
186
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
187
+ _u = headerParameters;
188
+ _v = "x-guest-token";
189
+ return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
190
+ case 21:
191
+ _u[_v] = _14.sent(); // GuestToken authentication
192
+ _14.label = 22;
193
+ case 22:
194
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
195
+ _w = headerParameters;
196
+ _x = "Sec-Ch-Ua";
197
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
198
+ case 23:
199
+ _w[_x] = _14.sent(); // SecChUa authentication
200
+ _14.label = 24;
201
+ case 24:
202
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
203
+ _y = headerParameters;
204
+ _z = "x-client-transaction-id";
205
+ return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
206
+ case 25:
207
+ _y[_z] = _14.sent(); // ClientTransactionId authentication
208
+ _14.label = 26;
209
+ case 26:
210
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
211
+ _0 = headerParameters;
212
+ _1 = "x-twitter-active-user";
213
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
214
+ case 27:
215
+ _0[_1] = _14.sent(); // ActiveUser authentication
216
+ _14.label = 28;
217
+ case 28:
218
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
219
+ _2 = headerParameters;
220
+ _3 = "user-agent";
221
+ return [4 /*yield*/, this.configuration.apiKey("user-agent")];
222
+ case 29:
223
+ _2[_3] = _14.sent(); // UserAgent authentication
224
+ _14.label = 30;
225
+ case 30:
226
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
227
+ _4 = headerParameters;
228
+ _5 = "Accept-Language";
229
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
230
+ case 31:
231
+ _4[_5] = _14.sent(); // AcceptLanguage authentication
232
+ _14.label = 32;
233
+ case 32:
234
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
235
+ _6 = headerParameters;
236
+ _7 = "Sec-Fetch-Site";
237
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
238
+ case 33:
239
+ _6[_7] = _14.sent(); // SecFetchSite authentication
240
+ _14.label = 34;
241
+ case 34:
242
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
243
+ _8 = headerParameters;
244
+ _9 = "x-twitter-auth-type";
245
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
246
+ case 35:
247
+ _8[_9] = _14.sent(); // AuthType authentication
248
+ _14.label = 36;
249
+ case 36:
250
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
251
+ _10 = headerParameters;
252
+ _11 = "Sec-Ch-Ua-Mobile";
253
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
254
+ case 37:
255
+ _10[_11] = _14.sent(); // SecChUaMobile authentication
256
+ _14.label = 38;
257
+ case 38:
258
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 40];
259
+ _12 = headerParameters;
260
+ _13 = "Accept-Encoding";
261
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
262
+ case 39:
263
+ _12[_13] = _14.sent(); // AcceptEncoding authentication
264
+ _14.label = 40;
265
+ case 40: return [4 /*yield*/, this.request({
266
+ path: "/graphql/{pathQueryId}/Favoriters".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
267
+ method: 'GET',
268
+ headers: headerParameters,
269
+ query: queryParameters,
270
+ }, initOverrides)];
271
+ case 41:
272
+ response = _14.sent();
273
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.TweetFavoritersResponseFromJSON)(jsonValue); })];
274
+ }
275
+ });
276
+ });
277
+ };
278
+ /**
279
+ * get tweet favoriters
280
+ */
281
+ UserListApi.prototype.getFavoriters = function (requestParameters, initOverrides) {
282
+ return __awaiter(this, void 0, void 0, function () {
283
+ var response;
284
+ return __generator(this, function (_a) {
285
+ switch (_a.label) {
286
+ case 0: return [4 /*yield*/, this.getFavoritersRaw(requestParameters, initOverrides)];
287
+ case 1:
288
+ response = _a.sent();
289
+ return [4 /*yield*/, response.value()];
290
+ case 2: return [2 /*return*/, _a.sent()];
291
+ }
292
+ });
293
+ });
294
+ };
295
+ /**
296
+ * get user list of followers
297
+ */
298
+ UserListApi.prototype.getFollowersRaw = function (requestParameters, initOverrides) {
299
+ return __awaiter(this, void 0, void 0, function () {
300
+ var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, response;
301
+ return __generator(this, function (_14) {
302
+ switch (_14.label) {
303
+ case 0:
304
+ if (requestParameters['pathQueryId'] == null) {
305
+ throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getFollowers().');
306
+ }
307
+ if (requestParameters['variables'] == null) {
308
+ throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getFollowers().');
309
+ }
310
+ if (requestParameters['features'] == null) {
311
+ throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getFollowers().');
312
+ }
313
+ queryParameters = {};
314
+ if (requestParameters['variables'] != null) {
315
+ queryParameters['variables'] = requestParameters['variables'];
316
+ }
317
+ if (requestParameters['features'] != null) {
318
+ queryParameters['features'] = requestParameters['features'];
319
+ }
320
+ headerParameters = {};
321
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
322
+ _a = headerParameters;
323
+ _b = "Accept";
324
+ return [4 /*yield*/, this.configuration.apiKey("Accept")];
325
+ case 1:
326
+ _a[_b] = _14.sent(); // Accept authentication
327
+ _14.label = 2;
328
+ case 2:
329
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
330
+ _c = headerParameters;
331
+ _d = "x-twitter-client-language";
332
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
333
+ case 3:
334
+ _c[_d] = _14.sent(); // ClientLanguage authentication
335
+ _14.label = 4;
336
+ case 4:
337
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
338
+ _e = headerParameters;
339
+ _f = "Priority";
340
+ return [4 /*yield*/, this.configuration.apiKey("Priority")];
341
+ case 5:
342
+ _e[_f] = _14.sent(); // Priority authentication
343
+ _14.label = 6;
344
+ case 6:
345
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
346
+ _g = headerParameters;
347
+ _h = "Referer";
348
+ return [4 /*yield*/, this.configuration.apiKey("Referer")];
349
+ case 7:
350
+ _g[_h] = _14.sent(); // Referer authentication
351
+ _14.label = 8;
352
+ case 8:
353
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
354
+ _j = headerParameters;
355
+ _k = "Sec-Fetch-Dest";
356
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
357
+ case 9:
358
+ _j[_k] = _14.sent(); // SecFetchDest authentication
359
+ _14.label = 10;
360
+ case 10:
361
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
362
+ _l = headerParameters;
363
+ _m = "Sec-Ch-Ua-Platform";
364
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
365
+ case 11:
366
+ _l[_m] = _14.sent(); // SecChUaPlatform authentication
367
+ _14.label = 12;
368
+ case 12:
369
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
370
+ _o = headerParameters;
371
+ _p = "Sec-Fetch-Mode";
372
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
373
+ case 13:
374
+ _o[_p] = _14.sent(); // SecFetchMode authentication
375
+ _14.label = 14;
376
+ case 14:
377
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
378
+ _q = headerParameters;
379
+ _r = "x-csrf-token";
380
+ return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
381
+ case 15:
382
+ _q[_r] = _14.sent(); // CsrfToken authentication
383
+ _14.label = 16;
384
+ case 16:
385
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
386
+ _s = headerParameters;
387
+ _t = "x-client-uuid";
388
+ return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
389
+ case 17:
390
+ _s[_t] = _14.sent(); // ClientUuid authentication
391
+ _14.label = 18;
392
+ case 18:
393
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
394
+ token = this.configuration.accessToken;
395
+ return [4 /*yield*/, token("BearerAuth", [])];
396
+ case 19:
397
+ tokenString = _14.sent();
398
+ if (tokenString) {
399
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
400
+ }
401
+ _14.label = 20;
402
+ case 20:
403
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
404
+ _u = headerParameters;
405
+ _v = "x-guest-token";
406
+ return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
407
+ case 21:
408
+ _u[_v] = _14.sent(); // GuestToken authentication
409
+ _14.label = 22;
410
+ case 22:
411
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
412
+ _w = headerParameters;
413
+ _x = "Sec-Ch-Ua";
414
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
415
+ case 23:
416
+ _w[_x] = _14.sent(); // SecChUa authentication
417
+ _14.label = 24;
418
+ case 24:
419
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
420
+ _y = headerParameters;
421
+ _z = "x-client-transaction-id";
422
+ return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
423
+ case 25:
424
+ _y[_z] = _14.sent(); // ClientTransactionId authentication
425
+ _14.label = 26;
426
+ case 26:
427
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
428
+ _0 = headerParameters;
429
+ _1 = "x-twitter-active-user";
430
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
431
+ case 27:
432
+ _0[_1] = _14.sent(); // ActiveUser authentication
433
+ _14.label = 28;
434
+ case 28:
435
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
436
+ _2 = headerParameters;
437
+ _3 = "user-agent";
438
+ return [4 /*yield*/, this.configuration.apiKey("user-agent")];
439
+ case 29:
440
+ _2[_3] = _14.sent(); // UserAgent authentication
441
+ _14.label = 30;
442
+ case 30:
443
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
444
+ _4 = headerParameters;
445
+ _5 = "Accept-Language";
446
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
447
+ case 31:
448
+ _4[_5] = _14.sent(); // AcceptLanguage authentication
449
+ _14.label = 32;
450
+ case 32:
451
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
452
+ _6 = headerParameters;
453
+ _7 = "Sec-Fetch-Site";
454
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
455
+ case 33:
456
+ _6[_7] = _14.sent(); // SecFetchSite authentication
457
+ _14.label = 34;
458
+ case 34:
459
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
460
+ _8 = headerParameters;
461
+ _9 = "x-twitter-auth-type";
462
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
463
+ case 35:
464
+ _8[_9] = _14.sent(); // AuthType authentication
465
+ _14.label = 36;
466
+ case 36:
467
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
468
+ _10 = headerParameters;
469
+ _11 = "Sec-Ch-Ua-Mobile";
470
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
471
+ case 37:
472
+ _10[_11] = _14.sent(); // SecChUaMobile authentication
473
+ _14.label = 38;
474
+ case 38:
475
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 40];
476
+ _12 = headerParameters;
477
+ _13 = "Accept-Encoding";
478
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
479
+ case 39:
480
+ _12[_13] = _14.sent(); // AcceptEncoding authentication
481
+ _14.label = 40;
482
+ case 40: return [4 /*yield*/, this.request({
483
+ path: "/graphql/{pathQueryId}/Followers".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
484
+ method: 'GET',
485
+ headers: headerParameters,
486
+ query: queryParameters,
487
+ }, initOverrides)];
488
+ case 41:
489
+ response = _14.sent();
490
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.FollowResponseFromJSON)(jsonValue); })];
491
+ }
492
+ });
493
+ });
494
+ };
495
+ /**
496
+ * get user list of followers
497
+ */
498
+ UserListApi.prototype.getFollowers = function (requestParameters, initOverrides) {
499
+ return __awaiter(this, void 0, void 0, function () {
500
+ var response;
501
+ return __generator(this, function (_a) {
502
+ switch (_a.label) {
503
+ case 0: return [4 /*yield*/, this.getFollowersRaw(requestParameters, initOverrides)];
504
+ case 1:
505
+ response = _a.sent();
506
+ return [4 /*yield*/, response.value()];
507
+ case 2: return [2 /*return*/, _a.sent()];
508
+ }
509
+ });
510
+ });
511
+ };
512
+ /**
513
+ * get followers you know
514
+ */
515
+ UserListApi.prototype.getFollowersYouKnowRaw = function (requestParameters, initOverrides) {
516
+ return __awaiter(this, void 0, void 0, function () {
517
+ var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, response;
518
+ return __generator(this, function (_14) {
519
+ switch (_14.label) {
520
+ case 0:
521
+ if (requestParameters['pathQueryId'] == null) {
522
+ throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getFollowersYouKnow().');
523
+ }
524
+ if (requestParameters['variables'] == null) {
525
+ throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getFollowersYouKnow().');
526
+ }
527
+ if (requestParameters['features'] == null) {
528
+ throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getFollowersYouKnow().');
529
+ }
530
+ queryParameters = {};
531
+ if (requestParameters['variables'] != null) {
532
+ queryParameters['variables'] = requestParameters['variables'];
533
+ }
534
+ if (requestParameters['features'] != null) {
535
+ queryParameters['features'] = requestParameters['features'];
536
+ }
537
+ headerParameters = {};
538
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
539
+ _a = headerParameters;
540
+ _b = "Accept";
541
+ return [4 /*yield*/, this.configuration.apiKey("Accept")];
542
+ case 1:
543
+ _a[_b] = _14.sent(); // Accept authentication
544
+ _14.label = 2;
545
+ case 2:
546
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
547
+ _c = headerParameters;
548
+ _d = "x-twitter-client-language";
549
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
550
+ case 3:
551
+ _c[_d] = _14.sent(); // ClientLanguage authentication
552
+ _14.label = 4;
553
+ case 4:
554
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
555
+ _e = headerParameters;
556
+ _f = "Priority";
557
+ return [4 /*yield*/, this.configuration.apiKey("Priority")];
558
+ case 5:
559
+ _e[_f] = _14.sent(); // Priority authentication
560
+ _14.label = 6;
561
+ case 6:
562
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
563
+ _g = headerParameters;
564
+ _h = "Referer";
565
+ return [4 /*yield*/, this.configuration.apiKey("Referer")];
566
+ case 7:
567
+ _g[_h] = _14.sent(); // Referer authentication
568
+ _14.label = 8;
569
+ case 8:
570
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
571
+ _j = headerParameters;
572
+ _k = "Sec-Fetch-Dest";
573
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
574
+ case 9:
575
+ _j[_k] = _14.sent(); // SecFetchDest authentication
576
+ _14.label = 10;
577
+ case 10:
578
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
579
+ _l = headerParameters;
580
+ _m = "Sec-Ch-Ua-Platform";
581
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
582
+ case 11:
583
+ _l[_m] = _14.sent(); // SecChUaPlatform authentication
584
+ _14.label = 12;
585
+ case 12:
586
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
587
+ _o = headerParameters;
588
+ _p = "Sec-Fetch-Mode";
589
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
590
+ case 13:
591
+ _o[_p] = _14.sent(); // SecFetchMode authentication
592
+ _14.label = 14;
593
+ case 14:
594
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
595
+ _q = headerParameters;
596
+ _r = "x-csrf-token";
597
+ return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
598
+ case 15:
599
+ _q[_r] = _14.sent(); // CsrfToken authentication
600
+ _14.label = 16;
601
+ case 16:
602
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
603
+ _s = headerParameters;
604
+ _t = "x-client-uuid";
605
+ return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
606
+ case 17:
607
+ _s[_t] = _14.sent(); // ClientUuid authentication
608
+ _14.label = 18;
609
+ case 18:
610
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
611
+ token = this.configuration.accessToken;
612
+ return [4 /*yield*/, token("BearerAuth", [])];
613
+ case 19:
614
+ tokenString = _14.sent();
615
+ if (tokenString) {
616
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
617
+ }
618
+ _14.label = 20;
619
+ case 20:
620
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
621
+ _u = headerParameters;
622
+ _v = "x-guest-token";
623
+ return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
624
+ case 21:
625
+ _u[_v] = _14.sent(); // GuestToken authentication
626
+ _14.label = 22;
627
+ case 22:
628
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
629
+ _w = headerParameters;
630
+ _x = "Sec-Ch-Ua";
631
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
632
+ case 23:
633
+ _w[_x] = _14.sent(); // SecChUa authentication
634
+ _14.label = 24;
635
+ case 24:
636
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
637
+ _y = headerParameters;
638
+ _z = "x-client-transaction-id";
639
+ return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
640
+ case 25:
641
+ _y[_z] = _14.sent(); // ClientTransactionId authentication
642
+ _14.label = 26;
643
+ case 26:
644
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
645
+ _0 = headerParameters;
646
+ _1 = "x-twitter-active-user";
647
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
648
+ case 27:
649
+ _0[_1] = _14.sent(); // ActiveUser authentication
650
+ _14.label = 28;
651
+ case 28:
652
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
653
+ _2 = headerParameters;
654
+ _3 = "user-agent";
655
+ return [4 /*yield*/, this.configuration.apiKey("user-agent")];
656
+ case 29:
657
+ _2[_3] = _14.sent(); // UserAgent authentication
658
+ _14.label = 30;
659
+ case 30:
660
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
661
+ _4 = headerParameters;
662
+ _5 = "Accept-Language";
663
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
664
+ case 31:
665
+ _4[_5] = _14.sent(); // AcceptLanguage authentication
666
+ _14.label = 32;
667
+ case 32:
668
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
669
+ _6 = headerParameters;
670
+ _7 = "Sec-Fetch-Site";
671
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
672
+ case 33:
673
+ _6[_7] = _14.sent(); // SecFetchSite authentication
674
+ _14.label = 34;
675
+ case 34:
676
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
677
+ _8 = headerParameters;
678
+ _9 = "x-twitter-auth-type";
679
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
680
+ case 35:
681
+ _8[_9] = _14.sent(); // AuthType authentication
682
+ _14.label = 36;
683
+ case 36:
684
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
685
+ _10 = headerParameters;
686
+ _11 = "Sec-Ch-Ua-Mobile";
687
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
688
+ case 37:
689
+ _10[_11] = _14.sent(); // SecChUaMobile authentication
690
+ _14.label = 38;
691
+ case 38:
692
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 40];
693
+ _12 = headerParameters;
694
+ _13 = "Accept-Encoding";
695
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
696
+ case 39:
697
+ _12[_13] = _14.sent(); // AcceptEncoding authentication
698
+ _14.label = 40;
699
+ case 40: return [4 /*yield*/, this.request({
700
+ path: "/graphql/{pathQueryId}/FollowersYouKnow".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
701
+ method: 'GET',
702
+ headers: headerParameters,
703
+ query: queryParameters,
704
+ }, initOverrides)];
705
+ case 41:
706
+ response = _14.sent();
707
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.FollowResponseFromJSON)(jsonValue); })];
708
+ }
709
+ });
710
+ });
711
+ };
712
+ /**
713
+ * get followers you know
714
+ */
715
+ UserListApi.prototype.getFollowersYouKnow = function (requestParameters, initOverrides) {
716
+ return __awaiter(this, void 0, void 0, function () {
717
+ var response;
718
+ return __generator(this, function (_a) {
719
+ switch (_a.label) {
720
+ case 0: return [4 /*yield*/, this.getFollowersYouKnowRaw(requestParameters, initOverrides)];
721
+ case 1:
722
+ response = _a.sent();
723
+ return [4 /*yield*/, response.value()];
724
+ case 2: return [2 /*return*/, _a.sent()];
725
+ }
726
+ });
727
+ });
728
+ };
729
+ /**
730
+ * get user list of following
731
+ */
732
+ UserListApi.prototype.getFollowingRaw = function (requestParameters, initOverrides) {
733
+ return __awaiter(this, void 0, void 0, function () {
734
+ var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, response;
735
+ return __generator(this, function (_14) {
736
+ switch (_14.label) {
737
+ case 0:
738
+ if (requestParameters['pathQueryId'] == null) {
739
+ throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getFollowing().');
740
+ }
741
+ if (requestParameters['variables'] == null) {
742
+ throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getFollowing().');
743
+ }
744
+ if (requestParameters['features'] == null) {
745
+ throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getFollowing().');
746
+ }
747
+ queryParameters = {};
748
+ if (requestParameters['variables'] != null) {
749
+ queryParameters['variables'] = requestParameters['variables'];
750
+ }
751
+ if (requestParameters['features'] != null) {
752
+ queryParameters['features'] = requestParameters['features'];
753
+ }
754
+ headerParameters = {};
755
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
756
+ _a = headerParameters;
757
+ _b = "Accept";
758
+ return [4 /*yield*/, this.configuration.apiKey("Accept")];
759
+ case 1:
760
+ _a[_b] = _14.sent(); // Accept authentication
761
+ _14.label = 2;
762
+ case 2:
763
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
764
+ _c = headerParameters;
765
+ _d = "x-twitter-client-language";
766
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
767
+ case 3:
768
+ _c[_d] = _14.sent(); // ClientLanguage authentication
769
+ _14.label = 4;
770
+ case 4:
771
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
772
+ _e = headerParameters;
773
+ _f = "Priority";
774
+ return [4 /*yield*/, this.configuration.apiKey("Priority")];
775
+ case 5:
776
+ _e[_f] = _14.sent(); // Priority authentication
777
+ _14.label = 6;
778
+ case 6:
779
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
780
+ _g = headerParameters;
781
+ _h = "Referer";
782
+ return [4 /*yield*/, this.configuration.apiKey("Referer")];
783
+ case 7:
784
+ _g[_h] = _14.sent(); // Referer authentication
785
+ _14.label = 8;
786
+ case 8:
787
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
788
+ _j = headerParameters;
789
+ _k = "Sec-Fetch-Dest";
790
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
791
+ case 9:
792
+ _j[_k] = _14.sent(); // SecFetchDest authentication
793
+ _14.label = 10;
794
+ case 10:
795
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
796
+ _l = headerParameters;
797
+ _m = "Sec-Ch-Ua-Platform";
798
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
799
+ case 11:
800
+ _l[_m] = _14.sent(); // SecChUaPlatform authentication
801
+ _14.label = 12;
802
+ case 12:
803
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
804
+ _o = headerParameters;
805
+ _p = "Sec-Fetch-Mode";
806
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
807
+ case 13:
808
+ _o[_p] = _14.sent(); // SecFetchMode authentication
809
+ _14.label = 14;
810
+ case 14:
811
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
812
+ _q = headerParameters;
813
+ _r = "x-csrf-token";
814
+ return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
815
+ case 15:
816
+ _q[_r] = _14.sent(); // CsrfToken authentication
817
+ _14.label = 16;
818
+ case 16:
819
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
820
+ _s = headerParameters;
821
+ _t = "x-client-uuid";
822
+ return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
823
+ case 17:
824
+ _s[_t] = _14.sent(); // ClientUuid authentication
825
+ _14.label = 18;
826
+ case 18:
827
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
828
+ token = this.configuration.accessToken;
829
+ return [4 /*yield*/, token("BearerAuth", [])];
830
+ case 19:
831
+ tokenString = _14.sent();
832
+ if (tokenString) {
833
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
834
+ }
835
+ _14.label = 20;
836
+ case 20:
837
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
838
+ _u = headerParameters;
839
+ _v = "x-guest-token";
840
+ return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
841
+ case 21:
842
+ _u[_v] = _14.sent(); // GuestToken authentication
843
+ _14.label = 22;
844
+ case 22:
845
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
846
+ _w = headerParameters;
847
+ _x = "Sec-Ch-Ua";
848
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
849
+ case 23:
850
+ _w[_x] = _14.sent(); // SecChUa authentication
851
+ _14.label = 24;
852
+ case 24:
853
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
854
+ _y = headerParameters;
855
+ _z = "x-client-transaction-id";
856
+ return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
857
+ case 25:
858
+ _y[_z] = _14.sent(); // ClientTransactionId authentication
859
+ _14.label = 26;
860
+ case 26:
861
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
862
+ _0 = headerParameters;
863
+ _1 = "x-twitter-active-user";
864
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
865
+ case 27:
866
+ _0[_1] = _14.sent(); // ActiveUser authentication
867
+ _14.label = 28;
868
+ case 28:
869
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
870
+ _2 = headerParameters;
871
+ _3 = "user-agent";
872
+ return [4 /*yield*/, this.configuration.apiKey("user-agent")];
873
+ case 29:
874
+ _2[_3] = _14.sent(); // UserAgent authentication
875
+ _14.label = 30;
876
+ case 30:
877
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
878
+ _4 = headerParameters;
879
+ _5 = "Accept-Language";
880
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
881
+ case 31:
882
+ _4[_5] = _14.sent(); // AcceptLanguage authentication
883
+ _14.label = 32;
884
+ case 32:
885
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
886
+ _6 = headerParameters;
887
+ _7 = "Sec-Fetch-Site";
888
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
889
+ case 33:
890
+ _6[_7] = _14.sent(); // SecFetchSite authentication
891
+ _14.label = 34;
892
+ case 34:
893
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
894
+ _8 = headerParameters;
895
+ _9 = "x-twitter-auth-type";
896
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
897
+ case 35:
898
+ _8[_9] = _14.sent(); // AuthType authentication
899
+ _14.label = 36;
900
+ case 36:
901
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
902
+ _10 = headerParameters;
903
+ _11 = "Sec-Ch-Ua-Mobile";
904
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
905
+ case 37:
906
+ _10[_11] = _14.sent(); // SecChUaMobile authentication
907
+ _14.label = 38;
908
+ case 38:
909
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 40];
910
+ _12 = headerParameters;
911
+ _13 = "Accept-Encoding";
912
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
913
+ case 39:
914
+ _12[_13] = _14.sent(); // AcceptEncoding authentication
915
+ _14.label = 40;
916
+ case 40: return [4 /*yield*/, this.request({
917
+ path: "/graphql/{pathQueryId}/Following".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
918
+ method: 'GET',
919
+ headers: headerParameters,
920
+ query: queryParameters,
921
+ }, initOverrides)];
922
+ case 41:
923
+ response = _14.sent();
924
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.FollowResponseFromJSON)(jsonValue); })];
925
+ }
926
+ });
927
+ });
928
+ };
929
+ /**
930
+ * get user list of following
931
+ */
932
+ UserListApi.prototype.getFollowing = function (requestParameters, initOverrides) {
933
+ return __awaiter(this, void 0, void 0, function () {
934
+ var response;
935
+ return __generator(this, function (_a) {
936
+ switch (_a.label) {
937
+ case 0: return [4 /*yield*/, this.getFollowingRaw(requestParameters, initOverrides)];
938
+ case 1:
939
+ response = _a.sent();
940
+ return [4 /*yield*/, response.value()];
941
+ case 2: return [2 /*return*/, _a.sent()];
942
+ }
943
+ });
944
+ });
945
+ };
946
+ /**
947
+ * get tweet retweeters
948
+ */
949
+ UserListApi.prototype.getRetweetersRaw = function (requestParameters, initOverrides) {
950
+ return __awaiter(this, void 0, void 0, function () {
951
+ var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, response;
952
+ return __generator(this, function (_14) {
953
+ switch (_14.label) {
954
+ case 0:
955
+ if (requestParameters['pathQueryId'] == null) {
956
+ throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getRetweeters().');
957
+ }
958
+ if (requestParameters['variables'] == null) {
959
+ throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getRetweeters().');
960
+ }
961
+ if (requestParameters['features'] == null) {
962
+ throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getRetweeters().');
963
+ }
964
+ queryParameters = {};
965
+ if (requestParameters['variables'] != null) {
966
+ queryParameters['variables'] = requestParameters['variables'];
967
+ }
968
+ if (requestParameters['features'] != null) {
969
+ queryParameters['features'] = requestParameters['features'];
970
+ }
971
+ headerParameters = {};
972
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
973
+ _a = headerParameters;
974
+ _b = "Accept";
975
+ return [4 /*yield*/, this.configuration.apiKey("Accept")];
976
+ case 1:
977
+ _a[_b] = _14.sent(); // Accept authentication
978
+ _14.label = 2;
979
+ case 2:
980
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
981
+ _c = headerParameters;
982
+ _d = "x-twitter-client-language";
983
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
984
+ case 3:
985
+ _c[_d] = _14.sent(); // ClientLanguage authentication
986
+ _14.label = 4;
987
+ case 4:
988
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
989
+ _e = headerParameters;
990
+ _f = "Priority";
991
+ return [4 /*yield*/, this.configuration.apiKey("Priority")];
992
+ case 5:
993
+ _e[_f] = _14.sent(); // Priority authentication
994
+ _14.label = 6;
995
+ case 6:
996
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
997
+ _g = headerParameters;
998
+ _h = "Referer";
999
+ return [4 /*yield*/, this.configuration.apiKey("Referer")];
1000
+ case 7:
1001
+ _g[_h] = _14.sent(); // Referer authentication
1002
+ _14.label = 8;
1003
+ case 8:
1004
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
1005
+ _j = headerParameters;
1006
+ _k = "Sec-Fetch-Dest";
1007
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
1008
+ case 9:
1009
+ _j[_k] = _14.sent(); // SecFetchDest authentication
1010
+ _14.label = 10;
1011
+ case 10:
1012
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
1013
+ _l = headerParameters;
1014
+ _m = "Sec-Ch-Ua-Platform";
1015
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
1016
+ case 11:
1017
+ _l[_m] = _14.sent(); // SecChUaPlatform authentication
1018
+ _14.label = 12;
1019
+ case 12:
1020
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
1021
+ _o = headerParameters;
1022
+ _p = "Sec-Fetch-Mode";
1023
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
1024
+ case 13:
1025
+ _o[_p] = _14.sent(); // SecFetchMode authentication
1026
+ _14.label = 14;
1027
+ case 14:
1028
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
1029
+ _q = headerParameters;
1030
+ _r = "x-csrf-token";
1031
+ return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
1032
+ case 15:
1033
+ _q[_r] = _14.sent(); // CsrfToken authentication
1034
+ _14.label = 16;
1035
+ case 16:
1036
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
1037
+ _s = headerParameters;
1038
+ _t = "x-client-uuid";
1039
+ return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
1040
+ case 17:
1041
+ _s[_t] = _14.sent(); // ClientUuid authentication
1042
+ _14.label = 18;
1043
+ case 18:
1044
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
1045
+ token = this.configuration.accessToken;
1046
+ return [4 /*yield*/, token("BearerAuth", [])];
1047
+ case 19:
1048
+ tokenString = _14.sent();
1049
+ if (tokenString) {
1050
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
1051
+ }
1052
+ _14.label = 20;
1053
+ case 20:
1054
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
1055
+ _u = headerParameters;
1056
+ _v = "x-guest-token";
1057
+ return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
1058
+ case 21:
1059
+ _u[_v] = _14.sent(); // GuestToken authentication
1060
+ _14.label = 22;
1061
+ case 22:
1062
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
1063
+ _w = headerParameters;
1064
+ _x = "Sec-Ch-Ua";
1065
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
1066
+ case 23:
1067
+ _w[_x] = _14.sent(); // SecChUa authentication
1068
+ _14.label = 24;
1069
+ case 24:
1070
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
1071
+ _y = headerParameters;
1072
+ _z = "x-client-transaction-id";
1073
+ return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
1074
+ case 25:
1075
+ _y[_z] = _14.sent(); // ClientTransactionId authentication
1076
+ _14.label = 26;
1077
+ case 26:
1078
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
1079
+ _0 = headerParameters;
1080
+ _1 = "x-twitter-active-user";
1081
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
1082
+ case 27:
1083
+ _0[_1] = _14.sent(); // ActiveUser authentication
1084
+ _14.label = 28;
1085
+ case 28:
1086
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
1087
+ _2 = headerParameters;
1088
+ _3 = "user-agent";
1089
+ return [4 /*yield*/, this.configuration.apiKey("user-agent")];
1090
+ case 29:
1091
+ _2[_3] = _14.sent(); // UserAgent authentication
1092
+ _14.label = 30;
1093
+ case 30:
1094
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
1095
+ _4 = headerParameters;
1096
+ _5 = "Accept-Language";
1097
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
1098
+ case 31:
1099
+ _4[_5] = _14.sent(); // AcceptLanguage authentication
1100
+ _14.label = 32;
1101
+ case 32:
1102
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
1103
+ _6 = headerParameters;
1104
+ _7 = "Sec-Fetch-Site";
1105
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
1106
+ case 33:
1107
+ _6[_7] = _14.sent(); // SecFetchSite authentication
1108
+ _14.label = 34;
1109
+ case 34:
1110
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
1111
+ _8 = headerParameters;
1112
+ _9 = "x-twitter-auth-type";
1113
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
1114
+ case 35:
1115
+ _8[_9] = _14.sent(); // AuthType authentication
1116
+ _14.label = 36;
1117
+ case 36:
1118
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
1119
+ _10 = headerParameters;
1120
+ _11 = "Sec-Ch-Ua-Mobile";
1121
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
1122
+ case 37:
1123
+ _10[_11] = _14.sent(); // SecChUaMobile authentication
1124
+ _14.label = 38;
1125
+ case 38:
1126
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 40];
1127
+ _12 = headerParameters;
1128
+ _13 = "Accept-Encoding";
1129
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
1130
+ case 39:
1131
+ _12[_13] = _14.sent(); // AcceptEncoding authentication
1132
+ _14.label = 40;
1133
+ case 40: return [4 /*yield*/, this.request({
1134
+ path: "/graphql/{pathQueryId}/Retweeters".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
1135
+ method: 'GET',
1136
+ headers: headerParameters,
1137
+ query: queryParameters,
1138
+ }, initOverrides)];
1139
+ case 41:
1140
+ response = _14.sent();
1141
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.TweetRetweetersResponseFromJSON)(jsonValue); })];
1142
+ }
1143
+ });
1144
+ });
1145
+ };
1146
+ /**
1147
+ * get tweet retweeters
1148
+ */
1149
+ UserListApi.prototype.getRetweeters = function (requestParameters, initOverrides) {
1150
+ return __awaiter(this, void 0, void 0, function () {
1151
+ var response;
1152
+ return __generator(this, function (_a) {
1153
+ switch (_a.label) {
1154
+ case 0: return [4 /*yield*/, this.getRetweetersRaw(requestParameters, initOverrides)];
1155
+ case 1:
1156
+ response = _a.sent();
1157
+ return [4 /*yield*/, response.value()];
1158
+ case 2: return [2 /*return*/, _a.sent()];
1159
+ }
1160
+ });
1161
+ });
1162
+ };
1163
+ return UserListApi;
1164
+ }(runtime.BaseAPI));
1165
+ exports.UserListApi = UserListApi;
1166
1166
  //# sourceMappingURL=UserListApi.js.map