twitter-openapi-typescript-generated 0.0.27 → 0.0.29

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 (330) hide show
  1. package/README.md +2 -2
  2. package/dist/apis/DefaultApi.d.ts +5 -5
  3. package/dist/apis/DefaultApi.d.ts.map +1 -1
  4. package/dist/apis/DefaultApi.js +182 -166
  5. package/dist/apis/DefaultApi.js.map +1 -1
  6. package/dist/apis/OtherApi.d.ts +3 -3
  7. package/dist/apis/OtherApi.d.ts.map +1 -1
  8. package/dist/apis/OtherApi.js +91 -83
  9. package/dist/apis/OtherApi.js.map +1 -1
  10. package/dist/apis/PostApi.d.ts +17 -17
  11. package/dist/apis/PostApi.d.ts.map +1 -1
  12. package/dist/apis/PostApi.js +728 -664
  13. package/dist/apis/PostApi.js.map +1 -1
  14. package/dist/apis/TweetApi.d.ts +23 -23
  15. package/dist/apis/TweetApi.d.ts.map +1 -1
  16. package/dist/apis/TweetApi.js +1001 -913
  17. package/dist/apis/TweetApi.js.map +1 -1
  18. package/dist/apis/UserApi.d.ts +5 -5
  19. package/dist/apis/UserApi.d.ts.map +1 -1
  20. package/dist/apis/UserApi.js +182 -166
  21. package/dist/apis/UserApi.js.map +1 -1
  22. package/dist/apis/UserListApi.d.ts +11 -11
  23. package/dist/apis/UserListApi.d.ts.map +1 -1
  24. package/dist/apis/UserListApi.js +455 -415
  25. package/dist/apis/UserListApi.js.map +1 -1
  26. package/dist/apis/UsersApi.d.ts +3 -3
  27. package/dist/apis/UsersApi.d.ts.map +1 -1
  28. package/dist/apis/UsersApi.js +91 -83
  29. package/dist/apis/UsersApi.js.map +1 -1
  30. package/dist/apis/V11GetApi.d.ts.map +1 -1
  31. package/dist/apis/V11GetApi.js +180 -164
  32. package/dist/apis/V11GetApi.js.map +1 -1
  33. package/dist/apis/V11PostApi.d.ts.map +1 -1
  34. package/dist/apis/V11PostApi.js +178 -162
  35. package/dist/apis/V11PostApi.js.map +1 -1
  36. package/dist/apis/V20GetApi.d.ts.map +1 -1
  37. package/dist/apis/V20GetApi.js +90 -82
  38. package/dist/apis/V20GetApi.js.map +1 -1
  39. package/dist/models/BookmarksResponse.d.ts +8 -1
  40. package/dist/models/BookmarksResponse.d.ts.map +1 -1
  41. package/dist/models/BookmarksResponse.js +4 -3
  42. package/dist/models/BookmarksResponse.js.map +1 -1
  43. package/dist/models/BookmarksResponseData.d.ts +1 -1
  44. package/dist/models/BookmarksResponseData.d.ts.map +1 -1
  45. package/dist/models/BookmarksResponseData.js +1 -3
  46. package/dist/models/BookmarksResponseData.js.map +1 -1
  47. package/dist/models/CreateBookmarkResponse.d.ts +7 -0
  48. package/dist/models/CreateBookmarkResponse.d.ts.map +1 -1
  49. package/dist/models/CreateBookmarkResponse.js +3 -0
  50. package/dist/models/CreateBookmarkResponse.js.map +1 -1
  51. package/dist/models/CreateBookmarkResponseData.d.ts +1 -1
  52. package/dist/models/CreateBookmarkResponseData.d.ts.map +1 -1
  53. package/dist/models/CreateBookmarkResponseData.js +1 -3
  54. package/dist/models/CreateBookmarkResponseData.js.map +1 -1
  55. package/dist/models/CreateRetweetResponse.d.ts +7 -0
  56. package/dist/models/CreateRetweetResponse.d.ts.map +1 -1
  57. package/dist/models/CreateRetweetResponse.js +3 -0
  58. package/dist/models/CreateRetweetResponse.js.map +1 -1
  59. package/dist/models/CreateRetweetResponseData.d.ts +1 -1
  60. package/dist/models/CreateRetweetResponseData.d.ts.map +1 -1
  61. package/dist/models/CreateRetweetResponseData.js +1 -3
  62. package/dist/models/CreateRetweetResponseData.js.map +1 -1
  63. package/dist/models/CreateTweetResponse.d.ts +7 -0
  64. package/dist/models/CreateTweetResponse.d.ts.map +1 -1
  65. package/dist/models/CreateTweetResponse.js +3 -0
  66. package/dist/models/CreateTweetResponse.js.map +1 -1
  67. package/dist/models/CreateTweetResponseData.d.ts +1 -1
  68. package/dist/models/CreateTweetResponseData.d.ts.map +1 -1
  69. package/dist/models/CreateTweetResponseData.js +1 -3
  70. package/dist/models/CreateTweetResponseData.js.map +1 -1
  71. package/dist/models/DeleteBookmarkResponse.d.ts +7 -0
  72. package/dist/models/DeleteBookmarkResponse.d.ts.map +1 -1
  73. package/dist/models/DeleteBookmarkResponse.js +3 -0
  74. package/dist/models/DeleteBookmarkResponse.js.map +1 -1
  75. package/dist/models/DeleteBookmarkResponseData.d.ts +1 -1
  76. package/dist/models/DeleteBookmarkResponseData.d.ts.map +1 -1
  77. package/dist/models/DeleteBookmarkResponseData.js +1 -3
  78. package/dist/models/DeleteBookmarkResponseData.js.map +1 -1
  79. package/dist/models/DeleteRetweetResponse.d.ts +7 -0
  80. package/dist/models/DeleteRetweetResponse.d.ts.map +1 -1
  81. package/dist/models/DeleteRetweetResponse.js +3 -0
  82. package/dist/models/DeleteRetweetResponse.js.map +1 -1
  83. package/dist/models/DeleteRetweetResponseData.d.ts +3 -3
  84. package/dist/models/DeleteRetweetResponseData.js +3 -3
  85. package/dist/models/DeleteTweetResponse.d.ts +7 -0
  86. package/dist/models/DeleteTweetResponse.d.ts.map +1 -1
  87. package/dist/models/DeleteTweetResponse.js +3 -0
  88. package/dist/models/DeleteTweetResponse.js.map +1 -1
  89. package/dist/models/{ModelError.d.ts → ErrorResponse.d.ts} +18 -18
  90. package/dist/models/ErrorResponse.d.ts.map +1 -0
  91. package/dist/models/{ModelError.js → ErrorResponse.js} +12 -12
  92. package/dist/models/ErrorResponse.js.map +1 -0
  93. package/dist/models/FavoriteTweet.d.ts +1 -1
  94. package/dist/models/FavoriteTweet.d.ts.map +1 -1
  95. package/dist/models/FavoriteTweet.js +1 -3
  96. package/dist/models/FavoriteTweet.js.map +1 -1
  97. package/dist/models/FavoriteTweetResponse.d.ts +40 -0
  98. package/dist/models/FavoriteTweetResponse.d.ts.map +1 -0
  99. package/dist/models/FavoriteTweetResponse.js +52 -0
  100. package/dist/models/FavoriteTweetResponse.js.map +1 -0
  101. package/dist/models/FollowResponse.d.ts +7 -0
  102. package/dist/models/FollowResponse.d.ts.map +1 -1
  103. package/dist/models/FollowResponse.js +3 -0
  104. package/dist/models/FollowResponse.js.map +1 -1
  105. package/dist/models/FollowResponseData.d.ts +1 -1
  106. package/dist/models/FollowResponseData.d.ts.map +1 -1
  107. package/dist/models/FollowResponseData.js +1 -3
  108. package/dist/models/FollowResponseData.js.map +1 -1
  109. package/dist/models/HomeTimelineResponseData.d.ts +1 -1
  110. package/dist/models/HomeTimelineResponseData.d.ts.map +1 -1
  111. package/dist/models/HomeTimelineResponseData.js +1 -3
  112. package/dist/models/HomeTimelineResponseData.js.map +1 -1
  113. package/dist/models/ListLatestTweetsTimelineResponse.d.ts +7 -0
  114. package/dist/models/ListLatestTweetsTimelineResponse.d.ts.map +1 -1
  115. package/dist/models/ListLatestTweetsTimelineResponse.js +3 -0
  116. package/dist/models/ListLatestTweetsTimelineResponse.js.map +1 -1
  117. package/dist/models/ListTweetsTimelineData.d.ts +1 -1
  118. package/dist/models/ListTweetsTimelineData.d.ts.map +1 -1
  119. package/dist/models/ListTweetsTimelineData.js +1 -3
  120. package/dist/models/ListTweetsTimelineData.js.map +1 -1
  121. package/dist/models/OtherObjectAll.d.ts +33 -0
  122. package/dist/models/OtherObjectAll.d.ts.map +1 -0
  123. package/dist/models/{OtherResponse.js → OtherObjectAll.js} +12 -12
  124. package/dist/models/OtherObjectAll.js.map +1 -0
  125. package/dist/models/ProfileResponse.d.ts +7 -0
  126. package/dist/models/ProfileResponse.d.ts.map +1 -1
  127. package/dist/models/ProfileResponse.js +3 -0
  128. package/dist/models/ProfileResponse.js.map +1 -1
  129. package/dist/models/ProfileResponseData.d.ts +1 -1
  130. package/dist/models/ProfileResponseData.d.ts.map +1 -1
  131. package/dist/models/ProfileResponseData.js +1 -3
  132. package/dist/models/ProfileResponseData.js.map +1 -1
  133. package/dist/models/SearchTimelineData.d.ts +1 -1
  134. package/dist/models/SearchTimelineData.d.ts.map +1 -1
  135. package/dist/models/SearchTimelineData.js +1 -3
  136. package/dist/models/SearchTimelineData.js.map +1 -1
  137. package/dist/models/SearchTimelineResponse.d.ts +7 -0
  138. package/dist/models/SearchTimelineResponse.d.ts.map +1 -1
  139. package/dist/models/SearchTimelineResponse.js +3 -0
  140. package/dist/models/SearchTimelineResponse.js.map +1 -1
  141. package/dist/models/SensitiveMediaWarning.d.ts +3 -3
  142. package/dist/models/SensitiveMediaWarning.d.ts.map +1 -1
  143. package/dist/models/SensitiveMediaWarning.js +3 -9
  144. package/dist/models/SensitiveMediaWarning.js.map +1 -1
  145. package/dist/models/TimelineResponse.d.ts +7 -0
  146. package/dist/models/TimelineResponse.d.ts.map +1 -1
  147. package/dist/models/TimelineResponse.js +3 -0
  148. package/dist/models/TimelineResponse.js.map +1 -1
  149. package/dist/models/TweetDetailResponse.d.ts +7 -0
  150. package/dist/models/TweetDetailResponse.d.ts.map +1 -1
  151. package/dist/models/TweetDetailResponse.js +3 -0
  152. package/dist/models/TweetDetailResponse.js.map +1 -1
  153. package/dist/models/TweetDetailResponseData.d.ts +1 -1
  154. package/dist/models/TweetDetailResponseData.d.ts.map +1 -1
  155. package/dist/models/TweetDetailResponseData.js +1 -3
  156. package/dist/models/TweetDetailResponseData.js.map +1 -1
  157. package/dist/models/TweetFavoritersResponse.d.ts +7 -0
  158. package/dist/models/TweetFavoritersResponse.d.ts.map +1 -1
  159. package/dist/models/TweetFavoritersResponse.js +3 -0
  160. package/dist/models/TweetFavoritersResponse.js.map +1 -1
  161. package/dist/models/TweetFavoritersResponseData.d.ts +1 -1
  162. package/dist/models/TweetFavoritersResponseData.d.ts.map +1 -1
  163. package/dist/models/TweetFavoritersResponseData.js +1 -3
  164. package/dist/models/TweetFavoritersResponseData.js.map +1 -1
  165. package/dist/models/TweetResultByRestIdData.d.ts +1 -1
  166. package/dist/models/TweetResultByRestIdData.d.ts.map +1 -1
  167. package/dist/models/TweetResultByRestIdData.js +1 -3
  168. package/dist/models/TweetResultByRestIdData.js.map +1 -1
  169. package/dist/models/TweetResultByRestIdResponse.d.ts +7 -0
  170. package/dist/models/TweetResultByRestIdResponse.d.ts.map +1 -1
  171. package/dist/models/TweetResultByRestIdResponse.js +3 -0
  172. package/dist/models/TweetResultByRestIdResponse.js.map +1 -1
  173. package/dist/models/TweetRetweetersResponse.d.ts +7 -0
  174. package/dist/models/TweetRetweetersResponse.d.ts.map +1 -1
  175. package/dist/models/TweetRetweetersResponse.js +3 -0
  176. package/dist/models/TweetRetweetersResponse.js.map +1 -1
  177. package/dist/models/TweetRetweetersResponseData.d.ts +1 -1
  178. package/dist/models/TweetRetweetersResponseData.d.ts.map +1 -1
  179. package/dist/models/TweetRetweetersResponseData.js +1 -3
  180. package/dist/models/TweetRetweetersResponseData.js.map +1 -1
  181. package/dist/models/UnfavoriteTweet.d.ts +1 -1
  182. package/dist/models/UnfavoriteTweet.d.ts.map +1 -1
  183. package/dist/models/UnfavoriteTweet.js +1 -3
  184. package/dist/models/UnfavoriteTweet.js.map +1 -1
  185. package/dist/models/UnfavoriteTweetResponse.d.ts +40 -0
  186. package/dist/models/UnfavoriteTweetResponse.d.ts.map +1 -0
  187. package/dist/models/UnfavoriteTweetResponse.js +52 -0
  188. package/dist/models/UnfavoriteTweetResponse.js.map +1 -0
  189. package/dist/models/UserHighlightsTweetsData.d.ts +1 -1
  190. package/dist/models/UserHighlightsTweetsData.d.ts.map +1 -1
  191. package/dist/models/UserHighlightsTweetsData.js +1 -3
  192. package/dist/models/UserHighlightsTweetsData.js.map +1 -1
  193. package/dist/models/UserHighlightsTweetsResponse.d.ts +7 -0
  194. package/dist/models/UserHighlightsTweetsResponse.d.ts.map +1 -1
  195. package/dist/models/UserHighlightsTweetsResponse.js +3 -0
  196. package/dist/models/UserHighlightsTweetsResponse.js.map +1 -1
  197. package/dist/models/UserResponse.d.ts +7 -0
  198. package/dist/models/UserResponse.d.ts.map +1 -1
  199. package/dist/models/UserResponse.js +3 -0
  200. package/dist/models/UserResponse.js.map +1 -1
  201. package/dist/models/UserTweetsData.d.ts +1 -1
  202. package/dist/models/UserTweetsData.d.ts.map +1 -1
  203. package/dist/models/UserTweetsData.js +1 -3
  204. package/dist/models/UserTweetsData.js.map +1 -1
  205. package/dist/models/UserTweetsResponse.d.ts +7 -0
  206. package/dist/models/UserTweetsResponse.d.ts.map +1 -1
  207. package/dist/models/UserTweetsResponse.js +3 -0
  208. package/dist/models/UserTweetsResponse.js.map +1 -1
  209. package/dist/models/UsersResponse.d.ts +7 -0
  210. package/dist/models/UsersResponse.d.ts.map +1 -1
  211. package/dist/models/UsersResponse.js +3 -0
  212. package/dist/models/UsersResponse.js.map +1 -1
  213. package/dist/models/UsersResponseData.d.ts +1 -1
  214. package/dist/models/UsersResponseData.d.ts.map +1 -1
  215. package/dist/models/UsersResponseData.js +2 -4
  216. package/dist/models/UsersResponseData.js.map +1 -1
  217. package/dist/models/index.d.ts +4 -28
  218. package/dist/models/index.d.ts.map +1 -1
  219. package/dist/models/index.js +4 -28
  220. package/dist/models/index.js.map +1 -1
  221. package/package.json +1 -1
  222. package/dist/models/Errors.d.ts +0 -39
  223. package/dist/models/Errors.d.ts.map +0 -1
  224. package/dist/models/Errors.js +0 -51
  225. package/dist/models/Errors.js.map +0 -1
  226. package/dist/models/ErrorsData.d.ts +0 -32
  227. package/dist/models/ErrorsData.d.ts.map +0 -1
  228. package/dist/models/ErrorsData.js +0 -46
  229. package/dist/models/ErrorsData.js.map +0 -1
  230. package/dist/models/FavoriteTweetResponseData.d.ts +0 -33
  231. package/dist/models/FavoriteTweetResponseData.d.ts.map +0 -1
  232. package/dist/models/FavoriteTweetResponseData.js +0 -49
  233. package/dist/models/FavoriteTweetResponseData.js.map +0 -1
  234. package/dist/models/GetBookmarks200Response.d.ts +0 -23
  235. package/dist/models/GetBookmarks200Response.d.ts.map +0 -1
  236. package/dist/models/GetBookmarks200Response.js +0 -49
  237. package/dist/models/GetBookmarks200Response.js.map +0 -1
  238. package/dist/models/GetFavoriters200Response.d.ts +0 -23
  239. package/dist/models/GetFavoriters200Response.d.ts.map +0 -1
  240. package/dist/models/GetFavoriters200Response.js +0 -49
  241. package/dist/models/GetFavoriters200Response.js.map +0 -1
  242. package/dist/models/GetFollowers200Response.d.ts +0 -23
  243. package/dist/models/GetFollowers200Response.d.ts.map +0 -1
  244. package/dist/models/GetFollowers200Response.js +0 -49
  245. package/dist/models/GetFollowers200Response.js.map +0 -1
  246. package/dist/models/GetHomeLatestTimeline200Response.d.ts +0 -23
  247. package/dist/models/GetHomeLatestTimeline200Response.d.ts.map +0 -1
  248. package/dist/models/GetHomeLatestTimeline200Response.js +0 -49
  249. package/dist/models/GetHomeLatestTimeline200Response.js.map +0 -1
  250. package/dist/models/GetLikes200Response.d.ts +0 -23
  251. package/dist/models/GetLikes200Response.d.ts.map +0 -1
  252. package/dist/models/GetLikes200Response.js +0 -49
  253. package/dist/models/GetLikes200Response.js.map +0 -1
  254. package/dist/models/GetListLatestTweetsTimeline200Response.d.ts +0 -23
  255. package/dist/models/GetListLatestTweetsTimeline200Response.d.ts.map +0 -1
  256. package/dist/models/GetListLatestTweetsTimeline200Response.js +0 -49
  257. package/dist/models/GetListLatestTweetsTimeline200Response.js.map +0 -1
  258. package/dist/models/GetProfileSpotlightsQuery200Response.d.ts +0 -23
  259. package/dist/models/GetProfileSpotlightsQuery200Response.d.ts.map +0 -1
  260. package/dist/models/GetProfileSpotlightsQuery200Response.js +0 -49
  261. package/dist/models/GetProfileSpotlightsQuery200Response.js.map +0 -1
  262. package/dist/models/GetRetweeters200Response.d.ts +0 -23
  263. package/dist/models/GetRetweeters200Response.d.ts.map +0 -1
  264. package/dist/models/GetRetweeters200Response.js +0 -49
  265. package/dist/models/GetRetweeters200Response.js.map +0 -1
  266. package/dist/models/GetSearchTimeline200Response.d.ts +0 -23
  267. package/dist/models/GetSearchTimeline200Response.d.ts.map +0 -1
  268. package/dist/models/GetSearchTimeline200Response.js +0 -49
  269. package/dist/models/GetSearchTimeline200Response.js.map +0 -1
  270. package/dist/models/GetTweetDetail200Response.d.ts +0 -23
  271. package/dist/models/GetTweetDetail200Response.d.ts.map +0 -1
  272. package/dist/models/GetTweetDetail200Response.js +0 -49
  273. package/dist/models/GetTweetDetail200Response.js.map +0 -1
  274. package/dist/models/GetTweetResultByRestId200Response.d.ts +0 -23
  275. package/dist/models/GetTweetResultByRestId200Response.d.ts.map +0 -1
  276. package/dist/models/GetTweetResultByRestId200Response.js +0 -49
  277. package/dist/models/GetTweetResultByRestId200Response.js.map +0 -1
  278. package/dist/models/GetUserByRestId200Response.d.ts +0 -23
  279. package/dist/models/GetUserByRestId200Response.d.ts.map +0 -1
  280. package/dist/models/GetUserByRestId200Response.js +0 -49
  281. package/dist/models/GetUserByRestId200Response.js.map +0 -1
  282. package/dist/models/GetUserHighlightsTweets200Response.d.ts +0 -23
  283. package/dist/models/GetUserHighlightsTweets200Response.d.ts.map +0 -1
  284. package/dist/models/GetUserHighlightsTweets200Response.js +0 -49
  285. package/dist/models/GetUserHighlightsTweets200Response.js.map +0 -1
  286. package/dist/models/GetUsersByRestIds200Response.d.ts +0 -23
  287. package/dist/models/GetUsersByRestIds200Response.d.ts.map +0 -1
  288. package/dist/models/GetUsersByRestIds200Response.js +0 -49
  289. package/dist/models/GetUsersByRestIds200Response.js.map +0 -1
  290. package/dist/models/ModelError.d.ts.map +0 -1
  291. package/dist/models/ModelError.js.map +0 -1
  292. package/dist/models/OtherResponse.d.ts +0 -33
  293. package/dist/models/OtherResponse.d.ts.map +0 -1
  294. package/dist/models/OtherResponse.js.map +0 -1
  295. package/dist/models/PostCreateBookmark200Response.d.ts +0 -23
  296. package/dist/models/PostCreateBookmark200Response.d.ts.map +0 -1
  297. package/dist/models/PostCreateBookmark200Response.js +0 -49
  298. package/dist/models/PostCreateBookmark200Response.js.map +0 -1
  299. package/dist/models/PostCreateRetweet200Response.d.ts +0 -23
  300. package/dist/models/PostCreateRetweet200Response.d.ts.map +0 -1
  301. package/dist/models/PostCreateRetweet200Response.js +0 -49
  302. package/dist/models/PostCreateRetweet200Response.js.map +0 -1
  303. package/dist/models/PostCreateTweet200Response.d.ts +0 -23
  304. package/dist/models/PostCreateTweet200Response.d.ts.map +0 -1
  305. package/dist/models/PostCreateTweet200Response.js +0 -49
  306. package/dist/models/PostCreateTweet200Response.js.map +0 -1
  307. package/dist/models/PostDeleteBookmark200Response.d.ts +0 -23
  308. package/dist/models/PostDeleteBookmark200Response.d.ts.map +0 -1
  309. package/dist/models/PostDeleteBookmark200Response.js +0 -49
  310. package/dist/models/PostDeleteBookmark200Response.js.map +0 -1
  311. package/dist/models/PostDeleteRetweet200Response.d.ts +0 -23
  312. package/dist/models/PostDeleteRetweet200Response.d.ts.map +0 -1
  313. package/dist/models/PostDeleteRetweet200Response.js +0 -49
  314. package/dist/models/PostDeleteRetweet200Response.js.map +0 -1
  315. package/dist/models/PostDeleteTweet200Response.d.ts +0 -23
  316. package/dist/models/PostDeleteTweet200Response.d.ts.map +0 -1
  317. package/dist/models/PostDeleteTweet200Response.js +0 -49
  318. package/dist/models/PostDeleteTweet200Response.js.map +0 -1
  319. package/dist/models/PostFavoriteTweet200Response.d.ts +0 -23
  320. package/dist/models/PostFavoriteTweet200Response.d.ts.map +0 -1
  321. package/dist/models/PostFavoriteTweet200Response.js +0 -49
  322. package/dist/models/PostFavoriteTweet200Response.js.map +0 -1
  323. package/dist/models/PostUnfavoriteTweet200Response.d.ts +0 -23
  324. package/dist/models/PostUnfavoriteTweet200Response.d.ts.map +0 -1
  325. package/dist/models/PostUnfavoriteTweet200Response.js +0 -49
  326. package/dist/models/PostUnfavoriteTweet200Response.js.map +0 -1
  327. package/dist/models/UnfavoriteTweetResponseData.d.ts +0 -33
  328. package/dist/models/UnfavoriteTweetResponseData.d.ts.map +0 -1
  329. package/dist/models/UnfavoriteTweetResponseData.js +0 -49
  330. package/dist/models/UnfavoriteTweetResponseData.js.map +0 -1
