twitter-openapi-typescript-generated 0.0.41 → 0.1.0

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 (361) hide show
  1. package/README.md +60 -6
  2. package/dist/esm/models/AdMetadataContainer.d.ts +47 -0
  3. package/dist/esm/models/AdMetadataContainer.js +56 -0
  4. package/dist/esm/models/AffiliatesHighlightedLabel.d.ts +31 -0
  5. package/dist/esm/models/AffiliatesHighlightedLabel.js +42 -0
  6. package/dist/esm/models/ApiImage.d.ts +53 -0
  7. package/dist/esm/models/ApiImage.js +66 -0
  8. package/dist/esm/models/ApiMedia.d.ts +48 -0
  9. package/dist/esm/models/ApiMedia.js +61 -0
  10. package/dist/esm/models/ArticleCoverMediaInfo.d.ts +2 -2
  11. package/dist/esm/models/ArticleCoverMediaInfo.js +3 -3
  12. package/dist/esm/models/BirdwatchPivot.d.ts +1 -0
  13. package/dist/esm/models/BirdwatchPivot.js +1 -0
  14. package/dist/esm/models/CashtagInfo.d.ts +38 -0
  15. package/dist/esm/models/CashtagInfo.js +51 -0
  16. package/dist/esm/models/ClickTrackingInfo.d.ts +31 -0
  17. package/dist/esm/models/ClickTrackingInfo.js +44 -0
  18. package/dist/esm/models/ClientEventInfo.d.ts +2 -3
  19. package/dist/esm/models/ClientEventInfo.js +3 -2
  20. package/dist/esm/models/ClientEventInfoDetails.d.ts +36 -0
  21. package/dist/esm/models/ClientEventInfoDetails.js +47 -0
  22. package/dist/esm/models/Community.d.ts +5 -9
  23. package/dist/esm/models/Community.js +8 -6
  24. package/dist/esm/models/CommunityBannerMedia.d.ts +35 -0
  25. package/dist/esm/models/CommunityBannerMedia.js +46 -0
  26. package/dist/esm/models/CommunityBannerMediaInfo.d.ts +53 -0
  27. package/dist/esm/models/CommunityBannerMediaInfo.js +62 -0
  28. package/dist/esm/models/CommunityModerationState.d.ts +31 -0
  29. package/dist/esm/models/CommunityModerationState.js +44 -0
  30. package/dist/esm/models/CommunityRelationship.d.ts +2 -3
  31. package/dist/esm/models/CommunityRelationship.js +3 -2
  32. package/dist/esm/models/CommunityViewerRelationship.d.ts +35 -0
  33. package/dist/esm/models/CommunityViewerRelationship.js +46 -0
  34. package/dist/esm/models/ConversationControl.d.ts +6 -10
  35. package/dist/esm/models/ConversationControl.js +8 -11
  36. package/dist/esm/models/ConversationDetails.d.ts +37 -0
  37. package/dist/esm/models/ConversationDetails.js +51 -0
  38. package/dist/esm/models/ConversationMetadata.d.ts +34 -0
  39. package/dist/esm/models/ConversationMetadata.js +47 -0
  40. package/dist/esm/models/ConversationOwner.d.ts +36 -0
  41. package/dist/esm/models/ConversationOwner.js +49 -0
  42. package/dist/esm/models/ConversationOwnerCore.d.ts +30 -0
  43. package/dist/esm/models/ConversationOwnerCore.js +43 -0
  44. package/dist/esm/models/ConversationOwnerResults.d.ts +31 -0
  45. package/dist/esm/models/ConversationOwnerResults.js +44 -0
  46. package/dist/esm/models/CtaLimitedActionPrompt.d.ts +51 -0
  47. package/dist/esm/models/CtaLimitedActionPrompt.js +65 -0
  48. package/dist/esm/models/CtaLimitedActionPromptText.d.ts +34 -0
  49. package/dist/esm/models/CtaLimitedActionPromptText.js +47 -0
  50. package/dist/esm/models/DeepsearchHeader.d.ts +31 -0
  51. package/dist/esm/models/DeepsearchHeader.js +44 -0
  52. package/dist/esm/models/DeepsearchStep.d.ts +35 -0
  53. package/dist/esm/models/DeepsearchStep.js +48 -0
  54. package/dist/esm/models/DeepsearchWebResult.d.ts +30 -0
  55. package/dist/esm/models/DeepsearchWebResult.js +43 -0
  56. package/dist/esm/models/Entities.d.ts +6 -9
  57. package/dist/esm/models/Entities.js +9 -6
  58. package/dist/esm/models/FeedbackAction.d.ts +89 -0
  59. package/dist/esm/models/FeedbackAction.js +89 -0
  60. package/dist/esm/models/FeedbackActionEntry.d.ts +35 -0
  61. package/dist/esm/models/FeedbackActionEntry.js +48 -0
  62. package/dist/esm/models/FeedbackClientEventInfo.d.ts +38 -0
  63. package/dist/esm/models/FeedbackClientEventInfo.js +49 -0
  64. package/dist/esm/models/FeedbackInfo.d.ts +7 -3
  65. package/dist/esm/models/FeedbackInfo.js +8 -4
  66. package/dist/esm/models/GrokShareAttachmentItem.d.ts +2 -3
  67. package/dist/esm/models/GrokShareAttachmentItem.js +3 -2
  68. package/dist/esm/models/GrokTranslatedPost.d.ts +1 -3
  69. package/dist/esm/models/Hashtag.d.ts +34 -0
  70. package/dist/esm/models/Hashtag.js +47 -0
  71. package/dist/esm/models/JetfuelAttachment.d.ts +34 -0
  72. package/dist/esm/models/JetfuelAttachment.js +47 -0
  73. package/dist/esm/models/KeyValue.d.ts +34 -0
  74. package/dist/esm/models/KeyValue.js +47 -0
  75. package/dist/esm/models/LandingUrl.d.ts +42 -0
  76. package/dist/esm/models/LandingUrl.js +54 -0
  77. package/dist/esm/models/LimitedAction.d.ts +35 -0
  78. package/dist/esm/models/LimitedAction.js +46 -0
  79. package/dist/esm/models/LimitedActionResults.d.ts +31 -0
  80. package/dist/esm/models/LimitedActionResults.js +44 -0
  81. package/dist/esm/models/LimitedActionResultsData.d.ts +1 -21
  82. package/dist/esm/models/LimitedActionResultsData.js +0 -19
  83. package/dist/esm/models/ListBannerMediaInfo.d.ts +2 -2
  84. package/dist/esm/models/ListBannerMediaInfo.js +3 -3
  85. package/dist/esm/models/ListBannerMediaResults.d.ts +31 -0
  86. package/dist/esm/models/ListBannerMediaResults.js +42 -0
  87. package/dist/esm/models/MediaColorInfo.d.ts +31 -0
  88. package/dist/esm/models/MediaColorInfo.js +44 -0
  89. package/dist/esm/models/MediaColorInfoPalette.d.ts +35 -0
  90. package/dist/esm/models/MediaColorInfoPalette.js +48 -0
  91. package/dist/esm/models/MediaColorInfoPaletteRGB.d.ts +38 -0
  92. package/dist/esm/models/{ArticleCoverMediaColorInfoPaletteRGB.js → MediaColorInfoPaletteRGB.js} +8 -8
  93. package/dist/esm/models/MediaSalientRect.d.ts +42 -0
  94. package/dist/esm/models/{ListBannerMediaSalientRect.js → MediaSalientRect.js} +8 -8
  95. package/dist/esm/models/ModuleFooter.d.ts +46 -0
  96. package/dist/esm/models/ModuleFooter.js +60 -0
  97. package/dist/esm/models/ModuleHeader.d.ts +45 -0
  98. package/dist/esm/models/ModuleHeader.js +57 -0
  99. package/dist/esm/models/ModuleMetadata.d.ts +31 -0
  100. package/dist/esm/models/ModuleMetadata.js +44 -0
  101. package/dist/esm/models/PromotedMetadata.d.ts +49 -0
  102. package/dist/esm/models/PromotedMetadata.js +62 -0
  103. package/dist/esm/models/ReaderModeConfig.d.ts +30 -0
  104. package/dist/esm/models/ReaderModeConfig.js +43 -0
  105. package/dist/esm/models/ScribeConfig.d.ts +30 -0
  106. package/dist/esm/models/ScribeConfig.js +43 -0
  107. package/dist/esm/models/SmarttagTag.d.ts +2 -3
  108. package/dist/esm/models/SmarttagTag.js +3 -2
  109. package/dist/esm/models/SmarttagTagInfo.d.ts +31 -0
  110. package/dist/esm/models/SmarttagTagInfo.js +42 -0
  111. package/dist/esm/models/Symbol.d.ts +39 -0
  112. package/dist/esm/models/Symbol.js +50 -0
  113. package/dist/esm/models/Timeline.d.ts +4 -6
  114. package/dist/esm/models/Timeline.js +6 -4
  115. package/dist/esm/models/TimelineMetadata.d.ts +36 -0
  116. package/dist/esm/models/TimelineMetadata.js +47 -0
  117. package/dist/esm/models/TimelineResponseObjects.d.ts +31 -0
  118. package/dist/esm/models/TimelineResponseObjects.js +42 -0
  119. package/dist/esm/models/TimelineShowAlert.d.ts +10 -12
  120. package/dist/esm/models/TimelineShowAlert.js +31 -13
  121. package/dist/esm/models/TimelineShowAlertColorConfig.d.ts +38 -0
  122. package/dist/esm/models/TimelineShowAlertColorConfig.js +51 -0
  123. package/dist/esm/models/TimelineShowAlertIconDisplayInfo.d.ts +34 -0
  124. package/dist/esm/models/TimelineShowAlertIconDisplayInfo.js +47 -0
  125. package/dist/esm/models/TimelineShowAlertRichText.d.ts +2 -4
  126. package/dist/esm/models/TimelineShowAlertRichText.js +6 -2
  127. package/dist/esm/models/TimelineTimelineItem.d.ts +2 -3
  128. package/dist/esm/models/TimelineTimelineItem.js +3 -2
  129. package/dist/esm/models/TimelineTimelineModule.d.ts +6 -9
  130. package/dist/esm/models/TimelineTimelineModule.js +9 -6
  131. package/dist/esm/models/TimelineTweet.d.ts +2 -3
  132. package/dist/esm/models/TimelineTweet.js +3 -2
  133. package/dist/esm/models/TimelinesDetails.d.ts +38 -0
  134. package/dist/esm/models/TimelinesDetails.js +45 -0
  135. package/dist/esm/models/Tweet.d.ts +6 -3
  136. package/dist/esm/models/Tweet.js +3 -0
  137. package/dist/esm/models/TweetCardLegacyBindingValueData.d.ts +2 -3
  138. package/dist/esm/models/TweetCardLegacyBindingValueData.js +3 -2
  139. package/dist/esm/models/TweetLegacy.d.ts +2 -3
  140. package/dist/esm/models/TweetLegacy.js +3 -2
  141. package/dist/esm/models/TweetWithVisibilityResults.d.ts +2 -3
  142. package/dist/esm/models/TweetWithVisibilityResults.js +3 -2
  143. package/dist/esm/models/TwitterList.d.ts +10 -3
  144. package/dist/esm/models/TwitterList.js +7 -2
  145. package/dist/esm/models/TypeName.d.ts +3 -0
  146. package/dist/esm/models/TypeName.js +3 -0
  147. package/dist/esm/models/User.d.ts +3 -6
  148. package/dist/esm/models/User.js +3 -2
  149. package/dist/esm/models/UserLabel.d.ts +68 -0
  150. package/dist/esm/models/UserLabel.js +73 -0
  151. package/dist/esm/models/UserLabelBadge.d.ts +30 -0
  152. package/dist/esm/models/UserLabelBadge.js +43 -0
  153. package/dist/esm/models/UserLabelMentionResults.d.ts +31 -0
  154. package/dist/esm/models/UserLabelMentionResults.js +44 -0
  155. package/dist/esm/models/UserLabelMentionUser.d.ts +40 -0
  156. package/dist/esm/models/UserLabelMentionUser.js +53 -0
  157. package/dist/esm/models/UserLabelMentionUserCore.d.ts +30 -0
  158. package/dist/esm/models/UserLabelMentionUserCore.js +43 -0
  159. package/dist/esm/models/UserLabelText.d.ts +35 -0
  160. package/dist/esm/models/UserLabelText.js +48 -0
  161. package/dist/esm/models/UserLabelTextEntity.d.ts +39 -0
  162. package/dist/esm/models/UserLabelTextEntity.js +52 -0
  163. package/dist/esm/models/UserLabelTextEntityRef.d.ts +46 -0
  164. package/dist/esm/models/UserLabelTextEntityRef.js +60 -0
  165. package/dist/esm/models/UserLabelUrl.d.ts +41 -0
  166. package/dist/esm/models/UserLabelUrl.js +55 -0
  167. package/dist/esm/models/UserLegacy.d.ts +2 -3
  168. package/dist/esm/models/UserLegacy.js +3 -2
  169. package/dist/esm/models/UserMention.d.ts +46 -0
  170. package/dist/esm/models/UserMention.js +57 -0
  171. package/dist/esm/models/UserProfessional.d.ts +5 -1
  172. package/dist/esm/models/UserProfessional.js +3 -3
  173. package/dist/esm/models/index.d.ts +58 -4
  174. package/dist/esm/models/index.js +58 -4
  175. package/dist/models/AdMetadataContainer.d.ts +47 -0
  176. package/dist/models/AdMetadataContainer.js +63 -0
  177. package/dist/models/AffiliatesHighlightedLabel.d.ts +31 -0
  178. package/dist/models/AffiliatesHighlightedLabel.js +49 -0
  179. package/dist/models/ApiImage.d.ts +53 -0
  180. package/dist/models/ApiImage.js +73 -0
  181. package/dist/models/ApiMedia.d.ts +48 -0
  182. package/dist/models/ApiMedia.js +68 -0
  183. package/dist/models/ArticleCoverMediaInfo.d.ts +2 -2
  184. package/dist/models/ArticleCoverMediaInfo.js +3 -3
  185. package/dist/models/BirdwatchPivot.d.ts +1 -0
  186. package/dist/models/BirdwatchPivot.js +1 -0
  187. package/dist/models/CashtagInfo.d.ts +38 -0
  188. package/dist/models/CashtagInfo.js +58 -0
  189. package/dist/models/ClickTrackingInfo.d.ts +31 -0
  190. package/dist/models/ClickTrackingInfo.js +51 -0
  191. package/dist/models/ClientEventInfo.d.ts +2 -3
  192. package/dist/models/ClientEventInfo.js +3 -2
  193. package/dist/models/ClientEventInfoDetails.d.ts +36 -0
  194. package/dist/models/ClientEventInfoDetails.js +54 -0
  195. package/dist/models/Community.d.ts +5 -9
  196. package/dist/models/Community.js +8 -6
  197. package/dist/models/CommunityBannerMedia.d.ts +35 -0
  198. package/dist/models/CommunityBannerMedia.js +53 -0
  199. package/dist/models/CommunityBannerMediaInfo.d.ts +53 -0
  200. package/dist/models/CommunityBannerMediaInfo.js +69 -0
  201. package/dist/models/CommunityModerationState.d.ts +31 -0
  202. package/dist/models/CommunityModerationState.js +51 -0
  203. package/dist/models/CommunityRelationship.d.ts +2 -3
  204. package/dist/models/CommunityRelationship.js +3 -2
  205. package/dist/models/CommunityViewerRelationship.d.ts +35 -0
  206. package/dist/models/CommunityViewerRelationship.js +53 -0
  207. package/dist/models/ConversationControl.d.ts +6 -10
  208. package/dist/models/ConversationControl.js +8 -12
  209. package/dist/models/ConversationDetails.d.ts +37 -0
  210. package/dist/models/ConversationDetails.js +59 -0
  211. package/dist/models/ConversationMetadata.d.ts +34 -0
  212. package/dist/models/ConversationMetadata.js +54 -0
  213. package/dist/models/ConversationOwner.d.ts +36 -0
  214. package/dist/models/ConversationOwner.js +56 -0
  215. package/dist/models/ConversationOwnerCore.d.ts +30 -0
  216. package/dist/models/ConversationOwnerCore.js +50 -0
  217. package/dist/models/ConversationOwnerResults.d.ts +31 -0
  218. package/dist/models/ConversationOwnerResults.js +51 -0
  219. package/dist/models/CtaLimitedActionPrompt.d.ts +51 -0
  220. package/dist/models/CtaLimitedActionPrompt.js +73 -0
  221. package/dist/models/CtaLimitedActionPromptText.d.ts +34 -0
  222. package/dist/models/CtaLimitedActionPromptText.js +54 -0
  223. package/dist/models/DeepsearchHeader.d.ts +31 -0
  224. package/dist/models/DeepsearchHeader.js +51 -0
  225. package/dist/models/DeepsearchStep.d.ts +35 -0
  226. package/dist/models/DeepsearchStep.js +55 -0
  227. package/dist/models/DeepsearchWebResult.d.ts +30 -0
  228. package/dist/models/DeepsearchWebResult.js +50 -0
  229. package/dist/models/Entities.d.ts +6 -9
  230. package/dist/models/Entities.js +9 -6
  231. package/dist/models/FeedbackAction.d.ts +89 -0
  232. package/dist/models/FeedbackAction.js +97 -0
  233. package/dist/models/FeedbackActionEntry.d.ts +35 -0
  234. package/dist/models/FeedbackActionEntry.js +55 -0
  235. package/dist/models/FeedbackClientEventInfo.d.ts +38 -0
  236. package/dist/models/FeedbackClientEventInfo.js +56 -0
  237. package/dist/models/FeedbackInfo.d.ts +7 -3
  238. package/dist/models/FeedbackInfo.js +8 -4
  239. package/dist/models/GrokShareAttachmentItem.d.ts +2 -3
  240. package/dist/models/GrokShareAttachmentItem.js +3 -2
  241. package/dist/models/GrokTranslatedPost.d.ts +1 -3
  242. package/dist/models/Hashtag.d.ts +34 -0
  243. package/dist/models/Hashtag.js +54 -0
  244. package/dist/models/JetfuelAttachment.d.ts +34 -0
  245. package/dist/models/JetfuelAttachment.js +54 -0
  246. package/dist/models/KeyValue.d.ts +34 -0
  247. package/dist/models/KeyValue.js +54 -0
  248. package/dist/models/LandingUrl.d.ts +42 -0
  249. package/dist/models/LandingUrl.js +62 -0
  250. package/dist/models/LimitedAction.d.ts +35 -0
  251. package/dist/models/LimitedAction.js +53 -0
  252. package/dist/models/LimitedActionResults.d.ts +31 -0
  253. package/dist/models/LimitedActionResults.js +51 -0
  254. package/dist/models/LimitedActionResultsData.d.ts +1 -21
  255. package/dist/models/LimitedActionResultsData.js +0 -20
  256. package/dist/models/ListBannerMediaInfo.d.ts +2 -2
  257. package/dist/models/ListBannerMediaInfo.js +3 -3
  258. package/dist/models/ListBannerMediaResults.d.ts +31 -0
  259. package/dist/models/ListBannerMediaResults.js +49 -0
  260. package/dist/models/MediaColorInfo.d.ts +31 -0
  261. package/dist/models/MediaColorInfo.js +51 -0
  262. package/dist/models/MediaColorInfoPalette.d.ts +35 -0
  263. package/dist/models/MediaColorInfoPalette.js +55 -0
  264. package/dist/models/MediaColorInfoPaletteRGB.d.ts +38 -0
  265. package/dist/models/MediaColorInfoPaletteRGB.js +58 -0
  266. package/dist/models/MediaSalientRect.d.ts +42 -0
  267. package/dist/models/{ListBannerMediaSalientRect.js → MediaSalientRect.js} +13 -13
  268. package/dist/models/ModuleFooter.d.ts +46 -0
  269. package/dist/models/ModuleFooter.js +68 -0
  270. package/dist/models/ModuleHeader.d.ts +45 -0
  271. package/dist/models/ModuleHeader.js +65 -0
  272. package/dist/models/ModuleMetadata.d.ts +31 -0
  273. package/dist/models/ModuleMetadata.js +51 -0
  274. package/dist/models/PromotedMetadata.d.ts +49 -0
  275. package/dist/models/PromotedMetadata.js +69 -0
  276. package/dist/models/ReaderModeConfig.d.ts +30 -0
  277. package/dist/models/ReaderModeConfig.js +50 -0
  278. package/dist/models/ScribeConfig.d.ts +30 -0
  279. package/dist/models/ScribeConfig.js +50 -0
  280. package/dist/models/SmarttagTag.d.ts +2 -3
  281. package/dist/models/SmarttagTag.js +3 -2
  282. package/dist/models/SmarttagTagInfo.d.ts +31 -0
  283. package/dist/models/SmarttagTagInfo.js +49 -0
  284. package/dist/models/Symbol.d.ts +39 -0
  285. package/dist/models/Symbol.js +57 -0
  286. package/dist/models/Timeline.d.ts +4 -6
  287. package/dist/models/Timeline.js +6 -4
  288. package/dist/models/TimelineMetadata.d.ts +36 -0
  289. package/dist/models/TimelineMetadata.js +54 -0
  290. package/dist/models/TimelineResponseObjects.d.ts +31 -0
  291. package/dist/models/TimelineResponseObjects.js +49 -0
  292. package/dist/models/TimelineShowAlert.d.ts +10 -12
  293. package/dist/models/TimelineShowAlert.js +31 -13
  294. package/dist/models/TimelineShowAlertColorConfig.d.ts +38 -0
  295. package/dist/models/TimelineShowAlertColorConfig.js +58 -0
  296. package/dist/models/TimelineShowAlertIconDisplayInfo.d.ts +34 -0
  297. package/dist/models/TimelineShowAlertIconDisplayInfo.js +54 -0
  298. package/dist/models/TimelineShowAlertRichText.d.ts +2 -4
  299. package/dist/models/TimelineShowAlertRichText.js +6 -2
  300. package/dist/models/TimelineTimelineItem.d.ts +2 -3
  301. package/dist/models/TimelineTimelineItem.js +3 -2
  302. package/dist/models/TimelineTimelineModule.d.ts +6 -9
  303. package/dist/models/TimelineTimelineModule.js +9 -6
  304. package/dist/models/TimelineTweet.d.ts +2 -3
  305. package/dist/models/TimelineTweet.js +3 -2
  306. package/dist/models/TimelinesDetails.d.ts +38 -0
  307. package/dist/models/TimelinesDetails.js +52 -0
  308. package/dist/models/Tweet.d.ts +6 -3
  309. package/dist/models/Tweet.js +3 -0
  310. package/dist/models/TweetCardLegacyBindingValueData.d.ts +2 -3
  311. package/dist/models/TweetCardLegacyBindingValueData.js +3 -2
  312. package/dist/models/TweetLegacy.d.ts +2 -3
  313. package/dist/models/TweetLegacy.js +3 -2
  314. package/dist/models/TweetWithVisibilityResults.d.ts +2 -3
  315. package/dist/models/TweetWithVisibilityResults.js +3 -2
  316. package/dist/models/TwitterList.d.ts +10 -3
  317. package/dist/models/TwitterList.js +7 -2
  318. package/dist/models/TypeName.d.ts +3 -0
  319. package/dist/models/TypeName.js +3 -0
  320. package/dist/models/User.d.ts +3 -6
  321. package/dist/models/User.js +3 -2
  322. package/dist/models/UserLabel.d.ts +68 -0
  323. package/dist/models/UserLabel.js +81 -0
  324. package/dist/models/UserLabelBadge.d.ts +30 -0
  325. package/dist/models/UserLabelBadge.js +50 -0
  326. package/dist/models/UserLabelMentionResults.d.ts +31 -0
  327. package/dist/models/UserLabelMentionResults.js +51 -0
  328. package/dist/models/UserLabelMentionUser.d.ts +40 -0
  329. package/dist/models/UserLabelMentionUser.js +60 -0
  330. package/dist/models/UserLabelMentionUserCore.d.ts +30 -0
  331. package/dist/models/UserLabelMentionUserCore.js +50 -0
  332. package/dist/models/UserLabelText.d.ts +35 -0
  333. package/dist/models/UserLabelText.js +55 -0
  334. package/dist/models/UserLabelTextEntity.d.ts +39 -0
  335. package/dist/models/UserLabelTextEntity.js +59 -0
  336. package/dist/models/UserLabelTextEntityRef.d.ts +46 -0
  337. package/dist/models/UserLabelTextEntityRef.js +68 -0
  338. package/dist/models/UserLabelUrl.d.ts +41 -0
  339. package/dist/models/UserLabelUrl.js +63 -0
  340. package/dist/models/UserLegacy.d.ts +2 -3
  341. package/dist/models/UserLegacy.js +3 -2
  342. package/dist/models/UserMention.d.ts +46 -0
  343. package/dist/models/UserMention.js +64 -0
  344. package/dist/models/UserProfessional.d.ts +5 -1
  345. package/dist/models/UserProfessional.js +3 -3
  346. package/dist/models/index.d.ts +58 -4
  347. package/dist/models/index.js +58 -4
  348. package/package.json +1 -1
  349. package/dist/esm/models/ArticleCoverMediaColorInfo.d.ts +0 -31
  350. package/dist/esm/models/ArticleCoverMediaColorInfo.js +0 -44
  351. package/dist/esm/models/ArticleCoverMediaColorInfoPalette.d.ts +0 -35
  352. package/dist/esm/models/ArticleCoverMediaColorInfoPalette.js +0 -48
  353. package/dist/esm/models/ArticleCoverMediaColorInfoPaletteRGB.d.ts +0 -38
  354. package/dist/esm/models/ListBannerMediaSalientRect.d.ts +0 -42
  355. package/dist/models/ArticleCoverMediaColorInfo.d.ts +0 -31
  356. package/dist/models/ArticleCoverMediaColorInfo.js +0 -51
  357. package/dist/models/ArticleCoverMediaColorInfoPalette.d.ts +0 -35
  358. package/dist/models/ArticleCoverMediaColorInfoPalette.js +0 -55
  359. package/dist/models/ArticleCoverMediaColorInfoPaletteRGB.d.ts +0 -38
  360. package/dist/models/ArticleCoverMediaColorInfoPaletteRGB.js +0 -58
  361. package/dist/models/ListBannerMediaSalientRect.d.ts +0 -42
