@artinet/sdk 0.5.6 → 0.5.7

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 (117) hide show
  1. package/CHANGELOG.md +23 -1
  2. package/README.md +73 -0
  3. package/dist/services/a2a/factory/builder.js +1 -1
  4. package/dist/services/a2a/factory/event.js +1 -1
  5. package/dist/services/a2a/service.js +2 -5
  6. package/dist/services/a2a/service.js.map +1 -1
  7. package/dist/services/index.js +1 -0
  8. package/dist/services/index.js.map +1 -1
  9. package/dist/services/mcp/index.js +2 -0
  10. package/dist/services/mcp/index.js.map +1 -0
  11. package/dist/services/mcp/service.js +123 -0
  12. package/dist/services/mcp/service.js.map +1 -0
  13. package/dist/transport/trpc/a2a/routes/tasks/route.js +1 -1
  14. package/dist/transport/trpc/a2a/routes/tasks/route.js.map +1 -1
  15. package/dist/types/interfaces/services/a2a/builder.js +4 -0
  16. package/dist/types/interfaces/services/a2a/builder.js.map +1 -1
  17. package/dist/types/interfaces/services/index.js +1 -0
  18. package/dist/types/interfaces/services/index.js.map +1 -1
  19. package/dist/types/interfaces/services/mcp/index.js +2 -0
  20. package/dist/types/interfaces/services/mcp/index.js.map +1 -0
  21. package/dist/types/interfaces/services/mcp/service.js +6 -0
  22. package/dist/types/interfaces/services/mcp/service.js.map +1 -0
  23. package/dist/types/schemas/a2a/agent.js +9 -3
  24. package/dist/types/schemas/a2a/agent.js.map +1 -1
  25. package/dist/types/schemas/a2a/auth.js +11 -1
  26. package/dist/types/schemas/a2a/auth.js.map +1 -1
  27. package/dist/types/schemas/a2a/error.js +1 -1
  28. package/dist/types/schemas/a2a/error.js.map +1 -1
  29. package/dist/types/schemas/a2a/kind.js +1 -1
  30. package/dist/types/schemas/a2a/kind.js.map +1 -1
  31. package/dist/types/schemas/a2a/message.js +1 -1
  32. package/dist/types/schemas/a2a/message.js.map +1 -1
  33. package/dist/types/schemas/a2a/notification.js +2 -1
  34. package/dist/types/schemas/a2a/notification.js.map +1 -1
  35. package/dist/types/schemas/a2a/parameters.js +1 -1
  36. package/dist/types/schemas/a2a/parameters.js.map +1 -1
  37. package/dist/types/schemas/a2a/protocol.js +1 -1
  38. package/dist/types/schemas/a2a/protocol.js.map +1 -1
  39. package/dist/types/schemas/a2a/rpc.js +1 -1
  40. package/dist/types/schemas/a2a/rpc.js.map +1 -1
  41. package/dist/types/schemas/a2a/task.js +1 -1
  42. package/dist/types/schemas/a2a/task.js.map +1 -1
  43. package/dist/types/schemas/a2a/transport.js +2 -1
  44. package/dist/types/schemas/a2a/transport.js.map +1 -1
  45. package/dist/types/schemas/deployment/request.js +2 -2
  46. package/dist/types/schemas/deployment/request.js.map +1 -1
  47. package/dist/types/server/express/server.d.ts +7 -7
  48. package/dist/types/services/a2a/factory/builder.d.ts +8 -8
  49. package/dist/types/services/a2a/factory/context.d.ts +1 -1
  50. package/dist/types/services/a2a/factory/event.d.ts +1 -1
  51. package/dist/types/services/a2a/methods/get-task.d.ts +17 -17
  52. package/dist/types/services/a2a/service.d.ts +57 -58
  53. package/dist/types/services/a2a/service.d.ts.map +1 -1
  54. package/dist/types/services/index.d.ts +1 -0
  55. package/dist/types/services/index.d.ts.map +1 -1
  56. package/dist/types/services/mcp/index.d.ts +2 -0
  57. package/dist/types/services/mcp/index.d.ts.map +1 -0
  58. package/dist/types/services/mcp/service.d.ts +31 -0
  59. package/dist/types/services/mcp/service.d.ts.map +1 -0
  60. package/dist/types/transport/trpc/a2a/factory/router.d.ts +370 -370
  61. package/dist/types/transport/trpc/a2a/routes/info.d.ts +15 -15
  62. package/dist/types/transport/trpc/a2a/routes/message/route.d.ts +79 -79
  63. package/dist/types/transport/trpc/a2a/routes/tasks/route.d.ts +84 -84
  64. package/dist/types/transport/trpc/a2a/trpc.d.ts +35 -35
  65. package/dist/types/types/interfaces/services/a2a/builder.d.ts +4 -0
  66. package/dist/types/types/interfaces/services/a2a/builder.d.ts.map +1 -1
  67. package/dist/types/types/interfaces/services/a2a/context.d.ts +1 -1
  68. package/dist/types/types/interfaces/services/a2a/service.d.ts +1 -1
  69. package/dist/types/types/interfaces/services/core/context/context.d.ts +1 -1
  70. package/dist/types/types/interfaces/services/core/context/types.d.ts.map +1 -1
  71. package/dist/types/types/interfaces/services/core/execution/engine.d.ts +1 -1
  72. package/dist/types/types/interfaces/services/core/managers/event.d.ts +1 -1
  73. package/dist/types/types/interfaces/services/core/managers/stream.d.ts +1 -1
  74. package/dist/types/types/interfaces/services/core/service.d.ts +1 -1
  75. package/dist/types/types/interfaces/services/index.d.ts +1 -0
  76. package/dist/types/types/interfaces/services/index.d.ts.map +1 -1
  77. package/dist/types/types/interfaces/services/mcp/index.d.ts +2 -0
  78. package/dist/types/types/interfaces/services/mcp/index.d.ts.map +1 -0
  79. package/dist/types/types/interfaces/services/mcp/service.d.ts +50 -0
  80. package/dist/types/types/interfaces/services/mcp/service.d.ts.map +1 -0
  81. package/dist/types/types/schemas/a2a/agent.d.ts +2371 -296
  82. package/dist/types/types/schemas/a2a/agent.d.ts.map +1 -1
  83. package/dist/types/types/schemas/a2a/auth.d.ts +795 -171
  84. package/dist/types/types/schemas/a2a/auth.d.ts.map +1 -1
  85. package/dist/types/types/schemas/a2a/error.d.ts +243 -27
  86. package/dist/types/types/schemas/a2a/error.d.ts.map +1 -1
  87. package/dist/types/types/schemas/a2a/kind.d.ts +3 -19
  88. package/dist/types/types/schemas/a2a/kind.d.ts.map +1 -1
  89. package/dist/types/types/schemas/a2a/message.d.ts +9580 -1806
  90. package/dist/types/types/schemas/a2a/message.d.ts.map +1 -1
  91. package/dist/types/types/schemas/a2a/notification.d.ts +1283 -103
  92. package/dist/types/types/schemas/a2a/notification.d.ts.map +1 -1
  93. package/dist/types/types/schemas/a2a/parameters.d.ts +814 -165
  94. package/dist/types/types/schemas/a2a/parameters.d.ts.map +1 -1
  95. package/dist/types/types/schemas/a2a/protocol.d.ts +13378 -2221
  96. package/dist/types/types/schemas/a2a/protocol.d.ts.map +1 -1
  97. package/dist/types/types/schemas/a2a/rpc.d.ts +137 -11
  98. package/dist/types/types/schemas/a2a/rpc.d.ts.map +1 -1
  99. package/dist/types/types/schemas/a2a/task.d.ts +5409 -1020
  100. package/dist/types/types/schemas/a2a/task.d.ts.map +1 -1
  101. package/dist/types/types/schemas/a2a/transport.d.ts +17 -13
  102. package/dist/types/types/schemas/a2a/transport.d.ts.map +1 -1
  103. package/dist/types/types/schemas/deployment/request.d.ts +2639 -299
  104. package/dist/types/types/schemas/deployment/request.d.ts.map +1 -1
  105. package/dist/types/utils/common/zAsyncIterable-v3.d.ts +25 -0
  106. package/dist/types/utils/common/zAsyncIterable-v3.d.ts.map +1 -0
  107. package/dist/types/utils/common/zAsyncIterable.d.ts.map +1 -1
  108. package/dist/types/utils/deployment/full-deployment.d.ts +2 -2
  109. package/dist/types/utils/index.d.ts +1 -1
  110. package/dist/types/utils/index.d.ts.map +1 -1
  111. package/dist/utils/common/zAsyncIterable-v3.js +39 -0
  112. package/dist/utils/common/zAsyncIterable-v3.js.map +1 -0
  113. package/dist/utils/common/zAsyncIterable.js +1 -0
  114. package/dist/utils/common/zAsyncIterable.js.map +1 -1
  115. package/dist/utils/index.js +1 -1
  116. package/dist/utils/index.js.map +1 -1
  117. package/package.json +4 -4
@@ -2,508 +2,2583 @@
2
2
  * Copyright 2025 The Artinet Project
3
3
  * SPDX-License-Identifier: Apache-2.0
4
4
  */
5
- import { z } from "zod/v4";
5
+ import { z } from "zod";
6
6
  /**
7
7
  * @description Represents the provider or organization behind an agent.
8
8
  */
9
9
  export declare const AgentProviderSchema: z.ZodObject<{
10
+ /**
11
+ * @required The name of the organization providing the agent.
12
+ */
10
13
  organization: z.ZodString;
11
- url: z.ZodURL;
12
- }, z.core.$strip>;
14
+ /**
15
+ * @required URL associated with the agent provider.
16
+ */
17
+ url: z.ZodString;
18
+ }, "strip", z.ZodTypeAny, {
19
+ url: string;
20
+ organization: string;
21
+ }, {
22
+ url: string;
23
+ organization: string;
24
+ }>;
13
25
  export type AgentProvider = z.infer<typeof AgentProviderSchema>;
14
26
  /**
15
27
  * @description A declaration of an extension supported by an Agent.
16
28
  */
17
29
  export declare const AgentExtensionSchema: z.ZodObject<{
30
+ /**
31
+ * @required The URI of the extension.
32
+ */
18
33
  uri: z.ZodString;
34
+ /**
35
+ * @optional A description of how this agent uses this extension.
36
+ */
19
37
  description: z.ZodOptional<z.ZodString>;
38
+ /**
39
+ * @optional Whether the client must follow specific requirements of the extension.
40
+ */
20
41
  required: z.ZodOptional<z.ZodBoolean>;
42
+ /**
43
+ * @optional Optional configuration for the extension.
44
+ */
21
45
  params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
22
- }, z.core.$strip>;
46
+ }, "strip", z.ZodTypeAny, {
47
+ uri: string;
48
+ params?: Record<string, unknown> | undefined;
49
+ description?: string | undefined;
50
+ required?: boolean | undefined;
51
+ }, {
52
+ uri: string;
53
+ params?: Record<string, unknown> | undefined;
54
+ description?: string | undefined;
55
+ required?: boolean | undefined;
56
+ }>;
23
57
  export type AgentExtension = z.infer<typeof AgentExtensionSchema>;
24
58
  /**
25
59
  * @description Defines optional capabilities supported by an agent.
26
60
  */
27
61
  export declare const AgentCapabilitiesSchema: z.ZodObject<{
62
+ /**
63
+ * @optional Indicates if the agent supports streaming responses.
64
+ */
28
65
  streaming: z.ZodOptional<z.ZodBoolean>;
66
+ /**
67
+ * @optional Indicates if the agent supports push notification mechanisms.
68
+ */
29
69
  pushNotifications: z.ZodOptional<z.ZodBoolean>;
70
+ /**
71
+ * @optional Indicates if the agent supports providing state transition history.
72
+ */
30
73
  stateTransitionHistory: z.ZodOptional<z.ZodBoolean>;
74
+ /**
75
+ * @optional Extensions supported by this agent.
76
+ */
31
77
  extensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
78
+ /**
79
+ * @required The URI of the extension.
80
+ */
32
81
  uri: z.ZodString;
82
+ /**
83
+ * @optional A description of how this agent uses this extension.
84
+ */
33
85
  description: z.ZodOptional<z.ZodString>;
86
+ /**
87
+ * @optional Whether the client must follow specific requirements of the extension.
88
+ */
34
89
  required: z.ZodOptional<z.ZodBoolean>;
90
+ /**
91
+ * @optional Optional configuration for the extension.
92
+ */
35
93
  params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
36
- }, z.core.$strip>>>;
37
- }, z.core.$strip>;
94
+ }, "strip", z.ZodTypeAny, {
95
+ uri: string;
96
+ params?: Record<string, unknown> | undefined;
97
+ description?: string | undefined;
98
+ required?: boolean | undefined;
99
+ }, {
100
+ uri: string;
101
+ params?: Record<string, unknown> | undefined;
102
+ description?: string | undefined;
103
+ required?: boolean | undefined;
104
+ }>, "many">>;
105
+ }, "strip", z.ZodTypeAny, {
106
+ extensions?: {
107
+ uri: string;
108
+ params?: Record<string, unknown> | undefined;
109
+ description?: string | undefined;
110
+ required?: boolean | undefined;
111
+ }[] | undefined;
112
+ streaming?: boolean | undefined;
113
+ pushNotifications?: boolean | undefined;
114
+ stateTransitionHistory?: boolean | undefined;
115
+ }, {
116
+ extensions?: {
117
+ uri: string;
118
+ params?: Record<string, unknown> | undefined;
119
+ description?: string | undefined;
120
+ required?: boolean | undefined;
121
+ }[] | undefined;
122
+ streaming?: boolean | undefined;
123
+ pushNotifications?: boolean | undefined;
124
+ stateTransitionHistory?: boolean | undefined;
125
+ }>;
38
126
  export type AgentCapabilities = z.infer<typeof AgentCapabilitiesSchema>;
39
127
  /**
40
128
  * @description Represents a unit of capability that an agent can perform.
41
129
  */
42
130
  export declare const AgentSkillSchema: z.ZodObject<{
131
+ /**
132
+ * @required Unique identifier for the skill.
133
+ */
43
134
  id: z.ZodString;
135
+ /**
136
+ * @required Human-readable name of the skill.
137
+ */
44
138
  name: z.ZodString;
139
+ /**
140
+ * @required Description of the skill.
141
+ */
45
142
  description: z.ZodString;
46
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
47
- examples: z.ZodOptional<z.ZodArray<z.ZodString>>;
48
- inputModes: z.ZodOptional<z.ZodArray<z.ZodString>>;
49
- outputModes: z.ZodOptional<z.ZodArray<z.ZodString>>;
50
- security: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>>;
51
- }, z.core.$strip>;
143
+ /**
144
+ * @required List of tags associated with the skill for categorization.
145
+ */
146
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
147
+ /**
148
+ * @optional List of example inputs or use cases for the skill.
149
+ */
150
+ examples: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
151
+ /**
152
+ * @optional List of input modes supported by this skill.
153
+ */
154
+ inputModes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
155
+ /**
156
+ * @optional List of output modes supported by this skill.
157
+ */
158
+ outputModes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
159
+ /**
160
+ * @optional Security schemes necessary for the agent to leverage this skill.
161
+ */
162
+ security: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>, "many">>;
163
+ }, "strip", z.ZodTypeAny, {
164
+ description: string;
165
+ name: string;
166
+ id: string;
167
+ tags?: string[] | undefined;
168
+ examples?: string[] | undefined;
169
+ inputModes?: string[] | undefined;
170
+ outputModes?: string[] | undefined;
171
+ security?: Record<string, string[]>[] | undefined;
172
+ }, {
173
+ description: string;
174
+ name: string;
175
+ id: string;
176
+ tags?: string[] | undefined;
177
+ examples?: string[] | undefined;
178
+ inputModes?: string[] | undefined;
179
+ outputModes?: string[] | undefined;
180
+ security?: Record<string, string[]>[] | undefined;
181
+ }>;
52
182
  export type AgentSkill = z.infer<typeof AgentSkillSchema>;
