newscatcher-catchall-sdk 3.0.1 → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/README.md +2 -0
  2. package/dist/cjs/BaseClient.d.ts +12 -0
  3. package/dist/cjs/BaseClient.js +2 -2
  4. package/dist/cjs/api/errors/BadRequestError.js +1 -1
  5. package/dist/cjs/api/errors/ForbiddenError.js +1 -1
  6. package/dist/cjs/api/errors/NotFoundError.js +1 -1
  7. package/dist/cjs/api/errors/UnauthorizedError.js +1 -1
  8. package/dist/cjs/api/errors/UnprocessableEntityError.js +1 -1
  9. package/dist/cjs/api/resources/datasets/client/Client.d.ts +5 -3
  10. package/dist/cjs/api/resources/datasets/client/Client.js +11 -8
  11. package/dist/cjs/api/resources/entities/client/Client.d.ts +8 -6
  12. package/dist/cjs/api/resources/entities/client/Client.js +12 -9
  13. package/dist/cjs/api/resources/entities/client/requests/UpdateEntityRequest.d.ts +3 -1
  14. package/dist/cjs/api/resources/jobs/client/Client.d.ts +16 -0
  15. package/dist/cjs/api/resources/jobs/client/Client.js +60 -4
  16. package/dist/cjs/api/resources/jobs/client/requests/GetJobResultsCsvRequest.d.ts +10 -0
  17. package/dist/cjs/api/resources/jobs/client/requests/GetJobResultsCsvRequest.js +3 -0
  18. package/dist/cjs/api/resources/jobs/client/requests/SubmitRequestDto.d.ts +4 -0
  19. package/dist/cjs/api/resources/jobs/client/requests/index.d.ts +1 -0
  20. package/dist/cjs/api/resources/monitors/client/Client.d.ts +16 -0
  21. package/dist/cjs/api/resources/monitors/client/Client.js +59 -3
  22. package/dist/cjs/api/resources/monitors/client/requests/PullMonitorResultsCsvRequest.d.ts +10 -0
  23. package/dist/cjs/api/resources/monitors/client/requests/PullMonitorResultsCsvRequest.js +3 -0
  24. package/dist/cjs/api/resources/monitors/client/requests/index.d.ts +1 -0
  25. package/dist/cjs/api/resources/projects/client/Client.js +4 -3
  26. package/dist/cjs/api/resources/webhooks/client/Client.d.ts +25 -0
  27. package/dist/cjs/api/resources/webhooks/client/Client.js +78 -4
  28. package/dist/cjs/api/resources/webhooks/client/requests/CreateWebhookRequestDto.d.ts +2 -2
  29. package/dist/cjs/api/resources/webhooks/client/requests/TriggerWebhookRequest.d.ts +23 -0
  30. package/dist/cjs/api/resources/webhooks/client/requests/TriggerWebhookRequest.js +3 -0
  31. package/dist/cjs/api/resources/webhooks/client/requests/UpdateWebhookRequestDto.d.ts +2 -2
  32. package/dist/cjs/api/resources/webhooks/client/requests/index.d.ts +1 -0
  33. package/dist/cjs/api/types/CompanyAttributes.d.ts +0 -2
  34. package/dist/cjs/api/types/ConnectedDataset.d.ts +11 -0
  35. package/dist/cjs/api/types/ConnectedDataset.js +3 -0
  36. package/dist/cjs/api/types/ConnectedEntity.d.ts +2 -0
  37. package/dist/cjs/api/types/CreateEntityRequest.d.ts +6 -2
  38. package/dist/cjs/api/types/DatasetResponse.d.ts +15 -0
  39. package/dist/cjs/api/types/EntityResponse.d.ts +2 -0
  40. package/dist/cjs/api/types/EntitySummary.d.ts +2 -0
  41. package/dist/cjs/api/types/FormatterConfigDto.d.ts +15 -0
  42. package/dist/cjs/api/types/FormatterConfigDto.js +3 -0
  43. package/dist/cjs/api/types/InitializeResponseDto.d.ts +6 -1
  44. package/dist/cjs/api/types/PullJobResponseDto.d.ts +4 -0
  45. package/dist/cjs/api/types/PullMonitorResponseDto.d.ts +4 -0
  46. package/dist/cjs/api/types/WebhookResponseDto.d.ts +2 -2
  47. package/dist/cjs/api/types/index.d.ts +2 -0
  48. package/dist/cjs/api/types/index.js +2 -0
  49. package/dist/cjs/core/file/file.js +3 -0
  50. package/dist/cjs/core/form-data-utils/FormDataWrapper.js +3 -0
  51. package/dist/cjs/core/requestBody.d.ts +12 -0
  52. package/dist/cjs/core/requestBody.js +26 -0
  53. package/dist/cjs/core/url/qs.js +2 -2
  54. package/dist/cjs/errors/CatchAllApiError.d.ts +1 -0
  55. package/dist/cjs/errors/CatchAllApiError.js +5 -1
  56. package/dist/cjs/errors/CatchAllApiTimeoutError.d.ts +2 -2
  57. package/dist/cjs/errors/CatchAllApiTimeoutError.js +40 -6
  58. package/dist/cjs/version.d.ts +1 -1
  59. package/dist/cjs/version.js +1 -1
  60. package/dist/esm/BaseClient.d.mts +12 -0
  61. package/dist/esm/BaseClient.mjs +2 -2
  62. package/dist/esm/api/errors/BadRequestError.mjs +1 -1
  63. package/dist/esm/api/errors/ForbiddenError.mjs +1 -1
  64. package/dist/esm/api/errors/NotFoundError.mjs +1 -1
  65. package/dist/esm/api/errors/UnauthorizedError.mjs +1 -1
  66. package/dist/esm/api/errors/UnprocessableEntityError.mjs +1 -1
  67. package/dist/esm/api/resources/datasets/client/Client.d.mts +5 -3
  68. package/dist/esm/api/resources/datasets/client/Client.mjs +11 -8
  69. package/dist/esm/api/resources/entities/client/Client.d.mts +8 -6
  70. package/dist/esm/api/resources/entities/client/Client.mjs +12 -9
  71. package/dist/esm/api/resources/entities/client/requests/UpdateEntityRequest.d.mts +3 -1
  72. package/dist/esm/api/resources/jobs/client/Client.d.mts +16 -0
  73. package/dist/esm/api/resources/jobs/client/Client.mjs +60 -4
  74. package/dist/esm/api/resources/jobs/client/requests/GetJobResultsCsvRequest.d.mts +10 -0
  75. package/dist/esm/api/resources/jobs/client/requests/GetJobResultsCsvRequest.mjs +2 -0
  76. package/dist/esm/api/resources/jobs/client/requests/SubmitRequestDto.d.mts +4 -0
  77. package/dist/esm/api/resources/jobs/client/requests/index.d.mts +1 -0
  78. package/dist/esm/api/resources/monitors/client/Client.d.mts +16 -0
  79. package/dist/esm/api/resources/monitors/client/Client.mjs +59 -3
  80. package/dist/esm/api/resources/monitors/client/requests/PullMonitorResultsCsvRequest.d.mts +10 -0
  81. package/dist/esm/api/resources/monitors/client/requests/PullMonitorResultsCsvRequest.mjs +2 -0
  82. package/dist/esm/api/resources/monitors/client/requests/index.d.mts +1 -0
  83. package/dist/esm/api/resources/projects/client/Client.mjs +4 -3
  84. package/dist/esm/api/resources/webhooks/client/Client.d.mts +25 -0
  85. package/dist/esm/api/resources/webhooks/client/Client.mjs +78 -4
  86. package/dist/esm/api/resources/webhooks/client/requests/CreateWebhookRequestDto.d.mts +2 -2
  87. package/dist/esm/api/resources/webhooks/client/requests/TriggerWebhookRequest.d.mts +23 -0
  88. package/dist/esm/api/resources/webhooks/client/requests/TriggerWebhookRequest.mjs +2 -0
  89. package/dist/esm/api/resources/webhooks/client/requests/UpdateWebhookRequestDto.d.mts +2 -2
  90. package/dist/esm/api/resources/webhooks/client/requests/index.d.mts +1 -0
  91. package/dist/esm/api/types/CompanyAttributes.d.mts +0 -2
  92. package/dist/esm/api/types/ConnectedDataset.d.mts +11 -0
  93. package/dist/esm/api/types/ConnectedDataset.mjs +2 -0
  94. package/dist/esm/api/types/ConnectedEntity.d.mts +2 -0
  95. package/dist/esm/api/types/CreateEntityRequest.d.mts +6 -2
  96. package/dist/esm/api/types/DatasetResponse.d.mts +15 -0
  97. package/dist/esm/api/types/EntityResponse.d.mts +2 -0
  98. package/dist/esm/api/types/EntitySummary.d.mts +2 -0
  99. package/dist/esm/api/types/FormatterConfigDto.d.mts +15 -0
  100. package/dist/esm/api/types/FormatterConfigDto.mjs +2 -0
  101. package/dist/esm/api/types/InitializeResponseDto.d.mts +6 -1
  102. package/dist/esm/api/types/PullJobResponseDto.d.mts +4 -0
  103. package/dist/esm/api/types/PullMonitorResponseDto.d.mts +4 -0
  104. package/dist/esm/api/types/WebhookResponseDto.d.mts +2 -2
  105. package/dist/esm/api/types/index.d.mts +2 -0
  106. package/dist/esm/api/types/index.mjs +2 -0
  107. package/dist/esm/core/file/file.mjs +3 -0
  108. package/dist/esm/core/form-data-utils/FormDataWrapper.mjs +3 -0
  109. package/dist/esm/core/requestBody.d.mts +12 -0
  110. package/dist/esm/core/requestBody.mjs +23 -0
  111. package/dist/esm/core/url/qs.mjs +2 -2
  112. package/dist/esm/errors/CatchAllApiError.d.mts +1 -0
  113. package/dist/esm/errors/CatchAllApiError.mjs +5 -1
  114. package/dist/esm/errors/CatchAllApiTimeoutError.d.mts +2 -2
  115. package/dist/esm/errors/CatchAllApiTimeoutError.mjs +7 -6
  116. package/dist/esm/version.d.mts +1 -1
  117. package/dist/esm/version.mjs +1 -1
  118. package/package.json +1 -1
  119. package/reference.md +216 -9
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * job_id: "job_id"
5
+ * }
6
+ */
7
+ export interface GetJobResultsCsvRequest {
8
+ /** Unique job identifier returned from [`POST /catchAll/submit`](https://www.newscatcherapi.com/docs/web-search-api/api-reference/jobs/create-job). */
9
+ job_id: string;
10
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -20,6 +20,10 @@ export interface SubmitRequestDto {
20
20
  * Custom validators for filtering web page clusters.
21
21
  *
22
22
  * If not provided, validators are generated automatically based on the query.
23
+ * The system may also inject validators during the `analyzing` stage — for
24
+ * example, converting a relative time qualifier into an explicit event-date
25
+ * gate. The returned `validators[]` in the job status shows the complete
26
+ * applied set, including any system-added ones.
23
27
  */
24
28
  validators?: CatchAllApi.ValidatorSchema[];
25
29
  /**
@@ -1,5 +1,6 @@
1
1
  export type { ContinueRequestDto } from "./ContinueRequestDto.mjs";
2
2
  export type { DeleteJobRequest } from "./DeleteJobRequest.mjs";
3
+ export type { GetJobResultsCsvRequest } from "./GetJobResultsCsvRequest.mjs";
3
4
  export type { GetJobResultsRequest } from "./GetJobResultsRequest.mjs";
4
5
  export type { GetJobStatusRequest } from "./GetJobStatusRequest.mjs";
5
6
  export type { GetUserJobsRequest } from "./GetUserJobsRequest.mjs";
@@ -65,6 +65,22 @@ export declare class MonitorsClient {
65
65
  */
66
66
  pullMonitorResults(request: CatchAllApi.PullMonitorResultsRequest, requestOptions?: MonitorsClient.RequestOptions): core.HttpResponsePromise<CatchAllApi.PullMonitorResponseDto>;
67
67
  private __pullMonitorResults;
68
+ /**
69
+ * Returns the most recent run's records as a CSV download. One row per record, with enrichment fields as columns, citations as a JSON column, and connected entities split into `event_associated_entities` and `mention_entities` JSON columns.
70
+ *
71
+ * @param {CatchAllApi.PullMonitorResultsCsvRequest} request
72
+ * @param {MonitorsClient.RequestOptions} requestOptions - Request-specific configuration.
73
+ *
74
+ * @throws {@link CatchAllApi.ForbiddenError}
75
+ * @throws {@link CatchAllApi.NotFoundError}
76
+ *
77
+ * @example
78
+ * await client.monitors.pullMonitorResultsCsv({
79
+ * monitor_id: "monitor_id"
80
+ * })
81
+ */
82
+ pullMonitorResultsCsv(request: CatchAllApi.PullMonitorResultsCsvRequest, requestOptions?: MonitorsClient.RequestOptions): core.HttpResponsePromise<string>;
83
+ private __pullMonitorResultsCsv;
68
84
  /**
69
85
  * Return all jobs executed by a monitor.
70
86
  *
@@ -22,6 +22,7 @@ var __rest = (this && this.__rest) || function (s, e) {
22
22
  import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
23
23
  import { mergeHeaders } from "../../../../core/headers.mjs";
24
24
  import * as core from "../../../../core/index.mjs";
25
+ import { mergeAdditionalBodyParameters } from "../../../../core/requestBody.mjs";
25
26
  import * as environments from "../../../../environments.mjs";
26
27
  import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.mjs";
27
28
  import * as errors from "../../../../errors/index.mjs";
@@ -131,7 +132,7 @@ export class MonitorsClient {
131
132
  contentType: "application/json",
132
133
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
133
134
  requestType: "json",
134
- body: request,
135
+ body: mergeAdditionalBodyParameters(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
135
136
  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,
136
137
  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,
137
138
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -210,6 +211,61 @@ export class MonitorsClient {
210
211
  return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/catchAll/monitors/pull/{monitor_id}");
211
212
  });
212
213
  }
214
+ /**
215
+ * Returns the most recent run's records as a CSV download. One row per record, with enrichment fields as columns, citations as a JSON column, and connected entities split into `event_associated_entities` and `mention_entities` JSON columns.
216
+ *
217
+ * @param {CatchAllApi.PullMonitorResultsCsvRequest} request
218
+ * @param {MonitorsClient.RequestOptions} requestOptions - Request-specific configuration.
219
+ *
220
+ * @throws {@link CatchAllApi.ForbiddenError}
221
+ * @throws {@link CatchAllApi.NotFoundError}
222
+ *
223
+ * @example
224
+ * await client.monitors.pullMonitorResultsCsv({
225
+ * monitor_id: "monitor_id"
226
+ * })
227
+ */
228
+ pullMonitorResultsCsv(request, requestOptions) {
229
+ return core.HttpResponsePromise.fromPromise(this.__pullMonitorResultsCsv(request, requestOptions));
230
+ }
231
+ __pullMonitorResultsCsv(request, requestOptions) {
232
+ return __awaiter(this, void 0, void 0, function* () {
233
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
234
+ const { monitor_id: monitorId } = request;
235
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
236
+ 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);
237
+ const _response = yield core.fetcher({
238
+ 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)}/csv`),
239
+ method: "GET",
240
+ headers: _headers,
241
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
242
+ responseType: "text",
243
+ 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,
244
+ 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,
245
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
246
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
247
+ logging: this._options.logging,
248
+ });
249
+ if (_response.ok) {
250
+ return { data: _response.body, rawResponse: _response.rawResponse };
251
+ }
252
+ if (_response.error.reason === "status-code") {
253
+ switch (_response.error.statusCode) {
254
+ case 403:
255
+ throw new CatchAllApi.ForbiddenError(_response.error.body, _response.rawResponse);
256
+ case 404:
257
+ throw new CatchAllApi.NotFoundError(_response.error.body, _response.rawResponse);
258
+ default:
259
+ throw new errors.CatchAllApiError({
260
+ statusCode: _response.error.statusCode,
261
+ body: _response.error.body,
262
+ rawResponse: _response.rawResponse,
263
+ });
264
+ }
265
+ }
266
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/catchAll/monitors/pull/{monitor_id}/csv");
267
+ });
268
+ }
213
269
  /**
214
270
  * Return all jobs executed by a monitor.
215
271
  *
@@ -360,7 +416,7 @@ export class MonitorsClient {
360
416
  contentType: "application/json",
361
417
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
362
418
  requestType: "json",
363
- body: _body,
419
+ body: mergeAdditionalBodyParameters(_body, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
364
420
  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,
365
421
  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,
366
422
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -539,7 +595,7 @@ export class MonitorsClient {
539
595
  contentType: "application/json",
540
596
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
541
597
  requestType: "json",
542
- body: _body,
598
+ body: mergeAdditionalBodyParameters(_body, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
543
599
  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,
544
600
  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,
545
601
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * monitor_id: "monitor_id"
5
+ * }
6
+ */
7
+ export interface PullMonitorResultsCsvRequest {
8
+ /** Monitor identifier. */
9
+ monitor_id: string;
10
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -5,5 +5,6 @@ export type { EnableMonitorRequestDto } from "./EnableMonitorRequestDto.mjs";
5
5
  export type { GetMonitorStatusHistoryRequest } from "./GetMonitorStatusHistoryRequest.mjs";
6
6
  export type { ListMonitorJobsRequest } from "./ListMonitorJobsRequest.mjs";
7
7
  export type { ListMonitorsRequest } from "./ListMonitorsRequest.mjs";
8
+ export type { PullMonitorResultsCsvRequest } from "./PullMonitorResultsCsvRequest.mjs";
8
9
  export type { PullMonitorResultsRequest } from "./PullMonitorResultsRequest.mjs";
9
10
  export type { UpdateMonitorRequestDto } from "./UpdateMonitorRequestDto.mjs";
@@ -22,6 +22,7 @@ var __rest = (this && this.__rest) || function (s, e) {
22
22
  import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
23
23
  import { mergeHeaders } from "../../../../core/headers.mjs";
24
24
  import * as core from "../../../../core/index.mjs";
25
+ import { mergeAdditionalBodyParameters } from "../../../../core/requestBody.mjs";
25
26
  import * as environments from "../../../../environments.mjs";
26
27
  import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.mjs";
27
28
  import * as errors from "../../../../errors/index.mjs";
@@ -131,7 +132,7 @@ export class ProjectsClient {
131
132
  contentType: "application/json",
132
133
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
133
134
  requestType: "json",
134
- body: request,
135
+ body: mergeAdditionalBodyParameters(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
135
136
  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,
136
137
  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,
137
138
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -305,7 +306,7 @@ export class ProjectsClient {
305
306
  contentType: "application/json",
306
307
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
307
308
  requestType: "json",
308
- body: _body,
309
+ body: mergeAdditionalBodyParameters(_body, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
309
310
  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,
310
311
  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,
311
312
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -497,7 +498,7 @@ export class ProjectsClient {
497
498
  contentType: "application/json",
498
499
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
499
500
  requestType: "json",
500
- body: _body,
501
+ body: mergeAdditionalBodyParameters(_body, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
501
502
  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,
502
503
  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,
503
504
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -208,6 +208,31 @@ export declare class WebhooksClient {
208
208
  */
209
209
  listWebhooksForResource(request: CatchAllApi.ListWebhooksForResourceRequest, requestOptions?: WebhooksClient.RequestOptions): core.HttpResponsePromise<CatchAllApi.ListWebhooksResponseDto>;
210
210
  private __listWebhooksForResource;
211
+ /**
212
+ * Manually dispatches a webhook delivery for a resource on demand, without
213
+ * waiting for the next job or monitor cycle.
214
+ *
215
+ * Use this to re-deliver results after a failed delivery, replay a specific
216
+ * job's results, or validate a webhook against live data. The webhook must
217
+ * already be assigned to the resource.
218
+ *
219
+ * @param {CatchAllApi.TriggerWebhookRequest} request
220
+ * @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
221
+ *
222
+ * @throws {@link CatchAllApi.ForbiddenError}
223
+ * @throws {@link CatchAllApi.NotFoundError}
224
+ * @throws {@link CatchAllApi.UnprocessableEntityError}
225
+ *
226
+ * @example
227
+ * await client.webhooks.triggerWebhook({
228
+ * resource_type: "job",
229
+ * resource_id: "3fec5b07-8786-46d7-9486-d43ff67eccd4",
230
+ * webhook_id: "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
231
+ * job_id: "3fec5b07-8786-46d7-9486-d43ff67eccd4"
232
+ * })
233
+ */
234
+ triggerWebhook(request: CatchAllApi.TriggerWebhookRequest, requestOptions?: WebhooksClient.RequestOptions): core.HttpResponsePromise<void>;
235
+ private __triggerWebhook;
211
236
  /**
212
237
  * Returns a paginated delivery log for a given resource, ordered by timestamp descending.
213
238
  *
@@ -22,6 +22,7 @@ var __rest = (this && this.__rest) || function (s, e) {
22
22
  import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
23
23
  import { mergeHeaders } from "../../../../core/headers.mjs";
24
24
  import * as core from "../../../../core/index.mjs";
25
+ import { mergeAdditionalBodyParameters } from "../../../../core/requestBody.mjs";
25
26
  import * as environments from "../../../../environments.mjs";
26
27
  import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.mjs";
27
28
  import * as errors from "../../../../errors/index.mjs";
@@ -132,7 +133,7 @@ export class WebhooksClient {
132
133
  contentType: "application/json",
133
134
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
134
135
  requestType: "json",
135
- body: request,
136
+ body: mergeAdditionalBodyParameters(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
136
137
  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,
137
138
  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,
138
139
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -305,7 +306,7 @@ export class WebhooksClient {
305
306
  contentType: "application/json",
306
307
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
307
308
  requestType: "json",
308
- body: _body,
309
+ body: mergeAdditionalBodyParameters(_body, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
309
310
  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,
310
311
  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,
311
312
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -371,7 +372,7 @@ export class WebhooksClient {
371
372
  contentType: "application/json",
372
373
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
373
374
  requestType: "json",
374
- body: _body,
375
+ body: mergeAdditionalBodyParameters(_body, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
375
376
  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,
376
377
  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,
377
378
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -507,7 +508,7 @@ export class WebhooksClient {
507
508
  contentType: "application/json",
508
509
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
509
510
  requestType: "json",
510
- body: _body,
511
+ body: mergeAdditionalBodyParameters(_body, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
511
512
  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,
512
513
  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,
513
514
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -666,6 +667,79 @@ export class WebhooksClient {
666
667
  return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/catchAll/resources/{resource_type}/{resource_id}/webhooks");
667
668
  });
668
669
  }
670
+ /**
671
+ * Manually dispatches a webhook delivery for a resource on demand, without
672
+ * waiting for the next job or monitor cycle.
673
+ *
674
+ * Use this to re-deliver results after a failed delivery, replay a specific
675
+ * job's results, or validate a webhook against live data. The webhook must
676
+ * already be assigned to the resource.
677
+ *
678
+ * @param {CatchAllApi.TriggerWebhookRequest} request
679
+ * @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
680
+ *
681
+ * @throws {@link CatchAllApi.ForbiddenError}
682
+ * @throws {@link CatchAllApi.NotFoundError}
683
+ * @throws {@link CatchAllApi.UnprocessableEntityError}
684
+ *
685
+ * @example
686
+ * await client.webhooks.triggerWebhook({
687
+ * resource_type: "job",
688
+ * resource_id: "3fec5b07-8786-46d7-9486-d43ff67eccd4",
689
+ * webhook_id: "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
690
+ * job_id: "3fec5b07-8786-46d7-9486-d43ff67eccd4"
691
+ * })
692
+ */
693
+ triggerWebhook(request, requestOptions) {
694
+ return core.HttpResponsePromise.fromPromise(this.__triggerWebhook(request, requestOptions));
695
+ }
696
+ __triggerWebhook(request, requestOptions) {
697
+ return __awaiter(this, void 0, void 0, function* () {
698
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
699
+ const { resource_type: resourceType, resource_id: resourceId, webhook_id: webhookId, job_id: jobId } = request;
700
+ const _queryParams = {
701
+ webhook_id: webhookId,
702
+ job_id: jobId,
703
+ };
704
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
705
+ 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);
706
+ const _response = yield core.fetcher({
707
+ 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/webhook/trigger/${core.url.encodePathParam(resourceType)}/${core.url.encodePathParam(resourceId)}`),
708
+ method: "POST",
709
+ headers: _headers,
710
+ queryString: core.url
711
+ .queryBuilder()
712
+ .addMany(_queryParams)
713
+ .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
714
+ .build(),
715
+ 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,
716
+ 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,
717
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
718
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
719
+ logging: this._options.logging,
720
+ });
721
+ if (_response.ok) {
722
+ return { data: undefined, rawResponse: _response.rawResponse };
723
+ }
724
+ if (_response.error.reason === "status-code") {
725
+ switch (_response.error.statusCode) {
726
+ case 403:
727
+ throw new CatchAllApi.ForbiddenError(_response.error.body, _response.rawResponse);
728
+ case 404:
729
+ throw new CatchAllApi.NotFoundError(_response.error.body, _response.rawResponse);
730
+ case 422:
731
+ throw new CatchAllApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
732
+ default:
733
+ throw new errors.CatchAllApiError({
734
+ statusCode: _response.error.statusCode,
735
+ body: _response.error.body,
736
+ rawResponse: _response.rawResponse,
737
+ });
738
+ }
739
+ }
740
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/catchAll/webhook/trigger/{resource_type}/{resource_id}");
741
+ });
742
+ }
669
743
  /**
670
744
  * Returns a paginated delivery log for a given resource, ordered by timestamp descending.
671
745
  *
@@ -37,6 +37,6 @@ export interface CreateWebhookRequestDto {
37
37
  * - `basic`: Adds an `Authorization: Basic <credentials>` header.
38
38
  */
