@converge.ai/a13n 0.0.93 → 0.0.98

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 (66) hide show
  1. package/README.md +87 -61
  2. package/THIRD_PARTY_NOTICES.txt +83 -0
  3. package/dist/client.d.ts +1 -1
  4. package/dist/client.js +2 -2
  5. package/dist/client.js.map +1 -1
  6. package/dist/dispatch.d.ts +6 -0
  7. package/dist/dispatch.d.ts.map +1 -0
  8. package/dist/dispatch.js +19 -0
  9. package/dist/dispatch.js.map +1 -0
  10. package/dist/errors.d.ts +23 -1
  11. package/dist/errors.d.ts.map +1 -1
  12. package/dist/errors.js +38 -5
  13. package/dist/errors.js.map +1 -1
  14. package/dist/index.d.ts +7 -2
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/index.js +3 -1
  17. package/dist/index.js.map +1 -1
  18. package/dist/resources/base.d.ts.map +1 -1
  19. package/dist/resources/base.js +5 -2
  20. package/dist/resources/base.js.map +1 -1
  21. package/dist/resources/generated.d.ts +3638 -1221
  22. package/dist/resources/generated.d.ts.map +1 -1
  23. package/dist/resources/generated.js +2312 -495
  24. package/dist/resources/generated.js.map +1 -1
  25. package/dist/resources/interaction.d.ts +1 -7
  26. package/dist/resources/interaction.d.ts.map +1 -1
  27. package/dist/resources/interaction.js +2 -30
  28. package/dist/resources/interaction.js.map +1 -1
  29. package/dist/schema.d.ts +15555 -6210
  30. package/dist/schema.d.ts.map +1 -1
  31. package/dist/semantic.d.ts +107 -119
  32. package/dist/semantic.d.ts.map +1 -1
  33. package/dist/semantic.js +461 -168
  34. package/dist/semantic.js.map +1 -1
  35. package/dist/session-stream-schema.d.ts +1851 -0
  36. package/dist/session-stream-schema.d.ts.map +1 -0
  37. package/dist/session-stream-schema.js +2 -0
  38. package/dist/session-stream-schema.js.map +1 -0
  39. package/dist/session-stream-validation.d.ts +129 -0
  40. package/dist/session-stream-validation.d.ts.map +1 -0
  41. package/dist/session-stream-validation.js +30324 -0
  42. package/dist/session-stream-validation.js.map +1 -0
  43. package/dist/streams/session-stream.d.ts +12 -0
  44. package/dist/streams/session-stream.d.ts.map +1 -0
  45. package/dist/streams/session-stream.js +36 -0
  46. package/dist/streams/session-stream.js.map +1 -0
  47. package/dist/streams/sse.d.ts +5 -1
  48. package/dist/streams/sse.d.ts.map +1 -1
  49. package/dist/streams/sse.js +11 -4
  50. package/dist/streams/sse.js.map +1 -1
  51. package/dist/streams/thread-stream.d.ts +8 -2
  52. package/dist/streams/thread-stream.d.ts.map +1 -1
  53. package/dist/streams/thread-stream.js +4 -2
  54. package/dist/streams/thread-stream.js.map +1 -1
  55. package/dist/transport.d.ts.map +1 -1
  56. package/dist/transport.js +3 -0
  57. package/dist/transport.js.map +1 -1
  58. package/dist/workflow.d.ts +117 -0
  59. package/dist/workflow.d.ts.map +1 -0
  60. package/dist/workflow.js +90 -0
  61. package/dist/workflow.js.map +1 -0
  62. package/dist/workspace-scope.d.ts.map +1 -1
  63. package/dist/workspace-scope.js +132 -0
  64. package/dist/workspace-scope.js.map +1 -1
  65. package/openapi.json +35484 -11086
  66. package/package.json +5 -1
