parallel-web 0.4.0 → 0.5.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 (160) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/client.d.mts +37 -12
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +37 -12
  5. package/client.d.ts.map +1 -1
  6. package/client.js +42 -8
  7. package/client.js.map +1 -1
  8. package/client.mjs +42 -8
  9. package/client.mjs.map +1 -1
  10. package/internal/qs/formats.d.mts +7 -0
  11. package/internal/qs/formats.d.mts.map +1 -0
  12. package/internal/qs/formats.d.ts +7 -0
  13. package/internal/qs/formats.d.ts.map +1 -0
  14. package/internal/qs/formats.js +13 -0
  15. package/internal/qs/formats.js.map +1 -0
  16. package/internal/qs/formats.mjs +9 -0
  17. package/internal/qs/formats.mjs.map +1 -0
  18. package/internal/qs/index.d.mts +10 -0
  19. package/internal/qs/index.d.mts.map +1 -0
  20. package/internal/qs/index.d.ts +10 -0
  21. package/internal/qs/index.d.ts.map +1 -0
  22. package/internal/qs/index.js +14 -0
  23. package/internal/qs/index.js.map +1 -0
  24. package/internal/qs/index.mjs +10 -0
  25. package/internal/qs/index.mjs.map +1 -0
  26. package/internal/qs/stringify.d.mts +3 -0
  27. package/internal/qs/stringify.d.mts.map +1 -0
  28. package/internal/qs/stringify.d.ts +3 -0
  29. package/internal/qs/stringify.d.ts.map +1 -0
  30. package/internal/qs/stringify.js +277 -0
  31. package/internal/qs/stringify.js.map +1 -0
  32. package/internal/qs/stringify.mjs +274 -0
  33. package/internal/qs/stringify.mjs.map +1 -0
  34. package/internal/qs/types.d.mts +57 -0
  35. package/internal/qs/types.d.mts.map +1 -0
  36. package/internal/qs/types.d.ts +57 -0
  37. package/internal/qs/types.d.ts.map +1 -0
  38. package/internal/qs/types.js +3 -0
  39. package/internal/qs/types.js.map +1 -0
  40. package/internal/qs/types.mjs +2 -0
  41. package/internal/qs/types.mjs.map +1 -0
  42. package/internal/qs/utils.d.mts +15 -0
  43. package/internal/qs/utils.d.mts.map +1 -0
  44. package/internal/qs/utils.d.ts +15 -0
  45. package/internal/qs/utils.d.ts.map +1 -0
  46. package/internal/qs/utils.js +230 -0
  47. package/internal/qs/utils.js.map +1 -0
  48. package/internal/qs/utils.mjs +217 -0
  49. package/internal/qs/utils.mjs.map +1 -0
  50. package/internal/types.d.mts +6 -6
  51. package/internal/types.d.mts.map +1 -1
  52. package/internal/types.d.ts +6 -6
  53. package/internal/types.d.ts.map +1 -1
  54. package/internal/utils/query.d.mts +0 -3
  55. package/internal/utils/query.d.mts.map +1 -1
  56. package/internal/utils/query.d.ts +0 -3
  57. package/internal/utils/query.d.ts.map +1 -1
  58. package/internal/utils/query.js +3 -16
  59. package/internal/utils/query.js.map +1 -1
  60. package/internal/utils/query.mjs +2 -16
  61. package/internal/utils/query.mjs.map +1 -1
  62. package/package.json +1 -1
  63. package/resources/beta/beta.d.mts +22 -28
  64. package/resources/beta/beta.d.mts.map +1 -1
  65. package/resources/beta/beta.d.ts +22 -28
  66. package/resources/beta/beta.d.ts.map +1 -1
  67. package/resources/beta/beta.js +4 -10
  68. package/resources/beta/beta.js.map +1 -1
  69. package/resources/beta/beta.mjs +4 -10
  70. package/resources/beta/beta.mjs.map +1 -1
  71. package/resources/beta/findall.d.mts +127 -177
  72. package/resources/beta/findall.d.mts.map +1 -1
  73. package/resources/beta/findall.d.ts +127 -177
  74. package/resources/beta/findall.d.ts.map +1 -1
  75. package/resources/beta/findall.js +2 -4
  76. package/resources/beta/findall.js.map +1 -1
  77. package/resources/beta/findall.mjs +2 -4
  78. package/resources/beta/findall.mjs.map +1 -1
  79. package/resources/beta/index.d.mts +2 -2
  80. package/resources/beta/index.d.mts.map +1 -1
  81. package/resources/beta/index.d.ts +2 -2
  82. package/resources/beta/index.d.ts.map +1 -1
  83. package/resources/beta/index.js.map +1 -1
  84. package/resources/beta/index.mjs.map +1 -1
  85. package/resources/beta/task-group.d.mts +22 -143
  86. package/resources/beta/task-group.d.mts.map +1 -1
  87. package/resources/beta/task-group.d.ts +22 -143
  88. package/resources/beta/task-group.d.ts.map +1 -1
  89. package/resources/beta/task-group.js +7 -42
  90. package/resources/beta/task-group.js.map +1 -1
  91. package/resources/beta/task-group.mjs +7 -42
  92. package/resources/beta/task-group.mjs.map +1 -1
  93. package/resources/beta/task-run.d.mts +22 -70
  94. package/resources/beta/task-run.d.mts.map +1 -1
  95. package/resources/beta/task-run.d.ts +22 -70
  96. package/resources/beta/task-run.d.ts.map +1 -1
  97. package/resources/beta/task-run.js +1 -1
  98. package/resources/beta/task-run.mjs +1 -1
  99. package/resources/index.d.mts +4 -2
  100. package/resources/index.d.mts.map +1 -1
  101. package/resources/index.d.ts +4 -2
  102. package/resources/index.d.ts.map +1 -1
  103. package/resources/index.js +5 -1
  104. package/resources/index.js.map +1 -1
  105. package/resources/index.mjs +2 -0
  106. package/resources/index.mjs.map +1 -1
  107. package/resources/monitor.d.mts +625 -0
  108. package/resources/monitor.d.mts.map +1 -0
  109. package/resources/monitor.d.ts +625 -0
  110. package/resources/monitor.d.ts.map +1 -0
  111. package/resources/monitor.js +140 -0
  112. package/resources/monitor.js.map +1 -0
  113. package/resources/monitor.mjs +136 -0
  114. package/resources/monitor.mjs.map +1 -0
  115. package/resources/task-group.d.mts +213 -0
  116. package/resources/task-group.d.mts.map +1 -0
  117. package/resources/task-group.d.ts +213 -0
  118. package/resources/task-group.d.ts.map +1 -0
  119. package/resources/task-group.js +95 -0
  120. package/resources/task-group.js.map +1 -0
  121. package/resources/task-group.mjs +91 -0
  122. package/resources/task-group.mjs.map +1 -0
  123. package/resources/task-run.d.mts +97 -80
  124. package/resources/task-run.d.mts.map +1 -1
  125. package/resources/task-run.d.ts +97 -80
  126. package/resources/task-run.d.ts.map +1 -1
  127. package/resources/task-run.js +14 -1
  128. package/resources/task-run.js.map +1 -1
  129. package/resources/task-run.mjs +14 -1
  130. package/resources/task-run.mjs.map +1 -1
  131. package/resources/top-level.d.mts +19 -15
  132. package/resources/top-level.d.mts.map +1 -1
  133. package/resources/top-level.d.ts +19 -15
  134. package/resources/top-level.d.ts.map +1 -1
  135. package/src/client.ts +128 -8
  136. package/src/internal/qs/LICENSE.md +13 -0
  137. package/src/internal/qs/README.md +3 -0
  138. package/src/internal/qs/formats.ts +10 -0
  139. package/src/internal/qs/index.ts +13 -0
  140. package/src/internal/qs/stringify.ts +385 -0
  141. package/src/internal/qs/types.ts +71 -0
  142. package/src/internal/qs/utils.ts +265 -0
  143. package/src/internal/types.ts +6 -8
  144. package/src/internal/utils/query.ts +2 -18
  145. package/src/resources/beta/api.md +9 -5
  146. package/src/resources/beta/beta.ts +38 -28
  147. package/src/resources/beta/findall.ts +153 -202
  148. package/src/resources/beta/index.ts +7 -4
  149. package/src/resources/beta/task-group.ts +30 -157
  150. package/src/resources/beta/task-run.ts +26 -86
  151. package/src/resources/index.ts +42 -0
  152. package/src/resources/monitor.ts +752 -0
  153. package/src/resources/task-group.ts +315 -0
  154. package/src/resources/task-run.ts +122 -95
  155. package/src/resources/top-level.ts +23 -15
  156. package/src/version.ts +1 -1
  157. package/version.d.mts +1 -1
  158. package/version.d.ts +1 -1
  159. package/version.js +1 -1
  160. package/version.mjs +1 -1
