@dexto/core 1.2.4 → 1.2.5

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 (523) 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 +164 -64
  15. package/dist/agent/schemas.d.ts +2605 -517
  16. package/dist/agent/schemas.d.ts.map +1 -1
  17. package/dist/agent/schemas.js +167 -64
  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/manager.cjs +9 -7
  210. package/dist/memory/manager.d.ts +3 -1
  211. package/dist/memory/manager.d.ts.map +1 -1
  212. package/dist/memory/manager.js +9 -7
  213. package/dist/memory/schemas.d.ts +6 -6
  214. package/dist/plugins/manager.cjs +21 -19
  215. package/dist/plugins/manager.d.ts +3 -1
  216. package/dist/plugins/manager.d.ts.map +1 -1
  217. package/dist/plugins/manager.js +21 -19
  218. package/dist/plugins/schemas.d.ts +9 -9
  219. package/dist/plugins/types.d.ts +2 -2
  220. package/dist/plugins/types.d.ts.map +1 -1
  221. package/dist/process/command-validator.cjs +30 -20
  222. package/dist/process/command-validator.d.ts +4 -1
  223. package/dist/process/command-validator.d.ts.map +1 -1
  224. package/dist/process/command-validator.js +30 -20
  225. package/dist/process/process-service.cjs +23 -21
  226. package/dist/process/process-service.d.ts +3 -1
  227. package/dist/process/process-service.d.ts.map +1 -1
  228. package/dist/process/process-service.js +23 -21
  229. package/dist/prompts/prompt-manager.cjs +25 -18
  230. package/dist/prompts/prompt-manager.d.ts +3 -1
  231. package/dist/prompts/prompt-manager.d.ts.map +1 -1
  232. package/dist/prompts/prompt-manager.js +25 -18
  233. package/dist/prompts/providers/custom-prompt-provider.cjs +11 -7
  234. package/dist/prompts/providers/custom-prompt-provider.d.ts +3 -1
  235. package/dist/prompts/providers/custom-prompt-provider.d.ts.map +1 -1
  236. package/dist/prompts/providers/custom-prompt-provider.js +11 -7
  237. package/dist/prompts/providers/file-prompt-provider.cjs +14 -12
  238. package/dist/prompts/providers/file-prompt-provider.d.ts +3 -1
  239. package/dist/prompts/providers/file-prompt-provider.d.ts.map +1 -1
  240. package/dist/prompts/providers/file-prompt-provider.js +14 -12
  241. package/dist/prompts/providers/mcp-prompt-provider.cjs +7 -6
  242. package/dist/prompts/providers/mcp-prompt-provider.d.ts +3 -1
  243. package/dist/prompts/providers/mcp-prompt-provider.d.ts.map +1 -1
  244. package/dist/prompts/providers/mcp-prompt-provider.js +7 -6
  245. package/dist/prompts/providers/starter-prompt-provider.cjs +7 -5
  246. package/dist/prompts/providers/starter-prompt-provider.d.ts +3 -1
  247. package/dist/prompts/providers/starter-prompt-provider.d.ts.map +1 -1
  248. package/dist/prompts/providers/starter-prompt-provider.js +7 -5
  249. package/dist/prompts/schemas.d.ts +3 -3
  250. package/dist/resources/handlers/blob-handler.cjs +15 -11
  251. package/dist/resources/handlers/blob-handler.d.ts +3 -1
  252. package/dist/resources/handlers/blob-handler.d.ts.map +1 -1
  253. package/dist/resources/handlers/blob-handler.js +15 -11
  254. package/dist/resources/handlers/factory.cjs +3 -3
  255. package/dist/resources/handlers/factory.d.ts +2 -1
  256. package/dist/resources/handlers/factory.d.ts.map +1 -1
  257. package/dist/resources/handlers/factory.js +3 -3
  258. package/dist/resources/handlers/filesystem-handler.cjs +10 -8
  259. package/dist/resources/handlers/filesystem-handler.d.ts +3 -1
  260. package/dist/resources/handlers/filesystem-handler.d.ts.map +1 -1
  261. package/dist/resources/handlers/filesystem-handler.js +10 -8
  262. package/dist/resources/internal-provider.cjs +28 -20
  263. package/dist/resources/internal-provider.d.ts +3 -1
  264. package/dist/resources/internal-provider.d.ts.map +1 -1
  265. package/dist/resources/internal-provider.js +28 -20
  266. package/dist/resources/manager.cjs +34 -25
  267. package/dist/resources/manager.d.ts +3 -1
  268. package/dist/resources/manager.d.ts.map +1 -1
  269. package/dist/resources/manager.js +34 -25
  270. package/dist/resources/schemas.d.ts +6 -6
  271. package/dist/search/search-service.cjs +8 -6
  272. package/dist/search/search-service.d.ts +3 -1
  273. package/dist/search/search-service.d.ts.map +1 -1
  274. package/dist/search/search-service.js +8 -6
  275. package/dist/session/chat-session.cjs +40 -27
  276. package/dist/session/chat-session.d.ts +10 -7
  277. package/dist/session/chat-session.d.ts.map +1 -1
  278. package/dist/session/chat-session.js +40 -27
  279. package/dist/session/history/database.cjs +18 -11
  280. package/dist/session/history/database.d.ts +3 -1
  281. package/dist/session/history/database.d.ts.map +1 -1
  282. package/dist/session/history/database.js +18 -11
  283. package/dist/session/history/factory.cjs +2 -2
  284. package/dist/session/history/factory.d.ts +5 -1
  285. package/dist/session/history/factory.d.ts.map +1 -1
  286. package/dist/session/history/factory.js +2 -2
  287. package/dist/session/session-manager.cjs +37 -53
  288. package/dist/session/session-manager.d.ts +3 -17
  289. package/dist/session/session-manager.d.ts.map +1 -1
  290. package/dist/session/session-manager.js +37 -53
  291. package/dist/session/title-generator.cjs +3 -2
  292. package/dist/session/title-generator.d.ts +2 -1
  293. package/dist/session/title-generator.d.ts.map +1 -1
  294. package/dist/session/title-generator.js +3 -2
  295. package/dist/storage/blob/factory.cjs +9 -18
  296. package/dist/storage/blob/factory.d.ts +5 -4
  297. package/dist/storage/blob/factory.d.ts.map +1 -1
  298. package/dist/storage/blob/factory.js +8 -17
  299. package/dist/storage/blob/local-blob-store.cjs +25 -32
  300. package/dist/storage/blob/local-blob-store.d.ts +3 -2
  301. package/dist/storage/blob/local-blob-store.d.ts.map +1 -1
  302. package/dist/storage/blob/local-blob-store.js +25 -32
  303. package/dist/storage/blob/memory-blob-store.cjs +326 -0
  304. package/dist/storage/blob/memory-blob-store.d.ts +66 -0
  305. package/dist/storage/blob/memory-blob-store.d.ts.map +1 -0
  306. package/dist/storage/blob/memory-blob-store.js +303 -0
  307. package/dist/storage/blob/schemas.cjs +3 -1
  308. package/dist/storage/blob/schemas.d.ts +6 -6
  309. package/dist/storage/blob/schemas.d.ts.map +1 -1
  310. package/dist/storage/blob/schemas.js +3 -1
  311. package/dist/storage/cache/factory.cjs +7 -8
  312. package/dist/storage/cache/factory.d.ts +4 -1
  313. package/dist/storage/cache/factory.d.ts.map +1 -1
  314. package/dist/storage/cache/factory.js +4 -5
  315. package/dist/storage/cache/redis-store.cjs +4 -1
  316. package/dist/storage/cache/redis-store.d.ts +3 -1
  317. package/dist/storage/cache/redis-store.d.ts.map +1 -1
  318. package/dist/storage/cache/redis-store.js +4 -1
  319. package/dist/storage/database/factory.cjs +13 -16
  320. package/dist/storage/database/factory.d.ts +5 -3
  321. package/dist/storage/database/factory.d.ts.map +1 -1
  322. package/dist/storage/database/factory.js +9 -12
  323. package/dist/storage/database/postgres-store.cjs +4 -1
  324. package/dist/storage/database/postgres-store.d.ts +3 -1
  325. package/dist/storage/database/postgres-store.d.ts.map +1 -1
  326. package/dist/storage/database/postgres-store.js +4 -1
  327. package/dist/storage/database/schemas.cjs +3 -4
  328. package/dist/storage/database/schemas.d.ts +8 -16
  329. package/dist/storage/database/schemas.d.ts.map +1 -1
  330. package/dist/storage/database/schemas.js +3 -4
  331. package/dist/storage/database/sqlite-store.cjs +17 -45
  332. package/dist/storage/database/sqlite-store.d.ts +3 -3
  333. package/dist/storage/database/sqlite-store.d.ts.map +1 -1
  334. package/dist/storage/database/sqlite-store.js +17 -45
  335. package/dist/storage/schemas.cjs +3 -1
  336. package/dist/storage/schemas.d.ts +16 -23
  337. package/dist/storage/schemas.d.ts.map +1 -1
  338. package/dist/storage/schemas.js +3 -1
  339. package/dist/storage/storage-manager.cjs +15 -15
  340. package/dist/storage/storage-manager.d.ts +6 -6
  341. package/dist/storage/storage-manager.d.ts.map +1 -1
  342. package/dist/storage/storage-manager.js +15 -15
  343. package/dist/systemPrompt/contributors.cjs +15 -15
  344. package/dist/systemPrompt/contributors.d.ts +5 -3
  345. package/dist/systemPrompt/contributors.d.ts.map +1 -1
  346. package/dist/systemPrompt/contributors.js +15 -15
  347. package/dist/systemPrompt/manager.cjs +11 -8
  348. package/dist/systemPrompt/manager.d.ts +4 -2
  349. package/dist/systemPrompt/manager.d.ts.map +1 -1
  350. package/dist/systemPrompt/manager.js +11 -8
  351. package/dist/systemPrompt/schemas.cjs +21 -1
  352. package/dist/systemPrompt/schemas.d.ts +53 -53
  353. package/dist/systemPrompt/schemas.d.ts.map +1 -1
  354. package/dist/systemPrompt/schemas.js +11 -1
  355. package/dist/telemetry/decorators.cjs +54 -15
  356. package/dist/telemetry/decorators.d.ts.map +1 -1
  357. package/dist/telemetry/decorators.js +54 -15
  358. package/dist/telemetry/utils.cjs +21 -14
  359. package/dist/telemetry/utils.d.ts +7 -3
  360. package/dist/telemetry/utils.d.ts.map +1 -1
  361. package/dist/telemetry/utils.js +21 -14
  362. package/dist/tools/confirmation/allowed-tools-provider/factory.cjs +2 -2
  363. package/dist/tools/confirmation/allowed-tools-provider/factory.d.ts +2 -1
  364. package/dist/tools/confirmation/allowed-tools-provider/factory.d.ts.map +1 -1
  365. package/dist/tools/confirmation/allowed-tools-provider/factory.js +2 -2
  366. package/dist/tools/confirmation/allowed-tools-provider/storage.cjs +7 -6
  367. package/dist/tools/confirmation/allowed-tools-provider/storage.d.ts +3 -1
  368. package/dist/tools/confirmation/allowed-tools-provider/storage.d.ts.map +1 -1
  369. package/dist/tools/confirmation/allowed-tools-provider/storage.js +7 -6
  370. package/dist/tools/errors.cjs +2 -1
  371. package/dist/tools/errors.d.ts.map +1 -1
  372. package/dist/tools/errors.js +2 -1
  373. package/dist/tools/internal-tools/constants.cjs +2 -1
  374. package/dist/tools/internal-tools/constants.d.ts +1 -1
  375. package/dist/tools/internal-tools/constants.d.ts.map +1 -1
  376. package/dist/tools/internal-tools/constants.js +2 -1
  377. package/dist/tools/internal-tools/implementations/bash-exec-tool.cjs +1 -1
  378. package/dist/tools/internal-tools/implementations/bash-exec-tool.js +1 -1
  379. package/dist/tools/internal-tools/implementations/delegate-to-url-tool.cjs +192 -0
  380. package/dist/tools/internal-tools/implementations/delegate-to-url-tool.d.ts +33 -0
  381. package/dist/tools/internal-tools/implementations/delegate-to-url-tool.d.ts.map +1 -0
  382. package/dist/tools/internal-tools/implementations/delegate-to-url-tool.js +169 -0
  383. package/dist/tools/internal-tools/provider.cjs +21 -17
  384. package/dist/tools/internal-tools/provider.d.ts +3 -1
  385. package/dist/tools/internal-tools/provider.d.ts.map +1 -1
  386. package/dist/tools/internal-tools/provider.js +21 -17
  387. package/dist/tools/internal-tools/registry.cjs +5 -0
  388. package/dist/tools/internal-tools/registry.d.ts.map +1 -1
  389. package/dist/tools/internal-tools/registry.js +5 -0
  390. package/dist/tools/schemas.cjs +16 -4
  391. package/dist/tools/schemas.d.ts +21 -9
  392. package/dist/tools/schemas.d.ts.map +1 -1
  393. package/dist/tools/schemas.js +15 -4
  394. package/dist/tools/tool-manager.cjs +64 -47
  395. package/dist/tools/tool-manager.d.ts +4 -2
  396. package/dist/tools/tool-manager.d.ts.map +1 -1
  397. package/dist/tools/tool-manager.js +61 -44
  398. package/dist/tools/types.d.ts +0 -4
  399. package/dist/tools/types.d.ts.map +1 -1
  400. package/dist/utils/env-file.cjs +118 -0
  401. package/dist/utils/env-file.d.ts +5 -0
  402. package/dist/utils/env-file.d.ts.map +1 -0
  403. package/dist/utils/env-file.js +85 -0
  404. package/dist/utils/error-conversion.cjs +23 -1
  405. package/dist/utils/error-conversion.d.ts +2 -1
  406. package/dist/utils/error-conversion.d.ts.map +1 -1
  407. package/dist/utils/error-conversion.js +23 -1
  408. package/dist/utils/execution-context.d.ts.map +1 -1
  409. package/dist/utils/fs-walk.d.ts.map +1 -1
  410. package/dist/utils/index.cjs +7 -9
  411. package/dist/utils/index.d.ts +3 -4
  412. package/dist/utils/index.d.ts.map +1 -1
  413. package/dist/utils/index.js +3 -4
  414. package/dist/utils/path.cjs +22 -57
  415. package/dist/utils/path.d.ts +8 -7
  416. package/dist/utils/path.d.ts.map +1 -1
  417. package/dist/utils/path.js +21 -54
  418. package/dist/utils/result.cjs +37 -14
  419. package/dist/utils/result.d.ts.map +1 -1
  420. package/dist/utils/result.js +37 -14
  421. package/dist/utils/schema.cjs +2 -3
  422. package/dist/utils/schema.d.ts +2 -1
  423. package/dist/utils/schema.d.ts.map +1 -1
  424. package/dist/utils/schema.js +1 -2
  425. package/dist/utils/service-initializer.cjs +87 -61
  426. package/dist/utils/service-initializer.d.ts +4 -2
  427. package/dist/utils/service-initializer.d.ts.map +1 -1
  428. package/dist/utils/service-initializer.js +69 -43
  429. package/package.json +7 -3
  430. package/dist/Dexto.cjs +0 -251
  431. package/dist/Dexto.d.ts +0 -191
  432. package/dist/Dexto.d.ts.map +0 -1
  433. package/dist/Dexto.js +0 -228
  434. package/dist/agent/registry/error-codes.cjs +0 -44
  435. package/dist/agent/registry/error-codes.d.ts +0 -21
  436. package/dist/agent/registry/error-codes.d.ts.map +0 -1
  437. package/dist/agent/registry/error-codes.js +0 -21
  438. package/dist/agent/registry/errors.cjs +0 -188
  439. package/dist/agent/registry/errors.d.ts +0 -63
  440. package/dist/agent/registry/errors.d.ts.map +0 -1
  441. package/dist/agent/registry/errors.js +0 -165
  442. package/dist/agent/registry/registry.cjs +0 -479
  443. package/dist/agent/registry/registry.d.ts +0 -130
  444. package/dist/agent/registry/registry.d.ts.map +0 -1
  445. package/dist/agent/registry/registry.js +0 -453
  446. package/dist/agent/registry/types.cjs +0 -74
  447. package/dist/agent/registry/types.d.ts +0 -142
  448. package/dist/agent/registry/types.d.ts.map +0 -1
  449. package/dist/agent/registry/types.js +0 -48
  450. package/dist/agent/registry/user-registry.cjs +0 -140
  451. package/dist/agent/registry/user-registry.d.ts +0 -34
  452. package/dist/agent/registry/user-registry.d.ts.map +0 -1
  453. package/dist/agent/registry/user-registry.js +0 -105
  454. package/dist/approval/providers/event-based-approval-provider.cjs +0 -156
  455. package/dist/approval/providers/event-based-approval-provider.d.ts +0 -39
  456. package/dist/approval/providers/event-based-approval-provider.d.ts.map +0 -1
  457. package/dist/approval/providers/event-based-approval-provider.js +0 -133
  458. package/dist/approval/providers/factory.d.ts.map +0 -1
  459. package/dist/approval/providers/noop-approval-provider.cjs +0 -54
  460. package/dist/approval/providers/noop-approval-provider.d.ts +0 -18
  461. package/dist/approval/providers/noop-approval-provider.d.ts.map +0 -1
  462. package/dist/approval/providers/noop-approval-provider.js +0 -31
  463. package/dist/config/agent-resolver.cjs +0 -153
  464. package/dist/config/agent-resolver.d.ts +0 -14
  465. package/dist/config/agent-resolver.d.ts.map +0 -1
  466. package/dist/config/agent-resolver.js +0 -123
  467. package/dist/config/error-codes.cjs +0 -39
  468. package/dist/config/error-codes.d.ts +0 -16
  469. package/dist/config/error-codes.d.ts.map +0 -1
  470. package/dist/config/error-codes.js +0 -16
  471. package/dist/config/errors.cjs +0 -126
  472. package/dist/config/errors.d.ts +0 -34
  473. package/dist/config/errors.d.ts.map +0 -1
  474. package/dist/config/errors.js +0 -103
  475. package/dist/config/index.cjs +0 -26
  476. package/dist/config/index.d.ts +0 -4
  477. package/dist/config/index.d.ts.map +0 -1
  478. package/dist/config/index.js +0 -3
  479. package/dist/config/loader.cjs +0 -119
  480. package/dist/config/loader.d.ts +0 -16
  481. package/dist/config/loader.d.ts.map +0 -1
  482. package/dist/config/loader.js +0 -86
  483. package/dist/config/writer.cjs +0 -182
  484. package/dist/config/writer.d.ts +0 -35
  485. package/dist/config/writer.d.ts.map +0 -1
  486. package/dist/config/writer.js +0 -147
  487. package/dist/preferences/constants.d.ts +0 -2
  488. package/dist/preferences/constants.d.ts.map +0 -1
  489. package/dist/preferences/constants.js +0 -5
  490. package/dist/preferences/error-codes.d.ts +0 -8
  491. package/dist/preferences/error-codes.d.ts.map +0 -1
  492. package/dist/preferences/error-codes.js +0 -12
  493. package/dist/preferences/errors.cjs +0 -75
  494. package/dist/preferences/errors.d.ts +0 -18
  495. package/dist/preferences/errors.d.ts.map +0 -1
  496. package/dist/preferences/errors.js +0 -51
  497. package/dist/preferences/index.cjs +0 -55
  498. package/dist/preferences/index.d.ts +0 -6
  499. package/dist/preferences/index.d.ts.map +0 -1
  500. package/dist/preferences/index.js +0 -32
  501. package/dist/preferences/loader.cjs +0 -138
  502. package/dist/preferences/loader.d.ts +0 -51
  503. package/dist/preferences/loader.d.ts.map +0 -1
  504. package/dist/preferences/loader.js +0 -110
  505. package/dist/preferences/schemas.cjs +0 -75
  506. package/dist/preferences/schemas.d.ts +0 -110
  507. package/dist/preferences/schemas.d.ts.map +0 -1
  508. package/dist/preferences/schemas.js +0 -49
  509. package/dist/utils/api-key-store.cjs +0 -56
  510. package/dist/utils/api-key-store.d.ts +0 -24
  511. package/dist/utils/api-key-store.d.ts.map +0 -1
  512. package/dist/utils/api-key-store.js +0 -31
  513. package/dist/utils/env.cjs +0 -154
  514. package/dist/utils/env.d.ts +0 -28
  515. package/dist/utils/env.d.ts.map +0 -1
  516. package/dist/utils/env.js +0 -119
  517. package/dist/utils/port-utils.cjs +0 -37
  518. package/dist/utils/port-utils.d.ts +0 -10
  519. package/dist/utils/port-utils.d.ts.map +0 -1
  520. package/dist/utils/port-utils.js +0 -14
  521. package/dist/utils/port-utils.spec.cjs +0 -26
  522. package/dist/utils/port-utils.spec.js +0 -25
  523. /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;
