@agen-ai/agent-protocol 0.2.5 → 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.
Files changed (79) hide show
  1. package/README.md +44 -13
  2. package/dist/capabilities/contentReferenceText.d.ts +13 -0
  3. package/dist/capabilities/contentReferenceText.js +25 -0
  4. package/dist/capabilities/index.d.ts +1 -0
  5. package/dist/capabilities/index.js +1 -0
  6. package/dist/capabilities/types.d.ts +19 -1
  7. package/dist/capabilities/types.js +6 -0
  8. package/dist/commands/index.d.ts +3 -0
  9. package/dist/commands/index.js +2 -0
  10. package/dist/commands/parsers.d.ts +7 -0
  11. package/dist/commands/parsers.js +23 -0
  12. package/dist/commands/types.d.ts +26 -0
  13. package/dist/commands/types.js +10 -0
  14. package/dist/effectiveContent/index.d.ts +3 -0
  15. package/dist/effectiveContent/index.js +2 -0
  16. package/dist/effectiveContent/parsers.d.ts +7 -0
  17. package/dist/effectiveContent/parsers.js +23 -0
  18. package/dist/effectiveContent/types.d.ts +35 -0
  19. package/dist/effectiveContent/types.js +19 -0
  20. package/dist/environment/facts.d.ts +28 -0
  21. package/dist/environment/facts.js +39 -0
  22. package/dist/environment/index.d.ts +4 -0
  23. package/dist/environment/index.js +3 -0
  24. package/dist/environment/parsers.d.ts +17 -0
  25. package/dist/environment/parsers.js +68 -0
  26. package/dist/environment/types.d.ts +61 -0
  27. package/dist/environment/types.js +26 -0
  28. package/dist/events/types.d.ts +1 -1
  29. package/dist/extensions/index.d.ts +3 -0
  30. package/dist/extensions/index.js +2 -0
  31. package/dist/extensions/parsers.d.ts +7 -0
  32. package/dist/extensions/parsers.js +23 -0
  33. package/dist/extensions/types.d.ts +73 -0
  34. package/dist/extensions/types.js +30 -0
  35. package/dist/foundation/parsers.d.ts +9 -1
  36. package/dist/foundation/parsers.js +24 -0
  37. package/dist/foundation/types.d.ts +5 -1
  38. package/dist/foundation/types.js +1 -1
  39. package/dist/integrations/types.d.ts +22 -4
  40. package/dist/integrations/types.js +6 -2
  41. package/dist/jsonSchema/generated.d.ts +9390 -5844
  42. package/dist/jsonSchema/generated.js +2526 -157
  43. package/dist/public/commands.d.ts +2 -0
  44. package/dist/public/commands.js +1 -0
  45. package/dist/public/effectiveContent.d.ts +2 -0
  46. package/dist/public/effectiveContent.js +1 -0
  47. package/dist/public/environment.d.ts +2 -0
  48. package/dist/public/environment.js +1 -0
  49. package/dist/public/extensions.d.ts +2 -0
  50. package/dist/public/extensions.js +1 -0
  51. package/dist/public/index.d.ts +4 -0
  52. package/dist/public/index.js +4 -0
  53. package/dist/turns/parsers.d.ts +3 -1
  54. package/dist/turns/parsers.js +9 -0
  55. package/dist/turns/types.d.ts +13 -2
  56. package/dist/turns/types.js +4 -0
  57. package/dist/zod/capabilities.d.ts +79 -1
  58. package/dist/zod/capabilities.js +21 -5
  59. package/dist/zod/commands.d.ts +35 -0
  60. package/dist/zod/commands.js +114 -0
  61. package/dist/zod/effectiveContent.d.ts +72 -0
  62. package/dist/zod/effectiveContent.js +157 -0
  63. package/dist/zod/environment.d.ts +531 -0
  64. package/dist/zod/environment.js +336 -0
  65. package/dist/zod/environmentFacts.d.ts +10 -0
  66. package/dist/zod/environmentFacts.js +40 -0
  67. package/dist/zod/events.d.ts +21 -21
  68. package/dist/zod/extensions.d.ts +161 -0
  69. package/dist/zod/extensions.js +194 -0
  70. package/dist/zod/foundation.d.ts +5 -1
  71. package/dist/zod/foundation.js +8 -0
  72. package/dist/zod/index.d.ts +9 -4
  73. package/dist/zod/index.js +21 -2
  74. package/dist/zod/integrations.d.ts +50 -5
  75. package/dist/zod/integrations.js +49 -6
  76. package/dist/zod/turns.d.ts +33 -0
  77. package/dist/zod/turns.js +34 -1
  78. package/dist/zod/typeEquality.generated.d.ts +34 -4
  79. package/package.json +18 -2
