@artinet/sdk 0.5.4 → 0.5.6

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 (622) hide show
  1. package/CHANGELOG.md +106 -20
  2. package/README.md +472 -215
  3. package/dist/client/a2a-client.js +6 -1
  4. package/dist/client/a2a-client.js.map +1 -1
  5. package/dist/index.js +3 -2
  6. package/dist/index.js.map +1 -1
  7. package/dist/server/express/errors.js +51 -0
  8. package/dist/server/express/errors.js.map +1 -0
  9. package/dist/server/express/index.js +4 -0
  10. package/dist/server/express/index.js.map +1 -0
  11. package/dist/server/express/middeware.js +116 -0
  12. package/dist/server/express/middeware.js.map +1 -0
  13. package/dist/server/express/server.js +80 -0
  14. package/dist/server/express/server.js.map +1 -0
  15. package/dist/server/index.js +1 -7
  16. package/dist/server/index.js.map +1 -1
  17. package/dist/services/a2a/factory/builder.js +392 -0
  18. package/dist/services/a2a/factory/builder.js.map +1 -0
  19. package/dist/services/a2a/factory/context.js +151 -0
  20. package/dist/services/a2a/factory/context.js.map +1 -0
  21. package/dist/services/a2a/factory/event.js +182 -0
  22. package/dist/services/a2a/factory/event.js.map +1 -0
  23. package/dist/services/a2a/factory/index.js +6 -0
  24. package/dist/services/a2a/factory/index.js.map +1 -0
  25. package/dist/services/a2a/factory/method.js +15 -0
  26. package/dist/services/a2a/factory/method.js.map +1 -0
  27. package/dist/services/a2a/factory/service.js +12 -0
  28. package/dist/services/a2a/factory/service.js.map +1 -0
  29. package/dist/services/a2a/helpers/index.js +2 -0
  30. package/dist/services/a2a/helpers/index.js.map +1 -0
  31. package/dist/services/a2a/helpers/part.js +47 -0
  32. package/dist/services/a2a/helpers/part.js.map +1 -0
  33. package/dist/services/a2a/index.js +5 -1
  34. package/dist/services/a2a/index.js.map +1 -1
  35. package/dist/services/a2a/managers/cancellation.js +17 -0
  36. package/dist/services/a2a/managers/cancellation.js.map +1 -0
  37. package/dist/services/a2a/managers/connection.js +17 -0
  38. package/dist/services/a2a/managers/connection.js.map +1 -0
  39. package/dist/services/a2a/managers/context.js +17 -0
  40. package/dist/services/a2a/managers/context.js.map +1 -0
  41. package/dist/services/a2a/managers/index.js +6 -0
  42. package/dist/services/a2a/managers/index.js.map +1 -0
  43. package/dist/services/a2a/managers/task.js +17 -0
  44. package/dist/services/a2a/managers/task.js.map +1 -0
  45. package/dist/services/a2a/methods/cancel-task.js +47 -0
  46. package/dist/services/a2a/methods/cancel-task.js.map +1 -0
  47. package/dist/services/a2a/methods/get-task.js +15 -0
  48. package/dist/services/a2a/methods/get-task.js.map +1 -0
  49. package/dist/services/a2a/methods/index.js +6 -0
  50. package/dist/services/a2a/methods/index.js.map +1 -0
  51. package/dist/services/a2a/methods/resubscribe-task.js +77 -0
  52. package/dist/services/a2a/methods/resubscribe-task.js.map +1 -0
  53. package/dist/services/a2a/methods/send-message.js +20 -0
  54. package/dist/services/a2a/methods/send-message.js.map +1 -0
  55. package/dist/services/a2a/methods/stream-message.js +39 -0
  56. package/dist/services/a2a/methods/stream-message.js.map +1 -0
  57. package/dist/services/a2a/service.js +88 -239
  58. package/dist/services/a2a/service.js.map +1 -1
  59. package/dist/services/a2a/state/index.js +4 -0
  60. package/dist/services/a2a/state/index.js.map +1 -0
  61. package/dist/services/a2a/state/load.js +43 -0
  62. package/dist/services/a2a/state/load.js.map +1 -0
  63. package/dist/services/a2a/state/process.js +14 -0
  64. package/dist/services/a2a/state/process.js.map +1 -0
  65. package/dist/services/a2a/state/update/artifact.js +40 -0
  66. package/dist/services/a2a/state/update/artifact.js.map +1 -0
  67. package/dist/services/a2a/state/update/index.js +3 -0
  68. package/dist/services/a2a/state/update/index.js.map +1 -0
  69. package/dist/{server/lib/update/base.js → services/a2a/state/update/update.js} +23 -9
  70. package/dist/services/a2a/state/update/update.js.map +1 -0
  71. package/dist/services/core/execution/execute.js +26 -0
  72. package/dist/services/core/execution/execute.js.map +1 -0
  73. package/dist/services/core/execution/index.js +2 -0
  74. package/dist/services/core/execution/index.js.map +1 -0
  75. package/dist/services/core/index.js +3 -0
  76. package/dist/services/core/index.js.map +1 -0
  77. package/dist/services/core/managers/command.js +95 -0
  78. package/dist/services/core/managers/command.js.map +1 -0
  79. package/dist/services/core/managers/event.js +57 -0
  80. package/dist/services/core/managers/event.js.map +1 -0
  81. package/dist/services/core/managers/index.js +4 -0
  82. package/dist/services/core/managers/index.js.map +1 -0
  83. package/dist/services/core/managers/stream.js +78 -0
  84. package/dist/services/core/managers/stream.js.map +1 -0
  85. package/dist/services/index.js +2 -1
  86. package/dist/services/index.js.map +1 -1
  87. package/dist/transport/index.js +1 -1
  88. package/dist/transport/index.js.map +1 -1
  89. package/dist/transport/rpc/parser.js +13 -5
  90. package/dist/transport/rpc/parser.js.map +1 -1
  91. package/dist/transport/rpc/rpc-client.js +10 -2
  92. package/dist/transport/rpc/rpc-client.js.map +1 -1
  93. package/dist/transport/streaming/event-stream.js +5 -1
  94. package/dist/transport/streaming/event-stream.js.map +1 -1
  95. package/dist/transport/trpc/a2a/factory/index.js +2 -0
  96. package/dist/transport/trpc/a2a/factory/index.js.map +1 -0
  97. package/dist/transport/trpc/a2a/factory/router.js +17 -0
  98. package/dist/transport/trpc/a2a/factory/router.js.map +1 -0
  99. package/dist/transport/trpc/a2a/index.js +4 -0
  100. package/dist/transport/trpc/a2a/index.js.map +1 -0
  101. package/dist/transport/trpc/a2a/routes/index.js +4 -0
  102. package/dist/transport/trpc/a2a/routes/index.js.map +1 -0
  103. package/dist/transport/trpc/a2a/routes/info.js +10 -0
  104. package/dist/transport/trpc/a2a/routes/info.js.map +1 -0
  105. package/dist/transport/trpc/a2a/routes/message/index.js +2 -0
  106. package/dist/transport/trpc/a2a/routes/message/index.js.map +1 -0
  107. package/dist/transport/trpc/a2a/routes/message/route.js +38 -0
  108. package/dist/transport/trpc/a2a/routes/message/route.js.map +1 -0
  109. package/dist/transport/trpc/a2a/routes/tasks/index.js +2 -0
  110. package/dist/transport/trpc/a2a/routes/tasks/index.js.map +1 -0
  111. package/dist/transport/trpc/a2a/routes/tasks/route.js +71 -0
  112. package/dist/transport/trpc/a2a/routes/tasks/route.js.map +1 -0
  113. package/dist/transport/trpc/a2a/trpc.js +36 -0
  114. package/dist/transport/trpc/a2a/trpc.js.map +1 -0
  115. package/dist/transport/trpc/index.js +2 -0
  116. package/dist/transport/trpc/index.js.map +1 -0
  117. package/dist/types/client/a2a-client.d.ts +5 -1
  118. package/dist/types/client/a2a-client.d.ts.map +1 -1
  119. package/dist/types/ext.js +11 -0
  120. package/dist/types/ext.js.map +1 -0
  121. package/dist/types/index.d.ts +3 -2
  122. package/dist/types/index.d.ts.map +1 -1
  123. package/dist/types/index.js +3 -4
  124. package/dist/types/index.js.map +1 -1
  125. package/dist/types/interfaces/client.js +6 -0
  126. package/dist/types/interfaces/client.js.map +1 -0
  127. package/dist/types/interfaces/index.js +4 -0
  128. package/dist/types/interfaces/index.js.map +1 -0
  129. package/dist/types/interfaces/services/a2a/builder.js +2 -0
  130. package/dist/types/interfaces/services/a2a/builder.js.map +1 -0
  131. package/dist/types/interfaces/services/a2a/context.js +6 -0
  132. package/dist/types/interfaces/services/a2a/context.js.map +1 -0
  133. package/dist/types/interfaces/services/a2a/engine.js +6 -0
  134. package/dist/types/interfaces/services/a2a/engine.js.map +1 -0
  135. package/dist/types/interfaces/services/a2a/index.js +6 -0
  136. package/dist/types/interfaces/services/a2a/index.js.map +1 -0
  137. package/dist/types/interfaces/services/a2a/legacy.js +6 -0
  138. package/dist/types/interfaces/services/a2a/legacy.js.map +1 -0
  139. package/dist/types/interfaces/services/a2a/service.js +6 -0
  140. package/dist/types/interfaces/services/a2a/service.js.map +1 -0
  141. package/dist/types/interfaces/services/core/context/command.js +6 -0
  142. package/dist/types/interfaces/services/core/context/command.js.map +1 -0
  143. package/dist/types/interfaces/services/core/context/context.js +6 -0
  144. package/dist/types/interfaces/services/core/context/context.js.map +1 -0
  145. package/dist/types/interfaces/services/core/context/index.js +4 -0
  146. package/dist/types/interfaces/services/core/context/index.js.map +1 -0
  147. package/dist/types/interfaces/services/core/context/types.js +6 -0
  148. package/dist/types/interfaces/services/core/context/types.js.map +1 -0
  149. package/dist/types/interfaces/services/core/execution/engine.js +6 -0
  150. package/dist/types/interfaces/services/core/execution/engine.js.map +1 -0
  151. package/dist/types/interfaces/services/core/execution/environment.js +6 -0
  152. package/dist/types/interfaces/services/core/execution/environment.js.map +1 -0
  153. package/dist/types/interfaces/services/core/execution/execute.js +6 -0
  154. package/dist/types/interfaces/services/core/execution/execute.js.map +1 -0
  155. package/dist/types/interfaces/services/core/execution/index.js +4 -0
  156. package/dist/types/interfaces/services/core/execution/index.js.map +1 -0
  157. package/dist/types/interfaces/services/core/index.js +5 -0
  158. package/dist/types/interfaces/services/core/index.js.map +1 -0
  159. package/dist/types/interfaces/services/core/managers/cancellation.js +6 -0
  160. package/dist/types/interfaces/services/core/managers/cancellation.js.map +1 -0
  161. package/dist/types/interfaces/services/core/managers/connection.js +6 -0
  162. package/dist/types/interfaces/services/core/managers/connection.js.map +1 -0
  163. package/dist/types/interfaces/services/core/managers/context.js +6 -0
  164. package/dist/types/interfaces/services/core/managers/context.js.map +1 -0
  165. package/dist/types/interfaces/services/core/managers/event.js +6 -0
  166. package/dist/types/interfaces/services/core/managers/event.js.map +1 -0
  167. package/dist/types/interfaces/services/core/managers/index.js +7 -0
  168. package/dist/types/interfaces/services/core/managers/index.js.map +1 -0
  169. package/dist/types/interfaces/services/core/managers/stream.js +6 -0
  170. package/dist/types/interfaces/services/core/managers/stream.js.map +1 -0
  171. package/dist/types/interfaces/services/core/managers/task.js +2 -0
  172. package/dist/types/interfaces/services/core/managers/task.js.map +1 -0
  173. package/dist/types/interfaces/services/core/service.js +6 -0
  174. package/dist/types/interfaces/services/core/service.js.map +1 -0
  175. package/dist/types/interfaces/services/index.js +4 -0
  176. package/dist/types/interfaces/services/index.js.map +1 -0
  177. package/dist/types/{services → interfaces/services}/protocol.js +4 -0
  178. package/dist/types/interfaces/services/protocol.js.map +1 -0
  179. package/dist/types/interfaces/storage.js +6 -0
  180. package/dist/types/interfaces/storage.js.map +1 -0
  181. package/dist/types/schemas/a2a/agent.js +319 -0
  182. package/dist/types/schemas/a2a/agent.js.map +1 -0
  183. package/dist/types/schemas/a2a/auth.js +274 -0
  184. package/dist/types/schemas/a2a/auth.js.map +1 -0
  185. package/dist/types/schemas/a2a/error.js +119 -0
  186. package/dist/types/schemas/a2a/error.js.map +1 -1
  187. package/dist/types/schemas/a2a/index.js +8 -4
  188. package/dist/types/schemas/a2a/index.js.map +1 -1
  189. package/dist/types/schemas/a2a/kind.js +21 -0
  190. package/dist/types/schemas/a2a/kind.js.map +1 -0
  191. package/dist/types/schemas/a2a/message.js +130 -1
  192. package/dist/types/schemas/a2a/message.js.map +1 -1
  193. package/dist/types/schemas/a2a/notification.js +202 -1
  194. package/dist/types/schemas/a2a/notification.js.map +1 -1
  195. package/dist/types/schemas/a2a/parameters.js +241 -1
  196. package/dist/types/schemas/a2a/parameters.js.map +1 -1
  197. package/dist/types/schemas/a2a/protocol.js +60 -0
  198. package/dist/types/schemas/a2a/protocol.js.map +1 -0
  199. package/dist/types/schemas/a2a/rpc.js +126 -1
  200. package/dist/types/schemas/a2a/rpc.js.map +1 -1
  201. package/dist/types/schemas/a2a/task.js +131 -12
  202. package/dist/types/schemas/a2a/task.js.map +1 -1
  203. package/dist/types/schemas/a2a/transport.js +28 -0
  204. package/dist/types/schemas/a2a/transport.js.map +1 -0
  205. package/dist/types/schemas/deployment/index.js +3 -0
  206. package/dist/types/schemas/deployment/index.js.map +1 -0
  207. package/dist/types/schemas/deployment/proxy.js +6 -0
  208. package/dist/types/schemas/deployment/proxy.js.map +1 -0
  209. package/dist/types/schemas/deployment/request.js +88 -0
  210. package/dist/types/schemas/deployment/request.js.map +1 -0
  211. package/dist/types/schemas/index.js +1 -0
  212. package/dist/types/schemas/index.js.map +1 -1
  213. package/dist/types/server/express/errors.d.ts +10 -0
  214. package/dist/types/server/express/errors.d.ts.map +1 -0
  215. package/dist/types/server/express/index.d.ts +4 -0
  216. package/dist/types/server/express/index.d.ts.map +1 -0
  217. package/dist/types/server/express/middeware.d.ts +8 -0
  218. package/dist/types/server/express/middeware.d.ts.map +1 -0
  219. package/dist/types/server/express/server.d.ts +71 -0
  220. package/dist/types/server/express/server.d.ts.map +1 -0
  221. package/dist/types/server/index.d.ts +1 -7
  222. package/dist/types/server/index.d.ts.map +1 -1
  223. package/dist/types/services/a2a/factory/builder.d.ts +352 -0
  224. package/dist/types/services/a2a/factory/builder.d.ts.map +1 -0
  225. package/dist/types/services/a2a/factory/context.d.ts +133 -0
  226. package/dist/types/services/a2a/factory/context.d.ts.map +1 -0
  227. package/dist/types/services/a2a/factory/event.d.ts +59 -0
  228. package/dist/types/services/a2a/factory/event.d.ts.map +1 -0
  229. package/dist/types/services/a2a/factory/index.d.ts +6 -0
  230. package/dist/types/services/a2a/factory/index.d.ts.map +1 -0
  231. package/dist/types/services/a2a/factory/method.d.ts +7 -0
  232. package/dist/types/services/a2a/factory/method.d.ts.map +1 -0
  233. package/dist/types/services/a2a/factory/service.d.ts +10 -0
  234. package/dist/types/services/a2a/factory/service.d.ts.map +1 -0
  235. package/dist/types/services/a2a/helpers/index.d.ts +2 -0
  236. package/dist/types/services/a2a/helpers/index.d.ts.map +1 -0
  237. package/dist/types/services/a2a/helpers/part.d.ts +49 -0
  238. package/dist/types/services/a2a/helpers/part.d.ts.map +1 -0
  239. package/dist/types/services/a2a/index.d.ts +5 -1
  240. package/dist/types/services/a2a/index.d.ts.map +1 -1
  241. package/dist/types/services/a2a/managers/cancellation.d.ts +12 -0
  242. package/dist/types/services/a2a/managers/cancellation.d.ts.map +1 -0
  243. package/dist/types/services/a2a/managers/connection.d.ts +12 -0
  244. package/dist/types/services/a2a/managers/connection.d.ts.map +1 -0
  245. package/dist/types/services/a2a/managers/context.d.ts +12 -0
  246. package/dist/types/services/a2a/managers/context.d.ts.map +1 -0
  247. package/dist/types/services/a2a/managers/index.d.ts +6 -0
  248. package/dist/types/services/a2a/managers/index.d.ts.map +1 -0
  249. package/dist/types/services/a2a/managers/task.d.ts +12 -0
  250. package/dist/types/services/a2a/managers/task.d.ts.map +1 -0
  251. package/dist/types/services/a2a/methods/cancel-task.d.ts +8 -0
  252. package/dist/types/services/a2a/methods/cancel-task.d.ts.map +1 -0
  253. package/dist/types/services/a2a/methods/get-task.d.ts +113 -0
  254. package/dist/types/services/a2a/methods/get-task.d.ts.map +1 -0
  255. package/dist/types/services/a2a/methods/index.d.ts +6 -0
  256. package/dist/types/services/a2a/methods/index.d.ts.map +1 -0
  257. package/dist/types/services/a2a/methods/resubscribe-task.d.ts +8 -0
  258. package/dist/types/services/a2a/methods/resubscribe-task.d.ts.map +1 -0
  259. package/dist/types/services/a2a/methods/send-message.d.ts +8 -0
  260. package/dist/types/services/a2a/methods/send-message.d.ts.map +1 -0
  261. package/dist/types/services/a2a/methods/stream-message.d.ts +9 -0
  262. package/dist/types/services/a2a/methods/stream-message.d.ts.map +1 -0
  263. package/dist/types/services/a2a/service.d.ts +375 -41
  264. package/dist/types/services/a2a/service.d.ts.map +1 -1
  265. package/dist/types/services/a2a/state/index.d.ts +4 -0
  266. package/dist/types/services/a2a/state/index.d.ts.map +1 -0
  267. package/dist/types/services/a2a/state/load.d.ts +15 -0
  268. package/dist/types/services/a2a/state/load.d.ts.map +1 -0
  269. package/dist/types/services/a2a/state/process.d.ts +8 -0
  270. package/dist/types/services/a2a/state/process.d.ts.map +1 -0
  271. package/dist/types/services/a2a/state/update/artifact.d.ts +11 -0
  272. package/dist/types/services/a2a/state/update/artifact.d.ts.map +1 -0
  273. package/dist/types/services/a2a/state/update/index.d.ts +3 -0
  274. package/dist/types/services/a2a/state/update/index.d.ts.map +1 -0
  275. package/dist/types/services/a2a/state/update/update.d.ts +24 -0
  276. package/dist/types/services/a2a/state/update/update.d.ts.map +1 -0
  277. package/dist/types/services/core/execution/execute.d.ts +7 -0
  278. package/dist/types/services/core/execution/execute.d.ts.map +1 -0
  279. package/dist/types/services/core/execution/index.d.ts +2 -0
  280. package/dist/types/services/core/execution/index.d.ts.map +1 -0
  281. package/dist/types/services/core/index.d.ts +3 -0
  282. package/dist/types/services/core/index.d.ts.map +1 -0
  283. package/dist/types/services/core/managers/command.d.ts +40 -0
  284. package/dist/types/services/core/managers/command.d.ts.map +1 -0
  285. package/dist/types/services/core/managers/event.d.ts +19 -0
  286. package/dist/types/services/core/managers/event.d.ts.map +1 -0
  287. package/dist/types/services/core/managers/index.d.ts +4 -0
  288. package/dist/types/services/core/managers/index.d.ts.map +1 -0
  289. package/dist/types/services/core/managers/stream.d.ts +21 -0
  290. package/dist/types/services/core/managers/stream.d.ts.map +1 -0
  291. package/dist/types/services/index.d.ts +2 -1
  292. package/dist/types/services/index.d.ts.map +1 -1
  293. package/dist/types/transport/index.d.ts +1 -1
  294. package/dist/types/transport/index.d.ts.map +1 -1
  295. package/dist/types/transport/rpc/parser.d.ts +5 -1
  296. package/dist/types/transport/rpc/parser.d.ts.map +1 -1
  297. package/dist/types/transport/rpc/rpc-client.d.ts +5 -1
  298. package/dist/types/transport/rpc/rpc-client.d.ts.map +1 -1
  299. package/dist/types/transport/streaming/event-stream.d.ts +5 -1
  300. package/dist/types/transport/streaming/event-stream.d.ts.map +1 -1
  301. package/dist/types/transport/trpc/a2a/factory/index.d.ts +2 -0
  302. package/dist/types/transport/trpc/a2a/factory/index.d.ts.map +1 -0
  303. package/dist/types/transport/trpc/a2a/factory/router.d.ts +2631 -0
  304. package/dist/types/transport/trpc/a2a/factory/router.d.ts.map +1 -0
  305. package/dist/types/transport/trpc/a2a/index.d.ts +4 -0
  306. package/dist/types/transport/trpc/a2a/index.d.ts.map +1 -0
  307. package/dist/types/transport/trpc/a2a/routes/index.d.ts +4 -0
  308. package/dist/types/transport/trpc/a2a/routes/index.d.ts.map +1 -0
  309. package/dist/types/transport/trpc/a2a/routes/info.d.ts +102 -0
  310. package/dist/types/transport/trpc/a2a/routes/info.d.ts.map +1 -0
  311. package/dist/types/transport/trpc/a2a/routes/message/index.d.ts +2 -0
  312. package/dist/types/transport/trpc/a2a/routes/message/index.d.ts.map +1 -0
  313. package/dist/types/transport/trpc/a2a/routes/message/route.d.ts +523 -0
  314. package/dist/types/transport/trpc/a2a/routes/message/route.d.ts.map +1 -0
  315. package/dist/types/transport/trpc/a2a/routes/tasks/index.d.ts +2 -0
  316. package/dist/types/transport/trpc/a2a/routes/tasks/index.d.ts.map +1 -0
  317. package/dist/types/transport/trpc/a2a/routes/tasks/route.d.ts +646 -0
  318. package/dist/types/transport/trpc/a2a/routes/tasks/route.d.ts.map +1 -0
  319. package/dist/types/transport/trpc/a2a/trpc.d.ts +272 -0
  320. package/dist/types/transport/trpc/a2a/trpc.d.ts.map +1 -0
  321. package/dist/types/transport/trpc/index.d.ts +2 -0
  322. package/dist/types/transport/trpc/index.d.ts.map +1 -0
  323. package/dist/types/types/ext.d.ts +14 -0
  324. package/dist/types/types/ext.d.ts.map +1 -0
  325. package/dist/types/types/index.d.ts +3 -4
  326. package/dist/types/types/index.d.ts.map +1 -1
  327. package/dist/types/types/{client.d.ts → interfaces/client.d.ts} +7 -2
  328. package/dist/types/types/interfaces/client.d.ts.map +1 -0
  329. package/dist/types/types/interfaces/index.d.ts +4 -0
  330. package/dist/types/types/interfaces/index.d.ts.map +1 -0
  331. package/dist/types/types/interfaces/services/a2a/builder.d.ts +33 -0
  332. package/dist/types/types/interfaces/services/a2a/builder.d.ts.map +1 -0
  333. package/dist/types/types/interfaces/services/a2a/context.d.ts +163 -0
  334. package/dist/types/types/interfaces/services/a2a/context.d.ts.map +1 -0
  335. package/dist/types/types/interfaces/services/a2a/engine.d.ts +8 -0
  336. package/dist/types/types/interfaces/services/a2a/engine.d.ts.map +1 -0
  337. package/dist/types/types/interfaces/services/a2a/index.d.ts +6 -0
  338. package/dist/types/types/interfaces/services/a2a/index.d.ts.map +1 -0
  339. package/dist/types/types/interfaces/services/a2a/legacy.d.ts +90 -0
  340. package/dist/types/types/interfaces/services/a2a/legacy.d.ts.map +1 -0
  341. package/dist/types/types/interfaces/services/a2a/service.d.ts +409 -0
  342. package/dist/types/types/interfaces/services/a2a/service.d.ts.map +1 -0
  343. package/dist/types/types/interfaces/services/core/context/command.d.ts +26 -0
  344. package/dist/types/types/interfaces/services/core/context/command.d.ts.map +1 -0
  345. package/dist/types/types/interfaces/services/core/context/context.d.ts +208 -0
  346. package/dist/types/types/interfaces/services/core/context/context.d.ts.map +1 -0
  347. package/dist/types/types/interfaces/services/core/context/index.d.ts +4 -0
  348. package/dist/types/types/interfaces/services/core/context/index.d.ts.map +1 -0
  349. package/dist/types/types/interfaces/services/core/context/types.d.ts +12 -0
  350. package/dist/types/types/interfaces/services/core/context/types.d.ts.map +1 -0
  351. package/dist/types/types/interfaces/services/core/execution/engine.d.ts +107 -0
  352. package/dist/types/types/interfaces/services/core/execution/engine.d.ts.map +1 -0
  353. package/dist/types/types/interfaces/services/core/execution/environment.d.ts +12 -0
  354. package/dist/types/types/interfaces/services/core/execution/environment.d.ts.map +1 -0
  355. package/dist/types/types/interfaces/services/core/execution/execute.d.ts +8 -0
  356. package/dist/types/types/interfaces/services/core/execution/execute.d.ts.map +1 -0
  357. package/dist/types/types/interfaces/services/core/execution/index.d.ts +4 -0
  358. package/dist/types/types/interfaces/services/core/execution/index.d.ts.map +1 -0
  359. package/dist/types/types/interfaces/services/core/index.d.ts +5 -0
  360. package/dist/types/types/interfaces/services/core/index.d.ts.map +1 -0
  361. package/dist/types/types/interfaces/services/core/managers/cancellation.d.ts +10 -0
  362. package/dist/types/types/interfaces/services/core/managers/cancellation.d.ts.map +1 -0
  363. package/dist/types/types/interfaces/services/core/managers/connection.d.ts +10 -0
  364. package/dist/types/types/interfaces/services/core/managers/connection.d.ts.map +1 -0
  365. package/dist/types/types/interfaces/services/core/managers/context.d.ts +18 -0
  366. package/dist/types/types/interfaces/services/core/managers/context.d.ts.map +1 -0
  367. package/dist/types/types/interfaces/services/core/managers/event.d.ts +329 -0
  368. package/dist/types/types/interfaces/services/core/managers/event.d.ts.map +1 -0
  369. package/dist/types/types/interfaces/services/core/managers/index.d.ts +7 -0
  370. package/dist/types/types/interfaces/services/core/managers/index.d.ts.map +1 -0
  371. package/dist/types/types/interfaces/services/core/managers/stream.d.ts +218 -0
  372. package/dist/types/types/interfaces/services/core/managers/stream.d.ts.map +1 -0
  373. package/dist/types/types/interfaces/services/core/managers/task.d.ts +10 -0
  374. package/dist/types/types/interfaces/services/core/managers/task.d.ts.map +1 -0
  375. package/dist/types/types/interfaces/services/core/service.d.ts +116 -0
  376. package/dist/types/types/interfaces/services/core/service.d.ts.map +1 -0
  377. package/dist/types/types/interfaces/services/index.d.ts +4 -0
  378. package/dist/types/types/interfaces/services/index.d.ts.map +1 -0
  379. package/dist/types/types/{services → interfaces/services}/protocol.d.ts +4 -0
  380. package/dist/types/types/interfaces/services/protocol.d.ts.map +1 -0
  381. package/dist/types/types/interfaces/storage.d.ts +9 -0
  382. package/dist/types/types/interfaces/storage.d.ts.map +1 -0
  383. package/dist/types/types/schemas/a2a/agent.d.ts +509 -0
  384. package/dist/types/types/schemas/a2a/agent.d.ts.map +1 -0
  385. package/dist/types/types/schemas/a2a/auth.d.ts +285 -0
  386. package/dist/types/types/schemas/a2a/auth.d.ts.map +1 -0
  387. package/dist/types/types/schemas/a2a/error.d.ts +133 -27
  388. package/dist/types/types/schemas/a2a/error.d.ts.map +1 -1
  389. package/dist/types/types/schemas/a2a/index.d.ts +8 -216
  390. package/dist/types/types/schemas/a2a/index.d.ts.map +1 -1
  391. package/dist/types/types/schemas/a2a/kind.d.ts +28 -0
  392. package/dist/types/types/schemas/a2a/kind.d.ts.map +1 -0
  393. package/dist/types/types/schemas/a2a/message.d.ts +2549 -69
  394. package/dist/types/types/schemas/a2a/message.d.ts.map +1 -1
  395. package/dist/types/types/schemas/a2a/notification.d.ts +321 -70
  396. package/dist/types/types/schemas/a2a/notification.d.ts.map +1 -1
  397. package/dist/types/types/schemas/a2a/parameters.d.ts +287 -167
  398. package/dist/types/types/schemas/a2a/parameters.d.ts.map +1 -1
  399. package/dist/types/types/schemas/a2a/protocol.d.ts +3207 -0
  400. package/dist/types/types/schemas/a2a/protocol.d.ts.map +1 -0
  401. package/dist/types/types/schemas/a2a/rpc.d.ts +42 -89
  402. package/dist/types/types/schemas/a2a/rpc.d.ts.map +1 -1
  403. package/dist/types/types/schemas/a2a/task.d.ts +1460 -214
  404. package/dist/types/types/schemas/a2a/task.d.ts.map +1 -1
  405. package/dist/types/types/schemas/a2a/transport.d.ts +28 -0
  406. package/dist/types/types/schemas/a2a/transport.d.ts.map +1 -0
  407. package/dist/types/types/schemas/deployment/index.d.ts +3 -0
  408. package/dist/types/types/schemas/deployment/index.d.ts.map +1 -0
  409. package/dist/types/types/{proxy.d.ts → schemas/deployment/proxy.d.ts} +6 -2
  410. package/dist/types/types/schemas/deployment/proxy.d.ts.map +1 -0
  411. package/dist/types/types/schemas/deployment/request.d.ts +508 -0
  412. package/dist/types/types/schemas/deployment/request.d.ts.map +1 -0
  413. package/dist/types/types/utils/index.d.ts +2 -0
  414. package/dist/types/types/utils/index.d.ts.map +1 -0
  415. package/dist/types/types/{transform.d.ts → utils/transform.d.ts} +4 -0
  416. package/dist/types/types/utils/transform.d.ts.map +1 -0
  417. package/dist/types/utils/api/register.d.ts +4 -0
  418. package/dist/types/utils/api/register.d.ts.map +1 -1
  419. package/dist/types/utils/common/constants.d.ts +8 -4
  420. package/dist/types/utils/common/constants.d.ts.map +1 -1
  421. package/dist/types/utils/common/errors.d.ts +6 -12
  422. package/dist/types/utils/common/errors.d.ts.map +1 -1
  423. package/dist/types/utils/common/utils.d.ts +4 -14
  424. package/dist/types/utils/common/utils.d.ts.map +1 -1
  425. package/dist/types/utils/common/zAsyncIterable.d.ts +23 -0
  426. package/dist/types/utils/common/zAsyncIterable.d.ts.map +1 -0
  427. package/dist/types/utils/deployment/agents.d.ts +5 -1
  428. package/dist/types/utils/deployment/agents.d.ts.map +1 -1
  429. package/dist/types/utils/deployment/bundler.d.ts +4 -0
  430. package/dist/types/utils/deployment/bundler.d.ts.map +1 -1
  431. package/dist/types/utils/deployment/full-deployment.d.ts +12 -2
  432. package/dist/types/utils/deployment/full-deployment.d.ts.map +1 -1
  433. package/dist/types/utils/deployment/index.d.ts +5 -0
  434. package/dist/types/utils/deployment/index.d.ts.map +1 -0
  435. package/dist/types/utils/deployment/task-wrapper.d.ts +6 -2
  436. package/dist/types/utils/deployment/task-wrapper.d.ts.map +1 -1
  437. package/dist/types/utils/deployment/test-deployment.d.ts +7 -2
  438. package/dist/types/utils/deployment/test-deployment.d.ts.map +1 -1
  439. package/dist/types/utils/index.d.ts +4 -6
  440. package/dist/types/utils/index.d.ts.map +1 -1
  441. package/dist/types/utils/index.js +2 -0
  442. package/dist/types/utils/index.js.map +1 -0
  443. package/dist/types/utils/logging/index.d.ts +3 -0
  444. package/dist/types/utils/logging/index.d.ts.map +1 -0
  445. package/dist/types/utils/logging/log.d.ts +4 -0
  446. package/dist/types/utils/logging/log.d.ts.map +1 -1
  447. package/dist/types/utils/logging/logger.d.ts +4 -0
  448. package/dist/types/utils/logging/logger.d.ts.map +1 -1
  449. package/dist/types/{server/lib → utils}/storage/file.d.ts +9 -4
  450. package/dist/types/utils/storage/file.d.ts.map +1 -0
  451. package/dist/types/{server/lib → utils}/storage/memory.d.ts +9 -4
  452. package/dist/types/utils/storage/memory.d.ts.map +1 -0
  453. package/dist/types/{transform.js → utils/transform.js} +2 -1
  454. package/dist/types/utils/transform.js.map +1 -0
  455. package/dist/utils/api/register.js +4 -0
  456. package/dist/utils/api/register.js.map +1 -1
  457. package/dist/utils/common/constants.js +20 -11
  458. package/dist/utils/common/constants.js.map +1 -1
  459. package/dist/utils/common/errors.js +7 -40
  460. package/dist/utils/common/errors.js.map +1 -1
  461. package/dist/utils/common/utils.js +4 -46
  462. package/dist/utils/common/utils.js.map +1 -1
  463. package/dist/utils/common/zAsyncIterable.js +40 -0
  464. package/dist/utils/common/zAsyncIterable.js.map +1 -0
  465. package/dist/utils/deployment/agents.js +4 -0
  466. package/dist/utils/deployment/agents.js.map +1 -1
  467. package/dist/utils/deployment/bundler.js +4 -0
  468. package/dist/utils/deployment/bundler.js.map +1 -1
  469. package/dist/utils/deployment/full-deployment.js +6 -2
  470. package/dist/utils/deployment/full-deployment.js.map +1 -1
  471. package/dist/utils/deployment/index.js +5 -0
  472. package/dist/utils/deployment/index.js.map +1 -0
  473. package/dist/utils/deployment/task-wrapper.js +4 -0
  474. package/dist/utils/deployment/task-wrapper.js.map +1 -1
  475. package/dist/utils/deployment/test-deployment.js +15 -7
  476. package/dist/utils/deployment/test-deployment.js.map +1 -1
  477. package/dist/utils/index.js +10 -6
  478. package/dist/utils/index.js.map +1 -1
  479. package/dist/utils/logging/index.js +3 -0
  480. package/dist/utils/logging/index.js.map +1 -0
  481. package/dist/utils/logging/log.js +4 -0
  482. package/dist/utils/logging/log.js.map +1 -1
  483. package/dist/utils/logging/logger.js +13 -0
  484. package/dist/utils/logging/logger.js.map +1 -1
  485. package/dist/{server/lib → utils}/storage/file.js +17 -6
  486. package/dist/utils/storage/file.js.map +1 -0
  487. package/dist/{server/lib → utils}/storage/memory.js +15 -5
  488. package/dist/utils/storage/memory.js.map +1 -0
  489. package/package.json +16 -5
  490. package/dist/server/a2a-server.js +0 -237
  491. package/dist/server/a2a-server.js.map +0 -1
  492. package/dist/server/interfaces/params.js +0 -3
  493. package/dist/server/interfaces/params.js.map +0 -1
  494. package/dist/server/interfaces/server.js +0 -2
  495. package/dist/server/interfaces/server.js.map +0 -1
  496. package/dist/server/interfaces/store.js +0 -18
  497. package/dist/server/interfaces/store.js.map +0 -1
  498. package/dist/server/lib/express-server.js +0 -252
  499. package/dist/server/lib/express-server.js.map +0 -1
  500. package/dist/server/lib/json-middleware.js +0 -3
  501. package/dist/server/lib/json-middleware.js.map +0 -1
  502. package/dist/server/lib/middleware/a2a-methods.js +0 -140
  503. package/dist/server/lib/middleware/a2a-methods.js.map +0 -1
  504. package/dist/server/lib/middleware/factory.js +0 -59
  505. package/dist/server/lib/middleware/factory.js.map +0 -1
  506. package/dist/server/lib/state.js +0 -80
  507. package/dist/server/lib/state.js.map +0 -1
  508. package/dist/server/lib/storage/file.js.map +0 -1
  509. package/dist/server/lib/storage/memory.js.map +0 -1
  510. package/dist/server/lib/update/base.js.map +0 -1
  511. package/dist/services/a2a/repository.js +0 -160
  512. package/dist/services/a2a/repository.js.map +0 -1
  513. package/dist/services/manager.js +0 -61
  514. package/dist/services/manager.js.map +0 -1
  515. package/dist/services/mcp/index.js +0 -2
  516. package/dist/services/mcp/index.js.map +0 -1
  517. package/dist/services/mcp/service.js +0 -75
  518. package/dist/services/mcp/service.js.map +0 -1
  519. package/dist/transport/streaming/stream.js +0 -111
  520. package/dist/transport/streaming/stream.js.map +0 -1
  521. package/dist/types/client.js +0 -2
  522. package/dist/types/client.js.map +0 -1
  523. package/dist/types/express.js +0 -2
  524. package/dist/types/express.js.map +0 -1
  525. package/dist/types/extended-schema.js +0 -7
  526. package/dist/types/extended-schema.js.map +0 -1
  527. package/dist/types/proxy.js +0 -2
  528. package/dist/types/proxy.js.map +0 -1
  529. package/dist/types/schemas/a2a/auth/auth.js +0 -2
  530. package/dist/types/schemas/a2a/auth/auth.js.map +0 -1
  531. package/dist/types/schemas/a2a/auth/base.js +0 -2
  532. package/dist/types/schemas/a2a/auth/base.js.map +0 -1
  533. package/dist/types/schemas/a2a/auth/index.js +0 -4
  534. package/dist/types/schemas/a2a/auth/index.js.map +0 -1
  535. package/dist/types/schemas/a2a/auth/oauth.js +0 -2
  536. package/dist/types/schemas/a2a/auth/oauth.js.map +0 -1
  537. package/dist/types/schemas/a2a/ref.js +0 -25
  538. package/dist/types/schemas/a2a/ref.js.map +0 -1
  539. package/dist/types/server/a2a-server.d.ts +0 -145
  540. package/dist/types/server/a2a-server.d.ts.map +0 -1
  541. package/dist/types/server/interfaces/params.d.ts +0 -109
  542. package/dist/types/server/interfaces/params.d.ts.map +0 -1
  543. package/dist/types/server/interfaces/server.d.ts +0 -35
  544. package/dist/types/server/interfaces/server.d.ts.map +0 -1
  545. package/dist/types/server/interfaces/store.d.ts +0 -35
  546. package/dist/types/server/interfaces/store.d.ts.map +0 -1
  547. package/dist/types/server/lib/express-server.d.ts +0 -59
  548. package/dist/types/server/lib/express-server.d.ts.map +0 -1
  549. package/dist/types/server/lib/json-middleware.d.ts +0 -3
  550. package/dist/types/server/lib/json-middleware.d.ts.map +0 -1
  551. package/dist/types/server/lib/middleware/a2a-methods.d.ts +0 -7
  552. package/dist/types/server/lib/middleware/a2a-methods.d.ts.map +0 -1
  553. package/dist/types/server/lib/middleware/factory.d.ts +0 -12
  554. package/dist/types/server/lib/middleware/factory.d.ts.map +0 -1
  555. package/dist/types/server/lib/state.d.ts +0 -20
  556. package/dist/types/server/lib/state.d.ts.map +0 -1
  557. package/dist/types/server/lib/storage/file.d.ts.map +0 -1
  558. package/dist/types/server/lib/storage/memory.d.ts.map +0 -1
  559. package/dist/types/server/lib/update/base.d.ts +0 -21
  560. package/dist/types/server/lib/update/base.d.ts.map +0 -1
  561. package/dist/types/services/a2a/repository.d.ts +0 -77
  562. package/dist/types/services/a2a/repository.d.ts.map +0 -1
  563. package/dist/types/services/a2a/repository.js +0 -2
  564. package/dist/types/services/a2a/repository.js.map +0 -1
  565. package/dist/types/services/a2a/service.js +0 -2
  566. package/dist/types/services/a2a/service.js.map +0 -1
  567. package/dist/types/services/context.js +0 -29
  568. package/dist/types/services/context.js.map +0 -1
  569. package/dist/types/services/dispatcher.js +0 -33
  570. package/dist/types/services/dispatcher.js.map +0 -1
  571. package/dist/types/services/index.js +0 -9
  572. package/dist/types/services/index.js.map +0 -1
  573. package/dist/types/services/manager.d.ts +0 -44
  574. package/dist/types/services/manager.d.ts.map +0 -1
  575. package/dist/types/services/manager.js +0 -2
  576. package/dist/types/services/manager.js.map +0 -1
  577. package/dist/types/services/mcp/index.d.ts +0 -2
  578. package/dist/types/services/mcp/index.d.ts.map +0 -1
  579. package/dist/types/services/mcp/service.d.ts +0 -30
  580. package/dist/types/services/mcp/service.d.ts.map +0 -1
  581. package/dist/types/services/mcp/service.js +0 -8
  582. package/dist/types/services/mcp/service.js.map +0 -1
  583. package/dist/types/services/protocol.js.map +0 -1
  584. package/dist/types/services/service.js +0 -2
  585. package/dist/types/services/service.js.map +0 -1
  586. package/dist/types/transform.js.map +0 -1
  587. package/dist/types/transport/streaming/stream.d.ts +0 -42
  588. package/dist/types/transport/streaming/stream.d.ts.map +0 -1
  589. package/dist/types/types/client.d.ts.map +0 -1
  590. package/dist/types/types/express.d.ts +0 -66
  591. package/dist/types/types/express.d.ts.map +0 -1
  592. package/dist/types/types/extended-schema.d.ts +0 -174
  593. package/dist/types/types/extended-schema.d.ts.map +0 -1
  594. package/dist/types/types/proxy.d.ts.map +0 -1
  595. package/dist/types/types/schemas/a2a/auth/auth.d.ts +0 -80
  596. package/dist/types/types/schemas/a2a/auth/auth.d.ts.map +0 -1
  597. package/dist/types/types/schemas/a2a/auth/base.d.ts +0 -16
  598. package/dist/types/types/schemas/a2a/auth/base.d.ts.map +0 -1
  599. package/dist/types/types/schemas/a2a/auth/index.d.ts +0 -4
  600. package/dist/types/types/schemas/a2a/auth/index.d.ts.map +0 -1
  601. package/dist/types/types/schemas/a2a/auth/oauth.d.ts +0 -124
  602. package/dist/types/types/schemas/a2a/auth/oauth.d.ts.map +0 -1
  603. package/dist/types/types/schemas/a2a/ref.d.ts +0 -2057
  604. package/dist/types/types/schemas/a2a/ref.d.ts.map +0 -1
  605. package/dist/types/types/services/a2a/repository.d.ts +0 -85
  606. package/dist/types/types/services/a2a/repository.d.ts.map +0 -1
  607. package/dist/types/types/services/a2a/service.d.ts +0 -29
  608. package/dist/types/types/services/a2a/service.d.ts.map +0 -1
  609. package/dist/types/types/services/context.d.ts +0 -167
  610. package/dist/types/types/services/context.d.ts.map +0 -1
  611. package/dist/types/types/services/dispatcher.d.ts +0 -20
  612. package/dist/types/types/services/dispatcher.d.ts.map +0 -1
  613. package/dist/types/types/services/index.d.ts +0 -9
  614. package/dist/types/types/services/index.d.ts.map +0 -1
  615. package/dist/types/types/services/manager.d.ts +0 -42
  616. package/dist/types/types/services/manager.d.ts.map +0 -1
  617. package/dist/types/types/services/mcp/service.d.ts +0 -57
  618. package/dist/types/types/services/mcp/service.d.ts.map +0 -1
  619. package/dist/types/types/services/protocol.d.ts.map +0 -1
  620. package/dist/types/types/services/service.d.ts +0 -35
  621. package/dist/types/types/services/service.d.ts.map +0 -1
  622. package/dist/types/types/transform.d.ts.map +0 -1
