twitter-openapi-typescript-generated 0.0.10 → 0.0.11

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 (324) hide show
  1. package/.openapi-generator/FILES +24 -4
  2. package/LICENSE +31 -0
  3. package/{LICENSE.txt → LICENSE.AGPL} +661 -661
  4. package/README.md +2 -2
  5. package/dist/apis/DefaultApi.js +1 -1
  6. package/dist/apis/OtherApi.js +1 -1
  7. package/dist/apis/PostApi.js +1 -1
  8. package/dist/apis/TweetApi.js +1 -1
  9. package/dist/apis/UserApi.js +1 -1
  10. package/dist/apis/UserListApi.js +1 -1
  11. package/dist/apis/UsersApi.js +1 -1
  12. package/dist/apis/V11GetApi.js +1 -1
  13. package/dist/apis/V11PostApi.js +1 -1
  14. package/dist/apis/V20GetApi.js +1 -1
  15. package/dist/models/AdditionalMediaInfo.d.ts +32 -0
  16. package/dist/models/AdditionalMediaInfo.d.ts.map +1 -0
  17. package/dist/models/AdditionalMediaInfo.js +51 -0
  18. package/dist/models/AdditionalMediaInfo.js.map +1 -0
  19. package/dist/models/Callback.d.ts +32 -0
  20. package/dist/models/Callback.d.ts.map +1 -0
  21. package/dist/models/Callback.js +51 -0
  22. package/dist/models/Callback.js.map +1 -0
  23. package/dist/models/ClientEventInfo.d.ts +46 -0
  24. package/dist/models/ClientEventInfo.d.ts.map +1 -0
  25. package/dist/models/ClientEventInfo.js +55 -0
  26. package/dist/models/ClientEventInfo.js.map +1 -0
  27. package/dist/models/ContentEntryType.d.ts +1 -1
  28. package/dist/models/ContentEntryType.d.ts.map +1 -1
  29. package/dist/models/ContentItemType.d.ts +1 -1
  30. package/dist/models/ContentItemType.d.ts.map +1 -1
  31. package/dist/models/ContentUnion.d.ts +1 -1
  32. package/dist/models/ContentUnion.d.ts.map +1 -1
  33. package/dist/models/CoverCta.d.ts +66 -0
  34. package/dist/models/CoverCta.d.ts.map +1 -0
  35. package/dist/models/CoverCta.js +72 -0
  36. package/dist/models/CoverCta.js.map +1 -0
  37. package/dist/models/CtaClientEventInfo.d.ts +39 -0
  38. package/dist/models/CtaClientEventInfo.d.ts.map +1 -0
  39. package/dist/models/CtaClientEventInfo.js +57 -0
  40. package/dist/models/CtaClientEventInfo.js.map +1 -0
  41. package/dist/models/CursorType.d.ts +1 -1
  42. package/dist/models/CursorType.d.ts.map +1 -1
  43. package/dist/models/ExtMediaAvailability.d.ts +39 -0
  44. package/dist/models/ExtMediaAvailability.d.ts.map +1 -0
  45. package/dist/models/ExtMediaAvailability.js +57 -0
  46. package/dist/models/ExtMediaAvailability.js.map +1 -0
  47. package/dist/models/ExtendedEntities.d.ts +3 -3
  48. package/dist/models/ExtendedEntities.d.ts.map +1 -1
  49. package/dist/models/ExtendedEntities.js +3 -3
  50. package/dist/models/ExtendedEntities.js.map +1 -1
  51. package/dist/models/GetBookmarks200Response.d.ts +1 -1
  52. package/dist/models/GetBookmarks200Response.d.ts.map +1 -1
  53. package/dist/models/GetFavoriters200Response.d.ts +1 -1
  54. package/dist/models/GetFavoriters200Response.d.ts.map +1 -1
  55. package/dist/models/GetFollowers200Response.d.ts +1 -1
  56. package/dist/models/GetFollowers200Response.d.ts.map +1 -1
  57. package/dist/models/GetHomeLatestTimeline200Response.d.ts +1 -1
  58. package/dist/models/GetHomeLatestTimeline200Response.d.ts.map +1 -1
  59. package/dist/models/GetLikes200Response.d.ts +1 -1
  60. package/dist/models/GetLikes200Response.d.ts.map +1 -1
  61. package/dist/models/GetListLatestTweetsTimeline200Response.d.ts +1 -1
  62. package/dist/models/GetListLatestTweetsTimeline200Response.d.ts.map +1 -1
  63. package/dist/models/GetProfileSpotlightsQuery200Response.d.ts +1 -1
  64. package/dist/models/GetProfileSpotlightsQuery200Response.d.ts.map +1 -1
  65. package/dist/models/GetRetweeters200Response.d.ts +1 -1
  66. package/dist/models/GetRetweeters200Response.d.ts.map +1 -1
  67. package/dist/models/GetSearchTimeline200Response.d.ts +1 -1
  68. package/dist/models/GetSearchTimeline200Response.d.ts.map +1 -1
  69. package/dist/models/GetTweetDetail200Response.d.ts +1 -1
  70. package/dist/models/GetTweetDetail200Response.d.ts.map +1 -1
  71. package/dist/models/GetTweetResultByRestId200Response.d.ts +1 -1
  72. package/dist/models/GetTweetResultByRestId200Response.d.ts.map +1 -1
  73. package/dist/models/GetUserByRestId200Response.d.ts +1 -1
  74. package/dist/models/GetUserByRestId200Response.d.ts.map +1 -1
  75. package/dist/models/GetUserHighlightsTweets200Response.d.ts +1 -1
  76. package/dist/models/GetUserHighlightsTweets200Response.d.ts.map +1 -1
  77. package/dist/models/GetUsersByRestIds200Response.d.ts +1 -1
  78. package/dist/models/GetUsersByRestIds200Response.d.ts.map +1 -1
  79. package/dist/models/InstructionType.d.ts +2 -1
  80. package/dist/models/InstructionType.d.ts.map +1 -1
  81. package/dist/models/InstructionType.js +2 -1
  82. package/dist/models/InstructionType.js.map +1 -1
  83. package/dist/models/InstructionUnion.d.ts +4 -1
  84. package/dist/models/InstructionUnion.d.ts.map +1 -1
  85. package/dist/models/InstructionUnion.js +5 -0
  86. package/dist/models/InstructionUnion.js.map +1 -1
  87. package/dist/models/ItemContentUnion.d.ts +1 -1
  88. package/dist/models/ItemContentUnion.d.ts.map +1 -1
  89. package/dist/models/ItemResult.d.ts +1 -1
  90. package/dist/models/ItemResult.d.ts.map +1 -1
  91. package/dist/models/ItemResult.js +1 -2
  92. package/dist/models/ItemResult.js.map +1 -1
  93. package/dist/models/Media.d.ts +15 -15
  94. package/dist/models/Media.d.ts.map +1 -1
  95. package/dist/models/Media.js +14 -7
  96. package/dist/models/Media.js.map +1 -1
  97. package/dist/models/MediaExtended.d.ts +131 -0
  98. package/dist/models/MediaExtended.d.ts.map +1 -0
  99. package/dist/models/MediaExtended.js +104 -0
  100. package/dist/models/MediaExtended.js.map +1 -0
  101. package/dist/models/MediaOriginalInfo.d.ts +5 -6
  102. package/dist/models/MediaOriginalInfo.d.ts.map +1 -1
  103. package/dist/models/MediaOriginalInfo.js +7 -4
  104. package/dist/models/MediaOriginalInfo.js.map +1 -1
  105. package/dist/models/MediaOriginalInfoFocusRect.d.ts +50 -0
  106. package/dist/models/MediaOriginalInfoFocusRect.d.ts.map +1 -0
  107. package/dist/models/MediaOriginalInfoFocusRect.js +60 -0
  108. package/dist/models/MediaOriginalInfoFocusRect.js.map +1 -0
  109. package/dist/models/MediaSize.d.ts +52 -0
  110. package/dist/models/MediaSize.d.ts.map +1 -0
  111. package/dist/models/MediaSize.js +64 -0
  112. package/dist/models/MediaSize.js.map +1 -0
  113. package/dist/models/MediaSizes.d.ts +51 -0
  114. package/dist/models/MediaSizes.d.ts.map +1 -0
  115. package/dist/models/MediaSizes.js +61 -0
  116. package/dist/models/MediaSizes.js.map +1 -0
  117. package/dist/models/MediaStats.d.ts +32 -0
  118. package/dist/models/MediaStats.d.ts.map +1 -0
  119. package/dist/models/MediaStats.js +51 -0
  120. package/dist/models/MediaStats.js.map +1 -0
  121. package/dist/models/MediaVideoInfo.d.ts +45 -0
  122. package/dist/models/MediaVideoInfo.d.ts.map +1 -0
  123. package/dist/models/MediaVideoInfo.js +58 -0
  124. package/dist/models/MediaVideoInfo.js.map +1 -0
  125. package/dist/models/MediaVideoInfoVariant.d.ts +44 -0
  126. package/dist/models/MediaVideoInfoVariant.d.ts.map +1 -0
  127. package/dist/models/MediaVideoInfoVariant.js +57 -0
  128. package/dist/models/MediaVideoInfoVariant.js.map +1 -0
  129. package/dist/models/ModuleEntry.d.ts +3 -4
  130. package/dist/models/ModuleEntry.d.ts.map +1 -1
  131. package/dist/models/ModuleEntry.js +3 -2
  132. package/dist/models/ModuleEntry.js.map +1 -1
  133. package/dist/models/Other200Response.d.ts +1 -1
  134. package/dist/models/Other200Response.d.ts.map +1 -1
  135. package/dist/models/PostCreateRetweet200Response.d.ts +1 -1
  136. package/dist/models/PostCreateRetweet200Response.d.ts.map +1 -1
  137. package/dist/models/PostCreateTweet200Response.d.ts +1 -1
  138. package/dist/models/PostCreateTweet200Response.d.ts.map +1 -1
  139. package/dist/models/PostDeleteRetweet200Response.d.ts +1 -1
  140. package/dist/models/PostDeleteRetweet200Response.d.ts.map +1 -1
  141. package/dist/models/PostDeleteTweet200Response.d.ts +1 -1
  142. package/dist/models/PostDeleteTweet200Response.d.ts.map +1 -1
  143. package/dist/models/PostFavoriteTweet200Response.d.ts +1 -1
  144. package/dist/models/PostFavoriteTweet200Response.d.ts.map +1 -1
  145. package/dist/models/PostUnfavoriteTweet200Response.d.ts +1 -1
  146. package/dist/models/PostUnfavoriteTweet200Response.d.ts.map +1 -1
  147. package/dist/models/SelfThread.d.ts +32 -0
  148. package/dist/models/SelfThread.d.ts.map +1 -0
  149. package/dist/models/SelfThread.js +51 -0
  150. package/dist/models/SelfThread.js.map +1 -0
  151. package/dist/models/Session.d.ts +8 -1
  152. package/dist/models/Session.d.ts.map +1 -1
  153. package/dist/models/Session.js +7 -1
  154. package/dist/models/Session.js.map +1 -1
  155. package/dist/models/Text.d.ts +39 -0
  156. package/dist/models/Text.d.ts.map +1 -0
  157. package/dist/models/Text.js +55 -0
  158. package/dist/models/Text.js.map +1 -0
  159. package/dist/models/TextEntity.d.ts +45 -0
  160. package/dist/models/TextEntity.d.ts.map +1 -0
  161. package/dist/models/TextEntity.js +58 -0
  162. package/dist/models/TextEntity.js.map +1 -0
  163. package/dist/models/TextEntityRef.d.ts +58 -0
  164. package/dist/models/TextEntityRef.d.ts.map +1 -0
  165. package/dist/models/TextEntityRef.js +69 -0
  166. package/dist/models/TextEntityRef.js.map +1 -0
  167. package/dist/models/TimelineCoverBehavior.d.ts +39 -0
  168. package/dist/models/TimelineCoverBehavior.d.ts.map +1 -0
  169. package/dist/models/TimelineCoverBehavior.js +57 -0
  170. package/dist/models/TimelineCoverBehavior.js.map +1 -0
  171. package/dist/models/TimelineHalfCover.d.ts +85 -0
  172. package/dist/models/TimelineHalfCover.d.ts.map +1 -0
  173. package/dist/models/TimelineHalfCover.js +84 -0
  174. package/dist/models/TimelineHalfCover.js.map +1 -0
  175. package/dist/models/TimelineShowAlert.d.ts +2 -2
  176. package/dist/models/TimelineShowAlert.d.ts.map +1 -1
  177. package/dist/models/TimelineShowCover.d.ts +47 -0
  178. package/dist/models/TimelineShowCover.d.ts.map +1 -0
  179. package/dist/models/TimelineShowCover.js +60 -0
  180. package/dist/models/TimelineShowCover.js.map +1 -0
  181. package/dist/models/TimelineTerminateTimeline.d.ts +1 -1
  182. package/dist/models/TimelineTerminateTimeline.d.ts.map +1 -1
  183. package/dist/models/TimelineTimelineItem.d.ts +3 -4
  184. package/dist/models/TimelineTimelineItem.d.ts.map +1 -1
  185. package/dist/models/TimelineTimelineItem.js +3 -2
  186. package/dist/models/TimelineTimelineItem.js.map +1 -1
  187. package/dist/models/TimelineTimelineModule.d.ts +9 -1
  188. package/dist/models/TimelineTimelineModule.d.ts.map +1 -1
  189. package/dist/models/TimelineTimelineModule.js +8 -1
  190. package/dist/models/TimelineTimelineModule.js.map +1 -1
  191. package/dist/models/TimelineUser.d.ts +10 -1
  192. package/dist/models/TimelineUser.d.ts.map +1 -1
  193. package/dist/models/TimelineUser.js +9 -1
  194. package/dist/models/TimelineUser.js.map +1 -1
  195. package/dist/models/Tweet.d.ts +11 -5
  196. package/dist/models/Tweet.d.ts.map +1 -1
  197. package/dist/models/Tweet.js +7 -7
  198. package/dist/models/Tweet.js.map +1 -1
  199. package/dist/models/TweetCardLegacy.d.ts +3 -3
  200. package/dist/models/TweetCardLegacy.d.ts.map +1 -1
  201. package/dist/models/TweetCardLegacy.js +3 -3
  202. package/dist/models/TweetCardLegacy.js.map +1 -1
  203. package/dist/models/TweetCardLegacyBindingValue.d.ts +39 -0
  204. package/dist/models/TweetCardLegacyBindingValue.d.ts.map +1 -0
  205. package/dist/models/TweetCardLegacyBindingValue.js +55 -0
  206. package/dist/models/TweetCardLegacyBindingValue.js.map +1 -0
  207. package/dist/models/TweetCardLegacyBindingValueData.d.ts +50 -0
  208. package/dist/models/TweetCardLegacyBindingValueData.d.ts.map +1 -0
  209. package/dist/models/{TweetCardLegacyBindingValuesInnerValue.js → TweetCardLegacyBindingValueData.js} +12 -12
  210. package/dist/models/TweetCardLegacyBindingValueData.js.map +1 -0
  211. package/dist/models/TweetEditControl.d.ts +13 -0
  212. package/dist/models/TweetEditControl.d.ts.map +1 -1
  213. package/dist/models/TweetEditControl.js +5 -0
  214. package/dist/models/TweetEditControl.js.map +1 -1
  215. package/dist/models/TweetEditControlInitial.d.ts +50 -0
  216. package/dist/models/TweetEditControlInitial.d.ts.map +1 -0
  217. package/dist/models/TweetEditControlInitial.js +60 -0
  218. package/dist/models/TweetEditControlInitial.js.map +1 -0
  219. package/dist/models/TweetLegacy.d.ts +3 -3
  220. package/dist/models/TweetLegacy.d.ts.map +1 -1
  221. package/dist/models/TweetLegacy.js +3 -3
  222. package/dist/models/TweetLegacy.js.map +1 -1
  223. package/dist/models/TweetUnion.d.ts +1 -1
  224. package/dist/models/TweetUnion.d.ts.map +1 -1
  225. package/dist/models/TweetView.d.ts +45 -0
  226. package/dist/models/TweetView.d.ts.map +1 -0
  227. package/dist/models/{TweetViews.js → TweetView.js} +20 -13
  228. package/dist/models/TweetView.js.map +1 -0
  229. package/dist/models/TypeName.d.ts +2 -1
  230. package/dist/models/TypeName.d.ts.map +1 -1
  231. package/dist/models/TypeName.js +1 -0
  232. package/dist/models/TypeName.js.map +1 -1
  233. package/dist/models/UserUnion.d.ts +1 -1
  234. package/dist/models/UserUnion.d.ts.map +1 -1
  235. package/dist/models/index.d.ts +24 -4
  236. package/dist/models/index.d.ts.map +1 -1
  237. package/dist/models/index.js +24 -4
  238. package/dist/models/index.js.map +1 -1
  239. package/dist/runtime.d.ts +9 -9
  240. package/dist/runtime.d.ts.map +1 -1
  241. package/dist/runtime.js +1 -1
  242. package/package.json +2 -2
  243. package/src/models/AdditionalMediaInfo.ts +66 -0
  244. package/src/models/Callback.ts +66 -0
  245. package/src/models/ClientEventInfo.ts +81 -0
  246. package/src/models/CoverCta.ts +130 -0
  247. package/src/models/CtaClientEventInfo.ts +76 -0
  248. package/src/models/ExtMediaAvailability.ts +75 -0
  249. package/src/models/ExtendedEntities.ts +9 -9
  250. package/src/models/InstructionType.ts +2 -1
  251. package/src/models/InstructionUnion.ts +12 -1
  252. package/src/models/ItemResult.ts +2 -3
  253. package/src/models/Media.ts +27 -17
  254. package/src/models/MediaExtended.ts +237 -0
  255. package/src/models/MediaOriginalInfo.ts +17 -8
  256. package/src/models/MediaOriginalInfoFocusRect.ts +93 -0
  257. package/src/models/MediaSize.ts +95 -0
  258. package/src/models/MediaSizes.ts +100 -0
  259. package/src/models/MediaStats.ts +66 -0
  260. package/src/models/MediaVideoInfo.ts +90 -0
  261. package/src/models/MediaVideoInfoVariant.ts +83 -0
  262. package/src/models/ModuleEntry.ts +10 -4
  263. package/src/models/{TweetLegacySelfThread.ts → SelfThread.ts} +9 -9
  264. package/src/models/Session.ts +11 -1
  265. package/src/models/Text.ts +82 -0
  266. package/src/models/TextEntity.ts +91 -0
  267. package/src/models/TextEntityRef.ts +102 -0
  268. package/src/models/TimelineCoverBehavior.ts +76 -0
  269. package/src/models/TimelineHalfCover.ts +157 -0
  270. package/src/models/TimelineShowCover.ts +103 -0
  271. package/src/models/TimelineTimelineItem.ts +10 -4
  272. package/src/models/TimelineTimelineModule.ts +12 -1
  273. package/src/models/TimelineUser.ts +13 -1
  274. package/src/models/Tweet.ts +21 -15
  275. package/src/models/TweetCardLegacy.ts +9 -9
  276. package/src/models/TweetCardLegacyBindingValue.ts +82 -0
  277. package/src/models/{TweetCardLegacyBindingValuesInnerValue.ts → TweetCardLegacyBindingValueData.ts} +12 -12
  278. package/src/models/TweetEditControl.ts +23 -0
  279. package/src/models/TweetEditControlInitial.ts +93 -0
  280. package/src/models/TweetLegacy.ts +9 -9
  281. package/src/models/{TweetViews.ts → TweetView.ts} +23 -12
  282. package/src/models/TypeName.ts +1 -0
  283. package/src/models/index.ts +24 -4
  284. package/tools/openapi-generator-config.yaml +1 -1
  285. package/tools/win/replace.py +1 -1
  286. package/twitter-openapi/.vscode/tasks.json +3 -0
  287. package/twitter-openapi/LICENSE +31 -0
  288. package/twitter-openapi/{LICENSE.txt → LICENSE.AGPL} +3 -3
  289. package/twitter-openapi/README.md +4 -1
  290. package/twitter-openapi/dist/compatible/openapi-3.0.yaml +2 -2
  291. package/twitter-openapi/dist/compatible/paths/other.yaml +2 -0
  292. package/twitter-openapi/dist/compatible/schemas/content.yaml +19 -6
  293. package/twitter-openapi/dist/compatible/schemas/instruction.yaml +130 -0
  294. package/twitter-openapi/dist/compatible/schemas/tweet.yaml +279 -94
  295. package/twitter-openapi/dist/compatible/schemas/typename.yaml +1 -0
  296. package/twitter-openapi/dist/docs/openapi-3.0.yaml +2 -2
  297. package/twitter-openapi/dist/docs/paths/other.yaml +2 -0
  298. package/twitter-openapi/dist/docs/schemas/content.yaml +19 -6
  299. package/twitter-openapi/dist/docs/schemas/instruction.yaml +130 -0
  300. package/twitter-openapi/dist/docs/schemas/tweet.yaml +279 -94
  301. package/twitter-openapi/dist/docs/schemas/typename.yaml +1 -0
  302. package/twitter-openapi/src/openapi/openapi-3.0.yaml +2 -2
  303. package/twitter-openapi/src/openapi/paths/other.yaml +2 -1
  304. package/twitter-openapi/src/openapi/schemas/content.yaml +20 -7
  305. package/twitter-openapi/src/openapi/schemas/instruction.yaml +134 -0
  306. package/twitter-openapi/src/openapi/schemas/tweet.yaml +306 -107
  307. package/twitter-openapi/src/openapi/schemas/typename.yaml +1 -0
  308. package/twitter-openapi/test/python/replace.py +23 -0
  309. package/twitter-openapi/test/python/test_serialize.py +191 -91
  310. package/dist/models/TweetCardLegacyBindingValuesInner.d.ts +0 -39
  311. package/dist/models/TweetCardLegacyBindingValuesInner.d.ts.map +0 -1
  312. package/dist/models/TweetCardLegacyBindingValuesInner.js +0 -55
  313. package/dist/models/TweetCardLegacyBindingValuesInner.js.map +0 -1
  314. package/dist/models/TweetCardLegacyBindingValuesInnerValue.d.ts +0 -50
  315. package/dist/models/TweetCardLegacyBindingValuesInnerValue.d.ts.map +0 -1
  316. package/dist/models/TweetCardLegacyBindingValuesInnerValue.js.map +0 -1
  317. package/dist/models/TweetLegacySelfThread.d.ts +0 -32
  318. package/dist/models/TweetLegacySelfThread.d.ts.map +0 -1
  319. package/dist/models/TweetLegacySelfThread.js +0 -51
  320. package/dist/models/TweetLegacySelfThread.js.map +0 -1
  321. package/dist/models/TweetViews.d.ts +0 -38
  322. package/dist/models/TweetViews.d.ts.map +0 -1
  323. package/dist/models/TweetViews.js.map +0 -1
  324. package/src/models/TweetCardLegacyBindingValuesInner.ts +0 -82
