@defai.digital/contracts 13.0.3

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 (388) hide show
  1. package/LICENSE +214 -0
  2. package/dist/ability/v1/index.d.ts +5 -0
  3. package/dist/ability/v1/index.d.ts.map +1 -0
  4. package/dist/ability/v1/index.js +5 -0
  5. package/dist/ability/v1/index.js.map +1 -0
  6. package/dist/ability/v1/schema.d.ts +288 -0
  7. package/dist/ability/v1/schema.d.ts.map +1 -0
  8. package/dist/ability/v1/schema.js +138 -0
  9. package/dist/ability/v1/schema.js.map +1 -0
  10. package/dist/agent/v1/index.d.ts +8 -0
  11. package/dist/agent/v1/index.d.ts.map +1 -0
  12. package/dist/agent/v1/index.js +31 -0
  13. package/dist/agent/v1/index.js.map +1 -0
  14. package/dist/agent/v1/schema.d.ts +4055 -0
  15. package/dist/agent/v1/schema.d.ts.map +1 -0
  16. package/dist/agent/v1/schema.js +970 -0
  17. package/dist/agent/v1/schema.js.map +1 -0
  18. package/dist/agent/v1/storage-port.d.ts +172 -0
  19. package/dist/agent/v1/storage-port.d.ts.map +1 -0
  20. package/dist/agent/v1/storage-port.js +10 -0
  21. package/dist/agent/v1/storage-port.js.map +1 -0
  22. package/dist/analysis/v1/index.d.ts +7 -0
  23. package/dist/analysis/v1/index.d.ts.map +1 -0
  24. package/dist/analysis/v1/index.js +21 -0
  25. package/dist/analysis/v1/index.js.map +1 -0
  26. package/dist/analysis/v1/schema.d.ts +348 -0
  27. package/dist/analysis/v1/schema.d.ts.map +1 -0
  28. package/dist/analysis/v1/schema.js +252 -0
  29. package/dist/analysis/v1/schema.js.map +1 -0
  30. package/dist/cli/v1/index.d.ts +8 -0
  31. package/dist/cli/v1/index.d.ts.map +1 -0
  32. package/dist/cli/v1/index.js +46 -0
  33. package/dist/cli/v1/index.js.map +1 -0
  34. package/dist/cli/v1/output.d.ts +347 -0
  35. package/dist/cli/v1/output.d.ts.map +1 -0
  36. package/dist/cli/v1/output.js +288 -0
  37. package/dist/cli/v1/output.js.map +1 -0
  38. package/dist/cli/v1/schema.d.ts +494 -0
  39. package/dist/cli/v1/schema.d.ts.map +1 -0
  40. package/dist/cli/v1/schema.js +342 -0
  41. package/dist/cli/v1/schema.js.map +1 -0
  42. package/dist/config/v1/config.d.ts +887 -0
  43. package/dist/config/v1/config.d.ts.map +1 -0
  44. package/dist/config/v1/config.js +348 -0
  45. package/dist/config/v1/config.js.map +1 -0
  46. package/dist/config/v1/errors.d.ts +84 -0
  47. package/dist/config/v1/errors.d.ts.map +1 -0
  48. package/dist/config/v1/errors.js +150 -0
  49. package/dist/config/v1/errors.js.map +1 -0
  50. package/dist/config/v1/events.d.ts +416 -0
  51. package/dist/config/v1/events.d.ts.map +1 -0
  52. package/dist/config/v1/events.js +204 -0
  53. package/dist/config/v1/events.js.map +1 -0
  54. package/dist/config/v1/index.d.ts +11 -0
  55. package/dist/config/v1/index.d.ts.map +1 -0
  56. package/dist/config/v1/index.js +49 -0
  57. package/dist/config/v1/index.js.map +1 -0
  58. package/dist/config/v1/operations.d.ts +293 -0
  59. package/dist/config/v1/operations.d.ts.map +1 -0
  60. package/dist/config/v1/operations.js +172 -0
  61. package/dist/config/v1/operations.js.map +1 -0
  62. package/dist/config/v1/provider-config.d.ts +124 -0
  63. package/dist/config/v1/provider-config.d.ts.map +1 -0
  64. package/dist/config/v1/provider-config.js +123 -0
  65. package/dist/config/v1/provider-config.js.map +1 -0
  66. package/dist/constants.d.ts +292 -0
  67. package/dist/constants.d.ts.map +1 -0
  68. package/dist/constants.js +370 -0
  69. package/dist/constants.js.map +1 -0
  70. package/dist/context/v1/index.d.ts +5 -0
  71. package/dist/context/v1/index.d.ts.map +1 -0
  72. package/dist/context/v1/index.js +13 -0
  73. package/dist/context/v1/index.js.map +1 -0
  74. package/dist/context/v1/schema.d.ts +289 -0
  75. package/dist/context/v1/schema.d.ts.map +1 -0
  76. package/dist/context/v1/schema.js +145 -0
  77. package/dist/context/v1/schema.js.map +1 -0
  78. package/dist/cross-cutting/v1/dead-letter.d.ts +305 -0
  79. package/dist/cross-cutting/v1/dead-letter.d.ts.map +1 -0
  80. package/dist/cross-cutting/v1/dead-letter.js +172 -0
  81. package/dist/cross-cutting/v1/dead-letter.js.map +1 -0
  82. package/dist/cross-cutting/v1/idempotency.d.ts +222 -0
  83. package/dist/cross-cutting/v1/idempotency.d.ts.map +1 -0
  84. package/dist/cross-cutting/v1/idempotency.js +170 -0
  85. package/dist/cross-cutting/v1/idempotency.js.map +1 -0
  86. package/dist/cross-cutting/v1/index.d.ts +14 -0
  87. package/dist/cross-cutting/v1/index.d.ts.map +1 -0
  88. package/dist/cross-cutting/v1/index.js +18 -0
  89. package/dist/cross-cutting/v1/index.js.map +1 -0
  90. package/dist/cross-cutting/v1/retention.d.ts +347 -0
  91. package/dist/cross-cutting/v1/retention.d.ts.map +1 -0
  92. package/dist/cross-cutting/v1/retention.js +178 -0
  93. package/dist/cross-cutting/v1/retention.js.map +1 -0
  94. package/dist/cross-cutting/v1/saga.d.ts +358 -0
  95. package/dist/cross-cutting/v1/saga.d.ts.map +1 -0
  96. package/dist/cross-cutting/v1/saga.js +219 -0
  97. package/dist/cross-cutting/v1/saga.js.map +1 -0
  98. package/dist/design/v1/index.d.ts +5 -0
  99. package/dist/design/v1/index.d.ts.map +1 -0
  100. package/dist/design/v1/index.js +5 -0
  101. package/dist/design/v1/index.js.map +1 -0
  102. package/dist/design/v1/schema.d.ts +748 -0
  103. package/dist/design/v1/schema.d.ts.map +1 -0
  104. package/dist/design/v1/schema.js +316 -0
  105. package/dist/design/v1/schema.js.map +1 -0
  106. package/dist/discussion/v1/index.d.ts +10 -0
  107. package/dist/discussion/v1/index.d.ts.map +1 -0
  108. package/dist/discussion/v1/index.js +21 -0
  109. package/dist/discussion/v1/index.js.map +1 -0
  110. package/dist/discussion/v1/schema.d.ts +1186 -0
  111. package/dist/discussion/v1/schema.d.ts.map +1 -0
  112. package/dist/discussion/v1/schema.js +560 -0
  113. package/dist/discussion/v1/schema.js.map +1 -0
  114. package/dist/file-system/v1/index.d.ts +7 -0
  115. package/dist/file-system/v1/index.d.ts.map +1 -0
  116. package/dist/file-system/v1/index.js +7 -0
  117. package/dist/file-system/v1/index.js.map +1 -0
  118. package/dist/file-system/v1/schema.d.ts +644 -0
  119. package/dist/file-system/v1/schema.d.ts.map +1 -0
  120. package/dist/file-system/v1/schema.js +278 -0
  121. package/dist/file-system/v1/schema.js.map +1 -0
  122. package/dist/guard/v1/index.d.ts +9 -0
  123. package/dist/guard/v1/index.d.ts.map +1 -0
  124. package/dist/guard/v1/index.js +10 -0
  125. package/dist/guard/v1/index.js.map +1 -0
  126. package/dist/guard/v1/schema.d.ts +308 -0
  127. package/dist/guard/v1/schema.d.ts.map +1 -0
  128. package/dist/guard/v1/schema.js +267 -0
  129. package/dist/guard/v1/schema.js.map +1 -0
  130. package/dist/index.d.ts +68 -0
  131. package/dist/index.d.ts.map +1 -0
  132. package/dist/index.js +117 -0
  133. package/dist/index.js.map +1 -0
  134. package/dist/iterate/v1/index.d.ts +5 -0
  135. package/dist/iterate/v1/index.d.ts.map +1 -0
  136. package/dist/iterate/v1/index.js +13 -0
  137. package/dist/iterate/v1/index.js.map +1 -0
  138. package/dist/iterate/v1/schema.d.ts +693 -0
  139. package/dist/iterate/v1/schema.d.ts.map +1 -0
  140. package/dist/iterate/v1/schema.js +244 -0
  141. package/dist/iterate/v1/schema.js.map +1 -0
  142. package/dist/mcp/v1/index.d.ts +8 -0
  143. package/dist/mcp/v1/index.d.ts.map +1 -0
  144. package/dist/mcp/v1/index.js +20 -0
  145. package/dist/mcp/v1/index.js.map +1 -0
  146. package/dist/mcp/v1/prompts/index.d.ts +5 -0
  147. package/dist/mcp/v1/prompts/index.d.ts.map +1 -0
  148. package/dist/mcp/v1/prompts/index.js +5 -0
  149. package/dist/mcp/v1/prompts/index.js.map +1 -0
  150. package/dist/mcp/v1/prompts/schema.d.ts +266 -0
  151. package/dist/mcp/v1/prompts/schema.d.ts.map +1 -0
  152. package/dist/mcp/v1/prompts/schema.js +138 -0
  153. package/dist/mcp/v1/prompts/schema.js.map +1 -0
  154. package/dist/mcp/v1/rate-limit.schema.d.ts +175 -0
  155. package/dist/mcp/v1/rate-limit.schema.d.ts.map +1 -0
  156. package/dist/mcp/v1/rate-limit.schema.js +164 -0
  157. package/dist/mcp/v1/rate-limit.schema.js.map +1 -0
  158. package/dist/mcp/v1/resources/index.d.ts +5 -0
  159. package/dist/mcp/v1/resources/index.d.ts.map +1 -0
  160. package/dist/mcp/v1/resources/index.js +5 -0
  161. package/dist/mcp/v1/resources/index.js.map +1 -0
  162. package/dist/mcp/v1/resources/schema.d.ts +169 -0
  163. package/dist/mcp/v1/resources/schema.d.ts.map +1 -0
  164. package/dist/mcp/v1/resources/schema.js +118 -0
  165. package/dist/mcp/v1/resources/schema.js.map +1 -0
  166. package/dist/mcp/v1/runtime/cache.d.ts +204 -0
  167. package/dist/mcp/v1/runtime/cache.d.ts.map +1 -0
  168. package/dist/mcp/v1/runtime/cache.js +92 -0
  169. package/dist/mcp/v1/runtime/cache.js.map +1 -0
  170. package/dist/mcp/v1/runtime/index.d.ts +5 -0
  171. package/dist/mcp/v1/runtime/index.d.ts.map +1 -0
  172. package/dist/mcp/v1/runtime/index.js +9 -0
  173. package/dist/mcp/v1/runtime/index.js.map +1 -0
  174. package/dist/mcp/v1/runtime/limits.d.ts +113 -0
  175. package/dist/mcp/v1/runtime/limits.d.ts.map +1 -0
  176. package/dist/mcp/v1/runtime/limits.js +95 -0
  177. package/dist/mcp/v1/runtime/limits.js.map +1 -0
  178. package/dist/mcp/v1/runtime/response.d.ts +467 -0
  179. package/dist/mcp/v1/runtime/response.d.ts.map +1 -0
  180. package/dist/mcp/v1/runtime/response.js +130 -0
  181. package/dist/mcp/v1/runtime/response.js.map +1 -0
  182. package/dist/mcp/v1/runtime/timeout.d.ts +116 -0
  183. package/dist/mcp/v1/runtime/timeout.d.ts.map +1 -0
  184. package/dist/mcp/v1/runtime/timeout.js +116 -0
  185. package/dist/mcp/v1/runtime/timeout.js.map +1 -0
  186. package/dist/mcp/v1/schema.d.ts +171 -0
  187. package/dist/mcp/v1/schema.d.ts.map +1 -0
  188. package/dist/mcp/v1/schema.js +97 -0
  189. package/dist/mcp/v1/schema.js.map +1 -0
  190. package/dist/mcp/v1/tools/agent.d.ts +485 -0
  191. package/dist/mcp/v1/tools/agent.d.ts.map +1 -0
  192. package/dist/mcp/v1/tools/agent.js +264 -0
  193. package/dist/mcp/v1/tools/agent.js.map +1 -0
  194. package/dist/mcp/v1/tools/guard.d.ts +243 -0
  195. package/dist/mcp/v1/tools/guard.d.ts.map +1 -0
  196. package/dist/mcp/v1/tools/guard.js +136 -0
  197. package/dist/mcp/v1/tools/guard.js.map +1 -0
  198. package/dist/mcp/v1/tools/index.d.ts +15 -0
  199. package/dist/mcp/v1/tools/index.d.ts.map +1 -0
  200. package/dist/mcp/v1/tools/index.js +22 -0
  201. package/dist/mcp/v1/tools/index.js.map +1 -0
  202. package/dist/mcp/v1/tools/memory.d.ts +569 -0
  203. package/dist/mcp/v1/tools/memory.d.ts.map +1 -0
  204. package/dist/mcp/v1/tools/memory.js +319 -0
  205. package/dist/mcp/v1/tools/memory.js.map +1 -0
  206. package/dist/mcp/v1/tools/session.d.ts +545 -0
  207. package/dist/mcp/v1/tools/session.d.ts.map +1 -0
  208. package/dist/mcp/v1/tools/session.js +309 -0
  209. package/dist/mcp/v1/tools/session.js.map +1 -0
  210. package/dist/mcp/v1/tools/tool-list-schemas.d.ts +354 -0
  211. package/dist/mcp/v1/tools/tool-list-schemas.d.ts.map +1 -0
  212. package/dist/mcp/v1/tools/tool-list-schemas.js +140 -0
  213. package/dist/mcp/v1/tools/tool-list-schemas.js.map +1 -0
  214. package/dist/mcp/v1/tools/trace.d.ts +282 -0
  215. package/dist/mcp/v1/tools/trace.d.ts.map +1 -0
  216. package/dist/mcp/v1/tools/trace.js +94 -0
  217. package/dist/mcp/v1/tools/trace.js.map +1 -0
  218. package/dist/mcp/v1/tools/workflow.d.ts +146 -0
  219. package/dist/mcp/v1/tools/workflow.d.ts.map +1 -0
  220. package/dist/mcp/v1/tools/workflow.js +68 -0
  221. package/dist/mcp/v1/tools/workflow.js.map +1 -0
  222. package/dist/mcp/v1/trace/index.d.ts +5 -0
  223. package/dist/mcp/v1/trace/index.d.ts.map +1 -0
  224. package/dist/mcp/v1/trace/index.js +5 -0
  225. package/dist/mcp/v1/trace/index.js.map +1 -0
  226. package/dist/mcp/v1/trace/tool-trace.d.ts +107 -0
  227. package/dist/mcp/v1/trace/tool-trace.d.ts.map +1 -0
  228. package/dist/mcp/v1/trace/tool-trace.js +91 -0
  229. package/dist/mcp/v1/trace/tool-trace.js.map +1 -0
  230. package/dist/memory/v1/index.d.ts +2 -0
  231. package/dist/memory/v1/index.d.ts.map +1 -0
  232. package/dist/memory/v1/index.js +2 -0
  233. package/dist/memory/v1/index.js.map +1 -0
  234. package/dist/memory/v1/schema.d.ts +188 -0
  235. package/dist/memory/v1/schema.d.ts.map +1 -0
  236. package/dist/memory/v1/schema.js +108 -0
  237. package/dist/memory/v1/schema.js.map +1 -0
  238. package/dist/ml-lifecycle/v1/index.d.ts +12 -0
  239. package/dist/ml-lifecycle/v1/index.d.ts.map +1 -0
  240. package/dist/ml-lifecycle/v1/index.js +12 -0
  241. package/dist/ml-lifecycle/v1/index.js.map +1 -0
  242. package/dist/ml-lifecycle/v1/schema.d.ts +1207 -0
  243. package/dist/ml-lifecycle/v1/schema.d.ts.map +1 -0
  244. package/dist/ml-lifecycle/v1/schema.js +481 -0
  245. package/dist/ml-lifecycle/v1/schema.js.map +1 -0
  246. package/dist/orchestration/v1/index.d.ts +5 -0
  247. package/dist/orchestration/v1/index.d.ts.map +1 -0
  248. package/dist/orchestration/v1/index.js +23 -0
  249. package/dist/orchestration/v1/index.js.map +1 -0
  250. package/dist/orchestration/v1/schema.d.ts +1384 -0
  251. package/dist/orchestration/v1/schema.d.ts.map +1 -0
  252. package/dist/orchestration/v1/schema.js +394 -0
  253. package/dist/orchestration/v1/schema.js.map +1 -0
  254. package/dist/provider/v1/circuit-breaker.d.ts +151 -0
  255. package/dist/provider/v1/circuit-breaker.d.ts.map +1 -0
  256. package/dist/provider/v1/circuit-breaker.js +119 -0
  257. package/dist/provider/v1/circuit-breaker.js.map +1 -0
  258. package/dist/provider/v1/health.d.ts +246 -0
  259. package/dist/provider/v1/health.d.ts.map +1 -0
  260. package/dist/provider/v1/health.js +190 -0
  261. package/dist/provider/v1/health.js.map +1 -0
  262. package/dist/provider/v1/index.d.ts +13 -0
  263. package/dist/provider/v1/index.d.ts.map +1 -0
  264. package/dist/provider/v1/index.js +17 -0
  265. package/dist/provider/v1/index.js.map +1 -0
  266. package/dist/provider/v1/port.d.ts +237 -0
  267. package/dist/provider/v1/port.d.ts.map +1 -0
  268. package/dist/provider/v1/port.js +113 -0
  269. package/dist/provider/v1/port.js.map +1 -0
  270. package/dist/provider/v1/rate-limit.d.ts +214 -0
  271. package/dist/provider/v1/rate-limit.d.ts.map +1 -0
  272. package/dist/provider/v1/rate-limit.js +165 -0
  273. package/dist/provider/v1/rate-limit.js.map +1 -0
  274. package/dist/resilience/v1/circuit-breaker.d.ts +135 -0
  275. package/dist/resilience/v1/circuit-breaker.d.ts.map +1 -0
  276. package/dist/resilience/v1/circuit-breaker.js +105 -0
  277. package/dist/resilience/v1/circuit-breaker.js.map +1 -0
  278. package/dist/resilience/v1/index.d.ts +17 -0
  279. package/dist/resilience/v1/index.d.ts.map +1 -0
  280. package/dist/resilience/v1/index.js +17 -0
  281. package/dist/resilience/v1/index.js.map +1 -0
  282. package/dist/resilience/v1/loop-guard.d.ts +123 -0
  283. package/dist/resilience/v1/loop-guard.d.ts.map +1 -0
  284. package/dist/resilience/v1/loop-guard.js +96 -0
  285. package/dist/resilience/v1/loop-guard.js.map +1 -0
  286. package/dist/resilience/v1/metrics.d.ts +323 -0
  287. package/dist/resilience/v1/metrics.d.ts.map +1 -0
  288. package/dist/resilience/v1/metrics.js +183 -0
  289. package/dist/resilience/v1/metrics.js.map +1 -0
  290. package/dist/resilience/v1/rate-limiter.d.ts +122 -0
  291. package/dist/resilience/v1/rate-limiter.d.ts.map +1 -0
  292. package/dist/resilience/v1/rate-limiter.js +119 -0
  293. package/dist/resilience/v1/rate-limiter.js.map +1 -0
  294. package/dist/resilience/v1/resource-limits.d.ts +146 -0
  295. package/dist/resilience/v1/resource-limits.d.ts.map +1 -0
  296. package/dist/resilience/v1/resource-limits.js +130 -0
  297. package/dist/resilience/v1/resource-limits.js.map +1 -0
  298. package/dist/review/v1/index.d.ts +7 -0
  299. package/dist/review/v1/index.d.ts.map +1 -0
  300. package/dist/review/v1/index.js +23 -0
  301. package/dist/review/v1/index.js.map +1 -0
  302. package/dist/review/v1/schema.d.ts +1284 -0
  303. package/dist/review/v1/schema.d.ts.map +1 -0
  304. package/dist/review/v1/schema.js +423 -0
  305. package/dist/review/v1/schema.js.map +1 -0
  306. package/dist/routing/v1/index.d.ts +2 -0
  307. package/dist/routing/v1/index.d.ts.map +1 -0
  308. package/dist/routing/v1/index.js +2 -0
  309. package/dist/routing/v1/index.js.map +1 -0
  310. package/dist/routing/v1/schema.d.ts +315 -0
  311. package/dist/routing/v1/schema.d.ts.map +1 -0
  312. package/dist/routing/v1/schema.js +103 -0
  313. package/dist/routing/v1/schema.js.map +1 -0
  314. package/dist/scaffold/v1/index.d.ts +7 -0
  315. package/dist/scaffold/v1/index.d.ts.map +1 -0
  316. package/dist/scaffold/v1/index.js +7 -0
  317. package/dist/scaffold/v1/index.js.map +1 -0
  318. package/dist/scaffold/v1/schema.d.ts +351 -0
  319. package/dist/scaffold/v1/schema.d.ts.map +1 -0
  320. package/dist/scaffold/v1/schema.js +238 -0
  321. package/dist/scaffold/v1/schema.js.map +1 -0
  322. package/dist/session/v1/index.d.ts +7 -0
  323. package/dist/session/v1/index.d.ts.map +1 -0
  324. package/dist/session/v1/index.js +23 -0
  325. package/dist/session/v1/index.js.map +1 -0
  326. package/dist/session/v1/schema.d.ts +1156 -0
  327. package/dist/session/v1/schema.d.ts.map +1 -0
  328. package/dist/session/v1/schema.js +315 -0
  329. package/dist/session/v1/schema.js.map +1 -0
  330. package/dist/storage/v1/index.d.ts +9 -0
  331. package/dist/storage/v1/index.d.ts.map +1 -0
  332. package/dist/storage/v1/index.js +21 -0
  333. package/dist/storage/v1/index.js.map +1 -0
  334. package/dist/storage/v1/schema.d.ts +411 -0
  335. package/dist/storage/v1/schema.d.ts.map +1 -0
  336. package/dist/storage/v1/schema.js +167 -0
  337. package/dist/storage/v1/schema.js.map +1 -0
  338. package/dist/telemetry/v1/index.d.ts +5 -0
  339. package/dist/telemetry/v1/index.d.ts.map +1 -0
  340. package/dist/telemetry/v1/index.js +5 -0
  341. package/dist/telemetry/v1/index.js.map +1 -0
  342. package/dist/telemetry/v1/schema.d.ts +747 -0
  343. package/dist/telemetry/v1/schema.d.ts.map +1 -0
  344. package/dist/telemetry/v1/schema.js +300 -0
  345. package/dist/telemetry/v1/schema.js.map +1 -0
  346. package/dist/token-budget/v1/index.d.ts +7 -0
  347. package/dist/token-budget/v1/index.d.ts.map +1 -0
  348. package/dist/token-budget/v1/index.js +25 -0
  349. package/dist/token-budget/v1/index.js.map +1 -0
  350. package/dist/token-budget/v1/schema.d.ts +588 -0
  351. package/dist/token-budget/v1/schema.d.ts.map +1 -0
  352. package/dist/token-budget/v1/schema.js +239 -0
  353. package/dist/token-budget/v1/schema.js.map +1 -0
  354. package/dist/trace/v1/index.d.ts +2 -0
  355. package/dist/trace/v1/index.d.ts.map +1 -0
  356. package/dist/trace/v1/index.js +4 -0
  357. package/dist/trace/v1/index.js.map +1 -0
  358. package/dist/trace/v1/schema.d.ts +531 -0
  359. package/dist/trace/v1/schema.d.ts.map +1 -0
  360. package/dist/trace/v1/schema.js +243 -0
  361. package/dist/trace/v1/schema.js.map +1 -0
  362. package/dist/workflow/v1/index.d.ts +3 -0
  363. package/dist/workflow/v1/index.d.ts.map +1 -0
  364. package/dist/workflow/v1/index.js +8 -0
  365. package/dist/workflow/v1/index.js.map +1 -0
  366. package/dist/workflow/v1/schema.d.ts +267 -0
  367. package/dist/workflow/v1/schema.d.ts.map +1 -0
  368. package/dist/workflow/v1/schema.js +95 -0
  369. package/dist/workflow/v1/schema.js.map +1 -0
  370. package/dist/workflow/v1/step-guard.d.ts +571 -0
  371. package/dist/workflow/v1/step-guard.d.ts.map +1 -0
  372. package/dist/workflow/v1/step-guard.js +305 -0
  373. package/dist/workflow/v1/step-guard.js.map +1 -0
  374. package/dist/workflow-templates/v1/index.d.ts +8 -0
  375. package/dist/workflow-templates/v1/index.d.ts.map +1 -0
  376. package/dist/workflow-templates/v1/index.js +8 -0
  377. package/dist/workflow-templates/v1/index.js.map +1 -0
  378. package/dist/workflow-templates/v1/schema.d.ts +714 -0
  379. package/dist/workflow-templates/v1/schema.d.ts.map +1 -0
  380. package/dist/workflow-templates/v1/schema.js +168 -0
  381. package/dist/workflow-templates/v1/schema.js.map +1 -0
  382. package/package.json +142 -0
  383. package/src/guard/v1/policy.schema.json +56 -0
  384. package/src/mcp/v1/tools.schema.json +108 -0
  385. package/src/memory/v1/event.schema.json +136 -0
  386. package/src/routing/v1/decision.schema.json +155 -0
  387. package/src/trace/v1/event.schema.json +197 -0
  388. package/src/workflow/v1/workflow.schema.json +142 -0
