twitter-openapi-typescript-generated 0.0.38 → 0.0.40

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 (359) hide show
  1. package/README.md +692 -28
  2. package/dist/apis/DefaultApi.d.ts +10 -1
  3. package/dist/apis/DefaultApi.d.ts.map +1 -1
  4. package/dist/apis/DefaultApi.js +64 -25
  5. package/dist/apis/DefaultApi.js.map +1 -1
  6. package/dist/apis/OtherApi.d.ts +5 -1
  7. package/dist/apis/OtherApi.d.ts.map +1 -1
  8. package/dist/apis/OtherApi.js +31 -13
  9. package/dist/apis/OtherApi.js.map +1 -1
  10. package/dist/apis/PostApi.d.ts +48 -1
  11. package/dist/apis/PostApi.d.ts.map +1 -1
  12. package/dist/apis/PostApi.js +272 -105
  13. package/dist/apis/PostApi.js.map +1 -1
  14. package/dist/apis/TweetApi.d.ts +71 -1
  15. package/dist/apis/TweetApi.d.ts.map +1 -1
  16. package/dist/apis/TweetApi.js +476 -181
  17. package/dist/apis/TweetApi.js.map +1 -1
  18. package/dist/apis/UserApi.d.ts +9 -1
  19. package/dist/apis/UserApi.d.ts.map +1 -1
  20. package/dist/apis/UserApi.js +63 -25
  21. package/dist/apis/UserApi.js.map +1 -1
  22. package/dist/apis/UserListApi.d.ts +40 -1
  23. package/dist/apis/UserListApi.d.ts.map +1 -1
  24. package/dist/apis/UserListApi.js +394 -61
  25. package/dist/apis/UserListApi.js.map +1 -1
  26. package/dist/apis/UsersApi.d.ts +5 -1
  27. package/dist/apis/UsersApi.d.ts.map +1 -1
  28. package/dist/apis/UsersApi.js +32 -13
  29. package/dist/apis/UsersApi.js.map +1 -1
  30. package/dist/apis/V11GetApi.d.ts +8 -0
  31. package/dist/apis/V11GetApi.d.ts.map +1 -1
  32. package/dist/apis/V11GetApi.js +58 -22
  33. package/dist/apis/V11GetApi.js.map +1 -1
  34. package/dist/apis/V11PostApi.d.ts +8 -0
  35. package/dist/apis/V11PostApi.d.ts.map +1 -1
  36. package/dist/apis/V11PostApi.js +50 -16
  37. package/dist/apis/V11PostApi.js.map +1 -1
  38. package/dist/apis/V20GetApi.d.ts +4 -0
  39. package/dist/apis/V20GetApi.d.ts.map +1 -1
  40. package/dist/apis/V20GetApi.js +29 -11
  41. package/dist/apis/V20GetApi.js.map +1 -1
  42. package/dist/models/ArticlePreview.d.ts +52 -0
  43. package/dist/models/ArticlePreview.d.ts.map +1 -0
  44. package/dist/models/ArticlePreview.js +63 -0
  45. package/dist/models/ArticlePreview.js.map +1 -0
  46. package/dist/models/ArticleResult.d.ts +21 -1
  47. package/dist/models/ArticleResult.d.ts.map +1 -1
  48. package/dist/models/ArticleResult.js +7 -3
  49. package/dist/models/ArticleResult.js.map +1 -1
  50. package/dist/models/AuthorCommunityRelationship.d.ts +5 -4
  51. package/dist/models/AuthorCommunityRelationship.d.ts.map +1 -1
  52. package/dist/models/AuthorCommunityRelationship.js +5 -4
  53. package/dist/models/AuthorCommunityRelationship.js.map +1 -1
  54. package/dist/models/BirdwatchEntityRef.d.ts +2 -2
  55. package/dist/models/BirdwatchPivot.d.ts +16 -2
  56. package/dist/models/BirdwatchPivot.d.ts.map +1 -1
  57. package/dist/models/BirdwatchPivot.js +11 -2
  58. package/dist/models/BirdwatchPivot.js.map +1 -1
  59. package/dist/models/BirdwatchPivotNote.d.ts +19 -0
  60. package/dist/models/BirdwatchPivotNote.d.ts.map +1 -1
  61. package/dist/models/BirdwatchPivotNote.js +7 -0
  62. package/dist/models/BirdwatchPivotNote.js.map +1 -1
  63. package/dist/models/Community.d.ts +189 -3
  64. package/dist/models/Community.d.ts.map +1 -1
  65. package/dist/models/Community.js +82 -4
  66. package/dist/models/Community.js.map +1 -1
  67. package/dist/models/CommunityDeleteActionResult.d.ts +1 -1
  68. package/dist/models/CommunityInvitesResult.d.ts +1 -1
  69. package/dist/models/CommunityJoinActionResultUnion.d.ts.map +1 -1
  70. package/dist/models/CommunityJoinActionResultUnion.js +2 -2
  71. package/dist/models/CommunityJoinActionResultUnion.js.map +1 -1
  72. package/dist/models/CommunityJoinActionUnavailable.d.ts +1 -1
  73. package/dist/models/CommunityLeaveActionResult.d.ts +1 -1
  74. package/dist/models/CommunityResult.d.ts +34 -0
  75. package/dist/models/CommunityResult.d.ts.map +1 -0
  76. package/dist/models/CommunityResult.js +53 -0
  77. package/dist/models/CommunityResult.js.map +1 -0
  78. package/dist/models/CommunityUnavailable.d.ts +34 -0
  79. package/dist/models/CommunityUnavailable.d.ts.map +1 -0
  80. package/dist/models/CommunityUnavailable.js +53 -0
  81. package/dist/models/CommunityUnavailable.js.map +1 -0
  82. package/dist/models/CommunityUnion.d.ts +28 -0
  83. package/dist/models/CommunityUnion.d.ts.map +1 -0
  84. package/dist/models/CommunityUnion.js +55 -0
  85. package/dist/models/CommunityUnion.js.map +1 -0
  86. package/dist/models/ContentDisclosure.d.ts +41 -0
  87. package/dist/models/ContentDisclosure.d.ts.map +1 -0
  88. package/dist/models/ContentDisclosure.js +54 -0
  89. package/dist/models/ContentDisclosure.js.map +1 -0
  90. package/dist/models/ContentDisclosureAdvertisingDisclosure.d.ts +33 -0
  91. package/dist/models/ContentDisclosureAdvertisingDisclosure.d.ts.map +1 -0
  92. package/dist/models/ContentDisclosureAdvertisingDisclosure.js +52 -0
  93. package/dist/models/ContentDisclosureAdvertisingDisclosure.js.map +1 -0
  94. package/dist/models/ContentDisclosureAiGeneratedDisclosure.d.ts +54 -0
  95. package/dist/models/ContentDisclosureAiGeneratedDisclosure.d.ts.map +1 -0
  96. package/dist/models/ContentDisclosureAiGeneratedDisclosure.js +67 -0
  97. package/dist/models/ContentDisclosureAiGeneratedDisclosure.js.map +1 -0
  98. package/dist/models/ContentUnion.d.ts.map +1 -1
  99. package/dist/models/ContentUnion.js +2 -2
  100. package/dist/models/ContentUnion.js.map +1 -1
  101. package/dist/models/ConversationControl.d.ts +1 -1
  102. package/dist/models/CoverCta.d.ts +1 -1
  103. package/dist/models/CtaClientEventInfo.d.ts +1 -1
  104. package/dist/models/Entities.d.ts +11 -4
  105. package/dist/models/Entities.d.ts.map +1 -1
  106. package/dist/models/Entities.js +8 -13
  107. package/dist/models/Entities.js.map +1 -1
  108. package/dist/models/ErrorResponse.d.ts +3 -2
  109. package/dist/models/ErrorResponse.d.ts.map +1 -1
  110. package/dist/models/ErrorResponse.js +3 -2
  111. package/dist/models/ErrorResponse.js.map +1 -1
  112. package/dist/models/ErrorResponsePathInner.d.ts +22 -0
  113. package/dist/models/ErrorResponsePathInner.d.ts.map +1 -0
  114. package/dist/models/ErrorResponsePathInner.js +51 -0
  115. package/dist/models/ErrorResponsePathInner.js.map +1 -0
  116. package/dist/models/ExtMediaAvailability.d.ts +1 -1
  117. package/dist/models/GrokAnnotation.d.ts +33 -0
  118. package/dist/models/GrokAnnotation.d.ts.map +1 -0
  119. package/dist/models/GrokAnnotation.js +50 -0
  120. package/dist/models/GrokAnnotation.js.map +1 -0
  121. package/dist/models/GrokEntity.d.ts +46 -0
  122. package/dist/models/GrokEntity.d.ts.map +1 -0
  123. package/dist/models/GrokEntity.js +61 -0
  124. package/dist/models/GrokEntity.js.map +1 -0
  125. package/dist/models/GrokEntityRef.d.ts +78 -0
  126. package/dist/models/GrokEntityRef.d.ts.map +1 -0
  127. package/dist/models/GrokEntityRef.js +76 -0
  128. package/dist/models/GrokEntityRef.js.map +1 -0
  129. package/dist/models/GrokShareAttachmentItem.d.ts +8 -0
  130. package/dist/models/GrokShareAttachmentItem.d.ts.map +1 -1
  131. package/dist/models/GrokShareAttachmentItem.js +2 -0
  132. package/dist/models/GrokShareAttachmentItem.js.map +1 -1
  133. package/dist/models/GrokTranslatedCommunityNote.d.ts +58 -0
  134. package/dist/models/GrokTranslatedCommunityNote.d.ts.map +1 -0
  135. package/dist/models/GrokTranslatedCommunityNote.js +67 -0
  136. package/dist/models/GrokTranslatedCommunityNote.js.map +1 -0
  137. package/dist/models/GrokTranslatedCommunityNoteWithAvailability.d.ts +40 -0
  138. package/dist/models/GrokTranslatedCommunityNoteWithAvailability.d.ts.map +1 -0
  139. package/dist/models/GrokTranslatedCommunityNoteWithAvailability.js +55 -0
  140. package/dist/models/GrokTranslatedCommunityNoteWithAvailability.js.map +1 -0
  141. package/dist/models/GrokTranslatedPost.d.ts +66 -0
  142. package/dist/models/GrokTranslatedPost.d.ts.map +1 -0
  143. package/dist/models/GrokTranslatedPost.js +61 -0
  144. package/dist/models/GrokTranslatedPost.js.map +1 -0
  145. package/dist/models/GrokTranslatedPostWithAvailability.d.ts +40 -0
  146. package/dist/models/GrokTranslatedPostWithAvailability.d.ts.map +1 -0
  147. package/dist/models/GrokTranslatedPostWithAvailability.js +55 -0
  148. package/dist/models/GrokTranslatedPostWithAvailability.js.map +1 -0
  149. package/dist/models/InstructionUnion.d.ts.map +1 -1
  150. package/dist/models/InstructionUnion.js +2 -2
  151. package/dist/models/InstructionUnion.js.map +1 -1
  152. package/dist/models/ItemContentUnion.d.ts.map +1 -1
  153. package/dist/models/ItemContentUnion.js +2 -2
  154. package/dist/models/ItemContentUnion.js.map +1 -1
  155. package/dist/models/LimitedActionResultsData.d.ts +1 -1
  156. package/dist/models/Media.d.ts +7 -1
  157. package/dist/models/Media.d.ts.map +1 -1
  158. package/dist/models/Media.js +2 -0
  159. package/dist/models/Media.js.map +1 -1
  160. package/dist/models/MediaExtended.d.ts +7 -1
  161. package/dist/models/MediaExtended.d.ts.map +1 -1
  162. package/dist/models/MediaExtended.js +2 -0
  163. package/dist/models/MediaExtended.js.map +1 -1
  164. package/dist/models/MediaSize.d.ts +1 -1
  165. package/dist/models/NoteTweet.d.ts +1 -1
  166. package/dist/models/NoteTweet.d.ts.map +1 -1
  167. package/dist/models/NoteTweet.js +1 -3
  168. package/dist/models/NoteTweet.js.map +1 -1
  169. package/dist/models/NoteTweetResultRichTextTag.d.ts +1 -1
  170. package/dist/models/PostCreateTweetRequestFeatures.d.ts +50 -8
  171. package/dist/models/PostCreateTweetRequestFeatures.d.ts.map +1 -1
  172. package/dist/models/PostCreateTweetRequestFeatures.js +39 -11
  173. package/dist/models/PostCreateTweetRequestFeatures.js.map +1 -1
  174. package/dist/models/PostCta.d.ts +58 -0
  175. package/dist/models/PostCta.d.ts.map +1 -0
  176. package/dist/models/PostCta.js +69 -0
  177. package/dist/models/PostCta.js.map +1 -0
  178. package/dist/models/PostCtaTitleText.d.ts +40 -0
  179. package/dist/models/PostCtaTitleText.d.ts.map +1 -0
  180. package/dist/models/PostCtaTitleText.js +57 -0
  181. package/dist/models/PostCtaTitleText.js.map +1 -0
  182. package/dist/models/PostCtaTitleTextEntity.d.ts +46 -0
  183. package/dist/models/PostCtaTitleTextEntity.d.ts.map +1 -0
  184. package/dist/models/PostCtaTitleTextEntity.js +61 -0
  185. package/dist/models/PostCtaTitleTextEntity.js.map +1 -0
  186. package/dist/models/PostCtaTitleTextEntityRef.d.ts +41 -0
  187. package/dist/models/PostCtaTitleTextEntityRef.d.ts.map +1 -0
  188. package/dist/models/PostCtaTitleTextEntityRef.js +56 -0
  189. package/dist/models/PostCtaTitleTextEntityRef.js.map +1 -0
  190. package/dist/models/PostCtaUserResults.d.ts +34 -0
  191. package/dist/models/PostCtaUserResults.d.ts.map +1 -0
  192. package/dist/models/PostCtaUserResults.js +53 -0
  193. package/dist/models/PostCtaUserResults.js.map +1 -0
  194. package/dist/models/PostCtaUserResultsAvatar.d.ts +33 -0
  195. package/dist/models/PostCtaUserResultsAvatar.d.ts.map +1 -0
  196. package/dist/models/PostCtaUserResultsAvatar.js +52 -0
  197. package/dist/models/PostCtaUserResultsAvatar.js.map +1 -0
  198. package/dist/models/PostCtaUserResultsResult.d.ts +41 -0
  199. package/dist/models/PostCtaUserResultsResult.d.ts.map +1 -0
  200. package/dist/models/PostCtaUserResultsResult.js +58 -0
  201. package/dist/models/PostCtaUserResultsResult.js.map +1 -0
  202. package/dist/models/ProfileBio.d.ts +33 -0
  203. package/dist/models/ProfileBio.d.ts.map +1 -0
  204. package/dist/models/ProfileBio.js +52 -0
  205. package/dist/models/ProfileBio.js.map +1 -0
  206. package/dist/models/Session.d.ts +1 -1
  207. package/dist/models/Smarttag.d.ts +46 -0
  208. package/dist/models/Smarttag.d.ts.map +1 -0
  209. package/dist/models/Smarttag.js +61 -0
  210. package/dist/models/Smarttag.js.map +1 -0
  211. package/dist/models/SmarttagTag.d.ts +35 -0
  212. package/dist/models/SmarttagTag.d.ts.map +1 -0
  213. package/dist/models/SmarttagTag.js +52 -0
  214. package/dist/models/SmarttagTag.js.map +1 -0
  215. package/dist/models/SocialContextLandingUrl.d.ts +1 -1
  216. package/dist/models/SocialContextUnion.d.ts.map +1 -1
  217. package/dist/models/SocialContextUnion.js +2 -2
  218. package/dist/models/SocialContextUnion.js.map +1 -1
  219. package/dist/models/SuperFollowUserProfile.d.ts +33 -0
  220. package/dist/models/SuperFollowUserProfile.d.ts.map +1 -0
  221. package/dist/models/SuperFollowUserProfile.js +52 -0
  222. package/dist/models/SuperFollowUserProfile.js.map +1 -0
  223. package/dist/models/SuperFollowsReplyUserResultCore.d.ts +33 -0
  224. package/dist/models/SuperFollowsReplyUserResultCore.d.ts.map +1 -0
  225. package/dist/models/SuperFollowsReplyUserResultCore.js +52 -0
  226. package/dist/models/SuperFollowsReplyUserResultCore.js.map +1 -0
  227. package/dist/models/SuperFollowsReplyUserResultData.d.ts +3 -3
  228. package/dist/models/SuperFollowsReplyUserResultData.d.ts.map +1 -1
  229. package/dist/models/SuperFollowsReplyUserResultData.js +3 -5
  230. package/dist/models/SuperFollowsReplyUserResultData.js.map +1 -1
  231. package/dist/models/TextEntityRef.d.ts +2 -2
  232. package/dist/models/TimelineCoverBehavior.d.ts +1 -1
  233. package/dist/models/TimelineCoverBehaviorUrl.d.ts +1 -1
  234. package/dist/models/TimelineGeneralContext.d.ts +1 -1
  235. package/dist/models/TimelineHalfCover.d.ts +2 -2
  236. package/dist/models/TimelineShowAlert.d.ts +9 -2
  237. package/dist/models/TimelineShowAlert.d.ts.map +1 -1
  238. package/dist/models/TimelineShowAlert.js +3 -0
  239. package/dist/models/TimelineShowAlert.js.map +1 -1
  240. package/dist/models/TimelineTerminateTimeline.d.ts +1 -1
  241. package/dist/models/TimelineTombstone.d.ts +1 -1
  242. package/dist/models/TimelineTopicContext.d.ts +1 -1
  243. package/dist/models/TimelineTweet.d.ts +1 -1
  244. package/dist/models/TimelineUser.d.ts +1 -1
  245. package/dist/models/TombstoneRef.d.ts +2 -2
  246. package/dist/models/Tweet.d.ts +43 -3
  247. package/dist/models/Tweet.d.ts.map +1 -1
  248. package/dist/models/Tweet.js +19 -3
  249. package/dist/models/Tweet.js.map +1 -1
  250. package/dist/models/TweetCardPlatformAudience.d.ts +1 -1
  251. package/dist/models/TweetInterstitial.d.ts +2 -1
  252. package/dist/models/TweetInterstitial.d.ts.map +1 -1
  253. package/dist/models/TweetInterstitial.js +2 -1
  254. package/dist/models/TweetInterstitial.js.map +1 -1
  255. package/dist/models/TweetInterstitialTextEntityRef.d.ts +2 -2
  256. package/dist/models/TweetLegacy.d.ts +2 -2
  257. package/dist/models/TweetLegacy.d.ts.map +1 -1
  258. package/dist/models/TweetLegacy.js +1 -3
  259. package/dist/models/TweetLegacy.js.map +1 -1
  260. package/dist/models/TweetPostCta.d.ts +55 -0
  261. package/dist/models/TweetPostCta.d.ts.map +1 -0
  262. package/dist/models/TweetPostCta.js +68 -0
  263. package/dist/models/TweetPostCta.js.map +1 -0
  264. package/dist/models/TweetPreviewDisplayCtaUrl.d.ts +1 -1
  265. package/dist/models/TweetPreviewDisplayTweet.d.ts +7 -0
  266. package/dist/models/TweetPreviewDisplayTweet.d.ts.map +1 -1
  267. package/dist/models/TweetPreviewDisplayTweet.js +3 -0
  268. package/dist/models/TweetPreviewDisplayTweet.js.map +1 -1
  269. package/dist/models/TweetUnion.d.ts.map +1 -1
  270. package/dist/models/TweetUnion.js +2 -2
  271. package/dist/models/TweetUnion.js.map +1 -1
  272. package/dist/models/TweetView.d.ts +1 -1
  273. package/dist/models/TypeName.d.ts +2 -0
  274. package/dist/models/TypeName.d.ts.map +1 -1
  275. package/dist/models/TypeName.js +3 -1
  276. package/dist/models/TypeName.js.map +1 -1
  277. package/dist/models/UnifiedCard.d.ts +1 -1
  278. package/dist/models/User.d.ts +92 -3
  279. package/dist/models/User.d.ts.map +1 -1
  280. package/dist/models/User.js +40 -3
  281. package/dist/models/User.js.map +1 -1
  282. package/dist/models/UserAvatar.d.ts +33 -0
  283. package/dist/models/UserAvatar.d.ts.map +1 -0
  284. package/dist/models/UserAvatar.js +52 -0
  285. package/dist/models/UserAvatar.js.map +1 -0
  286. package/dist/models/UserCore.d.ts +45 -0
  287. package/dist/models/UserCore.d.ts.map +1 -0
  288. package/dist/models/UserCore.js +60 -0
  289. package/dist/models/UserCore.js.map +1 -0
  290. package/dist/models/UserDmPermissions.d.ts +33 -0
  291. package/dist/models/UserDmPermissions.d.ts.map +1 -0
  292. package/dist/models/UserDmPermissions.js +52 -0
  293. package/dist/models/UserDmPermissions.js.map +1 -0
  294. package/dist/models/UserLegacy.d.ts +32 -8
  295. package/dist/models/UserLegacy.d.ts.map +1 -1
  296. package/dist/models/UserLegacy.js +22 -20
  297. package/dist/models/UserLegacy.js.map +1 -1
  298. package/dist/models/UserLegacyExtendedProfileBirthdate.d.ts +2 -2
  299. package/dist/models/UserLocation.d.ts +33 -0
  300. package/dist/models/UserLocation.d.ts.map +1 -0
  301. package/dist/models/UserLocation.js +52 -0
  302. package/dist/models/UserLocation.js.map +1 -0
  303. package/dist/models/UserMediaPermissions.d.ts +33 -0
  304. package/dist/models/UserMediaPermissions.d.ts.map +1 -0
  305. package/dist/models/UserMediaPermissions.js +52 -0
  306. package/dist/models/UserMediaPermissions.js.map +1 -0
  307. package/dist/models/UserPrivacy.d.ts +33 -0
  308. package/dist/models/UserPrivacy.d.ts.map +1 -0
  309. package/dist/models/UserPrivacy.js +52 -0
  310. package/dist/models/UserPrivacy.js.map +1 -0
  311. package/dist/models/UserProfessional.d.ts +2 -2
  312. package/dist/models/UserProfessional.d.ts.map +1 -1
  313. package/dist/models/UserProfessional.js +2 -4
  314. package/dist/models/UserProfessional.js.map +1 -1
  315. package/dist/models/UserProfile.d.ts +34 -0
  316. package/dist/models/UserProfile.d.ts.map +1 -0
  317. package/dist/models/UserProfile.js +53 -0
  318. package/dist/models/UserProfile.js.map +1 -0
  319. package/dist/models/UserRelationshipPerspectives.d.ts +51 -0
  320. package/dist/models/UserRelationshipPerspectives.d.ts.map +1 -0
  321. package/dist/models/UserRelationshipPerspectives.js +56 -0
  322. package/dist/models/UserRelationshipPerspectives.js.map +1 -0
  323. package/dist/models/UserResultByScreenNameCore.d.ts +39 -0
  324. package/dist/models/UserResultByScreenNameCore.d.ts.map +1 -0
  325. package/dist/models/UserResultByScreenNameCore.js +56 -0
  326. package/dist/models/UserResultByScreenNameCore.js.map +1 -0
  327. package/dist/models/UserResultByScreenNameResult.d.ts +22 -1
  328. package/dist/models/UserResultByScreenNameResult.d.ts.map +1 -1
  329. package/dist/models/UserResultByScreenNameResult.js +15 -2
  330. package/dist/models/UserResultByScreenNameResult.js.map +1 -1
  331. package/dist/models/UserResultPrivacy.d.ts +33 -0
  332. package/dist/models/UserResultPrivacy.d.ts.map +1 -0
  333. package/dist/models/UserResultPrivacy.js +52 -0
  334. package/dist/models/UserResultPrivacy.js.map +1 -0
  335. package/dist/models/UserResultRelationshipPerspectives.d.ts +51 -0
  336. package/dist/models/UserResultRelationshipPerspectives.d.ts.map +1 -0
  337. package/dist/models/UserResultRelationshipPerspectives.js +56 -0
  338. package/dist/models/UserResultRelationshipPerspectives.js.map +1 -0
  339. package/dist/models/UserUnion.d.ts.map +1 -1
  340. package/dist/models/UserUnion.js +2 -2
  341. package/dist/models/UserUnion.js.map +1 -1
  342. package/dist/models/UserVerification.d.ts +47 -0
  343. package/dist/models/UserVerification.d.ts.map +1 -0
  344. package/dist/models/UserVerification.js +62 -0
  345. package/dist/models/UserVerification.js.map +1 -0
  346. package/dist/models/UserVerificationInfoReasonDescriptionEntitiesRef.d.ts +1 -1
  347. package/dist/models/index.d.ts +40 -1
  348. package/dist/models/index.d.ts.map +1 -1
  349. package/dist/models/index.js +40 -1
  350. package/dist/models/index.js.map +1 -1
  351. package/dist/runtime.d.ts +3 -1
  352. package/dist/runtime.d.ts.map +1 -1
  353. package/dist/runtime.js +25 -5
  354. package/dist/runtime.js.map +1 -1
  355. package/package.json +2 -2
  356. package/dist/models/CommunityData.d.ts +0 -220
  357. package/dist/models/CommunityData.d.ts.map +0 -1
  358. package/dist/models/CommunityData.js +0 -133
  359. package/dist/models/CommunityData.js.map +0 -1
