@artinet/sdk 0.5.13 → 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 (35) hide show
  1. package/README.md +6 -2
  2. package/dist/client/a2a-client.d.ts +10 -0
  3. package/dist/client/a2a-client.js +20 -9
  4. package/dist/server/express/server.d.ts +24 -24
  5. package/dist/services/a2a/factory/builder.d.ts +24 -24
  6. package/dist/services/a2a/helpers/message-builder.d.ts +1 -1
  7. package/dist/services/a2a/helpers/message-builder.js +4 -4
  8. package/dist/services/a2a/methods/get-task.d.ts +47 -47
  9. package/dist/services/a2a/methods/send-message.js +1 -1
  10. package/dist/services/a2a/methods/stream-message.js +1 -1
  11. package/dist/services/a2a/service.d.ts +157 -157
  12. package/dist/services/a2a/state/load.d.ts +1 -1
  13. package/dist/transport/trpc/a2a/factory/router.d.ts +1096 -1096
  14. package/dist/transport/trpc/a2a/routes/info.d.ts +37 -37
  15. package/dist/transport/trpc/a2a/routes/message/route.d.ts +227 -227
  16. package/dist/transport/trpc/a2a/routes/tasks/route.d.ts +260 -260
  17. package/dist/transport/trpc/a2a/trpc.d.ts +120 -120
  18. package/dist/types/interfaces/services/a2a/service.d.ts +1 -1
  19. package/dist/types/schemas/a2a/agent.d.ts +840 -840
  20. package/dist/types/schemas/a2a/agent.js +23 -2
  21. package/dist/types/schemas/a2a/auth.d.ts +197 -197
  22. package/dist/types/schemas/a2a/auth.js +19 -4
  23. package/dist/types/schemas/a2a/error.d.ts +24 -24
  24. package/dist/types/schemas/a2a/message.d.ts +4525 -4525
  25. package/dist/types/schemas/a2a/message.js +10 -2
  26. package/dist/types/schemas/a2a/notification.d.ts +403 -403
  27. package/dist/types/schemas/a2a/notification.js +7 -3
  28. package/dist/types/schemas/a2a/parameters.d.ts +264 -264
  29. package/dist/types/schemas/a2a/parameters.js +14 -1
  30. package/dist/types/schemas/a2a/protocol.d.ts +6042 -6042
  31. package/dist/types/schemas/a2a/rpc.d.ts +20 -20
  32. package/dist/types/schemas/a2a/rpc.js +5 -0
  33. package/dist/types/schemas/a2a/task.d.ts +2536 -2536
  34. package/dist/types/schemas/a2a/task.js +12 -11
  35. package/package.json +2 -2
@@ -12,7 +12,7 @@ export const GetTaskPushNotificationConfigParamSchema = TaskIdParamsSchema.exten
12
12
  /**
13
13
  * @optional The ID of the push notification configuration to retrieve.
14
14
  */
15
- pushNotificationConfigId: z.string().optional(),
15
+ pushNotificationConfigId: z.string().optional().nullable(),
16
16
  });
17
17
  export const GetTaskPushNotificationConfigParamsSchema = z.union([
18
18
  GetTaskPushNotificationConfigParamSchema,
@@ -45,7 +45,7 @@ export const PushNotificationAuthenticationInfoSchema = z
45
45
  /**
46
46
  * @optional Optional credentials required by the push notification endpoint.
47
47
  */
48
- credentials: z.string().optional(),
48
+ credentials: z.string().optional().nullable(),
49
49
  })
50
50
  .describe("Defines authentication details for a push notification endpoint.");
51
51
  /**
@@ -60,6 +60,7 @@ export const PushNotificationConfigSchema = z
60
60
  id: z
61
61
  .string()
62
62
  .optional()
63
+ .nullable()
63
64
  .describe("A unique ID for the push notification configuration, created by the server to support multiple notification callbacks."),
64
65
  /**
65
66
  * @required The callback URL where the agent should send push notifications.
@@ -74,11 +75,14 @@ export const PushNotificationConfigSchema = z
74
75
  token: z
75
76
  .string()
76
77
  .optional()
78
+ .nullable()
77
79
  .describe("A unique token for this task or session to validate incoming push notifications."),
78
80
  /**
79
81
  * @optional Authentication details for the agent to use when calling the notification URL.
80
82
  */
81
- authentication: PushNotificationAuthenticationInfoSchema.optional().describe("Authentication details for the agent to use when calling the notification URL."),
83
+ authentication: PushNotificationAuthenticationInfoSchema.optional()
84
+ .nullable()
85
+ .describe("Authentication details for the agent to use when calling the notification URL."),
82
86
  })
83
87
  .describe("Defines the configuration for setting up push notifications for task updates.");
84
88
  /**