twitter-openapi-typescript-generated 0.0.37 → 0.0.39

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 (1048) hide show
  1. package/README.md +652 -28
  2. package/dist/apis/DefaultApi.d.ts +54 -45
  3. package/dist/apis/DefaultApi.d.ts.map +1 -1
  4. package/dist/apis/DefaultApi.js +559 -520
  5. package/dist/apis/DefaultApi.js.map +1 -1
  6. package/dist/apis/OtherApi.d.ts +30 -26
  7. package/dist/apis/OtherApi.d.ts.map +1 -1
  8. package/dist/apis/OtherApi.js +300 -282
  9. package/dist/apis/OtherApi.js.map +1 -1
  10. package/dist/apis/PostApi.d.ts +161 -114
  11. package/dist/apis/PostApi.d.ts.map +1 -1
  12. package/dist/apis/PostApi.js +1927 -1760
  13. package/dist/apis/PostApi.js.map +1 -1
  14. package/dist/apis/TweetApi.d.ts +289 -167
  15. package/dist/apis/TweetApi.d.ts.map +1 -1
  16. package/dist/apis/TweetApi.js +3666 -2503
  17. package/dist/apis/TweetApi.js.map +1 -1
  18. package/dist/apis/UserApi.d.ts +53 -45
  19. package/dist/apis/UserApi.d.ts.map +1 -1
  20. package/dist/apis/UserApi.js +558 -520
  21. package/dist/apis/UserApi.js.map +1 -1
  22. package/dist/apis/UserListApi.d.ts +105 -83
  23. package/dist/apis/UserListApi.d.ts.map +1 -1
  24. package/dist/apis/UserListApi.js +1262 -1165
  25. package/dist/apis/UserListApi.js.map +1 -1
  26. package/dist/apis/UsersApi.d.ts +35 -31
  27. package/dist/apis/UsersApi.d.ts.map +1 -1
  28. package/dist/apis/UsersApi.js +316 -297
  29. package/dist/apis/UsersApi.js.map +1 -1
  30. package/dist/apis/V11GetApi.d.ts +68 -60
  31. package/dist/apis/V11GetApi.d.ts.map +1 -1
  32. package/dist/apis/V11GetApi.js +653 -617
  33. package/dist/apis/V11GetApi.js.map +1 -1
  34. package/dist/apis/V11PostApi.d.ts +73 -65
  35. package/dist/apis/V11PostApi.d.ts.map +1 -1
  36. package/dist/apis/V11PostApi.js +707 -673
  37. package/dist/apis/V11PostApi.js.map +1 -1
  38. package/dist/apis/V20GetApi.d.ts +68 -64
  39. package/dist/apis/V20GetApi.d.ts.map +1 -1
  40. package/dist/apis/V20GetApi.js +519 -501
  41. package/dist/apis/V20GetApi.js.map +1 -1
  42. package/dist/apis/index.d.ts +10 -10
  43. package/dist/apis/index.js +28 -28
  44. package/dist/index.d.ts +3 -3
  45. package/dist/index.js +21 -21
  46. package/dist/models/AboutCommunityResult.d.ts +41 -0
  47. package/dist/models/AboutCommunityResult.d.ts.map +1 -0
  48. package/dist/models/AboutCommunityResult.js +58 -0
  49. package/dist/models/AboutCommunityResult.js.map +1 -0
  50. package/dist/models/AboutCommunityResults.d.ts +34 -0
  51. package/dist/models/AboutCommunityResults.d.ts.map +1 -0
  52. package/dist/models/AboutCommunityResults.js +53 -0
  53. package/dist/models/AboutCommunityResults.js.map +1 -0
  54. package/dist/models/AboutCommunityTweetData.d.ts +34 -0
  55. package/dist/models/AboutCommunityTweetData.d.ts.map +1 -0
  56. package/dist/models/AboutCommunityTweetData.js +53 -0
  57. package/dist/models/AboutCommunityTweetData.js.map +1 -0
  58. package/dist/models/AdditionalMediaInfo.d.ts +64 -64
  59. package/dist/models/AdditionalMediaInfo.js +63 -64
  60. package/dist/models/AdditionalMediaInfo.js.map +1 -1
  61. package/dist/models/AdditionalMediaInfoCallToActions.d.ts +39 -39
  62. package/dist/models/AdditionalMediaInfoCallToActions.js +52 -53
  63. package/dist/models/AdditionalMediaInfoCallToActions.js.map +1 -1
  64. package/dist/models/AdditionalMediaInfoCallToActionsUrl.d.ts +32 -32
  65. package/dist/models/AdditionalMediaInfoCallToActionsUrl.js +51 -52
  66. package/dist/models/AdditionalMediaInfoCallToActionsUrl.js.map +1 -1
  67. package/dist/models/AllowDownloadStatus.d.ts +32 -32
  68. package/dist/models/AllowDownloadStatus.js +49 -50
  69. package/dist/models/AllowDownloadStatus.js.map +1 -1
  70. package/dist/models/AnalysisResults.d.ts +34 -0
  71. package/dist/models/AnalysisResults.d.ts.map +1 -0
  72. package/dist/models/AnalysisResults.js +53 -0
  73. package/dist/models/AnalysisResults.js.map +1 -0
  74. package/dist/models/Article.d.ts +33 -33
  75. package/dist/models/Article.js +52 -53
  76. package/dist/models/Article.js.map +1 -1
  77. package/dist/models/ArticleCoverMedia.d.ts +51 -51
  78. package/dist/models/ArticleCoverMedia.js +64 -65
  79. package/dist/models/ArticleCoverMedia.js.map +1 -1
  80. package/dist/models/ArticleCoverMediaColorInfo.d.ts +33 -33
  81. package/dist/models/ArticleCoverMediaColorInfo.js +52 -53
  82. package/dist/models/ArticleCoverMediaColorInfo.js.map +1 -1
  83. package/dist/models/ArticleCoverMediaColorInfoPalette.d.ts +39 -39
  84. package/dist/models/ArticleCoverMediaColorInfoPalette.js +56 -57
  85. package/dist/models/ArticleCoverMediaColorInfoPalette.js.map +1 -1
  86. package/dist/models/ArticleCoverMediaColorInfoPaletteRGB.d.ts +44 -44
  87. package/dist/models/ArticleCoverMediaColorInfoPaletteRGB.js +59 -60
  88. package/dist/models/ArticleCoverMediaColorInfoPaletteRGB.js.map +1 -1
  89. package/dist/models/ArticleCoverMediaInfo.d.ts +58 -58
  90. package/dist/models/ArticleCoverMediaInfo.js +67 -68
  91. package/dist/models/ArticleCoverMediaInfo.js.map +1 -1
  92. package/dist/models/ArticleLifecycleState.d.ts +32 -32
  93. package/dist/models/ArticleLifecycleState.js +51 -52
  94. package/dist/models/ArticleLifecycleState.js.map +1 -1
  95. package/dist/models/ArticleMetadata.d.ts +32 -32
  96. package/dist/models/ArticleMetadata.js +51 -52
  97. package/dist/models/ArticleMetadata.js.map +1 -1
  98. package/dist/models/ArticleResult.d.ts +71 -71
  99. package/dist/models/ArticleResult.js +76 -77
  100. package/dist/models/ArticleResult.js.map +1 -1
  101. package/dist/models/ArticleResults.d.ts +33 -33
  102. package/dist/models/ArticleResults.js +52 -53
  103. package/dist/models/ArticleResults.js.map +1 -1
  104. package/dist/models/AuthorCommunityRelationship.d.ts +55 -55
  105. package/dist/models/AuthorCommunityRelationship.js +66 -66
  106. package/dist/models/AuthorCommunityRelationship.js.map +1 -1
  107. package/dist/models/BirdwatchEntity.d.ts +45 -45
  108. package/dist/models/BirdwatchEntity.js +60 -61
  109. package/dist/models/BirdwatchEntity.js.map +1 -1
  110. package/dist/models/BirdwatchEntityRef.d.ts +65 -65
  111. package/dist/models/BirdwatchEntityRef.js +71 -71
  112. package/dist/models/BirdwatchEntityRef.js.map +1 -1
  113. package/dist/models/BirdwatchPivot.d.ts +105 -99
  114. package/dist/models/BirdwatchPivot.d.ts.map +1 -1
  115. package/dist/models/BirdwatchPivot.js +91 -89
  116. package/dist/models/BirdwatchPivot.js.map +1 -1
  117. package/dist/models/BirdwatchPivotCallToAction.d.ts +44 -44
  118. package/dist/models/BirdwatchPivotCallToAction.js +59 -60
  119. package/dist/models/BirdwatchPivotCallToAction.js.map +1 -1
  120. package/dist/models/BirdwatchPivotFooter.d.ts +39 -39
  121. package/dist/models/BirdwatchPivotFooter.js +56 -57
  122. package/dist/models/BirdwatchPivotFooter.js.map +1 -1
  123. package/dist/models/BirdwatchPivotNote.d.ts +32 -32
  124. package/dist/models/BirdwatchPivotNote.js +51 -52
  125. package/dist/models/BirdwatchPivotNote.js.map +1 -1
  126. package/dist/models/BirdwatchPivotSubtitle.d.ts +39 -39
  127. package/dist/models/BirdwatchPivotSubtitle.js +56 -57
  128. package/dist/models/BirdwatchPivotSubtitle.js.map +1 -1
  129. package/dist/models/BookmarksResponse.d.ts +40 -40
  130. package/dist/models/BookmarksResponse.js +53 -54
  131. package/dist/models/BookmarksResponse.js.map +1 -1
  132. package/dist/models/BookmarksResponseData.d.ts +33 -33
  133. package/dist/models/BookmarksResponseData.js +52 -53
  134. package/dist/models/BookmarksResponseData.js.map +1 -1
  135. package/dist/models/BookmarksTimeline.d.ts +33 -33
  136. package/dist/models/BookmarksTimeline.js +52 -53
  137. package/dist/models/BookmarksTimeline.js.map +1 -1
  138. package/dist/models/Callback.d.ts +32 -32
  139. package/dist/models/Callback.js +51 -52
  140. package/dist/models/Callback.js.map +1 -1
  141. package/dist/models/ClientEventInfo.d.ts +46 -46
  142. package/dist/models/ClientEventInfo.js +53 -54
  143. package/dist/models/ClientEventInfo.js.map +1 -1
  144. package/dist/models/CommunitiesActions.d.ts +32 -32
  145. package/dist/models/CommunitiesActions.js +51 -52
  146. package/dist/models/CommunitiesActions.js.map +1 -1
  147. package/dist/models/Community.d.ts +33 -33
  148. package/dist/models/Community.js +52 -53
  149. package/dist/models/Community.js.map +1 -1
  150. package/dist/models/CommunityAboutTimelineResponse.d.ts +41 -0
  151. package/dist/models/CommunityAboutTimelineResponse.d.ts.map +1 -0
  152. package/dist/models/CommunityAboutTimelineResponse.js +56 -0
  153. package/dist/models/CommunityAboutTimelineResponse.js.map +1 -0
  154. package/dist/models/CommunityActions.d.ts +61 -61
  155. package/dist/models/CommunityActions.js +62 -63
  156. package/dist/models/CommunityActions.js.map +1 -1
  157. package/dist/models/CommunityData.d.ts +219 -219
  158. package/dist/models/CommunityData.js +132 -132
  159. package/dist/models/CommunityData.js.map +1 -1
  160. package/dist/models/CommunityDeleteActionResult.d.ts +46 -46
  161. package/dist/models/CommunityDeleteActionResult.js +63 -63
  162. package/dist/models/CommunityDeleteActionResult.js.map +1 -1
  163. package/dist/models/CommunityInvitesResult.d.ts +52 -52
  164. package/dist/models/CommunityInvitesResult.js +67 -67
  165. package/dist/models/CommunityInvitesResult.js.map +1 -1
  166. package/dist/models/CommunityJoinAction.d.ts +33 -33
  167. package/dist/models/CommunityJoinAction.js +52 -53
  168. package/dist/models/CommunityJoinAction.js.map +1 -1
  169. package/dist/models/CommunityJoinActionResultUnion.d.ts +27 -27
  170. package/dist/models/CommunityJoinActionResultUnion.d.ts.map +1 -1
  171. package/dist/models/CommunityJoinActionResultUnion.js +54 -55
  172. package/dist/models/CommunityJoinActionResultUnion.js.map +1 -1
  173. package/dist/models/CommunityJoinActionUnavailable.d.ts +52 -52
  174. package/dist/models/CommunityJoinActionUnavailable.js +67 -67
  175. package/dist/models/CommunityJoinActionUnavailable.js.map +1 -1
  176. package/dist/models/CommunityJoinRequestsResult.d.ts +33 -33
  177. package/dist/models/CommunityJoinRequestsResult.js +52 -53
  178. package/dist/models/CommunityJoinRequestsResult.js.map +1 -1
  179. package/dist/models/CommunityLeaveActionResult.d.ts +52 -52
  180. package/dist/models/CommunityLeaveActionResult.js +67 -67
  181. package/dist/models/CommunityLeaveActionResult.js.map +1 -1
  182. package/dist/models/CommunityMediaTimelineResponse.d.ts +41 -0
  183. package/dist/models/CommunityMediaTimelineResponse.d.ts.map +1 -0
  184. package/dist/models/CommunityMediaTimelineResponse.js +56 -0
  185. package/dist/models/CommunityMediaTimelineResponse.js.map +1 -0
  186. package/dist/models/CommunityPinActionResult.d.ts +33 -33
  187. package/dist/models/CommunityPinActionResult.js +52 -53
  188. package/dist/models/CommunityPinActionResult.js.map +1 -1
  189. package/dist/models/CommunityRelationship.d.ts +53 -53
  190. package/dist/models/CommunityRelationship.js +64 -65
  191. package/dist/models/CommunityRelationship.js.map +1 -1
  192. package/dist/models/CommunityRule.d.ts +44 -44
  193. package/dist/models/CommunityRule.js +57 -58
  194. package/dist/models/CommunityRule.js.map +1 -1
  195. package/dist/models/CommunityTweetsTimelineResponse.d.ts +41 -0
  196. package/dist/models/CommunityTweetsTimelineResponse.d.ts.map +1 -0
  197. package/dist/models/CommunityTweetsTimelineResponse.js +56 -0
  198. package/dist/models/CommunityTweetsTimelineResponse.js.map +1 -0
  199. package/dist/models/CommunityUnpinActionResult.d.ts +33 -33
  200. package/dist/models/CommunityUnpinActionResult.js +52 -53
  201. package/dist/models/CommunityUnpinActionResult.js.map +1 -1
  202. package/dist/models/CommunityUrls.d.ts +33 -33
  203. package/dist/models/CommunityUrls.js +52 -53
  204. package/dist/models/CommunityUrls.js.map +1 -1
  205. package/dist/models/CommunityUrlsPermalink.d.ts +32 -32
  206. package/dist/models/CommunityUrlsPermalink.js +51 -52
  207. package/dist/models/CommunityUrlsPermalink.js.map +1 -1
  208. package/dist/models/ContentEntryType.d.ts +26 -26
  209. package/dist/models/ContentEntryType.js +52 -52
  210. package/dist/models/ContentEntryType.js.map +1 -1
  211. package/dist/models/ContentItemType.d.ts +32 -30
  212. package/dist/models/ContentItemType.d.ts.map +1 -1
  213. package/dist/models/ContentItemType.js +58 -56
  214. package/dist/models/ContentItemType.js.map +1 -1
  215. package/dist/models/ContentUnion.d.ts +30 -30
  216. package/dist/models/ContentUnion.d.ts.map +1 -1
  217. package/dist/models/ContentUnion.js +59 -60
  218. package/dist/models/ContentUnion.js.map +1 -1
  219. package/dist/models/ConversationControl.d.ts +41 -41
  220. package/dist/models/ConversationControl.js +60 -60
  221. package/dist/models/ConversationControl.js.map +1 -1
  222. package/dist/models/CoverCta.d.ts +66 -66
  223. package/dist/models/CoverCta.js +73 -73
  224. package/dist/models/CoverCta.js.map +1 -1
  225. package/dist/models/CreateBookmarkResponse.d.ts +40 -40
  226. package/dist/models/CreateBookmarkResponse.js +55 -56
  227. package/dist/models/CreateBookmarkResponse.js.map +1 -1
  228. package/dist/models/CreateBookmarkResponseData.d.ts +32 -32
  229. package/dist/models/CreateBookmarkResponseData.js +49 -50
  230. package/dist/models/CreateBookmarkResponseData.js.map +1 -1
  231. package/dist/models/CreateRetweet.d.ts +33 -33
  232. package/dist/models/CreateRetweet.js +52 -53
  233. package/dist/models/CreateRetweet.js.map +1 -1
  234. package/dist/models/CreateRetweetResponse.d.ts +40 -40
  235. package/dist/models/CreateRetweetResponse.js +55 -56
  236. package/dist/models/CreateRetweetResponse.js.map +1 -1
  237. package/dist/models/CreateRetweetResponseData.d.ts +33 -33
  238. package/dist/models/CreateRetweetResponseData.js +50 -51
  239. package/dist/models/CreateRetweetResponseData.js.map +1 -1
  240. package/dist/models/CreateRetweetResponseResult.d.ts +33 -33
  241. package/dist/models/CreateRetweetResponseResult.js +52 -53
  242. package/dist/models/CreateRetweetResponseResult.js.map +1 -1
  243. package/dist/models/CreateTweet.d.ts +33 -33
  244. package/dist/models/CreateTweet.js +52 -53
  245. package/dist/models/CreateTweet.js.map +1 -1
  246. package/dist/models/CreateTweetResponse.d.ts +40 -40
  247. package/dist/models/CreateTweetResponse.js +55 -56
  248. package/dist/models/CreateTweetResponse.js.map +1 -1
  249. package/dist/models/CreateTweetResponseData.d.ts +33 -33
  250. package/dist/models/CreateTweetResponseData.js +50 -51
  251. package/dist/models/CreateTweetResponseData.js.map +1 -1
  252. package/dist/models/CreateTweetResponseResult.d.ts +33 -33
  253. package/dist/models/CreateTweetResponseResult.js +52 -53
  254. package/dist/models/CreateTweetResponseResult.js.map +1 -1
  255. package/dist/models/CtaClientEventInfo.d.ts +39 -39
  256. package/dist/models/CtaClientEventInfo.js +58 -58
  257. package/dist/models/CtaClientEventInfo.js.map +1 -1
  258. package/dist/models/CursorType.d.ts +29 -29
  259. package/dist/models/CursorType.js +55 -55
  260. package/dist/models/CursorType.js.map +1 -1
  261. package/dist/models/DeleteBookmarkResponse.d.ts +40 -40
  262. package/dist/models/DeleteBookmarkResponse.js +55 -56
  263. package/dist/models/DeleteBookmarkResponse.js.map +1 -1
  264. package/dist/models/DeleteBookmarkResponseData.d.ts +32 -32
  265. package/dist/models/DeleteBookmarkResponseData.js +49 -50
  266. package/dist/models/DeleteBookmarkResponseData.js.map +1 -1
  267. package/dist/models/DeleteRetweet.d.ts +33 -33
  268. package/dist/models/DeleteRetweet.js +52 -53
  269. package/dist/models/DeleteRetweet.js.map +1 -1
  270. package/dist/models/DeleteRetweetResponse.d.ts +40 -40
  271. package/dist/models/DeleteRetweetResponse.js +55 -56
  272. package/dist/models/DeleteRetweetResponse.js.map +1 -1
  273. package/dist/models/DeleteRetweetResponseData.d.ts +33 -33
  274. package/dist/models/DeleteRetweetResponseData.js +50 -51
  275. package/dist/models/DeleteRetweetResponseData.js.map +1 -1
  276. package/dist/models/DeleteRetweetResponseResult.d.ts +33 -33
  277. package/dist/models/DeleteRetweetResponseResult.js +50 -51
  278. package/dist/models/DeleteRetweetResponseResult.js.map +1 -1
  279. package/dist/models/DeleteTweetResponse.d.ts +40 -40
  280. package/dist/models/DeleteTweetResponse.js +55 -56
  281. package/dist/models/DeleteTweetResponse.js.map +1 -1
  282. package/dist/models/DeleteTweetResponseData.d.ts +33 -33
  283. package/dist/models/DeleteTweetResponseData.js +50 -51
  284. package/dist/models/DeleteTweetResponseData.js.map +1 -1
  285. package/dist/models/DeleteTweetResponseResult.d.ts +32 -32
  286. package/dist/models/DeleteTweetResponseResult.js +51 -52
  287. package/dist/models/DeleteTweetResponseResult.js.map +1 -1
  288. package/dist/models/DisplayTreatment.d.ts +38 -38
  289. package/dist/models/DisplayTreatment.js +53 -54
  290. package/dist/models/DisplayTreatment.js.map +1 -1
  291. package/dist/models/DisplayType.d.ts +27 -27
  292. package/dist/models/DisplayType.js +53 -53
  293. package/dist/models/DisplayType.js.map +1 -1
  294. package/dist/models/Entities.d.ts +71 -71
  295. package/dist/models/Entities.js +70 -71
  296. package/dist/models/Entities.js.map +1 -1
  297. package/dist/models/ErrorExtensions.d.ts +63 -63
  298. package/dist/models/ErrorExtensions.js +70 -71
  299. package/dist/models/ErrorExtensions.js.map +1 -1
  300. package/dist/models/ErrorResponse.d.ts +89 -89
  301. package/dist/models/ErrorResponse.js +88 -89
  302. package/dist/models/ErrorResponse.js.map +1 -1
  303. package/dist/models/ExtMediaAvailability.d.ts +46 -46
  304. package/dist/models/ExtMediaAvailability.js +59 -59
  305. package/dist/models/ExtMediaAvailability.js.map +1 -1
  306. package/dist/models/ExtendedEntities.d.ts +33 -33
  307. package/dist/models/ExtendedEntities.js +52 -53
  308. package/dist/models/ExtendedEntities.js.map +1 -1
  309. package/dist/models/FavoriteTweet.d.ts +32 -32
  310. package/dist/models/FavoriteTweet.js +49 -50
  311. package/dist/models/FavoriteTweet.js.map +1 -1
  312. package/dist/models/FavoriteTweetResponse.d.ts +40 -40
  313. package/dist/models/FavoriteTweetResponse.js +55 -56
  314. package/dist/models/FavoriteTweetResponse.js.map +1 -1
  315. package/dist/models/FeedbackInfo.d.ts +39 -39
  316. package/dist/models/FeedbackInfo.js +52 -53
  317. package/dist/models/FeedbackInfo.js.map +1 -1
  318. package/dist/models/FollowResponse.d.ts +40 -40
  319. package/dist/models/FollowResponse.js +55 -56
  320. package/dist/models/FollowResponse.js.map +1 -1
  321. package/dist/models/FollowResponseData.d.ts +33 -33
  322. package/dist/models/FollowResponseData.js +50 -51
  323. package/dist/models/FollowResponseData.js.map +1 -1
  324. package/dist/models/FollowResponseResult.d.ts +40 -40
  325. package/dist/models/FollowResponseResult.js +57 -58
  326. package/dist/models/FollowResponseResult.js.map +1 -1
  327. package/dist/models/FollowResponseUser.d.ts +33 -33
  328. package/dist/models/FollowResponseUser.js +52 -53
  329. package/dist/models/FollowResponseUser.js.map +1 -1
  330. package/dist/models/FollowTimeline.d.ts +33 -33
  331. package/dist/models/FollowTimeline.js +52 -53
  332. package/dist/models/FollowTimeline.js.map +1 -1
  333. package/dist/models/GrokImageAnnotation.d.ts +39 -0
  334. package/dist/models/GrokImageAnnotation.d.ts.map +1 -0
  335. package/dist/models/GrokImageAnnotation.js +56 -0
  336. package/dist/models/GrokImageAnnotation.js.map +1 -0
  337. package/dist/models/GrokShareAttachment.d.ts +33 -33
  338. package/dist/models/GrokShareAttachment.js +52 -53
  339. package/dist/models/GrokShareAttachment.js.map +1 -1
  340. package/dist/models/GrokShareAttachmentItem.d.ts +45 -38
  341. package/dist/models/GrokShareAttachmentItem.d.ts.map +1 -1
  342. package/dist/models/GrokShareAttachmentItem.js +58 -56
  343. package/dist/models/GrokShareAttachmentItem.js.map +1 -1
  344. package/dist/models/Highlight.d.ts +33 -33
  345. package/dist/models/Highlight.js +52 -53
  346. package/dist/models/Highlight.js.map +1 -1
  347. package/dist/models/HomeTimelineHome.d.ts +33 -33
  348. package/dist/models/HomeTimelineHome.js +52 -53
  349. package/dist/models/HomeTimelineHome.js.map +1 -1
  350. package/dist/models/HomeTimelineResponseData.d.ts +33 -33
  351. package/dist/models/HomeTimelineResponseData.d.ts.map +1 -1
  352. package/dist/models/HomeTimelineResponseData.js +52 -51
  353. package/dist/models/HomeTimelineResponseData.js.map +1 -1
  354. package/dist/models/InstructionType.d.ts +33 -31
  355. package/dist/models/InstructionType.d.ts.map +1 -1
  356. package/dist/models/InstructionType.js +59 -57
  357. package/dist/models/InstructionType.js.map +1 -1
  358. package/dist/models/InstructionUnion.d.ts +51 -45
  359. package/dist/models/InstructionUnion.d.ts.map +1 -1
  360. package/dist/models/InstructionUnion.js +94 -85
  361. package/dist/models/InstructionUnion.js.map +1 -1
  362. package/dist/models/ItemContentUnion.d.ts +48 -45
  363. package/dist/models/ItemContentUnion.d.ts.map +1 -1
  364. package/dist/models/ItemContentUnion.js +89 -85
  365. package/dist/models/ItemContentUnion.js.map +1 -1
  366. package/dist/models/ItemResult.d.ts +40 -40
  367. package/dist/models/ItemResult.js +53 -54
  368. package/dist/models/ItemResult.js.map +1 -1
  369. package/dist/models/LimitedActionResultsData.d.ts +52 -52
  370. package/dist/models/LimitedActionResultsData.js +71 -71
  371. package/dist/models/LimitedActionResultsData.js.map +1 -1
  372. package/dist/models/ListLatestTweetsTimelineResponse.d.ts +40 -40
  373. package/dist/models/ListLatestTweetsTimelineResponse.js +55 -56
  374. package/dist/models/ListLatestTweetsTimelineResponse.js.map +1 -1
  375. package/dist/models/ListTweetsTimelineData.d.ts +33 -33
  376. package/dist/models/ListTweetsTimelineData.d.ts.map +1 -1
  377. package/dist/models/ListTweetsTimelineData.js +52 -51
  378. package/dist/models/ListTweetsTimelineData.js.map +1 -1
  379. package/dist/models/ListTweetsTimelineList.d.ts +33 -33
  380. package/dist/models/ListTweetsTimelineList.d.ts.map +1 -1
  381. package/dist/models/ListTweetsTimelineList.js +52 -53
  382. package/dist/models/ListTweetsTimelineList.js.map +1 -1
  383. package/dist/models/Location.d.ts +38 -38
  384. package/dist/models/Location.js +55 -56
  385. package/dist/models/Location.js.map +1 -1
  386. package/dist/models/Media.d.ts +163 -163
  387. package/dist/models/Media.js +126 -126
  388. package/dist/models/Media.js.map +1 -1
  389. package/dist/models/MediaCommunityResult.d.ts +41 -0
  390. package/dist/models/MediaCommunityResult.d.ts.map +1 -0
  391. package/dist/models/MediaCommunityResult.js +58 -0
  392. package/dist/models/MediaCommunityResult.js.map +1 -0
  393. package/dist/models/MediaCommunityResults.d.ts +34 -0
  394. package/dist/models/MediaCommunityResults.d.ts.map +1 -0
  395. package/dist/models/MediaCommunityResults.js +53 -0
  396. package/dist/models/MediaCommunityResults.js.map +1 -0
  397. package/dist/models/MediaCommunityTweetData.d.ts +34 -0
  398. package/dist/models/MediaCommunityTweetData.d.ts.map +1 -0
  399. package/dist/models/MediaCommunityTweetData.js +53 -0
  400. package/dist/models/MediaCommunityTweetData.js.map +1 -0
  401. package/dist/models/MediaExtended.d.ts +170 -170
  402. package/dist/models/MediaExtended.js +127 -127
  403. package/dist/models/MediaExtended.js.map +1 -1
  404. package/dist/models/MediaOriginalInfo.d.ts +45 -45
  405. package/dist/models/MediaOriginalInfo.js +58 -59
  406. package/dist/models/MediaOriginalInfo.js.map +1 -1
  407. package/dist/models/MediaOriginalInfoFocusRect.d.ts +50 -50
  408. package/dist/models/MediaOriginalInfoFocusRect.js +63 -64
  409. package/dist/models/MediaOriginalInfoFocusRect.js.map +1 -1
  410. package/dist/models/MediaResult.d.ts +39 -32
  411. package/dist/models/MediaResult.d.ts.map +1 -1
  412. package/dist/models/MediaResult.js +54 -52
  413. package/dist/models/MediaResult.js.map +1 -1
  414. package/dist/models/MediaResults.d.ts +33 -33
  415. package/dist/models/MediaResults.js +52 -53
  416. package/dist/models/MediaResults.js.map +1 -1
  417. package/dist/models/MediaSize.d.ts +52 -52
  418. package/dist/models/MediaSize.js +67 -67
  419. package/dist/models/MediaSize.js.map +1 -1
  420. package/dist/models/MediaSizes.d.ts +51 -51
  421. package/dist/models/MediaSizes.js +64 -65
  422. package/dist/models/MediaSizes.js.map +1 -1
  423. package/dist/models/MediaStats.d.ts +32 -32
  424. package/dist/models/MediaStats.js +51 -52
  425. package/dist/models/MediaStats.js.map +1 -1
  426. package/dist/models/MediaVideoInfo.d.ts +45 -45
  427. package/dist/models/MediaVideoInfo.js +58 -59
  428. package/dist/models/MediaVideoInfo.js.map +1 -1
  429. package/dist/models/MediaVideoInfoVariant.d.ts +44 -44
  430. package/dist/models/MediaVideoInfoVariant.js +57 -58
  431. package/dist/models/MediaVideoInfoVariant.js.map +1 -1
  432. package/dist/models/MediaVisibilityResults.d.ts +33 -33
  433. package/dist/models/MediaVisibilityResults.js +52 -53
  434. package/dist/models/MediaVisibilityResults.js.map +1 -1
  435. package/dist/models/MediaVisibilityResultsBlurredImageInterstitial.d.ts +45 -45
  436. package/dist/models/MediaVisibilityResultsBlurredImageInterstitial.js +60 -61
  437. package/dist/models/MediaVisibilityResultsBlurredImageInterstitial.js.map +1 -1
  438. package/dist/models/ModuleEntry.d.ts +47 -47
  439. package/dist/models/ModuleEntry.js +58 -59
  440. package/dist/models/ModuleEntry.js.map +1 -1
  441. package/dist/models/ModuleItem.d.ts +45 -45
  442. package/dist/models/ModuleItem.js +58 -59
  443. package/dist/models/ModuleItem.js.map +1 -1
  444. package/dist/models/NoteTweet.d.ts +39 -39
  445. package/dist/models/NoteTweet.js +56 -57
  446. package/dist/models/NoteTweet.js.map +1 -1
  447. package/dist/models/NoteTweetResult.d.ts +33 -33
  448. package/dist/models/NoteTweetResult.js +52 -53
  449. package/dist/models/NoteTweetResult.js.map +1 -1
  450. package/dist/models/NoteTweetResultData.d.ts +59 -59
  451. package/dist/models/NoteTweetResultData.js +66 -67
  452. package/dist/models/NoteTweetResultData.js.map +1 -1
  453. package/dist/models/NoteTweetResultMedia.d.ts +33 -33
  454. package/dist/models/NoteTweetResultMedia.js +52 -53
  455. package/dist/models/NoteTweetResultMedia.js.map +1 -1
  456. package/dist/models/NoteTweetResultMediaInlineMedia.d.ts +38 -38
  457. package/dist/models/NoteTweetResultMediaInlineMedia.js +55 -56
  458. package/dist/models/NoteTweetResultMediaInlineMedia.js.map +1 -1
  459. package/dist/models/NoteTweetResultRichText.d.ts +33 -33
  460. package/dist/models/NoteTweetResultRichText.js +52 -53
  461. package/dist/models/NoteTweetResultRichText.js.map +1 -1
  462. package/dist/models/NoteTweetResultRichTextTag.d.ts +52 -52
  463. package/dist/models/NoteTweetResultRichTextTag.js +67 -67
  464. package/dist/models/NoteTweetResultRichTextTag.js.map +1 -1
  465. package/dist/models/NotificationTemplate.d.ts +46 -0
  466. package/dist/models/NotificationTemplate.d.ts.map +1 -0
  467. package/dist/models/NotificationTemplate.js +55 -0
  468. package/dist/models/NotificationTemplate.js.map +1 -0
  469. package/dist/models/NotificationsResult.d.ts +47 -0
  470. package/dist/models/NotificationsResult.d.ts.map +1 -0
  471. package/dist/models/NotificationsResult.js +62 -0
  472. package/dist/models/NotificationsResult.js.map +1 -0
  473. package/dist/models/NotificationsTimelineData.d.ts +34 -0
  474. package/dist/models/NotificationsTimelineData.d.ts.map +1 -0
  475. package/dist/models/NotificationsTimelineData.js +53 -0
  476. package/dist/models/NotificationsTimelineData.js.map +1 -0
  477. package/dist/models/NotificationsTimelineResponse.d.ts +41 -0
  478. package/dist/models/NotificationsTimelineResponse.d.ts.map +1 -0
  479. package/dist/models/NotificationsTimelineResponse.js +56 -0
  480. package/dist/models/NotificationsTimelineResponse.js.map +1 -0
  481. package/dist/models/NotificationsUserResults.d.ts +34 -0
  482. package/dist/models/NotificationsUserResults.d.ts.map +1 -0
  483. package/dist/models/NotificationsUserResults.js +53 -0
  484. package/dist/models/NotificationsUserResults.js.map +1 -0
  485. package/dist/models/NotificationsViewerV2.d.ts +34 -0
  486. package/dist/models/NotificationsViewerV2.d.ts.map +1 -0
  487. package/dist/models/NotificationsViewerV2.js +53 -0
  488. package/dist/models/NotificationsViewerV2.js.map +1 -0
  489. package/dist/models/OneFactorLoginEligibility.d.ts +32 -32
  490. package/dist/models/OneFactorLoginEligibility.js +51 -52
  491. package/dist/models/OneFactorLoginEligibility.js.map +1 -1
  492. package/dist/models/OtherObjectAll.d.ts +33 -33
  493. package/dist/models/OtherObjectAll.js +50 -51
  494. package/dist/models/OtherObjectAll.js.map +1 -1
  495. package/dist/models/PostCreateBookmarkRequest.d.ts +39 -39
  496. package/dist/models/PostCreateBookmarkRequest.js +56 -57
  497. package/dist/models/PostCreateBookmarkRequest.js.map +1 -1
  498. package/dist/models/PostCreateBookmarkRequestVariables.d.ts +32 -32
  499. package/dist/models/PostCreateBookmarkRequestVariables.js +51 -52
  500. package/dist/models/PostCreateBookmarkRequestVariables.js.map +1 -1
  501. package/dist/models/PostCreateRetweetRequest.d.ts +39 -39
  502. package/dist/models/PostCreateRetweetRequest.js +56 -57
  503. package/dist/models/PostCreateRetweetRequest.js.map +1 -1
  504. package/dist/models/PostCreateRetweetRequestVariables.d.ts +38 -38
  505. package/dist/models/PostCreateRetweetRequestVariables.js +55 -56
  506. package/dist/models/PostCreateRetweetRequestVariables.js.map +1 -1
  507. package/dist/models/PostCreateTweetRequest.d.ts +46 -46
  508. package/dist/models/PostCreateTweetRequest.js +61 -62
  509. package/dist/models/PostCreateTweetRequest.js.map +1 -1
  510. package/dist/models/PostCreateTweetRequestFeatures.d.ts +200 -158
  511. package/dist/models/PostCreateTweetRequestFeatures.d.ts.map +1 -1
  512. package/dist/models/PostCreateTweetRequestFeatures.js +163 -136
  513. package/dist/models/PostCreateTweetRequestFeatures.js.map +1 -1
  514. package/dist/models/PostCreateTweetRequestVariables.d.ts +77 -77
  515. package/dist/models/PostCreateTweetRequestVariables.js +74 -75
  516. package/dist/models/PostCreateTweetRequestVariables.js.map +1 -1
  517. package/dist/models/PostCreateTweetRequestVariablesConversationControl.d.ts +32 -32
  518. package/dist/models/PostCreateTweetRequestVariablesConversationControl.js +51 -52
  519. package/dist/models/PostCreateTweetRequestVariablesConversationControl.js.map +1 -1
  520. package/dist/models/PostCreateTweetRequestVariablesMedia.d.ts +39 -39
  521. package/dist/models/PostCreateTweetRequestVariablesMedia.js +54 -55
  522. package/dist/models/PostCreateTweetRequestVariablesMedia.js.map +1 -1
  523. package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.d.ts +38 -38
  524. package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.js +55 -56
  525. package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.js.map +1 -1
  526. package/dist/models/PostCreateTweetRequestVariablesReply.d.ts +38 -38
  527. package/dist/models/PostCreateTweetRequestVariablesReply.js +55 -56
  528. package/dist/models/PostCreateTweetRequestVariablesReply.js.map +1 -1
  529. package/dist/models/PostDeleteBookmarkRequest.d.ts +39 -39
  530. package/dist/models/PostDeleteBookmarkRequest.js +56 -57
  531. package/dist/models/PostDeleteBookmarkRequest.js.map +1 -1
  532. package/dist/models/PostDeleteRetweetRequest.d.ts +39 -39
  533. package/dist/models/PostDeleteRetweetRequest.js +56 -57
  534. package/dist/models/PostDeleteRetweetRequest.js.map +1 -1
  535. package/dist/models/PostDeleteRetweetRequestVariables.d.ts +38 -38
  536. package/dist/models/PostDeleteRetweetRequestVariables.js +55 -56
  537. package/dist/models/PostDeleteRetweetRequestVariables.js.map +1 -1
  538. package/dist/models/PostDeleteTweetRequest.d.ts +39 -39
  539. package/dist/models/PostDeleteTweetRequest.js +56 -57
  540. package/dist/models/PostDeleteTweetRequest.js.map +1 -1
  541. package/dist/models/PostFavoriteTweetRequest.d.ts +39 -39
  542. package/dist/models/PostFavoriteTweetRequest.js +56 -57
  543. package/dist/models/PostFavoriteTweetRequest.js.map +1 -1
  544. package/dist/models/PostUnfavoriteTweetRequest.d.ts +39 -39
  545. package/dist/models/PostUnfavoriteTweetRequest.js +56 -57
  546. package/dist/models/PostUnfavoriteTweetRequest.js.map +1 -1
  547. package/dist/models/PrimaryCommunityTopic.d.ts +38 -38
  548. package/dist/models/PrimaryCommunityTopic.js +55 -56
  549. package/dist/models/PrimaryCommunityTopic.js.map +1 -1
  550. package/dist/models/ProfileResponse.d.ts +40 -40
  551. package/dist/models/ProfileResponse.js +55 -56
  552. package/dist/models/ProfileResponse.js.map +1 -1
  553. package/dist/models/ProfileResponseData.d.ts +33 -33
  554. package/dist/models/ProfileResponseData.js +50 -51
  555. package/dist/models/ProfileResponseData.js.map +1 -1
  556. package/dist/models/QuotedRefResult.d.ts +33 -33
  557. package/dist/models/QuotedRefResult.js +50 -51
  558. package/dist/models/QuotedRefResult.js.map +1 -1
  559. package/dist/models/QuotedStatusPermalink.d.ts +44 -44
  560. package/dist/models/QuotedStatusPermalink.js +59 -60
  561. package/dist/models/QuotedStatusPermalink.js.map +1 -1
  562. package/dist/models/RankedCommunityResult.d.ts +41 -0
  563. package/dist/models/RankedCommunityResult.d.ts.map +1 -0
  564. package/dist/models/RankedCommunityResult.js +58 -0
  565. package/dist/models/RankedCommunityResult.js.map +1 -0
  566. package/dist/models/RankedCommunityResults.d.ts +34 -0
  567. package/dist/models/RankedCommunityResults.d.ts.map +1 -0
  568. package/dist/models/RankedCommunityResults.js +53 -0
  569. package/dist/models/RankedCommunityResults.js.map +1 -0
  570. package/dist/models/RankedCommunityTweetData.d.ts +34 -0
  571. package/dist/models/RankedCommunityTweetData.d.ts.map +1 -0
  572. package/dist/models/RankedCommunityTweetData.js +53 -0
  573. package/dist/models/RankedCommunityTweetData.js.map +1 -0
  574. package/dist/models/Retweet.d.ts +39 -39
  575. package/dist/models/Retweet.js +56 -57
  576. package/dist/models/Retweet.js.map +1 -1
  577. package/dist/models/RetweetLegacy.d.ts +32 -32
  578. package/dist/models/RetweetLegacy.js +51 -52
  579. package/dist/models/RetweetLegacy.js.map +1 -1
  580. package/dist/models/RichMessage.d.ts +39 -0
  581. package/dist/models/RichMessage.d.ts.map +1 -0
  582. package/dist/models/RichMessage.js +52 -0
  583. package/dist/models/RichMessage.js.map +1 -0
  584. package/dist/models/SearchByRawQuery.d.ts +33 -33
  585. package/dist/models/SearchByRawQuery.js +52 -53
  586. package/dist/models/SearchByRawQuery.js.map +1 -1
  587. package/dist/models/SearchTimeline.d.ts +33 -33
  588. package/dist/models/SearchTimeline.js +52 -53
  589. package/dist/models/SearchTimeline.js.map +1 -1
  590. package/dist/models/SearchTimelineData.d.ts +33 -33
  591. package/dist/models/SearchTimelineData.d.ts.map +1 -1
  592. package/dist/models/SearchTimelineData.js +52 -51
  593. package/dist/models/SearchTimelineData.js.map +1 -1
  594. package/dist/models/SearchTimelineResponse.d.ts +40 -40
  595. package/dist/models/SearchTimelineResponse.js +55 -56
  596. package/dist/models/SearchTimelineResponse.js.map +1 -1
  597. package/dist/models/SelfThread.d.ts +32 -32
  598. package/dist/models/SelfThread.js +51 -52
  599. package/dist/models/SelfThread.js.map +1 -1
  600. package/dist/models/SensitiveMediaWarning.d.ts +44 -44
  601. package/dist/models/SensitiveMediaWarning.js +53 -54
  602. package/dist/models/SensitiveMediaWarning.js.map +1 -1
  603. package/dist/models/Session.d.ts +120 -120
  604. package/dist/models/Session.js +111 -111
  605. package/dist/models/Session.js.map +1 -1
  606. package/dist/models/SocialContextLandingUrl.d.ts +54 -54
  607. package/dist/models/SocialContextLandingUrl.js +63 -63
  608. package/dist/models/SocialContextLandingUrl.js.map +1 -1
  609. package/dist/models/SocialContextUnion.d.ts +27 -27
  610. package/dist/models/SocialContextUnion.d.ts.map +1 -1
  611. package/dist/models/SocialContextUnion.js +54 -55
  612. package/dist/models/SocialContextUnion.js.map +1 -1
  613. package/dist/models/SocialContextUnionType.d.ts +25 -25
  614. package/dist/models/SocialContextUnionType.js +51 -51
  615. package/dist/models/SocialContextUnionType.js.map +1 -1
  616. package/dist/models/SuperFollowsReplyUserResult.d.ts +33 -33
  617. package/dist/models/SuperFollowsReplyUserResult.js +52 -53
  618. package/dist/models/SuperFollowsReplyUserResult.js.map +1 -1
  619. package/dist/models/SuperFollowsReplyUserResultData.d.ts +40 -40
  620. package/dist/models/SuperFollowsReplyUserResultData.js +57 -58
  621. package/dist/models/SuperFollowsReplyUserResultData.js.map +1 -1
  622. package/dist/models/SuperFollowsReplyUserResultLegacy.d.ts +32 -32
  623. package/dist/models/SuperFollowsReplyUserResultLegacy.js +51 -52
  624. package/dist/models/SuperFollowsReplyUserResultLegacy.js.map +1 -1
  625. package/dist/models/Text.d.ts +39 -39
  626. package/dist/models/Text.js +56 -57
  627. package/dist/models/Text.js.map +1 -1
  628. package/dist/models/TextEntity.d.ts +45 -45
  629. package/dist/models/TextEntity.js +60 -61
  630. package/dist/models/TextEntity.js.map +1 -1
  631. package/dist/models/TextEntityRef.d.ts +58 -58
  632. package/dist/models/TextEntityRef.js +72 -72
  633. package/dist/models/TextEntityRef.js.map +1 -1
  634. package/dist/models/TextHighlight.d.ts +38 -38
  635. package/dist/models/TextHighlight.js +55 -56
  636. package/dist/models/TextHighlight.js.map +1 -1
  637. package/dist/models/ThumbnailImage.d.ts +44 -44
  638. package/dist/models/ThumbnailImage.js +53 -54
  639. package/dist/models/ThumbnailImage.js.map +1 -1
  640. package/dist/models/Timeline.d.ts +49 -49
  641. package/dist/models/Timeline.js +56 -57
  642. package/dist/models/Timeline.js.map +1 -1
  643. package/dist/models/TimelineAddEntries.d.ts +40 -40
  644. package/dist/models/TimelineAddEntries.js +57 -58
  645. package/dist/models/TimelineAddEntries.js.map +1 -1
  646. package/dist/models/TimelineAddEntry.d.ts +45 -45
  647. package/dist/models/TimelineAddEntry.js +60 -61
  648. package/dist/models/TimelineAddEntry.js.map +1 -1
  649. package/dist/models/TimelineAddToModule.d.ts +52 -52
  650. package/dist/models/TimelineAddToModule.js +63 -64
  651. package/dist/models/TimelineAddToModule.js.map +1 -1
  652. package/dist/models/TimelineClearCache.d.ts +33 -33
  653. package/dist/models/TimelineClearCache.js +52 -53
  654. package/dist/models/TimelineClearCache.js.map +1 -1
  655. package/dist/models/TimelineClearEntriesUnreadState.d.ts +34 -0
  656. package/dist/models/TimelineClearEntriesUnreadState.d.ts.map +1 -0
  657. package/dist/models/TimelineClearEntriesUnreadState.js +53 -0
  658. package/dist/models/TimelineClearEntriesUnreadState.js.map +1 -0
  659. package/dist/models/TimelineCommunity.d.ts +34 -34
  660. package/dist/models/TimelineCommunity.js +57 -58
  661. package/dist/models/TimelineCommunity.js.map +1 -1
  662. package/dist/models/TimelineCoverBehavior.d.ts +47 -47
  663. package/dist/models/TimelineCoverBehavior.js +62 -62
  664. package/dist/models/TimelineCoverBehavior.js.map +1 -1
  665. package/dist/models/TimelineCoverBehaviorUrl.d.ts +45 -45
  666. package/dist/models/TimelineCoverBehaviorUrl.js +62 -62
  667. package/dist/models/TimelineCoverBehaviorUrl.js.map +1 -1
  668. package/dist/models/TimelineGeneralContext.d.ts +73 -66
  669. package/dist/models/TimelineGeneralContext.d.ts.map +1 -1
  670. package/dist/models/TimelineGeneralContext.js +74 -71
  671. package/dist/models/TimelineGeneralContext.js.map +1 -1
  672. package/dist/models/TimelineHalfCover.d.ts +85 -85
  673. package/dist/models/TimelineHalfCover.js +91 -91
  674. package/dist/models/TimelineHalfCover.js.map +1 -1
  675. package/dist/models/TimelineMarkEntriesUnreadGreaterThanSortIndex.d.ts +40 -0
  676. package/dist/models/TimelineMarkEntriesUnreadGreaterThanSortIndex.d.ts.map +1 -0
  677. package/dist/models/TimelineMarkEntriesUnreadGreaterThanSortIndex.js +55 -0
  678. package/dist/models/TimelineMarkEntriesUnreadGreaterThanSortIndex.js.map +1 -0
  679. package/dist/models/TimelineMessagePrompt.d.ts +34 -34
  680. package/dist/models/TimelineMessagePrompt.js +57 -58
  681. package/dist/models/TimelineMessagePrompt.js.map +1 -1
  682. package/dist/models/TimelineNotification.d.ts +80 -0
  683. package/dist/models/TimelineNotification.d.ts.map +1 -0
  684. package/dist/models/TimelineNotification.js +85 -0
  685. package/dist/models/TimelineNotification.js.map +1 -0
  686. package/dist/models/TimelinePinEntry.d.ts +40 -40
  687. package/dist/models/TimelinePinEntry.js +57 -58
  688. package/dist/models/TimelinePinEntry.js.map +1 -1
  689. package/dist/models/TimelinePrompt.d.ts +34 -34
  690. package/dist/models/TimelinePrompt.js +57 -58
  691. package/dist/models/TimelinePrompt.js.map +1 -1
  692. package/dist/models/TimelineReplaceEntry.d.ts +46 -46
  693. package/dist/models/TimelineReplaceEntry.js +61 -62
  694. package/dist/models/TimelineReplaceEntry.js.map +1 -1
  695. package/dist/models/TimelineResponse.d.ts +40 -40
  696. package/dist/models/TimelineResponse.js +55 -56
  697. package/dist/models/TimelineResponse.js.map +1 -1
  698. package/dist/models/TimelineResult.d.ts +40 -0
  699. package/dist/models/TimelineResult.d.ts.map +1 -0
  700. package/dist/models/{TimelineV2.js → TimelineResult.js} +53 -52
  701. package/dist/models/TimelineResult.js.map +1 -0
  702. package/dist/models/TimelineShowAlert.d.ts +101 -101
  703. package/dist/models/TimelineShowAlert.js +87 -87
  704. package/dist/models/TimelineShowAlert.js.map +1 -1
  705. package/dist/models/TimelineShowAlertRichText.d.ts +40 -40
  706. package/dist/models/TimelineShowAlertRichText.js +51 -52
  707. package/dist/models/TimelineShowAlertRichText.js.map +1 -1
  708. package/dist/models/TimelineShowCover.d.ts +47 -47
  709. package/dist/models/TimelineShowCover.js +62 -63
  710. package/dist/models/TimelineShowCover.js.map +1 -1
  711. package/dist/models/TimelineTerminateTimeline.d.ts +48 -48
  712. package/dist/models/TimelineTerminateTimeline.js +65 -65
  713. package/dist/models/TimelineTerminateTimeline.js.map +1 -1
  714. package/dist/models/TimelineTimelineCursor.d.ts +72 -72
  715. package/dist/models/TimelineTimelineCursor.js +71 -72
  716. package/dist/models/TimelineTimelineCursor.js.map +1 -1
  717. package/dist/models/TimelineTimelineItem.d.ts +62 -62
  718. package/dist/models/TimelineTimelineItem.js +67 -68
  719. package/dist/models/TimelineTimelineItem.js.map +1 -1
  720. package/dist/models/TimelineTimelineModule.d.ts +92 -92
  721. package/dist/models/TimelineTimelineModule.d.ts.map +1 -1
  722. package/dist/models/TimelineTimelineModule.js +77 -80
  723. package/dist/models/TimelineTimelineModule.js.map +1 -1
  724. package/dist/models/TimelineTombstone.d.ts +60 -60
  725. package/dist/models/TimelineTombstone.js +65 -65
  726. package/dist/models/TimelineTombstone.js.map +1 -1
  727. package/dist/models/TimelineTopicContext.d.ts +53 -53
  728. package/dist/models/TimelineTopicContext.js +62 -62
  729. package/dist/models/TimelineTopicContext.js.map +1 -1
  730. package/dist/models/TimelineTrend.d.ts +87 -87
  731. package/dist/models/TimelineTrend.d.ts.map +1 -1
  732. package/dist/models/TimelineTrend.js +80 -87
  733. package/dist/models/TimelineTrend.js.map +1 -1
  734. package/dist/models/TimelineTweet.d.ts +91 -91
  735. package/dist/models/TimelineTweet.js +86 -86
  736. package/dist/models/TimelineTweet.js.map +1 -1
  737. package/dist/models/TimelineUser.d.ts +70 -69
  738. package/dist/models/TimelineUser.d.ts.map +1 -1
  739. package/dist/models/TimelineUser.js +79 -78
  740. package/dist/models/TimelineUser.js.map +1 -1
  741. package/dist/models/Timestamp.d.ts +44 -44
  742. package/dist/models/Timestamp.js +59 -60
  743. package/dist/models/Timestamp.js.map +1 -1
  744. package/dist/models/TombstoneEntity.d.ts +45 -45
  745. package/dist/models/TombstoneEntity.js +54 -55
  746. package/dist/models/TombstoneEntity.js.map +1 -1
  747. package/dist/models/TombstoneInfo.d.ts +39 -39
  748. package/dist/models/TombstoneInfo.js +52 -53
  749. package/dist/models/TombstoneInfo.js.map +1 -1
  750. package/dist/models/TombstoneRef.d.ts +58 -58
  751. package/dist/models/TombstoneRef.js +66 -66
  752. package/dist/models/TombstoneRef.js.map +1 -1
  753. package/dist/models/TombstoneRichText.d.ts +45 -45
  754. package/dist/models/TombstoneRichText.js +54 -55
  755. package/dist/models/TombstoneRichText.js.map +1 -1
  756. package/dist/models/TopicContext.d.ts +68 -68
  757. package/dist/models/TopicContext.js +61 -62
  758. package/dist/models/TopicContext.js.map +1 -1
  759. package/dist/models/Tracing.d.ts +32 -32
  760. package/dist/models/Tracing.js +51 -52
  761. package/dist/models/Tracing.js.map +1 -1
  762. package/dist/models/TrendImage.d.ts +32 -32
  763. package/dist/models/TrendImage.js +49 -50
  764. package/dist/models/TrendImage.js.map +1 -1
  765. package/dist/models/TrendMetadata.d.ts +33 -33
  766. package/dist/models/TrendMetadata.js +50 -51
  767. package/dist/models/TrendMetadata.js.map +1 -1
  768. package/dist/models/TrendResults.d.ts +32 -32
  769. package/dist/models/TrendResults.js +51 -52
  770. package/dist/models/TrendResults.js.map +1 -1
  771. package/dist/models/Tweet.d.ts +216 -216
  772. package/dist/models/Tweet.js +125 -126
  773. package/dist/models/Tweet.js.map +1 -1
  774. package/dist/models/TweetCard.d.ts +39 -39
  775. package/dist/models/TweetCard.js +52 -53
  776. package/dist/models/TweetCard.js.map +1 -1
  777. package/dist/models/TweetCardLegacy.d.ts +59 -59
  778. package/dist/models/TweetCardLegacy.js +66 -67
  779. package/dist/models/TweetCardLegacy.js.map +1 -1
  780. package/dist/models/TweetCardLegacyBindingValue.d.ts +39 -39
  781. package/dist/models/TweetCardLegacyBindingValue.js +56 -57
  782. package/dist/models/TweetCardLegacyBindingValue.js.map +1 -1
  783. package/dist/models/TweetCardLegacyBindingValueData.d.ts +72 -72
  784. package/dist/models/TweetCardLegacyBindingValueData.js +65 -66
  785. package/dist/models/TweetCardLegacyBindingValueData.js.map +1 -1
  786. package/dist/models/TweetCardLegacyBindingValueDataImage.d.ts +50 -50
  787. package/dist/models/TweetCardLegacyBindingValueDataImage.js +61 -62
  788. package/dist/models/TweetCardLegacyBindingValueDataImage.js.map +1 -1
  789. package/dist/models/TweetCardPlatform.d.ts +40 -40
  790. package/dist/models/TweetCardPlatform.js +57 -58
  791. package/dist/models/TweetCardPlatform.js.map +1 -1
  792. package/dist/models/TweetCardPlatformAudience.d.ts +39 -39
  793. package/dist/models/TweetCardPlatformAudience.js +58 -58
  794. package/dist/models/TweetCardPlatformAudience.js.map +1 -1
  795. package/dist/models/TweetCardPlatformData.d.ts +33 -33
  796. package/dist/models/TweetCardPlatformData.js +52 -53
  797. package/dist/models/TweetCardPlatformData.js.map +1 -1
  798. package/dist/models/TweetCardPlatformDevice.d.ts +38 -38
  799. package/dist/models/TweetCardPlatformDevice.js +55 -56
  800. package/dist/models/TweetCardPlatformDevice.js.map +1 -1
  801. package/dist/models/TweetDetailResponse.d.ts +40 -40
  802. package/dist/models/TweetDetailResponse.js +55 -56
  803. package/dist/models/TweetDetailResponse.js.map +1 -1
  804. package/dist/models/TweetDetailResponseData.d.ts +33 -33
  805. package/dist/models/TweetDetailResponseData.js +50 -51
  806. package/dist/models/TweetDetailResponseData.js.map +1 -1
  807. package/dist/models/TweetEditControl.d.ts +63 -63
  808. package/dist/models/TweetEditControl.js +60 -61
  809. package/dist/models/TweetEditControl.js.map +1 -1
  810. package/dist/models/TweetEditControlInitial.d.ts +50 -50
  811. package/dist/models/TweetEditControlInitial.js +63 -64
  812. package/dist/models/TweetEditControlInitial.js.map +1 -1
  813. package/dist/models/TweetEditPrespective.d.ts +38 -38
  814. package/dist/models/TweetEditPrespective.js +51 -52
  815. package/dist/models/TweetEditPrespective.js.map +1 -1
  816. package/dist/models/TweetFavoritersResponse.d.ts +40 -40
  817. package/dist/models/TweetFavoritersResponse.js +55 -56
  818. package/dist/models/TweetFavoritersResponse.js.map +1 -1
  819. package/dist/models/TweetFavoritersResponseData.d.ts +33 -33
  820. package/dist/models/TweetFavoritersResponseData.d.ts.map +1 -1
  821. package/dist/models/TweetFavoritersResponseData.js +50 -51
  822. package/dist/models/TweetFavoritersResponseData.js.map +1 -1
  823. package/dist/models/TweetInterstitial.d.ts +60 -60
  824. package/dist/models/TweetInterstitial.js +73 -73
  825. package/dist/models/TweetInterstitial.js.map +1 -1
  826. package/dist/models/TweetInterstitialRevealText.d.ts +45 -45
  827. package/dist/models/TweetInterstitialRevealText.js +60 -61
  828. package/dist/models/TweetInterstitialRevealText.js.map +1 -1
  829. package/dist/models/TweetInterstitialText.d.ts +45 -45
  830. package/dist/models/TweetInterstitialText.js +60 -61
  831. package/dist/models/TweetInterstitialText.js.map +1 -1
  832. package/dist/models/TweetInterstitialTextEntity.d.ts +45 -45
  833. package/dist/models/TweetInterstitialTextEntity.js +60 -61
  834. package/dist/models/TweetInterstitialTextEntity.js.map +1 -1
  835. package/dist/models/TweetInterstitialTextEntityRef.d.ts +58 -58
  836. package/dist/models/TweetInterstitialTextEntityRef.js +72 -72
  837. package/dist/models/TweetInterstitialTextEntityRef.js.map +1 -1
  838. package/dist/models/TweetLegacy.d.ts +235 -235
  839. package/dist/models/TweetLegacy.js +162 -162
  840. package/dist/models/TweetLegacy.js.map +1 -1
  841. package/dist/models/TweetLegacyScopes.d.ts +32 -32
  842. package/dist/models/TweetLegacyScopes.js +51 -52
  843. package/dist/models/TweetLegacyScopes.js.map +1 -1
  844. package/dist/models/TweetLimitedActionResults.d.ts +33 -33
  845. package/dist/models/TweetLimitedActionResults.js +52 -53
  846. package/dist/models/TweetLimitedActionResults.js.map +1 -1
  847. package/dist/models/TweetPreviewDisplay.d.ts +54 -54
  848. package/dist/models/TweetPreviewDisplay.js +67 -68
  849. package/dist/models/TweetPreviewDisplay.js.map +1 -1
  850. package/dist/models/TweetPreviewDisplayCta.d.ts +39 -39
  851. package/dist/models/TweetPreviewDisplayCta.js +56 -57
  852. package/dist/models/TweetPreviewDisplayCta.js.map +1 -1
  853. package/dist/models/TweetPreviewDisplayCtaUrl.d.ts +47 -47
  854. package/dist/models/TweetPreviewDisplayCtaUrl.js +64 -64
  855. package/dist/models/TweetPreviewDisplayCtaUrl.js.map +1 -1
  856. package/dist/models/TweetPreviewDisplayTweet.d.ts +94 -94
  857. package/dist/models/TweetPreviewDisplayTweet.js +93 -94
  858. package/dist/models/TweetPreviewDisplayTweet.js.map +1 -1
  859. package/dist/models/TweetPreviewDisplayTweetViewCount.d.ts +32 -32
  860. package/dist/models/TweetPreviewDisplayTweetViewCount.js +51 -52
  861. package/dist/models/TweetPreviewDisplayTweetViewCount.js.map +1 -1
  862. package/dist/models/TweetPreviousCounts.d.ts +56 -56
  863. package/dist/models/TweetPreviousCounts.js +67 -68
  864. package/dist/models/TweetPreviousCounts.js.map +1 -1
  865. package/dist/models/TweetResultByRestIdData.d.ts +33 -33
  866. package/dist/models/TweetResultByRestIdData.js +50 -51
  867. package/dist/models/TweetResultByRestIdData.js.map +1 -1
  868. package/dist/models/TweetResultByRestIdResponse.d.ts +40 -40
  869. package/dist/models/TweetResultByRestIdResponse.js +55 -56
  870. package/dist/models/TweetResultByRestIdResponse.js.map +1 -1
  871. package/dist/models/TweetRetweetersResponse.d.ts +40 -40
  872. package/dist/models/TweetRetweetersResponse.js +55 -56
  873. package/dist/models/TweetRetweetersResponse.js.map +1 -1
  874. package/dist/models/TweetRetweetersResponseData.d.ts +33 -33
  875. package/dist/models/TweetRetweetersResponseData.d.ts.map +1 -1
  876. package/dist/models/TweetRetweetersResponseData.js +50 -51
  877. package/dist/models/TweetRetweetersResponseData.js.map +1 -1
  878. package/dist/models/TweetTombstone.d.ts +34 -34
  879. package/dist/models/TweetTombstone.js +57 -58
  880. package/dist/models/TweetTombstone.js.map +1 -1
  881. package/dist/models/TweetUnavailable.d.ts +39 -39
  882. package/dist/models/TweetUnavailable.js +52 -53
  883. package/dist/models/TweetUnavailable.js.map +1 -1
  884. package/dist/models/TweetUnion.d.ts +36 -36
  885. package/dist/models/TweetUnion.d.ts.map +1 -1
  886. package/dist/models/TweetUnion.js +69 -70
  887. package/dist/models/TweetUnion.js.map +1 -1
  888. package/dist/models/TweetView.d.ts +46 -46
  889. package/dist/models/TweetView.js +61 -61
  890. package/dist/models/TweetView.js.map +1 -1
  891. package/dist/models/TweetWithVisibilityResults.d.ts +62 -62
  892. package/dist/models/TweetWithVisibilityResults.js +65 -66
  893. package/dist/models/TweetWithVisibilityResults.js.map +1 -1
  894. package/dist/models/TypeName.d.ts +53 -51
  895. package/dist/models/TypeName.d.ts.map +1 -1
  896. package/dist/models/TypeName.js +79 -77
  897. package/dist/models/TypeName.js.map +1 -1
  898. package/dist/models/UnfavoriteTweet.d.ts +32 -32
  899. package/dist/models/UnfavoriteTweet.js +49 -50
  900. package/dist/models/UnfavoriteTweet.js.map +1 -1
  901. package/dist/models/UnfavoriteTweetResponse.d.ts +40 -40
  902. package/dist/models/UnfavoriteTweetResponse.js +55 -56
  903. package/dist/models/UnfavoriteTweetResponse.js.map +1 -1
  904. package/dist/models/UnifiedCard.d.ts +39 -39
  905. package/dist/models/UnifiedCard.js +58 -58
  906. package/dist/models/UnifiedCard.js.map +1 -1
  907. package/dist/models/Url.d.ts +50 -50
  908. package/dist/models/Url.js +61 -62
  909. package/dist/models/Url.js.map +1 -1
  910. package/dist/models/UrtEndpointOptions.d.ts +39 -39
  911. package/dist/models/UrtEndpointOptions.js +56 -57
  912. package/dist/models/UrtEndpointOptions.js.map +1 -1
  913. package/dist/models/UrtEndpointRequestParams.d.ts +38 -38
  914. package/dist/models/UrtEndpointRequestParams.js +55 -56
  915. package/dist/models/UrtEndpointRequestParams.js.map +1 -1
  916. package/dist/models/User.d.ts +205 -204
  917. package/dist/models/User.d.ts.map +1 -1
  918. package/dist/models/User.js +133 -132
  919. package/dist/models/User.js.map +1 -1
  920. package/dist/models/UserFeatures.d.ts +32 -32
  921. package/dist/models/UserFeatures.js +51 -52
  922. package/dist/models/UserFeatures.js.map +1 -1
  923. package/dist/models/UserHighlightsInfo.d.ts +38 -38
  924. package/dist/models/UserHighlightsInfo.js +55 -56
  925. package/dist/models/UserHighlightsInfo.js.map +1 -1
  926. package/dist/models/UserHighlightsTweetsData.d.ts +33 -33
  927. package/dist/models/UserHighlightsTweetsData.js +50 -51
  928. package/dist/models/UserHighlightsTweetsData.js.map +1 -1
  929. package/dist/models/UserHighlightsTweetsResponse.d.ts +40 -40
  930. package/dist/models/UserHighlightsTweetsResponse.js +55 -56
  931. package/dist/models/UserHighlightsTweetsResponse.js.map +1 -1
  932. package/dist/models/UserHighlightsTweetsResult.d.ts +40 -40
  933. package/dist/models/UserHighlightsTweetsResult.js +57 -58
  934. package/dist/models/UserHighlightsTweetsResult.js.map +1 -1
  935. package/dist/models/UserHighlightsTweetsTimeline.d.ts +33 -33
  936. package/dist/models/UserHighlightsTweetsTimeline.js +52 -53
  937. package/dist/models/UserHighlightsTweetsTimeline.js.map +1 -1
  938. package/dist/models/UserHighlightsTweetsUser.d.ts +33 -33
  939. package/dist/models/UserHighlightsTweetsUser.js +52 -53
  940. package/dist/models/UserHighlightsTweetsUser.js.map +1 -1
  941. package/dist/models/UserLegacy.d.ts +282 -282
  942. package/dist/models/UserLegacy.js +185 -185
  943. package/dist/models/UserLegacy.js.map +1 -1
  944. package/dist/models/UserLegacyExtendedProfile.d.ts +33 -33
  945. package/dist/models/UserLegacyExtendedProfile.js +50 -51
  946. package/dist/models/UserLegacyExtendedProfile.js.map +1 -1
  947. package/dist/models/UserLegacyExtendedProfileBirthdate.d.ts +78 -78
  948. package/dist/models/UserLegacyExtendedProfileBirthdate.js +86 -86
  949. package/dist/models/UserLegacyExtendedProfileBirthdate.js.map +1 -1
  950. package/dist/models/UserProfessional.d.ts +53 -53
  951. package/dist/models/UserProfessional.js +68 -68
  952. package/dist/models/UserProfessional.js.map +1 -1
  953. package/dist/models/UserProfessionalCategory.d.ts +44 -44
  954. package/dist/models/UserProfessionalCategory.js +59 -60
  955. package/dist/models/UserProfessionalCategory.js.map +1 -1
  956. package/dist/models/UserResponse.d.ts +40 -40
  957. package/dist/models/UserResponse.js +55 -56
  958. package/dist/models/UserResponse.js.map +1 -1
  959. package/dist/models/UserResponseData.d.ts +33 -33
  960. package/dist/models/UserResponseData.js +50 -51
  961. package/dist/models/UserResponseData.js.map +1 -1
  962. package/dist/models/UserResultByScreenName.d.ts +39 -39
  963. package/dist/models/UserResultByScreenName.js +56 -57
  964. package/dist/models/UserResultByScreenName.js.map +1 -1
  965. package/dist/models/UserResultByScreenNameLegacy.d.ts +68 -68
  966. package/dist/models/UserResultByScreenNameLegacy.js +61 -62
  967. package/dist/models/UserResultByScreenNameLegacy.js.map +1 -1
  968. package/dist/models/UserResultByScreenNameResult.d.ts +60 -60
  969. package/dist/models/UserResultByScreenNameResult.js +69 -70
  970. package/dist/models/UserResultByScreenNameResult.js.map +1 -1
  971. package/dist/models/UserResultCore.d.ts +33 -33
  972. package/dist/models/UserResultCore.js +52 -53
  973. package/dist/models/UserResultCore.js.map +1 -1
  974. package/dist/models/UserResults.d.ts +33 -33
  975. package/dist/models/UserResults.js +50 -51
  976. package/dist/models/UserResults.js.map +1 -1
  977. package/dist/models/UserTipJarSettings.d.ts +80 -80
  978. package/dist/models/UserTipJarSettings.js +65 -66
  979. package/dist/models/UserTipJarSettings.js.map +1 -1
  980. package/dist/models/UserTweetsData.d.ts +33 -33
  981. package/dist/models/UserTweetsData.js +50 -51
  982. package/dist/models/UserTweetsData.js.map +1 -1
  983. package/dist/models/UserTweetsResponse.d.ts +40 -40
  984. package/dist/models/UserTweetsResponse.js +55 -56
  985. package/dist/models/UserTweetsResponse.js.map +1 -1
  986. package/dist/models/UserTweetsResultV1.d.ts +41 -0
  987. package/dist/models/UserTweetsResultV1.d.ts.map +1 -0
  988. package/dist/models/UserTweetsResultV1.js +58 -0
  989. package/dist/models/UserTweetsResultV1.js.map +1 -0
  990. package/dist/models/UserTweetsResultV2.d.ts +41 -0
  991. package/dist/models/UserTweetsResultV2.d.ts.map +1 -0
  992. package/dist/models/UserTweetsResultV2.js +58 -0
  993. package/dist/models/UserTweetsResultV2.js.map +1 -0
  994. package/dist/models/UserTweetsUser.d.ts +33 -33
  995. package/dist/models/UserTweetsUser.d.ts.map +1 -1
  996. package/dist/models/UserTweetsUser.js +52 -53
  997. package/dist/models/UserTweetsUser.js.map +1 -1
  998. package/dist/models/UserUnavailable.d.ts +45 -45
  999. package/dist/models/UserUnavailable.js +58 -59
  1000. package/dist/models/UserUnavailable.js.map +1 -1
  1001. package/dist/models/UserUnion.d.ts +27 -27
  1002. package/dist/models/UserUnion.d.ts.map +1 -1
  1003. package/dist/models/UserUnion.js +54 -55
  1004. package/dist/models/UserUnion.js.map +1 -1
  1005. package/dist/models/UserValue.d.ts +32 -32
  1006. package/dist/models/UserValue.js +51 -52
  1007. package/dist/models/UserValue.js.map +1 -1
  1008. package/dist/models/UserVerificationInfo.d.ts +39 -39
  1009. package/dist/models/UserVerificationInfo.js +54 -55
  1010. package/dist/models/UserVerificationInfo.js.map +1 -1
  1011. package/dist/models/UserVerificationInfoReason.d.ts +45 -45
  1012. package/dist/models/UserVerificationInfoReason.js +58 -59
  1013. package/dist/models/UserVerificationInfoReason.js.map +1 -1
  1014. package/dist/models/UserVerificationInfoReasonDescription.d.ts +39 -39
  1015. package/dist/models/UserVerificationInfoReasonDescription.js +56 -57
  1016. package/dist/models/UserVerificationInfoReasonDescription.js.map +1 -1
  1017. package/dist/models/UserVerificationInfoReasonDescriptionEntities.d.ts +45 -45
  1018. package/dist/models/UserVerificationInfoReasonDescriptionEntities.js +60 -61
  1019. package/dist/models/UserVerificationInfoReasonDescriptionEntities.js.map +1 -1
  1020. package/dist/models/UserVerificationInfoReasonDescriptionEntitiesRef.d.ts +45 -45
  1021. package/dist/models/UserVerificationInfoReasonDescriptionEntitiesRef.js +62 -62
  1022. package/dist/models/UserVerificationInfoReasonDescriptionEntitiesRef.js.map +1 -1
  1023. package/dist/models/UsersResponse.d.ts +40 -40
  1024. package/dist/models/UsersResponse.js +55 -56
  1025. package/dist/models/UsersResponse.js.map +1 -1
  1026. package/dist/models/UsersResponseData.d.ts +33 -33
  1027. package/dist/models/UsersResponseData.js +50 -51
  1028. package/dist/models/UsersResponseData.js.map +1 -1
  1029. package/dist/models/index.d.ts +310 -286
  1030. package/dist/models/index.d.ts.map +1 -1
  1031. package/dist/models/index.js +328 -304
  1032. package/dist/models/index.js.map +1 -1
  1033. package/dist/runtime.d.ts +184 -182
  1034. package/dist/runtime.d.ts.map +1 -1
  1035. package/dist/runtime.js +582 -562
  1036. package/dist/runtime.js.map +1 -1
  1037. package/package.json +2 -2
  1038. package/dist/models/ListTweetsTimeline.d.ts +0 -34
  1039. package/dist/models/ListTweetsTimeline.d.ts.map +0 -1
  1040. package/dist/models/ListTweetsTimeline.js +0 -52
  1041. package/dist/models/ListTweetsTimeline.js.map +0 -1
  1042. package/dist/models/TimelineV2.d.ts +0 -34
  1043. package/dist/models/TimelineV2.d.ts.map +0 -1
  1044. package/dist/models/TimelineV2.js.map +0 -1
  1045. package/dist/models/UserTweetsResult.d.ts +0 -41
  1046. package/dist/models/UserTweetsResult.d.ts.map +0 -1
  1047. package/dist/models/UserTweetsResult.js +0 -59
  1048. package/dist/models/UserTweetsResult.js.map +0 -1
