@agen-ai/agent-protocol 0.2.4 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +57 -13
- package/dist/accountQuota/index.d.ts +3 -0
- package/dist/accountQuota/index.js +2 -0
- package/dist/accountQuota/parsers.d.ts +7 -0
- package/dist/accountQuota/parsers.js +20 -0
- package/dist/accountQuota/types.d.ts +89 -0
- package/dist/accountQuota/types.js +12 -0
- package/dist/capabilities/contentReferenceText.d.ts +13 -0
- package/dist/capabilities/contentReferenceText.js +25 -0
- package/dist/capabilities/index.d.ts +1 -0
- package/dist/capabilities/index.js +1 -0
- package/dist/capabilities/types.d.ts +19 -1
- package/dist/capabilities/types.js +6 -0
- package/dist/commands/index.d.ts +3 -0
- package/dist/commands/index.js +2 -0
- package/dist/commands/parsers.d.ts +7 -0
- package/dist/commands/parsers.js +23 -0
- package/dist/commands/types.d.ts +26 -0
- package/dist/commands/types.js +10 -0
- package/dist/effectiveContent/index.d.ts +3 -0
- package/dist/effectiveContent/index.js +2 -0
- package/dist/effectiveContent/parsers.d.ts +7 -0
- package/dist/effectiveContent/parsers.js +23 -0
- package/dist/effectiveContent/types.d.ts +35 -0
- package/dist/effectiveContent/types.js +19 -0
- package/dist/environment/facts.d.ts +28 -0
- package/dist/environment/facts.js +39 -0
- package/dist/environment/index.d.ts +4 -0
- package/dist/environment/index.js +3 -0
- package/dist/environment/parsers.d.ts +17 -0
- package/dist/environment/parsers.js +68 -0
- package/dist/environment/types.d.ts +61 -0
- package/dist/environment/types.js +26 -0
- package/dist/events/types.d.ts +1 -1
- package/dist/extensions/index.d.ts +3 -0
- package/dist/extensions/index.js +2 -0
- package/dist/extensions/parsers.d.ts +7 -0
- package/dist/extensions/parsers.js +23 -0
- package/dist/extensions/types.d.ts +73 -0
- package/dist/extensions/types.js +30 -0
- package/dist/foundation/parsers.d.ts +9 -1
- package/dist/foundation/parsers.js +24 -0
- package/dist/foundation/types.d.ts +5 -1
- package/dist/foundation/types.js +1 -1
- package/dist/integrations/types.d.ts +22 -4
- package/dist/integrations/types.js +6 -2
- package/dist/jsonSchema/generated.d.ts +9893 -5474
- package/dist/jsonSchema/generated.js +3097 -154
- package/dist/public/accountQuota.d.ts +2 -0
- package/dist/public/accountQuota.js +1 -0
- package/dist/public/commands.d.ts +2 -0
- package/dist/public/commands.js +1 -0
- package/dist/public/effectiveContent.d.ts +2 -0
- package/dist/public/effectiveContent.js +1 -0
- package/dist/public/environment.d.ts +2 -0
- package/dist/public/environment.js +1 -0
- package/dist/public/extensions.d.ts +2 -0
- package/dist/public/extensions.js +1 -0
- package/dist/public/index.d.ts +5 -0
- package/dist/public/index.js +5 -0
- package/dist/turns/parsers.d.ts +3 -1
- package/dist/turns/parsers.js +9 -0
- package/dist/turns/types.d.ts +13 -2
- package/dist/turns/types.js +4 -0
- package/dist/zod/accountQuota.d.ts +265 -0
- package/dist/zod/accountQuota.js +155 -0
- package/dist/zod/capabilities.d.ts +79 -1
- package/dist/zod/capabilities.js +21 -5
- package/dist/zod/commands.d.ts +35 -0
- package/dist/zod/commands.js +114 -0
- package/dist/zod/effectiveContent.d.ts +72 -0
- package/dist/zod/effectiveContent.js +157 -0
- package/dist/zod/environment.d.ts +531 -0
- package/dist/zod/environment.js +336 -0
- package/dist/zod/environmentFacts.d.ts +10 -0
- package/dist/zod/environmentFacts.js +40 -0
- package/dist/zod/events.d.ts +23 -23
- package/dist/zod/extensions.d.ts +161 -0
- package/dist/zod/extensions.js +194 -0
- package/dist/zod/foundation.d.ts +6 -1
- package/dist/zod/foundation.js +12 -3
- package/dist/zod/index.d.ts +10 -4
- package/dist/zod/index.js +22 -2
- package/dist/zod/integrations.d.ts +54 -9
- package/dist/zod/integrations.js +49 -6
- package/dist/zod/resources.d.ts +2 -2
- package/dist/zod/turns.d.ts +33 -0
- package/dist/zod/turns.js +34 -1
- package/dist/zod/typeEquality.generated.d.ts +40 -4
- package/package.json +23 -3
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
import {
|
|
3
|
+
agentProtocolSerializedJsonBytes
|
|
4
|
+
} from "../foundation/types.js";
|
|
5
|
+
import {
|
|
6
|
+
AGENT_ENVIRONMENT_COMPLETENESSES,
|
|
7
|
+
AGENT_ENVIRONMENT_DOMAIN_CATALOG_BYTES_LIMIT,
|
|
8
|
+
AGENT_ENVIRONMENT_DOMAINS,
|
|
9
|
+
AGENT_ENVIRONMENT_EVIDENCE_EXTENTS,
|
|
10
|
+
AGENT_ENVIRONMENT_EFFECTIVE_ENTRIES_MAX_LENGTH,
|
|
11
|
+
AGENT_ENVIRONMENT_INTEGRATION_CONTRIBUTIONS_MAX_LENGTH,
|
|
12
|
+
AGENT_ENVIRONMENT_SCHEMA_VERSION,
|
|
13
|
+
AGENT_ENVIRONMENT_SNAPSHOT_BYTES_LIMIT
|
|
14
|
+
} from "../environment/types.js";
|
|
15
|
+
import {
|
|
16
|
+
AgentCommandCatalogPortableSchema,
|
|
17
|
+
AgentCommandCatalogSchema
|
|
18
|
+
} from "../zod/commands.js";
|
|
19
|
+
import {
|
|
20
|
+
AgentEffectiveContentCatalogPortableSchema,
|
|
21
|
+
AgentEffectiveContentCatalogSchema
|
|
22
|
+
} from "../zod/effectiveContent.js";
|
|
23
|
+
import {
|
|
24
|
+
AgentExtensionCatalogPortableSchema,
|
|
25
|
+
AgentExtensionCatalogSchema
|
|
26
|
+
} from "./extensions.js";
|
|
27
|
+
import {
|
|
28
|
+
AgentIntegrationCatalogPortableSchema,
|
|
29
|
+
AgentIntegrationCatalogSchema
|
|
30
|
+
} from "./integrations.js";
|
|
31
|
+
import {
|
|
32
|
+
AgentEnvironmentReasonSchema
|
|
33
|
+
} from "./environmentFacts.js";
|
|
34
|
+
import {
|
|
35
|
+
AgentEnvironmentIdSchema,
|
|
36
|
+
withAcyclicProtocolInput
|
|
37
|
+
} from "./foundation.js";
|
|
38
|
+
const PositiveSafeIntegerSchema = z.number().int().positive().max(Number.MAX_SAFE_INTEGER);
|
|
39
|
+
const DomainSchema = z.enum(AGENT_ENVIRONMENT_DOMAINS);
|
|
40
|
+
const ReasonSchema = AgentEnvironmentReasonSchema;
|
|
41
|
+
const ReasonListBaseSchema = z.array(ReasonSchema).max(16);
|
|
42
|
+
const ReasonListSchema = ReasonListBaseSchema.readonly();
|
|
43
|
+
const NonEmptyReasonListSchema = ReasonListBaseSchema.min(1).readonly();
|
|
44
|
+
function addUniqueIssues(values, path, label, context) {
|
|
45
|
+
const seen = /* @__PURE__ */ new Set();
|
|
46
|
+
values.forEach((value, index) => {
|
|
47
|
+
if (seen.has(value)) {
|
|
48
|
+
context.addIssue({
|
|
49
|
+
code: "custom",
|
|
50
|
+
path: [...path, index],
|
|
51
|
+
message: `${label} must be unique.`
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
seen.add(value);
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
const AvailableDomainResultBaseSchema = z.object({
|
|
58
|
+
kind: z.literal("available"),
|
|
59
|
+
extent: z.enum(AGENT_ENVIRONMENT_EVIDENCE_EXTENTS),
|
|
60
|
+
completeness: z.enum(AGENT_ENVIRONMENT_COMPLETENESSES),
|
|
61
|
+
reasons: ReasonListSchema
|
|
62
|
+
}).strict();
|
|
63
|
+
const UnavailableDomainResultSchema = z.discriminatedUnion("kind", [
|
|
64
|
+
z.object({ kind: z.literal("unsupported"), reasons: ReasonListSchema }).strict().readonly(),
|
|
65
|
+
z.object({ kind: z.literal("not_initialized"), reasons: ReasonListSchema }).strict().readonly(),
|
|
66
|
+
z.object({ kind: z.literal("unavailable"), reasons: NonEmptyReasonListSchema }).strict().readonly()
|
|
67
|
+
]);
|
|
68
|
+
function availableDomainResultSchema(catalog) {
|
|
69
|
+
return AvailableDomainResultBaseSchema.extend({ catalog }).strict().superRefine((result, context) => {
|
|
70
|
+
if (result.completeness === "complete" && result.reasons.length !== 0) {
|
|
71
|
+
context.addIssue({
|
|
72
|
+
code: "custom",
|
|
73
|
+
path: ["reasons"],
|
|
74
|
+
message: "Complete environment results cannot carry reasons."
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
if (result.completeness === "partial" && result.reasons.length === 0) {
|
|
78
|
+
context.addIssue({
|
|
79
|
+
code: "custom",
|
|
80
|
+
path: ["reasons"],
|
|
81
|
+
message: "Partial environment results require at least one reason."
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
}).readonly();
|
|
85
|
+
}
|
|
86
|
+
function domainResultSchema(catalog) {
|
|
87
|
+
return z.union([
|
|
88
|
+
availableDomainResultSchema(catalog),
|
|
89
|
+
UnavailableDomainResultSchema
|
|
90
|
+
]);
|
|
91
|
+
}
|
|
92
|
+
const ContentResultPortableSchema = domainResultSchema(
|
|
93
|
+
AgentEffectiveContentCatalogPortableSchema
|
|
94
|
+
);
|
|
95
|
+
const CommandsResultPortableSchema = domainResultSchema(AgentCommandCatalogPortableSchema);
|
|
96
|
+
const ExtensionsResultPortableSchema = domainResultSchema(AgentExtensionCatalogPortableSchema);
|
|
97
|
+
const IntegrationsResultPortableSchema = domainResultSchema(AgentIntegrationCatalogPortableSchema);
|
|
98
|
+
const AgentEnvironmentContentResultPortableSchema = ContentResultPortableSchema;
|
|
99
|
+
const AgentEnvironmentCommandsResultPortableSchema = CommandsResultPortableSchema;
|
|
100
|
+
const AgentEnvironmentExtensionsResultPortableSchema = ExtensionsResultPortableSchema;
|
|
101
|
+
const AgentEnvironmentIntegrationsResultPortableSchema = IntegrationsResultPortableSchema;
|
|
102
|
+
const ContentResultSchema = domainResultSchema(AgentEffectiveContentCatalogSchema);
|
|
103
|
+
const CommandsResultSchema = domainResultSchema(AgentCommandCatalogSchema);
|
|
104
|
+
const ExtensionsResultSchema = domainResultSchema(AgentExtensionCatalogSchema);
|
|
105
|
+
const IntegrationsResultSchema = domainResultSchema(AgentIntegrationCatalogSchema);
|
|
106
|
+
const AgentEnvironmentContentResultSchema = withAcyclicProtocolInput(ContentResultSchema, {
|
|
107
|
+
maxDepth: 16,
|
|
108
|
+
maxCollectionLength: AGENT_ENVIRONMENT_EFFECTIVE_ENTRIES_MAX_LENGTH * 8
|
|
109
|
+
});
|
|
110
|
+
const AgentEnvironmentCommandsResultSchema = withAcyclicProtocolInput(CommandsResultSchema, {
|
|
111
|
+
maxDepth: 16,
|
|
112
|
+
maxCollectionLength: AGENT_ENVIRONMENT_EFFECTIVE_ENTRIES_MAX_LENGTH * 8
|
|
113
|
+
});
|
|
114
|
+
const AgentEnvironmentExtensionsResultSchema = withAcyclicProtocolInput(ExtensionsResultSchema, {
|
|
115
|
+
maxDepth: 16,
|
|
116
|
+
maxCollectionLength: 16384
|
|
117
|
+
});
|
|
118
|
+
const AgentEnvironmentIntegrationsResultSchema = withAcyclicProtocolInput(IntegrationsResultSchema, {
|
|
119
|
+
maxDepth: 16,
|
|
120
|
+
maxCollectionLength: 16384
|
|
121
|
+
});
|
|
122
|
+
function addDomainByteBound(value, path, context) {
|
|
123
|
+
if (agentProtocolSerializedJsonBytes(value) > AGENT_ENVIRONMENT_DOMAIN_CATALOG_BYTES_LIMIT) {
|
|
124
|
+
context.addIssue({
|
|
125
|
+
code: "custom",
|
|
126
|
+
path: [...path],
|
|
127
|
+
message: "Environment domain exceeds its serialized UTF-8 byte limit."
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
function validateAvailableDomainBytes(result, path, context) {
|
|
132
|
+
if (typeof result !== "object" || result === null || !("kind" in result)) return;
|
|
133
|
+
if (result.kind !== "available") return;
|
|
134
|
+
addDomainByteBound(result, path, context);
|
|
135
|
+
}
|
|
136
|
+
const SnapshotBaseSchema = z.object({
|
|
137
|
+
schemaVersion: z.literal(AGENT_ENVIRONMENT_SCHEMA_VERSION),
|
|
138
|
+
environmentId: AgentEnvironmentIdSchema,
|
|
139
|
+
revision: PositiveSafeIntegerSchema
|
|
140
|
+
}).strict();
|
|
141
|
+
const AgentEnvironmentSnapshotPortableSchema = SnapshotBaseSchema.extend({
|
|
142
|
+
content: ContentResultPortableSchema,
|
|
143
|
+
commands: CommandsResultPortableSchema,
|
|
144
|
+
extensions: ExtensionsResultPortableSchema,
|
|
145
|
+
integrations: IntegrationsResultPortableSchema
|
|
146
|
+
}).strict().readonly();
|
|
147
|
+
function findContent(result, id, revision) {
|
|
148
|
+
if (result.kind !== "available") return null;
|
|
149
|
+
const entry = result.catalog.content.find((candidate) => candidate.contentId === id);
|
|
150
|
+
return entry && entry.revision === revision ? entry : null;
|
|
151
|
+
}
|
|
152
|
+
function findCommand(result, id, revision) {
|
|
153
|
+
if (result.kind !== "available") return null;
|
|
154
|
+
const entry = result.catalog.commands.find((candidate) => candidate.commandId === id);
|
|
155
|
+
return entry && entry.revision === revision ? entry : null;
|
|
156
|
+
}
|
|
157
|
+
function findIntegration(result, id, revision) {
|
|
158
|
+
if (result.kind !== "available") return null;
|
|
159
|
+
const entry = result.catalog.integrations.find((candidate) => candidate.integrationId === id);
|
|
160
|
+
return entry && entry.revision === revision ? entry : null;
|
|
161
|
+
}
|
|
162
|
+
function findExtension(result, id, revision) {
|
|
163
|
+
if (result.kind !== "available") return null;
|
|
164
|
+
const entry = result.catalog.extensions.find((candidate) => candidate.extensionId === id);
|
|
165
|
+
return entry && entry.revision === revision ? entry : null;
|
|
166
|
+
}
|
|
167
|
+
function validateContentExtensionReferences(snapshot, context) {
|
|
168
|
+
if (snapshot.content.kind !== "available") return;
|
|
169
|
+
snapshot.content.catalog.content.forEach((descriptor, descriptorIndex) => {
|
|
170
|
+
const reference = descriptor.extension;
|
|
171
|
+
if (reference === void 0) return;
|
|
172
|
+
const path = ["content", "catalog", "content", descriptorIndex, "extension"];
|
|
173
|
+
const entry = findExtension(
|
|
174
|
+
snapshot.extensions,
|
|
175
|
+
reference.extensionId,
|
|
176
|
+
reference.revision
|
|
177
|
+
);
|
|
178
|
+
if (snapshot.extensions.kind !== "available" || snapshot.extensions.catalog.revision !== reference.catalogRevision || entry === null) {
|
|
179
|
+
context.addIssue({
|
|
180
|
+
code: "custom",
|
|
181
|
+
path,
|
|
182
|
+
message: "Content extension reference must resolve in the exact catalog revision."
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
function validateComponentReferences(snapshot, context) {
|
|
188
|
+
if (snapshot.extensions.kind !== "available") return;
|
|
189
|
+
snapshot.extensions.catalog.extensions.forEach((extension, extensionIndex) => {
|
|
190
|
+
extension.components.forEach((component, componentIndex) => {
|
|
191
|
+
if (!("target" in component) || component.target === void 0) return;
|
|
192
|
+
const target = component.target;
|
|
193
|
+
const path = [
|
|
194
|
+
"extensions",
|
|
195
|
+
"catalog",
|
|
196
|
+
"extensions",
|
|
197
|
+
extensionIndex,
|
|
198
|
+
"components",
|
|
199
|
+
componentIndex,
|
|
200
|
+
"target"
|
|
201
|
+
];
|
|
202
|
+
if (component.kind === "skill" || component.kind === "rule" || component.kind === "prompt" || component.kind === "agent_definition") {
|
|
203
|
+
if (target.domain !== "content") {
|
|
204
|
+
context.addIssue({ code: "custom", path: [...path, "domain"], message: "Content components require a content target." });
|
|
205
|
+
return;
|
|
206
|
+
}
|
|
207
|
+
const entry = findContent(snapshot.content, target.id, target.revision);
|
|
208
|
+
if (snapshot.content.kind !== "available" || snapshot.content.catalog.revision !== target.catalogRevision || entry === null) {
|
|
209
|
+
context.addIssue({ code: "custom", path, message: "Content target must resolve in the exact catalog revision." });
|
|
210
|
+
return;
|
|
211
|
+
}
|
|
212
|
+
if (entry.kind !== component.kind) {
|
|
213
|
+
context.addIssue({ code: "custom", path, message: "Content target kind contradicts the component kind." });
|
|
214
|
+
}
|
|
215
|
+
return;
|
|
216
|
+
}
|
|
217
|
+
if (component.kind === "command") {
|
|
218
|
+
if (target.domain !== "commands") {
|
|
219
|
+
context.addIssue({ code: "custom", path: [...path, "domain"], message: "Command components require a commands target." });
|
|
220
|
+
return;
|
|
221
|
+
}
|
|
222
|
+
const entry = findCommand(snapshot.commands, target.id, target.revision);
|
|
223
|
+
if (snapshot.commands.kind !== "available" || snapshot.commands.catalog.revision !== target.catalogRevision || entry === null) {
|
|
224
|
+
context.addIssue({ code: "custom", path, message: "Command target must resolve in the exact catalog revision." });
|
|
225
|
+
}
|
|
226
|
+
return;
|
|
227
|
+
}
|
|
228
|
+
if (component.kind === "mcp_server" || component.kind === "connector") {
|
|
229
|
+
if (target.domain !== "integrations") {
|
|
230
|
+
context.addIssue({ code: "custom", path: [...path, "domain"], message: "Integration components require an integrations target." });
|
|
231
|
+
return;
|
|
232
|
+
}
|
|
233
|
+
const entry = findIntegration(snapshot.integrations, target.id, target.revision);
|
|
234
|
+
if (snapshot.integrations.kind !== "available" || snapshot.integrations.catalog.revision !== target.catalogRevision || entry === null) {
|
|
235
|
+
context.addIssue({ code: "custom", path, message: "Integration target must resolve in the exact catalog revision." });
|
|
236
|
+
return;
|
|
237
|
+
}
|
|
238
|
+
const expectedKind = component.kind === "mcp_server" ? "mcp" : "connector";
|
|
239
|
+
if (entry.kind !== expectedKind) {
|
|
240
|
+
context.addIssue({ code: "custom", path, message: "Integration target kind contradicts the component kind." });
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
});
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
const AgentEnvironmentSnapshotSchema = withAcyclicProtocolInput(
|
|
247
|
+
SnapshotBaseSchema.extend({
|
|
248
|
+
content: ContentResultSchema,
|
|
249
|
+
commands: CommandsResultSchema,
|
|
250
|
+
extensions: ExtensionsResultSchema,
|
|
251
|
+
integrations: IntegrationsResultSchema
|
|
252
|
+
}).strict().readonly(),
|
|
253
|
+
{
|
|
254
|
+
maxDepth: 16,
|
|
255
|
+
maxCollectionLength: 32768
|
|
256
|
+
}
|
|
257
|
+
).superRefine((snapshot, context) => {
|
|
258
|
+
validateAvailableDomainBytes(snapshot.content, ["content"], context);
|
|
259
|
+
validateAvailableDomainBytes(snapshot.commands, ["commands"], context);
|
|
260
|
+
validateAvailableDomainBytes(snapshot.extensions, ["extensions"], context);
|
|
261
|
+
validateAvailableDomainBytes(snapshot.integrations, ["integrations"], context);
|
|
262
|
+
const contentCount = snapshot.content.kind === "available" ? snapshot.content.catalog.content.length : 0;
|
|
263
|
+
const commandCount = snapshot.commands.kind === "available" ? snapshot.commands.catalog.commands.length : 0;
|
|
264
|
+
if (contentCount + commandCount > AGENT_ENVIRONMENT_EFFECTIVE_ENTRIES_MAX_LENGTH) {
|
|
265
|
+
context.addIssue({
|
|
266
|
+
code: "custom",
|
|
267
|
+
path: ["content"],
|
|
268
|
+
message: "Effective content and command entries exceed the aggregate limit."
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
const integrationContributions = snapshot.integrations.kind === "available" ? snapshot.integrations.catalog.integrations.reduce((total, integration) => total + (integration.kind === "mcp" ? integration.servers.reduce((serverTotal, server) => serverTotal + server.tools.length + server.resources.length, 0) : integration.tools?.length ?? 0), 0) : 0;
|
|
272
|
+
if (integrationContributions > AGENT_ENVIRONMENT_INTEGRATION_CONTRIBUTIONS_MAX_LENGTH) {
|
|
273
|
+
context.addIssue({
|
|
274
|
+
code: "custom",
|
|
275
|
+
path: ["integrations"],
|
|
276
|
+
message: "Integration tools and resources exceed the aggregate limit."
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
validateContentExtensionReferences(snapshot, context);
|
|
280
|
+
validateComponentReferences(snapshot, context);
|
|
281
|
+
if (agentProtocolSerializedJsonBytes(snapshot) > AGENT_ENVIRONMENT_SNAPSHOT_BYTES_LIMIT) {
|
|
282
|
+
context.addIssue({
|
|
283
|
+
code: "custom",
|
|
284
|
+
message: "Environment snapshot exceeds its serialized UTF-8 byte limit."
|
|
285
|
+
});
|
|
286
|
+
}
|
|
287
|
+
});
|
|
288
|
+
const AgentEnvironmentInvalidationSchema = withAcyclicProtocolInput(z.object({
|
|
289
|
+
environmentId: AgentEnvironmentIdSchema,
|
|
290
|
+
domains: z.array(DomainSchema).min(1).max(AGENT_ENVIRONMENT_DOMAINS.length).readonly()
|
|
291
|
+
}).strict().readonly(), {
|
|
292
|
+
maxDepth: 4,
|
|
293
|
+
maxCollectionLength: AGENT_ENVIRONMENT_DOMAINS.length + 2
|
|
294
|
+
}).superRefine((invalidation, context) => {
|
|
295
|
+
addUniqueIssues(invalidation.domains, ["domains"], "Invalidation domains", context);
|
|
296
|
+
});
|
|
297
|
+
const EnvironmentReadCapabilitySchema = z.union([
|
|
298
|
+
z.object({ kind: z.literal("unsupported") }).strict().readonly(),
|
|
299
|
+
z.object({
|
|
300
|
+
kind: z.literal("read"),
|
|
301
|
+
domains: z.array(DomainSchema).min(1).max(AGENT_ENVIRONMENT_DOMAINS.length).readonly()
|
|
302
|
+
}).strict().readonly(),
|
|
303
|
+
z.object({
|
|
304
|
+
kind: z.literal("read_and_watch"),
|
|
305
|
+
domains: z.array(DomainSchema).min(1).max(AGENT_ENVIRONMENT_DOMAINS.length).readonly()
|
|
306
|
+
}).strict().readonly()
|
|
307
|
+
]);
|
|
308
|
+
const AgentEnvironmentReadCapabilitySchema = withAcyclicProtocolInput(
|
|
309
|
+
EnvironmentReadCapabilitySchema,
|
|
310
|
+
{ maxDepth: 4, maxCollectionLength: AGENT_ENVIRONMENT_DOMAINS.length + 2 }
|
|
311
|
+
).superRefine((capability, context) => {
|
|
312
|
+
if (capability.kind === "unsupported") return;
|
|
313
|
+
addUniqueIssues(capability.domains, ["domains"], "Environment capability domains", context);
|
|
314
|
+
});
|
|
315
|
+
const AgentEnvironmentCapabilitySchema = withAcyclicProtocolInput(z.object({
|
|
316
|
+
instance: AgentEnvironmentReadCapabilitySchema,
|
|
317
|
+
session: AgentEnvironmentReadCapabilitySchema
|
|
318
|
+
}).strict().readonly(), {
|
|
319
|
+
maxDepth: 6,
|
|
320
|
+
maxCollectionLength: AGENT_ENVIRONMENT_DOMAINS.length * 2 + 4
|
|
321
|
+
});
|
|
322
|
+
export {
|
|
323
|
+
AgentEnvironmentCapabilitySchema,
|
|
324
|
+
AgentEnvironmentCommandsResultPortableSchema,
|
|
325
|
+
AgentEnvironmentCommandsResultSchema,
|
|
326
|
+
AgentEnvironmentContentResultPortableSchema,
|
|
327
|
+
AgentEnvironmentContentResultSchema,
|
|
328
|
+
AgentEnvironmentExtensionsResultPortableSchema,
|
|
329
|
+
AgentEnvironmentExtensionsResultSchema,
|
|
330
|
+
AgentEnvironmentIntegrationsResultPortableSchema,
|
|
331
|
+
AgentEnvironmentIntegrationsResultSchema,
|
|
332
|
+
AgentEnvironmentInvalidationSchema,
|
|
333
|
+
AgentEnvironmentReadCapabilitySchema,
|
|
334
|
+
AgentEnvironmentSnapshotPortableSchema,
|
|
335
|
+
AgentEnvironmentSnapshotSchema
|
|
336
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
import { type AgentAvailabilityFact, type AgentEnvironmentOrigin, type AgentEnvironmentReason, type AgentEnvironmentScope, type AgentEnvironmentSource, type AgentInvocationPosture, type AgentQualifiedExtensionReference } from '../environment/facts.js';
|
|
3
|
+
export declare const AgentEnvironmentScopeSchema: z.ZodType<AgentEnvironmentScope>;
|
|
4
|
+
export declare const AgentEnvironmentOriginSchema: z.ZodType<AgentEnvironmentOrigin>;
|
|
5
|
+
export declare const AgentInvocationPostureSchema: z.ZodType<AgentInvocationPosture>;
|
|
6
|
+
export declare const AgentEnvironmentReasonSchema: z.ZodType<AgentEnvironmentReason>;
|
|
7
|
+
export declare const AgentEnvironmentSourceSchema: z.ZodType<AgentEnvironmentSource>;
|
|
8
|
+
export declare const AgentAvailabilityFactSchema: z.ZodType<AgentAvailabilityFact>;
|
|
9
|
+
export declare const AgentQualifiedExtensionReferenceSchema: z.ZodType<AgentQualifiedExtensionReference>;
|
|
10
|
+
//# sourceMappingURL=environmentFacts.d.ts.map
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
import {
|
|
3
|
+
AGENT_ENVIRONMENT_ORIGINS,
|
|
4
|
+
AGENT_ENVIRONMENT_REASONS,
|
|
5
|
+
AGENT_ENVIRONMENT_SCOPES,
|
|
6
|
+
AGENT_INVOCATION_POSTURES
|
|
7
|
+
} from "../environment/facts.js";
|
|
8
|
+
import { AgentExtensionIdSchema } from "./foundation.js";
|
|
9
|
+
const PositiveSafeIntegerSchema = z.number().int().positive().max(Number.MAX_SAFE_INTEGER);
|
|
10
|
+
const AgentEnvironmentScopeSchema = z.enum(AGENT_ENVIRONMENT_SCOPES);
|
|
11
|
+
const AgentEnvironmentOriginSchema = z.enum(AGENT_ENVIRONMENT_ORIGINS);
|
|
12
|
+
const AgentInvocationPostureSchema = z.enum(AGENT_INVOCATION_POSTURES);
|
|
13
|
+
const AgentEnvironmentReasonSchema = z.enum(AGENT_ENVIRONMENT_REASONS);
|
|
14
|
+
const AgentEnvironmentSourceSchema = z.object({
|
|
15
|
+
scope: AgentEnvironmentScopeSchema,
|
|
16
|
+
origin: AgentEnvironmentOriginSchema
|
|
17
|
+
}).strict().readonly();
|
|
18
|
+
const AgentAvailabilityFactSchema = z.discriminatedUnion("kind", [
|
|
19
|
+
z.object({
|
|
20
|
+
kind: z.literal("known"),
|
|
21
|
+
value: z.boolean()
|
|
22
|
+
}).strict().readonly(),
|
|
23
|
+
z.object({
|
|
24
|
+
kind: z.literal("unknown")
|
|
25
|
+
}).strict().readonly()
|
|
26
|
+
]);
|
|
27
|
+
const AgentQualifiedExtensionReferenceSchema = z.object({
|
|
28
|
+
extensionId: AgentExtensionIdSchema,
|
|
29
|
+
revision: PositiveSafeIntegerSchema,
|
|
30
|
+
catalogRevision: PositiveSafeIntegerSchema
|
|
31
|
+
}).strict().readonly();
|
|
32
|
+
export {
|
|
33
|
+
AgentAvailabilityFactSchema,
|
|
34
|
+
AgentEnvironmentOriginSchema,
|
|
35
|
+
AgentEnvironmentReasonSchema,
|
|
36
|
+
AgentEnvironmentScopeSchema,
|
|
37
|
+
AgentEnvironmentSourceSchema,
|
|
38
|
+
AgentInvocationPostureSchema,
|
|
39
|
+
AgentQualifiedExtensionReferenceSchema
|
|
40
|
+
};
|
package/dist/zod/events.d.ts
CHANGED
|
@@ -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<9>;
|
|
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<9>;
|
|
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>>>;
|
|
@@ -77,7 +77,7 @@ export declare const AgentEventPortableSchema: z.ZodDiscriminatedUnion<[z.ZodRea
|
|
|
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<9>;
|
|
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<9>;
|
|
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<9>;
|
|
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<9>;
|
|
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<9>;
|
|
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<9>;
|
|
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<9>;
|
|
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<9>;
|
|
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>>>;
|
|
@@ -326,7 +326,7 @@ export declare const AgentEventPortableSchema: z.ZodDiscriminatedUnion<[z.ZodRea
|
|
|
326
326
|
expiresAt: z.ZodOptional<z.ZodType<import("../index.js").AgentIsoDateTime, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentIsoDateTime, unknown>>>;
|
|
327
327
|
}, z.core.$strict>>], "requestKind">;
|
|
328
328
|
}, z.core.$strict>>;
|
|
329
|
-
protocolVersion: z.ZodLiteral<
|
|
329
|
+
protocolVersion: z.ZodLiteral<9>;
|
|
330
330
|
sessionId: z.ZodType<import("../index.js").AgentSessionId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentSessionId, unknown>>;
|
|
331
331
|
providerRefs: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
332
332
|
conversationId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderConversationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderConversationId, unknown>>>;
|
|
@@ -344,8 +344,8 @@ export declare const AgentEventPortableSchema: z.ZodDiscriminatedUnion<[z.ZodRea
|
|
|
344
344
|
kind: z.ZodEnum<{
|
|
345
345
|
unknown: "unknown";
|
|
346
346
|
tool: "tool";
|
|
347
|
-
task: "task";
|
|
348
347
|
hook: "hook";
|
|
348
|
+
task: "task";
|
|
349
349
|
}>;
|
|
350
350
|
phase: z.ZodEnum<{
|
|
351
351
|
completed: "completed";
|
|
@@ -357,7 +357,7 @@ export declare const AgentEventPortableSchema: z.ZodDiscriminatedUnion<[z.ZodRea
|
|
|
357
357
|
current: z.ZodOptional<z.ZodNumber>;
|
|
358
358
|
total: z.ZodOptional<z.ZodNumber>;
|
|
359
359
|
}, z.core.$strict>>;
|
|
360
|
-
protocolVersion: z.ZodLiteral<
|
|
360
|
+
protocolVersion: z.ZodLiteral<9>;
|
|
361
361
|
sessionId: z.ZodType<import("../index.js").AgentSessionId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentSessionId, unknown>>;
|
|
362
362
|
providerRefs: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
363
363
|
conversationId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderConversationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderConversationId, unknown>>>;
|
|
@@ -395,7 +395,7 @@ export declare const AgentEventPortableSchema: z.ZodDiscriminatedUnion<[z.ZodRea
|
|
|
395
395
|
thresholdTokens: z.ZodOptional<z.ZodNumber>;
|
|
396
396
|
}, z.core.$strict>>>;
|
|
397
397
|
}, z.core.$strict>>;
|
|
398
|
-
protocolVersion: z.ZodLiteral<
|
|
398
|
+
protocolVersion: z.ZodLiteral<9>;
|
|
399
399
|
sessionId: z.ZodType<import("../index.js").AgentSessionId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentSessionId, unknown>>;
|
|
400
400
|
providerRefs: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
401
401
|
conversationId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderConversationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderConversationId, unknown>>>;
|
|
@@ -411,7 +411,7 @@ export declare const AgentEventPortableSchema: z.ZodDiscriminatedUnion<[z.ZodRea
|
|
|
411
411
|
payload: z.ZodReadonly<z.ZodObject<{
|
|
412
412
|
artifact: z.ZodType<import("../index.js").AgentArtifactDescriptor, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentArtifactDescriptor, unknown>>;
|
|
413
413
|
}, z.core.$strict>>;
|
|
414
|
-
protocolVersion: z.ZodLiteral<
|
|
414
|
+
protocolVersion: z.ZodLiteral<9>;
|
|
415
415
|
sessionId: z.ZodType<import("../index.js").AgentSessionId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentSessionId, unknown>>;
|
|
416
416
|
providerRefs: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
417
417
|
conversationId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderConversationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderConversationId, unknown>>>;
|
|
@@ -440,7 +440,7 @@ export declare const AgentEventPortableSchema: z.ZodDiscriminatedUnion<[z.ZodRea
|
|
|
440
440
|
error: z.ZodOptional<z.ZodType<import("../index.js").AgentError, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentError, unknown>>>;
|
|
441
441
|
}, z.core.$strict>>;
|
|
442
442
|
}, z.core.$strict>>;
|
|
443
|
-
protocolVersion: z.ZodLiteral<
|
|
443
|
+
protocolVersion: z.ZodLiteral<9>;
|
|
444
444
|
sessionId: z.ZodType<import("../index.js").AgentSessionId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentSessionId, unknown>>;
|
|
445
445
|
providerRefs: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
446
446
|
conversationId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderConversationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderConversationId, unknown>>>;
|
|
@@ -509,7 +509,7 @@ export declare const AgentEventPortableSchema: z.ZodDiscriminatedUnion<[z.ZodRea
|
|
|
509
509
|
resourceIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodType<import("../index.js").AgentGeneratedResourceId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentGeneratedResourceId, unknown>>>>>;
|
|
510
510
|
}, z.core.$strict>>;
|
|
511
511
|
}, z.core.$strict>>;
|
|
512
|
-
protocolVersion: z.ZodLiteral<
|
|
512
|
+
protocolVersion: z.ZodLiteral<9>;
|
|
513
513
|
sessionId: z.ZodType<import("../index.js").AgentSessionId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentSessionId, unknown>>;
|
|
514
514
|
providerRefs: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
515
515
|
conversationId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderConversationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderConversationId, unknown>>>;
|
|
@@ -531,10 +531,10 @@ export declare const AgentEventPortableSchema: z.ZodDiscriminatedUnion<[z.ZodRea
|
|
|
531
531
|
archive: "archive";
|
|
532
532
|
}>;
|
|
533
533
|
status: z.ZodEnum<{
|
|
534
|
+
unavailable: "unavailable";
|
|
535
|
+
available: "available";
|
|
534
536
|
pending: "pending";
|
|
535
537
|
expired: "expired";
|
|
536
|
-
available: "available";
|
|
537
|
-
unavailable: "unavailable";
|
|
538
538
|
}>;
|
|
539
539
|
displayName: z.ZodString;
|
|
540
540
|
producer: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
@@ -563,7 +563,7 @@ export declare const AgentEventPortableSchema: z.ZodDiscriminatedUnion<[z.ZodRea
|
|
|
563
563
|
error: z.ZodOptional<z.ZodType<import("../index.js").AgentError, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentError, unknown>>>;
|
|
564
564
|
}, z.core.$strict>>;
|
|
565
565
|
}, z.core.$strict>>;
|
|
566
|
-
protocolVersion: z.ZodLiteral<
|
|
566
|
+
protocolVersion: z.ZodLiteral<9>;
|
|
567
567
|
sessionId: z.ZodType<import("../index.js").AgentSessionId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentSessionId, unknown>>;
|
|
568
568
|
providerRefs: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
569
569
|
conversationId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderConversationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderConversationId, unknown>>>;
|
|
@@ -586,7 +586,7 @@ export declare const AgentEventPortableSchema: z.ZodDiscriminatedUnion<[z.ZodRea
|
|
|
586
586
|
status: z.ZodOptional<z.ZodString>;
|
|
587
587
|
}, z.core.$strict>>>;
|
|
588
588
|
}, z.core.$strict>>;
|
|
589
|
-
protocolVersion: z.ZodLiteral<
|
|
589
|
+
protocolVersion: z.ZodLiteral<9>;
|
|
590
590
|
sessionId: z.ZodType<import("../index.js").AgentSessionId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentSessionId, unknown>>;
|
|
591
591
|
providerRefs: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
592
592
|
conversationId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderConversationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderConversationId, unknown>>>;
|
|
@@ -602,7 +602,7 @@ export declare const AgentEventPortableSchema: z.ZodDiscriminatedUnion<[z.ZodRea
|
|
|
602
602
|
payload: z.ZodReadonly<z.ZodObject<{
|
|
603
603
|
error: z.ZodType<import("../index.js").AgentError, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentError, unknown>>;
|
|
604
604
|
}, z.core.$strict>>;
|
|
605
|
-
protocolVersion: z.ZodLiteral<
|
|
605
|
+
protocolVersion: z.ZodLiteral<9>;
|
|
606
606
|
sessionId: z.ZodType<import("../index.js").AgentSessionId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentSessionId, unknown>>;
|
|
607
607
|
providerRefs: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
608
608
|
conversationId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderConversationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderConversationId, unknown>>>;
|
|
@@ -624,7 +624,7 @@ export declare const AgentEventPortableSchema: z.ZodDiscriminatedUnion<[z.ZodRea
|
|
|
624
624
|
status: z.ZodOptional<z.ZodString>;
|
|
625
625
|
}, z.core.$strict>>>;
|
|
626
626
|
}, z.core.$strict>>;
|
|
627
|
-
protocolVersion: z.ZodLiteral<
|
|
627
|
+
protocolVersion: z.ZodLiteral<9>;
|
|
628
628
|
sessionId: z.ZodType<import("../index.js").AgentSessionId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentSessionId, unknown>>;
|
|
629
629
|
providerRefs: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
630
630
|
conversationId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderConversationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderConversationId, unknown>>>;
|