newscatcher-catchall-sdk 1.3.1 → 1.4.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 (307) hide show
  1. package/README.md +61 -1
  2. package/dist/cjs/BaseClient.js +2 -2
  3. package/dist/cjs/Client.d.ts +6 -0
  4. package/dist/cjs/Client.js +16 -6
  5. package/dist/cjs/api/errors/BadRequestError.d.ts +1 -2
  6. package/dist/cjs/api/resources/datasets/client/Client.d.ts +245 -0
  7. package/dist/cjs/api/resources/datasets/client/Client.js +779 -0
  8. package/dist/cjs/api/resources/datasets/client/index.d.ts +1 -0
  9. package/dist/cjs/api/resources/datasets/client/index.js +17 -0
  10. package/dist/cjs/api/resources/datasets/client/requests/AddEntitiesToDatasetRequest.d.ts +15 -0
  11. package/dist/cjs/api/resources/datasets/client/requests/AddEntitiesToDatasetRequest.js +3 -0
  12. package/dist/cjs/api/resources/datasets/client/requests/CreateDatasetFromCsvRequest.d.ts +16 -0
  13. package/dist/cjs/api/resources/datasets/client/requests/CreateDatasetFromCsvRequest.js +3 -0
  14. package/dist/cjs/api/resources/datasets/client/requests/CreateDatasetRequest.d.ts +16 -0
  15. package/dist/cjs/api/resources/datasets/client/requests/CreateDatasetRequest.js +3 -0
  16. package/dist/cjs/api/resources/datasets/client/requests/DeleteDatasetRequest.d.ts +10 -0
  17. package/dist/cjs/api/resources/datasets/client/requests/DeleteDatasetRequest.js +3 -0
  18. package/dist/cjs/api/resources/datasets/client/requests/GetDatasetRequest.d.ts +10 -0
  19. package/dist/cjs/api/resources/datasets/client/requests/GetDatasetRequest.js +3 -0
  20. package/dist/cjs/api/resources/datasets/client/requests/GetDatasetStatusHistoryRequest.d.ts +10 -0
  21. package/dist/cjs/api/resources/datasets/client/requests/GetDatasetStatusHistoryRequest.js +3 -0
  22. package/dist/cjs/api/resources/datasets/client/requests/ListDatasetsRequest.d.ts +19 -0
  23. package/dist/cjs/api/resources/datasets/client/requests/ListDatasetsRequest.js +3 -0
  24. package/dist/cjs/api/resources/datasets/client/requests/ListEntitiesInDatasetRequest.d.ts +21 -0
  25. package/dist/cjs/api/resources/datasets/client/requests/ListEntitiesInDatasetRequest.js +3 -0
  26. package/dist/cjs/api/resources/datasets/client/requests/RemoveEntitiesFromDatasetRequest.d.ts +15 -0
  27. package/dist/cjs/api/resources/datasets/client/requests/RemoveEntitiesFromDatasetRequest.js +3 -0
  28. package/dist/cjs/api/resources/datasets/client/requests/UpdateDatasetRequest.d.ts +16 -0
  29. package/dist/cjs/api/resources/datasets/client/requests/UpdateDatasetRequest.js +3 -0
  30. package/dist/cjs/api/resources/datasets/client/requests/UploadCsvToDatasetRequest.d.ts +14 -0
  31. package/dist/cjs/api/resources/datasets/client/requests/UploadCsvToDatasetRequest.js +3 -0
  32. package/dist/cjs/api/resources/datasets/client/requests/index.d.ts +11 -0
  33. package/dist/cjs/api/resources/datasets/client/requests/index.js +2 -0
  34. package/dist/cjs/api/resources/datasets/exports.d.ts +2 -0
  35. package/dist/cjs/api/resources/datasets/exports.js +21 -0
  36. package/dist/cjs/api/resources/datasets/index.d.ts +1 -0
  37. package/dist/cjs/api/resources/datasets/index.js +17 -0
  38. package/dist/cjs/api/resources/entities/client/Client.d.ts +164 -0
  39. package/dist/cjs/api/resources/entities/client/Client.js +468 -0
  40. package/dist/cjs/api/resources/entities/client/index.d.ts +1 -0
  41. package/dist/cjs/api/resources/entities/client/index.js +17 -0
  42. package/dist/cjs/api/resources/entities/client/requests/CreateEntitiesBatchRequest.d.ts +35 -0
  43. package/dist/cjs/api/resources/entities/client/requests/CreateEntitiesBatchRequest.js +3 -0
  44. package/dist/cjs/api/resources/entities/client/requests/DeleteEntityRequest.d.ts +10 -0
  45. package/dist/cjs/api/resources/entities/client/requests/DeleteEntityRequest.js +3 -0
  46. package/dist/cjs/api/resources/entities/client/requests/GetEntityRequest.d.ts +10 -0
  47. package/dist/cjs/api/resources/entities/client/requests/GetEntityRequest.js +3 -0
  48. package/dist/cjs/api/resources/entities/client/requests/ListEntitiesRequest.d.ts +19 -0
  49. package/dist/cjs/api/resources/entities/client/requests/ListEntitiesRequest.js +3 -0
  50. package/dist/cjs/api/resources/entities/client/requests/UpdateEntityRequest.d.ts +22 -0
  51. package/dist/cjs/api/resources/entities/client/requests/UpdateEntityRequest.js +3 -0
  52. package/dist/cjs/api/resources/entities/client/requests/index.d.ts +5 -0
  53. package/dist/cjs/api/resources/entities/client/requests/index.js +2 -0
  54. package/dist/cjs/api/resources/entities/exports.d.ts +2 -0
  55. package/dist/cjs/api/resources/entities/exports.js +21 -0
  56. package/dist/cjs/api/resources/entities/index.d.ts +1 -0
  57. package/dist/cjs/api/resources/entities/index.js +17 -0
  58. package/dist/cjs/api/resources/index.d.ts +4 -0
  59. package/dist/cjs/api/resources/index.js +5 -1
  60. package/dist/cjs/api/resources/jobs/client/Client.d.ts +30 -30
  61. package/dist/cjs/api/resources/jobs/client/Client.js +75 -75
  62. package/dist/cjs/api/resources/jobs/client/requests/SubmitRequestDto.d.ts +6 -0
  63. package/dist/cjs/api/resources/monitors/client/Client.d.ts +40 -40
  64. package/dist/cjs/api/resources/monitors/client/Client.js +101 -101
  65. package/dist/cjs/api/types/AdditionalAttributes.d.ts +7 -0
  66. package/dist/cjs/api/types/AdditionalAttributes.js +3 -0
  67. package/dist/cjs/api/types/CompanyAttributes.d.ts +17 -0
  68. package/dist/cjs/api/types/CompanyAttributes.js +3 -0
  69. package/dist/cjs/api/types/ConnectedEntity.d.ts +30 -0
  70. package/dist/cjs/api/types/ConnectedEntity.js +3 -0
  71. package/dist/cjs/api/types/CreateDatasetCsvResponse.d.ts +10 -0
  72. package/dist/cjs/api/types/CreateDatasetCsvResponse.js +3 -0
  73. package/dist/cjs/api/types/CreateEntitiesBatchResponse.d.ts +7 -0
  74. package/dist/cjs/api/types/CreateEntitiesBatchResponse.js +3 -0
  75. package/dist/cjs/api/types/CreateEntityRequest.d.ts +13 -0
  76. package/dist/cjs/api/types/CreateEntityRequest.js +3 -0
  77. package/dist/cjs/api/types/CreateEntityResponse.d.ts +6 -0
  78. package/dist/cjs/api/types/CreateEntityResponse.js +3 -0
  79. package/dist/cjs/api/types/DatasetEntityIdsRequest.d.ts +4 -0
  80. package/dist/cjs/api/types/DatasetEntityIdsRequest.js +3 -0
  81. package/dist/cjs/api/types/DatasetEntityListResponse.d.ts +11 -0
  82. package/dist/cjs/api/types/DatasetEntityListResponse.js +3 -0
  83. package/dist/cjs/api/types/DatasetListResponse.d.ts +11 -0
  84. package/dist/cjs/api/types/DatasetListResponse.js +3 -0
  85. package/dist/cjs/api/types/DatasetResponse.d.ts +20 -0
  86. package/dist/cjs/api/types/DatasetResponse.js +3 -0
  87. package/dist/cjs/api/types/DatasetSortBy.d.ts +7 -0
  88. package/dist/cjs/api/types/DatasetSortBy.js +10 -0
  89. package/dist/cjs/api/types/DatasetStatus.d.ts +15 -0
  90. package/dist/cjs/api/types/DatasetStatus.js +18 -0
  91. package/dist/cjs/api/types/DatasetStatusEntry.d.ts +11 -0
  92. package/dist/cjs/api/types/DatasetStatusEntry.js +3 -0
  93. package/dist/cjs/api/types/DatasetStatusHistoryResponse.d.ts +7 -0
  94. package/dist/cjs/api/types/DatasetStatusHistoryResponse.js +3 -0
  95. package/dist/cjs/api/types/EnrichmentType.d.ts +3 -1
  96. package/dist/cjs/api/types/EnrichmentType.js +3 -1
  97. package/dist/cjs/api/types/EntityListResponse.d.ts +11 -0
  98. package/dist/cjs/api/types/EntityListResponse.js +3 -0
  99. package/dist/cjs/api/types/EntityResponse.d.ts +20 -0
  100. package/dist/cjs/api/types/EntityResponse.js +3 -0
  101. package/dist/cjs/api/types/EntitySortBy.d.ts +7 -0
  102. package/dist/cjs/api/types/EntitySortBy.js +10 -0
  103. package/dist/cjs/api/types/EntityStatus.d.ts +15 -0
  104. package/dist/cjs/api/types/EntityStatus.js +18 -0
  105. package/dist/cjs/api/types/EntitySummary.d.ts +18 -0
  106. package/dist/cjs/api/types/EntitySummary.js +3 -0
  107. package/dist/cjs/api/types/EntityType.d.ts +11 -0
  108. package/dist/cjs/api/types/EntityType.js +14 -0
  109. package/dist/cjs/api/types/EntityValidationErrorBody.d.ts +16 -0
  110. package/dist/cjs/api/types/EntityValidationErrorBody.js +3 -0
  111. package/dist/cjs/api/types/ManageEntitiesResponse.d.ts +6 -0
  112. package/dist/cjs/api/types/ManageEntitiesResponse.js +3 -0
  113. package/dist/cjs/api/types/MonitorRecord.d.ts +1 -0
  114. package/dist/cjs/api/types/Record_.d.ts +5 -0
  115. package/dist/cjs/api/types/SkippedRow.d.ts +13 -0
  116. package/dist/cjs/api/types/SkippedRow.js +3 -0
  117. package/dist/cjs/api/types/SortOrder.d.ts +11 -0
  118. package/dist/cjs/api/types/SortOrder.js +14 -0
  119. package/dist/cjs/api/types/UploadCsvToDatasetResponse.d.ts +8 -0
  120. package/dist/cjs/api/types/UploadCsvToDatasetResponse.js +3 -0
  121. package/dist/cjs/api/types/ValidationReport.d.ts +17 -0
  122. package/dist/cjs/api/types/ValidationReport.js +3 -0
  123. package/dist/cjs/api/types/index.d.ts +27 -0
  124. package/dist/cjs/api/types/index.js +27 -0
  125. package/dist/cjs/core/auth/BasicAuth.d.ts +2 -2
  126. package/dist/cjs/core/auth/BasicAuth.js +7 -1
  127. package/dist/cjs/core/exports.d.ts +1 -0
  128. package/dist/cjs/core/exports.js +1 -0
  129. package/dist/cjs/core/fetcher/Fetcher.d.ts +2 -0
  130. package/dist/cjs/core/fetcher/Fetcher.js +4 -0
  131. package/dist/cjs/core/file/exports.d.ts +1 -0
  132. package/dist/cjs/core/file/exports.js +2 -0
  133. package/dist/cjs/core/file/file.d.ts +10 -0
  134. package/dist/cjs/core/file/file.js +222 -0
  135. package/dist/cjs/core/file/index.d.ts +2 -0
  136. package/dist/cjs/core/file/index.js +18 -0
  137. package/dist/cjs/core/file/types.d.ts +66 -0
  138. package/dist/cjs/core/file/types.js +2 -0
  139. package/dist/cjs/core/form-data-utils/FormDataWrapper.d.ts +15 -0
  140. package/dist/cjs/core/form-data-utils/FormDataWrapper.js +185 -0
  141. package/dist/cjs/core/form-data-utils/encodeAsFormParameter.d.ts +1 -0
  142. package/dist/cjs/core/form-data-utils/encodeAsFormParameter.js +12 -0
  143. package/dist/cjs/core/form-data-utils/index.d.ts +2 -0
  144. package/dist/cjs/core/form-data-utils/index.js +20 -0
  145. package/dist/cjs/core/index.d.ts +2 -0
  146. package/dist/cjs/core/index.js +3 -1
  147. package/dist/cjs/errors/CatchAllApiError.d.ts +3 -1
  148. package/dist/cjs/errors/CatchAllApiError.js +4 -1
  149. package/dist/cjs/errors/CatchAllApiTimeoutError.d.ts +4 -1
  150. package/dist/cjs/errors/CatchAllApiTimeoutError.js +4 -1
  151. package/dist/cjs/errors/handleNonStatusCodeError.js +4 -1
  152. package/dist/cjs/version.d.ts +1 -1
  153. package/dist/cjs/version.js +1 -1
  154. package/dist/esm/BaseClient.mjs +2 -2
  155. package/dist/esm/Client.d.mts +6 -0
  156. package/dist/esm/Client.mjs +10 -0
  157. package/dist/esm/api/errors/BadRequestError.d.mts +1 -2
  158. package/dist/esm/api/resources/datasets/client/Client.d.mts +245 -0
  159. package/dist/esm/api/resources/datasets/client/Client.mjs +742 -0
  160. package/dist/esm/api/resources/datasets/client/index.d.mts +1 -0
  161. package/dist/esm/api/resources/datasets/client/index.mjs +1 -0
  162. package/dist/esm/api/resources/datasets/client/requests/AddEntitiesToDatasetRequest.d.mts +15 -0
  163. package/dist/esm/api/resources/datasets/client/requests/AddEntitiesToDatasetRequest.mjs +2 -0
  164. package/dist/esm/api/resources/datasets/client/requests/CreateDatasetFromCsvRequest.d.mts +16 -0
  165. package/dist/esm/api/resources/datasets/client/requests/CreateDatasetFromCsvRequest.mjs +2 -0
  166. package/dist/esm/api/resources/datasets/client/requests/CreateDatasetRequest.d.mts +16 -0
  167. package/dist/esm/api/resources/datasets/client/requests/CreateDatasetRequest.mjs +2 -0
  168. package/dist/esm/api/resources/datasets/client/requests/DeleteDatasetRequest.d.mts +10 -0
  169. package/dist/esm/api/resources/datasets/client/requests/DeleteDatasetRequest.mjs +2 -0
  170. package/dist/esm/api/resources/datasets/client/requests/GetDatasetRequest.d.mts +10 -0
  171. package/dist/esm/api/resources/datasets/client/requests/GetDatasetRequest.mjs +2 -0
  172. package/dist/esm/api/resources/datasets/client/requests/GetDatasetStatusHistoryRequest.d.mts +10 -0
  173. package/dist/esm/api/resources/datasets/client/requests/GetDatasetStatusHistoryRequest.mjs +2 -0
  174. package/dist/esm/api/resources/datasets/client/requests/ListDatasetsRequest.d.mts +19 -0
  175. package/dist/esm/api/resources/datasets/client/requests/ListDatasetsRequest.mjs +2 -0
  176. package/dist/esm/api/resources/datasets/client/requests/ListEntitiesInDatasetRequest.d.mts +21 -0
  177. package/dist/esm/api/resources/datasets/client/requests/ListEntitiesInDatasetRequest.mjs +2 -0
  178. package/dist/esm/api/resources/datasets/client/requests/RemoveEntitiesFromDatasetRequest.d.mts +15 -0
  179. package/dist/esm/api/resources/datasets/client/requests/RemoveEntitiesFromDatasetRequest.mjs +2 -0
  180. package/dist/esm/api/resources/datasets/client/requests/UpdateDatasetRequest.d.mts +16 -0
  181. package/dist/esm/api/resources/datasets/client/requests/UpdateDatasetRequest.mjs +2 -0
  182. package/dist/esm/api/resources/datasets/client/requests/UploadCsvToDatasetRequest.d.mts +14 -0
  183. package/dist/esm/api/resources/datasets/client/requests/UploadCsvToDatasetRequest.mjs +2 -0
  184. package/dist/esm/api/resources/datasets/client/requests/index.d.mts +11 -0
  185. package/dist/esm/api/resources/datasets/client/requests/index.mjs +1 -0
  186. package/dist/esm/api/resources/datasets/exports.d.mts +2 -0
  187. package/dist/esm/api/resources/datasets/exports.mjs +3 -0
  188. package/dist/esm/api/resources/datasets/index.d.mts +1 -0
  189. package/dist/esm/api/resources/datasets/index.mjs +1 -0
  190. package/dist/esm/api/resources/entities/client/Client.d.mts +164 -0
  191. package/dist/esm/api/resources/entities/client/Client.mjs +431 -0
  192. package/dist/esm/api/resources/entities/client/index.d.mts +1 -0
  193. package/dist/esm/api/resources/entities/client/index.mjs +1 -0
  194. package/dist/esm/api/resources/entities/client/requests/CreateEntitiesBatchRequest.d.mts +35 -0
  195. package/dist/esm/api/resources/entities/client/requests/CreateEntitiesBatchRequest.mjs +2 -0
  196. package/dist/esm/api/resources/entities/client/requests/DeleteEntityRequest.d.mts +10 -0
  197. package/dist/esm/api/resources/entities/client/requests/DeleteEntityRequest.mjs +2 -0
  198. package/dist/esm/api/resources/entities/client/requests/GetEntityRequest.d.mts +10 -0
  199. package/dist/esm/api/resources/entities/client/requests/GetEntityRequest.mjs +2 -0
  200. package/dist/esm/api/resources/entities/client/requests/ListEntitiesRequest.d.mts +19 -0
  201. package/dist/esm/api/resources/entities/client/requests/ListEntitiesRequest.mjs +2 -0
  202. package/dist/esm/api/resources/entities/client/requests/UpdateEntityRequest.d.mts +22 -0
  203. package/dist/esm/api/resources/entities/client/requests/UpdateEntityRequest.mjs +2 -0
  204. package/dist/esm/api/resources/entities/client/requests/index.d.mts +5 -0
  205. package/dist/esm/api/resources/entities/client/requests/index.mjs +1 -0
  206. package/dist/esm/api/resources/entities/exports.d.mts +2 -0
  207. package/dist/esm/api/resources/entities/exports.mjs +3 -0
  208. package/dist/esm/api/resources/entities/index.d.mts +1 -0
  209. package/dist/esm/api/resources/entities/index.mjs +1 -0
  210. package/dist/esm/api/resources/index.d.mts +4 -0
  211. package/dist/esm/api/resources/index.mjs +4 -0
  212. package/dist/esm/api/resources/jobs/client/Client.d.mts +30 -30
  213. package/dist/esm/api/resources/jobs/client/Client.mjs +75 -75
  214. package/dist/esm/api/resources/jobs/client/requests/SubmitRequestDto.d.mts +6 -0
  215. package/dist/esm/api/resources/monitors/client/Client.d.mts +40 -40
  216. package/dist/esm/api/resources/monitors/client/Client.mjs +101 -101
  217. package/dist/esm/api/types/AdditionalAttributes.d.mts +7 -0
  218. package/dist/esm/api/types/AdditionalAttributes.mjs +2 -0
  219. package/dist/esm/api/types/CompanyAttributes.d.mts +17 -0
  220. package/dist/esm/api/types/CompanyAttributes.mjs +2 -0
  221. package/dist/esm/api/types/ConnectedEntity.d.mts +30 -0
  222. package/dist/esm/api/types/ConnectedEntity.mjs +2 -0
  223. package/dist/esm/api/types/CreateDatasetCsvResponse.d.mts +10 -0
  224. package/dist/esm/api/types/CreateDatasetCsvResponse.mjs +2 -0
  225. package/dist/esm/api/types/CreateEntitiesBatchResponse.d.mts +7 -0
  226. package/dist/esm/api/types/CreateEntitiesBatchResponse.mjs +2 -0
  227. package/dist/esm/api/types/CreateEntityRequest.d.mts +13 -0
  228. package/dist/esm/api/types/CreateEntityRequest.mjs +2 -0
  229. package/dist/esm/api/types/CreateEntityResponse.d.mts +6 -0
  230. package/dist/esm/api/types/CreateEntityResponse.mjs +2 -0
  231. package/dist/esm/api/types/DatasetEntityIdsRequest.d.mts +4 -0
  232. package/dist/esm/api/types/DatasetEntityIdsRequest.mjs +2 -0
  233. package/dist/esm/api/types/DatasetEntityListResponse.d.mts +11 -0
  234. package/dist/esm/api/types/DatasetEntityListResponse.mjs +2 -0
  235. package/dist/esm/api/types/DatasetListResponse.d.mts +11 -0
  236. package/dist/esm/api/types/DatasetListResponse.mjs +2 -0
  237. package/dist/esm/api/types/DatasetResponse.d.mts +20 -0
  238. package/dist/esm/api/types/DatasetResponse.mjs +2 -0
  239. package/dist/esm/api/types/DatasetSortBy.d.mts +7 -0
  240. package/dist/esm/api/types/DatasetSortBy.mjs +7 -0
  241. package/dist/esm/api/types/DatasetStatus.d.mts +15 -0
  242. package/dist/esm/api/types/DatasetStatus.mjs +15 -0
  243. package/dist/esm/api/types/DatasetStatusEntry.d.mts +11 -0
  244. package/dist/esm/api/types/DatasetStatusEntry.mjs +2 -0
  245. package/dist/esm/api/types/DatasetStatusHistoryResponse.d.mts +7 -0
  246. package/dist/esm/api/types/DatasetStatusHistoryResponse.mjs +2 -0
  247. package/dist/esm/api/types/EnrichmentType.d.mts +3 -1
  248. package/dist/esm/api/types/EnrichmentType.mjs +3 -1
  249. package/dist/esm/api/types/EntityListResponse.d.mts +11 -0
  250. package/dist/esm/api/types/EntityListResponse.mjs +2 -0
  251. package/dist/esm/api/types/EntityResponse.d.mts +20 -0
  252. package/dist/esm/api/types/EntityResponse.mjs +2 -0
  253. package/dist/esm/api/types/EntitySortBy.d.mts +7 -0
  254. package/dist/esm/api/types/EntitySortBy.mjs +7 -0
  255. package/dist/esm/api/types/EntityStatus.d.mts +15 -0
  256. package/dist/esm/api/types/EntityStatus.mjs +15 -0
  257. package/dist/esm/api/types/EntitySummary.d.mts +18 -0
  258. package/dist/esm/api/types/EntitySummary.mjs +2 -0
  259. package/dist/esm/api/types/EntityType.d.mts +11 -0
  260. package/dist/esm/api/types/EntityType.mjs +11 -0
  261. package/dist/esm/api/types/EntityValidationErrorBody.d.mts +16 -0
  262. package/dist/esm/api/types/EntityValidationErrorBody.mjs +2 -0
  263. package/dist/esm/api/types/ManageEntitiesResponse.d.mts +6 -0
  264. package/dist/esm/api/types/ManageEntitiesResponse.mjs +2 -0
  265. package/dist/esm/api/types/MonitorRecord.d.mts +1 -0
  266. package/dist/esm/api/types/Record_.d.mts +5 -0
  267. package/dist/esm/api/types/SkippedRow.d.mts +13 -0
  268. package/dist/esm/api/types/SkippedRow.mjs +2 -0
  269. package/dist/esm/api/types/SortOrder.d.mts +11 -0
  270. package/dist/esm/api/types/SortOrder.mjs +11 -0
  271. package/dist/esm/api/types/UploadCsvToDatasetResponse.d.mts +8 -0
  272. package/dist/esm/api/types/UploadCsvToDatasetResponse.mjs +2 -0
  273. package/dist/esm/api/types/ValidationReport.d.mts +17 -0
  274. package/dist/esm/api/types/ValidationReport.mjs +2 -0
  275. package/dist/esm/api/types/index.d.mts +27 -0
  276. package/dist/esm/api/types/index.mjs +27 -0
  277. package/dist/esm/core/auth/BasicAuth.d.mts +2 -2
  278. package/dist/esm/core/auth/BasicAuth.mjs +7 -1
  279. package/dist/esm/core/exports.d.mts +1 -0
  280. package/dist/esm/core/exports.mjs +1 -0
  281. package/dist/esm/core/fetcher/Fetcher.d.mts +2 -0
  282. package/dist/esm/core/fetcher/Fetcher.mjs +4 -0
  283. package/dist/esm/core/file/exports.d.mts +1 -0
  284. package/dist/esm/core/file/exports.mjs +1 -0
  285. package/dist/esm/core/file/file.d.mts +10 -0
  286. package/dist/esm/core/file/file.mjs +185 -0
  287. package/dist/esm/core/file/index.d.mts +2 -0
  288. package/dist/esm/core/file/index.mjs +2 -0
  289. package/dist/esm/core/file/types.d.mts +66 -0
  290. package/dist/esm/core/file/types.mjs +1 -0
  291. package/dist/esm/core/form-data-utils/FormDataWrapper.d.mts +15 -0
  292. package/dist/esm/core/form-data-utils/FormDataWrapper.mjs +147 -0
  293. package/dist/esm/core/form-data-utils/encodeAsFormParameter.d.mts +1 -0
  294. package/dist/esm/core/form-data-utils/encodeAsFormParameter.mjs +9 -0
  295. package/dist/esm/core/form-data-utils/index.d.mts +2 -0
  296. package/dist/esm/core/form-data-utils/index.mjs +2 -0
  297. package/dist/esm/core/index.d.mts +2 -0
  298. package/dist/esm/core/index.mjs +2 -0
  299. package/dist/esm/errors/CatchAllApiError.d.mts +3 -1
  300. package/dist/esm/errors/CatchAllApiError.mjs +4 -1
  301. package/dist/esm/errors/CatchAllApiTimeoutError.d.mts +4 -1
  302. package/dist/esm/errors/CatchAllApiTimeoutError.mjs +4 -1
  303. package/dist/esm/errors/handleNonStatusCodeError.mjs +4 -1
  304. package/dist/esm/version.d.mts +1 -1
  305. package/dist/esm/version.mjs +1 -1
  306. package/package.json +29 -7
  307. package/reference.md +1247 -49
