twitter-openapi-typescript-generated 0.0.16 → 0.0.17

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 (456) hide show
  1. package/.openapi-generator/FILES +58 -1
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +5 -4
  4. package/dist/apis/DefaultApi.js +302 -134
  5. package/dist/apis/DefaultApi.js.map +1 -1
  6. package/dist/apis/OtherApi.js +151 -67
  7. package/dist/apis/OtherApi.js.map +1 -1
  8. package/dist/apis/PostApi.js +912 -408
  9. package/dist/apis/PostApi.js.map +1 -1
  10. package/dist/apis/TweetApi.js +1661 -737
  11. package/dist/apis/TweetApi.js.map +1 -1
  12. package/dist/apis/UserApi.js +302 -134
  13. package/dist/apis/UserApi.js.map +1 -1
  14. package/dist/apis/UserListApi.js +755 -335
  15. package/dist/apis/UserListApi.js.map +1 -1
  16. package/dist/apis/UsersApi.js +151 -67
  17. package/dist/apis/UsersApi.js.map +1 -1
  18. package/dist/apis/V11GetApi.js +302 -134
  19. package/dist/apis/V11GetApi.js.map +1 -1
  20. package/dist/apis/V11PostApi.js +292 -122
  21. package/dist/apis/V11PostApi.js.map +1 -1
  22. package/dist/apis/V20GetApi.js +151 -67
  23. package/dist/apis/V20GetApi.js.map +1 -1
  24. package/dist/models/AdditionalMediaInfo.d.ts +32 -0
  25. package/dist/models/AdditionalMediaInfo.d.ts.map +1 -1
  26. package/dist/models/AdditionalMediaInfo.js +13 -0
  27. package/dist/models/AdditionalMediaInfo.js.map +1 -1
  28. package/dist/models/AdditionalMediaInfoCallToActions.d.ts +39 -0
  29. package/dist/models/AdditionalMediaInfoCallToActions.d.ts.map +1 -0
  30. package/dist/models/AdditionalMediaInfoCallToActions.js +54 -0
  31. package/dist/models/AdditionalMediaInfoCallToActions.js.map +1 -0
  32. package/dist/models/AdditionalMediaInfoCallToActionsUrl.d.ts +32 -0
  33. package/dist/models/AdditionalMediaInfoCallToActionsUrl.d.ts.map +1 -0
  34. package/dist/models/AdditionalMediaInfoCallToActionsUrl.js +51 -0
  35. package/dist/models/AdditionalMediaInfoCallToActionsUrl.js.map +1 -0
  36. package/dist/models/AuthorCommunityRelationship.d.ts +53 -0
  37. package/dist/models/AuthorCommunityRelationship.d.ts.map +1 -0
  38. package/dist/models/AuthorCommunityRelationship.js +64 -0
  39. package/dist/models/AuthorCommunityRelationship.js.map +1 -0
  40. package/dist/models/BirdwatchEntityRef.d.ts +9 -2
  41. package/dist/models/BirdwatchEntityRef.d.ts.map +1 -1
  42. package/dist/models/BirdwatchEntityRef.js +7 -5
  43. package/dist/models/BirdwatchEntityRef.js.map +1 -1
  44. package/dist/models/BirdwatchPivot.d.ts +7 -0
  45. package/dist/models/BirdwatchPivot.d.ts.map +1 -1
  46. package/dist/models/BirdwatchPivot.js +3 -0
  47. package/dist/models/BirdwatchPivot.js.map +1 -1
  48. package/dist/models/BirdwatchPivotCallToAction.d.ts +44 -0
  49. package/dist/models/BirdwatchPivotCallToAction.d.ts.map +1 -0
  50. package/dist/models/BirdwatchPivotCallToAction.js +57 -0
  51. package/dist/models/BirdwatchPivotCallToAction.js.map +1 -0
  52. package/dist/models/Community.d.ts +33 -0
  53. package/dist/models/Community.d.ts.map +1 -0
  54. package/dist/models/Community.js +52 -0
  55. package/dist/models/Community.js.map +1 -0
  56. package/dist/models/CommunityActions.d.ts +54 -0
  57. package/dist/models/CommunityActions.d.ts.map +1 -0
  58. package/dist/models/CommunityActions.js +64 -0
  59. package/dist/models/CommunityActions.js.map +1 -0
  60. package/dist/models/CommunityData.d.ts +217 -0
  61. package/dist/models/CommunityData.d.ts.map +1 -0
  62. package/dist/models/CommunityData.js +145 -0
  63. package/dist/models/CommunityData.js.map +1 -0
  64. package/dist/models/CommunityDeleteActionResult.d.ts +46 -0
  65. package/dist/models/CommunityDeleteActionResult.d.ts.map +1 -0
  66. package/dist/models/CommunityDeleteActionResult.js +61 -0
  67. package/dist/models/CommunityDeleteActionResult.js.map +1 -0
  68. package/dist/models/CommunityInvitesResult.d.ts +52 -0
  69. package/dist/models/CommunityInvitesResult.d.ts.map +1 -0
  70. package/dist/models/CommunityInvitesResult.js +64 -0
  71. package/dist/models/CommunityInvitesResult.js.map +1 -0
  72. package/dist/models/CommunityJoinActionResult.d.ts +33 -0
  73. package/dist/models/CommunityJoinActionResult.d.ts.map +1 -0
  74. package/dist/models/CommunityJoinActionResult.js +52 -0
  75. package/dist/models/CommunityJoinActionResult.js.map +1 -0
  76. package/dist/models/CommunityJoinRequestsResult.d.ts +33 -0
  77. package/dist/models/CommunityJoinRequestsResult.d.ts.map +1 -0
  78. package/dist/models/CommunityJoinRequestsResult.js +52 -0
  79. package/dist/models/CommunityJoinRequestsResult.js.map +1 -0
  80. package/dist/models/CommunityLeaveActionResult.d.ts +52 -0
  81. package/dist/models/CommunityLeaveActionResult.d.ts.map +1 -0
  82. package/dist/models/CommunityLeaveActionResult.js +64 -0
  83. package/dist/models/CommunityLeaveActionResult.js.map +1 -0
  84. package/dist/models/CommunityPinActionResult.d.ts +33 -0
  85. package/dist/models/CommunityPinActionResult.d.ts.map +1 -0
  86. package/dist/models/CommunityPinActionResult.js +52 -0
  87. package/dist/models/CommunityPinActionResult.js.map +1 -0
  88. package/dist/models/CommunityRule.d.ts +44 -0
  89. package/dist/models/CommunityRule.d.ts.map +1 -0
  90. package/dist/models/CommunityRule.js +57 -0
  91. package/dist/models/CommunityRule.js.map +1 -0
  92. package/dist/models/CommunityUrls.d.ts +33 -0
  93. package/dist/models/CommunityUrls.d.ts.map +1 -0
  94. package/dist/models/CommunityUrls.js +52 -0
  95. package/dist/models/CommunityUrls.js.map +1 -0
  96. package/dist/models/CommunityUrlsPermalink.d.ts +32 -0
  97. package/dist/models/CommunityUrlsPermalink.d.ts.map +1 -0
  98. package/dist/models/CommunityUrlsPermalink.js +51 -0
  99. package/dist/models/CommunityUrlsPermalink.js.map +1 -0
  100. package/dist/models/DisplayTreatment.d.ts +32 -0
  101. package/dist/models/DisplayTreatment.d.ts.map +1 -0
  102. package/dist/models/DisplayTreatment.js +51 -0
  103. package/dist/models/DisplayTreatment.js.map +1 -0
  104. package/dist/models/DisplayType.d.ts +26 -0
  105. package/dist/models/DisplayType.d.ts.map +1 -0
  106. package/dist/models/DisplayType.js +39 -0
  107. package/dist/models/DisplayType.js.map +1 -0
  108. package/dist/models/FeedbackInfo.d.ts +32 -0
  109. package/dist/models/FeedbackInfo.d.ts.map +1 -0
  110. package/dist/models/FeedbackInfo.js +51 -0
  111. package/dist/models/FeedbackInfo.js.map +1 -0
  112. package/dist/models/Highlight.d.ts +33 -0
  113. package/dist/models/Highlight.d.ts.map +1 -0
  114. package/dist/models/Highlight.js +52 -0
  115. package/dist/models/Highlight.js.map +1 -0
  116. package/dist/models/Media.d.ts +54 -0
  117. package/dist/models/Media.d.ts.map +1 -1
  118. package/dist/models/Media.js +20 -0
  119. package/dist/models/Media.js.map +1 -1
  120. package/dist/models/MediaExtended.d.ts +25 -0
  121. package/dist/models/MediaExtended.d.ts.map +1 -1
  122. package/dist/models/MediaExtended.js +9 -0
  123. package/dist/models/MediaExtended.js.map +1 -1
  124. package/dist/models/ModuleEntry.d.ts +8 -1
  125. package/dist/models/ModuleEntry.d.ts.map +1 -1
  126. package/dist/models/ModuleEntry.js +5 -2
  127. package/dist/models/ModuleEntry.js.map +1 -1
  128. package/dist/models/PostCreateTweetRequestFeatures.d.ts +12 -0
  129. package/dist/models/PostCreateTweetRequestFeatures.d.ts.map +1 -1
  130. package/dist/models/PostCreateTweetRequestFeatures.js +6 -0
  131. package/dist/models/PostCreateTweetRequestFeatures.js.map +1 -1
  132. package/dist/models/PrimaryCommunityTopic.d.ts +38 -0
  133. package/dist/models/PrimaryCommunityTopic.d.ts.map +1 -0
  134. package/dist/models/PrimaryCommunityTopic.js +54 -0
  135. package/dist/models/PrimaryCommunityTopic.js.map +1 -0
  136. package/dist/models/QuotedRefResult.d.ts +33 -0
  137. package/dist/models/QuotedRefResult.d.ts.map +1 -0
  138. package/dist/models/QuotedRefResult.js +52 -0
  139. package/dist/models/QuotedRefResult.js.map +1 -0
  140. package/dist/models/QuotedStatusPermalink.d.ts +44 -0
  141. package/dist/models/QuotedStatusPermalink.d.ts.map +1 -0
  142. package/dist/models/QuotedStatusPermalink.js +57 -0
  143. package/dist/models/QuotedStatusPermalink.js.map +1 -0
  144. package/dist/models/SensitiveMediaWarning.d.ts +44 -0
  145. package/dist/models/SensitiveMediaWarning.d.ts.map +1 -0
  146. package/dist/models/SensitiveMediaWarning.js +57 -0
  147. package/dist/models/SensitiveMediaWarning.js.map +1 -0
  148. package/dist/models/SocialContextLandingUrl.d.ts +54 -0
  149. package/dist/models/SocialContextLandingUrl.d.ts.map +1 -0
  150. package/dist/models/SocialContextLandingUrl.js +64 -0
  151. package/dist/models/SocialContextLandingUrl.js.map +1 -0
  152. package/dist/models/SocialContextUnion.d.ts +27 -0
  153. package/dist/models/SocialContextUnion.d.ts.map +1 -0
  154. package/dist/models/SocialContextUnion.js +65 -0
  155. package/dist/models/SocialContextUnion.js.map +1 -0
  156. package/dist/models/SocialContextUnionType.d.ts +24 -0
  157. package/dist/models/SocialContextUnionType.d.ts.map +1 -0
  158. package/dist/models/SocialContextUnionType.js +37 -0
  159. package/dist/models/SocialContextUnionType.js.map +1 -0
  160. package/dist/models/SuperFollowsReplyUserResult.d.ts +33 -0
  161. package/dist/models/SuperFollowsReplyUserResult.d.ts.map +1 -0
  162. package/dist/models/SuperFollowsReplyUserResult.js +52 -0
  163. package/dist/models/SuperFollowsReplyUserResult.js.map +1 -0
  164. package/dist/models/SuperFollowsReplyUserResultData.d.ts +40 -0
  165. package/dist/models/SuperFollowsReplyUserResultData.d.ts.map +1 -0
  166. package/dist/models/SuperFollowsReplyUserResultData.js +56 -0
  167. package/dist/models/SuperFollowsReplyUserResultData.js.map +1 -0
  168. package/dist/models/SuperFollowsReplyUserResultLegacy.d.ts +32 -0
  169. package/dist/models/SuperFollowsReplyUserResultLegacy.d.ts.map +1 -0
  170. package/dist/models/SuperFollowsReplyUserResultLegacy.js +51 -0
  171. package/dist/models/SuperFollowsReplyUserResultLegacy.js.map +1 -0
  172. package/dist/models/TextHighlight.d.ts +38 -0
  173. package/dist/models/TextHighlight.d.ts.map +1 -0
  174. package/dist/models/TextHighlight.js +54 -0
  175. package/dist/models/TextHighlight.js.map +1 -0
  176. package/dist/models/TimelineGeneralContext.d.ts +65 -0
  177. package/dist/models/TimelineGeneralContext.d.ts.map +1 -0
  178. package/dist/models/TimelineGeneralContext.js +71 -0
  179. package/dist/models/TimelineGeneralContext.js.map +1 -0
  180. package/dist/models/TimelineTimelineCursor.d.ts +13 -0
  181. package/dist/models/TimelineTimelineCursor.d.ts.map +1 -1
  182. package/dist/models/TimelineTimelineCursor.js +6 -0
  183. package/dist/models/TimelineTimelineCursor.js.map +1 -1
  184. package/dist/models/TimelineTimelineModule.d.ts +18 -11
  185. package/dist/models/TimelineTimelineModule.d.ts.map +1 -1
  186. package/dist/models/TimelineTimelineModule.js +9 -11
  187. package/dist/models/TimelineTimelineModule.js.map +1 -1
  188. package/dist/models/TimelineTopicContext.d.ts +53 -0
  189. package/dist/models/TimelineTopicContext.d.ts.map +1 -0
  190. package/dist/models/TimelineTopicContext.js +63 -0
  191. package/dist/models/TimelineTopicContext.js.map +1 -0
  192. package/dist/models/TimelineTweet.d.ts +12 -5
  193. package/dist/models/TimelineTweet.d.ts.map +1 -1
  194. package/dist/models/TimelineTweet.js +6 -3
  195. package/dist/models/TimelineTweet.js.map +1 -1
  196. package/dist/models/TimelineUser.d.ts +7 -7
  197. package/dist/models/TimelineUser.d.ts.map +1 -1
  198. package/dist/models/TimelineUser.js +3 -3
  199. package/dist/models/TimelineUser.js.map +1 -1
  200. package/dist/models/TopicContext.d.ts +68 -0
  201. package/dist/models/TopicContext.d.ts.map +1 -0
  202. package/dist/models/TopicContext.js +63 -0
  203. package/dist/models/TopicContext.js.map +1 -0
  204. package/dist/models/Tweet.d.ts +44 -3
  205. package/dist/models/Tweet.d.ts.map +1 -1
  206. package/dist/models/Tweet.js +20 -6
  207. package/dist/models/Tweet.js.map +1 -1
  208. package/dist/models/TweetCardLegacy.d.ts +14 -0
  209. package/dist/models/TweetCardLegacy.d.ts.map +1 -1
  210. package/dist/models/TweetCardLegacy.js +7 -0
  211. package/dist/models/TweetCardLegacy.js.map +1 -1
  212. package/dist/models/TweetCardLegacyBindingValueData.d.ts +22 -0
  213. package/dist/models/TweetCardLegacyBindingValueData.d.ts.map +1 -1
  214. package/dist/models/TweetCardLegacyBindingValueData.js +8 -0
  215. package/dist/models/TweetCardLegacyBindingValueData.js.map +1 -1
  216. package/dist/models/TweetCardLegacyBindingValueDataImage.d.ts +50 -0
  217. package/dist/models/TweetCardLegacyBindingValueDataImage.d.ts.map +1 -0
  218. package/dist/models/TweetCardLegacyBindingValueDataImage.js +60 -0
  219. package/dist/models/TweetCardLegacyBindingValueDataImage.js.map +1 -0
  220. package/dist/models/TweetCardPlatform.d.ts +40 -0
  221. package/dist/models/TweetCardPlatform.d.ts.map +1 -0
  222. package/dist/models/TweetCardPlatform.js +56 -0
  223. package/dist/models/TweetCardPlatform.js.map +1 -0
  224. package/dist/models/TweetCardPlatformAudience.d.ts +39 -0
  225. package/dist/models/TweetCardPlatformAudience.d.ts.map +1 -0
  226. package/dist/models/TweetCardPlatformAudience.js +57 -0
  227. package/dist/models/TweetCardPlatformAudience.js.map +1 -0
  228. package/dist/models/TweetCardPlatformData.d.ts +33 -0
  229. package/dist/models/TweetCardPlatformData.d.ts.map +1 -0
  230. package/dist/models/TweetCardPlatformData.js +52 -0
  231. package/dist/models/TweetCardPlatformData.js.map +1 -0
  232. package/dist/models/TweetCardPlatformDevice.d.ts +38 -0
  233. package/dist/models/TweetCardPlatformDevice.d.ts.map +1 -0
  234. package/dist/models/TweetCardPlatformDevice.js +54 -0
  235. package/dist/models/TweetCardPlatformDevice.js.map +1 -0
  236. package/dist/models/TweetInterstitial.d.ts +60 -0
  237. package/dist/models/TweetInterstitial.d.ts.map +1 -0
  238. package/dist/models/TweetInterstitial.js +69 -0
  239. package/dist/models/TweetInterstitial.js.map +1 -0
  240. package/dist/models/TweetInterstitialRevealText.d.ts +45 -0
  241. package/dist/models/TweetInterstitialRevealText.d.ts.map +1 -0
  242. package/dist/models/TweetInterstitialRevealText.js +58 -0
  243. package/dist/models/TweetInterstitialRevealText.js.map +1 -0
  244. package/dist/models/TweetInterstitialText.d.ts +45 -0
  245. package/dist/models/TweetInterstitialText.d.ts.map +1 -0
  246. package/dist/models/TweetInterstitialText.js +58 -0
  247. package/dist/models/TweetInterstitialText.js.map +1 -0
  248. package/dist/models/TweetInterstitialTextEntity.d.ts +45 -0
  249. package/dist/models/TweetInterstitialTextEntity.d.ts.map +1 -0
  250. package/dist/models/TweetInterstitialTextEntity.js +58 -0
  251. package/dist/models/TweetInterstitialTextEntity.js.map +1 -0
  252. package/dist/models/TweetInterstitialTextEntityRef.d.ts +58 -0
  253. package/dist/models/TweetInterstitialTextEntityRef.d.ts.map +1 -0
  254. package/dist/models/TweetInterstitialTextEntityRef.js +69 -0
  255. package/dist/models/TweetInterstitialTextEntityRef.js.map +1 -0
  256. package/dist/models/TweetLegacy.d.ts +71 -0
  257. package/dist/models/TweetLegacy.d.ts.map +1 -1
  258. package/dist/models/TweetLegacy.js +31 -1
  259. package/dist/models/TweetLegacy.js.map +1 -1
  260. package/dist/models/TweetLegacyScopes.d.ts +32 -0
  261. package/dist/models/TweetLegacyScopes.d.ts.map +1 -0
  262. package/dist/models/TweetLegacyScopes.js +51 -0
  263. package/dist/models/TweetLegacyScopes.js.map +1 -0
  264. package/dist/models/TweetPreviousCounts.d.ts +56 -0
  265. package/dist/models/TweetPreviousCounts.d.ts.map +1 -0
  266. package/dist/models/TweetPreviousCounts.js +63 -0
  267. package/dist/models/TweetPreviousCounts.js.map +1 -0
  268. package/dist/models/TweetView.d.ts +1 -0
  269. package/dist/models/TweetView.d.ts.map +1 -1
  270. package/dist/models/TweetView.js +1 -0
  271. package/dist/models/TweetView.js.map +1 -1
  272. package/dist/models/TweetWithVisibilityResults.d.ts +15 -0
  273. package/dist/models/TweetWithVisibilityResults.d.ts.map +1 -1
  274. package/dist/models/TweetWithVisibilityResults.js +6 -0
  275. package/dist/models/TweetWithVisibilityResults.js.map +1 -1
  276. package/dist/models/TypeName.d.ts +8 -0
  277. package/dist/models/TypeName.d.ts.map +1 -1
  278. package/dist/models/TypeName.js +9 -1
  279. package/dist/models/TypeName.js.map +1 -1
  280. package/dist/models/UnifiedCard.d.ts +39 -0
  281. package/dist/models/UnifiedCard.d.ts.map +1 -0
  282. package/dist/models/UnifiedCard.js +57 -0
  283. package/dist/models/UnifiedCard.js.map +1 -0
  284. package/dist/models/UrtEndpointOptions.d.ts +39 -0
  285. package/dist/models/UrtEndpointOptions.d.ts.map +1 -0
  286. package/dist/models/UrtEndpointOptions.js +55 -0
  287. package/dist/models/UrtEndpointOptions.js.map +1 -0
  288. package/dist/models/UrtEndpointRequestParams.d.ts +38 -0
  289. package/dist/models/UrtEndpointRequestParams.d.ts.map +1 -0
  290. package/dist/models/UrtEndpointRequestParams.js +54 -0
  291. package/dist/models/UrtEndpointRequestParams.js.map +1 -0
  292. package/dist/models/User.d.ts +54 -0
  293. package/dist/models/User.d.ts.map +1 -1
  294. package/dist/models/User.js +27 -1
  295. package/dist/models/User.js.map +1 -1
  296. package/dist/models/UserHighlightsInfo.d.ts +38 -0
  297. package/dist/models/UserHighlightsInfo.d.ts.map +1 -0
  298. package/dist/models/UserHighlightsInfo.js +54 -0
  299. package/dist/models/UserHighlightsInfo.js.map +1 -0
  300. package/dist/models/UserLegacy.d.ts +20 -0
  301. package/dist/models/UserLegacy.d.ts.map +1 -1
  302. package/dist/models/UserLegacy.js +12 -1
  303. package/dist/models/UserLegacy.js.map +1 -1
  304. package/dist/models/UserProfessional.d.ts +53 -0
  305. package/dist/models/UserProfessional.d.ts.map +1 -0
  306. package/dist/models/UserProfessional.js +65 -0
  307. package/dist/models/UserProfessional.js.map +1 -0
  308. package/dist/models/UserProfessionalCategory.d.ts +44 -0
  309. package/dist/models/UserProfessionalCategory.d.ts.map +1 -0
  310. package/dist/models/UserProfessionalCategory.js +57 -0
  311. package/dist/models/UserProfessionalCategory.js.map +1 -0
  312. package/dist/models/UserValue.d.ts +32 -0
  313. package/dist/models/UserValue.d.ts.map +1 -0
  314. package/dist/models/UserValue.js +51 -0
  315. package/dist/models/UserValue.js.map +1 -0
  316. package/dist/models/UserVerificationInfo.d.ts +39 -0
  317. package/dist/models/UserVerificationInfo.d.ts.map +1 -0
  318. package/dist/models/UserVerificationInfo.js +55 -0
  319. package/dist/models/UserVerificationInfo.js.map +1 -0
  320. package/dist/models/UserVerificationInfoReason.d.ts +45 -0
  321. package/dist/models/UserVerificationInfoReason.d.ts.map +1 -0
  322. package/dist/models/UserVerificationInfoReason.js +58 -0
  323. package/dist/models/UserVerificationInfoReason.js.map +1 -0
  324. package/dist/models/UserVerificationInfoReasonDescription.d.ts +39 -0
  325. package/dist/models/UserVerificationInfoReasonDescription.d.ts.map +1 -0
  326. package/dist/models/UserVerificationInfoReasonDescription.js +55 -0
  327. package/dist/models/UserVerificationInfoReasonDescription.js.map +1 -0
  328. package/dist/models/UserVerificationInfoReasonDescriptionEntities.d.ts +45 -0
  329. package/dist/models/UserVerificationInfoReasonDescriptionEntities.d.ts.map +1 -0
  330. package/dist/models/UserVerificationInfoReasonDescriptionEntities.js +58 -0
  331. package/dist/models/UserVerificationInfoReasonDescriptionEntities.js.map +1 -0
  332. package/dist/models/UserVerificationInfoReasonDescriptionEntitiesRef.d.ts +45 -0
  333. package/dist/models/UserVerificationInfoReasonDescriptionEntitiesRef.d.ts.map +1 -0
  334. package/dist/models/UserVerificationInfoReasonDescriptionEntitiesRef.js +60 -0
  335. package/dist/models/UserVerificationInfoReasonDescriptionEntitiesRef.js.map +1 -0
  336. package/dist/models/index.d.ts +58 -1
  337. package/dist/models/index.d.ts.map +1 -1
  338. package/dist/models/index.js +58 -1
  339. package/dist/models/index.js.map +1 -1
  340. package/dist/runtime.d.ts +2 -2
  341. package/dist/runtime.d.ts.map +1 -1
  342. package/dist/runtime.js.map +1 -1
  343. package/package.json +1 -1
  344. package/src/apis/DefaultApi.ts +34 -34
  345. package/src/apis/OtherApi.ts +17 -17
  346. package/src/apis/PostApi.ts +102 -102
  347. package/src/apis/TweetApi.ts +187 -187
  348. package/src/apis/UserApi.ts +34 -34
  349. package/src/apis/UserListApi.ts +85 -85
  350. package/src/apis/UsersApi.ts +17 -17
  351. package/src/apis/V11GetApi.ts +34 -34
  352. package/src/apis/V11PostApi.ts +34 -34
  353. package/src/apis/V20GetApi.ts +17 -17
  354. package/src/models/AdditionalMediaInfo.ts +53 -0
  355. package/src/models/AdditionalMediaInfoCallToActions.ts +80 -0
  356. package/src/models/AdditionalMediaInfoCallToActionsUrl.ts +66 -0
  357. package/src/models/AuthorCommunityRelationship.ts +105 -0
  358. package/src/models/BirdwatchEntityRef.ts +14 -7
  359. package/src/models/BirdwatchPivot.ts +14 -0
  360. package/src/models/BirdwatchPivotCallToAction.ts +84 -0
  361. package/src/models/Community.ts +73 -0
  362. package/src/models/CommunityActions.ts +118 -0
  363. package/src/models/CommunityData.ts +358 -0
  364. package/src/models/CommunityDeleteActionResult.ts +92 -0
  365. package/src/models/CommunityInvitesResult.ts +101 -0
  366. package/src/models/CommunityJoinActionResult.ts +73 -0
  367. package/src/models/CommunityJoinRequestsResult.ts +73 -0
  368. package/src/models/CommunityLeaveActionResult.ts +101 -0
  369. package/src/models/CommunityPinActionResult.ts +73 -0
  370. package/src/models/CommunityRule.ts +83 -0
  371. package/src/models/CommunityUrls.ts +73 -0
  372. package/src/models/CommunityUrlsPermalink.ts +66 -0
  373. package/src/models/DisplayTreatment.ts +66 -0
  374. package/src/models/DisplayType.ts +40 -0
  375. package/src/models/FeedbackInfo.ts +65 -0
  376. package/src/models/Highlight.ts +73 -0
  377. package/src/models/Media.ts +78 -0
  378. package/src/models/MediaExtended.ts +38 -0
  379. package/src/models/ModuleEntry.ts +16 -3
  380. package/src/models/PostCreateTweetRequestFeatures.ts +18 -0
  381. package/src/models/PrimaryCommunityTopic.ts +75 -0
  382. package/src/models/QuotedRefResult.ts +72 -0
  383. package/src/models/QuotedStatusPermalink.ts +84 -0
  384. package/src/models/SensitiveMediaWarning.ts +84 -0
  385. package/src/models/SocialContextLandingUrl.ts +100 -0
  386. package/src/models/SocialContextUnion.ts +72 -0
  387. package/src/models/SocialContextUnionType.ts +38 -0
  388. package/src/models/SuperFollowsReplyUserResult.ts +73 -0
  389. package/src/models/SuperFollowsReplyUserResultData.ts +88 -0
  390. package/src/models/SuperFollowsReplyUserResultLegacy.ts +66 -0
  391. package/src/models/TextHighlight.ts +75 -0
  392. package/src/models/TimelineGeneralContext.ts +118 -0
  393. package/src/models/TimelineTimelineCursor.ts +23 -0
  394. package/src/models/TimelineTimelineModule.ts +32 -16
  395. package/src/models/TimelineTopicContext.ts +104 -0
  396. package/src/models/TimelineTweet.ts +25 -11
  397. package/src/models/TimelineUser.ts +13 -13
  398. package/src/models/TopicContext.ts +113 -0
  399. package/src/models/Tweet.ts +84 -9
  400. package/src/models/TweetCardLegacy.ts +28 -0
  401. package/src/models/TweetCardLegacyBindingValueData.ts +37 -0
  402. package/src/models/TweetCardLegacyBindingValueDataImage.ts +92 -0
  403. package/src/models/TweetCardPlatform.ts +88 -0
  404. package/src/models/TweetCardPlatformAudience.ts +76 -0
  405. package/src/models/TweetCardPlatformData.ts +73 -0
  406. package/src/models/TweetCardPlatformDevice.ts +75 -0
  407. package/src/models/TweetInterstitial.ts +122 -0
  408. package/src/models/TweetInterstitialRevealText.ts +91 -0
  409. package/src/models/TweetInterstitialText.ts +91 -0
  410. package/src/models/TweetInterstitialTextEntity.ts +91 -0
  411. package/src/models/TweetInterstitialTextEntityRef.ts +102 -0
  412. package/src/models/TweetLegacy.ts +98 -0
  413. package/src/models/TweetLegacyScopes.ts +66 -0
  414. package/src/models/TweetPreviousCounts.ts +102 -0
  415. package/src/models/TweetView.ts +1 -0
  416. package/src/models/TweetWithVisibilityResults.ts +22 -0
  417. package/src/models/TypeName.ts +9 -1
  418. package/src/models/UnifiedCard.ts +76 -0
  419. package/src/models/UrtEndpointOptions.ts +82 -0
  420. package/src/models/UrtEndpointRequestParams.ts +75 -0
  421. package/src/models/User.ts +87 -0
  422. package/src/models/UserHighlightsInfo.ts +75 -0
  423. package/src/models/UserLegacy.ts +27 -0
  424. package/src/models/UserProfessional.ts +102 -0
  425. package/src/models/UserProfessionalCategory.ts +84 -0
  426. package/src/models/UserValue.ts +66 -0
  427. package/src/models/UserVerificationInfo.ts +81 -0
  428. package/src/models/UserVerificationInfoReason.ts +91 -0
  429. package/src/models/UserVerificationInfoReasonDescription.ts +82 -0
  430. package/src/models/UserVerificationInfoReasonDescriptionEntities.ts +91 -0
  431. package/src/models/UserVerificationInfoReasonDescriptionEntitiesRef.ts +85 -0
  432. package/src/models/index.ts +58 -1
  433. package/src/runtime.ts +3 -3
  434. package/tools/openapi-generator-config.yaml +1 -1
  435. package/tools/win/init.ps1 +1 -1
  436. package/twitter-openapi/.github/workflows/test-build.yaml +1 -1
  437. package/twitter-openapi/.github/workflows/test-python.yaml +1 -1
  438. package/twitter-openapi/.vscode/extensions.json +8 -2
  439. package/twitter-openapi/.vscode/launch.json +7 -5
  440. package/twitter-openapi/.vscode/settings.json +11 -1
  441. package/twitter-openapi/.vscode/tasks.json +4 -3
  442. package/twitter-openapi/dist/compatible/openapi-3.0.yaml +1181 -338
  443. package/twitter-openapi/dist/docs/openapi-3.0.yaml +1145 -121
  444. package/twitter-openapi/requirements.txt +0 -0
  445. package/twitter-openapi/src/config/placeholder.json +85 -44
  446. package/twitter-openapi/src/openapi/response/error.yaml +3 -0
  447. package/twitter-openapi/src/openapi/schemas/content.yaml +159 -10
  448. package/twitter-openapi/src/openapi/schemas/tweet.yaml +598 -17
  449. package/twitter-openapi/src/openapi/schemas/typename.yaml +8 -0
  450. package/twitter-openapi/src/openapi/schemas/user.yaml +127 -0
  451. package/twitter-openapi/test/python/test_serialize.py +117 -47
  452. package/dist/models/SocialContext.d.ts +0 -44
  453. package/dist/models/SocialContext.d.ts.map +0 -1
  454. package/dist/models/SocialContext.js +0 -55
  455. package/dist/models/SocialContext.js.map +0 -1
  456. package/src/models/SocialContext.ts +0 -81