@@ -66,7 +66,17 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
66
66
  Object.defineProperty(exports, "__esModule", { value: true });
67
67
  exports.TweetApi = void 0;
68
68
  var runtime = require("../runtime");
69
- var index_1 = require("../models/index");
69
+ var BookmarksResponse_1 = require("../models/BookmarksResponse");
70
+ var CommunityAboutTimelineResponse_1 = require("../models/CommunityAboutTimelineResponse");
71
+ var CommunityMediaTimelineResponse_1 = require("../models/CommunityMediaTimelineResponse");
72
+ var CommunityTweetsTimelineResponse_1 = require("../models/CommunityTweetsTimelineResponse");
73
+ var ListLatestTweetsTimelineResponse_1 = require("../models/ListLatestTweetsTimelineResponse");
74
+ var NotificationsTimelineResponse_1 = require("../models/NotificationsTimelineResponse");
75
+ var SearchTimelineResponse_1 = require("../models/SearchTimelineResponse");
76
+ var TimelineResponse_1 = require("../models/TimelineResponse");
77
+ var TweetDetailResponse_1 = require("../models/TweetDetailResponse");
78
+ var UserHighlightsTweetsResponse_1 = require("../models/UserHighlightsTweetsResponse");
79
+ var UserTweetsResponse_1 = require("../models/UserTweetsResponse");
70
80
  /**
71
81
  *
72
82
  */