@@ -33,6 +33,62 @@ export class MonitorsClient {
33
33
  constructor(options = {}) {
34
34
  this._options = normalizeClientOptionsWithAuth(options);
35
35
  }
36
+ /**
37
+ * Returns all monitors created by the authenticated user.
38
+ *
39
+ * @param {CatchAllApi.ListMonitorsRequest} request
40
+ * @param {MonitorsClient.RequestOptions} requestOptions - Request-specific configuration.
41
+ *
42
+ * @throws {@link CatchAllApi.ForbiddenError}
43
+ * @throws {@link CatchAllApi.UnprocessableEntityError}
44
+ *
45
+ * @example
46
+ * await client.monitors.listMonitors()
47
+ */
48
+ listMonitors(request = {}, requestOptions) {
49
+ return core.HttpResponsePromise.fromPromise(this.__listMonitors(request, requestOptions));
50
+ }
51
+ __listMonitors() {
52
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
53
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
54
+ const { page, page_size: pageSize } = request;
55
+ const _queryParams = {
56
+ page,
57
+ page_size: pageSize,
58
+ };
59
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
60
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
61
+ const _response = yield core.fetcher({
62
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CatchAllApiEnvironment.Default, "catchAll/monitors"),
63
+ method: "GET",
64
+ headers: _headers,
65
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
66
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
67
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
68
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
69
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
70
+ logging: this._options.logging,
71
+ });
72
+ if (_response.ok) {
73
+ return { data: _response.body, rawResponse: _response.rawResponse };
74
+ }
75
+ if (_response.error.reason === "status-code") {
76
+ switch (_response.error.statusCode) {
77
+ case 403:
78
+ throw new CatchAllApi.ForbiddenError(_response.error.body, _response.rawResponse);
79
+ case 422:
80
+ throw new CatchAllApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
81
+ default:
82
+ throw new errors.CatchAllApiError({
83
+ statusCode: _response.error.statusCode,
84
+ body: _response.error.body,
85
+ rawResponse: _response.rawResponse,
86
+ });
87
+ }
88
+ }
89
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/catchAll/monitors");
90
+ });
91
+ }
36
92
  /**
37
93
  * Create a scheduled monitor based on a reference job.
38
94
  *
@@ -97,44 +153,33 @@ export class MonitorsClient {
97
153
  });
98
154
  }
99
155
  /**
100
- * Update the webhook configuration for an existing monitor.
156
+ * Retrieve aggregated results from all jobs executed by a monitor.
101
157
  *
102
- * @param {CatchAllApi.UpdateMonitorRequestDto} request
158
+ * @param {CatchAllApi.PullMonitorResultsRequest} request
103
159
  * @param {MonitorsClient.RequestOptions} requestOptions - Request-specific configuration.
104
160
  *
105
- * @throws {@link CatchAllApi.ForbiddenError}
106
161
  * @throws {@link CatchAllApi.NotFoundError}
107
162
  * @throws {@link CatchAllApi.UnprocessableEntityError}
108
163
  *
109
164
  * @example
110
- * await client.monitors.updateMonitor({
111
- * monitor_id: "monitor_id",
112
- * webhook: {
113
- * url: "https://new-endpoint.com/webhook",
114
- * method: "POST",
115
- * headers: {
116
- * "Authorization": "Bearer new_token_xyz"
117
- * }
118
- * }
165
+ * await client.monitors.pullMonitorResults({
166
+ * monitor_id: "monitor_id"
119
167
  * })
120
168
  */
