@artinet/sdk 0.5.18 → 0.6.0-preview.2

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 (434) 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 +20 -8
  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/create/agentcard-builder.d.ts +47 -0
  11. package/dist/browser/create/agentcard-builder.js +65 -0
  12. package/dist/browser/create/base.d.ts +4 -0
  13. package/dist/browser/create/describe.d.ts +8 -0
  14. package/dist/browser/create/describe.js +8 -0
  15. package/dist/browser/create/message-builder.d.ts +78 -0
  16. package/dist/browser/create/message-builder.js +108 -0
  17. package/dist/browser/create/part-builder.d.ts +60 -0
  18. package/dist/browser/create/part-builder.js +81 -0
  19. package/dist/browser/create/task-builder.d.ts +251 -0
  20. package/dist/browser/create/task-builder.js +379 -0
  21. package/dist/browser/transport/rpc/parser.d.ts +2 -2
  22. package/dist/browser/transport/rpc/parser.js +7 -6
  23. package/dist/browser/transport/rpc/rpc-client.d.ts +5 -5
  24. package/dist/browser/transport/rpc/rpc-client.js +6 -6
  25. package/dist/browser/transport/streaming/event-stream.d.ts +3 -3
  26. package/dist/browser/transport/streaming/event-stream.js +11 -10
  27. package/dist/browser/types/a2a/a2a.d.ts +382 -0
  28. package/dist/browser/types/a2a/a2a.js +14 -0
  29. package/dist/browser/types/a2a/index.d.ts +5 -0
  30. package/dist/browser/types/a2a/index.js +1 -0
  31. package/dist/browser/types/{interfaces/client.d.ts → client.d.ts} +25 -27
  32. package/dist/browser/types/core/core.d.ts +31 -0
  33. package/dist/browser/types/core/index.d.ts +1 -0
  34. package/dist/browser/types/core/index.js +1 -0
  35. package/dist/browser/types/index.d.ts +6 -3
  36. package/dist/browser/types/index.js +6 -3
  37. package/dist/browser/types/mcp/index.d.ts +1 -0
  38. package/dist/browser/types/mcp/index.js +1 -0
  39. package/dist/{types/interfaces/services/mcp/service.d.ts → browser/types/mcp/mcp.d.ts} +4 -3
  40. package/dist/browser/types/{interfaces/services/a2a/builder.js → mcp/mcp.js} +1 -1
  41. package/dist/browser/types/storage.d.ts +21 -0
  42. package/dist/browser/utils/common/constants.d.ts +2 -7
  43. package/dist/browser/utils/common/constants.js +5 -32
  44. package/dist/browser/utils/common/errors.d.ts +74 -18
  45. package/dist/browser/utils/common/errors.js +81 -28
  46. package/dist/browser/utils/common/utils.d.ts +23 -0
  47. package/dist/browser/utils/common/utils.js +32 -0
  48. package/dist/client/a2a-client.d.ts +19 -18
  49. package/dist/client/a2a-client.js +20 -8
  50. package/dist/config/default.d.ts +50 -0
  51. package/dist/config/default.js +62 -0
  52. package/dist/config/index.d.ts +158 -0
  53. package/dist/config/index.js +155 -0
  54. package/dist/config/observability.d.ts +119 -0
  55. package/dist/config/observability.js +35 -0
  56. package/dist/create/agent-builder.d.ts +77 -0
  57. package/dist/create/agent-builder.js +20 -0
  58. package/dist/create/agentcard-builder.d.ts +47 -0
  59. package/dist/create/agentcard-builder.js +66 -0
  60. package/dist/create/base.d.ts +4 -0
  61. package/dist/create/base.js +1 -0
  62. package/dist/create/create.d.ts +762 -0
  63. package/dist/create/create.js +556 -0
  64. package/dist/create/describe.d.ts +8 -0
  65. package/dist/create/describe.js +8 -0
  66. package/dist/create/index.d.ts +4 -0
  67. package/dist/create/index.js +4 -0
  68. package/dist/create/message-builder.d.ts +78 -0
  69. package/dist/create/message-builder.js +110 -0
  70. package/dist/create/part-builder.d.ts +60 -0
  71. package/dist/create/part-builder.js +84 -0
  72. package/dist/create/status-builder.d.ts +26 -0
  73. package/dist/create/status-builder.js +46 -0
  74. package/dist/create/task-builder.d.ts +251 -0
  75. package/dist/create/task-builder.js +384 -0
  76. package/dist/create/transform.d.ts +16 -0
  77. package/dist/create/transform.js +106 -0
  78. package/dist/extensions/otel.d.ts +98 -0
  79. package/dist/extensions/otel.js +190 -0
  80. package/dist/extensions/pino.d.ts +44 -0
  81. package/dist/extensions/pino.js +107 -0
  82. package/dist/extensions/winston.d.ts +47 -0
  83. package/dist/extensions/winston.js +114 -0
  84. package/dist/index.d.ts +4 -0
  85. package/dist/index.js +4 -0
  86. package/dist/server/express/errors.js +7 -11
  87. package/dist/server/express/middeware.d.ts +2 -2
  88. package/dist/server/express/middeware.js +26 -40
  89. package/dist/server/express/server.d.ts +14 -56
  90. package/dist/server/express/server.js +46 -35
  91. package/dist/services/a2a/execute.d.ts +11 -0
  92. package/dist/services/a2a/execute.js +32 -0
  93. package/dist/services/a2a/factory/context.d.ts +15 -128
  94. package/dist/services/a2a/factory/context.js +30 -136
  95. package/dist/services/a2a/factory/handler.d.ts +6 -0
  96. package/dist/services/a2a/factory/handler.js +14 -0
  97. package/dist/services/a2a/factory/index.d.ts +1 -3
  98. package/dist/services/a2a/factory/index.js +1 -3
  99. package/dist/services/a2a/factory/service.d.ts +20 -7
  100. package/dist/services/a2a/factory/service.js +5 -5
  101. package/dist/services/a2a/factory/state-machine.d.ts +11 -0
  102. package/dist/services/a2a/factory/state-machine.js +88 -0
  103. package/dist/services/a2a/handlers/artifact.d.ts +7 -0
  104. package/dist/services/a2a/handlers/artifact.js +28 -0
  105. package/dist/services/a2a/handlers/cancel-task.d.ts +11 -0
  106. package/dist/services/a2a/handlers/cancel-task.js +35 -0
  107. package/dist/services/a2a/handlers/get-task.d.ts +11 -0
  108. package/dist/services/a2a/handlers/get-task.js +13 -0
  109. package/dist/services/a2a/handlers/resubscribe-task.d.ts +19 -0
  110. package/dist/services/a2a/handlers/resubscribe-task.js +59 -0
  111. package/dist/services/a2a/handlers/send-message.d.ts +11 -0
  112. package/dist/services/a2a/handlers/send-message.js +31 -0
  113. package/dist/services/a2a/handlers/stream-message.d.ts +19 -0
  114. package/dist/services/a2a/handlers/stream-message.js +23 -0
  115. package/dist/services/a2a/handlers/update.d.ts +17 -0
  116. package/dist/services/a2a/handlers/update.js +119 -0
  117. package/dist/services/a2a/helpers/content.d.ts +6 -2
  118. package/dist/services/a2a/helpers/content.js +9 -1
  119. package/dist/services/a2a/helpers/history.d.ts +6 -2
  120. package/dist/services/a2a/helpers/history.js +4 -0
  121. package/dist/services/a2a/helpers/index.d.ts +3 -3
  122. package/dist/services/a2a/helpers/index.js +3 -3
  123. package/dist/services/a2a/helpers/part.d.ts +9 -9
  124. package/dist/services/a2a/helpers/references.d.ts +6 -0
  125. package/dist/services/a2a/helpers/references.js +22 -0
  126. package/dist/services/a2a/index.d.ts +9 -5
  127. package/dist/services/a2a/index.js +8 -5
  128. package/dist/services/a2a/managers.d.ts +23 -0
  129. package/dist/services/a2a/managers.js +101 -0
  130. package/dist/services/a2a/messenger.d.ts +35 -0
  131. package/dist/services/{core/managers/command.js → a2a/messenger.js} +27 -31
  132. package/dist/services/a2a/service.d.ts +45 -372
  133. package/dist/services/a2a/service.js +232 -84
  134. package/dist/services/a2a/state-machine.d.ts +18 -0
  135. package/dist/services/a2a/state-machine.js +78 -0
  136. package/dist/services/a2a/streams.d.ts +22 -0
  137. package/dist/services/a2a/streams.js +98 -0
  138. package/dist/services/core/index.d.ts +1 -2
  139. package/dist/services/core/index.js +1 -2
  140. package/dist/services/core/manager.d.ts +15 -0
  141. package/dist/services/core/manager.js +42 -0
  142. package/dist/services/mcp/service.d.ts +11 -15
  143. package/dist/services/mcp/service.js +16 -15
  144. package/dist/transport/index.d.ts +0 -1
  145. package/dist/transport/index.js +1 -1
  146. package/dist/transport/rpc/parser.d.ts +2 -2
  147. package/dist/transport/rpc/parser.js +7 -6
  148. package/dist/transport/rpc/rpc-client.d.ts +5 -5
  149. package/dist/transport/rpc/rpc-client.js +6 -6
  150. package/dist/transport/streaming/event-stream.d.ts +3 -3
  151. package/dist/transport/streaming/event-stream.js +11 -10
  152. package/dist/transport/trpc/a2a/factory/router.d.ts +479 -871
  153. package/dist/transport/trpc/a2a/factory/router.js +2 -2
  154. package/dist/transport/trpc/a2a/routes/info.d.ts +108 -8
  155. package/dist/transport/trpc/a2a/routes/info.js +6 -2
  156. package/dist/transport/trpc/a2a/routes/message/route.d.ts +113 -162
  157. package/dist/transport/trpc/a2a/routes/message/route.js +7 -13
  158. package/dist/transport/trpc/a2a/routes/tasks/route.d.ts +114 -212
  159. package/dist/transport/trpc/a2a/routes/tasks/route.js +16 -19
  160. package/dist/transport/trpc/a2a/trpc.d.ts +9 -253
  161. package/dist/types/a2a/a2a.d.ts +382 -0
  162. package/dist/types/a2a/a2a.js +14 -0
  163. package/dist/types/a2a/index.d.ts +5 -0
  164. package/dist/types/a2a/index.js +1 -0
  165. package/dist/types/{interfaces/client.d.ts → client.d.ts} +25 -27
  166. package/dist/types/core/core.d.ts +31 -0
  167. package/dist/types/core/core.js +1 -0
  168. package/dist/types/core/index.d.ts +1 -0
  169. package/dist/types/core/index.js +1 -0
  170. package/dist/types/index.d.ts +6 -3
  171. package/dist/types/index.js +6 -3
  172. package/dist/types/mcp/index.d.ts +1 -0
  173. package/dist/types/mcp/index.js +1 -0
  174. package/dist/{browser/types/interfaces/services/mcp/service.d.ts → types/mcp/mcp.d.ts} +4 -3
  175. package/dist/{browser/types/interfaces/services/a2a/context.js → types/mcp/mcp.js} +1 -1
  176. package/dist/types/storage.d.ts +21 -0
  177. package/dist/utils/common/constants.d.ts +2 -7
  178. package/dist/utils/common/constants.js +5 -32
  179. package/dist/utils/common/errors.d.ts +74 -18
  180. package/dist/utils/common/errors.js +81 -28
  181. package/dist/utils/common/parse.d.ts +7 -0
  182. package/dist/utils/common/parse.js +14 -0
  183. package/dist/utils/common/schema-validation.d.ts +2 -2
  184. package/dist/utils/common/schema-validation.js +7 -7
  185. package/dist/utils/common/utils.d.ts +23 -0
  186. package/dist/utils/common/utils.js +32 -0
  187. package/dist/utils/common/zAsyncIterable-v3.d.ts +1 -1
  188. package/dist/utils/common/zAsyncIterable-v3.js +2 -1
  189. package/dist/utils/index.d.ts +2 -3
  190. package/dist/utils/index.js +2 -3
  191. package/dist/utils/storage/file.d.ts +8 -17
  192. package/dist/utils/storage/file.js +44 -73
  193. package/package.json +76 -13
  194. package/dist/browser/services/a2a/helpers/message-builder.d.ts +0 -12
  195. package/dist/browser/services/a2a/helpers/message-builder.js +0 -61
  196. package/dist/browser/types/ext.d.ts +0 -13
  197. package/dist/browser/types/ext.js +0 -10
  198. package/dist/browser/types/interfaces/index.d.ts +0 -3
  199. package/dist/browser/types/interfaces/index.js +0 -3
  200. package/dist/browser/types/interfaces/services/a2a/builder.d.ts +0 -37
  201. package/dist/browser/types/interfaces/services/a2a/context.d.ts +0 -162
  202. package/dist/browser/types/interfaces/services/a2a/engine.d.ts +0 -7
  203. package/dist/browser/types/interfaces/services/a2a/engine.js +0 -5
  204. package/dist/browser/types/interfaces/services/a2a/index.d.ts +0 -5
  205. package/dist/browser/types/interfaces/services/a2a/index.js +0 -5
  206. package/dist/browser/types/interfaces/services/a2a/legacy.d.ts +0 -93
  207. package/dist/browser/types/interfaces/services/a2a/legacy.js +0 -5
  208. package/dist/browser/types/interfaces/services/a2a/service.d.ts +0 -413
  209. package/dist/browser/types/interfaces/services/a2a/service.js +0 -5
  210. package/dist/browser/types/interfaces/services/core/context/command.d.ts +0 -25
  211. package/dist/browser/types/interfaces/services/core/context/command.js +0 -5
  212. package/dist/browser/types/interfaces/services/core/context/context.d.ts +0 -207
  213. package/dist/browser/types/interfaces/services/core/context/context.js +0 -5
  214. package/dist/browser/types/interfaces/services/core/context/index.d.ts +0 -3
  215. package/dist/browser/types/interfaces/services/core/context/index.js +0 -3
  216. package/dist/browser/types/interfaces/services/core/context/types.d.ts +0 -11
  217. package/dist/browser/types/interfaces/services/core/context/types.js +0 -5
  218. package/dist/browser/types/interfaces/services/core/execution/engine.d.ts +0 -106
  219. package/dist/browser/types/interfaces/services/core/execution/engine.js +0 -5
  220. package/dist/browser/types/interfaces/services/core/execution/environment.d.ts +0 -11
  221. package/dist/browser/types/interfaces/services/core/execution/environment.js +0 -5
  222. package/dist/browser/types/interfaces/services/core/execution/execute.d.ts +0 -7
  223. package/dist/browser/types/interfaces/services/core/execution/execute.js +0 -5
  224. package/dist/browser/types/interfaces/services/core/execution/index.d.ts +0 -3
  225. package/dist/browser/types/interfaces/services/core/execution/index.js +0 -3
  226. package/dist/browser/types/interfaces/services/core/index.d.ts +0 -4
  227. package/dist/browser/types/interfaces/services/core/index.js +0 -4
  228. package/dist/browser/types/interfaces/services/core/managers/cancellation.d.ts +0 -9
  229. package/dist/browser/types/interfaces/services/core/managers/cancellation.js +0 -5
  230. package/dist/browser/types/interfaces/services/core/managers/connection.d.ts +0 -9
  231. package/dist/browser/types/interfaces/services/core/managers/connection.js +0 -5
  232. package/dist/browser/types/interfaces/services/core/managers/context.d.ts +0 -17
  233. package/dist/browser/types/interfaces/services/core/managers/context.js +0 -5
  234. package/dist/browser/types/interfaces/services/core/managers/event.d.ts +0 -328
  235. package/dist/browser/types/interfaces/services/core/managers/event.js +0 -5
  236. package/dist/browser/types/interfaces/services/core/managers/index.d.ts +0 -6
  237. package/dist/browser/types/interfaces/services/core/managers/index.js +0 -6
  238. package/dist/browser/types/interfaces/services/core/managers/stream.d.ts +0 -217
  239. package/dist/browser/types/interfaces/services/core/managers/stream.js +0 -5
  240. package/dist/browser/types/interfaces/services/core/managers/task.d.ts +0 -9
  241. package/dist/browser/types/interfaces/services/core/service.d.ts +0 -115
  242. package/dist/browser/types/interfaces/services/core/service.js +0 -5
  243. package/dist/browser/types/interfaces/services/index.d.ts +0 -4
  244. package/dist/browser/types/interfaces/services/index.js +0 -4
  245. package/dist/browser/types/interfaces/services/mcp/index.d.ts +0 -1
  246. package/dist/browser/types/interfaces/services/mcp/index.js +0 -1
  247. package/dist/browser/types/interfaces/services/mcp/service.js +0 -5
  248. package/dist/browser/types/interfaces/storage.d.ts +0 -8
  249. package/dist/browser/types/schemas/a2a/agent.d.ts +0 -2583
  250. package/dist/browser/types/schemas/a2a/agent.js +0 -323
  251. package/dist/browser/types/schemas/a2a/auth.d.ts +0 -908
  252. package/dist/browser/types/schemas/a2a/auth.js +0 -283
  253. package/dist/browser/types/schemas/a2a/error.d.ts +0 -396
  254. package/dist/browser/types/schemas/a2a/error.js +0 -163
  255. package/dist/browser/types/schemas/a2a/index.d.ts +0 -11
  256. package/dist/browser/types/schemas/a2a/index.js +0 -11
  257. package/dist/browser/types/schemas/a2a/kind.d.ts +0 -11
  258. package/dist/browser/types/schemas/a2a/kind.js +0 -20
  259. package/dist/browser/types/schemas/a2a/message.d.ts +0 -10343
  260. package/dist/browser/types/schemas/a2a/message.js +0 -130
  261. package/dist/browser/types/schemas/a2a/notification.d.ts +0 -1517
  262. package/dist/browser/types/schemas/a2a/notification.js +0 -203
  263. package/dist/browser/types/schemas/a2a/parameters.d.ts +0 -956
  264. package/dist/browser/types/schemas/a2a/parameters.js +0 -241
  265. package/dist/browser/types/schemas/a2a/protocol.d.ts +0 -14363
  266. package/dist/browser/types/schemas/a2a/protocol.js +0 -59
  267. package/dist/browser/types/schemas/a2a/rpc.d.ts +0 -182
  268. package/dist/browser/types/schemas/a2a/rpc.js +0 -126
  269. package/dist/browser/types/schemas/a2a/task.d.ts +0 -5886
  270. package/dist/browser/types/schemas/a2a/task.js +0 -134
  271. package/dist/browser/types/schemas/a2a/transport.d.ts +0 -31
  272. package/dist/browser/types/schemas/a2a/transport.js +0 -28
  273. package/dist/browser/types/schemas/index.d.ts +0 -1
  274. package/dist/browser/types/schemas/index.js +0 -1
  275. package/dist/browser/utils/logging/index.d.ts +0 -2
  276. package/dist/browser/utils/logging/index.js +0 -2
  277. package/dist/browser/utils/logging/log.d.ts +0 -33
  278. package/dist/browser/utils/logging/log.js +0 -75
  279. package/dist/browser/utils/logging/logger.d.ts +0 -18
  280. package/dist/browser/utils/logging/logger.js +0 -18
  281. package/dist/services/a2a/factory/builder.d.ts +0 -351
  282. package/dist/services/a2a/factory/builder.js +0 -365
  283. package/dist/services/a2a/factory/event.d.ts +0 -58
  284. package/dist/services/a2a/factory/event.js +0 -177
  285. package/dist/services/a2a/factory/method.d.ts +0 -6
  286. package/dist/services/a2a/factory/method.js +0 -14
  287. package/dist/services/a2a/helpers/agentcard-builder.d.ts +0 -7
  288. package/dist/services/a2a/helpers/agentcard-builder.js +0 -23
  289. package/dist/services/a2a/helpers/message-builder.d.ts +0 -12
  290. package/dist/services/a2a/helpers/message-builder.js +0 -61
  291. package/dist/services/a2a/managers/cancellation.d.ts +0 -11
  292. package/dist/services/a2a/managers/cancellation.js +0 -16
  293. package/dist/services/a2a/managers/connection.d.ts +0 -11
  294. package/dist/services/a2a/managers/connection.js +0 -16
  295. package/dist/services/a2a/managers/context.d.ts +0 -11
  296. package/dist/services/a2a/managers/context.js +0 -16
  297. package/dist/services/a2a/managers/index.d.ts +0 -5
  298. package/dist/services/a2a/managers/index.js +0 -5
  299. package/dist/services/a2a/managers/task.d.ts +0 -11
  300. package/dist/services/a2a/managers/task.js +0 -16
  301. package/dist/services/a2a/methods/cancel-task.d.ts +0 -7
  302. package/dist/services/a2a/methods/cancel-task.js +0 -43
  303. package/dist/services/a2a/methods/get-task.d.ts +0 -112
  304. package/dist/services/a2a/methods/get-task.js +0 -16
  305. package/dist/services/a2a/methods/resubscribe-task.d.ts +0 -7
  306. package/dist/services/a2a/methods/resubscribe-task.js +0 -80
  307. package/dist/services/a2a/methods/send-message.d.ts +0 -7
  308. package/dist/services/a2a/methods/send-message.js +0 -36
  309. package/dist/services/a2a/methods/stream-message.d.ts +0 -8
  310. package/dist/services/a2a/methods/stream-message.js +0 -21
  311. package/dist/services/a2a/state/index.d.ts +0 -3
  312. package/dist/services/a2a/state/index.js +0 -3
  313. package/dist/services/a2a/state/load.d.ts +0 -14
  314. package/dist/services/a2a/state/load.js +0 -71
  315. package/dist/services/a2a/state/process.d.ts +0 -7
  316. package/dist/services/a2a/state/process.js +0 -13
  317. package/dist/services/a2a/state/update/artifact.d.ts +0 -10
  318. package/dist/services/a2a/state/update/artifact.js +0 -39
  319. package/dist/services/a2a/state/update/index.d.ts +0 -2
  320. package/dist/services/a2a/state/update/index.js +0 -2
  321. package/dist/services/a2a/state/update/update.d.ts +0 -23
  322. package/dist/services/a2a/state/update/update.js +0 -123
  323. package/dist/services/core/execution/execute.d.ts +0 -6
  324. package/dist/services/core/execution/execute.js +0 -25
  325. package/dist/services/core/execution/index.d.ts +0 -1
  326. package/dist/services/core/execution/index.js +0 -1
  327. package/dist/services/core/managers/command.d.ts +0 -39
  328. package/dist/services/core/managers/event.d.ts +0 -18
  329. package/dist/services/core/managers/event.js +0 -56
  330. package/dist/services/core/managers/index.d.ts +0 -3
  331. package/dist/services/core/managers/index.js +0 -3
  332. package/dist/services/core/managers/stream.d.ts +0 -20
  333. package/dist/services/core/managers/stream.js +0 -77
  334. package/dist/types/ext.d.ts +0 -13
  335. package/dist/types/ext.js +0 -10
  336. package/dist/types/interfaces/index.d.ts +0 -3
  337. package/dist/types/interfaces/index.js +0 -3
  338. package/dist/types/interfaces/services/a2a/builder.d.ts +0 -37
  339. package/dist/types/interfaces/services/a2a/builder.js +0 -5
  340. package/dist/types/interfaces/services/a2a/context.d.ts +0 -162
  341. package/dist/types/interfaces/services/a2a/context.js +0 -5
  342. package/dist/types/interfaces/services/a2a/engine.d.ts +0 -7
  343. package/dist/types/interfaces/services/a2a/engine.js +0 -5
  344. package/dist/types/interfaces/services/a2a/index.d.ts +0 -5
  345. package/dist/types/interfaces/services/a2a/index.js +0 -5
  346. package/dist/types/interfaces/services/a2a/legacy.d.ts +0 -93
  347. package/dist/types/interfaces/services/a2a/legacy.js +0 -5
  348. package/dist/types/interfaces/services/a2a/service.d.ts +0 -413
  349. package/dist/types/interfaces/services/a2a/service.js +0 -5
  350. package/dist/types/interfaces/services/core/context/command.d.ts +0 -25
  351. package/dist/types/interfaces/services/core/context/command.js +0 -5
  352. package/dist/types/interfaces/services/core/context/context.d.ts +0 -207
  353. package/dist/types/interfaces/services/core/context/context.js +0 -5
  354. package/dist/types/interfaces/services/core/context/index.d.ts +0 -3
  355. package/dist/types/interfaces/services/core/context/index.js +0 -3
  356. package/dist/types/interfaces/services/core/context/types.d.ts +0 -11
  357. package/dist/types/interfaces/services/core/context/types.js +0 -5
  358. package/dist/types/interfaces/services/core/execution/engine.d.ts +0 -106
  359. package/dist/types/interfaces/services/core/execution/engine.js +0 -5
  360. package/dist/types/interfaces/services/core/execution/environment.d.ts +0 -11
  361. package/dist/types/interfaces/services/core/execution/environment.js +0 -5
  362. package/dist/types/interfaces/services/core/execution/execute.d.ts +0 -7
  363. package/dist/types/interfaces/services/core/execution/execute.js +0 -5
  364. package/dist/types/interfaces/services/core/execution/index.d.ts +0 -3
  365. package/dist/types/interfaces/services/core/execution/index.js +0 -3
  366. package/dist/types/interfaces/services/core/index.d.ts +0 -4
  367. package/dist/types/interfaces/services/core/index.js +0 -4
  368. package/dist/types/interfaces/services/core/managers/cancellation.d.ts +0 -9
  369. package/dist/types/interfaces/services/core/managers/cancellation.js +0 -5
  370. package/dist/types/interfaces/services/core/managers/connection.d.ts +0 -9
  371. package/dist/types/interfaces/services/core/managers/connection.js +0 -5
  372. package/dist/types/interfaces/services/core/managers/context.d.ts +0 -17
  373. package/dist/types/interfaces/services/core/managers/context.js +0 -5
  374. package/dist/types/interfaces/services/core/managers/event.d.ts +0 -328
  375. package/dist/types/interfaces/services/core/managers/event.js +0 -5
  376. package/dist/types/interfaces/services/core/managers/index.d.ts +0 -6
  377. package/dist/types/interfaces/services/core/managers/index.js +0 -6
  378. package/dist/types/interfaces/services/core/managers/stream.d.ts +0 -217
  379. package/dist/types/interfaces/services/core/managers/stream.js +0 -5
  380. package/dist/types/interfaces/services/core/managers/task.d.ts +0 -9
  381. package/dist/types/interfaces/services/core/service.d.ts +0 -115
  382. package/dist/types/interfaces/services/core/service.js +0 -5
  383. package/dist/types/interfaces/services/index.d.ts +0 -4
  384. package/dist/types/interfaces/services/index.js +0 -4
  385. package/dist/types/interfaces/services/mcp/index.d.ts +0 -1
  386. package/dist/types/interfaces/services/mcp/index.js +0 -1
  387. package/dist/types/interfaces/services/mcp/service.js +0 -5
  388. package/dist/types/interfaces/storage.d.ts +0 -8
  389. package/dist/types/schemas/a2a/agent.d.ts +0 -2583
  390. package/dist/types/schemas/a2a/agent.js +0 -323
  391. package/dist/types/schemas/a2a/auth.d.ts +0 -908
  392. package/dist/types/schemas/a2a/auth.js +0 -283
  393. package/dist/types/schemas/a2a/error.d.ts +0 -396
  394. package/dist/types/schemas/a2a/error.js +0 -163
  395. package/dist/types/schemas/a2a/index.d.ts +0 -11
  396. package/dist/types/schemas/a2a/index.js +0 -11
  397. package/dist/types/schemas/a2a/kind.d.ts +0 -11
  398. package/dist/types/schemas/a2a/kind.js +0 -20
  399. package/dist/types/schemas/a2a/message.d.ts +0 -10343
  400. package/dist/types/schemas/a2a/message.js +0 -130
  401. package/dist/types/schemas/a2a/notification.d.ts +0 -1517
  402. package/dist/types/schemas/a2a/notification.js +0 -203
  403. package/dist/types/schemas/a2a/parameters.d.ts +0 -956
  404. package/dist/types/schemas/a2a/parameters.js +0 -241
  405. package/dist/types/schemas/a2a/protocol.d.ts +0 -14363
  406. package/dist/types/schemas/a2a/protocol.js +0 -59
  407. package/dist/types/schemas/a2a/rpc.d.ts +0 -182
  408. package/dist/types/schemas/a2a/rpc.js +0 -126
  409. package/dist/types/schemas/a2a/task.d.ts +0 -5886
  410. package/dist/types/schemas/a2a/task.js +0 -134
  411. package/dist/types/schemas/a2a/transport.d.ts +0 -31
  412. package/dist/types/schemas/a2a/transport.js +0 -28
  413. package/dist/types/schemas/index.d.ts +0 -1
  414. package/dist/types/schemas/index.js +0 -1
  415. package/dist/utils/logging/index.d.ts +0 -2
  416. package/dist/utils/logging/index.js +0 -2
  417. package/dist/utils/logging/log.d.ts +0 -33
  418. package/dist/utils/logging/log.js +0 -75
  419. package/dist/utils/logging/logger.d.ts +0 -18
  420. package/dist/utils/logging/logger.js +0 -18
  421. package/dist/utils/storage/memory.d.ts +0 -25
  422. package/dist/utils/storage/memory.js +0 -47
  423. /package/dist/browser/{types/interfaces/services/core/managers/task.js → create/base.js} +0 -0
  424. /package/dist/browser/types/{interfaces/client.js → client.js} +0 -0
  425. /package/dist/{types/interfaces/services/core/managers/task.js → browser/types/core/core.js} +0 -0
  426. /package/dist/browser/types/{interfaces/services/protocol.d.ts → protocol.d.ts} +0 -0
  427. /package/dist/browser/types/{interfaces/services/protocol.js → protocol.js} +0 -0
  428. /package/dist/browser/types/{interfaces/storage.js → storage.js} +0 -0
  429. /package/dist/services/a2a/{methods → handlers}/index.d.ts +0 -0
  430. /package/dist/services/a2a/{methods → handlers}/index.js +0 -0
  431. /package/dist/types/{interfaces/client.js → client.js} +0 -0
  432. /package/dist/types/{interfaces/services/protocol.d.ts → protocol.d.ts} +0 -0
  433. /package/dist/types/{interfaces/services/protocol.js → protocol.js} +0 -0
  434. /package/dist/types/{interfaces/storage.js → storage.js} +0 -0
