@dexto/core 1.2.4 → 1.2.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 (551) hide show
  1. package/README.md +60 -0
  2. package/dist/agent/DextoAgent.cjs +579 -345
  3. package/dist/agent/DextoAgent.d.ts +131 -83
  4. package/dist/agent/DextoAgent.d.ts.map +1 -1
  5. package/dist/agent/DextoAgent.js +573 -336
  6. package/dist/agent/agentCard.cjs +4 -2
  7. package/dist/agent/agentCard.d.ts +0 -1
  8. package/dist/agent/agentCard.d.ts.map +1 -1
  9. package/dist/agent/agentCard.js +4 -2
  10. package/dist/agent/index.cjs +3 -7
  11. package/dist/agent/index.d.ts +3 -3
  12. package/dist/agent/index.d.ts.map +1 -1
  13. package/dist/agent/index.js +7 -6
  14. package/dist/agent/schemas.cjs +179 -75
  15. package/dist/agent/schemas.d.ts +2678 -586
  16. package/dist/agent/schemas.d.ts.map +1 -1
  17. package/dist/agent/schemas.js +172 -65
  18. package/dist/agent/state-manager.cjs +28 -23
  19. package/dist/agent/state-manager.d.ts +4 -1
  20. package/dist/agent/state-manager.d.ts.map +1 -1
  21. package/dist/agent/state-manager.js +28 -23
  22. package/dist/{preferences/constants.cjs → agent/types.cjs} +2 -14
  23. package/dist/agent/types.d.ts +54 -0
  24. package/dist/agent/types.d.ts.map +1 -0
  25. package/dist/agent/types.js +0 -0
  26. package/dist/approval/errors.cjs +89 -8
  27. package/dist/approval/errors.d.ts +5 -3
  28. package/dist/approval/errors.d.ts.map +1 -1
  29. package/dist/approval/errors.js +89 -8
  30. package/dist/approval/{providers/factory.d.ts → factory.d.ts} +2 -2
  31. package/dist/approval/factory.d.ts.map +1 -0
  32. package/dist/approval/{providers/factory.js → factory.js} +1 -1
  33. package/dist/approval/index.cjs +4 -6
  34. package/dist/approval/index.d.ts +3 -5
  35. package/dist/approval/index.d.ts.map +1 -1
  36. package/dist/approval/index.js +4 -5
  37. package/dist/approval/manager.cjs +140 -37
  38. package/dist/approval/manager.d.ts +56 -17
  39. package/dist/approval/manager.d.ts.map +1 -1
  40. package/dist/approval/manager.js +141 -38
  41. package/dist/approval/schemas.cjs +9 -1
  42. package/dist/approval/schemas.d.ts +120 -35
  43. package/dist/approval/schemas.d.ts.map +1 -1
  44. package/dist/approval/schemas.js +9 -2
  45. package/dist/approval/types.cjs +14 -2
  46. package/dist/approval/types.d.ts +64 -12
  47. package/dist/approval/types.d.ts.map +1 -1
  48. package/dist/approval/types.js +12 -1
  49. package/dist/context/compression/middle-removal.cjs +11 -11
  50. package/dist/context/compression/middle-removal.d.ts +3 -1
  51. package/dist/context/compression/middle-removal.d.ts.map +1 -1
  52. package/dist/context/compression/middle-removal.js +11 -11
  53. package/dist/context/compression/oldest-removal.cjs +18 -5
  54. package/dist/context/compression/oldest-removal.d.ts +3 -1
  55. package/dist/context/compression/oldest-removal.d.ts.map +1 -1
  56. package/dist/context/compression/oldest-removal.js +18 -5
  57. package/dist/context/manager.cjs +94 -67
  58. package/dist/context/manager.d.ts +13 -10
  59. package/dist/context/manager.d.ts.map +1 -1
  60. package/dist/context/manager.js +94 -67
  61. package/dist/context/utils.cjs +79 -65
  62. package/dist/context/utils.d.ts +15 -12
  63. package/dist/context/utils.d.ts.map +1 -1
  64. package/dist/context/utils.js +45 -31
  65. package/dist/errors/DextoRuntimeError.d.ts +5 -5
  66. package/dist/errors/DextoRuntimeError.d.ts.map +1 -1
  67. package/dist/errors/result-bridge.cjs +2 -3
  68. package/dist/errors/result-bridge.d.ts +5 -3
  69. package/dist/errors/result-bridge.d.ts.map +1 -1
  70. package/dist/errors/result-bridge.js +1 -2
  71. package/dist/errors/types.cjs +1 -2
  72. package/dist/errors/types.d.ts +5 -8
  73. package/dist/errors/types.d.ts.map +1 -1
  74. package/dist/errors/types.js +1 -2
  75. package/dist/events/index.cjs +125 -55
  76. package/dist/events/index.d.ts +204 -97
  77. package/dist/events/index.d.ts.map +1 -1
  78. package/dist/events/index.js +123 -55
  79. package/dist/filesystem/filesystem-service.cjs +40 -30
  80. package/dist/filesystem/filesystem-service.d.ts +9 -1
  81. package/dist/filesystem/filesystem-service.d.ts.map +1 -1
  82. package/dist/filesystem/filesystem-service.js +40 -30
  83. package/dist/filesystem/path-validator.cjs +4 -3
  84. package/dist/filesystem/path-validator.d.ts +3 -1
  85. package/dist/filesystem/path-validator.d.ts.map +1 -1
  86. package/dist/filesystem/path-validator.js +4 -3
  87. package/dist/filesystem/types.d.ts +3 -3
  88. package/dist/filesystem/types.d.ts.map +1 -1
  89. package/dist/index.browser.cjs +7 -0
  90. package/dist/index.browser.d.ts +2 -0
  91. package/dist/index.browser.d.ts.map +1 -1
  92. package/dist/index.browser.js +4 -0
  93. package/dist/index.cjs +0 -7
  94. package/dist/index.d.ts +12 -3
  95. package/dist/index.d.ts.map +1 -1
  96. package/dist/index.js +0 -4
  97. package/dist/llm/formatters/anthropic.cjs +32 -21
  98. package/dist/llm/formatters/anthropic.d.ts +3 -0
  99. package/dist/llm/formatters/anthropic.d.ts.map +1 -1
  100. package/dist/llm/formatters/anthropic.js +32 -21
  101. package/dist/llm/formatters/factory.cjs +6 -7
  102. package/dist/llm/formatters/factory.d.ts +2 -1
  103. package/dist/llm/formatters/factory.d.ts.map +1 -1
  104. package/dist/llm/formatters/factory.js +4 -5
  105. package/dist/llm/formatters/openai.cjs +38 -9
  106. package/dist/llm/formatters/openai.d.ts +3 -0
  107. package/dist/llm/formatters/openai.d.ts.map +1 -1
  108. package/dist/llm/formatters/openai.js +38 -9
  109. package/dist/llm/formatters/vercel.cjs +49 -8
  110. package/dist/llm/formatters/vercel.d.ts +3 -0
  111. package/dist/llm/formatters/vercel.d.ts.map +1 -1
  112. package/dist/llm/formatters/vercel.js +49 -8
  113. package/dist/llm/registry.cjs +153 -17
  114. package/dist/llm/registry.d.ts +5 -2
  115. package/dist/llm/registry.d.ts.map +1 -1
  116. package/dist/llm/registry.js +143 -7
  117. package/dist/llm/resolver.cjs +4 -4
  118. package/dist/llm/resolver.d.ts +3 -2
  119. package/dist/llm/resolver.d.ts.map +1 -1
  120. package/dist/llm/resolver.js +4 -4
  121. package/dist/llm/schemas.cjs +6 -3
  122. package/dist/llm/schemas.d.ts +51 -17
  123. package/dist/llm/schemas.d.ts.map +1 -1
  124. package/dist/llm/schemas.js +5 -3
  125. package/dist/llm/services/anthropic.cjs +216 -183
  126. package/dist/llm/services/anthropic.d.ts +3 -1
  127. package/dist/llm/services/anthropic.d.ts.map +1 -1
  128. package/dist/llm/services/anthropic.js +217 -184
  129. package/dist/llm/services/factory.cjs +15 -9
  130. package/dist/llm/services/factory.d.ts +2 -1
  131. package/dist/llm/services/factory.d.ts.map +1 -1
  132. package/dist/llm/services/factory.js +15 -9
  133. package/dist/llm/services/openai.cjs +262 -225
  134. package/dist/llm/services/openai.d.ts +3 -1
  135. package/dist/llm/services/openai.d.ts.map +1 -1
  136. package/dist/llm/services/openai.js +263 -226
  137. package/dist/llm/services/test-utils.integration.cjs +58 -12
  138. package/dist/llm/services/test-utils.integration.d.ts.map +1 -1
  139. package/dist/llm/services/test-utils.integration.js +58 -12
  140. package/dist/llm/services/types.d.ts +9 -0
  141. package/dist/llm/services/types.d.ts.map +1 -1
  142. package/dist/llm/services/vercel.cjs +163 -111
  143. package/dist/llm/services/vercel.d.ts +3 -1
  144. package/dist/llm/services/vercel.d.ts.map +1 -1
  145. package/dist/llm/services/vercel.js +157 -105
  146. package/dist/llm/tokenizer/factory.cjs +2 -2
  147. package/dist/llm/tokenizer/factory.d.ts +3 -1
  148. package/dist/llm/tokenizer/factory.d.ts.map +1 -1
  149. package/dist/llm/tokenizer/factory.js +2 -2
  150. package/dist/llm/tokenizer/openai.cjs +16 -9
  151. package/dist/llm/tokenizer/openai.d.ts +4 -1
  152. package/dist/llm/tokenizer/openai.d.ts.map +1 -1
  153. package/dist/llm/tokenizer/openai.js +16 -9
  154. package/dist/llm/validation.cjs +8 -9
  155. package/dist/llm/validation.d.ts +3 -1
  156. package/dist/llm/validation.d.ts.map +1 -1
  157. package/dist/llm/validation.js +5 -6
  158. package/dist/logger/factory.cjs +54 -0
  159. package/dist/logger/factory.d.ts +36 -0
  160. package/dist/logger/factory.d.ts.map +1 -0
  161. package/dist/logger/factory.js +31 -0
  162. package/dist/logger/index.cjs +42 -3
  163. package/dist/logger/index.d.ts +17 -1
  164. package/dist/logger/index.d.ts.map +1 -1
  165. package/dist/logger/index.js +26 -1
  166. package/dist/logger/logger.cjs +30 -17
  167. package/dist/logger/logger.d.ts.map +1 -1
  168. package/dist/logger/logger.js +30 -17
  169. package/dist/logger/v2/dexto-logger.cjs +141 -0
  170. package/dist/logger/v2/dexto-logger.d.ts +54 -0
  171. package/dist/logger/v2/dexto-logger.d.ts.map +1 -0
  172. package/dist/logger/v2/dexto-logger.js +118 -0
  173. package/dist/{preferences → logger/v2}/error-codes.cjs +11 -10
  174. package/dist/logger/v2/error-codes.d.ts +13 -0
  175. package/dist/logger/v2/error-codes.d.ts.map +1 -0
  176. package/dist/logger/v2/error-codes.js +13 -0
  177. package/dist/logger/v2/errors.cjs +107 -0
  178. package/dist/logger/v2/errors.d.ts +32 -0
  179. package/dist/logger/v2/errors.d.ts.map +1 -0
  180. package/dist/logger/v2/errors.js +84 -0
  181. package/dist/logger/v2/schemas.cjs +57 -0
  182. package/dist/logger/v2/schemas.d.ts +147 -0
  183. package/dist/logger/v2/schemas.d.ts.map +1 -0
  184. package/dist/logger/v2/schemas.js +33 -0
  185. package/dist/logger/v2/transport-factory.cjs +53 -0
  186. package/dist/logger/v2/transport-factory.d.ts +21 -0
  187. package/dist/logger/v2/transport-factory.d.ts.map +1 -0
  188. package/dist/logger/v2/transport-factory.js +29 -0
  189. package/dist/logger/v2/transports/console-transport.cjs +79 -0
  190. package/dist/logger/v2/transports/console-transport.d.ts +23 -0
  191. package/dist/logger/v2/transports/console-transport.d.ts.map +1 -0
  192. package/dist/logger/v2/transports/console-transport.js +46 -0
  193. package/dist/logger/v2/transports/file-transport.cjs +161 -0
  194. package/dist/logger/v2/transports/file-transport.d.ts +46 -0
  195. package/dist/logger/v2/transports/file-transport.d.ts.map +1 -0
  196. package/dist/logger/v2/transports/file-transport.js +128 -0
  197. package/dist/logger/v2/types.cjs +49 -0
  198. package/dist/logger/v2/types.d.ts +123 -0
  199. package/dist/logger/v2/types.d.ts.map +1 -0
  200. package/dist/logger/v2/types.js +26 -0
  201. package/dist/mcp/manager.cjs +88 -78
  202. package/dist/mcp/manager.d.ts +3 -1
  203. package/dist/mcp/manager.d.ts.map +1 -1
  204. package/dist/mcp/manager.js +88 -78
  205. package/dist/mcp/mcp-client.cjs +109 -79
  206. package/dist/mcp/mcp-client.d.ts +3 -0
  207. package/dist/mcp/mcp-client.d.ts.map +1 -1
  208. package/dist/mcp/mcp-client.js +102 -72
  209. package/dist/memory/index.cjs +2 -0
  210. package/dist/memory/index.d.ts +1 -1
  211. package/dist/memory/index.d.ts.map +1 -1
  212. package/dist/memory/index.js +3 -1
  213. package/dist/memory/manager.cjs +9 -7
  214. package/dist/memory/manager.d.ts +3 -1
  215. package/dist/memory/manager.d.ts.map +1 -1
  216. package/dist/memory/manager.js +9 -7
  217. package/dist/memory/schemas.cjs +10 -0
  218. package/dist/memory/schemas.d.ts +37 -8
  219. package/dist/memory/schemas.d.ts.map +1 -1
  220. package/dist/memory/schemas.js +9 -0
  221. package/dist/plugins/manager.cjs +21 -19
  222. package/dist/plugins/manager.d.ts +3 -1
  223. package/dist/plugins/manager.d.ts.map +1 -1
  224. package/dist/plugins/manager.js +21 -19
  225. package/dist/plugins/schemas.d.ts +9 -9
  226. package/dist/plugins/types.d.ts +2 -2
  227. package/dist/plugins/types.d.ts.map +1 -1
  228. package/dist/process/command-validator.cjs +30 -20
  229. package/dist/process/command-validator.d.ts +4 -1
  230. package/dist/process/command-validator.d.ts.map +1 -1
  231. package/dist/process/command-validator.js +30 -20
  232. package/dist/process/process-service.cjs +23 -21
  233. package/dist/process/process-service.d.ts +3 -1
  234. package/dist/process/process-service.d.ts.map +1 -1
  235. package/dist/process/process-service.js +23 -21
  236. package/dist/prompts/index.cjs +6 -8
  237. package/dist/prompts/index.d.ts +2 -4
  238. package/dist/prompts/index.d.ts.map +1 -1
  239. package/dist/prompts/index.js +4 -6
  240. package/dist/prompts/prompt-manager.cjs +25 -20
  241. package/dist/prompts/prompt-manager.d.ts +3 -1
  242. package/dist/prompts/prompt-manager.d.ts.map +1 -1
  243. package/dist/prompts/prompt-manager.js +25 -20
  244. package/dist/prompts/providers/config-prompt-provider.cjs +331 -0
  245. package/dist/prompts/providers/config-prompt-provider.d.ts +34 -0
  246. package/dist/prompts/providers/config-prompt-provider.d.ts.map +1 -0
  247. package/dist/prompts/providers/config-prompt-provider.js +308 -0
  248. package/dist/prompts/providers/custom-prompt-provider.cjs +11 -7
  249. package/dist/prompts/providers/custom-prompt-provider.d.ts +3 -1
  250. package/dist/prompts/providers/custom-prompt-provider.d.ts.map +1 -1
  251. package/dist/prompts/providers/custom-prompt-provider.js +11 -7
  252. package/dist/prompts/providers/mcp-prompt-provider.cjs +7 -6
  253. package/dist/prompts/providers/mcp-prompt-provider.d.ts +3 -1
  254. package/dist/prompts/providers/mcp-prompt-provider.d.ts.map +1 -1
  255. package/dist/prompts/providers/mcp-prompt-provider.js +7 -6
  256. package/dist/prompts/schemas.cjs +42 -23
  257. package/dist/prompts/schemas.d.ts +123 -14
  258. package/dist/prompts/schemas.d.ts.map +1 -1
  259. package/dist/prompts/schemas.js +39 -22
  260. package/dist/prompts/types.d.ts +1 -1
  261. package/dist/prompts/types.d.ts.map +1 -1
  262. package/dist/resources/handlers/blob-handler.cjs +15 -11
  263. package/dist/resources/handlers/blob-handler.d.ts +3 -1
  264. package/dist/resources/handlers/blob-handler.d.ts.map +1 -1
  265. package/dist/resources/handlers/blob-handler.js +15 -11
  266. package/dist/resources/handlers/factory.cjs +3 -3
  267. package/dist/resources/handlers/factory.d.ts +2 -1
  268. package/dist/resources/handlers/factory.d.ts.map +1 -1
  269. package/dist/resources/handlers/factory.js +3 -3
  270. package/dist/resources/handlers/filesystem-handler.cjs +10 -8
  271. package/dist/resources/handlers/filesystem-handler.d.ts +3 -1
  272. package/dist/resources/handlers/filesystem-handler.d.ts.map +1 -1
  273. package/dist/resources/handlers/filesystem-handler.js +10 -8
  274. package/dist/resources/internal-provider.cjs +28 -20
  275. package/dist/resources/internal-provider.d.ts +3 -1
  276. package/dist/resources/internal-provider.d.ts.map +1 -1
  277. package/dist/resources/internal-provider.js +28 -20
  278. package/dist/resources/manager.cjs +34 -25
  279. package/dist/resources/manager.d.ts +3 -1
  280. package/dist/resources/manager.d.ts.map +1 -1
  281. package/dist/resources/manager.js +34 -25
  282. package/dist/resources/schemas.d.ts +6 -6
  283. package/dist/search/search-service.cjs +8 -6
  284. package/dist/search/search-service.d.ts +3 -1
  285. package/dist/search/search-service.d.ts.map +1 -1
  286. package/dist/search/search-service.js +8 -6
  287. package/dist/session/chat-session.cjs +40 -27
  288. package/dist/session/chat-session.d.ts +10 -7
  289. package/dist/session/chat-session.d.ts.map +1 -1
  290. package/dist/session/chat-session.js +40 -27
  291. package/dist/session/history/database.cjs +18 -11
  292. package/dist/session/history/database.d.ts +3 -1
  293. package/dist/session/history/database.d.ts.map +1 -1
  294. package/dist/session/history/database.js +18 -11
  295. package/dist/session/history/factory.cjs +2 -2
  296. package/dist/session/history/factory.d.ts +5 -1
  297. package/dist/session/history/factory.d.ts.map +1 -1
  298. package/dist/session/history/factory.js +2 -2
  299. package/dist/session/session-manager.cjs +37 -53
  300. package/dist/session/session-manager.d.ts +3 -17
  301. package/dist/session/session-manager.d.ts.map +1 -1
  302. package/dist/session/session-manager.js +37 -53
  303. package/dist/session/title-generator.cjs +3 -2
  304. package/dist/session/title-generator.d.ts +2 -1
  305. package/dist/session/title-generator.d.ts.map +1 -1
  306. package/dist/session/title-generator.js +3 -2
  307. package/dist/storage/blob/factory.cjs +9 -18
  308. package/dist/storage/blob/factory.d.ts +5 -4
  309. package/dist/storage/blob/factory.d.ts.map +1 -1
  310. package/dist/storage/blob/factory.js +8 -17
  311. package/dist/storage/blob/local-blob-store.cjs +25 -32
  312. package/dist/storage/blob/local-blob-store.d.ts +3 -2
  313. package/dist/storage/blob/local-blob-store.d.ts.map +1 -1
  314. package/dist/storage/blob/local-blob-store.js +25 -32
  315. package/dist/storage/blob/memory-blob-store.cjs +326 -0
  316. package/dist/storage/blob/memory-blob-store.d.ts +66 -0
  317. package/dist/storage/blob/memory-blob-store.d.ts.map +1 -0
  318. package/dist/storage/blob/memory-blob-store.js +303 -0
  319. package/dist/storage/blob/schemas.cjs +3 -1
  320. package/dist/storage/blob/schemas.d.ts +6 -6
  321. package/dist/storage/blob/schemas.d.ts.map +1 -1
  322. package/dist/storage/blob/schemas.js +3 -1
  323. package/dist/storage/cache/factory.cjs +7 -8
  324. package/dist/storage/cache/factory.d.ts +4 -1
  325. package/dist/storage/cache/factory.d.ts.map +1 -1
  326. package/dist/storage/cache/factory.js +4 -5
  327. package/dist/storage/cache/redis-store.cjs +4 -1
  328. package/dist/storage/cache/redis-store.d.ts +3 -1
  329. package/dist/storage/cache/redis-store.d.ts.map +1 -1
  330. package/dist/storage/cache/redis-store.js +4 -1
  331. package/dist/storage/database/factory.cjs +13 -16
  332. package/dist/storage/database/factory.d.ts +5 -3
  333. package/dist/storage/database/factory.d.ts.map +1 -1
  334. package/dist/storage/database/factory.js +9 -12
  335. package/dist/storage/database/postgres-store.cjs +4 -1
  336. package/dist/storage/database/postgres-store.d.ts +3 -1
  337. package/dist/storage/database/postgres-store.d.ts.map +1 -1
  338. package/dist/storage/database/postgres-store.js +4 -1
  339. package/dist/storage/database/schemas.cjs +3 -4
  340. package/dist/storage/database/schemas.d.ts +8 -16
  341. package/dist/storage/database/schemas.d.ts.map +1 -1
  342. package/dist/storage/database/schemas.js +3 -4
  343. package/dist/storage/database/sqlite-store.cjs +17 -45
  344. package/dist/storage/database/sqlite-store.d.ts +3 -3
  345. package/dist/storage/database/sqlite-store.d.ts.map +1 -1
  346. package/dist/storage/database/sqlite-store.js +17 -45
  347. package/dist/storage/schemas.cjs +3 -1
  348. package/dist/storage/schemas.d.ts +16 -23
  349. package/dist/storage/schemas.d.ts.map +1 -1
  350. package/dist/storage/schemas.js +3 -1
  351. package/dist/storage/storage-manager.cjs +15 -15
  352. package/dist/storage/storage-manager.d.ts +6 -6
  353. package/dist/storage/storage-manager.d.ts.map +1 -1
  354. package/dist/storage/storage-manager.js +15 -15
  355. package/dist/systemPrompt/contributors.cjs +15 -15
  356. package/dist/systemPrompt/contributors.d.ts +5 -3
  357. package/dist/systemPrompt/contributors.d.ts.map +1 -1
  358. package/dist/systemPrompt/contributors.js +15 -15
  359. package/dist/systemPrompt/in-built-prompts.cjs +0 -5
  360. package/dist/systemPrompt/in-built-prompts.d.ts +1 -2
  361. package/dist/systemPrompt/in-built-prompts.d.ts.map +1 -1
  362. package/dist/systemPrompt/in-built-prompts.js +0 -4
  363. package/dist/systemPrompt/manager.cjs +31 -23
  364. package/dist/systemPrompt/manager.d.ts +5 -3
  365. package/dist/systemPrompt/manager.d.ts.map +1 -1
  366. package/dist/systemPrompt/manager.js +31 -23
  367. package/dist/systemPrompt/registry.cjs +1 -2
  368. package/dist/systemPrompt/registry.d.ts +1 -1
  369. package/dist/systemPrompt/registry.d.ts.map +1 -1
  370. package/dist/systemPrompt/registry.js +1 -2
  371. package/dist/systemPrompt/schemas.cjs +24 -18
  372. package/dist/systemPrompt/schemas.d.ts +46 -222
  373. package/dist/systemPrompt/schemas.d.ts.map +1 -1
  374. package/dist/systemPrompt/schemas.js +14 -18
  375. package/dist/telemetry/decorators.cjs +54 -15
  376. package/dist/telemetry/decorators.d.ts.map +1 -1
  377. package/dist/telemetry/decorators.js +54 -15
  378. package/dist/telemetry/utils.cjs +21 -14
  379. package/dist/telemetry/utils.d.ts +7 -3
  380. package/dist/telemetry/utils.d.ts.map +1 -1
  381. package/dist/telemetry/utils.js +21 -14
  382. package/dist/tools/confirmation/allowed-tools-provider/factory.cjs +2 -2
  383. package/dist/tools/confirmation/allowed-tools-provider/factory.d.ts +2 -1
  384. package/dist/tools/confirmation/allowed-tools-provider/factory.d.ts.map +1 -1
  385. package/dist/tools/confirmation/allowed-tools-provider/factory.js +2 -2
  386. package/dist/tools/confirmation/allowed-tools-provider/storage.cjs +7 -6
  387. package/dist/tools/confirmation/allowed-tools-provider/storage.d.ts +3 -1
  388. package/dist/tools/confirmation/allowed-tools-provider/storage.d.ts.map +1 -1
  389. package/dist/tools/confirmation/allowed-tools-provider/storage.js +7 -6
  390. package/dist/tools/errors.cjs +2 -1
  391. package/dist/tools/errors.d.ts.map +1 -1
  392. package/dist/tools/errors.js +2 -1
  393. package/dist/tools/internal-tools/constants.cjs +2 -1
  394. package/dist/tools/internal-tools/constants.d.ts +1 -1
  395. package/dist/tools/internal-tools/constants.d.ts.map +1 -1
  396. package/dist/tools/internal-tools/constants.js +2 -1
  397. package/dist/tools/internal-tools/implementations/bash-exec-tool.cjs +1 -1
  398. package/dist/tools/internal-tools/implementations/bash-exec-tool.js +1 -1
  399. package/dist/tools/internal-tools/implementations/delegate-to-url-tool.cjs +192 -0
  400. package/dist/tools/internal-tools/implementations/delegate-to-url-tool.d.ts +33 -0
  401. package/dist/tools/internal-tools/implementations/delegate-to-url-tool.d.ts.map +1 -0
  402. package/dist/tools/internal-tools/implementations/delegate-to-url-tool.js +169 -0
  403. package/dist/tools/internal-tools/provider.cjs +21 -17
  404. package/dist/tools/internal-tools/provider.d.ts +3 -1
  405. package/dist/tools/internal-tools/provider.d.ts.map +1 -1
  406. package/dist/tools/internal-tools/provider.js +21 -17
  407. package/dist/tools/internal-tools/registry.cjs +5 -0
  408. package/dist/tools/internal-tools/registry.d.ts.map +1 -1
  409. package/dist/tools/internal-tools/registry.js +5 -0
  410. package/dist/tools/schemas.cjs +16 -4
  411. package/dist/tools/schemas.d.ts +21 -9
  412. package/dist/tools/schemas.d.ts.map +1 -1
  413. package/dist/tools/schemas.js +15 -4
  414. package/dist/tools/tool-manager.cjs +64 -47
  415. package/dist/tools/tool-manager.d.ts +4 -2
  416. package/dist/tools/tool-manager.d.ts.map +1 -1
  417. package/dist/tools/tool-manager.js +61 -44
  418. package/dist/tools/types.d.ts +0 -4
  419. package/dist/tools/types.d.ts.map +1 -1
  420. package/dist/utils/env-file.cjs +118 -0
  421. package/dist/utils/env-file.d.ts +5 -0
  422. package/dist/utils/env-file.d.ts.map +1 -0
  423. package/dist/utils/env-file.js +85 -0
  424. package/dist/utils/error-conversion.cjs +23 -1
  425. package/dist/utils/error-conversion.d.ts +2 -1
  426. package/dist/utils/error-conversion.d.ts.map +1 -1
  427. package/dist/utils/error-conversion.js +23 -1
  428. package/dist/utils/execution-context.d.ts.map +1 -1
  429. package/dist/utils/fs-walk.d.ts.map +1 -1
  430. package/dist/utils/index.cjs +7 -9
  431. package/dist/utils/index.d.ts +3 -4
  432. package/dist/utils/index.d.ts.map +1 -1
  433. package/dist/utils/index.js +3 -4
  434. package/dist/utils/path.cjs +22 -57
  435. package/dist/utils/path.d.ts +8 -7
  436. package/dist/utils/path.d.ts.map +1 -1
  437. package/dist/utils/path.js +21 -54
  438. package/dist/utils/result.cjs +37 -14
  439. package/dist/utils/result.d.ts.map +1 -1
  440. package/dist/utils/result.js +37 -14
  441. package/dist/utils/schema.cjs +2 -3
  442. package/dist/utils/schema.d.ts +2 -1
  443. package/dist/utils/schema.d.ts.map +1 -1
  444. package/dist/utils/schema.js +1 -2
  445. package/dist/utils/service-initializer.cjs +88 -61
  446. package/dist/utils/service-initializer.d.ts +4 -2
  447. package/dist/utils/service-initializer.d.ts.map +1 -1
  448. package/dist/utils/service-initializer.js +70 -43
  449. package/package.json +7 -3
  450. package/dist/Dexto.cjs +0 -251
  451. package/dist/Dexto.d.ts +0 -191
  452. package/dist/Dexto.d.ts.map +0 -1
  453. package/dist/Dexto.js +0 -228
  454. package/dist/agent/registry/error-codes.cjs +0 -44
  455. package/dist/agent/registry/error-codes.d.ts +0 -21
  456. package/dist/agent/registry/error-codes.d.ts.map +0 -1
  457. package/dist/agent/registry/error-codes.js +0 -21
  458. package/dist/agent/registry/errors.cjs +0 -188
  459. package/dist/agent/registry/errors.d.ts +0 -63
  460. package/dist/agent/registry/errors.d.ts.map +0 -1
  461. package/dist/agent/registry/errors.js +0 -165
  462. package/dist/agent/registry/registry.cjs +0 -479
  463. package/dist/agent/registry/registry.d.ts +0 -130
  464. package/dist/agent/registry/registry.d.ts.map +0 -1
  465. package/dist/agent/registry/registry.js +0 -453
  466. package/dist/agent/registry/types.cjs +0 -74
  467. package/dist/agent/registry/types.d.ts +0 -142
  468. package/dist/agent/registry/types.d.ts.map +0 -1
  469. package/dist/agent/registry/types.js +0 -48
  470. package/dist/agent/registry/user-registry.cjs +0 -140
  471. package/dist/agent/registry/user-registry.d.ts +0 -34
  472. package/dist/agent/registry/user-registry.d.ts.map +0 -1
  473. package/dist/agent/registry/user-registry.js +0 -105
  474. package/dist/approval/providers/event-based-approval-provider.cjs +0 -156
  475. package/dist/approval/providers/event-based-approval-provider.d.ts +0 -39
  476. package/dist/approval/providers/event-based-approval-provider.d.ts.map +0 -1
  477. package/dist/approval/providers/event-based-approval-provider.js +0 -133
  478. package/dist/approval/providers/factory.d.ts.map +0 -1
  479. package/dist/approval/providers/noop-approval-provider.cjs +0 -54
  480. package/dist/approval/providers/noop-approval-provider.d.ts +0 -18
  481. package/dist/approval/providers/noop-approval-provider.d.ts.map +0 -1
  482. package/dist/approval/providers/noop-approval-provider.js +0 -31
  483. package/dist/config/agent-resolver.cjs +0 -153
  484. package/dist/config/agent-resolver.d.ts +0 -14
  485. package/dist/config/agent-resolver.d.ts.map +0 -1
  486. package/dist/config/agent-resolver.js +0 -123
  487. package/dist/config/error-codes.cjs +0 -39
  488. package/dist/config/error-codes.d.ts +0 -16
  489. package/dist/config/error-codes.d.ts.map +0 -1
  490. package/dist/config/error-codes.js +0 -16
  491. package/dist/config/errors.cjs +0 -126
  492. package/dist/config/errors.d.ts +0 -34
  493. package/dist/config/errors.d.ts.map +0 -1
  494. package/dist/config/errors.js +0 -103
  495. package/dist/config/index.cjs +0 -26
  496. package/dist/config/index.d.ts +0 -4
  497. package/dist/config/index.d.ts.map +0 -1
  498. package/dist/config/index.js +0 -3
  499. package/dist/config/loader.cjs +0 -119
  500. package/dist/config/loader.d.ts +0 -16
  501. package/dist/config/loader.d.ts.map +0 -1
  502. package/dist/config/loader.js +0 -86
  503. package/dist/config/writer.cjs +0 -182
  504. package/dist/config/writer.d.ts +0 -35
  505. package/dist/config/writer.d.ts.map +0 -1
  506. package/dist/config/writer.js +0 -147
  507. package/dist/preferences/constants.d.ts +0 -2
  508. package/dist/preferences/constants.d.ts.map +0 -1
  509. package/dist/preferences/constants.js +0 -5
  510. package/dist/preferences/error-codes.d.ts +0 -8
  511. package/dist/preferences/error-codes.d.ts.map +0 -1
  512. package/dist/preferences/error-codes.js +0 -12
  513. package/dist/preferences/errors.cjs +0 -75
  514. package/dist/preferences/errors.d.ts +0 -18
  515. package/dist/preferences/errors.d.ts.map +0 -1
  516. package/dist/preferences/errors.js +0 -51
  517. package/dist/preferences/index.cjs +0 -55
  518. package/dist/preferences/index.d.ts +0 -6
  519. package/dist/preferences/index.d.ts.map +0 -1
  520. package/dist/preferences/index.js +0 -32
  521. package/dist/preferences/loader.cjs +0 -138
  522. package/dist/preferences/loader.d.ts +0 -51
  523. package/dist/preferences/loader.d.ts.map +0 -1
  524. package/dist/preferences/loader.js +0 -110
  525. package/dist/preferences/schemas.cjs +0 -75
  526. package/dist/preferences/schemas.d.ts +0 -110
  527. package/dist/preferences/schemas.d.ts.map +0 -1
  528. package/dist/preferences/schemas.js +0 -49
  529. package/dist/prompts/providers/file-prompt-provider.cjs +0 -399
  530. package/dist/prompts/providers/file-prompt-provider.d.ts +0 -47
  531. package/dist/prompts/providers/file-prompt-provider.d.ts.map +0 -1
  532. package/dist/prompts/providers/file-prompt-provider.js +0 -376
  533. package/dist/prompts/providers/starter-prompt-provider.cjs +0 -170
  534. package/dist/prompts/providers/starter-prompt-provider.d.ts +0 -45
  535. package/dist/prompts/providers/starter-prompt-provider.d.ts.map +0 -1
  536. package/dist/prompts/providers/starter-prompt-provider.js +0 -147
  537. package/dist/utils/api-key-store.cjs +0 -56
  538. package/dist/utils/api-key-store.d.ts +0 -24
  539. package/dist/utils/api-key-store.d.ts.map +0 -1
  540. package/dist/utils/api-key-store.js +0 -31
  541. package/dist/utils/env.cjs +0 -154
  542. package/dist/utils/env.d.ts +0 -28
  543. package/dist/utils/env.d.ts.map +0 -1
  544. package/dist/utils/env.js +0 -119
  545. package/dist/utils/port-utils.cjs +0 -37
  546. package/dist/utils/port-utils.d.ts +0 -10
  547. package/dist/utils/port-utils.d.ts.map +0 -1
  548. package/dist/utils/port-utils.js +0 -14
  549. package/dist/utils/port-utils.spec.cjs +0 -26
  550. package/dist/utils/port-utils.spec.js +0 -25
  551. /package/dist/approval/{providers/factory.cjs → factory.cjs} +0 -0
