@artinet/sdk 0.5.14 → 0.5.16

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