@@ -0,0 +1,31 @@
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 { ConversationOwner } from './ConversationOwner';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ConversationOwnerResults
17
+ */
18
+ export interface ConversationOwnerResults {
19
+ /**
20
+ *
21
+ */
22
+ result: ConversationOwner;
23
+ }
24
+ /**
25
+ * Check if a given object implements the ConversationOwnerResults interface.
26
+ */
27
+ export declare function instanceOfConversationOwnerResults(value: object): value is ConversationOwnerResults;
28
+ export declare function ConversationOwnerResultsFromJSON(json: any): ConversationOwnerResults;
29
+ export declare function ConversationOwnerResultsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationOwnerResults;
30
+ export declare function ConversationOwnerResultsToJSON(json: any): ConversationOwnerResults;
31
+ export declare function ConversationOwnerResultsToJSONTyped(value?: ConversationOwnerResults | null, ignoreDiscriminator?: boolean): 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.instanceOfConversationOwnerResults = instanceOfConversationOwnerResults;
17
+ exports.ConversationOwnerResultsFromJSON = ConversationOwnerResultsFromJSON;
18
+ exports.ConversationOwnerResultsFromJSONTyped = ConversationOwnerResultsFromJSONTyped;
19
+ exports.ConversationOwnerResultsToJSON = ConversationOwnerResultsToJSON;
20
+ exports.ConversationOwnerResultsToJSONTyped = ConversationOwnerResultsToJSONTyped;
21
+ const ConversationOwner_1 = require("./ConversationOwner");
22
+ /**
23
+ * Check if a given object implements the ConversationOwnerResults interface.
24
+ */
25
+ function instanceOfConversationOwnerResults(value) {
26
+ if (!('result' in value) || value['result'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function ConversationOwnerResultsFromJSON(json) {
31
+ return ConversationOwnerResultsFromJSONTyped(json, false);
32
+ }
33
+ function ConversationOwnerResultsFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'result': (0, ConversationOwner_1.ConversationOwnerFromJSON)(json['result']),
39
+ };
40
+ }
41
+ function ConversationOwnerResultsToJSON(json) {
42
+ return ConversationOwnerResultsToJSONTyped(json, false);
43
+ }
44
+ function ConversationOwnerResultsToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'result': (0, ConversationOwner_1.ConversationOwnerToJSON)(value['result']),
50
+ };
51
+ }
@@ -0,0 +1,51 @@
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 { TypeName } from './TypeName';
13
+ import type { CtaLimitedActionPromptText } from './CtaLimitedActionPromptText';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface CtaLimitedActionPrompt
18
+ */
19
+ export interface CtaLimitedActionPrompt {
20
+ /**
21
+ *
22
+ */
23
+ typename: TypeName;
24
+ /**
25
+ *
26
+ */
27
+ ctaType: CtaLimitedActionPromptCtaTypeEnum;
28
+ /**
29
+ *
30
+ */
31
+ headline: CtaLimitedActionPromptText;
32
+ /**
33
+ *
34
+ */
35
+ subtext: CtaLimitedActionPromptText;
36
+ }
37
+ /**
38
+ * @export
39
+ */
40
+ export declare const CtaLimitedActionPromptCtaTypeEnum: {
41
+ readonly SeeConversation: "SeeConversation";
42
+ };
43
+ export type CtaLimitedActionPromptCtaTypeEnum = typeof CtaLimitedActionPromptCtaTypeEnum[keyof typeof CtaLimitedActionPromptCtaTypeEnum];
44
+ /**
45
+ * Check if a given object implements the CtaLimitedActionPrompt interface.
46
+ */
47
+ export declare function instanceOfCtaLimitedActionPrompt(value: object): value is CtaLimitedActionPrompt;
48
+ export declare function CtaLimitedActionPromptFromJSON(json: any): CtaLimitedActionPrompt;
49
+ export declare function CtaLimitedActionPromptFromJSONTyped(json: any, ignoreDiscriminator: boolean): CtaLimitedActionPrompt;
50
+ export declare function CtaLimitedActionPromptToJSON(json: any): CtaLimitedActionPrompt;
51
+ export declare function CtaLimitedActionPromptToJSONTyped(value?: CtaLimitedActionPrompt | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,73 @@
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.CtaLimitedActionPromptCtaTypeEnum = void 0;
17
+ exports.instanceOfCtaLimitedActionPrompt = instanceOfCtaLimitedActionPrompt;
18
+ exports.CtaLimitedActionPromptFromJSON = CtaLimitedActionPromptFromJSON;
19
+ exports.CtaLimitedActionPromptFromJSONTyped = CtaLimitedActionPromptFromJSONTyped;
20
+ exports.CtaLimitedActionPromptToJSON = CtaLimitedActionPromptToJSON;
21
+ exports.CtaLimitedActionPromptToJSONTyped = CtaLimitedActionPromptToJSONTyped;
22
+ const TypeName_1 = require("./TypeName");
23
+ const CtaLimitedActionPromptText_1 = require("./CtaLimitedActionPromptText");
24
+ /**
25
+ * @export
26
+ */
27
+ exports.CtaLimitedActionPromptCtaTypeEnum = {
28
+ SeeConversation: 'SeeConversation',
29
+ };
30
+ /**
31
+ * Check if a given object implements the CtaLimitedActionPrompt interface.
32
+ */
33
+ function instanceOfCtaLimitedActionPrompt(value) {
34
+ if ((!('typename' in value) && !('__typename' in value)) || (value['typename'] === undefined && value['__typename'] === undefined))
35
+ return false;
36
+ if ((!('ctaType' in value) && !('cta_type' in value)) || (value['ctaType'] === undefined && value['cta_type'] === undefined))
37
+ return false;
38
+ if (value['ctaType'] !== 'SeeConversation' && value['cta_type'] !== 'SeeConversation')
39
+ return false;
40
+ if (!('headline' in value) || value['headline'] === undefined)
41
+ return false;
42
+ if (!('subtext' in value) || value['subtext'] === undefined)
43
+ return false;
44
+ return true;
45
+ }
46
+ function CtaLimitedActionPromptFromJSON(json) {
47
+ return CtaLimitedActionPromptFromJSONTyped(json, false);
48
+ }
49
+ function CtaLimitedActionPromptFromJSONTyped(json, ignoreDiscriminator) {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+ 'typename': (0, TypeName_1.TypeNameFromJSON)(json['__typename']),
55
+ 'ctaType': json['cta_type'],
56
+ 'headline': (0, CtaLimitedActionPromptText_1.CtaLimitedActionPromptTextFromJSON)(json['headline']),
57
+ 'subtext': (0, CtaLimitedActionPromptText_1.CtaLimitedActionPromptTextFromJSON)(json['subtext']),
58
+ };
59
+ }
60
+ function CtaLimitedActionPromptToJSON(json) {
61
+ return CtaLimitedActionPromptToJSONTyped(json, false);
62
+ }
63
+ function CtaLimitedActionPromptToJSONTyped(value, ignoreDiscriminator = false) {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+ return {
68
+ '__typename': (0, TypeName_1.TypeNameToJSON)(value['typename']),
69
+ 'cta_type': value['ctaType'],
70
+ 'headline': (0, CtaLimitedActionPromptText_1.CtaLimitedActionPromptTextToJSON)(value['headline']),
71
+ 'subtext': (0, CtaLimitedActionPromptText_1.CtaLimitedActionPromptTextToJSON)(value['subtext']),
72
+ };
73
+ }
@@ -0,0 +1,34 @@
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 CtaLimitedActionPromptText
16
+ */
17
+ export interface CtaLimitedActionPromptText {
18
+ /**
19
+ *
20
+ */
21
+ entities: Array<object>;
22
+ /**
23
+ *
24
+ */
25
+ text: string;
26
+ }
27
+ /**
28
+ * Check if a given object implements the CtaLimitedActionPromptText interface.
29
+ */
30
+ export declare function instanceOfCtaLimitedActionPromptText(value: object): value is CtaLimitedActionPromptText;
31
+ export declare function CtaLimitedActionPromptTextFromJSON(json: any): CtaLimitedActionPromptText;
32
+ export declare function CtaLimitedActionPromptTextFromJSONTyped(json: any, ignoreDiscriminator: boolean): CtaLimitedActionPromptText;
33
+ export declare function CtaLimitedActionPromptTextToJSON(json: any): CtaLimitedActionPromptText;
34
+ export declare function CtaLimitedActionPromptTextToJSONTyped(value?: CtaLimitedActionPromptText | null, ignoreDiscriminator?: boolean): 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.instanceOfCtaLimitedActionPromptText = instanceOfCtaLimitedActionPromptText;
17
+ exports.CtaLimitedActionPromptTextFromJSON = CtaLimitedActionPromptTextFromJSON;
18
+ exports.CtaLimitedActionPromptTextFromJSONTyped = CtaLimitedActionPromptTextFromJSONTyped;
19
+ exports.CtaLimitedActionPromptTextToJSON = CtaLimitedActionPromptTextToJSON;
20
+ exports.CtaLimitedActionPromptTextToJSONTyped = CtaLimitedActionPromptTextToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the CtaLimitedActionPromptText interface.
23
+ */
24
+ function instanceOfCtaLimitedActionPromptText(value) {
25
+ if (!('entities' in value) || value['entities'] === undefined)
26
+ return false;
27
+ if (!('text' in value) || value['text'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function CtaLimitedActionPromptTextFromJSON(json) {
32
+ return CtaLimitedActionPromptTextFromJSONTyped(json, false);
33
+ }
34
+ function CtaLimitedActionPromptTextFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'entities': json['entities'],
40
+ 'text': json['text'],
41
+ };
42
+ }
43
+ function CtaLimitedActionPromptTextToJSON(json) {
44
+ return CtaLimitedActionPromptTextToJSONTyped(json, false);
45
+ }
46
+ function CtaLimitedActionPromptTextToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'entities': value['entities'],
52
+ 'text': value['text'],
53
+ };
54
+ }
@@ -0,0 +1,31 @@
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 { DeepsearchStep } from './DeepsearchStep';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface DeepsearchHeader
17
+ */
18
+ export interface DeepsearchHeader {
19
+ /**
20
+ *
21
+ */
22
+ steps: Array<DeepsearchStep>;
23
+ }
24
+ /**
25
+ * Check if a given object implements the DeepsearchHeader interface.
26
+ */
27
+ export declare function instanceOfDeepsearchHeader(value: object): value is DeepsearchHeader;
28
+ export declare function DeepsearchHeaderFromJSON(json: any): DeepsearchHeader;
29
+ export declare function DeepsearchHeaderFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeepsearchHeader;
30
+ export declare function DeepsearchHeaderToJSON(json: any): DeepsearchHeader;
31
+ export declare function DeepsearchHeaderToJSONTyped(value?: DeepsearchHeader | null, ignoreDiscriminator?: boolean): 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.instanceOfDeepsearchHeader = instanceOfDeepsearchHeader;
17
+ exports.DeepsearchHeaderFromJSON = DeepsearchHeaderFromJSON;
18
+ exports.DeepsearchHeaderFromJSONTyped = DeepsearchHeaderFromJSONTyped;
19
+ exports.DeepsearchHeaderToJSON = DeepsearchHeaderToJSON;
20
+ exports.DeepsearchHeaderToJSONTyped = DeepsearchHeaderToJSONTyped;
21
+ const DeepsearchStep_1 = require("./DeepsearchStep");
22
+ /**
23
+ * Check if a given object implements the DeepsearchHeader interface.
24
+ */
25
+ function instanceOfDeepsearchHeader(value) {
26
+ if (!('steps' in value) || value['steps'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function DeepsearchHeaderFromJSON(json) {
31
+ return DeepsearchHeaderFromJSONTyped(json, false);
32
+ }
33
+ function DeepsearchHeaderFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'steps': (json['steps'].map(DeepsearchStep_1.DeepsearchStepFromJSON)),
39
+ };
40
+ }
41
+ function DeepsearchHeaderToJSON(json) {
42
+ return DeepsearchHeaderToJSONTyped(json, false);
43
+ }
44
+ function DeepsearchHeaderToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'steps': (value['steps'].map(DeepsearchStep_1.DeepsearchStepToJSON)),
50
+ };
51
+ }
@@ -0,0 +1,35 @@
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 { DeepsearchWebResult } from './DeepsearchWebResult';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface DeepsearchStep
17
+ */
18
+ export interface DeepsearchStep {
19
+ /**
20
+ *
21
+ */
22
+ webResults: Array<DeepsearchWebResult>;
23
+ /**
24
+ *
25
+ */
26
+ xPostIds: Array<string>;
27
+ }
28
+ /**
29
+ * Check if a given object implements the DeepsearchStep interface.
30
+ */
31
+ export declare function instanceOfDeepsearchStep(value: object): value is DeepsearchStep;
32
+ export declare function DeepsearchStepFromJSON(json: any): DeepsearchStep;
33
+ export declare function DeepsearchStepFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeepsearchStep;
34
+ export declare function DeepsearchStepToJSON(json: any): DeepsearchStep;
35
+ export declare function DeepsearchStepToJSONTyped(value?: DeepsearchStep | null, ignoreDiscriminator?: boolean): 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.instanceOfDeepsearchStep = instanceOfDeepsearchStep;
17
+ exports.DeepsearchStepFromJSON = DeepsearchStepFromJSON;
18
+ exports.DeepsearchStepFromJSONTyped = DeepsearchStepFromJSONTyped;
19
+ exports.DeepsearchStepToJSON = DeepsearchStepToJSON;
20
+ exports.DeepsearchStepToJSONTyped = DeepsearchStepToJSONTyped;
21
+ const DeepsearchWebResult_1 = require("./DeepsearchWebResult");
22
+ /**
23
+ * Check if a given object implements the DeepsearchStep interface.
24
+ */
25
+ function instanceOfDeepsearchStep(value) {
26
+ if ((!('webResults' in value) && !('web_results' in value)) || (value['webResults'] === undefined && value['web_results'] === undefined))
27
+ return false;
28
+ if ((!('xPostIds' in value) && !('x_post_ids' in value)) || (value['xPostIds'] === undefined && value['x_post_ids'] === undefined))
29
+ return false;
30
+ return true;
31
+ }
32
+ function DeepsearchStepFromJSON(json) {
33
+ return DeepsearchStepFromJSONTyped(json, false);
34
+ }
35
+ function DeepsearchStepFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'webResults': (json['web_results'].map(DeepsearchWebResult_1.DeepsearchWebResultFromJSON)),
41
+ 'xPostIds': json['x_post_ids'],
42
+ };
43
+ }
44
+ function DeepsearchStepToJSON(json) {
45
+ return DeepsearchStepToJSONTyped(json, false);
46
+ }
47
+ function DeepsearchStepToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'web_results': (value['webResults'].map(DeepsearchWebResult_1.DeepsearchWebResultToJSON)),
53
+ 'x_post_ids': value['xPostIds'],
54
+ };
55
+ }
@@ -0,0 +1,30 @@
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 DeepsearchWebResult
16
+ */
17
+ export interface DeepsearchWebResult {
18
+ /**
19
+ *
20
+ */
21
+ url: string;
22
+ }
23
+ /**
24
+ * Check if a given object implements the DeepsearchWebResult interface.
25
+ */
26
+ export declare function instanceOfDeepsearchWebResult(value: object): value is DeepsearchWebResult;
27
+ export declare function DeepsearchWebResultFromJSON(json: any): DeepsearchWebResult;
28
+ export declare function DeepsearchWebResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeepsearchWebResult;
29
+ export declare function DeepsearchWebResultToJSON(json: any): DeepsearchWebResult;
30
+ export declare function DeepsearchWebResultToJSONTyped(value?: DeepsearchWebResult | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
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.instanceOfDeepsearchWebResult = instanceOfDeepsearchWebResult;
17
+ exports.DeepsearchWebResultFromJSON = DeepsearchWebResultFromJSON;
18
+ exports.DeepsearchWebResultFromJSONTyped = DeepsearchWebResultFromJSONTyped;
19
+ exports.DeepsearchWebResultToJSON = DeepsearchWebResultToJSON;
20
+ exports.DeepsearchWebResultToJSONTyped = DeepsearchWebResultToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the DeepsearchWebResult interface.
23
+ */
24
+ function instanceOfDeepsearchWebResult(value) {
25
+ if (!('url' in value) || value['url'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function DeepsearchWebResultFromJSON(json) {
30
+ return DeepsearchWebResultFromJSONTyped(json, false);
31
+ }
32
+ function DeepsearchWebResultFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'url': json['url'],
38
+ };
39
+ }
40
+ function DeepsearchWebResultToJSON(json) {
41
+ return DeepsearchWebResultToJSONTyped(json, false);
42
+ }
43
+ function DeepsearchWebResultToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'url': value['url'],
49
+ };
50
+ }
@@ -9,10 +9,13 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { Hashtag } from './Hashtag';
13
+ import type { Symbol } from './Symbol';
12
14
  import type { Media } from './Media';