121
- updateMonitor(request, requestOptions) {
122
- return core.HttpResponsePromise.fromPromise(this.__updateMonitor(request, requestOptions));
169
+ pullMonitorResults(request, requestOptions) {
170
+ return core.HttpResponsePromise.fromPromise(this.__pullMonitorResults(request, requestOptions));
123
171
  }
124
- __updateMonitor(request, requestOptions) {
172
+ __pullMonitorResults(request, requestOptions) {
125
173
  return __awaiter(this, void 0, void 0, function* () {
126
174
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
127
- const { monitor_id: monitorId } = request, _body = __rest(request, ["monitor_id"]);
175
+ const { monitor_id: monitorId } = request;
128
176
  const _authRequest = yield this._options.authProvider.getAuthRequest();
129
177
  const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
130
178
  const _response = yield core.fetcher({
131
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CatchAllApiEnvironment.Default, `catchAll/monitors/${core.url.encodePathParam(monitorId)}`),
132
- method: "PATCH",
179
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CatchAllApiEnvironment.Default, `catchAll/monitors/pull/${core.url.encodePathParam(monitorId)}`),
180
+ method: "GET",
133
181
  headers: _headers,
134
- contentType: "application/json",
135
182
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
136
- requestType: "json",
137
- body: _body,
138
183
  timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
139
184
  maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
140
185
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -146,8 +191,6 @@ export class MonitorsClient {
146
191
  }
147
192
  if (_response.error.reason === "status-code") {
148
193
  switch (_response.error.statusCode) {
149
- case 403:
150
- throw new CatchAllApi.ForbiddenError(_response.error.body, _response.rawResponse);
151
194
  case 404:
152
195
  throw new CatchAllApi.NotFoundError(_response.error.body, _response.rawResponse);
153
196
  case 422:
@@ -160,7 +203,7 @@ export class MonitorsClient {
160
203
  });
161
204
  }
162
205
  }
163
- return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/catchAll/monitors/{monitor_id}");
206
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/catchAll/monitors/pull/{monitor_id}");
164
207
  });
165
208
  }
166
209
  /**
@@ -221,33 +264,38 @@ export class MonitorsClient {
221
264
  });
222
265
  }
223
266
  /**
224
- * Retrieve aggregated results from all jobs executed by a monitor.
267
+ * Resume scheduled job execution for a monitor.
225
268
  *
226
- * @param {CatchAllApi.PullMonitorResultsRequest} request
269
+ * @param {CatchAllApi.EnableMonitorRequestDto} request
227
270
  * @param {MonitorsClient.RequestOptions} requestOptions - Request-specific configuration.
228
271
  *
272
+ * @throws {@link CatchAllApi.ForbiddenError}
229
273
  * @throws {@link CatchAllApi.NotFoundError}
230
274
  * @throws {@link CatchAllApi.UnprocessableEntityError}
231
275
  *
232
276
  * @example
233
- * await client.monitors.pullMonitorResults({
234
- * monitor_id: "monitor_id"
277
+ * await client.monitors.enableMonitor({
278
+ * monitor_id: "monitor_id",
279
+ * backfill: true
235
280
  * })
236
281
  */
237
- pullMonitorResults(request, requestOptions) {
238
- return core.HttpResponsePromise.fromPromise(this.__pullMonitorResults(request, requestOptions));
282
+ enableMonitor(request, requestOptions) {
283
+ return core.HttpResponsePromise.fromPromise(this.__enableMonitor(request, requestOptions));
239
284
  }
240
- __pullMonitorResults(request, requestOptions) {
285
+ __enableMonitor(request, requestOptions) {
241
286
  return __awaiter(this, void 0, void 0, function* () {
242
287
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
243
- const { monitor_id: monitorId } = request;
288
+ const { monitor_id: monitorId } = request, _body = __rest(request, ["monitor_id"]);
244
289
  const _authRequest = yield this._options.authProvider.getAuthRequest();
245
290
  const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
246
291
  const _response = yield core.fetcher({
247
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CatchAllApiEnvironment.Default, `catchAll/monitors/pull/${core.url.encodePathParam(monitorId)}`),
248
- method: "GET",
292
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CatchAllApiEnvironment.Default, `catchAll/monitors/${core.url.encodePathParam(monitorId)}/enable`),
293
+ method: "POST",
249
294
  headers: _headers,
295
+ contentType: "application/json",
250
296
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
297
+ requestType: "json",
298
+ body: _body,
251
299
  timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
252
300
  maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
253
301
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -259,6 +307,8 @@ export class MonitorsClient {
259
307
  }
260
308
  if (_response.error.reason === "status-code") {
261
309
  switch (_response.error.statusCode) {
310
+ case 403:
311
+ throw new CatchAllApi.ForbiddenError(_response.error.body, _response.rawResponse);
262
312
  case 404:
263
313
  throw new CatchAllApi.NotFoundError(_response.error.body, _response.rawResponse);
264
314
  case 422:
@@ -271,7 +321,7 @@ export class MonitorsClient {
271
321
  });
272
322
  }
273
323
  }
274
- return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/catchAll/monitors/pull/{monitor_id}");
324
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/catchAll/monitors/{monitor_id}/enable");
275
325
  });
276
326
  }
277
327
  /**
@@ -332,9 +382,9 @@ export class MonitorsClient {
332
382
  });
333
383
  }
334
384
  /**
335
- * Resume scheduled job execution for a monitor.
385
+ * Update the webhook configuration for an existing monitor.
336
386
  *
337
- * @param {CatchAllApi.EnableMonitorRequestDto} request
387
+ * @param {CatchAllApi.UpdateMonitorRequestDto} request
338
388
  * @param {MonitorsClient.RequestOptions} requestOptions - Request-specific configuration.
339
389
  *
340
390
  * @throws {@link CatchAllApi.ForbiddenError}
@@ -342,23 +392,29 @@ export class MonitorsClient {
342
392
  * @throws {@link CatchAllApi.UnprocessableEntityError}
343
393
  *
344
394
  * @example
345
- * await client.monitors.enableMonitor({
395
+ * await client.monitors.updateMonitor({
346
396
  * monitor_id: "monitor_id",
347
- * backfill: true
397
+ * webhook: {
398
+ * url: "https://new-endpoint.com/webhook",
399
+ * method: "POST",
400
+ * headers: {
401
+ * "Authorization": "Bearer new_token_xyz"
402
+ * }
403
+ * }
348
404
  * })
349
405
  */
350
- enableMonitor(request, requestOptions) {
351
- return core.HttpResponsePromise.fromPromise(this.__enableMonitor(request, requestOptions));
406
+ updateMonitor(request, requestOptions) {
407
+ return core.HttpResponsePromise.fromPromise(this.__updateMonitor(request, requestOptions));
352
408
  }
353
- __enableMonitor(request, requestOptions) {
409
+ __updateMonitor(request, requestOptions) {
354
410
  return __awaiter(this, void 0, void 0, function* () {
355
411
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
356
412
  const { monitor_id: monitorId } = request, _body = __rest(request, ["monitor_id"]);
357
413
  const _authRequest = yield this._options.authProvider.getAuthRequest();
358
414
  const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
359
415
  const _response = yield core.fetcher({
360
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CatchAllApiEnvironment.Default, `catchAll/monitors/${core.url.encodePathParam(monitorId)}/enable`),
361
- method: "POST",
416
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CatchAllApiEnvironment.Default, `catchAll/monitors/${core.url.encodePathParam(monitorId)}`),
417
+ method: "PATCH",
362
418
  headers: _headers,
363
419
  contentType: "application/json",
364
420
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -389,63 +445,7 @@ export class MonitorsClient {
389
445
  });
390
446
  }
391
447
  }
392
- return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/catchAll/monitors/{monitor_id}/enable");
393
- });
394
- }
395
- /**
396
- * Returns all monitors created by the authenticated user.
397
- *
398
- * @param {CatchAllApi.ListMonitorsRequest} request
399
- * @param {MonitorsClient.RequestOptions} requestOptions - Request-specific configuration.
400
- *
401
- * @throws {@link CatchAllApi.ForbiddenError}
402
- * @throws {@link CatchAllApi.UnprocessableEntityError}
403
- *
404
- * @example
405
- * await client.monitors.listMonitors()
406
- */
407
- listMonitors(request = {}, requestOptions) {
408
- return core.HttpResponsePromise.fromPromise(this.__listMonitors(request, requestOptions));
409
- }
410
- __listMonitors() {
411
- return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
412
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
413
- const { page, page_size: pageSize } = request;
414
- const _queryParams = {
415
- page,
416
- page_size: pageSize,
417
- };
418
- const _authRequest = yield this._options.authProvider.getAuthRequest();
419
- const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
420
- const _response = yield core.fetcher({
421
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CatchAllApiEnvironment.Default, "catchAll/monitors"),
422
- method: "GET",
423
- headers: _headers,
424
- queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
425
- timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
426
- maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
427
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
428
- fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
429
- logging: this._options.logging,
430
- });
431
- if (_response.ok) {
432
- return { data: _response.body, rawResponse: _response.rawResponse };
433
- }
434
- if (_response.error.reason === "status-code") {
435
- switch (_response.error.statusCode) {
436
- case 403:
437
- throw new CatchAllApi.ForbiddenError(_response.error.body, _response.rawResponse);
438
- case 422:
439
- throw new CatchAllApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
440
- default:
441
- throw new errors.CatchAllApiError({
442
- statusCode: _response.error.statusCode,
443
- body: _response.error.body,
444
- rawResponse: _response.rawResponse,
445
- });
446
- }
447
- }
448
- return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/catchAll/monitors");
448
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/catchAll/monitors/{monitor_id}");
449
449
  });