@@ -300,15 +1134,15 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
300
1134
  source: z.ZodEnum<["dateTime", "memorySummary", "resources"]>;
301
1135
  }, "strict", z.ZodTypeAny, {
302
1136
  type: "dynamic";
1137
+ enabled: boolean;
303
1138
  id: string;
304
1139
  priority: number;
305
- enabled: boolean;
306
- source: "dateTime" | "memorySummary" | "resources";
1140
+ source: "resources" | "dateTime" | "memorySummary";
307
1141
  }, {
308
1142
  type: "dynamic";
309
1143
  id: string;
310
1144
  priority: number;
311
- source: "dateTime" | "memorySummary" | "resources";
1145
+ source: "resources" | "dateTime" | "memorySummary";
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";
@@ -385,16 +1219,16 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
385
1219
  pinnedOnly?: boolean | undefined;
386
1220
  }>>>;
387
1221
  }, "strict", z.ZodTypeAny, {
1222
+ type: "memory";
388
1223
  options: {
389
1224
  includeTimestamps: boolean;
390
1225
  includeTags: boolean;
391
1226
  pinnedOnly: boolean;
392
1227
  limit?: number | undefined;
393
1228
  };
394
- type: "memory";
1229
+ enabled: boolean;
395
1230
  id: string;
396
1231
  priority: number;
397
- enabled: boolean;
398
1232
  }, {
399
1233
  type: "memory";
400
1234
  id: string;
@@ -410,17 +1244,18 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
410
1244
  }, "strict", z.ZodTypeAny, {
411
1245
  contributors: ({
412
1246
  type: "static";
413
- id: string;
414
- priority: number;
415
1247
  enabled: boolean;
416
1248
  content: string;
1249
+ id: string;
1250
+ priority: number;
417
1251
  } | {
418
1252
  type: "dynamic";
1253
+ enabled: boolean;
419
1254
  id: string;
420
1255
  priority: number;
421
- enabled: boolean;
422
- source: "dateTime" | "memorySummary" | "resources";
1256
+ source: "resources" | "dateTime" | "memorySummary";
423
1257
  } | {
1258
+ type: "file";
424
1259
  options: {
425
1260
  includeFilenames: boolean;
426
1261
  separator: string;
@@ -428,62 +1263,1026 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
428
1263
  maxFileSize: number;
429
1264
  includeMetadata: boolean;
430
1265
  };
431
- type: "file";
1266
+ enabled: boolean;
432
1267
  id: string;
433
1268
  priority: number;
434
- enabled: boolean;
435
1269
  files: string[];
436
1270
  } | {
1271
+ type: "memory";
437
1272
  options: {
438
1273
  includeTimestamps: boolean;
439
1274
  includeTags: boolean;
440
1275
  pinnedOnly: boolean;
441
1276
  limit?: number | undefined;
442
1277
  };
443
- type: "memory";
1278
+ enabled: boolean;
444
1279
  id: string;
445
1280
  priority: number;
446
- enabled: boolean;
447
1281
  })[];
448
1282
  }, {
449
1283
  contributors?: ({
450
1284
  type: "static";
1285
+ content: string;
451
1286
  id: string;
452
1287
  priority: number;
453
- content: string;
454
1288
  enabled?: boolean | undefined;
455
1289
  } | {
456
1290
  type: "dynamic";
457
1291
  id: string;
458
1292
  priority: number;
459
- source: "dateTime" | "memorySummary" | "resources";
1293
+ source: "resources" | "dateTime" | "memorySummary";
1294
+ enabled?: boolean | undefined;
1295
+ } | {
1296
+ type: "file";
1297
+ id: string;
1298
+ priority: number;
1299
+ files: string[];
1300
+ options?: {
1301
+ includeFilenames?: boolean | undefined;
1302
+ separator?: string | undefined;
1303
+ errorHandling?: "error" | "skip" | undefined;
1304
+ maxFileSize?: number | undefined;
1305
+ includeMetadata?: boolean | undefined;
1306
+ } | undefined;
460
1307
  enabled?: boolean | undefined;
461
1308
  } | {
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;
1309
+ type: "memory";
1310
+ id: string;
1311
+ priority: number;
1312
+ options?: {
1313
+ includeTimestamps?: boolean | undefined;
1314
+ includeTags?: boolean | undefined;
1315
+ limit?: number | undefined;
1316
+ pinnedOnly?: boolean | undefined;
1317
+ } | undefined;
1318
+ enabled?: boolean | undefined;
1319
+ })[] | undefined;
1320
+ }>]>, "ValidatedSystemPromptConfig">;
1321
+ llm: z.ZodBranded<z.ZodEffects<z.ZodObject<{
1322
+ provider: z.ZodEnum<["openai", "openai-compatible", "anthropic", "google", "groq", "xai", "cohere"]>;
1323
+ model: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
1324
+ apiKey: z.ZodEffects<z.ZodString, string, string>;
1325
+ maxIterations: z.ZodDefault<z.ZodNumber>;
1326
+ router: z.ZodDefault<z.ZodEnum<["vercel", "in-built"]>>;
1327
+ baseURL: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string | undefined, string>>;
1328
+ maxInputTokens: z.ZodOptional<z.ZodNumber>;
1329
+ maxOutputTokens: z.ZodOptional<z.ZodNumber>;
1330
+ temperature: z.ZodOptional<z.ZodNumber>;
1331
+ allowedMediaTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1332
+ }, "strict", z.ZodTypeAny, {
1333
+ apiKey: string;
1334
+ model: string;
1335
+ provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
1336
+ router: "vercel" | "in-built";
1337
+ maxIterations: number;
1338
+ baseURL?: string | undefined;
1339
+ maxInputTokens?: number | undefined;
1340
+ maxOutputTokens?: number | undefined;
1341
+ temperature?: number | undefined;
1342
+ allowedMediaTypes?: string[] | undefined;
1343
+ }, {
1344
+ apiKey: string;
1345
+ model: string;
1346
+ provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
1347
+ router?: "vercel" | "in-built" | undefined;
1348
+ maxIterations?: number | undefined;
1349
+ baseURL?: string | undefined;
1350
+ maxInputTokens?: number | undefined;
1351
+ maxOutputTokens?: number | undefined;
1352
+ temperature?: number | undefined;
1353
+ allowedMediaTypes?: string[] | undefined;
1354
+ }>, {
1355
+ apiKey: string;
1356
+ model: string;
1357
+ provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
1358
+ router: "vercel" | "in-built";
1359
+ maxIterations: number;
1360
+ baseURL?: string | undefined;
1361
+ maxInputTokens?: number | undefined;
1362
+ maxOutputTokens?: number | undefined;
1363
+ temperature?: number | undefined;
1364
+ allowedMediaTypes?: string[] | undefined;
1365
+ }, {
1366
+ apiKey: string;
1367
+ model: string;
1368
+ provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
1369
+ router?: "vercel" | "in-built" | undefined;
1370
+ maxIterations?: number | undefined;
1371
+ baseURL?: string | undefined;
1372
+ maxInputTokens?: number | undefined;
1373
+ maxOutputTokens?: number | undefined;
1374
+ temperature?: number | undefined;
1375
+ allowedMediaTypes?: string[] | undefined;
1376
+ }>, "ValidatedLLMConfig">;
1377
+ agentCard: z.ZodOptional<z.ZodObject<{
1378
+ protocolVersion: z.ZodDefault<z.ZodString>;
1379
+ name: z.ZodString;
1380
+ description: z.ZodString;
1381
+ url: z.ZodString;
1382
+ version: z.ZodString;
1383
+ preferredTransport: z.ZodDefault<z.ZodEnum<["JSONRPC", "GRPC", "HTTP+JSON"]>>;
1384
+ defaultInputModes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1385
+ defaultOutputModes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1386
+ skills: z.ZodDefault<z.ZodArray<z.ZodObject<{
1387
+ id: z.ZodString;
1388
+ name: z.ZodString;
1389
+ description: z.ZodString;
1390
+ tags: z.ZodArray<z.ZodString, "many">;
1391
+ examples: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1392
+ inputModes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1393
+ outputModes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1394
+ }, "strict", z.ZodTypeAny, {
1395
+ description: string;
1396
+ name: string;
1397
+ id: string;
1398
+ tags: string[];
1399
+ inputModes: string[];
1400
+ outputModes: string[];
1401
+ examples?: string[] | undefined;
1402
+ }, {
1403
+ description: string;
1404
+ name: string;
1405
+ id: string;
1406
+ tags: string[];
1407
+ examples?: string[] | undefined;
1408
+ inputModes?: string[] | undefined;
1409
+ outputModes?: string[] | undefined;
1410
+ }>, "many">>;
1411
+ provider: z.ZodOptional<z.ZodObject<{
1412
+ organization: z.ZodString;
1413
+ url: z.ZodString;
1414
+ }, "strict", z.ZodTypeAny, {
1415
+ url: string;
1416
+ organization: string;
1417
+ }, {
1418
+ url: string;
1419
+ organization: string;
1420
+ }>>;
1421
+ iconUrl: z.ZodOptional<z.ZodString>;
1422
+ documentationUrl: z.ZodOptional<z.ZodString>;
1423
+ additionalInterfaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
1424
+ url: z.ZodString;
1425
+ transport: z.ZodEnum<["JSONRPC", "GRPC", "HTTP+JSON"]>;
1426
+ }, "strict", z.ZodTypeAny, {
1427
+ url: string;
1428
+ transport: "JSONRPC" | "GRPC" | "HTTP+JSON";
1429
+ }, {
1430
+ url: string;
1431
+ transport: "JSONRPC" | "GRPC" | "HTTP+JSON";
1432
+ }>, "many">>;
1433
+ capabilities: z.ZodDefault<z.ZodObject<{
1434
+ streaming: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1435
+ pushNotifications: z.ZodOptional<z.ZodBoolean>;
1436
+ stateTransitionHistory: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1437
+ }, "strict", z.ZodTypeAny, {
1438
+ streaming: boolean;
1439
+ stateTransitionHistory: boolean;
1440
+ pushNotifications?: boolean | undefined;
1441
+ }, {
1442
+ streaming?: boolean | undefined;
1443
+ pushNotifications?: boolean | undefined;
1444
+ stateTransitionHistory?: boolean | undefined;
1445
+ }>>;
1446
+ securitySchemes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1447
+ type: z.ZodLiteral<"apiKey">;
1448
+ name: z.ZodString;
1449
+ in: z.ZodEnum<["query", "header", "cookie"]>;
1450
+ description: z.ZodOptional<z.ZodString>;
1451
+ }, "strict", z.ZodTypeAny, {
1452
+ type: "apiKey";
1453
+ name: string;
1454
+ in: "query" | "header" | "cookie";
1455
+ description?: string | undefined;
1456
+ }, {
1457
+ type: "apiKey";
1458
+ name: string;
1459
+ in: "query" | "header" | "cookie";
1460
+ description?: string | undefined;
1461
+ }>, z.ZodObject<{
1462
+ type: z.ZodLiteral<"http">;
1463
+ scheme: z.ZodString;
1464
+ bearerFormat: z.ZodOptional<z.ZodString>;
1465
+ description: z.ZodOptional<z.ZodString>;
1466
+ }, "strict", z.ZodTypeAny, {
1467
+ type: "http";
1468
+ scheme: string;
1469
+ description?: string | undefined;
1470
+ bearerFormat?: string | undefined;
1471
+ }, {
1472
+ type: "http";
1473
+ scheme: string;
1474
+ description?: string | undefined;
1475
+ bearerFormat?: string | undefined;
1476
+ }>, z.ZodObject<{
1477
+ type: z.ZodLiteral<"oauth2">;
1478
+ flows: z.ZodObject<{
1479
+ implicit: z.ZodOptional<z.ZodObject<{
1480
+ authorizationUrl: z.ZodOptional<z.ZodString>;
1481
+ tokenUrl: z.ZodOptional<z.ZodString>;
1482
+ refreshUrl: z.ZodOptional<z.ZodString>;
1483
+ scopes: z.ZodRecord<z.ZodString, z.ZodString>;
1484
+ }, "strict", z.ZodTypeAny, {
1485
+ scopes: Record<string, string>;
1486
+ authorizationUrl?: string | undefined;
1487
+ tokenUrl?: string | undefined;
1488
+ refreshUrl?: string | undefined;
1489
+ }, {
1490
+ scopes: Record<string, string>;
1491
+ authorizationUrl?: string | undefined;
1492
+ tokenUrl?: string | undefined;
1493
+ refreshUrl?: string | undefined;
1494
+ }>>;
1495
+ password: z.ZodOptional<z.ZodObject<{
1496
+ authorizationUrl: z.ZodOptional<z.ZodString>;
1497
+ tokenUrl: z.ZodOptional<z.ZodString>;
1498
+ refreshUrl: z.ZodOptional<z.ZodString>;
1499
+ scopes: z.ZodRecord<z.ZodString, z.ZodString>;
1500
+ }, "strict", z.ZodTypeAny, {
1501
+ scopes: Record<string, string>;
1502
+ authorizationUrl?: string | undefined;
1503
+ tokenUrl?: string | undefined;
1504
+ refreshUrl?: string | undefined;
1505
+ }, {
1506
+ scopes: Record<string, string>;
1507
+ authorizationUrl?: string | undefined;
1508
+ tokenUrl?: string | undefined;
1509
+ refreshUrl?: string | undefined;
1510
+ }>>;
1511
+ clientCredentials: z.ZodOptional<z.ZodObject<{
1512
+ authorizationUrl: z.ZodOptional<z.ZodString>;
1513
+ tokenUrl: z.ZodOptional<z.ZodString>;
1514
+ refreshUrl: z.ZodOptional<z.ZodString>;
1515
+ scopes: z.ZodRecord<z.ZodString, z.ZodString>;
1516
+ }, "strict", z.ZodTypeAny, {
1517
+ scopes: Record<string, string>;
1518
+ authorizationUrl?: string | undefined;
1519
+ tokenUrl?: string | undefined;
1520
+ refreshUrl?: string | undefined;
1521
+ }, {
1522
+ scopes: Record<string, string>;
1523
+ authorizationUrl?: string | undefined;
1524
+ tokenUrl?: string | undefined;
1525
+ refreshUrl?: string | undefined;
1526
+ }>>;
1527
+ authorizationCode: z.ZodOptional<z.ZodObject<{
1528
+ authorizationUrl: z.ZodOptional<z.ZodString>;
1529
+ tokenUrl: z.ZodOptional<z.ZodString>;
1530
+ refreshUrl: z.ZodOptional<z.ZodString>;
1531
+ scopes: z.ZodRecord<z.ZodString, z.ZodString>;
1532
+ }, "strict", z.ZodTypeAny, {
1533
+ scopes: Record<string, string>;
1534
+ authorizationUrl?: string | undefined;
1535
+ tokenUrl?: string | undefined;
1536
+ refreshUrl?: string | undefined;
1537
+ }, {
1538
+ scopes: Record<string, string>;
1539
+ authorizationUrl?: string | undefined;
1540
+ tokenUrl?: string | undefined;
1541
+ refreshUrl?: string | undefined;
1542
+ }>>;
1543
+ }, "strict", z.ZodTypeAny, {
1544
+ password?: {
1545
+ scopes: Record<string, string>;
1546
+ authorizationUrl?: string | undefined;
1547
+ tokenUrl?: string | undefined;
1548
+ refreshUrl?: string | undefined;
1549
+ } | undefined;
1550
+ implicit?: {
1551
+ scopes: Record<string, string>;
1552
+ authorizationUrl?: string | undefined;
1553
+ tokenUrl?: string | undefined;
1554
+ refreshUrl?: string | undefined;
1555
+ } | undefined;
1556
+ clientCredentials?: {
1557
+ scopes: Record<string, string>;
1558
+ authorizationUrl?: string | undefined;
1559
+ tokenUrl?: string | undefined;
1560
+ refreshUrl?: string | undefined;
1561
+ } | undefined;
1562
+ authorizationCode?: {
1563
+ scopes: Record<string, string>;
1564
+ authorizationUrl?: string | undefined;
1565
+ tokenUrl?: string | undefined;
1566
+ refreshUrl?: string | undefined;
1567
+ } | undefined;
1568
+ }, {
1569
+ password?: {
1570
+ scopes: Record<string, string>;
1571
+ authorizationUrl?: string | undefined;
1572
+ tokenUrl?: string | undefined;
1573
+ refreshUrl?: string | undefined;
1574
+ } | undefined;
1575
+ implicit?: {
1576
+ scopes: Record<string, string>;
1577
+ authorizationUrl?: string | undefined;
1578
+ tokenUrl?: string | undefined;
1579
+ refreshUrl?: string | undefined;
1580
+ } | undefined;
1581
+ clientCredentials?: {
1582
+ scopes: Record<string, string>;
1583
+ authorizationUrl?: string | undefined;
1584
+ tokenUrl?: string | undefined;
1585
+ refreshUrl?: string | undefined;
1586
+ } | undefined;
1587
+ authorizationCode?: {
1588
+ scopes: Record<string, string>;
1589
+ authorizationUrl?: string | undefined;
1590
+ tokenUrl?: string | undefined;
1591
+ refreshUrl?: string | undefined;
1592
+ } | undefined;
1593
+ }>;
1594
+ description: z.ZodOptional<z.ZodString>;
1595
+ }, "strict", z.ZodTypeAny, {
1596
+ type: "oauth2";
1597
+ flows: {
1598
+ password?: {
1599
+ scopes: Record<string, string>;
1600
+ authorizationUrl?: string | undefined;
1601
+ tokenUrl?: string | undefined;
1602
+ refreshUrl?: string | undefined;
1603
+ } | undefined;
1604
+ implicit?: {
1605
+ scopes: Record<string, string>;
1606
+ authorizationUrl?: string | undefined;
1607
+ tokenUrl?: string | undefined;
1608
+ refreshUrl?: string | undefined;
1609
+ } | undefined;
1610
+ clientCredentials?: {
1611
+ scopes: Record<string, string>;
1612
+ authorizationUrl?: string | undefined;
1613
+ tokenUrl?: string | undefined;
1614
+ refreshUrl?: string | undefined;
1615
+ } | undefined;
1616
+ authorizationCode?: {
1617
+ scopes: Record<string, string>;
1618
+ authorizationUrl?: string | undefined;
1619
+ tokenUrl?: string | undefined;
1620
+ refreshUrl?: string | undefined;
1621
+ } | undefined;
1622
+ };
1623
+ description?: string | undefined;
1624
+ }, {
1625
+ type: "oauth2";
1626
+ flows: {
1627
+ password?: {
1628
+ scopes: Record<string, string>;
1629
+ authorizationUrl?: string | undefined;
1630
+ tokenUrl?: string | undefined;
1631
+ refreshUrl?: string | undefined;
1632
+ } | undefined;
1633
+ implicit?: {
1634
+ scopes: Record<string, string>;
1635
+ authorizationUrl?: string | undefined;
1636
+ tokenUrl?: string | undefined;
1637
+ refreshUrl?: string | undefined;
1638
+ } | undefined;
1639
+ clientCredentials?: {
1640
+ scopes: Record<string, string>;
1641
+ authorizationUrl?: string | undefined;
1642
+ tokenUrl?: string | undefined;
1643
+ refreshUrl?: string | undefined;
1644
+ } | undefined;
1645
+ authorizationCode?: {
1646
+ scopes: Record<string, string>;
1647
+ authorizationUrl?: string | undefined;
1648
+ tokenUrl?: string | undefined;
1649
+ refreshUrl?: string | undefined;
1650
+ } | undefined;
1651
+ };
1652
+ description?: string | undefined;
1653
+ }>, z.ZodObject<{
1654
+ type: z.ZodLiteral<"openIdConnect">;
1655
+ openIdConnectUrl: z.ZodString;
1656
+ description: z.ZodOptional<z.ZodString>;
1657
+ }, "strict", z.ZodTypeAny, {
1658
+ type: "openIdConnect";
1659
+ openIdConnectUrl: string;
1660
+ description?: string | undefined;
1661
+ }, {
1662
+ type: "openIdConnect";
1663
+ openIdConnectUrl: string;
1664
+ description?: string | undefined;
1665
+ }>, z.ZodObject<{
1666
+ type: z.ZodLiteral<"mutualTLS">;
1667
+ description: z.ZodOptional<z.ZodString>;
1668
+ }, "strict", z.ZodTypeAny, {
1669
+ type: "mutualTLS";
1670
+ description?: string | undefined;
1671
+ }, {
1672
+ type: "mutualTLS";
1673
+ description?: string | undefined;
1674
+ }>]>>>;
1675
+ security: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>, "many">>;
1676
+ supportsAuthenticatedExtendedCard: z.ZodOptional<z.ZodBoolean>;
1677
+ signatures: z.ZodOptional<z.ZodArray<z.ZodObject<{
1678
+ protected: z.ZodString;
1679
+ signature: z.ZodString;
1680
+ }, "strict", z.ZodTypeAny, {
1681
+ protected: string;
1682
+ signature: string;
1683
+ }, {
1684
+ protected: string;
1685
+ signature: string;
1686
+ }>, "many">>;
1687
+ metadata: z.ZodOptional<z.ZodObject<{
1688
+ dexto: z.ZodOptional<z.ZodObject<{
1689
+ authentication: z.ZodOptional<z.ZodObject<{
1690
+ schemes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1691
+ credentials: z.ZodOptional<z.ZodString>;
1692
+ }, "strict", z.ZodTypeAny, {
1693
+ schemes: string[];
1694
+ credentials?: string | undefined;
1695
+ }, {
1696
+ schemes?: string[] | undefined;
1697
+ credentials?: string | undefined;
1698
+ }>>;
1699
+ delegation: z.ZodOptional<z.ZodObject<{
1700
+ protocol: z.ZodEnum<["dexto-v1", "http-simple", "a2a-jsonrpc", "mcp-http"]>;
1701
+ endpoint: z.ZodString;
1702
+ supportsSession: z.ZodBoolean;
1703
+ supportsStreaming: z.ZodOptional<z.ZodBoolean>;
1704
+ }, "strict", z.ZodTypeAny, {
1705
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
1706
+ endpoint: string;
1707
+ supportsSession: boolean;
1708
+ supportsStreaming?: boolean | undefined;
1709
+ }, {
1710
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
1711
+ endpoint: string;
1712
+ supportsSession: boolean;
1713
+ supportsStreaming?: boolean | undefined;
1714
+ }>>;
1715
+ owner: z.ZodOptional<z.ZodObject<{
1716
+ userId: z.ZodString;
1717
+ username: z.ZodString;
1718
+ email: z.ZodOptional<z.ZodString>;
1719
+ }, "strict", z.ZodTypeAny, {
1720
+ userId: string;
1721
+ username: string;
1722
+ email?: string | undefined;
1723
+ }, {
1724
+ userId: string;
1725
+ username: string;
1726
+ email?: string | undefined;
1727
+ }>>;
1728
+ }, "strict", z.ZodTypeAny, {
1729
+ authentication?: {
1730
+ schemes: string[];
1731
+ credentials?: string | undefined;
1732
+ } | undefined;
1733
+ delegation?: {
1734
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
1735
+ endpoint: string;
1736
+ supportsSession: boolean;
1737
+ supportsStreaming?: boolean | undefined;
1738
+ } | undefined;
1739
+ owner?: {
1740
+ userId: string;
1741
+ username: string;
1742
+ email?: string | undefined;
1743
+ } | undefined;
1744
+ }, {
1745
+ authentication?: {
1746
+ schemes?: string[] | undefined;
1747
+ credentials?: string | undefined;
1748
+ } | undefined;
1749
+ delegation?: {
1750
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
1751
+ endpoint: string;
1752
+ supportsSession: boolean;
1753
+ supportsStreaming?: boolean | undefined;
1754
+ } | undefined;
1755
+ owner?: {
1756
+ userId: string;
1757
+ username: string;
1758
+ email?: string | undefined;
1759
+ } | undefined;
1760
+ }>>;
1761
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1762
+ dexto: z.ZodOptional<z.ZodObject<{
1763
+ authentication: z.ZodOptional<z.ZodObject<{
1764
+ schemes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1765
+ credentials: z.ZodOptional<z.ZodString>;
1766
+ }, "strict", z.ZodTypeAny, {
1767
+ schemes: string[];
1768
+ credentials?: string | undefined;
1769
+ }, {
1770
+ schemes?: string[] | undefined;
1771
+ credentials?: string | undefined;
1772
+ }>>;
1773
+ delegation: z.ZodOptional<z.ZodObject<{
1774
+ protocol: z.ZodEnum<["dexto-v1", "http-simple", "a2a-jsonrpc", "mcp-http"]>;
1775
+ endpoint: z.ZodString;
1776
+ supportsSession: z.ZodBoolean;
1777
+ supportsStreaming: z.ZodOptional<z.ZodBoolean>;
1778
+ }, "strict", z.ZodTypeAny, {
1779
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
1780
+ endpoint: string;
1781
+ supportsSession: boolean;
1782
+ supportsStreaming?: boolean | undefined;
1783
+ }, {
1784
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
1785
+ endpoint: string;
1786
+ supportsSession: boolean;
1787
+ supportsStreaming?: boolean | undefined;
1788
+ }>>;
1789
+ owner: z.ZodOptional<z.ZodObject<{
1790
+ userId: z.ZodString;
1791
+ username: z.ZodString;
1792
+ email: z.ZodOptional<z.ZodString>;
1793
+ }, "strict", z.ZodTypeAny, {
1794
+ userId: string;
1795
+ username: string;
1796
+ email?: string | undefined;
1797
+ }, {
1798
+ userId: string;
1799
+ username: string;
1800
+ email?: string | undefined;
1801
+ }>>;
1802
+ }, "strict", z.ZodTypeAny, {
1803
+ authentication?: {
1804
+ schemes: string[];
1805
+ credentials?: string | undefined;
1806
+ } | undefined;
1807
+ delegation?: {
1808
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
1809
+ endpoint: string;
1810
+ supportsSession: boolean;
1811
+ supportsStreaming?: boolean | undefined;
1812
+ } | undefined;
1813
+ owner?: {
1814
+ userId: string;
1815
+ username: string;
1816
+ email?: string | undefined;
1817
+ } | undefined;
1818
+ }, {
1819
+ authentication?: {
1820
+ schemes?: string[] | undefined;
1821
+ credentials?: string | undefined;
1822
+ } | undefined;
1823
+ delegation?: {
1824
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
1825
+ endpoint: string;
1826
+ supportsSession: boolean;
1827
+ supportsStreaming?: boolean | undefined;
1828
+ } | undefined;
1829
+ owner?: {
1830
+ userId: string;
1831
+ username: string;
1832
+ email?: string | undefined;
1833
+ } | undefined;
1834
+ }>>;
1835
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1836
+ dexto: z.ZodOptional<z.ZodObject<{
1837
+ authentication: z.ZodOptional<z.ZodObject<{
1838
+ schemes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1839
+ credentials: z.ZodOptional<z.ZodString>;
1840
+ }, "strict", z.ZodTypeAny, {
1841
+ schemes: string[];
1842
+ credentials?: string | undefined;
1843
+ }, {
1844
+ schemes?: string[] | undefined;
1845
+ credentials?: string | undefined;
1846
+ }>>;
1847
+ delegation: z.ZodOptional<z.ZodObject<{
1848
+ protocol: z.ZodEnum<["dexto-v1", "http-simple", "a2a-jsonrpc", "mcp-http"]>;
1849
+ endpoint: z.ZodString;
1850
+ supportsSession: z.ZodBoolean;
1851
+ supportsStreaming: z.ZodOptional<z.ZodBoolean>;
1852
+ }, "strict", z.ZodTypeAny, {
1853
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
1854
+ endpoint: string;
1855
+ supportsSession: boolean;
1856
+ supportsStreaming?: boolean | undefined;
1857
+ }, {
1858
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
1859
+ endpoint: string;
1860
+ supportsSession: boolean;
1861
+ supportsStreaming?: boolean | undefined;
1862
+ }>>;
1863
+ owner: z.ZodOptional<z.ZodObject<{
1864
+ userId: z.ZodString;
1865
+ username: z.ZodString;
1866
+ email: z.ZodOptional<z.ZodString>;
1867
+ }, "strict", z.ZodTypeAny, {
1868
+ userId: string;
1869
+ username: string;
1870
+ email?: string | undefined;
1871
+ }, {
1872
+ userId: string;
1873
+ username: string;
1874
+ email?: string | undefined;
1875
+ }>>;
1876
+ }, "strict", z.ZodTypeAny, {
1877
+ authentication?: {
1878
+ schemes: string[];
1879
+ credentials?: string | undefined;
1880
+ } | undefined;
1881
+ delegation?: {
1882
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
1883
+ endpoint: string;
1884
+ supportsSession: boolean;
1885
+ supportsStreaming?: boolean | undefined;
1886
+ } | undefined;
1887
+ owner?: {
1888
+ userId: string;
1889
+ username: string;
1890
+ email?: string | undefined;
1891
+ } | undefined;
1892
+ }, {
1893
+ authentication?: {
1894
+ schemes?: string[] | undefined;
1895
+ credentials?: string | undefined;
1896
+ } | undefined;
1897
+ delegation?: {
1898
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
1899
+ endpoint: string;
1900
+ supportsSession: boolean;
1901
+ supportsStreaming?: boolean | undefined;
1902
+ } | undefined;
1903
+ owner?: {
1904
+ userId: string;
1905
+ username: string;
1906
+ email?: string | undefined;
1907
+ } | undefined;
1908
+ }>>;
1909
+ }, z.ZodTypeAny, "passthrough">>>;
1910
+ }, "strict", z.ZodTypeAny, {
1911
+ description: string;
1912
+ url: string;
1913
+ name: string;
1914
+ version: string;
1915
+ capabilities: {
1916
+ streaming: boolean;
1917
+ stateTransitionHistory: boolean;
1918
+ pushNotifications?: boolean | undefined;
1919
+ };
1920
+ protocolVersion: string;
1921
+ preferredTransport: "JSONRPC" | "GRPC" | "HTTP+JSON";
1922
+ defaultInputModes: string[];
1923
+ defaultOutputModes: string[];
1924
+ skills: {
1925
+ description: string;
1926
+ name: string;
1927
+ id: string;
1928
+ tags: string[];
1929
+ inputModes: string[];
1930
+ outputModes: string[];
1931
+ examples?: string[] | undefined;
1932
+ }[];
1933
+ metadata?: z.objectOutputType<{
1934
+ dexto: z.ZodOptional<z.ZodObject<{
1935
+ authentication: z.ZodOptional<z.ZodObject<{
1936
+ schemes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1937
+ credentials: z.ZodOptional<z.ZodString>;
1938
+ }, "strict", z.ZodTypeAny, {
1939
+ schemes: string[];
1940
+ credentials?: string | undefined;
1941
+ }, {
1942
+ schemes?: string[] | undefined;
1943
+ credentials?: string | undefined;
1944
+ }>>;
1945
+ delegation: z.ZodOptional<z.ZodObject<{
1946
+ protocol: z.ZodEnum<["dexto-v1", "http-simple", "a2a-jsonrpc", "mcp-http"]>;
1947
+ endpoint: z.ZodString;
1948
+ supportsSession: z.ZodBoolean;
1949
+ supportsStreaming: z.ZodOptional<z.ZodBoolean>;
1950
+ }, "strict", z.ZodTypeAny, {
1951
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
1952
+ endpoint: string;
1953
+ supportsSession: boolean;
1954
+ supportsStreaming?: boolean | undefined;
1955
+ }, {
1956
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
1957
+ endpoint: string;
1958
+ supportsSession: boolean;
1959
+ supportsStreaming?: boolean | undefined;
1960
+ }>>;
1961
+ owner: z.ZodOptional<z.ZodObject<{
1962
+ userId: z.ZodString;
1963
+ username: z.ZodString;
1964
+ email: z.ZodOptional<z.ZodString>;
1965
+ }, "strict", z.ZodTypeAny, {
1966
+ userId: string;
1967
+ username: string;
1968
+ email?: string | undefined;
1969
+ }, {
1970
+ userId: string;
1971
+ username: string;
1972
+ email?: string | undefined;
1973
+ }>>;
1974
+ }, "strict", z.ZodTypeAny, {
1975
+ authentication?: {
1976
+ schemes: string[];
1977
+ credentials?: string | undefined;
1978
+ } | undefined;
1979
+ delegation?: {
1980
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
1981
+ endpoint: string;
1982
+ supportsSession: boolean;
1983
+ supportsStreaming?: boolean | undefined;
1984
+ } | undefined;
1985
+ owner?: {
1986
+ userId: string;
1987
+ username: string;
1988
+ email?: string | undefined;
1989
+ } | undefined;
1990
+ }, {
1991
+ authentication?: {
1992
+ schemes?: string[] | undefined;
1993
+ credentials?: string | undefined;
1994
+ } | undefined;
1995
+ delegation?: {
1996
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
1997
+ endpoint: string;
1998
+ supportsSession: boolean;
1999
+ supportsStreaming?: boolean | undefined;
2000
+ } | undefined;
2001
+ owner?: {
2002
+ userId: string;
2003
+ username: string;
2004
+ email?: string | undefined;
2005
+ } | undefined;
2006
+ }>>;
2007
+ }, z.ZodTypeAny, "passthrough"> | undefined;
2008
+ provider?: {
2009
+ url: string;
2010
+ organization: string;
2011
+ } | undefined;
2012
+ iconUrl?: string | undefined;
2013
+ documentationUrl?: string | undefined;
2014
+ additionalInterfaces?: {
2015
+ url: string;
2016
+ transport: "JSONRPC" | "GRPC" | "HTTP+JSON";
2017
+ }[] | undefined;
2018
+ securitySchemes?: Record<string, {
2019
+ type: "apiKey";
2020
+ name: string;
2021
+ in: "query" | "header" | "cookie";
2022
+ description?: string | undefined;
2023
+ } | {
2024
+ type: "http";
2025
+ scheme: string;
2026
+ description?: string | undefined;
2027
+ bearerFormat?: string | undefined;
2028
+ } | {
2029
+ type: "oauth2";
2030
+ flows: {
2031
+ password?: {
2032
+ scopes: Record<string, string>;
2033
+ authorizationUrl?: string | undefined;
2034
+ tokenUrl?: string | undefined;
2035
+ refreshUrl?: string | undefined;
2036
+ } | undefined;
2037
+ implicit?: {
2038
+ scopes: Record<string, string>;
2039
+ authorizationUrl?: string | undefined;
2040
+ tokenUrl?: string | undefined;
2041
+ refreshUrl?: string | undefined;
2042
+ } | undefined;
2043
+ clientCredentials?: {
2044
+ scopes: Record<string, string>;
2045
+ authorizationUrl?: string | undefined;
2046
+ tokenUrl?: string | undefined;
2047
+ refreshUrl?: string | undefined;
2048
+ } | undefined;
2049
+ authorizationCode?: {
2050
+ scopes: Record<string, string>;
2051
+ authorizationUrl?: string | undefined;
2052
+ tokenUrl?: string | undefined;
2053
+ refreshUrl?: string | undefined;
2054
+ } | undefined;
2055
+ };
2056
+ description?: string | undefined;
2057
+ } | {
2058
+ type: "openIdConnect";
2059
+ openIdConnectUrl: string;
2060
+ description?: string | undefined;
2061
+ } | {
2062
+ type: "mutualTLS";
2063
+ description?: string | undefined;
2064
+ }> | undefined;
2065
+ security?: Record<string, string[]>[] | undefined;
2066
+ supportsAuthenticatedExtendedCard?: boolean | undefined;
2067
+ signatures?: {
2068
+ protected: string;
2069
+ signature: string;
2070
+ }[] | undefined;
2071
+ }, {
2072
+ description: string;
2073
+ url: string;
2074
+ name: string;
2075
+ version: string;
2076
+ metadata?: z.objectInputType<{
2077
+ dexto: z.ZodOptional<z.ZodObject<{
2078
+ authentication: z.ZodOptional<z.ZodObject<{
2079
+ schemes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2080
+ credentials: z.ZodOptional<z.ZodString>;
2081
+ }, "strict", z.ZodTypeAny, {
2082
+ schemes: string[];
2083
+ credentials?: string | undefined;
2084
+ }, {
2085
+ schemes?: string[] | undefined;
2086
+ credentials?: string | undefined;
2087
+ }>>;
2088
+ delegation: z.ZodOptional<z.ZodObject<{
2089
+ protocol: z.ZodEnum<["dexto-v1", "http-simple", "a2a-jsonrpc", "mcp-http"]>;
2090
+ endpoint: z.ZodString;
2091
+ supportsSession: z.ZodBoolean;
2092
+ supportsStreaming: z.ZodOptional<z.ZodBoolean>;
2093
+ }, "strict", z.ZodTypeAny, {
2094
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
2095
+ endpoint: string;
2096
+ supportsSession: boolean;
2097
+ supportsStreaming?: boolean | undefined;
2098
+ }, {
2099
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
2100
+ endpoint: string;
2101
+ supportsSession: boolean;
2102
+ supportsStreaming?: boolean | undefined;
2103
+ }>>;
2104
+ owner: z.ZodOptional<z.ZodObject<{
2105
+ userId: z.ZodString;
2106
+ username: z.ZodString;
2107
+ email: z.ZodOptional<z.ZodString>;
2108
+ }, "strict", z.ZodTypeAny, {
2109
+ userId: string;
2110
+ username: string;
2111
+ email?: string | undefined;
2112
+ }, {
2113
+ userId: string;
2114
+ username: string;
2115
+ email?: string | undefined;
2116
+ }>>;
2117
+ }, "strict", z.ZodTypeAny, {
2118
+ authentication?: {
2119
+ schemes: string[];
2120
+ credentials?: string | undefined;
2121
+ } | undefined;
2122
+ delegation?: {
2123
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
2124
+ endpoint: string;
2125
+ supportsSession: boolean;
2126
+ supportsStreaming?: boolean | undefined;
2127
+ } | undefined;
2128
+ owner?: {
2129
+ userId: string;
2130
+ username: string;
2131
+ email?: string | undefined;
2132
+ } | undefined;
2133
+ }, {
2134
+ authentication?: {
2135
+ schemes?: string[] | undefined;
2136
+ credentials?: string | undefined;
2137
+ } | undefined;
2138
+ delegation?: {
2139
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
2140
+ endpoint: string;
2141
+ supportsSession: boolean;
2142
+ supportsStreaming?: boolean | undefined;
2143
+ } | undefined;
2144
+ owner?: {
2145
+ userId: string;
2146
+ username: string;
2147
+ email?: string | undefined;
2148
+ } | undefined;
2149
+ }>>;
2150
+ }, z.ZodTypeAny, "passthrough"> | undefined;
2151
+ capabilities?: {
2152
+ streaming?: boolean | undefined;
2153
+ pushNotifications?: boolean | undefined;
2154
+ stateTransitionHistory?: boolean | undefined;
2155
+ } | undefined;
2156
+ provider?: {
2157
+ url: string;
2158
+ organization: string;
2159
+ } | undefined;
2160
+ protocolVersion?: string | undefined;
2161
+ preferredTransport?: "JSONRPC" | "GRPC" | "HTTP+JSON" | undefined;
2162
+ defaultInputModes?: string[] | undefined;
2163
+ defaultOutputModes?: string[] | undefined;
2164
+ skills?: {
2165
+ description: string;
2166
+ name: string;
2167
+ id: string;
2168
+ tags: string[];
2169
+ examples?: string[] | undefined;
2170
+ inputModes?: string[] | undefined;
2171
+ outputModes?: string[] | undefined;
2172
+ }[] | undefined;
2173
+ iconUrl?: string | undefined;
2174
+ documentationUrl?: string | undefined;
2175
+ additionalInterfaces?: {
2176
+ url: string;
2177
+ transport: "JSONRPC" | "GRPC" | "HTTP+JSON";
2178
+ }[] | undefined;
2179
+ securitySchemes?: Record<string, {
2180
+ type: "apiKey";
2181
+ name: string;
2182
+ in: "query" | "header" | "cookie";
2183
+ description?: string | undefined;
2184
+ } | {
2185
+ type: "http";
2186
+ scheme: string;
2187
+ description?: string | undefined;
2188
+ bearerFormat?: string | undefined;
2189
+ } | {
2190
+ type: "oauth2";
2191
+ flows: {
2192
+ password?: {
2193
+ scopes: Record<string, string>;
2194
+ authorizationUrl?: string | undefined;
2195
+ tokenUrl?: string | undefined;
2196
+ refreshUrl?: string | undefined;
2197
+ } | undefined;
2198
+ implicit?: {
2199
+ scopes: Record<string, string>;
2200
+ authorizationUrl?: string | undefined;
2201
+ tokenUrl?: string | undefined;
2202
+ refreshUrl?: string | undefined;
2203
+ } | undefined;
2204
+ clientCredentials?: {
2205
+ scopes: Record<string, string>;
2206
+ authorizationUrl?: string | undefined;
2207
+ tokenUrl?: string | undefined;
2208
+ refreshUrl?: string | undefined;
2209
+ } | undefined;
2210
+ authorizationCode?: {
2211
+ scopes: Record<string, string>;
2212
+ authorizationUrl?: string | undefined;
2213
+ tokenUrl?: string | undefined;
2214
+ refreshUrl?: string | undefined;
2215
+ } | undefined;
2216
+ };
2217
+ description?: string | undefined;
2218
+ } | {
2219
+ type: "openIdConnect";
2220
+ openIdConnectUrl: string;
2221
+ description?: string | undefined;
2222
+ } | {
2223
+ type: "mutualTLS";
2224
+ description?: string | undefined;
2225
+ }> | undefined;
2226
+ security?: Record<string, string[]>[] | undefined;
2227
+ supportsAuthenticatedExtendedCard?: boolean | undefined;
2228
+ signatures?: {
2229
+ protected: string;
2230
+ signature: string;
2231
+ }[] | undefined;
2232
+ }>>;
2233
+ greeting: z.ZodOptional<z.ZodString>;
2234
+ telemetry: z.ZodOptional<z.ZodObject<{
2235
+ serviceName: z.ZodOptional<z.ZodString>;
2236
+ enabled: z.ZodOptional<z.ZodBoolean>;
2237
+ tracerName: z.ZodOptional<z.ZodString>;
2238
+ export: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2239
+ type: z.ZodLiteral<"otlp">;
2240
+ protocol: z.ZodOptional<z.ZodEnum<["grpc", "http"]>>;
2241
+ endpoint: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
2242
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2243
+ }, "strip", z.ZodTypeAny, {
2244
+ type: "otlp";
2245
+ headers?: Record<string, string> | undefined;
2246
+ protocol?: "http" | "grpc" | undefined;
2247
+ endpoint?: string | undefined;
2248
+ }, {
2249
+ type: "otlp";
2250
+ headers?: Record<string, string> | undefined;
2251
+ protocol?: "http" | "grpc" | undefined;
2252
+ endpoint?: string | undefined;
2253
+ }>, z.ZodObject<{
2254
+ type: z.ZodLiteral<"console">;
2255
+ }, "strip", z.ZodTypeAny, {
2256
+ type: "console";
2257
+ }, {
2258
+ type: "console";
2259
+ }>]>>;
2260
+ }, "strip", z.ZodTypeAny, {
2261
+ enabled?: boolean | undefined;
2262
+ serviceName?: string | undefined;
2263
+ tracerName?: string | undefined;
2264
+ export?: {
2265
+ type: "otlp";
2266
+ headers?: Record<string, string> | undefined;
2267
+ protocol?: "http" | "grpc" | undefined;
2268
+ endpoint?: string | undefined;
2269
+ } | {
2270
+ type: "console";
2271
+ } | undefined;
2272
+ }, {
2273
+ enabled?: boolean | undefined;
2274
+ serviceName?: string | undefined;
2275
+ tracerName?: string | undefined;
2276
+ export?: {
2277
+ type: "otlp";
2278
+ headers?: Record<string, string> | undefined;
2279
+ protocol?: "http" | "grpc" | undefined;
2280
+ endpoint?: string | undefined;
474
2281
  } | {
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">;
2282
+ type: "console";
2283
+ } | undefined;
2284
+ }>>;
2285
+ agentId: z.ZodDefault<z.ZodString>;
487
2286
  mcpServers: z.ZodDefault<z.ZodBranded<z.ZodRecord<z.ZodString, z.ZodBranded<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