@@ -76,11 +86,11 @@ var TweetApi = /** @class */ (function (_super) {
76
86
  return _super !== null && _super.apply(this, arguments) || this;
77
87
  }
78
88
  /**
79
- * get bookmarks
89
+ * Creates request options for getBookmarks without sending the request
80
90
  */
81
- TweetApi.prototype.getBookmarksRaw = function (requestParameters, initOverrides) {
91
+ TweetApi.prototype.getBookmarksRequestOpts = function (requestParameters) {
82
92
  return __awaiter(this, void 0, void 0, function () {
83
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, response;
93
+ var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
84
94
  return __generator(this, function (_14) {
85
95
  switch (_14.label) {
86
96
  case 0:
@@ -262,15 +272,34 @@ var TweetApi = /** @class */ (function (_super) {
262
272
  case 39:
263
273
  _12[_13] = _14.sent(); // AcceptEncoding authentication
264
274
  _14.label = 40;
265
- case 40: return [4 /*yield*/, this.request({
266
- path: "/graphql/{pathQueryId}/Bookmarks".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
267
- method: 'GET',
268
- headers: headerParameters,
269
- query: queryParameters,
270
- }, initOverrides)];
271
- case 41:
272
- response = _14.sent();
273
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.BookmarksResponseFromJSON)(jsonValue); })];
275
+ case 40:
276
+ urlPath = "/graphql/{pathQueryId}/Bookmarks";
277
+ urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
278
+ return [2 /*return*/, {
279
+ path: urlPath,
280
+ method: 'GET',
281
+ headers: headerParameters,
282
+ query: queryParameters,
283
+ }];
284
+ }
285
+ });
286
+ });
287
+ };
288
+ /**
289
+ * get bookmarks
290
+ */
291
+ TweetApi.prototype.getBookmarksRaw = function (requestParameters, initOverrides) {
292
+ return __awaiter(this, void 0, void 0, function () {
293
+ var requestOptions, response;
294
+ return __generator(this, function (_a) {
295
+ switch (_a.label) {
296
+ case 0: return [4 /*yield*/, this.getBookmarksRequestOpts(requestParameters)];
297
+ case 1:
298
+ requestOptions = _a.sent();
299
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
300
+ case 2:
301
+ response = _a.sent();
302
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, BookmarksResponse_1.BookmarksResponseFromJSON)(jsonValue); })];
274
303
  }
275
304
  });