@@ -0,0 +1,161 @@
1
+ import { z } from 'zod/v4';
2
+ import { type AgentExtensionCatalog, type AgentExtensionDescriptor } from '../extensions/types.js';
3
+ export declare const AgentExtensionComponentPortableSchema: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
4
+ kind: z.ZodEnum<{
5
+ prompt: "prompt";
6
+ skill: "skill";
7
+ rule: "rule";
8
+ agent_definition: "agent_definition";
9
+ }>;
10
+ name: z.ZodString;
11
+ target: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
12
+ domain: z.ZodLiteral<"content">;
13
+ id: z.ZodType<import("../index.js").AgentEffectiveContentId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentEffectiveContentId, unknown>>;
14
+ revision: z.ZodNumber;
15
+ catalogRevision: z.ZodNumber;
16
+ }, z.core.$strict>>>;
17
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
18
+ kind: z.ZodLiteral<"command">;
19
+ name: z.ZodString;
20
+ target: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
21
+ domain: z.ZodLiteral<"commands">;
22
+ id: z.ZodType<import("../index.js").AgentCommandId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentCommandId, unknown>>;
23
+ revision: z.ZodNumber;
24
+ catalogRevision: z.ZodNumber;
25
+ }, z.core.$strict>>>;
26
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
27
+ kind: z.ZodEnum<{
28
+ mcp_server: "mcp_server";
29
+ connector: "connector";
30
+ }>;
31
+ name: z.ZodString;
32
+ target: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
33
+ domain: z.ZodLiteral<"integrations">;
34
+ id: z.ZodType<import("../index.js").AgentIntegrationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentIntegrationId, unknown>>;
35
+ revision: z.ZodNumber;
36
+ catalogRevision: z.ZodNumber;
37
+ }, z.core.$strict>>>;
38
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
39
+ kind: z.ZodEnum<{
40
+ other: "other";
41
+ hook: "hook";
42
+ lsp_server: "lsp_server";
43
+ scheduled_task: "scheduled_task";
44
+ }>;
45
+ name: z.ZodString;
46
+ }, z.core.$strict>>], "kind">;
47
+ export declare const AgentExtensionDescriptorPortableSchema: z.ZodReadonly<z.ZodObject<{
48
+ extensionId: z.ZodType<import("../index.js").AgentExtensionId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentExtensionId, unknown>>;
49
+ revision: z.ZodNumber;
50
+ name: z.ZodString;
51
+ summary: z.ZodOptional<z.ZodString>;
52
+ version: z.ZodOptional<z.ZodString>;
53
+ installation: z.ZodType<import("../index.js").AgentAvailabilityFact, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentAvailabilityFact, unknown>>;
54
+ enablement: z.ZodType<import("../index.js").AgentAvailabilityFact, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentAvailabilityFact, unknown>>;
55
+ source: z.ZodType<import("../index.js").AgentEnvironmentSource, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentEnvironmentSource, unknown>>;
56
+ components: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
57
+ kind: z.ZodEnum<{
58
+ prompt: "prompt";
59
+ skill: "skill";
60
+ rule: "rule";
61
+ agent_definition: "agent_definition";
62
+ }>;
63
+ name: z.ZodString;
64
+ target: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
65
+ domain: z.ZodLiteral<"content">;
66
+ id: z.ZodType<import("../index.js").AgentEffectiveContentId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentEffectiveContentId, unknown>>;
67
+ revision: z.ZodNumber;
68
+ catalogRevision: z.ZodNumber;
69
+ }, z.core.$strict>>>;
70
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
71
+ kind: z.ZodLiteral<"command">;
72
+ name: z.ZodString;
73
+ target: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
74
+ domain: z.ZodLiteral<"commands">;
75
+ id: z.ZodType<import("../index.js").AgentCommandId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentCommandId, unknown>>;
76
+ revision: z.ZodNumber;
77
+ catalogRevision: z.ZodNumber;
78
+ }, z.core.$strict>>>;
79
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
80
+ kind: z.ZodEnum<{
81
+ mcp_server: "mcp_server";
82
+ connector: "connector";
83
+ }>;
84
+ name: z.ZodString;
85
+ target: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
86
+ domain: z.ZodLiteral<"integrations">;
87
+ id: z.ZodType<import("../index.js").AgentIntegrationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentIntegrationId, unknown>>;
88
+ revision: z.ZodNumber;
89
+ catalogRevision: z.ZodNumber;
90
+ }, z.core.$strict>>>;
91
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
92
+ kind: z.ZodEnum<{
93
+ other: "other";
94
+ hook: "hook";
95
+ lsp_server: "lsp_server";
96
+ scheduled_task: "scheduled_task";
97
+ }>;
98
+ name: z.ZodString;
99
+ }, z.core.$strict>>], "kind">>>;
100
+ }, z.core.$strict>>;
101
+ export declare const AgentExtensionDescriptorSchema: z.ZodType<AgentExtensionDescriptor>;
102
+ export declare const AgentExtensionCatalogPortableSchema: z.ZodReadonly<z.ZodObject<{
103
+ revision: z.ZodNumber;
104
+ observedAt: z.ZodType<import("../index.js").AgentIsoDateTime, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentIsoDateTime, unknown>>;
105
+ extensions: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
106
+ extensionId: z.ZodType<import("../index.js").AgentExtensionId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentExtensionId, unknown>>;
107
+ revision: z.ZodNumber;
108
+ name: z.ZodString;
109
+ summary: z.ZodOptional<z.ZodString>;
110
+ version: z.ZodOptional<z.ZodString>;
111
+ installation: z.ZodType<import("../index.js").AgentAvailabilityFact, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentAvailabilityFact, unknown>>;
112
+ enablement: z.ZodType<import("../index.js").AgentAvailabilityFact, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentAvailabilityFact, unknown>>;
113
+ source: z.ZodType<import("../index.js").AgentEnvironmentSource, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentEnvironmentSource, unknown>>;
114
+ components: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
115
+ kind: z.ZodEnum<{
116
+ prompt: "prompt";
117
+ skill: "skill";
118
+ rule: "rule";
119
+ agent_definition: "agent_definition";
120
+ }>;
121
+ name: z.ZodString;
122
+ target: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
123
+ domain: z.ZodLiteral<"content">;
124
+ id: z.ZodType<import("../index.js").AgentEffectiveContentId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentEffectiveContentId, unknown>>;
125
+ revision: z.ZodNumber;
126
+ catalogRevision: z.ZodNumber;
127
+ }, z.core.$strict>>>;
128
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
129
+ kind: z.ZodLiteral<"command">;
130
+ name: z.ZodString;
131
+ target: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
132
+ domain: z.ZodLiteral<"commands">;
133
+ id: z.ZodType<import("../index.js").AgentCommandId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentCommandId, unknown>>;
134
+ revision: z.ZodNumber;
135
+ catalogRevision: z.ZodNumber;
136
+ }, z.core.$strict>>>;
137
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
138
+ kind: z.ZodEnum<{
139
+ mcp_server: "mcp_server";
140
+ connector: "connector";
141
+ }>;
142
+ name: z.ZodString;
143
+ target: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
144
+ domain: z.ZodLiteral<"integrations">;
145
+ id: z.ZodType<import("../index.js").AgentIntegrationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentIntegrationId, unknown>>;
146
+ revision: z.ZodNumber;
147
+ catalogRevision: z.ZodNumber;
148
+ }, z.core.$strict>>>;
149
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
150
+ kind: z.ZodEnum<{
151
+ other: "other";
152
+ hook: "hook";
153
+ lsp_server: "lsp_server";
154
+ scheduled_task: "scheduled_task";
155
+ }>;
156
+ name: z.ZodString;
157
+ }, z.core.$strict>>], "kind">>>;
158
+ }, z.core.$strict>>>>;
159
+ }, z.core.$strict>>;
160
+ export declare const AgentExtensionCatalogSchema: z.ZodType<AgentExtensionCatalog>;
161
+ //# sourceMappingURL=extensions.d.ts.map
@@ -0,0 +1,194 @@
1
+ import { z } from "zod/v4";
2
+ import { compareStringsByUnicodeCodePoint } from "../foundation/ordering.js";
3
+ import { agentProtocolSerializedJsonBytes } from "../foundation/types.js";
4
+ import {
5
+ AGENT_EXTENSION_CATALOG_BYTES_LIMIT,
6
+ AGENT_EXTENSION_CATALOG_MAX_LENGTH,
7
+ AGENT_EXTENSION_COMPONENT_NAME_MAX_LENGTH,
8
+ AGENT_EXTENSION_COMPONENTS_MAX_LENGTH,
9
+ AGENT_EXTENSION_NAME_MAX_LENGTH,
10
+ AGENT_EXTENSION_SUMMARY_MAX_LENGTH,
11
+ AGENT_EXTENSION_VERSION_MAX_LENGTH
12
+ } from "../extensions/types.js";
13
+ import {
14
+ AgentAvailabilityFactSchema,
15
+ AgentEnvironmentSourceSchema
16
+ } from "./environmentFacts.js";
17
+ import {
18
+ AgentCommandIdSchema,
19
+ AgentEffectiveContentIdSchema,
20
+ AgentExtensionIdSchema,
21
+ AgentIntegrationIdSchema,
22
+ AgentIsoDateTimeSchema,
23
+ createAgentCanonicalNonBlankStringSchema,
24
+ withAcyclicProtocolInput
25
+ } from "./foundation.js";
26
+ const PositiveSafeIntegerSchema = z.number().int().positive().max(Number.MAX_SAFE_INTEGER);
27
+ const NameSchema = createAgentCanonicalNonBlankStringSchema(
28
+ AGENT_EXTENSION_NAME_MAX_LENGTH
29
+ );
30
+ const SummarySchema = createAgentCanonicalNonBlankStringSchema(
31
+ AGENT_EXTENSION_SUMMARY_MAX_LENGTH
32
+ );
33
+ const VersionSchema = createAgentCanonicalNonBlankStringSchema(
34
+ AGENT_EXTENSION_VERSION_MAX_LENGTH
35
+ );
36
+ const ComponentNameSchema = createAgentCanonicalNonBlankStringSchema(
37
+ AGENT_EXTENSION_COMPONENT_NAME_MAX_LENGTH
38
+ );
39
+ const ContentTargetSchema = z.object({
40
+ domain: z.literal("content"),
41
+ id: AgentEffectiveContentIdSchema,
42
+ revision: PositiveSafeIntegerSchema,
43
+ catalogRevision: PositiveSafeIntegerSchema
44
+ }).strict().readonly();
45
+ const CommandTargetSchema = z.object({
46
+ domain: z.literal("commands"),
47
+ id: AgentCommandIdSchema,
48
+ revision: PositiveSafeIntegerSchema,
49
+ catalogRevision: PositiveSafeIntegerSchema
50
+ }).strict().readonly();
51
+ const IntegrationTargetSchema = z.object({
52
+ domain: z.literal("integrations"),
53
+ id: AgentIntegrationIdSchema,
54
+ revision: PositiveSafeIntegerSchema,
55
+ catalogRevision: PositiveSafeIntegerSchema
56
+ }).strict().readonly();
57
+ const ContentComponentKinds = [
58
+ "skill",
59
+ "rule",
60
+ "prompt",
61
+ "agent_definition"
62
+ ];
63
+ const NonTargetedComponentKinds = [
64
+ "hook",
65
+ "lsp_server",
66
+ "scheduled_task",
67
+ "other"
68
+ ];
69
+ const ContentComponentSchema = z.object({
70
+ kind: z.enum(ContentComponentKinds),
71
+ name: ComponentNameSchema,
72
+ target: ContentTargetSchema.optional()
73
+ }).strict().readonly();
74
+ const CommandComponentSchema = z.object({
75
+ kind: z.literal("command"),
76
+ name: ComponentNameSchema,
77
+ target: CommandTargetSchema.optional()
78
+ }).strict().readonly();
79
+ const IntegrationComponentSchema = z.object({
80
+ kind: z.enum(["mcp_server", "connector"]),
81
+ name: ComponentNameSchema,
82
+ target: IntegrationTargetSchema.optional()
83
+ }).strict().readonly();
84
+ const DescriptiveComponentSchema = z.object({
85
+ kind: z.enum(NonTargetedComponentKinds),
86
+ name: ComponentNameSchema
87
+ }).strict().readonly();
88
+ const AgentExtensionComponentPortableSchema = z.discriminatedUnion("kind", [
89
+ ContentComponentSchema,
90
+ CommandComponentSchema,
91
+ IntegrationComponentSchema,
92
+ DescriptiveComponentSchema
93
+ ]);
94
+ const AgentExtensionDescriptorPortableSchema = z.object({
95
+ extensionId: AgentExtensionIdSchema,
96
+ revision: PositiveSafeIntegerSchema,
97
+ name: NameSchema,
98
+ summary: SummarySchema.optional(),
99
+ version: VersionSchema.optional(),
100
+ installation: AgentAvailabilityFactSchema,
101
+ enablement: AgentAvailabilityFactSchema,
102
+ source: AgentEnvironmentSourceSchema,
103
+ components: z.array(AgentExtensionComponentPortableSchema).max(AGENT_EXTENSION_COMPONENTS_MAX_LENGTH).readonly()
104
+ }).strict().readonly();
105
+ function addUniqueAndOrderedIssues(values, path, label, context) {
106
+ const seen = /* @__PURE__ */ new Set();
107
+ values.forEach((value, index) => {
108
+ if (seen.has(value)) {
109
+ context.addIssue({
110
+ code: "custom",
111
+ path: [...path, index],
112
+ message: `${label} must be unique.`
113
+ });
114
+ }
115
+ if (index > 0 && compareStringsByUnicodeCodePoint(values[index - 1], value) >= 0) {
116
+ context.addIssue({
117
+ code: "custom",
118
+ path: [...path, index],
119
+ message: `${label} must use canonical ID order.`
120
+ });
121
+ }
122
+ seen.add(value);
123
+ });
124
+ }
125
+ function validateComponent(component, index, context) {
126
+ const target = "target" in component ? component.target : void 0;
127
+ if ((component.kind === "hook" || component.kind === "lsp_server" || component.kind === "scheduled_task" || component.kind === "other") && target !== void 0) {
128
+ context.addIssue({
129
+ code: "custom",
130
+ path: ["components", index, "target"],
131
+ message: "Descriptive extension components cannot carry a qualified target."
132
+ });
133
+ }
134
+ }
135
+ const AgentExtensionDescriptorSchema = withAcyclicProtocolInput(AgentExtensionDescriptorPortableSchema, {
136
+ maxDepth: 16,
137
+ maxCollectionLength: AGENT_EXTENSION_COMPONENTS_MAX_LENGTH * 4
138
+ }).superRefine((descriptor, context) => {
139
+ descriptor.components.forEach((component, index) => {
140
+ validateComponent(component, index, context);
141
+ });
142
+ });
143
+ const AgentExtensionCatalogPortableSchema = z.object({
144
+ revision: PositiveSafeIntegerSchema,
145
+ observedAt: AgentIsoDateTimeSchema,
146
+ extensions: z.array(AgentExtensionDescriptorPortableSchema).max(AGENT_EXTENSION_CATALOG_MAX_LENGTH).readonly()
147
+ }).strict().readonly();
148
+ const AgentExtensionCatalogSchema = withAcyclicProtocolInput(AgentExtensionCatalogPortableSchema, {
149
+ maxDepth: 16,
150
+ // The preflight counts object properties as well as array members. Leave
151
+ // room for the fixed descriptor fields while retaining a finite bound.
152
+ maxCollectionLength: AGENT_EXTENSION_COMPONENTS_MAX_LENGTH * 4
153
+ }).superRefine((catalog, context) => {
154
+ addUniqueAndOrderedIssues(
155
+ catalog.extensions.map((extension) => extension.extensionId),
156
+ ["extensions"],
157
+ "Extension IDs",
158
+ context
159
+ );
160
+ let components = 0;
161
+ catalog.extensions.forEach((extension, extensionIndex) => {
162
+ const parsed = AgentExtensionDescriptorSchema.safeParse(extension);
163
+ if (!parsed.success) {
164
+ for (const issue of parsed.error.issues) {
165
+ context.addIssue({
166
+ code: "custom",
167
+ path: ["extensions", extensionIndex, ...issue.path],
168
+ message: issue.message
169
+ });
170
+ }
171
+ }
172
+ components += extension.components.length;
173
+ });
174
+ if (components > AGENT_EXTENSION_COMPONENTS_MAX_LENGTH) {
175
+ context.addIssue({
176
+ code: "custom",
177
+ path: ["extensions"],
178
+ message: "Extension components exceed the aggregate limit."
179
+ });
180
+ }
181
+ if (agentProtocolSerializedJsonBytes(catalog) > AGENT_EXTENSION_CATALOG_BYTES_LIMIT) {
182
+ context.addIssue({
183
+ code: "custom",
184
+ message: "Extension catalog exceeds its serialized UTF-8 byte limit."
185
+ });
186
+ }
187
+ });
188
+ export {
189
+ AgentExtensionCatalogPortableSchema,
190
+ AgentExtensionCatalogSchema,
191
+ AgentExtensionComponentPortableSchema,
192
+ AgentExtensionDescriptorPortableSchema,
193
+ AgentExtensionDescriptorSchema
194
+ };
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod/v4';
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';
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 AgentEnvironmentId, type AgentEffectiveContentId, type AgentCommandId, type AgentExtensionId, 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 function createAgentCanonicalOpaqueStringSchema(maxLength: number, message: string): z.ZodString;
4
4
  export declare const AgentCanonicalIdValueSchema: z.ZodString;
