@artinet/sdk 0.5.6 → 0.5.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (460) hide show
  1. package/README.md +82 -207
  2. package/dist/client/a2a-client.d.ts.map +1 -0
  3. package/dist/client/index.d.ts.map +1 -0
  4. package/dist/index.d.ts +7 -0
  5. package/dist/index.d.ts.map +1 -0
  6. package/dist/server/express/errors.d.ts.map +1 -0
  7. package/dist/server/express/index.d.ts.map +1 -0
  8. package/dist/server/express/middeware.d.ts.map +1 -0
  9. package/dist/{types/server → server}/express/server.d.ts +8 -8
  10. package/dist/server/express/server.d.ts.map +1 -0
  11. package/dist/server/index.d.ts.map +1 -0
  12. package/dist/{types/services → services}/a2a/factory/builder.d.ts +8 -8
  13. package/dist/services/a2a/factory/builder.d.ts.map +1 -0
  14. package/dist/services/a2a/factory/builder.js +6 -6
  15. package/dist/services/a2a/factory/builder.js.map +1 -1
  16. package/dist/{types/services → services}/a2a/factory/context.d.ts +1 -1
  17. package/dist/services/a2a/factory/context.d.ts.map +1 -0
  18. package/dist/{types/services → services}/a2a/factory/event.d.ts +1 -1
  19. package/dist/services/a2a/factory/event.d.ts.map +1 -0
  20. package/dist/services/a2a/factory/event.js +2 -2
  21. package/dist/services/a2a/factory/event.js.map +1 -1
  22. package/dist/services/a2a/factory/index.d.ts.map +1 -0
  23. package/dist/services/a2a/factory/method.d.ts.map +1 -0
  24. package/dist/services/a2a/factory/service.d.ts.map +1 -0
  25. package/dist/services/a2a/helpers/index.d.ts.map +1 -0
  26. package/dist/services/a2a/helpers/part.d.ts.map +1 -0
  27. package/dist/services/a2a/index.d.ts.map +1 -0
  28. package/dist/services/a2a/managers/cancellation.d.ts.map +1 -0
  29. package/dist/services/a2a/managers/connection.d.ts.map +1 -0
  30. package/dist/services/a2a/managers/context.d.ts.map +1 -0
  31. package/dist/services/a2a/managers/index.d.ts.map +1 -0
  32. package/dist/services/a2a/managers/task.d.ts.map +1 -0
  33. package/dist/services/a2a/methods/cancel-task.d.ts.map +1 -0
  34. package/dist/{types/services → services}/a2a/methods/get-task.d.ts +19 -19
  35. package/dist/services/a2a/methods/get-task.d.ts.map +1 -0
  36. package/dist/services/a2a/methods/index.d.ts.map +1 -0
  37. package/dist/services/a2a/methods/resubscribe-task.d.ts.map +1 -0
  38. package/dist/services/a2a/methods/send-message.d.ts.map +1 -0
  39. package/dist/services/a2a/methods/stream-message.d.ts.map +1 -0
  40. package/dist/services/a2a/methods/stream-message.js +0 -17
  41. package/dist/services/a2a/methods/stream-message.js.map +1 -1
  42. package/dist/{types/services → services}/a2a/service.d.ts +63 -64
  43. package/dist/services/a2a/service.d.ts.map +1 -0
  44. package/dist/services/a2a/service.js +2 -5
  45. package/dist/services/a2a/service.js.map +1 -1
  46. package/dist/services/a2a/state/index.d.ts.map +1 -0
  47. package/dist/services/a2a/state/load.d.ts.map +1 -0
  48. package/dist/services/a2a/state/process.d.ts.map +1 -0
  49. package/dist/services/a2a/state/update/artifact.d.ts.map +1 -0
  50. package/dist/services/a2a/state/update/index.d.ts.map +1 -0
  51. package/dist/services/a2a/state/update/update.d.ts.map +1 -0
  52. package/dist/services/core/execution/execute.d.ts.map +1 -0
  53. package/dist/services/core/execution/index.d.ts.map +1 -0
  54. package/dist/services/core/index.d.ts.map +1 -0
  55. package/dist/services/core/managers/command.d.ts.map +1 -0
  56. package/dist/services/core/managers/event.d.ts.map +1 -0
  57. package/dist/services/core/managers/index.d.ts.map +1 -0
  58. package/dist/services/core/managers/stream.d.ts.map +1 -0
  59. package/dist/services/index.d.ts +4 -0
  60. package/dist/services/index.d.ts.map +1 -0
  61. package/dist/services/index.js +1 -0
  62. package/dist/services/index.js.map +1 -1
  63. package/dist/services/mcp/index.d.ts +2 -0
  64. package/dist/services/mcp/index.d.ts.map +1 -0
  65. package/dist/services/mcp/index.js +2 -0
  66. package/dist/services/mcp/index.js.map +1 -0
  67. package/dist/services/mcp/service.d.ts +31 -0
  68. package/dist/services/mcp/service.d.ts.map +1 -0
  69. package/dist/services/mcp/service.js +123 -0
  70. package/dist/services/mcp/service.js.map +1 -0
  71. package/dist/transport/index.d.ts.map +1 -0
  72. package/dist/transport/rpc/parser.d.ts.map +1 -0
  73. package/dist/transport/rpc/rpc-client.d.ts.map +1 -0
  74. package/dist/transport/streaming/event-stream.d.ts.map +1 -0
  75. package/dist/transport/trpc/a2a/factory/index.d.ts.map +1 -0
  76. package/dist/{types/transport → transport}/trpc/a2a/factory/router.d.ts +398 -398
  77. package/dist/{types/transport → transport}/trpc/a2a/factory/router.d.ts.map +1 -1
  78. package/dist/transport/trpc/a2a/index.d.ts.map +1 -0
  79. package/dist/transport/trpc/a2a/routes/index.d.ts.map +1 -0
  80. package/dist/{types/transport → transport}/trpc/a2a/routes/info.d.ts +15 -15
  81. package/dist/transport/trpc/a2a/routes/info.d.ts.map +1 -0
  82. package/dist/transport/trpc/a2a/routes/message/index.d.ts.map +1 -0
  83. package/dist/{types/transport → transport}/trpc/a2a/routes/message/route.d.ts +85 -85
  84. package/dist/{types/transport → transport}/trpc/a2a/routes/message/route.d.ts.map +1 -1
  85. package/dist/transport/trpc/a2a/routes/tasks/index.d.ts.map +1 -0
  86. package/dist/{types/transport → transport}/trpc/a2a/routes/tasks/route.d.ts +92 -92
  87. package/dist/{types/transport → transport}/trpc/a2a/routes/tasks/route.d.ts.map +1 -1
  88. package/dist/transport/trpc/a2a/routes/tasks/route.js +1 -1
  89. package/dist/transport/trpc/a2a/routes/tasks/route.js.map +1 -1
  90. package/dist/{types/transport → transport}/trpc/a2a/trpc.d.ts +35 -35
  91. package/dist/transport/trpc/a2a/trpc.d.ts.map +1 -0
  92. package/dist/transport/trpc/index.d.ts.map +1 -0
  93. package/dist/types/ext.d.ts.map +1 -0
  94. package/dist/types/index.d.ts +3 -5
  95. package/dist/types/index.d.ts.map +1 -1
  96. package/dist/types/interfaces/client.d.ts.map +1 -0
  97. package/dist/types/interfaces/index.d.ts.map +1 -0
  98. package/dist/types/{types/interfaces → interfaces}/services/a2a/builder.d.ts +4 -0
  99. package/dist/types/interfaces/services/a2a/builder.d.ts.map +1 -0
  100. package/dist/types/interfaces/services/a2a/builder.js +4 -0
  101. package/dist/types/interfaces/services/a2a/builder.js.map +1 -1
  102. package/dist/types/{types/interfaces → interfaces}/services/a2a/context.d.ts +1 -1
  103. package/dist/types/interfaces/services/a2a/context.d.ts.map +1 -0
  104. package/dist/types/interfaces/services/a2a/engine.d.ts.map +1 -0
  105. package/dist/types/interfaces/services/a2a/index.d.ts.map +1 -0
  106. package/dist/types/{types/interfaces → interfaces}/services/a2a/legacy.d.ts +1 -0
  107. package/dist/types/interfaces/services/a2a/legacy.d.ts.map +1 -0
  108. package/dist/types/{types/interfaces → interfaces}/services/a2a/service.d.ts +4 -4
  109. package/dist/types/interfaces/services/a2a/service.d.ts.map +1 -0
  110. package/dist/types/interfaces/services/core/context/command.d.ts.map +1 -0
  111. package/dist/types/{types/interfaces → interfaces}/services/core/context/context.d.ts +1 -1
  112. package/dist/types/interfaces/services/core/context/context.d.ts.map +1 -0
  113. package/dist/types/interfaces/services/core/context/index.d.ts.map +1 -0
  114. package/dist/types/interfaces/services/core/context/types.d.ts.map +1 -0
  115. package/dist/types/{types/interfaces → interfaces}/services/core/execution/engine.d.ts +1 -1
  116. package/dist/types/interfaces/services/core/execution/engine.d.ts.map +1 -0
  117. package/dist/types/interfaces/services/core/execution/environment.d.ts.map +1 -0
  118. package/dist/types/interfaces/services/core/execution/execute.d.ts.map +1 -0
  119. package/dist/types/interfaces/services/core/execution/index.d.ts.map +1 -0
  120. package/dist/types/interfaces/services/core/index.d.ts.map +1 -0
  121. package/dist/types/interfaces/services/core/managers/cancellation.d.ts.map +1 -0
  122. package/dist/types/interfaces/services/core/managers/connection.d.ts.map +1 -0
  123. package/dist/types/interfaces/services/core/managers/context.d.ts.map +1 -0
  124. package/dist/types/{types/interfaces → interfaces}/services/core/managers/event.d.ts +1 -1
  125. package/dist/types/interfaces/services/core/managers/event.d.ts.map +1 -0
  126. package/dist/types/interfaces/services/core/managers/index.d.ts.map +1 -0
  127. package/dist/types/{types/interfaces → interfaces}/services/core/managers/stream.d.ts +1 -1
  128. package/dist/types/interfaces/services/core/managers/stream.d.ts.map +1 -0
  129. package/dist/types/interfaces/services/core/managers/task.d.ts.map +1 -0
  130. package/dist/types/{types/interfaces → interfaces}/services/core/service.d.ts +1 -1
  131. package/dist/types/interfaces/services/core/service.d.ts.map +1 -0
  132. package/dist/types/{types/interfaces → interfaces}/services/index.d.ts +1 -0
  133. package/dist/types/interfaces/services/index.d.ts.map +1 -0
  134. package/dist/types/interfaces/services/index.js +1 -0
  135. package/dist/types/interfaces/services/index.js.map +1 -1
  136. package/dist/types/interfaces/services/mcp/index.d.ts +2 -0
  137. package/dist/types/interfaces/services/mcp/index.d.ts.map +1 -0
  138. package/dist/types/interfaces/services/mcp/index.js +2 -0
  139. package/dist/types/interfaces/services/mcp/index.js.map +1 -0
  140. package/dist/types/interfaces/services/mcp/service.d.ts +50 -0
  141. package/dist/types/interfaces/services/mcp/service.d.ts.map +1 -0
  142. package/dist/types/{schemas/deployment/proxy.js → interfaces/services/mcp/service.js} +1 -1
  143. package/dist/types/interfaces/services/mcp/service.js.map +1 -0
  144. package/dist/types/interfaces/services/protocol.d.ts.map +1 -0
  145. package/dist/types/interfaces/storage.d.ts.map +1 -0
  146. package/dist/types/schemas/a2a/agent.d.ts +2584 -0
  147. package/dist/types/schemas/a2a/agent.d.ts.map +1 -0
  148. package/dist/types/schemas/a2a/agent.js +9 -3
  149. package/dist/types/schemas/a2a/agent.js.map +1 -1
  150. package/dist/types/schemas/a2a/auth.d.ts +909 -0
  151. package/dist/types/schemas/a2a/auth.d.ts.map +1 -0
  152. package/dist/types/schemas/a2a/auth.js +11 -1
  153. package/dist/types/schemas/a2a/auth.js.map +1 -1
  154. package/dist/types/{types/schemas → schemas}/a2a/error.d.ts +243 -27
  155. package/dist/types/schemas/a2a/error.d.ts.map +1 -0
  156. package/dist/types/schemas/a2a/error.js +1 -1
  157. package/dist/types/schemas/a2a/error.js.map +1 -1
  158. package/dist/types/schemas/a2a/index.d.ts.map +1 -0
  159. package/dist/types/schemas/a2a/kind.d.ts +12 -0
  160. package/dist/types/schemas/a2a/kind.d.ts.map +1 -0
  161. package/dist/types/schemas/a2a/kind.js +1 -1
  162. package/dist/types/schemas/a2a/kind.js.map +1 -1
  163. package/dist/types/schemas/a2a/message.d.ts +10344 -0
  164. package/dist/types/schemas/a2a/message.d.ts.map +1 -0
  165. package/dist/types/schemas/a2a/message.js +1 -1
  166. package/dist/types/schemas/a2a/message.js.map +1 -1
  167. package/dist/types/schemas/a2a/notification.d.ts +1518 -0
  168. package/dist/types/schemas/a2a/notification.d.ts.map +1 -0
  169. package/dist/types/schemas/a2a/notification.js +2 -1
  170. package/dist/types/schemas/a2a/notification.js.map +1 -1
  171. package/dist/types/schemas/a2a/parameters.d.ts +957 -0
  172. package/dist/types/schemas/a2a/parameters.d.ts.map +1 -0
  173. package/dist/types/schemas/a2a/parameters.js +1 -1
  174. package/dist/types/schemas/a2a/parameters.js.map +1 -1
  175. package/dist/types/schemas/a2a/protocol.d.ts +14364 -0
  176. package/dist/types/schemas/a2a/protocol.d.ts.map +1 -0
  177. package/dist/types/schemas/a2a/protocol.js +1 -1
  178. package/dist/types/schemas/a2a/protocol.js.map +1 -1
  179. package/dist/types/schemas/a2a/rpc.d.ts +183 -0
  180. package/dist/types/schemas/a2a/rpc.d.ts.map +1 -0
  181. package/dist/types/schemas/a2a/rpc.js +1 -1
  182. package/dist/types/schemas/a2a/rpc.js.map +1 -1
  183. package/dist/types/schemas/a2a/task.d.ts +5887 -0
  184. package/dist/types/schemas/a2a/task.d.ts.map +1 -0
  185. package/dist/types/schemas/a2a/task.js +1 -1
  186. package/dist/types/schemas/a2a/task.js.map +1 -1
  187. package/dist/types/schemas/a2a/transport.d.ts +32 -0
  188. package/dist/types/schemas/a2a/transport.d.ts.map +1 -0
  189. package/dist/types/schemas/a2a/transport.js +2 -1
  190. package/dist/types/schemas/a2a/transport.js.map +1 -1
  191. package/dist/types/schemas/index.d.ts.map +1 -0
  192. package/dist/types/schemas/index.js +0 -1
  193. package/dist/types/schemas/index.js.map +1 -1
  194. package/dist/types/utils/index.d.ts +1 -8
  195. package/dist/types/utils/index.d.ts.map +1 -1
  196. package/dist/types/utils/transform.d.ts.map +1 -0
  197. package/dist/utils/common/constants.d.ts.map +1 -0
  198. package/dist/utils/common/errors.d.ts.map +1 -0
  199. package/dist/utils/common/utils.d.ts.map +1 -0
  200. package/dist/utils/common/zAsyncIterable-v3.d.ts +25 -0
  201. package/dist/utils/common/zAsyncIterable-v3.d.ts.map +1 -0
  202. package/dist/utils/common/zAsyncIterable-v3.js +39 -0
  203. package/dist/utils/common/zAsyncIterable-v3.js.map +1 -0
  204. package/dist/utils/common/zAsyncIterable.d.ts.map +1 -0
  205. package/dist/utils/common/zAsyncIterable.js +1 -0
  206. package/dist/utils/common/zAsyncIterable.js.map +1 -1
  207. package/dist/utils/index.d.ts +12 -0
  208. package/dist/utils/index.d.ts.map +1 -0
  209. package/dist/utils/index.js +5 -8
  210. package/dist/utils/index.js.map +1 -1
  211. package/dist/utils/logging/index.d.ts.map +1 -0
  212. package/dist/utils/logging/log.d.ts.map +1 -0
  213. package/dist/utils/logging/log.js +15 -1
  214. package/dist/utils/logging/log.js.map +1 -1
  215. package/dist/utils/logging/logger.d.ts +19 -0
  216. package/dist/utils/logging/logger.d.ts.map +1 -0
  217. package/dist/utils/logging/logger.js +5 -37
  218. package/dist/utils/logging/logger.js.map +1 -1
  219. package/dist/{types/utils → utils}/storage/file.d.ts +1 -1
  220. package/dist/utils/storage/file.d.ts.map +1 -0
  221. package/dist/utils/storage/file.js +5 -4
  222. package/dist/utils/storage/file.js.map +1 -1
  223. package/dist/utils/storage/memory.d.ts.map +1 -0
  224. package/package.json +21 -27
  225. package/CHANGELOG.md +0 -276
  226. package/dist/types/client/a2a-client.d.ts.map +0 -1
  227. package/dist/types/client/index.d.ts.map +0 -1
  228. package/dist/types/schemas/deployment/index.js +0 -3
  229. package/dist/types/schemas/deployment/index.js.map +0 -1
  230. package/dist/types/schemas/deployment/proxy.js.map +0 -1
  231. package/dist/types/schemas/deployment/request.js +0 -88
  232. package/dist/types/schemas/deployment/request.js.map +0 -1
  233. package/dist/types/server/express/errors.d.ts.map +0 -1
  234. package/dist/types/server/express/index.d.ts.map +0 -1
  235. package/dist/types/server/express/middeware.d.ts.map +0 -1
  236. package/dist/types/server/express/server.d.ts.map +0 -1
  237. package/dist/types/server/index.d.ts.map +0 -1
  238. package/dist/types/services/a2a/factory/builder.d.ts.map +0 -1
  239. package/dist/types/services/a2a/factory/context.d.ts.map +0 -1
  240. package/dist/types/services/a2a/factory/event.d.ts.map +0 -1
  241. package/dist/types/services/a2a/factory/index.d.ts.map +0 -1
  242. package/dist/types/services/a2a/factory/method.d.ts.map +0 -1
  243. package/dist/types/services/a2a/factory/service.d.ts.map +0 -1
  244. package/dist/types/services/a2a/helpers/index.d.ts.map +0 -1
  245. package/dist/types/services/a2a/helpers/part.d.ts.map +0 -1
  246. package/dist/types/services/a2a/index.d.ts.map +0 -1
  247. package/dist/types/services/a2a/managers/cancellation.d.ts.map +0 -1
  248. package/dist/types/services/a2a/managers/connection.d.ts.map +0 -1
  249. package/dist/types/services/a2a/managers/context.d.ts.map +0 -1
  250. package/dist/types/services/a2a/managers/index.d.ts.map +0 -1
  251. package/dist/types/services/a2a/managers/task.d.ts.map +0 -1
  252. package/dist/types/services/a2a/methods/cancel-task.d.ts.map +0 -1
  253. package/dist/types/services/a2a/methods/get-task.d.ts.map +0 -1
  254. package/dist/types/services/a2a/methods/index.d.ts.map +0 -1
  255. package/dist/types/services/a2a/methods/resubscribe-task.d.ts.map +0 -1
  256. package/dist/types/services/a2a/methods/send-message.d.ts.map +0 -1
  257. package/dist/types/services/a2a/methods/stream-message.d.ts.map +0 -1
  258. package/dist/types/services/a2a/service.d.ts.map +0 -1
  259. package/dist/types/services/a2a/state/index.d.ts.map +0 -1
  260. package/dist/types/services/a2a/state/load.d.ts.map +0 -1
  261. package/dist/types/services/a2a/state/process.d.ts.map +0 -1
  262. package/dist/types/services/a2a/state/update/artifact.d.ts.map +0 -1
  263. package/dist/types/services/a2a/state/update/index.d.ts.map +0 -1
  264. package/dist/types/services/a2a/state/update/update.d.ts.map +0 -1
  265. package/dist/types/services/core/execution/execute.d.ts.map +0 -1
  266. package/dist/types/services/core/execution/index.d.ts.map +0 -1
  267. package/dist/types/services/core/index.d.ts.map +0 -1
  268. package/dist/types/services/core/managers/command.d.ts.map +0 -1
  269. package/dist/types/services/core/managers/event.d.ts.map +0 -1
  270. package/dist/types/services/core/managers/index.d.ts.map +0 -1
  271. package/dist/types/services/core/managers/stream.d.ts.map +0 -1
  272. package/dist/types/services/index.d.ts +0 -3
  273. package/dist/types/services/index.d.ts.map +0 -1
  274. package/dist/types/transport/index.d.ts.map +0 -1
  275. package/dist/types/transport/rpc/parser.d.ts.map +0 -1
  276. package/dist/types/transport/rpc/rpc-client.d.ts.map +0 -1
  277. package/dist/types/transport/streaming/event-stream.d.ts.map +0 -1
  278. package/dist/types/transport/trpc/a2a/factory/index.d.ts.map +0 -1
  279. package/dist/types/transport/trpc/a2a/index.d.ts.map +0 -1
  280. package/dist/types/transport/trpc/a2a/routes/index.d.ts.map +0 -1
  281. package/dist/types/transport/trpc/a2a/routes/info.d.ts.map +0 -1
  282. package/dist/types/transport/trpc/a2a/routes/message/index.d.ts.map +0 -1
  283. package/dist/types/transport/trpc/a2a/routes/tasks/index.d.ts.map +0 -1
  284. package/dist/types/transport/trpc/a2a/trpc.d.ts.map +0 -1
  285. package/dist/types/transport/trpc/index.d.ts.map +0 -1
  286. package/dist/types/types/ext.d.ts.map +0 -1
  287. package/dist/types/types/index.d.ts +0 -5
  288. package/dist/types/types/index.d.ts.map +0 -1
  289. package/dist/types/types/interfaces/client.d.ts.map +0 -1
  290. package/dist/types/types/interfaces/index.d.ts.map +0 -1
  291. package/dist/types/types/interfaces/services/a2a/builder.d.ts.map +0 -1
  292. package/dist/types/types/interfaces/services/a2a/context.d.ts.map +0 -1
  293. package/dist/types/types/interfaces/services/a2a/engine.d.ts.map +0 -1
  294. package/dist/types/types/interfaces/services/a2a/index.d.ts.map +0 -1
  295. package/dist/types/types/interfaces/services/a2a/legacy.d.ts.map +0 -1
  296. package/dist/types/types/interfaces/services/a2a/service.d.ts.map +0 -1
  297. package/dist/types/types/interfaces/services/core/context/command.d.ts.map +0 -1
  298. package/dist/types/types/interfaces/services/core/context/context.d.ts.map +0 -1
  299. package/dist/types/types/interfaces/services/core/context/index.d.ts.map +0 -1
  300. package/dist/types/types/interfaces/services/core/context/types.d.ts.map +0 -1
  301. package/dist/types/types/interfaces/services/core/execution/engine.d.ts.map +0 -1
  302. package/dist/types/types/interfaces/services/core/execution/environment.d.ts.map +0 -1
  303. package/dist/types/types/interfaces/services/core/execution/execute.d.ts.map +0 -1
  304. package/dist/types/types/interfaces/services/core/execution/index.d.ts.map +0 -1
  305. package/dist/types/types/interfaces/services/core/index.d.ts.map +0 -1
  306. package/dist/types/types/interfaces/services/core/managers/cancellation.d.ts.map +0 -1
  307. package/dist/types/types/interfaces/services/core/managers/connection.d.ts.map +0 -1
  308. package/dist/types/types/interfaces/services/core/managers/context.d.ts.map +0 -1
  309. package/dist/types/types/interfaces/services/core/managers/event.d.ts.map +0 -1
  310. package/dist/types/types/interfaces/services/core/managers/index.d.ts.map +0 -1
  311. package/dist/types/types/interfaces/services/core/managers/stream.d.ts.map +0 -1
  312. package/dist/types/types/interfaces/services/core/managers/task.d.ts.map +0 -1
  313. package/dist/types/types/interfaces/services/core/service.d.ts.map +0 -1
  314. package/dist/types/types/interfaces/services/index.d.ts.map +0 -1
  315. package/dist/types/types/interfaces/services/protocol.d.ts.map +0 -1
  316. package/dist/types/types/interfaces/storage.d.ts.map +0 -1
  317. package/dist/types/types/schemas/a2a/agent.d.ts +0 -509
  318. package/dist/types/types/schemas/a2a/agent.d.ts.map +0 -1
  319. package/dist/types/types/schemas/a2a/auth.d.ts +0 -285
  320. package/dist/types/types/schemas/a2a/auth.d.ts.map +0 -1
  321. package/dist/types/types/schemas/a2a/error.d.ts.map +0 -1
  322. package/dist/types/types/schemas/a2a/index.d.ts.map +0 -1
  323. package/dist/types/types/schemas/a2a/kind.d.ts +0 -28
  324. package/dist/types/types/schemas/a2a/kind.d.ts.map +0 -1
  325. package/dist/types/types/schemas/a2a/message.d.ts +0 -2570
  326. package/dist/types/types/schemas/a2a/message.d.ts.map +0 -1
  327. package/dist/types/types/schemas/a2a/notification.d.ts +0 -338
  328. package/dist/types/types/schemas/a2a/notification.d.ts.map +0 -1
  329. package/dist/types/types/schemas/a2a/parameters.d.ts +0 -308
  330. package/dist/types/types/schemas/a2a/parameters.d.ts.map +0 -1
  331. package/dist/types/types/schemas/a2a/protocol.d.ts +0 -3207
  332. package/dist/types/types/schemas/a2a/protocol.d.ts.map +0 -1
  333. package/dist/types/types/schemas/a2a/rpc.d.ts +0 -57
  334. package/dist/types/types/schemas/a2a/rpc.d.ts.map +0 -1
  335. package/dist/types/types/schemas/a2a/task.d.ts +0 -1498
  336. package/dist/types/types/schemas/a2a/task.d.ts.map +0 -1
  337. package/dist/types/types/schemas/a2a/transport.d.ts +0 -28
  338. package/dist/types/types/schemas/a2a/transport.d.ts.map +0 -1
  339. package/dist/types/types/schemas/deployment/index.d.ts +0 -3
  340. package/dist/types/types/schemas/deployment/index.d.ts.map +0 -1
  341. package/dist/types/types/schemas/deployment/proxy.d.ts +0 -96
  342. package/dist/types/types/schemas/deployment/proxy.d.ts.map +0 -1
  343. package/dist/types/types/schemas/deployment/request.d.ts +0 -508
  344. package/dist/types/types/schemas/deployment/request.d.ts.map +0 -1
  345. package/dist/types/types/schemas/index.d.ts.map +0 -1
  346. package/dist/types/types/utils/index.d.ts +0 -2
  347. package/dist/types/types/utils/index.d.ts.map +0 -1
  348. package/dist/types/types/utils/transform.d.ts.map +0 -1
  349. package/dist/types/utils/api/register.d.ts +0 -29
  350. package/dist/types/utils/api/register.d.ts.map +0 -1
  351. package/dist/types/utils/common/constants.d.ts.map +0 -1
  352. package/dist/types/utils/common/errors.d.ts.map +0 -1
  353. package/dist/types/utils/common/utils.d.ts.map +0 -1
  354. package/dist/types/utils/common/zAsyncIterable.d.ts.map +0 -1
  355. package/dist/types/utils/deployment/agents.d.ts +0 -57
  356. package/dist/types/utils/deployment/agents.d.ts.map +0 -1
  357. package/dist/types/utils/deployment/bundler.d.ts +0 -15
  358. package/dist/types/utils/deployment/bundler.d.ts.map +0 -1
  359. package/dist/types/utils/deployment/full-deployment.d.ts +0 -18
  360. package/dist/types/utils/deployment/full-deployment.d.ts.map +0 -1
  361. package/dist/types/utils/deployment/index.d.ts +0 -5
  362. package/dist/types/utils/deployment/index.d.ts.map +0 -1
  363. package/dist/types/utils/deployment/task-wrapper.d.ts +0 -43
  364. package/dist/types/utils/deployment/task-wrapper.d.ts.map +0 -1
  365. package/dist/types/utils/deployment/test-deployment.d.ts +0 -28
  366. package/dist/types/utils/deployment/test-deployment.d.ts.map +0 -1
  367. package/dist/types/utils/logging/index.d.ts.map +0 -1
  368. package/dist/types/utils/logging/log.d.ts.map +0 -1
  369. package/dist/types/utils/logging/logger.d.ts +0 -20
  370. package/dist/types/utils/logging/logger.d.ts.map +0 -1
  371. package/dist/types/utils/storage/file.d.ts.map +0 -1
  372. package/dist/types/utils/storage/memory.d.ts.map +0 -1
  373. package/dist/utils/api/register.js +0 -107
  374. package/dist/utils/api/register.js.map +0 -1
  375. package/dist/utils/deployment/agents.js +0 -96
  376. package/dist/utils/deployment/agents.js.map +0 -1
  377. package/dist/utils/deployment/bundler.js +0 -52
  378. package/dist/utils/deployment/bundler.js.map +0 -1
  379. package/dist/utils/deployment/full-deployment.js +0 -35
  380. package/dist/utils/deployment/full-deployment.js.map +0 -1
  381. package/dist/utils/deployment/index.js +0 -5
  382. package/dist/utils/deployment/index.js.map +0 -1
  383. package/dist/utils/deployment/task-wrapper.js +0 -44
  384. package/dist/utils/deployment/task-wrapper.js.map +0 -1
  385. package/dist/utils/deployment/test-deployment.js +0 -69
  386. package/dist/utils/deployment/test-deployment.js.map +0 -1
  387. /package/dist/{types/client → client}/a2a-client.d.ts +0 -0
  388. /package/dist/{types/client → client}/index.d.ts +0 -0
  389. /package/dist/{types/server → server}/express/errors.d.ts +0 -0
  390. /package/dist/{types/server → server}/express/index.d.ts +0 -0
  391. /package/dist/{types/server → server}/express/middeware.d.ts +0 -0
  392. /package/dist/{types/server → server}/index.d.ts +0 -0
  393. /package/dist/{types/services → services}/a2a/factory/index.d.ts +0 -0
  394. /package/dist/{types/services → services}/a2a/factory/method.d.ts +0 -0
  395. /package/dist/{types/services → services}/a2a/factory/service.d.ts +0 -0
  396. /package/dist/{types/services → services}/a2a/helpers/index.d.ts +0 -0
  397. /package/dist/{types/services → services}/a2a/helpers/part.d.ts +0 -0
  398. /package/dist/{types/services → services}/a2a/index.d.ts +0 -0
  399. /package/dist/{types/services → services}/a2a/managers/cancellation.d.ts +0 -0
  400. /package/dist/{types/services → services}/a2a/managers/connection.d.ts +0 -0
  401. /package/dist/{types/services → services}/a2a/managers/context.d.ts +0 -0
  402. /package/dist/{types/services → services}/a2a/managers/index.d.ts +0 -0
  403. /package/dist/{types/services → services}/a2a/managers/task.d.ts +0 -0
  404. /package/dist/{types/services → services}/a2a/methods/cancel-task.d.ts +0 -0
  405. /package/dist/{types/services → services}/a2a/methods/index.d.ts +0 -0
  406. /package/dist/{types/services → services}/a2a/methods/resubscribe-task.d.ts +0 -0
  407. /package/dist/{types/services → services}/a2a/methods/send-message.d.ts +0 -0
  408. /package/dist/{types/services → services}/a2a/methods/stream-message.d.ts +0 -0
  409. /package/dist/{types/services → services}/a2a/state/index.d.ts +0 -0
  410. /package/dist/{types/services → services}/a2a/state/load.d.ts +0 -0
  411. /package/dist/{types/services → services}/a2a/state/process.d.ts +0 -0
  412. /package/dist/{types/services → services}/a2a/state/update/artifact.d.ts +0 -0
  413. /package/dist/{types/services → services}/a2a/state/update/index.d.ts +0 -0
  414. /package/dist/{types/services → services}/a2a/state/update/update.d.ts +0 -0
  415. /package/dist/{types/services → services}/core/execution/execute.d.ts +0 -0
  416. /package/dist/{types/services → services}/core/execution/index.d.ts +0 -0
  417. /package/dist/{types/services → services}/core/index.d.ts +0 -0
  418. /package/dist/{types/services → services}/core/managers/command.d.ts +0 -0
  419. /package/dist/{types/services → services}/core/managers/event.d.ts +0 -0
  420. /package/dist/{types/services → services}/core/managers/index.d.ts +0 -0
  421. /package/dist/{types/services → services}/core/managers/stream.d.ts +0 -0
  422. /package/dist/{types/transport → transport}/index.d.ts +0 -0
  423. /package/dist/{types/transport → transport}/rpc/parser.d.ts +0 -0
  424. /package/dist/{types/transport → transport}/rpc/rpc-client.d.ts +0 -0
  425. /package/dist/{types/transport → transport}/streaming/event-stream.d.ts +0 -0
  426. /package/dist/{types/transport → transport}/trpc/a2a/factory/index.d.ts +0 -0
  427. /package/dist/{types/transport → transport}/trpc/a2a/index.d.ts +0 -0
  428. /package/dist/{types/transport → transport}/trpc/a2a/routes/index.d.ts +0 -0
  429. /package/dist/{types/transport → transport}/trpc/a2a/routes/message/index.d.ts +0 -0
  430. /package/dist/{types/transport → transport}/trpc/a2a/routes/tasks/index.d.ts +0 -0
  431. /package/dist/{types/transport → transport}/trpc/index.d.ts +0 -0
  432. /package/dist/types/{types/ext.d.ts → ext.d.ts} +0 -0
  433. /package/dist/types/{types/interfaces → interfaces}/client.d.ts +0 -0
  434. /package/dist/types/{types/interfaces → interfaces}/index.d.ts +0 -0
  435. /package/dist/types/{types/interfaces → interfaces}/services/a2a/engine.d.ts +0 -0
  436. /package/dist/types/{types/interfaces → interfaces}/services/a2a/index.d.ts +0 -0
  437. /package/dist/types/{types/interfaces → interfaces}/services/core/context/command.d.ts +0 -0
  438. /package/dist/types/{types/interfaces → interfaces}/services/core/context/index.d.ts +0 -0
  439. /package/dist/types/{types/interfaces → interfaces}/services/core/context/types.d.ts +0 -0
  440. /package/dist/types/{types/interfaces → interfaces}/services/core/execution/environment.d.ts +0 -0
  441. /package/dist/types/{types/interfaces → interfaces}/services/core/execution/execute.d.ts +0 -0
  442. /package/dist/types/{types/interfaces → interfaces}/services/core/execution/index.d.ts +0 -0
  443. /package/dist/types/{types/interfaces → interfaces}/services/core/index.d.ts +0 -0
  444. /package/dist/types/{types/interfaces → interfaces}/services/core/managers/cancellation.d.ts +0 -0
  445. /package/dist/types/{types/interfaces → interfaces}/services/core/managers/connection.d.ts +0 -0
  446. /package/dist/types/{types/interfaces → interfaces}/services/core/managers/context.d.ts +0 -0
  447. /package/dist/types/{types/interfaces → interfaces}/services/core/managers/index.d.ts +0 -0
  448. /package/dist/types/{types/interfaces → interfaces}/services/core/managers/task.d.ts +0 -0
  449. /package/dist/types/{types/interfaces → interfaces}/services/protocol.d.ts +0 -0
  450. /package/dist/types/{types/interfaces → interfaces}/storage.d.ts +0 -0
  451. /package/dist/types/{types/schemas → schemas}/a2a/index.d.ts +0 -0
  452. /package/dist/types/{types/schemas → schemas}/index.d.ts +0 -0
  453. /package/dist/types/{types/utils → utils}/transform.d.ts +0 -0
  454. /package/dist/{types/utils → utils}/common/constants.d.ts +0 -0
  455. /package/dist/{types/utils → utils}/common/errors.d.ts +0 -0
  456. /package/dist/{types/utils → utils}/common/utils.d.ts +0 -0
  457. /package/dist/{types/utils → utils}/common/zAsyncIterable.d.ts +0 -0
  458. /package/dist/{types/utils → utils}/logging/index.d.ts +0 -0
  459. /package/dist/{types/utils → utils}/logging/log.d.ts +0 -0
  460. /package/dist/{types/utils → utils}/storage/memory.d.ts +0 -0