@@ -80,9 +80,9 @@ var PostApi = /** @class */ (function (_super) {
80
80
  */
81
81
  PostApi.prototype.postCreateBookmarkRaw = function (requestParameters, initOverrides) {
82
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, token, tokenString, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, response;
84
- return __generator(this, function (_12) {
85
- switch (_12.label) {
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
86
  case 0:
87
87
  if (requestParameters['pathQueryId'] == null) {
88
88
  throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postCreateBookmark().');
@@ -98,164 +98,172 @@ var PostApi = /** @class */ (function (_super) {
98
98
  _b = "Accept";
99
99
  return [4 /*yield*/, this.configuration.apiKey("Accept")];
100
100
  case 1:
101
- _a[_b] = _12.sent(); // Accept authentication
102
- _12.label = 2;
101
+ _a[_b] = _14.sent(); // Accept authentication
102
+ _14.label = 2;
103
103
  case 2:
104
104
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
105
105
  _c = headerParameters;
106
106
  _d = "x-twitter-client-language";
107
107
  return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
108
108
  case 3:
109
- _c[_d] = _12.sent(); // ClientLanguage authentication
110
- _12.label = 4;
109
+ _c[_d] = _14.sent(); // ClientLanguage authentication
110
+ _14.label = 4;
111
111
  case 4:
112
112
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
113
113
  _e = headerParameters;
114
- _f = "Referer";
115
- return [4 /*yield*/, this.configuration.apiKey("Referer")];
114
+ _f = "Priority";
115
+ return [4 /*yield*/, this.configuration.apiKey("Priority")];
116
116
  case 5:
117
- _e[_f] = _12.sent(); // Referer authentication
118
- _12.label = 6;
117
+ _e[_f] = _14.sent(); // Priority authentication
118
+ _14.label = 6;
119
119
  case 6:
120
120
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
121
121
  _g = headerParameters;
122
- _h = "Sec-Fetch-Dest";
123
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
122
+ _h = "Referer";
123
+ return [4 /*yield*/, this.configuration.apiKey("Referer")];
124
124
  case 7:
125
- _g[_h] = _12.sent(); // SecFetchDest authentication
126
- _12.label = 8;
125
+ _g[_h] = _14.sent(); // Referer authentication
126
+ _14.label = 8;
127
127
  case 8:
128
128
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
129
129
  _j = headerParameters;
130
- _k = "Sec-Ch-Ua-Platform";
131
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
130
+ _k = "Sec-Fetch-Dest";
131
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
132
132
  case 9:
133
- _j[_k] = _12.sent(); // SecChUaPlatform authentication
134
- _12.label = 10;
133
+ _j[_k] = _14.sent(); // SecFetchDest authentication
134
+ _14.label = 10;
135
135
  case 10:
136
136
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
137
137
  _l = headerParameters;
138
- _m = "Sec-Fetch-Mode";
139
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
138
+ _m = "Sec-Ch-Ua-Platform";
139
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
140
140
  case 11:
141
- _l[_m] = _12.sent(); // SecFetchMode authentication
142
- _12.label = 12;
141
+ _l[_m] = _14.sent(); // SecChUaPlatform authentication
142
+ _14.label = 12;
143
143
  case 12:
144
144
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
145
145
  _o = headerParameters;
146
- _p = "x-csrf-token";
147
- return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
146
+ _p = "Sec-Fetch-Mode";
147
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
148
148
  case 13:
149
- _o[_p] = _12.sent(); // CsrfToken authentication
150
- _12.label = 14;
149
+ _o[_p] = _14.sent(); // SecFetchMode authentication
150
+ _14.label = 14;
151
151
  case 14:
152
152
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
153
153
  _q = headerParameters;
154
- _r = "x-client-uuid";
155
- return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
154
+ _r = "x-csrf-token";
155
+ return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
156
156
  case 15:
157
- _q[_r] = _12.sent(); // ClientUuid authentication
158
- _12.label = 16;
157
+ _q[_r] = _14.sent(); // CsrfToken authentication
158
+ _14.label = 16;
159
159
  case 16:
160
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
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];
161
169
  token = this.configuration.accessToken;
162
170
  return [4 /*yield*/, token("BearerAuth", [])];
163
- case 17:
164
- tokenString = _12.sent();
171
+ case 19:
172
+ tokenString = _14.sent();
165
173
  if (tokenString) {
166
174
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
167
175
  }
168
- _12.label = 18;
169
- case 18:
170
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
171
- _s = headerParameters;
172
- _t = "x-guest-token";
173
- return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
174
- case 19:
175
- _s[_t] = _12.sent(); // GuestToken authentication
176
- _12.label = 20;
176
+ _14.label = 20;
177
177
  case 20:
178
178
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
179
179
  _u = headerParameters;
180
- _v = "Sec-Ch-Ua";
181
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
180
+ _v = "x-guest-token";
181
+ return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
182
182
  case 21:
183
- _u[_v] = _12.sent(); // SecChUa authentication
184
- _12.label = 22;
183
+ _u[_v] = _14.sent(); // GuestToken authentication
184
+ _14.label = 22;
185
185
  case 22:
186
186
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
187
187
  _w = headerParameters;
188
- _x = "x-client-transaction-id";
189
- return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
188
+ _x = "Sec-Ch-Ua";
189
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
190
190
  case 23:
191
- _w[_x] = _12.sent(); // ClientTransactionId authentication
192
- _12.label = 24;
191
+ _w[_x] = _14.sent(); // SecChUa authentication
192
+ _14.label = 24;
193
193
  case 24:
194
194
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
195
195
  _y = headerParameters;
196
- _z = "x-twitter-active-user";
197
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
196
+ _z = "x-client-transaction-id";
197
+ return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
198
198
  case 25:
199
- _y[_z] = _12.sent(); // ActiveUser authentication
200
- _12.label = 26;
199
+ _y[_z] = _14.sent(); // ClientTransactionId authentication
200
+ _14.label = 26;
201
201
  case 26:
202
202
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
203
203
  _0 = headerParameters;
204
- _1 = "user-agent";
205
- return [4 /*yield*/, this.configuration.apiKey("user-agent")];
204
+ _1 = "x-twitter-active-user";
205
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
206
206
  case 27:
207
- _0[_1] = _12.sent(); // UserAgent authentication
208
- _12.label = 28;
207
+ _0[_1] = _14.sent(); // ActiveUser authentication
208
+ _14.label = 28;
209
209
  case 28:
210
210
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
211
211
  _2 = headerParameters;
212
- _3 = "Accept-Language";
213
- return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
212
+ _3 = "user-agent";
213
+ return [4 /*yield*/, this.configuration.apiKey("user-agent")];
214
214
  case 29:
215
- _2[_3] = _12.sent(); // AcceptLanguage authentication
216
- _12.label = 30;
215
+ _2[_3] = _14.sent(); // UserAgent authentication
216
+ _14.label = 30;
217
217
  case 30:
218
218
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
219
219
  _4 = headerParameters;
220
- _5 = "Sec-Fetch-Site";
221
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
220
+ _5 = "Accept-Language";
221
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
222
222
  case 31:
223
- _4[_5] = _12.sent(); // SecFetchSite authentication
224
- _12.label = 32;
223
+ _4[_5] = _14.sent(); // AcceptLanguage authentication
224
+ _14.label = 32;
225
225
  case 32:
226
226
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
227
227
  _6 = headerParameters;
228
- _7 = "x-twitter-auth-type";
229
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
228
+ _7 = "Sec-Fetch-Site";
229
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
230
230
  case 33:
231
- _6[_7] = _12.sent(); // AuthType authentication
232
- _12.label = 34;
231
+ _6[_7] = _14.sent(); // SecFetchSite authentication
232
+ _14.label = 34;
233
233
  case 34:
234
234
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
235
235
  _8 = headerParameters;
236
- _9 = "Sec-Ch-Ua-Mobile";
237
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
236
+ _9 = "x-twitter-auth-type";
237
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
238
238
  case 35:
239
- _8[_9] = _12.sent(); // SecChUaMobile authentication
240
- _12.label = 36;
239
+ _8[_9] = _14.sent(); // AuthType authentication
240
+ _14.label = 36;
241
241
  case 36:
242
242
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
243
243
  _10 = headerParameters;
244
- _11 = "Accept-Encoding";
245
- return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
244
+ _11 = "Sec-Ch-Ua-Mobile";
245
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
246
246
  case 37:
247
- _10[_11] = _12.sent(); // AcceptEncoding authentication
248
- _12.label = 38;
249
- case 38: return [4 /*yield*/, this.request({
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({
250
258
  path: "/graphql/{pathQueryId}/CreateBookmark".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
251
259
  method: 'POST',
252
260
  headers: headerParameters,
253
261
  query: queryParameters,
254
262
  body: (0, index_1.PostCreateBookmarkRequestToJSON)(requestParameters['postCreateBookmarkRequest']),
255
263
  }, initOverrides)];
256
- case 39:
257
- response = _12.sent();
258
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PostCreateBookmark200ResponseFromJSON)(jsonValue); })];
264
+ case 41:
265
+ response = _14.sent();
266
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.CreateBookmarkResponseFromJSON)(jsonValue); })];
259
267
  }
260
268
  });