488
2287
  type: z.ZodLiteral<"stdio">;
489
2288
  command: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
@@ -580,63 +2379,92 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
580
2379
  connectionMode?: "strict" | "lenient" | undefined;
581
2380
  headers?: Record<string, string> | undefined;
582
2381
  }>, "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">>;
2382
+ 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">>>;
2383
+ logger: z.ZodDefault<z.ZodObject<{
2384
+ level: z.ZodDefault<z.ZodEnum<["debug", "info", "warn", "error", "silly"]>>;
2385
+ transports: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2386
+ type: z.ZodLiteral<"console">;
2387
+ colorize: z.ZodDefault<z.ZodBoolean>;
2388
+ }, "strict", z.ZodTypeAny, {
2389
+ type: "console";
2390
+ colorize: boolean;
2391
+ }, {
2392
+ type: "console";
2393
+ colorize?: boolean | undefined;
2394
+ }>, z.ZodObject<{
2395
+ type: z.ZodLiteral<"file">;
2396
+ path: z.ZodString;
2397
+ maxSize: z.ZodDefault<z.ZodNumber>;
2398
+ maxFiles: z.ZodDefault<z.ZodNumber>;
2399
+ }, "strict", z.ZodTypeAny, {
2400
+ path: string;
2401
+ type: "file";
2402
+ maxFiles: number;
2403
+ maxSize: number;
2404
+ }, {
2405
+ path: string;
2406
+ type: "file";
2407
+ maxFiles?: number | undefined;
2408
+ maxSize?: number | undefined;
2409
+ }>, z.ZodObject<{
2410
+ type: z.ZodLiteral<"upstash">;
2411
+ url: z.ZodString;
2412
+ token: z.ZodString;
2413
+ listName: z.ZodDefault<z.ZodString>;
2414
+ maxListLength: z.ZodDefault<z.ZodNumber>;
2415
+ batchSize: z.ZodDefault<z.ZodNumber>;
2416
+ }, "strict", z.ZodTypeAny, {
2417
+ token: string;
2418
+ type: "upstash";
2419
+ url: string;
2420
+ listName: string;
2421
+ maxListLength: number;
2422
+ batchSize: number;
2423
+ }, {
2424
+ token: string;
2425
+ type: "upstash";
2426
+ url: string;
2427
+ listName?: string | undefined;
2428
+ maxListLength?: number | undefined;
2429
+ batchSize?: number | undefined;
2430
+ }>]>, "many">>;
595
2431
  }, "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;