53
183
  /**
54
184
  * @description AgentCardSignature represents a JWS signature of an AgentCard.
55
185
  */
56
186
  export declare const AgentCardSignatureSchema: z.ZodObject<{
187
+ /**
188
+ * @required The protected JWS header for the signature.
189
+ */
57
190
  protected: z.ZodString;
191
+ /**
192
+ * @required The computed signature, Base64url-encoded.
193
+ */
58
194
  signature: z.ZodString;
195
+ /**
196
+ * @optional The unprotected JWS header values.
197
+ */
59
198
  header: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
60
- }, z.core.$strip>;
199
+ }, "strip", z.ZodTypeAny, {
200
+ protected: string;
201
+ signature: string;
202
+ header?: Record<string, unknown> | undefined;
203
+ }, {
204
+ protected: string;
205
+ signature: string;
206
+ header?: Record<string, unknown> | undefined;
207
+ }>;
61
208
  export type AgentCardSignature = z.infer<typeof AgentCardSignatureSchema>;
62
209
  /**
63
210
  * @description An AgentCard conveys key information about an agent's identity,
64
211
  * capabilities, skills, authentication requirements, and communication modalities.
65
212
  */
66
213
  export declare const AgentCardSchema: z.ZodObject<{
214
+ /**
215
+ * @required The version of the A2A protocol this agent supports.
216
+ */
67
217
  protocolVersion: z.ZodDefault<z.ZodString>;
218
+ /**
219
+ * @required Human readable name of the agent.
220
+ */
68
221
  name: z.ZodString;
222
+ /**
223
+ * @required A human-readable description of the agent.
224
+ */
69
225
  description: z.ZodString;
70
- url: z.ZodURL;
71
- preferredTransport: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
72
- JSONRPC: "JSONRPC";
73
- GRPC: "GRPC";
74
- "HTTP+JSON": "HTTP+JSON";
75
- }>, z.ZodString]>>;
226
+ /**
227
+ * @required The preferred endpoint URL for interacting with the agent.
228
+ */
229
+ url: z.ZodString;
230
+ /**
231
+ * @optional The transport protocol for the preferred endpoint.
232
+ */
233
+ preferredTransport: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["JSONRPC", "GRPC", "HTTP+JSON"]>, z.ZodString]>>;
234
+ /**
235
+ * @optional Additional supported interfaces (transport and URL combinations).
236
+ */
76
237
  additionalInterfaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
77
- url: z.ZodURL;
78
- transport: z.ZodUnion<readonly [z.ZodEnum<{
79
- JSONRPC: "JSONRPC";
80
- GRPC: "GRPC";
81
- "HTTP+JSON": "HTTP+JSON";
82
- }>, z.ZodString]>;
83
- }, z.core.$strip>>>;
84
- iconUrl: z.ZodOptional<z.ZodURL>;
238
+ url: z.ZodString;
239
+ transport: z.ZodUnion<[z.ZodEnum<["JSONRPC", "GRPC", "HTTP+JSON"]>, z.ZodString]>;
240
+ }, "strip", z.ZodTypeAny, {
241
+ url: string;
242
+ transport: string;
243
+ }, {
244
+ url: string;
245
+ transport: string;
246
+ }>, "many">>;
247
+ /**
248
+ * @optional The URL of the agent's icon.
249
+ */
250
+ iconUrl: z.ZodOptional<z.ZodString>;
251
+ /**
252
+ * @optional The service provider of the agent.
253
+ */
85
254
  provider: z.ZodOptional<z.ZodObject<{
255
+ /**
256
+ * @required The name of the organization providing the agent.
257
+ */
86
258
  organization: z.ZodString;
87
- url: z.ZodURL;
88
- }, z.core.$strip>>;
259
+ /**
260
+ * @required URL associated with the agent provider.
261
+ */
262
+ url: z.ZodString;
263
+ }, "strip", z.ZodTypeAny, {
264
+ url: string;
265
+ organization: string;
266
+ }, {
267
+ url: string;
268
+ organization: string;
269
+ }>>;
270
+ /**
271
+ * @required The version identifier for the agent or its API.
272
+ */
89
273
  version: z.ZodString;
90
- documentationUrl: z.ZodOptional<z.ZodURL>;
274
+ /**
275
+ * @optional An optional URL pointing to the agent's documentation.
276
+ */
277
+ documentationUrl: z.ZodOptional<z.ZodString>;
278
+ /**
279
+ * @required The capabilities supported by the agent.
280
+ */
91
281
  capabilities: z.ZodObject<{
282
+ /**
283
+ * @optional Indicates if the agent supports streaming responses.
284
+ */
92
285
  streaming: z.ZodOptional<z.ZodBoolean>;
286
+ /**
287
+ * @optional Indicates if the agent supports push notification mechanisms.
288
+ */
93
289
  pushNotifications: z.ZodOptional<z.ZodBoolean>;
290
+ /**
291
+ * @optional Indicates if the agent supports providing state transition history.
292
+ */
94
293
  stateTransitionHistory: z.ZodOptional<z.ZodBoolean>;
294
+ /**
295
+ * @optional Extensions supported by this agent.
296
+ */
95
297
  extensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
298
+ /**
299
+ * @required The URI of the extension.
300
+ */
96
301
  uri: z.ZodString;
302
+ /**
303
+ * @optional A description of how this agent uses this extension.
304
+ */
97
305
  description: z.ZodOptional<z.ZodString>;
306
+ /**
307
+ * @optional Whether the client must follow specific requirements of the extension.
308
+ */
98
309
  required: z.ZodOptional<z.ZodBoolean>;
310
+ /**
311
+ * @optional Optional configuration for the extension.
312
+ */
99
313
  params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
100
- }, z.core.$strip>>>;
101
- }, z.core.$strip>;
102
- securitySchemes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
314
+ }, "strip", z.ZodTypeAny, {
315
+ uri: string;
316
+ params?: Record<string, unknown> | undefined;
317
+ description?: string | undefined;
318
+ required?: boolean | undefined;
319
+ }, {
320
+ uri: string;
321
+ params?: Record<string, unknown> | undefined;
322
+ description?: string | undefined;
323
+ required?: boolean | undefined;
324
+ }>, "many">>;
325
+ }, "strip", z.ZodTypeAny, {
326
+ extensions?: {
327
+ uri: string;
328
+ params?: Record<string, unknown> | undefined;
329
+ description?: string | undefined;
330
+ required?: boolean | undefined;
331
+ }[] | undefined;
332
+ streaming?: boolean | undefined;
333
+ pushNotifications?: boolean | undefined;
334
+ stateTransitionHistory?: boolean | undefined;
335
+ }, {
336
+ extensions?: {
337
+ uri: string;
338
+ params?: Record<string, unknown> | undefined;
339
+ description?: string | undefined;
340
+ required?: boolean | undefined;
341
+ }[] | undefined;
342
+ streaming?: boolean | undefined;
343
+ pushNotifications?: boolean | undefined;
344
+ stateTransitionHistory?: boolean | undefined;
345
+ }>;
346
+ /**
347
+ * @optional Security scheme details used for authenticating with this agent.
348
+ * Maps scheme names to their configurations.
349
+ */
350
+ securitySchemes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
103
351
  description: z.ZodOptional<z.ZodString>;
104
- type: z.ZodEnum<{
105
- apiKey: "apiKey";
106
- http: "http";
107
- mutualTLS: "mutualTLS";
108
- oauth2: "oauth2";
109
- openIdConnect: "openIdConnect";
110
- }>;
111
- in: z.ZodEnum<{
112
- query: "query";
113
- header: "header";
114
- cookie: "cookie";
115
- }>;
352
+ } & {
353
+ type: z.ZodEffects<z.ZodEnum<["apiKey", "http", "mutualTLS", "oauth2", "openIdConnect"]>, "apiKey", "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect">;
354
+ in: z.ZodEnum<["query", "header", "cookie"]>;
116
355
  name: z.ZodString;
117
- }, z.core.$strip>, z.ZodObject<{
356
+ }, "strip", z.ZodTypeAny, {
357
+ type: "apiKey";
358
+ in: "query" | "header" | "cookie";
359
+ name: string;
360
+ description?: string | undefined;
361
+ }, {
362
+ type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
363
+ in: "query" | "header" | "cookie";
364
+ name: string;
365
+ description?: string | undefined;
366
+ }>, z.ZodObject<{
118
367
  description: z.ZodOptional<z.ZodString>;
119
- type: z.ZodEnum<{
120
- apiKey: "apiKey";
121
- http: "http";
122
- mutualTLS: "mutualTLS";
123
- oauth2: "oauth2";
124
- openIdConnect: "openIdConnect";
125
- }>;
368
+ } & {
369
+ type: z.ZodEffects<z.ZodEnum<["apiKey", "http", "mutualTLS", "oauth2", "openIdConnect"]>, "http", "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect">;
126
370
  scheme: z.ZodString;
127
371
  bearerFormat: z.ZodOptional<z.ZodString>;
128
- }, z.core.$strip>, z.ZodObject<{
372
+ }, "strip", z.ZodTypeAny, {
373
+ type: "http";
374
+ scheme: string;
375
+ description?: string | undefined;
376
+ bearerFormat?: string | undefined;
377
+ }, {
378
+ type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
379
+ scheme: string;
380
+ description?: string | undefined;
381
+ bearerFormat?: string | undefined;
382
+ }>, z.ZodObject<{
129
383
  description: z.ZodOptional<z.ZodString>;
130
- type: z.ZodEnum<{
131
- apiKey: "apiKey";
132
- http: "http";
133
- mutualTLS: "mutualTLS";
134
- oauth2: "oauth2";
135
- openIdConnect: "openIdConnect";
136
- }>;
384
+ } & {
385
+ type: z.ZodEffects<z.ZodEnum<["apiKey", "http", "mutualTLS", "oauth2", "openIdConnect"]>, "oauth2", "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect">;
137
386
  flows: z.ZodObject<{
138
387
  authorizationCode: z.ZodOptional<z.ZodObject<{
139
- authorizationUrl: z.ZodURL;
140
- tokenUrl: z.ZodURL;
141
- refreshUrl: z.ZodOptional<z.ZodURL>;
388
+ authorizationUrl: z.ZodString;
389
+ tokenUrl: z.ZodString;
390
+ refreshUrl: z.ZodOptional<z.ZodString>;
142
391
  scopes: z.ZodRecord<z.ZodString, z.ZodString>;
143
- }, z.core.$strip>>;
392
+ }, "strip", z.ZodTypeAny, {
393
+ authorizationUrl: string;
394
+ tokenUrl: string;
395
+ scopes: Record<string, string>;
396
+ refreshUrl?: string | undefined;
397
+ }, {
398
+ authorizationUrl: string;
399
+ tokenUrl: string;
400
+ scopes: Record<string, string>;
401
+ refreshUrl?: string | undefined;
402
+ }>>;
144
403
  clientCredentials: z.ZodOptional<z.ZodObject<{
145
- tokenUrl: z.ZodURL;
146
- refreshUrl: z.ZodOptional<z.ZodURL>;
404
+ tokenUrl: z.ZodString;
405
+ refreshUrl: z.ZodOptional<z.ZodString>;
147
406
  scopes: z.ZodRecord<z.ZodString, z.ZodString>;
148
- }, z.core.$strip>>;
407
+ }, "strip", z.ZodTypeAny, {
408
+ tokenUrl: string;
409
+ scopes: Record<string, string>;
410
+ refreshUrl?: string | undefined;
411
+ }, {
412
+ tokenUrl: string;
413
+ scopes: Record<string, string>;
414
+ refreshUrl?: string | undefined;
415
+ }>>;
149
416
  implicit: z.ZodOptional<z.ZodObject<{
150
- authorizationUrl: z.ZodURL;
151
- refreshUrl: z.ZodOptional<z.ZodURL>;
417
+ authorizationUrl: z.ZodString;
418
+ refreshUrl: z.ZodOptional<z.ZodString>;
152
419
  scopes: z.ZodRecord<z.ZodString, z.ZodString>;
153
- }, z.core.$strip>>;
420
+ }, "strip", z.ZodTypeAny, {
421
+ authorizationUrl: string;
422
+ scopes: Record<string, string>;
423
+ refreshUrl?: string | undefined;
424
+ }, {
425
+ authorizationUrl: string;
426
+ scopes: Record<string, string>;
427
+ refreshUrl?: string | undefined;
428
+ }>>;
154
429
  password: z.ZodOptional<z.ZodObject<{
155
- tokenUrl: z.ZodURL;
156
- refreshUrl: z.ZodOptional<z.ZodURL>;
430
+ tokenUrl: z.ZodString;
431
+ refreshUrl: z.ZodOptional<z.ZodString>;
157
432
  scopes: z.ZodRecord<z.ZodString, z.ZodString>;
158
- }, z.core.$strip>>;
159
- }, z.core.$strip>;
160
- oauth2MetadataUrl: z.ZodOptional<z.ZodURL>;
161
- }, z.core.$strip>, z.ZodObject<{
162
- description: z.ZodOptional<z.ZodString>;
163
- type: z.ZodEnum<{
164
- apiKey: "apiKey";
165
- http: "http";
166
- mutualTLS: "mutualTLS";
167
- oauth2: "oauth2";
168
- openIdConnect: "openIdConnect";
433
+ }, "strip", z.ZodTypeAny, {
434
+ tokenUrl: string;
435
+ scopes: Record<string, string>;
436
+ refreshUrl?: string | undefined;
437
+ }, {
438
+ tokenUrl: string;
439
+ scopes: Record<string, string>;
440
+ refreshUrl?: string | undefined;
441
+ }>>;
442
+ }, "strip", z.ZodTypeAny, {
443
+ authorizationCode?: {
444
+ authorizationUrl: string;
445
+ tokenUrl: string;
446
+ scopes: Record<string, string>;
447
+ refreshUrl?: string | undefined;
448
+ } | undefined;
449
+ clientCredentials?: {
450
+ tokenUrl: string;
451
+ scopes: Record<string, string>;
452
+ refreshUrl?: string | undefined;
453
+ } | undefined;
454
+ implicit?: {
455
+ authorizationUrl: string;
456
+ scopes: Record<string, string>;
457
+ refreshUrl?: string | undefined;
458
+ } | undefined;
459
+ password?: {
460
+ tokenUrl: string;
461
+ scopes: Record<string, string>;
462
+ refreshUrl?: string | undefined;
463
+ } | undefined;
464
+ }, {
465
+ authorizationCode?: {
466
+ authorizationUrl: string;
467
+ tokenUrl: string;
468
+ scopes: Record<string, string>;
469
+ refreshUrl?: string | undefined;
470
+ } | undefined;
471
+ clientCredentials?: {
472
+ tokenUrl: string;
473
+ scopes: Record<string, string>;
474
+ refreshUrl?: string | undefined;
475
+ } | undefined;
476
+ implicit?: {
477
+ authorizationUrl: string;
478
+ scopes: Record<string, string>;
479
+ refreshUrl?: string | undefined;
480
+ } | undefined;
481
+ password?: {
482
+ tokenUrl: string;
483
+ scopes: Record<string, string>;
484
+ refreshUrl?: string | undefined;
485
+ } | undefined;
169
486
  }>;
