@artinet/sdk 0.5.5 → 0.5.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (622) hide show
  1. package/CHANGELOG.md +106 -20
  2. package/README.md +471 -214
  3. package/dist/client/a2a-client.js +6 -1
  4. package/dist/client/a2a-client.js.map +1 -1
  5. package/dist/index.js +3 -2
  6. package/dist/index.js.map +1 -1
  7. package/dist/server/express/errors.js +51 -0
  8. package/dist/server/express/errors.js.map +1 -0
  9. package/dist/server/express/index.js +4 -0
  10. package/dist/server/express/index.js.map +1 -0
  11. package/dist/server/express/middeware.js +116 -0
  12. package/dist/server/express/middeware.js.map +1 -0
  13. package/dist/server/express/server.js +80 -0
  14. package/dist/server/express/server.js.map +1 -0
  15. package/dist/server/index.js +1 -7
  16. package/dist/server/index.js.map +1 -1
  17. package/dist/services/a2a/factory/builder.js +392 -0
  18. package/dist/services/a2a/factory/builder.js.map +1 -0
  19. package/dist/services/a2a/factory/context.js +151 -0
  20. package/dist/services/a2a/factory/context.js.map +1 -0
  21. package/dist/services/a2a/factory/event.js +182 -0
  22. package/dist/services/a2a/factory/event.js.map +1 -0
  23. package/dist/services/a2a/factory/index.js +6 -0
  24. package/dist/services/a2a/factory/index.js.map +1 -0
  25. package/dist/services/a2a/factory/method.js +15 -0
  26. package/dist/services/a2a/factory/method.js.map +1 -0
  27. package/dist/services/a2a/factory/service.js +12 -0
  28. package/dist/services/a2a/factory/service.js.map +1 -0
  29. package/dist/services/a2a/helpers/index.js +2 -0
  30. package/dist/services/a2a/helpers/index.js.map +1 -0
  31. package/dist/services/a2a/helpers/part.js +47 -0
  32. package/dist/services/a2a/helpers/part.js.map +1 -0
  33. package/dist/services/a2a/index.js +5 -1
  34. package/dist/services/a2a/index.js.map +1 -1
  35. package/dist/services/a2a/managers/cancellation.js +17 -0
  36. package/dist/services/a2a/managers/cancellation.js.map +1 -0
  37. package/dist/services/a2a/managers/connection.js +17 -0
  38. package/dist/services/a2a/managers/connection.js.map +1 -0
  39. package/dist/services/a2a/managers/context.js +17 -0
  40. package/dist/services/a2a/managers/context.js.map +1 -0
  41. package/dist/services/a2a/managers/index.js +6 -0
  42. package/dist/services/a2a/managers/index.js.map +1 -0
  43. package/dist/services/a2a/managers/task.js +17 -0
  44. package/dist/services/a2a/managers/task.js.map +1 -0
  45. package/dist/services/a2a/methods/cancel-task.js +47 -0
  46. package/dist/services/a2a/methods/cancel-task.js.map +1 -0
  47. package/dist/services/a2a/methods/get-task.js +15 -0
  48. package/dist/services/a2a/methods/get-task.js.map +1 -0
  49. package/dist/services/a2a/methods/index.js +6 -0
  50. package/dist/services/a2a/methods/index.js.map +1 -0
  51. package/dist/services/a2a/methods/resubscribe-task.js +77 -0
  52. package/dist/services/a2a/methods/resubscribe-task.js.map +1 -0
  53. package/dist/services/a2a/methods/send-message.js +20 -0
  54. package/dist/services/a2a/methods/send-message.js.map +1 -0
  55. package/dist/services/a2a/methods/stream-message.js +39 -0
  56. package/dist/services/a2a/methods/stream-message.js.map +1 -0
  57. package/dist/services/a2a/service.js +88 -239
  58. package/dist/services/a2a/service.js.map +1 -1
  59. package/dist/services/a2a/state/index.js +4 -0
  60. package/dist/services/a2a/state/index.js.map +1 -0
  61. package/dist/services/a2a/state/load.js +43 -0
  62. package/dist/services/a2a/state/load.js.map +1 -0
  63. package/dist/services/a2a/state/process.js +14 -0
  64. package/dist/services/a2a/state/process.js.map +1 -0
  65. package/dist/services/a2a/state/update/artifact.js +40 -0
  66. package/dist/services/a2a/state/update/artifact.js.map +1 -0
  67. package/dist/services/a2a/state/update/index.js +3 -0
  68. package/dist/services/a2a/state/update/index.js.map +1 -0
  69. package/dist/{server/lib/update/base.js → services/a2a/state/update/update.js} +23 -9
  70. package/dist/services/a2a/state/update/update.js.map +1 -0
  71. package/dist/services/core/execution/execute.js +26 -0
  72. package/dist/services/core/execution/execute.js.map +1 -0
  73. package/dist/services/core/execution/index.js +2 -0
  74. package/dist/services/core/execution/index.js.map +1 -0
  75. package/dist/services/core/index.js +3 -0
  76. package/dist/services/core/index.js.map +1 -0
  77. package/dist/services/core/managers/command.js +95 -0
  78. package/dist/services/core/managers/command.js.map +1 -0
  79. package/dist/services/core/managers/event.js +57 -0
  80. package/dist/services/core/managers/event.js.map +1 -0
  81. package/dist/services/core/managers/index.js +4 -0
  82. package/dist/services/core/managers/index.js.map +1 -0
  83. package/dist/services/core/managers/stream.js +78 -0
  84. package/dist/services/core/managers/stream.js.map +1 -0
  85. package/dist/services/index.js +2 -1
  86. package/dist/services/index.js.map +1 -1
  87. package/dist/transport/index.js +1 -1
  88. package/dist/transport/index.js.map +1 -1
  89. package/dist/transport/rpc/parser.js +13 -5
  90. package/dist/transport/rpc/parser.js.map +1 -1
  91. package/dist/transport/rpc/rpc-client.js +10 -2
  92. package/dist/transport/rpc/rpc-client.js.map +1 -1
  93. package/dist/transport/streaming/event-stream.js +5 -1
  94. package/dist/transport/streaming/event-stream.js.map +1 -1
  95. package/dist/transport/trpc/a2a/factory/index.js +2 -0
  96. package/dist/transport/trpc/a2a/factory/index.js.map +1 -0
  97. package/dist/transport/trpc/a2a/factory/router.js +17 -0
  98. package/dist/transport/trpc/a2a/factory/router.js.map +1 -0
  99. package/dist/transport/trpc/a2a/index.js +4 -0
  100. package/dist/transport/trpc/a2a/index.js.map +1 -0
  101. package/dist/transport/trpc/a2a/routes/index.js +4 -0
  102. package/dist/transport/trpc/a2a/routes/index.js.map +1 -0
  103. package/dist/transport/trpc/a2a/routes/info.js +10 -0
  104. package/dist/transport/trpc/a2a/routes/info.js.map +1 -0
  105. package/dist/transport/trpc/a2a/routes/message/index.js +2 -0
  106. package/dist/transport/trpc/a2a/routes/message/index.js.map +1 -0
  107. package/dist/transport/trpc/a2a/routes/message/route.js +38 -0
  108. package/dist/transport/trpc/a2a/routes/message/route.js.map +1 -0
  109. package/dist/transport/trpc/a2a/routes/tasks/index.js +2 -0
  110. package/dist/transport/trpc/a2a/routes/tasks/index.js.map +1 -0
  111. package/dist/transport/trpc/a2a/routes/tasks/route.js +71 -0
  112. package/dist/transport/trpc/a2a/routes/tasks/route.js.map +1 -0
  113. package/dist/transport/trpc/a2a/trpc.js +36 -0
  114. package/dist/transport/trpc/a2a/trpc.js.map +1 -0
  115. package/dist/transport/trpc/index.js +2 -0
  116. package/dist/transport/trpc/index.js.map +1 -0
  117. package/dist/types/client/a2a-client.d.ts +5 -1
  118. package/dist/types/client/a2a-client.d.ts.map +1 -1
  119. package/dist/types/ext.js +11 -0
  120. package/dist/types/ext.js.map +1 -0
  121. package/dist/types/index.d.ts +3 -2
  122. package/dist/types/index.d.ts.map +1 -1
  123. package/dist/types/index.js +3 -4
  124. package/dist/types/index.js.map +1 -1
  125. package/dist/types/interfaces/client.js +6 -0
  126. package/dist/types/interfaces/client.js.map +1 -0
  127. package/dist/types/interfaces/index.js +4 -0
  128. package/dist/types/interfaces/index.js.map +1 -0
  129. package/dist/types/interfaces/services/a2a/builder.js +2 -0
  130. package/dist/types/interfaces/services/a2a/builder.js.map +1 -0
  131. package/dist/types/interfaces/services/a2a/context.js +6 -0
  132. package/dist/types/interfaces/services/a2a/context.js.map +1 -0
  133. package/dist/types/interfaces/services/a2a/engine.js +6 -0
  134. package/dist/types/interfaces/services/a2a/engine.js.map +1 -0
  135. package/dist/types/interfaces/services/a2a/index.js +6 -0
  136. package/dist/types/interfaces/services/a2a/index.js.map +1 -0
  137. package/dist/types/interfaces/services/a2a/legacy.js +6 -0
  138. package/dist/types/interfaces/services/a2a/legacy.js.map +1 -0
  139. package/dist/types/interfaces/services/a2a/service.js +6 -0
  140. package/dist/types/interfaces/services/a2a/service.js.map +1 -0
  141. package/dist/types/interfaces/services/core/context/command.js +6 -0
  142. package/dist/types/interfaces/services/core/context/command.js.map +1 -0
  143. package/dist/types/interfaces/services/core/context/context.js +6 -0
  144. package/dist/types/interfaces/services/core/context/context.js.map +1 -0
  145. package/dist/types/interfaces/services/core/context/index.js +4 -0
  146. package/dist/types/interfaces/services/core/context/index.js.map +1 -0
  147. package/dist/types/interfaces/services/core/context/types.js +6 -0
  148. package/dist/types/interfaces/services/core/context/types.js.map +1 -0
  149. package/dist/types/interfaces/services/core/execution/engine.js +6 -0
  150. package/dist/types/interfaces/services/core/execution/engine.js.map +1 -0
  151. package/dist/types/interfaces/services/core/execution/environment.js +6 -0
  152. package/dist/types/interfaces/services/core/execution/environment.js.map +1 -0
  153. package/dist/types/interfaces/services/core/execution/execute.js +6 -0
  154. package/dist/types/interfaces/services/core/execution/execute.js.map +1 -0
  155. package/dist/types/interfaces/services/core/execution/index.js +4 -0
  156. package/dist/types/interfaces/services/core/execution/index.js.map +1 -0
  157. package/dist/types/interfaces/services/core/index.js +5 -0
  158. package/dist/types/interfaces/services/core/index.js.map +1 -0
  159. package/dist/types/interfaces/services/core/managers/cancellation.js +6 -0
  160. package/dist/types/interfaces/services/core/managers/cancellation.js.map +1 -0
  161. package/dist/types/interfaces/services/core/managers/connection.js +6 -0
  162. package/dist/types/interfaces/services/core/managers/connection.js.map +1 -0
  163. package/dist/types/interfaces/services/core/managers/context.js +6 -0
  164. package/dist/types/interfaces/services/core/managers/context.js.map +1 -0
  165. package/dist/types/interfaces/services/core/managers/event.js +6 -0
  166. package/dist/types/interfaces/services/core/managers/event.js.map +1 -0
  167. package/dist/types/interfaces/services/core/managers/index.js +7 -0
  168. package/dist/types/interfaces/services/core/managers/index.js.map +1 -0
  169. package/dist/types/interfaces/services/core/managers/stream.js +6 -0
  170. package/dist/types/interfaces/services/core/managers/stream.js.map +1 -0
  171. package/dist/types/interfaces/services/core/managers/task.js +2 -0
  172. package/dist/types/interfaces/services/core/managers/task.js.map +1 -0
  173. package/dist/types/interfaces/services/core/service.js +6 -0
  174. package/dist/types/interfaces/services/core/service.js.map +1 -0
  175. package/dist/types/interfaces/services/index.js +4 -0
  176. package/dist/types/interfaces/services/index.js.map +1 -0
  177. package/dist/types/{services → interfaces/services}/protocol.js +4 -0
  178. package/dist/types/interfaces/services/protocol.js.map +1 -0
  179. package/dist/types/interfaces/storage.js +6 -0
  180. package/dist/types/interfaces/storage.js.map +1 -0
  181. package/dist/types/schemas/a2a/agent.js +319 -0
  182. package/dist/types/schemas/a2a/agent.js.map +1 -0
  183. package/dist/types/schemas/a2a/auth.js +274 -0
  184. package/dist/types/schemas/a2a/auth.js.map +1 -0
  185. package/dist/types/schemas/a2a/error.js +119 -0
  186. package/dist/types/schemas/a2a/error.js.map +1 -1
  187. package/dist/types/schemas/a2a/index.js +8 -4
  188. package/dist/types/schemas/a2a/index.js.map +1 -1
  189. package/dist/types/schemas/a2a/kind.js +21 -0
  190. package/dist/types/schemas/a2a/kind.js.map +1 -0
  191. package/dist/types/schemas/a2a/message.js +130 -1
  192. package/dist/types/schemas/a2a/message.js.map +1 -1
  193. package/dist/types/schemas/a2a/notification.js +202 -1
  194. package/dist/types/schemas/a2a/notification.js.map +1 -1
  195. package/dist/types/schemas/a2a/parameters.js +241 -1
  196. package/dist/types/schemas/a2a/parameters.js.map +1 -1
  197. package/dist/types/schemas/a2a/protocol.js +60 -0
  198. package/dist/types/schemas/a2a/protocol.js.map +1 -0
  199. package/dist/types/schemas/a2a/rpc.js +126 -1
  200. package/dist/types/schemas/a2a/rpc.js.map +1 -1
  201. package/dist/types/schemas/a2a/task.js +131 -12
  202. package/dist/types/schemas/a2a/task.js.map +1 -1
  203. package/dist/types/schemas/a2a/transport.js +28 -0
  204. package/dist/types/schemas/a2a/transport.js.map +1 -0
  205. package/dist/types/schemas/deployment/index.js +3 -0
  206. package/dist/types/schemas/deployment/index.js.map +1 -0
  207. package/dist/types/schemas/deployment/proxy.js +6 -0
  208. package/dist/types/schemas/deployment/proxy.js.map +1 -0
  209. package/dist/types/schemas/deployment/request.js +88 -0
  210. package/dist/types/schemas/deployment/request.js.map +1 -0
  211. package/dist/types/schemas/index.js +1 -0
  212. package/dist/types/schemas/index.js.map +1 -1
  213. package/dist/types/server/express/errors.d.ts +10 -0
  214. package/dist/types/server/express/errors.d.ts.map +1 -0
  215. package/dist/types/server/express/index.d.ts +4 -0
  216. package/dist/types/server/express/index.d.ts.map +1 -0
  217. package/dist/types/server/express/middeware.d.ts +8 -0
  218. package/dist/types/server/express/middeware.d.ts.map +1 -0
  219. package/dist/types/server/express/server.d.ts +71 -0
  220. package/dist/types/server/express/server.d.ts.map +1 -0
  221. package/dist/types/server/index.d.ts +1 -7
  222. package/dist/types/server/index.d.ts.map +1 -1
  223. package/dist/types/services/a2a/factory/builder.d.ts +352 -0
  224. package/dist/types/services/a2a/factory/builder.d.ts.map +1 -0
  225. package/dist/types/services/a2a/factory/context.d.ts +133 -0
  226. package/dist/types/services/a2a/factory/context.d.ts.map +1 -0
  227. package/dist/types/services/a2a/factory/event.d.ts +59 -0
  228. package/dist/types/services/a2a/factory/event.d.ts.map +1 -0
  229. package/dist/types/services/a2a/factory/index.d.ts +6 -0
  230. package/dist/types/services/a2a/factory/index.d.ts.map +1 -0
  231. package/dist/types/services/a2a/factory/method.d.ts +7 -0
  232. package/dist/types/services/a2a/factory/method.d.ts.map +1 -0
  233. package/dist/types/services/a2a/factory/service.d.ts +10 -0
  234. package/dist/types/services/a2a/factory/service.d.ts.map +1 -0
  235. package/dist/types/services/a2a/helpers/index.d.ts +2 -0
  236. package/dist/types/services/a2a/helpers/index.d.ts.map +1 -0
  237. package/dist/types/services/a2a/helpers/part.d.ts +49 -0
  238. package/dist/types/services/a2a/helpers/part.d.ts.map +1 -0
  239. package/dist/types/services/a2a/index.d.ts +5 -1
  240. package/dist/types/services/a2a/index.d.ts.map +1 -1
  241. package/dist/types/services/a2a/managers/cancellation.d.ts +12 -0
  242. package/dist/types/services/a2a/managers/cancellation.d.ts.map +1 -0
  243. package/dist/types/services/a2a/managers/connection.d.ts +12 -0
  244. package/dist/types/services/a2a/managers/connection.d.ts.map +1 -0
  245. package/dist/types/services/a2a/managers/context.d.ts +12 -0
  246. package/dist/types/services/a2a/managers/context.d.ts.map +1 -0
  247. package/dist/types/services/a2a/managers/index.d.ts +6 -0
  248. package/dist/types/services/a2a/managers/index.d.ts.map +1 -0
  249. package/dist/types/services/a2a/managers/task.d.ts +12 -0
  250. package/dist/types/services/a2a/managers/task.d.ts.map +1 -0
  251. package/dist/types/services/a2a/methods/cancel-task.d.ts +8 -0
  252. package/dist/types/services/a2a/methods/cancel-task.d.ts.map +1 -0
  253. package/dist/types/services/a2a/methods/get-task.d.ts +113 -0
  254. package/dist/types/services/a2a/methods/get-task.d.ts.map +1 -0
  255. package/dist/types/services/a2a/methods/index.d.ts +6 -0
  256. package/dist/types/services/a2a/methods/index.d.ts.map +1 -0
  257. package/dist/types/services/a2a/methods/resubscribe-task.d.ts +8 -0
  258. package/dist/types/services/a2a/methods/resubscribe-task.d.ts.map +1 -0
  259. package/dist/types/services/a2a/methods/send-message.d.ts +8 -0
  260. package/dist/types/services/a2a/methods/send-message.d.ts.map +1 -0
  261. package/dist/types/services/a2a/methods/stream-message.d.ts +9 -0
  262. package/dist/types/services/a2a/methods/stream-message.d.ts.map +1 -0
  263. package/dist/types/services/a2a/service.d.ts +375 -41
  264. package/dist/types/services/a2a/service.d.ts.map +1 -1
  265. package/dist/types/services/a2a/state/index.d.ts +4 -0
  266. package/dist/types/services/a2a/state/index.d.ts.map +1 -0
  267. package/dist/types/services/a2a/state/load.d.ts +15 -0
  268. package/dist/types/services/a2a/state/load.d.ts.map +1 -0
  269. package/dist/types/services/a2a/state/process.d.ts +8 -0
  270. package/dist/types/services/a2a/state/process.d.ts.map +1 -0
  271. package/dist/types/services/a2a/state/update/artifact.d.ts +11 -0
  272. package/dist/types/services/a2a/state/update/artifact.d.ts.map +1 -0
  273. package/dist/types/services/a2a/state/update/index.d.ts +3 -0
  274. package/dist/types/services/a2a/state/update/index.d.ts.map +1 -0
  275. package/dist/types/services/a2a/state/update/update.d.ts +24 -0
  276. package/dist/types/services/a2a/state/update/update.d.ts.map +1 -0
  277. package/dist/types/services/core/execution/execute.d.ts +7 -0
  278. package/dist/types/services/core/execution/execute.d.ts.map +1 -0
  279. package/dist/types/services/core/execution/index.d.ts +2 -0
  280. package/dist/types/services/core/execution/index.d.ts.map +1 -0
  281. package/dist/types/services/core/index.d.ts +3 -0
  282. package/dist/types/services/core/index.d.ts.map +1 -0
  283. package/dist/types/services/core/managers/command.d.ts +40 -0
  284. package/dist/types/services/core/managers/command.d.ts.map +1 -0
  285. package/dist/types/services/core/managers/event.d.ts +19 -0
  286. package/dist/types/services/core/managers/event.d.ts.map +1 -0
  287. package/dist/types/services/core/managers/index.d.ts +4 -0
  288. package/dist/types/services/core/managers/index.d.ts.map +1 -0
  289. package/dist/types/services/core/managers/stream.d.ts +21 -0
  290. package/dist/types/services/core/managers/stream.d.ts.map +1 -0
  291. package/dist/types/services/index.d.ts +2 -1
  292. package/dist/types/services/index.d.ts.map +1 -1
  293. package/dist/types/transport/index.d.ts +1 -1
  294. package/dist/types/transport/index.d.ts.map +1 -1
  295. package/dist/types/transport/rpc/parser.d.ts +5 -1
  296. package/dist/types/transport/rpc/parser.d.ts.map +1 -1
  297. package/dist/types/transport/rpc/rpc-client.d.ts +5 -1
  298. package/dist/types/transport/rpc/rpc-client.d.ts.map +1 -1
  299. package/dist/types/transport/streaming/event-stream.d.ts +5 -1
  300. package/dist/types/transport/streaming/event-stream.d.ts.map +1 -1
  301. package/dist/types/transport/trpc/a2a/factory/index.d.ts +2 -0
  302. package/dist/types/transport/trpc/a2a/factory/index.d.ts.map +1 -0
  303. package/dist/types/transport/trpc/a2a/factory/router.d.ts +2631 -0
  304. package/dist/types/transport/trpc/a2a/factory/router.d.ts.map +1 -0
  305. package/dist/types/transport/trpc/a2a/index.d.ts +4 -0
  306. package/dist/types/transport/trpc/a2a/index.d.ts.map +1 -0
  307. package/dist/types/transport/trpc/a2a/routes/index.d.ts +4 -0
  308. package/dist/types/transport/trpc/a2a/routes/index.d.ts.map +1 -0
  309. package/dist/types/transport/trpc/a2a/routes/info.d.ts +102 -0
  310. package/dist/types/transport/trpc/a2a/routes/info.d.ts.map +1 -0
  311. package/dist/types/transport/trpc/a2a/routes/message/index.d.ts +2 -0
  312. package/dist/types/transport/trpc/a2a/routes/message/index.d.ts.map +1 -0
  313. package/dist/types/transport/trpc/a2a/routes/message/route.d.ts +523 -0
  314. package/dist/types/transport/trpc/a2a/routes/message/route.d.ts.map +1 -0
  315. package/dist/types/transport/trpc/a2a/routes/tasks/index.d.ts +2 -0
  316. package/dist/types/transport/trpc/a2a/routes/tasks/index.d.ts.map +1 -0
  317. package/dist/types/transport/trpc/a2a/routes/tasks/route.d.ts +646 -0
  318. package/dist/types/transport/trpc/a2a/routes/tasks/route.d.ts.map +1 -0
  319. package/dist/types/transport/trpc/a2a/trpc.d.ts +272 -0
  320. package/dist/types/transport/trpc/a2a/trpc.d.ts.map +1 -0
  321. package/dist/types/transport/trpc/index.d.ts +2 -0
  322. package/dist/types/transport/trpc/index.d.ts.map +1 -0
  323. package/dist/types/types/ext.d.ts +14 -0
  324. package/dist/types/types/ext.d.ts.map +1 -0
  325. package/dist/types/types/index.d.ts +3 -4
  326. package/dist/types/types/index.d.ts.map +1 -1
  327. package/dist/types/types/{client.d.ts → interfaces/client.d.ts} +7 -2
  328. package/dist/types/types/interfaces/client.d.ts.map +1 -0
  329. package/dist/types/types/interfaces/index.d.ts +4 -0
  330. package/dist/types/types/interfaces/index.d.ts.map +1 -0
  331. package/dist/types/types/interfaces/services/a2a/builder.d.ts +33 -0
  332. package/dist/types/types/interfaces/services/a2a/builder.d.ts.map +1 -0
  333. package/dist/types/types/interfaces/services/a2a/context.d.ts +163 -0
  334. package/dist/types/types/interfaces/services/a2a/context.d.ts.map +1 -0
  335. package/dist/types/types/interfaces/services/a2a/engine.d.ts +8 -0
  336. package/dist/types/types/interfaces/services/a2a/engine.d.ts.map +1 -0
  337. package/dist/types/types/interfaces/services/a2a/index.d.ts +6 -0
  338. package/dist/types/types/interfaces/services/a2a/index.d.ts.map +1 -0
  339. package/dist/types/types/interfaces/services/a2a/legacy.d.ts +90 -0
  340. package/dist/types/types/interfaces/services/a2a/legacy.d.ts.map +1 -0
  341. package/dist/types/types/interfaces/services/a2a/service.d.ts +409 -0
  342. package/dist/types/types/interfaces/services/a2a/service.d.ts.map +1 -0
  343. package/dist/types/types/interfaces/services/core/context/command.d.ts +26 -0
  344. package/dist/types/types/interfaces/services/core/context/command.d.ts.map +1 -0
  345. package/dist/types/types/interfaces/services/core/context/context.d.ts +208 -0
  346. package/dist/types/types/interfaces/services/core/context/context.d.ts.map +1 -0
  347. package/dist/types/types/interfaces/services/core/context/index.d.ts +4 -0
  348. package/dist/types/types/interfaces/services/core/context/index.d.ts.map +1 -0
  349. package/dist/types/types/interfaces/services/core/context/types.d.ts +12 -0
  350. package/dist/types/types/interfaces/services/core/context/types.d.ts.map +1 -0
  351. package/dist/types/types/interfaces/services/core/execution/engine.d.ts +107 -0
  352. package/dist/types/types/interfaces/services/core/execution/engine.d.ts.map +1 -0
  353. package/dist/types/types/interfaces/services/core/execution/environment.d.ts +12 -0
  354. package/dist/types/types/interfaces/services/core/execution/environment.d.ts.map +1 -0
  355. package/dist/types/types/interfaces/services/core/execution/execute.d.ts +8 -0
  356. package/dist/types/types/interfaces/services/core/execution/execute.d.ts.map +1 -0
  357. package/dist/types/types/interfaces/services/core/execution/index.d.ts +4 -0
  358. package/dist/types/types/interfaces/services/core/execution/index.d.ts.map +1 -0
  359. package/dist/types/types/interfaces/services/core/index.d.ts +5 -0
  360. package/dist/types/types/interfaces/services/core/index.d.ts.map +1 -0
  361. package/dist/types/types/interfaces/services/core/managers/cancellation.d.ts +10 -0
  362. package/dist/types/types/interfaces/services/core/managers/cancellation.d.ts.map +1 -0
  363. package/dist/types/types/interfaces/services/core/managers/connection.d.ts +10 -0
  364. package/dist/types/types/interfaces/services/core/managers/connection.d.ts.map +1 -0
  365. package/dist/types/types/interfaces/services/core/managers/context.d.ts +18 -0
  366. package/dist/types/types/interfaces/services/core/managers/context.d.ts.map +1 -0
  367. package/dist/types/types/interfaces/services/core/managers/event.d.ts +329 -0
  368. package/dist/types/types/interfaces/services/core/managers/event.d.ts.map +1 -0
  369. package/dist/types/types/interfaces/services/core/managers/index.d.ts +7 -0
  370. package/dist/types/types/interfaces/services/core/managers/index.d.ts.map +1 -0
  371. package/dist/types/types/interfaces/services/core/managers/stream.d.ts +218 -0
  372. package/dist/types/types/interfaces/services/core/managers/stream.d.ts.map +1 -0
  373. package/dist/types/types/interfaces/services/core/managers/task.d.ts +10 -0
  374. package/dist/types/types/interfaces/services/core/managers/task.d.ts.map +1 -0
  375. package/dist/types/types/interfaces/services/core/service.d.ts +116 -0
  376. package/dist/types/types/interfaces/services/core/service.d.ts.map +1 -0
  377. package/dist/types/types/interfaces/services/index.d.ts +4 -0
  378. package/dist/types/types/interfaces/services/index.d.ts.map +1 -0
  379. package/dist/types/types/{services → interfaces/services}/protocol.d.ts +4 -0
  380. package/dist/types/types/interfaces/services/protocol.d.ts.map +1 -0
  381. package/dist/types/types/interfaces/storage.d.ts +9 -0
  382. package/dist/types/types/interfaces/storage.d.ts.map +1 -0
  383. package/dist/types/types/schemas/a2a/agent.d.ts +509 -0
  384. package/dist/types/types/schemas/a2a/agent.d.ts.map +1 -0
  385. package/dist/types/types/schemas/a2a/auth.d.ts +285 -0
  386. package/dist/types/types/schemas/a2a/auth.d.ts.map +1 -0
  387. package/dist/types/types/schemas/a2a/error.d.ts +133 -27
  388. package/dist/types/types/schemas/a2a/error.d.ts.map +1 -1
  389. package/dist/types/types/schemas/a2a/index.d.ts +8 -216
  390. package/dist/types/types/schemas/a2a/index.d.ts.map +1 -1
  391. package/dist/types/types/schemas/a2a/kind.d.ts +28 -0
  392. package/dist/types/types/schemas/a2a/kind.d.ts.map +1 -0
  393. package/dist/types/types/schemas/a2a/message.d.ts +2549 -69
  394. package/dist/types/types/schemas/a2a/message.d.ts.map +1 -1
  395. package/dist/types/types/schemas/a2a/notification.d.ts +321 -70
  396. package/dist/types/types/schemas/a2a/notification.d.ts.map +1 -1
  397. package/dist/types/types/schemas/a2a/parameters.d.ts +287 -167
  398. package/dist/types/types/schemas/a2a/parameters.d.ts.map +1 -1
  399. package/dist/types/types/schemas/a2a/protocol.d.ts +3207 -0
  400. package/dist/types/types/schemas/a2a/protocol.d.ts.map +1 -0
  401. package/dist/types/types/schemas/a2a/rpc.d.ts +42 -89
  402. package/dist/types/types/schemas/a2a/rpc.d.ts.map +1 -1
  403. package/dist/types/types/schemas/a2a/task.d.ts +1460 -214
  404. package/dist/types/types/schemas/a2a/task.d.ts.map +1 -1
  405. package/dist/types/types/schemas/a2a/transport.d.ts +28 -0
  406. package/dist/types/types/schemas/a2a/transport.d.ts.map +1 -0
  407. package/dist/types/types/schemas/deployment/index.d.ts +3 -0
  408. package/dist/types/types/schemas/deployment/index.d.ts.map +1 -0
  409. package/dist/types/types/{proxy.d.ts → schemas/deployment/proxy.d.ts} +6 -2
  410. package/dist/types/types/schemas/deployment/proxy.d.ts.map +1 -0
  411. package/dist/types/types/schemas/deployment/request.d.ts +508 -0
  412. package/dist/types/types/schemas/deployment/request.d.ts.map +1 -0
  413. package/dist/types/types/utils/index.d.ts +2 -0
  414. package/dist/types/types/utils/index.d.ts.map +1 -0
  415. package/dist/types/types/{transform.d.ts → utils/transform.d.ts} +4 -0
  416. package/dist/types/types/utils/transform.d.ts.map +1 -0
  417. package/dist/types/utils/api/register.d.ts +4 -0
  418. package/dist/types/utils/api/register.d.ts.map +1 -1
  419. package/dist/types/utils/common/constants.d.ts +8 -4
  420. package/dist/types/utils/common/constants.d.ts.map +1 -1
  421. package/dist/types/utils/common/errors.d.ts +6 -12
  422. package/dist/types/utils/common/errors.d.ts.map +1 -1
  423. package/dist/types/utils/common/utils.d.ts +4 -14
  424. package/dist/types/utils/common/utils.d.ts.map +1 -1
  425. package/dist/types/utils/common/zAsyncIterable.d.ts +23 -0
  426. package/dist/types/utils/common/zAsyncIterable.d.ts.map +1 -0
  427. package/dist/types/utils/deployment/agents.d.ts +5 -1
  428. package/dist/types/utils/deployment/agents.d.ts.map +1 -1
  429. package/dist/types/utils/deployment/bundler.d.ts +4 -0
  430. package/dist/types/utils/deployment/bundler.d.ts.map +1 -1
  431. package/dist/types/utils/deployment/full-deployment.d.ts +12 -2
  432. package/dist/types/utils/deployment/full-deployment.d.ts.map +1 -1
  433. package/dist/types/utils/deployment/index.d.ts +5 -0
  434. package/dist/types/utils/deployment/index.d.ts.map +1 -0
  435. package/dist/types/utils/deployment/task-wrapper.d.ts +6 -2
  436. package/dist/types/utils/deployment/task-wrapper.d.ts.map +1 -1
  437. package/dist/types/utils/deployment/test-deployment.d.ts +7 -2
  438. package/dist/types/utils/deployment/test-deployment.d.ts.map +1 -1
  439. package/dist/types/utils/index.d.ts +4 -6
  440. package/dist/types/utils/index.d.ts.map +1 -1
  441. package/dist/types/utils/index.js +2 -0
  442. package/dist/types/utils/index.js.map +1 -0
  443. package/dist/types/utils/logging/index.d.ts +3 -0
  444. package/dist/types/utils/logging/index.d.ts.map +1 -0
  445. package/dist/types/utils/logging/log.d.ts +4 -0
  446. package/dist/types/utils/logging/log.d.ts.map +1 -1
  447. package/dist/types/utils/logging/logger.d.ts +4 -0
  448. package/dist/types/utils/logging/logger.d.ts.map +1 -1
  449. package/dist/types/{server/lib → utils}/storage/file.d.ts +9 -4
  450. package/dist/types/utils/storage/file.d.ts.map +1 -0
  451. package/dist/types/{server/lib → utils}/storage/memory.d.ts +9 -4
  452. package/dist/types/utils/storage/memory.d.ts.map +1 -0
  453. package/dist/types/{transform.js → utils/transform.js} +2 -1
  454. package/dist/types/utils/transform.js.map +1 -0
  455. package/dist/utils/api/register.js +4 -0
  456. package/dist/utils/api/register.js.map +1 -1
  457. package/dist/utils/common/constants.js +20 -11
  458. package/dist/utils/common/constants.js.map +1 -1
  459. package/dist/utils/common/errors.js +7 -40
  460. package/dist/utils/common/errors.js.map +1 -1
  461. package/dist/utils/common/utils.js +4 -46
  462. package/dist/utils/common/utils.js.map +1 -1
  463. package/dist/utils/common/zAsyncIterable.js +40 -0
  464. package/dist/utils/common/zAsyncIterable.js.map +1 -0
  465. package/dist/utils/deployment/agents.js +4 -0
  466. package/dist/utils/deployment/agents.js.map +1 -1
  467. package/dist/utils/deployment/bundler.js +4 -0
  468. package/dist/utils/deployment/bundler.js.map +1 -1
  469. package/dist/utils/deployment/full-deployment.js +6 -2
  470. package/dist/utils/deployment/full-deployment.js.map +1 -1
  471. package/dist/utils/deployment/index.js +5 -0
  472. package/dist/utils/deployment/index.js.map +1 -0
  473. package/dist/utils/deployment/task-wrapper.js +4 -0
  474. package/dist/utils/deployment/task-wrapper.js.map +1 -1
  475. package/dist/utils/deployment/test-deployment.js +15 -7
  476. package/dist/utils/deployment/test-deployment.js.map +1 -1
  477. package/dist/utils/index.js +10 -6
  478. package/dist/utils/index.js.map +1 -1
  479. package/dist/utils/logging/index.js +3 -0
  480. package/dist/utils/logging/index.js.map +1 -0
  481. package/dist/utils/logging/log.js +4 -0
  482. package/dist/utils/logging/log.js.map +1 -1
  483. package/dist/utils/logging/logger.js +13 -0
  484. package/dist/utils/logging/logger.js.map +1 -1
  485. package/dist/{server/lib → utils}/storage/file.js +17 -6
  486. package/dist/utils/storage/file.js.map +1 -0
  487. package/dist/{server/lib → utils}/storage/memory.js +15 -5
  488. package/dist/utils/storage/memory.js.map +1 -0
  489. package/package.json +16 -5
  490. package/dist/server/a2a-server.js +0 -237
  491. package/dist/server/a2a-server.js.map +0 -1
  492. package/dist/server/interfaces/params.js +0 -3
  493. package/dist/server/interfaces/params.js.map +0 -1
  494. package/dist/server/interfaces/server.js +0 -2
  495. package/dist/server/interfaces/server.js.map +0 -1
  496. package/dist/server/interfaces/store.js +0 -18
  497. package/dist/server/interfaces/store.js.map +0 -1
  498. package/dist/server/lib/express-server.js +0 -252
  499. package/dist/server/lib/express-server.js.map +0 -1
  500. package/dist/server/lib/json-middleware.js +0 -3
  501. package/dist/server/lib/json-middleware.js.map +0 -1
  502. package/dist/server/lib/middleware/a2a-methods.js +0 -140
  503. package/dist/server/lib/middleware/a2a-methods.js.map +0 -1
  504. package/dist/server/lib/middleware/factory.js +0 -59
  505. package/dist/server/lib/middleware/factory.js.map +0 -1
  506. package/dist/server/lib/state.js +0 -80
  507. package/dist/server/lib/state.js.map +0 -1
  508. package/dist/server/lib/storage/file.js.map +0 -1
  509. package/dist/server/lib/storage/memory.js.map +0 -1
  510. package/dist/server/lib/update/base.js.map +0 -1
  511. package/dist/services/a2a/repository.js +0 -160
  512. package/dist/services/a2a/repository.js.map +0 -1
  513. package/dist/services/manager.js +0 -61
  514. package/dist/services/manager.js.map +0 -1
  515. package/dist/services/mcp/index.js +0 -2
  516. package/dist/services/mcp/index.js.map +0 -1
  517. package/dist/services/mcp/service.js +0 -75
  518. package/dist/services/mcp/service.js.map +0 -1
  519. package/dist/transport/streaming/stream.js +0 -111
  520. package/dist/transport/streaming/stream.js.map +0 -1
  521. package/dist/types/client.js +0 -2
  522. package/dist/types/client.js.map +0 -1
  523. package/dist/types/express.js +0 -2
  524. package/dist/types/express.js.map +0 -1
  525. package/dist/types/extended-schema.js +0 -7
  526. package/dist/types/extended-schema.js.map +0 -1
  527. package/dist/types/proxy.js +0 -2
  528. package/dist/types/proxy.js.map +0 -1
  529. package/dist/types/schemas/a2a/auth/auth.js +0 -2
  530. package/dist/types/schemas/a2a/auth/auth.js.map +0 -1
  531. package/dist/types/schemas/a2a/auth/base.js +0 -2
  532. package/dist/types/schemas/a2a/auth/base.js.map +0 -1
  533. package/dist/types/schemas/a2a/auth/index.js +0 -4
  534. package/dist/types/schemas/a2a/auth/index.js.map +0 -1
  535. package/dist/types/schemas/a2a/auth/oauth.js +0 -2
  536. package/dist/types/schemas/a2a/auth/oauth.js.map +0 -1
  537. package/dist/types/schemas/a2a/ref.js +0 -25
  538. package/dist/types/schemas/a2a/ref.js.map +0 -1
  539. package/dist/types/server/a2a-server.d.ts +0 -145
  540. package/dist/types/server/a2a-server.d.ts.map +0 -1
  541. package/dist/types/server/interfaces/params.d.ts +0 -109
  542. package/dist/types/server/interfaces/params.d.ts.map +0 -1
  543. package/dist/types/server/interfaces/server.d.ts +0 -35
  544. package/dist/types/server/interfaces/server.d.ts.map +0 -1
  545. package/dist/types/server/interfaces/store.d.ts +0 -35
  546. package/dist/types/server/interfaces/store.d.ts.map +0 -1
  547. package/dist/types/server/lib/express-server.d.ts +0 -59
  548. package/dist/types/server/lib/express-server.d.ts.map +0 -1
  549. package/dist/types/server/lib/json-middleware.d.ts +0 -3
  550. package/dist/types/server/lib/json-middleware.d.ts.map +0 -1
  551. package/dist/types/server/lib/middleware/a2a-methods.d.ts +0 -7
  552. package/dist/types/server/lib/middleware/a2a-methods.d.ts.map +0 -1
  553. package/dist/types/server/lib/middleware/factory.d.ts +0 -12
  554. package/dist/types/server/lib/middleware/factory.d.ts.map +0 -1
  555. package/dist/types/server/lib/state.d.ts +0 -20
  556. package/dist/types/server/lib/state.d.ts.map +0 -1
  557. package/dist/types/server/lib/storage/file.d.ts.map +0 -1
  558. package/dist/types/server/lib/storage/memory.d.ts.map +0 -1
  559. package/dist/types/server/lib/update/base.d.ts +0 -21
  560. package/dist/types/server/lib/update/base.d.ts.map +0 -1
  561. package/dist/types/services/a2a/repository.d.ts +0 -77
  562. package/dist/types/services/a2a/repository.d.ts.map +0 -1
  563. package/dist/types/services/a2a/repository.js +0 -2
  564. package/dist/types/services/a2a/repository.js.map +0 -1
  565. package/dist/types/services/a2a/service.js +0 -2
  566. package/dist/types/services/a2a/service.js.map +0 -1
  567. package/dist/types/services/context.js +0 -29
  568. package/dist/types/services/context.js.map +0 -1
  569. package/dist/types/services/dispatcher.js +0 -33
  570. package/dist/types/services/dispatcher.js.map +0 -1
  571. package/dist/types/services/index.js +0 -9
  572. package/dist/types/services/index.js.map +0 -1
  573. package/dist/types/services/manager.d.ts +0 -44
  574. package/dist/types/services/manager.d.ts.map +0 -1
  575. package/dist/types/services/manager.js +0 -2
  576. package/dist/types/services/manager.js.map +0 -1
  577. package/dist/types/services/mcp/index.d.ts +0 -2
  578. package/dist/types/services/mcp/index.d.ts.map +0 -1
  579. package/dist/types/services/mcp/service.d.ts +0 -30
  580. package/dist/types/services/mcp/service.d.ts.map +0 -1
  581. package/dist/types/services/mcp/service.js +0 -8
  582. package/dist/types/services/mcp/service.js.map +0 -1
  583. package/dist/types/services/protocol.js.map +0 -1
  584. package/dist/types/services/service.js +0 -2
  585. package/dist/types/services/service.js.map +0 -1
  586. package/dist/types/transform.js.map +0 -1
  587. package/dist/types/transport/streaming/stream.d.ts +0 -42
  588. package/dist/types/transport/streaming/stream.d.ts.map +0 -1
  589. package/dist/types/types/client.d.ts.map +0 -1
  590. package/dist/types/types/express.d.ts +0 -66
  591. package/dist/types/types/express.d.ts.map +0 -1
  592. package/dist/types/types/extended-schema.d.ts +0 -174
  593. package/dist/types/types/extended-schema.d.ts.map +0 -1
  594. package/dist/types/types/proxy.d.ts.map +0 -1
  595. package/dist/types/types/schemas/a2a/auth/auth.d.ts +0 -80
  596. package/dist/types/types/schemas/a2a/auth/auth.d.ts.map +0 -1
  597. package/dist/types/types/schemas/a2a/auth/base.d.ts +0 -16
  598. package/dist/types/types/schemas/a2a/auth/base.d.ts.map +0 -1
  599. package/dist/types/types/schemas/a2a/auth/index.d.ts +0 -4
  600. package/dist/types/types/schemas/a2a/auth/index.d.ts.map +0 -1
  601. package/dist/types/types/schemas/a2a/auth/oauth.d.ts +0 -124
  602. package/dist/types/types/schemas/a2a/auth/oauth.d.ts.map +0 -1
  603. package/dist/types/types/schemas/a2a/ref.d.ts +0 -2057
  604. package/dist/types/types/schemas/a2a/ref.d.ts.map +0 -1
  605. package/dist/types/types/services/a2a/repository.d.ts +0 -85
  606. package/dist/types/types/services/a2a/repository.d.ts.map +0 -1
  607. package/dist/types/types/services/a2a/service.d.ts +0 -29
  608. package/dist/types/types/services/a2a/service.d.ts.map +0 -1
  609. package/dist/types/types/services/context.d.ts +0 -167
  610. package/dist/types/types/services/context.d.ts.map +0 -1
  611. package/dist/types/types/services/dispatcher.d.ts +0 -20
  612. package/dist/types/types/services/dispatcher.d.ts.map +0 -1
  613. package/dist/types/types/services/index.d.ts +0 -9
  614. package/dist/types/types/services/index.d.ts.map +0 -1
  615. package/dist/types/types/services/manager.d.ts +0 -42
  616. package/dist/types/types/services/manager.d.ts.map +0 -1
  617. package/dist/types/types/services/mcp/service.d.ts +0 -57
  618. package/dist/types/types/services/mcp/service.d.ts.map +0 -1
  619. package/dist/types/types/services/protocol.d.ts.map +0 -1
  620. package/dist/types/types/services/service.d.ts +0 -35
  621. package/dist/types/types/services/service.d.ts.map +0 -1
  622. package/dist/types/types/transform.d.ts.map +0 -1