2432
+ level: "debug" | "info" | "warn" | "error" | "silly";
2433
+ transports: ({
2434
+ type: "console";
2435
+ colorize: boolean;
2436
+ } | {
2437
+ path: string;
2438
+ type: "file";
2439
+ maxFiles: number;
2440
+ maxSize: number;
2441
+ } | {
2442
+ token: string;
2443
+ type: "upstash";
2444
+ url: string;
2445
+ listName: string;
2446
+ maxListLength: number;
2447
+ batchSize: number;
2448
+ })[];
628
2449
  }, {
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">;
2450
+ level?: "debug" | "info" | "warn" | "error" | "silly" | undefined;
2451
+ transports?: ({
2452
+ type: "console";
2453
+ colorize?: boolean | undefined;
2454
+ } | {
2455
+ path: string;
2456
+ type: "file";
2457
+ maxFiles?: number | undefined;
2458
+ maxSize?: number | undefined;
2459
+ } | {
2460
+ token: string;
2461
+ type: "upstash";
2462
+ url: string;
2463
+ listName?: string | undefined;
2464
+ maxListLength?: number | undefined;
2465
+ batchSize?: number | undefined;
2466
+ })[] | undefined;
2467
+ }>>;
640
2468
  storage: z.ZodDefault<z.ZodBranded<z.ZodObject<{
641
2469
  cache: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
642
2470
  maxConnections: z.ZodOptional<z.ZodNumber>;
@@ -752,24 +2580,21 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
752
2580
  options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
753
2581
  } & {
754
2582
  type: z.ZodLiteral<"sqlite">;
755
- path: z.ZodOptional<z.ZodString>;
756
- database: z.ZodOptional<z.ZodString>;
2583
+ path: z.ZodString;
757
2584
  }, "strict", z.ZodTypeAny, {
2585
+ path: string;
758
2586
  type: "sqlite";
759
- path?: string | undefined;
760
2587
  options?: Record<string, any> | undefined;
761
2588
  maxConnections?: number | undefined;
762
2589
  idleTimeoutMillis?: number | undefined;
763
2590
  connectionTimeoutMillis?: number | undefined;
764
- database?: string | undefined;
765
2591
  }, {
2592
+ path: string;
766
2593
  type: "sqlite";
767
- path?: string | undefined;
768
2594
  options?: Record<string, any> | undefined;
769
2595
  maxConnections?: number | undefined;
770
2596
  idleTimeoutMillis?: number | undefined;
771
2597
  connectionTimeoutMillis?: number | undefined;
772
- database?: string | undefined;
773
2598
  }>, z.ZodObject<{
774
2599
  maxConnections: z.ZodOptional<z.ZodNumber>;
775
2600
  idleTimeoutMillis: z.ZodOptional<z.ZodNumber>;
@@ -814,13 +2639,12 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
814
2639
  idleTimeoutMillis?: number | undefined;
815
2640
  connectionTimeoutMillis?: number | undefined;
816
2641
  } | {
2642
+ path: string;
817
2643
  type: "sqlite";
818
- path?: string | undefined;
819
2644
  options?: Record<string, any> | undefined;
820
2645
  maxConnections?: number | undefined;
821
2646
  idleTimeoutMillis?: number | undefined;
822
2647
  connectionTimeoutMillis?: number | undefined;
823
- database?: string | undefined;
824
2648
  } | {
825
2649
  type: "postgres";
826
2650
  password?: string | undefined;
@@ -840,13 +2664,12 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
840
2664
  idleTimeoutMillis?: number | undefined;
841
2665
  connectionTimeoutMillis?: number | undefined;
842
2666
  } | {
2667
+ path: string;
843
2668
  type: "sqlite";
844
- path?: string | undefined;
845
2669
  options?: Record<string, any> | undefined;
846
2670
  maxConnections?: number | undefined;
847
2671
  idleTimeoutMillis?: number | undefined;
848
2672
  connectionTimeoutMillis?: number | undefined;
849
- database?: string | undefined;
850
2673
  } | {
851
2674
  type: "postgres";
852
2675
  password?: string | undefined;
@@ -860,7 +2683,7 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
860
2683
  database?: string | undefined;
861
2684
  connectionString?: string | undefined;
862
2685
  }>;
