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