@@ -1,45 +1,164 @@
1
+ /**
2
+ * Copyright 2025 The Artinet Project
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ */
5
+ import { z } from "zod/v4";
6
+ import { JSONRPCErrorSchema } from "./rpc.js";
1
7
  /**
2
8
  * @description Error code for JSON Parse Error (-32700). Invalid JSON was received by the server.
3
9
  */
4
10
  export const ErrorCodeParseError = -32700;
11
+ export const JSONParseErrorSchema = JSONRPCErrorSchema.extend({
12
+ code: z.literal(ErrorCodeParseError),
13
+ message: z
14
+ .string()
15
+ .describe("The error message.")
16
+ .default("Invalid JSON payload"),
17
+ }).describe("Represents a JSON-RPC error for a JSON parse error.");
5
18
  /**
6
19
  * @description Error code for Invalid Request (-32600). The JSON sent is not a valid Request object.
7
20
  */
8
21
  export const ErrorCodeInvalidRequest = -32600;
22
+ export const InvalidRequestErrorSchema = JSONRPCErrorSchema.extend({
23
+ code: z.literal(ErrorCodeInvalidRequest),
24
+ message: z
25
+ .string()
26
+ .describe("The error message.")
27
+ .default("Request payload validation error"),
28
+ }).describe("Represents a JSON-RPC error for an invalid request.");
9
29
  /**
10
30
  * @description Error code for Method Not Found (-32601). The method does not exist / is not available.
11
31
  */