13
15
  import type { Smarttag } from './Smarttag';
14
16
  import type { Timestamp } from './Timestamp';
15
17
  import type { Url } from './Url';
18
+ import type { UserMention } from './UserMention';
16
19
  /**
17
20
  *
18
21
  * @export
@@ -22,9 +25,7 @@ export interface Entities {
22
25
  /**
23
26
  *
24
27
  */
25
- hashtags?: Array<{
26
- [key: string]: any;
27
- }>;
28
+ hashtags?: Array<Hashtag>;
28
29
  /**
29
30
  *
30
31
  */
@@ -36,9 +37,7 @@ export interface Entities {
36
37
  /**
37
38
  *
38
39
  */
39
- symbols?: Array<{
40
- [key: string]: any;
41
- }>;
40
+ symbols?: Array<Symbol>;
42
41
  /**
43
42
  *
44
43
  */
@@ -50,9 +49,7 @@ export interface Entities {
50
49
  /**
51
50
  *
52
51
  */
53
- userMentions?: Array<{
54
- [key: string]: any;
55
- }>;
52
+ userMentions?: Array<UserMention>;
56
53
  }
57
54
  /**
58
55
  * Check if a given object implements the Entities interface.
@@ -18,10 +18,13 @@ exports.EntitiesFromJSON = EntitiesFromJSON;
18
18
  exports.EntitiesFromJSONTyped = EntitiesFromJSONTyped;
19
19
  exports.EntitiesToJSON = EntitiesToJSON;
20
20
  exports.EntitiesToJSONTyped = EntitiesToJSONTyped;
21
+ const Hashtag_1 = require("./Hashtag");
22
+ const Symbol_1 = require("./Symbol");
21
23
  const Media_1 = require("./Media");
22
24
  const Smarttag_1 = require("./Smarttag");
23
25
  const Timestamp_1 = require("./Timestamp");
24
26
  const Url_1 = require("./Url");
27
+ const UserMention_1 = require("./UserMention");
25
28
  /**
26
29
  * Check if a given object implements the Entities interface.
27
30
  */
@@ -36,13 +39,13 @@ function EntitiesFromJSONTyped(json, ignoreDiscriminator) {
36
39
  return json;
37
40
  }
38
41
  return {
39
- 'hashtags': json['hashtags'] == null ? undefined : json['hashtags'],
42
+ 'hashtags': json['hashtags'] == null ? undefined : (json['hashtags'].map(Hashtag_1.HashtagFromJSON)),
40
43
  'media': json['media'] == null ? undefined : (json['media'].map(Media_1.MediaFromJSON)),
41
44
  'smarttags': json['smarttags'] == null ? undefined : (json['smarttags'].map(Smarttag_1.SmarttagFromJSON)),
42
- 'symbols': json['symbols'] == null ? undefined : json['symbols'],
45
+ 'symbols': json['symbols'] == null ? undefined : (json['symbols'].map(Symbol_1.SymbolFromJSON)),
43
46
  'timestamps': json['timestamps'] == null ? undefined : (json['timestamps'].map(Timestamp_1.TimestampFromJSON)),
44
47
  'urls': json['urls'] == null ? undefined : (json['urls'].map(Url_1.UrlFromJSON)),
45
- 'userMentions': json['user_mentions'] == null ? undefined : json['user_mentions'],
48
+ 'userMentions': json['user_mentions'] == null ? undefined : (json['user_mentions'].map(UserMention_1.UserMentionFromJSON)),
46
49
  };
47
50
  }