@@ -0,0 +1,1851 @@
1
+ export type paths = Record<string, never>;
2
+ export type webhooks = Record<string, never>;
3
+ export interface components {
4
+ schemas: {
5
+ /**
6
+ * AgentModelCharacteristics
7
+ * @description The agent's context policy, layered over what the model declares.
8
+ */
9
+ AgentModelCharacteristics: {
10
+ /**
11
+ * Compact Threshold
12
+ * @default 0.9
13
+ */
14
+ compact_threshold?: number;
15
+ /**
16
+ * Context Window Tokens
17
+ * @default null
18
+ */
19
+ context_window_tokens?: number | null;
20
+ /**
21
+ * Proactive Context Management Threshold
22
+ * @default 0.65
23
+ */
24
+ proactive_context_management_threshold?: number | null;
25
+ };
26
+ /**
27
+ * AgentOverride
28
+ * @description What one run changes of its revision's configuration; an omitted or null field keeps the revision's.
29
+ *
30
+ * `toolsets` replaces whole toolsets; `retries` and each subagent edge replace the fields they set, and a null
31
+ * edge removes it; every other field replaces the revision's value.
32
+ */
33
+ AgentOverride: {
34
+ /**
35
+ * Builtin Skills
36
+ * @default null
37
+ */
38
+ builtin_skills?: components["schemas"]["BuiltinSkillName"][] | null;
39
+ /**
40
+ * Client Tools
41
+ * @default null
42
+ */
43
+ client_tools?: components["schemas"]["ClientToolDefinition"][] | null;
44
+ /**
45
+ * Connection Tools
46
+ * @default null
47
+ */
48
+ connection_tools?: components["schemas"]["ConnectionSelection"][] | null;
49
+ /**
50
+ * Instructions
51
+ * @default null
52
+ */
53
+ instructions?: string | null;
54
+ /**
55
+ * Lazy Environment
56
+ * @default null
57
+ */
58
+ lazy_environment?: boolean | null;
59
+ /** @default null */
60
+ media_understanding?: components["schemas"]["MediaUnderstandingSelection"] | null;
61
+ /**
62
+ * Model
63
+ * @default null
64
+ */
65
+ model?: string | null;
66
+ /** @default null */
67
+ model_characteristics?: components["schemas"]["AgentModelCharacteristics"] | null;
68
+ /**
69
+ * Model Settings
70
+ * @default null
71
+ */
72
+ model_settings?: {
73
+ [key: string]: components["schemas"]["JsonValue"];
74
+ } | null;
75
+ /** @default null */
76
+ output_spec?: components["schemas"]["OutputSpec"] | null;
77
+ /**
78
+ * Plugins
79
+ * @default null
80
+ */
81
+ plugins?: components["schemas"]["PluginSelection"][] | null;
82
+ /** @default null */
83
+ retries?: components["schemas"]["RetryOverride"] | null;
84
+ /** @default null */
85
+ reviewer?: components["schemas"]["AgentReviewer"] | null;
86
+ /**
87
+ * Skill Sync
88
+ * @default null
89
+ */
90
+ skill_sync?: (components["schemas"]["SharedSkillSync"] | components["schemas"]["IsolatedSkillSync"]) | null;
91
+ /**
92
+ * Skills
93
+ * @default null
94
+ */
95
+ skills?: components["schemas"]["SkillSelection"][] | null;
96
+ /**
97
+ * Subagents
98
+ * @default null
99
+ */
100
+ subagents?: {
101
+ [key: string]: components["schemas"]["SubagentOverride"] | null;
102
+ } | null;
103
+ /** @default null */
104
+ tool_search?: components["schemas"]["ToolSearch"] | null;
105
+ /**
106
+ * Toolsets
107
+ * @default null
108
+ */
109
+ toolsets?: {
110
+ [key: string]: components["schemas"]["ToolsetSelection"];
111
+ } | null;
112
+ };
113
+ /**
114
+ * AgentReviewer
115
+ * @description The model reviewing calls whose permission is `review`, selected by model key.
116
+ */
117
+ AgentReviewer: {
118
+ /**
119
+ * Instruction
120
+ * @default null
121
+ */
122
+ instruction?: string | null;
123
+ /** Model */
124
+ model: string;
125
+ /**
126
+ * Model Settings
127
+ * @default null
128
+ */
129
+ model_settings?: {
130
+ [key: string]: components["schemas"]["JsonValue"];
131
+ } | null;
132
+ /**
133
+ * On Error
134
+ * @default approval_required
135
+ * @enum {string}
136
+ */
137
+ on_error?: "deny" | "approval_required" | "allow";
138
+ /**
139
+ * On Flagged
140
+ * @default deny
141
+ * @enum {string}
142
+ */
143
+ on_flagged?: "deny" | "approval_required";
144
+ /** @default extra_high */
145
+ risk_threshold?: components["schemas"]["ToolRiskLevel"];
146
+ /** Rules */
147
+ rules?: {
148
+ [key: string]: components["schemas"]["ToolReviewRule"];
149
+ };
150
+ /**
151
+ * Shell Instruction
152
+ * @default null
153
+ */
154
+ shell_instruction?: string | null;
155
+ /**
156
+ * Timeout Seconds
157
+ * @default 120
158
+ */
159
+ timeout_seconds?: number;
160
+ };
161
+ /**
162
+ * AppReady
163
+ * @description App originals and references are committed; opening still checks access and fetches current HTML.
164
+ */
165
+ AppReady: {
166
+ /** Apps */
167
+ apps: components["schemas"]["AppReference"][];
168
+ /** Run Id */
169
+ run_id: string;
170
+ /** Thread Id */
171
+ thread_id: string;
172
+ };
173
+ /** AppReference */
174
+ AppReference: {
175
+ /** Agent Revision Id */
176
+ agent_revision_id: string;
177
+ /** App Id */
178
+ app_id: string;
179
+ /** Connection Id */
180
+ connection_id: string;
181
+ /** Resource Uri */
182
+ resource_uri: string;
183
+ /** Source Run Id */
184
+ source_run_id: string;
185
+ /** Tool Call Id */
186
+ tool_call_id: string;
187
+ /** Tool Name */
188
+ tool_name: string;
189
+ /**
190
+ * Unavailable
191
+ * @default false
192
+ */
193
+ unavailable?: boolean;
194
+ };
195
+ ApprovalDecision: components["schemas"]["Approve"] | components["schemas"]["Deny"];
196
+ /** Approve */
197
+ Approve: {
198
+ /**
199
+ * @description discriminator enum property added by openapi-typescript
200
+ * @enum {string}
201
+ */
202
+ action: "approve";
203
+ reason?: never;
204
+ };
205
+ /** AssetPart */
206
+ AssetPart: {
207
+ /** Asset Id */
208
+ asset_id: string;
209
+ /**
210
+ * @description discriminator enum property added by openapi-typescript
211
+ * @enum {string}
212
+ */
213
+ type: "asset";
214
+ text?: never;
215
+ url?: never;
216
+ value?: never;
217
+ };
218
+ /**
219
+ * AutomaticToolSearch
220
+ * @description Group Service-owned sources individually, following the agent's selections.
221
+ */
222
+ AutomaticToolSearch: {
223
+ /**
224
+ * Capabilities
225
+ * @default [
226
+ * "browser",
227
+ * "computer"
228
+ * ]
229
+ */
230
+ capabilities?: components["schemas"]["BuiltinToolsetKey"][];
231
+ /**
232
+ * Connections
233
+ * @default true
234
+ */
235
+ connections?: boolean;
236
+ /**
237
+ * Exclude Connections
238
+ * @default []
239
+ */
240
+ exclude_connections?: string[];
241
+ /**
242
+ * Exclude Platform
243
+ * @default false
244
+ */
245
+ exclude_platform?: boolean;
246
+ };
247
+ /** BrowserBinding */
248
+ BrowserBinding: {
249
+ /** Browser Id */
250
+ browser_id: string;
251
+ /**
252
+ * Preparation
253
+ * @default first_use
254
+ * @enum {string}
255
+ */
256
+ preparation?: "first_use" | "run_start";
257
+ /**
258
+ * Tab Access
259
+ * @default thread
260
+ * @enum {string}
261
+ */
262
+ tab_access?: "global" | "thread";
263
+ };
264
+ /** @constant */
265
+ BuiltinSkillName: "platform-operations";
266
+ /** @enum {string} */
267
+ BuiltinToolsetKey: "files" | "shell" | "computer" | "browser" | "web" | "memory" | "assets";
268
+ CallResult: components["schemas"]["Returned"] | components["schemas"]["Failed"];
269
+ /**
270
+ * ChildEnvironmentPolicy
271
+ * @description What a child run mounts: no environment, the parent's, or a new one from `template_id`.
272
+ */
273
+ ChildEnvironmentPolicy: {
274
+ /**
275
+ * Mode
276
+ * @default shared
277
+ * @enum {string}
278
+ */
279
+ mode?: "none" | "shared" | "dedicated";
280
+ /**
281
+ * Template Id
282
+ * @default null
283
+ */
284
+ template_id?: string | null;
285
+ };
286
+ /**
287
+ * ClientToolDefinition
288
+ * @description Portable model guidance for one externally executed client tool.
289
+ */
290
+ ClientToolDefinition: {
291
+ /** Description */
292
+ description: string;
293
+ /**
294
+ * Instruction
295
+ * @default null
296
+ */
297
+ instruction?: string | null;
298
+ /** Metadata */
299
+ metadata?: {
300
+ [key: string]: components["schemas"]["JsonValue"];
301
+ };
302
+ /** Name */
303
+ name: string;
304
+ /** Parameters Json Schema */
305
+ parameters_json_schema: {
306
+ [key: string]: components["schemas"]["JsonValue"];
307
+ };
308
+ /**
309
+ * Permission
310
+ * @default inherit
311
+ * @enum {string}
312
+ */
313
+ permission?: "inherit" | "allow" | "deny";
314
+ };
315
+ /** Configuration */
316
+ Configuration: {
317
+ /** Id */
318
+ id: string;
319
+ /** Max Lateness Seconds */
320
+ max_lateness_seconds: number;
321
+ /** Name */
322
+ name: string;
323
+ /** Pause Reason */
324
+ pause_reason: string | null;
325
+ /** Principal Id */
326
+ principal_id: string;
327
+ schedule: components["schemas"]["ScheduleRule"];
328
+ /** Session Id */
329
+ session_id: string;
330
+ state: components["schemas"]["ScheduleState"];
331
+ /** Version */
332
+ version: number;
333
+ };
334
+ /**
335
+ * ConnectionSelection
336
+ * @description An agent's selected tools and permissions.
337
+ */
338
+ ConnectionSelection: {
339
+ /** Connection Id */
340
+ connection_id: string;
341
+ /** @default inherit */
342
+ permission?: components["schemas"]["ToolPermissionSetting"];
343
+ /** Permissions */
344
+ permissions?: {
345
+ [key: string]: components["schemas"]["ToolPermissionSetting"];
346
+ };
347
+ /**
348
+ * Tools
349
+ * @default null
350
+ */
351
+ tools?: string[] | null;
352
+ };
353
+ /**
354
+ * ContentRef
355
+ * @description An immutable Host-owned value, loaded through that Host's authorized content API.
356
+ */
357
+ ContentRef: {
358
+ /** Id */
359
+ id: string;
360
+ /**
361
+ * Media Type
362
+ * @enum {string}
363
+ */
364
+ media_type: "text/plain" | "application/json";
365
+ /** Preview */
366
+ preview: string;
367
+ /** Size Bytes */
368
+ size_bytes: number;
369
+ /**
370
+ * Truncated
371
+ * @default false
372
+ */
373
+ truncated?: boolean;
374
+ };
375
+ /** CronSchedule */
376
+ CronSchedule: {
377
+ /** Expression */
378
+ expression: string;
379
+ /** Timezone */
380
+ timezone: string;
381
+ /**
382
+ * Type
383
+ * @default cron
384
+ * @constant
385
+ */
386
+ type?: "cron";
387
+ };
388
+ /** DelegationContextPolicy */
389
+ DelegationContextPolicy: {
390
+ /**
391
+ * History
392
+ * @default none
393
+ * @enum {string}
394
+ */
395
+ history?: "none" | "summary" | "selected";
396
+ /**
397
+ * Include Task
398
+ * @default true
399
+ */
400
+ include_task?: boolean;
401
+ /**
402
+ * Task State
403
+ * @default shared
404
+ * @enum {string}
405
+ */
406
+ task_state?: "shared" | "isolated";
407
+ };
408
+ /** @enum {string} */
409
+ Delivery: "steer" | "next_run";
410
+ /**
411
+ * Delta
412
+ * @description One raw AG-UI event, sequenced by the producer and correlated to its display item.
413
+ */
414
+ Delta: {
415
+ /** Attempt */
416
+ attempt: number;
417
+ /** Event */
418
+ event: {
419
+ [key: string]: unknown;
420
+ };
421
+ item: components["schemas"]["ItemRef"] | null;
422
+ /** Run Id */
423
+ run_id: string;
424
+ /** Sequence */
425
+ sequence: number;
426
+ /** Thread Id */
427
+ thread_id: string;
428
+ };
429
+ /** Deny */
430
+ Deny: {
431
+ /**
432
+ * @description discriminator enum property added by openapi-typescript
433
+ * @enum {string}
434
+ */
435
+ action: "deny";
436
+ /**
437
+ * Reason
438
+ * @default null
439
+ */
440
+ reason?: string | null;
441
+ };
442
+ /**
443
+ * DisplayContinuation
444
+ * @description Parsing state at a semantic cut; Host paging may retire only immutable items.
445
+ */
446
+ DisplayContinuation: {
447
+ /** @default null */
448
+ arguments?: components["schemas"]["_Arguments"] | null;
449
+ fragments?: components["schemas"]["FragmentState"];
450
+ /**
451
+ * Full Content
452
+ * @default false
453
+ */
454
+ full_content?: boolean;
455
+ /** Memory Sources */
456
+ memory_sources?: {
457
+ [key: string]: components["schemas"]["MemorySource"][];
458
+ };
459
+ /** Next Ordinal */
460
+ next_ordinal: number;
461
+ observer?: components["schemas"]["ObserverContinuation"];
462
+ position: components["schemas"]["StreamPosition"];
463
+ /** Response Groups */
464
+ response_groups?: {
465
+ [key: string]: string;
466
+ };
467
+ /** Run Id */
468
+ run_id: string;
469
+ };
470
+ /** @enum {string} */
471
+ EntryStatus: "pending" | "assigned" | "consumed" | "failed" | "withdrawn";
472
+ /** EntryView */
473
+ EntryView: {
474
+ /** Agent Id */
475
+ agent_id: string | null;
476
+ /** Agent Revision Id */
477
+ agent_revision_id: string | null;
478
+ /** Assigned Run Id */
479
+ assigned_run_id: string | null;
480
+ /** Child Run Id */
481
+ child_run_id: string | null;
482
+ /**
483
+ * Created At
484
+ * Format: date-time
485
+ */
486
+ created_at: string;
487
+ delivery: components["schemas"]["Delivery"];
488
+ failure: components["schemas"]["Failure"] | null;
489
+ /** Finished At */
490
+ finished_at: string | null;
491
+ /** Id */
492
+ id: string;
493
+ /** Incorporated Checkpoint Seq */
494
+ incorporated_checkpoint_seq: number | null;
495
+ /**
496
+ * Kind
497
+ * @enum {string}
498
+ */
499
+ kind: "message" | "child_result" | "tool_result" | "browser_handback" | "desktop_handback";
500
+ options: components["schemas"]["RunOptions"];
501
+ /** Origin Run Id */
502
+ origin_run_id: string | null;
503
+ /** Payload */
504
+ payload: {
505
+ [key: string]: components["schemas"]["JsonValue"];
506
+ };
507
+ /** Position */
508
+ position: number;
509
+ /** Principal Id */
510
+ principal_id: string;
511
+ status: components["schemas"]["EntryStatus"];
512
+ /** Thread Id */
513
+ thread_id: string;
514
+ };
515
+ /**
516
+ * EnvironmentAction
517
+ * @description Exact authorization values in the locked first-party catalog.
518
+ * @enum {string}
519
+ */
520
+ EnvironmentAction: "environment.file.stat" | "environment.file.read_text" | "environment.file.read_bytes" | "environment.file.write_text" | "environment.file.patch_text" | "environment.file.list" | "environment.file.query" | "environment.file.search_text" | "environment.file.mkdir" | "environment.file.move" | "environment.file.remove" | "environment.file.write_bytes" | "environment.file.copy_source" | "environment.file.copy_destination" | "environment.shell.exec" | "environment.process.list" | "environment.process.start" | "environment.process.inspect" | "environment.process.read_output" | "environment.process.write_stdin" | "environment.process.close_stdin" | "environment.process.signal" | "environment.process.wait" | "environment.process.kill" | "environment.process.release" | "environment.output.read" | "environment.output.release" | "environment.port.inspect" | "environment.port.wait" | "environment.state.export" | "environment.state.restore" | "environment.computer.describe" | "environment.computer.observe" | "environment.computer.zoom" | "environment.computer.click" | "environment.computer.move" | "environment.computer.drag" | "environment.computer.scroll" | "environment.computer.type_text" | "environment.computer.press_keys" | "environment.computer.read_clipboard" | "environment.computer.write_clipboard";
521
+ /** EnvironmentMount */
522
+ EnvironmentMount: {
523
+ /** Environment Id */
524
+ environment_id: string;
525
+ /** Name */
526
+ name: string;
527
+ /**
528
+ * @default {
529
+ * "operations": [
530
+ * "environment.file.copy_destination",
531
+ * "environment.file.copy_source",
532
+ * "environment.file.list",
533
+ * "environment.file.mkdir",
534
+ * "environment.file.move",
535
+ * "environment.file.patch_text",
536
+ * "environment.file.query",
537
+ * "environment.file.read_bytes",
538
+ * "environment.file.read_text",
539
+ * "environment.file.remove",
540
+ * "environment.file.search_text",
541
+ * "environment.file.stat",
542
+ * "environment.file.write_bytes",
543
+ * "environment.file.write_text",
544
+ * "environment.output.read",
545
+ * "environment.output.release",
546
+ * "environment.port.inspect",
547
+ * "environment.port.wait",
548
+ * "environment.process.close_stdin",
549
+ * "environment.process.inspect",
550
+ * "environment.process.kill",
551
+ * "environment.process.list",
552
+ * "environment.process.read_output",
553
+ * "environment.process.release",
554
+ * "environment.process.signal",
555
+ * "environment.process.start",
556
+ * "environment.process.wait",
557
+ * "environment.process.write_stdin",
558
+ * "environment.shell.exec",
559
+ * "environment.state.export",
560
+ * "environment.state.restore"
561
+ * ]
562
+ * }
563
+ */
564
+ permission_ceiling?: components["schemas"]["EnvironmentPermissionSet"];
565
+ /**
566
+ * Working Directory
567
+ * @default null
568
+ */
569
+ working_directory?: string | null;
570
+ };
571
+ /** EnvironmentPermissionSet */
572
+ EnvironmentPermissionSet: {
573
+ /** Operations */
574
+ operations?: components["schemas"]["EnvironmentAction"][];
575
+ };
576
+ /** @description Default variables for Agent commands. Ordinary readable configuration, not secret storage. Command variables override these defaults. */
577
+ EnvironmentVariables: {
578
+ [key: string]: string;
579
+ };
580
+ /**
581
+ * ExecutionOverride
582
+ * @description Sparse choices: null inherits; Thread PATCH distinguishes omission from null.
583
+ */
584
+ ExecutionOverride: {
585
+ /** @default null */
586
+ environment?: components["schemas"]["EnvironmentVariables"] | null;
587
+ /** @default null */
588
+ steering?: components["schemas"]["Steering"] | null;
589
+ /** @default null */
590
+ tools?: components["schemas"]["ToolExecutionOverride"] | null;
591
+ };
592
+ /**
593
+ * Failed
594
+ * @description An explicit external tool failure, including an intentional unanswered question.
595
+ */
596
+ Failed: {
597
+ /** Message */
598
+ message: string;
599
+ /**
600
+ * @description discriminator enum property added by openapi-typescript
601
+ * @enum {string}
602
+ */
603
+ status: "failed";
604
+ value?: never;
605
+ };
606
+ /** Failure */
607
+ Failure: {
608
+ /** Code */
609
+ code: string;
610
+ /** Message */
611
+ message: string;
612
+ };
613
+ /** FileSource */
614
+ FileSource: {
615
+ /** Bytes */
616
+ bytes: number;
617
+ /** Path */
618
+ path: string;
619
+ /** Sha256 */
620
+ sha256: string;
621
+ /**
622
+ * Truncated
623
+ * @default false
624
+ */
625
+ truncated?: boolean;
626
+ };
627
+ /**
628
+ * FragmentState
629
+ * @description Incomplete custom payloads, not a journal of completed events.
630
+ */
631
+ FragmentState: {
632
+ /**
633
+ * Gap
634
+ * @default false
635
+ */
636
+ gap?: boolean;
637
+ /**
638
+ * Max Bytes
639
+ * @default 67108864
640
+ */
641
+ max_bytes?: number;
642
+ /**
643
+ * Max Pending
644
+ * @default 8
645
+ */
646
+ max_pending?: number;
647
+ /** Pending */
648
+ pending?: {
649
+ [key: string]: components["schemas"]["_Assembly"];
650
+ };
651
+ };
652
+ /**
653
+ * FrozenMemoryMount
654
+ * @description Host-resolved Space identity and roots, never accepted from a mount request.
655
+ */
656
+ FrozenMemoryMount: {
657
+ access: components["schemas"]["MemoryAccess"];
658
+ /** Memory Id */
659
+ memory_id: string;
660
+ /** Name */
661
+ name: string;
662
+ /**
663
+ * Recall
664
+ * @default true
665
+ */
666
+ recall?: boolean;
667
+ /**
668
+ * Roots
669
+ * @default []
670
+ */
671
+ roots?: string[];
672
+ /**
673
+ * Space Id
674
+ * @default null
675
+ */
676
+ space_id?: string | null;
677
+ };
678
+ /**
679
+ * Gap
680
+ * @description Output of a followed run was lost: its deltas are held until an `items` frame repairs it.
681
+ */
682
+ Gap: {
683
+ /** Run Id */
684
+ run_id: string;
685
+ /** Thread Id */
686
+ thread_id: string;
687
+ };
688
+ /**
689
+ * HistoricalDesktopPending
690
+ * @description Read-only projection of sealed desktop suspensions predating Computer-scoped control.
691
+ */
692
+ HistoricalDesktopPending: {
693
+ /** Approvals */
694
+ approvals: components["schemas"]["PendingCall"][];
695
+ /** Calls */
696
+ calls: components["schemas"]["PendingCall"][];
697
+ /** Desktop Control Id */
698
+ desktop_control_id: string;
699
+ };
700
+ /** InitialRun */
701
+ InitialRun: {
702
+ /** Id */
703
+ id: string;
704
+ status: components["schemas"]["RunStatus"];
705
+ };
706
+ /**
707
+ * IsolatedSkillSync
708
+ * @description Reuse immutable package directories, with a soft count budget.
709
+ */
710
+ IsolatedSkillSync: {
711
+ /**
712
+ * Cache Count
713
+ * @default 128
714
+ */
715
+ cache_count?: number;
716
+ /**
717
+ * @description discriminator enum property added by openapi-typescript
718
+ * @enum {string}
719
+ */
720
+ mode: "isolated";
721
+ };
722
+ /** Item */
723
+ Item: {
724
+ /** Content */
725
+ content: {
726
+ [key: string]: components["schemas"]["JsonValue"];
727
+ };
728
+ /** Content Refs */
729
+ content_refs?: {
730
+ [key: string]: components["schemas"]["ContentRef"];
731
+ };
732
+ /**
733
+ * Ended At
734
+ * @default null
735
+ */
736
+ ended_at?: string | null;
737
+ /** First Stream Id */
738
+ first_stream_id: string;
739
+ /** Id */
740
+ id: string;
741
+ kind: components["schemas"]["ItemKind"];
742
+ /** Last Stream Id */
743
+ last_stream_id: string;
744
+ /** Ordinal */
745
+ ordinal: number;
746
+ /**
747
+ * Started At
748
+ * Format: date-time
749
+ */
750
+ started_at: string;
751
+ state: components["schemas"]["ItemState"];
752
+ };
753
+ /** @enum {string} */
754
+ ItemKind: "text_message" | "reasoning_message" | "tool_call" | "observation";
755
+ /**
756
+ * ItemRef
757
+ * @description The item a live event changed, and its state after the event.
758
+ */
759
+ ItemRef: {
760
+ /**
761
+ * Failure
762
+ * @default null
763
+ */
764
+ failure?: {
765
+ [key: string]: components["schemas"]["JsonValue"];
766
+ } | null;
767
+ /** Id */
768
+ id: string;
769
+ kind: components["schemas"]["ItemKind"];
770
+ /**
771
+ * Memory Sources
772
+ * @default null
773
+ */
774
+ memory_sources?: components["schemas"]["MemorySource"][] | null;
775
+ /**
776
+ * Ordinal
777
+ * @default null
778
+ */
779
+ ordinal?: number | null;
780
+ /**
781
+ * Response Group
782
+ * @default null
783
+ */
784
+ response_group?: string | null;
785
+ state: components["schemas"]["ItemState"];
786
+ };
787
+ /** @enum {string} */
788
+ ItemState: "in_progress" | "completed" | "interrupted" | "failed";
789
+ /** JsonPart */
790
+ JsonPart: {
791
+ /**
792
+ * @description discriminator enum property added by openapi-typescript
793
+ * @enum {string}
794
+ */
795
+ type: "json";
796
+ value: components["schemas"]["JsonValue"];
797
+ text?: never;
798
+ asset_id?: never;
799
+ url?: never;
800
+ };
801
+ JsonValue: unknown;
802
+ /** @enum {string} */
803
+ Lineage: "root" | "continue" | "fork";
804
+ /**
805
+ * MediaUnderstandingSelection
806
+ * @description The model, by key, describing each media kind a model cannot read; a kind without one is unavailable.
807
+ */
808
+ MediaUnderstandingSelection: {
809
+ /**
810
+ * Audio
811
+ * @default null
812
+ */
813
+ audio?: string | null;
814
+ /**
815
+ * Image
816
+ * @default null
817
+ */
818
+ image?: string | null;
819
+ /**
820
+ * Video
821
+ * @default null
822
+ */
823
+ video?: string | null;
824
+ };
825
+ /** @enum {string} */
826
+ MemoryAccess: "read" | "write";
827
+ /**
828
+ * MemoryMount
829
+ * @description A memory under the name the model addresses it by, exposing the tools its access allows. `recall` lets a
830
+ * record memory recall records into each run's first input; file memories ignore it.
831
+ */
832
+ MemoryMount: {
833
+ access: components["schemas"]["MemoryAccess"];
834
+ /** Memory Id */
835
+ memory_id: string;
836
+ /** Name */
837
+ name: string;
838
+ /**
839
+ * Recall
840
+ * @default true
841
+ */
842
+ recall?: boolean;
843
+ };
844
+ /**
845
+ * MemorySource
846
+ * @description One automatic delivery in this Run; content remains in the memory or execution archive.
847
+ */
848
+ MemorySource: {
849
+ /**
850
+ * Cursor
851
+ * @default null
852
+ */
853
+ cursor?: string | null;
854
+ /**
855
+ * Files
856
+ * @default []
857
+ */
858
+ files?: components["schemas"]["FileSource"][];
859
+ /**
860
+ * Kind
861
+ * @enum {string}
862
+ */
863
+ kind: "record" | "file";
864
+ /** Memory */
865
+ memory: string;
866
+ /**
867
+ * Memory Id
868
+ * @default null
869
+ */
870
+ memory_id?: string | null;
871
+ /**
872
+ * Records
873
+ * @default []
874
+ */
875
+ records?: components["schemas"]["RecordSource"][];
876
+ /**
877
+ * Sources Truncated
878
+ * @default false
879
+ */
880
+ sources_truncated?: boolean;
881
+ /**
882
+ * Status
883
+ * @enum {string}
884
+ */
885
+ status: "recalled" | "failed" | "timeout" | "full" | "changes" | "unchanged" | "omitted" | "unavailable";
886
+ };
887
+ /** MessagePayload */
888
+ MessagePayload: {
889
+ /** Content */
890
+ content: components["schemas"]["Part"][];
891
+ };
892
+ /**
893
+ * ObserverContinuation
894
+ * @description Native conversion cursors required to resume mid-part, without raw history.
895
+ */
896
+ ObserverContinuation: {
897
+ /**
898
+ * Run Id
899
+ * @default null
900
+ */
901
+ run_id?: string | null;
902
+ state?: components["schemas"]["_ObserverState"];
903
+ /**
904
+ * Thread Id
905
+ * @default null
906
+ */
907
+ thread_id?: string | null;
908
+ };
909
+ /** OccurrenceEvent */
910
+ OccurrenceEvent: {
911
+ occurrence: components["schemas"]["OccurrenceSummary"];
912
+ /** Schedule Id */
913
+ schedule_id: string;
914
+ /** Session Id */
915
+ session_id: string;
916
+ };
917
+ /**
918
+ * OccurrenceExecution
919
+ * @description Current execution observations alongside the durable occurrence completion facts.
920
+ */
921
+ OccurrenceExecution: {
922
+ /** Has Unfinished Work */
923
+ has_unfinished_work: boolean;
924
+ initial_entry_status: components["schemas"]["EntryStatus"] | null;
925
+ initial_run: components["schemas"]["InitialRun"] | null;
926
+ /**
927
+ * Observed At
928
+ * Format: date-time
929
+ */
930
+ observed_at: string;
931
+ };
932
+ /** @enum {string} */
933
+ OccurrenceStatus: "pending" | "submitted" | "completed" | "skipped" | "failed" | "cancelled";
934
+ /** OccurrenceSummary */
935
+ OccurrenceSummary: {
936
+ /**
937
+ * Completed At
938
+ * @default null
939
+ */
940
+ completed_at?: string | null;
941
+ /**
942
+ * Completion Run Id
943
+ * @default null
944
+ */
945
+ completion_run_id?: string | null;
946
+ /** Covered From At */
947
+ covered_from_at: string | null;
948
+ /**
949
+ * Created At
950
+ * Format: date-time
951
+ */
952
+ created_at: string;
953
+ /**
954
+ * Deadline At
955
+ * Format: date-time
956
+ */
957
+ deadline_at: string;
958
+ /** Dispatch Attempts */
959
+ dispatch_attempts: number;
960
+ /** Entry Id */
961
+ entry_id: string | null;
962
+ /** @default null */
963
+ execution?: components["schemas"]["OccurrenceExecution"] | null;
964
+ /**
965
+ * Execution Outcome
966
+ * @default null
967
+ */
968
+ execution_outcome?: ("succeeded" | "failed" | "cancelled") | null;
969
+ /** Finished At */
970
+ finished_at: string | null;
971
+ /** Id */
972
+ id: string;
973
+ /** Last Error */
974
+ last_error: string | null;
975
+ /** Next Attempt At */
976
+ next_attempt_at: string | null;
977
+ /** Reason */
978
+ reason: string | null;
979
+ /** Schedule Id */
980
+ schedule_id: string;
981
+ /** Schedule Version */
982
+ schedule_version: number;
983
+ /** Scheduled At */
984
+ scheduled_at: string | null;
985
+ /** Session Id */
986
+ session_id: string;
987
+ status: components["schemas"]["OccurrenceStatus"];
988
+ /** Thread Id */
989
+ thread_id: string | null;
990
+ trigger: components["schemas"]["ScheduleTrigger"];
991
+ /**
992
+ * Updated At
993
+ * Format: date-time
994
+ */
995
+ updated_at: string;
996
+ /** Version */
997
+ version: number;
998
+ };
999
+ /** OnceSchedule */
1000
+ OnceSchedule: {
1001
+ /**
1002
+ * Run At
1003
+ * Format: date-time
1004
+ */
1005
+ run_at: string;
1006
+ /**
1007
+ * Type
1008
+ * @constant
1009
+ */
1010
+ type: "once";
1011
+ };
1012
+ /**
1013
+ * OutputSpec
1014
+ * @description Plain text without a schema, one structured output, or at least two named variants.
1015
+ *
1016
+ * `resources` are the schemas `$ref`s may name besides the schema's own definitions.
1017
+ */
1018
+ OutputSpec: {
1019
+ /**
1020
+ * Description
1021
+ * @default null
1022
+ */
1023
+ description?: string | null;
1024
+ /**
1025
+ * Name
1026
+ * @default null
1027
+ */
1028
+ name?: string | null;
1029
+ /** Resources */
1030
+ resources?: {
1031
+ [key: string]: {
1032
+ [key: string]: components["schemas"]["JsonValue"];
1033
+ };
1034
+ };
1035
+ /**
1036
+ * Schema
1037
+ * @default null
1038
+ */
1039
+ schema?: {
1040
+ [key: string]: components["schemas"]["JsonValue"];
1041
+ } | null;
1042
+ /**
1043
+ * Variants
1044
+ * @default null
1045
+ */
1046
+ variants?: components["schemas"]["OutputVariant"][] | null;
1047
+ };
1048
+ /** OutputVariant */
1049
+ OutputVariant: {
1050
+ /**
1051
+ * Description
1052
+ * @default null
1053
+ */
1054
+ description?: string | null;
1055
+ /** Name */
1056
+ name: string;
1057
+ /** Resources */
1058
+ resources?: {
1059
+ [key: string]: {
1060
+ [key: string]: components["schemas"]["JsonValue"];
1061
+ };
1062
+ };
1063
+ /** Schema */
1064
+ schema: {
1065
+ [key: string]: components["schemas"]["JsonValue"];
1066
+ };
1067
+ };
1068
+ Part: components["schemas"]["TextPart"] | components["schemas"]["AssetPart"] | components["schemas"]["UrlPart"] | components["schemas"]["JsonPart"];
1069
+ /**
1070
+ * Pending
1071
+ * @description Public projection; complete native requests and private metadata stay in the checkpoint.
1072
+ */
1073
+ Pending: {
1074
+ /** Approvals */
1075
+ approvals: components["schemas"]["PendingCall"][];
1076
+ /** Calls */
1077
+ calls: components["schemas"]["PendingCall"][];
1078
+ };
1079
+ /** PendingCall */
1080
+ PendingCall: {
1081
+ /** Arguments */
1082
+ arguments: {
1083
+ [key: string]: components["schemas"]["JsonValue"];
1084
+ };
1085
+ /**
1086
+ * Presentation
1087
+ * @default null
1088
+ */
1089
+ presentation?: {
1090
+ [key: string]: components["schemas"]["JsonValue"];
1091
+ } | null;
1092
+ tool_call_id: components["schemas"]["ToolCallId"];
1093
+ /** Tool Name */
1094
+ tool_name: string;
1095
+ };
1096
+ /** @enum {string} */
1097
+ PlatformGroup: "agents" | "models" | "connections" | "skills" | "environment_templates" | "providers" | "execution" | "schedules";
1098
+ /**
1099
+ * PluginSelection
1100
+ * @description One instance of a Harness plugin factory the deployment installed.
1101
+ */
1102
+ PluginSelection: {
1103
+ /** Config */
1104
+ config?: {
1105
+ [key: string]: components["schemas"]["JsonValue"];
1106
+ };
1107
+ /** Instance Name */
1108
+ instance_name: string;
1109
+ /** Plugin Key */
1110
+ plugin_key: string;
1111
+ };
1112
+ /** Progress */
1113
+ Progress: {
1114
+ /** Last Occurrence Id */
1115
+ last_occurrence_id: string | null;
1116
+ /** Next Fire At */
1117
+ next_fire_at: string | null;
1118
+ /** Pending Occurrence Id */
1119
+ pending_occurrence_id: string | null;
1120
+ };
1121
+ /** RecordSource */
1122
+ RecordSource: {
1123
+ /** Id */
1124
+ id: string;
1125
+ /** Sha256 */
1126
+ sha256: string;
1127
+ };
1128
+ /**
1129
+ * RequestContext
1130
+ * @description Explicit business headers, frozen in accepted Run options and kept out of model projections.
1131
+ */
1132
+ RequestContext: {
1133
+ /** Headers */
1134
+ headers?: {
1135
+ [key: string]: string;
1136
+ };
1137
+ };
1138
+ /**
1139
+ * Resume
1140
+ * @description The complete result batch, submitted and stored on the successor without omission defaults.
1141
+ */
1142
+ Resume: {
1143
+ /** Approvals */
1144
+ approvals: {
1145
+ [key: string]: components["schemas"]["ApprovalDecision"];
1146
+ };
1147
+ /** Calls */
1148
+ calls: {
1149
+ [key: string]: components["schemas"]["CallResult"];
1150
+ };
1151
+ /** @default null */
1152
+ input?: components["schemas"]["MessagePayload"] | null;
1153
+ };
1154
+ /** RetryOverride */
1155
+ RetryOverride: {
1156
+ /**
1157
+ * Output
1158
+ * @default null
1159
+ */
1160
+ output?: number | null;
1161
+ /**
1162
+ * Tools
1163
+ * @default null
1164
+ */
1165
+ tools?: number | null;
1166
+ };
1167
+ /**
1168
+ * Returned
1169
+ * @description A JSON tool result. Built-in question values are validated by the Harness.
1170
+ */
1171
+ Returned: {
1172
+ /**
1173
+ * @description discriminator enum property added by openapi-typescript
1174
+ * @enum {string}
1175
+ */
1176
+ status: "returned";
1177
+ value: components["schemas"]["JsonValue"];
1178
+ message?: never;
1179
+ };
1180
+ /**
1181
+ * RunConfiguration
1182
+ * @description An accepted snapshot, independent of Agent definitions and Capability configuration.
1183
+ *
1184
+ * Consumers explicitly opt into namespaced extensions and own their validation.
1185
+ * Extension lookups return detached values, not mutable shared state.
1186
+ */
1187
+ RunConfiguration: {
1188
+ /**
1189
+ * Allowed Hosts
1190
+ * @description Allowed normalized hostnames/IP literals or regex:<Python pattern> rules matched against the entire normalized hostname. Null is unrestricted; an empty array denies all.
1191
+ */
1192
+ allowed_hosts?: string[] | null;
1193
+ /** Extensions */
1194
+ extensions?: {
1195
+ [key: string]: components["schemas"]["JsonValue"];
1196
+ };
1197
+ };
1198
+ /**
1199
+ * RunOptions
1200
+ * @description What a message may choose for the run it starts. A steer joins a run with the defaults or equal options.
1201
+ */
1202
+ RunOptions: {
1203
+ /** @default null */
1204
+ configuration?: components["schemas"]["RunConfiguration"] | null;
1205
+ /** @default null */
1206
+ context?: components["schemas"]["RequestContext"] | null;
1207
+ /** @default null */
1208
+ execution?: components["schemas"]["ExecutionOverride"] | null;
1209
+ /** Labels */
1210
+ labels?: {
1211
+ [key: string]: string;
1212
+ };
1213
+ /** @default null */
1214
+ max_usage?: components["schemas"]["UsageLimit"] | null;
1215
+ /** @default null */
1216
+ overrides?: components["schemas"]["AgentOverride"] | null;
1217
+ };
1218
+ /**
1219
+ * RunSnapshot
1220
+ * @description A run's committed items from ordinal `first` on. The receiver deletes the items it holds from `first` on and
1221
+ * inserts these; earlier items are final. `complete` marks the run's final display.
1222
+ */
1223
+ RunSnapshot: {
1224
+ /** Complete */
1225
+ complete: boolean;
1226
+ continuation: components["schemas"]["DisplayContinuation"] | null;
1227
+ /** First */
1228
+ first: number;
1229
+ /** Items */
1230
+ items: components["schemas"]["Item"][];
1231
+ /** Run Id */
1232
+ run_id: string;
1233
+ /** Thread Id */
1234
+ thread_id: string;
1235
+ };
1236
+ /** @enum {string} */
1237
+ RunStatus: "accepted" | "running" | "waiting" | "completed" | "failed" | "cancelled";
1238
+ /** RunView */
1239
+ RunView: {
1240
+ /** Agent Id */
1241
+ agent_id: string;
1242
+ /** Agent Revision Id */
1243
+ agent_revision_id: string;
1244
+ /** Attempts */
1245
+ attempts: number;
1246
+ /** @default null */
1247
+ browser_binding?: components["schemas"]["BrowserBinding"] | null;
1248
+ /** Cancel Requested At */
1249
+ cancel_requested_at: string | null;
1250
+ /**
1251
+ * Created At
1252
+ * Format: date-time
1253
+ */
1254
+ created_at: string;
1255
+ /** Current Attempt Id */
1256
+ current_attempt_id: string | null;
1257
+ /** Environment Mounts */
1258
+ environment_mounts: components["schemas"]["EnvironmentMount"][];
1259
+ failure: components["schemas"]["Failure"] | null;
1260
+ /** Id */
1261
+ id: string;
1262
+ /**
1263
+ * Input
1264
+ * @default null
1265
+ */
1266
+ input?: {
1267
+ [key: string]: components["schemas"]["JsonValue"];
1268
+ } | null;
1269
+ /** Labels */
1270
+ labels: {
1271
+ [key: string]: string;
1272
+ };
1273
+ lineage: components["schemas"]["Lineage"];
1274
+ /** Max Attempts */
1275
+ max_attempts: number;
1276
+ /** Memory Mounts */
1277
+ memory_mounts: (components["schemas"]["MemoryMount"] | components["schemas"]["FrozenMemoryMount"])[];
1278
+ options: components["schemas"]["RunOptions"];
1279
+ output: components["schemas"]["JsonValue"] | null;
1280
+ /** Parent Run Id */
1281
+ parent_run_id: string | null;
1282
+ /** Pending */
1283
+ pending: components["schemas"]["Pending"] | components["schemas"]["HistoricalDesktopPending"] | null;
1284
+ /** Principal Id */
1285
+ principal_id: string;
1286
+ resume: components["schemas"]["Resume"] | null;
1287
+ /** Resumed By Id */
1288
+ resumed_by_id: string | null;
1289
+ /**
1290
+ * Revision Selection
1291
+ * @enum {string}
1292
+ */
1293
+ revision_selection: "pinned" | "default" | "inherited";
1294
+ /** @default null */
1295
+ schedule_origin?: components["schemas"]["ScheduleOrigin"] | null;
1296
+ /** Sealed At */
1297
+ sealed_at: string | null;
1298
+ /** Session Id */
1299
+ session_id: string;
1300
+ /** Source Entry Id */
1301
+ source_entry_id: string | null;
1302
+ /** Started At */
1303
+ started_at: string | null;
1304
+ status: components["schemas"]["RunStatus"];
1305
+ /** Thread Id */
1306
+ thread_id: string;
1307
+ trigger: components["schemas"]["Trigger"];
1308
+ /**
1309
+ * Updated At
1310
+ * Format: date-time
1311
+ */
1312
+ updated_at: string;
1313
+ /** Usage At Seal */
1314
+ usage_at_seal: {
1315
+ [key: string]: components["schemas"]["JsonValue"];
1316
+ } | null;
1317
+ /** Version */
1318
+ version: number;
1319
+ wait_reason: components["schemas"]["WaitReason"] | null;
1320
+ /** Workspace Id */
1321
+ workspace_id: string;
1322
+ };
1323
+ /** ScheduleEvent */
1324
+ ScheduleEvent: {
1325
+ configuration: components["schemas"]["Configuration"];
1326
+ progress: components["schemas"]["Progress"];
1327
+ /** Schedule Id */
1328
+ schedule_id: string;
1329
+ /** Session Id */
1330
+ session_id: string;
1331
+ };
1332
+ /** ScheduleOrigin */
1333
+ ScheduleOrigin: {
1334
+ /** Occurrence Id */
1335
+ occurrence_id: string;
1336
+ /** Schedule Id */
1337
+ schedule_id: string;
1338
+ };
1339
+ ScheduleRule: components["schemas"]["CronSchedule"] | components["schemas"]["OnceSchedule"];
1340
+ /** @enum {string} */
1341
+ ScheduleState: "paused" | "enabled" | "completed" | "archived";
1342
+ /** @enum {string} */
1343
+ ScheduleTrigger: "scheduled" | "manual";
1344
+ /**
1345
+ * SharedSkillSync
1346
+ * @description Publish mutable conventional names; the last completed publication wins.
1347
+ */
1348
+ SharedSkillSync: {
1349
+ /**
1350
+ * Cleanup
1351
+ * @default false
1352
+ */
1353
+ cleanup?: boolean;
1354
+ /**
1355
+ * @description discriminator enum property added by openapi-typescript
1356
+ * @enum {string}
1357
+ */
1358
+ mode: "shared";
1359
+ /**
1360
+ * Overwrite
1361
+ * @default true
1362
+ */
1363
+ overwrite?: boolean;
1364
+ };
1365
+ /** SkillSelection */
1366
+ SkillSelection: {
1367
+ /**
1368
+ * Revision Id
1369
+ * @default null
1370
+ */
1371
+ revision_id?: string | null;
1372
+ /** Skill Id */
1373
+ skill_id: string;
1374
+ };
1375
+ /** @enum {string} */
1376
+ Steering: "boundary" | "immediate";
1377
+ /** StreamPosition */
1378
+ StreamPosition: {
1379
+ /** Attempt */
1380
+ attempt: number;
1381
+ /** Sequence */
1382
+ sequence: number;
1383
+ };
1384
+ /**
1385
+ * SubagentOverride
1386
+ * @description Replaces the fields it sets of an edge; an edge the revision lacks sets at least `agent_id`.
1387
+ */
1388
+ SubagentOverride: {
1389
+ /**
1390
+ * Agent Id
1391
+ * @default null
1392
+ */
1393
+ agent_id?: string | null;
1394
+ /** @default null */
1395
+ context?: components["schemas"]["DelegationContextPolicy"] | null;
1396
+ /**
1397
+ * Description
1398
+ * @default null
1399
+ */
1400
+ description?: string | null;
1401
+ /** @default null */
1402
+ environment?: components["schemas"]["ChildEnvironmentPolicy"] | null;
1403
+ /**
1404
+ * Revision Id
1405
+ * @default null
1406
+ */
1407
+ revision_id?: string | null;
1408
+ /** @default null */
1409
+ usage_limits?: components["schemas"]["UsageLimits"] | null;
1410
+ };
1411
+ /** TextPart */
1412
+ TextPart: {
1413
+ /** Text */
1414
+ text: string;
1415
+ /**
1416
+ * @description discriminator enum property added by openapi-typescript
1417
+ * @enum {string}
1418
+ */
1419
+ type: "text";
1420
+ asset_id?: never;
1421
+ url?: never;
1422
+ value?: never;
1423
+ };
1424
+ /**
1425
+ * ThreadState
1426
+ * @description A thread's current state: the thread, the runs its pointers name and its open inbox entries.
1427
+ */
1428
+ ThreadState: {
1429
+ current_run: components["schemas"]["RunView"] | null;
1430
+ /** Entries */
1431
+ entries: components["schemas"]["EntryView"][];
1432
+ last_run: components["schemas"]["RunView"] | null;
1433
+ thread: components["schemas"]["ThreadView"];
1434
+ /** Unavailable */
1435
+ unavailable?: components["schemas"]["UnavailableConfiguration"][];
1436
+ };
1437
+ /** ThreadView */
1438
+ ThreadView: {
1439
+ /** Archived At */
1440
+ archived_at: string | null;
1441
+ /**
1442
+ * Created At
1443
+ * Format: date-time
1444
+ */
1445
+ created_at: string;
1446
+ /** Current Run Id */
1447
+ current_run_id: string | null;
1448
+ /** @default null */
1449
+ execution?: components["schemas"]["ExecutionOverride"] | null;
1450
+ /** Id */
1451
+ id: string;
1452
+ /** Labels */
1453
+ labels: {
1454
+ [key: string]: string;
1455
+ };
1456
+ /** Last Run Id */
1457
+ last_run_id: string | null;
1458
+ /** Mcp Headers */
1459
+ mcp_headers: {
1460
+ [key: string]: {
1461
+ [key: string]: string;
1462
+ };
1463
+ };
1464
+ /**
1465
+ * Origin
1466
+ * @enum {string}
1467
+ */
1468
+ origin: "new" | "fork" | "child";
1469
+ /** Origin Run Id */
1470
+ origin_run_id: string | null;
1471
+ /** Origin Thread Id */
1472
+ origin_thread_id: string | null;
1473
+ /** Origin Tool Call Id */
1474
+ origin_tool_call_id: string | null;
1475
+ /**
1476
+ * Purpose
1477
+ * @default conversation
1478
+ * @enum {string}
1479
+ */
1480
+ purpose?: "conversation" | "memory_organization";
1481
+ /**
1482
+ * Schedule Occurrence Id
1483
+ * @default null
1484
+ */
1485
+ schedule_occurrence_id?: string | null;
1486
+ /** Session Id */
1487
+ session_id: string;
1488
+ /** Subagent */
1489
+ subagent: string | null;
1490
+ /**
1491
+ * Updated At
1492
+ * Format: date-time
1493
+ */
1494
+ updated_at: string;
1495
+ /** Version */
1496
+ version: number;
1497
+ /** Workspace Id */
1498
+ workspace_id: string;
1499
+ };
1500
+ ToolCallId: string;
1501
+ /** ToolExecutionOverride */
1502
+ ToolExecutionOverride: {
1503
+ /**
1504
+ * Foreground Wait Seconds
1505
+ * @default null
1506
+ */
1507
+ foreground_wait_seconds?: number | null;
1508
+ /**
1509
+ * Mode
1510
+ * @default null
1511
+ */
1512
+ mode?: ("inline" | "auto") | null;
1513
+ };
1514
+ /** @enum {string} */
1515
+ ToolPermissionMode: "allow" | "deny" | "ask" | "review";
1516
+ ToolPermissionSetting: components["schemas"]["ToolPermissionMode"] | "inherit";
1517
+ /**
1518
+ * ToolReviewRule
1519
+ * @description A matching rule overrides the supplied fields of the global policy.
1520
+ */
1521
+ ToolReviewRule: {
1522
+ /**
1523
+ * On Flagged
1524
+ * @default null
1525
+ */
1526
+ on_flagged?: ("deny" | "approval_required") | null;
1527
+ /** @default null */
1528
+ risk_threshold?: components["schemas"]["ToolRiskLevel"] | null;
1529
+ };
1530
+ /**
1531
+ * ToolRiskLevel
1532
+ * @enum {string}
1533
+ */
1534
+ ToolRiskLevel: "low" | "medium" | "high" | "extra_high";
1535
+ /**
1536
+ * ToolSearch
1537
+ * @description Presentation of already-selected sources, composed by Harness once per agent.
1538
+ */
1539
+ ToolSearch: {
1540
+ /** @default null */
1541
+ automatic?: components["schemas"]["AutomaticToolSearch"] | null;
1542
+ config?: components["schemas"]["ToolSearchConfig"];
1543
+ /** Groups */
1544
+ groups?: {
1545
+ [key: string]: components["schemas"]["ToolSearchGroup"];
1546
+ };
1547
+ };
1548
+ /**
1549
+ * ProxyToolSearchConfig
1550
+ * @description Names and bounded discovery settings for one Agent's proxy surface.
1551
+ */
1552
+ ToolSearchConfig: {
1553
+ /**
1554
+ * Call Name
1555
+ * @default call_tool
1556
+ */
1557
+ call_name?: string;
1558
+ /**
1559
+ * Describe Name
1560
+ * @default describe_tool
1561
+ */
1562
+ describe_name?: string;
1563
+ /**
1564
+ * Groups Name
1565
+ * @default list_tool_groups
1566
+ */
1567
+ groups_name?: string;
1568
+ /**
1569
+ * List Name
1570
+ * @default list_tools
1571
+ */
1572
+ list_name?: string;
1573
+ /**
1574
+ * Max Results
1575
+ * @default 10
1576
+ */
1577
+ max_results?: number;
1578
+ /**
1579
+ * Max Search Bytes
1580
+ * @default 32768
1581
+ */
1582
+ max_search_bytes?: number;
1583
+ /**
1584
+ * Mode
1585
+ * @default proxy
1586
+ * @constant
1587
+ */
1588
+ mode?: "proxy";
1589
+ /**
1590
+ * Search Name
1591
+ * @default discover_tools
1592
+ */
1593
+ search_name?: string;
1594
+ };
1595
+ /** ToolSearchGroup */
1596
+ ToolSearchGroup: {
1597
+ /**
1598
+ * Capabilities
1599
+ * @default []
1600
+ */
1601
+ capabilities?: components["schemas"]["BuiltinToolsetKey"][];
1602
+ /**
1603
+ * Connections
1604
+ * @default []
1605
+ */
1606
+ connections?: string[];
1607
+ /** Description */
1608
+ description: string;
1609
+ /**
1610
+ * Platform
1611
+ * @default false
1612
+ */
1613
+ platform?: boolean;
1614
+ /**
1615
+ * Plugins
1616
+ * @default []
1617
+ */
1618
+ plugins?: string[];
1619
+ };
1620
+ /** ToolSelection */
1621
+ ToolSelection: {
1622
+ /** Config */
1623
+ config?: {
1624
+ [key: string]: components["schemas"]["JsonValue"];
1625
+ };
1626
+ /**
1627
+ * Enabled
1628
+ * @default true
1629
+ */
1630
+ enabled?: boolean;
1631
+ /** @default inherit */
1632
+ permission?: components["schemas"]["ToolPermissionSetting"];
1633
+ };
1634
+ ToolsetKey: components["schemas"]["BuiltinToolsetKey"] | components["schemas"]["PlatformGroup"];
1635
+ /** ToolsetSelection */
1636
+ ToolsetSelection: {
1637
+ /** Config */
1638
+ config?: {
1639
+ [key: string]: components["schemas"]["JsonValue"];
1640
+ };
1641
+ /**
1642
+ * Enabled
1643
+ * @default true
1644
+ */
1645
+ enabled?: boolean;
1646
+ /** Tools */
1647
+ tools?: {
1648
+ [key: string]: components["schemas"]["ToolSelection"];
1649
+ };
1650
+ };
1651
+ /** @enum {string} */
1652
+ Trigger: "input" | "queued" | "resume" | "child_result" | "tool_result" | "browser_handback" | "desktop_handback" | "spawned";
1653
+ /**
1654
+ * UnavailableConfiguration
1655
+ * @description A collection member whose stored configuration requires operator repair.
1656
+ */
1657
+ UnavailableConfiguration: {
1658
+ /** Id */
1659
+ id: string;
1660
+ /** Kind */
1661
+ kind: string;
1662
+ /**
1663
+ * Reason
1664
+ * @default configuration_unavailable
1665
+ * @constant
1666
+ */
1667
+ reason?: "configuration_unavailable";
1668
+ };
1669
+ /** UrlPart */
1670
+ UrlPart: {
1671
+ /**
1672
+ * @description discriminator enum property added by openapi-typescript
1673
+ * @enum {string}
1674
+ */
1675
+ type: "url";
1676
+ /** Url */
1677
+ url: string;
1678
+ text?: never;
1679
+ asset_id?: never;
1680
+ value?: never;
1681
+ };
1682
+ /** UsageLimit */
1683
+ UsageLimit: {
1684
+ /** Requests */
1685
+ requests: number;
1686
+ };
1687
+ /**
1688
+ * UsageLimits
1689
+ * @description Limits on model usage.
1690
+ *
1691
+ * The request count is tracked by Pydantic AI, and the request limit is checked at the start of each step of the
1692
+ * agent loop. Token counts are provided in responses from the model, and the token limits are checked after each response.
1693
+ *
1694
+ * Each of the limits can be set to `None` to disable that limit.
1695
+ */
1696
+ UsageLimits: {
1697
+ /**
1698
+ * Cost Limit
1699
+ * @default null
1700
+ */
1701
+ cost_limit?: string | null;
1702
+ /**
1703
+ * Count Tokens Before Request
1704
+ * @default false
1705
+ */
1706
+ count_tokens_before_request?: boolean;
1707
+ /**
1708
+ * Input Tokens Limit
1709
+ * @default null
1710
+ */
1711
+ input_tokens_limit?: number | null;
1712
+ /**
1713
+ * Output Tokens Limit
1714
+ * @default null
1715
+ */
1716
+ output_tokens_limit?: number | null;
1717
+ /**
1718
+ * Per Request Input Tokens Limit
1719
+ * @default null
1720
+ */
1721
+ per_request_input_tokens_limit?: number | null;
1722
+ /**
1723
+ * Request Limit
1724
+ * @default 50
1725
+ */
1726
+ request_limit?: number | null;
1727
+ /**
1728
+ * Tool Calls Limit
1729
+ * @default null
1730
+ */
1731
+ tool_calls_limit?: number | null;
1732
+ /**
1733
+ * Total Tokens Limit
1734
+ * @default null
1735
+ */
1736
+ total_tokens_limit?: number | null;
1737
+ };
1738
+ /** @enum {string} */
1739
+ WaitReason: "approval" | "call" | "multiple" | "desktop_control";
1740
+ /**
1741
+ * _Arguments
1742
+ * @description A tool-call part's streamed arguments so far and the one observation item that holds them.
1743
+ */
1744
+ _Arguments: {
1745
+ /**
1746
+ * At
1747
+ * Format: date-time
1748
+ */
1749
+ at: string;
1750
+ /** Event */
1751
+ event: {
1752
+ [key: string]: unknown;
1753
+ } | null;
1754
+ /** Key */
1755
+ key: string;
1756
+ /** Sequence */
1757
+ sequence: number;
1758
+ /** Size */
1759
+ size: number;
1760
+ stream: components["schemas"]["JsonValue"];
1761
+ };
1762
+ /** _Assembly */
1763
+ _Assembly: {
1764
+ /** Count */
1765
+ count: number;
1766
+ /** Parts */
1767
+ parts?: string[];
1768
+ /**
1769
+ * Size
1770
+ * @default 0
1771
+ */
1772
+ size?: number;
1773
+ };
1774
+ /** _ObserverState */
1775
+ _ObserverState: {
1776
+ /** Children */
1777
+ children?: {
1778
+ [key: string]: components["schemas"]["_ObserverState"];
1779
+ };
1780
+ /** Parts */
1781
+ parts?: {
1782
+ [key: string]: components["schemas"]["_PartCursor"];
1783
+ };
1784
+ /**
1785
+ * Request Index
1786
+ * @default 0
1787
+ */
1788
+ request_index?: number;
1789
+ /** Threads */
1790
+ threads?: {
1791
+ [key: string]: string;
1792
+ };
1793
+ };
1794
+ /** _PartCursor */
1795
+ _PartCursor: {
1796
+ /**
1797
+ * Emitted Content
1798
+ * @default false
1799
+ */
1800
+ emitted_content?: boolean;
1801
+ /**
1802
+ * Emitted Signature
1803
+ * @default false
1804
+ */
1805
+ emitted_signature?: boolean;
1806
+ /**
1807
+ * Kind
1808
+ * @enum {string}
1809
+ */
1810
+ kind: "text" | "reasoning" | "tool_call";
1811
+ /** Part Id */
1812
+ part_id: string;
1813
+ /**
1814
+ * Tool Name
1815
+ * @default null
1816
+ */
1817
+ tool_name?: string | null;
1818
+ };
1819
+ };
1820
+ responses: never;
1821
+ parameters: never;
1822
+ requestBodies: never;
1823
+ headers: never;
1824
+ pathItems: never;
1825
+ }
1826
+ export type $defs = Record<string, never>;
1827
+ export type operations = Record<string, never>;
1828
+ export type SessionStreamSchemas = components["schemas"];
1829
+ export type SessionStreamFrame = {
1830
+ type: "app_ready";
1831
+ data: components["schemas"]["AppReady"];
1832
+ } | {
1833
+ type: "delta";
1834
+ data: components["schemas"]["Delta"];
1835
+ } | {
1836
+ type: "gap";
1837
+ data: components["schemas"]["Gap"];
1838
+ } | {
1839
+ type: "items";
1840
+ data: components["schemas"]["RunSnapshot"];
1841
+ } | {
1842
+ type: "occurrence";
1843
+ data: components["schemas"]["OccurrenceEvent"];
1844
+ } | {
1845
+ type: "schedule";
1846
+ data: components["schemas"]["ScheduleEvent"];
1847
+ } | {
1848
+ type: "thread";
1849
+ data: components["schemas"]["ThreadState"];
1850
+ };
1851
+ //# sourceMappingURL=session-stream-schema.d.ts.map