@@ -5,22 +5,295 @@
5
5
  * It never duplicates per-field literal defaults.
6
6
  */
7
7
  import { z } from 'zod';
8
+ export declare const SecuritySchemeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
9
+ type: z.ZodLiteral<"apiKey">;
10
+ name: z.ZodString;
11
+ in: z.ZodEnum<["query", "header", "cookie"]>;
12
+ description: z.ZodOptional<z.ZodString>;
13
+ }, "strict", z.ZodTypeAny, {
14
+ type: "apiKey";
15
+ name: string;
16
+ in: "query" | "header" | "cookie";
17
+ description?: string | undefined;
18
+ }, {
19
+ type: "apiKey";
20
+ name: string;
21
+ in: "query" | "header" | "cookie";
22
+ description?: string | undefined;
23
+ }>, z.ZodObject<{
24
+ type: z.ZodLiteral<"http">;
25
+ scheme: z.ZodString;
26
+ bearerFormat: z.ZodOptional<z.ZodString>;
27
+ description: z.ZodOptional<z.ZodString>;
28
+ }, "strict", z.ZodTypeAny, {
29
+ type: "http";
30
+ scheme: string;
31
+ description?: string | undefined;
32
+ bearerFormat?: string | undefined;
33
+ }, {
34
+ type: "http";
35
+ scheme: string;
36
+ description?: string | undefined;
37
+ bearerFormat?: string | undefined;
38
+ }>, z.ZodObject<{
39
+ type: z.ZodLiteral<"oauth2">;
40
+ flows: z.ZodObject<{
41
+ implicit: z.ZodOptional<z.ZodObject<{
42
+ authorizationUrl: z.ZodOptional<z.ZodString>;
43
+ tokenUrl: z.ZodOptional<z.ZodString>;
44
+ refreshUrl: z.ZodOptional<z.ZodString>;
45
+ scopes: z.ZodRecord<z.ZodString, z.ZodString>;
46
+ }, "strict", z.ZodTypeAny, {
47
+ scopes: Record<string, string>;
48
+ authorizationUrl?: string | undefined;
49
+ tokenUrl?: string | undefined;
50
+ refreshUrl?: string | undefined;
51
+ }, {
52
+ scopes: Record<string, string>;
53
+ authorizationUrl?: string | undefined;
54
+ tokenUrl?: string | undefined;
55
+ refreshUrl?: string | undefined;
56
+ }>>;
57
+ password: z.ZodOptional<z.ZodObject<{
58
+ authorizationUrl: z.ZodOptional<z.ZodString>;
59
+ tokenUrl: z.ZodOptional<z.ZodString>;
60
+ refreshUrl: z.ZodOptional<z.ZodString>;
61
+ scopes: z.ZodRecord<z.ZodString, z.ZodString>;
62
+ }, "strict", z.ZodTypeAny, {
63
+ scopes: Record<string, string>;
64
+ authorizationUrl?: string | undefined;
65
+ tokenUrl?: string | undefined;
66
+ refreshUrl?: string | undefined;
67
+ }, {
68
+ scopes: Record<string, string>;
69
+ authorizationUrl?: string | undefined;
70
+ tokenUrl?: string | undefined;
71
+ refreshUrl?: string | undefined;
72
+ }>>;
73
+ clientCredentials: z.ZodOptional<z.ZodObject<{
74
+ authorizationUrl: z.ZodOptional<z.ZodString>;
75
+ tokenUrl: z.ZodOptional<z.ZodString>;
76
+ refreshUrl: z.ZodOptional<z.ZodString>;
77
+ scopes: z.ZodRecord<z.ZodString, z.ZodString>;
78
+ }, "strict", z.ZodTypeAny, {
79
+ scopes: Record<string, string>;
80
+ authorizationUrl?: string | undefined;
81
+ tokenUrl?: string | undefined;
82
+ refreshUrl?: string | undefined;
83
+ }, {
84
+ scopes: Record<string, string>;
85
+ authorizationUrl?: string | undefined;
86
+ tokenUrl?: string | undefined;
87
+ refreshUrl?: string | undefined;
88
+ }>>;
89
+ authorizationCode: z.ZodOptional<z.ZodObject<{
90
+ authorizationUrl: z.ZodOptional<z.ZodString>;
91
+ tokenUrl: z.ZodOptional<z.ZodString>;
92
+ refreshUrl: z.ZodOptional<z.ZodString>;
93
+ scopes: z.ZodRecord<z.ZodString, z.ZodString>;
94
+ }, "strict", z.ZodTypeAny, {
95
+ scopes: Record<string, string>;
96
+ authorizationUrl?: string | undefined;
97
+ tokenUrl?: string | undefined;
98
+ refreshUrl?: string | undefined;
99
+ }, {
100
+ scopes: Record<string, string>;
101
+ authorizationUrl?: string | undefined;
102
+ tokenUrl?: string | undefined;
103
+ refreshUrl?: string | undefined;
104
+ }>>;
105
+ }, "strict", z.ZodTypeAny, {
106
+ password?: {
107
+ scopes: Record<string, string>;
108
+ authorizationUrl?: string | undefined;
109
+ tokenUrl?: string | undefined;
110
+ refreshUrl?: string | undefined;
111
+ } | undefined;
112
+ implicit?: {
113
+ scopes: Record<string, string>;
114
+ authorizationUrl?: string | undefined;
115
+ tokenUrl?: string | undefined;
116
+ refreshUrl?: string | undefined;
117
+ } | undefined;
118
+ clientCredentials?: {
119
+ scopes: Record<string, string>;
120
+ authorizationUrl?: string | undefined;
121
+ tokenUrl?: string | undefined;
122
+ refreshUrl?: string | undefined;
123
+ } | undefined;
124
+ authorizationCode?: {
125
+ scopes: Record<string, string>;
126
+ authorizationUrl?: string | undefined;
127
+ tokenUrl?: string | undefined;
128
+ refreshUrl?: string | undefined;
129
+ } | undefined;
130
+ }, {
131
+ password?: {
132
+ scopes: Record<string, string>;
133
+ authorizationUrl?: string | undefined;
134
+ tokenUrl?: string | undefined;
135
+ refreshUrl?: string | undefined;
136
+ } | undefined;
137
+ implicit?: {
138
+ scopes: Record<string, string>;
139
+ authorizationUrl?: string | undefined;
140
+ tokenUrl?: string | undefined;
141
+ refreshUrl?: string | undefined;
142
+ } | undefined;
143
+ clientCredentials?: {
144
+ scopes: Record<string, string>;
145
+ authorizationUrl?: string | undefined;
146
+ tokenUrl?: string | undefined;
147
+ refreshUrl?: string | undefined;
148
+ } | undefined;
149
+ authorizationCode?: {
150
+ scopes: Record<string, string>;
151
+ authorizationUrl?: string | undefined;
152
+ tokenUrl?: string | undefined;
153
+ refreshUrl?: string | undefined;
154
+ } | undefined;
155
+ }>;
156
+ description: z.ZodOptional<z.ZodString>;
157
+ }, "strict", z.ZodTypeAny, {
158
+ type: "oauth2";
159
+ flows: {
160
+ password?: {
161
+ scopes: Record<string, string>;
162
+ authorizationUrl?: string | undefined;
163
+ tokenUrl?: string | undefined;
164
+ refreshUrl?: string | undefined;
165
+ } | undefined;
166
+ implicit?: {
167
+ scopes: Record<string, string>;
168
+ authorizationUrl?: string | undefined;
169
+ tokenUrl?: string | undefined;
170
+ refreshUrl?: string | undefined;
171
+ } | undefined;
172
+ clientCredentials?: {
173
+ scopes: Record<string, string>;
174
+ authorizationUrl?: string | undefined;
175
+ tokenUrl?: string | undefined;
176
+ refreshUrl?: string | undefined;
177
+ } | undefined;
178
+ authorizationCode?: {
179
+ scopes: Record<string, string>;
180
+ authorizationUrl?: string | undefined;
181
+ tokenUrl?: string | undefined;
182
+ refreshUrl?: string | undefined;
183
+ } | undefined;
184
+ };
185
+ description?: string | undefined;
186
+ }, {
187
+ type: "oauth2";
188
+ flows: {
189
+ password?: {
190
+ scopes: Record<string, string>;
191
+ authorizationUrl?: string | undefined;
192
+ tokenUrl?: string | undefined;
193
+ refreshUrl?: string | undefined;
194
+ } | undefined;
195
+ implicit?: {
196
+ scopes: Record<string, string>;
197
+ authorizationUrl?: string | undefined;
198
+ tokenUrl?: string | undefined;
199
+ refreshUrl?: string | undefined;
200
+ } | undefined;
201
+ clientCredentials?: {
202
+ scopes: Record<string, string>;
203
+ authorizationUrl?: string | undefined;
204
+ tokenUrl?: string | undefined;
205
+ refreshUrl?: string | undefined;
206
+ } | undefined;
207
+ authorizationCode?: {
208
+ scopes: Record<string, string>;
209
+ authorizationUrl?: string | undefined;
210
+ tokenUrl?: string | undefined;
211
+ refreshUrl?: string | undefined;
212
+ } | undefined;
213
+ };
214
+ description?: string | undefined;
215
+ }>, z.ZodObject<{
216
+ type: z.ZodLiteral<"openIdConnect">;
217
+ openIdConnectUrl: z.ZodString;
218
+ description: z.ZodOptional<z.ZodString>;
219
+ }, "strict", z.ZodTypeAny, {
220
+ type: "openIdConnect";
221
+ openIdConnectUrl: string;
222
+ description?: string | undefined;
223
+ }, {
224
+ type: "openIdConnect";
225
+ openIdConnectUrl: string;
226
+ description?: string | undefined;
227
+ }>, z.ZodObject<{
228
+ type: z.ZodLiteral<"mutualTLS">;
229
+ description: z.ZodOptional<z.ZodString>;
230
+ }, "strict", z.ZodTypeAny, {
231
+ type: "mutualTLS";
232
+ description?: string | undefined;
233
+ }, {
234
+ type: "mutualTLS";
235
+ description?: string | undefined;
236
+ }>]>;
237
+ /**
238
+ * Agent Card Schema (A2A Protocol v0.3.0 Compliant)
239
+ * Follows the A2A specification with extensions in the metadata field
240
+ */
8
241
  export declare const AgentCardSchema: z.ZodObject<{
242
+ protocolVersion: z.ZodDefault<z.ZodString>;
9
243
  name: z.ZodString;
10
- description: z.ZodDefault<z.ZodString>;
244
+ description: z.ZodString;
11
245
  url: z.ZodString;
246
+ version: z.ZodString;
247
+ preferredTransport: z.ZodDefault<z.ZodEnum<["JSONRPC", "GRPC", "HTTP+JSON"]>>;
248
+ defaultInputModes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
249
+ defaultOutputModes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
250
+ skills: z.ZodDefault<z.ZodArray<z.ZodObject<{
251
+ id: z.ZodString;
252
+ name: z.ZodString;
253
+ description: z.ZodString;
254
+ tags: z.ZodArray<z.ZodString, "many">;
255
+ examples: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
256
+ inputModes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
257
+ outputModes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
258
+ }, "strict", z.ZodTypeAny, {
259
+ description: string;
260
+ name: string;
261
+ id: string;
262
+ tags: string[];
263
+ inputModes: string[];
264
+ outputModes: string[];
265
+ examples?: string[] | undefined;
266
+ }, {
267
+ description: string;
268
+ name: string;
269
+ id: string;
270
+ tags: string[];
271
+ examples?: string[] | undefined;
272
+ inputModes?: string[] | undefined;
273
+ outputModes?: string[] | undefined;
274
+ }>, "many">>;
12
275
  provider: z.ZodOptional<z.ZodObject<{
13
276
  organization: z.ZodString;
14
277
  url: z.ZodString;
15
- }, "strip", z.ZodTypeAny, {
278
+ }, "strict", z.ZodTypeAny, {
16
279
  url: string;
17
280
  organization: string;
18
281
  }, {
19
282
  url: string;
20
283
  organization: string;
21
284
  }>>;
22
- version: z.ZodString;
285
+ iconUrl: z.ZodOptional<z.ZodString>;
23
286
  documentationUrl: z.ZodOptional<z.ZodString>;
287
+ additionalInterfaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
288
+ url: z.ZodString;
289
+ transport: z.ZodEnum<["JSONRPC", "GRPC", "HTTP+JSON"]>;
290
+ }, "strict", z.ZodTypeAny, {
291
+ url: string;
292
+ transport: "JSONRPC" | "GRPC" | "HTTP+JSON";
293
+ }, {
294
+ url: string;
295
+ transport: "JSONRPC" | "GRPC" | "HTTP+JSON";
296
+ }>, "many">>;
24
297
  capabilities: z.ZodDefault<z.ZodObject<{
25
298
  streaming: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
26
299
  pushNotifications: z.ZodOptional<z.ZodBoolean>;
@@ -34,235 +307,796 @@ export declare const AgentCardSchema: z.ZodObject<{
34
307
  pushNotifications?: boolean | undefined;
35
308
  stateTransitionHistory?: boolean | undefined;
36
309
  }>>;
37
- authentication: z.ZodDefault<z.ZodObject<{
38
- schemes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
39
- credentials: z.ZodOptional<z.ZodString>;
40
- }, "strict", z.ZodTypeAny, {
41
- schemes: string[];
42
- credentials?: string | undefined;
43
- }, {
44
- schemes?: string[] | undefined;
45
- credentials?: string | undefined;
46
- }>>;
47
- defaultInputModes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
48
- defaultOutputModes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
49
- skills: z.ZodDefault<z.ZodArray<z.ZodObject<{
50
- id: z.ZodString;
310
+ securitySchemes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
311
+ type: z.ZodLiteral<"apiKey">;
51
312
  name: z.ZodString;
52
- description: z.ZodString;
53
- tags: z.ZodArray<z.ZodString, "many">;
54
- examples: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
55
- inputModes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
56
- outputModes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
57
- }, "strip", z.ZodTypeAny, {
313
+ in: z.ZodEnum<["query", "header", "cookie"]>;
314
+ description: z.ZodOptional<z.ZodString>;
315
+ }, "strict", z.ZodTypeAny, {
316
+ type: "apiKey";
58
317
  name: string;
59
- description: string;
60
- id: string;
61
- tags: string[];
62
- inputModes: string[];
63
- outputModes: string[];
64
- examples?: string[] | undefined;
318
+ in: "query" | "header" | "cookie";
319
+ description?: string | undefined;
65
320
  }, {
321
+ type: "apiKey";
66
322
  name: string;
67
- description: string;
68
- id: string;
69
- tags: string[];
70
- examples?: string[] | undefined;
71
- inputModes?: string[] | undefined;
72
- outputModes?: string[] | undefined;
323
+ in: "query" | "header" | "cookie";
324
+ description?: string | undefined;
325
+ }>, z.ZodObject<{
326
+ type: z.ZodLiteral<"http">;
327
+ scheme: z.ZodString;
328
+ bearerFormat: z.ZodOptional<z.ZodString>;
329
+ description: z.ZodOptional<z.ZodString>;
330
+ }, "strict", z.ZodTypeAny, {
331
+ type: "http";
332
+ scheme: string;
333
+ description?: string | undefined;
334
+ bearerFormat?: string | undefined;
335
+ }, {
336
+ type: "http";
337
+ scheme: string;
338
+ description?: string | undefined;
339
+ bearerFormat?: string | undefined;
340
+ }>, z.ZodObject<{
341
+ type: z.ZodLiteral<"oauth2">;
342
+ flows: z.ZodObject<{
343
+ implicit: z.ZodOptional<z.ZodObject<{
344
+ authorizationUrl: z.ZodOptional<z.ZodString>;
345
+ tokenUrl: z.ZodOptional<z.ZodString>;
346
+ refreshUrl: z.ZodOptional<z.ZodString>;
347
+ scopes: z.ZodRecord<z.ZodString, z.ZodString>;
348
+ }, "strict", z.ZodTypeAny, {
349
+ scopes: Record<string, string>;
350
+ authorizationUrl?: string | undefined;
351
+ tokenUrl?: string | undefined;
352
+ refreshUrl?: string | undefined;
353
+ }, {
354
+ scopes: Record<string, string>;
355
+ authorizationUrl?: string | undefined;
356
+ tokenUrl?: string | undefined;
357
+ refreshUrl?: string | undefined;
358
+ }>>;
359
+ password: z.ZodOptional<z.ZodObject<{
360
+ authorizationUrl: z.ZodOptional<z.ZodString>;
361
+ tokenUrl: z.ZodOptional<z.ZodString>;
362
+ refreshUrl: z.ZodOptional<z.ZodString>;
363
+ scopes: z.ZodRecord<z.ZodString, z.ZodString>;
364
+ }, "strict", z.ZodTypeAny, {
365
+ scopes: Record<string, string>;
366
+ authorizationUrl?: string | undefined;
367
+ tokenUrl?: string | undefined;
368
+ refreshUrl?: string | undefined;
369
+ }, {
370
+ scopes: Record<string, string>;
371
+ authorizationUrl?: string | undefined;
372
+ tokenUrl?: string | undefined;
373
+ refreshUrl?: string | undefined;
374
+ }>>;
375
+ clientCredentials: z.ZodOptional<z.ZodObject<{
376
+ authorizationUrl: z.ZodOptional<z.ZodString>;
377
+ tokenUrl: z.ZodOptional<z.ZodString>;
378
+ refreshUrl: z.ZodOptional<z.ZodString>;
379
+ scopes: z.ZodRecord<z.ZodString, z.ZodString>;
380
+ }, "strict", z.ZodTypeAny, {
381
+ scopes: Record<string, string>;
382
+ authorizationUrl?: string | undefined;
383
+ tokenUrl?: string | undefined;
384
+ refreshUrl?: string | undefined;
385
+ }, {
386
+ scopes: Record<string, string>;
387
+ authorizationUrl?: string | undefined;
388
+ tokenUrl?: string | undefined;
389
+ refreshUrl?: string | undefined;
390
+ }>>;
391
+ authorizationCode: z.ZodOptional<z.ZodObject<{
392
+ authorizationUrl: z.ZodOptional<z.ZodString>;
393
+ tokenUrl: z.ZodOptional<z.ZodString>;
394
+ refreshUrl: z.ZodOptional<z.ZodString>;
395
+ scopes: z.ZodRecord<z.ZodString, z.ZodString>;
396
+ }, "strict", z.ZodTypeAny, {
397
+ scopes: Record<string, string>;
398
+ authorizationUrl?: string | undefined;
399
+ tokenUrl?: string | undefined;
400
+ refreshUrl?: string | undefined;
401
+ }, {
402
+ scopes: Record<string, string>;
403
+ authorizationUrl?: string | undefined;
404
+ tokenUrl?: string | undefined;
405
+ refreshUrl?: string | undefined;
406
+ }>>;
407
+ }, "strict", z.ZodTypeAny, {
408
+ password?: {
409
+ scopes: Record<string, string>;
410
+ authorizationUrl?: string | undefined;
411
+ tokenUrl?: string | undefined;
412
+ refreshUrl?: string | undefined;
413
+ } | undefined;
414
+ implicit?: {
415
+ scopes: Record<string, string>;
416
+ authorizationUrl?: string | undefined;
417
+ tokenUrl?: string | undefined;
418
+ refreshUrl?: string | undefined;
419
+ } | undefined;
420
+ clientCredentials?: {
421
+ scopes: Record<string, string>;
422
+ authorizationUrl?: string | undefined;
423
+ tokenUrl?: string | undefined;
424
+ refreshUrl?: string | undefined;
425
+ } | undefined;
426
+ authorizationCode?: {
427
+ scopes: Record<string, string>;
428
+ authorizationUrl?: string | undefined;
429
+ tokenUrl?: string | undefined;
430
+ refreshUrl?: string | undefined;
431
+ } | undefined;
432
+ }, {
433
+ password?: {
434
+ scopes: Record<string, string>;
435
+ authorizationUrl?: string | undefined;
436
+ tokenUrl?: string | undefined;
437
+ refreshUrl?: string | undefined;
438
+ } | undefined;
439
+ implicit?: {
440
+ scopes: Record<string, string>;
441
+ authorizationUrl?: string | undefined;
442
+ tokenUrl?: string | undefined;
443
+ refreshUrl?: string | undefined;
444
+ } | undefined;
445
+ clientCredentials?: {
446
+ scopes: Record<string, string>;
447
+ authorizationUrl?: string | undefined;
448
+ tokenUrl?: string | undefined;
449
+ refreshUrl?: string | undefined;
450
+ } | undefined;
451
+ authorizationCode?: {
452
+ scopes: Record<string, string>;
453
+ authorizationUrl?: string | undefined;
454
+ tokenUrl?: string | undefined;
455
+ refreshUrl?: string | undefined;
456
+ } | undefined;
457
+ }>;
458
+ description: z.ZodOptional<z.ZodString>;
459
+ }, "strict", z.ZodTypeAny, {
460
+ type: "oauth2";
461
+ flows: {
462
+ password?: {
463
+ scopes: Record<string, string>;
464
+ authorizationUrl?: string | undefined;
465
+ tokenUrl?: string | undefined;
466
+ refreshUrl?: string | undefined;
467
+ } | undefined;
468
+ implicit?: {
469
+ scopes: Record<string, string>;
470
+ authorizationUrl?: string | undefined;
471
+ tokenUrl?: string | undefined;
472
+ refreshUrl?: string | undefined;
473
+ } | undefined;
474
+ clientCredentials?: {
475
+ scopes: Record<string, string>;
476
+ authorizationUrl?: string | undefined;
477
+ tokenUrl?: string | undefined;
478
+ refreshUrl?: string | undefined;
479
+ } | undefined;
480
+ authorizationCode?: {
481
+ scopes: Record<string, string>;
482
+ authorizationUrl?: string | undefined;
483
+ tokenUrl?: string | undefined;
484
+ refreshUrl?: string | undefined;
485
+ } | undefined;
486
+ };
487
+ description?: string | undefined;
488
+ }, {
489
+ type: "oauth2";
490
+ flows: {
491
+ password?: {
492
+ scopes: Record<string, string>;
493
+ authorizationUrl?: string | undefined;
494
+ tokenUrl?: string | undefined;
495
+ refreshUrl?: string | undefined;
496
+ } | undefined;
497
+ implicit?: {
498
+ scopes: Record<string, string>;
499
+ authorizationUrl?: string | undefined;
500
+ tokenUrl?: string | undefined;
501
+ refreshUrl?: string | undefined;
502
+ } | undefined;
503
+ clientCredentials?: {
504
+ scopes: Record<string, string>;
505
+ authorizationUrl?: string | undefined;
506
+ tokenUrl?: string | undefined;
507
+ refreshUrl?: string | undefined;
508
+ } | undefined;
509
+ authorizationCode?: {
510
+ scopes: Record<string, string>;
511
+ authorizationUrl?: string | undefined;
512
+ tokenUrl?: string | undefined;
513
+ refreshUrl?: string | undefined;
514
+ } | undefined;
515
+ };
516
+ description?: string | undefined;
517
+ }>, z.ZodObject<{
518
+ type: z.ZodLiteral<"openIdConnect">;
519
+ openIdConnectUrl: z.ZodString;
520
+ description: z.ZodOptional<z.ZodString>;
521
+ }, "strict", z.ZodTypeAny, {
522
+ type: "openIdConnect";
523
+ openIdConnectUrl: string;
524
+ description?: string | undefined;
525
+ }, {
526
+ type: "openIdConnect";
527
+ openIdConnectUrl: string;
528
+ description?: string | undefined;
529
+ }>, z.ZodObject<{
530
+ type: z.ZodLiteral<"mutualTLS">;
531
+ description: z.ZodOptional<z.ZodString>;
532
+ }, "strict", z.ZodTypeAny, {
533
+ type: "mutualTLS";
534
+ description?: string | undefined;
535
+ }, {
536
+ type: "mutualTLS";
537
+ description?: string | undefined;
538
+ }>]>>>;
539
+ security: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>, "many">>;
540
+ supportsAuthenticatedExtendedCard: z.ZodOptional<z.ZodBoolean>;
541
+ signatures: z.ZodOptional<z.ZodArray<z.ZodObject<{
542
+ protected: z.ZodString;
543
+ signature: z.ZodString;
544
+ }, "strict", z.ZodTypeAny, {
545
+ protected: string;
546
+ signature: string;
547
+ }, {
548
+ protected: string;
549
+ signature: string;
73
550
  }>, "many">>;
