@artinet/sdk 0.5.6 → 0.5.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (460) hide show
  1. package/README.md +82 -207
  2. package/dist/client/a2a-client.d.ts.map +1 -0
  3. package/dist/client/index.d.ts.map +1 -0
  4. package/dist/index.d.ts +7 -0
  5. package/dist/index.d.ts.map +1 -0
  6. package/dist/server/express/errors.d.ts.map +1 -0
  7. package/dist/server/express/index.d.ts.map +1 -0
  8. package/dist/server/express/middeware.d.ts.map +1 -0
  9. package/dist/{types/server → server}/express/server.d.ts +8 -8
  10. package/dist/server/express/server.d.ts.map +1 -0
  11. package/dist/server/index.d.ts.map +1 -0
  12. package/dist/{types/services → services}/a2a/factory/builder.d.ts +8 -8
  13. package/dist/services/a2a/factory/builder.d.ts.map +1 -0
  14. package/dist/services/a2a/factory/builder.js +6 -6
  15. package/dist/services/a2a/factory/builder.js.map +1 -1
  16. package/dist/{types/services → services}/a2a/factory/context.d.ts +1 -1
  17. package/dist/services/a2a/factory/context.d.ts.map +1 -0
  18. package/dist/{types/services → services}/a2a/factory/event.d.ts +1 -1
  19. package/dist/services/a2a/factory/event.d.ts.map +1 -0
  20. package/dist/services/a2a/factory/event.js +2 -2
  21. package/dist/services/a2a/factory/event.js.map +1 -1
  22. package/dist/services/a2a/factory/index.d.ts.map +1 -0
  23. package/dist/services/a2a/factory/method.d.ts.map +1 -0
  24. package/dist/services/a2a/factory/service.d.ts.map +1 -0
  25. package/dist/services/a2a/helpers/index.d.ts.map +1 -0
  26. package/dist/services/a2a/helpers/part.d.ts.map +1 -0
  27. package/dist/services/a2a/index.d.ts.map +1 -0
  28. package/dist/services/a2a/managers/cancellation.d.ts.map +1 -0
  29. package/dist/services/a2a/managers/connection.d.ts.map +1 -0
  30. package/dist/services/a2a/managers/context.d.ts.map +1 -0
  31. package/dist/services/a2a/managers/index.d.ts.map +1 -0
  32. package/dist/services/a2a/managers/task.d.ts.map +1 -0
  33. package/dist/services/a2a/methods/cancel-task.d.ts.map +1 -0
  34. package/dist/{types/services → services}/a2a/methods/get-task.d.ts +19 -19
  35. package/dist/services/a2a/methods/get-task.d.ts.map +1 -0
  36. package/dist/services/a2a/methods/index.d.ts.map +1 -0
  37. package/dist/services/a2a/methods/resubscribe-task.d.ts.map +1 -0
  38. package/dist/services/a2a/methods/send-message.d.ts.map +1 -0
  39. package/dist/services/a2a/methods/stream-message.d.ts.map +1 -0
  40. package/dist/services/a2a/methods/stream-message.js +0 -17
  41. package/dist/services/a2a/methods/stream-message.js.map +1 -1
  42. package/dist/{types/services → services}/a2a/service.d.ts +63 -64
  43. package/dist/services/a2a/service.d.ts.map +1 -0
  44. package/dist/services/a2a/service.js +2 -5
  45. package/dist/services/a2a/service.js.map +1 -1
  46. package/dist/services/a2a/state/index.d.ts.map +1 -0
  47. package/dist/services/a2a/state/load.d.ts.map +1 -0
  48. package/dist/services/a2a/state/process.d.ts.map +1 -0
  49. package/dist/services/a2a/state/update/artifact.d.ts.map +1 -0
  50. package/dist/services/a2a/state/update/index.d.ts.map +1 -0
  51. package/dist/services/a2a/state/update/update.d.ts.map +1 -0
  52. package/dist/services/core/execution/execute.d.ts.map +1 -0
  53. package/dist/services/core/execution/index.d.ts.map +1 -0
  54. package/dist/services/core/index.d.ts.map +1 -0
  55. package/dist/services/core/managers/command.d.ts.map +1 -0
  56. package/dist/services/core/managers/event.d.ts.map +1 -0
  57. package/dist/services/core/managers/index.d.ts.map +1 -0
  58. package/dist/services/core/managers/stream.d.ts.map +1 -0
  59. package/dist/services/index.d.ts +4 -0
  60. package/dist/services/index.d.ts.map +1 -0
  61. package/dist/services/index.js +1 -0
  62. package/dist/services/index.js.map +1 -1
  63. package/dist/services/mcp/index.d.ts +2 -0
  64. package/dist/services/mcp/index.d.ts.map +1 -0
  65. package/dist/services/mcp/index.js +2 -0
  66. package/dist/services/mcp/index.js.map +1 -0
  67. package/dist/services/mcp/service.d.ts +31 -0
  68. package/dist/services/mcp/service.d.ts.map +1 -0
  69. package/dist/services/mcp/service.js +123 -0
  70. package/dist/services/mcp/service.js.map +1 -0
  71. package/dist/transport/index.d.ts.map +1 -0
  72. package/dist/transport/rpc/parser.d.ts.map +1 -0
  73. package/dist/transport/rpc/rpc-client.d.ts.map +1 -0
  74. package/dist/transport/streaming/event-stream.d.ts.map +1 -0
  75. package/dist/transport/trpc/a2a/factory/index.d.ts.map +1 -0
  76. package/dist/{types/transport → transport}/trpc/a2a/factory/router.d.ts +398 -398
  77. package/dist/{types/transport → transport}/trpc/a2a/factory/router.d.ts.map +1 -1
  78. package/dist/transport/trpc/a2a/index.d.ts.map +1 -0
  79. package/dist/transport/trpc/a2a/routes/index.d.ts.map +1 -0
  80. package/dist/{types/transport → transport}/trpc/a2a/routes/info.d.ts +15 -15
  81. package/dist/transport/trpc/a2a/routes/info.d.ts.map +1 -0
  82. package/dist/transport/trpc/a2a/routes/message/index.d.ts.map +1 -0
  83. package/dist/{types/transport → transport}/trpc/a2a/routes/message/route.d.ts +85 -85
  84. package/dist/{types/transport → transport}/trpc/a2a/routes/message/route.d.ts.map +1 -1
  85. package/dist/transport/trpc/a2a/routes/tasks/index.d.ts.map +1 -0
  86. package/dist/{types/transport → transport}/trpc/a2a/routes/tasks/route.d.ts +92 -92
  87. package/dist/{types/transport → transport}/trpc/a2a/routes/tasks/route.d.ts.map +1 -1
  88. package/dist/transport/trpc/a2a/routes/tasks/route.js +1 -1
  89. package/dist/transport/trpc/a2a/routes/tasks/route.js.map +1 -1
  90. package/dist/{types/transport → transport}/trpc/a2a/trpc.d.ts +35 -35
  91. package/dist/transport/trpc/a2a/trpc.d.ts.map +1 -0
  92. package/dist/transport/trpc/index.d.ts.map +1 -0
  93. package/dist/types/ext.d.ts.map +1 -0
  94. package/dist/types/index.d.ts +3 -5
  95. package/dist/types/index.d.ts.map +1 -1
  96. package/dist/types/interfaces/client.d.ts.map +1 -0
  97. package/dist/types/interfaces/index.d.ts.map +1 -0
  98. package/dist/types/{types/interfaces → interfaces}/services/a2a/builder.d.ts +4 -0
  99. package/dist/types/interfaces/services/a2a/builder.d.ts.map +1 -0
  100. package/dist/types/interfaces/services/a2a/builder.js +4 -0
  101. package/dist/types/interfaces/services/a2a/builder.js.map +1 -1
  102. package/dist/types/{types/interfaces → interfaces}/services/a2a/context.d.ts +1 -1
  103. package/dist/types/interfaces/services/a2a/context.d.ts.map +1 -0
  104. package/dist/types/interfaces/services/a2a/engine.d.ts.map +1 -0
  105. package/dist/types/interfaces/services/a2a/index.d.ts.map +1 -0
  106. package/dist/types/{types/interfaces → interfaces}/services/a2a/legacy.d.ts +1 -0
  107. package/dist/types/interfaces/services/a2a/legacy.d.ts.map +1 -0
  108. package/dist/types/{types/interfaces → interfaces}/services/a2a/service.d.ts +4 -4
  109. package/dist/types/interfaces/services/a2a/service.d.ts.map +1 -0
  110. package/dist/types/interfaces/services/core/context/command.d.ts.map +1 -0
  111. package/dist/types/{types/interfaces → interfaces}/services/core/context/context.d.ts +1 -1
  112. package/dist/types/interfaces/services/core/context/context.d.ts.map +1 -0
  113. package/dist/types/interfaces/services/core/context/index.d.ts.map +1 -0
  114. package/dist/types/interfaces/services/core/context/types.d.ts.map +1 -0
  115. package/dist/types/{types/interfaces → interfaces}/services/core/execution/engine.d.ts +1 -1
  116. package/dist/types/interfaces/services/core/execution/engine.d.ts.map +1 -0
  117. package/dist/types/interfaces/services/core/execution/environment.d.ts.map +1 -0
  118. package/dist/types/interfaces/services/core/execution/execute.d.ts.map +1 -0
  119. package/dist/types/interfaces/services/core/execution/index.d.ts.map +1 -0
  120. package/dist/types/interfaces/services/core/index.d.ts.map +1 -0
  121. package/dist/types/interfaces/services/core/managers/cancellation.d.ts.map +1 -0
  122. package/dist/types/interfaces/services/core/managers/connection.d.ts.map +1 -0
  123. package/dist/types/interfaces/services/core/managers/context.d.ts.map +1 -0
  124. package/dist/types/{types/interfaces → interfaces}/services/core/managers/event.d.ts +1 -1
  125. package/dist/types/interfaces/services/core/managers/event.d.ts.map +1 -0
  126. package/dist/types/interfaces/services/core/managers/index.d.ts.map +1 -0
  127. package/dist/types/{types/interfaces → interfaces}/services/core/managers/stream.d.ts +1 -1
  128. package/dist/types/interfaces/services/core/managers/stream.d.ts.map +1 -0
  129. package/dist/types/interfaces/services/core/managers/task.d.ts.map +1 -0
  130. package/dist/types/{types/interfaces → interfaces}/services/core/service.d.ts +1 -1
  131. package/dist/types/interfaces/services/core/service.d.ts.map +1 -0
  132. package/dist/types/{types/interfaces → interfaces}/services/index.d.ts +1 -0
  133. package/dist/types/interfaces/services/index.d.ts.map +1 -0
  134. package/dist/types/interfaces/services/index.js +1 -0
  135. package/dist/types/interfaces/services/index.js.map +1 -1
  136. package/dist/types/interfaces/services/mcp/index.d.ts +2 -0
  137. package/dist/types/interfaces/services/mcp/index.d.ts.map +1 -0
  138. package/dist/types/interfaces/services/mcp/index.js +2 -0
  139. package/dist/types/interfaces/services/mcp/index.js.map +1 -0
  140. package/dist/types/interfaces/services/mcp/service.d.ts +50 -0
  141. package/dist/types/interfaces/services/mcp/service.d.ts.map +1 -0
  142. package/dist/types/{schemas/deployment/proxy.js → interfaces/services/mcp/service.js} +1 -1
  143. package/dist/types/interfaces/services/mcp/service.js.map +1 -0
  144. package/dist/types/interfaces/services/protocol.d.ts.map +1 -0
  145. package/dist/types/interfaces/storage.d.ts.map +1 -0
  146. package/dist/types/schemas/a2a/agent.d.ts +2584 -0
  147. package/dist/types/schemas/a2a/agent.d.ts.map +1 -0
  148. package/dist/types/schemas/a2a/agent.js +9 -3
  149. package/dist/types/schemas/a2a/agent.js.map +1 -1
  150. package/dist/types/schemas/a2a/auth.d.ts +909 -0
  151. package/dist/types/schemas/a2a/auth.d.ts.map +1 -0
  152. package/dist/types/schemas/a2a/auth.js +11 -1
  153. package/dist/types/schemas/a2a/auth.js.map +1 -1
  154. package/dist/types/{types/schemas → schemas}/a2a/error.d.ts +243 -27
  155. package/dist/types/schemas/a2a/error.d.ts.map +1 -0
  156. package/dist/types/schemas/a2a/error.js +1 -1
  157. package/dist/types/schemas/a2a/error.js.map +1 -1
  158. package/dist/types/schemas/a2a/index.d.ts.map +1 -0
  159. package/dist/types/schemas/a2a/kind.d.ts +12 -0
  160. package/dist/types/schemas/a2a/kind.d.ts.map +1 -0
  161. package/dist/types/schemas/a2a/kind.js +1 -1
  162. package/dist/types/schemas/a2a/kind.js.map +1 -1
  163. package/dist/types/schemas/a2a/message.d.ts +10344 -0
  164. package/dist/types/schemas/a2a/message.d.ts.map +1 -0
  165. package/dist/types/schemas/a2a/message.js +1 -1
  166. package/dist/types/schemas/a2a/message.js.map +1 -1
  167. package/dist/types/schemas/a2a/notification.d.ts +1518 -0
  168. package/dist/types/schemas/a2a/notification.d.ts.map +1 -0
  169. package/dist/types/schemas/a2a/notification.js +2 -1
  170. package/dist/types/schemas/a2a/notification.js.map +1 -1
  171. package/dist/types/schemas/a2a/parameters.d.ts +957 -0
  172. package/dist/types/schemas/a2a/parameters.d.ts.map +1 -0
  173. package/dist/types/schemas/a2a/parameters.js +1 -1
  174. package/dist/types/schemas/a2a/parameters.js.map +1 -1
  175. package/dist/types/schemas/a2a/protocol.d.ts +14364 -0
  176. package/dist/types/schemas/a2a/protocol.d.ts.map +1 -0
  177. package/dist/types/schemas/a2a/protocol.js +1 -1
  178. package/dist/types/schemas/a2a/protocol.js.map +1 -1
  179. package/dist/types/schemas/a2a/rpc.d.ts +183 -0
  180. package/dist/types/schemas/a2a/rpc.d.ts.map +1 -0
  181. package/dist/types/schemas/a2a/rpc.js +1 -1
  182. package/dist/types/schemas/a2a/rpc.js.map +1 -1
  183. package/dist/types/schemas/a2a/task.d.ts +5887 -0
  184. package/dist/types/schemas/a2a/task.d.ts.map +1 -0
  185. package/dist/types/schemas/a2a/task.js +1 -1
  186. package/dist/types/schemas/a2a/task.js.map +1 -1
  187. package/dist/types/schemas/a2a/transport.d.ts +32 -0
  188. package/dist/types/schemas/a2a/transport.d.ts.map +1 -0
  189. package/dist/types/schemas/a2a/transport.js +2 -1
  190. package/dist/types/schemas/a2a/transport.js.map +1 -1
  191. package/dist/types/schemas/index.d.ts.map +1 -0
  192. package/dist/types/schemas/index.js +0 -1
  193. package/dist/types/schemas/index.js.map +1 -1
  194. package/dist/types/utils/index.d.ts +1 -8
  195. package/dist/types/utils/index.d.ts.map +1 -1
  196. package/dist/types/utils/transform.d.ts.map +1 -0
  197. package/dist/utils/common/constants.d.ts.map +1 -0
  198. package/dist/utils/common/errors.d.ts.map +1 -0
  199. package/dist/utils/common/utils.d.ts.map +1 -0
  200. package/dist/utils/common/zAsyncIterable-v3.d.ts +25 -0
  201. package/dist/utils/common/zAsyncIterable-v3.d.ts.map +1 -0
  202. package/dist/utils/common/zAsyncIterable-v3.js +39 -0
  203. package/dist/utils/common/zAsyncIterable-v3.js.map +1 -0
  204. package/dist/utils/common/zAsyncIterable.d.ts.map +1 -0
  205. package/dist/utils/common/zAsyncIterable.js +1 -0
  206. package/dist/utils/common/zAsyncIterable.js.map +1 -1
  207. package/dist/utils/index.d.ts +12 -0
  208. package/dist/utils/index.d.ts.map +1 -0
  209. package/dist/utils/index.js +5 -8
  210. package/dist/utils/index.js.map +1 -1
  211. package/dist/utils/logging/index.d.ts.map +1 -0
  212. package/dist/utils/logging/log.d.ts.map +1 -0
  213. package/dist/utils/logging/log.js +15 -1
  214. package/dist/utils/logging/log.js.map +1 -1
  215. package/dist/utils/logging/logger.d.ts +19 -0
  216. package/dist/utils/logging/logger.d.ts.map +1 -0
  217. package/dist/utils/logging/logger.js +5 -37
  218. package/dist/utils/logging/logger.js.map +1 -1
  219. package/dist/{types/utils → utils}/storage/file.d.ts +1 -1
  220. package/dist/utils/storage/file.d.ts.map +1 -0
  221. package/dist/utils/storage/file.js +5 -4
  222. package/dist/utils/storage/file.js.map +1 -1
  223. package/dist/utils/storage/memory.d.ts.map +1 -0
  224. package/package.json +21 -27
  225. package/CHANGELOG.md +0 -276
  226. package/dist/types/client/a2a-client.d.ts.map +0 -1
  227. package/dist/types/client/index.d.ts.map +0 -1
  228. package/dist/types/schemas/deployment/index.js +0 -3
  229. package/dist/types/schemas/deployment/index.js.map +0 -1
  230. package/dist/types/schemas/deployment/proxy.js.map +0 -1
  231. package/dist/types/schemas/deployment/request.js +0 -88
  232. package/dist/types/schemas/deployment/request.js.map +0 -1
  233. package/dist/types/server/express/errors.d.ts.map +0 -1
  234. package/dist/types/server/express/index.d.ts.map +0 -1
  235. package/dist/types/server/express/middeware.d.ts.map +0 -1
  236. package/dist/types/server/express/server.d.ts.map +0 -1
  237. package/dist/types/server/index.d.ts.map +0 -1
  238. package/dist/types/services/a2a/factory/builder.d.ts.map +0 -1
  239. package/dist/types/services/a2a/factory/context.d.ts.map +0 -1
  240. package/dist/types/services/a2a/factory/event.d.ts.map +0 -1
  241. package/dist/types/services/a2a/factory/index.d.ts.map +0 -1
  242. package/dist/types/services/a2a/factory/method.d.ts.map +0 -1
  243. package/dist/types/services/a2a/factory/service.d.ts.map +0 -1
  244. package/dist/types/services/a2a/helpers/index.d.ts.map +0 -1
  245. package/dist/types/services/a2a/helpers/part.d.ts.map +0 -1
  246. package/dist/types/services/a2a/index.d.ts.map +0 -1
  247. package/dist/types/services/a2a/managers/cancellation.d.ts.map +0 -1
  248. package/dist/types/services/a2a/managers/connection.d.ts.map +0 -1
  249. package/dist/types/services/a2a/managers/context.d.ts.map +0 -1
  250. package/dist/types/services/a2a/managers/index.d.ts.map +0 -1
  251. package/dist/types/services/a2a/managers/task.d.ts.map +0 -1
  252. package/dist/types/services/a2a/methods/cancel-task.d.ts.map +0 -1
  253. package/dist/types/services/a2a/methods/get-task.d.ts.map +0 -1
  254. package/dist/types/services/a2a/methods/index.d.ts.map +0 -1
  255. package/dist/types/services/a2a/methods/resubscribe-task.d.ts.map +0 -1
  256. package/dist/types/services/a2a/methods/send-message.d.ts.map +0 -1
  257. package/dist/types/services/a2a/methods/stream-message.d.ts.map +0 -1
  258. package/dist/types/services/a2a/service.d.ts.map +0 -1
  259. package/dist/types/services/a2a/state/index.d.ts.map +0 -1
  260. package/dist/types/services/a2a/state/load.d.ts.map +0 -1
  261. package/dist/types/services/a2a/state/process.d.ts.map +0 -1
  262. package/dist/types/services/a2a/state/update/artifact.d.ts.map +0 -1
  263. package/dist/types/services/a2a/state/update/index.d.ts.map +0 -1
  264. package/dist/types/services/a2a/state/update/update.d.ts.map +0 -1
  265. package/dist/types/services/core/execution/execute.d.ts.map +0 -1
  266. package/dist/types/services/core/execution/index.d.ts.map +0 -1
  267. package/dist/types/services/core/index.d.ts.map +0 -1
  268. package/dist/types/services/core/managers/command.d.ts.map +0 -1
  269. package/dist/types/services/core/managers/event.d.ts.map +0 -1
  270. package/dist/types/services/core/managers/index.d.ts.map +0 -1
  271. package/dist/types/services/core/managers/stream.d.ts.map +0 -1
  272. package/dist/types/services/index.d.ts +0 -3
  273. package/dist/types/services/index.d.ts.map +0 -1
  274. package/dist/types/transport/index.d.ts.map +0 -1
  275. package/dist/types/transport/rpc/parser.d.ts.map +0 -1
  276. package/dist/types/transport/rpc/rpc-client.d.ts.map +0 -1
  277. package/dist/types/transport/streaming/event-stream.d.ts.map +0 -1
  278. package/dist/types/transport/trpc/a2a/factory/index.d.ts.map +0 -1
  279. package/dist/types/transport/trpc/a2a/index.d.ts.map +0 -1
  280. package/dist/types/transport/trpc/a2a/routes/index.d.ts.map +0 -1
  281. package/dist/types/transport/trpc/a2a/routes/info.d.ts.map +0 -1
  282. package/dist/types/transport/trpc/a2a/routes/message/index.d.ts.map +0 -1
  283. package/dist/types/transport/trpc/a2a/routes/tasks/index.d.ts.map +0 -1
  284. package/dist/types/transport/trpc/a2a/trpc.d.ts.map +0 -1
  285. package/dist/types/transport/trpc/index.d.ts.map +0 -1
  286. package/dist/types/types/ext.d.ts.map +0 -1
  287. package/dist/types/types/index.d.ts +0 -5
  288. package/dist/types/types/index.d.ts.map +0 -1
  289. package/dist/types/types/interfaces/client.d.ts.map +0 -1
  290. package/dist/types/types/interfaces/index.d.ts.map +0 -1
  291. package/dist/types/types/interfaces/services/a2a/builder.d.ts.map +0 -1
  292. package/dist/types/types/interfaces/services/a2a/context.d.ts.map +0 -1
  293. package/dist/types/types/interfaces/services/a2a/engine.d.ts.map +0 -1
  294. package/dist/types/types/interfaces/services/a2a/index.d.ts.map +0 -1
  295. package/dist/types/types/interfaces/services/a2a/legacy.d.ts.map +0 -1
  296. package/dist/types/types/interfaces/services/a2a/service.d.ts.map +0 -1
  297. package/dist/types/types/interfaces/services/core/context/command.d.ts.map +0 -1
  298. package/dist/types/types/interfaces/services/core/context/context.d.ts.map +0 -1
  299. package/dist/types/types/interfaces/services/core/context/index.d.ts.map +0 -1
  300. package/dist/types/types/interfaces/services/core/context/types.d.ts.map +0 -1
  301. package/dist/types/types/interfaces/services/core/execution/engine.d.ts.map +0 -1
  302. package/dist/types/types/interfaces/services/core/execution/environment.d.ts.map +0 -1
  303. package/dist/types/types/interfaces/services/core/execution/execute.d.ts.map +0 -1
  304. package/dist/types/types/interfaces/services/core/execution/index.d.ts.map +0 -1
  305. package/dist/types/types/interfaces/services/core/index.d.ts.map +0 -1
  306. package/dist/types/types/interfaces/services/core/managers/cancellation.d.ts.map +0 -1
  307. package/dist/types/types/interfaces/services/core/managers/connection.d.ts.map +0 -1
  308. package/dist/types/types/interfaces/services/core/managers/context.d.ts.map +0 -1
  309. package/dist/types/types/interfaces/services/core/managers/event.d.ts.map +0 -1
  310. package/dist/types/types/interfaces/services/core/managers/index.d.ts.map +0 -1
  311. package/dist/types/types/interfaces/services/core/managers/stream.d.ts.map +0 -1
  312. package/dist/types/types/interfaces/services/core/managers/task.d.ts.map +0 -1
  313. package/dist/types/types/interfaces/services/core/service.d.ts.map +0 -1
  314. package/dist/types/types/interfaces/services/index.d.ts.map +0 -1
  315. package/dist/types/types/interfaces/services/protocol.d.ts.map +0 -1
  316. package/dist/types/types/interfaces/storage.d.ts.map +0 -1
  317. package/dist/types/types/schemas/a2a/agent.d.ts +0 -509
  318. package/dist/types/types/schemas/a2a/agent.d.ts.map +0 -1
  319. package/dist/types/types/schemas/a2a/auth.d.ts +0 -285
  320. package/dist/types/types/schemas/a2a/auth.d.ts.map +0 -1
  321. package/dist/types/types/schemas/a2a/error.d.ts.map +0 -1
  322. package/dist/types/types/schemas/a2a/index.d.ts.map +0 -1
  323. package/dist/types/types/schemas/a2a/kind.d.ts +0 -28
  324. package/dist/types/types/schemas/a2a/kind.d.ts.map +0 -1
  325. package/dist/types/types/schemas/a2a/message.d.ts +0 -2570
  326. package/dist/types/types/schemas/a2a/message.d.ts.map +0 -1
  327. package/dist/types/types/schemas/a2a/notification.d.ts +0 -338
  328. package/dist/types/types/schemas/a2a/notification.d.ts.map +0 -1
  329. package/dist/types/types/schemas/a2a/parameters.d.ts +0 -308
  330. package/dist/types/types/schemas/a2a/parameters.d.ts.map +0 -1
  331. package/dist/types/types/schemas/a2a/protocol.d.ts +0 -3207
  332. package/dist/types/types/schemas/a2a/protocol.d.ts.map +0 -1
  333. package/dist/types/types/schemas/a2a/rpc.d.ts +0 -57
  334. package/dist/types/types/schemas/a2a/rpc.d.ts.map +0 -1
  335. package/dist/types/types/schemas/a2a/task.d.ts +0 -1498
  336. package/dist/types/types/schemas/a2a/task.d.ts.map +0 -1
  337. package/dist/types/types/schemas/a2a/transport.d.ts +0 -28
  338. package/dist/types/types/schemas/a2a/transport.d.ts.map +0 -1
  339. package/dist/types/types/schemas/deployment/index.d.ts +0 -3
  340. package/dist/types/types/schemas/deployment/index.d.ts.map +0 -1
  341. package/dist/types/types/schemas/deployment/proxy.d.ts +0 -96
  342. package/dist/types/types/schemas/deployment/proxy.d.ts.map +0 -1
  343. package/dist/types/types/schemas/deployment/request.d.ts +0 -508
  344. package/dist/types/types/schemas/deployment/request.d.ts.map +0 -1
  345. package/dist/types/types/schemas/index.d.ts.map +0 -1
  346. package/dist/types/types/utils/index.d.ts +0 -2
  347. package/dist/types/types/utils/index.d.ts.map +0 -1
  348. package/dist/types/types/utils/transform.d.ts.map +0 -1
  349. package/dist/types/utils/api/register.d.ts +0 -29
  350. package/dist/types/utils/api/register.d.ts.map +0 -1
  351. package/dist/types/utils/common/constants.d.ts.map +0 -1
  352. package/dist/types/utils/common/errors.d.ts.map +0 -1
  353. package/dist/types/utils/common/utils.d.ts.map +0 -1
  354. package/dist/types/utils/common/zAsyncIterable.d.ts.map +0 -1
  355. package/dist/types/utils/deployment/agents.d.ts +0 -57
  356. package/dist/types/utils/deployment/agents.d.ts.map +0 -1
  357. package/dist/types/utils/deployment/bundler.d.ts +0 -15
  358. package/dist/types/utils/deployment/bundler.d.ts.map +0 -1
  359. package/dist/types/utils/deployment/full-deployment.d.ts +0 -18
  360. package/dist/types/utils/deployment/full-deployment.d.ts.map +0 -1
  361. package/dist/types/utils/deployment/index.d.ts +0 -5
  362. package/dist/types/utils/deployment/index.d.ts.map +0 -1
  363. package/dist/types/utils/deployment/task-wrapper.d.ts +0 -43
  364. package/dist/types/utils/deployment/task-wrapper.d.ts.map +0 -1
  365. package/dist/types/utils/deployment/test-deployment.d.ts +0 -28
  366. package/dist/types/utils/deployment/test-deployment.d.ts.map +0 -1
  367. package/dist/types/utils/logging/index.d.ts.map +0 -1
  368. package/dist/types/utils/logging/log.d.ts.map +0 -1
  369. package/dist/types/utils/logging/logger.d.ts +0 -20
  370. package/dist/types/utils/logging/logger.d.ts.map +0 -1
  371. package/dist/types/utils/storage/file.d.ts.map +0 -1
  372. package/dist/types/utils/storage/memory.d.ts.map +0 -1
  373. package/dist/utils/api/register.js +0 -107
  374. package/dist/utils/api/register.js.map +0 -1
  375. package/dist/utils/deployment/agents.js +0 -96
  376. package/dist/utils/deployment/agents.js.map +0 -1
  377. package/dist/utils/deployment/bundler.js +0 -52
  378. package/dist/utils/deployment/bundler.js.map +0 -1
  379. package/dist/utils/deployment/full-deployment.js +0 -35
  380. package/dist/utils/deployment/full-deployment.js.map +0 -1
  381. package/dist/utils/deployment/index.js +0 -5
  382. package/dist/utils/deployment/index.js.map +0 -1
  383. package/dist/utils/deployment/task-wrapper.js +0 -44
  384. package/dist/utils/deployment/task-wrapper.js.map +0 -1
  385. package/dist/utils/deployment/test-deployment.js +0 -69
  386. package/dist/utils/deployment/test-deployment.js.map +0 -1
  387. /package/dist/{types/client → client}/a2a-client.d.ts +0 -0
  388. /package/dist/{types/client → client}/index.d.ts +0 -0
  389. /package/dist/{types/server → server}/express/errors.d.ts +0 -0
  390. /package/dist/{types/server → server}/express/index.d.ts +0 -0
  391. /package/dist/{types/server → server}/express/middeware.d.ts +0 -0
  392. /package/dist/{types/server → server}/index.d.ts +0 -0
  393. /package/dist/{types/services → services}/a2a/factory/index.d.ts +0 -0
  394. /package/dist/{types/services → services}/a2a/factory/method.d.ts +0 -0
  395. /package/dist/{types/services → services}/a2a/factory/service.d.ts +0 -0
  396. /package/dist/{types/services → services}/a2a/helpers/index.d.ts +0 -0
  397. /package/dist/{types/services → services}/a2a/helpers/part.d.ts +0 -0
  398. /package/dist/{types/services → services}/a2a/index.d.ts +0 -0
  399. /package/dist/{types/services → services}/a2a/managers/cancellation.d.ts +0 -0
  400. /package/dist/{types/services → services}/a2a/managers/connection.d.ts +0 -0
  401. /package/dist/{types/services → services}/a2a/managers/context.d.ts +0 -0
  402. /package/dist/{types/services → services}/a2a/managers/index.d.ts +0 -0
  403. /package/dist/{types/services → services}/a2a/managers/task.d.ts +0 -0
  404. /package/dist/{types/services → services}/a2a/methods/cancel-task.d.ts +0 -0
  405. /package/dist/{types/services → services}/a2a/methods/index.d.ts +0 -0
  406. /package/dist/{types/services → services}/a2a/methods/resubscribe-task.d.ts +0 -0
  407. /package/dist/{types/services → services}/a2a/methods/send-message.d.ts +0 -0
  408. /package/dist/{types/services → services}/a2a/methods/stream-message.d.ts +0 -0
  409. /package/dist/{types/services → services}/a2a/state/index.d.ts +0 -0
  410. /package/dist/{types/services → services}/a2a/state/load.d.ts +0 -0
  411. /package/dist/{types/services → services}/a2a/state/process.d.ts +0 -0
  412. /package/dist/{types/services → services}/a2a/state/update/artifact.d.ts +0 -0
  413. /package/dist/{types/services → services}/a2a/state/update/index.d.ts +0 -0
  414. /package/dist/{types/services → services}/a2a/state/update/update.d.ts +0 -0
  415. /package/dist/{types/services → services}/core/execution/execute.d.ts +0 -0
  416. /package/dist/{types/services → services}/core/execution/index.d.ts +0 -0
  417. /package/dist/{types/services → services}/core/index.d.ts +0 -0
  418. /package/dist/{types/services → services}/core/managers/command.d.ts +0 -0
  419. /package/dist/{types/services → services}/core/managers/event.d.ts +0 -0
  420. /package/dist/{types/services → services}/core/managers/index.d.ts +0 -0
  421. /package/dist/{types/services → services}/core/managers/stream.d.ts +0 -0
  422. /package/dist/{types/transport → transport}/index.d.ts +0 -0
  423. /package/dist/{types/transport → transport}/rpc/parser.d.ts +0 -0
  424. /package/dist/{types/transport → transport}/rpc/rpc-client.d.ts +0 -0
  425. /package/dist/{types/transport → transport}/streaming/event-stream.d.ts +0 -0
  426. /package/dist/{types/transport → transport}/trpc/a2a/factory/index.d.ts +0 -0
  427. /package/dist/{types/transport → transport}/trpc/a2a/index.d.ts +0 -0
  428. /package/dist/{types/transport → transport}/trpc/a2a/routes/index.d.ts +0 -0
  429. /package/dist/{types/transport → transport}/trpc/a2a/routes/message/index.d.ts +0 -0
  430. /package/dist/{types/transport → transport}/trpc/a2a/routes/tasks/index.d.ts +0 -0
  431. /package/dist/{types/transport → transport}/trpc/index.d.ts +0 -0
  432. /package/dist/types/{types/ext.d.ts → ext.d.ts} +0 -0
  433. /package/dist/types/{types/interfaces → interfaces}/client.d.ts +0 -0
  434. /package/dist/types/{types/interfaces → interfaces}/index.d.ts +0 -0
  435. /package/dist/types/{types/interfaces → interfaces}/services/a2a/engine.d.ts +0 -0
  436. /package/dist/types/{types/interfaces → interfaces}/services/a2a/index.d.ts +0 -0
  437. /package/dist/types/{types/interfaces → interfaces}/services/core/context/command.d.ts +0 -0
  438. /package/dist/types/{types/interfaces → interfaces}/services/core/context/index.d.ts +0 -0
  439. /package/dist/types/{types/interfaces → interfaces}/services/core/context/types.d.ts +0 -0
  440. /package/dist/types/{types/interfaces → interfaces}/services/core/execution/environment.d.ts +0 -0
  441. /package/dist/types/{types/interfaces → interfaces}/services/core/execution/execute.d.ts +0 -0
  442. /package/dist/types/{types/interfaces → interfaces}/services/core/execution/index.d.ts +0 -0
  443. /package/dist/types/{types/interfaces → interfaces}/services/core/index.d.ts +0 -0
  444. /package/dist/types/{types/interfaces → interfaces}/services/core/managers/cancellation.d.ts +0 -0
  445. /package/dist/types/{types/interfaces → interfaces}/services/core/managers/connection.d.ts +0 -0
  446. /package/dist/types/{types/interfaces → interfaces}/services/core/managers/context.d.ts +0 -0
  447. /package/dist/types/{types/interfaces → interfaces}/services/core/managers/index.d.ts +0 -0
  448. /package/dist/types/{types/interfaces → interfaces}/services/core/managers/task.d.ts +0 -0
  449. /package/dist/types/{types/interfaces → interfaces}/services/protocol.d.ts +0 -0
  450. /package/dist/types/{types/interfaces → interfaces}/storage.d.ts +0 -0
  451. /package/dist/types/{types/schemas → schemas}/a2a/index.d.ts +0 -0
  452. /package/dist/types/{types/schemas → schemas}/index.d.ts +0 -0
  453. /package/dist/types/{types/utils → utils}/transform.d.ts +0 -0
  454. /package/dist/{types/utils → utils}/common/constants.d.ts +0 -0
  455. /package/dist/{types/utils → utils}/common/errors.d.ts +0 -0
  456. /package/dist/{types/utils → utils}/common/utils.d.ts +0 -0
  457. /package/dist/{types/utils → utils}/common/zAsyncIterable.d.ts +0 -0
  458. /package/dist/{types/utils → utils}/logging/index.d.ts +0 -0
  459. /package/dist/{types/utils → utils}/logging/log.d.ts +0 -0
  460. /package/dist/{types/utils → utils}/storage/memory.d.ts +0 -0
