@artinet/sdk 0.5.5 → 0.5.7

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