@@ -1,1761 +1,1928 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Twitter OpenAPI
6
- * Twitter OpenAPI(Swagger) specification
7
- *
8
- * The version of the OpenAPI document: 0.0.1
9
- * Contact: yuki@yuki0311.com
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- var __extends = (this && this.__extends) || (function () {
16
- var extendStatics = function (d, b) {
17
- extendStatics = Object.setPrototypeOf ||
18
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
- return extendStatics(d, b);
21
- };
22
- return function (d, b) {
23
- if (typeof b !== "function" && b !== null)
24
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
- extendStatics(d, b);
26
- function __() { this.constructor = d; }
27
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
- };
29
- })();
30
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
31
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
32
- return new (P || (P = Promise))(function (resolve, reject) {
33
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
34
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
35
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
36
- step((generator = generator.apply(thisArg, _arguments || [])).next());
37
- });
38
- };
39
- var __generator = (this && this.__generator) || function (thisArg, body) {
40
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
41
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
42
- function verb(n) { return function (v) { return step([n, v]); }; }
43
- function step(op) {
44
- if (f) throw new TypeError("Generator is already executing.");
45
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
46
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
47
- if (y = 0, t) op = [op[0] & 2, t.value];
48
- switch (op[0]) {
49
- case 0: case 1: t = op; break;
50
- case 4: _.label++; return { value: op[1], done: false };
51
- case 5: _.label++; y = op[1]; op = [0]; continue;
52
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
53
- default:
54
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
55
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
56
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
57
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
58
- if (t[2]) _.ops.pop();
59
- _.trys.pop(); continue;
60
- }
61
- op = body.call(thisArg, _);
62
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
63
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
64
- }
65
- };
66
- Object.defineProperty(exports, "__esModule", { value: true });
67
- exports.PostApi = void 0;
68
- var runtime = require("../runtime");
69
- var index_1 = require("../models/index");
70
- /**
71
- *
72
- */
73
- var PostApi = /** @class */ (function (_super) {
74
- __extends(PostApi, _super);
75
- function PostApi() {
76
- return _super !== null && _super.apply(this, arguments) || this;
77
- }
78
- /**
79
- * create Bookmark
80
- */
81
- PostApi.prototype.postCreateBookmarkRaw = function (requestParameters, initOverrides) {
82
- return __awaiter(this, void 0, void 0, function () {
83
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, response;
84
- return __generator(this, function (_14) {
85
- switch (_14.label) {
86
- case 0:
87
- if (requestParameters['pathQueryId'] == null) {
88
- throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postCreateBookmark().');
89
- }
90
- if (requestParameters['postCreateBookmarkRequest'] == null) {
91
- throw new runtime.RequiredError('postCreateBookmarkRequest', 'Required parameter "postCreateBookmarkRequest" was null or undefined when calling postCreateBookmark().');
92
- }
93
- queryParameters = {};
94
- headerParameters = {};
95
- headerParameters['Content-Type'] = 'application/json';
96
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
97
- _a = headerParameters;
98
- _b = "Accept";
99
- return [4 /*yield*/, this.configuration.apiKey("Accept")];
100
- case 1:
101
- _a[_b] = _14.sent(); // Accept authentication
102
- _14.label = 2;
103
- case 2:
104
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
105
- _c = headerParameters;
106
- _d = "x-twitter-client-language";
107
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
108
- case 3:
109
- _c[_d] = _14.sent(); // ClientLanguage authentication
110
- _14.label = 4;
111
- case 4:
112
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
113
- _e = headerParameters;
114
- _f = "Priority";
115
- return [4 /*yield*/, this.configuration.apiKey("Priority")];
116
- case 5:
117
- _e[_f] = _14.sent(); // Priority authentication
118
- _14.label = 6;
119
- case 6:
120
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
121
- _g = headerParameters;
122
- _h = "Referer";
123
- return [4 /*yield*/, this.configuration.apiKey("Referer")];
124
- case 7:
125
- _g[_h] = _14.sent(); // Referer authentication
126
- _14.label = 8;
127
- case 8:
128
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
129
- _j = headerParameters;
130
- _k = "Sec-Fetch-Dest";
131
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
132
- case 9:
133
- _j[_k] = _14.sent(); // SecFetchDest authentication
134
- _14.label = 10;
135
- case 10:
136
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
137
- _l = headerParameters;
138
- _m = "Sec-Ch-Ua-Platform";
139
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
140
- case 11:
141
- _l[_m] = _14.sent(); // SecChUaPlatform authentication
142
- _14.label = 12;
143
- case 12:
144
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
145
- _o = headerParameters;
146
- _p = "Sec-Fetch-Mode";
147
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
148
- case 13:
149
- _o[_p] = _14.sent(); // SecFetchMode authentication
150
- _14.label = 14;
151
- case 14:
152
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
153
- _q = headerParameters;
154
- _r = "x-csrf-token";
155
- return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
156
- case 15:
157
- _q[_r] = _14.sent(); // CsrfToken authentication
158
- _14.label = 16;
159
- case 16:
160
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
161
- _s = headerParameters;
162
- _t = "x-client-uuid";
163
- return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
164
- case 17:
165
- _s[_t] = _14.sent(); // ClientUuid authentication
166
- _14.label = 18;
167
- case 18:
168
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
169
- token = this.configuration.accessToken;
170
- return [4 /*yield*/, token("BearerAuth", [])];
171
- case 19:
172
- tokenString = _14.sent();
173
- if (tokenString) {
174
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
175
- }
176
- _14.label = 20;
177
- case 20:
178
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
179
- _u = headerParameters;
180
- _v = "x-guest-token";
181
- return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
182
- case 21:
183
- _u[_v] = _14.sent(); // GuestToken authentication
184
- _14.label = 22;
185
- case 22:
186
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
187
- _w = headerParameters;
188
- _x = "Sec-Ch-Ua";
189
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
190
- case 23:
191
- _w[_x] = _14.sent(); // SecChUa authentication
192
- _14.label = 24;
193
- case 24:
194
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
195
- _y = headerParameters;
196
- _z = "x-client-transaction-id";
197
- return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
198
- case 25:
199
- _y[_z] = _14.sent(); // ClientTransactionId authentication
200
- _14.label = 26;
201
- case 26:
202
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
203
- _0 = headerParameters;
204
- _1 = "x-twitter-active-user";
205
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
206
- case 27:
207
- _0[_1] = _14.sent(); // ActiveUser authentication
208
- _14.label = 28;
209
- case 28:
210
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
211
- _2 = headerParameters;
212
- _3 = "user-agent";
213
- return [4 /*yield*/, this.configuration.apiKey("user-agent")];
214
- case 29:
215
- _2[_3] = _14.sent(); // UserAgent authentication
216
- _14.label = 30;
217
- case 30:
218
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
219
- _4 = headerParameters;
220
- _5 = "Accept-Language";
221
- return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
222
- case 31:
223
- _4[_5] = _14.sent(); // AcceptLanguage authentication
224
- _14.label = 32;
225
- case 32:
226
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
227
- _6 = headerParameters;
228
- _7 = "Sec-Fetch-Site";
229
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
230
- case 33:
231
- _6[_7] = _14.sent(); // SecFetchSite authentication
232
- _14.label = 34;
233
- case 34:
234
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
235
- _8 = headerParameters;
236
- _9 = "x-twitter-auth-type";
237
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
238
- case 35:
239
- _8[_9] = _14.sent(); // AuthType authentication
240
- _14.label = 36;
241
- case 36:
242
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
243
- _10 = headerParameters;
244
- _11 = "Sec-Ch-Ua-Mobile";
245
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
246
- case 37:
247
- _10[_11] = _14.sent(); // SecChUaMobile authentication
248
- _14.label = 38;
249
- case 38:
250
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 40];
251
- _12 = headerParameters;
252
- _13 = "Accept-Encoding";
253
- return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
254
- case 39:
255
- _12[_13] = _14.sent(); // AcceptEncoding authentication
256
- _14.label = 40;
257
- case 40: return [4 /*yield*/, this.request({
258
- path: "/graphql/{pathQueryId}/CreateBookmark".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
259
- method: 'POST',
260
- headers: headerParameters,
261
- query: queryParameters,
262
- body: (0, index_1.PostCreateBookmarkRequestToJSON)(requestParameters['postCreateBookmarkRequest']),
263
- }, initOverrides)];
264
- case 41:
265
- response = _14.sent();
266
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.CreateBookmarkResponseFromJSON)(jsonValue); })];
267
- }
268
- });
269
- });
270
- };
271
- /**
272
- * create Bookmark
273
- */
274
- PostApi.prototype.postCreateBookmark = function (requestParameters, initOverrides) {
275
- return __awaiter(this, void 0, void 0, function () {
276
- var response;
277
- return __generator(this, function (_a) {
278
- switch (_a.label) {
279
- case 0: return [4 /*yield*/, this.postCreateBookmarkRaw(requestParameters, initOverrides)];
280
- case 1:
281
- response = _a.sent();
282
- return [4 /*yield*/, response.value()];
283
- case 2: return [2 /*return*/, _a.sent()];
284
- }
285
- });
286
- });
287
- };
288
- /**
289
- * create Retweet
290
- */
291
- PostApi.prototype.postCreateRetweetRaw = function (requestParameters, initOverrides) {
292
- return __awaiter(this, void 0, void 0, function () {
293
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, response;
294
- return __generator(this, function (_14) {
295
- switch (_14.label) {
296
- case 0:
297
- if (requestParameters['pathQueryId'] == null) {
298
- throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postCreateRetweet().');
299
- }
300
- if (requestParameters['postCreateRetweetRequest'] == null) {
301
- throw new runtime.RequiredError('postCreateRetweetRequest', 'Required parameter "postCreateRetweetRequest" was null or undefined when calling postCreateRetweet().');
302
- }
303
- queryParameters = {};
304
- headerParameters = {};
305
- headerParameters['Content-Type'] = 'application/json';
306
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
307
- _a = headerParameters;
308
- _b = "Accept";
309
- return [4 /*yield*/, this.configuration.apiKey("Accept")];
310
- case 1:
311
- _a[_b] = _14.sent(); // Accept authentication
312
- _14.label = 2;
313
- case 2:
314
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
315
- _c = headerParameters;
316
- _d = "x-twitter-client-language";
317
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
318
- case 3:
319
- _c[_d] = _14.sent(); // ClientLanguage authentication
320
- _14.label = 4;
321
- case 4:
322
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
323
- _e = headerParameters;
324
- _f = "Priority";
325
- return [4 /*yield*/, this.configuration.apiKey("Priority")];
326
- case 5:
327
- _e[_f] = _14.sent(); // Priority authentication
328
- _14.label = 6;
329
- case 6:
330
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
331
- _g = headerParameters;
332
- _h = "Referer";
333
- return [4 /*yield*/, this.configuration.apiKey("Referer")];
334
- case 7:
335
- _g[_h] = _14.sent(); // Referer authentication
336
- _14.label = 8;
337
- case 8:
338
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
339
- _j = headerParameters;
340
- _k = "Sec-Fetch-Dest";
341
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
342
- case 9:
343
- _j[_k] = _14.sent(); // SecFetchDest authentication
344
- _14.label = 10;
345
- case 10:
346
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
347
- _l = headerParameters;
348
- _m = "Sec-Ch-Ua-Platform";
349
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
350
- case 11:
351
- _l[_m] = _14.sent(); // SecChUaPlatform authentication
352
- _14.label = 12;
353
- case 12:
354
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
355
- _o = headerParameters;
356
- _p = "Sec-Fetch-Mode";
357
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
358
- case 13:
359
- _o[_p] = _14.sent(); // SecFetchMode authentication
360
- _14.label = 14;
361
- case 14:
362
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
363
- _q = headerParameters;
364
- _r = "x-csrf-token";
365
- return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
366
- case 15:
367
- _q[_r] = _14.sent(); // CsrfToken authentication
368
- _14.label = 16;
369
- case 16:
370
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
371
- _s = headerParameters;
372
- _t = "x-client-uuid";
373
- return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
374
- case 17:
375
- _s[_t] = _14.sent(); // ClientUuid authentication
376
- _14.label = 18;
377
- case 18:
378
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
379
- token = this.configuration.accessToken;
380
- return [4 /*yield*/, token("BearerAuth", [])];
381
- case 19:
382
- tokenString = _14.sent();
383
- if (tokenString) {
384
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
385
- }
386
- _14.label = 20;
387
- case 20:
388
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
389
- _u = headerParameters;
390
- _v = "x-guest-token";
391
- return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
392
- case 21:
393
- _u[_v] = _14.sent(); // GuestToken authentication
394
- _14.label = 22;
395
- case 22:
396
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
397
- _w = headerParameters;
398
- _x = "Sec-Ch-Ua";
399
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
400
- case 23:
401
- _w[_x] = _14.sent(); // SecChUa authentication
402
- _14.label = 24;
403
- case 24:
404
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
405
- _y = headerParameters;
406
- _z = "x-client-transaction-id";
407
- return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
408
- case 25:
409
- _y[_z] = _14.sent(); // ClientTransactionId authentication
410
- _14.label = 26;
411
- case 26:
412
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
413
- _0 = headerParameters;
414
- _1 = "x-twitter-active-user";
415
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
416
- case 27:
417
- _0[_1] = _14.sent(); // ActiveUser authentication
418
- _14.label = 28;
419
- case 28:
420
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
421
- _2 = headerParameters;
422
- _3 = "user-agent";
423
- return [4 /*yield*/, this.configuration.apiKey("user-agent")];
424
- case 29:
425
- _2[_3] = _14.sent(); // UserAgent authentication
426
- _14.label = 30;
427
- case 30:
428
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
429
- _4 = headerParameters;
430
- _5 = "Accept-Language";
431
- return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
432
- case 31:
433
- _4[_5] = _14.sent(); // AcceptLanguage authentication
434
- _14.label = 32;
435
- case 32:
436
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
437
- _6 = headerParameters;
438
- _7 = "Sec-Fetch-Site";
439
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
440
- case 33:
441
- _6[_7] = _14.sent(); // SecFetchSite authentication
442
- _14.label = 34;
443
- case 34:
444
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
445
- _8 = headerParameters;
446
- _9 = "x-twitter-auth-type";
447
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
448
- case 35:
449
- _8[_9] = _14.sent(); // AuthType authentication
450
- _14.label = 36;
451
- case 36:
452
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
453
- _10 = headerParameters;
454
- _11 = "Sec-Ch-Ua-Mobile";
455
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
456
- case 37:
457
- _10[_11] = _14.sent(); // SecChUaMobile authentication
458
- _14.label = 38;
459
- case 38:
460
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 40];
461
- _12 = headerParameters;
462
- _13 = "Accept-Encoding";
463
- return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
464
- case 39:
465
- _12[_13] = _14.sent(); // AcceptEncoding authentication
466
- _14.label = 40;
467
- case 40: return [4 /*yield*/, this.request({
468
- path: "/graphql/{pathQueryId}/CreateRetweet".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
469
- method: 'POST',
470
- headers: headerParameters,
471
- query: queryParameters,
472
- body: (0, index_1.PostCreateRetweetRequestToJSON)(requestParameters['postCreateRetweetRequest']),
473
- }, initOverrides)];
474
- case 41:
475
- response = _14.sent();
476
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.CreateRetweetResponseFromJSON)(jsonValue); })];
477
- }
478
- });
479
- });
480
- };
481
- /**
482
- * create Retweet
483
- */
484
- PostApi.prototype.postCreateRetweet = function (requestParameters, initOverrides) {
485
- return __awaiter(this, void 0, void 0, function () {
486
- var response;
487
- return __generator(this, function (_a) {
488
- switch (_a.label) {
489
- case 0: return [4 /*yield*/, this.postCreateRetweetRaw(requestParameters, initOverrides)];
490
- case 1:
491
- response = _a.sent();
492
- return [4 /*yield*/, response.value()];
493
- case 2: return [2 /*return*/, _a.sent()];
494
- }
495
- });
496
- });
497
- };
498
- /**
499
- * create Tweet
500
- */
501
- PostApi.prototype.postCreateTweetRaw = function (requestParameters, initOverrides) {
502
- return __awaiter(this, void 0, void 0, function () {
503
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, response;
504
- return __generator(this, function (_14) {
505
- switch (_14.label) {
506
- case 0:
507
- if (requestParameters['pathQueryId'] == null) {
508
- throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postCreateTweet().');
509
- }
510
- if (requestParameters['postCreateTweetRequest'] == null) {
511
- throw new runtime.RequiredError('postCreateTweetRequest', 'Required parameter "postCreateTweetRequest" was null or undefined when calling postCreateTweet().');
512
- }
513
- queryParameters = {};
514
- headerParameters = {};
515
- headerParameters['Content-Type'] = 'application/json';
516
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
517
- _a = headerParameters;
518
- _b = "Accept";
519
- return [4 /*yield*/, this.configuration.apiKey("Accept")];
520
- case 1:
521
- _a[_b] = _14.sent(); // Accept authentication
522
- _14.label = 2;
523
- case 2:
524
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
525
- _c = headerParameters;
526
- _d = "x-twitter-client-language";
527
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
528
- case 3:
529
- _c[_d] = _14.sent(); // ClientLanguage authentication
530
- _14.label = 4;
531
- case 4:
532
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
533
- _e = headerParameters;
534
- _f = "Priority";
535
- return [4 /*yield*/, this.configuration.apiKey("Priority")];
536
- case 5:
537
- _e[_f] = _14.sent(); // Priority authentication
538
- _14.label = 6;
539
- case 6:
540
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
541
- _g = headerParameters;
542
- _h = "Referer";
543
- return [4 /*yield*/, this.configuration.apiKey("Referer")];
544
- case 7:
545
- _g[_h] = _14.sent(); // Referer authentication
546
- _14.label = 8;
547
- case 8:
548
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
549
- _j = headerParameters;
550
- _k = "Sec-Fetch-Dest";
551
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
552
- case 9:
553
- _j[_k] = _14.sent(); // SecFetchDest authentication
554
- _14.label = 10;
555
- case 10:
556
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
557
- _l = headerParameters;
558
- _m = "Sec-Ch-Ua-Platform";
559
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
560
- case 11:
561
- _l[_m] = _14.sent(); // SecChUaPlatform authentication
562
- _14.label = 12;
563
- case 12:
564
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
565
- _o = headerParameters;
566
- _p = "Sec-Fetch-Mode";
567
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
568
- case 13:
569
- _o[_p] = _14.sent(); // SecFetchMode authentication
570
- _14.label = 14;
571
- case 14:
572
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
573
- _q = headerParameters;
574
- _r = "x-csrf-token";
575
- return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
576
- case 15:
577
- _q[_r] = _14.sent(); // CsrfToken authentication
578
- _14.label = 16;
579
- case 16:
580
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
581
- _s = headerParameters;
582
- _t = "x-client-uuid";
583
- return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
584
- case 17:
585
- _s[_t] = _14.sent(); // ClientUuid authentication
586
- _14.label = 18;
587
- case 18:
588
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
589
- token = this.configuration.accessToken;
590
- return [4 /*yield*/, token("BearerAuth", [])];
591
- case 19:
592
- tokenString = _14.sent();
593
- if (tokenString) {
594
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
595
- }
596
- _14.label = 20;
597
- case 20:
598
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
599
- _u = headerParameters;
600
- _v = "x-guest-token";
601
- return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
602
- case 21:
603
- _u[_v] = _14.sent(); // GuestToken authentication
604
- _14.label = 22;
605
- case 22:
606
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
607
- _w = headerParameters;
608
- _x = "Sec-Ch-Ua";
609
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
610
- case 23:
611
- _w[_x] = _14.sent(); // SecChUa authentication
612
- _14.label = 24;
613
- case 24:
614
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
615
- _y = headerParameters;
616
- _z = "x-client-transaction-id";
617
- return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
618
- case 25:
619
- _y[_z] = _14.sent(); // ClientTransactionId authentication
620
- _14.label = 26;
621
- case 26:
622
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
623
- _0 = headerParameters;
624
- _1 = "x-twitter-active-user";
625
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
626
- case 27:
627
- _0[_1] = _14.sent(); // ActiveUser authentication
628
- _14.label = 28;
629
- case 28:
630
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
631
- _2 = headerParameters;
632
- _3 = "user-agent";
633
- return [4 /*yield*/, this.configuration.apiKey("user-agent")];
634
- case 29:
635
- _2[_3] = _14.sent(); // UserAgent authentication
636
- _14.label = 30;
637
- case 30:
638
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
639
- _4 = headerParameters;
640
- _5 = "Accept-Language";
641
- return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
642
- case 31:
643
- _4[_5] = _14.sent(); // AcceptLanguage authentication
644
- _14.label = 32;
645
- case 32:
646
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
647
- _6 = headerParameters;
648
- _7 = "Sec-Fetch-Site";
649
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
650
- case 33:
651
- _6[_7] = _14.sent(); // SecFetchSite authentication
652
- _14.label = 34;
653
- case 34:
654
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
655
- _8 = headerParameters;
656
- _9 = "x-twitter-auth-type";
657
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
658
- case 35:
659
- _8[_9] = _14.sent(); // AuthType authentication
660
- _14.label = 36;
661
- case 36:
662
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
663
- _10 = headerParameters;
664
- _11 = "Sec-Ch-Ua-Mobile";
665
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
666
- case 37:
667
- _10[_11] = _14.sent(); // SecChUaMobile authentication
668
- _14.label = 38;
669
- case 38:
670
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 40];
671
- _12 = headerParameters;
672
- _13 = "Accept-Encoding";
673
- return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
674
- case 39:
675
- _12[_13] = _14.sent(); // AcceptEncoding authentication
676
- _14.label = 40;
677
- case 40: return [4 /*yield*/, this.request({
678
- path: "/graphql/{pathQueryId}/CreateTweet".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
679
- method: 'POST',
680
- headers: headerParameters,
681
- query: queryParameters,
682
- body: (0, index_1.PostCreateTweetRequestToJSON)(requestParameters['postCreateTweetRequest']),
683
- }, initOverrides)];
684
- case 41:
685
- response = _14.sent();
686
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.CreateTweetResponseFromJSON)(jsonValue); })];
687
- }
688
- });
689
- });
690
- };
691
- /**
692
- * create Tweet
693
- */
694
- PostApi.prototype.postCreateTweet = function (requestParameters, initOverrides) {
695
- return __awaiter(this, void 0, void 0, function () {
696
- var response;
697
- return __generator(this, function (_a) {
698
- switch (_a.label) {
699
- case 0: return [4 /*yield*/, this.postCreateTweetRaw(requestParameters, initOverrides)];
700
- case 1:
701
- response = _a.sent();
702
- return [4 /*yield*/, response.value()];
703
- case 2: return [2 /*return*/, _a.sent()];
704
- }
705
- });
706
- });
707
- };
708
- /**
709
- * delete Bookmark
710
- */
711
- PostApi.prototype.postDeleteBookmarkRaw = function (requestParameters, initOverrides) {
712
- return __awaiter(this, void 0, void 0, function () {
713
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, response;
714
- return __generator(this, function (_14) {
715
- switch (_14.label) {
716
- case 0:
717
- if (requestParameters['pathQueryId'] == null) {
718
- throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postDeleteBookmark().');
719
- }
720
- if (requestParameters['postDeleteBookmarkRequest'] == null) {
721
- throw new runtime.RequiredError('postDeleteBookmarkRequest', 'Required parameter "postDeleteBookmarkRequest" was null or undefined when calling postDeleteBookmark().');
722
- }
723
- queryParameters = {};
724
- headerParameters = {};
725
- headerParameters['Content-Type'] = 'application/json';
726
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
727
- _a = headerParameters;
728
- _b = "Accept";
729
- return [4 /*yield*/, this.configuration.apiKey("Accept")];
730
- case 1:
731
- _a[_b] = _14.sent(); // Accept authentication
732
- _14.label = 2;
733
- case 2:
734
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
735
- _c = headerParameters;
736
- _d = "x-twitter-client-language";
737
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
738
- case 3:
739
- _c[_d] = _14.sent(); // ClientLanguage authentication
740
- _14.label = 4;
741
- case 4:
742
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
743
- _e = headerParameters;
744
- _f = "Priority";
745
- return [4 /*yield*/, this.configuration.apiKey("Priority")];
746
- case 5:
747
- _e[_f] = _14.sent(); // Priority authentication
748
- _14.label = 6;
749
- case 6:
750
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
751
- _g = headerParameters;
752
- _h = "Referer";
753
- return [4 /*yield*/, this.configuration.apiKey("Referer")];
754
- case 7:
755
- _g[_h] = _14.sent(); // Referer authentication
756
- _14.label = 8;
757
- case 8:
758
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
759
- _j = headerParameters;
760
- _k = "Sec-Fetch-Dest";
761
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
762
- case 9:
763
- _j[_k] = _14.sent(); // SecFetchDest authentication
764
- _14.label = 10;
765
- case 10:
766
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
767
- _l = headerParameters;
768
- _m = "Sec-Ch-Ua-Platform";
769
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
770
- case 11:
771
- _l[_m] = _14.sent(); // SecChUaPlatform authentication
772
- _14.label = 12;
773
- case 12:
774
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
775
- _o = headerParameters;
776
- _p = "Sec-Fetch-Mode";
777
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
778
- case 13:
779
- _o[_p] = _14.sent(); // SecFetchMode authentication
780
- _14.label = 14;
781
- case 14:
782
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
783
- _q = headerParameters;
784
- _r = "x-csrf-token";
785
- return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
786
- case 15:
787
- _q[_r] = _14.sent(); // CsrfToken authentication
788
- _14.label = 16;
789
- case 16:
790
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
791
- _s = headerParameters;
792
- _t = "x-client-uuid";
793
- return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
794
- case 17:
795
- _s[_t] = _14.sent(); // ClientUuid authentication
796
- _14.label = 18;
797
- case 18:
798
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
799
- token = this.configuration.accessToken;
800
- return [4 /*yield*/, token("BearerAuth", [])];
801
- case 19:
802
- tokenString = _14.sent();
803
- if (tokenString) {
804
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
805
- }
806
- _14.label = 20;
807
- case 20:
808
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
809
- _u = headerParameters;
810
- _v = "x-guest-token";
811
- return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
812
- case 21:
813
- _u[_v] = _14.sent(); // GuestToken authentication
814
- _14.label = 22;
815
- case 22:
816
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
817
- _w = headerParameters;
818
- _x = "Sec-Ch-Ua";
819
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
820
- case 23:
821
- _w[_x] = _14.sent(); // SecChUa authentication
822
- _14.label = 24;
823
- case 24:
824
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
825
- _y = headerParameters;
826
- _z = "x-client-transaction-id";
827
- return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
828
- case 25:
829
- _y[_z] = _14.sent(); // ClientTransactionId authentication
830
- _14.label = 26;
831
- case 26:
832
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
833
- _0 = headerParameters;
834
- _1 = "x-twitter-active-user";
835
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
836
- case 27:
837
- _0[_1] = _14.sent(); // ActiveUser authentication
838
- _14.label = 28;
839
- case 28:
840
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
841
- _2 = headerParameters;
842
- _3 = "user-agent";
843
- return [4 /*yield*/, this.configuration.apiKey("user-agent")];
844
- case 29:
845
- _2[_3] = _14.sent(); // UserAgent authentication
846
- _14.label = 30;
847
- case 30:
848
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
849
- _4 = headerParameters;
850
- _5 = "Accept-Language";
851
- return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
852
- case 31:
853
- _4[_5] = _14.sent(); // AcceptLanguage authentication
854
- _14.label = 32;
855
- case 32:
856
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
857
- _6 = headerParameters;
858
- _7 = "Sec-Fetch-Site";
859
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
860
- case 33:
861
- _6[_7] = _14.sent(); // SecFetchSite authentication
862
- _14.label = 34;
863
- case 34:
864
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
865
- _8 = headerParameters;
866
- _9 = "x-twitter-auth-type";
867
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
868
- case 35:
869
- _8[_9] = _14.sent(); // AuthType authentication
870
- _14.label = 36;
871
- case 36:
872
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
873
- _10 = headerParameters;
874
- _11 = "Sec-Ch-Ua-Mobile";
875
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
876
- case 37:
877
- _10[_11] = _14.sent(); // SecChUaMobile authentication
878
- _14.label = 38;
879
- case 38:
880
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 40];
881
- _12 = headerParameters;
882
- _13 = "Accept-Encoding";
883
- return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
884
- case 39:
885
- _12[_13] = _14.sent(); // AcceptEncoding authentication
886
- _14.label = 40;
887
- case 40: return [4 /*yield*/, this.request({
888
- path: "/graphql/{pathQueryId}/DeleteBookmark".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
889
- method: 'POST',
890
- headers: headerParameters,
891
- query: queryParameters,
892
- body: (0, index_1.PostDeleteBookmarkRequestToJSON)(requestParameters['postDeleteBookmarkRequest']),
893
- }, initOverrides)];
894
- case 41:
895
- response = _14.sent();
896
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DeleteBookmarkResponseFromJSON)(jsonValue); })];
897
- }
898
- });
899
- });
900
- };
901
- /**
902
- * delete Bookmark
903
- */
904
- PostApi.prototype.postDeleteBookmark = function (requestParameters, initOverrides) {
905
- return __awaiter(this, void 0, void 0, function () {
906
- var response;
907
- return __generator(this, function (_a) {
908
- switch (_a.label) {
909
- case 0: return [4 /*yield*/, this.postDeleteBookmarkRaw(requestParameters, initOverrides)];
910
- case 1:
911
- response = _a.sent();
912
- return [4 /*yield*/, response.value()];
913
- case 2: return [2 /*return*/, _a.sent()];
914
- }
915
- });
916
- });
917
- };
918
- /**
919
- * delete Retweet
920
- */
921
- PostApi.prototype.postDeleteRetweetRaw = function (requestParameters, initOverrides) {
922
- return __awaiter(this, void 0, void 0, function () {
923
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, response;
924
- return __generator(this, function (_14) {
925
- switch (_14.label) {
926
- case 0:
927
- if (requestParameters['pathQueryId'] == null) {
928
- throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postDeleteRetweet().');
929
- }
930
- if (requestParameters['postDeleteRetweetRequest'] == null) {
931
- throw new runtime.RequiredError('postDeleteRetweetRequest', 'Required parameter "postDeleteRetweetRequest" was null or undefined when calling postDeleteRetweet().');
932
- }
933
- queryParameters = {};
934
- headerParameters = {};
935
- headerParameters['Content-Type'] = 'application/json';
936
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
937
- _a = headerParameters;
938
- _b = "Accept";
939
- return [4 /*yield*/, this.configuration.apiKey("Accept")];
940
- case 1:
941
- _a[_b] = _14.sent(); // Accept authentication
942
- _14.label = 2;
943
- case 2:
944
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
945
- _c = headerParameters;
946
- _d = "x-twitter-client-language";
947
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
948
- case 3:
949
- _c[_d] = _14.sent(); // ClientLanguage authentication
950
- _14.label = 4;
951
- case 4:
952
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
953
- _e = headerParameters;
954
- _f = "Priority";
955
- return [4 /*yield*/, this.configuration.apiKey("Priority")];
956
- case 5:
957
- _e[_f] = _14.sent(); // Priority authentication
958
- _14.label = 6;
959
- case 6:
960
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
961
- _g = headerParameters;
962
- _h = "Referer";
963
- return [4 /*yield*/, this.configuration.apiKey("Referer")];
964
- case 7:
965
- _g[_h] = _14.sent(); // Referer authentication
966
- _14.label = 8;
967
- case 8:
968
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
969
- _j = headerParameters;
970
- _k = "Sec-Fetch-Dest";
971
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
972
- case 9:
973
- _j[_k] = _14.sent(); // SecFetchDest authentication
974
- _14.label = 10;
975
- case 10:
976
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
977
- _l = headerParameters;
978
- _m = "Sec-Ch-Ua-Platform";
979
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
980
- case 11:
981
- _l[_m] = _14.sent(); // SecChUaPlatform authentication
982
- _14.label = 12;
983
- case 12:
984
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
985
- _o = headerParameters;
986
- _p = "Sec-Fetch-Mode";
987
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
988
- case 13:
989
- _o[_p] = _14.sent(); // SecFetchMode authentication
990
- _14.label = 14;
991
- case 14:
992
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
993
- _q = headerParameters;
994
- _r = "x-csrf-token";
995
- return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
996
- case 15:
997
- _q[_r] = _14.sent(); // CsrfToken authentication
998
- _14.label = 16;
999
- case 16:
1000
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
1001
- _s = headerParameters;
1002
- _t = "x-client-uuid";
1003
- return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
1004
- case 17:
1005
- _s[_t] = _14.sent(); // ClientUuid authentication
1006
- _14.label = 18;
1007
- case 18:
1008
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
1009
- token = this.configuration.accessToken;
1010
- return [4 /*yield*/, token("BearerAuth", [])];
1011
- case 19:
1012
- tokenString = _14.sent();
1013
- if (tokenString) {
1014
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
1015
- }
1016
- _14.label = 20;
1017
- case 20:
1018
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
1019
- _u = headerParameters;
1020
- _v = "x-guest-token";
1021
- return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
1022
- case 21:
1023
- _u[_v] = _14.sent(); // GuestToken authentication
1024
- _14.label = 22;
1025
- case 22:
1026
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
1027
- _w = headerParameters;
1028
- _x = "Sec-Ch-Ua";
1029
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
1030
- case 23:
1031
- _w[_x] = _14.sent(); // SecChUa authentication
1032
- _14.label = 24;
1033
- case 24:
1034
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
1035
- _y = headerParameters;
1036
- _z = "x-client-transaction-id";
1037
- return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
1038
- case 25:
1039
- _y[_z] = _14.sent(); // ClientTransactionId authentication
1040
- _14.label = 26;
1041
- case 26:
1042
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
1043
- _0 = headerParameters;
1044
- _1 = "x-twitter-active-user";
1045
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
1046
- case 27:
1047
- _0[_1] = _14.sent(); // ActiveUser authentication
1048
- _14.label = 28;
1049
- case 28:
1050
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
1051
- _2 = headerParameters;
1052
- _3 = "user-agent";
1053
- return [4 /*yield*/, this.configuration.apiKey("user-agent")];
1054
- case 29:
1055
- _2[_3] = _14.sent(); // UserAgent authentication
1056
- _14.label = 30;
1057
- case 30:
1058
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
1059
- _4 = headerParameters;
1060
- _5 = "Accept-Language";
1061
- return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
1062
- case 31:
1063
- _4[_5] = _14.sent(); // AcceptLanguage authentication
1064
- _14.label = 32;
1065
- case 32:
1066
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
1067
- _6 = headerParameters;
1068
- _7 = "Sec-Fetch-Site";
1069
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
1070
- case 33:
1071
- _6[_7] = _14.sent(); // SecFetchSite authentication
1072
- _14.label = 34;
1073
- case 34:
1074
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
1075
- _8 = headerParameters;
1076
- _9 = "x-twitter-auth-type";
1077
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
1078
- case 35:
1079
- _8[_9] = _14.sent(); // AuthType authentication
1080
- _14.label = 36;
1081
- case 36:
1082
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
1083
- _10 = headerParameters;
1084
- _11 = "Sec-Ch-Ua-Mobile";
1085
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
1086
- case 37:
1087
- _10[_11] = _14.sent(); // SecChUaMobile authentication
1088
- _14.label = 38;
1089
- case 38:
1090
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 40];
1091
- _12 = headerParameters;
1092
- _13 = "Accept-Encoding";
1093
- return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
1094
- case 39:
1095
- _12[_13] = _14.sent(); // AcceptEncoding authentication
1096
- _14.label = 40;
1097
- case 40: return [4 /*yield*/, this.request({
1098
- path: "/graphql/{pathQueryId}/DeleteRetweet".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
1099
- method: 'POST',
1100
- headers: headerParameters,
1101
- query: queryParameters,
1102
- body: (0, index_1.PostDeleteRetweetRequestToJSON)(requestParameters['postDeleteRetweetRequest']),
1103
- }, initOverrides)];
1104
- case 41:
1105
- response = _14.sent();
1106
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DeleteRetweetResponseFromJSON)(jsonValue); })];
1107
- }
1108
- });
1109
- });
1110
- };
1111
- /**
1112
- * delete Retweet
1113
- */
1114
- PostApi.prototype.postDeleteRetweet = function (requestParameters, initOverrides) {
1115
- return __awaiter(this, void 0, void 0, function () {
1116
- var response;
1117
- return __generator(this, function (_a) {
1118
- switch (_a.label) {
1119
- case 0: return [4 /*yield*/, this.postDeleteRetweetRaw(requestParameters, initOverrides)];
1120
- case 1:
1121
- response = _a.sent();
1122
- return [4 /*yield*/, response.value()];
1123
- case 2: return [2 /*return*/, _a.sent()];
1124
- }
1125
- });
1126
- });
1127
- };
1128
- /**
1129
- * delete Retweet
1130
- */
1131
- PostApi.prototype.postDeleteTweetRaw = function (requestParameters, initOverrides) {
1132
- return __awaiter(this, void 0, void 0, function () {
1133
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, response;
1134
- return __generator(this, function (_14) {
1135
- switch (_14.label) {
1136
- case 0:
1137
- if (requestParameters['pathQueryId'] == null) {
1138
- throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postDeleteTweet().');
1139
- }
1140
- if (requestParameters['postDeleteTweetRequest'] == null) {
1141
- throw new runtime.RequiredError('postDeleteTweetRequest', 'Required parameter "postDeleteTweetRequest" was null or undefined when calling postDeleteTweet().');
1142
- }
1143
- queryParameters = {};
1144
- headerParameters = {};
1145
- headerParameters['Content-Type'] = 'application/json';
1146
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
1147
- _a = headerParameters;
1148
- _b = "Accept";
1149
- return [4 /*yield*/, this.configuration.apiKey("Accept")];
1150
- case 1:
1151
- _a[_b] = _14.sent(); // Accept authentication
1152
- _14.label = 2;
1153
- case 2:
1154
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
1155
- _c = headerParameters;
1156
- _d = "x-twitter-client-language";
1157
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
1158
- case 3:
1159
- _c[_d] = _14.sent(); // ClientLanguage authentication
1160
- _14.label = 4;
1161
- case 4:
1162
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
1163
- _e = headerParameters;
1164
- _f = "Priority";
1165
- return [4 /*yield*/, this.configuration.apiKey("Priority")];
1166
- case 5:
1167
- _e[_f] = _14.sent(); // Priority authentication
1168
- _14.label = 6;
1169
- case 6:
1170
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
1171
- _g = headerParameters;
1172
- _h = "Referer";
1173
- return [4 /*yield*/, this.configuration.apiKey("Referer")];
1174
- case 7:
1175
- _g[_h] = _14.sent(); // Referer authentication
1176
- _14.label = 8;
1177
- case 8:
1178
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
1179
- _j = headerParameters;
1180
- _k = "Sec-Fetch-Dest";
1181
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
1182
- case 9:
1183
- _j[_k] = _14.sent(); // SecFetchDest authentication
1184
- _14.label = 10;
1185
- case 10:
1186
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
1187
- _l = headerParameters;
1188
- _m = "Sec-Ch-Ua-Platform";
1189
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
1190
- case 11:
1191
- _l[_m] = _14.sent(); // SecChUaPlatform authentication
1192
- _14.label = 12;
1193
- case 12:
1194
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
1195
- _o = headerParameters;
1196
- _p = "Sec-Fetch-Mode";
1197
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
1198
- case 13:
1199
- _o[_p] = _14.sent(); // SecFetchMode authentication
1200
- _14.label = 14;
1201
- case 14:
1202
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
1203
- _q = headerParameters;
1204
- _r = "x-csrf-token";
1205
- return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
1206
- case 15:
1207
- _q[_r] = _14.sent(); // CsrfToken authentication
1208
- _14.label = 16;
1209
- case 16:
1210
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
1211
- _s = headerParameters;
1212
- _t = "x-client-uuid";
1213
- return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
1214
- case 17:
1215
- _s[_t] = _14.sent(); // ClientUuid authentication
1216
- _14.label = 18;
1217
- case 18:
1218
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
1219
- token = this.configuration.accessToken;
1220
- return [4 /*yield*/, token("BearerAuth", [])];
1221
- case 19:
1222
- tokenString = _14.sent();
1223
- if (tokenString) {
1224
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
1225
- }
1226
- _14.label = 20;
1227
- case 20:
1228
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
1229
- _u = headerParameters;
1230
- _v = "x-guest-token";
1231
- return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
1232
- case 21:
1233
- _u[_v] = _14.sent(); // GuestToken authentication
1234
- _14.label = 22;
1235
- case 22:
1236
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
1237
- _w = headerParameters;
1238
- _x = "Sec-Ch-Ua";
1239
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
1240
- case 23:
1241
- _w[_x] = _14.sent(); // SecChUa authentication
1242
- _14.label = 24;
1243
- case 24:
1244
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
1245
- _y = headerParameters;
1246
- _z = "x-client-transaction-id";
1247
- return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
1248
- case 25:
1249
- _y[_z] = _14.sent(); // ClientTransactionId authentication
1250
- _14.label = 26;
1251
- case 26:
1252
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
1253
- _0 = headerParameters;
1254
- _1 = "x-twitter-active-user";
1255
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
1256
- case 27:
1257
- _0[_1] = _14.sent(); // ActiveUser authentication
1258
- _14.label = 28;
1259
- case 28:
1260
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
1261
- _2 = headerParameters;
1262
- _3 = "user-agent";
1263
- return [4 /*yield*/, this.configuration.apiKey("user-agent")];
1264
- case 29:
1265
- _2[_3] = _14.sent(); // UserAgent authentication
1266
- _14.label = 30;
1267
- case 30:
1268
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
1269
- _4 = headerParameters;
1270
- _5 = "Accept-Language";
1271
- return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
1272
- case 31:
1273
- _4[_5] = _14.sent(); // AcceptLanguage authentication
1274
- _14.label = 32;
1275
- case 32:
1276
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
1277
- _6 = headerParameters;
1278
- _7 = "Sec-Fetch-Site";
1279
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
1280
- case 33:
1281
- _6[_7] = _14.sent(); // SecFetchSite authentication
1282
- _14.label = 34;
1283
- case 34:
1284
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
1285
- _8 = headerParameters;
1286
- _9 = "x-twitter-auth-type";
1287
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
1288
- case 35:
1289
- _8[_9] = _14.sent(); // AuthType authentication
1290
- _14.label = 36;
1291
- case 36:
1292
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
1293
- _10 = headerParameters;
1294
- _11 = "Sec-Ch-Ua-Mobile";
1295
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
1296
- case 37:
1297
- _10[_11] = _14.sent(); // SecChUaMobile authentication
1298
- _14.label = 38;
1299
- case 38:
1300
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 40];
1301
- _12 = headerParameters;
1302
- _13 = "Accept-Encoding";
1303
- return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
1304
- case 39:
1305
- _12[_13] = _14.sent(); // AcceptEncoding authentication
1306
- _14.label = 40;
1307
- case 40: return [4 /*yield*/, this.request({
1308
- path: "/graphql/{pathQueryId}/DeleteTweet".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
1309
- method: 'POST',
1310
- headers: headerParameters,
1311
- query: queryParameters,
1312
- body: (0, index_1.PostDeleteTweetRequestToJSON)(requestParameters['postDeleteTweetRequest']),
1313
- }, initOverrides)];
1314
- case 41:
1315
- response = _14.sent();
1316
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DeleteTweetResponseFromJSON)(jsonValue); })];
1317
- }
1318
- });
1319
- });
1320
- };
1321
- /**
1322
- * delete Retweet
1323
- */
1324
- PostApi.prototype.postDeleteTweet = function (requestParameters, initOverrides) {
1325
- return __awaiter(this, void 0, void 0, function () {
1326
- var response;
1327
- return __generator(this, function (_a) {
1328
- switch (_a.label) {
1329
- case 0: return [4 /*yield*/, this.postDeleteTweetRaw(requestParameters, initOverrides)];
1330
- case 1:
1331
- response = _a.sent();
1332
- return [4 /*yield*/, response.value()];
1333
- case 2: return [2 /*return*/, _a.sent()];
1334
- }
1335
- });
1336
- });
1337
- };
1338
- /**
1339
- * favorite Tweet
1340
- */
1341
- PostApi.prototype.postFavoriteTweetRaw = function (requestParameters, initOverrides) {
1342
- return __awaiter(this, void 0, void 0, function () {
1343
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, response;
1344
- return __generator(this, function (_14) {
1345
- switch (_14.label) {
1346
- case 0:
1347
- if (requestParameters['pathQueryId'] == null) {
1348
- throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postFavoriteTweet().');
1349
- }
1350
- if (requestParameters['postFavoriteTweetRequest'] == null) {
1351
- throw new runtime.RequiredError('postFavoriteTweetRequest', 'Required parameter "postFavoriteTweetRequest" was null or undefined when calling postFavoriteTweet().');
1352
- }
1353
- queryParameters = {};
1354
- headerParameters = {};
1355
- headerParameters['Content-Type'] = 'application/json';
1356
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
1357
- _a = headerParameters;
1358
- _b = "Accept";
1359
- return [4 /*yield*/, this.configuration.apiKey("Accept")];
1360
- case 1:
1361
- _a[_b] = _14.sent(); // Accept authentication
1362
- _14.label = 2;
1363
- case 2:
1364
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
1365
- _c = headerParameters;
1366
- _d = "x-twitter-client-language";
1367
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
1368
- case 3:
1369
- _c[_d] = _14.sent(); // ClientLanguage authentication
1370
- _14.label = 4;
1371
- case 4:
1372
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
1373
- _e = headerParameters;
1374
- _f = "Priority";
1375
- return [4 /*yield*/, this.configuration.apiKey("Priority")];
1376
- case 5:
1377
- _e[_f] = _14.sent(); // Priority authentication
1378
- _14.label = 6;
1379
- case 6:
1380
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
1381
- _g = headerParameters;
1382
- _h = "Referer";
1383
- return [4 /*yield*/, this.configuration.apiKey("Referer")];
1384
- case 7:
1385
- _g[_h] = _14.sent(); // Referer authentication
1386
- _14.label = 8;
1387
- case 8:
1388
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
1389
- _j = headerParameters;
1390
- _k = "Sec-Fetch-Dest";
1391
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
1392
- case 9:
1393
- _j[_k] = _14.sent(); // SecFetchDest authentication
1394
- _14.label = 10;
1395
- case 10:
1396
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
1397
- _l = headerParameters;
1398
- _m = "Sec-Ch-Ua-Platform";
1399
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
1400
- case 11:
1401
- _l[_m] = _14.sent(); // SecChUaPlatform authentication
1402
- _14.label = 12;
1403
- case 12:
1404
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
1405
- _o = headerParameters;
1406
- _p = "Sec-Fetch-Mode";
1407
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
1408
- case 13:
1409
- _o[_p] = _14.sent(); // SecFetchMode authentication
1410
- _14.label = 14;
1411
- case 14:
1412
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
1413
- _q = headerParameters;
1414
- _r = "x-csrf-token";
1415
- return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
1416
- case 15:
1417
- _q[_r] = _14.sent(); // CsrfToken authentication
1418
- _14.label = 16;
1419
- case 16:
1420
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
1421
- _s = headerParameters;
1422
- _t = "x-client-uuid";
1423
- return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
1424
- case 17:
1425
- _s[_t] = _14.sent(); // ClientUuid authentication
1426
- _14.label = 18;
1427
- case 18:
1428
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
1429
- token = this.configuration.accessToken;
1430
- return [4 /*yield*/, token("BearerAuth", [])];
1431
- case 19:
1432
- tokenString = _14.sent();
1433
- if (tokenString) {
1434
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
1435
- }
1436
- _14.label = 20;
1437
- case 20:
1438
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
1439
- _u = headerParameters;
1440
- _v = "x-guest-token";
1441
- return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
1442
- case 21:
1443
- _u[_v] = _14.sent(); // GuestToken authentication
1444
- _14.label = 22;
1445
- case 22:
1446
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
1447
- _w = headerParameters;
1448
- _x = "Sec-Ch-Ua";
1449
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
1450
- case 23:
1451
- _w[_x] = _14.sent(); // SecChUa authentication
1452
- _14.label = 24;
1453
- case 24:
1454
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
1455
- _y = headerParameters;
1456
- _z = "x-client-transaction-id";
1457
- return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
1458
- case 25:
1459
- _y[_z] = _14.sent(); // ClientTransactionId authentication
1460
- _14.label = 26;
1461
- case 26:
1462
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
1463
- _0 = headerParameters;
1464
- _1 = "x-twitter-active-user";
1465
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
1466
- case 27:
1467
- _0[_1] = _14.sent(); // ActiveUser authentication
1468
- _14.label = 28;
1469
- case 28:
1470
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
1471
- _2 = headerParameters;
1472
- _3 = "user-agent";
1473
- return [4 /*yield*/, this.configuration.apiKey("user-agent")];
1474
- case 29:
1475
- _2[_3] = _14.sent(); // UserAgent authentication
1476
- _14.label = 30;
1477
- case 30:
1478
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
1479
- _4 = headerParameters;
1480
- _5 = "Accept-Language";
1481
- return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
1482
- case 31:
1483
- _4[_5] = _14.sent(); // AcceptLanguage authentication
1484
- _14.label = 32;
1485
- case 32:
1486
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
1487
- _6 = headerParameters;
1488
- _7 = "Sec-Fetch-Site";
1489
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
1490
- case 33:
1491
- _6[_7] = _14.sent(); // SecFetchSite authentication
1492
- _14.label = 34;
1493
- case 34:
1494
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
1495
- _8 = headerParameters;
1496
- _9 = "x-twitter-auth-type";
1497
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
1498
- case 35:
1499
- _8[_9] = _14.sent(); // AuthType authentication
1500
- _14.label = 36;
1501
- case 36:
1502
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
1503
- _10 = headerParameters;
1504
- _11 = "Sec-Ch-Ua-Mobile";
1505
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
1506
- case 37:
1507
- _10[_11] = _14.sent(); // SecChUaMobile authentication
1508
- _14.label = 38;
1509
- case 38:
1510
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 40];
1511
- _12 = headerParameters;
1512
- _13 = "Accept-Encoding";
1513
- return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
1514
- case 39:
1515
- _12[_13] = _14.sent(); // AcceptEncoding authentication
1516
- _14.label = 40;
1517
- case 40: return [4 /*yield*/, this.request({
1518
- path: "/graphql/{pathQueryId}/FavoriteTweet".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
1519
- method: 'POST',
1520
- headers: headerParameters,
1521
- query: queryParameters,
1522
- body: (0, index_1.PostFavoriteTweetRequestToJSON)(requestParameters['postFavoriteTweetRequest']),
1523
- }, initOverrides)];
1524
- case 41:
1525
- response = _14.sent();
1526
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.FavoriteTweetResponseFromJSON)(jsonValue); })];
1527
- }
1528
- });
1529
- });
1530
- };
1531
- /**
1532
- * favorite Tweet
1533
- */
1534
- PostApi.prototype.postFavoriteTweet = function (requestParameters, initOverrides) {
1535
- return __awaiter(this, void 0, void 0, function () {
1536
- var response;
1537
- return __generator(this, function (_a) {
1538
- switch (_a.label) {
1539
- case 0: return [4 /*yield*/, this.postFavoriteTweetRaw(requestParameters, initOverrides)];
1540
- case 1:
1541
- response = _a.sent();
1542
- return [4 /*yield*/, response.value()];
1543
- case 2: return [2 /*return*/, _a.sent()];
1544
- }
1545
- });
1546
- });
1547
- };
1548
- /**
1549
- * unfavorite Tweet
1550
- */
1551
- PostApi.prototype.postUnfavoriteTweetRaw = function (requestParameters, initOverrides) {
1552
- return __awaiter(this, void 0, void 0, function () {
1553
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, response;
1554
- return __generator(this, function (_14) {
1555
- switch (_14.label) {
1556
- case 0:
1557
- if (requestParameters['pathQueryId'] == null) {
1558
- throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postUnfavoriteTweet().');
1559
- }
1560
- if (requestParameters['postUnfavoriteTweetRequest'] == null) {
1561
- throw new runtime.RequiredError('postUnfavoriteTweetRequest', 'Required parameter "postUnfavoriteTweetRequest" was null or undefined when calling postUnfavoriteTweet().');
1562
- }
1563
- queryParameters = {};
1564
- headerParameters = {};
1565
- headerParameters['Content-Type'] = 'application/json';
1566
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
1567
- _a = headerParameters;
1568
- _b = "Accept";
1569
- return [4 /*yield*/, this.configuration.apiKey("Accept")];
1570
- case 1:
1571
- _a[_b] = _14.sent(); // Accept authentication
1572
- _14.label = 2;
1573
- case 2:
1574
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
1575
- _c = headerParameters;
1576
- _d = "x-twitter-client-language";
1577
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
1578
- case 3:
1579
- _c[_d] = _14.sent(); // ClientLanguage authentication
1580
- _14.label = 4;
1581
- case 4:
1582
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
1583
- _e = headerParameters;
1584
- _f = "Priority";
1585
- return [4 /*yield*/, this.configuration.apiKey("Priority")];
1586
- case 5:
1587
- _e[_f] = _14.sent(); // Priority authentication
1588
- _14.label = 6;
1589
- case 6:
1590
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
1591
- _g = headerParameters;
1592
- _h = "Referer";
1593
- return [4 /*yield*/, this.configuration.apiKey("Referer")];
1594
- case 7:
1595
- _g[_h] = _14.sent(); // Referer authentication
1596
- _14.label = 8;
1597
- case 8:
1598
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
1599
- _j = headerParameters;
1600
- _k = "Sec-Fetch-Dest";
1601
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
1602
- case 9:
1603
- _j[_k] = _14.sent(); // SecFetchDest authentication
1604
- _14.label = 10;
1605
- case 10:
1606
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
1607
- _l = headerParameters;
1608
- _m = "Sec-Ch-Ua-Platform";
1609
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
1610
- case 11:
1611
- _l[_m] = _14.sent(); // SecChUaPlatform authentication
1612
- _14.label = 12;
1613
- case 12:
1614
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
1615
- _o = headerParameters;
1616
- _p = "Sec-Fetch-Mode";
1617
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
1618
- case 13:
1619
- _o[_p] = _14.sent(); // SecFetchMode authentication
1620
- _14.label = 14;
1621
- case 14:
1622
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
1623
- _q = headerParameters;
1624
- _r = "x-csrf-token";
1625
- return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
1626
- case 15:
1627
- _q[_r] = _14.sent(); // CsrfToken authentication
1628
- _14.label = 16;
1629
- case 16:
1630
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
1631
- _s = headerParameters;
1632
- _t = "x-client-uuid";
1633
- return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
1634
- case 17:
1635
- _s[_t] = _14.sent(); // ClientUuid authentication
1636
- _14.label = 18;
1637
- case 18:
1638
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
1639
- token = this.configuration.accessToken;
1640
- return [4 /*yield*/, token("BearerAuth", [])];
1641
- case 19:
1642
- tokenString = _14.sent();
1643
- if (tokenString) {
1644
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
1645
- }
1646
- _14.label = 20;
1647
- case 20:
1648
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
1649
- _u = headerParameters;
1650
- _v = "x-guest-token";
1651
- return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
1652
- case 21:
1653
- _u[_v] = _14.sent(); // GuestToken authentication
1654
- _14.label = 22;
1655
- case 22:
1656
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
1657
- _w = headerParameters;
1658
- _x = "Sec-Ch-Ua";
1659
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
1660
- case 23:
1661
- _w[_x] = _14.sent(); // SecChUa authentication
1662
- _14.label = 24;
1663
- case 24:
1664
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
1665
- _y = headerParameters;
1666
- _z = "x-client-transaction-id";
1667
- return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
1668
- case 25:
1669
- _y[_z] = _14.sent(); // ClientTransactionId authentication
1670
- _14.label = 26;
1671
- case 26:
1672
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
1673
- _0 = headerParameters;
1674
- _1 = "x-twitter-active-user";
1675
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
1676
- case 27:
1677
- _0[_1] = _14.sent(); // ActiveUser authentication
1678
- _14.label = 28;
1679
- case 28:
1680
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
1681
- _2 = headerParameters;
1682
- _3 = "user-agent";
1683
- return [4 /*yield*/, this.configuration.apiKey("user-agent")];
1684
- case 29:
1685
- _2[_3] = _14.sent(); // UserAgent authentication
1686
- _14.label = 30;
1687
- case 30:
1688
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
1689
- _4 = headerParameters;
1690
- _5 = "Accept-Language";
1691
- return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
1692
- case 31:
1693
- _4[_5] = _14.sent(); // AcceptLanguage authentication
1694
- _14.label = 32;
1695
- case 32:
1696
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
1697
- _6 = headerParameters;
1698
- _7 = "Sec-Fetch-Site";
1699
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
1700
- case 33:
1701
- _6[_7] = _14.sent(); // SecFetchSite authentication
1702
- _14.label = 34;
1703
- case 34:
1704
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
1705
- _8 = headerParameters;
1706
- _9 = "x-twitter-auth-type";
1707
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
1708
- case 35:
1709
- _8[_9] = _14.sent(); // AuthType authentication
1710
- _14.label = 36;
1711
- case 36:
1712
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
1713
- _10 = headerParameters;
1714
- _11 = "Sec-Ch-Ua-Mobile";
1715
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
1716
- case 37:
1717
- _10[_11] = _14.sent(); // SecChUaMobile authentication
1718
- _14.label = 38;
1719
- case 38:
1720
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 40];
1721
- _12 = headerParameters;
1722
- _13 = "Accept-Encoding";
1723
- return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
1724
- case 39:
1725
- _12[_13] = _14.sent(); // AcceptEncoding authentication
1726
- _14.label = 40;
1727
- case 40: return [4 /*yield*/, this.request({
1728
- path: "/graphql/{pathQueryId}/UnfavoriteTweet".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
1729
- method: 'POST',
1730
- headers: headerParameters,
1731
- query: queryParameters,
1732
- body: (0, index_1.PostUnfavoriteTweetRequestToJSON)(requestParameters['postUnfavoriteTweetRequest']),
1733
- }, initOverrides)];
1734
- case 41:
1735
- response = _14.sent();
1736
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.UnfavoriteTweetResponseFromJSON)(jsonValue); })];
1737
- }
1738
- });
1739
- });
1740
- };
1741
- /**
1742
- * unfavorite Tweet
1743
- */
1744
- PostApi.prototype.postUnfavoriteTweet = function (requestParameters, initOverrides) {
1745
- return __awaiter(this, void 0, void 0, function () {
1746
- var response;
1747
- return __generator(this, function (_a) {
1748
- switch (_a.label) {
1749
- case 0: return [4 /*yield*/, this.postUnfavoriteTweetRaw(requestParameters, initOverrides)];
1750
- case 1:
1751
- response = _a.sent();
1752
- return [4 /*yield*/, response.value()];
1753
- case 2: return [2 /*return*/, _a.sent()];
1754
- }
1755
- });
1756
- });
1757
- };
1758
- return PostApi;
1759
- }(runtime.BaseAPI));
1760
- exports.PostApi = PostApi;
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Twitter OpenAPI
6
+ * Twitter OpenAPI(Swagger) specification
7
+ *
8
+ * The version of the OpenAPI document: 0.0.1
9
+ * Contact: yuki@yuki0311.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
31
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
32
+ return new (P || (P = Promise))(function (resolve, reject) {
33
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
34
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
35
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
36
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
37
+ });
38
+ };
39
+ var __generator = (this && this.__generator) || function (thisArg, body) {
40
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
41
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
42
+ function verb(n) { return function (v) { return step([n, v]); }; }
43
+ function step(op) {
44
+ if (f) throw new TypeError("Generator is already executing.");
45
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
46
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
47
+ if (y = 0, t) op = [op[0] & 2, t.value];
48
+ switch (op[0]) {
49
+ case 0: case 1: t = op; break;
50
+ case 4: _.label++; return { value: op[1], done: false };
51
+ case 5: _.label++; y = op[1]; op = [0]; continue;
52
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
53
+ default:
54
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
55
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
56
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
57
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
58
+ if (t[2]) _.ops.pop();
59
+ _.trys.pop(); continue;
60
+ }
61
+ op = body.call(thisArg, _);
62
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
63
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
64
+ }
65
+ };
66
+ Object.defineProperty(exports, "__esModule", { value: true });
67
+ exports.PostApi = void 0;
68
+ var runtime = require("../runtime");
69
+ var CreateBookmarkResponse_1 = require("../models/CreateBookmarkResponse");
70
+ var CreateRetweetResponse_1 = require("../models/CreateRetweetResponse");
71
+ var CreateTweetResponse_1 = require("../models/CreateTweetResponse");
72
+ var DeleteBookmarkResponse_1 = require("../models/DeleteBookmarkResponse");
73
+ var DeleteRetweetResponse_1 = require("../models/DeleteRetweetResponse");
74
+ var DeleteTweetResponse_1 = require("../models/DeleteTweetResponse");
75
+ var FavoriteTweetResponse_1 = require("../models/FavoriteTweetResponse");
76
+ var PostCreateBookmarkRequest_1 = require("../models/PostCreateBookmarkRequest");
77
+ var PostCreateRetweetRequest_1 = require("../models/PostCreateRetweetRequest");
78
+ var PostCreateTweetRequest_1 = require("../models/PostCreateTweetRequest");
79
+ var PostDeleteBookmarkRequest_1 = require("../models/PostDeleteBookmarkRequest");
80
+ var PostDeleteRetweetRequest_1 = require("../models/PostDeleteRetweetRequest");
81
+ var PostDeleteTweetRequest_1 = require("../models/PostDeleteTweetRequest");
82
+ var PostFavoriteTweetRequest_1 = require("../models/PostFavoriteTweetRequest");
83
+ var PostUnfavoriteTweetRequest_1 = require("../models/PostUnfavoriteTweetRequest");
84
+ var UnfavoriteTweetResponse_1 = require("../models/UnfavoriteTweetResponse");
85
+ /**
86
+ *
87
+ */
88
+ var PostApi = /** @class */ (function (_super) {
89
+ __extends(PostApi, _super);
90
+ function PostApi() {
91
+ return _super !== null && _super.apply(this, arguments) || this;
92
+ }
93
+ /**
94
+ * Creates request options for postCreateBookmark without sending the request
95
+ */
96
+ PostApi.prototype.postCreateBookmarkRequestOpts = function (requestParameters) {
97
+ return __awaiter(this, void 0, void 0, function () {
98
+ var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
99
+ return __generator(this, function (_14) {
100
+ switch (_14.label) {
101
+ case 0:
102
+ if (requestParameters['pathQueryId'] == null) {
103
+ throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postCreateBookmark().');
104
+ }
105
+ if (requestParameters['postCreateBookmarkRequest'] == null) {
106
+ throw new runtime.RequiredError('postCreateBookmarkRequest', 'Required parameter "postCreateBookmarkRequest" was null or undefined when calling postCreateBookmark().');
107
+ }
108
+ queryParameters = {};
109
+ headerParameters = {};
110
+ headerParameters['Content-Type'] = 'application/json';
111
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
112
+ _a = headerParameters;
113
+ _b = "Accept";
114
+ return [4 /*yield*/, this.configuration.apiKey("Accept")];
115
+ case 1:
116
+ _a[_b] = _14.sent(); // Accept authentication
117
+ _14.label = 2;
118
+ case 2:
119
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
120
+ _c = headerParameters;
121
+ _d = "x-twitter-client-language";
122
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
123
+ case 3:
124
+ _c[_d] = _14.sent(); // ClientLanguage authentication
125
+ _14.label = 4;
126
+ case 4:
127
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
128
+ _e = headerParameters;
129
+ _f = "Priority";
130
+ return [4 /*yield*/, this.configuration.apiKey("Priority")];
131
+ case 5:
132
+ _e[_f] = _14.sent(); // Priority authentication
133
+ _14.label = 6;
134
+ case 6:
135
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
136
+ _g = headerParameters;
137
+ _h = "Referer";
138
+ return [4 /*yield*/, this.configuration.apiKey("Referer")];
139
+ case 7:
140
+ _g[_h] = _14.sent(); // Referer authentication
141
+ _14.label = 8;
142
+ case 8:
143
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
144
+ _j = headerParameters;
145
+ _k = "Sec-Fetch-Dest";
146
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
147
+ case 9:
148
+ _j[_k] = _14.sent(); // SecFetchDest authentication
149
+ _14.label = 10;
150
+ case 10:
151
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
152
+ _l = headerParameters;
153
+ _m = "Sec-Ch-Ua-Platform";
154
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
155
+ case 11:
156
+ _l[_m] = _14.sent(); // SecChUaPlatform authentication
157
+ _14.label = 12;
158
+ case 12:
159
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
160
+ _o = headerParameters;
161
+ _p = "Sec-Fetch-Mode";
162
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
163
+ case 13:
164
+ _o[_p] = _14.sent(); // SecFetchMode authentication
165
+ _14.label = 14;
166
+ case 14:
167
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
168
+ _q = headerParameters;
169
+ _r = "x-csrf-token";
170
+ return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
171
+ case 15:
172
+ _q[_r] = _14.sent(); // CsrfToken authentication
173
+ _14.label = 16;
174
+ case 16:
175
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
176
+ _s = headerParameters;
177
+ _t = "x-client-uuid";
178
+ return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
179
+ case 17:
180
+ _s[_t] = _14.sent(); // ClientUuid authentication
181
+ _14.label = 18;
182
+ case 18:
183
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
184
+ token = this.configuration.accessToken;
185
+ return [4 /*yield*/, token("BearerAuth", [])];
186
+ case 19:
187
+ tokenString = _14.sent();
188
+ if (tokenString) {
189
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
190
+ }
191
+ _14.label = 20;
192
+ case 20:
193
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
194
+ _u = headerParameters;
195
+ _v = "x-guest-token";
196
+ return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
197
+ case 21:
198
+ _u[_v] = _14.sent(); // GuestToken authentication
199
+ _14.label = 22;
200
+ case 22:
201
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
202
+ _w = headerParameters;
203
+ _x = "Sec-Ch-Ua";
204
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
205
+ case 23:
206
+ _w[_x] = _14.sent(); // SecChUa authentication
207
+ _14.label = 24;
208
+ case 24:
209
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
210
+ _y = headerParameters;
211
+ _z = "x-client-transaction-id";
212
+ return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
213
+ case 25:
214
+ _y[_z] = _14.sent(); // ClientTransactionId authentication
215
+ _14.label = 26;
216
+ case 26:
217
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
218
+ _0 = headerParameters;
219
+ _1 = "x-twitter-active-user";
220
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
221
+ case 27:
222
+ _0[_1] = _14.sent(); // ActiveUser authentication
223
+ _14.label = 28;
224
+ case 28:
225
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
226
+ _2 = headerParameters;
227
+ _3 = "user-agent";
228
+ return [4 /*yield*/, this.configuration.apiKey("user-agent")];
229
+ case 29:
230
+ _2[_3] = _14.sent(); // UserAgent authentication
231
+ _14.label = 30;
232
+ case 30:
233
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
234
+ _4 = headerParameters;
235
+ _5 = "Accept-Language";
236
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
237
+ case 31:
238
+ _4[_5] = _14.sent(); // AcceptLanguage authentication
239
+ _14.label = 32;
240
+ case 32:
241
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
242
+ _6 = headerParameters;
243
+ _7 = "Sec-Fetch-Site";
244
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
245
+ case 33:
246
+ _6[_7] = _14.sent(); // SecFetchSite authentication
247
+ _14.label = 34;
248
+ case 34:
249
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
250
+ _8 = headerParameters;
251
+ _9 = "x-twitter-auth-type";
252
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
253
+ case 35:
254
+ _8[_9] = _14.sent(); // AuthType authentication
255
+ _14.label = 36;
256
+ case 36:
257
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
258
+ _10 = headerParameters;
259
+ _11 = "Sec-Ch-Ua-Mobile";
260
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
261
+ case 37:
262
+ _10[_11] = _14.sent(); // SecChUaMobile authentication
263
+ _14.label = 38;
264
+ case 38:
265
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 40];
266
+ _12 = headerParameters;
267
+ _13 = "Accept-Encoding";
268
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
269
+ case 39:
270
+ _12[_13] = _14.sent(); // AcceptEncoding authentication
271
+ _14.label = 40;
272
+ case 40:
273
+ urlPath = "/graphql/{pathQueryId}/CreateBookmark";
274
+ urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
275
+ return [2 /*return*/, {
276
+ path: urlPath,
277
+ method: 'POST',
278
+ headers: headerParameters,
279
+ query: queryParameters,
280
+ body: (0, PostCreateBookmarkRequest_1.PostCreateBookmarkRequestToJSON)(requestParameters['postCreateBookmarkRequest']),
281
+ }];
282
+ }
283
+ });
284
+ });
285
+ };
286
+ /**
287
+ * create Bookmark
288
+ */
289
+ PostApi.prototype.postCreateBookmarkRaw = function (requestParameters, initOverrides) {
290
+ return __awaiter(this, void 0, void 0, function () {
291
+ var requestOptions, response;
292
+ return __generator(this, function (_a) {
293
+ switch (_a.label) {
294
+ case 0: return [4 /*yield*/, this.postCreateBookmarkRequestOpts(requestParameters)];
295
+ case 1:
296
+ requestOptions = _a.sent();
297
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
298
+ case 2:
299
+ response = _a.sent();
300
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, CreateBookmarkResponse_1.CreateBookmarkResponseFromJSON)(jsonValue); })];
301
+ }
302
+ });
303
+ });
304
+ };
305
+ /**
306
+ * create Bookmark
307
+ */
308
+ PostApi.prototype.postCreateBookmark = function (requestParameters, initOverrides) {
309
+ return __awaiter(this, void 0, void 0, function () {
310
+ var response;
311
+ return __generator(this, function (_a) {
312
+ switch (_a.label) {
313
+ case 0: return [4 /*yield*/, this.postCreateBookmarkRaw(requestParameters, initOverrides)];
314
+ case 1:
315
+ response = _a.sent();
316
+ return [4 /*yield*/, response.value()];
317
+ case 2: return [2 /*return*/, _a.sent()];
318
+ }
319
+ });
320
+ });
321
+ };
322
+ /**
323
+ * Creates request options for postCreateRetweet without sending the request
324
+ */
325
+ PostApi.prototype.postCreateRetweetRequestOpts = function (requestParameters) {
326
+ return __awaiter(this, void 0, void 0, function () {
327
+ var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
328
+ return __generator(this, function (_14) {
329
+ switch (_14.label) {
330
+ case 0:
331
+ if (requestParameters['pathQueryId'] == null) {
332
+ throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postCreateRetweet().');
333
+ }
334
+ if (requestParameters['postCreateRetweetRequest'] == null) {
335
+ throw new runtime.RequiredError('postCreateRetweetRequest', 'Required parameter "postCreateRetweetRequest" was null or undefined when calling postCreateRetweet().');
336
+ }
337
+ queryParameters = {};
338
+ headerParameters = {};
339
+ headerParameters['Content-Type'] = 'application/json';
340
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
341
+ _a = headerParameters;
342
+ _b = "Accept";
343
+ return [4 /*yield*/, this.configuration.apiKey("Accept")];
344
+ case 1:
345
+ _a[_b] = _14.sent(); // Accept authentication
346
+ _14.label = 2;
347
+ case 2:
348
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
349
+ _c = headerParameters;
350
+ _d = "x-twitter-client-language";
351
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
352
+ case 3:
353
+ _c[_d] = _14.sent(); // ClientLanguage authentication
354
+ _14.label = 4;
355
+ case 4:
356
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
357
+ _e = headerParameters;
358
+ _f = "Priority";
359
+ return [4 /*yield*/, this.configuration.apiKey("Priority")];
360
+ case 5:
361
+ _e[_f] = _14.sent(); // Priority authentication
362
+ _14.label = 6;
363
+ case 6:
364
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
365
+ _g = headerParameters;
366
+ _h = "Referer";
367
+ return [4 /*yield*/, this.configuration.apiKey("Referer")];
368
+ case 7:
369
+ _g[_h] = _14.sent(); // Referer authentication
370
+ _14.label = 8;
371
+ case 8:
372
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
373
+ _j = headerParameters;
374
+ _k = "Sec-Fetch-Dest";
375
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
376
+ case 9:
377
+ _j[_k] = _14.sent(); // SecFetchDest authentication
378
+ _14.label = 10;
379
+ case 10:
380
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
381
+ _l = headerParameters;
382
+ _m = "Sec-Ch-Ua-Platform";
383
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
384
+ case 11:
385
+ _l[_m] = _14.sent(); // SecChUaPlatform authentication
386
+ _14.label = 12;
387
+ case 12:
388
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
389
+ _o = headerParameters;
390
+ _p = "Sec-Fetch-Mode";
391
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
392
+ case 13:
393
+ _o[_p] = _14.sent(); // SecFetchMode authentication
394
+ _14.label = 14;
395
+ case 14:
396
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
397
+ _q = headerParameters;
398
+ _r = "x-csrf-token";
399
+ return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
400
+ case 15:
401
+ _q[_r] = _14.sent(); // CsrfToken authentication
402
+ _14.label = 16;
403
+ case 16:
404
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
405
+ _s = headerParameters;
406
+ _t = "x-client-uuid";
407
+ return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
408
+ case 17:
409
+ _s[_t] = _14.sent(); // ClientUuid authentication
410
+ _14.label = 18;
411
+ case 18:
412
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
413
+ token = this.configuration.accessToken;
414
+ return [4 /*yield*/, token("BearerAuth", [])];
415
+ case 19:
416
+ tokenString = _14.sent();
417
+ if (tokenString) {
418
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
419
+ }
420
+ _14.label = 20;
421
+ case 20:
422
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
423
+ _u = headerParameters;
424
+ _v = "x-guest-token";
425
+ return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
426
+ case 21:
427
+ _u[_v] = _14.sent(); // GuestToken authentication
428
+ _14.label = 22;
429
+ case 22:
430
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
431
+ _w = headerParameters;
432
+ _x = "Sec-Ch-Ua";
433
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
434
+ case 23:
435
+ _w[_x] = _14.sent(); // SecChUa authentication
436
+ _14.label = 24;
437
+ case 24:
438
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
439
+ _y = headerParameters;
440
+ _z = "x-client-transaction-id";
441
+ return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
442
+ case 25:
443
+ _y[_z] = _14.sent(); // ClientTransactionId authentication
444
+ _14.label = 26;
445
+ case 26:
446
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
447
+ _0 = headerParameters;
448
+ _1 = "x-twitter-active-user";
449
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
450
+ case 27:
451
+ _0[_1] = _14.sent(); // ActiveUser authentication
452
+ _14.label = 28;
453
+ case 28:
454
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
455
+ _2 = headerParameters;
456
+ _3 = "user-agent";
457
+ return [4 /*yield*/, this.configuration.apiKey("user-agent")];
458
+ case 29:
459
+ _2[_3] = _14.sent(); // UserAgent authentication
460
+ _14.label = 30;
461
+ case 30:
462
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
463
+ _4 = headerParameters;
464
+ _5 = "Accept-Language";
465
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
466
+ case 31:
467
+ _4[_5] = _14.sent(); // AcceptLanguage authentication
468
+ _14.label = 32;
469
+ case 32:
470
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
471
+ _6 = headerParameters;
472
+ _7 = "Sec-Fetch-Site";
473
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
474
+ case 33:
475
+ _6[_7] = _14.sent(); // SecFetchSite authentication
476
+ _14.label = 34;
477
+ case 34:
478
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
479
+ _8 = headerParameters;
480
+ _9 = "x-twitter-auth-type";
481
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
482
+ case 35:
483
+ _8[_9] = _14.sent(); // AuthType authentication
484
+ _14.label = 36;
485
+ case 36:
486
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
487
+ _10 = headerParameters;
488
+ _11 = "Sec-Ch-Ua-Mobile";
489
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
490
+ case 37:
491
+ _10[_11] = _14.sent(); // SecChUaMobile authentication
492
+ _14.label = 38;
493
+ case 38:
494
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 40];
495
+ _12 = headerParameters;
496
+ _13 = "Accept-Encoding";
497
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
498
+ case 39:
499
+ _12[_13] = _14.sent(); // AcceptEncoding authentication
500
+ _14.label = 40;
501
+ case 40:
502
+ urlPath = "/graphql/{pathQueryId}/CreateRetweet";
503
+ urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
504
+ return [2 /*return*/, {
505
+ path: urlPath,
506
+ method: 'POST',
507
+ headers: headerParameters,
508
+ query: queryParameters,
509
+ body: (0, PostCreateRetweetRequest_1.PostCreateRetweetRequestToJSON)(requestParameters['postCreateRetweetRequest']),
510
+ }];
511
+ }
512
+ });
513
+ });
514
+ };
515
+ /**
516
+ * create Retweet
517
+ */
518
+ PostApi.prototype.postCreateRetweetRaw = function (requestParameters, initOverrides) {
519
+ return __awaiter(this, void 0, void 0, function () {
520
+ var requestOptions, response;
521
+ return __generator(this, function (_a) {
522
+ switch (_a.label) {
523
+ case 0: return [4 /*yield*/, this.postCreateRetweetRequestOpts(requestParameters)];
524
+ case 1:
525
+ requestOptions = _a.sent();
526
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
527
+ case 2:
528
+ response = _a.sent();
529
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, CreateRetweetResponse_1.CreateRetweetResponseFromJSON)(jsonValue); })];
530
+ }
531
+ });
532
+ });
533
+ };
534
+ /**
535
+ * create Retweet
536
+ */
537
+ PostApi.prototype.postCreateRetweet = function (requestParameters, initOverrides) {
538
+ return __awaiter(this, void 0, void 0, function () {
539
+ var response;
540
+ return __generator(this, function (_a) {
541
+ switch (_a.label) {
542
+ case 0: return [4 /*yield*/, this.postCreateRetweetRaw(requestParameters, initOverrides)];
543
+ case 1:
544
+ response = _a.sent();
545
+ return [4 /*yield*/, response.value()];
546
+ case 2: return [2 /*return*/, _a.sent()];
547
+ }
548
+ });
549
+ });
550
+ };
551
+ /**
552
+ * Creates request options for postCreateTweet without sending the request
553
+ */
554
+ PostApi.prototype.postCreateTweetRequestOpts = function (requestParameters) {
555
+ return __awaiter(this, void 0, void 0, function () {
556
+ var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
557
+ return __generator(this, function (_14) {
558
+ switch (_14.label) {
559
+ case 0:
560
+ if (requestParameters['pathQueryId'] == null) {
561
+ throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postCreateTweet().');
562
+ }
563
+ if (requestParameters['postCreateTweetRequest'] == null) {
564
+ throw new runtime.RequiredError('postCreateTweetRequest', 'Required parameter "postCreateTweetRequest" was null or undefined when calling postCreateTweet().');
565
+ }
566
+ queryParameters = {};
567
+ headerParameters = {};
568
+ headerParameters['Content-Type'] = 'application/json';
569
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
570
+ _a = headerParameters;
571
+ _b = "Accept";
572
+ return [4 /*yield*/, this.configuration.apiKey("Accept")];
573
+ case 1:
574
+ _a[_b] = _14.sent(); // Accept authentication
575
+ _14.label = 2;
576
+ case 2:
577
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
578
+ _c = headerParameters;
579
+ _d = "x-twitter-client-language";
580
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
581
+ case 3:
582
+ _c[_d] = _14.sent(); // ClientLanguage authentication
583
+ _14.label = 4;
584
+ case 4:
585
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
586
+ _e = headerParameters;
587
+ _f = "Priority";
588
+ return [4 /*yield*/, this.configuration.apiKey("Priority")];
589
+ case 5:
590
+ _e[_f] = _14.sent(); // Priority authentication
591
+ _14.label = 6;
592
+ case 6:
593
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
594
+ _g = headerParameters;
595
+ _h = "Referer";
596
+ return [4 /*yield*/, this.configuration.apiKey("Referer")];
597
+ case 7:
598
+ _g[_h] = _14.sent(); // Referer authentication
599
+ _14.label = 8;
600
+ case 8:
601
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
602
+ _j = headerParameters;
603
+ _k = "Sec-Fetch-Dest";
604
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
605
+ case 9:
606
+ _j[_k] = _14.sent(); // SecFetchDest authentication
607
+ _14.label = 10;
608
+ case 10:
609
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
610
+ _l = headerParameters;
611
+ _m = "Sec-Ch-Ua-Platform";
612
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
613
+ case 11:
614
+ _l[_m] = _14.sent(); // SecChUaPlatform authentication
615
+ _14.label = 12;
616
+ case 12:
617
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
618
+ _o = headerParameters;
619
+ _p = "Sec-Fetch-Mode";
620
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
621
+ case 13:
622
+ _o[_p] = _14.sent(); // SecFetchMode authentication
623
+ _14.label = 14;
624
+ case 14:
625
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
626
+ _q = headerParameters;
627
+ _r = "x-csrf-token";
628
+ return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
629
+ case 15:
630
+ _q[_r] = _14.sent(); // CsrfToken authentication
631
+ _14.label = 16;
632
+ case 16:
633
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
634
+ _s = headerParameters;
635
+ _t = "x-client-uuid";
636
+ return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
637
+ case 17:
638
+ _s[_t] = _14.sent(); // ClientUuid authentication
639
+ _14.label = 18;
640
+ case 18:
641
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
642
+ token = this.configuration.accessToken;
643
+ return [4 /*yield*/, token("BearerAuth", [])];
644
+ case 19:
645
+ tokenString = _14.sent();
646
+ if (tokenString) {
647
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
648
+ }
649
+ _14.label = 20;
650
+ case 20:
651
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
652
+ _u = headerParameters;
653
+ _v = "x-guest-token";
654
+ return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
655
+ case 21:
656
+ _u[_v] = _14.sent(); // GuestToken authentication
657
+ _14.label = 22;
658
+ case 22:
659
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
660
+ _w = headerParameters;
661
+ _x = "Sec-Ch-Ua";
662
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
663
+ case 23:
664
+ _w[_x] = _14.sent(); // SecChUa authentication
665
+ _14.label = 24;
666
+ case 24:
667
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
668
+ _y = headerParameters;
669
+ _z = "x-client-transaction-id";
670
+ return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
671
+ case 25:
672
+ _y[_z] = _14.sent(); // ClientTransactionId authentication
673
+ _14.label = 26;
674
+ case 26:
675
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
676
+ _0 = headerParameters;
677
+ _1 = "x-twitter-active-user";
678
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
679
+ case 27:
680
+ _0[_1] = _14.sent(); // ActiveUser authentication
681
+ _14.label = 28;
682
+ case 28:
683
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
684
+ _2 = headerParameters;
685
+ _3 = "user-agent";
686
+ return [4 /*yield*/, this.configuration.apiKey("user-agent")];
687
+ case 29:
688
+ _2[_3] = _14.sent(); // UserAgent authentication
689
+ _14.label = 30;
690
+ case 30:
691
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
692
+ _4 = headerParameters;
693
+ _5 = "Accept-Language";
694
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
695
+ case 31:
696
+ _4[_5] = _14.sent(); // AcceptLanguage authentication
697
+ _14.label = 32;
698
+ case 32:
699
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
700
+ _6 = headerParameters;
701
+ _7 = "Sec-Fetch-Site";
702
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
703
+ case 33:
704
+ _6[_7] = _14.sent(); // SecFetchSite authentication
705
+ _14.label = 34;
706
+ case 34:
707
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
708
+ _8 = headerParameters;
709
+ _9 = "x-twitter-auth-type";
710
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
711
+ case 35:
712
+ _8[_9] = _14.sent(); // AuthType authentication
713
+ _14.label = 36;
714
+ case 36:
715
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
716
+ _10 = headerParameters;
717
+ _11 = "Sec-Ch-Ua-Mobile";
718
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
719
+ case 37:
720
+ _10[_11] = _14.sent(); // SecChUaMobile authentication
721
+ _14.label = 38;
722
+ case 38:
723
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 40];
724
+ _12 = headerParameters;
725
+ _13 = "Accept-Encoding";
726
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
727
+ case 39:
728
+ _12[_13] = _14.sent(); // AcceptEncoding authentication
729
+ _14.label = 40;
730
+ case 40:
731
+ urlPath = "/graphql/{pathQueryId}/CreateTweet";
732
+ urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
733
+ return [2 /*return*/, {
734
+ path: urlPath,
735
+ method: 'POST',
736
+ headers: headerParameters,
737
+ query: queryParameters,
738
+ body: (0, PostCreateTweetRequest_1.PostCreateTweetRequestToJSON)(requestParameters['postCreateTweetRequest']),
739
+ }];
740
+ }
741
+ });
742
+ });
743
+ };
744
+ /**
745
+ * create Tweet
746
+ */
747
+ PostApi.prototype.postCreateTweetRaw = function (requestParameters, initOverrides) {
748
+ return __awaiter(this, void 0, void 0, function () {
749
+ var requestOptions, response;
750
+ return __generator(this, function (_a) {
751
+ switch (_a.label) {
752
+ case 0: return [4 /*yield*/, this.postCreateTweetRequestOpts(requestParameters)];
753
+ case 1:
754
+ requestOptions = _a.sent();
755
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
756
+ case 2:
757
+ response = _a.sent();
758
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, CreateTweetResponse_1.CreateTweetResponseFromJSON)(jsonValue); })];
759
+ }
760
+ });
761
+ });
762
+ };
763
+ /**
764
+ * create Tweet
765
+ */
766
+ PostApi.prototype.postCreateTweet = function (requestParameters, initOverrides) {
767
+ return __awaiter(this, void 0, void 0, function () {
768
+ var response;
769
+ return __generator(this, function (_a) {
770
+ switch (_a.label) {
771
+ case 0: return [4 /*yield*/, this.postCreateTweetRaw(requestParameters, initOverrides)];
772
+ case 1:
773
+ response = _a.sent();
774
+ return [4 /*yield*/, response.value()];
775
+ case 2: return [2 /*return*/, _a.sent()];
776
+ }
777
+ });
778
+ });
779
+ };
780
+ /**
781
+ * Creates request options for postDeleteBookmark without sending the request
782
+ */
783
+ PostApi.prototype.postDeleteBookmarkRequestOpts = function (requestParameters) {
784
+ return __awaiter(this, void 0, void 0, function () {
785
+ var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
786
+ return __generator(this, function (_14) {
787
+ switch (_14.label) {
788
+ case 0:
789
+ if (requestParameters['pathQueryId'] == null) {
790
+ throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postDeleteBookmark().');
791
+ }
792
+ if (requestParameters['postDeleteBookmarkRequest'] == null) {
793
+ throw new runtime.RequiredError('postDeleteBookmarkRequest', 'Required parameter "postDeleteBookmarkRequest" was null or undefined when calling postDeleteBookmark().');
794
+ }
795
+ queryParameters = {};
796
+ headerParameters = {};
797
+ headerParameters['Content-Type'] = 'application/json';
798
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
799
+ _a = headerParameters;
800
+ _b = "Accept";
801
+ return [4 /*yield*/, this.configuration.apiKey("Accept")];
802
+ case 1:
803
+ _a[_b] = _14.sent(); // Accept authentication
804
+ _14.label = 2;
805
+ case 2:
806
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
807
+ _c = headerParameters;
808
+ _d = "x-twitter-client-language";
809
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
810
+ case 3:
811
+ _c[_d] = _14.sent(); // ClientLanguage authentication
812
+ _14.label = 4;
813
+ case 4:
814
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
815
+ _e = headerParameters;
816
+ _f = "Priority";
817
+ return [4 /*yield*/, this.configuration.apiKey("Priority")];
818
+ case 5:
819
+ _e[_f] = _14.sent(); // Priority authentication
820
+ _14.label = 6;
821
+ case 6:
822
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
823
+ _g = headerParameters;
824
+ _h = "Referer";
825
+ return [4 /*yield*/, this.configuration.apiKey("Referer")];
826
+ case 7:
827
+ _g[_h] = _14.sent(); // Referer authentication
828
+ _14.label = 8;
829
+ case 8:
830
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
831
+ _j = headerParameters;
832
+ _k = "Sec-Fetch-Dest";
833
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
834
+ case 9:
835
+ _j[_k] = _14.sent(); // SecFetchDest authentication
836
+ _14.label = 10;
837
+ case 10:
838
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
839
+ _l = headerParameters;
840
+ _m = "Sec-Ch-Ua-Platform";
841
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
842
+ case 11:
843
+ _l[_m] = _14.sent(); // SecChUaPlatform authentication
844
+ _14.label = 12;
845
+ case 12:
846
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
847
+ _o = headerParameters;
848
+ _p = "Sec-Fetch-Mode";
849
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
850
+ case 13:
851
+ _o[_p] = _14.sent(); // SecFetchMode authentication
852
+ _14.label = 14;
853
+ case 14:
854
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
855
+ _q = headerParameters;
856
+ _r = "x-csrf-token";
857
+ return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
858
+ case 15:
859
+ _q[_r] = _14.sent(); // CsrfToken authentication
860
+ _14.label = 16;
861
+ case 16:
862
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
863
+ _s = headerParameters;
864
+ _t = "x-client-uuid";
865
+ return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
866
+ case 17:
867
+ _s[_t] = _14.sent(); // ClientUuid authentication
868
+ _14.label = 18;
869
+ case 18:
870
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
871
+ token = this.configuration.accessToken;
872
+ return [4 /*yield*/, token("BearerAuth", [])];
873
+ case 19:
874
+ tokenString = _14.sent();
875
+ if (tokenString) {
876
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
877
+ }
878
+ _14.label = 20;
879
+ case 20:
880
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
881
+ _u = headerParameters;
882
+ _v = "x-guest-token";
883
+ return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
884
+ case 21:
885
+ _u[_v] = _14.sent(); // GuestToken authentication
886
+ _14.label = 22;
887
+ case 22:
888
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
889
+ _w = headerParameters;
890
+ _x = "Sec-Ch-Ua";
891
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
892
+ case 23:
893
+ _w[_x] = _14.sent(); // SecChUa authentication
894
+ _14.label = 24;
895
+ case 24:
896
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
897
+ _y = headerParameters;
898
+ _z = "x-client-transaction-id";
899
+ return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
900
+ case 25:
901
+ _y[_z] = _14.sent(); // ClientTransactionId authentication
902
+ _14.label = 26;
903
+ case 26:
904
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
905
+ _0 = headerParameters;
906
+ _1 = "x-twitter-active-user";
907
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
908
+ case 27:
909
+ _0[_1] = _14.sent(); // ActiveUser authentication
910
+ _14.label = 28;
911
+ case 28:
912
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
913
+ _2 = headerParameters;
914
+ _3 = "user-agent";
915
+ return [4 /*yield*/, this.configuration.apiKey("user-agent")];
916
+ case 29:
917
+ _2[_3] = _14.sent(); // UserAgent authentication
918
+ _14.label = 30;
919
+ case 30:
920
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
921
+ _4 = headerParameters;
922
+ _5 = "Accept-Language";
923
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
924
+ case 31:
925
+ _4[_5] = _14.sent(); // AcceptLanguage authentication
926
+ _14.label = 32;
927
+ case 32:
928
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
929
+ _6 = headerParameters;
930
+ _7 = "Sec-Fetch-Site";
931
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
932
+ case 33:
933
+ _6[_7] = _14.sent(); // SecFetchSite authentication
934
+ _14.label = 34;
935
+ case 34:
936
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
937
+ _8 = headerParameters;
938
+ _9 = "x-twitter-auth-type";
939
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
940
+ case 35:
941
+ _8[_9] = _14.sent(); // AuthType authentication
942
+ _14.label = 36;
943
+ case 36:
944
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
945
+ _10 = headerParameters;
946
+ _11 = "Sec-Ch-Ua-Mobile";
947
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
948
+ case 37:
949
+ _10[_11] = _14.sent(); // SecChUaMobile authentication
950
+ _14.label = 38;
951
+ case 38:
952
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 40];
953
+ _12 = headerParameters;
954
+ _13 = "Accept-Encoding";
955
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
956
+ case 39:
957
+ _12[_13] = _14.sent(); // AcceptEncoding authentication
958
+ _14.label = 40;
959
+ case 40:
960
+ urlPath = "/graphql/{pathQueryId}/DeleteBookmark";
961
+ urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
962
+ return [2 /*return*/, {
963
+ path: urlPath,
964
+ method: 'POST',
965
+ headers: headerParameters,
966
+ query: queryParameters,
967
+ body: (0, PostDeleteBookmarkRequest_1.PostDeleteBookmarkRequestToJSON)(requestParameters['postDeleteBookmarkRequest']),
968
+ }];
969
+ }
970
+ });
971
+ });
972
+ };
973
+ /**
974
+ * delete Bookmark
975
+ */
976
+ PostApi.prototype.postDeleteBookmarkRaw = function (requestParameters, initOverrides) {
977
+ return __awaiter(this, void 0, void 0, function () {
978
+ var requestOptions, response;
979
+ return __generator(this, function (_a) {
980
+ switch (_a.label) {
981
+ case 0: return [4 /*yield*/, this.postDeleteBookmarkRequestOpts(requestParameters)];
982
+ case 1:
983
+ requestOptions = _a.sent();
984
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
985
+ case 2:
986
+ response = _a.sent();
987
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, DeleteBookmarkResponse_1.DeleteBookmarkResponseFromJSON)(jsonValue); })];
988
+ }
989
+ });
990
+ });
991
+ };
992
+ /**
993
+ * delete Bookmark
994
+ */
995
+ PostApi.prototype.postDeleteBookmark = function (requestParameters, initOverrides) {
996
+ return __awaiter(this, void 0, void 0, function () {
997
+ var response;
998
+ return __generator(this, function (_a) {
999
+ switch (_a.label) {
1000
+ case 0: return [4 /*yield*/, this.postDeleteBookmarkRaw(requestParameters, initOverrides)];
1001
+ case 1:
1002
+ response = _a.sent();
1003
+ return [4 /*yield*/, response.value()];
1004
+ case 2: return [2 /*return*/, _a.sent()];
1005
+ }
1006
+ });
1007
+ });
1008
+ };
1009
+ /**
1010
+ * Creates request options for postDeleteRetweet without sending the request
1011
+ */
1012
+ PostApi.prototype.postDeleteRetweetRequestOpts = function (requestParameters) {
1013
+ return __awaiter(this, void 0, void 0, function () {
1014
+ var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
1015
+ return __generator(this, function (_14) {
1016
+ switch (_14.label) {
1017
+ case 0:
1018
+ if (requestParameters['pathQueryId'] == null) {
1019
+ throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postDeleteRetweet().');
1020
+ }
1021
+ if (requestParameters['postDeleteRetweetRequest'] == null) {
1022
+ throw new runtime.RequiredError('postDeleteRetweetRequest', 'Required parameter "postDeleteRetweetRequest" was null or undefined when calling postDeleteRetweet().');
1023
+ }
1024
+ queryParameters = {};
1025
+ headerParameters = {};
1026
+ headerParameters['Content-Type'] = 'application/json';
1027
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
1028
+ _a = headerParameters;
1029
+ _b = "Accept";
1030
+ return [4 /*yield*/, this.configuration.apiKey("Accept")];
1031
+ case 1:
1032
+ _a[_b] = _14.sent(); // Accept authentication
1033
+ _14.label = 2;
1034
+ case 2:
1035
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
1036
+ _c = headerParameters;
1037
+ _d = "x-twitter-client-language";
1038
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
1039
+ case 3:
1040
+ _c[_d] = _14.sent(); // ClientLanguage authentication
1041
+ _14.label = 4;
1042
+ case 4:
1043
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
1044
+ _e = headerParameters;
1045
+ _f = "Priority";
1046
+ return [4 /*yield*/, this.configuration.apiKey("Priority")];
1047
+ case 5:
1048
+ _e[_f] = _14.sent(); // Priority authentication
1049
+ _14.label = 6;
1050
+ case 6:
1051
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
1052
+ _g = headerParameters;
1053
+ _h = "Referer";
1054
+ return [4 /*yield*/, this.configuration.apiKey("Referer")];
1055
+ case 7:
1056
+ _g[_h] = _14.sent(); // Referer authentication
1057
+ _14.label = 8;
1058
+ case 8:
1059
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
1060
+ _j = headerParameters;
1061
+ _k = "Sec-Fetch-Dest";
1062
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
1063
+ case 9:
1064
+ _j[_k] = _14.sent(); // SecFetchDest authentication
1065
+ _14.label = 10;
1066
+ case 10:
1067
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
1068
+ _l = headerParameters;
1069
+ _m = "Sec-Ch-Ua-Platform";
1070
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
1071
+ case 11:
1072
+ _l[_m] = _14.sent(); // SecChUaPlatform authentication
1073
+ _14.label = 12;
1074
+ case 12:
1075
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
1076
+ _o = headerParameters;
1077
+ _p = "Sec-Fetch-Mode";
1078
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
1079
+ case 13:
1080
+ _o[_p] = _14.sent(); // SecFetchMode authentication
1081
+ _14.label = 14;
1082
+ case 14:
1083
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
1084
+ _q = headerParameters;
1085
+ _r = "x-csrf-token";
1086
+ return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
1087
+ case 15:
1088
+ _q[_r] = _14.sent(); // CsrfToken authentication
1089
+ _14.label = 16;
1090
+ case 16:
1091
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
1092
+ _s = headerParameters;
1093
+ _t = "x-client-uuid";
1094
+ return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
1095
+ case 17:
1096
+ _s[_t] = _14.sent(); // ClientUuid authentication
1097
+ _14.label = 18;
1098
+ case 18:
1099
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
1100
+ token = this.configuration.accessToken;
1101
+ return [4 /*yield*/, token("BearerAuth", [])];
1102
+ case 19:
1103
+ tokenString = _14.sent();
1104
+ if (tokenString) {
1105
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
1106
+ }
1107
+ _14.label = 20;
1108
+ case 20:
1109
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
1110
+ _u = headerParameters;
1111
+ _v = "x-guest-token";
1112
+ return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
1113
+ case 21:
1114
+ _u[_v] = _14.sent(); // GuestToken authentication
1115
+ _14.label = 22;
1116
+ case 22:
1117
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
1118
+ _w = headerParameters;
1119
+ _x = "Sec-Ch-Ua";
1120
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
1121
+ case 23:
1122
+ _w[_x] = _14.sent(); // SecChUa authentication
1123
+ _14.label = 24;
1124
+ case 24:
1125
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
1126
+ _y = headerParameters;
1127
+ _z = "x-client-transaction-id";
1128
+ return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
1129
+ case 25:
1130
+ _y[_z] = _14.sent(); // ClientTransactionId authentication
1131
+ _14.label = 26;
1132
+ case 26:
1133
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
1134
+ _0 = headerParameters;
1135
+ _1 = "x-twitter-active-user";
1136
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
1137
+ case 27:
1138
+ _0[_1] = _14.sent(); // ActiveUser authentication
1139
+ _14.label = 28;
1140
+ case 28:
1141
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
1142
+ _2 = headerParameters;
1143
+ _3 = "user-agent";
1144
+ return [4 /*yield*/, this.configuration.apiKey("user-agent")];
1145
+ case 29:
1146
+ _2[_3] = _14.sent(); // UserAgent authentication
1147
+ _14.label = 30;
1148
+ case 30:
1149
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
1150
+ _4 = headerParameters;
1151
+ _5 = "Accept-Language";
1152
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
1153
+ case 31:
1154
+ _4[_5] = _14.sent(); // AcceptLanguage authentication
1155
+ _14.label = 32;
1156
+ case 32:
1157
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
1158
+ _6 = headerParameters;
1159
+ _7 = "Sec-Fetch-Site";
1160
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
1161
+ case 33:
1162
+ _6[_7] = _14.sent(); // SecFetchSite authentication
1163
+ _14.label = 34;
1164
+ case 34:
1165
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
1166
+ _8 = headerParameters;
1167
+ _9 = "x-twitter-auth-type";
1168
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
1169
+ case 35:
1170
+ _8[_9] = _14.sent(); // AuthType authentication
1171
+ _14.label = 36;
1172
+ case 36:
1173
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
1174
+ _10 = headerParameters;
1175
+ _11 = "Sec-Ch-Ua-Mobile";
1176
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
1177
+ case 37:
1178
+ _10[_11] = _14.sent(); // SecChUaMobile authentication
1179
+ _14.label = 38;
1180
+ case 38:
1181
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 40];
1182
+ _12 = headerParameters;
1183
+ _13 = "Accept-Encoding";
1184
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
1185
+ case 39:
1186
+ _12[_13] = _14.sent(); // AcceptEncoding authentication
1187
+ _14.label = 40;
1188
+ case 40:
1189
+ urlPath = "/graphql/{pathQueryId}/DeleteRetweet";
1190
+ urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
1191
+ return [2 /*return*/, {
1192
+ path: urlPath,
1193
+ method: 'POST',
1194
+ headers: headerParameters,
1195
+ query: queryParameters,
1196
+ body: (0, PostDeleteRetweetRequest_1.PostDeleteRetweetRequestToJSON)(requestParameters['postDeleteRetweetRequest']),
1197
+ }];
1198
+ }
1199
+ });
1200
+ });
1201
+ };
1202
+ /**
1203
+ * delete Retweet
1204
+ */
1205
+ PostApi.prototype.postDeleteRetweetRaw = function (requestParameters, initOverrides) {
1206
+ return __awaiter(this, void 0, void 0, function () {
1207
+ var requestOptions, response;
1208
+ return __generator(this, function (_a) {
1209
+ switch (_a.label) {
1210
+ case 0: return [4 /*yield*/, this.postDeleteRetweetRequestOpts(requestParameters)];
1211
+ case 1:
1212
+ requestOptions = _a.sent();
1213
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
1214
+ case 2:
1215
+ response = _a.sent();
1216
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, DeleteRetweetResponse_1.DeleteRetweetResponseFromJSON)(jsonValue); })];
1217
+ }
1218
+ });
1219
+ });
1220
+ };
1221
+ /**
1222
+ * delete Retweet
1223
+ */
1224
+ PostApi.prototype.postDeleteRetweet = function (requestParameters, initOverrides) {
1225
+ return __awaiter(this, void 0, void 0, function () {
1226
+ var response;
1227
+ return __generator(this, function (_a) {
1228
+ switch (_a.label) {
1229
+ case 0: return [4 /*yield*/, this.postDeleteRetweetRaw(requestParameters, initOverrides)];
1230
+ case 1:
1231
+ response = _a.sent();
1232
+ return [4 /*yield*/, response.value()];
1233
+ case 2: return [2 /*return*/, _a.sent()];
1234
+ }
1235
+ });
1236
+ });
1237
+ };
1238
+ /**
1239
+ * Creates request options for postDeleteTweet without sending the request
1240
+ */
1241
+ PostApi.prototype.postDeleteTweetRequestOpts = function (requestParameters) {
1242
+ return __awaiter(this, void 0, void 0, function () {
1243
+ var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
1244
+ return __generator(this, function (_14) {
1245
+ switch (_14.label) {
1246
+ case 0:
1247
+ if (requestParameters['pathQueryId'] == null) {
1248
+ throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postDeleteTweet().');
1249
+ }
1250
+ if (requestParameters['postDeleteTweetRequest'] == null) {
1251
+ throw new runtime.RequiredError('postDeleteTweetRequest', 'Required parameter "postDeleteTweetRequest" was null or undefined when calling postDeleteTweet().');
1252
+ }
1253
+ queryParameters = {};
1254
+ headerParameters = {};
1255
+ headerParameters['Content-Type'] = 'application/json';
1256
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
1257
+ _a = headerParameters;
1258
+ _b = "Accept";
1259
+ return [4 /*yield*/, this.configuration.apiKey("Accept")];
1260
+ case 1:
1261
+ _a[_b] = _14.sent(); // Accept authentication
1262
+ _14.label = 2;
1263
+ case 2:
1264
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
1265
+ _c = headerParameters;
1266
+ _d = "x-twitter-client-language";
1267
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
1268
+ case 3:
1269
+ _c[_d] = _14.sent(); // ClientLanguage authentication
1270
+ _14.label = 4;
1271
+ case 4:
1272
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
1273
+ _e = headerParameters;
1274
+ _f = "Priority";
1275
+ return [4 /*yield*/, this.configuration.apiKey("Priority")];
1276
+ case 5:
1277
+ _e[_f] = _14.sent(); // Priority authentication
1278
+ _14.label = 6;
1279
+ case 6:
1280
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
1281
+ _g = headerParameters;
1282
+ _h = "Referer";
1283
+ return [4 /*yield*/, this.configuration.apiKey("Referer")];
1284
+ case 7:
1285
+ _g[_h] = _14.sent(); // Referer authentication
1286
+ _14.label = 8;
1287
+ case 8:
1288
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
1289
+ _j = headerParameters;
1290
+ _k = "Sec-Fetch-Dest";
1291
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
1292
+ case 9:
1293
+ _j[_k] = _14.sent(); // SecFetchDest authentication
1294
+ _14.label = 10;
1295
+ case 10:
1296
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
1297
+ _l = headerParameters;
1298
+ _m = "Sec-Ch-Ua-Platform";
1299
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
1300
+ case 11:
1301
+ _l[_m] = _14.sent(); // SecChUaPlatform authentication
1302
+ _14.label = 12;
1303
+ case 12:
1304
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
1305
+ _o = headerParameters;
1306
+ _p = "Sec-Fetch-Mode";
1307
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
1308
+ case 13:
1309
+ _o[_p] = _14.sent(); // SecFetchMode authentication
1310
+ _14.label = 14;
1311
+ case 14:
1312
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
1313
+ _q = headerParameters;
1314
+ _r = "x-csrf-token";
1315
+ return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
1316
+ case 15:
1317
+ _q[_r] = _14.sent(); // CsrfToken authentication
1318
+ _14.label = 16;
1319
+ case 16:
1320
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
1321
+ _s = headerParameters;
1322
+ _t = "x-client-uuid";
1323
+ return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
1324
+ case 17:
1325
+ _s[_t] = _14.sent(); // ClientUuid authentication
1326
+ _14.label = 18;
1327
+ case 18:
1328
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
1329
+ token = this.configuration.accessToken;
1330
+ return [4 /*yield*/, token("BearerAuth", [])];
1331
+ case 19:
1332
+ tokenString = _14.sent();
1333
+ if (tokenString) {
1334
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
1335
+ }
1336
+ _14.label = 20;
1337
+ case 20:
1338
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
1339
+ _u = headerParameters;
1340
+ _v = "x-guest-token";
1341
+ return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
1342
+ case 21:
1343
+ _u[_v] = _14.sent(); // GuestToken authentication
1344
+ _14.label = 22;
1345
+ case 22:
1346
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
1347
+ _w = headerParameters;
1348
+ _x = "Sec-Ch-Ua";
1349
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
1350
+ case 23:
1351
+ _w[_x] = _14.sent(); // SecChUa authentication
1352
+ _14.label = 24;
1353
+ case 24:
1354
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
1355
+ _y = headerParameters;
1356
+ _z = "x-client-transaction-id";
1357
+ return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
1358
+ case 25:
1359
+ _y[_z] = _14.sent(); // ClientTransactionId authentication
1360
+ _14.label = 26;
1361
+ case 26:
1362
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
1363
+ _0 = headerParameters;
1364
+ _1 = "x-twitter-active-user";
1365
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
1366
+ case 27:
1367
+ _0[_1] = _14.sent(); // ActiveUser authentication
1368
+ _14.label = 28;
1369
+ case 28:
1370
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
1371
+ _2 = headerParameters;
1372
+ _3 = "user-agent";
1373
+ return [4 /*yield*/, this.configuration.apiKey("user-agent")];
1374
+ case 29:
1375
+ _2[_3] = _14.sent(); // UserAgent authentication
1376
+ _14.label = 30;
1377
+ case 30:
1378
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
1379
+ _4 = headerParameters;
1380
+ _5 = "Accept-Language";
1381
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
1382
+ case 31:
1383
+ _4[_5] = _14.sent(); // AcceptLanguage authentication
1384
+ _14.label = 32;
1385
+ case 32:
1386
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
1387
+ _6 = headerParameters;
1388
+ _7 = "Sec-Fetch-Site";
1389
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
1390
+ case 33:
1391
+ _6[_7] = _14.sent(); // SecFetchSite authentication
1392
+ _14.label = 34;
1393
+ case 34:
1394
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
1395
+ _8 = headerParameters;
1396
+ _9 = "x-twitter-auth-type";
1397
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
1398
+ case 35:
1399
+ _8[_9] = _14.sent(); // AuthType authentication
1400
+ _14.label = 36;
1401
+ case 36:
1402
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
1403
+ _10 = headerParameters;
1404
+ _11 = "Sec-Ch-Ua-Mobile";
1405
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
1406
+ case 37:
1407
+ _10[_11] = _14.sent(); // SecChUaMobile authentication
1408
+ _14.label = 38;
1409
+ case 38:
1410
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 40];
1411
+ _12 = headerParameters;
1412
+ _13 = "Accept-Encoding";
1413
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
1414
+ case 39:
1415
+ _12[_13] = _14.sent(); // AcceptEncoding authentication
1416
+ _14.label = 40;
1417
+ case 40:
1418
+ urlPath = "/graphql/{pathQueryId}/DeleteTweet";
1419
+ urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
1420
+ return [2 /*return*/, {
1421
+ path: urlPath,
1422
+ method: 'POST',
1423
+ headers: headerParameters,
1424
+ query: queryParameters,
1425
+ body: (0, PostDeleteTweetRequest_1.PostDeleteTweetRequestToJSON)(requestParameters['postDeleteTweetRequest']),
1426
+ }];
1427
+ }
1428
+ });
1429
+ });
1430
+ };
1431
+ /**
1432
+ * delete Retweet
1433
+ */
1434
+ PostApi.prototype.postDeleteTweetRaw = function (requestParameters, initOverrides) {
1435
+ return __awaiter(this, void 0, void 0, function () {
1436
+ var requestOptions, response;
1437
+ return __generator(this, function (_a) {
1438
+ switch (_a.label) {
1439
+ case 0: return [4 /*yield*/, this.postDeleteTweetRequestOpts(requestParameters)];
1440
+ case 1:
1441
+ requestOptions = _a.sent();
1442
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
1443
+ case 2:
1444
+ response = _a.sent();
1445
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, DeleteTweetResponse_1.DeleteTweetResponseFromJSON)(jsonValue); })];
1446
+ }
1447
+ });
1448
+ });
1449
+ };
1450
+ /**
1451
+ * delete Retweet
1452
+ */
1453
+ PostApi.prototype.postDeleteTweet = function (requestParameters, initOverrides) {
1454
+ return __awaiter(this, void 0, void 0, function () {
1455
+ var response;
1456
+ return __generator(this, function (_a) {
1457
+ switch (_a.label) {
1458
+ case 0: return [4 /*yield*/, this.postDeleteTweetRaw(requestParameters, initOverrides)];
1459
+ case 1:
1460
+ response = _a.sent();
1461
+ return [4 /*yield*/, response.value()];
1462
+ case 2: return [2 /*return*/, _a.sent()];
1463
+ }
1464
+ });
1465
+ });
1466
+ };
1467
+ /**
1468
+ * Creates request options for postFavoriteTweet without sending the request
1469
+ */
1470
+ PostApi.prototype.postFavoriteTweetRequestOpts = function (requestParameters) {
1471
+ return __awaiter(this, void 0, void 0, function () {
1472
+ var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
1473
+ return __generator(this, function (_14) {
1474
+ switch (_14.label) {
1475
+ case 0:
1476
+ if (requestParameters['pathQueryId'] == null) {
1477
+ throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postFavoriteTweet().');
1478
+ }
1479
+ if (requestParameters['postFavoriteTweetRequest'] == null) {
1480
+ throw new runtime.RequiredError('postFavoriteTweetRequest', 'Required parameter "postFavoriteTweetRequest" was null or undefined when calling postFavoriteTweet().');
1481
+ }
1482
+ queryParameters = {};
1483
+ headerParameters = {};
1484
+ headerParameters['Content-Type'] = 'application/json';
1485
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
1486
+ _a = headerParameters;
1487
+ _b = "Accept";
1488
+ return [4 /*yield*/, this.configuration.apiKey("Accept")];
1489
+ case 1:
1490
+ _a[_b] = _14.sent(); // Accept authentication
1491
+ _14.label = 2;
1492
+ case 2:
1493
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
1494
+ _c = headerParameters;
1495
+ _d = "x-twitter-client-language";
1496
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
1497
+ case 3:
1498
+ _c[_d] = _14.sent(); // ClientLanguage authentication
1499
+ _14.label = 4;
1500
+ case 4:
1501
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
1502
+ _e = headerParameters;
1503
+ _f = "Priority";
1504
+ return [4 /*yield*/, this.configuration.apiKey("Priority")];
1505
+ case 5:
1506
+ _e[_f] = _14.sent(); // Priority authentication
1507
+ _14.label = 6;
1508
+ case 6:
1509
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
1510
+ _g = headerParameters;
1511
+ _h = "Referer";
1512
+ return [4 /*yield*/, this.configuration.apiKey("Referer")];
1513
+ case 7:
1514
+ _g[_h] = _14.sent(); // Referer authentication
1515
+ _14.label = 8;
1516
+ case 8:
1517
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
1518
+ _j = headerParameters;
1519
+ _k = "Sec-Fetch-Dest";
1520
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
1521
+ case 9:
1522
+ _j[_k] = _14.sent(); // SecFetchDest authentication
1523
+ _14.label = 10;
1524
+ case 10:
1525
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
1526
+ _l = headerParameters;
1527
+ _m = "Sec-Ch-Ua-Platform";
1528
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
1529
+ case 11:
1530
+ _l[_m] = _14.sent(); // SecChUaPlatform authentication
1531
+ _14.label = 12;
1532
+ case 12:
1533
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
1534
+ _o = headerParameters;
1535
+ _p = "Sec-Fetch-Mode";
1536
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
1537
+ case 13:
1538
+ _o[_p] = _14.sent(); // SecFetchMode authentication
1539
+ _14.label = 14;
1540
+ case 14:
1541
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
1542
+ _q = headerParameters;
1543
+ _r = "x-csrf-token";
1544
+ return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
1545
+ case 15:
1546
+ _q[_r] = _14.sent(); // CsrfToken authentication
1547
+ _14.label = 16;
1548
+ case 16:
1549
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
1550
+ _s = headerParameters;
1551
+ _t = "x-client-uuid";
1552
+ return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
1553
+ case 17:
1554
+ _s[_t] = _14.sent(); // ClientUuid authentication
1555
+ _14.label = 18;
1556
+ case 18:
1557
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
1558
+ token = this.configuration.accessToken;
1559
+ return [4 /*yield*/, token("BearerAuth", [])];
1560
+ case 19:
1561
+ tokenString = _14.sent();
1562
+ if (tokenString) {
1563
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
1564
+ }
1565
+ _14.label = 20;
1566
+ case 20:
1567
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
1568
+ _u = headerParameters;
1569
+ _v = "x-guest-token";
1570
+ return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
1571
+ case 21:
1572
+ _u[_v] = _14.sent(); // GuestToken authentication
1573
+ _14.label = 22;
1574
+ case 22:
1575
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
1576
+ _w = headerParameters;
1577
+ _x = "Sec-Ch-Ua";
1578
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
1579
+ case 23:
1580
+ _w[_x] = _14.sent(); // SecChUa authentication
1581
+ _14.label = 24;
1582
+ case 24:
1583
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
1584
+ _y = headerParameters;
1585
+ _z = "x-client-transaction-id";
1586
+ return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
1587
+ case 25:
1588
+ _y[_z] = _14.sent(); // ClientTransactionId authentication
1589
+ _14.label = 26;
1590
+ case 26:
1591
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
1592
+ _0 = headerParameters;
1593
+ _1 = "x-twitter-active-user";
1594
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
1595
+ case 27:
1596
+ _0[_1] = _14.sent(); // ActiveUser authentication
1597
+ _14.label = 28;
1598
+ case 28:
1599
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
1600
+ _2 = headerParameters;
1601
+ _3 = "user-agent";
1602
+ return [4 /*yield*/, this.configuration.apiKey("user-agent")];
1603
+ case 29:
1604
+ _2[_3] = _14.sent(); // UserAgent authentication
1605
+ _14.label = 30;
1606
+ case 30:
1607
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
1608
+ _4 = headerParameters;
1609
+ _5 = "Accept-Language";
1610
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
1611
+ case 31:
1612
+ _4[_5] = _14.sent(); // AcceptLanguage authentication
1613
+ _14.label = 32;
1614
+ case 32:
1615
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
1616
+ _6 = headerParameters;
1617
+ _7 = "Sec-Fetch-Site";
1618
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
1619
+ case 33:
1620
+ _6[_7] = _14.sent(); // SecFetchSite authentication
1621
+ _14.label = 34;
1622
+ case 34:
1623
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
1624
+ _8 = headerParameters;
1625
+ _9 = "x-twitter-auth-type";
1626
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
1627
+ case 35:
1628
+ _8[_9] = _14.sent(); // AuthType authentication
1629
+ _14.label = 36;
1630
+ case 36:
1631
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
1632
+ _10 = headerParameters;
1633
+ _11 = "Sec-Ch-Ua-Mobile";
1634
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
1635
+ case 37:
1636
+ _10[_11] = _14.sent(); // SecChUaMobile authentication
1637
+ _14.label = 38;
1638
+ case 38:
1639
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 40];
1640
+ _12 = headerParameters;
1641
+ _13 = "Accept-Encoding";
1642
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
1643
+ case 39:
1644
+ _12[_13] = _14.sent(); // AcceptEncoding authentication
1645
+ _14.label = 40;
1646
+ case 40:
1647
+ urlPath = "/graphql/{pathQueryId}/FavoriteTweet";
1648
+ urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
1649
+ return [2 /*return*/, {
1650
+ path: urlPath,
1651
+ method: 'POST',
1652
+ headers: headerParameters,
1653
+ query: queryParameters,
1654
+ body: (0, PostFavoriteTweetRequest_1.PostFavoriteTweetRequestToJSON)(requestParameters['postFavoriteTweetRequest']),
1655
+ }];
1656
+ }
1657
+ });
1658
+ });
1659
+ };
1660
+ /**
1661
+ * favorite Tweet
1662
+ */
1663
+ PostApi.prototype.postFavoriteTweetRaw = function (requestParameters, initOverrides) {
1664
+ return __awaiter(this, void 0, void 0, function () {
1665
+ var requestOptions, response;
1666
+ return __generator(this, function (_a) {
1667
+ switch (_a.label) {
1668
+ case 0: return [4 /*yield*/, this.postFavoriteTweetRequestOpts(requestParameters)];
1669
+ case 1:
1670
+ requestOptions = _a.sent();
1671
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
1672
+ case 2:
1673
+ response = _a.sent();
1674
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, FavoriteTweetResponse_1.FavoriteTweetResponseFromJSON)(jsonValue); })];
1675
+ }
1676
+ });
1677
+ });
1678
+ };
1679
+ /**
1680
+ * favorite Tweet
1681
+ */
1682
+ PostApi.prototype.postFavoriteTweet = function (requestParameters, initOverrides) {
1683
+ return __awaiter(this, void 0, void 0, function () {
1684
+ var response;
1685
+ return __generator(this, function (_a) {
1686
+ switch (_a.label) {
1687
+ case 0: return [4 /*yield*/, this.postFavoriteTweetRaw(requestParameters, initOverrides)];
1688
+ case 1:
1689
+ response = _a.sent();
1690
+ return [4 /*yield*/, response.value()];
1691
+ case 2: return [2 /*return*/, _a.sent()];
1692
+ }
1693
+ });
1694
+ });
1695
+ };
1696
+ /**
1697
+ * Creates request options for postUnfavoriteTweet without sending the request
1698
+ */
1699
+ PostApi.prototype.postUnfavoriteTweetRequestOpts = function (requestParameters) {
1700
+ return __awaiter(this, void 0, void 0, function () {
1701
+ var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
1702
+ return __generator(this, function (_14) {
1703
+ switch (_14.label) {
1704
+ case 0:
1705
+ if (requestParameters['pathQueryId'] == null) {
1706
+ throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postUnfavoriteTweet().');
1707
+ }
1708
+ if (requestParameters['postUnfavoriteTweetRequest'] == null) {
1709
+ throw new runtime.RequiredError('postUnfavoriteTweetRequest', 'Required parameter "postUnfavoriteTweetRequest" was null or undefined when calling postUnfavoriteTweet().');
1710
+ }
1711
+ queryParameters = {};
1712
+ headerParameters = {};
1713
+ headerParameters['Content-Type'] = 'application/json';
1714
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
1715
+ _a = headerParameters;
1716
+ _b = "Accept";
1717
+ return [4 /*yield*/, this.configuration.apiKey("Accept")];
1718
+ case 1:
1719
+ _a[_b] = _14.sent(); // Accept authentication
1720
+ _14.label = 2;
1721
+ case 2:
1722
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
1723
+ _c = headerParameters;
1724
+ _d = "x-twitter-client-language";
1725
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
1726
+ case 3:
1727
+ _c[_d] = _14.sent(); // ClientLanguage authentication
1728
+ _14.label = 4;
1729
+ case 4:
1730
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
1731
+ _e = headerParameters;
1732
+ _f = "Priority";
1733
+ return [4 /*yield*/, this.configuration.apiKey("Priority")];
1734
+ case 5:
1735
+ _e[_f] = _14.sent(); // Priority authentication
1736
+ _14.label = 6;
1737
+ case 6:
1738
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
1739
+ _g = headerParameters;
1740
+ _h = "Referer";
1741
+ return [4 /*yield*/, this.configuration.apiKey("Referer")];
1742
+ case 7:
1743
+ _g[_h] = _14.sent(); // Referer authentication
1744
+ _14.label = 8;
1745
+ case 8:
1746
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
1747
+ _j = headerParameters;
1748
+ _k = "Sec-Fetch-Dest";
1749
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
1750
+ case 9:
1751
+ _j[_k] = _14.sent(); // SecFetchDest authentication
1752
+ _14.label = 10;
1753
+ case 10:
1754
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
1755
+ _l = headerParameters;
1756
+ _m = "Sec-Ch-Ua-Platform";
1757
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
1758
+ case 11:
1759
+ _l[_m] = _14.sent(); // SecChUaPlatform authentication
1760
+ _14.label = 12;
1761
+ case 12:
1762
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
1763
+ _o = headerParameters;
1764
+ _p = "Sec-Fetch-Mode";
1765
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
1766
+ case 13:
1767
+ _o[_p] = _14.sent(); // SecFetchMode authentication
1768
+ _14.label = 14;
1769
+ case 14:
1770
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
1771
+ _q = headerParameters;
1772
+ _r = "x-csrf-token";
1773
+ return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
1774
+ case 15:
1775
+ _q[_r] = _14.sent(); // CsrfToken authentication
1776
+ _14.label = 16;
1777
+ case 16:
1778
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
1779
+ _s = headerParameters;
1780
+ _t = "x-client-uuid";
1781
+ return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
1782
+ case 17:
1783
+ _s[_t] = _14.sent(); // ClientUuid authentication
1784
+ _14.label = 18;
1785
+ case 18:
1786
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
1787
+ token = this.configuration.accessToken;
1788
+ return [4 /*yield*/, token("BearerAuth", [])];
1789
+ case 19:
1790
+ tokenString = _14.sent();
1791
+ if (tokenString) {
1792
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
1793
+ }
1794
+ _14.label = 20;
1795
+ case 20:
1796
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
1797
+ _u = headerParameters;
1798
+ _v = "x-guest-token";
1799
+ return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
1800
+ case 21:
1801
+ _u[_v] = _14.sent(); // GuestToken authentication
1802
+ _14.label = 22;
1803
+ case 22:
1804
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
1805
+ _w = headerParameters;
1806
+ _x = "Sec-Ch-Ua";
1807
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
1808
+ case 23:
1809
+ _w[_x] = _14.sent(); // SecChUa authentication
1810
+ _14.label = 24;
1811
+ case 24:
1812
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
1813
+ _y = headerParameters;
1814
+ _z = "x-client-transaction-id";
1815
+ return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
1816
+ case 25:
1817
+ _y[_z] = _14.sent(); // ClientTransactionId authentication
1818
+ _14.label = 26;
1819
+ case 26:
1820
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
1821
+ _0 = headerParameters;
1822
+ _1 = "x-twitter-active-user";
1823
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
1824
+ case 27:
1825
+ _0[_1] = _14.sent(); // ActiveUser authentication
1826
+ _14.label = 28;
1827
+ case 28:
1828
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
1829
+ _2 = headerParameters;
1830
+ _3 = "user-agent";
1831
+ return [4 /*yield*/, this.configuration.apiKey("user-agent")];
1832
+ case 29:
1833
+ _2[_3] = _14.sent(); // UserAgent authentication
1834
+ _14.label = 30;
1835
+ case 30:
1836
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
1837
+ _4 = headerParameters;
1838
+ _5 = "Accept-Language";
1839
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
1840
+ case 31:
1841
+ _4[_5] = _14.sent(); // AcceptLanguage authentication
1842
+ _14.label = 32;
1843
+ case 32:
1844
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
1845
+ _6 = headerParameters;
1846
+ _7 = "Sec-Fetch-Site";
1847
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
1848
+ case 33:
1849
+ _6[_7] = _14.sent(); // SecFetchSite authentication
1850
+ _14.label = 34;
1851
+ case 34:
1852
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
1853
+ _8 = headerParameters;
1854
+ _9 = "x-twitter-auth-type";
1855
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
1856
+ case 35:
1857
+ _8[_9] = _14.sent(); // AuthType authentication
1858
+ _14.label = 36;
1859
+ case 36:
1860
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
1861
+ _10 = headerParameters;
1862
+ _11 = "Sec-Ch-Ua-Mobile";
1863
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
1864
+ case 37:
1865
+ _10[_11] = _14.sent(); // SecChUaMobile authentication
1866
+ _14.label = 38;
1867
+ case 38:
1868
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 40];
1869
+ _12 = headerParameters;
1870
+ _13 = "Accept-Encoding";
1871
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
1872
+ case 39:
1873
+ _12[_13] = _14.sent(); // AcceptEncoding authentication
1874
+ _14.label = 40;
1875
+ case 40:
1876
+ urlPath = "/graphql/{pathQueryId}/UnfavoriteTweet";
1877
+ urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
1878
+ return [2 /*return*/, {
1879
+ path: urlPath,
1880
+ method: 'POST',
1881
+ headers: headerParameters,
1882
+ query: queryParameters,
1883
+ body: (0, PostUnfavoriteTweetRequest_1.PostUnfavoriteTweetRequestToJSON)(requestParameters['postUnfavoriteTweetRequest']),
1884
+ }];
1885
+ }
1886
+ });
1887
+ });
1888
+ };
1889
+ /**
1890
+ * unfavorite Tweet
1891
+ */
1892
+ PostApi.prototype.postUnfavoriteTweetRaw = function (requestParameters, initOverrides) {
1893
+ return __awaiter(this, void 0, void 0, function () {
1894
+ var requestOptions, response;
1895
+ return __generator(this, function (_a) {
1896
+ switch (_a.label) {
1897
+ case 0: return [4 /*yield*/, this.postUnfavoriteTweetRequestOpts(requestParameters)];
1898
+ case 1:
1899
+ requestOptions = _a.sent();
1900
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
1901
+ case 2:
1902
+ response = _a.sent();
1903
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, UnfavoriteTweetResponse_1.UnfavoriteTweetResponseFromJSON)(jsonValue); })];
1904
+ }
1905
+ });
1906
+ });
1907
+ };
1908
+ /**
1909
+ * unfavorite Tweet
1910
+ */
1911
+ PostApi.prototype.postUnfavoriteTweet = function (requestParameters, initOverrides) {
1912
+ return __awaiter(this, void 0, void 0, function () {
1913
+ var response;
1914
+ return __generator(this, function (_a) {
1915
+ switch (_a.label) {
1916
+ case 0: return [4 /*yield*/, this.postUnfavoriteTweetRaw(requestParameters, initOverrides)];
1917
+ case 1:
1918
+ response = _a.sent();
1919
+ return [4 /*yield*/, response.value()];
1920
+ case 2: return [2 /*return*/, _a.sent()];
1921
+ }
1922
+ });
1923
+ });
1924
+ };
1925
+ return PostApi;
1926
+ }(runtime.BaseAPI));
1927
+ exports.PostApi = PostApi;
1761
1928
  //# sourceMappingURL=PostApi.js.map