863
- blob: z.ZodDefault<z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2686
+ blob: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
864
2687
  type: z.ZodLiteral<"in-memory">;
865
2688
  maxBlobSize: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
866
2689
  maxTotalSize: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -874,7 +2697,7 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
874
2697
  maxTotalSize?: number | undefined;
875
2698
  }>, z.ZodObject<{
876
2699
  type: z.ZodLiteral<"local">;
877
- storePath: z.ZodOptional<z.ZodString>;
2700
+ storePath: z.ZodString;
878
2701
  maxBlobSize: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
879
2702
  maxTotalSize: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
880
2703
  cleanupAfterDays: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -882,15 +2705,15 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
882
2705
  type: "local";
883
2706
  maxBlobSize: number;
884
2707
  maxTotalSize: number;
2708
+ storePath: string;
885
2709
  cleanupAfterDays: number;
886
- storePath?: string | undefined;
887
2710
  }, {
888
2711
  type: "local";
2712
+ storePath: string;
889
2713
  maxBlobSize?: number | undefined;
890
2714
  maxTotalSize?: number | undefined;
891
- storePath?: string | undefined;
892
2715
  cleanupAfterDays?: number | undefined;
893
- }>]>>>;
2716
+ }>]>;
894
2717
  }, "strict", z.ZodTypeAny, {
895
2718
  database: {
896
2719
  type: "in-memory";
@@ -899,13 +2722,12 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
899
2722
  idleTimeoutMillis?: number | undefined;
900
2723
  connectionTimeoutMillis?: number | undefined;
901
2724
  } | {
2725
+ path: string;
902
2726
  type: "sqlite";
903
- path?: string | undefined;
904
2727
  options?: Record<string, any> | undefined;
905
2728
  maxConnections?: number | undefined;
906
2729
  idleTimeoutMillis?: number | undefined;
907
2730
  connectionTimeoutMillis?: number | undefined;
908
- database?: string | undefined;
909
2731
  } | {
910
2732
  type: "postgres";
911
2733
  password?: string | undefined;
@@ -945,8 +2767,8 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
945
2767
  type: "local";
946
2768
  maxBlobSize: number;
947
2769
  maxTotalSize: number;
2770
+ storePath: string;
948
2771
  cleanupAfterDays: number;
949
- storePath?: string | undefined;
950
2772
  };
951
2773
  }, {
952
2774
  database: {
@@ -956,13 +2778,12 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
956
2778
  idleTimeoutMillis?: number | undefined;
957
2779
  connectionTimeoutMillis?: number | undefined;
958
2780
  } | {
2781
+ path: string;
959
2782
  type: "sqlite";
960
- path?: string | undefined;
961
2783
  options?: Record<string, any> | undefined;
962
2784
  maxConnections?: number | undefined;
963
2785
  idleTimeoutMillis?: number | undefined;
964
2786
  connectionTimeoutMillis?: number | undefined;
965
- database?: string | undefined;
966
2787
  } | {
967
2788
  type: "postgres";
968
2789
  password?: string | undefined;
@@ -994,17 +2815,17 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
994
2815
  port?: number | undefined;
995
2816
  database?: number | undefined;
996
2817
  };
997
- blob?: {
2818
+ blob: {
998
2819
  type: "in-memory";
999
2820
  maxBlobSize?: number | undefined;
1000
2821
  maxTotalSize?: number | undefined;
1001
2822
  } | {
1002
2823
  type: "local";
2824
+ storePath: string;
1003
2825
  maxBlobSize?: number | undefined;
1004
2826
  maxTotalSize?: number | undefined;
1005
- storePath?: string | undefined;
1006
2827
  cleanupAfterDays?: number | undefined;
1007
- } | undefined;
2828
+ };
1008
2829
  }>, "ValidatedStorageConfig">>;
