@finch_ren/x-scraper 0.1.0

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 (750) hide show
  1. package/README.md +215 -0
  2. package/dist/src/api.d.ts +156 -0
  3. package/dist/src/api.js +245 -0
  4. package/dist/src/apis/defaultApi.d.ts +25 -0
  5. package/dist/src/apis/defaultApi.js +44 -0
  6. package/dist/src/apis/index.d.ts +12 -0
  7. package/dist/src/apis/index.js +26 -0
  8. package/dist/src/apis/initialStateApi.d.ts +3 -0
  9. package/dist/src/apis/initialStateApi.js +7 -0
  10. package/dist/src/apis/postApi.d.ts +58 -0
  11. package/dist/src/apis/postApi.js +130 -0
  12. package/dist/src/apis/spaceApi.d.ts +28 -0
  13. package/dist/src/apis/spaceApi.js +42 -0
  14. package/dist/src/apis/tweetApi.d.ts +118 -0
  15. package/dist/src/apis/tweetApi.js +195 -0
  16. package/dist/src/apis/userApi.d.ts +27 -0
  17. package/dist/src/apis/userApi.js +43 -0
  18. package/dist/src/apis/userListApi.d.ts +67 -0
  19. package/dist/src/apis/userListApi.js +111 -0
  20. package/dist/src/apis/usersApi.d.ts +19 -0
  21. package/dist/src/apis/usersApi.js +25 -0
  22. package/dist/src/apis/v11GetApi.d.ts +20 -0
  23. package/dist/src/apis/v11GetApi.js +29 -0
  24. package/dist/src/apis/v11PostApi.d.ts +26 -0
  25. package/dist/src/apis/v11PostApi.js +33 -0
  26. package/dist/src/apis/v20GetApi.d.ts +10 -0
  27. package/dist/src/apis/v20GetApi.js +12 -0
  28. package/dist/src/index.d.ts +6 -0
  29. package/dist/src/index.js +22 -0
  30. package/dist/src/models/flag.d.ts +6 -0
  31. package/dist/src/models/flag.js +3 -0
  32. package/dist/src/models/header.d.ts +15 -0
  33. package/dist/src/models/header.js +3 -0
  34. package/dist/src/models/index.d.ts +6 -0
  35. package/dist/src/models/index.js +22 -0
  36. package/dist/src/models/response.d.ts +10 -0
  37. package/dist/src/models/response.js +3 -0
  38. package/dist/src/models/timeline.d.ts +28 -0
  39. package/dist/src/models/timeline.js +3 -0
  40. package/dist/src/models/utils.d.ts +13 -0
  41. package/dist/src/models/utils.js +3 -0
  42. package/dist/src/openapi/index.d.ts +4 -0
  43. package/dist/src/openapi/index.js +24 -0
  44. package/dist/src/openapi/src/apis/DefaultApi.d.ts +54 -0
  45. package/dist/src/openapi/src/apis/DefaultApi.js +282 -0
  46. package/dist/src/openapi/src/apis/OtherApi.d.ts +65 -0
  47. package/dist/src/openapi/src/apis/OtherApi.js +369 -0
  48. package/dist/src/openapi/src/apis/PostApi.d.ts +147 -0
  49. package/dist/src/openapi/src/apis/PostApi.js +874 -0
  50. package/dist/src/openapi/src/apis/TweetApi.d.ts +280 -0
  51. package/dist/src/openapi/src/apis/TweetApi.js +1729 -0
  52. package/dist/src/openapi/src/apis/UserApi.d.ts +54 -0
  53. package/dist/src/openapi/src/apis/UserApi.js +282 -0
  54. package/dist/src/openapi/src/apis/UserListApi.d.ts +121 -0
  55. package/dist/src/openapi/src/apis/UserListApi.js +712 -0
  56. package/dist/src/openapi/src/apis/UsersApi.d.ts +36 -0
  57. package/dist/src/openapi/src/apis/UsersApi.js +167 -0
  58. package/dist/src/openapi/src/apis/V11GetApi.d.ts +88 -0
  59. package/dist/src/openapi/src/apis/V11GetApi.js +495 -0
  60. package/dist/src/openapi/src/apis/V11PostApi.d.ts +74 -0
  61. package/dist/src/openapi/src/apis/V11PostApi.js +437 -0
  62. package/dist/src/openapi/src/apis/V20GetApi.d.ts +69 -0
  63. package/dist/src/openapi/src/apis/V20GetApi.js +371 -0
  64. package/dist/src/openapi/src/apis/index.d.ts +11 -0
  65. package/dist/src/openapi/src/apis/index.js +29 -0
  66. package/dist/src/openapi/src/index.d.ts +4 -0
  67. package/dist/src/openapi/src/index.js +22 -0
  68. package/dist/src/openapi/src/models/AboutCommunityResult.d.ts +41 -0
  69. package/dist/src/openapi/src/models/AboutCommunityResult.js +57 -0
  70. package/dist/src/openapi/src/models/AboutCommunityResults.d.ts +34 -0
  71. package/dist/src/openapi/src/models/AboutCommunityResults.js +52 -0
  72. package/dist/src/openapi/src/models/AboutCommunityTweetData.d.ts +34 -0
  73. package/dist/src/openapi/src/models/AboutCommunityTweetData.js +52 -0
  74. package/dist/src/openapi/src/models/AdditionalMediaInfo.d.ts +65 -0
  75. package/dist/src/openapi/src/models/AdditionalMediaInfo.js +63 -0
  76. package/dist/src/openapi/src/models/AdditionalMediaInfoCallToActions.d.ts +40 -0
  77. package/dist/src/openapi/src/models/AdditionalMediaInfoCallToActions.js +52 -0
  78. package/dist/src/openapi/src/models/AdditionalMediaInfoCallToActionsUrl.d.ts +33 -0
  79. package/dist/src/openapi/src/models/AdditionalMediaInfoCallToActionsUrl.js +51 -0
  80. package/dist/src/openapi/src/models/AllowDownloadStatus.d.ts +33 -0
  81. package/dist/src/openapi/src/models/AllowDownloadStatus.js +49 -0
  82. package/dist/src/openapi/src/models/AnalysisResults.d.ts +34 -0
  83. package/dist/src/openapi/src/models/AnalysisResults.js +52 -0
  84. package/dist/src/openapi/src/models/Article.d.ts +34 -0
  85. package/dist/src/openapi/src/models/Article.js +52 -0
  86. package/dist/src/openapi/src/models/ArticleCoverMedia.d.ts +52 -0
  87. package/dist/src/openapi/src/models/ArticleCoverMedia.js +64 -0
  88. package/dist/src/openapi/src/models/ArticleCoverMediaColorInfo.d.ts +34 -0
  89. package/dist/src/openapi/src/models/ArticleCoverMediaColorInfo.js +52 -0
  90. package/dist/src/openapi/src/models/ArticleCoverMediaColorInfoPalette.d.ts +40 -0
  91. package/dist/src/openapi/src/models/ArticleCoverMediaColorInfoPalette.js +56 -0
  92. package/dist/src/openapi/src/models/ArticleCoverMediaColorInfoPaletteRGB.d.ts +45 -0
  93. package/dist/src/openapi/src/models/ArticleCoverMediaColorInfoPaletteRGB.js +59 -0
  94. package/dist/src/openapi/src/models/ArticleCoverMediaInfo.d.ts +59 -0
  95. package/dist/src/openapi/src/models/ArticleCoverMediaInfo.js +67 -0
  96. package/dist/src/openapi/src/models/ArticleLifecycleState.d.ts +33 -0
  97. package/dist/src/openapi/src/models/ArticleLifecycleState.js +51 -0
  98. package/dist/src/openapi/src/models/ArticleMetadata.d.ts +33 -0
  99. package/dist/src/openapi/src/models/ArticleMetadata.js +51 -0
  100. package/dist/src/openapi/src/models/ArticleResult.d.ts +72 -0
  101. package/dist/src/openapi/src/models/ArticleResult.js +76 -0
  102. package/dist/src/openapi/src/models/ArticleResults.d.ts +34 -0
  103. package/dist/src/openapi/src/models/ArticleResults.js +52 -0
  104. package/dist/src/openapi/src/models/AudioSpace.d.ts +55 -0
  105. package/dist/src/openapi/src/models/AudioSpace.js +59 -0
  106. package/dist/src/openapi/src/models/AudioSpaceByIdResponse.d.ts +41 -0
  107. package/dist/src/openapi/src/models/AudioSpaceByIdResponse.js +55 -0
  108. package/dist/src/openapi/src/models/AudioSpaceData.d.ts +34 -0
  109. package/dist/src/openapi/src/models/AudioSpaceData.js +52 -0
  110. package/dist/src/openapi/src/models/AudioSpaceMentionedUser.d.ts +33 -0
  111. package/dist/src/openapi/src/models/AudioSpaceMentionedUser.js +51 -0
  112. package/dist/src/openapi/src/models/AudioSpaceMetadata.d.ts +208 -0
  113. package/dist/src/openapi/src/models/AudioSpaceMetadata.js +120 -0
  114. package/dist/src/openapi/src/models/AudioSpaceParticipant.d.ts +82 -0
  115. package/dist/src/openapi/src/models/AudioSpaceParticipant.js +70 -0
  116. package/dist/src/openapi/src/models/AudioSpaceParticipants.d.ts +52 -0
  117. package/dist/src/openapi/src/models/AudioSpaceParticipants.js +58 -0
  118. package/dist/src/openapi/src/models/AuthorCommunityRelationship.d.ts +57 -0
  119. package/dist/src/openapi/src/models/AuthorCommunityRelationship.js +67 -0
  120. package/dist/src/openapi/src/models/BirdwatchEntity.d.ts +46 -0
  121. package/dist/src/openapi/src/models/BirdwatchEntity.js +60 -0
  122. package/dist/src/openapi/src/models/BirdwatchEntityRef.d.ts +66 -0
  123. package/dist/src/openapi/src/models/BirdwatchEntityRef.js +71 -0
  124. package/dist/src/openapi/src/models/BirdwatchPivot.d.ts +106 -0
  125. package/dist/src/openapi/src/models/BirdwatchPivot.js +91 -0
  126. package/dist/src/openapi/src/models/BirdwatchPivotCallToAction.d.ts +45 -0
  127. package/dist/src/openapi/src/models/BirdwatchPivotCallToAction.js +59 -0
  128. package/dist/src/openapi/src/models/BirdwatchPivotFooter.d.ts +40 -0
  129. package/dist/src/openapi/src/models/BirdwatchPivotFooter.js +56 -0
  130. package/dist/src/openapi/src/models/BirdwatchPivotNote.d.ts +33 -0
  131. package/dist/src/openapi/src/models/BirdwatchPivotNote.js +51 -0
  132. package/dist/src/openapi/src/models/BirdwatchPivotSubtitle.d.ts +40 -0
  133. package/dist/src/openapi/src/models/BirdwatchPivotSubtitle.js +56 -0
  134. package/dist/src/openapi/src/models/BookmarksResponse.d.ts +41 -0
  135. package/dist/src/openapi/src/models/BookmarksResponse.js +53 -0
  136. package/dist/src/openapi/src/models/BookmarksResponseData.d.ts +34 -0
  137. package/dist/src/openapi/src/models/BookmarksResponseData.js +52 -0
  138. package/dist/src/openapi/src/models/BookmarksTimeline.d.ts +34 -0
  139. package/dist/src/openapi/src/models/BookmarksTimeline.js +52 -0
  140. package/dist/src/openapi/src/models/Broadcast.d.ts +45 -0
  141. package/dist/src/openapi/src/models/Broadcast.js +59 -0
  142. package/dist/src/openapi/src/models/BroadcastGraphQL.d.ts +179 -0
  143. package/dist/src/openapi/src/models/BroadcastGraphQL.js +99 -0
  144. package/dist/src/openapi/src/models/BroadcastGraphQLUserResults.d.ts +34 -0
  145. package/dist/src/openapi/src/models/BroadcastGraphQLUserResults.js +50 -0
  146. package/dist/src/openapi/src/models/BroadcastQueryResponse.d.ts +41 -0
  147. package/dist/src/openapi/src/models/BroadcastQueryResponse.js +53 -0
  148. package/dist/src/openapi/src/models/BroadcastQueryResponseData.d.ts +41 -0
  149. package/dist/src/openapi/src/models/BroadcastQueryResponseData.js +53 -0
  150. package/dist/src/openapi/src/models/BroadcastQueryResponseDataBroadcastResults.d.ts +34 -0
  151. package/dist/src/openapi/src/models/BroadcastQueryResponseDataBroadcastResults.js +50 -0
  152. package/dist/src/openapi/src/models/BroadcastsShowResponse.d.ts +36 -0
  153. package/dist/src/openapi/src/models/BroadcastsShowResponse.js +53 -0
  154. package/dist/src/openapi/src/models/Callback.d.ts +33 -0
  155. package/dist/src/openapi/src/models/Callback.js +51 -0
  156. package/dist/src/openapi/src/models/ClientEventInfo.d.ts +47 -0
  157. package/dist/src/openapi/src/models/ClientEventInfo.js +53 -0
  158. package/dist/src/openapi/src/models/CommunitiesActions.d.ts +33 -0
  159. package/dist/src/openapi/src/models/CommunitiesActions.js +51 -0
  160. package/dist/src/openapi/src/models/Community.d.ts +34 -0
  161. package/dist/src/openapi/src/models/Community.js +52 -0
  162. package/dist/src/openapi/src/models/CommunityAboutTimelineResponse.d.ts +41 -0
  163. package/dist/src/openapi/src/models/CommunityAboutTimelineResponse.js +55 -0
  164. package/dist/src/openapi/src/models/CommunityActions.d.ts +62 -0
  165. package/dist/src/openapi/src/models/CommunityActions.js +62 -0
  166. package/dist/src/openapi/src/models/CommunityData.d.ts +220 -0
  167. package/dist/src/openapi/src/models/CommunityData.js +132 -0
  168. package/dist/src/openapi/src/models/CommunityDeleteActionResult.d.ts +47 -0
  169. package/dist/src/openapi/src/models/CommunityDeleteActionResult.js +63 -0
  170. package/dist/src/openapi/src/models/CommunityInvitesResult.d.ts +53 -0
  171. package/dist/src/openapi/src/models/CommunityInvitesResult.js +67 -0
  172. package/dist/src/openapi/src/models/CommunityJoinAction.d.ts +34 -0
  173. package/dist/src/openapi/src/models/CommunityJoinAction.js +52 -0
  174. package/dist/src/openapi/src/models/CommunityJoinActionResultUnion.d.ts +28 -0
  175. package/dist/src/openapi/src/models/CommunityJoinActionResultUnion.js +54 -0
  176. package/dist/src/openapi/src/models/CommunityJoinActionUnavailable.d.ts +53 -0
  177. package/dist/src/openapi/src/models/CommunityJoinActionUnavailable.js +67 -0
  178. package/dist/src/openapi/src/models/CommunityJoinRequestsResult.d.ts +34 -0
  179. package/dist/src/openapi/src/models/CommunityJoinRequestsResult.js +52 -0
  180. package/dist/src/openapi/src/models/CommunityLeaveActionResult.d.ts +53 -0
  181. package/dist/src/openapi/src/models/CommunityLeaveActionResult.js +67 -0
  182. package/dist/src/openapi/src/models/CommunityMediaTimelineResponse.d.ts +41 -0
  183. package/dist/src/openapi/src/models/CommunityMediaTimelineResponse.js +55 -0
  184. package/dist/src/openapi/src/models/CommunityPinActionResult.d.ts +34 -0
  185. package/dist/src/openapi/src/models/CommunityPinActionResult.js +52 -0
  186. package/dist/src/openapi/src/models/CommunityRelationship.d.ts +54 -0
  187. package/dist/src/openapi/src/models/CommunityRelationship.js +64 -0
  188. package/dist/src/openapi/src/models/CommunityRule.d.ts +45 -0
  189. package/dist/src/openapi/src/models/CommunityRule.js +57 -0
  190. package/dist/src/openapi/src/models/CommunityTweetsTimelineResponse.d.ts +41 -0
  191. package/dist/src/openapi/src/models/CommunityTweetsTimelineResponse.js +55 -0
  192. package/dist/src/openapi/src/models/CommunityUnpinActionResult.d.ts +34 -0
  193. package/dist/src/openapi/src/models/CommunityUnpinActionResult.js +52 -0
  194. package/dist/src/openapi/src/models/CommunityUrls.d.ts +34 -0
  195. package/dist/src/openapi/src/models/CommunityUrls.js +52 -0
  196. package/dist/src/openapi/src/models/CommunityUrlsPermalink.d.ts +33 -0
  197. package/dist/src/openapi/src/models/CommunityUrlsPermalink.js +51 -0
  198. package/dist/src/openapi/src/models/ContentEntryType.d.ts +27 -0
  199. package/dist/src/openapi/src/models/ContentEntryType.js +53 -0
  200. package/dist/src/openapi/src/models/ContentItemType.d.ts +33 -0
  201. package/dist/src/openapi/src/models/ContentItemType.js +59 -0
  202. package/dist/src/openapi/src/models/ContentUnion.d.ts +31 -0
  203. package/dist/src/openapi/src/models/ContentUnion.js +59 -0
  204. package/dist/src/openapi/src/models/ConversationControl.d.ts +42 -0
  205. package/dist/src/openapi/src/models/ConversationControl.js +60 -0
  206. package/dist/src/openapi/src/models/CoverCta.d.ts +67 -0
  207. package/dist/src/openapi/src/models/CoverCta.js +73 -0
  208. package/dist/src/openapi/src/models/CreateBookmarkResponse.d.ts +41 -0
  209. package/dist/src/openapi/src/models/CreateBookmarkResponse.js +55 -0
  210. package/dist/src/openapi/src/models/CreateBookmarkResponseData.d.ts +33 -0
  211. package/dist/src/openapi/src/models/CreateBookmarkResponseData.js +49 -0
  212. package/dist/src/openapi/src/models/CreateRetweet.d.ts +34 -0
  213. package/dist/src/openapi/src/models/CreateRetweet.js +52 -0
  214. package/dist/src/openapi/src/models/CreateRetweetResponse.d.ts +41 -0
  215. package/dist/src/openapi/src/models/CreateRetweetResponse.js +55 -0
  216. package/dist/src/openapi/src/models/CreateRetweetResponseData.d.ts +34 -0
  217. package/dist/src/openapi/src/models/CreateRetweetResponseData.js +50 -0
  218. package/dist/src/openapi/src/models/CreateRetweetResponseResult.d.ts +34 -0
  219. package/dist/src/openapi/src/models/CreateRetweetResponseResult.js +52 -0
  220. package/dist/src/openapi/src/models/CreateTweet.d.ts +34 -0
  221. package/dist/src/openapi/src/models/CreateTweet.js +52 -0
  222. package/dist/src/openapi/src/models/CreateTweetResponse.d.ts +41 -0
  223. package/dist/src/openapi/src/models/CreateTweetResponse.js +55 -0
  224. package/dist/src/openapi/src/models/CreateTweetResponseData.d.ts +34 -0
  225. package/dist/src/openapi/src/models/CreateTweetResponseData.js +50 -0
  226. package/dist/src/openapi/src/models/CreateTweetResponseResult.d.ts +34 -0
  227. package/dist/src/openapi/src/models/CreateTweetResponseResult.js +52 -0
  228. package/dist/src/openapi/src/models/CtaClientEventInfo.d.ts +40 -0
  229. package/dist/src/openapi/src/models/CtaClientEventInfo.js +58 -0
  230. package/dist/src/openapi/src/models/CursorType.d.ts +30 -0
  231. package/dist/src/openapi/src/models/CursorType.js +56 -0
  232. package/dist/src/openapi/src/models/DeleteBookmarkResponse.d.ts +41 -0
  233. package/dist/src/openapi/src/models/DeleteBookmarkResponse.js +55 -0
  234. package/dist/src/openapi/src/models/DeleteBookmarkResponseData.d.ts +33 -0
  235. package/dist/src/openapi/src/models/DeleteBookmarkResponseData.js +49 -0
  236. package/dist/src/openapi/src/models/DeleteRetweet.d.ts +34 -0
  237. package/dist/src/openapi/src/models/DeleteRetweet.js +52 -0
  238. package/dist/src/openapi/src/models/DeleteRetweetResponse.d.ts +41 -0
  239. package/dist/src/openapi/src/models/DeleteRetweetResponse.js +55 -0
  240. package/dist/src/openapi/src/models/DeleteRetweetResponseData.d.ts +34 -0
  241. package/dist/src/openapi/src/models/DeleteRetweetResponseData.js +50 -0
  242. package/dist/src/openapi/src/models/DeleteRetweetResponseResult.d.ts +34 -0
  243. package/dist/src/openapi/src/models/DeleteRetweetResponseResult.js +50 -0
  244. package/dist/src/openapi/src/models/DeleteTweetResponse.d.ts +41 -0
  245. package/dist/src/openapi/src/models/DeleteTweetResponse.js +55 -0
  246. package/dist/src/openapi/src/models/DeleteTweetResponseData.d.ts +34 -0
  247. package/dist/src/openapi/src/models/DeleteTweetResponseData.js +50 -0
  248. package/dist/src/openapi/src/models/DeleteTweetResponseResult.d.ts +33 -0
  249. package/dist/src/openapi/src/models/DeleteTweetResponseResult.js +51 -0
  250. package/dist/src/openapi/src/models/DisplayTreatment.d.ts +39 -0
  251. package/dist/src/openapi/src/models/DisplayTreatment.js +53 -0
  252. package/dist/src/openapi/src/models/DisplayType.d.ts +28 -0
  253. package/dist/src/openapi/src/models/DisplayType.js +54 -0
  254. package/dist/src/openapi/src/models/Entities.d.ts +72 -0
  255. package/dist/src/openapi/src/models/Entities.js +70 -0
  256. package/dist/src/openapi/src/models/ErrorExtensions.d.ts +64 -0
  257. package/dist/src/openapi/src/models/ErrorExtensions.js +70 -0
  258. package/dist/src/openapi/src/models/ErrorResponse.d.ts +91 -0
  259. package/dist/src/openapi/src/models/ErrorResponse.js +87 -0
  260. package/dist/src/openapi/src/models/ErrorResponsePathInner.d.ts +22 -0
  261. package/dist/src/openapi/src/models/ErrorResponsePathInner.js +50 -0
  262. package/dist/src/openapi/src/models/ExtMediaAvailability.d.ts +47 -0
  263. package/dist/src/openapi/src/models/ExtMediaAvailability.js +59 -0
  264. package/dist/src/openapi/src/models/ExtendedEntities.d.ts +34 -0
  265. package/dist/src/openapi/src/models/ExtendedEntities.js +52 -0
  266. package/dist/src/openapi/src/models/FavoriteTweet.d.ts +33 -0
  267. package/dist/src/openapi/src/models/FavoriteTweet.js +49 -0
  268. package/dist/src/openapi/src/models/FavoriteTweetResponse.d.ts +41 -0
  269. package/dist/src/openapi/src/models/FavoriteTweetResponse.js +55 -0
  270. package/dist/src/openapi/src/models/FeedbackInfo.d.ts +40 -0
  271. package/dist/src/openapi/src/models/FeedbackInfo.js +52 -0
  272. package/dist/src/openapi/src/models/FollowResponse.d.ts +41 -0
  273. package/dist/src/openapi/src/models/FollowResponse.js +55 -0
  274. package/dist/src/openapi/src/models/FollowResponseData.d.ts +34 -0
  275. package/dist/src/openapi/src/models/FollowResponseData.js +50 -0
  276. package/dist/src/openapi/src/models/FollowResponseResult.d.ts +41 -0
  277. package/dist/src/openapi/src/models/FollowResponseResult.js +57 -0
  278. package/dist/src/openapi/src/models/FollowResponseUser.d.ts +34 -0
  279. package/dist/src/openapi/src/models/FollowResponseUser.js +52 -0
  280. package/dist/src/openapi/src/models/FollowTimeline.d.ts +34 -0
  281. package/dist/src/openapi/src/models/FollowTimeline.js +52 -0
  282. package/dist/src/openapi/src/models/GrokImageAnnotation.d.ts +39 -0
  283. package/dist/src/openapi/src/models/GrokImageAnnotation.js +55 -0
  284. package/dist/src/openapi/src/models/GrokShareAttachment.d.ts +34 -0
  285. package/dist/src/openapi/src/models/GrokShareAttachment.js +52 -0
  286. package/dist/src/openapi/src/models/GrokShareAttachmentItem.d.ts +46 -0
  287. package/dist/src/openapi/src/models/GrokShareAttachmentItem.js +58 -0
  288. package/dist/src/openapi/src/models/Highlight.d.ts +34 -0
  289. package/dist/src/openapi/src/models/Highlight.js +52 -0
  290. package/dist/src/openapi/src/models/HomeTimelineHome.d.ts +34 -0
  291. package/dist/src/openapi/src/models/HomeTimelineHome.js +52 -0
  292. package/dist/src/openapi/src/models/HomeTimelineResponseData.d.ts +34 -0
  293. package/dist/src/openapi/src/models/HomeTimelineResponseData.js +52 -0
  294. package/dist/src/openapi/src/models/InstructionType.d.ts +34 -0
  295. package/dist/src/openapi/src/models/InstructionType.js +60 -0
  296. package/dist/src/openapi/src/models/InstructionUnion.d.ts +52 -0
  297. package/dist/src/openapi/src/models/InstructionUnion.js +94 -0
  298. package/dist/src/openapi/src/models/ItemContentUnion.d.ts +49 -0
  299. package/dist/src/openapi/src/models/ItemContentUnion.js +89 -0
  300. package/dist/src/openapi/src/models/ItemResult.d.ts +41 -0
  301. package/dist/src/openapi/src/models/ItemResult.js +53 -0
  302. package/dist/src/openapi/src/models/LimitedActionResultsData.d.ts +53 -0
  303. package/dist/src/openapi/src/models/LimitedActionResultsData.js +71 -0
  304. package/dist/src/openapi/src/models/ListLatestTweetsTimelineResponse.d.ts +41 -0
  305. package/dist/src/openapi/src/models/ListLatestTweetsTimelineResponse.js +55 -0
  306. package/dist/src/openapi/src/models/ListTweetsTimelineData.d.ts +34 -0
  307. package/dist/src/openapi/src/models/ListTweetsTimelineData.js +52 -0
  308. package/dist/src/openapi/src/models/ListTweetsTimelineList.d.ts +34 -0
  309. package/dist/src/openapi/src/models/ListTweetsTimelineList.js +52 -0
  310. package/dist/src/openapi/src/models/LiveVideoStreamSource.d.ts +51 -0
  311. package/dist/src/openapi/src/models/LiveVideoStreamSource.js +63 -0
  312. package/dist/src/openapi/src/models/LiveVideoStreamStatusResponse.d.ts +58 -0
  313. package/dist/src/openapi/src/models/LiveVideoStreamStatusResponse.js +62 -0
  314. package/dist/src/openapi/src/models/Location.d.ts +39 -0
  315. package/dist/src/openapi/src/models/Location.js +55 -0
  316. package/dist/src/openapi/src/models/Media.d.ts +164 -0
  317. package/dist/src/openapi/src/models/Media.js +126 -0
  318. package/dist/src/openapi/src/models/MediaCommunityResult.d.ts +41 -0
  319. package/dist/src/openapi/src/models/MediaCommunityResult.js +57 -0
  320. package/dist/src/openapi/src/models/MediaCommunityResults.d.ts +34 -0
  321. package/dist/src/openapi/src/models/MediaCommunityResults.js +52 -0
  322. package/dist/src/openapi/src/models/MediaCommunityTweetData.d.ts +34 -0
  323. package/dist/src/openapi/src/models/MediaCommunityTweetData.js +52 -0
  324. package/dist/src/openapi/src/models/MediaExtended.d.ts +171 -0
  325. package/dist/src/openapi/src/models/MediaExtended.js +127 -0
  326. package/dist/src/openapi/src/models/MediaOriginalInfo.d.ts +46 -0
  327. package/dist/src/openapi/src/models/MediaOriginalInfo.js +58 -0
  328. package/dist/src/openapi/src/models/MediaOriginalInfoFocusRect.d.ts +51 -0
  329. package/dist/src/openapi/src/models/MediaOriginalInfoFocusRect.js +63 -0
  330. package/dist/src/openapi/src/models/MediaResult.d.ts +40 -0
  331. package/dist/src/openapi/src/models/MediaResult.js +54 -0
  332. package/dist/src/openapi/src/models/MediaResults.d.ts +34 -0
  333. package/dist/src/openapi/src/models/MediaResults.js +52 -0
  334. package/dist/src/openapi/src/models/MediaSize.d.ts +53 -0
  335. package/dist/src/openapi/src/models/MediaSize.js +67 -0
  336. package/dist/src/openapi/src/models/MediaSizes.d.ts +52 -0
  337. package/dist/src/openapi/src/models/MediaSizes.js +64 -0
  338. package/dist/src/openapi/src/models/MediaStats.d.ts +33 -0
  339. package/dist/src/openapi/src/models/MediaStats.js +51 -0
  340. package/dist/src/openapi/src/models/MediaVideoInfo.d.ts +46 -0
  341. package/dist/src/openapi/src/models/MediaVideoInfo.js +58 -0
  342. package/dist/src/openapi/src/models/MediaVideoInfoVariant.d.ts +45 -0
  343. package/dist/src/openapi/src/models/MediaVideoInfoVariant.js +57 -0
  344. package/dist/src/openapi/src/models/MediaVisibilityResults.d.ts +34 -0
  345. package/dist/src/openapi/src/models/MediaVisibilityResults.js +52 -0
  346. package/dist/src/openapi/src/models/MediaVisibilityResultsBlurredImageInterstitial.d.ts +46 -0
  347. package/dist/src/openapi/src/models/MediaVisibilityResultsBlurredImageInterstitial.js +60 -0
  348. package/dist/src/openapi/src/models/ModuleEntry.d.ts +48 -0
  349. package/dist/src/openapi/src/models/ModuleEntry.js +58 -0
  350. package/dist/src/openapi/src/models/ModuleItem.d.ts +46 -0
  351. package/dist/src/openapi/src/models/ModuleItem.js +58 -0
  352. package/dist/src/openapi/src/models/NoteTweet.d.ts +40 -0
  353. package/dist/src/openapi/src/models/NoteTweet.js +56 -0
  354. package/dist/src/openapi/src/models/NoteTweetResult.d.ts +34 -0
  355. package/dist/src/openapi/src/models/NoteTweetResult.js +52 -0
  356. package/dist/src/openapi/src/models/NoteTweetResultData.d.ts +60 -0
  357. package/dist/src/openapi/src/models/NoteTweetResultData.js +66 -0
  358. package/dist/src/openapi/src/models/NoteTweetResultMedia.d.ts +34 -0
  359. package/dist/src/openapi/src/models/NoteTweetResultMedia.js +52 -0
  360. package/dist/src/openapi/src/models/NoteTweetResultMediaInlineMedia.d.ts +39 -0
  361. package/dist/src/openapi/src/models/NoteTweetResultMediaInlineMedia.js +55 -0
  362. package/dist/src/openapi/src/models/NoteTweetResultRichText.d.ts +34 -0
  363. package/dist/src/openapi/src/models/NoteTweetResultRichText.js +52 -0
  364. package/dist/src/openapi/src/models/NoteTweetResultRichTextTag.d.ts +53 -0
  365. package/dist/src/openapi/src/models/NoteTweetResultRichTextTag.js +67 -0
  366. package/dist/src/openapi/src/models/NotificationTemplate.d.ts +46 -0
  367. package/dist/src/openapi/src/models/NotificationTemplate.js +54 -0
  368. package/dist/src/openapi/src/models/NotificationsResult.d.ts +47 -0
  369. package/dist/src/openapi/src/models/NotificationsResult.js +61 -0
  370. package/dist/src/openapi/src/models/NotificationsTimelineData.d.ts +34 -0
  371. package/dist/src/openapi/src/models/NotificationsTimelineData.js +52 -0
  372. package/dist/src/openapi/src/models/NotificationsTimelineResponse.d.ts +41 -0
  373. package/dist/src/openapi/src/models/NotificationsTimelineResponse.js +55 -0
  374. package/dist/src/openapi/src/models/NotificationsUserResults.d.ts +34 -0
  375. package/dist/src/openapi/src/models/NotificationsUserResults.js +52 -0
  376. package/dist/src/openapi/src/models/NotificationsViewerV2.d.ts +34 -0
  377. package/dist/src/openapi/src/models/NotificationsViewerV2.js +52 -0
  378. package/dist/src/openapi/src/models/OneFactorLoginEligibility.d.ts +33 -0
  379. package/dist/src/openapi/src/models/OneFactorLoginEligibility.js +51 -0
  380. package/dist/src/openapi/src/models/OtherObjectAll.d.ts +34 -0
  381. package/dist/src/openapi/src/models/OtherObjectAll.js +50 -0
  382. package/dist/src/openapi/src/models/PeriscopeUser.d.ts +51 -0
  383. package/dist/src/openapi/src/models/PeriscopeUser.js +55 -0
  384. package/dist/src/openapi/src/models/PostCreateBookmarkRequest.d.ts +40 -0
  385. package/dist/src/openapi/src/models/PostCreateBookmarkRequest.js +56 -0
  386. package/dist/src/openapi/src/models/PostCreateBookmarkRequestVariables.d.ts +33 -0
  387. package/dist/src/openapi/src/models/PostCreateBookmarkRequestVariables.js +51 -0
  388. package/dist/src/openapi/src/models/PostCreateRetweetRequest.d.ts +40 -0
  389. package/dist/src/openapi/src/models/PostCreateRetweetRequest.js +56 -0
  390. package/dist/src/openapi/src/models/PostCreateRetweetRequestVariables.d.ts +39 -0
  391. package/dist/src/openapi/src/models/PostCreateRetweetRequestVariables.js +55 -0
  392. package/dist/src/openapi/src/models/PostCreateTweetRequest.d.ts +47 -0
  393. package/dist/src/openapi/src/models/PostCreateTweetRequest.js +61 -0
  394. package/dist/src/openapi/src/models/PostCreateTweetRequestFeatures.d.ts +201 -0
  395. package/dist/src/openapi/src/models/PostCreateTweetRequestFeatures.js +163 -0
  396. package/dist/src/openapi/src/models/PostCreateTweetRequestVariables.d.ts +78 -0
  397. package/dist/src/openapi/src/models/PostCreateTweetRequestVariables.js +74 -0
  398. package/dist/src/openapi/src/models/PostCreateTweetRequestVariablesConversationControl.d.ts +33 -0
  399. package/dist/src/openapi/src/models/PostCreateTweetRequestVariablesConversationControl.js +51 -0
  400. package/dist/src/openapi/src/models/PostCreateTweetRequestVariablesMedia.d.ts +40 -0
  401. package/dist/src/openapi/src/models/PostCreateTweetRequestVariablesMedia.js +54 -0
  402. package/dist/src/openapi/src/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.d.ts +39 -0
  403. package/dist/src/openapi/src/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.js +55 -0
  404. package/dist/src/openapi/src/models/PostCreateTweetRequestVariablesReply.d.ts +39 -0
  405. package/dist/src/openapi/src/models/PostCreateTweetRequestVariablesReply.js +55 -0
  406. package/dist/src/openapi/src/models/PostDeleteBookmarkRequest.d.ts +40 -0
  407. package/dist/src/openapi/src/models/PostDeleteBookmarkRequest.js +56 -0
  408. package/dist/src/openapi/src/models/PostDeleteRetweetRequest.d.ts +40 -0
  409. package/dist/src/openapi/src/models/PostDeleteRetweetRequest.js +56 -0
  410. package/dist/src/openapi/src/models/PostDeleteRetweetRequestVariables.d.ts +39 -0
  411. package/dist/src/openapi/src/models/PostDeleteRetweetRequestVariables.js +55 -0
  412. package/dist/src/openapi/src/models/PostDeleteTweetRequest.d.ts +40 -0
  413. package/dist/src/openapi/src/models/PostDeleteTweetRequest.js +56 -0
  414. package/dist/src/openapi/src/models/PostFavoriteTweetRequest.d.ts +40 -0
  415. package/dist/src/openapi/src/models/PostFavoriteTweetRequest.js +56 -0
  416. package/dist/src/openapi/src/models/PostUnfavoriteTweetRequest.d.ts +40 -0
  417. package/dist/src/openapi/src/models/PostUnfavoriteTweetRequest.js +56 -0
  418. package/dist/src/openapi/src/models/PrimaryCommunityTopic.d.ts +39 -0
  419. package/dist/src/openapi/src/models/PrimaryCommunityTopic.js +55 -0
  420. package/dist/src/openapi/src/models/ProfileResponse.d.ts +41 -0
  421. package/dist/src/openapi/src/models/ProfileResponse.js +55 -0
  422. package/dist/src/openapi/src/models/ProfileResponseData.d.ts +34 -0
  423. package/dist/src/openapi/src/models/ProfileResponseData.js +50 -0
  424. package/dist/src/openapi/src/models/QuotedRefResult.d.ts +34 -0
  425. package/dist/src/openapi/src/models/QuotedRefResult.js +50 -0
  426. package/dist/src/openapi/src/models/QuotedStatusPermalink.d.ts +45 -0
  427. package/dist/src/openapi/src/models/QuotedStatusPermalink.js +59 -0
  428. package/dist/src/openapi/src/models/RankedCommunityResult.d.ts +41 -0
  429. package/dist/src/openapi/src/models/RankedCommunityResult.js +57 -0
  430. package/dist/src/openapi/src/models/RankedCommunityResults.d.ts +34 -0
  431. package/dist/src/openapi/src/models/RankedCommunityResults.js +52 -0
  432. package/dist/src/openapi/src/models/RankedCommunityTweetData.d.ts +34 -0
  433. package/dist/src/openapi/src/models/RankedCommunityTweetData.js +52 -0
  434. package/dist/src/openapi/src/models/Retweet.d.ts +40 -0
  435. package/dist/src/openapi/src/models/Retweet.js +56 -0
  436. package/dist/src/openapi/src/models/RetweetLegacy.d.ts +33 -0
  437. package/dist/src/openapi/src/models/RetweetLegacy.js +51 -0
  438. package/dist/src/openapi/src/models/RichMessage.d.ts +39 -0
  439. package/dist/src/openapi/src/models/RichMessage.js +51 -0
  440. package/dist/src/openapi/src/models/SearchByRawQuery.d.ts +34 -0
  441. package/dist/src/openapi/src/models/SearchByRawQuery.js +52 -0
  442. package/dist/src/openapi/src/models/SearchTimeline.d.ts +34 -0
  443. package/dist/src/openapi/src/models/SearchTimeline.js +52 -0
  444. package/dist/src/openapi/src/models/SearchTimelineData.d.ts +34 -0
  445. package/dist/src/openapi/src/models/SearchTimelineData.js +52 -0
  446. package/dist/src/openapi/src/models/SearchTimelineResponse.d.ts +41 -0
  447. package/dist/src/openapi/src/models/SearchTimelineResponse.js +55 -0
  448. package/dist/src/openapi/src/models/SelfThread.d.ts +33 -0
  449. package/dist/src/openapi/src/models/SelfThread.js +51 -0
  450. package/dist/src/openapi/src/models/SensitiveMediaWarning.d.ts +45 -0
  451. package/dist/src/openapi/src/models/SensitiveMediaWarning.js +53 -0
  452. package/dist/src/openapi/src/models/Session.d.ts +121 -0
  453. package/dist/src/openapi/src/models/Session.js +111 -0
  454. package/dist/src/openapi/src/models/SocialContextLandingUrl.d.ts +55 -0
  455. package/dist/src/openapi/src/models/SocialContextLandingUrl.js +63 -0
  456. package/dist/src/openapi/src/models/SocialContextUnion.d.ts +28 -0
  457. package/dist/src/openapi/src/models/SocialContextUnion.js +54 -0
  458. package/dist/src/openapi/src/models/SocialContextUnionType.d.ts +26 -0
  459. package/dist/src/openapi/src/models/SocialContextUnionType.js +52 -0
  460. package/dist/src/openapi/src/models/SuperFollowsReplyUserResult.d.ts +34 -0
  461. package/dist/src/openapi/src/models/SuperFollowsReplyUserResult.js +52 -0
  462. package/dist/src/openapi/src/models/SuperFollowsReplyUserResultData.d.ts +41 -0
  463. package/dist/src/openapi/src/models/SuperFollowsReplyUserResultData.js +57 -0
  464. package/dist/src/openapi/src/models/SuperFollowsReplyUserResultLegacy.d.ts +33 -0
  465. package/dist/src/openapi/src/models/SuperFollowsReplyUserResultLegacy.js +51 -0
  466. package/dist/src/openapi/src/models/Text.d.ts +40 -0
  467. package/dist/src/openapi/src/models/Text.js +56 -0
  468. package/dist/src/openapi/src/models/TextEntity.d.ts +46 -0
  469. package/dist/src/openapi/src/models/TextEntity.js +60 -0
  470. package/dist/src/openapi/src/models/TextEntityRef.d.ts +59 -0
  471. package/dist/src/openapi/src/models/TextEntityRef.js +72 -0
  472. package/dist/src/openapi/src/models/TextHighlight.d.ts +39 -0
  473. package/dist/src/openapi/src/models/TextHighlight.js +55 -0
  474. package/dist/src/openapi/src/models/ThumbnailImage.d.ts +45 -0
  475. package/dist/src/openapi/src/models/ThumbnailImage.js +53 -0
  476. package/dist/src/openapi/src/models/Timeline.d.ts +50 -0
  477. package/dist/src/openapi/src/models/Timeline.js +56 -0
  478. package/dist/src/openapi/src/models/TimelineAddEntries.d.ts +41 -0
  479. package/dist/src/openapi/src/models/TimelineAddEntries.js +57 -0
  480. package/dist/src/openapi/src/models/TimelineAddEntry.d.ts +46 -0
  481. package/dist/src/openapi/src/models/TimelineAddEntry.js +60 -0
  482. package/dist/src/openapi/src/models/TimelineAddToModule.d.ts +53 -0
  483. package/dist/src/openapi/src/models/TimelineAddToModule.js +63 -0
  484. package/dist/src/openapi/src/models/TimelineClearCache.d.ts +34 -0
  485. package/dist/src/openapi/src/models/TimelineClearCache.js +52 -0
  486. package/dist/src/openapi/src/models/TimelineClearEntriesUnreadState.d.ts +34 -0
  487. package/dist/src/openapi/src/models/TimelineClearEntriesUnreadState.js +52 -0
  488. package/dist/src/openapi/src/models/TimelineCommunity.d.ts +35 -0
  489. package/dist/src/openapi/src/models/TimelineCommunity.js +52 -0
  490. package/dist/src/openapi/src/models/TimelineCoverBehavior.d.ts +48 -0
  491. package/dist/src/openapi/src/models/TimelineCoverBehavior.js +62 -0
  492. package/dist/src/openapi/src/models/TimelineCoverBehaviorUrl.d.ts +46 -0
  493. package/dist/src/openapi/src/models/TimelineCoverBehaviorUrl.js +62 -0
  494. package/dist/src/openapi/src/models/TimelineGeneralContext.d.ts +74 -0
  495. package/dist/src/openapi/src/models/TimelineGeneralContext.js +74 -0
  496. package/dist/src/openapi/src/models/TimelineHalfCover.d.ts +86 -0
  497. package/dist/src/openapi/src/models/TimelineHalfCover.js +91 -0
  498. package/dist/src/openapi/src/models/TimelineMarkEntriesUnreadGreaterThanSortIndex.d.ts +40 -0
  499. package/dist/src/openapi/src/models/TimelineMarkEntriesUnreadGreaterThanSortIndex.js +54 -0
  500. package/dist/src/openapi/src/models/TimelineMessagePrompt.d.ts +35 -0
  501. package/dist/src/openapi/src/models/TimelineMessagePrompt.js +52 -0
  502. package/dist/src/openapi/src/models/TimelineNotification.d.ts +80 -0
  503. package/dist/src/openapi/src/models/TimelineNotification.js +84 -0
  504. package/dist/src/openapi/src/models/TimelinePinEntry.d.ts +41 -0
  505. package/dist/src/openapi/src/models/TimelinePinEntry.js +57 -0
  506. package/dist/src/openapi/src/models/TimelinePrompt.d.ts +35 -0
  507. package/dist/src/openapi/src/models/TimelinePrompt.js +52 -0
  508. package/dist/src/openapi/src/models/TimelineReplaceEntry.d.ts +47 -0
  509. package/dist/src/openapi/src/models/TimelineReplaceEntry.js +61 -0
  510. package/dist/src/openapi/src/models/TimelineResponse.d.ts +41 -0
  511. package/dist/src/openapi/src/models/TimelineResponse.js +55 -0
  512. package/dist/src/openapi/src/models/TimelineResult.d.ts +40 -0
  513. package/dist/src/openapi/src/models/TimelineResult.js +52 -0
  514. package/dist/src/openapi/src/models/TimelineShowAlert.d.ts +102 -0
  515. package/dist/src/openapi/src/models/TimelineShowAlert.js +87 -0
  516. package/dist/src/openapi/src/models/TimelineShowAlertRichText.d.ts +41 -0
  517. package/dist/src/openapi/src/models/TimelineShowAlertRichText.js +51 -0
  518. package/dist/src/openapi/src/models/TimelineShowCover.d.ts +48 -0
  519. package/dist/src/openapi/src/models/TimelineShowCover.js +62 -0
  520. package/dist/src/openapi/src/models/TimelineTerminateTimeline.d.ts +49 -0
  521. package/dist/src/openapi/src/models/TimelineTerminateTimeline.js +65 -0
  522. package/dist/src/openapi/src/models/TimelineTimelineCursor.d.ts +73 -0
  523. package/dist/src/openapi/src/models/TimelineTimelineCursor.js +71 -0
  524. package/dist/src/openapi/src/models/TimelineTimelineItem.d.ts +63 -0
  525. package/dist/src/openapi/src/models/TimelineTimelineItem.js +67 -0
  526. package/dist/src/openapi/src/models/TimelineTimelineModule.d.ts +93 -0
  527. package/dist/src/openapi/src/models/TimelineTimelineModule.js +77 -0
  528. package/dist/src/openapi/src/models/TimelineTombstone.d.ts +61 -0
  529. package/dist/src/openapi/src/models/TimelineTombstone.js +65 -0
  530. package/dist/src/openapi/src/models/TimelineTopicContext.d.ts +54 -0
  531. package/dist/src/openapi/src/models/TimelineTopicContext.js +62 -0
  532. package/dist/src/openapi/src/models/TimelineTrend.d.ts +88 -0
  533. package/dist/src/openapi/src/models/TimelineTrend.js +80 -0
  534. package/dist/src/openapi/src/models/TimelineTweet.d.ts +92 -0
  535. package/dist/src/openapi/src/models/TimelineTweet.js +86 -0
  536. package/dist/src/openapi/src/models/TimelineUser.d.ts +71 -0
  537. package/dist/src/openapi/src/models/TimelineUser.js +79 -0
  538. package/dist/src/openapi/src/models/Timestamp.d.ts +45 -0
  539. package/dist/src/openapi/src/models/Timestamp.js +59 -0
  540. package/dist/src/openapi/src/models/TombstoneEntity.d.ts +46 -0
  541. package/dist/src/openapi/src/models/TombstoneEntity.js +54 -0
  542. package/dist/src/openapi/src/models/TombstoneInfo.d.ts +40 -0
  543. package/dist/src/openapi/src/models/TombstoneInfo.js +52 -0
  544. package/dist/src/openapi/src/models/TombstoneRef.d.ts +59 -0
  545. package/dist/src/openapi/src/models/TombstoneRef.js +66 -0
  546. package/dist/src/openapi/src/models/TombstoneRichText.d.ts +46 -0
  547. package/dist/src/openapi/src/models/TombstoneRichText.js +54 -0
  548. package/dist/src/openapi/src/models/TopicContext.d.ts +69 -0
  549. package/dist/src/openapi/src/models/TopicContext.js +61 -0
  550. package/dist/src/openapi/src/models/Tracing.d.ts +33 -0
  551. package/dist/src/openapi/src/models/Tracing.js +51 -0
  552. package/dist/src/openapi/src/models/TrendImage.d.ts +33 -0
  553. package/dist/src/openapi/src/models/TrendImage.js +49 -0
  554. package/dist/src/openapi/src/models/TrendMetadata.d.ts +34 -0
  555. package/dist/src/openapi/src/models/TrendMetadata.js +50 -0
  556. package/dist/src/openapi/src/models/TrendResults.d.ts +33 -0
  557. package/dist/src/openapi/src/models/TrendResults.js +51 -0
  558. package/dist/src/openapi/src/models/Tweet.d.ts +217 -0
  559. package/dist/src/openapi/src/models/Tweet.js +125 -0
  560. package/dist/src/openapi/src/models/TweetCard.d.ts +40 -0
  561. package/dist/src/openapi/src/models/TweetCard.js +52 -0
  562. package/dist/src/openapi/src/models/TweetCardLegacy.d.ts +60 -0
  563. package/dist/src/openapi/src/models/TweetCardLegacy.js +66 -0
  564. package/dist/src/openapi/src/models/TweetCardLegacyBindingValue.d.ts +40 -0
  565. package/dist/src/openapi/src/models/TweetCardLegacyBindingValue.js +56 -0
  566. package/dist/src/openapi/src/models/TweetCardLegacyBindingValueData.d.ts +73 -0
  567. package/dist/src/openapi/src/models/TweetCardLegacyBindingValueData.js +65 -0
  568. package/dist/src/openapi/src/models/TweetCardLegacyBindingValueDataImage.d.ts +51 -0
  569. package/dist/src/openapi/src/models/TweetCardLegacyBindingValueDataImage.js +61 -0
  570. package/dist/src/openapi/src/models/TweetCardPlatform.d.ts +41 -0
  571. package/dist/src/openapi/src/models/TweetCardPlatform.js +57 -0
  572. package/dist/src/openapi/src/models/TweetCardPlatformAudience.d.ts +40 -0
  573. package/dist/src/openapi/src/models/TweetCardPlatformAudience.js +58 -0
  574. package/dist/src/openapi/src/models/TweetCardPlatformData.d.ts +34 -0
  575. package/dist/src/openapi/src/models/TweetCardPlatformData.js +52 -0
  576. package/dist/src/openapi/src/models/TweetCardPlatformDevice.d.ts +39 -0
  577. package/dist/src/openapi/src/models/TweetCardPlatformDevice.js +55 -0
  578. package/dist/src/openapi/src/models/TweetDetailResponse.d.ts +41 -0
  579. package/dist/src/openapi/src/models/TweetDetailResponse.js +55 -0
  580. package/dist/src/openapi/src/models/TweetDetailResponseData.d.ts +34 -0
  581. package/dist/src/openapi/src/models/TweetDetailResponseData.js +50 -0
  582. package/dist/src/openapi/src/models/TweetEditControl.d.ts +64 -0
  583. package/dist/src/openapi/src/models/TweetEditControl.js +60 -0
  584. package/dist/src/openapi/src/models/TweetEditControlInitial.d.ts +51 -0
  585. package/dist/src/openapi/src/models/TweetEditControlInitial.js +63 -0
  586. package/dist/src/openapi/src/models/TweetEditPrespective.d.ts +39 -0
  587. package/dist/src/openapi/src/models/TweetEditPrespective.js +51 -0
  588. package/dist/src/openapi/src/models/TweetFavoritersResponse.d.ts +41 -0
  589. package/dist/src/openapi/src/models/TweetFavoritersResponse.js +55 -0
  590. package/dist/src/openapi/src/models/TweetFavoritersResponseData.d.ts +34 -0
  591. package/dist/src/openapi/src/models/TweetFavoritersResponseData.js +50 -0
  592. package/dist/src/openapi/src/models/TweetInterstitial.d.ts +61 -0
  593. package/dist/src/openapi/src/models/TweetInterstitial.js +73 -0
  594. package/dist/src/openapi/src/models/TweetInterstitialRevealText.d.ts +46 -0
  595. package/dist/src/openapi/src/models/TweetInterstitialRevealText.js +60 -0
  596. package/dist/src/openapi/src/models/TweetInterstitialText.d.ts +46 -0
  597. package/dist/src/openapi/src/models/TweetInterstitialText.js +60 -0
  598. package/dist/src/openapi/src/models/TweetInterstitialTextEntity.d.ts +46 -0
  599. package/dist/src/openapi/src/models/TweetInterstitialTextEntity.js +60 -0
  600. package/dist/src/openapi/src/models/TweetInterstitialTextEntityRef.d.ts +59 -0
  601. package/dist/src/openapi/src/models/TweetInterstitialTextEntityRef.js +72 -0
  602. package/dist/src/openapi/src/models/TweetLegacy.d.ts +236 -0
  603. package/dist/src/openapi/src/models/TweetLegacy.js +162 -0
  604. package/dist/src/openapi/src/models/TweetLegacyScopes.d.ts +33 -0
  605. package/dist/src/openapi/src/models/TweetLegacyScopes.js +51 -0
  606. package/dist/src/openapi/src/models/TweetLimitedActionResults.d.ts +34 -0
  607. package/dist/src/openapi/src/models/TweetLimitedActionResults.js +52 -0
  608. package/dist/src/openapi/src/models/TweetPreviewDisplay.d.ts +55 -0
  609. package/dist/src/openapi/src/models/TweetPreviewDisplay.js +67 -0
  610. package/dist/src/openapi/src/models/TweetPreviewDisplayCta.d.ts +40 -0
  611. package/dist/src/openapi/src/models/TweetPreviewDisplayCta.js +56 -0
  612. package/dist/src/openapi/src/models/TweetPreviewDisplayCtaUrl.d.ts +48 -0
  613. package/dist/src/openapi/src/models/TweetPreviewDisplayCtaUrl.js +64 -0
  614. package/dist/src/openapi/src/models/TweetPreviewDisplayTweet.d.ts +95 -0
  615. package/dist/src/openapi/src/models/TweetPreviewDisplayTweet.js +93 -0
  616. package/dist/src/openapi/src/models/TweetPreviewDisplayTweetViewCount.d.ts +33 -0
  617. package/dist/src/openapi/src/models/TweetPreviewDisplayTweetViewCount.js +51 -0
  618. package/dist/src/openapi/src/models/TweetPreviousCounts.d.ts +57 -0
  619. package/dist/src/openapi/src/models/TweetPreviousCounts.js +67 -0
  620. package/dist/src/openapi/src/models/TweetResultByRestIdData.d.ts +34 -0
  621. package/dist/src/openapi/src/models/TweetResultByRestIdData.js +50 -0
  622. package/dist/src/openapi/src/models/TweetResultByRestIdResponse.d.ts +41 -0
  623. package/dist/src/openapi/src/models/TweetResultByRestIdResponse.js +55 -0
  624. package/dist/src/openapi/src/models/TweetRetweetersResponse.d.ts +41 -0
  625. package/dist/src/openapi/src/models/TweetRetweetersResponse.js +55 -0
  626. package/dist/src/openapi/src/models/TweetRetweetersResponseData.d.ts +34 -0
  627. package/dist/src/openapi/src/models/TweetRetweetersResponseData.js +50 -0
  628. package/dist/src/openapi/src/models/TweetTombstone.d.ts +35 -0
  629. package/dist/src/openapi/src/models/TweetTombstone.js +52 -0
  630. package/dist/src/openapi/src/models/TweetUnavailable.d.ts +40 -0
  631. package/dist/src/openapi/src/models/TweetUnavailable.js +52 -0
  632. package/dist/src/openapi/src/models/TweetUnion.d.ts +37 -0
  633. package/dist/src/openapi/src/models/TweetUnion.js +69 -0
  634. package/dist/src/openapi/src/models/TweetView.d.ts +47 -0
  635. package/dist/src/openapi/src/models/TweetView.js +61 -0
  636. package/dist/src/openapi/src/models/TweetWithVisibilityResults.d.ts +63 -0
  637. package/dist/src/openapi/src/models/TweetWithVisibilityResults.js +65 -0
  638. package/dist/src/openapi/src/models/TypeName.d.ts +54 -0
  639. package/dist/src/openapi/src/models/TypeName.js +80 -0
  640. package/dist/src/openapi/src/models/UnfavoriteTweet.d.ts +33 -0
  641. package/dist/src/openapi/src/models/UnfavoriteTweet.js +49 -0
  642. package/dist/src/openapi/src/models/UnfavoriteTweetResponse.d.ts +41 -0
  643. package/dist/src/openapi/src/models/UnfavoriteTweetResponse.js +55 -0
  644. package/dist/src/openapi/src/models/UnifiedCard.d.ts +40 -0
  645. package/dist/src/openapi/src/models/UnifiedCard.js +58 -0
  646. package/dist/src/openapi/src/models/Url.d.ts +51 -0
  647. package/dist/src/openapi/src/models/Url.js +61 -0
  648. package/dist/src/openapi/src/models/UrtEndpointOptions.d.ts +40 -0
  649. package/dist/src/openapi/src/models/UrtEndpointOptions.js +56 -0
  650. package/dist/src/openapi/src/models/UrtEndpointRequestParams.d.ts +39 -0
  651. package/dist/src/openapi/src/models/UrtEndpointRequestParams.js +55 -0
  652. package/dist/src/openapi/src/models/User.d.ts +281 -0
  653. package/dist/src/openapi/src/models/User.js +164 -0
  654. package/dist/src/openapi/src/models/UserAvatar.d.ts +33 -0
  655. package/dist/src/openapi/src/models/UserAvatar.js +49 -0
  656. package/dist/src/openapi/src/models/UserCore.d.ts +45 -0
  657. package/dist/src/openapi/src/models/UserCore.js +59 -0
  658. package/dist/src/openapi/src/models/UserDmPermissions.d.ts +33 -0
  659. package/dist/src/openapi/src/models/UserDmPermissions.js +49 -0
  660. package/dist/src/openapi/src/models/UserFeatures.d.ts +33 -0
  661. package/dist/src/openapi/src/models/UserFeatures.js +51 -0
  662. package/dist/src/openapi/src/models/UserHighlightsInfo.d.ts +39 -0
  663. package/dist/src/openapi/src/models/UserHighlightsInfo.js +55 -0
  664. package/dist/src/openapi/src/models/UserHighlightsTweetsData.d.ts +34 -0
  665. package/dist/src/openapi/src/models/UserHighlightsTweetsData.js +50 -0
  666. package/dist/src/openapi/src/models/UserHighlightsTweetsResponse.d.ts +41 -0
  667. package/dist/src/openapi/src/models/UserHighlightsTweetsResponse.js +55 -0
  668. package/dist/src/openapi/src/models/UserHighlightsTweetsResult.d.ts +41 -0
  669. package/dist/src/openapi/src/models/UserHighlightsTweetsResult.js +57 -0
  670. package/dist/src/openapi/src/models/UserHighlightsTweetsTimeline.d.ts +34 -0
  671. package/dist/src/openapi/src/models/UserHighlightsTweetsTimeline.js +52 -0
  672. package/dist/src/openapi/src/models/UserHighlightsTweetsUser.d.ts +34 -0
  673. package/dist/src/openapi/src/models/UserHighlightsTweetsUser.js +52 -0
  674. package/dist/src/openapi/src/models/UserLegacy.d.ts +283 -0
  675. package/dist/src/openapi/src/models/UserLegacy.js +185 -0
  676. package/dist/src/openapi/src/models/UserLegacyExtendedProfile.d.ts +34 -0
  677. package/dist/src/openapi/src/models/UserLegacyExtendedProfile.js +50 -0
  678. package/dist/src/openapi/src/models/UserLegacyExtendedProfileBirthdate.d.ts +79 -0
  679. package/dist/src/openapi/src/models/UserLegacyExtendedProfileBirthdate.js +86 -0
  680. package/dist/src/openapi/src/models/UserLocation.d.ts +33 -0
  681. package/dist/src/openapi/src/models/UserLocation.js +49 -0
  682. package/dist/src/openapi/src/models/UserMediaPermissions.d.ts +33 -0
  683. package/dist/src/openapi/src/models/UserMediaPermissions.js +49 -0
  684. package/dist/src/openapi/src/models/UserPrivacy.d.ts +33 -0
  685. package/dist/src/openapi/src/models/UserPrivacy.js +49 -0
  686. package/dist/src/openapi/src/models/UserProfessional.d.ts +54 -0
  687. package/dist/src/openapi/src/models/UserProfessional.js +68 -0
  688. package/dist/src/openapi/src/models/UserProfessionalCategory.d.ts +45 -0
  689. package/dist/src/openapi/src/models/UserProfessionalCategory.js +59 -0
  690. package/dist/src/openapi/src/models/UserProfileBio.d.ts +33 -0
  691. package/dist/src/openapi/src/models/UserProfileBio.js +49 -0
  692. package/dist/src/openapi/src/models/UserRelationshipPerspectives.d.ts +57 -0
  693. package/dist/src/openapi/src/models/UserRelationshipPerspectives.js +57 -0
  694. package/dist/src/openapi/src/models/UserResponse.d.ts +41 -0
  695. package/dist/src/openapi/src/models/UserResponse.js +55 -0
  696. package/dist/src/openapi/src/models/UserResponseData.d.ts +34 -0
  697. package/dist/src/openapi/src/models/UserResponseData.js +50 -0
  698. package/dist/src/openapi/src/models/UserResultByScreenName.d.ts +40 -0
  699. package/dist/src/openapi/src/models/UserResultByScreenName.js +56 -0
  700. package/dist/src/openapi/src/models/UserResultByScreenNameLegacy.d.ts +69 -0
  701. package/dist/src/openapi/src/models/UserResultByScreenNameLegacy.js +61 -0
  702. package/dist/src/openapi/src/models/UserResultByScreenNameResult.d.ts +61 -0
  703. package/dist/src/openapi/src/models/UserResultByScreenNameResult.js +69 -0
  704. package/dist/src/openapi/src/models/UserResultCore.d.ts +34 -0
  705. package/dist/src/openapi/src/models/UserResultCore.js +52 -0
  706. package/dist/src/openapi/src/models/UserResults.d.ts +34 -0
  707. package/dist/src/openapi/src/models/UserResults.js +50 -0
  708. package/dist/src/openapi/src/models/UserTipJarSettings.d.ts +81 -0
  709. package/dist/src/openapi/src/models/UserTipJarSettings.js +65 -0
  710. package/dist/src/openapi/src/models/UserTweetsData.d.ts +34 -0
  711. package/dist/src/openapi/src/models/UserTweetsData.js +50 -0
  712. package/dist/src/openapi/src/models/UserTweetsResponse.d.ts +41 -0
  713. package/dist/src/openapi/src/models/UserTweetsResponse.js +55 -0
  714. package/dist/src/openapi/src/models/UserTweetsResultV1.d.ts +41 -0
  715. package/dist/src/openapi/src/models/UserTweetsResultV1.js +57 -0
  716. package/dist/src/openapi/src/models/UserTweetsResultV2.d.ts +41 -0
  717. package/dist/src/openapi/src/models/UserTweetsResultV2.js +57 -0
  718. package/dist/src/openapi/src/models/UserTweetsUser.d.ts +34 -0
  719. package/dist/src/openapi/src/models/UserTweetsUser.js +52 -0
  720. package/dist/src/openapi/src/models/UserUnavailable.d.ts +46 -0
  721. package/dist/src/openapi/src/models/UserUnavailable.js +58 -0
  722. package/dist/src/openapi/src/models/UserUnion.d.ts +28 -0
  723. package/dist/src/openapi/src/models/UserUnion.js +54 -0
  724. package/dist/src/openapi/src/models/UserValue.d.ts +33 -0
  725. package/dist/src/openapi/src/models/UserValue.js +51 -0
  726. package/dist/src/openapi/src/models/UserVerification.d.ts +33 -0
  727. package/dist/src/openapi/src/models/UserVerification.js +49 -0
  728. package/dist/src/openapi/src/models/UserVerificationInfo.d.ts +40 -0
  729. package/dist/src/openapi/src/models/UserVerificationInfo.js +54 -0
  730. package/dist/src/openapi/src/models/UserVerificationInfoReason.d.ts +46 -0
  731. package/dist/src/openapi/src/models/UserVerificationInfoReason.js +58 -0
  732. package/dist/src/openapi/src/models/UserVerificationInfoReasonDescription.d.ts +40 -0
  733. package/dist/src/openapi/src/models/UserVerificationInfoReasonDescription.js +56 -0
  734. package/dist/src/openapi/src/models/UserVerificationInfoReasonDescriptionEntities.d.ts +46 -0
  735. package/dist/src/openapi/src/models/UserVerificationInfoReasonDescriptionEntities.js +60 -0
  736. package/dist/src/openapi/src/models/UserVerificationInfoReasonDescriptionEntitiesRef.d.ts +46 -0
  737. package/dist/src/openapi/src/models/UserVerificationInfoReasonDescriptionEntitiesRef.js +62 -0
  738. package/dist/src/openapi/src/models/UsersResponse.d.ts +41 -0
  739. package/dist/src/openapi/src/models/UsersResponse.js +55 -0
  740. package/dist/src/openapi/src/models/UsersResponseData.d.ts +34 -0
  741. package/dist/src/openapi/src/models/UsersResponseData.js +50 -0
  742. package/dist/src/openapi/src/models/index.d.ts +336 -0
  743. package/dist/src/openapi/src/models/index.js +354 -0
  744. package/dist/src/openapi/src/runtime.d.ts +185 -0
  745. package/dist/src/openapi/src/runtime.js +339 -0
  746. package/dist/src/utils/api.d.ts +30 -0
  747. package/dist/src/utils/api.js +270 -0
  748. package/dist/src/utils/index.d.ts +2 -0
  749. package/dist/src/utils/index.js +18 -0
  750. package/package.json +41 -0
