@nimble-way/nimble-js 0.17.0 → 0.19.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 (86) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/package.json +1 -1
  3. package/resources/agent.d.mts +17 -13
  4. package/resources/agent.d.mts.map +1 -1
  5. package/resources/agent.d.ts +17 -13
  6. package/resources/agent.d.ts.map +1 -1
  7. package/resources/batches.d.mts +11 -7
  8. package/resources/batches.d.mts.map +1 -1
  9. package/resources/batches.d.ts +11 -7
  10. package/resources/batches.d.ts.map +1 -1
  11. package/resources/crawl.d.mts +11 -1
  12. package/resources/crawl.d.mts.map +1 -1
  13. package/resources/crawl.d.ts +11 -1
  14. package/resources/crawl.d.ts.map +1 -1
  15. package/resources/jobs/jobs.d.mts +447 -0
  16. package/resources/jobs/jobs.d.mts.map +1 -1
  17. package/resources/jobs/jobs.d.ts +447 -0
  18. package/resources/jobs/jobs.d.ts.map +1 -1
  19. package/resources/jobs/jobs.js.map +1 -1
  20. package/resources/jobs/jobs.mjs.map +1 -1
  21. package/resources/jobs/runs/artifacts.d.mts +67 -0
  22. package/resources/jobs/runs/artifacts.d.mts.map +1 -1
  23. package/resources/jobs/runs/artifacts.d.ts +67 -0
  24. package/resources/jobs/runs/artifacts.d.ts.map +1 -1
  25. package/resources/jobs/runs/runs.d.mts +139 -0
  26. package/resources/jobs/runs/runs.d.mts.map +1 -1
  27. package/resources/jobs/runs/runs.d.ts +139 -0
  28. package/resources/jobs/runs/runs.d.ts.map +1 -1
  29. package/resources/jobs/runs/runs.js.map +1 -1
  30. package/resources/jobs/runs/runs.mjs.map +1 -1
  31. package/resources/media.d.mts +11 -7
  32. package/resources/media.d.mts.map +1 -1
  33. package/resources/media.d.ts +11 -7
  34. package/resources/media.d.ts.map +1 -1
  35. package/resources/serp.d.mts +22 -14
  36. package/resources/serp.d.mts.map +1 -1
  37. package/resources/serp.d.ts +22 -14
  38. package/resources/serp.d.ts.map +1 -1
  39. package/resources/task-agent/runs.d.mts +332 -69
  40. package/resources/task-agent/runs.d.mts.map +1 -1
  41. package/resources/task-agent/runs.d.ts +332 -69
  42. package/resources/task-agent/runs.d.ts.map +1 -1
  43. package/resources/task-agent/runs.js +21 -6
  44. package/resources/task-agent/runs.js.map +1 -1
  45. package/resources/task-agent/runs.mjs +21 -6
  46. package/resources/task-agent/runs.mjs.map +1 -1
  47. package/resources/task-agent/task-agent.d.mts +131 -33
  48. package/resources/task-agent/task-agent.d.mts.map +1 -1
  49. package/resources/task-agent/task-agent.d.ts +131 -33
  50. package/resources/task-agent/task-agent.d.ts.map +1 -1
  51. package/resources/task-agent/task-agent.js +12 -14
  52. package/resources/task-agent/task-agent.js.map +1 -1
  53. package/resources/task-agent/task-agent.mjs +12 -14
  54. package/resources/task-agent/task-agent.mjs.map +1 -1
  55. package/resources/task-agent/templates.d.mts +15 -6
  56. package/resources/task-agent/templates.d.mts.map +1 -1
  57. package/resources/task-agent/templates.d.ts +15 -6
  58. package/resources/task-agent/templates.d.ts.map +1 -1
  59. package/resources/task-agent/templates.js +2 -2
  60. package/resources/task-agent/templates.mjs +2 -2
  61. package/resources/tasks.d.mts +22 -14
  62. package/resources/tasks.d.mts.map +1 -1
  63. package/resources/tasks.d.ts +22 -14
  64. package/resources/tasks.d.ts.map +1 -1
  65. package/resources/top-level.d.mts +77 -20
  66. package/resources/top-level.d.mts.map +1 -1
  67. package/resources/top-level.d.ts +77 -20
  68. package/resources/top-level.d.ts.map +1 -1
  69. package/src/resources/agent.ts +20 -15
  70. package/src/resources/batches.ts +12 -7
  71. package/src/resources/crawl.ts +21 -1
  72. package/src/resources/jobs/jobs.ts +447 -0
  73. package/src/resources/jobs/runs/artifacts.ts +67 -0
  74. package/src/resources/jobs/runs/runs.ts +139 -0
  75. package/src/resources/media.ts +12 -7
  76. package/src/resources/serp.ts +24 -14
  77. package/src/resources/task-agent/runs.ts +370 -78
  78. package/src/resources/task-agent/task-agent.ts +141 -47
  79. package/src/resources/task-agent/templates.ts +16 -7
  80. package/src/resources/tasks.ts +24 -14
  81. package/src/resources/top-level.ts +118 -20
  82. package/src/version.ts +1 -1
  83. package/version.d.mts +1 -1
  84. package/version.d.ts +1 -1
  85. package/version.js +1 -1
  86. package/version.mjs +1 -1