12
32
  export const ErrorCodeMethodNotFound = -32601;
33
+ export const MethodNotFoundErrorSchema = JSONRPCErrorSchema.extend({
34
+ code: z.literal(ErrorCodeMethodNotFound),
35
+ message: z
36
+ .string()
37
+ .describe("The error message.")
38
+ .default("Method not found"),
39
+ }).describe("Represents a JSON-RPC error for a method not found.");
13
40
  /**
14
41
  * @description Error code for Invalid Params (-32602). Invalid method parameter(s).
15
42
  */
16
43
  export const ErrorCodeInvalidParams = -32602;
44
+ export const InvalidParamsErrorSchema = JSONRPCErrorSchema.extend({
45
+ code: z.literal(ErrorCodeInvalidParams),
46
+ message: z
47
+ .string()
48
+ .describe("The error message.")
49
+ .default("Invalid parameters"),
50
+ }).describe("Represents a JSON-RPC error for invalid parameters.");
17
51
  /**
18
52
  * @description Error code for Internal Error (-32603). Internal JSON-RPC error.
19
53
  */
20
54
  export const ErrorCodeInternalError = -32603;
55
+ export const InternalErrorSchema = JSONRPCErrorSchema.extend({
56
+ code: z.literal(ErrorCodeInternalError),
57
+ message: z.string().describe("The error message.").default("Internal error"),
58
+ }).describe("Represents a JSON-RPC error for an internal error.");
21
59
  /**
22
60
  * @description Error code for Task Not Found (-32001). The specified task was not found.
23
61
  */
