@finch_ren/x-scraper 0.1.0

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 (750) hide show
  1. package/README.md +215 -0
  2. package/dist/src/api.d.ts +156 -0
  3. package/dist/src/api.js +245 -0
  4. package/dist/src/apis/defaultApi.d.ts +25 -0
  5. package/dist/src/apis/defaultApi.js +44 -0
  6. package/dist/src/apis/index.d.ts +12 -0
  7. package/dist/src/apis/index.js +26 -0
  8. package/dist/src/apis/initialStateApi.d.ts +3 -0
  9. package/dist/src/apis/initialStateApi.js +7 -0
  10. package/dist/src/apis/postApi.d.ts +58 -0
  11. package/dist/src/apis/postApi.js +130 -0
  12. package/dist/src/apis/spaceApi.d.ts +28 -0
  13. package/dist/src/apis/spaceApi.js +42 -0
  14. package/dist/src/apis/tweetApi.d.ts +118 -0
  15. package/dist/src/apis/tweetApi.js +195 -0
  16. package/dist/src/apis/userApi.d.ts +27 -0
  17. package/dist/src/apis/userApi.js +43 -0
  18. package/dist/src/apis/userListApi.d.ts +67 -0
  19. package/dist/src/apis/userListApi.js +111 -0
  20. package/dist/src/apis/usersApi.d.ts +19 -0
  21. package/dist/src/apis/usersApi.js +25 -0
  22. package/dist/src/apis/v11GetApi.d.ts +20 -0
  23. package/dist/src/apis/v11GetApi.js +29 -0
  24. package/dist/src/apis/v11PostApi.d.ts +26 -0
  25. package/dist/src/apis/v11PostApi.js +33 -0
  26. package/dist/src/apis/v20GetApi.d.ts +10 -0
  27. package/dist/src/apis/v20GetApi.js +12 -0
  28. package/dist/src/index.d.ts +6 -0
  29. package/dist/src/index.js +22 -0
  30. package/dist/src/models/flag.d.ts +6 -0
  31. package/dist/src/models/flag.js +3 -0
  32. package/dist/src/models/header.d.ts +15 -0
  33. package/dist/src/models/header.js +3 -0
  34. package/dist/src/models/index.d.ts +6 -0
  35. package/dist/src/models/index.js +22 -0
  36. package/dist/src/models/response.d.ts +10 -0
  37. package/dist/src/models/response.js +3 -0
  38. package/dist/src/models/timeline.d.ts +28 -0
  39. package/dist/src/models/timeline.js +3 -0
  40. package/dist/src/models/utils.d.ts +13 -0
  41. package/dist/src/models/utils.js +3 -0
  42. package/dist/src/openapi/index.d.ts +4 -0
  43. package/dist/src/openapi/index.js +24 -0
  44. package/dist/src/openapi/src/apis/DefaultApi.d.ts +54 -0
  45. package/dist/src/openapi/src/apis/DefaultApi.js +282 -0
  46. package/dist/src/openapi/src/apis/OtherApi.d.ts +65 -0
  47. package/dist/src/openapi/src/apis/OtherApi.js +369 -0
  48. package/dist/src/openapi/src/apis/PostApi.d.ts +147 -0
  49. package/dist/src/openapi/src/apis/PostApi.js +874 -0
  50. package/dist/src/openapi/src/apis/TweetApi.d.ts +280 -0
  51. package/dist/src/openapi/src/apis/TweetApi.js +1729 -0
  52. package/dist/src/openapi/src/apis/UserApi.d.ts +54 -0
  53. package/dist/src/openapi/src/apis/UserApi.js +282 -0
  54. package/dist/src/openapi/src/apis/UserListApi.d.ts +121 -0
  55. package/dist/src/openapi/src/apis/UserListApi.js +712 -0
  56. package/dist/src/openapi/src/apis/UsersApi.d.ts +36 -0
  57. package/dist/src/openapi/src/apis/UsersApi.js +167 -0
  58. package/dist/src/openapi/src/apis/V11GetApi.d.ts +88 -0
  59. package/dist/src/openapi/src/apis/V11GetApi.js +495 -0
  60. package/dist/src/openapi/src/apis/V11PostApi.d.ts +74 -0
  61. package/dist/src/openapi/src/apis/V11PostApi.js +437 -0
  62. package/dist/src/openapi/src/apis/V20GetApi.d.ts +69 -0
  63. package/dist/src/openapi/src/apis/V20GetApi.js +371 -0
  64. package/dist/src/openapi/src/apis/index.d.ts +11 -0
  65. package/dist/src/openapi/src/apis/index.js +29 -0
  66. package/dist/src/openapi/src/index.d.ts +4 -0
  67. package/dist/src/openapi/src/index.js +22 -0
  68. package/dist/src/openapi/src/models/AboutCommunityResult.d.ts +41 -0
  69. package/dist/src/openapi/src/models/AboutCommunityResult.js +57 -0
  70. package/dist/src/openapi/src/models/AboutCommunityResults.d.ts +34 -0
  71. package/dist/src/openapi/src/models/AboutCommunityResults.js +52 -0
  72. package/dist/src/openapi/src/models/AboutCommunityTweetData.d.ts +34 -0
  73. package/dist/src/openapi/src/models/AboutCommunityTweetData.js +52 -0
  74. package/dist/src/openapi/src/models/AdditionalMediaInfo.d.ts +65 -0
  75. package/dist/src/openapi/src/models/AdditionalMediaInfo.js +63 -0
  76. package/dist/src/openapi/src/models/AdditionalMediaInfoCallToActions.d.ts +40 -0
  77. package/dist/src/openapi/src/models/AdditionalMediaInfoCallToActions.js +52 -0
  78. package/dist/src/openapi/src/models/AdditionalMediaInfoCallToActionsUrl.d.ts +33 -0
  79. package/dist/src/openapi/src/models/AdditionalMediaInfoCallToActionsUrl.js +51 -0
  80. package/dist/src/openapi/src/models/AllowDownloadStatus.d.ts +33 -0
  81. package/dist/src/openapi/src/models/AllowDownloadStatus.js +49 -0
  82. package/dist/src/openapi/src/models/AnalysisResults.d.ts +34 -0
  83. package/dist/src/openapi/src/models/AnalysisResults.js +52 -0
  84. package/dist/src/openapi/src/models/Article.d.ts +34 -0
  85. package/dist/src/openapi/src/models/Article.js +52 -0
  86. package/dist/src/openapi/src/models/ArticleCoverMedia.d.ts +52 -0
  87. package/dist/src/openapi/src/models/ArticleCoverMedia.js +64 -0
  88. package/dist/src/openapi/src/models/ArticleCoverMediaColorInfo.d.ts +34 -0
  89. package/dist/src/openapi/src/models/ArticleCoverMediaColorInfo.js +52 -0
  90. package/dist/src/openapi/src/models/ArticleCoverMediaColorInfoPalette.d.ts +40 -0
  91. package/dist/src/openapi/src/models/ArticleCoverMediaColorInfoPalette.js +56 -0
  92. package/dist/src/openapi/src/models/ArticleCoverMediaColorInfoPaletteRGB.d.ts +45 -0
  93. package/dist/src/openapi/src/models/ArticleCoverMediaColorInfoPaletteRGB.js +59 -0
  94. package/dist/src/openapi/src/models/ArticleCoverMediaInfo.d.ts +59 -0
  95. package/dist/src/openapi/src/models/ArticleCoverMediaInfo.js +67 -0
  96. package/dist/src/openapi/src/models/ArticleLifecycleState.d.ts +33 -0
  97. package/dist/src/openapi/src/models/ArticleLifecycleState.js +51 -0
  98. package/dist/src/openapi/src/models/ArticleMetadata.d.ts +33 -0
  99. package/dist/src/openapi/src/models/ArticleMetadata.js +51 -0
  100. package/dist/src/openapi/src/models/ArticleResult.d.ts +72 -0
  101. package/dist/src/openapi/src/models/ArticleResult.js +76 -0
  102. package/dist/src/openapi/src/models/ArticleResults.d.ts +34 -0
  103. package/dist/src/openapi/src/models/ArticleResults.js +52 -0
  104. package/dist/src/openapi/src/models/AudioSpace.d.ts +55 -0
  105. package/dist/src/openapi/src/models/AudioSpace.js +59 -0
  106. package/dist/src/openapi/src/models/AudioSpaceByIdResponse.d.ts +41 -0
  107. package/dist/src/openapi/src/models/AudioSpaceByIdResponse.js +55 -0
  108. package/dist/src/openapi/src/models/AudioSpaceData.d.ts +34 -0
  109. package/dist/src/openapi/src/models/AudioSpaceData.js +52 -0
  110. package/dist/src/openapi/src/models/AudioSpaceMentionedUser.d.ts +33 -0
  111. package/dist/src/openapi/src/models/AudioSpaceMentionedUser.js +51 -0
  112. package/dist/src/openapi/src/models/AudioSpaceMetadata.d.ts +208 -0
  113. package/dist/src/openapi/src/models/AudioSpaceMetadata.js +120 -0
  114. package/dist/src/openapi/src/models/AudioSpaceParticipant.d.ts +82 -0
  115. package/dist/src/openapi/src/models/AudioSpaceParticipant.js +70 -0
  116. package/dist/src/openapi/src/models/AudioSpaceParticipants.d.ts +52 -0
  117. package/dist/src/openapi/src/models/AudioSpaceParticipants.js +58 -0
  118. package/dist/src/openapi/src/models/AuthorCommunityRelationship.d.ts +57 -0
  119. package/dist/src/openapi/src/models/AuthorCommunityRelationship.js +67 -0
  120. package/dist/src/openapi/src/models/BirdwatchEntity.d.ts +46 -0
  121. package/dist/src/openapi/src/models/BirdwatchEntity.js +60 -0
  122. package/dist/src/openapi/src/models/BirdwatchEntityRef.d.ts +66 -0
  123. package/dist/src/openapi/src/models/BirdwatchEntityRef.js +71 -0
  124. package/dist/src/openapi/src/models/BirdwatchPivot.d.ts +106 -0
  125. package/dist/src/openapi/src/models/BirdwatchPivot.js +91 -0
  126. package/dist/src/openapi/src/models/BirdwatchPivotCallToAction.d.ts +45 -0
  127. package/dist/src/openapi/src/models/BirdwatchPivotCallToAction.js +59 -0
  128. package/dist/src/openapi/src/models/BirdwatchPivotFooter.d.ts +40 -0
  129. package/dist/src/openapi/src/models/BirdwatchPivotFooter.js +56 -0
  130. package/dist/src/openapi/src/models/BirdwatchPivotNote.d.ts +33 -0
  131. package/dist/src/openapi/src/models/BirdwatchPivotNote.js +51 -0
  132. package/dist/src/openapi/src/models/BirdwatchPivotSubtitle.d.ts +40 -0
  133. package/dist/src/openapi/src/models/BirdwatchPivotSubtitle.js +56 -0
  134. package/dist/src/openapi/src/models/BookmarksResponse.d.ts +41 -0
  135. package/dist/src/openapi/src/models/BookmarksResponse.js +53 -0
  136. package/dist/src/openapi/src/models/BookmarksResponseData.d.ts +34 -0
  137. package/dist/src/openapi/src/models/BookmarksResponseData.js +52 -0
  138. package/dist/src/openapi/src/models/BookmarksTimeline.d.ts +34 -0
  139. package/dist/src/openapi/src/models/BookmarksTimeline.js +52 -0
  140. package/dist/src/openapi/src/models/Broadcast.d.ts +45 -0
  141. package/dist/src/openapi/src/models/Broadcast.js +59 -0
  142. package/dist/src/openapi/src/models/BroadcastGraphQL.d.ts +179 -0
  143. package/dist/src/openapi/src/models/BroadcastGraphQL.js +99 -0
  144. package/dist/src/openapi/src/models/BroadcastGraphQLUserResults.d.ts +34 -0
  145. package/dist/src/openapi/src/models/BroadcastGraphQLUserResults.js +50 -0
  146. package/dist/src/openapi/src/models/BroadcastQueryResponse.d.ts +41 -0
  147. package/dist/src/openapi/src/models/BroadcastQueryResponse.js +53 -0
  148. package/dist/src/openapi/src/models/BroadcastQueryResponseData.d.ts +41 -0
  149. package/dist/src/openapi/src/models/BroadcastQueryResponseData.js +53 -0
  150. package/dist/src/openapi/src/models/BroadcastQueryResponseDataBroadcastResults.d.ts +34 -0
  151. package/dist/src/openapi/src/models/BroadcastQueryResponseDataBroadcastResults.js +50 -0
  152. package/dist/src/openapi/src/models/BroadcastsShowResponse.d.ts +36 -0
  153. package/dist/src/openapi/src/models/BroadcastsShowResponse.js +53 -0
  154. package/dist/src/openapi/src/models/Callback.d.ts +33 -0
  155. package/dist/src/openapi/src/models/Callback.js +51 -0
  156. package/dist/src/openapi/src/models/ClientEventInfo.d.ts +47 -0
  157. package/dist/src/openapi/src/models/ClientEventInfo.js +53 -0
  158. package/dist/src/openapi/src/models/CommunitiesActions.d.ts +33 -0
  159. package/dist/src/openapi/src/models/CommunitiesActions.js +51 -0
  160. package/dist/src/openapi/src/models/Community.d.ts +34 -0
  161. package/dist/src/openapi/src/models/Community.js +52 -0
  162. package/dist/src/openapi/src/models/CommunityAboutTimelineResponse.d.ts +41 -0
  163. package/dist/src/openapi/src/models/CommunityAboutTimelineResponse.js +55 -0
  164. package/dist/src/openapi/src/models/CommunityActions.d.ts +62 -0
  165. package/dist/src/openapi/src/models/CommunityActions.js +62 -0
  166. package/dist/src/openapi/src/models/CommunityData.d.ts +220 -0
  167. package/dist/src/openapi/src/models/CommunityData.js +132 -0
  168. package/dist/src/openapi/src/models/CommunityDeleteActionResult.d.ts +47 -0
  169. package/dist/src/openapi/src/models/CommunityDeleteActionResult.js +63 -0
  170. package/dist/src/openapi/src/models/CommunityInvitesResult.d.ts +53 -0
  171. package/dist/src/openapi/src/models/CommunityInvitesResult.js +67 -0
  172. package/dist/src/openapi/src/models/CommunityJoinAction.d.ts +34 -0
  173. package/dist/src/openapi/src/models/CommunityJoinAction.js +52 -0
  174. package/dist/src/openapi/src/models/CommunityJoinActionResultUnion.d.ts +28 -0
  175. package/dist/src/openapi/src/models/CommunityJoinActionResultUnion.js +54 -0
  176. package/dist/src/openapi/src/models/CommunityJoinActionUnavailable.d.ts +53 -0
  177. package/dist/src/openapi/src/models/CommunityJoinActionUnavailable.js +67 -0
  178. package/dist/src/openapi/src/models/CommunityJoinRequestsResult.d.ts +34 -0
  179. package/dist/src/openapi/src/models/CommunityJoinRequestsResult.js +52 -0
  180. package/dist/src/openapi/src/models/CommunityLeaveActionResult.d.ts +53 -0
  181. package/dist/src/openapi/src/models/CommunityLeaveActionResult.js +67 -0
  182. package/dist/src/openapi/src/models/CommunityMediaTimelineResponse.d.ts +41 -0
  183. package/dist/src/openapi/src/models/CommunityMediaTimelineResponse.js +55 -0
  184. package/dist/src/openapi/src/models/CommunityPinActionResult.d.ts +34 -0
  185. package/dist/src/openapi/src/models/CommunityPinActionResult.js +52 -0
  186. package/dist/src/openapi/src/models/CommunityRelationship.d.ts +54 -0
  187. package/dist/src/openapi/src/models/CommunityRelationship.js +64 -0
  188. package/dist/src/openapi/src/models/CommunityRule.d.ts +45 -0
  189. package/dist/src/openapi/src/models/CommunityRule.js +57 -0
  190. package/dist/src/openapi/src/models/CommunityTweetsTimelineResponse.d.ts +41 -0
  191. package/dist/src/openapi/src/models/CommunityTweetsTimelineResponse.js +55 -0
  192. package/dist/src/openapi/src/models/CommunityUnpinActionResult.d.ts +34 -0
  193. package/dist/src/openapi/src/models/CommunityUnpinActionResult.js +52 -0
  194. package/dist/src/openapi/src/models/CommunityUrls.d.ts +34 -0
  195. package/dist/src/openapi/src/models/CommunityUrls.js +52 -0
  196. package/dist/src/openapi/src/models/CommunityUrlsPermalink.d.ts +33 -0
  197. package/dist/src/openapi/src/models/CommunityUrlsPermalink.js +51 -0
  198. package/dist/src/openapi/src/models/ContentEntryType.d.ts +27 -0
  199. package/dist/src/openapi/src/models/ContentEntryType.js +53 -0
  200. package/dist/src/openapi/src/models/ContentItemType.d.ts +33 -0
  201. package/dist/src/openapi/src/models/ContentItemType.js +59 -0
  202. package/dist/src/openapi/src/models/ContentUnion.d.ts +31 -0
  203. package/dist/src/openapi/src/models/ContentUnion.js +59 -0
  204. package/dist/src/openapi/src/models/ConversationControl.d.ts +42 -0
  205. package/dist/src/openapi/src/models/ConversationControl.js +60 -0
  206. package/dist/src/openapi/src/models/CoverCta.d.ts +67 -0
  207. package/dist/src/openapi/src/models/CoverCta.js +73 -0
  208. package/dist/src/openapi/src/models/CreateBookmarkResponse.d.ts +41 -0
  209. package/dist/src/openapi/src/models/CreateBookmarkResponse.js +55 -0
  210. package/dist/src/openapi/src/models/CreateBookmarkResponseData.d.ts +33 -0
  211. package/dist/src/openapi/src/models/CreateBookmarkResponseData.js +49 -0
  212. package/dist/src/openapi/src/models/CreateRetweet.d.ts +34 -0
  213. package/dist/src/openapi/src/models/CreateRetweet.js +52 -0
  214. package/dist/src/openapi/src/models/CreateRetweetResponse.d.ts +41 -0
  215. package/dist/src/openapi/src/models/CreateRetweetResponse.js +55 -0
  216. package/dist/src/openapi/src/models/CreateRetweetResponseData.d.ts +34 -0
  217. package/dist/src/openapi/src/models/CreateRetweetResponseData.js +50 -0
  218. package/dist/src/openapi/src/models/CreateRetweetResponseResult.d.ts +34 -0
  219. package/dist/src/openapi/src/models/CreateRetweetResponseResult.js +52 -0
  220. package/dist/src/openapi/src/models/CreateTweet.d.ts +34 -0
  221. package/dist/src/openapi/src/models/CreateTweet.js +52 -0
  222. package/dist/src/openapi/src/models/CreateTweetResponse.d.ts +41 -0
  223. package/dist/src/openapi/src/models/CreateTweetResponse.js +55 -0
  224. package/dist/src/openapi/src/models/CreateTweetResponseData.d.ts +34 -0
  225. package/dist/src/openapi/src/models/CreateTweetResponseData.js +50 -0
  226. package/dist/src/openapi/src/models/CreateTweetResponseResult.d.ts +34 -0
  227. package/dist/src/openapi/src/models/CreateTweetResponseResult.js +52 -0
  228. package/dist/src/openapi/src/models/CtaClientEventInfo.d.ts +40 -0
  229. package/dist/src/openapi/src/models/CtaClientEventInfo.js +58 -0
  230. package/dist/src/openapi/src/models/CursorType.d.ts +30 -0
  231. package/dist/src/openapi/src/models/CursorType.js +56 -0
  232. package/dist/src/openapi/src/models/DeleteBookmarkResponse.d.ts +41 -0
  233. package/dist/src/openapi/src/models/DeleteBookmarkResponse.js +55 -0
  234. package/dist/src/openapi/src/models/DeleteBookmarkResponseData.d.ts +33 -0
  235. package/dist/src/openapi/src/models/DeleteBookmarkResponseData.js +49 -0
  236. package/dist/src/openapi/src/models/DeleteRetweet.d.ts +34 -0
  237. package/dist/src/openapi/src/models/DeleteRetweet.js +52 -0
  238. package/dist/src/openapi/src/models/DeleteRetweetResponse.d.ts +41 -0
  239. package/dist/src/openapi/src/models/DeleteRetweetResponse.js +55 -0
  240. package/dist/src/openapi/src/models/DeleteRetweetResponseData.d.ts +34 -0
  241. package/dist/src/openapi/src/models/DeleteRetweetResponseData.js +50 -0
  242. package/dist/src/openapi/src/models/DeleteRetweetResponseResult.d.ts +34 -0
  243. package/dist/src/openapi/src/models/DeleteRetweetResponseResult.js +50 -0
  244. package/dist/src/openapi/src/models/DeleteTweetResponse.d.ts +41 -0
  245. package/dist/src/openapi/src/models/DeleteTweetResponse.js +55 -0
  246. package/dist/src/openapi/src/models/DeleteTweetResponseData.d.ts +34 -0
  247. package/dist/src/openapi/src/models/DeleteTweetResponseData.js +50 -0
  248. package/dist/src/openapi/src/models/DeleteTweetResponseResult.d.ts +33 -0
  249. package/dist/src/openapi/src/models/DeleteTweetResponseResult.js +51 -0
  250. package/dist/src/openapi/src/models/DisplayTreatment.d.ts +39 -0
  251. package/dist/src/openapi/src/models/DisplayTreatment.js +53 -0
  252. package/dist/src/openapi/src/models/DisplayType.d.ts +28 -0
  253. package/dist/src/openapi/src/models/DisplayType.js +54 -0
  254. package/dist/src/openapi/src/models/Entities.d.ts +72 -0
  255. package/dist/src/openapi/src/models/Entities.js +70 -0
  256. package/dist/src/openapi/src/models/ErrorExtensions.d.ts +64 -0
  257. package/dist/src/openapi/src/models/ErrorExtensions.js +70 -0
  258. package/dist/src/openapi/src/models/ErrorResponse.d.ts +91 -0
  259. package/dist/src/openapi/src/models/ErrorResponse.js +87 -0
  260. package/dist/src/openapi/src/models/ErrorResponsePathInner.d.ts +22 -0
  261. package/dist/src/openapi/src/models/ErrorResponsePathInner.js +50 -0
  262. package/dist/src/openapi/src/models/ExtMediaAvailability.d.ts +47 -0
  263. package/dist/src/openapi/src/models/ExtMediaAvailability.js +59 -0
  264. package/dist/src/openapi/src/models/ExtendedEntities.d.ts +34 -0
  265. package/dist/src/openapi/src/models/ExtendedEntities.js +52 -0
  266. package/dist/src/openapi/src/models/FavoriteTweet.d.ts +33 -0
  267. package/dist/src/openapi/src/models/FavoriteTweet.js +49 -0
  268. package/dist/src/openapi/src/models/FavoriteTweetResponse.d.ts +41 -0
  269. package/dist/src/openapi/src/models/FavoriteTweetResponse.js +55 -0
  270. package/dist/src/openapi/src/models/FeedbackInfo.d.ts +40 -0
  271. package/dist/src/openapi/src/models/FeedbackInfo.js +52 -0
  272. package/dist/src/openapi/src/models/FollowResponse.d.ts +41 -0
  273. package/dist/src/openapi/src/models/FollowResponse.js +55 -0
  274. package/dist/src/openapi/src/models/FollowResponseData.d.ts +34 -0
  275. package/dist/src/openapi/src/models/FollowResponseData.js +50 -0
  276. package/dist/src/openapi/src/models/FollowResponseResult.d.ts +41 -0
  277. package/dist/src/openapi/src/models/FollowResponseResult.js +57 -0
  278. package/dist/src/openapi/src/models/FollowResponseUser.d.ts +34 -0
  279. package/dist/src/openapi/src/models/FollowResponseUser.js +52 -0
  280. package/dist/src/openapi/src/models/FollowTimeline.d.ts +34 -0
  281. package/dist/src/openapi/src/models/FollowTimeline.js +52 -0
  282. package/dist/src/openapi/src/models/GrokImageAnnotation.d.ts +39 -0
  283. package/dist/src/openapi/src/models/GrokImageAnnotation.js +55 -0
  284. package/dist/src/openapi/src/models/GrokShareAttachment.d.ts +34 -0
  285. package/dist/src/openapi/src/models/GrokShareAttachment.js +52 -0
  286. package/dist/src/openapi/src/models/GrokShareAttachmentItem.d.ts +46 -0
  287. package/dist/src/openapi/src/models/GrokShareAttachmentItem.js +58 -0
  288. package/dist/src/openapi/src/models/Highlight.d.ts +34 -0
  289. package/dist/src/openapi/src/models/Highlight.js +52 -0
  290. package/dist/src/openapi/src/models/HomeTimelineHome.d.ts +34 -0
  291. package/dist/src/openapi/src/models/HomeTimelineHome.js +52 -0
  292. package/dist/src/openapi/src/models/HomeTimelineResponseData.d.ts +34 -0
  293. package/dist/src/openapi/src/models/HomeTimelineResponseData.js +52 -0
  294. package/dist/src/openapi/src/models/InstructionType.d.ts +34 -0
  295. package/dist/src/openapi/src/models/InstructionType.js +60 -0
  296. package/dist/src/openapi/src/models/InstructionUnion.d.ts +52 -0
  297. package/dist/src/openapi/src/models/InstructionUnion.js +94 -0
  298. package/dist/src/openapi/src/models/ItemContentUnion.d.ts +49 -0
  299. package/dist/src/openapi/src/models/ItemContentUnion.js +89 -0
  300. package/dist/src/openapi/src/models/ItemResult.d.ts +41 -0
  301. package/dist/src/openapi/src/models/ItemResult.js +53 -0
  302. package/dist/src/openapi/src/models/LimitedActionResultsData.d.ts +53 -0
  303. package/dist/src/openapi/src/models/LimitedActionResultsData.js +71 -0
  304. package/dist/src/openapi/src/models/ListLatestTweetsTimelineResponse.d.ts +41 -0
  305. package/dist/src/openapi/src/models/ListLatestTweetsTimelineResponse.js +55 -0
  306. package/dist/src/openapi/src/models/ListTweetsTimelineData.d.ts +34 -0
  307. package/dist/src/openapi/src/models/ListTweetsTimelineData.js +52 -0
  308. package/dist/src/openapi/src/models/ListTweetsTimelineList.d.ts +34 -0
  309. package/dist/src/openapi/src/models/ListTweetsTimelineList.js +52 -0
  310. package/dist/src/openapi/src/models/LiveVideoStreamSource.d.ts +51 -0
  311. package/dist/src/openapi/src/models/LiveVideoStreamSource.js +63 -0
  312. package/dist/src/openapi/src/models/LiveVideoStreamStatusResponse.d.ts +58 -0
  313. package/dist/src/openapi/src/models/LiveVideoStreamStatusResponse.js +62 -0
  314. package/dist/src/openapi/src/models/Location.d.ts +39 -0
  315. package/dist/src/openapi/src/models/Location.js +55 -0
  316. package/dist/src/openapi/src/models/Media.d.ts +164 -0
  317. package/dist/src/openapi/src/models/Media.js +126 -0
  318. package/dist/src/openapi/src/models/MediaCommunityResult.d.ts +41 -0
  319. package/dist/src/openapi/src/models/MediaCommunityResult.js +57 -0
  320. package/dist/src/openapi/src/models/MediaCommunityResults.d.ts +34 -0
  321. package/dist/src/openapi/src/models/MediaCommunityResults.js +52 -0
  322. package/dist/src/openapi/src/models/MediaCommunityTweetData.d.ts +34 -0
  323. package/dist/src/openapi/src/models/MediaCommunityTweetData.js +52 -0
  324. package/dist/src/openapi/src/models/MediaExtended.d.ts +171 -0
  325. package/dist/src/openapi/src/models/MediaExtended.js +127 -0
  326. package/dist/src/openapi/src/models/MediaOriginalInfo.d.ts +46 -0
  327. package/dist/src/openapi/src/models/MediaOriginalInfo.js +58 -0
  328. package/dist/src/openapi/src/models/MediaOriginalInfoFocusRect.d.ts +51 -0
  329. package/dist/src/openapi/src/models/MediaOriginalInfoFocusRect.js +63 -0
  330. package/dist/src/openapi/src/models/MediaResult.d.ts +40 -0
  331. package/dist/src/openapi/src/models/MediaResult.js +54 -0
  332. package/dist/src/openapi/src/models/MediaResults.d.ts +34 -0
  333. package/dist/src/openapi/src/models/MediaResults.js +52 -0
  334. package/dist/src/openapi/src/models/MediaSize.d.ts +53 -0
  335. package/dist/src/openapi/src/models/MediaSize.js +67 -0
  336. package/dist/src/openapi/src/models/MediaSizes.d.ts +52 -0
  337. package/dist/src/openapi/src/models/MediaSizes.js +64 -0
  338. package/dist/src/openapi/src/models/MediaStats.d.ts +33 -0
  339. package/dist/src/openapi/src/models/MediaStats.js +51 -0
  340. package/dist/src/openapi/src/models/MediaVideoInfo.d.ts +46 -0
  341. package/dist/src/openapi/src/models/MediaVideoInfo.js +58 -0
  342. package/dist/src/openapi/src/models/MediaVideoInfoVariant.d.ts +45 -0
  343. package/dist/src/openapi/src/models/MediaVideoInfoVariant.js +57 -0
  344. package/dist/src/openapi/src/models/MediaVisibilityResults.d.ts +34 -0
  345. package/dist/src/openapi/src/models/MediaVisibilityResults.js +52 -0
  346. package/dist/src/openapi/src/models/MediaVisibilityResultsBlurredImageInterstitial.d.ts +46 -0
  347. package/dist/src/openapi/src/models/MediaVisibilityResultsBlurredImageInterstitial.js +60 -0
  348. package/dist/src/openapi/src/models/ModuleEntry.d.ts +48 -0
  349. package/dist/src/openapi/src/models/ModuleEntry.js +58 -0
  350. package/dist/src/openapi/src/models/ModuleItem.d.ts +46 -0
  351. package/dist/src/openapi/src/models/ModuleItem.js +58 -0
  352. package/dist/src/openapi/src/models/NoteTweet.d.ts +40 -0
  353. package/dist/src/openapi/src/models/NoteTweet.js +56 -0
  354. package/dist/src/openapi/src/models/NoteTweetResult.d.ts +34 -0
  355. package/dist/src/openapi/src/models/NoteTweetResult.js +52 -0
  356. package/dist/src/openapi/src/models/NoteTweetResultData.d.ts +60 -0
  357. package/dist/src/openapi/src/models/NoteTweetResultData.js +66 -0
  358. package/dist/src/openapi/src/models/NoteTweetResultMedia.d.ts +34 -0
  359. package/dist/src/openapi/src/models/NoteTweetResultMedia.js +52 -0
  360. package/dist/src/openapi/src/models/NoteTweetResultMediaInlineMedia.d.ts +39 -0
  361. package/dist/src/openapi/src/models/NoteTweetResultMediaInlineMedia.js +55 -0
  362. package/dist/src/openapi/src/models/NoteTweetResultRichText.d.ts +34 -0
  363. package/dist/src/openapi/src/models/NoteTweetResultRichText.js +52 -0
  364. package/dist/src/openapi/src/models/NoteTweetResultRichTextTag.d.ts +53 -0
  365. package/dist/src/openapi/src/models/NoteTweetResultRichTextTag.js +67 -0
  366. package/dist/src/openapi/src/models/NotificationTemplate.d.ts +46 -0
  367. package/dist/src/openapi/src/models/NotificationTemplate.js +54 -0
  368. package/dist/src/openapi/src/models/NotificationsResult.d.ts +47 -0
  369. package/dist/src/openapi/src/models/NotificationsResult.js +61 -0
  370. package/dist/src/openapi/src/models/NotificationsTimelineData.d.ts +34 -0
  371. package/dist/src/openapi/src/models/NotificationsTimelineData.js +52 -0
  372. package/dist/src/openapi/src/models/NotificationsTimelineResponse.d.ts +41 -0
  373. package/dist/src/openapi/src/models/NotificationsTimelineResponse.js +55 -0
  374. package/dist/src/openapi/src/models/NotificationsUserResults.d.ts +34 -0
  375. package/dist/src/openapi/src/models/NotificationsUserResults.js +52 -0
  376. package/dist/src/openapi/src/models/NotificationsViewerV2.d.ts +34 -0
  377. package/dist/src/openapi/src/models/NotificationsViewerV2.js +52 -0
  378. package/dist/src/openapi/src/models/OneFactorLoginEligibility.d.ts +33 -0
  379. package/dist/src/openapi/src/models/OneFactorLoginEligibility.js +51 -0
  380. package/dist/src/openapi/src/models/OtherObjectAll.d.ts +34 -0
  381. package/dist/src/openapi/src/models/OtherObjectAll.js +50 -0
  382. package/dist/src/openapi/src/models/PeriscopeUser.d.ts +51 -0
  383. package/dist/src/openapi/src/models/PeriscopeUser.js +55 -0
  384. package/dist/src/openapi/src/models/PostCreateBookmarkRequest.d.ts +40 -0
  385. package/dist/src/openapi/src/models/PostCreateBookmarkRequest.js +56 -0
  386. package/dist/src/openapi/src/models/PostCreateBookmarkRequestVariables.d.ts +33 -0
  387. package/dist/src/openapi/src/models/PostCreateBookmarkRequestVariables.js +51 -0
  388. package/dist/src/openapi/src/models/PostCreateRetweetRequest.d.ts +40 -0
  389. package/dist/src/openapi/src/models/PostCreateRetweetRequest.js +56 -0
  390. package/dist/src/openapi/src/models/PostCreateRetweetRequestVariables.d.ts +39 -0
  391. package/dist/src/openapi/src/models/PostCreateRetweetRequestVariables.js +55 -0
  392. package/dist/src/openapi/src/models/PostCreateTweetRequest.d.ts +47 -0
  393. package/dist/src/openapi/src/models/PostCreateTweetRequest.js +61 -0
  394. package/dist/src/openapi/src/models/PostCreateTweetRequestFeatures.d.ts +201 -0
  395. package/dist/src/openapi/src/models/PostCreateTweetRequestFeatures.js +163 -0
  396. package/dist/src/openapi/src/models/PostCreateTweetRequestVariables.d.ts +78 -0
  397. package/dist/src/openapi/src/models/PostCreateTweetRequestVariables.js +74 -0
  398. package/dist/src/openapi/src/models/PostCreateTweetRequestVariablesConversationControl.d.ts +33 -0
  399. package/dist/src/openapi/src/models/PostCreateTweetRequestVariablesConversationControl.js +51 -0
  400. package/dist/src/openapi/src/models/PostCreateTweetRequestVariablesMedia.d.ts +40 -0
  401. package/dist/src/openapi/src/models/PostCreateTweetRequestVariablesMedia.js +54 -0
  402. package/dist/src/openapi/src/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.d.ts +39 -0
  403. package/dist/src/openapi/src/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.js +55 -0
  404. package/dist/src/openapi/src/models/PostCreateTweetRequestVariablesReply.d.ts +39 -0
  405. package/dist/src/openapi/src/models/PostCreateTweetRequestVariablesReply.js +55 -0
  406. package/dist/src/openapi/src/models/PostDeleteBookmarkRequest.d.ts +40 -0
  407. package/dist/src/openapi/src/models/PostDeleteBookmarkRequest.js +56 -0
  408. package/dist/src/openapi/src/models/PostDeleteRetweetRequest.d.ts +40 -0
  409. package/dist/src/openapi/src/models/PostDeleteRetweetRequest.js +56 -0
  410. package/dist/src/openapi/src/models/PostDeleteRetweetRequestVariables.d.ts +39 -0
  411. package/dist/src/openapi/src/models/PostDeleteRetweetRequestVariables.js +55 -0
  412. package/dist/src/openapi/src/models/PostDeleteTweetRequest.d.ts +40 -0
  413. package/dist/src/openapi/src/models/PostDeleteTweetRequest.js +56 -0
  414. package/dist/src/openapi/src/models/PostFavoriteTweetRequest.d.ts +40 -0
  415. package/dist/src/openapi/src/models/PostFavoriteTweetRequest.js +56 -0
  416. package/dist/src/openapi/src/models/PostUnfavoriteTweetRequest.d.ts +40 -0
  417. package/dist/src/openapi/src/models/PostUnfavoriteTweetRequest.js +56 -0
  418. package/dist/src/openapi/src/models/PrimaryCommunityTopic.d.ts +39 -0
  419. package/dist/src/openapi/src/models/PrimaryCommunityTopic.js +55 -0
  420. package/dist/src/openapi/src/models/ProfileResponse.d.ts +41 -0
  421. package/dist/src/openapi/src/models/ProfileResponse.js +55 -0
  422. package/dist/src/openapi/src/models/ProfileResponseData.d.ts +34 -0
  423. package/dist/src/openapi/src/models/ProfileResponseData.js +50 -0
  424. package/dist/src/openapi/src/models/QuotedRefResult.d.ts +34 -0
  425. package/dist/src/openapi/src/models/QuotedRefResult.js +50 -0
  426. package/dist/src/openapi/src/models/QuotedStatusPermalink.d.ts +45 -0
  427. package/dist/src/openapi/src/models/QuotedStatusPermalink.js +59 -0
  428. package/dist/src/openapi/src/models/RankedCommunityResult.d.ts +41 -0
  429. package/dist/src/openapi/src/models/RankedCommunityResult.js +57 -0
  430. package/dist/src/openapi/src/models/RankedCommunityResults.d.ts +34 -0
  431. package/dist/src/openapi/src/models/RankedCommunityResults.js +52 -0
  432. package/dist/src/openapi/src/models/RankedCommunityTweetData.d.ts +34 -0
  433. package/dist/src/openapi/src/models/RankedCommunityTweetData.js +52 -0
  434. package/dist/src/openapi/src/models/Retweet.d.ts +40 -0
  435. package/dist/src/openapi/src/models/Retweet.js +56 -0
  436. package/dist/src/openapi/src/models/RetweetLegacy.d.ts +33 -0
  437. package/dist/src/openapi/src/models/RetweetLegacy.js +51 -0
  438. package/dist/src/openapi/src/models/RichMessage.d.ts +39 -0
  439. package/dist/src/openapi/src/models/RichMessage.js +51 -0
  440. package/dist/src/openapi/src/models/SearchByRawQuery.d.ts +34 -0
  441. package/dist/src/openapi/src/models/SearchByRawQuery.js +52 -0
  442. package/dist/src/openapi/src/models/SearchTimeline.d.ts +34 -0
  443. package/dist/src/openapi/src/models/SearchTimeline.js +52 -0
  444. package/dist/src/openapi/src/models/SearchTimelineData.d.ts +34 -0
  445. package/dist/src/openapi/src/models/SearchTimelineData.js +52 -0
  446. package/dist/src/openapi/src/models/SearchTimelineResponse.d.ts +41 -0
  447. package/dist/src/openapi/src/models/SearchTimelineResponse.js +55 -0
  448. package/dist/src/openapi/src/models/SelfThread.d.ts +33 -0
  449. package/dist/src/openapi/src/models/SelfThread.js +51 -0
  450. package/dist/src/openapi/src/models/SensitiveMediaWarning.d.ts +45 -0
  451. package/dist/src/openapi/src/models/SensitiveMediaWarning.js +53 -0
  452. package/dist/src/openapi/src/models/Session.d.ts +121 -0
  453. package/dist/src/openapi/src/models/Session.js +111 -0
  454. package/dist/src/openapi/src/models/SocialContextLandingUrl.d.ts +55 -0
  455. package/dist/src/openapi/src/models/SocialContextLandingUrl.js +63 -0
  456. package/dist/src/openapi/src/models/SocialContextUnion.d.ts +28 -0
  457. package/dist/src/openapi/src/models/SocialContextUnion.js +54 -0
  458. package/dist/src/openapi/src/models/SocialContextUnionType.d.ts +26 -0
  459. package/dist/src/openapi/src/models/SocialContextUnionType.js +52 -0
  460. package/dist/src/openapi/src/models/SuperFollowsReplyUserResult.d.ts +34 -0
  461. package/dist/src/openapi/src/models/SuperFollowsReplyUserResult.js +52 -0
  462. package/dist/src/openapi/src/models/SuperFollowsReplyUserResultData.d.ts +41 -0
  463. package/dist/src/openapi/src/models/SuperFollowsReplyUserResultData.js +57 -0
  464. package/dist/src/openapi/src/models/SuperFollowsReplyUserResultLegacy.d.ts +33 -0
  465. package/dist/src/openapi/src/models/SuperFollowsReplyUserResultLegacy.js +51 -0
  466. package/dist/src/openapi/src/models/Text.d.ts +40 -0
  467. package/dist/src/openapi/src/models/Text.js +56 -0
  468. package/dist/src/openapi/src/models/TextEntity.d.ts +46 -0
  469. package/dist/src/openapi/src/models/TextEntity.js +60 -0
  470. package/dist/src/openapi/src/models/TextEntityRef.d.ts +59 -0
  471. package/dist/src/openapi/src/models/TextEntityRef.js +72 -0
  472. package/dist/src/openapi/src/models/TextHighlight.d.ts +39 -0
  473. package/dist/src/openapi/src/models/TextHighlight.js +55 -0
  474. package/dist/src/openapi/src/models/ThumbnailImage.d.ts +45 -0
  475. package/dist/src/openapi/src/models/ThumbnailImage.js +53 -0
  476. package/dist/src/openapi/src/models/Timeline.d.ts +50 -0
  477. package/dist/src/openapi/src/models/Timeline.js +56 -0
  478. package/dist/src/openapi/src/models/TimelineAddEntries.d.ts +41 -0
  479. package/dist/src/openapi/src/models/TimelineAddEntries.js +57 -0
  480. package/dist/src/openapi/src/models/TimelineAddEntry.d.ts +46 -0
  481. package/dist/src/openapi/src/models/TimelineAddEntry.js +60 -0
  482. package/dist/src/openapi/src/models/TimelineAddToModule.d.ts +53 -0
  483. package/dist/src/openapi/src/models/TimelineAddToModule.js +63 -0
  484. package/dist/src/openapi/src/models/TimelineClearCache.d.ts +34 -0
  485. package/dist/src/openapi/src/models/TimelineClearCache.js +52 -0
  486. package/dist/src/openapi/src/models/TimelineClearEntriesUnreadState.d.ts +34 -0
  487. package/dist/src/openapi/src/models/TimelineClearEntriesUnreadState.js +52 -0
  488. package/dist/src/openapi/src/models/TimelineCommunity.d.ts +35 -0
  489. package/dist/src/openapi/src/models/TimelineCommunity.js +52 -0
  490. package/dist/src/openapi/src/models/TimelineCoverBehavior.d.ts +48 -0
  491. package/dist/src/openapi/src/models/TimelineCoverBehavior.js +62 -0
  492. package/dist/src/openapi/src/models/TimelineCoverBehaviorUrl.d.ts +46 -0
  493. package/dist/src/openapi/src/models/TimelineCoverBehaviorUrl.js +62 -0
  494. package/dist/src/openapi/src/models/TimelineGeneralContext.d.ts +74 -0
  495. package/dist/src/openapi/src/models/TimelineGeneralContext.js +74 -0
  496. package/dist/src/openapi/src/models/TimelineHalfCover.d.ts +86 -0
  497. package/dist/src/openapi/src/models/TimelineHalfCover.js +91 -0
  498. package/dist/src/openapi/src/models/TimelineMarkEntriesUnreadGreaterThanSortIndex.d.ts +40 -0
  499. package/dist/src/openapi/src/models/TimelineMarkEntriesUnreadGreaterThanSortIndex.js +54 -0
  500. package/dist/src/openapi/src/models/TimelineMessagePrompt.d.ts +35 -0
  501. package/dist/src/openapi/src/models/TimelineMessagePrompt.js +52 -0
  502. package/dist/src/openapi/src/models/TimelineNotification.d.ts +80 -0
  503. package/dist/src/openapi/src/models/TimelineNotification.js +84 -0
  504. package/dist/src/openapi/src/models/TimelinePinEntry.d.ts +41 -0
  505. package/dist/src/openapi/src/models/TimelinePinEntry.js +57 -0
  506. package/dist/src/openapi/src/models/TimelinePrompt.d.ts +35 -0
  507. package/dist/src/openapi/src/models/TimelinePrompt.js +52 -0
  508. package/dist/src/openapi/src/models/TimelineReplaceEntry.d.ts +47 -0
  509. package/dist/src/openapi/src/models/TimelineReplaceEntry.js +61 -0
  510. package/dist/src/openapi/src/models/TimelineResponse.d.ts +41 -0
  511. package/dist/src/openapi/src/models/TimelineResponse.js +55 -0
  512. package/dist/src/openapi/src/models/TimelineResult.d.ts +40 -0
  513. package/dist/src/openapi/src/models/TimelineResult.js +52 -0
  514. package/dist/src/openapi/src/models/TimelineShowAlert.d.ts +102 -0
  515. package/dist/src/openapi/src/models/TimelineShowAlert.js +87 -0
  516. package/dist/src/openapi/src/models/TimelineShowAlertRichText.d.ts +41 -0
  517. package/dist/src/openapi/src/models/TimelineShowAlertRichText.js +51 -0
  518. package/dist/src/openapi/src/models/TimelineShowCover.d.ts +48 -0
  519. package/dist/src/openapi/src/models/TimelineShowCover.js +62 -0
  520. package/dist/src/openapi/src/models/TimelineTerminateTimeline.d.ts +49 -0
  521. package/dist/src/openapi/src/models/TimelineTerminateTimeline.js +65 -0
  522. package/dist/src/openapi/src/models/TimelineTimelineCursor.d.ts +73 -0
  523. package/dist/src/openapi/src/models/TimelineTimelineCursor.js +71 -0
  524. package/dist/src/openapi/src/models/TimelineTimelineItem.d.ts +63 -0
  525. package/dist/src/openapi/src/models/TimelineTimelineItem.js +67 -0
  526. package/dist/src/openapi/src/models/TimelineTimelineModule.d.ts +93 -0
  527. package/dist/src/openapi/src/models/TimelineTimelineModule.js +77 -0
  528. package/dist/src/openapi/src/models/TimelineTombstone.d.ts +61 -0
  529. package/dist/src/openapi/src/models/TimelineTombstone.js +65 -0
  530. package/dist/src/openapi/src/models/TimelineTopicContext.d.ts +54 -0
  531. package/dist/src/openapi/src/models/TimelineTopicContext.js +62 -0
  532. package/dist/src/openapi/src/models/TimelineTrend.d.ts +88 -0
  533. package/dist/src/openapi/src/models/TimelineTrend.js +80 -0
  534. package/dist/src/openapi/src/models/TimelineTweet.d.ts +92 -0
  535. package/dist/src/openapi/src/models/TimelineTweet.js +86 -0
  536. package/dist/src/openapi/src/models/TimelineUser.d.ts +71 -0
  537. package/dist/src/openapi/src/models/TimelineUser.js +79 -0
  538. package/dist/src/openapi/src/models/Timestamp.d.ts +45 -0
  539. package/dist/src/openapi/src/models/Timestamp.js +59 -0
  540. package/dist/src/openapi/src/models/TombstoneEntity.d.ts +46 -0
  541. package/dist/src/openapi/src/models/TombstoneEntity.js +54 -0
  542. package/dist/src/openapi/src/models/TombstoneInfo.d.ts +40 -0
  543. package/dist/src/openapi/src/models/TombstoneInfo.js +52 -0
  544. package/dist/src/openapi/src/models/TombstoneRef.d.ts +59 -0
  545. package/dist/src/openapi/src/models/TombstoneRef.js +66 -0
  546. package/dist/src/openapi/src/models/TombstoneRichText.d.ts +46 -0
  547. package/dist/src/openapi/src/models/TombstoneRichText.js +54 -0
  548. package/dist/src/openapi/src/models/TopicContext.d.ts +69 -0
  549. package/dist/src/openapi/src/models/TopicContext.js +61 -0
  550. package/dist/src/openapi/src/models/Tracing.d.ts +33 -0
  551. package/dist/src/openapi/src/models/Tracing.js +51 -0
  552. package/dist/src/openapi/src/models/TrendImage.d.ts +33 -0
  553. package/dist/src/openapi/src/models/TrendImage.js +49 -0
  554. package/dist/src/openapi/src/models/TrendMetadata.d.ts +34 -0
  555. package/dist/src/openapi/src/models/TrendMetadata.js +50 -0
  556. package/dist/src/openapi/src/models/TrendResults.d.ts +33 -0
  557. package/dist/src/openapi/src/models/TrendResults.js +51 -0
  558. package/dist/src/openapi/src/models/Tweet.d.ts +217 -0
  559. package/dist/src/openapi/src/models/Tweet.js +125 -0
  560. package/dist/src/openapi/src/models/TweetCard.d.ts +40 -0
  561. package/dist/src/openapi/src/models/TweetCard.js +52 -0
  562. package/dist/src/openapi/src/models/TweetCardLegacy.d.ts +60 -0
  563. package/dist/src/openapi/src/models/TweetCardLegacy.js +66 -0
  564. package/dist/src/openapi/src/models/TweetCardLegacyBindingValue.d.ts +40 -0
  565. package/dist/src/openapi/src/models/TweetCardLegacyBindingValue.js +56 -0
  566. package/dist/src/openapi/src/models/TweetCardLegacyBindingValueData.d.ts +73 -0
  567. package/dist/src/openapi/src/models/TweetCardLegacyBindingValueData.js +65 -0
  568. package/dist/src/openapi/src/models/TweetCardLegacyBindingValueDataImage.d.ts +51 -0
  569. package/dist/src/openapi/src/models/TweetCardLegacyBindingValueDataImage.js +61 -0
  570. package/dist/src/openapi/src/models/TweetCardPlatform.d.ts +41 -0
  571. package/dist/src/openapi/src/models/TweetCardPlatform.js +57 -0
  572. package/dist/src/openapi/src/models/TweetCardPlatformAudience.d.ts +40 -0
  573. package/dist/src/openapi/src/models/TweetCardPlatformAudience.js +58 -0
  574. package/dist/src/openapi/src/models/TweetCardPlatformData.d.ts +34 -0
  575. package/dist/src/openapi/src/models/TweetCardPlatformData.js +52 -0
  576. package/dist/src/openapi/src/models/TweetCardPlatformDevice.d.ts +39 -0
  577. package/dist/src/openapi/src/models/TweetCardPlatformDevice.js +55 -0
  578. package/dist/src/openapi/src/models/TweetDetailResponse.d.ts +41 -0
  579. package/dist/src/openapi/src/models/TweetDetailResponse.js +55 -0
  580. package/dist/src/openapi/src/models/TweetDetailResponseData.d.ts +34 -0
  581. package/dist/src/openapi/src/models/TweetDetailResponseData.js +50 -0
  582. package/dist/src/openapi/src/models/TweetEditControl.d.ts +64 -0
  583. package/dist/src/openapi/src/models/TweetEditControl.js +60 -0
  584. package/dist/src/openapi/src/models/TweetEditControlInitial.d.ts +51 -0
  585. package/dist/src/openapi/src/models/TweetEditControlInitial.js +63 -0
  586. package/dist/src/openapi/src/models/TweetEditPrespective.d.ts +39 -0
  587. package/dist/src/openapi/src/models/TweetEditPrespective.js +51 -0
  588. package/dist/src/openapi/src/models/TweetFavoritersResponse.d.ts +41 -0
  589. package/dist/src/openapi/src/models/TweetFavoritersResponse.js +55 -0
  590. package/dist/src/openapi/src/models/TweetFavoritersResponseData.d.ts +34 -0
  591. package/dist/src/openapi/src/models/TweetFavoritersResponseData.js +50 -0
  592. package/dist/src/openapi/src/models/TweetInterstitial.d.ts +61 -0
  593. package/dist/src/openapi/src/models/TweetInterstitial.js +73 -0
  594. package/dist/src/openapi/src/models/TweetInterstitialRevealText.d.ts +46 -0
  595. package/dist/src/openapi/src/models/TweetInterstitialRevealText.js +60 -0
  596. package/dist/src/openapi/src/models/TweetInterstitialText.d.ts +46 -0
  597. package/dist/src/openapi/src/models/TweetInterstitialText.js +60 -0
  598. package/dist/src/openapi/src/models/TweetInterstitialTextEntity.d.ts +46 -0
  599. package/dist/src/openapi/src/models/TweetInterstitialTextEntity.js +60 -0
  600. package/dist/src/openapi/src/models/TweetInterstitialTextEntityRef.d.ts +59 -0
  601. package/dist/src/openapi/src/models/TweetInterstitialTextEntityRef.js +72 -0
  602. package/dist/src/openapi/src/models/TweetLegacy.d.ts +236 -0
  603. package/dist/src/openapi/src/models/TweetLegacy.js +162 -0
  604. package/dist/src/openapi/src/models/TweetLegacyScopes.d.ts +33 -0
  605. package/dist/src/openapi/src/models/TweetLegacyScopes.js +51 -0
  606. package/dist/src/openapi/src/models/TweetLimitedActionResults.d.ts +34 -0
  607. package/dist/src/openapi/src/models/TweetLimitedActionResults.js +52 -0
  608. package/dist/src/openapi/src/models/TweetPreviewDisplay.d.ts +55 -0
  609. package/dist/src/openapi/src/models/TweetPreviewDisplay.js +67 -0
  610. package/dist/src/openapi/src/models/TweetPreviewDisplayCta.d.ts +40 -0
  611. package/dist/src/openapi/src/models/TweetPreviewDisplayCta.js +56 -0
  612. package/dist/src/openapi/src/models/TweetPreviewDisplayCtaUrl.d.ts +48 -0
  613. package/dist/src/openapi/src/models/TweetPreviewDisplayCtaUrl.js +64 -0
  614. package/dist/src/openapi/src/models/TweetPreviewDisplayTweet.d.ts +95 -0
  615. package/dist/src/openapi/src/models/TweetPreviewDisplayTweet.js +93 -0
  616. package/dist/src/openapi/src/models/TweetPreviewDisplayTweetViewCount.d.ts +33 -0
  617. package/dist/src/openapi/src/models/TweetPreviewDisplayTweetViewCount.js +51 -0
  618. package/dist/src/openapi/src/models/TweetPreviousCounts.d.ts +57 -0
  619. package/dist/src/openapi/src/models/TweetPreviousCounts.js +67 -0
  620. package/dist/src/openapi/src/models/TweetResultByRestIdData.d.ts +34 -0
  621. package/dist/src/openapi/src/models/TweetResultByRestIdData.js +50 -0
  622. package/dist/src/openapi/src/models/TweetResultByRestIdResponse.d.ts +41 -0
  623. package/dist/src/openapi/src/models/TweetResultByRestIdResponse.js +55 -0
  624. package/dist/src/openapi/src/models/TweetRetweetersResponse.d.ts +41 -0
  625. package/dist/src/openapi/src/models/TweetRetweetersResponse.js +55 -0
  626. package/dist/src/openapi/src/models/TweetRetweetersResponseData.d.ts +34 -0
  627. package/dist/src/openapi/src/models/TweetRetweetersResponseData.js +50 -0
  628. package/dist/src/openapi/src/models/TweetTombstone.d.ts +35 -0
  629. package/dist/src/openapi/src/models/TweetTombstone.js +52 -0
  630. package/dist/src/openapi/src/models/TweetUnavailable.d.ts +40 -0
  631. package/dist/src/openapi/src/models/TweetUnavailable.js +52 -0
  632. package/dist/src/openapi/src/models/TweetUnion.d.ts +37 -0
  633. package/dist/src/openapi/src/models/TweetUnion.js +69 -0
  634. package/dist/src/openapi/src/models/TweetView.d.ts +47 -0
  635. package/dist/src/openapi/src/models/TweetView.js +61 -0
  636. package/dist/src/openapi/src/models/TweetWithVisibilityResults.d.ts +63 -0
  637. package/dist/src/openapi/src/models/TweetWithVisibilityResults.js +65 -0
  638. package/dist/src/openapi/src/models/TypeName.d.ts +54 -0
  639. package/dist/src/openapi/src/models/TypeName.js +80 -0
  640. package/dist/src/openapi/src/models/UnfavoriteTweet.d.ts +33 -0
  641. package/dist/src/openapi/src/models/UnfavoriteTweet.js +49 -0
  642. package/dist/src/openapi/src/models/UnfavoriteTweetResponse.d.ts +41 -0
  643. package/dist/src/openapi/src/models/UnfavoriteTweetResponse.js +55 -0
  644. package/dist/src/openapi/src/models/UnifiedCard.d.ts +40 -0
  645. package/dist/src/openapi/src/models/UnifiedCard.js +58 -0
  646. package/dist/src/openapi/src/models/Url.d.ts +51 -0
  647. package/dist/src/openapi/src/models/Url.js +61 -0
  648. package/dist/src/openapi/src/models/UrtEndpointOptions.d.ts +40 -0
  649. package/dist/src/openapi/src/models/UrtEndpointOptions.js +56 -0
  650. package/dist/src/openapi/src/models/UrtEndpointRequestParams.d.ts +39 -0
  651. package/dist/src/openapi/src/models/UrtEndpointRequestParams.js +55 -0
  652. package/dist/src/openapi/src/models/User.d.ts +281 -0
  653. package/dist/src/openapi/src/models/User.js +164 -0
  654. package/dist/src/openapi/src/models/UserAvatar.d.ts +33 -0
  655. package/dist/src/openapi/src/models/UserAvatar.js +49 -0
  656. package/dist/src/openapi/src/models/UserCore.d.ts +45 -0
  657. package/dist/src/openapi/src/models/UserCore.js +59 -0
  658. package/dist/src/openapi/src/models/UserDmPermissions.d.ts +33 -0
  659. package/dist/src/openapi/src/models/UserDmPermissions.js +49 -0
  660. package/dist/src/openapi/src/models/UserFeatures.d.ts +33 -0
  661. package/dist/src/openapi/src/models/UserFeatures.js +51 -0
  662. package/dist/src/openapi/src/models/UserHighlightsInfo.d.ts +39 -0
  663. package/dist/src/openapi/src/models/UserHighlightsInfo.js +55 -0
  664. package/dist/src/openapi/src/models/UserHighlightsTweetsData.d.ts +34 -0
  665. package/dist/src/openapi/src/models/UserHighlightsTweetsData.js +50 -0
  666. package/dist/src/openapi/src/models/UserHighlightsTweetsResponse.d.ts +41 -0
  667. package/dist/src/openapi/src/models/UserHighlightsTweetsResponse.js +55 -0
  668. package/dist/src/openapi/src/models/UserHighlightsTweetsResult.d.ts +41 -0
  669. package/dist/src/openapi/src/models/UserHighlightsTweetsResult.js +57 -0
  670. package/dist/src/openapi/src/models/UserHighlightsTweetsTimeline.d.ts +34 -0
  671. package/dist/src/openapi/src/models/UserHighlightsTweetsTimeline.js +52 -0
  672. package/dist/src/openapi/src/models/UserHighlightsTweetsUser.d.ts +34 -0
  673. package/dist/src/openapi/src/models/UserHighlightsTweetsUser.js +52 -0
  674. package/dist/src/openapi/src/models/UserLegacy.d.ts +283 -0
  675. package/dist/src/openapi/src/models/UserLegacy.js +185 -0
  676. package/dist/src/openapi/src/models/UserLegacyExtendedProfile.d.ts +34 -0
  677. package/dist/src/openapi/src/models/UserLegacyExtendedProfile.js +50 -0
  678. package/dist/src/openapi/src/models/UserLegacyExtendedProfileBirthdate.d.ts +79 -0
  679. package/dist/src/openapi/src/models/UserLegacyExtendedProfileBirthdate.js +86 -0
  680. package/dist/src/openapi/src/models/UserLocation.d.ts +33 -0
  681. package/dist/src/openapi/src/models/UserLocation.js +49 -0
  682. package/dist/src/openapi/src/models/UserMediaPermissions.d.ts +33 -0
  683. package/dist/src/openapi/src/models/UserMediaPermissions.js +49 -0
  684. package/dist/src/openapi/src/models/UserPrivacy.d.ts +33 -0
  685. package/dist/src/openapi/src/models/UserPrivacy.js +49 -0
  686. package/dist/src/openapi/src/models/UserProfessional.d.ts +54 -0
  687. package/dist/src/openapi/src/models/UserProfessional.js +68 -0
  688. package/dist/src/openapi/src/models/UserProfessionalCategory.d.ts +45 -0
  689. package/dist/src/openapi/src/models/UserProfessionalCategory.js +59 -0
  690. package/dist/src/openapi/src/models/UserProfileBio.d.ts +33 -0
  691. package/dist/src/openapi/src/models/UserProfileBio.js +49 -0
  692. package/dist/src/openapi/src/models/UserRelationshipPerspectives.d.ts +57 -0
  693. package/dist/src/openapi/src/models/UserRelationshipPerspectives.js +57 -0
  694. package/dist/src/openapi/src/models/UserResponse.d.ts +41 -0
  695. package/dist/src/openapi/src/models/UserResponse.js +55 -0
  696. package/dist/src/openapi/src/models/UserResponseData.d.ts +34 -0
  697. package/dist/src/openapi/src/models/UserResponseData.js +50 -0
  698. package/dist/src/openapi/src/models/UserResultByScreenName.d.ts +40 -0
  699. package/dist/src/openapi/src/models/UserResultByScreenName.js +56 -0
  700. package/dist/src/openapi/src/models/UserResultByScreenNameLegacy.d.ts +69 -0
  701. package/dist/src/openapi/src/models/UserResultByScreenNameLegacy.js +61 -0
  702. package/dist/src/openapi/src/models/UserResultByScreenNameResult.d.ts +61 -0
  703. package/dist/src/openapi/src/models/UserResultByScreenNameResult.js +69 -0
  704. package/dist/src/openapi/src/models/UserResultCore.d.ts +34 -0
  705. package/dist/src/openapi/src/models/UserResultCore.js +52 -0
  706. package/dist/src/openapi/src/models/UserResults.d.ts +34 -0
  707. package/dist/src/openapi/src/models/UserResults.js +50 -0
  708. package/dist/src/openapi/src/models/UserTipJarSettings.d.ts +81 -0
  709. package/dist/src/openapi/src/models/UserTipJarSettings.js +65 -0
  710. package/dist/src/openapi/src/models/UserTweetsData.d.ts +34 -0
  711. package/dist/src/openapi/src/models/UserTweetsData.js +50 -0
  712. package/dist/src/openapi/src/models/UserTweetsResponse.d.ts +41 -0
  713. package/dist/src/openapi/src/models/UserTweetsResponse.js +55 -0
  714. package/dist/src/openapi/src/models/UserTweetsResultV1.d.ts +41 -0
  715. package/dist/src/openapi/src/models/UserTweetsResultV1.js +57 -0
  716. package/dist/src/openapi/src/models/UserTweetsResultV2.d.ts +41 -0
  717. package/dist/src/openapi/src/models/UserTweetsResultV2.js +57 -0
  718. package/dist/src/openapi/src/models/UserTweetsUser.d.ts +34 -0
  719. package/dist/src/openapi/src/models/UserTweetsUser.js +52 -0
  720. package/dist/src/openapi/src/models/UserUnavailable.d.ts +46 -0
  721. package/dist/src/openapi/src/models/UserUnavailable.js +58 -0
  722. package/dist/src/openapi/src/models/UserUnion.d.ts +28 -0
  723. package/dist/src/openapi/src/models/UserUnion.js +54 -0
  724. package/dist/src/openapi/src/models/UserValue.d.ts +33 -0
  725. package/dist/src/openapi/src/models/UserValue.js +51 -0
  726. package/dist/src/openapi/src/models/UserVerification.d.ts +33 -0
  727. package/dist/src/openapi/src/models/UserVerification.js +49 -0
  728. package/dist/src/openapi/src/models/UserVerificationInfo.d.ts +40 -0
  729. package/dist/src/openapi/src/models/UserVerificationInfo.js +54 -0
  730. package/dist/src/openapi/src/models/UserVerificationInfoReason.d.ts +46 -0
  731. package/dist/src/openapi/src/models/UserVerificationInfoReason.js +58 -0
  732. package/dist/src/openapi/src/models/UserVerificationInfoReasonDescription.d.ts +40 -0
  733. package/dist/src/openapi/src/models/UserVerificationInfoReasonDescription.js +56 -0
  734. package/dist/src/openapi/src/models/UserVerificationInfoReasonDescriptionEntities.d.ts +46 -0
  735. package/dist/src/openapi/src/models/UserVerificationInfoReasonDescriptionEntities.js +60 -0
  736. package/dist/src/openapi/src/models/UserVerificationInfoReasonDescriptionEntitiesRef.d.ts +46 -0
  737. package/dist/src/openapi/src/models/UserVerificationInfoReasonDescriptionEntitiesRef.js +62 -0
  738. package/dist/src/openapi/src/models/UsersResponse.d.ts +41 -0
  739. package/dist/src/openapi/src/models/UsersResponse.js +55 -0
  740. package/dist/src/openapi/src/models/UsersResponseData.d.ts +34 -0
  741. package/dist/src/openapi/src/models/UsersResponseData.js +50 -0
  742. package/dist/src/openapi/src/models/index.d.ts +336 -0
  743. package/dist/src/openapi/src/models/index.js +354 -0
  744. package/dist/src/openapi/src/runtime.d.ts +185 -0
  745. package/dist/src/openapi/src/runtime.js +339 -0
  746. package/dist/src/utils/api.d.ts +30 -0
  747. package/dist/src/utils/api.js +270 -0
  748. package/dist/src/utils/index.d.ts +2 -0
  749. package/dist/src/utils/index.js +18 -0
  750. package/package.json +41 -0
