eventregistry 9.1.1 → 11.0.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 (450) hide show
  1. package/AGENT-RECIPES.md +86 -0
  2. package/CHANGELOG.md +254 -0
  3. package/LICENSE +21 -21
  4. package/MIGRATION.md +195 -0
  5. package/README.md +340 -234
  6. package/dist/cjs/abort.d.ts +14 -0
  7. package/dist/cjs/abort.js +71 -0
  8. package/dist/cjs/abort.js.map +1 -0
  9. package/dist/{analytics.d.ts → cjs/analytics.d.ts} +2 -1
  10. package/dist/cjs/analytics.js +174 -0
  11. package/dist/cjs/analytics.js.map +1 -0
  12. package/dist/{base.d.ts → cjs/base.d.ts} +9 -9
  13. package/dist/cjs/base.js +195 -0
  14. package/dist/cjs/base.js.map +1 -0
  15. package/dist/cjs/counts.js +120 -0
  16. package/dist/cjs/counts.js.map +1 -0
  17. package/dist/cjs/dailyShares.js +46 -0
  18. package/dist/cjs/dailyShares.js.map +1 -0
  19. package/dist/{data.d.ts → cjs/data.d.ts} +32 -5
  20. package/dist/cjs/data.js.map +1 -0
  21. package/dist/cjs/errors.d.ts +66 -0
  22. package/dist/cjs/errors.js +75 -0
  23. package/dist/cjs/errors.js.map +1 -0
  24. package/dist/{eventForText.d.ts → cjs/eventForText.d.ts} +1 -1
  25. package/dist/cjs/eventForText.js +61 -0
  26. package/dist/cjs/eventForText.js.map +1 -0
  27. package/dist/{eventRegistry.d.ts → cjs/eventRegistry.d.ts} +167 -36
  28. package/dist/cjs/eventRegistry.js +939 -0
  29. package/dist/cjs/eventRegistry.js.map +1 -0
  30. package/dist/cjs/fluent/analytics.d.ts +24 -0
  31. package/dist/cjs/fluent/analytics.js +47 -0
  32. package/dist/cjs/fluent/analytics.js.map +1 -0
  33. package/dist/cjs/fluent/articles.d.ts +23 -0
  34. package/dist/cjs/fluent/articles.js +34 -0
  35. package/dist/cjs/fluent/articles.js.map +1 -0
  36. package/dist/cjs/fluent/counts.d.ts +8 -0
  37. package/dist/cjs/fluent/counts.js +17 -0
  38. package/dist/cjs/fluent/counts.js.map +1 -0
  39. package/dist/cjs/fluent/eventForText.d.ts +4 -0
  40. package/dist/cjs/fluent/eventForText.js +8 -0
  41. package/dist/cjs/fluent/eventForText.js.map +1 -0
  42. package/dist/cjs/fluent/events.d.ts +23 -0
  43. package/dist/cjs/fluent/events.js +34 -0
  44. package/dist/cjs/fluent/events.js.map +1 -0
  45. package/dist/cjs/fluent/info.d.ts +10 -0
  46. package/dist/cjs/fluent/info.js +23 -0
  47. package/dist/cjs/fluent/info.js.map +1 -0
  48. package/dist/cjs/fluent/mentions.d.ts +18 -0
  49. package/dist/cjs/fluent/mentions.js +31 -0
  50. package/dist/cjs/fluent/mentions.js.map +1 -0
  51. package/dist/cjs/fluent/recent.d.ts +13 -0
  52. package/dist/cjs/fluent/recent.js +21 -0
  53. package/dist/cjs/fluent/recent.js.map +1 -0
  54. package/dist/cjs/fluent/shares.d.ts +8 -0
  55. package/dist/cjs/fluent/shares.js +17 -0
  56. package/dist/cjs/fluent/shares.js.map +1 -0
  57. package/dist/cjs/fluent/stories.d.ts +8 -0
  58. package/dist/cjs/fluent/stories.js +14 -0
  59. package/dist/cjs/fluent/stories.js.map +1 -0
  60. package/dist/cjs/fluent/topicPages.d.ts +10 -0
  61. package/dist/cjs/fluent/topicPages.js +20 -0
  62. package/dist/cjs/fluent/topicPages.js.map +1 -0
  63. package/dist/cjs/fluent/trends.d.ts +11 -0
  64. package/dist/cjs/fluent/trends.js +23 -0
  65. package/dist/cjs/fluent/trends.js.map +1 -0
  66. package/dist/cjs/guards.d.ts +12 -0
  67. package/dist/cjs/guards.js +75 -0
  68. package/dist/cjs/guards.js.map +1 -0
  69. package/dist/cjs/helpers/analytics.d.ts +68 -0
  70. package/dist/cjs/helpers/analytics.js +100 -0
  71. package/dist/cjs/helpers/analytics.js.map +1 -0
  72. package/dist/cjs/helpers/articles.d.ts +24 -0
  73. package/dist/cjs/helpers/articles.js +31 -0
  74. package/dist/cjs/helpers/articles.js.map +1 -0
  75. package/dist/cjs/helpers/counts.d.ts +4 -0
  76. package/dist/cjs/helpers/counts.js +12 -0
  77. package/dist/cjs/helpers/counts.js.map +1 -0
  78. package/dist/cjs/helpers/eventForText.d.ts +6 -0
  79. package/dist/cjs/helpers/eventForText.js +13 -0
  80. package/dist/cjs/helpers/eventForText.js.map +1 -0
  81. package/dist/cjs/helpers/events.d.ts +18 -0
  82. package/dist/cjs/helpers/events.js +31 -0
  83. package/dist/cjs/helpers/events.js.map +1 -0
  84. package/dist/cjs/helpers/info.d.ts +6 -0
  85. package/dist/cjs/helpers/info.js +20 -0
  86. package/dist/cjs/helpers/info.js.map +1 -0
  87. package/dist/cjs/helpers/mentions.d.ts +10 -0
  88. package/dist/cjs/helpers/mentions.js +21 -0
  89. package/dist/cjs/helpers/mentions.js.map +1 -0
  90. package/dist/cjs/helpers/recent.d.ts +10 -0
  91. package/dist/cjs/helpers/recent.js +18 -0
  92. package/dist/cjs/helpers/recent.js.map +1 -0
  93. package/dist/cjs/helpers/shares.d.ts +4 -0
  94. package/dist/cjs/helpers/shares.js +12 -0
  95. package/dist/cjs/helpers/shares.js.map +1 -0
  96. package/dist/cjs/helpers/stories.d.ts +7 -0
  97. package/dist/cjs/helpers/stories.js +13 -0
  98. package/dist/cjs/helpers/stories.js.map +1 -0
  99. package/dist/cjs/helpers/topicPages.d.ts +16 -0
  100. package/dist/cjs/helpers/topicPages.js +29 -0
  101. package/dist/cjs/helpers/topicPages.js.map +1 -0
  102. package/dist/cjs/helpers/trends.d.ts +7 -0
  103. package/dist/cjs/helpers/trends.js +20 -0
  104. package/dist/cjs/helpers/trends.js.map +1 -0
  105. package/dist/cjs/helpers/uri.d.ts +42 -0
  106. package/dist/cjs/helpers/uri.js +78 -0
  107. package/dist/cjs/helpers/uri.js.map +1 -0
  108. package/dist/cjs/http.d.ts +23 -0
  109. package/dist/cjs/http.js +141 -0
  110. package/dist/cjs/http.js.map +1 -0
  111. package/dist/cjs/index.d.ts +54 -0
  112. package/dist/{index.js → cjs/index.js} +104 -3
  113. package/dist/cjs/index.js.map +1 -0
  114. package/dist/cjs/info.js +115 -0
  115. package/dist/cjs/info.js.map +1 -0
  116. package/dist/{logger.d.ts → cjs/logger.d.ts} +15 -11
  117. package/dist/cjs/logger.js +183 -0
  118. package/dist/cjs/logger.js.map +1 -0
  119. package/dist/cjs/mutex.d.ts +7 -0
  120. package/dist/cjs/mutex.js +44 -0
  121. package/dist/cjs/mutex.js.map +1 -0
  122. package/dist/cjs/package.json +3 -0
  123. package/dist/{query.d.ts → cjs/query.d.ts} +5 -8
  124. package/dist/cjs/query.js +248 -0
  125. package/dist/cjs/query.js.map +1 -0
  126. package/dist/{queryArticle.d.ts → cjs/queryArticle.d.ts} +5 -5
  127. package/dist/cjs/queryArticle.js +121 -0
  128. package/dist/cjs/queryArticle.js.map +1 -0
  129. package/dist/{queryArticles.d.ts → cjs/queryArticles.d.ts} +36 -69
  130. package/dist/cjs/queryArticles.js +457 -0
  131. package/dist/cjs/queryArticles.js.map +1 -0
  132. package/dist/{queryEvent.d.ts → cjs/queryEvent.d.ts} +7 -6
  133. package/dist/cjs/queryEvent.js +423 -0
  134. package/dist/cjs/queryEvent.js.map +1 -0
  135. package/dist/{queryEvents.d.ts → cjs/queryEvents.d.ts} +30 -39
  136. package/dist/cjs/queryEvents.js +568 -0
  137. package/dist/cjs/queryEvents.js.map +1 -0
  138. package/dist/cjs/queryIterator.d.ts +36 -0
  139. package/dist/cjs/queryIterator.js +85 -0
  140. package/dist/cjs/queryIterator.js.map +1 -0
  141. package/dist/{queryMentions.d.ts → cjs/queryMentions.d.ts} +19 -18
  142. package/dist/cjs/queryMentions.js +446 -0
  143. package/dist/cjs/queryMentions.js.map +1 -0
  144. package/dist/{queryStory.d.ts → cjs/queryStory.d.ts} +24 -21
  145. package/dist/cjs/queryStory.js +120 -0
  146. package/dist/cjs/queryStory.js.map +1 -0
  147. package/dist/cjs/recent.d.ts +35 -0
  148. package/dist/cjs/recent.js +81 -0
  149. package/dist/cjs/recent.js.map +1 -0
  150. package/dist/cjs/recentFeed.d.ts +35 -0
  151. package/dist/cjs/recentFeed.js +76 -0
  152. package/dist/cjs/recentFeed.js.map +1 -0
  153. package/dist/{returnInfo.d.ts → cjs/returnInfo.d.ts} +21 -23
  154. package/dist/cjs/returnInfo.js +292 -0
  155. package/dist/cjs/returnInfo.js.map +1 -0
  156. package/dist/{topicPage.d.ts → cjs/topicPage.d.ts} +3 -3
  157. package/dist/cjs/topicPage.js +458 -0
  158. package/dist/cjs/topicPage.js.map +1 -0
  159. package/dist/cjs/topicPages.d.ts +13 -0
  160. package/dist/cjs/topicPages.js +22 -0
  161. package/dist/cjs/topicPages.js.map +1 -0
  162. package/dist/{trends.d.ts → cjs/trends.d.ts} +13 -13
  163. package/dist/cjs/trends.js +64 -0
  164. package/dist/cjs/trends.js.map +1 -0
  165. package/dist/{types.d.ts → cjs/types.d.ts} +195 -37
  166. package/dist/cjs/types.js.map +1 -0
  167. package/dist/cjs/usage.d.ts +39 -0
  168. package/dist/cjs/usage.js +62 -0
  169. package/dist/cjs/usage.js.map +1 -0
  170. package/dist/cjs/version.d.ts +1 -0
  171. package/dist/cjs/version.js +5 -0
  172. package/dist/cjs/version.js.map +1 -0
  173. package/dist/esm/abort.d.ts +14 -0
  174. package/dist/esm/abort.js +65 -0
  175. package/dist/esm/abort.js.map +1 -0
  176. package/dist/esm/analytics.d.ts +83 -0
  177. package/dist/esm/analytics.js +170 -0
  178. package/dist/esm/analytics.js.map +1 -0
  179. package/dist/esm/base.d.ts +82 -0
  180. package/dist/esm/base.js +188 -0
  181. package/dist/esm/base.js.map +1 -0
  182. package/dist/esm/counts.d.ts +81 -0
  183. package/dist/esm/counts.js +114 -0
  184. package/dist/esm/counts.js.map +1 -0
  185. package/dist/esm/dailyShares.d.ts +10 -0
  186. package/dist/esm/dailyShares.js +41 -0
  187. package/dist/esm/dailyShares.js.map +1 -0
  188. package/dist/esm/data.d.ts +296 -0
  189. package/dist/esm/data.js +3 -0
  190. package/dist/esm/data.js.map +1 -0
  191. package/dist/esm/errors.d.ts +66 -0
  192. package/dist/esm/errors.js +67 -0
  193. package/dist/esm/errors.js.map +1 -0
  194. package/dist/esm/eventForText.d.ts +48 -0
  195. package/dist/esm/eventForText.js +57 -0
  196. package/dist/esm/eventForText.js.map +1 -0
  197. package/dist/esm/eventRegistry.d.ts +375 -0
  198. package/dist/esm/eventRegistry.js +901 -0
  199. package/dist/esm/eventRegistry.js.map +1 -0
  200. package/dist/esm/fluent/analytics.d.ts +24 -0
  201. package/dist/esm/fluent/analytics.js +43 -0
  202. package/dist/esm/fluent/analytics.js.map +1 -0
  203. package/dist/esm/fluent/articles.d.ts +23 -0
  204. package/dist/esm/fluent/articles.js +30 -0
  205. package/dist/esm/fluent/articles.js.map +1 -0
  206. package/dist/esm/fluent/counts.d.ts +8 -0
  207. package/dist/esm/fluent/counts.js +13 -0
  208. package/dist/esm/fluent/counts.js.map +1 -0
  209. package/dist/esm/fluent/eventForText.d.ts +4 -0
  210. package/dist/esm/fluent/eventForText.js +5 -0
  211. package/dist/esm/fluent/eventForText.js.map +1 -0
  212. package/dist/esm/fluent/events.d.ts +23 -0
  213. package/dist/esm/fluent/events.js +30 -0
  214. package/dist/esm/fluent/events.js.map +1 -0
  215. package/dist/esm/fluent/info.d.ts +10 -0
  216. package/dist/esm/fluent/info.js +19 -0
  217. package/dist/esm/fluent/info.js.map +1 -0
  218. package/dist/esm/fluent/mentions.d.ts +18 -0
  219. package/dist/esm/fluent/mentions.js +27 -0
  220. package/dist/esm/fluent/mentions.js.map +1 -0
  221. package/dist/esm/fluent/recent.d.ts +13 -0
  222. package/dist/esm/fluent/recent.js +17 -0
  223. package/dist/esm/fluent/recent.js.map +1 -0
  224. package/dist/esm/fluent/shares.d.ts +8 -0
  225. package/dist/esm/fluent/shares.js +13 -0
  226. package/dist/esm/fluent/shares.js.map +1 -0
  227. package/dist/esm/fluent/stories.d.ts +8 -0
  228. package/dist/esm/fluent/stories.js +10 -0
  229. package/dist/esm/fluent/stories.js.map +1 -0
  230. package/dist/esm/fluent/topicPages.d.ts +10 -0
  231. package/dist/esm/fluent/topicPages.js +16 -0
  232. package/dist/esm/fluent/topicPages.js.map +1 -0
  233. package/dist/esm/fluent/trends.d.ts +11 -0
  234. package/dist/esm/fluent/trends.js +19 -0
  235. package/dist/esm/fluent/trends.js.map +1 -0
  236. package/dist/esm/guards.d.ts +12 -0
  237. package/dist/esm/guards.js +70 -0
  238. package/dist/esm/guards.js.map +1 -0
  239. package/dist/esm/helpers/analytics.d.ts +68 -0
  240. package/dist/esm/helpers/analytics.js +86 -0
  241. package/dist/esm/helpers/analytics.js.map +1 -0
  242. package/dist/esm/helpers/articles.d.ts +24 -0
  243. package/dist/esm/helpers/articles.js +26 -0
  244. package/dist/esm/helpers/articles.js.map +1 -0
  245. package/dist/esm/helpers/counts.d.ts +4 -0
  246. package/dist/esm/helpers/counts.js +8 -0
  247. package/dist/esm/helpers/counts.js.map +1 -0
  248. package/dist/esm/helpers/eventForText.d.ts +6 -0
  249. package/dist/esm/helpers/eventForText.js +10 -0
  250. package/dist/esm/helpers/eventForText.js.map +1 -0
  251. package/dist/esm/helpers/events.d.ts +18 -0
  252. package/dist/esm/helpers/events.js +26 -0
  253. package/dist/esm/helpers/events.js.map +1 -0
  254. package/dist/esm/helpers/info.d.ts +6 -0
  255. package/dist/esm/helpers/info.js +14 -0
  256. package/dist/esm/helpers/info.js.map +1 -0
  257. package/dist/esm/helpers/mentions.d.ts +10 -0
  258. package/dist/esm/helpers/mentions.js +17 -0
  259. package/dist/esm/helpers/mentions.js.map +1 -0
  260. package/dist/esm/helpers/recent.d.ts +10 -0
  261. package/dist/esm/helpers/recent.js +14 -0
  262. package/dist/esm/helpers/recent.js.map +1 -0
  263. package/dist/esm/helpers/shares.d.ts +4 -0
  264. package/dist/esm/helpers/shares.js +8 -0
  265. package/dist/esm/helpers/shares.js.map +1 -0
  266. package/dist/esm/helpers/stories.d.ts +7 -0
  267. package/dist/esm/helpers/stories.js +10 -0
  268. package/dist/esm/helpers/stories.js.map +1 -0
  269. package/dist/esm/helpers/topicPages.d.ts +16 -0
  270. package/dist/esm/helpers/topicPages.js +24 -0
  271. package/dist/esm/helpers/topicPages.js.map +1 -0
  272. package/dist/esm/helpers/trends.d.ts +7 -0
  273. package/dist/esm/helpers/trends.js +14 -0
  274. package/dist/esm/helpers/trends.js.map +1 -0
  275. package/dist/esm/helpers/uri.d.ts +42 -0
  276. package/dist/esm/helpers/uri.js +68 -0
  277. package/dist/esm/helpers/uri.js.map +1 -0
  278. package/dist/esm/http.d.ts +23 -0
  279. package/dist/esm/http.js +138 -0
  280. package/dist/esm/http.js.map +1 -0
  281. package/dist/esm/index.d.ts +54 -0
  282. package/dist/esm/index.js +51 -0
  283. package/dist/esm/index.js.map +1 -0
  284. package/dist/esm/info.d.ts +61 -0
  285. package/dist/esm/info.js +108 -0
  286. package/dist/esm/info.js.map +1 -0
  287. package/dist/esm/logger.d.ts +49 -0
  288. package/dist/esm/logger.js +146 -0
  289. package/dist/esm/logger.js.map +1 -0
  290. package/dist/esm/mutex.d.ts +7 -0
  291. package/dist/esm/mutex.js +40 -0
  292. package/dist/esm/mutex.js.map +1 -0
  293. package/dist/esm/package.json +3 -0
  294. package/dist/esm/query.d.ts +50 -0
  295. package/dist/esm/query.js +240 -0
  296. package/dist/esm/query.js.map +1 -0
  297. package/dist/esm/queryArticle.d.ts +61 -0
  298. package/dist/esm/queryArticle.js +112 -0
  299. package/dist/esm/queryArticle.js.map +1 -0
  300. package/dist/esm/queryArticles.d.ts +111 -0
  301. package/dist/esm/queryArticles.js +439 -0
  302. package/dist/esm/queryArticles.js.map +1 -0
  303. package/dist/esm/queryEvent.d.ts +141 -0
  304. package/dist/esm/queryEvent.js +409 -0
  305. package/dist/esm/queryEvent.js.map +1 -0
  306. package/dist/esm/queryEvents.d.ts +201 -0
  307. package/dist/esm/queryEvents.js +546 -0
  308. package/dist/esm/queryEvents.js.map +1 -0
  309. package/dist/esm/queryIterator.d.ts +36 -0
  310. package/dist/esm/queryIterator.js +81 -0
  311. package/dist/esm/queryIterator.js.map +1 -0
  312. package/dist/esm/queryMentions.d.ts +97 -0
  313. package/dist/esm/queryMentions.js +431 -0
  314. package/dist/esm/queryMentions.js.map +1 -0
  315. package/dist/esm/queryStory.d.ts +61 -0
  316. package/dist/esm/queryStory.js +110 -0
  317. package/dist/esm/queryStory.js.map +1 -0
  318. package/dist/esm/recent.d.ts +35 -0
  319. package/dist/esm/recent.js +76 -0
  320. package/dist/esm/recent.js.map +1 -0
  321. package/dist/esm/recentFeed.d.ts +35 -0
  322. package/dist/esm/recentFeed.js +70 -0
  323. package/dist/esm/recentFeed.js.map +1 -0
  324. package/dist/esm/returnInfo.d.ts +66 -0
  325. package/dist/esm/returnInfo.js +245 -0
  326. package/dist/esm/returnInfo.js.map +1 -0
  327. package/dist/esm/topicPage.d.ts +157 -0
  328. package/dist/esm/topicPage.js +421 -0
  329. package/dist/esm/topicPage.js.map +1 -0
  330. package/dist/esm/topicPages.d.ts +13 -0
  331. package/dist/esm/topicPages.js +18 -0
  332. package/dist/esm/topicPages.js.map +1 -0
  333. package/dist/esm/trends.d.ts +35 -0
  334. package/dist/esm/trends.js +56 -0
  335. package/dist/esm/trends.js.map +1 -0
  336. package/dist/esm/types.d.ts +2611 -0
  337. package/dist/esm/types.js +2 -0
  338. package/dist/esm/types.js.map +1 -0
  339. package/dist/esm/usage.d.ts +39 -0
  340. package/dist/esm/usage.js +58 -0
  341. package/dist/esm/usage.js.map +1 -0
  342. package/dist/esm/version.d.ts +1 -0
  343. package/dist/esm/version.js +2 -0
  344. package/dist/esm/version.js.map +1 -0
  345. package/package.json +80 -42
  346. package/src/abort.ts +70 -0
  347. package/src/analytics.ts +197 -0
  348. package/src/base.ts +206 -0
  349. package/src/counts.ts +118 -0
  350. package/src/dailyShares.ts +46 -0
  351. package/src/data.ts +310 -0
  352. package/src/errors.ts +105 -0
  353. package/src/eventForText.ts +60 -0
  354. package/src/eventRegistry.ts +1105 -0
  355. package/src/fluent/analytics.ts +84 -0
  356. package/src/fluent/articles.ts +40 -0
  357. package/src/fluent/counts.ts +15 -0
  358. package/src/fluent/eventForText.ts +10 -0
  359. package/src/fluent/events.ts +40 -0
  360. package/src/fluent/info.ts +23 -0
  361. package/src/fluent/mentions.ts +34 -0
  362. package/src/fluent/recent.ts +19 -0
  363. package/src/fluent/shares.ts +15 -0
  364. package/src/fluent/stories.ts +12 -0
  365. package/src/fluent/topicPages.ts +20 -0
  366. package/src/fluent/trends.ts +34 -0
  367. package/src/guards.ts +79 -0
  368. package/src/helpers/analytics.ts +134 -0
  369. package/src/helpers/articles.ts +42 -0
  370. package/src/helpers/counts.ts +19 -0
  371. package/src/helpers/eventForText.ts +16 -0
  372. package/src/helpers/events.ts +43 -0
  373. package/src/helpers/info.ts +31 -0
  374. package/src/helpers/mentions.ts +27 -0
  375. package/src/helpers/recent.ts +22 -0
  376. package/src/helpers/shares.ts +17 -0
  377. package/src/helpers/stories.ts +16 -0
  378. package/src/helpers/topicPages.ts +28 -0
  379. package/src/helpers/trends.ts +36 -0
  380. package/src/helpers/uri.ts +78 -0
  381. package/src/http.ts +169 -0
  382. package/src/index.ts +212 -0
  383. package/src/info.ts +120 -0
  384. package/src/logger.ts +182 -0
  385. package/src/mutex.ts +40 -0
  386. package/src/query.ts +258 -0
  387. package/src/queryArticle.ts +139 -0
  388. package/src/queryArticles.ts +584 -0
  389. package/src/queryEvent.ts +510 -0
  390. package/src/queryEvents.ts +673 -0
  391. package/src/queryIterator.ts +100 -0
  392. package/src/queryMentions.ts +559 -0
  393. package/src/queryStory.ts +159 -0
  394. package/src/recent.ts +98 -0
  395. package/src/recentFeed.ts +91 -0
  396. package/src/returnInfo.ts +372 -0
  397. package/src/topicPage.ts +485 -0
  398. package/src/topicPages.ts +18 -0
  399. package/src/trends.ts +62 -0
  400. package/src/types.ts +2737 -0
  401. package/src/usage.ts +79 -0
  402. package/src/version.ts +1 -0
  403. package/dist/analytics.js +0 -337
  404. package/dist/analytics.js.map +0 -1
  405. package/dist/base.js +0 -262
  406. package/dist/base.js.map +0 -1
  407. package/dist/counts.js +0 -163
  408. package/dist/counts.js.map +0 -1
  409. package/dist/dailyShares.js +0 -91
  410. package/dist/dailyShares.js.map +0 -1
  411. package/dist/data.js.map +0 -1
  412. package/dist/eventForText.js +0 -127
  413. package/dist/eventForText.js.map +0 -1
  414. package/dist/eventRegistry.js +0 -1099
  415. package/dist/eventRegistry.js.map +0 -1
  416. package/dist/index.d.ts +0 -21
  417. package/dist/index.js.map +0 -1
  418. package/dist/info.js +0 -172
  419. package/dist/info.js.map +0 -1
  420. package/dist/logger.js +0 -156
  421. package/dist/logger.js.map +0 -1
  422. package/dist/query.js +0 -334
  423. package/dist/query.js.map +0 -1
  424. package/dist/queryArticle.js +0 -184
  425. package/dist/queryArticle.js.map +0 -1
  426. package/dist/queryArticles.js +0 -730
  427. package/dist/queryArticles.js.map +0 -1
  428. package/dist/queryEvent.js +0 -588
  429. package/dist/queryEvent.js.map +0 -1
  430. package/dist/queryEvents.js +0 -826
  431. package/dist/queryEvents.js.map +0 -1
  432. package/dist/queryMentions.js +0 -638
  433. package/dist/queryMentions.js.map +0 -1
  434. package/dist/queryStory.js +0 -195
  435. package/dist/queryStory.js.map +0 -1
  436. package/dist/recent.d.ts +0 -23
  437. package/dist/recent.js +0 -200
  438. package/dist/recent.js.map +0 -1
  439. package/dist/returnInfo.js +0 -333
  440. package/dist/returnInfo.js.map +0 -1
  441. package/dist/topicPage.js +0 -600
  442. package/dist/topicPage.js.map +0 -1
  443. package/dist/trends.js +0 -116
  444. package/dist/trends.js.map +0 -1
  445. package/dist/types.js.map +0 -1
  446. /package/dist/{counts.d.ts → cjs/counts.d.ts} +0 -0
  447. /package/dist/{dailyShares.d.ts → cjs/dailyShares.d.ts} +0 -0
  448. /package/dist/{data.js → cjs/data.js} +0 -0
  449. /package/dist/{info.d.ts → cjs/info.d.ts} +0 -0
  450. /package/dist/{types.js → cjs/types.js} +0 -0
