@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,2583 +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 Represents the provider or organization behind an agent.
8
- */
9
- export declare const AgentProviderSchema: z.ZodObject<{
10
- /**
11
- * @required The name of the organization providing the agent.
12
- */
13
- organization: z.ZodString;
14
- /**
15
- * @required URL associated with the agent provider.
16
- */
17
- url: z.ZodString;
18
- }, "strip", z.ZodTypeAny, {
19
- url: string;
20
- organization: string;
21
- }, {
22
- url: string;
23
- organization: string;
24
- }>;
25
- export type AgentProvider = z.infer<typeof AgentProviderSchema>;
26
- /**
27
- * @description A declaration of an extension supported by an Agent.
28
- */
29
- export declare const AgentExtensionSchema: z.ZodObject<{
30
- /**
31
- * @required The URI of the extension.
32
- */
33
- uri: z.ZodString;
34
- /**
35
- * @optional A description of how this agent uses this extension.
36
- */
37
- description: z.ZodOptional<z.ZodString>;
38
- /**
39
- * @optional Whether the client must follow specific requirements of the extension.
40
- */
41
- required: z.ZodOptional<z.ZodBoolean>;
42
- /**
43
- * @optional Optional configuration for the extension.
44
- */
45
- params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
46
- }, "strip", z.ZodTypeAny, {
47
- uri: string;
48
- params?: Record<string, unknown> | undefined;
49
- description?: string | undefined;
50
- required?: boolean | undefined;
51
- }, {
52
- uri: string;
53
- params?: Record<string, unknown> | undefined;
54
- description?: string | undefined;
55
- required?: boolean | undefined;
56
- }>;
57
- export type AgentExtension = z.infer<typeof AgentExtensionSchema>;
58
- /**
59
- * @description Defines optional capabilities supported by an agent.
60
- */
61
- export declare const AgentCapabilitiesSchema: z.ZodObject<{
62
- /**
63
- * @optional Indicates if the agent supports streaming responses.
64
- */
65
- streaming: z.ZodOptional<z.ZodBoolean>;
66
- /**
67
- * @optional Indicates if the agent supports push notification mechanisms.
68
- */
69
- pushNotifications: z.ZodOptional<z.ZodBoolean>;
70
- /**
71
- * @optional Indicates if the agent supports providing state transition history.
72
- */
73
- stateTransitionHistory: z.ZodOptional<z.ZodBoolean>;
74
- /**
75
- * @optional Extensions supported by this agent.
76
- */
77
- extensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
78
- /**
79
- * @required The URI of the extension.
80
- */
81
- uri: z.ZodString;
82
- /**
83
- * @optional A description of how this agent uses this extension.
84
- */
85
- description: z.ZodOptional<z.ZodString>;
86
- /**
87
- * @optional Whether the client must follow specific requirements of the extension.
88
- */
89
- required: z.ZodOptional<z.ZodBoolean>;
90
- /**
91
- * @optional Optional configuration for the extension.
92
- */
93
- params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
94
- }, "strip", z.ZodTypeAny, {
95
- uri: string;
96
- params?: Record<string, unknown> | undefined;
97
- description?: string | undefined;
98
- required?: boolean | undefined;
99
- }, {
100
- uri: string;
101
- params?: Record<string, unknown> | undefined;
102
- description?: string | undefined;
103
- required?: boolean | undefined;
104
- }>, "many">>;
105
- }, "strip", z.ZodTypeAny, {
106
- extensions?: {
107
- uri: string;
108
- params?: Record<string, unknown> | undefined;
109
- description?: string | undefined;
110
- required?: boolean | undefined;
111
- }[] | undefined;
112
- streaming?: boolean | undefined;
113
- pushNotifications?: boolean | undefined;
114
- stateTransitionHistory?: boolean | undefined;
115
- }, {
116
- extensions?: {
117
- uri: string;
118
- params?: Record<string, unknown> | undefined;
119
- description?: string | undefined;
120
- required?: boolean | undefined;
121
- }[] | undefined;
122
- streaming?: boolean | undefined;
123
- pushNotifications?: boolean | undefined;
124
- stateTransitionHistory?: boolean | undefined;
125
- }>;
126
- export type AgentCapabilities = z.infer<typeof AgentCapabilitiesSchema>;
127
- /**
128
- * @description Represents a unit of capability that an agent can perform.
129
- */
130
- export declare const AgentSkillSchema: z.ZodObject<{
131
- /**
132
- * @required Unique identifier for the skill.
133
- */
134
- id: z.ZodString;
135
- /**
136
- * @required Human-readable name of the skill.
137
- */
138
- name: z.ZodString;
139
- /**
140
- * @required Description of the skill.
141
- */
142
- description: z.ZodString;
143
- /**
144
- * @required List of tags associated with the skill for categorization.
145
- */
146
- tags: z.ZodArray<z.ZodString, "many">;
147
- /**
148
- * @optional List of example inputs or use cases for the skill.
149
- */
150
- examples: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
151
- /**
152
- * @optional List of input modes supported by this skill.
153
- */
154
- inputModes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
155
- /**
156
- * @optional List of output modes supported by this skill.
157
- */
158
- outputModes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
159
- /**
160
- * @optional Security schemes necessary for the agent to leverage this skill.
161
- */
162
- security: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>, "many">>;
163
- }, "strip", z.ZodTypeAny, {
164
- description: string;
165
- name: string;
166
- id: string;
167
- tags: string[];
168
- examples?: string[] | undefined;
169
- inputModes?: string[] | undefined;
170
- outputModes?: string[] | undefined;
171
- security?: Record<string, string[]>[] | undefined;
172
- }, {
173
- description: string;
174
- name: string;
175
- id: string;
176
- tags: string[];
177
- examples?: string[] | undefined;
178
- inputModes?: string[] | undefined;
179
- outputModes?: string[] | undefined;
180
- security?: Record<string, string[]>[] | undefined;
181
- }>;
182
- export type AgentSkill = z.infer<typeof AgentSkillSchema>;
183
- /**
184
- * @description AgentCardSignature represents a JWS signature of an AgentCard.
185
- */
186
- export declare const AgentCardSignatureSchema: z.ZodObject<{
187
- /**
188
- * @required The protected JWS header for the signature.
189
- */
190
- protected: z.ZodString;
191
- /**
192
- * @required The computed signature, Base64url-encoded.
193
- */
194
- signature: z.ZodString;
195
- /**
196
- * @optional The unprotected JWS header values.
197
- */
198
- header: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
199
- }, "strip", z.ZodTypeAny, {
200
- protected: string;
201
- signature: string;
202
- header?: Record<string, unknown> | undefined;
203
- }, {
204
- protected: string;
205
- signature: string;
206
- header?: Record<string, unknown> | undefined;
207
- }>;
208
- export type AgentCardSignature = z.infer<typeof AgentCardSignatureSchema>;
209
- /**
210
- * @description An AgentCard conveys key information about an agent's identity,
211
- * capabilities, skills, authentication requirements, and communication modalities.
212
- */
213
- export declare const AgentCardSchema: z.ZodObject<{
214
- /**
215
- * @required The version of the A2A protocol this agent supports.
216
- */
217
- protocolVersion: z.ZodDefault<z.ZodString>;
218
- /**
219
- * @required Human readable name of the agent.
220
- */
221
- name: z.ZodString;
222
- /**
223
- * @required A human-readable description of the agent.
224
- */
225
- description: z.ZodString;
226
- /**
227
- * @required The preferred endpoint URL for interacting with the agent.
228
- */
229
- url: z.ZodString;
230
- /**
231
- * @optional The transport protocol for the preferred endpoint.
232
- */
233
- preferredTransport: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["JSONRPC", "GRPC", "HTTP+JSON"]>, z.ZodString]>>;
234
- /**
235
- * @optional Additional supported interfaces (transport and URL combinations).
236
- */
237
- additionalInterfaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
238
- url: z.ZodString;
239
- transport: z.ZodUnion<[z.ZodEnum<["JSONRPC", "GRPC", "HTTP+JSON"]>, z.ZodString]>;
240
- }, "strip", z.ZodTypeAny, {
241
- url: string;
242
- transport: string;
243
- }, {
244
- url: string;
245
- transport: string;
246
- }>, "many">>;
247
- /**
248
- * @optional The URL of the agent's icon.
249
- */
250
- iconUrl: z.ZodOptional<z.ZodString>;
251
- /**
252
- * @optional The service provider of the agent.
253
- */
254
- provider: z.ZodOptional<z.ZodObject<{
255
- /**
256
- * @required The name of the organization providing the agent.
257
- */
258
- organization: z.ZodString;
259
- /**
260
- * @required URL associated with the agent provider.
261
- */
262
- url: z.ZodString;
263
- }, "strip", z.ZodTypeAny, {
264
- url: string;
265
- organization: string;
266
- }, {
267
- url: string;
268
- organization: string;
269
- }>>;
270
- /**
271
- * @required The version identifier for the agent or its API.
272
- */
273
- version: z.ZodString;
274
- /**
275
- * @optional An optional URL pointing to the agent's documentation.
276
- */
277
- documentationUrl: z.ZodOptional<z.ZodString>;
278
- /**
279
- * @required The capabilities supported by the agent.
280
- */
281
- capabilities: z.ZodObject<{
282
- /**
283
- * @optional Indicates if the agent supports streaming responses.
284
- */
285
- streaming: z.ZodOptional<z.ZodBoolean>;
286
- /**
287
- * @optional Indicates if the agent supports push notification mechanisms.
288
- */
289
- pushNotifications: z.ZodOptional<z.ZodBoolean>;
290
- /**
291
- * @optional Indicates if the agent supports providing state transition history.
292
- */
293
- stateTransitionHistory: z.ZodOptional<z.ZodBoolean>;
294
- /**
295
- * @optional Extensions supported by this agent.
296
- */
297
- extensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
298
- /**
299
- * @required The URI of the extension.
300
- */
301
- uri: z.ZodString;
302
- /**
303
- * @optional A description of how this agent uses this extension.
304
- */
305
- description: z.ZodOptional<z.ZodString>;
306
- /**
307
- * @optional Whether the client must follow specific requirements of the extension.
308
- */
309
- required: z.ZodOptional<z.ZodBoolean>;
310
- /**
311
- * @optional Optional configuration for the extension.
312
- */
313
- params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
314
- }, "strip", z.ZodTypeAny, {
315
- uri: string;
316
- params?: Record<string, unknown> | undefined;
317
- description?: string | undefined;
318
- required?: boolean | undefined;
319
- }, {
320
- uri: string;
321
- params?: Record<string, unknown> | undefined;
322
- description?: string | undefined;
323
- required?: boolean | undefined;
324
- }>, "many">>;
325
- }, "strip", z.ZodTypeAny, {
326
- extensions?: {
327
- uri: string;
328
- params?: Record<string, unknown> | undefined;
329
- description?: string | undefined;
330
- required?: boolean | undefined;
331
- }[] | undefined;
332
- streaming?: boolean | undefined;
333
- pushNotifications?: boolean | undefined;
334
- stateTransitionHistory?: boolean | undefined;
335
- }, {
336
- extensions?: {
337
- uri: string;
338
- params?: Record<string, unknown> | undefined;
339
- description?: string | undefined;
340
- required?: boolean | undefined;
341
- }[] | undefined;
342
- streaming?: boolean | undefined;
343
- pushNotifications?: boolean | undefined;
344
- stateTransitionHistory?: boolean | undefined;
345
- }>;
346
- /**
347
- * @optional Security scheme details used for authenticating with this agent.
348
- * Maps scheme names to their configurations.
349
- */
350
- securitySchemes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
351
- description: z.ZodOptional<z.ZodString>;
352
- } & {
353
- type: z.ZodEffects<z.ZodEnum<["apiKey", "http", "mutualTLS", "oauth2", "openIdConnect"]>, "apiKey", "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect">;
354
- in: z.ZodEnum<["query", "header", "cookie"]>;
355
- name: z.ZodString;
356
- }, "strip", z.ZodTypeAny, {
357
- type: "apiKey";
358
- in: "query" | "header" | "cookie";
359
- name: string;
360
- description?: string | undefined;
361
- }, {
362
- type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
363
- in: "query" | "header" | "cookie";
364
- name: string;
365
- description?: string | undefined;
366
- }>, z.ZodObject<{
367
- description: z.ZodOptional<z.ZodString>;
368
- } & {
369
- type: z.ZodEffects<z.ZodEnum<["apiKey", "http", "mutualTLS", "oauth2", "openIdConnect"]>, "http", "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect">;
370
- scheme: z.ZodString;
371
- bearerFormat: z.ZodOptional<z.ZodString>;
372
- }, "strip", z.ZodTypeAny, {
373
- type: "http";
374
- scheme: string;
375
- description?: string | undefined;
376
- bearerFormat?: string | undefined;
377
- }, {
378
- type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
379
- scheme: string;
380
- description?: string | undefined;
381
- bearerFormat?: string | undefined;
382
- }>, z.ZodObject<{
383
- description: z.ZodOptional<z.ZodString>;
384
- } & {
385
- type: z.ZodEffects<z.ZodEnum<["apiKey", "http", "mutualTLS", "oauth2", "openIdConnect"]>, "oauth2", "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect">;
386
- flows: z.ZodObject<{
387
- authorizationCode: z.ZodOptional<z.ZodObject<{
388
- authorizationUrl: z.ZodString;
389
- tokenUrl: z.ZodString;
390
- refreshUrl: z.ZodOptional<z.ZodString>;
391
- scopes: z.ZodRecord<z.ZodString, z.ZodString>;
392
- }, "strip", z.ZodTypeAny, {
393
- authorizationUrl: string;
394
- tokenUrl: string;
395
- scopes: Record<string, string>;
396
- refreshUrl?: string | undefined;
397
- }, {
398
- authorizationUrl: string;
399
- tokenUrl: string;
400
- scopes: Record<string, string>;
401
- refreshUrl?: string | undefined;
402
- }>>;
403
- clientCredentials: z.ZodOptional<z.ZodObject<{
404
- tokenUrl: z.ZodString;
405
- refreshUrl: z.ZodOptional<z.ZodString>;
406
- scopes: z.ZodRecord<z.ZodString, z.ZodString>;
407
- }, "strip", z.ZodTypeAny, {
408
- tokenUrl: string;
409
- scopes: Record<string, string>;
410
- refreshUrl?: string | undefined;
411
- }, {
412
- tokenUrl: string;
413
- scopes: Record<string, string>;
414
- refreshUrl?: string | undefined;
415
- }>>;
416
- implicit: z.ZodOptional<z.ZodObject<{
417
- authorizationUrl: z.ZodString;
418
- refreshUrl: z.ZodOptional<z.ZodString>;
419
- scopes: z.ZodRecord<z.ZodString, z.ZodString>;
420
- }, "strip", z.ZodTypeAny, {
421
- authorizationUrl: string;
422
- scopes: Record<string, string>;
423
- refreshUrl?: string | undefined;
424
- }, {
425
- authorizationUrl: string;
426
- scopes: Record<string, string>;
427
- refreshUrl?: string | undefined;
428
- }>>;
429
- password: z.ZodOptional<z.ZodObject<{
430
- tokenUrl: z.ZodString;
431
- refreshUrl: z.ZodOptional<z.ZodString>;
432
- scopes: z.ZodRecord<z.ZodString, z.ZodString>;
433
- }, "strip", z.ZodTypeAny, {
434
- tokenUrl: string;
435
- scopes: Record<string, string>;
436
- refreshUrl?: string | undefined;
437
- }, {
438
- tokenUrl: string;
439
- scopes: Record<string, string>;
440
- refreshUrl?: string | undefined;
441
- }>>;
442
- }, "strip", z.ZodTypeAny, {
443
- authorizationCode?: {
444
- authorizationUrl: string;
445
- tokenUrl: string;
446
- scopes: Record<string, string>;
447
- refreshUrl?: string | undefined;
448
- } | undefined;
449
- clientCredentials?: {
450
- tokenUrl: string;
451
- scopes: Record<string, string>;
452
- refreshUrl?: string | undefined;
453
- } | undefined;
454
- implicit?: {
455
- authorizationUrl: string;
456
- scopes: Record<string, string>;
457
- refreshUrl?: string | undefined;
458
- } | undefined;
459
- password?: {
460
- tokenUrl: string;
461
- scopes: Record<string, string>;
462
- refreshUrl?: string | undefined;
463
- } | undefined;
464
- }, {
465
- authorizationCode?: {
466
- authorizationUrl: string;
467
- tokenUrl: string;
468
- scopes: Record<string, string>;
469
- refreshUrl?: string | undefined;
470
- } | undefined;
471
- clientCredentials?: {
472
- tokenUrl: string;
473
- scopes: Record<string, string>;
474
- refreshUrl?: string | undefined;
475
- } | undefined;
476
- implicit?: {
477
- authorizationUrl: string;
478
- scopes: Record<string, string>;
479
- refreshUrl?: string | undefined;
480
- } | undefined;
481
- password?: {
482
- tokenUrl: string;
483
- scopes: Record<string, string>;
484
- refreshUrl?: string | undefined;
485
- } | undefined;
486
- }>;
487
- oauth2MetadataUrl: z.ZodOptional<z.ZodString>;
488
- }, "strip", z.ZodTypeAny, {
489
- type: "oauth2";
490
- flows: {
491
- authorizationCode?: {
492
- authorizationUrl: string;
493
- tokenUrl: string;
494
- scopes: Record<string, string>;
495
- refreshUrl?: string | undefined;
496
- } | undefined;
497
- clientCredentials?: {
498
- tokenUrl: string;
499
- scopes: Record<string, string>;
500
- refreshUrl?: string | undefined;
501
- } | undefined;
502
- implicit?: {
503
- authorizationUrl: string;
504
- scopes: Record<string, string>;
505
- refreshUrl?: string | undefined;
506
- } | undefined;
507
- password?: {
508
- tokenUrl: string;
509
- scopes: Record<string, string>;
510
- refreshUrl?: string | undefined;
511
- } | undefined;
512
- };
513
- description?: string | undefined;
514
- oauth2MetadataUrl?: string | undefined;
515
- }, {
516
- type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
517
- flows: {
518
- authorizationCode?: {
519
- authorizationUrl: string;
520
- tokenUrl: string;
521
- scopes: Record<string, string>;
522
- refreshUrl?: string | undefined;
523
- } | undefined;
524
- clientCredentials?: {
525
- tokenUrl: string;
526
- scopes: Record<string, string>;
527
- refreshUrl?: string | undefined;
528
- } | undefined;
529
- implicit?: {
530
- authorizationUrl: string;
531
- scopes: Record<string, string>;
532
- refreshUrl?: string | undefined;
533
- } | undefined;
534
- password?: {
535
- tokenUrl: string;
536
- scopes: Record<string, string>;
537
- refreshUrl?: string | undefined;
538
- } | undefined;
539
- };
540
- description?: string | undefined;
541
- oauth2MetadataUrl?: string | undefined;
542
- }>, z.ZodObject<{
543
- description: z.ZodOptional<z.ZodString>;
544
- } & {
545
- type: z.ZodEffects<z.ZodEnum<["apiKey", "http", "mutualTLS", "oauth2", "openIdConnect"]>, "openIdConnect", "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect">;
546
- openIdConnectUrl: z.ZodString;
547
- }, "strip", z.ZodTypeAny, {
548
- type: "openIdConnect";
549
- openIdConnectUrl: string;
550
- description?: string | undefined;
551
- }, {
552
- type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
553
- openIdConnectUrl: string;
554
- description?: string | undefined;
555
- }>, z.ZodObject<{
556
- description: z.ZodOptional<z.ZodString>;
557
- } & {
558
- type: z.ZodEffects<z.ZodEnum<["apiKey", "http", "mutualTLS", "oauth2", "openIdConnect"]>, "mutualTLS", "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect">;
559
- }, "strip", z.ZodTypeAny, {
560
- type: "mutualTLS";
561
- description?: string | undefined;
562
- }, {
563
- type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
564
- description?: string | undefined;
565
- }>]>>>;
566
- /**
567
- * @optional Security requirements for contacting the agent.
568
- * Array of security requirement objects, where each object maps scheme names to scope arrays.
569
- */
570
- security: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>, "many">>;
571
- /**
572
- * @required The default input modes supported by the agent.
573
- */
574
- defaultInputModes: z.ZodArray<z.ZodString, "many">;
575
- /**
576
- * @required The default output modes supported by the agent.
577
- */
578
- defaultOutputModes: z.ZodArray<z.ZodString, "many">;
579
- /**
580
- * @required List of specific skills offered by the agent.
581
- */
582
- skills: z.ZodArray<z.ZodObject<{
583
- /**
584
- * @required Unique identifier for the skill.
585
- */
586
- id: z.ZodString;
587
- /**
588
- * @required Human-readable name of the skill.
589
- */
590
- name: z.ZodString;
591
- /**
592
- * @required Description of the skill.
593
- */
594
- description: z.ZodString;
595
- /**
596
- * @required List of tags associated with the skill for categorization.
597
- */
598
- tags: z.ZodArray<z.ZodString, "many">;
599
- /**
600
- * @optional List of example inputs or use cases for the skill.
601
- */
602
- examples: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
603
- /**
604
- * @optional List of input modes supported by this skill.
605
- */
606
- inputModes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
607
- /**
608
- * @optional List of output modes supported by this skill.
609
- */
610
- outputModes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
611
- /**
612
- * @optional Security schemes necessary for the agent to leverage this skill.
613
- */
614
- security: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>, "many">>;
615
- }, "strip", z.ZodTypeAny, {
616
- description: string;
617
- name: string;
618
- id: string;
619
- tags: string[];
620
- examples?: string[] | undefined;
621
- inputModes?: string[] | undefined;
622
- outputModes?: string[] | undefined;
623
- security?: Record<string, string[]>[] | undefined;
624
- }, {
625
- description: string;
626
- name: string;
627
- id: string;
628
- tags: string[];
629
- examples?: string[] | undefined;
630
- inputModes?: string[] | undefined;
631
- outputModes?: string[] | undefined;
632
- security?: Record<string, string[]>[] | undefined;
633
- }>, "many">;
634
- /**
635
- * @optional True if the agent supports providing an extended agent card when the user is authenticated.
636
- */
637
- supportsAuthenticatedExtendedCard: z.ZodOptional<z.ZodBoolean>;
638
- /**
639
- * @optional JSON Web Signatures computed for this AgentCard.
640
- */
641
- signatures: z.ZodOptional<z.ZodArray<z.ZodObject<{
642
- /**
643
- * @required The protected JWS header for the signature.
644
- */
645
- protected: z.ZodString;
646
- /**
647
- * @required The computed signature, Base64url-encoded.
648
- */
649
- signature: z.ZodString;
650
- /**
651
- * @optional The unprotected JWS header values.
652
- */
653
- header: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
654
- }, "strip", z.ZodTypeAny, {
655
- protected: string;
656
- signature: string;
657
- header?: Record<string, unknown> | undefined;
658
- }, {
659
- protected: string;
660
- signature: string;
661
- header?: Record<string, unknown> | undefined;
662
- }>, "many">>;
663
- }, "strip", z.ZodTypeAny, {
664
- description: string;
665
- name: string;
666
- url: string;
667
- protocolVersion: string;
668
- version: string;
669
- capabilities: {
670
- extensions?: {
671
- uri: string;
672
- params?: Record<string, unknown> | undefined;
673
- description?: string | undefined;
674
- required?: boolean | undefined;
675
- }[] | undefined;
676
- streaming?: boolean | undefined;
677
- pushNotifications?: boolean | undefined;
678
- stateTransitionHistory?: boolean | undefined;
679
- };
680
- defaultInputModes: string[];
681
- defaultOutputModes: string[];
682
- skills: {
683
- description: string;
684
- name: string;
685
- id: string;
686
- tags: string[];
687
- examples?: string[] | undefined;
688
- inputModes?: string[] | undefined;
689
- outputModes?: string[] | undefined;
690
- security?: Record<string, string[]>[] | undefined;
691
- }[];
692
- security?: Record<string, string[]>[] | undefined;
693
- preferredTransport?: string | undefined;
694
- additionalInterfaces?: {
695
- url: string;
696
- transport: string;
697
- }[] | undefined;
698
- iconUrl?: string | undefined;
699
- provider?: {
700
- url: string;
701
- organization: string;
702
- } | undefined;
703
- documentationUrl?: string | undefined;
704
- securitySchemes?: Record<string, {
705
- type: "apiKey";
706
- in: "query" | "header" | "cookie";
707
- name: string;
708
- description?: string | undefined;
709
- } | {
710
- type: "http";
711
- scheme: string;
712
- description?: string | undefined;
713
- bearerFormat?: string | undefined;
714
- } | {
715
- type: "oauth2";
716
- flows: {
717
- authorizationCode?: {
718
- authorizationUrl: string;
719
- tokenUrl: string;
720
- scopes: Record<string, string>;
721
- refreshUrl?: string | undefined;
722
- } | undefined;
723
- clientCredentials?: {
724
- tokenUrl: string;
725
- scopes: Record<string, string>;
726
- refreshUrl?: string | undefined;
727
- } | undefined;
728
- implicit?: {
729
- authorizationUrl: string;
730
- scopes: Record<string, string>;
731
- refreshUrl?: string | undefined;
732
- } | undefined;
733
- password?: {
734
- tokenUrl: string;
735
- scopes: Record<string, string>;
736
- refreshUrl?: string | undefined;
737
- } | undefined;
738
- };
739
- description?: string | undefined;
740
- oauth2MetadataUrl?: string | undefined;
741
- } | {
742
- type: "openIdConnect";
743
- openIdConnectUrl: string;
744
- description?: string | undefined;
745
- } | {
746
- type: "mutualTLS";
747
- description?: string | undefined;
748
- }> | undefined;
749
- supportsAuthenticatedExtendedCard?: boolean | undefined;
750
- signatures?: {
751
- protected: string;
752
- signature: string;
753
- header?: Record<string, unknown> | undefined;
754
- }[] | undefined;
755
- }, {
756
- description: string;
757
- name: string;
758
- url: string;
759
- version: string;
760
- capabilities: {
761
- extensions?: {
762
- uri: string;
763
- params?: Record<string, unknown> | undefined;
764
- description?: string | undefined;
765
- required?: boolean | undefined;
766
- }[] | undefined;
767
- streaming?: boolean | undefined;
768
- pushNotifications?: boolean | undefined;
769
- stateTransitionHistory?: boolean | undefined;
770
- };
771
- defaultInputModes: string[];
772
- defaultOutputModes: string[];
773
- skills: {
774
- description: string;
775
- name: string;
776
- id: string;
777
- tags: string[];
778
- examples?: string[] | undefined;
779
- inputModes?: string[] | undefined;
780
- outputModes?: string[] | undefined;
781
- security?: Record<string, string[]>[] | undefined;
782
- }[];
783
- security?: Record<string, string[]>[] | undefined;
784
- protocolVersion?: string | undefined;
785
- preferredTransport?: string | undefined;
786
- additionalInterfaces?: {
787
- url: string;
788
- transport: string;
789
- }[] | undefined;
790
- iconUrl?: string | undefined;
791
- provider?: {
792
- url: string;
793
- organization: string;
794
- } | undefined;
795
- documentationUrl?: string | undefined;
796
- securitySchemes?: Record<string, {
797
- type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
798
- in: "query" | "header" | "cookie";
799
- name: string;
800
- description?: string | undefined;
801
- } | {
802
- type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
803
- scheme: string;
804
- description?: string | undefined;
805
- bearerFormat?: string | undefined;
806
- } | {
807
- type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
808
- flows: {
809
- authorizationCode?: {
810
- authorizationUrl: string;
811
- tokenUrl: string;
812
- scopes: Record<string, string>;
813
- refreshUrl?: string | undefined;
814
- } | undefined;
815
- clientCredentials?: {
816
- tokenUrl: string;
817
- scopes: Record<string, string>;
818
- refreshUrl?: string | undefined;
819
- } | undefined;
820
- implicit?: {
821
- authorizationUrl: string;
822
- scopes: Record<string, string>;
823
- refreshUrl?: string | undefined;
824
- } | undefined;
825
- password?: {
826
- tokenUrl: string;
827
- scopes: Record<string, string>;
828
- refreshUrl?: string | undefined;
829
- } | undefined;
830
- };
831
- description?: string | undefined;
832
- oauth2MetadataUrl?: string | undefined;
833
- } | {
834
- type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
835
- openIdConnectUrl: string;
836
- description?: string | undefined;
837
- } | {
838
- type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
839
- description?: string | undefined;
840
- }> | undefined;
841
- supportsAuthenticatedExtendedCard?: boolean | undefined;
842
- signatures?: {
843
- protected: string;
844
- signature: string;
845
- header?: Record<string, unknown> | undefined;
846
- }[] | undefined;
847
- }>;
848
- export type AgentCard = z.infer<typeof AgentCardSchema>;
849
- /**
850
- * @description Request to get an authenticated extended card.
851
- */
852
- export declare const GetAuthenticatedExtendedCardRequestSchema: z.ZodObject<{
853
- jsonrpc: z.ZodLiteral<"2.0">;
854
- id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
855
- } & {
856
- method: z.ZodLiteral<"agent/getAuthenticatedExtendedCard">;
857
- params: z.ZodOptional<z.ZodNever>;
858
- }, "strip", z.ZodTypeAny, {
859
- jsonrpc: "2.0";
860
- id: string | number;
861
- method: "agent/getAuthenticatedExtendedCard";
862
- params?: undefined;
863
- }, {
864
- jsonrpc: "2.0";
865
- id: string | number;
866
- method: "agent/getAuthenticatedExtendedCard";
867
- params?: undefined;
868
- }>;
869
- export type GetAuthenticatedExtendedCardRequest = z.infer<typeof GetAuthenticatedExtendedCardRequestSchema>;
870
- /**
871
- * @description JSON-RPC success response model for the 'agent/getAuthenticatedExtendedCard' method.
872
- */
873
- export declare const GetAuthenticatedExtendedCardSuccessResponseSchema: z.ZodObject<{
874
- jsonrpc: z.ZodLiteral<"2.0">;
875
- id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
876
- error: z.ZodOptional<z.ZodNever>;
877
- } & {
878
- result: z.ZodObject<{
879
- /**
880
- * @required The version of the A2A protocol this agent supports.
881
- */
882
- protocolVersion: z.ZodDefault<z.ZodString>;
883
- /**
884
- * @required Human readable name of the agent.
885
- */
886
- name: z.ZodString;
887
- /**
888
- * @required A human-readable description of the agent.
889
- */
890
- description: z.ZodString;
891
- /**
892
- * @required The preferred endpoint URL for interacting with the agent.
893
- */
894
- url: z.ZodString;
895
- /**
896
- * @optional The transport protocol for the preferred endpoint.
897
- */
898
- preferredTransport: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["JSONRPC", "GRPC", "HTTP+JSON"]>, z.ZodString]>>;
899
- /**
900
- * @optional Additional supported interfaces (transport and URL combinations).
901
- */
902
- additionalInterfaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
903
- url: z.ZodString;
904
- transport: z.ZodUnion<[z.ZodEnum<["JSONRPC", "GRPC", "HTTP+JSON"]>, z.ZodString]>;
905
- }, "strip", z.ZodTypeAny, {
906
- url: string;
907
- transport: string;
908
- }, {
909
- url: string;
910
- transport: string;
911
- }>, "many">>;
912
- /**
913
- * @optional The URL of the agent's icon.
914
- */
915
- iconUrl: z.ZodOptional<z.ZodString>;
916
- /**
917
- * @optional The service provider of the agent.
918
- */
919
- provider: z.ZodOptional<z.ZodObject<{
920
- /**
921
- * @required The name of the organization providing the agent.
922
- */
923
- organization: z.ZodString;
924
- /**
925
- * @required URL associated with the agent provider.
926
- */
927
- url: z.ZodString;
928
- }, "strip", z.ZodTypeAny, {
929
- url: string;
930
- organization: string;
931
- }, {
932
- url: string;
933
- organization: string;
934
- }>>;
935
- /**
936
- * @required The version identifier for the agent or its API.
937
- */
938
- version: z.ZodString;
939
- /**
940
- * @optional An optional URL pointing to the agent's documentation.
941
- */
942
- documentationUrl: z.ZodOptional<z.ZodString>;
943
- /**
944
- * @required The capabilities supported by the agent.
945
- */
946
- capabilities: z.ZodObject<{
947
- /**
948
- * @optional Indicates if the agent supports streaming responses.
949
- */
950
- streaming: z.ZodOptional<z.ZodBoolean>;
951
- /**
952
- * @optional Indicates if the agent supports push notification mechanisms.
953
- */
954
- pushNotifications: z.ZodOptional<z.ZodBoolean>;
955
- /**
956
- * @optional Indicates if the agent supports providing state transition history.
957
- */
958
- stateTransitionHistory: z.ZodOptional<z.ZodBoolean>;
959
- /**
960
- * @optional Extensions supported by this agent.
961
- */
962
- extensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
963
- /**
964
- * @required The URI of the extension.
965
- */
966
- uri: z.ZodString;
967
- /**
968
- * @optional A description of how this agent uses this extension.
969
- */
970
- description: z.ZodOptional<z.ZodString>;
971
- /**
972
- * @optional Whether the client must follow specific requirements of the extension.
973
- */
974
- required: z.ZodOptional<z.ZodBoolean>;
975
- /**
976
- * @optional Optional configuration for the extension.
977
- */
978
- params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
979
- }, "strip", z.ZodTypeAny, {
980
- uri: string;
981
- params?: Record<string, unknown> | undefined;
982
- description?: string | undefined;
983
- required?: boolean | undefined;
984
- }, {
985
- uri: string;
986
- params?: Record<string, unknown> | undefined;
987
- description?: string | undefined;
988
- required?: boolean | undefined;
989
- }>, "many">>;
990
- }, "strip", z.ZodTypeAny, {
991
- extensions?: {
992
- uri: string;
993
- params?: Record<string, unknown> | undefined;
994
- description?: string | undefined;
995
- required?: boolean | undefined;
996
- }[] | undefined;
997
- streaming?: boolean | undefined;
998
- pushNotifications?: boolean | undefined;
999
- stateTransitionHistory?: boolean | undefined;
1000
- }, {
1001
- extensions?: {
1002
- uri: string;
1003
- params?: Record<string, unknown> | undefined;
1004
- description?: string | undefined;
1005
- required?: boolean | undefined;
1006
- }[] | undefined;
1007
- streaming?: boolean | undefined;
1008
- pushNotifications?: boolean | undefined;
1009
- stateTransitionHistory?: boolean | undefined;
1010
- }>;
1011
- /**
1012
- * @optional Security scheme details used for authenticating with this agent.
1013
- * Maps scheme names to their configurations.
1014
- */
1015
- securitySchemes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
1016
- description: z.ZodOptional<z.ZodString>;
1017
- } & {
1018
- type: z.ZodEffects<z.ZodEnum<["apiKey", "http", "mutualTLS", "oauth2", "openIdConnect"]>, "apiKey", "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect">;
1019
- in: z.ZodEnum<["query", "header", "cookie"]>;
1020
- name: z.ZodString;
1021
- }, "strip", z.ZodTypeAny, {
1022
- type: "apiKey";
1023
- in: "query" | "header" | "cookie";
1024
- name: string;
1025
- description?: string | undefined;
1026
- }, {
1027
- type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
1028
- in: "query" | "header" | "cookie";
1029
- name: string;
1030
- description?: string | undefined;
1031
- }>, z.ZodObject<{
1032
- description: z.ZodOptional<z.ZodString>;
1033
- } & {
1034
- type: z.ZodEffects<z.ZodEnum<["apiKey", "http", "mutualTLS", "oauth2", "openIdConnect"]>, "http", "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect">;
1035
- scheme: z.ZodString;
1036
- bearerFormat: z.ZodOptional<z.ZodString>;
1037
- }, "strip", z.ZodTypeAny, {
1038
- type: "http";
1039
- scheme: string;
1040
- description?: string | undefined;
1041
- bearerFormat?: string | undefined;
1042
- }, {
1043
- type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
1044
- scheme: string;
1045
- description?: string | undefined;
1046
- bearerFormat?: string | undefined;
1047
- }>, z.ZodObject<{
1048
- description: z.ZodOptional<z.ZodString>;
1049
- } & {
1050
- type: z.ZodEffects<z.ZodEnum<["apiKey", "http", "mutualTLS", "oauth2", "openIdConnect"]>, "oauth2", "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect">;
1051
- flows: z.ZodObject<{
1052
- authorizationCode: z.ZodOptional<z.ZodObject<{
1053
- authorizationUrl: z.ZodString;
1054
- tokenUrl: z.ZodString;
1055
- refreshUrl: z.ZodOptional<z.ZodString>;
1056
- scopes: z.ZodRecord<z.ZodString, z.ZodString>;
1057
- }, "strip", z.ZodTypeAny, {
1058
- authorizationUrl: string;
1059
- tokenUrl: string;
1060
- scopes: Record<string, string>;
1061
- refreshUrl?: string | undefined;
1062
- }, {
1063
- authorizationUrl: string;
1064
- tokenUrl: string;
1065
- scopes: Record<string, string>;
1066
- refreshUrl?: string | undefined;
1067
- }>>;
1068
- clientCredentials: z.ZodOptional<z.ZodObject<{
1069
- tokenUrl: z.ZodString;
1070
- refreshUrl: z.ZodOptional<z.ZodString>;
1071
- scopes: z.ZodRecord<z.ZodString, z.ZodString>;
1072
- }, "strip", z.ZodTypeAny, {
1073
- tokenUrl: string;
1074
- scopes: Record<string, string>;
1075
- refreshUrl?: string | undefined;
1076
- }, {
1077
- tokenUrl: string;
1078
- scopes: Record<string, string>;
1079
- refreshUrl?: string | undefined;
1080
- }>>;
1081
- implicit: z.ZodOptional<z.ZodObject<{
1082
- authorizationUrl: z.ZodString;
1083
- refreshUrl: z.ZodOptional<z.ZodString>;
1084
- scopes: z.ZodRecord<z.ZodString, z.ZodString>;
1085
- }, "strip", z.ZodTypeAny, {
1086
- authorizationUrl: string;
1087
- scopes: Record<string, string>;
1088
- refreshUrl?: string | undefined;
1089
- }, {
1090
- authorizationUrl: string;
1091
- scopes: Record<string, string>;
1092
- refreshUrl?: string | undefined;
1093
- }>>;
1094
- password: z.ZodOptional<z.ZodObject<{
1095
- tokenUrl: z.ZodString;
1096
- refreshUrl: z.ZodOptional<z.ZodString>;
1097
- scopes: z.ZodRecord<z.ZodString, z.ZodString>;
1098
- }, "strip", z.ZodTypeAny, {
1099
- tokenUrl: string;
1100
- scopes: Record<string, string>;
1101
- refreshUrl?: string | undefined;
1102
- }, {
1103
- tokenUrl: string;
1104
- scopes: Record<string, string>;
1105
- refreshUrl?: string | undefined;
1106
- }>>;
1107
- }, "strip", z.ZodTypeAny, {
1108
- authorizationCode?: {
1109
- authorizationUrl: string;
1110
- tokenUrl: string;
1111
- scopes: Record<string, string>;
1112
- refreshUrl?: string | undefined;
1113
- } | undefined;
1114
- clientCredentials?: {
1115
- tokenUrl: string;
1116
- scopes: Record<string, string>;
1117
- refreshUrl?: string | undefined;
1118
- } | undefined;
1119
- implicit?: {
1120
- authorizationUrl: string;
1121
- scopes: Record<string, string>;
1122
- refreshUrl?: string | undefined;
1123
- } | undefined;
1124
- password?: {
1125
- tokenUrl: string;
1126
- scopes: Record<string, string>;
1127
- refreshUrl?: string | undefined;
1128
- } | undefined;
1129
- }, {
1130
- authorizationCode?: {
1131
- authorizationUrl: string;
1132
- tokenUrl: string;
1133
- scopes: Record<string, string>;
1134
- refreshUrl?: string | undefined;
1135
- } | undefined;
1136
- clientCredentials?: {
1137
- tokenUrl: string;
1138
- scopes: Record<string, string>;
1139
- refreshUrl?: string | undefined;
1140
- } | undefined;
1141
- implicit?: {
1142
- authorizationUrl: string;
1143
- scopes: Record<string, string>;
1144
- refreshUrl?: string | undefined;
1145
- } | undefined;
1146
- password?: {
1147
- tokenUrl: string;
1148
- scopes: Record<string, string>;
1149
- refreshUrl?: string | undefined;
1150
- } | undefined;
1151
- }>;
1152
- oauth2MetadataUrl: z.ZodOptional<z.ZodString>;
1153
- }, "strip", z.ZodTypeAny, {
1154
- type: "oauth2";
1155
- flows: {
1156
- authorizationCode?: {
1157
- authorizationUrl: string;
1158
- tokenUrl: string;
1159
- scopes: Record<string, string>;
1160
- refreshUrl?: string | undefined;
1161
- } | undefined;
1162
- clientCredentials?: {
1163
- tokenUrl: string;
1164
- scopes: Record<string, string>;
1165
- refreshUrl?: string | undefined;
1166
- } | undefined;
1167
- implicit?: {
1168
- authorizationUrl: string;
1169
- scopes: Record<string, string>;
1170
- refreshUrl?: string | undefined;
1171
- } | undefined;
1172
- password?: {
1173
- tokenUrl: string;
1174
- scopes: Record<string, string>;
1175
- refreshUrl?: string | undefined;
1176
- } | undefined;
1177
- };
1178
- description?: string | undefined;
1179
- oauth2MetadataUrl?: string | undefined;
1180
- }, {
1181
- type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
1182
- flows: {
1183
- authorizationCode?: {
1184
- authorizationUrl: string;
1185
- tokenUrl: string;
1186
- scopes: Record<string, string>;
1187
- refreshUrl?: string | undefined;
1188
- } | undefined;
1189
- clientCredentials?: {
1190
- tokenUrl: string;
1191
- scopes: Record<string, string>;
1192
- refreshUrl?: string | undefined;
1193
- } | undefined;
1194
- implicit?: {
1195
- authorizationUrl: string;
1196
- scopes: Record<string, string>;
1197
- refreshUrl?: string | undefined;
1198
- } | undefined;
1199
- password?: {
1200
- tokenUrl: string;
1201
- scopes: Record<string, string>;
1202
- refreshUrl?: string | undefined;
1203
- } | undefined;
1204
- };
1205
- description?: string | undefined;
1206
- oauth2MetadataUrl?: string | undefined;
1207
- }>, z.ZodObject<{
1208
- description: z.ZodOptional<z.ZodString>;
1209
- } & {
1210
- type: z.ZodEffects<z.ZodEnum<["apiKey", "http", "mutualTLS", "oauth2", "openIdConnect"]>, "openIdConnect", "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect">;
1211
- openIdConnectUrl: z.ZodString;
1212
- }, "strip", z.ZodTypeAny, {
1213
- type: "openIdConnect";
1214
- openIdConnectUrl: string;
1215
- description?: string | undefined;
1216
- }, {
1217
- type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
1218
- openIdConnectUrl: string;
1219
- description?: string | undefined;
1220
- }>, z.ZodObject<{
1221
- description: z.ZodOptional<z.ZodString>;
1222
- } & {
1223
- type: z.ZodEffects<z.ZodEnum<["apiKey", "http", "mutualTLS", "oauth2", "openIdConnect"]>, "mutualTLS", "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect">;
1224
- }, "strip", z.ZodTypeAny, {
1225
- type: "mutualTLS";
1226
- description?: string | undefined;
1227
- }, {
1228
- type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
1229
- description?: string | undefined;
1230
- }>]>>>;
1231
- /**
1232
- * @optional Security requirements for contacting the agent.
1233
- * Array of security requirement objects, where each object maps scheme names to scope arrays.
1234
- */
1235
- security: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>, "many">>;
1236
- /**
1237
- * @required The default input modes supported by the agent.
1238
- */
1239
- defaultInputModes: z.ZodArray<z.ZodString, "many">;
1240
- /**
1241
- * @required The default output modes supported by the agent.
1242
- */
1243
- defaultOutputModes: z.ZodArray<z.ZodString, "many">;
1244
- /**
1245
- * @required List of specific skills offered by the agent.
1246
- */
1247
- skills: z.ZodArray<z.ZodObject<{
1248
- /**
1249
- * @required Unique identifier for the skill.
1250
- */
1251
- id: z.ZodString;
1252
- /**
1253
- * @required Human-readable name of the skill.
1254
- */
1255
- name: z.ZodString;
1256
- /**
1257
- * @required Description of the skill.
1258
- */
1259
- description: z.ZodString;
1260
- /**
1261
- * @required List of tags associated with the skill for categorization.
1262
- */
1263
- tags: z.ZodArray<z.ZodString, "many">;
1264
- /**
1265
- * @optional List of example inputs or use cases for the skill.
1266
- */
1267
- examples: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1268
- /**
1269
- * @optional List of input modes supported by this skill.
1270
- */
1271
- inputModes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1272
- /**
1273
- * @optional List of output modes supported by this skill.
1274
- */
1275
- outputModes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1276
- /**
1277
- * @optional Security schemes necessary for the agent to leverage this skill.
1278
- */
1279
- security: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>, "many">>;
1280
- }, "strip", z.ZodTypeAny, {
1281
- description: string;
1282
- name: string;
1283
- id: string;
1284
- tags: string[];
1285
- examples?: string[] | undefined;
1286
- inputModes?: string[] | undefined;
1287
- outputModes?: string[] | undefined;
1288
- security?: Record<string, string[]>[] | undefined;
1289
- }, {
1290
- description: string;
1291
- name: string;
1292
- id: string;
1293
- tags: string[];
1294
- examples?: string[] | undefined;
1295
- inputModes?: string[] | undefined;
1296
- outputModes?: string[] | undefined;
1297
- security?: Record<string, string[]>[] | undefined;
1298
- }>, "many">;
1299
- /**
1300
- * @optional True if the agent supports providing an extended agent card when the user is authenticated.
1301
- */
1302
- supportsAuthenticatedExtendedCard: z.ZodOptional<z.ZodBoolean>;
1303
- /**
1304
- * @optional JSON Web Signatures computed for this AgentCard.
1305
- */
1306
- signatures: z.ZodOptional<z.ZodArray<z.ZodObject<{
1307
- /**
1308
- * @required The protected JWS header for the signature.
1309
- */
1310
- protected: z.ZodString;
1311
- /**
1312
- * @required The computed signature, Base64url-encoded.
1313
- */
1314
- signature: z.ZodString;
1315
- /**
1316
- * @optional The unprotected JWS header values.
1317
- */
1318
- header: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1319
- }, "strip", z.ZodTypeAny, {
1320
- protected: string;
1321
- signature: string;
1322
- header?: Record<string, unknown> | undefined;
1323
- }, {
1324
- protected: string;
1325
- signature: string;
1326
- header?: Record<string, unknown> | undefined;
1327
- }>, "many">>;
1328
- }, "strip", z.ZodTypeAny, {
1329
- description: string;
1330
- name: string;
1331
- url: string;
1332
- protocolVersion: string;
1333
- version: string;
1334
- capabilities: {
1335
- extensions?: {
1336
- uri: string;
1337
- params?: Record<string, unknown> | undefined;
1338
- description?: string | undefined;
1339
- required?: boolean | undefined;
1340
- }[] | undefined;
1341
- streaming?: boolean | undefined;
1342
- pushNotifications?: boolean | undefined;
1343
- stateTransitionHistory?: boolean | undefined;
1344
- };
1345
- defaultInputModes: string[];
1346
- defaultOutputModes: string[];
1347
- skills: {
1348
- description: string;
1349
- name: string;
1350
- id: string;
1351
- tags: string[];
1352
- examples?: string[] | undefined;
1353
- inputModes?: string[] | undefined;
1354
- outputModes?: string[] | undefined;
1355
- security?: Record<string, string[]>[] | undefined;
1356
- }[];
1357
- security?: Record<string, string[]>[] | undefined;
1358
- preferredTransport?: string | undefined;
1359
- additionalInterfaces?: {
1360
- url: string;
1361
- transport: string;
1362
- }[] | undefined;
1363
- iconUrl?: string | undefined;
1364
- provider?: {
1365
- url: string;
1366
- organization: string;
1367
- } | undefined;
1368
- documentationUrl?: string | undefined;
1369
- securitySchemes?: Record<string, {
1370
- type: "apiKey";
1371
- in: "query" | "header" | "cookie";
1372
- name: string;
1373
- description?: string | undefined;
1374
- } | {
1375
- type: "http";
1376
- scheme: string;
1377
- description?: string | undefined;
1378
- bearerFormat?: string | undefined;
1379
- } | {
1380
- type: "oauth2";
1381
- flows: {
1382
- authorizationCode?: {
1383
- authorizationUrl: string;
1384
- tokenUrl: string;
1385
- scopes: Record<string, string>;
1386
- refreshUrl?: string | undefined;
1387
- } | undefined;
1388
- clientCredentials?: {
1389
- tokenUrl: string;
1390
- scopes: Record<string, string>;
1391
- refreshUrl?: string | undefined;
1392
- } | undefined;
1393
- implicit?: {
1394
- authorizationUrl: string;
1395
- scopes: Record<string, string>;
1396
- refreshUrl?: string | undefined;
1397
- } | undefined;
1398
- password?: {
1399
- tokenUrl: string;
1400
- scopes: Record<string, string>;
1401
- refreshUrl?: string | undefined;
1402
- } | undefined;
1403
- };
1404
- description?: string | undefined;
1405
- oauth2MetadataUrl?: string | undefined;
1406
- } | {
1407
- type: "openIdConnect";
1408
- openIdConnectUrl: string;
1409
- description?: string | undefined;
1410
- } | {
1411
- type: "mutualTLS";
1412
- description?: string | undefined;
1413
- }> | undefined;
1414
- supportsAuthenticatedExtendedCard?: boolean | undefined;
1415
- signatures?: {
1416
- protected: string;
1417
- signature: string;
1418
- header?: Record<string, unknown> | undefined;
1419
- }[] | undefined;
1420
- }, {
1421
- description: string;
1422
- name: string;
1423
- url: string;
1424
- version: string;
1425
- capabilities: {
1426
- extensions?: {
1427
- uri: string;
1428
- params?: Record<string, unknown> | undefined;
1429
- description?: string | undefined;
1430
- required?: boolean | undefined;
1431
- }[] | undefined;
1432
- streaming?: boolean | undefined;
1433
- pushNotifications?: boolean | undefined;
1434
- stateTransitionHistory?: boolean | undefined;
1435
- };
1436
- defaultInputModes: string[];
1437
- defaultOutputModes: string[];
1438
- skills: {
1439
- description: string;
1440
- name: string;
1441
- id: string;
1442
- tags: string[];
1443
- examples?: string[] | undefined;
1444
- inputModes?: string[] | undefined;
1445
- outputModes?: string[] | undefined;
1446
- security?: Record<string, string[]>[] | undefined;
1447
- }[];
1448
- security?: Record<string, string[]>[] | undefined;
1449
- protocolVersion?: string | undefined;
1450
- preferredTransport?: string | undefined;
1451
- additionalInterfaces?: {
1452
- url: string;
1453
- transport: string;
1454
- }[] | undefined;
1455
- iconUrl?: string | undefined;
1456
- provider?: {
1457
- url: string;
1458
- organization: string;
1459
- } | undefined;
1460
- documentationUrl?: string | undefined;
1461
- securitySchemes?: Record<string, {
1462
- type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
1463
- in: "query" | "header" | "cookie";
1464
- name: string;
1465
- description?: string | undefined;
1466
- } | {
1467
- type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
1468
- scheme: string;
1469
- description?: string | undefined;
1470
- bearerFormat?: string | undefined;
1471
- } | {
1472
- type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
1473
- flows: {
1474
- authorizationCode?: {
1475
- authorizationUrl: string;
1476
- tokenUrl: string;
1477
- scopes: Record<string, string>;
1478
- refreshUrl?: string | undefined;
1479
- } | undefined;
1480
- clientCredentials?: {
1481
- tokenUrl: string;
1482
- scopes: Record<string, string>;
1483
- refreshUrl?: string | undefined;
1484
- } | undefined;
1485
- implicit?: {
1486
- authorizationUrl: string;
1487
- scopes: Record<string, string>;
1488
- refreshUrl?: string | undefined;
1489
- } | undefined;
1490
- password?: {
1491
- tokenUrl: string;
1492
- scopes: Record<string, string>;
1493
- refreshUrl?: string | undefined;
1494
- } | undefined;
1495
- };
1496
- description?: string | undefined;
1497
- oauth2MetadataUrl?: string | undefined;
1498
- } | {
1499
- type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
1500
- openIdConnectUrl: string;
1501
- description?: string | undefined;
1502
- } | {
1503
- type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
1504
- description?: string | undefined;
1505
- }> | undefined;
1506
- supportsAuthenticatedExtendedCard?: boolean | undefined;
1507
- signatures?: {
1508
- protected: string;
1509
- signature: string;
1510
- header?: Record<string, unknown> | undefined;
1511
- }[] | undefined;
1512
- }>;
1513
- }, "strip", z.ZodTypeAny, {
1514
- jsonrpc: "2.0";
1515
- result: {
1516
- description: string;
1517
- name: string;
1518
- url: string;
1519
- protocolVersion: string;
1520
- version: string;
1521
- capabilities: {
1522
- extensions?: {
1523
- uri: string;
1524
- params?: Record<string, unknown> | undefined;
1525
- description?: string | undefined;
1526
- required?: boolean | undefined;
1527
- }[] | undefined;
1528
- streaming?: boolean | undefined;
1529
- pushNotifications?: boolean | undefined;
1530
- stateTransitionHistory?: boolean | undefined;
1531
- };
1532
- defaultInputModes: string[];
1533
- defaultOutputModes: string[];
1534
- skills: {
1535
- description: string;
1536
- name: string;
1537
- id: string;
1538
- tags: string[];
1539
- examples?: string[] | undefined;
1540
- inputModes?: string[] | undefined;
1541
- outputModes?: string[] | undefined;
1542
- security?: Record<string, string[]>[] | undefined;
1543
- }[];
1544
- security?: Record<string, string[]>[] | undefined;
1545
- preferredTransport?: string | undefined;
1546
- additionalInterfaces?: {
1547
- url: string;
1548
- transport: string;
1549
- }[] | undefined;
1550
- iconUrl?: string | undefined;
1551
- provider?: {
1552
- url: string;
1553
- organization: string;
1554
- } | undefined;
1555
- documentationUrl?: string | undefined;
1556
- securitySchemes?: Record<string, {
1557
- type: "apiKey";
1558
- in: "query" | "header" | "cookie";
1559
- name: string;
1560
- description?: string | undefined;
1561
- } | {
1562
- type: "http";
1563
- scheme: string;
1564
- description?: string | undefined;
1565
- bearerFormat?: string | undefined;
1566
- } | {
1567
- type: "oauth2";
1568
- flows: {
1569
- authorizationCode?: {
1570
- authorizationUrl: string;
1571
- tokenUrl: string;
1572
- scopes: Record<string, string>;
1573
- refreshUrl?: string | undefined;
1574
- } | undefined;
1575
- clientCredentials?: {
1576
- tokenUrl: string;
1577
- scopes: Record<string, string>;
1578
- refreshUrl?: string | undefined;
1579
- } | undefined;
1580
- implicit?: {
1581
- authorizationUrl: string;
1582
- scopes: Record<string, string>;
1583
- refreshUrl?: string | undefined;
1584
- } | undefined;
1585
- password?: {
1586
- tokenUrl: string;
1587
- scopes: Record<string, string>;
1588
- refreshUrl?: string | undefined;
1589
- } | undefined;
1590
- };
1591
- description?: string | undefined;
1592
- oauth2MetadataUrl?: string | undefined;
1593
- } | {
1594
- type: "openIdConnect";
1595
- openIdConnectUrl: string;
1596
- description?: string | undefined;
1597
- } | {
1598
- type: "mutualTLS";
1599
- description?: string | undefined;
1600
- }> | undefined;
1601
- supportsAuthenticatedExtendedCard?: boolean | undefined;
1602
- signatures?: {
1603
- protected: string;
1604
- signature: string;
1605
- header?: Record<string, unknown> | undefined;
1606
- }[] | undefined;
1607
- };
1608
- id?: string | number | undefined;
1609
- error?: undefined;
1610
- }, {
1611
- jsonrpc: "2.0";
1612
- result: {
1613
- description: string;
1614
- name: string;
1615
- url: string;
1616
- version: string;
1617
- capabilities: {
1618
- extensions?: {
1619
- uri: string;
1620
- params?: Record<string, unknown> | undefined;
1621
- description?: string | undefined;
1622
- required?: boolean | undefined;
1623
- }[] | undefined;
1624
- streaming?: boolean | undefined;
1625
- pushNotifications?: boolean | undefined;
1626
- stateTransitionHistory?: boolean | undefined;
1627
- };
1628
- defaultInputModes: string[];
1629
- defaultOutputModes: string[];
1630
- skills: {
1631
- description: string;
1632
- name: string;
1633
- id: string;
1634
- tags: string[];
1635
- examples?: string[] | undefined;
1636
- inputModes?: string[] | undefined;
1637
- outputModes?: string[] | undefined;
1638
- security?: Record<string, string[]>[] | undefined;
1639
- }[];
1640
- security?: Record<string, string[]>[] | undefined;
1641
- protocolVersion?: string | undefined;
1642
- preferredTransport?: string | undefined;
1643
- additionalInterfaces?: {
1644
- url: string;
1645
- transport: string;
1646
- }[] | undefined;
1647
- iconUrl?: string | undefined;
1648
- provider?: {
1649
- url: string;
1650
- organization: string;
1651
- } | undefined;
1652
- documentationUrl?: string | undefined;
1653
- securitySchemes?: Record<string, {
1654
- type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
1655
- in: "query" | "header" | "cookie";
1656
- name: string;
1657
- description?: string | undefined;
1658
- } | {
1659
- type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
1660
- scheme: string;
1661
- description?: string | undefined;
1662
- bearerFormat?: string | undefined;
1663
- } | {
1664
- type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
1665
- flows: {
1666
- authorizationCode?: {
1667
- authorizationUrl: string;
1668
- tokenUrl: string;
1669
- scopes: Record<string, string>;
1670
- refreshUrl?: string | undefined;
1671
- } | undefined;
1672
- clientCredentials?: {
1673
- tokenUrl: string;
1674
- scopes: Record<string, string>;
1675
- refreshUrl?: string | undefined;
1676
- } | undefined;
1677
- implicit?: {
1678
- authorizationUrl: string;
1679
- scopes: Record<string, string>;
1680
- refreshUrl?: string | undefined;
1681
- } | undefined;
1682
- password?: {
1683
- tokenUrl: string;
1684
- scopes: Record<string, string>;
1685
- refreshUrl?: string | undefined;
1686
- } | undefined;
1687
- };
1688
- description?: string | undefined;
1689
- oauth2MetadataUrl?: string | undefined;
1690
- } | {
1691
- type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
1692
- openIdConnectUrl: string;
1693
- description?: string | undefined;
1694
- } | {
1695
- type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
1696
- description?: string | undefined;
1697
- }> | undefined;
1698
- supportsAuthenticatedExtendedCard?: boolean | undefined;
1699
- signatures?: {
1700
- protected: string;
1701
- signature: string;
1702
- header?: Record<string, unknown> | undefined;
1703
- }[] | undefined;
1704
- };
1705
- id?: string | number | undefined;
1706
- error?: undefined;
1707
- }>;
1708
- export type GetAuthenticatedExtendedCardSuccessResponse = z.infer<typeof GetAuthenticatedExtendedCardSuccessResponseSchema>;
1709
- /**
1710
- * @description Response to a `agent/getAuthenticatedExtendedCard` request.
1711
- */
1712
- export declare const GetAuthenticatedExtendedCardResponseSchema: z.ZodUnion<[z.ZodObject<{
1713
- jsonrpc: z.ZodLiteral<"2.0">;
1714
- id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
1715
- error: z.ZodOptional<z.ZodNever>;
1716
- } & {
1717
- result: z.ZodObject<{
1718
- /**
1719
- * @required The version of the A2A protocol this agent supports.
1720
- */
1721
- protocolVersion: z.ZodDefault<z.ZodString>;
1722
- /**
1723
- * @required Human readable name of the agent.
1724
- */
1725
- name: z.ZodString;
1726
- /**
1727
- * @required A human-readable description of the agent.
1728
- */
1729
- description: z.ZodString;
1730
- /**
1731
- * @required The preferred endpoint URL for interacting with the agent.
1732
- */
1733
- url: z.ZodString;
1734
- /**
1735
- * @optional The transport protocol for the preferred endpoint.
1736
- */
1737
- preferredTransport: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["JSONRPC", "GRPC", "HTTP+JSON"]>, z.ZodString]>>;
1738
- /**
1739
- * @optional Additional supported interfaces (transport and URL combinations).
1740
- */
1741
- additionalInterfaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
1742
- url: z.ZodString;
1743
- transport: z.ZodUnion<[z.ZodEnum<["JSONRPC", "GRPC", "HTTP+JSON"]>, z.ZodString]>;
1744
- }, "strip", z.ZodTypeAny, {
1745
- url: string;
1746
- transport: string;
1747
- }, {
1748
- url: string;
1749
- transport: string;
1750
- }>, "many">>;
1751
- /**
1752
- * @optional The URL of the agent's icon.
1753
- */
1754
- iconUrl: z.ZodOptional<z.ZodString>;
1755
- /**
1756
- * @optional The service provider of the agent.
1757
- */
1758
- provider: z.ZodOptional<z.ZodObject<{
1759
- /**
1760
- * @required The name of the organization providing the agent.
1761
- */
1762
- organization: z.ZodString;
1763
- /**
1764
- * @required URL associated with the agent provider.
1765
- */
1766
- url: z.ZodString;
1767
- }, "strip", z.ZodTypeAny, {
1768
- url: string;
1769
- organization: string;
1770
- }, {
1771
- url: string;
1772
- organization: string;
1773
- }>>;
1774
- /**
1775
- * @required The version identifier for the agent or its API.
1776
- */
1777
- version: z.ZodString;
1778
- /**
1779
- * @optional An optional URL pointing to the agent's documentation.
1780
- */
1781
- documentationUrl: z.ZodOptional<z.ZodString>;
1782
- /**
1783
- * @required The capabilities supported by the agent.
1784
- */
1785
- capabilities: z.ZodObject<{
1786
- /**
1787
- * @optional Indicates if the agent supports streaming responses.
1788
- */
1789
- streaming: z.ZodOptional<z.ZodBoolean>;
1790
- /**
1791
- * @optional Indicates if the agent supports push notification mechanisms.
1792
- */
1793
- pushNotifications: z.ZodOptional<z.ZodBoolean>;
1794
- /**
1795
- * @optional Indicates if the agent supports providing state transition history.
1796
- */
1797
- stateTransitionHistory: z.ZodOptional<z.ZodBoolean>;
1798
- /**
1799
- * @optional Extensions supported by this agent.
1800
- */
1801
- extensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1802
- /**
1803
- * @required The URI of the extension.
1804
- */
1805
- uri: z.ZodString;
1806
- /**
1807
- * @optional A description of how this agent uses this extension.
1808
- */
1809
- description: z.ZodOptional<z.ZodString>;
1810
- /**
1811
- * @optional Whether the client must follow specific requirements of the extension.
1812
- */
1813
- required: z.ZodOptional<z.ZodBoolean>;
1814
- /**
1815
- * @optional Optional configuration for the extension.
1816
- */
1817
- params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1818
- }, "strip", z.ZodTypeAny, {
1819
- uri: string;
1820
- params?: Record<string, unknown> | undefined;
1821
- description?: string | undefined;
1822
- required?: boolean | undefined;
1823
- }, {
1824
- uri: string;
1825
- params?: Record<string, unknown> | undefined;
1826
- description?: string | undefined;
1827
- required?: boolean | undefined;
1828
- }>, "many">>;
1829
- }, "strip", z.ZodTypeAny, {
1830
- extensions?: {
1831
- uri: string;
1832
- params?: Record<string, unknown> | undefined;
1833
- description?: string | undefined;
1834
- required?: boolean | undefined;
1835
- }[] | undefined;
1836
- streaming?: boolean | undefined;
1837
- pushNotifications?: boolean | undefined;
1838
- stateTransitionHistory?: boolean | undefined;
1839
- }, {
1840
- extensions?: {
1841
- uri: string;
1842
- params?: Record<string, unknown> | undefined;
1843
- description?: string | undefined;
1844
- required?: boolean | undefined;
1845
- }[] | undefined;
1846
- streaming?: boolean | undefined;
1847
- pushNotifications?: boolean | undefined;
1848
- stateTransitionHistory?: boolean | undefined;
1849
- }>;
1850
- /**
1851
- * @optional Security scheme details used for authenticating with this agent.
1852
- * Maps scheme names to their configurations.
1853
- */
1854
- securitySchemes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
1855
- description: z.ZodOptional<z.ZodString>;
1856
- } & {
1857
- type: z.ZodEffects<z.ZodEnum<["apiKey", "http", "mutualTLS", "oauth2", "openIdConnect"]>, "apiKey", "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect">;
1858
- in: z.ZodEnum<["query", "header", "cookie"]>;
1859
- name: z.ZodString;
1860
- }, "strip", z.ZodTypeAny, {
1861
- type: "apiKey";
1862
- in: "query" | "header" | "cookie";
1863
- name: string;
1864
- description?: string | undefined;
1865
- }, {
1866
- type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
1867
- in: "query" | "header" | "cookie";
1868
- name: string;
1869
- description?: string | undefined;
1870
- }>, z.ZodObject<{
1871
- description: z.ZodOptional<z.ZodString>;
1872
- } & {
1873
- type: z.ZodEffects<z.ZodEnum<["apiKey", "http", "mutualTLS", "oauth2", "openIdConnect"]>, "http", "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect">;
1874
- scheme: z.ZodString;
1875
- bearerFormat: z.ZodOptional<z.ZodString>;
1876
- }, "strip", z.ZodTypeAny, {
1877
- type: "http";
1878
- scheme: string;
1879
- description?: string | undefined;
1880
- bearerFormat?: string | undefined;
1881
- }, {
1882
- type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
1883
- scheme: string;
1884
- description?: string | undefined;
1885
- bearerFormat?: string | undefined;
1886
- }>, z.ZodObject<{
1887
- description: z.ZodOptional<z.ZodString>;
1888
- } & {
1889
- type: z.ZodEffects<z.ZodEnum<["apiKey", "http", "mutualTLS", "oauth2", "openIdConnect"]>, "oauth2", "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect">;
1890
- flows: z.ZodObject<{
1891
- authorizationCode: z.ZodOptional<z.ZodObject<{
1892
- authorizationUrl: z.ZodString;
1893
- tokenUrl: z.ZodString;
1894
- refreshUrl: z.ZodOptional<z.ZodString>;
1895
- scopes: z.ZodRecord<z.ZodString, z.ZodString>;
1896
- }, "strip", z.ZodTypeAny, {
1897
- authorizationUrl: string;
1898
- tokenUrl: string;
1899
- scopes: Record<string, string>;
1900
- refreshUrl?: string | undefined;
1901
- }, {
1902
- authorizationUrl: string;
1903
- tokenUrl: string;
1904
- scopes: Record<string, string>;
1905
- refreshUrl?: string | undefined;
1906
- }>>;
1907
- clientCredentials: z.ZodOptional<z.ZodObject<{
1908
- tokenUrl: z.ZodString;
1909
- refreshUrl: z.ZodOptional<z.ZodString>;
1910
- scopes: z.ZodRecord<z.ZodString, z.ZodString>;
1911
- }, "strip", z.ZodTypeAny, {
1912
- tokenUrl: string;
1913
- scopes: Record<string, string>;
1914
- refreshUrl?: string | undefined;
1915
- }, {
1916
- tokenUrl: string;
1917
- scopes: Record<string, string>;
1918
- refreshUrl?: string | undefined;
1919
- }>>;
1920
- implicit: z.ZodOptional<z.ZodObject<{
1921
- authorizationUrl: z.ZodString;
1922
- refreshUrl: z.ZodOptional<z.ZodString>;
1923
- scopes: z.ZodRecord<z.ZodString, z.ZodString>;
1924
- }, "strip", z.ZodTypeAny, {
1925
- authorizationUrl: string;
1926
- scopes: Record<string, string>;
1927
- refreshUrl?: string | undefined;
1928
- }, {
1929
- authorizationUrl: string;
1930
- scopes: Record<string, string>;
1931
- refreshUrl?: string | undefined;
1932
- }>>;
1933
- password: z.ZodOptional<z.ZodObject<{
1934
- tokenUrl: z.ZodString;
1935
- refreshUrl: z.ZodOptional<z.ZodString>;
1936
- scopes: z.ZodRecord<z.ZodString, z.ZodString>;
1937
- }, "strip", z.ZodTypeAny, {
1938
- tokenUrl: string;
1939
- scopes: Record<string, string>;
1940
- refreshUrl?: string | undefined;
1941
- }, {
1942
- tokenUrl: string;
1943
- scopes: Record<string, string>;
1944
- refreshUrl?: string | undefined;
1945
- }>>;
1946
- }, "strip", z.ZodTypeAny, {
1947
- authorizationCode?: {
1948
- authorizationUrl: string;
1949
- tokenUrl: string;
1950
- scopes: Record<string, string>;
1951
- refreshUrl?: string | undefined;
1952
- } | undefined;
1953
- clientCredentials?: {
1954
- tokenUrl: string;
1955
- scopes: Record<string, string>;
1956
- refreshUrl?: string | undefined;
1957
- } | undefined;
1958
- implicit?: {
1959
- authorizationUrl: string;
1960
- scopes: Record<string, string>;
1961
- refreshUrl?: string | undefined;
1962
- } | undefined;
1963
- password?: {
1964
- tokenUrl: string;
1965
- scopes: Record<string, string>;
1966
- refreshUrl?: string | undefined;
1967
- } | undefined;
1968
- }, {
1969
- authorizationCode?: {
1970
- authorizationUrl: string;
1971
- tokenUrl: string;
1972
- scopes: Record<string, string>;
1973
- refreshUrl?: string | undefined;
1974
- } | undefined;
1975
- clientCredentials?: {
1976
- tokenUrl: string;
1977
- scopes: Record<string, string>;
1978
- refreshUrl?: string | undefined;
1979
- } | undefined;
1980
- implicit?: {
1981
- authorizationUrl: string;
1982
- scopes: Record<string, string>;
1983
- refreshUrl?: string | undefined;
1984
- } | undefined;
1985
- password?: {
1986
- tokenUrl: string;
1987
- scopes: Record<string, string>;
1988
- refreshUrl?: string | undefined;
1989
- } | undefined;
1990
- }>;
1991
- oauth2MetadataUrl: z.ZodOptional<z.ZodString>;
1992
- }, "strip", z.ZodTypeAny, {
1993
- type: "oauth2";
1994
- flows: {
1995
- authorizationCode?: {
1996
- authorizationUrl: string;
1997
- tokenUrl: string;
1998
- scopes: Record<string, string>;
1999
- refreshUrl?: string | undefined;
2000
- } | undefined;
2001
- clientCredentials?: {
2002
- tokenUrl: string;
2003
- scopes: Record<string, string>;
2004
- refreshUrl?: string | undefined;
2005
- } | undefined;
2006
- implicit?: {
2007
- authorizationUrl: string;
2008
- scopes: Record<string, string>;
2009
- refreshUrl?: string | undefined;
2010
- } | undefined;
2011
- password?: {
2012
- tokenUrl: string;
2013
- scopes: Record<string, string>;
2014
- refreshUrl?: string | undefined;
2015
- } | undefined;
2016
- };
2017
- description?: string | undefined;
2018
- oauth2MetadataUrl?: string | undefined;
2019
- }, {
2020
- type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
2021
- flows: {
2022
- authorizationCode?: {
2023
- authorizationUrl: string;
2024
- tokenUrl: string;
2025
- scopes: Record<string, string>;
2026
- refreshUrl?: string | undefined;
2027
- } | undefined;
2028
- clientCredentials?: {
2029
- tokenUrl: string;
2030
- scopes: Record<string, string>;
2031
- refreshUrl?: string | undefined;
2032
- } | undefined;
2033
- implicit?: {
2034
- authorizationUrl: string;
2035
- scopes: Record<string, string>;
2036
- refreshUrl?: string | undefined;
2037
- } | undefined;
2038
- password?: {
2039
- tokenUrl: string;
2040
- scopes: Record<string, string>;
2041
- refreshUrl?: string | undefined;
2042
- } | undefined;
2043
- };
2044
- description?: string | undefined;
2045
- oauth2MetadataUrl?: string | undefined;
2046
- }>, z.ZodObject<{
2047
- description: z.ZodOptional<z.ZodString>;
2048
- } & {
2049
- type: z.ZodEffects<z.ZodEnum<["apiKey", "http", "mutualTLS", "oauth2", "openIdConnect"]>, "openIdConnect", "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect">;
2050
- openIdConnectUrl: z.ZodString;
2051
- }, "strip", z.ZodTypeAny, {
2052
- type: "openIdConnect";
2053
- openIdConnectUrl: string;
2054
- description?: string | undefined;
2055
- }, {
2056
- type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
2057
- openIdConnectUrl: string;
2058
- description?: string | undefined;
2059
- }>, z.ZodObject<{
2060
- description: z.ZodOptional<z.ZodString>;
2061
- } & {
2062
- type: z.ZodEffects<z.ZodEnum<["apiKey", "http", "mutualTLS", "oauth2", "openIdConnect"]>, "mutualTLS", "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect">;
2063
- }, "strip", z.ZodTypeAny, {
2064
- type: "mutualTLS";
2065
- description?: string | undefined;
2066
- }, {
2067
- type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
2068
- description?: string | undefined;
2069
- }>]>>>;
2070
- /**
2071
- * @optional Security requirements for contacting the agent.
2072
- * Array of security requirement objects, where each object maps scheme names to scope arrays.
2073
- */
2074
- security: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>, "many">>;
2075
- /**
2076
- * @required The default input modes supported by the agent.
2077
- */
2078
- defaultInputModes: z.ZodArray<z.ZodString, "many">;
2079
- /**
2080
- * @required The default output modes supported by the agent.
2081
- */
2082
- defaultOutputModes: z.ZodArray<z.ZodString, "many">;
2083
- /**
2084
- * @required List of specific skills offered by the agent.
2085
- */
2086
- skills: z.ZodArray<z.ZodObject<{
2087
- /**
2088
- * @required Unique identifier for the skill.
2089
- */
2090
- id: z.ZodString;
2091
- /**
2092
- * @required Human-readable name of the skill.
2093
- */
2094
- name: z.ZodString;
2095
- /**
2096
- * @required Description of the skill.
2097
- */
2098
- description: z.ZodString;
2099
- /**
2100
- * @required List of tags associated with the skill for categorization.
2101
- */
2102
- tags: z.ZodArray<z.ZodString, "many">;
2103
- /**
2104
- * @optional List of example inputs or use cases for the skill.
2105
- */
2106
- examples: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2107
- /**
2108
- * @optional List of input modes supported by this skill.
2109
- */
2110
- inputModes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2111
- /**
2112
- * @optional List of output modes supported by this skill.
2113
- */
2114
- outputModes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2115
- /**
2116
- * @optional Security schemes necessary for the agent to leverage this skill.
2117
- */
2118
- security: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>, "many">>;
2119
- }, "strip", z.ZodTypeAny, {
2120
- description: string;
2121
- name: string;
2122
- id: string;
2123
- tags: string[];
2124
- examples?: string[] | undefined;
2125
- inputModes?: string[] | undefined;
2126
- outputModes?: string[] | undefined;
2127
- security?: Record<string, string[]>[] | undefined;
2128
- }, {
2129
- description: string;
2130
- name: string;
2131
- id: string;
2132
- tags: string[];
2133
- examples?: string[] | undefined;
2134
- inputModes?: string[] | undefined;
2135
- outputModes?: string[] | undefined;
2136
- security?: Record<string, string[]>[] | undefined;
2137
- }>, "many">;
2138
- /**
2139
- * @optional True if the agent supports providing an extended agent card when the user is authenticated.
2140
- */
2141
- supportsAuthenticatedExtendedCard: z.ZodOptional<z.ZodBoolean>;
2142
- /**
2143
- * @optional JSON Web Signatures computed for this AgentCard.
2144
- */
2145
- signatures: z.ZodOptional<z.ZodArray<z.ZodObject<{
2146
- /**
2147
- * @required The protected JWS header for the signature.
2148
- */
2149
- protected: z.ZodString;
2150
- /**
2151
- * @required The computed signature, Base64url-encoded.
2152
- */
2153
- signature: z.ZodString;
2154
- /**
2155
- * @optional The unprotected JWS header values.
2156
- */
2157
- header: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2158
- }, "strip", z.ZodTypeAny, {
2159
- protected: string;
2160
- signature: string;
2161
- header?: Record<string, unknown> | undefined;
2162
- }, {
2163
- protected: string;
2164
- signature: string;
2165
- header?: Record<string, unknown> | undefined;
2166
- }>, "many">>;
2167
- }, "strip", z.ZodTypeAny, {
2168
- description: string;
2169
- name: string;
2170
- url: string;
2171
- protocolVersion: string;
2172
- version: string;
2173
- capabilities: {
2174
- extensions?: {
2175
- uri: string;
2176
- params?: Record<string, unknown> | undefined;
2177
- description?: string | undefined;
2178
- required?: boolean | undefined;
2179
- }[] | undefined;
2180
- streaming?: boolean | undefined;
2181
- pushNotifications?: boolean | undefined;
2182
- stateTransitionHistory?: boolean | undefined;
2183
- };
2184
- defaultInputModes: string[];
2185
- defaultOutputModes: string[];
2186
- skills: {
2187
- description: string;
2188
- name: string;
2189
- id: string;
2190
- tags: string[];
2191
- examples?: string[] | undefined;
2192
- inputModes?: string[] | undefined;
2193
- outputModes?: string[] | undefined;
2194
- security?: Record<string, string[]>[] | undefined;
2195
- }[];
2196
- security?: Record<string, string[]>[] | undefined;
2197
- preferredTransport?: string | undefined;
2198
- additionalInterfaces?: {
2199
- url: string;
2200
- transport: string;
2201
- }[] | undefined;
2202
- iconUrl?: string | undefined;
2203
- provider?: {
2204
- url: string;
2205
- organization: string;
2206
- } | undefined;
2207
- documentationUrl?: string | undefined;
2208
- securitySchemes?: Record<string, {
2209
- type: "apiKey";
2210
- in: "query" | "header" | "cookie";
2211
- name: string;
2212
- description?: string | undefined;
2213
- } | {
2214
- type: "http";
2215
- scheme: string;
2216
- description?: string | undefined;
2217
- bearerFormat?: string | undefined;
2218
- } | {
2219
- type: "oauth2";
2220
- flows: {
2221
- authorizationCode?: {
2222
- authorizationUrl: string;
2223
- tokenUrl: string;
2224
- scopes: Record<string, string>;
2225
- refreshUrl?: string | undefined;
2226
- } | undefined;
2227
- clientCredentials?: {
2228
- tokenUrl: string;
2229
- scopes: Record<string, string>;
2230
- refreshUrl?: string | undefined;
2231
- } | undefined;
2232
- implicit?: {
2233
- authorizationUrl: string;
2234
- scopes: Record<string, string>;
2235
- refreshUrl?: string | undefined;
2236
- } | undefined;
2237
- password?: {
2238
- tokenUrl: string;
2239
- scopes: Record<string, string>;
2240
- refreshUrl?: string | undefined;
2241
- } | undefined;
2242
- };
2243
- description?: string | undefined;
2244
- oauth2MetadataUrl?: string | undefined;
2245
- } | {
2246
- type: "openIdConnect";
2247
- openIdConnectUrl: string;
2248
- description?: string | undefined;
2249
- } | {
2250
- type: "mutualTLS";
2251
- description?: string | undefined;
2252
- }> | undefined;
2253
- supportsAuthenticatedExtendedCard?: boolean | undefined;
2254
- signatures?: {
2255
- protected: string;
2256
- signature: string;
2257
- header?: Record<string, unknown> | undefined;
2258
- }[] | undefined;
2259
- }, {
2260
- description: string;
2261
- name: string;
2262
- url: string;
2263
- version: string;
2264
- capabilities: {
2265
- extensions?: {
2266
- uri: string;
2267
- params?: Record<string, unknown> | undefined;
2268
- description?: string | undefined;
2269
- required?: boolean | undefined;
2270
- }[] | undefined;
2271
- streaming?: boolean | undefined;
2272
- pushNotifications?: boolean | undefined;
2273
- stateTransitionHistory?: boolean | undefined;
2274
- };
2275
- defaultInputModes: string[];
2276
- defaultOutputModes: string[];
2277
- skills: {
2278
- description: string;
2279
- name: string;
2280
- id: string;
2281
- tags: string[];
2282
- examples?: string[] | undefined;
2283
- inputModes?: string[] | undefined;
2284
- outputModes?: string[] | undefined;
2285
- security?: Record<string, string[]>[] | undefined;
2286
- }[];
2287
- security?: Record<string, string[]>[] | undefined;
2288
- protocolVersion?: string | undefined;
2289
- preferredTransport?: string | undefined;
2290
- additionalInterfaces?: {
2291
- url: string;
2292
- transport: string;
2293
- }[] | undefined;
2294
- iconUrl?: string | undefined;
2295
- provider?: {
2296
- url: string;
2297
- organization: string;
2298
- } | undefined;
2299
- documentationUrl?: string | undefined;
2300
- securitySchemes?: Record<string, {
2301
- type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
2302
- in: "query" | "header" | "cookie";
2303
- name: string;
2304
- description?: string | undefined;
2305
- } | {
2306
- type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
2307
- scheme: string;
2308
- description?: string | undefined;
2309
- bearerFormat?: string | undefined;
2310
- } | {
2311
- type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
2312
- flows: {
2313
- authorizationCode?: {
2314
- authorizationUrl: string;
2315
- tokenUrl: string;
2316
- scopes: Record<string, string>;
2317
- refreshUrl?: string | undefined;
2318
- } | undefined;
2319
- clientCredentials?: {
2320
- tokenUrl: string;
2321
- scopes: Record<string, string>;
2322
- refreshUrl?: string | undefined;
2323
- } | undefined;
2324
- implicit?: {
2325
- authorizationUrl: string;
2326
- scopes: Record<string, string>;
2327
- refreshUrl?: string | undefined;
2328
- } | undefined;
2329
- password?: {
2330
- tokenUrl: string;
2331
- scopes: Record<string, string>;
2332
- refreshUrl?: string | undefined;
2333
- } | undefined;
2334
- };
2335
- description?: string | undefined;
2336
- oauth2MetadataUrl?: string | undefined;
2337
- } | {
2338
- type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
2339
- openIdConnectUrl: string;
2340
- description?: string | undefined;
2341
- } | {
2342
- type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
2343
- description?: string | undefined;
2344
- }> | undefined;
2345
- supportsAuthenticatedExtendedCard?: boolean | undefined;
2346
- signatures?: {
2347
- protected: string;
2348
- signature: string;
2349
- header?: Record<string, unknown> | undefined;
2350
- }[] | undefined;
2351
- }>;
2352
- }, "strip", z.ZodTypeAny, {
2353
- jsonrpc: "2.0";
2354
- result: {
2355
- description: string;
2356
- name: string;
2357
- url: string;
2358
- protocolVersion: string;
2359
- version: string;
2360
- capabilities: {
2361
- extensions?: {
2362
- uri: string;
2363
- params?: Record<string, unknown> | undefined;
2364
- description?: string | undefined;
2365
- required?: boolean | undefined;
2366
- }[] | undefined;
2367
- streaming?: boolean | undefined;
2368
- pushNotifications?: boolean | undefined;
2369
- stateTransitionHistory?: boolean | undefined;
2370
- };
2371
- defaultInputModes: string[];
2372
- defaultOutputModes: string[];
2373
- skills: {
2374
- description: string;
2375
- name: string;
2376
- id: string;
2377
- tags: string[];
2378
- examples?: string[] | undefined;
2379
- inputModes?: string[] | undefined;
2380
- outputModes?: string[] | undefined;
2381
- security?: Record<string, string[]>[] | undefined;
2382
- }[];
2383
- security?: Record<string, string[]>[] | undefined;
2384
- preferredTransport?: string | undefined;
2385
- additionalInterfaces?: {
2386
- url: string;
2387
- transport: string;
2388
- }[] | undefined;
2389
- iconUrl?: string | undefined;
2390
- provider?: {
2391
- url: string;
2392
- organization: string;
2393
- } | undefined;
2394
- documentationUrl?: string | undefined;
2395
- securitySchemes?: Record<string, {
2396
- type: "apiKey";
2397
- in: "query" | "header" | "cookie";
2398
- name: string;
2399
- description?: string | undefined;
2400
- } | {
2401
- type: "http";
2402
- scheme: string;
2403
- description?: string | undefined;
2404
- bearerFormat?: string | undefined;
2405
- } | {
2406
- type: "oauth2";
2407
- flows: {
2408
- authorizationCode?: {
2409
- authorizationUrl: string;
2410
- tokenUrl: string;
2411
- scopes: Record<string, string>;
2412
- refreshUrl?: string | undefined;
2413
- } | undefined;
2414
- clientCredentials?: {
2415
- tokenUrl: string;
2416
- scopes: Record<string, string>;
2417
- refreshUrl?: string | undefined;
2418
- } | undefined;
2419
- implicit?: {
2420
- authorizationUrl: string;
2421
- scopes: Record<string, string>;
2422
- refreshUrl?: string | undefined;
2423
- } | undefined;
2424
- password?: {
2425
- tokenUrl: string;
2426
- scopes: Record<string, string>;
2427
- refreshUrl?: string | undefined;
2428
- } | undefined;
2429
- };
2430
- description?: string | undefined;
2431
- oauth2MetadataUrl?: string | undefined;
2432
- } | {
2433
- type: "openIdConnect";
2434
- openIdConnectUrl: string;
2435
- description?: string | undefined;
2436
- } | {
2437
- type: "mutualTLS";
2438
- description?: string | undefined;
2439
- }> | undefined;
2440
- supportsAuthenticatedExtendedCard?: boolean | undefined;
2441
- signatures?: {
2442
- protected: string;
2443
- signature: string;
2444
- header?: Record<string, unknown> | undefined;
2445
- }[] | undefined;
2446
- };
2447
- id?: string | number | undefined;
2448
- error?: undefined;
2449
- }, {
2450
- jsonrpc: "2.0";
2451
- result: {
2452
- description: string;
2453
- name: string;
2454
- url: string;
2455
- version: string;
2456
- capabilities: {
2457
- extensions?: {
2458
- uri: string;
2459
- params?: Record<string, unknown> | undefined;
2460
- description?: string | undefined;
2461
- required?: boolean | undefined;
2462
- }[] | undefined;
2463
- streaming?: boolean | undefined;
2464
- pushNotifications?: boolean | undefined;
2465
- stateTransitionHistory?: boolean | undefined;
2466
- };
2467
- defaultInputModes: string[];
2468
- defaultOutputModes: string[];
2469
- skills: {
2470
- description: string;
2471
- name: string;
2472
- id: string;
2473
- tags: string[];
2474
- examples?: string[] | undefined;
2475
- inputModes?: string[] | undefined;
2476
- outputModes?: string[] | undefined;
2477
- security?: Record<string, string[]>[] | undefined;
2478
- }[];
2479
- security?: Record<string, string[]>[] | undefined;
2480
- protocolVersion?: string | undefined;
2481
- preferredTransport?: string | undefined;
2482
- additionalInterfaces?: {
2483
- url: string;
2484
- transport: string;
2485
- }[] | undefined;
2486
- iconUrl?: string | undefined;
2487
- provider?: {
2488
- url: string;
2489
- organization: string;
2490
- } | undefined;
2491
- documentationUrl?: string | undefined;
2492
- securitySchemes?: Record<string, {
2493
- type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
2494
- in: "query" | "header" | "cookie";
2495
- name: string;
2496
- description?: string | undefined;
2497
- } | {
2498
- type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
2499
- scheme: string;
2500
- description?: string | undefined;
2501
- bearerFormat?: string | undefined;
2502
- } | {
2503
- type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
2504
- flows: {
2505
- authorizationCode?: {
2506
- authorizationUrl: string;
2507
- tokenUrl: string;
2508
- scopes: Record<string, string>;
2509
- refreshUrl?: string | undefined;
2510
- } | undefined;
2511
- clientCredentials?: {
2512
- tokenUrl: string;
2513
- scopes: Record<string, string>;
2514
- refreshUrl?: string | undefined;
2515
- } | undefined;
2516
- implicit?: {
2517
- authorizationUrl: string;
2518
- scopes: Record<string, string>;
2519
- refreshUrl?: string | undefined;
2520
- } | undefined;
2521
- password?: {
2522
- tokenUrl: string;
2523
- scopes: Record<string, string>;
2524
- refreshUrl?: string | undefined;
2525
- } | undefined;
2526
- };
2527
- description?: string | undefined;
2528
- oauth2MetadataUrl?: string | undefined;
2529
- } | {
2530
- type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
2531
- openIdConnectUrl: string;
2532
- description?: string | undefined;
2533
- } | {
2534
- type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
2535
- description?: string | undefined;
2536
- }> | undefined;
2537
- supportsAuthenticatedExtendedCard?: boolean | undefined;
2538
- signatures?: {
2539
- protected: string;
2540
- signature: string;
2541
- header?: Record<string, unknown> | undefined;
2542
- }[] | undefined;
2543
- };
2544
- id?: string | number | undefined;
2545
- error?: undefined;
2546
- }>, z.ZodObject<{
2547
- jsonrpc: z.ZodLiteral<"2.0">;
2548
- id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
2549
- } & {
2550
- result: z.ZodOptional<z.ZodNever>;
2551
- error: z.ZodObject<{
2552
- code: z.ZodNumber;
2553
- message: z.ZodString;
2554
- data: z.ZodOptional<z.ZodUnknown>;
2555
- }, "strip", z.ZodTypeAny, {
2556
- message: string;
2557
- code: number;
2558
- data?: unknown;
2559
- }, {
2560
- message: string;
2561
- code: number;
2562
- data?: unknown;
2563
- }>;
2564
- }, "strip", z.ZodTypeAny, {
2565
- jsonrpc: "2.0";
2566
- error: {
2567
- message: string;
2568
- code: number;
2569
- data?: unknown;
2570
- };
2571
- id?: string | number | undefined;
2572
- result?: undefined;
2573
- }, {
2574
- jsonrpc: "2.0";
2575
- error: {
2576
- message: string;
2577
- code: number;
2578
- data?: unknown;
2579
- };
2580
- id?: string | number | undefined;
2581
- result?: undefined;
2582
- }>]>;
2583
- export type GetAuthenticatedExtendedCardResponse = z.infer<typeof GetAuthenticatedExtendedCardResponseSchema>;