261
269
  });
@@ -282,9 +290,9 @@ var PostApi = /** @class */ (function (_super) {
282
290
  */
283
291
  PostApi.prototype.postCreateRetweetRaw = function (requestParameters, initOverrides) {
284
292
  return __awaiter(this, void 0, void 0, function () {
285
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, token, tokenString, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, response;
286
- return __generator(this, function (_12) {
287
- switch (_12.label) {
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) {
288
296
  case 0:
289
297
  if (requestParameters['pathQueryId'] == null) {
290
298
  throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postCreateRetweet().');
@@ -300,164 +308,172 @@ var PostApi = /** @class */ (function (_super) {
300
308
  _b = "Accept";
301
309
  return [4 /*yield*/, this.configuration.apiKey("Accept")];
302
310
  case 1:
303
- _a[_b] = _12.sent(); // Accept authentication
304
- _12.label = 2;
311
+ _a[_b] = _14.sent(); // Accept authentication
312
+ _14.label = 2;
305
313
  case 2:
306
314
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
307
315
  _c = headerParameters;
308
316
  _d = "x-twitter-client-language";
309
317
  return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
310
318
  case 3:
311
- _c[_d] = _12.sent(); // ClientLanguage authentication
312
- _12.label = 4;
319
+ _c[_d] = _14.sent(); // ClientLanguage authentication
320
+ _14.label = 4;
313
321
  case 4:
314
322
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
315
323
  _e = headerParameters;
316
- _f = "Referer";
317
- return [4 /*yield*/, this.configuration.apiKey("Referer")];
324
+ _f = "Priority";
325
+ return [4 /*yield*/, this.configuration.apiKey("Priority")];
318
326
  case 5:
319
- _e[_f] = _12.sent(); // Referer authentication
320
- _12.label = 6;
327
+ _e[_f] = _14.sent(); // Priority authentication
328
+ _14.label = 6;
321
329
  case 6:
322
330
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
323
331
  _g = headerParameters;
324
- _h = "Sec-Fetch-Dest";
325
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
332
+ _h = "Referer";
333
+ return [4 /*yield*/, this.configuration.apiKey("Referer")];
326
334
  case 7:
327
- _g[_h] = _12.sent(); // SecFetchDest authentication
328
- _12.label = 8;
335
+ _g[_h] = _14.sent(); // Referer authentication
336
+ _14.label = 8;
329
337
  case 8:
330
338
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
331
339
  _j = headerParameters;
332
- _k = "Sec-Ch-Ua-Platform";
333
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
340
+ _k = "Sec-Fetch-Dest";
341
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
334
342
  case 9:
335
- _j[_k] = _12.sent(); // SecChUaPlatform authentication
336
- _12.label = 10;
343
+ _j[_k] = _14.sent(); // SecFetchDest authentication
344
+ _14.label = 10;
337
345
  case 10:
338
346
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
339
347
  _l = headerParameters;
340
- _m = "Sec-Fetch-Mode";
341
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
348
+ _m = "Sec-Ch-Ua-Platform";
349
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
342
350
  case 11:
343
- _l[_m] = _12.sent(); // SecFetchMode authentication
344
- _12.label = 12;
351
+ _l[_m] = _14.sent(); // SecChUaPlatform authentication
352
+ _14.label = 12;
345
353
  case 12:
346
354
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
347
355
  _o = headerParameters;
348
- _p = "x-csrf-token";
349
- return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
356
+ _p = "Sec-Fetch-Mode";
357
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
350
358
  case 13:
351
- _o[_p] = _12.sent(); // CsrfToken authentication
352
- _12.label = 14;
359
+ _o[_p] = _14.sent(); // SecFetchMode authentication
360
+ _14.label = 14;
353
361
  case 14:
354
362
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
355
363
  _q = headerParameters;
356
- _r = "x-client-uuid";
357
- return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
364
+ _r = "x-csrf-token";
365
+ return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
358
366
  case 15:
359
- _q[_r] = _12.sent(); // ClientUuid authentication
360
- _12.label = 16;
367
+ _q[_r] = _14.sent(); // CsrfToken authentication
368
+ _14.label = 16;
361
369
  case 16:
362
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
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];
363
379
  token = this.configuration.accessToken;
364
380
  return [4 /*yield*/, token("BearerAuth", [])];
365
- case 17:
366
- tokenString = _12.sent();
381
+ case 19:
382
+ tokenString = _14.sent();
367
383
  if (tokenString) {
368
384
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
369
385
  }
370
- _12.label = 18;
371
- case 18:
372
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
373
- _s = headerParameters;
374
- _t = "x-guest-token";
375
- return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
376
- case 19:
377
- _s[_t] = _12.sent(); // GuestToken authentication
378
- _12.label = 20;
386
+ _14.label = 20;
379
387
  case 20:
380
388
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
381
389
  _u = headerParameters;
382
- _v = "Sec-Ch-Ua";
383
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
390
+ _v = "x-guest-token";
391
+ return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
384
392
  case 21:
385
- _u[_v] = _12.sent(); // SecChUa authentication
386
- _12.label = 22;
393
+ _u[_v] = _14.sent(); // GuestToken authentication
394
+ _14.label = 22;
387
395
  case 22:
388
396
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
389
397
  _w = headerParameters;
390
- _x = "x-client-transaction-id";
391
- return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
398
+ _x = "Sec-Ch-Ua";
399
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
392
400
  case 23:
393
- _w[_x] = _12.sent(); // ClientTransactionId authentication
394
- _12.label = 24;
401
+ _w[_x] = _14.sent(); // SecChUa authentication
402
+ _14.label = 24;
395
403
  case 24:
396
404
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
397
405
  _y = headerParameters;
398
- _z = "x-twitter-active-user";
399
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
406
+ _z = "x-client-transaction-id";
407
+ return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
400
408
  case 25:
401
- _y[_z] = _12.sent(); // ActiveUser authentication
402
- _12.label = 26;
409
+ _y[_z] = _14.sent(); // ClientTransactionId authentication
410
+ _14.label = 26;
403
411
  case 26:
404
412
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
405
413
  _0 = headerParameters;
406
- _1 = "user-agent";
407
- return [4 /*yield*/, this.configuration.apiKey("user-agent")];
414
+ _1 = "x-twitter-active-user";
415
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
408
416
  case 27:
409
- _0[_1] = _12.sent(); // UserAgent authentication
410
- _12.label = 28;
417
+ _0[_1] = _14.sent(); // ActiveUser authentication
418
+ _14.label = 28;
411
419
  case 28:
412
420
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
413
421
  _2 = headerParameters;
414
- _3 = "Accept-Language";
415
- return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
422
+ _3 = "user-agent";
423
+ return [4 /*yield*/, this.configuration.apiKey("user-agent")];
416
424
  case 29:
417
- _2[_3] = _12.sent(); // AcceptLanguage authentication
418
- _12.label = 30;
425
+ _2[_3] = _14.sent(); // UserAgent authentication
426
+ _14.label = 30;
419
427
  case 30:
420
428
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
421
429
  _4 = headerParameters;
422
- _5 = "Sec-Fetch-Site";
423
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
430
+ _5 = "Accept-Language";
431
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
424
432
  case 31:
425
- _4[_5] = _12.sent(); // SecFetchSite authentication
426
- _12.label = 32;
433
+ _4[_5] = _14.sent(); // AcceptLanguage authentication
434
+ _14.label = 32;
427
435
  case 32:
428
436
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
429
437
  _6 = headerParameters;
430
- _7 = "x-twitter-auth-type";
431
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
438
+ _7 = "Sec-Fetch-Site";
439
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
432
440
  case 33:
433
- _6[_7] = _12.sent(); // AuthType authentication
434
- _12.label = 34;
441
+ _6[_7] = _14.sent(); // SecFetchSite authentication
442
+ _14.label = 34;
435
443
  case 34:
436
444
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
437
445
  _8 = headerParameters;
438
- _9 = "Sec-Ch-Ua-Mobile";
439
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
446
+ _9 = "x-twitter-auth-type";
447
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
440
448
  case 35:
441
- _8[_9] = _12.sent(); // SecChUaMobile authentication
442
- _12.label = 36;
449
+ _8[_9] = _14.sent(); // AuthType authentication
450
+ _14.label = 36;
443
451
  case 36:
444
452
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
445
453
  _10 = headerParameters;
446
- _11 = "Accept-Encoding";
447
- return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
454
+ _11 = "Sec-Ch-Ua-Mobile";
455
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
448
456
  case 37:
449
- _10[_11] = _12.sent(); // AcceptEncoding authentication
450
- _12.label = 38;
451
- case 38: return [4 /*yield*/, this.request({
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({
452
468
  path: "/graphql/{pathQueryId}/CreateRetweet".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
453
469
  method: 'POST',
454
470
  headers: headerParameters,
455
471
  query: queryParameters,
456
472
  body: (0, index_1.PostCreateRetweetRequestToJSON)(requestParameters['postCreateRetweetRequest']),
457
473
  }, initOverrides)];
458
- case 39:
459
- response = _12.sent();
460
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PostCreateRetweet200ResponseFromJSON)(jsonValue); })];
474
+ case 41:
475
+ response = _14.sent();
476
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.CreateRetweetResponseFromJSON)(jsonValue); })];
461
477
  }
462
478
  });
463
479
  });