@@ -1,283 +0,0 @@
1
- /**
2
- * Copyright 2025 The Artinet Project
3
- * SPDX-License-Identifier: Apache-2.0
4
- */
5
- import { z } from "zod";
6
- /**
7
- * @description Type of a security scheme.
8
- */
9
- export const SecuritySchemeTypeSchema = z
10
- .enum(["apiKey", "http", "mutualTLS", "oauth2", "openIdConnect"])
11
- .describe("Type of a security scheme.");
12
- export const SecuritySchemeType = SecuritySchemeTypeSchema.enum;
13
- /**
14
- * @description Base properties shared by all security schemes.
15
- */
16
- export const SecuritySchemeBaseSchema = z
17
- .object({
18
- /**
19
- * @required Type of the security scheme.
20
- */
21
- type: SecuritySchemeTypeSchema.describe("Type of the security scheme."),
22
- /**
23
- * @optional Description of this security scheme.
24
- */
25
- description: z
26
- .string()
27
- .optional()
28
- .describe("Description of this security scheme."),
29
- })
30
- .describe("Base properties shared by all security schemes.");
31
- /**
32
- * @description Defines a security scheme using an API key.
33
- */
34
- export const APIKeySecuritySchemeSchema = SecuritySchemeBaseSchema.extend({
35
- /**
36
- * @required API Key Type of the security scheme.
37
- */
38
- type: SecuritySchemeTypeSchema.refine((type) => type === "apiKey").describe("API Key Type of the security scheme."),
39
- /**
40
- * @required The location of the API key. Valid values are "query", "header", or "cookie".
41
- */
42
- in: z
43
- .enum(["query", "header", "cookie"])
44
- .describe("The location of the API key. Valid values are 'query', 'header', or 'cookie'."),
45
- /**
46
- * @required The name of the header, query or cookie parameter to be used.
47
- */
48
- name: z
49
- .string()
50
- .describe("The name of the header, query or cookie parameter to be used."),
51
- }).describe("Defines a security scheme using an API key.");
52
- /**
53
- * @description HTTP Authentication security scheme.
54
- */
55
- export const HTTPAuthSecuritySchemeSchema = SecuritySchemeBaseSchema.extend({
56
- /**
57
- * @required HTTP Type of the security scheme.
58
- */
59
- type: SecuritySchemeTypeSchema.refine((type) => type === "http").describe("HTTP Type of the security scheme."),
60
- /**
61
- * @required The name of the HTTP Authentication scheme to be used in the Authorization header as defined
62
- * in RFC7235. The values used SHOULD be registered in the IANA Authentication Scheme registry.
63
- * The value is case-insensitive, as defined in RFC7235.
64
- */
65
- scheme: z
66
- .string()
67
- .describe("The name of the HTTP Authentication scheme to be used in the Authorization header as defined in RFC7235. The values used SHOULD be registered in the IANA Authentication Scheme registry. The value is case-insensitive, as defined in RFC7235."),
68
- /**
69
- * @optional A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually
70
- * generated by an authorization server, so this information is primarily for documentation
71
- * purposes.
72
- */
73
- bearerFormat: z
74
- .string()
75
- .optional()
76
- .describe("A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes."),
77
- });
78
- /**
79
- * @description Configuration details for a supported Authorization Code OAuth Flow
80
- */
81
- export const AuthorizationCodeOAuthFlowSchema = z
82
- .object({
83
- /**
84
- * @required The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2
85
- * standard requires the use of TLS
86
- */
87
- authorizationUrl: z
88
- .string()
89
- .url()
90
- .describe("The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS"),
91
- /**
92
- * @required The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard
93
- * requires the use of TLS.
94
- */
95
- tokenUrl: z
96
- .string()
97
- .url()
98
- .describe("The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS."),
99
- /**
100
- * @optional The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2
101
- * standard requires the use of TLS.
102
- */
103
- refreshUrl: z
104
- .string()
105
- .url()
106
- .optional()
107
- .describe("The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS."),
108
- /**
109
- * @required The available scopes for the OAuth2 security scheme. A map between the scope name and a short
110
- * description for it. The map MAY be empty.
111
- */
112
- scopes: z
113
- .record(z.string(), z.string())
114
- .describe("The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty."),
115
- })
116
- .describe("Configuration details for a supported Authorization Code OAuth Flow");
117
- /**
118
- * @description Configuration details for a supported Client Credentials OAuth Flow
119
- */
120
- export const ClientCredentialsOAuthFlowSchema = z
121
- .object({
122
- /**
123
- * @required The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard
124
- * requires the use of TLS.
125
- */
126
- tokenUrl: z
127
- .string()
128
- .url()
129
- .describe("The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS."),
130
- /**
131
- * @optional The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2
132
- * standard requires the use of TLS.
133
- */
134
- refreshUrl: z
135
- .string()
136
- .url()
137
- .optional()
138
- .describe("The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS."),
139
- /**
140
- * @required The available scopes for the OAuth2 security scheme. A map between the scope name and a short
141
- * description for it. The map MAY be empty.
142
- */
143
- scopes: z
144
- .record(z.string(), z.string())
145
- .describe("The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty."),
146
- })
147
- .describe("Configuration details for a supported Client Credentials OAuth Flow");
148
- /**
149
- * @description Configuration details for a supported Implicit OAuth Flow
150
- */
151
- export const ImplicitOAuthFlowSchema = z
152
- .object({
153
- /**
154
- * @required The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2
155
- * standard requires the use of TLS
156
- */
157
- authorizationUrl: z
158
- .string()
159
- .url()
160
- .describe("The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS"),
161
- /**
162
- * @optional The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2
163
- * standard requires the use of TLS.
164
- */
165
- refreshUrl: z
166
- .string()
167
- .url()
168
- .optional()
169
- .describe("The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS."),
170
- /**
171
- * @required The available scopes for the OAuth2 security scheme. A map between the scope name and a short
172
- * description for it. The map MAY be empty.
173
- */
174
- scopes: z
175
- .record(z.string(), z.string())
176
- .describe("The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty."),
177
- })
178
- .describe("Configuration details for a supported Implicit OAuth Flow");
179
- /**
180
- * @description Configuration details for a supported Password OAuth Flow
181
- */
182
- export const PasswordOAuthFlowSchema = z
183
- .object({
184
- /**
185
- * @required The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard
186
- * requires the use of TLS.
187
- */
188
- tokenUrl: z
189
- .string()
190
- .url()
191
- .describe("The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS."),
192
- /**
193
- * @optional The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2
194
- * standard requires the use of TLS.
195
- */
196
- refreshUrl: z
197
- .string()
198
- .url()
199
- .optional()
200
- .describe("The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS."),
201
- /**
202
- * @required The available scopes for the OAuth2 security scheme. A map between the scope name and a short
203
- * description for it. The map MAY be empty.
204
- */
205
- scopes: z
206
- .record(z.string(), z.string())
207
- .describe("The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty."),
208
- })
209
- .describe("Configuration details for a supported Password OAuth Flow");
210
- /**
211
- * @description The configuration of supported OAuth Flows
212
- */
213
- export const OAuthFlowsSchema = z
214
- .object({
215
- /**
216
- * @optional Configuration for the OAuth Authorization Code flow. Previously called accessCode in OpenAPI 2.0.
217
- */
218
- authorizationCode: AuthorizationCodeOAuthFlowSchema.optional().describe("Configuration for the OAuth Authorization Code flow"),
219
- /**
220
- * @optional Configuration for the OAuth Client Credentials flow. Previously called application in OpenAPI 2.0
221
- */
222
- clientCredentials: ClientCredentialsOAuthFlowSchema.optional().describe("Configuration for the OAuth Client Credentials flow"),
223
- /**
224
- * @optional Configuration for the OAuth Implicit flow
225
- */
226
- implicit: ImplicitOAuthFlowSchema.optional().describe("Configuration for the OAuth Implicit flow"),
227
- /**
228
- * @optional Configuration for the OAuth Resource Owner Password flow
229
- */
230
- password: PasswordOAuthFlowSchema.optional().describe("Configuration for the OAuth Resource Owner Password flow"),
231
- })
232
- .describe("The configuration of supported OAuth Flows");
233
- /**
234
- * @description OAuth2 security scheme configuration.
235
- */
236
- export const OAuth2SecuritySchemeSchema = SecuritySchemeBaseSchema.extend({
237
- /**
238
- * @required OAuth2 Type of the security scheme.
239
- */
240
- type: SecuritySchemeTypeSchema.refine((type) => type === "oauth2").describe("OAuth2 Type of the security scheme."),
241
- /**
242
- * @required An object containing configuration information for the flow types supported.
243
- */
244
- flows: OAuthFlowsSchema.describe("An object containing configuration information for the flow types supported."),
245
- /**
246
- * @optional URL to the oauth2 authorization server metadata
247
- * [RFC8414](https://datatracker.ietf.org/doc/html/rfc8414). TLS is required.
248
- */
249
- oauth2MetadataUrl: z
250
- .string()
251
- .url()
252
- .optional()
253
- .describe("URL to the oauth2 authorization server metadata"),
254
- }).describe("OAuth2 security scheme configuration.");
255
- /**
256
- * @description OpenID Connect security scheme.
257
- */
258
- export const OpenIdConnectSecuritySchemeSchema = SecuritySchemeBaseSchema.extend({
259
- /**
260
- * @required Type of the security scheme.
261
- */
262
- type: SecuritySchemeTypeSchema.refine((type) => type === "openIdConnect"),
263
- /**
264
- * @required Well-known URL to discover the [[OpenID-Connect-Discovery]] provider metadata.
265
- */
266
- openIdConnectUrl: z.string().url(),
267
- });
268
- /**
269
- * @description Mutual TLS (mTLS) security scheme.
270
- */
271
- export const MutualTLSSecuritySchemeSchema = SecuritySchemeBaseSchema.extend({
272
- /**
273
- * @required Type of the security scheme.
274
- */
275
- type: SecuritySchemeTypeSchema.refine((type) => type === "mutualTLS"),
276
- });
277
- export const SecuritySchemeSchema = z.union([
278
- APIKeySecuritySchemeSchema,
279
- HTTPAuthSecuritySchemeSchema,
280
- OAuth2SecuritySchemeSchema,
281
- OpenIdConnectSecuritySchemeSchema,
282
- MutualTLSSecuritySchemeSchema,
283
- ]);
@@ -1,396 +0,0 @@
1
- /**
2
- * Copyright 2025 The Artinet Project
3
- * SPDX-License-Identifier: Apache-2.0
4
- */
5
- import { z } from "zod";
6
- /**
7
- * @description Error code for JSON Parse Error (-32700). Invalid JSON was received by the server.
8
- */
9
- export declare const ErrorCodeParseError = -32700;
10
- export declare const JSONParseErrorSchema: z.ZodObject<{
11
- data: z.ZodOptional<z.ZodUnknown>;
12
- } & {
13
- code: z.ZodLiteral<-32700>;
14
- message: z.ZodDefault<z.ZodString>;
15
- }, "strip", z.ZodTypeAny, {
16
- message: string;
17
- code: -32700;
18
- data?: unknown;
19
- }, {
20
- code: -32700;
21
- data?: unknown;
22
- message?: string | undefined;
23
- }>;
24
- export type JSONParseError = z.infer<typeof JSONParseErrorSchema>;
25
- /**
26
- * @description Error code for Invalid Request (-32600). The JSON sent is not a valid Request object.
27
- */
28
- export declare const ErrorCodeInvalidRequest = -32600;
29
- export declare const InvalidRequestErrorSchema: z.ZodObject<{
30
- data: z.ZodOptional<z.ZodUnknown>;
31
- } & {
32
- code: z.ZodLiteral<-32600>;
33
- message: z.ZodDefault<z.ZodString>;
34
- }, "strip", z.ZodTypeAny, {
35
- message: string;
36
- code: -32600;
37
- data?: unknown;
38
- }, {
39
- code: -32600;
40
- data?: unknown;
41
- message?: string | undefined;
42
- }>;
43
- export type InvalidRequestError = z.infer<typeof InvalidRequestErrorSchema>;
44
- /**
45
- * @description Error code for Method Not Found (-32601). The method does not exist / is not available.
46
- */
47
- export declare const ErrorCodeMethodNotFound = -32601;
48
- export declare const MethodNotFoundErrorSchema: z.ZodObject<{
49
- data: z.ZodOptional<z.ZodUnknown>;
50
- } & {
51
- code: z.ZodLiteral<-32601>;
52
- message: z.ZodDefault<z.ZodString>;
53
- }, "strip", z.ZodTypeAny, {
54
- message: string;
55
- code: -32601;
56
- data?: unknown;
57
- }, {
58
- code: -32601;
59
- data?: unknown;
60
- message?: string | undefined;
61
- }>;
62
- export type MethodNotFoundError = z.infer<typeof MethodNotFoundErrorSchema>;
63
- /**
64
- * @description Error code for Invalid Params (-32602). Invalid method parameter(s).
65
- */
66
- export declare const ErrorCodeInvalidParams = -32602;
67
- export declare const InvalidParamsErrorSchema: z.ZodObject<{
68
- data: z.ZodOptional<z.ZodUnknown>;
69
- } & {
70
- code: z.ZodLiteral<-32602>;
71
- message: z.ZodDefault<z.ZodString>;
72
- }, "strip", z.ZodTypeAny, {
73
- message: string;
74
- code: -32602;
75
- data?: unknown;
76
- }, {
77
- code: -32602;
78
- data?: unknown;
79
- message?: string | undefined;
80
- }>;
81
- export type InvalidParamsError = z.infer<typeof InvalidParamsErrorSchema>;
82
- /**
83
- * @description Error code for Internal Error (-32603). Internal JSON-RPC error.
84
- */
85
- export declare const ErrorCodeInternalError = -32603;
86
- export declare const InternalErrorSchema: z.ZodObject<{
87
- data: z.ZodOptional<z.ZodUnknown>;
88
- } & {
89
- code: z.ZodLiteral<-32603>;
90
- message: z.ZodDefault<z.ZodString>;
91
- }, "strip", z.ZodTypeAny, {
92
- message: string;
93
- code: -32603;
94
- data?: unknown;
95
- }, {
96
- code: -32603;
97
- data?: unknown;
98
- message?: string | undefined;
99
- }>;
100
- export type InternalError = z.infer<typeof InternalErrorSchema>;
101
- /**
102
- * @description Error code for Task Not Found (-32001). The specified task was not found.
103
- */
104
- export declare const ErrorCodeTaskNotFound = -32001;
105
- export declare const TaskNotFoundErrorSchema: z.ZodObject<{
106
- data: z.ZodOptional<z.ZodUnknown>;
107
- } & {
108
- code: z.ZodLiteral<-32001>;
109
- message: z.ZodDefault<z.ZodString>;
110
- }, "strip", z.ZodTypeAny, {
111
- message: string;
112
- code: -32001;
113
- data?: unknown;
114
- }, {
115
- code: -32001;
116
- data?: unknown;
117
- message?: string | undefined;
118
- }>;
119
- export type TaskNotFoundError = z.infer<typeof TaskNotFoundErrorSchema>;
120
- /**
121
- * @description Error code for Task Not Cancelable (-32002). The specified task cannot be canceled.
122
- */
123
- export declare const ErrorCodeTaskNotCancelable = -32002;
124
- export declare const TaskNotCancelableErrorSchema: z.ZodObject<{
125
- data: z.ZodOptional<z.ZodUnknown>;
126
- } & {
127
- code: z.ZodLiteral<-32002>;
128
- message: z.ZodDefault<z.ZodString>;
129
- }, "strip", z.ZodTypeAny, {
130
- message: string;
131
- code: -32002;
132
- data?: unknown;
133
- }, {
134
- code: -32002;
135
- data?: unknown;
136
- message?: string | undefined;
137
- }>;
138
- export type TaskNotCancelableError = z.infer<typeof TaskNotCancelableErrorSchema>;
139
- /**
140
- * @description Error code for Push Notification Not Supported (-32003). Push Notifications are not supported for this operation or agent.
141
- */
142
- export declare const ErrorCodePushNotificationNotSupported = -32003;
143
- export declare const PushNotificationNotSupportedErrorSchema: z.ZodObject<{
144
- data: z.ZodOptional<z.ZodUnknown>;
145
- } & {
146
- code: z.ZodLiteral<-32003>;
147
- message: z.ZodDefault<z.ZodString>;
148
- }, "strip", z.ZodTypeAny, {
149
- message: string;
150
- code: -32003;
151
- data?: unknown;
152
- }, {
153
- code: -32003;
154
- data?: unknown;
155
- message?: string | undefined;
156
- }>;
157
- export type PushNotificationNotSupportedError = z.infer<typeof PushNotificationNotSupportedErrorSchema>;
158
- /**
159
- * @description Error code for Unsupported Operation (-32004). The requested operation is not supported by the agent.
160
- */
161
- export declare const ErrorCodeUnsupportedOperation = -32004;
162
- export declare const UnsupportedOperationErrorSchema: z.ZodObject<{
163
- data: z.ZodOptional<z.ZodUnknown>;
164
- } & {
165
- code: z.ZodLiteral<-32004>;
166
- message: z.ZodDefault<z.ZodString>;
167
- }, "strip", z.ZodTypeAny, {
168
- message: string;
169
- code: -32004;
170
- data?: unknown;
171
- }, {
172
- code: -32004;
173
- data?: unknown;
174
- message?: string | undefined;
175
- }>;
176
- export type UnsupportedOperationError = z.infer<typeof UnsupportedOperationErrorSchema>;
177
- /**
178
- * @description Error code for Content Type Not Supported (-32005). The requested content type is not supported by the agent.
179
- */
180
- export declare const ErrorCodeContentTypeNotSupported = -32005;
181
- export declare const ContentTypeNotSupportedErrorSchema: z.ZodObject<{
182
- data: z.ZodOptional<z.ZodUnknown>;
183
- } & {
184
- code: z.ZodLiteral<-32005>;
185
- message: z.ZodDefault<z.ZodString>;
186
- }, "strip", z.ZodTypeAny, {
187
- message: string;
188
- code: -32005;
189
- data?: unknown;
190
- }, {
191
- code: -32005;
192
- data?: unknown;
193
- message?: string | undefined;
194
- }>;
195
- export type ContentTypeNotSupportedError = z.infer<typeof ContentTypeNotSupportedErrorSchema>;
196
- /**
197
- * @description Error code for Invalid Agent Response (-32006). The agent returned an invalid response for the current method.
198
- */
199
- export declare const ErrorCodeInvalidAgentResponse = -32006;
200
- export declare const InvalidAgentResponseErrorSchema: z.ZodObject<{
201
- data: z.ZodOptional<z.ZodUnknown>;
202
- } & {
203
- code: z.ZodLiteral<-32006>;
204
- message: z.ZodDefault<z.ZodString>;
205
- }, "strip", z.ZodTypeAny, {
206
- message: string;
207
- code: -32006;
208
- data?: unknown;
209
- }, {
210
- code: -32006;
211
- data?: unknown;
212
- message?: string | undefined;
213
- }>;
214
- export type InvalidAgentResponseError = z.infer<typeof InvalidAgentResponseErrorSchema>;
215
- /**
216
- * An A2A-specific error indicating that the agent does not have an Authenticated Extended Card configured
217
- */
218
- export declare const ErrorCodeAuthenticatedExtendedCardNotConfigured = -32007;
219
- export declare const AuthenticatedExtendedCardNotConfiguredErrorSchema: z.ZodObject<{
220
- data: z.ZodOptional<z.ZodUnknown>;
221
- } & {
222
- code: z.ZodLiteral<-32007>;
223
- message: z.ZodDefault<z.ZodString>;
224
- }, "strip", z.ZodTypeAny, {
225
- message: string;
226
- code: -32007;
227
- data?: unknown;
228
- }, {
229
- code: -32007;
230
- data?: unknown;
231
- message?: string | undefined;
232
- }>;
233
- export type AuthenticatedExtendedCardNotConfiguredError = z.infer<typeof AuthenticatedExtendedCardNotConfiguredErrorSchema>;
234
- /**
235
- * Union of all well-known A2A and standard JSON-RPC error codes defined in this schema.
236
- */
237
- export declare const KnownErrorCodeSchema: z.ZodUnion<[z.ZodLiteral<-32700>, z.ZodLiteral<-32600>, z.ZodLiteral<-32601>, z.ZodLiteral<-32602>, z.ZodLiteral<-32603>, z.ZodLiteral<-32001>, z.ZodLiteral<-32002>, z.ZodLiteral<-32003>, z.ZodLiteral<-32004>, z.ZodLiteral<-32005>, z.ZodLiteral<-32006>, z.ZodLiteral<-32007>]>;
238
- export type KnownErrorCode = z.infer<typeof KnownErrorCodeSchema>;
239
- export declare const A2AErrorSchema: z.ZodUnion<[z.ZodObject<{
240
- data: z.ZodOptional<z.ZodUnknown>;
241
- } & {
242
- code: z.ZodLiteral<-32700>;
243
- message: z.ZodDefault<z.ZodString>;
244
- }, "strip", z.ZodTypeAny, {
245
- message: string;
246
- code: -32700;
247
- data?: unknown;
248
- }, {
249
- code: -32700;
250
- data?: unknown;
251
- message?: string | undefined;
252
- }>, z.ZodObject<{
253
- data: z.ZodOptional<z.ZodUnknown>;
254
- } & {
255
- code: z.ZodLiteral<-32600>;
256
- message: z.ZodDefault<z.ZodString>;
257
- }, "strip", z.ZodTypeAny, {
258
- message: string;
259
- code: -32600;
260
- data?: unknown;
261
- }, {
262
- code: -32600;
263
- data?: unknown;
264
- message?: string | undefined;
265
- }>, z.ZodObject<{
266
- data: z.ZodOptional<z.ZodUnknown>;
267
- } & {
268
- code: z.ZodLiteral<-32601>;
269
- message: z.ZodDefault<z.ZodString>;
270
- }, "strip", z.ZodTypeAny, {
271
- message: string;
272
- code: -32601;
273
- data?: unknown;
274
- }, {
275
- code: -32601;
276
- data?: unknown;
277
- message?: string | undefined;
278
- }>, z.ZodObject<{
279
- data: z.ZodOptional<z.ZodUnknown>;
280
- } & {
281
- code: z.ZodLiteral<-32602>;
282
- message: z.ZodDefault<z.ZodString>;
283
- }, "strip", z.ZodTypeAny, {
284
- message: string;
285
- code: -32602;
286
- data?: unknown;
287
- }, {
288
- code: -32602;
289
- data?: unknown;
290
- message?: string | undefined;
291
- }>, z.ZodObject<{
292
- data: z.ZodOptional<z.ZodUnknown>;
293
- } & {
294
- code: z.ZodLiteral<-32603>;
295
- message: z.ZodDefault<z.ZodString>;
296
- }, "strip", z.ZodTypeAny, {
297
- message: string;
298
- code: -32603;
299
- data?: unknown;
300
- }, {
301
- code: -32603;
302
- data?: unknown;
303
- message?: string | undefined;
304
- }>, z.ZodObject<{
305
- data: z.ZodOptional<z.ZodUnknown>;
306
- } & {
307
- code: z.ZodLiteral<-32001>;
308
- message: z.ZodDefault<z.ZodString>;
309
- }, "strip", z.ZodTypeAny, {
310
- message: string;
311
- code: -32001;
312
- data?: unknown;
313
- }, {
314
- code: -32001;
315
- data?: unknown;
316
- message?: string | undefined;
317
- }>, z.ZodObject<{
318
- data: z.ZodOptional<z.ZodUnknown>;
319
- } & {
320
- code: z.ZodLiteral<-32002>;
321
- message: z.ZodDefault<z.ZodString>;
322
- }, "strip", z.ZodTypeAny, {
323
- message: string;
324
- code: -32002;
325
- data?: unknown;
326
- }, {
327
- code: -32002;
328
- data?: unknown;
329
- message?: string | undefined;
330
- }>, z.ZodObject<{
331
- data: z.ZodOptional<z.ZodUnknown>;
332
- } & {
333
- code: z.ZodLiteral<-32003>;
334
- message: z.ZodDefault<z.ZodString>;
335
- }, "strip", z.ZodTypeAny, {
336
- message: string;
337
- code: -32003;
338
- data?: unknown;
339
- }, {
340
- code: -32003;
341
- data?: unknown;
342
- message?: string | undefined;
343
- }>, z.ZodObject<{
344
- data: z.ZodOptional<z.ZodUnknown>;
345
- } & {
346
- code: z.ZodLiteral<-32004>;
347
- message: z.ZodDefault<z.ZodString>;
348
- }, "strip", z.ZodTypeAny, {
349
- message: string;
350
- code: -32004;
351
- data?: unknown;
352
- }, {
353
- code: -32004;
354
- data?: unknown;
355
- message?: string | undefined;
356
- }>, z.ZodObject<{
357
- data: z.ZodOptional<z.ZodUnknown>;
358
- } & {
359
- code: z.ZodLiteral<-32005>;
360
- message: z.ZodDefault<z.ZodString>;
361
- }, "strip", z.ZodTypeAny, {
362
- message: string;
363
- code: -32005;
364
- data?: unknown;
365
- }, {
366
- code: -32005;
367
- data?: unknown;
368
- message?: string | undefined;
369
- }>, z.ZodObject<{
370
- data: z.ZodOptional<z.ZodUnknown>;
371
- } & {
372
- code: z.ZodLiteral<-32006>;
373
- message: z.ZodDefault<z.ZodString>;
374
- }, "strip", z.ZodTypeAny, {
375
- message: string;
376
- code: -32006;
377
- data?: unknown;
378
- }, {
379
- code: -32006;
380
- data?: unknown;
381
- message?: string | undefined;
382
- }>, z.ZodObject<{
383
- data: z.ZodOptional<z.ZodUnknown>;
384
- } & {
385
- code: z.ZodLiteral<-32007>;
386
- message: z.ZodDefault<z.ZodString>;
387
- }, "strip", z.ZodTypeAny, {
388
- message: string;
389
- code: -32007;
390
- data?: unknown;
391
- }, {
392
- code: -32007;
393
- data?: unknown;
394
- message?: string | undefined;
395
- }>]>;
396
- export type A2AError = z.infer<typeof A2AErrorSchema>;