551
+ metadata: z.ZodOptional<z.ZodObject<{
552
+ dexto: z.ZodOptional<z.ZodObject<{
553
+ authentication: z.ZodOptional<z.ZodObject<{
554
+ schemes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
555
+ credentials: z.ZodOptional<z.ZodString>;
556
+ }, "strict", z.ZodTypeAny, {
557
+ schemes: string[];
558
+ credentials?: string | undefined;
559
+ }, {
560
+ schemes?: string[] | undefined;
561
+ credentials?: string | undefined;
562
+ }>>;
563
+ delegation: z.ZodOptional<z.ZodObject<{
564
+ protocol: z.ZodEnum<["dexto-v1", "http-simple", "a2a-jsonrpc", "mcp-http"]>;
565
+ endpoint: z.ZodString;
566
+ supportsSession: z.ZodBoolean;
567
+ supportsStreaming: z.ZodOptional<z.ZodBoolean>;
568
+ }, "strict", z.ZodTypeAny, {
569
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
570
+ endpoint: string;
571
+ supportsSession: boolean;
572
+ supportsStreaming?: boolean | undefined;
573
+ }, {
574
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
575
+ endpoint: string;
576
+ supportsSession: boolean;
577
+ supportsStreaming?: boolean | undefined;
578
+ }>>;
579
+ owner: z.ZodOptional<z.ZodObject<{
580
+ userId: z.ZodString;
581
+ username: z.ZodString;
582
+ email: z.ZodOptional<z.ZodString>;
583
+ }, "strict", z.ZodTypeAny, {
584
+ userId: string;
585
+ username: string;
586
+ email?: string | undefined;
587
+ }, {
588
+ userId: string;
589
+ username: string;
590
+ email?: string | undefined;
591
+ }>>;
592
+ }, "strict", z.ZodTypeAny, {
593
+ authentication?: {
594
+ schemes: string[];
595
+ credentials?: string | undefined;
596
+ } | undefined;
597
+ delegation?: {
598
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
599
+ endpoint: string;
600
+ supportsSession: boolean;
601
+ supportsStreaming?: boolean | undefined;
602
+ } | undefined;
603
+ owner?: {
604
+ userId: string;
605
+ username: string;
606
+ email?: string | undefined;
607
+ } | undefined;
608
+ }, {
609
+ authentication?: {
610
+ schemes?: string[] | undefined;
611
+ credentials?: string | undefined;
612
+ } | undefined;
613
+ delegation?: {
614
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
615
+ endpoint: string;
616
+ supportsSession: boolean;
617
+ supportsStreaming?: boolean | undefined;
618
+ } | undefined;
619
+ owner?: {
620
+ userId: string;
621
+ username: string;
622
+ email?: string | undefined;
623
+ } | undefined;
624
+ }>>;
625
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
626
+ dexto: z.ZodOptional<z.ZodObject<{
627
+ authentication: z.ZodOptional<z.ZodObject<{
628
+ schemes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
629
+ credentials: z.ZodOptional<z.ZodString>;
630
+ }, "strict", z.ZodTypeAny, {
631
+ schemes: string[];
632
+ credentials?: string | undefined;
633
+ }, {
634
+ schemes?: string[] | undefined;
635
+ credentials?: string | undefined;
636
+ }>>;
637
+ delegation: z.ZodOptional<z.ZodObject<{
638
+ protocol: z.ZodEnum<["dexto-v1", "http-simple", "a2a-jsonrpc", "mcp-http"]>;
639
+ endpoint: z.ZodString;
640
+ supportsSession: z.ZodBoolean;
641
+ supportsStreaming: z.ZodOptional<z.ZodBoolean>;
642
+ }, "strict", z.ZodTypeAny, {
643
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
644
+ endpoint: string;
645
+ supportsSession: boolean;
646
+ supportsStreaming?: boolean | undefined;
647
+ }, {
648
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
649
+ endpoint: string;
650
+ supportsSession: boolean;
651
+ supportsStreaming?: boolean | undefined;
652
+ }>>;
653
+ owner: z.ZodOptional<z.ZodObject<{
654
+ userId: z.ZodString;
655
+ username: z.ZodString;
656
+ email: z.ZodOptional<z.ZodString>;
657
+ }, "strict", z.ZodTypeAny, {
658
+ userId: string;
659
+ username: string;
660
+ email?: string | undefined;
661
+ }, {
662
+ userId: string;
663
+ username: string;
664
+ email?: string | undefined;
665
+ }>>;
666
+ }, "strict", z.ZodTypeAny, {
667
+ authentication?: {
668
+ schemes: string[];
669
+ credentials?: string | undefined;
670
+ } | undefined;
671
+ delegation?: {
672
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
673
+ endpoint: string;
674
+ supportsSession: boolean;
675
+ supportsStreaming?: boolean | undefined;
676
+ } | undefined;
677
+ owner?: {
678
+ userId: string;
679
+ username: string;
680
+ email?: string | undefined;
681
+ } | undefined;
682
+ }, {
683
+ authentication?: {
684
+ schemes?: string[] | undefined;
685
+ credentials?: string | undefined;
686
+ } | undefined;
687
+ delegation?: {
688
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
689
+ endpoint: string;
690
+ supportsSession: boolean;
691
+ supportsStreaming?: boolean | undefined;
692
+ } | undefined;
693
+ owner?: {
694
+ userId: string;
695
+ username: string;
696
+ email?: string | undefined;
697
+ } | undefined;
698
+ }>>;
699
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
700
+ dexto: z.ZodOptional<z.ZodObject<{
701
+ authentication: z.ZodOptional<z.ZodObject<{
702
+ schemes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
703
+ credentials: z.ZodOptional<z.ZodString>;
704
+ }, "strict", z.ZodTypeAny, {
705
+ schemes: string[];
706
+ credentials?: string | undefined;
707
+ }, {
708
+ schemes?: string[] | undefined;
709
+ credentials?: string | undefined;
710
+ }>>;
711
+ delegation: z.ZodOptional<z.ZodObject<{
712
+ protocol: z.ZodEnum<["dexto-v1", "http-simple", "a2a-jsonrpc", "mcp-http"]>;
713
+ endpoint: z.ZodString;
714
+ supportsSession: z.ZodBoolean;
715
+ supportsStreaming: z.ZodOptional<z.ZodBoolean>;
716
+ }, "strict", z.ZodTypeAny, {
717
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
718
+ endpoint: string;
719
+ supportsSession: boolean;
720
+ supportsStreaming?: boolean | undefined;
721
+ }, {
722
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
723
+ endpoint: string;
724
+ supportsSession: boolean;
725
+ supportsStreaming?: boolean | undefined;
726
+ }>>;
727
+ owner: z.ZodOptional<z.ZodObject<{
728
+ userId: z.ZodString;
729
+ username: z.ZodString;
730
+ email: z.ZodOptional<z.ZodString>;
731
+ }, "strict", z.ZodTypeAny, {
732
+ userId: string;
733
+ username: string;
734
+ email?: string | undefined;
735
+ }, {
736
+ userId: string;
737
+ username: string;
738
+ email?: string | undefined;
739
+ }>>;
740
+ }, "strict", z.ZodTypeAny, {
741
+ authentication?: {
742
+ schemes: string[];
743
+ credentials?: string | undefined;
744
+ } | undefined;
745
+ delegation?: {
746
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
747
+ endpoint: string;
748
+ supportsSession: boolean;
749
+ supportsStreaming?: boolean | undefined;
750
+ } | undefined;
751
+ owner?: {
752
+ userId: string;
753
+ username: string;
754
+ email?: string | undefined;
755
+ } | undefined;
756
+ }, {
757
+ authentication?: {
758
+ schemes?: string[] | undefined;
759
+ credentials?: string | undefined;
760
+ } | undefined;
761
+ delegation?: {
762
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
763
+ endpoint: string;
764
+ supportsSession: boolean;
765
+ supportsStreaming?: boolean | undefined;
766
+ } | undefined;
767
+ owner?: {
768
+ userId: string;
769
+ username: string;
770
+ email?: string | undefined;
771
+ } | undefined;
772
+ }>>;
773
+ }, z.ZodTypeAny, "passthrough">>>;
74
774
  }, "strict", z.ZodTypeAny, {
75
- name: string;
76
- url: string;
77
775
  description: string;
776
+ url: string;
777
+ name: string;
78
778
  version: string;
79
779
  capabilities: {
80
780
  streaming: boolean;
81
781
  stateTransitionHistory: boolean;
82
782
  pushNotifications?: boolean | undefined;
83
783
  };
84
- authentication: {
85
- schemes: string[];
86
- credentials?: string | undefined;
87
- };
784
+ protocolVersion: string;
785
+ preferredTransport: "JSONRPC" | "GRPC" | "HTTP+JSON";
88
786
  defaultInputModes: string[];
89
787
  defaultOutputModes: string[];
90
788
  skills: {
91
- name: string;
92
789
  description: string;
790
+ name: string;
93
791
  id: string;
94
792
  tags: string[];
95
793
  inputModes: string[];
96
794
  outputModes: string[];
97
795
  examples?: string[] | undefined;
98
796
  }[];
797
+ metadata?: z.objectOutputType<{
798
+ dexto: z.ZodOptional<z.ZodObject<{
799
+ authentication: z.ZodOptional<z.ZodObject<{
800
+ schemes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
801
+ credentials: z.ZodOptional<z.ZodString>;
802
+ }, "strict", z.ZodTypeAny, {
803
+ schemes: string[];
804
+ credentials?: string | undefined;
805
+ }, {
806
+ schemes?: string[] | undefined;
807
+ credentials?: string | undefined;
808
+ }>>;
809
+ delegation: z.ZodOptional<z.ZodObject<{
810
+ protocol: z.ZodEnum<["dexto-v1", "http-simple", "a2a-jsonrpc", "mcp-http"]>;
811
+ endpoint: z.ZodString;
812
+ supportsSession: z.ZodBoolean;
813
+ supportsStreaming: z.ZodOptional<z.ZodBoolean>;
814
+ }, "strict", z.ZodTypeAny, {
815
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
816
+ endpoint: string;
817
+ supportsSession: boolean;
818
+ supportsStreaming?: boolean | undefined;
819
+ }, {
820
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
821
+ endpoint: string;
822
+ supportsSession: boolean;
823
+ supportsStreaming?: boolean | undefined;
824
+ }>>;
825
+ owner: z.ZodOptional<z.ZodObject<{
826
+ userId: z.ZodString;
827
+ username: z.ZodString;
828
+ email: z.ZodOptional<z.ZodString>;
829
+ }, "strict", z.ZodTypeAny, {
830
+ userId: string;
831
+ username: string;
832
+ email?: string | undefined;
833
+ }, {
834
+ userId: string;
835
+ username: string;
836
+ email?: string | undefined;
837
+ }>>;
838
+ }, "strict", z.ZodTypeAny, {
839
+ authentication?: {
840
+ schemes: string[];
841
+ credentials?: string | undefined;
842
+ } | undefined;
843
+ delegation?: {
844
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
845
+ endpoint: string;
846
+ supportsSession: boolean;
847
+ supportsStreaming?: boolean | undefined;
848
+ } | undefined;
849
+ owner?: {
850
+ userId: string;
851
+ username: string;
852
+ email?: string | undefined;
853
+ } | undefined;
854
+ }, {
855
+ authentication?: {
856
+ schemes?: string[] | undefined;
857
+ credentials?: string | undefined;
858
+ } | undefined;
859
+ delegation?: {
860
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
861
+ endpoint: string;
862
+ supportsSession: boolean;
863
+ supportsStreaming?: boolean | undefined;
864
+ } | undefined;
865
+ owner?: {
866
+ userId: string;
867
+ username: string;
868
+ email?: string | undefined;
869
+ } | undefined;
870
+ }>>;
871
+ }, z.ZodTypeAny, "passthrough"> | undefined;
99
872
  provider?: {
100
873
  url: string;
101
874
  organization: string;
102
875
  } | undefined;
876
+ iconUrl?: string | undefined;
103
877
  documentationUrl?: string | undefined;
104
- }, {
105
- name: string;
106
- url: string;
107
- version: string;
108
- provider?: {
878
+ additionalInterfaces?: {
109
879
  url: string;
110
- organization: string;
111
- } | undefined;
112
- description?: string | undefined;
113
- documentationUrl?: string | undefined;
114
- capabilities?: {
115
- streaming?: boolean | undefined;
116
- pushNotifications?: boolean | undefined;
117
- stateTransitionHistory?: boolean | undefined;
880
+ transport: "JSONRPC" | "GRPC" | "HTTP+JSON";
881
+ }[] | undefined;
882
+ securitySchemes?: Record<string, {
883
+ type: "apiKey";
884
+ name: string;
885
+ in: "query" | "header" | "cookie";
886
+ description?: string | undefined;
887
+ } | {
888
+ type: "http";
889
+ scheme: string;
890
+ description?: string | undefined;
891
+ bearerFormat?: string | undefined;
892
+ } | {
893
+ type: "oauth2";
894
+ flows: {
895
+ password?: {
896
+ scopes: Record<string, string>;
897
+ authorizationUrl?: string | undefined;
898
+ tokenUrl?: string | undefined;
899
+ refreshUrl?: string | undefined;
900
+ } | undefined;
901
+ implicit?: {
902
+ scopes: Record<string, string>;
903
+ authorizationUrl?: string | undefined;
904
+ tokenUrl?: string | undefined;
905
+ refreshUrl?: string | undefined;
906
+ } | undefined;
907
+ clientCredentials?: {
908
+ scopes: Record<string, string>;
909
+ authorizationUrl?: string | undefined;
910
+ tokenUrl?: string | undefined;
911
+ refreshUrl?: string | undefined;
912
+ } | undefined;
913
+ authorizationCode?: {
914
+ scopes: Record<string, string>;
915
+ authorizationUrl?: string | undefined;
916
+ tokenUrl?: string | undefined;
917
+ refreshUrl?: string | undefined;
918
+ } | undefined;
919
+ };
920
+ description?: string | undefined;
921
+ } | {
922
+ type: "openIdConnect";
923
+ openIdConnectUrl: string;
924
+ description?: string | undefined;
925
+ } | {
926
+ type: "mutualTLS";
927
+ description?: string | undefined;
928
+ }> | undefined;
929
+ security?: Record<string, string[]>[] | undefined;
930
+ supportsAuthenticatedExtendedCard?: boolean | undefined;
931
+ signatures?: {
932
+ protected: string;
933
+ signature: string;
934
+ }[] | undefined;
935
+ }, {
936
+ description: string;
937
+ url: string;
938
+ name: string;
939
+ version: string;
940
+ metadata?: z.objectInputType<{
941
+ dexto: z.ZodOptional<z.ZodObject<{
942
+ authentication: z.ZodOptional<z.ZodObject<{
943
+ schemes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
944
+ credentials: z.ZodOptional<z.ZodString>;
945
+ }, "strict", z.ZodTypeAny, {
946
+ schemes: string[];
947
+ credentials?: string | undefined;
948
+ }, {
949
+ schemes?: string[] | undefined;
950
+ credentials?: string | undefined;
951
+ }>>;
952
+ delegation: z.ZodOptional<z.ZodObject<{
953
+ protocol: z.ZodEnum<["dexto-v1", "http-simple", "a2a-jsonrpc", "mcp-http"]>;
954
+ endpoint: z.ZodString;
955
+ supportsSession: z.ZodBoolean;
956
+ supportsStreaming: z.ZodOptional<z.ZodBoolean>;
957
+ }, "strict", z.ZodTypeAny, {
958
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
959
+ endpoint: string;
960
+ supportsSession: boolean;
961
+ supportsStreaming?: boolean | undefined;
962
+ }, {
963
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
964
+ endpoint: string;
965
+ supportsSession: boolean;
966
+ supportsStreaming?: boolean | undefined;
967
+ }>>;
968
+ owner: z.ZodOptional<z.ZodObject<{
969
+ userId: z.ZodString;
970
+ username: z.ZodString;
971
+ email: z.ZodOptional<z.ZodString>;
972
+ }, "strict", z.ZodTypeAny, {
973
+ userId: string;
974
+ username: string;
975
+ email?: string | undefined;
976
+ }, {
977
+ userId: string;
978
+ username: string;
979
+ email?: string | undefined;
980
+ }>>;
981
+ }, "strict", z.ZodTypeAny, {
982
+ authentication?: {
983
+ schemes: string[];
984
+ credentials?: string | undefined;
985
+ } | undefined;
986
+ delegation?: {
987
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
988
+ endpoint: string;
989
+ supportsSession: boolean;
990
+ supportsStreaming?: boolean | undefined;
991
+ } | undefined;
992
+ owner?: {
993
+ userId: string;
994
+ username: string;
995
+ email?: string | undefined;
996
+ } | undefined;
997
+ }, {
998
+ authentication?: {
999
+ schemes?: string[] | undefined;
1000
+ credentials?: string | undefined;
1001
+ } | undefined;
1002
+ delegation?: {
1003
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
1004
+ endpoint: string;
1005
+ supportsSession: boolean;
1006
+ supportsStreaming?: boolean | undefined;
1007
+ } | undefined;
1008
+ owner?: {
1009
+ userId: string;
1010
+ username: string;
1011
+ email?: string | undefined;
1012
+ } | undefined;
1013
+ }>>;
1014
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1015
+ capabilities?: {
1016
+ streaming?: boolean | undefined;
1017
+ pushNotifications?: boolean | undefined;
1018
+ stateTransitionHistory?: boolean | undefined;
118
1019
  } | undefined;
119
- authentication?: {
120
- schemes?: string[] | undefined;
121
- credentials?: string | undefined;
1020
+ provider?: {
1021
+ url: string;
1022
+ organization: string;
122
1023
  } | undefined;
1024
+ protocolVersion?: string | undefined;
1025
+ preferredTransport?: "JSONRPC" | "GRPC" | "HTTP+JSON" | undefined;
123
1026
  defaultInputModes?: string[] | undefined;
124
1027
  defaultOutputModes?: string[] | undefined;
125
1028
  skills?: {
126
- name: string;
127
1029
  description: string;
1030
+ name: string;
128
1031
  id: string;
129
1032
  tags: string[];
130
1033
  examples?: string[] | undefined;
131
1034
  inputModes?: string[] | undefined;
132
1035
  outputModes?: string[] | undefined;
133
1036
  }[] | undefined;
1037
+ iconUrl?: string | undefined;
1038
+ documentationUrl?: string | undefined;
1039
+ additionalInterfaces?: {
1040
+ url: string;
1041
+ transport: "JSONRPC" | "GRPC" | "HTTP+JSON";
1042
+ }[] | undefined;
1043
+ securitySchemes?: Record<string, {
1044
+ type: "apiKey";
1045
+ name: string;
1046
+ in: "query" | "header" | "cookie";
1047
+ description?: string | undefined;
1048
+ } | {
1049
+ type: "http";
1050
+ scheme: string;
1051
+ description?: string | undefined;
1052
+ bearerFormat?: string | undefined;
1053
+ } | {
1054
+ type: "oauth2";
1055
+ flows: {
1056
+ password?: {
1057
+ scopes: Record<string, string>;
1058
+ authorizationUrl?: string | undefined;
1059
+ tokenUrl?: string | undefined;
1060
+ refreshUrl?: string | undefined;
1061
+ } | undefined;
1062
+ implicit?: {
1063
+ scopes: Record<string, string>;
1064
+ authorizationUrl?: string | undefined;
1065
+ tokenUrl?: string | undefined;
1066
+ refreshUrl?: string | undefined;
1067
+ } | undefined;
1068
+ clientCredentials?: {
1069
+ scopes: Record<string, string>;
1070
+ authorizationUrl?: string | undefined;
1071
+ tokenUrl?: string | undefined;
1072
+ refreshUrl?: string | undefined;
1073
+ } | undefined;
1074
+ authorizationCode?: {
1075
+ scopes: Record<string, string>;
1076
+ authorizationUrl?: string | undefined;
1077
+ tokenUrl?: string | undefined;
1078
+ refreshUrl?: string | undefined;
1079
+ } | undefined;
1080
+ };
1081
+ description?: string | undefined;
1082
+ } | {
1083
+ type: "openIdConnect";
1084
+ openIdConnectUrl: string;
1085
+ description?: string | undefined;
1086
+ } | {
1087
+ type: "mutualTLS";
1088
+ description?: string | undefined;
1089
+ }> | undefined;
1090
+ security?: Record<string, string[]>[] | undefined;
1091
+ supportsAuthenticatedExtendedCard?: boolean | undefined;
1092
+ signatures?: {
1093
+ protected: string;
1094
+ signature: string;
1095
+ }[] | undefined;
134
1096
  }>;
135
1097
  export type AgentCard = z.input<typeof AgentCardSchema>;
136
1098
  export type ValidatedAgentCard = z.output<typeof AgentCardSchema>;
137
1099
  export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
138
- agentCard: z.ZodOptional<z.ZodObject<{
139
- name: z.ZodString;
140
- description: z.ZodDefault<z.ZodString>;
141
- url: z.ZodString;
142
- provider: z.ZodOptional<z.ZodObject<{
143
- organization: z.ZodString;
144
- url: z.ZodString;
145
- }, "strip", z.ZodTypeAny, {
146
- url: string;
147
- organization: string;
148
- }, {
149
- url: string;
150
- organization: string;
151
- }>>;
152
- version: z.ZodString;
153
- documentationUrl: z.ZodOptional<z.ZodString>;
154
- capabilities: z.ZodDefault<z.ZodObject<{
155
- streaming: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
156
- pushNotifications: z.ZodOptional<z.ZodBoolean>;
157
- stateTransitionHistory: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
158
- }, "strict", z.ZodTypeAny, {
159
- streaming: boolean;
160
- stateTransitionHistory: boolean;
161
- pushNotifications?: boolean | undefined;
162
- }, {
163
- streaming?: boolean | undefined;
164
- pushNotifications?: boolean | undefined;
165
- stateTransitionHistory?: boolean | undefined;
166
- }>>;
167
- authentication: z.ZodDefault<z.ZodObject<{
168
- schemes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
169
- credentials: z.ZodOptional<z.ZodString>;
170
- }, "strict", z.ZodTypeAny, {
171
- schemes: string[];
172
- credentials?: string | undefined;
173
- }, {
174
- schemes?: string[] | undefined;
175
- credentials?: string | undefined;
176
- }>>;
177
- defaultInputModes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
178
- defaultOutputModes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
179
- skills: z.ZodDefault<z.ZodArray<z.ZodObject<{
180
- id: z.ZodString;
181
- name: z.ZodString;
182
- description: z.ZodString;
183
- tags: z.ZodArray<z.ZodString, "many">;
184
- examples: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
185
- inputModes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
186
- outputModes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
187
- }, "strip", z.ZodTypeAny, {
188
- name: string;
189
- description: string;
190
- id: string;
191
- tags: string[];
192
- inputModes: string[];
193
- outputModes: string[];
194
- examples?: string[] | undefined;
195
- }, {
196
- name: string;
197
- description: string;
198
- id: string;
199
- tags: string[];
200
- examples?: string[] | undefined;
201
- inputModes?: string[] | undefined;
202
- outputModes?: string[] | undefined;
203
- }>, "many">>;
204
- }, "strict", z.ZodTypeAny, {
205
- name: string;
206
- url: string;
207
- description: string;
208
- version: string;
209
- capabilities: {
210
- streaming: boolean;
211
- stateTransitionHistory: boolean;
212
- pushNotifications?: boolean | undefined;
213
- };
214
- authentication: {
215
- schemes: string[];
216
- credentials?: string | undefined;
217
- };
218
- defaultInputModes: string[];
219
- defaultOutputModes: string[];
220
- skills: {
221
- name: string;
222
- description: string;
223
- id: string;
224
- tags: string[];
225
- inputModes: string[];
226
- outputModes: string[];
227
- examples?: string[] | undefined;
228
- }[];
229
- provider?: {
230
- url: string;
231
- organization: string;
232
- } | undefined;
233
- documentationUrl?: string | undefined;
234
- }, {
235
- name: string;
236
- url: string;
237
- version: string;
238
- provider?: {
239
- url: string;
240
- organization: string;
241
- } | undefined;
242
- description?: string | undefined;
243
- documentationUrl?: string | undefined;
244
- capabilities?: {
245
- streaming?: boolean | undefined;
246
- pushNotifications?: boolean | undefined;
247
- stateTransitionHistory?: boolean | undefined;
248
- } | undefined;
249
- authentication?: {
250
- schemes?: string[] | undefined;
251
- credentials?: string | undefined;
252
- } | undefined;
253
- defaultInputModes?: string[] | undefined;
254
- defaultOutputModes?: string[] | undefined;
255
- skills?: {
256
- name: string;
257
- description: string;
258
- id: string;
259
- tags: string[];
260
- examples?: string[] | undefined;
261
- inputModes?: string[] | undefined;
262
- outputModes?: string[] | undefined;
263
- }[] | undefined;
264
- }>>;
265
- greeting: z.ZodOptional<z.ZodString>;
266
1100
  systemPrompt: z.ZodBranded<z.ZodUnion<[z.ZodEffects<z.ZodString, {
267
1101
  contributors: {
268
1102
  id: string;
@@ -281,15 +1115,15 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
281
1115
  content: z.ZodString;
282
1116
  }, "strict", z.ZodTypeAny, {
283
1117
  type: "static";
284
- id: string;
285
- priority: number;
286
1118
  enabled: boolean;
287
1119
  content: string;
1120
+ id: string;
1121
+ priority: number;
288
1122
  }, {
289
1123
  type: "static";
1124
+ content: string;
290
1125
  id: string;
291
1126
  priority: number;
292
- content: string;
293
1127
  enabled?: boolean | undefined;
294
1128
  }>, z.ZodObject<{
295
1129
  id: z.ZodString;
@@ -297,18 +1131,18 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
297
1131
  enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
298
1132
  } & {
299
1133
  type: z.ZodLiteral<"dynamic">;
300
- source: z.ZodEnum<["dateTime", "memorySummary", "resources"]>;
1134
+ source: z.ZodEnum<["dateTime", "resources"]>;
301
1135
  }, "strict", z.ZodTypeAny, {
302
1136
  type: "dynamic";
1137
+ enabled: boolean;
303
1138
  id: string;
1139
+ source: "resources" | "dateTime";
304
1140
  priority: number;
305
- enabled: boolean;
306
- source: "dateTime" | "memorySummary" | "resources";
307
1141
  }, {
308
1142
  type: "dynamic";
309
1143
  id: string;
1144
+ source: "resources" | "dateTime";
310
1145
  priority: number;
311
- source: "dateTime" | "memorySummary" | "resources";
312
1146
  enabled?: boolean | undefined;
313
1147
  }>, z.ZodObject<{
314
1148
  id: z.ZodString;
@@ -316,7 +1150,7 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
316
1150
  enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
317
1151
  } & {
318
1152
  type: z.ZodLiteral<"file">;
319
- files: z.ZodArray<z.ZodString, "many">;
1153
+ files: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
320
1154
  options: z.ZodDefault<z.ZodOptional<z.ZodObject<{
321
1155
  includeFilenames: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
322
1156
  separator: z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -337,6 +1171,7 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
337
1171
  includeMetadata?: boolean | undefined;
338
1172
  }>>>;
339
1173
  }, "strict", z.ZodTypeAny, {
1174
+ type: "file";
340
1175
  options: {
341
1176
  includeFilenames: boolean;
342
1177
  separator: string;
@@ -344,10 +1179,9 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
344
1179
  maxFileSize: number;
345
1180
  includeMetadata: boolean;
346
1181
  };
347
- type: "file";
1182
+ enabled: boolean;
348
1183
  id: string;
349
1184
  priority: number;
350
- enabled: boolean;
351
1185
  files: string[];
352
1186
  }, {
353
1187
  type: "file";
@@ -362,65 +1196,22 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
362
1196
  includeMetadata?: boolean | undefined;
363
1197
  } | undefined;
364
1198
  enabled?: boolean | undefined;
365
- }>, z.ZodObject<{
366
- id: z.ZodString;
367
- priority: z.ZodNumber;
368
- enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
369
- } & {
370
- type: z.ZodLiteral<"memory">;
371
- options: z.ZodDefault<z.ZodOptional<z.ZodObject<{
372
- includeTimestamps: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
373
- includeTags: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
374
- limit: z.ZodOptional<z.ZodNumber>;
375
- pinnedOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
376
- }, "strict", z.ZodTypeAny, {
377
- includeTimestamps: boolean;
378
- includeTags: boolean;
379
- pinnedOnly: boolean;
380
- limit?: number | undefined;
381
- }, {
382
- includeTimestamps?: boolean | undefined;
383
- includeTags?: boolean | undefined;
384
- limit?: number | undefined;
385
- pinnedOnly?: boolean | undefined;
386
- }>>>;
387
- }, "strict", z.ZodTypeAny, {
388
- options: {
389
- includeTimestamps: boolean;
390
- includeTags: boolean;
391
- pinnedOnly: boolean;
392
- limit?: number | undefined;
393
- };
394
- type: "memory";
395
- id: string;
396
- priority: number;
397
- enabled: boolean;
398
- }, {
399
- type: "memory";
400
- id: string;
401
- priority: number;
402
- options?: {
403
- includeTimestamps?: boolean | undefined;
404
- includeTags?: boolean | undefined;
405
- limit?: number | undefined;
406
- pinnedOnly?: boolean | undefined;
407
- } | undefined;
408
- enabled?: boolean | undefined;
409
1199
  }>]>, "many">>;
410
1200
  }, "strict", z.ZodTypeAny, {
411
1201
  contributors: ({
412
1202
  type: "static";
413
- id: string;
414
- priority: number;
415
1203
  enabled: boolean;
416
1204
  content: string;
1205
+ id: string;
1206
+ priority: number;
417
1207
  } | {
418
1208
  type: "dynamic";
1209
+ enabled: boolean;
419
1210
  id: string;
1211
+ source: "resources" | "dateTime";
420
1212
  priority: number;
421
- enabled: boolean;
422
- source: "dateTime" | "memorySummary" | "resources";
423
1213
  } | {
1214
+ type: "file";
424
1215
  options: {
425
1216
  includeFilenames: boolean;
426
1217
  separator: string;
@@ -428,62 +1219,1026 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
428
1219
  maxFileSize: number;
429
1220
  includeMetadata: boolean;
430
1221
  };
431
- type: "file";
432
- id: string;
433
- priority: number;
434
1222
  enabled: boolean;
435
- files: string[];
436
- } | {
437
- options: {
438
- includeTimestamps: boolean;
439
- includeTags: boolean;
440
- pinnedOnly: boolean;
441
- limit?: number | undefined;
442
- };
443
- type: "memory";
444
1223
  id: string;
445
1224
  priority: number;
446
- enabled: boolean;
1225
+ files: string[];
447
1226
  })[];
448
1227
  }, {
449
1228
  contributors?: ({
450
1229
  type: "static";
1230
+ content: string;
451
1231
  id: string;
452
1232
  priority: number;
453
- content: string;
454
1233
  enabled?: boolean | undefined;
455
1234
  } | {
456
1235
  type: "dynamic";
457
1236
  id: string;
1237
+ source: "resources" | "dateTime";
1238
+ priority: number;
1239
+ enabled?: boolean | undefined;
1240
+ } | {
1241
+ type: "file";
1242
+ id: string;
458
1243
  priority: number;
459
- source: "dateTime" | "memorySummary" | "resources";
1244
+ files: string[];
1245
+ options?: {
1246
+ includeFilenames?: boolean | undefined;
1247
+ separator?: string | undefined;
1248
+ errorHandling?: "error" | "skip" | undefined;
1249
+ maxFileSize?: number | undefined;
1250
+ includeMetadata?: boolean | undefined;
1251
+ } | undefined;
460
1252
  enabled?: boolean | undefined;
1253
+ })[] | undefined;
1254
+ }>]>, "ValidatedSystemPromptConfig">;
1255
+ llm: z.ZodBranded<z.ZodEffects<z.ZodObject<{
1256
+ provider: z.ZodEnum<["openai", "openai-compatible", "anthropic", "google", "groq", "xai", "cohere"]>;
1257
+ model: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
1258
+ apiKey: z.ZodEffects<z.ZodString, string, string>;
1259
+ maxIterations: z.ZodDefault<z.ZodNumber>;
1260
+ router: z.ZodDefault<z.ZodEnum<["vercel", "in-built"]>>;
1261
+ baseURL: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string | undefined, string>>;
1262
+ maxInputTokens: z.ZodOptional<z.ZodNumber>;
1263
+ maxOutputTokens: z.ZodOptional<z.ZodNumber>;
1264
+ temperature: z.ZodOptional<z.ZodNumber>;
1265
+ allowedMediaTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1266
+ }, "strict", z.ZodTypeAny, {
1267
+ apiKey: string;
1268
+ model: string;
1269
+ provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
1270
+ router: "vercel" | "in-built";
1271
+ maxIterations: number;
1272
+ baseURL?: string | undefined;
1273
+ maxInputTokens?: number | undefined;
1274
+ maxOutputTokens?: number | undefined;
1275
+ temperature?: number | undefined;
1276
+ allowedMediaTypes?: string[] | undefined;
1277
+ }, {
1278
+ apiKey: string;
1279
+ model: string;
1280
+ provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
1281
+ router?: "vercel" | "in-built" | undefined;
1282
+ maxIterations?: number | undefined;
1283
+ baseURL?: string | undefined;
1284
+ maxInputTokens?: number | undefined;
1285
+ maxOutputTokens?: number | undefined;
1286
+ temperature?: number | undefined;
1287
+ allowedMediaTypes?: string[] | undefined;
1288
+ }>, {
1289
+ apiKey: string;
1290
+ model: string;
1291
+ provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
1292
+ router: "vercel" | "in-built";
1293
+ maxIterations: number;
1294
+ baseURL?: string | undefined;
1295
+ maxInputTokens?: number | undefined;
1296
+ maxOutputTokens?: number | undefined;
1297
+ temperature?: number | undefined;
1298
+ allowedMediaTypes?: string[] | undefined;
1299
+ }, {
1300
+ apiKey: string;
1301
+ model: string;
1302
+ provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
1303
+ router?: "vercel" | "in-built" | undefined;
1304
+ maxIterations?: number | undefined;
1305
+ baseURL?: string | undefined;
1306
+ maxInputTokens?: number | undefined;
1307
+ maxOutputTokens?: number | undefined;
1308
+ temperature?: number | undefined;
1309
+ allowedMediaTypes?: string[] | undefined;
1310
+ }>, "ValidatedLLMConfig">;
1311
+ agentCard: z.ZodOptional<z.ZodObject<{
1312
+ protocolVersion: z.ZodDefault<z.ZodString>;
1313
+ name: z.ZodString;
1314
+ description: z.ZodString;
1315
+ url: z.ZodString;
1316
+ version: z.ZodString;
1317
+ preferredTransport: z.ZodDefault<z.ZodEnum<["JSONRPC", "GRPC", "HTTP+JSON"]>>;
1318
+ defaultInputModes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1319
+ defaultOutputModes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1320
+ skills: z.ZodDefault<z.ZodArray<z.ZodObject<{
1321
+ id: z.ZodString;
1322
+ name: z.ZodString;
1323
+ description: z.ZodString;
1324
+ tags: z.ZodArray<z.ZodString, "many">;
1325
+ examples: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1326
+ inputModes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1327
+ outputModes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1328
+ }, "strict", z.ZodTypeAny, {
1329
+ description: string;
1330
+ name: string;
1331
+ id: string;
1332
+ tags: string[];
1333
+ inputModes: string[];
1334
+ outputModes: string[];
1335
+ examples?: string[] | undefined;
1336
+ }, {
1337
+ description: string;
1338
+ name: string;
1339
+ id: string;
1340
+ tags: string[];
1341
+ examples?: string[] | undefined;
1342
+ inputModes?: string[] | undefined;
1343
+ outputModes?: string[] | undefined;
1344
+ }>, "many">>;
1345
+ provider: z.ZodOptional<z.ZodObject<{
1346
+ organization: z.ZodString;
1347
+ url: z.ZodString;
1348
+ }, "strict", z.ZodTypeAny, {
1349
+ url: string;
1350
+ organization: string;
1351
+ }, {
1352
+ url: string;
1353
+ organization: string;
1354
+ }>>;
1355
+ iconUrl: z.ZodOptional<z.ZodString>;
1356
+ documentationUrl: z.ZodOptional<z.ZodString>;
1357
+ additionalInterfaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
1358
+ url: z.ZodString;
1359
+ transport: z.ZodEnum<["JSONRPC", "GRPC", "HTTP+JSON"]>;
1360
+ }, "strict", z.ZodTypeAny, {
1361
+ url: string;
1362
+ transport: "JSONRPC" | "GRPC" | "HTTP+JSON";
1363
+ }, {
1364
+ url: string;
1365
+ transport: "JSONRPC" | "GRPC" | "HTTP+JSON";
1366
+ }>, "many">>;
1367
+ capabilities: z.ZodDefault<z.ZodObject<{
1368
+ streaming: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1369
+ pushNotifications: z.ZodOptional<z.ZodBoolean>;
1370
+ stateTransitionHistory: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1371
+ }, "strict", z.ZodTypeAny, {
1372
+ streaming: boolean;
1373
+ stateTransitionHistory: boolean;
1374
+ pushNotifications?: boolean | undefined;
1375
+ }, {
1376
+ streaming?: boolean | undefined;
1377
+ pushNotifications?: boolean | undefined;
1378
+ stateTransitionHistory?: boolean | undefined;
1379
+ }>>;
1380
+ securitySchemes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1381
+ type: z.ZodLiteral<"apiKey">;
1382
+ name: z.ZodString;
1383
+ in: z.ZodEnum<["query", "header", "cookie"]>;
1384
+ description: z.ZodOptional<z.ZodString>;
1385
+ }, "strict", z.ZodTypeAny, {
1386
+ type: "apiKey";
1387
+ name: string;
1388
+ in: "query" | "header" | "cookie";
1389
+ description?: string | undefined;
1390
+ }, {
1391
+ type: "apiKey";
1392
+ name: string;
1393
+ in: "query" | "header" | "cookie";
1394
+ description?: string | undefined;
1395
+ }>, z.ZodObject<{
1396
+ type: z.ZodLiteral<"http">;
1397
+ scheme: z.ZodString;
1398
+ bearerFormat: z.ZodOptional<z.ZodString>;
1399
+ description: z.ZodOptional<z.ZodString>;
1400
+ }, "strict", z.ZodTypeAny, {
1401
+ type: "http";
1402
+ scheme: string;
1403
+ description?: string | undefined;
1404
+ bearerFormat?: string | undefined;
1405
+ }, {
1406
+ type: "http";
1407
+ scheme: string;
1408
+ description?: string | undefined;
1409
+ bearerFormat?: string | undefined;
1410
+ }>, z.ZodObject<{
1411
+ type: z.ZodLiteral<"oauth2">;
1412
+ flows: z.ZodObject<{
1413
+ implicit: z.ZodOptional<z.ZodObject<{
1414
+ authorizationUrl: z.ZodOptional<z.ZodString>;
1415
+ tokenUrl: z.ZodOptional<z.ZodString>;
1416
+ refreshUrl: z.ZodOptional<z.ZodString>;
1417
+ scopes: z.ZodRecord<z.ZodString, z.ZodString>;
1418
+ }, "strict", z.ZodTypeAny, {
1419
+ scopes: Record<string, string>;
1420
+ authorizationUrl?: string | undefined;
1421
+ tokenUrl?: string | undefined;
1422
+ refreshUrl?: string | undefined;
1423
+ }, {
1424
+ scopes: Record<string, string>;
1425
+ authorizationUrl?: string | undefined;
1426
+ tokenUrl?: string | undefined;
1427
+ refreshUrl?: string | undefined;
1428
+ }>>;
1429
+ password: z.ZodOptional<z.ZodObject<{
1430
+ authorizationUrl: z.ZodOptional<z.ZodString>;
1431
+ tokenUrl: z.ZodOptional<z.ZodString>;
1432
+ refreshUrl: z.ZodOptional<z.ZodString>;
1433
+ scopes: z.ZodRecord<z.ZodString, z.ZodString>;
1434
+ }, "strict", z.ZodTypeAny, {
1435
+ scopes: Record<string, string>;
1436
+ authorizationUrl?: string | undefined;
1437
+ tokenUrl?: string | undefined;
1438
+ refreshUrl?: string | undefined;
1439
+ }, {
1440
+ scopes: Record<string, string>;
1441
+ authorizationUrl?: string | undefined;
1442
+ tokenUrl?: string | undefined;
1443
+ refreshUrl?: string | undefined;
1444
+ }>>;
1445
+ clientCredentials: z.ZodOptional<z.ZodObject<{
1446
+ authorizationUrl: z.ZodOptional<z.ZodString>;
1447
+ tokenUrl: z.ZodOptional<z.ZodString>;
1448
+ refreshUrl: z.ZodOptional<z.ZodString>;
1449
+ scopes: z.ZodRecord<z.ZodString, z.ZodString>;
1450
+ }, "strict", z.ZodTypeAny, {
1451
+ scopes: Record<string, string>;
1452
+ authorizationUrl?: string | undefined;
1453
+ tokenUrl?: string | undefined;
1454
+ refreshUrl?: string | undefined;
1455
+ }, {
1456
+ scopes: Record<string, string>;
1457
+ authorizationUrl?: string | undefined;
1458
+ tokenUrl?: string | undefined;
1459
+ refreshUrl?: string | undefined;
1460
+ }>>;
1461
+ authorizationCode: z.ZodOptional<z.ZodObject<{
1462
+ authorizationUrl: z.ZodOptional<z.ZodString>;
1463
+ tokenUrl: z.ZodOptional<z.ZodString>;
1464
+ refreshUrl: z.ZodOptional<z.ZodString>;
1465
+ scopes: z.ZodRecord<z.ZodString, z.ZodString>;
1466
+ }, "strict", z.ZodTypeAny, {
1467
+ scopes: Record<string, string>;
1468
+ authorizationUrl?: string | undefined;
1469
+ tokenUrl?: string | undefined;
1470
+ refreshUrl?: string | undefined;
1471
+ }, {
1472
+ scopes: Record<string, string>;
1473
+ authorizationUrl?: string | undefined;
1474
+ tokenUrl?: string | undefined;
1475
+ refreshUrl?: string | undefined;
1476
+ }>>;
1477
+ }, "strict", z.ZodTypeAny, {
1478
+ password?: {
1479
+ scopes: Record<string, string>;
1480
+ authorizationUrl?: string | undefined;
1481
+ tokenUrl?: string | undefined;
1482
+ refreshUrl?: string | undefined;
1483
+ } | undefined;
1484
+ implicit?: {
1485
+ scopes: Record<string, string>;
1486
+ authorizationUrl?: string | undefined;
1487
+ tokenUrl?: string | undefined;
1488
+ refreshUrl?: string | undefined;
1489
+ } | undefined;
1490
+ clientCredentials?: {
1491
+ scopes: Record<string, string>;
1492
+ authorizationUrl?: string | undefined;
1493
+ tokenUrl?: string | undefined;
1494
+ refreshUrl?: string | undefined;
1495
+ } | undefined;
1496
+ authorizationCode?: {
1497
+ scopes: Record<string, string>;
1498
+ authorizationUrl?: string | undefined;
1499
+ tokenUrl?: string | undefined;
1500
+ refreshUrl?: string | undefined;
1501
+ } | undefined;
1502
+ }, {
1503
+ password?: {
1504
+ scopes: Record<string, string>;
1505
+ authorizationUrl?: string | undefined;
1506
+ tokenUrl?: string | undefined;
1507
+ refreshUrl?: string | undefined;
1508
+ } | undefined;
1509
+ implicit?: {
1510
+ scopes: Record<string, string>;
1511
+ authorizationUrl?: string | undefined;
1512
+ tokenUrl?: string | undefined;
1513
+ refreshUrl?: string | undefined;
1514
+ } | undefined;
1515
+ clientCredentials?: {
1516
+ scopes: Record<string, string>;
1517
+ authorizationUrl?: string | undefined;
1518
+ tokenUrl?: string | undefined;
1519
+ refreshUrl?: string | undefined;
1520
+ } | undefined;
1521
+ authorizationCode?: {
1522
+ scopes: Record<string, string>;
1523
+ authorizationUrl?: string | undefined;
1524
+ tokenUrl?: string | undefined;
1525
+ refreshUrl?: string | undefined;
1526
+ } | undefined;
1527
+ }>;
1528
+ description: z.ZodOptional<z.ZodString>;
1529
+ }, "strict", z.ZodTypeAny, {
1530
+ type: "oauth2";
1531
+ flows: {
1532
+ password?: {
1533
+ scopes: Record<string, string>;
1534
+ authorizationUrl?: string | undefined;
1535
+ tokenUrl?: string | undefined;
1536
+ refreshUrl?: string | undefined;
1537
+ } | undefined;
1538
+ implicit?: {
1539
+ scopes: Record<string, string>;
1540
+ authorizationUrl?: string | undefined;
1541
+ tokenUrl?: string | undefined;
1542
+ refreshUrl?: string | undefined;
1543
+ } | undefined;
1544
+ clientCredentials?: {
1545
+ scopes: Record<string, string>;
1546
+ authorizationUrl?: string | undefined;
1547
+ tokenUrl?: string | undefined;
1548
+ refreshUrl?: string | undefined;
1549
+ } | undefined;
1550
+ authorizationCode?: {
1551
+ scopes: Record<string, string>;
1552
+ authorizationUrl?: string | undefined;
1553
+ tokenUrl?: string | undefined;
1554
+ refreshUrl?: string | undefined;
1555
+ } | undefined;
1556
+ };
1557
+ description?: string | undefined;
1558
+ }, {
1559
+ type: "oauth2";
1560
+ flows: {
1561
+ password?: {
1562
+ scopes: Record<string, string>;
1563
+ authorizationUrl?: string | undefined;
1564
+ tokenUrl?: string | undefined;
1565
+ refreshUrl?: string | undefined;
1566
+ } | undefined;
1567
+ implicit?: {
1568
+ scopes: Record<string, string>;
1569
+ authorizationUrl?: string | undefined;
1570
+ tokenUrl?: string | undefined;
1571
+ refreshUrl?: string | undefined;
1572
+ } | undefined;
1573
+ clientCredentials?: {
1574
+ scopes: Record<string, string>;
1575
+ authorizationUrl?: string | undefined;
1576
+ tokenUrl?: string | undefined;
1577
+ refreshUrl?: string | undefined;
1578
+ } | undefined;
1579
+ authorizationCode?: {
1580
+ scopes: Record<string, string>;
1581
+ authorizationUrl?: string | undefined;
1582
+ tokenUrl?: string | undefined;
1583
+ refreshUrl?: string | undefined;
1584
+ } | undefined;
1585
+ };
1586
+ description?: string | undefined;
1587
+ }>, z.ZodObject<{
1588
+ type: z.ZodLiteral<"openIdConnect">;
1589
+ openIdConnectUrl: z.ZodString;
1590
+ description: z.ZodOptional<z.ZodString>;
1591
+ }, "strict", z.ZodTypeAny, {
1592
+ type: "openIdConnect";
1593
+ openIdConnectUrl: string;
1594
+ description?: string | undefined;
1595
+ }, {
1596
+ type: "openIdConnect";
1597
+ openIdConnectUrl: string;
1598
+ description?: string | undefined;
1599
+ }>, z.ZodObject<{
1600
+ type: z.ZodLiteral<"mutualTLS">;
1601
+ description: z.ZodOptional<z.ZodString>;
1602
+ }, "strict", z.ZodTypeAny, {
1603
+ type: "mutualTLS";
1604
+ description?: string | undefined;
1605
+ }, {
1606
+ type: "mutualTLS";
1607
+ description?: string | undefined;
1608
+ }>]>>>;
1609
+ security: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>, "many">>;
1610
+ supportsAuthenticatedExtendedCard: z.ZodOptional<z.ZodBoolean>;
1611
+ signatures: z.ZodOptional<z.ZodArray<z.ZodObject<{
1612
+ protected: z.ZodString;
1613
+ signature: z.ZodString;
1614
+ }, "strict", z.ZodTypeAny, {
1615
+ protected: string;
1616
+ signature: string;
1617
+ }, {
1618
+ protected: string;
1619
+ signature: string;
1620
+ }>, "many">>;
1621
+ metadata: z.ZodOptional<z.ZodObject<{
1622
+ dexto: z.ZodOptional<z.ZodObject<{
1623
+ authentication: z.ZodOptional<z.ZodObject<{
1624
+ schemes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1625
+ credentials: z.ZodOptional<z.ZodString>;
1626
+ }, "strict", z.ZodTypeAny, {
1627
+ schemes: string[];
1628
+ credentials?: string | undefined;
1629
+ }, {
1630
+ schemes?: string[] | undefined;
1631
+ credentials?: string | undefined;
1632
+ }>>;
1633
+ delegation: z.ZodOptional<z.ZodObject<{
1634
+ protocol: z.ZodEnum<["dexto-v1", "http-simple", "a2a-jsonrpc", "mcp-http"]>;
1635
+ endpoint: z.ZodString;
1636
+ supportsSession: z.ZodBoolean;
1637
+ supportsStreaming: z.ZodOptional<z.ZodBoolean>;
1638
+ }, "strict", z.ZodTypeAny, {
1639
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
1640
+ endpoint: string;
1641
+ supportsSession: boolean;
1642
+ supportsStreaming?: boolean | undefined;
1643
+ }, {
1644
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
1645
+ endpoint: string;
1646
+ supportsSession: boolean;
1647
+ supportsStreaming?: boolean | undefined;
1648
+ }>>;
1649
+ owner: z.ZodOptional<z.ZodObject<{
1650
+ userId: z.ZodString;
1651
+ username: z.ZodString;
1652
+ email: z.ZodOptional<z.ZodString>;
1653
+ }, "strict", z.ZodTypeAny, {
1654
+ userId: string;
1655
+ username: string;
1656
+ email?: string | undefined;
1657
+ }, {
1658
+ userId: string;
1659
+ username: string;
1660
+ email?: string | undefined;
1661
+ }>>;
1662
+ }, "strict", z.ZodTypeAny, {
1663
+ authentication?: {
1664
+ schemes: string[];
1665
+ credentials?: string | undefined;
1666
+ } | undefined;
1667
+ delegation?: {
1668
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
1669
+ endpoint: string;
1670
+ supportsSession: boolean;
1671
+ supportsStreaming?: boolean | undefined;
1672
+ } | undefined;
1673
+ owner?: {
1674
+ userId: string;
1675
+ username: string;
1676
+ email?: string | undefined;
1677
+ } | undefined;
1678
+ }, {
1679
+ authentication?: {
1680
+ schemes?: string[] | undefined;
1681
+ credentials?: string | undefined;
1682
+ } | undefined;
1683
+ delegation?: {
1684
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
1685
+ endpoint: string;
1686
+ supportsSession: boolean;
1687
+ supportsStreaming?: boolean | undefined;
1688
+ } | undefined;
1689
+ owner?: {
1690
+ userId: string;
1691
+ username: string;
1692
+ email?: string | undefined;
1693
+ } | undefined;
1694
+ }>>;
1695
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1696
+ dexto: z.ZodOptional<z.ZodObject<{
1697
+ authentication: z.ZodOptional<z.ZodObject<{
1698
+ schemes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1699
+ credentials: z.ZodOptional<z.ZodString>;
1700
+ }, "strict", z.ZodTypeAny, {
1701
+ schemes: string[];
1702
+ credentials?: string | undefined;
1703
+ }, {
1704
+ schemes?: string[] | undefined;
1705
+ credentials?: string | undefined;
1706
+ }>>;
1707
+ delegation: z.ZodOptional<z.ZodObject<{
1708
+ protocol: z.ZodEnum<["dexto-v1", "http-simple", "a2a-jsonrpc", "mcp-http"]>;
1709
+ endpoint: z.ZodString;
1710
+ supportsSession: z.ZodBoolean;
1711
+ supportsStreaming: z.ZodOptional<z.ZodBoolean>;
1712
+ }, "strict", z.ZodTypeAny, {
1713
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
1714
+ endpoint: string;
1715
+ supportsSession: boolean;
1716
+ supportsStreaming?: boolean | undefined;
1717
+ }, {
1718
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
1719
+ endpoint: string;
1720
+ supportsSession: boolean;
1721
+ supportsStreaming?: boolean | undefined;
1722
+ }>>;
1723
+ owner: z.ZodOptional<z.ZodObject<{
1724
+ userId: z.ZodString;
1725
+ username: z.ZodString;
1726
+ email: z.ZodOptional<z.ZodString>;
1727
+ }, "strict", z.ZodTypeAny, {
1728
+ userId: string;
1729
+ username: string;
1730
+ email?: string | undefined;
1731
+ }, {
1732
+ userId: string;
1733
+ username: string;
1734
+ email?: string | undefined;
1735
+ }>>;
1736
+ }, "strict", z.ZodTypeAny, {
1737
+ authentication?: {
1738
+ schemes: string[];
1739
+ credentials?: string | undefined;
1740
+ } | undefined;
1741
+ delegation?: {
1742
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
1743
+ endpoint: string;
1744
+ supportsSession: boolean;
1745
+ supportsStreaming?: boolean | undefined;
1746
+ } | undefined;
1747
+ owner?: {
1748
+ userId: string;
1749
+ username: string;
1750
+ email?: string | undefined;
1751
+ } | undefined;
1752
+ }, {
1753
+ authentication?: {
1754
+ schemes?: string[] | undefined;
1755
+ credentials?: string | undefined;
1756
+ } | undefined;
1757
+ delegation?: {
1758
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
1759
+ endpoint: string;
1760
+ supportsSession: boolean;
1761
+ supportsStreaming?: boolean | undefined;
1762
+ } | undefined;
1763
+ owner?: {
1764
+ userId: string;
1765
+ username: string;
1766
+ email?: string | undefined;
1767
+ } | undefined;
1768
+ }>>;
1769
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1770
+ dexto: z.ZodOptional<z.ZodObject<{
1771
+ authentication: z.ZodOptional<z.ZodObject<{
1772
+ schemes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1773
+ credentials: z.ZodOptional<z.ZodString>;
1774
+ }, "strict", z.ZodTypeAny, {
1775
+ schemes: string[];
1776
+ credentials?: string | undefined;
1777
+ }, {
1778
+ schemes?: string[] | undefined;
1779
+ credentials?: string | undefined;
1780
+ }>>;
1781
+ delegation: z.ZodOptional<z.ZodObject<{
1782
+ protocol: z.ZodEnum<["dexto-v1", "http-simple", "a2a-jsonrpc", "mcp-http"]>;
1783
+ endpoint: z.ZodString;
1784
+ supportsSession: z.ZodBoolean;
1785
+ supportsStreaming: z.ZodOptional<z.ZodBoolean>;
1786
+ }, "strict", z.ZodTypeAny, {
1787
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
1788
+ endpoint: string;
1789
+ supportsSession: boolean;
1790
+ supportsStreaming?: boolean | undefined;
1791
+ }, {
1792
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
1793
+ endpoint: string;
1794
+ supportsSession: boolean;
1795
+ supportsStreaming?: boolean | undefined;
1796
+ }>>;
1797
+ owner: z.ZodOptional<z.ZodObject<{
1798
+ userId: z.ZodString;
1799
+ username: z.ZodString;
1800
+ email: z.ZodOptional<z.ZodString>;
1801
+ }, "strict", z.ZodTypeAny, {
1802
+ userId: string;
1803
+ username: string;
1804
+ email?: string | undefined;
1805
+ }, {
1806
+ userId: string;
1807
+ username: string;
1808
+ email?: string | undefined;
1809
+ }>>;
1810
+ }, "strict", z.ZodTypeAny, {
1811
+ authentication?: {
1812
+ schemes: string[];
1813
+ credentials?: string | undefined;
1814
+ } | undefined;
1815
+ delegation?: {
1816
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
1817
+ endpoint: string;
1818
+ supportsSession: boolean;
1819
+ supportsStreaming?: boolean | undefined;
1820
+ } | undefined;
1821
+ owner?: {
1822
+ userId: string;
1823
+ username: string;
1824
+ email?: string | undefined;
1825
+ } | undefined;
1826
+ }, {
1827
+ authentication?: {
1828
+ schemes?: string[] | undefined;
1829
+ credentials?: string | undefined;
1830
+ } | undefined;
1831
+ delegation?: {
1832
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
1833
+ endpoint: string;
1834
+ supportsSession: boolean;
1835
+ supportsStreaming?: boolean | undefined;
1836
+ } | undefined;
1837
+ owner?: {
1838
+ userId: string;
1839
+ username: string;
1840
+ email?: string | undefined;
1841
+ } | undefined;
1842
+ }>>;
1843
+ }, z.ZodTypeAny, "passthrough">>>;
1844
+ }, "strict", z.ZodTypeAny, {
1845
+ description: string;
1846
+ url: string;
1847
+ name: string;
1848
+ version: string;
1849
+ capabilities: {
1850
+ streaming: boolean;
1851
+ stateTransitionHistory: boolean;
1852
+ pushNotifications?: boolean | undefined;
1853
+ };
1854
+ protocolVersion: string;
1855
+ preferredTransport: "JSONRPC" | "GRPC" | "HTTP+JSON";
1856
+ defaultInputModes: string[];
1857
+ defaultOutputModes: string[];
1858
+ skills: {
1859
+ description: string;
1860
+ name: string;
1861
+ id: string;
1862
+ tags: string[];
1863
+ inputModes: string[];
1864
+ outputModes: string[];
1865
+ examples?: string[] | undefined;
1866
+ }[];
1867
+ metadata?: z.objectOutputType<{
1868
+ dexto: z.ZodOptional<z.ZodObject<{
1869
+ authentication: z.ZodOptional<z.ZodObject<{
1870
+ schemes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1871
+ credentials: z.ZodOptional<z.ZodString>;
1872
+ }, "strict", z.ZodTypeAny, {
1873
+ schemes: string[];
1874
+ credentials?: string | undefined;
1875
+ }, {
1876
+ schemes?: string[] | undefined;
1877
+ credentials?: string | undefined;
1878
+ }>>;
1879
+ delegation: z.ZodOptional<z.ZodObject<{
1880
+ protocol: z.ZodEnum<["dexto-v1", "http-simple", "a2a-jsonrpc", "mcp-http"]>;
1881
+ endpoint: z.ZodString;
1882
+ supportsSession: z.ZodBoolean;
1883
+ supportsStreaming: z.ZodOptional<z.ZodBoolean>;
1884
+ }, "strict", z.ZodTypeAny, {
1885
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
1886
+ endpoint: string;
1887
+ supportsSession: boolean;
1888
+ supportsStreaming?: boolean | undefined;
1889
+ }, {
1890
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
1891
+ endpoint: string;
1892
+ supportsSession: boolean;
1893
+ supportsStreaming?: boolean | undefined;
1894
+ }>>;
1895
+ owner: z.ZodOptional<z.ZodObject<{
1896
+ userId: z.ZodString;
1897
+ username: z.ZodString;
1898
+ email: z.ZodOptional<z.ZodString>;
1899
+ }, "strict", z.ZodTypeAny, {
1900
+ userId: string;
1901
+ username: string;
1902
+ email?: string | undefined;
1903
+ }, {
1904
+ userId: string;
1905
+ username: string;
1906
+ email?: string | undefined;
1907
+ }>>;
1908
+ }, "strict", z.ZodTypeAny, {
1909
+ authentication?: {
1910
+ schemes: string[];
1911
+ credentials?: string | undefined;
1912
+ } | undefined;
1913
+ delegation?: {
1914
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
1915
+ endpoint: string;
1916
+ supportsSession: boolean;
1917
+ supportsStreaming?: boolean | undefined;
1918
+ } | undefined;
1919
+ owner?: {
1920
+ userId: string;
1921
+ username: string;
1922
+ email?: string | undefined;
1923
+ } | undefined;
1924
+ }, {
1925
+ authentication?: {
1926
+ schemes?: string[] | undefined;
1927
+ credentials?: string | undefined;
1928
+ } | undefined;
1929
+ delegation?: {
1930
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
1931
+ endpoint: string;
1932
+ supportsSession: boolean;
1933
+ supportsStreaming?: boolean | undefined;
1934
+ } | undefined;
1935
+ owner?: {
1936
+ userId: string;
1937
+ username: string;
1938
+ email?: string | undefined;
1939
+ } | undefined;
1940
+ }>>;
1941
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1942
+ provider?: {
1943
+ url: string;
1944
+ organization: string;
1945
+ } | undefined;
1946
+ iconUrl?: string | undefined;
1947
+ documentationUrl?: string | undefined;
1948
+ additionalInterfaces?: {
1949
+ url: string;
1950
+ transport: "JSONRPC" | "GRPC" | "HTTP+JSON";
1951
+ }[] | undefined;
1952
+ securitySchemes?: Record<string, {
1953
+ type: "apiKey";
1954
+ name: string;
1955
+ in: "query" | "header" | "cookie";
1956
+ description?: string | undefined;
1957
+ } | {
1958
+ type: "http";
1959
+ scheme: string;
1960
+ description?: string | undefined;
1961
+ bearerFormat?: string | undefined;
1962
+ } | {
1963
+ type: "oauth2";
1964
+ flows: {
1965
+ password?: {
1966
+ scopes: Record<string, string>;
1967
+ authorizationUrl?: string | undefined;
1968
+ tokenUrl?: string | undefined;
1969
+ refreshUrl?: string | undefined;
1970
+ } | undefined;
1971
+ implicit?: {
1972
+ scopes: Record<string, string>;
1973
+ authorizationUrl?: string | undefined;
1974
+ tokenUrl?: string | undefined;
1975
+ refreshUrl?: string | undefined;
1976
+ } | undefined;
1977
+ clientCredentials?: {
1978
+ scopes: Record<string, string>;
1979
+ authorizationUrl?: string | undefined;
1980
+ tokenUrl?: string | undefined;
1981
+ refreshUrl?: string | undefined;
1982
+ } | undefined;
1983
+ authorizationCode?: {
1984
+ scopes: Record<string, string>;
1985
+ authorizationUrl?: string | undefined;
1986
+ tokenUrl?: string | undefined;
1987
+ refreshUrl?: string | undefined;
1988
+ } | undefined;
1989
+ };
1990
+ description?: string | undefined;
1991
+ } | {
1992
+ type: "openIdConnect";
1993
+ openIdConnectUrl: string;
1994
+ description?: string | undefined;
1995
+ } | {
1996
+ type: "mutualTLS";
1997
+ description?: string | undefined;
1998
+ }> | undefined;
1999
+ security?: Record<string, string[]>[] | undefined;
2000
+ supportsAuthenticatedExtendedCard?: boolean | undefined;
2001
+ signatures?: {
2002
+ protected: string;
2003
+ signature: string;
2004
+ }[] | undefined;
2005
+ }, {
2006
+ description: string;
2007
+ url: string;
2008
+ name: string;
2009
+ version: string;
2010
+ metadata?: z.objectInputType<{
2011
+ dexto: z.ZodOptional<z.ZodObject<{
2012
+ authentication: z.ZodOptional<z.ZodObject<{
2013
+ schemes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2014
+ credentials: z.ZodOptional<z.ZodString>;
2015
+ }, "strict", z.ZodTypeAny, {
2016
+ schemes: string[];
2017
+ credentials?: string | undefined;
2018
+ }, {
2019
+ schemes?: string[] | undefined;
2020
+ credentials?: string | undefined;
2021
+ }>>;
2022
+ delegation: z.ZodOptional<z.ZodObject<{
2023
+ protocol: z.ZodEnum<["dexto-v1", "http-simple", "a2a-jsonrpc", "mcp-http"]>;
2024
+ endpoint: z.ZodString;
2025
+ supportsSession: z.ZodBoolean;
2026
+ supportsStreaming: z.ZodOptional<z.ZodBoolean>;
2027
+ }, "strict", z.ZodTypeAny, {
2028
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
2029
+ endpoint: string;
2030
+ supportsSession: boolean;
2031
+ supportsStreaming?: boolean | undefined;
2032
+ }, {
2033
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
2034
+ endpoint: string;
2035
+ supportsSession: boolean;
2036
+ supportsStreaming?: boolean | undefined;
2037
+ }>>;
2038
+ owner: z.ZodOptional<z.ZodObject<{
2039
+ userId: z.ZodString;
2040
+ username: z.ZodString;
2041
+ email: z.ZodOptional<z.ZodString>;
2042
+ }, "strict", z.ZodTypeAny, {
2043
+ userId: string;
2044
+ username: string;
2045
+ email?: string | undefined;
2046
+ }, {
2047
+ userId: string;
2048
+ username: string;
2049
+ email?: string | undefined;
2050
+ }>>;
2051
+ }, "strict", z.ZodTypeAny, {
2052
+ authentication?: {
2053
+ schemes: string[];
2054
+ credentials?: string | undefined;
2055
+ } | undefined;
2056
+ delegation?: {
2057
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
2058
+ endpoint: string;
2059
+ supportsSession: boolean;
2060
+ supportsStreaming?: boolean | undefined;
2061
+ } | undefined;
2062
+ owner?: {
2063
+ userId: string;
2064
+ username: string;
2065
+ email?: string | undefined;
2066
+ } | undefined;
2067
+ }, {
2068
+ authentication?: {
2069
+ schemes?: string[] | undefined;
2070
+ credentials?: string | undefined;
2071
+ } | undefined;
2072
+ delegation?: {
2073
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
2074
+ endpoint: string;
2075
+ supportsSession: boolean;
2076
+ supportsStreaming?: boolean | undefined;
2077
+ } | undefined;
2078
+ owner?: {
2079
+ userId: string;
2080
+ username: string;
2081
+ email?: string | undefined;
2082
+ } | undefined;
2083
+ }>>;
2084
+ }, z.ZodTypeAny, "passthrough"> | undefined;
2085
+ capabilities?: {
2086
+ streaming?: boolean | undefined;
2087
+ pushNotifications?: boolean | undefined;
2088
+ stateTransitionHistory?: boolean | undefined;
2089
+ } | undefined;
2090
+ provider?: {
2091
+ url: string;
2092
+ organization: string;
2093
+ } | undefined;
2094
+ protocolVersion?: string | undefined;
2095
+ preferredTransport?: "JSONRPC" | "GRPC" | "HTTP+JSON" | undefined;
2096
+ defaultInputModes?: string[] | undefined;
2097
+ defaultOutputModes?: string[] | undefined;
2098
+ skills?: {
2099
+ description: string;
2100
+ name: string;
2101
+ id: string;
2102
+ tags: string[];
2103
+ examples?: string[] | undefined;
2104
+ inputModes?: string[] | undefined;
2105
+ outputModes?: string[] | undefined;
2106
+ }[] | undefined;
2107
+ iconUrl?: string | undefined;
2108
+ documentationUrl?: string | undefined;
2109
+ additionalInterfaces?: {
2110
+ url: string;
2111
+ transport: "JSONRPC" | "GRPC" | "HTTP+JSON";
2112
+ }[] | undefined;
2113
+ securitySchemes?: Record<string, {
2114
+ type: "apiKey";
2115
+ name: string;
2116
+ in: "query" | "header" | "cookie";
2117
+ description?: string | undefined;
2118
+ } | {
2119
+ type: "http";
2120
+ scheme: string;
2121
+ description?: string | undefined;
2122
+ bearerFormat?: string | undefined;
2123
+ } | {
2124
+ type: "oauth2";
2125
+ flows: {
2126
+ password?: {
2127
+ scopes: Record<string, string>;
2128
+ authorizationUrl?: string | undefined;
2129
+ tokenUrl?: string | undefined;
2130
+ refreshUrl?: string | undefined;
2131
+ } | undefined;
2132
+ implicit?: {
2133
+ scopes: Record<string, string>;
2134
+ authorizationUrl?: string | undefined;
2135
+ tokenUrl?: string | undefined;
2136
+ refreshUrl?: string | undefined;
2137
+ } | undefined;
2138
+ clientCredentials?: {
2139
+ scopes: Record<string, string>;
2140
+ authorizationUrl?: string | undefined;
2141
+ tokenUrl?: string | undefined;
2142
+ refreshUrl?: string | undefined;
2143
+ } | undefined;
2144
+ authorizationCode?: {
2145
+ scopes: Record<string, string>;
2146
+ authorizationUrl?: string | undefined;
2147
+ tokenUrl?: string | undefined;
2148
+ refreshUrl?: string | undefined;
2149
+ } | undefined;
2150
+ };
2151
+ description?: string | undefined;
2152
+ } | {
2153
+ type: "openIdConnect";
2154
+ openIdConnectUrl: string;
2155
+ description?: string | undefined;
2156
+ } | {
2157
+ type: "mutualTLS";
2158
+ description?: string | undefined;
2159
+ }> | undefined;
2160
+ security?: Record<string, string[]>[] | undefined;
2161
+ supportsAuthenticatedExtendedCard?: boolean | undefined;
2162
+ signatures?: {
2163
+ protected: string;
2164
+ signature: string;
2165
+ }[] | undefined;
2166
+ }>>;
2167
+ greeting: z.ZodOptional<z.ZodString>;
2168
+ telemetry: z.ZodOptional<z.ZodObject<{
2169
+ serviceName: z.ZodOptional<z.ZodString>;
2170
+ enabled: z.ZodOptional<z.ZodBoolean>;
2171
+ tracerName: z.ZodOptional<z.ZodString>;
2172
+ export: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2173
+ type: z.ZodLiteral<"otlp">;
2174
+ protocol: z.ZodOptional<z.ZodEnum<["grpc", "http"]>>;
2175
+ endpoint: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
2176
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2177
+ }, "strip", z.ZodTypeAny, {
2178
+ type: "otlp";
2179
+ headers?: Record<string, string> | undefined;
2180
+ protocol?: "http" | "grpc" | undefined;
2181
+ endpoint?: string | undefined;
2182
+ }, {
2183
+ type: "otlp";
2184
+ headers?: Record<string, string> | undefined;
2185
+ protocol?: "http" | "grpc" | undefined;
2186
+ endpoint?: string | undefined;
2187
+ }>, z.ZodObject<{
2188
+ type: z.ZodLiteral<"console">;
2189
+ }, "strip", z.ZodTypeAny, {
2190
+ type: "console";
2191
+ }, {
2192
+ type: "console";
2193
+ }>]>>;
2194
+ }, "strip", z.ZodTypeAny, {
2195
+ enabled?: boolean | undefined;
2196
+ serviceName?: string | undefined;
2197
+ tracerName?: string | undefined;
2198
+ export?: {
2199
+ type: "otlp";
2200
+ headers?: Record<string, string> | undefined;
2201
+ protocol?: "http" | "grpc" | undefined;
2202
+ endpoint?: string | undefined;
461
2203
  } | {
462
- type: "file";
463
- id: string;
464
- priority: number;
465
- files: string[];
466
- options?: {
467
- includeFilenames?: boolean | undefined;
468
- separator?: string | undefined;
469
- errorHandling?: "error" | "skip" | undefined;
470
- maxFileSize?: number | undefined;
471
- includeMetadata?: boolean | undefined;
472
- } | undefined;
473
- enabled?: boolean | undefined;
2204
+ type: "console";
2205
+ } | undefined;
2206
+ }, {
2207
+ enabled?: boolean | undefined;
2208
+ serviceName?: string | undefined;
2209
+ tracerName?: string | undefined;
2210
+ export?: {
2211
+ type: "otlp";
2212
+ headers?: Record<string, string> | undefined;
2213
+ protocol?: "http" | "grpc" | undefined;
2214
+ endpoint?: string | undefined;
474
2215
  } | {
475
- type: "memory";
476
- id: string;
477
- priority: number;
478
- options?: {
479
- includeTimestamps?: boolean | undefined;
480
- includeTags?: boolean | undefined;
481
- limit?: number | undefined;
482
- pinnedOnly?: boolean | undefined;
483
- } | undefined;
484
- enabled?: boolean | undefined;
485
- })[] | undefined;
486
- }>]>, "ValidatedSystemPromptConfig">;
2216
+ type: "console";
2217
+ } | undefined;
2218
+ }>>;
2219
+ memories: z.ZodOptional<z.ZodObject<{
2220
+ enabled: z.ZodDefault<z.ZodBoolean>;
2221
+ priority: z.ZodDefault<z.ZodNumber>;
2222
+ includeTimestamps: z.ZodDefault<z.ZodBoolean>;
2223
+ includeTags: z.ZodDefault<z.ZodBoolean>;
2224
+ limit: z.ZodOptional<z.ZodNumber>;
2225
+ pinnedOnly: z.ZodDefault<z.ZodBoolean>;
2226
+ }, "strict", z.ZodTypeAny, {
2227
+ enabled: boolean;
2228
+ priority: number;
2229
+ includeTimestamps: boolean;
2230
+ includeTags: boolean;
2231
+ pinnedOnly: boolean;
2232
+ limit?: number | undefined;
2233
+ }, {
2234
+ enabled?: boolean | undefined;
2235
+ limit?: number | undefined;
2236
+ priority?: number | undefined;
2237
+ includeTimestamps?: boolean | undefined;
2238
+ includeTags?: boolean | undefined;
2239
+ pinnedOnly?: boolean | undefined;
2240
+ }>>;
2241
+ agentId: z.ZodDefault<z.ZodString>;
487
2242
  mcpServers: z.ZodDefault<z.ZodBranded<z.ZodRecord<z.ZodString, z.ZodBranded<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
