@agen-ai/agent-protocol 0.2.2 → 0.2.4

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.
Files changed (91) hide show
  1. package/README.md +22 -12
  2. package/dist/capabilities/types.d.ts +64 -18
  3. package/dist/capabilities/types.js +0 -6
  4. package/dist/collaboration/index.d.ts +3 -0
  5. package/dist/collaboration/index.js +2 -0
  6. package/dist/collaboration/parsers.d.ts +9 -0
  7. package/dist/collaboration/parsers.js +32 -0
  8. package/dist/collaboration/types.d.ts +88 -0
  9. package/dist/collaboration/types.js +64 -0
  10. package/dist/configuration/index.d.ts +3 -0
  11. package/dist/configuration/index.js +2 -0
  12. package/dist/configuration/parsers.d.ts +9 -0
  13. package/dist/configuration/parsers.js +98 -0
  14. package/dist/configuration/types.d.ts +72 -0
  15. package/dist/configuration/types.js +27 -0
  16. package/dist/events/types.d.ts +15 -3
  17. package/dist/events/types.js +3 -0
  18. package/dist/foundation/parsers.d.ts +19 -1
  19. package/dist/foundation/parsers.js +70 -0
  20. package/dist/foundation/types.d.ts +10 -1
  21. package/dist/foundation/types.js +1 -1
  22. package/dist/integrations/index.d.ts +3 -0
  23. package/dist/integrations/index.js +2 -0
  24. package/dist/integrations/parsers.d.ts +7 -0
  25. package/dist/integrations/parsers.js +23 -0
  26. package/dist/integrations/types.d.ts +43 -0
  27. package/dist/integrations/types.js +23 -0
  28. package/dist/jsonSchema/generated.d.ts +9686 -3515
  29. package/dist/jsonSchema/generated.js +5341 -1391
  30. package/dist/managedContent/index.d.ts +3 -0
  31. package/dist/managedContent/index.js +2 -0
  32. package/dist/managedContent/parsers.d.ts +7 -0
  33. package/dist/managedContent/parsers.js +23 -0
  34. package/dist/managedContent/types.d.ts +39 -0
  35. package/dist/managedContent/types.js +21 -0
  36. package/dist/operations/index.d.ts +3 -0
  37. package/dist/operations/index.js +2 -0
  38. package/dist/operations/parsers.d.ts +15 -0
  39. package/dist/operations/parsers.js +181 -0
  40. package/dist/operations/types.d.ts +112 -0
  41. package/dist/operations/types.js +67 -0
  42. package/dist/public/collaboration.d.ts +2 -0
  43. package/dist/public/collaboration.js +1 -0
  44. package/dist/public/configuration.d.ts +2 -0
  45. package/dist/public/configuration.js +1 -0
  46. package/dist/public/index.d.ts +6 -0
  47. package/dist/public/index.js +6 -0
  48. package/dist/public/integrations.d.ts +2 -0
  49. package/dist/public/integrations.js +1 -0
  50. package/dist/public/managedContent.d.ts +2 -0
  51. package/dist/public/managedContent.js +1 -0
  52. package/dist/public/operations.d.ts +2 -0
  53. package/dist/public/operations.js +1 -0
  54. package/dist/public/resources.d.ts +2 -0
  55. package/dist/public/resources.js +1 -0
  56. package/dist/requests/parsers.js +40 -11
  57. package/dist/requests/types.d.ts +35 -8
  58. package/dist/requests/types.js +15 -1
  59. package/dist/resources/index.d.ts +3 -0
  60. package/dist/resources/index.js +2 -0
  61. package/dist/resources/parsers.d.ts +5 -0
  62. package/dist/resources/parsers.js +12 -0
  63. package/dist/resources/types.d.ts +39 -0
  64. package/dist/resources/types.js +19 -0
  65. package/dist/sessions/types.d.ts +15 -4
  66. package/dist/zod/capabilities.d.ts +103 -15
  67. package/dist/zod/capabilities.js +196 -31
  68. package/dist/zod/collaboration.d.ts +60 -0
  69. package/dist/zod/collaboration.js +155 -0
  70. package/dist/zod/configuration.d.ts +177 -0
  71. package/dist/zod/configuration.js +157 -0
  72. package/dist/zod/events.d.ts +214 -22
  73. package/dist/zod/events.js +15 -0
  74. package/dist/zod/foundation.d.ts +10 -1
  75. package/dist/zod/foundation.js +18 -0
  76. package/dist/zod/index.d.ts +7 -1
  77. package/dist/zod/index.js +62 -0
  78. package/dist/zod/integrations.d.ts +76 -0
  79. package/dist/zod/integrations.js +92 -0
  80. package/dist/zod/managedContent.d.ts +9 -0
  81. package/dist/zod/managedContent.js +70 -0
  82. package/dist/zod/operations.d.ts +339 -0
  83. package/dist/zod/operations.js +229 -0
  84. package/dist/zod/requests.d.ts +100 -11
  85. package/dist/zod/requests.js +66 -26
  86. package/dist/zod/resources.d.ts +43 -0
  87. package/dist/zod/resources.js +82 -0
  88. package/dist/zod/sessions.d.ts +168 -21
  89. package/dist/zod/sessions.js +54 -42
  90. package/dist/zod/typeEquality.generated.d.ts +40 -0
  91. package/package.json +26 -2
