twitter-openapi-typescript-generated 0.0.1

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 (352) hide show
  1. package/.openapi-generator/FILES +120 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +4 -0
  4. package/LICENSE.txt +661 -0
  5. package/README.md +45 -0
  6. package/dist/apis/DefaultApi.d.ts +31 -0
  7. package/dist/apis/DefaultApi.js +163 -0
  8. package/dist/apis/OtherApi.d.ts +26 -0
  9. package/dist/apis/OtherApi.js +145 -0
  10. package/dist/apis/PostApi.d.ts +84 -0
  11. package/dist/apis/PostApi.js +500 -0
  12. package/dist/apis/TweetApi.d.ts +135 -0
  13. package/dist/apis/TweetApi.js +827 -0
  14. package/dist/apis/UserApi.d.ts +31 -0
  15. package/dist/apis/UserApi.js +163 -0
  16. package/dist/apis/UserListApi.d.ts +44 -0
  17. package/dist/apis/UserListApi.js +246 -0
  18. package/dist/apis/V11GetApi.d.ts +60 -0
  19. package/dist/apis/V11GetApi.js +343 -0
  20. package/dist/apis/V11PostApi.d.ts +65 -0
  21. package/dist/apis/V11PostApi.js +399 -0
  22. package/dist/apis/V20GetApi.d.ts +64 -0
  23. package/dist/apis/V20GetApi.js +364 -0
  24. package/dist/apis/index.d.ts +9 -0
  25. package/dist/apis/index.js +27 -0
  26. package/dist/index.d.ts +3 -0
  27. package/dist/index.js +21 -0
  28. package/dist/models/BookmarksResponse.d.ts +32 -0
  29. package/dist/models/BookmarksResponse.js +51 -0
  30. package/dist/models/BookmarksResponseData.d.ts +32 -0
  31. package/dist/models/BookmarksResponseData.js +51 -0
  32. package/dist/models/BookmarksTimeline.d.ts +32 -0
  33. package/dist/models/BookmarksTimeline.js +51 -0
  34. package/dist/models/CommunitiesActions.d.ts +31 -0
  35. package/dist/models/CommunitiesActions.js +50 -0
  36. package/dist/models/ContentEntryType.d.ts +24 -0
  37. package/dist/models/ContentEntryType.js +37 -0
  38. package/dist/models/ContentItemType.d.ts +24 -0
  39. package/dist/models/ContentItemType.js +37 -0
  40. package/dist/models/ContentUnion.d.ts +29 -0
  41. package/dist/models/ContentUnion.js +69 -0
  42. package/dist/models/CreateRetweet.d.ts +32 -0
  43. package/dist/models/CreateRetweet.js +51 -0
  44. package/dist/models/CreateRetweetResponse.d.ts +32 -0
  45. package/dist/models/CreateRetweetResponse.js +51 -0
  46. package/dist/models/CreateRetweetResponseData.d.ts +32 -0
  47. package/dist/models/CreateRetweetResponseData.js +51 -0
  48. package/dist/models/CreateRetweetResponseResult.d.ts +32 -0
  49. package/dist/models/CreateRetweetResponseResult.js +51 -0
  50. package/dist/models/CreateTweet.d.ts +32 -0
  51. package/dist/models/CreateTweet.js +51 -0
  52. package/dist/models/CreateTweetResponse.d.ts +32 -0
  53. package/dist/models/CreateTweetResponse.js +51 -0
  54. package/dist/models/CreateTweetResponseData.d.ts +32 -0
  55. package/dist/models/CreateTweetResponseData.js +51 -0
  56. package/dist/models/CreateTweetResponseResult.d.ts +32 -0
  57. package/dist/models/CreateTweetResponseResult.js +51 -0
  58. package/dist/models/DeleteRetweetResponse.d.ts +32 -0
  59. package/dist/models/DeleteRetweetResponse.js +51 -0
  60. package/dist/models/DeleteRetweetResponseData.d.ts +32 -0
  61. package/dist/models/DeleteRetweetResponseData.js +51 -0
  62. package/dist/models/DeleteTweetResponse.d.ts +32 -0
  63. package/dist/models/DeleteTweetResponse.js +51 -0
  64. package/dist/models/DeleteTweetResponseData.d.ts +32 -0
  65. package/dist/models/DeleteTweetResponseData.js +51 -0
  66. package/dist/models/DeleteTweetResponseResult.d.ts +31 -0
  67. package/dist/models/DeleteTweetResponseResult.js +50 -0
  68. package/dist/models/Entities.d.ts +56 -0
  69. package/dist/models/Entities.js +63 -0
  70. package/dist/models/ExtendedEntities.d.ts +32 -0
  71. package/dist/models/ExtendedEntities.js +51 -0
  72. package/dist/models/FavoriteTweet.d.ts +31 -0
  73. package/dist/models/FavoriteTweet.js +50 -0
  74. package/dist/models/FavoriteTweetResponseData.d.ts +32 -0
  75. package/dist/models/FavoriteTweetResponseData.js +51 -0
  76. package/dist/models/FollowResponse.d.ts +32 -0
  77. package/dist/models/FollowResponse.js +51 -0
  78. package/dist/models/FollowResponseData.d.ts +32 -0
  79. package/dist/models/FollowResponseData.js +51 -0
  80. package/dist/models/FollowResponseResult.d.ts +39 -0
  81. package/dist/models/FollowResponseResult.js +55 -0
  82. package/dist/models/FollowResponseUser.d.ts +32 -0
  83. package/dist/models/FollowResponseUser.js +51 -0
  84. package/dist/models/FollowTimeline.d.ts +32 -0
  85. package/dist/models/FollowTimeline.js +51 -0
  86. package/dist/models/HomeTimelineHome.d.ts +32 -0
  87. package/dist/models/HomeTimelineHome.js +51 -0
  88. package/dist/models/HomeTimelineResponseData.d.ts +32 -0
  89. package/dist/models/HomeTimelineResponseData.js +51 -0
  90. package/dist/models/InstructionType.d.ts +25 -0
  91. package/dist/models/InstructionType.js +38 -0
  92. package/dist/models/InstructionUnion.d.ts +32 -0
  93. package/dist/models/InstructionUnion.js +74 -0
  94. package/dist/models/ItemContentUnion.d.ts +29 -0
  95. package/dist/models/ItemContentUnion.js +69 -0
  96. package/dist/models/ItemResult.d.ts +39 -0
  97. package/dist/models/ItemResult.js +55 -0
  98. package/dist/models/ListTweetsTimeline.d.ts +32 -0
  99. package/dist/models/ListTweetsTimeline.js +51 -0
  100. package/dist/models/ListTweetsTimelineData.d.ts +32 -0
  101. package/dist/models/ListTweetsTimelineData.js +51 -0
  102. package/dist/models/ListTweetsTimelineList.d.ts +32 -0
  103. package/dist/models/ListTweetsTimelineList.js +51 -0
  104. package/dist/models/ListTweetsTimelineResponse.d.ts +32 -0
  105. package/dist/models/ListTweetsTimelineResponse.js +51 -0
  106. package/dist/models/Media.d.ts +92 -0
  107. package/dist/models/Media.js +80 -0
  108. package/dist/models/MediaOriginalInfo.d.ts +43 -0
  109. package/dist/models/MediaOriginalInfo.js +54 -0
  110. package/dist/models/ModuleEntry.d.ts +38 -0
  111. package/dist/models/ModuleEntry.js +54 -0
  112. package/dist/models/ModuleItem.d.ts +38 -0
  113. package/dist/models/ModuleItem.js +54 -0
  114. package/dist/models/OneFactorLoginEligibility.d.ts +31 -0
  115. package/dist/models/OneFactorLoginEligibility.js +50 -0
  116. package/dist/models/OtherResponse.d.ts +32 -0
  117. package/dist/models/OtherResponse.js +51 -0
  118. package/dist/models/PostCreateRetweetRequest.d.ts +38 -0
  119. package/dist/models/PostCreateRetweetRequest.js +54 -0
  120. package/dist/models/PostCreateTweetRequest.d.ts +45 -0
  121. package/dist/models/PostCreateTweetRequest.js +58 -0
  122. package/dist/models/PostCreateTweetRequestFeatures.d.ts +139 -0
  123. package/dist/models/PostCreateTweetRequestFeatures.js +104 -0
  124. package/dist/models/PostCreateTweetRequestVariables.d.ts +50 -0
  125. package/dist/models/PostCreateTweetRequestVariables.js +60 -0
  126. package/dist/models/PostCreateTweetRequestVariablesMedia.d.ts +37 -0
  127. package/dist/models/PostCreateTweetRequestVariablesMedia.js +53 -0
  128. package/dist/models/PostDeleteRetweetRequest.d.ts +38 -0
  129. package/dist/models/PostDeleteRetweetRequest.js +54 -0
  130. package/dist/models/PostDeleteRetweetRequestVariables.d.ts +37 -0
  131. package/dist/models/PostDeleteRetweetRequestVariables.js +53 -0
  132. package/dist/models/PostDeleteTweetRequest.d.ts +38 -0
  133. package/dist/models/PostDeleteTweetRequest.js +54 -0
  134. package/dist/models/PostDeleteTweetRequestVariables.d.ts +37 -0
  135. package/dist/models/PostDeleteTweetRequestVariables.js +53 -0
  136. package/dist/models/PostFavoriteTweetRequest.d.ts +38 -0
  137. package/dist/models/PostFavoriteTweetRequest.js +54 -0
  138. package/dist/models/PostUnfavoriteTweetRequest.d.ts +38 -0
  139. package/dist/models/PostUnfavoriteTweetRequest.js +54 -0
  140. package/dist/models/ProfileResponse.d.ts +32 -0
  141. package/dist/models/ProfileResponse.js +51 -0
  142. package/dist/models/ProfileResponseData.d.ts +32 -0
  143. package/dist/models/ProfileResponseData.js +51 -0
  144. package/dist/models/Retweet.d.ts +38 -0
  145. package/dist/models/Retweet.js +54 -0
  146. package/dist/models/RetweetLegacy.d.ts +31 -0
  147. package/dist/models/RetweetLegacy.js +50 -0
  148. package/dist/models/Session.d.ts +112 -0
  149. package/dist/models/Session.js +92 -0
  150. package/dist/models/SocialContext.d.ts +43 -0
  151. package/dist/models/SocialContext.js +54 -0
  152. package/dist/models/Timeline.d.ts +44 -0
  153. package/dist/models/Timeline.js +56 -0
  154. package/dist/models/TimelineAddEntries.d.ts +39 -0
  155. package/dist/models/TimelineAddEntries.js +55 -0
  156. package/dist/models/TimelineAddEntry.d.ts +44 -0
  157. package/dist/models/TimelineAddEntry.js +57 -0
  158. package/dist/models/TimelineClearCache.d.ts +32 -0
  159. package/dist/models/TimelineClearCache.js +51 -0
  160. package/dist/models/TimelinePinEntry.d.ts +39 -0
  161. package/dist/models/TimelinePinEntry.js +55 -0
  162. package/dist/models/TimelineResponse.d.ts +32 -0
  163. package/dist/models/TimelineResponse.js +51 -0
  164. package/dist/models/TimelineTerminateTimeline.d.ts +46 -0
  165. package/dist/models/TimelineTerminateTimeline.js +61 -0
  166. package/dist/models/TimelineTimelineCursor.d.ts +68 -0
  167. package/dist/models/TimelineTimelineCursor.js +73 -0
  168. package/dist/models/TimelineTimelineItem.d.ts +58 -0
  169. package/dist/models/TimelineTimelineItem.js +64 -0
  170. package/dist/models/TimelineTimelineModule.d.ts +70 -0
  171. package/dist/models/TimelineTimelineModule.js +69 -0
  172. package/dist/models/TimelineTweet.d.ts +65 -0
  173. package/dist/models/TimelineTweet.js +68 -0
  174. package/dist/models/TimelineUser.d.ts +59 -0
  175. package/dist/models/TimelineUser.js +66 -0
  176. package/dist/models/TimelineV2.d.ts +32 -0
  177. package/dist/models/TimelineV2.js +51 -0
  178. package/dist/models/Tweet.d.ts +92 -0
  179. package/dist/models/Tweet.js +82 -0
  180. package/dist/models/TweetDetailResponse.d.ts +32 -0
  181. package/dist/models/TweetDetailResponse.js +51 -0
  182. package/dist/models/TweetDetailResponseData.d.ts +32 -0
  183. package/dist/models/TweetDetailResponseData.js +51 -0
  184. package/dist/models/TweetEditControl.d.ts +49 -0
  185. package/dist/models/TweetEditControl.js +56 -0
  186. package/dist/models/TweetEditPrespective.d.ts +37 -0
  187. package/dist/models/TweetEditPrespective.js +52 -0
  188. package/dist/models/TweetLegacy.d.ts +154 -0
  189. package/dist/models/TweetLegacy.js +110 -0
  190. package/dist/models/TweetTombstone.d.ts +32 -0
  191. package/dist/models/TweetTombstone.js +51 -0
  192. package/dist/models/TweetUnion.d.ts +29 -0
  193. package/dist/models/TweetUnion.js +69 -0
  194. package/dist/models/TweetViews.d.ts +37 -0
  195. package/dist/models/TweetViews.js +52 -0
  196. package/dist/models/TweetWithVisibilityResults.d.ts +39 -0
  197. package/dist/models/TweetWithVisibilityResults.js +55 -0
  198. package/dist/models/TypeName.d.ts +30 -0
  199. package/dist/models/TypeName.js +43 -0
  200. package/dist/models/UnfavoriteTweet.d.ts +31 -0
  201. package/dist/models/UnfavoriteTweet.js +50 -0
  202. package/dist/models/UnfavoriteTweetResponseData.d.ts +32 -0
  203. package/dist/models/UnfavoriteTweetResponseData.js +51 -0
  204. package/dist/models/User.d.ts +99 -0
  205. package/dist/models/User.js +83 -0
  206. package/dist/models/UserFeatures.d.ts +31 -0
  207. package/dist/models/UserFeatures.js +50 -0
  208. package/dist/models/UserLegacy.d.ts +259 -0
  209. package/dist/models/UserLegacy.js +161 -0
  210. package/dist/models/UserResponse.d.ts +32 -0
  211. package/dist/models/UserResponse.js +51 -0
  212. package/dist/models/UserResponseData.d.ts +32 -0
  213. package/dist/models/UserResponseData.js +51 -0
  214. package/dist/models/UserResultByScreenName.d.ts +38 -0
  215. package/dist/models/UserResultByScreenName.js +54 -0
  216. package/dist/models/UserResultByScreenNameLegacy.d.ts +67 -0
  217. package/dist/models/UserResultByScreenNameLegacy.js +62 -0
  218. package/dist/models/UserResultByScreenNameResult.d.ts +57 -0
  219. package/dist/models/UserResultByScreenNameResult.js +64 -0
  220. package/dist/models/UserResultCore.d.ts +32 -0
  221. package/dist/models/UserResultCore.js +51 -0
  222. package/dist/models/UserResults.d.ts +32 -0
  223. package/dist/models/UserResults.js +51 -0
  224. package/dist/models/UserTweetsData.d.ts +32 -0
  225. package/dist/models/UserTweetsData.js +51 -0
  226. package/dist/models/UserTweetsResponse.d.ts +32 -0
  227. package/dist/models/UserTweetsResponse.js +51 -0
  228. package/dist/models/UserTweetsResult.d.ts +39 -0
  229. package/dist/models/UserTweetsResult.js +55 -0
  230. package/dist/models/UserTweetsUser.d.ts +32 -0
  231. package/dist/models/UserTweetsUser.js +51 -0
  232. package/dist/models/index.d.ts +102 -0
  233. package/dist/models/index.js +120 -0
  234. package/dist/runtime.d.ts +182 -0
  235. package/dist/runtime.js +555 -0
  236. package/package.json +26 -0
  237. package/src/apis/DefaultApi.ts +114 -0
  238. package/src/apis/OtherApi.ts +84 -0
  239. package/src/apis/PostApi.ts +453 -0
  240. package/src/apis/TweetApi.ts +798 -0
  241. package/src/apis/UserApi.ts +114 -0
  242. package/src/apis/UserListApi.ts +198 -0
  243. package/src/apis/V11GetApi.ts +342 -0
  244. package/src/apis/V11PostApi.ts +417 -0
  245. package/src/apis/V20GetApi.ts +412 -0
  246. package/src/apis/index.ts +11 -0
  247. package/src/index.ts +5 -0
  248. package/src/models/BookmarksResponse.ts +73 -0
  249. package/src/models/BookmarksResponseData.ts +73 -0
  250. package/src/models/BookmarksTimeline.ts +73 -0
  251. package/src/models/CommunitiesActions.ts +66 -0
  252. package/src/models/ContentEntryType.ts +39 -0
  253. package/src/models/ContentItemType.ts +39 -0
  254. package/src/models/ContentUnion.ts +83 -0
  255. package/src/models/CreateRetweet.ts +73 -0
  256. package/src/models/CreateRetweetResponse.ts +73 -0
  257. package/src/models/CreateRetweetResponseData.ts +73 -0
  258. package/src/models/CreateRetweetResponseResult.ts +73 -0
  259. package/src/models/CreateTweet.ts +73 -0
  260. package/src/models/CreateTweetResponse.ts +73 -0
  261. package/src/models/CreateTweetResponseData.ts +73 -0
  262. package/src/models/CreateTweetResponseResult.ts +73 -0
  263. package/src/models/DeleteRetweetResponse.ts +73 -0
  264. package/src/models/DeleteRetweetResponseData.ts +72 -0
  265. package/src/models/DeleteTweetResponse.ts +73 -0
  266. package/src/models/DeleteTweetResponseData.ts +72 -0
  267. package/src/models/DeleteTweetResponseResult.ts +66 -0
  268. package/src/models/Entities.ts +108 -0
  269. package/src/models/ExtendedEntities.ts +73 -0
  270. package/src/models/FavoriteTweet.ts +66 -0
  271. package/src/models/FavoriteTweetResponseData.ts +73 -0
  272. package/src/models/FollowResponse.ts +73 -0
  273. package/src/models/FollowResponseData.ts +73 -0
  274. package/src/models/FollowResponseResult.ts +88 -0
  275. package/src/models/FollowResponseUser.ts +73 -0
  276. package/src/models/FollowTimeline.ts +73 -0
  277. package/src/models/HomeTimelineHome.ts +73 -0
  278. package/src/models/HomeTimelineResponseData.ts +73 -0
  279. package/src/models/InstructionType.ts +40 -0
  280. package/src/models/InstructionUnion.ts +94 -0
  281. package/src/models/ItemContentUnion.ts +83 -0
  282. package/src/models/ItemResult.ts +87 -0
  283. package/src/models/ListTweetsTimeline.ts +73 -0
  284. package/src/models/ListTweetsTimelineData.ts +73 -0
  285. package/src/models/ListTweetsTimelineList.ts +73 -0
  286. package/src/models/ListTweetsTimelineResponse.ts +73 -0
  287. package/src/models/Media.ts +161 -0
  288. package/src/models/MediaOriginalInfo.ts +81 -0
  289. package/src/models/ModuleEntry.ts +82 -0
  290. package/src/models/ModuleItem.ts +82 -0
  291. package/src/models/OneFactorLoginEligibility.ts +66 -0
  292. package/src/models/OtherResponse.ts +72 -0
  293. package/src/models/PostCreateRetweetRequest.ts +82 -0
  294. package/src/models/PostCreateTweetRequest.ts +97 -0
  295. package/src/models/PostCreateTweetRequestFeatures.ts +228 -0
  296. package/src/models/PostCreateTweetRequestVariables.ts +100 -0
  297. package/src/models/PostCreateTweetRequestVariablesMedia.ts +75 -0
  298. package/src/models/PostDeleteRetweetRequest.ts +82 -0
  299. package/src/models/PostDeleteRetweetRequestVariables.ts +75 -0
  300. package/src/models/PostDeleteTweetRequest.ts +82 -0
  301. package/src/models/PostDeleteTweetRequestVariables.ts +75 -0
  302. package/src/models/PostFavoriteTweetRequest.ts +82 -0
  303. package/src/models/PostUnfavoriteTweetRequest.ts +82 -0
  304. package/src/models/ProfileResponse.ts +73 -0
  305. package/src/models/ProfileResponseData.ts +73 -0
  306. package/src/models/Retweet.ts +82 -0
  307. package/src/models/RetweetLegacy.ts +66 -0
  308. package/src/models/Session.ts +201 -0
  309. package/src/models/SocialContext.ts +81 -0
  310. package/src/models/Timeline.ts +89 -0
  311. package/src/models/TimelineAddEntries.ts +88 -0
  312. package/src/models/TimelineAddEntry.ts +91 -0
  313. package/src/models/TimelineClearCache.ts +73 -0
  314. package/src/models/TimelinePinEntry.ts +88 -0
  315. package/src/models/TimelineResponse.ts +73 -0
  316. package/src/models/TimelineTerminateTimeline.ts +93 -0
  317. package/src/models/TimelineTimelineCursor.ts +127 -0
  318. package/src/models/TimelineTimelineItem.ts +119 -0
  319. package/src/models/TimelineTimelineModule.ts +136 -0
  320. package/src/models/TimelineTweet.ts +134 -0
  321. package/src/models/TimelineUser.ts +126 -0
  322. package/src/models/TimelineV2.ts +73 -0
  323. package/src/models/Tweet.ts +187 -0
  324. package/src/models/TweetDetailResponse.ts +73 -0
  325. package/src/models/TweetDetailResponseData.ts +73 -0
  326. package/src/models/TweetEditControl.ts +89 -0
  327. package/src/models/TweetEditPrespective.ts +73 -0
  328. package/src/models/TweetLegacy.ts +261 -0
  329. package/src/models/TweetTombstone.ts +72 -0
  330. package/src/models/TweetUnion.ts +83 -0
  331. package/src/models/TweetViews.ts +73 -0
  332. package/src/models/TweetWithVisibilityResults.ts +88 -0
  333. package/src/models/TypeName.ts +45 -0
  334. package/src/models/UnfavoriteTweet.ts +66 -0
  335. package/src/models/UnfavoriteTweetResponseData.ts +73 -0
  336. package/src/models/User.ts +175 -0
  337. package/src/models/UserFeatures.ts +66 -0
  338. package/src/models/UserLegacy.ts +404 -0
  339. package/src/models/UserResponse.ts +73 -0
  340. package/src/models/UserResponseData.ts +73 -0
  341. package/src/models/UserResultByScreenName.ts +82 -0
  342. package/src/models/UserResultByScreenNameLegacy.ts +113 -0
  343. package/src/models/UserResultByScreenNameResult.ts +115 -0
  344. package/src/models/UserResultCore.ts +73 -0
  345. package/src/models/UserResults.ts +73 -0
  346. package/src/models/UserTweetsData.ts +73 -0
  347. package/src/models/UserTweetsResponse.ts +73 -0
  348. package/src/models/UserTweetsResult.ts +88 -0
  349. package/src/models/UserTweetsUser.ts +73 -0
  350. package/src/models/index.ts +104 -0
  351. package/src/runtime.ts +425 -0
  352. package/tsconfig.json +20 -0
