newscatcher-catchall-sdk 0.3.1 → 1.1.2

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 (169) hide show
  1. package/README.md +284 -286
  2. package/dist/cjs/BaseClient.js +2 -2
  3. package/dist/cjs/api/resources/jobs/client/Client.d.ts +32 -8
  4. package/dist/cjs/api/resources/jobs/client/Client.js +93 -20
  5. package/dist/cjs/api/resources/jobs/client/requests/ContinueRequestDto.d.ts +3 -3
  6. package/dist/cjs/api/resources/jobs/client/requests/GetJobResultsRequest.d.ts +2 -2
  7. package/dist/cjs/api/resources/jobs/client/requests/GetJobStatusRequest.d.ts +2 -2
  8. package/dist/cjs/api/resources/jobs/client/requests/GetUserJobsRequest.d.ts +10 -0
  9. package/dist/cjs/api/resources/jobs/client/requests/InitializeRequestDto.d.ts +12 -0
  10. package/dist/cjs/api/resources/jobs/client/requests/SubmitRequestDto.d.ts +17 -6
  11. package/dist/cjs/api/resources/jobs/client/requests/index.d.ts +2 -0
  12. package/dist/cjs/api/resources/jobs/exports.d.ts +2 -0
  13. package/dist/cjs/api/resources/jobs/exports.js +21 -0
  14. package/dist/cjs/api/resources/meta/exports.d.ts +2 -0
  15. package/dist/cjs/api/resources/meta/exports.js +21 -0
  16. package/dist/cjs/api/resources/meta/types/GetVersionResponse.d.ts +1 -1
  17. package/dist/cjs/api/resources/meta/types/HealthCheckResponse.d.ts +1 -1
  18. package/dist/cjs/api/resources/monitors/client/Client.d.ts +23 -33
  19. package/dist/cjs/api/resources/monitors/client/Client.js +35 -37
  20. package/dist/cjs/api/resources/monitors/client/requests/CreateMonitorRequestDto.d.ts +26 -5
  21. package/dist/cjs/api/resources/monitors/client/requests/EnableMonitorRequestDto.d.ts +17 -0
  22. package/dist/cjs/api/resources/monitors/client/requests/ListMonitorsRequest.d.ts +10 -0
  23. package/dist/cjs/api/resources/monitors/client/requests/ListMonitorsRequest.js +3 -0
  24. package/dist/cjs/api/resources/monitors/client/requests/UpdateMonitorRequestDto.d.ts +2 -0
  25. package/dist/cjs/api/resources/monitors/client/requests/index.d.ts +2 -1
  26. package/dist/cjs/api/resources/monitors/exports.d.ts +2 -0
  27. package/dist/cjs/api/resources/monitors/exports.js +21 -0
  28. package/dist/cjs/api/types/BaseRecord.d.ts +38 -0
  29. package/dist/cjs/api/types/BaseRecord.js +16 -0
  30. package/dist/cjs/api/types/Citation.d.ts +3 -3
  31. package/dist/cjs/api/types/CompanyEnrichmentOutput.d.ts +29 -0
  32. package/dist/cjs/api/types/CompanyEnrichmentOutput.js +16 -0
  33. package/dist/cjs/api/types/ContinueResponseDto.d.ts +2 -2
  34. package/dist/cjs/api/types/CreateMonitorResponseDto.d.ts +1 -1
  35. package/dist/cjs/api/types/EndDate.d.ts +8 -0
  36. package/dist/cjs/api/types/EndDate.js +3 -0
  37. package/dist/cjs/api/types/EnrichmentSchema.d.ts +13 -0
  38. package/dist/cjs/api/types/EnrichmentSchema.js +3 -0
  39. package/dist/cjs/api/types/EnrichmentType.d.ts +19 -0
  40. package/dist/cjs/api/types/EnrichmentType.js +22 -0
  41. package/dist/cjs/api/types/Error_.d.ts +1 -1
  42. package/dist/cjs/api/types/InitializeResponseDto.d.ts +19 -0
  43. package/dist/cjs/api/types/InitializeResponseDto.js +3 -0
  44. package/dist/cjs/api/types/JobStep.d.ts +2 -2
  45. package/dist/cjs/api/types/Limit.d.ts +6 -0
  46. package/dist/cjs/api/types/Limit.js +3 -0
  47. package/dist/cjs/api/types/ListMonitorsResponseDto.d.ts +7 -1
  48. package/dist/cjs/api/types/ListUserJobsResponseDto.d.ts +11 -8
  49. package/dist/cjs/api/types/MonitorCitation.d.ts +3 -8
  50. package/dist/cjs/api/types/MonitorListItemDto.d.ts +7 -7
  51. package/dist/cjs/api/types/MonitorRecord.d.ts +4 -14
  52. package/dist/{esm/api/types/JobStatus.d.mts → cjs/api/types/PublicJobStatus.d.ts} +4 -4
  53. package/dist/cjs/api/types/{JobStatus.js → PublicJobStatus.js} +4 -4
  54. package/dist/cjs/api/types/PullJobResponseDto.d.ts +28 -23
  55. package/dist/cjs/api/types/PullMonitorResponseDto.d.ts +12 -12
  56. package/dist/cjs/api/types/Query.d.ts +1 -1
  57. package/dist/cjs/api/types/Record_.d.ts +2 -12
  58. package/dist/cjs/api/types/ReferenceJob.d.ts +3 -3
  59. package/dist/cjs/api/types/StartDate.d.ts +8 -0
  60. package/dist/cjs/api/types/StartDate.js +3 -0
  61. package/dist/cjs/api/types/StatusResponseDto.d.ts +2 -2
  62. package/dist/cjs/api/types/{SubmitResponseBody.d.ts → SubmitResponseDto.d.ts} +1 -1
  63. package/dist/cjs/api/types/SubmitResponseDto.js +3 -0
  64. package/dist/cjs/api/types/UserJob.d.ts +10 -0
  65. package/dist/cjs/api/types/UserJob.js +3 -0
  66. package/dist/cjs/api/types/ValidationErrorDetail.d.ts +3 -3
  67. package/dist/cjs/api/types/ValidationErrorResponse.d.ts +1 -1
  68. package/dist/cjs/api/types/ValidatorSchema.d.ts +13 -0
  69. package/dist/cjs/api/types/ValidatorSchema.js +3 -0
  70. package/dist/cjs/api/types/WebhookDto.d.ts +4 -4
  71. package/dist/cjs/api/types/WebhookPayload.d.ts +9 -9
  72. package/dist/cjs/api/types/index.d.ts +12 -3
  73. package/dist/cjs/api/types/index.js +12 -3
  74. package/dist/cjs/core/fetcher/Fetcher.js +8 -2
  75. package/dist/cjs/core/fetcher/makeRequest.d.ts +6 -1
  76. package/dist/cjs/core/fetcher/makeRequest.js +30 -9
  77. package/dist/cjs/core/runtime/runtime.js +8 -7
  78. package/dist/cjs/version.d.ts +1 -1
  79. package/dist/cjs/version.js +1 -1
  80. package/dist/esm/BaseClient.mjs +2 -2
  81. package/dist/esm/api/resources/jobs/client/Client.d.mts +32 -8
  82. package/dist/esm/api/resources/jobs/client/Client.mjs +93 -20
  83. package/dist/esm/api/resources/jobs/client/requests/ContinueRequestDto.d.mts +3 -3
  84. package/dist/esm/api/resources/jobs/client/requests/GetJobResultsRequest.d.mts +2 -2
  85. package/dist/esm/api/resources/jobs/client/requests/GetJobStatusRequest.d.mts +2 -2
  86. package/dist/esm/api/resources/jobs/client/requests/GetUserJobsRequest.d.mts +10 -0
  87. package/dist/esm/api/resources/jobs/client/requests/InitializeRequestDto.d.mts +12 -0
  88. package/dist/esm/api/resources/jobs/client/requests/SubmitRequestDto.d.mts +17 -6
  89. package/dist/esm/api/resources/jobs/client/requests/index.d.mts +2 -0
  90. package/dist/esm/api/resources/jobs/exports.d.mts +2 -0
  91. package/dist/esm/api/resources/jobs/exports.mjs +3 -0
  92. package/dist/esm/api/resources/meta/exports.d.mts +2 -0
  93. package/dist/esm/api/resources/meta/exports.mjs +3 -0
  94. package/dist/esm/api/resources/meta/types/GetVersionResponse.d.mts +1 -1
  95. package/dist/esm/api/resources/meta/types/HealthCheckResponse.d.mts +1 -1
  96. package/dist/esm/api/resources/monitors/client/Client.d.mts +23 -33
  97. package/dist/esm/api/resources/monitors/client/Client.mjs +35 -37
  98. package/dist/esm/api/resources/monitors/client/requests/CreateMonitorRequestDto.d.mts +26 -5
  99. package/dist/esm/api/resources/monitors/client/requests/EnableMonitorRequestDto.d.mts +17 -0
  100. package/dist/esm/api/resources/monitors/client/requests/ListMonitorsRequest.d.mts +10 -0
  101. package/dist/esm/api/resources/monitors/client/requests/ListMonitorsRequest.mjs +2 -0
  102. package/dist/esm/api/resources/monitors/client/requests/UpdateMonitorRequestDto.d.mts +2 -0
  103. package/dist/esm/api/resources/monitors/client/requests/index.d.mts +2 -1
  104. package/dist/esm/api/resources/monitors/exports.d.mts +2 -0
  105. package/dist/esm/api/resources/monitors/exports.mjs +3 -0
  106. package/dist/esm/api/types/BaseRecord.d.mts +38 -0
  107. package/dist/esm/api/types/BaseRecord.mjs +13 -0
  108. package/dist/esm/api/types/Citation.d.mts +3 -3
  109. package/dist/esm/api/types/CompanyEnrichmentOutput.d.mts +29 -0
  110. package/dist/esm/api/types/CompanyEnrichmentOutput.mjs +13 -0
  111. package/dist/esm/api/types/ContinueResponseDto.d.mts +2 -2
  112. package/dist/esm/api/types/CreateMonitorResponseDto.d.mts +1 -1
  113. package/dist/esm/api/types/EndDate.d.mts +8 -0
  114. package/dist/esm/api/types/EndDate.mjs +2 -0
  115. package/dist/esm/api/types/EnrichmentSchema.d.mts +13 -0
  116. package/dist/esm/api/types/EnrichmentSchema.mjs +2 -0
  117. package/dist/esm/api/types/EnrichmentType.d.mts +19 -0
  118. package/dist/esm/api/types/EnrichmentType.mjs +19 -0
  119. package/dist/esm/api/types/Error_.d.mts +1 -1
  120. package/dist/esm/api/types/InitializeResponseDto.d.mts +19 -0
  121. package/dist/esm/api/types/InitializeResponseDto.mjs +2 -0
  122. package/dist/esm/api/types/JobStep.d.mts +2 -2
  123. package/dist/esm/api/types/Limit.d.mts +6 -0
  124. package/dist/esm/api/types/Limit.mjs +2 -0
  125. package/dist/esm/api/types/ListMonitorsResponseDto.d.mts +7 -1
  126. package/dist/esm/api/types/ListUserJobsResponseDto.d.mts +11 -8
  127. package/dist/esm/api/types/MonitorCitation.d.mts +3 -8
  128. package/dist/esm/api/types/MonitorListItemDto.d.mts +7 -7
  129. package/dist/esm/api/types/MonitorRecord.d.mts +4 -14
  130. package/dist/{cjs/api/types/JobStatus.d.ts → esm/api/types/PublicJobStatus.d.mts} +4 -4
  131. package/dist/esm/api/types/{JobStatus.mjs → PublicJobStatus.mjs} +3 -3
  132. package/dist/esm/api/types/PullJobResponseDto.d.mts +28 -23
  133. package/dist/esm/api/types/PullMonitorResponseDto.d.mts +12 -12
  134. package/dist/esm/api/types/Query.d.mts +1 -1
  135. package/dist/esm/api/types/Record_.d.mts +2 -12
  136. package/dist/esm/api/types/ReferenceJob.d.mts +3 -3
  137. package/dist/esm/api/types/StartDate.d.mts +8 -0
  138. package/dist/esm/api/types/StartDate.mjs +2 -0
  139. package/dist/esm/api/types/StatusResponseDto.d.mts +2 -2
  140. package/dist/esm/api/types/{SubmitResponseBody.d.mts → SubmitResponseDto.d.mts} +1 -1
  141. package/dist/esm/api/types/SubmitResponseDto.mjs +2 -0
  142. package/dist/esm/api/types/UserJob.d.mts +10 -0
  143. package/dist/esm/api/types/UserJob.mjs +2 -0
  144. package/dist/esm/api/types/ValidationErrorDetail.d.mts +3 -3
  145. package/dist/esm/api/types/ValidationErrorResponse.d.mts +1 -1
  146. package/dist/esm/api/types/ValidatorSchema.d.mts +13 -0
  147. package/dist/esm/api/types/ValidatorSchema.mjs +2 -0
  148. package/dist/esm/api/types/WebhookDto.d.mts +4 -4
  149. package/dist/esm/api/types/WebhookPayload.d.mts +9 -9
  150. package/dist/esm/api/types/index.d.mts +12 -3
  151. package/dist/esm/api/types/index.mjs +12 -3
  152. package/dist/esm/core/fetcher/Fetcher.mjs +8 -2
  153. package/dist/esm/core/fetcher/makeRequest.d.mts +6 -1
  154. package/dist/esm/core/fetcher/makeRequest.mjs +28 -9
  155. package/dist/esm/core/runtime/runtime.mjs +8 -7
  156. package/dist/esm/version.d.mts +1 -1
  157. package/dist/esm/version.mjs +1 -1
  158. package/package.json +37 -4
  159. package/reference.md +115 -40
  160. package/dist/cjs/api/resources/monitors/client/requests/EnableMonitorRequest.d.ts +0 -10
  161. package/dist/cjs/api/types/Schema.d.ts +0 -6
  162. package/dist/esm/api/resources/monitors/client/requests/EnableMonitorRequest.d.mts +0 -10
  163. package/dist/esm/api/types/Schema.d.mts +0 -6
  164. /package/dist/cjs/api/resources/{monitors/client/requests/EnableMonitorRequest.js → jobs/client/requests/GetUserJobsRequest.js} +0 -0
  165. /package/dist/cjs/api/{types/Schema.js → resources/jobs/client/requests/InitializeRequestDto.js} +0 -0
  166. /package/dist/cjs/api/{types/SubmitResponseBody.js → resources/monitors/client/requests/EnableMonitorRequestDto.js} +0 -0
  167. /package/dist/esm/api/resources/{monitors/client/requests/EnableMonitorRequest.mjs → jobs/client/requests/GetUserJobsRequest.mjs} +0 -0
  168. /package/dist/esm/api/{types/Schema.mjs → resources/jobs/client/requests/InitializeRequestDto.mjs} +0 -0
  169. /package/dist/esm/api/{types/SubmitResponseBody.mjs → resources/monitors/client/requests/EnableMonitorRequestDto.mjs} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "newscatcher-catchall-sdk",