@@ -484,9 +500,9 @@ var PostApi = /** @class */ (function (_super) {
484
500
  */
485
501
  PostApi.prototype.postCreateTweetRaw = function (requestParameters, initOverrides) {
486
502
  return __awaiter(this, void 0, void 0, function () {
487
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, token, tokenString, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, response;
488
- return __generator(this, function (_12) {
489
- switch (_12.label) {
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) {
490
506
  case 0:
491
507
  if (requestParameters['pathQueryId'] == null) {
492
508
  throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postCreateTweet().');
@@ -502,164 +518,172 @@ var PostApi = /** @class */ (function (_super) {
502
518
  _b = "Accept";
503
519
  return [4 /*yield*/, this.configuration.apiKey("Accept")];
504
520
  case 1:
505
- _a[_b] = _12.sent(); // Accept authentication
506
- _12.label = 2;
521
+ _a[_b] = _14.sent(); // Accept authentication
522
+ _14.label = 2;
507
523
  case 2:
508
524
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
509
525
  _c = headerParameters;
510
526
  _d = "x-twitter-client-language";
511
527
  return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
512
528
  case 3:
513
- _c[_d] = _12.sent(); // ClientLanguage authentication
514
- _12.label = 4;
529
+ _c[_d] = _14.sent(); // ClientLanguage authentication
530
+ _14.label = 4;
515
531
  case 4:
516
532
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
517
533
  _e = headerParameters;
518
- _f = "Referer";
519
- return [4 /*yield*/, this.configuration.apiKey("Referer")];
534
+ _f = "Priority";
535
+ return [4 /*yield*/, this.configuration.apiKey("Priority")];
520
536
  case 5:
521
- _e[_f] = _12.sent(); // Referer authentication
522
- _12.label = 6;
537
+ _e[_f] = _14.sent(); // Priority authentication
538
+ _14.label = 6;
523
539
  case 6:
524
540
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
525
541
  _g = headerParameters;
526
- _h = "Sec-Fetch-Dest";
527
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
542
+ _h = "Referer";
543
+ return [4 /*yield*/, this.configuration.apiKey("Referer")];
528
544
  case 7:
529
- _g[_h] = _12.sent(); // SecFetchDest authentication
530
- _12.label = 8;
545
+ _g[_h] = _14.sent(); // Referer authentication
546
+ _14.label = 8;
531
547
  case 8:
532
548
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
533
549
  _j = headerParameters;
534
- _k = "Sec-Ch-Ua-Platform";
535
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
550
+ _k = "Sec-Fetch-Dest";
551
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
536
552
  case 9:
537
- _j[_k] = _12.sent(); // SecChUaPlatform authentication
538
- _12.label = 10;
553
+ _j[_k] = _14.sent(); // SecFetchDest authentication
554
+ _14.label = 10;
539
555
  case 10:
540
556
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
541
557
  _l = headerParameters;
542
- _m = "Sec-Fetch-Mode";
543
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
558
+ _m = "Sec-Ch-Ua-Platform";
559
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
544
560
  case 11:
545
- _l[_m] = _12.sent(); // SecFetchMode authentication
546
- _12.label = 12;
561
+ _l[_m] = _14.sent(); // SecChUaPlatform authentication
562
+ _14.label = 12;
547
563
  case 12:
548
564
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
549
565
  _o = headerParameters;
550
- _p = "x-csrf-token";
551
- return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
566
+ _p = "Sec-Fetch-Mode";
567
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
552
568
  case 13:
553
- _o[_p] = _12.sent(); // CsrfToken authentication
554
- _12.label = 14;
569
+ _o[_p] = _14.sent(); // SecFetchMode authentication
570
+ _14.label = 14;
555
571
  case 14:
556
572
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
557
573
  _q = headerParameters;
558
- _r = "x-client-uuid";
559
- return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
574
+ _r = "x-csrf-token";
575
+ return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
560
576
  case 15:
561
- _q[_r] = _12.sent(); // ClientUuid authentication
562
- _12.label = 16;
577
+ _q[_r] = _14.sent(); // CsrfToken authentication
578
+ _14.label = 16;
563
579
  case 16:
564
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
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];
565
589
  token = this.configuration.accessToken;
566
590
  return [4 /*yield*/, token("BearerAuth", [])];
567
- case 17:
568
- tokenString = _12.sent();
591
+ case 19:
592
+ tokenString = _14.sent();
569
593
  if (tokenString) {
570
594
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
571
595
  }
572
- _12.label = 18;
573
- case 18:
574
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
575
- _s = headerParameters;
576
- _t = "x-guest-token";
577
- return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
578
- case 19:
579
- _s[_t] = _12.sent(); // GuestToken authentication
580
- _12.label = 20;
596
+ _14.label = 20;
581
597
  case 20:
582
598
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
583
599
  _u = headerParameters;
584
- _v = "Sec-Ch-Ua";
585
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
600
+ _v = "x-guest-token";
601
+ return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
586
602
  case 21:
587
- _u[_v] = _12.sent(); // SecChUa authentication
588
- _12.label = 22;
603
+ _u[_v] = _14.sent(); // GuestToken authentication
604
+ _14.label = 22;
589
605
  case 22:
590
606
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
591
607
  _w = headerParameters;
592
- _x = "x-client-transaction-id";
593
- return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
608
+ _x = "Sec-Ch-Ua";
609
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
594
610
  case 23:
595
- _w[_x] = _12.sent(); // ClientTransactionId authentication
596
- _12.label = 24;
611
+ _w[_x] = _14.sent(); // SecChUa authentication
612
+ _14.label = 24;
597
613
  case 24:
598
614
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
599
615
  _y = headerParameters;
600
- _z = "x-twitter-active-user";
601
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
616
+ _z = "x-client-transaction-id";
617
+ return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
602
618
  case 25:
603
- _y[_z] = _12.sent(); // ActiveUser authentication
604
- _12.label = 26;
619
+ _y[_z] = _14.sent(); // ClientTransactionId authentication
620
+ _14.label = 26;
605
621
  case 26:
606
622
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
607
623
  _0 = headerParameters;
608
- _1 = "user-agent";
609
- return [4 /*yield*/, this.configuration.apiKey("user-agent")];
624
+ _1 = "x-twitter-active-user";
625
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
610
626
  case 27:
611
- _0[_1] = _12.sent(); // UserAgent authentication
612
- _12.label = 28;
627
+ _0[_1] = _14.sent(); // ActiveUser authentication
628
+ _14.label = 28;
613
629
  case 28:
614
630
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
615
631
  _2 = headerParameters;
616
- _3 = "Accept-Language";
617
- return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
632
+ _3 = "user-agent";
633
+ return [4 /*yield*/, this.configuration.apiKey("user-agent")];
618
634
  case 29:
619
- _2[_3] = _12.sent(); // AcceptLanguage authentication
620
- _12.label = 30;
635
+ _2[_3] = _14.sent(); // UserAgent authentication
636
+ _14.label = 30;
621
637
  case 30:
622
638
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
623
639
  _4 = headerParameters;
624
- _5 = "Sec-Fetch-Site";
625
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
640
+ _5 = "Accept-Language";
641
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
626
642
  case 31:
627
- _4[_5] = _12.sent(); // SecFetchSite authentication
628
- _12.label = 32;
643
+ _4[_5] = _14.sent(); // AcceptLanguage authentication
644
+ _14.label = 32;
629
645
  case 32:
630
646
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
631
647
  _6 = headerParameters;
632
- _7 = "x-twitter-auth-type";
633
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
648
+ _7 = "Sec-Fetch-Site";
649
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
634
650
  case 33:
635
- _6[_7] = _12.sent(); // AuthType authentication
636
- _12.label = 34;
651
+ _6[_7] = _14.sent(); // SecFetchSite authentication
652
+ _14.label = 34;
637
653
  case 34:
638
654
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
639
655
  _8 = headerParameters;
640
- _9 = "Sec-Ch-Ua-Mobile";
641
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
656
+ _9 = "x-twitter-auth-type";
657
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
642
658
  case 35:
643
- _8[_9] = _12.sent(); // SecChUaMobile authentication
644
- _12.label = 36;
659
+ _8[_9] = _14.sent(); // AuthType authentication
660
+ _14.label = 36;
645
661
  case 36:
646
662
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
647
663
  _10 = headerParameters;
648
- _11 = "Accept-Encoding";
649
- return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
664
+ _11 = "Sec-Ch-Ua-Mobile";
665
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
650
666
  case 37:
651
- _10[_11] = _12.sent(); // AcceptEncoding authentication
652
- _12.label = 38;
653
- case 38: return [4 /*yield*/, this.request({
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({
654
678
  path: "/graphql/{pathQueryId}/CreateTweet".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
655
679
  method: 'POST',
656
680
  headers: headerParameters,
657
681
  query: queryParameters,
658
682
  body: (0, index_1.PostCreateTweetRequestToJSON)(requestParameters['postCreateTweetRequest']),
659
683
  }, initOverrides)];
660
- case 39:
661
- response = _12.sent();
662
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PostCreateTweet200ResponseFromJSON)(jsonValue); })];
684
+ case 41:
685
+ response = _14.sent();
686
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.CreateTweetResponseFromJSON)(jsonValue); })];
663
687
  }
664
688
  });
665
689
  });
