@inf-monkeys-tech/monkeys 1.0.20 → 1.0.21
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/lib/contracts/agent.d.ts +513 -0
- package/lib/contracts/agent.d.ts.map +1 -1
- package/lib/contracts/agent.js +155 -1
- package/lib/contracts/agent.js.map +1 -1
- package/lib/esm/contracts/index.mjs +140 -1
- package/lib/esm/contracts/index.mjs.map +1 -1
- package/lib/esm/index.mjs +143 -1
- package/lib/esm/index.mjs.map +1 -1
- package/lib/esm/runtime/index.mjs +121 -1
- package/lib/esm/runtime/index.mjs.map +1 -1
- package/lib/esm/schemas/index.mjs +128 -1
- package/lib/esm/schemas/index.mjs.map +1 -1
- package/lib/json-schema/agent-session-command-result.schema.json +15 -0
- package/lib/json-schema/agent-session-command.schema.json +20 -0
- package/lib/json-schema/agent-session-event.schema.json +179 -0
- package/lib/json-schema/agent-session-run-event.schema.json +1501 -0
- package/lib/json-schema/agent-session-run.schema.json +72 -0
- package/lib/json-schema/agent-session-targeted-command.schema.json +302 -0
- package/lib/json-schema/agent-session-view-model.schema.json +179 -0
- package/lib/json-schema/index.json +3 -0
- package/lib/schemas/index.d.ts +500 -1
- package/lib/schemas/index.d.ts.map +1 -1
- package/lib/schemas/index.js +10 -3
- package/lib/schemas/index.js.map +1 -1
- package/package.json +1 -1
- package/test/fixtures/agent-session-runs.json +51 -0
package/lib/schemas/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { ArtifactManifestSchema, OutputRecordSchema, StorageLocatorSchema, } from '../contracts/artifact';
|
|
2
2
|
export { CapabilityRegistryDocumentSchema, CapabilityRegistryEntrySchema, CapabilityRegistrySourceSchema, CapabilitySourceTypeSchema, CapabilityManifestSchema, ContractPortSchema, } from '../contracts/capability';
|
|
3
3
|
export { ContractMetadataSchema, EntityRefSchema, JsonObjectSchema, JsonValueSchema, } from '../contracts/common';
|
|
4
|
-
export { AgentConfigurationCapabilitySchema, AgentModeSchema, AgentModeCapabilitiesSchema, AgentResourceModeSupportSchema, AgentSessionCapabilitiesSchema, AgentSessionCapabilitySchema, AgentSessionCommandErrorCodeSchema, AgentSessionCommandResultSchema, AgentSessionCommandSchema, AgentSessionCommandTypeSchema, AgentSessionEventSchema, AgentSessionSnapshotSchema, AgentSessionStatusSchema, AgentSessionViewModelSchema, AgentExecutionModeSchema, } from '../contracts/agent';
|
|
4
|
+
export { AgentConfigurationCapabilitySchema, AgentModeSchema, AgentModeCapabilitiesSchema, AgentResourceModeSupportSchema, AgentSessionCapabilitiesSchema, AgentSessionCapabilitySchema, AgentSessionCommandErrorCodeSchema, AgentSessionCommandResultSchema, AgentSessionCommandSchema, AgentSessionCommandTypeSchema, AgentSessionEventSchema, AgentSessionRunEventSchema, AgentSessionSnapshotSchema, AgentSessionStatusSchema, AgentSessionTerminalStatusSchema, AgentSessionRunSchema, AgentSessionTargetedCommandSchema, AgentSessionViewModelSchema, AgentExecutionModeSchema, } from '../contracts/agent';
|
|
5
5
|
export { AgentRuntimeEventSchema, CompletionEventSchema, CompletionHeaderSchema, ExecutionLinkSchema, RequestScopeSchema, } from '../contracts/context';
|
|
6
6
|
export { ApplicationRunSchema, BodyRelationRecordSchema, DataContinuityEnvelopeSchema, ExpiringAccessGrantSchema, } from '../contracts/continuity';
|
|
7
7
|
export { DomainEventSchema, LineageRecordSchema, OntologyDefinitionSchema, ProjectionSpecSchema, SourceRecordRefSchema, } from '../contracts/data';
|
|
@@ -18,6 +18,7 @@ export declare const canonicalContractSchemas: {
|
|
|
18
18
|
contract: import("zod").ZodLiteral<"AgentSessionCommand">;
|
|
19
19
|
commandId: import("zod").ZodString;
|
|
20
20
|
sessionId: import("zod").ZodString;
|
|
21
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
21
22
|
idempotencyKey: import("zod").ZodString;
|
|
22
23
|
expectedSequence: import("zod").ZodNumber;
|
|
23
24
|
issuedAt: import("zod").ZodString;
|
|
@@ -29,6 +30,7 @@ export declare const canonicalContractSchemas: {
|
|
|
29
30
|
contract: import("zod").ZodLiteral<"AgentSessionCommand">;
|
|
30
31
|
commandId: import("zod").ZodString;
|
|
31
32
|
sessionId: import("zod").ZodString;
|
|
33
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
32
34
|
idempotencyKey: import("zod").ZodString;
|
|
33
35
|
expectedSequence: import("zod").ZodNumber;
|
|
34
36
|
issuedAt: import("zod").ZodString;
|
|
@@ -40,6 +42,7 @@ export declare const canonicalContractSchemas: {
|
|
|
40
42
|
contract: import("zod").ZodLiteral<"AgentSessionCommand">;
|
|
41
43
|
commandId: import("zod").ZodString;
|
|
42
44
|
sessionId: import("zod").ZodString;
|
|
45
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
43
46
|
idempotencyKey: import("zod").ZodString;
|
|
44
47
|
expectedSequence: import("zod").ZodNumber;
|
|
45
48
|
issuedAt: import("zod").ZodString;
|
|
@@ -51,6 +54,7 @@ export declare const canonicalContractSchemas: {
|
|
|
51
54
|
contract: import("zod").ZodLiteral<"AgentSessionCommand">;
|
|
52
55
|
commandId: import("zod").ZodString;
|
|
53
56
|
sessionId: import("zod").ZodString;
|
|
57
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
54
58
|
idempotencyKey: import("zod").ZodString;
|
|
55
59
|
expectedSequence: import("zod").ZodNumber;
|
|
56
60
|
issuedAt: import("zod").ZodString;
|
|
@@ -64,10 +68,67 @@ export declare const canonicalContractSchemas: {
|
|
|
64
68
|
reason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
65
69
|
}, import("zod/v4/core").$strict>;
|
|
66
70
|
}, import("zod/v4/core").$strict>], "commandType">;
|
|
71
|
+
readonly 'agent-session-targeted-command': import("zod").ZodIntersection<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
72
|
+
contract: import("zod").ZodLiteral<"AgentSessionCommand">;
|
|
73
|
+
commandId: import("zod").ZodString;
|
|
74
|
+
sessionId: import("zod").ZodString;
|
|
75
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
76
|
+
idempotencyKey: import("zod").ZodString;
|
|
77
|
+
expectedSequence: import("zod").ZodNumber;
|
|
78
|
+
issuedAt: import("zod").ZodString;
|
|
79
|
+
commandType: import("zod").ZodLiteral<"stop">;
|
|
80
|
+
payload: import("zod").ZodObject<{
|
|
81
|
+
reason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
82
|
+
}, import("zod/v4/core").$strict>;
|
|
83
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
84
|
+
contract: import("zod").ZodLiteral<"AgentSessionCommand">;
|
|
85
|
+
commandId: import("zod").ZodString;
|
|
86
|
+
sessionId: import("zod").ZodString;
|
|
87
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
88
|
+
idempotencyKey: import("zod").ZodString;
|
|
89
|
+
expectedSequence: import("zod").ZodNumber;
|
|
90
|
+
issuedAt: import("zod").ZodString;
|
|
91
|
+
commandType: import("zod").ZodLiteral<"resume">;
|
|
92
|
+
payload: import("zod").ZodObject<{
|
|
93
|
+
resumeEventId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
94
|
+
}, import("zod/v4/core").$strict>;
|
|
95
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
96
|
+
contract: import("zod").ZodLiteral<"AgentSessionCommand">;
|
|
97
|
+
commandId: import("zod").ZodString;
|
|
98
|
+
sessionId: import("zod").ZodString;
|
|
99
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
100
|
+
idempotencyKey: import("zod").ZodString;
|
|
101
|
+
expectedSequence: import("zod").ZodNumber;
|
|
102
|
+
issuedAt: import("zod").ZodString;
|
|
103
|
+
commandType: import("zod").ZodLiteral<"retry">;
|
|
104
|
+
payload: import("zod").ZodObject<{
|
|
105
|
+
sourceEventId: import("zod").ZodString;
|
|
106
|
+
}, import("zod/v4/core").$strict>;
|
|
107
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
108
|
+
contract: import("zod").ZodLiteral<"AgentSessionCommand">;
|
|
109
|
+
commandId: import("zod").ZodString;
|
|
110
|
+
sessionId: import("zod").ZodString;
|
|
111
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
112
|
+
idempotencyKey: import("zod").ZodString;
|
|
113
|
+
expectedSequence: import("zod").ZodNumber;
|
|
114
|
+
issuedAt: import("zod").ZodString;
|
|
115
|
+
commandType: import("zod").ZodLiteral<"approval">;
|
|
116
|
+
payload: import("zod").ZodObject<{
|
|
117
|
+
approvalId: import("zod").ZodString;
|
|
118
|
+
decision: import("zod").ZodEnum<{
|
|
119
|
+
approved: "approved";
|
|
120
|
+
rejected: "rejected";
|
|
121
|
+
}>;
|
|
122
|
+
reason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
123
|
+
}, import("zod/v4/core").$strict>;
|
|
124
|
+
}, import("zod/v4/core").$strict>], "commandType">, import("zod").ZodObject<{
|
|
125
|
+
runId: import("zod").ZodString;
|
|
126
|
+
}, import("zod/v4/core").$strip>>;
|
|
67
127
|
readonly 'agent-session-command-result': import("zod").ZodObject<{
|
|
68
128
|
contract: import("zod").ZodLiteral<"AgentSessionCommandResult">;
|
|
69
129
|
commandId: import("zod").ZodString;
|
|
70
130
|
sessionId: import("zod").ZodString;
|
|
131
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
71
132
|
idempotencyKey: import("zod").ZodString;
|
|
72
133
|
outcome: import("zod").ZodEnum<{
|
|
73
134
|
failed: "failed";
|
|
@@ -86,9 +147,16 @@ export declare const canonicalContractSchemas: {
|
|
|
86
147
|
}>;
|
|
87
148
|
acceptedSequence: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
88
149
|
resultEventIds: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
|
|
150
|
+
termination: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
151
|
+
requested: "requested";
|
|
152
|
+
confirmed: "confirmed";
|
|
153
|
+
}>>;
|
|
89
154
|
error: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
90
155
|
code: import("zod").ZodEnum<{
|
|
91
156
|
SESSION_NOT_FOUND: "SESSION_NOT_FOUND";
|
|
157
|
+
RUN_NOT_FOUND: "RUN_NOT_FOUND";
|
|
158
|
+
RUN_ALREADY_FINISHED: "RUN_ALREADY_FINISHED";
|
|
159
|
+
STOP_TIMEOUT: "STOP_TIMEOUT";
|
|
92
160
|
COMMAND_NOT_SUPPORTED: "COMMAND_NOT_SUPPORTED";
|
|
93
161
|
CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
|
|
94
162
|
SEQUENCE_CONFLICT: "SEQUENCE_CONFLICT";
|
|
@@ -108,6 +176,8 @@ export declare const canonicalContractSchemas: {
|
|
|
108
176
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
109
177
|
eventId: import("zod").ZodString;
|
|
110
178
|
sessionId: import("zod").ZodString;
|
|
179
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
180
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
111
181
|
sequence: import("zod").ZodNumber;
|
|
112
182
|
idempotencyKey: import("zod").ZodString;
|
|
113
183
|
occurredAt: import("zod").ZodString;
|
|
@@ -134,6 +204,8 @@ export declare const canonicalContractSchemas: {
|
|
|
134
204
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
135
205
|
eventId: import("zod").ZodString;
|
|
136
206
|
sessionId: import("zod").ZodString;
|
|
207
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
208
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
137
209
|
sequence: import("zod").ZodNumber;
|
|
138
210
|
idempotencyKey: import("zod").ZodString;
|
|
139
211
|
occurredAt: import("zod").ZodString;
|
|
@@ -150,6 +222,8 @@ export declare const canonicalContractSchemas: {
|
|
|
150
222
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
151
223
|
eventId: import("zod").ZodString;
|
|
152
224
|
sessionId: import("zod").ZodString;
|
|
225
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
226
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
153
227
|
sequence: import("zod").ZodNumber;
|
|
154
228
|
idempotencyKey: import("zod").ZodString;
|
|
155
229
|
occurredAt: import("zod").ZodString;
|
|
@@ -179,6 +253,8 @@ export declare const canonicalContractSchemas: {
|
|
|
179
253
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
180
254
|
eventId: import("zod").ZodString;
|
|
181
255
|
sessionId: import("zod").ZodString;
|
|
256
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
257
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
182
258
|
sequence: import("zod").ZodNumber;
|
|
183
259
|
idempotencyKey: import("zod").ZodString;
|
|
184
260
|
occurredAt: import("zod").ZodString;
|
|
@@ -199,6 +275,8 @@ export declare const canonicalContractSchemas: {
|
|
|
199
275
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
200
276
|
eventId: import("zod").ZodString;
|
|
201
277
|
sessionId: import("zod").ZodString;
|
|
278
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
279
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
202
280
|
sequence: import("zod").ZodNumber;
|
|
203
281
|
idempotencyKey: import("zod").ZodString;
|
|
204
282
|
occurredAt: import("zod").ZodString;
|
|
@@ -223,6 +301,8 @@ export declare const canonicalContractSchemas: {
|
|
|
223
301
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
224
302
|
eventId: import("zod").ZodString;
|
|
225
303
|
sessionId: import("zod").ZodString;
|
|
304
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
305
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
226
306
|
sequence: import("zod").ZodNumber;
|
|
227
307
|
idempotencyKey: import("zod").ZodString;
|
|
228
308
|
occurredAt: import("zod").ZodString;
|
|
@@ -244,6 +324,8 @@ export declare const canonicalContractSchemas: {
|
|
|
244
324
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
245
325
|
eventId: import("zod").ZodString;
|
|
246
326
|
sessionId: import("zod").ZodString;
|
|
327
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
328
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
247
329
|
sequence: import("zod").ZodNumber;
|
|
248
330
|
idempotencyKey: import("zod").ZodString;
|
|
249
331
|
occurredAt: import("zod").ZodString;
|
|
@@ -259,11 +341,19 @@ export declare const canonicalContractSchemas: {
|
|
|
259
341
|
failed: "failed";
|
|
260
342
|
}>;
|
|
261
343
|
detail: import("zod").ZodOptional<import("zod").ZodString>;
|
|
344
|
+
startedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
345
|
+
stoppingRequestedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
346
|
+
stoppedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
347
|
+
completedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
348
|
+
failedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
349
|
+
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
262
350
|
}, import("zod/v4/core").$strict>;
|
|
263
351
|
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
264
352
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
265
353
|
eventId: import("zod").ZodString;
|
|
266
354
|
sessionId: import("zod").ZodString;
|
|
355
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
356
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
267
357
|
sequence: import("zod").ZodNumber;
|
|
268
358
|
idempotencyKey: import("zod").ZodString;
|
|
269
359
|
occurredAt: import("zod").ZodString;
|
|
@@ -293,6 +383,8 @@ export declare const canonicalContractSchemas: {
|
|
|
293
383
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
294
384
|
eventId: import("zod").ZodString;
|
|
295
385
|
sessionId: import("zod").ZodString;
|
|
386
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
387
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
296
388
|
sequence: import("zod").ZodNumber;
|
|
297
389
|
idempotencyKey: import("zod").ZodString;
|
|
298
390
|
occurredAt: import("zod").ZodString;
|
|
@@ -308,6 +400,8 @@ export declare const canonicalContractSchemas: {
|
|
|
308
400
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
309
401
|
eventId: import("zod").ZodString;
|
|
310
402
|
sessionId: import("zod").ZodString;
|
|
403
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
404
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
311
405
|
sequence: import("zod").ZodNumber;
|
|
312
406
|
idempotencyKey: import("zod").ZodString;
|
|
313
407
|
occurredAt: import("zod").ZodString;
|
|
@@ -321,6 +415,8 @@ export declare const canonicalContractSchemas: {
|
|
|
321
415
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
322
416
|
eventId: import("zod").ZodString;
|
|
323
417
|
sessionId: import("zod").ZodString;
|
|
418
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
419
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
324
420
|
sequence: import("zod").ZodNumber;
|
|
325
421
|
idempotencyKey: import("zod").ZodString;
|
|
326
422
|
occurredAt: import("zod").ZodString;
|
|
@@ -336,6 +432,8 @@ export declare const canonicalContractSchemas: {
|
|
|
336
432
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
337
433
|
eventId: import("zod").ZodString;
|
|
338
434
|
sessionId: import("zod").ZodString;
|
|
435
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
436
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
339
437
|
sequence: import("zod").ZodNumber;
|
|
340
438
|
idempotencyKey: import("zod").ZodString;
|
|
341
439
|
occurredAt: import("zod").ZodString;
|
|
@@ -354,6 +452,8 @@ export declare const canonicalContractSchemas: {
|
|
|
354
452
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
355
453
|
eventId: import("zod").ZodString;
|
|
356
454
|
sessionId: import("zod").ZodString;
|
|
455
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
456
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
357
457
|
sequence: import("zod").ZodNumber;
|
|
358
458
|
idempotencyKey: import("zod").ZodString;
|
|
359
459
|
occurredAt: import("zod").ZodString;
|
|
@@ -371,6 +471,8 @@ export declare const canonicalContractSchemas: {
|
|
|
371
471
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
372
472
|
eventId: import("zod").ZodString;
|
|
373
473
|
sessionId: import("zod").ZodString;
|
|
474
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
475
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
374
476
|
sequence: import("zod").ZodNumber;
|
|
375
477
|
idempotencyKey: import("zod").ZodString;
|
|
376
478
|
occurredAt: import("zod").ZodString;
|
|
@@ -390,6 +492,8 @@ export declare const canonicalContractSchemas: {
|
|
|
390
492
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
391
493
|
eventId: import("zod").ZodString;
|
|
392
494
|
sessionId: import("zod").ZodString;
|
|
495
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
496
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
393
497
|
sequence: import("zod").ZodNumber;
|
|
394
498
|
idempotencyKey: import("zod").ZodString;
|
|
395
499
|
occurredAt: import("zod").ZodString;
|
|
@@ -407,6 +511,365 @@ export declare const canonicalContractSchemas: {
|
|
|
407
511
|
output: import("zod").ZodOptional<import("zod").ZodString>;
|
|
408
512
|
}, import("zod/v4/core").$strict>;
|
|
409
513
|
}, import("zod/v4/core").$strict>], "eventType">;
|
|
514
|
+
readonly 'agent-session-run-event': import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
515
|
+
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
516
|
+
eventId: import("zod").ZodString;
|
|
517
|
+
sessionId: import("zod").ZodString;
|
|
518
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
519
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
520
|
+
sequence: import("zod").ZodNumber;
|
|
521
|
+
idempotencyKey: import("zod").ZodString;
|
|
522
|
+
occurredAt: import("zod").ZodString;
|
|
523
|
+
eventType: import("zod").ZodLiteral<"message">;
|
|
524
|
+
payload: import("zod").ZodObject<{
|
|
525
|
+
messageId: import("zod").ZodString;
|
|
526
|
+
role: import("zod").ZodEnum<{
|
|
527
|
+
user: "user";
|
|
528
|
+
assistant: "assistant";
|
|
529
|
+
system: "system";
|
|
530
|
+
}>;
|
|
531
|
+
operation: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
532
|
+
replace: "replace";
|
|
533
|
+
append: "append";
|
|
534
|
+
}>>;
|
|
535
|
+
parts: import("zod").ZodArray<import("zod").ZodType<import("../contracts/common").JsonValue, unknown, import("zod/v4/core").$ZodTypeInternals<import("../contracts/common").JsonValue, unknown>>>;
|
|
536
|
+
status: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
537
|
+
completed: "completed";
|
|
538
|
+
failed: "failed";
|
|
539
|
+
streaming: "streaming";
|
|
540
|
+
}>>;
|
|
541
|
+
}, import("zod/v4/core").$strict>;
|
|
542
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
543
|
+
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
544
|
+
eventId: import("zod").ZodString;
|
|
545
|
+
sessionId: import("zod").ZodString;
|
|
546
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
547
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
548
|
+
sequence: import("zod").ZodNumber;
|
|
549
|
+
idempotencyKey: import("zod").ZodString;
|
|
550
|
+
occurredAt: import("zod").ZodString;
|
|
551
|
+
eventType: import("zod").ZodLiteral<"reasoning">;
|
|
552
|
+
payload: import("zod").ZodObject<{
|
|
553
|
+
reasoningId: import("zod").ZodString;
|
|
554
|
+
text: import("zod").ZodString;
|
|
555
|
+
status: import("zod").ZodEnum<{
|
|
556
|
+
completed: "completed";
|
|
557
|
+
streaming: "streaming";
|
|
558
|
+
}>;
|
|
559
|
+
}, import("zod/v4/core").$strict>;
|
|
560
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
561
|
+
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
562
|
+
eventId: import("zod").ZodString;
|
|
563
|
+
sessionId: import("zod").ZodString;
|
|
564
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
565
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
566
|
+
sequence: import("zod").ZodNumber;
|
|
567
|
+
idempotencyKey: import("zod").ZodString;
|
|
568
|
+
occurredAt: import("zod").ZodString;
|
|
569
|
+
eventType: import("zod").ZodLiteral<"plan">;
|
|
570
|
+
payload: import("zod").ZodObject<{
|
|
571
|
+
planId: import("zod").ZodString;
|
|
572
|
+
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
573
|
+
status: import("zod").ZodEnum<{
|
|
574
|
+
running: "running";
|
|
575
|
+
completed: "completed";
|
|
576
|
+
failed: "failed";
|
|
577
|
+
pending: "pending";
|
|
578
|
+
}>;
|
|
579
|
+
steps: import("zod").ZodArray<import("zod").ZodObject<{
|
|
580
|
+
id: import("zod").ZodString;
|
|
581
|
+
title: import("zod").ZodString;
|
|
582
|
+
status: import("zod").ZodEnum<{
|
|
583
|
+
running: "running";
|
|
584
|
+
completed: "completed";
|
|
585
|
+
failed: "failed";
|
|
586
|
+
pending: "pending";
|
|
587
|
+
skipped: "skipped";
|
|
588
|
+
}>;
|
|
589
|
+
}, import("zod/v4/core").$strict>>;
|
|
590
|
+
}, import("zod/v4/core").$strict>;
|
|
591
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
592
|
+
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
593
|
+
eventId: import("zod").ZodString;
|
|
594
|
+
sessionId: import("zod").ZodString;
|
|
595
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
596
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
597
|
+
sequence: import("zod").ZodNumber;
|
|
598
|
+
idempotencyKey: import("zod").ZodString;
|
|
599
|
+
occurredAt: import("zod").ZodString;
|
|
600
|
+
eventType: import("zod").ZodLiteral<"task">;
|
|
601
|
+
payload: import("zod").ZodObject<{
|
|
602
|
+
taskId: import("zod").ZodString;
|
|
603
|
+
title: import("zod").ZodString;
|
|
604
|
+
status: import("zod").ZodEnum<{
|
|
605
|
+
running: "running";
|
|
606
|
+
completed: "completed";
|
|
607
|
+
failed: "failed";
|
|
608
|
+
pending: "pending";
|
|
609
|
+
skipped: "skipped";
|
|
610
|
+
}>;
|
|
611
|
+
detail: import("zod").ZodOptional<import("zod").ZodString>;
|
|
612
|
+
}, import("zod/v4/core").$strict>;
|
|
613
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
614
|
+
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
615
|
+
eventId: import("zod").ZodString;
|
|
616
|
+
sessionId: import("zod").ZodString;
|
|
617
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
618
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
619
|
+
sequence: import("zod").ZodNumber;
|
|
620
|
+
idempotencyKey: import("zod").ZodString;
|
|
621
|
+
occurredAt: import("zod").ZodString;
|
|
622
|
+
eventType: import("zod").ZodLiteral<"tool">;
|
|
623
|
+
payload: import("zod").ZodObject<{
|
|
624
|
+
toolCallId: import("zod").ZodString;
|
|
625
|
+
toolName: import("zod").ZodString;
|
|
626
|
+
status: import("zod").ZodEnum<{
|
|
627
|
+
running: "running";
|
|
628
|
+
completed: "completed";
|
|
629
|
+
failed: "failed";
|
|
630
|
+
pending: "pending";
|
|
631
|
+
denied: "denied";
|
|
632
|
+
}>;
|
|
633
|
+
input: import("zod").ZodOptional<import("zod").ZodType<import("../contracts/common").JsonValue, unknown, import("zod/v4/core").$ZodTypeInternals<import("../contracts/common").JsonValue, unknown>>>;
|
|
634
|
+
output: import("zod").ZodOptional<import("zod").ZodType<import("../contracts/common").JsonValue, unknown, import("zod/v4/core").$ZodTypeInternals<import("../contracts/common").JsonValue, unknown>>>;
|
|
635
|
+
error: import("zod").ZodOptional<import("zod").ZodString>;
|
|
636
|
+
startedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
637
|
+
completedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
638
|
+
}, import("zod/v4/core").$strict>;
|
|
639
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
640
|
+
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
641
|
+
eventId: import("zod").ZodString;
|
|
642
|
+
sessionId: import("zod").ZodString;
|
|
643
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
644
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
645
|
+
sequence: import("zod").ZodNumber;
|
|
646
|
+
idempotencyKey: import("zod").ZodString;
|
|
647
|
+
occurredAt: import("zod").ZodString;
|
|
648
|
+
eventType: import("zod").ZodLiteral<"approval">;
|
|
649
|
+
payload: import("zod").ZodObject<{
|
|
650
|
+
approvalId: import("zod").ZodString;
|
|
651
|
+
toolCallId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
652
|
+
status: import("zod").ZodEnum<{
|
|
653
|
+
approved: "approved";
|
|
654
|
+
rejected: "rejected";
|
|
655
|
+
requested: "requested";
|
|
656
|
+
expired: "expired";
|
|
657
|
+
}>;
|
|
658
|
+
title: import("zod").ZodString;
|
|
659
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
660
|
+
requestedAction: import("zod").ZodOptional<import("zod").ZodType<import("../contracts/common").JsonValue, unknown, import("zod/v4/core").$ZodTypeInternals<import("../contracts/common").JsonValue, unknown>>>;
|
|
661
|
+
}, import("zod/v4/core").$strict>;
|
|
662
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
663
|
+
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
664
|
+
eventId: import("zod").ZodString;
|
|
665
|
+
sessionId: import("zod").ZodString;
|
|
666
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
667
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
668
|
+
sequence: import("zod").ZodNumber;
|
|
669
|
+
idempotencyKey: import("zod").ZodString;
|
|
670
|
+
occurredAt: import("zod").ZodString;
|
|
671
|
+
eventType: import("zod").ZodLiteral<"status">;
|
|
672
|
+
payload: import("zod").ZodObject<{
|
|
673
|
+
status: import("zod").ZodEnum<{
|
|
674
|
+
queued: "queued";
|
|
675
|
+
running: "running";
|
|
676
|
+
waiting_approval: "waiting_approval";
|
|
677
|
+
stopping: "stopping";
|
|
678
|
+
stopped: "stopped";
|
|
679
|
+
completed: "completed";
|
|
680
|
+
failed: "failed";
|
|
681
|
+
}>;
|
|
682
|
+
detail: import("zod").ZodOptional<import("zod").ZodString>;
|
|
683
|
+
startedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
684
|
+
stoppingRequestedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
685
|
+
stoppedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
686
|
+
completedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
687
|
+
failedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
688
|
+
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
689
|
+
}, import("zod/v4/core").$strict>;
|
|
690
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
691
|
+
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
692
|
+
eventId: import("zod").ZodString;
|
|
693
|
+
sessionId: import("zod").ZodString;
|
|
694
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
695
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
696
|
+
sequence: import("zod").ZodNumber;
|
|
697
|
+
idempotencyKey: import("zod").ZodString;
|
|
698
|
+
occurredAt: import("zod").ZodString;
|
|
699
|
+
eventType: import("zod").ZodLiteral<"artifact">;
|
|
700
|
+
payload: import("zod").ZodObject<{
|
|
701
|
+
artifactId: import("zod").ZodString;
|
|
702
|
+
name: import("zod").ZodString;
|
|
703
|
+
kind: import("zod").ZodEnum<{
|
|
704
|
+
file: "file";
|
|
705
|
+
image: "image";
|
|
706
|
+
video: "video";
|
|
707
|
+
audio: "audio";
|
|
708
|
+
web: "web";
|
|
709
|
+
other: "other";
|
|
710
|
+
}>;
|
|
711
|
+
status: import("zod").ZodEnum<{
|
|
712
|
+
failed: "failed";
|
|
713
|
+
pending: "pending";
|
|
714
|
+
ready: "ready";
|
|
715
|
+
}>;
|
|
716
|
+
mimeType: import("zod").ZodOptional<import("zod").ZodString>;
|
|
717
|
+
url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
718
|
+
size: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
719
|
+
sourceEventId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
720
|
+
}, import("zod/v4/core").$strict>;
|
|
721
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
722
|
+
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
723
|
+
eventId: import("zod").ZodString;
|
|
724
|
+
sessionId: import("zod").ZodString;
|
|
725
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
726
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
727
|
+
sequence: import("zod").ZodNumber;
|
|
728
|
+
idempotencyKey: import("zod").ZodString;
|
|
729
|
+
occurredAt: import("zod").ZodString;
|
|
730
|
+
eventType: import("zod").ZodLiteral<"usage">;
|
|
731
|
+
payload: import("zod").ZodObject<{
|
|
732
|
+
inputTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
733
|
+
outputTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
734
|
+
totalTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
735
|
+
contextTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
736
|
+
contextWindow: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
737
|
+
}, import("zod/v4/core").$strict>;
|
|
738
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
739
|
+
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
740
|
+
eventId: import("zod").ZodString;
|
|
741
|
+
sessionId: import("zod").ZodString;
|
|
742
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
743
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
744
|
+
sequence: import("zod").ZodNumber;
|
|
745
|
+
idempotencyKey: import("zod").ZodString;
|
|
746
|
+
occurredAt: import("zod").ZodString;
|
|
747
|
+
eventType: import("zod").ZodLiteral<"resume">;
|
|
748
|
+
payload: import("zod").ZodObject<{
|
|
749
|
+
resumable: import("zod").ZodBoolean;
|
|
750
|
+
state: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<import("../contracts/common").JsonValue, unknown, import("zod/v4/core").$ZodTypeInternals<import("../contracts/common").JsonValue, unknown>>>>;
|
|
751
|
+
reason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
752
|
+
}, import("zod/v4/core").$strict>;
|
|
753
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
754
|
+
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
755
|
+
eventId: import("zod").ZodString;
|
|
756
|
+
sessionId: import("zod").ZodString;
|
|
757
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
758
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
759
|
+
sequence: import("zod").ZodNumber;
|
|
760
|
+
idempotencyKey: import("zod").ZodString;
|
|
761
|
+
occurredAt: import("zod").ZodString;
|
|
762
|
+
eventType: import("zod").ZodLiteral<"error">;
|
|
763
|
+
payload: import("zod").ZodObject<{
|
|
764
|
+
code: import("zod").ZodString;
|
|
765
|
+
message: import("zod").ZodString;
|
|
766
|
+
retryable: import("zod").ZodBoolean;
|
|
767
|
+
sourceEventId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
768
|
+
details: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<import("../contracts/common").JsonValue, unknown, import("zod/v4/core").$ZodTypeInternals<import("../contracts/common").JsonValue, unknown>>>>;
|
|
769
|
+
}, import("zod/v4/core").$strict>;
|
|
770
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
771
|
+
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
772
|
+
eventId: import("zod").ZodString;
|
|
773
|
+
sessionId: import("zod").ZodString;
|
|
774
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
775
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
776
|
+
sequence: import("zod").ZodNumber;
|
|
777
|
+
idempotencyKey: import("zod").ZodString;
|
|
778
|
+
occurredAt: import("zod").ZodString;
|
|
779
|
+
eventType: import("zod").ZodLiteral<"diff">;
|
|
780
|
+
payload: import("zod").ZodObject<{
|
|
781
|
+
path: import("zod").ZodString;
|
|
782
|
+
status: import("zod").ZodEnum<{
|
|
783
|
+
added: "added";
|
|
784
|
+
modified: "modified";
|
|
785
|
+
deleted: "deleted";
|
|
786
|
+
renamed: "renamed";
|
|
787
|
+
}>;
|
|
788
|
+
patch: import("zod").ZodOptional<import("zod").ZodString>;
|
|
789
|
+
}, import("zod/v4/core").$strict>;
|
|
790
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
791
|
+
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
792
|
+
eventId: import("zod").ZodString;
|
|
793
|
+
sessionId: import("zod").ZodString;
|
|
794
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
795
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
796
|
+
sequence: import("zod").ZodNumber;
|
|
797
|
+
idempotencyKey: import("zod").ZodString;
|
|
798
|
+
occurredAt: import("zod").ZodString;
|
|
799
|
+
eventType: import("zod").ZodLiteral<"workspace-file">;
|
|
800
|
+
payload: import("zod").ZodObject<{
|
|
801
|
+
path: import("zod").ZodString;
|
|
802
|
+
operation: import("zod").ZodEnum<{
|
|
803
|
+
upsert: "upsert";
|
|
804
|
+
delete: "delete";
|
|
805
|
+
}>;
|
|
806
|
+
mimeType: import("zod").ZodOptional<import("zod").ZodString>;
|
|
807
|
+
size: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
808
|
+
}, import("zod/v4/core").$strict>;
|
|
809
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
810
|
+
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
811
|
+
eventId: import("zod").ZodString;
|
|
812
|
+
sessionId: import("zod").ZodString;
|
|
813
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
814
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
815
|
+
sequence: import("zod").ZodNumber;
|
|
816
|
+
idempotencyKey: import("zod").ZodString;
|
|
817
|
+
occurredAt: import("zod").ZodString;
|
|
818
|
+
eventType: import("zod").ZodLiteral<"terminal">;
|
|
819
|
+
payload: import("zod").ZodObject<{
|
|
820
|
+
terminalId: import("zod").ZodString;
|
|
821
|
+
stream: import("zod").ZodEnum<{
|
|
822
|
+
status: "status";
|
|
823
|
+
stdin: "stdin";
|
|
824
|
+
stdout: "stdout";
|
|
825
|
+
stderr: "stderr";
|
|
826
|
+
}>;
|
|
827
|
+
chunk: import("zod").ZodString;
|
|
828
|
+
exitCode: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
829
|
+
}, import("zod/v4/core").$strict>;
|
|
830
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
831
|
+
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
832
|
+
eventId: import("zod").ZodString;
|
|
833
|
+
sessionId: import("zod").ZodString;
|
|
834
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
835
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
836
|
+
sequence: import("zod").ZodNumber;
|
|
837
|
+
idempotencyKey: import("zod").ZodString;
|
|
838
|
+
occurredAt: import("zod").ZodString;
|
|
839
|
+
eventType: import("zod").ZodLiteral<"test-result">;
|
|
840
|
+
payload: import("zod").ZodObject<{
|
|
841
|
+
testId: import("zod").ZodString;
|
|
842
|
+
name: import("zod").ZodString;
|
|
843
|
+
status: import("zod").ZodEnum<{
|
|
844
|
+
running: "running";
|
|
845
|
+
failed: "failed";
|
|
846
|
+
skipped: "skipped";
|
|
847
|
+
passed: "passed";
|
|
848
|
+
}>;
|
|
849
|
+
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
850
|
+
output: import("zod").ZodOptional<import("zod").ZodString>;
|
|
851
|
+
}, import("zod/v4/core").$strict>;
|
|
852
|
+
}, import("zod/v4/core").$strict>], "eventType">;
|
|
853
|
+
readonly 'agent-session-run': import("zod").ZodObject<{
|
|
854
|
+
runId: import("zod").ZodString;
|
|
855
|
+
sessionId: import("zod").ZodString;
|
|
856
|
+
sourceMessageId: import("zod").ZodString;
|
|
857
|
+
status: import("zod").ZodEnum<{
|
|
858
|
+
queued: "queued";
|
|
859
|
+
running: "running";
|
|
860
|
+
waiting_approval: "waiting_approval";
|
|
861
|
+
stopping: "stopping";
|
|
862
|
+
stopped: "stopped";
|
|
863
|
+
completed: "completed";
|
|
864
|
+
failed: "failed";
|
|
865
|
+
}>;
|
|
866
|
+
startedAt: import("zod").ZodString;
|
|
867
|
+
stoppingRequestedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
868
|
+
stoppedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
869
|
+
completedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
870
|
+
failedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
871
|
+
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
872
|
+
}, import("zod/v4/core").$strict>;
|
|
410
873
|
readonly 'agent-session-view-model': import("zod").ZodObject<{
|
|
411
874
|
contract: import("zod").ZodLiteral<"AgentSessionViewModel">;
|
|
412
875
|
sessionId: import("zod").ZodString;
|
|
@@ -449,6 +912,8 @@ export declare const canonicalContractSchemas: {
|
|
|
449
912
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
450
913
|
eventId: import("zod").ZodString;
|
|
451
914
|
sessionId: import("zod").ZodString;
|
|
915
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
916
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
452
917
|
sequence: import("zod").ZodNumber;
|
|
453
918
|
idempotencyKey: import("zod").ZodString;
|
|
454
919
|
occurredAt: import("zod").ZodString;
|
|
@@ -475,6 +940,8 @@ export declare const canonicalContractSchemas: {
|
|
|
475
940
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
476
941
|
eventId: import("zod").ZodString;
|
|
477
942
|
sessionId: import("zod").ZodString;
|
|
943
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
944
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
478
945
|
sequence: import("zod").ZodNumber;
|
|
479
946
|
idempotencyKey: import("zod").ZodString;
|
|
480
947
|
occurredAt: import("zod").ZodString;
|
|
@@ -491,6 +958,8 @@ export declare const canonicalContractSchemas: {
|
|
|
491
958
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
492
959
|
eventId: import("zod").ZodString;
|
|
493
960
|
sessionId: import("zod").ZodString;
|
|
961
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
962
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
494
963
|
sequence: import("zod").ZodNumber;
|
|
495
964
|
idempotencyKey: import("zod").ZodString;
|
|
496
965
|
occurredAt: import("zod").ZodString;
|
|
@@ -520,6 +989,8 @@ export declare const canonicalContractSchemas: {
|
|
|
520
989
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
521
990
|
eventId: import("zod").ZodString;
|
|
522
991
|
sessionId: import("zod").ZodString;
|
|
992
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
993
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
523
994
|
sequence: import("zod").ZodNumber;
|
|
524
995
|
idempotencyKey: import("zod").ZodString;
|
|
525
996
|
occurredAt: import("zod").ZodString;
|
|
@@ -540,6 +1011,8 @@ export declare const canonicalContractSchemas: {
|
|
|
540
1011
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
541
1012
|
eventId: import("zod").ZodString;
|
|
542
1013
|
sessionId: import("zod").ZodString;
|
|
1014
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1015
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
543
1016
|
sequence: import("zod").ZodNumber;
|
|
544
1017
|
idempotencyKey: import("zod").ZodString;
|
|
545
1018
|
occurredAt: import("zod").ZodString;
|
|
@@ -564,6 +1037,8 @@ export declare const canonicalContractSchemas: {
|
|
|
564
1037
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
565
1038
|
eventId: import("zod").ZodString;
|
|
566
1039
|
sessionId: import("zod").ZodString;
|
|
1040
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1041
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
567
1042
|
sequence: import("zod").ZodNumber;
|
|
568
1043
|
idempotencyKey: import("zod").ZodString;
|
|
569
1044
|
occurredAt: import("zod").ZodString;
|
|
@@ -585,6 +1060,8 @@ export declare const canonicalContractSchemas: {
|
|
|
585
1060
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
586
1061
|
eventId: import("zod").ZodString;
|
|
587
1062
|
sessionId: import("zod").ZodString;
|
|
1063
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1064
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
588
1065
|
sequence: import("zod").ZodNumber;
|
|
589
1066
|
idempotencyKey: import("zod").ZodString;
|
|
590
1067
|
occurredAt: import("zod").ZodString;
|
|
@@ -600,11 +1077,19 @@ export declare const canonicalContractSchemas: {
|
|
|
600
1077
|
failed: "failed";
|
|
601
1078
|
}>;
|
|
602
1079
|
detail: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1080
|
+
startedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1081
|
+
stoppingRequestedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1082
|
+
stoppedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1083
|
+
completedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1084
|
+
failedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1085
|
+
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
603
1086
|
}, import("zod/v4/core").$strict>;
|
|
604
1087
|
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
605
1088
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
606
1089
|
eventId: import("zod").ZodString;
|
|
607
1090
|
sessionId: import("zod").ZodString;
|
|
1091
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1092
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
608
1093
|
sequence: import("zod").ZodNumber;
|
|
609
1094
|
idempotencyKey: import("zod").ZodString;
|
|
610
1095
|
occurredAt: import("zod").ZodString;
|
|
@@ -634,6 +1119,8 @@ export declare const canonicalContractSchemas: {
|
|
|
634
1119
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
635
1120
|
eventId: import("zod").ZodString;
|
|
636
1121
|
sessionId: import("zod").ZodString;
|
|
1122
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1123
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
637
1124
|
sequence: import("zod").ZodNumber;
|
|
638
1125
|
idempotencyKey: import("zod").ZodString;
|
|
639
1126
|
occurredAt: import("zod").ZodString;
|
|
@@ -649,6 +1136,8 @@ export declare const canonicalContractSchemas: {
|
|
|
649
1136
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
650
1137
|
eventId: import("zod").ZodString;
|
|
651
1138
|
sessionId: import("zod").ZodString;
|
|
1139
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1140
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
652
1141
|
sequence: import("zod").ZodNumber;
|
|
653
1142
|
idempotencyKey: import("zod").ZodString;
|
|
654
1143
|
occurredAt: import("zod").ZodString;
|
|
@@ -662,6 +1151,8 @@ export declare const canonicalContractSchemas: {
|
|
|
662
1151
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
663
1152
|
eventId: import("zod").ZodString;
|
|
664
1153
|
sessionId: import("zod").ZodString;
|
|
1154
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1155
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
665
1156
|
sequence: import("zod").ZodNumber;
|
|
666
1157
|
idempotencyKey: import("zod").ZodString;
|
|
667
1158
|
occurredAt: import("zod").ZodString;
|
|
@@ -677,6 +1168,8 @@ export declare const canonicalContractSchemas: {
|
|
|
677
1168
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
678
1169
|
eventId: import("zod").ZodString;
|
|
679
1170
|
sessionId: import("zod").ZodString;
|
|
1171
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1172
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
680
1173
|
sequence: import("zod").ZodNumber;
|
|
681
1174
|
idempotencyKey: import("zod").ZodString;
|
|
682
1175
|
occurredAt: import("zod").ZodString;
|
|
@@ -695,6 +1188,8 @@ export declare const canonicalContractSchemas: {
|
|
|
695
1188
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
696
1189
|
eventId: import("zod").ZodString;
|
|
697
1190
|
sessionId: import("zod").ZodString;
|
|
1191
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1192
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
698
1193
|
sequence: import("zod").ZodNumber;
|
|
699
1194
|
idempotencyKey: import("zod").ZodString;
|
|
700
1195
|
occurredAt: import("zod").ZodString;
|
|
@@ -712,6 +1207,8 @@ export declare const canonicalContractSchemas: {
|
|
|
712
1207
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
713
1208
|
eventId: import("zod").ZodString;
|
|
714
1209
|
sessionId: import("zod").ZodString;
|
|
1210
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1211
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
715
1212
|
sequence: import("zod").ZodNumber;
|
|
716
1213
|
idempotencyKey: import("zod").ZodString;
|
|
717
1214
|
occurredAt: import("zod").ZodString;
|
|
@@ -731,6 +1228,8 @@ export declare const canonicalContractSchemas: {
|
|
|
731
1228
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
732
1229
|
eventId: import("zod").ZodString;
|
|
733
1230
|
sessionId: import("zod").ZodString;
|
|
1231
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1232
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
734
1233
|
sequence: import("zod").ZodNumber;
|
|
735
1234
|
idempotencyKey: import("zod").ZodString;
|
|
736
1235
|
occurredAt: import("zod").ZodString;
|