@@ -0,0 +1,1729 @@
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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ var desc = Object.getOwnPropertyDescriptor(m, k);
18
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19
+ desc = { enumerable: true, get: function() { return m[k]; } };
20
+ }
21
+ Object.defineProperty(o, k2, desc);
22
+ }) : (function(o, m, k, k2) {
23
+ if (k2 === undefined) k2 = k;
24
+ o[k2] = m[k];
25
+ }));
26
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
27
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
28
+ }) : function(o, v) {
29
+ o["default"] = v;
30
+ });
31
+ var __importStar = (this && this.__importStar) || (function () {
32
+ var ownKeys = function(o) {
33
+ ownKeys = Object.getOwnPropertyNames || function (o) {
34
+ var ar = [];
35
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
36
+ return ar;
37
+ };
38
+ return ownKeys(o);
39
+ };
40
+ return function (mod) {
41
+ if (mod && mod.__esModule) return mod;
42
+ var result = {};
43
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
44
+ __setModuleDefault(result, mod);
45
+ return result;
46
+ };
47
+ })();
48
+ Object.defineProperty(exports, "__esModule", { value: true });
49
+ exports.TweetApi = void 0;
50
+ const runtime = __importStar(require("../runtime"));
51
+ const index_1 = require("../models/index");
52
+ /**
53
+ *
54
+ */
55
+ class TweetApi extends runtime.BaseAPI {
56
+ /**
57
+ * Creates request options for getBookmarks without sending the request
58
+ */
59
+ async getBookmarksRequestOpts(requestParameters) {
60
+ if (requestParameters['pathQueryId'] == null) {
61
+ throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getBookmarks().');
62
+ }
63
+ if (requestParameters['variables'] == null) {
64
+ throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getBookmarks().');
65
+ }
66
+ if (requestParameters['features'] == null) {
67
+ throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getBookmarks().');
68
+ }
69
+ const queryParameters = {};
70
+ if (requestParameters['variables'] != null) {
71
+ queryParameters['variables'] = requestParameters['variables'];
72
+ }
73
+ if (requestParameters['features'] != null) {
74
+ queryParameters['features'] = requestParameters['features'];
75
+ }
76
+ const headerParameters = {};
77
+ if (this.configuration && this.configuration.apiKey) {
78
+ headerParameters["Accept"] = await this.configuration.apiKey("Accept"); // Accept authentication
79
+ }
80
+ if (this.configuration && this.configuration.apiKey) {
81
+ headerParameters["x-twitter-client-language"] = await this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
82
+ }
83
+ if (this.configuration && this.configuration.apiKey) {
84
+ headerParameters["Priority"] = await this.configuration.apiKey("Priority"); // Priority authentication
85
+ }
86
+ if (this.configuration && this.configuration.apiKey) {
87
+ headerParameters["Referer"] = await this.configuration.apiKey("Referer"); // Referer authentication
88
+ }
89
+ if (this.configuration && this.configuration.apiKey) {
90
+ headerParameters["Sec-Fetch-Dest"] = await this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
91
+ }
92
+ if (this.configuration && this.configuration.apiKey) {
93
+ headerParameters["Sec-Ch-Ua-Platform"] = await this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
94
+ }
95
+ if (this.configuration && this.configuration.apiKey) {
96
+ headerParameters["Sec-Fetch-Mode"] = await this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
97
+ }
98
+ if (this.configuration && this.configuration.apiKey) {
99
+ headerParameters["x-csrf-token"] = await this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
100
+ }
101
+ if (this.configuration && this.configuration.apiKey) {
102
+ headerParameters["x-client-uuid"] = await this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
103
+ }
104
+ if (this.configuration && this.configuration.accessToken) {
105
+ const token = this.configuration.accessToken;
106
+ const tokenString = await token("BearerAuth", []);
107
+ if (tokenString) {
108
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
109
+ }
110
+ }
111
+ if (this.configuration && this.configuration.apiKey) {
112
+ headerParameters["x-guest-token"] = await this.configuration.apiKey("x-guest-token"); // GuestToken authentication
113
+ }
114
+ if (this.configuration && this.configuration.apiKey) {
115
+ headerParameters["Sec-Ch-Ua"] = await this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
116
+ }
117
+ if (this.configuration && this.configuration.apiKey) {
118
+ headerParameters["x-client-transaction-id"] = await this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
119
+ }
120
+ if (this.configuration && this.configuration.apiKey) {
121
+ headerParameters["x-twitter-active-user"] = await this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
122
+ }
123
+ if (this.configuration && this.configuration.apiKey) {
124
+ headerParameters["user-agent"] = await this.configuration.apiKey("user-agent"); // UserAgent authentication
125
+ }
126
+ if (this.configuration && this.configuration.apiKey) {
127
+ headerParameters["Accept-Language"] = await this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
128
+ }
129
+ if (this.configuration && this.configuration.apiKey) {
130
+ headerParameters["Sec-Fetch-Site"] = await this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
131
+ }
132
+ if (this.configuration && this.configuration.apiKey) {
133
+ headerParameters["x-twitter-auth-type"] = await this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
134
+ }
135
+ if (this.configuration && this.configuration.apiKey) {
136
+ headerParameters["Sec-Ch-Ua-Mobile"] = await this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
137
+ }
138
+ if (this.configuration && this.configuration.apiKey) {
139
+ headerParameters["Accept-Encoding"] = await this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
140
+ }
141
+ let urlPath = `/graphql/{pathQueryId}/Bookmarks`;
142
+ urlPath = urlPath.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters['pathQueryId'])));
143
+ return {
144
+ path: urlPath,
145
+ method: 'GET',
146
+ headers: headerParameters,
147
+ query: queryParameters,
148
+ };
149
+ }
150
+ /**
151
+ * get bookmarks
152
+ */
153
+ async getBookmarksRaw(requestParameters, initOverrides) {
154
+ const requestOptions = await this.getBookmarksRequestOpts(requestParameters);
155
+ const response = await this.request(requestOptions, initOverrides);
156
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BookmarksResponseFromJSON)(jsonValue));
157
+ }
158
+ /**
159
+ * get bookmarks
160
+ */
161
+ async getBookmarks(requestParameters, initOverrides) {
162
+ const response = await this.getBookmarksRaw(requestParameters, initOverrides);
163
+ return await response.value();
164
+ }
165
+ /**
166
+ * Creates request options for getCommunityAboutTimeline without sending the request
167
+ */
168
+ async getCommunityAboutTimelineRequestOpts(requestParameters) {
169
+ if (requestParameters['pathQueryId'] == null) {
170
+ throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getCommunityAboutTimeline().');
171
+ }
172
+ if (requestParameters['variables'] == null) {
173
+ throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getCommunityAboutTimeline().');
174
+ }
175
+ if (requestParameters['features'] == null) {
176
+ throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getCommunityAboutTimeline().');
177
+ }
178
+ const queryParameters = {};
179
+ if (requestParameters['variables'] != null) {
180
+ queryParameters['variables'] = requestParameters['variables'];
181
+ }
182
+ if (requestParameters['features'] != null) {
183
+ queryParameters['features'] = requestParameters['features'];
184
+ }
185
+ const headerParameters = {};
186
+ if (this.configuration && this.configuration.apiKey) {
187
+ headerParameters["Accept"] = await this.configuration.apiKey("Accept"); // Accept authentication
188
+ }
189
+ if (this.configuration && this.configuration.apiKey) {
190
+ headerParameters["x-twitter-client-language"] = await this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
191
+ }
192
+ if (this.configuration && this.configuration.apiKey) {
193
+ headerParameters["Priority"] = await this.configuration.apiKey("Priority"); // Priority authentication
194
+ }
195
+ if (this.configuration && this.configuration.apiKey) {
196
+ headerParameters["Referer"] = await this.configuration.apiKey("Referer"); // Referer authentication
197
+ }
198
+ if (this.configuration && this.configuration.apiKey) {
199
+ headerParameters["Sec-Fetch-Dest"] = await this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
200
+ }
201
+ if (this.configuration && this.configuration.apiKey) {
202
+ headerParameters["Sec-Ch-Ua-Platform"] = await this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
203
+ }
204
+ if (this.configuration && this.configuration.apiKey) {
205
+ headerParameters["Sec-Fetch-Mode"] = await this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
206
+ }
207
+ if (this.configuration && this.configuration.apiKey) {
208
+ headerParameters["x-csrf-token"] = await this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
209
+ }
210
+ if (this.configuration && this.configuration.apiKey) {
211
+ headerParameters["x-client-uuid"] = await this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
212
+ }
213
+ if (this.configuration && this.configuration.accessToken) {
214
+ const token = this.configuration.accessToken;
215
+ const tokenString = await token("BearerAuth", []);
216
+ if (tokenString) {
217
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
218
+ }
219
+ }
220
+ if (this.configuration && this.configuration.apiKey) {
221
+ headerParameters["x-guest-token"] = await this.configuration.apiKey("x-guest-token"); // GuestToken authentication
222
+ }
223
+ if (this.configuration && this.configuration.apiKey) {
224
+ headerParameters["Sec-Ch-Ua"] = await this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
225
+ }
226
+ if (this.configuration && this.configuration.apiKey) {
227
+ headerParameters["x-client-transaction-id"] = await this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
228
+ }
229
+ if (this.configuration && this.configuration.apiKey) {
230
+ headerParameters["x-twitter-active-user"] = await this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
231
+ }
232
+ if (this.configuration && this.configuration.apiKey) {
233
+ headerParameters["user-agent"] = await this.configuration.apiKey("user-agent"); // UserAgent authentication
234
+ }
235
+ if (this.configuration && this.configuration.apiKey) {
236
+ headerParameters["Accept-Language"] = await this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
237
+ }
238
+ if (this.configuration && this.configuration.apiKey) {
239
+ headerParameters["Sec-Fetch-Site"] = await this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
240
+ }
241
+ if (this.configuration && this.configuration.apiKey) {
242
+ headerParameters["x-twitter-auth-type"] = await this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
243
+ }
244
+ if (this.configuration && this.configuration.apiKey) {
245
+ headerParameters["Sec-Ch-Ua-Mobile"] = await this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
246
+ }
247
+ if (this.configuration && this.configuration.apiKey) {
248
+ headerParameters["Accept-Encoding"] = await this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
249
+ }
250
+ let urlPath = `/graphql/{pathQueryId}/CommunityAboutTimeline`;
251
+ urlPath = urlPath.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters['pathQueryId'])));
252
+ return {
253
+ path: urlPath,
254
+ method: 'GET',
255
+ headers: headerParameters,
256
+ query: queryParameters,
257
+ };
258
+ }
259
+ /**
260
+ * get about of community
261
+ */
262
+ async getCommunityAboutTimelineRaw(requestParameters, initOverrides) {
263
+ const requestOptions = await this.getCommunityAboutTimelineRequestOpts(requestParameters);
264
+ const response = await this.request(requestOptions, initOverrides);
265
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CommunityAboutTimelineResponseFromJSON)(jsonValue));
266
+ }
267
+ /**
268
+ * get about of community
269
+ */
270
+ async getCommunityAboutTimeline(requestParameters, initOverrides) {
271
+ const response = await this.getCommunityAboutTimelineRaw(requestParameters, initOverrides);
272
+ return await response.value();
273
+ }
274
+ /**
275
+ * Creates request options for getCommunityMediaTimeline without sending the request
276
+ */
277
+ async getCommunityMediaTimelineRequestOpts(requestParameters) {
278
+ if (requestParameters['pathQueryId'] == null) {
279
+ throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getCommunityMediaTimeline().');
280
+ }
281
+ if (requestParameters['variables'] == null) {
282
+ throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getCommunityMediaTimeline().');
283
+ }
284
+ if (requestParameters['features'] == null) {
285
+ throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getCommunityMediaTimeline().');
286
+ }
287
+ const queryParameters = {};
288
+ if (requestParameters['variables'] != null) {
289
+ queryParameters['variables'] = requestParameters['variables'];
290
+ }
291
+ if (requestParameters['features'] != null) {
292
+ queryParameters['features'] = requestParameters['features'];
293
+ }
294
+ const headerParameters = {};
295
+ if (this.configuration && this.configuration.apiKey) {
296
+ headerParameters["Accept"] = await this.configuration.apiKey("Accept"); // Accept authentication
297
+ }
298
+ if (this.configuration && this.configuration.apiKey) {
299
+ headerParameters["x-twitter-client-language"] = await this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
300
+ }
301
+ if (this.configuration && this.configuration.apiKey) {
302
+ headerParameters["Priority"] = await this.configuration.apiKey("Priority"); // Priority authentication
303
+ }
304
+ if (this.configuration && this.configuration.apiKey) {
305
+ headerParameters["Referer"] = await this.configuration.apiKey("Referer"); // Referer authentication
306
+ }
307
+ if (this.configuration && this.configuration.apiKey) {
308
+ headerParameters["Sec-Fetch-Dest"] = await this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
309
+ }
310
+ if (this.configuration && this.configuration.apiKey) {
311
+ headerParameters["Sec-Ch-Ua-Platform"] = await this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
312
+ }
313
+ if (this.configuration && this.configuration.apiKey) {
314
+ headerParameters["Sec-Fetch-Mode"] = await this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
315
+ }
316
+ if (this.configuration && this.configuration.apiKey) {
317
+ headerParameters["x-csrf-token"] = await this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
318
+ }
319
+ if (this.configuration && this.configuration.apiKey) {
320
+ headerParameters["x-client-uuid"] = await this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
321
+ }
322
+ if (this.configuration && this.configuration.accessToken) {
323
+ const token = this.configuration.accessToken;
324
+ const tokenString = await token("BearerAuth", []);
325
+ if (tokenString) {
326
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
327
+ }
328
+ }
329
+ if (this.configuration && this.configuration.apiKey) {
330
+ headerParameters["x-guest-token"] = await this.configuration.apiKey("x-guest-token"); // GuestToken authentication
331
+ }
332
+ if (this.configuration && this.configuration.apiKey) {
333
+ headerParameters["Sec-Ch-Ua"] = await this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
334
+ }
335
+ if (this.configuration && this.configuration.apiKey) {
336
+ headerParameters["x-client-transaction-id"] = await this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
337
+ }
338
+ if (this.configuration && this.configuration.apiKey) {
339
+ headerParameters["x-twitter-active-user"] = await this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
340
+ }
341
+ if (this.configuration && this.configuration.apiKey) {
342
+ headerParameters["user-agent"] = await this.configuration.apiKey("user-agent"); // UserAgent authentication
343
+ }
344
+ if (this.configuration && this.configuration.apiKey) {
345
+ headerParameters["Accept-Language"] = await this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
346
+ }
347
+ if (this.configuration && this.configuration.apiKey) {
348
+ headerParameters["Sec-Fetch-Site"] = await this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
349
+ }
350
+ if (this.configuration && this.configuration.apiKey) {
351
+ headerParameters["x-twitter-auth-type"] = await this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
352
+ }
353
+ if (this.configuration && this.configuration.apiKey) {
354
+ headerParameters["Sec-Ch-Ua-Mobile"] = await this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
355
+ }
356
+ if (this.configuration && this.configuration.apiKey) {
357
+ headerParameters["Accept-Encoding"] = await this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
358
+ }
359
+ let urlPath = `/graphql/{pathQueryId}/CommunityMediaTimeline`;
360
+ urlPath = urlPath.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters['pathQueryId'])));
361
+ return {
362
+ path: urlPath,
363
+ method: 'GET',
364
+ headers: headerParameters,
365
+ query: queryParameters,
366
+ };
367
+ }
368
+ /**
369
+ * get media list of community
370
+ */
371
+ async getCommunityMediaTimelineRaw(requestParameters, initOverrides) {
372
+ const requestOptions = await this.getCommunityMediaTimelineRequestOpts(requestParameters);
373
+ const response = await this.request(requestOptions, initOverrides);
374
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CommunityMediaTimelineResponseFromJSON)(jsonValue));
375
+ }
376
+ /**
377
+ * get media list of community
378
+ */
379
+ async getCommunityMediaTimeline(requestParameters, initOverrides) {
380
+ const response = await this.getCommunityMediaTimelineRaw(requestParameters, initOverrides);
381
+ return await response.value();
382
+ }
383
+ /**
384
+ * Creates request options for getCommunityTweetsTimeline without sending the request
385
+ */
386
+ async getCommunityTweetsTimelineRequestOpts(requestParameters) {
387
+ if (requestParameters['pathQueryId'] == null) {
388
+ throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getCommunityTweetsTimeline().');
389
+ }
390
+ if (requestParameters['variables'] == null) {
391
+ throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getCommunityTweetsTimeline().');
392
+ }
393
+ if (requestParameters['features'] == null) {
394
+ throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getCommunityTweetsTimeline().');
395
+ }
396
+ const queryParameters = {};
397
+ if (requestParameters['variables'] != null) {
398
+ queryParameters['variables'] = requestParameters['variables'];
399
+ }
400
+ if (requestParameters['features'] != null) {
401
+ queryParameters['features'] = requestParameters['features'];
402
+ }
403
+ const headerParameters = {};
404
+ if (this.configuration && this.configuration.apiKey) {
405
+ headerParameters["Accept"] = await this.configuration.apiKey("Accept"); // Accept authentication
406
+ }
407
+ if (this.configuration && this.configuration.apiKey) {
408
+ headerParameters["x-twitter-client-language"] = await this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
409
+ }
410
+ if (this.configuration && this.configuration.apiKey) {
411
+ headerParameters["Priority"] = await this.configuration.apiKey("Priority"); // Priority authentication
412
+ }
413
+ if (this.configuration && this.configuration.apiKey) {
414
+ headerParameters["Referer"] = await this.configuration.apiKey("Referer"); // Referer authentication
415
+ }
416
+ if (this.configuration && this.configuration.apiKey) {
417
+ headerParameters["Sec-Fetch-Dest"] = await this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
418
+ }
419
+ if (this.configuration && this.configuration.apiKey) {
420
+ headerParameters["Sec-Ch-Ua-Platform"] = await this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
421
+ }
422
+ if (this.configuration && this.configuration.apiKey) {
423
+ headerParameters["Sec-Fetch-Mode"] = await this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
424
+ }
425
+ if (this.configuration && this.configuration.apiKey) {
426
+ headerParameters["x-csrf-token"] = await this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
427
+ }
428
+ if (this.configuration && this.configuration.apiKey) {
429
+ headerParameters["x-client-uuid"] = await this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
430
+ }
431
+ if (this.configuration && this.configuration.accessToken) {
432
+ const token = this.configuration.accessToken;
433
+ const tokenString = await token("BearerAuth", []);
434
+ if (tokenString) {
435
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
436
+ }
437
+ }
438
+ if (this.configuration && this.configuration.apiKey) {
439
+ headerParameters["x-guest-token"] = await this.configuration.apiKey("x-guest-token"); // GuestToken authentication
440
+ }
441
+ if (this.configuration && this.configuration.apiKey) {
442
+ headerParameters["Sec-Ch-Ua"] = await this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
443
+ }
444
+ if (this.configuration && this.configuration.apiKey) {
445
+ headerParameters["x-client-transaction-id"] = await this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
446
+ }
447
+ if (this.configuration && this.configuration.apiKey) {
448
+ headerParameters["x-twitter-active-user"] = await this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
449
+ }
450
+ if (this.configuration && this.configuration.apiKey) {
451
+ headerParameters["user-agent"] = await this.configuration.apiKey("user-agent"); // UserAgent authentication
452
+ }
453
+ if (this.configuration && this.configuration.apiKey) {
454
+ headerParameters["Accept-Language"] = await this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
455
+ }
456
+ if (this.configuration && this.configuration.apiKey) {
457
+ headerParameters["Sec-Fetch-Site"] = await this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
458
+ }
459
+ if (this.configuration && this.configuration.apiKey) {
460
+ headerParameters["x-twitter-auth-type"] = await this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
461
+ }
462
+ if (this.configuration && this.configuration.apiKey) {
463
+ headerParameters["Sec-Ch-Ua-Mobile"] = await this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
464
+ }
465
+ if (this.configuration && this.configuration.apiKey) {
466
+ headerParameters["Accept-Encoding"] = await this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
467
+ }
468
+ let urlPath = `/graphql/{pathQueryId}/CommunityTweetsTimeline`;
469
+ urlPath = urlPath.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters['pathQueryId'])));
470
+ return {
471
+ path: urlPath,
472
+ method: 'GET',
473
+ headers: headerParameters,
474
+ query: queryParameters,
475
+ };
476
+ }
477
+ /**
478
+ * get tweet list of community. rankingMode:[Recency, Relevance]
479
+ */
480
+ async getCommunityTweetsTimelineRaw(requestParameters, initOverrides) {
481
+ const requestOptions = await this.getCommunityTweetsTimelineRequestOpts(requestParameters);
482
+ const response = await this.request(requestOptions, initOverrides);
483
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CommunityTweetsTimelineResponseFromJSON)(jsonValue));
484
+ }
485
+ /**
486
+ * get tweet list of community. rankingMode:[Recency, Relevance]
487
+ */
488
+ async getCommunityTweetsTimeline(requestParameters, initOverrides) {
489
+ const response = await this.getCommunityTweetsTimelineRaw(requestParameters, initOverrides);
490
+ return await response.value();
491
+ }
492
+ /**
493
+ * Creates request options for getHomeLatestTimeline without sending the request
494
+ */
495
+ async getHomeLatestTimelineRequestOpts(requestParameters) {
496
+ if (requestParameters['pathQueryId'] == null) {
497
+ throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getHomeLatestTimeline().');
498
+ }
499
+ if (requestParameters['variables'] == null) {
500
+ throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getHomeLatestTimeline().');
501
+ }
502
+ if (requestParameters['features'] == null) {
503
+ throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getHomeLatestTimeline().');
504
+ }
505
+ const queryParameters = {};
506
+ if (requestParameters['variables'] != null) {
507
+ queryParameters['variables'] = requestParameters['variables'];
508
+ }
509
+ if (requestParameters['features'] != null) {
510
+ queryParameters['features'] = requestParameters['features'];
511
+ }
512
+ const headerParameters = {};
513
+ if (this.configuration && this.configuration.apiKey) {
514
+ headerParameters["Accept"] = await this.configuration.apiKey("Accept"); // Accept authentication
515
+ }
516
+ if (this.configuration && this.configuration.apiKey) {
517
+ headerParameters["x-twitter-client-language"] = await this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
518
+ }
519
+ if (this.configuration && this.configuration.apiKey) {
520
+ headerParameters["Priority"] = await this.configuration.apiKey("Priority"); // Priority authentication
521
+ }
522
+ if (this.configuration && this.configuration.apiKey) {
523
+ headerParameters["Referer"] = await this.configuration.apiKey("Referer"); // Referer authentication
524
+ }
525
+ if (this.configuration && this.configuration.apiKey) {
526
+ headerParameters["Sec-Fetch-Dest"] = await this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
527
+ }
528
+ if (this.configuration && this.configuration.apiKey) {
529
+ headerParameters["Sec-Ch-Ua-Platform"] = await this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
530
+ }
531
+ if (this.configuration && this.configuration.apiKey) {
532
+ headerParameters["Sec-Fetch-Mode"] = await this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
533
+ }
534
+ if (this.configuration && this.configuration.apiKey) {
535
+ headerParameters["x-csrf-token"] = await this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
536
+ }
537
+ if (this.configuration && this.configuration.apiKey) {
538
+ headerParameters["x-client-uuid"] = await this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
539
+ }
540
+ if (this.configuration && this.configuration.accessToken) {
541
+ const token = this.configuration.accessToken;
542
+ const tokenString = await token("BearerAuth", []);
543
+ if (tokenString) {
544
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
545
+ }
546
+ }
547
+ if (this.configuration && this.configuration.apiKey) {
548
+ headerParameters["x-guest-token"] = await this.configuration.apiKey("x-guest-token"); // GuestToken authentication
549
+ }
550
+ if (this.configuration && this.configuration.apiKey) {
551
+ headerParameters["Sec-Ch-Ua"] = await this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
552
+ }
553
+ if (this.configuration && this.configuration.apiKey) {
554
+ headerParameters["x-client-transaction-id"] = await this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
555
+ }
556
+ if (this.configuration && this.configuration.apiKey) {
557
+ headerParameters["x-twitter-active-user"] = await this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
558
+ }
559
+ if (this.configuration && this.configuration.apiKey) {
560
+ headerParameters["user-agent"] = await this.configuration.apiKey("user-agent"); // UserAgent authentication
561
+ }
562
+ if (this.configuration && this.configuration.apiKey) {
563
+ headerParameters["Accept-Language"] = await this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
564
+ }
565
+ if (this.configuration && this.configuration.apiKey) {
566
+ headerParameters["Sec-Fetch-Site"] = await this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
567
+ }
568
+ if (this.configuration && this.configuration.apiKey) {
569
+ headerParameters["x-twitter-auth-type"] = await this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
570
+ }
571
+ if (this.configuration && this.configuration.apiKey) {
572
+ headerParameters["Sec-Ch-Ua-Mobile"] = await this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
573
+ }
574
+ if (this.configuration && this.configuration.apiKey) {
575
+ headerParameters["Accept-Encoding"] = await this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
576
+ }
577
+ let urlPath = `/graphql/{pathQueryId}/HomeLatestTimeline`;
578
+ urlPath = urlPath.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters['pathQueryId'])));
579
+ return {
580
+ path: urlPath,
581
+ method: 'GET',
582
+ headers: headerParameters,
583
+ query: queryParameters,
584
+ };
585
+ }
586
+ /**
587
+ * get tweet list of timeline
588
+ */
589
+ async getHomeLatestTimelineRaw(requestParameters, initOverrides) {
590
+ const requestOptions = await this.getHomeLatestTimelineRequestOpts(requestParameters);
591
+ const response = await this.request(requestOptions, initOverrides);
592
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TimelineResponseFromJSON)(jsonValue));
593
+ }
594
+ /**
595
+ * get tweet list of timeline
596
+ */
597
+ async getHomeLatestTimeline(requestParameters, initOverrides) {
598
+ const response = await this.getHomeLatestTimelineRaw(requestParameters, initOverrides);
599
+ return await response.value();
600
+ }
601
+ /**
602
+ * Creates request options for getHomeTimeline without sending the request
603
+ */
604
+ async getHomeTimelineRequestOpts(requestParameters) {
605
+ if (requestParameters['pathQueryId'] == null) {
606
+ throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getHomeTimeline().');
607
+ }
608
+ if (requestParameters['variables'] == null) {
609
+ throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getHomeTimeline().');
610
+ }
611
+ if (requestParameters['features'] == null) {
612
+ throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getHomeTimeline().');
613
+ }
614
+ const queryParameters = {};
615
+ if (requestParameters['variables'] != null) {
616
+ queryParameters['variables'] = requestParameters['variables'];
617
+ }
618
+ if (requestParameters['features'] != null) {
619
+ queryParameters['features'] = requestParameters['features'];
620
+ }
621
+ const headerParameters = {};
622
+ if (this.configuration && this.configuration.apiKey) {
623
+ headerParameters["Accept"] = await this.configuration.apiKey("Accept"); // Accept authentication
624
+ }
625
+ if (this.configuration && this.configuration.apiKey) {
626
+ headerParameters["x-twitter-client-language"] = await this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
627
+ }
628
+ if (this.configuration && this.configuration.apiKey) {
629
+ headerParameters["Priority"] = await this.configuration.apiKey("Priority"); // Priority authentication
630
+ }
631
+ if (this.configuration && this.configuration.apiKey) {
632
+ headerParameters["Referer"] = await this.configuration.apiKey("Referer"); // Referer authentication
633
+ }
634
+ if (this.configuration && this.configuration.apiKey) {
635
+ headerParameters["Sec-Fetch-Dest"] = await this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
636
+ }
637
+ if (this.configuration && this.configuration.apiKey) {
638
+ headerParameters["Sec-Ch-Ua-Platform"] = await this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
639
+ }
640
+ if (this.configuration && this.configuration.apiKey) {
641
+ headerParameters["Sec-Fetch-Mode"] = await this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
642
+ }
643
+ if (this.configuration && this.configuration.apiKey) {
644
+ headerParameters["x-csrf-token"] = await this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
645
+ }
646
+ if (this.configuration && this.configuration.apiKey) {
647
+ headerParameters["x-client-uuid"] = await this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
648
+ }
649
+ if (this.configuration && this.configuration.accessToken) {
650
+ const token = this.configuration.accessToken;
651
+ const tokenString = await token("BearerAuth", []);
652
+ if (tokenString) {
653
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
654
+ }
655
+ }
656
+ if (this.configuration && this.configuration.apiKey) {
657
+ headerParameters["x-guest-token"] = await this.configuration.apiKey("x-guest-token"); // GuestToken authentication
658
+ }
659
+ if (this.configuration && this.configuration.apiKey) {
660
+ headerParameters["Sec-Ch-Ua"] = await this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
661
+ }
662
+ if (this.configuration && this.configuration.apiKey) {
663
+ headerParameters["x-client-transaction-id"] = await this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
664
+ }
665
+ if (this.configuration && this.configuration.apiKey) {
666
+ headerParameters["x-twitter-active-user"] = await this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
667
+ }
668
+ if (this.configuration && this.configuration.apiKey) {
669
+ headerParameters["user-agent"] = await this.configuration.apiKey("user-agent"); // UserAgent authentication
670
+ }
671
+ if (this.configuration && this.configuration.apiKey) {
672
+ headerParameters["Accept-Language"] = await this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
673
+ }
674
+ if (this.configuration && this.configuration.apiKey) {
675
+ headerParameters["Sec-Fetch-Site"] = await this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
676
+ }
677
+ if (this.configuration && this.configuration.apiKey) {
678
+ headerParameters["x-twitter-auth-type"] = await this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
679
+ }
680
+ if (this.configuration && this.configuration.apiKey) {
681
+ headerParameters["Sec-Ch-Ua-Mobile"] = await this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
682
+ }
683
+ if (this.configuration && this.configuration.apiKey) {
684
+ headerParameters["Accept-Encoding"] = await this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
685
+ }
686
+ let urlPath = `/graphql/{pathQueryId}/HomeTimeline`;
687
+ urlPath = urlPath.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters['pathQueryId'])));
688
+ return {
689
+ path: urlPath,
690
+ method: 'GET',
691
+ headers: headerParameters,
692
+ query: queryParameters,
693
+ };
694
+ }
695
+ /**
696
+ * get tweet list of timeline
697
+ */
698
+ async getHomeTimelineRaw(requestParameters, initOverrides) {
699
+ const requestOptions = await this.getHomeTimelineRequestOpts(requestParameters);
700
+ const response = await this.request(requestOptions, initOverrides);
701
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TimelineResponseFromJSON)(jsonValue));
702
+ }
703
+ /**
704
+ * get tweet list of timeline
705
+ */
706
+ async getHomeTimeline(requestParameters, initOverrides) {
707
+ const response = await this.getHomeTimelineRaw(requestParameters, initOverrides);
708
+ return await response.value();
709
+ }
710
+ /**
711
+ * Creates request options for getLikes without sending the request
712
+ */
713
+ async getLikesRequestOpts(requestParameters) {
714
+ if (requestParameters['pathQueryId'] == null) {
715
+ throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getLikes().');
716
+ }
717
+ if (requestParameters['variables'] == null) {
718
+ throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getLikes().');
719
+ }
720
+ if (requestParameters['features'] == null) {
721
+ throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getLikes().');
722
+ }
723
+ if (requestParameters['fieldToggles'] == null) {
724
+ throw new runtime.RequiredError('fieldToggles', 'Required parameter "fieldToggles" was null or undefined when calling getLikes().');
725
+ }
726
+ const queryParameters = {};
727
+ if (requestParameters['variables'] != null) {
728
+ queryParameters['variables'] = requestParameters['variables'];
729
+ }
730
+ if (requestParameters['features'] != null) {
731
+ queryParameters['features'] = requestParameters['features'];
732
+ }
733
+ if (requestParameters['fieldToggles'] != null) {
734
+ queryParameters['fieldToggles'] = requestParameters['fieldToggles'];
735
+ }
736
+ const headerParameters = {};
737
+ if (this.configuration && this.configuration.apiKey) {
738
+ headerParameters["Accept"] = await this.configuration.apiKey("Accept"); // Accept authentication
739
+ }
740
+ if (this.configuration && this.configuration.apiKey) {
741
+ headerParameters["x-twitter-client-language"] = await this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
742
+ }
743
+ if (this.configuration && this.configuration.apiKey) {
744
+ headerParameters["Priority"] = await this.configuration.apiKey("Priority"); // Priority authentication
745
+ }
746
+ if (this.configuration && this.configuration.apiKey) {
747
+ headerParameters["Referer"] = await this.configuration.apiKey("Referer"); // Referer authentication
748
+ }
749
+ if (this.configuration && this.configuration.apiKey) {
750
+ headerParameters["Sec-Fetch-Dest"] = await this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
751
+ }
752
+ if (this.configuration && this.configuration.apiKey) {
753
+ headerParameters["Sec-Ch-Ua-Platform"] = await this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
754
+ }
755
+ if (this.configuration && this.configuration.apiKey) {
756
+ headerParameters["Sec-Fetch-Mode"] = await this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
757
+ }
758
+ if (this.configuration && this.configuration.apiKey) {
759
+ headerParameters["x-csrf-token"] = await this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
760
+ }
761
+ if (this.configuration && this.configuration.apiKey) {
762
+ headerParameters["x-client-uuid"] = await this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
763
+ }
764
+ if (this.configuration && this.configuration.accessToken) {
765
+ const token = this.configuration.accessToken;
766
+ const tokenString = await token("BearerAuth", []);
767
+ if (tokenString) {
768
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
769
+ }
770
+ }
771
+ if (this.configuration && this.configuration.apiKey) {
772
+ headerParameters["x-guest-token"] = await this.configuration.apiKey("x-guest-token"); // GuestToken authentication
773
+ }
774
+ if (this.configuration && this.configuration.apiKey) {
775
+ headerParameters["Sec-Ch-Ua"] = await this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
776
+ }
777
+ if (this.configuration && this.configuration.apiKey) {
778
+ headerParameters["x-client-transaction-id"] = await this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
779
+ }
780
+ if (this.configuration && this.configuration.apiKey) {
781
+ headerParameters["x-twitter-active-user"] = await this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
782
+ }
783
+ if (this.configuration && this.configuration.apiKey) {
784
+ headerParameters["user-agent"] = await this.configuration.apiKey("user-agent"); // UserAgent authentication
785
+ }
786
+ if (this.configuration && this.configuration.apiKey) {
787
+ headerParameters["Accept-Language"] = await this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
788
+ }
789
+ if (this.configuration && this.configuration.apiKey) {
790
+ headerParameters["Sec-Fetch-Site"] = await this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
791
+ }
792
+ if (this.configuration && this.configuration.apiKey) {
793
+ headerParameters["x-twitter-auth-type"] = await this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
794
+ }
795
+ if (this.configuration && this.configuration.apiKey) {
796
+ headerParameters["Sec-Ch-Ua-Mobile"] = await this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
797
+ }
798
+ if (this.configuration && this.configuration.apiKey) {
799
+ headerParameters["Accept-Encoding"] = await this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
800
+ }
801
+ let urlPath = `/graphql/{pathQueryId}/Likes`;
802
+ urlPath = urlPath.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters['pathQueryId'])));
803
+ return {
804
+ path: urlPath,
805
+ method: 'GET',
806
+ headers: headerParameters,
807
+ query: queryParameters,
808
+ };
809
+ }
810
+ /**
811
+ * get user likes tweets
812
+ */
813
+ async getLikesRaw(requestParameters, initOverrides) {
814
+ const requestOptions = await this.getLikesRequestOpts(requestParameters);
815
+ const response = await this.request(requestOptions, initOverrides);
816
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UserTweetsResponseFromJSON)(jsonValue));
817
+ }
818
+ /**
819
+ * get user likes tweets
820
+ */
821
+ async getLikes(requestParameters, initOverrides) {
822
+ const response = await this.getLikesRaw(requestParameters, initOverrides);
823
+ return await response.value();
824
+ }
825
+ /**
826
+ * Creates request options for getListLatestTweetsTimeline without sending the request
827
+ */
828
+ async getListLatestTweetsTimelineRequestOpts(requestParameters) {
829
+ if (requestParameters['pathQueryId'] == null) {
830
+ throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getListLatestTweetsTimeline().');
831
+ }
832
+ if (requestParameters['variables'] == null) {
833
+ throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getListLatestTweetsTimeline().');
834
+ }
835
+ if (requestParameters['features'] == null) {
836
+ throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getListLatestTweetsTimeline().');
837
+ }
838
+ const queryParameters = {};
839
+ if (requestParameters['variables'] != null) {
840
+ queryParameters['variables'] = requestParameters['variables'];
841
+ }
842
+ if (requestParameters['features'] != null) {
843
+ queryParameters['features'] = requestParameters['features'];
844
+ }
845
+ const headerParameters = {};
846
+ if (this.configuration && this.configuration.apiKey) {
847
+ headerParameters["Accept"] = await this.configuration.apiKey("Accept"); // Accept authentication
848
+ }
849
+ if (this.configuration && this.configuration.apiKey) {
850
+ headerParameters["x-twitter-client-language"] = await this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
851
+ }
852
+ if (this.configuration && this.configuration.apiKey) {
853
+ headerParameters["Priority"] = await this.configuration.apiKey("Priority"); // Priority authentication
854
+ }
855
+ if (this.configuration && this.configuration.apiKey) {
856
+ headerParameters["Referer"] = await this.configuration.apiKey("Referer"); // Referer authentication
857
+ }
858
+ if (this.configuration && this.configuration.apiKey) {
859
+ headerParameters["Sec-Fetch-Dest"] = await this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
860
+ }
861
+ if (this.configuration && this.configuration.apiKey) {
862
+ headerParameters["Sec-Ch-Ua-Platform"] = await this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
863
+ }
864
+ if (this.configuration && this.configuration.apiKey) {
865
+ headerParameters["Sec-Fetch-Mode"] = await this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
866
+ }
867
+ if (this.configuration && this.configuration.apiKey) {
868
+ headerParameters["x-csrf-token"] = await this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
869
+ }
870
+ if (this.configuration && this.configuration.apiKey) {
871
+ headerParameters["x-client-uuid"] = await this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
872
+ }
873
+ if (this.configuration && this.configuration.accessToken) {
874
+ const token = this.configuration.accessToken;
875
+ const tokenString = await token("BearerAuth", []);
876
+ if (tokenString) {
877
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
878
+ }
879
+ }
880
+ if (this.configuration && this.configuration.apiKey) {
881
+ headerParameters["x-guest-token"] = await this.configuration.apiKey("x-guest-token"); // GuestToken authentication
882
+ }
883
+ if (this.configuration && this.configuration.apiKey) {
884
+ headerParameters["Sec-Ch-Ua"] = await this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
885
+ }
886
+ if (this.configuration && this.configuration.apiKey) {
887
+ headerParameters["x-client-transaction-id"] = await this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
888
+ }
889
+ if (this.configuration && this.configuration.apiKey) {
890
+ headerParameters["x-twitter-active-user"] = await this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
891
+ }
892
+ if (this.configuration && this.configuration.apiKey) {
893
+ headerParameters["user-agent"] = await this.configuration.apiKey("user-agent"); // UserAgent authentication
894
+ }
895
+ if (this.configuration && this.configuration.apiKey) {
896
+ headerParameters["Accept-Language"] = await this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
897
+ }
898
+ if (this.configuration && this.configuration.apiKey) {
899
+ headerParameters["Sec-Fetch-Site"] = await this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
900
+ }
901
+ if (this.configuration && this.configuration.apiKey) {
902
+ headerParameters["x-twitter-auth-type"] = await this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
903
+ }
904
+ if (this.configuration && this.configuration.apiKey) {
905
+ headerParameters["Sec-Ch-Ua-Mobile"] = await this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
906
+ }
907
+ if (this.configuration && this.configuration.apiKey) {
908
+ headerParameters["Accept-Encoding"] = await this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
909
+ }
910
+ let urlPath = `/graphql/{pathQueryId}/ListLatestTweetsTimeline`;
911
+ urlPath = urlPath.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters['pathQueryId'])));
912
+ return {
913
+ path: urlPath,
914
+ method: 'GET',
915
+ headers: headerParameters,
916
+ query: queryParameters,
917
+ };
918
+ }
919
+ /**
920
+ * get tweet list of timeline
921
+ */
922
+ async getListLatestTweetsTimelineRaw(requestParameters, initOverrides) {
923
+ const requestOptions = await this.getListLatestTweetsTimelineRequestOpts(requestParameters);
924
+ const response = await this.request(requestOptions, initOverrides);
925
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ListLatestTweetsTimelineResponseFromJSON)(jsonValue));
926
+ }
927
+ /**
928
+ * get tweet list of timeline
929
+ */
930
+ async getListLatestTweetsTimeline(requestParameters, initOverrides) {
931
+ const response = await this.getListLatestTweetsTimelineRaw(requestParameters, initOverrides);
932
+ return await response.value();
933
+ }
934
+ /**
935
+ * Creates request options for getNotificationsTimeline without sending the request
936
+ */
937
+ async getNotificationsTimelineRequestOpts(requestParameters) {
938
+ if (requestParameters['pathQueryId'] == null) {
939
+ throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getNotificationsTimeline().');
940
+ }
941
+ if (requestParameters['variables'] == null) {
942
+ throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getNotificationsTimeline().');
943
+ }
944
+ if (requestParameters['features'] == null) {
945
+ throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getNotificationsTimeline().');
946
+ }
947
+ const queryParameters = {};
948
+ if (requestParameters['variables'] != null) {
949
+ queryParameters['variables'] = requestParameters['variables'];
950
+ }
951
+ if (requestParameters['features'] != null) {
952
+ queryParameters['features'] = requestParameters['features'];
953
+ }
954
+ const headerParameters = {};
955
+ if (this.configuration && this.configuration.apiKey) {
956
+ headerParameters["Accept"] = await this.configuration.apiKey("Accept"); // Accept authentication
957
+ }
958
+ if (this.configuration && this.configuration.apiKey) {
959
+ headerParameters["x-twitter-client-language"] = await this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
960
+ }
961
+ if (this.configuration && this.configuration.apiKey) {
962
+ headerParameters["Priority"] = await this.configuration.apiKey("Priority"); // Priority authentication
963
+ }
964
+ if (this.configuration && this.configuration.apiKey) {
965
+ headerParameters["Referer"] = await this.configuration.apiKey("Referer"); // Referer authentication
966
+ }
967
+ if (this.configuration && this.configuration.apiKey) {
968
+ headerParameters["Sec-Fetch-Dest"] = await this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
969
+ }
970
+ if (this.configuration && this.configuration.apiKey) {
971
+ headerParameters["Sec-Ch-Ua-Platform"] = await this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
972
+ }
973
+ if (this.configuration && this.configuration.apiKey) {
974
+ headerParameters["Sec-Fetch-Mode"] = await this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
975
+ }
976
+ if (this.configuration && this.configuration.apiKey) {
977
+ headerParameters["x-csrf-token"] = await this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
978
+ }
979
+ if (this.configuration && this.configuration.apiKey) {
980
+ headerParameters["x-client-uuid"] = await this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
981
+ }
982
+ if (this.configuration && this.configuration.accessToken) {
983
+ const token = this.configuration.accessToken;
984
+ const tokenString = await token("BearerAuth", []);
985
+ if (tokenString) {
986
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
987
+ }
988
+ }
989
+ if (this.configuration && this.configuration.apiKey) {
990
+ headerParameters["x-guest-token"] = await this.configuration.apiKey("x-guest-token"); // GuestToken authentication
991
+ }
992
+ if (this.configuration && this.configuration.apiKey) {
993
+ headerParameters["Sec-Ch-Ua"] = await this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
994
+ }
995
+ if (this.configuration && this.configuration.apiKey) {
996
+ headerParameters["x-client-transaction-id"] = await this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
997
+ }
998
+ if (this.configuration && this.configuration.apiKey) {
999
+ headerParameters["x-twitter-active-user"] = await this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
1000
+ }
1001
+ if (this.configuration && this.configuration.apiKey) {
1002
+ headerParameters["user-agent"] = await this.configuration.apiKey("user-agent"); // UserAgent authentication
1003
+ }
1004
+ if (this.configuration && this.configuration.apiKey) {
1005
+ headerParameters["Accept-Language"] = await this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
1006
+ }
1007
+ if (this.configuration && this.configuration.apiKey) {
1008
+ headerParameters["Sec-Fetch-Site"] = await this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
1009
+ }
1010
+ if (this.configuration && this.configuration.apiKey) {
1011
+ headerParameters["x-twitter-auth-type"] = await this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
1012
+ }
1013
+ if (this.configuration && this.configuration.apiKey) {
1014
+ headerParameters["Sec-Ch-Ua-Mobile"] = await this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
1015
+ }
1016
+ if (this.configuration && this.configuration.apiKey) {
1017
+ headerParameters["Accept-Encoding"] = await this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
1018
+ }
1019
+ let urlPath = `/graphql/{pathQueryId}/NotificationsTimeline`;
1020
+ urlPath = urlPath.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters['pathQueryId'])));
1021
+ return {
1022
+ path: urlPath,
1023
+ method: 'GET',
1024
+ headers: headerParameters,
1025
+ query: queryParameters,
1026
+ };
1027
+ }
1028
+ /**
1029
+ * get notification list. timeline_type:[All, Verified, Mentions]
1030
+ */
1031
+ async getNotificationsTimelineRaw(requestParameters, initOverrides) {
1032
+ const requestOptions = await this.getNotificationsTimelineRequestOpts(requestParameters);
1033
+ const response = await this.request(requestOptions, initOverrides);
1034
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.NotificationsTimelineResponseFromJSON)(jsonValue));
1035
+ }
1036
+ /**
1037
+ * get notification list. timeline_type:[All, Verified, Mentions]
1038
+ */
1039
+ async getNotificationsTimeline(requestParameters, initOverrides) {
1040
+ const response = await this.getNotificationsTimelineRaw(requestParameters, initOverrides);
1041
+ return await response.value();
1042
+ }
1043
+ /**
1044
+ * Creates request options for getSearchTimeline without sending the request
1045
+ */
1046
+ async getSearchTimelineRequestOpts(requestParameters) {
1047
+ if (requestParameters['pathQueryId'] == null) {
1048
+ throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getSearchTimeline().');
1049
+ }
1050
+ if (requestParameters['variables'] == null) {
1051
+ throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getSearchTimeline().');
1052
+ }
1053
+ if (requestParameters['features'] == null) {
1054
+ throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getSearchTimeline().');
1055
+ }
1056
+ const queryParameters = {};
1057
+ if (requestParameters['variables'] != null) {
1058
+ queryParameters['variables'] = requestParameters['variables'];
1059
+ }
1060
+ if (requestParameters['features'] != null) {
1061
+ queryParameters['features'] = requestParameters['features'];
1062
+ }
1063
+ const headerParameters = {};
1064
+ if (this.configuration && this.configuration.apiKey) {
1065
+ headerParameters["Accept"] = await this.configuration.apiKey("Accept"); // Accept authentication
1066
+ }
1067
+ if (this.configuration && this.configuration.apiKey) {
1068
+ headerParameters["x-twitter-client-language"] = await this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
1069
+ }
1070
+ if (this.configuration && this.configuration.apiKey) {
1071
+ headerParameters["Priority"] = await this.configuration.apiKey("Priority"); // Priority authentication
1072
+ }
1073
+ if (this.configuration && this.configuration.apiKey) {
1074
+ headerParameters["Referer"] = await this.configuration.apiKey("Referer"); // Referer authentication
1075
+ }
1076
+ if (this.configuration && this.configuration.apiKey) {
1077
+ headerParameters["Sec-Fetch-Dest"] = await this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
1078
+ }
1079
+ if (this.configuration && this.configuration.apiKey) {
1080
+ headerParameters["Sec-Ch-Ua-Platform"] = await this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
1081
+ }
1082
+ if (this.configuration && this.configuration.apiKey) {
1083
+ headerParameters["Sec-Fetch-Mode"] = await this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
1084
+ }
1085
+ if (this.configuration && this.configuration.apiKey) {
1086
+ headerParameters["x-csrf-token"] = await this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
1087
+ }
1088
+ if (this.configuration && this.configuration.apiKey) {
1089
+ headerParameters["x-client-uuid"] = await this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
1090
+ }
1091
+ if (this.configuration && this.configuration.accessToken) {
1092
+ const token = this.configuration.accessToken;
1093
+ const tokenString = await token("BearerAuth", []);
1094
+ if (tokenString) {
1095
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1096
+ }
1097
+ }
1098
+ if (this.configuration && this.configuration.apiKey) {
1099
+ headerParameters["x-guest-token"] = await this.configuration.apiKey("x-guest-token"); // GuestToken authentication
1100
+ }
1101
+ if (this.configuration && this.configuration.apiKey) {
1102
+ headerParameters["Sec-Ch-Ua"] = await this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
1103
+ }
1104
+ if (this.configuration && this.configuration.apiKey) {
1105
+ headerParameters["x-client-transaction-id"] = await this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
1106
+ }
1107
+ if (this.configuration && this.configuration.apiKey) {
1108
+ headerParameters["x-twitter-active-user"] = await this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
1109
+ }
1110
+ if (this.configuration && this.configuration.apiKey) {
1111
+ headerParameters["user-agent"] = await this.configuration.apiKey("user-agent"); // UserAgent authentication
1112
+ }
1113
+ if (this.configuration && this.configuration.apiKey) {
1114
+ headerParameters["Accept-Language"] = await this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
1115
+ }
1116
+ if (this.configuration && this.configuration.apiKey) {
1117
+ headerParameters["Sec-Fetch-Site"] = await this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
1118
+ }
1119
+ if (this.configuration && this.configuration.apiKey) {
1120
+ headerParameters["x-twitter-auth-type"] = await this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
1121
+ }
1122
+ if (this.configuration && this.configuration.apiKey) {
1123
+ headerParameters["Sec-Ch-Ua-Mobile"] = await this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
1124
+ }
1125
+ if (this.configuration && this.configuration.apiKey) {
1126
+ headerParameters["Accept-Encoding"] = await this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
1127
+ }
1128
+ let urlPath = `/graphql/{pathQueryId}/SearchTimeline`;
1129
+ urlPath = urlPath.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters['pathQueryId'])));
1130
+ return {
1131
+ path: urlPath,
1132
+ method: 'GET',
1133
+ headers: headerParameters,
1134
+ query: queryParameters,
1135
+ };
1136
+ }
1137
+ /**
1138
+ * search tweet list. product:[Top, Latest, People, Photos, Videos]
1139
+ */
1140
+ async getSearchTimelineRaw(requestParameters, initOverrides) {
1141
+ const requestOptions = await this.getSearchTimelineRequestOpts(requestParameters);
1142
+ const response = await this.request(requestOptions, initOverrides);
1143
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SearchTimelineResponseFromJSON)(jsonValue));
1144
+ }
1145
+ /**
1146
+ * search tweet list. product:[Top, Latest, People, Photos, Videos]
1147
+ */
1148
+ async getSearchTimeline(requestParameters, initOverrides) {
1149
+ const response = await this.getSearchTimelineRaw(requestParameters, initOverrides);
1150
+ return await response.value();
1151
+ }
1152
+ /**
1153
+ * Creates request options for getTweetDetail without sending the request
1154
+ */
1155
+ async getTweetDetailRequestOpts(requestParameters) {
1156
+ if (requestParameters['pathQueryId'] == null) {
1157
+ throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getTweetDetail().');
1158
+ }
1159
+ if (requestParameters['variables'] == null) {
1160
+ throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getTweetDetail().');
1161
+ }
1162
+ if (requestParameters['features'] == null) {
1163
+ throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getTweetDetail().');
1164
+ }
1165
+ if (requestParameters['fieldToggles'] == null) {
1166
+ throw new runtime.RequiredError('fieldToggles', 'Required parameter "fieldToggles" was null or undefined when calling getTweetDetail().');
1167
+ }
1168
+ const queryParameters = {};
1169
+ if (requestParameters['variables'] != null) {
1170
+ queryParameters['variables'] = requestParameters['variables'];
1171
+ }
1172
+ if (requestParameters['features'] != null) {
1173
+ queryParameters['features'] = requestParameters['features'];
1174
+ }
1175
+ if (requestParameters['fieldToggles'] != null) {
1176
+ queryParameters['fieldToggles'] = requestParameters['fieldToggles'];
1177
+ }
1178
+ const headerParameters = {};
1179
+ if (this.configuration && this.configuration.apiKey) {
1180
+ headerParameters["Accept"] = await this.configuration.apiKey("Accept"); // Accept authentication
1181
+ }
1182
+ if (this.configuration && this.configuration.apiKey) {
1183
+ headerParameters["x-twitter-client-language"] = await this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
1184
+ }
1185
+ if (this.configuration && this.configuration.apiKey) {
1186
+ headerParameters["Priority"] = await this.configuration.apiKey("Priority"); // Priority authentication
1187
+ }
1188
+ if (this.configuration && this.configuration.apiKey) {
1189
+ headerParameters["Referer"] = await this.configuration.apiKey("Referer"); // Referer authentication
1190
+ }
1191
+ if (this.configuration && this.configuration.apiKey) {
1192
+ headerParameters["Sec-Fetch-Dest"] = await this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
1193
+ }
1194
+ if (this.configuration && this.configuration.apiKey) {
1195
+ headerParameters["Sec-Ch-Ua-Platform"] = await this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
1196
+ }
1197
+ if (this.configuration && this.configuration.apiKey) {
1198
+ headerParameters["Sec-Fetch-Mode"] = await this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
1199
+ }
1200
+ if (this.configuration && this.configuration.apiKey) {
1201
+ headerParameters["x-csrf-token"] = await this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
1202
+ }
1203
+ if (this.configuration && this.configuration.apiKey) {
1204
+ headerParameters["x-client-uuid"] = await this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
1205
+ }
1206
+ if (this.configuration && this.configuration.accessToken) {
1207
+ const token = this.configuration.accessToken;
1208
+ const tokenString = await token("BearerAuth", []);
1209
+ if (tokenString) {
1210
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1211
+ }
1212
+ }
1213
+ if (this.configuration && this.configuration.apiKey) {
1214
+ headerParameters["x-guest-token"] = await this.configuration.apiKey("x-guest-token"); // GuestToken authentication
1215
+ }
1216
+ if (this.configuration && this.configuration.apiKey) {
1217
+ headerParameters["Sec-Ch-Ua"] = await this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
1218
+ }
1219
+ if (this.configuration && this.configuration.apiKey) {
1220
+ headerParameters["x-client-transaction-id"] = await this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
1221
+ }
1222
+ if (this.configuration && this.configuration.apiKey) {
1223
+ headerParameters["x-twitter-active-user"] = await this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
1224
+ }
1225
+ if (this.configuration && this.configuration.apiKey) {
1226
+ headerParameters["user-agent"] = await this.configuration.apiKey("user-agent"); // UserAgent authentication
1227
+ }
1228
+ if (this.configuration && this.configuration.apiKey) {
1229
+ headerParameters["Accept-Language"] = await this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
1230
+ }
1231
+ if (this.configuration && this.configuration.apiKey) {
1232
+ headerParameters["Sec-Fetch-Site"] = await this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
1233
+ }
1234
+ if (this.configuration && this.configuration.apiKey) {
1235
+ headerParameters["x-twitter-auth-type"] = await this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
1236
+ }
1237
+ if (this.configuration && this.configuration.apiKey) {
1238
+ headerParameters["Sec-Ch-Ua-Mobile"] = await this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
1239
+ }
1240
+ if (this.configuration && this.configuration.apiKey) {
1241
+ headerParameters["Accept-Encoding"] = await this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
1242
+ }
1243
+ let urlPath = `/graphql/{pathQueryId}/TweetDetail`;
1244
+ urlPath = urlPath.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters['pathQueryId'])));
1245
+ return {
1246
+ path: urlPath,
1247
+ method: 'GET',
1248
+ headers: headerParameters,
1249
+ query: queryParameters,
1250
+ };
1251
+ }
1252
+ /**
1253
+ * get TweetDetail
1254
+ */
1255
+ async getTweetDetailRaw(requestParameters, initOverrides) {
1256
+ const requestOptions = await this.getTweetDetailRequestOpts(requestParameters);
1257
+ const response = await this.request(requestOptions, initOverrides);
1258
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TweetDetailResponseFromJSON)(jsonValue));
1259
+ }
1260
+ /**
1261
+ * get TweetDetail
1262
+ */
1263
+ async getTweetDetail(requestParameters, initOverrides) {
1264
+ const response = await this.getTweetDetailRaw(requestParameters, initOverrides);
1265
+ return await response.value();
1266
+ }
1267
+ /**
1268
+ * Creates request options for getUserHighlightsTweets without sending the request
1269
+ */
1270
+ async getUserHighlightsTweetsRequestOpts(requestParameters) {
1271
+ if (requestParameters['pathQueryId'] == null) {
1272
+ throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getUserHighlightsTweets().');
1273
+ }
1274
+ if (requestParameters['variables'] == null) {
1275
+ throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getUserHighlightsTweets().');
1276
+ }
1277
+ if (requestParameters['features'] == null) {
1278
+ throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getUserHighlightsTweets().');
1279
+ }
1280
+ if (requestParameters['fieldToggles'] == null) {
1281
+ throw new runtime.RequiredError('fieldToggles', 'Required parameter "fieldToggles" was null or undefined when calling getUserHighlightsTweets().');
1282
+ }
1283
+ const queryParameters = {};
1284
+ if (requestParameters['variables'] != null) {
1285
+ queryParameters['variables'] = requestParameters['variables'];
1286
+ }
1287
+ if (requestParameters['features'] != null) {
1288
+ queryParameters['features'] = requestParameters['features'];
1289
+ }
1290
+ if (requestParameters['fieldToggles'] != null) {
1291
+ queryParameters['fieldToggles'] = requestParameters['fieldToggles'];
1292
+ }
1293
+ const headerParameters = {};
1294
+ if (this.configuration && this.configuration.apiKey) {
1295
+ headerParameters["Accept"] = await this.configuration.apiKey("Accept"); // Accept authentication
1296
+ }
1297
+ if (this.configuration && this.configuration.apiKey) {
1298
+ headerParameters["x-twitter-client-language"] = await this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
1299
+ }
1300
+ if (this.configuration && this.configuration.apiKey) {
1301
+ headerParameters["Priority"] = await this.configuration.apiKey("Priority"); // Priority authentication
1302
+ }
1303
+ if (this.configuration && this.configuration.apiKey) {
1304
+ headerParameters["Referer"] = await this.configuration.apiKey("Referer"); // Referer authentication
1305
+ }
1306
+ if (this.configuration && this.configuration.apiKey) {
1307
+ headerParameters["Sec-Fetch-Dest"] = await this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
1308
+ }
1309
+ if (this.configuration && this.configuration.apiKey) {
1310
+ headerParameters["Sec-Ch-Ua-Platform"] = await this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
1311
+ }
1312
+ if (this.configuration && this.configuration.apiKey) {
1313
+ headerParameters["Sec-Fetch-Mode"] = await this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
1314
+ }
1315
+ if (this.configuration && this.configuration.apiKey) {
1316
+ headerParameters["x-csrf-token"] = await this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
1317
+ }
1318
+ if (this.configuration && this.configuration.apiKey) {
1319
+ headerParameters["x-client-uuid"] = await this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
1320
+ }
1321
+ if (this.configuration && this.configuration.accessToken) {
1322
+ const token = this.configuration.accessToken;
1323
+ const tokenString = await token("BearerAuth", []);
1324
+ if (tokenString) {
1325
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1326
+ }
1327
+ }
1328
+ if (this.configuration && this.configuration.apiKey) {
1329
+ headerParameters["x-guest-token"] = await this.configuration.apiKey("x-guest-token"); // GuestToken authentication
1330
+ }
1331
+ if (this.configuration && this.configuration.apiKey) {
1332
+ headerParameters["Sec-Ch-Ua"] = await this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
1333
+ }
1334
+ if (this.configuration && this.configuration.apiKey) {
1335
+ headerParameters["x-client-transaction-id"] = await this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
1336
+ }
1337
+ if (this.configuration && this.configuration.apiKey) {
1338
+ headerParameters["x-twitter-active-user"] = await this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
1339
+ }
1340
+ if (this.configuration && this.configuration.apiKey) {
1341
+ headerParameters["user-agent"] = await this.configuration.apiKey("user-agent"); // UserAgent authentication
1342
+ }
1343
+ if (this.configuration && this.configuration.apiKey) {
1344
+ headerParameters["Accept-Language"] = await this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
1345
+ }
1346
+ if (this.configuration && this.configuration.apiKey) {
1347
+ headerParameters["Sec-Fetch-Site"] = await this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
1348
+ }
1349
+ if (this.configuration && this.configuration.apiKey) {
1350
+ headerParameters["x-twitter-auth-type"] = await this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
1351
+ }
1352
+ if (this.configuration && this.configuration.apiKey) {
1353
+ headerParameters["Sec-Ch-Ua-Mobile"] = await this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
1354
+ }
1355
+ if (this.configuration && this.configuration.apiKey) {
1356
+ headerParameters["Accept-Encoding"] = await this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
1357
+ }
1358
+ let urlPath = `/graphql/{pathQueryId}/UserHighlightsTweets`;
1359
+ urlPath = urlPath.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters['pathQueryId'])));
1360
+ return {
1361
+ path: urlPath,
1362
+ method: 'GET',
1363
+ headers: headerParameters,
1364
+ query: queryParameters,
1365
+ };
1366
+ }
1367
+ /**
1368
+ * get user highlights tweets
1369
+ */
1370
+ async getUserHighlightsTweetsRaw(requestParameters, initOverrides) {
1371
+ const requestOptions = await this.getUserHighlightsTweetsRequestOpts(requestParameters);
1372
+ const response = await this.request(requestOptions, initOverrides);
1373
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UserHighlightsTweetsResponseFromJSON)(jsonValue));
1374
+ }
1375
+ /**
1376
+ * get user highlights tweets
1377
+ */
1378
+ async getUserHighlightsTweets(requestParameters, initOverrides) {
1379
+ const response = await this.getUserHighlightsTweetsRaw(requestParameters, initOverrides);
1380
+ return await response.value();
1381
+ }
1382
+ /**
1383
+ * Creates request options for getUserMedia without sending the request
1384
+ */
1385
+ async getUserMediaRequestOpts(requestParameters) {
1386
+ if (requestParameters['pathQueryId'] == null) {
1387
+ throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getUserMedia().');
1388
+ }
1389
+ if (requestParameters['variables'] == null) {
1390
+ throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getUserMedia().');
1391
+ }
1392
+ if (requestParameters['features'] == null) {
1393
+ throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getUserMedia().');
1394
+ }
1395
+ if (requestParameters['fieldToggles'] == null) {
1396
+ throw new runtime.RequiredError('fieldToggles', 'Required parameter "fieldToggles" was null or undefined when calling getUserMedia().');
1397
+ }
1398
+ const queryParameters = {};
1399
+ if (requestParameters['variables'] != null) {
1400
+ queryParameters['variables'] = requestParameters['variables'];
1401
+ }
1402
+ if (requestParameters['features'] != null) {
1403
+ queryParameters['features'] = requestParameters['features'];
1404
+ }
1405
+ if (requestParameters['fieldToggles'] != null) {
1406
+ queryParameters['fieldToggles'] = requestParameters['fieldToggles'];
1407
+ }
1408
+ const headerParameters = {};
1409
+ if (this.configuration && this.configuration.apiKey) {
1410
+ headerParameters["Accept"] = await this.configuration.apiKey("Accept"); // Accept authentication
1411
+ }
1412
+ if (this.configuration && this.configuration.apiKey) {
1413
+ headerParameters["x-twitter-client-language"] = await this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
1414
+ }
1415
+ if (this.configuration && this.configuration.apiKey) {
1416
+ headerParameters["Priority"] = await this.configuration.apiKey("Priority"); // Priority authentication
1417
+ }
1418
+ if (this.configuration && this.configuration.apiKey) {
1419
+ headerParameters["Referer"] = await this.configuration.apiKey("Referer"); // Referer authentication
1420
+ }
1421
+ if (this.configuration && this.configuration.apiKey) {
1422
+ headerParameters["Sec-Fetch-Dest"] = await this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
1423
+ }
1424
+ if (this.configuration && this.configuration.apiKey) {
1425
+ headerParameters["Sec-Ch-Ua-Platform"] = await this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
1426
+ }
1427
+ if (this.configuration && this.configuration.apiKey) {
1428
+ headerParameters["Sec-Fetch-Mode"] = await this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
1429
+ }
1430
+ if (this.configuration && this.configuration.apiKey) {
1431
+ headerParameters["x-csrf-token"] = await this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
1432
+ }
1433
+ if (this.configuration && this.configuration.apiKey) {
1434
+ headerParameters["x-client-uuid"] = await this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
1435
+ }
1436
+ if (this.configuration && this.configuration.accessToken) {
1437
+ const token = this.configuration.accessToken;
1438
+ const tokenString = await token("BearerAuth", []);
1439
+ if (tokenString) {
1440
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1441
+ }
1442
+ }
1443
+ if (this.configuration && this.configuration.apiKey) {
1444
+ headerParameters["x-guest-token"] = await this.configuration.apiKey("x-guest-token"); // GuestToken authentication
1445
+ }
1446
+ if (this.configuration && this.configuration.apiKey) {
1447
+ headerParameters["Sec-Ch-Ua"] = await this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
1448
+ }
1449
+ if (this.configuration && this.configuration.apiKey) {
1450
+ headerParameters["x-client-transaction-id"] = await this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
1451
+ }
1452
+ if (this.configuration && this.configuration.apiKey) {
1453
+ headerParameters["x-twitter-active-user"] = await this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
1454
+ }
1455
+ if (this.configuration && this.configuration.apiKey) {
1456
+ headerParameters["user-agent"] = await this.configuration.apiKey("user-agent"); // UserAgent authentication
1457
+ }
1458
+ if (this.configuration && this.configuration.apiKey) {
1459
+ headerParameters["Accept-Language"] = await this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
1460
+ }
1461
+ if (this.configuration && this.configuration.apiKey) {
1462
+ headerParameters["Sec-Fetch-Site"] = await this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
1463
+ }
1464
+ if (this.configuration && this.configuration.apiKey) {
1465
+ headerParameters["x-twitter-auth-type"] = await this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
1466
+ }
1467
+ if (this.configuration && this.configuration.apiKey) {
1468
+ headerParameters["Sec-Ch-Ua-Mobile"] = await this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
1469
+ }
1470
+ if (this.configuration && this.configuration.apiKey) {
1471
+ headerParameters["Accept-Encoding"] = await this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
1472
+ }
1473
+ let urlPath = `/graphql/{pathQueryId}/UserMedia`;
1474
+ urlPath = urlPath.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters['pathQueryId'])));
1475
+ return {
1476
+ path: urlPath,
1477
+ method: 'GET',
1478
+ headers: headerParameters,
1479
+ query: queryParameters,
1480
+ };
1481
+ }
1482
+ /**
1483
+ * get user media tweets
1484
+ */
1485
+ async getUserMediaRaw(requestParameters, initOverrides) {
1486
+ const requestOptions = await this.getUserMediaRequestOpts(requestParameters);
1487
+ const response = await this.request(requestOptions, initOverrides);
1488
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UserTweetsResponseFromJSON)(jsonValue));
1489
+ }
1490
+ /**
1491
+ * get user media tweets
1492
+ */
1493
+ async getUserMedia(requestParameters, initOverrides) {
1494
+ const response = await this.getUserMediaRaw(requestParameters, initOverrides);
1495
+ return await response.value();
1496
+ }
1497
+ /**
1498
+ * Creates request options for getUserTweets without sending the request
1499
+ */
1500
+ async getUserTweetsRequestOpts(requestParameters) {
1501
+ if (requestParameters['pathQueryId'] == null) {
1502
+ throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getUserTweets().');
1503
+ }
1504
+ if (requestParameters['variables'] == null) {
1505
+ throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getUserTweets().');
1506
+ }
1507
+ if (requestParameters['features'] == null) {
1508
+ throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getUserTweets().');
1509
+ }
1510
+ if (requestParameters['fieldToggles'] == null) {
1511
+ throw new runtime.RequiredError('fieldToggles', 'Required parameter "fieldToggles" was null or undefined when calling getUserTweets().');
1512
+ }
1513
+ const queryParameters = {};
1514
+ if (requestParameters['variables'] != null) {
1515
+ queryParameters['variables'] = requestParameters['variables'];
1516
+ }
1517
+ if (requestParameters['features'] != null) {
1518
+ queryParameters['features'] = requestParameters['features'];
1519
+ }
1520
+ if (requestParameters['fieldToggles'] != null) {
1521
+ queryParameters['fieldToggles'] = requestParameters['fieldToggles'];
1522
+ }
1523
+ const headerParameters = {};
1524
+ if (this.configuration && this.configuration.apiKey) {
1525
+ headerParameters["Accept"] = await this.configuration.apiKey("Accept"); // Accept authentication
1526
+ }
1527
+ if (this.configuration && this.configuration.apiKey) {
1528
+ headerParameters["x-twitter-client-language"] = await this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
1529
+ }
1530
+ if (this.configuration && this.configuration.apiKey) {
1531
+ headerParameters["Priority"] = await this.configuration.apiKey("Priority"); // Priority authentication
1532
+ }
1533
+ if (this.configuration && this.configuration.apiKey) {
1534
+ headerParameters["Referer"] = await this.configuration.apiKey("Referer"); // Referer authentication
1535
+ }
1536
+ if (this.configuration && this.configuration.apiKey) {
1537
+ headerParameters["Sec-Fetch-Dest"] = await this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
1538
+ }
1539
+ if (this.configuration && this.configuration.apiKey) {
1540
+ headerParameters["Sec-Ch-Ua-Platform"] = await this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
1541
+ }
1542
+ if (this.configuration && this.configuration.apiKey) {
1543
+ headerParameters["Sec-Fetch-Mode"] = await this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
1544
+ }
1545
+ if (this.configuration && this.configuration.apiKey) {
1546
+ headerParameters["x-csrf-token"] = await this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
1547
+ }
1548
+ if (this.configuration && this.configuration.apiKey) {
1549
+ headerParameters["x-client-uuid"] = await this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
1550
+ }
1551
+ if (this.configuration && this.configuration.accessToken) {
1552
+ const token = this.configuration.accessToken;
1553
+ const tokenString = await token("BearerAuth", []);
1554
+ if (tokenString) {
1555
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1556
+ }
1557
+ }
1558
+ if (this.configuration && this.configuration.apiKey) {
1559
+ headerParameters["x-guest-token"] = await this.configuration.apiKey("x-guest-token"); // GuestToken authentication
1560
+ }
1561
+ if (this.configuration && this.configuration.apiKey) {
1562
+ headerParameters["Sec-Ch-Ua"] = await this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
1563
+ }
1564
+ if (this.configuration && this.configuration.apiKey) {
1565
+ headerParameters["x-client-transaction-id"] = await this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
1566
+ }
1567
+ if (this.configuration && this.configuration.apiKey) {
1568
+ headerParameters["x-twitter-active-user"] = await this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
1569
+ }
1570
+ if (this.configuration && this.configuration.apiKey) {
1571
+ headerParameters["user-agent"] = await this.configuration.apiKey("user-agent"); // UserAgent authentication
1572
+ }
1573
+ if (this.configuration && this.configuration.apiKey) {
1574
+ headerParameters["Accept-Language"] = await this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
1575
+ }
1576
+ if (this.configuration && this.configuration.apiKey) {
1577
+ headerParameters["Sec-Fetch-Site"] = await this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
1578
+ }
1579
+ if (this.configuration && this.configuration.apiKey) {
1580
+ headerParameters["x-twitter-auth-type"] = await this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
1581
+ }
1582
+ if (this.configuration && this.configuration.apiKey) {
1583
+ headerParameters["Sec-Ch-Ua-Mobile"] = await this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
1584
+ }
1585
+ if (this.configuration && this.configuration.apiKey) {
1586
+ headerParameters["Accept-Encoding"] = await this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
1587
+ }
1588
+ let urlPath = `/graphql/{pathQueryId}/UserTweets`;
1589
+ urlPath = urlPath.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters['pathQueryId'])));
1590
+ return {
1591
+ path: urlPath,
1592
+ method: 'GET',
1593
+ headers: headerParameters,
1594
+ query: queryParameters,
1595
+ };
1596
+ }
1597
+ /**
1598
+ * get user tweets
1599
+ */
1600
+ async getUserTweetsRaw(requestParameters, initOverrides) {
1601
+ const requestOptions = await this.getUserTweetsRequestOpts(requestParameters);
1602
+ const response = await this.request(requestOptions, initOverrides);
1603
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UserTweetsResponseFromJSON)(jsonValue));
1604
+ }
1605
+ /**
1606
+ * get user tweets
1607
+ */
1608
+ async getUserTweets(requestParameters, initOverrides) {
1609
+ const response = await this.getUserTweetsRaw(requestParameters, initOverrides);
1610
+ return await response.value();
1611
+ }
1612
+ /**
1613
+ * Creates request options for getUserTweetsAndReplies without sending the request
1614
+ */
1615
+ async getUserTweetsAndRepliesRequestOpts(requestParameters) {
1616
+ if (requestParameters['pathQueryId'] == null) {
1617
+ throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getUserTweetsAndReplies().');
1618
+ }
1619
+ if (requestParameters['variables'] == null) {
1620
+ throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getUserTweetsAndReplies().');
1621
+ }
1622
+ if (requestParameters['features'] == null) {
1623
+ throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getUserTweetsAndReplies().');
1624
+ }
1625
+ if (requestParameters['fieldToggles'] == null) {
1626
+ throw new runtime.RequiredError('fieldToggles', 'Required parameter "fieldToggles" was null or undefined when calling getUserTweetsAndReplies().');
1627
+ }
1628
+ const queryParameters = {};
1629
+ if (requestParameters['variables'] != null) {
1630
+ queryParameters['variables'] = requestParameters['variables'];
1631
+ }
1632
+ if (requestParameters['features'] != null) {
1633
+ queryParameters['features'] = requestParameters['features'];
1634
+ }
1635
+ if (requestParameters['fieldToggles'] != null) {
1636
+ queryParameters['fieldToggles'] = requestParameters['fieldToggles'];
1637
+ }
1638
+ const headerParameters = {};
1639
+ if (this.configuration && this.configuration.apiKey) {
1640
+ headerParameters["Accept"] = await this.configuration.apiKey("Accept"); // Accept authentication
1641
+ }
1642
+ if (this.configuration && this.configuration.apiKey) {
1643
+ headerParameters["x-twitter-client-language"] = await this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
1644
+ }
1645
+ if (this.configuration && this.configuration.apiKey) {
1646
+ headerParameters["Priority"] = await this.configuration.apiKey("Priority"); // Priority authentication
1647
+ }
1648
+ if (this.configuration && this.configuration.apiKey) {
1649
+ headerParameters["Referer"] = await this.configuration.apiKey("Referer"); // Referer authentication
1650
+ }
1651
+ if (this.configuration && this.configuration.apiKey) {
1652
+ headerParameters["Sec-Fetch-Dest"] = await this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
1653
+ }
1654
+ if (this.configuration && this.configuration.apiKey) {
1655
+ headerParameters["Sec-Ch-Ua-Platform"] = await this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
1656
+ }
1657
+ if (this.configuration && this.configuration.apiKey) {
1658
+ headerParameters["Sec-Fetch-Mode"] = await this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
1659
+ }
1660
+ if (this.configuration && this.configuration.apiKey) {
1661
+ headerParameters["x-csrf-token"] = await this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
1662
+ }
1663
+ if (this.configuration && this.configuration.apiKey) {
1664
+ headerParameters["x-client-uuid"] = await this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
1665
+ }
1666
+ if (this.configuration && this.configuration.accessToken) {
1667
+ const token = this.configuration.accessToken;
1668
+ const tokenString = await token("BearerAuth", []);
1669
+ if (tokenString) {
1670
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1671
+ }
1672
+ }
1673
+ if (this.configuration && this.configuration.apiKey) {
1674
+ headerParameters["x-guest-token"] = await this.configuration.apiKey("x-guest-token"); // GuestToken authentication
1675
+ }
1676
+ if (this.configuration && this.configuration.apiKey) {
1677
+ headerParameters["Sec-Ch-Ua"] = await this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
1678
+ }
1679
+ if (this.configuration && this.configuration.apiKey) {
1680
+ headerParameters["x-client-transaction-id"] = await this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
1681
+ }
1682
+ if (this.configuration && this.configuration.apiKey) {
1683
+ headerParameters["x-twitter-active-user"] = await this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
1684
+ }
1685
+ if (this.configuration && this.configuration.apiKey) {
1686
+ headerParameters["user-agent"] = await this.configuration.apiKey("user-agent"); // UserAgent authentication
1687
+ }
1688
+ if (this.configuration && this.configuration.apiKey) {
1689
+ headerParameters["Accept-Language"] = await this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
1690
+ }
1691
+ if (this.configuration && this.configuration.apiKey) {
1692
+ headerParameters["Sec-Fetch-Site"] = await this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
1693
+ }
1694
+ if (this.configuration && this.configuration.apiKey) {
1695
+ headerParameters["x-twitter-auth-type"] = await this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
1696
+ }
1697
+ if (this.configuration && this.configuration.apiKey) {
1698
+ headerParameters["Sec-Ch-Ua-Mobile"] = await this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
1699
+ }
1700
+ if (this.configuration && this.configuration.apiKey) {
1701
+ headerParameters["Accept-Encoding"] = await this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
1702
+ }
1703
+ let urlPath = `/graphql/{pathQueryId}/UserTweetsAndReplies`;
1704
+ urlPath = urlPath.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters['pathQueryId'])));
1705
+ return {
1706
+ path: urlPath,
1707
+ method: 'GET',
1708
+ headers: headerParameters,
1709
+ query: queryParameters,
1710
+ };
1711
+ }
1712
+ /**
1713
+ * get user replies tweets
1714
+ */
1715
+ async getUserTweetsAndRepliesRaw(requestParameters, initOverrides) {
1716
+ const requestOptions = await this.getUserTweetsAndRepliesRequestOpts(requestParameters);
1717
+ const response = await this.request(requestOptions, initOverrides);
1718
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UserTweetsResponseFromJSON)(jsonValue));
1719
+ }
1720
+ /**
1721
+ * get user replies tweets
1722
+ */
1723
+ async getUserTweetsAndReplies(requestParameters, initOverrides) {
1724
+ const response = await this.getUserTweetsAndRepliesRaw(requestParameters, initOverrides);
1725
+ return await response.value();
1726
+ }
1727
+ }
1728
+ exports.TweetApi = TweetApi;
1729
+ //# sourceMappingURL=TweetApi.js.map