@@ -1,2570 +0,0 @@
1
- /**
2
- * Copyright 2025 The Artinet Project
3
- * SPDX-License-Identifier: Apache-2.0
4
- */
5
- import { z } from "zod/v4";
6
- /**
7
- * @description Defines configuration options for a `message/send` or `message/stream` request.
8
- */
9
- export declare const MessageSendConfigurationSchema: z.ZodObject<{
10
- acceptedOutputModes: z.ZodOptional<z.ZodArray<z.ZodString>>;
11
- historyLength: z.ZodOptional<z.ZodNumber>;
12
- pushNotificationConfig: z.ZodOptional<z.ZodObject<{
13
- id: z.ZodOptional<z.ZodString>;
14
- url: z.ZodURL;
15
- token: z.ZodOptional<z.ZodString>;
16
- authentication: z.ZodOptional<z.ZodObject<{
17
- schemes: z.ZodArray<z.ZodString>;
18
- credentials: z.ZodOptional<z.ZodString>;
19
- }, z.core.$strip>>;
20
- }, z.core.$strip>>;
21
- blocking: z.ZodOptional<z.ZodBoolean>;
22
- }, z.core.$strip>;
23
- export type MessageSendConfiguration = z.infer<typeof MessageSendConfigurationSchema>;
24
- /**
25
- * @description Defines the parameters for a request to send a message to an agent. This can be used
26
- * to create a new task, continue an existing one, or restart a task.
27
- */
28
- export declare const MessageSendParamsSchema: z.ZodObject<{
29
- message: z.ZodObject<{
30
- role: z.ZodEnum<{
31
- user: "user";
32
- agent: "agent";
33
- }>;
34
- parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
35
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
36
- kind: z.ZodEnum<{
37
- "artifact-update": "artifact-update";
38
- data: "data";
39
- file: "file";
40
- message: "message";
41
- "status-update": "status-update";
42
- task: "task";
43
- text: "text";
44
- }>;
45
- text: z.ZodString;
46
- }, z.core.$strip>, z.ZodObject<{
47
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
48
- kind: z.ZodEnum<{
49
- "artifact-update": "artifact-update";
50
- data: "data";
51
- file: "file";
52
- message: "message";
53
- "status-update": "status-update";
54
- task: "task";
55
- text: "text";
56
- }>;
57
- file: z.ZodUnion<readonly [z.ZodObject<{
58
- name: z.ZodOptional<z.ZodString>;
59
- mimeType: z.ZodOptional<z.ZodString>;
60
- bytes: z.ZodString;
61
- uri: z.ZodOptional<z.ZodNever>;
62
- }, z.core.$strip>, z.ZodObject<{
63
- name: z.ZodOptional<z.ZodString>;
64
- mimeType: z.ZodOptional<z.ZodString>;
65
- uri: z.ZodString;
66
- bytes: z.ZodOptional<z.ZodNever>;
67
- }, z.core.$strip>]>;
68
- }, z.core.$strip>, z.ZodObject<{
69
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
70
- kind: z.ZodEnum<{
71
- "artifact-update": "artifact-update";
72
- data: "data";
73
- file: "file";
74
- message: "message";
75
- "status-update": "status-update";
76
- task: "task";
77
- text: "text";
78
- }>;
79
- data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
80
- }, z.core.$strip>]>>;
81
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
82
- extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
83
- referenceTaskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
84
- messageId: z.ZodString;
85
- taskId: z.ZodOptional<z.ZodString>;
86
- contextId: z.ZodOptional<z.ZodString>;
87
- kind: z.ZodEnum<{
88
- "artifact-update": "artifact-update";
89
- data: "data";
90
- file: "file";
91
- message: "message";
92
- "status-update": "status-update";
93
- task: "task";
94
- text: "text";
95
- }>;
96
- }, z.core.$strip>;
97
- configuration: z.ZodOptional<z.ZodObject<{
98
- acceptedOutputModes: z.ZodOptional<z.ZodArray<z.ZodString>>;
99
- historyLength: z.ZodOptional<z.ZodNumber>;
100
- pushNotificationConfig: z.ZodOptional<z.ZodObject<{
101
- id: z.ZodOptional<z.ZodString>;
102
- url: z.ZodURL;
103
- token: z.ZodOptional<z.ZodString>;
104
- authentication: z.ZodOptional<z.ZodObject<{
105
- schemes: z.ZodArray<z.ZodString>;
106
- credentials: z.ZodOptional<z.ZodString>;
107
- }, z.core.$strip>>;
108
- }, z.core.$strip>>;
109
- blocking: z.ZodOptional<z.ZodBoolean>;
110
- }, z.core.$strip>>;
111
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
112
- }, z.core.$strip>;
113
- export type MessageSendParams = z.infer<typeof MessageSendParamsSchema>;
114
- /**
115
- * @description Represents a JSON-RPC request for the `message/send` method.
116
- */
117
- export declare const SendMessageRequestSchema: z.ZodObject<{
118
- jsonrpc: z.ZodLiteral<"2.0">;
119
- id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
120
- method: z.ZodLiteral<"message/send">;
121
- params: z.ZodObject<{
122
- message: z.ZodObject<{
123
- role: z.ZodEnum<{
124
- user: "user";
125
- agent: "agent";
126
- }>;
127
- parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
128
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
129
- kind: z.ZodEnum<{
130
- "artifact-update": "artifact-update";
131
- data: "data";
132
- file: "file";
133
- message: "message";
134
- "status-update": "status-update";
135
- task: "task";
136
- text: "text";
137
- }>;
138
- text: z.ZodString;
139
- }, z.core.$strip>, z.ZodObject<{
140
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
141
- kind: z.ZodEnum<{
142
- "artifact-update": "artifact-update";
143
- data: "data";
144
- file: "file";
145
- message: "message";
146
- "status-update": "status-update";
147
- task: "task";
148
- text: "text";
149
- }>;
150
- file: z.ZodUnion<readonly [z.ZodObject<{
151
- name: z.ZodOptional<z.ZodString>;
152
- mimeType: z.ZodOptional<z.ZodString>;
153
- bytes: z.ZodString;
154
- uri: z.ZodOptional<z.ZodNever>;
155
- }, z.core.$strip>, z.ZodObject<{
156
- name: z.ZodOptional<z.ZodString>;
157
- mimeType: z.ZodOptional<z.ZodString>;
158
- uri: z.ZodString;
159
- bytes: z.ZodOptional<z.ZodNever>;
160
- }, z.core.$strip>]>;
161
- }, z.core.$strip>, z.ZodObject<{
162
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
163
- kind: z.ZodEnum<{
164
- "artifact-update": "artifact-update";
165
- data: "data";
166
- file: "file";
167
- message: "message";
168
- "status-update": "status-update";
169
- task: "task";
170
- text: "text";
171
- }>;
172
- data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
173
- }, z.core.$strip>]>>;
174
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
175
- extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
176
- referenceTaskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
177
- messageId: z.ZodString;
178
- taskId: z.ZodOptional<z.ZodString>;
179
- contextId: z.ZodOptional<z.ZodString>;
180
- kind: z.ZodEnum<{
181
- "artifact-update": "artifact-update";
182
- data: "data";
183
- file: "file";
184
- message: "message";
185
- "status-update": "status-update";
186
- task: "task";
187
- text: "text";
188
- }>;
189
- }, z.core.$strip>;
190
- configuration: z.ZodOptional<z.ZodObject<{
191
- acceptedOutputModes: z.ZodOptional<z.ZodArray<z.ZodString>>;
192
- historyLength: z.ZodOptional<z.ZodNumber>;
193
- pushNotificationConfig: z.ZodOptional<z.ZodObject<{
194
- id: z.ZodOptional<z.ZodString>;
195
- url: z.ZodURL;
196
- token: z.ZodOptional<z.ZodString>;
197
- authentication: z.ZodOptional<z.ZodObject<{
198
- schemes: z.ZodArray<z.ZodString>;
199
- credentials: z.ZodOptional<z.ZodString>;
200
- }, z.core.$strip>>;
201
- }, z.core.$strip>>;
202
- blocking: z.ZodOptional<z.ZodBoolean>;
203
- }, z.core.$strip>>;
204
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
205
- }, z.core.$strip>;
206
- }, z.core.$strip>;
207
- export type SendMessageRequest = z.infer<typeof SendMessageRequestSchema>;
208
- /**
209
- * @description The result of a message send request, which can be a Message or the initial Task object.
210
- */
211
- export declare const SendMessageSuccessResultSchema: z.ZodUnion<readonly [z.ZodObject<{
212
- role: z.ZodEnum<{
213
- user: "user";
214
- agent: "agent";
215
- }>;
216
- parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
217
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
218
- kind: z.ZodEnum<{
219
- "artifact-update": "artifact-update";
220
- data: "data";
221
- file: "file";
222
- message: "message";
223
- "status-update": "status-update";
224
- task: "task";
225
- text: "text";
226
- }>;
227
- text: z.ZodString;
228
- }, z.core.$strip>, 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
- file: z.ZodUnion<readonly [z.ZodObject<{
240
- name: z.ZodOptional<z.ZodString>;
241
- mimeType: z.ZodOptional<z.ZodString>;
242
- bytes: z.ZodString;
243
- uri: z.ZodOptional<z.ZodNever>;
244
- }, z.core.$strip>, z.ZodObject<{
245
- name: z.ZodOptional<z.ZodString>;
246
- mimeType: z.ZodOptional<z.ZodString>;
247
- uri: z.ZodString;
248
- bytes: z.ZodOptional<z.ZodNever>;
249
- }, z.core.$strip>]>;
250
- }, z.core.$strip>, z.ZodObject<{
251
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
252
- kind: z.ZodEnum<{
253
- "artifact-update": "artifact-update";
254
- data: "data";
255
- file: "file";
256
- message: "message";
257
- "status-update": "status-update";
258
- task: "task";
259
- text: "text";
260
- }>;
261
- data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
262
- }, z.core.$strip>]>>;
263
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
264
- extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
265
- referenceTaskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
266
- messageId: z.ZodString;
267
- taskId: z.ZodOptional<z.ZodString>;
268
- contextId: z.ZodOptional<z.ZodString>;
269
- kind: z.ZodEnum<{
270
- "artifact-update": "artifact-update";
271
- data: "data";
272
- file: "file";
273
- message: "message";
274
- "status-update": "status-update";
275
- task: "task";
276
- text: "text";
277
- }>;
278
- }, z.core.$strip>, z.ZodObject<{
279
- id: z.ZodString;
280
- contextId: z.ZodOptional<z.ZodString>;
281
- status: z.ZodObject<{
282
- state: z.ZodEnum<{
283
- unknown: "unknown";
284
- submitted: "submitted";
285
- working: "working";
286
- "input-required": "input-required";
287
- completed: "completed";
288
- canceled: "canceled";
289
- failed: "failed";
290
- rejected: "rejected";
291
- "auth-required": "auth-required";
292
- }>;
293
- message: z.ZodOptional<z.ZodObject<{
294
- role: z.ZodEnum<{
295
- user: "user";
296
- agent: "agent";
297
- }>;
298
- parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
299
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
300
- kind: z.ZodEnum<{
301
- "artifact-update": "artifact-update";
302
- data: "data";
303
- file: "file";
304
- message: "message";
305
- "status-update": "status-update";
306
- task: "task";
307
- text: "text";
308
- }>;
309
- text: z.ZodString;
310
- }, z.core.$strip>, z.ZodObject<{
311
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
312
- kind: z.ZodEnum<{
313
- "artifact-update": "artifact-update";
314
- data: "data";
315
- file: "file";
316
- message: "message";
317
- "status-update": "status-update";
318
- task: "task";
319
- text: "text";
320
- }>;
321
- file: z.ZodUnion<readonly [z.ZodObject<{
322
- name: z.ZodOptional<z.ZodString>;
323
- mimeType: z.ZodOptional<z.ZodString>;
324
- bytes: z.ZodString;
325
- uri: z.ZodOptional<z.ZodNever>;
326
- }, z.core.$strip>, z.ZodObject<{
327
- name: z.ZodOptional<z.ZodString>;
328
- mimeType: z.ZodOptional<z.ZodString>;
329
- uri: z.ZodString;
330
- bytes: z.ZodOptional<z.ZodNever>;
331
- }, z.core.$strip>]>;
332
- }, z.core.$strip>, z.ZodObject<{
333
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
334
- kind: z.ZodEnum<{
335
- "artifact-update": "artifact-update";
336
- data: "data";
337
- file: "file";
338
- message: "message";
339
- "status-update": "status-update";
340
- task: "task";
341
- text: "text";
342
- }>;
343
- data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
344
- }, z.core.$strip>]>>;
345
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
346
- extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
347
- referenceTaskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
348
- messageId: z.ZodString;
349
- taskId: z.ZodOptional<z.ZodString>;
350
- contextId: z.ZodOptional<z.ZodString>;
351
- kind: z.ZodEnum<{
352
- "artifact-update": "artifact-update";
353
- data: "data";
354
- file: "file";
355
- message: "message";
356
- "status-update": "status-update";
357
- task: "task";
358
- text: "text";
359
- }>;
360
- }, z.core.$strip>>;
361
- timestamp: z.ZodOptional<z.ZodString>;
362
- }, z.core.$strip>;
363
- history: z.ZodOptional<z.ZodArray<z.ZodObject<{
364
- role: z.ZodEnum<{
365
- user: "user";
366
- agent: "agent";
367
- }>;
368
- parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
369
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
370
- kind: z.ZodEnum<{
371
- "artifact-update": "artifact-update";
372
- data: "data";
373
- file: "file";
374
- message: "message";
375
- "status-update": "status-update";
376
- task: "task";
377
- text: "text";
378
- }>;
379
- text: z.ZodString;
380
- }, z.core.$strip>, z.ZodObject<{
381
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
382
- kind: z.ZodEnum<{
383
- "artifact-update": "artifact-update";
384
- data: "data";
385
- file: "file";
386
- message: "message";
387
- "status-update": "status-update";
388
- task: "task";
389
- text: "text";
390
- }>;
391
- file: z.ZodUnion<readonly [z.ZodObject<{
392
- name: z.ZodOptional<z.ZodString>;
393
- mimeType: z.ZodOptional<z.ZodString>;
394
- bytes: z.ZodString;
395
- uri: z.ZodOptional<z.ZodNever>;
396
- }, z.core.$strip>, z.ZodObject<{
397
- name: z.ZodOptional<z.ZodString>;
398
- mimeType: z.ZodOptional<z.ZodString>;
399
- uri: z.ZodString;
400
- bytes: z.ZodOptional<z.ZodNever>;
401
- }, z.core.$strip>]>;
402
- }, z.core.$strip>, z.ZodObject<{
403
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
404
- kind: z.ZodEnum<{
405
- "artifact-update": "artifact-update";
406
- data: "data";
407
- file: "file";
408
- message: "message";
409
- "status-update": "status-update";
410
- task: "task";
411
- text: "text";
412
- }>;
413
- data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
414
- }, z.core.$strip>]>>;
415
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
416
- extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
417
- referenceTaskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
418
- messageId: z.ZodString;
419
- taskId: z.ZodOptional<z.ZodString>;
420
- contextId: z.ZodOptional<z.ZodString>;
421
- kind: z.ZodEnum<{
422
- "artifact-update": "artifact-update";
423
- data: "data";
424
- file: "file";
425
- message: "message";
426
- "status-update": "status-update";
427
- task: "task";
428
- text: "text";
429
- }>;
430
- }, z.core.$strip>>>;
431
- artifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
432
- artifactId: z.ZodString;
433
- name: z.ZodOptional<z.ZodString>;
434
- description: z.ZodOptional<z.ZodString>;
435
- parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
436
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
437
- kind: z.ZodEnum<{
438
- "artifact-update": "artifact-update";
439
- data: "data";
440
- file: "file";
441
- message: "message";
442
- "status-update": "status-update";
443
- task: "task";
444
- text: "text";
445
- }>;
446
- text: z.ZodString;
447
- }, z.core.$strip>, z.ZodObject<{
448
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
449
- kind: z.ZodEnum<{
450
- "artifact-update": "artifact-update";
451
- data: "data";
452
- file: "file";
453
- message: "message";
454
- "status-update": "status-update";
455
- task: "task";
456
- text: "text";
457
- }>;
458
- file: z.ZodUnion<readonly [z.ZodObject<{
459
- name: z.ZodOptional<z.ZodString>;
460
- mimeType: z.ZodOptional<z.ZodString>;
461
- bytes: z.ZodString;
462
- uri: z.ZodOptional<z.ZodNever>;
463
- }, z.core.$strip>, z.ZodObject<{
464
- name: z.ZodOptional<z.ZodString>;
465
- mimeType: z.ZodOptional<z.ZodString>;
466
- uri: z.ZodString;
467
- bytes: z.ZodOptional<z.ZodNever>;
468
- }, z.core.$strip>]>;
469
- }, z.core.$strip>, z.ZodObject<{
470
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
471
- kind: z.ZodEnum<{
472
- "artifact-update": "artifact-update";
473
- data: "data";
474
- file: "file";
475
- message: "message";
476
- "status-update": "status-update";
477
- task: "task";
478
- text: "text";
479
- }>;
480
- data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
481
- }, z.core.$strip>]>>;
482
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
483
- extension: z.ZodOptional<z.ZodArray<z.ZodString>>;
484
- }, z.core.$strip>>>;
485
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
486
- kind: z.ZodEnum<{
487
- "artifact-update": "artifact-update";
488
- data: "data";
489
- file: "file";
490
- message: "message";
491
- "status-update": "status-update";
492
- task: "task";
493
- text: "text";
494
- }>;
495
- }, z.core.$strip>]>;
496
- export type SendMessageSuccessResult = z.infer<typeof SendMessageSuccessResultSchema>;
497
- /**
498
- * @description JSON-RPC success response model for the 'message/send' method.
499
- */
500
- export declare const SendMessageSuccessResponseSchema: z.ZodObject<{
501
- jsonrpc: z.ZodLiteral<"2.0">;
502
- id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
503
- error: z.ZodOptional<z.ZodNever>;
504
- result: z.ZodUnion<readonly [z.ZodObject<{
505
- role: z.ZodEnum<{
506
- user: "user";
507
- agent: "agent";
508
- }>;
509
- parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
510
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
511
- kind: z.ZodEnum<{
512
- "artifact-update": "artifact-update";
513
- data: "data";
514
- file: "file";
515
- message: "message";
516
- "status-update": "status-update";
517
- task: "task";
518
- text: "text";
519
- }>;
520
- text: z.ZodString;
521
- }, z.core.$strip>, z.ZodObject<{
522
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
523
- kind: z.ZodEnum<{
524
- "artifact-update": "artifact-update";
525
- data: "data";
526
- file: "file";
527
- message: "message";
528
- "status-update": "status-update";
529
- task: "task";
530
- text: "text";
531
- }>;
532
- file: z.ZodUnion<readonly [z.ZodObject<{
533
- name: z.ZodOptional<z.ZodString>;
534
- mimeType: z.ZodOptional<z.ZodString>;
535
- bytes: z.ZodString;
536
- uri: z.ZodOptional<z.ZodNever>;
537
- }, z.core.$strip>, z.ZodObject<{
538
- name: z.ZodOptional<z.ZodString>;
539
- mimeType: z.ZodOptional<z.ZodString>;
540
- uri: z.ZodString;
541
- bytes: z.ZodOptional<z.ZodNever>;
542
- }, z.core.$strip>]>;
543
- }, z.core.$strip>, z.ZodObject<{
544
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
545
- kind: z.ZodEnum<{
546
- "artifact-update": "artifact-update";
547
- data: "data";
548
- file: "file";
549
- message: "message";
550
- "status-update": "status-update";
551
- task: "task";
552
- text: "text";
553
- }>;
554
- data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
555
- }, z.core.$strip>]>>;
556
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
557
- extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
558
- referenceTaskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
559
- messageId: z.ZodString;
560
- taskId: z.ZodOptional<z.ZodString>;
561
- contextId: z.ZodOptional<z.ZodString>;
562
- kind: z.ZodEnum<{
563
- "artifact-update": "artifact-update";
564
- data: "data";
565
- file: "file";
566
- message: "message";
567
- "status-update": "status-update";
568
- task: "task";
569
- text: "text";
570
- }>;
571
- }, z.core.$strip>, z.ZodObject<{
572
- id: z.ZodString;
573
- contextId: z.ZodOptional<z.ZodString>;
574
- status: z.ZodObject<{
575
- state: z.ZodEnum<{
576
- unknown: "unknown";
577
- submitted: "submitted";
578
- working: "working";
579
- "input-required": "input-required";
580
- completed: "completed";
581
- canceled: "canceled";
582
- failed: "failed";
583
- rejected: "rejected";
584
- "auth-required": "auth-required";
585
- }>;
586
- message: z.ZodOptional<z.ZodObject<{
587
- role: z.ZodEnum<{
588
- user: "user";
589
- agent: "agent";
590
- }>;
591
- parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
592
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
593
- kind: z.ZodEnum<{
594
- "artifact-update": "artifact-update";
595
- data: "data";
596
- file: "file";
597
- message: "message";
598
- "status-update": "status-update";
599
- task: "task";
600
- text: "text";
601
- }>;
602
- text: z.ZodString;
603
- }, z.core.$strip>, z.ZodObject<{
604
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
605
- kind: z.ZodEnum<{
606
- "artifact-update": "artifact-update";
607
- data: "data";
608
- file: "file";
609
- message: "message";
610
- "status-update": "status-update";
611
- task: "task";
612
- text: "text";
613
- }>;
614
- file: z.ZodUnion<readonly [z.ZodObject<{
615
- name: z.ZodOptional<z.ZodString>;
616
- mimeType: z.ZodOptional<z.ZodString>;
617
- bytes: z.ZodString;
618
- uri: z.ZodOptional<z.ZodNever>;
619
- }, z.core.$strip>, z.ZodObject<{
620
- name: z.ZodOptional<z.ZodString>;
621
- mimeType: z.ZodOptional<z.ZodString>;
622
- uri: z.ZodString;
623
- bytes: z.ZodOptional<z.ZodNever>;
624
- }, z.core.$strip>]>;
625
- }, z.core.$strip>, z.ZodObject<{
626
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
627
- kind: z.ZodEnum<{
628
- "artifact-update": "artifact-update";
629
- data: "data";
630
- file: "file";
631
- message: "message";
632
- "status-update": "status-update";
633
- task: "task";
634
- text: "text";
635
- }>;
636
- data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
637
- }, z.core.$strip>]>>;
638
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
639
- extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
640
- referenceTaskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
641
- messageId: z.ZodString;
642
- taskId: z.ZodOptional<z.ZodString>;
643
- contextId: z.ZodOptional<z.ZodString>;
644
- kind: z.ZodEnum<{
645
- "artifact-update": "artifact-update";
646
- data: "data";
647
- file: "file";
648
- message: "message";
649
- "status-update": "status-update";
650
- task: "task";
651
- text: "text";
652
- }>;
653
- }, z.core.$strip>>;
654
- timestamp: z.ZodOptional<z.ZodString>;
655
- }, z.core.$strip>;
656
- history: z.ZodOptional<z.ZodArray<z.ZodObject<{
657
- role: z.ZodEnum<{
658
- user: "user";
659
- agent: "agent";
660
- }>;
661
- parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
662
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
663
- kind: z.ZodEnum<{
664
- "artifact-update": "artifact-update";
665
- data: "data";
666
- file: "file";
667
- message: "message";
668
- "status-update": "status-update";
669
- task: "task";
670
- text: "text";
671
- }>;
672
- text: z.ZodString;
673
- }, z.core.$strip>, z.ZodObject<{
674
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
675
- kind: z.ZodEnum<{
676
- "artifact-update": "artifact-update";
677
- data: "data";
678
- file: "file";
679
- message: "message";
680
- "status-update": "status-update";
681
- task: "task";
682
- text: "text";
683
- }>;
684
- file: z.ZodUnion<readonly [z.ZodObject<{
685
- name: z.ZodOptional<z.ZodString>;
686
- mimeType: z.ZodOptional<z.ZodString>;
687
- bytes: z.ZodString;
688
- uri: z.ZodOptional<z.ZodNever>;
689
- }, z.core.$strip>, z.ZodObject<{
690
- name: z.ZodOptional<z.ZodString>;
691
- mimeType: z.ZodOptional<z.ZodString>;
692
- uri: z.ZodString;
693
- bytes: z.ZodOptional<z.ZodNever>;
694
- }, z.core.$strip>]>;
695
- }, z.core.$strip>, z.ZodObject<{
696
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
697
- kind: z.ZodEnum<{
698
- "artifact-update": "artifact-update";
699
- data: "data";
700
- file: "file";
701
- message: "message";
702
- "status-update": "status-update";
703
- task: "task";
704
- text: "text";
705
- }>;
706
- data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
707
- }, z.core.$strip>]>>;
708
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
709
- extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
710
- referenceTaskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
711
- messageId: z.ZodString;
712
- taskId: z.ZodOptional<z.ZodString>;
713
- contextId: z.ZodOptional<z.ZodString>;
714
- kind: z.ZodEnum<{
715
- "artifact-update": "artifact-update";
716
- data: "data";
717
- file: "file";
718
- message: "message";
719
- "status-update": "status-update";
720
- task: "task";
721
- text: "text";
722
- }>;
723
- }, z.core.$strip>>>;
724
- artifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
725
- artifactId: z.ZodString;
726
- name: z.ZodOptional<z.ZodString>;
727
- description: z.ZodOptional<z.ZodString>;
728
- parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
729
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
730
- kind: z.ZodEnum<{
731
- "artifact-update": "artifact-update";
732
- data: "data";
733
- file: "file";
734
- message: "message";
735
- "status-update": "status-update";
736
- task: "task";
737
- text: "text";
738
- }>;
739
- text: z.ZodString;
740
- }, z.core.$strip>, z.ZodObject<{
741
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
742
- kind: z.ZodEnum<{
743
- "artifact-update": "artifact-update";
744
- data: "data";
745
- file: "file";
746
- message: "message";
747
- "status-update": "status-update";
748
- task: "task";
749
- text: "text";
750
- }>;
751
- file: z.ZodUnion<readonly [z.ZodObject<{
752
- name: z.ZodOptional<z.ZodString>;
753
- mimeType: z.ZodOptional<z.ZodString>;
754
- bytes: z.ZodString;
755
- uri: z.ZodOptional<z.ZodNever>;
756
- }, z.core.$strip>, z.ZodObject<{
757
- name: z.ZodOptional<z.ZodString>;
758
- mimeType: z.ZodOptional<z.ZodString>;
759
- uri: z.ZodString;
760
- bytes: z.ZodOptional<z.ZodNever>;
761
- }, z.core.$strip>]>;
762
- }, z.core.$strip>, z.ZodObject<{
763
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
764
- kind: z.ZodEnum<{
765
- "artifact-update": "artifact-update";
766
- data: "data";
767
- file: "file";
768
- message: "message";
769
- "status-update": "status-update";
770
- task: "task";
771
- text: "text";
772
- }>;
773
- data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
774
- }, z.core.$strip>]>>;
775
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
776
- extension: z.ZodOptional<z.ZodArray<z.ZodString>>;
777
- }, z.core.$strip>>>;
778
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
779
- kind: z.ZodEnum<{
780
- "artifact-update": "artifact-update";
781
- data: "data";
782
- file: "file";
783
- message: "message";
784
- "status-update": "status-update";
785
- task: "task";
786
- text: "text";
787
- }>;
788
- }, z.core.$strip>]>;
789
- }, z.core.$strip>;
790
- export type SendMessageSuccessResponse = z.infer<typeof SendMessageSuccessResponseSchema>;
791
- /**
792
- * @description JSON-RPC response model for the 'message/send' method.
793
- */
794
- export declare const SendMessageResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
795
- jsonrpc: z.ZodLiteral<"2.0">;
796
- id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
797
- error: z.ZodOptional<z.ZodNever>;
798
- result: z.ZodUnion<readonly [z.ZodObject<{
799
- role: z.ZodEnum<{
800
- user: "user";
801
- agent: "agent";
802
- }>;
803
- parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
804
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
805
- kind: z.ZodEnum<{
806
- "artifact-update": "artifact-update";
807
- data: "data";
808
- file: "file";
809
- message: "message";
810
- "status-update": "status-update";
811
- task: "task";
812
- text: "text";
813
- }>;
814
- text: z.ZodString;
815
- }, z.core.$strip>, z.ZodObject<{
816
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
817
- kind: z.ZodEnum<{
818
- "artifact-update": "artifact-update";
819
- data: "data";
820
- file: "file";
821
- message: "message";
822
- "status-update": "status-update";
823
- task: "task";
824
- text: "text";
825
- }>;
826
- file: z.ZodUnion<readonly [z.ZodObject<{
827
- name: z.ZodOptional<z.ZodString>;
828
- mimeType: z.ZodOptional<z.ZodString>;
829
- bytes: z.ZodString;
830
- uri: z.ZodOptional<z.ZodNever>;
831
- }, z.core.$strip>, z.ZodObject<{
832
- name: z.ZodOptional<z.ZodString>;
833
- mimeType: z.ZodOptional<z.ZodString>;
834
- uri: z.ZodString;
835
- bytes: z.ZodOptional<z.ZodNever>;
836
- }, z.core.$strip>]>;
837
- }, z.core.$strip>, z.ZodObject<{
838
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
839
- kind: z.ZodEnum<{
840
- "artifact-update": "artifact-update";
841
- data: "data";
842
- file: "file";
843
- message: "message";
844
- "status-update": "status-update";
845
- task: "task";
846
- text: "text";
847
- }>;
848
- data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
849
- }, z.core.$strip>]>>;
850
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
851
- extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
852
- referenceTaskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
853
- messageId: z.ZodString;
854
- taskId: z.ZodOptional<z.ZodString>;
855
- contextId: z.ZodOptional<z.ZodString>;
856
- kind: z.ZodEnum<{
857
- "artifact-update": "artifact-update";
858
- data: "data";
859
- file: "file";
860
- message: "message";
861
- "status-update": "status-update";
862
- task: "task";
863
- text: "text";
864
- }>;
865
- }, z.core.$strip>, z.ZodObject<{
866
- id: z.ZodString;
867
- contextId: z.ZodOptional<z.ZodString>;
868
- status: z.ZodObject<{
869
- state: z.ZodEnum<{
870
- unknown: "unknown";
871
- submitted: "submitted";
872
- working: "working";
873
- "input-required": "input-required";
874
- completed: "completed";
875
- canceled: "canceled";
876
- failed: "failed";
877
- rejected: "rejected";
878
- "auth-required": "auth-required";
879
- }>;
880
- message: z.ZodOptional<z.ZodObject<{
881
- role: z.ZodEnum<{
882
- user: "user";
883
- agent: "agent";
884
- }>;
885
- parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
886
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
887
- kind: z.ZodEnum<{
888
- "artifact-update": "artifact-update";
889
- data: "data";
890
- file: "file";
891
- message: "message";
892
- "status-update": "status-update";
893
- task: "task";
894
- text: "text";
895
- }>;
896
- text: z.ZodString;
897
- }, z.core.$strip>, z.ZodObject<{
898
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
899
- kind: z.ZodEnum<{
900
- "artifact-update": "artifact-update";
901
- data: "data";
902
- file: "file";
903
- message: "message";
904
- "status-update": "status-update";
905
- task: "task";
906
- text: "text";
907
- }>;
908
- file: z.ZodUnion<readonly [z.ZodObject<{
909
- name: z.ZodOptional<z.ZodString>;
910
- mimeType: z.ZodOptional<z.ZodString>;
911
- bytes: z.ZodString;
912
- uri: z.ZodOptional<z.ZodNever>;
913
- }, z.core.$strip>, z.ZodObject<{
914
- name: z.ZodOptional<z.ZodString>;
915
- mimeType: z.ZodOptional<z.ZodString>;
916
- uri: z.ZodString;
917
- bytes: z.ZodOptional<z.ZodNever>;
918
- }, z.core.$strip>]>;
919
- }, z.core.$strip>, z.ZodObject<{
920
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
921
- kind: z.ZodEnum<{
922
- "artifact-update": "artifact-update";
923
- data: "data";
924
- file: "file";
925
- message: "message";
926
- "status-update": "status-update";
927
- task: "task";
928
- text: "text";
929
- }>;
930
- data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
931
- }, z.core.$strip>]>>;
932
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
933
- extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
934
- referenceTaskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
935
- messageId: z.ZodString;
936
- taskId: z.ZodOptional<z.ZodString>;
937
- contextId: z.ZodOptional<z.ZodString>;
938
- kind: z.ZodEnum<{
939
- "artifact-update": "artifact-update";
940
- data: "data";
941
- file: "file";
942
- message: "message";
943
- "status-update": "status-update";
944
- task: "task";
945
- text: "text";
946
- }>;
947
- }, z.core.$strip>>;
948
- timestamp: z.ZodOptional<z.ZodString>;
949
- }, z.core.$strip>;
950
- history: z.ZodOptional<z.ZodArray<z.ZodObject<{
951
- role: z.ZodEnum<{
952
- user: "user";
953
- agent: "agent";
954
- }>;
955
- parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
956
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
957
- kind: z.ZodEnum<{
958
- "artifact-update": "artifact-update";
959
- data: "data";
960
- file: "file";
961
- message: "message";
962
- "status-update": "status-update";
963
- task: "task";
964
- text: "text";
965
- }>;
966
- text: z.ZodString;
967
- }, z.core.$strip>, z.ZodObject<{
968
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
969
- kind: z.ZodEnum<{
970
- "artifact-update": "artifact-update";
971
- data: "data";
972
- file: "file";
973
- message: "message";
974
- "status-update": "status-update";
975
- task: "task";
976
- text: "text";
977
- }>;
978
- file: z.ZodUnion<readonly [z.ZodObject<{
979
- name: z.ZodOptional<z.ZodString>;
980
- mimeType: z.ZodOptional<z.ZodString>;
981
- bytes: z.ZodString;
982
- uri: z.ZodOptional<z.ZodNever>;
983
- }, z.core.$strip>, z.ZodObject<{
984
- name: z.ZodOptional<z.ZodString>;
985
- mimeType: z.ZodOptional<z.ZodString>;
986
- uri: z.ZodString;
987
- bytes: z.ZodOptional<z.ZodNever>;
988
- }, z.core.$strip>]>;
989
- }, z.core.$strip>, z.ZodObject<{
990
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
991
- kind: z.ZodEnum<{
992
- "artifact-update": "artifact-update";
993
- data: "data";
994
- file: "file";
995
- message: "message";
996
- "status-update": "status-update";
997
- task: "task";
998
- text: "text";
999
- }>;
1000
- data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1001
- }, z.core.$strip>]>>;
1002
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1003
- extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
1004
- referenceTaskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1005
- messageId: z.ZodString;
1006
- taskId: z.ZodOptional<z.ZodString>;
1007
- contextId: z.ZodOptional<z.ZodString>;
1008
- kind: z.ZodEnum<{
1009
- "artifact-update": "artifact-update";
1010
- data: "data";
1011
- file: "file";
1012
- message: "message";
1013
- "status-update": "status-update";
1014
- task: "task";
1015
- text: "text";
1016
- }>;
1017
- }, z.core.$strip>>>;
1018
- artifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
1019
- artifactId: z.ZodString;
1020
- name: z.ZodOptional<z.ZodString>;
1021
- description: z.ZodOptional<z.ZodString>;
1022
- parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1023
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1024
- kind: z.ZodEnum<{
1025
- "artifact-update": "artifact-update";
1026
- data: "data";
1027
- file: "file";
1028
- message: "message";
1029
- "status-update": "status-update";
1030
- task: "task";
1031
- text: "text";
1032
- }>;
1033
- text: z.ZodString;
1034
- }, z.core.$strip>, z.ZodObject<{
1035
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1036
- kind: z.ZodEnum<{
1037
- "artifact-update": "artifact-update";
1038
- data: "data";
1039
- file: "file";
1040
- message: "message";
1041
- "status-update": "status-update";
1042
- task: "task";
1043
- text: "text";
1044
- }>;
1045
- file: z.ZodUnion<readonly [z.ZodObject<{
1046
- name: z.ZodOptional<z.ZodString>;
1047
- mimeType: z.ZodOptional<z.ZodString>;
1048
- bytes: z.ZodString;
1049
- uri: z.ZodOptional<z.ZodNever>;
1050
- }, z.core.$strip>, z.ZodObject<{
1051
- name: z.ZodOptional<z.ZodString>;
1052
- mimeType: z.ZodOptional<z.ZodString>;
1053
- uri: z.ZodString;
1054
- bytes: z.ZodOptional<z.ZodNever>;
1055
- }, z.core.$strip>]>;
1056
- }, z.core.$strip>, z.ZodObject<{
1057
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1058
- kind: z.ZodEnum<{
1059
- "artifact-update": "artifact-update";
1060
- data: "data";
1061
- file: "file";
1062
- message: "message";
1063
- "status-update": "status-update";
1064
- task: "task";
1065
- text: "text";
1066
- }>;
1067
- data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1068
- }, z.core.$strip>]>>;
1069
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1070
- extension: z.ZodOptional<z.ZodArray<z.ZodString>>;
1071
- }, z.core.$strip>>>;
1072
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1073
- kind: z.ZodEnum<{
1074
- "artifact-update": "artifact-update";
1075
- data: "data";
1076
- file: "file";
1077
- message: "message";
1078
- "status-update": "status-update";
1079
- task: "task";
1080
- text: "text";
1081
- }>;
1082
- }, z.core.$strip>]>;
1083
- }, z.core.$strip>, z.ZodObject<{
1084
- jsonrpc: z.ZodLiteral<"2.0">;
1085
- id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1086
- result: z.ZodOptional<z.ZodNever>;
1087
- error: z.ZodObject<{
1088
- code: z.ZodNumber;
1089
- message: z.ZodString;
1090
- data: z.ZodOptional<z.ZodUnknown>;
1091
- }, z.core.$strip>;
1092
- }, z.core.$strip>]>;
1093
- export type SendMessageResponse = z.infer<typeof SendMessageResponseSchema>;
1094
- /**
1095
- * @description Request to send a message/initiate a task and subscribe to streaming updates.
1096
- */
1097
- export declare const SendStreamingMessageRequestSchema: z.ZodObject<{
1098
- jsonrpc: z.ZodLiteral<"2.0">;
1099
- id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
1100
- method: z.ZodLiteral<"message/stream">;
1101
- params: z.ZodObject<{
1102
- message: z.ZodObject<{
1103
- role: z.ZodEnum<{
1104
- user: "user";
1105
- agent: "agent";
1106
- }>;
1107
- parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1108
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1109
- kind: z.ZodEnum<{
1110
- "artifact-update": "artifact-update";
1111
- data: "data";
1112
- file: "file";
1113
- message: "message";
1114
- "status-update": "status-update";
1115
- task: "task";
1116
- text: "text";
1117
- }>;
1118
- text: z.ZodString;
1119
- }, z.core.$strip>, z.ZodObject<{
1120
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1121
- kind: z.ZodEnum<{
1122
- "artifact-update": "artifact-update";
1123
- data: "data";
1124
- file: "file";
1125
- message: "message";
1126
- "status-update": "status-update";
1127
- task: "task";
1128
- text: "text";
1129
- }>;
1130
- file: z.ZodUnion<readonly [z.ZodObject<{
1131
- name: z.ZodOptional<z.ZodString>;
1132
- mimeType: z.ZodOptional<z.ZodString>;
1133
- bytes: z.ZodString;
1134
- uri: z.ZodOptional<z.ZodNever>;
1135
- }, z.core.$strip>, z.ZodObject<{
1136
- name: z.ZodOptional<z.ZodString>;
1137
- mimeType: z.ZodOptional<z.ZodString>;
1138
- uri: z.ZodString;
1139
- bytes: z.ZodOptional<z.ZodNever>;
1140
- }, z.core.$strip>]>;
1141
- }, z.core.$strip>, z.ZodObject<{
1142
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1143
- kind: z.ZodEnum<{
1144
- "artifact-update": "artifact-update";
1145
- data: "data";
1146
- file: "file";
1147
- message: "message";
1148
- "status-update": "status-update";
1149
- task: "task";
1150
- text: "text";
1151
- }>;
1152
- data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1153
- }, z.core.$strip>]>>;
1154
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1155
- extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
1156
- referenceTaskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1157
- messageId: z.ZodString;
1158
- taskId: z.ZodOptional<z.ZodString>;
1159
- contextId: z.ZodOptional<z.ZodString>;
1160
- kind: z.ZodEnum<{
1161
- "artifact-update": "artifact-update";
1162
- data: "data";
1163
- file: "file";
1164
- message: "message";
1165
- "status-update": "status-update";
1166
- task: "task";
1167
- text: "text";
1168
- }>;
1169
- }, z.core.$strip>;
1170
- configuration: z.ZodOptional<z.ZodObject<{
1171
- acceptedOutputModes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1172
- historyLength: z.ZodOptional<z.ZodNumber>;
1173
- pushNotificationConfig: z.ZodOptional<z.ZodObject<{
1174
- id: z.ZodOptional<z.ZodString>;
1175
- url: z.ZodURL;
1176
- token: z.ZodOptional<z.ZodString>;
1177
- authentication: z.ZodOptional<z.ZodObject<{
1178
- schemes: z.ZodArray<z.ZodString>;
1179
- credentials: z.ZodOptional<z.ZodString>;
1180
- }, z.core.$strip>>;
1181
- }, z.core.$strip>>;
1182
- blocking: z.ZodOptional<z.ZodBoolean>;
1183
- }, z.core.$strip>>;
1184
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1185
- }, z.core.$strip>;
1186
- }, z.core.$strip>;
1187
- export type SendStreamingMessageRequest = z.infer<typeof SendStreamingMessageRequestSchema>;
1188
- /**
1189
- * @description The result of a streaming message request, which can be a Message, Task, or a streaming update/artifact event.
1190
- */
1191
- export declare const SendStreamingMessageSuccessResultSchema: z.ZodUnion<readonly [z.ZodObject<{
1192
- role: z.ZodEnum<{
1193
- user: "user";
1194
- agent: "agent";
1195
- }>;
1196
- parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1197
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1198
- kind: z.ZodEnum<{
1199
- "artifact-update": "artifact-update";
1200
- data: "data";
1201
- file: "file";
1202
- message: "message";
1203
- "status-update": "status-update";
1204
- task: "task";
1205
- text: "text";
1206
- }>;
1207
- text: z.ZodString;
1208
- }, z.core.$strip>, z.ZodObject<{
1209
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1210
- kind: z.ZodEnum<{
1211
- "artifact-update": "artifact-update";
1212
- data: "data";
1213
- file: "file";
1214
- message: "message";
1215
- "status-update": "status-update";
1216
- task: "task";
1217
- text: "text";
1218
- }>;
1219
- file: z.ZodUnion<readonly [z.ZodObject<{
1220
- name: z.ZodOptional<z.ZodString>;
1221
- mimeType: z.ZodOptional<z.ZodString>;
1222
- bytes: z.ZodString;
1223
- uri: z.ZodOptional<z.ZodNever>;
1224
- }, z.core.$strip>, z.ZodObject<{
1225
- name: z.ZodOptional<z.ZodString>;
1226
- mimeType: z.ZodOptional<z.ZodString>;
1227
- uri: z.ZodString;
1228
- bytes: z.ZodOptional<z.ZodNever>;
1229
- }, z.core.$strip>]>;
1230
- }, z.core.$strip>, z.ZodObject<{
1231
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1232
- kind: z.ZodEnum<{
1233
- "artifact-update": "artifact-update";
1234
- data: "data";
1235
- file: "file";
1236
- message: "message";
1237
- "status-update": "status-update";
1238
- task: "task";
1239
- text: "text";
1240
- }>;
1241
- data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1242
- }, z.core.$strip>]>>;
1243
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1244
- extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
1245
- referenceTaskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1246
- messageId: z.ZodString;
1247
- taskId: z.ZodOptional<z.ZodString>;
1248
- contextId: z.ZodOptional<z.ZodString>;
1249
- kind: z.ZodEnum<{
1250
- "artifact-update": "artifact-update";
1251
- data: "data";
1252
- file: "file";
1253
- message: "message";
1254
- "status-update": "status-update";
1255
- task: "task";
1256
- text: "text";
1257
- }>;
1258
- }, z.core.$strip>, z.ZodObject<{
1259
- id: z.ZodString;
1260
- contextId: z.ZodOptional<z.ZodString>;
1261
- status: z.ZodObject<{
1262
- state: z.ZodEnum<{
1263
- unknown: "unknown";
1264
- submitted: "submitted";
1265
- working: "working";
1266
- "input-required": "input-required";
1267
- completed: "completed";
1268
- canceled: "canceled";
1269
- failed: "failed";
1270
- rejected: "rejected";
1271
- "auth-required": "auth-required";
1272
- }>;
1273
- message: z.ZodOptional<z.ZodObject<{
1274
- role: z.ZodEnum<{
1275
- user: "user";
1276
- agent: "agent";
1277
- }>;
1278
- parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1279
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1280
- kind: z.ZodEnum<{
1281
- "artifact-update": "artifact-update";
1282
- data: "data";
1283
- file: "file";
1284
- message: "message";
1285
- "status-update": "status-update";
1286
- task: "task";
1287
- text: "text";
1288
- }>;
1289
- text: z.ZodString;
1290
- }, z.core.$strip>, z.ZodObject<{
1291
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1292
- kind: z.ZodEnum<{
1293
- "artifact-update": "artifact-update";
1294
- data: "data";
1295
- file: "file";
1296
- message: "message";
1297
- "status-update": "status-update";
1298
- task: "task";
1299
- text: "text";
1300
- }>;
1301
- file: z.ZodUnion<readonly [z.ZodObject<{
1302
- name: z.ZodOptional<z.ZodString>;
1303
- mimeType: z.ZodOptional<z.ZodString>;
1304
- bytes: z.ZodString;
1305
- uri: z.ZodOptional<z.ZodNever>;
1306
- }, z.core.$strip>, z.ZodObject<{
1307
- name: z.ZodOptional<z.ZodString>;
1308
- mimeType: z.ZodOptional<z.ZodString>;
1309
- uri: z.ZodString;
1310
- bytes: z.ZodOptional<z.ZodNever>;
1311
- }, z.core.$strip>]>;
1312
- }, z.core.$strip>, z.ZodObject<{
1313
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1314
- kind: z.ZodEnum<{
1315
- "artifact-update": "artifact-update";
1316
- data: "data";
1317
- file: "file";
1318
- message: "message";
1319
- "status-update": "status-update";
1320
- task: "task";
1321
- text: "text";
1322
- }>;
1323
- data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1324
- }, z.core.$strip>]>>;
1325
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1326
- extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
1327
- referenceTaskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1328
- messageId: z.ZodString;
1329
- taskId: z.ZodOptional<z.ZodString>;
1330
- contextId: z.ZodOptional<z.ZodString>;
1331
- kind: z.ZodEnum<{
1332
- "artifact-update": "artifact-update";
1333
- data: "data";
1334
- file: "file";
1335
- message: "message";
1336
- "status-update": "status-update";
1337
- task: "task";
1338
- text: "text";
1339
- }>;
1340
- }, z.core.$strip>>;
1341
- timestamp: z.ZodOptional<z.ZodString>;
1342
- }, z.core.$strip>;
1343
- history: z.ZodOptional<z.ZodArray<z.ZodObject<{
1344
- role: z.ZodEnum<{
1345
- user: "user";
1346
- agent: "agent";
1347
- }>;
1348
- parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1349
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1350
- kind: z.ZodEnum<{
1351
- "artifact-update": "artifact-update";
1352
- data: "data";
1353
- file: "file";
1354
- message: "message";
1355
- "status-update": "status-update";
1356
- task: "task";
1357
- text: "text";
1358
- }>;
1359
- text: z.ZodString;
1360
- }, z.core.$strip>, z.ZodObject<{
1361
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1362
- kind: z.ZodEnum<{
1363
- "artifact-update": "artifact-update";
1364
- data: "data";
1365
- file: "file";
1366
- message: "message";
1367
- "status-update": "status-update";
1368
- task: "task";
1369
- text: "text";
1370
- }>;
1371
- file: z.ZodUnion<readonly [z.ZodObject<{
1372
- name: z.ZodOptional<z.ZodString>;
1373
- mimeType: z.ZodOptional<z.ZodString>;
1374
- bytes: z.ZodString;
1375
- uri: z.ZodOptional<z.ZodNever>;
1376
- }, z.core.$strip>, z.ZodObject<{
1377
- name: z.ZodOptional<z.ZodString>;
1378
- mimeType: z.ZodOptional<z.ZodString>;
1379
- uri: z.ZodString;
1380
- bytes: z.ZodOptional<z.ZodNever>;
1381
- }, z.core.$strip>]>;
1382
- }, z.core.$strip>, z.ZodObject<{
1383
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1384
- kind: z.ZodEnum<{
1385
- "artifact-update": "artifact-update";
1386
- data: "data";
1387
- file: "file";
1388
- message: "message";
1389
- "status-update": "status-update";
1390
- task: "task";
1391
- text: "text";
1392
- }>;
1393
- data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1394
- }, z.core.$strip>]>>;
1395
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1396
- extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
1397
- referenceTaskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1398
- messageId: z.ZodString;
1399
- taskId: z.ZodOptional<z.ZodString>;
1400
- contextId: z.ZodOptional<z.ZodString>;
1401
- kind: z.ZodEnum<{
1402
- "artifact-update": "artifact-update";
1403
- data: "data";
1404
- file: "file";
1405
- message: "message";
1406
- "status-update": "status-update";
1407
- task: "task";
1408
- text: "text";
1409
- }>;
1410
- }, z.core.$strip>>>;
1411
- artifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
1412
- artifactId: z.ZodString;
1413
- name: z.ZodOptional<z.ZodString>;
1414
- description: z.ZodOptional<z.ZodString>;
1415
- parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1416
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1417
- kind: z.ZodEnum<{
1418
- "artifact-update": "artifact-update";
1419
- data: "data";
1420
- file: "file";
1421
- message: "message";
1422
- "status-update": "status-update";
1423
- task: "task";
1424
- text: "text";
1425
- }>;
1426
- text: z.ZodString;
1427
- }, z.core.$strip>, z.ZodObject<{
1428
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1429
- kind: z.ZodEnum<{
1430
- "artifact-update": "artifact-update";
1431
- data: "data";
1432
- file: "file";
1433
- message: "message";
1434
- "status-update": "status-update";
1435
- task: "task";
1436
- text: "text";
1437
- }>;
1438
- file: z.ZodUnion<readonly [z.ZodObject<{
1439
- name: z.ZodOptional<z.ZodString>;
1440
- mimeType: z.ZodOptional<z.ZodString>;
1441
- bytes: z.ZodString;
1442
- uri: z.ZodOptional<z.ZodNever>;
1443
- }, z.core.$strip>, z.ZodObject<{
1444
- name: z.ZodOptional<z.ZodString>;
1445
- mimeType: z.ZodOptional<z.ZodString>;
1446
- uri: z.ZodString;
1447
- bytes: z.ZodOptional<z.ZodNever>;
1448
- }, z.core.$strip>]>;
1449
- }, z.core.$strip>, z.ZodObject<{
1450
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1451
- kind: z.ZodEnum<{
1452
- "artifact-update": "artifact-update";
1453
- data: "data";
1454
- file: "file";
1455
- message: "message";
1456
- "status-update": "status-update";
1457
- task: "task";
1458
- text: "text";
1459
- }>;
1460
- data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1461
- }, z.core.$strip>]>>;
1462
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1463
- extension: z.ZodOptional<z.ZodArray<z.ZodString>>;
1464
- }, z.core.$strip>>>;
1465
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1466
- kind: z.ZodEnum<{
1467
- "artifact-update": "artifact-update";
1468
- data: "data";
1469
- file: "file";
1470
- message: "message";
1471
- "status-update": "status-update";
1472
- task: "task";
1473
- text: "text";
1474
- }>;
1475
- }, z.core.$strip>, z.ZodObject<{
1476
- taskId: z.ZodString;
1477
- contextId: z.ZodString;
1478
- kind: z.ZodEnum<{
1479
- "artifact-update": "artifact-update";
1480
- data: "data";
1481
- file: "file";
1482
- message: "message";
1483
- "status-update": "status-update";
1484
- task: "task";
1485
- text: "text";
1486
- }>;
1487
- status: z.ZodObject<{
1488
- state: z.ZodEnum<{
1489
- unknown: "unknown";
1490
- submitted: "submitted";
1491
- working: "working";
1492
- "input-required": "input-required";
1493
- completed: "completed";
1494
- canceled: "canceled";
1495
- failed: "failed";
1496
- rejected: "rejected";
1497
- "auth-required": "auth-required";
1498
- }>;
1499
- message: z.ZodOptional<z.ZodObject<{
1500
- role: z.ZodEnum<{
1501
- user: "user";
1502
- agent: "agent";
1503
- }>;
1504
- parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1505
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1506
- kind: z.ZodEnum<{
1507
- "artifact-update": "artifact-update";
1508
- data: "data";
1509
- file: "file";
1510
- message: "message";
1511
- "status-update": "status-update";
1512
- task: "task";
1513
- text: "text";
1514
- }>;
1515
- text: z.ZodString;
1516
- }, z.core.$strip>, z.ZodObject<{
1517
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1518
- kind: z.ZodEnum<{
1519
- "artifact-update": "artifact-update";
1520
- data: "data";
1521
- file: "file";
1522
- message: "message";
1523
- "status-update": "status-update";
1524
- task: "task";
1525
- text: "text";
1526
- }>;
1527
- file: z.ZodUnion<readonly [z.ZodObject<{
1528
- name: z.ZodOptional<z.ZodString>;
1529
- mimeType: z.ZodOptional<z.ZodString>;
1530
- bytes: z.ZodString;
1531
- uri: z.ZodOptional<z.ZodNever>;
1532
- }, z.core.$strip>, z.ZodObject<{
1533
- name: z.ZodOptional<z.ZodString>;
1534
- mimeType: z.ZodOptional<z.ZodString>;
1535
- uri: z.ZodString;
1536
- bytes: z.ZodOptional<z.ZodNever>;
1537
- }, z.core.$strip>]>;
1538
- }, z.core.$strip>, z.ZodObject<{
1539
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1540
- kind: z.ZodEnum<{
1541
- "artifact-update": "artifact-update";
1542
- data: "data";
1543
- file: "file";
1544
- message: "message";
1545
- "status-update": "status-update";
1546
- task: "task";
1547
- text: "text";
1548
- }>;
1549
- data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1550
- }, z.core.$strip>]>>;
1551
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1552
- extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
1553
- referenceTaskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1554
- messageId: z.ZodString;
1555
- taskId: z.ZodOptional<z.ZodString>;
1556
- contextId: z.ZodOptional<z.ZodString>;
1557
- kind: z.ZodEnum<{
1558
- "artifact-update": "artifact-update";
1559
- data: "data";
1560
- file: "file";
1561
- message: "message";
1562
- "status-update": "status-update";
1563
- task: "task";
1564
- text: "text";
1565
- }>;
1566
- }, z.core.$strip>>;
1567
- timestamp: z.ZodOptional<z.ZodString>;
1568
- }, z.core.$strip>;
1569
- final: z.ZodBoolean;
1570
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1571
- }, z.core.$strip>, z.ZodObject<{
1572
- taskId: z.ZodString;
1573
- contextId: z.ZodString;
1574
- kind: z.ZodEnum<{
1575
- "artifact-update": "artifact-update";
1576
- data: "data";
1577
- file: "file";
1578
- message: "message";
1579
- "status-update": "status-update";
1580
- task: "task";
1581
- text: "text";
1582
- }>;
1583
- artifact: z.ZodObject<{
1584
- artifactId: z.ZodString;
1585
- name: z.ZodOptional<z.ZodString>;
1586
- description: z.ZodOptional<z.ZodString>;
1587
- parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1588
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1589
- kind: z.ZodEnum<{
1590
- "artifact-update": "artifact-update";
1591
- data: "data";
1592
- file: "file";
1593
- message: "message";
1594
- "status-update": "status-update";
1595
- task: "task";
1596
- text: "text";
1597
- }>;
1598
- text: z.ZodString;
1599
- }, z.core.$strip>, z.ZodObject<{
1600
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1601
- kind: z.ZodEnum<{
1602
- "artifact-update": "artifact-update";
1603
- data: "data";
1604
- file: "file";
1605
- message: "message";
1606
- "status-update": "status-update";
1607
- task: "task";
1608
- text: "text";
1609
- }>;
1610
- file: z.ZodUnion<readonly [z.ZodObject<{
1611
- name: z.ZodOptional<z.ZodString>;
1612
- mimeType: z.ZodOptional<z.ZodString>;
1613
- bytes: z.ZodString;
1614
- uri: z.ZodOptional<z.ZodNever>;
1615
- }, z.core.$strip>, z.ZodObject<{
1616
- name: z.ZodOptional<z.ZodString>;
1617
- mimeType: z.ZodOptional<z.ZodString>;
1618
- uri: z.ZodString;
1619
- bytes: z.ZodOptional<z.ZodNever>;
1620
- }, z.core.$strip>]>;
1621
- }, z.core.$strip>, z.ZodObject<{
1622
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1623
- kind: z.ZodEnum<{
1624
- "artifact-update": "artifact-update";
1625
- data: "data";
1626
- file: "file";
1627
- message: "message";
1628
- "status-update": "status-update";
1629
- task: "task";
1630
- text: "text";
1631
- }>;
1632
- data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1633
- }, z.core.$strip>]>>;
1634
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1635
- extension: z.ZodOptional<z.ZodArray<z.ZodString>>;
1636
- }, z.core.$strip>;
1637
- append: z.ZodOptional<z.ZodBoolean>;
1638
- lastChunk: z.ZodOptional<z.ZodBoolean>;
1639
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1640
- }, z.core.$strip>]>;
1641
- export type SendStreamingMessageSuccessResult = z.infer<typeof SendStreamingMessageSuccessResultSchema>;
1642
- /**
1643
- * @description Represents a successful JSON-RPC response for the `message/stream` method.
1644
- * The server may send multiple response objects for a single request.
1645
- */
1646
- export declare const SendStreamingMessageSuccessResponseSchema: z.ZodObject<{
1647
- jsonrpc: z.ZodLiteral<"2.0">;
1648
- id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1649
- error: z.ZodOptional<z.ZodNever>;
1650
- result: z.ZodUnion<readonly [z.ZodObject<{
1651
- role: z.ZodEnum<{
1652
- user: "user";
1653
- agent: "agent";
1654
- }>;
1655
- parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1656
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1657
- kind: z.ZodEnum<{
1658
- "artifact-update": "artifact-update";
1659
- data: "data";
1660
- file: "file";
1661
- message: "message";
1662
- "status-update": "status-update";
1663
- task: "task";
1664
- text: "text";
1665
- }>;
1666
- text: z.ZodString;
1667
- }, z.core.$strip>, z.ZodObject<{
1668
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1669
- kind: z.ZodEnum<{
1670
- "artifact-update": "artifact-update";
1671
- data: "data";
1672
- file: "file";
1673
- message: "message";
1674
- "status-update": "status-update";
1675
- task: "task";
1676
- text: "text";
1677
- }>;
1678
- file: z.ZodUnion<readonly [z.ZodObject<{
1679
- name: z.ZodOptional<z.ZodString>;
1680
- mimeType: z.ZodOptional<z.ZodString>;
1681
- bytes: z.ZodString;
1682
- uri: z.ZodOptional<z.ZodNever>;
1683
- }, z.core.$strip>, z.ZodObject<{
1684
- name: z.ZodOptional<z.ZodString>;
1685
- mimeType: z.ZodOptional<z.ZodString>;
1686
- uri: z.ZodString;
1687
- bytes: z.ZodOptional<z.ZodNever>;
1688
- }, z.core.$strip>]>;
1689
- }, z.core.$strip>, z.ZodObject<{
1690
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1691
- kind: z.ZodEnum<{
1692
- "artifact-update": "artifact-update";
1693
- data: "data";
1694
- file: "file";
1695
- message: "message";
1696
- "status-update": "status-update";
1697
- task: "task";
1698
- text: "text";
1699
- }>;
1700
- data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1701
- }, z.core.$strip>]>>;
1702
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1703
- extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
1704
- referenceTaskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1705
- messageId: z.ZodString;
1706
- taskId: z.ZodOptional<z.ZodString>;
1707
- contextId: z.ZodOptional<z.ZodString>;
1708
- kind: z.ZodEnum<{
1709
- "artifact-update": "artifact-update";
1710
- data: "data";
1711
- file: "file";
1712
- message: "message";
1713
- "status-update": "status-update";
1714
- task: "task";
1715
- text: "text";
1716
- }>;
1717
- }, z.core.$strip>, z.ZodObject<{
1718
- id: z.ZodString;
1719
- contextId: z.ZodOptional<z.ZodString>;
1720
- status: z.ZodObject<{
1721
- state: z.ZodEnum<{
1722
- unknown: "unknown";
1723
- submitted: "submitted";
1724
- working: "working";
1725
- "input-required": "input-required";
1726
- completed: "completed";
1727
- canceled: "canceled";
1728
- failed: "failed";
1729
- rejected: "rejected";
1730
- "auth-required": "auth-required";
1731
- }>;
1732
- message: z.ZodOptional<z.ZodObject<{
1733
- role: z.ZodEnum<{
1734
- user: "user";
1735
- agent: "agent";
1736
- }>;
1737
- parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1738
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1739
- kind: z.ZodEnum<{
1740
- "artifact-update": "artifact-update";
1741
- data: "data";
1742
- file: "file";
1743
- message: "message";
1744
- "status-update": "status-update";
1745
- task: "task";
1746
- text: "text";
1747
- }>;
1748
- text: z.ZodString;
1749
- }, z.core.$strip>, z.ZodObject<{
1750
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1751
- kind: z.ZodEnum<{
1752
- "artifact-update": "artifact-update";
1753
- data: "data";
1754
- file: "file";
1755
- message: "message";
1756
- "status-update": "status-update";
1757
- task: "task";
1758
- text: "text";
1759
- }>;
1760
- file: z.ZodUnion<readonly [z.ZodObject<{
1761
- name: z.ZodOptional<z.ZodString>;
1762
- mimeType: z.ZodOptional<z.ZodString>;
1763
- bytes: z.ZodString;
1764
- uri: z.ZodOptional<z.ZodNever>;
1765
- }, z.core.$strip>, z.ZodObject<{
1766
- name: z.ZodOptional<z.ZodString>;
1767
- mimeType: z.ZodOptional<z.ZodString>;
1768
- uri: z.ZodString;
1769
- bytes: z.ZodOptional<z.ZodNever>;
1770
- }, z.core.$strip>]>;
1771
- }, z.core.$strip>, z.ZodObject<{
1772
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1773
- kind: z.ZodEnum<{
1774
- "artifact-update": "artifact-update";
1775
- data: "data";
1776
- file: "file";
1777
- message: "message";
1778
- "status-update": "status-update";
1779
- task: "task";
1780
- text: "text";
1781
- }>;
1782
- data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1783
- }, z.core.$strip>]>>;
1784
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1785
- extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
1786
- referenceTaskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1787
- messageId: z.ZodString;
1788
- taskId: z.ZodOptional<z.ZodString>;
1789
- contextId: z.ZodOptional<z.ZodString>;
1790
- kind: z.ZodEnum<{
1791
- "artifact-update": "artifact-update";
1792
- data: "data";
1793
- file: "file";
1794
- message: "message";
1795
- "status-update": "status-update";
1796
- task: "task";
1797
- text: "text";
1798
- }>;
1799
- }, z.core.$strip>>;
1800
- timestamp: z.ZodOptional<z.ZodString>;
1801
- }, z.core.$strip>;
1802
- history: z.ZodOptional<z.ZodArray<z.ZodObject<{
1803
- role: z.ZodEnum<{
1804
- user: "user";
1805
- agent: "agent";
1806
- }>;
1807
- parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1808
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1809
- kind: z.ZodEnum<{
1810
- "artifact-update": "artifact-update";
1811
- data: "data";
1812
- file: "file";
1813
- message: "message";
1814
- "status-update": "status-update";
1815
- task: "task";
1816
- text: "text";
1817
- }>;
1818
- text: z.ZodString;
1819
- }, z.core.$strip>, z.ZodObject<{
1820
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1821
- kind: z.ZodEnum<{
1822
- "artifact-update": "artifact-update";
1823
- data: "data";
1824
- file: "file";
1825
- message: "message";
1826
- "status-update": "status-update";
1827
- task: "task";
1828
- text: "text";
1829
- }>;
1830
- file: z.ZodUnion<readonly [z.ZodObject<{
1831
- name: z.ZodOptional<z.ZodString>;
1832
- mimeType: z.ZodOptional<z.ZodString>;
1833
- bytes: z.ZodString;
1834
- uri: z.ZodOptional<z.ZodNever>;
1835
- }, z.core.$strip>, z.ZodObject<{
1836
- name: z.ZodOptional<z.ZodString>;
1837
- mimeType: z.ZodOptional<z.ZodString>;
1838
- uri: z.ZodString;
1839
- bytes: z.ZodOptional<z.ZodNever>;
1840
- }, z.core.$strip>]>;
1841
- }, z.core.$strip>, z.ZodObject<{
1842
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1843
- kind: z.ZodEnum<{
1844
- "artifact-update": "artifact-update";
1845
- data: "data";
1846
- file: "file";
1847
- message: "message";
1848
- "status-update": "status-update";
1849
- task: "task";
1850
- text: "text";
1851
- }>;
1852
- data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1853
- }, z.core.$strip>]>>;
1854
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1855
- extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
1856
- referenceTaskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1857
- messageId: z.ZodString;
1858
- taskId: z.ZodOptional<z.ZodString>;
1859
- contextId: z.ZodOptional<z.ZodString>;
1860
- kind: z.ZodEnum<{
1861
- "artifact-update": "artifact-update";
1862
- data: "data";
1863
- file: "file";
1864
- message: "message";
1865
- "status-update": "status-update";
1866
- task: "task";
1867
- text: "text";
1868
- }>;
1869
- }, z.core.$strip>>>;
1870
- artifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
1871
- artifactId: z.ZodString;
1872
- name: z.ZodOptional<z.ZodString>;
1873
- description: z.ZodOptional<z.ZodString>;
1874
- parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1875
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1876
- kind: z.ZodEnum<{
1877
- "artifact-update": "artifact-update";
1878
- data: "data";
1879
- file: "file";
1880
- message: "message";
1881
- "status-update": "status-update";
1882
- task: "task";
1883
- text: "text";
1884
- }>;
1885
- text: z.ZodString;
1886
- }, z.core.$strip>, z.ZodObject<{
1887
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1888
- kind: z.ZodEnum<{
1889
- "artifact-update": "artifact-update";
1890
- data: "data";
1891
- file: "file";
1892
- message: "message";
1893
- "status-update": "status-update";
1894
- task: "task";
1895
- text: "text";
1896
- }>;
1897
- file: z.ZodUnion<readonly [z.ZodObject<{
1898
- name: z.ZodOptional<z.ZodString>;
1899
- mimeType: z.ZodOptional<z.ZodString>;
1900
- bytes: z.ZodString;
1901
- uri: z.ZodOptional<z.ZodNever>;
1902
- }, z.core.$strip>, z.ZodObject<{
1903
- name: z.ZodOptional<z.ZodString>;
1904
- mimeType: z.ZodOptional<z.ZodString>;
1905
- uri: z.ZodString;
1906
- bytes: z.ZodOptional<z.ZodNever>;
1907
- }, z.core.$strip>]>;
1908
- }, z.core.$strip>, z.ZodObject<{
1909
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1910
- kind: z.ZodEnum<{
1911
- "artifact-update": "artifact-update";
1912
- data: "data";
1913
- file: "file";
1914
- message: "message";
1915
- "status-update": "status-update";
1916
- task: "task";
1917
- text: "text";
1918
- }>;
1919
- data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1920
- }, z.core.$strip>]>>;
1921
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1922
- extension: z.ZodOptional<z.ZodArray<z.ZodString>>;
1923
- }, z.core.$strip>>>;
1924
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1925
- kind: z.ZodEnum<{
1926
- "artifact-update": "artifact-update";
1927
- data: "data";
1928
- file: "file";
1929
- message: "message";
1930
- "status-update": "status-update";
1931
- task: "task";
1932
- text: "text";
1933
- }>;
1934
- }, z.core.$strip>, z.ZodObject<{
1935
- taskId: z.ZodString;
1936
- contextId: z.ZodString;
1937
- kind: z.ZodEnum<{
1938
- "artifact-update": "artifact-update";
1939
- data: "data";
1940
- file: "file";
1941
- message: "message";
1942
- "status-update": "status-update";
1943
- task: "task";
1944
- text: "text";
1945
- }>;
1946
- status: z.ZodObject<{
1947
- state: z.ZodEnum<{
1948
- unknown: "unknown";
1949
- submitted: "submitted";
1950
- working: "working";
1951
- "input-required": "input-required";
1952
- completed: "completed";
1953
- canceled: "canceled";
1954
- failed: "failed";
1955
- rejected: "rejected";
1956
- "auth-required": "auth-required";
1957
- }>;
1958
- message: z.ZodOptional<z.ZodObject<{
1959
- role: z.ZodEnum<{
1960
- user: "user";
1961
- agent: "agent";
1962
- }>;
1963
- parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1964
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1965
- kind: z.ZodEnum<{
1966
- "artifact-update": "artifact-update";
1967
- data: "data";
1968
- file: "file";
1969
- message: "message";
1970
- "status-update": "status-update";
1971
- task: "task";
1972
- text: "text";
1973
- }>;
1974
- text: z.ZodString;
1975
- }, z.core.$strip>, z.ZodObject<{
1976
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1977
- kind: z.ZodEnum<{
1978
- "artifact-update": "artifact-update";
1979
- data: "data";
1980
- file: "file";
1981
- message: "message";
1982
- "status-update": "status-update";
1983
- task: "task";
1984
- text: "text";
1985
- }>;
1986
- file: z.ZodUnion<readonly [z.ZodObject<{
1987
- name: z.ZodOptional<z.ZodString>;
1988
- mimeType: z.ZodOptional<z.ZodString>;
1989
- bytes: z.ZodString;
1990
- uri: z.ZodOptional<z.ZodNever>;
1991
- }, z.core.$strip>, z.ZodObject<{
1992
- name: z.ZodOptional<z.ZodString>;
1993
- mimeType: z.ZodOptional<z.ZodString>;
1994
- uri: z.ZodString;
1995
- bytes: z.ZodOptional<z.ZodNever>;
1996
- }, z.core.$strip>]>;
1997
- }, z.core.$strip>, z.ZodObject<{
1998
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1999
- kind: z.ZodEnum<{
2000
- "artifact-update": "artifact-update";
2001
- data: "data";
2002
- file: "file";
2003
- message: "message";
2004
- "status-update": "status-update";
2005
- task: "task";
2006
- text: "text";
2007
- }>;
2008
- data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2009
- }, z.core.$strip>]>>;
2010
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2011
- extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
2012
- referenceTaskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
2013
- messageId: z.ZodString;
2014
- taskId: z.ZodOptional<z.ZodString>;
2015
- contextId: z.ZodOptional<z.ZodString>;
2016
- kind: z.ZodEnum<{
2017
- "artifact-update": "artifact-update";
2018
- data: "data";
2019
- file: "file";
2020
- message: "message";
2021
- "status-update": "status-update";
2022
- task: "task";
2023
- text: "text";
2024
- }>;
2025
- }, z.core.$strip>>;
2026
- timestamp: z.ZodOptional<z.ZodString>;
2027
- }, z.core.$strip>;
2028
- final: z.ZodBoolean;
2029
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2030
- }, z.core.$strip>, z.ZodObject<{
2031
- taskId: z.ZodString;
2032
- contextId: z.ZodString;
2033
- kind: z.ZodEnum<{
2034
- "artifact-update": "artifact-update";
2035
- data: "data";
2036
- file: "file";
2037
- message: "message";
2038
- "status-update": "status-update";
2039
- task: "task";
2040
- text: "text";
2041
- }>;
2042
- artifact: z.ZodObject<{
2043
- artifactId: z.ZodString;
2044
- name: z.ZodOptional<z.ZodString>;
2045
- description: z.ZodOptional<z.ZodString>;
2046
- parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2047
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2048
- kind: z.ZodEnum<{
2049
- "artifact-update": "artifact-update";
2050
- data: "data";
2051
- file: "file";
2052
- message: "message";
2053
- "status-update": "status-update";
2054
- task: "task";
2055
- text: "text";
2056
- }>;
2057
- text: z.ZodString;
2058
- }, z.core.$strip>, z.ZodObject<{
2059
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2060
- kind: z.ZodEnum<{
2061
- "artifact-update": "artifact-update";
2062
- data: "data";
2063
- file: "file";
2064
- message: "message";
2065
- "status-update": "status-update";
2066
- task: "task";
2067
- text: "text";
2068
- }>;
2069
- file: z.ZodUnion<readonly [z.ZodObject<{
2070
- name: z.ZodOptional<z.ZodString>;
2071
- mimeType: z.ZodOptional<z.ZodString>;
2072
- bytes: z.ZodString;
2073
- uri: z.ZodOptional<z.ZodNever>;
2074
- }, z.core.$strip>, z.ZodObject<{
2075
- name: z.ZodOptional<z.ZodString>;
2076
- mimeType: z.ZodOptional<z.ZodString>;
2077
- uri: z.ZodString;
2078
- bytes: z.ZodOptional<z.ZodNever>;
2079
- }, z.core.$strip>]>;
2080
- }, z.core.$strip>, z.ZodObject<{
2081
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2082
- kind: z.ZodEnum<{
2083
- "artifact-update": "artifact-update";
2084
- data: "data";
2085
- file: "file";
2086
- message: "message";
2087
- "status-update": "status-update";
2088
- task: "task";
2089
- text: "text";
2090
- }>;
2091
- data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2092
- }, z.core.$strip>]>>;
2093
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2094
- extension: z.ZodOptional<z.ZodArray<z.ZodString>>;
2095
- }, z.core.$strip>;
2096
- append: z.ZodOptional<z.ZodBoolean>;
2097
- lastChunk: z.ZodOptional<z.ZodBoolean>;
2098
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2099
- }, z.core.$strip>]>;
2100
- }, z.core.$strip>;
2101
- export type SendStreamingMessageSuccessResponse = z.infer<typeof SendStreamingMessageSuccessResponseSchema>;
2102
- /**
2103
- * @description Response to a streaming task operation, either through `message/stream` or a subscription.
2104
- */
2105
- export declare const SendStreamingMessageResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
2106
- jsonrpc: z.ZodLiteral<"2.0">;
2107
- id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
2108
- error: z.ZodOptional<z.ZodNever>;
2109
- result: z.ZodUnion<readonly [z.ZodObject<{
2110
- role: z.ZodEnum<{
2111
- user: "user";
2112
- agent: "agent";
2113
- }>;
2114
- parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2115
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2116
- kind: z.ZodEnum<{
2117
- "artifact-update": "artifact-update";
2118
- data: "data";
2119
- file: "file";
2120
- message: "message";
2121
- "status-update": "status-update";
2122
- task: "task";
2123
- text: "text";
2124
- }>;
2125
- text: z.ZodString;
2126
- }, z.core.$strip>, z.ZodObject<{
2127
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2128
- kind: z.ZodEnum<{
2129
- "artifact-update": "artifact-update";
2130
- data: "data";
2131
- file: "file";
2132
- message: "message";
2133
- "status-update": "status-update";
2134
- task: "task";
2135
- text: "text";
2136
- }>;
2137
- file: z.ZodUnion<readonly [z.ZodObject<{
2138
- name: z.ZodOptional<z.ZodString>;
2139
- mimeType: z.ZodOptional<z.ZodString>;
2140
- bytes: z.ZodString;
2141
- uri: z.ZodOptional<z.ZodNever>;
2142
- }, z.core.$strip>, z.ZodObject<{
2143
- name: z.ZodOptional<z.ZodString>;
2144
- mimeType: z.ZodOptional<z.ZodString>;
2145
- uri: z.ZodString;
2146
- bytes: z.ZodOptional<z.ZodNever>;
2147
- }, z.core.$strip>]>;
2148
- }, z.core.$strip>, z.ZodObject<{
2149
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2150
- kind: z.ZodEnum<{
2151
- "artifact-update": "artifact-update";
2152
- data: "data";
2153
- file: "file";
2154
- message: "message";
2155
- "status-update": "status-update";
2156
- task: "task";
2157
- text: "text";
2158
- }>;
2159
- data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2160
- }, z.core.$strip>]>>;
2161
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2162
- extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
2163
- referenceTaskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
2164
- messageId: z.ZodString;
2165
- taskId: z.ZodOptional<z.ZodString>;
2166
- contextId: z.ZodOptional<z.ZodString>;
2167
- kind: z.ZodEnum<{
2168
- "artifact-update": "artifact-update";
2169
- data: "data";
2170
- file: "file";
2171
- message: "message";
2172
- "status-update": "status-update";
2173
- task: "task";
2174
- text: "text";
2175
- }>;
2176
- }, z.core.$strip>, z.ZodObject<{
2177
- id: z.ZodString;
2178
- contextId: z.ZodOptional<z.ZodString>;
2179
- status: z.ZodObject<{
2180
- state: z.ZodEnum<{
2181
- unknown: "unknown";
2182
- submitted: "submitted";
2183
- working: "working";
2184
- "input-required": "input-required";
2185
- completed: "completed";
2186
- canceled: "canceled";
2187
- failed: "failed";
2188
- rejected: "rejected";
2189
- "auth-required": "auth-required";
2190
- }>;
2191
- message: z.ZodOptional<z.ZodObject<{
2192
- role: z.ZodEnum<{
2193
- user: "user";
2194
- agent: "agent";
2195
- }>;
2196
- parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2197
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2198
- kind: z.ZodEnum<{
2199
- "artifact-update": "artifact-update";
2200
- data: "data";
2201
- file: "file";
2202
- message: "message";
2203
- "status-update": "status-update";
2204
- task: "task";
2205
- text: "text";
2206
- }>;
2207
- text: z.ZodString;
2208
- }, z.core.$strip>, z.ZodObject<{
2209
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2210
- kind: z.ZodEnum<{
2211
- "artifact-update": "artifact-update";
2212
- data: "data";
2213
- file: "file";
2214
- message: "message";
2215
- "status-update": "status-update";
2216
- task: "task";
2217
- text: "text";
2218
- }>;
2219
- file: z.ZodUnion<readonly [z.ZodObject<{
2220
- name: z.ZodOptional<z.ZodString>;
2221
- mimeType: z.ZodOptional<z.ZodString>;
2222
- bytes: z.ZodString;
2223
- uri: z.ZodOptional<z.ZodNever>;
2224
- }, z.core.$strip>, z.ZodObject<{
2225
- name: z.ZodOptional<z.ZodString>;
2226
- mimeType: z.ZodOptional<z.ZodString>;
2227
- uri: z.ZodString;
2228
- bytes: z.ZodOptional<z.ZodNever>;
2229
- }, z.core.$strip>]>;
2230
- }, z.core.$strip>, z.ZodObject<{
2231
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2232
- kind: z.ZodEnum<{
2233
- "artifact-update": "artifact-update";
2234
- data: "data";
2235
- file: "file";
2236
- message: "message";
2237
- "status-update": "status-update";
2238
- task: "task";
2239
- text: "text";
2240
- }>;
2241
- data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2242
- }, z.core.$strip>]>>;
2243
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2244
- extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
2245
- referenceTaskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
2246
- messageId: z.ZodString;
2247
- taskId: z.ZodOptional<z.ZodString>;
2248
- contextId: z.ZodOptional<z.ZodString>;
2249
- kind: z.ZodEnum<{
2250
- "artifact-update": "artifact-update";
2251
- data: "data";
2252
- file: "file";
2253
- message: "message";
2254
- "status-update": "status-update";
2255
- task: "task";
2256
- text: "text";
2257
- }>;
2258
- }, z.core.$strip>>;
2259
- timestamp: z.ZodOptional<z.ZodString>;
2260
- }, z.core.$strip>;
2261
- history: z.ZodOptional<z.ZodArray<z.ZodObject<{
2262
- role: z.ZodEnum<{
2263
- user: "user";
2264
- agent: "agent";
2265
- }>;
2266
- parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2267
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2268
- kind: z.ZodEnum<{
2269
- "artifact-update": "artifact-update";
2270
- data: "data";
2271
- file: "file";
2272
- message: "message";
2273
- "status-update": "status-update";
2274
- task: "task";
2275
- text: "text";
2276
- }>;
2277
- text: z.ZodString;
2278
- }, z.core.$strip>, z.ZodObject<{
2279
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2280
- kind: z.ZodEnum<{
2281
- "artifact-update": "artifact-update";
2282
- data: "data";
2283
- file: "file";
2284
- message: "message";
2285
- "status-update": "status-update";
2286
- task: "task";
2287
- text: "text";
2288
- }>;
2289
- file: z.ZodUnion<readonly [z.ZodObject<{
2290
- name: z.ZodOptional<z.ZodString>;
2291
- mimeType: z.ZodOptional<z.ZodString>;
2292
- bytes: z.ZodString;
2293
- uri: z.ZodOptional<z.ZodNever>;
2294
- }, z.core.$strip>, z.ZodObject<{
2295
- name: z.ZodOptional<z.ZodString>;
2296
- mimeType: z.ZodOptional<z.ZodString>;
2297
- uri: z.ZodString;
2298
- bytes: z.ZodOptional<z.ZodNever>;
2299
- }, z.core.$strip>]>;
2300
- }, z.core.$strip>, z.ZodObject<{
2301
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2302
- kind: z.ZodEnum<{
2303
- "artifact-update": "artifact-update";
2304
- data: "data";
2305
- file: "file";
2306
- message: "message";
2307
- "status-update": "status-update";
2308
- task: "task";
2309
- text: "text";
2310
- }>;
2311
- data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2312
- }, z.core.$strip>]>>;
2313
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2314
- extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
2315
- referenceTaskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
2316
- messageId: z.ZodString;
2317
- taskId: z.ZodOptional<z.ZodString>;
2318
- contextId: z.ZodOptional<z.ZodString>;
2319
- kind: z.ZodEnum<{
2320
- "artifact-update": "artifact-update";
2321
- data: "data";
2322
- file: "file";
2323
- message: "message";
2324
- "status-update": "status-update";
2325
- task: "task";
2326
- text: "text";
2327
- }>;
2328
- }, z.core.$strip>>>;
2329
- artifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
2330
- artifactId: z.ZodString;
2331
- name: z.ZodOptional<z.ZodString>;
2332
- description: z.ZodOptional<z.ZodString>;
2333
- parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2334
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2335
- kind: z.ZodEnum<{
2336
- "artifact-update": "artifact-update";
2337
- data: "data";
2338
- file: "file";
2339
- message: "message";
2340
- "status-update": "status-update";
2341
- task: "task";
2342
- text: "text";
2343
- }>;
2344
- text: z.ZodString;
2345
- }, z.core.$strip>, z.ZodObject<{
2346
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2347
- kind: z.ZodEnum<{
2348
- "artifact-update": "artifact-update";
2349
- data: "data";
2350
- file: "file";
2351
- message: "message";
2352
- "status-update": "status-update";
2353
- task: "task";
2354
- text: "text";
2355
- }>;
2356
- file: z.ZodUnion<readonly [z.ZodObject<{
2357
- name: z.ZodOptional<z.ZodString>;
2358
- mimeType: z.ZodOptional<z.ZodString>;
2359
- bytes: z.ZodString;
2360
- uri: z.ZodOptional<z.ZodNever>;
2361
- }, z.core.$strip>, z.ZodObject<{
2362
- name: z.ZodOptional<z.ZodString>;
2363
- mimeType: z.ZodOptional<z.ZodString>;
2364
- uri: z.ZodString;
2365
- bytes: z.ZodOptional<z.ZodNever>;
2366
- }, z.core.$strip>]>;
2367
- }, z.core.$strip>, z.ZodObject<{
2368
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2369
- kind: z.ZodEnum<{
2370
- "artifact-update": "artifact-update";
2371
- data: "data";
2372
- file: "file";
2373
- message: "message";
2374
- "status-update": "status-update";
2375
- task: "task";
2376
- text: "text";
2377
- }>;
2378
- data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2379
- }, z.core.$strip>]>>;
2380
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2381
- extension: z.ZodOptional<z.ZodArray<z.ZodString>>;
2382
- }, z.core.$strip>>>;
2383
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2384
- kind: z.ZodEnum<{
2385
- "artifact-update": "artifact-update";
2386
- data: "data";
2387
- file: "file";
2388
- message: "message";
2389
- "status-update": "status-update";
2390
- task: "task";
2391
- text: "text";
2392
- }>;
2393
- }, z.core.$strip>, z.ZodObject<{
2394
- taskId: z.ZodString;
2395
- contextId: z.ZodString;
2396
- kind: z.ZodEnum<{
2397
- "artifact-update": "artifact-update";
2398
- data: "data";
2399
- file: "file";
2400
- message: "message";
2401
- "status-update": "status-update";
2402
- task: "task";
2403
- text: "text";
2404
- }>;
2405
- status: z.ZodObject<{
2406
- state: z.ZodEnum<{
2407
- unknown: "unknown";
2408
- submitted: "submitted";
2409
- working: "working";
2410
- "input-required": "input-required";
2411
- completed: "completed";
2412
- canceled: "canceled";
2413
- failed: "failed";
2414
- rejected: "rejected";
2415
- "auth-required": "auth-required";
2416
- }>;
2417
- message: z.ZodOptional<z.ZodObject<{
2418
- role: z.ZodEnum<{
2419
- user: "user";
2420
- agent: "agent";
2421
- }>;
2422
- parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2423
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2424
- kind: z.ZodEnum<{
2425
- "artifact-update": "artifact-update";
2426
- data: "data";
2427
- file: "file";
2428
- message: "message";
2429
- "status-update": "status-update";
2430
- task: "task";
2431
- text: "text";
2432
- }>;
2433
- text: z.ZodString;
2434
- }, z.core.$strip>, z.ZodObject<{
2435
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2436
- kind: z.ZodEnum<{
2437
- "artifact-update": "artifact-update";
2438
- data: "data";
2439
- file: "file";
2440
- message: "message";
2441
- "status-update": "status-update";
2442
- task: "task";
2443
- text: "text";
2444
- }>;
2445
- file: z.ZodUnion<readonly [z.ZodObject<{
2446
- name: z.ZodOptional<z.ZodString>;
2447
- mimeType: z.ZodOptional<z.ZodString>;
2448
- bytes: z.ZodString;
2449
- uri: z.ZodOptional<z.ZodNever>;
2450
- }, z.core.$strip>, z.ZodObject<{
2451
- name: z.ZodOptional<z.ZodString>;
2452
- mimeType: z.ZodOptional<z.ZodString>;
2453
- uri: z.ZodString;
2454
- bytes: z.ZodOptional<z.ZodNever>;
2455
- }, z.core.$strip>]>;
2456
- }, z.core.$strip>, z.ZodObject<{
2457
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2458
- kind: z.ZodEnum<{
2459
- "artifact-update": "artifact-update";
2460
- data: "data";
2461
- file: "file";
2462
- message: "message";
2463
- "status-update": "status-update";
2464
- task: "task";
2465
- text: "text";
2466
- }>;
2467
- data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2468
- }, z.core.$strip>]>>;
2469
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2470
- extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
2471
- referenceTaskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
2472
- messageId: z.ZodString;
2473
- taskId: z.ZodOptional<z.ZodString>;
2474
- contextId: z.ZodOptional<z.ZodString>;
2475
- kind: z.ZodEnum<{
2476
- "artifact-update": "artifact-update";
2477
- data: "data";
2478
- file: "file";
2479
- message: "message";
2480
- "status-update": "status-update";
2481
- task: "task";
2482
- text: "text";
2483
- }>;
2484
- }, z.core.$strip>>;
2485
- timestamp: z.ZodOptional<z.ZodString>;
2486
- }, z.core.$strip>;
2487
- final: z.ZodBoolean;
2488
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2489
- }, z.core.$strip>, z.ZodObject<{
2490
- taskId: z.ZodString;
2491
- contextId: z.ZodString;
2492
- kind: z.ZodEnum<{
2493
- "artifact-update": "artifact-update";
2494
- data: "data";
2495
- file: "file";
2496
- message: "message";
2497
- "status-update": "status-update";
2498
- task: "task";
2499
- text: "text";
2500
- }>;
2501
- artifact: z.ZodObject<{
2502
- artifactId: z.ZodString;
2503
- name: z.ZodOptional<z.ZodString>;
2504
- description: z.ZodOptional<z.ZodString>;
2505
- parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2506
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2507
- kind: z.ZodEnum<{
2508
- "artifact-update": "artifact-update";
2509
- data: "data";
2510
- file: "file";
2511
- message: "message";
2512
- "status-update": "status-update";
2513
- task: "task";
2514
- text: "text";
2515
- }>;
2516
- text: z.ZodString;
2517
- }, z.core.$strip>, z.ZodObject<{
2518
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2519
- kind: z.ZodEnum<{
2520
- "artifact-update": "artifact-update";
2521
- data: "data";
2522
- file: "file";
2523
- message: "message";
2524
- "status-update": "status-update";
2525
- task: "task";
2526
- text: "text";
2527
- }>;
2528
- file: z.ZodUnion<readonly [z.ZodObject<{
2529
- name: z.ZodOptional<z.ZodString>;
2530
- mimeType: z.ZodOptional<z.ZodString>;
2531
- bytes: z.ZodString;
2532
- uri: z.ZodOptional<z.ZodNever>;
2533
- }, z.core.$strip>, z.ZodObject<{
2534
- name: z.ZodOptional<z.ZodString>;
2535
- mimeType: z.ZodOptional<z.ZodString>;
2536
- uri: z.ZodString;
2537
- bytes: z.ZodOptional<z.ZodNever>;
2538
- }, z.core.$strip>]>;
2539
- }, z.core.$strip>, z.ZodObject<{
2540
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2541
- kind: z.ZodEnum<{
2542
- "artifact-update": "artifact-update";
2543
- data: "data";
2544
- file: "file";
2545
- message: "message";
2546
- "status-update": "status-update";
2547
- task: "task";
2548
- text: "text";
2549
- }>;
2550
- data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2551
- }, z.core.$strip>]>>;
2552
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2553
- extension: z.ZodOptional<z.ZodArray<z.ZodString>>;
2554
- }, z.core.$strip>;
2555
- append: z.ZodOptional<z.ZodBoolean>;
2556
- lastChunk: z.ZodOptional<z.ZodBoolean>;
2557
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2558
- }, z.core.$strip>]>;
2559
- }, z.core.$strip>, z.ZodObject<{
2560
- jsonrpc: z.ZodLiteral<"2.0">;
2561
- id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
2562
- result: z.ZodOptional<z.ZodNever>;
2563
- error: z.ZodObject<{
2564
- code: z.ZodNumber;
2565
- message: z.ZodString;
2566
- data: z.ZodOptional<z.ZodUnknown>;
2567
- }, z.core.$strip>;
2568
- }, z.core.$strip>]>;
2569
- export type SendStreamingMessageResponse = z.infer<typeof SendStreamingMessageResponseSchema>;
2570
- //# sourceMappingURL=message.d.ts.map