@@ -0,0 +1,2611 @@
1
+ import { QueryItems } from "./base.js";
2
+ import { ErApiError } from "./errors.js";
3
+ import { BaseQuery, CombinedQuery } from "./query.js";
4
+ import { QueryArticles, RequestArticles } from "./queryArticles.js";
5
+ import { RequestEvents } from "./queryEvents.js";
6
+ import { RequestMentions } from "./queryMentions.js";
7
+ import { ReturnInfo } from "./returnInfo.js";
8
+ /**
9
+ * Type definitions for different classes and functions from the Event Registry Node JS SDK.
10
+ */
11
+ export declare namespace ER {
12
+ export type Response<T = SuccessfulResponse<unknown>, E = string> = T & ErrorResponse<E>;
13
+ export interface SuccessfulResponse<T = unknown> {
14
+ [name: string]: Results<T> | Record<string, Results<T>>;
15
+ }
16
+ export interface ErrorResponseObject {
17
+ message?: string;
18
+ response?: Record<string, string>;
19
+ }
20
+ export interface ErrorResponse<E = string> {
21
+ error?: E;
22
+ /** Set next to `error` when the API answered with an HTTP error status: status, API code, request id and token cost. */
23
+ apiError?: ErApiError;
24
+ }
25
+ export interface Results<T = unknown> {
26
+ count?: number;
27
+ page?: number;
28
+ pages?: number;
29
+ warning?: string;
30
+ results: T[];
31
+ totalResults?: number;
32
+ usedResults?: number;
33
+ }
34
+ export interface UsageInfo {
35
+ availableTokens: number;
36
+ usedTokens: number;
37
+ }
38
+ export interface ServiceStatus {
39
+ [name: string]: any;
40
+ }
41
+ /** Per-call cancellation and deadline, accepted wherever a request is made. */
42
+ export interface RequestOptions {
43
+ /** Aborts the call: waiting in the queue, the HTTP request and backoff waits all stop. */
44
+ signal?: AbortSignal;
45
+ /**
46
+ * Overall deadline in milliseconds for the call, queueing, retries and backoff waits included.
47
+ * Exceeding it rejects with `ErTimeoutError`.
48
+ */
49
+ timeoutMs?: number;
50
+ }
51
+ export interface Config extends RequestOptions {
52
+ /**
53
+ * Check every `execQuery` response against the documented top-level shapes and throw `ErValidationError`
54
+ * when one does not match (a missing results array, a result without a uri, a non-numeric counter, ...).
55
+ * Off by default; extra fields never fail validation. Meant for tests and for pipelines that must not
56
+ * continue on malformed data.
57
+ */
58
+ validate?: boolean;
59
+ /**
60
+ * Throw when a call fails instead of resolving to `{ error }`. HTTP failures throw `ErApiError`, other failures a plain `Error`.
61
+ * Off by default so existing `if (response.error)` checks keep working.
62
+ * @default false
63
+ */
64
+ throwOnError?: boolean;
65
+ /**
66
+ * Token budget for this client. Once the tokens reported by the API since construction (or `usage.reset()`)
67
+ * plus the last reported cost of the same endpoint would exceed it, calls throw `ErBudgetExceededError`
68
+ * before any request is sent. The cost of a call is only known afterwards, so the guard can overshoot by one call.
69
+ */
70
+ maxTokens?: number;
71
+ /**
72
+ * API key that should be used to make the requests to the Event Registry.
73
+ * API key is assigned to each user account and can be obtained on this page:
74
+ * http://eventregistry.org/me?tab=settings
75
+ */
76
+ apiKey?: string;
77
+ /**
78
+ * Host to use to access the Event Registry backend.
79
+ * @default "https://eventregistry.org"
80
+ */
81
+ host?: string;
82
+ /**
83
+ * Host address to use to perform the analytics api calls.
84
+ * @default "https://analytics.eventregistry.org"
85
+ */
86
+ hostAnalytics?: string;
87
+ /**
88
+ * Log all requests.
89
+ */
90
+ logging?: boolean;
91
+ /**
92
+ * The minimum number of seconds between individual api calls.
93
+ * @default 0.5
94
+ */
95
+ minDelayBetweenRequests?: number;
96
+ /**
97
+ * If a request fails (for example, because ER is down),
98
+ * what is the max number of times the request should be repeated.
99
+ * Use -1 to retry indefinitely.
100
+ * @default 5
101
+ */
102
+ repeatFailedRequestCount?: number;
103
+ /**
104
+ * Base of the exponential backoff between retries, in milliseconds. Attempt n waits about
105
+ * `retryDelayMs * 2^n` (with jitter), capped at `maxRetryDelayMs`.
106
+ * @default 5000
107
+ */
108
+ retryDelayMs?: number;
109
+ /**
110
+ * Upper bound for a single wait between retries, in milliseconds (also caps a `Retry-After` header).
111
+ * @default 30000
112
+ */
113
+ maxRetryDelayMs?: number;
114
+ /**
115
+ * If true, additional info about errors etc. will be printed to console.
116
+ */
117
+ verboseOutput?: boolean;
118
+ settingsFName?: string;
119
+ allowUseOfArchive?: boolean;
120
+ }
121
+ export type BaseConceptType = "person" | "loc" | "org" | "wiki";
122
+ export type ConceptType = "person" | "loc" | "org" | "wiki" | "entities" | "concepts" | "conceptClass" | "conceptFolder";
123
+ export type SourceType = "place" | "country";
124
+ export type ConceptClassType = "dbpedia" | "custom";
125
+ export type DataType = "news" | "pr" | "blog";
126
+ /**
127
+ * Options:
128
+ * * id (internal id),
129
+ * * date (publishing date),
130
+ * * cosSim (closeness to the event centroid),
131
+ * * rel (relevance to the query),
132
+ * * sourceImportance (manually curated score of source importance - high value, high importance),
133
+ * * sourceImportanceRank (reverse of sourceImportance),
134
+ * * sourceAlexaGlobalRank (global rank of the news source),
135
+ * * sourceAlexaCountryRank (country rank of the news source),
136
+ * * socialScore (total shares on social media),
137
+ * * facebookShares (shares on Facebook only)
138
+ */
139
+ export type SortBy = "id" | "date" | "cosSim" | "rel" | "sourceImportance" | "sourceImportanceRank" | "sourceAlexaGlobalRank" | "sourceAlexaCountryRank" | "socialScore" | "facebookShares";
140
+ export interface SuggestConceptsArguments {
141
+ /**
142
+ * What types of concepts should be returned
143
+ */
144
+ sources?: ER.ConceptType[];
145
+ /**
146
+ * Language in which the prefix is specified
147
+ */
148
+ lang?: string | string[];
149
+ /**
150
+ * Languages in which the label(s) for the concepts are to be returned
151
+ */
152
+ conceptLang?: string | string[];
153
+ /**
154
+ * Page of the results (1, 2, ...)
155
+ */
156
+ page?: number;
157
+ /**
158
+ * Number of returned suggestions per page
159
+ */
160
+ count?: number;
161
+ /**
162
+ * What details about concepts should be included in the returned information
163
+ */
164
+ returnInfo?: ReturnInfo;
165
+ }
166
+ export interface SuggestCategoriesArguments {
167
+ /**
168
+ * page of the results (1, 2, ...)
169
+ */
170
+ page?: number;
171
+ /**
172
+ * number of returned suggestions
173
+ */
174
+ count?: number;
175
+ /**
176
+ * what details about categories should be included in the returned information
177
+ */
178
+ returnInfo?: ReturnInfo;
179
+ }
180
+ export interface SuggestNewsSourcesArguments {
181
+ /**
182
+ * page of the results (1, 2, ...)
183
+ */
184
+ page?: number;
185
+ /**
186
+ * number of returned suggestions
187
+ */
188
+ count?: number;
189
+ /**
190
+ * Suggest sources that provide content in these data types
191
+ */
192
+ dataType?: ER.DataType[] | ER.DataType;
193
+ }
194
+ export interface SuggestSourceGroupsArguments {
195
+ /**
196
+ * page of the results (1, 2, ...)
197
+ */
198
+ page?: number;
199
+ /**
200
+ * number of returned suggestions
201
+ */
202
+ count?: number;
203
+ }
204
+ export interface SuggestLocationsArguments {
205
+ /**
206
+ * What types of locations are we interested in.
207
+ */
208
+ sources?: ER.SourceType[];
209
+ /**
210
+ * Language in which the prefix is specified
211
+ */
212
+ lang?: string;
213
+ /**
214
+ * Number of returned suggestions
215
+ */
216
+ count?: number;
217
+ /**
218
+ * If provided, then return only those locations that are inside the specified country
219
+ */
220
+ countryUri?: string;
221
+ /**
222
+ * If provided, then return the locations sorted by the distance to the (lat, long) provided in the tuple
223
+ */
224
+ sortByDistanceTo?: number[];
225
+ /**
226
+ * What details about locations should be included in the returned information
227
+ */
228
+ returnInfo?: ReturnInfo;
229
+ }
230
+ export interface SuggestLocationsAtCoordinateArguments {
231
+ /**
232
+ * Limit the set of results only to cities (true) or also to general places (false)
233
+ */
234
+ limitToCities?: boolean;
235
+ /**
236
+ * Language in which the location label should be returned
237
+ */
238
+ lang?: string;
239
+ /**
240
+ * Number of returned suggestions
241
+ */
242
+ count?: number;
243
+ /**
244
+ * Ignore locations that don't have a wiki page and can not be used for concept search
245
+ */
246
+ ignoreNonWiki?: boolean;
247
+ /**
248
+ * What details about locations should be included in the returned information
249
+ */
250
+ returnInfo?: ReturnInfo;
251
+ }
252
+ export interface SuggestPagedArguments {
253
+ /** page of the results (1, 2, ...) */
254
+ page?: number;
255
+ /** number of returned suggestions */
256
+ count?: number;
257
+ }
258
+ export interface SuggestSourcesAtCoordinateArguments {
259
+ /** number of returned suggestions */
260
+ count?: number;
261
+ }
262
+ export interface SuggestSourcesAtPlaceArguments {
263
+ /**
264
+ * page of the results (1, 2, ...)
265
+ */
266
+ page?: number;
267
+ /**
268
+ * number of returned sources
269
+ */
270
+ count?: number;
271
+ /**
272
+ * type of the news source ("news", "pr", "blog" or a list of any of those)
273
+ */
274
+ dataType?: DataType;
275
+ }
276
+ export interface SuggestConceptClassesArguments {
277
+ /**
278
+ * language in which the prefix is specified
279
+ */
280
+ lang?: string;
281
+ /**
282
+ * languages in which the label(s) for the concepts are to be returned
283
+ */
284
+ conceptLang?: string;
285
+ /**
286
+ * what types of concepts classes should be returned.
287
+ */
288
+ source?: ER.ConceptClassType[];
289
+ /**
290
+ * page of the results (1, 2, ...)
291
+ */
292
+ page?: number;
293
+ /**
294
+ * number of returned suggestions
295
+ */
296
+ count?: number;
297
+ /**
298
+ * what details about categories should be included in the returned information
299
+ */
300
+ returnInfo?: ReturnInfo;
301
+ }
302
+ export interface SuggestCustomConceptsArguments {
303
+ /**
304
+ * language in which the prefix is specified
305
+ */
306
+ lang?: string;
307
+ /**
308
+ * languages in which the label(s) for the concepts are to be returned
309
+ */
310
+ conceptLang?: string;
311
+ /**
312
+ * page of the results (1, 2, ...)
313
+ */
314
+ page?: number;
315
+ /**
316
+ * number of returned suggestions
317
+ */
318
+ count?: number;
319
+ /**
320
+ * what details about categories should be included in the returned information
321
+ */
322
+ returnInfo?: ReturnInfo;
323
+ }
324
+ export interface GetConceptUriArguments {
325
+ /**
326
+ * language in which the prefix is specified
327
+ */
328
+ lang?: string;
329
+ /**
330
+ * what types of concepts should be returned.
331
+ */
332
+ sources?: ER.ConceptType[];
333
+ }
334
+ export interface GetLocationUriArguments {
335
+ /**
336
+ * language in which the prefix is specified
337
+ */
338
+ lang?: string;
339
+ /**
340
+ * what types of locations are we interested in.
341
+ */
342
+ sources?: ER.SourceType | ER.SourceType[];
343
+ /**
344
+ * if set, then filter the possible locations to the locations from that country
345
+ */
346
+ countryUri?: string;
347
+ /**
348
+ * sort candidates by distance to the given (lat, long) pair
349
+ */
350
+ sortByDistanceTo?: number[];
351
+ }
352
+ export interface GetStatsArguments {
353
+ addDailyArticles?: boolean;
354
+ addDailyAnnArticles?: boolean;
355
+ addDailyDuplArticles?: boolean;
356
+ addDailyEvents?: boolean;
357
+ }
358
+ interface Country {
359
+ type: string;
360
+ label: Label;
361
+ }
362
+ interface Label {
363
+ [name: string]: string;
364
+ }
365
+ export interface Location {
366
+ type: string;
367
+ wikiUri?: string;
368
+ label: Label;
369
+ country: Country;
370
+ lat?: number;
371
+ long?: number;
372
+ }
373
+ export interface Author {
374
+ uri: string;
375
+ name: string;
376
+ type: string;
377
+ isAgency: boolean;
378
+ isDisabled?: boolean;
379
+ articleCount?: number;
380
+ }
381
+ interface Shares {
382
+ [name: string]: number;
383
+ }
384
+ export interface Source {
385
+ uri: string;
386
+ dataType: string;
387
+ title: string;
388
+ location: Location;
389
+ private?: boolean;
390
+ disabled?: boolean;
391
+ locationValidated?: boolean;
392
+ articleCount?: string;
393
+ articles?: number;
394
+ importance?: string;
395
+ expected?: boolean;
396
+ actual?: number;
397
+ ranking?: {
398
+ alexaGlobalRank: string;
399
+ alexaCountryRank: string;
400
+ importanceRank: string;
401
+ };
402
+ }
403
+ interface BaseWeight {
404
+ wgt: number;
405
+ excluded?: boolean;
406
+ }
407
+ interface ConceptWeight extends BaseWeight {
408
+ label: string;
409
+ uri: string;
410
+ type: string;
411
+ required?: boolean;
412
+ }
413
+ interface KeywordWeight extends BaseWeight {
414
+ keyword: string;
415
+ keywordLoc?: string;
416
+ required?: boolean;
417
+ }
418
+ interface SourceWeight extends BaseWeight {
419
+ uri: string;
420
+ title: string;
421
+ }
422
+ interface CategoryWeight extends BaseWeight {
423
+ label: string;
424
+ uri: string;
425
+ required?: boolean;
426
+ }
427
+ interface LocationWeight extends BaseWeight {
428
+ label: string;
429
+ uri: string;
430
+ required?: boolean;
431
+ }
432
+ type Weight<T = any> = T extends ConceptWeight ? ConceptWeight : T extends KeywordWeight ? KeywordWeight : T extends SourceWeight ? SourceWeight : T extends CategoryWeight ? CategoryWeight : T extends LocationWeight ? LocationWeight : T;
433
+ export interface Concept<T = Record<string, string> | string> {
434
+ id?: string;
435
+ label?: T;
436
+ title?: string;
437
+ score?: number;
438
+ frequency?: number;
439
+ type?: "person" | "loc" | "org" | "concepts" | "conceptClass" | "topicPage" | "collection";
440
+ uri?: string;
441
+ wgt?: number;
442
+ image?: string;
443
+ description?: string;
444
+ disabled?: boolean;
445
+ currentType?: Record<string, string>;
446
+ lang?: string;
447
+ location?: {
448
+ country: {
449
+ label: {
450
+ [lang: string]: string;
451
+ };
452
+ };
453
+ };
454
+ lastUriPart?: string;
455
+ hierarchy?: {
456
+ [lang: string]: string;
457
+ };
458
+ conceptFolder?: {
459
+ owner: {
460
+ name: string;
461
+ };
462
+ };
463
+ conceptClass?: {
464
+ parentLabels: {
465
+ [lang: string]: string[];
466
+ };
467
+ };
468
+ topicPage?: {
469
+ visibility: number;
470
+ autoAddArticles?: boolean;
471
+ articleTreshWgt?: number | string;
472
+ eventTreshWgt?: number | string;
473
+ articleIsDuplicate?: string;
474
+ articleHasDuplicate?: string;
475
+ articleHasEvent?: string;
476
+ startSourceRankPercentile?: number;
477
+ endSourceRankPercentile?: number;
478
+ minSocialScore?: number;
479
+ minSentiment?: number;
480
+ maxSentiment?: number;
481
+ restrictToSetSources?: boolean;
482
+ restrictToSetLocations?: boolean;
483
+ restrictToSetCategories?: boolean;
484
+ restrictToSetConcepts?: boolean;
485
+ minArticlesInEvent?: number;
486
+ maxDaysBack?: number;
487
+ concepts?: Weight<ConceptWeight>[];
488
+ keywords?: Weight<KeywordWeight>[];
489
+ sources?: Weight<SourceWeight>[];
490
+ authors?: Weight<SourceWeight>[];
491
+ sourceLocations?: Weight<SourceWeight>[];
492
+ sourceGroups?: Weight<SourceWeight>[];
493
+ categories?: Weight<CategoryWeight>[];
494
+ locations?: Weight<LocationWeight>[];
495
+ langs?: string[];
496
+ dataType?: ("news" | "pr" | "blog")[];
497
+ owner?: {
498
+ uri: string;
499
+ };
500
+ };
501
+ collection?: {
502
+ visibility: number;
503
+ };
504
+ fq?: number;
505
+ }
506
+ export interface Keyword {
507
+ keyword: string;
508
+ weight: number;
509
+ }
510
+ export interface Category {
511
+ count: number;
512
+ label: string;
513
+ uri: string;
514
+ }
515
+ export interface ArticleCounts {
516
+ [lang: string]: number;
517
+ }
518
+ export interface InfoArticle {
519
+ [lang: string]: string;
520
+ }
521
+ export interface Title {
522
+ [lang: string]: string;
523
+ }
524
+ export interface Summary {
525
+ [lang: string]: string;
526
+ }
527
+ export interface Event {
528
+ id?: string;
529
+ uri: string;
530
+ concepts: Concept[];
531
+ langs?: number;
532
+ eventDate: string;
533
+ eventDateEnd?: string;
534
+ totalArticleCount: number;
535
+ title: Title;
536
+ summary: Summary;
537
+ rtl: boolean;
538
+ infoArticle: InfoArticle;
539
+ location: Location;
540
+ locationStr: string;
541
+ categories: Category[];
542
+ stories?: unknown[];
543
+ removed?: boolean;
544
+ images: string[];
545
+ articleCounts: ArticleCounts;
546
+ socialScore: number;
547
+ sentiment: null | number;
548
+ wgt: number;
549
+ keywords?: unknown[];
550
+ entities?: unknown[];
551
+ circleSize?: number;
552
+ }
553
+ export interface Article {
554
+ id?: string;
555
+ uri?: string;
556
+ lang?: string;
557
+ isDuplicate?: boolean;
558
+ date?: string;
559
+ time?: string;
560
+ removed?: boolean;
561
+ assigned?: boolean;
562
+ dateTime?: string;
563
+ dataType?: string;
564
+ sim?: number;
565
+ url?: string;
566
+ title?: string;
567
+ fullTitle?: string;
568
+ body?: string;
569
+ source?: Source;
570
+ authors?: Author[];
571
+ concepts?: Concept[];
572
+ image?: string;
573
+ eventUri?: null | string;
574
+ sentiment?: null | number;
575
+ shares?: Shares;
576
+ wgt?: number;
577
+ rtl?: boolean;
578
+ userHasPermissions?: boolean;
579
+ categories?: Category[];
580
+ sourceName?: string;
581
+ disabled?: boolean;
582
+ }
583
+ export interface TopicPage {
584
+ autoAddArticles: boolean;
585
+ articleHasDuplicate: "skipHasDuplicates" | "keepOnlyHasDuplicates" | "keepAll";
586
+ articleHasEvent: "skipArticlesWithoutEvent" | "keepOnlyArticlesWithoutEvent" | "keepAll";
587
+ articleIsDuplicate: "skipDuplicates" | "keepOnlyDuplicates" | "keepAll";
588
+ maxDaysBack: number;
589
+ articleTreshWgt: number;
590
+ eventTreshWgt: number;
591
+ concepts: Record<string, string | number | boolean>[];
592
+ keywords: Record<string, string | number | boolean>[];
593
+ categories: Record<string, string | number | boolean>[];
594
+ sources: Record<string, string | number | boolean>[];
595
+ sourceGroups: Record<string, string | number | boolean>[];
596
+ sourceLocations: Record<string, string | number | boolean>[];
597
+ locations: Record<string, string | number | boolean>[];
598
+ langs: string[];
599
+ startSourceRankPercentile?: number;
600
+ endSourceRankPercentile?: number;
601
+ restrictToSetConcepts: boolean;
602
+ restrictToSetCategories: boolean;
603
+ restrictToSetSources: boolean;
604
+ restrictToSetLocations: boolean;
605
+ dataType: ER.DataType | ER.DataType[];
606
+ }
607
+ export interface TopicPageAddConceptArguments {
608
+ label?: string;
609
+ conceptType?: string;
610
+ required?: boolean;
611
+ excluded?: boolean;
612
+ }
613
+ export interface TopicPageAddKeywordArguments {
614
+ required?: boolean;
615
+ excluded?: boolean;
616
+ }
617
+ export interface TopicPageAddCategoryArguments {
618
+ required?: boolean;
619
+ excluded?: boolean;
620
+ }
621
+ export interface TopicPageAddSourceArguments {
622
+ excluded?: boolean;
623
+ }
624
+ export interface TopicPageAddSourceLocationArguments {
625
+ excluded?: boolean;
626
+ }
627
+ export interface TopicPageAddSourceGroupArguments {
628
+ excluded?: boolean;
629
+ }
630
+ export interface TopicPageArticles {
631
+ /**
632
+ * Which page of the results to return (default: 1).
633
+ */
634
+ page?: number;
635
+ /**
636
+ * Number of articles to return (default: 100)
637
+ */
638
+ count?: number;
639
+ /**
640
+ * How are articles sorted
641
+ */
642
+ sortBy?: SortBy;
643
+ /**
644
+ * Should the results be sorted in ascending order (true) or descending (false)
645
+ */
646
+ sortByAsc?: boolean;
647
+ dataType?: ER.DataType | ER.DataType[];
648
+ /**
649
+ * What details should be included in the returned information
650
+ */
651
+ returnInfo?: ReturnInfo;
652
+ [name: string]: (string | number | boolean | ReturnInfo) | (string | number | boolean)[] | undefined;
653
+ }
654
+ export interface TopicPageEvents {
655
+ /**
656
+ * Which page of the results to return (default: 1).
657
+ */
658
+ page?: number;
659
+ /**
660
+ * Number of events to return (default: 50)
661
+ */
662
+ count?: number;
663
+ /**
664
+ * How are events sorted
665
+ */
666
+ sortBy?: SortBy;
667
+ /**
668
+ * Should the results be sorted in ascending order (true) or descending (false)
669
+ */
670
+ sortByAsc?: boolean;
671
+ /**
672
+ * What details should be included in the returned information
673
+ */
674
+ returnInfo?: ReturnInfo;
675
+ [name: string]: (string | number | boolean | ReturnInfo) | (string | number | boolean)[] | undefined;
676
+ }
677
+ export namespace Correlations {
678
+ interface TopConceptArguments {
679
+ /**
680
+ * An instance of QueryArticles that can be used to limit the space of concept candidates
681
+ */
682
+ candidateConceptsQuery?: QueryArticles;
683
+ /**
684
+ * If candidateConceptsQuery is provided, then this number of concepts for each valid type will be return as candidates
685
+ */
686
+ candidatesPerType?: number;
687
+ /**
688
+ * A string or an array containing the concept types that are valid candidates on which to compute top correlations
689
+ * valid values are "person", "org", "loc" and/or "wiki"
690
+ */
691
+ conceptType?: string | string[];
692
+ /**
693
+ * the number of returned concepts for which the exact value of the correlation is computed
694
+ */
695
+ exactCount?: number;
696
+ /**
697
+ * the number of returned concepts for which only an approximate value of the correlation is computed
698
+ */
699
+ approxCount?: number;
700
+ /**
701
+ * specifies the details about the concepts that should be returned in the output result
702
+ */
703
+ returnInfo?: ReturnInfo;
704
+ }
705
+ interface TopCategoryArguments {
706
+ /**
707
+ * the number of returned categories for which the exact value of the correlation is computed
708
+ */
709
+ exactCount?: number;
710
+ /**
711
+ * the number of returned categories for which only an approximate value of the correlation is computed
712
+ */
713
+ approxCount?: number;
714
+ /**
715
+ * specifies the details about the categories that should be returned in the output result
716
+ */
717
+ returnInfo?: ReturnInfo;
718
+ }
719
+ }
720
+ export namespace Counts {
721
+ interface Arguments {
722
+ /**
723
+ * input source information from which to compute top trends.
724
+ */
725
+ source?: "news" | "social" | "custom" | "geo" | "sentiment";
726
+ /**
727
+ * What do the uris represent?
728
+ */
729
+ type?: "concept" | "category";
730
+ /**
731
+ * Starting date from which to provide counts onwards (format: YYYY-MM-DD).
732
+ */
733
+ dateStart?: string | Date;
734
+ /**
735
+ * Ending date until which to provide counts (format: YYYY-MM-DD).
736
+ */
737
+ dateEnd?: string | Date;
738
+ /**
739
+ * What details should be included in the returned information.
740
+ */
741
+ returnInfo?: ReturnInfo;
742
+ }
743
+ }
744
+ export namespace DailyShares {
745
+ interface Arguments {
746
+ /**
747
+ * Specify the date for which to return top shared articles. If undefined then today is used.
748
+ */
749
+ date?: string;
750
+ /**
751
+ * Number of top shared articles to return
752
+ */
753
+ count?: number;
754
+ /**
755
+ * Specifies the details that should be returned in the output result
756
+ */
757
+ returnInfo?: ReturnInfo;
758
+ }
759
+ }
760
+ export namespace Analytics {
761
+ type Response = ER.Response<Record<string, unknown>, ER.ErrorResponseObject>;
762
+ interface TrainTopicOnTweetsArguments {
763
+ /**
764
+ * Do you want to analyze the content of the tweets and extract the concepts mentioned in them?
765
+ * If false, only content shared in the articles in the user's tweets will be analyzed.
766
+ */
767
+ useTweetText?: boolean;
768
+ /**
769
+ * Normalize identified concepts by their IDF in the news (punish very common concepts)
770
+ */
771
+ useIdfNormalization?: boolean;
772
+ /**
773
+ * Way to normalize the concept weights ("none", "linear")
774
+ */
775
+ normalization?: "none" | "linear";
776
+ /**
777
+ * The number of concepts to save in the final topic.
778
+ */
779
+ maxConcepts?: number;
780
+ /**
781
+ * The number of categories to save in the final topic.
782
+ */
783
+ maxCategories?: number;
784
+ /**
785
+ * The maximum number of tweets to collect for the user to analyze.
786
+ */
787
+ maxTweets?: number;
788
+ /**
789
+ * maximum number of article links in the tweets to analyze (default 500, max 2000)
790
+ */
791
+ maxUsedLinks?: number;
792
+ /**
793
+ * what types of concepts you would like to ignore in the profile. options: person, org, loc, wiki or an array with those
794
+ */
795
+ ignoreConceptTypes?: BaseConceptType | BaseConceptType[];
796
+ /**
797
+ * When finished, should we send a notification email to this address?
798
+ */
799
+ notifyEmailAddress?: string;
800
+ }
801
+ interface TrainTopicGetTrainedTopicArguments {
802
+ maxConcepts?: number;
803
+ maxCategories?: number;
804
+ idfNormalization?: boolean;
805
+ }
806
+ interface Language {
807
+ code: string;
808
+ name: string;
809
+ percent: number;
810
+ }
811
+ namespace Response {
812
+ interface Annotate {
813
+ [name: string]: unknown;
814
+ }
815
+ interface Categorize {
816
+ categories: ER.Category[];
817
+ }
818
+ interface Sentiment {
819
+ avgSent: unknown;
820
+ sentimentPerSent: unknown;
821
+ }
822
+ interface SentimentSimilarity {
823
+ similarity: unknown;
824
+ }
825
+ interface DetectLanguage {
826
+ languages: ER.Analytics.Language[];
827
+ }
828
+ interface ExtractArticleInfo {
829
+ title?: string;
830
+ body?: string;
831
+ date?: string;
832
+ datetime?: string;
833
+ image?: string;
834
+ }
835
+ }
836
+ }
837
+ export namespace Info {
838
+ interface GetSourceInfoArguments {
839
+ /**
840
+ * single source uri or a list of source uris for which to return information
841
+ */
842
+ uriOrUriList?: string | string[];
843
+ /**
844
+ * what details about the source should be included in the returned information
845
+ */
846
+ returnInfo?: ReturnInfo;
847
+ }
848
+ interface GetConceptInfoArguments {
849
+ /**
850
+ * single concept uri or a list of concept uris for which to return information
851
+ */
852
+ uriOrUriList?: string | string[];
853
+ /**
854
+ * what details about the source should be included in the returned information
855
+ */
856
+ returnInfo?: ReturnInfo;
857
+ }
858
+ interface GetCategoryInfoArguments {
859
+ /**
860
+ * single category uri or a list of category uris for which to return information
861
+ */
862
+ uriOrUriList?: string | string[];
863
+ /**
864
+ * what details about the source should be included in the returned information
865
+ */
866
+ returnInfo?: ReturnInfo;
867
+ }
868
+ }
869
+ export namespace Query {
870
+ interface BaseQueryArguments {
871
+ /**
872
+ * Keyword(s) to query. Either undefined, string or QueryItems.
873
+ */
874
+ keyword?: string | QueryItems;
875
+ /**
876
+ * Concept(s) to query. Either undefined, string or QueryItems.
877
+ */
878
+ conceptUri?: string | QueryItems;
879
+ /**
880
+ * Source(s) to query. Either undefined, string or QueryItems.
881
+ */
882
+ sourceUri?: string | QueryItems;
883
+ /**
884
+ * Location(s) to query. Either undefined, string or QueryItems.
885
+ */
886
+ locationUri?: string | QueryItems;
887
+ /**
888
+ * CategoryUri categories to query. Either undefined, string or QueryItems.
889
+ */
890
+ categoryUri?: string | QueryItems;
891
+ /**
892
+ * Language(s) to query. Either undefined, string or QueryItems.
893
+ */
894
+ lang?: string | QueryItems;
895
+ /**
896
+ * Starting date. Either undefined, string or date.
897
+ */
898
+ dateStart?: string | Date;
899
+ /**
900
+ * Ending date. Either undefined, string or date.
901
+ */
902
+ dateEnd?: string | Date;
903
+ /**
904
+ * Search by mentioned dates - Either undefined, string or date or a list of these types.
905
+ */
906
+ dateMention?: string | string[];
907
+ /**
908
+ * Find content generated by news sources at the specified geographic location - can be a city URI or a country URI. Multiple items can be provided using a list.
909
+ */
910
+ sourceLocationUri?: string | string[];
911
+ /**
912
+ * A single or multiple source group URIs. A source group is a group of news sources, commonly defined based on common topic or importance.
913
+ */
914
+ sourceGroupUri?: string | string[];
915
+ /**
916
+ * Author(s) to query. Either undefined, string or QueryItems.
917
+ */
918
+ authorUri?: string | string[];
919
+ /**
920
+ * Should we include the subcategories of the searched categories?
921
+ */
922
+ categoryIncludeSub?: boolean;
923
+ /**
924
+ * Where should we look when searching using the keywords provided by "keyword" parameter. "body" (default), "title", or "body,title".
925
+ */
926
+ keywordLoc?: "body" | "title" | "body,title";
927
+ /**
928
+ * A tuple containing the minimum and maximum number of articles that should be in the resulting events. Parameter relevant only if querying events.
929
+ */
930
+ minMaxArticlesInEvent?: [number, number];
931
+ /**
932
+ * A instance of BaseQuery, CombinedQuery or undefined. Used to filter out results matching the other criteria specified in this query.
933
+ */
934
+ exclude?: BaseQuery | CombinedQuery;
935
+ }
936
+ interface ComplexArticleQueryArguments {
937
+ /**
938
+ * Some articles can be duplicates of other articles. What should be done with them.
939
+ * Possible values are:
940
+ * - "skipDuplicates" (skip the resulting articles that are duplicates of other articles)
941
+ * - "keepOnlyDuplicates" (return only the duplicate articles)
942
+ * - "keepAll" (no filtering, default)
943
+ */
944
+ isDuplicateFilter?: "skipDuplicates" | "keepOnlyDuplicates" | "keepAll";
945
+ /**
946
+ * some articles are later copied by others. What should be done with such articles.
947
+ * Possible values are:
948
+ * - "skipHasDuplicates" (skip the resulting articles that have been later copied by others)
949
+ * - "keepOnlyHasDuplicates" (return only the articles that have been later copied by others)
950
+ * - "keepAll" (no filtering, default)
951
+ */
952
+ hasDuplicateFilter?: "skipHasDuplicates" | "keepOnlyHasDuplicates" | "keepAll";
953
+ /**
954
+ * Some articles describe a known event and some don't. This filter allows you to filter the resulting articles based on this criteria.
955
+ * Possible values are:
956
+ * - "skipArticlesWithoutEvent" (skip articles that are not describing any known event in ER)
957
+ * - "keepOnlyArticlesWithoutEvent" (return only the articles that are not describing any known event in ER)
958
+ * - "keepAll" (no filtering, default)
959
+ */
960
+ eventFilter?: "skipArticlesWithoutEvent" | "keepOnlyArticlesWithoutEvent" | "keepAll";
961
+ /**
962
+ * Data type to search for. Possible values are "news" (news content), "pr" (PR content) or "blogs".
963
+ * If you want to use multiple data types, put them in an array (e.g. ["news", "pr"])
964
+ */
965
+ dataType?: ER.DataType[] | ER.DataType;
966
+ minSentiment?: number;
967
+ maxSentiment?: number;
968
+ minSocialScore?: number;
969
+ minFacebookShares?: number;
970
+ startSourceRankPercentile?: number;
971
+ endSourceRankPercentile?: number;
972
+ }
973
+ interface ComplexEventQueryArguments {
974
+ minSentiment?: number;
975
+ maxSentiment?: number;
976
+ }
977
+ }
978
+ export namespace QueryArticle {
979
+ interface RequestArticleSimilarArticlesArguments {
980
+ /**
981
+ * page of the articles
982
+ */
983
+ page?: number;
984
+ /**
985
+ * number of articles to return (at most 200)
986
+ */
987
+ count?: number;
988
+ /**
989
+ * in which language(s) should be the similar articles
990
+ */
991
+ lang?: string[];
992
+ /**
993
+ * max number of articles per language to return (-1 for no limit)
994
+ */
995
+ limitPerLang?: number;
996
+ /**
997
+ * what details should be included in the returned information
998
+ */
999
+ returnInfo?: ReturnInfo;
1000
+ }
1001
+ interface RequestArticleDuplicatedArticlesArguments {
1002
+ /**
1003
+ * page of the articles
1004
+ */
1005
+ page?: number;
1006
+ /**
1007
+ * number of articles to return (at most 200)
1008
+ */
1009
+ count?: number;
1010
+ /**
1011
+ * how are the articles sorted.
1012
+ */
1013
+ sortBy?: "id" | "date" | "cosSim" | "fq" | "socialScore" | "facebookShares" | "twitterShares";
1014
+ /**
1015
+ * should the results be sorted in ascending order (true) or descending (false)
1016
+ */
1017
+ sortByAsc?: boolean;
1018
+ /**
1019
+ * what details should be included in the returned information
1020
+ */
1021
+ returnInfo?: ReturnInfo;
1022
+ }
1023
+ }
1024
+ export interface RequestArticlesInfoParameters {
1025
+ page?: number;
1026
+ count?: number;
1027
+ sortBy?: string;
1028
+ sortByAsc?: boolean;
1029
+ returnInfo?: ReturnInfo;
1030
+ }
1031
+ export interface RequestArticlesUriWgtListParameters {
1032
+ page?: number;
1033
+ count?: number;
1034
+ sortBy?: string;
1035
+ sortByAsc?: boolean;
1036
+ }
1037
+ export interface RequestArticlesConceptTrendsParameters {
1038
+ conceptUris?: string[];
1039
+ conceptCount?: number;
1040
+ articlesSampleSize?: number;
1041
+ returnInfo?: ReturnInfo;
1042
+ }
1043
+ export interface RequestArticlesRecentActivityParameters {
1044
+ maxArticleCount?: number;
1045
+ updatesAfterNewsUri?: string;
1046
+ /** Python-style name; `updatesAfterBlogUri` is an alias and wins when both are set. */
1047
+ updatesafterBlogUri?: string;
1048
+ updatesAfterBlogUri?: string;
1049
+ updatesAfterPrUri?: string;
1050
+ updatesAfterTm?: string | Date;
1051
+ updatesAfterMinsAgo?: number;
1052
+ updatesUntilTm?: string | Date;
1053
+ updatesUntilMinsAgo?: number;
1054
+ mandatorySourceLocation?: boolean;
1055
+ returnInfo?: ReturnInfo;
1056
+ }
1057
+ export namespace Aggr {
1058
+ namespace Source {
1059
+ interface CountsPerSource {
1060
+ source: ER.Source;
1061
+ counts: {
1062
+ frequency: number;
1063
+ total: number;
1064
+ };
1065
+ }
1066
+ interface CountsPerCountry {
1067
+ uri: string;
1068
+ type: string;
1069
+ frequency: number;
1070
+ }
1071
+ }
1072
+ }
1073
+ export namespace QueryArticles {
1074
+ interface Arguments {
1075
+ /**
1076
+ * Find articles that mention the specified keywords.
1077
+ * A single keyword/phrase can be provided as a string, multiple keywords/phrases can be provided as a list of strings.
1078
+ * Use QueryItems.AND() if *all* provided keywords/phrases should be mentioned, or QueryItems.OR() if *any* of the keywords/phrases should be mentioned.
1079
+ * or QueryItems.OR() to specify a list of keywords where any of the keywords have to appear
1080
+ */
1081
+ keywords?: string | string[] | QueryItems;
1082
+ /**
1083
+ * Find articles where the concept with concept uri is mentioned.
1084
+ * A single concept uri can be provided as a string, multiple concept uris can be provided as a list of strings.
1085
+ * Use QueryItems.AND() if *all* provided concepts should be mentioned, or QueryItems.OR() if *any* of the concepts should be mentioned.
1086
+ * To obtain a concept uri using a concept label use EventRegistry.getConceptUri().
1087
+ */
1088
+ conceptUri?: string | string[] | QueryItems;
1089
+ /**
1090
+ * Find articles that are assigned into a particular category.
1091
+ * A single category can be provided as a string, while multiple categories can be provided as a list in QueryItems.AND() or QueryItems.OR().
1092
+ * A category uri can be obtained from a category name using EventRegistry.getCategoryUri().
1093
+ */
1094
+ categoryUri?: string | string[] | QueryItems;
1095
+ /**
1096
+ * find articles that were written by a news source sourceUri.
1097
+ * If multiple sources should be considered use QueryItems.OR() to provide the list of sources.
1098
+ * Source uri for a given news source name can be obtained using EventRegistry.getNewsSourceUri().
1099
+ */
1100
+ sourceUri?: string | string[] | QueryItems;
1101
+ /**
1102
+ * Find articles that were written by news sources located in the given geographic location.
1103
+ * If multiple source locations are provided, then put them into a list inside QueryItems.OR()
1104
+ * Location uri can either be a city or a country. Location uri for a given name can be obtained using EventRegistry.getLocationUri().
1105
+ */
1106
+ sourceLocationUri?: string | string[] | QueryItems;
1107
+ /**
1108
+ * Find articles that were written by news sources that are assigned to the specified source group.
1109
+ * If multiple source groups are provided, then put them into a list inside QueryItems.OR()
1110
+ * Source group uri for a given name can be obtained using EventRegistry.getSourceGroupUri().
1111
+ */
1112
+ sourceGroupUri?: string | string[] | QueryItems;
1113
+ /**
1114
+ * Find articles that were written by a specific author.
1115
+ * If multiple authors should be considered use QueryItems.OR() to provide the list of authors.
1116
+ * Author uri for a given author name can be obtained using EventRegistry.getAuthorUri().
1117
+ */
1118
+ authorUri?: string | string[] | QueryItems;
1119
+ /**
1120
+ * Find articles that describe something that occurred at a particular location.
1121
+ * If value can be a string or a list of strings provided in QueryItems.OR().
1122
+ * Location uri can either be a city or a country. Location uri for a given name can be obtained using EventRegistry.getLocationUri().
1123
+ */
1124
+ locationUri?: string | string[] | QueryItems;
1125
+ /**
1126
+ * find articles that are written in the specified language.
1127
+ * If more than one language is specified, resulting articles has to be written in *any* of the languages.
1128
+ */
1129
+ lang?: string | string[];
1130
+ /**
1131
+ * Find articles that were written on or after dateStart. Date should be provided in YYYY-MM-DD format.
1132
+ */
1133
+ dateStart?: string | Date;
1134
+ /**
1135
+ * Find articles that occurred before or on dateEnd. Date should be provided in YYYY-MM-DD format.
1136
+ */
1137
+ dateEnd?: string | Date;
1138
+ /**
1139
+ * Find articles that explicitly mention a date that is equal or greater than dateMentionStart.
1140
+ */
1141
+ dateMentionStart?: string | Date;
1142
+ /**
1143
+ * Find articles that explicitly mention a date that is lower or equal to dateMentionEnd.
1144
+ */
1145
+ dateMentionEnd?: string | Date;
1146
+ /**
1147
+ * Ignore articles that mention all provided keywords.
1148
+ */
1149
+ ignoreKeywords?: string | string[] | QueryItems;
1150
+ /**
1151
+ * Ignore articles that mention all provided concepts.
1152
+ */
1153
+ ignoreConceptUri?: string | string[] | QueryItems;
1154
+ /**
1155
+ * Ignore articles that are assigned to a particular category.
1156
+ */
1157
+ ignoreCategoryUri?: string | string[] | QueryItems;
1158
+ /**
1159
+ * Ignore articles that have been written by *any* of the specified news sources.
1160
+ */
1161
+ ignoreSourceUri?: string | string[] | QueryItems;
1162
+ /**
1163
+ * Ignore articles that have been written by sources located at *any* of the specified locations.
1164
+ */
1165
+ ignoreSourceLocationUri?: string | string[] | QueryItems;
1166
+ /**
1167
+ * Ignore articles that have been written by sources in *any* of the specified source groups.
1168
+ */
1169
+ ignoreSourceGroupUri?: string | string[] | QueryItems;
1170
+ /**
1171
+ * Ignore articles that were written by *any* of the specified authors.
1172
+ */
1173
+ ignoreAuthorUri?: string | string[] | QueryItems;
1174
+ /**
1175
+ * Ignore articles that occurred in any of the provided locations. A location can be a city or a place.
1176
+ */
1177
+ ignoreLocationUri?: string | string[] | QueryItems;
1178
+ /**
1179
+ * Ignore articles that are written in *any* of the provided languages.
1180
+ */
1181
+ ignoreLang?: string | string[] | QueryItems;
1182
+ /**
1183
+ * Where should we look when searching using the keywords provided by "keywords" parameter. "body" (default), "title", or "body,title".
1184
+ */
1185
+ keywordsLoc?: "body" | "title" | "body,title";
1186
+ keywordSearchMode?: "simple" | "exact" | "phrase";
1187
+ /**
1188
+ * Where should we look when data should be used when searching using the keywords provided by "ignoreKeywords" parameter. "body" (default), "title", or "body,title".
1189
+ */
1190
+ ignoreKeywordsLoc?: "body" | "title" | "body,title";
1191
+ ignoreKeywordSearchMode?: "simple" | "exact" | "phrase";
1192
+ /**
1193
+ * Some articles can be duplicates of other articles. What should be done with them. Possible values are:
1194
+ * "skipDuplicates" (skip the resulting articles that are duplicates of other articles)
1195
+ * "keepOnlyDuplicates" (return only the duplicate articles)
1196
+ * "keepAll" (no filtering, default)
1197
+ */
1198
+ isDuplicateFilter?: "skipDuplicates" | "keepOnlyDuplicates" | "keepAll";
1199
+ /**
1200
+ * Some articles are later copied by others. What should be done with such articles. Possible values are:
1201
+ * "skipHasDuplicates" (skip the resulting articles that have been later copied by others)
1202
+ * "keepOnlyHasDuplicates" (return only the articles that have been later copied by others)
1203
+ * "keepAll" (no filtering, default)
1204
+ */
1205
+ hasDuplicateFilter?: "skipHasDuplicates" | "keepOnlyHasDuplicates" | "keepAll";
1206
+ /**
1207
+ * Some articles describe a known event and some don't. This filter allows you to filter the resulting articles based on this criteria.
1208
+ * Possible values are:
1209
+ * "skipArticlesWithoutEvent" (skip articles that are not describing any known event in ER)
1210
+ * "keepOnlyArticlesWithoutEvent" (return only the articles that are not describing any known event in ER)
1211
+ * "keepAll" (no filtering, default)
1212
+ */
1213
+ eventFilter?: "skipArticlesWithoutEvent" | "keepOnlyArticlesWithoutEvent" | "keepAll";
1214
+ /**
1215
+ * Some articles have an extracted author and some don't. What should be done with them. Possible values are:
1216
+ * "skipIfHasAuthors" (skip articles for which we have identified the author)
1217
+ * "keepOnlyIfHasAuthors" (return only articles for which we have extracted the author)
1218
+ * "keepAll" (no filtering, default)
1219
+ */
1220
+ authorsFilter?: "skipIfHasAuthors" | "keepOnlyIfHasAuthors" | "keepAll";
1221
+ /**
1222
+ * Some articles contain a link to a video and some don't. What should be done with them. Possible values are:
1223
+ * "skipIfHasVideos" (skip articles that contain a link to a video)
1224
+ * "keepOnlyIfHasVideos" (return only articles that contain a link to a video)
1225
+ * "keepAll" (no filtering, default)
1226
+ */
1227
+ videosFilter?: "skipIfHasVideos" | "keepOnlyIfHasVideos" | "keepAll";
1228
+ /**
1229
+ * Some articles contain links to other URLs and some don't. What should be done with them. Possible values are:
1230
+ * "skipIfHasLinks" (skip articles that contain one or more links)
1231
+ * "keepOnlyIfHasLinks" (return only articles that contain a link to other URLs)
1232
+ * "keepAll" (no filtering, default)
1233
+ */
1234
+ linksFilter?: "skipIfHasLinks" | "keepOnlyIfHasLinks" | "keepAll";
1235
+ /**
1236
+ * Starting percentile of the sources to consider in the results (default: 0). Value should be in range 0-90 and divisible by 10.
1237
+ */
1238
+ startSourceRankPercentile?: number;
1239
+ /**
1240
+ * Ending percentile of the sources to consider in the results (default: 100). Value should be in range 10-100 and divisible by 10.
1241
+ */
1242
+ endSourceRankPercentile?: number;
1243
+ /**
1244
+ * minimum value of the sentiment, that the returned articles should have. Range [-1, 1]. Note: setting the value will remove all articles that don't have a computed value for the sentiment (all non-English articles)
1245
+ */
1246
+ minSentiment?: number;
1247
+ /**
1248
+ * maximum value of the sentiment, that the returned articles should have. Range [-1, 1]. Note: setting the value will remove all articles that don't have a computed value for the sentiment (all non-English articles)
1249
+ */
1250
+ maxSentiment?: number;
1251
+ /**
1252
+ * what data types should we search? "news" (news content, default), "pr" (press releases), or "blogs".
1253
+ * If you want to use multiple data types, put them in an array (e.g. ["news", "pr"])
1254
+ */
1255
+ dataType?: ER.DataType[] | ER.DataType;
1256
+ /**
1257
+ * The information to return as the result of the query. By default return the list of matching articles.
1258
+ */
1259
+ requestedResult?: RequestArticles;
1260
+ }
1261
+ interface IteratorArguments extends Arguments, RequestOptions {
1262
+ /**
1263
+ * how should the resulting articles be sorted. Options: "rel" (relevance), "date" (published date), "sourceImportance", "sourceImportanceRank", "sourceAlexaGlobalRank", "sourceAlexaCountryRank", "socialScore", "facebookShares"
1264
+ */
1265
+ sortBy?: string;
1266
+ /**
1267
+ * should the results be sorted in ascending order (true) or descending (false)
1268
+ */
1269
+ sortByAsc?: boolean;
1270
+ /**
1271
+ * what details should be included in the returned information
1272
+ */
1273
+ returnInfo?: ReturnInfo;
1274
+ /**
1275
+ * maximum number of items to be returned. Used to stop iteration sooner than results run out
1276
+ */
1277
+ maxItems?: number;
1278
+ }
1279
+ }
1280
+ export namespace QueryEvent {
1281
+ /**
1282
+ * Sorting options:
1283
+ * - undefined (no specific sorting),
1284
+ * - id (internal id), date (published date),
1285
+ * - cosSim (closeness to event centroid),
1286
+ * - sourceImportance (manually curated score of source importance - high value,
1287
+ * - high importance), sourceImportanceRank (reverse of sourceImportance),
1288
+ * - sourceAlexaGlobalRank (global rank of the news source),
1289
+ * - sourceAlexaCountryRank (country rank of the news source),
1290
+ * - socialScore (total shares on social media),
1291
+ * - facebookShares (shares on Facebook only)
1292
+ */
1293
+ type SortByOptions = "id" | "date" | "cosSim" | "sourceImportance" | "sourceImportanceRank" | "sourceAlexaGlobalRank" | "sourceAlexaCountryRank" | "socialScore" | "facebookShares";
1294
+ type RequestEvent = Record<string, never>;
1295
+ interface IteratorArguments extends RequestOptions {
1296
+ /**
1297
+ * Array or a single language in which to return the list of matching articles
1298
+ */
1299
+ lang?: string | string[];
1300
+ /**
1301
+ * Order in which event articles are sorted.
1302
+ */
1303
+ sortBy?: SortByOptions;
1304
+ /**
1305
+ * Should the results be sorted in ascending order (True) or descending (False)
1306
+ */
1307
+ sortByAsc?: boolean;
1308
+ /**
1309
+ * What details should be included in the returned information
1310
+ */
1311
+ returnInfo?: ReturnInfo;
1312
+ /**
1313
+ * Number of articles to download at once (we are not downloading article by article) (at most 100)
1314
+ */
1315
+ articleBatchSize?: number;
1316
+ /**
1317
+ * Maximum number of items to be returned. Used to stop iteration sooner than results run out
1318
+ */
1319
+ maxItems?: number;
1320
+ keywords?: string | string[] | QueryItems;
1321
+ conceptUri?: string | string[] | QueryItems;
1322
+ categoryUri?: string | string[] | QueryItems;
1323
+ sourceUri?: string | string[] | QueryItems;
1324
+ sourceLocationUri?: string | string[] | QueryItems;
1325
+ sourceGroupUri?: string | string[] | QueryItems;
1326
+ authorUri?: string | string[] | QueryItems;
1327
+ locationUri?: string | string[] | QueryItems;
1328
+ dateStart?: string | Date;
1329
+ dateEnd?: string | Date;
1330
+ dateMentionStart?: string | Date;
1331
+ dateMentionEnd?: string | Date;
1332
+ keywordsLoc?: "body" | "title" | "body,title";
1333
+ keywordSearchMode?: "simple" | "exact" | "phrase";
1334
+ startSourceRankPercentile?: number;
1335
+ endSourceRankPercentile?: number;
1336
+ /**
1337
+ * minimum value of the sentiment, that the returned articles should have. Range [-1, 1]. Note: setting the value will remove all articles that don't have a computed value for the sentiment (all articles that are not reported in English language)
1338
+ */
1339
+ minSentiment?: number;
1340
+ /**
1341
+ * maximum value of the sentiment, that the returned articles should have. Range [-1, 1]. Note: setting the value will remove all articles that don't have a computed value for the sentiment (all articles that are not reported in English language)
1342
+ */
1343
+ maxSentiment?: number;
1344
+ }
1345
+ interface RequestEventArticlesArguments {
1346
+ /**
1347
+ * page of the articles to return (1, 2, ...)
1348
+ */
1349
+ page?: number;
1350
+ /**
1351
+ * number of articles to return per page (at most 200)
1352
+ */
1353
+ count?: number;
1354
+ /**
1355
+ * a single language or an array of languages in which to return the articles
1356
+ */
1357
+ lang?: string | string[];
1358
+ /**
1359
+ * order in which event articles are sorted.
1360
+ */
1361
+ sortBy?: SortByOptions;
1362
+ /**
1363
+ * should the articles be sorted in ascending order (True) or descending (False) based on sortBy value
1364
+ */
1365
+ sortByAsc?: boolean;
1366
+ /**
1367
+ * what details should be included in the returned information
1368
+ */
1369
+ returnInfo?: ReturnInfo;
1370
+ keywords?: string | string[] | QueryItems;
1371
+ conceptUri?: string | string[] | QueryItems;
1372
+ categoryUri?: string | string[] | QueryItems;
1373
+ sourceUri?: string | string[] | QueryItems;
1374
+ sourceLocationUri?: string | string[] | QueryItems;
1375
+ sourceGroupUri?: string | string[] | QueryItems;
1376
+ authorUri?: string | string[] | QueryItems;
1377
+ locationUri?: string | string[] | QueryItems;
1378
+ dateStart?: string | Date;
1379
+ dateEnd?: string | Date;
1380
+ dateMentionStart?: string | Date;
1381
+ dateMentionEnd?: string | Date;
1382
+ keywordsLoc?: "body" | "title" | "body,title";
1383
+ startSourceRankPercentile?: number;
1384
+ endSourceRankPercentile?: number;
1385
+ }
1386
+ interface RequestEventArticleUriWgtsArguments {
1387
+ /**
1388
+ * a single language or an array of languages in which to return the articles
1389
+ */
1390
+ lang?: string | string[];
1391
+ /**
1392
+ * order in which event articles are sorted.
1393
+ */
1394
+ sortBy?: SortByOptions;
1395
+ /**
1396
+ * should the articles be sorted in ascending order (True) or descending (False) based on sortBy value
1397
+ */
1398
+ sortByAsc?: boolean;
1399
+ }
1400
+ interface RequestEventArticleTrendArguments {
1401
+ /**
1402
+ * languages for which to compute the trends
1403
+ */
1404
+ lang?: string | string[];
1405
+ /**
1406
+ * page of the articles for which to return information (1, 2, ...)
1407
+ */
1408
+ page?: number;
1409
+ /**
1410
+ * number of articles returned per page (at most 200)
1411
+ */
1412
+ count?: number;
1413
+ /**
1414
+ * ignore articles that have cos similarity to centroid lower than the specified value (-1 for no limit)
1415
+ */
1416
+ minArticleCosSim?: number;
1417
+ /**
1418
+ * what details should be included in the returned information
1419
+ */
1420
+ returnInfo?: ReturnInfo;
1421
+ }
1422
+ interface RequestEventSimilarEventsArguments {
1423
+ /**
1424
+ * array of concepts and their importance, e.g. [{ "uri": "http://en.wikipedia.org/wiki/Barack_Obama", "wgt": 100 }, ...]
1425
+ */
1426
+ conceptInfoList?: {
1427
+ uri: string;
1428
+ wgt: number;
1429
+ }[];
1430
+ /**
1431
+ * number of similar events to return (at most 50)
1432
+ */
1433
+ count?: number;
1434
+ dateStart?: string;
1435
+ dateEnd?: string;
1436
+ /**
1437
+ * for the returned events compute how they were trending (intensity of reporting) in different time periods
1438
+ */
1439
+ addArticleTrendInfo?: boolean;
1440
+ /**
1441
+ * time span that is used as a unit when computing the trending info
1442
+ */
1443
+ aggrHours?: number;
1444
+ /**
1445
+ * include also the tested event in the results (True or False)
1446
+ */
1447
+ includeSelf?: boolean;
1448
+ /**
1449
+ * what details should be included in the returned information
1450
+ */
1451
+ returnInfo?: ReturnInfo;
1452
+ }
1453
+ interface RequestEventSimilarStoriesArguments {
1454
+ /**
1455
+ * array of concepts and their importance, e.g. [{ "uri": "http://en.wikipedia.org/wiki/Barack_Obama", "wgt": 100 }, ...]
1456
+ */
1457
+ conceptInfoList?: {
1458
+ uri: string;
1459
+ wgt: number;
1460
+ }[];
1461
+ /**
1462
+ * number of similar stories to return (at most 5')
1463
+ */
1464
+ count?: number;
1465
+ /**
1466
+ * in what language(s) should be the returned stories
1467
+ */
1468
+ lang?: string | string[];
1469
+ /**
1470
+ * maximum difference in days between the returned stories and the tested event
1471
+ */
1472
+ maxDayDiff?: number;
1473
+ /**
1474
+ * what details should be included in the returned information
1475
+ */
1476
+ returnInfo?: ReturnInfo;
1477
+ }
1478
+ }
1479
+ export namespace QueryMentions {
1480
+ interface Arguments {
1481
+ eventTypeUri?: string | string[] | QueryItems;
1482
+ keywords?: string | string[] | QueryItems;
1483
+ conceptUri?: string | string[] | QueryItems;
1484
+ categoryUri?: string | string[] | QueryItems;
1485
+ sourceUri?: string | string[] | QueryItems;
1486
+ sourceLocationUri?: string | string[] | QueryItems;
1487
+ sourceGroupUri?: string | string[] | QueryItems;
1488
+ industryUri?: string | string[] | QueryItems;
1489
+ sdgUri?: string | string[] | QueryItems;
1490
+ sasbUri?: string | string[] | QueryItems;
1491
+ esgUri?: string | string[] | QueryItems;
1492
+ locationUri?: string | string[] | QueryItems;
1493
+ lang?: string | string[];
1494
+ dateStart?: string | Date;
1495
+ dateEnd?: string | Date;
1496
+ ignoreEventTypeUri?: string | string[] | QueryItems;
1497
+ ignoreKeywords?: string | string[] | QueryItems;
1498
+ ignoreConceptUri?: string | string[] | QueryItems;
1499
+ ignoreCategoryUri?: string | string[] | QueryItems;
1500
+ ignoreSourceUri?: string | string[] | QueryItems;
1501
+ ignoreSourceLocationUri?: string | string[] | QueryItems;
1502
+ ignoreSourceGroupUri?: string | string[] | QueryItems;
1503
+ ignoreIndustryUri?: string | string[] | QueryItems;
1504
+ ignoreSdgUri?: string | string[] | QueryItems;
1505
+ ignoreSasbUri?: string | string[] | QueryItems;
1506
+ ignoreEsgUri?: string | string[] | QueryItems;
1507
+ ignoreLocationUri?: string | string[] | QueryItems;
1508
+ ignoreLang?: string | string[];
1509
+ showDuplicates?: boolean;
1510
+ startSourceRankPercentile?: number;
1511
+ endSourceRankPercentile?: number;
1512
+ minSentiment?: number;
1513
+ maxSentiment?: number;
1514
+ minSentenceIndex?: number;
1515
+ maxSentenceIndex?: number;
1516
+ requestedResult?: RequestMentions;
1517
+ }
1518
+ interface IteratorArguments extends Arguments, RequestOptions {
1519
+ /**
1520
+ * how should the resulting mentions be sorted. Options: "none", "rel" (relevance), "date" (published date), "size", "socialScore"
1521
+ */
1522
+ sortBy?: "none" | "rel" | "date" | "size" | "socialScore";
1523
+ /**
1524
+ * should the results be sorted in ascending order (true) or descending (false)
1525
+ */
1526
+ sortByAsc?: boolean;
1527
+ /**
1528
+ * what details should be included in the returned information
1529
+ */
1530
+ returnInfo?: ReturnInfo;
1531
+ /**
1532
+ * maximum number of items to be returned. Used to stop iteration sooner than results run out
1533
+ */
1534
+ maxItems?: number;
1535
+ }
1536
+ interface RequestMentionsInfoArguments {
1537
+ /**
1538
+ * page of the results to return (1, 2, ...)
1539
+ */
1540
+ page?: number;
1541
+ /**
1542
+ * number of results to return per page
1543
+ */
1544
+ count?: number;
1545
+ /**
1546
+ * how mentions should be sorted
1547
+ */
1548
+ sortBy?: "none" | "rel" | "date" | "size" | "socialScore";
1549
+ /**
1550
+ * should the results be sorted in ascending order (true) or descending (false)
1551
+ */
1552
+ sortByAsc?: boolean;
1553
+ /**
1554
+ * what details should be included in the returned information
1555
+ */
1556
+ returnInfo?: ReturnInfo;
1557
+ }
1558
+ interface RequestMentionsUriWgtListArguments {
1559
+ /**
1560
+ * page of the results to return (1, 2, ...)
1561
+ */
1562
+ page?: number;
1563
+ /**
1564
+ * number of results to return per page
1565
+ */
1566
+ count?: number;
1567
+ /**
1568
+ * how should the resulting events be sorted. Options:
1569
+ * - none (no specific sorting),
1570
+ * - date (by event date),
1571
+ * - rel (relevance to the query),
1572
+ * - size (number of articles),
1573
+ * - socialScore (amount of shares in social media)
1574
+ */
1575
+ sortBy?: "none" | "rel" | "date" | "size" | "socialScore";
1576
+ /**
1577
+ * should the results be sorted in ascending order (true) or descending (false)
1578
+ */
1579
+ sortByAsc?: boolean;
1580
+ }
1581
+ interface RequestMentionsConceptAggrArguments {
1582
+ /**
1583
+ * number of top concepts to return
1584
+ */
1585
+ conceptCount?: number;
1586
+ /**
1587
+ * on what sample of results should the aggregate be computed
1588
+ */
1589
+ mentionsSampleSize?: number;
1590
+ /**
1591
+ * what details about the concepts should be included in the returned information
1592
+ */
1593
+ returnInfo?: ReturnInfo;
1594
+ /**
1595
+ * how should the top concepts be computed. Possible values are
1596
+ * "importance" (takes into account how frequently a concept is mentioned and how relevant it is in an mention),
1597
+ * "frequency" (ranks the concepts simply by how frequently the concept is mentioned in the results) and
1598
+ * "uniqueness" (computes what are the top concepts that are frequently mentioned in the results of your search query but less frequently mentioned in the news in general)
1599
+ */
1600
+ conceptScoring?: "importance" | "frequency" | "uniqueness";
1601
+ /**
1602
+ * if you wish to limit the number of top concepts per type (person, org, loc, wiki) then set this to some number.
1603
+ * If you want to get equal number of concepts for each type then set conceptCountPerType to conceptCount/4 (since there are 4 concept types)
1604
+ */
1605
+ conceptCountPerType?: number;
1606
+ }
1607
+ interface RequestMentionsCategoryAggrArguments {
1608
+ mentionsSampleSize?: number;
1609
+ returnInfo?: ReturnInfo;
1610
+ }
1611
+ interface RequestMentionsSourceAggrArguments {
1612
+ sourceCount?: number;
1613
+ normalizeBySourceArts?: boolean;
1614
+ returnInfo?: ReturnInfo;
1615
+ }
1616
+ interface RequestMentionsKeywordAggrArguments {
1617
+ mentionsSampleSize?: number;
1618
+ }
1619
+ interface RequestMentionsConceptGraphArguments {
1620
+ /**
1621
+ * number of top sources to return
1622
+ */
1623
+ conceptCount?: number;
1624
+ linkCount?: number;
1625
+ /**
1626
+ * on what sample of results should the aggregate be computed
1627
+ */
1628
+ mentionsSampleSize?: number;
1629
+ /**
1630
+ * what details about the concepts should be included in the returned information
1631
+ */
1632
+ returnInfo?: ReturnInfo;
1633
+ skipQueryConcepts?: boolean;
1634
+ }
1635
+ interface RequestMentionsRecentActivityArguments {
1636
+ /**
1637
+ * max mentions to return
1638
+ */
1639
+ maxMentionCount?: number;
1640
+ updatesAfterUri?: string;
1641
+ /**
1642
+ * the time after which the events were added/updated (returned by previous call to the same method)
1643
+ */
1644
+ updatesAfterTm?: string | Date;
1645
+ /**
1646
+ * how many minutes into the past should we check (set either this or updatesAfterTm property, but not both)
1647
+ */
1648
+ updatesAfterMinsAgo?: number;
1649
+ updatesUntilTm?: string | Date;
1650
+ updatesUntilMinsAgo?: number;
1651
+ /**
1652
+ * return only events that have a geographic location assigned to them
1653
+ */
1654
+ mandatorySourceLocation?: boolean;
1655
+ /**
1656
+ * what details should be included in the returned information
1657
+ */
1658
+ returnInfo?: ReturnInfo;
1659
+ }
1660
+ }
1661
+ export namespace QueryEvents {
1662
+ interface Arguments {
1663
+ /**
1664
+ * find events where articles mention all the specified keywords.
1665
+ * A single keyword/phrase can be provided as a string,
1666
+ * multiple keywords/phrases can be provided as a list of strings.
1667
+ * Use QueryItems.AND() if *all* provided keywords/phrases should be mentioned,
1668
+ * or QueryItems.OR() if *any* of the keywords/phrases should be mentioned.
1669
+ */
1670
+ keywords?: string | string[] | QueryItems;
1671
+ /**
1672
+ * find events where the concept with concept uri is important.
1673
+ * A single concept uri can be provided as a string, multiple concept uris
1674
+ * can be provided as a list of strings.
1675
+ * Use QueryItems.AND() if *all* provided concepts should be mentioned, or QueryItems.OR()
1676
+ * if *any* of the concepts should be mentioned.
1677
+ * To obtain a concept uri using a concept label use EventRegistry.getConceptUri().
1678
+ */
1679
+ conceptUri?: string | string[] | QueryItems;
1680
+ /**
1681
+ * find events that are assigned into a particular category.
1682
+ * A single category uri can be provided as a string, multiple category uris
1683
+ * can be provided as a list of strings.
1684
+ * Use QueryItems.AND() if *all* provided categories should be mentioned, or QueryItems.OR()
1685
+ * if *any* of the categories should be mentioned.
1686
+ * A category uri can be obtained from a category name using EventRegistry.getCategoryUri().
1687
+ */
1688
+ categoryUri?: string | string[] | QueryItems;
1689
+ /**
1690
+ * find events that contain one or more articles that have been written by a news source sourceUri.
1691
+ * If multiple sources should be considered use QueryItems.OR() to provide the list of sources.
1692
+ * Source uri for a given news source name can be obtained using EventRegistry.getNewsSourceUri().
1693
+ */
1694
+ sourceUri?: string | string[] | QueryItems;
1695
+ /**
1696
+ * find events that contain one or more articles that were written
1697
+ * by news sources located in the given geographic location.
1698
+ * If multiple source locations are provided, then put them into a list inside QueryItems.OR()
1699
+ * Location uri can either be a city or a country.
1700
+ * Location uri for a given name can be obtained using EventRegistry.getLocationUri().
1701
+ */
1702
+ sourceLocationUri?: string | string[] | QueryItems;
1703
+ /**
1704
+ * find events that contain one or more articles that were written
1705
+ * by news sources that are assigned to the specified source group.
1706
+ * If multiple source groups are provided, then put them into a list inside QueryItems.OR()
1707
+ * Source group uri for a given name can be obtained using EventRegistry.getSourceGroupUri().
1708
+ */
1709
+ sourceGroupUri?: string | string[] | QueryItems;
1710
+ /**
1711
+ * find events that contain one or more articles that have been written by a specific author.
1712
+ * If multiple authors should be considered use QueryItems.OR() or QueryItems.AND() to provide the list of authors.
1713
+ * Author uri for a given author name can be obtained using EventRegistry.getAuthorUri().
1714
+ */
1715
+ authorUri?: string | string[] | QueryItems;
1716
+ /**
1717
+ * find events that occurred at a particular location.
1718
+ * If value can be a string or a list of strings provided in QueryItems.OR().
1719
+ * Location uri can either be a city or a country.
1720
+ * Location uri for a given name can be obtained using EventRegistry.getLocationUri().
1721
+ */
1722
+ locationUri?: string | string[] | QueryItems;
1723
+ /**
1724
+ * find events for which we found articles in the specified language.
1725
+ * If more than one language is specified, resulting events has to be reported in *any* of the languages.
1726
+ */
1727
+ lang?: string | string[];
1728
+ /**
1729
+ * find events that occurred on or after dateStart. Date should be provided in YYYY-MM-DD format.
1730
+ */
1731
+ dateStart?: string | Date;
1732
+ /**
1733
+ * find events that occurred before or on dateEnd. Date should be provided in YYYY-MM-DD format.
1734
+ */
1735
+ dateEnd?: string | Date;
1736
+ /**
1737
+ * find events where the average date of the articles about this event is on or after this date. Date should be provided in YYYY-MM-DD format, datetime.time or datetime.datetime.
1738
+ */
1739
+ reportingDateStart?: string | Date;
1740
+ /**
1741
+ * find events where the average date of the articles about this event is on or before this date. Date should be provided in YYYY-MM-DD format, datetime.time or datetime.datetime.
1742
+ */
1743
+ reportingDateEnd?: string | Date;
1744
+ /**
1745
+ * minimum value of the sentiment, that the returned events should have. Range [-1, 1]. Note: setting the value will remove all events that don't have a computed value for the sentiment (all events that are not reported in English language)
1746
+ */
1747
+ minSentiment?: number;
1748
+ /**
1749
+ * maximum value of the sentiment, that the returned events should have. Range [-1, 1]. Note: setting the value will remove all events that don't have a computed value for the sentiment (all events that are not reported in English language)
1750
+ */
1751
+ maxSentiment?: number;
1752
+ /**
1753
+ * find events that have been reported in at least minArticlesInEvent articles (regardless of language)
1754
+ */
1755
+ minArticlesInEvent?: number;
1756
+ /**
1757
+ * find events that have not been reported in more than maxArticlesInEvent articles (regardless of language)
1758
+ */
1759
+ maxArticlesInEvent?: number;
1760
+ /**
1761
+ * find events where articles explicitly mention a date that is equal or greater than dateMentionStart.
1762
+ */
1763
+ dateMentionStart?: string | Date;
1764
+ /**
1765
+ * find events where articles explicitly mention a date that is lower or equal to dateMentionEnd.
1766
+ */
1767
+ dateMentionEnd?: string | Date;
1768
+ /**
1769
+ * ignore events where articles about the event mention any of the provided keywords
1770
+ */
1771
+ ignoreKeywords?: string | string[] | QueryItems;
1772
+ /**
1773
+ * ignore events that are about any of the provided concepts
1774
+ */
1775
+ ignoreConceptUri?: string | string[] | QueryItems;
1776
+ /**
1777
+ * ignore events that are about any of the provided categories
1778
+ */
1779
+ ignoreCategoryUri?: string | string[] | QueryItems;
1780
+ /**
1781
+ * ignore events that have have articles which have been written by any of the specified news sources
1782
+ */
1783
+ ignoreSourceUri?: string | string[] | QueryItems;
1784
+ /**
1785
+ * ignore events that have articles which been written by sources located at *any* of the specified locations
1786
+ */
1787
+ ignoreSourceLocationUri?: string | string[] | QueryItems;
1788
+ /**
1789
+ * ignore events that have articles which have been written by sources in *any* of the specified source groups
1790
+ */
1791
+ ignoreSourceGroupUri?: string | string[] | QueryItems;
1792
+ /**
1793
+ * ignore articles that were written by *any* of the specified authors
1794
+ */
1795
+ ignoreAuthorUri?: string | string[] | QueryItems;
1796
+ /**
1797
+ * ignore events that occurred in any of the provided locations. A location can be a city or a place
1798
+ */
1799
+ ignoreLocationUri?: string | string[] | QueryItems;
1800
+ /**
1801
+ * ignore events that are reported in any of the provided languages
1802
+ */
1803
+ ignoreLang?: string | string[];
1804
+ /**
1805
+ * what data should be used when searching using the keywords provided by "keywords" parameter.
1806
+ */
1807
+ keywordsLoc?: "body" | "title" | "body,title";
1808
+ /**
1809
+ * what data should be used when searching using the keywords provided by "ignoreKeywords" parameter.
1810
+ */
1811
+ ignoreKeywordsLoc?: "body" | "title" | "body,title";
1812
+ keywordSearchMode?: "simple" | "exact" | "phrase";
1813
+ ignoreKeywordSearchMode?: "simple" | "exact" | "phrase";
1814
+ /**
1815
+ * when a category is specified using categoryUri, should also all subcategories be included?
1816
+ */
1817
+ categoryIncludeSub?: boolean;
1818
+ /**
1819
+ * when a category is specified using ignoreCategoryUri, should also all subcategories be included?
1820
+ */
1821
+ ignoreCategoryIncludeSub?: boolean;
1822
+ /**
1823
+ * the information to return as the result of the query. By default return the list of matching events
1824
+ */
1825
+ requestedResult?: RequestEvents;
1826
+ }
1827
+ interface IteratorArguments extends Arguments, RequestOptions {
1828
+ /**
1829
+ * how should the resulting events be sorted. Options:
1830
+ * - none (no specific sorting),
1831
+ * - date (by event date),
1832
+ * - rel (relevance to the query),
1833
+ * - size (number of articles),
1834
+ * - socialScore (amount of shares in social media)
1835
+ */
1836
+ sortBy?: "none" | "rel" | "date" | "size" | "socialScore";
1837
+ /**
1838
+ * should the results be sorted in ascending order (true) or descending (false)
1839
+ */
1840
+ sortByAsc?: boolean;
1841
+ /**
1842
+ * number of events to download at once (we are not downloading event by event)
1843
+ */
1844
+ eventBatchSize?: number;
1845
+ /**
1846
+ * maximum number of items to be returned. Used to stop iteration sooner than results run out
1847
+ */
1848
+ maxItems?: number;
1849
+ returnInfo?: ReturnInfo;
1850
+ }
1851
+ interface RequestEventsInfoArguments {
1852
+ /**
1853
+ * page of the results to return (1, 2, ...)
1854
+ */
1855
+ page?: number;
1856
+ /**
1857
+ * number of results to return per page
1858
+ */
1859
+ count?: number;
1860
+ /**
1861
+ * how should the resulting events be sorted. Options:
1862
+ * - none (no specific sorting),
1863
+ * - date (by event date),
1864
+ * - rel (relevance to the query),
1865
+ * - size (number of articles),
1866
+ * - socialScore (amount of shares in social media)
1867
+ */
1868
+ sortBy?: "none" | "rel" | "date" | "size" | "socialScore";
1869
+ /**
1870
+ * should the results be sorted in ascending order (true) or descending (false)
1871
+ */
1872
+ sortByAsc?: boolean;
1873
+ /**
1874
+ * what details should be included in the returned information
1875
+ */
1876
+ returnInfo?: ReturnInfo;
1877
+ }
1878
+ interface RequestEventsUriListArguments {
1879
+ /**
1880
+ * page of the results to return (1, 2, ...)
1881
+ */
1882
+ page?: number;
1883
+ /**
1884
+ * number of results to return per page
1885
+ */
1886
+ count?: number;
1887
+ /**
1888
+ * how should the resulting events be sorted. Options:
1889
+ * - none (no specific sorting),
1890
+ * - date (by event date),
1891
+ * - rel (relevance to the query),
1892
+ * - size (number of articles),
1893
+ * - socialScore (amount of shares in social media)
1894
+ */
1895
+ sortBy?: "none" | "rel" | "date" | "size" | "socialScore";
1896
+ /**
1897
+ * should the results be sorted in ascending order (true) or descending (false)
1898
+ */
1899
+ sortByAsc?: boolean;
1900
+ }
1901
+ interface RequestEventsUriWgtListArguments {
1902
+ /**
1903
+ * page of the results to return (1, 2, ...)
1904
+ */
1905
+ page?: number;
1906
+ /**
1907
+ * number of results to return per page
1908
+ */
1909
+ count?: number;
1910
+ /**
1911
+ * how should the resulting events be sorted. Options:
1912
+ * - none (no specific sorting),
1913
+ * - date (by event date),
1914
+ * - rel (relevance to the query),
1915
+ * - size (number of articles),
1916
+ * - socialScore (amount of shares in social media)
1917
+ */
1918
+ sortBy?: "none" | "rel" | "date" | "size" | "socialScore";
1919
+ /**
1920
+ * should the results be sorted in ascending order (true) or descending (false)
1921
+ */
1922
+ sortByAsc?: boolean;
1923
+ }
1924
+ interface RequestEventsLocAggrArguments {
1925
+ /**
1926
+ * sample of events to use to compute the location aggregate
1927
+ */
1928
+ eventsSampleSize?: number;
1929
+ /**
1930
+ * what details (about locations) should be included in the returned information
1931
+ */
1932
+ returnInfo?: ReturnInfo;
1933
+ }
1934
+ interface RequestEventsLocTimeAggrArguments {
1935
+ /**
1936
+ * sample of events to use to compute the location aggregate
1937
+ */
1938
+ eventsSampleSize?: number;
1939
+ /**
1940
+ * what details (about locations) should be included in the returned information
1941
+ */
1942
+ returnInfo?: ReturnInfo;
1943
+ }
1944
+ interface RequestEventsConceptAggrArguments {
1945
+ /**
1946
+ * number of top concepts to return
1947
+ */
1948
+ conceptCount?: number;
1949
+ /**
1950
+ * on what sample of results should the aggregate be computed
1951
+ */
1952
+ eventsSampleSize?: number;
1953
+ /**
1954
+ * what details about the concepts should be included in the returned information
1955
+ */
1956
+ returnInfo?: ReturnInfo;
1957
+ }
1958
+ interface RequestEventsConceptGraphArguments {
1959
+ /**
1960
+ * number of top concepts to return
1961
+ */
1962
+ conceptCount?: number;
1963
+ /**
1964
+ * number of links between the concepts to return
1965
+ */
1966
+ linkCount?: number;
1967
+ /**
1968
+ * on what sample of results should the aggregate be computed
1969
+ */
1970
+ eventsSampleSize?: number;
1971
+ /**
1972
+ * what details about the concepts should be included in the returned information
1973
+ */
1974
+ returnInfo?: ReturnInfo;
1975
+ }
1976
+ interface RequestEventsConceptMatrixArguments {
1977
+ /**
1978
+ * number of top concepts to return
1979
+ */
1980
+ conceptCount?: number;
1981
+ /**
1982
+ * how should the interestingness between the selected pairs of concepts be computed. Options: pmi (pointwise mutual information), pairTfIdf (pair frequence * IDF of individual concepts), chiSquare
1983
+ */
1984
+ measure?: "pmi" | "pairTfIdf" | "chiSquare";
1985
+ /**
1986
+ * on what sample of results should the aggregate be computed
1987
+ */
1988
+ eventsSampleSize?: number;
1989
+ /**
1990
+ * what details about the concepts should be included in the returned information
1991
+ */
1992
+ returnInfo?: ReturnInfo;
1993
+ }
1994
+ interface RequestEventsConceptTrendsArguments {
1995
+ /**
1996
+ * number of top concepts to return
1997
+ */
1998
+ conceptCount?: number;
1999
+ /**
2000
+ * what details about the concepts should be included in the returned information
2001
+ */
2002
+ returnInfo?: ReturnInfo;
2003
+ /**
2004
+ * list of concept URIs for which to return trending information. If empty, then top concepts will be automatically computed.
2005
+ */
2006
+ conceptUris?: string[];
2007
+ }
2008
+ interface RequestEventsSourceAggrArguments {
2009
+ /**
2010
+ * number of top sources to return
2011
+ */
2012
+ sourceCount?: number;
2013
+ /**
2014
+ * on what sample of results should the aggregate be computed
2015
+ */
2016
+ eventsSampleSize?: number;
2017
+ /**
2018
+ * what details about the concepts should be included in the returned information
2019
+ */
2020
+ returnInfo?: ReturnInfo;
2021
+ }
2022
+ interface RequestEventsDateMentionAggrArguments {
2023
+ /**
2024
+ * ignore events that don't have a date that is more than this number of days apart from the tested event
2025
+ */
2026
+ minDaysApart?: number;
2027
+ /**
2028
+ * report only dates that are mentioned at least this number of times
2029
+ */
2030
+ minDateMentionCount?: number;
2031
+ /**
2032
+ * on what sample of results should the aggregate be computed
2033
+ */
2034
+ eventsSampleSize?: number;
2035
+ /**
2036
+ * what details about the concepts should be included in the returned information
2037
+ */
2038
+ returnInfo?: ReturnInfo;
2039
+ }
2040
+ interface RequestEventsEventClustersArguments {
2041
+ /**
2042
+ * number of keywords to report in each of the clusters
2043
+ */
2044
+ keywordCount?: number;
2045
+ /**
2046
+ * try to cluster at most this number of events
2047
+ */
2048
+ maxEventsToCluster?: number;
2049
+ /**
2050
+ * what details about the concepts should be included in the returned information
2051
+ */
2052
+ returnInfo?: ReturnInfo;
2053
+ }
2054
+ interface RequestEventsRecentActivityArguments {
2055
+ /**
2056
+ * max events to return
2057
+ */
2058
+ maxEventCount?: number;
2059
+ /**
2060
+ * the time after which the events were added/updated (returned by previous call to the same method)
2061
+ */
2062
+ updatesAfterTm?: string | Date;
2063
+ /**
2064
+ * how many minutes into the past should we check (set either this or updatesAfterTm property, but not both)
2065
+ */
2066
+ updatesAfterMinsAgo?: number;
2067
+ /**
2068
+ * return only events that have a geographic location assigned to them
2069
+ */
2070
+ mandatoryLocation?: boolean;
2071
+ /**
2072
+ * the minimum avg cos sim of the events to be returned (events with lower quality should not be included)
2073
+ */
2074
+ minAvgCosSim?: number;
2075
+ /**
2076
+ * what details should be included in the returned information
2077
+ */
2078
+ returnInfo?: ReturnInfo;
2079
+ }
2080
+ interface RequestEventsBreakingEventsArguments {
2081
+ /**
2082
+ * page of the results to return (1, 2, ...)
2083
+ */
2084
+ page?: number;
2085
+ /**
2086
+ * max events to return (at most 50)
2087
+ */
2088
+ count?: number;
2089
+ /**
2090
+ * the minimum score of "breakingness" of the events to be returned
2091
+ */
2092
+ minBreakingScore?: number;
2093
+ /**
2094
+ * what details should be included in the returned information
2095
+ */
2096
+ returnInfo?: ReturnInfo;
2097
+ }
2098
+ }
2099
+ export namespace ReturnInfo {
2100
+ /**
2101
+ * What information about an article should be returned by the API call
2102
+ */
2103
+ interface ArticleInfo {
2104
+ /**
2105
+ * max length of the article body (use -1 for full body, 0 for empty)
2106
+ */
2107
+ bodyLen?: number;
2108
+ /**
2109
+ * core article information -
2110
+ */
2111
+ basicInfo?: boolean;
2112
+ /**
2113
+ * article title
2114
+ */
2115
+ title?: boolean;
2116
+ /**
2117
+ * article body
2118
+ */
2119
+ body?: boolean;
2120
+ /**
2121
+ * article url
2122
+ */
2123
+ url?: boolean;
2124
+ /**
2125
+ * uri of the event to which the article belongs
2126
+ */
2127
+ eventUri?: boolean;
2128
+ /**
2129
+ * the list of authors of the news article
2130
+ */
2131
+ authors?: boolean;
2132
+ /**
2133
+ * the list of concepts mentioned in the article
2134
+ */
2135
+ concepts?: boolean;
2136
+ /**
2137
+ * the list of categories assigned to the article
2138
+ */
2139
+ categories?: boolean;
2140
+ /**
2141
+ * the list of urls of links identified in the article body
2142
+ */
2143
+ links?: boolean;
2144
+ /**
2145
+ * the list of videos assigned to the article
2146
+ */
2147
+ videos?: boolean;
2148
+ /**
2149
+ * url to the image associated with the article
2150
+ */
2151
+ image?: boolean;
2152
+ /**
2153
+ * information about the number of times the article was shared on facebook and linkedin, instagram, ...
2154
+ */
2155
+ socialScore?: boolean;
2156
+ /**
2157
+ * sentiment about the article
2158
+ */
2159
+ sentiment?: boolean;
2160
+ /**
2161
+ * the geographic location that the event mentioned in the article is about
2162
+ */
2163
+ location?: boolean;
2164
+ /**
2165
+ * the dates when the articles was crawled and the date when it was published (based on the rss feed date)
2166
+ */
2167
+ dates?: boolean;
2168
+ /**
2169
+ * the list of dates found mentioned in the article
2170
+ */
2171
+ extractedDates?: boolean;
2172
+ /**
2173
+ * if the article is a duplicate, this will provide information about the original article
2174
+ */
2175
+ originalArticle?: boolean;
2176
+ /**
2177
+ * uri of the story (cluster) to which the article belongs
2178
+ */
2179
+ storyUri?: boolean;
2180
+ [name: string]: boolean | string | number | undefined;
2181
+ }
2182
+ /**
2183
+ * What information about an article should be returned by the API call
2184
+ */
2185
+ interface ArticleInfoFlags {
2186
+ /**
2187
+ * max length of the article body (use -1 for full body, 0 for empty)
2188
+ */
2189
+ ArticleBodyLen?: number;
2190
+ /**
2191
+ * core article information -
2192
+ */
2193
+ IncludeArticleBasicInfo?: boolean;
2194
+ /**
2195
+ * article title
2196
+ */
2197
+ IncludeArticleTitle?: boolean;
2198
+ /**
2199
+ * article body
2200
+ */
2201
+ IncludeArticleBody?: boolean;
2202
+ /**
2203
+ * article url
2204
+ */
2205
+ IncludeArticleUrl?: boolean;
2206
+ /**
2207
+ * uri of the event to which the article belongs
2208
+ */
2209
+ IncludeArticleEventUri?: boolean;
2210
+ /**
2211
+ * the list of concepts mentioned in the article
2212
+ */
2213
+ IncludeArticleConcepts?: boolean;
2214
+ /**
2215
+ * the list of categories assigned to the article
2216
+ */
2217
+ IncludeArticleCategories?: boolean;
2218
+ /**
2219
+ * the list of urls of links identified in the article body
2220
+ */
2221
+ IncludeArticleLinks?: boolean;
2222
+ /**
2223
+ * the list of videos assigned to the article
2224
+ */
2225
+ IncludeArticleVideos?: boolean;
2226
+ /**
2227
+ * url to the image associated with the article
2228
+ */
2229
+ IncludeArticleImage?: boolean;
2230
+ /**
2231
+ * information about the number of times the article was shared on facebook and linkedin, instagram, ...
2232
+ */
2233
+ IncludeArticleSocialScore?: boolean;
2234
+ /**
2235
+ * sentiment about the article
2236
+ */
2237
+ IncludeArticleSentiment?: boolean;
2238
+ /**
2239
+ * the geographic location that the event mentioned in the article is about
2240
+ */
2241
+ IncludeArticleLocation?: boolean;
2242
+ /**
2243
+ * the dates when the articles was crawled and the date when it was published (based on the rss feed date)
2244
+ */
2245
+ IncludeArticleDates?: boolean;
2246
+ /**
2247
+ * the list of dates found mentioned in the article
2248
+ */
2249
+ IncludeArticleExtractedDates?: boolean;
2250
+ /**
2251
+ * the list of articles that are a copy of this article
2252
+ */
2253
+ IncludeArticleDuplicateList?: boolean;
2254
+ /**
2255
+ * if the article is a duplicate, this will provide information about the original article
2256
+ */
2257
+ IncludeArticleOriginalArticle?: boolean;
2258
+ /**
2259
+ * uri of the story (cluster) to which the article belongs
2260
+ */
2261
+ IncludeArticleStoryUri?: boolean;
2262
+ }
2263
+ /**
2264
+ * What information about a story (cluster of articles) should be returned by the API call
2265
+ */
2266
+ interface StoryInfoFlags {
2267
+ /**
2268
+ * core stats about the story
2269
+ */
2270
+ IncludeStoryBasicStats?: boolean;
2271
+ /**
2272
+ * geographic location that the story is about
2273
+ */
2274
+ IncludeStoryLocation?: boolean;
2275
+ /**
2276
+ * date of the story
2277
+ */
2278
+ IncludeStoryDate?: boolean;
2279
+ /**
2280
+ * title of the story
2281
+ */
2282
+ IncludeStoryTitle?: boolean;
2283
+ /**
2284
+ * summary of the story
2285
+ */
2286
+ IncludeStorySummary?: boolean;
2287
+ /**
2288
+ * set of concepts associated with the story
2289
+ */
2290
+ IncludeStoryConcepts?: boolean;
2291
+ /**
2292
+ * categories associated with the story
2293
+ */
2294
+ IncludeStoryCategories?: boolean;
2295
+ /**
2296
+ * the article that is closest to the center of the cluster of articles assigned to the story
2297
+ */
2298
+ IncludeStoryMedoidArticle?: boolean;
2299
+ /**
2300
+ * dates that were frequently identified in the articles belonging to the story
2301
+ */
2302
+ IncludeStoryCommonDates?: boolean;
2303
+ /**
2304
+ * score computed based on how frequently the articles in the story were shared on social media
2305
+ */
2306
+ IncludeStorySocialScore?: boolean;
2307
+ /**
2308
+ * number of images to be returned for a story
2309
+ */
2310
+ StoryImageCount?: number;
2311
+ }
2312
+ /**
2313
+ * What information about a story (cluster of articles) should be returned by the API call
2314
+ */
2315
+ interface StoryInfo {
2316
+ /**
2317
+ * core stats about the story
2318
+ */
2319
+ basicStats?: boolean;
2320
+ /**
2321
+ * geographic location that the story is about
2322
+ */
2323
+ location?: boolean;
2324
+ /**
2325
+ * date of the story
2326
+ */
2327
+ date?: boolean;
2328
+ /**
2329
+ * title of the story
2330
+ */
2331
+ title?: boolean;
2332
+ /**
2333
+ * summary of the story
2334
+ */
2335
+ summary?: boolean;
2336
+ /**
2337
+ * set of concepts associated with the story
2338
+ */
2339
+ concepts?: boolean;
2340
+ /**
2341
+ * categories associated with the story
2342
+ */
2343
+ categories?: boolean;
2344
+ /**
2345
+ * the article that is closest to the center of the cluster of articles assigned to the story
2346
+ */
2347
+ medoidArticle?: boolean;
2348
+ /**
2349
+ * the article from which we have extracted the title and summary for the story
2350
+ */
2351
+ infoArticle?: boolean;
2352
+ /**
2353
+ * dates that were frequently identified in the articles belonging to the story
2354
+ */
2355
+ commonDates?: boolean;
2356
+ /**
2357
+ * score computed based on how frequently the articles in the story were shared on social media
2358
+ */
2359
+ socialScore?: boolean;
2360
+ /**
2361
+ * number of images to be returned for a story
2362
+ */
2363
+ imageCount?: number;
2364
+ [name: string]: boolean | string | number | undefined;
2365
+ }
2366
+ /**
2367
+ * What information about an event should be returned by the API call
2368
+ */
2369
+ interface EventInfoFlags {
2370
+ /**
2371
+ * return the title of the event
2372
+ */
2373
+ IncludeEventTitle?: boolean;
2374
+ /**
2375
+ * return the summary of the event
2376
+ */
2377
+ IncludeEventSummary?: boolean;
2378
+ /**
2379
+ * return the number of articles that are assigned to the event
2380
+ */
2381
+ IncludeEventArticleCounts?: boolean;
2382
+ /**
2383
+ * return information about the main concepts related to the event
2384
+ */
2385
+ IncludeEventConcepts?: boolean;
2386
+ /**
2387
+ * return information about the categories related to the event
2388
+ */
2389
+ IncludeEventCategories?: boolean;
2390
+ /**
2391
+ * return the location where the event occurred
2392
+ */
2393
+ IncludeEventLocation?: boolean;
2394
+ /**
2395
+ * return information about the date of the event
2396
+ */
2397
+ IncludeEventDate?: boolean;
2398
+ /**
2399
+ * return the dates that were commonly found in the articles about the event
2400
+ */
2401
+ IncludeEventCommonDates?: boolean;
2402
+ /**
2403
+ * return the list of stories (clusters) that are about the event
2404
+ */
2405
+ IncludeEventStories?: boolean;
2406
+ /**
2407
+ * score computed based on how frequently the articles in the event were shared on social media
2408
+ */
2409
+ IncludeEventSocialScore?: boolean;
2410
+ /**
2411
+ * number of images to be returned for an event
2412
+ */
2413
+ EventImageCount?: number;
2414
+ }
2415
+ /**
2416
+ * What information about an event should be returned by the API call
2417
+ */
2418
+ interface EventInfo {
2419
+ /**
2420
+ * return the title of the event
2421
+ */
2422
+ title?: boolean;
2423
+ /**
2424
+ * return the summary of the event
2425
+ */
2426
+ summary?: boolean;
2427
+ /**
2428
+ * return the number of articles that are assigned to the event
2429
+ */
2430
+ articleCounts?: boolean;
2431
+ /**
2432
+ * return information about the main concepts related to the event
2433
+ */
2434
+ concepts?: boolean;
2435
+ /**
2436
+ * return information about the categories related to the event
2437
+ */
2438
+ categories?: boolean;
2439
+ /**
2440
+ * return information about the date of the event
2441
+ */
2442
+ date?: boolean;
2443
+ /**
2444
+ * return the dates that were commonly found in the articles about the event
2445
+ */
2446
+ commonDates?: boolean;
2447
+ /**
2448
+ * return for each language the article from which we have extracted the summary and title for event for that language
2449
+ */
2450
+ articleInfo?: boolean;
2451
+ /**
2452
+ * return the list of stories (clusters) that are about the event
2453
+ */
2454
+ stories?: boolean;
2455
+ /**
2456
+ * score computed based on how frequently the articles in the event were shared on social media
2457
+ */
2458
+ socialScore?: boolean;
2459
+ /**
2460
+ * number of images to be returned for an event
2461
+ */
2462
+ imageCount?: number;
2463
+ [name: string]: boolean | string | number | undefined;
2464
+ }
2465
+ /**
2466
+ * What information about a news source should be returned by the API call
2467
+ */
2468
+ interface SourceInfoFlags {
2469
+ /**
2470
+ * title of the news source
2471
+ */
2472
+ IncludeSourceTitle?: boolean;
2473
+ /**
2474
+ * description of the news source
2475
+ */
2476
+ IncludeSourceDescription?: boolean;
2477
+ /**
2478
+ * geographic location of the news source
2479
+ */
2480
+ IncludeSourceLocation?: boolean;
2481
+ /**
2482
+ * a set of rankings for the news source
2483
+ */
2484
+ IncludeSourceRanking?: boolean;
2485
+ /**
2486
+ * different images associated with the news source
2487
+ */
2488
+ IncludeSourceImage?: boolean;
2489
+ /**
2490
+ * different social media accounts used by the news source
2491
+ */
2492
+ IncludeSourceSocialMedia?: boolean;
2493
+ }
2494
+ /**
2495
+ * What information about a news source should be returned by the API call
2496
+ */
2497
+ interface SourceInfo {
2498
+ /**
2499
+ * title of the news source
2500
+ */
2501
+ title?: boolean;
2502
+ /**
2503
+ * description of the news source
2504
+ */
2505
+ description?: boolean;
2506
+ /**
2507
+ * geographic location of the news source
2508
+ */
2509
+ location?: boolean;
2510
+ /**
2511
+ * a set of rankings for the news source
2512
+ */
2513
+ ranking?: boolean;
2514
+ /**
2515
+ * different images associated with the news source
2516
+ */
2517
+ image?: boolean;
2518
+ /**
2519
+ * the number of articles from this news source that are stored in Event Registry
2520
+ */
2521
+ articleCount?: boolean;
2522
+ /**
2523
+ * different social media accounts used by the news source
2524
+ */
2525
+ socialMedia?: boolean;
2526
+ /**
2527
+ * info about the names of the source groups to which the source belongs to
2528
+ */
2529
+ sourceGroups?: boolean;
2530
+ [name: string]: boolean | string | number | undefined;
2531
+ }
2532
+ /**
2533
+ * What information about a category should be returned by the API call
2534
+ */
2535
+ interface CategoryInfoFlags {
2536
+ IncludeCategoryTrendingScore?: boolean;
2537
+ }
2538
+ /**
2539
+ * What information about a category should be returned by the API call
2540
+ */
2541
+ interface CategoryInfo {
2542
+ trendingScore?: boolean;
2543
+ [name: string]: boolean | string | number | undefined;
2544
+ }
2545
+ interface ConceptInfoFlags {
2546
+ ConceptType?: ConceptType;
2547
+ lang?: string | string[];
2548
+ IncludeConceptLabel?: boolean;
2549
+ IncludeConceptSynonyms?: boolean;
2550
+ IncludeConceptImage?: boolean;
2551
+ IncludeConceptDescription?: boolean;
2552
+ IncludeConceptTrendingScore?: boolean;
2553
+ MaxConceptsPerType?: number;
2554
+ }
2555
+ interface ConceptInfo {
2556
+ type?: ConceptType | ConceptType[];
2557
+ lang?: string | string[];
2558
+ label?: boolean;
2559
+ synonyms?: boolean;
2560
+ image?: boolean;
2561
+ description?: boolean;
2562
+ trendingScore?: boolean;
2563
+ maxConceptsPerType?: number;
2564
+ [name: string]: boolean | string | number | (boolean | string | number)[] | undefined;
2565
+ }
2566
+ interface LocationInfoFlags {
2567
+ label?: boolean;
2568
+ wikiUri?: boolean;
2569
+ geoNamesId?: boolean;
2570
+ population?: boolean;
2571
+ geoLocation?: boolean;
2572
+ countryArea?: boolean;
2573
+ countryDetails?: boolean;
2574
+ countryContinent?: boolean;
2575
+ placeFeatureCode?: boolean;
2576
+ placeCountry?: boolean;
2577
+ }
2578
+ interface LocationInfo {
2579
+ label?: boolean;
2580
+ wikiUri?: boolean;
2581
+ geoNamesId?: boolean;
2582
+ population?: boolean;
2583
+ geoLocation?: boolean;
2584
+ countryArea?: boolean;
2585
+ countryDetails?: boolean;
2586
+ countryContinent?: boolean;
2587
+ placeFeatureCode?: boolean;
2588
+ placeCountry?: boolean;
2589
+ [name: string]: boolean | string | number | undefined;
2590
+ }
2591
+ interface ConceptClassInfoFlags {
2592
+ IncludeConceptClassParentLabels?: boolean;
2593
+ IncludeConceptClassConcepts?: boolean;
2594
+ }
2595
+ interface ConceptClassInfo {
2596
+ parentLabels?: boolean;
2597
+ concepts?: boolean;
2598
+ [name: string]: boolean | string | number | undefined;
2599
+ }
2600
+ interface ConceptFolderInfoFlags {
2601
+ IncludeConceptFolderDefinition?: boolean;
2602
+ IncludeConceptFolderOwner?: boolean;
2603
+ }
2604
+ interface ConceptFolderInfo {
2605
+ definition?: boolean;
2606
+ owner?: boolean;
2607
+ [name: string]: boolean | string | number | undefined;
2608
+ }
2609
+ }
2610
+ export {};
2611
+ }