@artinet/sdk 0.5.6 → 0.5.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (460) hide show
  1. package/README.md +82 -207
  2. package/dist/client/a2a-client.d.ts.map +1 -0
  3. package/dist/client/index.d.ts.map +1 -0
  4. package/dist/index.d.ts +7 -0
  5. package/dist/index.d.ts.map +1 -0
  6. package/dist/server/express/errors.d.ts.map +1 -0
  7. package/dist/server/express/index.d.ts.map +1 -0
  8. package/dist/server/express/middeware.d.ts.map +1 -0
  9. package/dist/{types/server → server}/express/server.d.ts +8 -8
  10. package/dist/server/express/server.d.ts.map +1 -0
  11. package/dist/server/index.d.ts.map +1 -0
  12. package/dist/{types/services → services}/a2a/factory/builder.d.ts +8 -8
  13. package/dist/services/a2a/factory/builder.d.ts.map +1 -0
  14. package/dist/services/a2a/factory/builder.js +6 -6
  15. package/dist/services/a2a/factory/builder.js.map +1 -1
  16. package/dist/{types/services → services}/a2a/factory/context.d.ts +1 -1
  17. package/dist/services/a2a/factory/context.d.ts.map +1 -0
  18. package/dist/{types/services → services}/a2a/factory/event.d.ts +1 -1
  19. package/dist/services/a2a/factory/event.d.ts.map +1 -0
  20. package/dist/services/a2a/factory/event.js +2 -2
  21. package/dist/services/a2a/factory/event.js.map +1 -1
  22. package/dist/services/a2a/factory/index.d.ts.map +1 -0
  23. package/dist/services/a2a/factory/method.d.ts.map +1 -0
  24. package/dist/services/a2a/factory/service.d.ts.map +1 -0
  25. package/dist/services/a2a/helpers/index.d.ts.map +1 -0
  26. package/dist/services/a2a/helpers/part.d.ts.map +1 -0
  27. package/dist/services/a2a/index.d.ts.map +1 -0
  28. package/dist/services/a2a/managers/cancellation.d.ts.map +1 -0
  29. package/dist/services/a2a/managers/connection.d.ts.map +1 -0
  30. package/dist/services/a2a/managers/context.d.ts.map +1 -0
  31. package/dist/services/a2a/managers/index.d.ts.map +1 -0
  32. package/dist/services/a2a/managers/task.d.ts.map +1 -0
  33. package/dist/services/a2a/methods/cancel-task.d.ts.map +1 -0
  34. package/dist/{types/services → services}/a2a/methods/get-task.d.ts +19 -19
  35. package/dist/services/a2a/methods/get-task.d.ts.map +1 -0
  36. package/dist/services/a2a/methods/index.d.ts.map +1 -0
  37. package/dist/services/a2a/methods/resubscribe-task.d.ts.map +1 -0
  38. package/dist/services/a2a/methods/send-message.d.ts.map +1 -0
  39. package/dist/services/a2a/methods/stream-message.d.ts.map +1 -0
  40. package/dist/services/a2a/methods/stream-message.js +0 -17
  41. package/dist/services/a2a/methods/stream-message.js.map +1 -1
  42. package/dist/{types/services → services}/a2a/service.d.ts +63 -64
  43. package/dist/services/a2a/service.d.ts.map +1 -0
  44. package/dist/services/a2a/service.js +2 -5
  45. package/dist/services/a2a/service.js.map +1 -1
  46. package/dist/services/a2a/state/index.d.ts.map +1 -0
  47. package/dist/services/a2a/state/load.d.ts.map +1 -0
  48. package/dist/services/a2a/state/process.d.ts.map +1 -0
  49. package/dist/services/a2a/state/update/artifact.d.ts.map +1 -0
  50. package/dist/services/a2a/state/update/index.d.ts.map +1 -0
  51. package/dist/services/a2a/state/update/update.d.ts.map +1 -0
  52. package/dist/services/core/execution/execute.d.ts.map +1 -0
  53. package/dist/services/core/execution/index.d.ts.map +1 -0
  54. package/dist/services/core/index.d.ts.map +1 -0
  55. package/dist/services/core/managers/command.d.ts.map +1 -0
  56. package/dist/services/core/managers/event.d.ts.map +1 -0
  57. package/dist/services/core/managers/index.d.ts.map +1 -0
  58. package/dist/services/core/managers/stream.d.ts.map +1 -0
  59. package/dist/services/index.d.ts +4 -0
  60. package/dist/services/index.d.ts.map +1 -0
  61. package/dist/services/index.js +1 -0
  62. package/dist/services/index.js.map +1 -1
  63. package/dist/services/mcp/index.d.ts +2 -0
  64. package/dist/services/mcp/index.d.ts.map +1 -0
  65. package/dist/services/mcp/index.js +2 -0
  66. package/dist/services/mcp/index.js.map +1 -0
  67. package/dist/services/mcp/service.d.ts +31 -0
  68. package/dist/services/mcp/service.d.ts.map +1 -0
  69. package/dist/services/mcp/service.js +123 -0
  70. package/dist/services/mcp/service.js.map +1 -0
  71. package/dist/transport/index.d.ts.map +1 -0
  72. package/dist/transport/rpc/parser.d.ts.map +1 -0
  73. package/dist/transport/rpc/rpc-client.d.ts.map +1 -0
  74. package/dist/transport/streaming/event-stream.d.ts.map +1 -0
  75. package/dist/transport/trpc/a2a/factory/index.d.ts.map +1 -0
  76. package/dist/{types/transport → transport}/trpc/a2a/factory/router.d.ts +398 -398
  77. package/dist/{types/transport → transport}/trpc/a2a/factory/router.d.ts.map +1 -1
  78. package/dist/transport/trpc/a2a/index.d.ts.map +1 -0
  79. package/dist/transport/trpc/a2a/routes/index.d.ts.map +1 -0
  80. package/dist/{types/transport → transport}/trpc/a2a/routes/info.d.ts +15 -15
  81. package/dist/transport/trpc/a2a/routes/info.d.ts.map +1 -0
  82. package/dist/transport/trpc/a2a/routes/message/index.d.ts.map +1 -0
  83. package/dist/{types/transport → transport}/trpc/a2a/routes/message/route.d.ts +85 -85
  84. package/dist/{types/transport → transport}/trpc/a2a/routes/message/route.d.ts.map +1 -1
  85. package/dist/transport/trpc/a2a/routes/tasks/index.d.ts.map +1 -0
  86. package/dist/{types/transport → transport}/trpc/a2a/routes/tasks/route.d.ts +92 -92
  87. package/dist/{types/transport → transport}/trpc/a2a/routes/tasks/route.d.ts.map +1 -1
  88. package/dist/transport/trpc/a2a/routes/tasks/route.js +1 -1
  89. package/dist/transport/trpc/a2a/routes/tasks/route.js.map +1 -1
  90. package/dist/{types/transport → transport}/trpc/a2a/trpc.d.ts +35 -35
  91. package/dist/transport/trpc/a2a/trpc.d.ts.map +1 -0
  92. package/dist/transport/trpc/index.d.ts.map +1 -0
  93. package/dist/types/ext.d.ts.map +1 -0
  94. package/dist/types/index.d.ts +3 -5
  95. package/dist/types/index.d.ts.map +1 -1
  96. package/dist/types/interfaces/client.d.ts.map +1 -0
  97. package/dist/types/interfaces/index.d.ts.map +1 -0
  98. package/dist/types/{types/interfaces → interfaces}/services/a2a/builder.d.ts +4 -0
  99. package/dist/types/interfaces/services/a2a/builder.d.ts.map +1 -0
  100. package/dist/types/interfaces/services/a2a/builder.js +4 -0
  101. package/dist/types/interfaces/services/a2a/builder.js.map +1 -1
  102. package/dist/types/{types/interfaces → interfaces}/services/a2a/context.d.ts +1 -1
  103. package/dist/types/interfaces/services/a2a/context.d.ts.map +1 -0
  104. package/dist/types/interfaces/services/a2a/engine.d.ts.map +1 -0
  105. package/dist/types/interfaces/services/a2a/index.d.ts.map +1 -0
  106. package/dist/types/{types/interfaces → interfaces}/services/a2a/legacy.d.ts +1 -0
  107. package/dist/types/interfaces/services/a2a/legacy.d.ts.map +1 -0
  108. package/dist/types/{types/interfaces → interfaces}/services/a2a/service.d.ts +4 -4
  109. package/dist/types/interfaces/services/a2a/service.d.ts.map +1 -0
  110. package/dist/types/interfaces/services/core/context/command.d.ts.map +1 -0
  111. package/dist/types/{types/interfaces → interfaces}/services/core/context/context.d.ts +1 -1
  112. package/dist/types/interfaces/services/core/context/context.d.ts.map +1 -0
  113. package/dist/types/interfaces/services/core/context/index.d.ts.map +1 -0
  114. package/dist/types/interfaces/services/core/context/types.d.ts.map +1 -0
  115. package/dist/types/{types/interfaces → interfaces}/services/core/execution/engine.d.ts +1 -1
  116. package/dist/types/interfaces/services/core/execution/engine.d.ts.map +1 -0
  117. package/dist/types/interfaces/services/core/execution/environment.d.ts.map +1 -0
  118. package/dist/types/interfaces/services/core/execution/execute.d.ts.map +1 -0
  119. package/dist/types/interfaces/services/core/execution/index.d.ts.map +1 -0
  120. package/dist/types/interfaces/services/core/index.d.ts.map +1 -0
  121. package/dist/types/interfaces/services/core/managers/cancellation.d.ts.map +1 -0
  122. package/dist/types/interfaces/services/core/managers/connection.d.ts.map +1 -0
  123. package/dist/types/interfaces/services/core/managers/context.d.ts.map +1 -0
  124. package/dist/types/{types/interfaces → interfaces}/services/core/managers/event.d.ts +1 -1
  125. package/dist/types/interfaces/services/core/managers/event.d.ts.map +1 -0
  126. package/dist/types/interfaces/services/core/managers/index.d.ts.map +1 -0
  127. package/dist/types/{types/interfaces → interfaces}/services/core/managers/stream.d.ts +1 -1
  128. package/dist/types/interfaces/services/core/managers/stream.d.ts.map +1 -0
  129. package/dist/types/interfaces/services/core/managers/task.d.ts.map +1 -0
  130. package/dist/types/{types/interfaces → interfaces}/services/core/service.d.ts +1 -1
  131. package/dist/types/interfaces/services/core/service.d.ts.map +1 -0
  132. package/dist/types/{types/interfaces → interfaces}/services/index.d.ts +1 -0
  133. package/dist/types/interfaces/services/index.d.ts.map +1 -0
  134. package/dist/types/interfaces/services/index.js +1 -0
  135. package/dist/types/interfaces/services/index.js.map +1 -1
  136. package/dist/types/interfaces/services/mcp/index.d.ts +2 -0
  137. package/dist/types/interfaces/services/mcp/index.d.ts.map +1 -0
  138. package/dist/types/interfaces/services/mcp/index.js +2 -0
  139. package/dist/types/interfaces/services/mcp/index.js.map +1 -0
  140. package/dist/types/interfaces/services/mcp/service.d.ts +50 -0
  141. package/dist/types/interfaces/services/mcp/service.d.ts.map +1 -0
  142. package/dist/types/{schemas/deployment/proxy.js → interfaces/services/mcp/service.js} +1 -1
  143. package/dist/types/interfaces/services/mcp/service.js.map +1 -0
  144. package/dist/types/interfaces/services/protocol.d.ts.map +1 -0
  145. package/dist/types/interfaces/storage.d.ts.map +1 -0
  146. package/dist/types/schemas/a2a/agent.d.ts +2584 -0
  147. package/dist/types/schemas/a2a/agent.d.ts.map +1 -0
  148. package/dist/types/schemas/a2a/agent.js +9 -3
  149. package/dist/types/schemas/a2a/agent.js.map +1 -1
  150. package/dist/types/schemas/a2a/auth.d.ts +909 -0
  151. package/dist/types/schemas/a2a/auth.d.ts.map +1 -0
  152. package/dist/types/schemas/a2a/auth.js +11 -1
  153. package/dist/types/schemas/a2a/auth.js.map +1 -1
  154. package/dist/types/{types/schemas → schemas}/a2a/error.d.ts +243 -27
  155. package/dist/types/schemas/a2a/error.d.ts.map +1 -0
  156. package/dist/types/schemas/a2a/error.js +1 -1
  157. package/dist/types/schemas/a2a/error.js.map +1 -1
  158. package/dist/types/schemas/a2a/index.d.ts.map +1 -0
  159. package/dist/types/schemas/a2a/kind.d.ts +12 -0
  160. package/dist/types/schemas/a2a/kind.d.ts.map +1 -0
  161. package/dist/types/schemas/a2a/kind.js +1 -1
  162. package/dist/types/schemas/a2a/kind.js.map +1 -1
  163. package/dist/types/schemas/a2a/message.d.ts +10344 -0
  164. package/dist/types/schemas/a2a/message.d.ts.map +1 -0
  165. package/dist/types/schemas/a2a/message.js +1 -1
  166. package/dist/types/schemas/a2a/message.js.map +1 -1
  167. package/dist/types/schemas/a2a/notification.d.ts +1518 -0
  168. package/dist/types/schemas/a2a/notification.d.ts.map +1 -0
  169. package/dist/types/schemas/a2a/notification.js +2 -1
  170. package/dist/types/schemas/a2a/notification.js.map +1 -1
  171. package/dist/types/schemas/a2a/parameters.d.ts +957 -0
  172. package/dist/types/schemas/a2a/parameters.d.ts.map +1 -0
  173. package/dist/types/schemas/a2a/parameters.js +1 -1
  174. package/dist/types/schemas/a2a/parameters.js.map +1 -1
  175. package/dist/types/schemas/a2a/protocol.d.ts +14364 -0
  176. package/dist/types/schemas/a2a/protocol.d.ts.map +1 -0
  177. package/dist/types/schemas/a2a/protocol.js +1 -1
  178. package/dist/types/schemas/a2a/protocol.js.map +1 -1
  179. package/dist/types/schemas/a2a/rpc.d.ts +183 -0
  180. package/dist/types/schemas/a2a/rpc.d.ts.map +1 -0
  181. package/dist/types/schemas/a2a/rpc.js +1 -1
  182. package/dist/types/schemas/a2a/rpc.js.map +1 -1
  183. package/dist/types/schemas/a2a/task.d.ts +5887 -0
  184. package/dist/types/schemas/a2a/task.d.ts.map +1 -0
  185. package/dist/types/schemas/a2a/task.js +1 -1
  186. package/dist/types/schemas/a2a/task.js.map +1 -1
  187. package/dist/types/schemas/a2a/transport.d.ts +32 -0
  188. package/dist/types/schemas/a2a/transport.d.ts.map +1 -0
  189. package/dist/types/schemas/a2a/transport.js +2 -1
  190. package/dist/types/schemas/a2a/transport.js.map +1 -1
  191. package/dist/types/schemas/index.d.ts.map +1 -0
  192. package/dist/types/schemas/index.js +0 -1
  193. package/dist/types/schemas/index.js.map +1 -1
  194. package/dist/types/utils/index.d.ts +1 -8
  195. package/dist/types/utils/index.d.ts.map +1 -1
  196. package/dist/types/utils/transform.d.ts.map +1 -0
  197. package/dist/utils/common/constants.d.ts.map +1 -0
  198. package/dist/utils/common/errors.d.ts.map +1 -0
  199. package/dist/utils/common/utils.d.ts.map +1 -0
  200. package/dist/utils/common/zAsyncIterable-v3.d.ts +25 -0
  201. package/dist/utils/common/zAsyncIterable-v3.d.ts.map +1 -0
  202. package/dist/utils/common/zAsyncIterable-v3.js +39 -0
  203. package/dist/utils/common/zAsyncIterable-v3.js.map +1 -0
  204. package/dist/utils/common/zAsyncIterable.d.ts.map +1 -0
  205. package/dist/utils/common/zAsyncIterable.js +1 -0
  206. package/dist/utils/common/zAsyncIterable.js.map +1 -1
  207. package/dist/utils/index.d.ts +12 -0
  208. package/dist/utils/index.d.ts.map +1 -0
  209. package/dist/utils/index.js +5 -8
  210. package/dist/utils/index.js.map +1 -1
  211. package/dist/utils/logging/index.d.ts.map +1 -0
  212. package/dist/utils/logging/log.d.ts.map +1 -0
  213. package/dist/utils/logging/log.js +15 -1
  214. package/dist/utils/logging/log.js.map +1 -1
  215. package/dist/utils/logging/logger.d.ts +19 -0
  216. package/dist/utils/logging/logger.d.ts.map +1 -0
  217. package/dist/utils/logging/logger.js +5 -37
  218. package/dist/utils/logging/logger.js.map +1 -1
  219. package/dist/{types/utils → utils}/storage/file.d.ts +1 -1
  220. package/dist/utils/storage/file.d.ts.map +1 -0
  221. package/dist/utils/storage/file.js +5 -4
  222. package/dist/utils/storage/file.js.map +1 -1
  223. package/dist/utils/storage/memory.d.ts.map +1 -0
  224. package/package.json +21 -27
  225. package/CHANGELOG.md +0 -276
  226. package/dist/types/client/a2a-client.d.ts.map +0 -1
  227. package/dist/types/client/index.d.ts.map +0 -1
  228. package/dist/types/schemas/deployment/index.js +0 -3
  229. package/dist/types/schemas/deployment/index.js.map +0 -1
  230. package/dist/types/schemas/deployment/proxy.js.map +0 -1
  231. package/dist/types/schemas/deployment/request.js +0 -88
  232. package/dist/types/schemas/deployment/request.js.map +0 -1
  233. package/dist/types/server/express/errors.d.ts.map +0 -1
  234. package/dist/types/server/express/index.d.ts.map +0 -1
  235. package/dist/types/server/express/middeware.d.ts.map +0 -1
  236. package/dist/types/server/express/server.d.ts.map +0 -1
  237. package/dist/types/server/index.d.ts.map +0 -1
  238. package/dist/types/services/a2a/factory/builder.d.ts.map +0 -1
  239. package/dist/types/services/a2a/factory/context.d.ts.map +0 -1
  240. package/dist/types/services/a2a/factory/event.d.ts.map +0 -1
  241. package/dist/types/services/a2a/factory/index.d.ts.map +0 -1
  242. package/dist/types/services/a2a/factory/method.d.ts.map +0 -1
  243. package/dist/types/services/a2a/factory/service.d.ts.map +0 -1
  244. package/dist/types/services/a2a/helpers/index.d.ts.map +0 -1
  245. package/dist/types/services/a2a/helpers/part.d.ts.map +0 -1
  246. package/dist/types/services/a2a/index.d.ts.map +0 -1
  247. package/dist/types/services/a2a/managers/cancellation.d.ts.map +0 -1
  248. package/dist/types/services/a2a/managers/connection.d.ts.map +0 -1
  249. package/dist/types/services/a2a/managers/context.d.ts.map +0 -1
  250. package/dist/types/services/a2a/managers/index.d.ts.map +0 -1
  251. package/dist/types/services/a2a/managers/task.d.ts.map +0 -1
  252. package/dist/types/services/a2a/methods/cancel-task.d.ts.map +0 -1
  253. package/dist/types/services/a2a/methods/get-task.d.ts.map +0 -1
  254. package/dist/types/services/a2a/methods/index.d.ts.map +0 -1
  255. package/dist/types/services/a2a/methods/resubscribe-task.d.ts.map +0 -1
  256. package/dist/types/services/a2a/methods/send-message.d.ts.map +0 -1
  257. package/dist/types/services/a2a/methods/stream-message.d.ts.map +0 -1
  258. package/dist/types/services/a2a/service.d.ts.map +0 -1
  259. package/dist/types/services/a2a/state/index.d.ts.map +0 -1
  260. package/dist/types/services/a2a/state/load.d.ts.map +0 -1
  261. package/dist/types/services/a2a/state/process.d.ts.map +0 -1
  262. package/dist/types/services/a2a/state/update/artifact.d.ts.map +0 -1
  263. package/dist/types/services/a2a/state/update/index.d.ts.map +0 -1
  264. package/dist/types/services/a2a/state/update/update.d.ts.map +0 -1
  265. package/dist/types/services/core/execution/execute.d.ts.map +0 -1
  266. package/dist/types/services/core/execution/index.d.ts.map +0 -1
  267. package/dist/types/services/core/index.d.ts.map +0 -1
  268. package/dist/types/services/core/managers/command.d.ts.map +0 -1
  269. package/dist/types/services/core/managers/event.d.ts.map +0 -1
  270. package/dist/types/services/core/managers/index.d.ts.map +0 -1
  271. package/dist/types/services/core/managers/stream.d.ts.map +0 -1
  272. package/dist/types/services/index.d.ts +0 -3
  273. package/dist/types/services/index.d.ts.map +0 -1
  274. package/dist/types/transport/index.d.ts.map +0 -1
  275. package/dist/types/transport/rpc/parser.d.ts.map +0 -1
  276. package/dist/types/transport/rpc/rpc-client.d.ts.map +0 -1
  277. package/dist/types/transport/streaming/event-stream.d.ts.map +0 -1
  278. package/dist/types/transport/trpc/a2a/factory/index.d.ts.map +0 -1
  279. package/dist/types/transport/trpc/a2a/index.d.ts.map +0 -1
  280. package/dist/types/transport/trpc/a2a/routes/index.d.ts.map +0 -1
  281. package/dist/types/transport/trpc/a2a/routes/info.d.ts.map +0 -1
  282. package/dist/types/transport/trpc/a2a/routes/message/index.d.ts.map +0 -1
  283. package/dist/types/transport/trpc/a2a/routes/tasks/index.d.ts.map +0 -1
  284. package/dist/types/transport/trpc/a2a/trpc.d.ts.map +0 -1
  285. package/dist/types/transport/trpc/index.d.ts.map +0 -1
  286. package/dist/types/types/ext.d.ts.map +0 -1
  287. package/dist/types/types/index.d.ts +0 -5
  288. package/dist/types/types/index.d.ts.map +0 -1
  289. package/dist/types/types/interfaces/client.d.ts.map +0 -1
  290. package/dist/types/types/interfaces/index.d.ts.map +0 -1
  291. package/dist/types/types/interfaces/services/a2a/builder.d.ts.map +0 -1
  292. package/dist/types/types/interfaces/services/a2a/context.d.ts.map +0 -1
  293. package/dist/types/types/interfaces/services/a2a/engine.d.ts.map +0 -1
  294. package/dist/types/types/interfaces/services/a2a/index.d.ts.map +0 -1
  295. package/dist/types/types/interfaces/services/a2a/legacy.d.ts.map +0 -1
  296. package/dist/types/types/interfaces/services/a2a/service.d.ts.map +0 -1
  297. package/dist/types/types/interfaces/services/core/context/command.d.ts.map +0 -1
  298. package/dist/types/types/interfaces/services/core/context/context.d.ts.map +0 -1
  299. package/dist/types/types/interfaces/services/core/context/index.d.ts.map +0 -1
  300. package/dist/types/types/interfaces/services/core/context/types.d.ts.map +0 -1
  301. package/dist/types/types/interfaces/services/core/execution/engine.d.ts.map +0 -1
  302. package/dist/types/types/interfaces/services/core/execution/environment.d.ts.map +0 -1
  303. package/dist/types/types/interfaces/services/core/execution/execute.d.ts.map +0 -1
  304. package/dist/types/types/interfaces/services/core/execution/index.d.ts.map +0 -1
  305. package/dist/types/types/interfaces/services/core/index.d.ts.map +0 -1
  306. package/dist/types/types/interfaces/services/core/managers/cancellation.d.ts.map +0 -1
  307. package/dist/types/types/interfaces/services/core/managers/connection.d.ts.map +0 -1
  308. package/dist/types/types/interfaces/services/core/managers/context.d.ts.map +0 -1
  309. package/dist/types/types/interfaces/services/core/managers/event.d.ts.map +0 -1
  310. package/dist/types/types/interfaces/services/core/managers/index.d.ts.map +0 -1
  311. package/dist/types/types/interfaces/services/core/managers/stream.d.ts.map +0 -1
  312. package/dist/types/types/interfaces/services/core/managers/task.d.ts.map +0 -1
  313. package/dist/types/types/interfaces/services/core/service.d.ts.map +0 -1
  314. package/dist/types/types/interfaces/services/index.d.ts.map +0 -1
  315. package/dist/types/types/interfaces/services/protocol.d.ts.map +0 -1
  316. package/dist/types/types/interfaces/storage.d.ts.map +0 -1
  317. package/dist/types/types/schemas/a2a/agent.d.ts +0 -509
  318. package/dist/types/types/schemas/a2a/agent.d.ts.map +0 -1
  319. package/dist/types/types/schemas/a2a/auth.d.ts +0 -285
  320. package/dist/types/types/schemas/a2a/auth.d.ts.map +0 -1
  321. package/dist/types/types/schemas/a2a/error.d.ts.map +0 -1
  322. package/dist/types/types/schemas/a2a/index.d.ts.map +0 -1
  323. package/dist/types/types/schemas/a2a/kind.d.ts +0 -28
  324. package/dist/types/types/schemas/a2a/kind.d.ts.map +0 -1
  325. package/dist/types/types/schemas/a2a/message.d.ts +0 -2570
  326. package/dist/types/types/schemas/a2a/message.d.ts.map +0 -1
  327. package/dist/types/types/schemas/a2a/notification.d.ts +0 -338
  328. package/dist/types/types/schemas/a2a/notification.d.ts.map +0 -1
  329. package/dist/types/types/schemas/a2a/parameters.d.ts +0 -308
  330. package/dist/types/types/schemas/a2a/parameters.d.ts.map +0 -1
  331. package/dist/types/types/schemas/a2a/protocol.d.ts +0 -3207
  332. package/dist/types/types/schemas/a2a/protocol.d.ts.map +0 -1
  333. package/dist/types/types/schemas/a2a/rpc.d.ts +0 -57
  334. package/dist/types/types/schemas/a2a/rpc.d.ts.map +0 -1
  335. package/dist/types/types/schemas/a2a/task.d.ts +0 -1498
  336. package/dist/types/types/schemas/a2a/task.d.ts.map +0 -1
  337. package/dist/types/types/schemas/a2a/transport.d.ts +0 -28
  338. package/dist/types/types/schemas/a2a/transport.d.ts.map +0 -1
  339. package/dist/types/types/schemas/deployment/index.d.ts +0 -3
  340. package/dist/types/types/schemas/deployment/index.d.ts.map +0 -1
  341. package/dist/types/types/schemas/deployment/proxy.d.ts +0 -96
  342. package/dist/types/types/schemas/deployment/proxy.d.ts.map +0 -1
  343. package/dist/types/types/schemas/deployment/request.d.ts +0 -508
  344. package/dist/types/types/schemas/deployment/request.d.ts.map +0 -1
  345. package/dist/types/types/schemas/index.d.ts.map +0 -1
  346. package/dist/types/types/utils/index.d.ts +0 -2
  347. package/dist/types/types/utils/index.d.ts.map +0 -1
  348. package/dist/types/types/utils/transform.d.ts.map +0 -1
  349. package/dist/types/utils/api/register.d.ts +0 -29
  350. package/dist/types/utils/api/register.d.ts.map +0 -1
  351. package/dist/types/utils/common/constants.d.ts.map +0 -1
  352. package/dist/types/utils/common/errors.d.ts.map +0 -1
  353. package/dist/types/utils/common/utils.d.ts.map +0 -1
  354. package/dist/types/utils/common/zAsyncIterable.d.ts.map +0 -1
  355. package/dist/types/utils/deployment/agents.d.ts +0 -57
  356. package/dist/types/utils/deployment/agents.d.ts.map +0 -1
  357. package/dist/types/utils/deployment/bundler.d.ts +0 -15
  358. package/dist/types/utils/deployment/bundler.d.ts.map +0 -1
  359. package/dist/types/utils/deployment/full-deployment.d.ts +0 -18
  360. package/dist/types/utils/deployment/full-deployment.d.ts.map +0 -1
  361. package/dist/types/utils/deployment/index.d.ts +0 -5
  362. package/dist/types/utils/deployment/index.d.ts.map +0 -1
  363. package/dist/types/utils/deployment/task-wrapper.d.ts +0 -43
  364. package/dist/types/utils/deployment/task-wrapper.d.ts.map +0 -1
  365. package/dist/types/utils/deployment/test-deployment.d.ts +0 -28
  366. package/dist/types/utils/deployment/test-deployment.d.ts.map +0 -1
  367. package/dist/types/utils/logging/index.d.ts.map +0 -1
  368. package/dist/types/utils/logging/log.d.ts.map +0 -1
  369. package/dist/types/utils/logging/logger.d.ts +0 -20
  370. package/dist/types/utils/logging/logger.d.ts.map +0 -1
  371. package/dist/types/utils/storage/file.d.ts.map +0 -1
  372. package/dist/types/utils/storage/memory.d.ts.map +0 -1
  373. package/dist/utils/api/register.js +0 -107
  374. package/dist/utils/api/register.js.map +0 -1
  375. package/dist/utils/deployment/agents.js +0 -96
  376. package/dist/utils/deployment/agents.js.map +0 -1
  377. package/dist/utils/deployment/bundler.js +0 -52
  378. package/dist/utils/deployment/bundler.js.map +0 -1
  379. package/dist/utils/deployment/full-deployment.js +0 -35
  380. package/dist/utils/deployment/full-deployment.js.map +0 -1
  381. package/dist/utils/deployment/index.js +0 -5
  382. package/dist/utils/deployment/index.js.map +0 -1
  383. package/dist/utils/deployment/task-wrapper.js +0 -44
  384. package/dist/utils/deployment/task-wrapper.js.map +0 -1
  385. package/dist/utils/deployment/test-deployment.js +0 -69
  386. package/dist/utils/deployment/test-deployment.js.map +0 -1
  387. /package/dist/{types/client → client}/a2a-client.d.ts +0 -0
  388. /package/dist/{types/client → client}/index.d.ts +0 -0
  389. /package/dist/{types/server → server}/express/errors.d.ts +0 -0
  390. /package/dist/{types/server → server}/express/index.d.ts +0 -0
  391. /package/dist/{types/server → server}/express/middeware.d.ts +0 -0
  392. /package/dist/{types/server → server}/index.d.ts +0 -0
  393. /package/dist/{types/services → services}/a2a/factory/index.d.ts +0 -0
  394. /package/dist/{types/services → services}/a2a/factory/method.d.ts +0 -0
  395. /package/dist/{types/services → services}/a2a/factory/service.d.ts +0 -0
  396. /package/dist/{types/services → services}/a2a/helpers/index.d.ts +0 -0
  397. /package/dist/{types/services → services}/a2a/helpers/part.d.ts +0 -0
  398. /package/dist/{types/services → services}/a2a/index.d.ts +0 -0
  399. /package/dist/{types/services → services}/a2a/managers/cancellation.d.ts +0 -0
  400. /package/dist/{types/services → services}/a2a/managers/connection.d.ts +0 -0
  401. /package/dist/{types/services → services}/a2a/managers/context.d.ts +0 -0
  402. /package/dist/{types/services → services}/a2a/managers/index.d.ts +0 -0
  403. /package/dist/{types/services → services}/a2a/managers/task.d.ts +0 -0
  404. /package/dist/{types/services → services}/a2a/methods/cancel-task.d.ts +0 -0
  405. /package/dist/{types/services → services}/a2a/methods/index.d.ts +0 -0
  406. /package/dist/{types/services → services}/a2a/methods/resubscribe-task.d.ts +0 -0
  407. /package/dist/{types/services → services}/a2a/methods/send-message.d.ts +0 -0
  408. /package/dist/{types/services → services}/a2a/methods/stream-message.d.ts +0 -0
  409. /package/dist/{types/services → services}/a2a/state/index.d.ts +0 -0
  410. /package/dist/{types/services → services}/a2a/state/load.d.ts +0 -0
  411. /package/dist/{types/services → services}/a2a/state/process.d.ts +0 -0
  412. /package/dist/{types/services → services}/a2a/state/update/artifact.d.ts +0 -0
  413. /package/dist/{types/services → services}/a2a/state/update/index.d.ts +0 -0
  414. /package/dist/{types/services → services}/a2a/state/update/update.d.ts +0 -0
  415. /package/dist/{types/services → services}/core/execution/execute.d.ts +0 -0
  416. /package/dist/{types/services → services}/core/execution/index.d.ts +0 -0
  417. /package/dist/{types/services → services}/core/index.d.ts +0 -0
  418. /package/dist/{types/services → services}/core/managers/command.d.ts +0 -0
  419. /package/dist/{types/services → services}/core/managers/event.d.ts +0 -0
  420. /package/dist/{types/services → services}/core/managers/index.d.ts +0 -0
  421. /package/dist/{types/services → services}/core/managers/stream.d.ts +0 -0
  422. /package/dist/{types/transport → transport}/index.d.ts +0 -0
  423. /package/dist/{types/transport → transport}/rpc/parser.d.ts +0 -0
  424. /package/dist/{types/transport → transport}/rpc/rpc-client.d.ts +0 -0
  425. /package/dist/{types/transport → transport}/streaming/event-stream.d.ts +0 -0
  426. /package/dist/{types/transport → transport}/trpc/a2a/factory/index.d.ts +0 -0
  427. /package/dist/{types/transport → transport}/trpc/a2a/index.d.ts +0 -0
  428. /package/dist/{types/transport → transport}/trpc/a2a/routes/index.d.ts +0 -0
  429. /package/dist/{types/transport → transport}/trpc/a2a/routes/message/index.d.ts +0 -0
  430. /package/dist/{types/transport → transport}/trpc/a2a/routes/tasks/index.d.ts +0 -0
  431. /package/dist/{types/transport → transport}/trpc/index.d.ts +0 -0
  432. /package/dist/types/{types/ext.d.ts → ext.d.ts} +0 -0
  433. /package/dist/types/{types/interfaces → interfaces}/client.d.ts +0 -0
  434. /package/dist/types/{types/interfaces → interfaces}/index.d.ts +0 -0
  435. /package/dist/types/{types/interfaces → interfaces}/services/a2a/engine.d.ts +0 -0
  436. /package/dist/types/{types/interfaces → interfaces}/services/a2a/index.d.ts +0 -0
  437. /package/dist/types/{types/interfaces → interfaces}/services/core/context/command.d.ts +0 -0
  438. /package/dist/types/{types/interfaces → interfaces}/services/core/context/index.d.ts +0 -0
  439. /package/dist/types/{types/interfaces → interfaces}/services/core/context/types.d.ts +0 -0
  440. /package/dist/types/{types/interfaces → interfaces}/services/core/execution/environment.d.ts +0 -0
  441. /package/dist/types/{types/interfaces → interfaces}/services/core/execution/execute.d.ts +0 -0
  442. /package/dist/types/{types/interfaces → interfaces}/services/core/execution/index.d.ts +0 -0
  443. /package/dist/types/{types/interfaces → interfaces}/services/core/index.d.ts +0 -0
  444. /package/dist/types/{types/interfaces → interfaces}/services/core/managers/cancellation.d.ts +0 -0
  445. /package/dist/types/{types/interfaces → interfaces}/services/core/managers/connection.d.ts +0 -0
  446. /package/dist/types/{types/interfaces → interfaces}/services/core/managers/context.d.ts +0 -0
  447. /package/dist/types/{types/interfaces → interfaces}/services/core/managers/index.d.ts +0 -0
  448. /package/dist/types/{types/interfaces → interfaces}/services/core/managers/task.d.ts +0 -0
  449. /package/dist/types/{types/interfaces → interfaces}/services/protocol.d.ts +0 -0
  450. /package/dist/types/{types/interfaces → interfaces}/storage.d.ts +0 -0
  451. /package/dist/types/{types/schemas → schemas}/a2a/index.d.ts +0 -0
  452. /package/dist/types/{types/schemas → schemas}/index.d.ts +0 -0
  453. /package/dist/types/{types/utils → utils}/transform.d.ts +0 -0
  454. /package/dist/{types/utils → utils}/common/constants.d.ts +0 -0
  455. /package/dist/{types/utils → utils}/common/errors.d.ts +0 -0
  456. /package/dist/{types/utils → utils}/common/utils.d.ts +0 -0
  457. /package/dist/{types/utils → utils}/common/zAsyncIterable.d.ts +0 -0
  458. /package/dist/{types/utils → utils}/logging/index.d.ts +0 -0
  459. /package/dist/{types/utils → utils}/logging/log.d.ts +0 -0
  460. /package/dist/{types/utils → utils}/storage/memory.d.ts +0 -0
