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,364 +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.V20GetApi = void 0;
68
- var runtime = require("../runtime");
69
- /**
70
- *
71
- */
72
- var V20GetApi = /** @class */ (function (_super) {
73
- __extends(V20GetApi, _super);
74
- function V20GetApi() {
75
- return _super !== null && _super.apply(this, arguments) || this;
76
- }
77
- /**
78
- * get search adaptive
79
- */
80
- V20GetApi.prototype.getSearchAdaptiveRaw = function (requestParameters, initOverrides) {
81
- return __awaiter(this, void 0, void 0, function () {
82
- var queryParameters, headerParameters, token, tokenString, response;
83
- return __generator(this, function (_a) {
84
- switch (_a.label) {
85
- case 0:
86
- if (requestParameters.includeProfileInterstitialType === null || requestParameters.includeProfileInterstitialType === undefined) {
87
- throw new runtime.RequiredError('includeProfileInterstitialType', 'Required parameter requestParameters.includeProfileInterstitialType was null or undefined when calling getSearchAdaptive.');
88
- }
89
- if (requestParameters.includeBlocking === null || requestParameters.includeBlocking === undefined) {
90
- throw new runtime.RequiredError('includeBlocking', 'Required parameter requestParameters.includeBlocking was null or undefined when calling getSearchAdaptive.');
91
- }
92
- if (requestParameters.includeBlockedBy === null || requestParameters.includeBlockedBy === undefined) {
93
- throw new runtime.RequiredError('includeBlockedBy', 'Required parameter requestParameters.includeBlockedBy was null or undefined when calling getSearchAdaptive.');
94
- }
95
- if (requestParameters.includeFollowedBy === null || requestParameters.includeFollowedBy === undefined) {
96
- throw new runtime.RequiredError('includeFollowedBy', 'Required parameter requestParameters.includeFollowedBy was null or undefined when calling getSearchAdaptive.');
97
- }
98
- if (requestParameters.includeWantRetweets === null || requestParameters.includeWantRetweets === undefined) {
99
- throw new runtime.RequiredError('includeWantRetweets', 'Required parameter requestParameters.includeWantRetweets was null or undefined when calling getSearchAdaptive.');
100
- }
101
- if (requestParameters.includeMuteEdge === null || requestParameters.includeMuteEdge === undefined) {
102
- throw new runtime.RequiredError('includeMuteEdge', 'Required parameter requestParameters.includeMuteEdge was null or undefined when calling getSearchAdaptive.');
103
- }
104
- if (requestParameters.includeCanDm === null || requestParameters.includeCanDm === undefined) {
105
- throw new runtime.RequiredError('includeCanDm', 'Required parameter requestParameters.includeCanDm was null or undefined when calling getSearchAdaptive.');
106
- }
107
- if (requestParameters.includeCanMediaTag === null || requestParameters.includeCanMediaTag === undefined) {
108
- throw new runtime.RequiredError('includeCanMediaTag', 'Required parameter requestParameters.includeCanMediaTag was null or undefined when calling getSearchAdaptive.');
109
- }
110
- if (requestParameters.includeExtHasNftAvatar === null || requestParameters.includeExtHasNftAvatar === undefined) {
111
- throw new runtime.RequiredError('includeExtHasNftAvatar', 'Required parameter requestParameters.includeExtHasNftAvatar was null or undefined when calling getSearchAdaptive.');
112
- }
113
- if (requestParameters.includeExtIsBlueVerified === null || requestParameters.includeExtIsBlueVerified === undefined) {
114
- throw new runtime.RequiredError('includeExtIsBlueVerified', 'Required parameter requestParameters.includeExtIsBlueVerified was null or undefined when calling getSearchAdaptive.');
115
- }
116
- if (requestParameters.includeExtVerifiedType === null || requestParameters.includeExtVerifiedType === undefined) {
117
- throw new runtime.RequiredError('includeExtVerifiedType', 'Required parameter requestParameters.includeExtVerifiedType was null or undefined when calling getSearchAdaptive.');
118
- }
119
- if (requestParameters.includeExtProfileImageShape === null || requestParameters.includeExtProfileImageShape === undefined) {
120
- throw new runtime.RequiredError('includeExtProfileImageShape', 'Required parameter requestParameters.includeExtProfileImageShape was null or undefined when calling getSearchAdaptive.');
121
- }
122
- if (requestParameters.skipStatus === null || requestParameters.skipStatus === undefined) {
123
- throw new runtime.RequiredError('skipStatus', 'Required parameter requestParameters.skipStatus was null or undefined when calling getSearchAdaptive.');
124
- }
125
- if (requestParameters.cardsPlatform === null || requestParameters.cardsPlatform === undefined) {
126
- throw new runtime.RequiredError('cardsPlatform', 'Required parameter requestParameters.cardsPlatform was null or undefined when calling getSearchAdaptive.');
127
- }
128
- if (requestParameters.includeCards === null || requestParameters.includeCards === undefined) {
129
- throw new runtime.RequiredError('includeCards', 'Required parameter requestParameters.includeCards was null or undefined when calling getSearchAdaptive.');
130
- }
131
- if (requestParameters.includeExtAltText === null || requestParameters.includeExtAltText === undefined) {
132
- throw new runtime.RequiredError('includeExtAltText', 'Required parameter requestParameters.includeExtAltText was null or undefined when calling getSearchAdaptive.');
133
- }
134
- if (requestParameters.includeExtLimitedActionResults === null || requestParameters.includeExtLimitedActionResults === undefined) {
135
- throw new runtime.RequiredError('includeExtLimitedActionResults', 'Required parameter requestParameters.includeExtLimitedActionResults was null or undefined when calling getSearchAdaptive.');
136
- }
137
- if (requestParameters.includeQuoteCount === null || requestParameters.includeQuoteCount === undefined) {
138
- throw new runtime.RequiredError('includeQuoteCount', 'Required parameter requestParameters.includeQuoteCount was null or undefined when calling getSearchAdaptive.');
139
- }
140
- if (requestParameters.includeReplyCount === null || requestParameters.includeReplyCount === undefined) {
141
- throw new runtime.RequiredError('includeReplyCount', 'Required parameter requestParameters.includeReplyCount was null or undefined when calling getSearchAdaptive.');
142
- }
143
- if (requestParameters.tweetMode === null || requestParameters.tweetMode === undefined) {
144
- throw new runtime.RequiredError('tweetMode', 'Required parameter requestParameters.tweetMode was null or undefined when calling getSearchAdaptive.');
145
- }
146
- if (requestParameters.includeExtViews === null || requestParameters.includeExtViews === undefined) {
147
- throw new runtime.RequiredError('includeExtViews', 'Required parameter requestParameters.includeExtViews was null or undefined when calling getSearchAdaptive.');
148
- }
149
- if (requestParameters.includeEntities === null || requestParameters.includeEntities === undefined) {
150
- throw new runtime.RequiredError('includeEntities', 'Required parameter requestParameters.includeEntities was null or undefined when calling getSearchAdaptive.');
151
- }
152
- if (requestParameters.includeUserEntities === null || requestParameters.includeUserEntities === undefined) {
153
- throw new runtime.RequiredError('includeUserEntities', 'Required parameter requestParameters.includeUserEntities was null or undefined when calling getSearchAdaptive.');
154
- }
155
- if (requestParameters.includeExtMediaColor === null || requestParameters.includeExtMediaColor === undefined) {
156
- throw new runtime.RequiredError('includeExtMediaColor', 'Required parameter requestParameters.includeExtMediaColor was null or undefined when calling getSearchAdaptive.');
157
- }
158
- if (requestParameters.includeExtMediaAvailability === null || requestParameters.includeExtMediaAvailability === undefined) {
159
- throw new runtime.RequiredError('includeExtMediaAvailability', 'Required parameter requestParameters.includeExtMediaAvailability was null or undefined when calling getSearchAdaptive.');
160
- }
161
- if (requestParameters.includeExtSensitiveMediaWarning === null || requestParameters.includeExtSensitiveMediaWarning === undefined) {
162
- throw new runtime.RequiredError('includeExtSensitiveMediaWarning', 'Required parameter requestParameters.includeExtSensitiveMediaWarning was null or undefined when calling getSearchAdaptive.');
163
- }
164
- if (requestParameters.includeExtTrustedFriendsMetadata === null || requestParameters.includeExtTrustedFriendsMetadata === undefined) {
165
- throw new runtime.RequiredError('includeExtTrustedFriendsMetadata', 'Required parameter requestParameters.includeExtTrustedFriendsMetadata was null or undefined when calling getSearchAdaptive.');
166
- }
167
- if (requestParameters.sendErrorCodes === null || requestParameters.sendErrorCodes === undefined) {
168
- throw new runtime.RequiredError('sendErrorCodes', 'Required parameter requestParameters.sendErrorCodes was null or undefined when calling getSearchAdaptive.');
169
- }
170
- if (requestParameters.simpleQuotedTweet === null || requestParameters.simpleQuotedTweet === undefined) {
171
- throw new runtime.RequiredError('simpleQuotedTweet', 'Required parameter requestParameters.simpleQuotedTweet was null or undefined when calling getSearchAdaptive.');
172
- }
173
- if (requestParameters.q === null || requestParameters.q === undefined) {
174
- throw new runtime.RequiredError('q', 'Required parameter requestParameters.q was null or undefined when calling getSearchAdaptive.');
175
- }
176
- if (requestParameters.querySource === null || requestParameters.querySource === undefined) {
177
- throw new runtime.RequiredError('querySource', 'Required parameter requestParameters.querySource was null or undefined when calling getSearchAdaptive.');
178
- }
179
- if (requestParameters.count === null || requestParameters.count === undefined) {
180
- throw new runtime.RequiredError('count', 'Required parameter requestParameters.count was null or undefined when calling getSearchAdaptive.');
181
- }
182
- if (requestParameters.requestContext === null || requestParameters.requestContext === undefined) {
183
- throw new runtime.RequiredError('requestContext', 'Required parameter requestParameters.requestContext was null or undefined when calling getSearchAdaptive.');
184
- }
185
- if (requestParameters.pc === null || requestParameters.pc === undefined) {
186
- throw new runtime.RequiredError('pc', 'Required parameter requestParameters.pc was null or undefined when calling getSearchAdaptive.');
187
- }
188
- if (requestParameters.spellingCorrections === null || requestParameters.spellingCorrections === undefined) {
189
- throw new runtime.RequiredError('spellingCorrections', 'Required parameter requestParameters.spellingCorrections was null or undefined when calling getSearchAdaptive.');
190
- }
191
- if (requestParameters.includeExtEditControl === null || requestParameters.includeExtEditControl === undefined) {
192
- throw new runtime.RequiredError('includeExtEditControl', 'Required parameter requestParameters.includeExtEditControl was null or undefined when calling getSearchAdaptive.');
193
- }
194
- if (requestParameters.ext === null || requestParameters.ext === undefined) {
195
- throw new runtime.RequiredError('ext', 'Required parameter requestParameters.ext was null or undefined when calling getSearchAdaptive.');
196
- }
197
- queryParameters = {};
198
- if (requestParameters.includeProfileInterstitialType !== undefined) {
199
- queryParameters['include_profile_interstitial_type'] = requestParameters.includeProfileInterstitialType;
200
- }
201
- if (requestParameters.includeBlocking !== undefined) {
202
- queryParameters['include_blocking'] = requestParameters.includeBlocking;
203
- }
204
- if (requestParameters.includeBlockedBy !== undefined) {
205
- queryParameters['include_blocked_by'] = requestParameters.includeBlockedBy;
206
- }
207
- if (requestParameters.includeFollowedBy !== undefined) {
208
- queryParameters['include_followed_by'] = requestParameters.includeFollowedBy;
209
- }
210
- if (requestParameters.includeWantRetweets !== undefined) {
211
- queryParameters['include_want_retweets'] = requestParameters.includeWantRetweets;
212
- }
213
- if (requestParameters.includeMuteEdge !== undefined) {
214
- queryParameters['include_mute_edge'] = requestParameters.includeMuteEdge;
215
- }
216
- if (requestParameters.includeCanDm !== undefined) {
217
- queryParameters['include_can_dm'] = requestParameters.includeCanDm;
218
- }
219
- if (requestParameters.includeCanMediaTag !== undefined) {
220
- queryParameters['include_can_media_tag'] = requestParameters.includeCanMediaTag;
221
- }
222
- if (requestParameters.includeExtHasNftAvatar !== undefined) {
223
- queryParameters['include_ext_has_nft_avatar'] = requestParameters.includeExtHasNftAvatar;
224
- }
225
- if (requestParameters.includeExtIsBlueVerified !== undefined) {
226
- queryParameters['include_ext_is_blue_verified'] = requestParameters.includeExtIsBlueVerified;
227
- }
228
- if (requestParameters.includeExtVerifiedType !== undefined) {
229
- queryParameters['include_ext_verified_type'] = requestParameters.includeExtVerifiedType;
230
- }
231
- if (requestParameters.includeExtProfileImageShape !== undefined) {
232
- queryParameters['include_ext_profile_image_shape'] = requestParameters.includeExtProfileImageShape;
233
- }
234
- if (requestParameters.skipStatus !== undefined) {
235
- queryParameters['skip_status'] = requestParameters.skipStatus;
236
- }
237
- if (requestParameters.cardsPlatform !== undefined) {
238
- queryParameters['cards_platform'] = requestParameters.cardsPlatform;
239
- }
240
- if (requestParameters.includeCards !== undefined) {
241
- queryParameters['include_cards'] = requestParameters.includeCards;
242
- }
243
- if (requestParameters.includeExtAltText !== undefined) {
244
- queryParameters['include_ext_alt_text'] = requestParameters.includeExtAltText;
245
- }
246
- if (requestParameters.includeExtLimitedActionResults !== undefined) {
247
- queryParameters['include_ext_limited_action_results'] = requestParameters.includeExtLimitedActionResults;
248
- }
249
- if (requestParameters.includeQuoteCount !== undefined) {
250
- queryParameters['include_quote_count'] = requestParameters.includeQuoteCount;
251
- }
252
- if (requestParameters.includeReplyCount !== undefined) {
253
- queryParameters['include_reply_count'] = requestParameters.includeReplyCount;
254
- }
255
- if (requestParameters.tweetMode !== undefined) {
256
- queryParameters['tweet_mode'] = requestParameters.tweetMode;
257
- }
258
- if (requestParameters.includeExtViews !== undefined) {
259
- queryParameters['include_ext_views'] = requestParameters.includeExtViews;
260
- }
261
- if (requestParameters.includeEntities !== undefined) {
262
- queryParameters['include_entities'] = requestParameters.includeEntities;
263
- }
264
- if (requestParameters.includeUserEntities !== undefined) {
265
- queryParameters['include_user_entities'] = requestParameters.includeUserEntities;
266
- }
267
- if (requestParameters.includeExtMediaColor !== undefined) {
268
- queryParameters['include_ext_media_color'] = requestParameters.includeExtMediaColor;
269
- }
270
- if (requestParameters.includeExtMediaAvailability !== undefined) {
271
- queryParameters['include_ext_media_availability'] = requestParameters.includeExtMediaAvailability;
272
- }
273
- if (requestParameters.includeExtSensitiveMediaWarning !== undefined) {
274
- queryParameters['include_ext_sensitive_media_warning'] = requestParameters.includeExtSensitiveMediaWarning;
275
- }
276
- if (requestParameters.includeExtTrustedFriendsMetadata !== undefined) {
277
- queryParameters['include_ext_trusted_friends_metadata'] = requestParameters.includeExtTrustedFriendsMetadata;
278
- }
279
- if (requestParameters.sendErrorCodes !== undefined) {
280
- queryParameters['send_error_codes'] = requestParameters.sendErrorCodes;
281
- }
282
- if (requestParameters.simpleQuotedTweet !== undefined) {
283
- queryParameters['simple_quoted_tweet'] = requestParameters.simpleQuotedTweet;
284
- }
285
- if (requestParameters.q !== undefined) {
286
- queryParameters['q'] = requestParameters.q;
287
- }
288
- if (requestParameters.querySource !== undefined) {
289
- queryParameters['query_source'] = requestParameters.querySource;
290
- }
291
- if (requestParameters.count !== undefined) {
292
- queryParameters['count'] = requestParameters.count;
293
- }
294
- if (requestParameters.requestContext !== undefined) {
295
- queryParameters['requestContext'] = requestParameters.requestContext;
296
- }
297
- if (requestParameters.pc !== undefined) {
298
- queryParameters['pc'] = requestParameters.pc;
299
- }
300
- if (requestParameters.spellingCorrections !== undefined) {
301
- queryParameters['spelling_corrections'] = requestParameters.spellingCorrections;
302
- }
303
- if (requestParameters.includeExtEditControl !== undefined) {
304
- queryParameters['include_ext_edit_control'] = requestParameters.includeExtEditControl;
305
- }
306
- if (requestParameters.ext !== undefined) {
307
- queryParameters['ext'] = requestParameters.ext;
308
- }
309
- headerParameters = {};
310
- if (this.configuration && this.configuration.apiKey) {
311
- headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
312
- }
313
- if (this.configuration && this.configuration.apiKey) {
314
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
315
- }
316
- if (this.configuration && this.configuration.apiKey) {
317
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
318
- }
319
- if (this.configuration && this.configuration.apiKey) {
320
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
321
- }
322
- if (this.configuration && this.configuration.apiKey) {
323
- headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
324
- }
325
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
326
- token = this.configuration.accessToken;
327
- return [4 /*yield*/, token("BearerAuth", [])];
328
- case 1:
329
- tokenString = _a.sent();
330
- if (tokenString) {
331
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
332
- }
333
- _a.label = 2;
334
- case 2: return [4 /*yield*/, this.request({
335
- path: "/2/search/adaptive.json",
336
- method: 'GET',
337
- headers: headerParameters,
338
- query: queryParameters,
339
- }, initOverrides)];
340
- case 3:
341
- response = _a.sent();
342
- return [2 /*return*/, new runtime.VoidApiResponse(response)];
343
- }
344
- });
345
- });
346
- };
347
- /**
348
- * get search adaptive
349
- */
350
- V20GetApi.prototype.getSearchAdaptive = function (requestParameters, initOverrides) {
351
- return __awaiter(this, void 0, void 0, function () {
352
- return __generator(this, function (_a) {
353
- switch (_a.label) {
354
- case 0: return [4 /*yield*/, this.getSearchAdaptiveRaw(requestParameters, initOverrides)];
355
- case 1:
356
- _a.sent();
357
- return [2 /*return*/];
358
- }
359
- });
360
- });
361
- };
362
- return V20GetApi;
363
- }(runtime.BaseAPI));
364
- exports.V20GetApi = V20GetApi;
@@ -1,9 +0,0 @@
1
- export * from './DefaultApi';
2
- export * from './OtherApi';
3
- export * from './PostApi';
4
- export * from './TweetApi';
5
- export * from './UserApi';
6
- export * from './UserListApi';
7
- export * from './V11GetApi';
8
- export * from './V11PostApi';
9
- export * from './V20GetApi';
@@ -1,27 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- /* tslint:disable */
18
- /* eslint-disable */
19
- __exportStar(require("./DefaultApi"), exports);
20
- __exportStar(require("./OtherApi"), exports);
21
- __exportStar(require("./PostApi"), exports);
22
- __exportStar(require("./TweetApi"), exports);
23
- __exportStar(require("./UserApi"), exports);
24
- __exportStar(require("./UserListApi"), exports);
25
- __exportStar(require("./V11GetApi"), exports);
26
- __exportStar(require("./V11PostApi"), exports);
27
- __exportStar(require("./V20GetApi"), exports);
package/dist/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export * from './runtime';
2
- export * from './apis';
3
- export * from './models';
package/dist/index.js DELETED
@@ -1,21 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- /* tslint:disable */
18
- /* eslint-disable */
19
- __exportStar(require("./runtime"), exports);
20
- __exportStar(require("./apis"), exports);
21
- __exportStar(require("./models"), exports);
@@ -1,32 +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 type { BookmarksResponseData } from './BookmarksResponseData';
13
- /**
14
- *
15
- * @export
16
- * @interface BookmarksResponse
17
- */
18
- export interface BookmarksResponse {
19
- /**
20
- *
21
- * @type {BookmarksResponseData}
22
- * @memberof BookmarksResponse
23
- */
24
- data: BookmarksResponseData;
25
- }
26
- /**
27
- * Check if a given object implements the BookmarksResponse interface.
28
- */
29
- export declare function instanceOfBookmarksResponse(value: object): boolean;
30
- export declare function BookmarksResponseFromJSON(json: any): BookmarksResponse;
31
- export declare function BookmarksResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): BookmarksResponse;
32
- export declare function BookmarksResponseToJSON(value?: BookmarksResponse | null): any;
@@ -1,51 +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
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.BookmarksResponseToJSON = exports.BookmarksResponseFromJSONTyped = exports.BookmarksResponseFromJSON = exports.instanceOfBookmarksResponse = void 0;
17
- var BookmarksResponseData_1 = require("./BookmarksResponseData");
18
- /**
19
- * Check if a given object implements the BookmarksResponse interface.
20
- */
21
- function instanceOfBookmarksResponse(value) {
22
- var isInstance = true;
23
- isInstance = isInstance && "data" in value;
24
- return isInstance;
25
- }
26
- exports.instanceOfBookmarksResponse = instanceOfBookmarksResponse;
27
- function BookmarksResponseFromJSON(json) {
28
- return BookmarksResponseFromJSONTyped(json, false);
29
- }
30
- exports.BookmarksResponseFromJSON = BookmarksResponseFromJSON;
31
- function BookmarksResponseFromJSONTyped(json, ignoreDiscriminator) {
32
- if ((json === undefined) || (json === null)) {
33
- return json;
34
- }
35
- return {
36
- 'data': (0, BookmarksResponseData_1.BookmarksResponseDataFromJSON)(json['data']),
37
- };
38
- }
39
- exports.BookmarksResponseFromJSONTyped = BookmarksResponseFromJSONTyped;
40
- function BookmarksResponseToJSON(value) {
41
- if (value === undefined) {
42
- return undefined;
43
- }
44
- if (value === null) {
45
- return null;
46
- }
47
- return {
48
- 'data': (0, BookmarksResponseData_1.BookmarksResponseDataToJSON)(value.data),
49
- };
50
- }
51
- exports.BookmarksResponseToJSON = BookmarksResponseToJSON;
@@ -1,32 +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 type { BookmarksTimeline } from './BookmarksTimeline';
13
- /**
14
- *
15
- * @export
16
- * @interface BookmarksResponseData
17
- */
18
- export interface BookmarksResponseData {
19
- /**
20
- *
21
- * @type {BookmarksTimeline}
22
- * @memberof BookmarksResponseData
23
- */
24
- bookmarkTimelineV2: BookmarksTimeline;
25
- }
26
- /**
27
- * Check if a given object implements the BookmarksResponseData interface.
28
- */
29
- export declare function instanceOfBookmarksResponseData(value: object): boolean;
30
- export declare function BookmarksResponseDataFromJSON(json: any): BookmarksResponseData;
31
- export declare function BookmarksResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): BookmarksResponseData;
32
- export declare function BookmarksResponseDataToJSON(value?: BookmarksResponseData | null): any;
@@ -1,51 +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
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.BookmarksResponseDataToJSON = exports.BookmarksResponseDataFromJSONTyped = exports.BookmarksResponseDataFromJSON = exports.instanceOfBookmarksResponseData = void 0;
17
- var BookmarksTimeline_1 = require("./BookmarksTimeline");
18
- /**
19
- * Check if a given object implements the BookmarksResponseData interface.
20
- */
21
- function instanceOfBookmarksResponseData(value) {
22
- var isInstance = true;
23
- isInstance = isInstance && "bookmarkTimelineV2" in value;
24
- return isInstance;
25
- }
26
- exports.instanceOfBookmarksResponseData = instanceOfBookmarksResponseData;
27
- function BookmarksResponseDataFromJSON(json) {
28
- return BookmarksResponseDataFromJSONTyped(json, false);
29
- }
30
- exports.BookmarksResponseDataFromJSON = BookmarksResponseDataFromJSON;
31
- function BookmarksResponseDataFromJSONTyped(json, ignoreDiscriminator) {
32
- if ((json === undefined) || (json === null)) {
33
- return json;
34
- }
35
- return {
36
- 'bookmarkTimelineV2': (0, BookmarksTimeline_1.BookmarksTimelineFromJSON)(json['bookmark_timeline_v2']),
37
- };
38
- }
39
- exports.BookmarksResponseDataFromJSONTyped = BookmarksResponseDataFromJSONTyped;
40
- function BookmarksResponseDataToJSON(value) {
41
- if (value === undefined) {
42
- return undefined;
43
- }
44
- if (value === null) {
45
- return null;
46
- }
47
- return {
48
- 'bookmark_timeline_v2': (0, BookmarksTimeline_1.BookmarksTimelineToJSON)(value.bookmarkTimelineV2),
49
- };
50
- }
51
- exports.BookmarksResponseDataToJSON = BookmarksResponseDataToJSON;
@@ -1,32 +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 type { Timeline } from './Timeline';
13
- /**
14
- *
15
- * @export
16
- * @interface BookmarksTimeline
17
- */
18
- export interface BookmarksTimeline {
19
- /**
20
- *
21
- * @type {Timeline}
22
- * @memberof BookmarksTimeline
23
- */
24
- timeline: Timeline;
25
- }
26
- /**
27
- * Check if a given object implements the BookmarksTimeline interface.
28
- */
29
- export declare function instanceOfBookmarksTimeline(value: object): boolean;
30
- export declare function BookmarksTimelineFromJSON(json: any): BookmarksTimeline;
31
- export declare function BookmarksTimelineFromJSONTyped(json: any, ignoreDiscriminator: boolean): BookmarksTimeline;
32
- export declare function BookmarksTimelineToJSON(value?: BookmarksTimeline | null): any;