487
+ oauth2MetadataUrl: z.ZodOptional<z.ZodString>;
488
+ }, "strip", z.ZodTypeAny, {
489
+ type: "oauth2";
490
+ flows: {
491
+ authorizationCode?: {
492
+ authorizationUrl: string;
493
+ tokenUrl: string;
494
+ scopes: Record<string, string>;
495
+ refreshUrl?: string | undefined;
496
+ } | undefined;
497
+ clientCredentials?: {
498
+ tokenUrl: string;
499
+ scopes: Record<string, string>;
500
+ refreshUrl?: string | undefined;
501
+ } | undefined;
502
+ implicit?: {
503
+ authorizationUrl: string;
504
+ scopes: Record<string, string>;
505
+ refreshUrl?: string | undefined;
506
+ } | undefined;
507
+ password?: {
508
+ tokenUrl: string;
509
+ scopes: Record<string, string>;
510
+ refreshUrl?: string | undefined;
511
+ } | undefined;
512
+ };
513
+ description?: string | undefined;
514
+ oauth2MetadataUrl?: string | undefined;
515
+ }, {
516
+ type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
517
+ flows: {
518
+ authorizationCode?: {
519
+ authorizationUrl: string;
520
+ tokenUrl: string;
521
+ scopes: Record<string, string>;
522
+ refreshUrl?: string | undefined;
523
+ } | undefined;
524
+ clientCredentials?: {
525
+ tokenUrl: string;
526
+ scopes: Record<string, string>;
527
+ refreshUrl?: string | undefined;
528
+ } | undefined;
529
+ implicit?: {
530
+ authorizationUrl: string;
531
+ scopes: Record<string, string>;
532
+ refreshUrl?: string | undefined;
533
+ } | undefined;
534
+ password?: {
535
+ tokenUrl: string;
536
+ scopes: Record<string, string>;
537
+ refreshUrl?: string | undefined;
538
+ } | undefined;
539
+ };
540
+ description?: string | undefined;
541
+ oauth2MetadataUrl?: string | undefined;
542
+ }>, z.ZodObject<{
543
+ description: z.ZodOptional<z.ZodString>;
544
+ } & {
545
+ type: z.ZodEffects<z.ZodEnum<["apiKey", "http", "mutualTLS", "oauth2", "openIdConnect"]>, "openIdConnect", "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect">;
170
546
  openIdConnectUrl: z.ZodString;
171
- }, z.core.$strip>, z.ZodObject<{
547
+ }, "strip", z.ZodTypeAny, {
548
+ type: "openIdConnect";
549
+ openIdConnectUrl: string;
550
+ description?: string | undefined;
551
+ }, {
552
+ type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
553
+ openIdConnectUrl: string;
554
+ description?: string | undefined;
555
+ }>, z.ZodObject<{
172
556
  description: z.ZodOptional<z.ZodString>;
173
- type: z.ZodEnum<{
174
- apiKey: "apiKey";
175
- http: "http";
176
- mutualTLS: "mutualTLS";
177
- oauth2: "oauth2";
178
- openIdConnect: "openIdConnect";
179
- }>;
180
- }, z.core.$strip>]>>>;
181
- security: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>>;
182
- defaultInputModes: z.ZodArray<z.ZodString>;
183
- defaultOutputModes: z.ZodArray<z.ZodString>;
557
+ } & {
558
+ type: z.ZodEffects<z.ZodEnum<["apiKey", "http", "mutualTLS", "oauth2", "openIdConnect"]>, "mutualTLS", "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect">;
559
+ }, "strip", z.ZodTypeAny, {
560
+ type: "mutualTLS";
561
+ description?: string | undefined;
562
+ }, {
563
+ type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
564
+ description?: string | undefined;
565
+ }>]>>>;
566
+ /**
567
+ * @optional Security requirements for contacting the agent.
568
+ * Array of security requirement objects, where each object maps scheme names to scope arrays.
569
+ */
570
+ security: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>, "many">>;
571
+ /**
572
+ * @required The default input modes supported by the agent.
573
+ */
574
+ defaultInputModes: z.ZodArray<z.ZodString, "many">;
575
+ /**
576
+ * @required The default output modes supported by the agent.
577
+ */
578
+ defaultOutputModes: z.ZodArray<z.ZodString, "many">;
579
+ /**
580
+ * @required List of specific skills offered by the agent.
581
+ */
184
582
  skills: z.ZodArray<z.ZodObject<{
583
+ /**
584
+ * @required Unique identifier for the skill.
585
+ */
185
586
  id: z.ZodString;
587
+ /**
588
+ * @required Human-readable name of the skill.
589
+ */
186
590
  name: z.ZodString;
591
+ /**
592
+ * @required Description of the skill.
593
+ */
187
594
  description: z.ZodString;
188
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
189
- examples: z.ZodOptional<z.ZodArray<z.ZodString>>;
190
- inputModes: z.ZodOptional<z.ZodArray<z.ZodString>>;
191
- outputModes: z.ZodOptional<z.ZodArray<z.ZodString>>;
192
- security: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>>;
193
- }, z.core.$strip>>;
595
+ /**
596
+ * @required List of tags associated with the skill for categorization.
597
+ */
598
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
599
+ /**
600
+ * @optional List of example inputs or use cases for the skill.
601
+ */
602
+ examples: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
603
+ /**
604
+ * @optional List of input modes supported by this skill.
605
+ */
606
+ inputModes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
607
+ /**
608
+ * @optional List of output modes supported by this skill.
609
+ */
610
+ outputModes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
611
+ /**
612
+ * @optional Security schemes necessary for the agent to leverage this skill.
613
+ */
614
+ security: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>, "many">>;
615
+ }, "strip", z.ZodTypeAny, {
616
+ description: string;
617
+ name: string;
618
+ id: string;
619
+ tags?: string[] | undefined;
620
+ examples?: string[] | undefined;
621
+ inputModes?: string[] | undefined;
622
+ outputModes?: string[] | undefined;
623
+ security?: Record<string, string[]>[] | undefined;
624
+ }, {
625
+ description: string;
626
+ name: string;
627
+ id: string;
628
+ tags?: string[] | undefined;
629
+ examples?: string[] | undefined;
630
+ inputModes?: string[] | undefined;
631
+ outputModes?: string[] | undefined;
632
+ security?: Record<string, string[]>[] | undefined;
633
+ }>, "many">;
634
+ /**
635
+ * @optional True if the agent supports providing an extended agent card when the user is authenticated.
636
+ */
194
637
  supportsAuthenticatedExtendedCard: z.ZodOptional<z.ZodBoolean>;
638
+ /**
639
+ * @optional JSON Web Signatures computed for this AgentCard.
640
+ */
195
641
  signatures: z.ZodOptional<z.ZodArray<z.ZodObject<{
642
+ /**
643
+ * @required The protected JWS header for the signature.
644
+ */
196
645
  protected: z.ZodString;
646
+ /**
647
+ * @required The computed signature, Base64url-encoded.
648
+ */
197
649
  signature: z.ZodString;
650
+ /**
651
+ * @optional The unprotected JWS header values.
652
+ */
198
653
  header: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
199
- }, z.core.$strip>>>;
200
- }, z.core.$strip>;
654
+ }, "strip", z.ZodTypeAny, {
655
+ protected: string;
656
+ signature: string;
657
+ header?: Record<string, unknown> | undefined;
658
+ }, {
659
+ protected: string;
660
+ signature: string;
661
+ header?: Record<string, unknown> | undefined;
662
+ }>, "many">>;
663
+ }, "strip", z.ZodTypeAny, {
664
+ description: string;
665
+ name: string;
666
+ url: string;
667
+ protocolVersion: string;
668
+ version: string;
669
+ capabilities: {
670
+ extensions?: {
671
+ uri: string;
672
+ params?: Record<string, unknown> | undefined;
673
+ description?: string | undefined;
674
+ required?: boolean | undefined;
675
+ }[] | undefined;
676
+ streaming?: boolean | undefined;
677
+ pushNotifications?: boolean | undefined;
678
+ stateTransitionHistory?: boolean | undefined;
679
+ };
680
+ defaultInputModes: string[];
681
+ defaultOutputModes: string[];
682
+ skills: {
683
+ description: string;
684
+ name: string;
685
+ id: string;
686
+ tags?: string[] | undefined;
687
+ examples?: string[] | undefined;
688
+ inputModes?: string[] | undefined;
689
+ outputModes?: string[] | undefined;
690
+ security?: Record<string, string[]>[] | undefined;
691
+ }[];
692
+ security?: Record<string, string[]>[] | undefined;
693
+ preferredTransport?: string | undefined;
694
+ additionalInterfaces?: {
695
+ url: string;
696
+ transport: string;
697
+ }[] | undefined;
698
+ iconUrl?: string | undefined;
699
+ provider?: {
700
+ url: string;
701
+ organization: string;
702
+ } | undefined;
703
+ documentationUrl?: string | undefined;
704
+ securitySchemes?: Record<string, {
705
+ type: "apiKey";
706
+ in: "query" | "header" | "cookie";
707
+ name: string;
708
+ description?: string | undefined;
709
+ } | {
710
+ type: "http";
711
+ scheme: string;
712
+ description?: string | undefined;
713
+ bearerFormat?: string | undefined;
714
+ } | {
715
+ type: "oauth2";
716
+ flows: {
717
+ authorizationCode?: {
718
+ authorizationUrl: string;
719
+ tokenUrl: string;
720
+ scopes: Record<string, string>;
721
+ refreshUrl?: string | undefined;
722
+ } | undefined;
723
+ clientCredentials?: {
724
+ tokenUrl: string;
725
+ scopes: Record<string, string>;
726
+ refreshUrl?: string | undefined;
727
+ } | undefined;
728
+ implicit?: {
729
+ authorizationUrl: string;
730
+ scopes: Record<string, string>;
731
+ refreshUrl?: string | undefined;
732
+ } | undefined;
733
+ password?: {
734
+ tokenUrl: string;
735
+ scopes: Record<string, string>;
736
+ refreshUrl?: string | undefined;
737
+ } | undefined;
738
+ };
739
+ description?: string | undefined;
740
+ oauth2MetadataUrl?: string | undefined;
741
+ } | {
742
+ type: "openIdConnect";
743
+ openIdConnectUrl: string;
744
+ description?: string | undefined;
745
+ } | {
746
+ type: "mutualTLS";
747
+ description?: string | undefined;
748
+ }> | undefined;
749
+ supportsAuthenticatedExtendedCard?: boolean | undefined;
750
+ signatures?: {
751
+ protected: string;
752
+ signature: string;
753
+ header?: Record<string, unknown> | undefined;
754
+ }[] | undefined;
755
+ }, {
756
+ description: string;
757
+ name: string;
758
+ url: string;
759
+ version: string;
760
+ capabilities: {
761
+ extensions?: {
762
+ uri: string;
763
+ params?: Record<string, unknown> | undefined;
764
+ description?: string | undefined;
765
+ required?: boolean | undefined;
766
+ }[] | undefined;
767
+ streaming?: boolean | undefined;
768
+ pushNotifications?: boolean | undefined;
769
+ stateTransitionHistory?: boolean | undefined;
770
+ };
771
+ defaultInputModes: string[];
772
+ defaultOutputModes: string[];
773
+ skills: {
774
+ description: string;
775
+ name: string;
776
+ id: string;
777
+ tags?: string[] | undefined;
778
+ examples?: string[] | undefined;
779
+ inputModes?: string[] | undefined;
780
+ outputModes?: string[] | undefined;
781
+ security?: Record<string, string[]>[] | undefined;
782
+ }[];
783
+ security?: Record<string, string[]>[] | undefined;
784
+ protocolVersion?: string | undefined;
785
+ preferredTransport?: string | undefined;
786
+ additionalInterfaces?: {
787
+ url: string;
788
+ transport: string;
789
+ }[] | undefined;
790
+ iconUrl?: string | undefined;
791
+ provider?: {
792
+ url: string;
793
+ organization: string;
794
+ } | undefined;
795
+ documentationUrl?: string | undefined;
796
+ securitySchemes?: Record<string, {
797
+ type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
798
+ in: "query" | "header" | "cookie";
799
+ name: string;
800
+ description?: string | undefined;
801
+ } | {
802
+ type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
803
+ scheme: string;
804
+ description?: string | undefined;
805
+ bearerFormat?: string | undefined;
806
+ } | {
807
+ type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
808
+ flows: {
809
+ authorizationCode?: {
810
+ authorizationUrl: string;
811
+ tokenUrl: string;
812
+ scopes: Record<string, string>;
813
+ refreshUrl?: string | undefined;
814
+ } | undefined;
815
+ clientCredentials?: {
816
+ tokenUrl: string;
817
+ scopes: Record<string, string>;
818
+ refreshUrl?: string | undefined;
819
+ } | undefined;
820
+ implicit?: {
821
+ authorizationUrl: string;
822
+ scopes: Record<string, string>;
823
+ refreshUrl?: string | undefined;
824
+ } | undefined;
825
+ password?: {
826
+ tokenUrl: string;
827
+ scopes: Record<string, string>;
828
+ refreshUrl?: string | undefined;
829
+ } | undefined;
830
+ };
831
+ description?: string | undefined;
832
+ oauth2MetadataUrl?: string | undefined;
833
+ } | {
834
+ type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
835
+ openIdConnectUrl: string;
836
+ description?: string | undefined;
837
+ } | {
838
+ type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
839
+ description?: string | undefined;
840
+ }> | undefined;
841
+ supportsAuthenticatedExtendedCard?: boolean | undefined;
842
+ signatures?: {
843
+ protected: string;
844
+ signature: string;
845
+ header?: Record<string, unknown> | undefined;
846
+ }[] | undefined;
847
+ }>;
201
848
  export type AgentCard = z.infer<typeof AgentCardSchema>;
202
849
  /**
203
850
  * @description Request to get an authenticated extended card.
204
851
  */