24
62
  export const ErrorCodeTaskNotFound = -32001;
63
+ export const TaskNotFoundErrorSchema = JSONRPCErrorSchema.extend({
64
+ code: z.literal(ErrorCodeTaskNotFound),
65
+ message: z.string().describe("The error message.").default("Task not found"),
66
+ }).describe("Represents a JSON-RPC error for a task not found.");
25
67
  /**
26
68
  * @description Error code for Task Not Cancelable (-32002). The specified task cannot be canceled.
27
69
  */
28
70
  export const ErrorCodeTaskNotCancelable = -32002;
71
+ export const TaskNotCancelableErrorSchema = JSONRPCErrorSchema.extend({
72
+ code: z.literal(ErrorCodeTaskNotCancelable),
73
+ message: z
74
+ .string()
75
+ .describe("The error message.")
76
+ .default("Task cannot be canceled"),
77
+ }).describe("Represents a JSON-RPC error for a task not cancelable.");
29
78
  /**
30
79
  * @description Error code for Push Notification Not Supported (-32003). Push Notifications are not supported for this operation or agent.
31
80
  */
32
81
  export const ErrorCodePushNotificationNotSupported = -32003;
82
+ export const PushNotificationNotSupportedErrorSchema = JSONRPCErrorSchema.extend({
83
+ code: z.literal(ErrorCodePushNotificationNotSupported),
84
+ message: z
85
+ .string()
86
+ .describe("The error message.")
87
+ .default("Push Notifications is not supported"),
88
+ }).describe("Represents a JSON-RPC error for push notifications not supported.");
33
89
  /**
34
90
  * @description Error code for Unsupported Operation (-32004). The requested operation is not supported by the agent.
35
91
  */
