@maudecode/talaria-web-contracts 1.18.0 → 1.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.
- package/dist/gateway-session.d.ts +229 -0
- package/dist/gateway-session.js +46 -0
- package/dist/gateway-session.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/openapi.js +4 -0
- package/dist/openapi.js.map +1 -1
- package/dist/router.d.ts +4265 -220
- package/dist/routes/automation.d.ts +104 -24
- package/dist/routes/automation.js +6 -3
- package/dist/routes/automation.js.map +1 -1
- package/dist/routes/chat.d.ts +1338 -43
- package/dist/routes/chat.js +5 -1
- package/dist/routes/chat.js.map +1 -1
- package/dist/routes/core.d.ts +17 -6
- package/dist/routes/core.js +2 -2
- package/dist/routes/core.js.map +1 -1
- package/dist/routes/raw.js +1 -1
- package/dist/routes/raw.js.map +1 -1
- package/dist/routes/sessions.d.ts +2367 -156
- package/dist/routes/sessions.js +18 -7
- package/dist/routes/sessions.js.map +1 -1
- package/dist/routes/settings.d.ts +427 -9
- package/dist/routes/settings.js +2 -2
- package/dist/routes/settings.js.map +1 -1
- package/dist/routes/tools.d.ts +645 -18
- package/dist/routes/tools.js +65 -8
- package/dist/routes/tools.js.map +1 -1
- package/dist/run-status.d.ts +39 -0
- package/dist/run-status.js +13 -0
- package/dist/run-status.js.map +1 -0
- package/dist/sidecar/methods.d.ts +1074 -17
- package/dist/sidecar/methods.js +9 -2
- package/dist/sidecar/methods.js.map +1 -1
- package/dist/sidecar/namespaces.d.ts +1469 -33
- package/dist/sidecar/namespaces.js +298 -31
- package/dist/sidecar/namespaces.js.map +1 -1
- package/dist/sidecar/runtime.d.ts +61 -0
- package/dist/sidecar/runtime.js +20 -0
- package/dist/sidecar/runtime.js.map +1 -1
- package/dist/sidecar/version.d.ts +1 -1
- package/dist/sidecar/version.js +1 -1
- package/dist/speed.d.ts +14 -0
- package/dist/speed.js +6 -0
- package/dist/speed.js.map +1 -0
- package/dist/sse.d.ts +797 -5
- package/dist/sse.js +24 -7
- package/dist/sse.js.map +1 -1
- package/dist/transcribe-stream.d.ts +34 -0
- package/dist/transcribe-stream.js +23 -0
- package/dist/transcribe-stream.js.map +1 -0
- package/dist/views.d.ts +2097 -127
- package/dist/views.js +273 -47
- package/dist/views.js.map +1 -1
- package/fixtures/sidecar/aux.json +134 -0
- package/fixtures/sidecar/chat.json +14 -0
- package/fixtures/sidecar/checkpoints.json +6 -6
- package/fixtures/sidecar/commands.json +216 -108
- package/fixtures/sidecar/config.json +15 -0
- package/fixtures/sidecar/connectors.json +218 -0
- package/fixtures/sidecar/cron.json +1001 -31
- package/fixtures/sidecar/gateway.json +39 -0
- package/fixtures/sidecar/goals.json +5 -3
- package/fixtures/sidecar/kanban.json +139 -49
- package/fixtures/sidecar/memory.json +50 -0
- package/fixtures/sidecar/models.json +122 -0
- package/fixtures/sidecar/personalities.json +92 -0
- package/fixtures/sidecar/plugins.json +116 -27
- package/fixtures/sidecar/process.json +31 -0
- package/fixtures/sidecar/profiles.json +2 -0
- package/fixtures/sidecar/providers.json +14 -1
- package/fixtures/sidecar/rpc.json +35 -1
- package/fixtures/sidecar/runtime.json +130 -14
- package/fixtures/sidecar/skills.json +256 -13
- package/fixtures/sidecar/state_db.json +19 -2
- package/fixtures/sidecar/stt.json +62 -1
- package/fixtures/sidecar/text.json +20 -2
- package/fixtures/sidecar/toolsets.json +468 -0
- package/fixtures/sidecar/usage.json +22 -2
- package/fixtures/sidecar/write_approval.json +98 -0
- package/package.json +1 -1
package/dist/routes/chat.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export declare const ClarifyRespondSchema: z.ZodObject<{
|
|
|
14
14
|
answer: z.ZodOptional<z.ZodString>;
|
|
15
15
|
choice: z.ZodOptional<z.ZodString>;
|
|
16
16
|
clarify_id: z.ZodOptional<z.ZodString>;
|
|
17
|
+
decline: z.ZodOptional<z.ZodBoolean>;
|
|
17
18
|
}, z.core.$catchall<z.ZodUnknown>>;
|
|
18
19
|
/** Legacy blocking chat (`POST /api/chat`): no current client; `result` is the server's own summary, not the Agent result. */
|
|
19
20
|
export declare const ChatSyncRequestSchema: z.ZodObject<{
|
|
@@ -38,11 +39,11 @@ export declare const ChatSyncResponseSchema: z.ZodObject<{
|
|
|
38
39
|
is_cli_session: z.ZodOptional<z.ZodBoolean>;
|
|
39
40
|
source_kind: z.ZodEnum<{
|
|
40
41
|
other: "other";
|
|
42
|
+
webhook: "webhook";
|
|
43
|
+
cron: "cron";
|
|
41
44
|
webui: "webui";
|
|
42
45
|
cli: "cli";
|
|
43
46
|
messaging: "messaging";
|
|
44
|
-
cron: "cron";
|
|
45
|
-
webhook: "webhook";
|
|
46
47
|
subagent: "subagent";
|
|
47
48
|
claude_code: "claude_code";
|
|
48
49
|
kanban: "kanban";
|
|
@@ -51,6 +52,57 @@ export declare const ChatSyncResponseSchema: z.ZodObject<{
|
|
|
51
52
|
is_messaging_session: z.ZodBoolean;
|
|
52
53
|
sort_ts: z.ZodNumber;
|
|
53
54
|
read_only: z.ZodBoolean;
|
|
55
|
+
read_only_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
56
|
+
owner_attachment: z.ZodOptional<z.ZodObject<{
|
|
57
|
+
state: z.ZodEnum<{
|
|
58
|
+
attached: "attached";
|
|
59
|
+
stopped: "stopped";
|
|
60
|
+
unavailable: "unavailable";
|
|
61
|
+
incompatible: "incompatible";
|
|
62
|
+
refused: "refused";
|
|
63
|
+
}>;
|
|
64
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
65
|
+
can_submit: z.ZodBoolean;
|
|
66
|
+
can_interrupt: z.ZodBoolean;
|
|
67
|
+
can_attach: z.ZodBoolean;
|
|
68
|
+
revision: z.ZodNullable<z.ZodNumber>;
|
|
69
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
70
|
+
active_admission: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
71
|
+
admission_id: z.ZodString;
|
|
72
|
+
sequence: z.ZodNumber;
|
|
73
|
+
status: z.ZodEnum<{
|
|
74
|
+
unknown: "unknown";
|
|
75
|
+
queued: "queued";
|
|
76
|
+
started: "started";
|
|
77
|
+
terminal: "terminal";
|
|
78
|
+
}>;
|
|
79
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
80
|
+
authority_epoch: z.ZodNumber;
|
|
81
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
82
|
+
text: z.ZodOptional<z.ZodString>;
|
|
83
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
84
|
+
}, z.core.$strip>>>;
|
|
85
|
+
admissions: z.ZodArray<z.ZodObject<{
|
|
86
|
+
admission_id: z.ZodString;
|
|
87
|
+
sequence: z.ZodNumber;
|
|
88
|
+
status: z.ZodEnum<{
|
|
89
|
+
unknown: "unknown";
|
|
90
|
+
queued: "queued";
|
|
91
|
+
started: "started";
|
|
92
|
+
terminal: "terminal";
|
|
93
|
+
}>;
|
|
94
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
95
|
+
authority_epoch: z.ZodNumber;
|
|
96
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
97
|
+
text: z.ZodOptional<z.ZodString>;
|
|
98
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
99
|
+
actions: z.ZodArray<z.ZodEnum<{
|
|
100
|
+
cancel: "cancel";
|
|
101
|
+
discard: "discard";
|
|
102
|
+
retry: "retry";
|
|
103
|
+
}>>;
|
|
104
|
+
}, z.core.$strip>>;
|
|
105
|
+
}, z.core.$strip>>;
|
|
54
106
|
can_branch: z.ZodBoolean;
|
|
55
107
|
can_pin: z.ZodBoolean;
|
|
56
108
|
can_archive: z.ZodBoolean;
|
|
@@ -58,6 +110,7 @@ export declare const ChatSyncResponseSchema: z.ZodObject<{
|
|
|
58
110
|
can_duplicate: z.ZodBoolean;
|
|
59
111
|
source_tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
112
|
can_compress: z.ZodOptional<z.ZodBoolean>;
|
|
113
|
+
confirms_deep_truncate: z.ZodOptional<z.ZodBoolean>;
|
|
61
114
|
source_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
62
115
|
session_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
63
116
|
raw_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -97,6 +150,7 @@ export declare const ChatSyncResponseSchema: z.ZodObject<{
|
|
|
97
150
|
context_window_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
98
151
|
context_usage_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
99
152
|
context_threshold_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
153
|
+
composer_state_key: z.ZodOptional<z.ZodString>;
|
|
100
154
|
session_id: z.ZodString;
|
|
101
155
|
title: z.ZodString;
|
|
102
156
|
workspace: z.ZodOptional<z.ZodString>;
|
|
@@ -150,6 +204,7 @@ export declare const ChatSyncResponseSchema: z.ZodObject<{
|
|
|
150
204
|
event_type: z.ZodOptional<z.ZodString>;
|
|
151
205
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
152
206
|
unknown: "unknown";
|
|
207
|
+
memory: "memory";
|
|
153
208
|
shell: "shell";
|
|
154
209
|
read: "read";
|
|
155
210
|
list: "list";
|
|
@@ -157,7 +212,6 @@ export declare const ChatSyncResponseSchema: z.ZodObject<{
|
|
|
157
212
|
web: "web";
|
|
158
213
|
write: "write";
|
|
159
214
|
skill: "skill";
|
|
160
|
-
memory: "memory";
|
|
161
215
|
delegate: "delegate";
|
|
162
216
|
}>>;
|
|
163
217
|
target: z.ZodOptional<z.ZodString>;
|
|
@@ -201,8 +255,8 @@ export declare const ChatSyncResponseSchema: z.ZodObject<{
|
|
|
201
255
|
row_id: z.ZodString;
|
|
202
256
|
order_index: z.ZodNumber;
|
|
203
257
|
role: z.ZodEnum<{
|
|
204
|
-
reasoning: "reasoning";
|
|
205
258
|
tool: "tool";
|
|
259
|
+
reasoning: "reasoning";
|
|
206
260
|
prose: "prose";
|
|
207
261
|
steering: "steering";
|
|
208
262
|
}>;
|
|
@@ -241,10 +295,10 @@ export declare const ChatSyncResponseSchema: z.ZodObject<{
|
|
|
241
295
|
task_ids: z.ZodArray<z.ZodString>;
|
|
242
296
|
status: z.ZodEnum<{
|
|
243
297
|
unknown: "unknown";
|
|
298
|
+
running: "running";
|
|
244
299
|
cancelled: "cancelled";
|
|
245
|
-
completed: "completed";
|
|
246
300
|
failed: "failed";
|
|
247
|
-
|
|
301
|
+
completed: "completed";
|
|
248
302
|
attention: "attention";
|
|
249
303
|
}>;
|
|
250
304
|
agents: z.ZodObject<{
|
|
@@ -258,6 +312,7 @@ export declare const ChatSyncResponseSchema: z.ZodObject<{
|
|
|
258
312
|
result_chars: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
259
313
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
260
314
|
unknown: "unknown";
|
|
315
|
+
memory: "memory";
|
|
261
316
|
shell: "shell";
|
|
262
317
|
read: "read";
|
|
263
318
|
list: "list";
|
|
@@ -265,7 +320,6 @@ export declare const ChatSyncResponseSchema: z.ZodObject<{
|
|
|
265
320
|
web: "web";
|
|
266
321
|
write: "write";
|
|
267
322
|
skill: "skill";
|
|
268
|
-
memory: "memory";
|
|
269
323
|
delegate: "delegate";
|
|
270
324
|
}>>;
|
|
271
325
|
target: z.ZodOptional<z.ZodString>;
|
|
@@ -385,19 +439,45 @@ export declare const ChatSyncResponseSchema: z.ZodObject<{
|
|
|
385
439
|
other: "other";
|
|
386
440
|
}>;
|
|
387
441
|
status: z.ZodEnum<{
|
|
388
|
-
completed: "completed";
|
|
389
442
|
failed: "failed";
|
|
443
|
+
completed: "completed";
|
|
390
444
|
notice: "notice";
|
|
391
445
|
}>;
|
|
392
446
|
label: z.ZodString;
|
|
393
447
|
exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
448
|
+
review_state: z.ZodOptional<z.ZodEnum<{
|
|
449
|
+
unknown: "unknown";
|
|
450
|
+
failed: "failed";
|
|
451
|
+
waiting: "waiting";
|
|
452
|
+
reviewing: "reviewing";
|
|
453
|
+
reviewed: "reviewed";
|
|
454
|
+
}>>;
|
|
394
455
|
}, z.core.$strip>>;
|
|
456
|
+
review_state: z.ZodOptional<z.ZodEnum<{
|
|
457
|
+
unknown: "unknown";
|
|
458
|
+
failed: "failed";
|
|
459
|
+
waiting: "waiting";
|
|
460
|
+
reviewing: "reviewing";
|
|
461
|
+
reviewed: "reviewed";
|
|
462
|
+
}>>;
|
|
395
463
|
}, z.core.$strip>>;
|
|
396
464
|
_marker_kind: z.ZodOptional<z.ZodEnum<{
|
|
397
465
|
context_compaction: "context_compaction";
|
|
398
466
|
preserved_task_list: "preserved_task_list";
|
|
399
467
|
}>>;
|
|
400
468
|
_marker_body: z.ZodOptional<z.ZodString>;
|
|
469
|
+
_notice_kind: z.ZodOptional<z.ZodEnum<{
|
|
470
|
+
failed_turn: "failed_turn";
|
|
471
|
+
session_finalize: "session_finalize";
|
|
472
|
+
}>>;
|
|
473
|
+
_delivery: z.ZodOptional<z.ZodObject<{
|
|
474
|
+
kind: z.ZodEnum<{
|
|
475
|
+
webhook: "webhook";
|
|
476
|
+
cron: "cron";
|
|
477
|
+
}>;
|
|
478
|
+
name: z.ZodString;
|
|
479
|
+
body: z.ZodString;
|
|
480
|
+
}, z.core.$strip>>;
|
|
401
481
|
_background_reply: z.ZodOptional<z.ZodBoolean>;
|
|
402
482
|
_background_silent: z.ZodOptional<z.ZodBoolean>;
|
|
403
483
|
_display: z.ZodOptional<z.ZodEnum<{
|
|
@@ -434,6 +514,7 @@ export declare const ChatSyncResponseSchema: z.ZodObject<{
|
|
|
434
514
|
event_type: z.ZodOptional<z.ZodString>;
|
|
435
515
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
436
516
|
unknown: "unknown";
|
|
517
|
+
memory: "memory";
|
|
437
518
|
shell: "shell";
|
|
438
519
|
read: "read";
|
|
439
520
|
list: "list";
|
|
@@ -441,7 +522,6 @@ export declare const ChatSyncResponseSchema: z.ZodObject<{
|
|
|
441
522
|
web: "web";
|
|
442
523
|
write: "write";
|
|
443
524
|
skill: "skill";
|
|
444
|
-
memory: "memory";
|
|
445
525
|
delegate: "delegate";
|
|
446
526
|
}>>;
|
|
447
527
|
target: z.ZodOptional<z.ZodString>;
|
|
@@ -506,6 +586,50 @@ export declare const ChatSyncResponseSchema: z.ZodObject<{
|
|
|
506
586
|
send_now: z.ZodBoolean;
|
|
507
587
|
}, z.core.$strip>;
|
|
508
588
|
}, z.core.$strip>>>;
|
|
589
|
+
run_status: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
590
|
+
phase: z.ZodLiteral<"compressing">;
|
|
591
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
592
|
+
phase: z.ZodLiteral<"rate_limit_wait">;
|
|
593
|
+
wait: z.ZodObject<{
|
|
594
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
595
|
+
provider_label: z.ZodNullable<z.ZodString>;
|
|
596
|
+
until: z.ZodNumber;
|
|
597
|
+
until_kind: z.ZodEnum<{
|
|
598
|
+
reset: "reset";
|
|
599
|
+
retry: "retry";
|
|
600
|
+
}>;
|
|
601
|
+
}, z.core.$strip>;
|
|
602
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
603
|
+
phase: z.ZodLiteral<"prompt_reading">;
|
|
604
|
+
progress_percent: z.ZodNullable<z.ZodNumber>;
|
|
605
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
606
|
+
phase: z.ZodLiteral<"working">;
|
|
607
|
+
}, z.core.$strip>], "phase">>>;
|
|
608
|
+
compression_started_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
609
|
+
notices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
610
|
+
key: z.ZodString;
|
|
611
|
+
level: z.ZodEnum<{
|
|
612
|
+
success: "success";
|
|
613
|
+
error: "error";
|
|
614
|
+
info: "info";
|
|
615
|
+
warn: "warn";
|
|
616
|
+
}>;
|
|
617
|
+
text: z.ZodString;
|
|
618
|
+
expires_at: z.ZodNullable<z.ZodNumber>;
|
|
619
|
+
}, z.core.$strip>>>;
|
|
620
|
+
goal: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
621
|
+
text: z.ZodString;
|
|
622
|
+
status: z.ZodEnum<{
|
|
623
|
+
active: "active";
|
|
624
|
+
parked: "parked";
|
|
625
|
+
paused: "paused";
|
|
626
|
+
}>;
|
|
627
|
+
turns_used: z.ZodNumber;
|
|
628
|
+
max_turns: z.ZodNumber;
|
|
629
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
630
|
+
parked_until: z.ZodNullable<z.ZodNumber>;
|
|
631
|
+
}, z.core.$strip>>>;
|
|
632
|
+
automatic_turns_held: z.ZodOptional<z.ZodBoolean>;
|
|
509
633
|
has_pending_user_message: z.ZodOptional<z.ZodBoolean>;
|
|
510
634
|
pending_user_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
511
635
|
pending_attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -542,6 +666,657 @@ export declare const GoalRequestSchema: z.ZodObject<{
|
|
|
542
666
|
}, z.core.$catchall<z.ZodUnknown>>;
|
|
543
667
|
export declare const chatContract: {
|
|
544
668
|
chat: {
|
|
669
|
+
ownerAction: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
670
|
+
session_id: z.ZodString;
|
|
671
|
+
action: z.ZodLiteral<"cancel">;
|
|
672
|
+
admission_id: z.ZodString;
|
|
673
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
674
|
+
session_id: z.ZodString;
|
|
675
|
+
admission_id: z.ZodString;
|
|
676
|
+
execution_generation: z.ZodNumber;
|
|
677
|
+
action: z.ZodLiteral<"discard">;
|
|
678
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
679
|
+
session_id: z.ZodString;
|
|
680
|
+
admission_id: z.ZodString;
|
|
681
|
+
execution_generation: z.ZodNumber;
|
|
682
|
+
action: z.ZodLiteral<"retry">;
|
|
683
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
684
|
+
session_id: z.ZodString;
|
|
685
|
+
action: z.ZodLiteral<"mutate">;
|
|
686
|
+
request_id: z.ZodString;
|
|
687
|
+
expected_revision: z.ZodNumber;
|
|
688
|
+
execution_generation: z.ZodNumber;
|
|
689
|
+
operation: z.ZodEnum<{
|
|
690
|
+
rename: "rename";
|
|
691
|
+
rewind: "rewind";
|
|
692
|
+
reset: "reset";
|
|
693
|
+
model: "model";
|
|
694
|
+
workspace: "workspace";
|
|
695
|
+
compress: "compress";
|
|
696
|
+
}>;
|
|
697
|
+
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
698
|
+
}, z.core.$strip>], "action">, z.ZodObject<{
|
|
699
|
+
ok: z.ZodLiteral<true>;
|
|
700
|
+
session: z.ZodObject<{
|
|
701
|
+
enabled_toolsets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
702
|
+
composer_draft: z.ZodOptional<z.ZodObject<{
|
|
703
|
+
text: z.ZodOptional<z.ZodString>;
|
|
704
|
+
files: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
705
|
+
}, z.core.$loose>>;
|
|
706
|
+
is_cli_session: z.ZodOptional<z.ZodBoolean>;
|
|
707
|
+
source_kind: z.ZodEnum<{
|
|
708
|
+
other: "other";
|
|
709
|
+
webhook: "webhook";
|
|
710
|
+
cron: "cron";
|
|
711
|
+
webui: "webui";
|
|
712
|
+
cli: "cli";
|
|
713
|
+
messaging: "messaging";
|
|
714
|
+
subagent: "subagent";
|
|
715
|
+
claude_code: "claude_code";
|
|
716
|
+
kanban: "kanban";
|
|
717
|
+
api: "api";
|
|
718
|
+
}>;
|
|
719
|
+
is_messaging_session: z.ZodBoolean;
|
|
720
|
+
sort_ts: z.ZodNumber;
|
|
721
|
+
read_only: z.ZodBoolean;
|
|
722
|
+
read_only_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
723
|
+
owner_attachment: z.ZodOptional<z.ZodObject<{
|
|
724
|
+
state: z.ZodEnum<{
|
|
725
|
+
attached: "attached";
|
|
726
|
+
stopped: "stopped";
|
|
727
|
+
unavailable: "unavailable";
|
|
728
|
+
incompatible: "incompatible";
|
|
729
|
+
refused: "refused";
|
|
730
|
+
}>;
|
|
731
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
732
|
+
can_submit: z.ZodBoolean;
|
|
733
|
+
can_interrupt: z.ZodBoolean;
|
|
734
|
+
can_attach: z.ZodBoolean;
|
|
735
|
+
revision: z.ZodNullable<z.ZodNumber>;
|
|
736
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
737
|
+
active_admission: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
738
|
+
admission_id: z.ZodString;
|
|
739
|
+
sequence: z.ZodNumber;
|
|
740
|
+
status: z.ZodEnum<{
|
|
741
|
+
unknown: "unknown";
|
|
742
|
+
queued: "queued";
|
|
743
|
+
started: "started";
|
|
744
|
+
terminal: "terminal";
|
|
745
|
+
}>;
|
|
746
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
747
|
+
authority_epoch: z.ZodNumber;
|
|
748
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
749
|
+
text: z.ZodOptional<z.ZodString>;
|
|
750
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
751
|
+
}, z.core.$strip>>>;
|
|
752
|
+
admissions: z.ZodArray<z.ZodObject<{
|
|
753
|
+
admission_id: z.ZodString;
|
|
754
|
+
sequence: z.ZodNumber;
|
|
755
|
+
status: z.ZodEnum<{
|
|
756
|
+
unknown: "unknown";
|
|
757
|
+
queued: "queued";
|
|
758
|
+
started: "started";
|
|
759
|
+
terminal: "terminal";
|
|
760
|
+
}>;
|
|
761
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
762
|
+
authority_epoch: z.ZodNumber;
|
|
763
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
764
|
+
text: z.ZodOptional<z.ZodString>;
|
|
765
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
766
|
+
actions: z.ZodArray<z.ZodEnum<{
|
|
767
|
+
cancel: "cancel";
|
|
768
|
+
discard: "discard";
|
|
769
|
+
retry: "retry";
|
|
770
|
+
}>>;
|
|
771
|
+
}, z.core.$strip>>;
|
|
772
|
+
}, z.core.$strip>>;
|
|
773
|
+
can_branch: z.ZodBoolean;
|
|
774
|
+
can_pin: z.ZodBoolean;
|
|
775
|
+
can_archive: z.ZodBoolean;
|
|
776
|
+
can_delete: z.ZodBoolean;
|
|
777
|
+
can_duplicate: z.ZodBoolean;
|
|
778
|
+
source_tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
779
|
+
can_compress: z.ZodOptional<z.ZodBoolean>;
|
|
780
|
+
confirms_deep_truncate: z.ZodOptional<z.ZodBoolean>;
|
|
781
|
+
source_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
782
|
+
session_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
783
|
+
raw_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
784
|
+
parent_session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
785
|
+
worktree_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
786
|
+
worktree_branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
787
|
+
worktree_repo_root: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
788
|
+
share_token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
789
|
+
share_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
790
|
+
share_created_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
791
|
+
manual_title: z.ZodOptional<z.ZodBoolean>;
|
|
792
|
+
compression_anchor_summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
793
|
+
compression_recovery: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
794
|
+
recommended_recovery_action: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
795
|
+
compression_recovery_action: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
796
|
+
compression_recovery_source_session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
797
|
+
gateway_routing: z.ZodOptional<z.ZodUnknown>;
|
|
798
|
+
_messages_offset: z.ZodOptional<z.ZodNumber>;
|
|
799
|
+
_messages_truncated: z.ZodOptional<z.ZodBoolean>;
|
|
800
|
+
_msg_limit_max: z.ZodOptional<z.ZodNumber>;
|
|
801
|
+
_load_revision: z.ZodOptional<z.ZodString>;
|
|
802
|
+
transcript_seq: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
803
|
+
stream_id: z.ZodString;
|
|
804
|
+
seq: z.ZodNumber;
|
|
805
|
+
}, z.core.$strip>>>;
|
|
806
|
+
assistant_name: z.ZodOptional<z.ZodString>;
|
|
807
|
+
workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
808
|
+
compression_reference: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
809
|
+
text: z.ZodString;
|
|
810
|
+
after_message_index: z.ZodNullable<z.ZodNumber>;
|
|
811
|
+
}, z.core.$strip>>>;
|
|
812
|
+
branched_from: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
813
|
+
session_id: z.ZodString;
|
|
814
|
+
title: z.ZodString;
|
|
815
|
+
}, z.core.$strip>>>;
|
|
816
|
+
context_used_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
817
|
+
context_window_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
818
|
+
context_usage_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
819
|
+
context_threshold_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
820
|
+
composer_state_key: z.ZodOptional<z.ZodString>;
|
|
821
|
+
session_id: z.ZodString;
|
|
822
|
+
title: z.ZodString;
|
|
823
|
+
workspace: z.ZodOptional<z.ZodString>;
|
|
824
|
+
created_workspace: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
825
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
826
|
+
model_provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
827
|
+
model_option_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
828
|
+
messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
829
|
+
role: z.ZodString;
|
|
830
|
+
content: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodObject<{
|
|
831
|
+
type: z.ZodString;
|
|
832
|
+
text: z.ZodOptional<z.ZodString>;
|
|
833
|
+
}, z.core.$loose>>, z.ZodNull]>>;
|
|
834
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
835
|
+
message_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
836
|
+
timestamp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
837
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
838
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
839
|
+
name: z.ZodOptional<z.ZodString>;
|
|
840
|
+
path: z.ZodOptional<z.ZodString>;
|
|
841
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
842
|
+
mime: z.ZodOptional<z.ZodString>;
|
|
843
|
+
is_image: z.ZodOptional<z.ZodBoolean>;
|
|
844
|
+
rollback_token: z.ZodOptional<z.ZodString>;
|
|
845
|
+
}, z.core.$loose>>>;
|
|
846
|
+
tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
847
|
+
name: z.ZodOptional<z.ZodString>;
|
|
848
|
+
args: z.ZodOptional<z.ZodUnknown>;
|
|
849
|
+
function: z.ZodOptional<z.ZodObject<{
|
|
850
|
+
name: z.ZodOptional<z.ZodString>;
|
|
851
|
+
arguments: z.ZodOptional<z.ZodUnknown>;
|
|
852
|
+
}, z.core.$loose>>;
|
|
853
|
+
id: z.ZodOptional<z.ZodString>;
|
|
854
|
+
call_id: z.ZodOptional<z.ZodString>;
|
|
855
|
+
tool_call_id: z.ZodOptional<z.ZodString>;
|
|
856
|
+
done: z.ZodOptional<z.ZodBoolean>;
|
|
857
|
+
is_error: z.ZodOptional<z.ZodBoolean>;
|
|
858
|
+
preview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
859
|
+
result: z.ZodOptional<z.ZodUnknown>;
|
|
860
|
+
result_view: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
861
|
+
text: z.ZodOptional<z.ZodString>;
|
|
862
|
+
stdout: z.ZodOptional<z.ZodString>;
|
|
863
|
+
stderr: z.ZodOptional<z.ZodString>;
|
|
864
|
+
error: z.ZodOptional<z.ZodString>;
|
|
865
|
+
exit_code: z.ZodOptional<z.ZodNumber>;
|
|
866
|
+
}, z.core.$strip>>>;
|
|
867
|
+
output: z.ZodOptional<z.ZodUnknown>;
|
|
868
|
+
duration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
869
|
+
cost_usd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
870
|
+
timestamp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
871
|
+
event_type: z.ZodOptional<z.ZodString>;
|
|
872
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
873
|
+
unknown: "unknown";
|
|
874
|
+
memory: "memory";
|
|
875
|
+
shell: "shell";
|
|
876
|
+
read: "read";
|
|
877
|
+
list: "list";
|
|
878
|
+
search: "search";
|
|
879
|
+
web: "web";
|
|
880
|
+
write: "write";
|
|
881
|
+
skill: "skill";
|
|
882
|
+
delegate: "delegate";
|
|
883
|
+
}>>;
|
|
884
|
+
target: z.ZodOptional<z.ZodString>;
|
|
885
|
+
edit_diff: z.ZodOptional<z.ZodObject<{
|
|
886
|
+
added: z.ZodNumber;
|
|
887
|
+
removed: z.ZodNumber;
|
|
888
|
+
diff: z.ZodString;
|
|
889
|
+
truncated: z.ZodBoolean;
|
|
890
|
+
hunks: z.ZodArray<z.ZodObject<{
|
|
891
|
+
header: z.ZodString;
|
|
892
|
+
old_start: z.ZodNullable<z.ZodNumber>;
|
|
893
|
+
new_start: z.ZodNullable<z.ZodNumber>;
|
|
894
|
+
new_end: z.ZodNullable<z.ZodNumber>;
|
|
895
|
+
additions: z.ZodNumber;
|
|
896
|
+
deletions: z.ZodNumber;
|
|
897
|
+
lines: z.ZodArray<z.ZodObject<{
|
|
898
|
+
kind: z.ZodEnum<{
|
|
899
|
+
context: "context";
|
|
900
|
+
addition: "addition";
|
|
901
|
+
deletion: "deletion";
|
|
902
|
+
}>;
|
|
903
|
+
old_line: z.ZodNullable<z.ZodNumber>;
|
|
904
|
+
new_line: z.ZodNullable<z.ZodNumber>;
|
|
905
|
+
text: z.ZodString;
|
|
906
|
+
}, z.core.$strip>>;
|
|
907
|
+
}, z.core.$strip>>;
|
|
908
|
+
}, z.core.$strip>>;
|
|
909
|
+
}, z.core.$loose>>>;
|
|
910
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
911
|
+
tool_call_id: z.ZodOptional<z.ZodString>;
|
|
912
|
+
tool_use_id: z.ZodOptional<z.ZodString>;
|
|
913
|
+
name: z.ZodOptional<z.ZodString>;
|
|
914
|
+
badge: z.ZodOptional<z.ZodString>;
|
|
915
|
+
label: z.ZodOptional<z.ZodString>;
|
|
916
|
+
provider_details: z.ZodOptional<z.ZodUnknown>;
|
|
917
|
+
provider_details_label: z.ZodOptional<z.ZodString>;
|
|
918
|
+
recovery_control: z.ZodOptional<z.ZodUnknown>;
|
|
919
|
+
_anchor_activity_scene: z.ZodOptional<z.ZodObject<{
|
|
920
|
+
version: z.ZodLiteral<"activity_scene_v1">;
|
|
921
|
+
activity_rows: z.ZodArray<z.ZodObject<{
|
|
922
|
+
row_id: z.ZodString;
|
|
923
|
+
order_index: z.ZodNumber;
|
|
924
|
+
role: z.ZodEnum<{
|
|
925
|
+
tool: "tool";
|
|
926
|
+
reasoning: "reasoning";
|
|
927
|
+
prose: "prose";
|
|
928
|
+
steering: "steering";
|
|
929
|
+
}>;
|
|
930
|
+
created_at: z.ZodOptional<z.ZodNumber>;
|
|
931
|
+
text: z.ZodOptional<z.ZodString>;
|
|
932
|
+
titles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
933
|
+
display_text: z.ZodOptional<z.ZodString>;
|
|
934
|
+
media: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
935
|
+
url: z.ZodString;
|
|
936
|
+
name: z.ZodString;
|
|
937
|
+
mime: z.ZodString;
|
|
938
|
+
kind: z.ZodEnum<{
|
|
939
|
+
file: "file";
|
|
940
|
+
image: "image";
|
|
941
|
+
audio: "audio";
|
|
942
|
+
video: "video";
|
|
943
|
+
pdf: "pdf";
|
|
944
|
+
}>;
|
|
945
|
+
}, z.core.$strip>>>;
|
|
946
|
+
tool: z.ZodOptional<z.ZodObject<{
|
|
947
|
+
args: z.ZodOptional<z.ZodUnknown>;
|
|
948
|
+
preview: z.ZodNullable<z.ZodString>;
|
|
949
|
+
result: z.ZodOptional<z.ZodUnknown>;
|
|
950
|
+
result_view: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
951
|
+
text: z.ZodOptional<z.ZodString>;
|
|
952
|
+
stdout: z.ZodOptional<z.ZodString>;
|
|
953
|
+
stderr: z.ZodOptional<z.ZodString>;
|
|
954
|
+
error: z.ZodOptional<z.ZodString>;
|
|
955
|
+
exit_code: z.ZodOptional<z.ZodNumber>;
|
|
956
|
+
}, z.core.$strip>>>;
|
|
957
|
+
done: z.ZodBoolean;
|
|
958
|
+
is_error: z.ZodBoolean;
|
|
959
|
+
duration: z.ZodNullable<z.ZodNumber>;
|
|
960
|
+
cost_usd: z.ZodNullable<z.ZodNumber>;
|
|
961
|
+
background: z.ZodOptional<z.ZodObject<{
|
|
962
|
+
task_ids: z.ZodArray<z.ZodString>;
|
|
963
|
+
status: z.ZodEnum<{
|
|
964
|
+
unknown: "unknown";
|
|
965
|
+
running: "running";
|
|
966
|
+
cancelled: "cancelled";
|
|
967
|
+
failed: "failed";
|
|
968
|
+
completed: "completed";
|
|
969
|
+
attention: "attention";
|
|
970
|
+
}>;
|
|
971
|
+
agents: z.ZodObject<{
|
|
972
|
+
total: z.ZodNumber;
|
|
973
|
+
completed: z.ZodNumber;
|
|
974
|
+
failed: z.ZodNumber;
|
|
975
|
+
running: z.ZodNumber;
|
|
976
|
+
}, z.core.$strip>;
|
|
977
|
+
}, z.core.$strip>>;
|
|
978
|
+
result_truncated: z.ZodOptional<z.ZodLiteral<true>>;
|
|
979
|
+
result_chars: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
980
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
981
|
+
unknown: "unknown";
|
|
982
|
+
memory: "memory";
|
|
983
|
+
shell: "shell";
|
|
984
|
+
read: "read";
|
|
985
|
+
list: "list";
|
|
986
|
+
search: "search";
|
|
987
|
+
web: "web";
|
|
988
|
+
write: "write";
|
|
989
|
+
skill: "skill";
|
|
990
|
+
delegate: "delegate";
|
|
991
|
+
}>>;
|
|
992
|
+
target: z.ZodOptional<z.ZodString>;
|
|
993
|
+
edit_diff: z.ZodOptional<z.ZodObject<{
|
|
994
|
+
added: z.ZodNumber;
|
|
995
|
+
removed: z.ZodNumber;
|
|
996
|
+
diff: z.ZodString;
|
|
997
|
+
truncated: z.ZodBoolean;
|
|
998
|
+
hunks: z.ZodArray<z.ZodObject<{
|
|
999
|
+
header: z.ZodString;
|
|
1000
|
+
old_start: z.ZodNullable<z.ZodNumber>;
|
|
1001
|
+
new_start: z.ZodNullable<z.ZodNumber>;
|
|
1002
|
+
new_end: z.ZodNullable<z.ZodNumber>;
|
|
1003
|
+
additions: z.ZodNumber;
|
|
1004
|
+
deletions: z.ZodNumber;
|
|
1005
|
+
lines: z.ZodArray<z.ZodObject<{
|
|
1006
|
+
kind: z.ZodEnum<{
|
|
1007
|
+
context: "context";
|
|
1008
|
+
addition: "addition";
|
|
1009
|
+
deletion: "deletion";
|
|
1010
|
+
}>;
|
|
1011
|
+
old_line: z.ZodNullable<z.ZodNumber>;
|
|
1012
|
+
new_line: z.ZodNullable<z.ZodNumber>;
|
|
1013
|
+
text: z.ZodString;
|
|
1014
|
+
}, z.core.$strip>>;
|
|
1015
|
+
}, z.core.$strip>>;
|
|
1016
|
+
}, z.core.$strip>>;
|
|
1017
|
+
id: z.ZodString;
|
|
1018
|
+
name: z.ZodString;
|
|
1019
|
+
}, z.core.$loose>>;
|
|
1020
|
+
steering: z.ZodOptional<z.ZodObject<{
|
|
1021
|
+
steer_id: z.ZodString;
|
|
1022
|
+
consumed: z.ZodBoolean;
|
|
1023
|
+
submitted_at: z.ZodNullable<z.ZodNumber>;
|
|
1024
|
+
consumed_at: z.ZodNullable<z.ZodNumber>;
|
|
1025
|
+
phase_duration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1026
|
+
}, z.core.$loose>>;
|
|
1027
|
+
}, z.core.$loose>>;
|
|
1028
|
+
final_answer: z.ZodOptional<z.ZodString>;
|
|
1029
|
+
final_answer_excerpt: z.ZodOptional<z.ZodString>;
|
|
1030
|
+
turn_duration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1031
|
+
final_answer_display: z.ZodOptional<z.ZodString>;
|
|
1032
|
+
final_answer_media: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1033
|
+
url: z.ZodString;
|
|
1034
|
+
name: z.ZodString;
|
|
1035
|
+
mime: z.ZodString;
|
|
1036
|
+
kind: z.ZodEnum<{
|
|
1037
|
+
file: "file";
|
|
1038
|
+
image: "image";
|
|
1039
|
+
audio: "audio";
|
|
1040
|
+
video: "video";
|
|
1041
|
+
pdf: "pdf";
|
|
1042
|
+
}>;
|
|
1043
|
+
}, z.core.$strip>>>;
|
|
1044
|
+
terminal_state: z.ZodOptional<z.ZodString>;
|
|
1045
|
+
expanded_by_default: z.ZodOptional<z.ZodBoolean>;
|
|
1046
|
+
final_phase_duration: z.ZodOptional<z.ZodNumber>;
|
|
1047
|
+
has_consumed_steering: z.ZodOptional<z.ZodBoolean>;
|
|
1048
|
+
file_changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1049
|
+
path: z.ZodString;
|
|
1050
|
+
action: z.ZodEnum<{
|
|
1051
|
+
added: "added";
|
|
1052
|
+
edited: "edited";
|
|
1053
|
+
deleted: "deleted";
|
|
1054
|
+
renamed: "renamed";
|
|
1055
|
+
}>;
|
|
1056
|
+
}, z.core.$loose>>>;
|
|
1057
|
+
activity_rows_total: z.ZodOptional<z.ZodNumber>;
|
|
1058
|
+
activity_rows_offset: z.ZodOptional<z.ZodNumber>;
|
|
1059
|
+
activity_rows_complete: z.ZodOptional<z.ZodBoolean>;
|
|
1060
|
+
activity_rows_omitted: z.ZodOptional<z.ZodNumber>;
|
|
1061
|
+
activity_scene_ref: z.ZodOptional<z.ZodString>;
|
|
1062
|
+
}, z.core.$loose>>;
|
|
1063
|
+
_turn_id: z.ZodOptional<z.ZodString>;
|
|
1064
|
+
_turnDuration: z.ZodOptional<z.ZodNumber>;
|
|
1065
|
+
_turnTps: z.ZodOptional<z.ZodNumber>;
|
|
1066
|
+
_ts: z.ZodOptional<z.ZodNumber>;
|
|
1067
|
+
reasoning_titles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1068
|
+
_active_turn_user: z.ZodOptional<z.ZodBoolean>;
|
|
1069
|
+
_steer: z.ZodOptional<z.ZodObject<{
|
|
1070
|
+
steer_id: z.ZodString;
|
|
1071
|
+
submitted_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1072
|
+
consumed_at: z.ZodOptional<z.ZodNumber>;
|
|
1073
|
+
phase_duration: z.ZodOptional<z.ZodNumber>;
|
|
1074
|
+
}, z.core.$loose>>;
|
|
1075
|
+
_final_phase_duration: z.ZodOptional<z.ZodNumber>;
|
|
1076
|
+
_display_truncated: z.ZodOptional<z.ZodBoolean>;
|
|
1077
|
+
_display_excerpt: z.ZodOptional<z.ZodString>;
|
|
1078
|
+
_collapsible: z.ZodOptional<z.ZodBoolean>;
|
|
1079
|
+
_display_content: z.ZodOptional<z.ZodString>;
|
|
1080
|
+
_media: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1081
|
+
url: z.ZodString;
|
|
1082
|
+
name: z.ZodString;
|
|
1083
|
+
mime: z.ZodString;
|
|
1084
|
+
kind: z.ZodEnum<{
|
|
1085
|
+
file: "file";
|
|
1086
|
+
image: "image";
|
|
1087
|
+
audio: "audio";
|
|
1088
|
+
video: "video";
|
|
1089
|
+
pdf: "pdf";
|
|
1090
|
+
}>;
|
|
1091
|
+
}, z.core.$strip>>>;
|
|
1092
|
+
_background_update: z.ZodOptional<z.ZodObject<{
|
|
1093
|
+
kind: z.ZodEnum<{
|
|
1094
|
+
other: "other";
|
|
1095
|
+
delegation: "delegation";
|
|
1096
|
+
process: "process";
|
|
1097
|
+
mixed: "mixed";
|
|
1098
|
+
}>;
|
|
1099
|
+
attention: z.ZodBoolean;
|
|
1100
|
+
count: z.ZodNumber;
|
|
1101
|
+
summary: z.ZodString;
|
|
1102
|
+
lines: z.ZodArray<z.ZodObject<{
|
|
1103
|
+
kind: z.ZodEnum<{
|
|
1104
|
+
command: "command";
|
|
1105
|
+
agent: "agent";
|
|
1106
|
+
other: "other";
|
|
1107
|
+
}>;
|
|
1108
|
+
status: z.ZodEnum<{
|
|
1109
|
+
failed: "failed";
|
|
1110
|
+
completed: "completed";
|
|
1111
|
+
notice: "notice";
|
|
1112
|
+
}>;
|
|
1113
|
+
label: z.ZodString;
|
|
1114
|
+
exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1115
|
+
review_state: z.ZodOptional<z.ZodEnum<{
|
|
1116
|
+
unknown: "unknown";
|
|
1117
|
+
failed: "failed";
|
|
1118
|
+
waiting: "waiting";
|
|
1119
|
+
reviewing: "reviewing";
|
|
1120
|
+
reviewed: "reviewed";
|
|
1121
|
+
}>>;
|
|
1122
|
+
}, z.core.$strip>>;
|
|
1123
|
+
review_state: z.ZodOptional<z.ZodEnum<{
|
|
1124
|
+
unknown: "unknown";
|
|
1125
|
+
failed: "failed";
|
|
1126
|
+
waiting: "waiting";
|
|
1127
|
+
reviewing: "reviewing";
|
|
1128
|
+
reviewed: "reviewed";
|
|
1129
|
+
}>>;
|
|
1130
|
+
}, z.core.$strip>>;
|
|
1131
|
+
_marker_kind: z.ZodOptional<z.ZodEnum<{
|
|
1132
|
+
context_compaction: "context_compaction";
|
|
1133
|
+
preserved_task_list: "preserved_task_list";
|
|
1134
|
+
}>>;
|
|
1135
|
+
_marker_body: z.ZodOptional<z.ZodString>;
|
|
1136
|
+
_notice_kind: z.ZodOptional<z.ZodEnum<{
|
|
1137
|
+
failed_turn: "failed_turn";
|
|
1138
|
+
session_finalize: "session_finalize";
|
|
1139
|
+
}>>;
|
|
1140
|
+
_delivery: z.ZodOptional<z.ZodObject<{
|
|
1141
|
+
kind: z.ZodEnum<{
|
|
1142
|
+
webhook: "webhook";
|
|
1143
|
+
cron: "cron";
|
|
1144
|
+
}>;
|
|
1145
|
+
name: z.ZodString;
|
|
1146
|
+
body: z.ZodString;
|
|
1147
|
+
}, z.core.$strip>>;
|
|
1148
|
+
_background_reply: z.ZodOptional<z.ZodBoolean>;
|
|
1149
|
+
_background_silent: z.ZodOptional<z.ZodBoolean>;
|
|
1150
|
+
_display: z.ZodOptional<z.ZodEnum<{
|
|
1151
|
+
row: "row";
|
|
1152
|
+
hidden: "hidden";
|
|
1153
|
+
in_scene: "in_scene";
|
|
1154
|
+
}>>;
|
|
1155
|
+
}, z.core.$loose>>>;
|
|
1156
|
+
tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1157
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1158
|
+
args: z.ZodOptional<z.ZodUnknown>;
|
|
1159
|
+
function: z.ZodOptional<z.ZodObject<{
|
|
1160
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1161
|
+
arguments: z.ZodOptional<z.ZodUnknown>;
|
|
1162
|
+
}, z.core.$loose>>;
|
|
1163
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1164
|
+
call_id: z.ZodOptional<z.ZodString>;
|
|
1165
|
+
tool_call_id: z.ZodOptional<z.ZodString>;
|
|
1166
|
+
done: z.ZodOptional<z.ZodBoolean>;
|
|
1167
|
+
is_error: z.ZodOptional<z.ZodBoolean>;
|
|
1168
|
+
preview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1169
|
+
result: z.ZodOptional<z.ZodUnknown>;
|
|
1170
|
+
result_view: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1171
|
+
text: z.ZodOptional<z.ZodString>;
|
|
1172
|
+
stdout: z.ZodOptional<z.ZodString>;
|
|
1173
|
+
stderr: z.ZodOptional<z.ZodString>;
|
|
1174
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1175
|
+
exit_code: z.ZodOptional<z.ZodNumber>;
|
|
1176
|
+
}, z.core.$strip>>>;
|
|
1177
|
+
output: z.ZodOptional<z.ZodUnknown>;
|
|
1178
|
+
duration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1179
|
+
cost_usd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1180
|
+
timestamp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1181
|
+
event_type: z.ZodOptional<z.ZodString>;
|
|
1182
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
1183
|
+
unknown: "unknown";
|
|
1184
|
+
memory: "memory";
|
|
1185
|
+
shell: "shell";
|
|
1186
|
+
read: "read";
|
|
1187
|
+
list: "list";
|
|
1188
|
+
search: "search";
|
|
1189
|
+
web: "web";
|
|
1190
|
+
write: "write";
|
|
1191
|
+
skill: "skill";
|
|
1192
|
+
delegate: "delegate";
|
|
1193
|
+
}>>;
|
|
1194
|
+
target: z.ZodOptional<z.ZodString>;
|
|
1195
|
+
edit_diff: z.ZodOptional<z.ZodObject<{
|
|
1196
|
+
added: z.ZodNumber;
|
|
1197
|
+
removed: z.ZodNumber;
|
|
1198
|
+
diff: z.ZodString;
|
|
1199
|
+
truncated: z.ZodBoolean;
|
|
1200
|
+
hunks: z.ZodArray<z.ZodObject<{
|
|
1201
|
+
header: z.ZodString;
|
|
1202
|
+
old_start: z.ZodNullable<z.ZodNumber>;
|
|
1203
|
+
new_start: z.ZodNullable<z.ZodNumber>;
|
|
1204
|
+
new_end: z.ZodNullable<z.ZodNumber>;
|
|
1205
|
+
additions: z.ZodNumber;
|
|
1206
|
+
deletions: z.ZodNumber;
|
|
1207
|
+
lines: z.ZodArray<z.ZodObject<{
|
|
1208
|
+
kind: z.ZodEnum<{
|
|
1209
|
+
context: "context";
|
|
1210
|
+
addition: "addition";
|
|
1211
|
+
deletion: "deletion";
|
|
1212
|
+
}>;
|
|
1213
|
+
old_line: z.ZodNullable<z.ZodNumber>;
|
|
1214
|
+
new_line: z.ZodNullable<z.ZodNumber>;
|
|
1215
|
+
text: z.ZodString;
|
|
1216
|
+
}, z.core.$strip>>;
|
|
1217
|
+
}, z.core.$strip>>;
|
|
1218
|
+
}, z.core.$strip>>;
|
|
1219
|
+
}, z.core.$loose>>>;
|
|
1220
|
+
created_at: z.ZodOptional<z.ZodNumber>;
|
|
1221
|
+
updated_at: z.ZodOptional<z.ZodNumber>;
|
|
1222
|
+
last_message_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1223
|
+
message_count: z.ZodOptional<z.ZodNumber>;
|
|
1224
|
+
user_message_count: z.ZodOptional<z.ZodNumber>;
|
|
1225
|
+
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
1226
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
1227
|
+
project_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1228
|
+
profile: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1229
|
+
personality: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1230
|
+
input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
1231
|
+
output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
1232
|
+
cache_read_tokens: z.ZodOptional<z.ZodNumber>;
|
|
1233
|
+
cache_write_tokens: z.ZodOptional<z.ZodNumber>;
|
|
1234
|
+
cache_hit_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1235
|
+
estimated_cost: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1236
|
+
active_stream_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1237
|
+
is_streaming: z.ZodBoolean;
|
|
1238
|
+
active_turn_origin: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1239
|
+
user: "user";
|
|
1240
|
+
background: "background";
|
|
1241
|
+
}>>>;
|
|
1242
|
+
pending_steers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1243
|
+
steer_id: z.ZodString;
|
|
1244
|
+
text: z.ZodString;
|
|
1245
|
+
submitted_at: z.ZodNumber;
|
|
1246
|
+
state: z.ZodEnum<{
|
|
1247
|
+
pending: "pending";
|
|
1248
|
+
sending_now: "sending_now";
|
|
1249
|
+
}>;
|
|
1250
|
+
actions: z.ZodObject<{
|
|
1251
|
+
edit: z.ZodBoolean;
|
|
1252
|
+
cancel: z.ZodBoolean;
|
|
1253
|
+
send_now: z.ZodBoolean;
|
|
1254
|
+
}, z.core.$strip>;
|
|
1255
|
+
}, z.core.$strip>>>;
|
|
1256
|
+
run_status: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1257
|
+
phase: z.ZodLiteral<"compressing">;
|
|
1258
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1259
|
+
phase: z.ZodLiteral<"rate_limit_wait">;
|
|
1260
|
+
wait: z.ZodObject<{
|
|
1261
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
1262
|
+
provider_label: z.ZodNullable<z.ZodString>;
|
|
1263
|
+
until: z.ZodNumber;
|
|
1264
|
+
until_kind: z.ZodEnum<{
|
|
1265
|
+
reset: "reset";
|
|
1266
|
+
retry: "retry";
|
|
1267
|
+
}>;
|
|
1268
|
+
}, z.core.$strip>;
|
|
1269
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1270
|
+
phase: z.ZodLiteral<"prompt_reading">;
|
|
1271
|
+
progress_percent: z.ZodNullable<z.ZodNumber>;
|
|
1272
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1273
|
+
phase: z.ZodLiteral<"working">;
|
|
1274
|
+
}, z.core.$strip>], "phase">>>;
|
|
1275
|
+
compression_started_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1276
|
+
notices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1277
|
+
key: z.ZodString;
|
|
1278
|
+
level: z.ZodEnum<{
|
|
1279
|
+
success: "success";
|
|
1280
|
+
error: "error";
|
|
1281
|
+
info: "info";
|
|
1282
|
+
warn: "warn";
|
|
1283
|
+
}>;
|
|
1284
|
+
text: z.ZodString;
|
|
1285
|
+
expires_at: z.ZodNullable<z.ZodNumber>;
|
|
1286
|
+
}, z.core.$strip>>>;
|
|
1287
|
+
goal: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1288
|
+
text: z.ZodString;
|
|
1289
|
+
status: z.ZodEnum<{
|
|
1290
|
+
active: "active";
|
|
1291
|
+
parked: "parked";
|
|
1292
|
+
paused: "paused";
|
|
1293
|
+
}>;
|
|
1294
|
+
turns_used: z.ZodNumber;
|
|
1295
|
+
max_turns: z.ZodNumber;
|
|
1296
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
1297
|
+
parked_until: z.ZodNullable<z.ZodNumber>;
|
|
1298
|
+
}, z.core.$strip>>>;
|
|
1299
|
+
automatic_turns_held: z.ZodOptional<z.ZodBoolean>;
|
|
1300
|
+
has_pending_user_message: z.ZodOptional<z.ZodBoolean>;
|
|
1301
|
+
pending_user_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1302
|
+
pending_attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1303
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
1304
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1305
|
+
path: z.ZodOptional<z.ZodString>;
|
|
1306
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
1307
|
+
mime: z.ZodOptional<z.ZodString>;
|
|
1308
|
+
is_image: z.ZodOptional<z.ZodBoolean>;
|
|
1309
|
+
rollback_token: z.ZodOptional<z.ZodString>;
|
|
1310
|
+
}, z.core.$loose>>>;
|
|
1311
|
+
pending_started_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1312
|
+
pending_user_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1313
|
+
context_length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1314
|
+
threshold_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1315
|
+
last_prompt_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1316
|
+
post_compression_context_tokens_estimate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1317
|
+
}, z.core.$loose>;
|
|
1318
|
+
draft: z.ZodOptional<z.ZodString>;
|
|
1319
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
545
1320
|
sync: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
546
1321
|
session_id: z.ZodOptional<z.ZodString>;
|
|
547
1322
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -563,11 +1338,11 @@ export declare const chatContract: {
|
|
|
563
1338
|
is_cli_session: z.ZodOptional<z.ZodBoolean>;
|
|
564
1339
|
source_kind: z.ZodEnum<{
|
|
565
1340
|
other: "other";
|
|
1341
|
+
webhook: "webhook";
|
|
1342
|
+
cron: "cron";
|
|
566
1343
|
webui: "webui";
|
|
567
1344
|
cli: "cli";
|
|
568
1345
|
messaging: "messaging";
|
|
569
|
-
cron: "cron";
|
|
570
|
-
webhook: "webhook";
|
|
571
1346
|
subagent: "subagent";
|
|
572
1347
|
claude_code: "claude_code";
|
|
573
1348
|
kanban: "kanban";
|
|
@@ -576,6 +1351,57 @@ export declare const chatContract: {
|
|
|
576
1351
|
is_messaging_session: z.ZodBoolean;
|
|
577
1352
|
sort_ts: z.ZodNumber;
|
|
578
1353
|
read_only: z.ZodBoolean;
|
|
1354
|
+
read_only_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1355
|
+
owner_attachment: z.ZodOptional<z.ZodObject<{
|
|
1356
|
+
state: z.ZodEnum<{
|
|
1357
|
+
attached: "attached";
|
|
1358
|
+
stopped: "stopped";
|
|
1359
|
+
unavailable: "unavailable";
|
|
1360
|
+
incompatible: "incompatible";
|
|
1361
|
+
refused: "refused";
|
|
1362
|
+
}>;
|
|
1363
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
1364
|
+
can_submit: z.ZodBoolean;
|
|
1365
|
+
can_interrupt: z.ZodBoolean;
|
|
1366
|
+
can_attach: z.ZodBoolean;
|
|
1367
|
+
revision: z.ZodNullable<z.ZodNumber>;
|
|
1368
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
1369
|
+
active_admission: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1370
|
+
admission_id: z.ZodString;
|
|
1371
|
+
sequence: z.ZodNumber;
|
|
1372
|
+
status: z.ZodEnum<{
|
|
1373
|
+
unknown: "unknown";
|
|
1374
|
+
queued: "queued";
|
|
1375
|
+
started: "started";
|
|
1376
|
+
terminal: "terminal";
|
|
1377
|
+
}>;
|
|
1378
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
1379
|
+
authority_epoch: z.ZodNumber;
|
|
1380
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
1381
|
+
text: z.ZodOptional<z.ZodString>;
|
|
1382
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
1383
|
+
}, z.core.$strip>>>;
|
|
1384
|
+
admissions: z.ZodArray<z.ZodObject<{
|
|
1385
|
+
admission_id: z.ZodString;
|
|
1386
|
+
sequence: z.ZodNumber;
|
|
1387
|
+
status: z.ZodEnum<{
|
|
1388
|
+
unknown: "unknown";
|
|
1389
|
+
queued: "queued";
|
|
1390
|
+
started: "started";
|
|
1391
|
+
terminal: "terminal";
|
|
1392
|
+
}>;
|
|
1393
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
1394
|
+
authority_epoch: z.ZodNumber;
|
|
1395
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
1396
|
+
text: z.ZodOptional<z.ZodString>;
|
|
1397
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
1398
|
+
actions: z.ZodArray<z.ZodEnum<{
|
|
1399
|
+
cancel: "cancel";
|
|
1400
|
+
discard: "discard";
|
|
1401
|
+
retry: "retry";
|
|
1402
|
+
}>>;
|
|
1403
|
+
}, z.core.$strip>>;
|
|
1404
|
+
}, z.core.$strip>>;
|
|
579
1405
|
can_branch: z.ZodBoolean;
|
|
580
1406
|
can_pin: z.ZodBoolean;
|
|
581
1407
|
can_archive: z.ZodBoolean;
|
|
@@ -583,6 +1409,7 @@ export declare const chatContract: {
|
|
|
583
1409
|
can_duplicate: z.ZodBoolean;
|
|
584
1410
|
source_tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
585
1411
|
can_compress: z.ZodOptional<z.ZodBoolean>;
|
|
1412
|
+
confirms_deep_truncate: z.ZodOptional<z.ZodBoolean>;
|
|
586
1413
|
source_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
587
1414
|
session_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
588
1415
|
raw_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -622,6 +1449,7 @@ export declare const chatContract: {
|
|
|
622
1449
|
context_window_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
623
1450
|
context_usage_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
624
1451
|
context_threshold_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1452
|
+
composer_state_key: z.ZodOptional<z.ZodString>;
|
|
625
1453
|
session_id: z.ZodString;
|
|
626
1454
|
title: z.ZodString;
|
|
627
1455
|
workspace: z.ZodOptional<z.ZodString>;
|
|
@@ -675,6 +1503,7 @@ export declare const chatContract: {
|
|
|
675
1503
|
event_type: z.ZodOptional<z.ZodString>;
|
|
676
1504
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
677
1505
|
unknown: "unknown";
|
|
1506
|
+
memory: "memory";
|
|
678
1507
|
shell: "shell";
|
|
679
1508
|
read: "read";
|
|
680
1509
|
list: "list";
|
|
@@ -682,7 +1511,6 @@ export declare const chatContract: {
|
|
|
682
1511
|
web: "web";
|
|
683
1512
|
write: "write";
|
|
684
1513
|
skill: "skill";
|
|
685
|
-
memory: "memory";
|
|
686
1514
|
delegate: "delegate";
|
|
687
1515
|
}>>;
|
|
688
1516
|
target: z.ZodOptional<z.ZodString>;
|
|
@@ -726,8 +1554,8 @@ export declare const chatContract: {
|
|
|
726
1554
|
row_id: z.ZodString;
|
|
727
1555
|
order_index: z.ZodNumber;
|
|
728
1556
|
role: z.ZodEnum<{
|
|
729
|
-
reasoning: "reasoning";
|
|
730
1557
|
tool: "tool";
|
|
1558
|
+
reasoning: "reasoning";
|
|
731
1559
|
prose: "prose";
|
|
732
1560
|
steering: "steering";
|
|
733
1561
|
}>;
|
|
@@ -766,10 +1594,10 @@ export declare const chatContract: {
|
|
|
766
1594
|
task_ids: z.ZodArray<z.ZodString>;
|
|
767
1595
|
status: z.ZodEnum<{
|
|
768
1596
|
unknown: "unknown";
|
|
1597
|
+
running: "running";
|
|
769
1598
|
cancelled: "cancelled";
|
|
770
|
-
completed: "completed";
|
|
771
1599
|
failed: "failed";
|
|
772
|
-
|
|
1600
|
+
completed: "completed";
|
|
773
1601
|
attention: "attention";
|
|
774
1602
|
}>;
|
|
775
1603
|
agents: z.ZodObject<{
|
|
@@ -783,6 +1611,7 @@ export declare const chatContract: {
|
|
|
783
1611
|
result_chars: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
784
1612
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
785
1613
|
unknown: "unknown";
|
|
1614
|
+
memory: "memory";
|
|
786
1615
|
shell: "shell";
|
|
787
1616
|
read: "read";
|
|
788
1617
|
list: "list";
|
|
@@ -790,7 +1619,6 @@ export declare const chatContract: {
|
|
|
790
1619
|
web: "web";
|
|
791
1620
|
write: "write";
|
|
792
1621
|
skill: "skill";
|
|
793
|
-
memory: "memory";
|
|
794
1622
|
delegate: "delegate";
|
|
795
1623
|
}>>;
|
|
796
1624
|
target: z.ZodOptional<z.ZodString>;
|
|
@@ -910,19 +1738,45 @@ export declare const chatContract: {
|
|
|
910
1738
|
other: "other";
|
|
911
1739
|
}>;
|
|
912
1740
|
status: z.ZodEnum<{
|
|
913
|
-
completed: "completed";
|
|
914
1741
|
failed: "failed";
|
|
1742
|
+
completed: "completed";
|
|
915
1743
|
notice: "notice";
|
|
916
1744
|
}>;
|
|
917
1745
|
label: z.ZodString;
|
|
918
1746
|
exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1747
|
+
review_state: z.ZodOptional<z.ZodEnum<{
|
|
1748
|
+
unknown: "unknown";
|
|
1749
|
+
failed: "failed";
|
|
1750
|
+
waiting: "waiting";
|
|
1751
|
+
reviewing: "reviewing";
|
|
1752
|
+
reviewed: "reviewed";
|
|
1753
|
+
}>>;
|
|
919
1754
|
}, z.core.$strip>>;
|
|
1755
|
+
review_state: z.ZodOptional<z.ZodEnum<{
|
|
1756
|
+
unknown: "unknown";
|
|
1757
|
+
failed: "failed";
|
|
1758
|
+
waiting: "waiting";
|
|
1759
|
+
reviewing: "reviewing";
|
|
1760
|
+
reviewed: "reviewed";
|
|
1761
|
+
}>>;
|
|
920
1762
|
}, z.core.$strip>>;
|
|
921
1763
|
_marker_kind: z.ZodOptional<z.ZodEnum<{
|
|
922
1764
|
context_compaction: "context_compaction";
|
|
923
1765
|
preserved_task_list: "preserved_task_list";
|
|
924
1766
|
}>>;
|
|
925
1767
|
_marker_body: z.ZodOptional<z.ZodString>;
|
|
1768
|
+
_notice_kind: z.ZodOptional<z.ZodEnum<{
|
|
1769
|
+
failed_turn: "failed_turn";
|
|
1770
|
+
session_finalize: "session_finalize";
|
|
1771
|
+
}>>;
|
|
1772
|
+
_delivery: z.ZodOptional<z.ZodObject<{
|
|
1773
|
+
kind: z.ZodEnum<{
|
|
1774
|
+
webhook: "webhook";
|
|
1775
|
+
cron: "cron";
|
|
1776
|
+
}>;
|
|
1777
|
+
name: z.ZodString;
|
|
1778
|
+
body: z.ZodString;
|
|
1779
|
+
}, z.core.$strip>>;
|
|
926
1780
|
_background_reply: z.ZodOptional<z.ZodBoolean>;
|
|
927
1781
|
_background_silent: z.ZodOptional<z.ZodBoolean>;
|
|
928
1782
|
_display: z.ZodOptional<z.ZodEnum<{
|
|
@@ -959,6 +1813,7 @@ export declare const chatContract: {
|
|
|
959
1813
|
event_type: z.ZodOptional<z.ZodString>;
|
|
960
1814
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
961
1815
|
unknown: "unknown";
|
|
1816
|
+
memory: "memory";
|
|
962
1817
|
shell: "shell";
|
|
963
1818
|
read: "read";
|
|
964
1819
|
list: "list";
|
|
@@ -966,7 +1821,6 @@ export declare const chatContract: {
|
|
|
966
1821
|
web: "web";
|
|
967
1822
|
write: "write";
|
|
968
1823
|
skill: "skill";
|
|
969
|
-
memory: "memory";
|
|
970
1824
|
delegate: "delegate";
|
|
971
1825
|
}>>;
|
|
972
1826
|
target: z.ZodOptional<z.ZodString>;
|
|
@@ -1031,6 +1885,50 @@ export declare const chatContract: {
|
|
|
1031
1885
|
send_now: z.ZodBoolean;
|
|
1032
1886
|
}, z.core.$strip>;
|
|
1033
1887
|
}, z.core.$strip>>>;
|
|
1888
|
+
run_status: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1889
|
+
phase: z.ZodLiteral<"compressing">;
|
|
1890
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1891
|
+
phase: z.ZodLiteral<"rate_limit_wait">;
|
|
1892
|
+
wait: z.ZodObject<{
|
|
1893
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
1894
|
+
provider_label: z.ZodNullable<z.ZodString>;
|
|
1895
|
+
until: z.ZodNumber;
|
|
1896
|
+
until_kind: z.ZodEnum<{
|
|
1897
|
+
reset: "reset";
|
|
1898
|
+
retry: "retry";
|
|
1899
|
+
}>;
|
|
1900
|
+
}, z.core.$strip>;
|
|
1901
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1902
|
+
phase: z.ZodLiteral<"prompt_reading">;
|
|
1903
|
+
progress_percent: z.ZodNullable<z.ZodNumber>;
|
|
1904
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1905
|
+
phase: z.ZodLiteral<"working">;
|
|
1906
|
+
}, z.core.$strip>], "phase">>>;
|
|
1907
|
+
compression_started_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1908
|
+
notices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1909
|
+
key: z.ZodString;
|
|
1910
|
+
level: z.ZodEnum<{
|
|
1911
|
+
success: "success";
|
|
1912
|
+
error: "error";
|
|
1913
|
+
info: "info";
|
|
1914
|
+
warn: "warn";
|
|
1915
|
+
}>;
|
|
1916
|
+
text: z.ZodString;
|
|
1917
|
+
expires_at: z.ZodNullable<z.ZodNumber>;
|
|
1918
|
+
}, z.core.$strip>>>;
|
|
1919
|
+
goal: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1920
|
+
text: z.ZodString;
|
|
1921
|
+
status: z.ZodEnum<{
|
|
1922
|
+
active: "active";
|
|
1923
|
+
parked: "parked";
|
|
1924
|
+
paused: "paused";
|
|
1925
|
+
}>;
|
|
1926
|
+
turns_used: z.ZodNumber;
|
|
1927
|
+
max_turns: z.ZodNumber;
|
|
1928
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
1929
|
+
parked_until: z.ZodNullable<z.ZodNumber>;
|
|
1930
|
+
}, z.core.$strip>>>;
|
|
1931
|
+
automatic_turns_held: z.ZodOptional<z.ZodBoolean>;
|
|
1034
1932
|
has_pending_user_message: z.ZodOptional<z.ZodBoolean>;
|
|
1035
1933
|
pending_user_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1036
1934
|
pending_attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1056,6 +1954,7 @@ export declare const chatContract: {
|
|
|
1056
1954
|
}, z.core.$strip>;
|
|
1057
1955
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1058
1956
|
start: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1957
|
+
submission_id: z.ZodOptional<z.ZodString>;
|
|
1059
1958
|
session_id: z.ZodString;
|
|
1060
1959
|
message: z.ZodOptional<z.ZodString>;
|
|
1061
1960
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1075,7 +1974,61 @@ export declare const chatContract: {
|
|
|
1075
1974
|
moa_config: z.ZodOptional<z.ZodBoolean>;
|
|
1076
1975
|
regenerate: z.ZodOptional<z.ZodBoolean>;
|
|
1077
1976
|
regeneration_revision: z.ZodOptional<z.ZodString>;
|
|
1977
|
+
voice_turn: z.ZodOptional<z.ZodBoolean>;
|
|
1978
|
+
connect_card: z.ZodOptional<z.ZodBoolean>;
|
|
1979
|
+
skill_secret: z.ZodOptional<z.ZodBoolean>;
|
|
1078
1980
|
}, z.core.$loose>, z.ZodObject<{
|
|
1981
|
+
owner_attachment: z.ZodOptional<z.ZodObject<{
|
|
1982
|
+
state: z.ZodEnum<{
|
|
1983
|
+
attached: "attached";
|
|
1984
|
+
stopped: "stopped";
|
|
1985
|
+
unavailable: "unavailable";
|
|
1986
|
+
incompatible: "incompatible";
|
|
1987
|
+
refused: "refused";
|
|
1988
|
+
}>;
|
|
1989
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
1990
|
+
can_submit: z.ZodBoolean;
|
|
1991
|
+
can_interrupt: z.ZodBoolean;
|
|
1992
|
+
can_attach: z.ZodBoolean;
|
|
1993
|
+
revision: z.ZodNullable<z.ZodNumber>;
|
|
1994
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
1995
|
+
active_admission: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1996
|
+
admission_id: z.ZodString;
|
|
1997
|
+
sequence: z.ZodNumber;
|
|
1998
|
+
status: z.ZodEnum<{
|
|
1999
|
+
unknown: "unknown";
|
|
2000
|
+
queued: "queued";
|
|
2001
|
+
started: "started";
|
|
2002
|
+
terminal: "terminal";
|
|
2003
|
+
}>;
|
|
2004
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
2005
|
+
authority_epoch: z.ZodNumber;
|
|
2006
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
2007
|
+
text: z.ZodOptional<z.ZodString>;
|
|
2008
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
2009
|
+
}, z.core.$strip>>>;
|
|
2010
|
+
admissions: z.ZodArray<z.ZodObject<{
|
|
2011
|
+
admission_id: z.ZodString;
|
|
2012
|
+
sequence: z.ZodNumber;
|
|
2013
|
+
status: z.ZodEnum<{
|
|
2014
|
+
unknown: "unknown";
|
|
2015
|
+
queued: "queued";
|
|
2016
|
+
started: "started";
|
|
2017
|
+
terminal: "terminal";
|
|
2018
|
+
}>;
|
|
2019
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
2020
|
+
authority_epoch: z.ZodNumber;
|
|
2021
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
2022
|
+
text: z.ZodOptional<z.ZodString>;
|
|
2023
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
2024
|
+
actions: z.ZodArray<z.ZodEnum<{
|
|
2025
|
+
cancel: "cancel";
|
|
2026
|
+
discard: "discard";
|
|
2027
|
+
retry: "retry";
|
|
2028
|
+
}>>;
|
|
2029
|
+
}, z.core.$strip>>;
|
|
2030
|
+
}, z.core.$strip>>;
|
|
2031
|
+
admission_id: z.ZodOptional<z.ZodString>;
|
|
1079
2032
|
stream_id: z.ZodOptional<z.ZodString>;
|
|
1080
2033
|
session_id: z.ZodOptional<z.ZodString>;
|
|
1081
2034
|
turn_id: z.ZodOptional<z.ZodString>;
|
|
@@ -1097,11 +2050,11 @@ export declare const chatContract: {
|
|
|
1097
2050
|
is_cli_session: z.ZodOptional<z.ZodBoolean>;
|
|
1098
2051
|
source_kind: z.ZodEnum<{
|
|
1099
2052
|
other: "other";
|
|
2053
|
+
webhook: "webhook";
|
|
2054
|
+
cron: "cron";
|
|
1100
2055
|
webui: "webui";
|
|
1101
2056
|
cli: "cli";
|
|
1102
2057
|
messaging: "messaging";
|
|
1103
|
-
cron: "cron";
|
|
1104
|
-
webhook: "webhook";
|
|
1105
2058
|
subagent: "subagent";
|
|
1106
2059
|
claude_code: "claude_code";
|
|
1107
2060
|
kanban: "kanban";
|
|
@@ -1110,6 +2063,57 @@ export declare const chatContract: {
|
|
|
1110
2063
|
is_messaging_session: z.ZodBoolean;
|
|
1111
2064
|
sort_ts: z.ZodNumber;
|
|
1112
2065
|
read_only: z.ZodBoolean;
|
|
2066
|
+
read_only_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2067
|
+
owner_attachment: z.ZodOptional<z.ZodObject<{
|
|
2068
|
+
state: z.ZodEnum<{
|
|
2069
|
+
attached: "attached";
|
|
2070
|
+
stopped: "stopped";
|
|
2071
|
+
unavailable: "unavailable";
|
|
2072
|
+
incompatible: "incompatible";
|
|
2073
|
+
refused: "refused";
|
|
2074
|
+
}>;
|
|
2075
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
2076
|
+
can_submit: z.ZodBoolean;
|
|
2077
|
+
can_interrupt: z.ZodBoolean;
|
|
2078
|
+
can_attach: z.ZodBoolean;
|
|
2079
|
+
revision: z.ZodNullable<z.ZodNumber>;
|
|
2080
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
2081
|
+
active_admission: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2082
|
+
admission_id: z.ZodString;
|
|
2083
|
+
sequence: z.ZodNumber;
|
|
2084
|
+
status: z.ZodEnum<{
|
|
2085
|
+
unknown: "unknown";
|
|
2086
|
+
queued: "queued";
|
|
2087
|
+
started: "started";
|
|
2088
|
+
terminal: "terminal";
|
|
2089
|
+
}>;
|
|
2090
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
2091
|
+
authority_epoch: z.ZodNumber;
|
|
2092
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
2093
|
+
text: z.ZodOptional<z.ZodString>;
|
|
2094
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
2095
|
+
}, z.core.$strip>>>;
|
|
2096
|
+
admissions: z.ZodArray<z.ZodObject<{
|
|
2097
|
+
admission_id: z.ZodString;
|
|
2098
|
+
sequence: z.ZodNumber;
|
|
2099
|
+
status: z.ZodEnum<{
|
|
2100
|
+
unknown: "unknown";
|
|
2101
|
+
queued: "queued";
|
|
2102
|
+
started: "started";
|
|
2103
|
+
terminal: "terminal";
|
|
2104
|
+
}>;
|
|
2105
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
2106
|
+
authority_epoch: z.ZodNumber;
|
|
2107
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
2108
|
+
text: z.ZodOptional<z.ZodString>;
|
|
2109
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
2110
|
+
actions: z.ZodArray<z.ZodEnum<{
|
|
2111
|
+
cancel: "cancel";
|
|
2112
|
+
discard: "discard";
|
|
2113
|
+
retry: "retry";
|
|
2114
|
+
}>>;
|
|
2115
|
+
}, z.core.$strip>>;
|
|
2116
|
+
}, z.core.$strip>>;
|
|
1113
2117
|
can_branch: z.ZodBoolean;
|
|
1114
2118
|
can_pin: z.ZodBoolean;
|
|
1115
2119
|
can_archive: z.ZodBoolean;
|
|
@@ -1117,6 +2121,7 @@ export declare const chatContract: {
|
|
|
1117
2121
|
can_duplicate: z.ZodBoolean;
|
|
1118
2122
|
source_tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1119
2123
|
can_compress: z.ZodOptional<z.ZodBoolean>;
|
|
2124
|
+
confirms_deep_truncate: z.ZodOptional<z.ZodBoolean>;
|
|
1120
2125
|
source_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1121
2126
|
session_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1122
2127
|
raw_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1156,6 +2161,7 @@ export declare const chatContract: {
|
|
|
1156
2161
|
context_window_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1157
2162
|
context_usage_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1158
2163
|
context_threshold_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2164
|
+
composer_state_key: z.ZodOptional<z.ZodString>;
|
|
1159
2165
|
session_id: z.ZodString;
|
|
1160
2166
|
title: z.ZodString;
|
|
1161
2167
|
workspace: z.ZodOptional<z.ZodString>;
|
|
@@ -1209,6 +2215,7 @@ export declare const chatContract: {
|
|
|
1209
2215
|
event_type: z.ZodOptional<z.ZodString>;
|
|
1210
2216
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
1211
2217
|
unknown: "unknown";
|
|
2218
|
+
memory: "memory";
|
|
1212
2219
|
shell: "shell";
|
|
1213
2220
|
read: "read";
|
|
1214
2221
|
list: "list";
|
|
@@ -1216,7 +2223,6 @@ export declare const chatContract: {
|
|
|
1216
2223
|
web: "web";
|
|
1217
2224
|
write: "write";
|
|
1218
2225
|
skill: "skill";
|
|
1219
|
-
memory: "memory";
|
|
1220
2226
|
delegate: "delegate";
|
|
1221
2227
|
}>>;
|
|
1222
2228
|
target: z.ZodOptional<z.ZodString>;
|
|
@@ -1260,8 +2266,8 @@ export declare const chatContract: {
|
|
|
1260
2266
|
row_id: z.ZodString;
|
|
1261
2267
|
order_index: z.ZodNumber;
|
|
1262
2268
|
role: z.ZodEnum<{
|
|
1263
|
-
reasoning: "reasoning";
|
|
1264
2269
|
tool: "tool";
|
|
2270
|
+
reasoning: "reasoning";
|
|
1265
2271
|
prose: "prose";
|
|
1266
2272
|
steering: "steering";
|
|
1267
2273
|
}>;
|
|
@@ -1300,10 +2306,10 @@ export declare const chatContract: {
|
|
|
1300
2306
|
task_ids: z.ZodArray<z.ZodString>;
|
|
1301
2307
|
status: z.ZodEnum<{
|
|
1302
2308
|
unknown: "unknown";
|
|
2309
|
+
running: "running";
|
|
1303
2310
|
cancelled: "cancelled";
|
|
1304
|
-
completed: "completed";
|
|
1305
2311
|
failed: "failed";
|
|
1306
|
-
|
|
2312
|
+
completed: "completed";
|
|
1307
2313
|
attention: "attention";
|
|
1308
2314
|
}>;
|
|
1309
2315
|
agents: z.ZodObject<{
|
|
@@ -1317,6 +2323,7 @@ export declare const chatContract: {
|
|
|
1317
2323
|
result_chars: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1318
2324
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
1319
2325
|
unknown: "unknown";
|
|
2326
|
+
memory: "memory";
|
|
1320
2327
|
shell: "shell";
|
|
1321
2328
|
read: "read";
|
|
1322
2329
|
list: "list";
|
|
@@ -1324,7 +2331,6 @@ export declare const chatContract: {
|
|
|
1324
2331
|
web: "web";
|
|
1325
2332
|
write: "write";
|
|
1326
2333
|
skill: "skill";
|
|
1327
|
-
memory: "memory";
|
|
1328
2334
|
delegate: "delegate";
|
|
1329
2335
|
}>>;
|
|
1330
2336
|
target: z.ZodOptional<z.ZodString>;
|
|
@@ -1444,19 +2450,45 @@ export declare const chatContract: {
|
|
|
1444
2450
|
other: "other";
|
|
1445
2451
|
}>;
|
|
1446
2452
|
status: z.ZodEnum<{
|
|
1447
|
-
completed: "completed";
|
|
1448
2453
|
failed: "failed";
|
|
2454
|
+
completed: "completed";
|
|
1449
2455
|
notice: "notice";
|
|
1450
2456
|
}>;
|
|
1451
2457
|
label: z.ZodString;
|
|
1452
2458
|
exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2459
|
+
review_state: z.ZodOptional<z.ZodEnum<{
|
|
2460
|
+
unknown: "unknown";
|
|
2461
|
+
failed: "failed";
|
|
2462
|
+
waiting: "waiting";
|
|
2463
|
+
reviewing: "reviewing";
|
|
2464
|
+
reviewed: "reviewed";
|
|
2465
|
+
}>>;
|
|
1453
2466
|
}, z.core.$strip>>;
|
|
2467
|
+
review_state: z.ZodOptional<z.ZodEnum<{
|
|
2468
|
+
unknown: "unknown";
|
|
2469
|
+
failed: "failed";
|
|
2470
|
+
waiting: "waiting";
|
|
2471
|
+
reviewing: "reviewing";
|
|
2472
|
+
reviewed: "reviewed";
|
|
2473
|
+
}>>;
|
|
1454
2474
|
}, z.core.$strip>>;
|
|
1455
2475
|
_marker_kind: z.ZodOptional<z.ZodEnum<{
|
|
1456
2476
|
context_compaction: "context_compaction";
|
|
1457
2477
|
preserved_task_list: "preserved_task_list";
|
|
1458
2478
|
}>>;
|
|
1459
2479
|
_marker_body: z.ZodOptional<z.ZodString>;
|
|
2480
|
+
_notice_kind: z.ZodOptional<z.ZodEnum<{
|
|
2481
|
+
failed_turn: "failed_turn";
|
|
2482
|
+
session_finalize: "session_finalize";
|
|
2483
|
+
}>>;
|
|
2484
|
+
_delivery: z.ZodOptional<z.ZodObject<{
|
|
2485
|
+
kind: z.ZodEnum<{
|
|
2486
|
+
webhook: "webhook";
|
|
2487
|
+
cron: "cron";
|
|
2488
|
+
}>;
|
|
2489
|
+
name: z.ZodString;
|
|
2490
|
+
body: z.ZodString;
|
|
2491
|
+
}, z.core.$strip>>;
|
|
1460
2492
|
_background_reply: z.ZodOptional<z.ZodBoolean>;
|
|
1461
2493
|
_background_silent: z.ZodOptional<z.ZodBoolean>;
|
|
1462
2494
|
_display: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1493,6 +2525,7 @@ export declare const chatContract: {
|
|
|
1493
2525
|
event_type: z.ZodOptional<z.ZodString>;
|
|
1494
2526
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
1495
2527
|
unknown: "unknown";
|
|
2528
|
+
memory: "memory";
|
|
1496
2529
|
shell: "shell";
|
|
1497
2530
|
read: "read";
|
|
1498
2531
|
list: "list";
|
|
@@ -1500,7 +2533,6 @@ export declare const chatContract: {
|
|
|
1500
2533
|
web: "web";
|
|
1501
2534
|
write: "write";
|
|
1502
2535
|
skill: "skill";
|
|
1503
|
-
memory: "memory";
|
|
1504
2536
|
delegate: "delegate";
|
|
1505
2537
|
}>>;
|
|
1506
2538
|
target: z.ZodOptional<z.ZodString>;
|
|
@@ -1565,6 +2597,50 @@ export declare const chatContract: {
|
|
|
1565
2597
|
send_now: z.ZodBoolean;
|
|
1566
2598
|
}, z.core.$strip>;
|
|
1567
2599
|
}, z.core.$strip>>>;
|
|
2600
|
+
run_status: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2601
|
+
phase: z.ZodLiteral<"compressing">;
|
|
2602
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2603
|
+
phase: z.ZodLiteral<"rate_limit_wait">;
|
|
2604
|
+
wait: z.ZodObject<{
|
|
2605
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
2606
|
+
provider_label: z.ZodNullable<z.ZodString>;
|
|
2607
|
+
until: z.ZodNumber;
|
|
2608
|
+
until_kind: z.ZodEnum<{
|
|
2609
|
+
reset: "reset";
|
|
2610
|
+
retry: "retry";
|
|
2611
|
+
}>;
|
|
2612
|
+
}, z.core.$strip>;
|
|
2613
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2614
|
+
phase: z.ZodLiteral<"prompt_reading">;
|
|
2615
|
+
progress_percent: z.ZodNullable<z.ZodNumber>;
|
|
2616
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2617
|
+
phase: z.ZodLiteral<"working">;
|
|
2618
|
+
}, z.core.$strip>], "phase">>>;
|
|
2619
|
+
compression_started_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2620
|
+
notices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2621
|
+
key: z.ZodString;
|
|
2622
|
+
level: z.ZodEnum<{
|
|
2623
|
+
success: "success";
|
|
2624
|
+
error: "error";
|
|
2625
|
+
info: "info";
|
|
2626
|
+
warn: "warn";
|
|
2627
|
+
}>;
|
|
2628
|
+
text: z.ZodString;
|
|
2629
|
+
expires_at: z.ZodNullable<z.ZodNumber>;
|
|
2630
|
+
}, z.core.$strip>>>;
|
|
2631
|
+
goal: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2632
|
+
text: z.ZodString;
|
|
2633
|
+
status: z.ZodEnum<{
|
|
2634
|
+
active: "active";
|
|
2635
|
+
parked: "parked";
|
|
2636
|
+
paused: "paused";
|
|
2637
|
+
}>;
|
|
2638
|
+
turns_used: z.ZodNumber;
|
|
2639
|
+
max_turns: z.ZodNumber;
|
|
2640
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
2641
|
+
parked_until: z.ZodNullable<z.ZodNumber>;
|
|
2642
|
+
}, z.core.$strip>>>;
|
|
2643
|
+
automatic_turns_held: z.ZodOptional<z.ZodBoolean>;
|
|
1568
2644
|
has_pending_user_message: z.ZodOptional<z.ZodBoolean>;
|
|
1569
2645
|
pending_user_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1570
2646
|
pending_attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1595,6 +2671,57 @@ export declare const chatContract: {
|
|
|
1595
2671
|
stream_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1596
2672
|
steer_id: z.ZodOptional<z.ZodString>;
|
|
1597
2673
|
started_turn: z.ZodOptional<z.ZodObject<{
|
|
2674
|
+
owner_attachment: z.ZodOptional<z.ZodObject<{
|
|
2675
|
+
state: z.ZodEnum<{
|
|
2676
|
+
attached: "attached";
|
|
2677
|
+
stopped: "stopped";
|
|
2678
|
+
unavailable: "unavailable";
|
|
2679
|
+
incompatible: "incompatible";
|
|
2680
|
+
refused: "refused";
|
|
2681
|
+
}>;
|
|
2682
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
2683
|
+
can_submit: z.ZodBoolean;
|
|
2684
|
+
can_interrupt: z.ZodBoolean;
|
|
2685
|
+
can_attach: z.ZodBoolean;
|
|
2686
|
+
revision: z.ZodNullable<z.ZodNumber>;
|
|
2687
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
2688
|
+
active_admission: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2689
|
+
admission_id: z.ZodString;
|
|
2690
|
+
sequence: z.ZodNumber;
|
|
2691
|
+
status: z.ZodEnum<{
|
|
2692
|
+
unknown: "unknown";
|
|
2693
|
+
queued: "queued";
|
|
2694
|
+
started: "started";
|
|
2695
|
+
terminal: "terminal";
|
|
2696
|
+
}>;
|
|
2697
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
2698
|
+
authority_epoch: z.ZodNumber;
|
|
2699
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
2700
|
+
text: z.ZodOptional<z.ZodString>;
|
|
2701
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
2702
|
+
}, z.core.$strip>>>;
|
|
2703
|
+
admissions: z.ZodArray<z.ZodObject<{
|
|
2704
|
+
admission_id: z.ZodString;
|
|
2705
|
+
sequence: z.ZodNumber;
|
|
2706
|
+
status: z.ZodEnum<{
|
|
2707
|
+
unknown: "unknown";
|
|
2708
|
+
queued: "queued";
|
|
2709
|
+
started: "started";
|
|
2710
|
+
terminal: "terminal";
|
|
2711
|
+
}>;
|
|
2712
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
2713
|
+
authority_epoch: z.ZodNumber;
|
|
2714
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
2715
|
+
text: z.ZodOptional<z.ZodString>;
|
|
2716
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
2717
|
+
actions: z.ZodArray<z.ZodEnum<{
|
|
2718
|
+
cancel: "cancel";
|
|
2719
|
+
discard: "discard";
|
|
2720
|
+
retry: "retry";
|
|
2721
|
+
}>>;
|
|
2722
|
+
}, z.core.$strip>>;
|
|
2723
|
+
}, z.core.$strip>>;
|
|
2724
|
+
admission_id: z.ZodOptional<z.ZodString>;
|
|
1598
2725
|
stream_id: z.ZodOptional<z.ZodString>;
|
|
1599
2726
|
session_id: z.ZodOptional<z.ZodString>;
|
|
1600
2727
|
turn_id: z.ZodOptional<z.ZodString>;
|
|
@@ -1616,11 +2743,11 @@ export declare const chatContract: {
|
|
|
1616
2743
|
is_cli_session: z.ZodOptional<z.ZodBoolean>;
|
|
1617
2744
|
source_kind: z.ZodEnum<{
|
|
1618
2745
|
other: "other";
|
|
2746
|
+
webhook: "webhook";
|
|
2747
|
+
cron: "cron";
|
|
1619
2748
|
webui: "webui";
|
|
1620
2749
|
cli: "cli";
|
|
1621
2750
|
messaging: "messaging";
|
|
1622
|
-
cron: "cron";
|
|
1623
|
-
webhook: "webhook";
|
|
1624
2751
|
subagent: "subagent";
|
|
1625
2752
|
claude_code: "claude_code";
|
|
1626
2753
|
kanban: "kanban";
|
|
@@ -1629,6 +2756,57 @@ export declare const chatContract: {
|
|
|
1629
2756
|
is_messaging_session: z.ZodBoolean;
|
|
1630
2757
|
sort_ts: z.ZodNumber;
|
|
1631
2758
|
read_only: z.ZodBoolean;
|
|
2759
|
+
read_only_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2760
|
+
owner_attachment: z.ZodOptional<z.ZodObject<{
|
|
2761
|
+
state: z.ZodEnum<{
|
|
2762
|
+
attached: "attached";
|
|
2763
|
+
stopped: "stopped";
|
|
2764
|
+
unavailable: "unavailable";
|
|
2765
|
+
incompatible: "incompatible";
|
|
2766
|
+
refused: "refused";
|
|
2767
|
+
}>;
|
|
2768
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
2769
|
+
can_submit: z.ZodBoolean;
|
|
2770
|
+
can_interrupt: z.ZodBoolean;
|
|
2771
|
+
can_attach: z.ZodBoolean;
|
|
2772
|
+
revision: z.ZodNullable<z.ZodNumber>;
|
|
2773
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
2774
|
+
active_admission: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2775
|
+
admission_id: z.ZodString;
|
|
2776
|
+
sequence: z.ZodNumber;
|
|
2777
|
+
status: z.ZodEnum<{
|
|
2778
|
+
unknown: "unknown";
|
|
2779
|
+
queued: "queued";
|
|
2780
|
+
started: "started";
|
|
2781
|
+
terminal: "terminal";
|
|
2782
|
+
}>;
|
|
2783
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
2784
|
+
authority_epoch: z.ZodNumber;
|
|
2785
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
2786
|
+
text: z.ZodOptional<z.ZodString>;
|
|
2787
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
2788
|
+
}, z.core.$strip>>>;
|
|
2789
|
+
admissions: z.ZodArray<z.ZodObject<{
|
|
2790
|
+
admission_id: z.ZodString;
|
|
2791
|
+
sequence: z.ZodNumber;
|
|
2792
|
+
status: z.ZodEnum<{
|
|
2793
|
+
unknown: "unknown";
|
|
2794
|
+
queued: "queued";
|
|
2795
|
+
started: "started";
|
|
2796
|
+
terminal: "terminal";
|
|
2797
|
+
}>;
|
|
2798
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
2799
|
+
authority_epoch: z.ZodNumber;
|
|
2800
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
2801
|
+
text: z.ZodOptional<z.ZodString>;
|
|
2802
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
2803
|
+
actions: z.ZodArray<z.ZodEnum<{
|
|
2804
|
+
cancel: "cancel";
|
|
2805
|
+
discard: "discard";
|
|
2806
|
+
retry: "retry";
|
|
2807
|
+
}>>;
|
|
2808
|
+
}, z.core.$strip>>;
|
|
2809
|
+
}, z.core.$strip>>;
|
|
1632
2810
|
can_branch: z.ZodBoolean;
|
|
1633
2811
|
can_pin: z.ZodBoolean;
|
|
1634
2812
|
can_archive: z.ZodBoolean;
|
|
@@ -1636,6 +2814,7 @@ export declare const chatContract: {
|
|
|
1636
2814
|
can_duplicate: z.ZodBoolean;
|
|
1637
2815
|
source_tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1638
2816
|
can_compress: z.ZodOptional<z.ZodBoolean>;
|
|
2817
|
+
confirms_deep_truncate: z.ZodOptional<z.ZodBoolean>;
|
|
1639
2818
|
source_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1640
2819
|
session_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1641
2820
|
raw_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1675,6 +2854,7 @@ export declare const chatContract: {
|
|
|
1675
2854
|
context_window_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1676
2855
|
context_usage_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1677
2856
|
context_threshold_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2857
|
+
composer_state_key: z.ZodOptional<z.ZodString>;
|
|
1678
2858
|
session_id: z.ZodString;
|
|
1679
2859
|
title: z.ZodString;
|
|
1680
2860
|
workspace: z.ZodOptional<z.ZodString>;
|
|
@@ -1728,6 +2908,7 @@ export declare const chatContract: {
|
|
|
1728
2908
|
event_type: z.ZodOptional<z.ZodString>;
|
|
1729
2909
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
1730
2910
|
unknown: "unknown";
|
|
2911
|
+
memory: "memory";
|
|
1731
2912
|
shell: "shell";
|
|
1732
2913
|
read: "read";
|
|
1733
2914
|
list: "list";
|
|
@@ -1735,7 +2916,6 @@ export declare const chatContract: {
|
|
|
1735
2916
|
web: "web";
|
|
1736
2917
|
write: "write";
|
|
1737
2918
|
skill: "skill";
|
|
1738
|
-
memory: "memory";
|
|
1739
2919
|
delegate: "delegate";
|
|
1740
2920
|
}>>;
|
|
1741
2921
|
target: z.ZodOptional<z.ZodString>;
|
|
@@ -1779,8 +2959,8 @@ export declare const chatContract: {
|
|
|
1779
2959
|
row_id: z.ZodString;
|
|
1780
2960
|
order_index: z.ZodNumber;
|
|
1781
2961
|
role: z.ZodEnum<{
|
|
1782
|
-
reasoning: "reasoning";
|
|
1783
2962
|
tool: "tool";
|
|
2963
|
+
reasoning: "reasoning";
|
|
1784
2964
|
prose: "prose";
|
|
1785
2965
|
steering: "steering";
|
|
1786
2966
|
}>;
|
|
@@ -1819,10 +2999,10 @@ export declare const chatContract: {
|
|
|
1819
2999
|
task_ids: z.ZodArray<z.ZodString>;
|
|
1820
3000
|
status: z.ZodEnum<{
|
|
1821
3001
|
unknown: "unknown";
|
|
3002
|
+
running: "running";
|
|
1822
3003
|
cancelled: "cancelled";
|
|
1823
|
-
completed: "completed";
|
|
1824
3004
|
failed: "failed";
|
|
1825
|
-
|
|
3005
|
+
completed: "completed";
|
|
1826
3006
|
attention: "attention";
|
|
1827
3007
|
}>;
|
|
1828
3008
|
agents: z.ZodObject<{
|
|
@@ -1836,6 +3016,7 @@ export declare const chatContract: {
|
|
|
1836
3016
|
result_chars: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1837
3017
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
1838
3018
|
unknown: "unknown";
|
|
3019
|
+
memory: "memory";
|
|
1839
3020
|
shell: "shell";
|
|
1840
3021
|
read: "read";
|
|
1841
3022
|
list: "list";
|
|
@@ -1843,7 +3024,6 @@ export declare const chatContract: {
|
|
|
1843
3024
|
web: "web";
|
|
1844
3025
|
write: "write";
|
|
1845
3026
|
skill: "skill";
|
|
1846
|
-
memory: "memory";
|
|
1847
3027
|
delegate: "delegate";
|
|
1848
3028
|
}>>;
|
|
1849
3029
|
target: z.ZodOptional<z.ZodString>;
|
|
@@ -1963,19 +3143,45 @@ export declare const chatContract: {
|
|
|
1963
3143
|
other: "other";
|
|
1964
3144
|
}>;
|
|
1965
3145
|
status: z.ZodEnum<{
|
|
1966
|
-
completed: "completed";
|
|
1967
3146
|
failed: "failed";
|
|
3147
|
+
completed: "completed";
|
|
1968
3148
|
notice: "notice";
|
|
1969
3149
|
}>;
|
|
1970
3150
|
label: z.ZodString;
|
|
1971
3151
|
exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3152
|
+
review_state: z.ZodOptional<z.ZodEnum<{
|
|
3153
|
+
unknown: "unknown";
|
|
3154
|
+
failed: "failed";
|
|
3155
|
+
waiting: "waiting";
|
|
3156
|
+
reviewing: "reviewing";
|
|
3157
|
+
reviewed: "reviewed";
|
|
3158
|
+
}>>;
|
|
1972
3159
|
}, z.core.$strip>>;
|
|
3160
|
+
review_state: z.ZodOptional<z.ZodEnum<{
|
|
3161
|
+
unknown: "unknown";
|
|
3162
|
+
failed: "failed";
|
|
3163
|
+
waiting: "waiting";
|
|
3164
|
+
reviewing: "reviewing";
|
|
3165
|
+
reviewed: "reviewed";
|
|
3166
|
+
}>>;
|
|
1973
3167
|
}, z.core.$strip>>;
|
|
1974
3168
|
_marker_kind: z.ZodOptional<z.ZodEnum<{
|
|
1975
3169
|
context_compaction: "context_compaction";
|
|
1976
3170
|
preserved_task_list: "preserved_task_list";
|
|
1977
3171
|
}>>;
|
|
1978
3172
|
_marker_body: z.ZodOptional<z.ZodString>;
|
|
3173
|
+
_notice_kind: z.ZodOptional<z.ZodEnum<{
|
|
3174
|
+
failed_turn: "failed_turn";
|
|
3175
|
+
session_finalize: "session_finalize";
|
|
3176
|
+
}>>;
|
|
3177
|
+
_delivery: z.ZodOptional<z.ZodObject<{
|
|
3178
|
+
kind: z.ZodEnum<{
|
|
3179
|
+
webhook: "webhook";
|
|
3180
|
+
cron: "cron";
|
|
3181
|
+
}>;
|
|
3182
|
+
name: z.ZodString;
|
|
3183
|
+
body: z.ZodString;
|
|
3184
|
+
}, z.core.$strip>>;
|
|
1979
3185
|
_background_reply: z.ZodOptional<z.ZodBoolean>;
|
|
1980
3186
|
_background_silent: z.ZodOptional<z.ZodBoolean>;
|
|
1981
3187
|
_display: z.ZodOptional<z.ZodEnum<{
|
|
@@ -2012,6 +3218,7 @@ export declare const chatContract: {
|
|
|
2012
3218
|
event_type: z.ZodOptional<z.ZodString>;
|
|
2013
3219
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
2014
3220
|
unknown: "unknown";
|
|
3221
|
+
memory: "memory";
|
|
2015
3222
|
shell: "shell";
|
|
2016
3223
|
read: "read";
|
|
2017
3224
|
list: "list";
|
|
@@ -2019,7 +3226,6 @@ export declare const chatContract: {
|
|
|
2019
3226
|
web: "web";
|
|
2020
3227
|
write: "write";
|
|
2021
3228
|
skill: "skill";
|
|
2022
|
-
memory: "memory";
|
|
2023
3229
|
delegate: "delegate";
|
|
2024
3230
|
}>>;
|
|
2025
3231
|
target: z.ZodOptional<z.ZodString>;
|
|
@@ -2084,6 +3290,50 @@ export declare const chatContract: {
|
|
|
2084
3290
|
send_now: z.ZodBoolean;
|
|
2085
3291
|
}, z.core.$strip>;
|
|
2086
3292
|
}, z.core.$strip>>>;
|
|
3293
|
+
run_status: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3294
|
+
phase: z.ZodLiteral<"compressing">;
|
|
3295
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3296
|
+
phase: z.ZodLiteral<"rate_limit_wait">;
|
|
3297
|
+
wait: z.ZodObject<{
|
|
3298
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
3299
|
+
provider_label: z.ZodNullable<z.ZodString>;
|
|
3300
|
+
until: z.ZodNumber;
|
|
3301
|
+
until_kind: z.ZodEnum<{
|
|
3302
|
+
reset: "reset";
|
|
3303
|
+
retry: "retry";
|
|
3304
|
+
}>;
|
|
3305
|
+
}, z.core.$strip>;
|
|
3306
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3307
|
+
phase: z.ZodLiteral<"prompt_reading">;
|
|
3308
|
+
progress_percent: z.ZodNullable<z.ZodNumber>;
|
|
3309
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3310
|
+
phase: z.ZodLiteral<"working">;
|
|
3311
|
+
}, z.core.$strip>], "phase">>>;
|
|
3312
|
+
compression_started_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3313
|
+
notices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3314
|
+
key: z.ZodString;
|
|
3315
|
+
level: z.ZodEnum<{
|
|
3316
|
+
success: "success";
|
|
3317
|
+
error: "error";
|
|
3318
|
+
info: "info";
|
|
3319
|
+
warn: "warn";
|
|
3320
|
+
}>;
|
|
3321
|
+
text: z.ZodString;
|
|
3322
|
+
expires_at: z.ZodNullable<z.ZodNumber>;
|
|
3323
|
+
}, z.core.$strip>>>;
|
|
3324
|
+
goal: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3325
|
+
text: z.ZodString;
|
|
3326
|
+
status: z.ZodEnum<{
|
|
3327
|
+
active: "active";
|
|
3328
|
+
parked: "parked";
|
|
3329
|
+
paused: "paused";
|
|
3330
|
+
}>;
|
|
3331
|
+
turns_used: z.ZodNumber;
|
|
3332
|
+
max_turns: z.ZodNumber;
|
|
3333
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
3334
|
+
parked_until: z.ZodNullable<z.ZodNumber>;
|
|
3335
|
+
}, z.core.$strip>>>;
|
|
3336
|
+
automatic_turns_held: z.ZodOptional<z.ZodBoolean>;
|
|
2087
3337
|
has_pending_user_message: z.ZodOptional<z.ZodBoolean>;
|
|
2088
3338
|
pending_user_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2089
3339
|
pending_attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2108,8 +3358,8 @@ export declare const chatContract: {
|
|
|
2108
3358
|
session_id: z.ZodString;
|
|
2109
3359
|
steer_id: z.ZodString;
|
|
2110
3360
|
reason: z.ZodEnum<{
|
|
2111
|
-
edit: "edit";
|
|
2112
3361
|
cancel: "cancel";
|
|
3362
|
+
edit: "edit";
|
|
2113
3363
|
}>;
|
|
2114
3364
|
}, z.core.$strip>, z.ZodObject<{
|
|
2115
3365
|
withdrawn: z.ZodBoolean;
|
|
@@ -2120,6 +3370,13 @@ export declare const chatContract: {
|
|
|
2120
3370
|
steer_id: z.ZodString;
|
|
2121
3371
|
}, z.core.$strip>, z.ZodObject<{
|
|
2122
3372
|
redirected: z.ZodBoolean;
|
|
3373
|
+
outcome: z.ZodEnum<{
|
|
3374
|
+
failed: "failed";
|
|
3375
|
+
not_running: "not_running";
|
|
3376
|
+
delivered: "delivered";
|
|
3377
|
+
next_step: "next_step";
|
|
3378
|
+
taken: "taken";
|
|
3379
|
+
}>;
|
|
2123
3380
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2124
3381
|
cancel: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2125
3382
|
stream_id: z.ZodOptional<z.ZodString>;
|
|
@@ -2130,9 +3387,9 @@ export declare const chatContract: {
|
|
|
2130
3387
|
withdrawn_steers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2131
3388
|
steer_id: z.ZodNullable<z.ZodString>;
|
|
2132
3389
|
reason: z.ZodEnum<{
|
|
2133
|
-
edit: "edit";
|
|
2134
|
-
cancel: "cancel";
|
|
2135
3390
|
stopped: "stopped";
|
|
3391
|
+
cancel: "cancel";
|
|
3392
|
+
edit: "edit";
|
|
2136
3393
|
followup: "followup";
|
|
2137
3394
|
}>;
|
|
2138
3395
|
text: z.ZodString;
|
|
@@ -2154,6 +3411,13 @@ export declare const chatContract: {
|
|
|
2154
3411
|
session_id: z.ZodOptional<z.ZodString>;
|
|
2155
3412
|
}, z.core.$strip>, z.ZodObject<{
|
|
2156
3413
|
pending: z.ZodNullable<z.ZodObject<{
|
|
3414
|
+
allowed_choices: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
3415
|
+
once: "once";
|
|
3416
|
+
session: "session";
|
|
3417
|
+
always: "always";
|
|
3418
|
+
deny: "deny";
|
|
3419
|
+
}>>>;
|
|
3420
|
+
can_enable_yolo: z.ZodOptional<z.ZodBoolean>;
|
|
2157
3421
|
approval_id: z.ZodOptional<z.ZodString>;
|
|
2158
3422
|
session_id: z.ZodOptional<z.ZodString>;
|
|
2159
3423
|
command: z.ZodOptional<z.ZodString>;
|
|
@@ -2198,6 +3462,36 @@ export declare const chatContract: {
|
|
|
2198
3462
|
choices: z.ZodArray<z.ZodString>;
|
|
2199
3463
|
multi_select: z.ZodBoolean;
|
|
2200
3464
|
}, z.core.$loose>>>;
|
|
3465
|
+
vault: z.ZodOptional<z.ZodObject<{
|
|
3466
|
+
kind: z.ZodEnum<{
|
|
3467
|
+
skill_secret: "skill_secret";
|
|
3468
|
+
vault_unlock: "vault_unlock";
|
|
3469
|
+
vault_save_login: "vault_save_login";
|
|
3470
|
+
vault_code: "vault_code";
|
|
3471
|
+
}>;
|
|
3472
|
+
backend: z.ZodNullable<z.ZodString>;
|
|
3473
|
+
display_name: z.ZodNullable<z.ZodString>;
|
|
3474
|
+
origin: z.ZodNullable<z.ZodString>;
|
|
3475
|
+
site: z.ZodNullable<z.ZodString>;
|
|
3476
|
+
hint: z.ZodNullable<z.ZodString>;
|
|
3477
|
+
skill: z.ZodOptional<z.ZodObject<{
|
|
3478
|
+
env_var: z.ZodString;
|
|
3479
|
+
skill_name: z.ZodString;
|
|
3480
|
+
help: z.ZodNullable<z.ZodString>;
|
|
3481
|
+
required_for: z.ZodNullable<z.ZodString>;
|
|
3482
|
+
}, z.core.$strip>>;
|
|
3483
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
3484
|
+
key: z.ZodEnum<{
|
|
3485
|
+
code: "code";
|
|
3486
|
+
secret: "secret";
|
|
3487
|
+
master_password: "master_password";
|
|
3488
|
+
identifier: "identifier";
|
|
3489
|
+
password: "password";
|
|
3490
|
+
}>;
|
|
3491
|
+
secure: z.ZodBoolean;
|
|
3492
|
+
}, z.core.$strip>>;
|
|
3493
|
+
timeout_at: z.ZodNumber;
|
|
3494
|
+
}, z.core.$strip>>;
|
|
2201
3495
|
clarify_id: z.ZodOptional<z.ZodString>;
|
|
2202
3496
|
session_id: z.ZodOptional<z.ZodString>;
|
|
2203
3497
|
question: z.ZodOptional<z.ZodString>;
|
|
@@ -2229,6 +3523,7 @@ export declare const chatContract: {
|
|
|
2229
3523
|
answer: z.ZodOptional<z.ZodString>;
|
|
2230
3524
|
choice: z.ZodOptional<z.ZodString>;
|
|
2231
3525
|
clarify_id: z.ZodOptional<z.ZodString>;
|
|
3526
|
+
decline: z.ZodOptional<z.ZodBoolean>;
|
|
2232
3527
|
}, z.core.$catchall<z.ZodUnknown>>, z.ZodObject<{
|
|
2233
3528
|
ok: z.ZodBoolean;
|
|
2234
3529
|
response: z.ZodOptional<z.ZodString>;
|
|
@@ -2291,10 +3586,10 @@ export declare const chatContract: {
|
|
|
2291
3586
|
}>;
|
|
2292
3587
|
status: z.ZodEnum<{
|
|
2293
3588
|
unknown: "unknown";
|
|
3589
|
+
running: "running";
|
|
2294
3590
|
cancelled: "cancelled";
|
|
2295
|
-
completed: "completed";
|
|
2296
3591
|
failed: "failed";
|
|
2297
|
-
|
|
3592
|
+
completed: "completed";
|
|
2298
3593
|
attention: "attention";
|
|
2299
3594
|
}>;
|
|
2300
3595
|
title: z.ZodString;
|
|
@@ -2341,10 +3636,10 @@ export declare const chatContract: {
|
|
|
2341
3636
|
}>;
|
|
2342
3637
|
status: z.ZodEnum<{
|
|
2343
3638
|
unknown: "unknown";
|
|
3639
|
+
running: "running";
|
|
2344
3640
|
cancelled: "cancelled";
|
|
2345
|
-
completed: "completed";
|
|
2346
3641
|
failed: "failed";
|
|
2347
|
-
|
|
3642
|
+
completed: "completed";
|
|
2348
3643
|
attention: "attention";
|
|
2349
3644
|
}>;
|
|
2350
3645
|
title: z.ZodString;
|