@@ -0,0 +1,874 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Twitter OpenAPI
6
+ * Twitter OpenAPI(Swagger) specification
7
+ *
8
+ * The version of the OpenAPI document: 0.0.1
9
+ * Contact: yuki@yuki0311.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ var desc = Object.getOwnPropertyDescriptor(m, k);
18
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19
+ desc = { enumerable: true, get: function() { return m[k]; } };
20
+ }
21
+ Object.defineProperty(o, k2, desc);
22
+ }) : (function(o, m, k, k2) {
23
+ if (k2 === undefined) k2 = k;
24
+ o[k2] = m[k];
25
+ }));
26
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
27
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
28
+ }) : function(o, v) {
29
+ o["default"] = v;
30
+ });
31
+ var __importStar = (this && this.__importStar) || (function () {
32
+ var ownKeys = function(o) {
33
+ ownKeys = Object.getOwnPropertyNames || function (o) {
34
+ var ar = [];
35
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
36
+ return ar;
37
+ };
38
+ return ownKeys(o);
39
+ };
40
+ return function (mod) {
41
+ if (mod && mod.__esModule) return mod;
42
+ var result = {};
43
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
44
+ __setModuleDefault(result, mod);
45
+ return result;
46
+ };
47
+ })();
48
+ Object.defineProperty(exports, "__esModule", { value: true });
49
+ exports.PostApi = void 0;
50
+ const runtime = __importStar(require("../runtime"));
51
+ const index_1 = require("../models/index");
52
+ /**
53
+ *
54
+ */
55
+ class PostApi extends runtime.BaseAPI {
56
+ /**
57
+ * Creates request options for postCreateBookmark without sending the request
58
+ */
59
+ async postCreateBookmarkRequestOpts(requestParameters) {
60
+ if (requestParameters['pathQueryId'] == null) {
61
+ throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postCreateBookmark().');
62
+ }
63
+ if (requestParameters['postCreateBookmarkRequest'] == null) {
64
+ throw new runtime.RequiredError('postCreateBookmarkRequest', 'Required parameter "postCreateBookmarkRequest" was null or undefined when calling postCreateBookmark().');
65
+ }
66
+ const queryParameters = {};
67
+ const headerParameters = {};
68
+ headerParameters['Content-Type'] = 'application/json';
69
+ if (this.configuration && this.configuration.apiKey) {
70
+ headerParameters["Accept"] = await this.configuration.apiKey("Accept"); // Accept authentication
71
+ }
72
+ if (this.configuration && this.configuration.apiKey) {
73
+ headerParameters["x-twitter-client-language"] = await this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
74
+ }
75
+ if (this.configuration && this.configuration.apiKey) {
76
+ headerParameters["Priority"] = await this.configuration.apiKey("Priority"); // Priority authentication
77
+ }
78
+ if (this.configuration && this.configuration.apiKey) {
79
+ headerParameters["Referer"] = await this.configuration.apiKey("Referer"); // Referer authentication
80
+ }
81
+ if (this.configuration && this.configuration.apiKey) {
82
+ headerParameters["Sec-Fetch-Dest"] = await this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
83
+ }
84
+ if (this.configuration && this.configuration.apiKey) {
85
+ headerParameters["Sec-Ch-Ua-Platform"] = await this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
86
+ }
87
+ if (this.configuration && this.configuration.apiKey) {
88
+ headerParameters["Sec-Fetch-Mode"] = await this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
89
+ }
90
+ if (this.configuration && this.configuration.apiKey) {
91
+ headerParameters["x-csrf-token"] = await this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
92
+ }
93
+ if (this.configuration && this.configuration.apiKey) {
94
+ headerParameters["x-client-uuid"] = await this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
95
+ }
96
+ if (this.configuration && this.configuration.accessToken) {
97
+ const token = this.configuration.accessToken;
98
+ const tokenString = await token("BearerAuth", []);
99
+ if (tokenString) {
100
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
101
+ }
102
+ }
103
+ if (this.configuration && this.configuration.apiKey) {
104
+ headerParameters["x-guest-token"] = await this.configuration.apiKey("x-guest-token"); // GuestToken authentication
105
+ }
106
+ if (this.configuration && this.configuration.apiKey) {
107
+ headerParameters["Sec-Ch-Ua"] = await this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
108
+ }
109
+ if (this.configuration && this.configuration.apiKey) {
110
+ headerParameters["x-client-transaction-id"] = await this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
111
+ }
112
+ if (this.configuration && this.configuration.apiKey) {
113
+ headerParameters["x-twitter-active-user"] = await this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
114
+ }
115
+ if (this.configuration && this.configuration.apiKey) {
116
+ headerParameters["user-agent"] = await this.configuration.apiKey("user-agent"); // UserAgent authentication
117
+ }
118
+ if (this.configuration && this.configuration.apiKey) {
119
+ headerParameters["Accept-Language"] = await this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
120
+ }
121
+ if (this.configuration && this.configuration.apiKey) {
122
+ headerParameters["Sec-Fetch-Site"] = await this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
123
+ }
124
+ if (this.configuration && this.configuration.apiKey) {
125
+ headerParameters["x-twitter-auth-type"] = await this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
126
+ }
127
+ if (this.configuration && this.configuration.apiKey) {
128
+ headerParameters["Sec-Ch-Ua-Mobile"] = await this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
129
+ }
130
+ if (this.configuration && this.configuration.apiKey) {
131
+ headerParameters["Accept-Encoding"] = await this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
132
+ }
133
+ let urlPath = `/graphql/{pathQueryId}/CreateBookmark`;
134
+ urlPath = urlPath.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters['pathQueryId'])));
135
+ return {
136
+ path: urlPath,
137
+ method: 'POST',
138
+ headers: headerParameters,
139
+ query: queryParameters,
140
+ body: (0, index_1.PostCreateBookmarkRequestToJSON)(requestParameters['postCreateBookmarkRequest']),
141
+ };
142
+ }
143
+ /**
144
+ * create Bookmark
145
+ */
146
+ async postCreateBookmarkRaw(requestParameters, initOverrides) {
147
+ const requestOptions = await this.postCreateBookmarkRequestOpts(requestParameters);
148
+ const response = await this.request(requestOptions, initOverrides);
149
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreateBookmarkResponseFromJSON)(jsonValue));
150
+ }
151
+ /**
152
+ * create Bookmark
153
+ */
154
+ async postCreateBookmark(requestParameters, initOverrides) {
155
+ const response = await this.postCreateBookmarkRaw(requestParameters, initOverrides);
156
+ return await response.value();
157
+ }
158
+ /**
159
+ * Creates request options for postCreateRetweet without sending the request
160
+ */
161
+ async postCreateRetweetRequestOpts(requestParameters) {
162
+ if (requestParameters['pathQueryId'] == null) {
163
+ throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postCreateRetweet().');
164
+ }
165
+ if (requestParameters['postCreateRetweetRequest'] == null) {
166
+ throw new runtime.RequiredError('postCreateRetweetRequest', 'Required parameter "postCreateRetweetRequest" was null or undefined when calling postCreateRetweet().');
167
+ }
168
+ const queryParameters = {};
169
+ const headerParameters = {};
170
+ headerParameters['Content-Type'] = 'application/json';
171
+ if (this.configuration && this.configuration.apiKey) {
172
+ headerParameters["Accept"] = await this.configuration.apiKey("Accept"); // Accept authentication
173
+ }
174
+ if (this.configuration && this.configuration.apiKey) {
175
+ headerParameters["x-twitter-client-language"] = await this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
176
+ }
177
+ if (this.configuration && this.configuration.apiKey) {
178
+ headerParameters["Priority"] = await this.configuration.apiKey("Priority"); // Priority authentication
179
+ }
180
+ if (this.configuration && this.configuration.apiKey) {
181
+ headerParameters["Referer"] = await this.configuration.apiKey("Referer"); // Referer authentication
182
+ }
183
+ if (this.configuration && this.configuration.apiKey) {
184
+ headerParameters["Sec-Fetch-Dest"] = await this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
185
+ }
186
+ if (this.configuration && this.configuration.apiKey) {
187
+ headerParameters["Sec-Ch-Ua-Platform"] = await this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
188
+ }
189
+ if (this.configuration && this.configuration.apiKey) {
190
+ headerParameters["Sec-Fetch-Mode"] = await this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
191
+ }
192
+ if (this.configuration && this.configuration.apiKey) {
193
+ headerParameters["x-csrf-token"] = await this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
194
+ }
195
+ if (this.configuration && this.configuration.apiKey) {
196
+ headerParameters["x-client-uuid"] = await this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
197
+ }
198
+ if (this.configuration && this.configuration.accessToken) {
199
+ const token = this.configuration.accessToken;
200
+ const tokenString = await token("BearerAuth", []);
201
+ if (tokenString) {
202
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
203
+ }
204
+ }
205
+ if (this.configuration && this.configuration.apiKey) {
206
+ headerParameters["x-guest-token"] = await this.configuration.apiKey("x-guest-token"); // GuestToken authentication
207
+ }
208
+ if (this.configuration && this.configuration.apiKey) {
209
+ headerParameters["Sec-Ch-Ua"] = await this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
210
+ }
211
+ if (this.configuration && this.configuration.apiKey) {
212
+ headerParameters["x-client-transaction-id"] = await this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
213
+ }
214
+ if (this.configuration && this.configuration.apiKey) {
215
+ headerParameters["x-twitter-active-user"] = await this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
216
+ }
217
+ if (this.configuration && this.configuration.apiKey) {
218
+ headerParameters["user-agent"] = await this.configuration.apiKey("user-agent"); // UserAgent authentication
219
+ }
220
+ if (this.configuration && this.configuration.apiKey) {
221
+ headerParameters["Accept-Language"] = await this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
222
+ }
223
+ if (this.configuration && this.configuration.apiKey) {
224
+ headerParameters["Sec-Fetch-Site"] = await this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
225
+ }
226
+ if (this.configuration && this.configuration.apiKey) {
227
+ headerParameters["x-twitter-auth-type"] = await this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
228
+ }
229
+ if (this.configuration && this.configuration.apiKey) {
230
+ headerParameters["Sec-Ch-Ua-Mobile"] = await this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
231
+ }
232
+ if (this.configuration && this.configuration.apiKey) {
233
+ headerParameters["Accept-Encoding"] = await this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
234
+ }
235
+ let urlPath = `/graphql/{pathQueryId}/CreateRetweet`;
236
+ urlPath = urlPath.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters['pathQueryId'])));
237
+ return {
238
+ path: urlPath,
239
+ method: 'POST',
240
+ headers: headerParameters,
241
+ query: queryParameters,
242
+ body: (0, index_1.PostCreateRetweetRequestToJSON)(requestParameters['postCreateRetweetRequest']),
243
+ };
244
+ }
245
+ /**
246
+ * create Retweet
247
+ */
248
+ async postCreateRetweetRaw(requestParameters, initOverrides) {
249
+ const requestOptions = await this.postCreateRetweetRequestOpts(requestParameters);
250
+ const response = await this.request(requestOptions, initOverrides);
251
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreateRetweetResponseFromJSON)(jsonValue));
252
+ }
253
+ /**
254
+ * create Retweet
255
+ */
256
+ async postCreateRetweet(requestParameters, initOverrides) {
257
+ const response = await this.postCreateRetweetRaw(requestParameters, initOverrides);
258
+ return await response.value();
259
+ }
260
+ /**
261
+ * Creates request options for postCreateTweet without sending the request
262
+ */
263
+ async postCreateTweetRequestOpts(requestParameters) {
264
+ if (requestParameters['pathQueryId'] == null) {
265
+ throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postCreateTweet().');
266
+ }
267
+ if (requestParameters['postCreateTweetRequest'] == null) {
268
+ throw new runtime.RequiredError('postCreateTweetRequest', 'Required parameter "postCreateTweetRequest" was null or undefined when calling postCreateTweet().');
269
+ }
270
+ const queryParameters = {};
271
+ const headerParameters = {};
272
+ headerParameters['Content-Type'] = 'application/json';
273
+ if (this.configuration && this.configuration.apiKey) {
274
+ headerParameters["Accept"] = await this.configuration.apiKey("Accept"); // Accept authentication
275
+ }
276
+ if (this.configuration && this.configuration.apiKey) {
277
+ headerParameters["x-twitter-client-language"] = await this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
278
+ }
279
+ if (this.configuration && this.configuration.apiKey) {
280
+ headerParameters["Priority"] = await this.configuration.apiKey("Priority"); // Priority authentication
281
+ }
282
+ if (this.configuration && this.configuration.apiKey) {
283
+ headerParameters["Referer"] = await this.configuration.apiKey("Referer"); // Referer authentication
284
+ }
285
+ if (this.configuration && this.configuration.apiKey) {
286
+ headerParameters["Sec-Fetch-Dest"] = await this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
287
+ }
288
+ if (this.configuration && this.configuration.apiKey) {
289
+ headerParameters["Sec-Ch-Ua-Platform"] = await this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
290
+ }
291
+ if (this.configuration && this.configuration.apiKey) {
292
+ headerParameters["Sec-Fetch-Mode"] = await this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
293
+ }
294
+ if (this.configuration && this.configuration.apiKey) {
295
+ headerParameters["x-csrf-token"] = await this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
296
+ }
297
+ if (this.configuration && this.configuration.apiKey) {
298
+ headerParameters["x-client-uuid"] = await this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
299
+ }
300
+ if (this.configuration && this.configuration.accessToken) {
301
+ const token = this.configuration.accessToken;
302
+ const tokenString = await token("BearerAuth", []);
303
+ if (tokenString) {
304
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
305
+ }
306
+ }
307
+ if (this.configuration && this.configuration.apiKey) {
308
+ headerParameters["x-guest-token"] = await this.configuration.apiKey("x-guest-token"); // GuestToken authentication
309
+ }
310
+ if (this.configuration && this.configuration.apiKey) {
311
+ headerParameters["Sec-Ch-Ua"] = await this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
312
+ }
313
+ if (this.configuration && this.configuration.apiKey) {
314
+ headerParameters["x-client-transaction-id"] = await this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
315
+ }
316
+ if (this.configuration && this.configuration.apiKey) {
317
+ headerParameters["x-twitter-active-user"] = await this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
318
+ }
319
+ if (this.configuration && this.configuration.apiKey) {
320
+ headerParameters["user-agent"] = await this.configuration.apiKey("user-agent"); // UserAgent authentication
321
+ }
322
+ if (this.configuration && this.configuration.apiKey) {
323
+ headerParameters["Accept-Language"] = await this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
324
+ }
325
+ if (this.configuration && this.configuration.apiKey) {
326
+ headerParameters["Sec-Fetch-Site"] = await this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
327
+ }
328
+ if (this.configuration && this.configuration.apiKey) {
329
+ headerParameters["x-twitter-auth-type"] = await this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
330
+ }
331
+ if (this.configuration && this.configuration.apiKey) {
332
+ headerParameters["Sec-Ch-Ua-Mobile"] = await this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
333
+ }
334
+ if (this.configuration && this.configuration.apiKey) {
335
+ headerParameters["Accept-Encoding"] = await this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
336
+ }
337
+ let urlPath = `/graphql/{pathQueryId}/CreateTweet`;
338
+ urlPath = urlPath.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters['pathQueryId'])));
339
+ return {
340
+ path: urlPath,
341
+ method: 'POST',
342
+ headers: headerParameters,
343
+ query: queryParameters,
344
+ body: (0, index_1.PostCreateTweetRequestToJSON)(requestParameters['postCreateTweetRequest']),
345
+ };
346
+ }
347
+ /**
348
+ * create Tweet
349
+ */
350
+ async postCreateTweetRaw(requestParameters, initOverrides) {
351
+ const requestOptions = await this.postCreateTweetRequestOpts(requestParameters);
352
+ const response = await this.request(requestOptions, initOverrides);
353
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreateTweetResponseFromJSON)(jsonValue));
354
+ }
355
+ /**
356
+ * create Tweet
357
+ */
358
+ async postCreateTweet(requestParameters, initOverrides) {
359
+ const response = await this.postCreateTweetRaw(requestParameters, initOverrides);
360
+ return await response.value();
361
+ }
362
+ /**
363
+ * Creates request options for postDeleteBookmark without sending the request
364
+ */
365
+ async postDeleteBookmarkRequestOpts(requestParameters) {
366
+ if (requestParameters['pathQueryId'] == null) {
367
+ throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postDeleteBookmark().');
368
+ }
369
+ if (requestParameters['postDeleteBookmarkRequest'] == null) {
370
+ throw new runtime.RequiredError('postDeleteBookmarkRequest', 'Required parameter "postDeleteBookmarkRequest" was null or undefined when calling postDeleteBookmark().');
371
+ }
372
+ const queryParameters = {};
373
+ const headerParameters = {};
374
+ headerParameters['Content-Type'] = 'application/json';
375
+ if (this.configuration && this.configuration.apiKey) {
376
+ headerParameters["Accept"] = await this.configuration.apiKey("Accept"); // Accept authentication
377
+ }
378
+ if (this.configuration && this.configuration.apiKey) {
379
+ headerParameters["x-twitter-client-language"] = await this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
380
+ }
381
+ if (this.configuration && this.configuration.apiKey) {
382
+ headerParameters["Priority"] = await this.configuration.apiKey("Priority"); // Priority authentication
383
+ }
384
+ if (this.configuration && this.configuration.apiKey) {
385
+ headerParameters["Referer"] = await this.configuration.apiKey("Referer"); // Referer authentication
386
+ }
387
+ if (this.configuration && this.configuration.apiKey) {
388
+ headerParameters["Sec-Fetch-Dest"] = await this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
389
+ }
390
+ if (this.configuration && this.configuration.apiKey) {
391
+ headerParameters["Sec-Ch-Ua-Platform"] = await this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
392
+ }
393
+ if (this.configuration && this.configuration.apiKey) {
394
+ headerParameters["Sec-Fetch-Mode"] = await this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
395
+ }
396
+ if (this.configuration && this.configuration.apiKey) {
397
+ headerParameters["x-csrf-token"] = await this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
398
+ }
399
+ if (this.configuration && this.configuration.apiKey) {
400
+ headerParameters["x-client-uuid"] = await this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
401
+ }
402
+ if (this.configuration && this.configuration.accessToken) {
403
+ const token = this.configuration.accessToken;
404
+ const tokenString = await token("BearerAuth", []);
405
+ if (tokenString) {
406
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
407
+ }
408
+ }
409
+ if (this.configuration && this.configuration.apiKey) {
410
+ headerParameters["x-guest-token"] = await this.configuration.apiKey("x-guest-token"); // GuestToken authentication
411
+ }
412
+ if (this.configuration && this.configuration.apiKey) {
413
+ headerParameters["Sec-Ch-Ua"] = await this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
414
+ }
415
+ if (this.configuration && this.configuration.apiKey) {
416
+ headerParameters["x-client-transaction-id"] = await this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
417
+ }
418
+ if (this.configuration && this.configuration.apiKey) {
419
+ headerParameters["x-twitter-active-user"] = await this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
420
+ }
421
+ if (this.configuration && this.configuration.apiKey) {
422
+ headerParameters["user-agent"] = await this.configuration.apiKey("user-agent"); // UserAgent authentication
423
+ }
424
+ if (this.configuration && this.configuration.apiKey) {
425
+ headerParameters["Accept-Language"] = await this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
426
+ }
427
+ if (this.configuration && this.configuration.apiKey) {
428
+ headerParameters["Sec-Fetch-Site"] = await this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
429
+ }
430
+ if (this.configuration && this.configuration.apiKey) {
431
+ headerParameters["x-twitter-auth-type"] = await this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
432
+ }
433
+ if (this.configuration && this.configuration.apiKey) {
434
+ headerParameters["Sec-Ch-Ua-Mobile"] = await this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
435
+ }
436
+ if (this.configuration && this.configuration.apiKey) {
437
+ headerParameters["Accept-Encoding"] = await this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
438
+ }
439
+ let urlPath = `/graphql/{pathQueryId}/DeleteBookmark`;
440
+ urlPath = urlPath.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters['pathQueryId'])));
441
+ return {
442
+ path: urlPath,
443
+ method: 'POST',
444
+ headers: headerParameters,
445
+ query: queryParameters,
446
+ body: (0, index_1.PostDeleteBookmarkRequestToJSON)(requestParameters['postDeleteBookmarkRequest']),
447
+ };
448
+ }
449
+ /**
450
+ * delete Bookmark
451
+ */
452
+ async postDeleteBookmarkRaw(requestParameters, initOverrides) {
453
+ const requestOptions = await this.postDeleteBookmarkRequestOpts(requestParameters);
454
+ const response = await this.request(requestOptions, initOverrides);
455
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.DeleteBookmarkResponseFromJSON)(jsonValue));
456
+ }
457
+ /**
458
+ * delete Bookmark
459
+ */
460
+ async postDeleteBookmark(requestParameters, initOverrides) {
461
+ const response = await this.postDeleteBookmarkRaw(requestParameters, initOverrides);
462
+ return await response.value();
463
+ }
464
+ /**
465
+ * Creates request options for postDeleteRetweet without sending the request
466
+ */
467
+ async postDeleteRetweetRequestOpts(requestParameters) {
468
+ if (requestParameters['pathQueryId'] == null) {
469
+ throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postDeleteRetweet().');
470
+ }
471
+ if (requestParameters['postDeleteRetweetRequest'] == null) {
472
+ throw new runtime.RequiredError('postDeleteRetweetRequest', 'Required parameter "postDeleteRetweetRequest" was null or undefined when calling postDeleteRetweet().');
473
+ }
474
+ const queryParameters = {};
475
+ const headerParameters = {};
476
+ headerParameters['Content-Type'] = 'application/json';
477
+ if (this.configuration && this.configuration.apiKey) {
478
+ headerParameters["Accept"] = await this.configuration.apiKey("Accept"); // Accept authentication
479
+ }
480
+ if (this.configuration && this.configuration.apiKey) {
481
+ headerParameters["x-twitter-client-language"] = await this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
482
+ }
483
+ if (this.configuration && this.configuration.apiKey) {
484
+ headerParameters["Priority"] = await this.configuration.apiKey("Priority"); // Priority authentication
485
+ }
486
+ if (this.configuration && this.configuration.apiKey) {
487
+ headerParameters["Referer"] = await this.configuration.apiKey("Referer"); // Referer authentication
488
+ }
489
+ if (this.configuration && this.configuration.apiKey) {
490
+ headerParameters["Sec-Fetch-Dest"] = await this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
491
+ }
492
+ if (this.configuration && this.configuration.apiKey) {
493
+ headerParameters["Sec-Ch-Ua-Platform"] = await this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
494
+ }
495
+ if (this.configuration && this.configuration.apiKey) {
496
+ headerParameters["Sec-Fetch-Mode"] = await this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
497
+ }
498
+ if (this.configuration && this.configuration.apiKey) {
499
+ headerParameters["x-csrf-token"] = await this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
500
+ }
501
+ if (this.configuration && this.configuration.apiKey) {
502
+ headerParameters["x-client-uuid"] = await this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
503
+ }
504
+ if (this.configuration && this.configuration.accessToken) {
505
+ const token = this.configuration.accessToken;
506
+ const tokenString = await token("BearerAuth", []);
507
+ if (tokenString) {
508
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
509
+ }
510
+ }
511
+ if (this.configuration && this.configuration.apiKey) {
512
+ headerParameters["x-guest-token"] = await this.configuration.apiKey("x-guest-token"); // GuestToken authentication
513
+ }
514
+ if (this.configuration && this.configuration.apiKey) {
515
+ headerParameters["Sec-Ch-Ua"] = await this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
516
+ }
517
+ if (this.configuration && this.configuration.apiKey) {
518
+ headerParameters["x-client-transaction-id"] = await this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
519
+ }
520
+ if (this.configuration && this.configuration.apiKey) {
521
+ headerParameters["x-twitter-active-user"] = await this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
522
+ }
523
+ if (this.configuration && this.configuration.apiKey) {
524
+ headerParameters["user-agent"] = await this.configuration.apiKey("user-agent"); // UserAgent authentication
525
+ }
526
+ if (this.configuration && this.configuration.apiKey) {
527
+ headerParameters["Accept-Language"] = await this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
528
+ }
529
+ if (this.configuration && this.configuration.apiKey) {
530
+ headerParameters["Sec-Fetch-Site"] = await this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
531
+ }
532
+ if (this.configuration && this.configuration.apiKey) {
533
+ headerParameters["x-twitter-auth-type"] = await this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
534
+ }
535
+ if (this.configuration && this.configuration.apiKey) {
536
+ headerParameters["Sec-Ch-Ua-Mobile"] = await this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
537
+ }
538
+ if (this.configuration && this.configuration.apiKey) {
539
+ headerParameters["Accept-Encoding"] = await this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
540
+ }
541
+ let urlPath = `/graphql/{pathQueryId}/DeleteRetweet`;
542
+ urlPath = urlPath.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters['pathQueryId'])));
543
+ return {
544
+ path: urlPath,
545
+ method: 'POST',
546
+ headers: headerParameters,
547
+ query: queryParameters,
548
+ body: (0, index_1.PostDeleteRetweetRequestToJSON)(requestParameters['postDeleteRetweetRequest']),
549
+ };
550
+ }
551
+ /**
552
+ * delete Retweet
553
+ */
554
+ async postDeleteRetweetRaw(requestParameters, initOverrides) {
555
+ const requestOptions = await this.postDeleteRetweetRequestOpts(requestParameters);
556
+ const response = await this.request(requestOptions, initOverrides);
557
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.DeleteRetweetResponseFromJSON)(jsonValue));
558
+ }
559
+ /**
560
+ * delete Retweet
561
+ */
562
+ async postDeleteRetweet(requestParameters, initOverrides) {
563
+ const response = await this.postDeleteRetweetRaw(requestParameters, initOverrides);
564
+ return await response.value();
565
+ }
566
+ /**
567
+ * Creates request options for postDeleteTweet without sending the request
568
+ */
569
+ async postDeleteTweetRequestOpts(requestParameters) {
570
+ if (requestParameters['pathQueryId'] == null) {
571
+ throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postDeleteTweet().');
572
+ }
573
+ if (requestParameters['postDeleteTweetRequest'] == null) {
574
+ throw new runtime.RequiredError('postDeleteTweetRequest', 'Required parameter "postDeleteTweetRequest" was null or undefined when calling postDeleteTweet().');
575
+ }
576
+ const queryParameters = {};
577
+ const headerParameters = {};
578
+ headerParameters['Content-Type'] = 'application/json';
579
+ if (this.configuration && this.configuration.apiKey) {
580
+ headerParameters["Accept"] = await this.configuration.apiKey("Accept"); // Accept authentication
581
+ }
582
+ if (this.configuration && this.configuration.apiKey) {
583
+ headerParameters["x-twitter-client-language"] = await this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
584
+ }
585
+ if (this.configuration && this.configuration.apiKey) {
586
+ headerParameters["Priority"] = await this.configuration.apiKey("Priority"); // Priority authentication
587
+ }
588
+ if (this.configuration && this.configuration.apiKey) {
589
+ headerParameters["Referer"] = await this.configuration.apiKey("Referer"); // Referer authentication
590
+ }
591
+ if (this.configuration && this.configuration.apiKey) {
592
+ headerParameters["Sec-Fetch-Dest"] = await this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
593
+ }
594
+ if (this.configuration && this.configuration.apiKey) {
595
+ headerParameters["Sec-Ch-Ua-Platform"] = await this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
596
+ }
597
+ if (this.configuration && this.configuration.apiKey) {
598
+ headerParameters["Sec-Fetch-Mode"] = await this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
599
+ }
600
+ if (this.configuration && this.configuration.apiKey) {
601
+ headerParameters["x-csrf-token"] = await this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
602
+ }
603
+ if (this.configuration && this.configuration.apiKey) {
604
+ headerParameters["x-client-uuid"] = await this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
605
+ }
606
+ if (this.configuration && this.configuration.accessToken) {
607
+ const token = this.configuration.accessToken;
608
+ const tokenString = await token("BearerAuth", []);
609
+ if (tokenString) {
610
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
611
+ }
612
+ }
613
+ if (this.configuration && this.configuration.apiKey) {
614
+ headerParameters["x-guest-token"] = await this.configuration.apiKey("x-guest-token"); // GuestToken authentication
615
+ }
616
+ if (this.configuration && this.configuration.apiKey) {
617
+ headerParameters["Sec-Ch-Ua"] = await this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
618
+ }
619
+ if (this.configuration && this.configuration.apiKey) {
620
+ headerParameters["x-client-transaction-id"] = await this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
621
+ }
622
+ if (this.configuration && this.configuration.apiKey) {
623
+ headerParameters["x-twitter-active-user"] = await this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
624
+ }
625
+ if (this.configuration && this.configuration.apiKey) {
626
+ headerParameters["user-agent"] = await this.configuration.apiKey("user-agent"); // UserAgent authentication
627
+ }
628
+ if (this.configuration && this.configuration.apiKey) {
629
+ headerParameters["Accept-Language"] = await this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
630
+ }
631
+ if (this.configuration && this.configuration.apiKey) {
632
+ headerParameters["Sec-Fetch-Site"] = await this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
633
+ }
634
+ if (this.configuration && this.configuration.apiKey) {
635
+ headerParameters["x-twitter-auth-type"] = await this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
636
+ }
637
+ if (this.configuration && this.configuration.apiKey) {
638
+ headerParameters["Sec-Ch-Ua-Mobile"] = await this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
639
+ }
640
+ if (this.configuration && this.configuration.apiKey) {
641
+ headerParameters["Accept-Encoding"] = await this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
642
+ }
643
+ let urlPath = `/graphql/{pathQueryId}/DeleteTweet`;
644
+ urlPath = urlPath.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters['pathQueryId'])));
645
+ return {
646
+ path: urlPath,
647
+ method: 'POST',
648
+ headers: headerParameters,
649
+ query: queryParameters,
650
+ body: (0, index_1.PostDeleteTweetRequestToJSON)(requestParameters['postDeleteTweetRequest']),
651
+ };
652
+ }
653
+ /**
654
+ * delete Retweet
655
+ */
656
+ async postDeleteTweetRaw(requestParameters, initOverrides) {
657
+ const requestOptions = await this.postDeleteTweetRequestOpts(requestParameters);
658
+ const response = await this.request(requestOptions, initOverrides);
659
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.DeleteTweetResponseFromJSON)(jsonValue));
660
+ }
661
+ /**
662
+ * delete Retweet
663
+ */
664
+ async postDeleteTweet(requestParameters, initOverrides) {
665
+ const response = await this.postDeleteTweetRaw(requestParameters, initOverrides);
666
+ return await response.value();
667
+ }
668
+ /**
669
+ * Creates request options for postFavoriteTweet without sending the request
670
+ */
671
+ async postFavoriteTweetRequestOpts(requestParameters) {
672
+ if (requestParameters['pathQueryId'] == null) {
673
+ throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postFavoriteTweet().');
674
+ }
675
+ if (requestParameters['postFavoriteTweetRequest'] == null) {
676
+ throw new runtime.RequiredError('postFavoriteTweetRequest', 'Required parameter "postFavoriteTweetRequest" was null or undefined when calling postFavoriteTweet().');
677
+ }
678
+ const queryParameters = {};
679
+ const headerParameters = {};
680
+ headerParameters['Content-Type'] = 'application/json';
681
+ if (this.configuration && this.configuration.apiKey) {
682
+ headerParameters["Accept"] = await this.configuration.apiKey("Accept"); // Accept authentication
683
+ }
684
+ if (this.configuration && this.configuration.apiKey) {
685
+ headerParameters["x-twitter-client-language"] = await this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
686
+ }
687
+ if (this.configuration && this.configuration.apiKey) {
688
+ headerParameters["Priority"] = await this.configuration.apiKey("Priority"); // Priority authentication
689
+ }
690
+ if (this.configuration && this.configuration.apiKey) {
691
+ headerParameters["Referer"] = await this.configuration.apiKey("Referer"); // Referer authentication
692
+ }
693
+ if (this.configuration && this.configuration.apiKey) {
694
+ headerParameters["Sec-Fetch-Dest"] = await this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
695
+ }
696
+ if (this.configuration && this.configuration.apiKey) {
697
+ headerParameters["Sec-Ch-Ua-Platform"] = await this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
698
+ }
699
+ if (this.configuration && this.configuration.apiKey) {
700
+ headerParameters["Sec-Fetch-Mode"] = await this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
701
+ }
702
+ if (this.configuration && this.configuration.apiKey) {
703
+ headerParameters["x-csrf-token"] = await this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
704
+ }
705
+ if (this.configuration && this.configuration.apiKey) {
706
+ headerParameters["x-client-uuid"] = await this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
707
+ }
708
+ if (this.configuration && this.configuration.accessToken) {
709
+ const token = this.configuration.accessToken;
710
+ const tokenString = await token("BearerAuth", []);
711
+ if (tokenString) {
712
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
713
+ }
714
+ }
715
+ if (this.configuration && this.configuration.apiKey) {
716
+ headerParameters["x-guest-token"] = await this.configuration.apiKey("x-guest-token"); // GuestToken authentication
717
+ }
718
+ if (this.configuration && this.configuration.apiKey) {
719
+ headerParameters["Sec-Ch-Ua"] = await this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
720
+ }
721
+ if (this.configuration && this.configuration.apiKey) {
722
+ headerParameters["x-client-transaction-id"] = await this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
723
+ }
724
+ if (this.configuration && this.configuration.apiKey) {
725
+ headerParameters["x-twitter-active-user"] = await this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
726
+ }
727
+ if (this.configuration && this.configuration.apiKey) {
728
+ headerParameters["user-agent"] = await this.configuration.apiKey("user-agent"); // UserAgent authentication
729
+ }
730
+ if (this.configuration && this.configuration.apiKey) {
731
+ headerParameters["Accept-Language"] = await this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
732
+ }
733
+ if (this.configuration && this.configuration.apiKey) {
734
+ headerParameters["Sec-Fetch-Site"] = await this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
735
+ }
736
+ if (this.configuration && this.configuration.apiKey) {
737
+ headerParameters["x-twitter-auth-type"] = await this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
738
+ }
739
+ if (this.configuration && this.configuration.apiKey) {
740
+ headerParameters["Sec-Ch-Ua-Mobile"] = await this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
741
+ }
742
+ if (this.configuration && this.configuration.apiKey) {
743
+ headerParameters["Accept-Encoding"] = await this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
744
+ }
745
+ let urlPath = `/graphql/{pathQueryId}/FavoriteTweet`;
746
+ urlPath = urlPath.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters['pathQueryId'])));
747
+ return {
748
+ path: urlPath,
749
+ method: 'POST',
750
+ headers: headerParameters,
751
+ query: queryParameters,
752
+ body: (0, index_1.PostFavoriteTweetRequestToJSON)(requestParameters['postFavoriteTweetRequest']),
753
+ };
754
+ }
755
+ /**
756
+ * favorite Tweet
757
+ */
758
+ async postFavoriteTweetRaw(requestParameters, initOverrides) {
759
+ const requestOptions = await this.postFavoriteTweetRequestOpts(requestParameters);
760
+ const response = await this.request(requestOptions, initOverrides);
761
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.FavoriteTweetResponseFromJSON)(jsonValue));
762
+ }
763
+ /**
764
+ * favorite Tweet
765
+ */
766
+ async postFavoriteTweet(requestParameters, initOverrides) {
767
+ const response = await this.postFavoriteTweetRaw(requestParameters, initOverrides);
768
+ return await response.value();
769
+ }
770
+ /**
771
+ * Creates request options for postUnfavoriteTweet without sending the request
772
+ */
773
+ async postUnfavoriteTweetRequestOpts(requestParameters) {
774
+ if (requestParameters['pathQueryId'] == null) {
775
+ throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postUnfavoriteTweet().');
776
+ }
777
+ if (requestParameters['postUnfavoriteTweetRequest'] == null) {
778
+ throw new runtime.RequiredError('postUnfavoriteTweetRequest', 'Required parameter "postUnfavoriteTweetRequest" was null or undefined when calling postUnfavoriteTweet().');
779
+ }
780
+ const queryParameters = {};
781
+ const headerParameters = {};
782
+ headerParameters['Content-Type'] = 'application/json';
783
+ if (this.configuration && this.configuration.apiKey) {
784
+ headerParameters["Accept"] = await this.configuration.apiKey("Accept"); // Accept authentication
785
+ }
786
+ if (this.configuration && this.configuration.apiKey) {
787
+ headerParameters["x-twitter-client-language"] = await this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
788
+ }
789
+ if (this.configuration && this.configuration.apiKey) {
790
+ headerParameters["Priority"] = await this.configuration.apiKey("Priority"); // Priority authentication
791
+ }
792
+ if (this.configuration && this.configuration.apiKey) {
793
+ headerParameters["Referer"] = await this.configuration.apiKey("Referer"); // Referer authentication
794
+ }
795
+ if (this.configuration && this.configuration.apiKey) {
796
+ headerParameters["Sec-Fetch-Dest"] = await this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
797
+ }
798
+ if (this.configuration && this.configuration.apiKey) {
799
+ headerParameters["Sec-Ch-Ua-Platform"] = await this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
800
+ }
801
+ if (this.configuration && this.configuration.apiKey) {
802
+ headerParameters["Sec-Fetch-Mode"] = await this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
803
+ }
804
+ if (this.configuration && this.configuration.apiKey) {
805
+ headerParameters["x-csrf-token"] = await this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
806
+ }
807
+ if (this.configuration && this.configuration.apiKey) {
808
+ headerParameters["x-client-uuid"] = await this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
809
+ }
810
+ if (this.configuration && this.configuration.accessToken) {
811
+ const token = this.configuration.accessToken;
812
+ const tokenString = await token("BearerAuth", []);
813
+ if (tokenString) {
814
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
815
+ }
816
+ }
817
+ if (this.configuration && this.configuration.apiKey) {
818
+ headerParameters["x-guest-token"] = await this.configuration.apiKey("x-guest-token"); // GuestToken authentication
819
+ }
820
+ if (this.configuration && this.configuration.apiKey) {
821
+ headerParameters["Sec-Ch-Ua"] = await this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
822
+ }
823
+ if (this.configuration && this.configuration.apiKey) {
824
+ headerParameters["x-client-transaction-id"] = await this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
825
+ }
826
+ if (this.configuration && this.configuration.apiKey) {
827
+ headerParameters["x-twitter-active-user"] = await this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
828
+ }
829
+ if (this.configuration && this.configuration.apiKey) {
830
+ headerParameters["user-agent"] = await this.configuration.apiKey("user-agent"); // UserAgent authentication
831
+ }
832
+ if (this.configuration && this.configuration.apiKey) {
833
+ headerParameters["Accept-Language"] = await this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
834
+ }
835
+ if (this.configuration && this.configuration.apiKey) {
836
+ headerParameters["Sec-Fetch-Site"] = await this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
837
+ }
838
+ if (this.configuration && this.configuration.apiKey) {
839
+ headerParameters["x-twitter-auth-type"] = await this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
840
+ }
841
+ if (this.configuration && this.configuration.apiKey) {
842
+ headerParameters["Sec-Ch-Ua-Mobile"] = await this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
843
+ }
844
+ if (this.configuration && this.configuration.apiKey) {
845
+ headerParameters["Accept-Encoding"] = await this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
846
+ }
847
+ let urlPath = `/graphql/{pathQueryId}/UnfavoriteTweet`;
848
+ urlPath = urlPath.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters['pathQueryId'])));
849
+ return {
850
+ path: urlPath,
851
+ method: 'POST',
852
+ headers: headerParameters,
853
+ query: queryParameters,
854
+ body: (0, index_1.PostUnfavoriteTweetRequestToJSON)(requestParameters['postUnfavoriteTweetRequest']),
855
+ };
856
+ }
857
+ /**
858
+ * unfavorite Tweet
859
+ */
860
+ async postUnfavoriteTweetRaw(requestParameters, initOverrides) {
861
+ const requestOptions = await this.postUnfavoriteTweetRequestOpts(requestParameters);
862
+ const response = await this.request(requestOptions, initOverrides);
863
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UnfavoriteTweetResponseFromJSON)(jsonValue));
864
+ }
865
+ /**
866
+ * unfavorite Tweet
867
+ */
868
+ async postUnfavoriteTweet(requestParameters, initOverrides) {
869
+ const response = await this.postUnfavoriteTweetRaw(requestParameters, initOverrides);
870
+ return await response.value();
871
+ }
872
+ }
873
+ exports.PostApi = PostApi;
874
+ //# sourceMappingURL=PostApi.js.map