36
92
  export const ErrorCodeUnsupportedOperation = -32004;
93
+ export const UnsupportedOperationErrorSchema = JSONRPCErrorSchema.extend({
94
+ code: z.literal(ErrorCodeUnsupportedOperation),
95
+ message: z
96
+ .string()
97
+ .describe("The error message.")
98
+ .default("This operation is not supported"),
99
+ }).describe("Represents a JSON-RPC error for an unsupported operation.");
37
100
  /**
38
101
  * @description Error code for Content Type Not Supported (-32005). The requested content type is not supported by the agent.
39
102
  */
40
103
  export const ErrorCodeContentTypeNotSupported = -32005;
104
+ export const ContentTypeNotSupportedErrorSchema = JSONRPCErrorSchema.extend({
105
+ code: z.literal(ErrorCodeContentTypeNotSupported),
106
+ message: z
107
+ .string()
108
+ .describe("The error message.")
109
+ .default("Incompatible content types"),
110
+ }).describe("Represents a JSON-RPC error for a content type not supported.");
41
111
  /**
42
112
  * @description Error code for Invalid Agent Response (-32006). The agent returned an invalid response for the current method.
43
113
  */
44
114
  export const ErrorCodeInvalidAgentResponse = -32006;
115
+ export const InvalidAgentResponseErrorSchema = JSONRPCErrorSchema.extend({
116
+ code: z.literal(ErrorCodeInvalidAgentResponse),
117
+ message: z
118
+ .string()
119
+ .describe("The error message.")
120
+ .default("Invalid agent response"),
121
+ }).describe("Represents a JSON-RPC error for an invalid agent response. This error is returned when the agent returns an invalid response for the current method.");
122
+ /**
123
+ * An A2A-specific error indicating that the agent does not have an Authenticated Extended Card configured
124
+ */
125
+ export const ErrorCodeAuthenticatedExtendedCardNotConfigured = -32007;
126
+ export const AuthenticatedExtendedCardNotConfiguredErrorSchema = JSONRPCErrorSchema.extend({
127
+ code: z.literal(ErrorCodeAuthenticatedExtendedCardNotConfigured),
128
+ message: z
129
+ .string()
130
+ .describe("The error message.")
131
+ .default("Authenticated Extended Card is not configured."),
132
+ }).describe("Represents a JSON-RPC error for an authenticated extended card not configured.");
133
+ /**
134
+ * Union of all well-known A2A and standard JSON-RPC error codes defined in this schema.
135
+ */
136
+ export const KnownErrorCodeSchema = z.union([
137
+ z.literal(ErrorCodeParseError),
138
+ z.literal(ErrorCodeInvalidRequest),
139
+ z.literal(ErrorCodeMethodNotFound),
140
+ z.literal(ErrorCodeInvalidParams),
141
+ z.literal(ErrorCodeInternalError),
142
+ z.literal(ErrorCodeTaskNotFound),
143
+ z.literal(ErrorCodeTaskNotCancelable),
144
+ z.literal(ErrorCodePushNotificationNotSupported),
145
+ z.literal(ErrorCodeUnsupportedOperation),
146
+ z.literal(ErrorCodeContentTypeNotSupported),
147
+ z.literal(ErrorCodeInvalidAgentResponse),
148
+ z.literal(ErrorCodeAuthenticatedExtendedCardNotConfigured),
149
+ ]);
150
+ export const A2AErrorSchema = z.union([
151
+ JSONParseErrorSchema,
152
+ InvalidRequestErrorSchema,
153
+ MethodNotFoundErrorSchema,
154
+ InvalidParamsErrorSchema,
155
+ InternalErrorSchema,
156
+ TaskNotFoundErrorSchema,
157
+ TaskNotCancelableErrorSchema,
158
+ PushNotificationNotSupportedErrorSchema,
159
+ UnsupportedOperationErrorSchema,
160
+ ContentTypeNotSupportedErrorSchema,
161
+ InvalidAgentResponseErrorSchema,
162
+ AuthenticatedExtendedCardNotConfiguredErrorSchema,
163
+ ]);
45
164
  //# sourceMappingURL=error.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"error.js","sourceRoot":"","sources":["../../../../src/types/schemas/a2a/error.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,KAAK,CAAC;AAQ1C;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,KAAK,CAAC;AAQ9C;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,KAAK,CAAC;AAQ9C;;GAEG;AACH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C,QAAQ,CACT,gFAAgF,CACjF,CAAC;AAKJ;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC;IAC1C,CAAC,CAAC,OAAO,CAAC,mBAAmB,CAAC;IAC9B,CAAC,CAAC,OAAO,CAAC,uBAAuB,CAAC;IAClC,CAAC,CAAC,OAAO,CAAC,uBAAuB,CAAC;IAClC,CAAC,CAAC,OAAO,CAAC,sBAAsB,CAAC;IACjC,CAAC,CAAC,OAAO,CAAC,sBAAsB,CAAC;IACjC,CAAC,CAAC,OAAO,CAAC,qBAAqB,CAAC;IAChC,CAAC,CAAC,OAAO,CAAC,0BAA0B,CAAC;IACrC,CAAC,CAAC,OAAO,CAAC,qCAAqC,CAAC;IAChD,CAAC,CAAC,OAAO,CAAC,6BAA6B,CAAC;IACxC,CAAC,CAAC,OAAO,CAAC,gCAAgC,CAAC;IAC3C,CAAC,CAAC,OAAO,CAAC,6BAA6B,CAAC;IACxC,CAAC,CAAC,OAAO,CAAC,+CAA+C,CAAC;CAC3D,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC;IACpC,oBAAoB;IACpB,yBAAyB;IACzB,yBAAyB;IACzB,wBAAwB;IACxB,mBAAmB;IACnB,uBAAuB;IACvB,4BAA4B;IAC5B,uCAAuC;IACvC,+BAA+B;IAC/B,kCAAkC;IAClC,+BAA+B;IAC/B,iDAAiD;CAClD,CAAC,CAAC"}
