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