1009
2830
  sessions: z.ZodDefault<z.ZodObject<{
1010
2831
  maxSessions: z.ZodDefault<z.ZodNumber>;
@@ -1017,10 +2838,10 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
1017
2838
  sessionTTL?: number | undefined;
1018
2839
  }>>;
1019
2840
  toolConfirmation: z.ZodDefault<z.ZodObject<{
1020
- mode: z.ZodDefault<z.ZodEnum<["event-based", "auto-approve", "auto-deny"]>>;
2841
+ mode: z.ZodDefault<z.ZodEnum<["manual", "auto-approve", "auto-deny"]>>;
1021
2842
  timeout: z.ZodDefault<z.ZodNumber>;
1022
2843
  allowedToolsStorage: z.ZodDefault<z.ZodEnum<["memory", "storage"]>>;
1023
- toolPolicies: z.ZodOptional<z.ZodDefault<z.ZodObject<{
2844
+ toolPolicies: z.ZodDefault<z.ZodObject<{
1024
2845
  alwaysAllow: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1025
2846
  alwaysDeny: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1026
2847
  }, "strict", z.ZodTypeAny, {
@@ -1029,24 +2850,34 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
1029
2850
  }, {
1030
2851
  alwaysAllow?: string[] | undefined;
1031
2852
  alwaysDeny?: string[] | undefined;
1032
- }>>>;
2853
+ }>>;
1033
2854
  }, "strict", z.ZodTypeAny, {
1034
2855
  timeout: number;
1035
- mode: "event-based" | "auto-approve" | "auto-deny";
2856
+ mode: "manual" | "auto-approve" | "auto-deny";
1036
2857
  allowedToolsStorage: "storage" | "memory";
1037
- toolPolicies?: {
2858
+ toolPolicies: {
1038
2859
  alwaysAllow: string[];
1039
2860
  alwaysDeny: string[];
1040
- } | undefined;
2861
+ };
1041
2862
  }, {
1042
2863
  timeout?: number | undefined;
1043
- mode?: "event-based" | "auto-approve" | "auto-deny" | undefined;
2864
+ mode?: "manual" | "auto-approve" | "auto-deny" | undefined;
1044
2865
  allowedToolsStorage?: "storage" | "memory" | undefined;
1045
2866
  toolPolicies?: {
1046
2867
  alwaysAllow?: string[] | undefined;
1047
2868
  alwaysDeny?: string[] | undefined;
1048
2869
  } | undefined;
1049
2870
  }>>;
2871
+ elicitation: z.ZodDefault<z.ZodObject<{
2872
+ enabled: z.ZodDefault<z.ZodBoolean>;
2873
+ timeout: z.ZodDefault<z.ZodNumber>;
2874
+ }, "strict", z.ZodTypeAny, {
2875
+ timeout: number;
2876
+ enabled: boolean;
2877
+ }, {
2878
+ timeout?: number | undefined;
2879
+ enabled?: boolean | undefined;
2880
+ }>>;
1050
2881
  internalResources: z.ZodDefault<z.ZodEffects<z.ZodDefault<z.ZodUnion<[z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1051
2882
  type: z.ZodLiteral<"filesystem">;
1052
2883
  paths: z.ZodArray<z.ZodString, "many">;
@@ -1055,8 +2886,8 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
1055
2886
  includeHidden: z.ZodDefault<z.ZodBoolean>;
1056
2887
  includeExtensions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1057
2888
  }, "strict", z.ZodTypeAny, {
1058
- maxFiles: number;
1059
2889
  type: "filesystem";
2890
+ maxFiles: number;
1060
2891
  paths: string[];
1061
2892
  maxDepth: number;
1062
2893
  includeHidden: boolean;
@@ -1084,8 +2915,8 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
1084
2915
  includeHidden: z.ZodDefault<z.ZodBoolean>;
1085
2916
  includeExtensions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1086
2917
  }, "strict", z.ZodTypeAny, {
1087
- maxFiles: number;
1088
2918
  type: "filesystem";
2919
+ maxFiles: number;
1089
2920
  paths: string[];
1090
2921
  maxDepth: number;
1091
2922
  includeHidden: boolean;
@@ -1106,8 +2937,8 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
1106
2937
  }>]>, "many">>;
