@brainpilot/protocol 0.1.2 → 0.2.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/domain.d.ts +5518 -176
- package/dist/domain.d.ts.map +1 -1
- package/dist/domain.js +357 -9
- package/dist/domain.js.map +1 -1
- package/dist/events.d.ts +799 -7
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +48 -1
- package/dist/events.js.map +1 -1
- package/dist/http.d.ts +481 -4
- package/dist/http.d.ts.map +1 -1
- package/dist/http.js +35 -1
- package/dist/http.js.map +1 -1
- package/package.json +1 -1
package/dist/http.d.ts
CHANGED
|
@@ -32,10 +32,14 @@ export interface RouteDef {
|
|
|
32
32
|
}
|
|
33
33
|
export declare const HealthResponseSchema: z.ZodObject<{
|
|
34
34
|
status: z.ZodUnion<[z.ZodEnum<["ok", "degraded", "error"]>, z.ZodString]>;
|
|
35
|
+
/** Stable for one Runtime process; changes whenever that process restarts. */
|
|
36
|
+
instanceId: z.ZodOptional<z.ZodString>;
|
|
35
37
|
}, "strip", z.ZodTypeAny, {
|
|
36
38
|
status: string;
|
|
39
|
+
instanceId?: string | undefined;
|
|
37
40
|
}, {
|
|
38
41
|
status: string;
|
|
42
|
+
instanceId?: string | undefined;
|
|
39
43
|
}>;
|
|
40
44
|
export type HealthResponse = z.infer<typeof HealthResponseSchema>;
|
|
41
45
|
export declare const MetricsResponseSchema: z.ZodObject<{
|
|
@@ -68,6 +72,16 @@ export declare const MetricsResponseSchema: z.ZodObject<{
|
|
|
68
72
|
memRatio: number | null;
|
|
69
73
|
}>;
|
|
70
74
|
export type MetricsResponse = z.infer<typeof MetricsResponseSchema>;
|
|
75
|
+
export declare const RuntimeCapabilitySchema: z.ZodEnum<["builtin.monitor"]>;
|
|
76
|
+
export type RuntimeCapability = z.infer<typeof RuntimeCapabilitySchema>;
|
|
77
|
+
export declare const SetRuntimeCapabilitiesRequestSchema: z.ZodObject<{
|
|
78
|
+
capabilities: z.ZodArray<z.ZodEnum<["builtin.monitor"]>, "many">;
|
|
79
|
+
}, "strip", z.ZodTypeAny, {
|
|
80
|
+
capabilities: "builtin.monitor"[];
|
|
81
|
+
}, {
|
|
82
|
+
capabilities: "builtin.monitor"[];
|
|
83
|
+
}>;
|
|
84
|
+
export type SetRuntimeCapabilitiesRequest = z.infer<typeof SetRuntimeCapabilitiesRequestSchema>;
|
|
71
85
|
export declare const CreateSessionRequestSchema: z.ZodObject<{
|
|
72
86
|
/** Optional caller-supplied title; runtime derives a default otherwise. */
|
|
73
87
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -79,16 +93,20 @@ export declare const CreateSessionRequestSchema: z.ZodObject<{
|
|
|
79
93
|
modelId: z.ZodOptional<z.ZodString>;
|
|
80
94
|
/** Per-session domain resources; omitted means full for backward compatibility. */
|
|
81
95
|
domainResources: z.ZodOptional<z.ZodEnum<["full", "base"]>>;
|
|
96
|
+
/** One reasoning effort shared by every agent in this session. */
|
|
97
|
+
thinkingLevel: z.ZodOptional<z.ZodEnum<["off", "low", "medium", "high"]>>;
|
|
82
98
|
}, "strip", z.ZodTypeAny, {
|
|
83
99
|
id?: string | undefined;
|
|
84
100
|
title?: string | undefined;
|
|
85
101
|
domainResources?: "full" | "base" | undefined;
|
|
102
|
+
thinkingLevel?: "off" | "low" | "medium" | "high" | undefined;
|
|
86
103
|
providerId?: string | undefined;
|
|
87
104
|
modelId?: string | undefined;
|
|
88
105
|
}, {
|
|
89
106
|
id?: string | undefined;
|
|
90
107
|
title?: string | undefined;
|
|
91
108
|
domainResources?: "full" | "base" | undefined;
|
|
109
|
+
thinkingLevel?: "off" | "low" | "medium" | "high" | undefined;
|
|
92
110
|
providerId?: string | undefined;
|
|
93
111
|
modelId?: string | undefined;
|
|
94
112
|
}>;
|
|
@@ -101,18 +119,30 @@ export declare const CreateSessionResponseSchema: z.ZodObject<{
|
|
|
101
119
|
createdAt: z.ZodString;
|
|
102
120
|
updatedAt: z.ZodString;
|
|
103
121
|
domainResources: z.ZodOptional<z.ZodEnum<["full", "base"]>>;
|
|
122
|
+
thinkingLevel: z.ZodOptional<z.ZodEnum<["off", "low", "medium", "high"]>>;
|
|
123
|
+
reasoningSupported: z.ZodOptional<z.ZodBoolean>;
|
|
124
|
+
providerId: z.ZodOptional<z.ZodString>;
|
|
125
|
+
modelId: z.ZodOptional<z.ZodString>;
|
|
104
126
|
}, "strip", z.ZodTypeAny, {
|
|
105
127
|
id: string;
|
|
106
128
|
title: string;
|
|
107
129
|
createdAt: string;
|
|
108
130
|
updatedAt: string;
|
|
109
131
|
domainResources?: "full" | "base" | undefined;
|
|
132
|
+
thinkingLevel?: "off" | "low" | "medium" | "high" | undefined;
|
|
133
|
+
reasoningSupported?: boolean | undefined;
|
|
134
|
+
providerId?: string | undefined;
|
|
135
|
+
modelId?: string | undefined;
|
|
110
136
|
}, {
|
|
111
137
|
id: string;
|
|
112
138
|
title: string;
|
|
113
139
|
createdAt: string;
|
|
114
140
|
updatedAt: string;
|
|
115
141
|
domainResources?: "full" | "base" | undefined;
|
|
142
|
+
thinkingLevel?: "off" | "low" | "medium" | "high" | undefined;
|
|
143
|
+
reasoningSupported?: boolean | undefined;
|
|
144
|
+
providerId?: string | undefined;
|
|
145
|
+
modelId?: string | undefined;
|
|
116
146
|
}>>;
|
|
117
147
|
}, "strip", z.ZodTypeAny, {
|
|
118
148
|
id: string;
|
|
@@ -122,6 +152,10 @@ export declare const CreateSessionResponseSchema: z.ZodObject<{
|
|
|
122
152
|
createdAt: string;
|
|
123
153
|
updatedAt: string;
|
|
124
154
|
domainResources?: "full" | "base" | undefined;
|
|
155
|
+
thinkingLevel?: "off" | "low" | "medium" | "high" | undefined;
|
|
156
|
+
reasoningSupported?: boolean | undefined;
|
|
157
|
+
providerId?: string | undefined;
|
|
158
|
+
modelId?: string | undefined;
|
|
125
159
|
} | undefined;
|
|
126
160
|
}, {
|
|
127
161
|
id: string;
|
|
@@ -131,9 +165,24 @@ export declare const CreateSessionResponseSchema: z.ZodObject<{
|
|
|
131
165
|
createdAt: string;
|
|
132
166
|
updatedAt: string;
|
|
133
167
|
domainResources?: "full" | "base" | undefined;
|
|
168
|
+
thinkingLevel?: "off" | "low" | "medium" | "high" | undefined;
|
|
169
|
+
reasoningSupported?: boolean | undefined;
|
|
170
|
+
providerId?: string | undefined;
|
|
171
|
+
modelId?: string | undefined;
|
|
134
172
|
} | undefined;
|
|
135
173
|
}>;
|
|
136
174
|
export type CreateSessionResponse = z.infer<typeof CreateSessionResponseSchema>;
|
|
175
|
+
export declare const UpdateSessionRequestSchema: z.ZodObject<{
|
|
176
|
+
title: z.ZodOptional<z.ZodString>;
|
|
177
|
+
thinkingLevel: z.ZodOptional<z.ZodEnum<["off", "low", "medium", "high"]>>;
|
|
178
|
+
}, "strip", z.ZodTypeAny, {
|
|
179
|
+
title?: string | undefined;
|
|
180
|
+
thinkingLevel?: "off" | "low" | "medium" | "high" | undefined;
|
|
181
|
+
}, {
|
|
182
|
+
title?: string | undefined;
|
|
183
|
+
thinkingLevel?: "off" | "low" | "medium" | "high" | undefined;
|
|
184
|
+
}>;
|
|
185
|
+
export type UpdateSessionRequest = z.infer<typeof UpdateSessionRequestSchema>;
|
|
137
186
|
export declare const ListSessionsResponseSchema: z.ZodObject<{
|
|
138
187
|
sessions: z.ZodArray<z.ZodObject<{
|
|
139
188
|
id: z.ZodString;
|
|
@@ -141,18 +190,30 @@ export declare const ListSessionsResponseSchema: z.ZodObject<{
|
|
|
141
190
|
createdAt: z.ZodString;
|
|
142
191
|
updatedAt: z.ZodString;
|
|
143
192
|
domainResources: z.ZodOptional<z.ZodEnum<["full", "base"]>>;
|
|
193
|
+
thinkingLevel: z.ZodOptional<z.ZodEnum<["off", "low", "medium", "high"]>>;
|
|
194
|
+
reasoningSupported: z.ZodOptional<z.ZodBoolean>;
|
|
195
|
+
providerId: z.ZodOptional<z.ZodString>;
|
|
196
|
+
modelId: z.ZodOptional<z.ZodString>;
|
|
144
197
|
}, "strip", z.ZodTypeAny, {
|
|
145
198
|
id: string;
|
|
146
199
|
title: string;
|
|
147
200
|
createdAt: string;
|
|
148
201
|
updatedAt: string;
|
|
149
202
|
domainResources?: "full" | "base" | undefined;
|
|
203
|
+
thinkingLevel?: "off" | "low" | "medium" | "high" | undefined;
|
|
204
|
+
reasoningSupported?: boolean | undefined;
|
|
205
|
+
providerId?: string | undefined;
|
|
206
|
+
modelId?: string | undefined;
|
|
150
207
|
}, {
|
|
151
208
|
id: string;
|
|
152
209
|
title: string;
|
|
153
210
|
createdAt: string;
|
|
154
211
|
updatedAt: string;
|
|
155
212
|
domainResources?: "full" | "base" | undefined;
|
|
213
|
+
thinkingLevel?: "off" | "low" | "medium" | "high" | undefined;
|
|
214
|
+
reasoningSupported?: boolean | undefined;
|
|
215
|
+
providerId?: string | undefined;
|
|
216
|
+
modelId?: string | undefined;
|
|
156
217
|
}>, "many">;
|
|
157
218
|
}, "strip", z.ZodTypeAny, {
|
|
158
219
|
sessions: {
|
|
@@ -161,6 +222,10 @@ export declare const ListSessionsResponseSchema: z.ZodObject<{
|
|
|
161
222
|
createdAt: string;
|
|
162
223
|
updatedAt: string;
|
|
163
224
|
domainResources?: "full" | "base" | undefined;
|
|
225
|
+
thinkingLevel?: "off" | "low" | "medium" | "high" | undefined;
|
|
226
|
+
reasoningSupported?: boolean | undefined;
|
|
227
|
+
providerId?: string | undefined;
|
|
228
|
+
modelId?: string | undefined;
|
|
164
229
|
}[];
|
|
165
230
|
}, {
|
|
166
231
|
sessions: {
|
|
@@ -169,6 +234,10 @@ export declare const ListSessionsResponseSchema: z.ZodObject<{
|
|
|
169
234
|
createdAt: string;
|
|
170
235
|
updatedAt: string;
|
|
171
236
|
domainResources?: "full" | "base" | undefined;
|
|
237
|
+
thinkingLevel?: "off" | "low" | "medium" | "high" | undefined;
|
|
238
|
+
reasoningSupported?: boolean | undefined;
|
|
239
|
+
providerId?: string | undefined;
|
|
240
|
+
modelId?: string | undefined;
|
|
172
241
|
}[];
|
|
173
242
|
}>;
|
|
174
243
|
export type ListSessionsResponse = z.infer<typeof ListSessionsResponseSchema>;
|
|
@@ -178,18 +247,30 @@ export declare const GetSessionResponseSchema: z.ZodObject<{
|
|
|
178
247
|
createdAt: z.ZodString;
|
|
179
248
|
updatedAt: z.ZodString;
|
|
180
249
|
domainResources: z.ZodOptional<z.ZodEnum<["full", "base"]>>;
|
|
250
|
+
thinkingLevel: z.ZodOptional<z.ZodEnum<["off", "low", "medium", "high"]>>;
|
|
251
|
+
reasoningSupported: z.ZodOptional<z.ZodBoolean>;
|
|
252
|
+
providerId: z.ZodOptional<z.ZodString>;
|
|
253
|
+
modelId: z.ZodOptional<z.ZodString>;
|
|
181
254
|
}, "strip", z.ZodTypeAny, {
|
|
182
255
|
id: string;
|
|
183
256
|
title: string;
|
|
184
257
|
createdAt: string;
|
|
185
258
|
updatedAt: string;
|
|
186
259
|
domainResources?: "full" | "base" | undefined;
|
|
260
|
+
thinkingLevel?: "off" | "low" | "medium" | "high" | undefined;
|
|
261
|
+
reasoningSupported?: boolean | undefined;
|
|
262
|
+
providerId?: string | undefined;
|
|
263
|
+
modelId?: string | undefined;
|
|
187
264
|
}, {
|
|
188
265
|
id: string;
|
|
189
266
|
title: string;
|
|
190
267
|
createdAt: string;
|
|
191
268
|
updatedAt: string;
|
|
192
269
|
domainResources?: "full" | "base" | undefined;
|
|
270
|
+
thinkingLevel?: "off" | "low" | "medium" | "high" | undefined;
|
|
271
|
+
reasoningSupported?: boolean | undefined;
|
|
272
|
+
providerId?: string | undefined;
|
|
273
|
+
modelId?: string | undefined;
|
|
193
274
|
}>;
|
|
194
275
|
export type GetSessionResponse = z.infer<typeof GetSessionResponseSchema>;
|
|
195
276
|
export declare const DeleteSessionResponseSchema: z.ZodObject<{
|
|
@@ -214,6 +295,13 @@ export declare const GetSessionStateResponseSchema: z.ZodObject<{
|
|
|
214
295
|
runId: string | null;
|
|
215
296
|
active: boolean;
|
|
216
297
|
}>;
|
|
298
|
+
workState: z.ZodObject<{
|
|
299
|
+
active: z.ZodBoolean;
|
|
300
|
+
}, "strip", z.ZodTypeAny, {
|
|
301
|
+
active: boolean;
|
|
302
|
+
}, {
|
|
303
|
+
active: boolean;
|
|
304
|
+
}>;
|
|
217
305
|
agents: z.ZodArray<z.ZodObject<{
|
|
218
306
|
name: z.ZodString;
|
|
219
307
|
status: z.ZodString;
|
|
@@ -297,6 +385,49 @@ export declare const GetSessionStateResponseSchema: z.ZodObject<{
|
|
|
297
385
|
}[] | undefined;
|
|
298
386
|
activeToolExecutions?: string[] | undefined;
|
|
299
387
|
}>, "many">;
|
|
388
|
+
subagents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
389
|
+
id: z.ZodString;
|
|
390
|
+
parentAgent: z.ZodString;
|
|
391
|
+
rootRunId: z.ZodNullable<z.ZodString>;
|
|
392
|
+
profile: z.ZodString;
|
|
393
|
+
label: z.ZodString;
|
|
394
|
+
task: z.ZodString;
|
|
395
|
+
status: z.ZodEnum<["queued", "waiting_for_capacity", "running", "succeeded", "blocked", "failed", "cancelled", "timed_out", "interrupted"]>;
|
|
396
|
+
startedAt: z.ZodOptional<z.ZodString>;
|
|
397
|
+
finishedAt: z.ZodOptional<z.ZodString>;
|
|
398
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
399
|
+
resultSummary: z.ZodOptional<z.ZodString>;
|
|
400
|
+
artifacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
401
|
+
error: z.ZodOptional<z.ZodString>;
|
|
402
|
+
}, "strip", z.ZodTypeAny, {
|
|
403
|
+
status: "running" | "queued" | "waiting_for_capacity" | "succeeded" | "blocked" | "failed" | "cancelled" | "timed_out" | "interrupted";
|
|
404
|
+
id: string;
|
|
405
|
+
task: string;
|
|
406
|
+
parentAgent: string;
|
|
407
|
+
rootRunId: string | null;
|
|
408
|
+
profile: string;
|
|
409
|
+
label: string;
|
|
410
|
+
error?: string | undefined;
|
|
411
|
+
startedAt?: string | undefined;
|
|
412
|
+
finishedAt?: string | undefined;
|
|
413
|
+
durationMs?: number | undefined;
|
|
414
|
+
resultSummary?: string | undefined;
|
|
415
|
+
artifacts?: string[] | undefined;
|
|
416
|
+
}, {
|
|
417
|
+
status: "running" | "queued" | "waiting_for_capacity" | "succeeded" | "blocked" | "failed" | "cancelled" | "timed_out" | "interrupted";
|
|
418
|
+
id: string;
|
|
419
|
+
task: string;
|
|
420
|
+
parentAgent: string;
|
|
421
|
+
rootRunId: string | null;
|
|
422
|
+
profile: string;
|
|
423
|
+
label: string;
|
|
424
|
+
error?: string | undefined;
|
|
425
|
+
startedAt?: string | undefined;
|
|
426
|
+
finishedAt?: string | undefined;
|
|
427
|
+
durationMs?: number | undefined;
|
|
428
|
+
resultSummary?: string | undefined;
|
|
429
|
+
artifacts?: string[] | undefined;
|
|
430
|
+
}>, "many">>;
|
|
300
431
|
lastActivityTs: z.ZodString;
|
|
301
432
|
domainResources: z.ZodOptional<z.ZodEnum<["full", "base"]>>;
|
|
302
433
|
tokenUsage: z.ZodOptional<z.ZodObject<{
|
|
@@ -374,6 +505,9 @@ export declare const GetSessionStateResponseSchema: z.ZodObject<{
|
|
|
374
505
|
runId: string | null;
|
|
375
506
|
active: boolean;
|
|
376
507
|
};
|
|
508
|
+
workState: {
|
|
509
|
+
active: boolean;
|
|
510
|
+
};
|
|
377
511
|
agents: {
|
|
378
512
|
status: string;
|
|
379
513
|
name: string;
|
|
@@ -397,6 +531,21 @@ export declare const GetSessionStateResponseSchema: z.ZodObject<{
|
|
|
397
531
|
}[];
|
|
398
532
|
lastActivityTs: string;
|
|
399
533
|
domainResources?: "full" | "base" | undefined;
|
|
534
|
+
subagents?: {
|
|
535
|
+
status: "running" | "queued" | "waiting_for_capacity" | "succeeded" | "blocked" | "failed" | "cancelled" | "timed_out" | "interrupted";
|
|
536
|
+
id: string;
|
|
537
|
+
task: string;
|
|
538
|
+
parentAgent: string;
|
|
539
|
+
rootRunId: string | null;
|
|
540
|
+
profile: string;
|
|
541
|
+
label: string;
|
|
542
|
+
error?: string | undefined;
|
|
543
|
+
startedAt?: string | undefined;
|
|
544
|
+
finishedAt?: string | undefined;
|
|
545
|
+
durationMs?: number | undefined;
|
|
546
|
+
resultSummary?: string | undefined;
|
|
547
|
+
artifacts?: string[] | undefined;
|
|
548
|
+
}[] | undefined;
|
|
400
549
|
tokenUsage?: {
|
|
401
550
|
total: {
|
|
402
551
|
input: number;
|
|
@@ -418,6 +567,9 @@ export declare const GetSessionStateResponseSchema: z.ZodObject<{
|
|
|
418
567
|
runId: string | null;
|
|
419
568
|
active: boolean;
|
|
420
569
|
};
|
|
570
|
+
workState: {
|
|
571
|
+
active: boolean;
|
|
572
|
+
};
|
|
421
573
|
agents: {
|
|
422
574
|
status: string;
|
|
423
575
|
name: string;
|
|
@@ -441,6 +593,21 @@ export declare const GetSessionStateResponseSchema: z.ZodObject<{
|
|
|
441
593
|
}[];
|
|
442
594
|
lastActivityTs: string;
|
|
443
595
|
domainResources?: "full" | "base" | undefined;
|
|
596
|
+
subagents?: {
|
|
597
|
+
status: "running" | "queued" | "waiting_for_capacity" | "succeeded" | "blocked" | "failed" | "cancelled" | "timed_out" | "interrupted";
|
|
598
|
+
id: string;
|
|
599
|
+
task: string;
|
|
600
|
+
parentAgent: string;
|
|
601
|
+
rootRunId: string | null;
|
|
602
|
+
profile: string;
|
|
603
|
+
label: string;
|
|
604
|
+
error?: string | undefined;
|
|
605
|
+
startedAt?: string | undefined;
|
|
606
|
+
finishedAt?: string | undefined;
|
|
607
|
+
durationMs?: number | undefined;
|
|
608
|
+
resultSummary?: string | undefined;
|
|
609
|
+
artifacts?: string[] | undefined;
|
|
610
|
+
}[] | undefined;
|
|
444
611
|
tokenUsage?: {
|
|
445
612
|
total: {
|
|
446
613
|
input: number;
|
|
@@ -674,8 +841,8 @@ export declare const GetSessionStatsResponseSchema: z.ZodObject<{
|
|
|
674
841
|
status: "aborted" | "error" | "ok";
|
|
675
842
|
runId: string;
|
|
676
843
|
startedAt: number;
|
|
677
|
-
agentName: string;
|
|
678
844
|
finishedAt: number;
|
|
845
|
+
agentName: string;
|
|
679
846
|
delta: {
|
|
680
847
|
tokens: {
|
|
681
848
|
input: number;
|
|
@@ -696,8 +863,8 @@ export declare const GetSessionStatsResponseSchema: z.ZodObject<{
|
|
|
696
863
|
status: "aborted" | "error" | "ok";
|
|
697
864
|
runId: string;
|
|
698
865
|
startedAt: number;
|
|
699
|
-
agentName: string;
|
|
700
866
|
finishedAt: number;
|
|
867
|
+
agentName: string;
|
|
701
868
|
delta: {
|
|
702
869
|
tokens: {
|
|
703
870
|
input: number;
|
|
@@ -753,8 +920,8 @@ export declare const GetSessionStatsResponseSchema: z.ZodObject<{
|
|
|
753
920
|
status: "aborted" | "error" | "ok";
|
|
754
921
|
runId: string;
|
|
755
922
|
startedAt: number;
|
|
756
|
-
agentName: string;
|
|
757
923
|
finishedAt: number;
|
|
924
|
+
agentName: string;
|
|
758
925
|
delta: {
|
|
759
926
|
tokens: {
|
|
760
927
|
input: number;
|
|
@@ -810,8 +977,8 @@ export declare const GetSessionStatsResponseSchema: z.ZodObject<{
|
|
|
810
977
|
status: "aborted" | "error" | "ok";
|
|
811
978
|
runId: string;
|
|
812
979
|
startedAt: number;
|
|
813
|
-
agentName: string;
|
|
814
980
|
finishedAt: number;
|
|
981
|
+
agentName: string;
|
|
815
982
|
delta: {
|
|
816
983
|
tokens: {
|
|
817
984
|
input: number;
|
|
@@ -831,6 +998,115 @@ export declare const GetSessionStatsResponseSchema: z.ZodObject<{
|
|
|
831
998
|
}[];
|
|
832
999
|
}>;
|
|
833
1000
|
export type GetSessionStatsResponse = z.infer<typeof GetSessionStatsResponseSchema>;
|
|
1001
|
+
export declare const TraceDependencyDecisionRequestSchema: z.ZodObject<{
|
|
1002
|
+
decision: z.ZodEnum<["accept", "reject"]>;
|
|
1003
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1004
|
+
}, "strip", z.ZodTypeAny, {
|
|
1005
|
+
decision: "accept" | "reject";
|
|
1006
|
+
reason?: string | undefined;
|
|
1007
|
+
}, {
|
|
1008
|
+
decision: "accept" | "reject";
|
|
1009
|
+
reason?: string | undefined;
|
|
1010
|
+
}>;
|
|
1011
|
+
export type TraceDependencyDecisionRequest = z.infer<typeof TraceDependencyDecisionRequestSchema>;
|
|
1012
|
+
export declare const TraceDependencyDecisionResponseSchema: z.ZodObject<{
|
|
1013
|
+
id: z.ZodString;
|
|
1014
|
+
prerequisiteId: z.ZodString;
|
|
1015
|
+
dependentId: z.ZodString;
|
|
1016
|
+
origin: z.ZodEnum<["trace", "agent_report", "explicit", "host", "user", "legacy"]>;
|
|
1017
|
+
confidence: z.ZodEnum<["low", "medium", "high"]>;
|
|
1018
|
+
state: z.ZodEnum<["proposed", "active", "rejected"]>;
|
|
1019
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1020
|
+
evidence: z.ZodArray<z.ZodObject<{
|
|
1021
|
+
source: z.ZodString;
|
|
1022
|
+
kind: z.ZodString;
|
|
1023
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
1024
|
+
artifactId: z.ZodOptional<z.ZodString>;
|
|
1025
|
+
reportId: z.ZodOptional<z.ZodString>;
|
|
1026
|
+
path: z.ZodOptional<z.ZodString>;
|
|
1027
|
+
checkpointId: z.ZodOptional<z.ZodString>;
|
|
1028
|
+
baseBlobId: z.ZodOptional<z.ZodString>;
|
|
1029
|
+
resultBlobId: z.ZodOptional<z.ZodString>;
|
|
1030
|
+
deterministic: z.ZodOptional<z.ZodBoolean>;
|
|
1031
|
+
}, "strip", z.ZodTypeAny, {
|
|
1032
|
+
kind: string;
|
|
1033
|
+
source: string;
|
|
1034
|
+
path?: string | undefined;
|
|
1035
|
+
checkpointId?: string | undefined;
|
|
1036
|
+
detail?: string | undefined;
|
|
1037
|
+
artifactId?: string | undefined;
|
|
1038
|
+
reportId?: string | undefined;
|
|
1039
|
+
baseBlobId?: string | undefined;
|
|
1040
|
+
resultBlobId?: string | undefined;
|
|
1041
|
+
deterministic?: boolean | undefined;
|
|
1042
|
+
}, {
|
|
1043
|
+
kind: string;
|
|
1044
|
+
source: string;
|
|
1045
|
+
path?: string | undefined;
|
|
1046
|
+
checkpointId?: string | undefined;
|
|
1047
|
+
detail?: string | undefined;
|
|
1048
|
+
artifactId?: string | undefined;
|
|
1049
|
+
reportId?: string | undefined;
|
|
1050
|
+
baseBlobId?: string | undefined;
|
|
1051
|
+
resultBlobId?: string | undefined;
|
|
1052
|
+
deterministic?: boolean | undefined;
|
|
1053
|
+
}>, "many">;
|
|
1054
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
1055
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
1056
|
+
}, "strip", z.ZodTypeAny, {
|
|
1057
|
+
id: string;
|
|
1058
|
+
origin: "trace" | "user" | "host" | "agent_report" | "explicit" | "legacy";
|
|
1059
|
+
confidence: "low" | "medium" | "high";
|
|
1060
|
+
prerequisiteId: string;
|
|
1061
|
+
dependentId: string;
|
|
1062
|
+
state: "active" | "rejected" | "proposed";
|
|
1063
|
+
evidence: {
|
|
1064
|
+
kind: string;
|
|
1065
|
+
source: string;
|
|
1066
|
+
path?: string | undefined;
|
|
1067
|
+
checkpointId?: string | undefined;
|
|
1068
|
+
detail?: string | undefined;
|
|
1069
|
+
artifactId?: string | undefined;
|
|
1070
|
+
reportId?: string | undefined;
|
|
1071
|
+
baseBlobId?: string | undefined;
|
|
1072
|
+
resultBlobId?: string | undefined;
|
|
1073
|
+
deterministic?: boolean | undefined;
|
|
1074
|
+
}[];
|
|
1075
|
+
createdAt?: string | undefined;
|
|
1076
|
+
updatedAt?: string | undefined;
|
|
1077
|
+
reason?: string | undefined;
|
|
1078
|
+
}, {
|
|
1079
|
+
id: string;
|
|
1080
|
+
origin: "trace" | "user" | "host" | "agent_report" | "explicit" | "legacy";
|
|
1081
|
+
confidence: "low" | "medium" | "high";
|
|
1082
|
+
prerequisiteId: string;
|
|
1083
|
+
dependentId: string;
|
|
1084
|
+
state: "active" | "rejected" | "proposed";
|
|
1085
|
+
evidence: {
|
|
1086
|
+
kind: string;
|
|
1087
|
+
source: string;
|
|
1088
|
+
path?: string | undefined;
|
|
1089
|
+
checkpointId?: string | undefined;
|
|
1090
|
+
detail?: string | undefined;
|
|
1091
|
+
artifactId?: string | undefined;
|
|
1092
|
+
reportId?: string | undefined;
|
|
1093
|
+
baseBlobId?: string | undefined;
|
|
1094
|
+
resultBlobId?: string | undefined;
|
|
1095
|
+
deterministic?: boolean | undefined;
|
|
1096
|
+
}[];
|
|
1097
|
+
createdAt?: string | undefined;
|
|
1098
|
+
updatedAt?: string | undefined;
|
|
1099
|
+
reason?: string | undefined;
|
|
1100
|
+
}>;
|
|
1101
|
+
export type TraceDependencyDecisionResponse = z.infer<typeof TraceDependencyDecisionResponseSchema>;
|
|
1102
|
+
export declare const TraceStateTokenRequestSchema: z.ZodObject<{
|
|
1103
|
+
stateToken: z.ZodString;
|
|
1104
|
+
}, "strip", z.ZodTypeAny, {
|
|
1105
|
+
stateToken: string;
|
|
1106
|
+
}, {
|
|
1107
|
+
stateToken: string;
|
|
1108
|
+
}>;
|
|
1109
|
+
export type TraceStateTokenRequest = z.infer<typeof TraceStateTokenRequestSchema>;
|
|
834
1110
|
/** A normal user message injected into the session. */
|
|
835
1111
|
export declare const SendMessageContentSchema: z.ZodObject<{
|
|
836
1112
|
content: z.ZodString;
|
|
@@ -947,12 +1223,16 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
|
947
1223
|
accepted: z.ZodBoolean;
|
|
948
1224
|
/** Run id started/queued for this message, if synchronously known. */
|
|
949
1225
|
runId: z.ZodOptional<z.ZodString>;
|
|
1226
|
+
/** True when Pi accepted the message into an in-flight follow-up queue. */
|
|
1227
|
+
queued: z.ZodOptional<z.ZodBoolean>;
|
|
950
1228
|
}, "strip", z.ZodTypeAny, {
|
|
951
1229
|
accepted: boolean;
|
|
952
1230
|
runId?: string | undefined;
|
|
1231
|
+
queued?: boolean | undefined;
|
|
953
1232
|
}, {
|
|
954
1233
|
accepted: boolean;
|
|
955
1234
|
runId?: string | undefined;
|
|
1235
|
+
queued?: boolean | undefined;
|
|
956
1236
|
}>;
|
|
957
1237
|
export type SendMessageResponse = z.infer<typeof SendMessageResponseSchema>;
|
|
958
1238
|
/** Schema for a single decoded SSE frame payload. Byte-level proxies do not
|
|
@@ -962,6 +1242,7 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
962
1242
|
run_id: z.ZodOptional<z.ZodString>;
|
|
963
1243
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
964
1244
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
1245
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
965
1246
|
_ts: z.ZodOptional<z.ZodString>;
|
|
966
1247
|
type: z.ZodLiteral<"TEXT_MESSAGE_START">;
|
|
967
1248
|
message_id: z.ZodString;
|
|
@@ -971,6 +1252,7 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
971
1252
|
run_id: z.ZodOptional<z.ZodString>;
|
|
972
1253
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
973
1254
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
1255
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
974
1256
|
_ts: z.ZodOptional<z.ZodString>;
|
|
975
1257
|
type: z.ZodLiteral<"TEXT_MESSAGE_START">;
|
|
976
1258
|
message_id: z.ZodString;
|
|
@@ -980,6 +1262,7 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
980
1262
|
run_id: z.ZodOptional<z.ZodString>;
|
|
981
1263
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
982
1264
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
1265
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
983
1266
|
_ts: z.ZodOptional<z.ZodString>;
|
|
984
1267
|
type: z.ZodLiteral<"TEXT_MESSAGE_START">;
|
|
985
1268
|
message_id: z.ZodString;
|
|
@@ -989,6 +1272,7 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
989
1272
|
run_id: z.ZodOptional<z.ZodString>;
|
|
990
1273
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
991
1274
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
1275
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
992
1276
|
_ts: z.ZodOptional<z.ZodString>;
|
|
993
1277
|
type: z.ZodLiteral<"TEXT_MESSAGE_CONTENT">;
|
|
994
1278
|
message_id: z.ZodString;
|
|
@@ -998,6 +1282,7 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
998
1282
|
run_id: z.ZodOptional<z.ZodString>;
|
|
999
1283
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
1000
1284
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
1285
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1001
1286
|
_ts: z.ZodOptional<z.ZodString>;
|
|
1002
1287
|
type: z.ZodLiteral<"TEXT_MESSAGE_CONTENT">;
|
|
1003
1288
|
message_id: z.ZodString;
|
|
@@ -1007,6 +1292,7 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1007
1292
|
run_id: z.ZodOptional<z.ZodString>;
|
|
1008
1293
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
1009
1294
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
1295
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1010
1296
|
_ts: z.ZodOptional<z.ZodString>;
|
|
1011
1297
|
type: z.ZodLiteral<"TEXT_MESSAGE_CONTENT">;
|
|
1012
1298
|
message_id: z.ZodString;
|
|
@@ -1016,6 +1302,7 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1016
1302
|
run_id: z.ZodOptional<z.ZodString>;
|
|
1017
1303
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
1018
1304
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
1305
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1019
1306
|
_ts: z.ZodOptional<z.ZodString>;
|
|
1020
1307
|
type: z.ZodLiteral<"TEXT_MESSAGE_END">;
|
|
1021
1308
|
message_id: z.ZodString;
|
|
@@ -1024,6 +1311,7 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1024
1311
|
run_id: z.ZodOptional<z.ZodString>;
|
|
1025
1312
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
1026
1313
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
1314
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1027
1315
|
_ts: z.ZodOptional<z.ZodString>;
|
|
1028
1316
|
type: z.ZodLiteral<"TEXT_MESSAGE_END">;
|
|
1029
1317
|
message_id: z.ZodString;
|
|
@@ -1032,6 +1320,7 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1032
1320
|
run_id: z.ZodOptional<z.ZodString>;
|
|
1033
1321
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
1034
1322
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
1323
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1035
1324
|
_ts: z.ZodOptional<z.ZodString>;
|
|
1036
1325
|
type: z.ZodLiteral<"TEXT_MESSAGE_END">;
|
|
1037
1326
|
message_id: z.ZodString;
|
|
@@ -1040,6 +1329,7 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1040
1329
|
run_id: z.ZodOptional<z.ZodString>;
|
|
1041
1330
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
1042
1331
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
1332
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1043
1333
|
_ts: z.ZodOptional<z.ZodString>;
|
|
1044
1334
|
type: z.ZodLiteral<"TEXT_MESSAGE_CHUNK">;
|
|
1045
1335
|
message_id: z.ZodString;
|
|
@@ -1050,6 +1340,7 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1050
1340
|
run_id: z.ZodOptional<z.ZodString>;
|
|
1051
1341
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
1052
1342
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
1343
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1053
1344
|
_ts: z.ZodOptional<z.ZodString>;
|
|
1054
1345
|
type: z.ZodLiteral<"TEXT_MESSAGE_CHUNK">;
|
|
1055
1346
|
message_id: z.ZodString;
|
|
@@ -1060,6 +1351,7 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1060
1351
|
run_id: z.ZodOptional<z.ZodString>;
|
|
1061
1352
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
1062
1353
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
1354
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1063
1355
|
_ts: z.ZodOptional<z.ZodString>;
|
|
1064
1356
|
type: z.ZodLiteral<"TEXT_MESSAGE_CHUNK">;
|
|
1065
1357
|
message_id: z.ZodString;
|
|
@@ -1070,6 +1362,7 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1070
1362
|
run_id: z.ZodOptional<z.ZodString>;
|
|
1071
1363
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
1072
1364
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
1365
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1073
1366
|
_ts: z.ZodOptional<z.ZodString>;
|
|
1074
1367
|
type: z.ZodLiteral<"TOOL_CALL_START">;
|
|
1075
1368
|
tool_call_id: z.ZodString;
|
|
@@ -1080,6 +1373,7 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1080
1373
|
run_id: z.ZodOptional<z.ZodString>;
|
|
1081
1374
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
1082
1375
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
1376
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1083
1377
|
_ts: z.ZodOptional<z.ZodString>;
|
|
1084
1378
|
type: z.ZodLiteral<"TOOL_CALL_START">;
|
|
1085
1379
|
tool_call_id: z.ZodString;
|
|
@@ -1090,6 +1384,7 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1090
1384
|
run_id: z.ZodOptional<z.ZodString>;
|
|
1091
1385
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
1092
1386
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
1387
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1093
1388
|
_ts: z.ZodOptional<z.ZodString>;
|
|
1094
1389
|
type: z.ZodLiteral<"TOOL_CALL_START">;
|
|
1095
1390
|
tool_call_id: z.ZodString;
|
|
@@ -1100,6 +1395,7 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1100
1395
|
run_id: z.ZodOptional<z.ZodString>;
|
|
1101
1396
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
1102
1397
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
1398
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1103
1399
|
_ts: z.ZodOptional<z.ZodString>;
|
|
1104
1400
|
type: z.ZodLiteral<"TOOL_CALL_ARGS">;
|
|
1105
1401
|
tool_call_id: z.ZodString;
|
|
@@ -1109,6 +1405,7 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1109
1405
|
run_id: z.ZodOptional<z.ZodString>;
|
|
1110
1406
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
1111
1407
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
1408
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1112
1409
|
_ts: z.ZodOptional<z.ZodString>;
|
|
1113
1410
|
type: z.ZodLiteral<"TOOL_CALL_ARGS">;
|
|
1114
1411
|
tool_call_id: z.ZodString;
|
|
@@ -1118,6 +1415,7 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1118
1415
|
run_id: z.ZodOptional<z.ZodString>;
|
|
1119
1416
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
1120
1417
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
1418
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1121
1419
|
_ts: z.ZodOptional<z.ZodString>;
|
|
1122
1420
|
type: z.ZodLiteral<"TOOL_CALL_ARGS">;
|
|
1123
1421
|
tool_call_id: z.ZodString;
|
|
@@ -1127,6 +1425,7 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1127
1425
|
run_id: z.ZodOptional<z.ZodString>;
|
|
1128
1426
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
1129
1427
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
1428
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1130
1429
|
_ts: z.ZodOptional<z.ZodString>;
|
|
1131
1430
|
type: z.ZodLiteral<"TOOL_CALL_END">;
|
|
1132
1431
|
tool_call_id: z.ZodString;
|
|
@@ -1138,6 +1437,7 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1138
1437
|
run_id: z.ZodOptional<z.ZodString>;
|
|
1139
1438
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
1140
1439
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
1440
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1141
1441
|
_ts: z.ZodOptional<z.ZodString>;
|
|
1142
1442
|
type: z.ZodLiteral<"TOOL_CALL_END">;
|
|
1143
1443
|
tool_call_id: z.ZodString;
|
|
@@ -1149,6 +1449,7 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1149
1449
|
run_id: z.ZodOptional<z.ZodString>;
|
|
1150
1450
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
1151
1451
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
1452
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1152
1453
|
_ts: z.ZodOptional<z.ZodString>;
|
|
1153
1454
|
type: z.ZodLiteral<"TOOL_CALL_END">;
|
|
1154
1455
|
tool_call_id: z.ZodString;
|
|
@@ -1160,6 +1461,7 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1160
1461
|
run_id: z.ZodOptional<z.ZodString>;
|
|
1161
1462
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
1162
1463
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
1464
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1163
1465
|
_ts: z.ZodOptional<z.ZodString>;
|
|
1164
1466
|
type: z.ZodLiteral<"TOOL_CALL_RESULT">;
|
|
1165
1467
|
tool_call_id: z.ZodString;
|
|
@@ -1171,6 +1473,7 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1171
1473
|
run_id: z.ZodOptional<z.ZodString>;
|
|
1172
1474
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
1173
1475
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
1476
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1174
1477
|
_ts: z.ZodOptional<z.ZodString>;
|
|
1175
1478
|
type: z.ZodLiteral<"TOOL_CALL_RESULT">;
|
|
1176
1479
|
tool_call_id: z.ZodString;
|
|
@@ -1182,6 +1485,7 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1182
1485
|
run_id: z.ZodOptional<z.ZodString>;
|
|
1183
1486
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
1184
1487
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
1488
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1185
1489
|
_ts: z.ZodOptional<z.ZodString>;
|
|
1186
1490
|
type: z.ZodLiteral<"TOOL_CALL_RESULT">;
|
|
1187
1491
|
tool_call_id: z.ZodString;
|
|
@@ -1193,6 +1497,7 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1193
1497
|
run_id: z.ZodOptional<z.ZodString>;
|
|
1194
1498
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
1195
1499
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
1500
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1196
1501
|
_ts: z.ZodOptional<z.ZodString>;
|
|
1197
1502
|
type: z.ZodLiteral<"REASONING_START">;
|
|
1198
1503
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -1200,6 +1505,7 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1200
1505
|
run_id: z.ZodOptional<z.ZodString>;
|
|
1201
1506
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
1202
1507
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
1508
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1203
1509
|
_ts: z.ZodOptional<z.ZodString>;
|
|
1204
1510
|
type: z.ZodLiteral<"REASONING_START">;
|
|
1205
1511
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
@@ -1207,6 +1513,7 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1207
1513
|
run_id: z.ZodOptional<z.ZodString>;
|
|
1208
1514
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
1209
1515
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
1516
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1210
1517
|
_ts: z.ZodOptional<z.ZodString>;
|
|
1211
1518
|
type: z.ZodLiteral<"REASONING_START">;
|
|
1212
1519
|
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
@@ -1214,6 +1521,7 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1214
1521
|
run_id: z.ZodOptional<z.ZodString>;
|
|
1215
1522
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
1216
1523
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
1524
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1217
1525
|
_ts: z.ZodOptional<z.ZodString>;
|
|
1218
1526
|
type: z.ZodLiteral<"REASONING_END">;
|
|
1219
1527
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -1221,6 +1529,7 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1221
1529
|
run_id: z.ZodOptional<z.ZodString>;
|
|
1222
1530
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
1223
1531
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
1532
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1224
1533
|
_ts: z.ZodOptional<z.ZodString>;
|
|
1225
1534
|
type: z.ZodLiteral<"REASONING_END">;
|
|
1226
1535
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
@@ -1228,6 +1537,7 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1228
1537
|
run_id: z.ZodOptional<z.ZodString>;
|
|
1229
1538
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
1230
1539
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
1540
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1231
1541
|
_ts: z.ZodOptional<z.ZodString>;
|
|
1232
1542
|
type: z.ZodLiteral<"REASONING_END">;
|
|
1233
1543
|
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
@@ -1235,6 +1545,7 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1235
1545
|
run_id: z.ZodOptional<z.ZodString>;
|
|
1236
1546
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
1237
1547
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
1548
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1238
1549
|
_ts: z.ZodOptional<z.ZodString>;
|
|
1239
1550
|
type: z.ZodLiteral<"REASONING_MESSAGE_START">;
|
|
1240
1551
|
message_id: z.ZodString;
|
|
@@ -1243,6 +1554,7 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1243
1554
|
run_id: z.ZodOptional<z.ZodString>;
|
|
1244
1555
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
1245
1556
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
1557
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1246
1558
|
_ts: z.ZodOptional<z.ZodString>;
|
|
1247
1559
|
type: z.ZodLiteral<"REASONING_MESSAGE_START">;
|
|
1248
1560
|
message_id: z.ZodString;
|
|
@@ -1251,6 +1563,7 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1251
1563
|
run_id: z.ZodOptional<z.ZodString>;
|
|
1252
1564
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
1253
1565
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
1566
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1254
1567
|
_ts: z.ZodOptional<z.ZodString>;
|
|
1255
1568
|
type: z.ZodLiteral<"REASONING_MESSAGE_START">;
|
|
1256
1569
|
message_id: z.ZodString;
|
|
@@ -1259,6 +1572,7 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1259
1572
|
run_id: z.ZodOptional<z.ZodString>;
|
|
1260
1573
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
1261
1574
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
1575
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1262
1576
|
_ts: z.ZodOptional<z.ZodString>;
|
|
1263
1577
|
type: z.ZodLiteral<"REASONING_MESSAGE_CONTENT">;
|
|
1264
1578
|
message_id: z.ZodString;
|
|
@@ -1268,6 +1582,7 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1268
1582
|
run_id: z.ZodOptional<z.ZodString>;
|
|
1269
1583
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
1270
1584
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
1585
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1271
1586
|
_ts: z.ZodOptional<z.ZodString>;
|
|
1272
1587
|
type: z.ZodLiteral<"REASONING_MESSAGE_CONTENT">;
|
|
1273
1588
|
message_id: z.ZodString;
|
|
@@ -1277,6 +1592,7 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1277
1592
|
run_id: z.ZodOptional<z.ZodString>;
|
|
1278
1593
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
1279
1594
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
1595
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1280
1596
|
_ts: z.ZodOptional<z.ZodString>;
|
|
1281
1597
|
type: z.ZodLiteral<"REASONING_MESSAGE_CONTENT">;
|
|
1282
1598
|
message_id: z.ZodString;
|
|
@@ -1286,6 +1602,7 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1286
1602
|
run_id: z.ZodOptional<z.ZodString>;
|
|
1287
1603
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
1288
1604
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
1605
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1289
1606
|
_ts: z.ZodOptional<z.ZodString>;
|
|
1290
1607
|
type: z.ZodLiteral<"REASONING_MESSAGE_END">;
|
|
1291
1608
|
message_id: z.ZodString;
|
|
@@ -1294,6 +1611,7 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1294
1611
|
run_id: z.ZodOptional<z.ZodString>;
|
|
1295
1612
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
1296
1613
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
1614
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1297
1615
|
_ts: z.ZodOptional<z.ZodString>;
|
|
1298
1616
|
type: z.ZodLiteral<"REASONING_MESSAGE_END">;
|
|
1299
1617
|
message_id: z.ZodString;
|
|
@@ -1302,6 +1620,7 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1302
1620
|
run_id: z.ZodOptional<z.ZodString>;
|
|
1303
1621
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
1304
1622
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
1623
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1305
1624
|
_ts: z.ZodOptional<z.ZodString>;
|
|
1306
1625
|
type: z.ZodLiteral<"REASONING_MESSAGE_END">;
|
|
1307
1626
|
message_id: z.ZodString;
|
|
@@ -1312,6 +1631,7 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1312
1631
|
session_id: z.ZodOptional<z.ZodString>;
|
|
1313
1632
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
1314
1633
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
1634
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1315
1635
|
_ts: z.ZodOptional<z.ZodString>;
|
|
1316
1636
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1317
1637
|
type: z.ZodLiteral<"RUN_STARTED">;
|
|
@@ -1320,6 +1640,7 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1320
1640
|
session_id: z.ZodOptional<z.ZodString>;
|
|
1321
1641
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
1322
1642
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
1643
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1323
1644
|
_ts: z.ZodOptional<z.ZodString>;
|
|
1324
1645
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1325
1646
|
type: z.ZodLiteral<"RUN_STARTED">;
|
|
@@ -1328,6 +1649,7 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1328
1649
|
session_id: z.ZodOptional<z.ZodString>;
|
|
1329
1650
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
1330
1651
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
1652
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1331
1653
|
_ts: z.ZodOptional<z.ZodString>;
|
|
1332
1654
|
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
1333
1655
|
type: z.ZodLiteral<"RUN_FINISHED">;
|
|
@@ -1336,6 +1658,7 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1336
1658
|
session_id: z.ZodOptional<z.ZodString>;
|
|
1337
1659
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
1338
1660
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
1661
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1339
1662
|
_ts: z.ZodOptional<z.ZodString>;
|
|
1340
1663
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1341
1664
|
type: z.ZodLiteral<"RUN_FINISHED">;
|
|
@@ -1344,6 +1667,7 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1344
1667
|
session_id: z.ZodOptional<z.ZodString>;
|
|
1345
1668
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
1346
1669
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
1670
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1347
1671
|
_ts: z.ZodOptional<z.ZodString>;
|
|
1348
1672
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1349
1673
|
type: z.ZodLiteral<"RUN_FINISHED">;
|
|
@@ -1352,39 +1676,47 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1352
1676
|
session_id: z.ZodOptional<z.ZodString>;
|
|
1353
1677
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
1354
1678
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
1679
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1355
1680
|
_ts: z.ZodOptional<z.ZodString>;
|
|
1356
1681
|
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
1357
1682
|
type: z.ZodLiteral<"RUN_ERROR">;
|
|
1358
1683
|
message: z.ZodString;
|
|
1359
1684
|
code: z.ZodDefault<z.ZodString>;
|
|
1685
|
+
terminal: z.ZodOptional<z.ZodBoolean>;
|
|
1360
1686
|
run_id: z.ZodOptional<z.ZodString>;
|
|
1361
1687
|
session_id: z.ZodOptional<z.ZodString>;
|
|
1362
1688
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
1363
1689
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
1690
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1364
1691
|
_ts: z.ZodOptional<z.ZodString>;
|
|
1365
1692
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1366
1693
|
type: z.ZodLiteral<"RUN_ERROR">;
|
|
1367
1694
|
message: z.ZodString;
|
|
1368
1695
|
code: z.ZodDefault<z.ZodString>;
|
|
1696
|
+
terminal: z.ZodOptional<z.ZodBoolean>;
|
|
1369
1697
|
run_id: z.ZodOptional<z.ZodString>;
|
|
1370
1698
|
session_id: z.ZodOptional<z.ZodString>;
|
|
1371
1699
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
1372
1700
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
1701
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1373
1702
|
_ts: z.ZodOptional<z.ZodString>;
|
|
1374
1703
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1375
1704
|
type: z.ZodLiteral<"RUN_ERROR">;
|
|
1376
1705
|
message: z.ZodString;
|
|
1377
1706
|
code: z.ZodDefault<z.ZodString>;
|
|
1707
|
+
terminal: z.ZodOptional<z.ZodBoolean>;
|
|
1378
1708
|
run_id: z.ZodOptional<z.ZodString>;
|
|
1379
1709
|
session_id: z.ZodOptional<z.ZodString>;
|
|
1380
1710
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
1381
1711
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
1712
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1382
1713
|
_ts: z.ZodOptional<z.ZodString>;
|
|
1383
1714
|
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
1384
1715
|
session_id: z.ZodOptional<z.ZodString>;
|
|
1385
1716
|
run_id: z.ZodOptional<z.ZodString>;
|
|
1386
1717
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
1387
1718
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
1719
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1388
1720
|
_ts: z.ZodOptional<z.ZodString>;
|
|
1389
1721
|
type: z.ZodLiteral<"MESSAGES_SNAPSHOT">;
|
|
1390
1722
|
messages: z.ZodArray<z.ZodObject<{
|
|
@@ -1471,6 +1803,7 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1471
1803
|
run_id: z.ZodOptional<z.ZodString>;
|
|
1472
1804
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
1473
1805
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
1806
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1474
1807
|
_ts: z.ZodOptional<z.ZodString>;
|
|
1475
1808
|
type: z.ZodLiteral<"MESSAGES_SNAPSHOT">;
|
|
1476
1809
|
messages: z.ZodArray<z.ZodObject<{
|
|
@@ -1557,6 +1890,7 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1557
1890
|
run_id: z.ZodOptional<z.ZodString>;
|
|
1558
1891
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
1559
1892
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
1893
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1560
1894
|
_ts: z.ZodOptional<z.ZodString>;
|
|
1561
1895
|
type: z.ZodLiteral<"MESSAGES_SNAPSHOT">;
|
|
1562
1896
|
messages: z.ZodArray<z.ZodObject<{
|
|
@@ -1643,6 +1977,7 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1643
1977
|
run_id: z.ZodOptional<z.ZodString>;
|
|
1644
1978
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
1645
1979
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
1980
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1646
1981
|
_ts: z.ZodOptional<z.ZodString>;
|
|
1647
1982
|
type: z.ZodLiteral<"CUSTOM">;
|
|
1648
1983
|
name: z.ZodString;
|
|
@@ -1652,6 +1987,7 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1652
1987
|
run_id: z.ZodOptional<z.ZodString>;
|
|
1653
1988
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
1654
1989
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
1990
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1655
1991
|
_ts: z.ZodOptional<z.ZodString>;
|
|
1656
1992
|
type: z.ZodLiteral<"CUSTOM">;
|
|
1657
1993
|
name: z.ZodString;
|
|
@@ -1661,6 +1997,7 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1661
1997
|
run_id: z.ZodOptional<z.ZodString>;
|
|
1662
1998
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
1663
1999
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
2000
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1664
2001
|
_ts: z.ZodOptional<z.ZodString>;
|
|
1665
2002
|
type: z.ZodLiteral<"CUSTOM">;
|
|
1666
2003
|
name: z.ZodString;
|
|
@@ -1670,6 +2007,7 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1670
2007
|
run_id: z.ZodOptional<z.ZodString>;
|
|
1671
2008
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
1672
2009
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
2010
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1673
2011
|
_ts: z.ZodOptional<z.ZodString>;
|
|
1674
2012
|
type: z.ZodLiteral<"agent_status_update">;
|
|
1675
2013
|
name: z.ZodString;
|
|
@@ -1707,6 +2045,7 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1707
2045
|
run_id: z.ZodOptional<z.ZodString>;
|
|
1708
2046
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
1709
2047
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
2048
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1710
2049
|
_ts: z.ZodOptional<z.ZodString>;
|
|
1711
2050
|
type: z.ZodLiteral<"agent_status_update">;
|
|
1712
2051
|
name: z.ZodString;
|
|
@@ -1744,6 +2083,7 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1744
2083
|
run_id: z.ZodOptional<z.ZodString>;
|
|
1745
2084
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
1746
2085
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
2086
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1747
2087
|
_ts: z.ZodOptional<z.ZodString>;
|
|
1748
2088
|
type: z.ZodLiteral<"agent_status_update">;
|
|
1749
2089
|
name: z.ZodString;
|
|
@@ -1785,6 +2125,37 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1785
2125
|
details: z.ZodOptional<z.ZodString>;
|
|
1786
2126
|
timestamp: z.ZodString;
|
|
1787
2127
|
recoverable: z.ZodBoolean;
|
|
2128
|
+
terminal: z.ZodOptional<z.ZodBoolean>;
|
|
2129
|
+
run_id: z.ZodOptional<z.ZodString>;
|
|
2130
|
+
code: z.ZodOptional<z.ZodString>;
|
|
2131
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
2132
|
+
mode: z.ZodEnum<["checkpoint", "causal"]>;
|
|
2133
|
+
checkpointId: z.ZodOptional<z.ZodString>;
|
|
2134
|
+
nodeId: z.ZodOptional<z.ZodString>;
|
|
2135
|
+
changeId: z.ZodOptional<z.ZodString>;
|
|
2136
|
+
restoredAt: z.ZodOptional<z.ZodString>;
|
|
2137
|
+
files: z.ZodArray<z.ZodString, "many">;
|
|
2138
|
+
fileCount: z.ZodNumber;
|
|
2139
|
+
affectedNodeCount: z.ZodOptional<z.ZodNumber>;
|
|
2140
|
+
}, "strip", z.ZodTypeAny, {
|
|
2141
|
+
files: string[];
|
|
2142
|
+
mode: "checkpoint" | "causal";
|
|
2143
|
+
fileCount: number;
|
|
2144
|
+
checkpointId?: string | undefined;
|
|
2145
|
+
changeId?: string | undefined;
|
|
2146
|
+
nodeId?: string | undefined;
|
|
2147
|
+
restoredAt?: string | undefined;
|
|
2148
|
+
affectedNodeCount?: number | undefined;
|
|
2149
|
+
}, {
|
|
2150
|
+
files: string[];
|
|
2151
|
+
mode: "checkpoint" | "causal";
|
|
2152
|
+
fileCount: number;
|
|
2153
|
+
checkpointId?: string | undefined;
|
|
2154
|
+
changeId?: string | undefined;
|
|
2155
|
+
nodeId?: string | undefined;
|
|
2156
|
+
restoredAt?: string | undefined;
|
|
2157
|
+
affectedNodeCount?: number | undefined;
|
|
2158
|
+
}>>;
|
|
1788
2159
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1789
2160
|
type: z.ZodLiteral<"system_message">;
|
|
1790
2161
|
session_id: z.ZodString;
|
|
@@ -1794,6 +2165,37 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1794
2165
|
details: z.ZodOptional<z.ZodString>;
|
|
1795
2166
|
timestamp: z.ZodString;
|
|
1796
2167
|
recoverable: z.ZodBoolean;
|
|
2168
|
+
terminal: z.ZodOptional<z.ZodBoolean>;
|
|
2169
|
+
run_id: z.ZodOptional<z.ZodString>;
|
|
2170
|
+
code: z.ZodOptional<z.ZodString>;
|
|
2171
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
2172
|
+
mode: z.ZodEnum<["checkpoint", "causal"]>;
|
|
2173
|
+
checkpointId: z.ZodOptional<z.ZodString>;
|
|
2174
|
+
nodeId: z.ZodOptional<z.ZodString>;
|
|
2175
|
+
changeId: z.ZodOptional<z.ZodString>;
|
|
2176
|
+
restoredAt: z.ZodOptional<z.ZodString>;
|
|
2177
|
+
files: z.ZodArray<z.ZodString, "many">;
|
|
2178
|
+
fileCount: z.ZodNumber;
|
|
2179
|
+
affectedNodeCount: z.ZodOptional<z.ZodNumber>;
|
|
2180
|
+
}, "strip", z.ZodTypeAny, {
|
|
2181
|
+
files: string[];
|
|
2182
|
+
mode: "checkpoint" | "causal";
|
|
2183
|
+
fileCount: number;
|
|
2184
|
+
checkpointId?: string | undefined;
|
|
2185
|
+
changeId?: string | undefined;
|
|
2186
|
+
nodeId?: string | undefined;
|
|
2187
|
+
restoredAt?: string | undefined;
|
|
2188
|
+
affectedNodeCount?: number | undefined;
|
|
2189
|
+
}, {
|
|
2190
|
+
files: string[];
|
|
2191
|
+
mode: "checkpoint" | "causal";
|
|
2192
|
+
fileCount: number;
|
|
2193
|
+
checkpointId?: string | undefined;
|
|
2194
|
+
changeId?: string | undefined;
|
|
2195
|
+
nodeId?: string | undefined;
|
|
2196
|
+
restoredAt?: string | undefined;
|
|
2197
|
+
affectedNodeCount?: number | undefined;
|
|
2198
|
+
}>>;
|
|
1797
2199
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1798
2200
|
type: z.ZodLiteral<"system_message">;
|
|
1799
2201
|
session_id: z.ZodString;
|
|
@@ -1803,6 +2205,37 @@ export declare const SseEventFrameSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1803
2205
|
details: z.ZodOptional<z.ZodString>;
|
|
1804
2206
|
timestamp: z.ZodString;
|
|
1805
2207
|
recoverable: z.ZodBoolean;
|
|
2208
|
+
terminal: z.ZodOptional<z.ZodBoolean>;
|
|
2209
|
+
run_id: z.ZodOptional<z.ZodString>;
|
|
2210
|
+
code: z.ZodOptional<z.ZodString>;
|
|
2211
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
2212
|
+
mode: z.ZodEnum<["checkpoint", "causal"]>;
|
|
2213
|
+
checkpointId: z.ZodOptional<z.ZodString>;
|
|
2214
|
+
nodeId: z.ZodOptional<z.ZodString>;
|
|
2215
|
+
changeId: z.ZodOptional<z.ZodString>;
|
|
2216
|
+
restoredAt: z.ZodOptional<z.ZodString>;
|
|
2217
|
+
files: z.ZodArray<z.ZodString, "many">;
|
|
2218
|
+
fileCount: z.ZodNumber;
|
|
2219
|
+
affectedNodeCount: z.ZodOptional<z.ZodNumber>;
|
|
2220
|
+
}, "strip", z.ZodTypeAny, {
|
|
2221
|
+
files: string[];
|
|
2222
|
+
mode: "checkpoint" | "causal";
|
|
2223
|
+
fileCount: number;
|
|
2224
|
+
checkpointId?: string | undefined;
|
|
2225
|
+
changeId?: string | undefined;
|
|
2226
|
+
nodeId?: string | undefined;
|
|
2227
|
+
restoredAt?: string | undefined;
|
|
2228
|
+
affectedNodeCount?: number | undefined;
|
|
2229
|
+
}, {
|
|
2230
|
+
files: string[];
|
|
2231
|
+
mode: "checkpoint" | "causal";
|
|
2232
|
+
fileCount: number;
|
|
2233
|
+
checkpointId?: string | undefined;
|
|
2234
|
+
changeId?: string | undefined;
|
|
2235
|
+
nodeId?: string | undefined;
|
|
2236
|
+
restoredAt?: string | undefined;
|
|
2237
|
+
affectedNodeCount?: number | undefined;
|
|
2238
|
+
}>>;
|
|
1806
2239
|
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
1807
2240
|
type: z.ZodLiteral<"user_input_request">;
|
|
1808
2241
|
session_id: z.ZodString;
|
|
@@ -2078,6 +2511,14 @@ export declare const RUNTIME_ROUTES: {
|
|
|
2078
2511
|
readonly method: "GET";
|
|
2079
2512
|
readonly path: "/metrics";
|
|
2080
2513
|
};
|
|
2514
|
+
readonly setRuntimeCapabilities: {
|
|
2515
|
+
readonly method: "PUT";
|
|
2516
|
+
readonly path: "/runtime/capabilities";
|
|
2517
|
+
};
|
|
2518
|
+
readonly mcpStatus: {
|
|
2519
|
+
readonly method: "GET";
|
|
2520
|
+
readonly path: "/mcp/status";
|
|
2521
|
+
};
|
|
2081
2522
|
readonly createSession: {
|
|
2082
2523
|
readonly method: "POST";
|
|
2083
2524
|
readonly path: "/sessions";
|
|
@@ -2117,6 +2558,42 @@ export declare const RUNTIME_ROUTES: {
|
|
|
2117
2558
|
readonly method: "GET";
|
|
2118
2559
|
readonly path: "/sessions/:id/trace";
|
|
2119
2560
|
};
|
|
2561
|
+
readonly getTraceChanges: {
|
|
2562
|
+
readonly method: "GET";
|
|
2563
|
+
readonly path: "/sessions/:id/trace/changes";
|
|
2564
|
+
};
|
|
2565
|
+
readonly getAuditReports: {
|
|
2566
|
+
readonly method: "GET";
|
|
2567
|
+
readonly path: "/sessions/:id/audits";
|
|
2568
|
+
};
|
|
2569
|
+
readonly decideTraceDependency: {
|
|
2570
|
+
readonly method: "POST";
|
|
2571
|
+
readonly path: "/sessions/:id/trace/dependencies/:dependencyId/decision";
|
|
2572
|
+
};
|
|
2573
|
+
readonly getTraceNodeCheckpoints: {
|
|
2574
|
+
readonly method: "GET";
|
|
2575
|
+
readonly path: "/sessions/:id/trace/nodes/:nodeId/checkpoints";
|
|
2576
|
+
};
|
|
2577
|
+
readonly getTraceCausalRollbackPreview: {
|
|
2578
|
+
readonly method: "GET";
|
|
2579
|
+
readonly path: "/sessions/:id/trace/nodes/:nodeId/rollback-preview";
|
|
2580
|
+
};
|
|
2581
|
+
readonly rollbackTraceNode: {
|
|
2582
|
+
readonly method: "POST";
|
|
2583
|
+
readonly path: "/sessions/:id/trace/nodes/:nodeId/rollback";
|
|
2584
|
+
};
|
|
2585
|
+
readonly getTraceCheckpointDiff: {
|
|
2586
|
+
readonly method: "GET";
|
|
2587
|
+
readonly path: "/sessions/:id/trace/checkpoints/:checkpointId/diff";
|
|
2588
|
+
};
|
|
2589
|
+
readonly getTraceRestorePreview: {
|
|
2590
|
+
readonly method: "GET";
|
|
2591
|
+
readonly path: "/sessions/:id/trace/checkpoints/:checkpointId/restore-preview";
|
|
2592
|
+
};
|
|
2593
|
+
readonly restoreTraceCheckpoint: {
|
|
2594
|
+
readonly method: "POST";
|
|
2595
|
+
readonly path: "/sessions/:id/trace/checkpoints/:checkpointId/restore";
|
|
2596
|
+
};
|
|
2120
2597
|
readonly sendMessage: {
|
|
2121
2598
|
readonly method: "POST";
|
|
2122
2599
|
readonly path: "/sessions/:id/messages";
|