205
852
  export declare const GetAuthenticatedExtendedCardRequestSchema: z.ZodObject<{
206
853
  jsonrpc: z.ZodLiteral<"2.0">;
207
- id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
854
+ id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
855
+ } & {
208
856
  method: z.ZodLiteral<"agent/getAuthenticatedExtendedCard">;
209
857
  params: z.ZodOptional<z.ZodNever>;
210
- }, z.core.$strip>;
858
+ }, "strip", z.ZodTypeAny, {
859
+ jsonrpc: "2.0";
860
+ id: string | number;
861
+ method: "agent/getAuthenticatedExtendedCard";
862
+ params?: undefined;
863
+ }, {
864
+ jsonrpc: "2.0";
865
+ id: string | number;
866
+ method: "agent/getAuthenticatedExtendedCard";
867
+ params?: undefined;
868
+ }>;
211
869
  export type GetAuthenticatedExtendedCardRequest = z.infer<typeof GetAuthenticatedExtendedCardRequestSchema>;
212
870
  /**
213
871
  * @description JSON-RPC success response model for the 'agent/getAuthenticatedExtendedCard' method.
214
872
  */
215
873
  export declare const GetAuthenticatedExtendedCardSuccessResponseSchema: z.ZodObject<{
216
874
  jsonrpc: z.ZodLiteral<"2.0">;
217
- id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
875
+ id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
218
876
  error: z.ZodOptional<z.ZodNever>;
877
+ } & {
219
878
  result: z.ZodObject<{
879
+ /**
880
+ * @required The version of the A2A protocol this agent supports.
881
+ */
220
882
  protocolVersion: z.ZodDefault<z.ZodString>;
883
+ /**
884
+ * @required Human readable name of the agent.
885
+ */
221
886
  name: z.ZodString;
887
+ /**
888
+ * @required A human-readable description of the agent.
889
+ */
222
890
  description: z.ZodString;
223
- url: z.ZodURL;
224
- preferredTransport: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
225
- JSONRPC: "JSONRPC";
226
- GRPC: "GRPC";
227
- "HTTP+JSON": "HTTP+JSON";
228
- }>, z.ZodString]>>;
891
+ /**
892
+ * @required The preferred endpoint URL for interacting with the agent.
893
+ */
894
+ url: z.ZodString;
895
+ /**
896
+ * @optional The transport protocol for the preferred endpoint.
897
+ */
898
+ preferredTransport: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["JSONRPC", "GRPC", "HTTP+JSON"]>, z.ZodString]>>;
899
+ /**
900
+ * @optional Additional supported interfaces (transport and URL combinations).
901
+ */
229
902
  additionalInterfaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
230
- url: z.ZodURL;
231
- transport: z.ZodUnion<readonly [z.ZodEnum<{
232
- JSONRPC: "JSONRPC";
233
- GRPC: "GRPC";
234
- "HTTP+JSON": "HTTP+JSON";
235
- }>, z.ZodString]>;
236
- }, z.core.$strip>>>;
237
- iconUrl: z.ZodOptional<z.ZodURL>;
903
+ url: z.ZodString;
904
+ transport: z.ZodUnion<[z.ZodEnum<["JSONRPC", "GRPC", "HTTP+JSON"]>, z.ZodString]>;
905
+ }, "strip", z.ZodTypeAny, {
906
+ url: string;
907
+ transport: string;
908
+ }, {
909
+ url: string;
910
+ transport: string;
911
+ }>, "many">>;
912
+ /**
913
+ * @optional The URL of the agent's icon.
914
+ */
915
+ iconUrl: z.ZodOptional<z.ZodString>;
916
+ /**
917
+ * @optional The service provider of the agent.
918
+ */
238
919
  provider: z.ZodOptional<z.ZodObject<{
920
+ /**
921
+ * @required The name of the organization providing the agent.
922
+ */
239
923
  organization: z.ZodString;
240
- url: z.ZodURL;
241
- }, z.core.$strip>>;
924
+ /**
925
+ * @required URL associated with the agent provider.
926
+ */
927
+ url: z.ZodString;
928
+ }, "strip", z.ZodTypeAny, {
929
+ url: string;
930
+ organization: string;
931
+ }, {
932
+ url: string;
933
+ organization: string;
934
+ }>>;
935
+ /**
936
+ * @required The version identifier for the agent or its API.
937
+ */
242
938
  version: z.ZodString;
243
- documentationUrl: z.ZodOptional<z.ZodURL>;
939
+ /**
940
+ * @optional An optional URL pointing to the agent's documentation.
941
+ */
942
+ documentationUrl: z.ZodOptional<z.ZodString>;
943
+ /**
944
+ * @required The capabilities supported by the agent.
945
+ */
244
946
  capabilities: z.ZodObject<{
947
+ /**
948
+ * @optional Indicates if the agent supports streaming responses.
949
+ */
245
950
  streaming: z.ZodOptional<z.ZodBoolean>;
951
+ /**
952
+ * @optional Indicates if the agent supports push notification mechanisms.
953
+ */
246
954
  pushNotifications: z.ZodOptional<z.ZodBoolean>;
955
+ /**
956
+ * @optional Indicates if the agent supports providing state transition history.
957
+ */
247
958
  stateTransitionHistory: z.ZodOptional<z.ZodBoolean>;
959
+ /**
960
+ * @optional Extensions supported by this agent.
961
+ */
248
962
  extensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
963
+ /**
964
+ * @required The URI of the extension.
965
+ */
249
966
  uri: z.ZodString;
967
+ /**
968
+ * @optional A description of how this agent uses this extension.
969
+ */
250
970
  description: z.ZodOptional<z.ZodString>;
971
+ /**
972
+ * @optional Whether the client must follow specific requirements of the extension.
973
+ */
251
974
  required: z.ZodOptional<z.ZodBoolean>;
975
+ /**
976
+ * @optional Optional configuration for the extension.
977
+ */
252
978
  params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
253
- }, z.core.$strip>>>;
254
- }, z.core.$strip>;
255
- securitySchemes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
979
+ }, "strip", z.ZodTypeAny, {
980
+ uri: string;
981
+ params?: Record<string, unknown> | undefined;
982
+ description?: string | undefined;
983
+ required?: boolean | undefined;
984
+ }, {
985
+ uri: string;
986
+ params?: Record<string, unknown> | undefined;
987
+ description?: string | undefined;
988
+ required?: boolean | undefined;
989
+ }>, "many">>;
990
+ }, "strip", z.ZodTypeAny, {
991
+ extensions?: {
992
+ uri: string;
993
+ params?: Record<string, unknown> | undefined;
994
+ description?: string | undefined;
995
+ required?: boolean | undefined;
996
+ }[] | undefined;
997
+ streaming?: boolean | undefined;
998
+ pushNotifications?: boolean | undefined;
999
+ stateTransitionHistory?: boolean | undefined;
1000
+ }, {
1001
+ extensions?: {
1002
+ uri: string;
1003
+ params?: Record<string, unknown> | undefined;
1004
+ description?: string | undefined;
1005
+ required?: boolean | undefined;
1006
+ }[] | undefined;
1007
+ streaming?: boolean | undefined;
1008
+ pushNotifications?: boolean | undefined;
1009
+ stateTransitionHistory?: boolean | undefined;
1010
+ }>;
1011
+ /**
1012
+ * @optional Security scheme details used for authenticating with this agent.
1013
+ * Maps scheme names to their configurations.
1014
+ */
1015
+ securitySchemes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
256
1016
  description: z.ZodOptional<z.ZodString>;
257
- type: z.ZodEnum<{
258
- apiKey: "apiKey";
259
- http: "http";
260
- mutualTLS: "mutualTLS";
261
- oauth2: "oauth2";
262
- openIdConnect: "openIdConnect";
263
- }>;
264
- in: z.ZodEnum<{
265
- query: "query";
266
- header: "header";
267
- cookie: "cookie";
268
- }>;
1017
+ } & {
1018
+ type: z.ZodEffects<z.ZodEnum<["apiKey", "http", "mutualTLS", "oauth2", "openIdConnect"]>, "apiKey", "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect">;
1019
+ in: z.ZodEnum<["query", "header", "cookie"]>;
269
1020
  name: z.ZodString;
270
- }, z.core.$strip>, z.ZodObject<{
1021
+ }, "strip", z.ZodTypeAny, {
1022
+ type: "apiKey";
1023
+ in: "query" | "header" | "cookie";
1024
+ name: string;
1025
+ description?: string | undefined;
1026
+ }, {
1027
+ type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
1028
+ in: "query" | "header" | "cookie";
1029
+ name: string;
1030
+ description?: string | undefined;
1031
+ }>, z.ZodObject<{
271
1032
  description: z.ZodOptional<z.ZodString>;
272
- type: z.ZodEnum<{
273
- apiKey: "apiKey";
274
- http: "http";
275
- mutualTLS: "mutualTLS";
276
- oauth2: "oauth2";
277
- openIdConnect: "openIdConnect";
278
- }>;
1033
+ } & {
1034
+ type: z.ZodEffects<z.ZodEnum<["apiKey", "http", "mutualTLS", "oauth2", "openIdConnect"]>, "http", "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect">;
279
1035
  scheme: z.ZodString;
280
1036
  bearerFormat: z.ZodOptional<z.ZodString>;
281
- }, z.core.$strip>, z.ZodObject<{
1037
+ }, "strip", z.ZodTypeAny, {
1038
+ type: "http";
1039
+ scheme: string;
1040
+ description?: string | undefined;
1041
+ bearerFormat?: string | undefined;
1042
+ }, {
1043
+ type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
1044
+ scheme: string;
1045
+ description?: string | undefined;
1046
+ bearerFormat?: string | undefined;
1047
+ }>, z.ZodObject<{
282
1048
  description: z.ZodOptional<z.ZodString>;
283
- type: z.ZodEnum<{
284
- apiKey: "apiKey";
285
- http: "http";
286
- mutualTLS: "mutualTLS";
287
- oauth2: "oauth2";
288
- openIdConnect: "openIdConnect";
289
- }>;
1049
+ } & {
1050
+ type: z.ZodEffects<z.ZodEnum<["apiKey", "http", "mutualTLS", "oauth2", "openIdConnect"]>, "oauth2", "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect">;
290
1051
  flows: z.ZodObject<{
291
1052
  authorizationCode: z.ZodOptional<z.ZodObject<{
292
- authorizationUrl: z.ZodURL;
293
- tokenUrl: z.ZodURL;
294
- refreshUrl: z.ZodOptional<z.ZodURL>;
1053
+ authorizationUrl: z.ZodString;
1054
+ tokenUrl: z.ZodString;
1055
+ refreshUrl: z.ZodOptional<z.ZodString>;
295
1056
  scopes: z.ZodRecord<z.ZodString, z.ZodString>;
296
- }, z.core.$strip>>;
1057
+ }, "strip", z.ZodTypeAny, {
1058
+ authorizationUrl: string;
1059
+ tokenUrl: string;
1060
+ scopes: Record<string, string>;
1061
+ refreshUrl?: string | undefined;
1062
+ }, {
1063
+ authorizationUrl: string;
1064
+ tokenUrl: string;
1065
+ scopes: Record<string, string>;
1066
+ refreshUrl?: string | undefined;
1067
+ }>>;
297
1068
  clientCredentials: z.ZodOptional<z.ZodObject<{
298
- tokenUrl: z.ZodURL;
299
- refreshUrl: z.ZodOptional<z.ZodURL>;
1069
+ tokenUrl: z.ZodString;
1070
+ refreshUrl: z.ZodOptional<z.ZodString>;
300
1071
  scopes: z.ZodRecord<z.ZodString, z.ZodString>;
301
- }, z.core.$strip>>;
1072
+ }, "strip", z.ZodTypeAny, {
1073
+ tokenUrl: string;
1074
+ scopes: Record<string, string>;
1075
+ refreshUrl?: string | undefined;
1076
+ }, {
1077
+ tokenUrl: string;
1078
+ scopes: Record<string, string>;
1079
+ refreshUrl?: string | undefined;
1080
+ }>>;
302
1081
  implicit: z.ZodOptional<z.ZodObject<{
303
- authorizationUrl: z.ZodURL;
304
- refreshUrl: z.ZodOptional<z.ZodURL>;
1082
+ authorizationUrl: z.ZodString;
1083
+ refreshUrl: z.ZodOptional<z.ZodString>;
305
1084
  scopes: z.ZodRecord<z.ZodString, z.ZodString>;
306
- }, z.core.$strip>>;
1085
+ }, "strip", z.ZodTypeAny, {
1086
+ authorizationUrl: string;
1087
+ scopes: Record<string, string>;
1088
+ refreshUrl?: string | undefined;
1089
+ }, {
1090
+ authorizationUrl: string;
1091
+ scopes: Record<string, string>;
1092
+ refreshUrl?: string | undefined;
1093
+ }>>;
307
1094
  password: z.ZodOptional<z.ZodObject<{
308
- tokenUrl: z.ZodURL;
309
- refreshUrl: z.ZodOptional<z.ZodURL>;
1095
+ tokenUrl: z.ZodString;
1096
+ refreshUrl: z.ZodOptional<z.ZodString>;
310
1097
  scopes: z.ZodRecord<z.ZodString, z.ZodString>;
311
- }, z.core.$strip>>;
312
- }, z.core.$strip>;
313
- oauth2MetadataUrl: z.ZodOptional<z.ZodURL>;
314
- }, z.core.$strip>, z.ZodObject<{
315
- description: z.ZodOptional<z.ZodString>;
316
- type: z.ZodEnum<{
317
- apiKey: "apiKey";
318
- http: "http";
319
- mutualTLS: "mutualTLS";
320
- oauth2: "oauth2";
321
- openIdConnect: "openIdConnect";
1098
+ }, "strip", z.ZodTypeAny, {
1099
+ tokenUrl: string;
1100
+ scopes: Record<string, string>;
1101
+ refreshUrl?: string | undefined;
1102
+ }, {
1103
+ tokenUrl: string;
1104
+ scopes: Record<string, string>;
1105
+ refreshUrl?: string | undefined;
1106
+ }>>;
1107
+ }, "strip", z.ZodTypeAny, {
1108
+ authorizationCode?: {
1109
+ authorizationUrl: string;
1110
+ tokenUrl: string;
1111
+ scopes: Record<string, string>;
1112
+ refreshUrl?: string | undefined;
1113
+ } | undefined;
1114
+ clientCredentials?: {
1115
+ tokenUrl: string;
1116
+ scopes: Record<string, string>;
1117
+ refreshUrl?: string | undefined;
1118
+ } | undefined;
1119
+ implicit?: {
1120
+ authorizationUrl: string;
1121
+ scopes: Record<string, string>;
1122
+ refreshUrl?: string | undefined;
1123
+ } | undefined;
1124
+ password?: {
1125
+ tokenUrl: string;
1126
+ scopes: Record<string, string>;
1127
+ refreshUrl?: string | undefined;
1128
+ } | undefined;
1129
+ }, {
1130
+ authorizationCode?: {
1131
+ authorizationUrl: string;
1132
+ tokenUrl: string;
1133
+ scopes: Record<string, string>;
1134
+ refreshUrl?: string | undefined;
1135
+ } | undefined;
1136
+ clientCredentials?: {
1137
+ tokenUrl: string;
1138
+ scopes: Record<string, string>;
1139
+ refreshUrl?: string | undefined;
1140
+ } | undefined;
1141
+ implicit?: {
1142
+ authorizationUrl: string;
1143
+ scopes: Record<string, string>;
1144
+ refreshUrl?: string | undefined;
1145
+ } | undefined;
1146
+ password?: {
1147
+ tokenUrl: string;
1148
+ scopes: Record<string, string>;
1149
+ refreshUrl?: string | undefined;
1150
+ } | undefined;
322
1151
  }>;