39
39
  auth?: CatchAllApi.CreateWebhookRequestDtoAuth;
40
- /** Custom payload transformation configuration. Required only when `type` is `custom`. */
41
- formatter_config?: Record<string, unknown> | null;
40
+ /** Custom payload formatter. Required when `type` is `custom`. */
41
+ formatter_config?: CatchAllApi.FormatterConfigDto | null;
42
42
  }
@@ -0,0 +1,23 @@
1
+ import type * as CatchAllApi from "../../../../index.mjs";
2
+ /**
3
+ * @example
4
+ * {
5
+ * resource_type: "job",
6
+ * resource_id: "3fec5b07-8786-46d7-9486-d43ff67eccd4",
7
+ * webhook_id: "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
8
+ * job_id: "3fec5b07-8786-46d7-9486-d43ff67eccd4"
9
+ * }
10
+ */
11
+ export interface TriggerWebhookRequest {
12
+ resource_type: CatchAllApi.MappableResourceType;
13
+ /** Unique resource identifier. */
14
+ resource_id: string;
15
+ /** Identifier of the webhook to trigger. Must be assigned to the resource. */
16
+ webhook_id: string;
17
+ /**
18
+ * Specific job run to deliver. Optional for `job` resources; for
19
+ * `monitor` and `monitor_group` resources, selects a past run to replay.
20
+ * When omitted, the latest available results are delivered.
21
+ */
22
+ job_id?: string;
23
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -23,8 +23,8 @@ export interface UpdateWebhookRequestDto {
23
23
  params?: Record<string, string>;
24
24
  /** Updated authentication configuration. Replaces existing auth entirely. */
25
25
  auth?: CatchAllApi.UpdateWebhookRequestDtoAuth;
26
- /** Updated formatter configuration. */
27
- formatter_config?: Record<string, unknown> | null;
26
+ /** Updated custom payload formatter. Set only when `type` is `custom`. */
27
+ formatter_config?: CatchAllApi.FormatterConfigDto | null;
28
28
  /** Set to `false` to disable delivery without deleting the webhook. */
29
29
  is_active?: boolean;
30
30
  }
@@ -8,4 +8,5 @@ export type { ListWebhooksForResourceRequest } from "./ListWebhooksForResourceRe
8
8
  export type { ListWebhooksRequest } from "./ListWebhooksRequest.mjs";
9
9
  export type { RemoveWebhookResourceRequest } from "./RemoveWebhookResourceRequest.mjs";
10
10
  export type { TestWebhookRequestDto } from "./TestWebhookRequestDto.mjs";
11
+ export type { TriggerWebhookRequest } from "./TriggerWebhookRequest.mjs";
11
12
  export type { UpdateWebhookRequestDto } from "./UpdateWebhookRequestDto.mjs";
@@ -8,8 +8,6 @@ export interface CompanyAttributes {
8
8
  * The most reliable identifier — strongly recommended when available.
9
9
  */
10
10
  domain?: (string | null) | undefined;
11
- /** Detailed description of the company used for matching. */
12
- description?: (string | null) | undefined;
13
11
  /** Names of key people associated with the company (founders, executives, etc.). Improves matching for articles that mention people rather than the company name. */
14
12
  key_persons?: (string[] | null) | undefined;
15
13
  /** Alternative names, abbreviations, or aliases. Helps resolve common variations of the company name. */
@@ -0,0 +1,11 @@
1
+ /**
2
+ * A dataset used to narrow the retrieval scope of a job or monitor, returned with its identifier and name.
3
+ */
4
+ export interface ConnectedDataset {
5
+ /** Dataset identifier. */
6
+ id: string;
7
+ /** Dataset name as stored. Check `is_deleted` to determine whether the dataset is still active. */
8
+ name: string;
9
+ /** True when the dataset has been deleted. */
10
+ is_deleted?: boolean | undefined;
11
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -26,6 +26,8 @@ export interface ConnectedEntity {
26
26
  association_type?: string | undefined;
27
27
  /** The entity type. */
28
28
  type: string;
29
+ /** External identifier for this entity. Null when not set. */
30
+ external_entity_id?: (string | null) | undefined;
29
31
  /**
30
32
  * The stored attributes for this entity. Present only when attributes exist in the database.
31
33
  *
@@ -1,13 +1,17 @@
1
1
  import type * as CatchAllApi from "../index.mjs";
2
2
  /**
3
- * Request body for creating a single entity. Only `name` is required.
3
+ * Request body for creating a single entity. The `name` field is required.
4
+ * You must also provide at least one of: a top-level `description` or a `domain`
5
+ * inside `additional_attributes.company_attributes`.
4
6
  * The more fields you provide, the better the matching quality.
5
7
  */
6
8
  export interface CreateEntityRequest {
7
9
  /** The company or person name. Required and must be non-empty. */
8
10
  name: string;
9
11
  entity_type?: CatchAllApi.EntityType | undefined;
10
- /** Free-text description of the entity used for disambiguation when similar names exist. */
12
+ /** Free-text description of the entity used for disambiguation when similar names exist. See [Writing effective descriptions](https://www.newscatcherapi.com/docs/web-search-api/concepts/company-search#writing-effective-descriptions) for guidance on improving matching quality. */
11
13
  description?: string | undefined;
14
+ /** Optional external identifier for this entity. Free-form string, not enforced as unique. Use it to store your own CRM, data warehouse, or internal database ID so you can join CatchAll results back to your systems. */
15
+ external_entity_id?: string | undefined;
12
16
  additional_attributes?: CatchAllApi.AdditionalAttributes | undefined;
13
17
  }
@@ -10,6 +10,21 @@ export interface DatasetResponse {
10
10
  description?: (string | null) | undefined;
11
11
  /** Total number of entities in this dataset. */
12
12
  entity_count?: number | undefined;
13
+ /**
14
+ * Count of entities grouped by processing status. Keys are status values
15
+ * (`ready`, `pending`, `enriching`, `failed`); values are entity counts.
16
+ */
17
+ entity_status_breakdown?: Record<string, number> | undefined;
18
+ /**
19
+ * Overall health score of the dataset, from 0 to 100. Reflects how many
20
+ * entities have sufficient identifying information for reliable matching.
21
+ */
22
+ health_score?: number | undefined;
23
+ /**
24
+ * Health scores broken down by entity type. Keys are entity types
25
+ * (e.g. `company`); values are scores from 0 to 100.
26
+ */
27
+ health_breakdown?: Record<string, number> | undefined;
13
28
  latest_status?: CatchAllApi.DatasetStatus | undefined;
14
29
  /** ID of the user who created this dataset. */
15
30
  created_by_user_id?: string | undefined;
@@ -9,6 +9,8 @@ export interface EntityResponse {
9
9
  name: string;
10
10
  /** Free-text description. */
11
11
  description?: (string | null) | undefined;
12
+ /** External identifier for this entity. Null when not set. */
13
+ external_entity_id?: (string | null) | undefined;
12
14
  additional_attributes?: CatchAllApi.AdditionalAttributes | undefined;
13
15
  status: CatchAllApi.EntityStatus;
14
16
  /** ID of the user who created this entity. */
@@ -14,5 +14,7 @@ export interface EntitySummary {
14
14
  status: CatchAllApi.EntityStatus;
15
15
  /** Free-text description. */
16
16
  description?: (string | null) | undefined;
17
+ /** External identifier for this entity. Null when not set. */
18
+ external_entity_id?: (string | null) | undefined;
17
19
  attributes?: CatchAllApi.CompanyAttributes | undefined;
18
20
  }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Custom payload formatter for `custom` webhooks. A Liquid template is
3
+ * rendered at dispatch time to build a fully tailored request body — trim or
4
+ * rename fields, apply conditional logic, or emit non-JSON formats.
5
+ */
6
+ export interface FormatterConfigDto {
7
+ /** Liquid template string rendered at dispatch time. Maximum 10 KB. */
8
+ template: string;
9
+ /**
10
+ * Content-Type of the rendered output. Supported values: `application/json`,
11
+ * `application/ld+json`, `text/html`, `text/plain`, `text/xml`,
12
+ * `application/xml`, `text/csv`.
13
+ */
14
+ content_type?: string | undefined;
15
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -4,7 +4,12 @@ export interface InitializeResponseDto {
4
4
  query: string;
5
5
  /** Echo of the context from the request. Null if not provided. */
6
6
  context?: (string | null) | undefined;
7
- /** Suggested validators for filtering relevant web pages. */
7
+ /**
8
+ * Suggested validators for filtering relevant web pages. When the job is
9
+ * submitted, the system may inject additional validators during the `analyzing`
10
+ * stage — check the returned `validators[]` in the job status to see the
11
+ * complete applied set.
12
+ */
8
13
  validators: CatchAllApi.ValidatorSchema[];
9
14
  /** Suggested enrichment fields for data extraction. */
10
15
  enrichments: CatchAllApi.EnrichmentSchema[];
@@ -37,6 +37,10 @@ export interface PullJobResponseDto {
37
37
  total_pages?: number | undefined;
38
38
  /** Processing mode used for this job. */
39
39
  mode?: PullJobResponseDto.Mode | undefined;
40
+ /** Datasets used to narrow retrieval scope, each with `id` and `name`. */
41
+ connected_datasets?: CatchAllApi.ConnectedDataset[] | undefined;
42
+ /** True when the query was submitted as an all-news (watchlist-generic) query. */
43
+ is_all_news_query?: boolean | undefined;
40
44
  /** Present when the job was shared with the authenticated user by another organization member. `null` when the user owns the job. */
41
45
  sharing_info?: (CatchAllApi.SharingInfo | null) | undefined;
42
46
  /** Array of extracted records with structured data and citations. */
@@ -21,6 +21,10 @@ export interface PullMonitorResponseDto {
21
21
  all_records?: CatchAllApi.MonitorRecord[] | undefined;
22
22
  /** Record limit applied to this monitor's jobs. */
23
23
  limit?: (number | null) | undefined;
24
+ /** Datasets used to narrow retrieval scope, each with `id` and `name`. */
25
+ connected_datasets?: CatchAllApi.ConnectedDataset[] | undefined;
26
+ /** True when the reference job was submitted as an all-news (watchlist-generic) query. */
27
+ is_all_news_query?: boolean | undefined;
24
28
  }
25
29
  export declare namespace PullMonitorResponseDto {
26
30
  /**
@@ -13,8 +13,8 @@ export interface WebhookResponseDto {
13
13
  headers?: Record<string, string> | undefined;
14
14
  /** Query parameters appended to the webhook URL. */
15
15
  params?: Record<string, string> | undefined;
16
- /** Custom payload transformation configuration. Used only when `type` is `custom`. */
17
- formatter_config?: (Record<string, unknown> | null) | undefined;
16
+ /** Custom payload formatter. Set only when `type` is `custom`. */
17
+ formatter_config?: (CatchAllApi.FormatterConfigDto | null) | undefined;
18
18
  /** True if the webhook is active; false otherwise. */
19
19
  is_active: boolean;
20
20
  /** Organization that owns this webhook. */