@@ -0,0 +1,76 @@
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 TimelineCoverBehavior
20
+ */
21
+ export interface TimelineCoverBehavior {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof TimelineCoverBehavior
26
+ */
27
+ type: TimelineCoverBehaviorTypeEnum;
28
+ }
29
+
30
+
31
+ /**
32
+ * @export
33
+ */
34
+ export const TimelineCoverBehaviorTypeEnum = {
35
+ TimelineCoverBehaviorDismiss: 'TimelineCoverBehaviorDismiss'
36
+ } as const;
37
+ export type TimelineCoverBehaviorTypeEnum = typeof TimelineCoverBehaviorTypeEnum[keyof typeof TimelineCoverBehaviorTypeEnum];
38
+
39
+
40
+ /**
41
+ * Check if a given object implements the TimelineCoverBehavior interface.
42
+ */
43
+ export function instanceOfTimelineCoverBehavior(value: object): boolean {
44
+ let isInstance = true;
45
+ isInstance = isInstance && "type" in value;
46
+
47
+ return isInstance;
48
+ }
49
+
50
+ export function TimelineCoverBehaviorFromJSON(json: any): TimelineCoverBehavior {
51
+ return TimelineCoverBehaviorFromJSONTyped(json, false);
52
+ }
53
+
54
+ export function TimelineCoverBehaviorFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimelineCoverBehavior {
55
+ if ((json === undefined) || (json === null)) {
56
+ return json;
57
+ }
58
+ return {
59
+
60
+ 'type': json['type'],
61
+ };
62
+ }
63
+
64
+ export function TimelineCoverBehaviorToJSON(value?: TimelineCoverBehavior | null): any {
65
+ if (value === undefined) {
66
+ return undefined;
67
+ }
68
+ if (value === null) {
69
+ return null;
70
+ }
71
+ return {
72
+
73
+ 'type': value.type,
74
+ };
75
+ }
76
+
@@ -0,0 +1,157 @@
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 { Callback } from './Callback';
17
+ import {
18
+ CallbackFromJSON,
19
+ CallbackFromJSONTyped,
20
+ CallbackToJSON,
21
+ } from './Callback';
22
+ import type { CoverCta } from './CoverCta';
23
+ import {
24
+ CoverCtaFromJSON,
25
+ CoverCtaFromJSONTyped,
26
+ CoverCtaToJSON,
27
+ } from './CoverCta';
28
+ import type { Text } from './Text';
29
+ import {
30
+ TextFromJSON,
31
+ TextFromJSONTyped,
32
+ TextToJSON,
33
+ } from './Text';
34
+
35
+ /**
36
+ *
37
+ * @export
38
+ * @interface TimelineHalfCover
39
+ */
40
+ export interface TimelineHalfCover {
41
+ /**
42
+ *
43
+ * @type {boolean}
44
+ * @memberof TimelineHalfCover
45
+ */
46
+ dismissible: boolean;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof TimelineHalfCover
51
+ */
52
+ halfCoverDisplayType: TimelineHalfCoverHalfCoverDisplayTypeEnum;
53
+ /**
54
+ *
55
+ * @type {Array<Callback>}
56
+ * @memberof TimelineHalfCover
57
+ */
58
+ impressionCallbacks: Array<Callback>;
59
+ /**
60
+ *
61
+ * @type {CoverCta}
62
+ * @memberof TimelineHalfCover
63
+ */
64
+ primaryCoverCta: CoverCta;
65
+ /**
66
+ *
67
+ * @type {Text}
68
+ * @memberof TimelineHalfCover
69
+ */
70
+ primaryText: Text;
71
+ /**
72
+ *
73
+ * @type {Text}
74
+ * @memberof TimelineHalfCover
75
+ */
76
+ secondaryText: Text;
77
+ /**
78
+ *
79
+ * @type {string}
80
+ * @memberof TimelineHalfCover
81
+ */
82
+ type: TimelineHalfCoverTypeEnum;
83
+ }
84
+
85
+
86
+ /**
87
+ * @export
88
+ */
89
+ export const TimelineHalfCoverHalfCoverDisplayTypeEnum = {
90
+ Cover: 'Cover'
91
+ } as const;
92
+ export type TimelineHalfCoverHalfCoverDisplayTypeEnum = typeof TimelineHalfCoverHalfCoverDisplayTypeEnum[keyof typeof TimelineHalfCoverHalfCoverDisplayTypeEnum];
93
+
94
+ /**
95
+ * @export
96
+ */
97
+ export const TimelineHalfCoverTypeEnum = {
98
+ TimelineHalfCover: 'TimelineHalfCover'
99
+ } as const;
100
+ export type TimelineHalfCoverTypeEnum = typeof TimelineHalfCoverTypeEnum[keyof typeof TimelineHalfCoverTypeEnum];
101
+
102
+
103
+ /**
104
+ * Check if a given object implements the TimelineHalfCover interface.
105
+ */
106
+ export function instanceOfTimelineHalfCover(value: object): boolean {
107
+ let isInstance = true;
108
+ isInstance = isInstance && "dismissible" in value;
109
+ isInstance = isInstance && "halfCoverDisplayType" in value;
110
+ isInstance = isInstance && "impressionCallbacks" in value;
111
+ isInstance = isInstance && "primaryCoverCta" in value;
112
+ isInstance = isInstance && "primaryText" in value;
113
+ isInstance = isInstance && "secondaryText" in value;
114
+ isInstance = isInstance && "type" in value;
115
+
116
+ return isInstance;
117
+ }
118
+
119
+ export function TimelineHalfCoverFromJSON(json: any): TimelineHalfCover {
120
+ return TimelineHalfCoverFromJSONTyped(json, false);
121
+ }
122
+
123
+ export function TimelineHalfCoverFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimelineHalfCover {
124
+ if ((json === undefined) || (json === null)) {
125
+ return json;
126
+ }
127
+ return {
128
+
129
+ 'dismissible': json['dismissible'],
130
+ 'halfCoverDisplayType': json['halfCoverDisplayType'],
131
+ 'impressionCallbacks': ((json['impressionCallbacks'] as Array<any>).map(CallbackFromJSON)),
132
+ 'primaryCoverCta': CoverCtaFromJSON(json['primaryCoverCta']),
133
+ 'primaryText': TextFromJSON(json['primaryText']),
134
+ 'secondaryText': TextFromJSON(json['secondaryText']),
135
+ 'type': json['type'],
136
+ };
137
+ }
138
+
139
+ export function TimelineHalfCoverToJSON(value?: TimelineHalfCover | null): any {
140
+ if (value === undefined) {
141
+ return undefined;
142
+ }
143
+ if (value === null) {
144
+ return null;
145
+ }
146
+ return {
147
+
148
+ 'dismissible': value.dismissible,
149
+ 'halfCoverDisplayType': value.halfCoverDisplayType,
150
+ 'impressionCallbacks': ((value.impressionCallbacks as Array<any>).map(CallbackToJSON)),
151
+ 'primaryCoverCta': CoverCtaToJSON(value.primaryCoverCta),
152
+ 'primaryText': TextToJSON(value.primaryText),
153
+ 'secondaryText': TextToJSON(value.secondaryText),
154
+ 'type': value.type,
155
+ };
156
+ }
157
+
@@ -0,0 +1,103 @@
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 { ClientEventInfo } from './ClientEventInfo';
17
+ import {
18
+ ClientEventInfoFromJSON,
19
+ ClientEventInfoFromJSONTyped,
20
+ ClientEventInfoToJSON,
21
+ } from './ClientEventInfo';
22
+ import type { InstructionType } from './InstructionType';
23
+ import {
24
+ InstructionTypeFromJSON,
25
+ InstructionTypeFromJSONTyped,
26
+ InstructionTypeToJSON,
27
+ } from './InstructionType';
28
+ import type { TimelineHalfCover } from './TimelineHalfCover';
29
+ import {
30
+ TimelineHalfCoverFromJSON,
31
+ TimelineHalfCoverFromJSONTyped,
32
+ TimelineHalfCoverToJSON,
33
+ } from './TimelineHalfCover';
34
+
35
+ /**
36
+ *
37
+ * @export
38
+ * @interface TimelineShowCover
39
+ */
40
+ export interface TimelineShowCover {
41
+ /**
42
+ *
43
+ * @type {ClientEventInfo}
44
+ * @memberof TimelineShowCover
45
+ */
46
+ clientEventInfo: ClientEventInfo;
47
+ /**
48
+ *
49
+ * @type {TimelineHalfCover}
50
+ * @memberof TimelineShowCover
51
+ */
52
+ cover: TimelineHalfCover;
53
+ /**
54
+ *
55
+ * @type {InstructionType}
56
+ * @memberof TimelineShowCover
57
+ */
58
+ type: InstructionType;
59
+ }
60
+
61
+ /**
62
+ * Check if a given object implements the TimelineShowCover interface.
63
+ */
64
+ export function instanceOfTimelineShowCover(value: object): boolean {
65
+ let isInstance = true;
66
+ isInstance = isInstance && "clientEventInfo" in value;
67
+ isInstance = isInstance && "cover" in value;
68
+ isInstance = isInstance && "type" in value;
69
+
70
+ return isInstance;
71
+ }
72
+
73
+ export function TimelineShowCoverFromJSON(json: any): TimelineShowCover {
74
+ return TimelineShowCoverFromJSONTyped(json, false);
75
+ }
76
+
77
+ export function TimelineShowCoverFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimelineShowCover {
78
+ if ((json === undefined) || (json === null)) {
79
+ return json;
80
+ }
81
+ return {
82
+
83
+ 'clientEventInfo': ClientEventInfoFromJSON(json['clientEventInfo']),
84
+ 'cover': TimelineHalfCoverFromJSON(json['cover']),
85
+ 'type': InstructionTypeFromJSON(json['type']),
86
+ };
87
+ }
88
+
89
+ export function TimelineShowCoverToJSON(value?: TimelineShowCover | null): any {
90
+ if (value === undefined) {
91
+ return undefined;
92
+ }
93
+ if (value === null) {
94
+ return null;
95
+ }
96
+ return {
97
+
98
+ 'clientEventInfo': ClientEventInfoToJSON(value.clientEventInfo),
99
+ 'cover': TimelineHalfCoverToJSON(value.cover),
100
+ 'type': InstructionTypeToJSON(value.type),
101
+ };
102
+ }
103
+
@@ -13,6 +13,12 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
+ import type { ClientEventInfo } from './ClientEventInfo';
17
+ import {
18
+ ClientEventInfoFromJSON,
19
+ ClientEventInfoFromJSONTyped,
20
+ ClientEventInfoToJSON,
21
+ } from './ClientEventInfo';
16
22
  import type { ContentEntryType } from './ContentEntryType';