1107
2938
  }, "strict", z.ZodTypeAny, {
1108
2939
  resources: ({
1109
- maxFiles: number;
1110
2940
  type: "filesystem";
2941
+ maxFiles: number;
1111
2942
  paths: string[];
1112
2943
  maxDepth: number;
1113
2944
  includeHidden: boolean;
@@ -1131,8 +2962,8 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
1131
2962
  }>]>>, {
1132
2963
  enabled: boolean;
1133
2964
  resources: ({
1134
- maxFiles: number;
1135
2965
  type: "filesystem";
2966
+ maxFiles: number;
1136
2967
  paths: string[];
1137
2968
  maxDepth: number;
1138
2969
  includeHidden: boolean;
@@ -1162,7 +2993,7 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
1162
2993
  type: "blob";
1163
2994
  })[] | undefined;
1164
2995
  } | undefined>>;
1165
- starterPrompts: z.ZodDefault<z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodObject<{
2996
+ starterPrompts: z.ZodDefault<z.ZodDefault<z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodObject<{
1166
2997
  id: z.ZodString;
1167
2998
  title: z.ZodOptional<z.ZodString>;
1168
2999
  description: z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -1179,8 +3010,8 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
1179
3010
  }, {
1180
3011
  prompt: string;
1181
3012
  id: string;
1182
- title?: string | undefined;
1183
3013
  description?: string | undefined;
3014
+ title?: string | undefined;
1184
3015
  priority?: number | undefined;
1185
3016
  category?: string | undefined;
1186
3017
  }>, "many">, {
@@ -1193,8 +3024,8 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
1193
3024
  }[], {
1194
3025
  prompt: string;
1195
3026
  id: string;
1196
- title?: string | undefined;
1197
3027
  description?: string | undefined;
3028
+ title?: string | undefined;
1198
3029
  priority?: number | undefined;
1199
3030
  category?: string | undefined;
1200
3031
  }[]>, {
@@ -1207,11 +3038,11 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
1207
3038
  }[], {
1208
3039
  prompt: string;
1209
3040
  id: string;
1210
- title?: string | undefined;
1211
3041
  description?: string | undefined;
3042
+ title?: string | undefined;
1212
3043
  priority?: number | undefined;
1213
3044
  category?: string | undefined;
1214
- }[]>>;
3045
+ }[]>>>;
1215
3046
  plugins: z.ZodDefault<z.ZodDefault<z.ZodObject<{
1216
3047
  contentPolicy: z.ZodOptional<z.ZodObject<{
1217
3048
  priority: z.ZodNumber;
@@ -1247,117 +3078,66 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
1247
3078
  priority: z.ZodNumber;
1248
3079
  config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1249
3080
  }, "strict", z.ZodTypeAny, {
1250
- name: string;
1251
- priority: number;
1252
3081
  enabled: boolean;
1253
- blocking: boolean;
1254
- module: string;
1255
- config?: Record<string, any> | undefined;
1256
- }, {
1257
3082
  name: string;
1258
3083
  priority: number;
1259
- blocking: boolean;
1260
3084
  module: string;
1261
- config?: Record<string, any> | undefined;
1262
- enabled?: boolean | undefined;
1263
- }>, "many">>;
1264
- }, "strict", z.ZodTypeAny, {
1265
- custom: {
1266
- name: string;
1267
- priority: number;
1268
- enabled: boolean;
1269
3085
  blocking: boolean;
1270
- module: string;
1271
3086
  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?: {
3087
+ }, {
1285
3088
  name: string;
1286
3089
  priority: number;
1287
- blocking: boolean;
1288
3090
  module: string;
3091
+ blocking: boolean;
1289
3092
  config?: Record<string, any> | undefined;
1290
3093
  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;
3094
+ }>, "many">>;
3095
+ }, "strict", z.ZodTypeAny, {
3096
+ custom: {
3097
+ enabled: boolean;
3098
+ name: string;
3099
+ priority: number;
3100
+ module: string;
3101
+ blocking: boolean;
3102
+ config?: Record<string, any> | undefined;
3103
+ }[];
3104
+ contentPolicy?: z.objectOutputType<{
3105
+ priority: z.ZodNumber;
3106
+ blocking: z.ZodOptional<z.ZodBoolean>;
3107
+ enabled: z.ZodDefault<z.ZodBoolean>;
3108
+ }, z.ZodTypeAny, "passthrough"> | undefined;
3109
+ responseSanitizer?: z.objectOutputType<{
3110
+ priority: z.ZodNumber;
3111
+ blocking: z.ZodOptional<z.ZodBoolean>;
3112
+ enabled: z.ZodDefault<z.ZodBoolean>;
3113
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1341
3114
  }, {
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
- }>>;
3115
+ custom?: {
3116
+ name: string;
3117
+ priority: number;
3118
+ module: string;
3119
+ blocking: boolean;
3120
+ config?: Record<string, any> | undefined;
3121
+ enabled?: boolean | undefined;
3122
+ }[] | undefined;
3123
+ contentPolicy?: z.objectInputType<{
3124
+ priority: z.ZodNumber;
3125
+ blocking: z.ZodOptional<z.ZodBoolean>;
3126
+ enabled: z.ZodDefault<z.ZodBoolean>;
3127
+ }, z.ZodTypeAny, "passthrough"> | undefined;
3128
+ responseSanitizer?: z.objectInputType<{
3129
+ priority: z.ZodNumber;
3130
+ blocking: z.ZodOptional<z.ZodBoolean>;
3131
+ enabled: z.ZodDefault<z.ZodBoolean>;
3132
+ }, z.ZodTypeAny, "passthrough"> | undefined;
3133
+ }>>>;
1354
3134
  }, "strict", z.ZodTypeAny, {
1355
3135
  llm: {
1356
3136
  apiKey: string;
1357
- provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
1358
3137
  model: string;
1359
- maxIterations: number;
3138
+ provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
1360
3139
  router: "vercel" | "in-built";
3140
+ maxIterations: number;
1361
3141
  baseURL?: string | undefined;
1362
3142
  maxInputTokens?: number | undefined;
1363
3143
  maxOutputTokens?: number | undefined;
@@ -1372,13 +3152,12 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
1372
3152
  idleTimeoutMillis?: number | undefined;
1373
3153
  connectionTimeoutMillis?: number | undefined;
1374
3154
  } | {
3155
+ path: string;
1375
3156
  type: "sqlite";
1376
- path?: string | undefined;
1377
3157
  options?: Record<string, any> | undefined;
1378
3158
  maxConnections?: number | undefined;
1379
3159
  idleTimeoutMillis?: number | undefined;
1380
3160
  connectionTimeoutMillis?: number | undefined;
1381
- database?: string | undefined;
1382
3161
  } | {
1383
3162
  type: "postgres";
1384
3163
  password?: string | undefined;
@@ -1418,32 +3197,57 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
1418
3197
  type: "local";
1419
3198
  maxBlobSize: number;
1420
3199
  maxTotalSize: number;
3200
+ storePath: string;
1421
3201
  cleanupAfterDays: number;
1422
- storePath?: string | undefined;
1423
3202
  };
1424
3203
  } & z.BRAND<"ValidatedStorageConfig">;
3204
+ logger: {
3205
+ level: "debug" | "info" | "warn" | "error" | "silly";
3206
+ transports: ({
3207
+ type: "console";
3208
+ colorize: boolean;
3209
+ } | {
3210
+ path: string;
3211
+ type: "file";
3212
+ maxFiles: number;
3213
+ maxSize: number;
3214
+ } | {
3215
+ token: string;
3216
+ type: "upstash";
3217
+ url: string;
3218
+ listName: string;
3219
+ maxListLength: number;
3220
+ batchSize: number;
3221
+ })[];
3222
+ };
3223
+ elicitation: {
3224
+ timeout: number;
3225
+ enabled: boolean;
3226
+ };
3227
+ agentId: string;
3228
+ starterPrompts: {
3229
+ title: string;
3230
+ prompt: string;
3231
+ description: string;
3232
+ id: string;
3233
+ priority: number;
3234
+ category: string;
3235
+ }[];
1425
3236
  systemPrompt: ({
1426
- contributors: {
1427
- id: string;
1428
- type: "static";
1429
- content: string;
1430
- priority: number;
1431
- enabled: boolean;
1432
- }[];
1433
- } | {
1434
3237
  contributors: ({
1435
3238
  type: "static";
1436
- id: string;
1437
- priority: number;
1438
3239
  enabled: boolean;
1439
3240
  content: string;
3241
+ id: string;
3242
+ priority: number;
1440
3243
  } | {
1441
3244
  type: "dynamic";
3245
+ enabled: boolean;
1442
3246
  id: string;
1443
3247
  priority: number;
1444
- enabled: boolean;
1445
- source: "dateTime" | "memorySummary" | "resources";
3248
+ source: "resources" | "dateTime" | "memorySummary";
1446
3249
  } | {
3250
+ type: "file";
1447
3251
  options: {
1448
3252
  includeFilenames: boolean;
1449
3253
  separator: string;
@@ -1451,23 +3255,30 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
1451
3255
  maxFileSize: number;
1452
3256
  includeMetadata: boolean;
1453
3257
  };
1454
- type: "file";
3258
+ enabled: boolean;
1455
3259
  id: string;
1456
3260
  priority: number;
1457
- enabled: boolean;
1458
3261
  files: string[];
1459
3262
  } | {
3263
+ type: "memory";
1460
3264
  options: {
1461
3265
  includeTimestamps: boolean;
1462
3266
  includeTags: boolean;
1463
3267
  pinnedOnly: boolean;
1464
3268
  limit?: number | undefined;
1465
3269
  };
1466
- type: "memory";
3270
+ enabled: boolean;
1467
3271
  id: string;
1468
3272
  priority: number;
1469
- enabled: boolean;
1470
3273
  })[];
3274
+ } | {
3275
+ contributors: {
3276
+ id: string;
3277
+ type: "static";
3278
+ content: string;
3279
+ priority: number;
3280
+ enabled: boolean;
3281
+ }[];
1471
3282
  }) & z.BRAND<"ValidatedSystemPromptConfig">;
1472
3283
  mcpServers: Record<string, ({
1473
3284
  timeout: number;
@@ -1489,25 +3300,25 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
1489
3300
  url: string;
1490
3301
  headers: Record<string, string>;
1491
3302
  }) & 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")[];
3303
+ 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
3304
  sessions: {
1494
3305
  maxSessions: number;
1495
3306
  sessionTTL: number;
1496
3307
  };
1497
3308
  toolConfirmation: {
1498
3309
  timeout: number;
1499
- mode: "event-based" | "auto-approve" | "auto-deny";
3310
+ mode: "manual" | "auto-approve" | "auto-deny";
1500
3311
  allowedToolsStorage: "storage" | "memory";
1501
- toolPolicies?: {
3312
+ toolPolicies: {
1502
3313
  alwaysAllow: string[];
1503
3314
  alwaysDeny: string[];
1504
- } | undefined;
3315
+ };
1505
3316
  };
1506
3317
  internalResources: {
1507
3318
  enabled: boolean;
1508
3319
  resources: ({
1509
- maxFiles: number;
1510
3320
  type: "filesystem";
3321
+ maxFiles: number;
1511
3322
  paths: string[];
1512
3323
  maxDepth: number;
1513
3324
  includeHidden: boolean;
@@ -1516,21 +3327,13 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
1516
3327
  type: "blob";
1517
3328
  })[];
1518
3329
  };
1519
- starterPrompts: {
1520
- title: string;
1521
- prompt: string;
1522
- description: string;
1523
- id: string;
1524
- priority: number;
1525
- category: string;
1526
- }[];
1527
3330
  plugins: {
1528
3331
  custom: {
3332
+ enabled: boolean;
1529
3333
  name: string;
1530
3334
  priority: number;
1531
- enabled: boolean;
1532
- blocking: boolean;
1533
3335
  module: string;
3336
+ blocking: boolean;
1534
3337
  config?: Record<string, any> | undefined;
1535
3338
  }[];
1536
3339
  contentPolicy?: z.objectOutputType<{
@@ -1544,58 +3347,189 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
1544
3347
  enabled: z.ZodDefault<z.ZodBoolean>;
1545
3348
  }, z.ZodTypeAny, "passthrough"> | undefined;
1546
3349
  };
3350
+ telemetry?: {
3351
+ enabled?: boolean | undefined;
3352
+ serviceName?: string | undefined;
3353
+ tracerName?: string | undefined;
3354
+ export?: {
3355
+ type: "otlp";
3356
+ headers?: Record<string, string> | undefined;
3357
+ protocol?: "http" | "grpc" | undefined;
3358
+ endpoint?: string | undefined;
3359
+ } | {
3360
+ type: "console";
3361
+ } | undefined;
3362
+ } | undefined;
1547
3363
  agentCard?: {
1548
- name: string;
1549
- url: string;
1550
3364
  description: string;
3365
+ url: string;
3366
+ name: string;
1551
3367
  version: string;
1552
3368
  capabilities: {
1553
3369
  streaming: boolean;
1554
3370
  stateTransitionHistory: boolean;
1555
3371
  pushNotifications?: boolean | undefined;
1556
3372
  };
1557
- authentication: {
1558
- schemes: string[];
1559
- credentials?: string | undefined;
1560
- };
3373
+ protocolVersion: string;
3374
+ preferredTransport: "JSONRPC" | "GRPC" | "HTTP+JSON";
1561
3375
  defaultInputModes: string[];
1562
3376
  defaultOutputModes: string[];
1563
3377
  skills: {
1564
- name: string;
1565
3378
  description: string;
3379
+ name: string;
1566
3380
  id: string;
1567
3381
  tags: string[];
1568
3382
  inputModes: string[];
1569
3383
  outputModes: string[];
1570
3384
  examples?: string[] | undefined;
1571
3385
  }[];
3386
+ metadata?: z.objectOutputType<{
3387
+ dexto: z.ZodOptional<z.ZodObject<{
3388
+ authentication: z.ZodOptional<z.ZodObject<{
3389
+ schemes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3390
+ credentials: z.ZodOptional<z.ZodString>;
3391
+ }, "strict", z.ZodTypeAny, {
3392
+ schemes: string[];
3393
+ credentials?: string | undefined;
3394
+ }, {
3395
+ schemes?: string[] | undefined;
3396
+ credentials?: string | undefined;
3397
+ }>>;
3398
+ delegation: z.ZodOptional<z.ZodObject<{
3399
+ protocol: z.ZodEnum<["dexto-v1", "http-simple", "a2a-jsonrpc", "mcp-http"]>;
3400
+ endpoint: z.ZodString;
3401
+ supportsSession: z.ZodBoolean;
3402
+ supportsStreaming: z.ZodOptional<z.ZodBoolean>;
3403
+ }, "strict", z.ZodTypeAny, {
3404
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
3405
+ endpoint: string;
3406
+ supportsSession: boolean;
3407
+ supportsStreaming?: boolean | undefined;
3408
+ }, {
3409
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
3410
+ endpoint: string;
3411
+ supportsSession: boolean;
3412
+ supportsStreaming?: boolean | undefined;
3413
+ }>>;
3414
+ owner: z.ZodOptional<z.ZodObject<{
3415
+ userId: z.ZodString;
3416
+ username: z.ZodString;
3417
+ email: z.ZodOptional<z.ZodString>;
3418
+ }, "strict", z.ZodTypeAny, {
3419
+ userId: string;
3420
+ username: string;
3421
+ email?: string | undefined;
3422
+ }, {
3423
+ userId: string;
3424
+ username: string;
3425
+ email?: string | undefined;
3426
+ }>>;
3427
+ }, "strict", z.ZodTypeAny, {
3428
+ authentication?: {
3429
+ schemes: string[];
3430
+ credentials?: string | undefined;
3431
+ } | undefined;
3432
+ delegation?: {
3433
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
3434
+ endpoint: string;
3435
+ supportsSession: boolean;
3436
+ supportsStreaming?: boolean | undefined;
3437
+ } | undefined;
3438
+ owner?: {
3439
+ userId: string;
3440
+ username: string;
3441
+ email?: string | undefined;
3442
+ } | undefined;
3443
+ }, {
3444
+ authentication?: {
3445
+ schemes?: string[] | undefined;
3446
+ credentials?: string | undefined;
3447
+ } | undefined;
3448
+ delegation?: {
3449
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
3450
+ endpoint: string;
3451
+ supportsSession: boolean;
3452
+ supportsStreaming?: boolean | undefined;
3453
+ } | undefined;
3454
+ owner?: {
3455
+ userId: string;
3456
+ username: string;
3457
+ email?: string | undefined;
3458
+ } | undefined;
3459
+ }>>;
3460
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1572
3461
  provider?: {
1573
3462
  url: string;
1574
3463
  organization: string;
1575
3464
  } | undefined;
3465
+ iconUrl?: string | undefined;
1576
3466
  documentationUrl?: string | undefined;
1577
- } | undefined;
1578
- 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;
3467
+ additionalInterfaces?: {
3468
+ url: string;
3469
+ transport: "JSONRPC" | "GRPC" | "HTTP+JSON";
3470
+ }[] | undefined;
3471
+ securitySchemes?: Record<string, {
3472
+ type: "apiKey";
3473
+ name: string;
3474
+ in: "query" | "header" | "cookie";
3475
+ description?: string | undefined;
1588
3476
  } | {
1589
- type: "console";
1590
- } | undefined;
3477
+ type: "http";
3478
+ scheme: string;
3479
+ description?: string | undefined;
3480
+ bearerFormat?: string | undefined;
3481
+ } | {
3482
+ type: "oauth2";
3483
+ flows: {
3484
+ password?: {
3485
+ scopes: Record<string, string>;
3486
+ authorizationUrl?: string | undefined;
3487
+ tokenUrl?: string | undefined;
3488
+ refreshUrl?: string | undefined;
3489
+ } | undefined;
3490
+ implicit?: {
3491
+ scopes: Record<string, string>;
3492
+ authorizationUrl?: string | undefined;
3493
+ tokenUrl?: string | undefined;
3494
+ refreshUrl?: string | undefined;
3495
+ } | undefined;
3496
+ clientCredentials?: {
3497
+ scopes: Record<string, string>;
3498
+ authorizationUrl?: string | undefined;
3499
+ tokenUrl?: string | undefined;
3500
+ refreshUrl?: string | undefined;
3501
+ } | undefined;
3502
+ authorizationCode?: {
3503
+ scopes: Record<string, string>;
3504
+ authorizationUrl?: string | undefined;
3505
+ tokenUrl?: string | undefined;
3506
+ refreshUrl?: string | undefined;
3507
+ } | undefined;
3508
+ };
3509
+ description?: string | undefined;
3510
+ } | {
3511
+ type: "openIdConnect";
3512
+ openIdConnectUrl: string;
3513
+ description?: string | undefined;
3514
+ } | {
3515
+ type: "mutualTLS";
3516
+ description?: string | undefined;
3517
+ }> | undefined;
3518
+ security?: Record<string, string[]>[] | undefined;
3519
+ supportsAuthenticatedExtendedCard?: boolean | undefined;
3520
+ signatures?: {
3521
+ protected: string;
3522
+ signature: string;
3523
+ }[] | undefined;
1591
3524
  } | undefined;