488
2243
  type: z.ZodLiteral<"stdio">;
489
2244
  command: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
@@ -580,63 +2335,92 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
580
2335
  connectionMode?: "strict" | "lenient" | undefined;
581
2336
  headers?: Record<string, string> | undefined;
582
2337
  }>, "ValidatedMcpServerConfig">>, "ValidatedServerConfigs">>;
583
- internalTools: z.ZodDefault<z.ZodArray<z.ZodEnum<["search_history", "ask_user", "read_file", "glob_files", "grep_content", "write_file", "edit_file", "bash_exec", "bash_output", "kill_process"]>, "many">>;
584
- llm: z.ZodBranded<z.ZodEffects<z.ZodObject<{
585
- provider: z.ZodEnum<["openai", "openai-compatible", "anthropic", "google", "groq", "xai", "cohere"]>;
586
- model: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
587
- apiKey: z.ZodEffects<z.ZodString, string, string>;
588
- maxIterations: z.ZodDefault<z.ZodNumber>;
589
- router: z.ZodDefault<z.ZodEnum<["vercel", "in-built"]>>;
590
- baseURL: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string | undefined, string>>;
591
- maxInputTokens: z.ZodOptional<z.ZodNumber>;
592
- maxOutputTokens: z.ZodOptional<z.ZodNumber>;
593
- temperature: z.ZodOptional<z.ZodNumber>;
594
- allowedMediaTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2338
+ internalTools: z.ZodDefault<z.ZodDefault<z.ZodArray<z.ZodEnum<["search_history", "ask_user", "read_file", "glob_files", "grep_content", "write_file", "edit_file", "bash_exec", "bash_output", "kill_process", "delegate_to_url"]>, "many">>>;
2339
+ logger: z.ZodDefault<z.ZodObject<{
2340
+ level: z.ZodDefault<z.ZodEnum<["debug", "info", "warn", "error", "silly"]>>;
2341
+ transports: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2342
+ type: z.ZodLiteral<"console">;
2343
+ colorize: z.ZodDefault<z.ZodBoolean>;
2344
+ }, "strict", z.ZodTypeAny, {
2345
+ type: "console";
2346
+ colorize: boolean;
2347
+ }, {
2348
+ type: "console";
2349
+ colorize?: boolean | undefined;
2350
+ }>, z.ZodObject<{
2351
+ type: z.ZodLiteral<"file">;
2352
+ path: z.ZodString;
2353
+ maxSize: z.ZodDefault<z.ZodNumber>;
2354
+ maxFiles: z.ZodDefault<z.ZodNumber>;
2355
+ }, "strict", z.ZodTypeAny, {
2356
+ path: string;
2357
+ type: "file";
2358
+ maxFiles: number;
2359
+ maxSize: number;
2360
+ }, {
2361
+ path: string;
2362
+ type: "file";
2363
+ maxFiles?: number | undefined;
2364
+ maxSize?: number | undefined;
2365
+ }>, z.ZodObject<{
2366
+ type: z.ZodLiteral<"upstash">;
2367
+ url: z.ZodString;
2368
+ token: z.ZodString;
2369
+ listName: z.ZodDefault<z.ZodString>;
2370
+ maxListLength: z.ZodDefault<z.ZodNumber>;
2371
+ batchSize: z.ZodDefault<z.ZodNumber>;
2372
+ }, "strict", z.ZodTypeAny, {
2373
+ token: string;
2374
+ type: "upstash";
2375
+ url: string;
2376
+ listName: string;
2377
+ maxListLength: number;
2378
+ batchSize: number;
2379
+ }, {
2380
+ token: string;
2381
+ type: "upstash";
2382
+ url: string;
2383
+ listName?: string | undefined;
2384
+ maxListLength?: number | undefined;
2385
+ batchSize?: number | undefined;
2386
+ }>]>, "many">>;
595
2387
  }, "strict", z.ZodTypeAny, {
596
- apiKey: string;
597
- provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
598
- model: string;
599
- maxIterations: number;
600
- router: "vercel" | "in-built";
601
- baseURL?: string | undefined;
602
- maxInputTokens?: number | undefined;
603
- maxOutputTokens?: number | undefined;
604
- temperature?: number | undefined;
605
- allowedMediaTypes?: string[] | undefined;
606
- }, {
607
- apiKey: string;
608
- provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
609
- model: string;
610
- maxIterations?: number | undefined;
611
- router?: "vercel" | "in-built" | undefined;
612
- baseURL?: string | undefined;
613
- maxInputTokens?: number | undefined;
614
- maxOutputTokens?: number | undefined;
615
- temperature?: number | undefined;
616
- allowedMediaTypes?: string[] | undefined;
617
- }>, {
618
- apiKey: string;
619
- provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
620
- model: string;
621
- maxIterations: number;
622
- router: "vercel" | "in-built";
623
- baseURL?: string | undefined;
624
- maxInputTokens?: number | undefined;
625
- maxOutputTokens?: number | undefined;
626
- temperature?: number | undefined;
627
- allowedMediaTypes?: string[] | undefined;
2388
+ level: "debug" | "info" | "warn" | "error" | "silly";
2389
+ transports: ({
2390
+ type: "console";
2391
+ colorize: boolean;
2392
+ } | {
2393
+ path: string;
2394
+ type: "file";
2395
+ maxFiles: number;
2396
+ maxSize: number;
2397
+ } | {
2398
+ token: string;
2399
+ type: "upstash";
2400
+ url: string;
2401
+ listName: string;
2402
+ maxListLength: number;
2403
+ batchSize: number;
2404
+ })[];
628
2405
  }, {
629
- apiKey: string;
630
- provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
631
- model: string;
632
- maxIterations?: number | undefined;
633
- router?: "vercel" | "in-built" | undefined;
634
- baseURL?: string | undefined;
635
- maxInputTokens?: number | undefined;
636
- maxOutputTokens?: number | undefined;
637
- temperature?: number | undefined;
638
- allowedMediaTypes?: string[] | undefined;
639
- }>, "ValidatedLLMConfig">;
2406
+ level?: "debug" | "info" | "warn" | "error" | "silly" | undefined;
2407
+ transports?: ({
2408
+ type: "console";
2409
+ colorize?: boolean | undefined;
2410
+ } | {
2411
+ path: string;
2412
+ type: "file";
2413
+ maxFiles?: number | undefined;
2414
+ maxSize?: number | undefined;
2415
+ } | {
2416
+ token: string;
2417
+ type: "upstash";
2418
+ url: string;
2419
+ listName?: string | undefined;
2420
+ maxListLength?: number | undefined;
2421
+ batchSize?: number | undefined;
2422
+ })[] | undefined;
2423
+ }>>;
640
2424
  storage: z.ZodDefault<z.ZodBranded<z.ZodObject<{
641
2425
  cache: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
642
2426
  maxConnections: z.ZodOptional<z.ZodNumber>;
@@ -752,24 +2536,21 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
752
2536
  options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
753
2537
  } & {
754
2538
  type: z.ZodLiteral<"sqlite">;
755
- path: z.ZodOptional<z.ZodString>;
756
- database: z.ZodOptional<z.ZodString>;
2539
+ path: z.ZodString;
757
2540
  }, "strict", z.ZodTypeAny, {
2541
+ path: string;
758
2542
  type: "sqlite";
759
- path?: string | undefined;
760
2543
  options?: Record<string, any> | undefined;
761
2544
  maxConnections?: number | undefined;
762
2545
  idleTimeoutMillis?: number | undefined;
763
2546
  connectionTimeoutMillis?: number | undefined;
764
- database?: string | undefined;
765
2547
  }, {
2548
+ path: string;
766
2549
  type: "sqlite";
767
- path?: string | undefined;
768
2550
  options?: Record<string, any> | undefined;
769
2551
  maxConnections?: number | undefined;
770
2552
  idleTimeoutMillis?: number | undefined;
771
2553
  connectionTimeoutMillis?: number | undefined;
772
- database?: string | undefined;
773
2554
  }>, z.ZodObject<{
774
2555
  maxConnections: z.ZodOptional<z.ZodNumber>;
775
2556
  idleTimeoutMillis: z.ZodOptional<z.ZodNumber>;
@@ -814,13 +2595,12 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
814
2595
  idleTimeoutMillis?: number | undefined;
815
2596
  connectionTimeoutMillis?: number | undefined;
816
2597
  } | {
2598
+ path: string;
817
2599
  type: "sqlite";
818
- path?: string | undefined;
819
2600
  options?: Record<string, any> | undefined;
820
2601
  maxConnections?: number | undefined;
821
2602
  idleTimeoutMillis?: number | undefined;
822
2603
  connectionTimeoutMillis?: number | undefined;
823
- database?: string | undefined;
824
2604
  } | {
825
2605
  type: "postgres";
826
2606
  password?: string | undefined;
@@ -840,13 +2620,12 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
840
2620
  idleTimeoutMillis?: number | undefined;
841
2621
  connectionTimeoutMillis?: number | undefined;
842
2622
  } | {
2623
+ path: string;
843
2624
  type: "sqlite";
844
- path?: string | undefined;
845
2625
  options?: Record<string, any> | undefined;
846
2626
  maxConnections?: number | undefined;
847
2627
  idleTimeoutMillis?: number | undefined;
848
2628
  connectionTimeoutMillis?: number | undefined;
849
- database?: string | undefined;
850
2629
  } | {
851
2630
  type: "postgres";
852
2631
  password?: string | undefined;
@@ -860,7 +2639,7 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
860
2639
  database?: string | undefined;
861
2640
  connectionString?: string | undefined;
862
2641
  }>;