@@ -80,9 +80,9 @@ var TweetApi = /** @class */ (function (_super) {
80
80
  */
81
81
  TweetApi.prototype.getBookmarksRaw = function (requestParameters, initOverrides) {
82
82
  return __awaiter(this, void 0, void 0, function () {
83
- var queryParameters, headerParameters, token, tokenString, response;
84
- return __generator(this, function (_a) {
85
- switch (_a.label) {
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, response;
84
+ return __generator(this, function (_10) {
85
+ switch (_10.label) {
86
86
  case 0:
87
87
  if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
88
88
  throw new runtime.RequiredError('pathQueryId', 'Required parameter requestParameters.pathQueryId was null or undefined when calling getBookmarks.');
@@ -101,75 +101,159 @@ var TweetApi = /** @class */ (function (_super) {
101
101
  queryParameters['features'] = requestParameters.features;
102
102
  }
103
103
  headerParameters = {};
104
- if (this.configuration && this.configuration.apiKey) {
105
- headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
106
- }
107
- if (this.configuration && this.configuration.apiKey) {
108
- headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
109
- }
110
- if (this.configuration && this.configuration.apiKey) {
111
- headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
112
- }
113
- if (this.configuration && this.configuration.apiKey) {
114
- headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
115
- }
116
- if (this.configuration && this.configuration.apiKey) {
117
- headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
118
- }
119
- if (this.configuration && this.configuration.apiKey) {
120
- headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
121
- }
122
- if (this.configuration && this.configuration.apiKey) {
123
- headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
124
- }
125
- if (this.configuration && this.configuration.apiKey) {
126
- headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
127
- }
128
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
104
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
105
+ _a = headerParameters;
106
+ _b = "x-twitter-client-language";
107
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
108
+ case 1:
109
+ _a[_b] = _10.sent(); // ClientLanguage authentication
110
+ _10.label = 2;
111
+ case 2:
112
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
113
+ _c = headerParameters;
114
+ _d = "Accept";
115
+ return [4 /*yield*/, this.configuration.apiKey("Accept")];
116
+ case 3:
117
+ _c[_d] = _10.sent(); // Accept authentication
118
+ _10.label = 4;
119
+ case 4:
120
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
121
+ _e = headerParameters;
122
+ _f = "Sec-Fetch-Dest";
123
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
124
+ case 5:
125
+ _e[_f] = _10.sent(); // SecFetchDest authentication
126
+ _10.label = 6;
127
+ case 6:
128
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
129
+ _g = headerParameters;
130
+ _h = "Pragma";
131
+ return [4 /*yield*/, this.configuration.apiKey("Pragma")];
132
+ case 7:
133
+ _g[_h] = _10.sent(); // Pragma authentication
134
+ _10.label = 8;
135
+ case 8:
136
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
137
+ _j = headerParameters;
138
+ _k = "Sec-Ch-Ua-Platform";
139
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
140
+ case 9:
141
+ _j[_k] = _10.sent(); // SecChUaPlatform authentication
142
+ _10.label = 10;
143
+ case 10:
144
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
145
+ _l = headerParameters;
146
+ _m = "Sec-Fetch-Mode";
147
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
148
+ case 11:
149
+ _l[_m] = _10.sent(); // SecFetchMode authentication
150
+ _10.label = 12;
151
+ case 12:
152
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
153
+ _o = headerParameters;
154
+ _p = "x-csrf-token";
155
+ return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
156
+ case 13:
157
+ _o[_p] = _10.sent(); // CsrfToken authentication
158
+ _10.label = 14;
159
+ case 14:
160
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
161
+ _q = headerParameters;
162
+ _r = "x-guest-token";
163
+ return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
164
+ case 15:
165
+ _q[_r] = _10.sent(); // GuestToken authentication
166
+ _10.label = 16;
167
+ case 16:
168
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
129
169
  token = this.configuration.accessToken;
130
170
  return [4 /*yield*/, token("BearerAuth", [])];
131
- case 1:
132
- tokenString = _a.sent();
171
+ case 17:
172
+ tokenString = _10.sent();
133
173
  if (tokenString) {
134
174
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
135
175
  }
136
- _a.label = 2;
137
- case 2:
138
- if (this.configuration && this.configuration.apiKey) {
139
- headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
140
- }
141
- if (this.configuration && this.configuration.apiKey) {
142
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
143
- }
144
- if (this.configuration && this.configuration.apiKey) {
145
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
146
- }
147
- if (this.configuration && this.configuration.apiKey) {
148
- headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
149
- }
150
- if (this.configuration && this.configuration.apiKey) {
151
- headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
152
- }
153
- if (this.configuration && this.configuration.apiKey) {
154
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
155
- }
156
- if (this.configuration && this.configuration.apiKey) {
157
- headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
158
- }
159
- if (this.configuration && this.configuration.apiKey) {
160
- headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
161
- }
162
- if (this.configuration && this.configuration.apiKey) {
163
- headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
164
- }
165
- return [4 /*yield*/, this.request({
166
- path: "/graphql/{pathQueryId}/Bookmarks".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
167
- method: 'GET',
168
- headers: headerParameters,
169
- query: queryParameters,
170
- }, initOverrides)];
171
- case 3:
172
- response = _a.sent();
176
+ _10.label = 18;
177
+ case 18:
178
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
179
+ _s = headerParameters;
180
+ _t = "Sec-Ch-Ua";
181
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
182
+ case 19:
183
+ _s[_t] = _10.sent(); // SecChUa authentication
184
+ _10.label = 20;
185
+ case 20:
186
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
187
+ _u = headerParameters;
188
+ _v = "x-twitter-active-user";
189
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
190
+ case 21:
191
+ _u[_v] = _10.sent(); // ActiveUser authentication
192
+ _10.label = 22;
193
+ case 22:
194
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
195
+ _w = headerParameters;
196
+ _x = "user-agent";
197
+ return [4 /*yield*/, this.configuration.apiKey("user-agent")];
198
+ case 23:
199
+ _w[_x] = _10.sent(); // UserAgent authentication
200
+ _10.label = 24;
201
+ case 24:
202
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
203
+ _y = headerParameters;
204
+ _z = "Accept-Language";
205
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
206
+ case 25:
207
+ _y[_z] = _10.sent(); // AcceptLanguage authentication
208
+ _10.label = 26;
209
+ case 26:
210
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
211
+ _0 = headerParameters;
212
+ _1 = "Sec-Fetch-Site";
213
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
214
+ case 27:
215
+ _0[_1] = _10.sent(); // SecFetchSite authentication
216
+ _10.label = 28;
217
+ case 28:
218
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
219
+ _2 = headerParameters;
220
+ _3 = "x-twitter-auth-type";
221
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
222
+ case 29:
223
+ _2[_3] = _10.sent(); // AuthType authentication
224
+ _10.label = 30;
225
+ case 30:
226
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
227
+ _4 = headerParameters;
228
+ _5 = "Cache-Control";
229
+ return [4 /*yield*/, this.configuration.apiKey("Cache-Control")];
230
+ case 31:
231
+ _4[_5] = _10.sent(); // CacheControl authentication
232
+ _10.label = 32;
233
+ case 32:
234
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
235
+ _6 = headerParameters;
236
+ _7 = "Sec-Ch-Ua-Mobile";
237
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
238
+ case 33:
239
+ _6[_7] = _10.sent(); // SecChUaMobile authentication
240
+ _10.label = 34;
241
+ case 34:
242
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
243
+ _8 = headerParameters;
244
+ _9 = "Accept-Encoding";
245
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
246
+ case 35:
247
+ _8[_9] = _10.sent(); // AcceptEncoding authentication
248
+ _10.label = 36;
249
+ case 36: return [4 /*yield*/, this.request({
250
+ path: "/graphql/{pathQueryId}/Bookmarks".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
251
+ method: 'GET',
252
+ headers: headerParameters,
253
+ query: queryParameters,
254
+ }, initOverrides)];
255
+ case 37:
256
+ response = _10.sent();
173
257
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetBookmarks200ResponseFromJSON)(jsonValue); })];
174
258
  }
175
259
  });
@@ -197,9 +281,9 @@ var TweetApi = /** @class */ (function (_super) {
197
281
  */
198
282
  TweetApi.prototype.getHomeLatestTimelineRaw = function (requestParameters, initOverrides) {
199
283
  return __awaiter(this, void 0, void 0, function () {
200
- var queryParameters, headerParameters, token, tokenString, response;
201
- return __generator(this, function (_a) {
202
- switch (_a.label) {
284
+ 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, response;
285
+ return __generator(this, function (_10) {
286
+ switch (_10.label) {
203
287
  case 0:
204
288
  if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
205
289
  throw new runtime.RequiredError('pathQueryId', 'Required parameter requestParameters.pathQueryId was null or undefined when calling getHomeLatestTimeline.');
@@ -218,75 +302,159 @@ var TweetApi = /** @class */ (function (_super) {
218
302
  queryParameters['features'] = requestParameters.features;
219
303
  }
220
304
  headerParameters = {};
221
- if (this.configuration && this.configuration.apiKey) {
222
- headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
223
- }
224
- if (this.configuration && this.configuration.apiKey) {
225
- headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
226
- }
227
- if (this.configuration && this.configuration.apiKey) {
228
- headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
229
- }
230
- if (this.configuration && this.configuration.apiKey) {
231
- headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
232
- }
233
- if (this.configuration && this.configuration.apiKey) {
234
- headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
235
- }
236
- if (this.configuration && this.configuration.apiKey) {
237
- headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
238
- }
239
- if (this.configuration && this.configuration.apiKey) {
240
- headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
241
- }
242
- if (this.configuration && this.configuration.apiKey) {
243
- headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
244
- }
245
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
305
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
306
+ _a = headerParameters;
307
+ _b = "x-twitter-client-language";
308
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
309
+ case 1:
310
+ _a[_b] = _10.sent(); // ClientLanguage authentication
311
+ _10.label = 2;
312
+ case 2:
313
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
314
+ _c = headerParameters;
315
+ _d = "Accept";
316
+ return [4 /*yield*/, this.configuration.apiKey("Accept")];
317
+ case 3:
318
+ _c[_d] = _10.sent(); // Accept authentication
319
+ _10.label = 4;
320
+ case 4:
321
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
322
+ _e = headerParameters;
323
+ _f = "Sec-Fetch-Dest";
324
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
325
+ case 5:
326
+ _e[_f] = _10.sent(); // SecFetchDest authentication
327
+ _10.label = 6;
328
+ case 6:
329
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
330
+ _g = headerParameters;
331
+ _h = "Pragma";
332
+ return [4 /*yield*/, this.configuration.apiKey("Pragma")];
333
+ case 7:
334
+ _g[_h] = _10.sent(); // Pragma authentication
335
+ _10.label = 8;
336
+ case 8:
337
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
338
+ _j = headerParameters;
339
+ _k = "Sec-Ch-Ua-Platform";
340
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
341
+ case 9:
342
+ _j[_k] = _10.sent(); // SecChUaPlatform authentication
343
+ _10.label = 10;
344
+ case 10:
345
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
346
+ _l = headerParameters;
347
+ _m = "Sec-Fetch-Mode";
348
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
349
+ case 11:
350
+ _l[_m] = _10.sent(); // SecFetchMode authentication
351
+ _10.label = 12;
352
+ case 12:
353
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
354
+ _o = headerParameters;
355
+ _p = "x-csrf-token";
356
+ return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
357
+ case 13:
358
+ _o[_p] = _10.sent(); // CsrfToken authentication
359
+ _10.label = 14;
360
+ case 14:
361
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
362
+ _q = headerParameters;
363
+ _r = "x-guest-token";
364
+ return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
365
+ case 15:
366
+ _q[_r] = _10.sent(); // GuestToken authentication
367
+ _10.label = 16;
368
+ case 16:
369
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
246
370
  token = this.configuration.accessToken;
247
371
  return [4 /*yield*/, token("BearerAuth", [])];
248
- case 1:
249
- tokenString = _a.sent();
372
+ case 17:
373
+ tokenString = _10.sent();
250
374
  if (tokenString) {
251
375
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
252
376
  }
253
- _a.label = 2;
254
- case 2:
255
- if (this.configuration && this.configuration.apiKey) {
256
- headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
257
- }
258
- if (this.configuration && this.configuration.apiKey) {
259
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
260
- }
261
- if (this.configuration && this.configuration.apiKey) {
262
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
263
- }
264
- if (this.configuration && this.configuration.apiKey) {
265
- headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
266
- }
267
- if (this.configuration && this.configuration.apiKey) {
268
- headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
269
- }
270
- if (this.configuration && this.configuration.apiKey) {
271
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
272
- }
273
- if (this.configuration && this.configuration.apiKey) {
274
- headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
275
- }
276
- if (this.configuration && this.configuration.apiKey) {
277
- headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
278
- }
279
- if (this.configuration && this.configuration.apiKey) {
280
- headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
281
- }
282
- return [4 /*yield*/, this.request({
283
- path: "/graphql/{pathQueryId}/HomeLatestTimeline".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
284
- method: 'GET',
285
- headers: headerParameters,
286
- query: queryParameters,
287
- }, initOverrides)];
288
- case 3:
289
- response = _a.sent();
377
+ _10.label = 18;
378
+ case 18:
379
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
380
+ _s = headerParameters;
381
+ _t = "Sec-Ch-Ua";
382
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
383
+ case 19:
384
+ _s[_t] = _10.sent(); // SecChUa authentication
385
+ _10.label = 20;
386
+ case 20:
387
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
388
+ _u = headerParameters;
389
+ _v = "x-twitter-active-user";
390
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
391
+ case 21:
392
+ _u[_v] = _10.sent(); // ActiveUser authentication
393
+ _10.label = 22;
394
+ case 22:
395
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
396
+ _w = headerParameters;
397
+ _x = "user-agent";
398
+ return [4 /*yield*/, this.configuration.apiKey("user-agent")];
399
+ case 23:
400
+ _w[_x] = _10.sent(); // UserAgent authentication
401
+ _10.label = 24;
402
+ case 24:
403
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
404
+ _y = headerParameters;
405
+ _z = "Accept-Language";
406
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
407
+ case 25:
408
+ _y[_z] = _10.sent(); // AcceptLanguage authentication
409
+ _10.label = 26;
410
+ case 26:
411
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
412
+ _0 = headerParameters;
413
+ _1 = "Sec-Fetch-Site";
414
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
415
+ case 27:
416
+ _0[_1] = _10.sent(); // SecFetchSite authentication
417
+ _10.label = 28;
418
+ case 28:
419
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
420
+ _2 = headerParameters;
421
+ _3 = "x-twitter-auth-type";
422
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
423
+ case 29:
424
+ _2[_3] = _10.sent(); // AuthType authentication
425
+ _10.label = 30;
426
+ case 30:
427
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
428
+ _4 = headerParameters;
429
+ _5 = "Cache-Control";
430
+ return [4 /*yield*/, this.configuration.apiKey("Cache-Control")];
431
+ case 31:
432
+ _4[_5] = _10.sent(); // CacheControl authentication
433
+ _10.label = 32;
434
+ case 32:
435
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
436
+ _6 = headerParameters;
437
+ _7 = "Sec-Ch-Ua-Mobile";
438
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
439
+ case 33:
440
+ _6[_7] = _10.sent(); // SecChUaMobile authentication
441
+ _10.label = 34;
442
+ case 34:
443
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
444
+ _8 = headerParameters;
445
+ _9 = "Accept-Encoding";
446
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
447
+ case 35:
448
+ _8[_9] = _10.sent(); // AcceptEncoding authentication
449
+ _10.label = 36;
450
+ case 36: return [4 /*yield*/, this.request({
451
+ path: "/graphql/{pathQueryId}/HomeLatestTimeline".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
452
+ method: 'GET',
453
+ headers: headerParameters,
454
+ query: queryParameters,
455
+ }, initOverrides)];
456
+ case 37:
457
+ response = _10.sent();
290
458
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetHomeLatestTimeline200ResponseFromJSON)(jsonValue); })];
291
459
  }
292
460
  });
@@ -314,9 +482,9 @@ var TweetApi = /** @class */ (function (_super) {
314
482
  */
315
483
  TweetApi.prototype.getHomeTimelineRaw = function (requestParameters, initOverrides) {
316
484
  return __awaiter(this, void 0, void 0, function () {
317
- var queryParameters, headerParameters, token, tokenString, response;
318
- return __generator(this, function (_a) {
319
- switch (_a.label) {
485
+ 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, response;
486
+ return __generator(this, function (_10) {
487
+ switch (_10.label) {
320
488
  case 0:
321
489
  if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
322
490
  throw new runtime.RequiredError('pathQueryId', 'Required parameter requestParameters.pathQueryId was null or undefined when calling getHomeTimeline.');
@@ -335,75 +503,159 @@ var TweetApi = /** @class */ (function (_super) {
335
503
  queryParameters['features'] = requestParameters.features;
336
504
  }
337
505
  headerParameters = {};
338
- if (this.configuration && this.configuration.apiKey) {
339
- headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
340
- }
341
- if (this.configuration && this.configuration.apiKey) {
342
- headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
343
- }
344
- if (this.configuration && this.configuration.apiKey) {
345
- headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
346
- }
347
- if (this.configuration && this.configuration.apiKey) {
348
- headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
349
- }
350
- if (this.configuration && this.configuration.apiKey) {
351
- headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
352
- }
353
- if (this.configuration && this.configuration.apiKey) {
354
- headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
355
- }
356
- if (this.configuration && this.configuration.apiKey) {
357
- headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
358
- }
359
- if (this.configuration && this.configuration.apiKey) {
360
- headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
361
- }
362
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
506
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
507
+ _a = headerParameters;
508
+ _b = "x-twitter-client-language";
509
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
510
+ case 1:
511
+ _a[_b] = _10.sent(); // ClientLanguage authentication
512
+ _10.label = 2;
513
+ case 2:
514
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
515
+ _c = headerParameters;
516
+ _d = "Accept";
517
+ return [4 /*yield*/, this.configuration.apiKey("Accept")];
518
+ case 3:
519
+ _c[_d] = _10.sent(); // Accept authentication
520
+ _10.label = 4;
521
+ case 4:
522
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
523
+ _e = headerParameters;
524
+ _f = "Sec-Fetch-Dest";
525
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
526
+ case 5:
527
+ _e[_f] = _10.sent(); // SecFetchDest authentication
528
+ _10.label = 6;
529
+ case 6:
530
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
531
+ _g = headerParameters;
532
+ _h = "Pragma";
533
+ return [4 /*yield*/, this.configuration.apiKey("Pragma")];
534
+ case 7:
535
+ _g[_h] = _10.sent(); // Pragma authentication
536
+ _10.label = 8;
537
+ case 8:
538
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
539
+ _j = headerParameters;
540
+ _k = "Sec-Ch-Ua-Platform";
541
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
542
+ case 9:
543
+ _j[_k] = _10.sent(); // SecChUaPlatform authentication
544
+ _10.label = 10;
545
+ case 10:
546
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
547
+ _l = headerParameters;
548
+ _m = "Sec-Fetch-Mode";
549
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
550
+ case 11:
551
+ _l[_m] = _10.sent(); // SecFetchMode authentication
552
+ _10.label = 12;
553
+ case 12:
554
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
555
+ _o = headerParameters;
556
+ _p = "x-csrf-token";
557
+ return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
558
+ case 13:
559
+ _o[_p] = _10.sent(); // CsrfToken authentication
560
+ _10.label = 14;
561
+ case 14:
562
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
563
+ _q = headerParameters;
564
+ _r = "x-guest-token";
565
+ return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
566
+ case 15:
567
+ _q[_r] = _10.sent(); // GuestToken authentication
568
+ _10.label = 16;
569
+ case 16:
570
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
363
571
  token = this.configuration.accessToken;
364
572
  return [4 /*yield*/, token("BearerAuth", [])];
365
- case 1:
366
- tokenString = _a.sent();
573
+ case 17:
574
+ tokenString = _10.sent();
367
575
  if (tokenString) {
368
576
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
369
577
  }
370
- _a.label = 2;
371
- case 2:
372
- if (this.configuration && this.configuration.apiKey) {
373
- headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
374
- }
375
- if (this.configuration && this.configuration.apiKey) {
376
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
377
- }
378
- if (this.configuration && this.configuration.apiKey) {
379
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
380
- }
381
- if (this.configuration && this.configuration.apiKey) {
382
- headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
383
- }
384
- if (this.configuration && this.configuration.apiKey) {
385
- headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
386
- }
387
- if (this.configuration && this.configuration.apiKey) {
388
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
389
- }
390
- if (this.configuration && this.configuration.apiKey) {
391
- headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
392
- }
393
- if (this.configuration && this.configuration.apiKey) {
394
- headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
395
- }
396
- if (this.configuration && this.configuration.apiKey) {
397
- headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
398
- }
399
- return [4 /*yield*/, this.request({
400
- path: "/graphql/{pathQueryId}/HomeTimeline".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
401
- method: 'GET',
402
- headers: headerParameters,
403
- query: queryParameters,
404
- }, initOverrides)];
405
- case 3:
406
- response = _a.sent();
578
+ _10.label = 18;
579
+ case 18:
580
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
581
+ _s = headerParameters;
582
+ _t = "Sec-Ch-Ua";
583
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
584
+ case 19:
585
+ _s[_t] = _10.sent(); // SecChUa authentication
586
+ _10.label = 20;
587
+ case 20:
588
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
589
+ _u = headerParameters;
590
+ _v = "x-twitter-active-user";
591
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
592
+ case 21:
593
+ _u[_v] = _10.sent(); // ActiveUser authentication
594
+ _10.label = 22;
595
+ case 22:
596
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
597
+ _w = headerParameters;
598
+ _x = "user-agent";
599
+ return [4 /*yield*/, this.configuration.apiKey("user-agent")];
600
+ case 23:
601
+ _w[_x] = _10.sent(); // UserAgent authentication
602
+ _10.label = 24;
603
+ case 24:
604
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
605
+ _y = headerParameters;
606
+ _z = "Accept-Language";
607
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
608
+ case 25:
609
+ _y[_z] = _10.sent(); // AcceptLanguage authentication
610
+ _10.label = 26;
611
+ case 26:
612
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
613
+ _0 = headerParameters;
614
+ _1 = "Sec-Fetch-Site";
615
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
616
+ case 27:
617
+ _0[_1] = _10.sent(); // SecFetchSite authentication
618
+ _10.label = 28;
619
+ case 28:
620
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
621
+ _2 = headerParameters;
622
+ _3 = "x-twitter-auth-type";
623
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
624
+ case 29:
625
+ _2[_3] = _10.sent(); // AuthType authentication
626
+ _10.label = 30;
627
+ case 30:
628
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
629
+ _4 = headerParameters;
630
+ _5 = "Cache-Control";
631
+ return [4 /*yield*/, this.configuration.apiKey("Cache-Control")];
632
+ case 31:
633
+ _4[_5] = _10.sent(); // CacheControl authentication
634
+ _10.label = 32;
635
+ case 32:
636
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
637
+ _6 = headerParameters;
638
+ _7 = "Sec-Ch-Ua-Mobile";
639
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
640
+ case 33:
641
+ _6[_7] = _10.sent(); // SecChUaMobile authentication
642
+ _10.label = 34;
643
+ case 34:
644
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
645
+ _8 = headerParameters;
646
+ _9 = "Accept-Encoding";
647
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
648
+ case 35:
649
+ _8[_9] = _10.sent(); // AcceptEncoding authentication
650
+ _10.label = 36;
651
+ case 36: return [4 /*yield*/, this.request({
652
+ path: "/graphql/{pathQueryId}/HomeTimeline".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
653
+ method: 'GET',
654
+ headers: headerParameters,
655
+ query: queryParameters,
656
+ }, initOverrides)];
657
+ case 37:
658
+ response = _10.sent();
407
659
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetHomeLatestTimeline200ResponseFromJSON)(jsonValue); })];
408
660
  }
409
661
  });
@@ -431,9 +683,9 @@ var TweetApi = /** @class */ (function (_super) {
431
683
  */
432
684
  TweetApi.prototype.getLikesRaw = function (requestParameters, initOverrides) {
433
685
  return __awaiter(this, void 0, void 0, function () {
434
- var queryParameters, headerParameters, token, tokenString, response;
435
- return __generator(this, function (_a) {
436
- switch (_a.label) {
686
+ 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, response;
687
+ return __generator(this, function (_10) {
688
+ switch (_10.label) {
437
689
  case 0:
438
690
  if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
439
691
  throw new runtime.RequiredError('pathQueryId', 'Required parameter requestParameters.pathQueryId was null or undefined when calling getLikes.');
@@ -452,75 +704,159 @@ var TweetApi = /** @class */ (function (_super) {
452
704
  queryParameters['features'] = requestParameters.features;
453
705
  }
454
706
  headerParameters = {};
455
- if (this.configuration && this.configuration.apiKey) {
456
- headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
457
- }
458
- if (this.configuration && this.configuration.apiKey) {
459
- headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
460
- }
461
- if (this.configuration && this.configuration.apiKey) {
462
- headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
463
- }
464
- if (this.configuration && this.configuration.apiKey) {
465
- headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
466
- }
467
- if (this.configuration && this.configuration.apiKey) {
468
- headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
469
- }
470
- if (this.configuration && this.configuration.apiKey) {
471
- headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
472
- }
473
- if (this.configuration && this.configuration.apiKey) {
474
- headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
475
- }
476
- if (this.configuration && this.configuration.apiKey) {
477
- headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
478
- }
479
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
707
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
708
+ _a = headerParameters;
709
+ _b = "x-twitter-client-language";
710
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
711
+ case 1:
712
+ _a[_b] = _10.sent(); // ClientLanguage authentication
713
+ _10.label = 2;
714
+ case 2:
715
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
716
+ _c = headerParameters;
717
+ _d = "Accept";
718
+ return [4 /*yield*/, this.configuration.apiKey("Accept")];
719
+ case 3:
720
+ _c[_d] = _10.sent(); // Accept authentication
721
+ _10.label = 4;
722
+ case 4:
723
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
724
+ _e = headerParameters;
725
+ _f = "Sec-Fetch-Dest";
726
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
727
+ case 5:
728
+ _e[_f] = _10.sent(); // SecFetchDest authentication
729
+ _10.label = 6;
730
+ case 6:
731
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
732
+ _g = headerParameters;
733
+ _h = "Pragma";
734
+ return [4 /*yield*/, this.configuration.apiKey("Pragma")];
735
+ case 7:
736
+ _g[_h] = _10.sent(); // Pragma authentication
737
+ _10.label = 8;
738
+ case 8:
739
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
740
+ _j = headerParameters;
741
+ _k = "Sec-Ch-Ua-Platform";
742
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
743
+ case 9:
744
+ _j[_k] = _10.sent(); // SecChUaPlatform authentication
745
+ _10.label = 10;
746
+ case 10:
747
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
748
+ _l = headerParameters;
749
+ _m = "Sec-Fetch-Mode";
750
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
751
+ case 11:
752
+ _l[_m] = _10.sent(); // SecFetchMode authentication
753
+ _10.label = 12;
754
+ case 12:
755
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
756
+ _o = headerParameters;
757
+ _p = "x-csrf-token";
758
+ return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
759
+ case 13:
760
+ _o[_p] = _10.sent(); // CsrfToken authentication
761
+ _10.label = 14;
762
+ case 14:
763
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
764
+ _q = headerParameters;
765
+ _r = "x-guest-token";
766
+ return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
767
+ case 15:
768
+ _q[_r] = _10.sent(); // GuestToken authentication
769
+ _10.label = 16;
770
+ case 16:
771
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
480
772
  token = this.configuration.accessToken;
481
773
  return [4 /*yield*/, token("BearerAuth", [])];
482
- case 1:
483
- tokenString = _a.sent();
774
+ case 17:
775
+ tokenString = _10.sent();
484
776
  if (tokenString) {
485
777
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
486
778
  }
487
- _a.label = 2;
488
- case 2:
489
- if (this.configuration && this.configuration.apiKey) {
490
- headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
491
- }
492
- if (this.configuration && this.configuration.apiKey) {
493
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
494
- }
495
- if (this.configuration && this.configuration.apiKey) {
496
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
497
- }
498
- if (this.configuration && this.configuration.apiKey) {
499
- headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
500
- }
501
- if (this.configuration && this.configuration.apiKey) {
502
- headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
503
- }
504
- if (this.configuration && this.configuration.apiKey) {
505
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
506
- }
507
- if (this.configuration && this.configuration.apiKey) {
508
- headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
509
- }
510
- if (this.configuration && this.configuration.apiKey) {
511
- headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
512
- }
513
- if (this.configuration && this.configuration.apiKey) {
514
- headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
515
- }
516
- return [4 /*yield*/, this.request({
517
- path: "/graphql/{pathQueryId}/Likes".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
518
- method: 'GET',
519
- headers: headerParameters,
520
- query: queryParameters,
521
- }, initOverrides)];
522
- case 3:
523
- response = _a.sent();
779
+ _10.label = 18;
780
+ case 18:
781
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
782
+ _s = headerParameters;
783
+ _t = "Sec-Ch-Ua";
784
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
785
+ case 19:
786
+ _s[_t] = _10.sent(); // SecChUa authentication
787
+ _10.label = 20;
788
+ case 20:
789
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
790
+ _u = headerParameters;
791
+ _v = "x-twitter-active-user";
792
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
793
+ case 21:
794
+ _u[_v] = _10.sent(); // ActiveUser authentication
795
+ _10.label = 22;
796
+ case 22:
797
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
798
+ _w = headerParameters;
799
+ _x = "user-agent";
800
+ return [4 /*yield*/, this.configuration.apiKey("user-agent")];
801
+ case 23:
802
+ _w[_x] = _10.sent(); // UserAgent authentication
803
+ _10.label = 24;
804
+ case 24:
805
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
806
+ _y = headerParameters;
807
+ _z = "Accept-Language";
808
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
809
+ case 25:
810
+ _y[_z] = _10.sent(); // AcceptLanguage authentication
811
+ _10.label = 26;
812
+ case 26:
813
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
814
+ _0 = headerParameters;
815
+ _1 = "Sec-Fetch-Site";
816
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
817
+ case 27:
818
+ _0[_1] = _10.sent(); // SecFetchSite authentication
819
+ _10.label = 28;
820
+ case 28:
821
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
822
+ _2 = headerParameters;
823
+ _3 = "x-twitter-auth-type";
824
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
825
+ case 29:
826
+ _2[_3] = _10.sent(); // AuthType authentication
827
+ _10.label = 30;
828
+ case 30:
829
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
830
+ _4 = headerParameters;
831
+ _5 = "Cache-Control";
832
+ return [4 /*yield*/, this.configuration.apiKey("Cache-Control")];
833
+ case 31:
834
+ _4[_5] = _10.sent(); // CacheControl authentication
835
+ _10.label = 32;
836
+ case 32:
837
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
838
+ _6 = headerParameters;
839
+ _7 = "Sec-Ch-Ua-Mobile";
840
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
841
+ case 33:
842
+ _6[_7] = _10.sent(); // SecChUaMobile authentication
843
+ _10.label = 34;
844
+ case 34:
845
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
846
+ _8 = headerParameters;
847
+ _9 = "Accept-Encoding";
848
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
849
+ case 35:
850
+ _8[_9] = _10.sent(); // AcceptEncoding authentication
851
+ _10.label = 36;
852
+ case 36: return [4 /*yield*/, this.request({
853
+ path: "/graphql/{pathQueryId}/Likes".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
854
+ method: 'GET',
855
+ headers: headerParameters,
856
+ query: queryParameters,
857
+ }, initOverrides)];
858
+ case 37:
859
+ response = _10.sent();
524
860
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetLikes200ResponseFromJSON)(jsonValue); })];
525
861
  }
526
862
  });
@@ -548,9 +884,9 @@ var TweetApi = /** @class */ (function (_super) {
548
884
  */
549
885
  TweetApi.prototype.getListLatestTweetsTimelineRaw = function (requestParameters, initOverrides) {
550
886
  return __awaiter(this, void 0, void 0, function () {
551
- var queryParameters, headerParameters, token, tokenString, response;
552
- return __generator(this, function (_a) {
553
- switch (_a.label) {
887
+ 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, response;
888
+ return __generator(this, function (_10) {
889
+ switch (_10.label) {
554
890
  case 0:
555
891
  if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
556
892
  throw new runtime.RequiredError('pathQueryId', 'Required parameter requestParameters.pathQueryId was null or undefined when calling getListLatestTweetsTimeline.');
@@ -569,75 +905,159 @@ var TweetApi = /** @class */ (function (_super) {
569
905
  queryParameters['features'] = requestParameters.features;
570
906
  }
571
907
  headerParameters = {};
572
- if (this.configuration && this.configuration.apiKey) {
573
- headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
574
- }
575
- if (this.configuration && this.configuration.apiKey) {
576
- headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
577
- }
578
- if (this.configuration && this.configuration.apiKey) {
579
- headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
580
- }
581
- if (this.configuration && this.configuration.apiKey) {
582
- headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
583
- }
584
- if (this.configuration && this.configuration.apiKey) {
585
- headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
586
- }
587
- if (this.configuration && this.configuration.apiKey) {
588
- headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
589
- }
590
- if (this.configuration && this.configuration.apiKey) {
591
- headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
592
- }
593
- if (this.configuration && this.configuration.apiKey) {
594
- headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
595
- }
596
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
908
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
909
+ _a = headerParameters;
910
+ _b = "x-twitter-client-language";
911
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
912
+ case 1:
913
+ _a[_b] = _10.sent(); // ClientLanguage authentication
914
+ _10.label = 2;
915
+ case 2:
916
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
917
+ _c = headerParameters;
918
+ _d = "Accept";
919
+ return [4 /*yield*/, this.configuration.apiKey("Accept")];
920
+ case 3:
921
+ _c[_d] = _10.sent(); // Accept authentication
922
+ _10.label = 4;
923
+ case 4:
924
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
925
+ _e = headerParameters;
926
+ _f = "Sec-Fetch-Dest";
927
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
928
+ case 5:
929
+ _e[_f] = _10.sent(); // SecFetchDest authentication
930
+ _10.label = 6;
931
+ case 6:
932
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
933
+ _g = headerParameters;
934
+ _h = "Pragma";
935
+ return [4 /*yield*/, this.configuration.apiKey("Pragma")];
936
+ case 7:
937
+ _g[_h] = _10.sent(); // Pragma authentication
938
+ _10.label = 8;
939
+ case 8:
940
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
941
+ _j = headerParameters;
942
+ _k = "Sec-Ch-Ua-Platform";
943
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
944
+ case 9:
945
+ _j[_k] = _10.sent(); // SecChUaPlatform authentication
946
+ _10.label = 10;
947
+ case 10:
948
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
949
+ _l = headerParameters;
950
+ _m = "Sec-Fetch-Mode";
951
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
952
+ case 11:
953
+ _l[_m] = _10.sent(); // SecFetchMode authentication
954
+ _10.label = 12;
955
+ case 12:
956
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
957
+ _o = headerParameters;
958
+ _p = "x-csrf-token";
959
+ return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
960
+ case 13:
961
+ _o[_p] = _10.sent(); // CsrfToken authentication
962
+ _10.label = 14;
963
+ case 14:
964
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
965
+ _q = headerParameters;
966
+ _r = "x-guest-token";
967
+ return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
968
+ case 15:
969
+ _q[_r] = _10.sent(); // GuestToken authentication
970
+ _10.label = 16;
971
+ case 16:
972
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
597
973
  token = this.configuration.accessToken;
598
974
  return [4 /*yield*/, token("BearerAuth", [])];
599
- case 1:
600
- tokenString = _a.sent();
975
+ case 17:
976
+ tokenString = _10.sent();
601
977
  if (tokenString) {
602
978
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
603
979
  }
604
- _a.label = 2;
605
- case 2:
606
- if (this.configuration && this.configuration.apiKey) {
607
- headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
608
- }
609
- if (this.configuration && this.configuration.apiKey) {
610
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
611
- }
612
- if (this.configuration && this.configuration.apiKey) {
613
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
614
- }
615
- if (this.configuration && this.configuration.apiKey) {
616
- headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
617
- }
618
- if (this.configuration && this.configuration.apiKey) {
619
- headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
620
- }
621
- if (this.configuration && this.configuration.apiKey) {
622
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
623
- }
624
- if (this.configuration && this.configuration.apiKey) {
625
- headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
626
- }
627
- if (this.configuration && this.configuration.apiKey) {
628
- headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
629
- }
630
- if (this.configuration && this.configuration.apiKey) {
631
- headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
632
- }
633
- return [4 /*yield*/, this.request({
634
- path: "/graphql/{pathQueryId}/ListLatestTweetsTimeline".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
635
- method: 'GET',
636
- headers: headerParameters,
637
- query: queryParameters,
638
- }, initOverrides)];
639
- case 3:
640
- response = _a.sent();
980
+ _10.label = 18;
981
+ case 18:
982
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
983
+ _s = headerParameters;
984
+ _t = "Sec-Ch-Ua";
985
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
986
+ case 19:
987
+ _s[_t] = _10.sent(); // SecChUa authentication
988
+ _10.label = 20;
989
+ case 20:
990
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
991
+ _u = headerParameters;
992
+ _v = "x-twitter-active-user";
993
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
994
+ case 21:
995
+ _u[_v] = _10.sent(); // ActiveUser authentication
996
+ _10.label = 22;
997
+ case 22:
998
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
999
+ _w = headerParameters;
1000
+ _x = "user-agent";
1001
+ return [4 /*yield*/, this.configuration.apiKey("user-agent")];
1002
+ case 23:
1003
+ _w[_x] = _10.sent(); // UserAgent authentication
1004
+ _10.label = 24;
1005
+ case 24:
1006
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
1007
+ _y = headerParameters;
1008
+ _z = "Accept-Language";
1009
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
1010
+ case 25:
1011
+ _y[_z] = _10.sent(); // AcceptLanguage authentication
1012
+ _10.label = 26;
1013
+ case 26:
1014
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
1015
+ _0 = headerParameters;
1016
+ _1 = "Sec-Fetch-Site";
1017
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
1018
+ case 27:
1019
+ _0[_1] = _10.sent(); // SecFetchSite authentication
1020
+ _10.label = 28;
1021
+ case 28:
1022
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
1023
+ _2 = headerParameters;
1024
+ _3 = "x-twitter-auth-type";
1025
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
1026
+ case 29:
1027
+ _2[_3] = _10.sent(); // AuthType authentication
1028
+ _10.label = 30;
1029
+ case 30:
1030
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
1031
+ _4 = headerParameters;
1032
+ _5 = "Cache-Control";
1033
+ return [4 /*yield*/, this.configuration.apiKey("Cache-Control")];
1034
+ case 31:
1035
+ _4[_5] = _10.sent(); // CacheControl authentication
1036
+ _10.label = 32;
1037
+ case 32:
1038
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
1039
+ _6 = headerParameters;
1040
+ _7 = "Sec-Ch-Ua-Mobile";
1041
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
1042
+ case 33:
1043
+ _6[_7] = _10.sent(); // SecChUaMobile authentication
1044
+ _10.label = 34;
1045
+ case 34:
1046
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
1047
+ _8 = headerParameters;
1048
+ _9 = "Accept-Encoding";
1049
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
1050
+ case 35:
1051
+ _8[_9] = _10.sent(); // AcceptEncoding authentication
1052
+ _10.label = 36;
1053
+ case 36: return [4 /*yield*/, this.request({
1054
+ path: "/graphql/{pathQueryId}/ListLatestTweetsTimeline".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
1055
+ method: 'GET',
1056
+ headers: headerParameters,
1057
+ query: queryParameters,
1058
+ }, initOverrides)];
1059
+ case 37:
1060
+ response = _10.sent();
641
1061
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetListLatestTweetsTimeline200ResponseFromJSON)(jsonValue); })];
642
1062
  }
643
1063
  });
@@ -665,9 +1085,9 @@ var TweetApi = /** @class */ (function (_super) {
665
1085
  */
666
1086
  TweetApi.prototype.getSearchTimelineRaw = function (requestParameters, initOverrides) {
667
1087
  return __awaiter(this, void 0, void 0, function () {
668
- var queryParameters, headerParameters, token, tokenString, response;
669
- return __generator(this, function (_a) {
670
- switch (_a.label) {
1088
+ 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, response;
1089
+ return __generator(this, function (_10) {
1090
+ switch (_10.label) {
671
1091
  case 0:
672
1092
  if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
673
1093
  throw new runtime.RequiredError('pathQueryId', 'Required parameter requestParameters.pathQueryId was null or undefined when calling getSearchTimeline.');
@@ -686,75 +1106,159 @@ var TweetApi = /** @class */ (function (_super) {
686
1106
  queryParameters['features'] = requestParameters.features;
687
1107
  }
688
1108
  headerParameters = {};
689
- if (this.configuration && this.configuration.apiKey) {
690
- headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
691
- }
692
- if (this.configuration && this.configuration.apiKey) {
693
- headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
694
- }
695
- if (this.configuration && this.configuration.apiKey) {
696
- headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
697
- }
698
- if (this.configuration && this.configuration.apiKey) {
699
- headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
700
- }
701
- if (this.configuration && this.configuration.apiKey) {
702
- headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
703
- }
704
- if (this.configuration && this.configuration.apiKey) {
705
- headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
706
- }
707
- if (this.configuration && this.configuration.apiKey) {
708
- headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
709
- }
710
- if (this.configuration && this.configuration.apiKey) {
711
- headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
712
- }
713
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
1109
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
1110
+ _a = headerParameters;
1111
+ _b = "x-twitter-client-language";
1112
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
1113
+ case 1:
1114
+ _a[_b] = _10.sent(); // ClientLanguage authentication
1115
+ _10.label = 2;
1116
+ case 2:
1117
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
1118
+ _c = headerParameters;
1119
+ _d = "Accept";
1120
+ return [4 /*yield*/, this.configuration.apiKey("Accept")];
1121
+ case 3:
1122
+ _c[_d] = _10.sent(); // Accept authentication
1123
+ _10.label = 4;
1124
+ case 4:
1125
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
1126
+ _e = headerParameters;
1127
+ _f = "Sec-Fetch-Dest";
1128
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
1129
+ case 5:
1130
+ _e[_f] = _10.sent(); // SecFetchDest authentication
1131
+ _10.label = 6;
1132
+ case 6:
1133
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
1134
+ _g = headerParameters;
1135
+ _h = "Pragma";
1136
+ return [4 /*yield*/, this.configuration.apiKey("Pragma")];
1137
+ case 7:
1138
+ _g[_h] = _10.sent(); // Pragma authentication
1139
+ _10.label = 8;
1140
+ case 8:
1141
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
1142
+ _j = headerParameters;
1143
+ _k = "Sec-Ch-Ua-Platform";
1144
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
1145
+ case 9:
1146
+ _j[_k] = _10.sent(); // SecChUaPlatform authentication
1147
+ _10.label = 10;
1148
+ case 10:
1149
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
1150
+ _l = headerParameters;
1151
+ _m = "Sec-Fetch-Mode";
1152
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
1153
+ case 11:
1154
+ _l[_m] = _10.sent(); // SecFetchMode authentication
1155
+ _10.label = 12;
1156
+ case 12:
1157
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
1158
+ _o = headerParameters;
1159
+ _p = "x-csrf-token";
1160
+ return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
1161
+ case 13:
1162
+ _o[_p] = _10.sent(); // CsrfToken authentication
1163
+ _10.label = 14;
1164
+ case 14:
1165
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
1166
+ _q = headerParameters;
1167
+ _r = "x-guest-token";
1168
+ return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
1169
+ case 15:
1170
+ _q[_r] = _10.sent(); // GuestToken authentication
1171
+ _10.label = 16;
1172
+ case 16:
1173
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
714
1174
  token = this.configuration.accessToken;
715
1175
  return [4 /*yield*/, token("BearerAuth", [])];
716
- case 1:
717
- tokenString = _a.sent();
1176
+ case 17:
1177
+ tokenString = _10.sent();
718
1178
  if (tokenString) {
719
1179
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
720
1180
  }
721
- _a.label = 2;
722
- case 2:
723
- if (this.configuration && this.configuration.apiKey) {
724
- headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
725
- }
726
- if (this.configuration && this.configuration.apiKey) {
727
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
728
- }
729
- if (this.configuration && this.configuration.apiKey) {
730
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
731
- }
732
- if (this.configuration && this.configuration.apiKey) {
733
- headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
734
- }
735
- if (this.configuration && this.configuration.apiKey) {
736
- headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
737
- }
738
- if (this.configuration && this.configuration.apiKey) {
739
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
740
- }
741
- if (this.configuration && this.configuration.apiKey) {
742
- headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
743
- }
744
- if (this.configuration && this.configuration.apiKey) {
745
- headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
746
- }
747
- if (this.configuration && this.configuration.apiKey) {
748
- headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
749
- }
750
- return [4 /*yield*/, this.request({
751
- path: "/graphql/{pathQueryId}/SearchTimeline".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
752
- method: 'GET',
753
- headers: headerParameters,
754
- query: queryParameters,
755
- }, initOverrides)];
756
- case 3:
757
- response = _a.sent();
1181
+ _10.label = 18;
1182
+ case 18:
1183
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
1184
+ _s = headerParameters;
1185
+ _t = "Sec-Ch-Ua";
1186
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
1187
+ case 19:
1188
+ _s[_t] = _10.sent(); // SecChUa authentication
1189
+ _10.label = 20;
1190
+ case 20:
1191
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
1192
+ _u = headerParameters;
1193
+ _v = "x-twitter-active-user";
1194
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
1195
+ case 21:
1196
+ _u[_v] = _10.sent(); // ActiveUser authentication
1197
+ _10.label = 22;
1198
+ case 22:
1199
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
1200
+ _w = headerParameters;
1201
+ _x = "user-agent";
1202
+ return [4 /*yield*/, this.configuration.apiKey("user-agent")];
1203
+ case 23:
1204
+ _w[_x] = _10.sent(); // UserAgent authentication
1205
+ _10.label = 24;
1206
+ case 24:
1207
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
1208
+ _y = headerParameters;
1209
+ _z = "Accept-Language";
1210
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
1211
+ case 25:
1212
+ _y[_z] = _10.sent(); // AcceptLanguage authentication
1213
+ _10.label = 26;
1214
+ case 26:
1215
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
1216
+ _0 = headerParameters;
1217
+ _1 = "Sec-Fetch-Site";
1218
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
1219
+ case 27:
1220
+ _0[_1] = _10.sent(); // SecFetchSite authentication
1221
+ _10.label = 28;
1222
+ case 28:
1223
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
1224
+ _2 = headerParameters;
1225
+ _3 = "x-twitter-auth-type";
1226
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
1227
+ case 29:
1228
+ _2[_3] = _10.sent(); // AuthType authentication
1229
+ _10.label = 30;
1230
+ case 30:
1231
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
1232
+ _4 = headerParameters;
1233
+ _5 = "Cache-Control";
1234
+ return [4 /*yield*/, this.configuration.apiKey("Cache-Control")];
1235
+ case 31:
1236
+ _4[_5] = _10.sent(); // CacheControl authentication
1237
+ _10.label = 32;
1238
+ case 32:
1239
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
1240
+ _6 = headerParameters;
1241
+ _7 = "Sec-Ch-Ua-Mobile";
1242
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
1243
+ case 33:
1244
+ _6[_7] = _10.sent(); // SecChUaMobile authentication
1245
+ _10.label = 34;
1246
+ case 34:
1247
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
1248
+ _8 = headerParameters;
1249
+ _9 = "Accept-Encoding";
1250
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
1251
+ case 35:
1252
+ _8[_9] = _10.sent(); // AcceptEncoding authentication
1253
+ _10.label = 36;
1254
+ case 36: return [4 /*yield*/, this.request({
1255
+ path: "/graphql/{pathQueryId}/SearchTimeline".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
1256
+ method: 'GET',
1257
+ headers: headerParameters,
1258
+ query: queryParameters,
1259
+ }, initOverrides)];
1260
+ case 37:
1261
+ response = _10.sent();
758
1262
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetSearchTimeline200ResponseFromJSON)(jsonValue); })];
759
1263
  }
760
1264
  });
@@ -782,9 +1286,9 @@ var TweetApi = /** @class */ (function (_super) {
782
1286
  */
783
1287
  TweetApi.prototype.getTweetDetailRaw = function (requestParameters, initOverrides) {
784
1288
  return __awaiter(this, void 0, void 0, function () {
785
- var queryParameters, headerParameters, token, tokenString, response;
786
- return __generator(this, function (_a) {
787
- switch (_a.label) {
1289
+ 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, response;
1290
+ return __generator(this, function (_10) {
1291
+ switch (_10.label) {
788
1292
  case 0:
789
1293
  if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
790
1294
  throw new runtime.RequiredError('pathQueryId', 'Required parameter requestParameters.pathQueryId was null or undefined when calling getTweetDetail.');
@@ -809,75 +1313,159 @@ var TweetApi = /** @class */ (function (_super) {
809
1313
  queryParameters['fieldToggles'] = requestParameters.fieldToggles;
810
1314
  }
811
1315
  headerParameters = {};
812
- if (this.configuration && this.configuration.apiKey) {
813
- headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
814
- }
815
- if (this.configuration && this.configuration.apiKey) {
816
- headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
817
- }
818
- if (this.configuration && this.configuration.apiKey) {
819
- headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
820
- }
821
- if (this.configuration && this.configuration.apiKey) {
822
- headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
823
- }
824
- if (this.configuration && this.configuration.apiKey) {
825
- headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
826
- }
827
- if (this.configuration && this.configuration.apiKey) {
828
- headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
829
- }
830
- if (this.configuration && this.configuration.apiKey) {
831
- headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
832
- }
833
- if (this.configuration && this.configuration.apiKey) {
834
- headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
835
- }
836
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
1316
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
1317
+ _a = headerParameters;
1318
+ _b = "x-twitter-client-language";
1319
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
1320
+ case 1:
1321
+ _a[_b] = _10.sent(); // ClientLanguage authentication
1322
+ _10.label = 2;
1323
+ case 2:
1324
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
1325
+ _c = headerParameters;
1326
+ _d = "Accept";
1327
+ return [4 /*yield*/, this.configuration.apiKey("Accept")];
1328
+ case 3:
1329
+ _c[_d] = _10.sent(); // Accept authentication
1330
+ _10.label = 4;
1331
+ case 4:
1332
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
1333
+ _e = headerParameters;
1334
+ _f = "Sec-Fetch-Dest";
1335
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
1336
+ case 5:
1337
+ _e[_f] = _10.sent(); // SecFetchDest authentication
1338
+ _10.label = 6;
1339
+ case 6:
1340
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
1341
+ _g = headerParameters;
1342
+ _h = "Pragma";
1343
+ return [4 /*yield*/, this.configuration.apiKey("Pragma")];
1344
+ case 7:
1345
+ _g[_h] = _10.sent(); // Pragma authentication
1346
+ _10.label = 8;
1347
+ case 8:
1348
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
1349
+ _j = headerParameters;
1350
+ _k = "Sec-Ch-Ua-Platform";
1351
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
1352
+ case 9:
1353
+ _j[_k] = _10.sent(); // SecChUaPlatform authentication
1354
+ _10.label = 10;
1355
+ case 10:
1356
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
1357
+ _l = headerParameters;
1358
+ _m = "Sec-Fetch-Mode";
1359
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
1360
+ case 11:
1361
+ _l[_m] = _10.sent(); // SecFetchMode authentication
1362
+ _10.label = 12;
1363
+ case 12:
1364
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
1365
+ _o = headerParameters;
1366
+ _p = "x-csrf-token";
1367
+ return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
1368
+ case 13:
1369
+ _o[_p] = _10.sent(); // CsrfToken authentication
1370
+ _10.label = 14;
1371
+ case 14:
1372
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
1373
+ _q = headerParameters;
1374
+ _r = "x-guest-token";
1375
+ return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
1376
+ case 15:
1377
+ _q[_r] = _10.sent(); // GuestToken authentication
1378
+ _10.label = 16;
1379
+ case 16:
1380
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
837
1381
  token = this.configuration.accessToken;
838
1382
  return [4 /*yield*/, token("BearerAuth", [])];
839
- case 1:
840
- tokenString = _a.sent();
1383
+ case 17:
1384
+ tokenString = _10.sent();
841
1385
  if (tokenString) {
842
1386
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
843
1387
  }
844
- _a.label = 2;
845
- case 2:
846
- if (this.configuration && this.configuration.apiKey) {
847
- headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
848
- }
849
- if (this.configuration && this.configuration.apiKey) {
850
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
851
- }
852
- if (this.configuration && this.configuration.apiKey) {
853
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
854
- }
855
- if (this.configuration && this.configuration.apiKey) {
856
- headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
857
- }
858
- if (this.configuration && this.configuration.apiKey) {
859
- headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
860
- }
861
- if (this.configuration && this.configuration.apiKey) {
862
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
863
- }
864
- if (this.configuration && this.configuration.apiKey) {
865
- headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
866
- }
867
- if (this.configuration && this.configuration.apiKey) {
868
- headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
869
- }
870
- if (this.configuration && this.configuration.apiKey) {
871
- headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
872
- }
873
- return [4 /*yield*/, this.request({
874
- path: "/graphql/{pathQueryId}/TweetDetail".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
875
- method: 'GET',
876
- headers: headerParameters,
877
- query: queryParameters,
878
- }, initOverrides)];
879
- case 3:
880
- response = _a.sent();
1388
+ _10.label = 18;
1389
+ case 18:
1390
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
1391
+ _s = headerParameters;
1392
+ _t = "Sec-Ch-Ua";
1393
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
1394
+ case 19:
1395
+ _s[_t] = _10.sent(); // SecChUa authentication
1396
+ _10.label = 20;
1397
+ case 20:
1398
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
1399
+ _u = headerParameters;
1400
+ _v = "x-twitter-active-user";
1401
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
1402
+ case 21:
1403
+ _u[_v] = _10.sent(); // ActiveUser authentication
1404
+ _10.label = 22;
1405
+ case 22:
1406
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
1407
+ _w = headerParameters;
1408
+ _x = "user-agent";
1409
+ return [4 /*yield*/, this.configuration.apiKey("user-agent")];
1410
+ case 23:
1411
+ _w[_x] = _10.sent(); // UserAgent authentication
1412
+ _10.label = 24;
1413
+ case 24:
1414
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
1415
+ _y = headerParameters;
1416
+ _z = "Accept-Language";
1417
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
1418
+ case 25:
1419
+ _y[_z] = _10.sent(); // AcceptLanguage authentication
1420
+ _10.label = 26;
1421
+ case 26:
1422
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
1423
+ _0 = headerParameters;
1424
+ _1 = "Sec-Fetch-Site";
1425
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
1426
+ case 27:
1427
+ _0[_1] = _10.sent(); // SecFetchSite authentication
1428
+ _10.label = 28;
1429
+ case 28:
1430
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
1431
+ _2 = headerParameters;
1432
+ _3 = "x-twitter-auth-type";
1433
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
1434
+ case 29:
1435
+ _2[_3] = _10.sent(); // AuthType authentication
1436
+ _10.label = 30;
1437
+ case 30:
1438
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
1439
+ _4 = headerParameters;
1440
+ _5 = "Cache-Control";
1441
+ return [4 /*yield*/, this.configuration.apiKey("Cache-Control")];
1442
+ case 31:
1443
+ _4[_5] = _10.sent(); // CacheControl authentication
1444
+ _10.label = 32;
1445
+ case 32:
1446
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
1447
+ _6 = headerParameters;
1448
+ _7 = "Sec-Ch-Ua-Mobile";
1449
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
1450
+ case 33:
1451
+ _6[_7] = _10.sent(); // SecChUaMobile authentication
1452
+ _10.label = 34;
1453
+ case 34:
1454
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
1455
+ _8 = headerParameters;
1456
+ _9 = "Accept-Encoding";
1457
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
1458
+ case 35:
1459
+ _8[_9] = _10.sent(); // AcceptEncoding authentication
1460
+ _10.label = 36;
1461
+ case 36: return [4 /*yield*/, this.request({
1462
+ path: "/graphql/{pathQueryId}/TweetDetail".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
1463
+ method: 'GET',
1464
+ headers: headerParameters,
1465
+ query: queryParameters,
1466
+ }, initOverrides)];
1467
+ case 37:
1468
+ response = _10.sent();
881
1469
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetTweetDetail200ResponseFromJSON)(jsonValue); })];
882
1470
  }
883
1471
  });
@@ -905,9 +1493,9 @@ var TweetApi = /** @class */ (function (_super) {
905
1493
  */
906
1494
  TweetApi.prototype.getUserHighlightsTweetsRaw = function (requestParameters, initOverrides) {
907
1495
  return __awaiter(this, void 0, void 0, function () {
908
- var queryParameters, headerParameters, token, tokenString, response;
909
- return __generator(this, function (_a) {
910
- switch (_a.label) {
1496
+ 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, response;
1497
+ return __generator(this, function (_10) {
1498
+ switch (_10.label) {
911
1499
  case 0:
912
1500
  if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
913
1501
  throw new runtime.RequiredError('pathQueryId', 'Required parameter requestParameters.pathQueryId was null or undefined when calling getUserHighlightsTweets.');
@@ -926,75 +1514,159 @@ var TweetApi = /** @class */ (function (_super) {
926
1514
  queryParameters['features'] = requestParameters.features;
927
1515
  }
928
1516
  headerParameters = {};
929
- if (this.configuration && this.configuration.apiKey) {
930
- headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
931
- }
932
- if (this.configuration && this.configuration.apiKey) {
933
- headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
934
- }
935
- if (this.configuration && this.configuration.apiKey) {
936
- headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
937
- }
938
- if (this.configuration && this.configuration.apiKey) {
939
- headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
940
- }
941
- if (this.configuration && this.configuration.apiKey) {
942
- headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
943
- }
944
- if (this.configuration && this.configuration.apiKey) {
945
- headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
946
- }
947
- if (this.configuration && this.configuration.apiKey) {
948
- headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
949
- }
950
- if (this.configuration && this.configuration.apiKey) {
951
- headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
952
- }
953
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
1517
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
1518
+ _a = headerParameters;
1519
+ _b = "x-twitter-client-language";
1520
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
1521
+ case 1:
1522
+ _a[_b] = _10.sent(); // ClientLanguage authentication
1523
+ _10.label = 2;
1524
+ case 2:
1525
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
1526
+ _c = headerParameters;
1527
+ _d = "Accept";
1528
+ return [4 /*yield*/, this.configuration.apiKey("Accept")];
1529
+ case 3:
1530
+ _c[_d] = _10.sent(); // Accept authentication
1531
+ _10.label = 4;
1532
+ case 4:
1533
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
1534
+ _e = headerParameters;
1535
+ _f = "Sec-Fetch-Dest";
1536
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
1537
+ case 5:
1538
+ _e[_f] = _10.sent(); // SecFetchDest authentication
1539
+ _10.label = 6;
1540
+ case 6:
1541
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
1542
+ _g = headerParameters;
1543
+ _h = "Pragma";
1544
+ return [4 /*yield*/, this.configuration.apiKey("Pragma")];
1545
+ case 7:
1546
+ _g[_h] = _10.sent(); // Pragma authentication
1547
+ _10.label = 8;
1548
+ case 8:
1549
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
1550
+ _j = headerParameters;
1551
+ _k = "Sec-Ch-Ua-Platform";
1552
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
1553
+ case 9:
1554
+ _j[_k] = _10.sent(); // SecChUaPlatform authentication
1555
+ _10.label = 10;
1556
+ case 10:
1557
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
1558
+ _l = headerParameters;
1559
+ _m = "Sec-Fetch-Mode";
1560
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
1561
+ case 11:
1562
+ _l[_m] = _10.sent(); // SecFetchMode authentication
1563
+ _10.label = 12;
1564
+ case 12:
1565
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
1566
+ _o = headerParameters;
1567
+ _p = "x-csrf-token";
1568
+ return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
1569
+ case 13:
1570
+ _o[_p] = _10.sent(); // CsrfToken authentication
1571
+ _10.label = 14;
1572
+ case 14:
1573
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
1574
+ _q = headerParameters;
1575
+ _r = "x-guest-token";
1576
+ return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
1577
+ case 15:
1578
+ _q[_r] = _10.sent(); // GuestToken authentication
1579
+ _10.label = 16;
1580
+ case 16:
1581
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
954
1582
  token = this.configuration.accessToken;
955
1583
  return [4 /*yield*/, token("BearerAuth", [])];
956
- case 1:
957
- tokenString = _a.sent();
1584
+ case 17:
1585
+ tokenString = _10.sent();
958
1586
  if (tokenString) {
959
1587
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
960
1588
  }
961
- _a.label = 2;
962
- case 2:
963
- if (this.configuration && this.configuration.apiKey) {
964
- headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
965
- }
966
- if (this.configuration && this.configuration.apiKey) {
967
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
968
- }
969
- if (this.configuration && this.configuration.apiKey) {
970
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
971
- }
972
- if (this.configuration && this.configuration.apiKey) {
973
- headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
974
- }
975
- if (this.configuration && this.configuration.apiKey) {
976
- headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
977
- }
978
- if (this.configuration && this.configuration.apiKey) {
979
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
980
- }
981
- if (this.configuration && this.configuration.apiKey) {
982
- headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
983
- }
984
- if (this.configuration && this.configuration.apiKey) {
985
- headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
986
- }
987
- if (this.configuration && this.configuration.apiKey) {
988
- headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
989
- }
990
- return [4 /*yield*/, this.request({
991
- path: "/graphql/{pathQueryId}/UserHighlightsTweets".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
992
- method: 'GET',
993
- headers: headerParameters,
994
- query: queryParameters,
995
- }, initOverrides)];
996
- case 3:
997
- response = _a.sent();
1589
+ _10.label = 18;
1590
+ case 18:
1591
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
1592
+ _s = headerParameters;
1593
+ _t = "Sec-Ch-Ua";
1594
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
1595
+ case 19:
1596
+ _s[_t] = _10.sent(); // SecChUa authentication
1597
+ _10.label = 20;
1598
+ case 20:
1599
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
1600
+ _u = headerParameters;
1601
+ _v = "x-twitter-active-user";
1602
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
1603
+ case 21:
1604
+ _u[_v] = _10.sent(); // ActiveUser authentication
1605
+ _10.label = 22;
1606
+ case 22:
1607
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
1608
+ _w = headerParameters;
1609
+ _x = "user-agent";
1610
+ return [4 /*yield*/, this.configuration.apiKey("user-agent")];
1611
+ case 23:
1612
+ _w[_x] = _10.sent(); // UserAgent authentication
1613
+ _10.label = 24;
1614
+ case 24:
1615
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
1616
+ _y = headerParameters;
1617
+ _z = "Accept-Language";
1618
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
1619
+ case 25:
1620
+ _y[_z] = _10.sent(); // AcceptLanguage authentication
1621
+ _10.label = 26;
1622
+ case 26:
1623
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
1624
+ _0 = headerParameters;
1625
+ _1 = "Sec-Fetch-Site";
1626
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
1627
+ case 27:
1628
+ _0[_1] = _10.sent(); // SecFetchSite authentication
1629
+ _10.label = 28;
1630
+ case 28:
1631
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
1632
+ _2 = headerParameters;
1633
+ _3 = "x-twitter-auth-type";
1634
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
1635
+ case 29:
1636
+ _2[_3] = _10.sent(); // AuthType authentication
1637
+ _10.label = 30;
1638
+ case 30:
1639
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
1640
+ _4 = headerParameters;
1641
+ _5 = "Cache-Control";
1642
+ return [4 /*yield*/, this.configuration.apiKey("Cache-Control")];
1643
+ case 31:
1644
+ _4[_5] = _10.sent(); // CacheControl authentication
1645
+ _10.label = 32;
1646
+ case 32:
1647
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
1648
+ _6 = headerParameters;
1649
+ _7 = "Sec-Ch-Ua-Mobile";
1650
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
1651
+ case 33:
1652
+ _6[_7] = _10.sent(); // SecChUaMobile authentication
1653
+ _10.label = 34;
1654
+ case 34:
1655
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
1656
+ _8 = headerParameters;
1657
+ _9 = "Accept-Encoding";
1658
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
1659
+ case 35:
1660
+ _8[_9] = _10.sent(); // AcceptEncoding authentication
1661
+ _10.label = 36;
1662
+ case 36: return [4 /*yield*/, this.request({
1663
+ path: "/graphql/{pathQueryId}/UserHighlightsTweets".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
1664
+ method: 'GET',
1665
+ headers: headerParameters,
1666
+ query: queryParameters,
1667
+ }, initOverrides)];
1668
+ case 37:
1669
+ response = _10.sent();
998
1670
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetUserHighlightsTweets200ResponseFromJSON)(jsonValue); })];
999
1671
  }
1000
1672
  });
@@ -1022,9 +1694,9 @@ var TweetApi = /** @class */ (function (_super) {
1022
1694
  */
1023
1695
  TweetApi.prototype.getUserMediaRaw = function (requestParameters, initOverrides) {
1024
1696
  return __awaiter(this, void 0, void 0, function () {
1025
- var queryParameters, headerParameters, token, tokenString, response;
1026
- return __generator(this, function (_a) {
1027
- switch (_a.label) {
1697
+ 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, response;
1698
+ return __generator(this, function (_10) {
1699
+ switch (_10.label) {
1028
1700
  case 0:
1029
1701
  if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
1030
1702
  throw new runtime.RequiredError('pathQueryId', 'Required parameter requestParameters.pathQueryId was null or undefined when calling getUserMedia.');
@@ -1043,75 +1715,159 @@ var TweetApi = /** @class */ (function (_super) {
1043
1715
  queryParameters['features'] = requestParameters.features;
1044
1716
  }
1045
1717
  headerParameters = {};
1046
- if (this.configuration && this.configuration.apiKey) {
1047
- headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
1048
- }
1049
- if (this.configuration && this.configuration.apiKey) {
1050
- headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
1051
- }
1052
- if (this.configuration && this.configuration.apiKey) {
1053
- headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
1054
- }
1055
- if (this.configuration && this.configuration.apiKey) {
1056
- headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
1057
- }
1058
- if (this.configuration && this.configuration.apiKey) {
1059
- headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
1060
- }
1061
- if (this.configuration && this.configuration.apiKey) {
1062
- headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
1063
- }
1064
- if (this.configuration && this.configuration.apiKey) {
1065
- headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
1066
- }
1067
- if (this.configuration && this.configuration.apiKey) {
1068
- headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
1069
- }
1070
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
1718
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
1719
+ _a = headerParameters;
1720
+ _b = "x-twitter-client-language";
1721
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
1722
+ case 1:
1723
+ _a[_b] = _10.sent(); // ClientLanguage authentication
1724
+ _10.label = 2;
1725
+ case 2:
1726
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
1727
+ _c = headerParameters;
1728
+ _d = "Accept";
1729
+ return [4 /*yield*/, this.configuration.apiKey("Accept")];
1730
+ case 3:
1731
+ _c[_d] = _10.sent(); // Accept authentication
1732
+ _10.label = 4;
1733
+ case 4:
1734
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
1735
+ _e = headerParameters;
1736
+ _f = "Sec-Fetch-Dest";
1737
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
1738
+ case 5:
1739
+ _e[_f] = _10.sent(); // SecFetchDest authentication
1740
+ _10.label = 6;
1741
+ case 6:
1742
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
1743
+ _g = headerParameters;
1744
+ _h = "Pragma";
1745
+ return [4 /*yield*/, this.configuration.apiKey("Pragma")];
1746
+ case 7:
1747
+ _g[_h] = _10.sent(); // Pragma authentication
1748
+ _10.label = 8;
1749
+ case 8:
1750
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
1751
+ _j = headerParameters;
1752
+ _k = "Sec-Ch-Ua-Platform";
1753
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
1754
+ case 9:
1755
+ _j[_k] = _10.sent(); // SecChUaPlatform authentication
1756
+ _10.label = 10;
1757
+ case 10:
1758
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
1759
+ _l = headerParameters;
1760
+ _m = "Sec-Fetch-Mode";
1761
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
1762
+ case 11:
1763
+ _l[_m] = _10.sent(); // SecFetchMode authentication
1764
+ _10.label = 12;
1765
+ case 12:
1766
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
1767
+ _o = headerParameters;
1768
+ _p = "x-csrf-token";
1769
+ return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
1770
+ case 13:
1771
+ _o[_p] = _10.sent(); // CsrfToken authentication
1772
+ _10.label = 14;
1773
+ case 14:
1774
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
1775
+ _q = headerParameters;
1776
+ _r = "x-guest-token";
1777
+ return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
1778
+ case 15:
1779
+ _q[_r] = _10.sent(); // GuestToken authentication
1780
+ _10.label = 16;
1781
+ case 16:
1782
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
1071
1783
  token = this.configuration.accessToken;
1072
1784
  return [4 /*yield*/, token("BearerAuth", [])];
1073
- case 1:
1074
- tokenString = _a.sent();
1785
+ case 17:
1786
+ tokenString = _10.sent();
1075
1787
  if (tokenString) {
1076
1788
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
1077
1789
  }
1078
- _a.label = 2;
1079
- case 2:
1080
- if (this.configuration && this.configuration.apiKey) {
1081
- headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
1082
- }
1083
- if (this.configuration && this.configuration.apiKey) {
1084
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
1085
- }
1086
- if (this.configuration && this.configuration.apiKey) {
1087
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
1088
- }
1089
- if (this.configuration && this.configuration.apiKey) {
1090
- headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
1091
- }
1092
- if (this.configuration && this.configuration.apiKey) {
1093
- headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
1094
- }
1095
- if (this.configuration && this.configuration.apiKey) {
1096
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
1097
- }
1098
- if (this.configuration && this.configuration.apiKey) {
1099
- headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
1100
- }
1101
- if (this.configuration && this.configuration.apiKey) {
1102
- headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
1103
- }
1104
- if (this.configuration && this.configuration.apiKey) {
1105
- headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
1106
- }
1107
- return [4 /*yield*/, this.request({
1108
- path: "/graphql/{pathQueryId}/UserMedia".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
1109
- method: 'GET',
1110
- headers: headerParameters,
1111
- query: queryParameters,
1112
- }, initOverrides)];
1113
- case 3:
1114
- response = _a.sent();
1790
+ _10.label = 18;
1791
+ case 18:
1792
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
1793
+ _s = headerParameters;
1794
+ _t = "Sec-Ch-Ua";
1795
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
1796
+ case 19:
1797
+ _s[_t] = _10.sent(); // SecChUa authentication
1798
+ _10.label = 20;
1799
+ case 20:
1800
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
1801
+ _u = headerParameters;
1802
+ _v = "x-twitter-active-user";
1803
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
1804
+ case 21:
1805
+ _u[_v] = _10.sent(); // ActiveUser authentication
1806
+ _10.label = 22;
1807
+ case 22:
1808
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
1809
+ _w = headerParameters;
1810
+ _x = "user-agent";
1811
+ return [4 /*yield*/, this.configuration.apiKey("user-agent")];
1812
+ case 23:
1813
+ _w[_x] = _10.sent(); // UserAgent authentication
1814
+ _10.label = 24;
1815
+ case 24:
1816
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
1817
+ _y = headerParameters;
1818
+ _z = "Accept-Language";
1819
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
1820
+ case 25:
1821
+ _y[_z] = _10.sent(); // AcceptLanguage authentication
1822
+ _10.label = 26;
1823
+ case 26:
1824
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
1825
+ _0 = headerParameters;
1826
+ _1 = "Sec-Fetch-Site";
1827
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
1828
+ case 27:
1829
+ _0[_1] = _10.sent(); // SecFetchSite authentication
1830
+ _10.label = 28;
1831
+ case 28:
1832
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
1833
+ _2 = headerParameters;
1834
+ _3 = "x-twitter-auth-type";
1835
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
1836
+ case 29:
1837
+ _2[_3] = _10.sent(); // AuthType authentication
1838
+ _10.label = 30;
1839
+ case 30:
1840
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
1841
+ _4 = headerParameters;
1842
+ _5 = "Cache-Control";
1843
+ return [4 /*yield*/, this.configuration.apiKey("Cache-Control")];
1844
+ case 31:
1845
+ _4[_5] = _10.sent(); // CacheControl authentication
1846
+ _10.label = 32;
1847
+ case 32:
1848
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
1849
+ _6 = headerParameters;
1850
+ _7 = "Sec-Ch-Ua-Mobile";
1851
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
1852
+ case 33:
1853
+ _6[_7] = _10.sent(); // SecChUaMobile authentication
1854
+ _10.label = 34;
1855
+ case 34:
1856
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
1857
+ _8 = headerParameters;
1858
+ _9 = "Accept-Encoding";
1859
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
1860
+ case 35:
1861
+ _8[_9] = _10.sent(); // AcceptEncoding authentication
1862
+ _10.label = 36;
1863
+ case 36: return [4 /*yield*/, this.request({
1864
+ path: "/graphql/{pathQueryId}/UserMedia".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
1865
+ method: 'GET',
1866
+ headers: headerParameters,
1867
+ query: queryParameters,
1868
+ }, initOverrides)];
1869
+ case 37:
1870
+ response = _10.sent();
1115
1871
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetLikes200ResponseFromJSON)(jsonValue); })];
1116
1872
  }
1117
1873
  });
@@ -1139,9 +1895,9 @@ var TweetApi = /** @class */ (function (_super) {
1139
1895
  */
1140
1896
  TweetApi.prototype.getUserTweetsRaw = function (requestParameters, initOverrides) {
1141
1897
  return __awaiter(this, void 0, void 0, function () {
1142
- var queryParameters, headerParameters, token, tokenString, response;
1143
- return __generator(this, function (_a) {
1144
- switch (_a.label) {
1898
+ 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, response;
1899
+ return __generator(this, function (_10) {
1900
+ switch (_10.label) {
1145
1901
  case 0:
1146
1902
  if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
1147
1903
  throw new runtime.RequiredError('pathQueryId', 'Required parameter requestParameters.pathQueryId was null or undefined when calling getUserTweets.');
@@ -1160,75 +1916,159 @@ var TweetApi = /** @class */ (function (_super) {
1160
1916
  queryParameters['features'] = requestParameters.features;
1161
1917
  }
1162
1918
  headerParameters = {};
1163
- if (this.configuration && this.configuration.apiKey) {
1164
- headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
1165
- }
1166
- if (this.configuration && this.configuration.apiKey) {
1167
- headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
1168
- }
1169
- if (this.configuration && this.configuration.apiKey) {
1170
- headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
1171
- }
1172
- if (this.configuration && this.configuration.apiKey) {
1173
- headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
1174
- }
1175
- if (this.configuration && this.configuration.apiKey) {
1176
- headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
1177
- }
1178
- if (this.configuration && this.configuration.apiKey) {
1179
- headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
1180
- }
1181
- if (this.configuration && this.configuration.apiKey) {
1182
- headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
1183
- }
1184
- if (this.configuration && this.configuration.apiKey) {
1185
- headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
1186
- }
1187
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
1919
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
1920
+ _a = headerParameters;
1921
+ _b = "x-twitter-client-language";
1922
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
1923
+ case 1:
1924
+ _a[_b] = _10.sent(); // ClientLanguage authentication
1925
+ _10.label = 2;
1926
+ case 2:
1927
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
1928
+ _c = headerParameters;
1929
+ _d = "Accept";
1930
+ return [4 /*yield*/, this.configuration.apiKey("Accept")];
1931
+ case 3:
1932
+ _c[_d] = _10.sent(); // Accept authentication
1933
+ _10.label = 4;
1934
+ case 4:
1935
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
1936
+ _e = headerParameters;
1937
+ _f = "Sec-Fetch-Dest";
1938
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
1939
+ case 5:
1940
+ _e[_f] = _10.sent(); // SecFetchDest authentication
1941
+ _10.label = 6;
1942
+ case 6:
1943
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
1944
+ _g = headerParameters;
1945
+ _h = "Pragma";
1946
+ return [4 /*yield*/, this.configuration.apiKey("Pragma")];
1947
+ case 7:
1948
+ _g[_h] = _10.sent(); // Pragma authentication
1949
+ _10.label = 8;
1950
+ case 8:
1951
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
1952
+ _j = headerParameters;
1953
+ _k = "Sec-Ch-Ua-Platform";
1954
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
1955
+ case 9:
1956
+ _j[_k] = _10.sent(); // SecChUaPlatform authentication
1957
+ _10.label = 10;
1958
+ case 10:
1959
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
1960
+ _l = headerParameters;
1961
+ _m = "Sec-Fetch-Mode";
1962
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
1963
+ case 11:
1964
+ _l[_m] = _10.sent(); // SecFetchMode authentication
1965
+ _10.label = 12;
1966
+ case 12:
1967
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
1968
+ _o = headerParameters;
1969
+ _p = "x-csrf-token";
1970
+ return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
1971
+ case 13:
1972
+ _o[_p] = _10.sent(); // CsrfToken authentication
1973
+ _10.label = 14;
1974
+ case 14:
1975
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
1976
+ _q = headerParameters;
1977
+ _r = "x-guest-token";
1978
+ return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
1979
+ case 15:
1980
+ _q[_r] = _10.sent(); // GuestToken authentication
1981
+ _10.label = 16;
1982
+ case 16:
1983
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
1188
1984
  token = this.configuration.accessToken;
1189
1985
  return [4 /*yield*/, token("BearerAuth", [])];
1190
- case 1:
1191
- tokenString = _a.sent();
1986
+ case 17:
1987
+ tokenString = _10.sent();
1192
1988
  if (tokenString) {
1193
1989
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
1194
1990
  }
1195
- _a.label = 2;
1196
- case 2:
1197
- if (this.configuration && this.configuration.apiKey) {
1198
- headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
1199
- }
1200
- if (this.configuration && this.configuration.apiKey) {
1201
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
1202
- }
1203
- if (this.configuration && this.configuration.apiKey) {
1204
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
1205
- }
1206
- if (this.configuration && this.configuration.apiKey) {
1207
- headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
1208
- }
1209
- if (this.configuration && this.configuration.apiKey) {
1210
- headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
1211
- }
1212
- if (this.configuration && this.configuration.apiKey) {
1213
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
1214
- }
1215
- if (this.configuration && this.configuration.apiKey) {
1216
- headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
1217
- }
1218
- if (this.configuration && this.configuration.apiKey) {
1219
- headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
1220
- }
1221
- if (this.configuration && this.configuration.apiKey) {
1222
- headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
1223
- }
1224
- return [4 /*yield*/, this.request({
1225
- path: "/graphql/{pathQueryId}/UserTweets".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
1226
- method: 'GET',
1227
- headers: headerParameters,
1228
- query: queryParameters,
1229
- }, initOverrides)];
1230
- case 3:
1231
- response = _a.sent();
1991
+ _10.label = 18;
1992
+ case 18:
1993
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
1994
+ _s = headerParameters;
1995
+ _t = "Sec-Ch-Ua";
1996
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
1997
+ case 19:
1998
+ _s[_t] = _10.sent(); // SecChUa authentication
1999
+ _10.label = 20;
2000
+ case 20:
2001
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
2002
+ _u = headerParameters;
2003
+ _v = "x-twitter-active-user";
2004
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
2005
+ case 21:
2006
+ _u[_v] = _10.sent(); // ActiveUser authentication
2007
+ _10.label = 22;
2008
+ case 22:
2009
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
2010
+ _w = headerParameters;
2011
+ _x = "user-agent";
2012
+ return [4 /*yield*/, this.configuration.apiKey("user-agent")];
2013
+ case 23:
2014
+ _w[_x] = _10.sent(); // UserAgent authentication
2015
+ _10.label = 24;
2016
+ case 24:
2017
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
2018
+ _y = headerParameters;
2019
+ _z = "Accept-Language";
2020
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
2021
+ case 25:
2022
+ _y[_z] = _10.sent(); // AcceptLanguage authentication
2023
+ _10.label = 26;
2024
+ case 26:
2025
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
2026
+ _0 = headerParameters;
2027
+ _1 = "Sec-Fetch-Site";
2028
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
2029
+ case 27:
2030
+ _0[_1] = _10.sent(); // SecFetchSite authentication
2031
+ _10.label = 28;
2032
+ case 28:
2033
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
2034
+ _2 = headerParameters;
2035
+ _3 = "x-twitter-auth-type";
2036
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
2037
+ case 29:
2038
+ _2[_3] = _10.sent(); // AuthType authentication
2039
+ _10.label = 30;
2040
+ case 30:
2041
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
2042
+ _4 = headerParameters;
2043
+ _5 = "Cache-Control";
2044
+ return [4 /*yield*/, this.configuration.apiKey("Cache-Control")];
2045
+ case 31:
2046
+ _4[_5] = _10.sent(); // CacheControl authentication
2047
+ _10.label = 32;
2048
+ case 32:
2049
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
2050
+ _6 = headerParameters;
2051
+ _7 = "Sec-Ch-Ua-Mobile";
2052
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
2053
+ case 33:
2054
+ _6[_7] = _10.sent(); // SecChUaMobile authentication
2055
+ _10.label = 34;
2056
+ case 34:
2057
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
2058
+ _8 = headerParameters;
2059
+ _9 = "Accept-Encoding";
2060
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
2061
+ case 35:
2062
+ _8[_9] = _10.sent(); // AcceptEncoding authentication
2063
+ _10.label = 36;
2064
+ case 36: return [4 /*yield*/, this.request({
2065
+ path: "/graphql/{pathQueryId}/UserTweets".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
2066
+ method: 'GET',
2067
+ headers: headerParameters,
2068
+ query: queryParameters,
2069
+ }, initOverrides)];
2070
+ case 37:
2071
+ response = _10.sent();
1232
2072
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetLikes200ResponseFromJSON)(jsonValue); })];
1233
2073
  }
1234
2074
  });
@@ -1256,9 +2096,9 @@ var TweetApi = /** @class */ (function (_super) {
1256
2096
  */
1257
2097
  TweetApi.prototype.getUserTweetsAndRepliesRaw = function (requestParameters, initOverrides) {
1258
2098
  return __awaiter(this, void 0, void 0, function () {
1259
- var queryParameters, headerParameters, token, tokenString, response;
1260
- return __generator(this, function (_a) {
1261
- switch (_a.label) {
2099
+ 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, response;
2100
+ return __generator(this, function (_10) {
2101
+ switch (_10.label) {
1262
2102
  case 0:
1263
2103
  if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
1264
2104
  throw new runtime.RequiredError('pathQueryId', 'Required parameter requestParameters.pathQueryId was null or undefined when calling getUserTweetsAndReplies.');
@@ -1277,75 +2117,159 @@ var TweetApi = /** @class */ (function (_super) {
1277
2117
  queryParameters['features'] = requestParameters.features;
1278
2118
  }
1279
2119
  headerParameters = {};
1280
- if (this.configuration && this.configuration.apiKey) {
1281
- headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
1282
- }
1283
- if (this.configuration && this.configuration.apiKey) {
1284
- headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
1285
- }
1286
- if (this.configuration && this.configuration.apiKey) {
1287
- headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
1288
- }
1289
- if (this.configuration && this.configuration.apiKey) {
1290
- headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
1291
- }
1292
- if (this.configuration && this.configuration.apiKey) {
1293
- headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
1294
- }
1295
- if (this.configuration && this.configuration.apiKey) {
1296
- headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
1297
- }
1298
- if (this.configuration && this.configuration.apiKey) {
1299
- headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
1300
- }
1301
- if (this.configuration && this.configuration.apiKey) {
1302
- headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
1303
- }
1304
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
2120
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
2121
+ _a = headerParameters;
2122
+ _b = "x-twitter-client-language";
2123
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
2124
+ case 1:
2125
+ _a[_b] = _10.sent(); // ClientLanguage authentication
2126
+ _10.label = 2;
2127
+ case 2:
2128
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
2129
+ _c = headerParameters;
2130
+ _d = "Accept";
2131
+ return [4 /*yield*/, this.configuration.apiKey("Accept")];
2132
+ case 3:
2133
+ _c[_d] = _10.sent(); // Accept authentication
2134
+ _10.label = 4;
2135
+ case 4:
2136
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
2137
+ _e = headerParameters;
2138
+ _f = "Sec-Fetch-Dest";
2139
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
2140
+ case 5:
2141
+ _e[_f] = _10.sent(); // SecFetchDest authentication
2142
+ _10.label = 6;
2143
+ case 6:
2144
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
2145
+ _g = headerParameters;
2146
+ _h = "Pragma";
2147
+ return [4 /*yield*/, this.configuration.apiKey("Pragma")];
2148
+ case 7:
2149
+ _g[_h] = _10.sent(); // Pragma authentication
2150
+ _10.label = 8;
2151
+ case 8:
2152
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
2153
+ _j = headerParameters;
2154
+ _k = "Sec-Ch-Ua-Platform";
2155
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
2156
+ case 9:
2157
+ _j[_k] = _10.sent(); // SecChUaPlatform authentication
2158
+ _10.label = 10;
2159
+ case 10:
2160
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
2161
+ _l = headerParameters;
2162
+ _m = "Sec-Fetch-Mode";
2163
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
2164
+ case 11:
2165
+ _l[_m] = _10.sent(); // SecFetchMode authentication
2166
+ _10.label = 12;
2167
+ case 12:
2168
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
2169
+ _o = headerParameters;
2170
+ _p = "x-csrf-token";
2171
+ return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
2172
+ case 13:
2173
+ _o[_p] = _10.sent(); // CsrfToken authentication
2174
+ _10.label = 14;
2175
+ case 14:
2176
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
2177
+ _q = headerParameters;
2178
+ _r = "x-guest-token";
2179
+ return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
2180
+ case 15:
2181
+ _q[_r] = _10.sent(); // GuestToken authentication
2182
+ _10.label = 16;
2183
+ case 16:
2184
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
1305
2185
  token = this.configuration.accessToken;
1306
2186
  return [4 /*yield*/, token("BearerAuth", [])];
1307
- case 1:
1308
- tokenString = _a.sent();
2187
+ case 17:
2188
+ tokenString = _10.sent();
1309
2189
  if (tokenString) {
1310
2190
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
1311
2191
  }
1312
- _a.label = 2;
1313
- case 2:
1314
- if (this.configuration && this.configuration.apiKey) {
1315
- headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
1316
- }
1317
- if (this.configuration && this.configuration.apiKey) {
1318
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
1319
- }
1320
- if (this.configuration && this.configuration.apiKey) {
1321
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
1322
- }
1323
- if (this.configuration && this.configuration.apiKey) {
1324
- headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
1325
- }
1326
- if (this.configuration && this.configuration.apiKey) {
1327
- headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
1328
- }
1329
- if (this.configuration && this.configuration.apiKey) {
1330
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
1331
- }
1332
- if (this.configuration && this.configuration.apiKey) {
1333
- headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
1334
- }
1335
- if (this.configuration && this.configuration.apiKey) {
1336
- headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
1337
- }
1338
- if (this.configuration && this.configuration.apiKey) {
1339
- headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
1340
- }
1341
- return [4 /*yield*/, this.request({
1342
- path: "/graphql/{pathQueryId}/UserTweetsAndReplies".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
1343
- method: 'GET',
1344
- headers: headerParameters,
1345
- query: queryParameters,
1346
- }, initOverrides)];
1347
- case 3:
1348
- response = _a.sent();
2192
+ _10.label = 18;
2193
+ case 18:
2194
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
2195
+ _s = headerParameters;
2196
+ _t = "Sec-Ch-Ua";
2197
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
2198
+ case 19:
2199
+ _s[_t] = _10.sent(); // SecChUa authentication
2200
+ _10.label = 20;
2201
+ case 20:
2202
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
2203
+ _u = headerParameters;
2204
+ _v = "x-twitter-active-user";
2205
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
2206
+ case 21:
2207
+ _u[_v] = _10.sent(); // ActiveUser authentication
2208
+ _10.label = 22;
2209
+ case 22:
2210
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
2211
+ _w = headerParameters;
2212
+ _x = "user-agent";
2213
+ return [4 /*yield*/, this.configuration.apiKey("user-agent")];
2214
+ case 23:
2215
+ _w[_x] = _10.sent(); // UserAgent authentication
2216
+ _10.label = 24;
2217
+ case 24:
2218
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
2219
+ _y = headerParameters;
2220
+ _z = "Accept-Language";
2221
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
2222
+ case 25:
2223
+ _y[_z] = _10.sent(); // AcceptLanguage authentication
2224
+ _10.label = 26;
2225
+ case 26:
2226
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
2227
+ _0 = headerParameters;
2228
+ _1 = "Sec-Fetch-Site";
2229
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
2230
+ case 27:
2231
+ _0[_1] = _10.sent(); // SecFetchSite authentication
2232
+ _10.label = 28;
2233
+ case 28:
2234
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
2235
+ _2 = headerParameters;
2236
+ _3 = "x-twitter-auth-type";
2237
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
2238
+ case 29:
2239
+ _2[_3] = _10.sent(); // AuthType authentication
2240
+ _10.label = 30;
2241
+ case 30:
2242
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
2243
+ _4 = headerParameters;
2244
+ _5 = "Cache-Control";
2245
+ return [4 /*yield*/, this.configuration.apiKey("Cache-Control")];
2246
+ case 31:
2247
+ _4[_5] = _10.sent(); // CacheControl authentication
2248
+ _10.label = 32;
2249
+ case 32:
2250
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
2251
+ _6 = headerParameters;
2252
+ _7 = "Sec-Ch-Ua-Mobile";
2253
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
2254
+ case 33:
2255
+ _6[_7] = _10.sent(); // SecChUaMobile authentication
2256
+ _10.label = 34;
2257
+ case 34:
2258
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
2259
+ _8 = headerParameters;
2260
+ _9 = "Accept-Encoding";
2261
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
2262
+ case 35:
2263
+ _8[_9] = _10.sent(); // AcceptEncoding authentication
2264
+ _10.label = 36;
2265
+ case 36: return [4 /*yield*/, this.request({
2266
+ path: "/graphql/{pathQueryId}/UserTweetsAndReplies".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
2267
+ method: 'GET',
2268
+ headers: headerParameters,
2269
+ query: queryParameters,
2270
+ }, initOverrides)];
2271
+ case 37:
2272
+ response = _10.sent();
1349
2273
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetLikes200ResponseFromJSON)(jsonValue); })];
1350
2274
  }
1351
2275
  });