5
5
  export declare function createAgentCanonicalNonBlankStringSchema(maxLength: number): z.ZodString;
@@ -16,6 +16,10 @@ export declare const AgentArtifactIdSchema: z.ZodType<AgentArtifactId, unknown,
16
16
  export declare const AgentOperationIdSchema: z.ZodType<AgentOperationId, unknown, z.core.$ZodTypeInternals<AgentOperationId, unknown>>;
17
17
  export declare const AgentOperationInvocationIdSchema: z.ZodType<AgentOperationInvocationId, unknown, z.core.$ZodTypeInternals<AgentOperationInvocationId, unknown>>;
18
18
  export declare const AgentManagedContentIdSchema: z.ZodType<AgentManagedContentId, unknown, z.core.$ZodTypeInternals<AgentManagedContentId, unknown>>;
19
+ export declare const AgentEnvironmentIdSchema: z.ZodType<AgentEnvironmentId, unknown, z.core.$ZodTypeInternals<AgentEnvironmentId, unknown>>;
20
+ export declare const AgentEffectiveContentIdSchema: z.ZodType<AgentEffectiveContentId, unknown, z.core.$ZodTypeInternals<AgentEffectiveContentId, unknown>>;
21
+ export declare const AgentCommandIdSchema: z.ZodType<AgentCommandId, unknown, z.core.$ZodTypeInternals<AgentCommandId, unknown>>;
22
+ export declare const AgentExtensionIdSchema: z.ZodType<AgentExtensionId, unknown, z.core.$ZodTypeInternals<AgentExtensionId, unknown>>;
19
23
  export declare const AgentIntegrationIdSchema: z.ZodType<AgentIntegrationId, unknown, z.core.$ZodTypeInternals<AgentIntegrationId, unknown>>;