863
- blob: z.ZodDefault<z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2642
+ blob: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
864
2643
  type: z.ZodLiteral<"in-memory">;
865
2644
  maxBlobSize: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
866
2645
  maxTotalSize: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -874,7 +2653,7 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
874
2653
  maxTotalSize?: number | undefined;
875
2654
  }>, z.ZodObject<{
876
2655
  type: z.ZodLiteral<"local">;
877
- storePath: z.ZodOptional<z.ZodString>;
2656
+ storePath: z.ZodString;
878
2657
  maxBlobSize: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
879
2658
  maxTotalSize: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
880
2659
  cleanupAfterDays: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -882,15 +2661,15 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
882
2661
  type: "local";
883
2662
  maxBlobSize: number;
884
2663
  maxTotalSize: number;
2664
+ storePath: string;
885
2665
  cleanupAfterDays: number;
886
- storePath?: string | undefined;
887
2666
  }, {
888
2667
  type: "local";
2668
+ storePath: string;
889
2669
  maxBlobSize?: number | undefined;
890
2670
  maxTotalSize?: number | undefined;
891
- storePath?: string | undefined;
892
2671
  cleanupAfterDays?: number | undefined;
893
- }>]>>>;
2672
+ }>]>;
894
2673
  }, "strict", z.ZodTypeAny, {
895
2674
  database: {
896
2675
  type: "in-memory";
@@ -899,13 +2678,12 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
899
2678
  idleTimeoutMillis?: number | undefined;
900
2679
  connectionTimeoutMillis?: number | undefined;
901
2680
  } | {
2681
+ path: string;
902
2682
  type: "sqlite";
903
- path?: string | undefined;
904
2683
  options?: Record<string, any> | undefined;
905
2684
  maxConnections?: number | undefined;
906
2685
  idleTimeoutMillis?: number | undefined;
907
2686
  connectionTimeoutMillis?: number | undefined;
908
- database?: string | undefined;
909
2687
  } | {
910
2688
  type: "postgres";
911
2689
  password?: string | undefined;
@@ -945,8 +2723,8 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
945
2723
  type: "local";
946
2724
  maxBlobSize: number;
947
2725
  maxTotalSize: number;
2726
+ storePath: string;
948
2727
  cleanupAfterDays: number;
949
- storePath?: string | undefined;
950
2728
  };
951
2729
  }, {
952
2730
  database: {
@@ -956,13 +2734,12 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
956
2734
  idleTimeoutMillis?: number | undefined;
957
2735
  connectionTimeoutMillis?: number | undefined;
958
2736
  } | {
2737
+ path: string;
959
2738
  type: "sqlite";
960
- path?: string | undefined;
961
2739
  options?: Record<string, any> | undefined;
962
2740
  maxConnections?: number | undefined;
963
2741
  idleTimeoutMillis?: number | undefined;
964
2742
  connectionTimeoutMillis?: number | undefined;
965
- database?: string | undefined;
966
2743
  } | {
967
2744
  type: "postgres";
968
2745
  password?: string | undefined;
@@ -994,17 +2771,17 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
994
2771
  port?: number | undefined;
995
2772
  database?: number | undefined;
996
2773
  };
997
- blob?: {
2774
+ blob: {
998
2775
  type: "in-memory";
999
2776
  maxBlobSize?: number | undefined;
1000
2777
  maxTotalSize?: number | undefined;
1001
2778
  } | {
1002
2779
  type: "local";
2780
+ storePath: string;
1003
2781
  maxBlobSize?: number | undefined;
1004
2782
  maxTotalSize?: number | undefined;
1005
- storePath?: string | undefined;
1006
2783
  cleanupAfterDays?: number | undefined;
1007
- } | undefined;
2784
+ };
1008
2785
  }>, "ValidatedStorageConfig">>;