@@ -3,37 +3,66 @@ import { APIPromise } from "../../core/api-promise.mjs";
3
3
  import { RequestOptions } from "../../internal/request-options.mjs";
4
4
  export declare class Runs extends APIResource {
5
5
  /**
6
- * List task runs for the caller's workspace and the given agent, newest first.
6
+ * List runs for this instance.
7
+ *
8
+ * `status` accepts a lowercase `TaskRunStatusValue` (e.g. "completed") or a
9
+ * comma-separated list of them (e.g. "queued,running").
7
10
  */
8
11
  list(agentID: string, query?: RunListParams | null | undefined, options?: RequestOptions): APIPromise<RunListResponse>;
9
12
  /**
10
13
  * Cancel an in-progress or queued run.
14
+ *
15
+ * Verb is POST + `/cancel` action segment per the AGENTS-1666 spec (replaces the
16
+ * old `DELETE …/runs/{run_id}`).
11
17
  */
12
18
  cancel(runID: string, params: RunCancelParams, options?: RequestOptions): APIPromise<void>;
13
19
  /**
14
- * Poll run status. Repeat until status is 'completed', 'failed', or 'cancelled'.
20
+ * Fetch a run by id, scoped to the instance.
21
+ *
22
+ * A run resolves only when (run_id, agent_id) match — otherwise 404. This means a
23
+ * stale URL with a swapped agent_id won't leak runs across instances even if the
24
+ * run_id is real.
15
25
  */
16
26
  get(runID: string, params: RunGetParams, options?: RequestOptions): APIPromise<RunGetResponse>;
17
27
  /**
18
- * Fetch the result for a terminal run. Returns 408 if still active, 422 with
19
- * `AgentRunFailedResult` if failed.
28
+ * Fetch the result for a terminal run on this instance.
29
+ *
30
+ * Mirrors the previous flat `GET /tasks/runs/:run_id/result` semantics:
31
+ *
32
+ * - 404 when the run doesn't belong to the agent.
33
+ * - 408 when the run is still active.
34
+ * - 422 (with TaskRunFailedResult body) when the run failed or was cancelled.
35
+ * - 200 (with TaskRunResult body) on success.
20
36
  */
21
37
  getResult(runID: string, params: RunGetResultParams, options?: RequestOptions): APIPromise<RunGetResultResponse>;
22
38
  /**
23
- * Server-Sent Events stream of real-time progress events for a run. The run must
24
- * have been created with `enable_events=true`.
39
+ * SSE stream of real-time progress events for a run on this instance.
25
40
  */
26
41
  streamEvents(runID: string, params: RunStreamEventsParams, options?: RequestOptions): APIPromise<unknown>;
27
42
  }