1152
+ oauth2MetadataUrl: z.ZodOptional<z.ZodString>;
1153
+ }, "strip", z.ZodTypeAny, {
1154
+ type: "oauth2";
1155
+ flows: {
1156
+ authorizationCode?: {
1157
+ authorizationUrl: string;
1158
+ tokenUrl: string;
1159
+ scopes: Record<string, string>;
1160
+ refreshUrl?: string | undefined;
1161
+ } | undefined;
1162
+ clientCredentials?: {
1163
+ tokenUrl: string;
1164
+ scopes: Record<string, string>;
1165
+ refreshUrl?: string | undefined;
1166
+ } | undefined;
1167
+ implicit?: {
1168
+ authorizationUrl: string;
1169
+ scopes: Record<string, string>;
1170
+ refreshUrl?: string | undefined;
1171
+ } | undefined;
1172
+ password?: {
1173
+ tokenUrl: string;
1174
+ scopes: Record<string, string>;
1175
+ refreshUrl?: string | undefined;
1176
+ } | undefined;
1177
+ };
1178
+ description?: string | undefined;
1179
+ oauth2MetadataUrl?: string | undefined;
1180
+ }, {
1181
+ type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
1182
+ flows: {
1183
+ authorizationCode?: {
1184
+ authorizationUrl: string;
1185
+ tokenUrl: string;
1186
+ scopes: Record<string, string>;
1187
+ refreshUrl?: string | undefined;
1188
+ } | undefined;
1189
+ clientCredentials?: {
1190
+ tokenUrl: string;
1191
+ scopes: Record<string, string>;
1192
+ refreshUrl?: string | undefined;
1193
+ } | undefined;
1194
+ implicit?: {
1195
+ authorizationUrl: string;
1196
+ scopes: Record<string, string>;
1197
+ refreshUrl?: string | undefined;
1198
+ } | undefined;
1199
+ password?: {
1200
+ tokenUrl: string;
1201
+ scopes: Record<string, string>;
1202
+ refreshUrl?: string | undefined;
1203
+ } | undefined;
1204
+ };
1205
+ description?: string | undefined;
1206
+ oauth2MetadataUrl?: string | undefined;
1207
+ }>, z.ZodObject<{
1208
+ description: z.ZodOptional<z.ZodString>;
1209
+ } & {
1210
+ type: z.ZodEffects<z.ZodEnum<["apiKey", "http", "mutualTLS", "oauth2", "openIdConnect"]>, "openIdConnect", "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect">;
323
1211
  openIdConnectUrl: z.ZodString;
324
- }, z.core.$strip>, z.ZodObject<{
1212
+ }, "strip", z.ZodTypeAny, {
1213
+ type: "openIdConnect";
1214
+ openIdConnectUrl: string;
1215
+ description?: string | undefined;
1216
+ }, {
1217
+ type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
1218
+ openIdConnectUrl: string;
1219
+ description?: string | undefined;
1220
+ }>, z.ZodObject<{
325
1221
  description: z.ZodOptional<z.ZodString>;
326
- type: z.ZodEnum<{
327
- apiKey: "apiKey";
328
- http: "http";
329
- mutualTLS: "mutualTLS";
330
- oauth2: "oauth2";
331
- openIdConnect: "openIdConnect";
332
- }>;
333
- }, z.core.$strip>]>>>;
334
- security: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>>;
335
- defaultInputModes: z.ZodArray<z.ZodString>;
336
- defaultOutputModes: z.ZodArray<z.ZodString>;
1222
+ } & {
1223
+ type: z.ZodEffects<z.ZodEnum<["apiKey", "http", "mutualTLS", "oauth2", "openIdConnect"]>, "mutualTLS", "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect">;
1224
+ }, "strip", z.ZodTypeAny, {
1225
+ type: "mutualTLS";
1226
+ description?: string | undefined;
1227
+ }, {
1228
+ type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
1229
+ description?: string | undefined;
1230
+ }>]>>>;
1231
+ /**
1232
+ * @optional Security requirements for contacting the agent.
1233
+ * Array of security requirement objects, where each object maps scheme names to scope arrays.
1234
+ */
1235
+ security: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>, "many">>;
1236
+ /**
1237
+ * @required The default input modes supported by the agent.
1238
+ */
1239
+ defaultInputModes: z.ZodArray<z.ZodString, "many">;
1240
+ /**
1241
+ * @required The default output modes supported by the agent.
1242
+ */
1243
+ defaultOutputModes: z.ZodArray<z.ZodString, "many">;
1244
+ /**
1245
+ * @required List of specific skills offered by the agent.
1246
+ */
337
1247
  skills: z.ZodArray<z.ZodObject<{
1248
+ /**
1249
+ * @required Unique identifier for the skill.
1250
+ */
338
1251
  id: z.ZodString;
1252
+ /**
1253
+ * @required Human-readable name of the skill.
1254
+ */
339
1255
  name: z.ZodString;
1256
+ /**
1257
+ * @required Description of the skill.
1258
+ */
340
1259
  description: z.ZodString;
341
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
342
- examples: z.ZodOptional<z.ZodArray<z.ZodString>>;
343
- inputModes: z.ZodOptional<z.ZodArray<z.ZodString>>;
344
- outputModes: z.ZodOptional<z.ZodArray<z.ZodString>>;
345
- security: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>>;
346
- }, z.core.$strip>>;
1260
+ /**
1261
+ * @required List of tags associated with the skill for categorization.
1262
+ */
1263
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1264
+ /**
1265
+ * @optional List of example inputs or use cases for the skill.
1266
+ */
1267
+ examples: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1268
+ /**
1269
+ * @optional List of input modes supported by this skill.
1270
+ */
1271
+ inputModes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1272
+ /**
1273
+ * @optional List of output modes supported by this skill.
1274
+ */
1275
+ outputModes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1276
+ /**
1277
+ * @optional Security schemes necessary for the agent to leverage this skill.
1278
+ */
1279
+ security: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>, "many">>;
1280
+ }, "strip", z.ZodTypeAny, {
1281
+ description: string;
1282
+ name: string;
1283
+ id: string;
1284
+ tags?: string[] | undefined;
1285
+ examples?: string[] | undefined;
1286
+ inputModes?: string[] | undefined;
1287
+ outputModes?: string[] | undefined;
1288
+ security?: Record<string, string[]>[] | undefined;
1289
+ }, {
1290
+ description: string;
1291
+ name: string;
1292
+ id: string;
1293
+ tags?: string[] | undefined;
1294
+ examples?: string[] | undefined;
1295
+ inputModes?: string[] | undefined;
1296
+ outputModes?: string[] | undefined;
1297
+ security?: Record<string, string[]>[] | undefined;
1298
+ }>, "many">;
1299
+ /**
1300
+ * @optional True if the agent supports providing an extended agent card when the user is authenticated.
1301
+ */
347
1302
  supportsAuthenticatedExtendedCard: z.ZodOptional<z.ZodBoolean>;
1303
+ /**
1304
+ * @optional JSON Web Signatures computed for this AgentCard.
1305
+ */
348
1306
  signatures: z.ZodOptional<z.ZodArray<z.ZodObject<{
1307
+ /**
1308
+ * @required The protected JWS header for the signature.
1309
+ */
349
1310
  protected: z.ZodString;
1311
+ /**
1312
+ * @required The computed signature, Base64url-encoded.
1313
+ */
350
1314
  signature: z.ZodString;
1315
+ /**
1316
+ * @optional The unprotected JWS header values.
1317
+ */
351
1318
  header: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
352
- }, z.core.$strip>>>;
353
- }, z.core.$strip>;
354
- }, z.core.$strip>;
1319
+ }, "strip", z.ZodTypeAny, {
1320
+ protected: string;
1321
+ signature: string;
1322
+ header?: Record<string, unknown> | undefined;
1323
+ }, {
1324
+ protected: string;
1325
+ signature: string;
1326
+ header?: Record<string, unknown> | undefined;
1327
+ }>, "many">>;
1328
+ }, "strip", z.ZodTypeAny, {
1329
+ description: string;
1330
+ name: string;
1331
+ url: string;
1332
+ protocolVersion: string;
1333
+ version: string;
1334
+ capabilities: {
1335
+ extensions?: {
1336
+ uri: string;
1337
+ params?: Record<string, unknown> | undefined;
1338
+ description?: string | undefined;
1339
+ required?: boolean | undefined;
1340
+ }[] | undefined;
1341
+ streaming?: boolean | undefined;
1342
+ pushNotifications?: boolean | undefined;
1343
+ stateTransitionHistory?: boolean | undefined;
1344
+ };
1345
+ defaultInputModes: string[];
1346
+ defaultOutputModes: string[];
1347
+ skills: {
1348
+ description: string;
1349
+ name: string;
1350
+ id: string;
1351
+ tags?: string[] | undefined;
1352
+ examples?: string[] | undefined;
1353
+ inputModes?: string[] | undefined;
1354
+ outputModes?: string[] | undefined;
1355
+ security?: Record<string, string[]>[] | undefined;
1356
+ }[];
1357
+ security?: Record<string, string[]>[] | undefined;
1358
+ preferredTransport?: string | undefined;
1359
+ additionalInterfaces?: {
1360
+ url: string;
1361
+ transport: string;
1362
+ }[] | undefined;
1363
+ iconUrl?: string | undefined;
1364
+ provider?: {
1365
+ url: string;
1366
+ organization: string;
1367
+ } | undefined;
1368
+ documentationUrl?: string | undefined;
1369
+ securitySchemes?: Record<string, {
1370
+ type: "apiKey";
1371
+ in: "query" | "header" | "cookie";
1372
+ name: string;
1373
+ description?: string | undefined;
1374
+ } | {
1375
+ type: "http";
1376
+ scheme: string;
1377
+ description?: string | undefined;
1378
+ bearerFormat?: string | undefined;
1379
+ } | {
1380
+ type: "oauth2";
1381
+ flows: {
1382
+ authorizationCode?: {
1383
+ authorizationUrl: string;
1384
+ tokenUrl: string;
1385
+ scopes: Record<string, string>;
1386
+ refreshUrl?: string | undefined;
1387
+ } | undefined;
1388
+ clientCredentials?: {
1389
+ tokenUrl: string;
1390
+ scopes: Record<string, string>;
1391
+ refreshUrl?: string | undefined;
1392
+ } | undefined;
1393
+ implicit?: {
1394
+ authorizationUrl: string;
1395
+ scopes: Record<string, string>;
1396
+ refreshUrl?: string | undefined;
1397
+ } | undefined;
1398
+ password?: {
1399
+ tokenUrl: string;
1400
+ scopes: Record<string, string>;
1401
+ refreshUrl?: string | undefined;
1402
+ } | undefined;
1403
+ };
1404
+ description?: string | undefined;
1405
+ oauth2MetadataUrl?: string | undefined;
1406
+ } | {
1407
+ type: "openIdConnect";
1408
+ openIdConnectUrl: string;
1409
+ description?: string | undefined;
1410
+ } | {
1411
+ type: "mutualTLS";
1412
+ description?: string | undefined;
1413
+ }> | undefined;
1414
+ supportsAuthenticatedExtendedCard?: boolean | undefined;
1415
+ signatures?: {
1416
+ protected: string;
1417
+ signature: string;
1418
+ header?: Record<string, unknown> | undefined;
1419
+ }[] | undefined;
1420
+ }, {
1421
+ description: string;
1422
+ name: string;
1423
+ url: string;
1424
+ version: string;
1425
+ capabilities: {
1426
+ extensions?: {
1427
+ uri: string;
1428
+ params?: Record<string, unknown> | undefined;
1429
+ description?: string | undefined;
1430
+ required?: boolean | undefined;
1431
+ }[] | undefined;
1432
+ streaming?: boolean | undefined;
1433
+ pushNotifications?: boolean | undefined;
1434
+ stateTransitionHistory?: boolean | undefined;
1435
+ };
1436
+ defaultInputModes: string[];
1437
+ defaultOutputModes: string[];
1438
+ skills: {
1439
+ description: string;
1440
+ name: string;
1441
+ id: string;
1442
+ tags?: string[] | undefined;
1443
+ examples?: string[] | undefined;
1444
+ inputModes?: string[] | undefined;
1445
+ outputModes?: string[] | undefined;
1446
+ security?: Record<string, string[]>[] | undefined;
1447
+ }[];
1448
+ security?: Record<string, string[]>[] | undefined;
1449
+ protocolVersion?: string | undefined;
1450
+ preferredTransport?: string | undefined;
1451
+ additionalInterfaces?: {
1452
+ url: string;
1453
+ transport: string;
1454
+ }[] | undefined;
1455
+ iconUrl?: string | undefined;
1456
+ provider?: {
1457
+ url: string;
1458
+ organization: string;
1459
+ } | undefined;
1460
+ documentationUrl?: string | undefined;
1461
+ securitySchemes?: Record<string, {
1462
+ type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
1463
+ in: "query" | "header" | "cookie";
1464
+ name: string;
1465
+ description?: string | undefined;
1466
+ } | {
1467
+ type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
1468
+ scheme: string;
1469
+ description?: string | undefined;
1470
+ bearerFormat?: string | undefined;
1471
+ } | {
1472
+ type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
1473
+ flows: {
1474
+ authorizationCode?: {
1475
+ authorizationUrl: string;
1476
+ tokenUrl: string;
1477
+ scopes: Record<string, string>;
1478
+ refreshUrl?: string | undefined;
1479
+ } | undefined;
1480
+ clientCredentials?: {
1481
+ tokenUrl: string;
1482
+ scopes: Record<string, string>;
1483
+ refreshUrl?: string | undefined;
1484
+ } | undefined;
1485
+ implicit?: {
1486
+ authorizationUrl: string;
1487
+ scopes: Record<string, string>;
1488
+ refreshUrl?: string | undefined;
1489
+ } | undefined;
1490
+ password?: {
1491
+ tokenUrl: string;
1492
+ scopes: Record<string, string>;
1493
+ refreshUrl?: string | undefined;
1494
+ } | undefined;
1495
+ };
1496
+ description?: string | undefined;
1497
+ oauth2MetadataUrl?: string | undefined;
1498
+ } | {
1499
+ type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
1500
+ openIdConnectUrl: string;
1501
+ description?: string | undefined;
1502
+ } | {
1503
+ type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
1504
+ description?: string | undefined;
1505
+ }> | undefined;
1506
+ supportsAuthenticatedExtendedCard?: boolean | undefined;
1507
+ signatures?: {
1508
+ protected: string;
1509
+ signature: string;
1510
+ header?: Record<string, unknown> | undefined;
1511
+ }[] | undefined;
1512
+ }>;
1513
+ }, "strip", z.ZodTypeAny, {
1514
+ jsonrpc: "2.0";
1515
+ result: {
1516
+ description: string;
1517
+ name: string;
1518
+ url: string;
1519
+ protocolVersion: string;
1520
+ version: string;
1521
+ capabilities: {
1522
+ extensions?: {
1523
+ uri: string;
1524
+ params?: Record<string, unknown> | undefined;
1525
+ description?: string | undefined;
1526
+ required?: boolean | undefined;
1527
+ }[] | undefined;
1528
+ streaming?: boolean | undefined;
1529
+ pushNotifications?: boolean | undefined;
1530
+ stateTransitionHistory?: boolean | undefined;
1531
+ };
1532
+ defaultInputModes: string[];
1533
+ defaultOutputModes: string[];
1534
+ skills: {
1535
+ description: string;
1536
+ name: string;
1537
+ id: string;
1538
+ tags?: string[] | undefined;
1539
+ examples?: string[] | undefined;
1540
+ inputModes?: string[] | undefined;
1541
+ outputModes?: string[] | undefined;
1542
+ security?: Record<string, string[]>[] | undefined;
1543
+ }[];
1544
+ security?: Record<string, string[]>[] | undefined;
1545
+ preferredTransport?: string | undefined;
1546
+ additionalInterfaces?: {
1547
+ url: string;
1548
+ transport: string;
1549
+ }[] | undefined;
1550
+ iconUrl?: string | undefined;
1551
+ provider?: {
1552
+ url: string;
1553
+ organization: string;
1554
+ } | undefined;
1555
+ documentationUrl?: string | undefined;
1556
+ securitySchemes?: Record<string, {
1557
+ type: "apiKey";
1558
+ in: "query" | "header" | "cookie";
1559
+ name: string;
1560
+ description?: string | undefined;
1561
+ } | {
1562
+ type: "http";
1563
+ scheme: string;
1564
+ description?: string | undefined;
1565
+ bearerFormat?: string | undefined;
1566
+ } | {
1567
+ type: "oauth2";
1568
+ flows: {
1569
+ authorizationCode?: {
1570
+ authorizationUrl: string;
1571
+ tokenUrl: string;
1572
+ scopes: Record<string, string>;
1573
+ refreshUrl?: string | undefined;
1574
+ } | undefined;
1575
+ clientCredentials?: {
1576
+ tokenUrl: string;
1577
+ scopes: Record<string, string>;
1578
+ refreshUrl?: string | undefined;
1579
+ } | undefined;
1580
+ implicit?: {
1581
+ authorizationUrl: string;
1582
+ scopes: Record<string, string>;
1583
+ refreshUrl?: string | undefined;
1584
+ } | undefined;
1585
+ password?: {
1586
+ tokenUrl: string;
1587
+ scopes: Record<string, string>;
1588
+ refreshUrl?: string | undefined;
1589
+ } | undefined;
1590
+ };
1591
+ description?: string | undefined;
1592
+ oauth2MetadataUrl?: string | undefined;
1593
+ } | {
1594
+ type: "openIdConnect";
1595
+ openIdConnectUrl: string;
1596
+ description?: string | undefined;
1597
+ } | {
1598
+ type: "mutualTLS";
1599
+ description?: string | undefined;
1600
+ }> | undefined;
1601
+ supportsAuthenticatedExtendedCard?: boolean | undefined;
1602
+ signatures?: {
1603
+ protected: string;
1604
+ signature: string;
1605
+ header?: Record<string, unknown> | undefined;
1606
+ }[] | undefined;
1607
+ };
1608
+ id?: string | number | undefined;
1609
+ error?: undefined;
1610
+ }, {
1611
+ jsonrpc: "2.0";
1612
+ result: {
1613
+ description: string;
1614
+ name: string;
1615
+ url: string;
1616
+ version: string;
1617
+ capabilities: {
1618
+ extensions?: {
1619
+ uri: string;
1620
+ params?: Record<string, unknown> | undefined;
1621
+ description?: string | undefined;
1622
+ required?: boolean | undefined;
1623
+ }[] | undefined;
1624
+ streaming?: boolean | undefined;
1625
+ pushNotifications?: boolean | undefined;
1626
+ stateTransitionHistory?: boolean | undefined;
1627
+ };
1628
+ defaultInputModes: string[];
1629
+ defaultOutputModes: string[];
1630
+ skills: {
1631
+ description: string;
1632
+ name: string;
1633
+ id: string;
1634
+ tags?: string[] | undefined;
1635
+ examples?: string[] | undefined;
1636
+ inputModes?: string[] | undefined;
1637
+ outputModes?: string[] | undefined;
1638
+ security?: Record<string, string[]>[] | undefined;
1639
+ }[];
1640
+ security?: Record<string, string[]>[] | undefined;
1641
+ protocolVersion?: string | undefined;
1642
+ preferredTransport?: string | undefined;
1643
+ additionalInterfaces?: {
1644
+ url: string;
1645
+ transport: string;
1646
+ }[] | undefined;
1647
+ iconUrl?: string | undefined;
1648
+ provider?: {
1649
+ url: string;
1650
+ organization: string;
1651
+ } | undefined;
1652
+ documentationUrl?: string | undefined;
1653
+ securitySchemes?: Record<string, {
1654
+ type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
1655
+ in: "query" | "header" | "cookie";
1656
+ name: string;
1657
+ description?: string | undefined;
1658
+ } | {
1659
+ type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
1660
+ scheme: string;
1661
+ description?: string | undefined;
1662
+ bearerFormat?: string | undefined;
1663
+ } | {
1664
+ type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
1665
+ flows: {
1666
+ authorizationCode?: {
1667
+ authorizationUrl: string;
1668
+ tokenUrl: string;
1669
+ scopes: Record<string, string>;
1670
+ refreshUrl?: string | undefined;
1671
+ } | undefined;
1672
+ clientCredentials?: {
1673
+ tokenUrl: string;
1674
+ scopes: Record<string, string>;
1675
+ refreshUrl?: string | undefined;
1676
+ } | undefined;
1677
+ implicit?: {
1678
+ authorizationUrl: string;
1679
+ scopes: Record<string, string>;
1680
+ refreshUrl?: string | undefined;
1681
+ } | undefined;
1682
+ password?: {
1683
+ tokenUrl: string;
1684
+ scopes: Record<string, string>;
1685
+ refreshUrl?: string | undefined;
1686
+ } | undefined;
1687
+ };
1688
+ description?: string | undefined;
1689
+ oauth2MetadataUrl?: string | undefined;
1690
+ } | {
1691
+ type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
1692
+ openIdConnectUrl: string;
1693
+ description?: string | undefined;
1694
+ } | {
1695
+ type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
1696
+ description?: string | undefined;
1697
+ }> | undefined;
1698
+ supportsAuthenticatedExtendedCard?: boolean | undefined;
1699
+ signatures?: {
1700
+ protected: string;
1701
+ signature: string;
1702
+ header?: Record<string, unknown> | undefined;
1703
+ }[] | undefined;
1704
+ };
1705
+ id?: string | number | undefined;
1706
+ error?: undefined;
1707
+ }>;
355
1708
  export type GetAuthenticatedExtendedCardSuccessResponse = z.infer<typeof GetAuthenticatedExtendedCardSuccessResponseSchema>;