1009
2786
  sessions: z.ZodDefault<z.ZodObject<{
1010
2787
  maxSessions: z.ZodDefault<z.ZodNumber>;
@@ -1017,10 +2794,10 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
1017
2794
  sessionTTL?: number | undefined;
1018
2795
  }>>;
1019
2796
  toolConfirmation: z.ZodDefault<z.ZodObject<{
1020
- mode: z.ZodDefault<z.ZodEnum<["event-based", "auto-approve", "auto-deny"]>>;
2797
+ mode: z.ZodDefault<z.ZodEnum<["manual", "auto-approve", "auto-deny"]>>;
1021
2798
  timeout: z.ZodDefault<z.ZodNumber>;
1022
2799
  allowedToolsStorage: z.ZodDefault<z.ZodEnum<["memory", "storage"]>>;
1023
- toolPolicies: z.ZodOptional<z.ZodDefault<z.ZodObject<{
2800
+ toolPolicies: z.ZodDefault<z.ZodObject<{
1024
2801
  alwaysAllow: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1025
2802
  alwaysDeny: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1026
2803
  }, "strict", z.ZodTypeAny, {
@@ -1029,24 +2806,34 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
1029
2806
  }, {
1030
2807
  alwaysAllow?: string[] | undefined;
1031
2808
  alwaysDeny?: string[] | undefined;
1032
- }>>>;
2809
+ }>>;
1033
2810
  }, "strict", z.ZodTypeAny, {
1034
2811
  timeout: number;
1035
- mode: "event-based" | "auto-approve" | "auto-deny";
2812
+ mode: "manual" | "auto-approve" | "auto-deny";
1036
2813
  allowedToolsStorage: "storage" | "memory";
1037
- toolPolicies?: {
2814
+ toolPolicies: {
1038
2815
  alwaysAllow: string[];
1039
2816
  alwaysDeny: string[];
1040
- } | undefined;
2817
+ };
1041
2818
  }, {
1042
2819
  timeout?: number | undefined;
1043
- mode?: "event-based" | "auto-approve" | "auto-deny" | undefined;
2820
+ mode?: "manual" | "auto-approve" | "auto-deny" | undefined;
1044
2821
  allowedToolsStorage?: "storage" | "memory" | undefined;
1045
2822
  toolPolicies?: {
1046
2823
  alwaysAllow?: string[] | undefined;
1047
2824
  alwaysDeny?: string[] | undefined;
1048
2825
  } | undefined;
1049
2826
  }>>;