3
- "version": "0.3.1",
3
+ "version": "1.1.2",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -13,7 +13,6 @@
13
13
  "types": "./dist/cjs/index.d.ts",
14
14
  "exports": {
15
15
  ".": {
16
- "types": "./dist/cjs/index.d.ts",
17
16
  "import": {
18
17
  "types": "./dist/esm/index.d.mts",
19
18
  "default": "./dist/esm/index.mjs"
@@ -24,6 +23,39 @@
24
23
  },
25
24
  "default": "./dist/cjs/index.js"
26
25
  },
26
+ "./jobs": {
27
+ "import": {
28
+ "types": "./dist/esm/api/resources/jobs/exports.d.mts",
29
+ "default": "./dist/esm/api/resources/jobs/exports.mjs"
30
+ },
31
+ "require": {
32
+ "types": "./dist/cjs/api/resources/jobs/exports.d.ts",
33
+ "default": "./dist/cjs/api/resources/jobs/exports.js"
34
+ },
35
+ "default": "./dist/cjs/api/resources/jobs/exports.js"
36
+ },
37
+ "./monitors": {
38
+ "import": {
39
+ "types": "./dist/esm/api/resources/monitors/exports.d.mts",
40
+ "default": "./dist/esm/api/resources/monitors/exports.mjs"
41
+ },
42
+ "require": {
43
+ "types": "./dist/cjs/api/resources/monitors/exports.d.ts",
44
+ "default": "./dist/cjs/api/resources/monitors/exports.js"
45
+ },
46
+ "default": "./dist/cjs/api/resources/monitors/exports.js"
47
+ },
48
+ "./meta": {
49
+ "import": {
50
+ "types": "./dist/esm/api/resources/meta/exports.d.mts",
51
+ "default": "./dist/esm/api/resources/meta/exports.mjs"
52
+ },
53
+ "require": {
54
+ "types": "./dist/cjs/api/resources/meta/exports.d.ts",
55
+ "default": "./dist/cjs/api/resources/meta/exports.js"
56
+ },
57
+ "default": "./dist/cjs/api/resources/meta/exports.js"
58
+ },
27
59
  "./package.json": "./package.json"
28
60
  },
