@artinet/sdk 0.5.18 → 0.6.0-preview.1

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 (399) hide show
  1. package/README.md +36 -617
  2. package/dist/browser/browser.d.ts +1 -1
  3. package/dist/browser/browser.js +1 -1
  4. package/dist/browser/client/a2a-client.d.ts +19 -18
  5. package/dist/browser/client/a2a-client.js +18 -6
  6. package/dist/browser/config/index.d.ts +158 -0
  7. package/dist/browser/config/index.js +155 -0
  8. package/dist/browser/config/observability.d.ts +119 -0
  9. package/dist/browser/config/observability.js +35 -0
  10. package/dist/browser/services/a2a/helpers/message-builder.d.ts +13 -8
  11. package/dist/browser/services/a2a/helpers/message-builder.js +5 -0
  12. package/dist/browser/transport/rpc/parser.d.ts +2 -2
  13. package/dist/browser/transport/rpc/parser.js +6 -6
  14. package/dist/browser/transport/rpc/rpc-client.d.ts +5 -5
  15. package/dist/browser/transport/rpc/rpc-client.js +6 -6
  16. package/dist/browser/transport/streaming/event-stream.d.ts +3 -3
  17. package/dist/browser/transport/streaming/event-stream.js +11 -10
  18. package/dist/browser/types/a2a/a2a.d.ts +378 -0
  19. package/dist/browser/types/a2a/a2a.js +14 -0
  20. package/dist/browser/types/a2a/builder.d.ts +43 -0
  21. package/dist/browser/types/a2a/index.d.ts +3 -0
  22. package/dist/browser/types/a2a/index.js +2 -0
  23. package/dist/{types/interfaces → browser/types}/client.d.ts +25 -27
  24. package/dist/browser/types/core/core.d.ts +31 -0
  25. package/dist/browser/types/core/index.d.ts +1 -0
  26. package/dist/browser/types/core/index.js +1 -0
  27. package/dist/browser/types/index.d.ts +6 -3
  28. package/dist/browser/types/index.js +6 -3
  29. package/dist/browser/types/mcp/index.d.ts +1 -0
  30. package/dist/browser/types/mcp/index.js +1 -0
  31. package/dist/browser/types/{interfaces/services/mcp/service.d.ts → mcp/mcp.d.ts} +4 -3
  32. package/dist/browser/types/{interfaces/services/a2a/context.js → mcp/mcp.js} +1 -1
  33. package/dist/browser/types/storage.d.ts +21 -0
  34. package/dist/browser/utils/common/constants.d.ts +7 -7
  35. package/dist/browser/utils/common/constants.js +9 -9
  36. package/dist/browser/utils/common/errors.d.ts +18 -18
  37. package/dist/browser/utils/common/errors.js +14 -14
  38. package/dist/browser/utils/common/utils.d.ts +23 -0
  39. package/dist/browser/utils/common/utils.js +32 -0
  40. package/dist/client/a2a-client.d.ts +19 -18
  41. package/dist/client/a2a-client.js +18 -6
  42. package/dist/config/default.d.ts +50 -0
  43. package/dist/config/default.js +62 -0
  44. package/dist/config/index.d.ts +158 -0
  45. package/dist/config/index.js +155 -0
  46. package/dist/config/observability.d.ts +119 -0
  47. package/dist/config/observability.js +35 -0
  48. package/dist/extensions/otel.d.ts +98 -0
  49. package/dist/extensions/otel.js +190 -0
  50. package/dist/extensions/pino.d.ts +44 -0
  51. package/dist/extensions/pino.js +107 -0
  52. package/dist/extensions/winston.d.ts +47 -0
  53. package/dist/extensions/winston.js +114 -0
  54. package/dist/index.d.ts +2 -0
  55. package/dist/index.js +2 -0
  56. package/dist/server/express/errors.js +3 -3
  57. package/dist/server/express/middeware.d.ts +2 -2
  58. package/dist/server/express/middeware.js +11 -4
  59. package/dist/server/express/server.d.ts +9 -56
  60. package/dist/server/express/server.js +21 -28
  61. package/dist/services/a2a/execute.d.ts +6 -0
  62. package/dist/services/a2a/execute.js +25 -0
  63. package/dist/services/a2a/factory/builder.d.ts +21 -80
  64. package/dist/services/a2a/factory/builder.js +20 -15
  65. package/dist/services/a2a/factory/context.d.ts +15 -128
  66. package/dist/services/a2a/factory/context.js +31 -136
  67. package/dist/services/a2a/factory/handler.d.ts +6 -0
  68. package/dist/services/a2a/factory/{method.js → handler.js} +2 -2
  69. package/dist/services/a2a/factory/index.d.ts +1 -2
  70. package/dist/services/a2a/factory/index.js +1 -2
  71. package/dist/services/a2a/factory/service.d.ts +20 -7
  72. package/dist/services/a2a/factory/service.js +4 -4
  73. package/dist/services/a2a/factory/state-machine.d.ts +11 -0
  74. package/dist/services/a2a/factory/state-machine.js +66 -0
  75. package/dist/services/a2a/{state/update → handlers}/artifact.d.ts +4 -4
  76. package/dist/services/a2a/handlers/cancel-task.d.ts +11 -0
  77. package/dist/services/a2a/handlers/cancel-task.js +33 -0
  78. package/dist/services/a2a/handlers/get-task.d.ts +11 -0
  79. package/dist/services/a2a/handlers/get-task.js +13 -0
  80. package/dist/services/a2a/handlers/resubscribe-task.d.ts +11 -0
  81. package/dist/services/a2a/handlers/resubscribe-task.js +56 -0
  82. package/dist/services/a2a/handlers/send-message.d.ts +11 -0
  83. package/dist/services/a2a/handlers/send-message.js +35 -0
  84. package/dist/services/a2a/handlers/stream-message.d.ts +11 -0
  85. package/dist/services/a2a/handlers/stream-message.js +19 -0
  86. package/dist/services/a2a/handlers/update.d.ts +17 -0
  87. package/dist/services/a2a/handlers/update.js +114 -0
  88. package/dist/services/a2a/helpers/agentcard-builder.d.ts +9 -5
  89. package/dist/services/a2a/helpers/agentcard-builder.js +4 -0
  90. package/dist/services/a2a/helpers/content.d.ts +2 -2
  91. package/dist/services/a2a/helpers/content.js +4 -0
  92. package/dist/services/a2a/helpers/history.d.ts +6 -2
  93. package/dist/services/a2a/helpers/history.js +4 -0
  94. package/dist/services/a2a/helpers/index.d.ts +2 -2
  95. package/dist/services/a2a/helpers/index.js +2 -2
  96. package/dist/services/a2a/helpers/message-builder.d.ts +13 -8
  97. package/dist/services/a2a/helpers/message-builder.js +5 -0
  98. package/dist/services/a2a/helpers/part.d.ts +9 -9
  99. package/dist/services/a2a/helpers/references.d.ts +6 -0
  100. package/dist/services/a2a/helpers/references.js +22 -0
  101. package/dist/services/a2a/index.d.ts +9 -5
  102. package/dist/services/a2a/index.js +8 -5
  103. package/dist/services/a2a/managers.d.ts +23 -0
  104. package/dist/services/a2a/managers.js +95 -0
  105. package/dist/services/a2a/messenger.d.ts +35 -0
  106. package/dist/services/{core/managers/command.js → a2a/messenger.js} +27 -31
  107. package/dist/services/a2a/service.d.ts +41 -372
  108. package/dist/services/a2a/service.js +238 -83
  109. package/dist/services/a2a/state-machine.d.ts +18 -0
  110. package/dist/services/a2a/state-machine.js +76 -0
  111. package/dist/services/a2a/streams.d.ts +22 -0
  112. package/dist/services/a2a/streams.js +98 -0
  113. package/dist/services/core/index.d.ts +1 -2
  114. package/dist/services/core/index.js +1 -2
  115. package/dist/services/core/manager.d.ts +15 -0
  116. package/dist/services/core/manager.js +42 -0
  117. package/dist/services/mcp/service.d.ts +11 -15
  118. package/dist/services/mcp/service.js +16 -15
  119. package/dist/transport/index.d.ts +0 -1
  120. package/dist/transport/index.js +1 -1
  121. package/dist/transport/rpc/parser.d.ts +2 -2
  122. package/dist/transport/rpc/parser.js +6 -6
  123. package/dist/transport/rpc/rpc-client.d.ts +5 -5
  124. package/dist/transport/rpc/rpc-client.js +6 -6
  125. package/dist/transport/streaming/event-stream.d.ts +3 -3
  126. package/dist/transport/streaming/event-stream.js +11 -10
  127. package/dist/transport/trpc/a2a/factory/router.d.ts +479 -871
  128. package/dist/transport/trpc/a2a/factory/router.js +2 -2
  129. package/dist/transport/trpc/a2a/routes/info.d.ts +108 -8
  130. package/dist/transport/trpc/a2a/routes/info.js +6 -2
  131. package/dist/transport/trpc/a2a/routes/message/route.d.ts +113 -162
  132. package/dist/transport/trpc/a2a/routes/message/route.js +7 -13
  133. package/dist/transport/trpc/a2a/routes/tasks/route.d.ts +114 -212
  134. package/dist/transport/trpc/a2a/routes/tasks/route.js +16 -19
  135. package/dist/transport/trpc/a2a/trpc.d.ts +9 -253
  136. package/dist/types/a2a/a2a.d.ts +378 -0
  137. package/dist/types/a2a/a2a.js +14 -0
  138. package/dist/types/a2a/builder.d.ts +43 -0
  139. package/dist/types/a2a/index.d.ts +3 -0
  140. package/dist/types/a2a/index.js +2 -0
  141. package/dist/{browser/types/interfaces → types}/client.d.ts +25 -27
  142. package/dist/types/core/core.d.ts +31 -0
  143. package/dist/types/core/index.d.ts +1 -0
  144. package/dist/types/core/index.js +1 -0
  145. package/dist/types/index.d.ts +6 -3
  146. package/dist/types/index.js +6 -3
  147. package/dist/types/mcp/index.d.ts +1 -0
  148. package/dist/types/mcp/index.js +1 -0
  149. package/dist/types/{interfaces/services/mcp/service.d.ts → mcp/mcp.d.ts} +4 -3
  150. package/dist/{browser/types/interfaces/services/a2a/engine.js → types/mcp/mcp.js} +1 -1
  151. package/dist/types/storage.d.ts +21 -0
  152. package/dist/utils/common/constants.d.ts +7 -7
  153. package/dist/utils/common/constants.js +9 -9
  154. package/dist/utils/common/errors.d.ts +18 -18
  155. package/dist/utils/common/errors.js +14 -14
  156. package/dist/utils/common/parse.d.ts +7 -0
  157. package/dist/utils/common/parse.js +14 -0
  158. package/dist/utils/common/schema-validation.d.ts +1 -1
  159. package/dist/utils/common/schema-validation.js +7 -7
  160. package/dist/utils/common/utils.d.ts +23 -0
  161. package/dist/utils/common/utils.js +32 -0
  162. package/dist/utils/common/zAsyncIterable-v3.d.ts +1 -1
  163. package/dist/utils/common/zAsyncIterable-v3.js +2 -1
  164. package/dist/utils/index.d.ts +2 -3
  165. package/dist/utils/index.js +2 -3
  166. package/dist/utils/storage/file.d.ts +8 -17
  167. package/dist/utils/storage/file.js +44 -73
  168. package/package.json +73 -13
  169. package/dist/browser/types/ext.d.ts +0 -13
  170. package/dist/browser/types/ext.js +0 -10
  171. package/dist/browser/types/interfaces/index.d.ts +0 -3
  172. package/dist/browser/types/interfaces/index.js +0 -3
  173. package/dist/browser/types/interfaces/services/a2a/builder.d.ts +0 -37
  174. package/dist/browser/types/interfaces/services/a2a/context.d.ts +0 -162
  175. package/dist/browser/types/interfaces/services/a2a/engine.d.ts +0 -7
  176. package/dist/browser/types/interfaces/services/a2a/index.d.ts +0 -5
  177. package/dist/browser/types/interfaces/services/a2a/index.js +0 -5
  178. package/dist/browser/types/interfaces/services/a2a/legacy.d.ts +0 -93
  179. package/dist/browser/types/interfaces/services/a2a/legacy.js +0 -5
  180. package/dist/browser/types/interfaces/services/a2a/service.d.ts +0 -413
  181. package/dist/browser/types/interfaces/services/a2a/service.js +0 -5
  182. package/dist/browser/types/interfaces/services/core/context/command.d.ts +0 -25
  183. package/dist/browser/types/interfaces/services/core/context/command.js +0 -5
  184. package/dist/browser/types/interfaces/services/core/context/context.d.ts +0 -207
  185. package/dist/browser/types/interfaces/services/core/context/context.js +0 -5
  186. package/dist/browser/types/interfaces/services/core/context/index.d.ts +0 -3
  187. package/dist/browser/types/interfaces/services/core/context/index.js +0 -3
  188. package/dist/browser/types/interfaces/services/core/context/types.d.ts +0 -11
  189. package/dist/browser/types/interfaces/services/core/context/types.js +0 -5
  190. package/dist/browser/types/interfaces/services/core/execution/engine.d.ts +0 -106
  191. package/dist/browser/types/interfaces/services/core/execution/engine.js +0 -5
  192. package/dist/browser/types/interfaces/services/core/execution/environment.d.ts +0 -11
  193. package/dist/browser/types/interfaces/services/core/execution/environment.js +0 -5
  194. package/dist/browser/types/interfaces/services/core/execution/execute.d.ts +0 -7
  195. package/dist/browser/types/interfaces/services/core/execution/execute.js +0 -5
  196. package/dist/browser/types/interfaces/services/core/execution/index.d.ts +0 -3
  197. package/dist/browser/types/interfaces/services/core/execution/index.js +0 -3
  198. package/dist/browser/types/interfaces/services/core/index.d.ts +0 -4
  199. package/dist/browser/types/interfaces/services/core/index.js +0 -4
  200. package/dist/browser/types/interfaces/services/core/managers/cancellation.d.ts +0 -9
  201. package/dist/browser/types/interfaces/services/core/managers/cancellation.js +0 -5
  202. package/dist/browser/types/interfaces/services/core/managers/connection.d.ts +0 -9
  203. package/dist/browser/types/interfaces/services/core/managers/connection.js +0 -5
  204. package/dist/browser/types/interfaces/services/core/managers/context.d.ts +0 -17
  205. package/dist/browser/types/interfaces/services/core/managers/context.js +0 -5
  206. package/dist/browser/types/interfaces/services/core/managers/event.d.ts +0 -328
  207. package/dist/browser/types/interfaces/services/core/managers/event.js +0 -5
  208. package/dist/browser/types/interfaces/services/core/managers/index.d.ts +0 -6
  209. package/dist/browser/types/interfaces/services/core/managers/index.js +0 -6
  210. package/dist/browser/types/interfaces/services/core/managers/stream.d.ts +0 -217
  211. package/dist/browser/types/interfaces/services/core/managers/stream.js +0 -5
  212. package/dist/browser/types/interfaces/services/core/managers/task.d.ts +0 -9
  213. package/dist/browser/types/interfaces/services/core/service.d.ts +0 -115
  214. package/dist/browser/types/interfaces/services/core/service.js +0 -5
  215. package/dist/browser/types/interfaces/services/index.d.ts +0 -4
  216. package/dist/browser/types/interfaces/services/index.js +0 -4
  217. package/dist/browser/types/interfaces/services/mcp/index.d.ts +0 -1
  218. package/dist/browser/types/interfaces/services/mcp/index.js +0 -1
  219. package/dist/browser/types/interfaces/services/mcp/service.js +0 -5
  220. package/dist/browser/types/interfaces/storage.d.ts +0 -8
  221. package/dist/browser/types/schemas/a2a/agent.d.ts +0 -2583
  222. package/dist/browser/types/schemas/a2a/agent.js +0 -323
  223. package/dist/browser/types/schemas/a2a/auth.d.ts +0 -908
  224. package/dist/browser/types/schemas/a2a/auth.js +0 -283
  225. package/dist/browser/types/schemas/a2a/error.d.ts +0 -396
  226. package/dist/browser/types/schemas/a2a/error.js +0 -163
  227. package/dist/browser/types/schemas/a2a/index.d.ts +0 -11
  228. package/dist/browser/types/schemas/a2a/index.js +0 -11
  229. package/dist/browser/types/schemas/a2a/kind.d.ts +0 -11
  230. package/dist/browser/types/schemas/a2a/kind.js +0 -20
  231. package/dist/browser/types/schemas/a2a/message.d.ts +0 -10343
  232. package/dist/browser/types/schemas/a2a/message.js +0 -130
  233. package/dist/browser/types/schemas/a2a/notification.d.ts +0 -1517
  234. package/dist/browser/types/schemas/a2a/notification.js +0 -203
  235. package/dist/browser/types/schemas/a2a/parameters.d.ts +0 -956
  236. package/dist/browser/types/schemas/a2a/parameters.js +0 -241
  237. package/dist/browser/types/schemas/a2a/protocol.d.ts +0 -14363
  238. package/dist/browser/types/schemas/a2a/protocol.js +0 -59
  239. package/dist/browser/types/schemas/a2a/rpc.d.ts +0 -182
  240. package/dist/browser/types/schemas/a2a/rpc.js +0 -126
  241. package/dist/browser/types/schemas/a2a/task.d.ts +0 -5886
  242. package/dist/browser/types/schemas/a2a/task.js +0 -134
  243. package/dist/browser/types/schemas/a2a/transport.d.ts +0 -31
  244. package/dist/browser/types/schemas/a2a/transport.js +0 -28
  245. package/dist/browser/types/schemas/index.d.ts +0 -1
  246. package/dist/browser/types/schemas/index.js +0 -1
  247. package/dist/browser/utils/logging/index.d.ts +0 -2
  248. package/dist/browser/utils/logging/index.js +0 -2
  249. package/dist/browser/utils/logging/log.d.ts +0 -33
  250. package/dist/browser/utils/logging/log.js +0 -75
  251. package/dist/browser/utils/logging/logger.d.ts +0 -18
  252. package/dist/browser/utils/logging/logger.js +0 -18
  253. package/dist/services/a2a/factory/event.d.ts +0 -58
  254. package/dist/services/a2a/factory/event.js +0 -177
  255. package/dist/services/a2a/factory/method.d.ts +0 -6
  256. package/dist/services/a2a/managers/cancellation.d.ts +0 -11
  257. package/dist/services/a2a/managers/cancellation.js +0 -16
  258. package/dist/services/a2a/managers/connection.d.ts +0 -11
  259. package/dist/services/a2a/managers/connection.js +0 -16
  260. package/dist/services/a2a/managers/context.d.ts +0 -11
  261. package/dist/services/a2a/managers/context.js +0 -16
  262. package/dist/services/a2a/managers/index.d.ts +0 -5
  263. package/dist/services/a2a/managers/index.js +0 -5
  264. package/dist/services/a2a/managers/task.d.ts +0 -11
  265. package/dist/services/a2a/managers/task.js +0 -16
  266. package/dist/services/a2a/methods/cancel-task.d.ts +0 -7
  267. package/dist/services/a2a/methods/cancel-task.js +0 -43
  268. package/dist/services/a2a/methods/get-task.d.ts +0 -112
  269. package/dist/services/a2a/methods/get-task.js +0 -16
  270. package/dist/services/a2a/methods/resubscribe-task.d.ts +0 -7
  271. package/dist/services/a2a/methods/resubscribe-task.js +0 -80
  272. package/dist/services/a2a/methods/send-message.d.ts +0 -7
  273. package/dist/services/a2a/methods/send-message.js +0 -36
  274. package/dist/services/a2a/methods/stream-message.d.ts +0 -8
  275. package/dist/services/a2a/methods/stream-message.js +0 -21
  276. package/dist/services/a2a/state/index.d.ts +0 -3
  277. package/dist/services/a2a/state/index.js +0 -3
  278. package/dist/services/a2a/state/load.d.ts +0 -14
  279. package/dist/services/a2a/state/load.js +0 -71
  280. package/dist/services/a2a/state/process.d.ts +0 -7
  281. package/dist/services/a2a/state/process.js +0 -13
  282. package/dist/services/a2a/state/update/index.d.ts +0 -2
  283. package/dist/services/a2a/state/update/index.js +0 -2
  284. package/dist/services/a2a/state/update/update.d.ts +0 -23
  285. package/dist/services/a2a/state/update/update.js +0 -123
  286. package/dist/services/core/execution/execute.d.ts +0 -6
  287. package/dist/services/core/execution/execute.js +0 -25
  288. package/dist/services/core/execution/index.d.ts +0 -1
  289. package/dist/services/core/execution/index.js +0 -1
  290. package/dist/services/core/managers/command.d.ts +0 -39
  291. package/dist/services/core/managers/event.d.ts +0 -18
  292. package/dist/services/core/managers/event.js +0 -56
  293. package/dist/services/core/managers/index.d.ts +0 -3
  294. package/dist/services/core/managers/index.js +0 -3
  295. package/dist/services/core/managers/stream.d.ts +0 -20
  296. package/dist/services/core/managers/stream.js +0 -77
  297. package/dist/types/ext.d.ts +0 -13
  298. package/dist/types/ext.js +0 -10
  299. package/dist/types/interfaces/index.d.ts +0 -3
  300. package/dist/types/interfaces/index.js +0 -3
  301. package/dist/types/interfaces/services/a2a/builder.d.ts +0 -37
  302. package/dist/types/interfaces/services/a2a/context.d.ts +0 -162
  303. package/dist/types/interfaces/services/a2a/context.js +0 -5
  304. package/dist/types/interfaces/services/a2a/engine.d.ts +0 -7
  305. package/dist/types/interfaces/services/a2a/engine.js +0 -5
  306. package/dist/types/interfaces/services/a2a/index.d.ts +0 -5
  307. package/dist/types/interfaces/services/a2a/index.js +0 -5
  308. package/dist/types/interfaces/services/a2a/legacy.d.ts +0 -93
  309. package/dist/types/interfaces/services/a2a/legacy.js +0 -5
  310. package/dist/types/interfaces/services/a2a/service.d.ts +0 -413
  311. package/dist/types/interfaces/services/a2a/service.js +0 -5
  312. package/dist/types/interfaces/services/core/context/command.d.ts +0 -25
  313. package/dist/types/interfaces/services/core/context/command.js +0 -5
  314. package/dist/types/interfaces/services/core/context/context.d.ts +0 -207
  315. package/dist/types/interfaces/services/core/context/context.js +0 -5
  316. package/dist/types/interfaces/services/core/context/index.d.ts +0 -3
  317. package/dist/types/interfaces/services/core/context/index.js +0 -3
  318. package/dist/types/interfaces/services/core/context/types.d.ts +0 -11
  319. package/dist/types/interfaces/services/core/context/types.js +0 -5
  320. package/dist/types/interfaces/services/core/execution/engine.d.ts +0 -106
  321. package/dist/types/interfaces/services/core/execution/engine.js +0 -5
  322. package/dist/types/interfaces/services/core/execution/environment.d.ts +0 -11
  323. package/dist/types/interfaces/services/core/execution/environment.js +0 -5
  324. package/dist/types/interfaces/services/core/execution/execute.d.ts +0 -7
  325. package/dist/types/interfaces/services/core/execution/execute.js +0 -5
  326. package/dist/types/interfaces/services/core/execution/index.d.ts +0 -3
  327. package/dist/types/interfaces/services/core/execution/index.js +0 -3
  328. package/dist/types/interfaces/services/core/index.d.ts +0 -4
  329. package/dist/types/interfaces/services/core/index.js +0 -4
  330. package/dist/types/interfaces/services/core/managers/cancellation.d.ts +0 -9
  331. package/dist/types/interfaces/services/core/managers/cancellation.js +0 -5
  332. package/dist/types/interfaces/services/core/managers/connection.d.ts +0 -9
  333. package/dist/types/interfaces/services/core/managers/connection.js +0 -5
  334. package/dist/types/interfaces/services/core/managers/context.d.ts +0 -17
  335. package/dist/types/interfaces/services/core/managers/context.js +0 -5
  336. package/dist/types/interfaces/services/core/managers/event.d.ts +0 -328
  337. package/dist/types/interfaces/services/core/managers/event.js +0 -5
  338. package/dist/types/interfaces/services/core/managers/index.d.ts +0 -6
  339. package/dist/types/interfaces/services/core/managers/index.js +0 -6
  340. package/dist/types/interfaces/services/core/managers/stream.d.ts +0 -217
  341. package/dist/types/interfaces/services/core/managers/stream.js +0 -5
  342. package/dist/types/interfaces/services/core/managers/task.d.ts +0 -9
  343. package/dist/types/interfaces/services/core/service.d.ts +0 -115
  344. package/dist/types/interfaces/services/core/service.js +0 -5
  345. package/dist/types/interfaces/services/index.d.ts +0 -4
  346. package/dist/types/interfaces/services/index.js +0 -4
  347. package/dist/types/interfaces/services/mcp/index.d.ts +0 -1
  348. package/dist/types/interfaces/services/mcp/index.js +0 -1
  349. package/dist/types/interfaces/services/mcp/service.js +0 -5
  350. package/dist/types/interfaces/storage.d.ts +0 -8
  351. package/dist/types/schemas/a2a/agent.d.ts +0 -2583
  352. package/dist/types/schemas/a2a/agent.js +0 -323
  353. package/dist/types/schemas/a2a/auth.d.ts +0 -908
  354. package/dist/types/schemas/a2a/auth.js +0 -283
  355. package/dist/types/schemas/a2a/error.d.ts +0 -396
  356. package/dist/types/schemas/a2a/error.js +0 -163
  357. package/dist/types/schemas/a2a/index.d.ts +0 -11
  358. package/dist/types/schemas/a2a/index.js +0 -11
  359. package/dist/types/schemas/a2a/kind.d.ts +0 -11
  360. package/dist/types/schemas/a2a/kind.js +0 -20
  361. package/dist/types/schemas/a2a/message.d.ts +0 -10343
  362. package/dist/types/schemas/a2a/message.js +0 -130
  363. package/dist/types/schemas/a2a/notification.d.ts +0 -1517
  364. package/dist/types/schemas/a2a/notification.js +0 -203
  365. package/dist/types/schemas/a2a/parameters.d.ts +0 -956
  366. package/dist/types/schemas/a2a/parameters.js +0 -241
  367. package/dist/types/schemas/a2a/protocol.d.ts +0 -14363
  368. package/dist/types/schemas/a2a/protocol.js +0 -59
  369. package/dist/types/schemas/a2a/rpc.d.ts +0 -182
  370. package/dist/types/schemas/a2a/rpc.js +0 -126
  371. package/dist/types/schemas/a2a/task.d.ts +0 -5886
  372. package/dist/types/schemas/a2a/task.js +0 -134
  373. package/dist/types/schemas/a2a/transport.d.ts +0 -31
  374. package/dist/types/schemas/a2a/transport.js +0 -28
  375. package/dist/types/schemas/index.d.ts +0 -1
  376. package/dist/types/schemas/index.js +0 -1
  377. package/dist/utils/logging/index.d.ts +0 -2
  378. package/dist/utils/logging/index.js +0 -2
  379. package/dist/utils/logging/log.d.ts +0 -33
  380. package/dist/utils/logging/log.js +0 -75
  381. package/dist/utils/logging/logger.d.ts +0 -18
  382. package/dist/utils/logging/logger.js +0 -18
  383. package/dist/utils/storage/memory.d.ts +0 -25
  384. package/dist/utils/storage/memory.js +0 -47
  385. /package/dist/browser/types/{interfaces/services/a2a → a2a}/builder.js +0 -0
  386. /package/dist/browser/types/{interfaces/client.js → client.js} +0 -0
  387. /package/dist/browser/types/{interfaces/services/core/managers/task.js → core/core.js} +0 -0
  388. /package/dist/browser/types/{interfaces/services/protocol.d.ts → protocol.d.ts} +0 -0
  389. /package/dist/browser/types/{interfaces/services/protocol.js → protocol.js} +0 -0
  390. /package/dist/browser/types/{interfaces/storage.js → storage.js} +0 -0
  391. /package/dist/services/a2a/{state/update → handlers}/artifact.js +0 -0
  392. /package/dist/services/a2a/{methods → handlers}/index.d.ts +0 -0
  393. /package/dist/services/a2a/{methods → handlers}/index.js +0 -0
  394. /package/dist/types/{interfaces/services/a2a → a2a}/builder.js +0 -0
  395. /package/dist/types/{interfaces/client.js → client.js} +0 -0
  396. /package/dist/types/{interfaces/services/core/managers/task.js → core/core.js} +0 -0
  397. /package/dist/types/{interfaces/services/protocol.d.ts → protocol.d.ts} +0 -0
  398. /package/dist/types/{interfaces/services/protocol.js → protocol.js} +0 -0
  399. /package/dist/types/{interfaces/storage.js → storage.js} +0 -0
@@ -1,1517 +0,0 @@
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>;