@@ -1,2057 +0,0 @@
1
- /**
2
- * This file was automatically generated by json-schema-to-typescript.
3
- * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
4
- * and run json-schema-to-typescript to regenerate this file.
5
- */
6
- /**
7
- * This interface was referenced by `MySchema`'s JSON-Schema
8
- * via the `definition` "A2AError".
9
- */
10
- export type A2AError = JSONParseError | InvalidRequestError | MethodNotFoundError | InvalidParamsError | InternalError | TaskNotFoundError | TaskNotCancelableError | PushNotificationNotSupportedError | UnsupportedOperationError | ContentTypeNotSupportedError | InvalidAgentResponseError;
11
- /**
12
- * A2A supported request types
13
- *
14
- * This interface was referenced by `MySchema`'s JSON-Schema
15
- * via the `definition` "A2ARequest".
16
- */
17
- export type A2ARequest = SendMessageRequest | SendStreamingMessageRequest | GetTaskRequest | CancelTaskRequest | SetTaskPushNotificationConfigRequest | GetTaskPushNotificationConfigRequest | TaskResubscriptionRequest;
18
- /**
19
- * Represents a part of a message, which can be text, a file, or structured data.
20
- *
21
- * This interface was referenced by `MySchema`'s JSON-Schema
22
- * via the `definition` "Part".
23
- */
24
- export type Part = TextPart | FilePart | DataPart;
25
- /**
26
- * Mirrors the OpenAPI Security Scheme Object
27
- * (https://swagger.io/specification/#security-scheme-object)
28
- *
29
- * This interface was referenced by `MySchema`'s JSON-Schema
30
- * via the `definition` "SecurityScheme".
31
- */
32
- export type SecurityScheme = APIKeySecurityScheme | HTTPAuthSecurityScheme | OAuth2SecurityScheme | OpenIdConnectSecurityScheme;
33
- /**
34
- * JSON-RPC response for the 'tasks/cancel' method.
35
- *
36
- * This interface was referenced by `MySchema`'s JSON-Schema
37
- * via the `definition` "CancelTaskResponse".
38
- */
39
- export type CancelTaskResponse = JSONRPCErrorResponse | CancelTaskSuccessResponse;
40
- /**
41
- * JSON-RPC response for the 'tasks/pushNotificationConfig/set' method.
42
- *
43
- * This interface was referenced by `MySchema`'s JSON-Schema
44
- * via the `definition` "GetTaskPushNotificationConfigResponse".
45
- */
46
- export type GetTaskPushNotificationConfigResponse = JSONRPCErrorResponse | GetTaskPushNotificationConfigSuccessResponse;
47
- /**
48
- * JSON-RPC response for the 'tasks/get' method.
49
- *
50
- * This interface was referenced by `MySchema`'s JSON-Schema
51
- * via the `definition` "GetTaskResponse".
52
- */
53
- export type GetTaskResponse = JSONRPCErrorResponse | GetTaskSuccessResponse;
54
- /**
55
- * Represents a JSON-RPC 2.0 Response object.
56
- *
57
- * This interface was referenced by `MySchema`'s JSON-Schema
58
- * via the `definition` "JSONRPCResponse".
59
- */
60
- export type JSONRPCResponse = JSONRPCErrorResponse | SendMessageSuccessResponse | SendStreamingMessageSuccessResponse | GetTaskSuccessResponse | CancelTaskSuccessResponse | SetTaskPushNotificationConfigSuccessResponse | GetTaskPushNotificationConfigSuccessResponse;
61
- /**
62
- * JSON-RPC response model for the 'message/send' method.
63
- *
64
- * This interface was referenced by `MySchema`'s JSON-Schema
65
- * via the `definition` "SendMessageResponse".
66
- */
67
- export type SendMessageResponse = JSONRPCErrorResponse | SendMessageSuccessResponse;
68
- /**
69
- * JSON-RPC response model for the 'message/stream' method.
70
- *
71
- * This interface was referenced by `MySchema`'s JSON-Schema
72
- * via the `definition` "SendStreamingMessageResponse".
73
- */
74
- export type SendStreamingMessageResponse = JSONRPCErrorResponse | SendStreamingMessageSuccessResponse;
75
- /**
76
- * JSON-RPC response for the 'tasks/pushNotificationConfig/set' method.
77
- *
78
- * This interface was referenced by `MySchema`'s JSON-Schema
79
- * via the `definition` "SetTaskPushNotificationConfigResponse".
80
- */
81
- export type SetTaskPushNotificationConfigResponse = JSONRPCErrorResponse | SetTaskPushNotificationConfigSuccessResponse;
82
- export interface MySchema {
83
- [k: string]: unknown;
84
- }
85
- /**
86
- * JSON-RPC error indicating invalid JSON was received by the server.
87
- *
88
- * This interface was referenced by `MySchema`'s JSON-Schema
89
- * via the `definition` "JSONParseError".
90
- */
91
- export interface JSONParseError {
92
- /**
93
- * A Number that indicates the error type that occurred.
94
- */
95
- code: -32700;
96
- /**
97
- * A Primitive or Structured value that contains additional information about the error.
98
- * This may be omitted.
99
- */
100
- data?: {
101
- [k: string]: unknown;
102
- };
103
- /**
104
- * A String providing a short description of the error.
105
- */
106
- message: string;
107
- }
108
- /**
109
- * JSON-RPC error indicating the JSON sent is not a valid Request object.
110
- *
111
- * This interface was referenced by `MySchema`'s JSON-Schema
112
- * via the `definition` "InvalidRequestError".
113
- */
114
- export interface InvalidRequestError {
115
- /**
116
- * A Number that indicates the error type that occurred.
117
- */
118
- code: -32600;
119
- /**
120
- * A Primitive or Structured value that contains additional information about the error.
121
- * This may be omitted.
122
- */
123
- data?: {
124
- [k: string]: unknown;
125
- };
126
- /**
127
- * A String providing a short description of the error.
128
- */
129
- message: string;
130
- }
131
- /**
132
- * JSON-RPC error indicating the method does not exist or is not available.
133
- *
134
- * This interface was referenced by `MySchema`'s JSON-Schema
135
- * via the `definition` "MethodNotFoundError".
136
- */
137
- export interface MethodNotFoundError {
138
- /**
139
- * A Number that indicates the error type that occurred.
140
- */
141
- code: -32601;
142
- /**
143
- * A Primitive or Structured value that contains additional information about the error.
144
- * This may be omitted.
145
- */
146
- data?: {
147
- [k: string]: unknown;
148
- };
149
- /**
150
- * A String providing a short description of the error.
151
- */
152
- message: string;
153
- }
154
- /**
155
- * JSON-RPC error indicating invalid method parameter(s).
156
- *
157
- * This interface was referenced by `MySchema`'s JSON-Schema
158
- * via the `definition` "InvalidParamsError".
159
- */
160
- export interface InvalidParamsError {
161
- /**
162
- * A Number that indicates the error type that occurred.
163
- */
164
- code: -32602;
165
- /**
166
- * A Primitive or Structured value that contains additional information about the error.
167
- * This may be omitted.
168
- */
169
- data?: {
170
- [k: string]: unknown;
171
- };
172
- /**
173
- * A String providing a short description of the error.
174
- */
175
- message: string;
176
- }
177
- /**
178
- * JSON-RPC error indicating an internal JSON-RPC error on the server.
179
- *
180
- * This interface was referenced by `MySchema`'s JSON-Schema
181
- * via the `definition` "InternalError".
182
- */
183
- export interface InternalError {
184
- /**
185
- * A Number that indicates the error type that occurred.
186
- */
187
- code: -32603;
188
- /**
189
- * A Primitive or Structured value that contains additional information about the error.
190
- * This may be omitted.
191
- */
192
- data?: {
193
- [k: string]: unknown;
194
- };
195
- /**
196
- * A String providing a short description of the error.
197
- */
198
- message: string;
199
- }
200
- /**
201
- * A2A specific error indicating the requested task ID was not found.
202
- *
203
- * This interface was referenced by `MySchema`'s JSON-Schema
204
- * via the `definition` "TaskNotFoundError".
205
- */
206
- export interface TaskNotFoundError {
207
- /**
208
- * A Number that indicates the error type that occurred.
209
- */
210
- code: -32001;
211
- /**
212
- * A Primitive or Structured value that contains additional information about the error.
213
- * This may be omitted.
214
- */
215
- data?: {
216
- [k: string]: unknown;
217
- };
218
- /**
219
- * A String providing a short description of the error.
220
- */
221
- message: string;
222
- }
223
- /**
224
- * A2A specific error indicating the task is in a state where it cannot be canceled.
225
- *
226
- * This interface was referenced by `MySchema`'s JSON-Schema
227
- * via the `definition` "TaskNotCancelableError".
228
- */
229
- export interface TaskNotCancelableError {
230
- /**
231
- * A Number that indicates the error type that occurred.
232
- */
233
- code: -32002;
234
- /**
235
- * A Primitive or Structured value that contains additional information about the error.
236
- * This may be omitted.
237
- */
238
- data?: {
239
- [k: string]: unknown;
240
- };
241
- /**
242
- * A String providing a short description of the error.
243
- */
244
- message: string;
245
- }
246
- /**
247
- * A2A specific error indicating the agent does not support push notifications.
248
- *
249
- * This interface was referenced by `MySchema`'s JSON-Schema
250
- * via the `definition` "PushNotificationNotSupportedError".
251
- */
252
- export interface PushNotificationNotSupportedError {
253
- /**
254
- * A Number that indicates the error type that occurred.
255
- */
256
- code: -32003;
257
- /**
258
- * A Primitive or Structured value that contains additional information about the error.
259
- * This may be omitted.
260
- */
261
- data?: {
262
- [k: string]: unknown;
263
- };
264
- /**
265
- * A String providing a short description of the error.
266
- */
267
- message: string;
268
- }
269
- /**
270
- * A2A specific error indicating the requested operation is not supported by the agent.
271
- *
272
- * This interface was referenced by `MySchema`'s JSON-Schema
273
- * via the `definition` "UnsupportedOperationError".
274
- */
275
- export interface UnsupportedOperationError {
276
- /**
277
- * A Number that indicates the error type that occurred.
278
- */
279
- code: -32004;
280
- /**
281
- * A Primitive or Structured value that contains additional information about the error.
282
- * This may be omitted.
283
- */
284
- data?: {
285
- [k: string]: unknown;
286
- };
287
- /**
288
- * A String providing a short description of the error.
289
- */
290
- message: string;
291
- }
292
- /**
293
- * A2A specific error indicating incompatible content types between request and agent capabilities.
294
- *
295
- * This interface was referenced by `MySchema`'s JSON-Schema
296
- * via the `definition` "ContentTypeNotSupportedError".
297
- */
298
- export interface ContentTypeNotSupportedError {
299
- /**
300
- * A Number that indicates the error type that occurred.
301
- */
302
- code: -32005;
303
- /**
304
- * A Primitive or Structured value that contains additional information about the error.
305
- * This may be omitted.
306
- */
307
- data?: {
308
- [k: string]: unknown;
309
- };
310
- /**
311
- * A String providing a short description of the error.
312
- */
313
- message: string;
314
- }
315
- /**
316
- * A2A specific error indicating agent returned invalid response for the current method
317
- *
318
- * This interface was referenced by `MySchema`'s JSON-Schema
319
- * via the `definition` "InvalidAgentResponseError".
320
- */
321
- export interface InvalidAgentResponseError {
322
- /**
323
- * A Number that indicates the error type that occurred.
324
- */
325
- code: -32006;
326
- /**
327
- * A Primitive or Structured value that contains additional information about the error.
328
- * This may be omitted.
329
- */
330
- data?: {
331
- [k: string]: unknown;
332
- };
333
- /**
334
- * A String providing a short description of the error.
335
- */
336
- message: string;
337
- }
338
- /**
339
- * JSON-RPC request model for the 'message/send' method.
340
- *
341
- * This interface was referenced by `MySchema`'s JSON-Schema
342
- * via the `definition` "SendMessageRequest".
343
- */
344
- export interface SendMessageRequest {
345
- /**
346
- * An identifier established by the Client that MUST contain a String, Number.
347
- * Numbers SHOULD NOT contain fractional parts.
348
- */
349
- id: string | number;
350
- /**
351
- * Specifies the version of the JSON-RPC protocol. MUST be exactly "2.0".
352
- */
353
- jsonrpc: "2.0";
354
- /**
355
- * A String containing the name of the method to be invoked.
356
- */
357
- method: "message/send";
358
- params: MessageSendParams;
359
- }
360
- /**
361
- * A Structured value that holds the parameter values to be used during the invocation of the method.
362
- */
363
- export interface MessageSendParams {
364
- configuration?: MessageSendConfiguration;
365
- message: Message;
366
- /**
367
- * Extension metadata.
368
- */
369
- metadata?: {
370
- [k: string]: unknown;
371
- };
372
- }
373
- /**
374
- * Send message configuration.
375
- */
376
- export interface MessageSendConfiguration {
377
- /**
378
- * Accepted output modalities by the client.
379
- */
380
- acceptedOutputModes: string[];
381
- /**
382
- * If the server should treat the client as a blocking request.
383
- */
384
- blocking?: boolean;
385
- /**
386
- * Number of recent messages to be retrieved.
387
- */
388
- historyLength?: number;
389
- pushNotificationConfig?: PushNotificationConfig;
390
- }
391
- /**
392
- * Where the server should send notifications when disconnected.
393
- */
394
- export interface PushNotificationConfig {
395
- authentication?: PushNotificationAuthenticationInfo;
396
- /**
397
- * Push Notification ID - created by server to support multiple callbacks
398
- */
399
- id?: string;
400
- /**
401
- * Token unique to this task/session.
402
- */
403
- token?: string;
404
- /**
405
- * URL for sending the push notifications.
406
- */
407
- url: string;
408
- }
409
- /**
410
- * Defines authentication details for push notifications.
411
- *
412
- * This interface was referenced by `MySchema`'s JSON-Schema
413
- * via the `definition` "PushNotificationAuthenticationInfo".
414
- */
415
- export interface PushNotificationAuthenticationInfo {
416
- /**
417
- * Optional credentials
418
- */
419
- credentials?: string;
420
- /**
421
- * Supported authentication schemes - e.g. Basic, Bearer
422
- */
423
- schemes: string[];
424
- }
425
- /**
426
- * The message being sent to the server.
427
- */
428
- export interface Message {
429
- /**
430
- * The context the message is associated with
431
- */
432
- contextId?: string;
433
- /**
434
- * The URIs of extensions that are present or contributed to this Message.
435
- */
436
- extensions?: string[];
437
- /**
438
- * Event type
439
- */
440
- kind: "message";
441
- /**
442
- * Identifier created by the message creator
443
- */
444
- messageId: string;
445
- /**
446
- * Extension metadata.
447
- */
448
- metadata?: {
449
- [k: string]: unknown;
450
- };
451
- /**
452
- * Message content
453
- */
454
- parts: Part[];
455
- /**
456
- * List of tasks referenced as context by this message.
457
- */
458
- referenceTaskIds?: string[];
459
- /**
460
- * Message sender's role
461
- */
462
- role: "agent" | "user";
463
- /**
464
- * Identifier of task the message is related to
465
- */
466
- taskId?: string;
467
- }
468
- /**
469
- * Represents a text segment within parts.
470
- *
471
- * This interface was referenced by `MySchema`'s JSON-Schema
472
- * via the `definition` "TextPart".
473
- */
474
- export interface TextPart {
475
- /**
476
- * Part type - text for TextParts
477
- */
478
- kind: "text";
479
- /**
480
- * Optional metadata associated with the part.
481
- */
482
- metadata?: {
483
- [k: string]: unknown;
484
- };
485
- /**
486
- * Text content
487
- */
488
- text: string;
489
- }
490
- /**
491
- * Represents a File segment within parts.
492
- *
493
- * This interface was referenced by `MySchema`'s JSON-Schema
494
- * via the `definition` "FilePart".
495
- */
496
- export interface FilePart {
497
- /**
498
- * File content either as url or bytes
499
- */
500
- file: FileWithBytes | FileWithUri;
501
- /**
502
- * Part type - file for FileParts
503
- */
504
- kind: "file";
505
- /**
506
- * Optional metadata associated with the part.
507
- */
508
- metadata?: {
509
- [k: string]: unknown;
510
- };
511
- }
512
- /**
513
- * Define the variant where 'bytes' is present and 'uri' is absent
514
- *
515
- * This interface was referenced by `MySchema`'s JSON-Schema
516
- * via the `definition` "FileWithBytes".
517
- */
518
- export interface FileWithBytes {
519
- /**
520
- * base64 encoded content of the file
521
- */
522
- bytes: string;
523
- /**
524
- * Optional mimeType for the file
525
- */
526
- mimeType?: string;
527
- /**
528
- * Optional name for the file
529
- */
530
- name?: string;
531
- }
532
- /**
533
- * Define the variant where 'uri' is present and 'bytes' is absent
534
- *
535
- * This interface was referenced by `MySchema`'s JSON-Schema
536
- * via the `definition` "FileWithUri".
537
- */
538
- export interface FileWithUri {
539
- /**
540
- * Optional mimeType for the file
541
- */
542
- mimeType?: string;
543
- /**
544
- * Optional name for the file
545
- */
546
- name?: string;
547
- /**
548
- * URL for the File content
549
- */
550
- uri: string;
551
- }
552
- /**
553
- * Represents a structured data segment within a message part.
554
- *
555
- * This interface was referenced by `MySchema`'s JSON-Schema
556
- * via the `definition` "DataPart".
557
- */
558
- export interface DataPart {
559
- /**
560
- * Structured data content
561
- */
562
- data: {
563
- [k: string]: unknown;
564
- };
565
- /**
566
- * Part type - data for DataParts
567
- */
568
- kind: "data";
569
- /**
570
- * Optional metadata associated with the part.
571
- */
572
- metadata?: {
573
- [k: string]: unknown;
574
- };
575
- }
576
- /**
577
- * JSON-RPC request model for the 'message/stream' method.
578
- *
579
- * This interface was referenced by `MySchema`'s JSON-Schema
580
- * via the `definition` "SendStreamingMessageRequest".
581
- */
582
- export interface SendStreamingMessageRequest {
583
- /**
584
- * An identifier established by the Client that MUST contain a String, Number.
585
- * Numbers SHOULD NOT contain fractional parts.
586
- */
587
- id: string | number;
588
- /**
589
- * Specifies the version of the JSON-RPC protocol. MUST be exactly "2.0".
590
- */
591
- jsonrpc: "2.0";
592
- /**
593
- * A String containing the name of the method to be invoked.
594
- */
595
- method: "message/stream";
596
- params: MessageSendParams1;
597
- }
598
- /**
599
- * A Structured value that holds the parameter values to be used during the invocation of the method.
600
- */
601
- export interface MessageSendParams1 {
602
- configuration?: MessageSendConfiguration;
603
- message: Message;
604
- /**
605
- * Extension metadata.
606
- */
607
- metadata?: {
608
- [k: string]: unknown;
609
- };
610
- }
611
- /**
612
- * JSON-RPC request model for the 'tasks/get' method.
613
- *
614
- * This interface was referenced by `MySchema`'s JSON-Schema
615
- * via the `definition` "GetTaskRequest".
616
- */
617
- export interface GetTaskRequest {
618
- /**
619
- * An identifier established by the Client that MUST contain a String, Number.
620
- * Numbers SHOULD NOT contain fractional parts.
621
- */
622
- id: string | number;
623
- /**
624
- * Specifies the version of the JSON-RPC protocol. MUST be exactly "2.0".
625
- */
626
- jsonrpc: "2.0";
627
- /**
628
- * A String containing the name of the method to be invoked.
629
- */
630
- method: "tasks/get";
631
- params: TaskQueryParams;
632
- }
633
- /**
634
- * A Structured value that holds the parameter values to be used during the invocation of the method.
635
- */
636
- export interface TaskQueryParams {
637
- /**
638
- * Number of recent messages to be retrieved.
639
- */
640
- historyLength?: number;
641
- /**
642
- * Task id.
643
- */
644
- id: string;
645
- metadata?: {
646
- [k: string]: unknown;
647
- };
648
- }
649
- /**
650
- * JSON-RPC request model for the 'tasks/cancel' method.
651
- *
652
- * This interface was referenced by `MySchema`'s JSON-Schema
653
- * via the `definition` "CancelTaskRequest".
654
- */
655
- export interface CancelTaskRequest {
656
- /**
657
- * An identifier established by the Client that MUST contain a String, Number.
658
- * Numbers SHOULD NOT contain fractional parts.
659
- */
660
- id: string | number;
661
- /**
662
- * Specifies the version of the JSON-RPC protocol. MUST be exactly "2.0".
663
- */
664
- jsonrpc: "2.0";
665
- /**
666
- * A String containing the name of the method to be invoked.
667
- */
668
- method: "tasks/cancel";
669
- params: TaskIdParams;
670
- }
671
- /**
672
- * A Structured value that holds the parameter values to be used during the invocation of the method.
673
- */
674
- export interface TaskIdParams {
675
- /**
676
- * Task id.
677
- */
678
- id: string;
679
- metadata?: {
680
- [k: string]: unknown;
681
- };
682
- }
683
- /**
684
- * JSON-RPC request model for the 'tasks/pushNotificationConfig/set' method.
685
- *
686
- * This interface was referenced by `MySchema`'s JSON-Schema
687
- * via the `definition` "SetTaskPushNotificationConfigRequest".
688
- */
689
- export interface SetTaskPushNotificationConfigRequest {
690
- /**
691
- * An identifier established by the Client that MUST contain a String, Number.
692
- * Numbers SHOULD NOT contain fractional parts.
693
- */
694
- id: string | number;
695
- /**
696
- * Specifies the version of the JSON-RPC protocol. MUST be exactly "2.0".
697
- */
698
- jsonrpc: "2.0";
699
- /**
700
- * A String containing the name of the method to be invoked.
701
- */
702
- method: "tasks/pushNotificationConfig/set";
703
- params: TaskPushNotificationConfig;
704
- }
705
- /**
706
- * A Structured value that holds the parameter values to be used during the invocation of the method.
707
- */
708
- export interface TaskPushNotificationConfig {
709
- pushNotificationConfig: PushNotificationConfig1;
710
- /**
711
- * Task id.
712
- */
713
- taskId: string;
714
- }
715
- /**
716
- * Push notification configuration.
717
- */
718
- export interface PushNotificationConfig1 {
719
- authentication?: PushNotificationAuthenticationInfo;
720
- /**
721
- * Push Notification ID - created by server to support multiple callbacks
722
- */
723
- id?: string;
724
- /**
725
- * Token unique to this task/session.
726
- */
727
- token?: string;
728
- /**
729
- * URL for sending the push notifications.
730
- */
731
- url: string;
732
- }
733
- /**
734
- * JSON-RPC request model for the 'tasks/pushNotificationConfig/get' method.
735
- *
736
- * This interface was referenced by `MySchema`'s JSON-Schema
737
- * via the `definition` "GetTaskPushNotificationConfigRequest".
738
- */
739
- export interface GetTaskPushNotificationConfigRequest {
740
- /**
741
- * An identifier established by the Client that MUST contain a String, Number.
742
- * Numbers SHOULD NOT contain fractional parts.
743
- */
744
- id: string | number;
745
- /**
746
- * Specifies the version of the JSON-RPC protocol. MUST be exactly "2.0".
747
- */
748
- jsonrpc: "2.0";
749
- /**
750
- * A String containing the name of the method to be invoked.
751
- */
752
- method: "tasks/pushNotificationConfig/get";
753
- params: TaskIdParams1;
754
- }
755
- /**
756
- * A Structured value that holds the parameter values to be used during the invocation of the method.
757
- */
758
- export interface TaskIdParams1 {
759
- /**
760
- * Task id.
761
- */
762
- id: string;
763
- metadata?: {
764
- [k: string]: unknown;
765
- };
766
- }
767
- /**
768
- * JSON-RPC request model for the 'tasks/resubscribe' method.
769
- *
770
- * This interface was referenced by `MySchema`'s JSON-Schema
771
- * via the `definition` "TaskResubscriptionRequest".
772
- */
773
- export interface TaskResubscriptionRequest {
774
- /**
775
- * An identifier established by the Client that MUST contain a String, Number.
776
- * Numbers SHOULD NOT contain fractional parts.
777
- */
778
- id: string | number;
779
- /**
780
- * Specifies the version of the JSON-RPC protocol. MUST be exactly "2.0".
781
- */
782
- jsonrpc: "2.0";
783
- /**
784
- * A String containing the name of the method to be invoked.
785
- */
786
- method: "tasks/resubscribe";
787
- params: TaskIdParams2;
788
- }
789
- /**
790
- * A Structured value that holds the parameter values to be used during the invocation of the method.
791
- */
792
- export interface TaskIdParams2 {
793
- /**
794
- * Task id.
795
- */
796
- id: string;
797
- metadata?: {
798
- [k: string]: unknown;
799
- };
800
- }
801
- /**
802
- * API Key security scheme.
803
- *
804
- * This interface was referenced by `MySchema`'s JSON-Schema
805
- * via the `definition` "APIKeySecurityScheme".
806
- */
807
- export interface APIKeySecurityScheme {
808
- /**
809
- * Description of this security scheme.
810
- */
811
- description?: string;
812
- /**
813
- * The location of the API key. Valid values are "query", "header", or "cookie".
814
- */
815
- in: "cookie" | "header" | "query";
816
- /**
817
- * The name of the header, query or cookie parameter to be used.
818
- */
819
- name: string;
820
- type: "apiKey";
821
- }
822
- /**
823
- * Defines optional capabilities supported by an agent.
824
- *
825
- * This interface was referenced by `MySchema`'s JSON-Schema
826
- * via the `definition` "AgentCapabilities".
827
- */
828
- export interface AgentCapabilities {
829
- /**
830
- * extensions supported by this agent.
831
- */
832
- extensions?: AgentExtension[];
833
- /**
834
- * true if the agent can notify updates to client.
835
- */
836
- pushNotifications?: boolean;
837
- /**
838
- * true if the agent exposes status change history for tasks.
839
- */
840
- stateTransitionHistory?: boolean;
841
- /**
842
- * true if the agent supports SSE.
843
- */
844
- streaming?: boolean;
845
- }
846
- /**
847
- * A declaration of an extension supported by an Agent.
848
- *
849
- * This interface was referenced by `MySchema`'s JSON-Schema
850
- * via the `definition` "AgentExtension".
851
- */
852
- export interface AgentExtension {
853
- /**
854
- * A description of how this agent uses this extension.
855
- */
856
- description?: string;
857
- /**
858
- * Optional configuration for the extension.
859
- */
860
- params?: {
861
- [k: string]: unknown;
862
- };
863
- /**
864
- * Whether the client must follow specific requirements of the extension.
865
- */
866
- required?: boolean;
867
- /**
868
- * The URI of the extension.
869
- */
870
- uri: string;
871
- }
872
- /**
873
- * An AgentCard conveys key information:
874
- * - Overall details (version, name, description, uses)
875
- * - Skills: A set of capabilities the agent can perform
876
- * - Default modalities/content types supported by the agent.
877
- * - Authentication requirements
878
- *
879
- * This interface was referenced by `MySchema`'s JSON-Schema
880
- * via the `definition` "AgentCard".
881
- */
882
- export interface AgentCard {
883
- capabilities: AgentCapabilities1;
884
- /**
885
- * The set of interaction modes that the agent supports across all skills. This can be overridden per-skill.
886
- * Supported media types for input.
887
- */
888
- defaultInputModes: string[];
889
- /**
890
- * Supported media types for output.
891
- */
892
- defaultOutputModes: string[];
893
- /**
894
- * A human-readable description of the agent. Used to assist users and
895
- * other agents in understanding what the agent can do.
896
- */
897
- description: string;
898
- /**
899
- * A URL to documentation for the agent.
900
- */
901
- documentationUrl?: string;
902
- /**
903
- * A URL to an icon for the agent.
904
- */
905
- iconUrl?: string;
906
- /**
907
- * Human readable name of the agent.
908
- */
909
- name: string;
910
- provider?: AgentProvider;
911
- /**
912
- * Security requirements for contacting the agent.
913
- */
914
- security?: {
915
- [k: string]: string[];
916
- }[];
917
- /**
918
- * Security scheme details used for authenticating with this agent.
919
- */
920
- securitySchemes?: {
921
- [k: string]: SecurityScheme;
922
- };
923
- /**
924
- * Skills are a unit of capability that an agent can perform.
925
- */
926
- skills: AgentSkill[];
927
- /**
928
- * true if the agent supports providing an extended agent card when the user is authenticated.
929
- * Defaults to false if not specified.
930
- */
931
- supportsAuthenticatedExtendedCard?: boolean;
932
- /**
933
- * A URL to the address the agent is hosted at.
934
- */
935
- url: string;
936
- /**
937
- * The version of the agent - format is up to the provider.
938
- */
939
- version: string;
940
- }
941
- /**
942
- * Optional capabilities supported by the agent.
943
- */
944
- export interface AgentCapabilities1 {
945
- /**
946
- * extensions supported by this agent.
947
- */
948
- extensions?: AgentExtension[];
949
- /**
950
- * true if the agent can notify updates to client.
951
- */
952
- pushNotifications?: boolean;
953
- /**
954
- * true if the agent exposes status change history for tasks.
955
- */
956
- stateTransitionHistory?: boolean;
957
- /**
958
- * true if the agent supports SSE.
959
- */
960
- streaming?: boolean;
961
- }
962
- /**
963
- * The service provider of the agent
964
- */
965
- export interface AgentProvider {
966
- /**
967
- * Agent provider's organization name.
968
- */
969
- organization: string;
970
- /**
971
- * Agent provider's URL.
972
- */
973
- url: string;
974
- }
975
- /**
976
- * HTTP Authentication security scheme.
977
- *
978
- * This interface was referenced by `MySchema`'s JSON-Schema
979
- * via the `definition` "HTTPAuthSecurityScheme".
980
- */
981
- export interface HTTPAuthSecurityScheme {
982
- /**
983
- * A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually
984
- * generated by an authorization server, so this information is primarily for documentation
985
- * purposes.
986
- */
987
- bearerFormat?: string;
988
- /**
989
- * Description of this security scheme.
990
- */
991
- description?: string;
992
- /**
993
- * The name of the HTTP Authentication scheme to be used in the Authorization header as defined
994
- * in RFC7235. The values used SHOULD be registered in the IANA Authentication Scheme registry.
995
- * The value is case-insensitive, as defined in RFC7235.
996
- */
997
- scheme: string;
998
- type: "http";
999
- }
1000
- /**
1001
- * OAuth2.0 security scheme configuration.
1002
- *
1003
- * This interface was referenced by `MySchema`'s JSON-Schema
1004
- * via the `definition` "OAuth2SecurityScheme".
1005
- */
1006
- export interface OAuth2SecurityScheme {
1007
- /**
1008
- * Description of this security scheme.
1009
- */
1010
- description?: string;
1011
- flows: OAuthFlows;
1012
- type: "oauth2";
1013
- }
1014
- /**
1015
- * An object containing configuration information for the flow types supported.
1016
- */
1017
- export interface OAuthFlows {
1018
- authorizationCode?: AuthorizationCodeOAuthFlow;
1019
- clientCredentials?: ClientCredentialsOAuthFlow;
1020
- implicit?: ImplicitOAuthFlow;
1021
- password?: PasswordOAuthFlow;
1022
- }
1023
- /**
1024
- * Configuration for the OAuth Authorization Code flow. Previously called accessCode in OpenAPI 2.0.
1025
- */
1026
- export interface AuthorizationCodeOAuthFlow {
1027
- /**
1028
- * The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2
1029
- * standard requires the use of TLS
1030
- */
1031
- authorizationUrl: string;
1032
- /**
1033
- * The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2
1034
- * standard requires the use of TLS.
1035
- */
1036
- refreshUrl?: string;
1037
- /**
1038
- * The available scopes for the OAuth2 security scheme. A map between the scope name and a short
1039
- * description for it. The map MAY be empty.
1040
- */
1041
- scopes: {
1042
- [k: string]: string;
1043
- };
1044
- /**
1045
- * The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard
1046
- * requires the use of TLS.
1047
- */
1048
- tokenUrl: string;
1049
- }
1050
- /**
1051
- * Configuration for the OAuth Client Credentials flow. Previously called application in OpenAPI 2.0
1052
- */
1053
- export interface ClientCredentialsOAuthFlow {
1054
- /**
1055
- * The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2
1056
- * standard requires the use of TLS.
1057
- */
1058
- refreshUrl?: string;
1059
- /**
1060
- * The available scopes for the OAuth2 security scheme. A map between the scope name and a short
1061
- * description for it. The map MAY be empty.
1062
- */
1063
- scopes: {
1064
- [k: string]: string;
1065
- };
1066
- /**
1067
- * The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard
1068
- * requires the use of TLS.
1069
- */
1070
- tokenUrl: string;
1071
- }
1072
- /**
1073
- * Configuration for the OAuth Implicit flow
1074
- */
1075
- export interface ImplicitOAuthFlow {
1076
- /**
1077
- * The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2
1078
- * standard requires the use of TLS
1079
- */
1080
- authorizationUrl: string;
1081
- /**
1082
- * The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2
1083
- * standard requires the use of TLS.
1084
- */
1085
- refreshUrl?: string;
1086
- /**
1087
- * The available scopes for the OAuth2 security scheme. A map between the scope name and a short
1088
- * description for it. The map MAY be empty.
1089
- */
1090
- scopes: {
1091
- [k: string]: string;
1092
- };
1093
- }
1094
- /**
1095
- * Configuration for the OAuth Resource Owner Password flow
1096
- */
1097
- export interface PasswordOAuthFlow {
1098
- /**
1099
- * The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2
1100
- * standard requires the use of TLS.
1101
- */
1102
- refreshUrl?: string;
1103
- /**
1104
- * The available scopes for the OAuth2 security scheme. A map between the scope name and a short
1105
- * description for it. The map MAY be empty.
1106
- */
1107
- scopes: {
1108
- [k: string]: string;
1109
- };
1110
- /**
1111
- * The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard
1112
- * requires the use of TLS.
1113
- */
1114
- tokenUrl: string;
1115
- }
1116
- /**
1117
- * OpenID Connect security scheme configuration.
1118
- *
1119
- * This interface was referenced by `MySchema`'s JSON-Schema
1120
- * via the `definition` "OpenIdConnectSecurityScheme".
1121
- */
1122
- export interface OpenIdConnectSecurityScheme {
1123
- /**
1124
- * Description of this security scheme.
1125
- */
1126
- description?: string;
1127
- /**
1128
- * Well-known URL to discover the [[OpenID-Connect-Discovery]] provider metadata.
1129
- */
1130
- openIdConnectUrl: string;
1131
- type: "openIdConnect";
1132
- }
1133
- /**
1134
- * Represents a unit of capability that an agent can perform.
1135
- *
1136
- * This interface was referenced by `MySchema`'s JSON-Schema
1137
- * via the `definition` "AgentSkill".
1138
- */
1139
- export interface AgentSkill {
1140
- /**
1141
- * Description of the skill - will be used by the client or a human
1142
- * as a hint to understand what the skill does.
1143
- */
1144
- description: string;
1145
- /**
1146
- * The set of example scenarios that the skill can perform.
1147
- * Will be used by the client as a hint to understand how the skill can be used.
1148
- */
1149
- examples?: string[];
1150
- /**
1151
- * Unique identifier for the agent's skill.
1152
- */
1153
- id: string;
1154
- /**
1155
- * The set of interaction modes that the skill supports
1156
- * (if different than the default).
1157
- * Supported media types for input.
1158
- */
1159
- inputModes?: string[];
1160
- /**
1161
- * Human readable name of the skill.
1162
- */
1163
- name: string;
1164
- /**
1165
- * Supported media types for output.
1166
- */
1167
- outputModes?: string[];
1168
- /**
1169
- * Set of tagwords describing classes of capabilities for this specific skill.
1170
- */
1171
- tags: string[];
1172
- }
1173
- /**
1174
- * Represents the service provider of an agent.
1175
- *
1176
- * This interface was referenced by `MySchema`'s JSON-Schema
1177
- * via the `definition` "AgentProvider".
1178
- */
1179
- export interface AgentProvider1 {
1180
- /**
1181
- * Agent provider's organization name.
1182
- */
1183
- organization: string;
1184
- /**
1185
- * Agent provider's URL.
1186
- */
1187
- url: string;
1188
- }
1189
- /**
1190
- * Represents an artifact generated for a task.
1191
- *
1192
- * This interface was referenced by `MySchema`'s JSON-Schema
1193
- * via the `definition` "Artifact".
1194
- */
1195
- export interface Artifact {
1196
- /**
1197
- * Unique identifier for the artifact.
1198
- */
1199
- artifactId: string;
1200
- /**
1201
- * Optional description for the artifact.
1202
- */
1203
- description?: string;
1204
- /**
1205
- * The URIs of extensions that are present or contributed to this Artifact.
1206
- */
1207
- extensions?: string[];
1208
- /**
1209
- * Extension metadata.
1210
- */
1211
- metadata?: {
1212
- [k: string]: unknown;
1213
- };
1214
- /**
1215
- * Optional name for the artifact.
1216
- */
1217
- name?: string;
1218
- /**
1219
- * Artifact parts.
1220
- */
1221
- parts: Part[];
1222
- }
1223
- /**
1224
- * Configuration details for a supported OAuth Flow
1225
- *
1226
- * This interface was referenced by `MySchema`'s JSON-Schema
1227
- * via the `definition` "AuthorizationCodeOAuthFlow".
1228
- */
1229
- export interface AuthorizationCodeOAuthFlow1 {
1230
- /**
1231
- * The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2
1232
- * standard requires the use of TLS
1233
- */
1234
- authorizationUrl: string;
1235
- /**
1236
- * The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2
1237
- * standard requires the use of TLS.
1238
- */
1239
- refreshUrl?: string;
1240
- /**
1241
- * The available scopes for the OAuth2 security scheme. A map between the scope name and a short
1242
- * description for it. The map MAY be empty.
1243
- */
1244
- scopes: {
1245
- [k: string]: string;
1246
- };
1247
- /**
1248
- * The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard
1249
- * requires the use of TLS.
1250
- */
1251
- tokenUrl: string;
1252
- }
1253
- /**
1254
- * Represents a JSON-RPC 2.0 Error Response object.
1255
- *
1256
- * This interface was referenced by `MySchema`'s JSON-Schema
1257
- * via the `definition` "JSONRPCErrorResponse".
1258
- */
1259
- export interface JSONRPCErrorResponse {
1260
- error: JSONRPCError | JSONParseError | InvalidRequestError | MethodNotFoundError | InvalidParamsError | InternalError | TaskNotFoundError | TaskNotCancelableError | PushNotificationNotSupportedError | UnsupportedOperationError | ContentTypeNotSupportedError | InvalidAgentResponseError;
1261
- /**
1262
- * An identifier established by the Client that MUST contain a String, Number.
1263
- * Numbers SHOULD NOT contain fractional parts.
1264
- */
1265
- id: string | number | null;
1266
- /**
1267
- * Specifies the version of the JSON-RPC protocol. MUST be exactly "2.0".
1268
- */
1269
- jsonrpc: "2.0";
1270
- }
1271
- /**
1272
- * Represents a JSON-RPC 2.0 Error object.
1273
- * This is typically included in a JSONRPCErrorResponse when an error occurs.
1274
- *
1275
- * This interface was referenced by `MySchema`'s JSON-Schema
1276
- * via the `definition` "JSONRPCError".
1277
- */
1278
- export interface JSONRPCError {
1279
- /**
1280
- * A Number that indicates the error type that occurred.
1281
- */
1282
- code: number;
1283
- /**
1284
- * A Primitive or Structured value that contains additional information about the error.
1285
- * This may be omitted.
1286
- */
1287
- data?: {
1288
- [k: string]: unknown;
1289
- };
1290
- /**
1291
- * A String providing a short description of the error.
1292
- */
1293
- message: string;
1294
- }
1295
- /**
1296
- * JSON-RPC success response model for the 'tasks/cancel' method.
1297
- *
1298
- * This interface was referenced by `MySchema`'s JSON-Schema
1299
- * via the `definition` "CancelTaskSuccessResponse".
1300
- */
1301
- export interface CancelTaskSuccessResponse {
1302
- /**
1303
- * An identifier established by the Client that MUST contain a String, Number.
1304
- * Numbers SHOULD NOT contain fractional parts.
1305
- */
1306
- id: string | number | null;
1307
- /**
1308
- * Specifies the version of the JSON-RPC protocol. MUST be exactly "2.0".
1309
- */
1310
- jsonrpc: "2.0";
1311
- result: Task;
1312
- }
1313
- /**
1314
- * The result object on success.
1315
- */
1316
- export interface Task {
1317
- /**
1318
- * Collection of artifacts created by the agent.
1319
- */
1320
- artifacts?: Artifact[];
1321
- /**
1322
- * Server-generated id for contextual alignment across interactions
1323
- */
1324
- contextId: string;
1325
- history?: Message1[];
1326
- /**
1327
- * Unique identifier for the task
1328
- */
1329
- id: string;
1330
- /**
1331
- * Event type
1332
- */
1333
- kind: "task";
1334
- /**
1335
- * Extension metadata.
1336
- */
1337
- metadata?: {
1338
- [k: string]: unknown;
1339
- };
1340
- status: TaskStatus;
1341
- }
1342
- /**
1343
- * Represents a single message exchanged between user and agent.
1344
- *
1345
- * This interface was referenced by `MySchema`'s JSON-Schema
1346
- * via the `definition` "Message".
1347
- */
1348
- export interface Message1 {
1349
- /**
1350
- * The context the message is associated with
1351
- */
1352
- contextId?: string;
1353
- /**
1354
- * The URIs of extensions that are present or contributed to this Message.
1355
- */
1356
- extensions?: string[];
1357
- /**
1358
- * Event type
1359
- */
1360
- kind: "message";
1361
- /**
1362
- * Identifier created by the message creator
1363
- */
1364
- messageId: string;
1365
- /**
1366
- * Extension metadata.
1367
- */
1368
- metadata?: {
1369
- [k: string]: unknown;
1370
- };
1371
- /**
1372
- * Message content
1373
- */
1374
- parts: Part[];
1375
- /**
1376
- * List of tasks referenced as context by this message.
1377
- */
1378
- referenceTaskIds?: string[];
1379
- /**
1380
- * Message sender's role
1381
- */
1382
- role: "agent" | "user";
1383
- /**
1384
- * Identifier of task the message is related to
1385
- */
1386
- taskId?: string;
1387
- }
1388
- /**
1389
- * Current status of the task
1390
- */
1391
- export interface TaskStatus {
1392
- message?: Message2;
1393
- state: TaskState;
1394
- /**
1395
- * ISO 8601 datetime string when the status was recorded.
1396
- */
1397
- timestamp?: string;
1398
- }
1399
- /**
1400
- * Represents a single message exchanged between user and agent.
1401
- */
1402
- export interface Message2 {
1403
- /**
1404
- * The context the message is associated with
1405
- */
1406
- contextId?: string;
1407
- /**
1408
- * The URIs of extensions that are present or contributed to this Message.
1409
- */
1410
- extensions?: string[];
1411
- /**
1412
- * Event type
1413
- */
1414
- kind: "message";
1415
- /**
1416
- * Identifier created by the message creator
1417
- */
1418
- messageId: string;
1419
- /**
1420
- * Extension metadata.
1421
- */
1422
- metadata?: {
1423
- [k: string]: unknown;
1424
- };
1425
- /**
1426
- * Message content
1427
- */
1428
- parts: Part[];
1429
- /**
1430
- * List of tasks referenced as context by this message.
1431
- */
1432
- referenceTaskIds?: string[];
1433
- /**
1434
- * Message sender's role
1435
- */
1436
- role: "agent" | "user";
1437
- /**
1438
- * Identifier of task the message is related to
1439
- */
1440
- taskId?: string;
1441
- }
1442
- /**
1443
- * Configuration details for a supported OAuth Flow
1444
- *
1445
- * This interface was referenced by `MySchema`'s JSON-Schema
1446
- * via the `definition` "ClientCredentialsOAuthFlow".
1447
- */
1448
- export interface ClientCredentialsOAuthFlow1 {
1449
- /**
1450
- * The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2
1451
- * standard requires the use of TLS.
1452
- */
1453
- refreshUrl?: string;
1454
- /**
1455
- * The available scopes for the OAuth2 security scheme. A map between the scope name and a short
1456
- * description for it. The map MAY be empty.
1457
- */
1458
- scopes: {
1459
- [k: string]: string;
1460
- };
1461
- /**
1462
- * The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard
1463
- * requires the use of TLS.
1464
- */
1465
- tokenUrl: string;
1466
- }
1467
- /**
1468
- * Represents the base entity for FileParts
1469
- *
1470
- * This interface was referenced by `MySchema`'s JSON-Schema
1471
- * via the `definition` "FileBase".
1472
- */
1473
- export interface FileBase {
1474
- /**
1475
- * Optional mimeType for the file
1476
- */
1477
- mimeType?: string;
1478
- /**
1479
- * Optional name for the file
1480
- */
1481
- name?: string;
1482
- }
1483
- /**
1484
- * JSON-RPC success response model for the 'tasks/pushNotificationConfig/get' method.
1485
- *
1486
- * This interface was referenced by `MySchema`'s JSON-Schema
1487
- * via the `definition` "GetTaskPushNotificationConfigSuccessResponse".
1488
- */
1489
- export interface GetTaskPushNotificationConfigSuccessResponse {
1490
- /**
1491
- * An identifier established by the Client that MUST contain a String, Number.
1492
- * Numbers SHOULD NOT contain fractional parts.
1493
- */
1494
- id: string | number | null;
1495
- /**
1496
- * Specifies the version of the JSON-RPC protocol. MUST be exactly "2.0".
1497
- */
1498
- jsonrpc: "2.0";
1499
- result: TaskPushNotificationConfig1;
1500
- }
1501
- /**
1502
- * The result object on success.
1503
- */
1504
- export interface TaskPushNotificationConfig1 {
1505
- pushNotificationConfig: PushNotificationConfig1;
1506
- /**
1507
- * Task id.
1508
- */
1509
- taskId: string;
1510
- }
1511
- /**
1512
- * JSON-RPC success response for the 'tasks/get' method.
1513
- *
1514
- * This interface was referenced by `MySchema`'s JSON-Schema
1515
- * via the `definition` "GetTaskSuccessResponse".
1516
- */
1517
- export interface GetTaskSuccessResponse {
1518
- /**
1519
- * An identifier established by the Client that MUST contain a String, Number.
1520
- * Numbers SHOULD NOT contain fractional parts.
1521
- */
1522
- id: string | number | null;
1523
- /**
1524
- * Specifies the version of the JSON-RPC protocol. MUST be exactly "2.0".
1525
- */
1526
- jsonrpc: "2.0";
1527
- result: Task1;
1528
- }
1529
- /**
1530
- * The result object on success.
1531
- */
1532
- export interface Task1 {
1533
- /**
1534
- * Collection of artifacts created by the agent.
1535
- */
1536
- artifacts?: Artifact[];
1537
- /**
1538
- * Server-generated id for contextual alignment across interactions
1539
- */
1540
- contextId: string;
1541
- history?: Message1[];
1542
- /**
1543
- * Unique identifier for the task
1544
- */
1545
- id: string;
1546
- /**
1547
- * Event type
1548
- */
1549
- kind: "task";
1550
- /**
1551
- * Extension metadata.
1552
- */
1553
- metadata?: {
1554
- [k: string]: unknown;
1555
- };
1556
- status: TaskStatus;
1557
- }
1558
- /**
1559
- * Configuration details for a supported OAuth Flow
1560
- *
1561
- * This interface was referenced by `MySchema`'s JSON-Schema
1562
- * via the `definition` "ImplicitOAuthFlow".
1563
- */
1564
- export interface ImplicitOAuthFlow1 {
1565
- /**
1566
- * The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2
1567
- * standard requires the use of TLS
1568
- */
1569
- authorizationUrl: string;
1570
- /**
1571
- * The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2
1572
- * standard requires the use of TLS.
1573
- */
1574
- refreshUrl?: string;
1575
- /**
1576
- * The available scopes for the OAuth2 security scheme. A map between the scope name and a short
1577
- * description for it. The map MAY be empty.
1578
- */
1579
- scopes: {
1580
- [k: string]: string;
1581
- };
1582
- }
1583
- /**
1584
- * Base interface for any JSON-RPC 2.0 request or response.
1585
- *
1586
- * This interface was referenced by `MySchema`'s JSON-Schema
1587
- * via the `definition` "JSONRPCMessage".
1588
- */
1589
- export interface JSONRPCMessage {
1590
- /**
1591
- * An identifier established by the Client that MUST contain a String, Number.
1592
- * Numbers SHOULD NOT contain fractional parts.
1593
- */
1594
- id?: string | number | null;
1595
- /**
1596
- * Specifies the version of the JSON-RPC protocol. MUST be exactly "2.0".
1597
- */
1598
- jsonrpc: "2.0";
1599
- }
1600
- /**
1601
- * Represents a JSON-RPC 2.0 Request object.
1602
- *
1603
- * This interface was referenced by `MySchema`'s JSON-Schema
1604
- * via the `definition` "JSONRPCRequest".
1605
- */
1606
- export interface JSONRPCRequest {
1607
- /**
1608
- * An identifier established by the Client that MUST contain a String, Number.
1609
- * Numbers SHOULD NOT contain fractional parts.
1610
- */
1611
- id?: string | number | null;
1612
- /**
1613
- * Specifies the version of the JSON-RPC protocol. MUST be exactly "2.0".
1614
- */
1615
- jsonrpc: "2.0";
1616
- /**
1617
- * A String containing the name of the method to be invoked.
1618
- */
1619
- method: string;
1620
- /**
1621
- * A Structured value that holds the parameter values to be used during the invocation of the method.
1622
- */
1623
- params?: {
1624
- [k: string]: unknown;
1625
- };
1626
- }
1627
- /**
1628
- * JSON-RPC success response model for the 'message/send' method.
1629
- *
1630
- * This interface was referenced by `MySchema`'s JSON-Schema
1631
- * via the `definition` "SendMessageSuccessResponse".
1632
- */
1633
- export interface SendMessageSuccessResponse {
1634
- /**
1635
- * An identifier established by the Client that MUST contain a String, Number.
1636
- * Numbers SHOULD NOT contain fractional parts.
1637
- */
1638
- id: string | number | null;
1639
- /**
1640
- * Specifies the version of the JSON-RPC protocol. MUST be exactly "2.0".
1641
- */
1642
- jsonrpc: "2.0";
1643
- /**
1644
- * The result object on success
1645
- */
1646
- result: Task2 | Message1;
1647
- }
1648
- /**
1649
- * This interface was referenced by `MySchema`'s JSON-Schema
1650
- * via the `definition` "Task".
1651
- */
1652
- export interface Task2 {
1653
- /**
1654
- * Collection of artifacts created by the agent.
1655
- */
1656
- artifacts?: Artifact[];
1657
- /**
1658
- * Server-generated id for contextual alignment across interactions
1659
- */
1660
- contextId: string;
1661
- history?: Message1[];
1662
- /**
1663
- * Unique identifier for the task
1664
- */
1665
- id: string;
1666
- /**
1667
- * Event type
1668
- */
1669
- kind: "task";
1670
- /**
1671
- * Extension metadata.
1672
- */
1673
- metadata?: {
1674
- [k: string]: unknown;
1675
- };
1676
- status: TaskStatus;
1677
- }
1678
- /**
1679
- * JSON-RPC success response model for the 'message/stream' method.
1680
- *
1681
- * This interface was referenced by `MySchema`'s JSON-Schema
1682
- * via the `definition` "SendStreamingMessageSuccessResponse".
1683
- */
1684
- export interface SendStreamingMessageSuccessResponse {
1685
- /**
1686
- * An identifier established by the Client that MUST contain a String, Number.
1687
- * Numbers SHOULD NOT contain fractional parts.
1688
- */
1689
- id: string | number | null;
1690
- /**
1691
- * Specifies the version of the JSON-RPC protocol. MUST be exactly "2.0".
1692
- */
1693
- jsonrpc: "2.0";
1694
- /**
1695
- * The result object on success
1696
- */
1697
- result: Task2 | Message1 | TaskStatusUpdateEvent | TaskArtifactUpdateEvent;
1698
- }
1699
- /**
1700
- * Sent by server during sendStream or subscribe requests
1701
- *
1702
- * This interface was referenced by `MySchema`'s JSON-Schema
1703
- * via the `definition` "TaskStatusUpdateEvent".
1704
- */
1705
- export interface TaskStatusUpdateEvent {
1706
- /**
1707
- * The context the task is associated with
1708
- */
1709
- contextId: string;
1710
- /**
1711
- * Indicates the end of the event stream
1712
- */
1713
- final: boolean;
1714
- /**
1715
- * Event type
1716
- */
1717
- kind: "status-update";
1718
- /**
1719
- * Extension metadata.
1720
- */
1721
- metadata?: {
1722
- [k: string]: unknown;
1723
- };
1724
- status: TaskStatus1;
1725
- /**
1726
- * Task id
1727
- */
1728
- taskId: string;
1729
- }
1730
- /**
1731
- * Current status of the task
1732
- */
1733
- export interface TaskStatus1 {
1734
- message?: Message2;
1735
- state: TaskState;
1736
- /**
1737
- * ISO 8601 datetime string when the status was recorded.
1738
- */
1739
- timestamp?: string;
1740
- }
1741
- /**
1742
- * Sent by server during sendStream or subscribe requests
1743
- *
1744
- * This interface was referenced by `MySchema`'s JSON-Schema
1745
- * via the `definition` "TaskArtifactUpdateEvent".
1746
- */
1747
- export interface TaskArtifactUpdateEvent {
1748
- /**
1749
- * Indicates if this artifact appends to a previous one
1750
- */
1751
- append?: boolean;
1752
- artifact: Artifact1;
1753
- /**
1754
- * The context the task is associated with
1755
- */
1756
- contextId: string;
1757
- /**
1758
- * Event type
1759
- */
1760
- kind: "artifact-update";
1761
- /**
1762
- * Indicates if this is the last chunk of the artifact
1763
- */
1764
- lastChunk?: boolean;
1765
- /**
1766
- * Extension metadata.
1767
- */
1768
- metadata?: {
1769
- [k: string]: unknown;
1770
- };
1771
- /**
1772
- * Task id
1773
- */
1774
- taskId: string;
1775
- }
1776
- /**
1777
- * Represents an artifact generated for a task.
1778
- */
1779
- export interface Artifact1 {
1780
- /**
1781
- * Unique identifier for the artifact.
1782
- */
1783
- artifactId: string;
1784
- /**
1785
- * Optional description for the artifact.
1786
- */
1787
- description?: string;
1788
- /**
1789
- * The URIs of extensions that are present or contributed to this Artifact.
1790
- */
1791
- extensions?: string[];
1792
- /**
1793
- * Extension metadata.
1794
- */
1795
- metadata?: {
1796
- [k: string]: unknown;
1797
- };
1798
- /**
1799
- * Optional name for the artifact.
1800
- */
1801
- name?: string;
1802
- /**
1803
- * Artifact parts.
1804
- */
1805
- parts: Part[];
1806
- }
1807
- /**
1808
- * JSON-RPC success response model for the 'tasks/pushNotificationConfig/set' method.
1809
- *
1810
- * This interface was referenced by `MySchema`'s JSON-Schema
1811
- * via the `definition` "SetTaskPushNotificationConfigSuccessResponse".
1812
- */
1813
- export interface SetTaskPushNotificationConfigSuccessResponse {
1814
- /**
1815
- * An identifier established by the Client that MUST contain a String, Number.
1816
- * Numbers SHOULD NOT contain fractional parts.
1817
- */
1818
- id: string | number | null;
1819
- /**
1820
- * Specifies the version of the JSON-RPC protocol. MUST be exactly "2.0".
1821
- */
1822
- jsonrpc: "2.0";
1823
- result: TaskPushNotificationConfig2;
1824
- }
1825
- /**
1826
- * The result object on success.
1827
- */
1828
- export interface TaskPushNotificationConfig2 {
1829
- pushNotificationConfig: PushNotificationConfig1;
1830
- /**
1831
- * Task id.
1832
- */
1833
- taskId: string;
1834
- }
1835
- /**
1836
- * Represents a JSON-RPC 2.0 Success Response object.
1837
- *
1838
- * This interface was referenced by `MySchema`'s JSON-Schema
1839
- * via the `definition` "JSONRPCSuccessResponse".
1840
- */
1841
- export interface JSONRPCSuccessResponse {
1842
- /**
1843
- * An identifier established by the Client that MUST contain a String, Number.
1844
- * Numbers SHOULD NOT contain fractional parts.
1845
- */
1846
- id: string | number | null;
1847
- /**
1848
- * Specifies the version of the JSON-RPC protocol. MUST be exactly "2.0".
1849
- */
1850
- jsonrpc: "2.0";
1851
- /**
1852
- * The result object on success
1853
- */
1854
- result: {
1855
- [k: string]: unknown;
1856
- };
1857
- }
1858
- /**
1859
- * Configuration for the send message request.
1860
- *
1861
- * This interface was referenced by `MySchema`'s JSON-Schema
1862
- * via the `definition` "MessageSendConfiguration".
1863
- */
1864
- export interface MessageSendConfiguration1 {
1865
- /**
1866
- * Accepted output modalities by the client.
1867
- */
1868
- acceptedOutputModes: string[];
1869
- /**
1870
- * If the server should treat the client as a blocking request.
1871
- */
1872
- blocking?: boolean;
1873
- /**
1874
- * Number of recent messages to be retrieved.
1875
- */
1876
- historyLength?: number;
1877
- pushNotificationConfig?: PushNotificationConfig;
1878
- }
1879
- /**
1880
- * Sent by the client to the agent as a request. May create, continue or restart a task.
1881
- *
1882
- * This interface was referenced by `MySchema`'s JSON-Schema
1883
- * via the `definition` "MessageSendParams".
1884
- */
1885
- export interface MessageSendParams2 {
1886
- configuration?: MessageSendConfiguration;
1887
- message: Message;
1888
- /**
1889
- * Extension metadata.
1890
- */
1891
- metadata?: {
1892
- [k: string]: unknown;
1893
- };
1894
- }
1895
- /**
1896
- * Allows configuration of the supported OAuth Flows
1897
- *
1898
- * This interface was referenced by `MySchema`'s JSON-Schema
1899
- * via the `definition` "OAuthFlows".
1900
- */
1901
- export interface OAuthFlows1 {
1902
- authorizationCode?: AuthorizationCodeOAuthFlow;
1903
- clientCredentials?: ClientCredentialsOAuthFlow;
1904
- implicit?: ImplicitOAuthFlow;
1905
- password?: PasswordOAuthFlow;
1906
- }
1907
- /**
1908
- * Base properties common to all message parts.
1909
- *
1910
- * This interface was referenced by `MySchema`'s JSON-Schema
1911
- * via the `definition` "PartBase".
1912
- */
1913
- export interface PartBase {
1914
- /**
1915
- * Optional metadata associated with the part.
1916
- */
1917
- metadata?: {
1918
- [k: string]: unknown;
1919
- };
1920
- }
1921
- /**
1922
- * Configuration details for a supported OAuth Flow
1923
- *
1924
- * This interface was referenced by `MySchema`'s JSON-Schema
1925
- * via the `definition` "PasswordOAuthFlow".
1926
- */
1927
- export interface PasswordOAuthFlow1 {
1928
- /**
1929
- * The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2
1930
- * standard requires the use of TLS.
1931
- */
1932
- refreshUrl?: string;
1933
- /**
1934
- * The available scopes for the OAuth2 security scheme. A map between the scope name and a short
1935
- * description for it. The map MAY be empty.
1936
- */
1937
- scopes: {
1938
- [k: string]: string;
1939
- };
1940
- /**
1941
- * The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard
1942
- * requires the use of TLS.
1943
- */
1944
- tokenUrl: string;
1945
- }
1946
- /**
1947
- * Configuration for setting up push notifications for task updates.
1948
- *
1949
- * This interface was referenced by `MySchema`'s JSON-Schema
1950
- * via the `definition` "PushNotificationConfig".
1951
- */
1952
- export interface PushNotificationConfig2 {
1953
- authentication?: PushNotificationAuthenticationInfo;
1954
- /**
1955
- * Push Notification ID - created by server to support multiple callbacks
1956
- */
1957
- id?: string;
1958
- /**
1959
- * Token unique to this task/session.
1960
- */
1961
- token?: string;
1962
- /**
1963
- * URL for sending the push notifications.
1964
- */
1965
- url: string;
1966
- }
1967
- /**
1968
- * Base properties shared by all security schemes.
1969
- *
1970
- * This interface was referenced by `MySchema`'s JSON-Schema
1971
- * via the `definition` "SecuritySchemeBase".
1972
- */
1973
- export interface SecuritySchemeBase {
1974
- /**
1975
- * Description of this security scheme.
1976
- */
1977
- description?: string;
1978
- }
1979
- /**
1980
- * Parameters containing only a task ID, used for simple task operations.
1981
- *
1982
- * This interface was referenced by `MySchema`'s JSON-Schema
1983
- * via the `definition` "TaskIdParams".
1984
- */
1985
- export interface TaskIdParams3 {
1986
- /**
1987
- * Task id.
1988
- */
1989
- id: string;
1990
- metadata?: {
1991
- [k: string]: unknown;
1992
- };
1993
- }
1994
- /**
1995
- * Parameters for setting or getting push notification configuration for a task
1996
- *
1997
- * This interface was referenced by `MySchema`'s JSON-Schema
1998
- * via the `definition` "TaskPushNotificationConfig".
1999
- */
2000
- export interface TaskPushNotificationConfig3 {
2001
- pushNotificationConfig: PushNotificationConfig1;
2002
- /**
2003
- * Task id.
2004
- */
2005
- taskId: string;
2006
- }
2007
- /**
2008
- * Parameters for querying a task, including optional history length.
2009
- *
2010
- * This interface was referenced by `MySchema`'s JSON-Schema
2011
- * via the `definition` "TaskQueryParams".
2012
- */
2013
- export interface TaskQueryParams1 {
2014
- /**
2015
- * Number of recent messages to be retrieved.
2016
- */
2017
- historyLength?: number;
2018
- /**
2019
- * Task id.
2020
- */
2021
- id: string;
2022
- metadata?: {
2023
- [k: string]: unknown;
2024
- };
2025
- }
2026
- /**
2027
- * TaskState and accompanying message.
2028
- *
2029
- * This interface was referenced by `MySchema`'s JSON-Schema
2030
- * via the `definition` "TaskStatus".
2031
- */
2032
- export interface TaskStatus2 {
2033
- message?: Message2;
2034
- state: TaskState;
2035
- /**
2036
- * ISO 8601 datetime string when the status was recorded.
2037
- */
2038
- timestamp?: string;
2039
- }
2040
- /**
2041
- * Represents the possible states of a Task.
2042
- *
2043
- * This interface was referenced by `MySchema`'s JSON-Schema
2044
- * via the `definition` "TaskState".
2045
- */
2046
- export declare enum TaskState {
2047
- Submitted = "submitted",
2048
- Working = "working",
2049
- InputRequired = "input-required",
2050
- Completed = "completed",
2051
- Canceled = "canceled",
2052
- Failed = "failed",
2053
- Rejected = "rejected",
2054
- AuthRequired = "auth-required",
2055
- Unknown = "unknown"
2056
- }
2057
- //# sourceMappingURL=ref.d.ts.map