@@ -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<7>;
36
+ protocolVersion: z.ZodLiteral<8>;
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<7>;
57
+ protocolVersion: z.ZodLiteral<8>;
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<7>;
80
+ protocolVersion: z.ZodLiteral<8>;
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<7>;
94
+ protocolVersion: z.ZodLiteral<8>;
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<7>;
108
+ protocolVersion: z.ZodLiteral<8>;
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<7>;
122
+ protocolVersion: z.ZodLiteral<8>;
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<7>;
148
+ protocolVersion: z.ZodLiteral<8>;
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<7>;
165
+ protocolVersion: z.ZodLiteral<8>;
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<7>;
182
+ protocolVersion: z.ZodLiteral<8>;
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<7>;
196
+ protocolVersion: z.ZodLiteral<8>;
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>>>;
@@ -257,36 +257,76 @@ export declare const AgentEventPortableSchema: z.ZodDiscriminatedUnion<[z.ZodRea
257
257
  requestId: z.ZodType<import("../index.js").AgentRequestId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentRequestId, unknown>>;
258
258
  prompt: z.ZodString;
259
259
  fields: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
260
+ kind: z.ZodLiteral<"text">;
261
+ multiline: z.ZodBoolean;
262
+ maxLength: z.ZodNumber;
260
263
  fieldId: z.ZodType<import("../index.js").AgentRequestFieldId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentRequestFieldId, unknown>>;
261
264
  label: z.ZodString;
262
265
  description: z.ZodOptional<z.ZodString>;
263
266
  required: z.ZodBoolean;
264
- kind: z.ZodLiteral<"text">;
265
- multiline: z.ZodOptional<z.ZodBoolean>;
267
+ sensitivity: z.ZodEnum<{
268
+ ordinary: "ordinary";
269
+ sensitive: "sensitive";
270
+ }>;
266
271
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
272
+ kind: z.ZodLiteral<"single_select">;
273
+ options: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
274
+ value: z.ZodIntersection<z.ZodString, z.ZodString>;
275
+ label: z.ZodString;
276
+ description: z.ZodOptional<z.ZodString>;
277
+ }, z.core.$strict>>>>;
278
+ allowOther: z.ZodBoolean;
267
279
  fieldId: z.ZodType<import("../index.js").AgentRequestFieldId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentRequestFieldId, unknown>>;
268
280
  label: z.ZodString;
269
281
  description: z.ZodOptional<z.ZodString>;
270
282
  required: z.ZodBoolean;
271
- kind: z.ZodLiteral<"choice">;
283
+ sensitivity: z.ZodEnum<{
284
+ ordinary: "ordinary";
285
+ sensitive: "sensitive";
286
+ }>;
287
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
288
+ kind: z.ZodLiteral<"multi_select">;
272
289
  options: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
273
290
  value: z.ZodIntersection<z.ZodString, z.ZodString>;
274
291
  label: z.ZodString;
275
292
  description: z.ZodOptional<z.ZodString>;
276
293
  }, z.core.$strict>>>>;
277
- multiple: z.ZodBoolean;
278
294
  allowOther: z.ZodBoolean;
279
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
295
+ maxSelections: z.ZodNumber;
280
296
  fieldId: z.ZodType<import("../index.js").AgentRequestFieldId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentRequestFieldId, unknown>>;
281
297
  label: z.ZodString;
282
298
  description: z.ZodOptional<z.ZodString>;
283
299
  required: z.ZodBoolean;
300
+ sensitivity: z.ZodEnum<{
301
+ ordinary: "ordinary";
302
+ sensitive: "sensitive";
303
+ }>;
304
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
284
305
  kind: z.ZodLiteral<"boolean">;
306
+ fieldId: z.ZodType<import("../index.js").AgentRequestFieldId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentRequestFieldId, unknown>>;
307
+ label: z.ZodString;
308
+ description: z.ZodOptional<z.ZodString>;
309
+ required: z.ZodBoolean;
310
+ sensitivity: z.ZodEnum<{
311
+ ordinary: "ordinary";
312
+ sensitive: "sensitive";
313
+ }>;
314
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
315
+ kind: z.ZodLiteral<"confirmation">;
316
+ confirmLabel: z.ZodString;
317
+ fieldId: z.ZodType<import("../index.js").AgentRequestFieldId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentRequestFieldId, unknown>>;
318
+ label: z.ZodString;
319
+ description: z.ZodOptional<z.ZodString>;
320
+ required: z.ZodBoolean;
321
+ sensitivity: z.ZodEnum<{
322
+ ordinary: "ordinary";
323
+ sensitive: "sensitive";
324
+ }>;
285
325
  }, z.core.$strict>>], "kind">>>;
286
326
  expiresAt: z.ZodOptional<z.ZodType<import("../index.js").AgentIsoDateTime, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentIsoDateTime, unknown>>>;
287
327
  }, z.core.$strict>>], "requestKind">;
288
328
  }, z.core.$strict>>;
289
- protocolVersion: z.ZodLiteral<7>;
329
+ protocolVersion: z.ZodLiteral<8>;
290
330
  sessionId: z.ZodType<import("../index.js").AgentSessionId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentSessionId, unknown>>;
291
331
  providerRefs: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
292
332
  conversationId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderConversationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderConversationId, unknown>>>;
@@ -317,7 +357,7 @@ export declare const AgentEventPortableSchema: z.ZodDiscriminatedUnion<[z.ZodRea
317
357
  current: z.ZodOptional<z.ZodNumber>;
318
358
  total: z.ZodOptional<z.ZodNumber>;
319
359
  }, z.core.$strict>>;
320
- protocolVersion: z.ZodLiteral<7>;
360
+ protocolVersion: z.ZodLiteral<8>;
321
361
  sessionId: z.ZodType<import("../index.js").AgentSessionId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentSessionId, unknown>>;
