twitter-openapi-typescript-generated 0.0.2 → 0.0.4

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 (334) hide show
  1. package/.openapi-generator/FILES +0 -1
  2. package/.openapi-generator/VERSION +1 -1
  3. package/.openapi-generator-ignore +2 -1
  4. package/README.md +2 -2
  5. package/package.json +1 -1
  6. package/src/apis/DefaultApi.ts +4 -0
  7. package/src/apis/OtherApi.ts +4 -0
  8. package/src/apis/PostApi.ts +24 -0
  9. package/src/apis/TweetApi.ts +36 -0
  10. package/src/apis/UserApi.ts +4 -0
  11. package/src/apis/UserListApi.ts +8 -0
  12. package/src/apis/V11GetApi.ts +8 -0
  13. package/src/apis/V11PostApi.ts +8 -0
  14. package/src/apis/V20GetApi.ts +4 -0
  15. package/tools/openapi-generator-config.yaml +1 -1
  16. package/tools/win/replace.py +13 -0
  17. package/tsconfig.json +22 -20
  18. package/twitter-openapi/src/openapi/openapi-3.0.yaml +8 -1
  19. package/twitter-openapi/tools/__pycache__/build_config.cpython-310.pyc +0 -0
  20. package/twitter-openapi/tools/__pycache__/hooks.cpython-310.pyc +0 -0
  21. package/dist/apis/DefaultApi.d.ts +0 -31
  22. package/dist/apis/DefaultApi.js +0 -163
  23. package/dist/apis/OtherApi.d.ts +0 -26
  24. package/dist/apis/OtherApi.js +0 -145
  25. package/dist/apis/PostApi.d.ts +0 -84
  26. package/dist/apis/PostApi.js +0 -500
  27. package/dist/apis/TweetApi.d.ts +0 -135
  28. package/dist/apis/TweetApi.js +0 -827
  29. package/dist/apis/UserApi.d.ts +0 -31
  30. package/dist/apis/UserApi.js +0 -163
  31. package/dist/apis/UserListApi.d.ts +0 -44
  32. package/dist/apis/UserListApi.js +0 -246
  33. package/dist/apis/V11GetApi.d.ts +0 -60
  34. package/dist/apis/V11GetApi.js +0 -343
  35. package/dist/apis/V11PostApi.d.ts +0 -65
  36. package/dist/apis/V11PostApi.js +0 -399
  37. package/dist/apis/V20GetApi.d.ts +0 -64
  38. package/dist/apis/V20GetApi.js +0 -364
  39. package/dist/apis/index.d.ts +0 -9
  40. package/dist/apis/index.js +0 -27
  41. package/dist/index.d.ts +0 -3
  42. package/dist/index.js +0 -21
  43. package/dist/models/BookmarksResponse.d.ts +0 -32
  44. package/dist/models/BookmarksResponse.js +0 -51
  45. package/dist/models/BookmarksResponseData.d.ts +0 -32
  46. package/dist/models/BookmarksResponseData.js +0 -51
  47. package/dist/models/BookmarksTimeline.d.ts +0 -32
  48. package/dist/models/BookmarksTimeline.js +0 -51
  49. package/dist/models/CommunitiesActions.d.ts +0 -31
  50. package/dist/models/CommunitiesActions.js +0 -50
  51. package/dist/models/ContentEntryType.d.ts +0 -24
  52. package/dist/models/ContentEntryType.js +0 -37
  53. package/dist/models/ContentItemType.d.ts +0 -24
  54. package/dist/models/ContentItemType.js +0 -37
  55. package/dist/models/ContentUnion.d.ts +0 -29
  56. package/dist/models/ContentUnion.js +0 -69
  57. package/dist/models/CreateRetweet.d.ts +0 -32
  58. package/dist/models/CreateRetweet.js +0 -51
  59. package/dist/models/CreateRetweetResponse.d.ts +0 -32
  60. package/dist/models/CreateRetweetResponse.js +0 -51
  61. package/dist/models/CreateRetweetResponseData.d.ts +0 -32
  62. package/dist/models/CreateRetweetResponseData.js +0 -51
  63. package/dist/models/CreateRetweetResponseResult.d.ts +0 -32
  64. package/dist/models/CreateRetweetResponseResult.js +0 -51
  65. package/dist/models/CreateTweet.d.ts +0 -32
  66. package/dist/models/CreateTweet.js +0 -51
  67. package/dist/models/CreateTweetResponse.d.ts +0 -32
  68. package/dist/models/CreateTweetResponse.js +0 -51
  69. package/dist/models/CreateTweetResponseData.d.ts +0 -32
  70. package/dist/models/CreateTweetResponseData.js +0 -51
  71. package/dist/models/CreateTweetResponseResult.d.ts +0 -32
  72. package/dist/models/CreateTweetResponseResult.js +0 -51
  73. package/dist/models/DeleteRetweetResponse.d.ts +0 -32
  74. package/dist/models/DeleteRetweetResponse.js +0 -51
  75. package/dist/models/DeleteRetweetResponseData.d.ts +0 -32
  76. package/dist/models/DeleteRetweetResponseData.js +0 -51
  77. package/dist/models/DeleteTweetResponse.d.ts +0 -32
  78. package/dist/models/DeleteTweetResponse.js +0 -51
  79. package/dist/models/DeleteTweetResponseData.d.ts +0 -32
  80. package/dist/models/DeleteTweetResponseData.js +0 -51
  81. package/dist/models/DeleteTweetResponseResult.d.ts +0 -31
  82. package/dist/models/DeleteTweetResponseResult.js +0 -50
  83. package/dist/models/Entities.d.ts +0 -56
  84. package/dist/models/Entities.js +0 -63
  85. package/dist/models/ExtendedEntities.d.ts +0 -32
  86. package/dist/models/ExtendedEntities.js +0 -51
  87. package/dist/models/FavoriteTweet.d.ts +0 -31
  88. package/dist/models/FavoriteTweet.js +0 -50
  89. package/dist/models/FavoriteTweetResponseData.d.ts +0 -32
  90. package/dist/models/FavoriteTweetResponseData.js +0 -51
  91. package/dist/models/FollowResponse.d.ts +0 -32
  92. package/dist/models/FollowResponse.js +0 -51
  93. package/dist/models/FollowResponseData.d.ts +0 -32
  94. package/dist/models/FollowResponseData.js +0 -51
  95. package/dist/models/FollowResponseResult.d.ts +0 -39
  96. package/dist/models/FollowResponseResult.js +0 -55
  97. package/dist/models/FollowResponseUser.d.ts +0 -32
  98. package/dist/models/FollowResponseUser.js +0 -51
  99. package/dist/models/FollowTimeline.d.ts +0 -32
  100. package/dist/models/FollowTimeline.js +0 -51
  101. package/dist/models/HomeTimelineHome.d.ts +0 -32
  102. package/dist/models/HomeTimelineHome.js +0 -51
  103. package/dist/models/HomeTimelineResponseData.d.ts +0 -32
  104. package/dist/models/HomeTimelineResponseData.js +0 -51
  105. package/dist/models/InstructionType.d.ts +0 -25
  106. package/dist/models/InstructionType.js +0 -38
  107. package/dist/models/InstructionUnion.d.ts +0 -32
  108. package/dist/models/InstructionUnion.js +0 -74
  109. package/dist/models/ItemContentUnion.d.ts +0 -29
  110. package/dist/models/ItemContentUnion.js +0 -69
  111. package/dist/models/ItemResult.d.ts +0 -39
  112. package/dist/models/ItemResult.js +0 -55
  113. package/dist/models/ListTweetsTimeline.d.ts +0 -32
  114. package/dist/models/ListTweetsTimeline.js +0 -51
  115. package/dist/models/ListTweetsTimelineData.d.ts +0 -32
  116. package/dist/models/ListTweetsTimelineData.js +0 -51
  117. package/dist/models/ListTweetsTimelineList.d.ts +0 -32
  118. package/dist/models/ListTweetsTimelineList.js +0 -51
  119. package/dist/models/ListTweetsTimelineResponse.d.ts +0 -32
  120. package/dist/models/ListTweetsTimelineResponse.js +0 -51
  121. package/dist/models/Media.d.ts +0 -92
  122. package/dist/models/Media.js +0 -80
  123. package/dist/models/MediaOriginalInfo.d.ts +0 -43
  124. package/dist/models/MediaOriginalInfo.js +0 -54
  125. package/dist/models/ModuleEntry.d.ts +0 -38
  126. package/dist/models/ModuleEntry.js +0 -54
  127. package/dist/models/ModuleItem.d.ts +0 -38
  128. package/dist/models/ModuleItem.js +0 -54
  129. package/dist/models/OneFactorLoginEligibility.d.ts +0 -31
  130. package/dist/models/OneFactorLoginEligibility.js +0 -50
  131. package/dist/models/OtherResponse.d.ts +0 -32
  132. package/dist/models/OtherResponse.js +0 -51
  133. package/dist/models/PostCreateRetweetRequest.d.ts +0 -38
  134. package/dist/models/PostCreateRetweetRequest.js +0 -54
  135. package/dist/models/PostCreateTweetRequest.d.ts +0 -45
  136. package/dist/models/PostCreateTweetRequest.js +0 -58
  137. package/dist/models/PostCreateTweetRequestFeatures.d.ts +0 -139
  138. package/dist/models/PostCreateTweetRequestFeatures.js +0 -104
  139. package/dist/models/PostCreateTweetRequestVariables.d.ts +0 -50
  140. package/dist/models/PostCreateTweetRequestVariables.js +0 -60
  141. package/dist/models/PostCreateTweetRequestVariablesMedia.d.ts +0 -37
  142. package/dist/models/PostCreateTweetRequestVariablesMedia.js +0 -53
  143. package/dist/models/PostDeleteRetweetRequest.d.ts +0 -38
  144. package/dist/models/PostDeleteRetweetRequest.js +0 -54
  145. package/dist/models/PostDeleteRetweetRequestVariables.d.ts +0 -37
  146. package/dist/models/PostDeleteRetweetRequestVariables.js +0 -53
  147. package/dist/models/PostDeleteTweetRequest.d.ts +0 -38
  148. package/dist/models/PostDeleteTweetRequest.js +0 -54
  149. package/dist/models/PostDeleteTweetRequestVariables.d.ts +0 -37
  150. package/dist/models/PostDeleteTweetRequestVariables.js +0 -53
  151. package/dist/models/PostFavoriteTweetRequest.d.ts +0 -38
  152. package/dist/models/PostFavoriteTweetRequest.js +0 -54
  153. package/dist/models/PostUnfavoriteTweetRequest.d.ts +0 -38
  154. package/dist/models/PostUnfavoriteTweetRequest.js +0 -54
  155. package/dist/models/ProfileResponse.d.ts +0 -32
  156. package/dist/models/ProfileResponse.js +0 -51
  157. package/dist/models/ProfileResponseData.d.ts +0 -32
  158. package/dist/models/ProfileResponseData.js +0 -51
  159. package/dist/models/Retweet.d.ts +0 -38
  160. package/dist/models/Retweet.js +0 -54
  161. package/dist/models/RetweetLegacy.d.ts +0 -31
  162. package/dist/models/RetweetLegacy.js +0 -50
  163. package/dist/models/Session.d.ts +0 -112
  164. package/dist/models/Session.js +0 -92
  165. package/dist/models/SocialContext.d.ts +0 -43
  166. package/dist/models/SocialContext.js +0 -54
  167. package/dist/models/Timeline.d.ts +0 -44
  168. package/dist/models/Timeline.js +0 -56
  169. package/dist/models/TimelineAddEntries.d.ts +0 -39
  170. package/dist/models/TimelineAddEntries.js +0 -55
  171. package/dist/models/TimelineAddEntry.d.ts +0 -44
  172. package/dist/models/TimelineAddEntry.js +0 -57
  173. package/dist/models/TimelineClearCache.d.ts +0 -32
  174. package/dist/models/TimelineClearCache.js +0 -51
  175. package/dist/models/TimelinePinEntry.d.ts +0 -39
  176. package/dist/models/TimelinePinEntry.js +0 -55
  177. package/dist/models/TimelineResponse.d.ts +0 -32
  178. package/dist/models/TimelineResponse.js +0 -51
  179. package/dist/models/TimelineTerminateTimeline.d.ts +0 -46
  180. package/dist/models/TimelineTerminateTimeline.js +0 -61
  181. package/dist/models/TimelineTimelineCursor.d.ts +0 -68
  182. package/dist/models/TimelineTimelineCursor.js +0 -73
  183. package/dist/models/TimelineTimelineItem.d.ts +0 -58
  184. package/dist/models/TimelineTimelineItem.js +0 -64
  185. package/dist/models/TimelineTimelineModule.d.ts +0 -70
  186. package/dist/models/TimelineTimelineModule.js +0 -69
  187. package/dist/models/TimelineTweet.d.ts +0 -65
  188. package/dist/models/TimelineTweet.js +0 -68
  189. package/dist/models/TimelineUser.d.ts +0 -59
  190. package/dist/models/TimelineUser.js +0 -66
  191. package/dist/models/TimelineV2.d.ts +0 -32
  192. package/dist/models/TimelineV2.js +0 -51
  193. package/dist/models/Tweet.d.ts +0 -92
  194. package/dist/models/Tweet.js +0 -82
  195. package/dist/models/TweetDetailResponse.d.ts +0 -32
  196. package/dist/models/TweetDetailResponse.js +0 -51
  197. package/dist/models/TweetDetailResponseData.d.ts +0 -32
  198. package/dist/models/TweetDetailResponseData.js +0 -51
  199. package/dist/models/TweetEditControl.d.ts +0 -49
  200. package/dist/models/TweetEditControl.js +0 -56
  201. package/dist/models/TweetEditPrespective.d.ts +0 -37
  202. package/dist/models/TweetEditPrespective.js +0 -52
  203. package/dist/models/TweetLegacy.d.ts +0 -154
  204. package/dist/models/TweetLegacy.js +0 -110
  205. package/dist/models/TweetTombstone.d.ts +0 -32
  206. package/dist/models/TweetTombstone.js +0 -51
  207. package/dist/models/TweetUnion.d.ts +0 -29
  208. package/dist/models/TweetUnion.js +0 -69
  209. package/dist/models/TweetViews.d.ts +0 -37
  210. package/dist/models/TweetViews.js +0 -52
  211. package/dist/models/TweetWithVisibilityResults.d.ts +0 -39
  212. package/dist/models/TweetWithVisibilityResults.js +0 -55
  213. package/dist/models/TypeName.d.ts +0 -30
  214. package/dist/models/TypeName.js +0 -43
  215. package/dist/models/UnfavoriteTweet.d.ts +0 -31
  216. package/dist/models/UnfavoriteTweet.js +0 -50
  217. package/dist/models/UnfavoriteTweetResponseData.d.ts +0 -32
  218. package/dist/models/UnfavoriteTweetResponseData.js +0 -51
  219. package/dist/models/User.d.ts +0 -99
  220. package/dist/models/User.js +0 -83
  221. package/dist/models/UserFeatures.d.ts +0 -31
  222. package/dist/models/UserFeatures.js +0 -50
  223. package/dist/models/UserLegacy.d.ts +0 -259
  224. package/dist/models/UserLegacy.js +0 -161
  225. package/dist/models/UserResponse.d.ts +0 -32
  226. package/dist/models/UserResponse.js +0 -51
  227. package/dist/models/UserResponseData.d.ts +0 -32
  228. package/dist/models/UserResponseData.js +0 -51
  229. package/dist/models/UserResultByScreenName.d.ts +0 -38
  230. package/dist/models/UserResultByScreenName.js +0 -54
  231. package/dist/models/UserResultByScreenNameLegacy.d.ts +0 -67
  232. package/dist/models/UserResultByScreenNameLegacy.js +0 -62
  233. package/dist/models/UserResultByScreenNameResult.d.ts +0 -57
  234. package/dist/models/UserResultByScreenNameResult.js +0 -64
  235. package/dist/models/UserResultCore.d.ts +0 -32
  236. package/dist/models/UserResultCore.js +0 -51
  237. package/dist/models/UserResults.d.ts +0 -32
  238. package/dist/models/UserResults.js +0 -51
  239. package/dist/models/UserTweetsData.d.ts +0 -32
  240. package/dist/models/UserTweetsData.js +0 -51
  241. package/dist/models/UserTweetsResponse.d.ts +0 -32
  242. package/dist/models/UserTweetsResponse.js +0 -51
  243. package/dist/models/UserTweetsResult.d.ts +0 -39
  244. package/dist/models/UserTweetsResult.js +0 -55
  245. package/dist/models/UserTweetsUser.d.ts +0 -32
  246. package/dist/models/UserTweetsUser.js +0 -51
  247. package/dist/models/index.d.ts +0 -102
  248. package/dist/models/index.js +0 -120
  249. package/dist/runtime.d.ts +0 -182
  250. package/dist/runtime.js +0 -555
  251. package/twitter-openapi/dist/dart/openapi-3.0.yaml +0 -111
  252. package/twitter-openapi/dist/dart/paths/bookmarks.yaml +0 -134
  253. package/twitter-openapi/dist/dart/paths/follow.yaml +0 -262
  254. package/twitter-openapi/dist/dart/paths/other.yaml +0 -96
  255. package/twitter-openapi/dist/dart/paths/post.yaml +0 -834
  256. package/twitter-openapi/dist/dart/paths/profile.yaml +0 -152
  257. package/twitter-openapi/dist/dart/paths/timeline.yaml +0 -380
  258. package/twitter-openapi/dist/dart/paths/tweet.yaml +0 -134
  259. package/twitter-openapi/dist/dart/paths/user.yaml +0 -112
  260. package/twitter-openapi/dist/dart/paths/usertweets.yaml +0 -484
  261. package/twitter-openapi/dist/dart/paths/v1.1-get.yaml +0 -300
  262. package/twitter-openapi/dist/dart/paths/v1.1-post.yaml +0 -295
  263. package/twitter-openapi/dist/dart/paths/v2.0-get.yaml +0 -331
  264. package/twitter-openapi/dist/dart/response/error.yaml +0 -90
  265. package/twitter-openapi/dist/dart/schemas/content.yaml +0 -181
  266. package/twitter-openapi/dist/dart/schemas/general.yaml +0 -13
  267. package/twitter-openapi/dist/dart/schemas/instruction.yaml +0 -83
  268. package/twitter-openapi/dist/dart/schemas/timeline.yaml +0 -25
  269. package/twitter-openapi/dist/dart/schemas/tweet.yaml +0 -251
  270. package/twitter-openapi/dist/dart/schemas/typename.yaml +0 -19
  271. package/twitter-openapi/dist/dart/schemas/user.yaml +0 -206
  272. package/twitter-openapi/dist/docs/openapi-3.0.yaml +0 -135
  273. package/twitter-openapi/dist/docs/paths/bookmarks.yaml +0 -248
  274. package/twitter-openapi/dist/docs/paths/follow.yaml +0 -486
  275. package/twitter-openapi/dist/docs/paths/other.yaml +0 -96
  276. package/twitter-openapi/dist/docs/paths/post.yaml +0 -638
  277. package/twitter-openapi/dist/docs/paths/profile.yaml +0 -159
  278. package/twitter-openapi/dist/docs/paths/timeline.yaml +0 -730
  279. package/twitter-openapi/dist/docs/paths/tweet.yaml +0 -272
  280. package/twitter-openapi/dist/docs/paths/user.yaml +0 -152
  281. package/twitter-openapi/dist/docs/paths/usertweets.yaml +0 -1010
  282. package/twitter-openapi/dist/docs/paths/v1.1-get.yaml +0 -242
  283. package/twitter-openapi/dist/docs/paths/v1.1-post.yaml +0 -237
  284. package/twitter-openapi/dist/docs/paths/v2.0-get.yaml +0 -302
  285. package/twitter-openapi/dist/docs/response/error.yaml +0 -90
  286. package/twitter-openapi/dist/docs/schemas/content.yaml +0 -181
  287. package/twitter-openapi/dist/docs/schemas/general.yaml +0 -13
  288. package/twitter-openapi/dist/docs/schemas/instruction.yaml +0 -83
  289. package/twitter-openapi/dist/docs/schemas/timeline.yaml +0 -25
  290. package/twitter-openapi/dist/docs/schemas/tweet.yaml +0 -251
  291. package/twitter-openapi/dist/docs/schemas/typename.yaml +0 -19
  292. package/twitter-openapi/dist/docs/schemas/user.yaml +0 -206
  293. package/twitter-openapi/dist/test/openapi-3.0.yaml +0 -135
  294. package/twitter-openapi/dist/test/paths/bookmarks.yaml +0 -105
  295. package/twitter-openapi/dist/test/paths/follow.yaml +0 -204
  296. package/twitter-openapi/dist/test/paths/other.yaml +0 -96
  297. package/twitter-openapi/dist/test/paths/post.yaml +0 -485
  298. package/twitter-openapi/dist/test/paths/profile.yaml +0 -123
  299. package/twitter-openapi/dist/test/paths/timeline.yaml +0 -293
  300. package/twitter-openapi/dist/test/paths/tweet.yaml +0 -105
  301. package/twitter-openapi/dist/test/paths/user.yaml +0 -83
  302. package/twitter-openapi/dist/test/paths/usertweets.yaml +0 -368
  303. package/twitter-openapi/dist/test/paths/v1.1-get.yaml +0 -242
  304. package/twitter-openapi/dist/test/paths/v1.1-post.yaml +0 -277
  305. package/twitter-openapi/dist/test/paths/v2.0-get.yaml +0 -302
  306. package/twitter-openapi/dist/test/response/error.yaml +0 -90
  307. package/twitter-openapi/dist/test/schemas/content.yaml +0 -181
  308. package/twitter-openapi/dist/test/schemas/general.yaml +0 -13
  309. package/twitter-openapi/dist/test/schemas/instruction.yaml +0 -83
  310. package/twitter-openapi/dist/test/schemas/timeline.yaml +0 -25
  311. package/twitter-openapi/dist/test/schemas/tweet.yaml +0 -251
  312. package/twitter-openapi/dist/test/schemas/typename.yaml +0 -19
  313. package/twitter-openapi/dist/test/schemas/user.yaml +0 -206
  314. package/twitter-openapi/dist/typescript/openapi-3.0.yaml +0 -135
  315. package/twitter-openapi/dist/typescript/paths/bookmarks.yaml +0 -105
  316. package/twitter-openapi/dist/typescript/paths/follow.yaml +0 -204
  317. package/twitter-openapi/dist/typescript/paths/other.yaml +0 -96
  318. package/twitter-openapi/dist/typescript/paths/post.yaml +0 -660
  319. package/twitter-openapi/dist/typescript/paths/profile.yaml +0 -123
  320. package/twitter-openapi/dist/typescript/paths/timeline.yaml +0 -293
  321. package/twitter-openapi/dist/typescript/paths/tweet.yaml +0 -105
  322. package/twitter-openapi/dist/typescript/paths/user.yaml +0 -83
  323. package/twitter-openapi/dist/typescript/paths/usertweets.yaml +0 -368
  324. package/twitter-openapi/dist/typescript/paths/v1.1-get.yaml +0 -242
  325. package/twitter-openapi/dist/typescript/paths/v1.1-post.yaml +0 -237
  326. package/twitter-openapi/dist/typescript/paths/v2.0-get.yaml +0 -302
  327. package/twitter-openapi/dist/typescript/response/error.yaml +0 -90
  328. package/twitter-openapi/dist/typescript/schemas/content.yaml +0 -181
  329. package/twitter-openapi/dist/typescript/schemas/general.yaml +0 -13
  330. package/twitter-openapi/dist/typescript/schemas/instruction.yaml +0 -83
  331. package/twitter-openapi/dist/typescript/schemas/timeline.yaml +0 -25
  332. package/twitter-openapi/dist/typescript/schemas/tweet.yaml +0 -251
  333. package/twitter-openapi/dist/typescript/schemas/typename.yaml +0 -19
  334. package/twitter-openapi/dist/typescript/schemas/user.yaml +0 -206