2827
+ elicitation: z.ZodDefault<z.ZodObject<{
2828
+ enabled: z.ZodDefault<z.ZodBoolean>;
2829
+ timeout: z.ZodDefault<z.ZodNumber>;
2830
+ }, "strict", z.ZodTypeAny, {
2831
+ timeout: number;
2832
+ enabled: boolean;
2833
+ }, {
2834
+ timeout?: number | undefined;
2835
+ enabled?: boolean | undefined;
2836
+ }>>;
1050
2837
  internalResources: z.ZodDefault<z.ZodEffects<z.ZodDefault<z.ZodUnion<[z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1051
2838
  type: z.ZodLiteral<"filesystem">;
1052
2839
  paths: z.ZodArray<z.ZodString, "many">;
@@ -1055,8 +2842,8 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
1055
2842
  includeHidden: z.ZodDefault<z.ZodBoolean>;
1056
2843
  includeExtensions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1057
2844
  }, "strict", z.ZodTypeAny, {
1058
- maxFiles: number;
1059
2845
  type: "filesystem";
2846
+ maxFiles: number;
1060
2847
  paths: string[];
1061
2848
  maxDepth: number;
1062
2849
  includeHidden: boolean;
@@ -1084,8 +2871,8 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
1084
2871
  includeHidden: z.ZodDefault<z.ZodBoolean>;
1085
2872
  includeExtensions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1086
2873
  }, "strict", z.ZodTypeAny, {
1087
- maxFiles: number;
1088
2874
  type: "filesystem";
2875
+ maxFiles: number;
1089
2876
  paths: string[];
1090
2877
  maxDepth: number;
1091
2878
  includeHidden: boolean;
@@ -1106,8 +2893,8 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
1106
2893
  }>]>, "many">>;
1107
2894
  }, "strict", z.ZodTypeAny, {
1108
2895
  resources: ({
1109
- maxFiles: number;
1110
2896
  type: "filesystem";
2897
+ maxFiles: number;
1111
2898
  paths: string[];
1112
2899
  maxDepth: number;
1113
2900
  includeHidden: boolean;
@@ -1131,8 +2918,8 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
1131
2918
  }>]>>, {
1132
2919
  enabled: boolean;
1133
2920
  resources: ({
1134
- maxFiles: number;
1135
2921
  type: "filesystem";
2922
+ maxFiles: number;
1136
2923
  paths: string[];
1137
2924
  maxDepth: number;
1138
2925
  includeHidden: boolean;
@@ -1162,56 +2949,98 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
1162
2949
  type: "blob";
1163
2950
  })[] | undefined;
1164
2951
  } | undefined>>;
1165
- starterPrompts: z.ZodDefault<z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodObject<{
2952
+ prompts: z.ZodDefault<z.ZodDefault<z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2953
+ type: z.ZodLiteral<"inline">;
1166
2954
  id: z.ZodString;
1167
2955
  title: z.ZodOptional<z.ZodString>;
1168
2956
  description: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1169
2957
  prompt: z.ZodString;
1170
2958
  category: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1171
2959
  priority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2960
+ showInStarters: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1172
2961
  }, "strict", z.ZodTypeAny, {
1173
2962
  prompt: string;
1174
2963
  description: string;
2964
+ type: "inline";
1175
2965
  id: string;
1176
2966
  priority: number;
1177
2967
  category: string;
2968
+ showInStarters: boolean;
1178
2969
  title?: string | undefined;
1179
2970
  }, {
1180
2971
  prompt: string;
2972
+ type: "inline";
1181
2973
  id: string;
1182
- title?: string | undefined;
1183
2974
  description?: string | undefined;
2975
+ title?: string | undefined;
1184
2976
  priority?: number | undefined;
1185
2977
  category?: string | undefined;
1186
- }>, "many">, {
2978
+ showInStarters?: boolean | undefined;
2979
+ }>, z.ZodObject<{
2980
+ type: z.ZodLiteral<"file">;
2981
+ file: z.ZodString;
2982
+ showInStarters: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2983
+ }, "strict", z.ZodTypeAny, {
2984
+ file: string;
2985
+ type: "file";
2986
+ showInStarters: boolean;
2987
+ }, {
2988
+ file: string;
2989
+ type: "file";
2990
+ showInStarters?: boolean | undefined;
2991
+ }>]>, "many">, ({
1187
2992
  prompt: string;
1188
2993
  description: string;
2994
+ type: "inline";
1189
2995
  id: string;
1190
2996
  priority: number;
1191
2997
  category: string;
2998
+ showInStarters: boolean;
1192
2999
  title?: string | undefined;
1193
- }[], {
3000
+ } | {
3001
+ file: string;
3002
+ type: "file";
3003
+ showInStarters: boolean;
3004
+ })[], ({
1194
3005
  prompt: string;
3006
+ type: "inline";
1195
3007
  id: string;
1196
- title?: string | undefined;
1197
3008
  description?: string | undefined;
3009
+ title?: string | undefined;
1198
3010
  priority?: number | undefined;
1199
3011
  category?: string | undefined;
1200
- }[]>, {
3012
+ showInStarters?: boolean | undefined;
3013
+ } | {
3014
+ file: string;
3015
+ type: "file";
3016
+ showInStarters?: boolean | undefined;
3017
+ })[]>, ({
3018
+ file: string;
3019
+ type: "file";
3020
+ showInStarters: boolean;
3021
+ } | {
1201
3022
  title: string;
1202
3023
  prompt: string;
1203
3024
  description: string;
3025
+ type: "inline";
1204
3026
  id: string;
1205
3027
  priority: number;
1206
3028
  category: string;
1207
- }[], {
3029
+ showInStarters: boolean;
3030
+ })[], ({
1208
3031
  prompt: string;
3032
+ type: "inline";
1209
3033
  id: string;
1210
- title?: string | undefined;
1211
3034
  description?: string | undefined;
3035
+ title?: string | undefined;
1212
3036
  priority?: number | undefined;
1213
3037
  category?: string | undefined;
1214
- }[]>>;
3038
+ showInStarters?: boolean | undefined;
3039
+ } | {
3040
+ file: string;
3041
+ type: "file";
3042
+ showInStarters?: boolean | undefined;
3043
+ })[]>>>;
1215
3044
  plugins: z.ZodDefault<z.ZodDefault<z.ZodObject<{
1216
3045
  contentPolicy: z.ZodOptional<z.ZodObject<{
1217
3046
  priority: z.ZodNumber;
@@ -1247,117 +3076,66 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
1247
3076
  priority: z.ZodNumber;
1248
3077
  config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1249
3078
  }, "strict", z.ZodTypeAny, {
3079
+ enabled: boolean;
1250
3080
  name: string;
1251
3081
  priority: number;
1252
- enabled: boolean;
1253
- blocking: boolean;
1254
3082
  module: string;
3083
+ blocking: boolean;
1255
3084
  config?: Record<string, any> | undefined;
1256
3085
  }, {
1257
3086
  name: string;
1258
3087
  priority: number;
1259
- blocking: boolean;
1260
3088
  module: string;
3089
+ blocking: boolean;
1261
3090
  config?: Record<string, any> | undefined;
1262
3091
  enabled?: boolean | undefined;
1263
3092
  }>, "many">>;
1264
3093
  }, "strict", z.ZodTypeAny, {
1265
3094
  custom: {
1266
- name: string;
1267
- priority: number;
1268
3095
  enabled: boolean;
1269
- blocking: boolean;
1270
- module: string;
1271
- config?: Record<string, any> | undefined;
1272
- }[];
1273
- contentPolicy?: z.objectOutputType<{
1274
- priority: z.ZodNumber;
1275
- blocking: z.ZodOptional<z.ZodBoolean>;
1276
- enabled: z.ZodDefault<z.ZodBoolean>;
1277
- }, z.ZodTypeAny, "passthrough"> | undefined;
1278
- responseSanitizer?: z.objectOutputType<{
1279
- priority: z.ZodNumber;
1280
- blocking: z.ZodOptional<z.ZodBoolean>;
1281
- enabled: z.ZodDefault<z.ZodBoolean>;
1282
- }, z.ZodTypeAny, "passthrough"> | undefined;
1283
- }, {
1284
- custom?: {
1285
3096
  name: string;
1286
- priority: number;
1287
- blocking: boolean;
1288
- module: string;
1289
- config?: Record<string, any> | undefined;
1290
- enabled?: boolean | undefined;
1291
- }[] | undefined;
1292
- contentPolicy?: z.objectInputType<{
1293
- priority: z.ZodNumber;
1294
- blocking: z.ZodOptional<z.ZodBoolean>;
1295
- enabled: z.ZodDefault<z.ZodBoolean>;
1296
- }, z.ZodTypeAny, "passthrough"> | undefined;
1297
- responseSanitizer?: z.objectInputType<{
1298
- priority: z.ZodNumber;
1299
- blocking: z.ZodOptional<z.ZodBoolean>;
1300
- enabled: z.ZodDefault<z.ZodBoolean>;
1301
- }, z.ZodTypeAny, "passthrough"> | undefined;
1302
- }>>>;
1303
- telemetry: z.ZodOptional<z.ZodObject<{
1304
- serviceName: z.ZodOptional<z.ZodString>;
1305
- enabled: z.ZodOptional<z.ZodBoolean>;
1306
- tracerName: z.ZodOptional<z.ZodString>;
1307
- export: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1308
- type: z.ZodLiteral<"otlp">;
1309
- protocol: z.ZodOptional<z.ZodEnum<["grpc", "http"]>>;
1310
- endpoint: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
1311
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1312
- }, "strip", z.ZodTypeAny, {
1313
- type: "otlp";
1314
- headers?: Record<string, string> | undefined;
1315
- protocol?: "http" | "grpc" | undefined;
1316
- endpoint?: string | undefined;
1317
- }, {
1318
- type: "otlp";
1319
- headers?: Record<string, string> | undefined;
1320
- protocol?: "http" | "grpc" | undefined;
1321
- endpoint?: string | undefined;
1322
- }>, z.ZodObject<{
1323
- type: z.ZodLiteral<"console">;
1324
- }, "strip", z.ZodTypeAny, {
1325
- type: "console";
1326
- }, {
1327
- type: "console";
1328
- }>]>>;
1329
- }, "strip", z.ZodTypeAny, {
1330
- enabled?: boolean | undefined;
1331
- serviceName?: string | undefined;
1332
- tracerName?: string | undefined;
1333
- export?: {
1334
- type: "otlp";
1335
- headers?: Record<string, string> | undefined;
1336
- protocol?: "http" | "grpc" | undefined;
1337
- endpoint?: string | undefined;
1338
- } | {
1339
- type: "console";
1340
- } | undefined;
3097
+ priority: number;
3098
+ module: string;
3099
+ blocking: boolean;
3100
+ config?: Record<string, any> | undefined;
3101
+ }[];
3102
+ contentPolicy?: z.objectOutputType<{
3103
+ priority: z.ZodNumber;
3104
+ blocking: z.ZodOptional<z.ZodBoolean>;
3105
+ enabled: z.ZodDefault<z.ZodBoolean>;
3106
+ }, z.ZodTypeAny, "passthrough"> | undefined;
3107
+ responseSanitizer?: z.objectOutputType<{
3108
+ priority: z.ZodNumber;
3109
+ blocking: z.ZodOptional<z.ZodBoolean>;
3110
+ enabled: z.ZodDefault<z.ZodBoolean>;
3111
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1341
3112
  }, {
1342
- enabled?: boolean | undefined;
1343
- serviceName?: string | undefined;
1344
- tracerName?: string | undefined;
1345
- export?: {
1346
- type: "otlp";
1347
- headers?: Record<string, string> | undefined;
1348
- protocol?: "http" | "grpc" | undefined;
1349
- endpoint?: string | undefined;
1350
- } | {
1351
- type: "console";
1352
- } | undefined;
1353
- }>>;
3113
+ custom?: {
3114
+ name: string;
3115
+ priority: number;
3116
+ module: string;
3117
+ blocking: boolean;
3118
+ config?: Record<string, any> | undefined;
3119
+ enabled?: boolean | undefined;
3120
+ }[] | undefined;
3121
+ contentPolicy?: z.objectInputType<{
3122
+ priority: z.ZodNumber;
3123
+ blocking: z.ZodOptional<z.ZodBoolean>;
3124
+ enabled: z.ZodDefault<z.ZodBoolean>;
3125
+ }, z.ZodTypeAny, "passthrough"> | undefined;
3126
+ responseSanitizer?: z.objectInputType<{
3127
+ priority: z.ZodNumber;
3128
+ blocking: z.ZodOptional<z.ZodBoolean>;
3129
+ enabled: z.ZodDefault<z.ZodBoolean>;
3130
+ }, z.ZodTypeAny, "passthrough"> | undefined;
3131
+ }>>>;
1354
3132
  }, "strict", z.ZodTypeAny, {
1355
3133
  llm: {
1356
3134
  apiKey: string;
1357
- provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
1358
3135
  model: string;
1359
- maxIterations: number;
3136
+ provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
1360
3137
  router: "vercel" | "in-built";
3138
+ maxIterations: number;
1361
3139
  baseURL?: string | undefined;
1362
3140
  maxInputTokens?: number | undefined;
1363
3141
  maxOutputTokens?: number | undefined;
@@ -1372,13 +3150,12 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
1372
3150
  idleTimeoutMillis?: number | undefined;
1373
3151
  connectionTimeoutMillis?: number | undefined;
1374
3152
  } | {
3153
+ path: string;
1375
3154
  type: "sqlite";
1376
- path?: string | undefined;
1377
3155
  options?: Record<string, any> | undefined;
1378
3156
  maxConnections?: number | undefined;
1379
3157
  idleTimeoutMillis?: number | undefined;
1380
3158
  connectionTimeoutMillis?: number | undefined;
1381
- database?: string | undefined;
1382
3159
  } | {
1383
3160
  type: "postgres";
1384
3161
  password?: string | undefined;
@@ -1418,32 +3195,63 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
1418
3195
  type: "local";
1419
3196
  maxBlobSize: number;
1420
3197
  maxTotalSize: number;
3198
+ storePath: string;
1421
3199
  cleanupAfterDays: number;
1422
- storePath?: string | undefined;
1423
3200
  };
1424
3201
  } & z.BRAND<"ValidatedStorageConfig">;
1425
- systemPrompt: ({
1426
- contributors: {
1427
- id: string;
1428
- type: "static";
1429
- content: string;
1430
- priority: number;
1431
- enabled: boolean;
1432
- }[];
3202
+ logger: {
3203
+ level: "debug" | "info" | "warn" | "error" | "silly";
3204
+ transports: ({
3205
+ type: "console";
3206
+ colorize: boolean;
3207
+ } | {
3208
+ path: string;
3209
+ type: "file";
3210
+ maxFiles: number;
3211
+ maxSize: number;
3212
+ } | {
3213
+ token: string;
3214
+ type: "upstash";
3215
+ url: string;
3216
+ listName: string;
3217
+ maxListLength: number;
3218
+ batchSize: number;
3219
+ })[];
3220
+ };
3221
+ elicitation: {
3222
+ timeout: number;
3223
+ enabled: boolean;
3224
+ };
3225
+ prompts: ({
3226
+ file: string;
3227
+ type: "file";
3228
+ showInStarters: boolean;
1433
3229
  } | {
3230
+ title: string;
3231
+ prompt: string;
3232
+ description: string;
3233
+ type: "inline";
3234
+ id: string;
3235
+ priority: number;
3236
+ category: string;
3237
+ showInStarters: boolean;
3238
+ })[];
3239
+ agentId: string;
3240
+ systemPrompt: ({
1434
3241
  contributors: ({
1435
3242
  type: "static";
1436
- id: string;
1437
- priority: number;
1438
3243
  enabled: boolean;
1439
3244
  content: string;
3245
+ id: string;
3246
+ priority: number;
1440
3247
  } | {
1441
3248
  type: "dynamic";
3249
+ enabled: boolean;
1442
3250
  id: string;
3251
+ source: "resources" | "dateTime";
1443
3252
  priority: number;
1444
- enabled: boolean;
1445
- source: "dateTime" | "memorySummary" | "resources";
1446
3253
  } | {
3254
+ type: "file";
1447
3255
  options: {
1448
3256
  includeFilenames: boolean;
1449
3257
  separator: string;
@@ -1451,23 +3259,19 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
1451
3259
  maxFileSize: number;
1452
3260
  includeMetadata: boolean;
1453
3261
  };
1454
- type: "file";
3262
+ enabled: boolean;
1455
3263
  id: string;
1456
3264
  priority: number;
1457
- enabled: boolean;
1458
3265
  files: string[];
1459
- } | {
1460
- options: {
1461
- includeTimestamps: boolean;
1462
- includeTags: boolean;
1463
- pinnedOnly: boolean;
1464
- limit?: number | undefined;
1465
- };
1466
- type: "memory";
3266
+ })[];
3267
+ } | {
3268
+ contributors: {
1467
3269
  id: string;
3270
+ type: "static";
3271
+ content: string;
1468
3272
  priority: number;
1469
3273
  enabled: boolean;
1470
- })[];
3274
+ }[];
1471
3275
  }) & z.BRAND<"ValidatedSystemPromptConfig">;
1472
3276
  mcpServers: Record<string, ({
1473
3277
  timeout: number;
@@ -1489,25 +3293,25 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
1489
3293
  url: string;
1490
3294
  headers: Record<string, string>;
1491
3295
  }) & z.BRAND<"ValidatedMcpServerConfig">> & z.BRAND<"ValidatedServerConfigs">;
1492
- internalTools: ("search_history" | "ask_user" | "read_file" | "glob_files" | "grep_content" | "write_file" | "edit_file" | "bash_exec" | "bash_output" | "kill_process")[];
3296
+ internalTools: ("search_history" | "ask_user" | "read_file" | "glob_files" | "grep_content" | "write_file" | "edit_file" | "bash_exec" | "bash_output" | "kill_process" | "delegate_to_url")[];
1493
3297
  sessions: {
1494
3298
  maxSessions: number;
1495
3299
  sessionTTL: number;
1496
3300
  };
1497
3301
  toolConfirmation: {
1498
3302
  timeout: number;
1499
- mode: "event-based" | "auto-approve" | "auto-deny";
3303
+ mode: "manual" | "auto-approve" | "auto-deny";
1500
3304
  allowedToolsStorage: "storage" | "memory";
1501
- toolPolicies?: {
3305
+ toolPolicies: {
1502
3306
  alwaysAllow: string[];
1503
3307
  alwaysDeny: string[];
1504
- } | undefined;
3308
+ };
1505
3309
  };
