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,112 @@
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 { CommunitiesActions } from './CommunitiesActions';
13
+ import type { OneFactorLoginEligibility } from './OneFactorLoginEligibility';
14
+ import type { UserFeatures } from './UserFeatures';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface Session
19
+ */
20
+ export interface Session {
21
+ /**
22
+ *
23
+ * @type {object}
24
+ * @memberof Session
25
+ */
26
+ ssoInitTokens?: object;
27
+ /**
28
+ *
29
+ * @type {CommunitiesActions}
30
+ * @memberof Session
31
+ */
32
+ communitiesActions: CommunitiesActions;
33
+ /**
34
+ *
35
+ * @type {string}
36
+ * @memberof Session
37
+ */
38
+ country: string;
39
+ /**
40
+ *
41
+ * @type {string}
42
+ * @memberof Session
43
+ */
44
+ guestId: string;
45
+ /**
46
+ *
47
+ * @type {boolean}
48
+ * @memberof Session
49
+ */
50
+ hasCommunityMemberships: boolean;
51
+ /**
52
+ *
53
+ * @type {boolean}
54
+ * @memberof Session
55
+ */
56
+ isActiveCreator: boolean;
57
+ /**
58
+ *
59
+ * @type {boolean}
60
+ * @memberof Session
61
+ */
62
+ isRestrictedSession: boolean;
63
+ /**
64
+ *
65
+ * @type {boolean}
66
+ * @memberof Session
67
+ */
68
+ isSuperFollowSubscriber: boolean;
69
+ /**
70
+ *
71
+ * @type {string}
72
+ * @memberof Session
73
+ */
74
+ language: string;
75
+ /**
76
+ *
77
+ * @type {OneFactorLoginEligibility}
78
+ * @memberof Session
79
+ */
80
+ oneFactorLoginEligibility: OneFactorLoginEligibility;
81
+ /**
82
+ *
83
+ * @type {number}
84
+ * @memberof Session
85
+ */
86
+ superFollowersCount: number;
87
+ /**
88
+ *
89
+ * @type {string}
90
+ * @memberof Session
91
+ */
92
+ superFollowsApplicationStatus: string;
93
+ /**
94
+ *
95
+ * @type {UserFeatures}
96
+ * @memberof Session
97
+ */
98
+ userFeatures: UserFeatures;
99
+ /**
100
+ *
101
+ * @type {string}
102
+ * @memberof Session
103
+ */
104
+ userId: string;
105
+ }
106
+ /**
107
+ * Check if a given object implements the Session interface.
108
+ */
109
+ export declare function instanceOfSession(value: object): boolean;
110
+ export declare function SessionFromJSON(json: any): Session;
111
+ export declare function SessionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Session;
112
+ export declare function SessionToJSON(value?: Session | null): any;
@@ -0,0 +1,92 @@
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.SessionToJSON = exports.SessionFromJSONTyped = exports.SessionFromJSON = exports.instanceOfSession = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ var CommunitiesActions_1 = require("./CommunitiesActions");
19
+ var OneFactorLoginEligibility_1 = require("./OneFactorLoginEligibility");
20
+ var UserFeatures_1 = require("./UserFeatures");
21
+ /**
22
+ * Check if a given object implements the Session interface.
23
+ */
24
+ function instanceOfSession(value) {
25
+ var isInstance = true;
26
+ isInstance = isInstance && "communitiesActions" in value;
27
+ isInstance = isInstance && "country" in value;
28
+ isInstance = isInstance && "guestId" in value;
29
+ isInstance = isInstance && "hasCommunityMemberships" in value;
30
+ isInstance = isInstance && "isActiveCreator" in value;
31
+ isInstance = isInstance && "isRestrictedSession" in value;
32
+ isInstance = isInstance && "isSuperFollowSubscriber" in value;
33
+ isInstance = isInstance && "language" in value;
34
+ isInstance = isInstance && "oneFactorLoginEligibility" in value;
35
+ isInstance = isInstance && "superFollowersCount" in value;
36
+ isInstance = isInstance && "superFollowsApplicationStatus" in value;
37
+ isInstance = isInstance && "userFeatures" in value;
38
+ isInstance = isInstance && "userId" in value;
39
+ return isInstance;
40
+ }
41
+ exports.instanceOfSession = instanceOfSession;
42
+ function SessionFromJSON(json) {
43
+ return SessionFromJSONTyped(json, false);
44
+ }
45
+ exports.SessionFromJSON = SessionFromJSON;
46
+ function SessionFromJSONTyped(json, ignoreDiscriminator) {
47
+ if ((json === undefined) || (json === null)) {
48
+ return json;
49
+ }
50
+ return {
51
+ 'ssoInitTokens': !(0, runtime_1.exists)(json, 'SsoInitTokens') ? undefined : json['SsoInitTokens'],
52
+ 'communitiesActions': (0, CommunitiesActions_1.CommunitiesActionsFromJSON)(json['communitiesActions']),
53
+ 'country': json['country'],
54
+ 'guestId': json['guestId'],
55
+ 'hasCommunityMemberships': json['hasCommunityMemberships'],
56
+ 'isActiveCreator': json['isActiveCreator'],
57
+ 'isRestrictedSession': json['isRestrictedSession'],
58
+ 'isSuperFollowSubscriber': json['isSuperFollowSubscriber'],
59
+ 'language': json['language'],
60
+ 'oneFactorLoginEligibility': (0, OneFactorLoginEligibility_1.OneFactorLoginEligibilityFromJSON)(json['oneFactorLoginEligibility']),
61
+ 'superFollowersCount': json['superFollowersCount'],
62
+ 'superFollowsApplicationStatus': json['superFollowsApplicationStatus'],
63
+ 'userFeatures': (0, UserFeatures_1.UserFeaturesFromJSON)(json['userFeatures']),
64
+ 'userId': json['user_id'],
65
+ };
66
+ }
67
+ exports.SessionFromJSONTyped = SessionFromJSONTyped;
68
+ function SessionToJSON(value) {
69
+ if (value === undefined) {
70
+ return undefined;
71
+ }
72
+ if (value === null) {
73
+ return null;
74
+ }
75
+ return {
76
+ 'SsoInitTokens': value.ssoInitTokens,
77
+ 'communitiesActions': (0, CommunitiesActions_1.CommunitiesActionsToJSON)(value.communitiesActions),
78
+ 'country': value.country,
79
+ 'guestId': value.guestId,
80
+ 'hasCommunityMemberships': value.hasCommunityMemberships,
81
+ 'isActiveCreator': value.isActiveCreator,
82
+ 'isRestrictedSession': value.isRestrictedSession,
83
+ 'isSuperFollowSubscriber': value.isSuperFollowSubscriber,
84
+ 'language': value.language,
85
+ 'oneFactorLoginEligibility': (0, OneFactorLoginEligibility_1.OneFactorLoginEligibilityToJSON)(value.oneFactorLoginEligibility),
86
+ 'superFollowersCount': value.superFollowersCount,
87
+ 'superFollowsApplicationStatus': value.superFollowsApplicationStatus,
88
+ 'userFeatures': (0, UserFeatures_1.UserFeaturesToJSON)(value.userFeatures),
89
+ 'user_id': value.userId,
90
+ };
91
+ }
92
+ exports.SessionToJSON = SessionToJSON;
@@ -0,0 +1,43 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface SocialContext
16
+ */
17
+ export interface SocialContext {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SocialContext
22
+ */
23
+ contextType?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof SocialContext
28
+ */
29
+ text?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof SocialContext
34
+ */
35
+ type?: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the SocialContext interface.
39
+ */
40
+ export declare function instanceOfSocialContext(value: object): boolean;
41
+ export declare function SocialContextFromJSON(json: any): SocialContext;
42
+ export declare function SocialContextFromJSONTyped(json: any, ignoreDiscriminator: boolean): SocialContext;
43
+ export declare function SocialContextToJSON(value?: SocialContext | null): any;
@@ -0,0 +1,54 @@
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.SocialContextToJSON = exports.SocialContextFromJSONTyped = exports.SocialContextFromJSON = exports.instanceOfSocialContext = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the SocialContext interface.
20
+ */
21
+ function instanceOfSocialContext(value) {
22
+ var isInstance = true;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfSocialContext = instanceOfSocialContext;
26
+ function SocialContextFromJSON(json) {
27
+ return SocialContextFromJSONTyped(json, false);
28
+ }
29
+ exports.SocialContextFromJSON = SocialContextFromJSON;
30
+ function SocialContextFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'contextType': !(0, runtime_1.exists)(json, 'contextType') ? undefined : json['contextType'],
36
+ 'text': !(0, runtime_1.exists)(json, 'text') ? undefined : json['text'],
37
+ 'type': !(0, runtime_1.exists)(json, 'type') ? undefined : json['type'],
38
+ };
39
+ }
40
+ exports.SocialContextFromJSONTyped = SocialContextFromJSONTyped;
41
+ function SocialContextToJSON(value) {
42
+ if (value === undefined) {
43
+ return undefined;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return {
49
+ 'contextType': value.contextType,
50
+ 'text': value.text,
51
+ 'type': value.type,
52
+ };
53
+ }
54
+ exports.SocialContextToJSON = SocialContextToJSON;
@@ -0,0 +1,44 @@
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 { InstructionUnion } from './InstructionUnion';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface Timeline
17
+ */
18
+ export interface Timeline {
19
+ /**
20
+ *
21
+ * @type {Array<InstructionUnion>}
22
+ * @memberof Timeline
23
+ */
24
+ instructions: Array<InstructionUnion>;
25
+ /**
26
+ *
27
+ * @type {object}
28
+ * @memberof Timeline
29
+ */
30
+ metadata?: object;
31
+ /**
32
+ *
33
+ * @type {object}
34
+ * @memberof Timeline
35
+ */
36
+ responseObjects?: object;
37
+ }
38
+ /**
39
+ * Check if a given object implements the Timeline interface.
40
+ */
41
+ export declare function instanceOfTimeline(value: object): boolean;
42
+ export declare function TimelineFromJSON(json: any): Timeline;
43
+ export declare function TimelineFromJSONTyped(json: any, ignoreDiscriminator: boolean): Timeline;
44
+ export declare function TimelineToJSON(value?: Timeline | null): any;
@@ -0,0 +1,56 @@
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.TimelineToJSON = exports.TimelineFromJSONTyped = exports.TimelineFromJSON = exports.instanceOfTimeline = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ var InstructionUnion_1 = require("./InstructionUnion");
19
+ /**
20
+ * Check if a given object implements the Timeline interface.
21
+ */
22
+ function instanceOfTimeline(value) {
23
+ var isInstance = true;
24
+ isInstance = isInstance && "instructions" in value;
25
+ return isInstance;
26
+ }
27
+ exports.instanceOfTimeline = instanceOfTimeline;
28
+ function TimelineFromJSON(json) {
29
+ return TimelineFromJSONTyped(json, false);
30
+ }
31
+ exports.TimelineFromJSON = TimelineFromJSON;
32
+ function TimelineFromJSONTyped(json, ignoreDiscriminator) {
33
+ if ((json === undefined) || (json === null)) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'instructions': (json['instructions'].map(InstructionUnion_1.InstructionUnionFromJSON)),
38
+ 'metadata': !(0, runtime_1.exists)(json, 'metadata') ? undefined : json['metadata'],
39
+ 'responseObjects': !(0, runtime_1.exists)(json, 'responseObjects') ? undefined : json['responseObjects'],
40
+ };
41
+ }
42
+ exports.TimelineFromJSONTyped = TimelineFromJSONTyped;
43
+ function TimelineToJSON(value) {
44
+ if (value === undefined) {
45
+ return undefined;
46
+ }
47
+ if (value === null) {
48
+ return null;
49
+ }
50
+ return {
51
+ 'instructions': (value.instructions.map(InstructionUnion_1.InstructionUnionToJSON)),
52
+ 'metadata': value.metadata,
53
+ 'responseObjects': value.responseObjects,
54
+ };
55
+ }
56
+ exports.TimelineToJSON = TimelineToJSON;
@@ -0,0 +1,39 @@
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 { InstructionType } from './InstructionType';
13
+ import type { TimelineAddEntry } from './TimelineAddEntry';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface TimelineAddEntries
18
+ */
19
+ export interface TimelineAddEntries {
20
+ /**
21
+ *
22
+ * @type {Array<TimelineAddEntry>}
23
+ * @memberof TimelineAddEntries
24
+ */
25
+ entries: Array<TimelineAddEntry>;
26
+ /**
27
+ *
28
+ * @type {InstructionType}
29
+ * @memberof TimelineAddEntries
30
+ */
31
+ type: InstructionType;
32
+ }
33
+ /**
34
+ * Check if a given object implements the TimelineAddEntries interface.
35
+ */
36
+ export declare function instanceOfTimelineAddEntries(value: object): boolean;
37
+ export declare function TimelineAddEntriesFromJSON(json: any): TimelineAddEntries;
38
+ export declare function TimelineAddEntriesFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimelineAddEntries;
39
+ export declare function TimelineAddEntriesToJSON(value?: TimelineAddEntries | null): any;
@@ -0,0 +1,55 @@
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.TimelineAddEntriesToJSON = exports.TimelineAddEntriesFromJSONTyped = exports.TimelineAddEntriesFromJSON = exports.instanceOfTimelineAddEntries = void 0;
17
+ var InstructionType_1 = require("./InstructionType");
18
+ var TimelineAddEntry_1 = require("./TimelineAddEntry");
19
+ /**
20
+ * Check if a given object implements the TimelineAddEntries interface.
21
+ */
22
+ function instanceOfTimelineAddEntries(value) {
23
+ var isInstance = true;
24
+ isInstance = isInstance && "entries" in value;
25
+ isInstance = isInstance && "type" in value;
26
+ return isInstance;
27
+ }
28
+ exports.instanceOfTimelineAddEntries = instanceOfTimelineAddEntries;
29
+ function TimelineAddEntriesFromJSON(json) {
30
+ return TimelineAddEntriesFromJSONTyped(json, false);
31
+ }
32
+ exports.TimelineAddEntriesFromJSON = TimelineAddEntriesFromJSON;
33
+ function TimelineAddEntriesFromJSONTyped(json, ignoreDiscriminator) {
34
+ if ((json === undefined) || (json === null)) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'entries': (json['entries'].map(TimelineAddEntry_1.TimelineAddEntryFromJSON)),
39
+ 'type': (0, InstructionType_1.InstructionTypeFromJSON)(json['type']),
40
+ };
41
+ }
42
+ exports.TimelineAddEntriesFromJSONTyped = TimelineAddEntriesFromJSONTyped;
43
+ function TimelineAddEntriesToJSON(value) {
44
+ if (value === undefined) {
45
+ return undefined;
46
+ }
47
+ if (value === null) {
48
+ return null;
49
+ }
50
+ return {
51
+ 'entries': (value.entries.map(TimelineAddEntry_1.TimelineAddEntryToJSON)),
52
+ 'type': (0, InstructionType_1.InstructionTypeToJSON)(value.type),
53
+ };
54
+ }
55
+ exports.TimelineAddEntriesToJSON = TimelineAddEntriesToJSON;
@@ -0,0 +1,44 @@
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 { ContentUnion } from './ContentUnion';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface TimelineAddEntry
17
+ */
18
+ export interface TimelineAddEntry {
19
+ /**
20
+ *
21
+ * @type {ContentUnion}
22
+ * @memberof TimelineAddEntry
23
+ */
24
+ content: ContentUnion;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof TimelineAddEntry
29
+ */
30
+ entryId: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof TimelineAddEntry
35
+ */
36
+ sortIndex: string;
37
+ }
38
+ /**
39
+ * Check if a given object implements the TimelineAddEntry interface.
40
+ */
41
+ export declare function instanceOfTimelineAddEntry(value: object): boolean;
42
+ export declare function TimelineAddEntryFromJSON(json: any): TimelineAddEntry;
43
+ export declare function TimelineAddEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimelineAddEntry;
44
+ export declare function TimelineAddEntryToJSON(value?: TimelineAddEntry | null): any;
@@ -0,0 +1,57 @@
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.TimelineAddEntryToJSON = exports.TimelineAddEntryFromJSONTyped = exports.TimelineAddEntryFromJSON = exports.instanceOfTimelineAddEntry = void 0;
17
+ var ContentUnion_1 = require("./ContentUnion");
18
+ /**
19
+ * Check if a given object implements the TimelineAddEntry interface.
20
+ */
21
+ function instanceOfTimelineAddEntry(value) {
22
+ var isInstance = true;
23
+ isInstance = isInstance && "content" in value;
24
+ isInstance = isInstance && "entryId" in value;
25
+ isInstance = isInstance && "sortIndex" in value;
26
+ return isInstance;
27
+ }
28
+ exports.instanceOfTimelineAddEntry = instanceOfTimelineAddEntry;
29
+ function TimelineAddEntryFromJSON(json) {
30
+ return TimelineAddEntryFromJSONTyped(json, false);
31
+ }
32
+ exports.TimelineAddEntryFromJSON = TimelineAddEntryFromJSON;
33
+ function TimelineAddEntryFromJSONTyped(json, ignoreDiscriminator) {
34
+ if ((json === undefined) || (json === null)) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'content': (0, ContentUnion_1.ContentUnionFromJSON)(json['content']),
39
+ 'entryId': json['entryId'],
40
+ 'sortIndex': json['sortIndex'],
41
+ };
42
+ }
43
+ exports.TimelineAddEntryFromJSONTyped = TimelineAddEntryFromJSONTyped;
44
+ function TimelineAddEntryToJSON(value) {
45
+ if (value === undefined) {
46
+ return undefined;
47
+ }
48
+ if (value === null) {
49
+ return null;
50
+ }
51
+ return {
52
+ 'content': (0, ContentUnion_1.ContentUnionToJSON)(value.content),
53
+ 'entryId': value.entryId,
54
+ 'sortIndex': value.sortIndex,
55
+ };
56
+ }
57
+ exports.TimelineAddEntryToJSON = TimelineAddEntryToJSON;
@@ -0,0 +1,32 @@
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 { InstructionType } from './InstructionType';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface TimelineClearCache
17
+ */
18
+ export interface TimelineClearCache {
19
+ /**
20
+ *
21
+ * @type {InstructionType}
22
+ * @memberof TimelineClearCache
23
+ */
24
+ type: InstructionType;
25
+ }
26
+ /**
27
+ * Check if a given object implements the TimelineClearCache interface.
28
+ */
29
+ export declare function instanceOfTimelineClearCache(value: object): boolean;
30
+ export declare function TimelineClearCacheFromJSON(json: any): TimelineClearCache;
31
+ export declare function TimelineClearCacheFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimelineClearCache;
32
+ export declare function TimelineClearCacheToJSON(value?: TimelineClearCache | null): any;
@@ -0,0 +1,51 @@
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.TimelineClearCacheToJSON = exports.TimelineClearCacheFromJSONTyped = exports.TimelineClearCacheFromJSON = exports.instanceOfTimelineClearCache = void 0;
17
+ var InstructionType_1 = require("./InstructionType");
18
+ /**
19
+ * Check if a given object implements the TimelineClearCache interface.
20
+ */
21
+ function instanceOfTimelineClearCache(value) {
22
+ var isInstance = true;
23
+ isInstance = isInstance && "type" in value;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfTimelineClearCache = instanceOfTimelineClearCache;
27
+ function TimelineClearCacheFromJSON(json) {
28
+ return TimelineClearCacheFromJSONTyped(json, false);
29
+ }
30
+ exports.TimelineClearCacheFromJSON = TimelineClearCacheFromJSON;
31
+ function TimelineClearCacheFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'type': (0, InstructionType_1.InstructionTypeFromJSON)(json['type']),
37
+ };
38
+ }
39
+ exports.TimelineClearCacheFromJSONTyped = TimelineClearCacheFromJSONTyped;
40
+ function TimelineClearCacheToJSON(value) {
41
+ if (value === undefined) {
42
+ return undefined;
43
+ }
44
+ if (value === null) {
45
+ return null;
46
+ }
47
+ return {
48
+ 'type': (0, InstructionType_1.InstructionTypeToJSON)(value.type),
49
+ };
50
+ }
51
+ exports.TimelineClearCacheToJSON = TimelineClearCacheToJSON;