3525
+ greeting?: string | undefined;
1592
3526
  }, {
1593
3527
  llm: {
1594
3528
  apiKey: string;
1595
- provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
1596
3529
  model: string;
1597
- maxIterations?: number | undefined;
3530
+ provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
1598
3531
  router?: "vercel" | "in-built" | undefined;
3532
+ maxIterations?: number | undefined;
1599
3533
  baseURL?: string | undefined;
1600
3534
  maxInputTokens?: number | undefined;
1601
3535
  maxOutputTokens?: number | undefined;
@@ -1605,15 +3539,15 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
1605
3539
  systemPrompt: string | {
1606
3540
  contributors?: ({
1607
3541
  type: "static";
3542
+ content: string;
1608
3543
  id: string;
1609
3544
  priority: number;
1610
- content: string;
1611
3545
  enabled?: boolean | undefined;
1612
3546
  } | {
1613
3547
  type: "dynamic";
1614
3548
  id: string;
1615
3549
  priority: number;
1616
- source: "dateTime" | "memorySummary" | "resources";
3550
+ source: "resources" | "dateTime" | "memorySummary";
1617
3551
  enabled?: boolean | undefined;
1618
3552
  } | {
1619
3553
  type: "file";
@@ -1649,13 +3583,12 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
1649
3583
  idleTimeoutMillis?: number | undefined;
1650
3584
  connectionTimeoutMillis?: number | undefined;
1651
3585
  } | {
3586
+ path: string;
1652
3587
  type: "sqlite";
1653
- path?: string | undefined;
1654
3588
  options?: Record<string, any> | undefined;
1655
3589
  maxConnections?: number | undefined;
1656
3590
  idleTimeoutMillis?: number | undefined;
1657
3591
  connectionTimeoutMillis?: number | undefined;
1658
- database?: string | undefined;
1659
3592
  } | {
1660
3593
  type: "postgres";
1661
3594
  password?: string | undefined;
@@ -1687,48 +3620,224 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
1687
3620
  port?: number | undefined;
1688
3621
  database?: number | undefined;
1689
3622
  };
1690
- blob?: {
3623
+ blob: {
1691
3624
  type: "in-memory";
1692
3625
  maxBlobSize?: number | undefined;
1693
3626
  maxTotalSize?: number | undefined;
1694
3627
  } | {
1695
3628
  type: "local";
3629
+ storePath: string;
1696
3630
  maxBlobSize?: number | undefined;
1697
3631
  maxTotalSize?: number | undefined;
1698
- storePath?: string | undefined;
1699
3632
  cleanupAfterDays?: number | undefined;
3633
+ };
3634
+ } | undefined;
3635
+ telemetry?: {
3636
+ enabled?: boolean | undefined;
3637
+ serviceName?: string | undefined;
3638
+ tracerName?: string | undefined;
3639
+ export?: {
3640
+ type: "otlp";
3641
+ headers?: Record<string, string> | undefined;
3642
+ protocol?: "http" | "grpc" | undefined;
3643
+ endpoint?: string | undefined;
3644
+ } | {
3645
+ type: "console";
1700
3646
  } | undefined;
1701
3647
  } | undefined;
3648
+ logger?: {
3649
+ level?: "debug" | "info" | "warn" | "error" | "silly" | undefined;
3650
+ transports?: ({
3651
+ type: "console";
3652
+ colorize?: boolean | undefined;
3653
+ } | {
3654
+ path: string;
3655
+ type: "file";
3656
+ maxFiles?: number | undefined;
3657
+ maxSize?: number | undefined;
3658
+ } | {
3659
+ token: string;
3660
+ type: "upstash";
3661
+ url: string;
3662
+ listName?: string | undefined;
3663
+ maxListLength?: number | undefined;
3664
+ batchSize?: number | undefined;
3665
+ })[] | undefined;
3666
+ } | undefined;
3667
+ elicitation?: {
3668
+ timeout?: number | undefined;
3669
+ enabled?: boolean | undefined;
3670
+ } | undefined;
3671
+ agentId?: string | undefined;
3672
+ starterPrompts?: {
3673
+ prompt: string;
3674
+ id: string;
3675
+ description?: string | undefined;
3676
+ title?: string | undefined;
3677
+ priority?: number | undefined;
3678
+ category?: string | undefined;
3679
+ }[] | undefined;
1702
3680
  agentCard?: {
1703
- name: string;
3681
+ description: string;
1704
3682
  url: string;
3683
+ name: string;
1705
3684
  version: string;
1706
- provider?: {
1707
- url: string;
1708
- organization: string;
1709
- } | undefined;
1710
- description?: string | undefined;
1711
- documentationUrl?: string | undefined;
3685
+ metadata?: z.objectInputType<{
3686
+ dexto: z.ZodOptional<z.ZodObject<{
3687
+ authentication: z.ZodOptional<z.ZodObject<{
3688
+ schemes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3689
+ credentials: z.ZodOptional<z.ZodString>;
3690
+ }, "strict", z.ZodTypeAny, {
3691
+ schemes: string[];
3692
+ credentials?: string | undefined;
3693
+ }, {
3694
+ schemes?: string[] | undefined;
3695
+ credentials?: string | undefined;
3696
+ }>>;
3697
+ delegation: z.ZodOptional<z.ZodObject<{
3698
+ protocol: z.ZodEnum<["dexto-v1", "http-simple", "a2a-jsonrpc", "mcp-http"]>;
3699
+ endpoint: z.ZodString;
3700
+ supportsSession: z.ZodBoolean;
3701
+ supportsStreaming: z.ZodOptional<z.ZodBoolean>;
3702
+ }, "strict", z.ZodTypeAny, {
3703
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
3704
+ endpoint: string;
3705
+ supportsSession: boolean;
3706
+ supportsStreaming?: boolean | undefined;
3707
+ }, {
3708
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
3709
+ endpoint: string;
3710
+ supportsSession: boolean;
3711
+ supportsStreaming?: boolean | undefined;
3712
+ }>>;
3713
+ owner: z.ZodOptional<z.ZodObject<{
3714
+ userId: z.ZodString;
3715
+ username: z.ZodString;
3716
+ email: z.ZodOptional<z.ZodString>;
3717
+ }, "strict", z.ZodTypeAny, {
3718
+ userId: string;
3719
+ username: string;
3720
+ email?: string | undefined;
3721
+ }, {
3722
+ userId: string;
3723
+ username: string;
3724
+ email?: string | undefined;
3725
+ }>>;
3726
+ }, "strict", z.ZodTypeAny, {
3727
+ authentication?: {
3728
+ schemes: string[];
3729
+ credentials?: string | undefined;
3730
+ } | undefined;
3731
+ delegation?: {
3732
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
3733
+ endpoint: string;
3734
+ supportsSession: boolean;
3735
+ supportsStreaming?: boolean | undefined;
3736
+ } | undefined;
3737
+ owner?: {
3738
+ userId: string;
3739
+ username: string;
3740
+ email?: string | undefined;
3741
+ } | undefined;
3742
+ }, {
3743
+ authentication?: {
3744
+ schemes?: string[] | undefined;
3745
+ credentials?: string | undefined;
3746
+ } | undefined;
3747
+ delegation?: {
3748
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
3749
+ endpoint: string;
3750
+ supportsSession: boolean;
3751
+ supportsStreaming?: boolean | undefined;
3752
+ } | undefined;
3753
+ owner?: {
3754
+ userId: string;
3755
+ username: string;
3756
+ email?: string | undefined;
3757
+ } | undefined;
3758
+ }>>;
3759
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1712
3760
  capabilities?: {
1713
3761
  streaming?: boolean | undefined;
1714
3762
  pushNotifications?: boolean | undefined;
1715
3763
  stateTransitionHistory?: boolean | undefined;
1716
3764
  } | undefined;
1717
- authentication?: {
1718
- schemes?: string[] | undefined;
1719
- credentials?: string | undefined;
3765
+ provider?: {
3766
+ url: string;
3767
+ organization: string;
1720
3768
  } | undefined;
3769
+ protocolVersion?: string | undefined;
3770
+ preferredTransport?: "JSONRPC" | "GRPC" | "HTTP+JSON" | undefined;
1721
3771
  defaultInputModes?: string[] | undefined;
1722
3772
  defaultOutputModes?: string[] | undefined;
1723
3773
  skills?: {
1724
- name: string;
1725
3774
  description: string;
3775
+ name: string;
1726
3776
  id: string;
1727
3777
  tags: string[];
1728
3778
  examples?: string[] | undefined;
1729
3779
  inputModes?: string[] | undefined;
1730
3780
  outputModes?: string[] | undefined;
1731
3781
  }[] | undefined;
3782
+ iconUrl?: string | undefined;
3783
+ documentationUrl?: string | undefined;
3784
+ additionalInterfaces?: {
3785
+ url: string;
3786
+ transport: "JSONRPC" | "GRPC" | "HTTP+JSON";
3787
+ }[] | undefined;
3788
+ securitySchemes?: Record<string, {
3789
+ type: "apiKey";
3790
+ name: string;
3791
+ in: "query" | "header" | "cookie";
3792
+ description?: string | undefined;
3793
+ } | {
3794
+ type: "http";
3795
+ scheme: string;
3796
+ description?: string | undefined;
3797
+ bearerFormat?: string | undefined;
3798
+ } | {
3799
+ type: "oauth2";
3800
+ flows: {
3801
+ password?: {
3802
+ scopes: Record<string, string>;
3803
+ authorizationUrl?: string | undefined;
3804
+ tokenUrl?: string | undefined;
3805
+ refreshUrl?: string | undefined;
3806
+ } | undefined;
3807
+ implicit?: {
3808
+ scopes: Record<string, string>;
3809
+ authorizationUrl?: string | undefined;
3810
+ tokenUrl?: string | undefined;
3811
+ refreshUrl?: string | undefined;
3812
+ } | undefined;
3813
+ clientCredentials?: {
3814
+ scopes: Record<string, string>;
3815
+ authorizationUrl?: string | undefined;
3816
+ tokenUrl?: string | undefined;
3817
+ refreshUrl?: string | undefined;
3818
+ } | undefined;
3819
+ authorizationCode?: {
3820
+ scopes: Record<string, string>;
3821
+ authorizationUrl?: string | undefined;
3822
+ tokenUrl?: string | undefined;
3823
+ refreshUrl?: string | undefined;
3824
+ } | undefined;
3825
+ };
3826
+ description?: string | undefined;
3827
+ } | {
3828
+ type: "openIdConnect";
3829
+ openIdConnectUrl: string;
3830
+ description?: string | undefined;
3831
+ } | {
3832
+ type: "mutualTLS";
3833
+ description?: string | undefined;
3834
+ }> | undefined;
3835
+ security?: Record<string, string[]>[] | undefined;
3836
+ supportsAuthenticatedExtendedCard?: boolean | undefined;
3837
+ signatures?: {
3838
+ protected: string;
3839
+ signature: string;
3840
+ }[] | undefined;
1732
3841
  } | undefined;
1733
3842
  greeting?: string | undefined;
1734
3843
  mcpServers?: Record<string, {
@@ -1751,14 +3860,14 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
1751
3860
  connectionMode?: "strict" | "lenient" | undefined;
1752
3861
  headers?: Record<string, string> | undefined;
1753
3862
  }> | undefined;
1754
- internalTools?: ("search_history" | "ask_user" | "read_file" | "glob_files" | "grep_content" | "write_file" | "edit_file" | "bash_exec" | "bash_output" | "kill_process")[] | undefined;
3863
+ 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
3864
  sessions?: {
1756
3865
  maxSessions?: number | undefined;
1757
3866
  sessionTTL?: number | undefined;
1758
3867
  } | undefined;
1759
3868
  toolConfirmation?: {
1760
3869
  timeout?: number | undefined;
1761
- mode?: "event-based" | "auto-approve" | "auto-deny" | undefined;
3870
+ mode?: "manual" | "auto-approve" | "auto-deny" | undefined;
1762
3871
  allowedToolsStorage?: "storage" | "memory" | undefined;
1763
3872
  toolPolicies?: {
1764
3873
  alwaysAllow?: string[] | undefined;
@@ -1787,20 +3896,12 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
1787
3896
  type: "blob";
1788
3897
  })[] | undefined;
1789
3898
  } | 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
3899
  plugins?: {
1799
3900
  custom?: {
1800
3901
  name: string;
1801
3902
  priority: number;
1802
- blocking: boolean;
1803
3903
  module: string;
3904
+ blocking: boolean;
1804
3905
  config?: Record<string, any> | undefined;
1805
3906
  enabled?: boolean | undefined;
1806
3907
  }[] | undefined;
@@ -1815,19 +3916,6 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
1815
3916
  enabled: z.ZodDefault<z.ZodBoolean>;
1816
3917
  }, z.ZodTypeAny, "passthrough"> | undefined;
1817
3918
  } | 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
3919
  }>, "ValidatedAgentConfig">;
1832
3920
  export type AgentConfig = z.input<typeof AgentConfigSchema>;
1833
3921
  export type ValidatedAgentConfig = z.output<typeof AgentConfigSchema>;