20
24
  export declare const AgentIntegrationServerIdSchema: z.ZodType<AgentIntegrationServerId, unknown, z.core.$ZodTypeInternals<AgentIntegrationServerId, unknown>>;
21
25
  export declare const AgentIntegrationToolIdSchema: z.ZodType<AgentIntegrationToolId, unknown, z.core.$ZodTypeInternals<AgentIntegrationToolId, unknown>>;
@@ -46,6 +46,10 @@ const AgentArtifactIdSchema = opaqueStringSchema(AgentCanonicalIdValueSchema);
46
46
  const AgentOperationIdSchema = opaqueStringSchema(AgentCanonicalIdValueSchema);
47
47
  const AgentOperationInvocationIdSchema = opaqueStringSchema(AgentCanonicalIdValueSchema);
48
48
  const AgentManagedContentIdSchema = opaqueStringSchema(AgentCanonicalIdValueSchema);
49
+ const AgentEnvironmentIdSchema = opaqueStringSchema(AgentCanonicalIdValueSchema);
50
+ const AgentEffectiveContentIdSchema = opaqueStringSchema(AgentCanonicalIdValueSchema);
51
+ const AgentCommandIdSchema = opaqueStringSchema(AgentCanonicalIdValueSchema);
52
+ const AgentExtensionIdSchema = opaqueStringSchema(AgentCanonicalIdValueSchema);
49
53
  const AgentIntegrationIdSchema = opaqueStringSchema(AgentCanonicalIdValueSchema);
