twitter-openapi-typescript-generated 0.0.10 → 0.0.12

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 (446) hide show
  1. package/.openapi-generator/FILES +29 -4
  2. package/LICENSE +31 -0
  3. package/{LICENSE.txt → LICENSE.AGPL} +3 -3
  4. package/README.md +2 -2
  5. package/dist/apis/DefaultApi.d.ts.map +1 -1
  6. package/dist/apis/DefaultApi.js +87 -19
  7. package/dist/apis/DefaultApi.js.map +1 -1
  8. package/dist/apis/OtherApi.d.ts.map +1 -1
  9. package/dist/apis/OtherApi.js +44 -10
  10. package/dist/apis/OtherApi.js.map +1 -1
  11. package/dist/apis/PostApi.d.ts.map +1 -1
  12. package/dist/apis/PostApi.js +265 -61
  13. package/dist/apis/PostApi.js.map +1 -1
  14. package/dist/apis/TweetApi.d.ts +1 -2
  15. package/dist/apis/TweetApi.d.ts.map +1 -1
  16. package/dist/apis/TweetApi.js +480 -112
  17. package/dist/apis/TweetApi.js.map +1 -1
  18. package/dist/apis/UserApi.d.ts +1 -0
  19. package/dist/apis/UserApi.d.ts.map +1 -1
  20. package/dist/apis/UserApi.js +93 -19
  21. package/dist/apis/UserApi.js.map +1 -1
  22. package/dist/apis/UserListApi.d.ts +0 -1
  23. package/dist/apis/UserListApi.d.ts.map +1 -1
  24. package/dist/apis/UserListApi.js +216 -52
  25. package/dist/apis/UserListApi.js.map +1 -1
  26. package/dist/apis/UsersApi.d.ts.map +1 -1
  27. package/dist/apis/UsersApi.js +44 -10
  28. package/dist/apis/UsersApi.js.map +1 -1
  29. package/dist/apis/V11GetApi.d.ts.map +1 -1
  30. package/dist/apis/V11GetApi.js +87 -19
  31. package/dist/apis/V11GetApi.js.map +1 -1
  32. package/dist/apis/V11PostApi.d.ts.map +1 -1
  33. package/dist/apis/V11PostApi.js +73 -7
  34. package/dist/apis/V11PostApi.js.map +1 -1
  35. package/dist/apis/V20GetApi.d.ts.map +1 -1
  36. package/dist/apis/V20GetApi.js +44 -10
  37. package/dist/apis/V20GetApi.js.map +1 -1
  38. package/dist/models/AdditionalMediaInfo.d.ts +32 -0
  39. package/dist/models/AdditionalMediaInfo.d.ts.map +1 -0
  40. package/dist/models/AdditionalMediaInfo.js +51 -0
  41. package/dist/models/AdditionalMediaInfo.js.map +1 -0
  42. package/dist/models/Callback.d.ts +32 -0
  43. package/dist/models/Callback.d.ts.map +1 -0
  44. package/dist/models/Callback.js +51 -0
  45. package/dist/models/Callback.js.map +1 -0
  46. package/dist/models/ClientEventInfo.d.ts +46 -0
  47. package/dist/models/ClientEventInfo.d.ts.map +1 -0
  48. package/dist/models/ClientEventInfo.js +55 -0
  49. package/dist/models/ClientEventInfo.js.map +1 -0
  50. package/dist/models/ContentEntryType.d.ts +1 -1
  51. package/dist/models/ContentEntryType.d.ts.map +1 -1
  52. package/dist/models/ContentItemType.d.ts +1 -1
  53. package/dist/models/ContentItemType.d.ts.map +1 -1
  54. package/dist/models/ContentUnion.d.ts +1 -1
  55. package/dist/models/ContentUnion.d.ts.map +1 -1
  56. package/dist/models/CoverCta.d.ts +66 -0
  57. package/dist/models/CoverCta.d.ts.map +1 -0
  58. package/dist/models/CoverCta.js +71 -0
  59. package/dist/models/CoverCta.js.map +1 -0
  60. package/dist/models/CtaClientEventInfo.d.ts +39 -0
  61. package/dist/models/CtaClientEventInfo.d.ts.map +1 -0
  62. package/dist/models/CtaClientEventInfo.js +57 -0
  63. package/dist/models/CtaClientEventInfo.js.map +1 -0
  64. package/dist/models/CursorType.d.ts +1 -1
  65. package/dist/models/CursorType.d.ts.map +1 -1
  66. package/dist/models/DeleteRetweet.d.ts +33 -0
  67. package/dist/models/DeleteRetweet.d.ts.map +1 -0
  68. package/dist/models/DeleteRetweet.js +52 -0
  69. package/dist/models/DeleteRetweet.js.map +1 -0
  70. package/dist/models/DeleteRetweetResponseResult.d.ts +33 -0
  71. package/dist/models/DeleteRetweetResponseResult.d.ts.map +1 -0
  72. package/dist/models/DeleteRetweetResponseResult.js +52 -0
  73. package/dist/models/DeleteRetweetResponseResult.js.map +1 -0
  74. package/dist/models/ErrorResponse.d.ts +33 -0
  75. package/dist/models/ErrorResponse.d.ts.map +1 -0
  76. package/dist/models/ErrorResponse.js +52 -0
  77. package/dist/models/ErrorResponse.js.map +1 -0
  78. package/dist/models/ExtMediaAvailability.d.ts +39 -0
  79. package/dist/models/ExtMediaAvailability.d.ts.map +1 -0
  80. package/dist/models/ExtMediaAvailability.js +57 -0
  81. package/dist/models/ExtMediaAvailability.js.map +1 -0
  82. package/dist/models/ExtendedEntities.d.ts +3 -3
  83. package/dist/models/ExtendedEntities.d.ts.map +1 -1
  84. package/dist/models/ExtendedEntities.js +3 -3
  85. package/dist/models/ExtendedEntities.js.map +1 -1
  86. package/dist/models/Extensions.d.ts +57 -0
  87. package/dist/models/Extensions.d.ts.map +1 -0
  88. package/dist/models/Extensions.js +64 -0
  89. package/dist/models/Extensions.js.map +1 -0
  90. package/dist/models/GetBookmarks200Response.d.ts +1 -1
  91. package/dist/models/GetBookmarks200Response.d.ts.map +1 -1
  92. package/dist/models/GetFavoriters200Response.d.ts +1 -1
  93. package/dist/models/GetFavoriters200Response.d.ts.map +1 -1
  94. package/dist/models/GetFollowers200Response.d.ts +1 -1
  95. package/dist/models/GetFollowers200Response.d.ts.map +1 -1
  96. package/dist/models/GetHomeLatestTimeline200Response.d.ts +1 -1
  97. package/dist/models/GetHomeLatestTimeline200Response.d.ts.map +1 -1
  98. package/dist/models/GetLikes200Response.d.ts +1 -1
  99. package/dist/models/GetLikes200Response.d.ts.map +1 -1
  100. package/dist/models/GetListLatestTweetsTimeline200Response.d.ts +1 -1
  101. package/dist/models/GetListLatestTweetsTimeline200Response.d.ts.map +1 -1
  102. package/dist/models/GetProfileSpotlightsQuery200Response.d.ts +1 -1
  103. package/dist/models/GetProfileSpotlightsQuery200Response.d.ts.map +1 -1
  104. package/dist/models/GetRetweeters200Response.d.ts +1 -1
  105. package/dist/models/GetRetweeters200Response.d.ts.map +1 -1
  106. package/dist/models/GetSearchTimeline200Response.d.ts +1 -1
  107. package/dist/models/GetSearchTimeline200Response.d.ts.map +1 -1
  108. package/dist/models/GetTweetDetail200Response.d.ts +1 -1
  109. package/dist/models/GetTweetDetail200Response.d.ts.map +1 -1
  110. package/dist/models/GetTweetResultByRestId200Response.d.ts +1 -1
  111. package/dist/models/GetTweetResultByRestId200Response.d.ts.map +1 -1
  112. package/dist/models/GetUserByRestId200Response.d.ts +1 -1
  113. package/dist/models/GetUserByRestId200Response.d.ts.map +1 -1
  114. package/dist/models/GetUserHighlightsTweets200Response.d.ts +1 -1
  115. package/dist/models/GetUserHighlightsTweets200Response.d.ts.map +1 -1
  116. package/dist/models/GetUsersByRestIds200Response.d.ts +1 -1
  117. package/dist/models/GetUsersByRestIds200Response.d.ts.map +1 -1
  118. package/dist/models/InstructionType.d.ts +2 -1
  119. package/dist/models/InstructionType.d.ts.map +1 -1
  120. package/dist/models/InstructionType.js +2 -1
  121. package/dist/models/InstructionType.js.map +1 -1
  122. package/dist/models/InstructionUnion.d.ts +4 -1
  123. package/dist/models/InstructionUnion.d.ts.map +1 -1
  124. package/dist/models/InstructionUnion.js +5 -0
  125. package/dist/models/InstructionUnion.js.map +1 -1
  126. package/dist/models/ItemContentUnion.d.ts +1 -1
  127. package/dist/models/ItemContentUnion.d.ts.map +1 -1
  128. package/dist/models/ItemResult.d.ts +1 -1
  129. package/dist/models/ItemResult.d.ts.map +1 -1
  130. package/dist/models/ItemResult.js +1 -2
  131. package/dist/models/ItemResult.js.map +1 -1
  132. package/dist/models/ListTweetsTimeline.d.ts +1 -1
  133. package/dist/models/ListTweetsTimeline.d.ts.map +1 -1
  134. package/dist/models/ListTweetsTimeline.js +2 -2
  135. package/dist/models/ListTweetsTimeline.js.map +1 -1
  136. package/dist/models/Media.d.ts +15 -15
  137. package/dist/models/Media.d.ts.map +1 -1
  138. package/dist/models/Media.js +14 -7
  139. package/dist/models/Media.js.map +1 -1
  140. package/dist/models/MediaExtended.d.ts +131 -0
  141. package/dist/models/MediaExtended.d.ts.map +1 -0
  142. package/dist/models/MediaExtended.js +103 -0
  143. package/dist/models/MediaExtended.js.map +1 -0
  144. package/dist/models/MediaOriginalInfo.d.ts +5 -6
  145. package/dist/models/MediaOriginalInfo.d.ts.map +1 -1
  146. package/dist/models/MediaOriginalInfo.js +7 -4
  147. package/dist/models/MediaOriginalInfo.js.map +1 -1
  148. package/dist/models/MediaOriginalInfoFocusRect.d.ts +50 -0
  149. package/dist/models/MediaOriginalInfoFocusRect.d.ts.map +1 -0
  150. package/dist/models/MediaOriginalInfoFocusRect.js +60 -0
  151. package/dist/models/MediaOriginalInfoFocusRect.js.map +1 -0
  152. package/dist/models/MediaSize.d.ts +52 -0
  153. package/dist/models/MediaSize.d.ts.map +1 -0
  154. package/dist/models/MediaSize.js +64 -0
  155. package/dist/models/MediaSize.js.map +1 -0
  156. package/dist/models/MediaSizes.d.ts +51 -0
  157. package/dist/models/MediaSizes.d.ts.map +1 -0
  158. package/dist/models/MediaSizes.js +61 -0
  159. package/dist/models/MediaSizes.js.map +1 -0
  160. package/dist/models/MediaStats.d.ts +32 -0
  161. package/dist/models/MediaStats.d.ts.map +1 -0
  162. package/dist/models/MediaStats.js +51 -0
  163. package/dist/models/MediaStats.js.map +1 -0
  164. package/dist/models/MediaVideoInfo.d.ts +45 -0
  165. package/dist/models/MediaVideoInfo.d.ts.map +1 -0
  166. package/dist/models/MediaVideoInfo.js +58 -0
  167. package/dist/models/MediaVideoInfo.js.map +1 -0
  168. package/dist/models/MediaVideoInfoVariant.d.ts +44 -0
  169. package/dist/models/MediaVideoInfoVariant.d.ts.map +1 -0
  170. package/dist/models/MediaVideoInfoVariant.js +57 -0
  171. package/dist/models/MediaVideoInfoVariant.js.map +1 -0
  172. package/dist/models/ModuleEntry.d.ts +3 -4
  173. package/dist/models/ModuleEntry.d.ts.map +1 -1
  174. package/dist/models/ModuleEntry.js +3 -2
  175. package/dist/models/ModuleEntry.js.map +1 -1
  176. package/dist/models/Other200Response.d.ts +1 -1
  177. package/dist/models/Other200Response.d.ts.map +1 -1
  178. package/dist/models/PostCreateRetweet200Response.d.ts +1 -1
  179. package/dist/models/PostCreateRetweet200Response.d.ts.map +1 -1
  180. package/dist/models/PostCreateTweet200Response.d.ts +1 -1
  181. package/dist/models/PostCreateTweet200Response.d.ts.map +1 -1
  182. package/dist/models/PostCreateTweetRequestFeatures.d.ts +9 -15
  183. package/dist/models/PostCreateTweetRequestFeatures.d.ts.map +1 -1
  184. package/dist/models/PostCreateTweetRequestFeatures.js +9 -12
  185. package/dist/models/PostCreateTweetRequestFeatures.js.map +1 -1
  186. package/dist/models/PostCreateTweetRequestVariablesMedia.d.ts +3 -2
  187. package/dist/models/PostCreateTweetRequestVariablesMedia.d.ts.map +1 -1
  188. package/dist/models/PostCreateTweetRequestVariablesMedia.js +3 -2
  189. package/dist/models/PostCreateTweetRequestVariablesMedia.js.map +1 -1
  190. package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.d.ts +38 -0
  191. package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.d.ts.map +1 -0
  192. package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.js +54 -0
  193. package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.js.map +1 -0
  194. package/dist/models/PostDeleteRetweet200Response.d.ts +1 -1
  195. package/dist/models/PostDeleteRetweet200Response.d.ts.map +1 -1
  196. package/dist/models/PostDeleteTweet200Response.d.ts +1 -1
  197. package/dist/models/PostDeleteTweet200Response.d.ts.map +1 -1
  198. package/dist/models/PostFavoriteTweet200Response.d.ts +1 -1
  199. package/dist/models/PostFavoriteTweet200Response.d.ts.map +1 -1
  200. package/dist/models/PostUnfavoriteTweet200Response.d.ts +1 -1
  201. package/dist/models/PostUnfavoriteTweet200Response.d.ts.map +1 -1
  202. package/dist/models/SelfThread.d.ts +32 -0
  203. package/dist/models/SelfThread.d.ts.map +1 -0
  204. package/dist/models/SelfThread.js +51 -0
  205. package/dist/models/SelfThread.js.map +1 -0
  206. package/dist/models/Session.d.ts +8 -1
  207. package/dist/models/Session.d.ts.map +1 -1
  208. package/dist/models/Session.js +7 -1
  209. package/dist/models/Session.js.map +1 -1
  210. package/dist/models/Text.d.ts +39 -0
  211. package/dist/models/Text.d.ts.map +1 -0
  212. package/dist/models/Text.js +55 -0
  213. package/dist/models/Text.js.map +1 -0
  214. package/dist/models/TextEntity.d.ts +45 -0
  215. package/dist/models/TextEntity.d.ts.map +1 -0
  216. package/dist/models/TextEntity.js +58 -0
  217. package/dist/models/TextEntity.js.map +1 -0
  218. package/dist/models/TextEntityRef.d.ts +58 -0
  219. package/dist/models/TextEntityRef.d.ts.map +1 -0
  220. package/dist/models/TextEntityRef.js +69 -0
  221. package/dist/models/TextEntityRef.js.map +1 -0
  222. package/dist/models/TimelineCoverBehavior.d.ts +39 -0
  223. package/dist/models/TimelineCoverBehavior.d.ts.map +1 -0
  224. package/dist/models/TimelineCoverBehavior.js +57 -0
  225. package/dist/models/TimelineCoverBehavior.js.map +1 -0
  226. package/dist/models/TimelineHalfCover.d.ts +85 -0
  227. package/dist/models/TimelineHalfCover.d.ts.map +1 -0
  228. package/dist/models/TimelineHalfCover.js +84 -0
  229. package/dist/models/TimelineHalfCover.js.map +1 -0
  230. package/dist/models/TimelineShowAlert.d.ts +2 -2
  231. package/dist/models/TimelineShowAlert.d.ts.map +1 -1
  232. package/dist/models/TimelineShowCover.d.ts +47 -0
  233. package/dist/models/TimelineShowCover.d.ts.map +1 -0
  234. package/dist/models/TimelineShowCover.js +60 -0
  235. package/dist/models/TimelineShowCover.js.map +1 -0
  236. package/dist/models/TimelineTerminateTimeline.d.ts +1 -1
  237. package/dist/models/TimelineTerminateTimeline.d.ts.map +1 -1
  238. package/dist/models/TimelineTimelineItem.d.ts +3 -4
  239. package/dist/models/TimelineTimelineItem.d.ts.map +1 -1
  240. package/dist/models/TimelineTimelineItem.js +3 -2
  241. package/dist/models/TimelineTimelineItem.js.map +1 -1
  242. package/dist/models/TimelineTimelineModule.d.ts +9 -1
  243. package/dist/models/TimelineTimelineModule.d.ts.map +1 -1
  244. package/dist/models/TimelineTimelineModule.js +8 -1
  245. package/dist/models/TimelineTimelineModule.js.map +1 -1
  246. package/dist/models/TimelineUser.d.ts +10 -1
  247. package/dist/models/TimelineUser.d.ts.map +1 -1
  248. package/dist/models/TimelineUser.js +9 -1
  249. package/dist/models/TimelineUser.js.map +1 -1
  250. package/dist/models/Tweet.d.ts +11 -5
  251. package/dist/models/Tweet.d.ts.map +1 -1
  252. package/dist/models/Tweet.js +7 -7
  253. package/dist/models/Tweet.js.map +1 -1
  254. package/dist/models/TweetCardLegacy.d.ts +3 -3
  255. package/dist/models/TweetCardLegacy.d.ts.map +1 -1
  256. package/dist/models/TweetCardLegacy.js +3 -3
  257. package/dist/models/TweetCardLegacy.js.map +1 -1
  258. package/dist/models/TweetCardLegacyBindingValue.d.ts +39 -0
  259. package/dist/models/TweetCardLegacyBindingValue.d.ts.map +1 -0
  260. package/dist/models/TweetCardLegacyBindingValue.js +55 -0
  261. package/dist/models/TweetCardLegacyBindingValue.js.map +1 -0
  262. package/dist/models/TweetCardLegacyBindingValueData.d.ts +50 -0
  263. package/dist/models/TweetCardLegacyBindingValueData.d.ts.map +1 -0
  264. package/dist/models/{TweetCardLegacyBindingValuesInnerValue.js → TweetCardLegacyBindingValueData.js} +12 -12
  265. package/dist/models/TweetCardLegacyBindingValueData.js.map +1 -0
  266. package/dist/models/TweetEditControl.d.ts +13 -0
  267. package/dist/models/TweetEditControl.d.ts.map +1 -1
  268. package/dist/models/TweetEditControl.js +5 -0
  269. package/dist/models/TweetEditControl.js.map +1 -1
  270. package/dist/models/TweetEditControlInitial.d.ts +50 -0
  271. package/dist/models/TweetEditControlInitial.d.ts.map +1 -0
  272. package/dist/models/TweetEditControlInitial.js +60 -0
  273. package/dist/models/TweetEditControlInitial.js.map +1 -0
  274. package/dist/models/TweetLegacy.d.ts +3 -3
  275. package/dist/models/TweetLegacy.d.ts.map +1 -1
  276. package/dist/models/TweetLegacy.js +3 -3
  277. package/dist/models/TweetLegacy.js.map +1 -1
  278. package/dist/models/TweetUnion.d.ts +1 -1
  279. package/dist/models/TweetUnion.d.ts.map +1 -1
  280. package/dist/models/TweetView.d.ts +45 -0
  281. package/dist/models/TweetView.d.ts.map +1 -0
  282. package/dist/models/{TweetViews.js → TweetView.js} +20 -13
  283. package/dist/models/TweetView.js.map +1 -0
  284. package/dist/models/TypeName.d.ts +2 -1
  285. package/dist/models/TypeName.d.ts.map +1 -1
  286. package/dist/models/TypeName.js +1 -0
  287. package/dist/models/TypeName.js.map +1 -1
  288. package/dist/models/UserResults.d.ts +1 -1
  289. package/dist/models/UserResults.d.ts.map +1 -1
  290. package/dist/models/UserResults.js +2 -2
  291. package/dist/models/UserResults.js.map +1 -1
  292. package/dist/models/UserUnion.d.ts +1 -1
  293. package/dist/models/UserUnion.d.ts.map +1 -1
  294. package/dist/models/index.d.ts +29 -4
  295. package/dist/models/index.d.ts.map +1 -1
  296. package/dist/models/index.js +29 -4
  297. package/dist/models/index.js.map +1 -1
  298. package/dist/runtime.d.ts +9 -9
  299. package/dist/runtime.d.ts.map +1 -1
  300. package/dist/runtime.js +1 -1
  301. package/package.json +2 -2
  302. package/src/apis/DefaultApi.ts +94 -6
  303. package/src/apis/OtherApi.ts +47 -3
  304. package/src/apis/PostApi.ts +282 -18
  305. package/src/apis/TweetApi.ts +526 -51
  306. package/src/apis/UserApi.ts +103 -6
  307. package/src/apis/UserListApi.ts +235 -24
  308. package/src/apis/UsersApi.ts +47 -3
  309. package/src/apis/V11GetApi.ts +94 -6
  310. package/src/apis/V11PostApi.ts +94 -6
  311. package/src/apis/V20GetApi.ts +47 -3
  312. package/src/models/AdditionalMediaInfo.ts +66 -0
  313. package/src/models/Callback.ts +66 -0
  314. package/src/models/ClientEventInfo.ts +81 -0
  315. package/src/models/CoverCta.ts +129 -0
  316. package/src/models/CtaClientEventInfo.ts +76 -0
  317. package/src/models/DeleteRetweet.ts +73 -0
  318. package/src/models/DeleteRetweetResponseResult.ts +72 -0
  319. package/src/models/ErrorResponse.ts +73 -0
  320. package/src/models/ExtMediaAvailability.ts +75 -0
  321. package/src/models/ExtendedEntities.ts +9 -9
  322. package/src/models/Extensions.ts +109 -0
  323. package/src/models/InstructionType.ts +2 -1
  324. package/src/models/InstructionUnion.ts +12 -1
  325. package/src/models/ItemResult.ts +2 -3
  326. package/src/models/ListTweetsTimeline.ts +2 -3
  327. package/src/models/Media.ts +27 -17
  328. package/src/models/MediaExtended.ts +236 -0
  329. package/src/models/MediaOriginalInfo.ts +17 -8
  330. package/src/models/MediaOriginalInfoFocusRect.ts +93 -0
  331. package/src/models/MediaSize.ts +95 -0
  332. package/src/models/MediaSizes.ts +100 -0
  333. package/src/models/MediaStats.ts +66 -0
  334. package/src/models/MediaVideoInfo.ts +90 -0
  335. package/src/models/MediaVideoInfoVariant.ts +83 -0
  336. package/src/models/ModuleEntry.ts +10 -4
  337. package/src/models/PostCreateTweetRequestFeatures.ts +18 -27
  338. package/src/models/PostCreateTweetRequestVariablesMedia.ts +11 -4
  339. package/src/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.ts +75 -0
  340. package/src/models/{TweetLegacySelfThread.ts → SelfThread.ts} +9 -9
  341. package/src/models/Session.ts +11 -1
  342. package/src/models/Text.ts +82 -0
  343. package/src/models/TextEntity.ts +91 -0
  344. package/src/models/TextEntityRef.ts +102 -0
  345. package/src/models/TimelineCoverBehavior.ts +76 -0
  346. package/src/models/TimelineHalfCover.ts +157 -0
  347. package/src/models/TimelineShowCover.ts +103 -0
  348. package/src/models/TimelineTimelineItem.ts +10 -4
  349. package/src/models/TimelineTimelineModule.ts +12 -1
  350. package/src/models/TimelineUser.ts +13 -1
  351. package/src/models/Tweet.ts +21 -15
  352. package/src/models/TweetCardLegacy.ts +9 -9
  353. package/src/models/TweetCardLegacyBindingValue.ts +82 -0
  354. package/src/models/{TweetCardLegacyBindingValuesInnerValue.ts → TweetCardLegacyBindingValueData.ts} +12 -12
  355. package/src/models/TweetEditControl.ts +23 -0
  356. package/src/models/TweetEditControlInitial.ts +93 -0
  357. package/src/models/TweetLegacy.ts +9 -9
  358. package/src/models/{TweetViews.ts → TweetView.ts} +23 -12
  359. package/src/models/TypeName.ts +1 -0
  360. package/src/models/UserResults.ts +2 -3
  361. package/src/models/index.ts +29 -4
  362. package/tools/openapi-generator-config.yaml +1 -1
  363. package/tools/win/replace.py +1 -1
  364. package/twitter-openapi/.vscode/launch.json +8 -0
  365. package/twitter-openapi/.vscode/tasks.json +3 -0
  366. package/twitter-openapi/LICENSE +31 -0
  367. package/twitter-openapi/{LICENSE.txt → LICENSE.AGPL} +3 -3
  368. package/twitter-openapi/README.md +4 -1
  369. package/twitter-openapi/dist/compatible/openapi-3.0.yaml +5019 -36
  370. package/twitter-openapi/dist/docs/openapi-3.0.yaml +6817 -36
  371. package/twitter-openapi/src/config/component/security_schemes.yaml +148 -0
  372. package/twitter-openapi/src/config/placeholder.json +145 -112
  373. package/twitter-openapi/src/openapi/openapi-3.0.yaml +2 -2
  374. package/twitter-openapi/src/openapi/paths/other.yaml +2 -1
  375. package/twitter-openapi/src/openapi/paths/timeline.yaml +0 -2
  376. package/twitter-openapi/src/openapi/schemas/content.yaml +20 -8
  377. package/twitter-openapi/src/openapi/schemas/general.yaml +2 -2
  378. package/twitter-openapi/src/openapi/schemas/instruction.yaml +133 -0
  379. package/twitter-openapi/src/openapi/schemas/tweet.yaml +306 -107
  380. package/twitter-openapi/src/openapi/schemas/typename.yaml +1 -0
  381. package/twitter-openapi/src/openapi/schemas/user.yaml +0 -2
  382. package/twitter-openapi/test/python/replace.py +23 -0
  383. package/twitter-openapi/test/python/test_serialize.py +191 -91
  384. package/twitter-openapi/tools/__pycache__/build_config.cpython-310.pyc +0 -0
  385. package/twitter-openapi/tools/__pycache__/hooks.cpython-310.pyc +0 -0
  386. package/twitter-openapi/tools/build.py +35 -31
  387. package/twitter-openapi/tools/build_config.py +7 -10
  388. package/dist/models/TweetCardLegacyBindingValuesInner.d.ts +0 -39
  389. package/dist/models/TweetCardLegacyBindingValuesInner.d.ts.map +0 -1
  390. package/dist/models/TweetCardLegacyBindingValuesInner.js +0 -55
  391. package/dist/models/TweetCardLegacyBindingValuesInner.js.map +0 -1
  392. package/dist/models/TweetCardLegacyBindingValuesInnerValue.d.ts +0 -50
  393. package/dist/models/TweetCardLegacyBindingValuesInnerValue.d.ts.map +0 -1
  394. package/dist/models/TweetCardLegacyBindingValuesInnerValue.js.map +0 -1
  395. package/dist/models/TweetLegacySelfThread.d.ts +0 -32
  396. package/dist/models/TweetLegacySelfThread.d.ts.map +0 -1
  397. package/dist/models/TweetLegacySelfThread.js +0 -51
  398. package/dist/models/TweetLegacySelfThread.js.map +0 -1
  399. package/dist/models/TweetViews.d.ts +0 -38
  400. package/dist/models/TweetViews.d.ts.map +0 -1
  401. package/dist/models/TweetViews.js.map +0 -1
  402. package/src/models/TweetCardLegacyBindingValuesInner.ts +0 -82
  403. package/twitter-openapi/dist/compatible/paths/bookmarks.yaml +0 -107
  404. package/twitter-openapi/dist/compatible/paths/follow.yaml +0 -301
  405. package/twitter-openapi/dist/compatible/paths/other.yaml +0 -97
  406. package/twitter-openapi/dist/compatible/paths/post.yaml +0 -714
  407. package/twitter-openapi/dist/compatible/paths/profile.yaml +0 -126
  408. package/twitter-openapi/dist/compatible/paths/timeline.yaml +0 -416
  409. package/twitter-openapi/dist/compatible/paths/tweet.yaml +0 -397
  410. package/twitter-openapi/dist/compatible/paths/user.yaml +0 -233
  411. package/twitter-openapi/dist/compatible/paths/usertweets.yaml +0 -504
  412. package/twitter-openapi/dist/compatible/paths/v1.1-get.yaml +0 -242
  413. package/twitter-openapi/dist/compatible/paths/v1.1-post.yaml +0 -237
  414. package/twitter-openapi/dist/compatible/paths/v2.0-get.yaml +0 -302
  415. package/twitter-openapi/dist/compatible/resources/parameters.yaml +0 -13
  416. package/twitter-openapi/dist/compatible/response/error.yaml +0 -90
  417. package/twitter-openapi/dist/compatible/schemas/content.yaml +0 -201
  418. package/twitter-openapi/dist/compatible/schemas/error.yaml +0 -94
  419. package/twitter-openapi/dist/compatible/schemas/general.yaml +0 -13
  420. package/twitter-openapi/dist/compatible/schemas/instruction.yaml +0 -156
  421. package/twitter-openapi/dist/compatible/schemas/timeline.yaml +0 -27
  422. package/twitter-openapi/dist/compatible/schemas/tweet.yaml +0 -323
  423. package/twitter-openapi/dist/compatible/schemas/typename.yaml +0 -22
  424. package/twitter-openapi/dist/compatible/schemas/user.yaml +0 -222
  425. package/twitter-openapi/dist/docs/paths/bookmarks.yaml +0 -201
  426. package/twitter-openapi/dist/docs/paths/follow.yaml +0 -587
  427. package/twitter-openapi/dist/docs/paths/other.yaml +0 -97
  428. package/twitter-openapi/dist/docs/paths/post.yaml +0 -692
  429. package/twitter-openapi/dist/docs/paths/profile.yaml +0 -134
  430. package/twitter-openapi/dist/docs/paths/timeline.yaml +0 -811
  431. package/twitter-openapi/dist/docs/paths/tweet.yaml +0 -797
  432. package/twitter-openapi/dist/docs/paths/user.yaml +0 -338
  433. package/twitter-openapi/dist/docs/paths/usertweets.yaml +0 -1046
  434. package/twitter-openapi/dist/docs/paths/v1.1-get.yaml +0 -242
  435. package/twitter-openapi/dist/docs/paths/v1.1-post.yaml +0 -237
  436. package/twitter-openapi/dist/docs/paths/v2.0-get.yaml +0 -302
  437. package/twitter-openapi/dist/docs/resources/parameters.yaml +0 -13
  438. package/twitter-openapi/dist/docs/response/error.yaml +0 -90
  439. package/twitter-openapi/dist/docs/schemas/content.yaml +0 -201
  440. package/twitter-openapi/dist/docs/schemas/error.yaml +0 -94
  441. package/twitter-openapi/dist/docs/schemas/general.yaml +0 -13
  442. package/twitter-openapi/dist/docs/schemas/instruction.yaml +0 -156
  443. package/twitter-openapi/dist/docs/schemas/timeline.yaml +0 -27
  444. package/twitter-openapi/dist/docs/schemas/tweet.yaml +0 -323
  445. package/twitter-openapi/dist/docs/schemas/typename.yaml +0 -22
  446. package/twitter-openapi/dist/docs/schemas/user.yaml +0 -222