276
305
  });
@@ -293,11 +322,11 @@ var TweetApi = /** @class */ (function (_super) {
293
322
  });
294
323
  };
295
324
  /**
296
- * get about of community
325
+ * Creates request options for getCommunityAboutTimeline without sending the request
297
326
  */
298
- TweetApi.prototype.getCommunityAboutTimelineRaw = function (requestParameters, initOverrides) {
327
+ TweetApi.prototype.getCommunityAboutTimelineRequestOpts = function (requestParameters) {
299
328
  return __awaiter(this, void 0, void 0, function () {
300
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, response;
329
+ var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
301
330
  return __generator(this, function (_14) {
302
331
  switch (_14.label) {
303
332
  case 0:
@@ -479,15 +508,34 @@ var TweetApi = /** @class */ (function (_super) {
479
508
  case 39:
480
509
  _12[_13] = _14.sent(); // AcceptEncoding authentication
481
510
  _14.label = 40;
482
- case 40: return [4 /*yield*/, this.request({
483
- path: "/graphql/{pathQueryId}/CommunityAboutTimeline".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
484
- method: 'GET',
485
- headers: headerParameters,
486
- query: queryParameters,
487
- }, initOverrides)];
488
- case 41:
489
- response = _14.sent();
490
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.CommunityAboutTimelineResponseFromJSON)(jsonValue); })];
511
+ case 40:
512
+ urlPath = "/graphql/{pathQueryId}/CommunityAboutTimeline";
513
+ urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
514
+ return [2 /*return*/, {
515
+ path: urlPath,
516
+ method: 'GET',
517
+ headers: headerParameters,
518
+ query: queryParameters,
519
+ }];
520
+ }
521
+ });
522
+ });
523
+ };
524
+ /**
525
+ * get about of community
526
+ */
527
+ TweetApi.prototype.getCommunityAboutTimelineRaw = function (requestParameters, initOverrides) {
528
+ return __awaiter(this, void 0, void 0, function () {
529
+ var requestOptions, response;
530
+ return __generator(this, function (_a) {
531
+ switch (_a.label) {
532
+ case 0: return [4 /*yield*/, this.getCommunityAboutTimelineRequestOpts(requestParameters)];
533
+ case 1:
534
+ requestOptions = _a.sent();
535
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
536
+ case 2:
537
+ response = _a.sent();
538
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, CommunityAboutTimelineResponse_1.CommunityAboutTimelineResponseFromJSON)(jsonValue); })];
491
539
  }
492
540
  });
493
541
  });
@@ -510,11 +558,11 @@ var TweetApi = /** @class */ (function (_super) {
510
558
  });
511
559
  };
512
560
  /**
513
- * get media list of community
561
+ * Creates request options for getCommunityMediaTimeline without sending the request
514
562
  */