@@ -686,9 +710,9 @@ var PostApi = /** @class */ (function (_super) {
686
710
  */
687
711
  PostApi.prototype.postDeleteBookmarkRaw = function (requestParameters, initOverrides) {
688
712
  return __awaiter(this, void 0, void 0, function () {
689
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, token, tokenString, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, response;
690
- return __generator(this, function (_12) {
691
- switch (_12.label) {
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) {
692
716
  case 0:
693
717
  if (requestParameters['pathQueryId'] == null) {
694
718
  throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postDeleteBookmark().');
@@ -704,164 +728,172 @@ var PostApi = /** @class */ (function (_super) {
704
728
  _b = "Accept";
705
729
  return [4 /*yield*/, this.configuration.apiKey("Accept")];
706
730
  case 1:
707
- _a[_b] = _12.sent(); // Accept authentication
708
- _12.label = 2;
731
+ _a[_b] = _14.sent(); // Accept authentication
732
+ _14.label = 2;
709
733
  case 2:
710
734
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
711
735
  _c = headerParameters;
712
736
  _d = "x-twitter-client-language";
713
737
  return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
714
738
  case 3:
715
- _c[_d] = _12.sent(); // ClientLanguage authentication
716
- _12.label = 4;
739
+ _c[_d] = _14.sent(); // ClientLanguage authentication
740
+ _14.label = 4;
717
741
  case 4:
718
742
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
719
743
  _e = headerParameters;
720
- _f = "Referer";
721
- return [4 /*yield*/, this.configuration.apiKey("Referer")];
744
+ _f = "Priority";
745
+ return [4 /*yield*/, this.configuration.apiKey("Priority")];
722
746
  case 5:
723
- _e[_f] = _12.sent(); // Referer authentication
724
- _12.label = 6;
747
+ _e[_f] = _14.sent(); // Priority authentication
748
+ _14.label = 6;
725
749
  case 6:
726
750
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
727
751
  _g = headerParameters;
728
- _h = "Sec-Fetch-Dest";
729
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
752
+ _h = "Referer";
753
+ return [4 /*yield*/, this.configuration.apiKey("Referer")];
730
754
  case 7:
731
- _g[_h] = _12.sent(); // SecFetchDest authentication
732
- _12.label = 8;
755
+ _g[_h] = _14.sent(); // Referer authentication
756
+ _14.label = 8;
733
757
  case 8:
734
758
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
735
759
  _j = headerParameters;
736
- _k = "Sec-Ch-Ua-Platform";
737
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
760
+ _k = "Sec-Fetch-Dest";
761
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
738
762
  case 9:
739
- _j[_k] = _12.sent(); // SecChUaPlatform authentication
740
- _12.label = 10;
763
+ _j[_k] = _14.sent(); // SecFetchDest authentication
764
+ _14.label = 10;
741
765
  case 10:
742
766
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
743
767
  _l = headerParameters;
744
- _m = "Sec-Fetch-Mode";
745
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
768
+ _m = "Sec-Ch-Ua-Platform";
769
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
746
770
  case 11:
747
- _l[_m] = _12.sent(); // SecFetchMode authentication
748
- _12.label = 12;
771
+ _l[_m] = _14.sent(); // SecChUaPlatform authentication
772
+ _14.label = 12;
749
773
  case 12:
750
774
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
751
775
  _o = headerParameters;
752
- _p = "x-csrf-token";
753
- return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
776
+ _p = "Sec-Fetch-Mode";
777
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
754
778
  case 13:
755
- _o[_p] = _12.sent(); // CsrfToken authentication
756
- _12.label = 14;
779
+ _o[_p] = _14.sent(); // SecFetchMode authentication
780
+ _14.label = 14;
757
781
  case 14:
758
782
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
759
783
  _q = headerParameters;
760
- _r = "x-client-uuid";
761
- return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
784
+ _r = "x-csrf-token";
785
+ return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
762
786
  case 15:
763
- _q[_r] = _12.sent(); // ClientUuid authentication
764
- _12.label = 16;
787
+ _q[_r] = _14.sent(); // CsrfToken authentication
788
+ _14.label = 16;
765
789
  case 16:
766
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
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];
767
799
  token = this.configuration.accessToken;
768
800
  return [4 /*yield*/, token("BearerAuth", [])];
769
- case 17:
770
- tokenString = _12.sent();
801
+ case 19:
802
+ tokenString = _14.sent();
771
803
  if (tokenString) {
772
804
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
773
805
  }
774
- _12.label = 18;
775
- case 18:
776
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
777
- _s = headerParameters;
778
- _t = "x-guest-token";
779
- return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
780
- case 19:
781
- _s[_t] = _12.sent(); // GuestToken authentication
782
- _12.label = 20;
806
+ _14.label = 20;
783
807
  case 20:
784
808
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
785
809
  _u = headerParameters;
786
- _v = "Sec-Ch-Ua";
787
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
810
+ _v = "x-guest-token";
811
+ return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
788
812
  case 21:
789
- _u[_v] = _12.sent(); // SecChUa authentication
790
- _12.label = 22;
813
+ _u[_v] = _14.sent(); // GuestToken authentication
814
+ _14.label = 22;
791
815
  case 22:
792
816
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
793
817
  _w = headerParameters;
794
- _x = "x-client-transaction-id";
795
- return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
818
+ _x = "Sec-Ch-Ua";
819
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
796
820
  case 23:
797
- _w[_x] = _12.sent(); // ClientTransactionId authentication
798
- _12.label = 24;
821
+ _w[_x] = _14.sent(); // SecChUa authentication
822
+ _14.label = 24;
799
823
  case 24:
800
824
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
801
825
  _y = headerParameters;
802
- _z = "x-twitter-active-user";
803
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
826
+ _z = "x-client-transaction-id";
827
+ return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
804
828
  case 25:
805
- _y[_z] = _12.sent(); // ActiveUser authentication
806
- _12.label = 26;
829
+ _y[_z] = _14.sent(); // ClientTransactionId authentication
830
+ _14.label = 26;
807
831
  case 26:
808
832
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
809
833
  _0 = headerParameters;
810
- _1 = "user-agent";
811
- return [4 /*yield*/, this.configuration.apiKey("user-agent")];
834
+ _1 = "x-twitter-active-user";
835
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
812
836
  case 27:
813
- _0[_1] = _12.sent(); // UserAgent authentication
814
- _12.label = 28;
837
+ _0[_1] = _14.sent(); // ActiveUser authentication
838
+ _14.label = 28;
815
839
  case 28:
816
840
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
817
841
  _2 = headerParameters;
818
- _3 = "Accept-Language";
819
- return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
842
+ _3 = "user-agent";
843
+ return [4 /*yield*/, this.configuration.apiKey("user-agent")];
820
844
  case 29:
821
- _2[_3] = _12.sent(); // AcceptLanguage authentication
822
- _12.label = 30;
845
+ _2[_3] = _14.sent(); // UserAgent authentication
846
+ _14.label = 30;
823
847
  case 30:
824
848
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
825
849
  _4 = headerParameters;
826
- _5 = "Sec-Fetch-Site";
827
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
850
+ _5 = "Accept-Language";
851
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
828
852
  case 31:
829
- _4[_5] = _12.sent(); // SecFetchSite authentication
830
- _12.label = 32;
853
+ _4[_5] = _14.sent(); // AcceptLanguage authentication
854
+ _14.label = 32;
831
855
  case 32:
832
856
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
833
857
  _6 = headerParameters;
834
- _7 = "x-twitter-auth-type";
835
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
858
+ _7 = "Sec-Fetch-Site";
859
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
836
860
  case 33:
837
- _6[_7] = _12.sent(); // AuthType authentication
838
- _12.label = 34;
861
+ _6[_7] = _14.sent(); // SecFetchSite authentication
862
+ _14.label = 34;
839
863
  case 34:
840
864
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
841
865
  _8 = headerParameters;
842
- _9 = "Sec-Ch-Ua-Mobile";
843
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
866
+ _9 = "x-twitter-auth-type";
867
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
844
868
  case 35:
845
- _8[_9] = _12.sent(); // SecChUaMobile authentication
846
- _12.label = 36;
869
+ _8[_9] = _14.sent(); // AuthType authentication
870
+ _14.label = 36;
847
871
  case 36:
848
872
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
849
873
  _10 = headerParameters;
850
- _11 = "Accept-Encoding";
851
- return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
874
+ _11 = "Sec-Ch-Ua-Mobile";
875
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
852
876
  case 37:
853
- _10[_11] = _12.sent(); // AcceptEncoding authentication
854
- _12.label = 38;
855
- case 38: return [4 /*yield*/, this.request({
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({
856
888
  path: "/graphql/{pathQueryId}/DeleteBookmark".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
857
889
  method: 'POST',
858
890
  headers: headerParameters,
859
891
  query: queryParameters,
860
892
  body: (0, index_1.PostDeleteBookmarkRequestToJSON)(requestParameters['postDeleteBookmarkRequest']),
861
893
  }, initOverrides)];
862
- case 39:
863
- response = _12.sent();
864
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PostDeleteBookmark200ResponseFromJSON)(jsonValue); })];
894
+ case 41:
895
+ response = _14.sent();
896
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DeleteBookmarkResponseFromJSON)(jsonValue); })];
865
897
  }
866
898
  });
867
899
  });