@@ -1,500 +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.postCreateRetweetRequest === null || requestParameters.postCreateRetweetRequest === undefined) {
88
- throw new runtime.RequiredError('postCreateRetweetRequest', 'Required parameter requestParameters.postCreateRetweetRequest was null or undefined when calling postCreateRetweet.');
89
- }
90
- queryParameters = {};
91
- headerParameters = {};
92
- headerParameters['Content-Type'] = 'application/json';
93
- if (this.configuration && this.configuration.apiKey) {
94
- headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
95
- }
96
- if (this.configuration && this.configuration.apiKey) {
97
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
98
- }
99
- if (this.configuration && this.configuration.apiKey) {
100
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
101
- }
102
- if (this.configuration && this.configuration.apiKey) {
103
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
104
- }
105
- if (this.configuration && this.configuration.apiKey) {
106
- headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
107
- }
108
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
109
- token = this.configuration.accessToken;
110
- return [4 /*yield*/, token("BearerAuth", [])];
111
- case 1:
112
- tokenString = _a.sent();
113
- if (tokenString) {
114
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
115
- }
116
- _a.label = 2;
117
- case 2: return [4 /*yield*/, this.request({
118
- path: "/graphql/ojPdsZsimiJrUGLR1sjUtA/CreateRetweet",
119
- method: 'POST',
120
- headers: headerParameters,
121
- query: queryParameters,
122
- body: (0, models_1.PostCreateRetweetRequestToJSON)(requestParameters.postCreateRetweetRequest),
123
- }, initOverrides)];
124
- case 3:
125
- response = _a.sent();
126
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.CreateRetweetResponseFromJSON)(jsonValue); })];
127
- }
128
- });
129
- });
130
- };
131
- /**
132
- * create Retweet
133
- */
134
- PostApi.prototype.postCreateRetweet = function (requestParameters, initOverrides) {
135
- return __awaiter(this, void 0, void 0, function () {
136
- var response;
137
- return __generator(this, function (_a) {
138
- switch (_a.label) {
139
- case 0: return [4 /*yield*/, this.postCreateRetweetRaw(requestParameters, initOverrides)];
140
- case 1:
141
- response = _a.sent();
142
- return [4 /*yield*/, response.value()];
143
- case 2: return [2 /*return*/, _a.sent()];
144
- }
145
- });
146
- });
147
- };
148
- /**
149
- * create Tweet
150
- */
151
- PostApi.prototype.postCreateTweetRaw = function (requestParameters, initOverrides) {
152
- return __awaiter(this, void 0, void 0, function () {
153
- var queryParameters, headerParameters, token, tokenString, response;
154
- return __generator(this, function (_a) {
155
- switch (_a.label) {
156
- case 0:
157
- if (requestParameters.postCreateTweetRequest === null || requestParameters.postCreateTweetRequest === undefined) {
158
- throw new runtime.RequiredError('postCreateTweetRequest', 'Required parameter requestParameters.postCreateTweetRequest was null or undefined when calling postCreateTweet.');
159
- }
160
- queryParameters = {};
161
- headerParameters = {};
162
- headerParameters['Content-Type'] = 'application/json';
163
- if (this.configuration && this.configuration.apiKey) {
164
- headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
165
- }
166
- if (this.configuration && this.configuration.apiKey) {
167
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
168
- }
169
- if (this.configuration && this.configuration.apiKey) {
170
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
171
- }
172
- if (this.configuration && this.configuration.apiKey) {
173
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
174
- }
175
- if (this.configuration && this.configuration.apiKey) {
176
- headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
177
- }
178
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
179
- token = this.configuration.accessToken;
180
- return [4 /*yield*/, token("BearerAuth", [])];
181
- case 1:
182
- tokenString = _a.sent();
183
- if (tokenString) {
184
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
185
- }
186
- _a.label = 2;
187
- case 2: return [4 /*yield*/, this.request({
188
- path: "/graphql/1RyAhNwby-gzGCRVsMxKbQ/CreateTweet",
189
- method: 'POST',
190
- headers: headerParameters,
191
- query: queryParameters,
192
- body: (0, models_1.PostCreateTweetRequestToJSON)(requestParameters.postCreateTweetRequest),
193
- }, initOverrides)];
194
- case 3:
195
- response = _a.sent();
196
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.CreateTweetResponseFromJSON)(jsonValue); })];
197
- }
198
- });
199
- });
200
- };
201
- /**
202
- * create Tweet
203
- */
204
- PostApi.prototype.postCreateTweet = function (requestParameters, initOverrides) {
205
- return __awaiter(this, void 0, void 0, function () {
206
- var response;
207
- return __generator(this, function (_a) {
208
- switch (_a.label) {
209
- case 0: return [4 /*yield*/, this.postCreateTweetRaw(requestParameters, initOverrides)];
210
- case 1:
211
- response = _a.sent();
212
- return [4 /*yield*/, response.value()];
213
- case 2: return [2 /*return*/, _a.sent()];
214
- }
215
- });
216
- });
217
- };
218
- /**
219
- * delete Retweet
220
- */
221
- PostApi.prototype.postDeleteRetweetRaw = function (requestParameters, initOverrides) {
222
- return __awaiter(this, void 0, void 0, function () {
223
- var queryParameters, headerParameters, token, tokenString, response;
224
- return __generator(this, function (_a) {
225
- switch (_a.label) {
226
- case 0:
227
- if (requestParameters.postDeleteRetweetRequest === null || requestParameters.postDeleteRetweetRequest === undefined) {
228
- throw new runtime.RequiredError('postDeleteRetweetRequest', 'Required parameter requestParameters.postDeleteRetweetRequest was null or undefined when calling postDeleteRetweet.');
229
- }
230
- queryParameters = {};
231
- headerParameters = {};
232
- headerParameters['Content-Type'] = 'application/json';
233
- if (this.configuration && this.configuration.apiKey) {
234
- headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
235
- }
236
- if (this.configuration && this.configuration.apiKey) {
237
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
238
- }
239
- if (this.configuration && this.configuration.apiKey) {
240
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
241
- }
242
- if (this.configuration && this.configuration.apiKey) {
243
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
244
- }
245
- if (this.configuration && this.configuration.apiKey) {
246
- headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
247
- }
248
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
249
- token = this.configuration.accessToken;
250
- return [4 /*yield*/, token("BearerAuth", [])];
251
- case 1:
252
- tokenString = _a.sent();
253
- if (tokenString) {
254
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
255
- }
256
- _a.label = 2;
257
- case 2: return [4 /*yield*/, this.request({
258
- path: "/graphql/iQtK4dl5hBmXewYZuEOKVw/DeleteRetweet",
259
- method: 'POST',
260
- headers: headerParameters,
261
- query: queryParameters,
262
- body: (0, models_1.PostDeleteRetweetRequestToJSON)(requestParameters.postDeleteRetweetRequest),
263
- }, initOverrides)];
264
- case 3:
265
- response = _a.sent();
266
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.DeleteRetweetResponseFromJSON)(jsonValue); })];
267
- }
268
- });
269
- });
270
- };
271
- /**
272
- * delete Retweet
273
- */
274
- PostApi.prototype.postDeleteRetweet = function (requestParameters, initOverrides) {
275
- return __awaiter(this, void 0, void 0, function () {
276
- var response;
277
- return __generator(this, function (_a) {
278
- switch (_a.label) {
279
- case 0: return [4 /*yield*/, this.postDeleteRetweetRaw(requestParameters, initOverrides)];
280
- case 1:
281
- response = _a.sent();
282
- return [4 /*yield*/, response.value()];
283
- case 2: return [2 /*return*/, _a.sent()];
284
- }
285
- });
286
- });
287
- };
288
- /**
289
- * delete Retweet
290
- */
291
- PostApi.prototype.postDeleteTweetRaw = function (requestParameters, initOverrides) {
292
- return __awaiter(this, void 0, void 0, function () {
293
- var queryParameters, headerParameters, token, tokenString, response;
294
- return __generator(this, function (_a) {
295
- switch (_a.label) {
296
- case 0:
297
- if (requestParameters.postDeleteTweetRequest === null || requestParameters.postDeleteTweetRequest === undefined) {
298
- throw new runtime.RequiredError('postDeleteTweetRequest', 'Required parameter requestParameters.postDeleteTweetRequest was null or undefined when calling postDeleteTweet.');
299
- }
300
- queryParameters = {};
301
- headerParameters = {};
302
- headerParameters['Content-Type'] = 'application/json';
303
- if (this.configuration && this.configuration.apiKey) {
304
- headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
305
- }
306
- if (this.configuration && this.configuration.apiKey) {
307
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
308
- }
309
- if (this.configuration && this.configuration.apiKey) {
310
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
311
- }
312
- if (this.configuration && this.configuration.apiKey) {
313
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
314
- }
315
- if (this.configuration && this.configuration.apiKey) {
316
- headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
317
- }
318
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
319
- token = this.configuration.accessToken;
320
- return [4 /*yield*/, token("BearerAuth", [])];
321
- case 1:
322
- tokenString = _a.sent();
323
- if (tokenString) {
324
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
325
- }
326
- _a.label = 2;
327
- case 2: return [4 /*yield*/, this.request({
328
- path: "/graphql/VaenaVgh5q5ih7kvyVjgtg/DeleteTweet",
329
- method: 'POST',
330
- headers: headerParameters,
331
- query: queryParameters,
332
- body: (0, models_1.PostDeleteTweetRequestToJSON)(requestParameters.postDeleteTweetRequest),
333
- }, initOverrides)];
334
- case 3:
335
- response = _a.sent();
336
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.DeleteTweetResponseFromJSON)(jsonValue); })];
337
- }
338
- });
339
- });
340
- };
341
- /**
342
- * delete Retweet
343
- */
344
- PostApi.prototype.postDeleteTweet = function (requestParameters, initOverrides) {
345
- return __awaiter(this, void 0, void 0, function () {
346
- var response;
347
- return __generator(this, function (_a) {
348
- switch (_a.label) {
349
- case 0: return [4 /*yield*/, this.postDeleteTweetRaw(requestParameters, initOverrides)];
350
- case 1:
351
- response = _a.sent();
352
- return [4 /*yield*/, response.value()];
353
- case 2: return [2 /*return*/, _a.sent()];
354
- }
355
- });
356
- });
357
- };
358
- /**
359
- * favorite Tweet
360
- */
361
- PostApi.prototype.postFavoriteTweetRaw = function (requestParameters, initOverrides) {
362
- return __awaiter(this, void 0, void 0, function () {
363
- var queryParameters, headerParameters, token, tokenString, response;
364
- return __generator(this, function (_a) {
365
- switch (_a.label) {
366
- case 0:
367
- if (requestParameters.postFavoriteTweetRequest === null || requestParameters.postFavoriteTweetRequest === undefined) {
368
- throw new runtime.RequiredError('postFavoriteTweetRequest', 'Required parameter requestParameters.postFavoriteTweetRequest was null or undefined when calling postFavoriteTweet.');
369
- }
370
- queryParameters = {};
371
- headerParameters = {};
372
- headerParameters['Content-Type'] = 'application/json';
373
- if (this.configuration && this.configuration.apiKey) {
374
- headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
375
- }
376
- if (this.configuration && this.configuration.apiKey) {
377
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
378
- }
379
- if (this.configuration && this.configuration.apiKey) {
380
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
381
- }
382
- if (this.configuration && this.configuration.apiKey) {
383
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
384
- }
385
- if (this.configuration && this.configuration.apiKey) {
386
- headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
387
- }
388
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
389
- token = this.configuration.accessToken;
390
- return [4 /*yield*/, token("BearerAuth", [])];
391
- case 1:
392
- tokenString = _a.sent();
393
- if (tokenString) {
394
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
395
- }
396
- _a.label = 2;
397
- case 2: return [4 /*yield*/, this.request({
398
- path: "/graphql/lI07N6Otwv1PhnEgXILM7A/FavoriteTweet",
399
- method: 'POST',
400
- headers: headerParameters,
401
- query: queryParameters,
402
- body: (0, models_1.PostFavoriteTweetRequestToJSON)(requestParameters.postFavoriteTweetRequest),
403
- }, initOverrides)];
404
- case 3:
405
- response = _a.sent();
406
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.FavoriteTweetResponseDataFromJSON)(jsonValue); })];
407
- }
408
- });
409
- });
410
- };
411
- /**
412
- * favorite Tweet
413
- */
414
- PostApi.prototype.postFavoriteTweet = function (requestParameters, initOverrides) {
415
- return __awaiter(this, void 0, void 0, function () {
416
- var response;
417
- return __generator(this, function (_a) {
418
- switch (_a.label) {
419
- case 0: return [4 /*yield*/, this.postFavoriteTweetRaw(requestParameters, initOverrides)];
420
- case 1:
421
- response = _a.sent();
422
- return [4 /*yield*/, response.value()];
423
- case 2: return [2 /*return*/, _a.sent()];
424
- }
425
- });
426
- });
427
- };
428
- /**
429
- * unfavorite Tweet
430
- */
431
- PostApi.prototype.postUnfavoriteTweetRaw = function (requestParameters, initOverrides) {
432
- return __awaiter(this, void 0, void 0, function () {
433
- var queryParameters, headerParameters, token, tokenString, response;
434
- return __generator(this, function (_a) {
435
- switch (_a.label) {
436
- case 0:
437
- if (requestParameters.postUnfavoriteTweetRequest === null || requestParameters.postUnfavoriteTweetRequest === undefined) {
438
- throw new runtime.RequiredError('postUnfavoriteTweetRequest', 'Required parameter requestParameters.postUnfavoriteTweetRequest was null or undefined when calling postUnfavoriteTweet.');
439
- }
440
- queryParameters = {};
441
- headerParameters = {};
442
- headerParameters['Content-Type'] = 'application/json';
443
- if (this.configuration && this.configuration.apiKey) {
444
- headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
445
- }
446
- if (this.configuration && this.configuration.apiKey) {
447
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
448
- }
449
- if (this.configuration && this.configuration.apiKey) {
450
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
451
- }
452
- if (this.configuration && this.configuration.apiKey) {
453
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
454
- }
455
- if (this.configuration && this.configuration.apiKey) {
456
- headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
457
- }
458
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
459
- token = this.configuration.accessToken;
460
- return [4 /*yield*/, token("BearerAuth", [])];
461
- case 1:
462
- tokenString = _a.sent();
463
- if (tokenString) {
464
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
465
- }
466
- _a.label = 2;
467
- case 2: return [4 /*yield*/, this.request({
468
- path: "/graphql/ZYKSe-w7KEslx3JhSIk5LA/UnfavoriteTweet",
469
- method: 'POST',
470
- headers: headerParameters,
471
- query: queryParameters,
472
- body: (0, models_1.PostUnfavoriteTweetRequestToJSON)(requestParameters.postUnfavoriteTweetRequest),
473
- }, initOverrides)];
474
- case 3:
475
- response = _a.sent();
476
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.UnfavoriteTweetResponseDataFromJSON)(jsonValue); })];
477
- }
478
- });
479
- });
480
- };
481
- /**
482
- * unfavorite Tweet
483
- */
484
- PostApi.prototype.postUnfavoriteTweet = function (requestParameters, initOverrides) {
485
- return __awaiter(this, void 0, void 0, function () {
486
- var response;
487
- return __generator(this, function (_a) {
488
- switch (_a.label) {
489
- case 0: return [4 /*yield*/, this.postUnfavoriteTweetRaw(requestParameters, initOverrides)];
490
- case 1:
491
- response = _a.sent();
492
- return [4 /*yield*/, response.value()];
493
- case 2: return [2 /*return*/, _a.sent()];
494
- }
495
- });
496
- });
497
- };
498
- return PostApi;
499
- }(runtime.BaseAPI));
500
- exports.PostApi = PostApi;
@@ -1,135 +0,0 @@
1
- /**
2
- * Twitter OpenAPI
3
- * Twitter OpenAPI(Swagger) specification
4
- *
5
- * The version of the OpenAPI document: 0.0.1
6
- * Contact: yuki@yuki0311.com
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import * as runtime from '../runtime';
13
- import type { BookmarksResponse, ListTweetsTimelineResponse, TimelineResponse, TweetDetailResponse, UserTweetsResponse } from '../models';
14
- export interface GetBookmarksRequest {
15
- queryId: string;
16
- variables: string;
17
- features: string;
18
- }
19
- export interface GetHomeLatestTimelineRequest {
20
- queryId: string;
21
- variables: string;
22
- features: string;
23
- }
24
- export interface GetHomeTimelineRequest {
25
- queryId: string;
26
- variables: string;
27
- features: string;
28
- }
29
- export interface GetLikesRequest {
30
- queryId: string;
31
- variables: string;
32
- features: string;
33
- }
34
- export interface GetListLatestTweetsTimelineRequest {
35
- queryId: string;
36
- variables: string;
37
- features: string;
38
- }
39
- export interface GetTweetDetailRequest {
40
- queryId: string;
41
- variables: string;
42
- features: string;
43
- }
44
- export interface GetUserMediaRequest {
45
- queryId: string;
46
- variables: string;
47
- features: string;
48
- }
49
- export interface GetUserTweetsRequest {
50
- queryId: string;
51
- variables: string;
52
- features: string;
53
- }
54
- export interface GetUserTweetsAndRepliesRequest {
55
- queryId: string;
56
- variables: string;
57
- features: string;
58
- }
59
- /**
60
- *
61
- */
62
- export declare class TweetApi extends runtime.BaseAPI {
63
- /**
64
- * get bookmarks
65
- */
66
- getBookmarksRaw(requestParameters: GetBookmarksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BookmarksResponse>>;
67
- /**
68
- * get bookmarks
69
- */
70
- getBookmarks(requestParameters: GetBookmarksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BookmarksResponse>;
71
- /**
72
- * get tweet list of timeline
73
- */
74
- getHomeLatestTimelineRaw(requestParameters: GetHomeLatestTimelineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TimelineResponse>>;
75
- /**
76
- * get tweet list of timeline
77
- */
78
- getHomeLatestTimeline(requestParameters: GetHomeLatestTimelineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TimelineResponse>;
79
- /**
80
- * get tweet list of timeline
81
- */
82
- getHomeTimelineRaw(requestParameters: GetHomeTimelineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TimelineResponse>>;
83
- /**
84
- * get tweet list of timeline
85
- */
86
- getHomeTimeline(requestParameters: GetHomeTimelineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TimelineResponse>;
87
- /**
88
- * get user likes tweets
89
- */
90
- getLikesRaw(requestParameters: GetLikesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserTweetsResponse>>;
91
- /**
92
- * get user likes tweets
93
- */
94
- getLikes(requestParameters: GetLikesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserTweetsResponse>;
95
- /**
96
- * get tweet list of timeline
97
- */
98
- getListLatestTweetsTimelineRaw(requestParameters: GetListLatestTweetsTimelineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListTweetsTimelineResponse>>;
99
- /**
100
- * get tweet list of timeline
101
- */
102
- getListLatestTweetsTimeline(requestParameters: GetListLatestTweetsTimelineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListTweetsTimelineResponse>;
103
- /**
104
- * get TweetDetail
105
- */
106
- getTweetDetailRaw(requestParameters: GetTweetDetailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TweetDetailResponse>>;
107
- /**
108
- * get TweetDetail
109
- */
110
- getTweetDetail(requestParameters: GetTweetDetailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TweetDetailResponse>;
111
- /**
112
- * get user media tweets
113
- */
114
- getUserMediaRaw(requestParameters: GetUserMediaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserTweetsResponse>>;
115
- /**
116
- * get user media tweets
117
- */
118
- getUserMedia(requestParameters: GetUserMediaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserTweetsResponse>;
119
- /**
120
- * get user tweets
121
- */
122
- getUserTweetsRaw(requestParameters: GetUserTweetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserTweetsResponse>>;
123
- /**
124
- * get user tweets
125
- */
126
- getUserTweets(requestParameters: GetUserTweetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserTweetsResponse>;
127
- /**
128
- * get user replies tweets
129
- */
130
- getUserTweetsAndRepliesRaw(requestParameters: GetUserTweetsAndRepliesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserTweetsResponse>>;
131
- /**
132
- * get user replies tweets
133
- */
134
- getUserTweetsAndReplies(requestParameters: GetUserTweetsAndRepliesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserTweetsResponse>;
135
- }