515
- TweetApi.prototype.getCommunityMediaTimelineRaw = function (requestParameters, initOverrides) {
563
+ TweetApi.prototype.getCommunityMediaTimelineRequestOpts = function (requestParameters) {
516
564
  return __awaiter(this, void 0, void 0, function () {
517
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, response;
565
+ var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
518
566
  return __generator(this, function (_14) {
519
567
  switch (_14.label) {
520
568
  case 0:
@@ -696,15 +744,34 @@ var TweetApi = /** @class */ (function (_super) {
696
744
  case 39:
697
745
  _12[_13] = _14.sent(); // AcceptEncoding authentication
698
746
  _14.label = 40;
699
- case 40: return [4 /*yield*/, this.request({
700
- path: "/graphql/{pathQueryId}/CommunityMediaTimeline".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
701
- method: 'GET',
702
- headers: headerParameters,
703
- query: queryParameters,
704
- }, initOverrides)];
705
- case 41:
706
- response = _14.sent();
707
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.CommunityMediaTimelineResponseFromJSON)(jsonValue); })];
747
+ case 40:
748
+ urlPath = "/graphql/{pathQueryId}/CommunityMediaTimeline";
749
+ urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
750
+ return [2 /*return*/, {
751
+ path: urlPath,
752
+ method: 'GET',
753
+ headers: headerParameters,
754
+ query: queryParameters,
755
+ }];
756
+ }
757
+ });
758
+ });
759
+ };
760
+ /**
761
+ * get media list of community
762
+ */
763
+ TweetApi.prototype.getCommunityMediaTimelineRaw = function (requestParameters, initOverrides) {
764
+ return __awaiter(this, void 0, void 0, function () {
765
+ var requestOptions, response;
766
+ return __generator(this, function (_a) {
767
+ switch (_a.label) {
768
+ case 0: return [4 /*yield*/, this.getCommunityMediaTimelineRequestOpts(requestParameters)];
769
+ case 1:
770
+ requestOptions = _a.sent();
771
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
772
+ case 2:
773
+ response = _a.sent();
774
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, CommunityMediaTimelineResponse_1.CommunityMediaTimelineResponseFromJSON)(jsonValue); })];
708
775
  }
709
776
  });
710
777
  });
@@ -727,11 +794,11 @@ var TweetApi = /** @class */ (function (_super) {
727
794
  });
728
795
  };
729
796
  /**
730
- * get tweet list of community. rankingMode:[Recency, Relevance]
797
+ * Creates request options for getCommunityTweetsTimeline without sending the request
731
798
  */
732
- TweetApi.prototype.getCommunityTweetsTimelineRaw = function (requestParameters, initOverrides) {
799
+ TweetApi.prototype.getCommunityTweetsTimelineRequestOpts = function (requestParameters) {
733
800
  return __awaiter(this, void 0, void 0, function () {
734
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, response;
801
+ var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
735
802
  return __generator(this, function (_14) {
736
803
  switch (_14.label) {
737
804
  case 0:
@@ -913,15 +980,34 @@ var TweetApi = /** @class */ (function (_super) {
913
980
  case 39:
914
981
  _12[_13] = _14.sent(); // AcceptEncoding authentication
915
982
  _14.label = 40;
916
- case 40: return [4 /*yield*/, this.request({
917
- path: "/graphql/{pathQueryId}/CommunityTweetsTimeline".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
918
- method: 'GET',
919
- headers: headerParameters,
920
- query: queryParameters,
921
- }, initOverrides)];
922
- case 41:
923
- response = _14.sent();
924
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.CommunityTweetsTimelineResponseFromJSON)(jsonValue); })];
983
+ case 40:
984
+ urlPath = "/graphql/{pathQueryId}/CommunityTweetsTimeline";
985
+ urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
986
+ return [2 /*return*/, {
987
+ path: urlPath,
988
+ method: 'GET',
989
+ headers: headerParameters,
990
+ query: queryParameters,
991
+ }];
992
+ }
993
+ });
994
+ });
995
+ };
996
+ /**
997
+ * get tweet list of community. rankingMode:[Recency, Relevance]
998
+ */
999
+ TweetApi.prototype.getCommunityTweetsTimelineRaw = function (requestParameters, initOverrides) {
1000
+ return __awaiter(this, void 0, void 0, function () {
1001
+ var requestOptions, response;
1002
+ return __generator(this, function (_a) {
1003
+ switch (_a.label) {
1004
+ case 0: return [4 /*yield*/, this.getCommunityTweetsTimelineRequestOpts(requestParameters)];
1005
+ case 1:
1006
+ requestOptions = _a.sent();
1007
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
1008
+ case 2:
1009
+ response = _a.sent();
1010
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, CommunityTweetsTimelineResponse_1.CommunityTweetsTimelineResponseFromJSON)(jsonValue); })];
925
1011
  }
926
1012
  });
927
1013
  });
@@ -944,11 +1030,11 @@ var TweetApi = /** @class */ (function (_super) {
944
1030
  });
945
1031
  };
946
1032
  /**
947
- * get tweet list of timeline
1033
+ * Creates request options for getHomeLatestTimeline without sending the request
948
1034
  */
949
- TweetApi.prototype.getHomeLatestTimelineRaw = function (requestParameters, initOverrides) {
1035
+ TweetApi.prototype.getHomeLatestTimelineRequestOpts = function (requestParameters) {
950
1036
  return __awaiter(this, void 0, void 0, function () {
951
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, response;
1037
+ var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
952
1038
  return __generator(this, function (_14) {
953
1039
  switch (_14.label) {
954
1040
  case 0:
@@ -1130,15 +1216,34 @@ var TweetApi = /** @class */ (function (_super) {
1130
1216
  case 39:
1131
1217
  _12[_13] = _14.sent(); // AcceptEncoding authentication
1132
1218
  _14.label = 40;
1133
- case 40: return [4 /*yield*/, this.request({
1134
- path: "/graphql/{pathQueryId}/HomeLatestTimeline".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
1135
- method: 'GET',
1136
- headers: headerParameters,
1137
- query: queryParameters,
1138
- }, initOverrides)];
1139
- case 41:
1140
- response = _14.sent();
1141
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.TimelineResponseFromJSON)(jsonValue); })];
1219
+ case 40:
1220
+ urlPath = "/graphql/{pathQueryId}/HomeLatestTimeline";
1221
+ urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
1222
+ return [2 /*return*/, {
1223
+ path: urlPath,
1224
+ method: 'GET',
1225
+ headers: headerParameters,
1226
+ query: queryParameters,
1227
+ }];
1228
+ }
1229
+ });
1230
+ });
1231
+ };
1232
+ /**
1233
+ * get tweet list of timeline
1234
+ */
1235
+ TweetApi.prototype.getHomeLatestTimelineRaw = function (requestParameters, initOverrides) {
1236
+ return __awaiter(this, void 0, void 0, function () {
1237
+ var requestOptions, response;
1238
+ return __generator(this, function (_a) {
1239
+ switch (_a.label) {
1240
+ case 0: return [4 /*yield*/, this.getHomeLatestTimelineRequestOpts(requestParameters)];
1241
+ case 1:
1242
+ requestOptions = _a.sent();
1243
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
1244
+ case 2:
1245
+ response = _a.sent();
1246
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, TimelineResponse_1.TimelineResponseFromJSON)(jsonValue); })];
1142
1247
  }
1143
1248
  });
1144
1249
  });
@@ -1161,11 +1266,11 @@ var TweetApi = /** @class */ (function (_super) {
1161
1266
  });
1162
1267
  };
1163
1268
  /**
1164
- * get tweet list of timeline
1269
+ * Creates request options for getHomeTimeline without sending the request
1165
1270
  */