322
362
  providerRefs: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
323
363
  conversationId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderConversationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderConversationId, unknown>>>;
@@ -355,7 +395,7 @@ export declare const AgentEventPortableSchema: z.ZodDiscriminatedUnion<[z.ZodRea
355
395
  thresholdTokens: z.ZodOptional<z.ZodNumber>;
356
396
  }, z.core.$strict>>>;
357
397
  }, z.core.$strict>>;
358
- protocolVersion: z.ZodLiteral<7>;
398
+ protocolVersion: z.ZodLiteral<8>;
359
399
  sessionId: z.ZodType<import("../index.js").AgentSessionId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentSessionId, unknown>>;
360
400
  providerRefs: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
361
401
  conversationId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderConversationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderConversationId, unknown>>>;
@@ -371,7 +411,159 @@ export declare const AgentEventPortableSchema: z.ZodDiscriminatedUnion<[z.ZodRea
371
411
  payload: z.ZodReadonly<z.ZodObject<{
372
412
  artifact: z.ZodType<import("../index.js").AgentArtifactDescriptor, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentArtifactDescriptor, unknown>>;
373
413
  }, z.core.$strict>>;
374
- protocolVersion: z.ZodLiteral<7>;
414
+ protocolVersion: z.ZodLiteral<8>;
415
+ sessionId: z.ZodType<import("../index.js").AgentSessionId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentSessionId, unknown>>;
416
+ providerRefs: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
417
+ conversationId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderConversationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderConversationId, unknown>>>;
418
+ historyAnchor: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderHistoryAnchor, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderHistoryAnchor, unknown>>>;
419
+ turnId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderTurnRef, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderTurnRef, unknown>>>;
420
+ itemId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderItemRef, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderItemRef, unknown>>>;
421
+ requestId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderRequestRef, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderRequestRef, unknown>>>;
422
+ }, z.core.$strict>>>;
423
+ occurredAt: z.ZodType<import("../index.js").AgentIsoDateTime, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentIsoDateTime, unknown>>;
424
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
425
+ type: z.ZodLiteral<"operation.updated">;
426
+ turnId: z.ZodOptional<z.ZodType<import("../index.js").AgentTurnId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentTurnId, unknown>>>;
427
+ payload: z.ZodReadonly<z.ZodObject<{
428
+ result: z.ZodReadonly<z.ZodObject<{
429
+ invocationId: z.ZodType<import("../index.js").AgentOperationInvocationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentOperationInvocationId, unknown>>;
430
+ status: z.ZodEnum<{
431
+ completed: "completed";
432
+ failed: "failed";
433
+ canceled: "canceled";
434
+ waiting_for_request: "waiting_for_request";
435
+ accepted: "accepted";
436
+ }>;
437
+ artifactIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodType<import("../index.js").AgentArtifactId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentArtifactId, unknown>>>>>;
438
+ resourceIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodType<import("../index.js").AgentGeneratedResourceId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentGeneratedResourceId, unknown>>>>>;
439
+ outputText: z.ZodOptional<z.ZodString>;
440
+ error: z.ZodOptional<z.ZodType<import("../index.js").AgentError, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentError, unknown>>>;
441
+ }, z.core.$strict>>;
442
+ }, z.core.$strict>>;
443
+ protocolVersion: z.ZodLiteral<8>;
444
+ sessionId: z.ZodType<import("../index.js").AgentSessionId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentSessionId, unknown>>;
445
+ providerRefs: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
446
+ conversationId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderConversationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderConversationId, unknown>>>;
447
+ historyAnchor: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderHistoryAnchor, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderHistoryAnchor, unknown>>>;
448
+ turnId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderTurnRef, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderTurnRef, unknown>>>;
449
+ itemId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderItemRef, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderItemRef, unknown>>>;
450
+ requestId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderRequestRef, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderRequestRef, unknown>>>;
451
+ }, z.core.$strict>>>;
452
+ occurredAt: z.ZodType<import("../index.js").AgentIsoDateTime, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentIsoDateTime, unknown>>;
453
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
454
+ type: z.ZodLiteral<"collaboration.updated">;
455
+ turnId: z.ZodOptional<z.ZodType<import("../index.js").AgentTurnId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentTurnId, unknown>>>;
456
+ payload: z.ZodReadonly<z.ZodObject<{
457
+ node: z.ZodReadonly<z.ZodObject<{
458
+ collaborationId: z.ZodType<import("../index.js").AgentCollaborationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentCollaborationId, unknown>>;
459
+ rootCollaborationId: z.ZodType<import("../index.js").AgentCollaborationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentCollaborationId, unknown>>;
460
+ parentCollaborationId: z.ZodOptional<z.ZodType<import("../index.js").AgentCollaborationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentCollaborationId, unknown>>>;
461
+ role: z.ZodEnum<{
462
+ delegate: "delegate";
463
+ reviewer: "reviewer";
464
+ researcher: "researcher";
465
+ specialist: "specialist";
466
+ }>;
467
+ title: z.ZodString;
468
+ status: z.ZodEnum<{
469
+ completed: "completed";
470
+ failed: "failed";
471
+ canceled: "canceled";
472
+ running: "running";
473
+ starting: "starting";
474
+ queued: "queued";
475
+ waiting: "waiting";
476
+ }>;
477
+ objective: z.ZodString;
478
+ progress: z.ZodOptional<z.ZodString>;
479
+ usage: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
480
+ kind: z.ZodLiteral<"unavailable">;
481
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
482
+ kind: z.ZodLiteral<"reported">;
483
+ inputTokens: z.ZodOptional<z.ZodNumber>;
484
+ outputTokens: z.ZodOptional<z.ZodNumber>;
485
+ reasoningTokens: z.ZodOptional<z.ZodNumber>;
486
+ totalTokens: z.ZodOptional<z.ZodNumber>;
487
+ modelCalls: z.ZodOptional<z.ZodNumber>;
488
+ }, z.core.$strict>>], "kind">;
489
+ outcome: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
490
+ kind: z.ZodLiteral<"completed">;
491
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
492
+ kind: z.ZodLiteral<"failed">;
493
+ error: z.ZodType<import("../index.js").AgentError, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentError, unknown>>;
494
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
495
+ kind: z.ZodLiteral<"canceled">;
496
+ reason: z.ZodEnum<{
497
+ user_requested: "user_requested";
498
+ timeout: "timeout";
499
+ shutdown: "shutdown";
500
+ superseded: "superseded";
501
+ other: "other";
502
+ }>;
503
+ }, z.core.$strict>>], "kind">>;
504
+ createdAt: z.ZodType<import("../index.js").AgentIsoDateTime, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentIsoDateTime, unknown>>;
505
+ updatedAt: z.ZodType<import("../index.js").AgentIsoDateTime, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentIsoDateTime, unknown>>;
506
+ terminalAt: z.ZodOptional<z.ZodType<import("../index.js").AgentIsoDateTime, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentIsoDateTime, unknown>>>;
507
+ closedAt: z.ZodOptional<z.ZodType<import("../index.js").AgentIsoDateTime, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentIsoDateTime, unknown>>>;
508
+ artifactIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodType<import("../index.js").AgentArtifactId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentArtifactId, unknown>>>>>;
509
+ resourceIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodType<import("../index.js").AgentGeneratedResourceId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentGeneratedResourceId, unknown>>>>>;
510
+ }, z.core.$strict>>;
511
+ }, z.core.$strict>>;
512
+ protocolVersion: z.ZodLiteral<8>;
513
+ sessionId: z.ZodType<import("../index.js").AgentSessionId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentSessionId, unknown>>;
514
+ providerRefs: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
515
+ conversationId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderConversationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderConversationId, unknown>>>;
516
+ historyAnchor: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderHistoryAnchor, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderHistoryAnchor, unknown>>>;
517
+ turnId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderTurnRef, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderTurnRef, unknown>>>;
518
+ itemId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderItemRef, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderItemRef, unknown>>>;
519
+ requestId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderRequestRef, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderRequestRef, unknown>>>;
520
+ }, z.core.$strict>>>;
521
+ occurredAt: z.ZodType<import("../index.js").AgentIsoDateTime, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentIsoDateTime, unknown>>;
522
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
523
+ type: z.ZodLiteral<"resource.updated">;
524
+ turnId: z.ZodOptional<z.ZodType<import("../index.js").AgentTurnId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentTurnId, unknown>>>;
525
+ payload: z.ZodReadonly<z.ZodObject<{
526
+ resource: z.ZodReadonly<z.ZodObject<{
527
+ resourceId: z.ZodType<import("../index.js").AgentGeneratedResourceId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentGeneratedResourceId, unknown>>;
528
+ kind: z.ZodEnum<{
529
+ image: "image";
530
+ document: "document";
531
+ archive: "archive";
532
+ }>;
533
+ status: z.ZodEnum<{
534
+ pending: "pending";
535
+ expired: "expired";
536
+ available: "available";
537
+ unavailable: "unavailable";
538
+ }>;
539
+ displayName: z.ZodString;
540
+ producer: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
541
+ kind: z.ZodLiteral<"session">;
542
+ sessionId: z.ZodType<import("../index.js").AgentSessionId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentSessionId, unknown>>;
543
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
544
+ kind: z.ZodLiteral<"turn">;
545
+ turnId: z.ZodType<import("../index.js").AgentTurnId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentTurnId, unknown>>;
546
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
547
+ kind: z.ZodLiteral<"operation">;
548
+ invocationId: z.ZodType<import("../index.js").AgentOperationInvocationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentOperationInvocationId, unknown>>;
549
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
550
+ kind: z.ZodLiteral<"collaboration">;
551
+ collaborationId: z.ZodType<import("../index.js").AgentCollaborationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentCollaborationId, unknown>>;
552
+ }, z.core.$strict>>], "kind">;
553
+ summary: z.ZodOptional<z.ZodString>;
554
+ mediaType: z.ZodOptional<z.ZodString>;
555
+ byteSize: z.ZodOptional<z.ZodNumber>;
556
+ sha256: z.ZodOptional<z.ZodString>;
557
+ widthPixels: z.ZodOptional<z.ZodNumber>;
558
+ heightPixels: z.ZodOptional<z.ZodNumber>;
559
+ pageCount: z.ZodOptional<z.ZodNumber>;
560
+ artifactId: z.ZodOptional<z.ZodType<import("../index.js").AgentArtifactId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentArtifactId, unknown>>>;
561
+ createdAt: z.ZodType<import("../index.js").AgentIsoDateTime, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentIsoDateTime, unknown>>;
562
+ expiresAt: z.ZodOptional<z.ZodType<import("../index.js").AgentIsoDateTime, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentIsoDateTime, unknown>>>;
563
+ error: z.ZodOptional<z.ZodType<import("../index.js").AgentError, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentError, unknown>>>;
564
+ }, z.core.$strict>>;
565
+ }, z.core.$strict>>;
566
+ protocolVersion: z.ZodLiteral<8>;
375
567
  sessionId: z.ZodType<import("../index.js").AgentSessionId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentSessionId, unknown>>;