1506
3310
  internalResources: {
1507
3311
  enabled: boolean;
1508
3312
  resources: ({
1509
- maxFiles: number;
1510
3313
  type: "filesystem";
3314
+ maxFiles: number;
1511
3315
  paths: string[];
1512
3316
  maxDepth: number;
1513
3317
  includeHidden: boolean;
@@ -1516,21 +3320,13 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
1516
3320
  type: "blob";
1517
3321
  })[];
1518
3322
  };
1519
- starterPrompts: {
1520
- title: string;
1521
- prompt: string;
1522
- description: string;
1523
- id: string;
1524
- priority: number;
1525
- category: string;
1526
- }[];
1527
3323
  plugins: {
1528
3324
  custom: {
3325
+ enabled: boolean;
1529
3326
  name: string;
1530
3327
  priority: number;
1531
- enabled: boolean;
1532
- blocking: boolean;
1533
3328
  module: string;
3329
+ blocking: boolean;
1534
3330
  config?: Record<string, any> | undefined;
1535
3331
  }[];
1536
3332
  contentPolicy?: z.objectOutputType<{
@@ -1544,58 +3340,197 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
1544
3340
  enabled: z.ZodDefault<z.ZodBoolean>;
1545
3341
  }, z.ZodTypeAny, "passthrough"> | undefined;
1546
3342
  };
3343
+ telemetry?: {
3344
+ enabled?: boolean | undefined;
3345
+ serviceName?: string | undefined;
3346
+ tracerName?: string | undefined;
3347
+ export?: {
3348
+ type: "otlp";
3349
+ headers?: Record<string, string> | undefined;
3350
+ protocol?: "http" | "grpc" | undefined;
3351
+ endpoint?: string | undefined;
3352
+ } | {
3353
+ type: "console";
3354
+ } | undefined;
3355
+ } | undefined;
1547
3356
  agentCard?: {
1548
- name: string;
1549
- url: string;
1550
3357
  description: string;
3358
+ url: string;
3359
+ name: string;
1551
3360
  version: string;
1552
3361
  capabilities: {
1553
3362
  streaming: boolean;
1554
3363
  stateTransitionHistory: boolean;
1555
3364
  pushNotifications?: boolean | undefined;
1556
3365
  };
1557
- authentication: {
1558
- schemes: string[];
1559
- credentials?: string | undefined;
1560
- };
3366
+ protocolVersion: string;
3367
+ preferredTransport: "JSONRPC" | "GRPC" | "HTTP+JSON";
1561
3368
  defaultInputModes: string[];
1562
3369
  defaultOutputModes: string[];
1563
3370
  skills: {
1564
- name: string;
1565
3371
  description: string;
3372
+ name: string;
1566
3373
  id: string;
1567
3374
  tags: string[];
1568
3375
  inputModes: string[];
1569
3376
  outputModes: string[];
1570
3377
  examples?: string[] | undefined;
1571
3378
  }[];
3379
+ metadata?: z.objectOutputType<{
3380
+ dexto: z.ZodOptional<z.ZodObject<{
3381
+ authentication: z.ZodOptional<z.ZodObject<{
3382
+ schemes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3383
+ credentials: z.ZodOptional<z.ZodString>;
3384
+ }, "strict", z.ZodTypeAny, {
3385
+ schemes: string[];
3386
+ credentials?: string | undefined;
3387
+ }, {
3388
+ schemes?: string[] | undefined;
3389
+ credentials?: string | undefined;
3390
+ }>>;
3391
+ delegation: z.ZodOptional<z.ZodObject<{
3392
+ protocol: z.ZodEnum<["dexto-v1", "http-simple", "a2a-jsonrpc", "mcp-http"]>;
3393
+ endpoint: z.ZodString;
3394
+ supportsSession: z.ZodBoolean;
3395
+ supportsStreaming: z.ZodOptional<z.ZodBoolean>;
3396
+ }, "strict", z.ZodTypeAny, {
3397
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
3398
+ endpoint: string;
3399
+ supportsSession: boolean;
3400
+ supportsStreaming?: boolean | undefined;
3401
+ }, {
3402
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
3403
+ endpoint: string;
3404
+ supportsSession: boolean;
3405
+ supportsStreaming?: boolean | undefined;
3406
+ }>>;
3407
+ owner: z.ZodOptional<z.ZodObject<{
3408
+ userId: z.ZodString;
3409
+ username: z.ZodString;
3410
+ email: z.ZodOptional<z.ZodString>;
3411
+ }, "strict", z.ZodTypeAny, {
3412
+ userId: string;
3413
+ username: string;
3414
+ email?: string | undefined;
3415
+ }, {
3416
+ userId: string;
3417
+ username: string;
3418
+ email?: string | undefined;
3419
+ }>>;
3420
+ }, "strict", z.ZodTypeAny, {
3421
+ authentication?: {
3422
+ schemes: string[];
3423
+ credentials?: string | undefined;
3424
+ } | undefined;
3425
+ delegation?: {
3426
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
3427
+ endpoint: string;
3428
+ supportsSession: boolean;
3429
+ supportsStreaming?: boolean | undefined;
3430
+ } | undefined;
3431
+ owner?: {
3432
+ userId: string;
3433
+ username: string;
3434
+ email?: string | undefined;
3435
+ } | undefined;
3436
+ }, {
3437
+ authentication?: {
3438
+ schemes?: string[] | undefined;
3439
+ credentials?: string | undefined;
3440
+ } | undefined;
3441
+ delegation?: {
3442
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
3443
+ endpoint: string;
3444
+ supportsSession: boolean;
3445
+ supportsStreaming?: boolean | undefined;
3446
+ } | undefined;
3447
+ owner?: {
3448
+ userId: string;
3449
+ username: string;
3450
+ email?: string | undefined;
3451
+ } | undefined;
3452
+ }>>;
3453
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1572
3454
  provider?: {
1573
3455
  url: string;
1574
3456
  organization: string;
1575
3457
  } | undefined;
3458
+ iconUrl?: string | undefined;
1576
3459
  documentationUrl?: string | undefined;
3460
+ additionalInterfaces?: {
3461
+ url: string;
3462
+ transport: "JSONRPC" | "GRPC" | "HTTP+JSON";
3463
+ }[] | undefined;
3464
+ securitySchemes?: Record<string, {
3465
+ type: "apiKey";
3466
+ name: string;
3467
+ in: "query" | "header" | "cookie";
3468
+ description?: string | undefined;
3469
+ } | {
3470
+ type: "http";
3471
+ scheme: string;
3472
+ description?: string | undefined;
3473
+ bearerFormat?: string | undefined;
3474
+ } | {
3475
+ type: "oauth2";
3476
+ flows: {
3477
+ password?: {
3478
+ scopes: Record<string, string>;
3479
+ authorizationUrl?: string | undefined;
3480
+ tokenUrl?: string | undefined;
3481
+ refreshUrl?: string | undefined;
3482
+ } | undefined;
3483
+ implicit?: {
3484
+ scopes: Record<string, string>;
3485
+ authorizationUrl?: string | undefined;
3486
+ tokenUrl?: string | undefined;
3487
+ refreshUrl?: string | undefined;
3488
+ } | undefined;
3489
+ clientCredentials?: {
3490
+ scopes: Record<string, string>;
3491
+ authorizationUrl?: string | undefined;
3492
+ tokenUrl?: string | undefined;
3493
+ refreshUrl?: string | undefined;
3494
+ } | undefined;
3495
+ authorizationCode?: {
3496
+ scopes: Record<string, string>;
3497
+ authorizationUrl?: string | undefined;
3498
+ tokenUrl?: string | undefined;
3499
+ refreshUrl?: string | undefined;
3500
+ } | undefined;
3501
+ };
3502
+ description?: string | undefined;
3503
+ } | {
3504
+ type: "openIdConnect";
3505
+ openIdConnectUrl: string;
3506
+ description?: string | undefined;
3507
+ } | {
3508
+ type: "mutualTLS";
3509
+ description?: string | undefined;
3510
+ }> | undefined;
3511
+ security?: Record<string, string[]>[] | undefined;
3512
+ supportsAuthenticatedExtendedCard?: boolean | undefined;
3513
+ signatures?: {
3514
+ protected: string;
3515
+ signature: string;
3516
+ }[] | undefined;
1577
3517
  } | undefined;
1578
3518
  greeting?: string | undefined;
1579
- telemetry?: {
1580
- enabled?: boolean | undefined;
1581
- serviceName?: string | undefined;
1582
- tracerName?: string | undefined;
1583
- export?: {
1584
- type: "otlp";
1585
- headers?: Record<string, string> | undefined;
1586
- protocol?: "http" | "grpc" | undefined;
1587
- endpoint?: string | undefined;
1588
- } | {
1589
- type: "console";
1590
- } | undefined;
3519
+ memories?: {
3520
+ enabled: boolean;
3521
+ priority: number;
3522
+ includeTimestamps: boolean;
3523
+ includeTags: boolean;
3524
+ pinnedOnly: boolean;
3525
+ limit?: number | undefined;
1591
3526
  } | undefined;
1592
3527
  }, {
1593
3528
  llm: {
1594
3529
  apiKey: string;
1595
- provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
1596
3530
  model: string;
1597
- maxIterations?: number | undefined;
3531
+ provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
1598
3532
  router?: "vercel" | "in-built" | undefined;
3533
+ maxIterations?: number | undefined;
1599
3534
  baseURL?: string | undefined;
1600
3535
  maxInputTokens?: number | undefined;
1601
3536
  maxOutputTokens?: number | undefined;
@@ -1605,15 +3540,15 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
1605
3540
  systemPrompt: string | {
1606
3541
  contributors?: ({
1607
3542
  type: "static";
3543
+ content: string;
1608
3544
  id: string;
1609
3545
  priority: number;
1610
- content: string;
1611
3546
  enabled?: boolean | undefined;
1612
3547
  } | {
1613
3548
  type: "dynamic";
1614
3549
  id: string;
3550
+ source: "resources" | "dateTime";
1615
3551
  priority: number;
1616
- source: "dateTime" | "memorySummary" | "resources";
1617
3552
  enabled?: boolean | undefined;
1618
3553
  } | {
1619
3554
  type: "file";
@@ -1628,17 +3563,6 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
1628
3563
  includeMetadata?: boolean | undefined;
1629
3564
  } | undefined;
1630
3565
  enabled?: boolean | undefined;
1631
- } | {
1632
- type: "memory";
1633
- id: string;
1634
- priority: number;
1635
- options?: {
1636
- includeTimestamps?: boolean | undefined;
1637
- includeTags?: boolean | undefined;
1638
- limit?: number | undefined;
1639
- pinnedOnly?: boolean | undefined;
1640
- } | undefined;
1641
- enabled?: boolean | undefined;
1642
3566
  })[] | undefined;
1643
3567
  };
1644
3568
  storage?: {
@@ -1649,13 +3573,12 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
1649
3573
  idleTimeoutMillis?: number | undefined;
1650
3574
  connectionTimeoutMillis?: number | undefined;
1651
3575
  } | {
3576
+ path: string;
1652
3577
  type: "sqlite";
1653
- path?: string | undefined;
1654
3578
  options?: Record<string, any> | undefined;
1655
3579
  maxConnections?: number | undefined;
1656
3580
  idleTimeoutMillis?: number | undefined;
1657
3581
  connectionTimeoutMillis?: number | undefined;
1658
- database?: string | undefined;
1659
3582
  } | {
1660
3583
  type: "postgres";
1661
3584
  password?: string | undefined;
@@ -1687,50 +3610,240 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
1687
3610
  port?: number | undefined;
1688
3611
  database?: number | undefined;
1689
3612
  };
1690
- blob?: {
3613
+ blob: {
1691
3614
  type: "in-memory";
1692
3615
  maxBlobSize?: number | undefined;
1693
3616
  maxTotalSize?: number | undefined;
1694
3617
  } | {
1695
3618
  type: "local";
3619
+ storePath: string;
1696
3620
  maxBlobSize?: number | undefined;
1697
3621
  maxTotalSize?: number | undefined;
1698
- storePath?: string | undefined;
1699
3622
  cleanupAfterDays?: number | undefined;
3623
+ };
3624
+ } | undefined;
3625
+ telemetry?: {
3626
+ enabled?: boolean | undefined;
3627
+ serviceName?: string | undefined;
3628
+ tracerName?: string | undefined;
3629
+ export?: {
3630
+ type: "otlp";
3631
+ headers?: Record<string, string> | undefined;
3632
+ protocol?: "http" | "grpc" | undefined;
3633
+ endpoint?: string | undefined;
3634
+ } | {
3635
+ type: "console";
1700
3636
  } | undefined;
1701
3637
  } | undefined;
3638
+ logger?: {
3639
+ level?: "debug" | "info" | "warn" | "error" | "silly" | undefined;
3640
+ transports?: ({
3641
+ type: "console";
3642
+ colorize?: boolean | undefined;
3643
+ } | {
3644
+ path: string;
3645
+ type: "file";
3646
+ maxFiles?: number | undefined;
3647
+ maxSize?: number | undefined;
3648
+ } | {
3649
+ token: string;
3650
+ type: "upstash";
3651
+ url: string;
3652
+ listName?: string | undefined;
3653
+ maxListLength?: number | undefined;
3654
+ batchSize?: number | undefined;
3655
+ })[] | undefined;
3656
+ } | undefined;
3657
+ elicitation?: {
3658
+ timeout?: number | undefined;
3659
+ enabled?: boolean | undefined;
3660
+ } | undefined;
3661
+ prompts?: ({
3662
+ prompt: string;
3663
+ type: "inline";
3664
+ id: string;
3665
+ description?: string | undefined;
3666
+ title?: string | undefined;
3667
+ priority?: number | undefined;
3668
+ category?: string | undefined;
3669
+ showInStarters?: boolean | undefined;
3670
+ } | {
3671
+ file: string;
3672
+ type: "file";
3673
+ showInStarters?: boolean | undefined;
3674
+ })[] | undefined;
3675
+ agentId?: string | undefined;
1702
3676
  agentCard?: {
1703
- name: string;
3677
+ description: string;
1704
3678
  url: string;
3679
+ name: string;
1705
3680
  version: string;
1706
- provider?: {
1707
- url: string;
1708
- organization: string;
1709
- } | undefined;
1710
- description?: string | undefined;
1711
- documentationUrl?: string | undefined;
3681
+ metadata?: z.objectInputType<{
3682
+ dexto: z.ZodOptional<z.ZodObject<{
3683
+ authentication: z.ZodOptional<z.ZodObject<{
3684
+ schemes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3685
+ credentials: z.ZodOptional<z.ZodString>;
3686
+ }, "strict", z.ZodTypeAny, {
3687
+ schemes: string[];
3688
+ credentials?: string | undefined;
3689
+ }, {
3690
+ schemes?: string[] | undefined;
3691
+ credentials?: string | undefined;
3692
+ }>>;
3693
+ delegation: z.ZodOptional<z.ZodObject<{
3694
+ protocol: z.ZodEnum<["dexto-v1", "http-simple", "a2a-jsonrpc", "mcp-http"]>;
3695
+ endpoint: z.ZodString;
3696
+ supportsSession: z.ZodBoolean;
3697
+ supportsStreaming: z.ZodOptional<z.ZodBoolean>;
3698
+ }, "strict", z.ZodTypeAny, {
3699
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
3700
+ endpoint: string;
3701
+ supportsSession: boolean;
3702
+ supportsStreaming?: boolean | undefined;
3703
+ }, {
3704
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
3705
+ endpoint: string;
3706
+ supportsSession: boolean;
3707
+ supportsStreaming?: boolean | undefined;
3708
+ }>>;
3709
+ owner: z.ZodOptional<z.ZodObject<{
3710
+ userId: z.ZodString;
3711
+ username: z.ZodString;
3712
+ email: z.ZodOptional<z.ZodString>;
3713
+ }, "strict", z.ZodTypeAny, {
3714
+ userId: string;
3715
+ username: string;
3716
+ email?: string | undefined;
3717
+ }, {
3718
+ userId: string;
3719
+ username: string;
3720
+ email?: string | undefined;
3721
+ }>>;
3722
+ }, "strict", z.ZodTypeAny, {
3723
+ authentication?: {
3724
+ schemes: string[];
3725
+ credentials?: string | undefined;
3726
+ } | undefined;
3727
+ delegation?: {
3728
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
3729
+ endpoint: string;
3730
+ supportsSession: boolean;
3731
+ supportsStreaming?: boolean | undefined;
3732
+ } | undefined;
3733
+ owner?: {
3734
+ userId: string;
3735
+ username: string;
3736
+ email?: string | undefined;
3737
+ } | undefined;
3738
+ }, {
3739
+ authentication?: {
3740
+ schemes?: string[] | undefined;
3741
+ credentials?: string | undefined;
3742
+ } | undefined;
3743
+ delegation?: {
3744
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
3745
+ endpoint: string;
3746
+ supportsSession: boolean;
3747
+ supportsStreaming?: boolean | undefined;
3748
+ } | undefined;
3749
+ owner?: {
3750
+ userId: string;
3751
+ username: string;
3752
+ email?: string | undefined;
3753
+ } | undefined;
3754
+ }>>;
3755
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1712
3756
  capabilities?: {
1713
3757
  streaming?: boolean | undefined;
1714
3758
  pushNotifications?: boolean | undefined;
1715
3759
  stateTransitionHistory?: boolean | undefined;
1716
3760
  } | undefined;
1717
- authentication?: {
1718
- schemes?: string[] | undefined;
1719
- credentials?: string | undefined;
3761
+ provider?: {
3762
+ url: string;
3763
+ organization: string;
1720
3764
  } | undefined;
3765
+ protocolVersion?: string | undefined;
3766
+ preferredTransport?: "JSONRPC" | "GRPC" | "HTTP+JSON" | undefined;
1721
3767
  defaultInputModes?: string[] | undefined;
1722
3768
  defaultOutputModes?: string[] | undefined;
1723
3769
  skills?: {
1724
- name: string;
1725
3770
  description: string;
3771
+ name: string;
1726
3772
  id: string;
1727
3773
  tags: string[];
1728
3774
  examples?: string[] | undefined;
1729
3775
  inputModes?: string[] | undefined;
1730
3776
  outputModes?: string[] | undefined;
1731
3777
  }[] | undefined;
3778
+ iconUrl?: string | undefined;
3779
+ documentationUrl?: string | undefined;
3780
+ additionalInterfaces?: {
3781
+ url: string;
3782
+ transport: "JSONRPC" | "GRPC" | "HTTP+JSON";
3783
+ }[] | undefined;
3784
+ securitySchemes?: Record<string, {
3785
+ type: "apiKey";
3786
+ name: string;
3787
+ in: "query" | "header" | "cookie";
3788
+ description?: string | undefined;
3789
+ } | {
3790
+ type: "http";
3791
+ scheme: string;
3792
+ description?: string | undefined;
3793
+ bearerFormat?: string | undefined;
3794
+ } | {
3795
+ type: "oauth2";
3796
+ flows: {
3797
+ password?: {
3798
+ scopes: Record<string, string>;
3799
+ authorizationUrl?: string | undefined;
3800
+ tokenUrl?: string | undefined;
3801
+ refreshUrl?: string | undefined;
3802
+ } | undefined;
3803
+ implicit?: {
3804
+ scopes: Record<string, string>;
3805
+ authorizationUrl?: string | undefined;
3806
+ tokenUrl?: string | undefined;
3807
+ refreshUrl?: string | undefined;
3808
+ } | undefined;
3809
+ clientCredentials?: {
3810
+ scopes: Record<string, string>;
3811
+ authorizationUrl?: string | undefined;
3812
+ tokenUrl?: string | undefined;
3813
+ refreshUrl?: string | undefined;
3814
+ } | undefined;
3815
+ authorizationCode?: {
3816
+ scopes: Record<string, string>;
3817
+ authorizationUrl?: string | undefined;
3818
+ tokenUrl?: string | undefined;
3819
+ refreshUrl?: string | undefined;
3820
+ } | undefined;
3821
+ };
3822
+ description?: string | undefined;
3823
+ } | {
3824
+ type: "openIdConnect";
3825
+ openIdConnectUrl: string;
3826
+ description?: string | undefined;
3827
+ } | {
3828
+ type: "mutualTLS";
3829
+ description?: string | undefined;
3830
+ }> | undefined;
3831
+ security?: Record<string, string[]>[] | undefined;
3832
+ supportsAuthenticatedExtendedCard?: boolean | undefined;
3833
+ signatures?: {
3834
+ protected: string;
3835
+ signature: string;
3836
+ }[] | undefined;
1732
3837
  } | undefined;
1733
3838
  greeting?: string | undefined;
3839
+ memories?: {
3840
+ enabled?: boolean | undefined;
3841
+ limit?: number | undefined;
3842
+ priority?: number | undefined;
3843
+ includeTimestamps?: boolean | undefined;
3844
+ includeTags?: boolean | undefined;
3845
+ pinnedOnly?: boolean | undefined;
3846
+ } | undefined;
1734
3847
  mcpServers?: Record<string, {
1735
3848
  type: "stdio";
1736
3849
  command: string;
@@ -1751,14 +3864,14 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
1751
3864
  connectionMode?: "strict" | "lenient" | undefined;
1752
3865
  headers?: Record<string, string> | undefined;
1753
3866
  }> | undefined;
1754
- internalTools?: ("search_history" | "ask_user" | "read_file" | "glob_files" | "grep_content" | "write_file" | "edit_file" | "bash_exec" | "bash_output" | "kill_process")[] | undefined;
3867
+ internalTools?: ("search_history" | "ask_user" | "read_file" | "glob_files" | "grep_content" | "write_file" | "edit_file" | "bash_exec" | "bash_output" | "kill_process" | "delegate_to_url")[] | undefined;
1755
3868
  sessions?: {
1756
3869
  maxSessions?: number | undefined;
1757
3870
  sessionTTL?: number | undefined;
1758
3871
  } | undefined;
1759
3872
  toolConfirmation?: {
1760
3873
  timeout?: number | undefined;
1761
- mode?: "event-based" | "auto-approve" | "auto-deny" | undefined;
3874
+ mode?: "manual" | "auto-approve" | "auto-deny" | undefined;
1762
3875
  allowedToolsStorage?: "storage" | "memory" | undefined;
1763
3876
  toolPolicies?: {
1764
3877
  alwaysAllow?: string[] | undefined;
@@ -1787,20 +3900,12 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
1787
3900
  type: "blob";
1788
3901
  })[] | undefined;
1789
3902
  } | undefined;
1790
- starterPrompts?: {
1791
- prompt: string;
1792
- id: string;
1793
- title?: string | undefined;
1794
- description?: string | undefined;
1795
- priority?: number | undefined;
1796
- category?: string | undefined;
1797
- }[] | undefined;
1798
3903
  plugins?: {
1799
3904
  custom?: {
1800
3905
  name: string;
1801
3906
  priority: number;
1802
- blocking: boolean;
1803
3907
  module: string;
3908
+ blocking: boolean;
1804
3909
  config?: Record<string, any> | undefined;
1805
3910
  enabled?: boolean | undefined;
1806
3911
  }[] | undefined;
@@ -1815,19 +3920,6 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
1815
3920
  enabled: z.ZodDefault<z.ZodBoolean>;
1816
3921
  }, z.ZodTypeAny, "passthrough"> | undefined;
1817
3922
  } | undefined;
1818
- telemetry?: {
1819
- enabled?: boolean | undefined;
1820
- serviceName?: string | undefined;
1821
- tracerName?: string | undefined;
1822
- export?: {
1823
- type: "otlp";
1824
- headers?: Record<string, string> | undefined;
1825
- protocol?: "http" | "grpc" | undefined;
1826
- endpoint?: string | undefined;
1827
- } | {
1828
- type: "console";
1829
- } | undefined;
1830
- } | undefined;
1831
3923
  }>, "ValidatedAgentConfig">;
1832
3924
  export type AgentConfig = z.input<typeof AgentConfigSchema>;
1833
3925
  export type ValidatedAgentConfig = z.output<typeof AgentConfigSchema>;