1166
- TweetApi.prototype.getHomeTimelineRaw = function (requestParameters, initOverrides) {
1271
+ TweetApi.prototype.getHomeTimelineRequestOpts = function (requestParameters) {
1167
1272
  return __awaiter(this, void 0, void 0, function () {
1168
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, response;
1273
+ var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
1169
1274
  return __generator(this, function (_14) {
1170
1275
  switch (_14.label) {
1171
1276
  case 0:
@@ -1347,15 +1452,34 @@ var TweetApi = /** @class */ (function (_super) {
1347
1452
  case 39:
1348
1453
  _12[_13] = _14.sent(); // AcceptEncoding authentication
1349
1454
  _14.label = 40;
1350
- case 40: return [4 /*yield*/, this.request({
1351
- path: "/graphql/{pathQueryId}/HomeTimeline".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
1352
- method: 'GET',
1353
- headers: headerParameters,
1354
- query: queryParameters,
1355
- }, initOverrides)];
1356
- case 41:
1357
- response = _14.sent();
1358
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.TimelineResponseFromJSON)(jsonValue); })];
1455
+ case 40:
1456
+ urlPath = "/graphql/{pathQueryId}/HomeTimeline";
1457
+ urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
1458
+ return [2 /*return*/, {
1459
+ path: urlPath,
1460
+ method: 'GET',
1461
+ headers: headerParameters,
1462
+ query: queryParameters,
1463
+ }];
1464
+ }
1465
+ });
1466
+ });
1467
+ };
1468
+ /**
1469
+ * get tweet list of timeline
1470
+ */
1471
+ TweetApi.prototype.getHomeTimelineRaw = function (requestParameters, initOverrides) {
1472
+ return __awaiter(this, void 0, void 0, function () {
1473
+ var requestOptions, response;
1474
+ return __generator(this, function (_a) {
1475
+ switch (_a.label) {
1476
+ case 0: return [4 /*yield*/, this.getHomeTimelineRequestOpts(requestParameters)];
1477
+ case 1:
1478
+ requestOptions = _a.sent();
1479
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
1480
+ case 2:
1481
+ response = _a.sent();
1482
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, TimelineResponse_1.TimelineResponseFromJSON)(jsonValue); })];
1359
1483
  }
1360
1484
  });
1361
1485
  });
@@ -1378,11 +1502,11 @@ var TweetApi = /** @class */ (function (_super) {
1378
1502
  });
1379
1503
  };
1380
1504
  /**
1381
- * get user likes tweets
1505
+ * Creates request options for getLikes without sending the request
1382
1506
  */
1383
- TweetApi.prototype.getLikesRaw = function (requestParameters, initOverrides) {
1507
+ TweetApi.prototype.getLikesRequestOpts = function (requestParameters) {
1384
1508
  return __awaiter(this, void 0, void 0, function () {
1385
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, response;
1509
+ var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
1386
1510
  return __generator(this, function (_14) {
1387
1511
  switch (_14.label) {
1388
1512
  case 0:
@@ -1570,15 +1694,34 @@ var TweetApi = /** @class */ (function (_super) {
1570
1694
  case 39:
1571
1695
  _12[_13] = _14.sent(); // AcceptEncoding authentication
1572
1696
  _14.label = 40;
1573
- case 40: return [4 /*yield*/, this.request({
1574
- path: "/graphql/{pathQueryId}/Likes".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
1575
- method: 'GET',
1576
- headers: headerParameters,
1577
- query: queryParameters,
1578
- }, initOverrides)];
1579
- case 41:
1580
- response = _14.sent();
1581
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.UserTweetsResponseFromJSON)(jsonValue); })];
1697
+ case 40:
1698
+ urlPath = "/graphql/{pathQueryId}/Likes";
1699
+ urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
1700
+ return [2 /*return*/, {
1701
+ path: urlPath,
1702
+ method: 'GET',
1703
+ headers: headerParameters,
1704
+ query: queryParameters,
1705
+ }];
1706
+ }
1707
+ });
1708
+ });
1709
+ };
1710
+ /**
1711
+ * get user likes tweets
1712
+ */
1713
+ TweetApi.prototype.getLikesRaw = function (requestParameters, initOverrides) {
1714
+ return __awaiter(this, void 0, void 0, function () {
1715
+ var requestOptions, response;
1716
+ return __generator(this, function (_a) {
1717
+ switch (_a.label) {
1718
+ case 0: return [4 /*yield*/, this.getLikesRequestOpts(requestParameters)];
1719
+ case 1:
1720
+ requestOptions = _a.sent();
1721
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
1722
+ case 2:
1723
+ response = _a.sent();
1724
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, UserTweetsResponse_1.UserTweetsResponseFromJSON)(jsonValue); })];
1582
1725
  }
1583
1726
  });
1584
1727
  });
@@ -1601,11 +1744,11 @@ var TweetApi = /** @class */ (function (_super) {
1601
1744
  });
1602
1745
  };
1603
1746
  /**
1604
- * get tweet list of timeline
1747
+ * Creates request options for getListLatestTweetsTimeline without sending the request
1605
1748
  */
1606
- TweetApi.prototype.getListLatestTweetsTimelineRaw = function (requestParameters, initOverrides) {
1749
+ TweetApi.prototype.getListLatestTweetsTimelineRequestOpts = function (requestParameters) {
1607
1750
  return __awaiter(this, void 0, void 0, function () {
1608
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, response;
1751
+ var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
1609
1752
  return __generator(this, function (_14) {
1610
1753
  switch (_14.label) {
1611
1754
  case 0:
@@ -1787,15 +1930,34 @@ var TweetApi = /** @class */ (function (_super) {
1787
1930
  case 39:
1788
1931
  _12[_13] = _14.sent(); // AcceptEncoding authentication
1789
1932
  _14.label = 40;
1790
- case 40: return [4 /*yield*/, this.request({
1791
- path: "/graphql/{pathQueryId}/ListLatestTweetsTimeline".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
1792
- method: 'GET',
1793
- headers: headerParameters,
1794
- query: queryParameters,
1795
- }, initOverrides)];
1796
- case 41:
1797
- response = _14.sent();
1798
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ListLatestTweetsTimelineResponseFromJSON)(jsonValue); })];
1933
+ case 40:
1934
+ urlPath = "/graphql/{pathQueryId}/ListLatestTweetsTimeline";
1935
+ urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
1936
+ return [2 /*return*/, {
1937
+ path: urlPath,
1938
+ method: 'GET',
1939
+ headers: headerParameters,
1940
+ query: queryParameters,
1941
+ }];
1942
+ }
1943
+ });
1944
+ });
1945
+ };
1946
+ /**
1947
+ * get tweet list of timeline
1948
+ */
1949
+ TweetApi.prototype.getListLatestTweetsTimelineRaw = function (requestParameters, initOverrides) {
1950
+ return __awaiter(this, void 0, void 0, function () {
1951
+ var requestOptions, response;
1952
+ return __generator(this, function (_a) {
1953
+ switch (_a.label) {
1954
+ case 0: return [4 /*yield*/, this.getListLatestTweetsTimelineRequestOpts(requestParameters)];
1955
+ case 1:
1956
+ requestOptions = _a.sent();
1957
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
1958
+ case 2:
1959
+ response = _a.sent();
1960
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, ListLatestTweetsTimelineResponse_1.ListLatestTweetsTimelineResponseFromJSON)(jsonValue); })];
1799
1961
  }
1800
1962
  });
1801
1963
  });
@@ -1818,11 +1980,11 @@ var TweetApi = /** @class */ (function (_super) {
1818
1980
  });
1819
1981
  };
1820
1982
  /**
1821
- * get notification list. timeline_type:[All, Verified, Mentions]
1983
+ * Creates request options for getNotificationsTimeline without sending the request
1822
1984
  */
1823
- TweetApi.prototype.getNotificationsTimelineRaw = function (requestParameters, initOverrides) {
1985
+ TweetApi.prototype.getNotificationsTimelineRequestOpts = function (requestParameters) {
1824
1986
  return __awaiter(this, void 0, void 0, function () {
1825
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, response;
1987
+ var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
1826
1988
  return __generator(this, function (_14) {
1827
1989
  switch (_14.label) {
1828
1990
  case 0:
@@ -2004,15 +2166,34 @@ var TweetApi = /** @class */ (function (_super) {
2004
2166
  case 39:
2005
2167
  _12[_13] = _14.sent(); // AcceptEncoding authentication
2006
2168
  _14.label = 40;
2007
- case 40: return [4 /*yield*/, this.request({
2008
- path: "/graphql/{pathQueryId}/NotificationsTimeline".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
2009
- method: 'GET',
2010
- headers: headerParameters,
2011
- query: queryParameters,
2012
- }, initOverrides)];
2013
- case 41:
2014
- response = _14.sent();
2015
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.NotificationsTimelineResponseFromJSON)(jsonValue); })];
2169
+ case 40:
2170
+ urlPath = "/graphql/{pathQueryId}/NotificationsTimeline";
2171
+ urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
2172
+ return [2 /*return*/, {
2173
+ path: urlPath,
2174
+ method: 'GET',
2175
+ headers: headerParameters,
2176
+ query: queryParameters,
2177
+ }];
2178
+ }
2179
+ });
2180
+ });
2181
+ };
2182
+ /**
2183
+ * get notification list. timeline_type:[All, Verified, Mentions]
2184
+ */
2185
+ TweetApi.prototype.getNotificationsTimelineRaw = function (requestParameters, initOverrides) {
2186
+ return __awaiter(this, void 0, void 0, function () {
2187
+ var requestOptions, response;
2188
+ return __generator(this, function (_a) {
2189
+ switch (_a.label) {
2190
+ case 0: return [4 /*yield*/, this.getNotificationsTimelineRequestOpts(requestParameters)];
2191
+ case 1:
2192
+ requestOptions = _a.sent();
2193
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
2194
+ case 2:
2195
+ response = _a.sent();
2196
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, NotificationsTimelineResponse_1.NotificationsTimelineResponseFromJSON)(jsonValue); })];
2016
2197
  }
2017
2198
  });