50
54
  const AgentIntegrationServerIdSchema = opaqueStringSchema(AgentCanonicalIdValueSchema);
51
55
  const AgentIntegrationToolIdSchema = opaqueStringSchema(AgentCanonicalIdValueSchema);
@@ -191,9 +195,13 @@ export {
191
195
  AgentCanonicalIdValueSchema,
192
196
  AgentCanonicalNonBlankTextSchema,
193
197
  AgentCollaborationIdSchema,
198
+ AgentCommandIdSchema,
194
199
  AgentConfigurationRevisionIdSchema,
200
+ AgentEffectiveContentIdSchema,
201
+ AgentEnvironmentIdSchema,
195
202
  AgentErrorContextSchema,
196
203
  AgentErrorSchema,
204
+ AgentExtensionIdSchema,
197
205
  AgentGeneratedResourceIdSchema,
198
206
  AgentInstanceIdSchema,
199
207
  AgentIntegrationIdSchema,
@@ -1,16 +1,21 @@
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';
1
+ export { AgentApprovalOptionIdSchema, AgentArtifactIdSchema, AgentCollaborationIdSchema, AgentConfigurationRevisionIdSchema, AgentErrorContextSchema, AgentErrorSchema, AgentInstanceIdSchema, AgentIntegrationIdSchema, AgentIntegrationResourceIdSchema, AgentIntegrationServerIdSchema, AgentIntegrationToolIdSchema, AgentIsoDateTimeSchema, AgentItemIdSchema, AgentJsonValueSchema, AgentManagedContentIdSchema, AgentEnvironmentIdSchema, AgentEffectiveContentIdSchema, AgentCommandIdSchema, AgentExtensionIdSchema, AgentOperationIdSchema, AgentOperationInvocationIdSchema, AgentProviderConversationIdSchema, AgentProviderHistoryAnchorSchema, AgentProviderItemRefSchema, AgentProviderKeySchema, AgentProviderRefsSchema, AgentProviderRequestRefSchema, AgentProviderTurnRefSchema, AgentRequestFieldIdSchema, AgentRequestIdSchema, AgentSessionIdSchema, AgentGeneratedResourceIdSchema, AgentTurnIdSchema, } from './foundation.js';
2
2
  export { AgentSessionBindingSchema, AgentSessionBranchSourceSchema, AgentSessionBranchInputSchema, AgentSessionConfigurationSchema, AgentSessionCreateInputSchema, AgentSessionOpenInputSchema, AgentSessionResumeInputSchema, } from './sessions.js';
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';
3
+ export { AgentBrowserActionDetailsSchema, AgentCollaborationToolCallDetailsSchema, AgentCommandExecutionDetailsSchema, AgentComputerActionDetailsSchema, AgentContentStreamKindSchema, AgentContextCompactionDetailsSchema, AgentDiffSummarySchema, AgentDynamicToolCallDetailsSchema, AgentFileChangeDetailsSchema, AgentFileChangeSchema, AgentImageViewDetailsSchema, AgentItemSnapshotSchema, AgentMcpToolCallDetailsSchema, AgentPlanStepSchema, AgentReviewDetailsSchema, AgentTurnCompletedPayloadSchema, AgentTurnInputContentCompositionSchema, AgentTurnInputContentSchema, AgentTurnInteractionModeSchema, AgentTurnInputPartSchema, AgentContentReferenceInputPartSchema, AgentTurnInterruptionInputSchema, AgentTurnRunInputSchema, AgentWebSearchDetailsSchema, } from './turns.js';
4
4
  export { AgentApprovalRequestSchema, AgentApprovalResolutionSchema, AgentElicitationRequestSchema, AgentRequestResolutionSchema, AgentRequestSchema, } from './requests.js';
5
5
  export { AgentOperationCatalogSchema, AgentOperationDescriptorSchema, AgentOperationFieldSchema, AgentOperationInvocationSchema, AgentOperationResultSchema, } from './operations.js';
6
6
  export { AgentManagedContentCatalogSchema, AgentManagedContentDescriptorSchema, } from './managedContent.js';
7
7
  export { AgentConfigurationCatalogSchema, AgentConfigurationFieldPortableSchema, AgentConfigurationSelectionInputSchema, AgentConfigurationValueSchema, } from './configuration.js';
8
- export { AgentIntegrationCatalogSchema, AgentIntegrationDescriptorSchema, } from './integrations.js';
8
+ export { AgentIntegrationCatalogSchema, AgentIntegrationDescriptorSchema, AgentMcpIntegrationDescriptorSchema, } from './integrations.js';
9
9
  export { AgentCollaborationControlInputSchema, AgentCollaborationNodeSchema, AgentCollaborationSpawnInputSchema, } from './collaboration.js';
10
10
  export { AgentGeneratedResourceDescriptorSchema } from './resources.js';
11
- export { AgentApprovalCapabilitySchema, AgentCapabilitiesSchema, } from './capabilities.js';
11
+ export { AgentApprovalCapabilitySchema, AgentCapabilitiesSchema, AgentContentReferenceInputCapabilitySchema, } from './capabilities.js';
12
12
  export { AgentArtifactDescriptorSchema } from './artifacts.js';
13
13
  export { AgentContextUsageSchema, AgentEventSchema } from './events.js';
14
14
  export type { AgentProtocolSchemaTypeAssertions } from './typeEquality.generated.js';
15
15
  export * from './accountQuota.js';
16
+ export * from './environmentFacts.js';
17
+ export * from './effectiveContent.js';
18
+ export * from './commands.js';
19
+ export * from './extensions.js';
20
+ export * from './environment.js';
16
21
  //# sourceMappingURL=index.d.ts.map
package/dist/zod/index.js CHANGED
@@ -14,6 +14,10 @@ import {
14
14
  AgentItemIdSchema,
15
15
  AgentJsonValueSchema,
16
16
  AgentManagedContentIdSchema,
17
+ AgentEnvironmentIdSchema,
18
+ AgentEffectiveContentIdSchema,
19
+ AgentCommandIdSchema,
20
+ AgentExtensionIdSchema,
17
21
  AgentOperationIdSchema,
18
22
  AgentOperationInvocationIdSchema,
19
23
  AgentProviderConversationIdSchema,
@@ -59,6 +63,7 @@ import {
59
63
  AgentTurnInputContentSchema,
60
64
  AgentTurnInteractionModeSchema,
61
65
  AgentTurnInputPartSchema,
66
+ AgentContentReferenceInputPartSchema,
62
67
  AgentTurnInterruptionInputSchema,
63
68
  AgentTurnRunInputSchema,
64
69
  AgentWebSearchDetailsSchema
@@ -89,7 +94,8 @@ import {
89
94
  } from "./configuration.js";
90
95
  import {
91
96
  AgentIntegrationCatalogSchema,
92
- AgentIntegrationDescriptorSchema
97
+ AgentIntegrationDescriptorSchema,
98
+ AgentMcpIntegrationDescriptorSchema
93
99
  } from "./integrations.js";
94
100
  import {
95
101
  AgentCollaborationControlInputSchema,
@@ -99,11 +105,17 @@ import {
99
105
  import { AgentGeneratedResourceDescriptorSchema } from "./resources.js";
100
106
  import {
101
107
  AgentApprovalCapabilitySchema,
102
- AgentCapabilitiesSchema
108
+ AgentCapabilitiesSchema,
109
+ AgentContentReferenceInputCapabilitySchema
103
110
  } from "./capabilities.js";
104
111
  import { AgentArtifactDescriptorSchema } from "./artifacts.js";
105
112
  import { AgentContextUsageSchema, AgentEventSchema } from "./events.js";
106
113
  export * from "./accountQuota.js";
114
+ export * from "./environmentFacts.js";
115
+ export * from "./effectiveContent.js";
116
+ export * from "./commands.js";
117
+ export * from "./extensions.js";
118
+ export * from "./environment.js";
107
119
  export {
108
120
  AgentApprovalCapabilitySchema,
109
121
  AgentApprovalOptionIdSchema,
@@ -119,21 +131,27 @@ export {
119
131
  AgentCollaborationSpawnInputSchema,
120
132
  AgentCollaborationToolCallDetailsSchema,
121
133
  AgentCommandExecutionDetailsSchema,
134
+ AgentCommandIdSchema,
122
135
  AgentComputerActionDetailsSchema,
123
136
  AgentConfigurationCatalogSchema,
124
137
  AgentConfigurationFieldPortableSchema,
125
138
  AgentConfigurationRevisionIdSchema,
126
139
  AgentConfigurationSelectionInputSchema,
127
140
  AgentConfigurationValueSchema,
141
+ AgentContentReferenceInputCapabilitySchema,
142
+ AgentContentReferenceInputPartSchema,
128
143
  AgentContentStreamKindSchema,
129
144
  AgentContextCompactionDetailsSchema,
130
145
  AgentContextUsageSchema,
131
146
  AgentDiffSummarySchema,
132
147
  AgentDynamicToolCallDetailsSchema,
148
+ AgentEffectiveContentIdSchema,
133
149
  AgentElicitationRequestSchema,
150
+ AgentEnvironmentIdSchema,
134
151
  AgentErrorContextSchema,
135
152
  AgentErrorSchema,
136
153
  AgentEventSchema,
154
+ AgentExtensionIdSchema,
137
155
  AgentFileChangeDetailsSchema,
138
156
  AgentFileChangeSchema,
139
157
  AgentGeneratedResourceDescriptorSchema,
@@ -153,6 +171,7 @@ export {
153
171
  AgentManagedContentCatalogSchema,
154
172
  AgentManagedContentDescriptorSchema,
155
173
  AgentManagedContentIdSchema,
174
+ AgentMcpIntegrationDescriptorSchema,
156
175
  AgentMcpToolCallDetailsSchema,
157
176
  AgentOperationCatalogSchema,
158
177
  AgentOperationDescriptorSchema,
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod/v4';
2
- import { type AgentIntegrationCatalog, type AgentIntegrationDescriptor } from '../integrations/types.js';
3
- declare const AgentIntegrationDescriptorPortableSchema: z.ZodReadonly<z.ZodObject<{
2
+ import { type AgentIntegrationCatalog, type AgentIntegrationDescriptor, type AgentMcpIntegrationDescriptor } from '../integrations/types.js';
3
+ declare const AgentIntegrationDescriptorPortableSchema: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
4
4
  integrationId: z.ZodType<import("../index.js").AgentIntegrationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentIntegrationId, unknown>>;
5
5
  revision: z.ZodNumber;
6
6
  kind: z.ZodLiteral<"mcp">;
@@ -32,12 +32,35 @@ declare const AgentIntegrationDescriptorPortableSchema: z.ZodReadonly<z.ZodObjec
32
32
  mediaType: z.ZodOptional<z.ZodString>;
33
33
  }, z.core.$strict>>>>;
34
34
  }, z.core.$strict>>>>;
35
- }, z.core.$strict>>;
35
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
36
+ integrationId: z.ZodType<import("../index.js").AgentIntegrationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentIntegrationId, unknown>>;
37
+ revision: z.ZodNumber;
38
+ kind: z.ZodLiteral<"connector">;
39
+ name: z.ZodString;
40
+ description: z.ZodOptional<z.ZodString>;
41
+ source: z.ZodType<import("../index.js").AgentEnvironmentSource, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentEnvironmentSource, unknown>>;
42
+ installation: z.ZodType<import("../index.js").AgentAvailabilityFact, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentAvailabilityFact, unknown>>;
43
+ enablement: z.ZodType<import("../index.js").AgentAvailabilityFact, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentAvailabilityFact, unknown>>;
44
+ authentication: z.ZodType<import("../index.js").AgentAvailabilityFact, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentAvailabilityFact, unknown>>;
45
+ health: z.ZodEnum<{
46
+ unavailable: "unavailable";
47
+ starting: "starting";
48
+ ready: "ready";
49
+ degraded: "degraded";
50
+ }>;
51
+ callability: z.ZodType<import("../index.js").AgentAvailabilityFact, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentAvailabilityFact, unknown>>;
52
+ tools: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
53
+ toolId: z.ZodType<import("../index.js").AgentIntegrationToolId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentIntegrationToolId, unknown>>;
54
+ name: z.ZodString;
55
+ description: z.ZodOptional<z.ZodString>;
56
+ }, z.core.$strict>>>>>;
57
+ }, z.core.$strict>>], "kind">;
36
58
  export declare const AgentIntegrationDescriptorSchema: z.ZodType<AgentIntegrationDescriptor>;
59
+ export declare const AgentMcpIntegrationDescriptorSchema: z.ZodType<AgentMcpIntegrationDescriptor>;
37
60
  export declare const AgentIntegrationCatalogPortableSchema: z.ZodReadonly<z.ZodObject<{
38
61
  revision: z.ZodNumber;
39
62
  observedAt: z.ZodType<import("../index.js").AgentIsoDateTime, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentIsoDateTime, unknown>>;
40
- integrations: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
63
+ integrations: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
41
64
  integrationId: z.ZodType<import("../index.js").AgentIntegrationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentIntegrationId, unknown>>;
42
65
  revision: z.ZodNumber;
43
66
  kind: z.ZodLiteral<"mcp">;
@@ -69,7 +92,29 @@ export declare const AgentIntegrationCatalogPortableSchema: z.ZodReadonly<z.ZodO
69
92
  mediaType: z.ZodOptional<z.ZodString>;
70
93
  }, z.core.$strict>>>>;
71
94
  }, z.core.$strict>>>>;
72
- }, z.core.$strict>>>>;
95
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
96
+ integrationId: z.ZodType<import("../index.js").AgentIntegrationId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentIntegrationId, unknown>>;
97
+ revision: z.ZodNumber;
98
+ kind: z.ZodLiteral<"connector">;
99
+ name: z.ZodString;
100
+ description: z.ZodOptional<z.ZodString>;
101
+ source: z.ZodType<import("../index.js").AgentEnvironmentSource, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentEnvironmentSource, unknown>>;
102
+ installation: z.ZodType<import("../index.js").AgentAvailabilityFact, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentAvailabilityFact, unknown>>;
103
+ enablement: z.ZodType<import("../index.js").AgentAvailabilityFact, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentAvailabilityFact, unknown>>;
104
+ authentication: z.ZodType<import("../index.js").AgentAvailabilityFact, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentAvailabilityFact, unknown>>;
105
+ health: z.ZodEnum<{
106
+ unavailable: "unavailable";
107
+ starting: "starting";
108
+ ready: "ready";
109
+ degraded: "degraded";
110
+ }>;
111
+ callability: z.ZodType<import("../index.js").AgentAvailabilityFact, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentAvailabilityFact, unknown>>;
112
+ tools: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
113
+ toolId: z.ZodType<import("../index.js").AgentIntegrationToolId, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentIntegrationToolId, unknown>>;
114
+ name: z.ZodString;
115
+ description: z.ZodOptional<z.ZodString>;
116
+ }, z.core.$strict>>>>>;
117
+ }, z.core.$strict>>], "kind">>>;
73
118
  }, z.core.$strict>>;
74
119
  export declare const AgentIntegrationCatalogSchema: z.ZodType<AgentIntegrationCatalog>;
75
120
  export { AgentIntegrationDescriptorPortableSchema };