@mastra/code-sdk 0.0.0-agent-tags-alpha-20261125185303

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 (407) hide show
  1. package/LICENSE.md +32 -0
  2. package/README.md +284 -0
  3. package/dist/acp/agent.d.ts +48 -0
  4. package/dist/acp/agent.js +414 -0
  5. package/dist/acp/errors.d.ts +3 -0
  6. package/dist/acp/errors.js +11 -0
  7. package/dist/acp/event-mapper.d.ts +28 -0
  8. package/dist/acp/event-mapper.js +274 -0
  9. package/dist/acp/index.d.ts +9 -0
  10. package/dist/acp/index.js +21 -0
  11. package/dist/acp/runtime.d.ts +5 -0
  12. package/dist/acp/runtime.js +91 -0
  13. package/dist/acp/server.d.ts +4 -0
  14. package/dist/acp/server.js +35 -0
  15. package/dist/acp/skills.d.ts +6 -0
  16. package/dist/acp/skills.js +30 -0
  17. package/dist/acp.d.ts +2 -0
  18. package/dist/acp.js +1 -0
  19. package/dist/agent-connections/messaging-processor.d.ts +17 -0
  20. package/dist/agent-connections/messaging-processor.js +131 -0
  21. package/dist/agent-connections/ownership.d.ts +24 -0
  22. package/dist/agent-connections/ownership.js +96 -0
  23. package/dist/agent-connections/registry.d.ts +20 -0
  24. package/dist/agent-connections/registry.js +167 -0
  25. package/dist/agent-connections/session-advertisement.d.ts +27 -0
  26. package/dist/agent-connections/session-advertisement.js +86 -0
  27. package/dist/agent-connections/signal-provider.d.ts +141 -0
  28. package/dist/agent-connections/signal-provider.js +35 -0
  29. package/dist/agent-connections/state-processor.d.ts +23 -0
  30. package/dist/agent-connections/state-processor.js +270 -0
  31. package/dist/agent-connections/thread-state.d.ts +41 -0
  32. package/dist/agent-connections/thread-state.js +157 -0
  33. package/dist/agent-connections/tools.d.ts +133 -0
  34. package/dist/agent-connections/tools.js +616 -0
  35. package/dist/agent-connections/types.d.ts +99 -0
  36. package/dist/agent-connections/types.js +4 -0
  37. package/dist/agent-connections/untrusted-text.d.ts +5 -0
  38. package/dist/agent-connections/untrusted-text.js +19 -0
  39. package/dist/agents/background-completion-events.d.ts +16 -0
  40. package/dist/agents/background-completion-events.js +16 -0
  41. package/dist/agents/background-completion.d.ts +22 -0
  42. package/dist/agents/background-completion.js +73 -0
  43. package/dist/agents/context-audit.d.ts +84 -0
  44. package/dist/agents/context-audit.js +115 -0
  45. package/dist/agents/credential-resolver.d.ts +74 -0
  46. package/dist/agents/credential-resolver.js +142 -0
  47. package/dist/agents/custom-provider-source.d.ts +35 -0
  48. package/dist/agents/custom-provider-source.js +22 -0
  49. package/dist/agents/fastembed-subprocess.d.ts +52 -0
  50. package/dist/agents/fastembed-subprocess.js +282 -0
  51. package/dist/agents/instructions.d.ts +42 -0
  52. package/dist/agents/instructions.js +69 -0
  53. package/dist/agents/mastracode-gateway.d.ts +85 -0
  54. package/dist/agents/mastracode-gateway.js +500 -0
  55. package/dist/agents/memory.d.ts +36 -0
  56. package/dist/agents/memory.js +248 -0
  57. package/dist/agents/model.d.ts +158 -0
  58. package/dist/agents/model.js +382 -0
  59. package/dist/agents/modes/build.d.ts +12 -0
  60. package/dist/agents/modes/build.js +33 -0
  61. package/dist/agents/modes/explore.d.ts +10 -0
  62. package/dist/agents/modes/explore.js +25 -0
  63. package/dist/agents/modes/plan.d.ts +8 -0
  64. package/dist/agents/modes/plan.js +43 -0
  65. package/dist/agents/prompts/agent-instructions.d.ts +122 -0
  66. package/dist/agents/prompts/agent-instructions.js +617 -0
  67. package/dist/agents/prompts/build.d.ts +12 -0
  68. package/dist/agents/prompts/build.js +73 -0
  69. package/dist/agents/prompts/fast.d.ts +5 -0
  70. package/dist/agents/prompts/fast.js +23 -0
  71. package/dist/agents/prompts/index.d.ts +61 -0
  72. package/dist/agents/prompts/index.js +141 -0
  73. package/dist/agents/prompts/model.d.ts +5 -0
  74. package/dist/agents/prompts/model.js +20 -0
  75. package/dist/agents/prompts/plan.d.ts +11 -0
  76. package/dist/agents/prompts/plan.js +132 -0
  77. package/dist/agents/prompts/tool-guidance.d.ts +18 -0
  78. package/dist/agents/prompts/tool-guidance.js +158 -0
  79. package/dist/agents/sandbox-filesystem.d.ts +232 -0
  80. package/dist/agents/sandbox-filesystem.js +851 -0
  81. package/dist/agents/subagents/execute.d.ts +3 -0
  82. package/dist/agents/subagents/execute.js +24 -0
  83. package/dist/agents/subagents/explore.d.ts +3 -0
  84. package/dist/agents/subagents/explore.js +15 -0
  85. package/dist/agents/subagents/index.d.ts +6 -0
  86. package/dist/agents/subagents/index.js +15 -0
  87. package/dist/agents/subagents/plan.d.ts +3 -0
  88. package/dist/agents/subagents/plan.js +15 -0
  89. package/dist/agents/thread-caveman-state.d.ts +17 -0
  90. package/dist/agents/thread-caveman-state.js +104 -0
  91. package/dist/agents/tool-availability.d.ts +17 -0
  92. package/dist/agents/tool-availability.js +134 -0
  93. package/dist/agents/tools.d.ts +37 -0
  94. package/dist/agents/tools.js +154 -0
  95. package/dist/agents/workflow-builder-agent.d.ts +2 -0
  96. package/dist/agents/workflow-builder-agent.js +79 -0
  97. package/dist/agents/workspace.d.ts +35 -0
  98. package/dist/agents/workspace.js +207 -0
  99. package/dist/analytics.d.ts +18 -0
  100. package/dist/analytics.js +159 -0
  101. package/dist/auth/account-rotation-processor.d.ts +210 -0
  102. package/dist/auth/account-rotation-processor.js +662 -0
  103. package/dist/auth/account-routing-context.d.ts +17 -0
  104. package/dist/auth/account-routing-context.js +38 -0
  105. package/dist/auth/authorization-input.d.ts +16 -0
  106. package/dist/auth/authorization-input.js +39 -0
  107. package/dist/auth/device-code.d.ts +93 -0
  108. package/dist/auth/device-code.js +126 -0
  109. package/dist/auth/index.d.ts +13 -0
  110. package/dist/auth/index.js +9 -0
  111. package/dist/auth/pkce.d.ts +13 -0
  112. package/dist/auth/pkce.js +29 -0
  113. package/dist/auth/provider-auth-error.d.ts +24 -0
  114. package/dist/auth/provider-auth-error.js +44 -0
  115. package/dist/auth/providers/anthropic.d.ts +40 -0
  116. package/dist/auth/providers/anthropic.js +117 -0
  117. package/dist/auth/providers/github-copilot.d.ts +154 -0
  118. package/dist/auth/providers/github-copilot.js +359 -0
  119. package/dist/auth/providers/kimi-coding.d.ts +38 -0
  120. package/dist/auth/providers/kimi-coding.js +225 -0
  121. package/dist/auth/providers/openai-codex.d.ts +141 -0
  122. package/dist/auth/providers/openai-codex.js +531 -0
  123. package/dist/auth/providers/xai.d.ts +64 -0
  124. package/dist/auth/providers/xai.js +223 -0
  125. package/dist/auth/storage.d.ts +222 -0
  126. package/dist/auth/storage.js +805 -0
  127. package/dist/auth/types.d.ts +164 -0
  128. package/dist/auth/types.js +1 -0
  129. package/dist/clipboard/index.d.ts +26 -0
  130. package/dist/clipboard/index.js +224 -0
  131. package/dist/constants.d.ts +29 -0
  132. package/dist/constants.js +34 -0
  133. package/dist/error-classification.d.ts +10 -0
  134. package/dist/error-classification.js +19 -0
  135. package/dist/evals/context-builder.d.ts +41 -0
  136. package/dist/evals/context-builder.js +156 -0
  137. package/dist/evals/index.d.ts +4 -0
  138. package/dist/evals/index.js +5 -0
  139. package/dist/evals/scorers/classify-command.d.ts +30 -0
  140. package/dist/evals/scorers/classify-command.js +61 -0
  141. package/dist/evals/scorers/efficiency.d.ts +44 -0
  142. package/dist/evals/scorers/efficiency.js +256 -0
  143. package/dist/evals/scorers/extract-tools.d.ts +25 -0
  144. package/dist/evals/scorers/extract-tools.js +57 -0
  145. package/dist/evals/scorers/index.d.ts +3 -0
  146. package/dist/evals/scorers/index.js +3 -0
  147. package/dist/evals/scorers/outcome.d.ts +49 -0
  148. package/dist/evals/scorers/outcome.js +360 -0
  149. package/dist/experimental-agent.d.ts +19 -0
  150. package/dist/experimental-agent.js +45 -0
  151. package/dist/factory/client.d.ts +44 -0
  152. package/dist/factory/client.js +110 -0
  153. package/dist/factory/remote-controller.d.ts +34 -0
  154. package/dist/factory/remote-controller.js +40 -0
  155. package/dist/factory/remote-session.d.ts +210 -0
  156. package/dist/factory/remote-session.js +415 -0
  157. package/dist/goal-manager.d.ts +114 -0
  158. package/dist/goal-manager.js +351 -0
  159. package/dist/goal-signal.d.ts +14 -0
  160. package/dist/goal-signal.js +14 -0
  161. package/dist/headless/cli.d.ts +55 -0
  162. package/dist/headless/cli.js +261 -0
  163. package/dist/headless/flags.d.ts +33 -0
  164. package/dist/headless/flags.js +207 -0
  165. package/dist/headless/format.d.ts +41 -0
  166. package/dist/headless/format.js +94 -0
  167. package/dist/headless/index.d.ts +25 -0
  168. package/dist/headless/index.js +6 -0
  169. package/dist/headless/policy.d.ts +17 -0
  170. package/dist/headless/policy.js +39 -0
  171. package/dist/headless/run-mc.d.ts +7 -0
  172. package/dist/headless/run-mc.js +438 -0
  173. package/dist/headless/types.d.ts +175 -0
  174. package/dist/headless/types.js +16 -0
  175. package/dist/hooks/config.d.ts +11 -0
  176. package/dist/hooks/config.js +77 -0
  177. package/dist/hooks/executor.d.ts +13 -0
  178. package/dist/hooks/executor.js +128 -0
  179. package/dist/hooks/index.d.ts +6 -0
  180. package/dist/hooks/index.js +5 -0
  181. package/dist/hooks/manager.d.ts +75 -0
  182. package/dist/hooks/manager.js +289 -0
  183. package/dist/hooks/types.d.ts +180 -0
  184. package/dist/hooks/types.js +5 -0
  185. package/dist/index.d.ts +537 -0
  186. package/dist/index.js +1399 -0
  187. package/dist/ipc/ipc-reporter.d.ts +14 -0
  188. package/dist/ipc/ipc-reporter.js +18 -0
  189. package/dist/knowledge-inspector.d.ts +139 -0
  190. package/dist/knowledge-inspector.js +533 -0
  191. package/dist/knowledge-scope-id.d.ts +7 -0
  192. package/dist/knowledge-scope-id.js +10 -0
  193. package/dist/knowledge-scope.d.ts +41 -0
  194. package/dist/knowledge-scope.js +85 -0
  195. package/dist/lsp/client.d.ts +56 -0
  196. package/dist/lsp/client.js +248 -0
  197. package/dist/lsp/index.d.ts +4 -0
  198. package/dist/lsp/index.js +4 -0
  199. package/dist/lsp/language.d.ts +9 -0
  200. package/dist/lsp/language.js +41 -0
  201. package/dist/lsp/manager.d.ts +34 -0
  202. package/dist/lsp/manager.js +79 -0
  203. package/dist/lsp/server.d.ts +27 -0
  204. package/dist/lsp/server.js +158 -0
  205. package/dist/lsp/workspace.d.ts +9 -0
  206. package/dist/lsp/workspace.js +52 -0
  207. package/dist/mcp/config.d.ts +77 -0
  208. package/dist/mcp/config.js +313 -0
  209. package/dist/mcp/index.d.ts +6 -0
  210. package/dist/mcp/index.js +3 -0
  211. package/dist/mcp/manager.d.ts +104 -0
  212. package/dist/mcp/manager.js +693 -0
  213. package/dist/mcp/state.d.ts +35 -0
  214. package/dist/mcp/state.js +94 -0
  215. package/dist/mcp/types.d.ts +139 -0
  216. package/dist/mcp/types.js +1 -0
  217. package/dist/onboarding/custom-packs.d.ts +7 -0
  218. package/dist/onboarding/custom-packs.js +17 -0
  219. package/dist/onboarding/custom-providers.d.ts +4 -0
  220. package/dist/onboarding/custom-providers.js +27 -0
  221. package/dist/onboarding/index.d.ts +5 -0
  222. package/dist/onboarding/index.js +3 -0
  223. package/dist/onboarding/om-settings.d.ts +47 -0
  224. package/dist/onboarding/om-settings.js +80 -0
  225. package/dist/onboarding/pack-activation.d.ts +43 -0
  226. package/dist/onboarding/pack-activation.js +105 -0
  227. package/dist/onboarding/packs.d.ts +106 -0
  228. package/dist/onboarding/packs.js +283 -0
  229. package/dist/onboarding/settings.d.ts +563 -0
  230. package/dist/onboarding/settings.js +1110 -0
  231. package/dist/permissions.d.ts +55 -0
  232. package/dist/permissions.js +139 -0
  233. package/dist/platform/index.d.ts +74 -0
  234. package/dist/platform/index.js +199 -0
  235. package/dist/plugin.d.ts +156 -0
  236. package/dist/plugin.js +27 -0
  237. package/dist/plugins/dependencies.d.ts +9 -0
  238. package/dist/plugins/dependencies.js +84 -0
  239. package/dist/plugins/install.d.ts +21 -0
  240. package/dist/plugins/install.js +187 -0
  241. package/dist/plugins/loader.d.ts +25 -0
  242. package/dist/plugins/loader.js +264 -0
  243. package/dist/plugins/manager.d.ts +115 -0
  244. package/dist/plugins/manager.js +507 -0
  245. package/dist/plugins/manifest.d.ts +14 -0
  246. package/dist/plugins/manifest.js +47 -0
  247. package/dist/plugins/package-link.d.ts +3 -0
  248. package/dist/plugins/package-link.js +58 -0
  249. package/dist/plugins/paths.d.ts +10 -0
  250. package/dist/plugins/paths.js +22 -0
  251. package/dist/plugins/registry.d.ts +8 -0
  252. package/dist/plugins/registry.js +109 -0
  253. package/dist/plugins/scaffold.d.ts +10 -0
  254. package/dist/plugins/scaffold.js +115 -0
  255. package/dist/plugins/signal-lane.d.ts +59 -0
  256. package/dist/plugins/signal-lane.js +163 -0
  257. package/dist/plugins/types.d.ts +95 -0
  258. package/dist/plugins/types.js +1 -0
  259. package/dist/process-memory-diagnostics.d.ts +136 -0
  260. package/dist/process-memory-diagnostics.js +497 -0
  261. package/dist/processors/plan-rejection-abort.d.ts +16 -0
  262. package/dist/processors/plan-rejection-abort.js +62 -0
  263. package/dist/providers/amazon-bedrock-gateway.d.ts +47 -0
  264. package/dist/providers/amazon-bedrock-gateway.js +142 -0
  265. package/dist/providers/amazon-bedrock.d.ts +28 -0
  266. package/dist/providers/amazon-bedrock.js +99 -0
  267. package/dist/providers/anthropic-prompt-cache.d.ts +19 -0
  268. package/dist/providers/anthropic-prompt-cache.js +8 -0
  269. package/dist/providers/anthropic-thinking.d.ts +5 -0
  270. package/dist/providers/anthropic-thinking.js +22 -0
  271. package/dist/providers/claude-max.d.ts +67 -0
  272. package/dist/providers/claude-max.js +232 -0
  273. package/dist/providers/github-copilot-gateway.d.ts +35 -0
  274. package/dist/providers/github-copilot-gateway.js +58 -0
  275. package/dist/providers/github-copilot.d.ts +60 -0
  276. package/dist/providers/github-copilot.js +320 -0
  277. package/dist/providers/google-thinking.d.ts +31 -0
  278. package/dist/providers/google-thinking.js +64 -0
  279. package/dist/providers/google-vertex-gateway.d.ts +23 -0
  280. package/dist/providers/google-vertex-gateway.js +49 -0
  281. package/dist/providers/google-vertex.d.ts +6 -0
  282. package/dist/providers/google-vertex.js +51 -0
  283. package/dist/providers/kimi-coding.d.ts +14 -0
  284. package/dist/providers/kimi-coding.js +80 -0
  285. package/dist/providers/model-ids.d.ts +53 -0
  286. package/dist/providers/model-ids.js +132 -0
  287. package/dist/providers/openai-codex.d.ts +114 -0
  288. package/dist/providers/openai-codex.js +427 -0
  289. package/dist/providers/provider-thinking.d.ts +23 -0
  290. package/dist/providers/provider-thinking.js +61 -0
  291. package/dist/providers/thinking-request.d.ts +14 -0
  292. package/dist/providers/thinking-request.js +87 -0
  293. package/dist/providers/xai.d.ts +33 -0
  294. package/dist/providers/xai.js +72 -0
  295. package/dist/schedules/index.d.ts +10 -0
  296. package/dist/schedules/index.js +6 -0
  297. package/dist/schedules/interval.d.ts +49 -0
  298. package/dist/schedules/interval.js +212 -0
  299. package/dist/schedules/prompt.d.ts +36 -0
  300. package/dist/schedules/prompt.js +36 -0
  301. package/dist/schedules/run-script.d.ts +8 -0
  302. package/dist/schedules/run-script.js +80 -0
  303. package/dist/schedules/scheduler.d.ts +101 -0
  304. package/dist/schedules/scheduler.js +167 -0
  305. package/dist/schedules/tools.d.ts +57 -0
  306. package/dist/schedules/tools.js +217 -0
  307. package/dist/schema.d.ts +499 -0
  308. package/dist/schema.js +131 -0
  309. package/dist/theme-palette.d.ts +17 -0
  310. package/dist/theme-palette.js +18 -0
  311. package/dist/thinking-catalog.d.ts +4 -0
  312. package/dist/thinking-catalog.js +13 -0
  313. package/dist/thinking.d.ts +37 -0
  314. package/dist/thinking.js +134 -0
  315. package/dist/tool-names.d.ts +77 -0
  316. package/dist/tool-names.js +53 -0
  317. package/dist/tools/index.d.ts +6 -0
  318. package/dist/tools/index.js +3 -0
  319. package/dist/tools/request-sandbox-access.d.ts +6 -0
  320. package/dist/tools/request-sandbox-access.js +80 -0
  321. package/dist/tools/utils.d.ts +20 -0
  322. package/dist/tools/utils.js +31 -0
  323. package/dist/tools/web-search.d.ts +116 -0
  324. package/dist/tools/web-search.js +158 -0
  325. package/dist/tools/workflows/create-workflow.d.ts +7 -0
  326. package/dist/tools/workflows/create-workflow.js +82 -0
  327. package/dist/tools/workflows/delete-workflow.d.ts +7 -0
  328. package/dist/tools/workflows/delete-workflow.js +18 -0
  329. package/dist/tools/workflows/ephemeral-memory.d.ts +28 -0
  330. package/dist/tools/workflows/ephemeral-memory.js +41 -0
  331. package/dist/tools/workflows/extract-json-schema.d.ts +12 -0
  332. package/dist/tools/workflows/extract-json-schema.js +19 -0
  333. package/dist/tools/workflows/get-workflow.d.ts +11 -0
  334. package/dist/tools/workflows/get-workflow.js +31 -0
  335. package/dist/tools/workflows/list-available-agents.d.ts +8 -0
  336. package/dist/tools/workflows/list-available-agents.js +29 -0
  337. package/dist/tools/workflows/list-available-classifiers.d.ts +19 -0
  338. package/dist/tools/workflows/list-available-classifiers.js +53 -0
  339. package/dist/tools/workflows/list-available-tools.d.ts +9 -0
  340. package/dist/tools/workflows/list-available-tools.js +37 -0
  341. package/dist/tools/workflows/list-available-workflows.d.ts +9 -0
  342. package/dist/tools/workflows/list-available-workflows.js +29 -0
  343. package/dist/tools/workflows/list-workflows.d.ts +9 -0
  344. package/dist/tools/workflows/list-workflows.js +30 -0
  345. package/dist/tools/workflows/run-workflow.d.ts +9 -0
  346. package/dist/tools/workflows/run-workflow.js +49 -0
  347. package/dist/tools/workflows/save-workflow.d.ts +1125 -0
  348. package/dist/tools/workflows/save-workflow.js +25 -0
  349. package/dist/tools/workflows/tool-ids.d.ts +16 -0
  350. package/dist/tools/workflows/tool-ids.js +17 -0
  351. package/dist/utils/binaries.d.ts +7 -0
  352. package/dist/utils/binaries.js +97 -0
  353. package/dist/utils/debug-log.d.ts +12 -0
  354. package/dist/utils/debug-log.js +56 -0
  355. package/dist/utils/discarding-scores-storage.d.ts +33 -0
  356. package/dist/utils/discarding-scores-storage.js +51 -0
  357. package/dist/utils/errors.d.ts +36 -0
  358. package/dist/utils/errors.js +215 -0
  359. package/dist/utils/gateway-sync.d.ts +26 -0
  360. package/dist/utils/gateway-sync.js +58 -0
  361. package/dist/utils/local-observability.d.ts +19 -0
  362. package/dist/utils/local-observability.js +54 -0
  363. package/dist/utils/maintenance-lock.d.ts +42 -0
  364. package/dist/utils/maintenance-lock.js +196 -0
  365. package/dist/utils/notification-dispatch.d.ts +74 -0
  366. package/dist/utils/notification-dispatch.js +128 -0
  367. package/dist/utils/open-url.d.ts +10 -0
  368. package/dist/utils/open-url.js +27 -0
  369. package/dist/utils/path-security.d.ts +2 -0
  370. package/dist/utils/path-security.js +7 -0
  371. package/dist/utils/plan-diff.d.ts +25 -0
  372. package/dist/utils/plan-diff.js +59 -0
  373. package/dist/utils/plans.d.ts +61 -0
  374. package/dist/utils/plans.js +120 -0
  375. package/dist/utils/project.d.ts +160 -0
  376. package/dist/utils/project.js +361 -0
  377. package/dist/utils/prune-cli.d.ts +24 -0
  378. package/dist/utils/prune-cli.js +124 -0
  379. package/dist/utils/signals-pubsub.d.ts +103 -0
  380. package/dist/utils/signals-pubsub.js +409 -0
  381. package/dist/utils/slash-command-loader.d.ts +52 -0
  382. package/dist/utils/slash-command-loader.js +139 -0
  383. package/dist/utils/slash-command-processor.d.ts +14 -0
  384. package/dist/utils/slash-command-processor.js +106 -0
  385. package/dist/utils/stdin-pipe.d.ts +33 -0
  386. package/dist/utils/stdin-pipe.js +93 -0
  387. package/dist/utils/storage-factory.d.ts +50 -0
  388. package/dist/utils/storage-factory.js +118 -0
  389. package/dist/utils/storage-maintenance.d.ts +121 -0
  390. package/dist/utils/storage-maintenance.js +352 -0
  391. package/dist/utils/thread-lock.d.ts +26 -0
  392. package/dist/utils/thread-lock.js +109 -0
  393. package/dist/utils/token-estimator.d.ts +3 -0
  394. package/dist/utils/token-estimator.js +19 -0
  395. package/dist/utils/update-check.d.ts +151 -0
  396. package/dist/utils/update-check.js +430 -0
  397. package/dist/utils/wake-session.d.ts +44 -0
  398. package/dist/utils/wake-session.js +83 -0
  399. package/dist/voice/stt-registry.d.ts +67 -0
  400. package/dist/voice/stt-registry.js +144 -0
  401. package/dist/voice/transcribe.d.ts +10 -0
  402. package/dist/voice/transcribe.js +75 -0
  403. package/dist/workflows/register-primitives.d.ts +52 -0
  404. package/dist/workflows/register-primitives.js +40 -0
  405. package/dist/workflows/service.d.ts +64 -0
  406. package/dist/workflows/service.js +50 -0
  407. package/package.json +117 -0