2018
2199
  });
@@ -2035,11 +2216,11 @@ var TweetApi = /** @class */ (function (_super) {
2035
2216
  });
2036
2217
  };
2037
2218
  /**
2038
- * search tweet list. product:[Top, Latest, People, Photos, Videos]
2219
+ * Creates request options for getSearchTimeline without sending the request
2039
2220
  */
2040
- TweetApi.prototype.getSearchTimelineRaw = function (requestParameters, initOverrides) {
2221
+ TweetApi.prototype.getSearchTimelineRequestOpts = function (requestParameters) {
2041
2222
  return __awaiter(this, void 0, void 0, function () {
2042
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, response;
2223
+ var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
2043
2224
  return __generator(this, function (_14) {
2044
2225
  switch (_14.label) {
2045
2226
  case 0:
@@ -2221,15 +2402,34 @@ var TweetApi = /** @class */ (function (_super) {
2221
2402
  case 39:
2222
2403
  _12[_13] = _14.sent(); // AcceptEncoding authentication
2223
2404
  _14.label = 40;
2224
- case 40: return [4 /*yield*/, this.request({
2225
- path: "/graphql/{pathQueryId}/SearchTimeline".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
2226
- method: 'GET',
2227
- headers: headerParameters,
2228
- query: queryParameters,
2229
- }, initOverrides)];
2230
- case 41:
2231
- response = _14.sent();
2232
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.SearchTimelineResponseFromJSON)(jsonValue); })];
2405
+ case 40:
2406
+ urlPath = "/graphql/{pathQueryId}/SearchTimeline";
2407
+ urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
2408
+ return [2 /*return*/, {
2409
+ path: urlPath,
2410
+ method: 'GET',
2411
+ headers: headerParameters,
2412
+ query: queryParameters,
2413
+ }];
2414
+ }
2415
+ });
2416
+ });
2417
+ };
2418
+ /**
2419
+ * search tweet list. product:[Top, Latest, People, Photos, Videos]
2420
+ */
2421
+ TweetApi.prototype.getSearchTimelineRaw = function (requestParameters, initOverrides) {
2422
+ return __awaiter(this, void 0, void 0, function () {
2423
+ var requestOptions, response;
2424
+ return __generator(this, function (_a) {
2425
+ switch (_a.label) {
2426
+ case 0: return [4 /*yield*/, this.getSearchTimelineRequestOpts(requestParameters)];
2427
+ case 1:
2428
+ requestOptions = _a.sent();
2429
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
2430
+ case 2:
2431
+ response = _a.sent();
2432
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, SearchTimelineResponse_1.SearchTimelineResponseFromJSON)(jsonValue); })];
2233
2433
  }
2234
2434
  });
2235
2435
  });
@@ -2252,11 +2452,11 @@ var TweetApi = /** @class */ (function (_super) {
2252
2452
  });
2253
2453
  };
2254
2454
  /**
2255
- * get TweetDetail
2455
+ * Creates request options for getTweetDetail without sending the request
2256
2456
  */
2257
- TweetApi.prototype.getTweetDetailRaw = function (requestParameters, initOverrides) {
2457
+ TweetApi.prototype.getTweetDetailRequestOpts = function (requestParameters) {
2258
2458
  return __awaiter(this, void 0, void 0, function () {
2259
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, response;
2459
+ var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
2260
2460
  return __generator(this, function (_14) {
2261
2461
  switch (_14.label) {
2262
2462
  case 0:
@@ -2444,15 +2644,34 @@ var TweetApi = /** @class */ (function (_super) {
2444
2644
  case 39:
2445
2645
  _12[_13] = _14.sent(); // AcceptEncoding authentication
2446
2646
  _14.label = 40;
2447
- case 40: return [4 /*yield*/, this.request({
2448
- path: "/graphql/{pathQueryId}/TweetDetail".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
2449
- method: 'GET',
2450
- headers: headerParameters,
2451
- query: queryParameters,
2452
- }, initOverrides)];
2453
- case 41:
2454
- response = _14.sent();
2455
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.TweetDetailResponseFromJSON)(jsonValue); })];
2647
+ case 40:
2648
+ urlPath = "/graphql/{pathQueryId}/TweetDetail";
2649
+ urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
2650
+ return [2 /*return*/, {
2651
+ path: urlPath,
2652
+ method: 'GET',
2653
+ headers: headerParameters,
2654
+ query: queryParameters,
2655
+ }];
2656
+ }
2657
+ });
2658
+ });
2659
+ };
2660
+ /**
2661
+ * get TweetDetail
2662
+ */
2663
+ TweetApi.prototype.getTweetDetailRaw = function (requestParameters, initOverrides) {
2664
+ return __awaiter(this, void 0, void 0, function () {
2665
+ var requestOptions, response;
2666
+ return __generator(this, function (_a) {
2667
+ switch (_a.label) {
2668
+ case 0: return [4 /*yield*/, this.getTweetDetailRequestOpts(requestParameters)];
2669
+ case 1:
2670
+ requestOptions = _a.sent();
2671
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
2672
+ case 2:
2673
+ response = _a.sent();
2674
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, TweetDetailResponse_1.TweetDetailResponseFromJSON)(jsonValue); })];
2456
2675
  }
2457
2676
  });
2458
2677
  });
@@ -2475,11 +2694,11 @@ var TweetApi = /** @class */ (function (_super) {
2475
2694
  });
2476
2695
  };
2477
2696
  /**
2478
- * get user highlights tweets
2697
+ * Creates request options for getUserHighlightsTweets without sending the request
2479
2698
  */
2480
- TweetApi.prototype.getUserHighlightsTweetsRaw = function (requestParameters, initOverrides) {
2699
+ TweetApi.prototype.getUserHighlightsTweetsRequestOpts = function (requestParameters) {
2481
2700
  return __awaiter(this, void 0, void 0, function () {
2482
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, response;
2701
+ var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
2483
2702
  return __generator(this, function (_14) {
2484
2703
  switch (_14.label) {
2485
2704
  case 0:
@@ -2667,15 +2886,34 @@ var TweetApi = /** @class */ (function (_super) {
2667
2886
  case 39:
2668
2887
  _12[_13] = _14.sent(); // AcceptEncoding authentication
2669
2888
  _14.label = 40;
2670
- case 40: return [4 /*yield*/, this.request({
2671
- path: "/graphql/{pathQueryId}/UserHighlightsTweets".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
2672
- method: 'GET',
2673
- headers: headerParameters,
2674
- query: queryParameters,
2675
- }, initOverrides)];
2676
- case 41:
2677
- response = _14.sent();
2678
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.UserHighlightsTweetsResponseFromJSON)(jsonValue); })];
2889
+ case 40:
2890
+ urlPath = "/graphql/{pathQueryId}/UserHighlightsTweets";
2891
+ urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
2892
+ return [2 /*return*/, {
2893
+ path: urlPath,
2894
+ method: 'GET',
2895
+ headers: headerParameters,
2896
+ query: queryParameters,
2897
+ }];
2898
+ }
2899
+ });
2900
+ });
2901
+ };
2902
+ /**
2903
+ * get user highlights tweets
2904
+ */
2905
+ TweetApi.prototype.getUserHighlightsTweetsRaw = function (requestParameters, initOverrides) {
2906
+ return __awaiter(this, void 0, void 0, function () {
2907
+ var requestOptions, response;
2908
+ return __generator(this, function (_a) {
2909
+ switch (_a.label) {
2910
+ case 0: return [4 /*yield*/, this.getUserHighlightsTweetsRequestOpts(requestParameters)];
2911
+ case 1:
2912
+ requestOptions = _a.sent();
2913
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
2914
+ case 2:
2915
+ response = _a.sent();
2916
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, UserHighlightsTweetsResponse_1.UserHighlightsTweetsResponseFromJSON)(jsonValue); })];
2679
2917
  }
2680
2918
  });
