@artinet/sdk 0.5.4 → 0.5.6
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/CHANGELOG.md +106 -20
- package/README.md +472 -215
- package/dist/client/a2a-client.js +6 -1
- package/dist/client/a2a-client.js.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/server/express/errors.js +51 -0
- package/dist/server/express/errors.js.map +1 -0
- package/dist/server/express/index.js +4 -0
- package/dist/server/express/index.js.map +1 -0
- package/dist/server/express/middeware.js +116 -0
- package/dist/server/express/middeware.js.map +1 -0
- package/dist/server/express/server.js +80 -0
- package/dist/server/express/server.js.map +1 -0
- package/dist/server/index.js +1 -7
- package/dist/server/index.js.map +1 -1
- package/dist/services/a2a/factory/builder.js +392 -0
- package/dist/services/a2a/factory/builder.js.map +1 -0
- package/dist/services/a2a/factory/context.js +151 -0
- package/dist/services/a2a/factory/context.js.map +1 -0
- package/dist/services/a2a/factory/event.js +182 -0
- package/dist/services/a2a/factory/event.js.map +1 -0
- package/dist/services/a2a/factory/index.js +6 -0
- package/dist/services/a2a/factory/index.js.map +1 -0
- package/dist/services/a2a/factory/method.js +15 -0
- package/dist/services/a2a/factory/method.js.map +1 -0
- package/dist/services/a2a/factory/service.js +12 -0
- package/dist/services/a2a/factory/service.js.map +1 -0
- package/dist/services/a2a/helpers/index.js +2 -0
- package/dist/services/a2a/helpers/index.js.map +1 -0
- package/dist/services/a2a/helpers/part.js +47 -0
- package/dist/services/a2a/helpers/part.js.map +1 -0
- package/dist/services/a2a/index.js +5 -1
- package/dist/services/a2a/index.js.map +1 -1
- package/dist/services/a2a/managers/cancellation.js +17 -0
- package/dist/services/a2a/managers/cancellation.js.map +1 -0
- package/dist/services/a2a/managers/connection.js +17 -0
- package/dist/services/a2a/managers/connection.js.map +1 -0
- package/dist/services/a2a/managers/context.js +17 -0
- package/dist/services/a2a/managers/context.js.map +1 -0
- package/dist/services/a2a/managers/index.js +6 -0
- package/dist/services/a2a/managers/index.js.map +1 -0
- package/dist/services/a2a/managers/task.js +17 -0
- package/dist/services/a2a/managers/task.js.map +1 -0
- package/dist/services/a2a/methods/cancel-task.js +47 -0
- package/dist/services/a2a/methods/cancel-task.js.map +1 -0
- package/dist/services/a2a/methods/get-task.js +15 -0
- package/dist/services/a2a/methods/get-task.js.map +1 -0
- package/dist/services/a2a/methods/index.js +6 -0
- package/dist/services/a2a/methods/index.js.map +1 -0
- package/dist/services/a2a/methods/resubscribe-task.js +77 -0
- package/dist/services/a2a/methods/resubscribe-task.js.map +1 -0
- package/dist/services/a2a/methods/send-message.js +20 -0
- package/dist/services/a2a/methods/send-message.js.map +1 -0
- package/dist/services/a2a/methods/stream-message.js +39 -0
- package/dist/services/a2a/methods/stream-message.js.map +1 -0
- package/dist/services/a2a/service.js +88 -239
- package/dist/services/a2a/service.js.map +1 -1
- package/dist/services/a2a/state/index.js +4 -0
- package/dist/services/a2a/state/index.js.map +1 -0
- package/dist/services/a2a/state/load.js +43 -0
- package/dist/services/a2a/state/load.js.map +1 -0
- package/dist/services/a2a/state/process.js +14 -0
- package/dist/services/a2a/state/process.js.map +1 -0
- package/dist/services/a2a/state/update/artifact.js +40 -0
- package/dist/services/a2a/state/update/artifact.js.map +1 -0
- package/dist/services/a2a/state/update/index.js +3 -0
- package/dist/services/a2a/state/update/index.js.map +1 -0
- package/dist/{server/lib/update/base.js → services/a2a/state/update/update.js} +23 -9
- package/dist/services/a2a/state/update/update.js.map +1 -0
- package/dist/services/core/execution/execute.js +26 -0
- package/dist/services/core/execution/execute.js.map +1 -0
- package/dist/services/core/execution/index.js +2 -0
- package/dist/services/core/execution/index.js.map +1 -0
- package/dist/services/core/index.js +3 -0
- package/dist/services/core/index.js.map +1 -0
- package/dist/services/core/managers/command.js +95 -0
- package/dist/services/core/managers/command.js.map +1 -0
- package/dist/services/core/managers/event.js +57 -0
- package/dist/services/core/managers/event.js.map +1 -0
- package/dist/services/core/managers/index.js +4 -0
- package/dist/services/core/managers/index.js.map +1 -0
- package/dist/services/core/managers/stream.js +78 -0
- package/dist/services/core/managers/stream.js.map +1 -0
- package/dist/services/index.js +2 -1
- package/dist/services/index.js.map +1 -1
- package/dist/transport/index.js +1 -1
- package/dist/transport/index.js.map +1 -1
- package/dist/transport/rpc/parser.js +13 -5
- package/dist/transport/rpc/parser.js.map +1 -1
- package/dist/transport/rpc/rpc-client.js +10 -2
- package/dist/transport/rpc/rpc-client.js.map +1 -1
- package/dist/transport/streaming/event-stream.js +5 -1
- package/dist/transport/streaming/event-stream.js.map +1 -1
- package/dist/transport/trpc/a2a/factory/index.js +2 -0
- package/dist/transport/trpc/a2a/factory/index.js.map +1 -0
- package/dist/transport/trpc/a2a/factory/router.js +17 -0
- package/dist/transport/trpc/a2a/factory/router.js.map +1 -0
- package/dist/transport/trpc/a2a/index.js +4 -0
- package/dist/transport/trpc/a2a/index.js.map +1 -0
- package/dist/transport/trpc/a2a/routes/index.js +4 -0
- package/dist/transport/trpc/a2a/routes/index.js.map +1 -0
- package/dist/transport/trpc/a2a/routes/info.js +10 -0
- package/dist/transport/trpc/a2a/routes/info.js.map +1 -0
- package/dist/transport/trpc/a2a/routes/message/index.js +2 -0
- package/dist/transport/trpc/a2a/routes/message/index.js.map +1 -0
- package/dist/transport/trpc/a2a/routes/message/route.js +38 -0
- package/dist/transport/trpc/a2a/routes/message/route.js.map +1 -0
- package/dist/transport/trpc/a2a/routes/tasks/index.js +2 -0
- package/dist/transport/trpc/a2a/routes/tasks/index.js.map +1 -0
- package/dist/transport/trpc/a2a/routes/tasks/route.js +71 -0
- package/dist/transport/trpc/a2a/routes/tasks/route.js.map +1 -0
- package/dist/transport/trpc/a2a/trpc.js +36 -0
- package/dist/transport/trpc/a2a/trpc.js.map +1 -0
- package/dist/transport/trpc/index.js +2 -0
- package/dist/transport/trpc/index.js.map +1 -0
- package/dist/types/client/a2a-client.d.ts +5 -1
- package/dist/types/client/a2a-client.d.ts.map +1 -1
- package/dist/types/ext.js +11 -0
- package/dist/types/ext.js.map +1 -0
- package/dist/types/index.d.ts +3 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +3 -4
- package/dist/types/index.js.map +1 -1
- package/dist/types/interfaces/client.js +6 -0
- package/dist/types/interfaces/client.js.map +1 -0
- package/dist/types/interfaces/index.js +4 -0
- package/dist/types/interfaces/index.js.map +1 -0
- package/dist/types/interfaces/services/a2a/builder.js +2 -0
- package/dist/types/interfaces/services/a2a/builder.js.map +1 -0
- package/dist/types/interfaces/services/a2a/context.js +6 -0
- package/dist/types/interfaces/services/a2a/context.js.map +1 -0
- package/dist/types/interfaces/services/a2a/engine.js +6 -0
- package/dist/types/interfaces/services/a2a/engine.js.map +1 -0
- package/dist/types/interfaces/services/a2a/index.js +6 -0
- package/dist/types/interfaces/services/a2a/index.js.map +1 -0
- package/dist/types/interfaces/services/a2a/legacy.js +6 -0
- package/dist/types/interfaces/services/a2a/legacy.js.map +1 -0
- package/dist/types/interfaces/services/a2a/service.js +6 -0
- package/dist/types/interfaces/services/a2a/service.js.map +1 -0
- package/dist/types/interfaces/services/core/context/command.js +6 -0
- package/dist/types/interfaces/services/core/context/command.js.map +1 -0
- package/dist/types/interfaces/services/core/context/context.js +6 -0
- package/dist/types/interfaces/services/core/context/context.js.map +1 -0
- package/dist/types/interfaces/services/core/context/index.js +4 -0
- package/dist/types/interfaces/services/core/context/index.js.map +1 -0
- package/dist/types/interfaces/services/core/context/types.js +6 -0
- package/dist/types/interfaces/services/core/context/types.js.map +1 -0
- package/dist/types/interfaces/services/core/execution/engine.js +6 -0
- package/dist/types/interfaces/services/core/execution/engine.js.map +1 -0
- package/dist/types/interfaces/services/core/execution/environment.js +6 -0
- package/dist/types/interfaces/services/core/execution/environment.js.map +1 -0
- package/dist/types/interfaces/services/core/execution/execute.js +6 -0
- package/dist/types/interfaces/services/core/execution/execute.js.map +1 -0
- package/dist/types/interfaces/services/core/execution/index.js +4 -0
- package/dist/types/interfaces/services/core/execution/index.js.map +1 -0
- package/dist/types/interfaces/services/core/index.js +5 -0
- package/dist/types/interfaces/services/core/index.js.map +1 -0
- package/dist/types/interfaces/services/core/managers/cancellation.js +6 -0
- package/dist/types/interfaces/services/core/managers/cancellation.js.map +1 -0
- package/dist/types/interfaces/services/core/managers/connection.js +6 -0
- package/dist/types/interfaces/services/core/managers/connection.js.map +1 -0
- package/dist/types/interfaces/services/core/managers/context.js +6 -0
- package/dist/types/interfaces/services/core/managers/context.js.map +1 -0
- package/dist/types/interfaces/services/core/managers/event.js +6 -0
- package/dist/types/interfaces/services/core/managers/event.js.map +1 -0
- package/dist/types/interfaces/services/core/managers/index.js +7 -0
- package/dist/types/interfaces/services/core/managers/index.js.map +1 -0
- package/dist/types/interfaces/services/core/managers/stream.js +6 -0
- package/dist/types/interfaces/services/core/managers/stream.js.map +1 -0
- package/dist/types/interfaces/services/core/managers/task.js +2 -0
- package/dist/types/interfaces/services/core/managers/task.js.map +1 -0
- package/dist/types/interfaces/services/core/service.js +6 -0
- package/dist/types/interfaces/services/core/service.js.map +1 -0
- package/dist/types/interfaces/services/index.js +4 -0
- package/dist/types/interfaces/services/index.js.map +1 -0
- package/dist/types/{services → interfaces/services}/protocol.js +4 -0
- package/dist/types/interfaces/services/protocol.js.map +1 -0
- package/dist/types/interfaces/storage.js +6 -0
- package/dist/types/interfaces/storage.js.map +1 -0
- package/dist/types/schemas/a2a/agent.js +319 -0
- package/dist/types/schemas/a2a/agent.js.map +1 -0
- package/dist/types/schemas/a2a/auth.js +274 -0
- package/dist/types/schemas/a2a/auth.js.map +1 -0
- package/dist/types/schemas/a2a/error.js +119 -0
- package/dist/types/schemas/a2a/error.js.map +1 -1
- package/dist/types/schemas/a2a/index.js +8 -4
- package/dist/types/schemas/a2a/index.js.map +1 -1
- package/dist/types/schemas/a2a/kind.js +21 -0
- package/dist/types/schemas/a2a/kind.js.map +1 -0
- package/dist/types/schemas/a2a/message.js +130 -1
- package/dist/types/schemas/a2a/message.js.map +1 -1
- package/dist/types/schemas/a2a/notification.js +202 -1
- package/dist/types/schemas/a2a/notification.js.map +1 -1
- package/dist/types/schemas/a2a/parameters.js +241 -1
- package/dist/types/schemas/a2a/parameters.js.map +1 -1
- package/dist/types/schemas/a2a/protocol.js +60 -0
- package/dist/types/schemas/a2a/protocol.js.map +1 -0
- package/dist/types/schemas/a2a/rpc.js +126 -1
- package/dist/types/schemas/a2a/rpc.js.map +1 -1
- package/dist/types/schemas/a2a/task.js +131 -12
- package/dist/types/schemas/a2a/task.js.map +1 -1
- package/dist/types/schemas/a2a/transport.js +28 -0
- package/dist/types/schemas/a2a/transport.js.map +1 -0
- package/dist/types/schemas/deployment/index.js +3 -0
- package/dist/types/schemas/deployment/index.js.map +1 -0
- package/dist/types/schemas/deployment/proxy.js +6 -0
- package/dist/types/schemas/deployment/proxy.js.map +1 -0
- package/dist/types/schemas/deployment/request.js +88 -0
- package/dist/types/schemas/deployment/request.js.map +1 -0
- package/dist/types/schemas/index.js +1 -0
- package/dist/types/schemas/index.js.map +1 -1
- package/dist/types/server/express/errors.d.ts +10 -0
- package/dist/types/server/express/errors.d.ts.map +1 -0
- package/dist/types/server/express/index.d.ts +4 -0
- package/dist/types/server/express/index.d.ts.map +1 -0
- package/dist/types/server/express/middeware.d.ts +8 -0
- package/dist/types/server/express/middeware.d.ts.map +1 -0
- package/dist/types/server/express/server.d.ts +71 -0
- package/dist/types/server/express/server.d.ts.map +1 -0
- package/dist/types/server/index.d.ts +1 -7
- package/dist/types/server/index.d.ts.map +1 -1
- package/dist/types/services/a2a/factory/builder.d.ts +352 -0
- package/dist/types/services/a2a/factory/builder.d.ts.map +1 -0
- package/dist/types/services/a2a/factory/context.d.ts +133 -0
- package/dist/types/services/a2a/factory/context.d.ts.map +1 -0
- package/dist/types/services/a2a/factory/event.d.ts +59 -0
- package/dist/types/services/a2a/factory/event.d.ts.map +1 -0
- package/dist/types/services/a2a/factory/index.d.ts +6 -0
- package/dist/types/services/a2a/factory/index.d.ts.map +1 -0
- package/dist/types/services/a2a/factory/method.d.ts +7 -0
- package/dist/types/services/a2a/factory/method.d.ts.map +1 -0
- package/dist/types/services/a2a/factory/service.d.ts +10 -0
- package/dist/types/services/a2a/factory/service.d.ts.map +1 -0
- package/dist/types/services/a2a/helpers/index.d.ts +2 -0
- package/dist/types/services/a2a/helpers/index.d.ts.map +1 -0
- package/dist/types/services/a2a/helpers/part.d.ts +49 -0
- package/dist/types/services/a2a/helpers/part.d.ts.map +1 -0
- package/dist/types/services/a2a/index.d.ts +5 -1
- package/dist/types/services/a2a/index.d.ts.map +1 -1
- package/dist/types/services/a2a/managers/cancellation.d.ts +12 -0
- package/dist/types/services/a2a/managers/cancellation.d.ts.map +1 -0
- package/dist/types/services/a2a/managers/connection.d.ts +12 -0
- package/dist/types/services/a2a/managers/connection.d.ts.map +1 -0
- package/dist/types/services/a2a/managers/context.d.ts +12 -0
- package/dist/types/services/a2a/managers/context.d.ts.map +1 -0
- package/dist/types/services/a2a/managers/index.d.ts +6 -0
- package/dist/types/services/a2a/managers/index.d.ts.map +1 -0
- package/dist/types/services/a2a/managers/task.d.ts +12 -0
- package/dist/types/services/a2a/managers/task.d.ts.map +1 -0
- package/dist/types/services/a2a/methods/cancel-task.d.ts +8 -0
- package/dist/types/services/a2a/methods/cancel-task.d.ts.map +1 -0
- package/dist/types/services/a2a/methods/get-task.d.ts +113 -0
- package/dist/types/services/a2a/methods/get-task.d.ts.map +1 -0
- package/dist/types/services/a2a/methods/index.d.ts +6 -0
- package/dist/types/services/a2a/methods/index.d.ts.map +1 -0
- package/dist/types/services/a2a/methods/resubscribe-task.d.ts +8 -0
- package/dist/types/services/a2a/methods/resubscribe-task.d.ts.map +1 -0
- package/dist/types/services/a2a/methods/send-message.d.ts +8 -0
- package/dist/types/services/a2a/methods/send-message.d.ts.map +1 -0
- package/dist/types/services/a2a/methods/stream-message.d.ts +9 -0
- package/dist/types/services/a2a/methods/stream-message.d.ts.map +1 -0
- package/dist/types/services/a2a/service.d.ts +375 -41
- package/dist/types/services/a2a/service.d.ts.map +1 -1
- package/dist/types/services/a2a/state/index.d.ts +4 -0
- package/dist/types/services/a2a/state/index.d.ts.map +1 -0
- package/dist/types/services/a2a/state/load.d.ts +15 -0
- package/dist/types/services/a2a/state/load.d.ts.map +1 -0
- package/dist/types/services/a2a/state/process.d.ts +8 -0
- package/dist/types/services/a2a/state/process.d.ts.map +1 -0
- package/dist/types/services/a2a/state/update/artifact.d.ts +11 -0
- package/dist/types/services/a2a/state/update/artifact.d.ts.map +1 -0
- package/dist/types/services/a2a/state/update/index.d.ts +3 -0
- package/dist/types/services/a2a/state/update/index.d.ts.map +1 -0
- package/dist/types/services/a2a/state/update/update.d.ts +24 -0
- package/dist/types/services/a2a/state/update/update.d.ts.map +1 -0
- package/dist/types/services/core/execution/execute.d.ts +7 -0
- package/dist/types/services/core/execution/execute.d.ts.map +1 -0
- package/dist/types/services/core/execution/index.d.ts +2 -0
- package/dist/types/services/core/execution/index.d.ts.map +1 -0
- package/dist/types/services/core/index.d.ts +3 -0
- package/dist/types/services/core/index.d.ts.map +1 -0
- package/dist/types/services/core/managers/command.d.ts +40 -0
- package/dist/types/services/core/managers/command.d.ts.map +1 -0
- package/dist/types/services/core/managers/event.d.ts +19 -0
- package/dist/types/services/core/managers/event.d.ts.map +1 -0
- package/dist/types/services/core/managers/index.d.ts +4 -0
- package/dist/types/services/core/managers/index.d.ts.map +1 -0
- package/dist/types/services/core/managers/stream.d.ts +21 -0
- package/dist/types/services/core/managers/stream.d.ts.map +1 -0
- package/dist/types/services/index.d.ts +2 -1
- package/dist/types/services/index.d.ts.map +1 -1
- package/dist/types/transport/index.d.ts +1 -1
- package/dist/types/transport/index.d.ts.map +1 -1
- package/dist/types/transport/rpc/parser.d.ts +5 -1
- package/dist/types/transport/rpc/parser.d.ts.map +1 -1
- package/dist/types/transport/rpc/rpc-client.d.ts +5 -1
- package/dist/types/transport/rpc/rpc-client.d.ts.map +1 -1
- package/dist/types/transport/streaming/event-stream.d.ts +5 -1
- package/dist/types/transport/streaming/event-stream.d.ts.map +1 -1
- package/dist/types/transport/trpc/a2a/factory/index.d.ts +2 -0
- package/dist/types/transport/trpc/a2a/factory/index.d.ts.map +1 -0
- package/dist/types/transport/trpc/a2a/factory/router.d.ts +2631 -0
- package/dist/types/transport/trpc/a2a/factory/router.d.ts.map +1 -0
- package/dist/types/transport/trpc/a2a/index.d.ts +4 -0
- package/dist/types/transport/trpc/a2a/index.d.ts.map +1 -0
- package/dist/types/transport/trpc/a2a/routes/index.d.ts +4 -0
- package/dist/types/transport/trpc/a2a/routes/index.d.ts.map +1 -0
- package/dist/types/transport/trpc/a2a/routes/info.d.ts +102 -0
- package/dist/types/transport/trpc/a2a/routes/info.d.ts.map +1 -0
- package/dist/types/transport/trpc/a2a/routes/message/index.d.ts +2 -0
- package/dist/types/transport/trpc/a2a/routes/message/index.d.ts.map +1 -0
- package/dist/types/transport/trpc/a2a/routes/message/route.d.ts +523 -0
- package/dist/types/transport/trpc/a2a/routes/message/route.d.ts.map +1 -0
- package/dist/types/transport/trpc/a2a/routes/tasks/index.d.ts +2 -0
- package/dist/types/transport/trpc/a2a/routes/tasks/index.d.ts.map +1 -0
- package/dist/types/transport/trpc/a2a/routes/tasks/route.d.ts +646 -0
- package/dist/types/transport/trpc/a2a/routes/tasks/route.d.ts.map +1 -0
- package/dist/types/transport/trpc/a2a/trpc.d.ts +272 -0
- package/dist/types/transport/trpc/a2a/trpc.d.ts.map +1 -0
- package/dist/types/transport/trpc/index.d.ts +2 -0
- package/dist/types/transport/trpc/index.d.ts.map +1 -0
- package/dist/types/types/ext.d.ts +14 -0
- package/dist/types/types/ext.d.ts.map +1 -0
- package/dist/types/types/index.d.ts +3 -4
- package/dist/types/types/index.d.ts.map +1 -1
- package/dist/types/types/{client.d.ts → interfaces/client.d.ts} +7 -2
- package/dist/types/types/interfaces/client.d.ts.map +1 -0
- package/dist/types/types/interfaces/index.d.ts +4 -0
- package/dist/types/types/interfaces/index.d.ts.map +1 -0
- package/dist/types/types/interfaces/services/a2a/builder.d.ts +33 -0
- package/dist/types/types/interfaces/services/a2a/builder.d.ts.map +1 -0
- package/dist/types/types/interfaces/services/a2a/context.d.ts +163 -0
- package/dist/types/types/interfaces/services/a2a/context.d.ts.map +1 -0
- package/dist/types/types/interfaces/services/a2a/engine.d.ts +8 -0
- package/dist/types/types/interfaces/services/a2a/engine.d.ts.map +1 -0
- package/dist/types/types/interfaces/services/a2a/index.d.ts +6 -0
- package/dist/types/types/interfaces/services/a2a/index.d.ts.map +1 -0
- package/dist/types/types/interfaces/services/a2a/legacy.d.ts +90 -0
- package/dist/types/types/interfaces/services/a2a/legacy.d.ts.map +1 -0
- package/dist/types/types/interfaces/services/a2a/service.d.ts +409 -0
- package/dist/types/types/interfaces/services/a2a/service.d.ts.map +1 -0
- package/dist/types/types/interfaces/services/core/context/command.d.ts +26 -0
- package/dist/types/types/interfaces/services/core/context/command.d.ts.map +1 -0
- package/dist/types/types/interfaces/services/core/context/context.d.ts +208 -0
- package/dist/types/types/interfaces/services/core/context/context.d.ts.map +1 -0
- package/dist/types/types/interfaces/services/core/context/index.d.ts +4 -0
- package/dist/types/types/interfaces/services/core/context/index.d.ts.map +1 -0
- package/dist/types/types/interfaces/services/core/context/types.d.ts +12 -0
- package/dist/types/types/interfaces/services/core/context/types.d.ts.map +1 -0
- package/dist/types/types/interfaces/services/core/execution/engine.d.ts +107 -0
- package/dist/types/types/interfaces/services/core/execution/engine.d.ts.map +1 -0
- package/dist/types/types/interfaces/services/core/execution/environment.d.ts +12 -0
- package/dist/types/types/interfaces/services/core/execution/environment.d.ts.map +1 -0
- package/dist/types/types/interfaces/services/core/execution/execute.d.ts +8 -0
- package/dist/types/types/interfaces/services/core/execution/execute.d.ts.map +1 -0
- package/dist/types/types/interfaces/services/core/execution/index.d.ts +4 -0
- package/dist/types/types/interfaces/services/core/execution/index.d.ts.map +1 -0
- package/dist/types/types/interfaces/services/core/index.d.ts +5 -0
- package/dist/types/types/interfaces/services/core/index.d.ts.map +1 -0
- package/dist/types/types/interfaces/services/core/managers/cancellation.d.ts +10 -0
- package/dist/types/types/interfaces/services/core/managers/cancellation.d.ts.map +1 -0
- package/dist/types/types/interfaces/services/core/managers/connection.d.ts +10 -0
- package/dist/types/types/interfaces/services/core/managers/connection.d.ts.map +1 -0
- package/dist/types/types/interfaces/services/core/managers/context.d.ts +18 -0
- package/dist/types/types/interfaces/services/core/managers/context.d.ts.map +1 -0
- package/dist/types/types/interfaces/services/core/managers/event.d.ts +329 -0
- package/dist/types/types/interfaces/services/core/managers/event.d.ts.map +1 -0
- package/dist/types/types/interfaces/services/core/managers/index.d.ts +7 -0
- package/dist/types/types/interfaces/services/core/managers/index.d.ts.map +1 -0
- package/dist/types/types/interfaces/services/core/managers/stream.d.ts +218 -0
- package/dist/types/types/interfaces/services/core/managers/stream.d.ts.map +1 -0
- package/dist/types/types/interfaces/services/core/managers/task.d.ts +10 -0
- package/dist/types/types/interfaces/services/core/managers/task.d.ts.map +1 -0
- package/dist/types/types/interfaces/services/core/service.d.ts +116 -0
- package/dist/types/types/interfaces/services/core/service.d.ts.map +1 -0
- package/dist/types/types/interfaces/services/index.d.ts +4 -0
- package/dist/types/types/interfaces/services/index.d.ts.map +1 -0
- package/dist/types/types/{services → interfaces/services}/protocol.d.ts +4 -0
- package/dist/types/types/interfaces/services/protocol.d.ts.map +1 -0
- package/dist/types/types/interfaces/storage.d.ts +9 -0
- package/dist/types/types/interfaces/storage.d.ts.map +1 -0
- package/dist/types/types/schemas/a2a/agent.d.ts +509 -0
- package/dist/types/types/schemas/a2a/agent.d.ts.map +1 -0
- package/dist/types/types/schemas/a2a/auth.d.ts +285 -0
- package/dist/types/types/schemas/a2a/auth.d.ts.map +1 -0
- package/dist/types/types/schemas/a2a/error.d.ts +133 -27
- package/dist/types/types/schemas/a2a/error.d.ts.map +1 -1
- package/dist/types/types/schemas/a2a/index.d.ts +8 -216
- package/dist/types/types/schemas/a2a/index.d.ts.map +1 -1
- package/dist/types/types/schemas/a2a/kind.d.ts +28 -0
- package/dist/types/types/schemas/a2a/kind.d.ts.map +1 -0
- package/dist/types/types/schemas/a2a/message.d.ts +2549 -69
- package/dist/types/types/schemas/a2a/message.d.ts.map +1 -1
- package/dist/types/types/schemas/a2a/notification.d.ts +321 -70
- package/dist/types/types/schemas/a2a/notification.d.ts.map +1 -1
- package/dist/types/types/schemas/a2a/parameters.d.ts +287 -167
- package/dist/types/types/schemas/a2a/parameters.d.ts.map +1 -1
- package/dist/types/types/schemas/a2a/protocol.d.ts +3207 -0
- package/dist/types/types/schemas/a2a/protocol.d.ts.map +1 -0
- package/dist/types/types/schemas/a2a/rpc.d.ts +42 -89
- package/dist/types/types/schemas/a2a/rpc.d.ts.map +1 -1
- package/dist/types/types/schemas/a2a/task.d.ts +1460 -214
- package/dist/types/types/schemas/a2a/task.d.ts.map +1 -1
- package/dist/types/types/schemas/a2a/transport.d.ts +28 -0
- package/dist/types/types/schemas/a2a/transport.d.ts.map +1 -0
- package/dist/types/types/schemas/deployment/index.d.ts +3 -0
- package/dist/types/types/schemas/deployment/index.d.ts.map +1 -0
- package/dist/types/types/{proxy.d.ts → schemas/deployment/proxy.d.ts} +6 -2
- package/dist/types/types/schemas/deployment/proxy.d.ts.map +1 -0
- package/dist/types/types/schemas/deployment/request.d.ts +508 -0
- package/dist/types/types/schemas/deployment/request.d.ts.map +1 -0
- package/dist/types/types/utils/index.d.ts +2 -0
- package/dist/types/types/utils/index.d.ts.map +1 -0
- package/dist/types/types/{transform.d.ts → utils/transform.d.ts} +4 -0
- package/dist/types/types/utils/transform.d.ts.map +1 -0
- package/dist/types/utils/api/register.d.ts +4 -0
- package/dist/types/utils/api/register.d.ts.map +1 -1
- package/dist/types/utils/common/constants.d.ts +8 -4
- package/dist/types/utils/common/constants.d.ts.map +1 -1
- package/dist/types/utils/common/errors.d.ts +6 -12
- package/dist/types/utils/common/errors.d.ts.map +1 -1
- package/dist/types/utils/common/utils.d.ts +4 -14
- package/dist/types/utils/common/utils.d.ts.map +1 -1
- package/dist/types/utils/common/zAsyncIterable.d.ts +23 -0
- package/dist/types/utils/common/zAsyncIterable.d.ts.map +1 -0
- package/dist/types/utils/deployment/agents.d.ts +5 -1
- package/dist/types/utils/deployment/agents.d.ts.map +1 -1
- package/dist/types/utils/deployment/bundler.d.ts +4 -0
- package/dist/types/utils/deployment/bundler.d.ts.map +1 -1
- package/dist/types/utils/deployment/full-deployment.d.ts +12 -2
- package/dist/types/utils/deployment/full-deployment.d.ts.map +1 -1
- package/dist/types/utils/deployment/index.d.ts +5 -0
- package/dist/types/utils/deployment/index.d.ts.map +1 -0
- package/dist/types/utils/deployment/task-wrapper.d.ts +6 -2
- package/dist/types/utils/deployment/task-wrapper.d.ts.map +1 -1
- package/dist/types/utils/deployment/test-deployment.d.ts +7 -2
- package/dist/types/utils/deployment/test-deployment.d.ts.map +1 -1
- package/dist/types/utils/index.d.ts +4 -6
- package/dist/types/utils/index.d.ts.map +1 -1
- package/dist/types/utils/index.js +2 -0
- package/dist/types/utils/index.js.map +1 -0
- package/dist/types/utils/logging/index.d.ts +3 -0
- package/dist/types/utils/logging/index.d.ts.map +1 -0
- package/dist/types/utils/logging/log.d.ts +4 -0
- package/dist/types/utils/logging/log.d.ts.map +1 -1
- package/dist/types/utils/logging/logger.d.ts +4 -0
- package/dist/types/utils/logging/logger.d.ts.map +1 -1
- package/dist/types/{server/lib → utils}/storage/file.d.ts +9 -4
- package/dist/types/utils/storage/file.d.ts.map +1 -0
- package/dist/types/{server/lib → utils}/storage/memory.d.ts +9 -4
- package/dist/types/utils/storage/memory.d.ts.map +1 -0
- package/dist/types/{transform.js → utils/transform.js} +2 -1
- package/dist/types/utils/transform.js.map +1 -0
- package/dist/utils/api/register.js +4 -0
- package/dist/utils/api/register.js.map +1 -1
- package/dist/utils/common/constants.js +20 -11
- package/dist/utils/common/constants.js.map +1 -1
- package/dist/utils/common/errors.js +7 -40
- package/dist/utils/common/errors.js.map +1 -1
- package/dist/utils/common/utils.js +4 -46
- package/dist/utils/common/utils.js.map +1 -1
- package/dist/utils/common/zAsyncIterable.js +40 -0
- package/dist/utils/common/zAsyncIterable.js.map +1 -0
- package/dist/utils/deployment/agents.js +4 -0
- package/dist/utils/deployment/agents.js.map +1 -1
- package/dist/utils/deployment/bundler.js +4 -0
- package/dist/utils/deployment/bundler.js.map +1 -1
- package/dist/utils/deployment/full-deployment.js +6 -2
- package/dist/utils/deployment/full-deployment.js.map +1 -1
- package/dist/utils/deployment/index.js +5 -0
- package/dist/utils/deployment/index.js.map +1 -0
- package/dist/utils/deployment/task-wrapper.js +4 -0
- package/dist/utils/deployment/task-wrapper.js.map +1 -1
- package/dist/utils/deployment/test-deployment.js +15 -7
- package/dist/utils/deployment/test-deployment.js.map +1 -1
- package/dist/utils/index.js +10 -6
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/logging/index.js +3 -0
- package/dist/utils/logging/index.js.map +1 -0
- package/dist/utils/logging/log.js +4 -0
- package/dist/utils/logging/log.js.map +1 -1
- package/dist/utils/logging/logger.js +13 -0
- package/dist/utils/logging/logger.js.map +1 -1
- package/dist/{server/lib → utils}/storage/file.js +17 -6
- package/dist/utils/storage/file.js.map +1 -0
- package/dist/{server/lib → utils}/storage/memory.js +15 -5
- package/dist/utils/storage/memory.js.map +1 -0
- package/package.json +16 -5
- package/dist/server/a2a-server.js +0 -237
- package/dist/server/a2a-server.js.map +0 -1
- package/dist/server/interfaces/params.js +0 -3
- package/dist/server/interfaces/params.js.map +0 -1
- package/dist/server/interfaces/server.js +0 -2
- package/dist/server/interfaces/server.js.map +0 -1
- package/dist/server/interfaces/store.js +0 -18
- package/dist/server/interfaces/store.js.map +0 -1
- package/dist/server/lib/express-server.js +0 -252
- package/dist/server/lib/express-server.js.map +0 -1
- package/dist/server/lib/json-middleware.js +0 -3
- package/dist/server/lib/json-middleware.js.map +0 -1
- package/dist/server/lib/middleware/a2a-methods.js +0 -140
- package/dist/server/lib/middleware/a2a-methods.js.map +0 -1
- package/dist/server/lib/middleware/factory.js +0 -59
- package/dist/server/lib/middleware/factory.js.map +0 -1
- package/dist/server/lib/state.js +0 -80
- package/dist/server/lib/state.js.map +0 -1
- package/dist/server/lib/storage/file.js.map +0 -1
- package/dist/server/lib/storage/memory.js.map +0 -1
- package/dist/server/lib/update/base.js.map +0 -1
- package/dist/services/a2a/repository.js +0 -160
- package/dist/services/a2a/repository.js.map +0 -1
- package/dist/services/manager.js +0 -61
- package/dist/services/manager.js.map +0 -1
- package/dist/services/mcp/index.js +0 -2
- package/dist/services/mcp/index.js.map +0 -1
- package/dist/services/mcp/service.js +0 -75
- package/dist/services/mcp/service.js.map +0 -1
- package/dist/transport/streaming/stream.js +0 -111
- package/dist/transport/streaming/stream.js.map +0 -1
- package/dist/types/client.js +0 -2
- package/dist/types/client.js.map +0 -1
- package/dist/types/express.js +0 -2
- package/dist/types/express.js.map +0 -1
- package/dist/types/extended-schema.js +0 -7
- package/dist/types/extended-schema.js.map +0 -1
- package/dist/types/proxy.js +0 -2
- package/dist/types/proxy.js.map +0 -1
- package/dist/types/schemas/a2a/auth/auth.js +0 -2
- package/dist/types/schemas/a2a/auth/auth.js.map +0 -1
- package/dist/types/schemas/a2a/auth/base.js +0 -2
- package/dist/types/schemas/a2a/auth/base.js.map +0 -1
- package/dist/types/schemas/a2a/auth/index.js +0 -4
- package/dist/types/schemas/a2a/auth/index.js.map +0 -1
- package/dist/types/schemas/a2a/auth/oauth.js +0 -2
- package/dist/types/schemas/a2a/auth/oauth.js.map +0 -1
- package/dist/types/schemas/a2a/ref.js +0 -25
- package/dist/types/schemas/a2a/ref.js.map +0 -1
- package/dist/types/server/a2a-server.d.ts +0 -145
- package/dist/types/server/a2a-server.d.ts.map +0 -1
- package/dist/types/server/interfaces/params.d.ts +0 -109
- package/dist/types/server/interfaces/params.d.ts.map +0 -1
- package/dist/types/server/interfaces/server.d.ts +0 -35
- package/dist/types/server/interfaces/server.d.ts.map +0 -1
- package/dist/types/server/interfaces/store.d.ts +0 -35
- package/dist/types/server/interfaces/store.d.ts.map +0 -1
- package/dist/types/server/lib/express-server.d.ts +0 -59
- package/dist/types/server/lib/express-server.d.ts.map +0 -1
- package/dist/types/server/lib/json-middleware.d.ts +0 -3
- package/dist/types/server/lib/json-middleware.d.ts.map +0 -1
- package/dist/types/server/lib/middleware/a2a-methods.d.ts +0 -7
- package/dist/types/server/lib/middleware/a2a-methods.d.ts.map +0 -1
- package/dist/types/server/lib/middleware/factory.d.ts +0 -12
- package/dist/types/server/lib/middleware/factory.d.ts.map +0 -1
- package/dist/types/server/lib/state.d.ts +0 -20
- package/dist/types/server/lib/state.d.ts.map +0 -1
- package/dist/types/server/lib/storage/file.d.ts.map +0 -1
- package/dist/types/server/lib/storage/memory.d.ts.map +0 -1
- package/dist/types/server/lib/update/base.d.ts +0 -21
- package/dist/types/server/lib/update/base.d.ts.map +0 -1
- package/dist/types/services/a2a/repository.d.ts +0 -77
- package/dist/types/services/a2a/repository.d.ts.map +0 -1
- package/dist/types/services/a2a/repository.js +0 -2
- package/dist/types/services/a2a/repository.js.map +0 -1
- package/dist/types/services/a2a/service.js +0 -2
- package/dist/types/services/a2a/service.js.map +0 -1
- package/dist/types/services/context.js +0 -29
- package/dist/types/services/context.js.map +0 -1
- package/dist/types/services/dispatcher.js +0 -33
- package/dist/types/services/dispatcher.js.map +0 -1
- package/dist/types/services/index.js +0 -9
- package/dist/types/services/index.js.map +0 -1
- package/dist/types/services/manager.d.ts +0 -44
- package/dist/types/services/manager.d.ts.map +0 -1
- package/dist/types/services/manager.js +0 -2
- package/dist/types/services/manager.js.map +0 -1
- package/dist/types/services/mcp/index.d.ts +0 -2
- package/dist/types/services/mcp/index.d.ts.map +0 -1
- package/dist/types/services/mcp/service.d.ts +0 -30
- package/dist/types/services/mcp/service.d.ts.map +0 -1
- package/dist/types/services/mcp/service.js +0 -8
- package/dist/types/services/mcp/service.js.map +0 -1
- package/dist/types/services/protocol.js.map +0 -1
- package/dist/types/services/service.js +0 -2
- package/dist/types/services/service.js.map +0 -1
- package/dist/types/transform.js.map +0 -1
- package/dist/types/transport/streaming/stream.d.ts +0 -42
- package/dist/types/transport/streaming/stream.d.ts.map +0 -1
- package/dist/types/types/client.d.ts.map +0 -1
- package/dist/types/types/express.d.ts +0 -66
- package/dist/types/types/express.d.ts.map +0 -1
- package/dist/types/types/extended-schema.d.ts +0 -174
- package/dist/types/types/extended-schema.d.ts.map +0 -1
- package/dist/types/types/proxy.d.ts.map +0 -1
- package/dist/types/types/schemas/a2a/auth/auth.d.ts +0 -80
- package/dist/types/types/schemas/a2a/auth/auth.d.ts.map +0 -1
- package/dist/types/types/schemas/a2a/auth/base.d.ts +0 -16
- package/dist/types/types/schemas/a2a/auth/base.d.ts.map +0 -1
- package/dist/types/types/schemas/a2a/auth/index.d.ts +0 -4
- package/dist/types/types/schemas/a2a/auth/index.d.ts.map +0 -1
- package/dist/types/types/schemas/a2a/auth/oauth.d.ts +0 -124
- package/dist/types/types/schemas/a2a/auth/oauth.d.ts.map +0 -1
- package/dist/types/types/schemas/a2a/ref.d.ts +0 -2057
- package/dist/types/types/schemas/a2a/ref.d.ts.map +0 -1
- package/dist/types/types/services/a2a/repository.d.ts +0 -85
- package/dist/types/types/services/a2a/repository.d.ts.map +0 -1
- package/dist/types/types/services/a2a/service.d.ts +0 -29
- package/dist/types/types/services/a2a/service.d.ts.map +0 -1
- package/dist/types/types/services/context.d.ts +0 -167
- package/dist/types/types/services/context.d.ts.map +0 -1
- package/dist/types/types/services/dispatcher.d.ts +0 -20
- package/dist/types/types/services/dispatcher.d.ts.map +0 -1
- package/dist/types/types/services/index.d.ts +0 -9
- package/dist/types/types/services/index.d.ts.map +0 -1
- package/dist/types/types/services/manager.d.ts +0 -42
- package/dist/types/types/services/manager.d.ts.map +0 -1
- package/dist/types/types/services/mcp/service.d.ts +0 -57
- package/dist/types/types/services/mcp/service.d.ts.map +0 -1
- package/dist/types/types/services/protocol.d.ts.map +0 -1
- package/dist/types/types/services/service.d.ts +0 -35
- package/dist/types/types/services/service.d.ts.map +0 -1
- package/dist/types/types/transform.d.ts.map +0 -1
|
@@ -1,252 +1,1498 @@
|
|
|
1
|
-
import { Message, Artifact } from "./parameters.js";
|
|
2
|
-
import { JSONRPCErrorResponse, JSONRPCRequestWithParams, JSONRPCSuccessResponse } from "./rpc.js";
|
|
3
1
|
/**
|
|
4
|
-
*
|
|
5
|
-
|
|
6
|
-
export declare enum TaskState {
|
|
7
|
-
Submitted = "submitted",
|
|
8
|
-
Working = "working",
|
|
9
|
-
InputRequired = "input-required",
|
|
10
|
-
Completed = "completed",
|
|
11
|
-
Canceled = "canceled",
|
|
12
|
-
Failed = "failed",
|
|
13
|
-
Rejected = "rejected",
|
|
14
|
-
AuthRequired = "auth-required",
|
|
15
|
-
Unknown = "unknown"
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Basic parameters used for task ID operations.
|
|
19
|
-
* Used by: `tasks/cancel`, `tasks/pushNotificationConfig/get`.
|
|
2
|
+
* Copyright 2025 The Artinet Project
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
20
4
|
*/
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* The unique identifier of the task.
|
|
24
|
-
*/
|
|
25
|
-
id: string;
|
|
26
|
-
/**
|
|
27
|
-
* Optional metadata to include with the operation.
|
|
28
|
-
*/
|
|
29
|
-
metadata?: Record<string, unknown>;
|
|
30
|
-
}
|
|
5
|
+
import { z } from "zod/v4";
|
|
31
6
|
/**
|
|
32
|
-
*
|
|
33
|
-
* Used by: `tasks/get`, `tasks/getHistory`, `tasks/subscribe`, `tasks/resubscribe`.
|
|
7
|
+
* @description Represents the state of a task within the A2A protocol.
|
|
34
8
|
*/
|
|
35
|
-
export
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
9
|
+
export declare const TaskStateSchema: z.ZodEnum<{
|
|
10
|
+
unknown: "unknown";
|
|
11
|
+
submitted: "submitted";
|
|
12
|
+
working: "working";
|
|
13
|
+
"input-required": "input-required";
|
|
14
|
+
completed: "completed";
|
|
15
|
+
canceled: "canceled";
|
|
16
|
+
failed: "failed";
|
|
17
|
+
rejected: "rejected";
|
|
18
|
+
"auth-required": "auth-required";
|
|
19
|
+
}>;
|
|
20
|
+
export declare const TaskState: {
|
|
21
|
+
unknown: "unknown";
|
|
22
|
+
submitted: "submitted";
|
|
23
|
+
working: "working";
|
|
24
|
+
"input-required": "input-required";
|
|
25
|
+
completed: "completed";
|
|
26
|
+
canceled: "canceled";
|
|
27
|
+
failed: "failed";
|
|
28
|
+
rejected: "rejected";
|
|
29
|
+
"auth-required": "auth-required";
|
|
30
|
+
};
|
|
31
|
+
export type TaskState = z.infer<typeof TaskStateSchema>;
|
|
41
32
|
/**
|
|
42
33
|
* Basic parameters used for task ID operations.
|
|
43
|
-
* Used by: `tasks/cancel`, `tasks/pushNotificationConfig/get`.
|
|
44
|
-
* @description Basic parameters used for task ID operations.
|
|
45
|
-
* @required id
|
|
46
|
-
* @optional metadata
|
|
47
34
|
*/
|
|
48
|
-
export
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* @optional metadata to include with the operation.
|
|
55
|
-
*/
|
|
56
|
-
metadata?: Record<string, unknown>;
|
|
57
|
-
}
|
|
35
|
+
export declare const TaskIdParamsSchema: z.ZodObject<{
|
|
36
|
+
id: z.ZodString;
|
|
37
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
export type TaskIdParams = z.infer<typeof TaskIdParamsSchema>;
|
|
58
40
|
/**
|
|
59
41
|
* Parameters used for querying task-related information by ID.
|
|
60
|
-
* @description Parameters used for querying task-related information by ID.
|
|
61
|
-
* @required id
|
|
62
|
-
* @optional historyLength
|
|
63
42
|
*/
|
|
64
|
-
export
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
43
|
+
export declare const TaskQueryParamsSchema: z.ZodObject<{
|
|
44
|
+
id: z.ZodString;
|
|
45
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
46
|
+
historyLength: z.ZodOptional<z.ZodNumber>;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
export type TaskQueryParams = z.infer<typeof TaskQueryParamsSchema>;
|
|
70
49
|
/**
|
|
71
50
|
* Represents the status of a task at a specific point in time.
|
|
72
|
-
* @description A task status is a snapshot of the task at a specific point in time.
|
|
73
|
-
* @required state
|
|
74
|
-
* @optional message
|
|
75
|
-
* @optional timestamp
|
|
76
51
|
*/
|
|
77
|
-
export
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
52
|
+
export declare const TaskStatusSchema: z.ZodObject<{
|
|
53
|
+
state: z.ZodEnum<{
|
|
54
|
+
unknown: "unknown";
|
|
55
|
+
submitted: "submitted";
|
|
56
|
+
working: "working";
|
|
57
|
+
"input-required": "input-required";
|
|
58
|
+
completed: "completed";
|
|
59
|
+
canceled: "canceled";
|
|
60
|
+
failed: "failed";
|
|
61
|
+
rejected: "rejected";
|
|
62
|
+
"auth-required": "auth-required";
|
|
63
|
+
}>;
|
|
64
|
+
message: z.ZodOptional<z.ZodObject<{
|
|
65
|
+
role: z.ZodEnum<{
|
|
66
|
+
user: "user";
|
|
67
|
+
agent: "agent";
|
|
68
|
+
}>;
|
|
69
|
+
parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
70
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
71
|
+
kind: z.ZodEnum<{
|
|
72
|
+
"artifact-update": "artifact-update";
|
|
73
|
+
data: "data";
|
|
74
|
+
file: "file";
|
|
75
|
+
message: "message";
|
|
76
|
+
"status-update": "status-update";
|
|
77
|
+
task: "task";
|
|
78
|
+
text: "text";
|
|
79
|
+
}>;
|
|
80
|
+
text: z.ZodString;
|
|
81
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
82
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
83
|
+
kind: z.ZodEnum<{
|
|
84
|
+
"artifact-update": "artifact-update";
|
|
85
|
+
data: "data";
|
|
86
|
+
file: "file";
|
|
87
|
+
message: "message";
|
|
88
|
+
"status-update": "status-update";
|
|
89
|
+
task: "task";
|
|
90
|
+
text: "text";
|
|
91
|
+
}>;
|
|
92
|
+
file: z.ZodUnion<readonly [z.ZodObject<{
|
|
93
|
+
name: z.ZodOptional<z.ZodString>;
|
|
94
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
95
|
+
bytes: z.ZodString;
|
|
96
|
+
uri: z.ZodOptional<z.ZodNever>;
|
|
97
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
98
|
+
name: z.ZodOptional<z.ZodString>;
|
|
99
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
100
|
+
uri: z.ZodString;
|
|
101
|
+
bytes: z.ZodOptional<z.ZodNever>;
|
|
102
|
+
}, z.core.$strip>]>;
|
|
103
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
104
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
105
|
+
kind: z.ZodEnum<{
|
|
106
|
+
"artifact-update": "artifact-update";
|
|
107
|
+
data: "data";
|
|
108
|
+
file: "file";
|
|
109
|
+
message: "message";
|
|
110
|
+
"status-update": "status-update";
|
|
111
|
+
task: "task";
|
|
112
|
+
text: "text";
|
|
113
|
+
}>;
|
|
114
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
115
|
+
}, z.core.$strip>]>>;
|
|
116
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
117
|
+
extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
118
|
+
referenceTaskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
119
|
+
messageId: z.ZodString;
|
|
120
|
+
taskId: z.ZodOptional<z.ZodString>;
|
|
121
|
+
contextId: z.ZodOptional<z.ZodString>;
|
|
122
|
+
kind: z.ZodEnum<{
|
|
123
|
+
"artifact-update": "artifact-update";
|
|
124
|
+
data: "data";
|
|
125
|
+
file: "file";
|
|
126
|
+
message: "message";
|
|
127
|
+
"status-update": "status-update";
|
|
128
|
+
task: "task";
|
|
129
|
+
text: "text";
|
|
130
|
+
}>;
|
|
131
|
+
}, z.core.$strip>>;
|
|
132
|
+
timestamp: z.ZodOptional<z.ZodString>;
|
|
133
|
+
}, z.core.$strip>;
|
|
134
|
+
export type TaskStatus = z.infer<typeof TaskStatusSchema>;
|
|
92
135
|
/**
|
|
93
136
|
* Represents a task being processed by an agent.
|
|
94
|
-
* @description A task is a unit of work that an agent can perform.
|
|
95
|
-
* @required id
|
|
96
|
-
* @optional contextId
|
|
97
|
-
* @required status
|
|
98
|
-
* @optional history
|
|
99
|
-
* @optional artifacts
|
|
100
|
-
* @optional metadata
|
|
101
|
-
* @required kind
|
|
102
137
|
*/
|
|
103
|
-
export
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
138
|
+
export declare const TaskSchema: z.ZodObject<{
|
|
139
|
+
id: z.ZodString;
|
|
140
|
+
contextId: z.ZodOptional<z.ZodString>;
|
|
141
|
+
status: z.ZodObject<{
|
|
142
|
+
state: z.ZodEnum<{
|
|
143
|
+
unknown: "unknown";
|
|
144
|
+
submitted: "submitted";
|
|
145
|
+
working: "working";
|
|
146
|
+
"input-required": "input-required";
|
|
147
|
+
completed: "completed";
|
|
148
|
+
canceled: "canceled";
|
|
149
|
+
failed: "failed";
|
|
150
|
+
rejected: "rejected";
|
|
151
|
+
"auth-required": "auth-required";
|
|
152
|
+
}>;
|
|
153
|
+
message: z.ZodOptional<z.ZodObject<{
|
|
154
|
+
role: z.ZodEnum<{
|
|
155
|
+
user: "user";
|
|
156
|
+
agent: "agent";
|
|
157
|
+
}>;
|
|
158
|
+
parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
159
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
160
|
+
kind: z.ZodEnum<{
|
|
161
|
+
"artifact-update": "artifact-update";
|
|
162
|
+
data: "data";
|
|
163
|
+
file: "file";
|
|
164
|
+
message: "message";
|
|
165
|
+
"status-update": "status-update";
|
|
166
|
+
task: "task";
|
|
167
|
+
text: "text";
|
|
168
|
+
}>;
|
|
169
|
+
text: z.ZodString;
|
|
170
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
171
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
172
|
+
kind: z.ZodEnum<{
|
|
173
|
+
"artifact-update": "artifact-update";
|
|
174
|
+
data: "data";
|
|
175
|
+
file: "file";
|
|
176
|
+
message: "message";
|
|
177
|
+
"status-update": "status-update";
|
|
178
|
+
task: "task";
|
|
179
|
+
text: "text";
|
|
180
|
+
}>;
|
|
181
|
+
file: z.ZodUnion<readonly [z.ZodObject<{
|
|
182
|
+
name: z.ZodOptional<z.ZodString>;
|
|
183
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
184
|
+
bytes: z.ZodString;
|
|
185
|
+
uri: z.ZodOptional<z.ZodNever>;
|
|
186
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
187
|
+
name: z.ZodOptional<z.ZodString>;
|
|
188
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
189
|
+
uri: z.ZodString;
|
|
190
|
+
bytes: z.ZodOptional<z.ZodNever>;
|
|
191
|
+
}, z.core.$strip>]>;
|
|
192
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
193
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
194
|
+
kind: z.ZodEnum<{
|
|
195
|
+
"artifact-update": "artifact-update";
|
|
196
|
+
data: "data";
|
|
197
|
+
file: "file";
|
|
198
|
+
message: "message";
|
|
199
|
+
"status-update": "status-update";
|
|
200
|
+
task: "task";
|
|
201
|
+
text: "text";
|
|
202
|
+
}>;
|
|
203
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
204
|
+
}, z.core.$strip>]>>;
|
|
205
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
206
|
+
extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
207
|
+
referenceTaskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
208
|
+
messageId: z.ZodString;
|
|
209
|
+
taskId: z.ZodOptional<z.ZodString>;
|
|
210
|
+
contextId: z.ZodOptional<z.ZodString>;
|
|
211
|
+
kind: z.ZodEnum<{
|
|
212
|
+
"artifact-update": "artifact-update";
|
|
213
|
+
data: "data";
|
|
214
|
+
file: "file";
|
|
215
|
+
message: "message";
|
|
216
|
+
"status-update": "status-update";
|
|
217
|
+
task: "task";
|
|
218
|
+
text: "text";
|
|
219
|
+
}>;
|
|
220
|
+
}, z.core.$strip>>;
|
|
221
|
+
timestamp: z.ZodOptional<z.ZodString>;
|
|
222
|
+
}, z.core.$strip>;
|
|
223
|
+
history: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
224
|
+
role: z.ZodEnum<{
|
|
225
|
+
user: "user";
|
|
226
|
+
agent: "agent";
|
|
227
|
+
}>;
|
|
228
|
+
parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
229
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
230
|
+
kind: z.ZodEnum<{
|
|
231
|
+
"artifact-update": "artifact-update";
|
|
232
|
+
data: "data";
|
|
233
|
+
file: "file";
|
|
234
|
+
message: "message";
|
|
235
|
+
"status-update": "status-update";
|
|
236
|
+
task: "task";
|
|
237
|
+
text: "text";
|
|
238
|
+
}>;
|
|
239
|
+
text: z.ZodString;
|
|
240
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
241
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
242
|
+
kind: z.ZodEnum<{
|
|
243
|
+
"artifact-update": "artifact-update";
|
|
244
|
+
data: "data";
|
|
245
|
+
file: "file";
|
|
246
|
+
message: "message";
|
|
247
|
+
"status-update": "status-update";
|
|
248
|
+
task: "task";
|
|
249
|
+
text: "text";
|
|
250
|
+
}>;
|
|
251
|
+
file: z.ZodUnion<readonly [z.ZodObject<{
|
|
252
|
+
name: z.ZodOptional<z.ZodString>;
|
|
253
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
254
|
+
bytes: z.ZodString;
|
|
255
|
+
uri: z.ZodOptional<z.ZodNever>;
|
|
256
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
257
|
+
name: z.ZodOptional<z.ZodString>;
|
|
258
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
259
|
+
uri: z.ZodString;
|
|
260
|
+
bytes: z.ZodOptional<z.ZodNever>;
|
|
261
|
+
}, z.core.$strip>]>;
|
|
262
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
263
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
264
|
+
kind: z.ZodEnum<{
|
|
265
|
+
"artifact-update": "artifact-update";
|
|
266
|
+
data: "data";
|
|
267
|
+
file: "file";
|
|
268
|
+
message: "message";
|
|
269
|
+
"status-update": "status-update";
|
|
270
|
+
task: "task";
|
|
271
|
+
text: "text";
|
|
272
|
+
}>;
|
|
273
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
274
|
+
}, z.core.$strip>]>>;
|
|
275
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
276
|
+
extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
277
|
+
referenceTaskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
278
|
+
messageId: z.ZodString;
|
|
279
|
+
taskId: z.ZodOptional<z.ZodString>;
|
|
280
|
+
contextId: z.ZodOptional<z.ZodString>;
|
|
281
|
+
kind: z.ZodEnum<{
|
|
282
|
+
"artifact-update": "artifact-update";
|
|
283
|
+
data: "data";
|
|
284
|
+
file: "file";
|
|
285
|
+
message: "message";
|
|
286
|
+
"status-update": "status-update";
|
|
287
|
+
task: "task";
|
|
288
|
+
text: "text";
|
|
289
|
+
}>;
|
|
290
|
+
}, z.core.$strip>>>;
|
|
291
|
+
artifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
292
|
+
artifactId: z.ZodString;
|
|
293
|
+
name: z.ZodOptional<z.ZodString>;
|
|
294
|
+
description: z.ZodOptional<z.ZodString>;
|
|
295
|
+
parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
296
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
297
|
+
kind: z.ZodEnum<{
|
|
298
|
+
"artifact-update": "artifact-update";
|
|
299
|
+
data: "data";
|
|
300
|
+
file: "file";
|
|
301
|
+
message: "message";
|
|
302
|
+
"status-update": "status-update";
|
|
303
|
+
task: "task";
|
|
304
|
+
text: "text";
|
|
305
|
+
}>;
|
|
306
|
+
text: z.ZodString;
|
|
307
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
308
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
309
|
+
kind: z.ZodEnum<{
|
|
310
|
+
"artifact-update": "artifact-update";
|
|
311
|
+
data: "data";
|
|
312
|
+
file: "file";
|
|
313
|
+
message: "message";
|
|
314
|
+
"status-update": "status-update";
|
|
315
|
+
task: "task";
|
|
316
|
+
text: "text";
|
|
317
|
+
}>;
|
|
318
|
+
file: z.ZodUnion<readonly [z.ZodObject<{
|
|
319
|
+
name: z.ZodOptional<z.ZodString>;
|
|
320
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
321
|
+
bytes: z.ZodString;
|
|
322
|
+
uri: z.ZodOptional<z.ZodNever>;
|
|
323
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
324
|
+
name: z.ZodOptional<z.ZodString>;
|
|
325
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
326
|
+
uri: z.ZodString;
|
|
327
|
+
bytes: z.ZodOptional<z.ZodNever>;
|
|
328
|
+
}, z.core.$strip>]>;
|
|
329
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
330
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
331
|
+
kind: z.ZodEnum<{
|
|
332
|
+
"artifact-update": "artifact-update";
|
|
333
|
+
data: "data";
|
|
334
|
+
file: "file";
|
|
335
|
+
message: "message";
|
|
336
|
+
"status-update": "status-update";
|
|
337
|
+
task: "task";
|
|
338
|
+
text: "text";
|
|
339
|
+
}>;
|
|
340
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
341
|
+
}, z.core.$strip>]>>;
|
|
342
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
343
|
+
extension: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
344
|
+
}, z.core.$strip>>>;
|
|
345
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
346
|
+
kind: z.ZodEnum<{
|
|
347
|
+
"artifact-update": "artifact-update";
|
|
348
|
+
data: "data";
|
|
349
|
+
file: "file";
|
|
350
|
+
message: "message";
|
|
351
|
+
"status-update": "status-update";
|
|
352
|
+
task: "task";
|
|
353
|
+
text: "text";
|
|
354
|
+
}>;
|
|
355
|
+
}, z.core.$strip>;
|
|
356
|
+
export type Task = z.infer<typeof TaskSchema>;
|
|
133
357
|
/**
|
|
134
358
|
* Represents a status update event for a task, typically used in streaming scenarios.
|
|
135
|
-
* @description A status update event is a snapshot of the task at a specific point in time.
|
|
136
|
-
* @required taskId
|
|
137
|
-
* @required contextId
|
|
138
|
-
* @required kind
|
|
139
|
-
* @required status
|
|
140
|
-
* @optional metadata
|
|
141
359
|
*/
|
|
142
|
-
export
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
360
|
+
export declare const TaskStatusUpdateEventSchema: z.ZodObject<{
|
|
361
|
+
taskId: z.ZodString;
|
|
362
|
+
contextId: z.ZodString;
|
|
363
|
+
kind: z.ZodEnum<{
|
|
364
|
+
"artifact-update": "artifact-update";
|
|
365
|
+
data: "data";
|
|
366
|
+
file: "file";
|
|
367
|
+
message: "message";
|
|
368
|
+
"status-update": "status-update";
|
|
369
|
+
task: "task";
|
|
370
|
+
text: "text";
|
|
371
|
+
}>;
|
|
372
|
+
status: z.ZodObject<{
|
|
373
|
+
state: z.ZodEnum<{
|
|
374
|
+
unknown: "unknown";
|
|
375
|
+
submitted: "submitted";
|
|
376
|
+
working: "working";
|
|
377
|
+
"input-required": "input-required";
|
|
378
|
+
completed: "completed";
|
|
379
|
+
canceled: "canceled";
|
|
380
|
+
failed: "failed";
|
|
381
|
+
rejected: "rejected";
|
|
382
|
+
"auth-required": "auth-required";
|
|
383
|
+
}>;
|
|
384
|
+
message: z.ZodOptional<z.ZodObject<{
|
|
385
|
+
role: z.ZodEnum<{
|
|
386
|
+
user: "user";
|
|
387
|
+
agent: "agent";
|
|
388
|
+
}>;
|
|
389
|
+
parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
390
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
391
|
+
kind: z.ZodEnum<{
|
|
392
|
+
"artifact-update": "artifact-update";
|
|
393
|
+
data: "data";
|
|
394
|
+
file: "file";
|
|
395
|
+
message: "message";
|
|
396
|
+
"status-update": "status-update";
|
|
397
|
+
task: "task";
|
|
398
|
+
text: "text";
|
|
399
|
+
}>;
|
|
400
|
+
text: z.ZodString;
|
|
401
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
402
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
403
|
+
kind: z.ZodEnum<{
|
|
404
|
+
"artifact-update": "artifact-update";
|
|
405
|
+
data: "data";
|
|
406
|
+
file: "file";
|
|
407
|
+
message: "message";
|
|
408
|
+
"status-update": "status-update";
|
|
409
|
+
task: "task";
|
|
410
|
+
text: "text";
|
|
411
|
+
}>;
|
|
412
|
+
file: z.ZodUnion<readonly [z.ZodObject<{
|
|
413
|
+
name: z.ZodOptional<z.ZodString>;
|
|
414
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
415
|
+
bytes: z.ZodString;
|
|
416
|
+
uri: z.ZodOptional<z.ZodNever>;
|
|
417
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
418
|
+
name: z.ZodOptional<z.ZodString>;
|
|
419
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
420
|
+
uri: z.ZodString;
|
|
421
|
+
bytes: z.ZodOptional<z.ZodNever>;
|
|
422
|
+
}, z.core.$strip>]>;
|
|
423
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
424
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
425
|
+
kind: z.ZodEnum<{
|
|
426
|
+
"artifact-update": "artifact-update";
|
|
427
|
+
data: "data";
|
|
428
|
+
file: "file";
|
|
429
|
+
message: "message";
|
|
430
|
+
"status-update": "status-update";
|
|
431
|
+
task: "task";
|
|
432
|
+
text: "text";
|
|
433
|
+
}>;
|
|
434
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
435
|
+
}, z.core.$strip>]>>;
|
|
436
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
437
|
+
extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
438
|
+
referenceTaskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
439
|
+
messageId: z.ZodString;
|
|
440
|
+
taskId: z.ZodOptional<z.ZodString>;
|
|
441
|
+
contextId: z.ZodOptional<z.ZodString>;
|
|
442
|
+
kind: z.ZodEnum<{
|
|
443
|
+
"artifact-update": "artifact-update";
|
|
444
|
+
data: "data";
|
|
445
|
+
file: "file";
|
|
446
|
+
message: "message";
|
|
447
|
+
"status-update": "status-update";
|
|
448
|
+
task: "task";
|
|
449
|
+
text: "text";
|
|
450
|
+
}>;
|
|
451
|
+
}, z.core.$strip>>;
|
|
452
|
+
timestamp: z.ZodOptional<z.ZodString>;
|
|
453
|
+
}, z.core.$strip>;
|
|
454
|
+
final: z.ZodBoolean;
|
|
455
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
456
|
+
}, z.core.$strip>;
|
|
457
|
+
export type TaskStatusUpdateEvent = z.infer<typeof TaskStatusUpdateEventSchema>;
|
|
168
458
|
/**
|
|
169
459
|
* Represents an artifact update event for a task, typically used in streaming scenarios.
|
|
170
|
-
* @description An artifact update event is a snapshot of the task at a specific point in time.
|
|
171
|
-
* @required taskId
|
|
172
|
-
* @required contextId
|
|
173
|
-
* @required kind
|
|
174
|
-
* @required artifact
|
|
175
|
-
* @optional append
|
|
176
|
-
* @optional lastChunk
|
|
177
|
-
* @optional metadata
|
|
178
460
|
*/
|
|
179
|
-
export
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
461
|
+
export declare const TaskArtifactUpdateEventSchema: z.ZodObject<{
|
|
462
|
+
taskId: z.ZodString;
|
|
463
|
+
contextId: z.ZodString;
|
|
464
|
+
kind: z.ZodEnum<{
|
|
465
|
+
"artifact-update": "artifact-update";
|
|
466
|
+
data: "data";
|
|
467
|
+
file: "file";
|
|
468
|
+
message: "message";
|
|
469
|
+
"status-update": "status-update";
|
|
470
|
+
task: "task";
|
|
471
|
+
text: "text";
|
|
472
|
+
}>;
|
|
473
|
+
artifact: z.ZodObject<{
|
|
474
|
+
artifactId: z.ZodString;
|
|
475
|
+
name: z.ZodOptional<z.ZodString>;
|
|
476
|
+
description: z.ZodOptional<z.ZodString>;
|
|
477
|
+
parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
478
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
479
|
+
kind: z.ZodEnum<{
|
|
480
|
+
"artifact-update": "artifact-update";
|
|
481
|
+
data: "data";
|
|
482
|
+
file: "file";
|
|
483
|
+
message: "message";
|
|
484
|
+
"status-update": "status-update";
|
|
485
|
+
task: "task";
|
|
486
|
+
text: "text";
|
|
487
|
+
}>;
|
|
488
|
+
text: z.ZodString;
|
|
489
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
490
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
491
|
+
kind: z.ZodEnum<{
|
|
492
|
+
"artifact-update": "artifact-update";
|
|
493
|
+
data: "data";
|
|
494
|
+
file: "file";
|
|
495
|
+
message: "message";
|
|
496
|
+
"status-update": "status-update";
|
|
497
|
+
task: "task";
|
|
498
|
+
text: "text";
|
|
499
|
+
}>;
|
|
500
|
+
file: z.ZodUnion<readonly [z.ZodObject<{
|
|
501
|
+
name: z.ZodOptional<z.ZodString>;
|
|
502
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
503
|
+
bytes: z.ZodString;
|
|
504
|
+
uri: z.ZodOptional<z.ZodNever>;
|
|
505
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
506
|
+
name: z.ZodOptional<z.ZodString>;
|
|
507
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
508
|
+
uri: z.ZodString;
|
|
509
|
+
bytes: z.ZodOptional<z.ZodNever>;
|
|
510
|
+
}, z.core.$strip>]>;
|
|
511
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
512
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
513
|
+
kind: z.ZodEnum<{
|
|
514
|
+
"artifact-update": "artifact-update";
|
|
515
|
+
data: "data";
|
|
516
|
+
file: "file";
|
|
517
|
+
message: "message";
|
|
518
|
+
"status-update": "status-update";
|
|
519
|
+
task: "task";
|
|
520
|
+
text: "text";
|
|
521
|
+
}>;
|
|
522
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
523
|
+
}, z.core.$strip>]>>;
|
|
524
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
525
|
+
extension: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
526
|
+
}, z.core.$strip>;
|
|
527
|
+
append: z.ZodOptional<z.ZodBoolean>;
|
|
528
|
+
lastChunk: z.ZodOptional<z.ZodBoolean>;
|
|
529
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
530
|
+
}, z.core.$strip>;
|
|
531
|
+
export type TaskArtifactUpdateEvent = z.infer<typeof TaskArtifactUpdateEventSchema>;
|
|
209
532
|
/**
|
|
210
533
|
* @description Request to retrieve the current state of a task.
|
|
211
|
-
* @required id
|
|
212
|
-
* @required method
|
|
213
|
-
* @required params
|
|
214
534
|
*/
|
|
215
|
-
export
|
|
535
|
+
export declare const GetTaskRequestSchema: z.ZodObject<{
|
|
536
|
+
jsonrpc: z.ZodLiteral<"2.0">;
|
|
537
|
+
id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
538
|
+
method: z.ZodLiteral<"tasks/get">;
|
|
539
|
+
params: z.ZodObject<{
|
|
540
|
+
id: z.ZodString;
|
|
541
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
542
|
+
historyLength: z.ZodOptional<z.ZodNumber>;
|
|
543
|
+
}, z.core.$strip>;
|
|
544
|
+
}, z.core.$strip>;
|
|
545
|
+
export type GetTaskRequest = z.infer<typeof GetTaskRequestSchema>;
|
|
216
546
|
/**
|
|
217
|
-
* @description JSON-RPC
|
|
218
|
-
* @required result
|
|
219
|
-
* @never error
|
|
547
|
+
* @description Represents a successful JSON-RPC response for the `tasks/get` method.
|
|
220
548
|
*/
|
|
221
|
-
export
|
|
549
|
+
export declare const GetTaskSuccessResponseSchema: z.ZodObject<{
|
|
550
|
+
jsonrpc: z.ZodLiteral<"2.0">;
|
|
551
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
552
|
+
error: z.ZodOptional<z.ZodNever>;
|
|
553
|
+
result: z.ZodObject<{
|
|
554
|
+
id: z.ZodString;
|
|
555
|
+
contextId: z.ZodOptional<z.ZodString>;
|
|
556
|
+
status: z.ZodObject<{
|
|
557
|
+
state: z.ZodEnum<{
|
|
558
|
+
unknown: "unknown";
|
|
559
|
+
submitted: "submitted";
|
|
560
|
+
working: "working";
|
|
561
|
+
"input-required": "input-required";
|
|
562
|
+
completed: "completed";
|
|
563
|
+
canceled: "canceled";
|
|
564
|
+
failed: "failed";
|
|
565
|
+
rejected: "rejected";
|
|
566
|
+
"auth-required": "auth-required";
|
|
567
|
+
}>;
|
|
568
|
+
message: z.ZodOptional<z.ZodObject<{
|
|
569
|
+
role: z.ZodEnum<{
|
|
570
|
+
user: "user";
|
|
571
|
+
agent: "agent";
|
|
572
|
+
}>;
|
|
573
|
+
parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
574
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
575
|
+
kind: z.ZodEnum<{
|
|
576
|
+
"artifact-update": "artifact-update";
|
|
577
|
+
data: "data";
|
|
578
|
+
file: "file";
|
|
579
|
+
message: "message";
|
|
580
|
+
"status-update": "status-update";
|
|
581
|
+
task: "task";
|
|
582
|
+
text: "text";
|
|
583
|
+
}>;
|
|
584
|
+
text: z.ZodString;
|
|
585
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
586
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
587
|
+
kind: z.ZodEnum<{
|
|
588
|
+
"artifact-update": "artifact-update";
|
|
589
|
+
data: "data";
|
|
590
|
+
file: "file";
|
|
591
|
+
message: "message";
|
|
592
|
+
"status-update": "status-update";
|
|
593
|
+
task: "task";
|
|
594
|
+
text: "text";
|
|
595
|
+
}>;
|
|
596
|
+
file: z.ZodUnion<readonly [z.ZodObject<{
|
|
597
|
+
name: z.ZodOptional<z.ZodString>;
|
|
598
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
599
|
+
bytes: z.ZodString;
|
|
600
|
+
uri: z.ZodOptional<z.ZodNever>;
|
|
601
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
602
|
+
name: z.ZodOptional<z.ZodString>;
|
|
603
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
604
|
+
uri: z.ZodString;
|
|
605
|
+
bytes: z.ZodOptional<z.ZodNever>;
|
|
606
|
+
}, z.core.$strip>]>;
|
|
607
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
608
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
609
|
+
kind: z.ZodEnum<{
|
|
610
|
+
"artifact-update": "artifact-update";
|
|
611
|
+
data: "data";
|
|
612
|
+
file: "file";
|
|
613
|
+
message: "message";
|
|
614
|
+
"status-update": "status-update";
|
|
615
|
+
task: "task";
|
|
616
|
+
text: "text";
|
|
617
|
+
}>;
|
|
618
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
619
|
+
}, z.core.$strip>]>>;
|
|
620
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
621
|
+
extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
622
|
+
referenceTaskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
623
|
+
messageId: z.ZodString;
|
|
624
|
+
taskId: z.ZodOptional<z.ZodString>;
|
|
625
|
+
contextId: z.ZodOptional<z.ZodString>;
|
|
626
|
+
kind: z.ZodEnum<{
|
|
627
|
+
"artifact-update": "artifact-update";
|
|
628
|
+
data: "data";
|
|
629
|
+
file: "file";
|
|
630
|
+
message: "message";
|
|
631
|
+
"status-update": "status-update";
|
|
632
|
+
task: "task";
|
|
633
|
+
text: "text";
|
|
634
|
+
}>;
|
|
635
|
+
}, z.core.$strip>>;
|
|
636
|
+
timestamp: z.ZodOptional<z.ZodString>;
|
|
637
|
+
}, z.core.$strip>;
|
|
638
|
+
history: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
639
|
+
role: z.ZodEnum<{
|
|
640
|
+
user: "user";
|
|
641
|
+
agent: "agent";
|
|
642
|
+
}>;
|
|
643
|
+
parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
644
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
645
|
+
kind: z.ZodEnum<{
|
|
646
|
+
"artifact-update": "artifact-update";
|
|
647
|
+
data: "data";
|
|
648
|
+
file: "file";
|
|
649
|
+
message: "message";
|
|
650
|
+
"status-update": "status-update";
|
|
651
|
+
task: "task";
|
|
652
|
+
text: "text";
|
|
653
|
+
}>;
|
|
654
|
+
text: z.ZodString;
|
|
655
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
656
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
657
|
+
kind: z.ZodEnum<{
|
|
658
|
+
"artifact-update": "artifact-update";
|
|
659
|
+
data: "data";
|
|
660
|
+
file: "file";
|
|
661
|
+
message: "message";
|
|
662
|
+
"status-update": "status-update";
|
|
663
|
+
task: "task";
|
|
664
|
+
text: "text";
|
|
665
|
+
}>;
|
|
666
|
+
file: z.ZodUnion<readonly [z.ZodObject<{
|
|
667
|
+
name: z.ZodOptional<z.ZodString>;
|
|
668
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
669
|
+
bytes: z.ZodString;
|
|
670
|
+
uri: z.ZodOptional<z.ZodNever>;
|
|
671
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
672
|
+
name: z.ZodOptional<z.ZodString>;
|
|
673
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
674
|
+
uri: z.ZodString;
|
|
675
|
+
bytes: z.ZodOptional<z.ZodNever>;
|
|
676
|
+
}, z.core.$strip>]>;
|
|
677
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
678
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
679
|
+
kind: z.ZodEnum<{
|
|
680
|
+
"artifact-update": "artifact-update";
|
|
681
|
+
data: "data";
|
|
682
|
+
file: "file";
|
|
683
|
+
message: "message";
|
|
684
|
+
"status-update": "status-update";
|
|
685
|
+
task: "task";
|
|
686
|
+
text: "text";
|
|
687
|
+
}>;
|
|
688
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
689
|
+
}, z.core.$strip>]>>;
|
|
690
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
691
|
+
extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
692
|
+
referenceTaskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
693
|
+
messageId: z.ZodString;
|
|
694
|
+
taskId: z.ZodOptional<z.ZodString>;
|
|
695
|
+
contextId: z.ZodOptional<z.ZodString>;
|
|
696
|
+
kind: z.ZodEnum<{
|
|
697
|
+
"artifact-update": "artifact-update";
|
|
698
|
+
data: "data";
|
|
699
|
+
file: "file";
|
|
700
|
+
message: "message";
|
|
701
|
+
"status-update": "status-update";
|
|
702
|
+
task: "task";
|
|
703
|
+
text: "text";
|
|
704
|
+
}>;
|
|
705
|
+
}, z.core.$strip>>>;
|
|
706
|
+
artifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
707
|
+
artifactId: z.ZodString;
|
|
708
|
+
name: z.ZodOptional<z.ZodString>;
|
|
709
|
+
description: z.ZodOptional<z.ZodString>;
|
|
710
|
+
parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
711
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
712
|
+
kind: z.ZodEnum<{
|
|
713
|
+
"artifact-update": "artifact-update";
|
|
714
|
+
data: "data";
|
|
715
|
+
file: "file";
|
|
716
|
+
message: "message";
|
|
717
|
+
"status-update": "status-update";
|
|
718
|
+
task: "task";
|
|
719
|
+
text: "text";
|
|
720
|
+
}>;
|
|
721
|
+
text: z.ZodString;
|
|
722
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
723
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
724
|
+
kind: z.ZodEnum<{
|
|
725
|
+
"artifact-update": "artifact-update";
|
|
726
|
+
data: "data";
|
|
727
|
+
file: "file";
|
|
728
|
+
message: "message";
|
|
729
|
+
"status-update": "status-update";
|
|
730
|
+
task: "task";
|
|
731
|
+
text: "text";
|
|
732
|
+
}>;
|
|
733
|
+
file: z.ZodUnion<readonly [z.ZodObject<{
|
|
734
|
+
name: z.ZodOptional<z.ZodString>;
|
|
735
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
736
|
+
bytes: z.ZodString;
|
|
737
|
+
uri: z.ZodOptional<z.ZodNever>;
|
|
738
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
739
|
+
name: z.ZodOptional<z.ZodString>;
|
|
740
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
741
|
+
uri: z.ZodString;
|
|
742
|
+
bytes: z.ZodOptional<z.ZodNever>;
|
|
743
|
+
}, z.core.$strip>]>;
|
|
744
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
745
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
746
|
+
kind: z.ZodEnum<{
|
|
747
|
+
"artifact-update": "artifact-update";
|
|
748
|
+
data: "data";
|
|
749
|
+
file: "file";
|
|
750
|
+
message: "message";
|
|
751
|
+
"status-update": "status-update";
|
|
752
|
+
task: "task";
|
|
753
|
+
text: "text";
|
|
754
|
+
}>;
|
|
755
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
756
|
+
}, z.core.$strip>]>>;
|
|
757
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
758
|
+
extension: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
759
|
+
}, z.core.$strip>>>;
|
|
760
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
761
|
+
kind: z.ZodEnum<{
|
|
762
|
+
"artifact-update": "artifact-update";
|
|
763
|
+
data: "data";
|
|
764
|
+
file: "file";
|
|
765
|
+
message: "message";
|
|
766
|
+
"status-update": "status-update";
|
|
767
|
+
task: "task";
|
|
768
|
+
text: "text";
|
|
769
|
+
}>;
|
|
770
|
+
}, z.core.$strip>;
|
|
771
|
+
}, z.core.$strip>;
|
|
772
|
+
export type GetTaskSuccessResponse = z.infer<typeof GetTaskSuccessResponseSchema>;
|
|
222
773
|
/**
|
|
223
|
-
* @description
|
|
224
|
-
* @oneOf GetTaskSuccessResponse | JSONRPCErrorResponse
|
|
774
|
+
* @description Represents a JSON-RPC response for the `tasks/get` method.
|
|
225
775
|
*/
|
|
226
|
-
export
|
|
776
|
+
export declare const GetTaskResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
777
|
+
jsonrpc: z.ZodLiteral<"2.0">;
|
|
778
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
779
|
+
error: z.ZodOptional<z.ZodNever>;
|
|
780
|
+
result: z.ZodObject<{
|
|
781
|
+
id: z.ZodString;
|
|
782
|
+
contextId: z.ZodOptional<z.ZodString>;
|
|
783
|
+
status: z.ZodObject<{
|
|
784
|
+
state: z.ZodEnum<{
|
|
785
|
+
unknown: "unknown";
|
|
786
|
+
submitted: "submitted";
|
|
787
|
+
working: "working";
|
|
788
|
+
"input-required": "input-required";
|
|
789
|
+
completed: "completed";
|
|
790
|
+
canceled: "canceled";
|
|
791
|
+
failed: "failed";
|
|
792
|
+
rejected: "rejected";
|
|
793
|
+
"auth-required": "auth-required";
|
|
794
|
+
}>;
|
|
795
|
+
message: z.ZodOptional<z.ZodObject<{
|
|
796
|
+
role: z.ZodEnum<{
|
|
797
|
+
user: "user";
|
|
798
|
+
agent: "agent";
|
|
799
|
+
}>;
|
|
800
|
+
parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
801
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
802
|
+
kind: z.ZodEnum<{
|
|
803
|
+
"artifact-update": "artifact-update";
|
|
804
|
+
data: "data";
|
|
805
|
+
file: "file";
|
|
806
|
+
message: "message";
|
|
807
|
+
"status-update": "status-update";
|
|
808
|
+
task: "task";
|
|
809
|
+
text: "text";
|
|
810
|
+
}>;
|
|
811
|
+
text: z.ZodString;
|
|
812
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
813
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
814
|
+
kind: z.ZodEnum<{
|
|
815
|
+
"artifact-update": "artifact-update";
|
|
816
|
+
data: "data";
|
|
817
|
+
file: "file";
|
|
818
|
+
message: "message";
|
|
819
|
+
"status-update": "status-update";
|
|
820
|
+
task: "task";
|
|
821
|
+
text: "text";
|
|
822
|
+
}>;
|
|
823
|
+
file: z.ZodUnion<readonly [z.ZodObject<{
|
|
824
|
+
name: z.ZodOptional<z.ZodString>;
|
|
825
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
826
|
+
bytes: z.ZodString;
|
|
827
|
+
uri: z.ZodOptional<z.ZodNever>;
|
|
828
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
829
|
+
name: z.ZodOptional<z.ZodString>;
|
|
830
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
831
|
+
uri: z.ZodString;
|
|
832
|
+
bytes: z.ZodOptional<z.ZodNever>;
|
|
833
|
+
}, z.core.$strip>]>;
|
|
834
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
835
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
836
|
+
kind: z.ZodEnum<{
|
|
837
|
+
"artifact-update": "artifact-update";
|
|
838
|
+
data: "data";
|
|
839
|
+
file: "file";
|
|
840
|
+
message: "message";
|
|
841
|
+
"status-update": "status-update";
|
|
842
|
+
task: "task";
|
|
843
|
+
text: "text";
|
|
844
|
+
}>;
|
|
845
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
846
|
+
}, z.core.$strip>]>>;
|
|
847
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
848
|
+
extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
849
|
+
referenceTaskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
850
|
+
messageId: z.ZodString;
|
|
851
|
+
taskId: z.ZodOptional<z.ZodString>;
|
|
852
|
+
contextId: z.ZodOptional<z.ZodString>;
|
|
853
|
+
kind: z.ZodEnum<{
|
|
854
|
+
"artifact-update": "artifact-update";
|
|
855
|
+
data: "data";
|
|
856
|
+
file: "file";
|
|
857
|
+
message: "message";
|
|
858
|
+
"status-update": "status-update";
|
|
859
|
+
task: "task";
|
|
860
|
+
text: "text";
|
|
861
|
+
}>;
|
|
862
|
+
}, z.core.$strip>>;
|
|
863
|
+
timestamp: z.ZodOptional<z.ZodString>;
|
|
864
|
+
}, z.core.$strip>;
|
|
865
|
+
history: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
866
|
+
role: z.ZodEnum<{
|
|
867
|
+
user: "user";
|
|
868
|
+
agent: "agent";
|
|
869
|
+
}>;
|
|
870
|
+
parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
871
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
872
|
+
kind: z.ZodEnum<{
|
|
873
|
+
"artifact-update": "artifact-update";
|
|
874
|
+
data: "data";
|
|
875
|
+
file: "file";
|
|
876
|
+
message: "message";
|
|
877
|
+
"status-update": "status-update";
|
|
878
|
+
task: "task";
|
|
879
|
+
text: "text";
|
|
880
|
+
}>;
|
|
881
|
+
text: z.ZodString;
|
|
882
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
883
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
884
|
+
kind: z.ZodEnum<{
|
|
885
|
+
"artifact-update": "artifact-update";
|
|
886
|
+
data: "data";
|
|
887
|
+
file: "file";
|
|
888
|
+
message: "message";
|
|
889
|
+
"status-update": "status-update";
|
|
890
|
+
task: "task";
|
|
891
|
+
text: "text";
|
|
892
|
+
}>;
|
|
893
|
+
file: z.ZodUnion<readonly [z.ZodObject<{
|
|
894
|
+
name: z.ZodOptional<z.ZodString>;
|
|
895
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
896
|
+
bytes: z.ZodString;
|
|
897
|
+
uri: z.ZodOptional<z.ZodNever>;
|
|
898
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
899
|
+
name: z.ZodOptional<z.ZodString>;
|
|
900
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
901
|
+
uri: z.ZodString;
|
|
902
|
+
bytes: z.ZodOptional<z.ZodNever>;
|
|
903
|
+
}, z.core.$strip>]>;
|
|
904
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
905
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
906
|
+
kind: z.ZodEnum<{
|
|
907
|
+
"artifact-update": "artifact-update";
|
|
908
|
+
data: "data";
|
|
909
|
+
file: "file";
|
|
910
|
+
message: "message";
|
|
911
|
+
"status-update": "status-update";
|
|
912
|
+
task: "task";
|
|
913
|
+
text: "text";
|
|
914
|
+
}>;
|
|
915
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
916
|
+
}, z.core.$strip>]>>;
|
|
917
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
918
|
+
extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
919
|
+
referenceTaskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
920
|
+
messageId: z.ZodString;
|
|
921
|
+
taskId: z.ZodOptional<z.ZodString>;
|
|
922
|
+
contextId: z.ZodOptional<z.ZodString>;
|
|
923
|
+
kind: z.ZodEnum<{
|
|
924
|
+
"artifact-update": "artifact-update";
|
|
925
|
+
data: "data";
|
|
926
|
+
file: "file";
|
|
927
|
+
message: "message";
|
|
928
|
+
"status-update": "status-update";
|
|
929
|
+
task: "task";
|
|
930
|
+
text: "text";
|
|
931
|
+
}>;
|
|
932
|
+
}, z.core.$strip>>>;
|
|
933
|
+
artifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
934
|
+
artifactId: z.ZodString;
|
|
935
|
+
name: z.ZodOptional<z.ZodString>;
|
|
936
|
+
description: z.ZodOptional<z.ZodString>;
|
|
937
|
+
parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
938
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
939
|
+
kind: z.ZodEnum<{
|
|
940
|
+
"artifact-update": "artifact-update";
|
|
941
|
+
data: "data";
|
|
942
|
+
file: "file";
|
|
943
|
+
message: "message";
|
|
944
|
+
"status-update": "status-update";
|
|
945
|
+
task: "task";
|
|
946
|
+
text: "text";
|
|
947
|
+
}>;
|
|
948
|
+
text: z.ZodString;
|
|
949
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
950
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
951
|
+
kind: z.ZodEnum<{
|
|
952
|
+
"artifact-update": "artifact-update";
|
|
953
|
+
data: "data";
|
|
954
|
+
file: "file";
|
|
955
|
+
message: "message";
|
|
956
|
+
"status-update": "status-update";
|
|
957
|
+
task: "task";
|
|
958
|
+
text: "text";
|
|
959
|
+
}>;
|
|
960
|
+
file: z.ZodUnion<readonly [z.ZodObject<{
|
|
961
|
+
name: z.ZodOptional<z.ZodString>;
|
|
962
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
963
|
+
bytes: z.ZodString;
|
|
964
|
+
uri: z.ZodOptional<z.ZodNever>;
|
|
965
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
966
|
+
name: z.ZodOptional<z.ZodString>;
|
|
967
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
968
|
+
uri: z.ZodString;
|
|
969
|
+
bytes: z.ZodOptional<z.ZodNever>;
|
|
970
|
+
}, z.core.$strip>]>;
|
|
971
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
972
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
973
|
+
kind: z.ZodEnum<{
|
|
974
|
+
"artifact-update": "artifact-update";
|
|
975
|
+
data: "data";
|
|
976
|
+
file: "file";
|
|
977
|
+
message: "message";
|
|
978
|
+
"status-update": "status-update";
|
|
979
|
+
task: "task";
|
|
980
|
+
text: "text";
|
|
981
|
+
}>;
|
|
982
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
983
|
+
}, z.core.$strip>]>>;
|
|
984
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
985
|
+
extension: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
986
|
+
}, z.core.$strip>>>;
|
|
987
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
988
|
+
kind: z.ZodEnum<{
|
|
989
|
+
"artifact-update": "artifact-update";
|
|
990
|
+
data: "data";
|
|
991
|
+
file: "file";
|
|
992
|
+
message: "message";
|
|
993
|
+
"status-update": "status-update";
|
|
994
|
+
task: "task";
|
|
995
|
+
text: "text";
|
|
996
|
+
}>;
|
|
997
|
+
}, z.core.$strip>;
|
|
998
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
999
|
+
jsonrpc: z.ZodLiteral<"2.0">;
|
|
1000
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
1001
|
+
result: z.ZodOptional<z.ZodNever>;
|
|
1002
|
+
error: z.ZodObject<{
|
|
1003
|
+
code: z.ZodNumber;
|
|
1004
|
+
message: z.ZodString;
|
|
1005
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
1006
|
+
}, z.core.$strip>;
|
|
1007
|
+
}, z.core.$strip>]>;
|
|
1008
|
+
export type GetTaskResponse = z.infer<typeof GetTaskResponseSchema>;
|
|
227
1009
|
/**
|
|
228
|
-
* @description Request to
|
|
229
|
-
* @required id
|
|
230
|
-
* @required method
|
|
231
|
-
* @required params
|
|
1010
|
+
* @description Request to re-subscribe to a task's updates.
|
|
232
1011
|
*/
|
|
233
|
-
export
|
|
1012
|
+
export declare const TaskResubscriptionRequestSchema: z.ZodObject<{
|
|
1013
|
+
jsonrpc: z.ZodLiteral<"2.0">;
|
|
1014
|
+
id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
1015
|
+
method: z.ZodLiteral<"tasks/resubscribe">;
|
|
1016
|
+
params: z.ZodObject<{
|
|
1017
|
+
id: z.ZodString;
|
|
1018
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1019
|
+
}, z.core.$strip>;
|
|
1020
|
+
}, z.core.$strip>;
|
|
1021
|
+
export type TaskResubscriptionRequest = z.infer<typeof TaskResubscriptionRequestSchema>;
|
|
234
1022
|
/**
|
|
235
|
-
* @description Request to cancel a
|
|
236
|
-
* @required id
|
|
237
|
-
* @required method
|
|
238
|
-
* @required params
|
|
1023
|
+
* @description Request to cancel a task.
|
|
239
1024
|
*/
|
|
240
|
-
export
|
|
1025
|
+
export declare const CancelTaskRequestSchema: z.ZodObject<{
|
|
1026
|
+
jsonrpc: z.ZodLiteral<"2.0">;
|
|
1027
|
+
id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
1028
|
+
method: z.ZodLiteral<"tasks/cancel">;
|
|
1029
|
+
params: z.ZodObject<{
|
|
1030
|
+
id: z.ZodString;
|
|
1031
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1032
|
+
}, z.core.$strip>;
|
|
1033
|
+
}, z.core.$strip>;
|
|
1034
|
+
export type CancelTaskRequest = z.infer<typeof CancelTaskRequestSchema>;
|
|
241
1035
|
/**
|
|
242
|
-
* @description JSON-RPC
|
|
243
|
-
* @required result
|
|
244
|
-
* @never error
|
|
1036
|
+
* @description Represents a successful JSON-RPC response for the `tasks/cancel` method.
|
|
245
1037
|
*/
|
|
246
|
-
export
|
|
1038
|
+
export declare const CancelTaskSuccessResponseSchema: z.ZodObject<{
|
|
1039
|
+
jsonrpc: z.ZodLiteral<"2.0">;
|
|
1040
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
1041
|
+
error: z.ZodOptional<z.ZodNever>;
|
|
1042
|
+
result: z.ZodObject<{
|
|
1043
|
+
id: z.ZodString;
|
|
1044
|
+
contextId: z.ZodOptional<z.ZodString>;
|
|
1045
|
+
status: z.ZodObject<{
|
|
1046
|
+
state: z.ZodEnum<{
|
|
1047
|
+
unknown: "unknown";
|
|
1048
|
+
submitted: "submitted";
|
|
1049
|
+
working: "working";
|
|
1050
|
+
"input-required": "input-required";
|
|
1051
|
+
completed: "completed";
|
|
1052
|
+
canceled: "canceled";
|
|
1053
|
+
failed: "failed";
|
|
1054
|
+
rejected: "rejected";
|
|
1055
|
+
"auth-required": "auth-required";
|
|
1056
|
+
}>;
|
|
1057
|
+
message: z.ZodOptional<z.ZodObject<{
|
|
1058
|
+
role: z.ZodEnum<{
|
|
1059
|
+
user: "user";
|
|
1060
|
+
agent: "agent";
|
|
1061
|
+
}>;
|
|
1062
|
+
parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1063
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1064
|
+
kind: z.ZodEnum<{
|
|
1065
|
+
"artifact-update": "artifact-update";
|
|
1066
|
+
data: "data";
|
|
1067
|
+
file: "file";
|
|
1068
|
+
message: "message";
|
|
1069
|
+
"status-update": "status-update";
|
|
1070
|
+
task: "task";
|
|
1071
|
+
text: "text";
|
|
1072
|
+
}>;
|
|
1073
|
+
text: z.ZodString;
|
|
1074
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1075
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1076
|
+
kind: z.ZodEnum<{
|
|
1077
|
+
"artifact-update": "artifact-update";
|
|
1078
|
+
data: "data";
|
|
1079
|
+
file: "file";
|
|
1080
|
+
message: "message";
|
|
1081
|
+
"status-update": "status-update";
|
|
1082
|
+
task: "task";
|
|
1083
|
+
text: "text";
|
|
1084
|
+
}>;
|
|
1085
|
+
file: z.ZodUnion<readonly [z.ZodObject<{
|
|
1086
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1087
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1088
|
+
bytes: z.ZodString;
|
|
1089
|
+
uri: z.ZodOptional<z.ZodNever>;
|
|
1090
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1091
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1092
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1093
|
+
uri: z.ZodString;
|
|
1094
|
+
bytes: z.ZodOptional<z.ZodNever>;
|
|
1095
|
+
}, z.core.$strip>]>;
|
|
1096
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1097
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1098
|
+
kind: z.ZodEnum<{
|
|
1099
|
+
"artifact-update": "artifact-update";
|
|
1100
|
+
data: "data";
|
|
1101
|
+
file: "file";
|
|
1102
|
+
message: "message";
|
|
1103
|
+
"status-update": "status-update";
|
|
1104
|
+
task: "task";
|
|
1105
|
+
text: "text";
|
|
1106
|
+
}>;
|
|
1107
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1108
|
+
}, z.core.$strip>]>>;
|
|
1109
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1110
|
+
extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1111
|
+
referenceTaskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1112
|
+
messageId: z.ZodString;
|
|
1113
|
+
taskId: z.ZodOptional<z.ZodString>;
|
|
1114
|
+
contextId: z.ZodOptional<z.ZodString>;
|
|
1115
|
+
kind: z.ZodEnum<{
|
|
1116
|
+
"artifact-update": "artifact-update";
|
|
1117
|
+
data: "data";
|
|
1118
|
+
file: "file";
|
|
1119
|
+
message: "message";
|
|
1120
|
+
"status-update": "status-update";
|
|
1121
|
+
task: "task";
|
|
1122
|
+
text: "text";
|
|
1123
|
+
}>;
|
|
1124
|
+
}, z.core.$strip>>;
|
|
1125
|
+
timestamp: z.ZodOptional<z.ZodString>;
|
|
1126
|
+
}, z.core.$strip>;
|
|
1127
|
+
history: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1128
|
+
role: z.ZodEnum<{
|
|
1129
|
+
user: "user";
|
|
1130
|
+
agent: "agent";
|
|
1131
|
+
}>;
|
|
1132
|
+
parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1133
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1134
|
+
kind: z.ZodEnum<{
|
|
1135
|
+
"artifact-update": "artifact-update";
|
|
1136
|
+
data: "data";
|
|
1137
|
+
file: "file";
|
|
1138
|
+
message: "message";
|
|
1139
|
+
"status-update": "status-update";
|
|
1140
|
+
task: "task";
|
|
1141
|
+
text: "text";
|
|
1142
|
+
}>;
|
|
1143
|
+
text: z.ZodString;
|
|
1144
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1145
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1146
|
+
kind: z.ZodEnum<{
|
|
1147
|
+
"artifact-update": "artifact-update";
|
|
1148
|
+
data: "data";
|
|
1149
|
+
file: "file";
|
|
1150
|
+
message: "message";
|
|
1151
|
+
"status-update": "status-update";
|
|
1152
|
+
task: "task";
|
|
1153
|
+
text: "text";
|
|
1154
|
+
}>;
|
|
1155
|
+
file: z.ZodUnion<readonly [z.ZodObject<{
|
|
1156
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1157
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1158
|
+
bytes: z.ZodString;
|
|
1159
|
+
uri: z.ZodOptional<z.ZodNever>;
|
|
1160
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1161
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1162
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1163
|
+
uri: z.ZodString;
|
|
1164
|
+
bytes: z.ZodOptional<z.ZodNever>;
|
|
1165
|
+
}, z.core.$strip>]>;
|
|
1166
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1167
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1168
|
+
kind: z.ZodEnum<{
|
|
1169
|
+
"artifact-update": "artifact-update";
|
|
1170
|
+
data: "data";
|
|
1171
|
+
file: "file";
|
|
1172
|
+
message: "message";
|
|
1173
|
+
"status-update": "status-update";
|
|
1174
|
+
task: "task";
|
|
1175
|
+
text: "text";
|
|
1176
|
+
}>;
|
|
1177
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1178
|
+
}, z.core.$strip>]>>;
|
|
1179
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1180
|
+
extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1181
|
+
referenceTaskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1182
|
+
messageId: z.ZodString;
|
|
1183
|
+
taskId: z.ZodOptional<z.ZodString>;
|
|
1184
|
+
contextId: z.ZodOptional<z.ZodString>;
|
|
1185
|
+
kind: z.ZodEnum<{
|
|
1186
|
+
"artifact-update": "artifact-update";
|
|
1187
|
+
data: "data";
|
|
1188
|
+
file: "file";
|
|
1189
|
+
message: "message";
|
|
1190
|
+
"status-update": "status-update";
|
|
1191
|
+
task: "task";
|
|
1192
|
+
text: "text";
|
|
1193
|
+
}>;
|
|
1194
|
+
}, z.core.$strip>>>;
|
|
1195
|
+
artifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1196
|
+
artifactId: z.ZodString;
|
|
1197
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1198
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1199
|
+
parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1200
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1201
|
+
kind: z.ZodEnum<{
|
|
1202
|
+
"artifact-update": "artifact-update";
|
|
1203
|
+
data: "data";
|
|
1204
|
+
file: "file";
|
|
1205
|
+
message: "message";
|
|
1206
|
+
"status-update": "status-update";
|
|
1207
|
+
task: "task";
|
|
1208
|
+
text: "text";
|
|
1209
|
+
}>;
|
|
1210
|
+
text: z.ZodString;
|
|
1211
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1212
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1213
|
+
kind: z.ZodEnum<{
|
|
1214
|
+
"artifact-update": "artifact-update";
|
|
1215
|
+
data: "data";
|
|
1216
|
+
file: "file";
|
|
1217
|
+
message: "message";
|
|
1218
|
+
"status-update": "status-update";
|
|
1219
|
+
task: "task";
|
|
1220
|
+
text: "text";
|
|
1221
|
+
}>;
|
|
1222
|
+
file: z.ZodUnion<readonly [z.ZodObject<{
|
|
1223
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1224
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1225
|
+
bytes: z.ZodString;
|
|
1226
|
+
uri: z.ZodOptional<z.ZodNever>;
|
|
1227
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1228
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1229
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1230
|
+
uri: z.ZodString;
|
|
1231
|
+
bytes: z.ZodOptional<z.ZodNever>;
|
|
1232
|
+
}, z.core.$strip>]>;
|
|
1233
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1234
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1235
|
+
kind: z.ZodEnum<{
|
|
1236
|
+
"artifact-update": "artifact-update";
|
|
1237
|
+
data: "data";
|
|
1238
|
+
file: "file";
|
|
1239
|
+
message: "message";
|
|
1240
|
+
"status-update": "status-update";
|
|
1241
|
+
task: "task";
|
|
1242
|
+
text: "text";
|
|
1243
|
+
}>;
|
|
1244
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1245
|
+
}, z.core.$strip>]>>;
|
|
1246
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1247
|
+
extension: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1248
|
+
}, z.core.$strip>>>;
|
|
1249
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1250
|
+
kind: z.ZodEnum<{
|
|
1251
|
+
"artifact-update": "artifact-update";
|
|
1252
|
+
data: "data";
|
|
1253
|
+
file: "file";
|
|
1254
|
+
message: "message";
|
|
1255
|
+
"status-update": "status-update";
|
|
1256
|
+
task: "task";
|
|
1257
|
+
text: "text";
|
|
1258
|
+
}>;
|
|
1259
|
+
}, z.core.$strip>;
|
|
1260
|
+
}, z.core.$strip>;
|
|
1261
|
+
export type CancelTaskSuccessResponse = z.infer<typeof CancelTaskSuccessResponseSchema>;
|
|
247
1262
|
/**
|
|
248
|
-
* @description
|
|
249
|
-
* @oneOf CancelTaskSuccessResponse | JSONRPCErrorResponse
|
|
1263
|
+
* @description Represents a JSON-RPC response for the `tasks/cancel` method.
|
|
250
1264
|
*/
|
|
251
|
-
export
|
|
1265
|
+
export declare const CancelTaskResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1266
|
+
jsonrpc: z.ZodLiteral<"2.0">;
|
|
1267
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
1268
|
+
error: z.ZodOptional<z.ZodNever>;
|
|
1269
|
+
result: z.ZodObject<{
|
|
1270
|
+
id: z.ZodString;
|
|
1271
|
+
contextId: z.ZodOptional<z.ZodString>;
|
|
1272
|
+
status: z.ZodObject<{
|
|
1273
|
+
state: z.ZodEnum<{
|
|
1274
|
+
unknown: "unknown";
|
|
1275
|
+
submitted: "submitted";
|
|
1276
|
+
working: "working";
|
|
1277
|
+
"input-required": "input-required";
|
|
1278
|
+
completed: "completed";
|
|
1279
|
+
canceled: "canceled";
|
|
1280
|
+
failed: "failed";
|
|
1281
|
+
rejected: "rejected";
|
|
1282
|
+
"auth-required": "auth-required";
|
|
1283
|
+
}>;
|
|
1284
|
+
message: z.ZodOptional<z.ZodObject<{
|
|
1285
|
+
role: z.ZodEnum<{
|
|
1286
|
+
user: "user";
|
|
1287
|
+
agent: "agent";
|
|
1288
|
+
}>;
|
|
1289
|
+
parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1290
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1291
|
+
kind: z.ZodEnum<{
|
|
1292
|
+
"artifact-update": "artifact-update";
|
|
1293
|
+
data: "data";
|
|
1294
|
+
file: "file";
|
|
1295
|
+
message: "message";
|
|
1296
|
+
"status-update": "status-update";
|
|
1297
|
+
task: "task";
|
|
1298
|
+
text: "text";
|
|
1299
|
+
}>;
|
|
1300
|
+
text: z.ZodString;
|
|
1301
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1302
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1303
|
+
kind: z.ZodEnum<{
|
|
1304
|
+
"artifact-update": "artifact-update";
|
|
1305
|
+
data: "data";
|
|
1306
|
+
file: "file";
|
|
1307
|
+
message: "message";
|
|
1308
|
+
"status-update": "status-update";
|
|
1309
|
+
task: "task";
|
|
1310
|
+
text: "text";
|
|
1311
|
+
}>;
|
|
1312
|
+
file: z.ZodUnion<readonly [z.ZodObject<{
|
|
1313
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1314
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1315
|
+
bytes: z.ZodString;
|
|
1316
|
+
uri: z.ZodOptional<z.ZodNever>;
|
|
1317
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1318
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1319
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1320
|
+
uri: z.ZodString;
|
|
1321
|
+
bytes: z.ZodOptional<z.ZodNever>;
|
|
1322
|
+
}, z.core.$strip>]>;
|
|
1323
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1324
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1325
|
+
kind: z.ZodEnum<{
|
|
1326
|
+
"artifact-update": "artifact-update";
|
|
1327
|
+
data: "data";
|
|
1328
|
+
file: "file";
|
|
1329
|
+
message: "message";
|
|
1330
|
+
"status-update": "status-update";
|
|
1331
|
+
task: "task";
|
|
1332
|
+
text: "text";
|
|
1333
|
+
}>;
|
|
1334
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1335
|
+
}, z.core.$strip>]>>;
|
|
1336
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1337
|
+
extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1338
|
+
referenceTaskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1339
|
+
messageId: z.ZodString;
|
|
1340
|
+
taskId: z.ZodOptional<z.ZodString>;
|
|
1341
|
+
contextId: z.ZodOptional<z.ZodString>;
|
|
1342
|
+
kind: z.ZodEnum<{
|
|
1343
|
+
"artifact-update": "artifact-update";
|
|
1344
|
+
data: "data";
|
|
1345
|
+
file: "file";
|
|
1346
|
+
message: "message";
|
|
1347
|
+
"status-update": "status-update";
|
|
1348
|
+
task: "task";
|
|
1349
|
+
text: "text";
|
|
1350
|
+
}>;
|
|
1351
|
+
}, z.core.$strip>>;
|
|
1352
|
+
timestamp: z.ZodOptional<z.ZodString>;
|
|
1353
|
+
}, z.core.$strip>;
|
|
1354
|
+
history: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1355
|
+
role: z.ZodEnum<{
|
|
1356
|
+
user: "user";
|
|
1357
|
+
agent: "agent";
|
|
1358
|
+
}>;
|
|
1359
|
+
parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1360
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1361
|
+
kind: z.ZodEnum<{
|
|
1362
|
+
"artifact-update": "artifact-update";
|
|
1363
|
+
data: "data";
|
|
1364
|
+
file: "file";
|
|
1365
|
+
message: "message";
|
|
1366
|
+
"status-update": "status-update";
|
|
1367
|
+
task: "task";
|
|
1368
|
+
text: "text";
|
|
1369
|
+
}>;
|
|
1370
|
+
text: z.ZodString;
|
|
1371
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1372
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1373
|
+
kind: z.ZodEnum<{
|
|
1374
|
+
"artifact-update": "artifact-update";
|
|
1375
|
+
data: "data";
|
|
1376
|
+
file: "file";
|
|
1377
|
+
message: "message";
|
|
1378
|
+
"status-update": "status-update";
|
|
1379
|
+
task: "task";
|
|
1380
|
+
text: "text";
|
|
1381
|
+
}>;
|
|
1382
|
+
file: z.ZodUnion<readonly [z.ZodObject<{
|
|
1383
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1384
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1385
|
+
bytes: z.ZodString;
|
|
1386
|
+
uri: z.ZodOptional<z.ZodNever>;
|
|
1387
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1388
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1389
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1390
|
+
uri: z.ZodString;
|
|
1391
|
+
bytes: z.ZodOptional<z.ZodNever>;
|
|
1392
|
+
}, z.core.$strip>]>;
|
|
1393
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1394
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1395
|
+
kind: z.ZodEnum<{
|
|
1396
|
+
"artifact-update": "artifact-update";
|
|
1397
|
+
data: "data";
|
|
1398
|
+
file: "file";
|
|
1399
|
+
message: "message";
|
|
1400
|
+
"status-update": "status-update";
|
|
1401
|
+
task: "task";
|
|
1402
|
+
text: "text";
|
|
1403
|
+
}>;
|
|
1404
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1405
|
+
}, z.core.$strip>]>>;
|
|
1406
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1407
|
+
extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1408
|
+
referenceTaskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1409
|
+
messageId: z.ZodString;
|
|
1410
|
+
taskId: z.ZodOptional<z.ZodString>;
|
|
1411
|
+
contextId: z.ZodOptional<z.ZodString>;
|
|
1412
|
+
kind: z.ZodEnum<{
|
|
1413
|
+
"artifact-update": "artifact-update";
|
|
1414
|
+
data: "data";
|
|
1415
|
+
file: "file";
|
|
1416
|
+
message: "message";
|
|
1417
|
+
"status-update": "status-update";
|
|
1418
|
+
task: "task";
|
|
1419
|
+
text: "text";
|
|
1420
|
+
}>;
|
|
1421
|
+
}, z.core.$strip>>>;
|
|
1422
|
+
artifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1423
|
+
artifactId: z.ZodString;
|
|
1424
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1425
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1426
|
+
parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1427
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1428
|
+
kind: z.ZodEnum<{
|
|
1429
|
+
"artifact-update": "artifact-update";
|
|
1430
|
+
data: "data";
|
|
1431
|
+
file: "file";
|
|
1432
|
+
message: "message";
|
|
1433
|
+
"status-update": "status-update";
|
|
1434
|
+
task: "task";
|
|
1435
|
+
text: "text";
|
|
1436
|
+
}>;
|
|
1437
|
+
text: z.ZodString;
|
|
1438
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1439
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1440
|
+
kind: z.ZodEnum<{
|
|
1441
|
+
"artifact-update": "artifact-update";
|
|
1442
|
+
data: "data";
|
|
1443
|
+
file: "file";
|
|
1444
|
+
message: "message";
|
|
1445
|
+
"status-update": "status-update";
|
|
1446
|
+
task: "task";
|
|
1447
|
+
text: "text";
|
|
1448
|
+
}>;
|
|
1449
|
+
file: z.ZodUnion<readonly [z.ZodObject<{
|
|
1450
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1451
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1452
|
+
bytes: z.ZodString;
|
|
1453
|
+
uri: z.ZodOptional<z.ZodNever>;
|
|
1454
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1455
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1456
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1457
|
+
uri: z.ZodString;
|
|
1458
|
+
bytes: z.ZodOptional<z.ZodNever>;
|
|
1459
|
+
}, z.core.$strip>]>;
|
|
1460
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1461
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1462
|
+
kind: z.ZodEnum<{
|
|
1463
|
+
"artifact-update": "artifact-update";
|
|
1464
|
+
data: "data";
|
|
1465
|
+
file: "file";
|
|
1466
|
+
message: "message";
|
|
1467
|
+
"status-update": "status-update";
|
|
1468
|
+
task: "task";
|
|
1469
|
+
text: "text";
|
|
1470
|
+
}>;
|
|
1471
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1472
|
+
}, z.core.$strip>]>>;
|
|
1473
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1474
|
+
extension: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1475
|
+
}, z.core.$strip>>>;
|
|
1476
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1477
|
+
kind: z.ZodEnum<{
|
|
1478
|
+
"artifact-update": "artifact-update";
|
|
1479
|
+
data: "data";
|
|
1480
|
+
file: "file";
|
|
1481
|
+
message: "message";
|
|
1482
|
+
"status-update": "status-update";
|
|
1483
|
+
task: "task";
|
|
1484
|
+
text: "text";
|
|
1485
|
+
}>;
|
|
1486
|
+
}, z.core.$strip>;
|
|
1487
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1488
|
+
jsonrpc: z.ZodLiteral<"2.0">;
|
|
1489
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
1490
|
+
result: z.ZodOptional<z.ZodNever>;
|
|
1491
|
+
error: z.ZodObject<{
|
|
1492
|
+
code: z.ZodNumber;
|
|
1493
|
+
message: z.ZodString;
|
|
1494
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
1495
|
+
}, z.core.$strip>;
|
|
1496
|
+
}, z.core.$strip>]>;
|
|
1497
|
+
export type CancelTaskResponse = z.infer<typeof CancelTaskResponseSchema>;
|
|
252
1498
|
//# sourceMappingURL=task.d.ts.map
|