376
568
  providerRefs: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
377
569
  conversationId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderConversationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderConversationId, unknown>>>;
@@ -394,7 +586,7 @@ export declare const AgentEventPortableSchema: z.ZodDiscriminatedUnion<[z.ZodRea
394
586
  status: z.ZodOptional<z.ZodString>;
395
587
  }, z.core.$strict>>>;
396
588
  }, z.core.$strict>>;
397
- protocolVersion: z.ZodLiteral<7>;
589
+ protocolVersion: z.ZodLiteral<8>;
398
590
  sessionId: z.ZodType<import("../index.js").AgentSessionId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentSessionId, unknown>>;
399
591
  providerRefs: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
400
592
  conversationId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderConversationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderConversationId, unknown>>>;
@@ -410,7 +602,7 @@ export declare const AgentEventPortableSchema: z.ZodDiscriminatedUnion<[z.ZodRea
410
602
  payload: z.ZodReadonly<z.ZodObject<{
411
603
  error: z.ZodType<import("../index.js").AgentError, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentError, unknown>>;
412
604
  }, z.core.$strict>>;
413
- protocolVersion: z.ZodLiteral<7>;
605
+ protocolVersion: z.ZodLiteral<8>;
414
606
  sessionId: z.ZodType<import("../index.js").AgentSessionId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentSessionId, unknown>>;
415
607
  providerRefs: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
416
608
  conversationId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderConversationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderConversationId, unknown>>>;
@@ -432,7 +624,7 @@ export declare const AgentEventPortableSchema: z.ZodDiscriminatedUnion<[z.ZodRea
432
624
  status: z.ZodOptional<z.ZodString>;
433
625
  }, z.core.$strict>>>;
434
626
  }, z.core.$strict>>;