29
61
  "files": [
@@ -54,13 +86,14 @@
54
86
  "msw": "2.11.2",
55
87
  "@types/node": "^18.19.70",
56
88
  "typescript": "~5.7.2",
57
- "@biomejs/biome": "2.3.11"
89
+ "@biomejs/biome": "2.4.3"
58
90
  },
59
91
  "browser": {
60
92
  "fs": false,
61
93
  "os": false,
62
94
  "path": false,
63
- "stream": false
95
+ "stream": false,
96
+ "crypto": false
64
97
  },
65
98
  "packageManager": "pnpm@10.20.0",
66
99
  "engines": {
package/reference.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Reference
2
2
  ## Jobs
3
- <details><summary><code>client.jobs.<a href="/src/api/resources/jobs/client/Client.ts">createJob</a>({ ...params }) -> CatchAllApi.SubmitResponseBody</code></summary>
3
+ <details><summary><code>client.jobs.<a href="/src/api/resources/jobs/client/Client.ts">initialize</a>({ ...params }) -> CatchAllApi.InitializeResponseDto</code></summary>
4
4
  <dl>
5
5
  <dd>
6
6
 
@@ -12,7 +12,73 @@
12
12
  <dl>
13
13
  <dd>
14
14
 
15
- Submit a natural language query to create a new processing job.
15
+ Get suggested validators, enrichments, and date ranges for a query.
16
+ </dd>
17
+ </dl>
18
+ </dd>
19
+ </dl>
20
+
21
+ #### 🔌 Usage
22
+
23
+ <dl>
24
+ <dd>
25
+
26
+ <dl>
27
+ <dd>
28
+
29
+ ```typescript
30
+ await client.jobs.initialize({
31
+ query: "Series B funding rounds for SaaS startups",
32
+ context: "Focus on funding amount and company name"
33
+ });
34
+
35
+ ```
36
+ </dd>
37
+ </dl>
38
+ </dd>
39
+ </dl>
40
+
41
+ #### ⚙️ Parameters
42
+
43
+ <dl>
44
+ <dd>
45
+
46
+ <dl>
47
+ <dd>
48
+
49
+ **request:** `CatchAllApi.InitializeRequestDto`
50
+
51
+ </dd>
52
+ </dl>
53
+
54
+ <dl>
55
+ <dd>
56
+
57
+ **requestOptions:** `JobsClient.RequestOptions`
58
+
59
+ </dd>
60
+ </dl>
61
+ </dd>
62
+ </dl>
63
+
64
+
65
+ </dd>
66
+ </dl>
67
+ </details>
68
+
69
+ <details><summary><code>client.jobs.<a href="/src/api/resources/jobs/client/Client.ts">createJob</a>({ ...params }) -> CatchAllApi.SubmitResponseDto</code></summary>
70
+ <dl>
71
+ <dd>
72
+
73
+ #### 📝 Description
74
+
75
+ <dl>
76
+ <dd>
77
+
78
+ <dl>
79
+ <dd>
80
+
81
+ Submit a query to create a new processing job.
16
82
  </dd>
17
83
  </dl>
18
84
  </dd>
@@ -28,8 +94,11 @@ Submit a natural language query to create a new processing job.
28
94
 
29
95
  ```typescript
30
96
  await client.jobs.createJob({
31
- query: "AI company acquisitions",
32
- context: "Focus on deal size and acquiring company details"
97
+ query: "Series B funding rounds for SaaS startups",
98
+ context: "Focus on funding amount and company name",
99
+ limit: 10,
100
+ start_date: "2026-02-18T00:00:00Z",
101
+ end_date: "2026-02-23T00:00:00Z"
33
102
  });
34
103
 
35
104
  ```
@@ -94,7 +163,7 @@ Continue an existing job to process more records beyond the initial limit.
94
163
 
95
164
  ```typescript
96
165
  await client.jobs.continueJob({
97
- job_id: "af7a26d6-cf0b-458c-a6ed-4b6318c74da3",
166
+ job_id: "5f0c9087-85cb-4917-b3c7-e5a5eff73a0c",
98
167
  new_limit: 100
99
168
  });
100
169
 
@@ -160,7 +229,7 @@ Retrieve the current processing status of a job.
160
229
 
161
230
  ```typescript
162
231
  await client.jobs.getJobStatus({
163
- job_id: "af7a26d6-cf0b-458c-a6ed-4b6318c74da3"
232
+ job_id: "5f0c9087-85cb-4917-b3c7-e5a5eff73a0c"
164
233
  });
165
234
 
166
235
  ```
@@ -197,7 +266,7 @@ await client.jobs.getJobStatus({
197
266
  </dl>
198
267
  </details>
199
268
 
200
- <details><summary><code>client.jobs.<a href="/src/api/resources/jobs/client/Client.ts">getUserJobs</a>() -> CatchAllApi.ListUserJobsResponseDto[]</code></summary>
269
+ <details><summary><code>client.jobs.<a href="/src/api/resources/jobs/client/Client.ts">getUserJobs</a>({ ...params }) -> CatchAllApi.ListUserJobsResponseDto</code></summary>
201
270
  <dl>
202
271
  <dd>
203
272
 
@@ -240,6 +309,14 @@ await client.jobs.getUserJobs();
240
309
  <dl>
241
310
  <dd>
242
311
 
312
+ **request:** `CatchAllApi.GetUserJobsRequest`
313
+
314
+ </dd>
315
+ </dl>
316
+
317
+ <dl>
318
+ <dd>
319
+
243
320
  **requestOptions:** `JobsClient.RequestOptions`
244
321
 
245
322
  </dd>
@@ -280,7 +357,7 @@ Retrieve the final results for a completed job.
280
357
 
281
358
  ```typescript
282
359
  await client.jobs.getJobResults({
283
- job_id: "af7a26d6-cf0b-458c-a6ed-4b6318c74da3"
360
+ job_id: "5f0c9087-85cb-4917-b3c7-e5a5eff73a0c"
284
361
  });
285
362
 
286
363
  ```
@@ -330,16 +407,7 @@ await client.jobs.getJobResults({
330
407
  <dl>
331
408
  <dd>
332
409
 
333
- Create a monitor that runs jobs based on a reference job with a specified schedule.
334
-
335
- **Schedule requirements:**
336
- - Minimum 24-hour interval between executions
337
- - Natural language format (e.g., "every day at 12 PM UTC", "every 48 hours")
338
-
339
- **Validation:**
340
- - Schedules below minimum frequency return error with descriptive message.
341
- - Invalid job IDs return 400 Bad Request.
342
- - Duplicate monitors (same job already monitored) return error.
410
+ Create a scheduled monitor based on a reference job.
343
411
  </dd>
344
412
  </dl>
345
413
  </dd>
@@ -355,8 +423,17 @@ Create a monitor that runs jobs based on a reference job with a specified schedu
355
423
 
356
424
  ```typescript
357
425
  await client.monitors.createMonitor({
358
- reference_job_id: "reference_job_id",
359
- schedule: "every day at 12 PM UTC"
426
+ reference_job_id: "5f0c9087-85cb-4917-b3c7-e5a5eff73a0c",
427
+ schedule: "every day at 12 PM UTC",
428
+ webhook: {
429
+ url: "https://your-endpoint.com/webhook",
430
+ method: "POST",
431
+ headers: {
432
+ "Authorization": "Bearer your_token_here"
433
+ }
434
+ },
435
+ limit: 10,
436
+ backfill: true
360
437
  });
361
438
 
362
439
  ```
@@ -405,15 +482,7 @@ await client.monitors.createMonitor({
405
482
  <dl>
406
483
  <dd>
407
484
 
408
- Update webhook configuration for an existing monitor without recreating it.
409
-
410
- **Supported updates:**
411
- - Webhook URL
412
- - HTTP method (POST/PUT)
413
- - Headers and authentication
414
- - Query parameters
415
-
416
- **Note:** Schedule and reference job cannot be modified. To change these, create a new monitor.
485
+ Update the webhook configuration for an existing monitor.
417
486
  </dd>
418
487
  </dl>
419
488
  </dd>
@@ -485,8 +554,7 @@ await client.monitors.updateMonitor({
485
554
  <dl>
486
555
  <dd>
487
556
 
488
- Returns all jobs associated with a monitor, sorted by start_date.
489
- Each job includes job_id, start_date, and end_date.
557
+ Return all jobs executed by a monitor.
490
558
  </dd>
491
559
  </dl>
492
560
  </dd>
@@ -551,8 +619,7 @@ await client.monitors.listMonitorJobs({
551
619
  <dl>
552
620
  <dd>
553
621
 
554
- Retrieve aggregated results from all jobs executed by this monitor.
555
- Includes monitor configuration, execution history, and all records collected.
622
+ Retrieve aggregated results from all jobs executed by a monitor.
556
623
  </dd>
557
624
  </dl>
558
625
  </dd>
@@ -617,8 +684,7 @@ await client.monitors.pullMonitorResults({
617
684
  <dl>
618
685
  <dd>
619
686
 
620
- Disables a monitor to stop executing scheduled jobs.
621
- Validates that the provided API key is associated with the monitor.
687
+ Stop scheduled job execution for a monitor.
622
688
  </dd>
623
689
  </dl>
624
690
  </dd>
@@ -683,8 +749,7 @@ await client.monitors.disableMonitor({
683
749
  <dl>
684
750
  <dd>
685
751
 
686
- Enables a monitor to resume executing scheduled jobs.
687
- Validates that the provided API key is associated with the monitor.
752
+ Resume scheduled job execution for a monitor.
688
753
  </dd>
689
754
  </dl>
690
755
  </dd>
@@ -700,7 +765,8 @@ Validates that the provided API key is associated with the monitor.
700
765
 
701
766
  ```typescript
702
767
  await client.monitors.enableMonitor({
703
- monitor_id: "monitor_id"
768
+ monitor_id: "monitor_id",
769
+ backfill: true
704
770
  });
705
771
 
706
772
  ```
@@ -717,7 +783,7 @@ await client.monitors.enableMonitor({
717
783
  <dl>
718
784
  <dd>
719
785
 
720
- **request:** `CatchAllApi.EnableMonitorRequest`
786
+ **request:** `CatchAllApi.EnableMonitorRequestDto`
721
787
 
722
788
  </dd>
723
789
  </dl>
@@ -737,7 +803,7 @@ await client.monitors.enableMonitor({
737
803
  </dl>
738
804
  </details>
739
805
 
740
- <details><summary><code>client.monitors.<a href="/src/api/resources/monitors/client/Client.ts">listMonitors</a>() -> CatchAllApi.ListMonitorsResponseDto</code></summary>
806
+ <details><summary><code>client.monitors.<a href="/src/api/resources/monitors/client/Client.ts">listMonitors</a>({ ...params }) -> CatchAllApi.ListMonitorsResponseDto</code></summary>
741
807
  <dl>
742
808
  <dd>
743
809
 
@@ -780,6 +846,14 @@ await client.monitors.listMonitors();
780
846
  <dl>
781
847
  <dd>
782
848
 
849
+ **request:** `CatchAllApi.ListMonitorsRequest`
850
+
851
+ </dd>
852
+ </dl>
853
+
854
+ <dl>
855
+ <dd>
856
+
783
857
  **requestOptions:** `MonitorsClient.RequestOptions`
784
858
 
785
859
  </dd>
@@ -902,3 +976,4 @@ await client.meta.getVersion();
902
976
  </dd>
903
977
  </dl>
904
978
  </details>
979
+
@@ -1,10 +0,0 @@
1
- /**
2
- * @example
3
- * {
4
- * monitor_id: "monitor_id"
5
- * }
6
- */
7
- export interface EnableMonitorRequest {
8
- /** Monitor identifier. */
9
- monitor_id: string;
10
- }
@@ -1,6 +0,0 @@
1
- /**
2
- * Template string to guide record summary formatting. Use placeholder syntax with brackets to indicate desired fields: [COMPANY], [REVENUE], [TARGET], [AMOUNT], etc.
3
- *
4
- * When provided, the system generates a `schema_based_summary` field for each record following this template.
5
- */
6
- export type Schema = string;
@@ -1,10 +0,0 @@
1
- /**
2
- * @example
3
- * {
4
- * monitor_id: "monitor_id"
5
- * }
6
- */
7
- export interface EnableMonitorRequest {
8
- /** Monitor identifier. */
9
- monitor_id: string;
10
- }
@@ -1,6 +0,0 @@
1
- /**
2
- * Template string to guide record summary formatting. Use placeholder syntax with brackets to indicate desired fields: [COMPANY], [REVENUE], [TARGET], [AMOUNT], etc.
3
- *
4
- * When provided, the system generates a `schema_based_summary` field for each record following this template.
5
- */
6
- export type Schema = string;