17
23
  import {
18
24
  ContentEntryTypeFromJSON,
@@ -46,10 +52,10 @@ export interface TimelineTimelineItem {
46
52
  typename: TypeName;
47
53
  /**
48
54
  *
49
- * @type {{ [key: string]: any; }}
55
+ * @type {ClientEventInfo}
50
56
  * @memberof TimelineTimelineItem
51
57
  */
52
- clientEventInfo?: { [key: string]: any; };
58
+ clientEventInfo?: ClientEventInfo;
53
59
  /**
54
60
  *
55
61
  * @type {ContentEntryType}
@@ -93,7 +99,7 @@ export function TimelineTimelineItemFromJSONTyped(json: any, ignoreDiscriminator
93
99
  return {
94
100
 
95
101
  'typename': TypeNameFromJSON(json['__typename']),
96
- 'clientEventInfo': !exists(json, 'clientEventInfo') ? undefined : json['clientEventInfo'],
102
+ 'clientEventInfo': !exists(json, 'clientEventInfo') ? undefined : ClientEventInfoFromJSON(json['clientEventInfo']),
97
103
  'entryType': ContentEntryTypeFromJSON(json['entryType']),
98
104
  'feedbackInfo': !exists(json, 'feedbackInfo') ? undefined : json['feedbackInfo'],
99
105
  'itemContent': ItemContentUnionFromJSON(json['itemContent']),
@@ -110,7 +116,7 @@ export function TimelineTimelineItemToJSON(value?: TimelineTimelineItem | null):
110
116
  return {
111
117
 
112
118
  '__typename': TypeNameToJSON(value.typename),
113
- 'clientEventInfo': value.clientEventInfo,
119
+ 'clientEventInfo': ClientEventInfoToJSON(value.clientEventInfo),
114
120
  'entryType': ContentEntryTypeToJSON(value.entryType),
115
121
  'feedbackInfo': value.feedbackInfo,
116
122
  'itemContent': ItemContentUnionToJSON(value.itemContent),
@@ -55,7 +55,7 @@ export interface TimelineTimelineModule {
55
55
  * @type {string}
56
56
  * @memberof TimelineTimelineModule
57
57
  */
58
- displayType: string;
58
+ displayType: TimelineTimelineModuleDisplayTypeEnum;
59
59
  /**
60
60
  *
61
61
  * @type {ContentEntryType}
@@ -82,6 +82,17 @@ export interface TimelineTimelineModule {
82
82
  items?: Array<ModuleItem>;
83
83
  }
84
84
 
85
+
86
+ /**
87
+ * @export
88
+ */
89
+ export const TimelineTimelineModuleDisplayTypeEnum = {
90
+ Vertical: 'Vertical',
91
+ VerticalConversation: 'VerticalConversation'
92
+ } as const;
93
+ export type TimelineTimelineModuleDisplayTypeEnum = typeof TimelineTimelineModuleDisplayTypeEnum[keyof typeof TimelineTimelineModuleDisplayTypeEnum];
94
+
95
+
85
96
  /**
86
97
  * Check if a given object implements the TimelineTimelineModule interface.
87
98
  */
@@ -67,7 +67,7 @@ export interface TimelineUser {
67
67
  * @type {string}
68
68
  * @memberof TimelineUser
69
69
  */
70
- userDisplayType: string;
70
+ userDisplayType: TimelineUserUserDisplayTypeEnum;
71
71
  /**
72
72
  *
73
73
  * @type {UserResults}
@@ -76,6 +76,18 @@ export interface TimelineUser {
76
76
  userResults: UserResults;
77
77
  }
78
78
 
79
+
80
+ /**
81
+ * @export
82
+ */
83
+ export const TimelineUserUserDisplayTypeEnum = {
84
+ User: 'User',
85
+ UserDetailed: 'UserDetailed',
86
+ SubscribableUser: 'SubscribableUser'
87
+ } as const;
88
+ export type TimelineUserUserDisplayTypeEnum = typeof TimelineUserUserDisplayTypeEnum[keyof typeof TimelineUserUserDisplayTypeEnum];
89
+
90
+
79
91
  /**
80
92
  * Check if a given object implements the TimelineUser interface.
81
93
  */
@@ -43,12 +43,12 @@ import {
43
43
  TweetLegacyFromJSONTyped,
44
44
  TweetLegacyToJSON,
45
45
  } from './TweetLegacy';
46
- import type { TweetViews } from './TweetViews';
46
+ import type { TweetView } from './TweetView';
47
47
  import {
48
- TweetViewsFromJSON,
49
- TweetViewsFromJSONTyped,
50
- TweetViewsToJSON,
51
- } from './TweetViews';
48
+ TweetViewFromJSON,
49
+ TweetViewFromJSONTyped,
50
+ TweetViewToJSON,
51
+ } from './TweetView';
52
52
  import type { TypeName } from './TypeName';
53
53
  import {
54
54
  TypeNameFromJSON,
@@ -85,7 +85,7 @@ export interface Tweet {
85
85
  * @type {UserResultCore}
86
86
  * @memberof Tweet
87
87
  */
88
- core: UserResultCore;
88
+ core?: UserResultCore;
89
89
  /**
90
90
  *
91
91
  * @type {TweetEditControl}
@@ -109,7 +109,7 @@ export interface Tweet {
109
109
  * @type {TweetLegacy}
110
110
  * @memberof Tweet
111
111
  */
112
- legacy: TweetLegacy;
112
+ legacy?: TweetLegacy;
113
113
  /**
114
114
  *
115
115
  * @type {ItemResult}
@@ -122,6 +122,12 @@ export interface Tweet {
122
122
  * @memberof Tweet
123
123
  */
124
124
  restId: string;
125
+ /**
126
+ *
127
+ * @type {string}
128
+ * @memberof Tweet
129
+ */
130
+ source?: string;
125
131
  /**
126
132
  *
127
133
  * @type {{ [key: string]: any; }}
@@ -130,10 +136,10 @@ export interface Tweet {
130
136
  unmentionData?: { [key: string]: any; };
131
137
  /**
132
138
  *
133
- * @type {TweetViews}
139
+ * @type {TweetView}
134
140
  * @memberof Tweet
135
141
  */
136
- views: TweetViews;
142
+ views: TweetView;
137
143
  }
138
144
 
139
145
  /**
@@ -141,10 +147,8 @@ export interface Tweet {
141
147
  */
142
148
  export function instanceOfTweet(value: object): boolean {
143
149
  let isInstance = true;
144
- isInstance = isInstance && "core" in value;
145
150
  isInstance = isInstance && "editControl" in value;
146
151
  isInstance = isInstance && "isTranslatable" in value;
147
- isInstance = isInstance && "legacy" in value;
148
152
  isInstance = isInstance && "restId" in value;
149
153
  isInstance = isInstance && "views" in value;
150
154
 
@@ -163,15 +167,16 @@ export function TweetFromJSONTyped(json: any, ignoreDiscriminator: boolean): Twe
163
167
 
164
168
  'typename': !exists(json, '__typename') ? undefined : TypeNameFromJSON(json['__typename']),
165
169
  'card': !exists(json, 'card') ? undefined : TweetCardFromJSON(json['card']),
166
- 'core': UserResultCoreFromJSON(json['core']),
170
+ 'core': !exists(json, 'core') ? undefined : UserResultCoreFromJSON(json['core']),
167
171
  'editControl': TweetEditControlFromJSON(json['edit_control']),
168
172
  'editPrespective': !exists(json, 'edit_prespective') ? undefined : TweetEditPrespectiveFromJSON(json['edit_prespective']),
169
173
  'isTranslatable': json['is_translatable'],
170
- 'legacy': TweetLegacyFromJSON(json['legacy']),
174
+ 'legacy': !exists(json, 'legacy') ? undefined : TweetLegacyFromJSON(json['legacy']),
171
175
  'quotedStatusResult': !exists(json, 'quoted_status_result') ? undefined : ItemResultFromJSON(json['quoted_status_result']),
172
176
  'restId': json['rest_id'],
177
+ 'source': !exists(json, 'source') ? undefined : json['source'],
173
178
  'unmentionData': !exists(json, 'unmention_data') ? undefined : json['unmention_data'],
174
- 'views': TweetViewsFromJSON(json['views']),
179
+ 'views': TweetViewFromJSON(json['views']),
175
180
  };
176
181
  }
177
182
 
@@ -193,8 +198,9 @@ export function TweetToJSON(value?: Tweet | null): any {
193
198
  'legacy': TweetLegacyToJSON(value.legacy),
194
199
  'quoted_status_result': ItemResultToJSON(value.quotedStatusResult),
195
200
  'rest_id': value.restId,
201
+ 'source': value.source,
196
202
  'unmention_data': value.unmentionData,
197
- 'views': TweetViewsToJSON(value.views),
203
+ 'views': TweetViewToJSON(value.views),
198
204
  };
199
205
  }
200
206
 
@@ -13,12 +13,12 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
- import type { TweetCardLegacyBindingValuesInner } from './TweetCardLegacyBindingValuesInner';
16
+ import type { TweetCardLegacyBindingValue } from './TweetCardLegacyBindingValue';
17
17
  import {
18
- TweetCardLegacyBindingValuesInnerFromJSON,
19
- TweetCardLegacyBindingValuesInnerFromJSONTyped,
20
- TweetCardLegacyBindingValuesInnerToJSON,
21
- } from './TweetCardLegacyBindingValuesInner';
18
+ TweetCardLegacyBindingValueFromJSON,
19
+ TweetCardLegacyBindingValueFromJSONTyped,
20
+ TweetCardLegacyBindingValueToJSON,
21
+ } from './TweetCardLegacyBindingValue';
22
22
 
