@artinet/sdk 0.5.16 → 0.5.17
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 +9 -34
- package/dist/server/express/server.d.ts +24 -24
- package/dist/services/a2a/factory/builder.d.ts +24 -24
- 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 +22 -0
- package/dist/services/a2a/helpers/index.d.ts +1 -0
- package/dist/services/a2a/helpers/index.js +1 -0
- package/dist/services/a2a/methods/get-task.d.ts +46 -46
- package/dist/services/a2a/service.d.ts +152 -152
- 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 +2 -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/package.json +1 -1
|
@@ -38,7 +38,6 @@ export const AgentExtensionSchema = z
|
|
|
38
38
|
description: z
|
|
39
39
|
.string()
|
|
40
40
|
.optional()
|
|
41
|
-
.nullable()
|
|
42
41
|
.describe("A description of how this agent uses this extension."),
|
|
43
42
|
/**
|
|
44
43
|
* @optional Whether the client must follow specific requirements of the extension.
|
|
@@ -46,7 +45,6 @@ export const AgentExtensionSchema = z
|
|
|
46
45
|
required: z
|
|
47
46
|
.boolean()
|
|
48
47
|
.optional()
|
|
49
|
-
.nullable()
|
|
50
48
|
.describe("Whether the client must follow specific requirements of the extension."),
|
|
51
49
|
/**
|
|
52
50
|
* @optional Optional configuration for the extension.
|
|
@@ -54,7 +52,6 @@ export const AgentExtensionSchema = z
|
|
|
54
52
|
params: z
|
|
55
53
|
.record(z.string(), z.unknown())
|
|
56
54
|
.optional()
|
|
57
|
-
.nullable()
|
|
58
55
|
.describe("Optional configuration for the extension."),
|
|
59
56
|
})
|
|
60
57
|
.describe("A declaration of an extension supported by an Agent.");
|
|
@@ -69,7 +66,6 @@ export const AgentCapabilitiesSchema = z
|
|
|
69
66
|
streaming: z
|
|
70
67
|
.boolean()
|
|
71
68
|
.optional()
|
|
72
|
-
.nullable()
|
|
73
69
|
.describe("Indicates if the agent supports streaming responses."),
|
|
74
70
|
/**
|
|
75
71
|
* @optional Indicates if the agent supports push notification mechanisms.
|
|
@@ -77,7 +73,6 @@ export const AgentCapabilitiesSchema = z
|
|
|
77
73
|
pushNotifications: z
|
|
78
74
|
.boolean()
|
|
79
75
|
.optional()
|
|
80
|
-
.nullable()
|
|
81
76
|
.describe("Indicates if the agent supports push notification mechanisms."),
|
|
82
77
|
/**
|
|
83
78
|
* @optional Indicates if the agent supports providing state transition history.
|
|
@@ -85,7 +80,6 @@ export const AgentCapabilitiesSchema = z
|
|
|
85
80
|
stateTransitionHistory: z
|
|
86
81
|
.boolean()
|
|
87
82
|
.optional()
|
|
88
|
-
.nullable()
|
|
89
83
|
.describe("Indicates if the agent supports providing state transition history."),
|
|
90
84
|
/**
|
|
91
85
|
* @optional Extensions supported by this agent.
|
|
@@ -93,7 +87,6 @@ export const AgentCapabilitiesSchema = z
|
|
|
93
87
|
extensions: z
|
|
94
88
|
.array(AgentExtensionSchema)
|
|
95
89
|
.optional()
|
|
96
|
-
.nullable()
|
|
97
90
|
.describe("Extensions supported by this agent."),
|
|
98
91
|
})
|
|
99
92
|
.describe("Defines optional capabilities supported by an agent.");
|
|
@@ -126,7 +119,6 @@ export const AgentSkillSchema = z
|
|
|
126
119
|
examples: z
|
|
127
120
|
.array(z.string())
|
|
128
121
|
.optional()
|
|
129
|
-
.nullable()
|
|
130
122
|
.describe("List of example inputs or use cases for the skill."),
|
|
131
123
|
/**
|
|
132
124
|
* @optional List of input modes supported by this skill.
|
|
@@ -134,7 +126,6 @@ export const AgentSkillSchema = z
|
|
|
134
126
|
inputModes: z
|
|
135
127
|
.array(z.string())
|
|
136
128
|
.optional()
|
|
137
|
-
.nullable()
|
|
138
129
|
.describe("List of input modes supported by this skill."),
|
|
139
130
|
/**
|
|
140
131
|
* @optional List of output modes supported by this skill.
|
|
@@ -142,7 +133,6 @@ export const AgentSkillSchema = z
|
|
|
142
133
|
outputModes: z
|
|
143
134
|
.array(z.string())
|
|
144
135
|
.optional()
|
|
145
|
-
.nullable()
|
|
146
136
|
.describe("List of output modes supported by this skill."),
|
|
147
137
|
/**
|
|
148
138
|
* @optional Security schemes necessary for the agent to leverage this skill.
|
|
@@ -150,7 +140,6 @@ export const AgentSkillSchema = z
|
|
|
150
140
|
security: z
|
|
151
141
|
.array(z.record(z.string(), z.array(z.string())))
|
|
152
142
|
.optional()
|
|
153
|
-
.nullable()
|
|
154
143
|
.describe("Security schemes necessary for the agent to leverage this skill."),
|
|
155
144
|
})
|
|
156
145
|
.describe("A unit of capability that an agent can perform.");
|
|
@@ -177,7 +166,6 @@ export const AgentCardSignatureSchema = z
|
|
|
177
166
|
header: z
|
|
178
167
|
.record(z.string(), z.unknown())
|
|
179
168
|
.optional()
|
|
180
|
-
.nullable()
|
|
181
169
|
.describe("The unprotected JWS header values."),
|
|
182
170
|
})
|
|
183
171
|
.describe("A JWS signature of an AgentCard.");
|
|
@@ -217,7 +205,6 @@ export const AgentCardSchema = z
|
|
|
217
205
|
preferredTransport: z
|
|
218
206
|
.union([TransportProtocolSchema, z.string()])
|
|
219
207
|
.optional()
|
|
220
|
-
.nullable()
|
|
221
208
|
.describe("The preferred transport protocol for the agent."),
|
|
222
209
|
/**
|
|
223
210
|
* @optional Additional supported interfaces (transport and URL combinations).
|
|
@@ -225,7 +212,6 @@ export const AgentCardSchema = z
|
|
|
225
212
|
additionalInterfaces: z
|
|
226
213
|
.array(AgentInterfaceSchema)
|
|
227
214
|
.optional()
|
|
228
|
-
.nullable()
|
|
229
215
|
.describe("Additional supported interfaces (transport and URL combinations)."),
|
|
230
216
|
/**
|
|
231
217
|
* @optional The URL of the agent's icon.
|
|
@@ -234,14 +220,11 @@ export const AgentCardSchema = z
|
|
|
234
220
|
.string()
|
|
235
221
|
.url()
|
|
236
222
|
.optional()
|
|
237
|
-
.nullable()
|
|
238
223
|
.describe("The URL of the agent's icon."),
|
|
239
224
|
/**
|
|
240
225
|
* @optional The service provider of the agent.
|
|
241
226
|
*/
|
|
242
|
-
provider: AgentProviderSchema.optional()
|
|
243
|
-
.nullable()
|
|
244
|
-
.describe("The service provider of the agent."),
|
|
227
|
+
provider: AgentProviderSchema.optional().describe("The service provider of the agent."),
|
|
245
228
|
/**
|
|
246
229
|
* @required The version identifier for the agent or its API.
|
|
247
230
|
*/
|
|
@@ -255,7 +238,6 @@ export const AgentCardSchema = z
|
|
|
255
238
|
.string()
|
|
256
239
|
.url()
|
|
257
240
|
.optional()
|
|
258
|
-
.nullable()
|
|
259
241
|
.describe("An optional URL pointing to the agent's documentation."),
|
|
260
242
|
/**
|
|
261
243
|
* @required The capabilities supported by the agent.
|
|
@@ -268,7 +250,6 @@ export const AgentCardSchema = z
|
|
|
268
250
|
securitySchemes: z
|
|
269
251
|
.record(z.string(), SecuritySchemeSchema)
|
|
270
252
|
.optional()
|
|
271
|
-
.nullable()
|
|
272
253
|
.describe("Security scheme details used for authenticating with this agent. Maps scheme names to their configurations."),
|
|
273
254
|
/**
|
|
274
255
|
* @optional Security requirements for contacting the agent.
|
|
@@ -277,7 +258,6 @@ export const AgentCardSchema = z
|
|
|
277
258
|
security: z
|
|
278
259
|
.array(z.record(z.string(), z.array(z.string())))
|
|
279
260
|
.optional()
|
|
280
|
-
.nullable()
|
|
281
261
|
.describe("Security requirements for contacting the agent. Array of security requirement objects, where each object maps scheme names to scope arrays."),
|
|
282
262
|
/**
|
|
283
263
|
* @required The default input modes supported by the agent.
|
|
@@ -303,7 +283,6 @@ export const AgentCardSchema = z
|
|
|
303
283
|
supportsAuthenticatedExtendedCard: z
|
|
304
284
|
.boolean()
|
|
305
285
|
.optional()
|
|
306
|
-
.nullable()
|
|
307
286
|
.describe("True if the agent supports providing an extended agent card when the user is authenticated."),
|
|
308
287
|
/**
|
|
309
288
|
* @optional JSON Web Signatures computed for this AgentCard.
|
|
@@ -311,7 +290,6 @@ export const AgentCardSchema = z
|
|
|
311
290
|
signatures: z
|
|
312
291
|
.array(AgentCardSignatureSchema)
|
|
313
292
|
.optional()
|
|
314
|
-
.nullable()
|
|
315
293
|
.describe("JSON Web Signatures computed for this AgentCard."),
|
|
316
294
|
})
|
|
317
295
|
.describe("An AgentCard conveys key information about an agent's identity, capabilities, skills, authentication requirements, and communication modalities.");
|