@@ -0,0 +1,1518 @@
1
+ /**
2
+ * Copyright 2025 The Artinet Project
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ */
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
+ } & {
13
+ /**
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
+ } & {
31
+ /**
32
+ * @optional The ID of the push notification configuration to retrieve.
33
+ */
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>;
68
+ /**
69
+ * Defines parameters for deleting a specific push notification configuration for a task.
70
+ */
71
+ export declare const DeleteTaskPushNotificationConfigParamsSchema: z.ZodObject<{
72
+ id: z.ZodString;
73
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
74
+ } & {
75
+ /**
76
+ * @required The ID of the push notification configuration to delete.
77
+ */
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<{
93
+ /**
94
+ * @required A list of supported authentication schemes (e.g., 'Basic', 'Bearer').
95
+ */
96
+ schemes: z.ZodArray<z.ZodString, "many">;
97
+ /**
98
+ * @optional Optional credentials required by the push notification endpoint.
99
+ */
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>;
126
+ /**
127
+ * @optional Authentication details for the agent to use when calling the notification URL.
128
+ */
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>;
163
+ /**
164
+ * @description A container associating a push notification configuration with a specific task.
165
+ */
166
+ export declare const TaskPushNotificationConfigSchema: z.ZodObject<{
167
+ /**
168
+ * @required The ID of the task to associate with the push notification configuration.
169
+ */
170
+ taskId: z.ZodString;
171
+ /**
172
+ * @required The push notification configuration to associate with the task.
173
+ */
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>;
248
+ /**
249
+ * @description Request to set or update the push notification config for a task.
250
+ */
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
+ id: string | number;
339
+ method: "tasks/pushNotificationConfig/set";
340
+ params: {
341
+ taskId: string;
342
+ pushNotificationConfig: {
343
+ url: string;
344
+ id?: string | undefined;
345
+ token?: string | undefined;
346
+ authentication?: {
347
+ schemes: string[];
348
+ credentials?: string | undefined;
349
+ } | undefined;
350
+ };
351
+ };
352
+ jsonrpc: "2.0";
353
+ }, {
354
+ id: string | number;
355
+ method: "tasks/pushNotificationConfig/set";
356
+ params: {
357
+ taskId: string;
358
+ pushNotificationConfig: {
359
+ url: string;
360
+ id?: string | undefined;
361
+ token?: string | undefined;
362
+ authentication?: {
363
+ schemes: string[];
364
+ credentials?: string | undefined;
365
+ } | undefined;
366
+ };
367
+ };
368
+ jsonrpc: "2.0";
369
+ }>;
370
+ export type SetTaskPushNotificationConfigRequest = z.infer<typeof SetTaskPushNotificationConfigRequestSchema>;
371
+ /**
372
+ * @description JSON-RPC success response model for the 'tasks/pushNotificationConfig/set' method.
373
+ */
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
+ error?: undefined;
475
+ id?: string | number | 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
+ error?: undefined;
491
+ id?: string | number | undefined;
492
+ }>;
493
+ export type SetTaskPushNotificationConfigSuccessResponse = z.infer<typeof SetTaskPushNotificationConfigSuccessResponseSchema>;
494
+ /**
495
+ * @description Response to a `tasks/pushNotificationConfig/set` request.
496
+ */
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
+ error?: undefined;
598
+ id?: string | number | 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
+ error?: undefined;
614
+ id?: string | number | 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
+ code: number;
626
+ message: string;
627
+ data?: unknown;
628
+ }, {
629
+ code: number;
630
+ message: string;
631
+ data?: unknown;
632
+ }>;
633
+ }, "strip", z.ZodTypeAny, {
634
+ error: {
635
+ code: number;
636
+ message: string;
637
+ data?: unknown;
638
+ };
639
+ jsonrpc: "2.0";
640
+ id?: string | number | undefined;
641
+ result?: undefined;
642
+ }, {
643
+ error: {
644
+ code: number;
645
+ message: string;
646
+ data?: unknown;
647
+ };
648
+ jsonrpc: "2.0";
649
+ id?: string | number | undefined;
650
+ result?: undefined;
651
+ }>]>;
652
+ export type SetTaskPushNotificationConfigResponse = z.infer<typeof SetTaskPushNotificationConfigResponseSchema>;
653
+ /**
654
+ * @description Request to retrieve the currently configured push notification configuration for a task.
655
+ */
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
+ id: string | number;
689
+ method: "tasks/pushNotificationConfig/get";
690
+ params: {
691
+ id: string;
692
+ metadata?: Record<string, unknown> | undefined;
693
+ } | {
694
+ id: string;
695
+ metadata?: Record<string, unknown> | undefined;
696
+ pushNotificationConfigId?: string | undefined;
697
+ };
698
+ jsonrpc: "2.0";
699
+ }, {
700
+ id: string | number;
701
+ method: "tasks/pushNotificationConfig/get";
702
+ params: {
703
+ id: string;
704
+ metadata?: Record<string, unknown> | undefined;
705
+ } | {
706
+ id: string;
707
+ metadata?: Record<string, unknown> | undefined;
708
+ pushNotificationConfigId?: string | undefined;
709
+ };
710
+ jsonrpc: "2.0";
711
+ }>;
712
+ export type GetTaskPushNotificationConfigRequest = z.infer<typeof GetTaskPushNotificationConfigRequestSchema>;
713
+ /**
714
+ * @description JSON-RPC success response model for the 'tasks/pushNotificationConfig/get' method.
715
+ */
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
+ error?: undefined;
817
+ id?: string | number | 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
+ error?: undefined;
833
+ id?: string | number | 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
+ error?: undefined;
940
+ id?: string | number | 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
+ error?: undefined;
956
+ id?: string | number | 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
+ code: number;
968
+ message: string;
969
+ data?: unknown;
970
+ }, {
971
+ code: number;
972
+ message: string;
973
+ data?: unknown;
974
+ }>;
975
+ }, "strip", z.ZodTypeAny, {
976
+ error: {
977
+ code: number;
978
+ message: string;
979
+ data?: unknown;
980
+ };
981
+ jsonrpc: "2.0";
982
+ id?: string | number | undefined;
983
+ result?: undefined;
984
+ }, {
985
+ error: {
986
+ code: number;
987
+ message: string;
988
+ data?: unknown;
989
+ };
990
+ jsonrpc: "2.0";
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
+ id: string | number;
1015
+ method: "tasks/pushNotificationConfig/list";
1016
+ params: {
1017
+ id: string;
1018
+ metadata?: Record<string, unknown> | undefined;
1019
+ };
1020
+ jsonrpc: "2.0";
1021
+ }, {
1022
+ id: string | number;
1023
+ method: "tasks/pushNotificationConfig/list";
1024
+ params: {
1025
+ id: string;
1026
+ metadata?: Record<string, unknown> | undefined;
1027
+ };
1028
+ jsonrpc: "2.0";
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
+ error?: undefined;
1217
+ id?: string | number | 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
+ error?: undefined;
1233
+ id?: string | number | 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
+ error?: undefined;
1340
+ id?: string | number | 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
+ error?: undefined;
1356
+ id?: string | number | 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
+ code: number;
1368
+ message: string;
1369
+ data?: unknown;
1370
+ }, {
1371
+ code: number;
1372
+ message: string;
1373
+ data?: unknown;
1374
+ }>;
1375
+ }, "strip", z.ZodTypeAny, {
1376
+ error: {
1377
+ code: number;
1378
+ message: string;
1379
+ data?: unknown;
1380
+ };
1381
+ jsonrpc: "2.0";
1382
+ id?: string | number | undefined;
1383
+ result?: undefined;
1384
+ }, {
1385
+ error: {
1386
+ code: number;
1387
+ message: string;
1388
+ data?: unknown;
1389
+ };
1390
+ jsonrpc: "2.0";
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
+ id: string | number;
1422
+ method: "tasks/pushNotificationConfig/delete";
1423
+ params: {
1424
+ id: string;
1425
+ pushNotificationConfigId: string;
1426
+ metadata?: Record<string, unknown> | undefined;
1427
+ };
1428
+ jsonrpc: "2.0";
1429
+ }, {
1430
+ id: string | number;
1431
+ method: "tasks/pushNotificationConfig/delete";
1432
+ params: {
1433
+ id: string;
1434
+ pushNotificationConfigId: string;
1435
+ metadata?: Record<string, unknown> | undefined;
1436
+ };
1437
+ jsonrpc: "2.0";
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
+ error?: undefined;
1453
+ id?: string | number | undefined;
1454
+ }, {
1455
+ jsonrpc: "2.0";
1456
+ result: null;
1457
+ error?: undefined;
1458
+ id?: string | number | undefined;
1459
+ }>;
1460
+ export type DeleteTaskPushNotificationConfigSuccessResponse = z.infer<typeof DeleteTaskPushNotificationConfigSuccessResponseSchema>;
1461
+ /**
1462
+ * @description Response to a `tasks/pushNotificationConfig/delete` request.
1463
+ */
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
+ error?: undefined;
1474
+ id?: string | number | undefined;
1475
+ }, {
1476
+ jsonrpc: "2.0";
1477
+ result: null;
1478
+ error?: undefined;
1479
+ id?: string | number | 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
+ code: number;
1491
+ message: string;
1492
+ data?: unknown;
1493
+ }, {
1494
+ code: number;
1495
+ message: string;
1496
+ data?: unknown;
1497
+ }>;
1498
+ }, "strip", z.ZodTypeAny, {
1499
+ error: {
1500
+ code: number;
1501
+ message: string;
1502
+ data?: unknown;
1503
+ };
1504
+ jsonrpc: "2.0";
1505
+ id?: string | number | undefined;
1506
+ result?: undefined;
1507
+ }, {
1508
+ error: {
1509
+ code: number;
1510
+ message: string;
1511
+ data?: unknown;
1512
+ };
1513
+ jsonrpc: "2.0";
1514
+ id?: string | number | undefined;
1515
+ result?: undefined;
1516
+ }>]>;
1517
+ export type DeleteTaskPushNotificationConfigResponse = z.infer<typeof DeleteTaskPushNotificationConfigResponseSchema>;
1518
+ //# sourceMappingURL=notification.d.ts.map