twitter-openapi-typescript-generated 0.0.40 → 0.0.41

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 (2510) hide show
  1. package/LICENSE +31 -31
  2. package/LICENSE.AGPL +660 -660
  3. package/README.md +109 -3
  4. package/dist/apis/DefaultApi.d.ts +21 -1
  5. package/dist/apis/DefaultApi.js +215 -505
  6. package/dist/apis/OtherApi.d.ts +0 -1
  7. package/dist/apis/OtherApi.js +90 -259
  8. package/dist/apis/PostApi.d.ts +190 -1
  9. package/dist/apis/PostApi.js +1434 -1792
  10. package/dist/apis/TweetApi.d.ts +419 -1
  11. package/dist/apis/TweetApi.js +2681 -3463
  12. package/dist/apis/UserApi.d.ts +90 -1
  13. package/dist/apis/UserApi.js +542 -502
  14. package/dist/apis/UserListApi.d.ts +215 -1
  15. package/dist/apis/UserListApi.js +1312 -1391
  16. package/dist/apis/UsersApi.d.ts +9 -1
  17. package/dist/apis/UsersApi.js +106 -275
  18. package/dist/apis/V11GetApi.d.ts +69 -1
  19. package/dist/apis/V11GetApi.js +311 -599
  20. package/dist/apis/V11PostApi.d.ts +84 -1
  21. package/dist/apis/V11PostApi.js +369 -653
  22. package/dist/apis/V20GetApi.d.ts +111 -1
  23. package/dist/apis/V20GetApi.js +310 -478
  24. package/dist/apis/index.d.ts +0 -1
  25. package/dist/apis/index.js +0 -1
  26. package/dist/esm/apis/DefaultApi.d.ts +75 -0
  27. package/dist/esm/apis/DefaultApi.js +266 -0
  28. package/dist/esm/apis/OtherApi.d.ts +30 -0
  29. package/dist/esm/apis/OtherApi.js +128 -0
  30. package/dist/esm/apis/PostApi.d.ts +351 -0
  31. package/dist/esm/apis/PostApi.js +1566 -0
  32. package/dist/esm/apis/TweetApi.d.ts +708 -0
  33. package/dist/esm/apis/TweetApi.js +2881 -0
  34. package/dist/esm/apis/UserApi.d.ts +143 -0
  35. package/dist/esm/apis/UserApi.js +595 -0
  36. package/dist/esm/apis/UserListApi.d.ts +337 -0
  37. package/dist/esm/apis/UserListApi.js +1416 -0
  38. package/dist/esm/apis/UsersApi.d.ts +44 -0
  39. package/dist/esm/apis/UsersApi.js +144 -0
  40. package/dist/esm/apis/V11GetApi.d.ts +137 -0
  41. package/dist/esm/apis/V11GetApi.js +362 -0
  42. package/dist/esm/apis/V11PostApi.d.ts +157 -0
  43. package/dist/esm/apis/V11PostApi.js +420 -0
  44. package/dist/esm/apis/V20GetApi.d.ts +179 -0
  45. package/dist/esm/apis/V20GetApi.js +348 -0
  46. package/dist/esm/apis/index.d.ts +10 -0
  47. package/dist/esm/apis/index.js +12 -0
  48. package/dist/esm/index.d.ts +3 -0
  49. package/dist/esm/index.js +5 -0
  50. package/dist/esm/models/AboutCommunityResult.d.ts +36 -0
  51. package/dist/esm/models/AboutCommunityResult.js +49 -0
  52. package/dist/esm/models/AboutCommunityResults.d.ts +31 -0
  53. package/dist/esm/models/AboutCommunityResults.js +44 -0
  54. package/dist/esm/models/AboutCommunityTweetData.d.ts +31 -0
  55. package/dist/esm/models/AboutCommunityTweetData.js +44 -0
  56. package/dist/esm/models/AdditionalMediaInfo.d.ts +52 -0
  57. package/dist/esm/models/AdditionalMediaInfo.js +55 -0
  58. package/dist/esm/models/AdditionalMediaInfoCallToActions.d.ts +35 -0
  59. package/dist/esm/models/AdditionalMediaInfoCallToActions.js +44 -0
  60. package/dist/esm/models/AdditionalMediaInfoCallToActionsUrl.d.ts +30 -0
  61. package/dist/esm/models/AdditionalMediaInfoCallToActionsUrl.js +43 -0
  62. package/dist/esm/models/AllowDownloadStatus.d.ts +30 -0
  63. package/dist/esm/models/AllowDownloadStatus.js +41 -0
  64. package/dist/esm/models/AnalysisResults.d.ts +31 -0
  65. package/dist/esm/models/AnalysisResults.js +44 -0
  66. package/dist/esm/models/Article.d.ts +31 -0
  67. package/dist/esm/models/Article.js +44 -0
  68. package/dist/esm/models/ArticleCoverMedia.d.ts +43 -0
  69. package/dist/esm/models/ArticleCoverMedia.js +56 -0
  70. package/dist/esm/models/ArticleCoverMediaColorInfo.d.ts +31 -0
  71. package/dist/esm/models/ArticleCoverMediaColorInfo.js +44 -0
  72. package/dist/esm/models/ArticleCoverMediaColorInfoPalette.d.ts +35 -0
  73. package/dist/esm/models/ArticleCoverMediaColorInfoPalette.js +48 -0
  74. package/dist/esm/models/ArticleCoverMediaColorInfoPaletteRGB.d.ts +38 -0
  75. package/dist/esm/models/ArticleCoverMediaColorInfoPaletteRGB.js +51 -0
  76. package/dist/esm/models/ArticleCoverMediaInfo.d.ts +48 -0
  77. package/dist/esm/models/ArticleCoverMediaInfo.js +59 -0
  78. package/dist/esm/models/ArticleLifecycleState.d.ts +30 -0
  79. package/dist/esm/models/ArticleLifecycleState.js +43 -0
  80. package/dist/esm/models/ArticleMetadata.d.ts +30 -0
  81. package/dist/esm/models/ArticleMetadata.js +43 -0
  82. package/dist/esm/models/ArticlePreview.d.ts +43 -0
  83. package/dist/esm/models/ArticlePreview.js +54 -0
  84. package/dist/esm/models/ArticleResult.d.ts +71 -0
  85. package/dist/esm/models/ArticleResult.js +72 -0
  86. package/dist/esm/models/ArticleResults.d.ts +31 -0
  87. package/dist/esm/models/ArticleResults.js +44 -0
  88. package/dist/esm/models/AuthorCommunityRelationship.d.ts +50 -0
  89. package/dist/esm/models/AuthorCommunityRelationship.js +58 -0
  90. package/dist/esm/models/BadgeCounts.d.ts +46 -0
  91. package/dist/esm/models/BadgeCounts.js +59 -0
  92. package/dist/esm/models/BirdwatchEntity.d.ts +39 -0
  93. package/dist/esm/models/BirdwatchEntity.js +52 -0
  94. package/dist/esm/models/BirdwatchEntityRef.d.ts +61 -0
  95. package/dist/esm/models/BirdwatchEntityRef.js +64 -0
  96. package/dist/esm/models/BirdwatchPivot.d.ts +97 -0
  97. package/dist/esm/models/BirdwatchPivot.js +91 -0
  98. package/dist/esm/models/BirdwatchPivotCallToAction.d.ts +38 -0
  99. package/dist/esm/models/BirdwatchPivotCallToAction.js +51 -0
  100. package/dist/esm/models/BirdwatchPivotFooter.d.ts +35 -0
  101. package/dist/esm/models/BirdwatchPivotFooter.js +48 -0
  102. package/dist/esm/models/BirdwatchPivotNote.d.ts +43 -0
  103. package/dist/esm/models/BirdwatchPivotNote.js +50 -0
  104. package/dist/esm/models/BirdwatchPivotSubtitle.d.ts +35 -0
  105. package/dist/esm/models/BirdwatchPivotSubtitle.js +48 -0
  106. package/dist/esm/models/BookmarksResponse.d.ts +36 -0
  107. package/dist/esm/models/BookmarksResponse.js +45 -0
  108. package/dist/esm/models/BookmarksResponseData.d.ts +31 -0
  109. package/dist/esm/models/BookmarksResponseData.js +44 -0
  110. package/dist/esm/models/BookmarksTimeline.d.ts +31 -0
  111. package/dist/esm/models/BookmarksTimeline.js +44 -0
  112. package/dist/esm/models/Callback.d.ts +30 -0
  113. package/dist/esm/models/Callback.js +43 -0
  114. package/dist/esm/models/CashtagAttachment.d.ts +30 -0
  115. package/dist/esm/models/CashtagAttachment.js +43 -0
  116. package/dist/esm/models/ClientEventInfo.d.ts +40 -0
  117. package/dist/esm/models/ClientEventInfo.js +45 -0
  118. package/dist/esm/models/CommunitiesActions.d.ts +30 -0
  119. package/dist/esm/models/CommunitiesActions.js +43 -0
  120. package/dist/esm/models/Community.d.ts +167 -0
  121. package/dist/esm/models/Community.js +121 -0
  122. package/dist/esm/models/CommunityAboutTimelineResponse.d.ts +36 -0
  123. package/dist/esm/models/CommunityAboutTimelineResponse.js +47 -0
  124. package/dist/esm/models/CommunityActions.d.ts +51 -0
  125. package/dist/esm/models/CommunityActions.js +54 -0
  126. package/dist/esm/models/CommunityDeleteActionResult.d.ts +42 -0
  127. package/dist/esm/models/CommunityDeleteActionResult.js +56 -0
  128. package/dist/esm/models/CommunityDiscoveryTimelineResponse.d.ts +36 -0
  129. package/dist/esm/models/CommunityDiscoveryTimelineResponse.js +47 -0
  130. package/dist/esm/models/CommunityDiscoveryTimelineResponseData.d.ts +31 -0
  131. package/dist/esm/models/CommunityDiscoveryTimelineResponseData.js +44 -0
  132. package/dist/esm/models/CommunityDiscoveryTimelineViewer.d.ts +31 -0
  133. package/dist/esm/models/CommunityDiscoveryTimelineViewer.js +44 -0
  134. package/dist/esm/models/CommunityInvitesResult.d.ts +46 -0
  135. package/dist/esm/models/CommunityInvitesResult.js +60 -0
  136. package/dist/esm/models/CommunityJoinAction.d.ts +31 -0
  137. package/dist/esm/models/CommunityJoinAction.js +44 -0
  138. package/dist/esm/models/CommunityJoinActionResultUnion.d.ts +27 -0
  139. package/dist/esm/models/CommunityJoinActionResultUnion.js +47 -0
  140. package/dist/esm/models/CommunityJoinActionUnavailable.d.ts +46 -0
  141. package/dist/esm/models/CommunityJoinActionUnavailable.js +60 -0
  142. package/dist/esm/models/CommunityJoinRequestsResult.d.ts +31 -0
  143. package/dist/esm/models/CommunityJoinRequestsResult.js +44 -0
  144. package/dist/esm/models/CommunityLeaveActionResult.d.ts +46 -0
  145. package/dist/esm/models/CommunityLeaveActionResult.js +60 -0
  146. package/dist/esm/models/CommunityMediaTimelineResponse.d.ts +36 -0
  147. package/dist/esm/models/CommunityMediaTimelineResponse.js +47 -0
  148. package/dist/esm/models/CommunityPinActionResult.d.ts +31 -0
  149. package/dist/esm/models/CommunityPinActionResult.js +44 -0
  150. package/dist/esm/models/CommunityRelationship.d.ts +45 -0
  151. package/dist/esm/models/CommunityRelationship.js +56 -0
  152. package/dist/esm/models/CommunityResult.d.ts +31 -0
  153. package/dist/esm/models/CommunityResult.js +44 -0
  154. package/dist/esm/models/CommunityRule.d.ts +38 -0
  155. package/dist/esm/models/CommunityRule.js +49 -0
  156. package/dist/esm/models/CommunityTweetsTimelineResponse.d.ts +36 -0
  157. package/dist/esm/models/CommunityTweetsTimelineResponse.js +47 -0
  158. package/dist/esm/models/CommunityUnavailable.d.ts +31 -0
  159. package/dist/esm/models/CommunityUnavailable.js +44 -0
  160. package/dist/esm/models/CommunityUnion.d.ts +27 -0
  161. package/dist/esm/models/CommunityUnion.js +47 -0
  162. package/dist/esm/models/CommunityUnpinActionResult.d.ts +31 -0
  163. package/dist/esm/models/CommunityUnpinActionResult.js +44 -0
  164. package/dist/esm/models/CommunityUrls.d.ts +31 -0
  165. package/dist/esm/models/CommunityUrls.js +44 -0
  166. package/dist/esm/models/CommunityUrlsPermalink.d.ts +30 -0
  167. package/dist/esm/models/CommunityUrlsPermalink.js +43 -0
  168. package/dist/esm/models/ConnectTabTimelineResponse.d.ts +36 -0
  169. package/dist/esm/models/ConnectTabTimelineResponse.js +47 -0
  170. package/dist/esm/models/ConnectTabTimelineResponseData.d.ts +31 -0
  171. package/dist/esm/models/ConnectTabTimelineResponseData.js +44 -0
  172. package/dist/esm/models/ContentDisclosure.d.ts +36 -0
  173. package/dist/esm/models/ContentDisclosure.js +45 -0
  174. package/dist/esm/models/ContentDisclosureAdvertisingDisclosure.d.ts +30 -0
  175. package/dist/esm/models/ContentDisclosureAdvertisingDisclosure.js +43 -0
  176. package/dist/esm/models/ContentDisclosureAiGeneratedDisclosure.d.ts +48 -0
  177. package/dist/esm/models/ContentDisclosureAiGeneratedDisclosure.js +58 -0
  178. package/dist/esm/models/ContentEntryType.d.ts +26 -0
  179. package/dist/esm/models/ContentEntryType.js +44 -0
  180. package/dist/esm/models/ContentItemType.d.ts +35 -0
  181. package/dist/esm/models/ContentItemType.js +53 -0
  182. package/dist/esm/models/ContentUnion.d.ts +30 -0
  183. package/dist/esm/models/ContentUnion.js +52 -0
  184. package/dist/esm/models/ConversationControl.d.ts +39 -0
  185. package/dist/esm/models/ConversationControl.js +51 -0
  186. package/dist/esm/models/CoverCta.d.ts +56 -0
  187. package/dist/esm/models/CoverCta.js +64 -0
  188. package/dist/esm/models/CreateBookmarkResponse.d.ts +36 -0
  189. package/dist/esm/models/CreateBookmarkResponse.js +47 -0
  190. package/dist/esm/models/CreateBookmarkResponseData.d.ts +30 -0
  191. package/dist/esm/models/CreateBookmarkResponseData.js +41 -0
  192. package/dist/esm/models/CreateDraftTweetResponse.d.ts +36 -0
  193. package/dist/esm/models/CreateDraftTweetResponse.js +47 -0
  194. package/dist/esm/models/CreateDraftTweetResponseData.d.ts +31 -0
  195. package/dist/esm/models/CreateDraftTweetResponseData.js +44 -0
  196. package/dist/esm/models/CreateDraftTweetResponseTweet.d.ts +30 -0
  197. package/dist/esm/models/CreateDraftTweetResponseTweet.js +43 -0
  198. package/dist/esm/models/CreateRetweet.d.ts +31 -0
  199. package/dist/esm/models/CreateRetweet.js +44 -0
  200. package/dist/esm/models/CreateRetweetResponse.d.ts +36 -0
  201. package/dist/esm/models/CreateRetweetResponse.js +47 -0
  202. package/dist/esm/models/CreateRetweetResponseData.d.ts +31 -0
  203. package/dist/esm/models/CreateRetweetResponseData.js +42 -0
  204. package/dist/esm/models/CreateRetweetResponseResult.d.ts +31 -0
  205. package/dist/esm/models/CreateRetweetResponseResult.js +44 -0
  206. package/dist/esm/models/CreateTweet.d.ts +31 -0
  207. package/dist/esm/models/CreateTweet.js +44 -0
  208. package/dist/esm/models/CreateTweetResponse.d.ts +36 -0
  209. package/dist/esm/models/CreateTweetResponse.js +47 -0
  210. package/dist/esm/models/CreateTweetResponseData.d.ts +31 -0
  211. package/dist/esm/models/CreateTweetResponseData.js +42 -0
  212. package/dist/esm/models/CreateTweetResponseResult.d.ts +31 -0
  213. package/dist/esm/models/CreateTweetResponseResult.js +44 -0
  214. package/dist/esm/models/CtaClientEventInfo.d.ts +37 -0
  215. package/dist/esm/models/CtaClientEventInfo.js +51 -0
  216. package/dist/esm/models/CursorType.d.ts +29 -0
  217. package/dist/esm/models/CursorType.js +47 -0
  218. package/dist/esm/models/DeleteBookmarkResponse.d.ts +36 -0
  219. package/dist/esm/models/DeleteBookmarkResponse.js +47 -0
  220. package/dist/esm/models/DeleteBookmarkResponseData.d.ts +30 -0
  221. package/dist/esm/models/DeleteBookmarkResponseData.js +41 -0
  222. package/dist/esm/models/DeleteDraftTweetsResponse.d.ts +36 -0
  223. package/dist/esm/models/DeleteDraftTweetsResponse.js +47 -0
  224. package/dist/esm/models/DeleteDraftTweetsResponseData.d.ts +30 -0
  225. package/dist/esm/models/DeleteDraftTweetsResponseData.js +43 -0
  226. package/dist/esm/models/DeleteListResponse.d.ts +36 -0
  227. package/dist/esm/models/DeleteListResponse.js +47 -0
  228. package/dist/esm/models/DeleteListResponseData.d.ts +30 -0
  229. package/dist/esm/models/DeleteListResponseData.js +43 -0
  230. package/dist/esm/models/DeleteRetweet.d.ts +31 -0
  231. package/dist/esm/models/DeleteRetweet.js +44 -0
  232. package/dist/esm/models/DeleteRetweetResponse.d.ts +36 -0
  233. package/dist/esm/models/DeleteRetweetResponse.js +47 -0
  234. package/dist/esm/models/DeleteRetweetResponseData.d.ts +31 -0
  235. package/dist/esm/models/DeleteRetweetResponseData.js +42 -0
  236. package/dist/esm/models/DeleteRetweetResponseResult.d.ts +31 -0
  237. package/dist/esm/models/DeleteRetweetResponseResult.js +42 -0
  238. package/dist/esm/models/DeleteTweetResponse.d.ts +36 -0
  239. package/dist/esm/models/DeleteTweetResponse.js +47 -0
  240. package/dist/esm/models/DeleteTweetResponseData.d.ts +31 -0
  241. package/dist/esm/models/DeleteTweetResponseData.js +42 -0
  242. package/dist/esm/models/DeleteTweetResponseResult.d.ts +30 -0
  243. package/dist/esm/models/DeleteTweetResponseResult.js +43 -0
  244. package/dist/esm/models/DisplayTreatment.d.ts +34 -0
  245. package/dist/esm/models/DisplayTreatment.js +45 -0
  246. package/dist/esm/models/DisplayType.d.ts +27 -0
  247. package/dist/esm/models/DisplayType.js +45 -0
  248. package/dist/esm/models/DraftList.d.ts +31 -0
  249. package/dist/esm/models/DraftList.js +44 -0
  250. package/dist/esm/models/DraftTweet.d.ts +40 -0
  251. package/dist/esm/models/DraftTweet.js +53 -0
  252. package/dist/esm/models/DraftTweetCreateRequest.d.ts +52 -0
  253. package/dist/esm/models/DraftTweetCreateRequest.js +63 -0
  254. package/dist/esm/models/DraftTweetUser.d.ts +35 -0
  255. package/dist/esm/models/DraftTweetUser.js +48 -0
  256. package/dist/esm/models/DraftTweetUserResults.d.ts +31 -0
  257. package/dist/esm/models/DraftTweetUserResults.js +44 -0
  258. package/dist/esm/models/DraftTweetsViewer.d.ts +31 -0
  259. package/dist/esm/models/DraftTweetsViewer.js +44 -0
  260. package/dist/esm/models/Entities.d.ts +64 -0
  261. package/dist/esm/models/Entities.js +57 -0
  262. package/dist/esm/models/ErrorExtensions.d.ts +51 -0
  263. package/dist/esm/models/ErrorExtensions.js +60 -0
  264. package/dist/esm/models/ErrorResponse.d.ts +70 -0
  265. package/dist/esm/models/ErrorResponse.js +79 -0
  266. package/dist/esm/models/ErrorResponsePathInner.d.ts +21 -0
  267. package/dist/esm/models/ErrorResponsePathInner.js +43 -0
  268. package/dist/esm/models/ExplorePage.d.ts +35 -0
  269. package/dist/esm/models/ExplorePage.js +48 -0
  270. package/dist/esm/models/ExplorePageBody.d.ts +40 -0
  271. package/dist/esm/models/ExplorePageBody.js +53 -0
  272. package/dist/esm/models/ExplorePageResponse.d.ts +36 -0
  273. package/dist/esm/models/ExplorePageResponse.js +47 -0
  274. package/dist/esm/models/ExplorePageResponseData.d.ts +31 -0
  275. package/dist/esm/models/ExplorePageResponseData.js +44 -0
  276. package/dist/esm/models/ExploreTimeline.d.ts +48 -0
  277. package/dist/esm/models/ExploreTimeline.js +61 -0
  278. package/dist/esm/models/ExploreTimelineScribeConfig.d.ts +34 -0
  279. package/dist/esm/models/ExploreTimelineScribeConfig.js +47 -0
  280. package/dist/esm/models/ExtMediaAvailability.d.ts +42 -0
  281. package/dist/esm/models/ExtMediaAvailability.js +50 -0
  282. package/dist/esm/models/ExtendedEntities.d.ts +31 -0
  283. package/dist/esm/models/ExtendedEntities.js +44 -0
  284. package/dist/esm/models/FavoriteTweet.d.ts +30 -0
  285. package/dist/esm/models/FavoriteTweet.js +41 -0
  286. package/dist/esm/models/FavoriteTweetResponse.d.ts +36 -0
  287. package/dist/esm/models/FavoriteTweetResponse.js +47 -0
  288. package/dist/esm/models/FeedbackInfo.d.ts +35 -0
  289. package/dist/esm/models/FeedbackInfo.js +44 -0
  290. package/dist/esm/models/FetchDraftTweetsResponse.d.ts +36 -0
  291. package/dist/esm/models/FetchDraftTweetsResponse.js +47 -0
  292. package/dist/esm/models/FetchDraftTweetsResponseData.d.ts +31 -0
  293. package/dist/esm/models/FetchDraftTweetsResponseData.js +44 -0
  294. package/dist/esm/models/FetchScheduledTweetsResponse.d.ts +36 -0
  295. package/dist/esm/models/FetchScheduledTweetsResponse.js +47 -0
  296. package/dist/esm/models/FetchScheduledTweetsResponseData.d.ts +31 -0
  297. package/dist/esm/models/FetchScheduledTweetsResponseData.js +44 -0
  298. package/dist/esm/models/FollowResponse.d.ts +36 -0
  299. package/dist/esm/models/FollowResponse.js +47 -0
  300. package/dist/esm/models/FollowResponseData.d.ts +31 -0
  301. package/dist/esm/models/FollowResponseData.js +42 -0
  302. package/dist/esm/models/FollowResponseResult.d.ts +36 -0
  303. package/dist/esm/models/FollowResponseResult.js +49 -0
  304. package/dist/esm/models/FollowResponseUser.d.ts +31 -0
  305. package/dist/esm/models/FollowResponseUser.js +44 -0
  306. package/dist/esm/models/FollowTimeline.d.ts +31 -0
  307. package/dist/esm/models/FollowTimeline.js +44 -0
  308. package/dist/esm/models/GenericTimelineByIdResponse.d.ts +36 -0
  309. package/dist/esm/models/GenericTimelineByIdResponse.js +47 -0
  310. package/dist/esm/models/GenericTimelineByIdResponseData.d.ts +31 -0
  311. package/dist/esm/models/GenericTimelineByIdResponseData.js +44 -0
  312. package/dist/esm/models/GrokAnnotation.d.ts +30 -0
  313. package/dist/esm/models/GrokAnnotation.js +41 -0
  314. package/dist/esm/models/GrokEntity.d.ts +39 -0
  315. package/dist/esm/models/GrokEntity.js +52 -0
  316. package/dist/esm/models/GrokEntityRef.d.ts +65 -0
  317. package/dist/esm/models/GrokEntityRef.js +66 -0
  318. package/dist/esm/models/GrokImageAnnotation.d.ts +34 -0
  319. package/dist/esm/models/GrokImageAnnotation.js +47 -0
  320. package/dist/esm/models/GrokShareAttachment.d.ts +31 -0
  321. package/dist/esm/models/GrokShareAttachment.js +44 -0
  322. package/dist/esm/models/GrokShareAttachmentItem.d.ts +45 -0
  323. package/dist/esm/models/GrokShareAttachmentItem.js +52 -0
  324. package/dist/esm/models/GrokTranslatedBio.d.ts +43 -0
  325. package/dist/esm/models/GrokTranslatedBio.js +56 -0
  326. package/dist/esm/models/GrokTranslatedBioWithAvailability.d.ts +35 -0
  327. package/dist/esm/models/GrokTranslatedBioWithAvailability.js +46 -0
  328. package/dist/esm/models/GrokTranslatedCommunityNote.d.ts +47 -0
  329. package/dist/esm/models/GrokTranslatedCommunityNote.js +58 -0
  330. package/dist/esm/models/GrokTranslatedCommunityNoteWithAvailability.d.ts +35 -0
  331. package/dist/esm/models/GrokTranslatedCommunityNoteWithAvailability.js +46 -0
  332. package/dist/esm/models/GrokTranslatedPost.d.ts +53 -0
  333. package/dist/esm/models/GrokTranslatedPost.js +52 -0
  334. package/dist/esm/models/GrokTranslatedPostWithAvailability.d.ts +35 -0
  335. package/dist/esm/models/GrokTranslatedPostWithAvailability.js +46 -0
  336. package/dist/esm/models/Highlight.d.ts +31 -0
  337. package/dist/esm/models/Highlight.js +44 -0
  338. package/dist/esm/models/HomeTimelineHome.d.ts +31 -0
  339. package/dist/esm/models/HomeTimelineHome.js +44 -0
  340. package/dist/esm/models/HomeTimelineResponseData.d.ts +31 -0
  341. package/dist/esm/models/HomeTimelineResponseData.js +44 -0
  342. package/dist/esm/models/InstructionType.d.ts +33 -0
  343. package/dist/esm/models/InstructionType.js +51 -0
  344. package/dist/esm/models/InstructionUnion.d.ts +51 -0
  345. package/dist/esm/models/InstructionUnion.js +87 -0
  346. package/dist/esm/models/ItemContentUnion.d.ts +57 -0
  347. package/dist/esm/models/ItemContentUnion.js +97 -0
  348. package/dist/esm/models/ItemResult.d.ts +36 -0
  349. package/dist/esm/models/ItemResult.js +45 -0
  350. package/dist/esm/models/LimitedActionResultsData.d.ts +50 -0
  351. package/dist/esm/models/LimitedActionResultsData.js +62 -0
  352. package/dist/esm/models/ListBannerMedia.d.ts +31 -0
  353. package/dist/esm/models/ListBannerMedia.js +44 -0
  354. package/dist/esm/models/ListBannerMediaInfo.d.ts +43 -0
  355. package/dist/esm/models/ListBannerMediaInfo.js +56 -0
  356. package/dist/esm/models/ListBannerMediaSalientRect.d.ts +42 -0
  357. package/dist/esm/models/ListBannerMediaSalientRect.js +55 -0
  358. package/dist/esm/models/ListLatestTweetsTimelineResponse.d.ts +36 -0
  359. package/dist/esm/models/ListLatestTweetsTimelineResponse.js +47 -0
  360. package/dist/esm/models/ListMembersList.d.ts +31 -0
  361. package/dist/esm/models/ListMembersList.js +44 -0
  362. package/dist/esm/models/ListMembersResponse.d.ts +36 -0
  363. package/dist/esm/models/ListMembersResponse.js +47 -0
  364. package/dist/esm/models/ListMembersResponseData.d.ts +31 -0
  365. package/dist/esm/models/ListMembersResponseData.js +44 -0
  366. package/dist/esm/models/ListRecommendedUsersList.d.ts +31 -0
  367. package/dist/esm/models/ListRecommendedUsersList.js +44 -0
  368. package/dist/esm/models/ListRecommendedUsersResponse.d.ts +36 -0
  369. package/dist/esm/models/ListRecommendedUsersResponse.js +47 -0
  370. package/dist/esm/models/ListRecommendedUsersResponseData.d.ts +31 -0
  371. package/dist/esm/models/ListRecommendedUsersResponseData.js +44 -0
  372. package/dist/esm/models/ListResponse.d.ts +36 -0
  373. package/dist/esm/models/ListResponse.js +47 -0
  374. package/dist/esm/models/ListResponseData.d.ts +31 -0
  375. package/dist/esm/models/ListResponseData.js +44 -0
  376. package/dist/esm/models/ListSubscribersList.d.ts +31 -0
  377. package/dist/esm/models/ListSubscribersList.js +44 -0
  378. package/dist/esm/models/ListSubscribersResponse.d.ts +36 -0
  379. package/dist/esm/models/ListSubscribersResponse.js +47 -0
  380. package/dist/esm/models/ListSubscribersResponseData.d.ts +31 -0
  381. package/dist/esm/models/ListSubscribersResponseData.js +44 -0
  382. package/dist/esm/models/ListTweetsTimelineData.d.ts +31 -0
  383. package/dist/esm/models/ListTweetsTimelineData.js +44 -0
  384. package/dist/esm/models/ListTweetsTimelineList.d.ts +31 -0
  385. package/dist/esm/models/ListTweetsTimelineList.js +44 -0
  386. package/dist/esm/models/Location.d.ts +34 -0
  387. package/dist/esm/models/Location.js +47 -0
  388. package/dist/esm/models/Media.d.ts +132 -0
  389. package/dist/esm/models/Media.js +122 -0
  390. package/dist/esm/models/MediaCommunityResult.d.ts +36 -0
  391. package/dist/esm/models/MediaCommunityResult.js +49 -0
  392. package/dist/esm/models/MediaCommunityResults.d.ts +31 -0
  393. package/dist/esm/models/MediaCommunityResults.js +44 -0
  394. package/dist/esm/models/MediaCommunityTweetData.d.ts +31 -0
  395. package/dist/esm/models/MediaCommunityTweetData.js +44 -0
  396. package/dist/esm/models/MediaExtended.d.ts +137 -0
  397. package/dist/esm/models/MediaExtended.js +123 -0
  398. package/dist/esm/models/MediaOriginalInfo.d.ts +39 -0
  399. package/dist/esm/models/MediaOriginalInfo.js +50 -0
  400. package/dist/esm/models/MediaOriginalInfoFocusRect.d.ts +42 -0
  401. package/dist/esm/models/MediaOriginalInfoFocusRect.js +55 -0
  402. package/dist/esm/models/MediaResult.d.ts +35 -0
  403. package/dist/esm/models/MediaResult.js +46 -0
  404. package/dist/esm/models/MediaResults.d.ts +31 -0
  405. package/dist/esm/models/MediaResults.js +44 -0
  406. package/dist/esm/models/MediaSize.d.ts +46 -0
  407. package/dist/esm/models/MediaSize.js +58 -0
  408. package/dist/esm/models/MediaSizes.d.ts +43 -0
  409. package/dist/esm/models/MediaSizes.js +56 -0
  410. package/dist/esm/models/MediaStats.d.ts +30 -0
  411. package/dist/esm/models/MediaStats.js +43 -0
  412. package/dist/esm/models/MediaVideoInfo.d.ts +39 -0
  413. package/dist/esm/models/MediaVideoInfo.js +50 -0
  414. package/dist/esm/models/MediaVideoInfoVariant.d.ts +38 -0
  415. package/dist/esm/models/MediaVideoInfoVariant.js +49 -0
  416. package/dist/esm/models/MediaVisibilityResults.d.ts +31 -0
  417. package/dist/esm/models/MediaVisibilityResults.js +44 -0
  418. package/dist/esm/models/MediaVisibilityResultsBlurredImageInterstitial.d.ts +39 -0
  419. package/dist/esm/models/MediaVisibilityResultsBlurredImageInterstitial.js +52 -0
  420. package/dist/esm/models/ModuleEntry.d.ts +41 -0
  421. package/dist/esm/models/ModuleEntry.js +50 -0
  422. package/dist/esm/models/ModuleItem.d.ts +39 -0
  423. package/dist/esm/models/ModuleItem.js +50 -0
  424. package/dist/esm/models/NoteTweet.d.ts +35 -0
  425. package/dist/esm/models/NoteTweet.js +46 -0
  426. package/dist/esm/models/NoteTweetResult.d.ts +31 -0
  427. package/dist/esm/models/NoteTweetResult.js +44 -0
  428. package/dist/esm/models/NoteTweetResultData.d.ts +49 -0
  429. package/dist/esm/models/NoteTweetResultData.js +58 -0
  430. package/dist/esm/models/NoteTweetResultMedia.d.ts +31 -0
  431. package/dist/esm/models/NoteTweetResultMedia.js +44 -0
  432. package/dist/esm/models/NoteTweetResultMediaInlineMedia.d.ts +34 -0
  433. package/dist/esm/models/NoteTweetResultMediaInlineMedia.js +47 -0
  434. package/dist/esm/models/NoteTweetResultRichText.d.ts +31 -0
  435. package/dist/esm/models/NoteTweetResultRichText.js +44 -0
  436. package/dist/esm/models/NoteTweetResultRichTextTag.d.ts +46 -0
  437. package/dist/esm/models/NoteTweetResultRichTextTag.js +58 -0
  438. package/dist/esm/models/NotificationTemplate.d.ts +39 -0
  439. package/dist/esm/models/NotificationTemplate.js +46 -0
  440. package/dist/esm/models/NotificationsResult.d.ts +40 -0
  441. package/dist/esm/models/NotificationsResult.js +53 -0
  442. package/dist/esm/models/NotificationsTimelineData.d.ts +31 -0
  443. package/dist/esm/models/NotificationsTimelineData.js +44 -0
  444. package/dist/esm/models/NotificationsTimelineResponse.d.ts +36 -0
  445. package/dist/esm/models/NotificationsTimelineResponse.js +47 -0
  446. package/dist/esm/models/NotificationsUserResults.d.ts +31 -0
  447. package/dist/esm/models/NotificationsUserResults.js +44 -0
  448. package/dist/esm/models/NotificationsViewerV2.d.ts +31 -0
  449. package/dist/esm/models/NotificationsViewerV2.js +44 -0
  450. package/dist/esm/models/OneFactorLoginEligibility.d.ts +30 -0
  451. package/dist/esm/models/OneFactorLoginEligibility.js +43 -0
  452. package/dist/esm/models/OtherObjectAll.d.ts +31 -0
  453. package/dist/esm/models/OtherObjectAll.js +42 -0
  454. package/dist/esm/models/PostCreateBookmarkRequest.d.ts +35 -0
  455. package/dist/esm/models/PostCreateBookmarkRequest.js +48 -0
  456. package/dist/esm/models/PostCreateBookmarkRequestVariables.d.ts +30 -0
  457. package/dist/esm/models/PostCreateBookmarkRequestVariables.js +43 -0
  458. package/dist/esm/models/PostCreateDraftTweetRequest.d.ts +35 -0
  459. package/dist/esm/models/PostCreateDraftTweetRequest.js +48 -0
  460. package/dist/esm/models/PostCreateDraftTweetRequestVariables.d.ts +31 -0
  461. package/dist/esm/models/PostCreateDraftTweetRequestVariables.js +44 -0
  462. package/dist/esm/models/PostCreateDraftTweetRequestVariablesPostTweetRequest.d.ts +46 -0
  463. package/dist/esm/models/PostCreateDraftTweetRequestVariablesPostTweetRequest.js +59 -0
  464. package/dist/esm/models/PostCreateListRequest.d.ts +40 -0
  465. package/dist/esm/models/PostCreateListRequest.js +53 -0
  466. package/dist/esm/models/PostCreateListRequestFeatures.d.ts +46 -0
  467. package/dist/esm/models/PostCreateListRequestFeatures.js +59 -0
  468. package/dist/esm/models/PostCreateListRequestVariables.d.ts +38 -0
  469. package/dist/esm/models/PostCreateListRequestVariables.js +51 -0
  470. package/dist/esm/models/PostCreateRetweetRequest.d.ts +35 -0
  471. package/dist/esm/models/PostCreateRetweetRequest.js +48 -0
  472. package/dist/esm/models/PostCreateRetweetRequestVariables.d.ts +34 -0
  473. package/dist/esm/models/PostCreateRetweetRequestVariables.js +47 -0
  474. package/dist/esm/models/PostCreateTweetRequest.d.ts +40 -0
  475. package/dist/esm/models/PostCreateTweetRequest.js +53 -0
  476. package/dist/esm/models/PostCreateTweetRequestFeatures.d.ts +174 -0
  477. package/dist/esm/models/PostCreateTweetRequestFeatures.js +187 -0
  478. package/dist/esm/models/PostCreateTweetRequestVariables.d.ts +61 -0
  479. package/dist/esm/models/PostCreateTweetRequestVariables.js +66 -0
  480. package/dist/esm/models/PostCreateTweetRequestVariablesConversationControl.d.ts +30 -0
  481. package/dist/esm/models/PostCreateTweetRequestVariablesConversationControl.js +43 -0
  482. package/dist/esm/models/PostCreateTweetRequestVariablesMedia.d.ts +35 -0
  483. package/dist/esm/models/PostCreateTweetRequestVariablesMedia.js +46 -0
  484. package/dist/esm/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.d.ts +34 -0
  485. package/dist/esm/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.js +47 -0
  486. package/dist/esm/models/PostCreateTweetRequestVariablesReply.d.ts +34 -0
  487. package/dist/esm/models/PostCreateTweetRequestVariablesReply.js +47 -0
  488. package/dist/esm/models/PostCta.d.ts +47 -0
  489. package/dist/esm/models/PostCta.js +60 -0
  490. package/dist/esm/models/PostCtaTitleText.d.ts +35 -0
  491. package/dist/esm/models/PostCtaTitleText.js +48 -0
  492. package/dist/esm/models/PostCtaTitleTextEntity.d.ts +39 -0
  493. package/dist/esm/models/PostCtaTitleTextEntity.js +52 -0
  494. package/dist/esm/models/PostCtaTitleTextEntityRef.d.ts +36 -0
  495. package/dist/esm/models/PostCtaTitleTextEntityRef.js +47 -0
  496. package/dist/esm/models/PostCtaUserResults.d.ts +31 -0
  497. package/dist/esm/models/PostCtaUserResults.js +44 -0
  498. package/dist/esm/models/PostCtaUserResultsAvatar.d.ts +30 -0
  499. package/dist/esm/models/PostCtaUserResultsAvatar.js +43 -0
  500. package/dist/esm/models/PostCtaUserResultsResult.d.ts +36 -0
  501. package/dist/esm/models/PostCtaUserResultsResult.js +49 -0
  502. package/dist/esm/models/PostDeleteBookmarkRequest.d.ts +35 -0
  503. package/dist/esm/models/PostDeleteBookmarkRequest.js +48 -0
  504. package/dist/esm/models/PostDeleteDraftTweetsRequest.d.ts +35 -0
  505. package/dist/esm/models/PostDeleteDraftTweetsRequest.js +48 -0
  506. package/dist/esm/models/PostDeleteDraftTweetsRequestVariables.d.ts +30 -0
  507. package/dist/esm/models/PostDeleteDraftTweetsRequestVariables.js +43 -0
  508. package/dist/esm/models/PostDeleteListRequest.d.ts +35 -0
  509. package/dist/esm/models/PostDeleteListRequest.js +48 -0
  510. package/dist/esm/models/PostDeleteListRequestVariables.d.ts +30 -0
  511. package/dist/esm/models/PostDeleteListRequestVariables.js +43 -0
  512. package/dist/esm/models/PostDeleteRetweetRequest.d.ts +35 -0
  513. package/dist/esm/models/PostDeleteRetweetRequest.js +48 -0
  514. package/dist/esm/models/PostDeleteRetweetRequestVariables.d.ts +34 -0
  515. package/dist/esm/models/PostDeleteRetweetRequestVariables.js +47 -0
  516. package/dist/esm/models/PostDeleteTweetRequest.d.ts +35 -0
  517. package/dist/esm/models/PostDeleteTweetRequest.js +48 -0
  518. package/dist/esm/models/PostFavoriteTweetRequest.d.ts +35 -0
  519. package/dist/esm/models/PostFavoriteTweetRequest.js +48 -0
  520. package/dist/esm/models/PostListAddMemberRequest.d.ts +40 -0
  521. package/dist/esm/models/PostListAddMemberRequest.js +53 -0
  522. package/dist/esm/models/PostListAddMemberRequestVariables.d.ts +34 -0
  523. package/dist/esm/models/PostListAddMemberRequestVariables.js +47 -0
  524. package/dist/esm/models/PostListRemoveMemberRequest.d.ts +40 -0
  525. package/dist/esm/models/PostListRemoveMemberRequest.js +53 -0
  526. package/dist/esm/models/PostUnfavoriteTweetRequest.d.ts +35 -0
  527. package/dist/esm/models/PostUnfavoriteTweetRequest.js +48 -0
  528. package/dist/esm/models/PrimaryCommunityTopic.d.ts +34 -0
  529. package/dist/esm/models/PrimaryCommunityTopic.js +47 -0
  530. package/dist/esm/models/ProfileBio.d.ts +39 -0
  531. package/dist/esm/models/ProfileBio.js +48 -0
  532. package/dist/esm/models/ProfileBioEntities.d.ts +35 -0
  533. package/dist/esm/models/ProfileBioEntities.js +46 -0
  534. package/dist/esm/models/ProfileBioEntitiesUrls.d.ts +31 -0
  535. package/dist/esm/models/ProfileBioEntitiesUrls.js +42 -0
  536. package/dist/esm/models/ProfileResponse.d.ts +36 -0
  537. package/dist/esm/models/ProfileResponse.js +47 -0
  538. package/dist/esm/models/ProfileResponseData.d.ts +31 -0
  539. package/dist/esm/models/ProfileResponseData.js +42 -0
  540. package/dist/esm/models/QuotedRefResult.d.ts +31 -0
  541. package/dist/esm/models/QuotedRefResult.js +42 -0
  542. package/dist/esm/models/QuotedStatusPermalink.d.ts +38 -0
  543. package/dist/esm/models/QuotedStatusPermalink.js +51 -0
  544. package/dist/esm/models/RankedCommunityResult.d.ts +36 -0
  545. package/dist/esm/models/RankedCommunityResult.js +49 -0
  546. package/dist/esm/models/RankedCommunityResults.d.ts +31 -0
  547. package/dist/esm/models/RankedCommunityResults.js +44 -0
  548. package/dist/esm/models/RankedCommunityTweetData.d.ts +31 -0
  549. package/dist/esm/models/RankedCommunityTweetData.js +44 -0
  550. package/dist/esm/models/Retweet.d.ts +35 -0
  551. package/dist/esm/models/Retweet.js +46 -0
  552. package/dist/esm/models/RetweetLegacy.d.ts +30 -0
  553. package/dist/esm/models/RetweetLegacy.js +43 -0
  554. package/dist/esm/models/RichMessage.d.ts +34 -0
  555. package/dist/esm/models/RichMessage.js +43 -0
  556. package/dist/esm/models/ScheduledTweetsViewer.d.ts +32 -0
  557. package/dist/esm/models/ScheduledTweetsViewer.js +43 -0
  558. package/dist/esm/models/SearchByRawQuery.d.ts +31 -0
  559. package/dist/esm/models/SearchByRawQuery.js +44 -0
  560. package/dist/esm/models/SearchTimeline.d.ts +31 -0
  561. package/dist/esm/models/SearchTimeline.js +44 -0
  562. package/dist/esm/models/SearchTimelineData.d.ts +31 -0
  563. package/dist/esm/models/SearchTimelineData.js +44 -0
  564. package/dist/esm/models/SearchTimelineResponse.d.ts +36 -0
  565. package/dist/esm/models/SearchTimelineResponse.js +47 -0
  566. package/dist/esm/models/SelfThread.d.ts +30 -0
  567. package/dist/esm/models/SelfThread.js +43 -0
  568. package/dist/esm/models/SensitiveMediaWarning.d.ts +38 -0
  569. package/dist/esm/models/SensitiveMediaWarning.js +45 -0
  570. package/dist/esm/models/Session.d.ts +92 -0
  571. package/dist/esm/models/Session.js +104 -0
  572. package/dist/esm/models/Smarttag.d.ts +39 -0
  573. package/dist/esm/models/Smarttag.js +52 -0
  574. package/dist/esm/models/SmarttagTag.d.ts +32 -0
  575. package/dist/esm/models/SmarttagTag.js +43 -0
  576. package/dist/esm/models/SocialContextLandingUrl.d.ts +48 -0
  577. package/dist/esm/models/SocialContextLandingUrl.js +54 -0
  578. package/dist/esm/models/SocialContextUnion.d.ts +27 -0
  579. package/dist/esm/models/SocialContextUnion.js +47 -0
  580. package/dist/esm/models/SocialContextUnionType.d.ts +25 -0
  581. package/dist/esm/models/SocialContextUnionType.js +43 -0
  582. package/dist/esm/models/SuperFollowUserProfile.d.ts +30 -0
  583. package/dist/esm/models/SuperFollowUserProfile.js +43 -0
  584. package/dist/esm/models/SuperFollowsReplyUserResult.d.ts +31 -0
  585. package/dist/esm/models/SuperFollowsReplyUserResult.js +44 -0
  586. package/dist/esm/models/SuperFollowsReplyUserResultCore.d.ts +30 -0
  587. package/dist/esm/models/SuperFollowsReplyUserResultCore.js +43 -0
  588. package/dist/esm/models/SuperFollowsReplyUserResultData.d.ts +36 -0
  589. package/dist/esm/models/SuperFollowsReplyUserResultData.js +47 -0
  590. package/dist/esm/models/SuperFollowsReplyUserResultLegacy.d.ts +30 -0
  591. package/dist/esm/models/SuperFollowsReplyUserResultLegacy.js +43 -0
  592. package/dist/esm/models/Text.d.ts +35 -0
  593. package/dist/esm/models/Text.js +48 -0
  594. package/dist/esm/models/TextEntity.d.ts +39 -0
  595. package/dist/esm/models/TextEntity.js +52 -0
  596. package/dist/esm/models/TextEntityRef.d.ts +52 -0
  597. package/dist/esm/models/TextEntityRef.js +67 -0
  598. package/dist/esm/models/TextHighlight.d.ts +34 -0
  599. package/dist/esm/models/TextHighlight.js +47 -0
  600. package/dist/esm/models/ThumbnailImage.d.ts +38 -0
  601. package/dist/esm/models/ThumbnailImage.js +45 -0
  602. package/dist/esm/models/Timeline.d.ts +43 -0
  603. package/dist/esm/models/Timeline.js +48 -0
  604. package/dist/esm/models/TimelineAddEntries.d.ts +36 -0
  605. package/dist/esm/models/TimelineAddEntries.js +49 -0
  606. package/dist/esm/models/TimelineAddEntry.d.ts +39 -0
  607. package/dist/esm/models/TimelineAddEntry.js +52 -0
  608. package/dist/esm/models/TimelineAddToModule.d.ts +44 -0
  609. package/dist/esm/models/TimelineAddToModule.js +55 -0
  610. package/dist/esm/models/TimelineClearCache.d.ts +31 -0
  611. package/dist/esm/models/TimelineClearCache.js +44 -0
  612. package/dist/esm/models/TimelineClearEntriesUnreadState.d.ts +31 -0
  613. package/dist/esm/models/TimelineClearEntriesUnreadState.js +44 -0
  614. package/dist/esm/models/TimelineCommunity.d.ts +32 -0
  615. package/dist/esm/models/TimelineCommunity.js +38 -0
  616. package/dist/esm/models/TimelineCoverBehavior.d.ts +43 -0
  617. package/dist/esm/models/TimelineCoverBehavior.js +53 -0
  618. package/dist/esm/models/TimelineCoverBehaviorUrl.d.ts +41 -0
  619. package/dist/esm/models/TimelineCoverBehaviorUrl.js +55 -0
  620. package/dist/esm/models/TimelineFrame.d.ts +44 -0
  621. package/dist/esm/models/TimelineFrame.js +57 -0
  622. package/dist/esm/models/TimelineGeneralContext.d.ts +63 -0
  623. package/dist/esm/models/TimelineGeneralContext.js +65 -0
  624. package/dist/esm/models/TimelineHalfCover.d.ts +71 -0
  625. package/dist/esm/models/TimelineHalfCover.js +86 -0
  626. package/dist/esm/models/TimelineLabel.d.ts +45 -0
  627. package/dist/esm/models/TimelineLabel.js +58 -0
  628. package/dist/esm/models/TimelineMarkEntriesUnreadGreaterThanSortIndex.d.ts +35 -0
  629. package/dist/esm/models/TimelineMarkEntriesUnreadGreaterThanSortIndex.js +46 -0
  630. package/dist/esm/models/TimelineMessagePrompt.d.ts +32 -0
  631. package/dist/esm/models/TimelineMessagePrompt.js +38 -0
  632. package/dist/esm/models/TimelineNotification.d.ts +63 -0
  633. package/dist/esm/models/TimelineNotification.js +76 -0
  634. package/dist/esm/models/TimelinePinEntry.d.ts +36 -0
  635. package/dist/esm/models/TimelinePinEntry.js +49 -0
  636. package/dist/esm/models/TimelinePrompt.d.ts +32 -0
  637. package/dist/esm/models/TimelinePrompt.js +38 -0
  638. package/dist/esm/models/TimelineReplaceEntry.d.ts +40 -0
  639. package/dist/esm/models/TimelineReplaceEntry.js +53 -0
  640. package/dist/esm/models/TimelineResponse.d.ts +36 -0
  641. package/dist/esm/models/TimelineResponse.js +47 -0
  642. package/dist/esm/models/TimelineResult.d.ts +35 -0
  643. package/dist/esm/models/TimelineResult.js +44 -0
  644. package/dist/esm/models/TimelineShowAlert.d.ts +88 -0
  645. package/dist/esm/models/TimelineShowAlert.js +81 -0
  646. package/dist/esm/models/TimelineShowAlertRichText.d.ts +36 -0
  647. package/dist/esm/models/TimelineShowAlertRichText.js +43 -0
  648. package/dist/esm/models/TimelineShowCover.d.ts +41 -0
  649. package/dist/esm/models/TimelineShowCover.js +54 -0
  650. package/dist/esm/models/TimelineTerminateTimeline.d.ts +44 -0
  651. package/dist/esm/models/TimelineTerminateTimeline.js +56 -0
  652. package/dist/esm/models/TimelineTimelineCursor.d.ts +58 -0
  653. package/dist/esm/models/TimelineTimelineCursor.js +63 -0
  654. package/dist/esm/models/TimelineTimelineItem.d.ts +52 -0
  655. package/dist/esm/models/TimelineTimelineItem.js +59 -0
  656. package/dist/esm/models/TimelineTimelineModule.d.ts +74 -0
  657. package/dist/esm/models/TimelineTimelineModule.js +69 -0
  658. package/dist/esm/models/TimelineTombstone.d.ts +52 -0
  659. package/dist/esm/models/TimelineTombstone.js +56 -0
  660. package/dist/esm/models/TimelineTopicContext.d.ts +47 -0
  661. package/dist/esm/models/TimelineTopicContext.js +53 -0
  662. package/dist/esm/models/TimelineTrend.d.ts +73 -0
  663. package/dist/esm/models/TimelineTrend.js +74 -0
  664. package/dist/esm/models/TimelineTweet.d.ts +75 -0
  665. package/dist/esm/models/TimelineTweet.js +77 -0
  666. package/dist/esm/models/TimelineTwitterList.d.ts +45 -0
  667. package/dist/esm/models/TimelineTwitterList.js +56 -0
  668. package/dist/esm/models/TimelineUser.d.ts +60 -0
  669. package/dist/esm/models/TimelineUser.js +70 -0
  670. package/dist/esm/models/Timestamp.d.ts +38 -0
  671. package/dist/esm/models/Timestamp.js +51 -0
  672. package/dist/esm/models/TombstoneEntity.d.ts +39 -0
  673. package/dist/esm/models/TombstoneEntity.js +46 -0
  674. package/dist/esm/models/TombstoneInfo.d.ts +35 -0
  675. package/dist/esm/models/TombstoneInfo.js +44 -0
  676. package/dist/esm/models/TombstoneRef.d.ts +52 -0
  677. package/dist/esm/models/TombstoneRef.js +57 -0
  678. package/dist/esm/models/TombstoneRichText.d.ts +39 -0
  679. package/dist/esm/models/TombstoneRichText.js +46 -0
  680. package/dist/esm/models/TopicContext.d.ts +54 -0
  681. package/dist/esm/models/TopicContext.js +53 -0
  682. package/dist/esm/models/Tracing.d.ts +30 -0
  683. package/dist/esm/models/Tracing.js +43 -0
  684. package/dist/esm/models/TrendImage.d.ts +30 -0
  685. package/dist/esm/models/TrendImage.js +41 -0
  686. package/dist/esm/models/TrendMetadata.d.ts +35 -0
  687. package/dist/esm/models/TrendMetadata.js +44 -0
  688. package/dist/esm/models/TrendResults.d.ts +30 -0
  689. package/dist/esm/models/TrendResults.js +43 -0
  690. package/dist/esm/models/Tweet.d.ts +197 -0
  691. package/dist/esm/models/Tweet.js +138 -0
  692. package/dist/esm/models/TweetCard.d.ts +35 -0
  693. package/dist/esm/models/TweetCard.js +44 -0
  694. package/dist/esm/models/TweetCardLegacy.d.ts +49 -0
  695. package/dist/esm/models/TweetCardLegacy.js +58 -0
  696. package/dist/esm/models/TweetCardLegacyBindingValue.d.ts +35 -0
  697. package/dist/esm/models/TweetCardLegacyBindingValue.js +48 -0
  698. package/dist/esm/models/TweetCardLegacyBindingValueData.d.ts +58 -0
  699. package/dist/esm/models/TweetCardLegacyBindingValueData.js +57 -0
  700. package/dist/esm/models/TweetCardLegacyBindingValueDataImage.d.ts +42 -0
  701. package/dist/esm/models/TweetCardLegacyBindingValueDataImage.js +53 -0
  702. package/dist/esm/models/TweetCardPlatform.d.ts +36 -0
  703. package/dist/esm/models/TweetCardPlatform.js +49 -0
  704. package/dist/esm/models/TweetCardPlatformAudience.d.ts +37 -0
  705. package/dist/esm/models/TweetCardPlatformAudience.js +51 -0
  706. package/dist/esm/models/TweetCardPlatformData.d.ts +31 -0
  707. package/dist/esm/models/TweetCardPlatformData.js +44 -0
  708. package/dist/esm/models/TweetCardPlatformDevice.d.ts +34 -0
  709. package/dist/esm/models/TweetCardPlatformDevice.js +47 -0
  710. package/dist/esm/models/TweetDetailResponse.d.ts +36 -0
  711. package/dist/esm/models/TweetDetailResponse.js +47 -0
  712. package/dist/esm/models/TweetDetailResponseData.d.ts +31 -0
  713. package/dist/esm/models/TweetDetailResponseData.js +42 -0
  714. package/dist/esm/models/TweetEditControl.d.ts +51 -0
  715. package/dist/esm/models/TweetEditControl.js +52 -0
  716. package/dist/esm/models/TweetEditControlInitial.d.ts +42 -0
  717. package/dist/esm/models/TweetEditControlInitial.js +55 -0
  718. package/dist/esm/models/TweetEditPrespective.d.ts +34 -0
  719. package/dist/esm/models/TweetEditPrespective.js +43 -0
  720. package/dist/esm/models/TweetFavoritersResponse.d.ts +36 -0
  721. package/dist/esm/models/TweetFavoritersResponse.js +47 -0
  722. package/dist/esm/models/TweetFavoritersResponseData.d.ts +31 -0
  723. package/dist/esm/models/TweetFavoritersResponseData.js +42 -0
  724. package/dist/esm/models/TweetInterstitial.d.ts +53 -0
  725. package/dist/esm/models/TweetInterstitial.js +65 -0
  726. package/dist/esm/models/TweetInterstitialRevealText.d.ts +39 -0
  727. package/dist/esm/models/TweetInterstitialRevealText.js +52 -0
  728. package/dist/esm/models/TweetInterstitialText.d.ts +39 -0
  729. package/dist/esm/models/TweetInterstitialText.js +52 -0
  730. package/dist/esm/models/TweetInterstitialTextEntity.d.ts +39 -0
  731. package/dist/esm/models/TweetInterstitialTextEntity.js +52 -0
  732. package/dist/esm/models/TweetInterstitialTextEntityRef.d.ts +52 -0
  733. package/dist/esm/models/TweetInterstitialTextEntityRef.js +67 -0
  734. package/dist/esm/models/TweetLegacy.d.ts +173 -0
  735. package/dist/esm/models/TweetLegacy.js +151 -0
  736. package/dist/esm/models/TweetLegacyScopes.d.ts +30 -0
  737. package/dist/esm/models/TweetLegacyScopes.js +43 -0
  738. package/dist/esm/models/TweetLimitedActionResults.d.ts +31 -0
  739. package/dist/esm/models/TweetLimitedActionResults.js +44 -0
  740. package/dist/esm/models/TweetPostCta.d.ts +48 -0
  741. package/dist/esm/models/TweetPostCta.js +58 -0
  742. package/dist/esm/models/TweetPreviewDisplay.d.ts +46 -0
  743. package/dist/esm/models/TweetPreviewDisplay.js +59 -0
  744. package/dist/esm/models/TweetPreviewDisplayCta.d.ts +35 -0
  745. package/dist/esm/models/TweetPreviewDisplayCta.js +48 -0
  746. package/dist/esm/models/TweetPreviewDisplayCtaUrl.d.ts +43 -0
  747. package/dist/esm/models/TweetPreviewDisplayCtaUrl.js +55 -0
  748. package/dist/esm/models/TweetPreviewDisplayTweet.d.ts +77 -0
  749. package/dist/esm/models/TweetPreviewDisplayTweet.js +88 -0
  750. package/dist/esm/models/TweetPreviewDisplayTweetViewCount.d.ts +30 -0
  751. package/dist/esm/models/TweetPreviewDisplayTweetViewCount.js +43 -0
  752. package/dist/esm/models/TweetPreviousCounts.d.ts +46 -0
  753. package/dist/esm/models/TweetPreviousCounts.js +59 -0
  754. package/dist/esm/models/TweetResultByRestIdData.d.ts +31 -0
  755. package/dist/esm/models/TweetResultByRestIdData.js +42 -0
  756. package/dist/esm/models/TweetResultByRestIdResponse.d.ts +36 -0
  757. package/dist/esm/models/TweetResultByRestIdResponse.js +47 -0
  758. package/dist/esm/models/TweetRetweetersResponse.d.ts +36 -0
  759. package/dist/esm/models/TweetRetweetersResponse.js +47 -0
  760. package/dist/esm/models/TweetRetweetersResponseData.d.ts +31 -0
  761. package/dist/esm/models/TweetRetweetersResponseData.js +42 -0
  762. package/dist/esm/models/TweetTombstone.d.ts +32 -0
  763. package/dist/esm/models/TweetTombstone.js +38 -0
  764. package/dist/esm/models/TweetUnavailable.d.ts +35 -0
  765. package/dist/esm/models/TweetUnavailable.js +44 -0
  766. package/dist/esm/models/TweetUnion.d.ts +36 -0
  767. package/dist/esm/models/TweetUnion.js +62 -0
  768. package/dist/esm/models/TweetView.d.ts +42 -0
  769. package/dist/esm/models/TweetView.js +52 -0
  770. package/dist/esm/models/TweetWithVisibilityResults.d.ts +52 -0
  771. package/dist/esm/models/TweetWithVisibilityResults.js +57 -0
  772. package/dist/esm/models/TwitterList.d.ts +110 -0
  773. package/dist/esm/models/TwitterList.js +116 -0
  774. package/dist/esm/models/TypeName.d.ts +59 -0
  775. package/dist/esm/models/TypeName.js +77 -0
  776. package/dist/esm/models/UnfavoriteTweet.d.ts +30 -0
  777. package/dist/esm/models/UnfavoriteTweet.js +41 -0
  778. package/dist/esm/models/UnfavoriteTweetResponse.d.ts +36 -0
  779. package/dist/esm/models/UnfavoriteTweetResponse.js +47 -0
  780. package/dist/esm/models/UnifiedCard.d.ts +37 -0
  781. package/dist/esm/models/UnifiedCard.js +51 -0
  782. package/dist/esm/models/Url.d.ts +42 -0
  783. package/dist/esm/models/Url.js +53 -0
  784. package/dist/esm/models/UrtEndpointOptions.d.ts +35 -0
  785. package/dist/esm/models/UrtEndpointOptions.js +46 -0
  786. package/dist/esm/models/UrtEndpointRequestParams.d.ts +34 -0
  787. package/dist/esm/models/UrtEndpointRequestParams.js +47 -0
  788. package/dist/esm/models/User.d.ts +280 -0
  789. package/dist/esm/models/User.js +195 -0
  790. package/dist/esm/models/UserActionCounts.d.ts +30 -0
  791. package/dist/esm/models/UserActionCounts.js +43 -0
  792. package/dist/esm/models/UserAvatar.d.ts +30 -0
  793. package/dist/esm/models/UserAvatar.js +43 -0
  794. package/dist/esm/models/UserBanner.d.ts +30 -0
  795. package/dist/esm/models/UserBanner.js +43 -0
  796. package/dist/esm/models/UserCore.d.ts +38 -0
  797. package/dist/esm/models/UserCore.js +51 -0
  798. package/dist/esm/models/UserDmPermissions.d.ts +30 -0
  799. package/dist/esm/models/UserDmPermissions.js +43 -0
  800. package/dist/esm/models/UserFeatures.d.ts +30 -0
  801. package/dist/esm/models/UserFeatures.js +43 -0
  802. package/dist/esm/models/UserHighlightsInfo.d.ts +34 -0
  803. package/dist/esm/models/UserHighlightsInfo.js +47 -0
  804. package/dist/esm/models/UserHighlightsTweetsData.d.ts +31 -0
  805. package/dist/esm/models/UserHighlightsTweetsData.js +42 -0
  806. package/dist/esm/models/UserHighlightsTweetsResponse.d.ts +36 -0
  807. package/dist/esm/models/UserHighlightsTweetsResponse.js +47 -0
  808. package/dist/esm/models/UserHighlightsTweetsResult.d.ts +36 -0
  809. package/dist/esm/models/UserHighlightsTweetsResult.js +49 -0
  810. package/dist/esm/models/UserHighlightsTweetsTimeline.d.ts +31 -0
  811. package/dist/esm/models/UserHighlightsTweetsTimeline.js +44 -0
  812. package/dist/esm/models/UserHighlightsTweetsUser.d.ts +31 -0
  813. package/dist/esm/models/UserHighlightsTweetsUser.js +44 -0
  814. package/dist/esm/models/UserLegacy.d.ts +216 -0
  815. package/dist/esm/models/UserLegacy.js +178 -0
  816. package/dist/esm/models/UserLegacyExtendedProfile.d.ts +31 -0
  817. package/dist/esm/models/UserLegacyExtendedProfile.js +42 -0
  818. package/dist/esm/models/UserLegacyExtendedProfileBirthdate.d.ts +68 -0
  819. package/dist/esm/models/UserLegacyExtendedProfileBirthdate.js +77 -0
  820. package/dist/esm/models/UserLocation.d.ts +30 -0
  821. package/dist/esm/models/UserLocation.js +43 -0
  822. package/dist/esm/models/UserMediaPermissions.d.ts +30 -0
  823. package/dist/esm/models/UserMediaPermissions.js +43 -0
  824. package/dist/esm/models/UserNotificationsSettings.d.ts +30 -0
  825. package/dist/esm/models/UserNotificationsSettings.js +43 -0
  826. package/dist/esm/models/UserPinnedItems.d.ts +30 -0
  827. package/dist/esm/models/UserPinnedItems.js +41 -0
  828. package/dist/esm/models/UserPrivacy.d.ts +30 -0
  829. package/dist/esm/models/UserPrivacy.js +43 -0
  830. package/dist/esm/models/UserProfessional.d.ts +47 -0
  831. package/dist/esm/models/UserProfessional.js +57 -0
  832. package/dist/esm/models/UserProfessionalCategory.d.ts +38 -0
  833. package/dist/esm/models/UserProfessionalCategory.js +51 -0
  834. package/dist/esm/models/UserProfile.d.ts +31 -0
  835. package/dist/esm/models/UserProfile.js +44 -0
  836. package/dist/esm/models/UserProfileMetadata.d.ts +30 -0
  837. package/dist/esm/models/UserProfileMetadata.js +43 -0
  838. package/dist/esm/models/UserProfileTranslation.d.ts +30 -0
  839. package/dist/esm/models/UserProfileTranslation.js +43 -0
  840. package/dist/esm/models/UserRelationshipCounts.d.ts +34 -0
  841. package/dist/esm/models/UserRelationshipCounts.js +47 -0
  842. package/dist/esm/models/UserRelationshipPerspectives.d.ts +50 -0
  843. package/dist/esm/models/UserRelationshipPerspectives.js +51 -0
  844. package/dist/esm/models/UserResponse.d.ts +36 -0
  845. package/dist/esm/models/UserResponse.js +47 -0
  846. package/dist/esm/models/UserResponseData.d.ts +31 -0
  847. package/dist/esm/models/UserResponseData.js +42 -0
  848. package/dist/esm/models/UserResultByScreenName.d.ts +35 -0
  849. package/dist/esm/models/UserResultByScreenName.js +48 -0
  850. package/dist/esm/models/UserResultByScreenNameCore.d.ts +34 -0
  851. package/dist/esm/models/UserResultByScreenNameCore.js +47 -0
  852. package/dist/esm/models/UserResultByScreenNameLegacy.d.ts +54 -0
  853. package/dist/esm/models/UserResultByScreenNameLegacy.js +53 -0
  854. package/dist/esm/models/UserResultByScreenNameResult.d.ts +69 -0
  855. package/dist/esm/models/UserResultByScreenNameResult.js +76 -0
  856. package/dist/esm/models/UserResultCore.d.ts +31 -0
  857. package/dist/esm/models/UserResultCore.js +44 -0
  858. package/dist/esm/models/UserResultPrivacy.d.ts +30 -0
  859. package/dist/esm/models/UserResultPrivacy.js +43 -0
  860. package/dist/esm/models/UserResultRelationshipPerspectives.d.ts +42 -0
  861. package/dist/esm/models/UserResultRelationshipPerspectives.js +47 -0
  862. package/dist/esm/models/UserResults.d.ts +31 -0
  863. package/dist/esm/models/UserResults.js +42 -0
  864. package/dist/esm/models/UserTipJarSettings.d.ts +62 -0
  865. package/dist/esm/models/UserTipJarSettings.js +57 -0
  866. package/dist/esm/models/UserTweetCounts.d.ts +34 -0
  867. package/dist/esm/models/UserTweetCounts.js +47 -0
  868. package/dist/esm/models/UserTweetsData.d.ts +31 -0
  869. package/dist/esm/models/UserTweetsData.js +42 -0
  870. package/dist/esm/models/UserTweetsResponse.d.ts +36 -0
  871. package/dist/esm/models/UserTweetsResponse.js +47 -0
  872. package/dist/esm/models/UserTweetsResultV1.d.ts +36 -0
  873. package/dist/esm/models/UserTweetsResultV1.js +49 -0
  874. package/dist/esm/models/UserTweetsResultV2.d.ts +36 -0
  875. package/dist/esm/models/UserTweetsResultV2.js +49 -0
  876. package/dist/esm/models/UserTweetsUser.d.ts +31 -0
  877. package/dist/esm/models/UserTweetsUser.js +44 -0
  878. package/dist/esm/models/UserUnavailable.d.ts +39 -0
  879. package/dist/esm/models/UserUnavailable.js +50 -0
  880. package/dist/esm/models/UserUnion.d.ts +27 -0
  881. package/dist/esm/models/UserUnion.js +47 -0
  882. package/dist/esm/models/UserValue.d.ts +34 -0
  883. package/dist/esm/models/UserValue.js +45 -0
  884. package/dist/esm/models/UserVerification.d.ts +42 -0
  885. package/dist/esm/models/UserVerification.js +52 -0
  886. package/dist/esm/models/UserVerificationInfo.d.ts +35 -0
  887. package/dist/esm/models/UserVerificationInfo.js +46 -0
  888. package/dist/esm/models/UserVerificationInfoReason.d.ts +39 -0
  889. package/dist/esm/models/UserVerificationInfoReason.js +50 -0
  890. package/dist/esm/models/UserVerificationInfoReasonDescription.d.ts +35 -0
  891. package/dist/esm/models/UserVerificationInfoReasonDescription.js +48 -0
  892. package/dist/esm/models/UserVerificationInfoReasonDescriptionEntities.d.ts +39 -0
  893. package/dist/esm/models/UserVerificationInfoReasonDescriptionEntities.js +52 -0
  894. package/dist/esm/models/UserVerificationInfoReasonDescriptionEntitiesRef.d.ts +41 -0
  895. package/dist/esm/models/UserVerificationInfoReasonDescriptionEntitiesRef.js +55 -0
  896. package/dist/esm/models/UserWebsite.d.ts +30 -0
  897. package/dist/esm/models/UserWebsite.js +43 -0
  898. package/dist/esm/models/UsersResponse.d.ts +36 -0
  899. package/dist/esm/models/UsersResponse.js +47 -0
  900. package/dist/esm/models/UsersResponseData.d.ts +31 -0
  901. package/dist/esm/models/UsersResponseData.js +42 -0
  902. package/dist/esm/models/ViewerBadgeCountsResponse.d.ts +36 -0
  903. package/dist/esm/models/ViewerBadgeCountsResponse.js +47 -0
  904. package/dist/esm/models/ViewerBadgeCountsResponseData.d.ts +31 -0
  905. package/dist/esm/models/ViewerBadgeCountsResponseData.js +44 -0
  906. package/dist/esm/models/ViewerBadgeCountsResult.d.ts +36 -0
  907. package/dist/esm/models/ViewerBadgeCountsResult.js +49 -0
  908. package/dist/esm/models/ViewerBadgeCountsUserResults.d.ts +31 -0
  909. package/dist/esm/models/ViewerBadgeCountsUserResults.js +44 -0
  910. package/dist/esm/models/ViewerBadgeCountsViewer.d.ts +31 -0
  911. package/dist/esm/models/ViewerBadgeCountsViewer.js +44 -0
  912. package/dist/esm/models/index.d.ts +431 -0
  913. package/dist/esm/models/index.js +433 -0
  914. package/dist/esm/runtime.d.ts +217 -0
  915. package/dist/esm/runtime.js +460 -0
  916. package/dist/index.d.ts +0 -1
  917. package/dist/index.js +0 -1
  918. package/dist/models/AboutCommunityResult.d.ts +0 -5
  919. package/dist/models/AboutCommunityResult.js +5 -7
  920. package/dist/models/AboutCommunityResults.d.ts +0 -3
  921. package/dist/models/AboutCommunityResults.js +2 -4
  922. package/dist/models/AboutCommunityTweetData.d.ts +0 -3
  923. package/dist/models/AboutCommunityTweetData.js +2 -4
  924. package/dist/models/AdditionalMediaInfo.d.ts +0 -13
  925. package/dist/models/AdditionalMediaInfo.js +3 -5
  926. package/dist/models/AdditionalMediaInfoCallToActions.d.ts +0 -5
  927. package/dist/models/AdditionalMediaInfoCallToActions.js +2 -4
  928. package/dist/models/AdditionalMediaInfoCallToActionsUrl.d.ts +0 -3
  929. package/dist/models/AdditionalMediaInfoCallToActionsUrl.js +1 -3
  930. package/dist/models/AllowDownloadStatus.d.ts +0 -3
  931. package/dist/models/AllowDownloadStatus.js +1 -3
  932. package/dist/models/AnalysisResults.d.ts +0 -3
  933. package/dist/models/AnalysisResults.js +2 -4
  934. package/dist/models/Article.d.ts +0 -3
  935. package/dist/models/Article.js +3 -5
  936. package/dist/models/ArticleCoverMedia.d.ts +0 -9
  937. package/dist/models/ArticleCoverMedia.js +5 -7
  938. package/dist/models/ArticleCoverMediaColorInfo.d.ts +0 -3
  939. package/dist/models/ArticleCoverMediaColorInfo.js +2 -4
  940. package/dist/models/ArticleCoverMediaColorInfoPalette.d.ts +0 -5
  941. package/dist/models/ArticleCoverMediaColorInfoPalette.js +2 -4
  942. package/dist/models/ArticleCoverMediaColorInfoPaletteRGB.d.ts +0 -7
  943. package/dist/models/ArticleCoverMediaColorInfoPaletteRGB.js +1 -3
  944. package/dist/models/ArticleCoverMediaInfo.d.ts +0 -11
  945. package/dist/models/ArticleCoverMediaInfo.js +7 -9
  946. package/dist/models/ArticleLifecycleState.d.ts +0 -3
  947. package/dist/models/ArticleLifecycleState.js +2 -4
  948. package/dist/models/ArticleMetadata.d.ts +0 -3
  949. package/dist/models/ArticleMetadata.js +2 -4
  950. package/dist/models/ArticlePreview.d.ts +0 -9
  951. package/dist/models/ArticlePreview.js +4 -6
  952. package/dist/models/ArticleResult.d.ts +0 -21
  953. package/dist/models/ArticleResult.js +6 -8
  954. package/dist/models/ArticleResults.d.ts +0 -3
  955. package/dist/models/ArticleResults.js +2 -4
  956. package/dist/models/AuthorCommunityRelationship.d.ts +0 -7
  957. package/dist/models/AuthorCommunityRelationship.js +5 -7
  958. package/dist/models/BadgeCounts.d.ts +46 -0
  959. package/dist/models/BadgeCounts.js +66 -0
  960. package/dist/models/BirdwatchEntity.d.ts +0 -7
  961. package/dist/models/BirdwatchEntity.js +2 -4
  962. package/dist/models/BirdwatchEntityRef.d.ts +4 -9
  963. package/dist/models/BirdwatchEntityRef.js +5 -5
  964. package/dist/models/BirdwatchPivot.d.ts +0 -23
  965. package/dist/models/BirdwatchPivot.js +8 -10
  966. package/dist/models/BirdwatchPivotCallToAction.d.ts +0 -7
  967. package/dist/models/BirdwatchPivotCallToAction.js +1 -3
  968. package/dist/models/BirdwatchPivotFooter.d.ts +0 -5
  969. package/dist/models/BirdwatchPivotFooter.js +2 -4
  970. package/dist/models/BirdwatchPivotNote.d.ts +0 -9
  971. package/dist/models/BirdwatchPivotNote.js +3 -5
  972. package/dist/models/BirdwatchPivotSubtitle.d.ts +0 -5
  973. package/dist/models/BirdwatchPivotSubtitle.js +2 -4
  974. package/dist/models/BookmarksResponse.d.ts +0 -5
  975. package/dist/models/BookmarksResponse.js +3 -5
  976. package/dist/models/BookmarksResponseData.d.ts +0 -3
  977. package/dist/models/BookmarksResponseData.js +3 -5
  978. package/dist/models/BookmarksTimeline.d.ts +0 -3
  979. package/dist/models/BookmarksTimeline.js +2 -4
  980. package/dist/models/Callback.d.ts +0 -3
  981. package/dist/models/Callback.js +1 -3
  982. package/dist/models/CashtagAttachment.d.ts +30 -0
  983. package/dist/models/CashtagAttachment.js +50 -0
  984. package/dist/models/ClientEventInfo.d.ts +0 -7
  985. package/dist/models/ClientEventInfo.js +1 -3
  986. package/dist/models/CommunitiesActions.d.ts +0 -3
  987. package/dist/models/CommunitiesActions.js +1 -3
  988. package/dist/models/Community.d.ts +0 -53
  989. package/dist/models/Community.js +13 -15
  990. package/dist/models/CommunityAboutTimelineResponse.d.ts +0 -5
  991. package/dist/models/CommunityAboutTimelineResponse.js +3 -5
  992. package/dist/models/CommunityActions.d.ts +0 -11
  993. package/dist/models/CommunityActions.js +6 -8
  994. package/dist/models/CommunityDeleteActionResult.d.ts +0 -5
  995. package/dist/models/CommunityDeleteActionResult.js +6 -6
  996. package/dist/models/CommunityDiscoveryTimelineResponse.d.ts +36 -0
  997. package/dist/models/CommunityDiscoveryTimelineResponse.js +54 -0
  998. package/dist/models/CommunityDiscoveryTimelineResponseData.d.ts +31 -0
  999. package/dist/models/CommunityDiscoveryTimelineResponseData.js +51 -0
  1000. package/dist/models/CommunityDiscoveryTimelineViewer.d.ts +31 -0
  1001. package/dist/models/CommunityDiscoveryTimelineViewer.js +51 -0
  1002. package/dist/models/CommunityInvitesResult.d.ts +0 -7
  1003. package/dist/models/CommunityInvitesResult.js +6 -6
  1004. package/dist/models/CommunityJoinAction.d.ts +0 -3
  1005. package/dist/models/CommunityJoinAction.js +3 -5
  1006. package/dist/models/CommunityJoinActionResultUnion.d.ts +0 -1
  1007. package/dist/models/CommunityJoinActionResultUnion.js +5 -7
  1008. package/dist/models/CommunityJoinActionUnavailable.d.ts +0 -7
  1009. package/dist/models/CommunityJoinActionUnavailable.js +6 -6
  1010. package/dist/models/CommunityJoinRequestsResult.d.ts +0 -3
  1011. package/dist/models/CommunityJoinRequestsResult.js +3 -5
  1012. package/dist/models/CommunityLeaveActionResult.d.ts +0 -7
  1013. package/dist/models/CommunityLeaveActionResult.js +6 -6
  1014. package/dist/models/CommunityMediaTimelineResponse.d.ts +0 -5
  1015. package/dist/models/CommunityMediaTimelineResponse.js +3 -5
  1016. package/dist/models/CommunityPinActionResult.d.ts +0 -3
  1017. package/dist/models/CommunityPinActionResult.js +3 -5
  1018. package/dist/models/CommunityRelationship.d.ts +0 -9
  1019. package/dist/models/CommunityRelationship.js +4 -6
  1020. package/dist/models/CommunityResult.d.ts +0 -3
  1021. package/dist/models/CommunityResult.js +2 -4
  1022. package/dist/models/CommunityRule.d.ts +0 -7
  1023. package/dist/models/CommunityRule.js +2 -4
  1024. package/dist/models/CommunityTweetsTimelineResponse.d.ts +0 -5
  1025. package/dist/models/CommunityTweetsTimelineResponse.js +3 -5
  1026. package/dist/models/CommunityUnavailable.d.ts +0 -3
  1027. package/dist/models/CommunityUnavailable.js +3 -5
  1028. package/dist/models/CommunityUnion.d.ts +0 -1
  1029. package/dist/models/CommunityUnion.js +5 -7
  1030. package/dist/models/CommunityUnpinActionResult.d.ts +0 -3
  1031. package/dist/models/CommunityUnpinActionResult.js +3 -5
  1032. package/dist/models/CommunityUrls.d.ts +0 -3
  1033. package/dist/models/CommunityUrls.js +2 -4
  1034. package/dist/models/CommunityUrlsPermalink.d.ts +0 -3
  1035. package/dist/models/CommunityUrlsPermalink.js +1 -3
  1036. package/dist/models/ConnectTabTimelineResponse.d.ts +36 -0
  1037. package/dist/models/ConnectTabTimelineResponse.js +54 -0
  1038. package/dist/models/ConnectTabTimelineResponseData.d.ts +31 -0
  1039. package/dist/models/ConnectTabTimelineResponseData.js +51 -0
  1040. package/dist/models/ContentDisclosure.d.ts +0 -5
  1041. package/dist/models/ContentDisclosure.js +3 -5
  1042. package/dist/models/ContentDisclosureAdvertisingDisclosure.d.ts +0 -3
  1043. package/dist/models/ContentDisclosureAdvertisingDisclosure.js +2 -4
  1044. package/dist/models/ContentDisclosureAiGeneratedDisclosure.d.ts +1 -7
  1045. package/dist/models/ContentDisclosureAiGeneratedDisclosure.js +5 -6
  1046. package/dist/models/ContentEntryType.d.ts +0 -1
  1047. package/dist/models/ContentEntryType.js +2 -3
  1048. package/dist/models/ContentItemType.d.ts +3 -1
  1049. package/dist/models/ContentItemType.js +5 -3
  1050. package/dist/models/ContentUnion.d.ts +0 -1
  1051. package/dist/models/ContentUnion.js +7 -9
  1052. package/dist/models/ConversationControl.d.ts +0 -3
  1053. package/dist/models/ConversationControl.js +2 -4
  1054. package/dist/models/CoverCta.d.ts +0 -11
  1055. package/dist/models/CoverCta.js +5 -7
  1056. package/dist/models/CreateBookmarkResponse.d.ts +0 -5
  1057. package/dist/models/CreateBookmarkResponse.js +3 -5
  1058. package/dist/models/CreateBookmarkResponseData.d.ts +0 -3
  1059. package/dist/models/CreateBookmarkResponseData.js +1 -3
  1060. package/dist/models/CreateDraftTweetResponse.d.ts +36 -0
  1061. package/dist/models/CreateDraftTweetResponse.js +54 -0
  1062. package/dist/models/CreateDraftTweetResponseData.d.ts +31 -0
  1063. package/dist/models/CreateDraftTweetResponseData.js +51 -0
  1064. package/dist/models/CreateDraftTweetResponseTweet.d.ts +30 -0
  1065. package/dist/models/CreateDraftTweetResponseTweet.js +50 -0
  1066. package/dist/models/CreateRetweet.d.ts +0 -3
  1067. package/dist/models/CreateRetweet.js +2 -4
  1068. package/dist/models/CreateRetweetResponse.d.ts +0 -5
  1069. package/dist/models/CreateRetweetResponse.js +3 -5
  1070. package/dist/models/CreateRetweetResponseData.d.ts +0 -3
  1071. package/dist/models/CreateRetweetResponseData.js +2 -4
  1072. package/dist/models/CreateRetweetResponseResult.d.ts +0 -3
  1073. package/dist/models/CreateRetweetResponseResult.js +3 -5
  1074. package/dist/models/CreateTweet.d.ts +0 -3
  1075. package/dist/models/CreateTweet.js +2 -4
  1076. package/dist/models/CreateTweetResponse.d.ts +0 -5
  1077. package/dist/models/CreateTweetResponse.js +3 -5
  1078. package/dist/models/CreateTweetResponseData.d.ts +0 -3
  1079. package/dist/models/CreateTweetResponseData.js +2 -4
  1080. package/dist/models/CreateTweetResponseResult.d.ts +0 -3
  1081. package/dist/models/CreateTweetResponseResult.js +3 -5
  1082. package/dist/models/CtaClientEventInfo.d.ts +0 -3
  1083. package/dist/models/CtaClientEventInfo.js +4 -4
  1084. package/dist/models/CursorType.d.ts +0 -1
  1085. package/dist/models/CursorType.js +2 -3
  1086. package/dist/models/DeleteBookmarkResponse.d.ts +0 -5
  1087. package/dist/models/DeleteBookmarkResponse.js +3 -5
  1088. package/dist/models/DeleteBookmarkResponseData.d.ts +0 -3
  1089. package/dist/models/DeleteBookmarkResponseData.js +1 -3
  1090. package/dist/models/DeleteDraftTweetsResponse.d.ts +36 -0
  1091. package/dist/models/DeleteDraftTweetsResponse.js +54 -0
  1092. package/dist/models/DeleteDraftTweetsResponseData.d.ts +30 -0
  1093. package/dist/models/DeleteDraftTweetsResponseData.js +50 -0
  1094. package/dist/models/DeleteListResponse.d.ts +36 -0
  1095. package/dist/models/DeleteListResponse.js +54 -0
  1096. package/dist/models/DeleteListResponseData.d.ts +30 -0
  1097. package/dist/models/DeleteListResponseData.js +50 -0
  1098. package/dist/models/DeleteRetweet.d.ts +0 -3
  1099. package/dist/models/DeleteRetweet.js +2 -4
  1100. package/dist/models/DeleteRetweetResponse.d.ts +0 -5
  1101. package/dist/models/DeleteRetweetResponse.js +3 -5
  1102. package/dist/models/DeleteRetweetResponseData.d.ts +0 -3
  1103. package/dist/models/DeleteRetweetResponseData.js +2 -4
  1104. package/dist/models/DeleteRetweetResponseResult.d.ts +0 -3
  1105. package/dist/models/DeleteRetweetResponseResult.js +2 -4
  1106. package/dist/models/DeleteTweetResponse.d.ts +0 -5
  1107. package/dist/models/DeleteTweetResponse.js +3 -5
  1108. package/dist/models/DeleteTweetResponseData.d.ts +0 -3
  1109. package/dist/models/DeleteTweetResponseData.js +2 -4
  1110. package/dist/models/DeleteTweetResponseResult.d.ts +0 -3
  1111. package/dist/models/DeleteTweetResponseResult.js +2 -4
  1112. package/dist/models/DisplayTreatment.d.ts +0 -5
  1113. package/dist/models/DisplayTreatment.js +1 -3
  1114. package/dist/models/DisplayType.d.ts +0 -1
  1115. package/dist/models/DisplayType.js +2 -3
  1116. package/dist/models/DraftList.d.ts +31 -0
  1117. package/dist/models/DraftList.js +51 -0
  1118. package/dist/models/DraftTweet.d.ts +40 -0
  1119. package/dist/models/DraftTweet.js +60 -0
  1120. package/dist/models/DraftTweetCreateRequest.d.ts +52 -0
  1121. package/dist/models/DraftTweetCreateRequest.js +70 -0
  1122. package/dist/models/DraftTweetUser.d.ts +35 -0
  1123. package/dist/models/DraftTweetUser.js +55 -0
  1124. package/dist/models/DraftTweetUserResults.d.ts +31 -0
  1125. package/dist/models/DraftTweetUserResults.js +51 -0
  1126. package/dist/models/DraftTweetsViewer.d.ts +31 -0
  1127. package/dist/models/DraftTweetsViewer.js +51 -0
  1128. package/dist/models/Entities.d.ts +0 -15
  1129. package/dist/models/Entities.js +5 -7
  1130. package/dist/models/ErrorExtensions.d.ts +1 -14
  1131. package/dist/models/ErrorExtensions.js +3 -7
  1132. package/dist/models/ErrorResponse.d.ts +1 -22
  1133. package/dist/models/ErrorResponse.js +6 -10
  1134. package/dist/models/ErrorResponsePathInner.d.ts +0 -1
  1135. package/dist/models/ErrorResponsePathInner.js +1 -3
  1136. package/dist/models/ExplorePage.d.ts +35 -0
  1137. package/dist/models/ExplorePage.js +55 -0
  1138. package/dist/models/ExplorePageBody.d.ts +40 -0
  1139. package/dist/models/ExplorePageBody.js +60 -0
  1140. package/dist/models/ExplorePageResponse.d.ts +36 -0
  1141. package/dist/models/ExplorePageResponse.js +54 -0
  1142. package/dist/models/ExplorePageResponseData.d.ts +31 -0
  1143. package/dist/models/ExplorePageResponseData.js +51 -0
  1144. package/dist/models/ExploreTimeline.d.ts +48 -0
  1145. package/dist/models/ExploreTimeline.js +68 -0
  1146. package/dist/models/ExploreTimelineScribeConfig.d.ts +34 -0
  1147. package/dist/models/ExploreTimelineScribeConfig.js +54 -0
  1148. package/dist/models/ExtMediaAvailability.d.ts +0 -5
  1149. package/dist/models/ExtMediaAvailability.js +2 -4
  1150. package/dist/models/ExtendedEntities.d.ts +0 -3
  1151. package/dist/models/ExtendedEntities.js +2 -4
  1152. package/dist/models/FavoriteTweet.d.ts +0 -3
  1153. package/dist/models/FavoriteTweet.js +1 -3
  1154. package/dist/models/FavoriteTweetResponse.d.ts +0 -5
  1155. package/dist/models/FavoriteTweetResponse.js +3 -5
  1156. package/dist/models/FeedbackInfo.d.ts +0 -5
  1157. package/dist/models/FeedbackInfo.js +2 -4
  1158. package/dist/models/FetchDraftTweetsResponse.d.ts +36 -0
  1159. package/dist/models/FetchDraftTweetsResponse.js +54 -0
  1160. package/dist/models/FetchDraftTweetsResponseData.d.ts +31 -0
  1161. package/dist/models/FetchDraftTweetsResponseData.js +51 -0
  1162. package/dist/models/FetchScheduledTweetsResponse.d.ts +36 -0
  1163. package/dist/models/FetchScheduledTweetsResponse.js +54 -0
  1164. package/dist/models/FetchScheduledTweetsResponseData.d.ts +31 -0
  1165. package/dist/models/FetchScheduledTweetsResponseData.js +51 -0
  1166. package/dist/models/FollowResponse.d.ts +0 -5
  1167. package/dist/models/FollowResponse.js +3 -5
  1168. package/dist/models/FollowResponseData.d.ts +0 -3
  1169. package/dist/models/FollowResponseData.js +2 -4
  1170. package/dist/models/FollowResponseResult.d.ts +0 -5
  1171. package/dist/models/FollowResponseResult.js +4 -6
  1172. package/dist/models/FollowResponseUser.d.ts +0 -3
  1173. package/dist/models/FollowResponseUser.js +2 -4
  1174. package/dist/models/FollowTimeline.d.ts +0 -3
  1175. package/dist/models/FollowTimeline.js +2 -4
  1176. package/dist/models/GenericTimelineByIdResponse.d.ts +36 -0
  1177. package/dist/models/GenericTimelineByIdResponse.js +54 -0
  1178. package/dist/models/GenericTimelineByIdResponseData.d.ts +31 -0
  1179. package/dist/models/GenericTimelineByIdResponseData.js +51 -0
  1180. package/dist/models/GrokAnnotation.d.ts +0 -3
  1181. package/dist/models/GrokAnnotation.js +1 -3
  1182. package/dist/models/GrokEntity.d.ts +0 -7
  1183. package/dist/models/GrokEntity.js +4 -6
  1184. package/dist/models/GrokEntityRef.d.ts +0 -13
  1185. package/dist/models/GrokEntityRef.js +3 -5
  1186. package/dist/models/GrokImageAnnotation.d.ts +0 -5
  1187. package/dist/models/GrokImageAnnotation.js +2 -4
  1188. package/dist/models/GrokShareAttachment.d.ts +0 -3
  1189. package/dist/models/GrokShareAttachment.js +2 -4
  1190. package/dist/models/GrokShareAttachmentItem.d.ts +0 -9
  1191. package/dist/models/GrokShareAttachmentItem.js +3 -5
  1192. package/dist/models/GrokTranslatedBio.d.ts +43 -0
  1193. package/dist/models/GrokTranslatedBio.js +63 -0
  1194. package/dist/models/GrokTranslatedBioWithAvailability.d.ts +35 -0
  1195. package/dist/models/GrokTranslatedBioWithAvailability.js +53 -0
  1196. package/dist/models/GrokTranslatedCommunityNote.d.ts +0 -11
  1197. package/dist/models/GrokTranslatedCommunityNote.js +5 -7
  1198. package/dist/models/GrokTranslatedCommunityNoteWithAvailability.d.ts +0 -5
  1199. package/dist/models/GrokTranslatedCommunityNoteWithAvailability.js +3 -5
  1200. package/dist/models/GrokTranslatedPost.d.ts +0 -13
  1201. package/dist/models/GrokTranslatedPost.js +2 -4
  1202. package/dist/models/GrokTranslatedPostWithAvailability.d.ts +0 -5
  1203. package/dist/models/GrokTranslatedPostWithAvailability.js +3 -5
  1204. package/dist/models/Highlight.d.ts +0 -3
  1205. package/dist/models/Highlight.js +2 -4
  1206. package/dist/models/HomeTimelineHome.d.ts +0 -3
  1207. package/dist/models/HomeTimelineHome.js +3 -5
  1208. package/dist/models/HomeTimelineResponseData.d.ts +0 -3
  1209. package/dist/models/HomeTimelineResponseData.js +2 -4
  1210. package/dist/models/InstructionType.d.ts +0 -1
  1211. package/dist/models/InstructionType.js +2 -3
  1212. package/dist/models/InstructionUnion.d.ts +0 -1
  1213. package/dist/models/InstructionUnion.js +21 -23
  1214. package/dist/models/ItemContentUnion.d.ts +9 -1
  1215. package/dist/models/ItemContentUnion.js +34 -21
  1216. package/dist/models/ItemResult.d.ts +0 -5
  1217. package/dist/models/ItemResult.js +3 -5
  1218. package/dist/models/LimitedActionResultsData.d.ts +0 -3
  1219. package/dist/models/LimitedActionResultsData.js +2 -4
  1220. package/dist/models/ListBannerMedia.d.ts +31 -0
  1221. package/dist/models/ListBannerMedia.js +51 -0
  1222. package/dist/models/ListBannerMediaInfo.d.ts +43 -0
  1223. package/dist/models/ListBannerMediaInfo.js +63 -0
  1224. package/dist/models/ListBannerMediaSalientRect.d.ts +42 -0
  1225. package/dist/models/ListBannerMediaSalientRect.js +62 -0
  1226. package/dist/models/ListLatestTweetsTimelineResponse.d.ts +0 -5
  1227. package/dist/models/ListLatestTweetsTimelineResponse.js +3 -5
  1228. package/dist/models/ListMembersList.d.ts +31 -0
  1229. package/dist/models/ListMembersList.js +51 -0
  1230. package/dist/models/ListMembersResponse.d.ts +36 -0
  1231. package/dist/models/ListMembersResponse.js +54 -0
  1232. package/dist/models/ListMembersResponseData.d.ts +31 -0
  1233. package/dist/models/ListMembersResponseData.js +51 -0
  1234. package/dist/models/ListRecommendedUsersList.d.ts +31 -0
  1235. package/dist/models/ListRecommendedUsersList.js +51 -0
  1236. package/dist/models/ListRecommendedUsersResponse.d.ts +36 -0
  1237. package/dist/models/ListRecommendedUsersResponse.js +54 -0
  1238. package/dist/models/ListRecommendedUsersResponseData.d.ts +31 -0
  1239. package/dist/models/ListRecommendedUsersResponseData.js +51 -0
  1240. package/dist/models/ListResponse.d.ts +36 -0
  1241. package/dist/models/ListResponse.js +54 -0
  1242. package/dist/models/ListResponseData.d.ts +31 -0
  1243. package/dist/models/ListResponseData.js +51 -0
  1244. package/dist/models/ListSubscribersList.d.ts +31 -0
  1245. package/dist/models/ListSubscribersList.js +51 -0
  1246. package/dist/models/ListSubscribersResponse.d.ts +36 -0
  1247. package/dist/models/ListSubscribersResponse.js +54 -0
  1248. package/dist/models/ListSubscribersResponseData.d.ts +31 -0
  1249. package/dist/models/ListSubscribersResponseData.js +51 -0
  1250. package/dist/models/ListTweetsTimelineData.d.ts +0 -3
  1251. package/dist/models/ListTweetsTimelineData.js +2 -4
  1252. package/dist/models/ListTweetsTimelineList.d.ts +0 -3
  1253. package/dist/models/ListTweetsTimelineList.js +3 -5
  1254. package/dist/models/Location.d.ts +0 -5
  1255. package/dist/models/Location.js +1 -3
  1256. package/dist/models/Media.d.ts +5 -43
  1257. package/dist/models/Media.js +20 -19
  1258. package/dist/models/MediaCommunityResult.d.ts +0 -5
  1259. package/dist/models/MediaCommunityResult.js +5 -7
  1260. package/dist/models/MediaCommunityResults.d.ts +0 -3
  1261. package/dist/models/MediaCommunityResults.js +2 -4
  1262. package/dist/models/MediaCommunityTweetData.d.ts +0 -3
  1263. package/dist/models/MediaCommunityTweetData.js +2 -4
  1264. package/dist/models/MediaExtended.d.ts +5 -45
  1265. package/dist/models/MediaExtended.js +20 -19
  1266. package/dist/models/MediaOriginalInfo.d.ts +0 -7
  1267. package/dist/models/MediaOriginalInfo.js +2 -4
  1268. package/dist/models/MediaOriginalInfoFocusRect.d.ts +0 -9
  1269. package/dist/models/MediaOriginalInfoFocusRect.js +1 -3
  1270. package/dist/models/MediaResult.d.ts +0 -5
  1271. package/dist/models/MediaResult.js +3 -5
  1272. package/dist/models/MediaResults.d.ts +0 -3
  1273. package/dist/models/MediaResults.js +2 -4
  1274. package/dist/models/MediaSize.d.ts +0 -7
  1275. package/dist/models/MediaSize.js +2 -4
  1276. package/dist/models/MediaSizes.d.ts +0 -9
  1277. package/dist/models/MediaSizes.js +2 -4
  1278. package/dist/models/MediaStats.d.ts +0 -3
  1279. package/dist/models/MediaStats.js +1 -3
  1280. package/dist/models/MediaVideoInfo.d.ts +0 -7
  1281. package/dist/models/MediaVideoInfo.js +3 -5
  1282. package/dist/models/MediaVideoInfoVariant.d.ts +0 -7
  1283. package/dist/models/MediaVideoInfoVariant.js +2 -4
  1284. package/dist/models/MediaVisibilityResults.d.ts +0 -3
  1285. package/dist/models/MediaVisibilityResults.js +3 -5
  1286. package/dist/models/MediaVisibilityResultsBlurredImageInterstitial.d.ts +0 -7
  1287. package/dist/models/MediaVisibilityResultsBlurredImageInterstitial.js +2 -4
  1288. package/dist/models/ModuleEntry.d.ts +0 -7
  1289. package/dist/models/ModuleEntry.js +4 -6
  1290. package/dist/models/ModuleItem.d.ts +0 -7
  1291. package/dist/models/ModuleItem.js +2 -4
  1292. package/dist/models/NoteTweet.d.ts +0 -5
  1293. package/dist/models/NoteTweet.js +3 -5
  1294. package/dist/models/NoteTweetResult.d.ts +0 -3
  1295. package/dist/models/NoteTweetResult.js +2 -4
  1296. package/dist/models/NoteTweetResultData.d.ts +0 -11
  1297. package/dist/models/NoteTweetResultData.js +5 -7
  1298. package/dist/models/NoteTweetResultMedia.d.ts +0 -3
  1299. package/dist/models/NoteTweetResultMedia.js +3 -5
  1300. package/dist/models/NoteTweetResultMediaInlineMedia.d.ts +0 -5
  1301. package/dist/models/NoteTweetResultMediaInlineMedia.js +2 -4
  1302. package/dist/models/NoteTweetResultRichText.d.ts +0 -3
  1303. package/dist/models/NoteTweetResultRichText.js +3 -5
  1304. package/dist/models/NoteTweetResultRichTextTag.d.ts +0 -7
  1305. package/dist/models/NoteTweetResultRichTextTag.js +5 -7
  1306. package/dist/models/NotificationTemplate.d.ts +0 -7
  1307. package/dist/models/NotificationTemplate.js +2 -4
  1308. package/dist/models/NotificationsResult.d.ts +0 -7
  1309. package/dist/models/NotificationsResult.js +6 -8
  1310. package/dist/models/NotificationsTimelineData.d.ts +0 -3
  1311. package/dist/models/NotificationsTimelineData.js +3 -5
  1312. package/dist/models/NotificationsTimelineResponse.d.ts +0 -5
  1313. package/dist/models/NotificationsTimelineResponse.js +3 -5
  1314. package/dist/models/NotificationsUserResults.d.ts +0 -3
  1315. package/dist/models/NotificationsUserResults.js +2 -4
  1316. package/dist/models/NotificationsViewerV2.d.ts +0 -3
  1317. package/dist/models/NotificationsViewerV2.js +3 -5
  1318. package/dist/models/OneFactorLoginEligibility.d.ts +0 -3
  1319. package/dist/models/OneFactorLoginEligibility.js +1 -3
  1320. package/dist/models/OtherObjectAll.d.ts +0 -3
  1321. package/dist/models/OtherObjectAll.js +2 -4
  1322. package/dist/models/PostCreateBookmarkRequest.d.ts +0 -5
  1323. package/dist/models/PostCreateBookmarkRequest.js +2 -4
  1324. package/dist/models/PostCreateBookmarkRequestVariables.d.ts +0 -3
  1325. package/dist/models/PostCreateBookmarkRequestVariables.js +2 -4
  1326. package/dist/models/PostCreateDraftTweetRequest.d.ts +35 -0
  1327. package/dist/models/PostCreateDraftTweetRequest.js +55 -0
  1328. package/dist/models/PostCreateDraftTweetRequestVariables.d.ts +31 -0
  1329. package/dist/models/PostCreateDraftTweetRequestVariables.js +51 -0
  1330. package/dist/models/PostCreateDraftTweetRequestVariablesPostTweetRequest.d.ts +46 -0
  1331. package/dist/models/PostCreateDraftTweetRequestVariablesPostTweetRequest.js +66 -0
  1332. package/dist/models/PostCreateListRequest.d.ts +40 -0
  1333. package/dist/models/PostCreateListRequest.js +60 -0
  1334. package/dist/models/PostCreateListRequestFeatures.d.ts +46 -0
  1335. package/dist/models/PostCreateListRequestFeatures.js +66 -0
  1336. package/dist/models/PostCreateListRequestVariables.d.ts +38 -0
  1337. package/dist/models/PostCreateListRequestVariables.js +58 -0
  1338. package/dist/models/PostCreateRetweetRequest.d.ts +0 -5
  1339. package/dist/models/PostCreateRetweetRequest.js +2 -4
  1340. package/dist/models/PostCreateRetweetRequestVariables.d.ts +0 -5
  1341. package/dist/models/PostCreateRetweetRequestVariables.js +3 -5
  1342. package/dist/models/PostCreateTweetRequest.d.ts +0 -7
  1343. package/dist/models/PostCreateTweetRequest.js +3 -5
  1344. package/dist/models/PostCreateTweetRequestFeatures.d.ts +8 -77
  1345. package/dist/models/PostCreateTweetRequestFeatures.js +43 -41
  1346. package/dist/models/PostCreateTweetRequestVariables.d.ts +0 -17
  1347. package/dist/models/PostCreateTweetRequestVariables.js +7 -9
  1348. package/dist/models/PostCreateTweetRequestVariablesConversationControl.d.ts +0 -3
  1349. package/dist/models/PostCreateTweetRequestVariablesConversationControl.js +1 -3
  1350. package/dist/models/PostCreateTweetRequestVariablesMedia.d.ts +0 -5
  1351. package/dist/models/PostCreateTweetRequestVariablesMedia.js +3 -5
  1352. package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.d.ts +0 -5
  1353. package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.js +3 -5
  1354. package/dist/models/PostCreateTweetRequestVariablesReply.d.ts +0 -5
  1355. package/dist/models/PostCreateTweetRequestVariablesReply.js +3 -5
  1356. package/dist/models/PostCta.d.ts +0 -11
  1357. package/dist/models/PostCta.js +7 -9
  1358. package/dist/models/PostCtaTitleText.d.ts +0 -5
  1359. package/dist/models/PostCtaTitleText.js +2 -4
  1360. package/dist/models/PostCtaTitleTextEntity.d.ts +0 -7
  1361. package/dist/models/PostCtaTitleTextEntity.js +2 -4
  1362. package/dist/models/PostCtaTitleTextEntityRef.d.ts +0 -5
  1363. package/dist/models/PostCtaTitleTextEntityRef.js +4 -6
  1364. package/dist/models/PostCtaUserResults.d.ts +0 -3
  1365. package/dist/models/PostCtaUserResults.js +2 -4
  1366. package/dist/models/PostCtaUserResultsAvatar.d.ts +0 -3
  1367. package/dist/models/PostCtaUserResultsAvatar.js +2 -4
  1368. package/dist/models/PostCtaUserResultsResult.d.ts +0 -5
  1369. package/dist/models/PostCtaUserResultsResult.js +4 -6
  1370. package/dist/models/PostDeleteBookmarkRequest.d.ts +0 -5
  1371. package/dist/models/PostDeleteBookmarkRequest.js +2 -4
  1372. package/dist/models/PostDeleteDraftTweetsRequest.d.ts +35 -0
  1373. package/dist/models/PostDeleteDraftTweetsRequest.js +55 -0
  1374. package/dist/models/PostDeleteDraftTweetsRequestVariables.d.ts +30 -0
  1375. package/dist/models/PostDeleteDraftTweetsRequestVariables.js +50 -0
  1376. package/dist/models/PostDeleteListRequest.d.ts +35 -0
  1377. package/dist/models/PostDeleteListRequest.js +55 -0
  1378. package/dist/models/PostDeleteListRequestVariables.d.ts +30 -0
  1379. package/dist/models/PostDeleteListRequestVariables.js +50 -0
  1380. package/dist/models/PostDeleteRetweetRequest.d.ts +0 -5
  1381. package/dist/models/PostDeleteRetweetRequest.js +2 -4
  1382. package/dist/models/PostDeleteRetweetRequestVariables.d.ts +0 -5
  1383. package/dist/models/PostDeleteRetweetRequestVariables.js +3 -5
  1384. package/dist/models/PostDeleteTweetRequest.d.ts +0 -5
  1385. package/dist/models/PostDeleteTweetRequest.js +2 -4
  1386. package/dist/models/PostFavoriteTweetRequest.d.ts +0 -5
  1387. package/dist/models/PostFavoriteTweetRequest.js +2 -4
  1388. package/dist/models/PostListAddMemberRequest.d.ts +40 -0
  1389. package/dist/models/PostListAddMemberRequest.js +60 -0
  1390. package/dist/models/PostListAddMemberRequestVariables.d.ts +34 -0
  1391. package/dist/models/PostListAddMemberRequestVariables.js +54 -0
  1392. package/dist/models/PostListRemoveMemberRequest.d.ts +40 -0
  1393. package/dist/models/PostListRemoveMemberRequest.js +60 -0
  1394. package/dist/models/PostUnfavoriteTweetRequest.d.ts +0 -5
  1395. package/dist/models/PostUnfavoriteTweetRequest.js +2 -4
  1396. package/dist/models/PrimaryCommunityTopic.d.ts +0 -5
  1397. package/dist/models/PrimaryCommunityTopic.js +3 -5
  1398. package/dist/models/ProfileBio.d.ts +9 -3
  1399. package/dist/models/ProfileBio.js +6 -3
  1400. package/dist/models/ProfileBioEntities.d.ts +35 -0
  1401. package/dist/models/ProfileBioEntities.js +53 -0
  1402. package/dist/models/ProfileBioEntitiesUrls.d.ts +31 -0
  1403. package/dist/models/ProfileBioEntitiesUrls.js +49 -0
  1404. package/dist/models/ProfileResponse.d.ts +0 -5
  1405. package/dist/models/ProfileResponse.js +3 -5
  1406. package/dist/models/ProfileResponseData.d.ts +0 -3
  1407. package/dist/models/ProfileResponseData.js +2 -4
  1408. package/dist/models/QuotedRefResult.d.ts +0 -3
  1409. package/dist/models/QuotedRefResult.js +2 -4
  1410. package/dist/models/QuotedStatusPermalink.d.ts +0 -7
  1411. package/dist/models/QuotedStatusPermalink.js +1 -3
  1412. package/dist/models/RankedCommunityResult.d.ts +0 -5
  1413. package/dist/models/RankedCommunityResult.js +5 -7
  1414. package/dist/models/RankedCommunityResults.d.ts +0 -3
  1415. package/dist/models/RankedCommunityResults.js +2 -4
  1416. package/dist/models/RankedCommunityTweetData.d.ts +0 -3
  1417. package/dist/models/RankedCommunityTweetData.js +2 -4
  1418. package/dist/models/Retweet.d.ts +1 -6
  1419. package/dist/models/Retweet.js +4 -8
  1420. package/dist/models/RetweetLegacy.d.ts +0 -3
  1421. package/dist/models/RetweetLegacy.js +2 -4
  1422. package/dist/models/RichMessage.d.ts +0 -5
  1423. package/dist/models/RichMessage.js +1 -3
  1424. package/dist/models/ScheduledTweetsViewer.d.ts +32 -0
  1425. package/dist/models/ScheduledTweetsViewer.js +50 -0
  1426. package/dist/models/SearchByRawQuery.d.ts +0 -3
  1427. package/dist/models/SearchByRawQuery.js +3 -5
  1428. package/dist/models/SearchTimeline.d.ts +0 -3
  1429. package/dist/models/SearchTimeline.js +2 -4
  1430. package/dist/models/SearchTimelineData.d.ts +0 -3
  1431. package/dist/models/SearchTimelineData.js +3 -5
  1432. package/dist/models/SearchTimelineResponse.d.ts +0 -5
  1433. package/dist/models/SearchTimelineResponse.js +3 -5
  1434. package/dist/models/SelfThread.d.ts +0 -3
  1435. package/dist/models/SelfThread.js +2 -4
  1436. package/dist/models/SensitiveMediaWarning.d.ts +0 -7
  1437. package/dist/models/SensitiveMediaWarning.js +1 -3
  1438. package/dist/models/Session.d.ts +0 -29
  1439. package/dist/models/Session.js +8 -8
  1440. package/dist/models/Smarttag.d.ts +0 -7
  1441. package/dist/models/Smarttag.js +2 -4
  1442. package/dist/models/SmarttagTag.d.ts +0 -3
  1443. package/dist/models/SmarttagTag.js +1 -3
  1444. package/dist/models/SocialContextLandingUrl.d.ts +0 -7
  1445. package/dist/models/SocialContextLandingUrl.js +3 -5
  1446. package/dist/models/SocialContextUnion.d.ts +0 -1
  1447. package/dist/models/SocialContextUnion.js +5 -7
  1448. package/dist/models/SocialContextUnionType.d.ts +0 -1
  1449. package/dist/models/SocialContextUnionType.js +2 -3
  1450. package/dist/models/SuperFollowUserProfile.d.ts +0 -3
  1451. package/dist/models/SuperFollowUserProfile.js +2 -4
  1452. package/dist/models/SuperFollowsReplyUserResult.d.ts +0 -3
  1453. package/dist/models/SuperFollowsReplyUserResult.js +2 -4
  1454. package/dist/models/SuperFollowsReplyUserResultCore.d.ts +0 -3
  1455. package/dist/models/SuperFollowsReplyUserResultCore.js +2 -4
  1456. package/dist/models/SuperFollowsReplyUserResultData.d.ts +0 -5
  1457. package/dist/models/SuperFollowsReplyUserResultData.js +4 -6
  1458. package/dist/models/SuperFollowsReplyUserResultLegacy.d.ts +0 -3
  1459. package/dist/models/SuperFollowsReplyUserResultLegacy.js +2 -4
  1460. package/dist/models/Text.d.ts +0 -5
  1461. package/dist/models/Text.js +2 -4
  1462. package/dist/models/TextEntity.d.ts +0 -7
  1463. package/dist/models/TextEntity.js +2 -4
  1464. package/dist/models/TextEntityRef.d.ts +0 -7
  1465. package/dist/models/TextEntityRef.js +7 -5
  1466. package/dist/models/TextHighlight.d.ts +0 -5
  1467. package/dist/models/TextHighlight.js +1 -3
  1468. package/dist/models/ThumbnailImage.d.ts +0 -7
  1469. package/dist/models/ThumbnailImage.js +1 -3
  1470. package/dist/models/Timeline.d.ts +0 -7
  1471. package/dist/models/Timeline.js +2 -4
  1472. package/dist/models/TimelineAddEntries.d.ts +0 -5
  1473. package/dist/models/TimelineAddEntries.js +3 -5
  1474. package/dist/models/TimelineAddEntry.d.ts +0 -7
  1475. package/dist/models/TimelineAddEntry.js +2 -4
  1476. package/dist/models/TimelineAddToModule.d.ts +0 -9
  1477. package/dist/models/TimelineAddToModule.js +3 -5
  1478. package/dist/models/TimelineClearCache.d.ts +0 -3
  1479. package/dist/models/TimelineClearCache.js +2 -4
  1480. package/dist/models/TimelineClearEntriesUnreadState.d.ts +0 -3
  1481. package/dist/models/TimelineClearEntriesUnreadState.js +2 -4
  1482. package/dist/models/TimelineCommunity.d.ts +0 -3
  1483. package/dist/models/TimelineCommunity.js +4 -17
  1484. package/dist/models/TimelineCoverBehavior.d.ts +0 -5
  1485. package/dist/models/TimelineCoverBehavior.js +3 -5
  1486. package/dist/models/TimelineCoverBehaviorUrl.d.ts +0 -5
  1487. package/dist/models/TimelineCoverBehaviorUrl.js +5 -5
  1488. package/dist/models/TimelineFrame.d.ts +44 -0
  1489. package/dist/models/TimelineFrame.js +64 -0
  1490. package/dist/models/TimelineGeneralContext.d.ts +0 -11
  1491. package/dist/models/TimelineGeneralContext.js +4 -6
  1492. package/dist/models/TimelineHalfCover.d.ts +0 -15
  1493. package/dist/models/TimelineHalfCover.js +10 -8
  1494. package/dist/models/TimelineLabel.d.ts +45 -0
  1495. package/dist/models/TimelineLabel.js +65 -0
  1496. package/dist/models/TimelineMarkEntriesUnreadGreaterThanSortIndex.d.ts +0 -5
  1497. package/dist/models/TimelineMarkEntriesUnreadGreaterThanSortIndex.js +2 -4
  1498. package/dist/models/TimelineMessagePrompt.d.ts +0 -3
  1499. package/dist/models/TimelineMessagePrompt.js +4 -17
  1500. package/dist/models/TimelineNotification.d.ts +0 -17
  1501. package/dist/models/TimelineNotification.js +11 -13
  1502. package/dist/models/TimelinePinEntry.d.ts +0 -5
  1503. package/dist/models/TimelinePinEntry.js +3 -5
  1504. package/dist/models/TimelinePrompt.d.ts +0 -3
  1505. package/dist/models/TimelinePrompt.js +4 -17
  1506. package/dist/models/TimelineReplaceEntry.d.ts +0 -7
  1507. package/dist/models/TimelineReplaceEntry.js +4 -6
  1508. package/dist/models/TimelineResponse.d.ts +0 -5
  1509. package/dist/models/TimelineResponse.js +3 -5
  1510. package/dist/models/TimelineResult.d.ts +0 -5
  1511. package/dist/models/TimelineResult.js +2 -4
  1512. package/dist/models/TimelineShowAlert.d.ts +1 -22
  1513. package/dist/models/TimelineShowAlert.js +9 -11
  1514. package/dist/models/TimelineShowAlertRichText.d.ts +0 -5
  1515. package/dist/models/TimelineShowAlertRichText.js +1 -3
  1516. package/dist/models/TimelineShowCover.d.ts +0 -7
  1517. package/dist/models/TimelineShowCover.js +4 -6
  1518. package/dist/models/TimelineTerminateTimeline.d.ts +0 -5
  1519. package/dist/models/TimelineTerminateTimeline.js +3 -5
  1520. package/dist/models/TimelineTimelineCursor.d.ts +0 -15
  1521. package/dist/models/TimelineTimelineCursor.js +6 -8
  1522. package/dist/models/TimelineTimelineItem.d.ts +0 -11
  1523. package/dist/models/TimelineTimelineItem.js +6 -8
  1524. package/dist/models/TimelineTimelineModule.d.ts +0 -19
  1525. package/dist/models/TimelineTimelineModule.js +8 -10
  1526. package/dist/models/TimelineTombstone.d.ts +0 -9
  1527. package/dist/models/TimelineTombstone.js +5 -7
  1528. package/dist/models/TimelineTopicContext.d.ts +0 -7
  1529. package/dist/models/TimelineTopicContext.js +4 -6
  1530. package/dist/models/TimelineTrend.d.ts +4 -19
  1531. package/dist/models/TimelineTrend.js +13 -13
  1532. package/dist/models/TimelineTweet.d.ts +0 -17
  1533. package/dist/models/TimelineTweet.js +9 -11
  1534. package/dist/models/TimelineTwitterList.d.ts +45 -0
  1535. package/dist/models/TimelineTwitterList.js +63 -0
  1536. package/dist/models/TimelineUser.d.ts +0 -11
  1537. package/dist/models/TimelineUser.js +8 -10
  1538. package/dist/models/Timestamp.d.ts +0 -7
  1539. package/dist/models/Timestamp.js +1 -3
  1540. package/dist/models/TombstoneEntity.d.ts +0 -7
  1541. package/dist/models/TombstoneEntity.js +2 -4
  1542. package/dist/models/TombstoneInfo.d.ts +0 -5
  1543. package/dist/models/TombstoneInfo.js +2 -4
  1544. package/dist/models/TombstoneRef.d.ts +0 -7
  1545. package/dist/models/TombstoneRef.js +3 -5
  1546. package/dist/models/TombstoneRichText.d.ts +0 -7
  1547. package/dist/models/TombstoneRichText.js +2 -4
  1548. package/dist/models/TopicContext.d.ts +0 -15
  1549. package/dist/models/TopicContext.js +1 -3
  1550. package/dist/models/Tracing.d.ts +0 -3
  1551. package/dist/models/Tracing.js +2 -4
  1552. package/dist/models/TrendImage.d.ts +0 -3
  1553. package/dist/models/TrendImage.js +1 -3
  1554. package/dist/models/TrendMetadata.d.ts +4 -3
  1555. package/dist/models/TrendMetadata.js +4 -4
  1556. package/dist/models/TrendResults.d.ts +0 -3
  1557. package/dist/models/TrendResults.js +2 -4
  1558. package/dist/models/Tweet.d.ts +18 -78
  1559. package/dist/models/Tweet.js +31 -28
  1560. package/dist/models/TweetCard.d.ts +0 -5
  1561. package/dist/models/TweetCard.js +2 -4
  1562. package/dist/models/TweetCardLegacy.d.ts +0 -11
  1563. package/dist/models/TweetCardLegacy.js +5 -7
  1564. package/dist/models/TweetCardLegacyBindingValue.d.ts +0 -5
  1565. package/dist/models/TweetCardLegacyBindingValue.js +2 -4
  1566. package/dist/models/TweetCardLegacyBindingValueData.d.ts +0 -15
  1567. package/dist/models/TweetCardLegacyBindingValueData.js +3 -5
  1568. package/dist/models/TweetCardLegacyBindingValueDataImage.d.ts +0 -9
  1569. package/dist/models/TweetCardLegacyBindingValueDataImage.js +1 -3
  1570. package/dist/models/TweetCardPlatform.d.ts +0 -5
  1571. package/dist/models/TweetCardPlatform.js +3 -5
  1572. package/dist/models/TweetCardPlatformAudience.d.ts +0 -3
  1573. package/dist/models/TweetCardPlatformAudience.js +4 -4
  1574. package/dist/models/TweetCardPlatformData.d.ts +0 -3
  1575. package/dist/models/TweetCardPlatformData.js +2 -4
  1576. package/dist/models/TweetCardPlatformDevice.d.ts +0 -5
  1577. package/dist/models/TweetCardPlatformDevice.js +1 -3
  1578. package/dist/models/TweetDetailResponse.d.ts +0 -5
  1579. package/dist/models/TweetDetailResponse.js +3 -5
  1580. package/dist/models/TweetDetailResponseData.d.ts +0 -3
  1581. package/dist/models/TweetDetailResponseData.js +2 -4
  1582. package/dist/models/TweetEditControl.d.ts +0 -13
  1583. package/dist/models/TweetEditControl.js +2 -4
  1584. package/dist/models/TweetEditControlInitial.d.ts +0 -9
  1585. package/dist/models/TweetEditControlInitial.js +5 -7
  1586. package/dist/models/TweetEditPrespective.d.ts +0 -5
  1587. package/dist/models/TweetEditPrespective.js +1 -3
  1588. package/dist/models/TweetFavoritersResponse.d.ts +0 -5
  1589. package/dist/models/TweetFavoritersResponse.js +3 -5
  1590. package/dist/models/TweetFavoritersResponseData.d.ts +0 -3
  1591. package/dist/models/TweetFavoritersResponseData.js +2 -4
  1592. package/dist/models/TweetInterstitial.d.ts +0 -9
  1593. package/dist/models/TweetInterstitial.js +6 -8
  1594. package/dist/models/TweetInterstitialRevealText.d.ts +0 -7
  1595. package/dist/models/TweetInterstitialRevealText.js +2 -4
  1596. package/dist/models/TweetInterstitialText.d.ts +0 -7
  1597. package/dist/models/TweetInterstitialText.js +2 -4
  1598. package/dist/models/TweetInterstitialTextEntity.d.ts +0 -7
  1599. package/dist/models/TweetInterstitialTextEntity.js +2 -4
  1600. package/dist/models/TweetInterstitialTextEntityRef.d.ts +0 -7
  1601. package/dist/models/TweetInterstitialTextEntityRef.js +7 -5
  1602. package/dist/models/TweetLegacy.d.ts +0 -63
  1603. package/dist/models/TweetLegacy.js +20 -22
  1604. package/dist/models/TweetLegacyScopes.d.ts +0 -3
  1605. package/dist/models/TweetLegacyScopes.js +1 -3
  1606. package/dist/models/TweetLimitedActionResults.d.ts +0 -3
  1607. package/dist/models/TweetLimitedActionResults.js +3 -5
  1608. package/dist/models/TweetPostCta.d.ts +0 -7
  1609. package/dist/models/TweetPostCta.js +5 -7
  1610. package/dist/models/TweetPreviewDisplay.d.ts +0 -9
  1611. package/dist/models/TweetPreviewDisplay.js +7 -9
  1612. package/dist/models/TweetPreviewDisplayCta.d.ts +0 -5
  1613. package/dist/models/TweetPreviewDisplayCta.js +2 -4
  1614. package/dist/models/TweetPreviewDisplayCtaUrl.d.ts +0 -5
  1615. package/dist/models/TweetPreviewDisplayCtaUrl.js +2 -4
  1616. package/dist/models/TweetPreviewDisplayTweet.d.ts +0 -25
  1617. package/dist/models/TweetPreviewDisplayTweet.js +12 -14
  1618. package/dist/models/TweetPreviewDisplayTweetViewCount.d.ts +0 -3
  1619. package/dist/models/TweetPreviewDisplayTweetViewCount.js +1 -3
  1620. package/dist/models/TweetPreviousCounts.d.ts +0 -11
  1621. package/dist/models/TweetPreviousCounts.js +6 -8
  1622. package/dist/models/TweetResultByRestIdData.d.ts +0 -3
  1623. package/dist/models/TweetResultByRestIdData.js +2 -4
  1624. package/dist/models/TweetResultByRestIdResponse.d.ts +0 -5
  1625. package/dist/models/TweetResultByRestIdResponse.js +3 -5
  1626. package/dist/models/TweetRetweetersResponse.d.ts +0 -5
  1627. package/dist/models/TweetRetweetersResponse.js +3 -5
  1628. package/dist/models/TweetRetweetersResponseData.d.ts +0 -3
  1629. package/dist/models/TweetRetweetersResponseData.js +2 -4
  1630. package/dist/models/TweetTombstone.d.ts +0 -3
  1631. package/dist/models/TweetTombstone.js +4 -17
  1632. package/dist/models/TweetUnavailable.d.ts +0 -5
  1633. package/dist/models/TweetUnavailable.js +2 -4
  1634. package/dist/models/TweetUnion.d.ts +0 -1
  1635. package/dist/models/TweetUnion.js +11 -13
  1636. package/dist/models/TweetView.d.ts +0 -5
  1637. package/dist/models/TweetView.js +2 -4
  1638. package/dist/models/TweetWithVisibilityResults.d.ts +0 -11
  1639. package/dist/models/TweetWithVisibilityResults.js +6 -8
  1640. package/dist/models/TwitterList.d.ts +110 -0
  1641. package/dist/models/TwitterList.js +124 -0
  1642. package/dist/models/TypeName.d.ts +4 -1
  1643. package/dist/models/TypeName.js +6 -3
  1644. package/dist/models/UnfavoriteTweet.d.ts +0 -3
  1645. package/dist/models/UnfavoriteTweet.js +1 -3
  1646. package/dist/models/UnfavoriteTweetResponse.d.ts +0 -5
  1647. package/dist/models/UnfavoriteTweetResponse.js +3 -5
  1648. package/dist/models/UnifiedCard.d.ts +0 -3
  1649. package/dist/models/UnifiedCard.js +5 -5
  1650. package/dist/models/Url.d.ts +0 -9
  1651. package/dist/models/Url.js +2 -4
  1652. package/dist/models/UrtEndpointOptions.d.ts +1 -6
  1653. package/dist/models/UrtEndpointOptions.js +3 -7
  1654. package/dist/models/UrtEndpointRequestParams.d.ts +0 -5
  1655. package/dist/models/UrtEndpointRequestParams.js +1 -3
  1656. package/dist/models/User.d.ts +69 -84
  1657. package/dist/models/User.js +61 -29
  1658. package/dist/models/UserActionCounts.d.ts +30 -0
  1659. package/dist/models/UserActionCounts.js +50 -0
  1660. package/dist/models/UserAvatar.d.ts +0 -3
  1661. package/dist/models/UserAvatar.js +2 -4
  1662. package/dist/models/UserBanner.d.ts +30 -0
  1663. package/dist/models/UserBanner.js +50 -0
  1664. package/dist/models/UserCore.d.ts +0 -7
  1665. package/dist/models/UserCore.js +3 -5
  1666. package/dist/models/UserDmPermissions.d.ts +0 -3
  1667. package/dist/models/UserDmPermissions.js +2 -4
  1668. package/dist/models/UserFeatures.d.ts +0 -3
  1669. package/dist/models/UserFeatures.js +2 -4
  1670. package/dist/models/UserHighlightsInfo.d.ts +0 -5
  1671. package/dist/models/UserHighlightsInfo.js +3 -5
  1672. package/dist/models/UserHighlightsTweetsData.d.ts +0 -3
  1673. package/dist/models/UserHighlightsTweetsData.js +2 -4
  1674. package/dist/models/UserHighlightsTweetsResponse.d.ts +0 -5
  1675. package/dist/models/UserHighlightsTweetsResponse.js +3 -5
  1676. package/dist/models/UserHighlightsTweetsResult.d.ts +0 -5
  1677. package/dist/models/UserHighlightsTweetsResult.js +4 -6
  1678. package/dist/models/UserHighlightsTweetsTimeline.d.ts +0 -3
  1679. package/dist/models/UserHighlightsTweetsTimeline.js +2 -4
  1680. package/dist/models/UserHighlightsTweetsUser.d.ts +0 -3
  1681. package/dist/models/UserHighlightsTweetsUser.js +2 -4
  1682. package/dist/models/UserLegacy.d.ts +0 -91
  1683. package/dist/models/UserLegacy.js +21 -23
  1684. package/dist/models/UserLegacyExtendedProfile.d.ts +0 -3
  1685. package/dist/models/UserLegacyExtendedProfile.js +2 -4
  1686. package/dist/models/UserLegacyExtendedProfileBirthdate.d.ts +0 -11
  1687. package/dist/models/UserLegacyExtendedProfileBirthdate.js +4 -6
  1688. package/dist/models/UserLocation.d.ts +0 -3
  1689. package/dist/models/UserLocation.js +1 -3
  1690. package/dist/models/UserMediaPermissions.d.ts +0 -3
  1691. package/dist/models/UserMediaPermissions.js +2 -4
  1692. package/dist/models/UserNotificationsSettings.d.ts +30 -0
  1693. package/dist/models/UserNotificationsSettings.js +50 -0
  1694. package/dist/models/UserPinnedItems.d.ts +30 -0
  1695. package/dist/models/UserPinnedItems.js +48 -0
  1696. package/dist/models/UserPrivacy.d.ts +0 -3
  1697. package/dist/models/UserPrivacy.js +2 -4
  1698. package/dist/models/UserProfessional.d.ts +0 -7
  1699. package/dist/models/UserProfessional.js +5 -7
  1700. package/dist/models/UserProfessionalCategory.d.ts +0 -7
  1701. package/dist/models/UserProfessionalCategory.js +2 -4
  1702. package/dist/models/UserProfile.d.ts +0 -3
  1703. package/dist/models/UserProfile.js +3 -5
  1704. package/dist/models/UserProfileMetadata.d.ts +30 -0
  1705. package/dist/models/UserProfileMetadata.js +50 -0
  1706. package/dist/models/UserProfileTranslation.d.ts +30 -0
  1707. package/dist/models/UserProfileTranslation.js +50 -0
  1708. package/dist/models/UserRelationshipCounts.d.ts +34 -0
  1709. package/dist/models/UserRelationshipCounts.js +54 -0
  1710. package/dist/models/UserRelationshipPerspectives.d.ts +8 -9
  1711. package/dist/models/UserRelationshipPerspectives.js +5 -3
  1712. package/dist/models/UserResponse.d.ts +0 -5
  1713. package/dist/models/UserResponse.js +3 -5
  1714. package/dist/models/UserResponseData.d.ts +0 -3
  1715. package/dist/models/UserResponseData.js +2 -4
  1716. package/dist/models/UserResultByScreenName.d.ts +0 -5
  1717. package/dist/models/UserResultByScreenName.js +2 -4
  1718. package/dist/models/UserResultByScreenNameCore.d.ts +0 -5
  1719. package/dist/models/UserResultByScreenNameCore.js +2 -4
  1720. package/dist/models/UserResultByScreenNameLegacy.d.ts +0 -15
  1721. package/dist/models/UserResultByScreenNameLegacy.js +1 -3
  1722. package/dist/models/UserResultByScreenNameResult.d.ts +4 -17
  1723. package/dist/models/UserResultByScreenNameResult.js +11 -11
  1724. package/dist/models/UserResultCore.d.ts +0 -3
  1725. package/dist/models/UserResultCore.js +3 -5
  1726. package/dist/models/UserResultPrivacy.d.ts +0 -3
  1727. package/dist/models/UserResultPrivacy.js +2 -4
  1728. package/dist/models/UserResultRelationshipPerspectives.d.ts +0 -9
  1729. package/dist/models/UserResultRelationshipPerspectives.js +1 -3
  1730. package/dist/models/UserResults.d.ts +0 -3
  1731. package/dist/models/UserResults.js +2 -4
  1732. package/dist/models/UserTipJarSettings.d.ts +0 -19
  1733. package/dist/models/UserTipJarSettings.js +1 -3
  1734. package/dist/models/UserTweetCounts.d.ts +34 -0
  1735. package/dist/models/UserTweetCounts.js +54 -0
  1736. package/dist/models/UserTweetsData.d.ts +0 -3
  1737. package/dist/models/UserTweetsData.js +2 -4
  1738. package/dist/models/UserTweetsResponse.d.ts +0 -5
  1739. package/dist/models/UserTweetsResponse.js +3 -5
  1740. package/dist/models/UserTweetsResultV1.d.ts +0 -5
  1741. package/dist/models/UserTweetsResultV1.js +4 -6
  1742. package/dist/models/UserTweetsResultV2.d.ts +0 -5
  1743. package/dist/models/UserTweetsResultV2.js +5 -7
  1744. package/dist/models/UserTweetsUser.d.ts +0 -3
  1745. package/dist/models/UserTweetsUser.js +2 -4
  1746. package/dist/models/UserUnavailable.d.ts +0 -7
  1747. package/dist/models/UserUnavailable.js +3 -5
  1748. package/dist/models/UserUnion.d.ts +0 -1
  1749. package/dist/models/UserUnion.js +5 -7
  1750. package/dist/models/UserValue.d.ts +4 -3
  1751. package/dist/models/UserValue.js +4 -4
  1752. package/dist/models/UserVerification.d.ts +0 -5
  1753. package/dist/models/UserVerification.js +2 -4
  1754. package/dist/models/UserVerificationInfo.d.ts +0 -5
  1755. package/dist/models/UserVerificationInfo.js +3 -5
  1756. package/dist/models/UserVerificationInfoReason.d.ts +0 -7
  1757. package/dist/models/UserVerificationInfoReason.js +3 -5
  1758. package/dist/models/UserVerificationInfoReasonDescription.d.ts +0 -5
  1759. package/dist/models/UserVerificationInfoReasonDescription.js +2 -4
  1760. package/dist/models/UserVerificationInfoReasonDescriptionEntities.d.ts +0 -7
  1761. package/dist/models/UserVerificationInfoReasonDescriptionEntities.js +4 -6
  1762. package/dist/models/UserVerificationInfoReasonDescriptionEntitiesRef.d.ts +0 -5
  1763. package/dist/models/UserVerificationInfoReasonDescriptionEntitiesRef.js +5 -5
  1764. package/dist/models/UserWebsite.d.ts +30 -0
  1765. package/dist/models/UserWebsite.js +50 -0
  1766. package/dist/models/UsersResponse.d.ts +0 -5
  1767. package/dist/models/UsersResponse.js +3 -5
  1768. package/dist/models/UsersResponseData.d.ts +0 -3
  1769. package/dist/models/UsersResponseData.js +2 -4
  1770. package/dist/models/ViewerBadgeCountsResponse.d.ts +36 -0
  1771. package/dist/models/ViewerBadgeCountsResponse.js +54 -0
  1772. package/dist/models/ViewerBadgeCountsResponseData.d.ts +31 -0
  1773. package/dist/models/ViewerBadgeCountsResponseData.js +51 -0
  1774. package/dist/models/ViewerBadgeCountsResult.d.ts +36 -0
  1775. package/dist/models/ViewerBadgeCountsResult.js +56 -0
  1776. package/dist/models/ViewerBadgeCountsUserResults.d.ts +31 -0
  1777. package/dist/models/ViewerBadgeCountsUserResults.js +51 -0
  1778. package/dist/models/ViewerBadgeCountsViewer.d.ts +31 -0
  1779. package/dist/models/ViewerBadgeCountsViewer.js +51 -0
  1780. package/dist/models/index.d.ts +82 -1
  1781. package/dist/models/index.js +82 -1
  1782. package/dist/runtime.d.ts +34 -2
  1783. package/dist/runtime.js +341 -442
  1784. package/package.json +21 -25
  1785. package/dist/apis/DefaultApi.d.ts.map +0 -1
  1786. package/dist/apis/DefaultApi.js.map +0 -1
  1787. package/dist/apis/OtherApi.d.ts.map +0 -1
  1788. package/dist/apis/OtherApi.js.map +0 -1
  1789. package/dist/apis/PostApi.d.ts.map +0 -1
  1790. package/dist/apis/PostApi.js.map +0 -1
  1791. package/dist/apis/TweetApi.d.ts.map +0 -1
  1792. package/dist/apis/TweetApi.js.map +0 -1
  1793. package/dist/apis/UserApi.d.ts.map +0 -1
  1794. package/dist/apis/UserApi.js.map +0 -1
  1795. package/dist/apis/UserListApi.d.ts.map +0 -1
  1796. package/dist/apis/UserListApi.js.map +0 -1
  1797. package/dist/apis/UsersApi.d.ts.map +0 -1
  1798. package/dist/apis/UsersApi.js.map +0 -1
  1799. package/dist/apis/V11GetApi.d.ts.map +0 -1
  1800. package/dist/apis/V11GetApi.js.map +0 -1
  1801. package/dist/apis/V11PostApi.d.ts.map +0 -1
  1802. package/dist/apis/V11PostApi.js.map +0 -1
  1803. package/dist/apis/V20GetApi.d.ts.map +0 -1
  1804. package/dist/apis/V20GetApi.js.map +0 -1
  1805. package/dist/apis/index.d.ts.map +0 -1
  1806. package/dist/apis/index.js.map +0 -1
  1807. package/dist/index.d.ts.map +0 -1
  1808. package/dist/index.js.map +0 -1
  1809. package/dist/models/AboutCommunityResult.d.ts.map +0 -1
  1810. package/dist/models/AboutCommunityResult.js.map +0 -1
  1811. package/dist/models/AboutCommunityResults.d.ts.map +0 -1
  1812. package/dist/models/AboutCommunityResults.js.map +0 -1
  1813. package/dist/models/AboutCommunityTweetData.d.ts.map +0 -1
  1814. package/dist/models/AboutCommunityTweetData.js.map +0 -1
  1815. package/dist/models/AdditionalMediaInfo.d.ts.map +0 -1
  1816. package/dist/models/AdditionalMediaInfo.js.map +0 -1
  1817. package/dist/models/AdditionalMediaInfoCallToActions.d.ts.map +0 -1
  1818. package/dist/models/AdditionalMediaInfoCallToActions.js.map +0 -1
  1819. package/dist/models/AdditionalMediaInfoCallToActionsUrl.d.ts.map +0 -1
  1820. package/dist/models/AdditionalMediaInfoCallToActionsUrl.js.map +0 -1
  1821. package/dist/models/AllowDownloadStatus.d.ts.map +0 -1
  1822. package/dist/models/AllowDownloadStatus.js.map +0 -1
  1823. package/dist/models/AnalysisResults.d.ts.map +0 -1
  1824. package/dist/models/AnalysisResults.js.map +0 -1
  1825. package/dist/models/Article.d.ts.map +0 -1
  1826. package/dist/models/Article.js.map +0 -1
  1827. package/dist/models/ArticleCoverMedia.d.ts.map +0 -1
  1828. package/dist/models/ArticleCoverMedia.js.map +0 -1
  1829. package/dist/models/ArticleCoverMediaColorInfo.d.ts.map +0 -1
  1830. package/dist/models/ArticleCoverMediaColorInfo.js.map +0 -1
  1831. package/dist/models/ArticleCoverMediaColorInfoPalette.d.ts.map +0 -1
  1832. package/dist/models/ArticleCoverMediaColorInfoPalette.js.map +0 -1
  1833. package/dist/models/ArticleCoverMediaColorInfoPaletteRGB.d.ts.map +0 -1
  1834. package/dist/models/ArticleCoverMediaColorInfoPaletteRGB.js.map +0 -1
  1835. package/dist/models/ArticleCoverMediaInfo.d.ts.map +0 -1
  1836. package/dist/models/ArticleCoverMediaInfo.js.map +0 -1
  1837. package/dist/models/ArticleLifecycleState.d.ts.map +0 -1
  1838. package/dist/models/ArticleLifecycleState.js.map +0 -1
  1839. package/dist/models/ArticleMetadata.d.ts.map +0 -1
  1840. package/dist/models/ArticleMetadata.js.map +0 -1
  1841. package/dist/models/ArticlePreview.d.ts.map +0 -1
  1842. package/dist/models/ArticlePreview.js.map +0 -1
  1843. package/dist/models/ArticleResult.d.ts.map +0 -1
  1844. package/dist/models/ArticleResult.js.map +0 -1
  1845. package/dist/models/ArticleResults.d.ts.map +0 -1
  1846. package/dist/models/ArticleResults.js.map +0 -1
  1847. package/dist/models/AuthorCommunityRelationship.d.ts.map +0 -1
  1848. package/dist/models/AuthorCommunityRelationship.js.map +0 -1
  1849. package/dist/models/BirdwatchEntity.d.ts.map +0 -1
  1850. package/dist/models/BirdwatchEntity.js.map +0 -1
  1851. package/dist/models/BirdwatchEntityRef.d.ts.map +0 -1
  1852. package/dist/models/BirdwatchEntityRef.js.map +0 -1
  1853. package/dist/models/BirdwatchPivot.d.ts.map +0 -1
  1854. package/dist/models/BirdwatchPivot.js.map +0 -1
  1855. package/dist/models/BirdwatchPivotCallToAction.d.ts.map +0 -1
  1856. package/dist/models/BirdwatchPivotCallToAction.js.map +0 -1
  1857. package/dist/models/BirdwatchPivotFooter.d.ts.map +0 -1
  1858. package/dist/models/BirdwatchPivotFooter.js.map +0 -1
  1859. package/dist/models/BirdwatchPivotNote.d.ts.map +0 -1
  1860. package/dist/models/BirdwatchPivotNote.js.map +0 -1
  1861. package/dist/models/BirdwatchPivotSubtitle.d.ts.map +0 -1
  1862. package/dist/models/BirdwatchPivotSubtitle.js.map +0 -1
  1863. package/dist/models/BookmarksResponse.d.ts.map +0 -1
  1864. package/dist/models/BookmarksResponse.js.map +0 -1
  1865. package/dist/models/BookmarksResponseData.d.ts.map +0 -1
  1866. package/dist/models/BookmarksResponseData.js.map +0 -1
  1867. package/dist/models/BookmarksTimeline.d.ts.map +0 -1
  1868. package/dist/models/BookmarksTimeline.js.map +0 -1
  1869. package/dist/models/Callback.d.ts.map +0 -1
  1870. package/dist/models/Callback.js.map +0 -1
  1871. package/dist/models/ClientEventInfo.d.ts.map +0 -1
  1872. package/dist/models/ClientEventInfo.js.map +0 -1
  1873. package/dist/models/CommunitiesActions.d.ts.map +0 -1
  1874. package/dist/models/CommunitiesActions.js.map +0 -1
  1875. package/dist/models/Community.d.ts.map +0 -1
  1876. package/dist/models/Community.js.map +0 -1
  1877. package/dist/models/CommunityAboutTimelineResponse.d.ts.map +0 -1
  1878. package/dist/models/CommunityAboutTimelineResponse.js.map +0 -1
  1879. package/dist/models/CommunityActions.d.ts.map +0 -1
  1880. package/dist/models/CommunityActions.js.map +0 -1
  1881. package/dist/models/CommunityDeleteActionResult.d.ts.map +0 -1
  1882. package/dist/models/CommunityDeleteActionResult.js.map +0 -1
  1883. package/dist/models/CommunityInvitesResult.d.ts.map +0 -1
  1884. package/dist/models/CommunityInvitesResult.js.map +0 -1
  1885. package/dist/models/CommunityJoinAction.d.ts.map +0 -1
  1886. package/dist/models/CommunityJoinAction.js.map +0 -1
  1887. package/dist/models/CommunityJoinActionResultUnion.d.ts.map +0 -1
  1888. package/dist/models/CommunityJoinActionResultUnion.js.map +0 -1
  1889. package/dist/models/CommunityJoinActionUnavailable.d.ts.map +0 -1
  1890. package/dist/models/CommunityJoinActionUnavailable.js.map +0 -1
  1891. package/dist/models/CommunityJoinRequestsResult.d.ts.map +0 -1
  1892. package/dist/models/CommunityJoinRequestsResult.js.map +0 -1
  1893. package/dist/models/CommunityLeaveActionResult.d.ts.map +0 -1
  1894. package/dist/models/CommunityLeaveActionResult.js.map +0 -1
  1895. package/dist/models/CommunityMediaTimelineResponse.d.ts.map +0 -1
  1896. package/dist/models/CommunityMediaTimelineResponse.js.map +0 -1
  1897. package/dist/models/CommunityPinActionResult.d.ts.map +0 -1
  1898. package/dist/models/CommunityPinActionResult.js.map +0 -1
  1899. package/dist/models/CommunityRelationship.d.ts.map +0 -1
  1900. package/dist/models/CommunityRelationship.js.map +0 -1
  1901. package/dist/models/CommunityResult.d.ts.map +0 -1
  1902. package/dist/models/CommunityResult.js.map +0 -1
  1903. package/dist/models/CommunityRule.d.ts.map +0 -1
  1904. package/dist/models/CommunityRule.js.map +0 -1
  1905. package/dist/models/CommunityTweetsTimelineResponse.d.ts.map +0 -1
  1906. package/dist/models/CommunityTweetsTimelineResponse.js.map +0 -1
  1907. package/dist/models/CommunityUnavailable.d.ts.map +0 -1
  1908. package/dist/models/CommunityUnavailable.js.map +0 -1
  1909. package/dist/models/CommunityUnion.d.ts.map +0 -1
  1910. package/dist/models/CommunityUnion.js.map +0 -1
  1911. package/dist/models/CommunityUnpinActionResult.d.ts.map +0 -1
  1912. package/dist/models/CommunityUnpinActionResult.js.map +0 -1
  1913. package/dist/models/CommunityUrls.d.ts.map +0 -1
  1914. package/dist/models/CommunityUrls.js.map +0 -1
  1915. package/dist/models/CommunityUrlsPermalink.d.ts.map +0 -1
  1916. package/dist/models/CommunityUrlsPermalink.js.map +0 -1
  1917. package/dist/models/ContentDisclosure.d.ts.map +0 -1
  1918. package/dist/models/ContentDisclosure.js.map +0 -1
  1919. package/dist/models/ContentDisclosureAdvertisingDisclosure.d.ts.map +0 -1
  1920. package/dist/models/ContentDisclosureAdvertisingDisclosure.js.map +0 -1
  1921. package/dist/models/ContentDisclosureAiGeneratedDisclosure.d.ts.map +0 -1
  1922. package/dist/models/ContentDisclosureAiGeneratedDisclosure.js.map +0 -1
  1923. package/dist/models/ContentEntryType.d.ts.map +0 -1
  1924. package/dist/models/ContentEntryType.js.map +0 -1
  1925. package/dist/models/ContentItemType.d.ts.map +0 -1
  1926. package/dist/models/ContentItemType.js.map +0 -1
  1927. package/dist/models/ContentUnion.d.ts.map +0 -1
  1928. package/dist/models/ContentUnion.js.map +0 -1
  1929. package/dist/models/ConversationControl.d.ts.map +0 -1
  1930. package/dist/models/ConversationControl.js.map +0 -1
  1931. package/dist/models/CoverCta.d.ts.map +0 -1
  1932. package/dist/models/CoverCta.js.map +0 -1
  1933. package/dist/models/CreateBookmarkResponse.d.ts.map +0 -1
  1934. package/dist/models/CreateBookmarkResponse.js.map +0 -1
  1935. package/dist/models/CreateBookmarkResponseData.d.ts.map +0 -1
  1936. package/dist/models/CreateBookmarkResponseData.js.map +0 -1
  1937. package/dist/models/CreateRetweet.d.ts.map +0 -1
  1938. package/dist/models/CreateRetweet.js.map +0 -1
  1939. package/dist/models/CreateRetweetResponse.d.ts.map +0 -1
  1940. package/dist/models/CreateRetweetResponse.js.map +0 -1
  1941. package/dist/models/CreateRetweetResponseData.d.ts.map +0 -1
  1942. package/dist/models/CreateRetweetResponseData.js.map +0 -1
  1943. package/dist/models/CreateRetweetResponseResult.d.ts.map +0 -1
  1944. package/dist/models/CreateRetweetResponseResult.js.map +0 -1
  1945. package/dist/models/CreateTweet.d.ts.map +0 -1
  1946. package/dist/models/CreateTweet.js.map +0 -1
  1947. package/dist/models/CreateTweetResponse.d.ts.map +0 -1
  1948. package/dist/models/CreateTweetResponse.js.map +0 -1
  1949. package/dist/models/CreateTweetResponseData.d.ts.map +0 -1
  1950. package/dist/models/CreateTweetResponseData.js.map +0 -1
  1951. package/dist/models/CreateTweetResponseResult.d.ts.map +0 -1
  1952. package/dist/models/CreateTweetResponseResult.js.map +0 -1
  1953. package/dist/models/CtaClientEventInfo.d.ts.map +0 -1
  1954. package/dist/models/CtaClientEventInfo.js.map +0 -1
  1955. package/dist/models/CursorType.d.ts.map +0 -1
  1956. package/dist/models/CursorType.js.map +0 -1
  1957. package/dist/models/DeleteBookmarkResponse.d.ts.map +0 -1
  1958. package/dist/models/DeleteBookmarkResponse.js.map +0 -1
  1959. package/dist/models/DeleteBookmarkResponseData.d.ts.map +0 -1
  1960. package/dist/models/DeleteBookmarkResponseData.js.map +0 -1
  1961. package/dist/models/DeleteRetweet.d.ts.map +0 -1
  1962. package/dist/models/DeleteRetweet.js.map +0 -1
  1963. package/dist/models/DeleteRetweetResponse.d.ts.map +0 -1
  1964. package/dist/models/DeleteRetweetResponse.js.map +0 -1
  1965. package/dist/models/DeleteRetweetResponseData.d.ts.map +0 -1
  1966. package/dist/models/DeleteRetweetResponseData.js.map +0 -1
  1967. package/dist/models/DeleteRetweetResponseResult.d.ts.map +0 -1
  1968. package/dist/models/DeleteRetweetResponseResult.js.map +0 -1
  1969. package/dist/models/DeleteTweetResponse.d.ts.map +0 -1
  1970. package/dist/models/DeleteTweetResponse.js.map +0 -1
  1971. package/dist/models/DeleteTweetResponseData.d.ts.map +0 -1
  1972. package/dist/models/DeleteTweetResponseData.js.map +0 -1
  1973. package/dist/models/DeleteTweetResponseResult.d.ts.map +0 -1
  1974. package/dist/models/DeleteTweetResponseResult.js.map +0 -1
  1975. package/dist/models/DisplayTreatment.d.ts.map +0 -1
  1976. package/dist/models/DisplayTreatment.js.map +0 -1
  1977. package/dist/models/DisplayType.d.ts.map +0 -1
  1978. package/dist/models/DisplayType.js.map +0 -1
  1979. package/dist/models/Entities.d.ts.map +0 -1
  1980. package/dist/models/Entities.js.map +0 -1
  1981. package/dist/models/ErrorExtensions.d.ts.map +0 -1
  1982. package/dist/models/ErrorExtensions.js.map +0 -1
  1983. package/dist/models/ErrorResponse.d.ts.map +0 -1
  1984. package/dist/models/ErrorResponse.js.map +0 -1
  1985. package/dist/models/ErrorResponsePathInner.d.ts.map +0 -1
  1986. package/dist/models/ErrorResponsePathInner.js.map +0 -1
  1987. package/dist/models/ExtMediaAvailability.d.ts.map +0 -1
  1988. package/dist/models/ExtMediaAvailability.js.map +0 -1
  1989. package/dist/models/ExtendedEntities.d.ts.map +0 -1
  1990. package/dist/models/ExtendedEntities.js.map +0 -1
  1991. package/dist/models/FavoriteTweet.d.ts.map +0 -1
  1992. package/dist/models/FavoriteTweet.js.map +0 -1
  1993. package/dist/models/FavoriteTweetResponse.d.ts.map +0 -1
  1994. package/dist/models/FavoriteTweetResponse.js.map +0 -1
  1995. package/dist/models/FeedbackInfo.d.ts.map +0 -1
  1996. package/dist/models/FeedbackInfo.js.map +0 -1
  1997. package/dist/models/FollowResponse.d.ts.map +0 -1
  1998. package/dist/models/FollowResponse.js.map +0 -1
  1999. package/dist/models/FollowResponseData.d.ts.map +0 -1
  2000. package/dist/models/FollowResponseData.js.map +0 -1
  2001. package/dist/models/FollowResponseResult.d.ts.map +0 -1
  2002. package/dist/models/FollowResponseResult.js.map +0 -1
  2003. package/dist/models/FollowResponseUser.d.ts.map +0 -1
  2004. package/dist/models/FollowResponseUser.js.map +0 -1
  2005. package/dist/models/FollowTimeline.d.ts.map +0 -1
  2006. package/dist/models/FollowTimeline.js.map +0 -1
  2007. package/dist/models/GrokAnnotation.d.ts.map +0 -1
  2008. package/dist/models/GrokAnnotation.js.map +0 -1
  2009. package/dist/models/GrokEntity.d.ts.map +0 -1
  2010. package/dist/models/GrokEntity.js.map +0 -1
  2011. package/dist/models/GrokEntityRef.d.ts.map +0 -1
  2012. package/dist/models/GrokEntityRef.js.map +0 -1
  2013. package/dist/models/GrokImageAnnotation.d.ts.map +0 -1
  2014. package/dist/models/GrokImageAnnotation.js.map +0 -1
  2015. package/dist/models/GrokShareAttachment.d.ts.map +0 -1
  2016. package/dist/models/GrokShareAttachment.js.map +0 -1
  2017. package/dist/models/GrokShareAttachmentItem.d.ts.map +0 -1
  2018. package/dist/models/GrokShareAttachmentItem.js.map +0 -1
  2019. package/dist/models/GrokTranslatedCommunityNote.d.ts.map +0 -1
  2020. package/dist/models/GrokTranslatedCommunityNote.js.map +0 -1
  2021. package/dist/models/GrokTranslatedCommunityNoteWithAvailability.d.ts.map +0 -1
  2022. package/dist/models/GrokTranslatedCommunityNoteWithAvailability.js.map +0 -1
  2023. package/dist/models/GrokTranslatedPost.d.ts.map +0 -1
  2024. package/dist/models/GrokTranslatedPost.js.map +0 -1
  2025. package/dist/models/GrokTranslatedPostWithAvailability.d.ts.map +0 -1
  2026. package/dist/models/GrokTranslatedPostWithAvailability.js.map +0 -1
  2027. package/dist/models/Highlight.d.ts.map +0 -1
  2028. package/dist/models/Highlight.js.map +0 -1
  2029. package/dist/models/HomeTimelineHome.d.ts.map +0 -1
  2030. package/dist/models/HomeTimelineHome.js.map +0 -1
  2031. package/dist/models/HomeTimelineResponseData.d.ts.map +0 -1
  2032. package/dist/models/HomeTimelineResponseData.js.map +0 -1
  2033. package/dist/models/InstructionType.d.ts.map +0 -1
  2034. package/dist/models/InstructionType.js.map +0 -1
  2035. package/dist/models/InstructionUnion.d.ts.map +0 -1
  2036. package/dist/models/InstructionUnion.js.map +0 -1
  2037. package/dist/models/ItemContentUnion.d.ts.map +0 -1
  2038. package/dist/models/ItemContentUnion.js.map +0 -1
  2039. package/dist/models/ItemResult.d.ts.map +0 -1
  2040. package/dist/models/ItemResult.js.map +0 -1
  2041. package/dist/models/LimitedActionResultsData.d.ts.map +0 -1
  2042. package/dist/models/LimitedActionResultsData.js.map +0 -1
  2043. package/dist/models/ListLatestTweetsTimelineResponse.d.ts.map +0 -1
  2044. package/dist/models/ListLatestTweetsTimelineResponse.js.map +0 -1
  2045. package/dist/models/ListTweetsTimelineData.d.ts.map +0 -1
  2046. package/dist/models/ListTweetsTimelineData.js.map +0 -1
  2047. package/dist/models/ListTweetsTimelineList.d.ts.map +0 -1
  2048. package/dist/models/ListTweetsTimelineList.js.map +0 -1
  2049. package/dist/models/Location.d.ts.map +0 -1
  2050. package/dist/models/Location.js.map +0 -1
  2051. package/dist/models/Media.d.ts.map +0 -1
  2052. package/dist/models/Media.js.map +0 -1
  2053. package/dist/models/MediaCommunityResult.d.ts.map +0 -1
  2054. package/dist/models/MediaCommunityResult.js.map +0 -1
  2055. package/dist/models/MediaCommunityResults.d.ts.map +0 -1
  2056. package/dist/models/MediaCommunityResults.js.map +0 -1
  2057. package/dist/models/MediaCommunityTweetData.d.ts.map +0 -1
  2058. package/dist/models/MediaCommunityTweetData.js.map +0 -1
  2059. package/dist/models/MediaExtended.d.ts.map +0 -1
  2060. package/dist/models/MediaExtended.js.map +0 -1
  2061. package/dist/models/MediaOriginalInfo.d.ts.map +0 -1
  2062. package/dist/models/MediaOriginalInfo.js.map +0 -1
  2063. package/dist/models/MediaOriginalInfoFocusRect.d.ts.map +0 -1
  2064. package/dist/models/MediaOriginalInfoFocusRect.js.map +0 -1
  2065. package/dist/models/MediaResult.d.ts.map +0 -1
  2066. package/dist/models/MediaResult.js.map +0 -1
  2067. package/dist/models/MediaResults.d.ts.map +0 -1
  2068. package/dist/models/MediaResults.js.map +0 -1
  2069. package/dist/models/MediaSize.d.ts.map +0 -1
  2070. package/dist/models/MediaSize.js.map +0 -1
  2071. package/dist/models/MediaSizes.d.ts.map +0 -1
  2072. package/dist/models/MediaSizes.js.map +0 -1
  2073. package/dist/models/MediaStats.d.ts.map +0 -1
  2074. package/dist/models/MediaStats.js.map +0 -1
  2075. package/dist/models/MediaVideoInfo.d.ts.map +0 -1
  2076. package/dist/models/MediaVideoInfo.js.map +0 -1
  2077. package/dist/models/MediaVideoInfoVariant.d.ts.map +0 -1
  2078. package/dist/models/MediaVideoInfoVariant.js.map +0 -1
  2079. package/dist/models/MediaVisibilityResults.d.ts.map +0 -1
  2080. package/dist/models/MediaVisibilityResults.js.map +0 -1
  2081. package/dist/models/MediaVisibilityResultsBlurredImageInterstitial.d.ts.map +0 -1
  2082. package/dist/models/MediaVisibilityResultsBlurredImageInterstitial.js.map +0 -1
  2083. package/dist/models/ModuleEntry.d.ts.map +0 -1
  2084. package/dist/models/ModuleEntry.js.map +0 -1
  2085. package/dist/models/ModuleItem.d.ts.map +0 -1
  2086. package/dist/models/ModuleItem.js.map +0 -1
  2087. package/dist/models/NoteTweet.d.ts.map +0 -1
  2088. package/dist/models/NoteTweet.js.map +0 -1
  2089. package/dist/models/NoteTweetResult.d.ts.map +0 -1
  2090. package/dist/models/NoteTweetResult.js.map +0 -1
  2091. package/dist/models/NoteTweetResultData.d.ts.map +0 -1
  2092. package/dist/models/NoteTweetResultData.js.map +0 -1
  2093. package/dist/models/NoteTweetResultMedia.d.ts.map +0 -1
  2094. package/dist/models/NoteTweetResultMedia.js.map +0 -1
  2095. package/dist/models/NoteTweetResultMediaInlineMedia.d.ts.map +0 -1
  2096. package/dist/models/NoteTweetResultMediaInlineMedia.js.map +0 -1
  2097. package/dist/models/NoteTweetResultRichText.d.ts.map +0 -1
  2098. package/dist/models/NoteTweetResultRichText.js.map +0 -1
  2099. package/dist/models/NoteTweetResultRichTextTag.d.ts.map +0 -1
  2100. package/dist/models/NoteTweetResultRichTextTag.js.map +0 -1
  2101. package/dist/models/NotificationTemplate.d.ts.map +0 -1
  2102. package/dist/models/NotificationTemplate.js.map +0 -1
  2103. package/dist/models/NotificationsResult.d.ts.map +0 -1
  2104. package/dist/models/NotificationsResult.js.map +0 -1
  2105. package/dist/models/NotificationsTimelineData.d.ts.map +0 -1
  2106. package/dist/models/NotificationsTimelineData.js.map +0 -1
  2107. package/dist/models/NotificationsTimelineResponse.d.ts.map +0 -1
  2108. package/dist/models/NotificationsTimelineResponse.js.map +0 -1
  2109. package/dist/models/NotificationsUserResults.d.ts.map +0 -1
  2110. package/dist/models/NotificationsUserResults.js.map +0 -1
  2111. package/dist/models/NotificationsViewerV2.d.ts.map +0 -1
  2112. package/dist/models/NotificationsViewerV2.js.map +0 -1
  2113. package/dist/models/OneFactorLoginEligibility.d.ts.map +0 -1
  2114. package/dist/models/OneFactorLoginEligibility.js.map +0 -1
  2115. package/dist/models/OtherObjectAll.d.ts.map +0 -1
  2116. package/dist/models/OtherObjectAll.js.map +0 -1
  2117. package/dist/models/PostCreateBookmarkRequest.d.ts.map +0 -1
  2118. package/dist/models/PostCreateBookmarkRequest.js.map +0 -1
  2119. package/dist/models/PostCreateBookmarkRequestVariables.d.ts.map +0 -1
  2120. package/dist/models/PostCreateBookmarkRequestVariables.js.map +0 -1
  2121. package/dist/models/PostCreateRetweetRequest.d.ts.map +0 -1
  2122. package/dist/models/PostCreateRetweetRequest.js.map +0 -1
  2123. package/dist/models/PostCreateRetweetRequestVariables.d.ts.map +0 -1
  2124. package/dist/models/PostCreateRetweetRequestVariables.js.map +0 -1
  2125. package/dist/models/PostCreateTweetRequest.d.ts.map +0 -1
  2126. package/dist/models/PostCreateTweetRequest.js.map +0 -1
  2127. package/dist/models/PostCreateTweetRequestFeatures.d.ts.map +0 -1
  2128. package/dist/models/PostCreateTweetRequestFeatures.js.map +0 -1
  2129. package/dist/models/PostCreateTweetRequestVariables.d.ts.map +0 -1
  2130. package/dist/models/PostCreateTweetRequestVariables.js.map +0 -1
  2131. package/dist/models/PostCreateTweetRequestVariablesConversationControl.d.ts.map +0 -1
  2132. package/dist/models/PostCreateTweetRequestVariablesConversationControl.js.map +0 -1
  2133. package/dist/models/PostCreateTweetRequestVariablesMedia.d.ts.map +0 -1
  2134. package/dist/models/PostCreateTweetRequestVariablesMedia.js.map +0 -1
  2135. package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.d.ts.map +0 -1
  2136. package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.js.map +0 -1
  2137. package/dist/models/PostCreateTweetRequestVariablesReply.d.ts.map +0 -1
  2138. package/dist/models/PostCreateTweetRequestVariablesReply.js.map +0 -1
  2139. package/dist/models/PostCta.d.ts.map +0 -1
  2140. package/dist/models/PostCta.js.map +0 -1
  2141. package/dist/models/PostCtaTitleText.d.ts.map +0 -1
  2142. package/dist/models/PostCtaTitleText.js.map +0 -1
  2143. package/dist/models/PostCtaTitleTextEntity.d.ts.map +0 -1
  2144. package/dist/models/PostCtaTitleTextEntity.js.map +0 -1
  2145. package/dist/models/PostCtaTitleTextEntityRef.d.ts.map +0 -1
  2146. package/dist/models/PostCtaTitleTextEntityRef.js.map +0 -1
  2147. package/dist/models/PostCtaUserResults.d.ts.map +0 -1
  2148. package/dist/models/PostCtaUserResults.js.map +0 -1
  2149. package/dist/models/PostCtaUserResultsAvatar.d.ts.map +0 -1
  2150. package/dist/models/PostCtaUserResultsAvatar.js.map +0 -1
  2151. package/dist/models/PostCtaUserResultsResult.d.ts.map +0 -1
  2152. package/dist/models/PostCtaUserResultsResult.js.map +0 -1
  2153. package/dist/models/PostDeleteBookmarkRequest.d.ts.map +0 -1
  2154. package/dist/models/PostDeleteBookmarkRequest.js.map +0 -1
  2155. package/dist/models/PostDeleteRetweetRequest.d.ts.map +0 -1
  2156. package/dist/models/PostDeleteRetweetRequest.js.map +0 -1
  2157. package/dist/models/PostDeleteRetweetRequestVariables.d.ts.map +0 -1
  2158. package/dist/models/PostDeleteRetweetRequestVariables.js.map +0 -1
  2159. package/dist/models/PostDeleteTweetRequest.d.ts.map +0 -1
  2160. package/dist/models/PostDeleteTweetRequest.js.map +0 -1
  2161. package/dist/models/PostFavoriteTweetRequest.d.ts.map +0 -1
  2162. package/dist/models/PostFavoriteTweetRequest.js.map +0 -1
  2163. package/dist/models/PostUnfavoriteTweetRequest.d.ts.map +0 -1
  2164. package/dist/models/PostUnfavoriteTweetRequest.js.map +0 -1
  2165. package/dist/models/PrimaryCommunityTopic.d.ts.map +0 -1
  2166. package/dist/models/PrimaryCommunityTopic.js.map +0 -1
  2167. package/dist/models/ProfileBio.d.ts.map +0 -1
  2168. package/dist/models/ProfileBio.js.map +0 -1
  2169. package/dist/models/ProfileResponse.d.ts.map +0 -1
  2170. package/dist/models/ProfileResponse.js.map +0 -1
  2171. package/dist/models/ProfileResponseData.d.ts.map +0 -1
  2172. package/dist/models/ProfileResponseData.js.map +0 -1
  2173. package/dist/models/QuotedRefResult.d.ts.map +0 -1
  2174. package/dist/models/QuotedRefResult.js.map +0 -1
  2175. package/dist/models/QuotedStatusPermalink.d.ts.map +0 -1
  2176. package/dist/models/QuotedStatusPermalink.js.map +0 -1
  2177. package/dist/models/RankedCommunityResult.d.ts.map +0 -1
  2178. package/dist/models/RankedCommunityResult.js.map +0 -1
  2179. package/dist/models/RankedCommunityResults.d.ts.map +0 -1
  2180. package/dist/models/RankedCommunityResults.js.map +0 -1
  2181. package/dist/models/RankedCommunityTweetData.d.ts.map +0 -1
  2182. package/dist/models/RankedCommunityTweetData.js.map +0 -1
  2183. package/dist/models/Retweet.d.ts.map +0 -1
  2184. package/dist/models/Retweet.js.map +0 -1
  2185. package/dist/models/RetweetLegacy.d.ts.map +0 -1
  2186. package/dist/models/RetweetLegacy.js.map +0 -1
  2187. package/dist/models/RichMessage.d.ts.map +0 -1
  2188. package/dist/models/RichMessage.js.map +0 -1
  2189. package/dist/models/SearchByRawQuery.d.ts.map +0 -1
  2190. package/dist/models/SearchByRawQuery.js.map +0 -1
  2191. package/dist/models/SearchTimeline.d.ts.map +0 -1
  2192. package/dist/models/SearchTimeline.js.map +0 -1
  2193. package/dist/models/SearchTimelineData.d.ts.map +0 -1
  2194. package/dist/models/SearchTimelineData.js.map +0 -1
  2195. package/dist/models/SearchTimelineResponse.d.ts.map +0 -1
  2196. package/dist/models/SearchTimelineResponse.js.map +0 -1
  2197. package/dist/models/SelfThread.d.ts.map +0 -1
  2198. package/dist/models/SelfThread.js.map +0 -1
  2199. package/dist/models/SensitiveMediaWarning.d.ts.map +0 -1
  2200. package/dist/models/SensitiveMediaWarning.js.map +0 -1
  2201. package/dist/models/Session.d.ts.map +0 -1
  2202. package/dist/models/Session.js.map +0 -1
  2203. package/dist/models/Smarttag.d.ts.map +0 -1
  2204. package/dist/models/Smarttag.js.map +0 -1
  2205. package/dist/models/SmarttagTag.d.ts.map +0 -1
  2206. package/dist/models/SmarttagTag.js.map +0 -1
  2207. package/dist/models/SocialContextLandingUrl.d.ts.map +0 -1
  2208. package/dist/models/SocialContextLandingUrl.js.map +0 -1
  2209. package/dist/models/SocialContextUnion.d.ts.map +0 -1
  2210. package/dist/models/SocialContextUnion.js.map +0 -1
  2211. package/dist/models/SocialContextUnionType.d.ts.map +0 -1
  2212. package/dist/models/SocialContextUnionType.js.map +0 -1
  2213. package/dist/models/SuperFollowUserProfile.d.ts.map +0 -1
  2214. package/dist/models/SuperFollowUserProfile.js.map +0 -1
  2215. package/dist/models/SuperFollowsReplyUserResult.d.ts.map +0 -1
  2216. package/dist/models/SuperFollowsReplyUserResult.js.map +0 -1
  2217. package/dist/models/SuperFollowsReplyUserResultCore.d.ts.map +0 -1
  2218. package/dist/models/SuperFollowsReplyUserResultCore.js.map +0 -1
  2219. package/dist/models/SuperFollowsReplyUserResultData.d.ts.map +0 -1
  2220. package/dist/models/SuperFollowsReplyUserResultData.js.map +0 -1
  2221. package/dist/models/SuperFollowsReplyUserResultLegacy.d.ts.map +0 -1
  2222. package/dist/models/SuperFollowsReplyUserResultLegacy.js.map +0 -1
  2223. package/dist/models/Text.d.ts.map +0 -1
  2224. package/dist/models/Text.js.map +0 -1
  2225. package/dist/models/TextEntity.d.ts.map +0 -1
  2226. package/dist/models/TextEntity.js.map +0 -1
  2227. package/dist/models/TextEntityRef.d.ts.map +0 -1
  2228. package/dist/models/TextEntityRef.js.map +0 -1
  2229. package/dist/models/TextHighlight.d.ts.map +0 -1
  2230. package/dist/models/TextHighlight.js.map +0 -1
  2231. package/dist/models/ThumbnailImage.d.ts.map +0 -1
  2232. package/dist/models/ThumbnailImage.js.map +0 -1
  2233. package/dist/models/Timeline.d.ts.map +0 -1
  2234. package/dist/models/Timeline.js.map +0 -1
  2235. package/dist/models/TimelineAddEntries.d.ts.map +0 -1
  2236. package/dist/models/TimelineAddEntries.js.map +0 -1
  2237. package/dist/models/TimelineAddEntry.d.ts.map +0 -1
  2238. package/dist/models/TimelineAddEntry.js.map +0 -1
  2239. package/dist/models/TimelineAddToModule.d.ts.map +0 -1
  2240. package/dist/models/TimelineAddToModule.js.map +0 -1
  2241. package/dist/models/TimelineClearCache.d.ts.map +0 -1
  2242. package/dist/models/TimelineClearCache.js.map +0 -1
  2243. package/dist/models/TimelineClearEntriesUnreadState.d.ts.map +0 -1
  2244. package/dist/models/TimelineClearEntriesUnreadState.js.map +0 -1
  2245. package/dist/models/TimelineCommunity.d.ts.map +0 -1
  2246. package/dist/models/TimelineCommunity.js.map +0 -1
  2247. package/dist/models/TimelineCoverBehavior.d.ts.map +0 -1
  2248. package/dist/models/TimelineCoverBehavior.js.map +0 -1
  2249. package/dist/models/TimelineCoverBehaviorUrl.d.ts.map +0 -1
  2250. package/dist/models/TimelineCoverBehaviorUrl.js.map +0 -1
  2251. package/dist/models/TimelineGeneralContext.d.ts.map +0 -1
  2252. package/dist/models/TimelineGeneralContext.js.map +0 -1
  2253. package/dist/models/TimelineHalfCover.d.ts.map +0 -1
  2254. package/dist/models/TimelineHalfCover.js.map +0 -1
  2255. package/dist/models/TimelineMarkEntriesUnreadGreaterThanSortIndex.d.ts.map +0 -1
  2256. package/dist/models/TimelineMarkEntriesUnreadGreaterThanSortIndex.js.map +0 -1
  2257. package/dist/models/TimelineMessagePrompt.d.ts.map +0 -1
  2258. package/dist/models/TimelineMessagePrompt.js.map +0 -1
  2259. package/dist/models/TimelineNotification.d.ts.map +0 -1
  2260. package/dist/models/TimelineNotification.js.map +0 -1
  2261. package/dist/models/TimelinePinEntry.d.ts.map +0 -1
  2262. package/dist/models/TimelinePinEntry.js.map +0 -1
  2263. package/dist/models/TimelinePrompt.d.ts.map +0 -1
  2264. package/dist/models/TimelinePrompt.js.map +0 -1
  2265. package/dist/models/TimelineReplaceEntry.d.ts.map +0 -1
  2266. package/dist/models/TimelineReplaceEntry.js.map +0 -1
  2267. package/dist/models/TimelineResponse.d.ts.map +0 -1
  2268. package/dist/models/TimelineResponse.js.map +0 -1
  2269. package/dist/models/TimelineResult.d.ts.map +0 -1
  2270. package/dist/models/TimelineResult.js.map +0 -1
  2271. package/dist/models/TimelineShowAlert.d.ts.map +0 -1
  2272. package/dist/models/TimelineShowAlert.js.map +0 -1
  2273. package/dist/models/TimelineShowAlertRichText.d.ts.map +0 -1
  2274. package/dist/models/TimelineShowAlertRichText.js.map +0 -1
  2275. package/dist/models/TimelineShowCover.d.ts.map +0 -1
  2276. package/dist/models/TimelineShowCover.js.map +0 -1
  2277. package/dist/models/TimelineTerminateTimeline.d.ts.map +0 -1
  2278. package/dist/models/TimelineTerminateTimeline.js.map +0 -1
  2279. package/dist/models/TimelineTimelineCursor.d.ts.map +0 -1
  2280. package/dist/models/TimelineTimelineCursor.js.map +0 -1
  2281. package/dist/models/TimelineTimelineItem.d.ts.map +0 -1
  2282. package/dist/models/TimelineTimelineItem.js.map +0 -1
  2283. package/dist/models/TimelineTimelineModule.d.ts.map +0 -1
  2284. package/dist/models/TimelineTimelineModule.js.map +0 -1
  2285. package/dist/models/TimelineTombstone.d.ts.map +0 -1
  2286. package/dist/models/TimelineTombstone.js.map +0 -1
  2287. package/dist/models/TimelineTopicContext.d.ts.map +0 -1
  2288. package/dist/models/TimelineTopicContext.js.map +0 -1
  2289. package/dist/models/TimelineTrend.d.ts.map +0 -1
  2290. package/dist/models/TimelineTrend.js.map +0 -1
  2291. package/dist/models/TimelineTweet.d.ts.map +0 -1
  2292. package/dist/models/TimelineTweet.js.map +0 -1
  2293. package/dist/models/TimelineUser.d.ts.map +0 -1
  2294. package/dist/models/TimelineUser.js.map +0 -1
  2295. package/dist/models/Timestamp.d.ts.map +0 -1
  2296. package/dist/models/Timestamp.js.map +0 -1
  2297. package/dist/models/TombstoneEntity.d.ts.map +0 -1
  2298. package/dist/models/TombstoneEntity.js.map +0 -1
  2299. package/dist/models/TombstoneInfo.d.ts.map +0 -1
  2300. package/dist/models/TombstoneInfo.js.map +0 -1
  2301. package/dist/models/TombstoneRef.d.ts.map +0 -1
  2302. package/dist/models/TombstoneRef.js.map +0 -1
  2303. package/dist/models/TombstoneRichText.d.ts.map +0 -1
  2304. package/dist/models/TombstoneRichText.js.map +0 -1
  2305. package/dist/models/TopicContext.d.ts.map +0 -1
  2306. package/dist/models/TopicContext.js.map +0 -1
  2307. package/dist/models/Tracing.d.ts.map +0 -1
  2308. package/dist/models/Tracing.js.map +0 -1
  2309. package/dist/models/TrendImage.d.ts.map +0 -1
  2310. package/dist/models/TrendImage.js.map +0 -1
  2311. package/dist/models/TrendMetadata.d.ts.map +0 -1
  2312. package/dist/models/TrendMetadata.js.map +0 -1
  2313. package/dist/models/TrendResults.d.ts.map +0 -1
  2314. package/dist/models/TrendResults.js.map +0 -1
  2315. package/dist/models/Tweet.d.ts.map +0 -1
  2316. package/dist/models/Tweet.js.map +0 -1
  2317. package/dist/models/TweetCard.d.ts.map +0 -1
  2318. package/dist/models/TweetCard.js.map +0 -1
  2319. package/dist/models/TweetCardLegacy.d.ts.map +0 -1
  2320. package/dist/models/TweetCardLegacy.js.map +0 -1
  2321. package/dist/models/TweetCardLegacyBindingValue.d.ts.map +0 -1
  2322. package/dist/models/TweetCardLegacyBindingValue.js.map +0 -1
  2323. package/dist/models/TweetCardLegacyBindingValueData.d.ts.map +0 -1
  2324. package/dist/models/TweetCardLegacyBindingValueData.js.map +0 -1
  2325. package/dist/models/TweetCardLegacyBindingValueDataImage.d.ts.map +0 -1
  2326. package/dist/models/TweetCardLegacyBindingValueDataImage.js.map +0 -1
  2327. package/dist/models/TweetCardPlatform.d.ts.map +0 -1
  2328. package/dist/models/TweetCardPlatform.js.map +0 -1
  2329. package/dist/models/TweetCardPlatformAudience.d.ts.map +0 -1
  2330. package/dist/models/TweetCardPlatformAudience.js.map +0 -1
  2331. package/dist/models/TweetCardPlatformData.d.ts.map +0 -1
  2332. package/dist/models/TweetCardPlatformData.js.map +0 -1
  2333. package/dist/models/TweetCardPlatformDevice.d.ts.map +0 -1
  2334. package/dist/models/TweetCardPlatformDevice.js.map +0 -1
  2335. package/dist/models/TweetDetailResponse.d.ts.map +0 -1
  2336. package/dist/models/TweetDetailResponse.js.map +0 -1
  2337. package/dist/models/TweetDetailResponseData.d.ts.map +0 -1
  2338. package/dist/models/TweetDetailResponseData.js.map +0 -1
  2339. package/dist/models/TweetEditControl.d.ts.map +0 -1
  2340. package/dist/models/TweetEditControl.js.map +0 -1
  2341. package/dist/models/TweetEditControlInitial.d.ts.map +0 -1
  2342. package/dist/models/TweetEditControlInitial.js.map +0 -1
  2343. package/dist/models/TweetEditPrespective.d.ts.map +0 -1
  2344. package/dist/models/TweetEditPrespective.js.map +0 -1
  2345. package/dist/models/TweetFavoritersResponse.d.ts.map +0 -1
  2346. package/dist/models/TweetFavoritersResponse.js.map +0 -1
  2347. package/dist/models/TweetFavoritersResponseData.d.ts.map +0 -1
  2348. package/dist/models/TweetFavoritersResponseData.js.map +0 -1
  2349. package/dist/models/TweetInterstitial.d.ts.map +0 -1
  2350. package/dist/models/TweetInterstitial.js.map +0 -1
  2351. package/dist/models/TweetInterstitialRevealText.d.ts.map +0 -1
  2352. package/dist/models/TweetInterstitialRevealText.js.map +0 -1
  2353. package/dist/models/TweetInterstitialText.d.ts.map +0 -1
  2354. package/dist/models/TweetInterstitialText.js.map +0 -1
  2355. package/dist/models/TweetInterstitialTextEntity.d.ts.map +0 -1
  2356. package/dist/models/TweetInterstitialTextEntity.js.map +0 -1
  2357. package/dist/models/TweetInterstitialTextEntityRef.d.ts.map +0 -1
  2358. package/dist/models/TweetInterstitialTextEntityRef.js.map +0 -1
  2359. package/dist/models/TweetLegacy.d.ts.map +0 -1
  2360. package/dist/models/TweetLegacy.js.map +0 -1
  2361. package/dist/models/TweetLegacyScopes.d.ts.map +0 -1
  2362. package/dist/models/TweetLegacyScopes.js.map +0 -1
  2363. package/dist/models/TweetLimitedActionResults.d.ts.map +0 -1
  2364. package/dist/models/TweetLimitedActionResults.js.map +0 -1
  2365. package/dist/models/TweetPostCta.d.ts.map +0 -1
  2366. package/dist/models/TweetPostCta.js.map +0 -1
  2367. package/dist/models/TweetPreviewDisplay.d.ts.map +0 -1
  2368. package/dist/models/TweetPreviewDisplay.js.map +0 -1
  2369. package/dist/models/TweetPreviewDisplayCta.d.ts.map +0 -1
  2370. package/dist/models/TweetPreviewDisplayCta.js.map +0 -1
  2371. package/dist/models/TweetPreviewDisplayCtaUrl.d.ts.map +0 -1
  2372. package/dist/models/TweetPreviewDisplayCtaUrl.js.map +0 -1
  2373. package/dist/models/TweetPreviewDisplayTweet.d.ts.map +0 -1
  2374. package/dist/models/TweetPreviewDisplayTweet.js.map +0 -1
  2375. package/dist/models/TweetPreviewDisplayTweetViewCount.d.ts.map +0 -1
  2376. package/dist/models/TweetPreviewDisplayTweetViewCount.js.map +0 -1
  2377. package/dist/models/TweetPreviousCounts.d.ts.map +0 -1
  2378. package/dist/models/TweetPreviousCounts.js.map +0 -1
  2379. package/dist/models/TweetResultByRestIdData.d.ts.map +0 -1
  2380. package/dist/models/TweetResultByRestIdData.js.map +0 -1
  2381. package/dist/models/TweetResultByRestIdResponse.d.ts.map +0 -1
  2382. package/dist/models/TweetResultByRestIdResponse.js.map +0 -1
  2383. package/dist/models/TweetRetweetersResponse.d.ts.map +0 -1
  2384. package/dist/models/TweetRetweetersResponse.js.map +0 -1
  2385. package/dist/models/TweetRetweetersResponseData.d.ts.map +0 -1
  2386. package/dist/models/TweetRetweetersResponseData.js.map +0 -1
  2387. package/dist/models/TweetTombstone.d.ts.map +0 -1
  2388. package/dist/models/TweetTombstone.js.map +0 -1
  2389. package/dist/models/TweetUnavailable.d.ts.map +0 -1
  2390. package/dist/models/TweetUnavailable.js.map +0 -1
  2391. package/dist/models/TweetUnion.d.ts.map +0 -1
  2392. package/dist/models/TweetUnion.js.map +0 -1
  2393. package/dist/models/TweetView.d.ts.map +0 -1
  2394. package/dist/models/TweetView.js.map +0 -1
  2395. package/dist/models/TweetWithVisibilityResults.d.ts.map +0 -1
  2396. package/dist/models/TweetWithVisibilityResults.js.map +0 -1
  2397. package/dist/models/TypeName.d.ts.map +0 -1
  2398. package/dist/models/TypeName.js.map +0 -1
  2399. package/dist/models/UnfavoriteTweet.d.ts.map +0 -1
  2400. package/dist/models/UnfavoriteTweet.js.map +0 -1
  2401. package/dist/models/UnfavoriteTweetResponse.d.ts.map +0 -1
  2402. package/dist/models/UnfavoriteTweetResponse.js.map +0 -1
  2403. package/dist/models/UnifiedCard.d.ts.map +0 -1
  2404. package/dist/models/UnifiedCard.js.map +0 -1
  2405. package/dist/models/Url.d.ts.map +0 -1
  2406. package/dist/models/Url.js.map +0 -1
  2407. package/dist/models/UrtEndpointOptions.d.ts.map +0 -1
  2408. package/dist/models/UrtEndpointOptions.js.map +0 -1
  2409. package/dist/models/UrtEndpointRequestParams.d.ts.map +0 -1
  2410. package/dist/models/UrtEndpointRequestParams.js.map +0 -1
  2411. package/dist/models/User.d.ts.map +0 -1
  2412. package/dist/models/User.js.map +0 -1
  2413. package/dist/models/UserAvatar.d.ts.map +0 -1
  2414. package/dist/models/UserAvatar.js.map +0 -1
  2415. package/dist/models/UserCore.d.ts.map +0 -1
  2416. package/dist/models/UserCore.js.map +0 -1
  2417. package/dist/models/UserDmPermissions.d.ts.map +0 -1
  2418. package/dist/models/UserDmPermissions.js.map +0 -1
  2419. package/dist/models/UserFeatures.d.ts.map +0 -1
  2420. package/dist/models/UserFeatures.js.map +0 -1
  2421. package/dist/models/UserHighlightsInfo.d.ts.map +0 -1
  2422. package/dist/models/UserHighlightsInfo.js.map +0 -1
  2423. package/dist/models/UserHighlightsTweetsData.d.ts.map +0 -1
  2424. package/dist/models/UserHighlightsTweetsData.js.map +0 -1
  2425. package/dist/models/UserHighlightsTweetsResponse.d.ts.map +0 -1
  2426. package/dist/models/UserHighlightsTweetsResponse.js.map +0 -1
  2427. package/dist/models/UserHighlightsTweetsResult.d.ts.map +0 -1
  2428. package/dist/models/UserHighlightsTweetsResult.js.map +0 -1
  2429. package/dist/models/UserHighlightsTweetsTimeline.d.ts.map +0 -1
  2430. package/dist/models/UserHighlightsTweetsTimeline.js.map +0 -1
  2431. package/dist/models/UserHighlightsTweetsUser.d.ts.map +0 -1
  2432. package/dist/models/UserHighlightsTweetsUser.js.map +0 -1
  2433. package/dist/models/UserLegacy.d.ts.map +0 -1
  2434. package/dist/models/UserLegacy.js.map +0 -1
  2435. package/dist/models/UserLegacyExtendedProfile.d.ts.map +0 -1
  2436. package/dist/models/UserLegacyExtendedProfile.js.map +0 -1
  2437. package/dist/models/UserLegacyExtendedProfileBirthdate.d.ts.map +0 -1
  2438. package/dist/models/UserLegacyExtendedProfileBirthdate.js.map +0 -1
  2439. package/dist/models/UserLocation.d.ts.map +0 -1
  2440. package/dist/models/UserLocation.js.map +0 -1
  2441. package/dist/models/UserMediaPermissions.d.ts.map +0 -1
  2442. package/dist/models/UserMediaPermissions.js.map +0 -1
  2443. package/dist/models/UserPrivacy.d.ts.map +0 -1
  2444. package/dist/models/UserPrivacy.js.map +0 -1
  2445. package/dist/models/UserProfessional.d.ts.map +0 -1
  2446. package/dist/models/UserProfessional.js.map +0 -1
  2447. package/dist/models/UserProfessionalCategory.d.ts.map +0 -1
  2448. package/dist/models/UserProfessionalCategory.js.map +0 -1
  2449. package/dist/models/UserProfile.d.ts.map +0 -1
  2450. package/dist/models/UserProfile.js.map +0 -1
  2451. package/dist/models/UserRelationshipPerspectives.d.ts.map +0 -1
  2452. package/dist/models/UserRelationshipPerspectives.js.map +0 -1
  2453. package/dist/models/UserResponse.d.ts.map +0 -1
  2454. package/dist/models/UserResponse.js.map +0 -1
  2455. package/dist/models/UserResponseData.d.ts.map +0 -1
  2456. package/dist/models/UserResponseData.js.map +0 -1
  2457. package/dist/models/UserResultByScreenName.d.ts.map +0 -1
  2458. package/dist/models/UserResultByScreenName.js.map +0 -1
  2459. package/dist/models/UserResultByScreenNameCore.d.ts.map +0 -1
  2460. package/dist/models/UserResultByScreenNameCore.js.map +0 -1
  2461. package/dist/models/UserResultByScreenNameLegacy.d.ts.map +0 -1
  2462. package/dist/models/UserResultByScreenNameLegacy.js.map +0 -1
  2463. package/dist/models/UserResultByScreenNameResult.d.ts.map +0 -1
  2464. package/dist/models/UserResultByScreenNameResult.js.map +0 -1
  2465. package/dist/models/UserResultCore.d.ts.map +0 -1
  2466. package/dist/models/UserResultCore.js.map +0 -1
  2467. package/dist/models/UserResultPrivacy.d.ts.map +0 -1
  2468. package/dist/models/UserResultPrivacy.js.map +0 -1
  2469. package/dist/models/UserResultRelationshipPerspectives.d.ts.map +0 -1
  2470. package/dist/models/UserResultRelationshipPerspectives.js.map +0 -1
  2471. package/dist/models/UserResults.d.ts.map +0 -1
  2472. package/dist/models/UserResults.js.map +0 -1
  2473. package/dist/models/UserTipJarSettings.d.ts.map +0 -1
  2474. package/dist/models/UserTipJarSettings.js.map +0 -1
  2475. package/dist/models/UserTweetsData.d.ts.map +0 -1
  2476. package/dist/models/UserTweetsData.js.map +0 -1
  2477. package/dist/models/UserTweetsResponse.d.ts.map +0 -1
  2478. package/dist/models/UserTweetsResponse.js.map +0 -1
  2479. package/dist/models/UserTweetsResultV1.d.ts.map +0 -1
  2480. package/dist/models/UserTweetsResultV1.js.map +0 -1
  2481. package/dist/models/UserTweetsResultV2.d.ts.map +0 -1
  2482. package/dist/models/UserTweetsResultV2.js.map +0 -1
  2483. package/dist/models/UserTweetsUser.d.ts.map +0 -1
  2484. package/dist/models/UserTweetsUser.js.map +0 -1
  2485. package/dist/models/UserUnavailable.d.ts.map +0 -1
  2486. package/dist/models/UserUnavailable.js.map +0 -1
  2487. package/dist/models/UserUnion.d.ts.map +0 -1
  2488. package/dist/models/UserUnion.js.map +0 -1
  2489. package/dist/models/UserValue.d.ts.map +0 -1
  2490. package/dist/models/UserValue.js.map +0 -1
  2491. package/dist/models/UserVerification.d.ts.map +0 -1
  2492. package/dist/models/UserVerification.js.map +0 -1
  2493. package/dist/models/UserVerificationInfo.d.ts.map +0 -1
  2494. package/dist/models/UserVerificationInfo.js.map +0 -1
  2495. package/dist/models/UserVerificationInfoReason.d.ts.map +0 -1
  2496. package/dist/models/UserVerificationInfoReason.js.map +0 -1
  2497. package/dist/models/UserVerificationInfoReasonDescription.d.ts.map +0 -1
  2498. package/dist/models/UserVerificationInfoReasonDescription.js.map +0 -1
  2499. package/dist/models/UserVerificationInfoReasonDescriptionEntities.d.ts.map +0 -1
  2500. package/dist/models/UserVerificationInfoReasonDescriptionEntities.js.map +0 -1
  2501. package/dist/models/UserVerificationInfoReasonDescriptionEntitiesRef.d.ts.map +0 -1
  2502. package/dist/models/UserVerificationInfoReasonDescriptionEntitiesRef.js.map +0 -1
  2503. package/dist/models/UsersResponse.d.ts.map +0 -1
  2504. package/dist/models/UsersResponse.js.map +0 -1
  2505. package/dist/models/UsersResponseData.d.ts.map +0 -1
  2506. package/dist/models/UsersResponseData.js.map +0 -1
  2507. package/dist/models/index.d.ts.map +0 -1
  2508. package/dist/models/index.js.map +0 -1
  2509. package/dist/runtime.d.ts.map +0 -1
  2510. package/dist/runtime.js.map +0 -1
@@ -12,21 +12,6 @@
12
12
  * https://openapi-generator.tech
13
13
  * Do not edit the class manually.
14
14
  */
15
- var __extends = (this && this.__extends) || (function () {
16
- var extendStatics = function (d, b) {
17
- extendStatics = Object.setPrototypeOf ||
18
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
- return extendStatics(d, b);
21
- };
22
- return function (d, b) {
23
- if (typeof b !== "function" && b !== null)
24
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
- extendStatics(d, b);
26
- function __() { this.constructor = d; }
27
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
- };
29
- })();
30
15
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
31
16
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
32
17
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -36,1893 +21,1550 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
36
21
  step((generator = generator.apply(thisArg, _arguments || [])).next());
37
22
  });
38
23
  };
39
- var __generator = (this && this.__generator) || function (thisArg, body) {
40
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
41
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
42
- function verb(n) { return function (v) { return step([n, v]); }; }
43
- function step(op) {
44
- if (f) throw new TypeError("Generator is already executing.");
45
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
46
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
47
- if (y = 0, t) op = [op[0] & 2, t.value];
48
- switch (op[0]) {
49
- case 0: case 1: t = op; break;
50
- case 4: _.label++; return { value: op[1], done: false };
51
- case 5: _.label++; y = op[1]; op = [0]; continue;
52
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
53
- default:
54
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
55
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
56
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
57
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
58
- if (t[2]) _.ops.pop();
59
- _.trys.pop(); continue;
60
- }
61
- op = body.call(thisArg, _);
62
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
63
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
64
- }
65
- };
66
24
  Object.defineProperty(exports, "__esModule", { value: true });
67
25
  exports.PostApi = void 0;
68
- var runtime = require("../runtime");
69
- var CreateBookmarkResponse_1 = require("../models/CreateBookmarkResponse");
70
- var CreateRetweetResponse_1 = require("../models/CreateRetweetResponse");
71
- var CreateTweetResponse_1 = require("../models/CreateTweetResponse");
72
- var DeleteBookmarkResponse_1 = require("../models/DeleteBookmarkResponse");
73
- var DeleteRetweetResponse_1 = require("../models/DeleteRetweetResponse");
74
- var DeleteTweetResponse_1 = require("../models/DeleteTweetResponse");
75
- var FavoriteTweetResponse_1 = require("../models/FavoriteTweetResponse");
76
- var PostCreateBookmarkRequest_1 = require("../models/PostCreateBookmarkRequest");
77
- var PostCreateRetweetRequest_1 = require("../models/PostCreateRetweetRequest");
78
- var PostCreateTweetRequest_1 = require("../models/PostCreateTweetRequest");
79
- var PostDeleteBookmarkRequest_1 = require("../models/PostDeleteBookmarkRequest");
80
- var PostDeleteRetweetRequest_1 = require("../models/PostDeleteRetweetRequest");
81
- var PostDeleteTweetRequest_1 = require("../models/PostDeleteTweetRequest");
82
- var PostFavoriteTweetRequest_1 = require("../models/PostFavoriteTweetRequest");
83
- var PostUnfavoriteTweetRequest_1 = require("../models/PostUnfavoriteTweetRequest");
84
- var UnfavoriteTweetResponse_1 = require("../models/UnfavoriteTweetResponse");
26
+ const runtime = require("../runtime");
27
+ const CreateBookmarkResponse_1 = require("../models/CreateBookmarkResponse");
28
+ const CreateDraftTweetResponse_1 = require("../models/CreateDraftTweetResponse");
29
+ const CreateRetweetResponse_1 = require("../models/CreateRetweetResponse");
30
+ const CreateTweetResponse_1 = require("../models/CreateTweetResponse");
31
+ const DeleteBookmarkResponse_1 = require("../models/DeleteBookmarkResponse");
32
+ const DeleteDraftTweetsResponse_1 = require("../models/DeleteDraftTweetsResponse");
33
+ const DeleteListResponse_1 = require("../models/DeleteListResponse");
34
+ const DeleteRetweetResponse_1 = require("../models/DeleteRetweetResponse");
35
+ const DeleteTweetResponse_1 = require("../models/DeleteTweetResponse");
36
+ const FavoriteTweetResponse_1 = require("../models/FavoriteTweetResponse");
37
+ const ListResponse_1 = require("../models/ListResponse");
38
+ const PostCreateBookmarkRequest_1 = require("../models/PostCreateBookmarkRequest");
39
+ const PostCreateDraftTweetRequest_1 = require("../models/PostCreateDraftTweetRequest");
40
+ const PostCreateListRequest_1 = require("../models/PostCreateListRequest");
41
+ const PostCreateRetweetRequest_1 = require("../models/PostCreateRetweetRequest");
42
+ const PostCreateTweetRequest_1 = require("../models/PostCreateTweetRequest");
43
+ const PostDeleteBookmarkRequest_1 = require("../models/PostDeleteBookmarkRequest");
44
+ const PostDeleteDraftTweetsRequest_1 = require("../models/PostDeleteDraftTweetsRequest");
45
+ const PostDeleteListRequest_1 = require("../models/PostDeleteListRequest");
46
+ const PostDeleteRetweetRequest_1 = require("../models/PostDeleteRetweetRequest");
47
+ const PostDeleteTweetRequest_1 = require("../models/PostDeleteTweetRequest");
48
+ const PostFavoriteTweetRequest_1 = require("../models/PostFavoriteTweetRequest");
49
+ const PostListAddMemberRequest_1 = require("../models/PostListAddMemberRequest");
50
+ const PostListRemoveMemberRequest_1 = require("../models/PostListRemoveMemberRequest");
51
+ const PostUnfavoriteTweetRequest_1 = require("../models/PostUnfavoriteTweetRequest");
52
+ const UnfavoriteTweetResponse_1 = require("../models/UnfavoriteTweetResponse");
85
53
  /**
86
54
  *
87
55
  */
88
- var PostApi = /** @class */ (function (_super) {
89
- __extends(PostApi, _super);
90
- function PostApi() {
91
- return _super !== null && _super.apply(this, arguments) || this;
92
- }
56
+ class PostApi extends runtime.BaseAPI {
93
57
  /**
94
58
  * Creates request options for postCreateBookmark without sending the request
95
59
  */
96
- PostApi.prototype.postCreateBookmarkRequestOpts = function (requestParameters) {
97
- return __awaiter(this, void 0, void 0, function () {
98
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
99
- return __generator(this, function (_14) {
100
- switch (_14.label) {
101
- case 0:
102
- if (requestParameters['pathQueryId'] == null) {
103
- throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postCreateBookmark().');
104
- }
105
- if (requestParameters['postCreateBookmarkRequest'] == null) {
106
- throw new runtime.RequiredError('postCreateBookmarkRequest', 'Required parameter "postCreateBookmarkRequest" was null or undefined when calling postCreateBookmark().');
107
- }
108
- queryParameters = {};
109
- headerParameters = {};
110
- headerParameters['Content-Type'] = 'application/json';
111
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
112
- _a = headerParameters;
113
- _b = "Accept";
114
- return [4 /*yield*/, this.configuration.apiKey("Accept")];
115
- case 1:
116
- _a[_b] = _14.sent(); // Accept authentication
117
- _14.label = 2;
118
- case 2:
119
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
120
- _c = headerParameters;
121
- _d = "x-twitter-client-language";
122
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
123
- case 3:
124
- _c[_d] = _14.sent(); // ClientLanguage authentication
125
- _14.label = 4;
126
- case 4:
127
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
128
- _e = headerParameters;
129
- _f = "Priority";
130
- return [4 /*yield*/, this.configuration.apiKey("Priority")];
131
- case 5:
132
- _e[_f] = _14.sent(); // Priority authentication
133
- _14.label = 6;
134
- case 6:
135
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
136
- _g = headerParameters;
137
- _h = "Referer";
138
- return [4 /*yield*/, this.configuration.apiKey("Referer")];
139
- case 7:
140
- _g[_h] = _14.sent(); // Referer authentication
141
- _14.label = 8;
142
- case 8:
143
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
144
- _j = headerParameters;
145
- _k = "Sec-Fetch-Dest";
146
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
147
- case 9:
148
- _j[_k] = _14.sent(); // SecFetchDest authentication
149
- _14.label = 10;
150
- case 10:
151
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
152
- _l = headerParameters;
153
- _m = "Sec-Ch-Ua-Platform";
154
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
155
- case 11:
156
- _l[_m] = _14.sent(); // SecChUaPlatform authentication
157
- _14.label = 12;
158
- case 12:
159
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
160
- _o = headerParameters;
161
- _p = "Sec-Fetch-Mode";
162
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
163
- case 13:
164
- _o[_p] = _14.sent(); // SecFetchMode authentication
165
- _14.label = 14;
166
- case 14:
167
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
168
- _q = headerParameters;
169
- _r = "x-csrf-token";
170
- return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
171
- case 15:
172
- _q[_r] = _14.sent(); // CsrfToken authentication
173
- _14.label = 16;
174
- case 16:
175
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
176
- _s = headerParameters;
177
- _t = "x-client-uuid";
178
- return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
179
- case 17:
180
- _s[_t] = _14.sent(); // ClientUuid authentication
181
- _14.label = 18;
182
- case 18:
183
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
184
- token = this.configuration.accessToken;
185
- return [4 /*yield*/, token("BearerAuth", [])];
186
- case 19:
187
- tokenString = _14.sent();
188
- if (tokenString) {
189
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
190
- }
191
- _14.label = 20;
192
- case 20:
193
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
194
- _u = headerParameters;
195
- _v = "x-guest-token";
196
- return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
197
- case 21:
198
- _u[_v] = _14.sent(); // GuestToken authentication
199
- _14.label = 22;
200
- case 22:
201
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
202
- _w = headerParameters;
203
- _x = "Sec-Ch-Ua";
204
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
205
- case 23:
206
- _w[_x] = _14.sent(); // SecChUa authentication
207
- _14.label = 24;
208
- case 24:
209
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
210
- _y = headerParameters;
211
- _z = "x-client-transaction-id";
212
- return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
213
- case 25:
214
- _y[_z] = _14.sent(); // ClientTransactionId authentication
215
- _14.label = 26;
216
- case 26:
217
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
218
- _0 = headerParameters;
219
- _1 = "x-twitter-active-user";
220
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
221
- case 27:
222
- _0[_1] = _14.sent(); // ActiveUser authentication
223
- _14.label = 28;
224
- case 28:
225
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
226
- _2 = headerParameters;
227
- _3 = "user-agent";
228
- return [4 /*yield*/, this.configuration.apiKey("user-agent")];
229
- case 29:
230
- _2[_3] = _14.sent(); // UserAgent authentication
231
- _14.label = 30;
232
- case 30:
233
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
234
- _4 = headerParameters;
235
- _5 = "Accept-Language";
236
- return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
237
- case 31:
238
- _4[_5] = _14.sent(); // AcceptLanguage authentication
239
- _14.label = 32;
240
- case 32:
241
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
242
- _6 = headerParameters;
243
- _7 = "Sec-Fetch-Site";
244
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
245
- case 33:
246
- _6[_7] = _14.sent(); // SecFetchSite authentication
247
- _14.label = 34;
248
- case 34:
249
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
250
- _8 = headerParameters;
251
- _9 = "x-twitter-auth-type";
252
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
253
- case 35:
254
- _8[_9] = _14.sent(); // AuthType authentication
255
- _14.label = 36;
256
- case 36:
257
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
258
- _10 = headerParameters;
259
- _11 = "Sec-Ch-Ua-Mobile";
260
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
261
- case 37:
262
- _10[_11] = _14.sent(); // SecChUaMobile authentication
263
- _14.label = 38;
264
- case 38:
265
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 40];
266
- _12 = headerParameters;
267
- _13 = "Accept-Encoding";
268
- return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
269
- case 39:
270
- _12[_13] = _14.sent(); // AcceptEncoding authentication
271
- _14.label = 40;
272
- case 40:
273
- urlPath = "/graphql/{pathQueryId}/CreateBookmark";
274
- urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
275
- return [2 /*return*/, {
276
- path: urlPath,
277
- method: 'POST',
278
- headers: headerParameters,
279
- query: queryParameters,
280
- body: (0, PostCreateBookmarkRequest_1.PostCreateBookmarkRequestToJSON)(requestParameters['postCreateBookmarkRequest']),
281
- }];
60
+ postCreateBookmarkRequestOpts(requestParameters) {
61
+ return __awaiter(this, void 0, void 0, function* () {
62
+ if (requestParameters['pathQueryId'] == null) {
63
+ throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postCreateBookmark().');
64
+ }
65
+ if (requestParameters['postCreateBookmarkRequest'] == null) {
66
+ throw new runtime.RequiredError('postCreateBookmarkRequest', 'Required parameter "postCreateBookmarkRequest" was null or undefined when calling postCreateBookmark().');
67
+ }
68
+ const queryParameters = {};
69
+ const headerParameters = {};
70
+ headerParameters['Content-Type'] = 'application/json';
71
+ if (this.configuration && this.configuration.apiKey) {
72
+ headerParameters["Accept"] = yield this.configuration.apiKey("Accept"); // Accept authentication
73
+ }
74
+ if (this.configuration && this.configuration.apiKey) {
75
+ headerParameters["x-twitter-client-language"] = yield this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
76
+ }
77
+ if (this.configuration && this.configuration.apiKey) {
78
+ headerParameters["Priority"] = yield this.configuration.apiKey("Priority"); // Priority authentication
79
+ }
80
+ if (this.configuration && this.configuration.apiKey) {
81
+ headerParameters["Referer"] = yield this.configuration.apiKey("Referer"); // Referer authentication
82
+ }
83
+ if (this.configuration && this.configuration.apiKey) {
84
+ headerParameters["Sec-Fetch-Dest"] = yield this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
85
+ }
86
+ if (this.configuration && this.configuration.apiKey) {
87
+ headerParameters["Sec-Ch-Ua-Platform"] = yield this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
88
+ }
89
+ if (this.configuration && this.configuration.apiKey) {
90
+ headerParameters["Sec-Fetch-Mode"] = yield this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
91
+ }
92
+ if (this.configuration && this.configuration.apiKey) {
93
+ headerParameters["x-csrf-token"] = yield this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
94
+ }
95
+ if (this.configuration && this.configuration.apiKey) {
96
+ headerParameters["x-client-uuid"] = yield this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
97
+ }
98
+ if (this.configuration && this.configuration.accessToken) {
99
+ const token = this.configuration.accessToken;
100
+ const tokenString = yield token("BearerAuth", []);
101
+ if (tokenString) {
102
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
282
103
  }
283
- });
104
+ }
105
+ if (this.configuration && this.configuration.apiKey) {
106
+ headerParameters["x-guest-token"] = yield this.configuration.apiKey("x-guest-token"); // GuestToken authentication
107
+ }
108
+ if (this.configuration && this.configuration.apiKey) {
109
+ headerParameters["Sec-Ch-Ua"] = yield this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
110
+ }
111
+ if (this.configuration && this.configuration.apiKey) {
112
+ headerParameters["x-client-transaction-id"] = yield this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
113
+ }
114
+ if (this.configuration && this.configuration.apiKey) {
115
+ headerParameters["x-twitter-active-user"] = yield this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
116
+ }
117
+ if (this.configuration && this.configuration.apiKey) {
118
+ headerParameters["user-agent"] = yield this.configuration.apiKey("user-agent"); // UserAgent authentication
119
+ }
120
+ if (this.configuration && this.configuration.apiKey) {
121
+ headerParameters["Accept-Language"] = yield this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
122
+ }
123
+ if (this.configuration && this.configuration.apiKey) {
124
+ headerParameters["Sec-Fetch-Site"] = yield this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
125
+ }
126
+ if (this.configuration && this.configuration.apiKey) {
127
+ headerParameters["x-twitter-auth-type"] = yield this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
128
+ }
129
+ if (this.configuration && this.configuration.apiKey) {
130
+ headerParameters["Sec-Ch-Ua-Mobile"] = yield this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
131
+ }
132
+ if (this.configuration && this.configuration.apiKey) {
133
+ headerParameters["Accept-Encoding"] = yield this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
134
+ }
135
+ let urlPath = `/graphql/{pathQueryId}/CreateBookmark`;
136
+ urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
137
+ return {
138
+ path: urlPath,
139
+ method: 'POST',
140
+ headers: headerParameters,
141
+ query: queryParameters,
142
+ body: (0, PostCreateBookmarkRequest_1.PostCreateBookmarkRequestToJSON)(requestParameters['postCreateBookmarkRequest']),
143
+ };
284
144
  });
285
- };
145
+ }
286
146
  /**
287
147
  * create Bookmark
288
148
  */
289
- PostApi.prototype.postCreateBookmarkRaw = function (requestParameters, initOverrides) {
290
- return __awaiter(this, void 0, void 0, function () {
291
- var requestOptions, response;
292
- return __generator(this, function (_a) {
293
- switch (_a.label) {
294
- case 0: return [4 /*yield*/, this.postCreateBookmarkRequestOpts(requestParameters)];
295
- case 1:
296
- requestOptions = _a.sent();
297
- return [4 /*yield*/, this.request(requestOptions, initOverrides)];
298
- case 2:
299
- response = _a.sent();
300
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, CreateBookmarkResponse_1.CreateBookmarkResponseFromJSON)(jsonValue); })];
301
- }
302
- });
149
+ postCreateBookmarkRaw(requestParameters, initOverrides) {
150
+ return __awaiter(this, void 0, void 0, function* () {
151
+ const requestOptions = yield this.postCreateBookmarkRequestOpts(requestParameters);
152
+ const response = yield this.request(requestOptions, initOverrides);
153
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, CreateBookmarkResponse_1.CreateBookmarkResponseFromJSON)(jsonValue));
303
154
  });
304
- };
155
+ }
305
156
  /**
306
157
  * create Bookmark
307
158
  */
308
- PostApi.prototype.postCreateBookmark = function (requestParameters, initOverrides) {
309
- return __awaiter(this, void 0, void 0, function () {
310
- var response;
311
- return __generator(this, function (_a) {
312
- switch (_a.label) {
313
- case 0: return [4 /*yield*/, this.postCreateBookmarkRaw(requestParameters, initOverrides)];
314
- case 1:
315
- response = _a.sent();
316
- return [4 /*yield*/, response.value()];
317
- case 2: return [2 /*return*/, _a.sent()];
159
+ postCreateBookmark(requestParameters, initOverrides) {
160
+ return __awaiter(this, void 0, void 0, function* () {
161
+ const response = yield this.postCreateBookmarkRaw(requestParameters, initOverrides);
162
+ return yield response.value();
163
+ });
164
+ }
165
+ /**
166
+ * Creates request options for postCreateDraftTweet without sending the request
167
+ */
168
+ postCreateDraftTweetRequestOpts(requestParameters) {
169
+ return __awaiter(this, void 0, void 0, function* () {
170
+ if (requestParameters['pathQueryId'] == null) {
171
+ throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postCreateDraftTweet().');
172
+ }
173
+ if (requestParameters['postCreateDraftTweetRequest'] == null) {
174
+ throw new runtime.RequiredError('postCreateDraftTweetRequest', 'Required parameter "postCreateDraftTweetRequest" was null or undefined when calling postCreateDraftTweet().');
175
+ }
176
+ const queryParameters = {};
177
+ const headerParameters = {};
178
+ headerParameters['Content-Type'] = 'application/json';
179
+ if (this.configuration && this.configuration.apiKey) {
180
+ headerParameters["Accept"] = yield this.configuration.apiKey("Accept"); // Accept authentication
181
+ }
182
+ if (this.configuration && this.configuration.apiKey) {
183
+ headerParameters["x-twitter-client-language"] = yield this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
184
+ }
185
+ if (this.configuration && this.configuration.apiKey) {
186
+ headerParameters["Priority"] = yield this.configuration.apiKey("Priority"); // Priority authentication
187
+ }
188
+ if (this.configuration && this.configuration.apiKey) {
189
+ headerParameters["Referer"] = yield this.configuration.apiKey("Referer"); // Referer authentication
190
+ }
191
+ if (this.configuration && this.configuration.apiKey) {
192
+ headerParameters["Sec-Fetch-Dest"] = yield this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
193
+ }
194
+ if (this.configuration && this.configuration.apiKey) {
195
+ headerParameters["Sec-Ch-Ua-Platform"] = yield this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
196
+ }
197
+ if (this.configuration && this.configuration.apiKey) {
198
+ headerParameters["Sec-Fetch-Mode"] = yield this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
199
+ }
200
+ if (this.configuration && this.configuration.apiKey) {
201
+ headerParameters["x-csrf-token"] = yield this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
202
+ }
203
+ if (this.configuration && this.configuration.apiKey) {
204
+ headerParameters["x-client-uuid"] = yield this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
205
+ }
206
+ if (this.configuration && this.configuration.accessToken) {
207
+ const token = this.configuration.accessToken;
208
+ const tokenString = yield token("BearerAuth", []);
209
+ if (tokenString) {
210
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
211
+ }
212
+ }
213
+ if (this.configuration && this.configuration.apiKey) {
214
+ headerParameters["x-guest-token"] = yield this.configuration.apiKey("x-guest-token"); // GuestToken authentication
215
+ }
216
+ if (this.configuration && this.configuration.apiKey) {
217
+ headerParameters["Sec-Ch-Ua"] = yield this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
218
+ }
219
+ if (this.configuration && this.configuration.apiKey) {
220
+ headerParameters["x-client-transaction-id"] = yield this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
221
+ }
222
+ if (this.configuration && this.configuration.apiKey) {
223
+ headerParameters["x-twitter-active-user"] = yield this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
224
+ }
225
+ if (this.configuration && this.configuration.apiKey) {
226
+ headerParameters["user-agent"] = yield this.configuration.apiKey("user-agent"); // UserAgent authentication
227
+ }
228
+ if (this.configuration && this.configuration.apiKey) {
229
+ headerParameters["Accept-Language"] = yield this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
230
+ }
231
+ if (this.configuration && this.configuration.apiKey) {
232
+ headerParameters["Sec-Fetch-Site"] = yield this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
233
+ }
234
+ if (this.configuration && this.configuration.apiKey) {
235
+ headerParameters["x-twitter-auth-type"] = yield this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
236
+ }
237
+ if (this.configuration && this.configuration.apiKey) {
238
+ headerParameters["Sec-Ch-Ua-Mobile"] = yield this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
239
+ }
240
+ if (this.configuration && this.configuration.apiKey) {
241
+ headerParameters["Accept-Encoding"] = yield this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
242
+ }
243
+ let urlPath = `/graphql/{pathQueryId}/CreateDraftTweet`;
244
+ urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
245
+ return {
246
+ path: urlPath,
247
+ method: 'POST',
248
+ headers: headerParameters,
249
+ query: queryParameters,
250
+ body: (0, PostCreateDraftTweetRequest_1.PostCreateDraftTweetRequestToJSON)(requestParameters['postCreateDraftTweetRequest']),
251
+ };
252
+ });
253
+ }
254
+ /**
255
+ * save a draft
256
+ */
257
+ postCreateDraftTweetRaw(requestParameters, initOverrides) {
258
+ return __awaiter(this, void 0, void 0, function* () {
259
+ const requestOptions = yield this.postCreateDraftTweetRequestOpts(requestParameters);
260
+ const response = yield this.request(requestOptions, initOverrides);
261
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, CreateDraftTweetResponse_1.CreateDraftTweetResponseFromJSON)(jsonValue));
262
+ });
263
+ }
264
+ /**
265
+ * save a draft
266
+ */
267
+ postCreateDraftTweet(requestParameters, initOverrides) {
268
+ return __awaiter(this, void 0, void 0, function* () {
269
+ const response = yield this.postCreateDraftTweetRaw(requestParameters, initOverrides);
270
+ return yield response.value();
271
+ });
272
+ }
273
+ /**
274
+ * Creates request options for postCreateList without sending the request
275
+ */
276
+ postCreateListRequestOpts(requestParameters) {
277
+ return __awaiter(this, void 0, void 0, function* () {
278
+ if (requestParameters['pathQueryId'] == null) {
279
+ throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postCreateList().');
280
+ }
281
+ if (requestParameters['postCreateListRequest'] == null) {
282
+ throw new runtime.RequiredError('postCreateListRequest', 'Required parameter "postCreateListRequest" was null or undefined when calling postCreateList().');
283
+ }
284
+ const queryParameters = {};
285
+ const headerParameters = {};
286
+ headerParameters['Content-Type'] = 'application/json';
287
+ if (this.configuration && this.configuration.apiKey) {
288
+ headerParameters["Accept"] = yield this.configuration.apiKey("Accept"); // Accept authentication
289
+ }
290
+ if (this.configuration && this.configuration.apiKey) {
291
+ headerParameters["x-twitter-client-language"] = yield this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
292
+ }
293
+ if (this.configuration && this.configuration.apiKey) {
294
+ headerParameters["Priority"] = yield this.configuration.apiKey("Priority"); // Priority authentication
295
+ }
296
+ if (this.configuration && this.configuration.apiKey) {
297
+ headerParameters["Referer"] = yield this.configuration.apiKey("Referer"); // Referer authentication
298
+ }
299
+ if (this.configuration && this.configuration.apiKey) {
300
+ headerParameters["Sec-Fetch-Dest"] = yield this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
301
+ }
302
+ if (this.configuration && this.configuration.apiKey) {
303
+ headerParameters["Sec-Ch-Ua-Platform"] = yield this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
304
+ }
305
+ if (this.configuration && this.configuration.apiKey) {
306
+ headerParameters["Sec-Fetch-Mode"] = yield this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
307
+ }
308
+ if (this.configuration && this.configuration.apiKey) {
309
+ headerParameters["x-csrf-token"] = yield this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
310
+ }
311
+ if (this.configuration && this.configuration.apiKey) {
312
+ headerParameters["x-client-uuid"] = yield this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
313
+ }
314
+ if (this.configuration && this.configuration.accessToken) {
315
+ const token = this.configuration.accessToken;
316
+ const tokenString = yield token("BearerAuth", []);
317
+ if (tokenString) {
318
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
318
319
  }
319
- });
320
+ }
321
+ if (this.configuration && this.configuration.apiKey) {
322
+ headerParameters["x-guest-token"] = yield this.configuration.apiKey("x-guest-token"); // GuestToken authentication
323
+ }
324
+ if (this.configuration && this.configuration.apiKey) {
325
+ headerParameters["Sec-Ch-Ua"] = yield this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
326
+ }
327
+ if (this.configuration && this.configuration.apiKey) {
328
+ headerParameters["x-client-transaction-id"] = yield this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
329
+ }
330
+ if (this.configuration && this.configuration.apiKey) {
331
+ headerParameters["x-twitter-active-user"] = yield this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
332
+ }
333
+ if (this.configuration && this.configuration.apiKey) {
334
+ headerParameters["user-agent"] = yield this.configuration.apiKey("user-agent"); // UserAgent authentication
335
+ }
336
+ if (this.configuration && this.configuration.apiKey) {
337
+ headerParameters["Accept-Language"] = yield this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
338
+ }
339
+ if (this.configuration && this.configuration.apiKey) {
340
+ headerParameters["Sec-Fetch-Site"] = yield this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
341
+ }
342
+ if (this.configuration && this.configuration.apiKey) {
343
+ headerParameters["x-twitter-auth-type"] = yield this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
344
+ }
345
+ if (this.configuration && this.configuration.apiKey) {
346
+ headerParameters["Sec-Ch-Ua-Mobile"] = yield this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
347
+ }
348
+ if (this.configuration && this.configuration.apiKey) {
349
+ headerParameters["Accept-Encoding"] = yield this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
350
+ }
351
+ let urlPath = `/graphql/{pathQueryId}/CreateList`;
352
+ urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
353
+ return {
354
+ path: urlPath,
355
+ method: 'POST',
356
+ headers: headerParameters,
357
+ query: queryParameters,
358
+ body: (0, PostCreateListRequest_1.PostCreateListRequestToJSON)(requestParameters['postCreateListRequest']),
359
+ };
360
+ });
361
+ }
362
+ /**
363
+ * create list
364
+ */
365
+ postCreateListRaw(requestParameters, initOverrides) {
366
+ return __awaiter(this, void 0, void 0, function* () {
367
+ const requestOptions = yield this.postCreateListRequestOpts(requestParameters);
368
+ const response = yield this.request(requestOptions, initOverrides);
369
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, ListResponse_1.ListResponseFromJSON)(jsonValue));
320
370
  });
321
- };
371
+ }
372
+ /**
373
+ * create list
374
+ */
375
+ postCreateList(requestParameters, initOverrides) {
376
+ return __awaiter(this, void 0, void 0, function* () {
377
+ const response = yield this.postCreateListRaw(requestParameters, initOverrides);
378
+ return yield response.value();
379
+ });
380
+ }
322
381
  /**
323
382
  * Creates request options for postCreateRetweet without sending the request
324
383
  */
325
- PostApi.prototype.postCreateRetweetRequestOpts = function (requestParameters) {
326
- return __awaiter(this, void 0, void 0, function () {
327
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
328
- return __generator(this, function (_14) {
329
- switch (_14.label) {
330
- case 0:
331
- if (requestParameters['pathQueryId'] == null) {
332
- throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postCreateRetweet().');
333
- }
334
- if (requestParameters['postCreateRetweetRequest'] == null) {
335
- throw new runtime.RequiredError('postCreateRetweetRequest', 'Required parameter "postCreateRetweetRequest" was null or undefined when calling postCreateRetweet().');
336
- }
337
- queryParameters = {};
338
- headerParameters = {};
339
- headerParameters['Content-Type'] = 'application/json';
340
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
341
- _a = headerParameters;
342
- _b = "Accept";
343
- return [4 /*yield*/, this.configuration.apiKey("Accept")];
344
- case 1:
345
- _a[_b] = _14.sent(); // Accept authentication
346
- _14.label = 2;
347
- case 2:
348
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
349
- _c = headerParameters;
350
- _d = "x-twitter-client-language";
351
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
352
- case 3:
353
- _c[_d] = _14.sent(); // ClientLanguage authentication
354
- _14.label = 4;
355
- case 4:
356
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
357
- _e = headerParameters;
358
- _f = "Priority";
359
- return [4 /*yield*/, this.configuration.apiKey("Priority")];
360
- case 5:
361
- _e[_f] = _14.sent(); // Priority authentication
362
- _14.label = 6;
363
- case 6:
364
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
365
- _g = headerParameters;
366
- _h = "Referer";
367
- return [4 /*yield*/, this.configuration.apiKey("Referer")];
368
- case 7:
369
- _g[_h] = _14.sent(); // Referer authentication
370
- _14.label = 8;
371
- case 8:
372
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
373
- _j = headerParameters;
374
- _k = "Sec-Fetch-Dest";
375
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
376
- case 9:
377
- _j[_k] = _14.sent(); // SecFetchDest authentication
378
- _14.label = 10;
379
- case 10:
380
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
381
- _l = headerParameters;
382
- _m = "Sec-Ch-Ua-Platform";
383
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
384
- case 11:
385
- _l[_m] = _14.sent(); // SecChUaPlatform authentication
386
- _14.label = 12;
387
- case 12:
388
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
389
- _o = headerParameters;
390
- _p = "Sec-Fetch-Mode";
391
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
392
- case 13:
393
- _o[_p] = _14.sent(); // SecFetchMode authentication
394
- _14.label = 14;
395
- case 14:
396
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
397
- _q = headerParameters;
398
- _r = "x-csrf-token";
399
- return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
400
- case 15:
401
- _q[_r] = _14.sent(); // CsrfToken authentication
402
- _14.label = 16;
403
- case 16:
404
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
405
- _s = headerParameters;
406
- _t = "x-client-uuid";
407
- return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
408
- case 17:
409
- _s[_t] = _14.sent(); // ClientUuid authentication
410
- _14.label = 18;
411
- case 18:
412
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
413
- token = this.configuration.accessToken;
414
- return [4 /*yield*/, token("BearerAuth", [])];
415
- case 19:
416
- tokenString = _14.sent();
417
- if (tokenString) {
418
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
419
- }
420
- _14.label = 20;
421
- case 20:
422
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
423
- _u = headerParameters;
424
- _v = "x-guest-token";
425
- return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
426
- case 21:
427
- _u[_v] = _14.sent(); // GuestToken authentication
428
- _14.label = 22;
429
- case 22:
430
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
431
- _w = headerParameters;
432
- _x = "Sec-Ch-Ua";
433
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
434
- case 23:
435
- _w[_x] = _14.sent(); // SecChUa authentication
436
- _14.label = 24;
437
- case 24:
438
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
439
- _y = headerParameters;
440
- _z = "x-client-transaction-id";
441
- return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
442
- case 25:
443
- _y[_z] = _14.sent(); // ClientTransactionId authentication
444
- _14.label = 26;
445
- case 26:
446
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
447
- _0 = headerParameters;
448
- _1 = "x-twitter-active-user";
449
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
450
- case 27:
451
- _0[_1] = _14.sent(); // ActiveUser authentication
452
- _14.label = 28;
453
- case 28:
454
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
455
- _2 = headerParameters;
456
- _3 = "user-agent";
457
- return [4 /*yield*/, this.configuration.apiKey("user-agent")];
458
- case 29:
459
- _2[_3] = _14.sent(); // UserAgent authentication
460
- _14.label = 30;
461
- case 30:
462
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
463
- _4 = headerParameters;
464
- _5 = "Accept-Language";
465
- return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
466
- case 31:
467
- _4[_5] = _14.sent(); // AcceptLanguage authentication
468
- _14.label = 32;
469
- case 32:
470
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
471
- _6 = headerParameters;
472
- _7 = "Sec-Fetch-Site";
473
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
474
- case 33:
475
- _6[_7] = _14.sent(); // SecFetchSite authentication
476
- _14.label = 34;
477
- case 34:
478
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
479
- _8 = headerParameters;
480
- _9 = "x-twitter-auth-type";
481
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
482
- case 35:
483
- _8[_9] = _14.sent(); // AuthType authentication
484
- _14.label = 36;
485
- case 36:
486
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
487
- _10 = headerParameters;
488
- _11 = "Sec-Ch-Ua-Mobile";
489
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
490
- case 37:
491
- _10[_11] = _14.sent(); // SecChUaMobile authentication
492
- _14.label = 38;
493
- case 38:
494
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 40];
495
- _12 = headerParameters;
496
- _13 = "Accept-Encoding";
497
- return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
498
- case 39:
499
- _12[_13] = _14.sent(); // AcceptEncoding authentication
500
- _14.label = 40;
501
- case 40:
502
- urlPath = "/graphql/{pathQueryId}/CreateRetweet";
503
- urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
504
- return [2 /*return*/, {
505
- path: urlPath,
506
- method: 'POST',
507
- headers: headerParameters,
508
- query: queryParameters,
509
- body: (0, PostCreateRetweetRequest_1.PostCreateRetweetRequestToJSON)(requestParameters['postCreateRetweetRequest']),
510
- }];
384
+ postCreateRetweetRequestOpts(requestParameters) {
385
+ return __awaiter(this, void 0, void 0, function* () {
386
+ if (requestParameters['pathQueryId'] == null) {
387
+ throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postCreateRetweet().');
388
+ }
389
+ if (requestParameters['postCreateRetweetRequest'] == null) {
390
+ throw new runtime.RequiredError('postCreateRetweetRequest', 'Required parameter "postCreateRetweetRequest" was null or undefined when calling postCreateRetweet().');
391
+ }
392
+ const queryParameters = {};
393
+ const headerParameters = {};
394
+ headerParameters['Content-Type'] = 'application/json';
395
+ if (this.configuration && this.configuration.apiKey) {
396
+ headerParameters["Accept"] = yield this.configuration.apiKey("Accept"); // Accept authentication
397
+ }
398
+ if (this.configuration && this.configuration.apiKey) {
399
+ headerParameters["x-twitter-client-language"] = yield this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
400
+ }
401
+ if (this.configuration && this.configuration.apiKey) {
402
+ headerParameters["Priority"] = yield this.configuration.apiKey("Priority"); // Priority authentication
403
+ }
404
+ if (this.configuration && this.configuration.apiKey) {
405
+ headerParameters["Referer"] = yield this.configuration.apiKey("Referer"); // Referer authentication
406
+ }
407
+ if (this.configuration && this.configuration.apiKey) {
408
+ headerParameters["Sec-Fetch-Dest"] = yield this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
409
+ }
410
+ if (this.configuration && this.configuration.apiKey) {
411
+ headerParameters["Sec-Ch-Ua-Platform"] = yield this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
412
+ }
413
+ if (this.configuration && this.configuration.apiKey) {
414
+ headerParameters["Sec-Fetch-Mode"] = yield this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
415
+ }
416
+ if (this.configuration && this.configuration.apiKey) {
417
+ headerParameters["x-csrf-token"] = yield this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
418
+ }
419
+ if (this.configuration && this.configuration.apiKey) {
420
+ headerParameters["x-client-uuid"] = yield this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
421
+ }
422
+ if (this.configuration && this.configuration.accessToken) {
423
+ const token = this.configuration.accessToken;
424
+ const tokenString = yield token("BearerAuth", []);
425
+ if (tokenString) {
426
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
511
427
  }
512
- });
428
+ }
429
+ if (this.configuration && this.configuration.apiKey) {
430
+ headerParameters["x-guest-token"] = yield this.configuration.apiKey("x-guest-token"); // GuestToken authentication
431
+ }
432
+ if (this.configuration && this.configuration.apiKey) {
433
+ headerParameters["Sec-Ch-Ua"] = yield this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
434
+ }
435
+ if (this.configuration && this.configuration.apiKey) {
436
+ headerParameters["x-client-transaction-id"] = yield this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
437
+ }
438
+ if (this.configuration && this.configuration.apiKey) {
439
+ headerParameters["x-twitter-active-user"] = yield this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
440
+ }
441
+ if (this.configuration && this.configuration.apiKey) {
442
+ headerParameters["user-agent"] = yield this.configuration.apiKey("user-agent"); // UserAgent authentication
443
+ }
444
+ if (this.configuration && this.configuration.apiKey) {
445
+ headerParameters["Accept-Language"] = yield this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
446
+ }
447
+ if (this.configuration && this.configuration.apiKey) {
448
+ headerParameters["Sec-Fetch-Site"] = yield this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
449
+ }
450
+ if (this.configuration && this.configuration.apiKey) {
451
+ headerParameters["x-twitter-auth-type"] = yield this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
452
+ }
453
+ if (this.configuration && this.configuration.apiKey) {
454
+ headerParameters["Sec-Ch-Ua-Mobile"] = yield this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
455
+ }
456
+ if (this.configuration && this.configuration.apiKey) {
457
+ headerParameters["Accept-Encoding"] = yield this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
458
+ }
459
+ let urlPath = `/graphql/{pathQueryId}/CreateRetweet`;
460
+ urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
461
+ return {
462
+ path: urlPath,
463
+ method: 'POST',
464
+ headers: headerParameters,
465
+ query: queryParameters,
466
+ body: (0, PostCreateRetweetRequest_1.PostCreateRetweetRequestToJSON)(requestParameters['postCreateRetweetRequest']),
467
+ };
513
468
  });
514
- };
469
+ }
515
470
  /**
516
471
  * create Retweet
517
472
  */
518
- PostApi.prototype.postCreateRetweetRaw = function (requestParameters, initOverrides) {
519
- return __awaiter(this, void 0, void 0, function () {
520
- var requestOptions, response;
521
- return __generator(this, function (_a) {
522
- switch (_a.label) {
523
- case 0: return [4 /*yield*/, this.postCreateRetweetRequestOpts(requestParameters)];
524
- case 1:
525
- requestOptions = _a.sent();
526
- return [4 /*yield*/, this.request(requestOptions, initOverrides)];
527
- case 2:
528
- response = _a.sent();
529
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, CreateRetweetResponse_1.CreateRetweetResponseFromJSON)(jsonValue); })];
530
- }
531
- });
473
+ postCreateRetweetRaw(requestParameters, initOverrides) {
474
+ return __awaiter(this, void 0, void 0, function* () {
475
+ const requestOptions = yield this.postCreateRetweetRequestOpts(requestParameters);
476
+ const response = yield this.request(requestOptions, initOverrides);
477
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, CreateRetweetResponse_1.CreateRetweetResponseFromJSON)(jsonValue));
532
478
  });
533
- };
479
+ }
534
480
  /**
535
481
  * create Retweet
536
482
  */
537
- PostApi.prototype.postCreateRetweet = function (requestParameters, initOverrides) {
538
- return __awaiter(this, void 0, void 0, function () {
539
- var response;
540
- return __generator(this, function (_a) {
541
- switch (_a.label) {
542
- case 0: return [4 /*yield*/, this.postCreateRetweetRaw(requestParameters, initOverrides)];
543
- case 1:
544
- response = _a.sent();
545
- return [4 /*yield*/, response.value()];
546
- case 2: return [2 /*return*/, _a.sent()];
547
- }
548
- });
483
+ postCreateRetweet(requestParameters, initOverrides) {
484
+ return __awaiter(this, void 0, void 0, function* () {
485
+ const response = yield this.postCreateRetweetRaw(requestParameters, initOverrides);
486
+ return yield response.value();
549
487
  });
550
- };
488
+ }
551
489
  /**
552
490
  * Creates request options for postCreateTweet without sending the request
553
491
  */
554
- PostApi.prototype.postCreateTweetRequestOpts = function (requestParameters) {
555
- return __awaiter(this, void 0, void 0, function () {
556
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
557
- return __generator(this, function (_14) {
558
- switch (_14.label) {
559
- case 0:
560
- if (requestParameters['pathQueryId'] == null) {
561
- throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postCreateTweet().');
562
- }
563
- if (requestParameters['postCreateTweetRequest'] == null) {
564
- throw new runtime.RequiredError('postCreateTweetRequest', 'Required parameter "postCreateTweetRequest" was null or undefined when calling postCreateTweet().');
565
- }
566
- queryParameters = {};
567
- headerParameters = {};
568
- headerParameters['Content-Type'] = 'application/json';
569
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
570
- _a = headerParameters;
571
- _b = "Accept";
572
- return [4 /*yield*/, this.configuration.apiKey("Accept")];
573
- case 1:
574
- _a[_b] = _14.sent(); // Accept authentication
575
- _14.label = 2;
576
- case 2:
577
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
578
- _c = headerParameters;
579
- _d = "x-twitter-client-language";
580
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
581
- case 3:
582
- _c[_d] = _14.sent(); // ClientLanguage authentication
583
- _14.label = 4;
584
- case 4:
585
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
586
- _e = headerParameters;
587
- _f = "Priority";
588
- return [4 /*yield*/, this.configuration.apiKey("Priority")];
589
- case 5:
590
- _e[_f] = _14.sent(); // Priority authentication
591
- _14.label = 6;
592
- case 6:
593
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
594
- _g = headerParameters;
595
- _h = "Referer";
596
- return [4 /*yield*/, this.configuration.apiKey("Referer")];
597
- case 7:
598
- _g[_h] = _14.sent(); // Referer authentication
599
- _14.label = 8;
600
- case 8:
601
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
602
- _j = headerParameters;
603
- _k = "Sec-Fetch-Dest";
604
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
605
- case 9:
606
- _j[_k] = _14.sent(); // SecFetchDest authentication
607
- _14.label = 10;
608
- case 10:
609
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
610
- _l = headerParameters;
611
- _m = "Sec-Ch-Ua-Platform";
612
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
613
- case 11:
614
- _l[_m] = _14.sent(); // SecChUaPlatform authentication
615
- _14.label = 12;
616
- case 12:
617
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
618
- _o = headerParameters;
619
- _p = "Sec-Fetch-Mode";
620
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
621
- case 13:
622
- _o[_p] = _14.sent(); // SecFetchMode authentication
623
- _14.label = 14;
624
- case 14:
625
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
626
- _q = headerParameters;
627
- _r = "x-csrf-token";
628
- return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
629
- case 15:
630
- _q[_r] = _14.sent(); // CsrfToken authentication
631
- _14.label = 16;
632
- case 16:
633
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
634
- _s = headerParameters;
635
- _t = "x-client-uuid";
636
- return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
637
- case 17:
638
- _s[_t] = _14.sent(); // ClientUuid authentication
639
- _14.label = 18;
640
- case 18:
641
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
642
- token = this.configuration.accessToken;
643
- return [4 /*yield*/, token("BearerAuth", [])];
644
- case 19:
645
- tokenString = _14.sent();
646
- if (tokenString) {
647
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
648
- }
649
- _14.label = 20;
650
- case 20:
651
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
652
- _u = headerParameters;
653
- _v = "x-guest-token";
654
- return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
655
- case 21:
656
- _u[_v] = _14.sent(); // GuestToken authentication
657
- _14.label = 22;
658
- case 22:
659
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
660
- _w = headerParameters;
661
- _x = "Sec-Ch-Ua";
662
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
663
- case 23:
664
- _w[_x] = _14.sent(); // SecChUa authentication
665
- _14.label = 24;
666
- case 24:
667
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
668
- _y = headerParameters;
669
- _z = "x-client-transaction-id";
670
- return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
671
- case 25:
672
- _y[_z] = _14.sent(); // ClientTransactionId authentication
673
- _14.label = 26;
674
- case 26:
675
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
676
- _0 = headerParameters;
677
- _1 = "x-twitter-active-user";
678
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
679
- case 27:
680
- _0[_1] = _14.sent(); // ActiveUser authentication
681
- _14.label = 28;
682
- case 28:
683
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
684
- _2 = headerParameters;
685
- _3 = "user-agent";
686
- return [4 /*yield*/, this.configuration.apiKey("user-agent")];
687
- case 29:
688
- _2[_3] = _14.sent(); // UserAgent authentication
689
- _14.label = 30;
690
- case 30:
691
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
692
- _4 = headerParameters;
693
- _5 = "Accept-Language";
694
- return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
695
- case 31:
696
- _4[_5] = _14.sent(); // AcceptLanguage authentication
697
- _14.label = 32;
698
- case 32:
699
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
700
- _6 = headerParameters;
701
- _7 = "Sec-Fetch-Site";
702
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
703
- case 33:
704
- _6[_7] = _14.sent(); // SecFetchSite authentication
705
- _14.label = 34;
706
- case 34:
707
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
708
- _8 = headerParameters;
709
- _9 = "x-twitter-auth-type";
710
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
711
- case 35:
712
- _8[_9] = _14.sent(); // AuthType authentication
713
- _14.label = 36;
714
- case 36:
715
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
716
- _10 = headerParameters;
717
- _11 = "Sec-Ch-Ua-Mobile";
718
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
719
- case 37:
720
- _10[_11] = _14.sent(); // SecChUaMobile authentication
721
- _14.label = 38;
722
- case 38:
723
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 40];
724
- _12 = headerParameters;
725
- _13 = "Accept-Encoding";
726
- return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
727
- case 39:
728
- _12[_13] = _14.sent(); // AcceptEncoding authentication
729
- _14.label = 40;
730
- case 40:
731
- urlPath = "/graphql/{pathQueryId}/CreateTweet";
732
- urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
733
- return [2 /*return*/, {
734
- path: urlPath,
735
- method: 'POST',
736
- headers: headerParameters,
737
- query: queryParameters,
738
- body: (0, PostCreateTweetRequest_1.PostCreateTweetRequestToJSON)(requestParameters['postCreateTweetRequest']),
739
- }];
492
+ postCreateTweetRequestOpts(requestParameters) {
493
+ return __awaiter(this, void 0, void 0, function* () {
494
+ if (requestParameters['pathQueryId'] == null) {
495
+ throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postCreateTweet().');
496
+ }
497
+ if (requestParameters['postCreateTweetRequest'] == null) {
498
+ throw new runtime.RequiredError('postCreateTweetRequest', 'Required parameter "postCreateTweetRequest" was null or undefined when calling postCreateTweet().');
499
+ }
500
+ const queryParameters = {};
501
+ const headerParameters = {};
502
+ headerParameters['Content-Type'] = 'application/json';
503
+ if (this.configuration && this.configuration.apiKey) {
504
+ headerParameters["Accept"] = yield this.configuration.apiKey("Accept"); // Accept authentication
505
+ }
506
+ if (this.configuration && this.configuration.apiKey) {
507
+ headerParameters["x-twitter-client-language"] = yield this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
508
+ }
509
+ if (this.configuration && this.configuration.apiKey) {
510
+ headerParameters["Priority"] = yield this.configuration.apiKey("Priority"); // Priority authentication
511
+ }
512
+ if (this.configuration && this.configuration.apiKey) {
513
+ headerParameters["Referer"] = yield this.configuration.apiKey("Referer"); // Referer authentication
514
+ }
515
+ if (this.configuration && this.configuration.apiKey) {
516
+ headerParameters["Sec-Fetch-Dest"] = yield this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
517
+ }
518
+ if (this.configuration && this.configuration.apiKey) {
519
+ headerParameters["Sec-Ch-Ua-Platform"] = yield this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
520
+ }
521
+ if (this.configuration && this.configuration.apiKey) {
522
+ headerParameters["Sec-Fetch-Mode"] = yield this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
523
+ }
524
+ if (this.configuration && this.configuration.apiKey) {
525
+ headerParameters["x-csrf-token"] = yield this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
526
+ }
527
+ if (this.configuration && this.configuration.apiKey) {
528
+ headerParameters["x-client-uuid"] = yield this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
529
+ }
530
+ if (this.configuration && this.configuration.accessToken) {
531
+ const token = this.configuration.accessToken;
532
+ const tokenString = yield token("BearerAuth", []);
533
+ if (tokenString) {
534
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
740
535
  }
741
- });
536
+ }
537
+ if (this.configuration && this.configuration.apiKey) {
538
+ headerParameters["x-guest-token"] = yield this.configuration.apiKey("x-guest-token"); // GuestToken authentication
539
+ }
540
+ if (this.configuration && this.configuration.apiKey) {
541
+ headerParameters["Sec-Ch-Ua"] = yield this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
542
+ }
543
+ if (this.configuration && this.configuration.apiKey) {
544
+ headerParameters["x-client-transaction-id"] = yield this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
545
+ }
546
+ if (this.configuration && this.configuration.apiKey) {
547
+ headerParameters["x-twitter-active-user"] = yield this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
548
+ }
549
+ if (this.configuration && this.configuration.apiKey) {
550
+ headerParameters["user-agent"] = yield this.configuration.apiKey("user-agent"); // UserAgent authentication
551
+ }
552
+ if (this.configuration && this.configuration.apiKey) {
553
+ headerParameters["Accept-Language"] = yield this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
554
+ }
555
+ if (this.configuration && this.configuration.apiKey) {
556
+ headerParameters["Sec-Fetch-Site"] = yield this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
557
+ }
558
+ if (this.configuration && this.configuration.apiKey) {
559
+ headerParameters["x-twitter-auth-type"] = yield this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
560
+ }
561
+ if (this.configuration && this.configuration.apiKey) {
562
+ headerParameters["Sec-Ch-Ua-Mobile"] = yield this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
563
+ }
564
+ if (this.configuration && this.configuration.apiKey) {
565
+ headerParameters["Accept-Encoding"] = yield this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
566
+ }
567
+ let urlPath = `/graphql/{pathQueryId}/CreateTweet`;
568
+ urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
569
+ return {
570
+ path: urlPath,
571
+ method: 'POST',
572
+ headers: headerParameters,
573
+ query: queryParameters,
574
+ body: (0, PostCreateTweetRequest_1.PostCreateTweetRequestToJSON)(requestParameters['postCreateTweetRequest']),
575
+ };
742
576
  });
743
- };
577
+ }
744
578
  /**
745
579
  * create Tweet
746
580
  */
747
- PostApi.prototype.postCreateTweetRaw = function (requestParameters, initOverrides) {
748
- return __awaiter(this, void 0, void 0, function () {
749
- var requestOptions, response;
750
- return __generator(this, function (_a) {
751
- switch (_a.label) {
752
- case 0: return [4 /*yield*/, this.postCreateTweetRequestOpts(requestParameters)];
753
- case 1:
754
- requestOptions = _a.sent();
755
- return [4 /*yield*/, this.request(requestOptions, initOverrides)];
756
- case 2:
757
- response = _a.sent();
758
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, CreateTweetResponse_1.CreateTweetResponseFromJSON)(jsonValue); })];
759
- }
760
- });
581
+ postCreateTweetRaw(requestParameters, initOverrides) {
582
+ return __awaiter(this, void 0, void 0, function* () {
583
+ const requestOptions = yield this.postCreateTweetRequestOpts(requestParameters);
584
+ const response = yield this.request(requestOptions, initOverrides);
585
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, CreateTweetResponse_1.CreateTweetResponseFromJSON)(jsonValue));
761
586
  });
762
- };
587
+ }
763
588
  /**
764
589
  * create Tweet
765
590
  */
766
- PostApi.prototype.postCreateTweet = function (requestParameters, initOverrides) {
767
- return __awaiter(this, void 0, void 0, function () {
768
- var response;
769
- return __generator(this, function (_a) {
770
- switch (_a.label) {
771
- case 0: return [4 /*yield*/, this.postCreateTweetRaw(requestParameters, initOverrides)];
772
- case 1:
773
- response = _a.sent();
774
- return [4 /*yield*/, response.value()];
775
- case 2: return [2 /*return*/, _a.sent()];
776
- }
777
- });
591
+ postCreateTweet(requestParameters, initOverrides) {
592
+ return __awaiter(this, void 0, void 0, function* () {
593
+ const response = yield this.postCreateTweetRaw(requestParameters, initOverrides);
594
+ return yield response.value();
778
595
  });
779
- };
596
+ }
780
597
  /**
781
598
  * Creates request options for postDeleteBookmark without sending the request
782
599
  */
783
- PostApi.prototype.postDeleteBookmarkRequestOpts = function (requestParameters) {
784
- return __awaiter(this, void 0, void 0, function () {
785
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
786
- return __generator(this, function (_14) {
787
- switch (_14.label) {
788
- case 0:
789
- if (requestParameters['pathQueryId'] == null) {
790
- throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postDeleteBookmark().');
791
- }
792
- if (requestParameters['postDeleteBookmarkRequest'] == null) {
793
- throw new runtime.RequiredError('postDeleteBookmarkRequest', 'Required parameter "postDeleteBookmarkRequest" was null or undefined when calling postDeleteBookmark().');
794
- }
795
- queryParameters = {};
796
- headerParameters = {};
797
- headerParameters['Content-Type'] = 'application/json';
798
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
799
- _a = headerParameters;
800
- _b = "Accept";
801
- return [4 /*yield*/, this.configuration.apiKey("Accept")];
802
- case 1:
803
- _a[_b] = _14.sent(); // Accept authentication
804
- _14.label = 2;
805
- case 2:
806
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
807
- _c = headerParameters;
808
- _d = "x-twitter-client-language";
809
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
810
- case 3:
811
- _c[_d] = _14.sent(); // ClientLanguage authentication
812
- _14.label = 4;
813
- case 4:
814
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
815
- _e = headerParameters;
816
- _f = "Priority";
817
- return [4 /*yield*/, this.configuration.apiKey("Priority")];
818
- case 5:
819
- _e[_f] = _14.sent(); // Priority authentication
820
- _14.label = 6;
821
- case 6:
822
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
823
- _g = headerParameters;
824
- _h = "Referer";
825
- return [4 /*yield*/, this.configuration.apiKey("Referer")];
826
- case 7:
827
- _g[_h] = _14.sent(); // Referer authentication
828
- _14.label = 8;
829
- case 8:
830
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
831
- _j = headerParameters;
832
- _k = "Sec-Fetch-Dest";
833
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
834
- case 9:
835
- _j[_k] = _14.sent(); // SecFetchDest authentication
836
- _14.label = 10;
837
- case 10:
838
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
839
- _l = headerParameters;
840
- _m = "Sec-Ch-Ua-Platform";
841
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
842
- case 11:
843
- _l[_m] = _14.sent(); // SecChUaPlatform authentication
844
- _14.label = 12;
845
- case 12:
846
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
847
- _o = headerParameters;
848
- _p = "Sec-Fetch-Mode";
849
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
850
- case 13:
851
- _o[_p] = _14.sent(); // SecFetchMode authentication
852
- _14.label = 14;
853
- case 14:
854
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
855
- _q = headerParameters;
856
- _r = "x-csrf-token";
857
- return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
858
- case 15:
859
- _q[_r] = _14.sent(); // CsrfToken authentication
860
- _14.label = 16;
861
- case 16:
862
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
863
- _s = headerParameters;
864
- _t = "x-client-uuid";
865
- return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
866
- case 17:
867
- _s[_t] = _14.sent(); // ClientUuid authentication
868
- _14.label = 18;
869
- case 18:
870
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
871
- token = this.configuration.accessToken;
872
- return [4 /*yield*/, token("BearerAuth", [])];
873
- case 19:
874
- tokenString = _14.sent();
875
- if (tokenString) {
876
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
877
- }
878
- _14.label = 20;
879
- case 20:
880
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
881
- _u = headerParameters;
882
- _v = "x-guest-token";
883
- return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
884
- case 21:
885
- _u[_v] = _14.sent(); // GuestToken authentication
886
- _14.label = 22;
887
- case 22:
888
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
889
- _w = headerParameters;
890
- _x = "Sec-Ch-Ua";
891
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
892
- case 23:
893
- _w[_x] = _14.sent(); // SecChUa authentication
894
- _14.label = 24;
895
- case 24:
896
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
897
- _y = headerParameters;
898
- _z = "x-client-transaction-id";
899
- return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
900
- case 25:
901
- _y[_z] = _14.sent(); // ClientTransactionId authentication
902
- _14.label = 26;
903
- case 26:
904
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
905
- _0 = headerParameters;
906
- _1 = "x-twitter-active-user";
907
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
908
- case 27:
909
- _0[_1] = _14.sent(); // ActiveUser authentication
910
- _14.label = 28;
911
- case 28:
912
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
913
- _2 = headerParameters;
914
- _3 = "user-agent";
915
- return [4 /*yield*/, this.configuration.apiKey("user-agent")];
916
- case 29:
917
- _2[_3] = _14.sent(); // UserAgent authentication
918
- _14.label = 30;
919
- case 30:
920
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
921
- _4 = headerParameters;
922
- _5 = "Accept-Language";
923
- return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
924
- case 31:
925
- _4[_5] = _14.sent(); // AcceptLanguage authentication
926
- _14.label = 32;
927
- case 32:
928
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
929
- _6 = headerParameters;
930
- _7 = "Sec-Fetch-Site";
931
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
932
- case 33:
933
- _6[_7] = _14.sent(); // SecFetchSite authentication
934
- _14.label = 34;
935
- case 34:
936
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
937
- _8 = headerParameters;
938
- _9 = "x-twitter-auth-type";
939
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
940
- case 35:
941
- _8[_9] = _14.sent(); // AuthType authentication
942
- _14.label = 36;
943
- case 36:
944
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
945
- _10 = headerParameters;
946
- _11 = "Sec-Ch-Ua-Mobile";
947
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
948
- case 37:
949
- _10[_11] = _14.sent(); // SecChUaMobile authentication
950
- _14.label = 38;
951
- case 38:
952
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 40];
953
- _12 = headerParameters;
954
- _13 = "Accept-Encoding";
955
- return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
956
- case 39:
957
- _12[_13] = _14.sent(); // AcceptEncoding authentication
958
- _14.label = 40;
959
- case 40:
960
- urlPath = "/graphql/{pathQueryId}/DeleteBookmark";
961
- urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
962
- return [2 /*return*/, {
963
- path: urlPath,
964
- method: 'POST',
965
- headers: headerParameters,
966
- query: queryParameters,
967
- body: (0, PostDeleteBookmarkRequest_1.PostDeleteBookmarkRequestToJSON)(requestParameters['postDeleteBookmarkRequest']),
968
- }];
600
+ postDeleteBookmarkRequestOpts(requestParameters) {
601
+ return __awaiter(this, void 0, void 0, function* () {
602
+ if (requestParameters['pathQueryId'] == null) {
603
+ throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postDeleteBookmark().');
604
+ }
605
+ if (requestParameters['postDeleteBookmarkRequest'] == null) {
606
+ throw new runtime.RequiredError('postDeleteBookmarkRequest', 'Required parameter "postDeleteBookmarkRequest" was null or undefined when calling postDeleteBookmark().');
607
+ }
608
+ const queryParameters = {};
609
+ const headerParameters = {};
610
+ headerParameters['Content-Type'] = 'application/json';
611
+ if (this.configuration && this.configuration.apiKey) {
612
+ headerParameters["Accept"] = yield this.configuration.apiKey("Accept"); // Accept authentication
613
+ }
614
+ if (this.configuration && this.configuration.apiKey) {
615
+ headerParameters["x-twitter-client-language"] = yield this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
616
+ }
617
+ if (this.configuration && this.configuration.apiKey) {
618
+ headerParameters["Priority"] = yield this.configuration.apiKey("Priority"); // Priority authentication
619
+ }
620
+ if (this.configuration && this.configuration.apiKey) {
621
+ headerParameters["Referer"] = yield this.configuration.apiKey("Referer"); // Referer authentication
622
+ }
623
+ if (this.configuration && this.configuration.apiKey) {
624
+ headerParameters["Sec-Fetch-Dest"] = yield this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
625
+ }
626
+ if (this.configuration && this.configuration.apiKey) {
627
+ headerParameters["Sec-Ch-Ua-Platform"] = yield this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
628
+ }
629
+ if (this.configuration && this.configuration.apiKey) {
630
+ headerParameters["Sec-Fetch-Mode"] = yield this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
631
+ }
632
+ if (this.configuration && this.configuration.apiKey) {
633
+ headerParameters["x-csrf-token"] = yield this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
634
+ }
635
+ if (this.configuration && this.configuration.apiKey) {
636
+ headerParameters["x-client-uuid"] = yield this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
637
+ }
638
+ if (this.configuration && this.configuration.accessToken) {
639
+ const token = this.configuration.accessToken;
640
+ const tokenString = yield token("BearerAuth", []);
641
+ if (tokenString) {
642
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
969
643
  }
970
- });
644
+ }
645
+ if (this.configuration && this.configuration.apiKey) {
646
+ headerParameters["x-guest-token"] = yield this.configuration.apiKey("x-guest-token"); // GuestToken authentication
647
+ }
648
+ if (this.configuration && this.configuration.apiKey) {
649
+ headerParameters["Sec-Ch-Ua"] = yield this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
650
+ }
651
+ if (this.configuration && this.configuration.apiKey) {
652
+ headerParameters["x-client-transaction-id"] = yield this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
653
+ }
654
+ if (this.configuration && this.configuration.apiKey) {
655
+ headerParameters["x-twitter-active-user"] = yield this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
656
+ }
657
+ if (this.configuration && this.configuration.apiKey) {
658
+ headerParameters["user-agent"] = yield this.configuration.apiKey("user-agent"); // UserAgent authentication
659
+ }
660
+ if (this.configuration && this.configuration.apiKey) {
661
+ headerParameters["Accept-Language"] = yield this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
662
+ }
663
+ if (this.configuration && this.configuration.apiKey) {
664
+ headerParameters["Sec-Fetch-Site"] = yield this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
665
+ }
666
+ if (this.configuration && this.configuration.apiKey) {
667
+ headerParameters["x-twitter-auth-type"] = yield this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
668
+ }
669
+ if (this.configuration && this.configuration.apiKey) {
670
+ headerParameters["Sec-Ch-Ua-Mobile"] = yield this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
671
+ }
672
+ if (this.configuration && this.configuration.apiKey) {
673
+ headerParameters["Accept-Encoding"] = yield this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
674
+ }
675
+ let urlPath = `/graphql/{pathQueryId}/DeleteBookmark`;
676
+ urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
677
+ return {
678
+ path: urlPath,
679
+ method: 'POST',
680
+ headers: headerParameters,
681
+ query: queryParameters,
682
+ body: (0, PostDeleteBookmarkRequest_1.PostDeleteBookmarkRequestToJSON)(requestParameters['postDeleteBookmarkRequest']),
683
+ };
971
684
  });
972
- };
685
+ }
973
686
  /**
974
687
  * delete Bookmark
975
688
  */
976
- PostApi.prototype.postDeleteBookmarkRaw = function (requestParameters, initOverrides) {
977
- return __awaiter(this, void 0, void 0, function () {
978
- var requestOptions, response;
979
- return __generator(this, function (_a) {
980
- switch (_a.label) {
981
- case 0: return [4 /*yield*/, this.postDeleteBookmarkRequestOpts(requestParameters)];
982
- case 1:
983
- requestOptions = _a.sent();
984
- return [4 /*yield*/, this.request(requestOptions, initOverrides)];
985
- case 2:
986
- response = _a.sent();
987
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, DeleteBookmarkResponse_1.DeleteBookmarkResponseFromJSON)(jsonValue); })];
988
- }
989
- });
689
+ postDeleteBookmarkRaw(requestParameters, initOverrides) {
690
+ return __awaiter(this, void 0, void 0, function* () {
691
+ const requestOptions = yield this.postDeleteBookmarkRequestOpts(requestParameters);
692
+ const response = yield this.request(requestOptions, initOverrides);
693
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DeleteBookmarkResponse_1.DeleteBookmarkResponseFromJSON)(jsonValue));
990
694
  });
991
- };
695
+ }
992
696
  /**
993
697
  * delete Bookmark
994
698
  */
995
- PostApi.prototype.postDeleteBookmark = function (requestParameters, initOverrides) {
996
- return __awaiter(this, void 0, void 0, function () {
997
- var response;
998
- return __generator(this, function (_a) {
999
- switch (_a.label) {
1000
- case 0: return [4 /*yield*/, this.postDeleteBookmarkRaw(requestParameters, initOverrides)];
1001
- case 1:
1002
- response = _a.sent();
1003
- return [4 /*yield*/, response.value()];
1004
- case 2: return [2 /*return*/, _a.sent()];
699
+ postDeleteBookmark(requestParameters, initOverrides) {
700
+ return __awaiter(this, void 0, void 0, function* () {
701
+ const response = yield this.postDeleteBookmarkRaw(requestParameters, initOverrides);
702
+ return yield response.value();
703
+ });
704
+ }
705
+ /**
706
+ * Creates request options for postDeleteDraftTweets without sending the request
707
+ */
708
+ postDeleteDraftTweetsRequestOpts(requestParameters) {
709
+ return __awaiter(this, void 0, void 0, function* () {
710
+ if (requestParameters['pathQueryId'] == null) {
711
+ throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postDeleteDraftTweets().');
712
+ }
713
+ if (requestParameters['postDeleteDraftTweetsRequest'] == null) {
714
+ throw new runtime.RequiredError('postDeleteDraftTweetsRequest', 'Required parameter "postDeleteDraftTweetsRequest" was null or undefined when calling postDeleteDraftTweets().');
715
+ }
716
+ const queryParameters = {};
717
+ const headerParameters = {};
718
+ headerParameters['Content-Type'] = 'application/json';
719
+ if (this.configuration && this.configuration.apiKey) {
720
+ headerParameters["Accept"] = yield this.configuration.apiKey("Accept"); // Accept authentication
721
+ }
722
+ if (this.configuration && this.configuration.apiKey) {
723
+ headerParameters["x-twitter-client-language"] = yield this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
724
+ }
725
+ if (this.configuration && this.configuration.apiKey) {
726
+ headerParameters["Priority"] = yield this.configuration.apiKey("Priority"); // Priority authentication
727
+ }
728
+ if (this.configuration && this.configuration.apiKey) {
729
+ headerParameters["Referer"] = yield this.configuration.apiKey("Referer"); // Referer authentication
730
+ }
731
+ if (this.configuration && this.configuration.apiKey) {
732
+ headerParameters["Sec-Fetch-Dest"] = yield this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
733
+ }
734
+ if (this.configuration && this.configuration.apiKey) {
735
+ headerParameters["Sec-Ch-Ua-Platform"] = yield this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
736
+ }
737
+ if (this.configuration && this.configuration.apiKey) {
738
+ headerParameters["Sec-Fetch-Mode"] = yield this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
739
+ }
740
+ if (this.configuration && this.configuration.apiKey) {
741
+ headerParameters["x-csrf-token"] = yield this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
742
+ }
743
+ if (this.configuration && this.configuration.apiKey) {
744
+ headerParameters["x-client-uuid"] = yield this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
745
+ }
746
+ if (this.configuration && this.configuration.accessToken) {
747
+ const token = this.configuration.accessToken;
748
+ const tokenString = yield token("BearerAuth", []);
749
+ if (tokenString) {
750
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1005
751
  }
1006
- });
752
+ }
753
+ if (this.configuration && this.configuration.apiKey) {
754
+ headerParameters["x-guest-token"] = yield this.configuration.apiKey("x-guest-token"); // GuestToken authentication
755
+ }
756
+ if (this.configuration && this.configuration.apiKey) {
757
+ headerParameters["Sec-Ch-Ua"] = yield this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
758
+ }
759
+ if (this.configuration && this.configuration.apiKey) {
760
+ headerParameters["x-client-transaction-id"] = yield this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
761
+ }
762
+ if (this.configuration && this.configuration.apiKey) {
763
+ headerParameters["x-twitter-active-user"] = yield this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
764
+ }
765
+ if (this.configuration && this.configuration.apiKey) {
766
+ headerParameters["user-agent"] = yield this.configuration.apiKey("user-agent"); // UserAgent authentication
767
+ }
768
+ if (this.configuration && this.configuration.apiKey) {
769
+ headerParameters["Accept-Language"] = yield this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
770
+ }
771
+ if (this.configuration && this.configuration.apiKey) {
772
+ headerParameters["Sec-Fetch-Site"] = yield this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
773
+ }
774
+ if (this.configuration && this.configuration.apiKey) {
775
+ headerParameters["x-twitter-auth-type"] = yield this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
776
+ }
777
+ if (this.configuration && this.configuration.apiKey) {
778
+ headerParameters["Sec-Ch-Ua-Mobile"] = yield this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
779
+ }
780
+ if (this.configuration && this.configuration.apiKey) {
781
+ headerParameters["Accept-Encoding"] = yield this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
782
+ }
783
+ let urlPath = `/graphql/{pathQueryId}/DeleteDraftTweets`;
784
+ urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
785
+ return {
786
+ path: urlPath,
787
+ method: 'POST',
788
+ headers: headerParameters,
789
+ query: queryParameters,
790
+ body: (0, PostDeleteDraftTweetsRequest_1.PostDeleteDraftTweetsRequestToJSON)(requestParameters['postDeleteDraftTweetsRequest']),
791
+ };
1007
792
  });
1008
- };
793
+ }
794
+ /**
795
+ * delete drafts
796
+ */
797
+ postDeleteDraftTweetsRaw(requestParameters, initOverrides) {
798
+ return __awaiter(this, void 0, void 0, function* () {
799
+ const requestOptions = yield this.postDeleteDraftTweetsRequestOpts(requestParameters);
800
+ const response = yield this.request(requestOptions, initOverrides);
801
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DeleteDraftTweetsResponse_1.DeleteDraftTweetsResponseFromJSON)(jsonValue));
802
+ });
803
+ }
804
+ /**
805
+ * delete drafts
806
+ */
807
+ postDeleteDraftTweets(requestParameters, initOverrides) {
808
+ return __awaiter(this, void 0, void 0, function* () {
809
+ const response = yield this.postDeleteDraftTweetsRaw(requestParameters, initOverrides);
810
+ return yield response.value();
811
+ });
812
+ }
813
+ /**
814
+ * Creates request options for postDeleteList without sending the request
815
+ */
816
+ postDeleteListRequestOpts(requestParameters) {
817
+ return __awaiter(this, void 0, void 0, function* () {
818
+ if (requestParameters['pathQueryId'] == null) {
819
+ throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postDeleteList().');
820
+ }
821
+ if (requestParameters['postDeleteListRequest'] == null) {
822
+ throw new runtime.RequiredError('postDeleteListRequest', 'Required parameter "postDeleteListRequest" was null or undefined when calling postDeleteList().');
823
+ }
824
+ const queryParameters = {};
825
+ const headerParameters = {};
826
+ headerParameters['Content-Type'] = 'application/json';
827
+ if (this.configuration && this.configuration.apiKey) {
828
+ headerParameters["Accept"] = yield this.configuration.apiKey("Accept"); // Accept authentication
829
+ }
830
+ if (this.configuration && this.configuration.apiKey) {
831
+ headerParameters["x-twitter-client-language"] = yield this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
832
+ }
833
+ if (this.configuration && this.configuration.apiKey) {
834
+ headerParameters["Priority"] = yield this.configuration.apiKey("Priority"); // Priority authentication
835
+ }
836
+ if (this.configuration && this.configuration.apiKey) {
837
+ headerParameters["Referer"] = yield this.configuration.apiKey("Referer"); // Referer authentication
838
+ }
839
+ if (this.configuration && this.configuration.apiKey) {
840
+ headerParameters["Sec-Fetch-Dest"] = yield this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
841
+ }
842
+ if (this.configuration && this.configuration.apiKey) {
843
+ headerParameters["Sec-Ch-Ua-Platform"] = yield this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
844
+ }
845
+ if (this.configuration && this.configuration.apiKey) {
846
+ headerParameters["Sec-Fetch-Mode"] = yield this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
847
+ }
848
+ if (this.configuration && this.configuration.apiKey) {
849
+ headerParameters["x-csrf-token"] = yield this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
850
+ }
851
+ if (this.configuration && this.configuration.apiKey) {
852
+ headerParameters["x-client-uuid"] = yield this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
853
+ }
854
+ if (this.configuration && this.configuration.accessToken) {
855
+ const token = this.configuration.accessToken;
856
+ const tokenString = yield token("BearerAuth", []);
857
+ if (tokenString) {
858
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
859
+ }
860
+ }
861
+ if (this.configuration && this.configuration.apiKey) {
862
+ headerParameters["x-guest-token"] = yield this.configuration.apiKey("x-guest-token"); // GuestToken authentication
863
+ }
864
+ if (this.configuration && this.configuration.apiKey) {
865
+ headerParameters["Sec-Ch-Ua"] = yield this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
866
+ }
867
+ if (this.configuration && this.configuration.apiKey) {
868
+ headerParameters["x-client-transaction-id"] = yield this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
869
+ }
870
+ if (this.configuration && this.configuration.apiKey) {
871
+ headerParameters["x-twitter-active-user"] = yield this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
872
+ }
873
+ if (this.configuration && this.configuration.apiKey) {
874
+ headerParameters["user-agent"] = yield this.configuration.apiKey("user-agent"); // UserAgent authentication
875
+ }
876
+ if (this.configuration && this.configuration.apiKey) {
877
+ headerParameters["Accept-Language"] = yield this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
878
+ }
879
+ if (this.configuration && this.configuration.apiKey) {
880
+ headerParameters["Sec-Fetch-Site"] = yield this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
881
+ }
882
+ if (this.configuration && this.configuration.apiKey) {
883
+ headerParameters["x-twitter-auth-type"] = yield this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
884
+ }
885
+ if (this.configuration && this.configuration.apiKey) {
886
+ headerParameters["Sec-Ch-Ua-Mobile"] = yield this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
887
+ }
888
+ if (this.configuration && this.configuration.apiKey) {
889
+ headerParameters["Accept-Encoding"] = yield this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
890
+ }
891
+ let urlPath = `/graphql/{pathQueryId}/DeleteList`;
892
+ urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
893
+ return {
894
+ path: urlPath,
895
+ method: 'POST',
896
+ headers: headerParameters,
897
+ query: queryParameters,
898
+ body: (0, PostDeleteListRequest_1.PostDeleteListRequestToJSON)(requestParameters['postDeleteListRequest']),
899
+ };
900
+ });
901
+ }
902
+ /**
903
+ * delete list
904
+ */
905
+ postDeleteListRaw(requestParameters, initOverrides) {
906
+ return __awaiter(this, void 0, void 0, function* () {
907
+ const requestOptions = yield this.postDeleteListRequestOpts(requestParameters);
908
+ const response = yield this.request(requestOptions, initOverrides);
909
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DeleteListResponse_1.DeleteListResponseFromJSON)(jsonValue));
910
+ });
911
+ }
912
+ /**
913
+ * delete list
914
+ */
915
+ postDeleteList(requestParameters, initOverrides) {
916
+ return __awaiter(this, void 0, void 0, function* () {
917
+ const response = yield this.postDeleteListRaw(requestParameters, initOverrides);
918
+ return yield response.value();
919
+ });
920
+ }
1009
921
  /**
1010
922
  * Creates request options for postDeleteRetweet without sending the request
1011
923
  */
1012
- PostApi.prototype.postDeleteRetweetRequestOpts = function (requestParameters) {
1013
- return __awaiter(this, void 0, void 0, function () {
1014
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
1015
- return __generator(this, function (_14) {
1016
- switch (_14.label) {
1017
- case 0:
1018
- if (requestParameters['pathQueryId'] == null) {
1019
- throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postDeleteRetweet().');
1020
- }
1021
- if (requestParameters['postDeleteRetweetRequest'] == null) {
1022
- throw new runtime.RequiredError('postDeleteRetweetRequest', 'Required parameter "postDeleteRetweetRequest" was null or undefined when calling postDeleteRetweet().');
1023
- }
1024
- queryParameters = {};
1025
- headerParameters = {};
1026
- headerParameters['Content-Type'] = 'application/json';
1027
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
1028
- _a = headerParameters;
1029
- _b = "Accept";
1030
- return [4 /*yield*/, this.configuration.apiKey("Accept")];
1031
- case 1:
1032
- _a[_b] = _14.sent(); // Accept authentication
1033
- _14.label = 2;
1034
- case 2:
1035
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
1036
- _c = headerParameters;
1037
- _d = "x-twitter-client-language";
1038
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
1039
- case 3:
1040
- _c[_d] = _14.sent(); // ClientLanguage authentication
1041
- _14.label = 4;
1042
- case 4:
1043
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
1044
- _e = headerParameters;
1045
- _f = "Priority";
1046
- return [4 /*yield*/, this.configuration.apiKey("Priority")];
1047
- case 5:
1048
- _e[_f] = _14.sent(); // Priority authentication
1049
- _14.label = 6;
1050
- case 6:
1051
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
1052
- _g = headerParameters;
1053
- _h = "Referer";
1054
- return [4 /*yield*/, this.configuration.apiKey("Referer")];
1055
- case 7:
1056
- _g[_h] = _14.sent(); // Referer authentication
1057
- _14.label = 8;
1058
- case 8:
1059
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
1060
- _j = headerParameters;
1061
- _k = "Sec-Fetch-Dest";
1062
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
1063
- case 9:
1064
- _j[_k] = _14.sent(); // SecFetchDest authentication
1065
- _14.label = 10;
1066
- case 10:
1067
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
1068
- _l = headerParameters;
1069
- _m = "Sec-Ch-Ua-Platform";
1070
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
1071
- case 11:
1072
- _l[_m] = _14.sent(); // SecChUaPlatform authentication
1073
- _14.label = 12;
1074
- case 12:
1075
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
1076
- _o = headerParameters;
1077
- _p = "Sec-Fetch-Mode";
1078
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
1079
- case 13:
1080
- _o[_p] = _14.sent(); // SecFetchMode authentication
1081
- _14.label = 14;
1082
- case 14:
1083
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
1084
- _q = headerParameters;
1085
- _r = "x-csrf-token";
1086
- return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
1087
- case 15:
1088
- _q[_r] = _14.sent(); // CsrfToken authentication
1089
- _14.label = 16;
1090
- case 16:
1091
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
1092
- _s = headerParameters;
1093
- _t = "x-client-uuid";
1094
- return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
1095
- case 17:
1096
- _s[_t] = _14.sent(); // ClientUuid authentication
1097
- _14.label = 18;
1098
- case 18:
1099
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
1100
- token = this.configuration.accessToken;
1101
- return [4 /*yield*/, token("BearerAuth", [])];
1102
- case 19:
1103
- tokenString = _14.sent();
1104
- if (tokenString) {
1105
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
1106
- }
1107
- _14.label = 20;
1108
- case 20:
1109
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
1110
- _u = headerParameters;
1111
- _v = "x-guest-token";
1112
- return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
1113
- case 21:
1114
- _u[_v] = _14.sent(); // GuestToken authentication
1115
- _14.label = 22;
1116
- case 22:
1117
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
1118
- _w = headerParameters;
1119
- _x = "Sec-Ch-Ua";
1120
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
1121
- case 23:
1122
- _w[_x] = _14.sent(); // SecChUa authentication
1123
- _14.label = 24;
1124
- case 24:
1125
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
1126
- _y = headerParameters;
1127
- _z = "x-client-transaction-id";
1128
- return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
1129
- case 25:
1130
- _y[_z] = _14.sent(); // ClientTransactionId authentication
1131
- _14.label = 26;
1132
- case 26:
1133
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
1134
- _0 = headerParameters;
1135
- _1 = "x-twitter-active-user";
1136
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
1137
- case 27:
1138
- _0[_1] = _14.sent(); // ActiveUser authentication
1139
- _14.label = 28;
1140
- case 28:
1141
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
1142
- _2 = headerParameters;
1143
- _3 = "user-agent";
1144
- return [4 /*yield*/, this.configuration.apiKey("user-agent")];
1145
- case 29:
1146
- _2[_3] = _14.sent(); // UserAgent authentication
1147
- _14.label = 30;
1148
- case 30:
1149
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
1150
- _4 = headerParameters;
1151
- _5 = "Accept-Language";
1152
- return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
1153
- case 31:
1154
- _4[_5] = _14.sent(); // AcceptLanguage authentication
1155
- _14.label = 32;
1156
- case 32:
1157
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
1158
- _6 = headerParameters;
1159
- _7 = "Sec-Fetch-Site";
1160
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
1161
- case 33:
1162
- _6[_7] = _14.sent(); // SecFetchSite authentication
1163
- _14.label = 34;
1164
- case 34:
1165
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
1166
- _8 = headerParameters;
1167
- _9 = "x-twitter-auth-type";
1168
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
1169
- case 35:
1170
- _8[_9] = _14.sent(); // AuthType authentication
1171
- _14.label = 36;
1172
- case 36:
1173
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
1174
- _10 = headerParameters;
1175
- _11 = "Sec-Ch-Ua-Mobile";
1176
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
1177
- case 37:
1178
- _10[_11] = _14.sent(); // SecChUaMobile authentication
1179
- _14.label = 38;
1180
- case 38:
1181
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 40];
1182
- _12 = headerParameters;
1183
- _13 = "Accept-Encoding";
1184
- return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
1185
- case 39:
1186
- _12[_13] = _14.sent(); // AcceptEncoding authentication
1187
- _14.label = 40;
1188
- case 40:
1189
- urlPath = "/graphql/{pathQueryId}/DeleteRetweet";
1190
- urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
1191
- return [2 /*return*/, {
1192
- path: urlPath,
1193
- method: 'POST',
1194
- headers: headerParameters,
1195
- query: queryParameters,
1196
- body: (0, PostDeleteRetweetRequest_1.PostDeleteRetweetRequestToJSON)(requestParameters['postDeleteRetweetRequest']),
1197
- }];
924
+ postDeleteRetweetRequestOpts(requestParameters) {
925
+ return __awaiter(this, void 0, void 0, function* () {
926
+ if (requestParameters['pathQueryId'] == null) {
927
+ throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postDeleteRetweet().');
928
+ }
929
+ if (requestParameters['postDeleteRetweetRequest'] == null) {
930
+ throw new runtime.RequiredError('postDeleteRetweetRequest', 'Required parameter "postDeleteRetweetRequest" was null or undefined when calling postDeleteRetweet().');
931
+ }
932
+ const queryParameters = {};
933
+ const headerParameters = {};
934
+ headerParameters['Content-Type'] = 'application/json';
935
+ if (this.configuration && this.configuration.apiKey) {
936
+ headerParameters["Accept"] = yield this.configuration.apiKey("Accept"); // Accept authentication
937
+ }
938
+ if (this.configuration && this.configuration.apiKey) {
939
+ headerParameters["x-twitter-client-language"] = yield this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
940
+ }
941
+ if (this.configuration && this.configuration.apiKey) {
942
+ headerParameters["Priority"] = yield this.configuration.apiKey("Priority"); // Priority authentication
943
+ }
944
+ if (this.configuration && this.configuration.apiKey) {
945
+ headerParameters["Referer"] = yield this.configuration.apiKey("Referer"); // Referer authentication
946
+ }
947
+ if (this.configuration && this.configuration.apiKey) {
948
+ headerParameters["Sec-Fetch-Dest"] = yield this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
949
+ }
950
+ if (this.configuration && this.configuration.apiKey) {
951
+ headerParameters["Sec-Ch-Ua-Platform"] = yield this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
952
+ }
953
+ if (this.configuration && this.configuration.apiKey) {
954
+ headerParameters["Sec-Fetch-Mode"] = yield this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
955
+ }
956
+ if (this.configuration && this.configuration.apiKey) {
957
+ headerParameters["x-csrf-token"] = yield this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
958
+ }
959
+ if (this.configuration && this.configuration.apiKey) {
960
+ headerParameters["x-client-uuid"] = yield this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
961
+ }
962
+ if (this.configuration && this.configuration.accessToken) {
963
+ const token = this.configuration.accessToken;
964
+ const tokenString = yield token("BearerAuth", []);
965
+ if (tokenString) {
966
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1198
967
  }
1199
- });
968
+ }
969
+ if (this.configuration && this.configuration.apiKey) {
970
+ headerParameters["x-guest-token"] = yield this.configuration.apiKey("x-guest-token"); // GuestToken authentication
971
+ }
972
+ if (this.configuration && this.configuration.apiKey) {
973
+ headerParameters["Sec-Ch-Ua"] = yield this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
974
+ }
975
+ if (this.configuration && this.configuration.apiKey) {
976
+ headerParameters["x-client-transaction-id"] = yield this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
977
+ }
978
+ if (this.configuration && this.configuration.apiKey) {
979
+ headerParameters["x-twitter-active-user"] = yield this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
980
+ }
981
+ if (this.configuration && this.configuration.apiKey) {
982
+ headerParameters["user-agent"] = yield this.configuration.apiKey("user-agent"); // UserAgent authentication
983
+ }
984
+ if (this.configuration && this.configuration.apiKey) {
985
+ headerParameters["Accept-Language"] = yield this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
986
+ }
987
+ if (this.configuration && this.configuration.apiKey) {
988
+ headerParameters["Sec-Fetch-Site"] = yield this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
989
+ }
990
+ if (this.configuration && this.configuration.apiKey) {
991
+ headerParameters["x-twitter-auth-type"] = yield this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
992
+ }
993
+ if (this.configuration && this.configuration.apiKey) {
994
+ headerParameters["Sec-Ch-Ua-Mobile"] = yield this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
995
+ }
996
+ if (this.configuration && this.configuration.apiKey) {
997
+ headerParameters["Accept-Encoding"] = yield this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
998
+ }
999
+ let urlPath = `/graphql/{pathQueryId}/DeleteRetweet`;
1000
+ urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
1001
+ return {
1002
+ path: urlPath,
1003
+ method: 'POST',
1004
+ headers: headerParameters,
1005
+ query: queryParameters,
1006
+ body: (0, PostDeleteRetweetRequest_1.PostDeleteRetweetRequestToJSON)(requestParameters['postDeleteRetweetRequest']),
1007
+ };
1200
1008
  });
1201
- };
1009
+ }
1202
1010
  /**
1203
1011
  * delete Retweet
1204
1012
  */
1205
- PostApi.prototype.postDeleteRetweetRaw = function (requestParameters, initOverrides) {
1206
- return __awaiter(this, void 0, void 0, function () {
1207
- var requestOptions, response;
1208
- return __generator(this, function (_a) {
1209
- switch (_a.label) {
1210
- case 0: return [4 /*yield*/, this.postDeleteRetweetRequestOpts(requestParameters)];
1211
- case 1:
1212
- requestOptions = _a.sent();
1213
- return [4 /*yield*/, this.request(requestOptions, initOverrides)];
1214
- case 2:
1215
- response = _a.sent();
1216
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, DeleteRetweetResponse_1.DeleteRetweetResponseFromJSON)(jsonValue); })];
1217
- }
1218
- });
1013
+ postDeleteRetweetRaw(requestParameters, initOverrides) {
1014
+ return __awaiter(this, void 0, void 0, function* () {
1015
+ const requestOptions = yield this.postDeleteRetweetRequestOpts(requestParameters);
1016
+ const response = yield this.request(requestOptions, initOverrides);
1017
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DeleteRetweetResponse_1.DeleteRetweetResponseFromJSON)(jsonValue));
1219
1018
  });
1220
- };
1019
+ }
1221
1020
  /**
1222
1021
  * delete Retweet
1223
1022
  */
1224
- PostApi.prototype.postDeleteRetweet = function (requestParameters, initOverrides) {
1225
- return __awaiter(this, void 0, void 0, function () {
1226
- var response;
1227
- return __generator(this, function (_a) {
1228
- switch (_a.label) {
1229
- case 0: return [4 /*yield*/, this.postDeleteRetweetRaw(requestParameters, initOverrides)];
1230
- case 1:
1231
- response = _a.sent();
1232
- return [4 /*yield*/, response.value()];
1233
- case 2: return [2 /*return*/, _a.sent()];
1234
- }
1235
- });
1023
+ postDeleteRetweet(requestParameters, initOverrides) {
1024
+ return __awaiter(this, void 0, void 0, function* () {
1025
+ const response = yield this.postDeleteRetweetRaw(requestParameters, initOverrides);
1026
+ return yield response.value();
1236
1027
  });
1237
- };
1028
+ }
1238
1029
  /**
1239
1030
  * Creates request options for postDeleteTweet without sending the request
1240
1031
  */
1241
- PostApi.prototype.postDeleteTweetRequestOpts = function (requestParameters) {
1242
- return __awaiter(this, void 0, void 0, function () {
1243
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
1244
- return __generator(this, function (_14) {
1245
- switch (_14.label) {
1246
- case 0:
1247
- if (requestParameters['pathQueryId'] == null) {
1248
- throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postDeleteTweet().');
1249
- }
1250
- if (requestParameters['postDeleteTweetRequest'] == null) {
1251
- throw new runtime.RequiredError('postDeleteTweetRequest', 'Required parameter "postDeleteTweetRequest" was null or undefined when calling postDeleteTweet().');
1252
- }
1253
- queryParameters = {};
1254
- headerParameters = {};
1255
- headerParameters['Content-Type'] = 'application/json';
1256
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
1257
- _a = headerParameters;
1258
- _b = "Accept";
1259
- return [4 /*yield*/, this.configuration.apiKey("Accept")];
1260
- case 1:
1261
- _a[_b] = _14.sent(); // Accept authentication
1262
- _14.label = 2;
1263
- case 2:
1264
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
1265
- _c = headerParameters;
1266
- _d = "x-twitter-client-language";
1267
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
1268
- case 3:
1269
- _c[_d] = _14.sent(); // ClientLanguage authentication
1270
- _14.label = 4;
1271
- case 4:
1272
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
1273
- _e = headerParameters;
1274
- _f = "Priority";
1275
- return [4 /*yield*/, this.configuration.apiKey("Priority")];
1276
- case 5:
1277
- _e[_f] = _14.sent(); // Priority authentication
1278
- _14.label = 6;
1279
- case 6:
1280
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
1281
- _g = headerParameters;
1282
- _h = "Referer";
1283
- return [4 /*yield*/, this.configuration.apiKey("Referer")];
1284
- case 7:
1285
- _g[_h] = _14.sent(); // Referer authentication
1286
- _14.label = 8;
1287
- case 8:
1288
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
1289
- _j = headerParameters;
1290
- _k = "Sec-Fetch-Dest";
1291
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
1292
- case 9:
1293
- _j[_k] = _14.sent(); // SecFetchDest authentication
1294
- _14.label = 10;
1295
- case 10:
1296
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
1297
- _l = headerParameters;
1298
- _m = "Sec-Ch-Ua-Platform";
1299
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
1300
- case 11:
1301
- _l[_m] = _14.sent(); // SecChUaPlatform authentication
1302
- _14.label = 12;
1303
- case 12:
1304
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
1305
- _o = headerParameters;
1306
- _p = "Sec-Fetch-Mode";
1307
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
1308
- case 13:
1309
- _o[_p] = _14.sent(); // SecFetchMode authentication
1310
- _14.label = 14;
1311
- case 14:
1312
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
1313
- _q = headerParameters;
1314
- _r = "x-csrf-token";
1315
- return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
1316
- case 15:
1317
- _q[_r] = _14.sent(); // CsrfToken authentication
1318
- _14.label = 16;
1319
- case 16:
1320
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
1321
- _s = headerParameters;
1322
- _t = "x-client-uuid";
1323
- return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
1324
- case 17:
1325
- _s[_t] = _14.sent(); // ClientUuid authentication
1326
- _14.label = 18;
1327
- case 18:
1328
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
1329
- token = this.configuration.accessToken;
1330
- return [4 /*yield*/, token("BearerAuth", [])];
1331
- case 19:
1332
- tokenString = _14.sent();
1333
- if (tokenString) {
1334
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
1335
- }
1336
- _14.label = 20;
1337
- case 20:
1338
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
1339
- _u = headerParameters;
1340
- _v = "x-guest-token";
1341
- return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
1342
- case 21:
1343
- _u[_v] = _14.sent(); // GuestToken authentication
1344
- _14.label = 22;
1345
- case 22:
1346
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
1347
- _w = headerParameters;
1348
- _x = "Sec-Ch-Ua";
1349
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
1350
- case 23:
1351
- _w[_x] = _14.sent(); // SecChUa authentication
1352
- _14.label = 24;
1353
- case 24:
1354
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
1355
- _y = headerParameters;
1356
- _z = "x-client-transaction-id";
1357
- return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
1358
- case 25:
1359
- _y[_z] = _14.sent(); // ClientTransactionId authentication
1360
- _14.label = 26;
1361
- case 26:
1362
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
1363
- _0 = headerParameters;
1364
- _1 = "x-twitter-active-user";
1365
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
1366
- case 27:
1367
- _0[_1] = _14.sent(); // ActiveUser authentication
1368
- _14.label = 28;
1369
- case 28:
1370
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
1371
- _2 = headerParameters;
1372
- _3 = "user-agent";
1373
- return [4 /*yield*/, this.configuration.apiKey("user-agent")];
1374
- case 29:
1375
- _2[_3] = _14.sent(); // UserAgent authentication
1376
- _14.label = 30;
1377
- case 30:
1378
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
1379
- _4 = headerParameters;
1380
- _5 = "Accept-Language";
1381
- return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
1382
- case 31:
1383
- _4[_5] = _14.sent(); // AcceptLanguage authentication
1384
- _14.label = 32;
1385
- case 32:
1386
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
1387
- _6 = headerParameters;
1388
- _7 = "Sec-Fetch-Site";
1389
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
1390
- case 33:
1391
- _6[_7] = _14.sent(); // SecFetchSite authentication
1392
- _14.label = 34;
1393
- case 34:
1394
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
1395
- _8 = headerParameters;
1396
- _9 = "x-twitter-auth-type";
1397
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
1398
- case 35:
1399
- _8[_9] = _14.sent(); // AuthType authentication
1400
- _14.label = 36;
1401
- case 36:
1402
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
1403
- _10 = headerParameters;
1404
- _11 = "Sec-Ch-Ua-Mobile";
1405
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
1406
- case 37:
1407
- _10[_11] = _14.sent(); // SecChUaMobile authentication
1408
- _14.label = 38;
1409
- case 38:
1410
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 40];
1411
- _12 = headerParameters;
1412
- _13 = "Accept-Encoding";
1413
- return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
1414
- case 39:
1415
- _12[_13] = _14.sent(); // AcceptEncoding authentication
1416
- _14.label = 40;
1417
- case 40:
1418
- urlPath = "/graphql/{pathQueryId}/DeleteTweet";
1419
- urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
1420
- return [2 /*return*/, {
1421
- path: urlPath,
1422
- method: 'POST',
1423
- headers: headerParameters,
1424
- query: queryParameters,
1425
- body: (0, PostDeleteTweetRequest_1.PostDeleteTweetRequestToJSON)(requestParameters['postDeleteTweetRequest']),
1426
- }];
1032
+ postDeleteTweetRequestOpts(requestParameters) {
1033
+ return __awaiter(this, void 0, void 0, function* () {
1034
+ if (requestParameters['pathQueryId'] == null) {
1035
+ throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postDeleteTweet().');
1036
+ }
1037
+ if (requestParameters['postDeleteTweetRequest'] == null) {
1038
+ throw new runtime.RequiredError('postDeleteTweetRequest', 'Required parameter "postDeleteTweetRequest" was null or undefined when calling postDeleteTweet().');
1039
+ }
1040
+ const queryParameters = {};
1041
+ const headerParameters = {};
1042
+ headerParameters['Content-Type'] = 'application/json';
1043
+ if (this.configuration && this.configuration.apiKey) {
1044
+ headerParameters["Accept"] = yield this.configuration.apiKey("Accept"); // Accept authentication
1045
+ }
1046
+ if (this.configuration && this.configuration.apiKey) {
1047
+ headerParameters["x-twitter-client-language"] = yield this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
1048
+ }
1049
+ if (this.configuration && this.configuration.apiKey) {
1050
+ headerParameters["Priority"] = yield this.configuration.apiKey("Priority"); // Priority authentication
1051
+ }
1052
+ if (this.configuration && this.configuration.apiKey) {
1053
+ headerParameters["Referer"] = yield this.configuration.apiKey("Referer"); // Referer authentication
1054
+ }
1055
+ if (this.configuration && this.configuration.apiKey) {
1056
+ headerParameters["Sec-Fetch-Dest"] = yield this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
1057
+ }
1058
+ if (this.configuration && this.configuration.apiKey) {
1059
+ headerParameters["Sec-Ch-Ua-Platform"] = yield this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
1060
+ }
1061
+ if (this.configuration && this.configuration.apiKey) {
1062
+ headerParameters["Sec-Fetch-Mode"] = yield this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
1063
+ }
1064
+ if (this.configuration && this.configuration.apiKey) {
1065
+ headerParameters["x-csrf-token"] = yield this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
1066
+ }
1067
+ if (this.configuration && this.configuration.apiKey) {
1068
+ headerParameters["x-client-uuid"] = yield this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
1069
+ }
1070
+ if (this.configuration && this.configuration.accessToken) {
1071
+ const token = this.configuration.accessToken;
1072
+ const tokenString = yield token("BearerAuth", []);
1073
+ if (tokenString) {
1074
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1427
1075
  }
1428
- });
1076
+ }
1077
+ if (this.configuration && this.configuration.apiKey) {
1078
+ headerParameters["x-guest-token"] = yield this.configuration.apiKey("x-guest-token"); // GuestToken authentication
1079
+ }
1080
+ if (this.configuration && this.configuration.apiKey) {
1081
+ headerParameters["Sec-Ch-Ua"] = yield this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
1082
+ }
1083
+ if (this.configuration && this.configuration.apiKey) {
1084
+ headerParameters["x-client-transaction-id"] = yield this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
1085
+ }
1086
+ if (this.configuration && this.configuration.apiKey) {
1087
+ headerParameters["x-twitter-active-user"] = yield this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
1088
+ }
1089
+ if (this.configuration && this.configuration.apiKey) {
1090
+ headerParameters["user-agent"] = yield this.configuration.apiKey("user-agent"); // UserAgent authentication
1091
+ }
1092
+ if (this.configuration && this.configuration.apiKey) {
1093
+ headerParameters["Accept-Language"] = yield this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
1094
+ }
1095
+ if (this.configuration && this.configuration.apiKey) {
1096
+ headerParameters["Sec-Fetch-Site"] = yield this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
1097
+ }
1098
+ if (this.configuration && this.configuration.apiKey) {
1099
+ headerParameters["x-twitter-auth-type"] = yield this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
1100
+ }
1101
+ if (this.configuration && this.configuration.apiKey) {
1102
+ headerParameters["Sec-Ch-Ua-Mobile"] = yield this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
1103
+ }
1104
+ if (this.configuration && this.configuration.apiKey) {
1105
+ headerParameters["Accept-Encoding"] = yield this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
1106
+ }
1107
+ let urlPath = `/graphql/{pathQueryId}/DeleteTweet`;
1108
+ urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
1109
+ return {
1110
+ path: urlPath,
1111
+ method: 'POST',
1112
+ headers: headerParameters,
1113
+ query: queryParameters,
1114
+ body: (0, PostDeleteTweetRequest_1.PostDeleteTweetRequestToJSON)(requestParameters['postDeleteTweetRequest']),
1115
+ };
1429
1116
  });
1430
- };
1117
+ }
1431
1118
  /**
1432
1119
  * delete Retweet
1433
1120
  */
1434
- PostApi.prototype.postDeleteTweetRaw = function (requestParameters, initOverrides) {
1435
- return __awaiter(this, void 0, void 0, function () {
1436
- var requestOptions, response;
1437
- return __generator(this, function (_a) {
1438
- switch (_a.label) {
1439
- case 0: return [4 /*yield*/, this.postDeleteTweetRequestOpts(requestParameters)];
1440
- case 1:
1441
- requestOptions = _a.sent();
1442
- return [4 /*yield*/, this.request(requestOptions, initOverrides)];
1443
- case 2:
1444
- response = _a.sent();
1445
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, DeleteTweetResponse_1.DeleteTweetResponseFromJSON)(jsonValue); })];
1446
- }
1447
- });
1121
+ postDeleteTweetRaw(requestParameters, initOverrides) {
1122
+ return __awaiter(this, void 0, void 0, function* () {
1123
+ const requestOptions = yield this.postDeleteTweetRequestOpts(requestParameters);
1124
+ const response = yield this.request(requestOptions, initOverrides);
1125
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DeleteTweetResponse_1.DeleteTweetResponseFromJSON)(jsonValue));
1448
1126
  });
1449
- };
1127
+ }
1450
1128
  /**
1451
1129
  * delete Retweet
1452
1130
  */
1453
- PostApi.prototype.postDeleteTweet = function (requestParameters, initOverrides) {
1454
- return __awaiter(this, void 0, void 0, function () {
1455
- var response;
1456
- return __generator(this, function (_a) {
1457
- switch (_a.label) {
1458
- case 0: return [4 /*yield*/, this.postDeleteTweetRaw(requestParameters, initOverrides)];
1459
- case 1:
1460
- response = _a.sent();
1461
- return [4 /*yield*/, response.value()];
1462
- case 2: return [2 /*return*/, _a.sent()];
1463
- }
1464
- });
1131
+ postDeleteTweet(requestParameters, initOverrides) {
1132
+ return __awaiter(this, void 0, void 0, function* () {
1133
+ const response = yield this.postDeleteTweetRaw(requestParameters, initOverrides);
1134
+ return yield response.value();
1465
1135
  });
1466
- };
1136
+ }
1467
1137
  /**
1468
1138
  * Creates request options for postFavoriteTweet without sending the request
1469
1139
  */
1470
- PostApi.prototype.postFavoriteTweetRequestOpts = function (requestParameters) {
1471
- return __awaiter(this, void 0, void 0, function () {
1472
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
1473
- return __generator(this, function (_14) {
1474
- switch (_14.label) {
1475
- case 0:
1476
- if (requestParameters['pathQueryId'] == null) {
1477
- throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postFavoriteTweet().');
1478
- }
1479
- if (requestParameters['postFavoriteTweetRequest'] == null) {
1480
- throw new runtime.RequiredError('postFavoriteTweetRequest', 'Required parameter "postFavoriteTweetRequest" was null or undefined when calling postFavoriteTweet().');
1481
- }
1482
- queryParameters = {};
1483
- headerParameters = {};
1484
- headerParameters['Content-Type'] = 'application/json';
1485
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
1486
- _a = headerParameters;
1487
- _b = "Accept";
1488
- return [4 /*yield*/, this.configuration.apiKey("Accept")];
1489
- case 1:
1490
- _a[_b] = _14.sent(); // Accept authentication
1491
- _14.label = 2;
1492
- case 2:
1493
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
1494
- _c = headerParameters;
1495
- _d = "x-twitter-client-language";
1496
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
1497
- case 3:
1498
- _c[_d] = _14.sent(); // ClientLanguage authentication
1499
- _14.label = 4;
1500
- case 4:
1501
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
1502
- _e = headerParameters;
1503
- _f = "Priority";
1504
- return [4 /*yield*/, this.configuration.apiKey("Priority")];
1505
- case 5:
1506
- _e[_f] = _14.sent(); // Priority authentication
1507
- _14.label = 6;
1508
- case 6:
1509
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
1510
- _g = headerParameters;
1511
- _h = "Referer";
1512
- return [4 /*yield*/, this.configuration.apiKey("Referer")];
1513
- case 7:
1514
- _g[_h] = _14.sent(); // Referer authentication
1515
- _14.label = 8;
1516
- case 8:
1517
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
1518
- _j = headerParameters;
1519
- _k = "Sec-Fetch-Dest";
1520
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
1521
- case 9:
1522
- _j[_k] = _14.sent(); // SecFetchDest authentication
1523
- _14.label = 10;
1524
- case 10:
1525
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
1526
- _l = headerParameters;
1527
- _m = "Sec-Ch-Ua-Platform";
1528
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
1529
- case 11:
1530
- _l[_m] = _14.sent(); // SecChUaPlatform authentication
1531
- _14.label = 12;
1532
- case 12:
1533
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
1534
- _o = headerParameters;
1535
- _p = "Sec-Fetch-Mode";
1536
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
1537
- case 13:
1538
- _o[_p] = _14.sent(); // SecFetchMode authentication
1539
- _14.label = 14;
1540
- case 14:
1541
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
1542
- _q = headerParameters;
1543
- _r = "x-csrf-token";
1544
- return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
1545
- case 15:
1546
- _q[_r] = _14.sent(); // CsrfToken authentication
1547
- _14.label = 16;
1548
- case 16:
1549
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
1550
- _s = headerParameters;
1551
- _t = "x-client-uuid";
1552
- return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
1553
- case 17:
1554
- _s[_t] = _14.sent(); // ClientUuid authentication
1555
- _14.label = 18;
1556
- case 18:
1557
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
1558
- token = this.configuration.accessToken;
1559
- return [4 /*yield*/, token("BearerAuth", [])];
1560
- case 19:
1561
- tokenString = _14.sent();
1562
- if (tokenString) {
1563
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
1564
- }
1565
- _14.label = 20;
1566
- case 20:
1567
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
1568
- _u = headerParameters;
1569
- _v = "x-guest-token";
1570
- return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
1571
- case 21:
1572
- _u[_v] = _14.sent(); // GuestToken authentication
1573
- _14.label = 22;
1574
- case 22:
1575
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
1576
- _w = headerParameters;
1577
- _x = "Sec-Ch-Ua";
1578
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
1579
- case 23:
1580
- _w[_x] = _14.sent(); // SecChUa authentication
1581
- _14.label = 24;
1582
- case 24:
1583
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
1584
- _y = headerParameters;
1585
- _z = "x-client-transaction-id";
1586
- return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
1587
- case 25:
1588
- _y[_z] = _14.sent(); // ClientTransactionId authentication
1589
- _14.label = 26;
1590
- case 26:
1591
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
1592
- _0 = headerParameters;
1593
- _1 = "x-twitter-active-user";
1594
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
1595
- case 27:
1596
- _0[_1] = _14.sent(); // ActiveUser authentication
1597
- _14.label = 28;
1598
- case 28:
1599
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
1600
- _2 = headerParameters;
1601
- _3 = "user-agent";
1602
- return [4 /*yield*/, this.configuration.apiKey("user-agent")];
1603
- case 29:
1604
- _2[_3] = _14.sent(); // UserAgent authentication
1605
- _14.label = 30;
1606
- case 30:
1607
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
1608
- _4 = headerParameters;
1609
- _5 = "Accept-Language";
1610
- return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
1611
- case 31:
1612
- _4[_5] = _14.sent(); // AcceptLanguage authentication
1613
- _14.label = 32;
1614
- case 32:
1615
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
1616
- _6 = headerParameters;
1617
- _7 = "Sec-Fetch-Site";
1618
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
1619
- case 33:
1620
- _6[_7] = _14.sent(); // SecFetchSite authentication
1621
- _14.label = 34;
1622
- case 34:
1623
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
1624
- _8 = headerParameters;
1625
- _9 = "x-twitter-auth-type";
1626
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
1627
- case 35:
1628
- _8[_9] = _14.sent(); // AuthType authentication
1629
- _14.label = 36;
1630
- case 36:
1631
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
1632
- _10 = headerParameters;
1633
- _11 = "Sec-Ch-Ua-Mobile";
1634
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
1635
- case 37:
1636
- _10[_11] = _14.sent(); // SecChUaMobile authentication
1637
- _14.label = 38;
1638
- case 38:
1639
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 40];
1640
- _12 = headerParameters;
1641
- _13 = "Accept-Encoding";
1642
- return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
1643
- case 39:
1644
- _12[_13] = _14.sent(); // AcceptEncoding authentication
1645
- _14.label = 40;
1646
- case 40:
1647
- urlPath = "/graphql/{pathQueryId}/FavoriteTweet";
1648
- urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
1649
- return [2 /*return*/, {
1650
- path: urlPath,
1651
- method: 'POST',
1652
- headers: headerParameters,
1653
- query: queryParameters,
1654
- body: (0, PostFavoriteTweetRequest_1.PostFavoriteTweetRequestToJSON)(requestParameters['postFavoriteTweetRequest']),
1655
- }];
1140
+ postFavoriteTweetRequestOpts(requestParameters) {
1141
+ return __awaiter(this, void 0, void 0, function* () {
1142
+ if (requestParameters['pathQueryId'] == null) {
1143
+ throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postFavoriteTweet().');
1144
+ }
1145
+ if (requestParameters['postFavoriteTweetRequest'] == null) {
1146
+ throw new runtime.RequiredError('postFavoriteTweetRequest', 'Required parameter "postFavoriteTweetRequest" was null or undefined when calling postFavoriteTweet().');
1147
+ }
1148
+ const queryParameters = {};
1149
+ const headerParameters = {};
1150
+ headerParameters['Content-Type'] = 'application/json';
1151
+ if (this.configuration && this.configuration.apiKey) {
1152
+ headerParameters["Accept"] = yield this.configuration.apiKey("Accept"); // Accept authentication
1153
+ }
1154
+ if (this.configuration && this.configuration.apiKey) {
1155
+ headerParameters["x-twitter-client-language"] = yield this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
1156
+ }
1157
+ if (this.configuration && this.configuration.apiKey) {
1158
+ headerParameters["Priority"] = yield this.configuration.apiKey("Priority"); // Priority authentication
1159
+ }
1160
+ if (this.configuration && this.configuration.apiKey) {
1161
+ headerParameters["Referer"] = yield this.configuration.apiKey("Referer"); // Referer authentication
1162
+ }
1163
+ if (this.configuration && this.configuration.apiKey) {
1164
+ headerParameters["Sec-Fetch-Dest"] = yield this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
1165
+ }
1166
+ if (this.configuration && this.configuration.apiKey) {
1167
+ headerParameters["Sec-Ch-Ua-Platform"] = yield this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
1168
+ }
1169
+ if (this.configuration && this.configuration.apiKey) {
1170
+ headerParameters["Sec-Fetch-Mode"] = yield this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
1171
+ }
1172
+ if (this.configuration && this.configuration.apiKey) {
1173
+ headerParameters["x-csrf-token"] = yield this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
1174
+ }
1175
+ if (this.configuration && this.configuration.apiKey) {
1176
+ headerParameters["x-client-uuid"] = yield this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
1177
+ }
1178
+ if (this.configuration && this.configuration.accessToken) {
1179
+ const token = this.configuration.accessToken;
1180
+ const tokenString = yield token("BearerAuth", []);
1181
+ if (tokenString) {
1182
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1656
1183
  }
1657
- });
1184
+ }
1185
+ if (this.configuration && this.configuration.apiKey) {
1186
+ headerParameters["x-guest-token"] = yield this.configuration.apiKey("x-guest-token"); // GuestToken authentication
1187
+ }
1188
+ if (this.configuration && this.configuration.apiKey) {
1189
+ headerParameters["Sec-Ch-Ua"] = yield this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
1190
+ }
1191
+ if (this.configuration && this.configuration.apiKey) {
1192
+ headerParameters["x-client-transaction-id"] = yield this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
1193
+ }
1194
+ if (this.configuration && this.configuration.apiKey) {
1195
+ headerParameters["x-twitter-active-user"] = yield this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
1196
+ }
1197
+ if (this.configuration && this.configuration.apiKey) {
1198
+ headerParameters["user-agent"] = yield this.configuration.apiKey("user-agent"); // UserAgent authentication
1199
+ }
1200
+ if (this.configuration && this.configuration.apiKey) {
1201
+ headerParameters["Accept-Language"] = yield this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
1202
+ }
1203
+ if (this.configuration && this.configuration.apiKey) {
1204
+ headerParameters["Sec-Fetch-Site"] = yield this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
1205
+ }
1206
+ if (this.configuration && this.configuration.apiKey) {
1207
+ headerParameters["x-twitter-auth-type"] = yield this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
1208
+ }
1209
+ if (this.configuration && this.configuration.apiKey) {
1210
+ headerParameters["Sec-Ch-Ua-Mobile"] = yield this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
1211
+ }
1212
+ if (this.configuration && this.configuration.apiKey) {
1213
+ headerParameters["Accept-Encoding"] = yield this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
1214
+ }
1215
+ let urlPath = `/graphql/{pathQueryId}/FavoriteTweet`;
1216
+ urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
1217
+ return {
1218
+ path: urlPath,
1219
+ method: 'POST',
1220
+ headers: headerParameters,
1221
+ query: queryParameters,
1222
+ body: (0, PostFavoriteTweetRequest_1.PostFavoriteTweetRequestToJSON)(requestParameters['postFavoriteTweetRequest']),
1223
+ };
1658
1224
  });
1659
- };
1225
+ }
1660
1226
  /**
1661
1227
  * favorite Tweet
1662
1228
  */
1663
- PostApi.prototype.postFavoriteTweetRaw = function (requestParameters, initOverrides) {
1664
- return __awaiter(this, void 0, void 0, function () {
1665
- var requestOptions, response;
1666
- return __generator(this, function (_a) {
1667
- switch (_a.label) {
1668
- case 0: return [4 /*yield*/, this.postFavoriteTweetRequestOpts(requestParameters)];
1669
- case 1:
1670
- requestOptions = _a.sent();
1671
- return [4 /*yield*/, this.request(requestOptions, initOverrides)];
1672
- case 2:
1673
- response = _a.sent();
1674
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, FavoriteTweetResponse_1.FavoriteTweetResponseFromJSON)(jsonValue); })];
1675
- }
1676
- });
1229
+ postFavoriteTweetRaw(requestParameters, initOverrides) {
1230
+ return __awaiter(this, void 0, void 0, function* () {
1231
+ const requestOptions = yield this.postFavoriteTweetRequestOpts(requestParameters);
1232
+ const response = yield this.request(requestOptions, initOverrides);
1233
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, FavoriteTweetResponse_1.FavoriteTweetResponseFromJSON)(jsonValue));
1677
1234
  });
1678
- };
1235
+ }
1679
1236
  /**
1680
1237
  * favorite Tweet
1681
1238
  */
1682
- PostApi.prototype.postFavoriteTweet = function (requestParameters, initOverrides) {
1683
- return __awaiter(this, void 0, void 0, function () {
1684
- var response;
1685
- return __generator(this, function (_a) {
1686
- switch (_a.label) {
1687
- case 0: return [4 /*yield*/, this.postFavoriteTweetRaw(requestParameters, initOverrides)];
1688
- case 1:
1689
- response = _a.sent();
1690
- return [4 /*yield*/, response.value()];
1691
- case 2: return [2 /*return*/, _a.sent()];
1239
+ postFavoriteTweet(requestParameters, initOverrides) {
1240
+ return __awaiter(this, void 0, void 0, function* () {
1241
+ const response = yield this.postFavoriteTweetRaw(requestParameters, initOverrides);
1242
+ return yield response.value();
1243
+ });
1244
+ }
1245
+ /**
1246
+ * Creates request options for postListAddMember without sending the request
1247
+ */
1248
+ postListAddMemberRequestOpts(requestParameters) {
1249
+ return __awaiter(this, void 0, void 0, function* () {
1250
+ if (requestParameters['pathQueryId'] == null) {
1251
+ throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postListAddMember().');
1252
+ }
1253
+ if (requestParameters['postListAddMemberRequest'] == null) {
1254
+ throw new runtime.RequiredError('postListAddMemberRequest', 'Required parameter "postListAddMemberRequest" was null or undefined when calling postListAddMember().');
1255
+ }
1256
+ const queryParameters = {};
1257
+ const headerParameters = {};
1258
+ headerParameters['Content-Type'] = 'application/json';
1259
+ if (this.configuration && this.configuration.apiKey) {
1260
+ headerParameters["Accept"] = yield this.configuration.apiKey("Accept"); // Accept authentication
1261
+ }
1262
+ if (this.configuration && this.configuration.apiKey) {
1263
+ headerParameters["x-twitter-client-language"] = yield this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
1264
+ }
1265
+ if (this.configuration && this.configuration.apiKey) {
1266
+ headerParameters["Priority"] = yield this.configuration.apiKey("Priority"); // Priority authentication
1267
+ }
1268
+ if (this.configuration && this.configuration.apiKey) {
1269
+ headerParameters["Referer"] = yield this.configuration.apiKey("Referer"); // Referer authentication
1270
+ }
1271
+ if (this.configuration && this.configuration.apiKey) {
1272
+ headerParameters["Sec-Fetch-Dest"] = yield this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
1273
+ }
1274
+ if (this.configuration && this.configuration.apiKey) {
1275
+ headerParameters["Sec-Ch-Ua-Platform"] = yield this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
1276
+ }
1277
+ if (this.configuration && this.configuration.apiKey) {
1278
+ headerParameters["Sec-Fetch-Mode"] = yield this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
1279
+ }
1280
+ if (this.configuration && this.configuration.apiKey) {
1281
+ headerParameters["x-csrf-token"] = yield this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
1282
+ }
1283
+ if (this.configuration && this.configuration.apiKey) {
1284
+ headerParameters["x-client-uuid"] = yield this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
1285
+ }
1286
+ if (this.configuration && this.configuration.accessToken) {
1287
+ const token = this.configuration.accessToken;
1288
+ const tokenString = yield token("BearerAuth", []);
1289
+ if (tokenString) {
1290
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1692
1291
  }
1693
- });
1292
+ }
1293
+ if (this.configuration && this.configuration.apiKey) {
1294
+ headerParameters["x-guest-token"] = yield this.configuration.apiKey("x-guest-token"); // GuestToken authentication
1295
+ }
1296
+ if (this.configuration && this.configuration.apiKey) {
1297
+ headerParameters["Sec-Ch-Ua"] = yield this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
1298
+ }
1299
+ if (this.configuration && this.configuration.apiKey) {
1300
+ headerParameters["x-client-transaction-id"] = yield this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
1301
+ }
1302
+ if (this.configuration && this.configuration.apiKey) {
1303
+ headerParameters["x-twitter-active-user"] = yield this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
1304
+ }
1305
+ if (this.configuration && this.configuration.apiKey) {
1306
+ headerParameters["user-agent"] = yield this.configuration.apiKey("user-agent"); // UserAgent authentication
1307
+ }
1308
+ if (this.configuration && this.configuration.apiKey) {
1309
+ headerParameters["Accept-Language"] = yield this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
1310
+ }
1311
+ if (this.configuration && this.configuration.apiKey) {
1312
+ headerParameters["Sec-Fetch-Site"] = yield this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
1313
+ }
1314
+ if (this.configuration && this.configuration.apiKey) {
1315
+ headerParameters["x-twitter-auth-type"] = yield this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
1316
+ }
1317
+ if (this.configuration && this.configuration.apiKey) {
1318
+ headerParameters["Sec-Ch-Ua-Mobile"] = yield this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
1319
+ }
1320
+ if (this.configuration && this.configuration.apiKey) {
1321
+ headerParameters["Accept-Encoding"] = yield this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
1322
+ }
1323
+ let urlPath = `/graphql/{pathQueryId}/ListAddMember`;
1324
+ urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
1325
+ return {
1326
+ path: urlPath,
1327
+ method: 'POST',
1328
+ headers: headerParameters,
1329
+ query: queryParameters,
1330
+ body: (0, PostListAddMemberRequest_1.PostListAddMemberRequestToJSON)(requestParameters['postListAddMemberRequest']),
1331
+ };
1332
+ });
1333
+ }
1334
+ /**
1335
+ * add a member to a list
1336
+ */
1337
+ postListAddMemberRaw(requestParameters, initOverrides) {
1338
+ return __awaiter(this, void 0, void 0, function* () {
1339
+ const requestOptions = yield this.postListAddMemberRequestOpts(requestParameters);
1340
+ const response = yield this.request(requestOptions, initOverrides);
1341
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, ListResponse_1.ListResponseFromJSON)(jsonValue));
1342
+ });
1343
+ }
1344
+ /**
1345
+ * add a member to a list
1346
+ */
1347
+ postListAddMember(requestParameters, initOverrides) {
1348
+ return __awaiter(this, void 0, void 0, function* () {
1349
+ const response = yield this.postListAddMemberRaw(requestParameters, initOverrides);
1350
+ return yield response.value();
1694
1351
  });
1695
- };
1352
+ }
1353
+ /**
1354
+ * Creates request options for postListRemoveMember without sending the request
1355
+ */
1356
+ postListRemoveMemberRequestOpts(requestParameters) {
1357
+ return __awaiter(this, void 0, void 0, function* () {
1358
+ if (requestParameters['pathQueryId'] == null) {
1359
+ throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postListRemoveMember().');
1360
+ }
1361
+ if (requestParameters['postListRemoveMemberRequest'] == null) {
1362
+ throw new runtime.RequiredError('postListRemoveMemberRequest', 'Required parameter "postListRemoveMemberRequest" was null or undefined when calling postListRemoveMember().');
1363
+ }
1364
+ const queryParameters = {};
1365
+ const headerParameters = {};
1366
+ headerParameters['Content-Type'] = 'application/json';
1367
+ if (this.configuration && this.configuration.apiKey) {
1368
+ headerParameters["Accept"] = yield this.configuration.apiKey("Accept"); // Accept authentication
1369
+ }
1370
+ if (this.configuration && this.configuration.apiKey) {
1371
+ headerParameters["x-twitter-client-language"] = yield this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
1372
+ }
1373
+ if (this.configuration && this.configuration.apiKey) {
1374
+ headerParameters["Priority"] = yield this.configuration.apiKey("Priority"); // Priority authentication
1375
+ }
1376
+ if (this.configuration && this.configuration.apiKey) {
1377
+ headerParameters["Referer"] = yield this.configuration.apiKey("Referer"); // Referer authentication
1378
+ }
1379
+ if (this.configuration && this.configuration.apiKey) {
1380
+ headerParameters["Sec-Fetch-Dest"] = yield this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
1381
+ }
1382
+ if (this.configuration && this.configuration.apiKey) {
1383
+ headerParameters["Sec-Ch-Ua-Platform"] = yield this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
1384
+ }
1385
+ if (this.configuration && this.configuration.apiKey) {
1386
+ headerParameters["Sec-Fetch-Mode"] = yield this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
1387
+ }
1388
+ if (this.configuration && this.configuration.apiKey) {
1389
+ headerParameters["x-csrf-token"] = yield this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
1390
+ }
1391
+ if (this.configuration && this.configuration.apiKey) {
1392
+ headerParameters["x-client-uuid"] = yield this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
1393
+ }
1394
+ if (this.configuration && this.configuration.accessToken) {
1395
+ const token = this.configuration.accessToken;
1396
+ const tokenString = yield token("BearerAuth", []);
1397
+ if (tokenString) {
1398
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1399
+ }
1400
+ }
1401
+ if (this.configuration && this.configuration.apiKey) {
1402
+ headerParameters["x-guest-token"] = yield this.configuration.apiKey("x-guest-token"); // GuestToken authentication
1403
+ }
1404
+ if (this.configuration && this.configuration.apiKey) {
1405
+ headerParameters["Sec-Ch-Ua"] = yield this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
1406
+ }
1407
+ if (this.configuration && this.configuration.apiKey) {
1408
+ headerParameters["x-client-transaction-id"] = yield this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
1409
+ }
1410
+ if (this.configuration && this.configuration.apiKey) {
1411
+ headerParameters["x-twitter-active-user"] = yield this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
1412
+ }
1413
+ if (this.configuration && this.configuration.apiKey) {
1414
+ headerParameters["user-agent"] = yield this.configuration.apiKey("user-agent"); // UserAgent authentication
1415
+ }
1416
+ if (this.configuration && this.configuration.apiKey) {
1417
+ headerParameters["Accept-Language"] = yield this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
1418
+ }
1419
+ if (this.configuration && this.configuration.apiKey) {
1420
+ headerParameters["Sec-Fetch-Site"] = yield this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
1421
+ }
1422
+ if (this.configuration && this.configuration.apiKey) {
1423
+ headerParameters["x-twitter-auth-type"] = yield this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
1424
+ }
1425
+ if (this.configuration && this.configuration.apiKey) {
1426
+ headerParameters["Sec-Ch-Ua-Mobile"] = yield this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
1427
+ }
1428
+ if (this.configuration && this.configuration.apiKey) {
1429
+ headerParameters["Accept-Encoding"] = yield this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
1430
+ }
1431
+ let urlPath = `/graphql/{pathQueryId}/ListRemoveMember`;
1432
+ urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
1433
+ return {
1434
+ path: urlPath,
1435
+ method: 'POST',
1436
+ headers: headerParameters,
1437
+ query: queryParameters,
1438
+ body: (0, PostListRemoveMemberRequest_1.PostListRemoveMemberRequestToJSON)(requestParameters['postListRemoveMemberRequest']),
1439
+ };
1440
+ });
1441
+ }
1442
+ /**
1443
+ * remove a member from a list
1444
+ */
1445
+ postListRemoveMemberRaw(requestParameters, initOverrides) {
1446
+ return __awaiter(this, void 0, void 0, function* () {
1447
+ const requestOptions = yield this.postListRemoveMemberRequestOpts(requestParameters);
1448
+ const response = yield this.request(requestOptions, initOverrides);
1449
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, ListResponse_1.ListResponseFromJSON)(jsonValue));
1450
+ });
1451
+ }
1452
+ /**
1453
+ * remove a member from a list
1454
+ */
1455
+ postListRemoveMember(requestParameters, initOverrides) {
1456
+ return __awaiter(this, void 0, void 0, function* () {
1457
+ const response = yield this.postListRemoveMemberRaw(requestParameters, initOverrides);
1458
+ return yield response.value();
1459
+ });
1460
+ }
1696
1461
  /**
1697
1462
  * Creates request options for postUnfavoriteTweet without sending the request
1698
1463
  */
1699
- PostApi.prototype.postUnfavoriteTweetRequestOpts = function (requestParameters) {
1700
- return __awaiter(this, void 0, void 0, function () {
1701
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
1702
- return __generator(this, function (_14) {
1703
- switch (_14.label) {
1704
- case 0:
1705
- if (requestParameters['pathQueryId'] == null) {
1706
- throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postUnfavoriteTweet().');
1707
- }
1708
- if (requestParameters['postUnfavoriteTweetRequest'] == null) {
1709
- throw new runtime.RequiredError('postUnfavoriteTweetRequest', 'Required parameter "postUnfavoriteTweetRequest" was null or undefined when calling postUnfavoriteTweet().');
1710
- }
1711
- queryParameters = {};
1712
- headerParameters = {};
1713
- headerParameters['Content-Type'] = 'application/json';
1714
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
1715
- _a = headerParameters;
1716
- _b = "Accept";
1717
- return [4 /*yield*/, this.configuration.apiKey("Accept")];
1718
- case 1:
1719
- _a[_b] = _14.sent(); // Accept authentication
1720
- _14.label = 2;
1721
- case 2:
1722
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
1723
- _c = headerParameters;
1724
- _d = "x-twitter-client-language";
1725
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
1726
- case 3:
1727
- _c[_d] = _14.sent(); // ClientLanguage authentication
1728
- _14.label = 4;
1729
- case 4:
1730
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
1731
- _e = headerParameters;
1732
- _f = "Priority";
1733
- return [4 /*yield*/, this.configuration.apiKey("Priority")];
1734
- case 5:
1735
- _e[_f] = _14.sent(); // Priority authentication
1736
- _14.label = 6;
1737
- case 6:
1738
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
1739
- _g = headerParameters;
1740
- _h = "Referer";
1741
- return [4 /*yield*/, this.configuration.apiKey("Referer")];
1742
- case 7:
1743
- _g[_h] = _14.sent(); // Referer authentication
1744
- _14.label = 8;
1745
- case 8:
1746
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
1747
- _j = headerParameters;
1748
- _k = "Sec-Fetch-Dest";
1749
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
1750
- case 9:
1751
- _j[_k] = _14.sent(); // SecFetchDest authentication
1752
- _14.label = 10;
1753
- case 10:
1754
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
1755
- _l = headerParameters;
1756
- _m = "Sec-Ch-Ua-Platform";
1757
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
1758
- case 11:
1759
- _l[_m] = _14.sent(); // SecChUaPlatform authentication
1760
- _14.label = 12;
1761
- case 12:
1762
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
1763
- _o = headerParameters;
1764
- _p = "Sec-Fetch-Mode";
1765
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
1766
- case 13:
1767
- _o[_p] = _14.sent(); // SecFetchMode authentication
1768
- _14.label = 14;
1769
- case 14:
1770
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
1771
- _q = headerParameters;
1772
- _r = "x-csrf-token";
1773
- return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
1774
- case 15:
1775
- _q[_r] = _14.sent(); // CsrfToken authentication
1776
- _14.label = 16;
1777
- case 16:
1778
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
1779
- _s = headerParameters;
1780
- _t = "x-client-uuid";
1781
- return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
1782
- case 17:
1783
- _s[_t] = _14.sent(); // ClientUuid authentication
1784
- _14.label = 18;
1785
- case 18:
1786
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
1787
- token = this.configuration.accessToken;
1788
- return [4 /*yield*/, token("BearerAuth", [])];
1789
- case 19:
1790
- tokenString = _14.sent();
1791
- if (tokenString) {
1792
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
1793
- }
1794
- _14.label = 20;
1795
- case 20:
1796
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
1797
- _u = headerParameters;
1798
- _v = "x-guest-token";
1799
- return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
1800
- case 21:
1801
- _u[_v] = _14.sent(); // GuestToken authentication
1802
- _14.label = 22;
1803
- case 22:
1804
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
1805
- _w = headerParameters;
1806
- _x = "Sec-Ch-Ua";
1807
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
1808
- case 23:
1809
- _w[_x] = _14.sent(); // SecChUa authentication
1810
- _14.label = 24;
1811
- case 24:
1812
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
1813
- _y = headerParameters;
1814
- _z = "x-client-transaction-id";
1815
- return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
1816
- case 25:
1817
- _y[_z] = _14.sent(); // ClientTransactionId authentication
1818
- _14.label = 26;
1819
- case 26:
1820
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
1821
- _0 = headerParameters;
1822
- _1 = "x-twitter-active-user";
1823
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
1824
- case 27:
1825
- _0[_1] = _14.sent(); // ActiveUser authentication
1826
- _14.label = 28;
1827
- case 28:
1828
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
1829
- _2 = headerParameters;
1830
- _3 = "user-agent";
1831
- return [4 /*yield*/, this.configuration.apiKey("user-agent")];
1832
- case 29:
1833
- _2[_3] = _14.sent(); // UserAgent authentication
1834
- _14.label = 30;
1835
- case 30:
1836
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
1837
- _4 = headerParameters;
1838
- _5 = "Accept-Language";
1839
- return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
1840
- case 31:
1841
- _4[_5] = _14.sent(); // AcceptLanguage authentication
1842
- _14.label = 32;
1843
- case 32:
1844
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
1845
- _6 = headerParameters;
1846
- _7 = "Sec-Fetch-Site";
1847
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
1848
- case 33:
1849
- _6[_7] = _14.sent(); // SecFetchSite authentication
1850
- _14.label = 34;
1851
- case 34:
1852
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
1853
- _8 = headerParameters;
1854
- _9 = "x-twitter-auth-type";
1855
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
1856
- case 35:
1857
- _8[_9] = _14.sent(); // AuthType authentication
1858
- _14.label = 36;
1859
- case 36:
1860
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
1861
- _10 = headerParameters;
1862
- _11 = "Sec-Ch-Ua-Mobile";
1863
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
1864
- case 37:
1865
- _10[_11] = _14.sent(); // SecChUaMobile authentication
1866
- _14.label = 38;
1867
- case 38:
1868
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 40];
1869
- _12 = headerParameters;
1870
- _13 = "Accept-Encoding";
1871
- return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
1872
- case 39:
1873
- _12[_13] = _14.sent(); // AcceptEncoding authentication
1874
- _14.label = 40;
1875
- case 40:
1876
- urlPath = "/graphql/{pathQueryId}/UnfavoriteTweet";
1877
- urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
1878
- return [2 /*return*/, {
1879
- path: urlPath,
1880
- method: 'POST',
1881
- headers: headerParameters,
1882
- query: queryParameters,
1883
- body: (0, PostUnfavoriteTweetRequest_1.PostUnfavoriteTweetRequestToJSON)(requestParameters['postUnfavoriteTweetRequest']),
1884
- }];
1464
+ postUnfavoriteTweetRequestOpts(requestParameters) {
1465
+ return __awaiter(this, void 0, void 0, function* () {
1466
+ if (requestParameters['pathQueryId'] == null) {
1467
+ throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postUnfavoriteTweet().');
1468
+ }
1469
+ if (requestParameters['postUnfavoriteTweetRequest'] == null) {
1470
+ throw new runtime.RequiredError('postUnfavoriteTweetRequest', 'Required parameter "postUnfavoriteTweetRequest" was null or undefined when calling postUnfavoriteTweet().');
1471
+ }
1472
+ const queryParameters = {};
1473
+ const headerParameters = {};
1474
+ headerParameters['Content-Type'] = 'application/json';
1475
+ if (this.configuration && this.configuration.apiKey) {
1476
+ headerParameters["Accept"] = yield this.configuration.apiKey("Accept"); // Accept authentication
1477
+ }
1478
+ if (this.configuration && this.configuration.apiKey) {
1479
+ headerParameters["x-twitter-client-language"] = yield this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
1480
+ }
1481
+ if (this.configuration && this.configuration.apiKey) {
1482
+ headerParameters["Priority"] = yield this.configuration.apiKey("Priority"); // Priority authentication
1483
+ }
1484
+ if (this.configuration && this.configuration.apiKey) {
1485
+ headerParameters["Referer"] = yield this.configuration.apiKey("Referer"); // Referer authentication
1486
+ }
1487
+ if (this.configuration && this.configuration.apiKey) {
1488
+ headerParameters["Sec-Fetch-Dest"] = yield this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
1489
+ }
1490
+ if (this.configuration && this.configuration.apiKey) {
1491
+ headerParameters["Sec-Ch-Ua-Platform"] = yield this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
1492
+ }
1493
+ if (this.configuration && this.configuration.apiKey) {
1494
+ headerParameters["Sec-Fetch-Mode"] = yield this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
1495
+ }
1496
+ if (this.configuration && this.configuration.apiKey) {
1497
+ headerParameters["x-csrf-token"] = yield this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
1498
+ }
1499
+ if (this.configuration && this.configuration.apiKey) {
1500
+ headerParameters["x-client-uuid"] = yield this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
1501
+ }
1502
+ if (this.configuration && this.configuration.accessToken) {
1503
+ const token = this.configuration.accessToken;
1504
+ const tokenString = yield token("BearerAuth", []);
1505
+ if (tokenString) {
1506
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1885
1507
  }
1886
- });
1508
+ }
1509
+ if (this.configuration && this.configuration.apiKey) {
1510
+ headerParameters["x-guest-token"] = yield this.configuration.apiKey("x-guest-token"); // GuestToken authentication
1511
+ }
1512
+ if (this.configuration && this.configuration.apiKey) {
1513
+ headerParameters["Sec-Ch-Ua"] = yield this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
1514
+ }
1515
+ if (this.configuration && this.configuration.apiKey) {
1516
+ headerParameters["x-client-transaction-id"] = yield this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
1517
+ }
1518
+ if (this.configuration && this.configuration.apiKey) {
1519
+ headerParameters["x-twitter-active-user"] = yield this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
1520
+ }
1521
+ if (this.configuration && this.configuration.apiKey) {
1522
+ headerParameters["user-agent"] = yield this.configuration.apiKey("user-agent"); // UserAgent authentication
1523
+ }
1524
+ if (this.configuration && this.configuration.apiKey) {
1525
+ headerParameters["Accept-Language"] = yield this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
1526
+ }
1527
+ if (this.configuration && this.configuration.apiKey) {
1528
+ headerParameters["Sec-Fetch-Site"] = yield this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
1529
+ }
1530
+ if (this.configuration && this.configuration.apiKey) {
1531
+ headerParameters["x-twitter-auth-type"] = yield this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
1532
+ }
1533
+ if (this.configuration && this.configuration.apiKey) {
1534
+ headerParameters["Sec-Ch-Ua-Mobile"] = yield this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
1535
+ }
1536
+ if (this.configuration && this.configuration.apiKey) {
1537
+ headerParameters["Accept-Encoding"] = yield this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
1538
+ }
1539
+ let urlPath = `/graphql/{pathQueryId}/UnfavoriteTweet`;
1540
+ urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
1541
+ return {
1542
+ path: urlPath,
1543
+ method: 'POST',
1544
+ headers: headerParameters,
1545
+ query: queryParameters,
1546
+ body: (0, PostUnfavoriteTweetRequest_1.PostUnfavoriteTweetRequestToJSON)(requestParameters['postUnfavoriteTweetRequest']),
1547
+ };
1887
1548
  });
1888
- };
1549
+ }
1889
1550
  /**
1890
1551
  * unfavorite Tweet
1891
1552
  */
1892
- PostApi.prototype.postUnfavoriteTweetRaw = function (requestParameters, initOverrides) {
1893
- return __awaiter(this, void 0, void 0, function () {
1894
- var requestOptions, response;
1895
- return __generator(this, function (_a) {
1896
- switch (_a.label) {
1897
- case 0: return [4 /*yield*/, this.postUnfavoriteTweetRequestOpts(requestParameters)];
1898
- case 1:
1899
- requestOptions = _a.sent();
1900
- return [4 /*yield*/, this.request(requestOptions, initOverrides)];
1901
- case 2:
1902
- response = _a.sent();
1903
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, UnfavoriteTweetResponse_1.UnfavoriteTweetResponseFromJSON)(jsonValue); })];
1904
- }
1905
- });
1553
+ postUnfavoriteTweetRaw(requestParameters, initOverrides) {
1554
+ return __awaiter(this, void 0, void 0, function* () {
1555
+ const requestOptions = yield this.postUnfavoriteTweetRequestOpts(requestParameters);
1556
+ const response = yield this.request(requestOptions, initOverrides);
1557
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, UnfavoriteTweetResponse_1.UnfavoriteTweetResponseFromJSON)(jsonValue));
1906
1558
  });
1907
- };
1559
+ }
1908
1560
  /**
1909
1561
  * unfavorite Tweet
1910
1562
  */
1911
- PostApi.prototype.postUnfavoriteTweet = function (requestParameters, initOverrides) {
1912
- return __awaiter(this, void 0, void 0, function () {
1913
- var response;
1914
- return __generator(this, function (_a) {
1915
- switch (_a.label) {
1916
- case 0: return [4 /*yield*/, this.postUnfavoriteTweetRaw(requestParameters, initOverrides)];
1917
- case 1:
1918
- response = _a.sent();
1919
- return [4 /*yield*/, response.value()];
1920
- case 2: return [2 /*return*/, _a.sent()];
1921
- }
1922
- });
1563
+ postUnfavoriteTweet(requestParameters, initOverrides) {
1564
+ return __awaiter(this, void 0, void 0, function* () {
1565
+ const response = yield this.postUnfavoriteTweetRaw(requestParameters, initOverrides);
1566
+ return yield response.value();
1923
1567
  });
1924
- };
1925
- return PostApi;
1926
- }(runtime.BaseAPI));
1568
+ }
1569
+ }
1927
1570
  exports.PostApi = PostApi;
1928
- //# sourceMappingURL=PostApi.js.map