twitter-openapi-typescript-generated 0.0.12 → 0.0.14

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 (831) hide show
  1. package/.openapi-generator/FILES +14 -0
  2. package/README.md +2 -2
  3. package/package.json +2 -3
  4. package/src/models/BirdwatchEntity.ts +91 -0
  5. package/src/models/BirdwatchEntityRef.ts +102 -0
  6. package/src/models/BirdwatchPivot.ts +165 -0
  7. package/src/models/BirdwatchPivotFooter.ts +82 -0
  8. package/src/models/BirdwatchPivotNote.ts +66 -0
  9. package/src/models/BirdwatchPivotSubtitle.ts +82 -0
  10. package/src/models/ContentItemType.ts +2 -1
  11. package/src/models/ExtMediaAvailability.ts +10 -1
  12. package/src/models/ItemContentUnion.ts +12 -1
  13. package/src/models/NoteTweet.ts +82 -0
  14. package/src/models/NoteTweetResult.ts +73 -0
  15. package/src/models/NoteTweetResultData.ts +119 -0
  16. package/src/models/NoteTweetResultMedia.ts +73 -0
  17. package/src/models/NoteTweetResultMediaInlineMedia.ts +75 -0
  18. package/src/models/NoteTweetResultRichText.ts +73 -0
  19. package/src/models/NoteTweetResultRichTextTag.ts +95 -0
  20. package/src/models/TimelineCommunity.ts +75 -0
  21. package/src/models/Tweet.ts +36 -0
  22. package/src/models/TypeName.ts +1 -0
  23. package/src/models/index.ts +14 -0
  24. package/tools/openapi-generator-config.yaml +1 -1
  25. package/tools/win/gen.ps1 +2 -2
  26. package/tools/win/replace.py +3 -0
  27. package/twitter-openapi/README.md +2 -0
  28. package/twitter-openapi/dist/compatible/openapi-3.0.yaml +182 -0
  29. package/twitter-openapi/dist/docs/openapi-3.0.yaml +182 -0
  30. package/twitter-openapi/src/openapi/schemas/content.yaml +9 -0
  31. package/twitter-openapi/src/openapi/schemas/tweet.yaml +180 -1
  32. package/twitter-openapi/src/openapi/schemas/typename.yaml +1 -0
  33. package/twitter-openapi/test/python/test_serialize.py +14 -0
  34. package/dist/apis/DefaultApi.d.ts +0 -45
  35. package/dist/apis/DefaultApi.d.ts.map +0 -1
  36. package/dist/apis/DefaultApi.js +0 -315
  37. package/dist/apis/DefaultApi.js.map +0 -1
  38. package/dist/apis/OtherApi.d.ts +0 -27
  39. package/dist/apis/OtherApi.d.ts.map +0 -1
  40. package/dist/apis/OtherApi.js +0 -183
  41. package/dist/apis/OtherApi.js.map +0 -1
  42. package/dist/apis/PostApi.d.ts +0 -91
  43. package/dist/apis/PostApi.d.ts.map +0 -1
  44. package/dist/apis/PostApi.js +0 -741
  45. package/dist/apis/PostApi.js.map +0 -1
  46. package/dist/apis/TweetApi.d.ts +0 -163
  47. package/dist/apis/TweetApi.d.ts.map +0 -1
  48. package/dist/apis/TweetApi.js +0 -1374
  49. package/dist/apis/TweetApi.js.map +0 -1
  50. package/dist/apis/UserApi.d.ts +0 -46
  51. package/dist/apis/UserApi.d.ts.map +0 -1
  52. package/dist/apis/UserApi.js +0 -321
  53. package/dist/apis/UserApi.js.map +0 -1
  54. package/dist/apis/UserListApi.d.ts +0 -84
  55. package/dist/apis/UserListApi.d.ts.map +0 -1
  56. package/dist/apis/UserListApi.js +0 -666
  57. package/dist/apis/UserListApi.js.map +0 -1
  58. package/dist/apis/UsersApi.d.ts +0 -32
  59. package/dist/apis/UsersApi.d.ts.map +0 -1
  60. package/dist/apis/UsersApi.js +0 -198
  61. package/dist/apis/UsersApi.js.map +0 -1
  62. package/dist/apis/V11GetApi.d.ts +0 -61
  63. package/dist/apis/V11GetApi.d.ts.map +0 -1
  64. package/dist/apis/V11GetApi.js +0 -418
  65. package/dist/apis/V11GetApi.js.map +0 -1
  66. package/dist/apis/V11PostApi.d.ts +0 -66
  67. package/dist/apis/V11PostApi.d.ts.map +0 -1
  68. package/dist/apis/V11PostApi.js +0 -472
  69. package/dist/apis/V11PostApi.js.map +0 -1
  70. package/dist/apis/V20GetApi.d.ts +0 -65
  71. package/dist/apis/V20GetApi.d.ts.map +0 -1
  72. package/dist/apis/V20GetApi.js +0 -402
  73. package/dist/apis/V20GetApi.js.map +0 -1
  74. package/dist/apis/index.d.ts +0 -11
  75. package/dist/apis/index.d.ts.map +0 -1
  76. package/dist/apis/index.js +0 -29
  77. package/dist/apis/index.js.map +0 -1
  78. package/dist/index.d.ts +0 -4
  79. package/dist/index.d.ts.map +0 -1
  80. package/dist/index.js +0 -22
  81. package/dist/index.js.map +0 -1
  82. package/dist/models/AdditionalMediaInfo.d.ts +0 -32
  83. package/dist/models/AdditionalMediaInfo.d.ts.map +0 -1
  84. package/dist/models/AdditionalMediaInfo.js +0 -51
  85. package/dist/models/AdditionalMediaInfo.js.map +0 -1
  86. package/dist/models/BookmarksResponse.d.ts +0 -33
  87. package/dist/models/BookmarksResponse.d.ts.map +0 -1
  88. package/dist/models/BookmarksResponse.js +0 -52
  89. package/dist/models/BookmarksResponse.js.map +0 -1
  90. package/dist/models/BookmarksResponseData.d.ts +0 -33
  91. package/dist/models/BookmarksResponseData.d.ts.map +0 -1
  92. package/dist/models/BookmarksResponseData.js +0 -52
  93. package/dist/models/BookmarksResponseData.js.map +0 -1
  94. package/dist/models/BookmarksTimeline.d.ts +0 -33
  95. package/dist/models/BookmarksTimeline.d.ts.map +0 -1
  96. package/dist/models/BookmarksTimeline.js +0 -52
  97. package/dist/models/BookmarksTimeline.js.map +0 -1
  98. package/dist/models/Callback.d.ts +0 -32
  99. package/dist/models/Callback.d.ts.map +0 -1
  100. package/dist/models/Callback.js +0 -51
  101. package/dist/models/Callback.js.map +0 -1
  102. package/dist/models/ClientEventInfo.d.ts +0 -46
  103. package/dist/models/ClientEventInfo.d.ts.map +0 -1
  104. package/dist/models/ClientEventInfo.js +0 -55
  105. package/dist/models/ClientEventInfo.js.map +0 -1
  106. package/dist/models/CommunitiesActions.d.ts +0 -32
  107. package/dist/models/CommunitiesActions.d.ts.map +0 -1
  108. package/dist/models/CommunitiesActions.js +0 -51
  109. package/dist/models/CommunitiesActions.js.map +0 -1
  110. package/dist/models/ContentEntryType.d.ts +0 -25
  111. package/dist/models/ContentEntryType.d.ts.map +0 -1
  112. package/dist/models/ContentEntryType.js +0 -38
  113. package/dist/models/ContentEntryType.js.map +0 -1
  114. package/dist/models/ContentItemType.d.ts +0 -27
  115. package/dist/models/ContentItemType.d.ts.map +0 -1
  116. package/dist/models/ContentItemType.js +0 -40
  117. package/dist/models/ContentItemType.js.map +0 -1
  118. package/dist/models/ContentUnion.d.ts +0 -30
  119. package/dist/models/ContentUnion.d.ts.map +0 -1
  120. package/dist/models/ContentUnion.js +0 -70
  121. package/dist/models/ContentUnion.js.map +0 -1
  122. package/dist/models/CoverCta.d.ts +0 -66
  123. package/dist/models/CoverCta.d.ts.map +0 -1
  124. package/dist/models/CoverCta.js +0 -71
  125. package/dist/models/CoverCta.js.map +0 -1
  126. package/dist/models/CreateRetweet.d.ts +0 -33
  127. package/dist/models/CreateRetweet.d.ts.map +0 -1
  128. package/dist/models/CreateRetweet.js +0 -52
  129. package/dist/models/CreateRetweet.js.map +0 -1
  130. package/dist/models/CreateRetweetResponse.d.ts +0 -33
  131. package/dist/models/CreateRetweetResponse.d.ts.map +0 -1
  132. package/dist/models/CreateRetweetResponse.js +0 -52
  133. package/dist/models/CreateRetweetResponse.js.map +0 -1
  134. package/dist/models/CreateRetweetResponseData.d.ts +0 -33
  135. package/dist/models/CreateRetweetResponseData.d.ts.map +0 -1
  136. package/dist/models/CreateRetweetResponseData.js +0 -52
  137. package/dist/models/CreateRetweetResponseData.js.map +0 -1
  138. package/dist/models/CreateRetweetResponseResult.d.ts +0 -33
  139. package/dist/models/CreateRetweetResponseResult.d.ts.map +0 -1
  140. package/dist/models/CreateRetweetResponseResult.js +0 -52
  141. package/dist/models/CreateRetweetResponseResult.js.map +0 -1
  142. package/dist/models/CreateTweet.d.ts +0 -33
  143. package/dist/models/CreateTweet.d.ts.map +0 -1
  144. package/dist/models/CreateTweet.js +0 -52
  145. package/dist/models/CreateTweet.js.map +0 -1
  146. package/dist/models/CreateTweetResponse.d.ts +0 -33
  147. package/dist/models/CreateTweetResponse.d.ts.map +0 -1
  148. package/dist/models/CreateTweetResponse.js +0 -52
  149. package/dist/models/CreateTweetResponse.js.map +0 -1
  150. package/dist/models/CreateTweetResponseData.d.ts +0 -33
  151. package/dist/models/CreateTweetResponseData.d.ts.map +0 -1
  152. package/dist/models/CreateTweetResponseData.js +0 -52
  153. package/dist/models/CreateTweetResponseData.js.map +0 -1
  154. package/dist/models/CreateTweetResponseResult.d.ts +0 -33
  155. package/dist/models/CreateTweetResponseResult.d.ts.map +0 -1
  156. package/dist/models/CreateTweetResponseResult.js +0 -52
  157. package/dist/models/CreateTweetResponseResult.js.map +0 -1
  158. package/dist/models/CtaClientEventInfo.d.ts +0 -39
  159. package/dist/models/CtaClientEventInfo.d.ts.map +0 -1
  160. package/dist/models/CtaClientEventInfo.js +0 -57
  161. package/dist/models/CtaClientEventInfo.js.map +0 -1
  162. package/dist/models/CursorType.d.ts +0 -27
  163. package/dist/models/CursorType.d.ts.map +0 -1
  164. package/dist/models/CursorType.js +0 -40
  165. package/dist/models/CursorType.js.map +0 -1
  166. package/dist/models/DeleteRetweet.d.ts +0 -33
  167. package/dist/models/DeleteRetweet.d.ts.map +0 -1
  168. package/dist/models/DeleteRetweet.js +0 -52
  169. package/dist/models/DeleteRetweet.js.map +0 -1
  170. package/dist/models/DeleteRetweetResponse.d.ts +0 -33
  171. package/dist/models/DeleteRetweetResponse.d.ts.map +0 -1
  172. package/dist/models/DeleteRetweetResponse.js +0 -52
  173. package/dist/models/DeleteRetweetResponse.js.map +0 -1
  174. package/dist/models/DeleteRetweetResponseData.d.ts +0 -33
  175. package/dist/models/DeleteRetweetResponseData.d.ts.map +0 -1
  176. package/dist/models/DeleteRetweetResponseData.js +0 -52
  177. package/dist/models/DeleteRetweetResponseData.js.map +0 -1
  178. package/dist/models/DeleteRetweetResponseResult.d.ts +0 -33
  179. package/dist/models/DeleteRetweetResponseResult.d.ts.map +0 -1
  180. package/dist/models/DeleteRetweetResponseResult.js +0 -52
  181. package/dist/models/DeleteRetweetResponseResult.js.map +0 -1
  182. package/dist/models/DeleteTweetResponse.d.ts +0 -33
  183. package/dist/models/DeleteTweetResponse.d.ts.map +0 -1
  184. package/dist/models/DeleteTweetResponse.js +0 -52
  185. package/dist/models/DeleteTweetResponse.js.map +0 -1
  186. package/dist/models/DeleteTweetResponseData.d.ts +0 -33
  187. package/dist/models/DeleteTweetResponseData.d.ts.map +0 -1
  188. package/dist/models/DeleteTweetResponseData.js +0 -52
  189. package/dist/models/DeleteTweetResponseData.js.map +0 -1
  190. package/dist/models/DeleteTweetResponseResult.d.ts +0 -32
  191. package/dist/models/DeleteTweetResponseResult.d.ts.map +0 -1
  192. package/dist/models/DeleteTweetResponseResult.js +0 -51
  193. package/dist/models/DeleteTweetResponseResult.js.map +0 -1
  194. package/dist/models/Entities.d.ts +0 -64
  195. package/dist/models/Entities.d.ts.map +0 -1
  196. package/dist/models/Entities.js +0 -65
  197. package/dist/models/Entities.js.map +0 -1
  198. package/dist/models/ErrorExtensions.d.ts +0 -63
  199. package/dist/models/ErrorExtensions.d.ts.map +0 -1
  200. package/dist/models/ErrorExtensions.js +0 -67
  201. package/dist/models/ErrorExtensions.js.map +0 -1
  202. package/dist/models/ErrorResponse.d.ts +0 -33
  203. package/dist/models/ErrorResponse.d.ts.map +0 -1
  204. package/dist/models/ErrorResponse.js +0 -52
  205. package/dist/models/ErrorResponse.js.map +0 -1
  206. package/dist/models/Errors.d.ts +0 -32
  207. package/dist/models/Errors.d.ts.map +0 -1
  208. package/dist/models/Errors.js +0 -51
  209. package/dist/models/Errors.js.map +0 -1
  210. package/dist/models/ExtMediaAvailability.d.ts +0 -39
  211. package/dist/models/ExtMediaAvailability.d.ts.map +0 -1
  212. package/dist/models/ExtMediaAvailability.js +0 -57
  213. package/dist/models/ExtMediaAvailability.js.map +0 -1
  214. package/dist/models/ExtendedEntities.d.ts +0 -33
  215. package/dist/models/ExtendedEntities.d.ts.map +0 -1
  216. package/dist/models/ExtendedEntities.js +0 -52
  217. package/dist/models/ExtendedEntities.js.map +0 -1
  218. package/dist/models/Extensions.d.ts +0 -57
  219. package/dist/models/Extensions.d.ts.map +0 -1
  220. package/dist/models/Extensions.js +0 -64
  221. package/dist/models/Extensions.js.map +0 -1
  222. package/dist/models/FavoriteTweet.d.ts +0 -32
  223. package/dist/models/FavoriteTweet.d.ts.map +0 -1
  224. package/dist/models/FavoriteTweet.js +0 -51
  225. package/dist/models/FavoriteTweet.js.map +0 -1
  226. package/dist/models/FavoriteTweetResponseData.d.ts +0 -33
  227. package/dist/models/FavoriteTweetResponseData.d.ts.map +0 -1
  228. package/dist/models/FavoriteTweetResponseData.js +0 -52
  229. package/dist/models/FavoriteTweetResponseData.js.map +0 -1
  230. package/dist/models/FollowResponse.d.ts +0 -33
  231. package/dist/models/FollowResponse.d.ts.map +0 -1
  232. package/dist/models/FollowResponse.js +0 -52
  233. package/dist/models/FollowResponse.js.map +0 -1
  234. package/dist/models/FollowResponseData.d.ts +0 -33
  235. package/dist/models/FollowResponseData.d.ts.map +0 -1
  236. package/dist/models/FollowResponseData.js +0 -52
  237. package/dist/models/FollowResponseData.js.map +0 -1
  238. package/dist/models/FollowResponseResult.d.ts +0 -40
  239. package/dist/models/FollowResponseResult.d.ts.map +0 -1
  240. package/dist/models/FollowResponseResult.js +0 -56
  241. package/dist/models/FollowResponseResult.js.map +0 -1
  242. package/dist/models/FollowResponseUser.d.ts +0 -33
  243. package/dist/models/FollowResponseUser.d.ts.map +0 -1
  244. package/dist/models/FollowResponseUser.js +0 -52
  245. package/dist/models/FollowResponseUser.js.map +0 -1
  246. package/dist/models/FollowTimeline.d.ts +0 -33
  247. package/dist/models/FollowTimeline.d.ts.map +0 -1
  248. package/dist/models/FollowTimeline.js +0 -52
  249. package/dist/models/FollowTimeline.js.map +0 -1
  250. package/dist/models/GetBookmarks200Response.d.ts +0 -23
  251. package/dist/models/GetBookmarks200Response.d.ts.map +0 -1
  252. package/dist/models/GetBookmarks200Response.js +0 -57
  253. package/dist/models/GetBookmarks200Response.js.map +0 -1
  254. package/dist/models/GetFavoriters200Response.d.ts +0 -23
  255. package/dist/models/GetFavoriters200Response.d.ts.map +0 -1
  256. package/dist/models/GetFavoriters200Response.js +0 -57
  257. package/dist/models/GetFavoriters200Response.js.map +0 -1
  258. package/dist/models/GetFollowers200Response.d.ts +0 -23
  259. package/dist/models/GetFollowers200Response.d.ts.map +0 -1
  260. package/dist/models/GetFollowers200Response.js +0 -57
  261. package/dist/models/GetFollowers200Response.js.map +0 -1
  262. package/dist/models/GetHomeLatestTimeline200Response.d.ts +0 -23
  263. package/dist/models/GetHomeLatestTimeline200Response.d.ts.map +0 -1
  264. package/dist/models/GetHomeLatestTimeline200Response.js +0 -57
  265. package/dist/models/GetHomeLatestTimeline200Response.js.map +0 -1
  266. package/dist/models/GetLikes200Response.d.ts +0 -23
  267. package/dist/models/GetLikes200Response.d.ts.map +0 -1
  268. package/dist/models/GetLikes200Response.js +0 -57
  269. package/dist/models/GetLikes200Response.js.map +0 -1
  270. package/dist/models/GetListLatestTweetsTimeline200Response.d.ts +0 -23
  271. package/dist/models/GetListLatestTweetsTimeline200Response.d.ts.map +0 -1
  272. package/dist/models/GetListLatestTweetsTimeline200Response.js +0 -57
  273. package/dist/models/GetListLatestTweetsTimeline200Response.js.map +0 -1
  274. package/dist/models/GetProfileSpotlightsQuery200Response.d.ts +0 -23
  275. package/dist/models/GetProfileSpotlightsQuery200Response.d.ts.map +0 -1
  276. package/dist/models/GetProfileSpotlightsQuery200Response.js +0 -57
  277. package/dist/models/GetProfileSpotlightsQuery200Response.js.map +0 -1
  278. package/dist/models/GetRetweeters200Response.d.ts +0 -23
  279. package/dist/models/GetRetweeters200Response.d.ts.map +0 -1
  280. package/dist/models/GetRetweeters200Response.js +0 -57
  281. package/dist/models/GetRetweeters200Response.js.map +0 -1
  282. package/dist/models/GetSearchTimeline200Response.d.ts +0 -23
  283. package/dist/models/GetSearchTimeline200Response.d.ts.map +0 -1
  284. package/dist/models/GetSearchTimeline200Response.js +0 -57
  285. package/dist/models/GetSearchTimeline200Response.js.map +0 -1
  286. package/dist/models/GetTweetDetail200Response.d.ts +0 -23
  287. package/dist/models/GetTweetDetail200Response.d.ts.map +0 -1
  288. package/dist/models/GetTweetDetail200Response.js +0 -57
  289. package/dist/models/GetTweetDetail200Response.js.map +0 -1
  290. package/dist/models/GetTweetResultByRestId200Response.d.ts +0 -23
  291. package/dist/models/GetTweetResultByRestId200Response.d.ts.map +0 -1
  292. package/dist/models/GetTweetResultByRestId200Response.js +0 -57
  293. package/dist/models/GetTweetResultByRestId200Response.js.map +0 -1
  294. package/dist/models/GetUserByRestId200Response.d.ts +0 -23
  295. package/dist/models/GetUserByRestId200Response.d.ts.map +0 -1
  296. package/dist/models/GetUserByRestId200Response.js +0 -57
  297. package/dist/models/GetUserByRestId200Response.js.map +0 -1
  298. package/dist/models/GetUserHighlightsTweets200Response.d.ts +0 -23
  299. package/dist/models/GetUserHighlightsTweets200Response.d.ts.map +0 -1
  300. package/dist/models/GetUserHighlightsTweets200Response.js +0 -57
  301. package/dist/models/GetUserHighlightsTweets200Response.js.map +0 -1
  302. package/dist/models/GetUsersByRestIds200Response.d.ts +0 -23
  303. package/dist/models/GetUsersByRestIds200Response.d.ts.map +0 -1
  304. package/dist/models/GetUsersByRestIds200Response.js +0 -57
  305. package/dist/models/GetUsersByRestIds200Response.js.map +0 -1
  306. package/dist/models/HomeTimelineHome.d.ts +0 -33
  307. package/dist/models/HomeTimelineHome.d.ts.map +0 -1
  308. package/dist/models/HomeTimelineHome.js +0 -52
  309. package/dist/models/HomeTimelineHome.js.map +0 -1
  310. package/dist/models/HomeTimelineResponseData.d.ts +0 -33
  311. package/dist/models/HomeTimelineResponseData.d.ts.map +0 -1
  312. package/dist/models/HomeTimelineResponseData.js +0 -52
  313. package/dist/models/HomeTimelineResponseData.js.map +0 -1
  314. package/dist/models/InstructionType.d.ts +0 -30
  315. package/dist/models/InstructionType.d.ts.map +0 -1
  316. package/dist/models/InstructionType.js +0 -43
  317. package/dist/models/InstructionType.js.map +0 -1
  318. package/dist/models/InstructionUnion.d.ts +0 -45
  319. package/dist/models/InstructionUnion.d.ts.map +0 -1
  320. package/dist/models/InstructionUnion.js +0 -95
  321. package/dist/models/InstructionUnion.js.map +0 -1
  322. package/dist/models/ItemContentUnion.d.ts +0 -36
  323. package/dist/models/ItemContentUnion.d.ts.map +0 -1
  324. package/dist/models/ItemContentUnion.js +0 -80
  325. package/dist/models/ItemContentUnion.js.map +0 -1
  326. package/dist/models/ItemResult.d.ts +0 -40
  327. package/dist/models/ItemResult.d.ts.map +0 -1
  328. package/dist/models/ItemResult.js +0 -55
  329. package/dist/models/ItemResult.js.map +0 -1
  330. package/dist/models/ListLatestTweetsTimelineResponse.d.ts +0 -33
  331. package/dist/models/ListLatestTweetsTimelineResponse.d.ts.map +0 -1
  332. package/dist/models/ListLatestTweetsTimelineResponse.js +0 -52
  333. package/dist/models/ListLatestTweetsTimelineResponse.js.map +0 -1
  334. package/dist/models/ListTweetsTimeline.d.ts +0 -33
  335. package/dist/models/ListTweetsTimeline.d.ts.map +0 -1
  336. package/dist/models/ListTweetsTimeline.js +0 -52
  337. package/dist/models/ListTweetsTimeline.js.map +0 -1
  338. package/dist/models/ListTweetsTimelineData.d.ts +0 -33
  339. package/dist/models/ListTweetsTimelineData.d.ts.map +0 -1
  340. package/dist/models/ListTweetsTimelineData.js +0 -52
  341. package/dist/models/ListTweetsTimelineData.js.map +0 -1
  342. package/dist/models/ListTweetsTimelineList.d.ts +0 -33
  343. package/dist/models/ListTweetsTimelineList.d.ts.map +0 -1
  344. package/dist/models/ListTweetsTimelineList.js +0 -52
  345. package/dist/models/ListTweetsTimelineList.js.map +0 -1
  346. package/dist/models/Location.d.ts +0 -38
  347. package/dist/models/Location.d.ts.map +0 -1
  348. package/dist/models/Location.js +0 -54
  349. package/dist/models/Location.js.map +0 -1
  350. package/dist/models/Media.d.ts +0 -97
  351. package/dist/models/Media.d.ts.map +0 -1
  352. package/dist/models/Media.js +0 -88
  353. package/dist/models/Media.js.map +0 -1
  354. package/dist/models/MediaExtended.d.ts +0 -131
  355. package/dist/models/MediaExtended.d.ts.map +0 -1
  356. package/dist/models/MediaExtended.js +0 -103
  357. package/dist/models/MediaExtended.js.map +0 -1
  358. package/dist/models/MediaOriginalInfo.d.ts +0 -45
  359. package/dist/models/MediaOriginalInfo.d.ts.map +0 -1
  360. package/dist/models/MediaOriginalInfo.js +0 -58
  361. package/dist/models/MediaOriginalInfo.js.map +0 -1
  362. package/dist/models/MediaOriginalInfoFocusRect.d.ts +0 -50
  363. package/dist/models/MediaOriginalInfoFocusRect.d.ts.map +0 -1
  364. package/dist/models/MediaOriginalInfoFocusRect.js +0 -60
  365. package/dist/models/MediaOriginalInfoFocusRect.js.map +0 -1
  366. package/dist/models/MediaSize.d.ts +0 -52
  367. package/dist/models/MediaSize.d.ts.map +0 -1
  368. package/dist/models/MediaSize.js +0 -64
  369. package/dist/models/MediaSize.js.map +0 -1
  370. package/dist/models/MediaSizes.d.ts +0 -51
  371. package/dist/models/MediaSizes.d.ts.map +0 -1
  372. package/dist/models/MediaSizes.js +0 -61
  373. package/dist/models/MediaSizes.js.map +0 -1
  374. package/dist/models/MediaStats.d.ts +0 -32
  375. package/dist/models/MediaStats.d.ts.map +0 -1
  376. package/dist/models/MediaStats.js +0 -51
  377. package/dist/models/MediaStats.js.map +0 -1
  378. package/dist/models/MediaVideoInfo.d.ts +0 -45
  379. package/dist/models/MediaVideoInfo.d.ts.map +0 -1
  380. package/dist/models/MediaVideoInfo.js +0 -58
  381. package/dist/models/MediaVideoInfo.js.map +0 -1
  382. package/dist/models/MediaVideoInfoVariant.d.ts +0 -44
  383. package/dist/models/MediaVideoInfoVariant.d.ts.map +0 -1
  384. package/dist/models/MediaVideoInfoVariant.js +0 -57
  385. package/dist/models/MediaVideoInfoVariant.js.map +0 -1
  386. package/dist/models/ModelError.d.ts +0 -89
  387. package/dist/models/ModelError.d.ts.map +0 -1
  388. package/dist/models/ModelError.js +0 -81
  389. package/dist/models/ModelError.js.map +0 -1
  390. package/dist/models/ModuleEntry.d.ts +0 -40
  391. package/dist/models/ModuleEntry.d.ts.map +0 -1
  392. package/dist/models/ModuleEntry.js +0 -56
  393. package/dist/models/ModuleEntry.js.map +0 -1
  394. package/dist/models/ModuleItem.d.ts +0 -39
  395. package/dist/models/ModuleItem.d.ts.map +0 -1
  396. package/dist/models/ModuleItem.js +0 -55
  397. package/dist/models/ModuleItem.js.map +0 -1
  398. package/dist/models/OneFactorLoginEligibility.d.ts +0 -32
  399. package/dist/models/OneFactorLoginEligibility.d.ts.map +0 -1
  400. package/dist/models/OneFactorLoginEligibility.js +0 -51
  401. package/dist/models/OneFactorLoginEligibility.js.map +0 -1
  402. package/dist/models/Other200Response.d.ts +0 -22
  403. package/dist/models/Other200Response.d.ts.map +0 -1
  404. package/dist/models/Other200Response.js +0 -53
  405. package/dist/models/Other200Response.js.map +0 -1
  406. package/dist/models/OtherResponse.d.ts +0 -33
  407. package/dist/models/OtherResponse.d.ts.map +0 -1
  408. package/dist/models/OtherResponse.js +0 -52
  409. package/dist/models/OtherResponse.js.map +0 -1
  410. package/dist/models/PostCreateRetweet200Response.d.ts +0 -23
  411. package/dist/models/PostCreateRetweet200Response.d.ts.map +0 -1
  412. package/dist/models/PostCreateRetweet200Response.js +0 -57
  413. package/dist/models/PostCreateRetweet200Response.js.map +0 -1
  414. package/dist/models/PostCreateRetweetRequest.d.ts +0 -39
  415. package/dist/models/PostCreateRetweetRequest.d.ts.map +0 -1
  416. package/dist/models/PostCreateRetweetRequest.js +0 -55
  417. package/dist/models/PostCreateRetweetRequest.js.map +0 -1
  418. package/dist/models/PostCreateRetweetRequestVariables.d.ts +0 -38
  419. package/dist/models/PostCreateRetweetRequestVariables.d.ts.map +0 -1
  420. package/dist/models/PostCreateRetweetRequestVariables.js +0 -54
  421. package/dist/models/PostCreateRetweetRequestVariables.js.map +0 -1
  422. package/dist/models/PostCreateTweet200Response.d.ts +0 -23
  423. package/dist/models/PostCreateTweet200Response.d.ts.map +0 -1
  424. package/dist/models/PostCreateTweet200Response.js +0 -57
  425. package/dist/models/PostCreateTweet200Response.js.map +0 -1
  426. package/dist/models/PostCreateTweetRequest.d.ts +0 -46
  427. package/dist/models/PostCreateTweetRequest.d.ts.map +0 -1
  428. package/dist/models/PostCreateTweetRequest.js +0 -59
  429. package/dist/models/PostCreateTweetRequest.js.map +0 -1
  430. package/dist/models/PostCreateTweetRequestFeatures.d.ts +0 -134
  431. package/dist/models/PostCreateTweetRequestFeatures.d.ts.map +0 -1
  432. package/dist/models/PostCreateTweetRequestFeatures.js +0 -102
  433. package/dist/models/PostCreateTweetRequestFeatures.js.map +0 -1
  434. package/dist/models/PostCreateTweetRequestVariables.d.ts +0 -51
  435. package/dist/models/PostCreateTweetRequestVariables.d.ts.map +0 -1
  436. package/dist/models/PostCreateTweetRequestVariables.js +0 -61
  437. package/dist/models/PostCreateTweetRequestVariables.js.map +0 -1
  438. package/dist/models/PostCreateTweetRequestVariablesMedia.d.ts +0 -39
  439. package/dist/models/PostCreateTweetRequestVariablesMedia.d.ts.map +0 -1
  440. package/dist/models/PostCreateTweetRequestVariablesMedia.js +0 -55
  441. package/dist/models/PostCreateTweetRequestVariablesMedia.js.map +0 -1
  442. package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.d.ts +0 -38
  443. package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.d.ts.map +0 -1
  444. package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.js +0 -54
  445. package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.js.map +0 -1
  446. package/dist/models/PostDeleteRetweet200Response.d.ts +0 -23
  447. package/dist/models/PostDeleteRetweet200Response.d.ts.map +0 -1
  448. package/dist/models/PostDeleteRetweet200Response.js +0 -57
  449. package/dist/models/PostDeleteRetweet200Response.js.map +0 -1
  450. package/dist/models/PostDeleteRetweetRequest.d.ts +0 -39
  451. package/dist/models/PostDeleteRetweetRequest.d.ts.map +0 -1
  452. package/dist/models/PostDeleteRetweetRequest.js +0 -55
  453. package/dist/models/PostDeleteRetweetRequest.js.map +0 -1
  454. package/dist/models/PostDeleteRetweetRequestVariables.d.ts +0 -38
  455. package/dist/models/PostDeleteRetweetRequestVariables.d.ts.map +0 -1
  456. package/dist/models/PostDeleteRetweetRequestVariables.js +0 -54
  457. package/dist/models/PostDeleteRetweetRequestVariables.js.map +0 -1
  458. package/dist/models/PostDeleteTweet200Response.d.ts +0 -23
  459. package/dist/models/PostDeleteTweet200Response.d.ts.map +0 -1
  460. package/dist/models/PostDeleteTweet200Response.js +0 -57
  461. package/dist/models/PostDeleteTweet200Response.js.map +0 -1
  462. package/dist/models/PostDeleteTweetRequest.d.ts +0 -39
  463. package/dist/models/PostDeleteTweetRequest.d.ts.map +0 -1
  464. package/dist/models/PostDeleteTweetRequest.js +0 -55
  465. package/dist/models/PostDeleteTweetRequest.js.map +0 -1
  466. package/dist/models/PostFavoriteTweet200Response.d.ts +0 -23
  467. package/dist/models/PostFavoriteTweet200Response.d.ts.map +0 -1
  468. package/dist/models/PostFavoriteTweet200Response.js +0 -57
  469. package/dist/models/PostFavoriteTweet200Response.js.map +0 -1
  470. package/dist/models/PostFavoriteTweetRequest.d.ts +0 -39
  471. package/dist/models/PostFavoriteTweetRequest.d.ts.map +0 -1
  472. package/dist/models/PostFavoriteTweetRequest.js +0 -55
  473. package/dist/models/PostFavoriteTweetRequest.js.map +0 -1
  474. package/dist/models/PostUnfavoriteTweet200Response.d.ts +0 -23
  475. package/dist/models/PostUnfavoriteTweet200Response.d.ts.map +0 -1
  476. package/dist/models/PostUnfavoriteTweet200Response.js +0 -57
  477. package/dist/models/PostUnfavoriteTweet200Response.js.map +0 -1
  478. package/dist/models/PostUnfavoriteTweetRequest.d.ts +0 -39
  479. package/dist/models/PostUnfavoriteTweetRequest.d.ts.map +0 -1
  480. package/dist/models/PostUnfavoriteTweetRequest.js +0 -55
  481. package/dist/models/PostUnfavoriteTweetRequest.js.map +0 -1
  482. package/dist/models/ProfileResponse.d.ts +0 -33
  483. package/dist/models/ProfileResponse.d.ts.map +0 -1
  484. package/dist/models/ProfileResponse.js +0 -52
  485. package/dist/models/ProfileResponse.js.map +0 -1
  486. package/dist/models/ProfileResponseData.d.ts +0 -33
  487. package/dist/models/ProfileResponseData.d.ts.map +0 -1
  488. package/dist/models/ProfileResponseData.js +0 -52
  489. package/dist/models/ProfileResponseData.js.map +0 -1
  490. package/dist/models/Retweet.d.ts +0 -39
  491. package/dist/models/Retweet.d.ts.map +0 -1
  492. package/dist/models/Retweet.js +0 -55
  493. package/dist/models/Retweet.js.map +0 -1
  494. package/dist/models/RetweetLegacy.d.ts +0 -32
  495. package/dist/models/RetweetLegacy.d.ts.map +0 -1
  496. package/dist/models/RetweetLegacy.js +0 -51
  497. package/dist/models/RetweetLegacy.js.map +0 -1
  498. package/dist/models/SearchByRawQuery.d.ts +0 -33
  499. package/dist/models/SearchByRawQuery.d.ts.map +0 -1
  500. package/dist/models/SearchByRawQuery.js +0 -52
  501. package/dist/models/SearchByRawQuery.js.map +0 -1
  502. package/dist/models/SearchTimeline.d.ts +0 -33
  503. package/dist/models/SearchTimeline.d.ts.map +0 -1
  504. package/dist/models/SearchTimeline.js +0 -52
  505. package/dist/models/SearchTimeline.js.map +0 -1
  506. package/dist/models/SearchTimelineData.d.ts +0 -33
  507. package/dist/models/SearchTimelineData.d.ts.map +0 -1
  508. package/dist/models/SearchTimelineData.js +0 -52
  509. package/dist/models/SearchTimelineData.js.map +0 -1
  510. package/dist/models/SearchTimelineResponse.d.ts +0 -33
  511. package/dist/models/SearchTimelineResponse.d.ts.map +0 -1
  512. package/dist/models/SearchTimelineResponse.js +0 -52
  513. package/dist/models/SearchTimelineResponse.js.map +0 -1
  514. package/dist/models/SelfThread.d.ts +0 -32
  515. package/dist/models/SelfThread.d.ts.map +0 -1
  516. package/dist/models/SelfThread.js +0 -51
  517. package/dist/models/SelfThread.js.map +0 -1
  518. package/dist/models/Session.d.ts +0 -120
  519. package/dist/models/Session.d.ts.map +0 -1
  520. package/dist/models/Session.js +0 -99
  521. package/dist/models/Session.js.map +0 -1
  522. package/dist/models/SocialContext.d.ts +0 -44
  523. package/dist/models/SocialContext.d.ts.map +0 -1
  524. package/dist/models/SocialContext.js +0 -55
  525. package/dist/models/SocialContext.js.map +0 -1
  526. package/dist/models/Text.d.ts +0 -39
  527. package/dist/models/Text.d.ts.map +0 -1
  528. package/dist/models/Text.js +0 -55
  529. package/dist/models/Text.js.map +0 -1
  530. package/dist/models/TextEntity.d.ts +0 -45
  531. package/dist/models/TextEntity.d.ts.map +0 -1
  532. package/dist/models/TextEntity.js +0 -58
  533. package/dist/models/TextEntity.js.map +0 -1
  534. package/dist/models/TextEntityRef.d.ts +0 -58
  535. package/dist/models/TextEntityRef.d.ts.map +0 -1
  536. package/dist/models/TextEntityRef.js +0 -69
  537. package/dist/models/TextEntityRef.js.map +0 -1
  538. package/dist/models/Timeline.d.ts +0 -49
  539. package/dist/models/Timeline.d.ts.map +0 -1
  540. package/dist/models/Timeline.js +0 -57
  541. package/dist/models/Timeline.js.map +0 -1
  542. package/dist/models/TimelineAddEntries.d.ts +0 -40
  543. package/dist/models/TimelineAddEntries.d.ts.map +0 -1
  544. package/dist/models/TimelineAddEntries.js +0 -56
  545. package/dist/models/TimelineAddEntries.js.map +0 -1
  546. package/dist/models/TimelineAddEntry.d.ts +0 -45
  547. package/dist/models/TimelineAddEntry.d.ts.map +0 -1
  548. package/dist/models/TimelineAddEntry.js +0 -58
  549. package/dist/models/TimelineAddEntry.js.map +0 -1
  550. package/dist/models/TimelineAddToModule.d.ts +0 -52
  551. package/dist/models/TimelineAddToModule.d.ts.map +0 -1
  552. package/dist/models/TimelineAddToModule.js +0 -62
  553. package/dist/models/TimelineAddToModule.js.map +0 -1
  554. package/dist/models/TimelineClearCache.d.ts +0 -33
  555. package/dist/models/TimelineClearCache.d.ts.map +0 -1
  556. package/dist/models/TimelineClearCache.js +0 -52
  557. package/dist/models/TimelineClearCache.js.map +0 -1
  558. package/dist/models/TimelineCoverBehavior.d.ts +0 -39
  559. package/dist/models/TimelineCoverBehavior.d.ts.map +0 -1
  560. package/dist/models/TimelineCoverBehavior.js +0 -57
  561. package/dist/models/TimelineCoverBehavior.js.map +0 -1
  562. package/dist/models/TimelineHalfCover.d.ts +0 -85
  563. package/dist/models/TimelineHalfCover.d.ts.map +0 -1
  564. package/dist/models/TimelineHalfCover.js +0 -84
  565. package/dist/models/TimelineHalfCover.js.map +0 -1
  566. package/dist/models/TimelineMessagePrompt.d.ts +0 -34
  567. package/dist/models/TimelineMessagePrompt.d.ts.map +0 -1
  568. package/dist/models/TimelineMessagePrompt.js +0 -59
  569. package/dist/models/TimelineMessagePrompt.js.map +0 -1
  570. package/dist/models/TimelinePinEntry.d.ts +0 -40
  571. package/dist/models/TimelinePinEntry.d.ts.map +0 -1
  572. package/dist/models/TimelinePinEntry.js +0 -56
  573. package/dist/models/TimelinePinEntry.js.map +0 -1
  574. package/dist/models/TimelinePrompt.d.ts +0 -34
  575. package/dist/models/TimelinePrompt.d.ts.map +0 -1
  576. package/dist/models/TimelinePrompt.js +0 -59
  577. package/dist/models/TimelinePrompt.js.map +0 -1
  578. package/dist/models/TimelineReplaceEntry.d.ts +0 -46
  579. package/dist/models/TimelineReplaceEntry.d.ts.map +0 -1
  580. package/dist/models/TimelineReplaceEntry.js +0 -59
  581. package/dist/models/TimelineReplaceEntry.js.map +0 -1
  582. package/dist/models/TimelineResponse.d.ts +0 -33
  583. package/dist/models/TimelineResponse.d.ts.map +0 -1
  584. package/dist/models/TimelineResponse.js +0 -52
  585. package/dist/models/TimelineResponse.js.map +0 -1
  586. package/dist/models/TimelineShowAlert.d.ts +0 -101
  587. package/dist/models/TimelineShowAlert.d.ts.map +0 -1
  588. package/dist/models/TimelineShowAlert.js +0 -85
  589. package/dist/models/TimelineShowAlert.js.map +0 -1
  590. package/dist/models/TimelineShowAlertRichText.d.ts +0 -40
  591. package/dist/models/TimelineShowAlertRichText.d.ts.map +0 -1
  592. package/dist/models/TimelineShowAlertRichText.js +0 -53
  593. package/dist/models/TimelineShowAlertRichText.js.map +0 -1
  594. package/dist/models/TimelineShowCover.d.ts +0 -47
  595. package/dist/models/TimelineShowCover.d.ts.map +0 -1
  596. package/dist/models/TimelineShowCover.js +0 -60
  597. package/dist/models/TimelineShowCover.js.map +0 -1
  598. package/dist/models/TimelineTerminateTimeline.d.ts +0 -47
  599. package/dist/models/TimelineTerminateTimeline.d.ts.map +0 -1
  600. package/dist/models/TimelineTerminateTimeline.js +0 -62
  601. package/dist/models/TimelineTerminateTimeline.js.map +0 -1
  602. package/dist/models/TimelineTimelineCursor.d.ts +0 -59
  603. package/dist/models/TimelineTimelineCursor.d.ts.map +0 -1
  604. package/dist/models/TimelineTimelineCursor.js +0 -65
  605. package/dist/models/TimelineTimelineCursor.js.map +0 -1
  606. package/dist/models/TimelineTimelineItem.d.ts +0 -62
  607. package/dist/models/TimelineTimelineItem.d.ts.map +0 -1
  608. package/dist/models/TimelineTimelineItem.js +0 -66
  609. package/dist/models/TimelineTimelineItem.js.map +0 -1
  610. package/dist/models/TimelineTimelineModule.d.ts +0 -85
  611. package/dist/models/TimelineTimelineModule.d.ts.map +0 -1
  612. package/dist/models/TimelineTimelineModule.js +0 -77
  613. package/dist/models/TimelineTimelineModule.js.map +0 -1
  614. package/dist/models/TimelineTweet.d.ts +0 -68
  615. package/dist/models/TimelineTweet.d.ts.map +0 -1
  616. package/dist/models/TimelineTweet.js +0 -69
  617. package/dist/models/TimelineTweet.js.map +0 -1
  618. package/dist/models/TimelineUser.d.ts +0 -69
  619. package/dist/models/TimelineUser.d.ts.map +0 -1
  620. package/dist/models/TimelineUser.js +0 -75
  621. package/dist/models/TimelineUser.js.map +0 -1
  622. package/dist/models/TimelineV2.d.ts +0 -33
  623. package/dist/models/TimelineV2.d.ts.map +0 -1
  624. package/dist/models/TimelineV2.js +0 -52
  625. package/dist/models/TimelineV2.js.map +0 -1
  626. package/dist/models/Tracing.d.ts +0 -32
  627. package/dist/models/Tracing.d.ts.map +0 -1
  628. package/dist/models/Tracing.js +0 -51
  629. package/dist/models/Tracing.js.map +0 -1
  630. package/dist/models/Tweet.d.ts +0 -108
  631. package/dist/models/Tweet.d.ts.map +0 -1
  632. package/dist/models/Tweet.js +0 -85
  633. package/dist/models/Tweet.js.map +0 -1
  634. package/dist/models/TweetCard.d.ts +0 -39
  635. package/dist/models/TweetCard.d.ts.map +0 -1
  636. package/dist/models/TweetCard.js +0 -54
  637. package/dist/models/TweetCard.js.map +0 -1
  638. package/dist/models/TweetCardLegacy.d.ts +0 -45
  639. package/dist/models/TweetCardLegacy.d.ts.map +0 -1
  640. package/dist/models/TweetCardLegacy.js +0 -58
  641. package/dist/models/TweetCardLegacy.js.map +0 -1
  642. package/dist/models/TweetCardLegacyBindingValue.d.ts +0 -39
  643. package/dist/models/TweetCardLegacyBindingValue.d.ts.map +0 -1
  644. package/dist/models/TweetCardLegacyBindingValue.js +0 -55
  645. package/dist/models/TweetCardLegacyBindingValue.js.map +0 -1
  646. package/dist/models/TweetCardLegacyBindingValueData.d.ts +0 -50
  647. package/dist/models/TweetCardLegacyBindingValueData.d.ts.map +0 -1
  648. package/dist/models/TweetCardLegacyBindingValueData.js +0 -58
  649. package/dist/models/TweetCardLegacyBindingValueData.js.map +0 -1
  650. package/dist/models/TweetDetailResponse.d.ts +0 -33
  651. package/dist/models/TweetDetailResponse.d.ts.map +0 -1
  652. package/dist/models/TweetDetailResponse.js +0 -52
  653. package/dist/models/TweetDetailResponse.js.map +0 -1
  654. package/dist/models/TweetDetailResponseData.d.ts +0 -33
  655. package/dist/models/TweetDetailResponseData.d.ts.map +0 -1
  656. package/dist/models/TweetDetailResponseData.js +0 -52
  657. package/dist/models/TweetDetailResponseData.js.map +0 -1
  658. package/dist/models/TweetEditControl.d.ts +0 -63
  659. package/dist/models/TweetEditControl.d.ts.map +0 -1
  660. package/dist/models/TweetEditControl.js +0 -62
  661. package/dist/models/TweetEditControl.js.map +0 -1
  662. package/dist/models/TweetEditControlInitial.d.ts +0 -50
  663. package/dist/models/TweetEditControlInitial.d.ts.map +0 -1
  664. package/dist/models/TweetEditControlInitial.js +0 -60
  665. package/dist/models/TweetEditControlInitial.js.map +0 -1
  666. package/dist/models/TweetEditPrespective.d.ts +0 -38
  667. package/dist/models/TweetEditPrespective.d.ts.map +0 -1
  668. package/dist/models/TweetEditPrespective.js +0 -53
  669. package/dist/models/TweetEditPrespective.js.map +0 -1
  670. package/dist/models/TweetFavoritersResponse.d.ts +0 -33
  671. package/dist/models/TweetFavoritersResponse.d.ts.map +0 -1
  672. package/dist/models/TweetFavoritersResponse.js +0 -52
  673. package/dist/models/TweetFavoritersResponse.js.map +0 -1
  674. package/dist/models/TweetFavoritersResponseData.d.ts +0 -33
  675. package/dist/models/TweetFavoritersResponseData.d.ts.map +0 -1
  676. package/dist/models/TweetFavoritersResponseData.js +0 -52
  677. package/dist/models/TweetFavoritersResponseData.js.map +0 -1
  678. package/dist/models/TweetLegacy.d.ts +0 -162
  679. package/dist/models/TweetLegacy.d.ts.map +0 -1
  680. package/dist/models/TweetLegacy.js +0 -114
  681. package/dist/models/TweetLegacy.js.map +0 -1
  682. package/dist/models/TweetResultByRestIdData.d.ts +0 -33
  683. package/dist/models/TweetResultByRestIdData.d.ts.map +0 -1
  684. package/dist/models/TweetResultByRestIdData.js +0 -52
  685. package/dist/models/TweetResultByRestIdData.js.map +0 -1
  686. package/dist/models/TweetResultByRestIdResponse.d.ts +0 -33
  687. package/dist/models/TweetResultByRestIdResponse.d.ts.map +0 -1
  688. package/dist/models/TweetResultByRestIdResponse.js +0 -52
  689. package/dist/models/TweetResultByRestIdResponse.js.map +0 -1
  690. package/dist/models/TweetRetweetersResponse.d.ts +0 -33
  691. package/dist/models/TweetRetweetersResponse.d.ts.map +0 -1
  692. package/dist/models/TweetRetweetersResponse.js +0 -52
  693. package/dist/models/TweetRetweetersResponse.js.map +0 -1
  694. package/dist/models/TweetRetweetersResponseData.d.ts +0 -33
  695. package/dist/models/TweetRetweetersResponseData.d.ts.map +0 -1
  696. package/dist/models/TweetRetweetersResponseData.js +0 -52
  697. package/dist/models/TweetRetweetersResponseData.js.map +0 -1
  698. package/dist/models/TweetTombstone.d.ts +0 -34
  699. package/dist/models/TweetTombstone.d.ts.map +0 -1
  700. package/dist/models/TweetTombstone.js +0 -59
  701. package/dist/models/TweetTombstone.js.map +0 -1
  702. package/dist/models/TweetUnion.d.ts +0 -30
  703. package/dist/models/TweetUnion.d.ts.map +0 -1
  704. package/dist/models/TweetUnion.js +0 -70
  705. package/dist/models/TweetUnion.js.map +0 -1
  706. package/dist/models/TweetView.d.ts +0 -45
  707. package/dist/models/TweetView.d.ts.map +0 -1
  708. package/dist/models/TweetView.js +0 -60
  709. package/dist/models/TweetView.js.map +0 -1
  710. package/dist/models/TweetWithVisibilityResults.d.ts +0 -40
  711. package/dist/models/TweetWithVisibilityResults.d.ts.map +0 -1
  712. package/dist/models/TweetWithVisibilityResults.js +0 -56
  713. package/dist/models/TweetWithVisibilityResults.js.map +0 -1
  714. package/dist/models/TypeName.d.ts +0 -35
  715. package/dist/models/TypeName.d.ts.map +0 -1
  716. package/dist/models/TypeName.js +0 -48
  717. package/dist/models/TypeName.js.map +0 -1
  718. package/dist/models/UnfavoriteTweet.d.ts +0 -32
  719. package/dist/models/UnfavoriteTweet.d.ts.map +0 -1
  720. package/dist/models/UnfavoriteTweet.js +0 -51
  721. package/dist/models/UnfavoriteTweet.js.map +0 -1
  722. package/dist/models/UnfavoriteTweetResponseData.d.ts +0 -33
  723. package/dist/models/UnfavoriteTweetResponseData.d.ts.map +0 -1
  724. package/dist/models/UnfavoriteTweetResponseData.js +0 -52
  725. package/dist/models/UnfavoriteTweetResponseData.js.map +0 -1
  726. package/dist/models/Url.d.ts +0 -50
  727. package/dist/models/Url.d.ts.map +0 -1
  728. package/dist/models/Url.js +0 -60
  729. package/dist/models/Url.js.map +0 -1
  730. package/dist/models/User.d.ts +0 -104
  731. package/dist/models/User.d.ts.map +0 -1
  732. package/dist/models/User.js +0 -84
  733. package/dist/models/User.js.map +0 -1
  734. package/dist/models/UserFeatures.d.ts +0 -32
  735. package/dist/models/UserFeatures.d.ts.map +0 -1
  736. package/dist/models/UserFeatures.js +0 -51
  737. package/dist/models/UserFeatures.js.map +0 -1
  738. package/dist/models/UserHighlightsTweetsData.d.ts +0 -33
  739. package/dist/models/UserHighlightsTweetsData.d.ts.map +0 -1
  740. package/dist/models/UserHighlightsTweetsData.js +0 -52
  741. package/dist/models/UserHighlightsTweetsData.js.map +0 -1
  742. package/dist/models/UserHighlightsTweetsResponse.d.ts +0 -33
  743. package/dist/models/UserHighlightsTweetsResponse.d.ts.map +0 -1
  744. package/dist/models/UserHighlightsTweetsResponse.js +0 -52
  745. package/dist/models/UserHighlightsTweetsResponse.js.map +0 -1
  746. package/dist/models/UserHighlightsTweetsResult.d.ts +0 -40
  747. package/dist/models/UserHighlightsTweetsResult.d.ts.map +0 -1
  748. package/dist/models/UserHighlightsTweetsResult.js +0 -56
  749. package/dist/models/UserHighlightsTweetsResult.js.map +0 -1
  750. package/dist/models/UserHighlightsTweetsTimeline.d.ts +0 -33
  751. package/dist/models/UserHighlightsTweetsTimeline.d.ts.map +0 -1
  752. package/dist/models/UserHighlightsTweetsTimeline.js +0 -52
  753. package/dist/models/UserHighlightsTweetsTimeline.js.map +0 -1
  754. package/dist/models/UserHighlightsTweetsUser.d.ts +0 -33
  755. package/dist/models/UserHighlightsTweetsUser.d.ts.map +0 -1
  756. package/dist/models/UserHighlightsTweetsUser.js +0 -52
  757. package/dist/models/UserHighlightsTweetsUser.js.map +0 -1
  758. package/dist/models/UserLegacy.d.ts +0 -262
  759. package/dist/models/UserLegacy.d.ts.map +0 -1
  760. package/dist/models/UserLegacy.js +0 -157
  761. package/dist/models/UserLegacy.js.map +0 -1
  762. package/dist/models/UserResponse.d.ts +0 -33
  763. package/dist/models/UserResponse.d.ts.map +0 -1
  764. package/dist/models/UserResponse.js +0 -52
  765. package/dist/models/UserResponse.js.map +0 -1
  766. package/dist/models/UserResponseData.d.ts +0 -33
  767. package/dist/models/UserResponseData.d.ts.map +0 -1
  768. package/dist/models/UserResponseData.js +0 -52
  769. package/dist/models/UserResponseData.js.map +0 -1
  770. package/dist/models/UserResultByScreenName.d.ts +0 -39
  771. package/dist/models/UserResultByScreenName.d.ts.map +0 -1
  772. package/dist/models/UserResultByScreenName.js +0 -55
  773. package/dist/models/UserResultByScreenName.js.map +0 -1
  774. package/dist/models/UserResultByScreenNameLegacy.d.ts +0 -68
  775. package/dist/models/UserResultByScreenNameLegacy.d.ts.map +0 -1
  776. package/dist/models/UserResultByScreenNameLegacy.js +0 -63
  777. package/dist/models/UserResultByScreenNameLegacy.js.map +0 -1
  778. package/dist/models/UserResultByScreenNameResult.d.ts +0 -60
  779. package/dist/models/UserResultByScreenNameResult.d.ts.map +0 -1
  780. package/dist/models/UserResultByScreenNameResult.js +0 -65
  781. package/dist/models/UserResultByScreenNameResult.js.map +0 -1
  782. package/dist/models/UserResultCore.d.ts +0 -33
  783. package/dist/models/UserResultCore.d.ts.map +0 -1
  784. package/dist/models/UserResultCore.js +0 -52
  785. package/dist/models/UserResultCore.js.map +0 -1
  786. package/dist/models/UserResults.d.ts +0 -33
  787. package/dist/models/UserResults.d.ts.map +0 -1
  788. package/dist/models/UserResults.js +0 -52
  789. package/dist/models/UserResults.js.map +0 -1
  790. package/dist/models/UserTweetsData.d.ts +0 -33
  791. package/dist/models/UserTweetsData.d.ts.map +0 -1
  792. package/dist/models/UserTweetsData.js +0 -52
  793. package/dist/models/UserTweetsData.js.map +0 -1
  794. package/dist/models/UserTweetsResponse.d.ts +0 -33
  795. package/dist/models/UserTweetsResponse.d.ts.map +0 -1
  796. package/dist/models/UserTweetsResponse.js +0 -52
  797. package/dist/models/UserTweetsResponse.js.map +0 -1
  798. package/dist/models/UserTweetsResult.d.ts +0 -40
  799. package/dist/models/UserTweetsResult.d.ts.map +0 -1
  800. package/dist/models/UserTweetsResult.js +0 -56
  801. package/dist/models/UserTweetsResult.js.map +0 -1
  802. package/dist/models/UserTweetsUser.d.ts +0 -33
  803. package/dist/models/UserTweetsUser.d.ts.map +0 -1
  804. package/dist/models/UserTweetsUser.js +0 -52
  805. package/dist/models/UserTweetsUser.js.map +0 -1
  806. package/dist/models/UserUnavailable.d.ts +0 -39
  807. package/dist/models/UserUnavailable.d.ts.map +0 -1
  808. package/dist/models/UserUnavailable.js +0 -55
  809. package/dist/models/UserUnavailable.js.map +0 -1
  810. package/dist/models/UserUnion.d.ts +0 -27
  811. package/dist/models/UserUnion.d.ts.map +0 -1
  812. package/dist/models/UserUnion.js +0 -65
  813. package/dist/models/UserUnion.js.map +0 -1
  814. package/dist/models/UsersResponse.d.ts +0 -33
  815. package/dist/models/UsersResponse.d.ts.map +0 -1
  816. package/dist/models/UsersResponse.js +0 -52
  817. package/dist/models/UsersResponse.js.map +0 -1
  818. package/dist/models/UsersResponseData.d.ts +0 -33
  819. package/dist/models/UsersResponseData.d.ts.map +0 -1
  820. package/dist/models/UsersResponseData.js +0 -52
  821. package/dist/models/UsersResponseData.js.map +0 -1
  822. package/dist/models/index.d.ts +0 -186
  823. package/dist/models/index.d.ts.map +0 -1
  824. package/dist/models/index.js +0 -204
  825. package/dist/models/index.js.map +0 -1
  826. package/dist/runtime.d.ts +0 -183
  827. package/dist/runtime.d.ts.map +0 -1
  828. package/dist/runtime.js +0 -556
  829. package/dist/runtime.js.map +0 -1
  830. package/twitter-openapi/tools/__pycache__/build_config.cpython-310.pyc +0 -0
  831. package/twitter-openapi/tools/__pycache__/hooks.cpython-310.pyc +0 -0