@@ -0,0 +1,201 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Twitter OpenAPI
5
+ * Twitter OpenAPI(Swagger) specification
6
+ *
7
+ * The version of the OpenAPI document: 0.0.1
8
+ * Contact: yuki@yuki0311.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ import type { CommunitiesActions } from './CommunitiesActions';
17
+ import {
18
+ CommunitiesActionsFromJSON,
19
+ CommunitiesActionsFromJSONTyped,
20
+ CommunitiesActionsToJSON,
21
+ } from './CommunitiesActions';
22
+ import type { OneFactorLoginEligibility } from './OneFactorLoginEligibility';
23
+ import {
24
+ OneFactorLoginEligibilityFromJSON,
25
+ OneFactorLoginEligibilityFromJSONTyped,
26
+ OneFactorLoginEligibilityToJSON,
27
+ } from './OneFactorLoginEligibility';
28
+ import type { UserFeatures } from './UserFeatures';
29
+ import {
30
+ UserFeaturesFromJSON,
31
+ UserFeaturesFromJSONTyped,
32
+ UserFeaturesToJSON,
33
+ } from './UserFeatures';
34
+
35
+ /**
36
+ *
37
+ * @export
38
+ * @interface Session
39
+ */
40
+ export interface Session {
41
+ /**
42
+ *
43
+ * @type {object}
44
+ * @memberof Session
45
+ */
46
+ ssoInitTokens?: object;
47
+ /**
48
+ *
49
+ * @type {CommunitiesActions}
50
+ * @memberof Session
51
+ */
52
+ communitiesActions: CommunitiesActions;
53
+ /**
54
+ *
55
+ * @type {string}
56
+ * @memberof Session
57
+ */
58
+ country: string;
59
+ /**
60
+ *
61
+ * @type {string}
62
+ * @memberof Session
63
+ */
64
+ guestId: string;
65
+ /**
66
+ *
67
+ * @type {boolean}
68
+ * @memberof Session
69
+ */
70
+ hasCommunityMemberships: boolean;
71
+ /**
72
+ *
73
+ * @type {boolean}
74
+ * @memberof Session
75
+ */
76
+ isActiveCreator: boolean;
77
+ /**
78
+ *
79
+ * @type {boolean}
80
+ * @memberof Session
81
+ */
82
+ isRestrictedSession: boolean;
83
+ /**
84
+ *
85
+ * @type {boolean}
86
+ * @memberof Session
87
+ */
88
+ isSuperFollowSubscriber: boolean;
89
+ /**
90
+ *
91
+ * @type {string}
92
+ * @memberof Session
93
+ */
94
+ language: string;
95
+ /**
96
+ *
97
+ * @type {OneFactorLoginEligibility}
98
+ * @memberof Session
99
+ */
100
+ oneFactorLoginEligibility: OneFactorLoginEligibility;
101
+ /**
102
+ *
103
+ * @type {number}
104
+ * @memberof Session
105
+ */
106
+ superFollowersCount: number;
107
+ /**
108
+ *
109
+ * @type {string}
110
+ * @memberof Session
111
+ */
112
+ superFollowsApplicationStatus: string;
113
+ /**
114
+ *
115
+ * @type {UserFeatures}
116
+ * @memberof Session
117
+ */
118
+ userFeatures: UserFeatures;
119
+ /**
120
+ *
121
+ * @type {string}
122
+ * @memberof Session
123
+ */
124
+ userId: string;
125
+ }
126
+
127
+ /**
128
+ * Check if a given object implements the Session interface.
129
+ */
130
+ export function instanceOfSession(value: object): boolean {
131
+ let isInstance = true;
132
+ isInstance = isInstance && "communitiesActions" in value;
133
+ isInstance = isInstance && "country" in value;
134
+ isInstance = isInstance && "guestId" in value;
135
+ isInstance = isInstance && "hasCommunityMemberships" in value;
136
+ isInstance = isInstance && "isActiveCreator" in value;
137
+ isInstance = isInstance && "isRestrictedSession" in value;
138
+ isInstance = isInstance && "isSuperFollowSubscriber" in value;
139
+ isInstance = isInstance && "language" in value;
140
+ isInstance = isInstance && "oneFactorLoginEligibility" in value;
141
+ isInstance = isInstance && "superFollowersCount" in value;
142
+ isInstance = isInstance && "superFollowsApplicationStatus" in value;
143
+ isInstance = isInstance && "userFeatures" in value;
144
+ isInstance = isInstance && "userId" in value;
145
+
146
+ return isInstance;
147
+ }
148
+
149
+ export function SessionFromJSON(json: any): Session {
150
+ return SessionFromJSONTyped(json, false);
151
+ }
152
+
153
+ export function SessionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Session {
154
+ if ((json === undefined) || (json === null)) {
155
+ return json;
156
+ }
157
+ return {
158
+
159
+ 'ssoInitTokens': !exists(json, 'SsoInitTokens') ? undefined : json['SsoInitTokens'],
160
+ 'communitiesActions': CommunitiesActionsFromJSON(json['communitiesActions']),
161
+ 'country': json['country'],
162
+ 'guestId': json['guestId'],
163
+ 'hasCommunityMemberships': json['hasCommunityMemberships'],
164
+ 'isActiveCreator': json['isActiveCreator'],
165
+ 'isRestrictedSession': json['isRestrictedSession'],
166
+ 'isSuperFollowSubscriber': json['isSuperFollowSubscriber'],
167
+ 'language': json['language'],
168
+ 'oneFactorLoginEligibility': OneFactorLoginEligibilityFromJSON(json['oneFactorLoginEligibility']),
169
+ 'superFollowersCount': json['superFollowersCount'],
170
+ 'superFollowsApplicationStatus': json['superFollowsApplicationStatus'],
171
+ 'userFeatures': UserFeaturesFromJSON(json['userFeatures']),
172
+ 'userId': json['user_id'],
173
+ };
174
+ }
175
+
176
+ export function SessionToJSON(value?: Session | null): any {
177
+ if (value === undefined) {
178
+ return undefined;
179
+ }
180
+ if (value === null) {
181
+ return null;
182
+ }
183
+ return {
184
+
185
+ 'SsoInitTokens': value.ssoInitTokens,
186
+ 'communitiesActions': CommunitiesActionsToJSON(value.communitiesActions),
187
+ 'country': value.country,
188
+ 'guestId': value.guestId,
189
+ 'hasCommunityMemberships': value.hasCommunityMemberships,
190
+ 'isActiveCreator': value.isActiveCreator,
191
+ 'isRestrictedSession': value.isRestrictedSession,
192
+ 'isSuperFollowSubscriber': value.isSuperFollowSubscriber,
193
+ 'language': value.language,
194
+ 'oneFactorLoginEligibility': OneFactorLoginEligibilityToJSON(value.oneFactorLoginEligibility),
195
+ 'superFollowersCount': value.superFollowersCount,
196
+ 'superFollowsApplicationStatus': value.superFollowsApplicationStatus,
197
+ 'userFeatures': UserFeaturesToJSON(value.userFeatures),
198
+ 'user_id': value.userId,
199
+ };
200
+ }
201
+
@@ -0,0 +1,81 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Twitter OpenAPI
5
+ * Twitter OpenAPI(Swagger) specification
6
+ *
7
+ * The version of the OpenAPI document: 0.0.1
8
+ * Contact: yuki@yuki0311.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface SocialContext
20
+ */
21
+ export interface SocialContext {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof SocialContext
26
+ */
27
+ contextType?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof SocialContext
32
+ */
33
+ text?: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof SocialContext
38
+ */
39
+ type?: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the SocialContext interface.
44
+ */
45
+ export function instanceOfSocialContext(value: object): boolean {
46
+ let isInstance = true;
47
+
48
+ return isInstance;
49
+ }
50
+
51
+ export function SocialContextFromJSON(json: any): SocialContext {
52
+ return SocialContextFromJSONTyped(json, false);
53
+ }
54
+
55
+ export function SocialContextFromJSONTyped(json: any, ignoreDiscriminator: boolean): SocialContext {
56
+ if ((json === undefined) || (json === null)) {
57
+ return json;
58
+ }
59
+ return {
60
+
61
+ 'contextType': !exists(json, 'contextType') ? undefined : json['contextType'],
62
+ 'text': !exists(json, 'text') ? undefined : json['text'],
63
+ 'type': !exists(json, 'type') ? undefined : json['type'],
64
+ };
65
+ }
66
+
67
+ export function SocialContextToJSON(value?: SocialContext | null): any {
68
+ if (value === undefined) {
69
+ return undefined;
70
+ }
71
+ if (value === null) {
72
+ return null;
73
+ }
74
+ return {
75
+
76
+ 'contextType': value.contextType,
77
+ 'text': value.text,
78
+ 'type': value.type,
79
+ };
80
+ }
81
+
@@ -0,0 +1,89 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Twitter OpenAPI
5
+ * Twitter OpenAPI(Swagger) specification
6
+ *
7
+ * The version of the OpenAPI document: 0.0.1
8
+ * Contact: yuki@yuki0311.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ import type { InstructionUnion } from './InstructionUnion';
17
+ import {
18
+ InstructionUnionFromJSON,
19
+ InstructionUnionFromJSONTyped,
20
+ InstructionUnionToJSON,
21
+ } from './InstructionUnion';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface Timeline
27
+ */
28
+ export interface Timeline {
29
+ /**
30
+ *
31
+ * @type {Array<InstructionUnion>}
32
+ * @memberof Timeline
33
+ */
34
+ instructions: Array<InstructionUnion>;
35
+ /**
36
+ *
37
+ * @type {object}
38
+ * @memberof Timeline
39
+ */
40
+ metadata?: object;
41
+ /**
42
+ *
43
+ * @type {object}
44
+ * @memberof Timeline
45
+ */
46
+ responseObjects?: object;
47
+ }
48
+
49
+ /**
50
+ * Check if a given object implements the Timeline interface.
51
+ */
52
+ export function instanceOfTimeline(value: object): boolean {
53
+ let isInstance = true;
54
+ isInstance = isInstance && "instructions" in value;
55
+
56
+ return isInstance;
57
+ }
58
+
59
+ export function TimelineFromJSON(json: any): Timeline {
60
+ return TimelineFromJSONTyped(json, false);
61
+ }
62
+
63
+ export function TimelineFromJSONTyped(json: any, ignoreDiscriminator: boolean): Timeline {
64
+ if ((json === undefined) || (json === null)) {
65
+ return json;
66
+ }
67
+ return {
68
+
69
+ 'instructions': ((json['instructions'] as Array<any>).map(InstructionUnionFromJSON)),
70
+ 'metadata': !exists(json, 'metadata') ? undefined : json['metadata'],
71
+ 'responseObjects': !exists(json, 'responseObjects') ? undefined : json['responseObjects'],
72
+ };
73
+ }
74
+
75
+ export function TimelineToJSON(value?: Timeline | null): any {
76
+ if (value === undefined) {
77
+ return undefined;
78
+ }
79
+ if (value === null) {
80
+ return null;
81
+ }
82
+ return {
83
+
84
+ 'instructions': ((value.instructions as Array<any>).map(InstructionUnionToJSON)),
85
+ 'metadata': value.metadata,
86
+ 'responseObjects': value.responseObjects,
87
+ };
88
+ }
89
+
@@ -0,0 +1,88 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Twitter OpenAPI
5
+ * Twitter OpenAPI(Swagger) specification
6
+ *
7
+ * The version of the OpenAPI document: 0.0.1
8
+ * Contact: yuki@yuki0311.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ import type { InstructionType } from './InstructionType';
17
+ import {
18
+ InstructionTypeFromJSON,
19
+ InstructionTypeFromJSONTyped,
20
+ InstructionTypeToJSON,
21
+ } from './InstructionType';
22
+ import type { TimelineAddEntry } from './TimelineAddEntry';
23
+ import {
24
+ TimelineAddEntryFromJSON,
25
+ TimelineAddEntryFromJSONTyped,
26
+ TimelineAddEntryToJSON,
27
+ } from './TimelineAddEntry';
28
+
29
+ /**
30
+ *
31
+ * @export
32
+ * @interface TimelineAddEntries
33
+ */
34
+ export interface TimelineAddEntries {
35
+ /**
36
+ *
37
+ * @type {Array<TimelineAddEntry>}
38
+ * @memberof TimelineAddEntries
39
+ */
40
+ entries: Array<TimelineAddEntry>;
41
+ /**
42
+ *
43
+ * @type {InstructionType}
44
+ * @memberof TimelineAddEntries
45
+ */
46
+ type: InstructionType;
47
+ }
48
+
49
+ /**
50
+ * Check if a given object implements the TimelineAddEntries interface.
51
+ */
52
+ export function instanceOfTimelineAddEntries(value: object): boolean {
53
+ let isInstance = true;
54
+ isInstance = isInstance && "entries" in value;
55
+ isInstance = isInstance && "type" in value;
56
+
57
+ return isInstance;
58
+ }
59
+
60
+ export function TimelineAddEntriesFromJSON(json: any): TimelineAddEntries {
61
+ return TimelineAddEntriesFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function TimelineAddEntriesFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimelineAddEntries {
65
+ if ((json === undefined) || (json === null)) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'entries': ((json['entries'] as Array<any>).map(TimelineAddEntryFromJSON)),
71
+ 'type': InstructionTypeFromJSON(json['type']),
72
+ };
73
+ }
74
+
75
+ export function TimelineAddEntriesToJSON(value?: TimelineAddEntries | null): any {
76
+ if (value === undefined) {
77
+ return undefined;
78
+ }
79
+ if (value === null) {
80
+ return null;
81
+ }
82
+ return {
83
+
84
+ 'entries': ((value.entries as Array<any>).map(TimelineAddEntryToJSON)),
85
+ 'type': InstructionTypeToJSON(value.type),
86
+ };
87
+ }
88
+
@@ -0,0 +1,91 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Twitter OpenAPI
5
+ * Twitter OpenAPI(Swagger) specification
6
+ *
7
+ * The version of the OpenAPI document: 0.0.1
8
+ * Contact: yuki@yuki0311.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ import type { ContentUnion } from './ContentUnion';
17
+ import {
18
+ ContentUnionFromJSON,
19
+ ContentUnionFromJSONTyped,
20
+ ContentUnionToJSON,
21
+ } from './ContentUnion';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface TimelineAddEntry
27
+ */
28
+ export interface TimelineAddEntry {
29
+ /**
30
+ *
31
+ * @type {ContentUnion}
32
+ * @memberof TimelineAddEntry
33
+ */
34
+ content: ContentUnion;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof TimelineAddEntry
39
+ */
40
+ entryId: string;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof TimelineAddEntry
45
+ */
46
+ sortIndex: string;
47
+ }
48
+
49
+ /**
50
+ * Check if a given object implements the TimelineAddEntry interface.
51
+ */
52
+ export function instanceOfTimelineAddEntry(value: object): boolean {
53
+ let isInstance = true;
54
+ isInstance = isInstance && "content" in value;
55
+ isInstance = isInstance && "entryId" in value;
56
+ isInstance = isInstance && "sortIndex" in value;
57
+
58
+ return isInstance;
59
+ }
60
+
61
+ export function TimelineAddEntryFromJSON(json: any): TimelineAddEntry {
62
+ return TimelineAddEntryFromJSONTyped(json, false);
63
+ }
64
+
65
+ export function TimelineAddEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimelineAddEntry {
66
+ if ((json === undefined) || (json === null)) {
67
+ return json;
68
+ }
69
+ return {
70
+
71
+ 'content': ContentUnionFromJSON(json['content']),
72
+ 'entryId': json['entryId'],
73
+ 'sortIndex': json['sortIndex'],
74
+ };
75
+ }
76
+
77
+ export function TimelineAddEntryToJSON(value?: TimelineAddEntry | null): any {
78
+ if (value === undefined) {
79
+ return undefined;
80
+ }
81
+ if (value === null) {
82
+ return null;
83
+ }
84
+ return {
85
+
86
+ 'content': ContentUnionToJSON(value.content),
87
+ 'entryId': value.entryId,
88
+ 'sortIndex': value.sortIndex,
89
+ };
90
+ }
91
+
@@ -0,0 +1,73 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Twitter OpenAPI
5
+ * Twitter OpenAPI(Swagger) specification
6
+ *
7
+ * The version of the OpenAPI document: 0.0.1
8
+ * Contact: yuki@yuki0311.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ import type { InstructionType } from './InstructionType';
17
+ import {
18
+ InstructionTypeFromJSON,
19
+ InstructionTypeFromJSONTyped,
20
+ InstructionTypeToJSON,
21
+ } from './InstructionType';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface TimelineClearCache
27
+ */
28
+ export interface TimelineClearCache {
29
+ /**
30
+ *
31
+ * @type {InstructionType}
32
+ * @memberof TimelineClearCache
33
+ */
34
+ type: InstructionType;
35
+ }
36
+
37
+ /**
38
+ * Check if a given object implements the TimelineClearCache interface.
39
+ */
40
+ export function instanceOfTimelineClearCache(value: object): boolean {
41
+ let isInstance = true;
42
+ isInstance = isInstance && "type" in value;
43
+
44
+ return isInstance;
45
+ }
46
+
47
+ export function TimelineClearCacheFromJSON(json: any): TimelineClearCache {
48
+ return TimelineClearCacheFromJSONTyped(json, false);
49
+ }
50
+
51
+ export function TimelineClearCacheFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimelineClearCache {
52
+ if ((json === undefined) || (json === null)) {
53
+ return json;
54
+ }
55
+ return {
56
+
57
+ 'type': InstructionTypeFromJSON(json['type']),
58
+ };
59
+ }
60
+
61
+ export function TimelineClearCacheToJSON(value?: TimelineClearCache | null): any {
62
+ if (value === undefined) {
63
+ return undefined;
64
+ }
65
+ if (value === null) {
66
+ return null;
67
+ }
68
+ return {
69
+
70
+ 'type': InstructionTypeToJSON(value.type),
71
+ };
72
+ }
73
+
@@ -0,0 +1,88 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Twitter OpenAPI
5
+ * Twitter OpenAPI(Swagger) specification
6
+ *
7
+ * The version of the OpenAPI document: 0.0.1
8
+ * Contact: yuki@yuki0311.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ import type { InstructionType } from './InstructionType';
17
+ import {
18
+ InstructionTypeFromJSON,
19
+ InstructionTypeFromJSONTyped,
20
+ InstructionTypeToJSON,
21
+ } from './InstructionType';
22
+ import type { TimelineAddEntry } from './TimelineAddEntry';
23
+ import {
24
+ TimelineAddEntryFromJSON,
25
+ TimelineAddEntryFromJSONTyped,
26
+ TimelineAddEntryToJSON,
27
+ } from './TimelineAddEntry';
28
+
29
+ /**
30
+ *
31
+ * @export
32
+ * @interface TimelinePinEntry
33
+ */
34
+ export interface TimelinePinEntry {
35
+ /**
36
+ *
37
+ * @type {TimelineAddEntry}
38
+ * @memberof TimelinePinEntry
39
+ */
40
+ entry: TimelineAddEntry;
41
+ /**
42
+ *
43
+ * @type {InstructionType}
44
+ * @memberof TimelinePinEntry
45
+ */
46
+ type: InstructionType;
47
+ }
48
+
49
+ /**
50
+ * Check if a given object implements the TimelinePinEntry interface.
51
+ */
52
+ export function instanceOfTimelinePinEntry(value: object): boolean {
53
+ let isInstance = true;
54
+ isInstance = isInstance && "entry" in value;
55
+ isInstance = isInstance && "type" in value;
56
+
57
+ return isInstance;
58
+ }
59
+
60
+ export function TimelinePinEntryFromJSON(json: any): TimelinePinEntry {
61
+ return TimelinePinEntryFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function TimelinePinEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimelinePinEntry {
65
+ if ((json === undefined) || (json === null)) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'entry': TimelineAddEntryFromJSON(json['entry']),
71
+ 'type': InstructionTypeFromJSON(json['type']),
72
+ };
73
+ }
74
+
75
+ export function TimelinePinEntryToJSON(value?: TimelinePinEntry | null): any {
76
+ if (value === undefined) {
77
+ return undefined;
78
+ }
79
+ if (value === null) {
80
+ return null;
81
+ }
82
+ return {
83
+
84
+ 'entry': TimelineAddEntryToJSON(value.entry),
85
+ 'type': InstructionTypeToJSON(value.type),
86
+ };
87
+ }
88
+