@@ -1,8 +1,12 @@
1
- export * from "./task.js";
1
+ export * from "./kind.js";
2
+ export * from "./auth.js";
3
+ export * from "./error.js";
2
4
  export * from "./message.js";
3
- export * from "./parameters.js";
4
5
  export * from "./notification.js";
5
- export * from "./auth/index.js";
6
+ export * from "./parameters.js";
6
7
  export * from "./rpc.js";
7
- export * from "./error.js";
8
+ export * from "./task.js";
9
+ export * from "./agent.js";
10
+ export * from "./protocol.js";
11
+ export * from "./transport.js";
8
12
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/schemas/a2a/index.ts"],"names":[],"mappings":"AAuOA,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AA2CzB,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/schemas/a2a/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Copyright 2025 The Artinet Project
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ */
5
+ import { z } from "zod/v4";
6
+ /**
7
+ * @description Represents the type of event that occurred in the context of a task.
8
+ */
9
+ export const KindSchema = z
10
+ .enum([
11
+ "artifact-update",
12
+ "data",
13
+ "file",
14
+ "message",
15
+ "status-update",
16
+ "task",
17
+ "text",
18
+ ])
19
+ .describe("Represents the type of event that occurred in the context of a task.");
20
+ export const Kind = KindSchema.enum;
21
+ //# sourceMappingURL=kind.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kind.js","sourceRoot":"","sources":["../../../../src/types/schemas/a2a/kind.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC;KACxB,IAAI,CAAC;IACJ,iBAAiB;IACjB,MAAM;IACN,MAAM;IACN,SAAS;IACT,eAAe;IACf,MAAM;IACN,MAAM;CACP,CAAC;KACD,QAAQ,CACP,sEAAsE,CACvE,CAAC;AACJ,MAAM,CAAC,MAAM,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC"}
@@ -1,2 +1,131 @@
1
- export {};
1
+ /**
2
+ * Copyright 2025 The Artinet Project
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ */
5
+ import { z } from "zod/v4";
6
+ import { PushNotificationConfigSchema } from "./notification.js";
7
+ import { MessageSchema } from "./parameters.js";
8
+ import { TaskArtifactUpdateEventSchema, TaskSchema, TaskStatusUpdateEventSchema, } from "./task.js";
9
+ import { JSONRPCErrorResponseSchema, JSONRPCRequestSchema, JSONRPCSuccessResponseSchema, } from "./rpc.js";
10
+ /**
11
+ * @description Defines configuration options for a `message/send` or `message/stream` request.
12
+ */
13
+ export const MessageSendConfigurationSchema = z
14
+ .object({
15
+ /**
16
+ * @optional A list of output MIME types the client is prepared to accept in the response.
17
+ */
18
+ acceptedOutputModes: z
19
+ .array(z.string())
20
+ .optional()
21
+ .describe("A list of output MIME types the client is prepared to accept in the response."),
22
+ /**
23
+ * @optional The number of most recent messages from the task's history to retrieve in the response.
24
+ */
25
+ historyLength: z
26
+ .number()
27
+ .optional()
28
+ .describe("The number of most recent messages from the task's history to retrieve in the response."),
29
+ /**
30
+ * @optional Configuration for the agent to send push notifications for updates after the initial response.
31
+ */
32
+ pushNotificationConfig: PushNotificationConfigSchema.optional().describe("Configuration for the agent to send push notifications for updates after the initial response."),
33
+ /**
34
+ * @optional If true, the client will wait for the task to complete. The server may reject this if the task is long-running.
35
+ */
36
+ blocking: z
37
+ .boolean()
38
+ .optional()
39
+ .describe("If true, the client will wait for the task to complete. The server may reject this if the task is long-running."),
40
+ })
41
+ .describe("Defines configuration options for a `message/send` or `message/stream` request.");
42
+ /**
43
+ * @description Defines the parameters for a request to send a message to an agent. This can be used
44
+ * to create a new task, continue an existing one, or restart a task.
45
+ */
46
+ export const MessageSendParamsSchema = z
47
+ .object({
48
+ /**
49
+ * @required The message object being sent to the agent.
50
+ */
51
+ message: MessageSchema.describe("The message object being sent to the agent."),
52
+ /**
53
+ * @optional Configuration options for the message send request.
54
+ */
55
+ configuration: MessageSendConfigurationSchema.optional().describe("Configuration options for the message send request."),
56
+ /**
57
+ * @optional Additional metadata to be included with the message.
58
+ */
59
+ metadata: z
60
+ .record(z.string(), z.unknown())
61
+ .optional()
62
+ .describe("Additional metadata to be included with the message."),
63
+ })
64
+ .describe("Defines the parameters for a request to send a message to an agent. This can be used to create a new task, continue an existing one, or restart a task.");
65
+ /**
66
+ * @description Represents a JSON-RPC request for the `message/send` method.
67
+ */
68
+ export const SendMessageRequestSchema = JSONRPCRequestSchema.extend({
69
+ method: z.literal("message/send"),
70
+ params: MessageSendParamsSchema.describe("Defines the parameters for a request to send a message to an agent. This can be used to create a new task, continue an existing one, or restart a task."),
71
+ }).describe("Represents a JSON-RPC request for the `message/send` method.");
72
+ /**
73
+ * @description The result of a message send request, which can be a Message or the initial Task object.
74
+ */
75
+ export const SendMessageSuccessResultSchema = z
76
+ .union([MessageSchema, TaskSchema])
77
+ .describe("The result of a message send request, which can be a Message or the initial Task object.");
78
+ /**
79
+ * @description JSON-RPC success response model for the 'message/send' method.
80
+ */
81
+ export const SendMessageSuccessResponseSchema = JSONRPCSuccessResponseSchema.extend({
82
+ /**
83
+ * @required The result of the request, which can be a direct reply Message or the initial Task object.
84
+ */
85
+ result: SendMessageSuccessResultSchema.describe("The result of the request, which can be a direct reply Message or the initial Task object."),
86
+ }).describe("JSON-RPC success response model for the 'message/send' method.");
87
+ /**
88
+ * @description JSON-RPC response model for the 'message/send' method.
89
+ */
90
+ export const SendMessageResponseSchema = z.union([
91
+ SendMessageSuccessResponseSchema,
92
+ JSONRPCErrorResponseSchema,
93
+ ]);
94
+ /**
95
+ * @description Request to send a message/initiate a task and subscribe to streaming updates.
96
+ */
97
+ export const SendStreamingMessageRequestSchema = JSONRPCRequestSchema.extend({
98
+ method: z.literal("message/stream"),
99
+ params: MessageSendParamsSchema.describe("Defines the parameters for a request to send a message to an agent. This can be used to create a new task, continue an existing one, or restart a task."),
100
+ }).describe("Request to send a message/initiate a task and subscribe to streaming updates.");
101
+ /**
102
+ * @description The result of a streaming message request, which can be a Message, Task, or a streaming update/artifact event.
103
+ */
104
+ export const SendStreamingMessageSuccessResultSchema = z
105
+ .union([
106
+ MessageSchema,
107
+ TaskSchema,
108
+ TaskStatusUpdateEventSchema,
109
+ TaskArtifactUpdateEventSchema,
110
+ ])
111
+ .describe("The result of a streaming message request, which can be a Message, Task, or a streaming update/artifact event.");
112
+ /**
113
+ * @description Represents a successful JSON-RPC response for the `message/stream` method.
114
+ * The server may send multiple response objects for a single request.
115
+ */
116
+ export const SendStreamingMessageSuccessResponseSchema = JSONRPCSuccessResponseSchema.extend({
117
+ /**
118
+ * @required The result, which can be a Message, Task, or a streaming update event.
119
+ */
120
+ result: SendStreamingMessageSuccessResultSchema.describe("The result of a streaming message request, which can be a Message, Task, or a streaming update/artifact event."),
121
+ }).describe("Represents a successful JSON-RPC response for the `message/stream` method. The server may send multiple response objects for a single request.");
122
+ /**
123
+ * @description Response to a streaming task operation, either through `message/stream` or a subscription.
124
+ */
125
+ export const SendStreamingMessageResponseSchema = z
126
+ .union([
127
+ SendStreamingMessageSuccessResponseSchema,
128
+ JSONRPCErrorResponseSchema,
129
+ ])
130
+ .describe("Response to a streaming task operation, either through `message/stream` or a subscription.");
2
131
  //# sourceMappingURL=message.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"message.js","sourceRoot":"","sources":["../../../../src/types/schemas/a2a/message.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"message.js","sourceRoot":"","sources":["../../../../src/types/schemas/a2a/message.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,4BAA4B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AAC,MAAM,CAAC;IAClC;;OAEG;IACH,MAAM,EAAE,uCAAuC,CAAC,QAAQ,CACtD,gHAAgH,CACjH;CACF,CAAC,CAAC,QAAQ,CACT,gJAAgJ,CACjJ,CAAC;AAKJ;;GAEG;AACH,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAC;KAChD,KAAK,CAAC;IACL,yCAAyC;IACzC,0BAA0B;CAC3B,CAAC;KACD,QAAQ,CACP,4FAA4F,CAC7F,CAAC"}
