@artinet/sdk 0.5.14 → 0.5.15

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 (33) hide show
  1. package/README.md +3 -0
  2. package/dist/server/express/server.d.ts +24 -24
  3. package/dist/services/a2a/factory/builder.d.ts +24 -24
  4. package/dist/services/a2a/helpers/message-builder.d.ts +1 -1
  5. package/dist/services/a2a/helpers/message-builder.js +4 -4
  6. package/dist/services/a2a/methods/get-task.d.ts +47 -47
  7. package/dist/services/a2a/methods/send-message.js +1 -1
  8. package/dist/services/a2a/methods/stream-message.js +1 -1
  9. package/dist/services/a2a/service.d.ts +157 -157
  10. package/dist/services/a2a/state/load.d.ts +1 -1
  11. package/dist/transport/trpc/a2a/factory/router.d.ts +1096 -1096
  12. package/dist/transport/trpc/a2a/routes/info.d.ts +37 -37
  13. package/dist/transport/trpc/a2a/routes/message/route.d.ts +227 -227
  14. package/dist/transport/trpc/a2a/routes/tasks/route.d.ts +260 -260
  15. package/dist/transport/trpc/a2a/trpc.d.ts +120 -120
  16. package/dist/types/interfaces/services/a2a/service.d.ts +1 -1
  17. package/dist/types/schemas/a2a/agent.d.ts +840 -840
  18. package/dist/types/schemas/a2a/agent.js +23 -2
  19. package/dist/types/schemas/a2a/auth.d.ts +197 -197
  20. package/dist/types/schemas/a2a/auth.js +19 -4
  21. package/dist/types/schemas/a2a/error.d.ts +24 -24
  22. package/dist/types/schemas/a2a/message.d.ts +4525 -4525
  23. package/dist/types/schemas/a2a/message.js +10 -2
  24. package/dist/types/schemas/a2a/notification.d.ts +403 -403
  25. package/dist/types/schemas/a2a/notification.js +7 -3
  26. package/dist/types/schemas/a2a/parameters.d.ts +264 -264
  27. package/dist/types/schemas/a2a/parameters.js +14 -1
  28. package/dist/types/schemas/a2a/protocol.d.ts +6042 -6042
  29. package/dist/types/schemas/a2a/rpc.d.ts +20 -20
  30. package/dist/types/schemas/a2a/rpc.js +5 -0
  31. package/dist/types/schemas/a2a/task.d.ts +2536 -2536
  32. package/dist/types/schemas/a2a/task.js +12 -11
  33. package/package.json +2 -2
@@ -15,6 +15,7 @@ export const PartBaseSchema = z
15
15
  metadata: z
16
16
  .record(z.string(), z.unknown())
17
17
  .optional()
18
+ .nullable()
18
19
  .describe("Optional metadata associated with this part."),
19
20
  })
20
21
  .describe("Defines base properties common to all message or artifact parts.");
@@ -29,6 +30,7 @@ export const FileBaseSchema = z
29
30
  name: z
30
31
  .string()
31
32
  .optional()
33
+ .nullable()
32
34
  .describe("An optional name for the file (e.g., 'document.pdf')."),
33
35
  /**
34
36
  * @optional The MIME type of the file (e.g., "application/pdf").
@@ -36,6 +38,7 @@ export const FileBaseSchema = z
36
38
  mimeType: z
37
39
  .string()
38
40
  .optional()
41
+ .nullable()
39
42
  .describe("The MIME type of the file (e.g., 'application/pdf')."),
40
43
  })
41
44
  .describe("Defines base properties for a file.");
@@ -50,7 +53,7 @@ export const FileWithBytesSchema = FileBaseSchema.extend({
50
53
  /**
51
54
  * @optional The `uri` property must be absent when `bytes` is present.
52
55
  */
53
- uri: z.never().optional().describe("The URI of the file."),
56
+ uri: z.never().optional().nullable().describe("The URI of the file."),
54
57
  }).describe("Represents a file with its content provided directly as a base64-encoded string.");
55
58
  /**
56
59
  * @description Represents a file with its content located at a specific URI.
@@ -66,6 +69,7 @@ export const FileWithUriSchema = FileBaseSchema.extend({
66
69
  bytes: z
67
70
  .never()
68
71
  .optional()
72
+ .nullable()
69
73
  .describe("The base64-encoded content of the file."),
70
74
  }).describe("Represents a file with its content located at a specific URI.");
71
75
  /**
@@ -140,6 +144,7 @@ export const ArtifactSchema = z
140
144
  name: z
141
145
  .string()
142
146
  .optional()
147
+ .nullable()
143
148
  .describe("A human-readable name for the artifact."),
144
149
  /**
145
150
  * @optional A human-readable description of the artifact.
@@ -147,6 +152,7 @@ export const ArtifactSchema = z
147
152
  description: z
148
153
  .string()
149
154
  .optional()
155
+ .nullable()
150
156
  .describe("A human-readable description of the artifact."),
151
157
  /**
152
158
  * @optional An array of content parts that make up the artifact.
@@ -160,6 +166,7 @@ export const ArtifactSchema = z
160
166
  metadata: z
161
167
  .record(z.string(), z.unknown())
162
168
  .optional()
169
+ .nullable()
163
170
  .describe("Optional metadata for extensions. The key is an extension-specific identifier."),
164
171
  /**
165
172
  * @optional The URIs of extensions that are relevant to this artifact.
@@ -167,6 +174,7 @@ export const ArtifactSchema = z
167
174
  extension: z
168
175
  .array(z.string())
169
176
  .optional()
177
+ .nullable()
170
178
  .describe("The URIs of extensions that are relevant to this artifact."),
171
179
  })
172
180
  .describe("Represents a file, data structure, or other resource generated by an agent during a task. It can be composed of multiple parts.");
@@ -198,6 +206,7 @@ export const MessageSchema = z
198
206
  metadata: z
199
207
  .record(z.string(), z.unknown())
200
208
  .optional()
209
+ .nullable()
201
210
  .describe("Optional metadata for extensions. The key is an extension-specific identifier."),
202
211
  /**
203
212
  * @optional The URIs of extensions that are relevant to this message.
@@ -205,6 +214,7 @@ export const MessageSchema = z
205
214
  extensions: z
206
215
  .array(z.string())
207
216
  .optional()
217
+ .nullable()
208
218
  .describe("The URIs of extensions that are relevant to this message."),
209
219
  /**
210
220
  * @optional A list of other task IDs that this message references for additional context.
@@ -212,6 +222,7 @@ export const MessageSchema = z
212
222
  referenceTaskIds: z
213
223
  .array(z.string())
214
224
  .optional()
225
+ .nullable()
215
226
  .describe("A list of other task IDs that this message references for additional context."),
216
227
  /**
217
228
  * @required A unique identifier for the message, typically a UUID, generated by the sender.
@@ -225,6 +236,7 @@ export const MessageSchema = z
225
236
  taskId: z
226
237
  .string()
227
238
  .optional()
239
+ .nullable()
228
240
  .describe("The identifier of the task this message is part of. Can be omitted for the first message of a new task."),
229
241
  /**
230
242
  * @optional The context identifier for this message, used to group related interactions.
@@ -232,6 +244,7 @@ export const MessageSchema = z
232
244
  contextId: z
233
245
  .string()
234
246
  .optional()
247
+ .nullable()
235
248
  .describe("The context identifier for this message, used to group related interactions."),
236
249
  /**
237
250
  * @required The type of this object, used as a discriminator. Always 'message' for a Message.