@inf-monkeys-tech/monkeys 1.0.20 → 1.0.22
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 +1079 -95
- package/lib/contracts/agent.d.ts.map +1 -1
- package/lib/contracts/agent.js +365 -4
- package/lib/contracts/agent.js.map +1 -1
- package/lib/contracts/theme.d.ts +1 -1
- package/lib/esm/contracts/index.mjs +347 -9
- package/lib/esm/contracts/index.mjs.map +1 -1
- package/lib/esm/index.mjs +350 -9
- package/lib/esm/index.mjs.map +1 -1
- package/lib/esm/runtime/index.mjs +311 -8
- package/lib/esm/runtime/index.mjs.map +1 -1
- package/lib/esm/schemas/index.mjs +322 -8
- package/lib/esm/schemas/index.mjs.map +1 -1
- package/lib/json-schema/agent-session-command-result.schema.json +120 -0
- package/lib/json-schema/agent-session-command.schema.json +395 -0
- package/lib/json-schema/agent-session-event.schema.json +285 -0
- package/lib/json-schema/agent-session-run-event.schema.json +1607 -0
- package/lib/json-schema/agent-session-run.schema.json +72 -0
- package/lib/json-schema/agent-session-targeted-command.schema.json +677 -0
- package/lib/json-schema/agent-session-view-model.schema.json +396 -1
- package/lib/json-schema/index.json +3 -0
- package/lib/schemas/index.d.ts +783 -1
- package/lib/schemas/index.d.ts.map +1 -1
- package/lib/schemas/index.js +14 -3
- package/lib/schemas/index.js.map +1 -1
- package/package.json +1 -1
- package/test/fixtures/agent-session-agent.json +5 -1
- package/test/fixtures/agent-session-chatbot.json +5 -1
- package/test/fixtures/agent-session-kernel.json +5 -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, AgentSessionActiveBranchSchema, AgentSessionCommandPolicySchema, AgentSessionCommandErrorCodeSchema, AgentSessionCommandResultSchema, AgentSessionCommandSchema, AgentSessionCommandTypeSchema, AgentSessionEventSchema, AgentSessionContextInheritanceSchema, AgentSessionLineageSchema, 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;
|
|
@@ -63,11 +67,240 @@ export declare const canonicalContractSchemas: {
|
|
|
63
67
|
}>;
|
|
64
68
|
reason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
65
69
|
}, import("zod/v4/core").$strict>;
|
|
70
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
71
|
+
contract: import("zod").ZodLiteral<"AgentSessionCommand">;
|
|
72
|
+
commandId: import("zod").ZodString;
|
|
73
|
+
sessionId: import("zod").ZodString;
|
|
74
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
75
|
+
idempotencyKey: import("zod").ZodString;
|
|
76
|
+
expectedSequence: import("zod").ZodNumber;
|
|
77
|
+
issuedAt: import("zod").ZodString;
|
|
78
|
+
commandType: import("zod").ZodLiteral<"fork">;
|
|
79
|
+
payload: import("zod").ZodObject<{
|
|
80
|
+
sourceThreadId: import("zod").ZodString;
|
|
81
|
+
sourceMessageId: import("zod").ZodString;
|
|
82
|
+
sourceRunId: import("zod").ZodString;
|
|
83
|
+
inheritance: import("zod").ZodObject<{
|
|
84
|
+
messages: import("zod").ZodEnum<{
|
|
85
|
+
"through-source-message": "through-source-message";
|
|
86
|
+
exclude: "exclude";
|
|
87
|
+
}>;
|
|
88
|
+
attachments: import("zod").ZodEnum<{
|
|
89
|
+
exclude: "exclude";
|
|
90
|
+
inherit: "inherit";
|
|
91
|
+
}>;
|
|
92
|
+
summaries: import("zod").ZodEnum<{
|
|
93
|
+
exclude: "exclude";
|
|
94
|
+
inherit: "inherit";
|
|
95
|
+
}>;
|
|
96
|
+
toolResults: import("zod").ZodEnum<{
|
|
97
|
+
exclude: "exclude";
|
|
98
|
+
inherit: "inherit";
|
|
99
|
+
}>;
|
|
100
|
+
codeChanges: import("zod").ZodEnum<{
|
|
101
|
+
exclude: "exclude";
|
|
102
|
+
inherit: "inherit";
|
|
103
|
+
}>;
|
|
104
|
+
}, import("zod/v4/core").$strict>;
|
|
105
|
+
}, import("zod/v4/core").$strict>;
|
|
106
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
107
|
+
contract: import("zod").ZodLiteral<"AgentSessionCommand">;
|
|
108
|
+
commandId: import("zod").ZodString;
|
|
109
|
+
sessionId: import("zod").ZodString;
|
|
110
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
111
|
+
idempotencyKey: import("zod").ZodString;
|
|
112
|
+
expectedSequence: import("zod").ZodNumber;
|
|
113
|
+
issuedAt: import("zod").ZodString;
|
|
114
|
+
commandType: import("zod").ZodLiteral<"edit-and-rerun">;
|
|
115
|
+
payload: import("zod").ZodObject<{
|
|
116
|
+
sourceThreadId: import("zod").ZodString;
|
|
117
|
+
sourceMessageId: import("zod").ZodString;
|
|
118
|
+
sourceRunId: import("zod").ZodString;
|
|
119
|
+
replacementParts: import("zod").ZodArray<import("zod").ZodType<import("../contracts/common").JsonValue, unknown, import("zod/v4/core").$ZodTypeInternals<import("../contracts/common").JsonValue, unknown>>>;
|
|
120
|
+
inheritance: import("zod").ZodObject<{
|
|
121
|
+
messages: import("zod").ZodEnum<{
|
|
122
|
+
"through-source-message": "through-source-message";
|
|
123
|
+
exclude: "exclude";
|
|
124
|
+
}>;
|
|
125
|
+
attachments: import("zod").ZodEnum<{
|
|
126
|
+
exclude: "exclude";
|
|
127
|
+
inherit: "inherit";
|
|
128
|
+
}>;
|
|
129
|
+
summaries: import("zod").ZodEnum<{
|
|
130
|
+
exclude: "exclude";
|
|
131
|
+
inherit: "inherit";
|
|
132
|
+
}>;
|
|
133
|
+
toolResults: import("zod").ZodEnum<{
|
|
134
|
+
exclude: "exclude";
|
|
135
|
+
inherit: "inherit";
|
|
136
|
+
}>;
|
|
137
|
+
codeChanges: import("zod").ZodEnum<{
|
|
138
|
+
exclude: "exclude";
|
|
139
|
+
inherit: "inherit";
|
|
140
|
+
}>;
|
|
141
|
+
}, import("zod/v4/core").$strict>;
|
|
142
|
+
}, import("zod/v4/core").$strict>;
|
|
143
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
144
|
+
contract: import("zod").ZodLiteral<"AgentSessionCommand">;
|
|
145
|
+
commandId: import("zod").ZodString;
|
|
146
|
+
sessionId: import("zod").ZodString;
|
|
147
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
148
|
+
idempotencyKey: import("zod").ZodString;
|
|
149
|
+
expectedSequence: import("zod").ZodNumber;
|
|
150
|
+
issuedAt: import("zod").ZodString;
|
|
151
|
+
commandType: import("zod").ZodLiteral<"steer">;
|
|
152
|
+
payload: import("zod").ZodObject<{
|
|
153
|
+
targetRunId: import("zod").ZodString;
|
|
154
|
+
guidanceParts: import("zod").ZodArray<import("zod").ZodType<import("../contracts/common").JsonValue, unknown, import("zod/v4/core").$ZodTypeInternals<import("../contracts/common").JsonValue, unknown>>>;
|
|
155
|
+
}, import("zod/v4/core").$strict>;
|
|
66
156
|
}, import("zod/v4/core").$strict>], "commandType">;
|
|
157
|
+
readonly 'agent-session-targeted-command': import("zod").ZodIntersection<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
158
|
+
contract: import("zod").ZodLiteral<"AgentSessionCommand">;
|
|
159
|
+
commandId: import("zod").ZodString;
|
|
160
|
+
sessionId: import("zod").ZodString;
|
|
161
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
162
|
+
idempotencyKey: import("zod").ZodString;
|
|
163
|
+
expectedSequence: import("zod").ZodNumber;
|
|
164
|
+
issuedAt: import("zod").ZodString;
|
|
165
|
+
commandType: import("zod").ZodLiteral<"stop">;
|
|
166
|
+
payload: import("zod").ZodObject<{
|
|
167
|
+
reason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
168
|
+
}, import("zod/v4/core").$strict>;
|
|
169
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
170
|
+
contract: import("zod").ZodLiteral<"AgentSessionCommand">;
|
|
171
|
+
commandId: import("zod").ZodString;
|
|
172
|
+
sessionId: import("zod").ZodString;
|
|
173
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
174
|
+
idempotencyKey: import("zod").ZodString;
|
|
175
|
+
expectedSequence: import("zod").ZodNumber;
|
|
176
|
+
issuedAt: import("zod").ZodString;
|
|
177
|
+
commandType: import("zod").ZodLiteral<"resume">;
|
|
178
|
+
payload: import("zod").ZodObject<{
|
|
179
|
+
resumeEventId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
180
|
+
}, import("zod/v4/core").$strict>;
|
|
181
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
182
|
+
contract: import("zod").ZodLiteral<"AgentSessionCommand">;
|
|
183
|
+
commandId: import("zod").ZodString;
|
|
184
|
+
sessionId: import("zod").ZodString;
|
|
185
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
186
|
+
idempotencyKey: import("zod").ZodString;
|
|
187
|
+
expectedSequence: import("zod").ZodNumber;
|
|
188
|
+
issuedAt: import("zod").ZodString;
|
|
189
|
+
commandType: import("zod").ZodLiteral<"retry">;
|
|
190
|
+
payload: import("zod").ZodObject<{
|
|
191
|
+
sourceEventId: import("zod").ZodString;
|
|
192
|
+
}, import("zod/v4/core").$strict>;
|
|
193
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
194
|
+
contract: import("zod").ZodLiteral<"AgentSessionCommand">;
|
|
195
|
+
commandId: import("zod").ZodString;
|
|
196
|
+
sessionId: import("zod").ZodString;
|
|
197
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
198
|
+
idempotencyKey: import("zod").ZodString;
|
|
199
|
+
expectedSequence: import("zod").ZodNumber;
|
|
200
|
+
issuedAt: import("zod").ZodString;
|
|
201
|
+
commandType: import("zod").ZodLiteral<"approval">;
|
|
202
|
+
payload: import("zod").ZodObject<{
|
|
203
|
+
approvalId: import("zod").ZodString;
|
|
204
|
+
decision: import("zod").ZodEnum<{
|
|
205
|
+
approved: "approved";
|
|
206
|
+
rejected: "rejected";
|
|
207
|
+
}>;
|
|
208
|
+
reason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
209
|
+
}, import("zod/v4/core").$strict>;
|
|
210
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
211
|
+
contract: import("zod").ZodLiteral<"AgentSessionCommand">;
|
|
212
|
+
commandId: import("zod").ZodString;
|
|
213
|
+
sessionId: import("zod").ZodString;
|
|
214
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
215
|
+
idempotencyKey: import("zod").ZodString;
|
|
216
|
+
expectedSequence: import("zod").ZodNumber;
|
|
217
|
+
issuedAt: import("zod").ZodString;
|
|
218
|
+
commandType: import("zod").ZodLiteral<"fork">;
|
|
219
|
+
payload: import("zod").ZodObject<{
|
|
220
|
+
sourceThreadId: import("zod").ZodString;
|
|
221
|
+
sourceMessageId: import("zod").ZodString;
|
|
222
|
+
sourceRunId: import("zod").ZodString;
|
|
223
|
+
inheritance: import("zod").ZodObject<{
|
|
224
|
+
messages: import("zod").ZodEnum<{
|
|
225
|
+
"through-source-message": "through-source-message";
|
|
226
|
+
exclude: "exclude";
|
|
227
|
+
}>;
|
|
228
|
+
attachments: import("zod").ZodEnum<{
|
|
229
|
+
exclude: "exclude";
|
|
230
|
+
inherit: "inherit";
|
|
231
|
+
}>;
|
|
232
|
+
summaries: import("zod").ZodEnum<{
|
|
233
|
+
exclude: "exclude";
|
|
234
|
+
inherit: "inherit";
|
|
235
|
+
}>;
|
|
236
|
+
toolResults: import("zod").ZodEnum<{
|
|
237
|
+
exclude: "exclude";
|
|
238
|
+
inherit: "inherit";
|
|
239
|
+
}>;
|
|
240
|
+
codeChanges: import("zod").ZodEnum<{
|
|
241
|
+
exclude: "exclude";
|
|
242
|
+
inherit: "inherit";
|
|
243
|
+
}>;
|
|
244
|
+
}, import("zod/v4/core").$strict>;
|
|
245
|
+
}, import("zod/v4/core").$strict>;
|
|
246
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
247
|
+
contract: import("zod").ZodLiteral<"AgentSessionCommand">;
|
|
248
|
+
commandId: import("zod").ZodString;
|
|
249
|
+
sessionId: import("zod").ZodString;
|
|
250
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
251
|
+
idempotencyKey: import("zod").ZodString;
|
|
252
|
+
expectedSequence: import("zod").ZodNumber;
|
|
253
|
+
issuedAt: import("zod").ZodString;
|
|
254
|
+
commandType: import("zod").ZodLiteral<"edit-and-rerun">;
|
|
255
|
+
payload: import("zod").ZodObject<{
|
|
256
|
+
sourceThreadId: import("zod").ZodString;
|
|
257
|
+
sourceMessageId: import("zod").ZodString;
|
|
258
|
+
sourceRunId: import("zod").ZodString;
|
|
259
|
+
replacementParts: import("zod").ZodArray<import("zod").ZodType<import("../contracts/common").JsonValue, unknown, import("zod/v4/core").$ZodTypeInternals<import("../contracts/common").JsonValue, unknown>>>;
|
|
260
|
+
inheritance: import("zod").ZodObject<{
|
|
261
|
+
messages: import("zod").ZodEnum<{
|
|
262
|
+
"through-source-message": "through-source-message";
|
|
263
|
+
exclude: "exclude";
|
|
264
|
+
}>;
|
|
265
|
+
attachments: import("zod").ZodEnum<{
|
|
266
|
+
exclude: "exclude";
|
|
267
|
+
inherit: "inherit";
|
|
268
|
+
}>;
|
|
269
|
+
summaries: import("zod").ZodEnum<{
|
|
270
|
+
exclude: "exclude";
|
|
271
|
+
inherit: "inherit";
|
|
272
|
+
}>;
|
|
273
|
+
toolResults: import("zod").ZodEnum<{
|
|
274
|
+
exclude: "exclude";
|
|
275
|
+
inherit: "inherit";
|
|
276
|
+
}>;
|
|
277
|
+
codeChanges: import("zod").ZodEnum<{
|
|
278
|
+
exclude: "exclude";
|
|
279
|
+
inherit: "inherit";
|
|
280
|
+
}>;
|
|
281
|
+
}, import("zod/v4/core").$strict>;
|
|
282
|
+
}, import("zod/v4/core").$strict>;
|
|
283
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
284
|
+
contract: import("zod").ZodLiteral<"AgentSessionCommand">;
|
|
285
|
+
commandId: import("zod").ZodString;
|
|
286
|
+
sessionId: import("zod").ZodString;
|
|
287
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
288
|
+
idempotencyKey: import("zod").ZodString;
|
|
289
|
+
expectedSequence: import("zod").ZodNumber;
|
|
290
|
+
issuedAt: import("zod").ZodString;
|
|
291
|
+
commandType: import("zod").ZodLiteral<"steer">;
|
|
292
|
+
payload: import("zod").ZodObject<{
|
|
293
|
+
targetRunId: import("zod").ZodString;
|
|
294
|
+
guidanceParts: import("zod").ZodArray<import("zod").ZodType<import("../contracts/common").JsonValue, unknown, import("zod/v4/core").$ZodTypeInternals<import("../contracts/common").JsonValue, unknown>>>;
|
|
295
|
+
}, import("zod/v4/core").$strict>;
|
|
296
|
+
}, import("zod/v4/core").$strict>], "commandType">, import("zod").ZodObject<{
|
|
297
|
+
runId: import("zod").ZodString;
|
|
298
|
+
}, import("zod/v4/core").$strip>>;
|
|
67
299
|
readonly 'agent-session-command-result': import("zod").ZodObject<{
|
|
68
300
|
contract: import("zod").ZodLiteral<"AgentSessionCommandResult">;
|
|
69
301
|
commandId: import("zod").ZodString;
|
|
70
302
|
sessionId: import("zod").ZodString;
|
|
303
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
71
304
|
idempotencyKey: import("zod").ZodString;
|
|
72
305
|
outcome: import("zod").ZodEnum<{
|
|
73
306
|
failed: "failed";
|
|
@@ -86,9 +319,35 @@ export declare const canonicalContractSchemas: {
|
|
|
86
319
|
}>;
|
|
87
320
|
acceptedSequence: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
88
321
|
resultEventIds: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
|
|
322
|
+
operation: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
323
|
+
lineage: import("zod").ZodObject<{
|
|
324
|
+
forkedFromThreadId: import("zod").ZodString;
|
|
325
|
+
forkedFromMessageId: import("zod").ZodString;
|
|
326
|
+
sourceRunId: import("zod").ZodString;
|
|
327
|
+
}, import("zod/v4/core").$strict>;
|
|
328
|
+
activeBranch: import("zod").ZodObject<{
|
|
329
|
+
branchId: import("zod").ZodString;
|
|
330
|
+
threadId: import("zod").ZodString;
|
|
331
|
+
sourceMessageId: import("zod").ZodString;
|
|
332
|
+
runId: import("zod").ZodString;
|
|
333
|
+
lineage: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
334
|
+
forkedFromThreadId: import("zod").ZodString;
|
|
335
|
+
forkedFromMessageId: import("zod").ZodString;
|
|
336
|
+
sourceRunId: import("zod").ZodString;
|
|
337
|
+
}, import("zod/v4/core").$strict>>;
|
|
338
|
+
createdAt: import("zod").ZodString;
|
|
339
|
+
}, import("zod/v4/core").$strict>;
|
|
340
|
+
}, import("zod/v4/core").$strict>>;
|
|
341
|
+
termination: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
342
|
+
requested: "requested";
|
|
343
|
+
confirmed: "confirmed";
|
|
344
|
+
}>>;
|
|
89
345
|
error: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
90
346
|
code: import("zod").ZodEnum<{
|
|
91
347
|
SESSION_NOT_FOUND: "SESSION_NOT_FOUND";
|
|
348
|
+
RUN_NOT_FOUND: "RUN_NOT_FOUND";
|
|
349
|
+
RUN_ALREADY_FINISHED: "RUN_ALREADY_FINISHED";
|
|
350
|
+
STOP_TIMEOUT: "STOP_TIMEOUT";
|
|
92
351
|
COMMAND_NOT_SUPPORTED: "COMMAND_NOT_SUPPORTED";
|
|
93
352
|
CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
|
|
94
353
|
SEQUENCE_CONFLICT: "SEQUENCE_CONFLICT";
|
|
@@ -97,6 +356,11 @@ export declare const canonicalContractSchemas: {
|
|
|
97
356
|
TARGET_EVENT_NOT_RETRYABLE: "TARGET_EVENT_NOT_RETRYABLE";
|
|
98
357
|
APPROVAL_NOT_FOUND: "APPROVAL_NOT_FOUND";
|
|
99
358
|
APPROVAL_ALREADY_RESOLVED: "APPROVAL_ALREADY_RESOLVED";
|
|
359
|
+
SOURCE_THREAD_NOT_FOUND: "SOURCE_THREAD_NOT_FOUND";
|
|
360
|
+
SOURCE_MESSAGE_NOT_FOUND: "SOURCE_MESSAGE_NOT_FOUND";
|
|
361
|
+
SOURCE_RUN_NOT_FOUND: "SOURCE_RUN_NOT_FOUND";
|
|
362
|
+
SOURCE_LINEAGE_INVALID: "SOURCE_LINEAGE_INVALID";
|
|
363
|
+
ACTIVE_BRANCH_NOT_FOUND: "ACTIVE_BRANCH_NOT_FOUND";
|
|
100
364
|
COMMAND_EXECUTION_FAILED: "COMMAND_EXECUTION_FAILED";
|
|
101
365
|
}>;
|
|
102
366
|
message: import("zod").ZodString;
|
|
@@ -108,6 +372,369 @@ export declare const canonicalContractSchemas: {
|
|
|
108
372
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
109
373
|
eventId: import("zod").ZodString;
|
|
110
374
|
sessionId: import("zod").ZodString;
|
|
375
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
376
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
377
|
+
sequence: import("zod").ZodNumber;
|
|
378
|
+
idempotencyKey: import("zod").ZodString;
|
|
379
|
+
occurredAt: import("zod").ZodString;
|
|
380
|
+
eventType: import("zod").ZodLiteral<"message">;
|
|
381
|
+
payload: import("zod").ZodObject<{
|
|
382
|
+
messageId: import("zod").ZodString;
|
|
383
|
+
role: import("zod").ZodEnum<{
|
|
384
|
+
user: "user";
|
|
385
|
+
assistant: "assistant";
|
|
386
|
+
system: "system";
|
|
387
|
+
}>;
|
|
388
|
+
operation: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
389
|
+
replace: "replace";
|
|
390
|
+
append: "append";
|
|
391
|
+
}>>;
|
|
392
|
+
parts: import("zod").ZodArray<import("zod").ZodType<import("../contracts/common").JsonValue, unknown, import("zod/v4/core").$ZodTypeInternals<import("../contracts/common").JsonValue, unknown>>>;
|
|
393
|
+
status: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
394
|
+
completed: "completed";
|
|
395
|
+
failed: "failed";
|
|
396
|
+
streaming: "streaming";
|
|
397
|
+
}>>;
|
|
398
|
+
}, import("zod/v4/core").$strict>;
|
|
399
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
400
|
+
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
401
|
+
eventId: import("zod").ZodString;
|
|
402
|
+
sessionId: import("zod").ZodString;
|
|
403
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
404
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
405
|
+
sequence: import("zod").ZodNumber;
|
|
406
|
+
idempotencyKey: import("zod").ZodString;
|
|
407
|
+
occurredAt: import("zod").ZodString;
|
|
408
|
+
eventType: import("zod").ZodLiteral<"reasoning">;
|
|
409
|
+
payload: import("zod").ZodObject<{
|
|
410
|
+
reasoningId: import("zod").ZodString;
|
|
411
|
+
text: import("zod").ZodString;
|
|
412
|
+
status: import("zod").ZodEnum<{
|
|
413
|
+
completed: "completed";
|
|
414
|
+
streaming: "streaming";
|
|
415
|
+
}>;
|
|
416
|
+
}, import("zod/v4/core").$strict>;
|
|
417
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
418
|
+
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
419
|
+
eventId: import("zod").ZodString;
|
|
420
|
+
sessionId: import("zod").ZodString;
|
|
421
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
422
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
423
|
+
sequence: import("zod").ZodNumber;
|
|
424
|
+
idempotencyKey: import("zod").ZodString;
|
|
425
|
+
occurredAt: import("zod").ZodString;
|
|
426
|
+
eventType: import("zod").ZodLiteral<"plan">;
|
|
427
|
+
payload: import("zod").ZodObject<{
|
|
428
|
+
planId: import("zod").ZodString;
|
|
429
|
+
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
430
|
+
status: import("zod").ZodEnum<{
|
|
431
|
+
running: "running";
|
|
432
|
+
completed: "completed";
|
|
433
|
+
failed: "failed";
|
|
434
|
+
pending: "pending";
|
|
435
|
+
}>;
|
|
436
|
+
steps: import("zod").ZodArray<import("zod").ZodObject<{
|
|
437
|
+
id: import("zod").ZodString;
|
|
438
|
+
title: import("zod").ZodString;
|
|
439
|
+
status: import("zod").ZodEnum<{
|
|
440
|
+
running: "running";
|
|
441
|
+
completed: "completed";
|
|
442
|
+
failed: "failed";
|
|
443
|
+
pending: "pending";
|
|
444
|
+
skipped: "skipped";
|
|
445
|
+
}>;
|
|
446
|
+
}, import("zod/v4/core").$strict>>;
|
|
447
|
+
}, import("zod/v4/core").$strict>;
|
|
448
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
449
|
+
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
450
|
+
eventId: import("zod").ZodString;
|
|
451
|
+
sessionId: import("zod").ZodString;
|
|
452
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
453
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
454
|
+
sequence: import("zod").ZodNumber;
|
|
455
|
+
idempotencyKey: import("zod").ZodString;
|
|
456
|
+
occurredAt: import("zod").ZodString;
|
|
457
|
+
eventType: import("zod").ZodLiteral<"task">;
|
|
458
|
+
payload: import("zod").ZodObject<{
|
|
459
|
+
taskId: import("zod").ZodString;
|
|
460
|
+
title: import("zod").ZodString;
|
|
461
|
+
status: import("zod").ZodEnum<{
|
|
462
|
+
running: "running";
|
|
463
|
+
completed: "completed";
|
|
464
|
+
failed: "failed";
|
|
465
|
+
pending: "pending";
|
|
466
|
+
skipped: "skipped";
|
|
467
|
+
}>;
|
|
468
|
+
detail: import("zod").ZodOptional<import("zod").ZodString>;
|
|
469
|
+
}, import("zod/v4/core").$strict>;
|
|
470
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
471
|
+
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
472
|
+
eventId: import("zod").ZodString;
|
|
473
|
+
sessionId: import("zod").ZodString;
|
|
474
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
475
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
476
|
+
sequence: import("zod").ZodNumber;
|
|
477
|
+
idempotencyKey: import("zod").ZodString;
|
|
478
|
+
occurredAt: import("zod").ZodString;
|
|
479
|
+
eventType: import("zod").ZodLiteral<"tool">;
|
|
480
|
+
payload: import("zod").ZodObject<{
|
|
481
|
+
toolCallId: import("zod").ZodString;
|
|
482
|
+
toolName: import("zod").ZodString;
|
|
483
|
+
status: import("zod").ZodEnum<{
|
|
484
|
+
running: "running";
|
|
485
|
+
completed: "completed";
|
|
486
|
+
failed: "failed";
|
|
487
|
+
pending: "pending";
|
|
488
|
+
denied: "denied";
|
|
489
|
+
}>;
|
|
490
|
+
input: import("zod").ZodOptional<import("zod").ZodType<import("../contracts/common").JsonValue, unknown, import("zod/v4/core").$ZodTypeInternals<import("../contracts/common").JsonValue, unknown>>>;
|
|
491
|
+
output: import("zod").ZodOptional<import("zod").ZodType<import("../contracts/common").JsonValue, unknown, import("zod/v4/core").$ZodTypeInternals<import("../contracts/common").JsonValue, unknown>>>;
|
|
492
|
+
error: import("zod").ZodOptional<import("zod").ZodString>;
|
|
493
|
+
startedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
494
|
+
completedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
495
|
+
}, import("zod/v4/core").$strict>;
|
|
496
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
497
|
+
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
498
|
+
eventId: import("zod").ZodString;
|
|
499
|
+
sessionId: import("zod").ZodString;
|
|
500
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
501
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
502
|
+
sequence: import("zod").ZodNumber;
|
|
503
|
+
idempotencyKey: import("zod").ZodString;
|
|
504
|
+
occurredAt: import("zod").ZodString;
|
|
505
|
+
eventType: import("zod").ZodLiteral<"approval">;
|
|
506
|
+
payload: import("zod").ZodObject<{
|
|
507
|
+
approvalId: import("zod").ZodString;
|
|
508
|
+
toolCallId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
509
|
+
status: import("zod").ZodEnum<{
|
|
510
|
+
approved: "approved";
|
|
511
|
+
rejected: "rejected";
|
|
512
|
+
requested: "requested";
|
|
513
|
+
expired: "expired";
|
|
514
|
+
}>;
|
|
515
|
+
title: import("zod").ZodString;
|
|
516
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
517
|
+
requestedAction: import("zod").ZodOptional<import("zod").ZodType<import("../contracts/common").JsonValue, unknown, import("zod/v4/core").$ZodTypeInternals<import("../contracts/common").JsonValue, unknown>>>;
|
|
518
|
+
}, import("zod/v4/core").$strict>;
|
|
519
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
520
|
+
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
521
|
+
eventId: import("zod").ZodString;
|
|
522
|
+
sessionId: import("zod").ZodString;
|
|
523
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
524
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
525
|
+
sequence: import("zod").ZodNumber;
|
|
526
|
+
idempotencyKey: import("zod").ZodString;
|
|
527
|
+
occurredAt: import("zod").ZodString;
|
|
528
|
+
eventType: import("zod").ZodLiteral<"status">;
|
|
529
|
+
payload: import("zod").ZodObject<{
|
|
530
|
+
status: import("zod").ZodEnum<{
|
|
531
|
+
queued: "queued";
|
|
532
|
+
running: "running";
|
|
533
|
+
waiting_approval: "waiting_approval";
|
|
534
|
+
stopping: "stopping";
|
|
535
|
+
stopped: "stopped";
|
|
536
|
+
completed: "completed";
|
|
537
|
+
failed: "failed";
|
|
538
|
+
}>;
|
|
539
|
+
detail: import("zod").ZodOptional<import("zod").ZodString>;
|
|
540
|
+
startedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
541
|
+
stoppingRequestedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
542
|
+
stoppedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
543
|
+
completedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
544
|
+
failedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
545
|
+
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
546
|
+
}, import("zod/v4/core").$strict>;
|
|
547
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
548
|
+
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
549
|
+
eventId: import("zod").ZodString;
|
|
550
|
+
sessionId: import("zod").ZodString;
|
|
551
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
552
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
553
|
+
sequence: import("zod").ZodNumber;
|
|
554
|
+
idempotencyKey: import("zod").ZodString;
|
|
555
|
+
occurredAt: import("zod").ZodString;
|
|
556
|
+
eventType: import("zod").ZodLiteral<"artifact">;
|
|
557
|
+
payload: import("zod").ZodObject<{
|
|
558
|
+
artifactId: import("zod").ZodString;
|
|
559
|
+
name: import("zod").ZodString;
|
|
560
|
+
kind: import("zod").ZodEnum<{
|
|
561
|
+
file: "file";
|
|
562
|
+
image: "image";
|
|
563
|
+
video: "video";
|
|
564
|
+
audio: "audio";
|
|
565
|
+
web: "web";
|
|
566
|
+
other: "other";
|
|
567
|
+
}>;
|
|
568
|
+
status: import("zod").ZodEnum<{
|
|
569
|
+
failed: "failed";
|
|
570
|
+
pending: "pending";
|
|
571
|
+
ready: "ready";
|
|
572
|
+
}>;
|
|
573
|
+
mimeType: import("zod").ZodOptional<import("zod").ZodString>;
|
|
574
|
+
url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
575
|
+
size: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
576
|
+
sourceEventId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
577
|
+
}, import("zod/v4/core").$strict>;
|
|
578
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
579
|
+
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
580
|
+
eventId: import("zod").ZodString;
|
|
581
|
+
sessionId: import("zod").ZodString;
|
|
582
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
583
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
584
|
+
sequence: import("zod").ZodNumber;
|
|
585
|
+
idempotencyKey: import("zod").ZodString;
|
|
586
|
+
occurredAt: import("zod").ZodString;
|
|
587
|
+
eventType: import("zod").ZodLiteral<"usage">;
|
|
588
|
+
payload: import("zod").ZodObject<{
|
|
589
|
+
inputTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
590
|
+
outputTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
591
|
+
totalTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
592
|
+
contextTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
593
|
+
contextWindow: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
594
|
+
}, import("zod/v4/core").$strict>;
|
|
595
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
596
|
+
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
597
|
+
eventId: import("zod").ZodString;
|
|
598
|
+
sessionId: import("zod").ZodString;
|
|
599
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
600
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
601
|
+
sequence: import("zod").ZodNumber;
|
|
602
|
+
idempotencyKey: import("zod").ZodString;
|
|
603
|
+
occurredAt: import("zod").ZodString;
|
|
604
|
+
eventType: import("zod").ZodLiteral<"resume">;
|
|
605
|
+
payload: import("zod").ZodObject<{
|
|
606
|
+
resumable: import("zod").ZodBoolean;
|
|
607
|
+
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>>>>;
|
|
608
|
+
reason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
609
|
+
}, import("zod/v4/core").$strict>;
|
|
610
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
611
|
+
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
612
|
+
eventId: import("zod").ZodString;
|
|
613
|
+
sessionId: import("zod").ZodString;
|
|
614
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
615
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
616
|
+
sequence: import("zod").ZodNumber;
|
|
617
|
+
idempotencyKey: import("zod").ZodString;
|
|
618
|
+
occurredAt: import("zod").ZodString;
|
|
619
|
+
eventType: import("zod").ZodLiteral<"error">;
|
|
620
|
+
payload: import("zod").ZodObject<{
|
|
621
|
+
code: import("zod").ZodString;
|
|
622
|
+
message: import("zod").ZodString;
|
|
623
|
+
retryable: import("zod").ZodBoolean;
|
|
624
|
+
sourceEventId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
625
|
+
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>>>>;
|
|
626
|
+
}, import("zod/v4/core").$strict>;
|
|
627
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
628
|
+
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
629
|
+
eventId: import("zod").ZodString;
|
|
630
|
+
sessionId: import("zod").ZodString;
|
|
631
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
632
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
633
|
+
sequence: import("zod").ZodNumber;
|
|
634
|
+
idempotencyKey: import("zod").ZodString;
|
|
635
|
+
occurredAt: import("zod").ZodString;
|
|
636
|
+
eventType: import("zod").ZodLiteral<"diff">;
|
|
637
|
+
payload: import("zod").ZodObject<{
|
|
638
|
+
path: import("zod").ZodString;
|
|
639
|
+
status: import("zod").ZodEnum<{
|
|
640
|
+
added: "added";
|
|
641
|
+
modified: "modified";
|
|
642
|
+
deleted: "deleted";
|
|
643
|
+
renamed: "renamed";
|
|
644
|
+
}>;
|
|
645
|
+
patch: import("zod").ZodOptional<import("zod").ZodString>;
|
|
646
|
+
}, import("zod/v4/core").$strict>;
|
|
647
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
648
|
+
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
649
|
+
eventId: import("zod").ZodString;
|
|
650
|
+
sessionId: import("zod").ZodString;
|
|
651
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
652
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
653
|
+
sequence: import("zod").ZodNumber;
|
|
654
|
+
idempotencyKey: import("zod").ZodString;
|
|
655
|
+
occurredAt: import("zod").ZodString;
|
|
656
|
+
eventType: import("zod").ZodLiteral<"workspace-file">;
|
|
657
|
+
payload: import("zod").ZodObject<{
|
|
658
|
+
path: import("zod").ZodString;
|
|
659
|
+
operation: import("zod").ZodEnum<{
|
|
660
|
+
upsert: "upsert";
|
|
661
|
+
delete: "delete";
|
|
662
|
+
}>;
|
|
663
|
+
mimeType: import("zod").ZodOptional<import("zod").ZodString>;
|
|
664
|
+
size: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
665
|
+
}, import("zod/v4/core").$strict>;
|
|
666
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
667
|
+
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
668
|
+
eventId: import("zod").ZodString;
|
|
669
|
+
sessionId: import("zod").ZodString;
|
|
670
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
671
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
672
|
+
sequence: import("zod").ZodNumber;
|
|
673
|
+
idempotencyKey: import("zod").ZodString;
|
|
674
|
+
occurredAt: import("zod").ZodString;
|
|
675
|
+
eventType: import("zod").ZodLiteral<"terminal">;
|
|
676
|
+
payload: import("zod").ZodObject<{
|
|
677
|
+
terminalId: import("zod").ZodString;
|
|
678
|
+
stream: import("zod").ZodEnum<{
|
|
679
|
+
status: "status";
|
|
680
|
+
stdin: "stdin";
|
|
681
|
+
stdout: "stdout";
|
|
682
|
+
stderr: "stderr";
|
|
683
|
+
}>;
|
|
684
|
+
chunk: import("zod").ZodString;
|
|
685
|
+
exitCode: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
686
|
+
}, import("zod/v4/core").$strict>;
|
|
687
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
688
|
+
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
689
|
+
eventId: import("zod").ZodString;
|
|
690
|
+
sessionId: import("zod").ZodString;
|
|
691
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
692
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
693
|
+
sequence: import("zod").ZodNumber;
|
|
694
|
+
idempotencyKey: import("zod").ZodString;
|
|
695
|
+
occurredAt: import("zod").ZodString;
|
|
696
|
+
eventType: import("zod").ZodLiteral<"test-result">;
|
|
697
|
+
payload: import("zod").ZodObject<{
|
|
698
|
+
testId: import("zod").ZodString;
|
|
699
|
+
name: import("zod").ZodString;
|
|
700
|
+
status: import("zod").ZodEnum<{
|
|
701
|
+
running: "running";
|
|
702
|
+
failed: "failed";
|
|
703
|
+
skipped: "skipped";
|
|
704
|
+
passed: "passed";
|
|
705
|
+
}>;
|
|
706
|
+
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
707
|
+
output: import("zod").ZodOptional<import("zod").ZodString>;
|
|
708
|
+
}, import("zod/v4/core").$strict>;
|
|
709
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
710
|
+
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
711
|
+
eventId: import("zod").ZodString;
|
|
712
|
+
sessionId: import("zod").ZodString;
|
|
713
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
714
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
715
|
+
sequence: import("zod").ZodNumber;
|
|
716
|
+
idempotencyKey: import("zod").ZodString;
|
|
717
|
+
occurredAt: import("zod").ZodString;
|
|
718
|
+
eventType: import("zod").ZodLiteral<"summary">;
|
|
719
|
+
payload: import("zod").ZodObject<{
|
|
720
|
+
summaryId: import("zod").ZodString;
|
|
721
|
+
runId: import("zod").ZodString;
|
|
722
|
+
text: import("zod").ZodString;
|
|
723
|
+
highlights: import("zod").ZodArray<import("zod").ZodString>;
|
|
724
|
+
pendingItems: import("zod").ZodArray<import("zod").ZodString>;
|
|
725
|
+
status: import("zod").ZodEnum<{
|
|
726
|
+
completed: "completed";
|
|
727
|
+
failed: "failed";
|
|
728
|
+
generating: "generating";
|
|
729
|
+
}>;
|
|
730
|
+
}, import("zod/v4/core").$strict>;
|
|
731
|
+
}, import("zod/v4/core").$strict>], "eventType">;
|
|
732
|
+
readonly 'agent-session-run-event': import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
733
|
+
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
734
|
+
eventId: import("zod").ZodString;
|
|
735
|
+
sessionId: import("zod").ZodString;
|
|
736
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
737
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
111
738
|
sequence: import("zod").ZodNumber;
|
|
112
739
|
idempotencyKey: import("zod").ZodString;
|
|
113
740
|
occurredAt: import("zod").ZodString;
|
|
@@ -134,6 +761,8 @@ export declare const canonicalContractSchemas: {
|
|
|
134
761
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
135
762
|
eventId: import("zod").ZodString;
|
|
136
763
|
sessionId: import("zod").ZodString;
|
|
764
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
765
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
137
766
|
sequence: import("zod").ZodNumber;
|
|
138
767
|
idempotencyKey: import("zod").ZodString;
|
|
139
768
|
occurredAt: import("zod").ZodString;
|
|
@@ -150,6 +779,8 @@ export declare const canonicalContractSchemas: {
|
|
|
150
779
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
151
780
|
eventId: import("zod").ZodString;
|
|
152
781
|
sessionId: import("zod").ZodString;
|
|
782
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
783
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
153
784
|
sequence: import("zod").ZodNumber;
|
|
154
785
|
idempotencyKey: import("zod").ZodString;
|
|
155
786
|
occurredAt: import("zod").ZodString;
|
|
@@ -179,6 +810,8 @@ export declare const canonicalContractSchemas: {
|
|
|
179
810
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
180
811
|
eventId: import("zod").ZodString;
|
|
181
812
|
sessionId: import("zod").ZodString;
|
|
813
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
814
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
182
815
|
sequence: import("zod").ZodNumber;
|
|
183
816
|
idempotencyKey: import("zod").ZodString;
|
|
184
817
|
occurredAt: import("zod").ZodString;
|
|
@@ -199,6 +832,8 @@ export declare const canonicalContractSchemas: {
|
|
|
199
832
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
200
833
|
eventId: import("zod").ZodString;
|
|
201
834
|
sessionId: import("zod").ZodString;
|
|
835
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
836
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
202
837
|
sequence: import("zod").ZodNumber;
|
|
203
838
|
idempotencyKey: import("zod").ZodString;
|
|
204
839
|
occurredAt: import("zod").ZodString;
|
|
@@ -223,6 +858,8 @@ export declare const canonicalContractSchemas: {
|
|
|
223
858
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
224
859
|
eventId: import("zod").ZodString;
|
|
225
860
|
sessionId: import("zod").ZodString;
|
|
861
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
862
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
226
863
|
sequence: import("zod").ZodNumber;
|
|
227
864
|
idempotencyKey: import("zod").ZodString;
|
|
228
865
|
occurredAt: import("zod").ZodString;
|
|
@@ -244,6 +881,8 @@ export declare const canonicalContractSchemas: {
|
|
|
244
881
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
245
882
|
eventId: import("zod").ZodString;
|
|
246
883
|
sessionId: import("zod").ZodString;
|
|
884
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
885
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
247
886
|
sequence: import("zod").ZodNumber;
|
|
248
887
|
idempotencyKey: import("zod").ZodString;
|
|
249
888
|
occurredAt: import("zod").ZodString;
|
|
@@ -259,11 +898,19 @@ export declare const canonicalContractSchemas: {
|
|
|
259
898
|
failed: "failed";
|
|
260
899
|
}>;
|
|
261
900
|
detail: import("zod").ZodOptional<import("zod").ZodString>;
|
|
901
|
+
startedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
902
|
+
stoppingRequestedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
903
|
+
stoppedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
904
|
+
completedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
905
|
+
failedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
906
|
+
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
262
907
|
}, import("zod/v4/core").$strict>;
|
|
263
908
|
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
264
909
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
265
910
|
eventId: import("zod").ZodString;
|
|
266
911
|
sessionId: import("zod").ZodString;
|
|
912
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
913
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
267
914
|
sequence: import("zod").ZodNumber;
|
|
268
915
|
idempotencyKey: import("zod").ZodString;
|
|
269
916
|
occurredAt: import("zod").ZodString;
|
|
@@ -293,6 +940,8 @@ export declare const canonicalContractSchemas: {
|
|
|
293
940
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
294
941
|
eventId: import("zod").ZodString;
|
|
295
942
|
sessionId: import("zod").ZodString;
|
|
943
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
944
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
296
945
|
sequence: import("zod").ZodNumber;
|
|
297
946
|
idempotencyKey: import("zod").ZodString;
|
|
298
947
|
occurredAt: import("zod").ZodString;
|
|
@@ -308,6 +957,8 @@ export declare const canonicalContractSchemas: {
|
|
|
308
957
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
309
958
|
eventId: import("zod").ZodString;
|
|
310
959
|
sessionId: import("zod").ZodString;
|
|
960
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
961
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
311
962
|
sequence: import("zod").ZodNumber;
|
|
312
963
|
idempotencyKey: import("zod").ZodString;
|
|
313
964
|
occurredAt: import("zod").ZodString;
|
|
@@ -321,6 +972,8 @@ export declare const canonicalContractSchemas: {
|
|
|
321
972
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
322
973
|
eventId: import("zod").ZodString;
|
|
323
974
|
sessionId: import("zod").ZodString;
|
|
975
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
976
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
324
977
|
sequence: import("zod").ZodNumber;
|
|
325
978
|
idempotencyKey: import("zod").ZodString;
|
|
326
979
|
occurredAt: import("zod").ZodString;
|
|
@@ -336,6 +989,8 @@ export declare const canonicalContractSchemas: {
|
|
|
336
989
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
337
990
|
eventId: import("zod").ZodString;
|
|
338
991
|
sessionId: import("zod").ZodString;
|
|
992
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
993
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
339
994
|
sequence: import("zod").ZodNumber;
|
|
340
995
|
idempotencyKey: import("zod").ZodString;
|
|
341
996
|
occurredAt: import("zod").ZodString;
|
|
@@ -354,6 +1009,8 @@ export declare const canonicalContractSchemas: {
|
|
|
354
1009
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
355
1010
|
eventId: import("zod").ZodString;
|
|
356
1011
|
sessionId: import("zod").ZodString;
|
|
1012
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1013
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
357
1014
|
sequence: import("zod").ZodNumber;
|
|
358
1015
|
idempotencyKey: import("zod").ZodString;
|
|
359
1016
|
occurredAt: import("zod").ZodString;
|
|
@@ -371,6 +1028,8 @@ export declare const canonicalContractSchemas: {
|
|
|
371
1028
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
372
1029
|
eventId: import("zod").ZodString;
|
|
373
1030
|
sessionId: import("zod").ZodString;
|
|
1031
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1032
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
374
1033
|
sequence: import("zod").ZodNumber;
|
|
375
1034
|
idempotencyKey: import("zod").ZodString;
|
|
376
1035
|
occurredAt: import("zod").ZodString;
|
|
@@ -390,6 +1049,8 @@ export declare const canonicalContractSchemas: {
|
|
|
390
1049
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
391
1050
|
eventId: import("zod").ZodString;
|
|
392
1051
|
sessionId: import("zod").ZodString;
|
|
1052
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1053
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
393
1054
|
sequence: import("zod").ZodNumber;
|
|
394
1055
|
idempotencyKey: import("zod").ZodString;
|
|
395
1056
|
occurredAt: import("zod").ZodString;
|
|
@@ -406,7 +1067,49 @@ export declare const canonicalContractSchemas: {
|
|
|
406
1067
|
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
407
1068
|
output: import("zod").ZodOptional<import("zod").ZodString>;
|
|
408
1069
|
}, import("zod/v4/core").$strict>;
|
|
1070
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
1071
|
+
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
1072
|
+
eventId: import("zod").ZodString;
|
|
1073
|
+
sessionId: import("zod").ZodString;
|
|
1074
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1075
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1076
|
+
sequence: import("zod").ZodNumber;
|
|
1077
|
+
idempotencyKey: import("zod").ZodString;
|
|
1078
|
+
occurredAt: import("zod").ZodString;
|
|
1079
|
+
eventType: import("zod").ZodLiteral<"summary">;
|
|
1080
|
+
payload: import("zod").ZodObject<{
|
|
1081
|
+
summaryId: import("zod").ZodString;
|
|
1082
|
+
runId: import("zod").ZodString;
|
|
1083
|
+
text: import("zod").ZodString;
|
|
1084
|
+
highlights: import("zod").ZodArray<import("zod").ZodString>;
|
|
1085
|
+
pendingItems: import("zod").ZodArray<import("zod").ZodString>;
|
|
1086
|
+
status: import("zod").ZodEnum<{
|
|
1087
|
+
completed: "completed";
|
|
1088
|
+
failed: "failed";
|
|
1089
|
+
generating: "generating";
|
|
1090
|
+
}>;
|
|
1091
|
+
}, import("zod/v4/core").$strict>;
|
|
409
1092
|
}, import("zod/v4/core").$strict>], "eventType">;
|
|
1093
|
+
readonly 'agent-session-run': import("zod").ZodObject<{
|
|
1094
|
+
runId: import("zod").ZodString;
|
|
1095
|
+
sessionId: import("zod").ZodString;
|
|
1096
|
+
sourceMessageId: import("zod").ZodString;
|
|
1097
|
+
status: import("zod").ZodEnum<{
|
|
1098
|
+
queued: "queued";
|
|
1099
|
+
running: "running";
|
|
1100
|
+
waiting_approval: "waiting_approval";
|
|
1101
|
+
stopping: "stopping";
|
|
1102
|
+
stopped: "stopped";
|
|
1103
|
+
completed: "completed";
|
|
1104
|
+
failed: "failed";
|
|
1105
|
+
}>;
|
|
1106
|
+
startedAt: import("zod").ZodString;
|
|
1107
|
+
stoppingRequestedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1108
|
+
stoppedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1109
|
+
completedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1110
|
+
failedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1111
|
+
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1112
|
+
}, import("zod/v4/core").$strict>;
|
|
410
1113
|
readonly 'agent-session-view-model': import("zod").ZodObject<{
|
|
411
1114
|
contract: import("zod").ZodLiteral<"AgentSessionViewModel">;
|
|
412
1115
|
sessionId: import("zod").ZodString;
|
|
@@ -434,6 +1137,10 @@ export declare const canonicalContractSchemas: {
|
|
|
434
1137
|
workspaceFiles: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
435
1138
|
terminal: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
436
1139
|
testResults: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
1140
|
+
threadForking: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
1141
|
+
editAndRerun: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
1142
|
+
steering: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
1143
|
+
summary: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
437
1144
|
}, import("zod/v4/core").$strict>;
|
|
438
1145
|
}, import("zod/v4/core").$strict>;
|
|
439
1146
|
status: import("zod").ZodEnum<{
|
|
@@ -449,6 +1156,8 @@ export declare const canonicalContractSchemas: {
|
|
|
449
1156
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
450
1157
|
eventId: import("zod").ZodString;
|
|
451
1158
|
sessionId: import("zod").ZodString;
|
|
1159
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1160
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
452
1161
|
sequence: import("zod").ZodNumber;
|
|
453
1162
|
idempotencyKey: import("zod").ZodString;
|
|
454
1163
|
occurredAt: import("zod").ZodString;
|
|
@@ -475,6 +1184,8 @@ export declare const canonicalContractSchemas: {
|
|
|
475
1184
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
476
1185
|
eventId: import("zod").ZodString;
|
|
477
1186
|
sessionId: import("zod").ZodString;
|
|
1187
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1188
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
478
1189
|
sequence: import("zod").ZodNumber;
|
|
479
1190
|
idempotencyKey: import("zod").ZodString;
|
|
480
1191
|
occurredAt: import("zod").ZodString;
|
|
@@ -491,6 +1202,8 @@ export declare const canonicalContractSchemas: {
|
|
|
491
1202
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
492
1203
|
eventId: import("zod").ZodString;
|
|
493
1204
|
sessionId: import("zod").ZodString;
|
|
1205
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1206
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
494
1207
|
sequence: import("zod").ZodNumber;
|
|
495
1208
|
idempotencyKey: import("zod").ZodString;
|
|
496
1209
|
occurredAt: import("zod").ZodString;
|
|
@@ -520,6 +1233,8 @@ export declare const canonicalContractSchemas: {
|
|
|
520
1233
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
521
1234
|
eventId: import("zod").ZodString;
|
|
522
1235
|
sessionId: import("zod").ZodString;
|
|
1236
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1237
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
523
1238
|
sequence: import("zod").ZodNumber;
|
|
524
1239
|
idempotencyKey: import("zod").ZodString;
|
|
525
1240
|
occurredAt: import("zod").ZodString;
|
|
@@ -540,6 +1255,8 @@ export declare const canonicalContractSchemas: {
|
|
|
540
1255
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
541
1256
|
eventId: import("zod").ZodString;
|
|
542
1257
|
sessionId: import("zod").ZodString;
|
|
1258
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1259
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
543
1260
|
sequence: import("zod").ZodNumber;
|
|
544
1261
|
idempotencyKey: import("zod").ZodString;
|
|
545
1262
|
occurredAt: import("zod").ZodString;
|
|
@@ -564,6 +1281,8 @@ export declare const canonicalContractSchemas: {
|
|
|
564
1281
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
565
1282
|
eventId: import("zod").ZodString;
|
|
566
1283
|
sessionId: import("zod").ZodString;
|
|
1284
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1285
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
567
1286
|
sequence: import("zod").ZodNumber;
|
|
568
1287
|
idempotencyKey: import("zod").ZodString;
|
|
569
1288
|
occurredAt: import("zod").ZodString;
|
|
@@ -585,6 +1304,8 @@ export declare const canonicalContractSchemas: {
|
|
|
585
1304
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
586
1305
|
eventId: import("zod").ZodString;
|
|
587
1306
|
sessionId: import("zod").ZodString;
|
|
1307
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1308
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
588
1309
|
sequence: import("zod").ZodNumber;
|
|
589
1310
|
idempotencyKey: import("zod").ZodString;
|
|
590
1311
|
occurredAt: import("zod").ZodString;
|
|
@@ -600,11 +1321,19 @@ export declare const canonicalContractSchemas: {
|
|
|
600
1321
|
failed: "failed";
|
|
601
1322
|
}>;
|
|
602
1323
|
detail: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1324
|
+
startedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1325
|
+
stoppingRequestedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1326
|
+
stoppedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1327
|
+
completedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1328
|
+
failedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1329
|
+
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
603
1330
|
}, import("zod/v4/core").$strict>;
|
|
604
1331
|
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
605
1332
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
606
1333
|
eventId: import("zod").ZodString;
|
|
607
1334
|
sessionId: import("zod").ZodString;
|
|
1335
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1336
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
608
1337
|
sequence: import("zod").ZodNumber;
|
|
609
1338
|
idempotencyKey: import("zod").ZodString;
|
|
610
1339
|
occurredAt: import("zod").ZodString;
|
|
@@ -634,6 +1363,8 @@ export declare const canonicalContractSchemas: {
|
|
|
634
1363
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
635
1364
|
eventId: import("zod").ZodString;
|
|
636
1365
|
sessionId: import("zod").ZodString;
|
|
1366
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1367
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
637
1368
|
sequence: import("zod").ZodNumber;
|
|
638
1369
|
idempotencyKey: import("zod").ZodString;
|
|
639
1370
|
occurredAt: import("zod").ZodString;
|
|
@@ -649,6 +1380,8 @@ export declare const canonicalContractSchemas: {
|
|
|
649
1380
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
650
1381
|
eventId: import("zod").ZodString;
|
|
651
1382
|
sessionId: import("zod").ZodString;
|
|
1383
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1384
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
652
1385
|
sequence: import("zod").ZodNumber;
|
|
653
1386
|
idempotencyKey: import("zod").ZodString;
|
|
654
1387
|
occurredAt: import("zod").ZodString;
|
|
@@ -662,6 +1395,8 @@ export declare const canonicalContractSchemas: {
|
|
|
662
1395
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
663
1396
|
eventId: import("zod").ZodString;
|
|
664
1397
|
sessionId: import("zod").ZodString;
|
|
1398
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1399
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
665
1400
|
sequence: import("zod").ZodNumber;
|
|
666
1401
|
idempotencyKey: import("zod").ZodString;
|
|
667
1402
|
occurredAt: import("zod").ZodString;
|
|
@@ -677,6 +1412,8 @@ export declare const canonicalContractSchemas: {
|
|
|
677
1412
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
678
1413
|
eventId: import("zod").ZodString;
|
|
679
1414
|
sessionId: import("zod").ZodString;
|
|
1415
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1416
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
680
1417
|
sequence: import("zod").ZodNumber;
|
|
681
1418
|
idempotencyKey: import("zod").ZodString;
|
|
682
1419
|
occurredAt: import("zod").ZodString;
|
|
@@ -695,6 +1432,8 @@ export declare const canonicalContractSchemas: {
|
|
|
695
1432
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
696
1433
|
eventId: import("zod").ZodString;
|
|
697
1434
|
sessionId: import("zod").ZodString;
|
|
1435
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1436
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
698
1437
|
sequence: import("zod").ZodNumber;
|
|
699
1438
|
idempotencyKey: import("zod").ZodString;
|
|
700
1439
|
occurredAt: import("zod").ZodString;
|
|
@@ -712,6 +1451,8 @@ export declare const canonicalContractSchemas: {
|
|
|
712
1451
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
713
1452
|
eventId: import("zod").ZodString;
|
|
714
1453
|
sessionId: import("zod").ZodString;
|
|
1454
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1455
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
715
1456
|
sequence: import("zod").ZodNumber;
|
|
716
1457
|
idempotencyKey: import("zod").ZodString;
|
|
717
1458
|
occurredAt: import("zod").ZodString;
|
|
@@ -731,6 +1472,8 @@ export declare const canonicalContractSchemas: {
|
|
|
731
1472
|
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
732
1473
|
eventId: import("zod").ZodString;
|
|
733
1474
|
sessionId: import("zod").ZodString;
|
|
1475
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1476
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
734
1477
|
sequence: import("zod").ZodNumber;
|
|
735
1478
|
idempotencyKey: import("zod").ZodString;
|
|
736
1479
|
occurredAt: import("zod").ZodString;
|
|
@@ -747,9 +1490,48 @@ export declare const canonicalContractSchemas: {
|
|
|
747
1490
|
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
748
1491
|
output: import("zod").ZodOptional<import("zod").ZodString>;
|
|
749
1492
|
}, import("zod/v4/core").$strict>;
|
|
1493
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
1494
|
+
contract: import("zod").ZodLiteral<"AgentSessionEvent">;
|
|
1495
|
+
eventId: import("zod").ZodString;
|
|
1496
|
+
sessionId: import("zod").ZodString;
|
|
1497
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1498
|
+
sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1499
|
+
sequence: import("zod").ZodNumber;
|
|
1500
|
+
idempotencyKey: import("zod").ZodString;
|
|
1501
|
+
occurredAt: import("zod").ZodString;
|
|
1502
|
+
eventType: import("zod").ZodLiteral<"summary">;
|
|
1503
|
+
payload: import("zod").ZodObject<{
|
|
1504
|
+
summaryId: import("zod").ZodString;
|
|
1505
|
+
runId: import("zod").ZodString;
|
|
1506
|
+
text: import("zod").ZodString;
|
|
1507
|
+
highlights: import("zod").ZodArray<import("zod").ZodString>;
|
|
1508
|
+
pendingItems: import("zod").ZodArray<import("zod").ZodString>;
|
|
1509
|
+
status: import("zod").ZodEnum<{
|
|
1510
|
+
completed: "completed";
|
|
1511
|
+
failed: "failed";
|
|
1512
|
+
generating: "generating";
|
|
1513
|
+
}>;
|
|
1514
|
+
}, import("zod/v4/core").$strict>;
|
|
750
1515
|
}, import("zod/v4/core").$strict>], "eventType">>;
|
|
751
1516
|
lastSequence: import("zod").ZodNumber;
|
|
752
1517
|
resumable: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
1518
|
+
lineage: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1519
|
+
forkedFromThreadId: import("zod").ZodString;
|
|
1520
|
+
forkedFromMessageId: import("zod").ZodString;
|
|
1521
|
+
sourceRunId: import("zod").ZodString;
|
|
1522
|
+
}, import("zod/v4/core").$strict>>;
|
|
1523
|
+
activeBranch: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1524
|
+
branchId: import("zod").ZodString;
|
|
1525
|
+
threadId: import("zod").ZodString;
|
|
1526
|
+
sourceMessageId: import("zod").ZodString;
|
|
1527
|
+
runId: import("zod").ZodString;
|
|
1528
|
+
lineage: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1529
|
+
forkedFromThreadId: import("zod").ZodString;
|
|
1530
|
+
forkedFromMessageId: import("zod").ZodString;
|
|
1531
|
+
sourceRunId: import("zod").ZodString;
|
|
1532
|
+
}, import("zod/v4/core").$strict>>;
|
|
1533
|
+
createdAt: import("zod").ZodString;
|
|
1534
|
+
}, import("zod/v4/core").$strict>>;
|
|
753
1535
|
}, import("zod/v4/core").$strict>;
|
|
754
1536
|
readonly 'agent-runtime-event': import("zod").ZodObject<{
|
|
755
1537
|
contract: import("zod").ZodLiteral<"AgentRuntimeEvent">;
|