@@ -1,2 +1,203 @@
1
- export {};
1
+ /**
2
+ * Copyright 2025 The Artinet Project
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ */
5
+ import { z } from "zod/v4";
6
+ import { JSONRPCErrorResponseSchema, JSONRPCRequestSchema, JSONRPCSuccessResponseSchema, } from "./rpc.js";
7
+ import { TaskIdParamsSchema } from "./task.js";
8
+ /**
9
+ * Defines parameters for fetching a specific push notification configuration for a task.
10
+ */
11
+ export const GetTaskPushNotificationConfigParamSchema = TaskIdParamsSchema.extend({
12
+ /**
13
+ * @optional The ID of the push notification configuration to retrieve.
14
+ */
15
+ pushNotificationConfigId: z.string().optional(),
16
+ });
17
+ export const GetTaskPushNotificationConfigParamsSchema = z.union([
18
+ GetTaskPushNotificationConfigParamSchema,
19
+ TaskIdParamsSchema,
20
+ ]);
21
+ /**
22
+ * Defines parameters for listing all push notification configurations for a task.
23
+ */
24
+ export const ListTaskPushNotificationConfigsParamsSchema = TaskIdParamsSchema.extend({});
25
+ /**
26
+ * Defines parameters for deleting a specific push notification configuration for a task.
27
+ */
28
+ export const DeleteTaskPushNotificationConfigParamsSchema = TaskIdParamsSchema.extend({
29
+ /**
30
+ * @required The ID of the push notification configuration to delete.
31
+ */
32
+ pushNotificationConfigId: z.string(),
33
+ });
34
+ /**
35
+ * @description Defines authentication details for a push notification endpoint.
36
+ */
37
+ export const PushNotificationAuthenticationInfoSchema = z
38
+ .object({
39
+ /**
40
+ * @required A list of supported authentication schemes (e.g., 'Basic', 'Bearer').
41
+ */
42
+ schemes: z
43
+ .array(z.string())
44
+ .describe("The authentication schemes supported by the endpoint."),
45
+ /**
46
+ * @optional Optional credentials required by the push notification endpoint.
47
+ */
48
+ credentials: z.string().optional(),
49
+ })
50
+ .describe("Defines authentication details for a push notification endpoint.");
51
+ /**
52
+ * @description Defines the configuration for setting up push notifications for task updates.
53
+ */
54
+ export const PushNotificationConfigSchema = z
55
+ .object({
56
+ /**
57
+ * @optional A unique ID for the push notification configuration, created by the server
58
+ * to support multiple notification callbacks.
59
+ */
60
+ id: z
61
+ .string()
62
+ .optional()
63
+ .describe("A unique ID for the push notification configuration, created by the server to support multiple notification callbacks."),
64
+ /**
65
+ * @required The callback URL where the agent should send push notifications.
66
+ */
67
+ url: z
68
+ .url()
69
+ .describe("The callback URL where the agent should send push notifications."),
70
+ /**
71
+ * @optional A unique token for this task or session to validate incoming push notifications.
72
+ */
73
+ token: z
74
+ .string()
75
+ .optional()
76
+ .describe("A unique token for this task or session to validate incoming push notifications."),
77
+ /**
78
+ * @optional Authentication details for the agent to use when calling the notification URL.
79
+ */
80
+ authentication: PushNotificationAuthenticationInfoSchema.optional().describe("Authentication details for the agent to use when calling the notification URL."),
81
+ })
82
+ .describe("Defines the configuration for setting up push notifications for task updates.");
83
+ /**
84
+ * @description A container associating a push notification configuration with a specific task.
85
+ */
86
+ export const TaskPushNotificationConfigSchema = z
87
+ .object({
88
+ /**
89
+ * @required The ID of the task to associate with the push notification configuration.
90
+ */
91
+ taskId: z
92
+ .string()
93
+ .describe("The ID of the task to associate with the push notification configuration."),
94
+ /**
95
+ * @required The push notification configuration to associate with the task.
96
+ */
97
+ pushNotificationConfig: PushNotificationConfigSchema.describe("The push notification configuration to associate with the task."),
98
+ })
99
+ .describe("A container associating a push notification configuration with a specific task.");
100
+ /**
101
+ * @description Request to set or update the push notification config for a task.
102
+ */
103
+ export const SetTaskPushNotificationConfigRequestSchema = JSONRPCRequestSchema.extend({
104
+ method: z.literal("tasks/pushNotificationConfig/set"),
105
+ params: TaskPushNotificationConfigSchema.describe("Defines the parameters for a request to set or update the push notification config for a task."),
106
+ }).describe("Represents a JSON-RPC request for the `tasks/pushNotificationConfig/set` method.");
107
+ /**
108
+ * @description JSON-RPC success response model for the 'tasks/pushNotificationConfig/set' method.
109
+ */
110
+ export const SetTaskPushNotificationConfigSuccessResponseSchema = JSONRPCSuccessResponseSchema.extend({
111
+ /**
112
+ * @required The result of the request, which can be a direct reply Message or the initial Task object.
113
+ */
114
+ result: TaskPushNotificationConfigSchema.describe("The result of the request, which can be a direct reply Message or the initial Task object."),
115
+ }).describe("JSON-RPC success response model for the 'tasks/pushNotificationConfig/set' method.");
116
+ /**
117
+ * @description Response to a `tasks/pushNotificationConfig/set` request.
118
+ */
119
+ export const SetTaskPushNotificationConfigResponseSchema = z
120
+ .union([
121
+ SetTaskPushNotificationConfigSuccessResponseSchema,
122
+ JSONRPCErrorResponseSchema,
123
+ ])
124
+ .describe("Response to a `tasks/pushNotificationConfig/set` request.");
125
+ /**
126
+ * @description Request to retrieve the currently configured push notification configuration for a task.
127
+ */
128
+ export const GetTaskPushNotificationConfigRequestSchema = JSONRPCRequestSchema.extend({
129
+ method: z.literal("tasks/pushNotificationConfig/get"),
130
+ params: GetTaskPushNotificationConfigParamsSchema.describe("Defines the parameters for a request to retrieve the currently configured push notification configuration for a task."),
131
+ }).describe("Represents a JSON-RPC request for the `tasks/pushNotificationConfig/get` method.");
132
+ /**
133
+ * @description JSON-RPC success response model for the 'tasks/pushNotificationConfig/get' method.
134
+ */
135
+ export const GetTaskPushNotificationConfigSuccessResponseSchema = JSONRPCSuccessResponseSchema.extend({
136
+ /**
137
+ * @required The result, containing the requested push notification configuration.
138
+ */
139
+ result: TaskPushNotificationConfigSchema.describe("The result, containing the requested push notification configuration."),
140
+ }).describe("JSON-RPC success response model for the 'tasks/pushNotificationConfig/get' method.");
141
+ /**
142
+ * @description Response to a `tasks/pushNotificationConfig/get` request.
143
+ */
144
+ export const GetTaskPushNotificationConfigResponseSchema = z
145
+ .union([
146
+ GetTaskPushNotificationConfigSuccessResponseSchema,
147
+ JSONRPCErrorResponseSchema,
148
+ ])
149
+ .describe("Response to a `tasks/pushNotificationConfig/get` request.");
150
+ /**
151
+ * @description Request to list all push notification configurations for a task.
152
+ */
153
+ export const ListTaskPushNotificationConfigRequestSchema = JSONRPCRequestSchema.extend({
154
+ method: z.literal("tasks/pushNotificationConfig/list"),
155
+ params: ListTaskPushNotificationConfigsParamsSchema.describe("Defines the parameters for a request to list all push notification configurations for a task."),
156
+ }).describe("Represents a JSON-RPC request for the `tasks/pushNotificationConfig/list` method.");
157
+ export const ListTaskPushNotificationConfigResultSchema = z
158
+ .array(TaskPushNotificationConfigSchema)
159
+ .describe("The list of push notification configurations.");
160
+ /**
161
+ * @description JSON-RPC success response model for the 'tasks/pushNotificationConfig/list' method.
162
+ */
163
+ export const ListTaskPushNotificationConfigSuccessResponseSchema = JSONRPCSuccessResponseSchema.extend({
164
+ /**
165
+ * @required The result, containing the list of push notification configurations.
166
+ */
167
+ result: ListTaskPushNotificationConfigResultSchema.describe("The result, containing the list of push notification configurations."),
168
+ }).describe("JSON-RPC success response model for the 'tasks/pushNotificationConfig/list' method.");
169
+ /**
170
+ * @description Response to a `tasks/pushNotificationConfig/list` request.
171
+ */
172
+ export const ListTaskPushNotificationConfigResponseSchema = z
173
+ .union([
174
+ ListTaskPushNotificationConfigSuccessResponseSchema,
175
+ JSONRPCErrorResponseSchema,
176
+ ])
177
+ .describe("Response to a `tasks/pushNotificationConfig/list` request.");
178
+ /**
179
+ * @description Request to delete a specific push notification configuration for a task.
180
+ */
181
+ export const DeleteTaskPushNotificationConfigRequestSchema = JSONRPCRequestSchema.extend({
182
+ method: z.literal("tasks/pushNotificationConfig/delete"),
183
+ params: DeleteTaskPushNotificationConfigParamsSchema.describe("Defines the parameters for a request to delete a specific push notification configuration for a task."),
184
+ }).describe("Represents a JSON-RPC request for the `tasks/pushNotificationConfig/delete` method.");
185
+ /**
186
+ * @description JSON-RPC success response model for the 'tasks/pushNotificationConfig/delete' method.
187
+ */
188
+ export const DeleteTaskPushNotificationConfigSuccessResponseSchema = JSONRPCSuccessResponseSchema.extend({
189
+ /**
190
+ * @required The result is null on successful deletion.
191
+ */
192
+ result: z.null().describe("The result is null on successful deletion."),
193
+ }).describe("JSON-RPC success response model for the 'tasks/pushNotificationConfig/delete' method.");
194
+ /**
195
+ * @description Response to a `tasks/pushNotificationConfig/delete` request.
196
+ */
197
+ export const DeleteTaskPushNotificationConfigResponseSchema = z
198
+ .union([
199
+ DeleteTaskPushNotificationConfigSuccessResponseSchema,
200
+ JSONRPCErrorResponseSchema,
201
+ ])
202
+ .describe("Response to a `tasks/pushNotificationConfig/delete` request.");
2
203
  //# sourceMappingURL=notification.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"notification.js","sourceRoot":"","sources":["../../../../src/types/schemas/a2a/notification.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"notification.js","sourceRoot":"","sources":["../../../../src/types/schemas/a2a/notification.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EACL,0BAA0B,EAC1B,oBAAoB,EACpB,4BAA4B,GAC7B,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAE/C;;GAEG;AACH,MAAM,CAAC,MAAM,wCAAwC,GACnD,kBAAkB,CAAC,MAAM,CAAC;IACxB;;OAEG;IACH,wBAAwB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChD,CAAC,CAAC;AAML,MAAM,CAAC,MAAM,yCAAyC,GAAG,CAAC,CAAC,KAAK,CAAC;IAC/D,wCAAwC;IACxC,kBAAkB;CACnB,CAAC,CAAC;AAKH;;GAEG;AACH,MAAM,CAAC,MAAM,2CAA2C,GACtD,kBAAkB,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAMhC;;GAE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