356
1709
  /**
357
1710
  * @description Response to a `agent/getAuthenticatedExtendedCard` request.
358
1711
  */
359
- export declare const GetAuthenticatedExtendedCardResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
1712
+ export declare const GetAuthenticatedExtendedCardResponseSchema: z.ZodUnion<[z.ZodObject<{
360
1713
  jsonrpc: z.ZodLiteral<"2.0">;
361
- id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1714
+ id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
362
1715
  error: z.ZodOptional<z.ZodNever>;
1716
+ } & {
363
1717
  result: z.ZodObject<{
1718
+ /**
1719
+ * @required The version of the A2A protocol this agent supports.
1720
+ */
364
1721
  protocolVersion: z.ZodDefault<z.ZodString>;
1722
+ /**
1723
+ * @required Human readable name of the agent.
1724
+ */
365
1725
  name: z.ZodString;
1726
+ /**
1727
+ * @required A human-readable description of the agent.
1728
+ */
366
1729
  description: z.ZodString;
367
- url: z.ZodURL;
368
- preferredTransport: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
369
- JSONRPC: "JSONRPC";
370
- GRPC: "GRPC";
371
- "HTTP+JSON": "HTTP+JSON";
372
- }>, z.ZodString]>>;
1730
+ /**
1731
+ * @required The preferred endpoint URL for interacting with the agent.
1732
+ */
1733
+ url: z.ZodString;
1734
+ /**
1735
+ * @optional The transport protocol for the preferred endpoint.
1736
+ */
1737
+ preferredTransport: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["JSONRPC", "GRPC", "HTTP+JSON"]>, z.ZodString]>>;
1738
+ /**
1739
+ * @optional Additional supported interfaces (transport and URL combinations).
1740
+ */
373
1741
  additionalInterfaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
374
- url: z.ZodURL;
375
- transport: z.ZodUnion<readonly [z.ZodEnum<{
376
- JSONRPC: "JSONRPC";
377
- GRPC: "GRPC";
378
- "HTTP+JSON": "HTTP+JSON";
379
- }>, z.ZodString]>;
380
- }, z.core.$strip>>>;
381
- iconUrl: z.ZodOptional<z.ZodURL>;
1742
+ url: z.ZodString;
1743
+ transport: z.ZodUnion<[z.ZodEnum<["JSONRPC", "GRPC", "HTTP+JSON"]>, z.ZodString]>;
1744
+ }, "strip", z.ZodTypeAny, {
1745
+ url: string;
1746
+ transport: string;
1747
+ }, {
1748
+ url: string;
1749
+ transport: string;
1750
+ }>, "many">>;
1751
+ /**
1752
+ * @optional The URL of the agent's icon.
1753
+ */
1754
+ iconUrl: z.ZodOptional<z.ZodString>;
1755
+ /**
1756
+ * @optional The service provider of the agent.
1757
+ */
382
1758
  provider: z.ZodOptional<z.ZodObject<{
1759
+ /**
1760
+ * @required The name of the organization providing the agent.
1761
+ */
383
1762
  organization: z.ZodString;
384
- url: z.ZodURL;
385
- }, z.core.$strip>>;
1763
+ /**
1764
+ * @required URL associated with the agent provider.
1765
+ */
1766
+ url: z.ZodString;
1767
+ }, "strip", z.ZodTypeAny, {
1768
+ url: string;
1769
+ organization: string;
1770
+ }, {
1771
+ url: string;
1772
+ organization: string;
1773
+ }>>;
1774
+ /**
1775
+ * @required The version identifier for the agent or its API.
1776
+ */
386
1777
  version: z.ZodString;
387
- documentationUrl: z.ZodOptional<z.ZodURL>;
1778
+ /**
1779
+ * @optional An optional URL pointing to the agent's documentation.
1780
+ */
1781
+ documentationUrl: z.ZodOptional<z.ZodString>;
1782
+ /**
1783
+ * @required The capabilities supported by the agent.
1784
+ */
388
1785
  capabilities: z.ZodObject<{
1786
+ /**
1787
+ * @optional Indicates if the agent supports streaming responses.
1788
+ */
389
1789
  streaming: z.ZodOptional<z.ZodBoolean>;
1790
+ /**
1791
+ * @optional Indicates if the agent supports push notification mechanisms.
1792
+ */
390
1793
  pushNotifications: z.ZodOptional<z.ZodBoolean>;
1794
+ /**
1795
+ * @optional Indicates if the agent supports providing state transition history.
1796
+ */
391
1797
  stateTransitionHistory: z.ZodOptional<z.ZodBoolean>;
1798
+ /**
1799
+ * @optional Extensions supported by this agent.
1800
+ */
392
1801
  extensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1802
+ /**
1803
+ * @required The URI of the extension.
1804
+ */
393
1805
  uri: z.ZodString;
1806
+ /**
1807
+ * @optional A description of how this agent uses this extension.
1808
+ */
394
1809
  description: z.ZodOptional<z.ZodString>;
1810
+ /**
1811
+ * @optional Whether the client must follow specific requirements of the extension.
1812
+ */
395
1813
  required: z.ZodOptional<z.ZodBoolean>;
1814
+ /**
1815
+ * @optional Optional configuration for the extension.
1816
+ */
396
1817
  params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
397
- }, z.core.$strip>>>;
398
- }, z.core.$strip>;
399
- securitySchemes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
1818
+ }, "strip", z.ZodTypeAny, {
1819
+ uri: string;
1820
+ params?: Record<string, unknown> | undefined;
1821
+ description?: string | undefined;
1822
+ required?: boolean | undefined;
1823
+ }, {
1824
+ uri: string;
1825
+ params?: Record<string, unknown> | undefined;
1826
+ description?: string | undefined;
1827
+ required?: boolean | undefined;
1828
+ }>, "many">>;
1829
+ }, "strip", z.ZodTypeAny, {
1830
+ extensions?: {
1831
+ uri: string;
1832
+ params?: Record<string, unknown> | undefined;
1833
+ description?: string | undefined;
1834
+ required?: boolean | undefined;
1835
+ }[] | undefined;
1836
+ streaming?: boolean | undefined;
1837
+ pushNotifications?: boolean | undefined;
1838
+ stateTransitionHistory?: boolean | undefined;
1839
+ }, {
1840
+ extensions?: {
1841
+ uri: string;
1842
+ params?: Record<string, unknown> | undefined;
1843
+ description?: string | undefined;
1844
+ required?: boolean | undefined;
1845
+ }[] | undefined;
1846
+ streaming?: boolean | undefined;
1847
+ pushNotifications?: boolean | undefined;
1848
+ stateTransitionHistory?: boolean | undefined;
1849
+ }>;
1850
+ /**
1851
+ * @optional Security scheme details used for authenticating with this agent.
1852
+ * Maps scheme names to their configurations.
1853
+ */
1854
+ securitySchemes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
400
1855
  description: z.ZodOptional<z.ZodString>;