@@ -0,0 +1,2584 @@
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
+ required?: boolean | undefined;
49
+ description?: string | undefined;
50
+ params?: Record<string, unknown> | undefined;
51
+ }, {
52
+ uri: string;
53
+ required?: boolean | undefined;
54
+ description?: string | undefined;
55
+ params?: Record<string, unknown> | 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
+ required?: boolean | undefined;
97
+ description?: string | undefined;
98
+ params?: Record<string, unknown> | undefined;
99
+ }, {
100
+ uri: string;
101
+ required?: boolean | undefined;
102
+ description?: string | undefined;
103
+ params?: Record<string, unknown> | undefined;
104
+ }>, "many">>;
105
+ }, "strip", z.ZodTypeAny, {
106
+ extensions?: {
107
+ uri: string;
108
+ required?: boolean | undefined;
109
+ description?: string | undefined;
110
+ params?: Record<string, unknown> | undefined;
111
+ }[] | undefined;
112
+ streaming?: boolean | undefined;
113
+ pushNotifications?: boolean | undefined;
114
+ stateTransitionHistory?: boolean | undefined;
115
+ }, {
116
+ extensions?: {
117
+ uri: string;
118
+ required?: boolean | undefined;
119
+ description?: string | undefined;
120
+ params?: Record<string, unknown> | 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.ZodOptional<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
+ name: string;
165
+ id: string;
166
+ description: string;
167
+ tags?: string[] | undefined;
168
+ examples?: string[] | undefined;
169
+ inputModes?: string[] | undefined;
170
+ outputModes?: string[] | undefined;
171
+ security?: Record<string, string[]>[] | undefined;
172
+ }, {
173
+ name: string;
174
+ id: string;
175
+ description: string;
176
+ tags?: string[] | undefined;
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
+ required?: boolean | undefined;
317
+ description?: string | undefined;
318
+ params?: Record<string, unknown> | undefined;
319
+ }, {
320
+ uri: string;
321
+ required?: boolean | undefined;
322
+ description?: string | undefined;
323
+ params?: Record<string, unknown> | undefined;
324
+ }>, "many">>;
325
+ }, "strip", z.ZodTypeAny, {
326
+ extensions?: {
327
+ uri: string;
328
+ required?: boolean | undefined;
329
+ description?: string | undefined;
330
+ params?: Record<string, unknown> | undefined;
331
+ }[] | undefined;
332
+ streaming?: boolean | undefined;
333
+ pushNotifications?: boolean | undefined;
334
+ stateTransitionHistory?: boolean | undefined;
335
+ }, {
336
+ extensions?: {
337
+ uri: string;
338
+ required?: boolean | undefined;
339
+ description?: string | undefined;
340
+ params?: Record<string, unknown> | 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
+ name: string;
358
+ type: "apiKey";
359
+ in: "header" | "query" | "cookie";
360
+ description?: string | undefined;
361
+ }, {
362
+ name: string;
363
+ type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
364
+ in: "header" | "query" | "cookie";
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.ZodOptional<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
+ name: string;
617
+ id: string;
618
+ description: string;
619
+ tags?: string[] | undefined;
620
+ examples?: string[] | undefined;
621
+ inputModes?: string[] | undefined;
622
+ outputModes?: string[] | undefined;
623
+ security?: Record<string, string[]>[] | undefined;
624
+ }, {
625
+ name: string;
626
+ id: string;
627
+ description: string;
628
+ tags?: string[] | undefined;
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
+ name: string;
665
+ url: string;
666
+ description: string;
667
+ version: string;
668
+ protocolVersion: string;
669
+ capabilities: {
670
+ extensions?: {
671
+ uri: string;
672
+ required?: boolean | undefined;
673
+ description?: string | undefined;
674
+ params?: Record<string, unknown> | 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
+ name: string;
684
+ id: string;
685
+ description: string;
686
+ tags?: string[] | undefined;
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
+ name: string;
706
+ type: "apiKey";
707
+ in: "header" | "query" | "cookie";
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
+ name: string;
757
+ url: string;
758
+ description: string;
759
+ version: string;
760
+ capabilities: {
761
+ extensions?: {
762
+ uri: string;
763
+ required?: boolean | undefined;
764
+ description?: string | undefined;
765
+ params?: Record<string, unknown> | 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
+ name: string;
775
+ id: string;
776
+ description: string;
777
+ tags?: string[] | undefined;
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
+ name: string;
798
+ type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
799
+ in: "header" | "query" | "cookie";
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
+ id: string | number;
860
+ method: "agent/getAuthenticatedExtendedCard";
861
+ jsonrpc: "2.0";
862
+ params?: undefined;
863
+ }, {
864
+ id: string | number;
865
+ method: "agent/getAuthenticatedExtendedCard";
866
+ jsonrpc: "2.0";
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
+ required?: boolean | undefined;
982
+ description?: string | undefined;
983
+ params?: Record<string, unknown> | undefined;
984
+ }, {
985
+ uri: string;
986
+ required?: boolean | undefined;
987
+ description?: string | undefined;
988
+ params?: Record<string, unknown> | undefined;
989
+ }>, "many">>;
990
+ }, "strip", z.ZodTypeAny, {
991
+ extensions?: {
992
+ uri: string;
993
+ required?: boolean | undefined;
994
+ description?: string | undefined;
995
+ params?: Record<string, unknown> | undefined;
996
+ }[] | undefined;
997
+ streaming?: boolean | undefined;
998
+ pushNotifications?: boolean | undefined;
999
+ stateTransitionHistory?: boolean | undefined;
1000
+ }, {
1001
+ extensions?: {
1002
+ uri: string;
1003
+ required?: boolean | undefined;
1004
+ description?: string | undefined;
1005
+ params?: Record<string, unknown> | 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
+ name: string;
1023
+ type: "apiKey";
1024
+ in: "header" | "query" | "cookie";
1025
+ description?: string | undefined;
1026
+ }, {
1027
+ name: string;
1028
+ type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
1029
+ in: "header" | "query" | "cookie";
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.ZodOptional<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
+ name: string;
1282
+ id: string;
1283
+ description: string;
1284
+ tags?: string[] | undefined;
1285
+ examples?: string[] | undefined;
1286
+ inputModes?: string[] | undefined;
1287
+ outputModes?: string[] | undefined;
1288
+ security?: Record<string, string[]>[] | undefined;
1289
+ }, {
1290
+ name: string;
1291
+ id: string;
1292
+ description: string;
1293
+ tags?: string[] | undefined;
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
+ name: string;
1330
+ url: string;
1331
+ description: string;
1332
+ version: string;
1333
+ protocolVersion: string;
1334
+ capabilities: {
1335
+ extensions?: {
1336
+ uri: string;
1337
+ required?: boolean | undefined;
1338
+ description?: string | undefined;
1339
+ params?: Record<string, unknown> | 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
+ name: string;
1349
+ id: string;
1350
+ description: string;
1351
+ tags?: string[] | undefined;
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
+ name: string;
1371
+ type: "apiKey";
1372
+ in: "header" | "query" | "cookie";
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
+ name: string;
1422
+ url: string;
1423
+ description: string;
1424
+ version: string;
1425
+ capabilities: {
1426
+ extensions?: {
1427
+ uri: string;
1428
+ required?: boolean | undefined;
1429
+ description?: string | undefined;
1430
+ params?: Record<string, unknown> | 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
+ name: string;
1440
+ id: string;
1441
+ description: string;
1442
+ tags?: string[] | undefined;
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
+ name: string;
1463
+ type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
1464
+ in: "header" | "query" | "cookie";
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
+ name: string;
1517
+ url: string;
1518
+ description: string;
1519
+ version: string;
1520
+ protocolVersion: string;
1521
+ capabilities: {
1522
+ extensions?: {
1523
+ uri: string;
1524
+ required?: boolean | undefined;
1525
+ description?: string | undefined;
1526
+ params?: Record<string, unknown> | 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
+ name: string;
1536
+ id: string;
1537
+ description: string;
1538
+ tags?: string[] | undefined;
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
+ name: string;
1558
+ type: "apiKey";
1559
+ in: "header" | "query" | "cookie";
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
+ error?: undefined;
1609
+ id?: string | number | undefined;
1610
+ }, {
1611
+ jsonrpc: "2.0";
1612
+ result: {
1613
+ name: string;
1614
+ url: string;
1615
+ description: string;
1616
+ version: string;
1617
+ capabilities: {
1618
+ extensions?: {
1619
+ uri: string;
1620
+ required?: boolean | undefined;
1621
+ description?: string | undefined;
1622
+ params?: Record<string, unknown> | 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
+ name: string;
1632
+ id: string;
1633
+ description: string;
1634
+ tags?: string[] | undefined;
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
+ name: string;
1655
+ type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
1656
+ in: "header" | "query" | "cookie";
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
+ error?: undefined;
1706
+ id?: string | number | 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
+ required?: boolean | undefined;
1821
+ description?: string | undefined;
1822
+ params?: Record<string, unknown> | undefined;
1823
+ }, {
1824
+ uri: string;
1825
+ required?: boolean | undefined;
1826
+ description?: string | undefined;
1827
+ params?: Record<string, unknown> | undefined;
1828
+ }>, "many">>;
1829
+ }, "strip", z.ZodTypeAny, {
1830
+ extensions?: {
1831
+ uri: string;
1832
+ required?: boolean | undefined;
1833
+ description?: string | undefined;
1834
+ params?: Record<string, unknown> | undefined;
1835
+ }[] | undefined;
1836
+ streaming?: boolean | undefined;
1837
+ pushNotifications?: boolean | undefined;
1838
+ stateTransitionHistory?: boolean | undefined;
1839
+ }, {
1840
+ extensions?: {
1841
+ uri: string;
1842
+ required?: boolean | undefined;
1843
+ description?: string | undefined;
1844
+ params?: Record<string, unknown> | 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
+ name: string;
1862
+ type: "apiKey";
1863
+ in: "header" | "query" | "cookie";
1864
+ description?: string | undefined;
1865
+ }, {
1866
+ name: string;
1867
+ type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
1868
+ in: "header" | "query" | "cookie";
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.ZodOptional<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
+ name: string;
2121
+ id: string;
2122
+ description: string;
2123
+ tags?: string[] | undefined;
2124
+ examples?: string[] | undefined;
2125
+ inputModes?: string[] | undefined;
2126
+ outputModes?: string[] | undefined;
2127
+ security?: Record<string, string[]>[] | undefined;
2128
+ }, {
2129
+ name: string;
2130
+ id: string;
2131
+ description: string;
2132
+ tags?: string[] | undefined;
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
+ name: string;
2169
+ url: string;
2170
+ description: string;
2171
+ version: string;
2172
+ protocolVersion: string;
2173
+ capabilities: {
2174
+ extensions?: {
2175
+ uri: string;
2176
+ required?: boolean | undefined;
2177
+ description?: string | undefined;
2178
+ params?: Record<string, unknown> | 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
+ name: string;
2188
+ id: string;
2189
+ description: string;
2190
+ tags?: string[] | undefined;
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
+ name: string;
2210
+ type: "apiKey";
2211
+ in: "header" | "query" | "cookie";
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
+ name: string;
2261
+ url: string;
2262
+ description: string;
2263
+ version: string;
2264
+ capabilities: {
2265
+ extensions?: {
2266
+ uri: string;
2267
+ required?: boolean | undefined;
2268
+ description?: string | undefined;
2269
+ params?: Record<string, unknown> | 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
+ name: string;
2279
+ id: string;
2280
+ description: string;
2281
+ tags?: string[] | undefined;
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
+ name: string;
2302
+ type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
2303
+ in: "header" | "query" | "cookie";
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
+ name: string;
2356
+ url: string;
2357
+ description: string;
2358
+ version: string;
2359
+ protocolVersion: string;
2360
+ capabilities: {
2361
+ extensions?: {
2362
+ uri: string;
2363
+ required?: boolean | undefined;
2364
+ description?: string | undefined;
2365
+ params?: Record<string, unknown> | 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
+ name: string;
2375
+ id: string;
2376
+ description: string;
2377
+ tags?: string[] | undefined;
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
+ name: string;
2397
+ type: "apiKey";
2398
+ in: "header" | "query" | "cookie";
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
+ error?: undefined;
2448
+ id?: string | number | undefined;
2449
+ }, {
2450
+ jsonrpc: "2.0";
2451
+ result: {
2452
+ name: string;
2453
+ url: string;
2454
+ description: string;
2455
+ version: string;
2456
+ capabilities: {
2457
+ extensions?: {
2458
+ uri: string;
2459
+ required?: boolean | undefined;
2460
+ description?: string | undefined;
2461
+ params?: Record<string, unknown> | 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
+ name: string;
2471
+ id: string;
2472
+ description: string;
2473
+ tags?: string[] | undefined;
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
+ name: string;
2494
+ type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
2495
+ in: "header" | "query" | "cookie";
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
+ error?: undefined;
2545
+ id?: string | number | 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
+ code: number;
2557
+ message: string;
2558
+ data?: unknown;
2559
+ }, {
2560
+ code: number;
2561
+ message: string;
2562
+ data?: unknown;
2563
+ }>;
2564
+ }, "strip", z.ZodTypeAny, {
2565
+ error: {
2566
+ code: number;
2567
+ message: string;
2568
+ data?: unknown;
2569
+ };
2570
+ jsonrpc: "2.0";
2571
+ id?: string | number | undefined;
2572
+ result?: undefined;
2573
+ }, {
2574
+ error: {
2575
+ code: number;
2576
+ message: string;
2577
+ data?: unknown;
2578
+ };
2579
+ jsonrpc: "2.0";
2580
+ id?: string | number | undefined;
2581
+ result?: undefined;
2582
+ }>]>;
2583
+ export type GetAuthenticatedExtendedCardResponse = z.infer<typeof GetAuthenticatedExtendedCardResponseSchema>;
2584
+ //# sourceMappingURL=agent.d.ts.map