48
51
  function EntitiesToJSON(json) {
@@ -53,12 +56,12 @@ function EntitiesToJSONTyped(value, ignoreDiscriminator = false) {
53
56
  return value;
54
57
  }
55
58
  return {
56
- 'hashtags': value['hashtags'],
59
+ 'hashtags': value['hashtags'] == null ? undefined : (value['hashtags'].map(Hashtag_1.HashtagToJSON)),
57
60
  'media': value['media'] == null ? undefined : (value['media'].map(Media_1.MediaToJSON)),
58
61
  'smarttags': value['smarttags'] == null ? undefined : (value['smarttags'].map(Smarttag_1.SmarttagToJSON)),
59
- 'symbols': value['symbols'],
62
+ 'symbols': value['symbols'] == null ? undefined : (value['symbols'].map(Symbol_1.SymbolToJSON)),
60
63
  'timestamps': value['timestamps'] == null ? undefined : (value['timestamps'].map(Timestamp_1.TimestampToJSON)),
61
64
  'urls': value['urls'] == null ? undefined : (value['urls'].map(Url_1.UrlToJSON)),
62
- 'user_mentions': value['userMentions'],
65
+ 'user_mentions': value['userMentions'] == null ? undefined : (value['userMentions'].map(UserMention_1.UserMentionToJSON)),
63
66
  };
64
67
  }