450
450
  }
451
451
  }
@@ -0,0 +1,7 @@
1
+ import type * as CatchAllApi from "../index.mjs";
2
+ /**
3
+ * Additional attributes for the entity, keyed by entity type.
4
+ */
5
+ export interface AdditionalAttributes {
6
+ company_attributes?: CatchAllApi.CompanyAttributes | undefined;
7
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Identifying attributes for a company entity. All fields are optional but improve matching quality.
3
+ */
4
+ export interface CompanyAttributes {
5
+ /**
6
+ * Company website domain without protocol or trailing slash.
7
+ *
8
+ * The most reliable identifier — strongly recommended when available.
9
+ */
10
+ domain?: (string | null) | undefined;
11
+ /** Detailed description of the company used for matching. */
12
+ description?: (string | null) | undefined;
13
+ /** Names of key people associated with the company (founders, executives, etc.). Improves matching for articles that mention people rather than the company name. */
14
+ key_persons?: (string[] | null) | undefined;
15
+ /** Alternative names, abbreviations, or aliases. Helps resolve common variations of the company name. */
16
+ alternative_names?: (string[] | null) | undefined;
17
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,30 @@
1
+ /**
2
+ * A company entity matched to a record in a Company Search job, with
3
+ * a relevance score and explanation.
4
+ *
5
+ * Only entities with `ed_score` ≥ 1 appear in results. Entities scored
6
+ * 0 are filtered out before the response is returned.
7
+ */
8
+ export interface ConnectedEntity {
9
+ /** Unique identifier of the matched entity. */
10
+ entity_id: string;
11
+ /** Name of the matched entity. */
12
+ name: string;
13
+ /**
14
+ * Relevance score indicating how directly the entity is associated
15
+ * with this event.
16
+ *
17
+ * | Score | Meaning |
18
+ * |-------|---------|
19
+ * | 10 | Direct mention, critical event (merger, CEO change, major lawsuit) |
20
+ * | 7–9 | Major impact (earnings, product launch, senior hire) |
21
+ * | 4–6 | Routine update (minor product news, mid-level changes) |
22
+ * | 1–3 | Indirect mention (listed with others, stock noise) |
23
+ */
24
+ ed_score: number;
25
+ /**
26
+ * Short explanation (up to 100 characters) of why this entity is
27
+ * associated with the event.
28
+ */
29
+ relation: string;
30
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,10 @@
1
+ import type * as CatchAllApi from "../index.mjs";
2
+ export interface CreateDatasetCsvResponse {
3
+ /** Unique identifier of the created dataset. */
4
+ dataset_id: string;
5
+ /** Name of the created dataset. */
6
+ dataset_name: string;
7
+ /** Number of entities successfully created from the CSV. */
8
+ entities_created: number;
9
+ validation_report: CatchAllApi.ValidationReport;
10
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,7 @@
1
+ import type * as CatchAllApi from "../index.mjs";
2
+ export interface CreateEntitiesBatchResponse {
3
+ /** Array of created entity stubs in the same order as the input. */
4
+ entities: CatchAllApi.CreateEntityResponse[];
5
+ /** Total number of entities created. */
6
+ count: number;
7
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,13 @@
1
+ import type * as CatchAllApi from "../index.mjs";
2
+ /**
3
+ * Request body for creating a single entity. Only `name` is required.
4
+ * The more fields you provide, the better the matching quality.
5
+ */
6
+ export interface CreateEntityRequest {
7
+ /** The company or person name. Required and must be non-empty. */
8
+ name: string;
9
+ entity_type?: CatchAllApi.EntityType | undefined;
10
+ /** Free-text description of the entity used for disambiguation when similar names exist. */
11
+ description?: string | undefined;
12
+ additional_attributes?: CatchAllApi.AdditionalAttributes | undefined;
13
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,6 @@
1
+ export interface CreateEntityResponse {
2
+ /** Unique identifier of the created entity. */
3
+ id: string;
4
+ /** Initial status of the entity. Always `pending` immediately after creation — enrichment happens asynchronously. */
5
+ status: string;
6
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,4 @@
1
+ export interface DatasetEntityIdsRequest {
2
+ /** List of entity IDs to add or remove. */
3
+ entity_ids: string[];
4
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,11 @@
1
+ import type * as CatchAllApi from "../index.mjs";
2
+ export interface DatasetEntityListResponse {
3
+ /** Array of entity summary objects for this page. */
4
+ entities: CatchAllApi.EntitySummary[];
5
+ /** Total number of entities in the dataset. */
6
+ total: number;
7
+ /** Current page number. */
8
+ page: number;
9
+ /** Number of entities per page. */
10
+ page_size: number;
11
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,11 @@
1
+ import type * as CatchAllApi from "../index.mjs";
2
+ export interface DatasetListResponse {
3
+ /** Array of dataset objects for this page. */
4
+ datasets: CatchAllApi.DatasetResponse[];
5
+ /** Total number of datasets matching the filter criteria. */
6
+ total: number;
7
+ /** Current page number. */
8
+ page: number;
9
+ /** Number of datasets per page. */
10
+ page_size: number;
11
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,20 @@
1
+ import type * as CatchAllApi from "../index.mjs";
2
+ export interface DatasetResponse {
3
+ /** Unique identifier of the dataset. */
4
+ id: string;
5
+ /** Organization that owns this dataset. */
6
+ organization_id: string;
7
+ /** Dataset name. */
8
+ name: string;
9
+ /** Optional description. */
10
+ description?: (string | null) | undefined;
11
+ /** Total number of entities in this dataset. */
12
+ entity_count?: number | undefined;
13
+ latest_status?: CatchAllApi.DatasetStatus | undefined;
14
+ /** ID of the user who created this dataset. */
15
+ created_by_user_id?: string | undefined;
16
+ /** ISO 8601 timestamp of when the dataset was created. Returned without timezone offset (server-local time). */
17
+ created_at?: string | undefined;
18
+ /** ISO 8601 timestamp of when the dataset was last updated. Returned without timezone offset (server-local time). */
19
+ updated_at?: string | undefined;
20
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,7 @@
1
+ /** Fields available for sorting dataset list results. */
2
+ export declare const DatasetSortBy: {
3
+ readonly Name: "name";
4
+ readonly CreatedAt: "created_at";
5
+ readonly Status: "status";
6
+ };
7
+ export type DatasetSortBy = (typeof DatasetSortBy)[keyof typeof DatasetSortBy];
@@ -0,0 +1,7 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ /** Fields available for sorting dataset list results. */
3
+ export const DatasetSortBy = {
4
+ Name: "name",
5
+ CreatedAt: "created_at",
6
+ Status: "status",
7
+ };
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Processing status of a dataset.
3
+ *
4
+ * - `pending`: Dataset created, entities queued for enrichment.
5
+ * - `enriching`: Entities are being enriched.
6
+ * - `ready`: All entities enriched and indexed — ready for use in jobs.
7
+ * - `failed`: One or more entity enrichments failed.
8
+ */
9
+ export declare const DatasetStatus: {
10
+ readonly Pending: "pending";
11
+ readonly Enriching: "enriching";
12
+ readonly Ready: "ready";
13
+ readonly Failed: "failed";
14
+ };
15
+ export type DatasetStatus = (typeof DatasetStatus)[keyof typeof DatasetStatus];
@@ -0,0 +1,15 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ /**
3
+ * Processing status of a dataset.
4
+ *
5
+ * - `pending`: Dataset created, entities queued for enrichment.
6
+ * - `enriching`: Entities are being enriched.
7
+ * - `ready`: All entities enriched and indexed — ready for use in jobs.
8
+ * - `failed`: One or more entity enrichments failed.
9
+ */
10
+ export const DatasetStatus = {
11
+ Pending: "pending",
12
+ Enriching: "enriching",
13
+ Ready: "ready",
14
+ Failed: "failed",
15
+ };
@@ -0,0 +1,11 @@
1
+ import type * as CatchAllApi from "../index.mjs";
2
+ /**
3
+ * A single status change event in a dataset's history.
4
+ */
5
+ export interface DatasetStatusEntry {
6
+ status: CatchAllApi.DatasetStatus;
7
+ /** Additional context about the status change, if available. */
8
+ additional_information?: (Record<string, unknown> | null) | undefined;
9
+ /** ISO 8601 timestamp of when this status was set. Returned without timezone offset (server-local time). */
10
+ created_at?: string | undefined;
11
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,7 @@
1
+ import type * as CatchAllApi from "../index.mjs";
2
+ export interface DatasetStatusHistoryResponse {
3
+ /** ID of the dataset. */
4
+ dataset_id: string;
5
+ /** Status change entries, ordered oldest to newest. */
6
+ history: CatchAllApi.DatasetStatusEntry[];
7
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -6,7 +6,9 @@
6
6
  * - `date`: ISO format dates (YYYY-MM-DD)
7
7
  * - `option`: Enum-like fixed values (status, category)
8
8
  * - `url`: Web URLs
9
- * - `company`: Structured company data. Returns `source_text`, `confidence`, and `metadata`. See [Company enrichment](https://www.newscatcherapi.com/docs/web-search-api/api-reference/jobs/company-enrichment-dto) data model.
9
+ * - `company`: Structured company data. Returns `source_text`, `confidence`, and `metadata`.
10
+ *
11
+ * See [Company enrichment](https://www.newscatcherapi.com/docs/web-search-api/api-reference/jobs/company-enrichment-dto) data model.
10
12
  */
11
13
  export declare const EnrichmentType: {
12
14
  readonly Text: "text";
@@ -7,7 +7,9 @@
7
7
  * - `date`: ISO format dates (YYYY-MM-DD)
8
8
  * - `option`: Enum-like fixed values (status, category)
9
9
  * - `url`: Web URLs
10
- * - `company`: Structured company data. Returns `source_text`, `confidence`, and `metadata`. See [Company enrichment](https://www.newscatcherapi.com/docs/web-search-api/api-reference/jobs/company-enrichment-dto) data model.
10
+ * - `company`: Structured company data. Returns `source_text`, `confidence`, and `metadata`.
11
+ *
12
+ * See [Company enrichment](https://www.newscatcherapi.com/docs/web-search-api/api-reference/jobs/company-enrichment-dto) data model.
11
13
  */
12
14
  export const EnrichmentType = {
13
15
  Text: "text",
@@ -0,0 +1,11 @@
1
+ import type * as CatchAllApi from "../index.mjs";
2
+ export interface EntityListResponse {
3
+ /** Array of entity objects for this page. */
4
+ entities: CatchAllApi.EntityResponse[];
5
+ /** Total number of entities matching the filter criteria. */
6
+ total: number;
7
+ /** Current page number. */
8
+ page: number;
9
+ /** Number of entities per page. */
10
+ page_size: number;
11
+ }