@@ -888,9 +920,9 @@ var PostApi = /** @class */ (function (_super) {
888
920
  */
889
921
  PostApi.prototype.postDeleteRetweetRaw = function (requestParameters, initOverrides) {
890
922
  return __awaiter(this, void 0, void 0, function () {
891
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, token, tokenString, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, response;
892
- return __generator(this, function (_12) {
893
- switch (_12.label) {
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) {
894
926
  case 0:
895
927
  if (requestParameters['pathQueryId'] == null) {
896
928
  throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postDeleteRetweet().');
@@ -906,164 +938,172 @@ var PostApi = /** @class */ (function (_super) {
906
938
  _b = "Accept";
907
939
  return [4 /*yield*/, this.configuration.apiKey("Accept")];
908
940
  case 1:
909
- _a[_b] = _12.sent(); // Accept authentication
910
- _12.label = 2;
941
+ _a[_b] = _14.sent(); // Accept authentication
942
+ _14.label = 2;
911
943
  case 2:
912
944
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
913
945
  _c = headerParameters;
914
946
  _d = "x-twitter-client-language";
915
947
  return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
916
948
  case 3:
917
- _c[_d] = _12.sent(); // ClientLanguage authentication
918
- _12.label = 4;
949
+ _c[_d] = _14.sent(); // ClientLanguage authentication
950
+ _14.label = 4;
919
951
  case 4:
920
952
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
921
953
  _e = headerParameters;
922
- _f = "Referer";
923
- return [4 /*yield*/, this.configuration.apiKey("Referer")];
954
+ _f = "Priority";
955
+ return [4 /*yield*/, this.configuration.apiKey("Priority")];
924
956
  case 5:
925
- _e[_f] = _12.sent(); // Referer authentication
926
- _12.label = 6;
957
+ _e[_f] = _14.sent(); // Priority authentication
958
+ _14.label = 6;
927
959
  case 6:
928
960
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
929
961
  _g = headerParameters;
930
- _h = "Sec-Fetch-Dest";
931
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
962
+ _h = "Referer";
963
+ return [4 /*yield*/, this.configuration.apiKey("Referer")];
932
964
  case 7:
933
- _g[_h] = _12.sent(); // SecFetchDest authentication
934
- _12.label = 8;
965
+ _g[_h] = _14.sent(); // Referer authentication
966
+ _14.label = 8;
935
967
  case 8:
936
968
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
937
969
  _j = headerParameters;
938
- _k = "Sec-Ch-Ua-Platform";
939
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
970
+ _k = "Sec-Fetch-Dest";
971
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
940
972
  case 9:
941
- _j[_k] = _12.sent(); // SecChUaPlatform authentication
942
- _12.label = 10;
973
+ _j[_k] = _14.sent(); // SecFetchDest authentication
974
+ _14.label = 10;
943
975
  case 10:
944
976
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
945
977
  _l = headerParameters;
946
- _m = "Sec-Fetch-Mode";
947
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
978
+ _m = "Sec-Ch-Ua-Platform";
979
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
948
980
  case 11:
949
- _l[_m] = _12.sent(); // SecFetchMode authentication
950
- _12.label = 12;
981
+ _l[_m] = _14.sent(); // SecChUaPlatform authentication
982
+ _14.label = 12;
951
983
  case 12:
952
984
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
953
985
  _o = headerParameters;
954
- _p = "x-csrf-token";
955
- return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
986
+ _p = "Sec-Fetch-Mode";
987
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
956
988
  case 13:
957
- _o[_p] = _12.sent(); // CsrfToken authentication
958
- _12.label = 14;
989
+ _o[_p] = _14.sent(); // SecFetchMode authentication
990
+ _14.label = 14;
959
991
  case 14:
960
992
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
961
993
  _q = headerParameters;
962
- _r = "x-client-uuid";
963
- return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
994
+ _r = "x-csrf-token";
995
+ return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
964
996
  case 15:
965
- _q[_r] = _12.sent(); // ClientUuid authentication
966
- _12.label = 16;
997
+ _q[_r] = _14.sent(); // CsrfToken authentication
998
+ _14.label = 16;
967
999
  case 16:
968
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
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];
969
1009
  token = this.configuration.accessToken;
970
1010
  return [4 /*yield*/, token("BearerAuth", [])];
971
- case 17:
972
- tokenString = _12.sent();
1011
+ case 19:
1012
+ tokenString = _14.sent();
973
1013
  if (tokenString) {
974
1014
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
975
1015
  }
976
- _12.label = 18;
977
- case 18:
978
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
979
- _s = headerParameters;
980
- _t = "x-guest-token";
981
- return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
982
- case 19:
983
- _s[_t] = _12.sent(); // GuestToken authentication
984
- _12.label = 20;
1016
+ _14.label = 20;
985
1017
  case 20:
986
1018
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
987
1019
  _u = headerParameters;
988
- _v = "Sec-Ch-Ua";
989
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
1020
+ _v = "x-guest-token";
1021
+ return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
990
1022
  case 21:
991
- _u[_v] = _12.sent(); // SecChUa authentication
992
- _12.label = 22;
1023
+ _u[_v] = _14.sent(); // GuestToken authentication
1024
+ _14.label = 22;
993
1025
  case 22:
994
1026
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
995
1027
  _w = headerParameters;
996
- _x = "x-client-transaction-id";
997
- return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
1028
+ _x = "Sec-Ch-Ua";
1029
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
998
1030
  case 23:
999
- _w[_x] = _12.sent(); // ClientTransactionId authentication
1000
- _12.label = 24;
1031
+ _w[_x] = _14.sent(); // SecChUa authentication
1032
+ _14.label = 24;
1001
1033
  case 24:
1002
1034
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
1003
1035
  _y = headerParameters;
1004
- _z = "x-twitter-active-user";
1005
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
1036
+ _z = "x-client-transaction-id";
1037
+ return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
1006
1038
  case 25:
1007
- _y[_z] = _12.sent(); // ActiveUser authentication
1008
- _12.label = 26;
1039
+ _y[_z] = _14.sent(); // ClientTransactionId authentication
1040
+ _14.label = 26;
1009
1041
  case 26:
1010
1042
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
1011
1043
  _0 = headerParameters;
1012
- _1 = "user-agent";
1013
- return [4 /*yield*/, this.configuration.apiKey("user-agent")];
1044
+ _1 = "x-twitter-active-user";
1045
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
1014
1046
  case 27:
1015
- _0[_1] = _12.sent(); // UserAgent authentication
1016
- _12.label = 28;
1047
+ _0[_1] = _14.sent(); // ActiveUser authentication
1048
+ _14.label = 28;
1017
1049
  case 28:
1018
1050
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
1019
1051
  _2 = headerParameters;
1020
- _3 = "Accept-Language";
1021
- return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
1052
+ _3 = "user-agent";
1053
+ return [4 /*yield*/, this.configuration.apiKey("user-agent")];
1022
1054
  case 29:
1023
- _2[_3] = _12.sent(); // AcceptLanguage authentication
1024
- _12.label = 30;
1055
+ _2[_3] = _14.sent(); // UserAgent authentication
1056
+ _14.label = 30;
1025
1057
  case 30:
1026
1058
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
1027
1059
  _4 = headerParameters;
1028
- _5 = "Sec-Fetch-Site";
1029
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
1060
+ _5 = "Accept-Language";
1061
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
1030
1062
  case 31:
1031
- _4[_5] = _12.sent(); // SecFetchSite authentication
1032
- _12.label = 32;
1063
+ _4[_5] = _14.sent(); // AcceptLanguage authentication
1064
+ _14.label = 32;
1033
1065
  case 32:
1034
1066
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
1035
1067
  _6 = headerParameters;
1036
- _7 = "x-twitter-auth-type";
1037
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
1068
+ _7 = "Sec-Fetch-Site";
1069
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
1038
1070
  case 33:
1039
- _6[_7] = _12.sent(); // AuthType authentication
1040
- _12.label = 34;
1071
+ _6[_7] = _14.sent(); // SecFetchSite authentication
1072
+ _14.label = 34;
1041
1073
  case 34:
1042
1074
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
1043
1075
  _8 = headerParameters;
1044
- _9 = "Sec-Ch-Ua-Mobile";
1045
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
1076
+ _9 = "x-twitter-auth-type";
1077
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
1046
1078
  case 35:
1047
- _8[_9] = _12.sent(); // SecChUaMobile authentication
1048
- _12.label = 36;
1079
+ _8[_9] = _14.sent(); // AuthType authentication
1080
+ _14.label = 36;
1049
1081
  case 36:
1050
1082
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
1051
1083
  _10 = headerParameters;
1052
- _11 = "Accept-Encoding";
1053
- return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
1084
+ _11 = "Sec-Ch-Ua-Mobile";
1085
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
1054
1086
  case 37:
1055
- _10[_11] = _12.sent(); // AcceptEncoding authentication
1056
- _12.label = 38;
1057
- case 38: return [4 /*yield*/, this.request({
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({
1058
1098
  path: "/graphql/{pathQueryId}/DeleteRetweet".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
1059
1099
  method: 'POST',
1060
1100
  headers: headerParameters,
1061
1101
  query: queryParameters,
1062
1102
  body: (0, index_1.PostDeleteRetweetRequestToJSON)(requestParameters['postDeleteRetweetRequest']),
1063
1103
  }, initOverrides)];
1064
- case 39:
1065
- response = _12.sent();
1066
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PostDeleteRetweet200ResponseFromJSON)(jsonValue); })];
1104
+ case 41:
1105
+ response = _14.sent();
1106
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DeleteRetweetResponseFromJSON)(jsonValue); })];
1067
1107
  }
1068
1108
  });
1069
1109
  });
