@agen-ai/agent-protocol 0.4.1 → 0.4.3
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/README.md +89 -49
- package/dist/capabilities/types.d.ts +1 -1
- package/dist/events/types.d.ts +9 -3
- package/dist/events/types.js +4 -1
- package/dist/foundation/types.d.ts +1 -1
- package/dist/foundation/types.js +1 -1
- package/dist/jsonSchema/generated.d.ts +11294 -7902
- package/dist/jsonSchema/generated.js +2271 -96
- package/dist/requests/elicitation.d.ts +4 -0
- package/dist/requests/elicitation.js +107 -0
- package/dist/requests/parsers.js +2 -100
- package/dist/sessionInteractions/parsers.d.ts +28 -1
- package/dist/sessionInteractions/parsers.js +165 -12
- package/dist/sessionInteractions/types.d.ts +113 -1
- package/dist/sessionInteractions/types.js +18 -2
- package/dist/zod/capabilities.d.ts +8 -8
- package/dist/zod/collaboration.d.ts +2 -2
- package/dist/zod/events.d.ts +50 -29
- package/dist/zod/events.js +8 -0
- package/dist/zod/index.d.ts +1 -1
- package/dist/zod/index.js +43 -1
- package/dist/zod/operations.d.ts +1 -1
- package/dist/zod/requests.d.ts +99 -7
- package/dist/zod/requests.js +18 -8
- package/dist/zod/sessionInteractions.d.ts +875 -5
- package/dist/zod/sessionInteractions.js +203 -33
- package/dist/zod/turns.d.ts +1 -1
- package/dist/zod/typeEquality.generated.d.ts +20 -2
- package/package.json +2 -2
|
@@ -7,8 +7,8 @@ export declare const AgentApprovalCapabilitySchema: z.ZodUnion<readonly [z.ZodRe
|
|
|
7
7
|
modes: z.ZodReadonly<z.ZodTuple<[z.ZodReadonly<z.ZodObject<{
|
|
8
8
|
persistence: z.ZodEnum<{
|
|
9
9
|
session: "session";
|
|
10
|
-
workspace: "workspace";
|
|
11
10
|
once: "once";
|
|
11
|
+
workspace: "workspace";
|
|
12
12
|
}>;
|
|
13
13
|
scopeKinds: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
14
14
|
exact_action: "exact_action";
|
|
@@ -21,8 +21,8 @@ export declare const AgentApprovalCapabilitySchema: z.ZodUnion<readonly [z.ZodRe
|
|
|
21
21
|
}, z.core.$strict>>], z.ZodReadonly<z.ZodObject<{
|
|
22
22
|
persistence: z.ZodEnum<{
|
|
23
23
|
session: "session";
|
|
24
|
-
workspace: "workspace";
|
|
25
24
|
once: "once";
|
|
25
|
+
workspace: "workspace";
|
|
26
26
|
}>;
|
|
27
27
|
scopeKinds: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
28
28
|
exact_action: "exact_action";
|
|
@@ -39,8 +39,8 @@ export declare const AgentApprovalCapabilitySchema: z.ZodUnion<readonly [z.ZodRe
|
|
|
39
39
|
modes: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
40
40
|
persistence: z.ZodEnum<{
|
|
41
41
|
session: "session";
|
|
42
|
-
workspace: "workspace";
|
|
43
42
|
once: "once";
|
|
43
|
+
workspace: "workspace";
|
|
44
44
|
}>;
|
|
45
45
|
scopeKinds: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
46
46
|
exact_action: "exact_action";
|
|
@@ -139,7 +139,7 @@ export declare const AgentOperationInputCapabilitySchema: z.ZodReadonly<z.ZodObj
|
|
|
139
139
|
}, z.core.$strict>>], "kind">;
|
|
140
140
|
}, z.core.$strict>>;
|
|
141
141
|
export declare const AgentCapabilitiesPortableSchema: z.ZodReadonly<z.ZodObject<{
|
|
142
|
-
protocolVersion: z.ZodLiteral<
|
|
142
|
+
protocolVersion: z.ZodLiteral<12>;
|
|
143
143
|
providerKey: z.ZodType<import("../index.js").AgentProviderKey, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderKey, unknown>>;
|
|
144
144
|
sessions: z.ZodReadonly<z.ZodObject<{
|
|
145
145
|
create: z.ZodLiteral<true>;
|
|
@@ -214,8 +214,8 @@ export declare const AgentCapabilitiesPortableSchema: z.ZodReadonly<z.ZodObject<
|
|
|
214
214
|
modes: z.ZodReadonly<z.ZodTuple<[z.ZodReadonly<z.ZodObject<{
|
|
215
215
|
persistence: z.ZodEnum<{
|
|
216
216
|
session: "session";
|
|
217
|
-
workspace: "workspace";
|
|
218
217
|
once: "once";
|
|
218
|
+
workspace: "workspace";
|
|
219
219
|
}>;
|
|
220
220
|
scopeKinds: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
221
221
|
exact_action: "exact_action";
|
|
@@ -228,8 +228,8 @@ export declare const AgentCapabilitiesPortableSchema: z.ZodReadonly<z.ZodObject<
|
|
|
228
228
|
}, z.core.$strict>>], z.ZodReadonly<z.ZodObject<{
|
|
229
229
|
persistence: z.ZodEnum<{
|
|
230
230
|
session: "session";
|
|
231
|
-
workspace: "workspace";
|
|
232
231
|
once: "once";
|
|
232
|
+
workspace: "workspace";
|
|
233
233
|
}>;
|
|
234
234
|
scopeKinds: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
235
235
|
exact_action: "exact_action";
|
|
@@ -246,8 +246,8 @@ export declare const AgentCapabilitiesPortableSchema: z.ZodReadonly<z.ZodObject<
|
|
|
246
246
|
modes: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
247
247
|
persistence: z.ZodEnum<{
|
|
248
248
|
session: "session";
|
|
249
|
-
workspace: "workspace";
|
|
250
249
|
once: "once";
|
|
250
|
+
workspace: "workspace";
|
|
251
251
|
}>;
|
|
252
252
|
scopeKinds: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
253
253
|
exact_action: "exact_action";
|
|
@@ -362,9 +362,9 @@ export declare const AgentCapabilitiesPortableSchema: z.ZodReadonly<z.ZodObject<
|
|
|
362
362
|
}>;
|
|
363
363
|
artifactKinds: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
364
364
|
file: "file";
|
|
365
|
-
image: "image";
|
|
366
365
|
plan: "plan";
|
|
367
366
|
other: "other";
|
|
367
|
+
image: "image";
|
|
368
368
|
report: "report";
|
|
369
369
|
diff: "diff";
|
|
370
370
|
log: "log";
|
|
@@ -12,9 +12,9 @@ export declare const AgentCollaborationNodePortableSchema: z.ZodReadonly<z.ZodOb
|
|
|
12
12
|
}>;
|
|
13
13
|
title: z.ZodString;
|
|
14
14
|
status: z.ZodEnum<{
|
|
15
|
+
canceled: "canceled";
|
|
15
16
|
completed: "completed";
|
|
16
17
|
failed: "failed";
|
|
17
|
-
canceled: "canceled";
|
|
18
18
|
running: "running";
|
|
19
19
|
starting: "starting";
|
|
20
20
|
queued: "queued";
|
|
@@ -40,11 +40,11 @@ export declare const AgentCollaborationNodePortableSchema: z.ZodReadonly<z.ZodOb
|
|
|
40
40
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
41
41
|
kind: z.ZodLiteral<"canceled">;
|
|
42
42
|
reason: z.ZodEnum<{
|
|
43
|
+
other: "other";
|
|
43
44
|
user_requested: "user_requested";
|
|
44
45
|
timeout: "timeout";
|
|
45
46
|
shutdown: "shutdown";
|
|
46
47
|
superseded: "superseded";
|
|
47
|
-
other: "other";
|
|
48
48
|
}>;
|
|
49
49
|
}, z.core.$strict>>], "kind">>;
|
|
50
50
|
createdAt: z.ZodType<import("../index.js").AgentIsoDateTime, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentIsoDateTime, unknown>>;
|
package/dist/zod/events.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod/v4';
|
|
2
|
-
import type
|
|
2
|
+
import { type AgentEvent } from '../events/types.js';
|
|
3
3
|
import { type AgentContextUsage } from '../turns/types.js';
|
|
4
4
|
export declare const AgentContextUsagePortableSchema: z.ZodReadonly<z.ZodObject<{
|
|
5
5
|
measurementScope: z.ZodEnum<{
|
|
@@ -33,7 +33,7 @@ export declare const AgentEventPortableSchema: z.ZodDiscriminatedUnion<[z.ZodRea
|
|
|
33
33
|
payload: z.ZodReadonly<z.ZodObject<{
|
|
34
34
|
message: z.ZodOptional<z.ZodString>;
|
|
35
35
|
}, z.core.$strict>>;
|
|
36
|
-
protocolVersion: z.ZodLiteral<
|
|
36
|
+
protocolVersion: z.ZodLiteral<12>;
|
|
37
37
|
sessionId: z.ZodType<import("../index.js").AgentSessionId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentSessionId, unknown>>;
|
|
38
38
|
providerRefs: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
39
39
|
conversationId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderConversationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderConversationId, unknown>>>;
|
|
@@ -54,7 +54,7 @@ export declare const AgentEventPortableSchema: z.ZodDiscriminatedUnion<[z.ZodRea
|
|
|
54
54
|
requestId: z.ZodOptional<z.ZodType<import("../index.js").AgentRequestId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentRequestId, unknown>>>;
|
|
55
55
|
message: z.ZodOptional<z.ZodString>;
|
|
56
56
|
}, z.core.$strict>>;
|
|
57
|
-
protocolVersion: z.ZodLiteral<
|
|
57
|
+
protocolVersion: z.ZodLiteral<12>;
|
|
58
58
|
sessionId: z.ZodType<import("../index.js").AgentSessionId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentSessionId, unknown>>;
|
|
59
59
|
providerRefs: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
60
60
|
conversationId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderConversationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderConversationId, unknown>>>;
|
|
@@ -69,15 +69,15 @@ export declare const AgentEventPortableSchema: z.ZodDiscriminatedUnion<[z.ZodRea
|
|
|
69
69
|
turnId: z.ZodType<import("../index.js").AgentTurnId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentTurnId, unknown>>;
|
|
70
70
|
payload: z.ZodReadonly<z.ZodObject<{
|
|
71
71
|
outcome: z.ZodEnum<{
|
|
72
|
+
canceled: "canceled";
|
|
72
73
|
completed: "completed";
|
|
73
74
|
failed: "failed";
|
|
74
|
-
canceled: "canceled";
|
|
75
75
|
expired: "expired";
|
|
76
76
|
}>;
|
|
77
77
|
reason: z.ZodOptional<z.ZodString>;
|
|
78
78
|
error: z.ZodOptional<z.ZodType<import("../index.js").AgentError, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentError, unknown>>>;
|
|
79
79
|
}, z.core.$strict>>;
|
|
80
|
-
protocolVersion: z.ZodLiteral<
|
|
80
|
+
protocolVersion: z.ZodLiteral<12>;
|
|
81
81
|
sessionId: z.ZodType<import("../index.js").AgentSessionId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentSessionId, unknown>>;
|
|
82
82
|
providerRefs: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
83
83
|
conversationId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderConversationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderConversationId, unknown>>>;
|
|
@@ -91,7 +91,7 @@ export declare const AgentEventPortableSchema: z.ZodDiscriminatedUnion<[z.ZodRea
|
|
|
91
91
|
type: z.ZodLiteral<"item.started">;
|
|
92
92
|
turnId: z.ZodType<import("../index.js").AgentTurnId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentTurnId, unknown>>;
|
|
93
93
|
payload: z.ZodType<import("../index.js").AgentItemSnapshot, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentItemSnapshot, unknown>>;
|
|
94
|
-
protocolVersion: z.ZodLiteral<
|
|
94
|
+
protocolVersion: z.ZodLiteral<12>;
|
|
95
95
|
sessionId: z.ZodType<import("../index.js").AgentSessionId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentSessionId, unknown>>;
|
|
96
96
|
providerRefs: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
97
97
|
conversationId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderConversationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderConversationId, unknown>>>;
|
|
@@ -105,7 +105,7 @@ export declare const AgentEventPortableSchema: z.ZodDiscriminatedUnion<[z.ZodRea
|
|
|
105
105
|
type: z.ZodLiteral<"item.updated">;
|
|
106
106
|
turnId: z.ZodType<import("../index.js").AgentTurnId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentTurnId, unknown>>;
|
|
107
107
|
payload: z.ZodType<import("../index.js").AgentItemSnapshot, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentItemSnapshot, unknown>>;
|
|
108
|
-
protocolVersion: z.ZodLiteral<
|
|
108
|
+
protocolVersion: z.ZodLiteral<12>;
|
|
109
109
|
sessionId: z.ZodType<import("../index.js").AgentSessionId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentSessionId, unknown>>;
|
|
110
110
|
providerRefs: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
111
111
|
conversationId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderConversationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderConversationId, unknown>>>;
|
|
@@ -119,7 +119,7 @@ export declare const AgentEventPortableSchema: z.ZodDiscriminatedUnion<[z.ZodRea
|
|
|
119
119
|
type: z.ZodLiteral<"item.completed">;
|
|
120
120
|
turnId: z.ZodType<import("../index.js").AgentTurnId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentTurnId, unknown>>;
|
|
121
121
|
payload: z.ZodType<import("../index.js").AgentItemSnapshot, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentItemSnapshot, unknown>>;
|
|
122
|
-
protocolVersion: z.ZodLiteral<
|
|
122
|
+
protocolVersion: z.ZodLiteral<12>;
|
|
123
123
|
sessionId: z.ZodType<import("../index.js").AgentSessionId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentSessionId, unknown>>;
|
|
124
124
|
providerRefs: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
125
125
|
conversationId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderConversationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderConversationId, unknown>>>;
|
|
@@ -145,7 +145,7 @@ export declare const AgentEventPortableSchema: z.ZodDiscriminatedUnion<[z.ZodRea
|
|
|
145
145
|
}>;
|
|
146
146
|
delta: z.ZodString;
|
|
147
147
|
}, z.core.$strict>>;
|
|
148
|
-
protocolVersion: z.ZodLiteral<
|
|
148
|
+
protocolVersion: z.ZodLiteral<12>;
|
|
149
149
|
sessionId: z.ZodType<import("../index.js").AgentSessionId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentSessionId, unknown>>;
|
|
150
150
|
providerRefs: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
151
151
|
conversationId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderConversationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderConversationId, unknown>>>;
|
|
@@ -162,7 +162,7 @@ export declare const AgentEventPortableSchema: z.ZodDiscriminatedUnion<[z.ZodRea
|
|
|
162
162
|
explanation: z.ZodOptional<z.ZodString>;
|
|
163
163
|
steps: z.ZodReadonly<z.ZodArray<z.ZodType<import("../index.js").AgentPlanStep, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentPlanStep, unknown>>>>;
|
|
164
164
|
}, z.core.$strict>>;
|
|
165
|
-
protocolVersion: z.ZodLiteral<
|
|
165
|
+
protocolVersion: z.ZodLiteral<12>;
|
|
166
166
|
sessionId: z.ZodType<import("../index.js").AgentSessionId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentSessionId, unknown>>;
|
|
167
167
|
providerRefs: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
168
168
|
conversationId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderConversationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderConversationId, unknown>>>;
|
|
@@ -179,7 +179,7 @@ export declare const AgentEventPortableSchema: z.ZodDiscriminatedUnion<[z.ZodRea
|
|
|
179
179
|
artifactId: z.ZodType<import("../index.js").AgentArtifactId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentArtifactId, unknown>>;
|
|
180
180
|
requestId: z.ZodType<import("../index.js").AgentRequestId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentRequestId, unknown>>;
|
|
181
181
|
}, z.core.$strict>>;
|
|
182
|
-
protocolVersion: z.ZodLiteral<
|
|
182
|
+
protocolVersion: z.ZodLiteral<12>;
|
|
183
183
|
sessionId: z.ZodType<import("../index.js").AgentSessionId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentSessionId, unknown>>;
|
|
184
184
|
providerRefs: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
185
185
|
conversationId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderConversationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderConversationId, unknown>>>;
|
|
@@ -193,7 +193,7 @@ export declare const AgentEventPortableSchema: z.ZodDiscriminatedUnion<[z.ZodRea
|
|
|
193
193
|
type: z.ZodLiteral<"turn.diff.updated">;
|
|
194
194
|
turnId: z.ZodType<import("../index.js").AgentTurnId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentTurnId, unknown>>;
|
|
195
195
|
payload: z.ZodType<import("../index.js").AgentDiffSummary, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentDiffSummary, unknown>>;
|
|
196
|
-
protocolVersion: z.ZodLiteral<
|
|
196
|
+
protocolVersion: z.ZodLiteral<12>;
|
|
197
197
|
sessionId: z.ZodType<import("../index.js").AgentSessionId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentSessionId, unknown>>;
|
|
198
198
|
providerRefs: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
199
199
|
conversationId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderConversationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderConversationId, unknown>>>;
|
|
@@ -218,10 +218,10 @@ export declare const AgentEventPortableSchema: z.ZodDiscriminatedUnion<[z.ZodRea
|
|
|
218
218
|
artifactId: z.ZodType<import("../index.js").AgentArtifactId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentArtifactId, unknown>>;
|
|
219
219
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
220
220
|
kind: z.ZodEnum<{
|
|
221
|
-
other: "other";
|
|
222
|
-
file_change: "file_change";
|
|
223
221
|
tool: "tool";
|
|
224
222
|
command: "command";
|
|
223
|
+
file_change: "file_change";
|
|
224
|
+
other: "other";
|
|
225
225
|
}>;
|
|
226
226
|
title: z.ZodString;
|
|
227
227
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -239,8 +239,8 @@ export declare const AgentEventPortableSchema: z.ZodDiscriminatedUnion<[z.ZodRea
|
|
|
239
239
|
kind: z.ZodLiteral<"scoped">;
|
|
240
240
|
persistence: z.ZodEnum<{
|
|
241
241
|
session: "session";
|
|
242
|
-
workspace: "workspace";
|
|
243
242
|
once: "once";
|
|
243
|
+
workspace: "workspace";
|
|
244
244
|
}>;
|
|
245
245
|
scope: z.ZodReadonly<z.ZodObject<{
|
|
246
246
|
kind: z.ZodEnum<{
|
|
@@ -338,7 +338,28 @@ export declare const AgentEventPortableSchema: z.ZodDiscriminatedUnion<[z.ZodRea
|
|
|
338
338
|
expiresAt: z.ZodOptional<z.ZodType<import("../index.js").AgentIsoDateTime, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentIsoDateTime, unknown>>>;
|
|
339
339
|
}, z.core.$strict>>], "requestKind">;
|
|
340
340
|
}, z.core.$strict>>;
|
|
341
|
-
protocolVersion: z.ZodLiteral<
|
|
341
|
+
protocolVersion: z.ZodLiteral<12>;
|
|
342
|
+
sessionId: z.ZodType<import("../index.js").AgentSessionId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentSessionId, unknown>>;
|
|
343
|
+
providerRefs: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
344
|
+
conversationId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderConversationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderConversationId, unknown>>>;
|
|
345
|
+
historyAnchor: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderHistoryAnchor, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderHistoryAnchor, unknown>>>;
|
|
346
|
+
turnId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderTurnRef, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderTurnRef, unknown>>>;
|
|
347
|
+
itemId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderItemRef, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderItemRef, unknown>>>;
|
|
348
|
+
requestId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderRequestRef, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderRequestRef, unknown>>>;
|
|
349
|
+
}, z.core.$strict>>>;
|
|
350
|
+
occurredAt: z.ZodType<import("../index.js").AgentIsoDateTime, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentIsoDateTime, unknown>>;
|
|
351
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
352
|
+
type: z.ZodLiteral<"request.unavailable">;
|
|
353
|
+
turnId: z.ZodType<import("../index.js").AgentTurnId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentTurnId, unknown>>;
|
|
354
|
+
payload: z.ZodReadonly<z.ZodObject<{
|
|
355
|
+
requestId: z.ZodType<import("../index.js").AgentRequestId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentRequestId, unknown>>;
|
|
356
|
+
reason: z.ZodEnum<{
|
|
357
|
+
unknown: "unknown";
|
|
358
|
+
expired: "expired";
|
|
359
|
+
withdrawn: "withdrawn";
|
|
360
|
+
}>;
|
|
361
|
+
}, z.core.$strict>>;
|
|
362
|
+
protocolVersion: z.ZodLiteral<12>;
|
|
342
363
|
sessionId: z.ZodType<import("../index.js").AgentSessionId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentSessionId, unknown>>;
|
|
343
364
|
providerRefs: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
344
365
|
conversationId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderConversationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderConversationId, unknown>>>;
|
|
@@ -369,7 +390,7 @@ export declare const AgentEventPortableSchema: z.ZodDiscriminatedUnion<[z.ZodRea
|
|
|
369
390
|
current: z.ZodOptional<z.ZodNumber>;
|
|
370
391
|
total: z.ZodOptional<z.ZodNumber>;
|
|
371
392
|
}, z.core.$strict>>;
|
|
372
|
-
protocolVersion: z.ZodLiteral<
|
|
393
|
+
protocolVersion: z.ZodLiteral<12>;
|
|
373
394
|
sessionId: z.ZodType<import("../index.js").AgentSessionId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentSessionId, unknown>>;
|
|
374
395
|
providerRefs: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
375
396
|
conversationId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderConversationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderConversationId, unknown>>>;
|
|
@@ -407,7 +428,7 @@ export declare const AgentEventPortableSchema: z.ZodDiscriminatedUnion<[z.ZodRea
|
|
|
407
428
|
thresholdTokens: z.ZodOptional<z.ZodNumber>;
|
|
408
429
|
}, z.core.$strict>>>;
|
|
409
430
|
}, z.core.$strict>>;
|
|
410
|
-
protocolVersion: z.ZodLiteral<
|
|
431
|
+
protocolVersion: z.ZodLiteral<12>;
|
|
411
432
|
sessionId: z.ZodType<import("../index.js").AgentSessionId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentSessionId, unknown>>;
|
|
412
433
|
providerRefs: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
413
434
|
conversationId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderConversationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderConversationId, unknown>>>;
|
|
@@ -423,7 +444,7 @@ export declare const AgentEventPortableSchema: z.ZodDiscriminatedUnion<[z.ZodRea
|
|
|
423
444
|
payload: z.ZodReadonly<z.ZodObject<{
|
|
424
445
|
artifact: z.ZodType<import("../index.js").AgentArtifactDescriptor, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentArtifactDescriptor, unknown>>;
|
|
425
446
|
}, z.core.$strict>>;
|
|
426
|
-
protocolVersion: z.ZodLiteral<
|
|
447
|
+
protocolVersion: z.ZodLiteral<12>;
|
|
427
448
|
sessionId: z.ZodType<import("../index.js").AgentSessionId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentSessionId, unknown>>;
|
|
428
449
|
providerRefs: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
429
450
|
conversationId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderConversationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderConversationId, unknown>>>;
|
|
@@ -440,9 +461,9 @@ export declare const AgentEventPortableSchema: z.ZodDiscriminatedUnion<[z.ZodRea
|
|
|
440
461
|
result: z.ZodReadonly<z.ZodObject<{
|
|
441
462
|
invocationId: z.ZodType<import("../index.js").AgentOperationInvocationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentOperationInvocationId, unknown>>;
|
|
442
463
|
status: z.ZodEnum<{
|
|
464
|
+
canceled: "canceled";
|
|
443
465
|
completed: "completed";
|
|
444
466
|
failed: "failed";
|
|
445
|
-
canceled: "canceled";
|
|
446
467
|
waiting_for_request: "waiting_for_request";
|
|
447
468
|
accepted: "accepted";
|
|
448
469
|
}>;
|
|
@@ -452,7 +473,7 @@ export declare const AgentEventPortableSchema: z.ZodDiscriminatedUnion<[z.ZodRea
|
|
|
452
473
|
error: z.ZodOptional<z.ZodType<import("../index.js").AgentError, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentError, unknown>>>;
|
|
453
474
|
}, z.core.$strict>>;
|
|
454
475
|
}, z.core.$strict>>;
|
|
455
|
-
protocolVersion: z.ZodLiteral<
|
|
476
|
+
protocolVersion: z.ZodLiteral<12>;
|
|
456
477
|
sessionId: z.ZodType<import("../index.js").AgentSessionId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentSessionId, unknown>>;
|
|
457
478
|
providerRefs: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
458
479
|
conversationId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderConversationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderConversationId, unknown>>>;
|
|
@@ -478,9 +499,9 @@ export declare const AgentEventPortableSchema: z.ZodDiscriminatedUnion<[z.ZodRea
|
|
|
478
499
|
}>;
|
|
479
500
|
title: z.ZodString;
|
|
480
501
|
status: z.ZodEnum<{
|
|
502
|
+
canceled: "canceled";
|
|
481
503
|
completed: "completed";
|
|
482
504
|
failed: "failed";
|
|
483
|
-
canceled: "canceled";
|
|
484
505
|
running: "running";
|
|
485
506
|
starting: "starting";
|
|
486
507
|
queued: "queued";
|
|
@@ -506,11 +527,11 @@ export declare const AgentEventPortableSchema: z.ZodDiscriminatedUnion<[z.ZodRea
|
|
|
506
527
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
507
528
|
kind: z.ZodLiteral<"canceled">;
|
|
508
529
|
reason: z.ZodEnum<{
|
|
530
|
+
other: "other";
|
|
509
531
|
user_requested: "user_requested";
|
|
510
532
|
timeout: "timeout";
|
|
511
533
|
shutdown: "shutdown";
|
|
512
534
|
superseded: "superseded";
|
|
513
|
-
other: "other";
|
|
514
535
|
}>;
|
|
515
536
|
}, z.core.$strict>>], "kind">>;
|
|
516
537
|
createdAt: z.ZodType<import("../index.js").AgentIsoDateTime, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentIsoDateTime, unknown>>;
|
|
@@ -521,7 +542,7 @@ export declare const AgentEventPortableSchema: z.ZodDiscriminatedUnion<[z.ZodRea
|
|
|
521
542
|
resourceIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodType<import("../index.js").AgentGeneratedResourceId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentGeneratedResourceId, unknown>>>>>;
|
|
522
543
|
}, z.core.$strict>>;
|
|
523
544
|
}, z.core.$strict>>;
|
|
524
|
-
protocolVersion: z.ZodLiteral<
|
|
545
|
+
protocolVersion: z.ZodLiteral<12>;
|
|
525
546
|
sessionId: z.ZodType<import("../index.js").AgentSessionId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentSessionId, unknown>>;
|
|
526
547
|
providerRefs: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
527
548
|
conversationId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderConversationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderConversationId, unknown>>>;
|
|
@@ -575,7 +596,7 @@ export declare const AgentEventPortableSchema: z.ZodDiscriminatedUnion<[z.ZodRea
|
|
|
575
596
|
error: z.ZodOptional<z.ZodType<import("../index.js").AgentError, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentError, unknown>>>;
|
|
576
597
|
}, z.core.$strict>>;
|
|
577
598
|
}, z.core.$strict>>;
|
|
578
|
-
protocolVersion: z.ZodLiteral<
|
|
599
|
+
protocolVersion: z.ZodLiteral<12>;
|
|
579
600
|
sessionId: z.ZodType<import("../index.js").AgentSessionId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentSessionId, unknown>>;
|
|
580
601
|
providerRefs: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
581
602
|
conversationId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderConversationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderConversationId, unknown>>>;
|
|
@@ -595,7 +616,7 @@ export declare const AgentEventPortableSchema: z.ZodDiscriminatedUnion<[z.ZodRea
|
|
|
595
616
|
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
596
617
|
delayMs: z.ZodOptional<z.ZodNumber>;
|
|
597
618
|
}, z.core.$strict>>;
|
|
598
|
-
protocolVersion: z.ZodLiteral<
|
|
619
|
+
protocolVersion: z.ZodLiteral<12>;
|
|
599
620
|
sessionId: z.ZodType<import("../index.js").AgentSessionId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentSessionId, unknown>>;
|
|
600
621
|
providerRefs: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
601
622
|
conversationId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderConversationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderConversationId, unknown>>>;
|
|
@@ -613,7 +634,7 @@ export declare const AgentEventPortableSchema: z.ZodDiscriminatedUnion<[z.ZodRea
|
|
|
613
634
|
message: z.ZodString;
|
|
614
635
|
context: z.ZodOptional<z.ZodType<import("../index.js").AgentErrorContext, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentErrorContext, unknown>>>;
|
|
615
636
|
}, z.core.$strict>>;
|
|
616
|
-
protocolVersion: z.ZodLiteral<
|
|
637
|
+
protocolVersion: z.ZodLiteral<12>;
|
|
617
638
|
sessionId: z.ZodType<import("../index.js").AgentSessionId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentSessionId, unknown>>;
|
|
618
639
|
providerRefs: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
619
640
|
conversationId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderConversationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderConversationId, unknown>>>;
|
|
@@ -629,7 +650,7 @@ export declare const AgentEventPortableSchema: z.ZodDiscriminatedUnion<[z.ZodRea
|
|
|
629
650
|
payload: z.ZodReadonly<z.ZodObject<{
|
|
630
651
|
error: z.ZodType<import("../index.js").AgentError, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentError, unknown>>;
|
|
631
652
|
}, z.core.$strict>>;
|
|
632
|
-
protocolVersion: z.ZodLiteral<
|
|
653
|
+
protocolVersion: z.ZodLiteral<12>;
|
|
633
654
|
sessionId: z.ZodType<import("../index.js").AgentSessionId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentSessionId, unknown>>;
|
|
634
655
|
providerRefs: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
635
656
|
conversationId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderConversationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderConversationId, unknown>>>;
|
|
@@ -647,7 +668,7 @@ export declare const AgentEventPortableSchema: z.ZodDiscriminatedUnion<[z.ZodRea
|
|
|
647
668
|
message: z.ZodString;
|
|
648
669
|
context: z.ZodOptional<z.ZodType<import("../index.js").AgentErrorContext, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentErrorContext, unknown>>>;
|
|
649
670
|
}, z.core.$strict>>;
|
|
650
|
-
protocolVersion: z.ZodLiteral<
|
|
671
|
+
protocolVersion: z.ZodLiteral<12>;
|
|
651
672
|
sessionId: z.ZodType<import("../index.js").AgentSessionId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentSessionId, unknown>>;
|
|
652
673
|
providerRefs: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
653
674
|
conversationId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderConversationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderConversationId, unknown>>>;
|
package/dist/zod/events.js
CHANGED
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
AGENT_PROTOCOL_VERSION,
|
|
11
11
|
agentProtocolSerializedJsonBytes
|
|
12
12
|
} from "../foundation/types.js";
|
|
13
|
+
import { AGENT_REQUEST_UNAVAILABLE_REASONS } from "../events/types.js";
|
|
13
14
|
import { AgentRequestPortableSchema, AgentRequestSchema } from "./requests.js";
|
|
14
15
|
import { AgentOperationResultPortableSchema } from "./operations.js";
|
|
15
16
|
import { AgentGeneratedResourceDescriptorPortableSchema } from "./resources.js";
|
|
@@ -165,6 +166,13 @@ const AgentEventPortableSchema = z.discriminatedUnion("type", [
|
|
|
165
166
|
"request.opened",
|
|
166
167
|
z.object({ request: AgentRequestPortableSchema }).strict().readonly()
|
|
167
168
|
),
|
|
169
|
+
turnEvent(
|
|
170
|
+
"request.unavailable",
|
|
171
|
+
z.object({
|
|
172
|
+
requestId: AgentRequestIdSchema,
|
|
173
|
+
reason: z.enum(AGENT_REQUEST_UNAVAILABLE_REASONS)
|
|
174
|
+
}).strict().readonly()
|
|
175
|
+
),
|
|
168
176
|
turnEvent("progress.updated", ProgressUpdatedPayloadSchema),
|
|
169
177
|
turnEvent("context.usage.updated", AgentContextUsagePortableSchema),
|
|
170
178
|
optionallyTurnScopedEvent(
|
package/dist/zod/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { AgentApprovalOptionIdSchema, AgentArtifactIdSchema, AgentCollaborationIdSchema, AgentConfigurationRevisionIdSchema, AgentInstanceIdSchema, AgentIntegrationIdSchema, AgentIntegrationResourceIdSchema, AgentIntegrationServerIdSchema, AgentIntegrationToolIdSchema, AgentIsoDateTimeSchema, AgentItemIdSchema, AgentJsonValueSchema, AgentManagedContentIdSchema, AgentEnvironmentIdSchema, AgentEffectiveContentIdSchema, AgentCommandIdSchema, AgentExtensionIdSchema, AgentOperationIdSchema, AgentOperationInvocationIdSchema, AgentProviderConversationIdSchema, AgentProviderHistoryAnchorSchema, AgentProviderItemRefSchema, AgentProviderKeySchema, AgentProviderRefsSchema, AgentProviderRequestRefSchema, AgentProviderTurnRefSchema, AgentRequestFieldIdSchema, AgentRequestIdSchema, AgentSessionIdSchema, AgentGeneratedResourceIdSchema, AgentTurnIdSchema, } from './foundation.js';
|
|
2
2
|
export { AgentErrorContextSchema, AgentErrorSchema, AgentFailureCategorySchema, AgentFailureQuotaReferenceSchema, AgentRecoveryHintSchema, } from './failures.js';
|
|
3
3
|
export { AgentSessionBindingSchema, AgentSessionBranchSourceSchema, AgentSessionBranchInputSchema, AgentSessionConfigurationSchema, AgentSessionCreateInputSchema, AgentSessionOpenInputSchema, AgentSessionResumeInputSchema, } from './sessions.js';
|
|
4
|
-
export { AgentSessionDecisionChoiceIdSchema, AgentSessionWorkspaceTargetSchema, AgentSessionDecisionConsequenceSchema, AgentSessionDecisionChoiceSchema, AgentSessionDecisionRequestPortableSchema, AgentSessionDecisionRequestSchema, AgentSessionDecisionResponseSchema, } from './sessionInteractions.js';
|
|
4
|
+
export { AgentSessionDecisionChoiceIdSchema, AgentSessionFormChoiceIdSchema, AgentSessionPlanReviewChoiceIdSchema, AgentSessionPlanIdSchema, AgentSessionPlanRevisionSchema, AgentSessionWorkspaceTargetSchema, AgentSessionDecisionConsequenceSchema, AgentSessionDecisionChoiceSchema, AgentSessionFormChoiceSchema, AgentSessionPlanSnapshotPortableSchema, AgentSessionPlanSnapshotSchema, AgentSessionPlanReviewChoiceSchema, AgentSessionDecisionRequestPortableSchema, AgentSessionDecisionRequestSchema, AgentSessionFormRequestPortableSchema, AgentSessionFormRequestSchema, AgentSessionPlanReviewRequestPortableSchema, AgentSessionPlanReviewRequestSchema, AgentSessionRequestPortableSchema, AgentSessionRequestSchema, AgentSessionDecisionResponsePortableSchema, AgentSessionDecisionResponseSchema, AgentSessionFormResponsePortableSchema, AgentSessionFormResponseSchema, AgentSessionPlanReviewResponsePortableSchema, AgentSessionPlanReviewResponseSchema, AgentSessionResponsePortableSchema, AgentSessionResponseSchema, } from './sessionInteractions.js';
|
|
5
5
|
export { AgentBrowserActionDetailsSchema, AgentCollaborationToolCallDetailsSchema, AgentCommandExecutionDetailsSchema, AgentComputerActionDetailsSchema, AgentContentStreamKindSchema, AgentContextCompactionDetailsSchema, AgentDiffSummarySchema, AgentDynamicToolCallDetailsSchema, AgentFileChangeDetailsSchema, AgentFileChangeSchema, AgentImageViewDetailsSchema, AgentItemSnapshotSchema, AgentMcpToolCallDetailsSchema, AgentPlanStepSchema, AgentReviewDetailsSchema, AgentTurnCompletedPayloadSchema, AgentTurnInputContentCompositionSchema, AgentTurnInputContentSchema, AgentTurnInteractionModeSchema, AgentTurnInputPartSchema, AgentContentReferenceInputPartSchema, AgentTurnInterruptionInputSchema, AgentTurnRunInputSchema, AgentWebSearchDetailsSchema, } from './turns.js';
|
|
6
6
|
export { AgentApprovalConsequenceSchema, AgentApprovalRequestSchema, AgentApprovalResolutionSchema, AgentElicitationRequestSchema, AgentRequestResolutionSchema, AgentRequestSchema, } from './requests.js';
|
|
7
7
|
export { AgentOperationCatalogSchema, AgentOperationDescriptorSchema, AgentOperationFieldSchema, AgentOperationInvocationSchema, AgentOperationResultSchema, } from './operations.js';
|
package/dist/zod/index.js
CHANGED
|
@@ -49,12 +49,33 @@ import {
|
|
|
49
49
|
} from "./sessions.js";
|
|
50
50
|
import {
|
|
51
51
|
AgentSessionDecisionChoiceIdSchema,
|
|
52
|
+
AgentSessionFormChoiceIdSchema,
|
|
53
|
+
AgentSessionPlanReviewChoiceIdSchema,
|
|
54
|
+
AgentSessionPlanIdSchema,
|
|
55
|
+
AgentSessionPlanRevisionSchema,
|
|
52
56
|
AgentSessionWorkspaceTargetSchema,
|
|
53
57
|
AgentSessionDecisionConsequenceSchema,
|
|
54
58
|
AgentSessionDecisionChoiceSchema,
|
|
59
|
+
AgentSessionFormChoiceSchema,
|
|
60
|
+
AgentSessionPlanSnapshotPortableSchema,
|
|
61
|
+
AgentSessionPlanSnapshotSchema,
|
|
62
|
+
AgentSessionPlanReviewChoiceSchema,
|
|
55
63
|
AgentSessionDecisionRequestPortableSchema,
|
|
56
64
|
AgentSessionDecisionRequestSchema,
|
|
57
|
-
|
|
65
|
+
AgentSessionFormRequestPortableSchema,
|
|
66
|
+
AgentSessionFormRequestSchema,
|
|
67
|
+
AgentSessionPlanReviewRequestPortableSchema,
|
|
68
|
+
AgentSessionPlanReviewRequestSchema,
|
|
69
|
+
AgentSessionRequestPortableSchema,
|
|
70
|
+
AgentSessionRequestSchema,
|
|
71
|
+
AgentSessionDecisionResponsePortableSchema,
|
|
72
|
+
AgentSessionDecisionResponseSchema,
|
|
73
|
+
AgentSessionFormResponsePortableSchema,
|
|
74
|
+
AgentSessionFormResponseSchema,
|
|
75
|
+
AgentSessionPlanReviewResponsePortableSchema,
|
|
76
|
+
AgentSessionPlanReviewResponseSchema,
|
|
77
|
+
AgentSessionResponsePortableSchema,
|
|
78
|
+
AgentSessionResponseSchema
|
|
58
79
|
} from "./sessionInteractions.js";
|
|
59
80
|
import {
|
|
60
81
|
AgentBrowserActionDetailsSchema,
|
|
@@ -222,9 +243,30 @@ export {
|
|
|
222
243
|
AgentSessionDecisionConsequenceSchema,
|
|
223
244
|
AgentSessionDecisionRequestPortableSchema,
|
|
224
245
|
AgentSessionDecisionRequestSchema,
|
|
246
|
+
AgentSessionDecisionResponsePortableSchema,
|
|
225
247
|
AgentSessionDecisionResponseSchema,
|
|
248
|
+
AgentSessionFormChoiceIdSchema,
|
|
249
|
+
AgentSessionFormChoiceSchema,
|
|
250
|
+
AgentSessionFormRequestPortableSchema,
|
|
251
|
+
AgentSessionFormRequestSchema,
|
|
252
|
+
AgentSessionFormResponsePortableSchema,
|
|
253
|
+
AgentSessionFormResponseSchema,
|
|
226
254
|
AgentSessionIdSchema,
|
|
227
255
|
AgentSessionOpenInputSchema,
|
|
256
|
+
AgentSessionPlanIdSchema,
|
|
257
|
+
AgentSessionPlanReviewChoiceIdSchema,
|
|
258
|
+
AgentSessionPlanReviewChoiceSchema,
|
|
259
|
+
AgentSessionPlanReviewRequestPortableSchema,
|
|
260
|
+
AgentSessionPlanReviewRequestSchema,
|
|
261
|
+
AgentSessionPlanReviewResponsePortableSchema,
|
|
262
|
+
AgentSessionPlanReviewResponseSchema,
|
|
263
|
+
AgentSessionPlanRevisionSchema,
|
|
264
|
+
AgentSessionPlanSnapshotPortableSchema,
|
|
265
|
+
AgentSessionPlanSnapshotSchema,
|
|
266
|
+
AgentSessionRequestPortableSchema,
|
|
267
|
+
AgentSessionRequestSchema,
|
|
268
|
+
AgentSessionResponsePortableSchema,
|
|
269
|
+
AgentSessionResponseSchema,
|
|
228
270
|
AgentSessionResumeInputSchema,
|
|
229
271
|
AgentSessionWorkspaceTargetSchema,
|
|
230
272
|
AgentTurnCompletedPayloadSchema,
|
package/dist/zod/operations.d.ts
CHANGED
|
@@ -323,9 +323,9 @@ export declare const AgentOperationInvocationSchema: z.ZodType<AgentOperationInv
|
|
|
323
323
|
export declare const AgentOperationResultPortableSchema: z.ZodReadonly<z.ZodObject<{
|
|
324
324
|
invocationId: z.ZodType<import("../index.js").AgentOperationInvocationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentOperationInvocationId, unknown>>;
|
|
325
325
|
status: z.ZodEnum<{
|
|
326
|
+
canceled: "canceled";
|
|
326
327
|
completed: "completed";
|
|
327
328
|
failed: "failed";
|
|
328
|
-
canceled: "canceled";
|
|
329
329
|
waiting_for_request: "waiting_for_request";
|
|
330
330
|
accepted: "accepted";
|
|
331
331
|
}>;
|