@@ -0,0 +1,625 @@
1
+ import { APIResource } from "../core/resource.js";
2
+ import * as Shared from "./shared.js";
3
+ import * as TaskRunAPI from "./task-run.js";
4
+ import { APIPromise } from "../core/api-promise.js";
5
+ import { RequestOptions } from "../internal/request-options.js";
6
+ /**
7
+ * The Monitor API watches the web for material changes on a fixed frequency. Each monitor runs once on creation and then on its configured schedule, emitting events when meaningful changes are detected.
8
+ * - `event_stream` monitors track a search query and emit an event for each new material change.
9
+ * - `snapshot` monitors track a specific task run's output and emit an event when the output changes.
10
+ *
11
+ * Results can be polled via the events endpoint or delivered via webhooks.
12
+ */
13
+ export declare class MonitorResource extends APIResource {
14
+ /**
15
+ * Create a monitor.
16
+ *
17
+ * Monitors run on a fixed frequency to detect material changes in web content. Set
18
+ * `type=event_stream` to monitor a search query, or `type=snapshot` to monitor a
19
+ * specific task run's output. The monitor runs once immediately at creation, then
20
+ * continues on the configured schedule.
21
+ *
22
+ * @example
23
+ * ```ts
24
+ * const monitor = await client.monitor.create({
25
+ * frequency: '1h',
26
+ * settings: { query: 'Extract recent news about AI' },
27
+ * type: 'event_stream',
28
+ * });
29
+ * ```
30
+ */
31
+ create(body: MonitorCreateParams, options?: RequestOptions): APIPromise<Monitor>;
32
+ /**
33
+ * Retrieve a monitor.
34
+ *
35
+ * Retrieves a specific monitor by `monitor_id`. Returns the monitor configuration
36
+ * including status, frequency, query, and webhook settings.
37
+ *
38
+ * @example
39
+ * ```ts
40
+ * const monitor = await client.monitor.retrieve('monitor_id');
41
+ * ```
42
+ */
43
+ retrieve(monitorID: string, options?: RequestOptions): APIPromise<Monitor>;
44
+ /**
45
+ * Update a monitor.
46
+ *
47
+ * Only fields explicitly included in the request body are changed. Pass `null` for
48
+ * `webhook` or `metadata` to clear those fields. Pass `type` and `settings` to
49
+ * update type-specific settings on an `event_stream` monitor. At least one field
50
+ * must be provided. Cancelled monitors cannot be updated.
51
+ *
52
+ * @example
53
+ * ```ts
54
+ * const monitor = await client.monitor.update('monitor_id');
55
+ * ```
56
+ */
57
+ update(monitorID: string, body: MonitorUpdateParams, options?: RequestOptions): APIPromise<Monitor>;
58
+ /**
59
+ * List monitors ordered by creation time, newest first.
60
+ *
61
+ * Monitors are sorted by `created_at` descending. `limit` defaults to 100. Use
62
+ * `next_cursor` from the response and pass it as `cursor` to fetch the next page.
63
+ * Pagination ends when `next_cursor` is absent.
64
+ *
65
+ * By default only `active` monitors are returned. Pass `status=cancelled` or both
66
+ * values to include cancelled monitors.
67
+ *
68
+ * The legacy Monitor API (`/v1alpha/monitors` endpoints) is documented under the
69
+ * `Monitor (Alpha)` tag.
70
+ *
71
+ * @example
72
+ * ```ts
73
+ * const paginatedMonitorResponse =
74
+ * await client.monitor.list();
75
+ * ```
76
+ */
77
+ list(query?: MonitorListParams | null | undefined, options?: RequestOptions): APIPromise<PaginatedMonitorResponse>;
78
+ /**
79
+ * Cancel a monitor.
80
+ *
81
+ * Permanently stops the monitor from running. Cancellation is irreversible —
82
+ * create a new monitor to resume monitoring. Cancelling an already-cancelled
83
+ * monitor is a no-op.
84
+ *
85
+ * @example
86
+ * ```ts
87
+ * const monitor = await client.monitor.cancel('monitor_id');
88
+ * ```
89
+ */
90
+ cancel(monitorID: string, options?: RequestOptions): APIPromise<Monitor>;
91
+ /**
92
+ * List events for a monitor, newest first.
93
+ *
94
+ * Pass `event_group_id` to narrow results to a single execution. Otherwise returns
95
+ * all executions newest-first; use `next_cursor` to paginate. Set
96
+ * `include_completions=true` to also include no-change executions.
97
+ *
98
+ * @example
99
+ * ```ts
100
+ * const paginatedMonitorEvents = await client.monitor.events(
101
+ * 'monitor_id',
102
+ * );
103
+ * ```
104
+ */
105
+ events(monitorID: string, query?: MonitorEventsParams | null | undefined, options?: RequestOptions): APIPromise<PaginatedMonitorEvents>;
106
+ /**
107
+ * Trigger an immediate monitor run.
108
+ *
109
+ * Enqueues a one-off execution of the monitor outside its normal schedule. The
110
+ * monitor's regular schedule is not affected. An event is only emitted if the
111
+ * execution detects a material change. Cancelled monitors cannot be triggered.
112
+ *
113
+ * @example
114
+ * ```ts
115
+ * await client.monitor.trigger('monitor_id');
116
+ * ```
117
+ */
118
+ trigger(monitorID: string, options?: RequestOptions): APIPromise<void>;
119
+ }
120
+ /**
121
+ * Advanced monitor configuration.
122
+ */
123
+ export interface AdvancedMonitorSettings {
124
+ /**
125
+ * ISO 3166-1 alpha-2 country code for geo-targeted monitor results.
126
+ */
127
+ location?: string | null;
128
+ /**
129
+ * Source policy for web search results.
130
+ *
131
+ * This policy governs which sources are allowed/disallowed in results.
132
+ */
133
+ source_policy?: Shared.SourcePolicy | null;
134
+ }
135
+ /**
136
+ * Request body to create a monitor.
137
+ *
138
+ * The `type` field at the root determines the expected shape of `settings`:
139
+ * `event_stream` requires `MonitorEventStreamSettings`, and `snapshot` requires
140
+ * `MonitorSnapshotSettings`.
141
+ */
142
+ export interface CreateMonitorRequest {
143
+ /**
144
+ * Frequency of the monitor. Format: '<number><unit>' where unit is 'h' (hours),
145
+ * 'd' (days), or 'w' (weeks). Must be between 1h and 30d (inclusive).
146
+ */
147
+ frequency: string;
148
+ /**
149
+ * Type-specific settings for the monitor. The expected shape is determined by the
150
+ * root `type` field: pass `MonitorEventStreamSettings` when `type` is
151
+ * `event_stream`, and `MonitorSnapshotSettings` when `type` is `snapshot`.
152
+ */
153
+ settings: MonitorEventStreamSettings | MonitorSnapshotSettings;
154
+ /**
155
+ * Type of monitor to create. `event_stream` monitors a search query for material
156
+ * changes; `snapshot` monitors a specific task run's output. Determines the
157
+ * expected shape of `settings`.
158
+ */
159
+ type: 'event_stream' | 'snapshot';
160
+ /**
161
+ * User-provided metadata stored with the monitor and echoed back in webhook
162
+ * notifications and GET responses, so you can map events to objects in your
163
+ * application. Keys: max 16 chars; values: max 512 chars.
164
+ */
165
+ metadata?: {
166
+ [key: string]: string;
167
+ } | null;
168
+ /**
169
+ * Processor to use for the monitor. `lite` is faster and cheaper; `base` performs
170
+ * more thorough analysis at higher cost and latency. Defaults to `lite`.
171
+ */
172
+ processor?: 'lite' | 'base';
173
+ /**
174
+ * Webhook configuration for a monitor.
175
+ */
176
+ webhook?: MonitorWebhook | null;
177
+ }
178
+ /**
179
+ * Response object for a monitor.
180
+ *
181
+ * The `type` field at the root determines the concrete shape of `settings`:
182
+ * `event_stream` uses `MonitorEventStreamResponseSettings`, and `snapshot` uses
183
+ * `MonitorSnapshotResponseSettings`. Snapshot monitors also carry an `output`
184
+ * field (`MonitorSnapshotOutput`) with the latest computed state.
185
+ */
186
+ export interface Monitor {
187
+ /**
188
+ * Timestamp of the creation of the monitor, as an RFC 3339 string.
189
+ */
190
+ created_at: string;
191
+ /**
192
+ * Frequency of the monitor. Format: '<number><unit>' where unit is 'h' (hours),
193
+ * 'd' (days), or 'w' (weeks). Must be between 1h and 30d (inclusive).
194
+ */
195
+ frequency: string;
196
+ /**
197
+ * ID of the monitor.
198
+ */
199
+ monitor_id: string;
200
+ /**
201
+ * Processor to use for the monitor. `lite` is faster and cheaper; `base` performs
202
+ * more thorough analysis at higher cost and latency. Defaults to `lite`.
203
+ */
204
+ processor: 'lite' | 'base';
205
+ /**
206
+ * Type-specific configuration. Shape is determined by `type`:
207
+ * `MonitorEventStreamResponseSettings` for `event_stream`,
208
+ * `MonitorSnapshotResponseSettings` for `snapshot`.
209
+ */
210
+ settings: MonitorEventStreamResponseSettings | MonitorSnapshotResponseSettings;
211
+ /**
212
+ * Status of the monitor.
213
+ */
214
+ status: 'active' | 'cancelled';
215
+ /**
216
+ * The type of monitor.
217
+ */
218
+ type: 'event_stream' | 'snapshot';
219
+ /**
220
+ * Timestamp of the last run for the monitor, as an RFC 3339 string.
221
+ */
222
+ last_run_at?: string | null;
223
+ /**
224
+ * User-provided metadata stored with the monitor and echoed back in webhook
225
+ * notifications and GET responses, so you can map events to objects in your
226
+ * application. Keys: max 16 chars; values: max 512 chars.
227
+ */
228
+ metadata?: {
229
+ [key: string]: string;
230
+ } | null;
231
+ /**
232
+ * Runtime output state for a `snapshot` monitor.
233
+ */
234
+ output?: MonitorSnapshotOutput | null;
235
+ /**
236
+ * Webhook configuration for a monitor.
237
+ */
238
+ webhook?: MonitorWebhook | null;
239
+ }
240
+ /**
241
+ * Emitted when a monitor execution ran but detected no material changes.
242
+ *
243
+ * Only returned when `include_completions=true` is passed to the list events
244
+ * endpoint. Useful for auditing execution history alongside content events.
245
+ */
246
+ export interface MonitorCompletionEvent {
247
+ /**
248
+ * Timestamp of when the monitor execution completed, as an RFC 3339 string.
249
+ */
250
+ timestamp: string;
251
+ /**
252
+ * Discriminant for the completion event variant.
253
+ */
254
+ event_type?: 'completion';
255
+ }
256
+ /**
257
+ * Emitted when a monitor execution failed (e.g. payment or quota error).
258
+ *
259
+ * Always included in the events list regardless of `include_completions`.
260
+ */
261
+ export interface MonitorErrorEvent {
262
+ /**
263
+ * Human-readable description of the failure.
264
+ */
265
+ error_message: string;
266
+ /**
267
+ * Timestamp of when the monitor execution failed, as an RFC 3339 string.
268
+ */
269
+ timestamp: string;
270
+ /**
271
+ * Discriminant for the error event variant.
272
+ */
273
+ event_type?: 'error';
274
+ }
275
+ /**
276
+ * Append-only event from an event_stream monitor.
277
+ *
278
+ * Each event represents a distinct material change detected since the previous
279
+ * execution. Events are net-new relative to the cursor; clients should treat them
280
+ * as an append-only log.
281
+ */
282
+ export interface MonitorEventStreamEvent {
283
+ /**
284
+ * Date when this event was produced. ISO 8601 date (YYYY-MM-DD) or partial
285
+ * (YYYY-MM or YYYY).
286
+ */
287
+ event_date: string | null;
288
+ /**
289
+ * ID of the event group that owns this event.
290
+ */
291
+ event_group_id: string;
292
+ /**
293
+ * Stable identifier for this event. Safe to use for client-side deduplication
294
+ * across pagination and retries.
295
+ */
296
+ event_id: string;
297
+ /**
298
+ * Text or JSON output describing the detected change.
299
+ */
300
+ output: TaskRunAPI.TaskRunTextOutput | TaskRunAPI.TaskRunJsonOutput;
301
+ /**
302
+ * Discriminant for the event_stream event variant.
303
+ */
304
+ event_type?: 'event_stream';
305
+ }
306
+ /**
307
+ * Type-specific response fields for an `event_stream` monitor.
308
+ */
309
+ export interface MonitorEventStreamResponseSettings {
310
+ /**
311
+ * The search query being monitored.
312
+ */
313
+ query: string;
314
+ /**
315
+ * Advanced monitor configuration.
316
+ */
317
+ advanced_settings?: AdvancedMonitorSettings | null;
318
+ /**
319
+ * If true, the first execution returns a sample of recent historical events
320
+ * matching the query (preview only — not exhaustive). If false or omitted, only
321
+ * events from the monitor's creation date onward are returned. Subsequent
322
+ * executions are always incremental.
323
+ */
324
+ include_backfill?: boolean | null;
325
+ /**
326
+ * JSON schema for a task input or output.
327
+ */
328
+ output_schema?: TaskRunAPI.JsonSchema | null;
329
+ }
330
+ /**
331
+ * Type-specific settings for an `event_stream` monitor.
332
+ */
333
+ export interface MonitorEventStreamSettings {
334
+ /**
335
+ * Search query to monitor for material changes.
336
+ */
337
+ query: string;
338
+ /**
339
+ * Advanced monitor configuration.
340
+ */
341
+ advanced_settings?: AdvancedMonitorSettings | null;
342
+ /**
343
+ * If true, the first execution returns a sample of recent historical events
344
+ * matching the query (preview only — not exhaustive). If false or omitted, only
345
+ * events from the monitor's creation date onward are returned. Subsequent
346
+ * executions are always incremental.
347
+ */
348
+ include_backfill?: boolean | null;
349
+ /**
350
+ * JSON schema for a task input or output.
351
+ */
352
+ output_schema?: TaskRunAPI.JsonSchema | null;
353
+ }
354
+ /**
355
+ * Snapshot diff event emitted when a monitored task run's output changes.
356
+ *
357
+ * `changed_output` contains only the fields that changed since the previous
358
+ * execution, along with their `basis` (reasoning + citations). `previous_output`
359
+ * holds the complete output from the prior run for comparison.
360
+ */
361
+ export interface MonitorSnapshotEvent {
362
+ /**
363
+ * Partial output containing only the fields that changed since the previous
364
+ * execution, each with its `basis` (reasoning and citations).
365
+ */
366
+ changed_output: TaskRunAPI.TaskRunTextOutput | TaskRunAPI.TaskRunJsonOutput;
367
+ /**
368
+ * Date when this event was produced. ISO 8601 date (YYYY-MM-DD) or partial
369
+ * (YYYY-MM or YYYY).
370
+ */
371
+ event_date: string | null;
372
+ /**
373
+ * ID of the event group that owns this event.
374
+ */
375
+ event_group_id: string;
376
+ /**
377
+ * Stable identifier for this event. Safe to use for client-side deduplication
378
+ * across pagination and retries.
379
+ */
380
+ event_id: string;
381
+ /**
382
+ * The full output from the prior run, including all fields and basis.
383
+ */
384
+ previous_output: TaskRunAPI.TaskRunTextOutput | TaskRunAPI.TaskRunJsonOutput;
385
+ /**
386
+ * Discriminant for the snapshot event variant.
387
+ */
388
+ event_type?: 'snapshot';
389
+ }
390
+ /**
391
+ * Runtime output state for a `snapshot` monitor.
392
+ */
393
+ export interface MonitorSnapshotOutput {
394
+ /**
395
+ * Task run output from the most recent completed execution of this snapshot
396
+ * monitor — same structure as the output of the original task run the monitor was
397
+ * created from. `null` until the first run completes.
398
+ */
399
+ latest_snapshot?: TaskRunAPI.TaskRunTextOutput | TaskRunAPI.TaskRunJsonOutput | null;
400
+ }
401
+ /**
402
+ * Configuration settings for a `snapshot` monitor.
403
+ */
404
+ export interface MonitorSnapshotResponseSettings {
405
+ /**
406
+ * The original task input from the baseline task run that this monitor tracks.
407
+ */
408
+ query: string;
409
+ /**
410
+ * ID of the task run used as the monitoring baseline.
411
+ */
412
+ task_run_id: string;
413
+ /**
414
+ * JSON schema for a task input or output.
415
+ */
416
+ output_schema?: TaskRunAPI.JsonSchema | null;
417
+ }
418
+ /**
419
+ * Type-specific settings for a `snapshot` monitor.
420
+ */
421
+ export interface MonitorSnapshotSettings {
422
+ /**
423
+ * Task run ID whose output becomes the data and schema for the monitor.
424
+ */
425
+ task_run_id: string;
426
+ }
427
+ /**
428
+ * Webhook configuration for a monitor.
429
+ */
430
+ export interface MonitorWebhook {
431
+ /**
432
+ * URL for the webhook.
433
+ */
434
+ url: string;
435
+ /**
436
+ * Event types to send the webhook notifications for.
437
+ */
438
+ event_types?: Array<'monitor.event.detected' | 'monitor.execution.completed' | 'monitor.execution.failed'>;
439
+ }
440
+ /**
441
+ * Paginated list of monitor events, newest first.
442
+ */
443
+ export interface PaginatedMonitorEvents {
444
+ /**
445
+ * Monitor events returned by this request, ordered newest first.
446
+ */
447
+ events: Array<MonitorEventStreamEvent | MonitorSnapshotEvent | MonitorCompletionEvent | MonitorErrorEvent>;
448
+ /**
449
+ * Pass as `cursor` to retrieve more events. Absent when there are no more events.
450
+ */
451
+ next_cursor?: string | null;
452
+ /**
453
+ * Execution caveats for this page of events, e.g. compute limits.
454
+ */
455
+ warnings?: Array<Shared.Warning> | null;
456
+ }
457
+ /**
458
+ * Paginated list of monitors.
459
+ */
460
+ export interface PaginatedMonitorResponse {
461
+ /**
462
+ * List of monitors for the current page.
463
+ */
464
+ monitors: Array<Monitor>;
465
+ /**
466
+ * Opaque pagination token. Pass as `cursor` to retrieve the next page. Absent when
467
+ * there are no more pages.
468
+ */
469
+ next_cursor?: string | null;
470
+ }
471
+ /**
472
+ * Type-specific update settings for an `event_stream` monitor.
473
+ */
474
+ export interface UpdateMonitorEventStreamSettings {
475
+ /**
476
+ * Advanced monitor configuration.
477
+ */
478
+ advanced_settings?: AdvancedMonitorSettings | null;
479
+ }
480
+ /**
481
+ * Request body to update a monitor.
482
+ *
483
+ * Only fields that are explicitly included in the request body are updated. Pass
484
+ * `null` for `webhook` or `metadata` to clear those fields. To update
485
+ * type-specific settings on an `event_stream` monitor, include `type` and
486
+ * `settings`; pass `null` for `settings.advanced_settings` to clear it. At least
487
+ * one non-`type` field must be provided.
488
+ */
489
+ export interface UpdateMonitorRequest {
490
+ /**
491
+ * Frequency of the monitor. Format: '<number><unit>' where unit is 'h' (hours),
492
+ * 'd' (days), or 'w' (weeks). Must be between 1h and 30d (inclusive).
493
+ */
494
+ frequency?: string | null;
495
+ /**
496
+ * User-provided metadata stored with the monitor and echoed back in webhook
497
+ * notifications and GET responses, so you can map events to objects in your
498
+ * application. Keys: max 16 chars; values: max 512 chars.
499
+ */
500
+ metadata?: {
501
+ [key: string]: string;
502
+ } | null;
503
+ /**
504
+ * Type-specific update settings for an `event_stream` monitor.
505
+ */
506
+ settings?: UpdateMonitorEventStreamSettings | null;
507
+ /**
508
+ * Type of the monitor being updated. Required when `settings` is provided; must be
509
+ * `event_stream` (snapshot monitors have no updatable type-specific settings).
510
+ */
511
+ type?: 'event_stream' | 'snapshot' | null;
512
+ /**
513
+ * Webhook configuration for a monitor.
514
+ */
515
+ webhook?: MonitorWebhook | null;
516
+ }
517
+ export interface MonitorCreateParams {
518
+ /**
519
+ * Frequency of the monitor. Format: '<number><unit>' where unit is 'h' (hours),
520
+ * 'd' (days), or 'w' (weeks). Must be between 1h and 30d (inclusive).
521
+ */
522
+ frequency: string;
523
+ /**
524
+ * Type-specific settings for the monitor. The expected shape is determined by the
525
+ * root `type` field: pass `MonitorEventStreamSettings` when `type` is
526
+ * `event_stream`, and `MonitorSnapshotSettings` when `type` is `snapshot`.
527
+ */
528
+ settings: MonitorEventStreamSettings | MonitorSnapshotSettings;
529
+ /**
530
+ * Type of monitor to create. `event_stream` monitors a search query for material
531
+ * changes; `snapshot` monitors a specific task run's output. Determines the
532
+ * expected shape of `settings`.
533
+ */
534
+ type: 'event_stream' | 'snapshot';
535
+ /**
536
+ * User-provided metadata stored with the monitor and echoed back in webhook
537
+ * notifications and GET responses, so you can map events to objects in your
538
+ * application. Keys: max 16 chars; values: max 512 chars.
539
+ */
540
+ metadata?: {
541
+ [key: string]: string;
542
+ } | null;
543
+ /**
544
+ * Processor to use for the monitor. `lite` is faster and cheaper; `base` performs
545
+ * more thorough analysis at higher cost and latency. Defaults to `lite`.
546
+ */
547
+ processor?: 'lite' | 'base';
548
+ /**
549
+ * Webhook configuration for a monitor.
550
+ */
551
+ webhook?: MonitorWebhook | null;
552
+ }
553
+ export interface MonitorUpdateParams {
554
+ /**
555
+ * Frequency of the monitor. Format: '<number><unit>' where unit is 'h' (hours),
556
+ * 'd' (days), or 'w' (weeks). Must be between 1h and 30d (inclusive).
557
+ */
558
+ frequency?: string | null;
559
+ /**
560
+ * User-provided metadata stored with the monitor and echoed back in webhook
561
+ * notifications and GET responses, so you can map events to objects in your
562
+ * application. Keys: max 16 chars; values: max 512 chars.
563
+ */
564
+ metadata?: {
565
+ [key: string]: string;
566
+ } | null;
567
+ /**
568
+ * Type-specific update settings for an `event_stream` monitor.
569
+ */
570
+ settings?: UpdateMonitorEventStreamSettings | null;
571
+ /**
572
+ * Type of the monitor being updated. Required when `settings` is provided; must be
573
+ * `event_stream` (snapshot monitors have no updatable type-specific settings).
574
+ */
575
+ type?: 'event_stream' | 'snapshot' | null;
576
+ /**
577
+ * Webhook configuration for a monitor.
578
+ */
579
+ webhook?: MonitorWebhook | null;
580
+ }
581
+ export interface MonitorListParams {
582
+ /**
583
+ * Pagination token from `next_cursor` in a previous response. Omit to start from
584
+ * the most recently created monitor.
585
+ */
586
+ cursor?: string | null;
587
+ /**
588
+ * Maximum number of monitors to return. Defaults to 100. Between 1 and 10000.
589
+ */
590
+ limit?: number | null;
591
+ /**
592
+ * Filter by monitor status. Pass multiple times to filter by multiple values.
593
+ * Defaults to `active` only.
594
+ */
595
+ status?: Array<'active' | 'cancelled'> | null;
596
+ /**
597
+ * Filter by monitor type. Pass multiple times to filter by multiple values. Omit
598
+ * to return all types.
599
+ */
600
+ type?: Array<'event_stream' | 'snapshot'> | null;
601
+ }
602
+ export interface MonitorEventsParams {
603
+ /**
604
+ * Pass `next_cursor` from a previous response to retrieve more events.
605
+ */
606
+ cursor?: string | null;
607
+ /**
608
+ * Filter to a single execution. Values come from `event_group_id` in webhook
609
+ * events and listed events. Pagination params are ignored when set.
610
+ */
611
+ event_group_id?: string | null;
612
+ /**
613
+ * When true, include completion events for executions that ran but detected no
614
+ * material changes. Useful for auditing execution history.
615
+ */
616
+ include_completions?: boolean;
617
+ /**
618
+ * Maximum number of events to return. Defaults to 20. Between 1 and 100.
619
+ */
620
+ limit?: number | null;
621
+ }
622
+ export declare namespace MonitorResource {
623
+ export { type AdvancedMonitorSettings as AdvancedMonitorSettings, type CreateMonitorRequest as CreateMonitorRequest, type Monitor as Monitor, type MonitorCompletionEvent as MonitorCompletionEvent, type MonitorErrorEvent as MonitorErrorEvent, type MonitorEventStreamEvent as MonitorEventStreamEvent, type MonitorEventStreamResponseSettings as MonitorEventStreamResponseSettings, type MonitorEventStreamSettings as MonitorEventStreamSettings, type MonitorSnapshotEvent as MonitorSnapshotEvent, type MonitorSnapshotOutput as MonitorSnapshotOutput, type MonitorSnapshotResponseSettings as MonitorSnapshotResponseSettings, type MonitorSnapshotSettings as MonitorSnapshotSettings, type MonitorWebhook as MonitorWebhook, type PaginatedMonitorEvents as PaginatedMonitorEvents, type PaginatedMonitorResponse as PaginatedMonitorResponse, type UpdateMonitorEventStreamSettings as UpdateMonitorEventStreamSettings, type UpdateMonitorRequest as UpdateMonitorRequest, type MonitorCreateParams as MonitorCreateParams, type MonitorUpdateParams as MonitorUpdateParams, type MonitorListParams as MonitorListParams, type MonitorEventsParams as MonitorEventsParams, };
624
+ }
625
+ //# sourceMappingURL=monitor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"monitor.d.ts","sourceRoot":"","sources":["../src/resources/monitor.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,UAAU;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB;;;;;;GAMG;AACH,qBAAa,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAIhF;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAI1E;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAInG;;;;;;;;;;;;;;;;;;OAkBG;IACH,IAAI,CACF,KAAK,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;IAIvC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAIxE;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,KAAK,GAAE,mBAAmB,GAAG,IAAI,GAAG,SAAc,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;IAIrC;;;;;;;;;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