435
- protocolVersion: z.ZodLiteral<7>;
627
+ protocolVersion: z.ZodLiteral<8>;
436
628
  sessionId: z.ZodType<import("../index.js").AgentSessionId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentSessionId, unknown>>;
437
629
  providerRefs: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
438
630
  conversationId: z.ZodOptional<z.ZodType<import("../index.js").AgentProviderConversationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderConversationId, unknown>>>;
@@ -1,5 +1,6 @@
1
1
  import { z } from "zod/v4";
2
2
  import { AgentArtifactDescriptorSchema } from "./artifacts.js";
3
+ import { AgentCollaborationNodePortableSchema } from "./collaboration.js";
3
4
  import {
4
5
  AGENT_PROTOCOL_COLLECTION_MAX_LENGTH,
5
6
  AGENT_PROTOCOL_EVENT_BYTES_LIMIT,
@@ -9,6 +10,8 @@ import {
9
10
  agentProtocolSerializedJsonBytes
10
11
  } from "../foundation/types.js";
11
12
  import { AgentRequestPortableSchema, AgentRequestSchema } from "./requests.js";
13
+ import { AgentOperationResultPortableSchema } from "./operations.js";
14
+ import { AgentGeneratedResourceDescriptorPortableSchema } from "./resources.js";
12
15
  import {
13
16
  AGENT_CONTEXT_COMPACTION_STATES,
14
17
  AGENT_CONTEXT_MEASUREMENT_SCOPES
@@ -154,6 +157,18 @@ const AgentEventPortableSchema = z.discriminatedUnion("type", [
154
157
  "artifact.referenced",
155
158
  z.object({ artifact: AgentArtifactDescriptorSchema }).strict().readonly()
156
159
  ),
160
+ optionallyTurnScopedEvent(
161
+ "operation.updated",
162
+ z.object({ result: AgentOperationResultPortableSchema }).strict().readonly()
163
+ ),
164
+ optionallyTurnScopedEvent(
165
+ "collaboration.updated",
166
+ z.object({ node: AgentCollaborationNodePortableSchema }).strict().readonly()
167
+ ),
168
+ optionallyTurnScopedEvent(
169
+ "resource.updated",
170
+ z.object({ resource: AgentGeneratedResourceDescriptorPortableSchema }).strict().readonly()
171
+ ),
157
172
  optionallyTurnScopedEvent(
158
173
  "runtime.warning",
159
174
  z.object({
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod/v4';
2
- import { type AgentArtifactId, type AgentApprovalOptionId, type AgentConfigurationRevisionId, type AgentError, type AgentInstanceId, type AgentIsoDateTime, type AgentItemId, type AgentJsonValue, type AgentProviderConversationId, type AgentProviderHistoryAnchor, type AgentProviderItemRef, type AgentProviderKey, type AgentProviderRefs, type AgentProviderRequestRef, type AgentProviderTurnRef, type AgentRequestFieldId, type AgentRequestId, type AgentSessionId, type AgentTurnId } from '../foundation/types.js';
2
+ import { type AgentArtifactId, type AgentApprovalOptionId, type AgentCollaborationId, type AgentConfigurationRevisionId, type AgentError, type AgentInstanceId, type AgentIntegrationId, type AgentIntegrationResourceId, type AgentIntegrationServerId, type AgentIntegrationToolId, type AgentIsoDateTime, type AgentItemId, type AgentJsonValue, type AgentManagedContentId, type AgentOperationId, type AgentOperationInvocationId, type AgentProviderConversationId, type AgentProviderHistoryAnchor, type AgentProviderItemRef, type AgentProviderKey, type AgentProviderRefs, type AgentProviderRequestRef, type AgentProviderTurnRef, type AgentRequestFieldId, type AgentRequestId, type AgentSessionId, type AgentGeneratedResourceId, type AgentTurnId } from '../foundation/types.js';
3
3
  export declare const AgentCanonicalIdValueSchema: z.ZodString;
4
4
  export declare function createAgentCanonicalNonBlankStringSchema(maxLength: number): z.ZodString;
5
5
  export declare const AgentCanonicalNonBlankTextSchema: z.ZodString;
@@ -12,6 +12,15 @@ export declare const AgentRequestIdSchema: z.ZodType<AgentRequestId, unknown, z.
12
12
  export declare const AgentApprovalOptionIdSchema: z.ZodType<AgentApprovalOptionId, unknown, z.core.$ZodTypeInternals<AgentApprovalOptionId, unknown>>;
13
13
  export declare const AgentRequestFieldIdSchema: z.ZodType<AgentRequestFieldId, unknown, z.core.$ZodTypeInternals<AgentRequestFieldId, unknown>>;
14
14
  export declare const AgentArtifactIdSchema: z.ZodType<AgentArtifactId, unknown, z.core.$ZodTypeInternals<AgentArtifactId, unknown>>;
15
+ export declare const AgentOperationIdSchema: z.ZodType<AgentOperationId, unknown, z.core.$ZodTypeInternals<AgentOperationId, unknown>>;
16
+ export declare const AgentOperationInvocationIdSchema: z.ZodType<AgentOperationInvocationId, unknown, z.core.$ZodTypeInternals<AgentOperationInvocationId, unknown>>;
17
+ export declare const AgentManagedContentIdSchema: z.ZodType<AgentManagedContentId, unknown, z.core.$ZodTypeInternals<AgentManagedContentId, unknown>>;
18
+ export declare const AgentIntegrationIdSchema: z.ZodType<AgentIntegrationId, unknown, z.core.$ZodTypeInternals<AgentIntegrationId, unknown>>;
19
+ export declare const AgentIntegrationServerIdSchema: z.ZodType<AgentIntegrationServerId, unknown, z.core.$ZodTypeInternals<AgentIntegrationServerId, unknown>>;
20
+ export declare const AgentIntegrationToolIdSchema: z.ZodType<AgentIntegrationToolId, unknown, z.core.$ZodTypeInternals<AgentIntegrationToolId, unknown>>;
21
+ export declare const AgentIntegrationResourceIdSchema: z.ZodType<AgentIntegrationResourceId, unknown, z.core.$ZodTypeInternals<AgentIntegrationResourceId, unknown>>;
22
+ export declare const AgentCollaborationIdSchema: z.ZodType<AgentCollaborationId, unknown, z.core.$ZodTypeInternals<AgentCollaborationId, unknown>>;
23
+ export declare const AgentGeneratedResourceIdSchema: z.ZodType<AgentGeneratedResourceId, unknown, z.core.$ZodTypeInternals<AgentGeneratedResourceId, unknown>>;
15
24
  export declare const AgentConfigurationRevisionIdSchema: z.ZodType<AgentConfigurationRevisionId, unknown, z.core.$ZodTypeInternals<AgentConfigurationRevisionId, unknown>>;
16
25
  export declare const AgentProviderConversationIdSchema: z.ZodType<AgentProviderConversationId, unknown, z.core.$ZodTypeInternals<AgentProviderConversationId, unknown>>;
17
26
  export declare const AgentProviderHistoryAnchorSchema: z.ZodType<AgentProviderHistoryAnchor, unknown, z.core.$ZodTypeInternals<AgentProviderHistoryAnchor, unknown>>;
@@ -43,6 +43,15 @@ const AgentRequestIdSchema = opaqueStringSchema(AgentCanonicalIdValueSchema);
43
43
  const AgentApprovalOptionIdSchema = opaqueStringSchema(AgentCanonicalIdValueSchema);
44
44
  const AgentRequestFieldIdSchema = opaqueStringSchema(AgentCanonicalIdValueSchema);
45
45
  const AgentArtifactIdSchema = opaqueStringSchema(AgentCanonicalIdValueSchema);
46
+ const AgentOperationIdSchema = opaqueStringSchema(AgentCanonicalIdValueSchema);
47
+ const AgentOperationInvocationIdSchema = opaqueStringSchema(AgentCanonicalIdValueSchema);
48
+ const AgentManagedContentIdSchema = opaqueStringSchema(AgentCanonicalIdValueSchema);
49
+ const AgentIntegrationIdSchema = opaqueStringSchema(AgentCanonicalIdValueSchema);
50
+ const AgentIntegrationServerIdSchema = opaqueStringSchema(AgentCanonicalIdValueSchema);
51
+ const AgentIntegrationToolIdSchema = opaqueStringSchema(AgentCanonicalIdValueSchema);
52
+ const AgentIntegrationResourceIdSchema = opaqueStringSchema(AgentCanonicalIdValueSchema);
53
+ const AgentCollaborationIdSchema = opaqueStringSchema(AgentCanonicalIdValueSchema);
54
+ const AgentGeneratedResourceIdSchema = opaqueStringSchema(AgentCanonicalIdValueSchema);
46
55
  const AgentConfigurationRevisionIdSchema = opaqueStringSchema(AgentCanonicalIdValueSchema);
47
56
  const AgentProviderConversationIdSchema = opaqueStringSchema(ProviderReferenceSchema);
48
57
  const AgentProviderHistoryAnchorSchema = opaqueStringSchema(ProviderReferenceSchema);
@@ -181,15 +190,24 @@ export {
181
190
  AgentCanonicalCodeSchema,
182
191
  AgentCanonicalIdValueSchema,
183
192
  AgentCanonicalNonBlankTextSchema,
193
+ AgentCollaborationIdSchema,
184
194
  AgentConfigurationRevisionIdSchema,
185
195
  AgentErrorContextSchema,
186
196
  AgentErrorSchema,
197
+ AgentGeneratedResourceIdSchema,
187
198
  AgentInstanceIdSchema,
199
+ AgentIntegrationIdSchema,
200
+ AgentIntegrationResourceIdSchema,
201
+ AgentIntegrationServerIdSchema,
202
+ AgentIntegrationToolIdSchema,
188
203
  AgentIsoDateTimeSchema,
189
204
  AgentItemIdSchema,
190
205
  AgentJsonObjectKeySchema,
191
206
  AgentJsonValuePortableSchema,
192
207
  AgentJsonValueSchema,
208
+ AgentManagedContentIdSchema,
209
+ AgentOperationIdSchema,
210
+ AgentOperationInvocationIdSchema,
193
211
  AgentProviderConversationIdSchema,
194
212
  AgentProviderHistoryAnchorSchema,
195
213
  AgentProviderItemRefSchema,
@@ -1,7 +1,13 @@
1
- export { AgentApprovalOptionIdSchema, AgentArtifactIdSchema, AgentConfigurationRevisionIdSchema, AgentErrorContextSchema, AgentErrorSchema, AgentInstanceIdSchema, AgentIsoDateTimeSchema, AgentItemIdSchema, AgentJsonValueSchema, AgentProviderConversationIdSchema, AgentProviderHistoryAnchorSchema, AgentProviderItemRefSchema, AgentProviderKeySchema, AgentProviderRefsSchema, AgentProviderRequestRefSchema, AgentProviderTurnRefSchema, AgentRequestFieldIdSchema, AgentRequestIdSchema, AgentSessionIdSchema, AgentTurnIdSchema, } from './foundation.js';
1
+ export { AgentApprovalOptionIdSchema, AgentArtifactIdSchema, AgentCollaborationIdSchema, AgentConfigurationRevisionIdSchema, AgentErrorContextSchema, AgentErrorSchema, AgentInstanceIdSchema, AgentIntegrationIdSchema, AgentIntegrationResourceIdSchema, AgentIntegrationServerIdSchema, AgentIntegrationToolIdSchema, AgentIsoDateTimeSchema, AgentItemIdSchema, AgentJsonValueSchema, AgentManagedContentIdSchema, AgentOperationIdSchema, AgentOperationInvocationIdSchema, AgentProviderConversationIdSchema, AgentProviderHistoryAnchorSchema, AgentProviderItemRefSchema, AgentProviderKeySchema, AgentProviderRefsSchema, AgentProviderRequestRefSchema, AgentProviderTurnRefSchema, AgentRequestFieldIdSchema, AgentRequestIdSchema, AgentSessionIdSchema, AgentGeneratedResourceIdSchema, AgentTurnIdSchema, } from './foundation.js';
2
2
  export { AgentSessionBindingSchema, AgentSessionBranchSourceSchema, AgentSessionBranchInputSchema, AgentSessionConfigurationSchema, AgentSessionCreateInputSchema, AgentSessionOpenInputSchema, AgentSessionResumeInputSchema, } from './sessions.js';
3
3
  export { AgentBrowserActionDetailsSchema, AgentCollaborationToolCallDetailsSchema, AgentCommandExecutionDetailsSchema, AgentComputerActionDetailsSchema, AgentContentStreamKindSchema, AgentContextCompactionDetailsSchema, AgentDiffSummarySchema, AgentDynamicToolCallDetailsSchema, AgentFileChangeDetailsSchema, AgentFileChangeSchema, AgentImageViewDetailsSchema, AgentItemSnapshotSchema, AgentMcpToolCallDetailsSchema, AgentPlanStepSchema, AgentReviewDetailsSchema, AgentTurnCompletedPayloadSchema, AgentTurnInputContentCompositionSchema, AgentTurnInputContentSchema, AgentTurnInteractionModeSchema, AgentTurnInputPartSchema, AgentTurnInterruptionInputSchema, AgentTurnRunInputSchema, AgentWebSearchDetailsSchema, } from './turns.js';
4
4
  export { AgentApprovalRequestSchema, AgentApprovalResolutionSchema, AgentElicitationRequestSchema, AgentRequestResolutionSchema, AgentRequestSchema, } from './requests.js';
5
+ export { AgentOperationCatalogSchema, AgentOperationDescriptorSchema, AgentOperationFieldSchema, AgentOperationInvocationSchema, AgentOperationResultSchema, } from './operations.js';
6
+ export { AgentManagedContentCatalogSchema, AgentManagedContentDescriptorSchema, } from './managedContent.js';
7
+ export { AgentConfigurationCatalogSchema, AgentConfigurationFieldPortableSchema, AgentConfigurationSelectionInputSchema, AgentConfigurationValueSchema, } from './configuration.js';
8
+ export { AgentIntegrationCatalogSchema, AgentIntegrationDescriptorSchema, } from './integrations.js';
9
+ export { AgentCollaborationControlInputSchema, AgentCollaborationNodeSchema, AgentCollaborationSpawnInputSchema, } from './collaboration.js';
10
+ export { AgentGeneratedResourceDescriptorSchema } from './resources.js';
5
11
  export { AgentApprovalCapabilitySchema, AgentCapabilitiesSchema, } from './capabilities.js';
6
12
  export { AgentArtifactDescriptorSchema } from './artifacts.js';
7
13
  export { AgentContextUsageSchema, AgentEventSchema } from './events.js';
package/dist/zod/index.js CHANGED
@@ -1,13 +1,21 @@
1
1
  import {
2
2
  AgentApprovalOptionIdSchema,
3
3
  AgentArtifactIdSchema,
4
+ AgentCollaborationIdSchema,
4
5
  AgentConfigurationRevisionIdSchema,
5
6
  AgentErrorContextSchema,
6
7
  AgentErrorSchema,
7
8
  AgentInstanceIdSchema,
9
+ AgentIntegrationIdSchema,
10
+ AgentIntegrationResourceIdSchema,
11
+ AgentIntegrationServerIdSchema,
12
+ AgentIntegrationToolIdSchema,
8
13
  AgentIsoDateTimeSchema,
9
14
  AgentItemIdSchema,
10
15
  AgentJsonValueSchema,
16
+ AgentManagedContentIdSchema,
17
+ AgentOperationIdSchema,
18
+ AgentOperationInvocationIdSchema,
11
19
  AgentProviderConversationIdSchema,
12
20
  AgentProviderHistoryAnchorSchema,
13
21
  AgentProviderItemRefSchema,
@@ -18,6 +26,7 @@ import {
18
26
  AgentRequestFieldIdSchema,
19
27
  AgentRequestIdSchema,
20
28
  AgentSessionIdSchema,
29
+ AgentGeneratedResourceIdSchema,
21
30
  AgentTurnIdSchema
22
31
  } from "./foundation.js";
23
32
  import {
@@ -61,6 +70,33 @@ import {
61
70
  AgentRequestResolutionSchema,
62
71
  AgentRequestSchema
63
72
  } from "./requests.js";
73
+ import {
74
+ AgentOperationCatalogSchema,
75
+ AgentOperationDescriptorSchema,
76
+ AgentOperationFieldSchema,
77
+ AgentOperationInvocationSchema,
78
+ AgentOperationResultSchema
79
+ } from "./operations.js";
80
+ import {
81
+ AgentManagedContentCatalogSchema,
82
+ AgentManagedContentDescriptorSchema
83
+ } from "./managedContent.js";
84
+ import {
85
+ AgentConfigurationCatalogSchema,
86
+ AgentConfigurationFieldPortableSchema,
87
+ AgentConfigurationSelectionInputSchema,
88
+ AgentConfigurationValueSchema
89
+ } from "./configuration.js";
90
+ import {
91
+ AgentIntegrationCatalogSchema,
92
+ AgentIntegrationDescriptorSchema
93
+ } from "./integrations.js";
94
+ import {
95
+ AgentCollaborationControlInputSchema,
96
+ AgentCollaborationNodeSchema,
97
+ AgentCollaborationSpawnInputSchema
98
+ } from "./collaboration.js";
99
+ import { AgentGeneratedResourceDescriptorSchema } from "./resources.js";
64
100
  import {
65
101
  AgentApprovalCapabilitySchema,
66
102
  AgentCapabilitiesSchema
@@ -76,10 +112,18 @@ export {
76
112
  AgentArtifactIdSchema,
77
113
  AgentBrowserActionDetailsSchema,
78
114
  AgentCapabilitiesSchema,
115
+ AgentCollaborationControlInputSchema,
116
+ AgentCollaborationIdSchema,
117
+ AgentCollaborationNodeSchema,
118
+ AgentCollaborationSpawnInputSchema,
79
119
  AgentCollaborationToolCallDetailsSchema,
80
120
  AgentCommandExecutionDetailsSchema,
81
121
  AgentComputerActionDetailsSchema,
122
+ AgentConfigurationCatalogSchema,
123
+ AgentConfigurationFieldPortableSchema,
82
124
  AgentConfigurationRevisionIdSchema,
125
+ AgentConfigurationSelectionInputSchema,
126
+ AgentConfigurationValueSchema,
83
127
  AgentContentStreamKindSchema,
84
128
  AgentContextCompactionDetailsSchema,
85
129
  AgentContextUsageSchema,
@@ -91,13 +135,31 @@ export {
91
135
  AgentEventSchema,
92
136
  AgentFileChangeDetailsSchema,
93
137
  AgentFileChangeSchema,
138
+ AgentGeneratedResourceDescriptorSchema,
139
+ AgentGeneratedResourceIdSchema,
94
140
  AgentImageViewDetailsSchema,
95
141
  AgentInstanceIdSchema,
142
+ AgentIntegrationCatalogSchema,
143
+ AgentIntegrationDescriptorSchema,
144
+ AgentIntegrationIdSchema,
145
+ AgentIntegrationResourceIdSchema,
146
+ AgentIntegrationServerIdSchema,
147
+ AgentIntegrationToolIdSchema,
96
148
  AgentIsoDateTimeSchema,
97
149
  AgentItemIdSchema,
98
150
  AgentItemSnapshotSchema,
99
151
  AgentJsonValueSchema,
152
+ AgentManagedContentCatalogSchema,
153
+ AgentManagedContentDescriptorSchema,
154
+ AgentManagedContentIdSchema,
100
155
  AgentMcpToolCallDetailsSchema,
156
+ AgentOperationCatalogSchema,
157
+ AgentOperationDescriptorSchema,
158
+ AgentOperationFieldSchema,
159
+ AgentOperationIdSchema,
160
+ AgentOperationInvocationIdSchema,
161
+ AgentOperationInvocationSchema,
162
+ AgentOperationResultSchema,
101
163
  AgentPlanStepSchema,
102
164
  AgentProviderConversationIdSchema,
103
165
  AgentProviderHistoryAnchorSchema,