@artinet/sdk 0.5.16 → 0.5.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +108 -58
- package/dist/browser/browser.d.ts +9 -0
- package/dist/browser/browser.js +10 -0
- package/dist/browser/client/a2a-client.d.ts +126 -0
- package/dist/browser/client/a2a-client.js +221 -0
- package/dist/browser/client/index.d.ts +1 -0
- package/dist/browser/client/index.js +1 -0
- package/dist/browser/services/a2a/helpers/message-builder.d.ts +12 -0
- package/dist/browser/services/a2a/helpers/message-builder.js +61 -0
- package/dist/browser/transport/rpc/parser.d.ts +15 -0
- package/dist/browser/transport/rpc/parser.js +48 -0
- package/dist/browser/transport/rpc/rpc-client.d.ts +80 -0
- package/dist/browser/transport/rpc/rpc-client.js +189 -0
- package/dist/browser/transport/streaming/event-stream.d.ts +25 -0
- package/dist/browser/transport/streaming/event-stream.js +99 -0
- package/dist/browser/types/ext.d.ts +13 -0
- package/dist/browser/types/ext.js +10 -0
- package/dist/browser/types/index.d.ts +4 -0
- package/dist/browser/types/index.js +4 -0
- package/dist/browser/types/interfaces/client.d.ts +135 -0
- package/dist/browser/types/interfaces/client.js +5 -0
- package/dist/browser/types/interfaces/index.d.ts +3 -0
- package/dist/browser/types/interfaces/index.js +3 -0
- package/dist/browser/types/interfaces/services/a2a/builder.d.ts +37 -0
- package/dist/browser/types/interfaces/services/a2a/builder.js +5 -0
- package/dist/browser/types/interfaces/services/a2a/context.d.ts +162 -0
- package/dist/browser/types/interfaces/services/a2a/context.js +5 -0
- package/dist/browser/types/interfaces/services/a2a/engine.d.ts +7 -0
- package/dist/browser/types/interfaces/services/a2a/engine.js +5 -0
- package/dist/browser/types/interfaces/services/a2a/index.d.ts +5 -0
- package/dist/browser/types/interfaces/services/a2a/index.js +5 -0
- package/dist/browser/types/interfaces/services/a2a/legacy.d.ts +93 -0
- package/dist/browser/types/interfaces/services/a2a/legacy.js +5 -0
- package/dist/browser/types/interfaces/services/a2a/service.d.ts +413 -0
- package/dist/browser/types/interfaces/services/a2a/service.js +5 -0
- package/dist/browser/types/interfaces/services/core/context/command.d.ts +25 -0
- package/dist/browser/types/interfaces/services/core/context/command.js +5 -0
- package/dist/browser/types/interfaces/services/core/context/context.d.ts +207 -0
- package/dist/browser/types/interfaces/services/core/context/context.js +5 -0
- package/dist/browser/types/interfaces/services/core/context/index.d.ts +3 -0
- package/dist/browser/types/interfaces/services/core/context/index.js +3 -0
- package/dist/browser/types/interfaces/services/core/context/types.d.ts +11 -0
- package/dist/browser/types/interfaces/services/core/context/types.js +5 -0
- package/dist/browser/types/interfaces/services/core/execution/engine.d.ts +106 -0
- package/dist/browser/types/interfaces/services/core/execution/engine.js +5 -0
- package/dist/browser/types/interfaces/services/core/execution/environment.d.ts +11 -0
- package/dist/browser/types/interfaces/services/core/execution/environment.js +5 -0
- package/dist/browser/types/interfaces/services/core/execution/execute.d.ts +7 -0
- package/dist/browser/types/interfaces/services/core/execution/execute.js +5 -0
- package/dist/browser/types/interfaces/services/core/execution/index.d.ts +3 -0
- package/dist/browser/types/interfaces/services/core/execution/index.js +3 -0
- package/dist/browser/types/interfaces/services/core/index.d.ts +4 -0
- package/dist/browser/types/interfaces/services/core/index.js +4 -0
- package/dist/browser/types/interfaces/services/core/managers/cancellation.d.ts +9 -0
- package/dist/browser/types/interfaces/services/core/managers/cancellation.js +5 -0
- package/dist/browser/types/interfaces/services/core/managers/connection.d.ts +9 -0
- package/dist/browser/types/interfaces/services/core/managers/connection.js +5 -0
- package/dist/browser/types/interfaces/services/core/managers/context.d.ts +17 -0
- package/dist/browser/types/interfaces/services/core/managers/context.js +5 -0
- package/dist/browser/types/interfaces/services/core/managers/event.d.ts +328 -0
- package/dist/browser/types/interfaces/services/core/managers/event.js +5 -0
- package/dist/browser/types/interfaces/services/core/managers/index.d.ts +6 -0
- package/dist/browser/types/interfaces/services/core/managers/index.js +6 -0
- package/dist/browser/types/interfaces/services/core/managers/stream.d.ts +217 -0
- package/dist/browser/types/interfaces/services/core/managers/stream.js +5 -0
- package/dist/browser/types/interfaces/services/core/managers/task.d.ts +9 -0
- package/dist/browser/types/interfaces/services/core/managers/task.js +1 -0
- package/dist/browser/types/interfaces/services/core/service.d.ts +115 -0
- package/dist/browser/types/interfaces/services/core/service.js +5 -0
- package/dist/browser/types/interfaces/services/index.d.ts +4 -0
- package/dist/browser/types/interfaces/services/index.js +4 -0
- package/dist/browser/types/interfaces/services/mcp/index.d.ts +1 -0
- package/dist/browser/types/interfaces/services/mcp/index.js +1 -0
- package/dist/browser/types/interfaces/services/mcp/service.d.ts +49 -0
- package/dist/browser/types/interfaces/services/mcp/service.js +5 -0
- package/dist/browser/types/interfaces/services/protocol.d.ts +33 -0
- package/dist/browser/types/interfaces/services/protocol.js +34 -0
- package/dist/browser/types/interfaces/storage.d.ts +8 -0
- package/dist/browser/types/interfaces/storage.js +5 -0
- package/dist/browser/types/schemas/a2a/agent.d.ts +2583 -0
- package/dist/browser/types/schemas/a2a/agent.js +323 -0
- package/dist/browser/types/schemas/a2a/auth.d.ts +908 -0
- package/dist/browser/types/schemas/a2a/auth.js +283 -0
- package/dist/browser/types/schemas/a2a/error.d.ts +396 -0
- package/dist/browser/types/schemas/a2a/error.js +163 -0
- package/dist/browser/types/schemas/a2a/index.d.ts +11 -0
- package/dist/browser/types/schemas/a2a/index.js +11 -0
- package/dist/browser/types/schemas/a2a/kind.d.ts +11 -0
- package/dist/browser/types/schemas/a2a/kind.js +20 -0
- package/dist/browser/types/schemas/a2a/message.d.ts +10343 -0
- package/dist/browser/types/schemas/a2a/message.js +130 -0
- package/dist/browser/types/schemas/a2a/notification.d.ts +1517 -0
- package/dist/browser/types/schemas/a2a/notification.js +203 -0
- package/dist/browser/types/schemas/a2a/parameters.d.ts +956 -0
- package/dist/browser/types/schemas/a2a/parameters.js +241 -0
- package/dist/browser/types/schemas/a2a/protocol.d.ts +14363 -0
- package/dist/browser/types/schemas/a2a/protocol.js +59 -0
- package/dist/browser/types/schemas/a2a/rpc.d.ts +182 -0
- package/dist/browser/types/schemas/a2a/rpc.js +126 -0
- package/dist/browser/types/schemas/a2a/task.d.ts +5886 -0
- package/dist/browser/types/schemas/a2a/task.js +134 -0
- package/dist/browser/types/schemas/a2a/transport.d.ts +31 -0
- package/dist/browser/types/schemas/a2a/transport.js +28 -0
- package/dist/browser/types/schemas/index.d.ts +1 -0
- package/dist/browser/types/schemas/index.js +1 -0
- package/dist/browser/types/utils/index.d.ts +1 -0
- package/dist/browser/types/utils/index.js +1 -0
- package/dist/browser/types/utils/transform.d.ts +64 -0
- package/dist/browser/types/utils/transform.js +35 -0
- package/dist/browser/utils/common/constants.d.ts +11 -0
- package/dist/browser/utils/common/constants.js +38 -0
- package/dist/browser/utils/common/errors.d.ts +24 -0
- package/dist/browser/utils/common/errors.js +42 -0
- package/dist/browser/utils/common/utils.d.ts +9 -0
- package/dist/browser/utils/common/utils.js +11 -0
- package/dist/browser/utils/logging/index.d.ts +2 -0
- package/dist/browser/utils/logging/index.js +2 -0
- package/dist/browser/utils/logging/log.d.ts +33 -0
- package/dist/browser/utils/logging/log.js +75 -0
- package/dist/browser/utils/logging/logger.d.ts +18 -0
- package/dist/browser/utils/logging/logger.js +18 -0
- package/dist/client/a2a-client.d.ts +2 -1
- package/dist/client/a2a-client.js +13 -4
- package/dist/server/express/errors.js +1 -1
- package/dist/server/express/middeware.d.ts +2 -2
- package/dist/server/express/middeware.js +26 -6
- package/dist/server/express/server.d.ts +26 -25
- package/dist/server/express/server.js +32 -6
- package/dist/services/a2a/factory/builder.d.ts +24 -24
- package/dist/services/a2a/factory/builder.js +6 -1
- package/dist/services/a2a/factory/service.js +2 -1
- package/dist/services/a2a/helpers/agentcard-builder.d.ts +7 -0
- package/dist/services/a2a/helpers/agentcard-builder.js +23 -0
- package/dist/services/a2a/helpers/history.d.ts +2 -0
- package/dist/services/a2a/helpers/history.js +3 -0
- package/dist/services/a2a/helpers/index.d.ts +3 -0
- package/dist/services/a2a/helpers/index.js +3 -0
- package/dist/services/a2a/methods/get-task.d.ts +46 -46
- package/dist/services/a2a/methods/get-task.js +2 -0
- package/dist/services/a2a/methods/send-message.js +18 -1
- package/dist/services/a2a/service.d.ts +154 -153
- package/dist/services/a2a/service.js +20 -6
- package/dist/services/mcp/service.js +0 -1
- package/dist/transport/rpc/parser.js +2 -2
- package/dist/transport/rpc/rpc-client.js +2 -2
- package/dist/transport/trpc/a2a/factory/router.d.ts +1084 -1084
- package/dist/transport/trpc/a2a/routes/info.d.ts +36 -36
- package/dist/transport/trpc/a2a/routes/message/route.d.ts +225 -225
- package/dist/transport/trpc/a2a/routes/tasks/route.d.ts +257 -257
- package/dist/transport/trpc/a2a/trpc.d.ts +120 -120
- package/dist/types/interfaces/services/a2a/service.d.ts +6 -1
- package/dist/types/schemas/a2a/agent.d.ts +818 -818
- package/dist/types/schemas/a2a/agent.js +1 -23
- package/dist/types/schemas/a2a/auth.d.ts +197 -197
- package/dist/types/schemas/a2a/auth.js +4 -19
- package/dist/types/schemas/a2a/error.d.ts +24 -24
- package/dist/types/schemas/a2a/message.d.ts +4499 -4499
- package/dist/types/schemas/a2a/message.js +2 -10
- package/dist/types/schemas/a2a/notification.d.ts +403 -403
- package/dist/types/schemas/a2a/notification.js +3 -7
- package/dist/types/schemas/a2a/parameters.d.ts +264 -264
- package/dist/types/schemas/a2a/parameters.js +1 -14
- package/dist/types/schemas/a2a/protocol.d.ts +5988 -5988
- package/dist/types/schemas/a2a/rpc.d.ts +20 -20
- package/dist/types/schemas/a2a/rpc.js +0 -5
- package/dist/types/schemas/a2a/task.d.ts +2513 -2513
- package/dist/types/schemas/a2a/task.js +10 -11
- package/dist/utils/common/constants.js +1 -1
- package/dist/utils/common/errors.d.ts +2 -1
- package/dist/utils/common/errors.js +2 -1
- package/dist/utils/common/schema-validation.d.ts +2 -0
- package/dist/utils/common/schema-validation.js +12 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +1 -0
- package/package.json +20 -17
|
@@ -25,7 +25,6 @@ export const SecuritySchemeBaseSchema = z
|
|
|
25
25
|
description: z
|
|
26
26
|
.string()
|
|
27
27
|
.optional()
|
|
28
|
-
.nullable()
|
|
29
28
|
.describe("Description of this security scheme."),
|
|
30
29
|
})
|
|
31
30
|
.describe("Base properties shared by all security schemes.");
|
|
@@ -74,7 +73,6 @@ export const HTTPAuthSecuritySchemeSchema = SecuritySchemeBaseSchema.extend({
|
|
|
74
73
|
bearerFormat: z
|
|
75
74
|
.string()
|
|
76
75
|
.optional()
|
|
77
|
-
.nullable()
|
|
78
76
|
.describe("A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes."),
|
|
79
77
|
});
|
|
80
78
|
/**
|
|
@@ -106,7 +104,6 @@ export const AuthorizationCodeOAuthFlowSchema = z
|
|
|
106
104
|
.string()
|
|
107
105
|
.url()
|
|
108
106
|
.optional()
|
|
109
|
-
.nullable()
|
|
110
107
|
.describe("The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS."),
|
|
111
108
|
/**
|
|
112
109
|
* @required The available scopes for the OAuth2 security scheme. A map between the scope name and a short
|
|
@@ -138,7 +135,6 @@ export const ClientCredentialsOAuthFlowSchema = z
|
|
|
138
135
|
.string()
|
|
139
136
|
.url()
|
|
140
137
|
.optional()
|
|
141
|
-
.nullable()
|
|
142
138
|
.describe("The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS."),
|
|
143
139
|
/**
|
|
144
140
|
* @required The available scopes for the OAuth2 security scheme. A map between the scope name and a short
|
|
@@ -170,7 +166,6 @@ export const ImplicitOAuthFlowSchema = z
|
|
|
170
166
|
.string()
|
|
171
167
|
.url()
|
|
172
168
|
.optional()
|
|
173
|
-
.nullable()
|
|
174
169
|
.describe("The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS."),
|
|
175
170
|
/**
|
|
176
171
|
* @required The available scopes for the OAuth2 security scheme. A map between the scope name and a short
|
|
@@ -202,7 +197,6 @@ export const PasswordOAuthFlowSchema = z
|
|
|
202
197
|
.string()
|
|
203
198
|
.url()
|
|
204
199
|
.optional()
|
|
205
|
-
.nullable()
|
|
206
200
|
.describe("The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS."),
|
|
207
201
|
/**
|
|
208
202
|
* @required The available scopes for the OAuth2 security scheme. A map between the scope name and a short
|
|
@@ -221,27 +215,19 @@ export const OAuthFlowsSchema = z
|
|
|
221
215
|
/**
|
|
222
216
|
* @optional Configuration for the OAuth Authorization Code flow. Previously called accessCode in OpenAPI 2.0.
|
|
223
217
|
*/
|
|
224
|
-
authorizationCode: AuthorizationCodeOAuthFlowSchema.optional()
|
|
225
|
-
.nullable()
|
|
226
|
-
.describe("Configuration for the OAuth Authorization Code flow"),
|
|
218
|
+
authorizationCode: AuthorizationCodeOAuthFlowSchema.optional().describe("Configuration for the OAuth Authorization Code flow"),
|
|
227
219
|
/**
|
|
228
220
|
* @optional Configuration for the OAuth Client Credentials flow. Previously called application in OpenAPI 2.0
|
|
229
221
|
*/
|
|
230
|
-
clientCredentials: ClientCredentialsOAuthFlowSchema.optional()
|
|
231
|
-
.nullable()
|
|
232
|
-
.describe("Configuration for the OAuth Client Credentials flow"),
|
|
222
|
+
clientCredentials: ClientCredentialsOAuthFlowSchema.optional().describe("Configuration for the OAuth Client Credentials flow"),
|
|
233
223
|
/**
|
|
234
224
|
* @optional Configuration for the OAuth Implicit flow
|
|
235
225
|
*/
|
|
236
|
-
implicit: ImplicitOAuthFlowSchema.optional()
|
|
237
|
-
.nullable()
|
|
238
|
-
.describe("Configuration for the OAuth Implicit flow"),
|
|
226
|
+
implicit: ImplicitOAuthFlowSchema.optional().describe("Configuration for the OAuth Implicit flow"),
|
|
239
227
|
/**
|
|
240
228
|
* @optional Configuration for the OAuth Resource Owner Password flow
|
|
241
229
|
*/
|
|
242
|
-
password: PasswordOAuthFlowSchema.optional()
|
|
243
|
-
.nullable()
|
|
244
|
-
.describe("Configuration for the OAuth Resource Owner Password flow"),
|
|
230
|
+
password: PasswordOAuthFlowSchema.optional().describe("Configuration for the OAuth Resource Owner Password flow"),
|
|
245
231
|
})
|
|
246
232
|
.describe("The configuration of supported OAuth Flows");
|
|
247
233
|
/**
|
|
@@ -264,7 +250,6 @@ export const OAuth2SecuritySchemeSchema = SecuritySchemeBaseSchema.extend({
|
|
|
264
250
|
.string()
|
|
265
251
|
.url()
|
|
266
252
|
.optional()
|
|
267
|
-
.nullable()
|
|
268
253
|
.describe("URL to the oauth2 authorization server metadata"),
|
|
269
254
|
}).describe("OAuth2 security scheme configuration.");
|
|
270
255
|
/**
|
|
@@ -8,7 +8,7 @@ import { z } from "zod";
|
|
|
8
8
|
*/
|
|
9
9
|
export declare const ErrorCodeParseError = -32700;
|
|
10
10
|
export declare const JSONParseErrorSchema: z.ZodObject<{
|
|
11
|
-
data: z.
|
|
11
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
12
12
|
} & {
|
|
13
13
|
code: z.ZodLiteral<-32700>;
|
|
14
14
|
message: z.ZodDefault<z.ZodString>;
|
|
@@ -27,7 +27,7 @@ export type JSONParseError = z.infer<typeof JSONParseErrorSchema>;
|
|
|
27
27
|
*/
|
|
28
28
|
export declare const ErrorCodeInvalidRequest = -32600;
|
|
29
29
|
export declare const InvalidRequestErrorSchema: z.ZodObject<{
|
|
30
|
-
data: z.
|
|
30
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
31
31
|
} & {
|
|
32
32
|
code: z.ZodLiteral<-32600>;
|
|
33
33
|
message: z.ZodDefault<z.ZodString>;
|
|
@@ -46,7 +46,7 @@ export type InvalidRequestError = z.infer<typeof InvalidRequestErrorSchema>;
|
|
|
46
46
|
*/
|
|
47
47
|
export declare const ErrorCodeMethodNotFound = -32601;
|
|
48
48
|
export declare const MethodNotFoundErrorSchema: z.ZodObject<{
|
|
49
|
-
data: z.
|
|
49
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
50
50
|
} & {
|
|
51
51
|
code: z.ZodLiteral<-32601>;
|
|
52
52
|
message: z.ZodDefault<z.ZodString>;
|
|
@@ -65,7 +65,7 @@ export type MethodNotFoundError = z.infer<typeof MethodNotFoundErrorSchema>;
|
|
|
65
65
|
*/
|
|
66
66
|
export declare const ErrorCodeInvalidParams = -32602;
|
|
67
67
|
export declare const InvalidParamsErrorSchema: z.ZodObject<{
|
|
68
|
-
data: z.
|
|
68
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
69
69
|
} & {
|
|
70
70
|
code: z.ZodLiteral<-32602>;
|
|
71
71
|
message: z.ZodDefault<z.ZodString>;
|
|
@@ -84,7 +84,7 @@ export type InvalidParamsError = z.infer<typeof InvalidParamsErrorSchema>;
|
|
|
84
84
|
*/
|
|
85
85
|
export declare const ErrorCodeInternalError = -32603;
|
|
86
86
|
export declare const InternalErrorSchema: z.ZodObject<{
|
|
87
|
-
data: z.
|
|
87
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
88
88
|
} & {
|
|
89
89
|
code: z.ZodLiteral<-32603>;
|
|
90
90
|
message: z.ZodDefault<z.ZodString>;
|
|
@@ -103,7 +103,7 @@ export type InternalError = z.infer<typeof InternalErrorSchema>;
|
|
|
103
103
|
*/
|
|
104
104
|
export declare const ErrorCodeTaskNotFound = -32001;
|
|
105
105
|
export declare const TaskNotFoundErrorSchema: z.ZodObject<{
|
|
106
|
-
data: z.
|
|
106
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
107
107
|
} & {
|
|
108
108
|
code: z.ZodLiteral<-32001>;
|
|
109
109
|
message: z.ZodDefault<z.ZodString>;
|
|
@@ -122,7 +122,7 @@ export type TaskNotFoundError = z.infer<typeof TaskNotFoundErrorSchema>;
|
|
|
122
122
|
*/
|
|
123
123
|
export declare const ErrorCodeTaskNotCancelable = -32002;
|
|
124
124
|
export declare const TaskNotCancelableErrorSchema: z.ZodObject<{
|
|
125
|
-
data: z.
|
|
125
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
126
126
|
} & {
|
|
127
127
|
code: z.ZodLiteral<-32002>;
|
|
128
128
|
message: z.ZodDefault<z.ZodString>;
|
|
@@ -141,7 +141,7 @@ export type TaskNotCancelableError = z.infer<typeof TaskNotCancelableErrorSchema
|
|
|
141
141
|
*/
|
|
142
142
|
export declare const ErrorCodePushNotificationNotSupported = -32003;
|
|
143
143
|
export declare const PushNotificationNotSupportedErrorSchema: z.ZodObject<{
|
|
144
|
-
data: z.
|
|
144
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
145
145
|
} & {
|
|
146
146
|
code: z.ZodLiteral<-32003>;
|
|
147
147
|
message: z.ZodDefault<z.ZodString>;
|
|
@@ -160,7 +160,7 @@ export type PushNotificationNotSupportedError = z.infer<typeof PushNotificationN
|
|
|
160
160
|
*/
|
|
161
161
|
export declare const ErrorCodeUnsupportedOperation = -32004;
|
|
162
162
|
export declare const UnsupportedOperationErrorSchema: z.ZodObject<{
|
|
163
|
-
data: z.
|
|
163
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
164
164
|
} & {
|
|
165
165
|
code: z.ZodLiteral<-32004>;
|
|
166
166
|
message: z.ZodDefault<z.ZodString>;
|
|
@@ -179,7 +179,7 @@ export type UnsupportedOperationError = z.infer<typeof UnsupportedOperationError
|
|
|
179
179
|
*/
|
|
180
180
|
export declare const ErrorCodeContentTypeNotSupported = -32005;
|
|
181
181
|
export declare const ContentTypeNotSupportedErrorSchema: z.ZodObject<{
|
|
182
|
-
data: z.
|
|
182
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
183
183
|
} & {
|
|
184
184
|
code: z.ZodLiteral<-32005>;
|
|
185
185
|
message: z.ZodDefault<z.ZodString>;
|
|
@@ -198,7 +198,7 @@ export type ContentTypeNotSupportedError = z.infer<typeof ContentTypeNotSupporte
|
|
|
198
198
|
*/
|
|
199
199
|
export declare const ErrorCodeInvalidAgentResponse = -32006;
|
|
200
200
|
export declare const InvalidAgentResponseErrorSchema: z.ZodObject<{
|
|
201
|
-
data: z.
|
|
201
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
202
202
|
} & {
|
|
203
203
|
code: z.ZodLiteral<-32006>;
|
|
204
204
|
message: z.ZodDefault<z.ZodString>;
|
|
@@ -217,7 +217,7 @@ export type InvalidAgentResponseError = z.infer<typeof InvalidAgentResponseError
|
|
|
217
217
|
*/
|
|
218
218
|
export declare const ErrorCodeAuthenticatedExtendedCardNotConfigured = -32007;
|
|
219
219
|
export declare const AuthenticatedExtendedCardNotConfiguredErrorSchema: z.ZodObject<{
|
|
220
|
-
data: z.
|
|
220
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
221
221
|
} & {
|
|
222
222
|
code: z.ZodLiteral<-32007>;
|
|
223
223
|
message: z.ZodDefault<z.ZodString>;
|
|
@@ -237,7 +237,7 @@ export type AuthenticatedExtendedCardNotConfiguredError = z.infer<typeof Authent
|
|
|
237
237
|
export declare const KnownErrorCodeSchema: z.ZodUnion<[z.ZodLiteral<-32700>, z.ZodLiteral<-32600>, z.ZodLiteral<-32601>, z.ZodLiteral<-32602>, z.ZodLiteral<-32603>, z.ZodLiteral<-32001>, z.ZodLiteral<-32002>, z.ZodLiteral<-32003>, z.ZodLiteral<-32004>, z.ZodLiteral<-32005>, z.ZodLiteral<-32006>, z.ZodLiteral<-32007>]>;
|
|
238
238
|
export type KnownErrorCode = z.infer<typeof KnownErrorCodeSchema>;
|
|
239
239
|
export declare const A2AErrorSchema: z.ZodUnion<[z.ZodObject<{
|
|
240
|
-
data: z.
|
|
240
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
241
241
|
} & {
|
|
242
242
|
code: z.ZodLiteral<-32700>;
|
|
243
243
|
message: z.ZodDefault<z.ZodString>;
|
|
@@ -250,7 +250,7 @@ export declare const A2AErrorSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
250
250
|
data?: unknown;
|
|
251
251
|
message?: string | undefined;
|
|
252
252
|
}>, z.ZodObject<{
|
|
253
|
-
data: z.
|
|
253
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
254
254
|
} & {
|
|
255
255
|
code: z.ZodLiteral<-32600>;
|
|
256
256
|
message: z.ZodDefault<z.ZodString>;
|
|
@@ -263,7 +263,7 @@ export declare const A2AErrorSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
263
263
|
data?: unknown;
|
|
264
264
|
message?: string | undefined;
|
|
265
265
|
}>, z.ZodObject<{
|
|
266
|
-
data: z.
|
|
266
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
267
267
|
} & {
|
|
268
268
|
code: z.ZodLiteral<-32601>;
|
|
269
269
|
message: z.ZodDefault<z.ZodString>;
|
|
@@ -276,7 +276,7 @@ export declare const A2AErrorSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
276
276
|
data?: unknown;
|
|
277
277
|
message?: string | undefined;
|
|
278
278
|
}>, z.ZodObject<{
|
|
279
|
-
data: z.
|
|
279
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
280
280
|
} & {
|
|
281
281
|
code: z.ZodLiteral<-32602>;
|
|
282
282
|
message: z.ZodDefault<z.ZodString>;
|
|
@@ -289,7 +289,7 @@ export declare const A2AErrorSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
289
289
|
data?: unknown;
|
|
290
290
|
message?: string | undefined;
|
|
291
291
|
}>, z.ZodObject<{
|
|
292
|
-
data: z.
|
|
292
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
293
293
|
} & {
|
|
294
294
|
code: z.ZodLiteral<-32603>;
|
|
295
295
|
message: z.ZodDefault<z.ZodString>;
|
|
@@ -302,7 +302,7 @@ export declare const A2AErrorSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
302
302
|
data?: unknown;
|
|
303
303
|
message?: string | undefined;
|
|
304
304
|
}>, z.ZodObject<{
|
|
305
|
-
data: z.
|
|
305
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
306
306
|
} & {
|
|
307
307
|
code: z.ZodLiteral<-32001>;
|
|
308
308
|
message: z.ZodDefault<z.ZodString>;
|
|
@@ -315,7 +315,7 @@ export declare const A2AErrorSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
315
315
|
data?: unknown;
|
|
316
316
|
message?: string | undefined;
|
|
317
317
|
}>, z.ZodObject<{
|
|
318
|
-
data: z.
|
|
318
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
319
319
|
} & {
|
|
320
320
|
code: z.ZodLiteral<-32002>;
|
|
321
321
|
message: z.ZodDefault<z.ZodString>;
|
|
@@ -328,7 +328,7 @@ export declare const A2AErrorSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
328
328
|
data?: unknown;
|
|
329
329
|
message?: string | undefined;
|
|
330
330
|
}>, z.ZodObject<{
|
|
331
|
-
data: z.
|
|
331
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
332
332
|
} & {
|
|
333
333
|
code: z.ZodLiteral<-32003>;
|
|
334
334
|
message: z.ZodDefault<z.ZodString>;
|
|
@@ -341,7 +341,7 @@ export declare const A2AErrorSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
341
341
|
data?: unknown;
|
|
342
342
|
message?: string | undefined;
|
|
343
343
|
}>, z.ZodObject<{
|
|
344
|
-
data: z.
|
|
344
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
345
345
|
} & {
|
|
346
346
|
code: z.ZodLiteral<-32004>;
|
|
347
347
|
message: z.ZodDefault<z.ZodString>;
|
|
@@ -354,7 +354,7 @@ export declare const A2AErrorSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
354
354
|
data?: unknown;
|
|
355
355
|
message?: string | undefined;
|
|
356
356
|
}>, z.ZodObject<{
|
|
357
|
-
data: z.
|
|
357
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
358
358
|
} & {
|
|
359
359
|
code: z.ZodLiteral<-32005>;
|
|
360
360
|
message: z.ZodDefault<z.ZodString>;
|
|
@@ -367,7 +367,7 @@ export declare const A2AErrorSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
367
367
|
data?: unknown;
|
|
368
368
|
message?: string | undefined;
|
|
369
369
|
}>, z.ZodObject<{
|
|
370
|
-
data: z.
|
|
370
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
371
371
|
} & {
|
|
372
372
|
code: z.ZodLiteral<-32006>;
|
|
373
373
|
message: z.ZodDefault<z.ZodString>;
|
|
@@ -380,7 +380,7 @@ export declare const A2AErrorSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
380
380
|
data?: unknown;
|
|
381
381
|
message?: string | undefined;
|
|
382
382
|
}>, z.ZodObject<{
|
|
383
|
-
data: z.
|
|
383
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
384
384
|
} & {
|
|
385
385
|
code: z.ZodLiteral<-32007>;
|
|
386
386
|
message: z.ZodDefault<z.ZodString>;
|