28
- export type RunListResponse = Array<RunListResponse.RunListResponseItem>;
43
+ /**
44
+ * Paginated list of task runs for GET /tasks/runs.
45
+ */
46
+ export interface RunListResponse {
47
+ items: Array<RunListResponse.Item>;
48
+ total: number;
49
+ limit?: number;
50
+ offset?: number;
51
+ }
29
52
  export declare namespace RunListResponse {
30
- interface RunListResponseItem {
53
+ /**
54
+ * Task run status returned by list/create/get endpoints.
55
+ */
56
+ interface Item {
31
57
  /**
32
- * Run identifier.
58
+ * Run identifier, format "task*run*{uuid}".
33
59
  */
34
60
  id: string;
35
61
  created_at: string;
36
- effort: 'quickest' | 'quick' | 'research' | 'pro' | 'max';
62
+ /**
63
+ * Canonical effort tier names for the research graph.
64
+ */
65
+ effort: 'low' | 'medium' | 'high' | 'x-high' | 'max';
37
66
  /**
38
67
  * Interaction ID — pass as previous_interaction_id to reuse context.
39
68
  */
@@ -42,18 +71,33 @@ export declare namespace RunListResponse {
42
71
  * True while status is 'queued' or 'running'.
43
72
  */
44
73
  is_active: boolean;
74
+ /**
75
+ * Lowercase status values used in API responses (distinct from the DB-level
76
+ * TaskRunStatus enum).
77
+ */
45
78
  status: 'queued' | 'running' | 'completed' | 'failed' | 'cancelled';
79
+ /**
80
+ * Web Search Agent instance this run belongs to. Every task run is agent-bound
81
+ * (see AGENTS-1666). Use this to build the nested URL
82
+ * /api/v2/web-search-agents/{web_search_agent_id}/runs/{id}.
83
+ */
84
+ web_search_agent_id: string;
46
85
  completed_at?: string | null;
47
- error?: RunListResponseItem.Error | null;
48
- prompt?: string | null;
49
- started_at?: string | null;
50
86
  /**
51
- * Web Search Agent instance this run belongs to.
87
+ * Error detail for a failed run.
88
+ */
89
+ error?: Item.Error | null;
90
+ /**
91
+ * Original user prompt before enrichment. Populated for Web Search Agent runs.
52
92
  */
53
- web_search_agent_id?: string | null;
93
+ prompt?: string | null;
94
+ started_at?: string | null;
54
95
  workspace_id?: string | null;
55
96
  }
56
- namespace RunListResponseItem {
97
+ namespace Item {
98
+ /**
99
+ * Error detail for a failed run.
100
+ */
57
101
  interface Error {
58
102
  /**
59
103
  * Human-readable error description.
@@ -66,13 +110,19 @@ export declare namespace RunListResponse {
66
110
  }
67
111
  }
68
112
  }
113
+ /**
114
+ * Task run status returned by list/create/get endpoints.
115
+ */
69
116
  export interface RunGetResponse {
70
117
  /**
71
- * Run identifier.
118
+ * Run identifier, format "task*run*{uuid}".
72
119
  */
73
120
  id: string;
74
121
  created_at: string;
75
- effort: 'quickest' | 'quick' | 'research' | 'pro' | 'max';
122
+ /**
123
+ * Canonical effort tier names for the research graph.
124
+ */
125
+ effort: 'low' | 'medium' | 'high' | 'x-high' | 'max';
76
126
  /**
77
127
  * Interaction ID — pass as previous_interaction_id to reuse context.
78
128
  */
@@ -81,18 +131,33 @@ export interface RunGetResponse {
81
131
  * True while status is 'queued' or 'running'.
82
132
  */
83
133
  is_active: boolean;
134
+ /**
135
+ * Lowercase status values used in API responses (distinct from the DB-level
136
+ * TaskRunStatus enum).
137
+ */
84
138
  status: 'queued' | 'running' | 'completed' | 'failed' | 'cancelled';
139
+ /**
140
+ * Web Search Agent instance this run belongs to. Every task run is agent-bound
141
+ * (see AGENTS-1666). Use this to build the nested URL
142
+ * /api/v2/web-search-agents/{web_search_agent_id}/runs/{id}.
143
+ */
144
+ web_search_agent_id: string;
85
145
  completed_at?: string | null;
146
+ /**
147
+ * Error detail for a failed run.
148
+ */
86
149
  error?: RunGetResponse.Error | null;
87
- prompt?: string | null;
88
- started_at?: string | null;
89
150
  /**
90
- * Web Search Agent instance this run belongs to.
151
+ * Original user prompt before enrichment. Populated for Web Search Agent runs.
91
152
  */
92
- web_search_agent_id?: string | null;
153
+ prompt?: string | null;
154
+ started_at?: string | null;
93
155
  workspace_id?: string | null;
94
156
  }
95
157
  export declare namespace RunGetResponse {
158
+ /**
159
+ * Error detail for a failed run.
160
+ */
96
161
  interface Error {
97
162
  /**
98
163
  * Human-readable error description.
@@ -104,69 +169,214 @@ export declare namespace RunGetResponse {
104
169
  ref_id: string;
105
170
  }
106
171
  }
107
- export type RunGetResultResponse = RunGetResultResponse.AgentRunResult | RunGetResultResponse.AgentRunFailedResult;
172
+ /**
173
+ * Response for GET /tasks/runs/{run_id}/result — status 'completed'.
174
+ */
175
+ export type RunGetResultResponse = RunGetResultResponse.TaskRunResult | RunGetResultResponse.TaskRunFailedResult;
108
176
  export declare namespace RunGetResultResponse {
109
- interface AgentRunResult {
110
- output: AgentRunResult.AgentRunTextOutput | AgentRunResult.AgentRunJsonOutput;
111
- run: AgentRunResult.Run;
177
+ /**
178
+ * Response for GET /tasks/runs/{run_id}/result — status 'completed'.
179
+ */
180
+ interface TaskRunResult {
181
+ /**
182
+ * Output from the completed task.
183
+ */
184
+ output: TaskRunResult.TaskRunTextOutput | TaskRunResult.TaskRunJsonOutput;
185
+ /**
186
+ * Task run object with status 'completed'.
187
+ */
188
+ run: TaskRunResult.Run;
112
189
  }
113
- namespace AgentRunResult {
114
- interface AgentRunTextOutput {
190
+ namespace TaskRunResult {
191
+ /**
192
+ * Text output from a completed task.
193
+ */
194
+ interface TaskRunTextOutput {
115
195
  /**
116
196
  * The final prose answer.
117
197
  */
118
198
  content: string;
119
- basis?: Array<AgentRunTextOutput.Basi>;
199
+ trust: TaskRunTextOutput.Trust;
120
200
  type?: 'text';
121
201
  }
122
- namespace AgentRunTextOutput {
123
- interface Basi {
124
- field: string;
125
- citations?: Array<Basi.Citation>;
126
- confidence?: 'high' | 'medium' | 'low' | null;
127
- reasoning?: string;
202
+ namespace TaskRunTextOutput {
203
+ interface Trust {
204
+ claims: Array<Trust.Claim>;
205
+ confidence: 'high' | 'medium' | 'low';
206
+ reasoning: string;
207
+ sources: Array<Trust.Source>;
128
208
  }
129
- namespace Basi {
130
- interface Citation {
209
+ namespace Trust {
210
+ interface Claim {
211
+ callout: number;
212
+ citations: Array<Claim.Citation>;
213
+ confidence: 'high' | 'medium' | 'low';
214
+ reasoning: string;
215
+ }
216
+ namespace Claim {
217
+ interface Citation {
218
+ url: string;
219
+ excerpts?: Array<string> | null;
220
+ extract_template_name?: string | null;
221
+ /**
222
+ * What _kind_ of source this is (classified by the compress LLM), independent of
223
+ * TrustSourceType (how authoritative it is for a specific claim). Deliberately
224
+ * uses "official" rather than "primary" so the two axes can never collide.
225
+ *
226
+ * Also doubles as the sub-question's `source_intent` (what kind of source a
227
+ * question _needs_) — the two concepts overlap enough that a single enum lets
228
+ * `classify_source_importance` compare "what we got" against "what we asked for"
229
+ * directly.
230
+ */
231
+ source_category?: 'official' | 'news' | 'social' | 'academic' | 'aggregator' | 'other' | null;
232
+ /**
233
+ * What _kind_ of source this is (classified by the compress LLM), independent of
234
+ * TrustSourceType (how authoritative it is for a specific claim). Deliberately
235
+ * uses "official" rather than "primary" so the two axes can never collide.
236
+ *
237
+ * Also doubles as the sub-question's `source_intent` (what kind of source a
238
+ * question _needs_) — the two concepts overlap enough that a single enum lets
239
+ * `classify_source_importance` compare "what we got" against "what we asked for"
240
+ * directly.
241
+ */
242
+ source_intent?: 'official' | 'news' | 'social' | 'academic' | 'aggregator' | 'other' | null;
243
+ source_type?: 'primary' | 'secondary' | null;
244
+ title?: string | null;
245
+ }
246
+ }
247
+ interface Source {
248
+ type: 'primary' | 'secondary';
131
249
  url: string;
132
- excerpts?: Array<string> | null;
133
- index?: number | null;
250
+ extract_template_name?: string | null;
251
+ /**
252
+ * What _kind_ of source this is (classified by the compress LLM), independent of
253
+ * TrustSourceType (how authoritative it is for a specific claim). Deliberately
254
+ * uses "official" rather than "primary" so the two axes can never collide.
255
+ *
256
+ * Also doubles as the sub-question's `source_intent` (what kind of source a
257
+ * question _needs_) — the two concepts overlap enough that a single enum lets
258
+ * `classify_source_importance` compare "what we got" against "what we asked for"
259
+ * directly.
260
+ */
261
+ source_category?: 'official' | 'news' | 'social' | 'academic' | 'aggregator' | 'other' | null;
262
+ /**
263
+ * What _kind_ of source this is (classified by the compress LLM), independent of
264
+ * TrustSourceType (how authoritative it is for a specific claim). Deliberately
265
+ * uses "official" rather than "primary" so the two axes can never collide.
266
+ *
267
+ * Also doubles as the sub-question's `source_intent` (what kind of source a
268
+ * question _needs_) — the two concepts overlap enough that a single enum lets
269
+ * `classify_source_importance` compare "what we got" against "what we asked for"
270
+ * directly.
271
+ */
272
+ source_intent?: 'official' | 'news' | 'social' | 'academic' | 'aggregator' | 'other' | null;
134
273
  title?: string | null;
135
- web_search_agent?: string | null;
136
274
  }
137
275
  }
138
276
  }
139
- interface AgentRunJsonOutput {
277
+ /**
278
+ * Structured JSON output from a completed task, produced when
279
+ * task_spec.output_schema.type is 'json'.
280
+ */
281
+ interface TaskRunJsonOutput {
282
+ /**
283
+ * Data conforming to the caller-supplied JSON schema. A dict for object schemas; a
284
+ * list for array schemas.
285
+ */
140
286
  content: {
141
287
  [key: string]: unknown;
142
288
  } | Array<unknown>;
143
- basis?: Array<AgentRunJsonOutput.Basi>;
289
+ trust: TaskRunJsonOutput.Trust;
144
290
  type?: 'json';
145
291
  }
146
- namespace AgentRunJsonOutput {
147
- interface Basi {
148
- field: string;
149
- citations?: Array<Basi.Citation>;
150
- confidence?: 'high' | 'medium' | 'low' | null;
151
- reasoning?: string;
292
+ namespace TaskRunJsonOutput {
293
+ interface Trust {
294
+ claims: Array<Trust.Claim>;
295
+ confidence: 'high' | 'medium' | 'low';
296
+ reasoning: string;
297
+ sources: Array<Trust.Source>;
152
298
  }
153
- namespace Basi {
154
- interface Citation {
299
+ namespace Trust {
300
+ interface Claim {
301
+ citations: Array<Claim.Citation>;
302
+ confidence: 'high' | 'medium' | 'low';
303
+ path: string;
304
+ reasoning: string;
305
+ }
306
+ namespace Claim {
307
+ interface Citation {
308
+ url: string;
309
+ excerpts?: Array<string> | null;
310
+ extract_template_name?: string | null;
311
+ /**
312
+ * What _kind_ of source this is (classified by the compress LLM), independent of
313
+ * TrustSourceType (how authoritative it is for a specific claim). Deliberately
314
+ * uses "official" rather than "primary" so the two axes can never collide.
315
+ *
316
+ * Also doubles as the sub-question's `source_intent` (what kind of source a
317
+ * question _needs_) — the two concepts overlap enough that a single enum lets
318
+ * `classify_source_importance` compare "what we got" against "what we asked for"
319
+ * directly.
320
+ */
321
+ source_category?: 'official' | 'news' | 'social' | 'academic' | 'aggregator' | 'other' | null;
322
+ /**
323
+ * What _kind_ of source this is (classified by the compress LLM), independent of
324
+ * TrustSourceType (how authoritative it is for a specific claim). Deliberately
325
+ * uses "official" rather than "primary" so the two axes can never collide.
326
+ *
327
+ * Also doubles as the sub-question's `source_intent` (what kind of source a
328
+ * question _needs_) — the two concepts overlap enough that a single enum lets
329
+ * `classify_source_importance` compare "what we got" against "what we asked for"
330
+ * directly.
331
+ */
332
+ source_intent?: 'official' | 'news' | 'social' | 'academic' | 'aggregator' | 'other' | null;
333
+ source_type?: 'primary' | 'secondary' | null;
334
+ title?: string | null;
335
+ }
336
+ }
337
+ interface Source {
338
+ type: 'primary' | 'secondary';
155
339
  url: string;
156
- excerpts?: Array<string> | null;
157
- index?: number | null;
340
+ extract_template_name?: string | null;
341
+ /**
342
+ * What _kind_ of source this is (classified by the compress LLM), independent of
343
+ * TrustSourceType (how authoritative it is for a specific claim). Deliberately
344
+ * uses "official" rather than "primary" so the two axes can never collide.
345
+ *
346
+ * Also doubles as the sub-question's `source_intent` (what kind of source a
347
+ * question _needs_) — the two concepts overlap enough that a single enum lets
348
+ * `classify_source_importance` compare "what we got" against "what we asked for"
349
+ * directly.
350
+ */
351
+ source_category?: 'official' | 'news' | 'social' | 'academic' | 'aggregator' | 'other' | null;
352
+ /**
353
+ * What _kind_ of source this is (classified by the compress LLM), independent of
354
+ * TrustSourceType (how authoritative it is for a specific claim). Deliberately
355
+ * uses "official" rather than "primary" so the two axes can never collide.
356
+ *
357
+ * Also doubles as the sub-question's `source_intent` (what kind of source a
358
+ * question _needs_) — the two concepts overlap enough that a single enum lets
359
+ * `classify_source_importance` compare "what we got" against "what we asked for"
360
+ * directly.
361
+ */
362
+ source_intent?: 'official' | 'news' | 'social' | 'academic' | 'aggregator' | 'other' | null;
158
363
  title?: string | null;
159
- web_search_agent?: string | null;
160
364
  }
161
365
  }
162
366
  }
367
+ /**
368
+ * Task run object with status 'completed'.
369
+ */
163
370
  interface Run {
164
371
  /**
165
- * Run identifier.
372
+ * Run identifier, format "task*run*{uuid}".
166
373
  */
167
374
  id: string;
168
375
  created_at: string;
169
- effort: 'quickest' | 'quick' | 'research' | 'pro' | 'max';
376
+ /**
377
+ * Canonical effort tier names for the research graph.
378
+ */
379
+ effort: 'low' | 'medium' | 'high' | 'x-high' | 'max';
170
380
  /**
171
381
  * Interaction ID — pass as previous_interaction_id to reuse context.
172
382
  */
@@ -175,18 +385,33 @@ export declare namespace RunGetResultResponse {
175
385
  * True while status is 'queued' or 'running'.
176
386
  */
177
387
  is_active: boolean;
388
+ /**
389
+ * Lowercase status values used in API responses (distinct from the DB-level
390
+ * TaskRunStatus enum).
391
+ */
178
392
  status: 'queued' | 'running' | 'completed' | 'failed' | 'cancelled';
393
+ /**
394
+ * Web Search Agent instance this run belongs to. Every task run is agent-bound
395
+ * (see AGENTS-1666). Use this to build the nested URL
396
+ * /api/v2/web-search-agents/{web_search_agent_id}/runs/{id}.
397
+ */
398
+ web_search_agent_id: string;
179
399
  completed_at?: string | null;
400
+ /**
401
+ * Error detail for a failed run.
402
+ */
180
403
  error?: Run.Error | null;
181
- prompt?: string | null;
182
- started_at?: string | null;
183
404
  /**
184
- * Web Search Agent instance this run belongs to.
405
+ * Original user prompt before enrichment. Populated for Web Search Agent runs.
185
406
  */
186
- web_search_agent_id?: string | null;
407
+ prompt?: string | null;
408
+ started_at?: string | null;
187
409
  workspace_id?: string | null;
188
410
  }
189
411
  namespace Run {
412
+ /**
413
+ * Error detail for a failed run.
414
+ */
190
415
  interface Error {
191
416
  /**
192
417
  * Human-readable error description.
@@ -199,11 +424,26 @@ export declare namespace RunGetResultResponse {
199
424
  }
200
425
  }
201
426
  }
202
- interface AgentRunFailedResult {
203
- error: AgentRunFailedResult.Error;
204
- run: AgentRunFailedResult.Run;
427
+ /**
428
+ * Response for GET /tasks/runs/{run_id}/result when the run failed.
429
+ *
430
+ * Returned with HTTP 422 so callers can distinguish a failed run from a missing
431
+ * one (404) or an active one (408).
432
+ */
433
+ interface TaskRunFailedResult {
434
+ /**
435
+ * Structured error detail.
436
+ */
437
+ error: TaskRunFailedResult.Error;
438
+ /**
439
+ * Task run object with status 'failed'.
440
+ */
441
+ run: TaskRunFailedResult.Run;
205
442
  }
206
- namespace AgentRunFailedResult {
443
+ namespace TaskRunFailedResult {
444
+ /**
445
+ * Structured error detail.
446
+ */
207
447
  interface Error {
208
448
  /**
209
449
  * Human-readable error description.
@@ -214,13 +454,19 @@ export declare namespace RunGetResultResponse {
214
454
  */
215
455
  ref_id: string;
216
456
  }
457
+ /**
458
+ * Task run object with status 'failed'.
459
+ */
217
460
  interface Run {
218
461
  /**
219
- * Run identifier.
462
+ * Run identifier, format "task*run*{uuid}".
220
463
  */
221
464
  id: string;
222
465
  created_at: string;
223
- effort: 'quickest' | 'quick' | 'research' | 'pro' | 'max';
466
+ /**
467
+ * Canonical effort tier names for the research graph.
468
+ */
469
+ effort: 'low' | 'medium' | 'high' | 'x-high' | 'max';
224
470
  /**
225
471
  * Interaction ID — pass as previous_interaction_id to reuse context.
226
472
  */
@@ -229,18 +475,33 @@ export declare namespace RunGetResultResponse {
229
475
  * True while status is 'queued' or 'running'.
230
476
  */
231
477
  is_active: boolean;
478
+ /**
479
+ * Lowercase status values used in API responses (distinct from the DB-level
480
+ * TaskRunStatus enum).
481
+ */
232
482
  status: 'queued' | 'running' | 'completed' | 'failed' | 'cancelled';
483
+ /**
484
+ * Web Search Agent instance this run belongs to. Every task run is agent-bound
485
+ * (see AGENTS-1666). Use this to build the nested URL
486
+ * /api/v2/web-search-agents/{web_search_agent_id}/runs/{id}.
487
+ */
488
+ web_search_agent_id: string;
233
489
  completed_at?: string | null;
490
+ /**
491
+ * Error detail for a failed run.
492
+ */
234
493
  error?: Run.Error | null;
235
- prompt?: string | null;
236
- started_at?: string | null;
237
494
  /**
238
- * Web Search Agent instance this run belongs to.
495
+ * Original user prompt before enrichment. Populated for Web Search Agent runs.
239
496
  */
240
- web_search_agent_id?: string | null;
497
+ prompt?: string | null;
498
+ started_at?: string | null;
241
499
  workspace_id?: string | null;
242
500
  }
243
501
  namespace Run {
502
+ /**
503
+ * Error detail for a failed run.
504
+ */
244
505
  interface Error {
245
506
  /**
246
507
  * Human-readable error description.
@@ -258,6 +519,8 @@ export type RunStreamEventsResponse = unknown;
258
519
  export interface RunListParams {
259
520
  limit?: number;
260
521
  offset?: number;
522
+ q?: string | null;
523
+ status?: string | null;
261
524
  }
262
525
  export interface RunCancelParams {
263
526
  agent_id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"runs.d.mts","sourceRoot":"","sources":["../../src/resources/task-agent/runs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,IAAK,SAAQ,WAAW;IACnC;;OAEG;IACH,IAAI,CACF,OAAO,EAAE,MAAM,EACf,KAAK,GAAE,aAAa,GAAG,IAAI,GAAG,SAAc,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,eAAe,CAAC;IAI9B;;OAEG;IACH,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQ1F;;OAEG;IACH,GAAG,CAAC,KAAK,EAAE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