23
23
  /**
24
24
  *
@@ -28,10 +28,10 @@ import {
28
28
  export interface TweetCardLegacy {
29
29
  /**
30
30
  *
31
- * @type {Array<TweetCardLegacyBindingValuesInner>}
31
+ * @type {Array<TweetCardLegacyBindingValue>}
32
32
  * @memberof TweetCardLegacy
33
33
  */
34
- bindingValues: Array<TweetCardLegacyBindingValuesInner>;
34
+ bindingValues: Array<TweetCardLegacyBindingValue>;
35
35
  /**
36
36
  *
37
37
  * @type {string}
@@ -68,7 +68,7 @@ export function TweetCardLegacyFromJSONTyped(json: any, ignoreDiscriminator: boo
68
68
  }
69
69
  return {
70
70
 
71
- 'bindingValues': ((json['binding_values'] as Array<any>).map(TweetCardLegacyBindingValuesInnerFromJSON)),
71
+ 'bindingValues': ((json['binding_values'] as Array<any>).map(TweetCardLegacyBindingValueFromJSON)),
72
72
  'name': json['name'],
73
73
  'url': json['url'],
74
74
  };
@@ -83,7 +83,7 @@ export function TweetCardLegacyToJSON(value?: TweetCardLegacy | null): any {
83
83
  }
84
84
  return {
85
85
 
86
- 'binding_values': ((value.bindingValues as Array<any>).map(TweetCardLegacyBindingValuesInnerToJSON)),
86
+ 'binding_values': ((value.bindingValues as Array<any>).map(TweetCardLegacyBindingValueToJSON)),
87
87
  'name': value.name,
88
88
  'url': value.url,
89
89
  };
@@ -0,0 +1,82 @@
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 { TweetCardLegacyBindingValueData } from './TweetCardLegacyBindingValueData';
17
+ import {
18
+ TweetCardLegacyBindingValueDataFromJSON,
19
+ TweetCardLegacyBindingValueDataFromJSONTyped,
20
+ TweetCardLegacyBindingValueDataToJSON,
21
+ } from './TweetCardLegacyBindingValueData';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface TweetCardLegacyBindingValue
27
+ */
28
+ export interface TweetCardLegacyBindingValue {
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof TweetCardLegacyBindingValue
33
+ */
34
+ key: string;
35
+ /**
36
+ *
37
+ * @type {TweetCardLegacyBindingValueData}
38
+ * @memberof TweetCardLegacyBindingValue
39
+ */
40
+ value: TweetCardLegacyBindingValueData;
41
+ }
42
+
43
+ /**
44
+ * Check if a given object implements the TweetCardLegacyBindingValue interface.
45
+ */
46
+ export function instanceOfTweetCardLegacyBindingValue(value: object): boolean {
47
+ let isInstance = true;
48
+ isInstance = isInstance && "key" in value;
49
+ isInstance = isInstance && "value" in value;
50
+
51
+ return isInstance;
52
+ }
53
+
54
+ export function TweetCardLegacyBindingValueFromJSON(json: any): TweetCardLegacyBindingValue {
55
+ return TweetCardLegacyBindingValueFromJSONTyped(json, false);
56
+ }
57
+
58
+ export function TweetCardLegacyBindingValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): TweetCardLegacyBindingValue {
59
+ if ((json === undefined) || (json === null)) {
60
+ return json;
61
+ }
62
+ return {
63
+
64
+ 'key': json['key'],
65
+ 'value': TweetCardLegacyBindingValueDataFromJSON(json['value']),
66
+ };
67
+ }
68
+
69
+ export function TweetCardLegacyBindingValueToJSON(value?: TweetCardLegacyBindingValue | null): any {
70
+ if (value === undefined) {
71
+ return undefined;
72
+ }
73
+ if (value === null) {
74
+ return null;
75
+ }
76
+ return {
77
+
78
+ 'key': value.key,
79
+ 'value': TweetCardLegacyBindingValueDataToJSON(value.value),
80
+ };
81
+ }
82
+