@@ -1,741 +0,0 @@
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 __extends = (this && this.__extends) || (function () {
16
- var extendStatics = function (d, b) {
17
- extendStatics = Object.setPrototypeOf ||
18
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
- return extendStatics(d, b);
21
- };
22
- return function (d, b) {
23
- if (typeof b !== "function" && b !== null)
24
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
- extendStatics(d, b);
26
- function __() { this.constructor = d; }
27
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
- };
29
- })();
30
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
31
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
32
- return new (P || (P = Promise))(function (resolve, reject) {
33
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
34
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
35
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
36
- step((generator = generator.apply(thisArg, _arguments || [])).next());
37
- });
38
- };
39
- var __generator = (this && this.__generator) || function (thisArg, body) {
40
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
41
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
42
- function verb(n) { return function (v) { return step([n, v]); }; }
43
- function step(op) {
44
- if (f) throw new TypeError("Generator is already executing.");
45
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
46
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
47
- if (y = 0, t) op = [op[0] & 2, t.value];
48
- switch (op[0]) {
49
- case 0: case 1: t = op; break;
50
- case 4: _.label++; return { value: op[1], done: false };
51
- case 5: _.label++; y = op[1]; op = [0]; continue;
52
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
53
- default:
54
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
55
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
56
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
57
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
58
- if (t[2]) _.ops.pop();
59
- _.trys.pop(); continue;
60
- }
61
- op = body.call(thisArg, _);
62
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
63
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
64
- }
65
- };
66
- Object.defineProperty(exports, "__esModule", { value: true });
67
- exports.PostApi = void 0;
68
- var runtime = require("../runtime");
69
- var models_1 = require("../models");
70
- /**
71
- *
72
- */
73
- var PostApi = /** @class */ (function (_super) {
74
- __extends(PostApi, _super);
75
- function PostApi() {
76
- return _super !== null && _super.apply(this, arguments) || this;
77
- }
78
- /**
79
- * create Retweet
80
- */
81
- PostApi.prototype.postCreateRetweetRaw = function (requestParameters, initOverrides) {
82
- return __awaiter(this, void 0, void 0, function () {
83
- var queryParameters, headerParameters, token, tokenString, response;
84
- return __generator(this, function (_a) {
85
- switch (_a.label) {
86
- case 0:
87
- if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
88
- throw new runtime.RequiredError('pathQueryId', 'Required parameter requestParameters.pathQueryId was null or undefined when calling postCreateRetweet.');
89
- }
90
- if (requestParameters.postCreateRetweetRequest === null || requestParameters.postCreateRetweetRequest === undefined) {
91
- throw new runtime.RequiredError('postCreateRetweetRequest', 'Required parameter requestParameters.postCreateRetweetRequest was null or undefined when calling postCreateRetweet.');
92
- }
93
- queryParameters = {};
94
- headerParameters = {};
95
- headerParameters['Content-Type'] = 'application/json';
96
- if (this.configuration && this.configuration.apiKey) {
97
- headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
98
- }
99
- if (this.configuration && this.configuration.apiKey) {
100
- headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
101
- }
102
- if (this.configuration && this.configuration.apiKey) {
103
- headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
104
- }
105
- if (this.configuration && this.configuration.apiKey) {
106
- headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
107
- }
108
- if (this.configuration && this.configuration.apiKey) {
109
- headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
110
- }
111
- if (this.configuration && this.configuration.apiKey) {
112
- headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
113
- }
114
- if (this.configuration && this.configuration.apiKey) {
115
- headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
116
- }
117
- if (this.configuration && this.configuration.apiKey) {
118
- headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
119
- }
120
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
121
- token = this.configuration.accessToken;
122
- return [4 /*yield*/, token("BearerAuth", [])];
123
- case 1:
124
- tokenString = _a.sent();
125
- if (tokenString) {
126
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
127
- }
128
- _a.label = 2;
129
- case 2:
130
- if (this.configuration && this.configuration.apiKey) {
131
- headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
132
- }
133
- if (this.configuration && this.configuration.apiKey) {
134
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
135
- }
136
- if (this.configuration && this.configuration.apiKey) {
137
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
138
- }
139
- if (this.configuration && this.configuration.apiKey) {
140
- headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
141
- }
142
- if (this.configuration && this.configuration.apiKey) {
143
- headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
144
- }
145
- if (this.configuration && this.configuration.apiKey) {
146
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
147
- }
148
- if (this.configuration && this.configuration.apiKey) {
149
- headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
150
- }
151
- if (this.configuration && this.configuration.apiKey) {
152
- headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
153
- }
154
- if (this.configuration && this.configuration.apiKey) {
155
- headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
156
- }
157
- return [4 /*yield*/, this.request({
158
- path: "/graphql/{pathQueryId}/CreateRetweet".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
159
- method: 'POST',
160
- headers: headerParameters,
161
- query: queryParameters,
162
- body: (0, models_1.PostCreateRetweetRequestToJSON)(requestParameters.postCreateRetweetRequest),
163
- }, initOverrides)];
164
- case 3:
165
- response = _a.sent();
166
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.PostCreateRetweet200ResponseFromJSON)(jsonValue); })];
167
- }
168
- });
169
- });
170
- };
171
- /**
172
- * create Retweet
173
- */
174
- PostApi.prototype.postCreateRetweet = function (requestParameters, initOverrides) {
175
- return __awaiter(this, void 0, void 0, function () {
176
- var response;
177
- return __generator(this, function (_a) {
178
- switch (_a.label) {
179
- case 0: return [4 /*yield*/, this.postCreateRetweetRaw(requestParameters, initOverrides)];
180
- case 1:
181
- response = _a.sent();
182
- return [4 /*yield*/, response.value()];
183
- case 2: return [2 /*return*/, _a.sent()];
184
- }
185
- });
186
- });
187
- };
188
- /**
189
- * create Tweet
190
- */
191
- PostApi.prototype.postCreateTweetRaw = function (requestParameters, initOverrides) {
192
- return __awaiter(this, void 0, void 0, function () {
193
- var queryParameters, headerParameters, token, tokenString, response;
194
- return __generator(this, function (_a) {
195
- switch (_a.label) {
196
- case 0:
197
- if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
198
- throw new runtime.RequiredError('pathQueryId', 'Required parameter requestParameters.pathQueryId was null or undefined when calling postCreateTweet.');
199
- }
200
- if (requestParameters.postCreateTweetRequest === null || requestParameters.postCreateTweetRequest === undefined) {
201
- throw new runtime.RequiredError('postCreateTweetRequest', 'Required parameter requestParameters.postCreateTweetRequest was null or undefined when calling postCreateTweet.');
202
- }
203
- queryParameters = {};
204
- headerParameters = {};
205
- headerParameters['Content-Type'] = 'application/json';
206
- if (this.configuration && this.configuration.apiKey) {
207
- headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
208
- }
209
- if (this.configuration && this.configuration.apiKey) {
210
- headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
211
- }
212
- if (this.configuration && this.configuration.apiKey) {
213
- headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
214
- }
215
- if (this.configuration && this.configuration.apiKey) {
216
- headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
217
- }
218
- if (this.configuration && this.configuration.apiKey) {
219
- headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
220
- }
221
- if (this.configuration && this.configuration.apiKey) {
222
- headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
223
- }
224
- if (this.configuration && this.configuration.apiKey) {
225
- headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
226
- }
227
- if (this.configuration && this.configuration.apiKey) {
228
- headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
229
- }
230
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
231
- token = this.configuration.accessToken;
232
- return [4 /*yield*/, token("BearerAuth", [])];
233
- case 1:
234
- tokenString = _a.sent();
235
- if (tokenString) {
236
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
237
- }
238
- _a.label = 2;
239
- case 2:
240
- if (this.configuration && this.configuration.apiKey) {
241
- headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
242
- }
243
- if (this.configuration && this.configuration.apiKey) {
244
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
245
- }
246
- if (this.configuration && this.configuration.apiKey) {
247
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
248
- }
249
- if (this.configuration && this.configuration.apiKey) {
250
- headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
251
- }
252
- if (this.configuration && this.configuration.apiKey) {
253
- headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
254
- }
255
- if (this.configuration && this.configuration.apiKey) {
256
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
257
- }
258
- if (this.configuration && this.configuration.apiKey) {
259
- headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
260
- }
261
- if (this.configuration && this.configuration.apiKey) {
262
- headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
263
- }
264
- if (this.configuration && this.configuration.apiKey) {
265
- headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
266
- }
267
- return [4 /*yield*/, this.request({
268
- path: "/graphql/{pathQueryId}/CreateTweet".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
269
- method: 'POST',
270
- headers: headerParameters,
271
- query: queryParameters,
272
- body: (0, models_1.PostCreateTweetRequestToJSON)(requestParameters.postCreateTweetRequest),
273
- }, initOverrides)];
274
- case 3:
275
- response = _a.sent();
276
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.PostCreateTweet200ResponseFromJSON)(jsonValue); })];
277
- }
278
- });
279
- });
280
- };
281
- /**
282
- * create Tweet
283
- */
284
- PostApi.prototype.postCreateTweet = function (requestParameters, initOverrides) {
285
- return __awaiter(this, void 0, void 0, function () {
286
- var response;
287
- return __generator(this, function (_a) {
288
- switch (_a.label) {
289
- case 0: return [4 /*yield*/, this.postCreateTweetRaw(requestParameters, initOverrides)];
290
- case 1:
291
- response = _a.sent();
292
- return [4 /*yield*/, response.value()];
293
- case 2: return [2 /*return*/, _a.sent()];
294
- }
295
- });
296
- });
297
- };
298
- /**
299
- * delete Retweet
300
- */
301
- PostApi.prototype.postDeleteRetweetRaw = function (requestParameters, initOverrides) {
302
- return __awaiter(this, void 0, void 0, function () {
303
- var queryParameters, headerParameters, token, tokenString, response;
304
- return __generator(this, function (_a) {
305
- switch (_a.label) {
306
- case 0:
307
- if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
308
- throw new runtime.RequiredError('pathQueryId', 'Required parameter requestParameters.pathQueryId was null or undefined when calling postDeleteRetweet.');
309
- }
310
- if (requestParameters.postDeleteRetweetRequest === null || requestParameters.postDeleteRetweetRequest === undefined) {
311
- throw new runtime.RequiredError('postDeleteRetweetRequest', 'Required parameter requestParameters.postDeleteRetweetRequest was null or undefined when calling postDeleteRetweet.');
312
- }
313
- queryParameters = {};
314
- headerParameters = {};
315
- headerParameters['Content-Type'] = 'application/json';
316
- if (this.configuration && this.configuration.apiKey) {
317
- headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
318
- }
319
- if (this.configuration && this.configuration.apiKey) {
320
- headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
321
- }
322
- if (this.configuration && this.configuration.apiKey) {
323
- headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
324
- }
325
- if (this.configuration && this.configuration.apiKey) {
326
- headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
327
- }
328
- if (this.configuration && this.configuration.apiKey) {
329
- headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
330
- }
331
- if (this.configuration && this.configuration.apiKey) {
332
- headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
333
- }
334
- if (this.configuration && this.configuration.apiKey) {
335
- headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
336
- }
337
- if (this.configuration && this.configuration.apiKey) {
338
- headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
339
- }
340
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
341
- token = this.configuration.accessToken;
342
- return [4 /*yield*/, token("BearerAuth", [])];
343
- case 1:
344
- tokenString = _a.sent();
345
- if (tokenString) {
346
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
347
- }
348
- _a.label = 2;
349
- case 2:
350
- if (this.configuration && this.configuration.apiKey) {
351
- headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
352
- }
353
- if (this.configuration && this.configuration.apiKey) {
354
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
355
- }
356
- if (this.configuration && this.configuration.apiKey) {
357
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
358
- }
359
- if (this.configuration && this.configuration.apiKey) {
360
- headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
361
- }
362
- if (this.configuration && this.configuration.apiKey) {
363
- headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
364
- }
365
- if (this.configuration && this.configuration.apiKey) {
366
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
367
- }
368
- if (this.configuration && this.configuration.apiKey) {
369
- headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
370
- }
371
- if (this.configuration && this.configuration.apiKey) {
372
- headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
373
- }
374
- if (this.configuration && this.configuration.apiKey) {
375
- headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
376
- }
377
- return [4 /*yield*/, this.request({
378
- path: "/graphql/{pathQueryId}/DeleteRetweet".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
379
- method: 'POST',
380
- headers: headerParameters,
381
- query: queryParameters,
382
- body: (0, models_1.PostDeleteRetweetRequestToJSON)(requestParameters.postDeleteRetweetRequest),
383
- }, initOverrides)];
384
- case 3:
385
- response = _a.sent();
386
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.PostDeleteRetweet200ResponseFromJSON)(jsonValue); })];
387
- }
388
- });
389
- });
390
- };
391
- /**
392
- * delete Retweet
393
- */
394
- PostApi.prototype.postDeleteRetweet = function (requestParameters, initOverrides) {
395
- return __awaiter(this, void 0, void 0, function () {
396
- var response;
397
- return __generator(this, function (_a) {
398
- switch (_a.label) {
399
- case 0: return [4 /*yield*/, this.postDeleteRetweetRaw(requestParameters, initOverrides)];
400
- case 1:
401
- response = _a.sent();
402
- return [4 /*yield*/, response.value()];
403
- case 2: return [2 /*return*/, _a.sent()];
404
- }
405
- });
406
- });
407
- };
408
- /**
409
- * delete Retweet
410
- */
411
- PostApi.prototype.postDeleteTweetRaw = function (requestParameters, initOverrides) {
412
- return __awaiter(this, void 0, void 0, function () {
413
- var queryParameters, headerParameters, token, tokenString, response;
414
- return __generator(this, function (_a) {
415
- switch (_a.label) {
416
- case 0:
417
- if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
418
- throw new runtime.RequiredError('pathQueryId', 'Required parameter requestParameters.pathQueryId was null or undefined when calling postDeleteTweet.');
419
- }
420
- if (requestParameters.postDeleteTweetRequest === null || requestParameters.postDeleteTweetRequest === undefined) {
421
- throw new runtime.RequiredError('postDeleteTweetRequest', 'Required parameter requestParameters.postDeleteTweetRequest was null or undefined when calling postDeleteTweet.');
422
- }
423
- queryParameters = {};
424
- headerParameters = {};
425
- headerParameters['Content-Type'] = 'application/json';
426
- if (this.configuration && this.configuration.apiKey) {
427
- headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
428
- }
429
- if (this.configuration && this.configuration.apiKey) {
430
- headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
431
- }
432
- if (this.configuration && this.configuration.apiKey) {
433
- headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
434
- }
435
- if (this.configuration && this.configuration.apiKey) {
436
- headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
437
- }
438
- if (this.configuration && this.configuration.apiKey) {
439
- headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
440
- }
441
- if (this.configuration && this.configuration.apiKey) {
442
- headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
443
- }
444
- if (this.configuration && this.configuration.apiKey) {
445
- headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
446
- }
447
- if (this.configuration && this.configuration.apiKey) {
448
- headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
449
- }
450
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
451
- token = this.configuration.accessToken;
452
- return [4 /*yield*/, token("BearerAuth", [])];
453
- case 1:
454
- tokenString = _a.sent();
455
- if (tokenString) {
456
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
457
- }
458
- _a.label = 2;
459
- case 2:
460
- if (this.configuration && this.configuration.apiKey) {
461
- headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
462
- }
463
- if (this.configuration && this.configuration.apiKey) {
464
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
465
- }
466
- if (this.configuration && this.configuration.apiKey) {
467
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
468
- }
469
- if (this.configuration && this.configuration.apiKey) {
470
- headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
471
- }
472
- if (this.configuration && this.configuration.apiKey) {
473
- headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
474
- }
475
- if (this.configuration && this.configuration.apiKey) {
476
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
477
- }
478
- if (this.configuration && this.configuration.apiKey) {
479
- headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
480
- }
481
- if (this.configuration && this.configuration.apiKey) {
482
- headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
483
- }
484
- if (this.configuration && this.configuration.apiKey) {
485
- headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
486
- }
487
- return [4 /*yield*/, this.request({
488
- path: "/graphql/{pathQueryId}/DeleteTweet".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
489
- method: 'POST',
490
- headers: headerParameters,
491
- query: queryParameters,
492
- body: (0, models_1.PostDeleteTweetRequestToJSON)(requestParameters.postDeleteTweetRequest),
493
- }, initOverrides)];
494
- case 3:
495
- response = _a.sent();
496
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.PostDeleteTweet200ResponseFromJSON)(jsonValue); })];
497
- }
498
- });
499
- });
500
- };
501
- /**
502
- * delete Retweet
503
- */
504
- PostApi.prototype.postDeleteTweet = function (requestParameters, initOverrides) {
505
- return __awaiter(this, void 0, void 0, function () {
506
- var response;
507
- return __generator(this, function (_a) {
508
- switch (_a.label) {
509
- case 0: return [4 /*yield*/, this.postDeleteTweetRaw(requestParameters, initOverrides)];
510
- case 1:
511
- response = _a.sent();
512
- return [4 /*yield*/, response.value()];
513
- case 2: return [2 /*return*/, _a.sent()];
514
- }
515
- });
516
- });
517
- };
518
- /**
519
- * favorite Tweet
520
- */
521
- PostApi.prototype.postFavoriteTweetRaw = function (requestParameters, initOverrides) {
522
- return __awaiter(this, void 0, void 0, function () {
523
- var queryParameters, headerParameters, token, tokenString, response;
524
- return __generator(this, function (_a) {
525
- switch (_a.label) {
526
- case 0:
527
- if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
528
- throw new runtime.RequiredError('pathQueryId', 'Required parameter requestParameters.pathQueryId was null or undefined when calling postFavoriteTweet.');
529
- }
530
- if (requestParameters.postFavoriteTweetRequest === null || requestParameters.postFavoriteTweetRequest === undefined) {
531
- throw new runtime.RequiredError('postFavoriteTweetRequest', 'Required parameter requestParameters.postFavoriteTweetRequest was null or undefined when calling postFavoriteTweet.');
532
- }
533
- queryParameters = {};
534
- headerParameters = {};
535
- headerParameters['Content-Type'] = 'application/json';
536
- if (this.configuration && this.configuration.apiKey) {
537
- headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
538
- }
539
- if (this.configuration && this.configuration.apiKey) {
540
- headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
541
- }
542
- if (this.configuration && this.configuration.apiKey) {
543
- headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
544
- }
545
- if (this.configuration && this.configuration.apiKey) {
546
- headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
547
- }
548
- if (this.configuration && this.configuration.apiKey) {
549
- headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
550
- }
551
- if (this.configuration && this.configuration.apiKey) {
552
- headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
553
- }
554
- if (this.configuration && this.configuration.apiKey) {
555
- headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
556
- }
557
- if (this.configuration && this.configuration.apiKey) {
558
- headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
559
- }
560
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
561
- token = this.configuration.accessToken;
562
- return [4 /*yield*/, token("BearerAuth", [])];
563
- case 1:
564
- tokenString = _a.sent();
565
- if (tokenString) {
566
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
567
- }
568
- _a.label = 2;
569
- case 2:
570
- if (this.configuration && this.configuration.apiKey) {
571
- headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
572
- }
573
- if (this.configuration && this.configuration.apiKey) {
574
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
575
- }
576
- if (this.configuration && this.configuration.apiKey) {
577
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
578
- }
579
- if (this.configuration && this.configuration.apiKey) {
580
- headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
581
- }
582
- if (this.configuration && this.configuration.apiKey) {
583
- headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
584
- }
585
- if (this.configuration && this.configuration.apiKey) {
586
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
587
- }
588
- if (this.configuration && this.configuration.apiKey) {
589
- headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
590
- }
591
- if (this.configuration && this.configuration.apiKey) {
592
- headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
593
- }
594
- if (this.configuration && this.configuration.apiKey) {
595
- headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
596
- }
597
- return [4 /*yield*/, this.request({
598
- path: "/graphql/{pathQueryId}/FavoriteTweet".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
599
- method: 'POST',
600
- headers: headerParameters,
601
- query: queryParameters,
602
- body: (0, models_1.PostFavoriteTweetRequestToJSON)(requestParameters.postFavoriteTweetRequest),
603
- }, initOverrides)];
604
- case 3:
605
- response = _a.sent();
606
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.PostFavoriteTweet200ResponseFromJSON)(jsonValue); })];
607
- }
608
- });
609
- });
610
- };
611
- /**
612
- * favorite Tweet
613
- */
614
- PostApi.prototype.postFavoriteTweet = function (requestParameters, initOverrides) {
615
- return __awaiter(this, void 0, void 0, function () {
616
- var response;
617
- return __generator(this, function (_a) {
618
- switch (_a.label) {
619
- case 0: return [4 /*yield*/, this.postFavoriteTweetRaw(requestParameters, initOverrides)];
620
- case 1:
621
- response = _a.sent();
622
- return [4 /*yield*/, response.value()];
623
- case 2: return [2 /*return*/, _a.sent()];
624
- }
625
- });
626
- });
627
- };
628
- /**
629
- * unfavorite Tweet
630
- */
631
- PostApi.prototype.postUnfavoriteTweetRaw = function (requestParameters, initOverrides) {
632
- return __awaiter(this, void 0, void 0, function () {
633
- var queryParameters, headerParameters, token, tokenString, response;
634
- return __generator(this, function (_a) {
635
- switch (_a.label) {
636
- case 0:
637
- if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
638
- throw new runtime.RequiredError('pathQueryId', 'Required parameter requestParameters.pathQueryId was null or undefined when calling postUnfavoriteTweet.');
639
- }
640
- if (requestParameters.postUnfavoriteTweetRequest === null || requestParameters.postUnfavoriteTweetRequest === undefined) {
641
- throw new runtime.RequiredError('postUnfavoriteTweetRequest', 'Required parameter requestParameters.postUnfavoriteTweetRequest was null or undefined when calling postUnfavoriteTweet.');
642
- }
643
- queryParameters = {};
644
- headerParameters = {};
645
- headerParameters['Content-Type'] = 'application/json';
646
- if (this.configuration && this.configuration.apiKey) {
647
- headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
648
- }
649
- if (this.configuration && this.configuration.apiKey) {
650
- headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
651
- }
652
- if (this.configuration && this.configuration.apiKey) {
653
- headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
654
- }
655
- if (this.configuration && this.configuration.apiKey) {
656
- headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
657
- }
658
- if (this.configuration && this.configuration.apiKey) {
659
- headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
660
- }
661
- if (this.configuration && this.configuration.apiKey) {
662
- headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
663
- }
664
- if (this.configuration && this.configuration.apiKey) {
665
- headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
666
- }
667
- if (this.configuration && this.configuration.apiKey) {
668
- headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
669
- }
670
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
671
- token = this.configuration.accessToken;
672
- return [4 /*yield*/, token("BearerAuth", [])];
673
- case 1:
674
- tokenString = _a.sent();
675
- if (tokenString) {
676
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
677
- }
678
- _a.label = 2;
679
- case 2:
680
- if (this.configuration && this.configuration.apiKey) {
681
- headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
682
- }
683
- if (this.configuration && this.configuration.apiKey) {
684
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
685
- }
686
- if (this.configuration && this.configuration.apiKey) {
687
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
688
- }
689
- if (this.configuration && this.configuration.apiKey) {
690
- headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
691
- }
692
- if (this.configuration && this.configuration.apiKey) {
693
- headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
694
- }
695
- if (this.configuration && this.configuration.apiKey) {
696
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
697
- }
698
- if (this.configuration && this.configuration.apiKey) {
699
- headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
700
- }
701
- if (this.configuration && this.configuration.apiKey) {
702
- headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
703
- }
704
- if (this.configuration && this.configuration.apiKey) {
705
- headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
706
- }
707
- return [4 /*yield*/, this.request({
708
- path: "/graphql/{pathQueryId}/UnfavoriteTweet".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
709
- method: 'POST',
710
- headers: headerParameters,
711
- query: queryParameters,
712
- body: (0, models_1.PostUnfavoriteTweetRequestToJSON)(requestParameters.postUnfavoriteTweetRequest),
713
- }, initOverrides)];
714
- case 3:
715
- response = _a.sent();
716
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.PostUnfavoriteTweet200ResponseFromJSON)(jsonValue); })];
717
- }
718
- });
719
- });
720
- };
721
- /**
722
- * unfavorite Tweet
723
- */
724
- PostApi.prototype.postUnfavoriteTweet = function (requestParameters, initOverrides) {
725
- return __awaiter(this, void 0, void 0, function () {
726
- var response;
727
- return __generator(this, function (_a) {
728
- switch (_a.label) {
729
- case 0: return [4 /*yield*/, this.postUnfavoriteTweetRaw(requestParameters, initOverrides)];
730
- case 1:
731
- response = _a.sent();
732
- return [4 /*yield*/, response.value()];
733
- case 2: return [2 /*return*/, _a.sent()];
734
- }
735
- });
736
- });
737
- };
738
- return PostApi;
739
- }(runtime.BaseAPI));
740
- exports.PostApi = PostApi;
741
- //# sourceMappingURL=PostApi.js.map