@@ -0,0 +1,1125 @@
1
+ import { z } from 'zod';
2
+ export { WORKFLOW_BUILDER_MAPPING_CONFIG_DESCRIPTION as MAPPING_CONFIG_DESCRIPTION } from '@mastra/core/workflows/builder';
3
+ export declare const workflowDefinitionInputSchema: z.ZodPreprocess<z.ZodObject<{
4
+ id: z.ZodString;
5
+ description: z.ZodOptional<z.ZodString>;
6
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7
+ inputSchema: z.ZodUnknown;
8
+ outputSchema: z.ZodUnknown;
9
+ stateSchema: z.ZodOptional<z.ZodUnknown>;
10
+ requestContextSchema: z.ZodOptional<z.ZodUnknown>;
11
+ graph: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
12
+ type: z.ZodLiteral<"agent">;
13
+ id: z.ZodString;
14
+ agentId: z.ZodString;
15
+ description: z.ZodOptional<z.ZodString>;
16
+ outputSchema: z.ZodOptional<z.ZodUnknown>;
17
+ options: z.ZodOptional<z.ZodObject<{
18
+ retries: z.ZodOptional<z.ZodNumber>;
19
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
20
+ }, z.core.$strip>>;
21
+ }, z.core.$strict>, z.ZodObject<{
22
+ type: z.ZodLiteral<"tool">;
23
+ id: z.ZodString;
24
+ toolId: z.ZodString;
25
+ description: z.ZodOptional<z.ZodString>;
26
+ options: z.ZodOptional<z.ZodObject<{
27
+ retries: z.ZodOptional<z.ZodNumber>;
28
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
29
+ }, z.core.$strip>>;
30
+ }, z.core.$strict>, z.ZodObject<{
31
+ type: z.ZodLiteral<"classifier">;
32
+ id: z.ZodString;
33
+ classifierId: z.ZodString;
34
+ description: z.ZodOptional<z.ZodString>;
35
+ options: z.ZodOptional<z.ZodObject<{
36
+ maxRetries: z.ZodOptional<z.ZodNumber>;
37
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
38
+ retries: z.ZodOptional<z.ZodNumber>;
39
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
40
+ }, z.core.$strip>>;
41
+ }, z.core.$strict>, z.ZodObject<{
42
+ description: z.ZodOptional<z.ZodString>;
43
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
44
+ type: z.ZodLiteral<"mapping">;
45
+ id: z.ZodString;
46
+ mapConfig: z.ZodString;
47
+ }, z.core.$strict>, z.ZodObject<{
48
+ type: z.ZodLiteral<"workflow">;
49
+ id: z.ZodString;
50
+ workflowId: z.ZodString;
51
+ description: z.ZodOptional<z.ZodString>;
52
+ options: z.ZodOptional<z.ZodObject<{
53
+ retries: z.ZodOptional<z.ZodNumber>;
54
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
55
+ }, z.core.$strip>>;
56
+ }, z.core.$strict>, z.ZodObject<{
57
+ description: z.ZodOptional<z.ZodString>;
58
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
59
+ id: z.ZodOptional<z.ZodString>;
60
+ type: z.ZodLiteral<"parallel">;
61
+ steps: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
62
+ type: z.ZodLiteral<"agent">;
63
+ id: z.ZodString;
64
+ agentId: z.ZodString;
65
+ description: z.ZodOptional<z.ZodString>;
66
+ outputSchema: z.ZodOptional<z.ZodUnknown>;
67
+ options: z.ZodOptional<z.ZodObject<{
68
+ retries: z.ZodOptional<z.ZodNumber>;
69
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
70
+ }, z.core.$strip>>;
71
+ }, z.core.$strict>, z.ZodObject<{
72
+ type: z.ZodLiteral<"tool">;
73
+ id: z.ZodString;
74
+ toolId: z.ZodString;
75
+ description: z.ZodOptional<z.ZodString>;
76
+ options: z.ZodOptional<z.ZodObject<{
77
+ retries: z.ZodOptional<z.ZodNumber>;
78
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
79
+ }, z.core.$strip>>;
80
+ }, z.core.$strict>, z.ZodObject<{
81
+ type: z.ZodLiteral<"classifier">;
82
+ id: z.ZodString;
83
+ classifierId: z.ZodString;
84
+ description: z.ZodOptional<z.ZodString>;
85
+ options: z.ZodOptional<z.ZodObject<{
86
+ maxRetries: z.ZodOptional<z.ZodNumber>;
87
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
88
+ retries: z.ZodOptional<z.ZodNumber>;
89
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
90
+ }, z.core.$strip>>;
91
+ }, z.core.$strict>, z.ZodObject<{
92
+ type: z.ZodLiteral<"workflow">;
93
+ id: z.ZodString;
94
+ workflowId: z.ZodString;
95
+ description: z.ZodOptional<z.ZodString>;
96
+ options: z.ZodOptional<z.ZodObject<{
97
+ retries: z.ZodOptional<z.ZodNumber>;
98
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
99
+ }, z.core.$strip>>;
100
+ }, z.core.$strict>]>>;
101
+ }, z.core.$strict>, z.ZodObject<{
102
+ description: z.ZodOptional<z.ZodString>;
103
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
104
+ id: z.ZodOptional<z.ZodString>;
105
+ type: z.ZodLiteral<"foreach">;
106
+ step: z.ZodUnion<readonly [z.ZodObject<{
107
+ type: z.ZodLiteral<"agent">;
108
+ id: z.ZodString;
109
+ agentId: z.ZodString;
110
+ description: z.ZodOptional<z.ZodString>;
111
+ outputSchema: z.ZodOptional<z.ZodUnknown>;
112
+ options: z.ZodOptional<z.ZodObject<{
113
+ retries: z.ZodOptional<z.ZodNumber>;
114
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
115
+ }, z.core.$strip>>;
116
+ }, z.core.$strict>, z.ZodObject<{
117
+ type: z.ZodLiteral<"tool">;
118
+ id: z.ZodString;
119
+ toolId: z.ZodString;
120
+ description: z.ZodOptional<z.ZodString>;
121
+ options: z.ZodOptional<z.ZodObject<{
122
+ retries: z.ZodOptional<z.ZodNumber>;
123
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
124
+ }, z.core.$strip>>;
125
+ }, z.core.$strict>, z.ZodObject<{
126
+ type: z.ZodLiteral<"classifier">;
127
+ id: z.ZodString;
128
+ classifierId: z.ZodString;
129
+ description: z.ZodOptional<z.ZodString>;
130
+ options: z.ZodOptional<z.ZodObject<{
131
+ maxRetries: z.ZodOptional<z.ZodNumber>;
132
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
133
+ retries: z.ZodOptional<z.ZodNumber>;
134
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
135
+ }, z.core.$strip>>;
136
+ }, z.core.$strict>, z.ZodObject<{
137
+ type: z.ZodLiteral<"workflow">;
138
+ id: z.ZodString;
139
+ workflowId: z.ZodString;
140
+ description: z.ZodOptional<z.ZodString>;
141
+ options: z.ZodOptional<z.ZodObject<{
142
+ retries: z.ZodOptional<z.ZodNumber>;
143
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
144
+ }, z.core.$strip>>;
145
+ }, z.core.$strict>]>;
146
+ opts: z.ZodOptional<z.ZodObject<{
147
+ concurrency: z.ZodNumber;
148
+ }, z.core.$strip>>;
149
+ }, z.core.$strict>, z.ZodObject<{
150
+ description: z.ZodOptional<z.ZodString>;
151
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
152
+ type: z.ZodLiteral<"sleep">;
153
+ id: z.ZodString;
154
+ duration: z.ZodNumber;
155
+ }, z.core.$strict>, z.ZodObject<{
156
+ description: z.ZodOptional<z.ZodString>;
157
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
158
+ type: z.ZodLiteral<"sleepUntil">;
159
+ id: z.ZodString;
160
+ date: z.ZodString;
161
+ }, z.core.$strict>, z.ZodObject<{
162
+ description: z.ZodOptional<z.ZodString>;
163
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
164
+ id: z.ZodOptional<z.ZodString>;
165
+ type: z.ZodLiteral<"conditional">;
166
+ steps: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
167
+ type: z.ZodLiteral<"agent">;
168
+ id: z.ZodString;
169
+ agentId: z.ZodString;
170
+ description: z.ZodOptional<z.ZodString>;
171
+ outputSchema: z.ZodOptional<z.ZodUnknown>;
172
+ options: z.ZodOptional<z.ZodObject<{
173
+ retries: z.ZodOptional<z.ZodNumber>;
174
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
175
+ }, z.core.$strip>>;
176
+ }, z.core.$strict>, z.ZodObject<{
177
+ type: z.ZodLiteral<"tool">;
178
+ id: z.ZodString;
179
+ toolId: z.ZodString;
180
+ description: z.ZodOptional<z.ZodString>;
181
+ options: z.ZodOptional<z.ZodObject<{
182
+ retries: z.ZodOptional<z.ZodNumber>;
183
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
184
+ }, z.core.$strip>>;
185
+ }, z.core.$strict>, z.ZodObject<{
186
+ type: z.ZodLiteral<"classifier">;
187
+ id: z.ZodString;
188
+ classifierId: z.ZodString;
189
+ description: z.ZodOptional<z.ZodString>;
190
+ options: z.ZodOptional<z.ZodObject<{
191
+ maxRetries: z.ZodOptional<z.ZodNumber>;
192
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
193
+ retries: z.ZodOptional<z.ZodNumber>;
194
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
195
+ }, z.core.$strip>>;
196
+ }, z.core.$strict>, z.ZodObject<{
197
+ type: z.ZodLiteral<"workflow">;
198
+ id: z.ZodString;
199
+ workflowId: z.ZodString;
200
+ description: z.ZodOptional<z.ZodString>;
201
+ options: z.ZodOptional<z.ZodObject<{
202
+ retries: z.ZodOptional<z.ZodNumber>;
203
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
204
+ }, z.core.$strip>>;
205
+ }, z.core.$strict>]>>;
206
+ predicates: z.ZodArray<z.ZodType<import("@mastra/core/predicate").Predicate, unknown, z.core.$ZodTypeInternals<import("@mastra/core/predicate").Predicate, unknown>>>;
207
+ }, z.core.$strict>, z.ZodObject<{
208
+ description: z.ZodOptional<z.ZodString>;
209
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
210
+ id: z.ZodOptional<z.ZodString>;
211
+ type: z.ZodLiteral<"loop">;
212
+ step: z.ZodUnion<readonly [z.ZodObject<{
213
+ type: z.ZodLiteral<"agent">;
214
+ id: z.ZodString;
215
+ agentId: z.ZodString;
216
+ description: z.ZodOptional<z.ZodString>;
217
+ outputSchema: z.ZodOptional<z.ZodUnknown>;
218
+ options: z.ZodOptional<z.ZodObject<{
219
+ retries: z.ZodOptional<z.ZodNumber>;
220
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
221
+ }, z.core.$strip>>;
222
+ }, z.core.$strict>, z.ZodObject<{
223
+ type: z.ZodLiteral<"tool">;
224
+ id: z.ZodString;
225
+ toolId: z.ZodString;
226
+ description: z.ZodOptional<z.ZodString>;
227
+ options: z.ZodOptional<z.ZodObject<{
228
+ retries: z.ZodOptional<z.ZodNumber>;
229
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
230
+ }, z.core.$strip>>;
231
+ }, z.core.$strict>, z.ZodObject<{
232
+ type: z.ZodLiteral<"classifier">;
233
+ id: z.ZodString;
234
+ classifierId: z.ZodString;
235
+ description: z.ZodOptional<z.ZodString>;
236
+ options: z.ZodOptional<z.ZodObject<{
237
+ maxRetries: z.ZodOptional<z.ZodNumber>;
238
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
239
+ retries: z.ZodOptional<z.ZodNumber>;
240
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
241
+ }, z.core.$strip>>;
242
+ }, z.core.$strict>, z.ZodObject<{
243
+ type: z.ZodLiteral<"workflow">;
244
+ id: z.ZodString;
245
+ workflowId: z.ZodString;
246
+ description: z.ZodOptional<z.ZodString>;
247
+ options: z.ZodOptional<z.ZodObject<{
248
+ retries: z.ZodOptional<z.ZodNumber>;
249
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
250
+ }, z.core.$strip>>;
251
+ }, z.core.$strict>]>;
252
+ loopType: z.ZodEnum<{
253
+ dountil: "dountil";
254
+ dowhile: "dowhile";
255
+ }>;
256
+ predicate: z.ZodType<import("@mastra/core/predicate").Predicate, unknown, z.core.$ZodTypeInternals<import("@mastra/core/predicate").Predicate, unknown>>;
257
+ }, z.core.$strict>], "type">>;
258
+ schedule: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
259
+ id: z.ZodOptional<z.ZodString>;
260
+ cron: z.ZodString;
261
+ timezone: z.ZodOptional<z.ZodString>;
262
+ inputData: z.ZodOptional<z.ZodType<string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
263
+ [key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
264
+ } | null)[] | {
265
+ [key: string]: string | number | boolean | any | any | null;
266
+ } | null)[] | {
267
+ [key: string]: string | number | boolean | any | any | null;
268
+ } | null)[] | {
269
+ [key: string]: string | number | boolean | any | any | null;
270
+ } | null)[] | {
271
+ [key: string]: string | number | boolean | any | any | null;
272
+ } | null)[] | {
273
+ [key: string]: string | number | boolean | any | any | null;
274
+ } | null)[] | {
275
+ [key: string]: string | number | boolean | any | any | null;
276
+ } | null)[] | {
277
+ [key: string]: string | number | boolean | any | any | null;
278
+ } | null)[] | {
279
+ [key: string]: string | number | boolean | any | any | null;
280
+ } | null)[] | {
281
+ [key: string]: string | number | boolean | any | any | null;
282
+ } | null)[] | {
283
+ [key: string]: string | number | boolean | any | any | null;
284
+ } | null)[] | {
285
+ [key: string]: string | number | boolean | any | any | null;
286
+ } | null, unknown, z.core.$ZodTypeInternals<string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
287
+ [key: string]: string | number | boolean | any | any | null;
288
+ } | null)[] | {
289
+ [key: string]: string | number | boolean | any | any | null;
290
+ } | null)[] | {
291
+ [key: string]: string | number | boolean | any | any | null;
292
+ } | null)[] | {
293
+ [key: string]: string | number | boolean | any | any | null;
294
+ } | null)[] | {
295
+ [key: string]: string | number | boolean | any | any | null;
296
+ } | null)[] | {
297
+ [key: string]: string | number | boolean | any | any | null;
298
+ } | null)[] | {
299
+ [key: string]: string | number | boolean | any | any | null;
300
+ } | null)[] | {
301
+ [key: string]: string | number | boolean | any | any | null;
302
+ } | null)[] | {
303
+ [key: string]: string | number | boolean | any | any | null;
304
+ } | null)[] | {
305
+ [key: string]: string | number | boolean | any | any | null;
306
+ } | null)[] | {
307
+ [key: string]: string | number | boolean | any | any | null;
308
+ } | null)[] | {
309
+ [key: string]: string | number | boolean | any | any | null;
310
+ } | null, unknown>>>;
311
+ initialState: z.ZodOptional<z.ZodType<string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
312
+ [key: string]: string | number | boolean | any | any | null;
313
+ } | null)[] | {
314
+ [key: string]: string | number | boolean | any | any | null;
315
+ } | null)[] | {
316
+ [key: string]: string | number | boolean | any | any | null;
317
+ } | null)[] | {
318
+ [key: string]: string | number | boolean | any | any | null;
319
+ } | null)[] | {
320
+ [key: string]: string | number | boolean | any | any | null;
321
+ } | null)[] | {
322
+ [key: string]: string | number | boolean | any | any | null;
323
+ } | null)[] | {
324
+ [key: string]: string | number | boolean | any | any | null;
325
+ } | null)[] | {
326
+ [key: string]: string | number | boolean | any | any | null;
327
+ } | null)[] | {
328
+ [key: string]: string | number | boolean | any | any | null;
329
+ } | null)[] | {
330
+ [key: string]: string | number | boolean | any | any | null;
331
+ } | null)[] | {
332
+ [key: string]: string | number | boolean | any | any | null;
333
+ } | null)[] | {
334
+ [key: string]: string | number | boolean | any | any | null;
335
+ } | null, unknown, z.core.$ZodTypeInternals<string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
336
+ [key: string]: string | number | boolean | any | any | null;
337
+ } | null)[] | {
338
+ [key: string]: string | number | boolean | any | any | null;
339
+ } | null)[] | {
340
+ [key: string]: string | number | boolean | any | any | null;
341
+ } | null)[] | {
342
+ [key: string]: string | number | boolean | any | any | null;
343
+ } | null)[] | {
344
+ [key: string]: string | number | boolean | any | any | null;
345
+ } | null)[] | {
346
+ [key: string]: string | number | boolean | any | any | null;
347
+ } | null)[] | {
348
+ [key: string]: string | number | boolean | any | any | null;
349
+ } | null)[] | {
350
+ [key: string]: string | number | boolean | any | any | null;
351
+ } | null)[] | {
352
+ [key: string]: string | number | boolean | any | any | null;
353
+ } | null)[] | {
354
+ [key: string]: string | number | boolean | any | any | null;
355
+ } | null)[] | {
356
+ [key: string]: string | number | boolean | any | any | null;
357
+ } | null)[] | {
358
+ [key: string]: string | number | boolean | any | any | null;
359
+ } | null, unknown>>>;
360
+ requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
361
+ [key: string]: string | number | boolean | any | any | null;
362
+ } | null)[] | {
363
+ [key: string]: string | number | boolean | any | any | null;
364
+ } | null)[] | {
365
+ [key: string]: string | number | boolean | any | any | null;
366
+ } | null)[] | {
367
+ [key: string]: string | number | boolean | any | any | null;
368
+ } | null)[] | {
369
+ [key: string]: string | number | boolean | any | any | null;
370
+ } | null)[] | {
371
+ [key: string]: string | number | boolean | any | any | null;
372
+ } | null)[] | {
373
+ [key: string]: string | number | boolean | any | any | null;
374
+ } | null)[] | {
375
+ [key: string]: string | number | boolean | any | any | null;
376
+ } | null)[] | {
377
+ [key: string]: string | number | boolean | any | any | null;
378
+ } | null)[] | {
379
+ [key: string]: string | number | boolean | any | any | null;
380
+ } | null)[] | {
381
+ [key: string]: string | number | boolean | any | any | null;
382
+ } | null)[] | {
383
+ [key: string]: string | number | boolean | any | any | null;
384
+ } | null, unknown, z.core.$ZodTypeInternals<string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
385
+ [key: string]: string | number | boolean | any | any | null;
386
+ } | null)[] | {
387
+ [key: string]: string | number | boolean | any | any | null;
388
+ } | null)[] | {
389
+ [key: string]: string | number | boolean | any | any | null;
390
+ } | null)[] | {
391
+ [key: string]: string | number | boolean | any | any | null;
392
+ } | null)[] | {
393
+ [key: string]: string | number | boolean | any | any | null;
394
+ } | null)[] | {
395
+ [key: string]: string | number | boolean | any | any | null;
396
+ } | null)[] | {
397
+ [key: string]: string | number | boolean | any | any | null;
398
+ } | null)[] | {
399
+ [key: string]: string | number | boolean | any | any | null;
400
+ } | null)[] | {
401
+ [key: string]: string | number | boolean | any | any | null;
402
+ } | null)[] | {
403
+ [key: string]: string | number | boolean | any | any | null;
404
+ } | null)[] | {
405
+ [key: string]: string | number | boolean | any | any | null;
406
+ } | null)[] | {
407
+ [key: string]: string | number | boolean | any | any | null;
408
+ } | null, unknown>>>>;
409
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
410
+ [key: string]: string | number | boolean | any | any | null;
411
+ } | null)[] | {
412
+ [key: string]: string | number | boolean | any | any | null;
413
+ } | null)[] | {
414
+ [key: string]: string | number | boolean | any | any | null;
415
+ } | null)[] | {
416
+ [key: string]: string | number | boolean | any | any | null;
417
+ } | null)[] | {
418
+ [key: string]: string | number | boolean | any | any | null;
419
+ } | null)[] | {
420
+ [key: string]: string | number | boolean | any | any | null;
421
+ } | null)[] | {
422
+ [key: string]: string | number | boolean | any | any | null;
423
+ } | null)[] | {
424
+ [key: string]: string | number | boolean | any | any | null;
425
+ } | null)[] | {
426
+ [key: string]: string | number | boolean | any | any | null;
427
+ } | null)[] | {
428
+ [key: string]: string | number | boolean | any | any | null;
429
+ } | null)[] | {
430
+ [key: string]: string | number | boolean | any | any | null;
431
+ } | null)[] | {
432
+ [key: string]: string | number | boolean | any | any | null;
433
+ } | null, unknown, z.core.$ZodTypeInternals<string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
434
+ [key: string]: string | number | boolean | any | any | null;
435
+ } | null)[] | {
436
+ [key: string]: string | number | boolean | any | any | null;
437
+ } | null)[] | {
438
+ [key: string]: string | number | boolean | any | any | null;
439
+ } | null)[] | {
440
+ [key: string]: string | number | boolean | any | any | null;
441
+ } | null)[] | {
442
+ [key: string]: string | number | boolean | any | any | null;
443
+ } | null)[] | {
444
+ [key: string]: string | number | boolean | any | any | null;
445
+ } | null)[] | {
446
+ [key: string]: string | number | boolean | any | any | null;
447
+ } | null)[] | {
448
+ [key: string]: string | number | boolean | any | any | null;
449
+ } | null)[] | {
450
+ [key: string]: string | number | boolean | any | any | null;
451
+ } | null)[] | {
452
+ [key: string]: string | number | boolean | any | any | null;
453
+ } | null)[] | {
454
+ [key: string]: string | number | boolean | any | any | null;
455
+ } | null)[] | {
456
+ [key: string]: string | number | boolean | any | any | null;
457
+ } | null, unknown>>>>;
458
+ }, z.core.$strict>, z.ZodArray<z.ZodObject<{
459
+ id: z.ZodOptional<z.ZodString>;
460
+ cron: z.ZodString;
461
+ timezone: z.ZodOptional<z.ZodString>;
462
+ inputData: z.ZodOptional<z.ZodType<string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
463
+ [key: string]: string | number | boolean | any | any | null;
464
+ } | null)[] | {
465
+ [key: string]: string | number | boolean | any | any | null;
466
+ } | null)[] | {
467
+ [key: string]: string | number | boolean | any | any | null;
468
+ } | null)[] | {
469
+ [key: string]: string | number | boolean | any | any | null;
470
+ } | null)[] | {
471
+ [key: string]: string | number | boolean | any | any | null;
472
+ } | null)[] | {
473
+ [key: string]: string | number | boolean | any | any | null;
474
+ } | null)[] | {
475
+ [key: string]: string | number | boolean | any | any | null;
476
+ } | null)[] | {
477
+ [key: string]: string | number | boolean | any | any | null;
478
+ } | null)[] | {
479
+ [key: string]: string | number | boolean | any | any | null;
480
+ } | null)[] | {
481
+ [key: string]: string | number | boolean | any | any | null;
482
+ } | null)[] | {
483
+ [key: string]: string | number | boolean | any | any | null;
484
+ } | null)[] | {
485
+ [key: string]: string | number | boolean | any | any | null;
486
+ } | null, unknown, z.core.$ZodTypeInternals<string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
487
+ [key: string]: string | number | boolean | any | any | null;
488
+ } | null)[] | {
489
+ [key: string]: string | number | boolean | any | any | null;
490
+ } | null)[] | {
491
+ [key: string]: string | number | boolean | any | any | null;
492
+ } | null)[] | {
493
+ [key: string]: string | number | boolean | any | any | null;
494
+ } | null)[] | {
495
+ [key: string]: string | number | boolean | any | any | null;
496
+ } | null)[] | {
497
+ [key: string]: string | number | boolean | any | any | null;
498
+ } | null)[] | {
499
+ [key: string]: string | number | boolean | any | any | null;
500
+ } | null)[] | {
501
+ [key: string]: string | number | boolean | any | any | null;
502
+ } | null)[] | {
503
+ [key: string]: string | number | boolean | any | any | null;
504
+ } | null)[] | {
505
+ [key: string]: string | number | boolean | any | any | null;
506
+ } | null)[] | {
507
+ [key: string]: string | number | boolean | any | any | null;
508
+ } | null)[] | {
509
+ [key: string]: string | number | boolean | any | any | null;
510
+ } | null, unknown>>>;
511
+ initialState: z.ZodOptional<z.ZodType<string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
512
+ [key: string]: string | number | boolean | any | any | null;
513
+ } | null)[] | {
514
+ [key: string]: string | number | boolean | any | any | null;
515
+ } | null)[] | {
516
+ [key: string]: string | number | boolean | any | any | null;
517
+ } | null)[] | {
518
+ [key: string]: string | number | boolean | any | any | null;
519
+ } | null)[] | {
520
+ [key: string]: string | number | boolean | any | any | null;
521
+ } | null)[] | {
522
+ [key: string]: string | number | boolean | any | any | null;
523
+ } | null)[] | {
524
+ [key: string]: string | number | boolean | any | any | null;
525
+ } | null)[] | {
526
+ [key: string]: string | number | boolean | any | any | null;
527
+ } | null)[] | {
528
+ [key: string]: string | number | boolean | any | any | null;
529
+ } | null)[] | {
530
+ [key: string]: string | number | boolean | any | any | null;
531
+ } | null)[] | {
532
+ [key: string]: string | number | boolean | any | any | null;
533
+ } | null)[] | {
534
+ [key: string]: string | number | boolean | any | any | null;
535
+ } | null, unknown, z.core.$ZodTypeInternals<string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
536
+ [key: string]: string | number | boolean | any | any | null;
537
+ } | null)[] | {
538
+ [key: string]: string | number | boolean | any | any | null;
539
+ } | null)[] | {
540
+ [key: string]: string | number | boolean | any | any | null;
541
+ } | null)[] | {
542
+ [key: string]: string | number | boolean | any | any | null;
543
+ } | null)[] | {
544
+ [key: string]: string | number | boolean | any | any | null;
545
+ } | null)[] | {
546
+ [key: string]: string | number | boolean | any | any | null;
547
+ } | null)[] | {
548
+ [key: string]: string | number | boolean | any | any | null;
549
+ } | null)[] | {
550
+ [key: string]: string | number | boolean | any | any | null;
551
+ } | null)[] | {
552
+ [key: string]: string | number | boolean | any | any | null;
553
+ } | null)[] | {
554
+ [key: string]: string | number | boolean | any | any | null;
555
+ } | null)[] | {
556
+ [key: string]: string | number | boolean | any | any | null;
557
+ } | null)[] | {
558
+ [key: string]: string | number | boolean | any | any | null;
559
+ } | null, unknown>>>;
560
+ requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
561
+ [key: string]: string | number | boolean | any | any | null;
562
+ } | null)[] | {
563
+ [key: string]: string | number | boolean | any | any | null;
564
+ } | null)[] | {
565
+ [key: string]: string | number | boolean | any | any | null;
566
+ } | null)[] | {
567
+ [key: string]: string | number | boolean | any | any | null;
568
+ } | null)[] | {
569
+ [key: string]: string | number | boolean | any | any | null;
570
+ } | null)[] | {
571
+ [key: string]: string | number | boolean | any | any | null;
572
+ } | null)[] | {
573
+ [key: string]: string | number | boolean | any | any | null;
574
+ } | null)[] | {
575
+ [key: string]: string | number | boolean | any | any | null;
576
+ } | null)[] | {
577
+ [key: string]: string | number | boolean | any | any | null;
578
+ } | null)[] | {
579
+ [key: string]: string | number | boolean | any | any | null;
580
+ } | null)[] | {
581
+ [key: string]: string | number | boolean | any | any | null;
582
+ } | null)[] | {
583
+ [key: string]: string | number | boolean | any | any | null;
584
+ } | null, unknown, z.core.$ZodTypeInternals<string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
585
+ [key: string]: string | number | boolean | any | any | null;
586
+ } | null)[] | {
587
+ [key: string]: string | number | boolean | any | any | null;
588
+ } | null)[] | {
589
+ [key: string]: string | number | boolean | any | any | null;
590
+ } | null)[] | {
591
+ [key: string]: string | number | boolean | any | any | null;
592
+ } | null)[] | {
593
+ [key: string]: string | number | boolean | any | any | null;
594
+ } | null)[] | {
595
+ [key: string]: string | number | boolean | any | any | null;
596
+ } | null)[] | {
597
+ [key: string]: string | number | boolean | any | any | null;
598
+ } | null)[] | {
599
+ [key: string]: string | number | boolean | any | any | null;
600
+ } | null)[] | {
601
+ [key: string]: string | number | boolean | any | any | null;
602
+ } | null)[] | {
603
+ [key: string]: string | number | boolean | any | any | null;
604
+ } | null)[] | {
605
+ [key: string]: string | number | boolean | any | any | null;
606
+ } | null)[] | {
607
+ [key: string]: string | number | boolean | any | any | null;
608
+ } | null, unknown>>>>;
609
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
610
+ [key: string]: string | number | boolean | any | any | null;
611
+ } | null)[] | {
612
+ [key: string]: string | number | boolean | any | any | null;
613
+ } | null)[] | {
614
+ [key: string]: string | number | boolean | any | any | null;
615
+ } | null)[] | {
616
+ [key: string]: string | number | boolean | any | any | null;
617
+ } | null)[] | {
618
+ [key: string]: string | number | boolean | any | any | null;
619
+ } | null)[] | {
620
+ [key: string]: string | number | boolean | any | any | null;
621
+ } | null)[] | {
622
+ [key: string]: string | number | boolean | any | any | null;
623
+ } | null)[] | {
624
+ [key: string]: string | number | boolean | any | any | null;
625
+ } | null)[] | {
626
+ [key: string]: string | number | boolean | any | any | null;
627
+ } | null)[] | {
628
+ [key: string]: string | number | boolean | any | any | null;
629
+ } | null)[] | {
630
+ [key: string]: string | number | boolean | any | any | null;
631
+ } | null)[] | {
632
+ [key: string]: string | number | boolean | any | any | null;
633
+ } | null, unknown, z.core.$ZodTypeInternals<string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
634
+ [key: string]: string | number | boolean | any | any | null;
635
+ } | null)[] | {
636
+ [key: string]: string | number | boolean | any | any | null;
637
+ } | null)[] | {
638
+ [key: string]: string | number | boolean | any | any | null;
639
+ } | null)[] | {
640
+ [key: string]: string | number | boolean | any | any | null;
641
+ } | null)[] | {
642
+ [key: string]: string | number | boolean | any | any | null;
643
+ } | null)[] | {
644
+ [key: string]: string | number | boolean | any | any | null;
645
+ } | null)[] | {
646
+ [key: string]: string | number | boolean | any | any | null;
647
+ } | null)[] | {
648
+ [key: string]: string | number | boolean | any | any | null;
649
+ } | null)[] | {
650
+ [key: string]: string | number | boolean | any | any | null;
651
+ } | null)[] | {
652
+ [key: string]: string | number | boolean | any | any | null;
653
+ } | null)[] | {
654
+ [key: string]: string | number | boolean | any | any | null;
655
+ } | null)[] | {
656
+ [key: string]: string | number | boolean | any | any | null;
657
+ } | null, unknown>>>>;
658
+ }, z.core.$strict>>]>>;
659
+ }, z.core.$strict>, unknown>;
660
+ export declare const saveWorkflowTool: import("@mastra/core/tools").Tool<{
661
+ id: string;
662
+ description?: string | undefined;
663
+ metadata?: Record<string, unknown> | undefined;
664
+ inputSchema: unknown;
665
+ outputSchema: unknown;
666
+ stateSchema?: unknown;
667
+ requestContextSchema?: unknown;
668
+ graph: ({
669
+ type: "agent";
670
+ id: string;
671
+ agentId: string;
672
+ description?: string | undefined;
673
+ outputSchema?: unknown;
674
+ options?: {
675
+ retries?: number | undefined;
676
+ metadata?: Record<string, unknown> | undefined;
677
+ } | undefined;
678
+ } | {
679
+ type: "tool";
680
+ id: string;
681
+ toolId: string;
682
+ description?: string | undefined;
683
+ options?: {
684
+ retries?: number | undefined;
685
+ metadata?: Record<string, unknown> | undefined;
686
+ } | undefined;
687
+ } | {
688
+ type: "classifier";
689
+ id: string;
690
+ classifierId: string;
691
+ description?: string | undefined;
692
+ options?: {
693
+ maxRetries?: number | undefined;
694
+ providerOptions?: Record<string, unknown> | undefined;
695
+ retries?: number | undefined;
696
+ metadata?: Record<string, unknown> | undefined;
697
+ } | undefined;
698
+ } | {
699
+ description?: string | undefined;
700
+ metadata?: Record<string, unknown> | undefined;
701
+ type: "mapping";
702
+ id: string;
703
+ mapConfig: string;
704
+ } | {
705
+ type: "workflow";
706
+ id: string;
707
+ workflowId: string;
708
+ description?: string | undefined;
709
+ options?: {
710
+ retries?: number | undefined;
711
+ metadata?: Record<string, unknown> | undefined;
712
+ } | undefined;
713
+ } | {
714
+ description?: string | undefined;
715
+ metadata?: Record<string, unknown> | undefined;
716
+ id?: string | undefined;
717
+ type: "parallel";
718
+ steps: ({
719
+ type: "agent";
720
+ id: string;
721
+ agentId: string;
722
+ description?: string | undefined;
723
+ outputSchema?: unknown;
724
+ options?: {
725
+ retries?: number | undefined;
726
+ metadata?: Record<string, unknown> | undefined;
727
+ } | undefined;
728
+ } | {
729
+ type: "tool";
730
+ id: string;
731
+ toolId: string;
732
+ description?: string | undefined;
733
+ options?: {
734
+ retries?: number | undefined;
735
+ metadata?: Record<string, unknown> | undefined;
736
+ } | undefined;
737
+ } | {
738
+ type: "classifier";
739
+ id: string;
740
+ classifierId: string;
741
+ description?: string | undefined;
742
+ options?: {
743
+ maxRetries?: number | undefined;
744
+ providerOptions?: Record<string, unknown> | undefined;
745
+ retries?: number | undefined;
746
+ metadata?: Record<string, unknown> | undefined;
747
+ } | undefined;
748
+ } | {
749
+ type: "workflow";
750
+ id: string;
751
+ workflowId: string;
752
+ description?: string | undefined;
753
+ options?: {
754
+ retries?: number | undefined;
755
+ metadata?: Record<string, unknown> | undefined;
756
+ } | undefined;
757
+ })[];
758
+ } | {
759
+ description?: string | undefined;
760
+ metadata?: Record<string, unknown> | undefined;
761
+ id?: string | undefined;
762
+ type: "foreach";
763
+ step: {
764
+ type: "agent";
765
+ id: string;
766
+ agentId: string;
767
+ description?: string | undefined;
768
+ outputSchema?: unknown;
769
+ options?: {
770
+ retries?: number | undefined;
771
+ metadata?: Record<string, unknown> | undefined;
772
+ } | undefined;
773
+ } | {
774
+ type: "tool";
775
+ id: string;
776
+ toolId: string;
777
+ description?: string | undefined;
778
+ options?: {
779
+ retries?: number | undefined;
780
+ metadata?: Record<string, unknown> | undefined;
781
+ } | undefined;
782
+ } | {
783
+ type: "classifier";
784
+ id: string;
785
+ classifierId: string;
786
+ description?: string | undefined;
787
+ options?: {
788
+ maxRetries?: number | undefined;
789
+ providerOptions?: Record<string, unknown> | undefined;
790
+ retries?: number | undefined;
791
+ metadata?: Record<string, unknown> | undefined;
792
+ } | undefined;
793
+ } | {
794
+ type: "workflow";
795
+ id: string;
796
+ workflowId: string;
797
+ description?: string | undefined;
798
+ options?: {
799
+ retries?: number | undefined;
800
+ metadata?: Record<string, unknown> | undefined;
801
+ } | undefined;
802
+ };
803
+ opts?: {
804
+ concurrency: number;
805
+ } | undefined;
806
+ } | {
807
+ description?: string | undefined;
808
+ metadata?: Record<string, unknown> | undefined;
809
+ type: "sleep";
810
+ id: string;
811
+ duration: number;
812
+ } | {
813
+ description?: string | undefined;
814
+ metadata?: Record<string, unknown> | undefined;
815
+ type: "sleepUntil";
816
+ id: string;
817
+ date: string;
818
+ } | {
819
+ description?: string | undefined;
820
+ metadata?: Record<string, unknown> | undefined;
821
+ id?: string | undefined;
822
+ type: "conditional";
823
+ steps: ({
824
+ type: "agent";
825
+ id: string;
826
+ agentId: string;
827
+ description?: string | undefined;
828
+ outputSchema?: unknown;
829
+ options?: {
830
+ retries?: number | undefined;
831
+ metadata?: Record<string, unknown> | undefined;
832
+ } | undefined;
833
+ } | {
834
+ type: "tool";
835
+ id: string;
836
+ toolId: string;
837
+ description?: string | undefined;
838
+ options?: {
839
+ retries?: number | undefined;
840
+ metadata?: Record<string, unknown> | undefined;
841
+ } | undefined;
842
+ } | {
843
+ type: "classifier";
844
+ id: string;
845
+ classifierId: string;
846
+ description?: string | undefined;
847
+ options?: {
848
+ maxRetries?: number | undefined;
849
+ providerOptions?: Record<string, unknown> | undefined;
850
+ retries?: number | undefined;
851
+ metadata?: Record<string, unknown> | undefined;
852
+ } | undefined;
853
+ } | {
854
+ type: "workflow";
855
+ id: string;
856
+ workflowId: string;
857
+ description?: string | undefined;
858
+ options?: {
859
+ retries?: number | undefined;
860
+ metadata?: Record<string, unknown> | undefined;
861
+ } | undefined;
862
+ })[];
863
+ predicates: import("@mastra/core/predicate").Predicate[];
864
+ } | {
865
+ description?: string | undefined;
866
+ metadata?: Record<string, unknown> | undefined;
867
+ id?: string | undefined;
868
+ type: "loop";
869
+ step: {
870
+ type: "agent";
871
+ id: string;
872
+ agentId: string;
873
+ description?: string | undefined;
874
+ outputSchema?: unknown;
875
+ options?: {
876
+ retries?: number | undefined;
877
+ metadata?: Record<string, unknown> | undefined;
878
+ } | undefined;
879
+ } | {
880
+ type: "tool";
881
+ id: string;
882
+ toolId: string;
883
+ description?: string | undefined;
884
+ options?: {
885
+ retries?: number | undefined;
886
+ metadata?: Record<string, unknown> | undefined;
887
+ } | undefined;
888
+ } | {
889
+ type: "classifier";
890
+ id: string;
891
+ classifierId: string;
892
+ description?: string | undefined;
893
+ options?: {
894
+ maxRetries?: number | undefined;
895
+ providerOptions?: Record<string, unknown> | undefined;
896
+ retries?: number | undefined;
897
+ metadata?: Record<string, unknown> | undefined;
898
+ } | undefined;
899
+ } | {
900
+ type: "workflow";
901
+ id: string;
902
+ workflowId: string;
903
+ description?: string | undefined;
904
+ options?: {
905
+ retries?: number | undefined;
906
+ metadata?: Record<string, unknown> | undefined;
907
+ } | undefined;
908
+ };
909
+ loopType: "dountil" | "dowhile";
910
+ predicate: import("@mastra/core/predicate").Predicate;
911
+ })[];
912
+ schedule?: {
913
+ id?: string | undefined;
914
+ cron: string;
915
+ timezone?: string | undefined;
916
+ inputData?: (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
917
+ [key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
918
+ } | null)[] | {
919
+ [key: string]: string | number | boolean | any | any | null;
920
+ } | null)[] | {
921
+ [key: string]: string | number | boolean | any | any | null;
922
+ } | null)[] | {
923
+ [key: string]: string | number | boolean | any | any | null;
924
+ } | null)[] | {
925
+ [key: string]: string | number | boolean | any | any | null;
926
+ } | null)[] | {
927
+ [key: string]: string | number | boolean | any | any | null;
928
+ } | null)[] | {
929
+ [key: string]: string | number | boolean | any | any | null;
930
+ } | null)[] | {
931
+ [key: string]: string | number | boolean | any | any | null;
932
+ } | null)[] | {
933
+ [key: string]: string | number | boolean | any | any | null;
934
+ } | null)[] | {
935
+ [key: string]: string | number | boolean | any | any | null;
936
+ } | null)[] | {
937
+ [key: string]: string | number | boolean | any | any | null;
938
+ } | null)[] | {
939
+ [key: string]: string | number | boolean | any | any | null;
940
+ } | null) | undefined;
941
+ initialState?: (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
942
+ [key: string]: string | number | boolean | any | any | null;
943
+ } | null)[] | {
944
+ [key: string]: string | number | boolean | any | any | null;
945
+ } | null)[] | {
946
+ [key: string]: string | number | boolean | any | any | null;
947
+ } | null)[] | {
948
+ [key: string]: string | number | boolean | any | any | null;
949
+ } | null)[] | {
950
+ [key: string]: string | number | boolean | any | any | null;
951
+ } | null)[] | {
952
+ [key: string]: string | number | boolean | any | any | null;
953
+ } | null)[] | {
954
+ [key: string]: string | number | boolean | any | any | null;
955
+ } | null)[] | {
956
+ [key: string]: string | number | boolean | any | any | null;
957
+ } | null)[] | {
958
+ [key: string]: string | number | boolean | any | any | null;
959
+ } | null)[] | {
960
+ [key: string]: string | number | boolean | any | any | null;
961
+ } | null)[] | {
962
+ [key: string]: string | number | boolean | any | any | null;
963
+ } | null)[] | {
964
+ [key: string]: string | number | boolean | any | any | null;
965
+ } | null) | undefined;
966
+ requestContext?: Record<string, string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
967
+ [key: string]: string | number | boolean | any | any | null;
968
+ } | null)[] | {
969
+ [key: string]: string | number | boolean | any | any | null;
970
+ } | null)[] | {
971
+ [key: string]: string | number | boolean | any | any | null;
972
+ } | null)[] | {
973
+ [key: string]: string | number | boolean | any | any | null;
974
+ } | null)[] | {
975
+ [key: string]: string | number | boolean | any | any | null;
976
+ } | null)[] | {
977
+ [key: string]: string | number | boolean | any | any | null;
978
+ } | null)[] | {
979
+ [key: string]: string | number | boolean | any | any | null;
980
+ } | null)[] | {
981
+ [key: string]: string | number | boolean | any | any | null;
982
+ } | null)[] | {
983
+ [key: string]: string | number | boolean | any | any | null;
984
+ } | null)[] | {
985
+ [key: string]: string | number | boolean | any | any | null;
986
+ } | null)[] | {
987
+ [key: string]: string | number | boolean | any | any | null;
988
+ } | null)[] | {
989
+ [key: string]: string | number | boolean | any | any | null;
990
+ } | null> | undefined;
991
+ metadata?: Record<string, string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
992
+ [key: string]: string | number | boolean | any | any | null;
993
+ } | null)[] | {
994
+ [key: string]: string | number | boolean | any | any | null;
995
+ } | null)[] | {
996
+ [key: string]: string | number | boolean | any | any | null;
997
+ } | null)[] | {
998
+ [key: string]: string | number | boolean | any | any | null;
999
+ } | null)[] | {
1000
+ [key: string]: string | number | boolean | any | any | null;
1001
+ } | null)[] | {
1002
+ [key: string]: string | number | boolean | any | any | null;
1003
+ } | null)[] | {
1004
+ [key: string]: string | number | boolean | any | any | null;
1005
+ } | null)[] | {
1006
+ [key: string]: string | number | boolean | any | any | null;
1007
+ } | null)[] | {
1008
+ [key: string]: string | number | boolean | any | any | null;
1009
+ } | null)[] | {
1010
+ [key: string]: string | number | boolean | any | any | null;
1011
+ } | null)[] | {
1012
+ [key: string]: string | number | boolean | any | any | null;
1013
+ } | null)[] | {
1014
+ [key: string]: string | number | boolean | any | any | null;
1015
+ } | null> | undefined;
1016
+ }[] | {
1017
+ id?: string | undefined;
1018
+ cron: string;
1019
+ timezone?: string | undefined;
1020
+ inputData?: (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
1021
+ [key: string]: string | number | boolean | any | any | null;
1022
+ } | null)[] | {
1023
+ [key: string]: string | number | boolean | any | any | null;
1024
+ } | null)[] | {
1025
+ [key: string]: string | number | boolean | any | any | null;
1026
+ } | null)[] | {
1027
+ [key: string]: string | number | boolean | any | any | null;
1028
+ } | null)[] | {
1029
+ [key: string]: string | number | boolean | any | any | null;
1030
+ } | null)[] | {
1031
+ [key: string]: string | number | boolean | any | any | null;
1032
+ } | null)[] | {
1033
+ [key: string]: string | number | boolean | any | any | null;
1034
+ } | null)[] | {
1035
+ [key: string]: string | number | boolean | any | any | null;
1036
+ } | null)[] | {
1037
+ [key: string]: string | number | boolean | any | any | null;
1038
+ } | null)[] | {
1039
+ [key: string]: string | number | boolean | any | any | null;
1040
+ } | null)[] | {
1041
+ [key: string]: string | number | boolean | any | any | null;
1042
+ } | null)[] | {
1043
+ [key: string]: string | number | boolean | any | any | null;
1044
+ } | null) | undefined;
1045
+ initialState?: (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
1046
+ [key: string]: string | number | boolean | any | any | null;
1047
+ } | null)[] | {
1048
+ [key: string]: string | number | boolean | any | any | null;
1049
+ } | null)[] | {
1050
+ [key: string]: string | number | boolean | any | any | null;
1051
+ } | null)[] | {
1052
+ [key: string]: string | number | boolean | any | any | null;
1053
+ } | null)[] | {
1054
+ [key: string]: string | number | boolean | any | any | null;
1055
+ } | null)[] | {
1056
+ [key: string]: string | number | boolean | any | any | null;
1057
+ } | null)[] | {
1058
+ [key: string]: string | number | boolean | any | any | null;
1059
+ } | null)[] | {
1060
+ [key: string]: string | number | boolean | any | any | null;
1061
+ } | null)[] | {
1062
+ [key: string]: string | number | boolean | any | any | null;
1063
+ } | null)[] | {
1064
+ [key: string]: string | number | boolean | any | any | null;
1065
+ } | null)[] | {
1066
+ [key: string]: string | number | boolean | any | any | null;
1067
+ } | null)[] | {
1068
+ [key: string]: string | number | boolean | any | any | null;
1069
+ } | null) | undefined;
1070
+ requestContext?: Record<string, string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
1071
+ [key: string]: string | number | boolean | any | any | null;
1072
+ } | null)[] | {
1073
+ [key: string]: string | number | boolean | any | any | null;
1074
+ } | null)[] | {
1075
+ [key: string]: string | number | boolean | any | any | null;
1076
+ } | null)[] | {
1077
+ [key: string]: string | number | boolean | any | any | null;
1078
+ } | null)[] | {
1079
+ [key: string]: string | number | boolean | any | any | null;
1080
+ } | null)[] | {
1081
+ [key: string]: string | number | boolean | any | any | null;
1082
+ } | null)[] | {
1083
+ [key: string]: string | number | boolean | any | any | null;
1084
+ } | null)[] | {
1085
+ [key: string]: string | number | boolean | any | any | null;
1086
+ } | null)[] | {
1087
+ [key: string]: string | number | boolean | any | any | null;
1088
+ } | null)[] | {
1089
+ [key: string]: string | number | boolean | any | any | null;
1090
+ } | null)[] | {
1091
+ [key: string]: string | number | boolean | any | any | null;
1092
+ } | null)[] | {
1093
+ [key: string]: string | number | boolean | any | any | null;
1094
+ } | null> | undefined;
1095
+ metadata?: Record<string, string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
1096
+ [key: string]: string | number | boolean | any | any | null;
1097
+ } | null)[] | {
1098
+ [key: string]: string | number | boolean | any | any | null;
1099
+ } | null)[] | {
1100
+ [key: string]: string | number | boolean | any | any | null;
1101
+ } | null)[] | {
1102
+ [key: string]: string | number | boolean | any | any | null;
1103
+ } | null)[] | {
1104
+ [key: string]: string | number | boolean | any | any | null;
1105
+ } | null)[] | {
1106
+ [key: string]: string | number | boolean | any | any | null;
1107
+ } | null)[] | {
1108
+ [key: string]: string | number | boolean | any | any | null;
1109
+ } | null)[] | {
1110
+ [key: string]: string | number | boolean | any | any | null;
1111
+ } | null)[] | {
1112
+ [key: string]: string | number | boolean | any | any | null;
1113
+ } | null)[] | {
1114
+ [key: string]: string | number | boolean | any | any | null;
1115
+ } | null)[] | {
1116
+ [key: string]: string | number | boolean | any | any | null;
1117
+ } | null)[] | {
1118
+ [key: string]: string | number | boolean | any | any | null;
1119
+ } | null> | undefined;
1120
+ } | undefined;
1121
+ }, {
1122
+ ok: true;
1123
+ id: string;
1124
+ }, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown, unknown>, "save-workflow", unknown>;
1125
+ //# sourceMappingURL=save-workflow.d.ts.map