@@ -1090,9 +1130,9 @@ var PostApi = /** @class */ (function (_super) {
1090
1130
  */
1091
1131
  PostApi.prototype.postDeleteTweetRaw = function (requestParameters, initOverrides) {
1092
1132
  return __awaiter(this, void 0, void 0, function () {
1093
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, token, tokenString, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, response;
1094
- return __generator(this, function (_12) {
1095
- switch (_12.label) {
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) {
1096
1136
  case 0:
1097
1137
  if (requestParameters['pathQueryId'] == null) {
1098
1138
  throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postDeleteTweet().');
@@ -1108,164 +1148,172 @@ var PostApi = /** @class */ (function (_super) {
1108
1148
  _b = "Accept";
1109
1149
  return [4 /*yield*/, this.configuration.apiKey("Accept")];
1110
1150
  case 1:
1111
- _a[_b] = _12.sent(); // Accept authentication
1112
- _12.label = 2;
1151
+ _a[_b] = _14.sent(); // Accept authentication
1152
+ _14.label = 2;
1113
1153
  case 2:
1114
1154
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
1115
1155
  _c = headerParameters;
1116
1156
  _d = "x-twitter-client-language";
1117
1157
  return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
1118
1158
  case 3:
1119
- _c[_d] = _12.sent(); // ClientLanguage authentication
1120
- _12.label = 4;
1159
+ _c[_d] = _14.sent(); // ClientLanguage authentication
1160
+ _14.label = 4;
1121
1161
  case 4:
1122
1162
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
1123
1163
  _e = headerParameters;
1124
- _f = "Referer";
1125
- return [4 /*yield*/, this.configuration.apiKey("Referer")];
1164
+ _f = "Priority";
1165
+ return [4 /*yield*/, this.configuration.apiKey("Priority")];
1126
1166
  case 5:
1127
- _e[_f] = _12.sent(); // Referer authentication
1128
- _12.label = 6;
1167
+ _e[_f] = _14.sent(); // Priority authentication
1168
+ _14.label = 6;
1129
1169
  case 6:
1130
1170
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
1131
1171
  _g = headerParameters;
1132
- _h = "Sec-Fetch-Dest";
1133
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
1172
+ _h = "Referer";
1173
+ return [4 /*yield*/, this.configuration.apiKey("Referer")];
1134
1174
  case 7:
1135
- _g[_h] = _12.sent(); // SecFetchDest authentication
1136
- _12.label = 8;
1175
+ _g[_h] = _14.sent(); // Referer authentication
1176
+ _14.label = 8;
1137
1177
  case 8:
1138
1178
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
1139
1179
  _j = headerParameters;
1140
- _k = "Sec-Ch-Ua-Platform";
1141
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
1180
+ _k = "Sec-Fetch-Dest";
1181
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
1142
1182
  case 9:
1143
- _j[_k] = _12.sent(); // SecChUaPlatform authentication
1144
- _12.label = 10;
1183
+ _j[_k] = _14.sent(); // SecFetchDest authentication
1184
+ _14.label = 10;
1145
1185
  case 10:
1146
1186
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
1147
1187
  _l = headerParameters;
1148
- _m = "Sec-Fetch-Mode";
1149
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
1188
+ _m = "Sec-Ch-Ua-Platform";
1189
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
1150
1190
  case 11:
1151
- _l[_m] = _12.sent(); // SecFetchMode authentication
1152
- _12.label = 12;
1191
+ _l[_m] = _14.sent(); // SecChUaPlatform authentication
1192
+ _14.label = 12;
1153
1193
  case 12:
1154
1194
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
1155
1195
  _o = headerParameters;
1156
- _p = "x-csrf-token";
1157
- return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
1196
+ _p = "Sec-Fetch-Mode";
1197
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
1158
1198
  case 13:
1159
- _o[_p] = _12.sent(); // CsrfToken authentication
1160
- _12.label = 14;
1199
+ _o[_p] = _14.sent(); // SecFetchMode authentication
1200
+ _14.label = 14;
1161
1201
  case 14:
1162
1202
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
1163
1203
  _q = headerParameters;
1164
- _r = "x-client-uuid";
1165
- return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
1204
+ _r = "x-csrf-token";
1205
+ return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
1166
1206
  case 15:
1167
- _q[_r] = _12.sent(); // ClientUuid authentication
1168
- _12.label = 16;
1207
+ _q[_r] = _14.sent(); // CsrfToken authentication
1208
+ _14.label = 16;
1169
1209
  case 16:
1170
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
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];
1171
1219
  token = this.configuration.accessToken;
1172
1220
  return [4 /*yield*/, token("BearerAuth", [])];
1173
- case 17:
1174
- tokenString = _12.sent();
1221
+ case 19:
1222
+ tokenString = _14.sent();
1175
1223
  if (tokenString) {
1176
1224
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
1177
1225
  }
1178
- _12.label = 18;
1179
- case 18:
1180
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
1181
- _s = headerParameters;
1182
- _t = "x-guest-token";
1183
- return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
1184
- case 19:
1185
- _s[_t] = _12.sent(); // GuestToken authentication
1186
- _12.label = 20;
1226
+ _14.label = 20;
1187
1227
  case 20:
1188
1228
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
1189
1229
  _u = headerParameters;
1190
- _v = "Sec-Ch-Ua";
1191
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
1230
+ _v = "x-guest-token";
1231
+ return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
1192
1232
  case 21:
1193
- _u[_v] = _12.sent(); // SecChUa authentication
1194
- _12.label = 22;
1233
+ _u[_v] = _14.sent(); // GuestToken authentication
1234
+ _14.label = 22;
1195
1235
  case 22:
1196
1236
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
1197
1237
  _w = headerParameters;
1198
- _x = "x-client-transaction-id";
1199
- return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
1238
+ _x = "Sec-Ch-Ua";
1239
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
1200
1240
  case 23:
1201
- _w[_x] = _12.sent(); // ClientTransactionId authentication
1202
- _12.label = 24;
1241
+ _w[_x] = _14.sent(); // SecChUa authentication
1242
+ _14.label = 24;
1203
1243
  case 24:
1204
1244
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
1205
1245
  _y = headerParameters;
1206
- _z = "x-twitter-active-user";
1207
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
1246
+ _z = "x-client-transaction-id";
1247
+ return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
1208
1248
  case 25:
1209
- _y[_z] = _12.sent(); // ActiveUser authentication
1210
- _12.label = 26;
1249
+ _y[_z] = _14.sent(); // ClientTransactionId authentication
1250
+ _14.label = 26;
1211
1251
  case 26:
1212
1252
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
1213
1253
  _0 = headerParameters;
1214
- _1 = "user-agent";
1215
- return [4 /*yield*/, this.configuration.apiKey("user-agent")];
1254
+ _1 = "x-twitter-active-user";
1255
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
1216
1256
  case 27:
1217
- _0[_1] = _12.sent(); // UserAgent authentication
1218
- _12.label = 28;
1257
+ _0[_1] = _14.sent(); // ActiveUser authentication
1258
+ _14.label = 28;
1219
1259
  case 28:
1220
1260
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
1221
1261
  _2 = headerParameters;
1222
- _3 = "Accept-Language";
1223
- return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
1262
+ _3 = "user-agent";
1263
+ return [4 /*yield*/, this.configuration.apiKey("user-agent")];
1224
1264
  case 29:
1225
- _2[_3] = _12.sent(); // AcceptLanguage authentication
1226
- _12.label = 30;
1265
+ _2[_3] = _14.sent(); // UserAgent authentication
1266
+ _14.label = 30;
1227
1267
  case 30:
1228
1268
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
1229
1269
  _4 = headerParameters;
1230
- _5 = "Sec-Fetch-Site";
1231
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
1270
+ _5 = "Accept-Language";
1271
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
1232
1272
  case 31:
1233
- _4[_5] = _12.sent(); // SecFetchSite authentication
1234
- _12.label = 32;
1273
+ _4[_5] = _14.sent(); // AcceptLanguage authentication
1274
+ _14.label = 32;
1235
1275
  case 32:
1236
1276
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
1237
1277
  _6 = headerParameters;
1238
- _7 = "x-twitter-auth-type";
1239
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
1278
+ _7 = "Sec-Fetch-Site";
1279
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
1240
1280
  case 33:
1241
- _6[_7] = _12.sent(); // AuthType authentication
1242
- _12.label = 34;
1281
+ _6[_7] = _14.sent(); // SecFetchSite authentication
1282
+ _14.label = 34;
1243
1283
  case 34:
1244
1284
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
1245
1285
  _8 = headerParameters;
1246
- _9 = "Sec-Ch-Ua-Mobile";
1247
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
1286
+ _9 = "x-twitter-auth-type";
1287
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
1248
1288
  case 35:
1249
- _8[_9] = _12.sent(); // SecChUaMobile authentication
1250
- _12.label = 36;
1289
+ _8[_9] = _14.sent(); // AuthType authentication
1290
+ _14.label = 36;
1251
1291
  case 36:
1252
1292
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
1253
1293
  _10 = headerParameters;
1254
- _11 = "Accept-Encoding";
1255
- return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
1294
+ _11 = "Sec-Ch-Ua-Mobile";
1295
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
1256
1296
  case 37:
1257
- _10[_11] = _12.sent(); // AcceptEncoding authentication
1258
- _12.label = 38;
1259
- case 38: return [4 /*yield*/, this.request({
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({
1260
1308
  path: "/graphql/{pathQueryId}/DeleteTweet".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
1261
1309
  method: 'POST',
1262
1310
  headers: headerParameters,
1263
1311
  query: queryParameters,
1264
1312
  body: (0, index_1.PostDeleteTweetRequestToJSON)(requestParameters['postDeleteTweetRequest']),
1265
1313
  }, initOverrides)];
1266
- case 39:
1267
- response = _12.sent();
1268
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PostDeleteTweet200ResponseFromJSON)(jsonValue); })];
1314
+ case 41:
1315
+ response = _14.sent();
1316
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DeleteTweetResponseFromJSON)(jsonValue); })];
1269
1317
  }
1270
1318
  });
1271
1319
  });
@@ -1292,9 +1340,9 @@ var PostApi = /** @class */ (function (_super) {
1292
1340
  */
1293
1341
  PostApi.prototype.postFavoriteTweetRaw = function (requestParameters, initOverrides) {
1294
1342
  return __awaiter(this, void 0, void 0, function () {
1295
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, token, tokenString, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, response;
1296
- return __generator(this, function (_12) {
1297
- switch (_12.label) {
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) {
1298
1346
  case 0:
1299
1347
  if (requestParameters['pathQueryId'] == null) {
1300
1348
  throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postFavoriteTweet().');
@@ -1310,164 +1358,172 @@ var PostApi = /** @class */ (function (_super) {
1310
1358
  _b = "Accept";
1311
1359
  return [4 /*yield*/, this.configuration.apiKey("Accept")];
1312
1360
  case 1:
1313
- _a[_b] = _12.sent(); // Accept authentication
1314
- _12.label = 2;
1361
+ _a[_b] = _14.sent(); // Accept authentication
1362
+ _14.label = 2;
1315
1363
  case 2:
1316
1364
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
1317
1365
  _c = headerParameters;
1318
1366
  _d = "x-twitter-client-language";
1319
1367
  return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
1320
1368
  case 3:
1321
- _c[_d] = _12.sent(); // ClientLanguage authentication
1322
- _12.label = 4;
1369
+ _c[_d] = _14.sent(); // ClientLanguage authentication
1370
+ _14.label = 4;
1323
1371
  case 4:
1324
1372
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
1325
1373
  _e = headerParameters;
1326
- _f = "Referer";
1327
- return [4 /*yield*/, this.configuration.apiKey("Referer")];
1374
+ _f = "Priority";
1375
+ return [4 /*yield*/, this.configuration.apiKey("Priority")];
1328
1376
  case 5:
1329
- _e[_f] = _12.sent(); // Referer authentication
1330
- _12.label = 6;
1377
+ _e[_f] = _14.sent(); // Priority authentication
1378
+ _14.label = 6;
1331
1379
  case 6:
1332
1380
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
1333
1381
  _g = headerParameters;
1334
- _h = "Sec-Fetch-Dest";
1335
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
1382
+ _h = "Referer";
1383
+ return [4 /*yield*/, this.configuration.apiKey("Referer")];
1336
1384
  case 7:
1337
- _g[_h] = _12.sent(); // SecFetchDest authentication
1338
- _12.label = 8;
1385
+ _g[_h] = _14.sent(); // Referer authentication
1386
+ _14.label = 8;
1339
1387
  case 8:
1340
1388
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
1341
1389
  _j = headerParameters;
1342
- _k = "Sec-Ch-Ua-Platform";
1343
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
1390
+ _k = "Sec-Fetch-Dest";
1391
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
1344
1392
  case 9:
1345
- _j[_k] = _12.sent(); // SecChUaPlatform authentication
1346
- _12.label = 10;
1393
+ _j[_k] = _14.sent(); // SecFetchDest authentication
1394
+ _14.label = 10;
1347
1395
  case 10:
1348
1396
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
1349
1397
  _l = headerParameters;
1350
- _m = "Sec-Fetch-Mode";
1351
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
1398
+ _m = "Sec-Ch-Ua-Platform";
1399
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
1352
1400
  case 11:
1353
- _l[_m] = _12.sent(); // SecFetchMode authentication
1354
- _12.label = 12;
1401
+ _l[_m] = _14.sent(); // SecChUaPlatform authentication
1402
+ _14.label = 12;
1355
1403
  case 12:
1356
1404
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
1357
1405
  _o = headerParameters;
1358
- _p = "x-csrf-token";
1359
- return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
1406
+ _p = "Sec-Fetch-Mode";
1407
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
1360
1408
  case 13:
1361
- _o[_p] = _12.sent(); // CsrfToken authentication
1362
- _12.label = 14;
1409
+ _o[_p] = _14.sent(); // SecFetchMode authentication
1410
+ _14.label = 14;
1363
1411
  case 14:
1364
1412
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
1365
1413
  _q = headerParameters;
1366
- _r = "x-client-uuid";
1367
- return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
1414
+ _r = "x-csrf-token";
1415
+ return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
1368
1416
  case 15:
1369
- _q[_r] = _12.sent(); // ClientUuid authentication
1370
- _12.label = 16;
1417
+ _q[_r] = _14.sent(); // CsrfToken authentication
1418
+ _14.label = 16;
1371
1419
  case 16:
1372
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
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];
1373
1429
  token = this.configuration.accessToken;
1374
1430
  return [4 /*yield*/, token("BearerAuth", [])];
1375
- case 17:
1376
- tokenString = _12.sent();
1431
+ case 19:
1432
+ tokenString = _14.sent();
1377
1433
  if (tokenString) {
1378
1434
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
1379
1435
  }
1380
- _12.label = 18;
1381
- case 18:
1382
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
1383
- _s = headerParameters;
1384
- _t = "x-guest-token";
1385
- return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
1386
- case 19:
1387
- _s[_t] = _12.sent(); // GuestToken authentication
1388
- _12.label = 20;
1436
+ _14.label = 20;
1389
1437
  case 20:
1390
1438
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
1391
1439
  _u = headerParameters;
1392
- _v = "Sec-Ch-Ua";
1393
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
1440
+ _v = "x-guest-token";
1441
+ return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
1394
1442
  case 21:
1395
- _u[_v] = _12.sent(); // SecChUa authentication
1396
- _12.label = 22;
1443
+ _u[_v] = _14.sent(); // GuestToken authentication
1444
+ _14.label = 22;
1397
1445
  case 22:
1398
1446
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
1399
1447
  _w = headerParameters;
1400
- _x = "x-client-transaction-id";
1401
- return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
1448
+ _x = "Sec-Ch-Ua";
1449
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
1402
1450
  case 23:
1403
- _w[_x] = _12.sent(); // ClientTransactionId authentication
1404
- _12.label = 24;
1451
+ _w[_x] = _14.sent(); // SecChUa authentication
1452
+ _14.label = 24;
1405
1453
  case 24:
1406
1454
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
1407
1455
  _y = headerParameters;
1408
- _z = "x-twitter-active-user";
1409
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
1456
+ _z = "x-client-transaction-id";
1457
+ return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
1410
1458
  case 25:
1411
- _y[_z] = _12.sent(); // ActiveUser authentication
1412
- _12.label = 26;
1459
+ _y[_z] = _14.sent(); // ClientTransactionId authentication
1460
+ _14.label = 26;
1413
1461
  case 26:
1414
1462
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
1415
1463
  _0 = headerParameters;
1416
- _1 = "user-agent";
1417
- return [4 /*yield*/, this.configuration.apiKey("user-agent")];
1464
+ _1 = "x-twitter-active-user";
1465
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
1418
1466
  case 27:
1419
- _0[_1] = _12.sent(); // UserAgent authentication
1420
- _12.label = 28;
1467
+ _0[_1] = _14.sent(); // ActiveUser authentication
1468
+ _14.label = 28;
1421
1469
  case 28:
1422
1470
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
1423
1471
  _2 = headerParameters;
1424
- _3 = "Accept-Language";
1425
- return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
1472
+ _3 = "user-agent";
1473
+ return [4 /*yield*/, this.configuration.apiKey("user-agent")];
1426
1474
  case 29:
1427
- _2[_3] = _12.sent(); // AcceptLanguage authentication
1428
- _12.label = 30;
1475
+ _2[_3] = _14.sent(); // UserAgent authentication
1476
+ _14.label = 30;
1429
1477
  case 30:
1430
1478
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
1431
1479
  _4 = headerParameters;
1432
- _5 = "Sec-Fetch-Site";
1433
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
1480
+ _5 = "Accept-Language";
1481
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
1434
1482
  case 31:
1435
- _4[_5] = _12.sent(); // SecFetchSite authentication
1436
- _12.label = 32;
1483
+ _4[_5] = _14.sent(); // AcceptLanguage authentication
1484
+ _14.label = 32;
1437
1485
  case 32:
1438
1486
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
1439
1487
  _6 = headerParameters;
1440
- _7 = "x-twitter-auth-type";
1441
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
1488
+ _7 = "Sec-Fetch-Site";
1489
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
1442
1490
  case 33:
1443
- _6[_7] = _12.sent(); // AuthType authentication
1444
- _12.label = 34;
1491
+ _6[_7] = _14.sent(); // SecFetchSite authentication
1492
+ _14.label = 34;
1445
1493
  case 34:
1446
1494
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
1447
1495
  _8 = headerParameters;
1448
- _9 = "Sec-Ch-Ua-Mobile";
1449
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
1496
+ _9 = "x-twitter-auth-type";
1497
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
1450
1498
  case 35:
1451
- _8[_9] = _12.sent(); // SecChUaMobile authentication
1452
- _12.label = 36;
1499
+ _8[_9] = _14.sent(); // AuthType authentication
1500
+ _14.label = 36;
1453
1501
  case 36:
1454
1502
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
1455
1503
  _10 = headerParameters;
1456
- _11 = "Accept-Encoding";
1457
- return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
1504
+ _11 = "Sec-Ch-Ua-Mobile";
1505
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
1458
1506
  case 37:
1459
- _10[_11] = _12.sent(); // AcceptEncoding authentication
1460
- _12.label = 38;
1461
- case 38: return [4 /*yield*/, this.request({
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({
1462
1518
  path: "/graphql/{pathQueryId}/FavoriteTweet".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
1463
1519
  method: 'POST',
1464
1520
  headers: headerParameters,
1465
1521
  query: queryParameters,
1466
1522
  body: (0, index_1.PostFavoriteTweetRequestToJSON)(requestParameters['postFavoriteTweetRequest']),
1467
1523
  }, initOverrides)];
1468
- case 39:
1469
- response = _12.sent();
1470
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PostFavoriteTweet200ResponseFromJSON)(jsonValue); })];
1524
+ case 41:
1525
+ response = _14.sent();
1526
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.FavoriteTweetResponseFromJSON)(jsonValue); })];
1471
1527
  }
1472
1528
  });
1473
1529
  });