@@ -198,15 +198,23 @@ export class V11GetApi extends runtime.BaseAPI {
198
198
  }
199
199
 
200
200
  if (this.configuration && this.configuration.apiKey) {
201
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
201
+ headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
202
202
  }
203
203
 
204
204
  if (this.configuration && this.configuration.apiKey) {
205
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
205
+ headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
206
206
  }
207
207
 
208
208
  if (this.configuration && this.configuration.apiKey) {
209
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
209
+ headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
210
+ }
211
+
212
+ if (this.configuration && this.configuration.apiKey) {
213
+ headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
214
+ }
215
+
216
+ if (this.configuration && this.configuration.apiKey) {
217
+ headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
210
218
  }
211
219
 
212
220
  if (this.configuration && this.configuration.apiKey) {
@@ -225,6 +233,42 @@ export class V11GetApi extends runtime.BaseAPI {
225
233
  headerParameters["Authorization"] = `Bearer ${tokenString}`;
226
234
  }
227
235
  }
236
+ if (this.configuration && this.configuration.apiKey) {
237
+ headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
238
+ }
239
+
240
+ if (this.configuration && this.configuration.apiKey) {
241
+ headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
242
+ }
243
+
244
+ if (this.configuration && this.configuration.apiKey) {
245
+ headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
246
+ }
247
+
248
+ if (this.configuration && this.configuration.apiKey) {
249
+ headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
250
+ }
251
+
252
+ if (this.configuration && this.configuration.apiKey) {
253
+ headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
254
+ }
255
+
256
+ if (this.configuration && this.configuration.apiKey) {
257
+ headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
258
+ }
259
+
260
+ if (this.configuration && this.configuration.apiKey) {
261
+ headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
262
+ }
263
+
264
+ if (this.configuration && this.configuration.apiKey) {
265
+ headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
266
+ }
267
+
268
+ if (this.configuration && this.configuration.apiKey) {
269
+ headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
270
+ }
271
+
228
272
  const response = await this.request({
229
273
  path: `/1.1/friends/following/list.json`,
230
274
  method: 'GET',
@@ -303,15 +347,23 @@ export class V11GetApi extends runtime.BaseAPI {
303
347
  }
304
348
 
305
349
  if (this.configuration && this.configuration.apiKey) {
306
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
350
+ headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
307
351
  }
308
352
 
309
353
  if (this.configuration && this.configuration.apiKey) {
310
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
354
+ headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
311
355
  }
312
356
 
313
357
  if (this.configuration && this.configuration.apiKey) {
314
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
358
+ headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
359
+ }
360
+
361
+ if (this.configuration && this.configuration.apiKey) {
362
+ headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
363
+ }
364
+
365
+ if (this.configuration && this.configuration.apiKey) {
366
+ headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
315
367
  }
316
368
 
317
369
  if (this.configuration && this.configuration.apiKey) {
@@ -330,6 +382,42 @@ export class V11GetApi extends runtime.BaseAPI {
330
382
  headerParameters["Authorization"] = `Bearer ${tokenString}`;
331
383
  }
332
384
  }
385
+ if (this.configuration && this.configuration.apiKey) {
386
+ headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
387
+ }
388
+
389
+ if (this.configuration && this.configuration.apiKey) {
390
+ headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
391
+ }
392
+
393
+ if (this.configuration && this.configuration.apiKey) {
394
+ headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
395
+ }
396
+
397
+ if (this.configuration && this.configuration.apiKey) {
398
+ headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
399
+ }
400
+
401
+ if (this.configuration && this.configuration.apiKey) {
402
+ headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
403
+ }
404
+
405
+ if (this.configuration && this.configuration.apiKey) {
406
+ headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
407
+ }
408
+
409
+ if (this.configuration && this.configuration.apiKey) {
410
+ headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
411
+ }
412
+
413
+ if (this.configuration && this.configuration.apiKey) {
414
+ headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
415
+ }
416
+
417
+ if (this.configuration && this.configuration.apiKey) {
418
+ headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
419
+ }
420
+
333
421
  const response = await this.request({
334
422
  path: `/1.1/search/typeahead.json`,
335
423
  method: 'GET',
@@ -123,15 +123,23 @@ export class V11PostApi extends runtime.BaseAPI {
123
123
  }
124
124
 
125
125
  if (this.configuration && this.configuration.apiKey) {
126
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
126
+ headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
127
127
  }
128
128
 
129
129
  if (this.configuration && this.configuration.apiKey) {
130
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
130
+ headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
131
131
  }
132
132
 
133
133
  if (this.configuration && this.configuration.apiKey) {
134
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
134
+ headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
135
+ }
136
+
137
+ if (this.configuration && this.configuration.apiKey) {
138
+ headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
139
+ }
140
+
141
+ if (this.configuration && this.configuration.apiKey) {
142
+ headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
135
143
  }
136
144
 
137
145
  if (this.configuration && this.configuration.apiKey) {
@@ -150,6 +158,42 @@ export class V11PostApi extends runtime.BaseAPI {
150
158
  headerParameters["Authorization"] = `Bearer ${tokenString}`;
151
159
  }
152
160
  }
161
+ if (this.configuration && this.configuration.apiKey) {
162
+ headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
163
+ }
164
+
165
+ if (this.configuration && this.configuration.apiKey) {
166
+ headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
167
+ }
168
+
169
+ if (this.configuration && this.configuration.apiKey) {
170
+ headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
171
+ }
172
+
173
+ if (this.configuration && this.configuration.apiKey) {
174
+ headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
175
+ }
176
+
177
+ if (this.configuration && this.configuration.apiKey) {
178
+ headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
179
+ }
180
+
181
+ if (this.configuration && this.configuration.apiKey) {
182
+ headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
183
+ }
184
+
185
+ if (this.configuration && this.configuration.apiKey) {
186
+ headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
187
+ }
188
+
189
+ if (this.configuration && this.configuration.apiKey) {
190
+ headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
191
+ }
192
+
193
+ if (this.configuration && this.configuration.apiKey) {
194
+ headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
195
+ }
196
+
153
197
  const consumes: runtime.Consume[] = [
154
198
  { contentType: 'application/x-www-form-urlencoded' },
155
199
  ];
@@ -307,15 +351,23 @@ export class V11PostApi extends runtime.BaseAPI {
307
351
  }
308
352
 
309
353
  if (this.configuration && this.configuration.apiKey) {
310
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
354
+ headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
311
355
  }
312
356
 
313
357
  if (this.configuration && this.configuration.apiKey) {
314
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
358
+ headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
315
359
  }
316
360
 
317
361
  if (this.configuration && this.configuration.apiKey) {
318
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
362
+ headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
363
+ }
364
+
365
+ if (this.configuration && this.configuration.apiKey) {
366
+ headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
367
+ }
368
+
369
+ if (this.configuration && this.configuration.apiKey) {
370
+ headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
319
371
  }
320
372
 
321
373
  if (this.configuration && this.configuration.apiKey) {
@@ -334,6 +386,42 @@ export class V11PostApi extends runtime.BaseAPI {
334
386
  headerParameters["Authorization"] = `Bearer ${tokenString}`;
335
387
  }
336
388
  }
389
+ if (this.configuration && this.configuration.apiKey) {
390
+ headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
391
+ }
392
+
393
+ if (this.configuration && this.configuration.apiKey) {
394
+ headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
395
+ }
396
+
397
+ if (this.configuration && this.configuration.apiKey) {
398
+ headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
399
+ }
400
+
401
+ if (this.configuration && this.configuration.apiKey) {
402
+ headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
403
+ }
404
+
405
+ if (this.configuration && this.configuration.apiKey) {
406
+ headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
407
+ }
408
+
409
+ if (this.configuration && this.configuration.apiKey) {
410
+ headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
411
+ }
412
+
413
+ if (this.configuration && this.configuration.apiKey) {
414
+ headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
415
+ }
416
+
417
+ if (this.configuration && this.configuration.apiKey) {
418
+ headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
419
+ }
420
+
421
+ if (this.configuration && this.configuration.apiKey) {
422
+ headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
423
+ }
424
+
337
425
  const consumes: runtime.Consume[] = [
338
426
  { contentType: 'application/x-www-form-urlencoded' },
339
427
  ];
@@ -369,15 +369,23 @@ export class V20GetApi extends runtime.BaseAPI {
369
369
  }
370
370
 
371
371
  if (this.configuration && this.configuration.apiKey) {
372
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
372
+ headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
373
373
  }
374
374
 
375
375
  if (this.configuration && this.configuration.apiKey) {
376
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
376
+ headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
377
377
  }
378
378
 
379
379
  if (this.configuration && this.configuration.apiKey) {
380
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
380
+ headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
381
+ }
382
+
383
+ if (this.configuration && this.configuration.apiKey) {
384
+ headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
385
+ }
386
+
387
+ if (this.configuration && this.configuration.apiKey) {
388
+ headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
381
389
  }
382
390
 
383
391
  if (this.configuration && this.configuration.apiKey) {
@@ -396,6 +404,42 @@ export class V20GetApi extends runtime.BaseAPI {
396
404
  headerParameters["Authorization"] = `Bearer ${tokenString}`;
397
405
  }
398
406
  }
407
+ if (this.configuration && this.configuration.apiKey) {
408
+ headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
409
+ }
410
+
411
+ if (this.configuration && this.configuration.apiKey) {
412
+ headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
413
+ }
414
+
415
+ if (this.configuration && this.configuration.apiKey) {
416
+ headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
417
+ }
418
+
419
+ if (this.configuration && this.configuration.apiKey) {
420
+ headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
421
+ }
422
+
423
+ if (this.configuration && this.configuration.apiKey) {
424
+ headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
425
+ }
426
+
427
+ if (this.configuration && this.configuration.apiKey) {
428
+ headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
429
+ }
430
+
431
+ if (this.configuration && this.configuration.apiKey) {
432
+ headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
433
+ }
434
+
435
+ if (this.configuration && this.configuration.apiKey) {
436
+ headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
437
+ }
438
+
439
+ if (this.configuration && this.configuration.apiKey) {
440
+ headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
441
+ }
442
+
399
443
  const response = await this.request({
400
444
  path: `/2/search/adaptive.json`,
401
445
  method: 'GET',
@@ -0,0 +1,66 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Twitter OpenAPI
5
+ * Twitter OpenAPI(Swagger) specification
6
+ *
7
+ * The version of the OpenAPI document: 0.0.1
8
+ * Contact: yuki@yuki0311.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface AdditionalMediaInfo
20
+ */
21
+ export interface AdditionalMediaInfo {
22
+ /**
23
+ *
24
+ * @type {boolean}
25
+ * @memberof AdditionalMediaInfo
26
+ */
27
+ monetizable: boolean;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the AdditionalMediaInfo interface.
32
+ */
33
+ export function instanceOfAdditionalMediaInfo(value: object): boolean {
34
+ let isInstance = true;
35
+ isInstance = isInstance && "monetizable" in value;
36
+
37
+ return isInstance;
38
+ }
39
+
40
+ export function AdditionalMediaInfoFromJSON(json: any): AdditionalMediaInfo {
41
+ return AdditionalMediaInfoFromJSONTyped(json, false);
42
+ }
43
+
44
+ export function AdditionalMediaInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdditionalMediaInfo {
45
+ if ((json === undefined) || (json === null)) {
46
+ return json;
47
+ }
48
+ return {
49
+
50
+ 'monetizable': json['monetizable'],
51
+ };
52
+ }
53
+
54
+ export function AdditionalMediaInfoToJSON(value?: AdditionalMediaInfo | null): any {
55
+ if (value === undefined) {
56
+ return undefined;
57
+ }
58
+ if (value === null) {
59
+ return null;
60
+ }
61
+ return {
62
+
63
+ 'monetizable': value.monetizable,
64
+ };
65
+ }
66
+
@@ -0,0 +1,66 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Twitter OpenAPI
5
+ * Twitter OpenAPI(Swagger) specification
6
+ *
7
+ * The version of the OpenAPI document: 0.0.1
8
+ * Contact: yuki@yuki0311.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface Callback
20
+ */
21
+ export interface Callback {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof Callback
26
+ */
27
+ endpoint: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the Callback interface.
32
+ */
33
+ export function instanceOfCallback(value: object): boolean {
34
+ let isInstance = true;
35
+ isInstance = isInstance && "endpoint" in value;
36
+
37
+ return isInstance;
38
+ }
39
+
40
+ export function CallbackFromJSON(json: any): Callback {
41
+ return CallbackFromJSONTyped(json, false);
42
+ }
43
+
44
+ export function CallbackFromJSONTyped(json: any, ignoreDiscriminator: boolean): Callback {
45
+ if ((json === undefined) || (json === null)) {
46
+ return json;
47
+ }
48
+ return {
49
+
50
+ 'endpoint': json['endpoint'],
51
+ };
52
+ }
53
+
54
+ export function CallbackToJSON(value?: Callback | null): any {
55
+ if (value === undefined) {
56
+ return undefined;
57
+ }
58
+ if (value === null) {
59
+ return null;
60
+ }
61
+ return {
62
+
63
+ 'endpoint': value.endpoint,
64
+ };
65
+ }
66
+
@@ -0,0 +1,81 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Twitter OpenAPI
5
+ * Twitter OpenAPI(Swagger) specification
6
+ *
7
+ * The version of the OpenAPI document: 0.0.1
8
+ * Contact: yuki@yuki0311.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ClientEventInfo
20
+ */
21
+ export interface ClientEventInfo {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ClientEventInfo
26
+ */
27
+ component?: string;
28
+ /**
29
+ *
30
+ * @type {{ [key: string]: any; }}
31
+ * @memberof ClientEventInfo
32
+ */
33
+ details?: { [key: string]: any; };
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof ClientEventInfo
38
+ */
39
+ element?: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the ClientEventInfo interface.
44
+ */
45
+ export function instanceOfClientEventInfo(value: object): boolean {
46
+ let isInstance = true;
47
+
48
+ return isInstance;
49
+ }
50
+
51
+ export function ClientEventInfoFromJSON(json: any): ClientEventInfo {
52
+ return ClientEventInfoFromJSONTyped(json, false);
53
+ }
54
+
55
+ export function ClientEventInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientEventInfo {
56
+ if ((json === undefined) || (json === null)) {
57
+ return json;
58
+ }
59
+ return {
60
+
61
+ 'component': !exists(json, 'component') ? undefined : json['component'],
62
+ 'details': !exists(json, 'details') ? undefined : json['details'],
63
+ 'element': !exists(json, 'element') ? undefined : json['element'],
64
+ };
65
+ }
66
+
67
+ export function ClientEventInfoToJSON(value?: ClientEventInfo | null): any {
68
+ if (value === undefined) {
69
+ return undefined;
70
+ }
71
+ if (value === null) {
72
+ return null;
73
+ }
74
+ return {
75
+
76
+ 'component': value.component,
77
+ 'details': value.details,
78
+ 'element': value.element,
79
+ };
80
+ }
81
+