2681
2919
  });
@@ -2698,11 +2936,11 @@ var TweetApi = /** @class */ (function (_super) {
2698
2936
  });
2699
2937
  };
2700
2938
  /**
2701
- * get user media tweets
2939
+ * Creates request options for getUserMedia without sending the request
2702
2940
  */
2703
- TweetApi.prototype.getUserMediaRaw = function (requestParameters, initOverrides) {
2941
+ TweetApi.prototype.getUserMediaRequestOpts = function (requestParameters) {
2704
2942
  return __awaiter(this, void 0, void 0, function () {
2705
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, response;
2943
+ var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
2706
2944
  return __generator(this, function (_14) {
2707
2945
  switch (_14.label) {
2708
2946
  case 0:
@@ -2890,15 +3128,34 @@ var TweetApi = /** @class */ (function (_super) {
2890
3128
  case 39:
2891
3129
  _12[_13] = _14.sent(); // AcceptEncoding authentication
2892
3130
  _14.label = 40;
2893
- case 40: return [4 /*yield*/, this.request({
2894
- path: "/graphql/{pathQueryId}/UserMedia".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
2895
- method: 'GET',
2896
- headers: headerParameters,
2897
- query: queryParameters,
2898
- }, initOverrides)];
2899
- case 41:
2900
- response = _14.sent();
2901
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.UserTweetsResponseFromJSON)(jsonValue); })];
3131
+ case 40:
3132
+ urlPath = "/graphql/{pathQueryId}/UserMedia";
3133
+ urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
3134
+ return [2 /*return*/, {
3135
+ path: urlPath,
3136
+ method: 'GET',
3137
+ headers: headerParameters,
3138
+ query: queryParameters,
3139
+ }];
3140
+ }
3141
+ });
3142
+ });
3143
+ };
3144
+ /**
3145
+ * get user media tweets
3146
+ */
3147
+ TweetApi.prototype.getUserMediaRaw = function (requestParameters, initOverrides) {
3148
+ return __awaiter(this, void 0, void 0, function () {
3149
+ var requestOptions, response;
3150
+ return __generator(this, function (_a) {
3151
+ switch (_a.label) {
3152
+ case 0: return [4 /*yield*/, this.getUserMediaRequestOpts(requestParameters)];
3153
+ case 1:
3154
+ requestOptions = _a.sent();
3155
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
3156
+ case 2:
3157
+ response = _a.sent();
3158
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, UserTweetsResponse_1.UserTweetsResponseFromJSON)(jsonValue); })];
2902
3159
  }
2903
3160
  });
2904
3161
  });
@@ -2921,11 +3178,11 @@ var TweetApi = /** @class */ (function (_super) {
2921
3178
  });
2922
3179
  };
2923
3180
  /**
2924
- * get user tweets
3181
+ * Creates request options for getUserTweets without sending the request
2925
3182
  */
2926
- TweetApi.prototype.getUserTweetsRaw = function (requestParameters, initOverrides) {
3183
+ TweetApi.prototype.getUserTweetsRequestOpts = function (requestParameters) {
2927
3184
  return __awaiter(this, void 0, void 0, function () {
2928
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, response;
3185
+ var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
2929
3186
  return __generator(this, function (_14) {
2930
3187
  switch (_14.label) {
2931
3188
  case 0:
@@ -3113,15 +3370,34 @@ var TweetApi = /** @class */ (function (_super) {
3113
3370
  case 39:
3114
3371
  _12[_13] = _14.sent(); // AcceptEncoding authentication
3115
3372
  _14.label = 40;
3116
- case 40: return [4 /*yield*/, this.request({
3117
- path: "/graphql/{pathQueryId}/UserTweets".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
3118
- method: 'GET',
3119
- headers: headerParameters,
3120
- query: queryParameters,
3121
- }, initOverrides)];
3122
- case 41:
3123
- response = _14.sent();
3124
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.UserTweetsResponseFromJSON)(jsonValue); })];
3373
+ case 40:
3374
+ urlPath = "/graphql/{pathQueryId}/UserTweets";
3375
+ urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
3376
+ return [2 /*return*/, {
3377
+ path: urlPath,
3378
+ method: 'GET',
3379
+ headers: headerParameters,
3380
+ query: queryParameters,
3381
+ }];
3382
+ }
3383
+ });
3384
+ });
3385
+ };
3386
+ /**
3387
+ * get user tweets
3388
+ */
3389
+ TweetApi.prototype.getUserTweetsRaw = function (requestParameters, initOverrides) {
3390
+ return __awaiter(this, void 0, void 0, function () {
3391
+ var requestOptions, response;
3392
+ return __generator(this, function (_a) {
3393
+ switch (_a.label) {
3394
+ case 0: return [4 /*yield*/, this.getUserTweetsRequestOpts(requestParameters)];
3395
+ case 1:
3396
+ requestOptions = _a.sent();
3397
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
3398
+ case 2:
3399
+ response = _a.sent();
3400
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, UserTweetsResponse_1.UserTweetsResponseFromJSON)(jsonValue); })];
3125
3401
  }
3126
3402
  });
3127
3403
  });
@@ -3144,11 +3420,11 @@ var TweetApi = /** @class */ (function (_super) {
3144
3420
  });
3145
3421
  };
3146
3422
  /**
3147
- * get user replies tweets
3423
+ * Creates request options for getUserTweetsAndReplies without sending the request
3148
3424
  */
3149
- TweetApi.prototype.getUserTweetsAndRepliesRaw = function (requestParameters, initOverrides) {
3425
+ TweetApi.prototype.getUserTweetsAndRepliesRequestOpts = function (requestParameters) {
3150
3426
  return __awaiter(this, void 0, void 0, function () {
3151
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, response;
3427
+ var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
3152
3428
  return __generator(this, function (_14) {
3153
3429
  switch (_14.label) {
3154
3430
  case 0:
@@ -3336,15 +3612,34 @@ var TweetApi = /** @class */ (function (_super) {
3336
3612
  case 39:
3337
3613
  _12[_13] = _14.sent(); // AcceptEncoding authentication
3338
3614
  _14.label = 40;
3339
- case 40: return [4 /*yield*/, this.request({
3340
- path: "/graphql/{pathQueryId}/UserTweetsAndReplies".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
3341
- method: 'GET',
3342
- headers: headerParameters,
3343
- query: queryParameters,
3344
- }, initOverrides)];
3345
- case 41:
3346
- response = _14.sent();
3347
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.UserTweetsResponseFromJSON)(jsonValue); })];
3615
+ case 40:
3616
+ urlPath = "/graphql/{pathQueryId}/UserTweetsAndReplies";
3617
+ urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
3618
+ return [2 /*return*/, {
3619
+ path: urlPath,
3620
+ method: 'GET',
3621
+ headers: headerParameters,
3622
+ query: queryParameters,
3623
+ }];
3624
+ }
3625
+ });
3626
+ });
3627
+ };
3628
+ /**
3629
+ * get user replies tweets
3630
+ */
3631
+ TweetApi.prototype.getUserTweetsAndRepliesRaw = function (requestParameters, initOverrides) {
3632
+ return __awaiter(this, void 0, void 0, function () {
3633
+ var requestOptions, response;
3634
+ return __generator(this, function (_a) {
3635
+ switch (_a.label) {
3636
+ case 0: return [4 /*yield*/, this.getUserTweetsAndRepliesRequestOpts(requestParameters)];
3637
+ case 1:
3638
+ requestOptions = _a.sent();
3639
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
3640
+ case 2:
3641
+ response = _a.sent();
3642
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, UserTweetsResponse_1.UserTweetsResponseFromJSON)(jsonValue); })];
3348
3643
  }
3349
3644
  });
3350
3645
  });