@@ -1494,9 +1550,9 @@ var PostApi = /** @class */ (function (_super) {
1494
1550
  */
1495
1551
  PostApi.prototype.postUnfavoriteTweetRaw = function (requestParameters, initOverrides) {
1496
1552
  return __awaiter(this, void 0, void 0, function () {
1497
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, token, tokenString, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, response;
1498
- return __generator(this, function (_12) {
1499
- switch (_12.label) {
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) {
1500
1556
  case 0:
1501
1557
  if (requestParameters['pathQueryId'] == null) {
1502
1558
  throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postUnfavoriteTweet().');
@@ -1512,164 +1568,172 @@ var PostApi = /** @class */ (function (_super) {
1512
1568
  _b = "Accept";
1513
1569
  return [4 /*yield*/, this.configuration.apiKey("Accept")];
1514
1570
  case 1:
1515
- _a[_b] = _12.sent(); // Accept authentication
1516
- _12.label = 2;
1571
+ _a[_b] = _14.sent(); // Accept authentication
1572
+ _14.label = 2;
1517
1573
  case 2:
1518
1574
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
1519
1575
  _c = headerParameters;
1520
1576
  _d = "x-twitter-client-language";
1521
1577
  return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
1522
1578
  case 3:
1523
- _c[_d] = _12.sent(); // ClientLanguage authentication
1524
- _12.label = 4;
1579
+ _c[_d] = _14.sent(); // ClientLanguage authentication
1580
+ _14.label = 4;
1525
1581
  case 4:
1526
1582
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
1527
1583
  _e = headerParameters;
1528
- _f = "Referer";
1529
- return [4 /*yield*/, this.configuration.apiKey("Referer")];
1584
+ _f = "Priority";
1585
+ return [4 /*yield*/, this.configuration.apiKey("Priority")];
1530
1586
  case 5:
1531
- _e[_f] = _12.sent(); // Referer authentication
1532
- _12.label = 6;
1587
+ _e[_f] = _14.sent(); // Priority authentication
1588
+ _14.label = 6;
1533
1589
  case 6:
1534
1590
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
1535
1591
  _g = headerParameters;
1536
- _h = "Sec-Fetch-Dest";
1537
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
1592
+ _h = "Referer";
1593
+ return [4 /*yield*/, this.configuration.apiKey("Referer")];
1538
1594
  case 7:
1539
- _g[_h] = _12.sent(); // SecFetchDest authentication
1540
- _12.label = 8;
1595
+ _g[_h] = _14.sent(); // Referer authentication
1596
+ _14.label = 8;
1541
1597
  case 8:
1542
1598
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
1543
1599
  _j = headerParameters;
1544
- _k = "Sec-Ch-Ua-Platform";
1545
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
1600
+ _k = "Sec-Fetch-Dest";
1601
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
1546
1602
  case 9:
1547
- _j[_k] = _12.sent(); // SecChUaPlatform authentication
1548
- _12.label = 10;
1603
+ _j[_k] = _14.sent(); // SecFetchDest authentication
1604
+ _14.label = 10;
1549
1605
  case 10:
1550
1606
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
1551
1607
  _l = headerParameters;
1552
- _m = "Sec-Fetch-Mode";
1553
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
1608
+ _m = "Sec-Ch-Ua-Platform";
1609
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
1554
1610
  case 11:
1555
- _l[_m] = _12.sent(); // SecFetchMode authentication
1556
- _12.label = 12;
1611
+ _l[_m] = _14.sent(); // SecChUaPlatform authentication
1612
+ _14.label = 12;
1557
1613
  case 12:
1558
1614
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
1559
1615
  _o = headerParameters;
1560
- _p = "x-csrf-token";
1561
- return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
1616
+ _p = "Sec-Fetch-Mode";
1617
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
1562
1618
  case 13:
1563
- _o[_p] = _12.sent(); // CsrfToken authentication
1564
- _12.label = 14;
1619
+ _o[_p] = _14.sent(); // SecFetchMode authentication
1620
+ _14.label = 14;
1565
1621
  case 14:
1566
1622
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
1567
1623
  _q = headerParameters;
1568
- _r = "x-client-uuid";
1569
- return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
1624
+ _r = "x-csrf-token";
1625
+ return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
1570
1626
  case 15:
1571
- _q[_r] = _12.sent(); // ClientUuid authentication
1572
- _12.label = 16;
1627
+ _q[_r] = _14.sent(); // CsrfToken authentication
1628
+ _14.label = 16;
1573
1629
  case 16:
1574
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
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];
1575
1639
  token = this.configuration.accessToken;
1576
1640
  return [4 /*yield*/, token("BearerAuth", [])];
1577
- case 17:
1578
- tokenString = _12.sent();
1641
+ case 19:
1642
+ tokenString = _14.sent();
1579
1643
  if (tokenString) {
1580
1644
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
1581
1645
  }
1582
- _12.label = 18;
1583
- case 18:
1584
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
1585
- _s = headerParameters;
1586
- _t = "x-guest-token";
1587
- return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
1588
- case 19:
1589
- _s[_t] = _12.sent(); // GuestToken authentication
1590
- _12.label = 20;
1646
+ _14.label = 20;
1591
1647
  case 20:
1592
1648
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
1593
1649
  _u = headerParameters;
1594
- _v = "Sec-Ch-Ua";
1595
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
1650
+ _v = "x-guest-token";
1651
+ return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
1596
1652
  case 21:
1597
- _u[_v] = _12.sent(); // SecChUa authentication
1598
- _12.label = 22;
1653
+ _u[_v] = _14.sent(); // GuestToken authentication
1654
+ _14.label = 22;
1599
1655
  case 22:
1600
1656
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
1601
1657
  _w = headerParameters;
1602
- _x = "x-client-transaction-id";
1603
- return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
1658
+ _x = "Sec-Ch-Ua";
1659
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
1604
1660
  case 23:
1605
- _w[_x] = _12.sent(); // ClientTransactionId authentication
1606
- _12.label = 24;
1661
+ _w[_x] = _14.sent(); // SecChUa authentication
1662
+ _14.label = 24;
1607
1663
  case 24:
1608
1664
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
1609
1665
  _y = headerParameters;
1610
- _z = "x-twitter-active-user";
1611
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
1666
+ _z = "x-client-transaction-id";
1667
+ return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
1612
1668
  case 25:
1613
- _y[_z] = _12.sent(); // ActiveUser authentication
1614
- _12.label = 26;
1669
+ _y[_z] = _14.sent(); // ClientTransactionId authentication
1670
+ _14.label = 26;
1615
1671
  case 26:
1616
1672
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
1617
1673
  _0 = headerParameters;
1618
- _1 = "user-agent";
1619
- return [4 /*yield*/, this.configuration.apiKey("user-agent")];
1674
+ _1 = "x-twitter-active-user";
1675
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
1620
1676
  case 27:
1621
- _0[_1] = _12.sent(); // UserAgent authentication
1622
- _12.label = 28;
1677
+ _0[_1] = _14.sent(); // ActiveUser authentication
1678
+ _14.label = 28;
1623
1679
  case 28:
1624
1680
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
1625
1681
  _2 = headerParameters;
1626
- _3 = "Accept-Language";
1627
- return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
1682
+ _3 = "user-agent";
1683
+ return [4 /*yield*/, this.configuration.apiKey("user-agent")];
1628
1684
  case 29:
1629
- _2[_3] = _12.sent(); // AcceptLanguage authentication
1630
- _12.label = 30;
1685
+ _2[_3] = _14.sent(); // UserAgent authentication
1686
+ _14.label = 30;
1631
1687
  case 30:
1632
1688
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
1633
1689
  _4 = headerParameters;
1634
- _5 = "Sec-Fetch-Site";
1635
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
1690
+ _5 = "Accept-Language";
1691
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
1636
1692
  case 31:
1637
- _4[_5] = _12.sent(); // SecFetchSite authentication
1638
- _12.label = 32;
1693
+ _4[_5] = _14.sent(); // AcceptLanguage authentication
1694
+ _14.label = 32;
1639
1695
  case 32:
1640
1696
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
1641
1697
  _6 = headerParameters;
1642
- _7 = "x-twitter-auth-type";
1643
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
1698
+ _7 = "Sec-Fetch-Site";
1699
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
1644
1700
  case 33:
1645
- _6[_7] = _12.sent(); // AuthType authentication
1646
- _12.label = 34;
1701
+ _6[_7] = _14.sent(); // SecFetchSite authentication
1702
+ _14.label = 34;
1647
1703
  case 34:
1648
1704
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
1649
1705
  _8 = headerParameters;
1650
- _9 = "Sec-Ch-Ua-Mobile";
1651
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
1706
+ _9 = "x-twitter-auth-type";
1707
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
1652
1708
  case 35:
1653
- _8[_9] = _12.sent(); // SecChUaMobile authentication
1654
- _12.label = 36;
1709
+ _8[_9] = _14.sent(); // AuthType authentication
1710
+ _14.label = 36;
1655
1711
  case 36:
1656
1712
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
1657
1713
  _10 = headerParameters;
1658
- _11 = "Accept-Encoding";
1659
- return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
1714
+ _11 = "Sec-Ch-Ua-Mobile";
1715
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
1660
1716
  case 37:
1661
- _10[_11] = _12.sent(); // AcceptEncoding authentication
1662
- _12.label = 38;
1663
- case 38: return [4 /*yield*/, this.request({
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({
1664
1728
  path: "/graphql/{pathQueryId}/UnfavoriteTweet".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
1665
1729
  method: 'POST',
1666
1730
  headers: headerParameters,
1667
1731
  query: queryParameters,
1668
1732
  body: (0, index_1.PostUnfavoriteTweetRequestToJSON)(requestParameters['postUnfavoriteTweetRequest']),
1669
1733
  }, initOverrides)];
1670
- case 39:
1671
- response = _12.sent();
1672
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PostUnfavoriteTweet200ResponseFromJSON)(jsonValue); })];
1734
+ case 41:
1735
+ response = _14.sent();
1736
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.UnfavoriteTweetResponseFromJSON)(jsonValue); })];
1673
1737
  }
1674
1738
  });
1675
1739
  });