401
- type: z.ZodEnum<{
402
- apiKey: "apiKey";
403
- http: "http";
404
- mutualTLS: "mutualTLS";
405
- oauth2: "oauth2";
406
- openIdConnect: "openIdConnect";
407
- }>;
408
- in: z.ZodEnum<{
409
- query: "query";
410
- header: "header";
411
- cookie: "cookie";
412
- }>;
1856
+ } & {
1857
+ type: z.ZodEffects<z.ZodEnum<["apiKey", "http", "mutualTLS", "oauth2", "openIdConnect"]>, "apiKey", "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect">;
1858
+ in: z.ZodEnum<["query", "header", "cookie"]>;
413
1859
  name: z.ZodString;
414
- }, z.core.$strip>, z.ZodObject<{
1860
+ }, "strip", z.ZodTypeAny, {
1861
+ type: "apiKey";
1862
+ in: "query" | "header" | "cookie";
1863
+ name: string;
1864
+ description?: string | undefined;
1865
+ }, {
1866
+ type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
1867
+ in: "query" | "header" | "cookie";
1868
+ name: string;
1869
+ description?: string | undefined;
1870
+ }>, z.ZodObject<{
415
1871
  description: z.ZodOptional<z.ZodString>;
416
- type: z.ZodEnum<{
417
- apiKey: "apiKey";
418
- http: "http";
419
- mutualTLS: "mutualTLS";
420
- oauth2: "oauth2";
421
- openIdConnect: "openIdConnect";
422
- }>;
1872
+ } & {
1873
+ type: z.ZodEffects<z.ZodEnum<["apiKey", "http", "mutualTLS", "oauth2", "openIdConnect"]>, "http", "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect">;
423
1874
  scheme: z.ZodString;
424
1875
  bearerFormat: z.ZodOptional<z.ZodString>;
425
- }, z.core.$strip>, z.ZodObject<{
1876
+ }, "strip", z.ZodTypeAny, {
1877
+ type: "http";
1878
+ scheme: string;
1879
+ description?: string | undefined;
1880
+ bearerFormat?: string | undefined;
1881
+ }, {
1882
+ type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
1883
+ scheme: string;
1884
+ description?: string | undefined;
1885
+ bearerFormat?: string | undefined;
1886
+ }>, z.ZodObject<{
426
1887
  description: z.ZodOptional<z.ZodString>;
427
- type: z.ZodEnum<{
428
- apiKey: "apiKey";
429
- http: "http";
430
- mutualTLS: "mutualTLS";
431
- oauth2: "oauth2";
432
- openIdConnect: "openIdConnect";
433
- }>;
1888
+ } & {
1889
+ type: z.ZodEffects<z.ZodEnum<["apiKey", "http", "mutualTLS", "oauth2", "openIdConnect"]>, "oauth2", "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect">;
434
1890
  flows: z.ZodObject<{
435
1891
  authorizationCode: z.ZodOptional<z.ZodObject<{
436
- authorizationUrl: z.ZodURL;
437
- tokenUrl: z.ZodURL;
438
- refreshUrl: z.ZodOptional<z.ZodURL>;
1892
+ authorizationUrl: z.ZodString;
1893
+ tokenUrl: z.ZodString;
1894
+ refreshUrl: z.ZodOptional<z.ZodString>;
439
1895
  scopes: z.ZodRecord<z.ZodString, z.ZodString>;
440
- }, z.core.$strip>>;
1896
+ }, "strip", z.ZodTypeAny, {
1897
+ authorizationUrl: string;
1898
+ tokenUrl: string;
1899
+ scopes: Record<string, string>;
1900
+ refreshUrl?: string | undefined;
1901
+ }, {
1902
+ authorizationUrl: string;
1903
+ tokenUrl: string;
1904
+ scopes: Record<string, string>;
1905
+ refreshUrl?: string | undefined;
1906
+ }>>;
441
1907
  clientCredentials: z.ZodOptional<z.ZodObject<{
442
- tokenUrl: z.ZodURL;
443
- refreshUrl: z.ZodOptional<z.ZodURL>;
1908
+ tokenUrl: z.ZodString;
1909
+ refreshUrl: z.ZodOptional<z.ZodString>;
444
1910
  scopes: z.ZodRecord<z.ZodString, z.ZodString>;
445
- }, z.core.$strip>>;
1911
+ }, "strip", z.ZodTypeAny, {
1912
+ tokenUrl: string;
1913
+ scopes: Record<string, string>;
1914
+ refreshUrl?: string | undefined;
1915
+ }, {
1916
+ tokenUrl: string;
1917
+ scopes: Record<string, string>;
1918
+ refreshUrl?: string | undefined;
1919
+ }>>;
446
1920
  implicit: z.ZodOptional<z.ZodObject<{
447
- authorizationUrl: z.ZodURL;
448
- refreshUrl: z.ZodOptional<z.ZodURL>;
1921
+ authorizationUrl: z.ZodString;
1922
+ refreshUrl: z.ZodOptional<z.ZodString>;
449
1923
  scopes: z.ZodRecord<z.ZodString, z.ZodString>;
450
- }, z.core.$strip>>;
1924
+ }, "strip", z.ZodTypeAny, {
1925
+ authorizationUrl: string;
1926
+ scopes: Record<string, string>;
1927
+ refreshUrl?: string | undefined;
1928
+ }, {
1929
+ authorizationUrl: string;
1930
+ scopes: Record<string, string>;
1931
+ refreshUrl?: string | undefined;
1932
+ }>>;
451
1933
  password: z.ZodOptional<z.ZodObject<{
452
- tokenUrl: z.ZodURL;
453
- refreshUrl: z.ZodOptional<z.ZodURL>;
1934
+ tokenUrl: z.ZodString;
1935
+ refreshUrl: z.ZodOptional<z.ZodString>;
454
1936
  scopes: z.ZodRecord<z.ZodString, z.ZodString>;
455
- }, z.core.$strip>>;
456
- }, z.core.$strip>;
457
- oauth2MetadataUrl: z.ZodOptional<z.ZodURL>;
458
- }, z.core.$strip>, z.ZodObject<{
459
- description: z.ZodOptional<z.ZodString>;
460
- type: z.ZodEnum<{
461
- apiKey: "apiKey";
462
- http: "http";
463
- mutualTLS: "mutualTLS";
464
- oauth2: "oauth2";
465
- openIdConnect: "openIdConnect";
1937
+ }, "strip", z.ZodTypeAny, {
1938
+ tokenUrl: string;
1939
+ scopes: Record<string, string>;
1940
+ refreshUrl?: string | undefined;
1941
+ }, {
1942
+ tokenUrl: string;
1943
+ scopes: Record<string, string>;
1944
+ refreshUrl?: string | undefined;
1945
+ }>>;
1946
+ }, "strip", z.ZodTypeAny, {
1947
+ authorizationCode?: {
1948
+ authorizationUrl: string;
1949
+ tokenUrl: string;
1950
+ scopes: Record<string, string>;
1951
+ refreshUrl?: string | undefined;
1952
+ } | undefined;
1953
+ clientCredentials?: {
1954
+ tokenUrl: string;
1955
+ scopes: Record<string, string>;
1956
+ refreshUrl?: string | undefined;
1957
+ } | undefined;
1958
+ implicit?: {
1959
+ authorizationUrl: string;
1960
+ scopes: Record<string, string>;
1961
+ refreshUrl?: string | undefined;
1962
+ } | undefined;
1963
+ password?: {
1964
+ tokenUrl: string;
1965
+ scopes: Record<string, string>;
1966
+ refreshUrl?: string | undefined;
1967
+ } | undefined;
1968
+ }, {
1969
+ authorizationCode?: {
1970
+ authorizationUrl: string;
1971
+ tokenUrl: string;
1972
+ scopes: Record<string, string>;
1973
+ refreshUrl?: string | undefined;
1974
+ } | undefined;
1975
+ clientCredentials?: {
1976
+ tokenUrl: string;
1977
+ scopes: Record<string, string>;
1978
+ refreshUrl?: string | undefined;
1979
+ } | undefined;
1980
+ implicit?: {
1981
+ authorizationUrl: string;
1982
+ scopes: Record<string, string>;
1983
+ refreshUrl?: string | undefined;
1984
+ } | undefined;
1985
+ password?: {
1986
+ tokenUrl: string;
1987
+ scopes: Record<string, string>;
1988
+ refreshUrl?: string | undefined;
1989
+ } | undefined;
466
1990
  }>;
1991
+ oauth2MetadataUrl: z.ZodOptional<z.ZodString>;
1992
+ }, "strip", z.ZodTypeAny, {
1993
+ type: "oauth2";
1994
+ flows: {
1995
+ authorizationCode?: {
1996
+ authorizationUrl: string;
1997
+ tokenUrl: string;
1998
+ scopes: Record<string, string>;
1999
+ refreshUrl?: string | undefined;
2000
+ } | undefined;
2001
+ clientCredentials?: {
2002
+ tokenUrl: string;
2003
+ scopes: Record<string, string>;
2004
+ refreshUrl?: string | undefined;
2005
+ } | undefined;
2006
+ implicit?: {
2007
+ authorizationUrl: string;
2008
+ scopes: Record<string, string>;
2009
+ refreshUrl?: string | undefined;
2010
+ } | undefined;
2011
+ password?: {
2012
+ tokenUrl: string;
2013
+ scopes: Record<string, string>;
2014
+ refreshUrl?: string | undefined;
2015
+ } | undefined;
2016
+ };
2017
+ description?: string | undefined;
2018
+ oauth2MetadataUrl?: string | undefined;
2019
+ }, {
2020
+ type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
2021
+ flows: {
2022
+ authorizationCode?: {
2023
+ authorizationUrl: string;
2024
+ tokenUrl: string;
2025
+ scopes: Record<string, string>;
2026
+ refreshUrl?: string | undefined;
2027
+ } | undefined;
2028
+ clientCredentials?: {
2029
+ tokenUrl: string;
2030
+ scopes: Record<string, string>;
2031
+ refreshUrl?: string | undefined;
2032
+ } | undefined;
2033
+ implicit?: {
2034
+ authorizationUrl: string;
2035
+ scopes: Record<string, string>;
2036
+ refreshUrl?: string | undefined;
2037
+ } | undefined;
2038
+ password?: {
2039
+ tokenUrl: string;
2040
+ scopes: Record<string, string>;
2041
+ refreshUrl?: string | undefined;
2042
+ } | undefined;
2043
+ };
2044
+ description?: string | undefined;
2045
+ oauth2MetadataUrl?: string | undefined;
2046
+ }>, z.ZodObject<{
2047
+ description: z.ZodOptional<z.ZodString>;
2048
+ } & {
2049
+ type: z.ZodEffects<z.ZodEnum<["apiKey", "http", "mutualTLS", "oauth2", "openIdConnect"]>, "openIdConnect", "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect">;
467
2050
  openIdConnectUrl: z.ZodString;
468
- }, z.core.$strip>, z.ZodObject<{
2051
+ }, "strip", z.ZodTypeAny, {
2052
+ type: "openIdConnect";
2053
+ openIdConnectUrl: string;
2054
+ description?: string | undefined;
2055
+ }, {
2056
+ type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
2057
+ openIdConnectUrl: string;
2058
+ description?: string | undefined;
2059
+ }>, z.ZodObject<{
469
2060
  description: z.ZodOptional<z.ZodString>;
470
- type: z.ZodEnum<{
471
- apiKey: "apiKey";
472
- http: "http";
473
- mutualTLS: "mutualTLS";
474
- oauth2: "oauth2";
475
- openIdConnect: "openIdConnect";
476
- }>;
477
- }, z.core.$strip>]>>>;
478
- security: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>>;
479
- defaultInputModes: z.ZodArray<z.ZodString>;
480
- defaultOutputModes: z.ZodArray<z.ZodString>;
2061
+ } & {
2062
+ type: z.ZodEffects<z.ZodEnum<["apiKey", "http", "mutualTLS", "oauth2", "openIdConnect"]>, "mutualTLS", "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect">;
2063
+ }, "strip", z.ZodTypeAny, {
2064
+ type: "mutualTLS";
2065
+ description?: string | undefined;
2066
+ }, {
2067
+ type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
2068
+ description?: string | undefined;
2069
+ }>]>>>;
2070
+ /**
2071
+ * @optional Security requirements for contacting the agent.
2072
+ * Array of security requirement objects, where each object maps scheme names to scope arrays.
2073
+ */
2074
+ security: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>, "many">>;
2075
+ /**
2076
+ * @required The default input modes supported by the agent.
2077
+ */
2078
+ defaultInputModes: z.ZodArray<z.ZodString, "many">;
2079
+ /**
2080
+ * @required The default output modes supported by the agent.
2081
+ */
2082
+ defaultOutputModes: z.ZodArray<z.ZodString, "many">;
2083
+ /**
2084
+ * @required List of specific skills offered by the agent.
2085
+ */
481
2086
  skills: z.ZodArray<z.ZodObject<{
2087
+ /**
2088
+ * @required Unique identifier for the skill.
2089
+ */
482
2090
  id: z.ZodString;
2091
+ /**
2092
+ * @required Human-readable name of the skill.
2093
+ */
483
2094
  name: z.ZodString;
2095
+ /**
2096
+ * @required Description of the skill.
2097
+ */
484
2098
  description: z.ZodString;
485
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
486
- examples: z.ZodOptional<z.ZodArray<z.ZodString>>;
487
- inputModes: z.ZodOptional<z.ZodArray<z.ZodString>>;
488
- outputModes: z.ZodOptional<z.ZodArray<z.ZodString>>;
489
- security: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>>;
490
- }, z.core.$strip>>;
2099
+ /**
2100
+ * @required List of tags associated with the skill for categorization.
2101
+ */
2102
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2103
+ /**
2104
+ * @optional List of example inputs or use cases for the skill.
2105
+ */
2106
+ examples: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2107
+ /**
2108
+ * @optional List of input modes supported by this skill.
2109
+ */
2110
+ inputModes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2111
+ /**
2112
+ * @optional List of output modes supported by this skill.
2113
+ */
2114
+ outputModes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2115
+ /**
2116
+ * @optional Security schemes necessary for the agent to leverage this skill.
2117
+ */
2118
+ security: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>, "many">>;
2119
+ }, "strip", z.ZodTypeAny, {
2120
+ description: string;
2121
+ name: string;
2122
+ id: string;
2123
+ tags?: string[] | undefined;
2124
+ examples?: string[] | undefined;
2125
+ inputModes?: string[] | undefined;
2126
+ outputModes?: string[] | undefined;
2127
+ security?: Record<string, string[]>[] | undefined;
2128
+ }, {
2129
+ description: string;
2130
+ name: string;
2131
+ id: string;
2132
+ tags?: string[] | undefined;
2133
+ examples?: string[] | undefined;
2134
+ inputModes?: string[] | undefined;
2135
+ outputModes?: string[] | undefined;
2136
+ security?: Record<string, string[]>[] | undefined;
2137
+ }>, "many">;
2138
+ /**
2139
+ * @optional True if the agent supports providing an extended agent card when the user is authenticated.
2140
+ */
491
2141
  supportsAuthenticatedExtendedCard: z.ZodOptional<z.ZodBoolean>;