@@ -0,0 +1,714 @@
1
+ /**
2
+ * Workflow Templates Contract V1 - Schema Definitions
3
+ *
4
+ * Defines reusable workflow template schemas for different categories:
5
+ * - ML lifecycle workflows
6
+ * - Product development workflows
7
+ * - Infrastructure workflows
8
+ * - Leadership/strategic workflows
9
+ */
10
+ import { z } from 'zod';
11
+ /**
12
+ * Workflow template categories
13
+ */
14
+ export declare const WorkflowCategorySchema: z.ZodEnum<["ml-lifecycle", "product-development", "engineering", "infrastructure", "leadership", "quality", "security", "research"]>;
15
+ /**
16
+ * Workflow step configuration for templates
17
+ */
18
+ export declare const TemplateStepConfigSchema: z.ZodObject<{
19
+ agent: z.ZodString;
20
+ task: z.ZodString;
21
+ tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
22
+ outputs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
23
+ }, "strip", z.ZodTypeAny, {
24
+ task: string;
25
+ agent: string;
26
+ outputs?: string[] | undefined;
27
+ tools?: string[] | undefined;
28
+ }, {
29
+ task: string;
30
+ agent: string;
31
+ outputs?: string[] | undefined;
32
+ tools?: string[] | undefined;
33
+ }>;
34
+ /**
35
+ * Workflow template step
36
+ */
37
+ export declare const WorkflowTemplateStepSchema: z.ZodObject<{
38
+ stepId: z.ZodString;
39
+ name: z.ZodString;
40
+ type: z.ZodEnum<["prompt", "tool", "conditional", "parallel"]>;
41
+ timeout: z.ZodDefault<z.ZodNumber>;
42
+ config: z.ZodObject<{
43
+ agent: z.ZodString;
44
+ task: z.ZodString;
45
+ tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
46
+ outputs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
47
+ }, "strip", z.ZodTypeAny, {
48
+ task: string;
49
+ agent: string;
50
+ outputs?: string[] | undefined;
51
+ tools?: string[] | undefined;
52
+ }, {
53
+ task: string;
54
+ agent: string;
55
+ outputs?: string[] | undefined;
56
+ tools?: string[] | undefined;
57
+ }>;
58
+ retryPolicy: z.ZodOptional<z.ZodObject<{
59
+ maxAttempts: z.ZodDefault<z.ZodNumber>;
60
+ backoffMs: z.ZodDefault<z.ZodNumber>;
61
+ }, "strip", z.ZodTypeAny, {
62
+ maxAttempts: number;
63
+ backoffMs: number;
64
+ }, {
65
+ maxAttempts?: number | undefined;
66
+ backoffMs?: number | undefined;
67
+ }>>;
68
+ }, "strip", z.ZodTypeAny, {
69
+ type: "prompt" | "tool" | "conditional" | "parallel";
70
+ timeout: number;
71
+ stepId: string;
72
+ name: string;
73
+ config: {
74
+ task: string;
75
+ agent: string;
76
+ outputs?: string[] | undefined;
77
+ tools?: string[] | undefined;
78
+ };
79
+ retryPolicy?: {
80
+ maxAttempts: number;
81
+ backoffMs: number;
82
+ } | undefined;
83
+ }, {
84
+ type: "prompt" | "tool" | "conditional" | "parallel";
85
+ stepId: string;
86
+ name: string;
87
+ config: {
88
+ task: string;
89
+ agent: string;
90
+ outputs?: string[] | undefined;
91
+ tools?: string[] | undefined;
92
+ };
93
+ timeout?: number | undefined;
94
+ retryPolicy?: {
95
+ maxAttempts?: number | undefined;
96
+ backoffMs?: number | undefined;
97
+ } | undefined;
98
+ }>;
99
+ /**
100
+ * Workflow template metadata
101
+ */
102
+ export declare const WorkflowTemplateMetadataSchema: z.ZodObject<{
103
+ requiredAbilities: z.ZodArray<z.ZodString, "many">;
104
+ requiredAgents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
105
+ estimatedDuration: z.ZodNumber;
106
+ complexity: z.ZodEnum<["low", "medium", "high"]>;
107
+ schedule: z.ZodOptional<z.ZodString>;
108
+ }, "strip", z.ZodTypeAny, {
109
+ requiredAbilities: string[];
110
+ estimatedDuration: number;
111
+ complexity: "high" | "medium" | "low";
112
+ schedule?: string | undefined;
113
+ requiredAgents?: string[] | undefined;
114
+ }, {
115
+ requiredAbilities: string[];
116
+ estimatedDuration: number;
117
+ complexity: "high" | "medium" | "low";
118
+ schedule?: string | undefined;
119
+ requiredAgents?: string[] | undefined;
120
+ }>;
121
+ /**
122
+ * Workflow template storage configuration
123
+ */
124
+ export declare const WorkflowTemplateStorageSchema: z.ZodObject<{
125
+ namespace: z.ZodString;
126
+ ttl: z.ZodOptional<z.ZodNumber>;
127
+ }, "strip", z.ZodTypeAny, {
128
+ namespace: string;
129
+ ttl?: number | undefined;
130
+ }, {
131
+ namespace: string;
132
+ ttl?: number | undefined;
133
+ }>;
134
+ /**
135
+ * Complete workflow template definition
136
+ */
137
+ export declare const WorkflowTemplateSchema: z.ZodObject<{
138
+ workflowId: z.ZodString;
139
+ name: z.ZodString;
140
+ description: z.ZodString;
141
+ version: z.ZodString;
142
+ category: z.ZodEnum<["ml-lifecycle", "product-development", "engineering", "infrastructure", "leadership", "quality", "security", "research"]>;
143
+ tags: z.ZodArray<z.ZodString, "many">;
144
+ metadata: z.ZodObject<{
145
+ requiredAbilities: z.ZodArray<z.ZodString, "many">;
146
+ requiredAgents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
147
+ estimatedDuration: z.ZodNumber;
148
+ complexity: z.ZodEnum<["low", "medium", "high"]>;
149
+ schedule: z.ZodOptional<z.ZodString>;
150
+ }, "strip", z.ZodTypeAny, {
151
+ requiredAbilities: string[];
152
+ estimatedDuration: number;
153
+ complexity: "high" | "medium" | "low";
154
+ schedule?: string | undefined;
155
+ requiredAgents?: string[] | undefined;
156
+ }, {
157
+ requiredAbilities: string[];
158
+ estimatedDuration: number;
159
+ complexity: "high" | "medium" | "low";
160
+ schedule?: string | undefined;
161
+ requiredAgents?: string[] | undefined;
162
+ }>;
163
+ steps: z.ZodArray<z.ZodObject<{
164
+ stepId: z.ZodString;
165
+ name: z.ZodString;
166
+ type: z.ZodEnum<["prompt", "tool", "conditional", "parallel"]>;
167
+ timeout: z.ZodDefault<z.ZodNumber>;
168
+ config: z.ZodObject<{
169
+ agent: z.ZodString;
170
+ task: z.ZodString;
171
+ tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
172
+ outputs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
173
+ }, "strip", z.ZodTypeAny, {
174
+ task: string;
175
+ agent: string;
176
+ outputs?: string[] | undefined;
177
+ tools?: string[] | undefined;
178
+ }, {
179
+ task: string;
180
+ agent: string;
181
+ outputs?: string[] | undefined;
182
+ tools?: string[] | undefined;
183
+ }>;
184
+ retryPolicy: z.ZodOptional<z.ZodObject<{
185
+ maxAttempts: z.ZodDefault<z.ZodNumber>;
186
+ backoffMs: z.ZodDefault<z.ZodNumber>;
187
+ }, "strip", z.ZodTypeAny, {
188
+ maxAttempts: number;
189
+ backoffMs: number;
190
+ }, {
191
+ maxAttempts?: number | undefined;
192
+ backoffMs?: number | undefined;
193
+ }>>;
194
+ }, "strip", z.ZodTypeAny, {
195
+ type: "prompt" | "tool" | "conditional" | "parallel";
196
+ timeout: number;
197
+ stepId: string;
198
+ name: string;
199
+ config: {
200
+ task: string;
201
+ agent: string;
202
+ outputs?: string[] | undefined;
203
+ tools?: string[] | undefined;
204
+ };
205
+ retryPolicy?: {
206
+ maxAttempts: number;
207
+ backoffMs: number;
208
+ } | undefined;
209
+ }, {
210
+ type: "prompt" | "tool" | "conditional" | "parallel";
211
+ stepId: string;
212
+ name: string;
213
+ config: {
214
+ task: string;
215
+ agent: string;
216
+ outputs?: string[] | undefined;
217
+ tools?: string[] | undefined;
218
+ };
219
+ timeout?: number | undefined;
220
+ retryPolicy?: {
221
+ maxAttempts?: number | undefined;
222
+ backoffMs?: number | undefined;
223
+ } | undefined;
224
+ }>, "many">;
225
+ storage: z.ZodOptional<z.ZodObject<{
226
+ namespace: z.ZodString;
227
+ ttl: z.ZodOptional<z.ZodNumber>;
228
+ }, "strip", z.ZodTypeAny, {
229
+ namespace: string;
230
+ ttl?: number | undefined;
231
+ }, {
232
+ namespace: string;
233
+ ttl?: number | undefined;
234
+ }>>;
235
+ }, "strip", z.ZodTypeAny, {
236
+ name: string;
237
+ workflowId: string;
238
+ version: string;
239
+ description: string;
240
+ steps: {
241
+ type: "prompt" | "tool" | "conditional" | "parallel";
242
+ timeout: number;
243
+ stepId: string;
244
+ name: string;
245
+ config: {
246
+ task: string;
247
+ agent: string;
248
+ outputs?: string[] | undefined;
249
+ tools?: string[] | undefined;
250
+ };
251
+ retryPolicy?: {
252
+ maxAttempts: number;
253
+ backoffMs: number;
254
+ } | undefined;
255
+ }[];
256
+ metadata: {
257
+ requiredAbilities: string[];
258
+ estimatedDuration: number;
259
+ complexity: "high" | "medium" | "low";
260
+ schedule?: string | undefined;
261
+ requiredAgents?: string[] | undefined;
262
+ };
263
+ tags: string[];
264
+ category: "infrastructure" | "ml-lifecycle" | "security" | "product-development" | "engineering" | "leadership" | "quality" | "research";
265
+ storage?: {
266
+ namespace: string;
267
+ ttl?: number | undefined;
268
+ } | undefined;
269
+ }, {
270
+ name: string;
271
+ workflowId: string;
272
+ version: string;
273
+ description: string;
274
+ steps: {
275
+ type: "prompt" | "tool" | "conditional" | "parallel";
276
+ stepId: string;
277
+ name: string;
278
+ config: {
279
+ task: string;
280
+ agent: string;
281
+ outputs?: string[] | undefined;
282
+ tools?: string[] | undefined;
283
+ };
284
+ timeout?: number | undefined;
285
+ retryPolicy?: {
286
+ maxAttempts?: number | undefined;
287
+ backoffMs?: number | undefined;
288
+ } | undefined;
289
+ }[];
290
+ metadata: {
291
+ requiredAbilities: string[];
292
+ estimatedDuration: number;
293
+ complexity: "high" | "medium" | "low";
294
+ schedule?: string | undefined;
295
+ requiredAgents?: string[] | undefined;
296
+ };
297
+ tags: string[];
298
+ category: "infrastructure" | "ml-lifecycle" | "security" | "product-development" | "engineering" | "leadership" | "quality" | "research";
299
+ storage?: {
300
+ namespace: string;
301
+ ttl?: number | undefined;
302
+ } | undefined;
303
+ }>;
304
+ /**
305
+ * Workflow template registry entry
306
+ */
307
+ export declare const WorkflowTemplateRegistryEntrySchema: z.ZodObject<{
308
+ template: z.ZodObject<{
309
+ workflowId: z.ZodString;
310
+ name: z.ZodString;
311
+ description: z.ZodString;
312
+ version: z.ZodString;
313
+ category: z.ZodEnum<["ml-lifecycle", "product-development", "engineering", "infrastructure", "leadership", "quality", "security", "research"]>;
314
+ tags: z.ZodArray<z.ZodString, "many">;
315
+ metadata: z.ZodObject<{
316
+ requiredAbilities: z.ZodArray<z.ZodString, "many">;
317
+ requiredAgents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
318
+ estimatedDuration: z.ZodNumber;
319
+ complexity: z.ZodEnum<["low", "medium", "high"]>;
320
+ schedule: z.ZodOptional<z.ZodString>;
321
+ }, "strip", z.ZodTypeAny, {
322
+ requiredAbilities: string[];
323
+ estimatedDuration: number;
324
+ complexity: "high" | "medium" | "low";
325
+ schedule?: string | undefined;
326
+ requiredAgents?: string[] | undefined;
327
+ }, {
328
+ requiredAbilities: string[];
329
+ estimatedDuration: number;
330
+ complexity: "high" | "medium" | "low";
331
+ schedule?: string | undefined;
332
+ requiredAgents?: string[] | undefined;
333
+ }>;
334
+ steps: z.ZodArray<z.ZodObject<{
335
+ stepId: z.ZodString;
336
+ name: z.ZodString;
337
+ type: z.ZodEnum<["prompt", "tool", "conditional", "parallel"]>;
338
+ timeout: z.ZodDefault<z.ZodNumber>;
339
+ config: z.ZodObject<{
340
+ agent: z.ZodString;
341
+ task: z.ZodString;
342
+ tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
343
+ outputs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
344
+ }, "strip", z.ZodTypeAny, {
345
+ task: string;
346
+ agent: string;
347
+ outputs?: string[] | undefined;
348
+ tools?: string[] | undefined;
349
+ }, {
350
+ task: string;
351
+ agent: string;
352
+ outputs?: string[] | undefined;
353
+ tools?: string[] | undefined;
354
+ }>;
355
+ retryPolicy: z.ZodOptional<z.ZodObject<{
356
+ maxAttempts: z.ZodDefault<z.ZodNumber>;
357
+ backoffMs: z.ZodDefault<z.ZodNumber>;
358
+ }, "strip", z.ZodTypeAny, {
359
+ maxAttempts: number;
360
+ backoffMs: number;
361
+ }, {
362
+ maxAttempts?: number | undefined;
363
+ backoffMs?: number | undefined;
364
+ }>>;
365
+ }, "strip", z.ZodTypeAny, {
366
+ type: "prompt" | "tool" | "conditional" | "parallel";
367
+ timeout: number;
368
+ stepId: string;
369
+ name: string;
370
+ config: {
371
+ task: string;
372
+ agent: string;
373
+ outputs?: string[] | undefined;
374
+ tools?: string[] | undefined;
375
+ };
376
+ retryPolicy?: {
377
+ maxAttempts: number;
378
+ backoffMs: number;
379
+ } | undefined;
380
+ }, {
381
+ type: "prompt" | "tool" | "conditional" | "parallel";
382
+ stepId: string;
383
+ name: string;
384
+ config: {
385
+ task: string;
386
+ agent: string;
387
+ outputs?: string[] | undefined;
388
+ tools?: string[] | undefined;
389
+ };
390
+ timeout?: number | undefined;
391
+ retryPolicy?: {
392
+ maxAttempts?: number | undefined;
393
+ backoffMs?: number | undefined;
394
+ } | undefined;
395
+ }>, "many">;
396
+ storage: z.ZodOptional<z.ZodObject<{
397
+ namespace: z.ZodString;
398
+ ttl: z.ZodOptional<z.ZodNumber>;
399
+ }, "strip", z.ZodTypeAny, {
400
+ namespace: string;
401
+ ttl?: number | undefined;
402
+ }, {
403
+ namespace: string;
404
+ ttl?: number | undefined;
405
+ }>>;
406
+ }, "strip", z.ZodTypeAny, {
407
+ name: string;
408
+ workflowId: string;
409
+ version: string;
410
+ description: string;
411
+ steps: {
412
+ type: "prompt" | "tool" | "conditional" | "parallel";
413
+ timeout: number;
414
+ stepId: string;
415
+ name: string;
416
+ config: {
417
+ task: string;
418
+ agent: string;
419
+ outputs?: string[] | undefined;
420
+ tools?: string[] | undefined;
421
+ };
422
+ retryPolicy?: {
423
+ maxAttempts: number;
424
+ backoffMs: number;
425
+ } | undefined;
426
+ }[];
427
+ metadata: {
428
+ requiredAbilities: string[];
429
+ estimatedDuration: number;
430
+ complexity: "high" | "medium" | "low";
431
+ schedule?: string | undefined;
432
+ requiredAgents?: string[] | undefined;
433
+ };
434
+ tags: string[];
435
+ category: "infrastructure" | "ml-lifecycle" | "security" | "product-development" | "engineering" | "leadership" | "quality" | "research";
436
+ storage?: {
437
+ namespace: string;
438
+ ttl?: number | undefined;
439
+ } | undefined;
440
+ }, {
441
+ name: string;
442
+ workflowId: string;
443
+ version: string;
444
+ description: string;
445
+ steps: {
446
+ type: "prompt" | "tool" | "conditional" | "parallel";
447
+ stepId: string;
448
+ name: string;
449
+ config: {
450
+ task: string;
451
+ agent: string;
452
+ outputs?: string[] | undefined;
453
+ tools?: string[] | undefined;
454
+ };
455
+ timeout?: number | undefined;
456
+ retryPolicy?: {
457
+ maxAttempts?: number | undefined;
458
+ backoffMs?: number | undefined;
459
+ } | undefined;
460
+ }[];
461
+ metadata: {
462
+ requiredAbilities: string[];
463
+ estimatedDuration: number;
464
+ complexity: "high" | "medium" | "low";
465
+ schedule?: string | undefined;
466
+ requiredAgents?: string[] | undefined;
467
+ };
468
+ tags: string[];
469
+ category: "infrastructure" | "ml-lifecycle" | "security" | "product-development" | "engineering" | "leadership" | "quality" | "research";
470
+ storage?: {
471
+ namespace: string;
472
+ ttl?: number | undefined;
473
+ } | undefined;
474
+ }>;
475
+ registeredAt: z.ZodString;
476
+ registeredBy: z.ZodString;
477
+ enabled: z.ZodDefault<z.ZodBoolean>;
478
+ deprecatedAt: z.ZodOptional<z.ZodString>;
479
+ deprecationReason: z.ZodOptional<z.ZodString>;
480
+ }, "strip", z.ZodTypeAny, {
481
+ enabled: boolean;
482
+ template: {
483
+ name: string;
484
+ workflowId: string;
485
+ version: string;
486
+ description: string;
487
+ steps: {
488
+ type: "prompt" | "tool" | "conditional" | "parallel";
489
+ timeout: number;
490
+ stepId: string;
491
+ name: string;
492
+ config: {
493
+ task: string;
494
+ agent: string;
495
+ outputs?: string[] | undefined;
496
+ tools?: string[] | undefined;
497
+ };
498
+ retryPolicy?: {
499
+ maxAttempts: number;
500
+ backoffMs: number;
501
+ } | undefined;
502
+ }[];
503
+ metadata: {
504
+ requiredAbilities: string[];
505
+ estimatedDuration: number;
506
+ complexity: "high" | "medium" | "low";
507
+ schedule?: string | undefined;
508
+ requiredAgents?: string[] | undefined;
509
+ };
510
+ tags: string[];
511
+ category: "infrastructure" | "ml-lifecycle" | "security" | "product-development" | "engineering" | "leadership" | "quality" | "research";
512
+ storage?: {
513
+ namespace: string;
514
+ ttl?: number | undefined;
515
+ } | undefined;
516
+ };
517
+ registeredAt: string;
518
+ registeredBy: string;
519
+ deprecatedAt?: string | undefined;
520
+ deprecationReason?: string | undefined;
521
+ }, {
522
+ template: {
523
+ name: string;
524
+ workflowId: string;
525
+ version: string;
526
+ description: string;
527
+ steps: {
528
+ type: "prompt" | "tool" | "conditional" | "parallel";
529
+ stepId: string;
530
+ name: string;
531
+ config: {
532
+ task: string;
533
+ agent: string;
534
+ outputs?: string[] | undefined;
535
+ tools?: string[] | undefined;
536
+ };
537
+ timeout?: number | undefined;
538
+ retryPolicy?: {
539
+ maxAttempts?: number | undefined;
540
+ backoffMs?: number | undefined;
541
+ } | undefined;
542
+ }[];
543
+ metadata: {
544
+ requiredAbilities: string[];
545
+ estimatedDuration: number;
546
+ complexity: "high" | "medium" | "low";
547
+ schedule?: string | undefined;
548
+ requiredAgents?: string[] | undefined;
549
+ };
550
+ tags: string[];
551
+ category: "infrastructure" | "ml-lifecycle" | "security" | "product-development" | "engineering" | "leadership" | "quality" | "research";
552
+ storage?: {
553
+ namespace: string;
554
+ ttl?: number | undefined;
555
+ } | undefined;
556
+ };
557
+ registeredAt: string;
558
+ registeredBy: string;
559
+ enabled?: boolean | undefined;
560
+ deprecatedAt?: string | undefined;
561
+ deprecationReason?: string | undefined;
562
+ }>;
563
+ /**
564
+ * Workflow template execution request
565
+ */
566
+ export declare const WorkflowTemplateExecutionRequestSchema: z.ZodObject<{
567
+ templateId: z.ZodString;
568
+ sessionId: z.ZodOptional<z.ZodString>;
569
+ inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
570
+ overrides: z.ZodOptional<z.ZodObject<{
571
+ timeout: z.ZodOptional<z.ZodNumber>;
572
+ retryPolicy: z.ZodOptional<z.ZodObject<{
573
+ maxAttempts: z.ZodNumber;
574
+ backoffMs: z.ZodNumber;
575
+ }, "strip", z.ZodTypeAny, {
576
+ maxAttempts: number;
577
+ backoffMs: number;
578
+ }, {
579
+ maxAttempts: number;
580
+ backoffMs: number;
581
+ }>>;
582
+ }, "strip", z.ZodTypeAny, {
583
+ timeout?: number | undefined;
584
+ retryPolicy?: {
585
+ maxAttempts: number;
586
+ backoffMs: number;
587
+ } | undefined;
588
+ }, {
589
+ timeout?: number | undefined;
590
+ retryPolicy?: {
591
+ maxAttempts: number;
592
+ backoffMs: number;
593
+ } | undefined;
594
+ }>>;
595
+ }, "strip", z.ZodTypeAny, {
596
+ templateId: string;
597
+ sessionId?: string | undefined;
598
+ inputs?: Record<string, unknown> | undefined;
599
+ overrides?: {
600
+ timeout?: number | undefined;
601
+ retryPolicy?: {
602
+ maxAttempts: number;
603
+ backoffMs: number;
604
+ } | undefined;
605
+ } | undefined;
606
+ }, {
607
+ templateId: string;
608
+ sessionId?: string | undefined;
609
+ inputs?: Record<string, unknown> | undefined;
610
+ overrides?: {
611
+ timeout?: number | undefined;
612
+ retryPolicy?: {
613
+ maxAttempts: number;
614
+ backoffMs: number;
615
+ } | undefined;
616
+ } | undefined;
617
+ }>;
618
+ /**
619
+ * Workflow template execution result
620
+ */
621
+ export declare const WorkflowTemplateExecutionResultSchema: z.ZodObject<{
622
+ templateId: z.ZodString;
623
+ executionId: z.ZodString;
624
+ sessionId: z.ZodOptional<z.ZodString>;
625
+ status: z.ZodEnum<["pending", "running", "completed", "failed", "cancelled"]>;
626
+ startedAt: z.ZodString;
627
+ completedAt: z.ZodOptional<z.ZodString>;
628
+ stepResults: z.ZodArray<z.ZodObject<{
629
+ stepId: z.ZodString;
630
+ status: z.ZodEnum<["pending", "running", "completed", "failed", "skipped"]>;
631
+ output: z.ZodOptional<z.ZodUnknown>;
632
+ error: z.ZodOptional<z.ZodString>;
633
+ duration: z.ZodOptional<z.ZodNumber>;
634
+ }, "strip", z.ZodTypeAny, {
635
+ status: "pending" | "completed" | "failed" | "skipped" | "running";
636
+ stepId: string;
637
+ error?: string | undefined;
638
+ output?: unknown;
639
+ duration?: number | undefined;
640
+ }, {
641
+ status: "pending" | "completed" | "failed" | "skipped" | "running";
642
+ stepId: string;
643
+ error?: string | undefined;
644
+ output?: unknown;
645
+ duration?: number | undefined;
646
+ }>, "many">;
647
+ outputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
648
+ error: z.ZodOptional<z.ZodString>;
649
+ }, "strip", z.ZodTypeAny, {
650
+ status: "pending" | "completed" | "failed" | "running" | "cancelled";
651
+ executionId: string;
652
+ stepResults: {
653
+ status: "pending" | "completed" | "failed" | "skipped" | "running";
654
+ stepId: string;
655
+ error?: string | undefined;
656
+ output?: unknown;
657
+ duration?: number | undefined;
658
+ }[];
659
+ startedAt: string;
660
+ templateId: string;
661
+ sessionId?: string | undefined;
662
+ error?: string | undefined;
663
+ completedAt?: string | undefined;
664
+ outputs?: Record<string, unknown> | undefined;
665
+ }, {
666
+ status: "pending" | "completed" | "failed" | "running" | "cancelled";
667
+ executionId: string;
668
+ stepResults: {
669
+ status: "pending" | "completed" | "failed" | "skipped" | "running";
670
+ stepId: string;
671
+ error?: string | undefined;
672
+ output?: unknown;
673
+ duration?: number | undefined;
674
+ }[];
675
+ startedAt: string;
676
+ templateId: string;
677
+ sessionId?: string | undefined;
678
+ error?: string | undefined;
679
+ completedAt?: string | undefined;
680
+ outputs?: Record<string, unknown> | undefined;
681
+ }>;
682
+ export type WorkflowCategory = z.infer<typeof WorkflowCategorySchema>;
683
+ export type TemplateStepConfig = z.infer<typeof TemplateStepConfigSchema>;
684
+ export type WorkflowTemplateStep = z.infer<typeof WorkflowTemplateStepSchema>;
685
+ export type WorkflowTemplateMetadata = z.infer<typeof WorkflowTemplateMetadataSchema>;
686
+ export type WorkflowTemplateStorage = z.infer<typeof WorkflowTemplateStorageSchema>;
687
+ export type WorkflowTemplate = z.infer<typeof WorkflowTemplateSchema>;
688
+ export type WorkflowTemplateRegistryEntry = z.infer<typeof WorkflowTemplateRegistryEntrySchema>;
689
+ export type WorkflowTemplateExecutionRequest = z.infer<typeof WorkflowTemplateExecutionRequestSchema>;
690
+ export type WorkflowTemplateExecutionResult = z.infer<typeof WorkflowTemplateExecutionResultSchema>;
691
+ export declare const validateWorkflowTemplate: (data: unknown) => WorkflowTemplate;
692
+ export declare const safeValidateWorkflowTemplate: (data: unknown) => {
693
+ success: true;
694
+ data: WorkflowTemplate;
695
+ } | {
696
+ success: false;
697
+ error: z.ZodError;
698
+ };
699
+ export declare const validateWorkflowTemplateExecutionRequest: (data: unknown) => WorkflowTemplateExecutionRequest;
700
+ export declare const createWorkflowTemplate: (params: Omit<WorkflowTemplate, "version"> & {
701
+ version?: string;
702
+ }) => WorkflowTemplate;
703
+ export declare const WorkflowTemplateErrorCodes: {
704
+ readonly TEMPLATE_NOT_FOUND: "WORKFLOW_TEMPLATE_NOT_FOUND";
705
+ readonly TEMPLATE_ALREADY_EXISTS: "WORKFLOW_TEMPLATE_ALREADY_EXISTS";
706
+ readonly TEMPLATE_DEPRECATED: "WORKFLOW_TEMPLATE_DEPRECATED";
707
+ readonly INVALID_TEMPLATE_SCHEMA: "INVALID_WORKFLOW_TEMPLATE_SCHEMA";
708
+ readonly AGENT_NOT_FOUND: "WORKFLOW_TEMPLATE_AGENT_NOT_FOUND";
709
+ readonly TOOL_NOT_AVAILABLE: "WORKFLOW_TEMPLATE_TOOL_NOT_AVAILABLE";
710
+ readonly STEP_TIMEOUT: "WORKFLOW_TEMPLATE_STEP_TIMEOUT";
711
+ readonly EXECUTION_FAILED: "WORKFLOW_TEMPLATE_EXECUTION_FAILED";
712
+ };
713
+ export type WorkflowTemplateErrorCode = (typeof WorkflowTemplateErrorCodes)[keyof typeof WorkflowTemplateErrorCodes];
714
+ //# sourceMappingURL=schema.d.ts.map