2142
+ /**
2143
+ * @optional JSON Web Signatures computed for this AgentCard.
2144
+ */
492
2145
  signatures: z.ZodOptional<z.ZodArray<z.ZodObject<{
2146
+ /**
2147
+ * @required The protected JWS header for the signature.
2148
+ */
493
2149
  protected: z.ZodString;
2150
+ /**
2151
+ * @required The computed signature, Base64url-encoded.
2152
+ */
494
2153
  signature: z.ZodString;
2154
+ /**
2155
+ * @optional The unprotected JWS header values.
2156
+ */
495
2157
  header: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
496
- }, z.core.$strip>>>;
497
- }, z.core.$strip>;
498
- }, z.core.$strip>, z.ZodObject<{
2158
+ }, "strip", z.ZodTypeAny, {
2159
+ protected: string;
2160
+ signature: string;
2161
+ header?: Record<string, unknown> | undefined;
2162
+ }, {
2163
+ protected: string;
2164
+ signature: string;
2165
+ header?: Record<string, unknown> | undefined;
2166
+ }>, "many">>;
2167
+ }, "strip", z.ZodTypeAny, {
2168
+ description: string;
2169
+ name: string;
2170
+ url: string;
2171
+ protocolVersion: string;
2172
+ version: string;
2173
+ capabilities: {
2174
+ extensions?: {
2175
+ uri: string;
2176
+ params?: Record<string, unknown> | undefined;
2177
+ description?: string | undefined;
2178
+ required?: boolean | undefined;
2179
+ }[] | undefined;
2180
+ streaming?: boolean | undefined;
2181
+ pushNotifications?: boolean | undefined;
2182
+ stateTransitionHistory?: boolean | undefined;
2183
+ };
2184
+ defaultInputModes: string[];
2185
+ defaultOutputModes: string[];
2186
+ skills: {
2187
+ description: string;
2188
+ name: string;
2189
+ id: string;
2190
+ tags?: string[] | undefined;
2191
+ examples?: string[] | undefined;
2192
+ inputModes?: string[] | undefined;
2193
+ outputModes?: string[] | undefined;
2194
+ security?: Record<string, string[]>[] | undefined;
2195
+ }[];
2196
+ security?: Record<string, string[]>[] | undefined;
2197
+ preferredTransport?: string | undefined;
2198
+ additionalInterfaces?: {
2199
+ url: string;
2200
+ transport: string;
2201
+ }[] | undefined;
2202
+ iconUrl?: string | undefined;
2203
+ provider?: {
2204
+ url: string;
2205
+ organization: string;
2206
+ } | undefined;
2207
+ documentationUrl?: string | undefined;
2208
+ securitySchemes?: Record<string, {
2209
+ type: "apiKey";
2210
+ in: "query" | "header" | "cookie";
2211
+ name: string;
2212
+ description?: string | undefined;
2213
+ } | {
2214
+ type: "http";
2215
+ scheme: string;
2216
+ description?: string | undefined;
2217
+ bearerFormat?: string | undefined;
2218
+ } | {
2219
+ type: "oauth2";
2220
+ flows: {
2221
+ authorizationCode?: {
2222
+ authorizationUrl: string;
2223
+ tokenUrl: string;
2224
+ scopes: Record<string, string>;
2225
+ refreshUrl?: string | undefined;
2226
+ } | undefined;
2227
+ clientCredentials?: {
2228
+ tokenUrl: string;
2229
+ scopes: Record<string, string>;
2230
+ refreshUrl?: string | undefined;
2231
+ } | undefined;
2232
+ implicit?: {
2233
+ authorizationUrl: string;
2234
+ scopes: Record<string, string>;
2235
+ refreshUrl?: string | undefined;
2236
+ } | undefined;
2237
+ password?: {
2238
+ tokenUrl: string;
2239
+ scopes: Record<string, string>;
2240
+ refreshUrl?: string | undefined;
2241
+ } | undefined;
2242
+ };
2243
+ description?: string | undefined;
2244
+ oauth2MetadataUrl?: string | undefined;
2245
+ } | {
2246
+ type: "openIdConnect";
2247
+ openIdConnectUrl: string;
2248
+ description?: string | undefined;
2249
+ } | {
2250
+ type: "mutualTLS";
2251
+ description?: string | undefined;
2252
+ }> | undefined;
2253
+ supportsAuthenticatedExtendedCard?: boolean | undefined;
2254
+ signatures?: {
2255
+ protected: string;
2256
+ signature: string;
2257
+ header?: Record<string, unknown> | undefined;
2258
+ }[] | undefined;
2259
+ }, {
2260
+ description: string;
2261
+ name: string;
2262
+ url: string;
2263
+ version: string;
2264
+ capabilities: {
2265
+ extensions?: {
2266
+ uri: string;
2267
+ params?: Record<string, unknown> | undefined;
2268
+ description?: string | undefined;
2269
+ required?: boolean | undefined;
2270
+ }[] | undefined;
2271
+ streaming?: boolean | undefined;
2272
+ pushNotifications?: boolean | undefined;
2273
+ stateTransitionHistory?: boolean | undefined;
2274
+ };
2275
+ defaultInputModes: string[];
2276
+ defaultOutputModes: string[];
2277
+ skills: {
2278
+ description: string;
2279
+ name: string;
2280
+ id: string;
2281
+ tags?: string[] | undefined;
2282
+ examples?: string[] | undefined;
2283
+ inputModes?: string[] | undefined;
2284
+ outputModes?: string[] | undefined;
2285
+ security?: Record<string, string[]>[] | undefined;
2286
+ }[];
2287
+ security?: Record<string, string[]>[] | undefined;
2288
+ protocolVersion?: string | undefined;
2289
+ preferredTransport?: string | undefined;
2290
+ additionalInterfaces?: {
2291
+ url: string;
2292
+ transport: string;
2293
+ }[] | undefined;
2294
+ iconUrl?: string | undefined;
2295
+ provider?: {
2296
+ url: string;
2297
+ organization: string;
2298
+ } | undefined;
2299
+ documentationUrl?: string | undefined;
2300
+ securitySchemes?: Record<string, {
2301
+ type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
2302
+ in: "query" | "header" | "cookie";
2303
+ name: string;
2304
+ description?: string | undefined;
2305
+ } | {
2306
+ type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
2307
+ scheme: string;
2308
+ description?: string | undefined;
2309
+ bearerFormat?: string | undefined;
2310
+ } | {
2311
+ type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
2312
+ flows: {
2313
+ authorizationCode?: {
2314
+ authorizationUrl: string;
2315
+ tokenUrl: string;
2316
+ scopes: Record<string, string>;
2317
+ refreshUrl?: string | undefined;
2318
+ } | undefined;
2319
+ clientCredentials?: {
2320
+ tokenUrl: string;
2321
+ scopes: Record<string, string>;
2322
+ refreshUrl?: string | undefined;
2323
+ } | undefined;
2324
+ implicit?: {
2325
+ authorizationUrl: string;
2326
+ scopes: Record<string, string>;
2327
+ refreshUrl?: string | undefined;
2328
+ } | undefined;
2329
+ password?: {
2330
+ tokenUrl: string;
2331
+ scopes: Record<string, string>;
2332
+ refreshUrl?: string | undefined;
2333
+ } | undefined;
2334
+ };
2335
+ description?: string | undefined;
2336
+ oauth2MetadataUrl?: string | undefined;
2337
+ } | {
2338
+ type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
2339
+ openIdConnectUrl: string;
2340
+ description?: string | undefined;
2341
+ } | {
2342
+ type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
2343
+ description?: string | undefined;
2344
+ }> | undefined;
2345
+ supportsAuthenticatedExtendedCard?: boolean | undefined;
2346
+ signatures?: {
2347
+ protected: string;
2348
+ signature: string;
2349
+ header?: Record<string, unknown> | undefined;
2350
+ }[] | undefined;
2351
+ }>;
2352
+ }, "strip", z.ZodTypeAny, {
2353
+ jsonrpc: "2.0";
2354
+ result: {
2355
+ description: string;
2356
+ name: string;
2357
+ url: string;
2358
+ protocolVersion: string;
2359
+ version: string;
2360
+ capabilities: {
2361
+ extensions?: {
2362
+ uri: string;
2363
+ params?: Record<string, unknown> | undefined;
2364
+ description?: string | undefined;
2365
+ required?: boolean | undefined;
2366
+ }[] | undefined;
2367
+ streaming?: boolean | undefined;
2368
+ pushNotifications?: boolean | undefined;
2369
+ stateTransitionHistory?: boolean | undefined;
2370
+ };
2371
+ defaultInputModes: string[];
2372
+ defaultOutputModes: string[];
2373
+ skills: {
2374
+ description: string;
2375
+ name: string;
2376
+ id: string;
2377
+ tags?: string[] | undefined;
2378
+ examples?: string[] | undefined;
2379
+ inputModes?: string[] | undefined;
2380
+ outputModes?: string[] | undefined;
2381
+ security?: Record<string, string[]>[] | undefined;
2382
+ }[];
2383
+ security?: Record<string, string[]>[] | undefined;
2384
+ preferredTransport?: string | undefined;
2385
+ additionalInterfaces?: {
2386
+ url: string;
2387
+ transport: string;
2388
+ }[] | undefined;
2389
+ iconUrl?: string | undefined;
2390
+ provider?: {
2391
+ url: string;
2392
+ organization: string;
2393
+ } | undefined;
2394
+ documentationUrl?: string | undefined;
2395
+ securitySchemes?: Record<string, {
2396
+ type: "apiKey";
2397
+ in: "query" | "header" | "cookie";
2398
+ name: string;
2399
+ description?: string | undefined;
2400
+ } | {
2401
+ type: "http";
2402
+ scheme: string;
2403
+ description?: string | undefined;
2404
+ bearerFormat?: string | undefined;
2405
+ } | {
2406
+ type: "oauth2";
2407
+ flows: {
2408
+ authorizationCode?: {
2409
+ authorizationUrl: string;
2410
+ tokenUrl: string;
2411
+ scopes: Record<string, string>;
2412
+ refreshUrl?: string | undefined;
2413
+ } | undefined;
2414
+ clientCredentials?: {
2415
+ tokenUrl: string;
2416
+ scopes: Record<string, string>;
2417
+ refreshUrl?: string | undefined;
2418
+ } | undefined;
2419
+ implicit?: {
2420
+ authorizationUrl: string;
2421
+ scopes: Record<string, string>;
2422
+ refreshUrl?: string | undefined;
2423
+ } | undefined;
2424
+ password?: {
2425
+ tokenUrl: string;
2426
+ scopes: Record<string, string>;
2427
+ refreshUrl?: string | undefined;
2428
+ } | undefined;
2429
+ };
2430
+ description?: string | undefined;
2431
+ oauth2MetadataUrl?: string | undefined;
2432
+ } | {
2433
+ type: "openIdConnect";
2434
+ openIdConnectUrl: string;
2435
+ description?: string | undefined;
2436
+ } | {
2437
+ type: "mutualTLS";
2438
+ description?: string | undefined;
2439
+ }> | undefined;
2440
+ supportsAuthenticatedExtendedCard?: boolean | undefined;
2441
+ signatures?: {
2442
+ protected: string;
2443
+ signature: string;
2444
+ header?: Record<string, unknown> | undefined;
2445
+ }[] | undefined;
2446
+ };
2447
+ id?: string | number | undefined;
2448
+ error?: undefined;
2449
+ }, {
2450
+ jsonrpc: "2.0";
2451
+ result: {
2452
+ description: string;
2453
+ name: string;
2454
+ url: string;
2455
+ version: string;
2456
+ capabilities: {
2457
+ extensions?: {
2458
+ uri: string;
2459
+ params?: Record<string, unknown> | undefined;
2460
+ description?: string | undefined;
2461
+ required?: boolean | undefined;
2462
+ }[] | undefined;
2463
+ streaming?: boolean | undefined;
2464
+ pushNotifications?: boolean | undefined;
2465
+ stateTransitionHistory?: boolean | undefined;
2466
+ };
2467
+ defaultInputModes: string[];
2468
+ defaultOutputModes: string[];
2469
+ skills: {
2470
+ description: string;
2471
+ name: string;
2472
+ id: string;
2473
+ tags?: string[] | undefined;
2474
+ examples?: string[] | undefined;
2475
+ inputModes?: string[] | undefined;
2476
+ outputModes?: string[] | undefined;
2477
+ security?: Record<string, string[]>[] | undefined;
2478
+ }[];
2479
+ security?: Record<string, string[]>[] | undefined;
2480
+ protocolVersion?: string | undefined;
2481
+ preferredTransport?: string | undefined;
2482
+ additionalInterfaces?: {
2483
+ url: string;
2484
+ transport: string;
2485
+ }[] | undefined;
2486
+ iconUrl?: string | undefined;
2487
+ provider?: {
2488
+ url: string;
2489
+ organization: string;
2490
+ } | undefined;
2491
+ documentationUrl?: string | undefined;
2492
+ securitySchemes?: Record<string, {
2493
+ type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
2494
+ in: "query" | "header" | "cookie";
2495
+ name: string;
2496
+ description?: string | undefined;
2497
+ } | {
2498
+ type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
2499
+ scheme: string;
2500
+ description?: string | undefined;
2501
+ bearerFormat?: string | undefined;
2502
+ } | {
2503
+ type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
2504
+ flows: {
2505
+ authorizationCode?: {
2506
+ authorizationUrl: string;
2507
+ tokenUrl: string;
2508
+ scopes: Record<string, string>;
2509
+ refreshUrl?: string | undefined;
2510
+ } | undefined;
2511
+ clientCredentials?: {
2512
+ tokenUrl: string;
2513
+ scopes: Record<string, string>;
2514
+ refreshUrl?: string | undefined;
2515
+ } | undefined;
2516
+ implicit?: {
2517
+ authorizationUrl: string;
2518
+ scopes: Record<string, string>;
2519
+ refreshUrl?: string | undefined;
2520
+ } | undefined;
2521
+ password?: {
2522
+ tokenUrl: string;
2523
+ scopes: Record<string, string>;
2524
+ refreshUrl?: string | undefined;
2525
+ } | undefined;
2526
+ };
2527
+ description?: string | undefined;
2528
+ oauth2MetadataUrl?: string | undefined;
2529
+ } | {
2530
+ type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
2531
+ openIdConnectUrl: string;
2532
+ description?: string | undefined;
2533
+ } | {
2534
+ type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
2535
+ description?: string | undefined;
2536
+ }> | undefined;
2537
+ supportsAuthenticatedExtendedCard?: boolean | undefined;
2538
+ signatures?: {
2539
+ protected: string;
2540
+ signature: string;
2541
+ header?: Record<string, unknown> | undefined;
2542
+ }[] | undefined;
2543
+ };
2544
+ id?: string | number | undefined;
2545
+ error?: undefined;
2546
+ }>, z.ZodObject<{
499
2547
  jsonrpc: z.ZodLiteral<"2.0">;
500
- id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
2548
+ id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
2549
+ } & {
501
2550
  result: z.ZodOptional<z.ZodNever>;
502
2551
  error: z.ZodObject<{
503
2552
  code: z.ZodNumber;
504
2553
  message: z.ZodString;
505
2554
  data: z.ZodOptional<z.ZodUnknown>;
506
- }, z.core.$strip>;
507
- }, z.core.$strip>]>;
2555
+ }, "strip", z.ZodTypeAny, {
2556
+ message: string;
2557
+ code: number;
2558
+ data?: unknown;
2559
+ }, {
2560
+ message: string;
2561
+ code: number;
2562
+ data?: unknown;
2563
+ }>;
2564
+ }, "strip", z.ZodTypeAny, {
2565
+ jsonrpc: "2.0";
2566
+ error: {
2567
+ message: string;
2568
+ code: number;
2569
+ data?: unknown;
2570
+ };
2571
+ id?: string | number | undefined;
2572
+ result?: undefined;
2573
+ }, {
2574
+ jsonrpc: "2.0";
2575
+ error: {
2576
+ message: string;
2577
+ code: number;
2578
+ data?: unknown;
2579
+ };
2580
+ id?: string | number | undefined;
2581
+ result?: undefined;
2582
+ }>]>;
508
2583
  export type GetAuthenticatedExtendedCardResponse = z.infer<typeof GetAuthenticatedExtendedCardResponseSchema>;
509
2584
  //# sourceMappingURL=agent.d.ts.map