@mastra/react 1.7.3-alpha.3 → 1.8.0-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (510) hide show
  1. package/dist/accumulator-B1MuNX3j.js +1668 -0
  2. package/dist/accumulator-B1MuNX3j.js.map +1 -0
  3. package/dist/accumulator-CsUGDUHk.cjs +1709 -0
  4. package/dist/accumulator-CsUGDUHk.cjs.map +1 -0
  5. package/dist/agent/hooks.d.ts.map +1 -1
  6. package/dist/agent/user-message.d.ts +4 -0
  7. package/dist/agent/user-message.d.ts.map +1 -0
  8. package/dist/chat/index.cjs +3 -0
  9. package/dist/chat/index.d.ts +3 -0
  10. package/dist/chat/index.d.ts.map +1 -0
  11. package/dist/chat/index.js +2 -0
  12. package/dist/feedback-refetch-interval-DLHzQoVV.js +12 -0
  13. package/dist/feedback-refetch-interval-DLHzQoVV.js.map +1 -0
  14. package/dist/feedback-refetch-interval-XD5FVc2k.cjs +17 -0
  15. package/dist/feedback-refetch-interval-XD5FVc2k.cjs.map +1 -0
  16. package/dist/hooks/agents/index.cjs +1012 -0
  17. package/dist/hooks/agents/index.cjs.map +1 -0
  18. package/dist/hooks/agents/index.d.ts +19 -0
  19. package/dist/hooks/agents/index.d.ts.map +1 -0
  20. package/dist/hooks/agents/index.js +975 -0
  21. package/dist/hooks/agents/index.js.map +1 -0
  22. package/dist/hooks/agents/is-model-not-allowed.d.ts +15 -0
  23. package/dist/hooks/agents/is-model-not-allowed.d.ts.map +1 -0
  24. package/dist/hooks/agents/use-agent-messages.d.ts +18 -0
  25. package/dist/hooks/agents/use-agent-messages.d.ts.map +1 -0
  26. package/dist/hooks/agents/use-agent-plan.d.ts +14 -0
  27. package/dist/hooks/agents/use-agent-plan.d.ts.map +1 -0
  28. package/dist/hooks/agents/use-agent-skills.d.ts +2043 -0
  29. package/dist/hooks/agents/use-agent-skills.d.ts.map +1 -0
  30. package/dist/hooks/agents/use-agent-versions.d.ts +72 -0
  31. package/dist/hooks/agents/use-agent-versions.d.ts.map +1 -0
  32. package/dist/hooks/agents/use-agent-working-memory.d.ts +11 -0
  33. package/dist/hooks/agents/use-agent-working-memory.d.ts.map +1 -0
  34. package/dist/hooks/agents/use-agent-workspace.d.ts +2044 -0
  35. package/dist/hooks/agents/use-agent-workspace.d.ts.map +1 -0
  36. package/dist/hooks/agents/use-agent.d.ts +12 -0
  37. package/dist/hooks/agents/use-agent.d.ts.map +1 -0
  38. package/dist/hooks/agents/use-agents-model-providers.d.ts +9 -0
  39. package/dist/hooks/agents/use-agents-model-providers.d.ts.map +1 -0
  40. package/dist/hooks/agents/use-agents.d.ts +28 -0
  41. package/dist/hooks/agents/use-agents.d.ts.map +1 -0
  42. package/dist/hooks/agents/use-background-tasks.d.ts +51 -0
  43. package/dist/hooks/agents/use-background-tasks.d.ts.map +1 -0
  44. package/dist/hooks/agents/use-browser-session-probe.d.ts +34 -0
  45. package/dist/hooks/agents/use-browser-session-probe.d.ts.map +1 -0
  46. package/dist/hooks/agents/use-channels.d.ts +45 -0
  47. package/dist/hooks/agents/use-channels.d.ts.map +1 -0
  48. package/dist/hooks/agents/use-close-browser.d.ts +17 -0
  49. package/dist/hooks/agents/use-close-browser.d.ts.map +1 -0
  50. package/dist/hooks/agents/use-execute-agent-tool.d.ts +14 -0
  51. package/dist/hooks/agents/use-execute-agent-tool.d.ts.map +1 -0
  52. package/dist/hooks/agents/use-preview-instructions.d.ts +20 -0
  53. package/dist/hooks/agents/use-preview-instructions.d.ts.map +1 -0
  54. package/dist/hooks/agents/use-stored-agents.d.ts +8111 -0
  55. package/dist/hooks/agents/use-stored-agents.d.ts.map +1 -0
  56. package/dist/hooks/agents/use-stored-skills.d.ts +8 -0
  57. package/dist/hooks/agents/use-stored-skills.d.ts.map +1 -0
  58. package/dist/hooks/auth/fetch-with-refresh.d.ts +28 -0
  59. package/dist/hooks/auth/fetch-with-refresh.d.ts.map +1 -0
  60. package/dist/hooks/auth/get-client-query-key.d.ts +7 -0
  61. package/dist/hooks/auth/get-client-query-key.d.ts.map +1 -0
  62. package/dist/hooks/auth/index.cjs +492 -0
  63. package/dist/hooks/auth/index.cjs.map +1 -0
  64. package/dist/hooks/auth/index.d.ts +11 -0
  65. package/dist/hooks/auth/index.d.ts.map +1 -0
  66. package/dist/hooks/auth/index.js +474 -0
  67. package/dist/hooks/auth/index.js.map +1 -0
  68. package/dist/hooks/auth/sso-login.d.ts +8 -0
  69. package/dist/hooks/auth/sso-login.d.ts.map +1 -0
  70. package/dist/hooks/auth/types.d.ts +107 -0
  71. package/dist/hooks/auth/types.d.ts.map +1 -0
  72. package/dist/hooks/auth/use-auth-actions.d.ts +99 -0
  73. package/dist/hooks/auth/use-auth-actions.d.ts.map +1 -0
  74. package/dist/hooks/auth/use-auth-capabilities.d.ts +43 -0
  75. package/dist/hooks/auth/use-auth-capabilities.d.ts.map +1 -0
  76. package/dist/hooks/auth/use-credentials-login.d.ts +63 -0
  77. package/dist/hooks/auth/use-credentials-login.d.ts.map +1 -0
  78. package/dist/hooks/auth/use-credentials-signup.d.ts +66 -0
  79. package/dist/hooks/auth/use-credentials-signup.d.ts.map +1 -0
  80. package/dist/hooks/auth/use-current-user.d.ts +40 -0
  81. package/dist/hooks/auth/use-current-user.d.ts.map +1 -0
  82. package/dist/hooks/auth/use-permission-patterns.d.ts +24 -0
  83. package/dist/hooks/auth/use-permission-patterns.d.ts.map +1 -0
  84. package/dist/hooks/capabilities/index.cjs +47 -0
  85. package/dist/hooks/capabilities/index.cjs.map +1 -0
  86. package/dist/hooks/capabilities/index.d.ts +4 -0
  87. package/dist/hooks/capabilities/index.d.ts.map +1 -0
  88. package/dist/hooks/capabilities/index.js +44 -0
  89. package/dist/hooks/capabilities/index.js.map +1 -0
  90. package/dist/hooks/capabilities/use-feedback-available.d.ts +9 -0
  91. package/dist/hooks/capabilities/use-feedback-available.d.ts.map +1 -0
  92. package/dist/hooks/capabilities/use-observability-capabilities.d.ts +9 -0
  93. package/dist/hooks/capabilities/use-observability-capabilities.d.ts.map +1 -0
  94. package/dist/hooks/capabilities/use-trace-query-available.d.ts +9 -0
  95. package/dist/hooks/capabilities/use-trace-query-available.d.ts.map +1 -0
  96. package/dist/hooks/configuration/index.cjs +18 -0
  97. package/dist/hooks/configuration/index.cjs.map +1 -0
  98. package/dist/hooks/configuration/index.d.ts +2 -0
  99. package/dist/hooks/configuration/index.d.ts.map +1 -0
  100. package/dist/hooks/configuration/index.js +17 -0
  101. package/dist/hooks/configuration/index.js.map +1 -0
  102. package/dist/hooks/configuration/use-mastra-packages.d.ts +9 -0
  103. package/dist/hooks/configuration/use-mastra-packages.d.ts.map +1 -0
  104. package/dist/hooks/datasets/index.cjs +615 -0
  105. package/dist/hooks/datasets/index.cjs.map +1 -0
  106. package/dist/hooks/datasets/index.d.ts +10 -0
  107. package/dist/hooks/datasets/index.d.ts.map +1 -0
  108. package/dist/hooks/datasets/index.js +600 -0
  109. package/dist/hooks/datasets/index.js.map +1 -0
  110. package/dist/hooks/datasets/use-compare-experiments.d.ts +23 -0
  111. package/dist/hooks/datasets/use-compare-experiments.d.ts.map +1 -0
  112. package/dist/hooks/datasets/use-dataset-experiments.d.ts +49 -0
  113. package/dist/hooks/datasets/use-dataset-experiments.d.ts.map +1 -0
  114. package/dist/hooks/datasets/use-dataset-item-versions.d.ts +31 -0
  115. package/dist/hooks/datasets/use-dataset-item-versions.d.ts.map +1 -0
  116. package/dist/hooks/datasets/use-dataset-items.d.ts +38 -0
  117. package/dist/hooks/datasets/use-dataset-items.d.ts.map +1 -0
  118. package/dist/hooks/datasets/use-dataset-mutations.d.ts +362 -0
  119. package/dist/hooks/datasets/use-dataset-mutations.d.ts.map +1 -0
  120. package/dist/hooks/datasets/use-dataset-versions.d.ts +23 -0
  121. package/dist/hooks/datasets/use-dataset-versions.d.ts.map +1 -0
  122. package/dist/hooks/datasets/use-datasets.d.ts +44 -0
  123. package/dist/hooks/datasets/use-datasets.d.ts.map +1 -0
  124. package/dist/hooks/datasets/use-experiments.d.ts +16 -0
  125. package/dist/hooks/datasets/use-experiments.d.ts.map +1 -0
  126. package/dist/hooks/datasets/use-workflow-schema.d.ts +16 -0
  127. package/dist/hooks/datasets/use-workflow-schema.d.ts.map +1 -0
  128. package/dist/hooks/embedders/index.cjs +19 -0
  129. package/dist/hooks/embedders/index.cjs.map +1 -0
  130. package/dist/hooks/embedders/index.d.ts +2 -0
  131. package/dist/hooks/embedders/index.d.ts.map +1 -0
  132. package/dist/hooks/embedders/index.js +18 -0
  133. package/dist/hooks/embedders/index.js.map +1 -0
  134. package/dist/hooks/embedders/use-embedders.d.ts +17 -0
  135. package/dist/hooks/embedders/use-embedders.d.ts.map +1 -0
  136. package/dist/hooks/experiments/index.cjs +152 -0
  137. package/dist/hooks/experiments/index.cjs.map +1 -0
  138. package/dist/hooks/experiments/index.d.ts +5 -0
  139. package/dist/hooks/experiments/index.d.ts.map +1 -0
  140. package/dist/hooks/experiments/index.js +146 -0
  141. package/dist/hooks/experiments/index.js.map +1 -0
  142. package/dist/hooks/experiments/use-experiment-metrics.d.ts +30 -0
  143. package/dist/hooks/experiments/use-experiment-metrics.d.ts.map +1 -0
  144. package/dist/hooks/experiments/use-experiment-trace.d.ts +13 -0
  145. package/dist/hooks/experiments/use-experiment-trace.d.ts.map +1 -0
  146. package/dist/hooks/experiments/use-experiments-for-dataset-filter.d.ts +22 -0
  147. package/dist/hooks/experiments/use-experiments-for-dataset-filter.d.ts.map +1 -0
  148. package/dist/hooks/experiments/use-infinite-experiments.d.ts +22 -0
  149. package/dist/hooks/experiments/use-infinite-experiments.d.ts.map +1 -0
  150. package/dist/hooks/feedback/feedback-refetch-interval.d.ts +7 -0
  151. package/dist/hooks/feedback/feedback-refetch-interval.d.ts.map +1 -0
  152. package/dist/hooks/feedback/index.cjs +22 -0
  153. package/dist/hooks/feedback/index.cjs.map +1 -0
  154. package/dist/hooks/feedback/index.d.ts +3 -0
  155. package/dist/hooks/feedback/index.d.ts.map +1 -0
  156. package/dist/hooks/feedback/index.js +20 -0
  157. package/dist/hooks/feedback/index.js.map +1 -0
  158. package/dist/hooks/feedback/use-feedback.d.ts +56 -0
  159. package/dist/hooks/feedback/use-feedback.d.ts.map +1 -0
  160. package/dist/hooks/llm/index.cjs +17 -0
  161. package/dist/hooks/llm/index.cjs.map +1 -0
  162. package/dist/hooks/llm/index.d.ts +2 -0
  163. package/dist/hooks/llm/index.d.ts.map +1 -0
  164. package/dist/hooks/llm/index.js +16 -0
  165. package/dist/hooks/llm/index.js.map +1 -0
  166. package/dist/hooks/llm/use-llm-providers.d.ts +7 -0
  167. package/dist/hooks/llm/use-llm-providers.d.ts.map +1 -0
  168. package/dist/hooks/logs/index.cjs +84 -0
  169. package/dist/hooks/logs/index.cjs.map +1 -0
  170. package/dist/hooks/logs/index.d.ts +4 -0
  171. package/dist/hooks/logs/index.d.ts.map +1 -0
  172. package/dist/hooks/logs/index.js +82 -0
  173. package/dist/hooks/logs/index.js.map +1 -0
  174. package/dist/hooks/logs/types.d.ts +36 -0
  175. package/dist/hooks/logs/types.d.ts.map +1 -0
  176. package/dist/hooks/logs/use-logs.d.ts +79 -0
  177. package/dist/hooks/logs/use-logs.d.ts.map +1 -0
  178. package/dist/hooks/mcps/index.cjs +215 -0
  179. package/dist/hooks/mcps/index.cjs.map +1 -0
  180. package/dist/hooks/mcps/index.d.ts +7 -0
  181. package/dist/hooks/mcps/index.d.ts.map +1 -0
  182. package/dist/hooks/mcps/index.js +208 -0
  183. package/dist/hooks/mcps/index.js.map +1 -0
  184. package/dist/hooks/mcps/use-mcp-app-tools.d.ts +21 -0
  185. package/dist/hooks/mcps/use-mcp-app-tools.d.ts.map +1 -0
  186. package/dist/hooks/mcps/use-mcp-server-tool.d.ts +25 -0
  187. package/dist/hooks/mcps/use-mcp-server-tool.d.ts.map +1 -0
  188. package/dist/hooks/mcps/use-mcp-server-tools-by-id.d.ts +13 -0
  189. package/dist/hooks/mcps/use-mcp-server-tools-by-id.d.ts.map +1 -0
  190. package/dist/hooks/mcps/use-mcp-server-tools.d.ts +9 -0
  191. package/dist/hooks/mcps/use-mcp-server-tools.d.ts.map +1 -0
  192. package/dist/hooks/mcps/use-mcp-servers.d.ts +8 -0
  193. package/dist/hooks/mcps/use-mcp-servers.d.ts.map +1 -0
  194. package/dist/hooks/mcps/use-try-connect-mcp.d.ts +15 -0
  195. package/dist/hooks/mcps/use-try-connect-mcp.d.ts.map +1 -0
  196. package/dist/hooks/memory/index.cjs +328 -0
  197. package/dist/hooks/memory/index.cjs.map +1 -0
  198. package/dist/hooks/memory/index.d.ts +5 -0
  199. package/dist/hooks/memory/index.d.ts.map +1 -0
  200. package/dist/hooks/memory/index.js +312 -0
  201. package/dist/hooks/memory/index.js.map +1 -0
  202. package/dist/hooks/memory/use-memory-status.d.ts +12 -0
  203. package/dist/hooks/memory/use-memory-status.d.ts.map +1 -0
  204. package/dist/hooks/memory/use-memory-thread-messages.d.ts +13 -0
  205. package/dist/hooks/memory/use-memory-thread-messages.d.ts.map +1 -0
  206. package/dist/hooks/memory/use-memory.d.ts +159 -0
  207. package/dist/hooks/memory/use-memory.d.ts.map +1 -0
  208. package/dist/hooks/memory/use-observational-memory.d.ts +13 -0
  209. package/dist/hooks/memory/use-observational-memory.d.ts.map +1 -0
  210. package/dist/hooks/metrics/index.cjs +997 -0
  211. package/dist/hooks/metrics/index.cjs.map +1 -0
  212. package/dist/hooks/metrics/index.d.ts +16 -0
  213. package/dist/hooks/metrics/index.d.ts.map +1 -0
  214. package/dist/hooks/metrics/index.js +981 -0
  215. package/dist/hooks/metrics/index.js.map +1 -0
  216. package/dist/hooks/metrics/metrics-interval.d.ts +8 -0
  217. package/dist/hooks/metrics/metrics-interval.d.ts.map +1 -0
  218. package/dist/hooks/metrics/metrics-query-filters.d.ts +62 -0
  219. package/dist/hooks/metrics/metrics-query-filters.d.ts.map +1 -0
  220. package/dist/hooks/metrics/use-active-resources-kpi-metrics.d.ts +12 -0
  221. package/dist/hooks/metrics/use-active-resources-kpi-metrics.d.ts.map +1 -0
  222. package/dist/hooks/metrics/use-active-threads-kpi-metrics.d.ts +12 -0
  223. package/dist/hooks/metrics/use-active-threads-kpi-metrics.d.ts.map +1 -0
  224. package/dist/hooks/metrics/use-agent-runs-kpi-metrics.d.ts +9 -0
  225. package/dist/hooks/metrics/use-agent-runs-kpi-metrics.d.ts.map +1 -0
  226. package/dist/hooks/metrics/use-latency-metrics.d.ts +23 -0
  227. package/dist/hooks/metrics/use-latency-metrics.d.ts.map +1 -0
  228. package/dist/hooks/metrics/use-model-cost-kpi-metrics.d.ts +14 -0
  229. package/dist/hooks/metrics/use-model-cost-kpi-metrics.d.ts.map +1 -0
  230. package/dist/hooks/metrics/use-model-usage-cost-metrics.d.ts +16 -0
  231. package/dist/hooks/metrics/use-model-usage-cost-metrics.d.ts.map +1 -0
  232. package/dist/hooks/metrics/use-scores-metrics.d.ts +24 -0
  233. package/dist/hooks/metrics/use-scores-metrics.d.ts.map +1 -0
  234. package/dist/hooks/metrics/use-token-usage-by-agent-metrics.d.ts +15 -0
  235. package/dist/hooks/metrics/use-token-usage-by-agent-metrics.d.ts.map +1 -0
  236. package/dist/hooks/metrics/use-token-usage-timeseries.d.ts +22 -0
  237. package/dist/hooks/metrics/use-token-usage-timeseries.d.ts.map +1 -0
  238. package/dist/hooks/metrics/use-top-active-threads-metrics.d.ts +21 -0
  239. package/dist/hooks/metrics/use-top-active-threads-metrics.d.ts.map +1 -0
  240. package/dist/hooks/metrics/use-top-resources-by-threads-metrics.d.ts +20 -0
  241. package/dist/hooks/metrics/use-top-resources-by-threads-metrics.d.ts.map +1 -0
  242. package/dist/hooks/metrics/use-total-tokens-kpi-metrics.d.ts +13 -0
  243. package/dist/hooks/metrics/use-total-tokens-kpi-metrics.d.ts.map +1 -0
  244. package/dist/hooks/metrics/use-trace-volume-metrics.d.ts +17 -0
  245. package/dist/hooks/metrics/use-trace-volume-metrics.d.ts.map +1 -0
  246. package/dist/hooks/processors/index.cjs +43 -0
  247. package/dist/hooks/processors/index.cjs.map +1 -0
  248. package/dist/hooks/processors/index.d.ts +2 -0
  249. package/dist/hooks/processors/index.d.ts.map +1 -0
  250. package/dist/hooks/processors/index.js +40 -0
  251. package/dist/hooks/processors/index.js.map +1 -0
  252. package/dist/hooks/processors/use-processors.d.ts +64 -0
  253. package/dist/hooks/processors/use-processors.d.ts.map +1 -0
  254. package/dist/hooks/prompt-blocks/index.cjs +181 -0
  255. package/dist/hooks/prompt-blocks/index.cjs.map +1 -0
  256. package/dist/hooks/prompt-blocks/index.d.ts +3 -0
  257. package/dist/hooks/prompt-blocks/index.d.ts.map +1 -0
  258. package/dist/hooks/prompt-blocks/index.js +172 -0
  259. package/dist/hooks/prompt-blocks/index.js.map +1 -0
  260. package/dist/hooks/prompt-blocks/use-prompt-block-versions.d.ts +59 -0
  261. package/dist/hooks/prompt-blocks/use-prompt-block-versions.d.ts.map +1 -0
  262. package/dist/hooks/prompt-blocks/use-stored-prompt-blocks.d.ts +180 -0
  263. package/dist/hooks/prompt-blocks/use-stored-prompt-blocks.d.ts.map +1 -0
  264. package/dist/hooks/query/index.cjs +34 -0
  265. package/dist/hooks/query/index.cjs.map +1 -0
  266. package/dist/hooks/query/index.d.ts +4 -0
  267. package/dist/hooks/query/index.d.ts.map +1 -0
  268. package/dist/hooks/query/index.js +25 -0
  269. package/dist/hooks/query/index.js.map +1 -0
  270. package/dist/hooks/query/query-client-provider.d.ts +8 -0
  271. package/dist/hooks/query/query-client-provider.d.ts.map +1 -0
  272. package/dist/hooks/query/query-utils.d.ts +48 -0
  273. package/dist/hooks/query/query-utils.d.ts.map +1 -0
  274. package/dist/hooks/review/index.cjs +89 -0
  275. package/dist/hooks/review/index.cjs.map +1 -0
  276. package/dist/hooks/review/index.d.ts +4 -0
  277. package/dist/hooks/review/index.d.ts.map +1 -0
  278. package/dist/hooks/review/index.js +86 -0
  279. package/dist/hooks/review/index.js.map +1 -0
  280. package/dist/hooks/review/types.d.ts +21 -0
  281. package/dist/hooks/review/types.d.ts.map +1 -0
  282. package/dist/hooks/review/use-dataset-review-items.d.ts +19 -0
  283. package/dist/hooks/review/use-dataset-review-items.d.ts.map +1 -0
  284. package/dist/hooks/review/use-review-summary.d.ts +9 -0
  285. package/dist/hooks/review/use-review-summary.d.ts.map +1 -0
  286. package/dist/hooks/schedules/index.cjs +110 -0
  287. package/dist/hooks/schedules/index.cjs.map +1 -0
  288. package/dist/hooks/schedules/index.d.ts +5 -0
  289. package/dist/hooks/schedules/index.d.ts.map +1 -0
  290. package/dist/hooks/schedules/index.js +106 -0
  291. package/dist/hooks/schedules/index.js.map +1 -0
  292. package/dist/hooks/schedules/use-schedule-triggers.d.ts +18 -0
  293. package/dist/hooks/schedules/use-schedule-triggers.d.ts.map +1 -0
  294. package/dist/hooks/schedules/use-schedule.d.ts +11 -0
  295. package/dist/hooks/schedules/use-schedule.d.ts.map +1 -0
  296. package/dist/hooks/schedules/use-schedules.d.ts +7 -0
  297. package/dist/hooks/schedules/use-schedules.d.ts.map +1 -0
  298. package/dist/hooks/schedules/use-toggle-schedule.d.ts +13 -0
  299. package/dist/hooks/schedules/use-toggle-schedule.d.ts.map +1 -0
  300. package/dist/hooks/scores/index.cjs +339 -0
  301. package/dist/hooks/scores/index.cjs.map +1 -0
  302. package/dist/hooks/scores/index.d.ts +6 -0
  303. package/dist/hooks/scores/index.d.ts.map +1 -0
  304. package/dist/hooks/scores/index.js +323 -0
  305. package/dist/hooks/scores/index.js.map +1 -0
  306. package/dist/hooks/scores/use-scorer-versions.d.ts +71 -0
  307. package/dist/hooks/scores/use-scorer-versions.d.ts.map +1 -0
  308. package/dist/hooks/scores/use-scorers.d.ts +34 -0
  309. package/dist/hooks/scores/use-scorers.d.ts.map +1 -0
  310. package/dist/hooks/scores/use-stored-scorers.d.ts +151 -0
  311. package/dist/hooks/scores/use-stored-scorers.d.ts.map +1 -0
  312. package/dist/hooks/scores/use-trace-span-scores.d.ts +20 -0
  313. package/dist/hooks/scores/use-trace-span-scores.d.ts.map +1 -0
  314. package/dist/hooks/scores/use-trigger-scorer.d.ts +17 -0
  315. package/dist/hooks/scores/use-trigger-scorer.d.ts.map +1 -0
  316. package/dist/hooks/shared/cost.d.ts +7 -0
  317. package/dist/hooks/shared/cost.d.ts.map +1 -0
  318. package/dist/hooks/shared/date-format.d.ts +30 -0
  319. package/dist/hooks/shared/date-format.d.ts.map +1 -0
  320. package/dist/hooks/shared/map.d.ts +2 -0
  321. package/dist/hooks/shared/map.d.ts.map +1 -0
  322. package/dist/hooks/shared/query-options.d.ts +19 -0
  323. package/dist/hooks/shared/query-options.d.ts.map +1 -0
  324. package/dist/hooks/shared/use-in-view.d.ts +23 -0
  325. package/dist/hooks/shared/use-in-view.d.ts.map +1 -0
  326. package/dist/hooks/templates/index.cjs +464 -0
  327. package/dist/hooks/templates/index.cjs.map +1 -0
  328. package/dist/hooks/templates/index.d.ts +2 -0
  329. package/dist/hooks/templates/index.d.ts.map +1 -0
  330. package/dist/hooks/templates/index.js +456 -0
  331. package/dist/hooks/templates/index.js.map +1 -0
  332. package/dist/hooks/templates/use-templates.d.ts +139 -0
  333. package/dist/hooks/templates/use-templates.d.ts.map +1 -0
  334. package/dist/hooks/tool-providers/index.cjs +342 -0
  335. package/dist/hooks/tool-providers/index.cjs.map +1 -0
  336. package/dist/hooks/tool-providers/index.d.ts +10 -0
  337. package/dist/hooks/tool-providers/index.d.ts.map +1 -0
  338. package/dist/hooks/tool-providers/index.js +332 -0
  339. package/dist/hooks/tool-providers/index.js.map +1 -0
  340. package/dist/hooks/tool-providers/use-all-connections.d.ts +41 -0
  341. package/dist/hooks/tool-providers/use-all-connections.d.ts.map +1 -0
  342. package/dist/hooks/tool-providers/use-all-provider-tools.d.ts +25 -0
  343. package/dist/hooks/tool-providers/use-all-provider-tools.d.ts.map +1 -0
  344. package/dist/hooks/tool-providers/use-authorize.d.ts +45 -0
  345. package/dist/hooks/tool-providers/use-authorize.d.ts.map +1 -0
  346. package/dist/hooks/tool-providers/use-disconnect-connection.d.ts +24 -0
  347. package/dist/hooks/tool-providers/use-disconnect-connection.d.ts.map +1 -0
  348. package/dist/hooks/tool-providers/use-existing-connections.d.ts +33 -0
  349. package/dist/hooks/tool-providers/use-existing-connections.d.ts.map +1 -0
  350. package/dist/hooks/tool-providers/use-provider-tools.d.ts +17 -0
  351. package/dist/hooks/tool-providers/use-provider-tools.d.ts.map +1 -0
  352. package/dist/hooks/tool-providers/use-tool-providers.d.ts +23 -0
  353. package/dist/hooks/tool-providers/use-tool-providers.d.ts.map +1 -0
  354. package/dist/hooks/tool-providers/use-toolkits.d.ts +13 -0
  355. package/dist/hooks/tool-providers/use-toolkits.d.ts.map +1 -0
  356. package/dist/hooks/tool-providers/use-update-connection.d.ts +24 -0
  357. package/dist/hooks/tool-providers/use-update-connection.d.ts.map +1 -0
  358. package/dist/hooks/tools/index.cjs +49 -0
  359. package/dist/hooks/tools/index.cjs.map +1 -0
  360. package/dist/hooks/tools/index.d.ts +3 -0
  361. package/dist/hooks/tools/index.d.ts.map +1 -0
  362. package/dist/hooks/tools/index.js +46 -0
  363. package/dist/hooks/tools/index.js.map +1 -0
  364. package/dist/hooks/tools/use-all-tools.d.ts +16 -0
  365. package/dist/hooks/tools/use-all-tools.d.ts.map +1 -0
  366. package/dist/hooks/tools/use-execute-tool.d.ts +13 -0
  367. package/dist/hooks/tools/use-execute-tool.d.ts.map +1 -0
  368. package/dist/hooks/traces/discovery-cache.d.ts +12 -0
  369. package/dist/hooks/traces/discovery-cache.d.ts.map +1 -0
  370. package/dist/hooks/traces/index.cjs +1168 -0
  371. package/dist/hooks/traces/index.cjs.map +1 -0
  372. package/dist/hooks/traces/index.d.ts +22 -0
  373. package/dist/hooks/traces/index.d.ts.map +1 -0
  374. package/dist/hooks/traces/index.js +1129 -0
  375. package/dist/hooks/traces/index.js.map +1 -0
  376. package/dist/hooks/traces/types.d.ts +20 -0
  377. package/dist/hooks/traces/types.d.ts.map +1 -0
  378. package/dist/hooks/traces/use-branch.d.ts +18 -0
  379. package/dist/hooks/traces/use-branch.d.ts.map +1 -0
  380. package/dist/hooks/traces/use-create-feedback.d.ts +21 -0
  381. package/dist/hooks/traces/use-create-feedback.d.ts.map +1 -0
  382. package/dist/hooks/traces/use-delete-feedback.d.ts +21 -0
  383. package/dist/hooks/traces/use-delete-feedback.d.ts.map +1 -0
  384. package/dist/hooks/traces/use-entity-names.d.ts +14 -0
  385. package/dist/hooks/traces/use-entity-names.d.ts.map +1 -0
  386. package/dist/hooks/traces/use-environments.d.ts +10 -0
  387. package/dist/hooks/traces/use-environments.d.ts.map +1 -0
  388. package/dist/hooks/traces/use-service-names.d.ts +10 -0
  389. package/dist/hooks/traces/use-service-names.d.ts.map +1 -0
  390. package/dist/hooks/traces/use-span-detail.d.ts +14 -0
  391. package/dist/hooks/traces/use-span-detail.d.ts.map +1 -0
  392. package/dist/hooks/traces/use-span-feedback.d.ts +19 -0
  393. package/dist/hooks/traces/use-span-feedback.d.ts.map +1 -0
  394. package/dist/hooks/traces/use-tags.d.ts +10 -0
  395. package/dist/hooks/traces/use-tags.d.ts.map +1 -0
  396. package/dist/hooks/traces/use-thread-has-other-traces.d.ts +17 -0
  397. package/dist/hooks/traces/use-thread-has-other-traces.d.ts.map +1 -0
  398. package/dist/hooks/traces/use-trace-column-preferences-storage-key.d.ts +6 -0
  399. package/dist/hooks/traces/use-trace-column-preferences-storage-key.d.ts.map +1 -0
  400. package/dist/hooks/traces/use-trace-feedback.d.ts +16 -0
  401. package/dist/hooks/traces/use-trace-feedback.d.ts.map +1 -0
  402. package/dist/hooks/traces/use-trace-light-spans.d.ts +16 -0
  403. package/dist/hooks/traces/use-trace-light-spans.d.ts.map +1 -0
  404. package/dist/hooks/traces/use-trace-metadata-filter-fields.d.ts +36 -0
  405. package/dist/hooks/traces/use-trace-metadata-filter-fields.d.ts.map +1 -0
  406. package/dist/hooks/traces/use-trace-or-branch-spans.d.ts +39 -0
  407. package/dist/hooks/traces/use-trace-or-branch-spans.d.ts.map +1 -0
  408. package/dist/hooks/traces/use-trace-query.d.ts +57 -0
  409. package/dist/hooks/traces/use-trace-query.d.ts.map +1 -0
  410. package/dist/hooks/traces/use-trace-spans.d.ts +46 -0
  411. package/dist/hooks/traces/use-trace-spans.d.ts.map +1 -0
  412. package/dist/hooks/traces/use-trace-usage.d.ts +10 -0
  413. package/dist/hooks/traces/use-trace-usage.d.ts.map +1 -0
  414. package/dist/hooks/traces/use-traces.d.ts +292 -0
  415. package/dist/hooks/traces/use-traces.d.ts.map +1 -0
  416. package/dist/hooks/vectors/index.cjs +19 -0
  417. package/dist/hooks/vectors/index.cjs.map +1 -0
  418. package/dist/hooks/vectors/index.d.ts +2 -0
  419. package/dist/hooks/vectors/index.d.ts.map +1 -0
  420. package/dist/hooks/vectors/index.js +18 -0
  421. package/dist/hooks/vectors/index.js.map +1 -0
  422. package/dist/hooks/vectors/use-vectors.d.ts +14 -0
  423. package/dist/hooks/vectors/use-vectors.d.ts.map +1 -0
  424. package/dist/hooks/voice/index.cjs +87 -0
  425. package/dist/hooks/voice/index.cjs.map +1 -0
  426. package/dist/hooks/voice/index.d.ts +2 -0
  427. package/dist/hooks/voice/index.d.ts.map +1 -0
  428. package/dist/hooks/voice/index.js +86 -0
  429. package/dist/hooks/voice/index.js.map +1 -0
  430. package/dist/hooks/voice/use-read-aloud.d.ts +20 -0
  431. package/dist/hooks/voice/use-read-aloud.d.ts.map +1 -0
  432. package/dist/hooks/workflows/index.cjs +173 -0
  433. package/dist/hooks/workflows/index.cjs.map +1 -0
  434. package/dist/hooks/workflows/index.d.ts +7 -0
  435. package/dist/hooks/workflows/index.d.ts.map +1 -0
  436. package/dist/hooks/workflows/index.js +157 -0
  437. package/dist/hooks/workflows/index.js.map +1 -0
  438. package/dist/hooks/workflows/use-workflow-runs.d.ts +51 -0
  439. package/dist/hooks/workflows/use-workflow-runs.d.ts.map +1 -0
  440. package/dist/hooks/workflows/use-workflow.d.ts +14 -0
  441. package/dist/hooks/workflows/use-workflow.d.ts.map +1 -0
  442. package/dist/hooks/workflows/use-workflows-run-counts.d.ts +25 -0
  443. package/dist/hooks/workflows/use-workflows-run-counts.d.ts.map +1 -0
  444. package/dist/hooks/workflows/use-workflows.d.ts +10 -0
  445. package/dist/hooks/workflows/use-workflows.d.ts.map +1 -0
  446. package/dist/hooks/workspace/client-utils.d.ts +5 -0
  447. package/dist/hooks/workspace/client-utils.d.ts.map +1 -0
  448. package/dist/hooks/workspace/compatibility.d.ts +22 -0
  449. package/dist/hooks/workspace/compatibility.d.ts.map +1 -0
  450. package/dist/hooks/workspace/file-type.d.ts +7 -0
  451. package/dist/hooks/workspace/file-type.d.ts.map +1 -0
  452. package/dist/hooks/workspace/index.cjs +624 -0
  453. package/dist/hooks/workspace/index.cjs.map +1 -0
  454. package/dist/hooks/workspace/index.d.ts +11 -0
  455. package/dist/hooks/workspace/index.d.ts.map +1 -0
  456. package/dist/hooks/workspace/index.js +594 -0
  457. package/dist/hooks/workspace/index.js.map +1 -0
  458. package/dist/hooks/workspace/types.d.ts +199 -0
  459. package/dist/hooks/workspace/types.d.ts.map +1 -0
  460. package/dist/hooks/workspace/use-skills-sh.d.ts +104 -0
  461. package/dist/hooks/workspace/use-skills-sh.d.ts.map +1 -0
  462. package/dist/hooks/workspace/use-stored-workspaces.d.ts +12 -0
  463. package/dist/hooks/workspace/use-stored-workspaces.d.ts.map +1 -0
  464. package/dist/hooks/workspace/use-workspace-directory.d.ts +13 -0
  465. package/dist/hooks/workspace/use-workspace-directory.d.ts.map +1 -0
  466. package/dist/hooks/workspace/use-workspace-file-content.d.ts +15 -0
  467. package/dist/hooks/workspace/use-workspace-file-content.d.ts.map +1 -0
  468. package/dist/hooks/workspace/use-workspace-search.d.ts +20 -0
  469. package/dist/hooks/workspace/use-workspace-search.d.ts.map +1 -0
  470. package/dist/hooks/workspace/use-workspace-skills.d.ts +23 -0
  471. package/dist/hooks/workspace/use-workspace-skills.d.ts.map +1 -0
  472. package/dist/hooks/workspace/use-workspace.d.ts +56 -0
  473. package/dist/hooks/workspace/use-workspace.d.ts.map +1 -0
  474. package/dist/hooks-BFQK_s4g.js +1231 -0
  475. package/dist/hooks-BFQK_s4g.js.map +1 -0
  476. package/dist/hooks-CMjizg6y.cjs +1248 -0
  477. package/dist/hooks-CMjizg6y.cjs.map +1 -0
  478. package/dist/hooks-CjULNHpJ.js +252 -0
  479. package/dist/hooks-CjULNHpJ.js.map +1 -0
  480. package/dist/hooks-DsDYaJ3T.cjs +269 -0
  481. package/dist/hooks-DsDYaJ3T.cjs.map +1 -0
  482. package/dist/index.cjs +21 -3434
  483. package/dist/index.cjs.map +1 -1
  484. package/dist/index.d.ts +1 -0
  485. package/dist/index.d.ts.map +1 -1
  486. package/dist/index.js +6 -3419
  487. package/dist/index.js.map +1 -1
  488. package/dist/lib/mastra-db/fromCoreUserMessage.d.ts +3 -4
  489. package/dist/lib/mastra-db/fromCoreUserMessage.d.ts.map +1 -1
  490. package/dist/map-CDv4fbu4.js +12 -0
  491. package/dist/map-CDv4fbu4.js.map +1 -0
  492. package/dist/map-wjmL1y5O.cjs +17 -0
  493. package/dist/map-wjmL1y5O.cjs.map +1 -0
  494. package/dist/mastra-client-context-Bx_g84YB.js +50 -0
  495. package/dist/mastra-client-context-Bx_g84YB.js.map +1 -0
  496. package/dist/mastra-client-context-DzX3f0RF.cjs +61 -0
  497. package/dist/mastra-client-context-DzX3f0RF.cjs.map +1 -0
  498. package/dist/query-utils-CcrChYgz.cjs +174 -0
  499. package/dist/query-utils-CcrChYgz.cjs.map +1 -0
  500. package/dist/query-utils-D1NgFnWU.js +127 -0
  501. package/dist/query-utils-D1NgFnWU.js.map +1 -0
  502. package/dist/use-in-view-B6eJO9Zi.cjs +37 -0
  503. package/dist/use-in-view-B6eJO9Zi.cjs.map +1 -0
  504. package/dist/use-in-view-C9sYPGRm.js +32 -0
  505. package/dist/use-in-view-C9sYPGRm.js.map +1 -0
  506. package/dist/voice-BOtUdMi8.cjs +281 -0
  507. package/dist/voice-BOtUdMi8.cjs.map +1 -0
  508. package/dist/voice-DgirjEyH.js +264 -0
  509. package/dist/voice-DgirjEyH.js.map +1 -0
  510. package/package.json +33 -4
@@ -0,0 +1,2044 @@
1
+ import type { StoredAgentResponse, StoredWorkspaceRef } from '@mastra/client-js';
2
+ import type { MastraMutationOptions } from '../shared/query-options.js';
3
+ /**
4
+ * Hook to read and mutate the workspace reference for a stored agent.
5
+ *
6
+ * The workspace ref is part of the agent snapshot config and can be:
7
+ * - `{ type: 'id', workspaceId }` — references a stored workspace by ID
8
+ * - `{ type: 'inline', config }` — inline workspace config
9
+ * - `undefined` — no workspace assigned
10
+ */
11
+ export declare function useAgentWorkspace({ agentId, requestContext, queryOptions, }?: {
12
+ agentId?: string;
13
+ requestContext?: Record<string, any>;
14
+ queryOptions?: {
15
+ updateWorkspace?: MastraMutationOptions<StoredAgentResponse, StoredWorkspaceRef | undefined>;
16
+ };
17
+ }): {
18
+ workspace: StoredWorkspaceRef | undefined;
19
+ updateWorkspace: import("@tanstack/react-query").UseMutationResult<{
20
+ id: string;
21
+ status: string;
22
+ activeVersionId?: string | undefined;
23
+ authorId?: string | undefined;
24
+ author?: {
25
+ id: string;
26
+ name?: string | undefined;
27
+ email?: string | undefined;
28
+ avatarUrl?: string | undefined;
29
+ } | undefined;
30
+ metadata?: {
31
+ [key: string]: unknown;
32
+ } | undefined;
33
+ visibility?: ('private' | 'public') | undefined;
34
+ favoriteCount?: number | undefined;
35
+ isFavorited?: boolean | undefined;
36
+ createdAt: string;
37
+ updatedAt: string;
38
+ name: string;
39
+ description?: string | undefined;
40
+ instructions: string | ({
41
+ type: 'text';
42
+ content: string;
43
+ } | {
44
+ type: 'prompt_block_ref';
45
+ id: string;
46
+ rules?: {
47
+ operator: 'AND' | 'OR';
48
+ conditions: ({
49
+ field: string;
50
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
51
+ value?: unknown | undefined;
52
+ } | {
53
+ operator: 'AND' | 'OR';
54
+ conditions: ({
55
+ field: string;
56
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
57
+ value?: unknown | undefined;
58
+ } | {
59
+ operator: 'AND' | 'OR';
60
+ conditions: {
61
+ field: string;
62
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
63
+ value?: unknown | undefined;
64
+ }[];
65
+ })[];
66
+ })[];
67
+ } | undefined;
68
+ } | {
69
+ type: 'prompt_block';
70
+ content: string;
71
+ rules?: {
72
+ operator: 'AND' | 'OR';
73
+ conditions: ({
74
+ field: string;
75
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
76
+ value?: unknown | undefined;
77
+ } | {
78
+ operator: 'AND' | 'OR';
79
+ conditions: ({
80
+ field: string;
81
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
82
+ value?: unknown | undefined;
83
+ } | {
84
+ operator: 'AND' | 'OR';
85
+ conditions: {
86
+ field: string;
87
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
88
+ value?: unknown | undefined;
89
+ }[];
90
+ })[];
91
+ })[];
92
+ } | undefined;
93
+ })[];
94
+ model: {
95
+ [x: string]: unknown;
96
+ provider: string;
97
+ name: string;
98
+ } | {
99
+ value: {
100
+ [x: string]: unknown;
101
+ provider: string;
102
+ name: string;
103
+ };
104
+ rules?: {
105
+ operator: 'AND' | 'OR';
106
+ conditions: ({
107
+ field: string;
108
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
109
+ value?: unknown | undefined;
110
+ } | {
111
+ operator: 'AND' | 'OR';
112
+ conditions: ({
113
+ field: string;
114
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
115
+ value?: unknown | undefined;
116
+ } | {
117
+ operator: 'AND' | 'OR';
118
+ conditions: {
119
+ field: string;
120
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
121
+ value?: unknown | undefined;
122
+ }[];
123
+ })[];
124
+ })[];
125
+ } | undefined;
126
+ }[];
127
+ tools?: ({
128
+ [key: string]: {
129
+ description?: string | undefined;
130
+ rules?: {
131
+ operator: 'AND' | 'OR';
132
+ conditions: ({
133
+ field: string;
134
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
135
+ value?: unknown | undefined;
136
+ } | {
137
+ operator: 'AND' | 'OR';
138
+ conditions: ({
139
+ field: string;
140
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
141
+ value?: unknown | undefined;
142
+ } | {
143
+ operator: 'AND' | 'OR';
144
+ conditions: {
145
+ field: string;
146
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
147
+ value?: unknown | undefined;
148
+ }[];
149
+ })[];
150
+ })[];
151
+ } | undefined;
152
+ };
153
+ } | {
154
+ value: {
155
+ [key: string]: {
156
+ description?: string | undefined;
157
+ rules?: {
158
+ operator: 'AND' | 'OR';
159
+ conditions: ({
160
+ field: string;
161
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
162
+ value?: unknown | undefined;
163
+ } | {
164
+ operator: 'AND' | 'OR';
165
+ conditions: ({
166
+ field: string;
167
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
168
+ value?: unknown | undefined;
169
+ } | {
170
+ operator: 'AND' | 'OR';
171
+ conditions: {
172
+ field: string;
173
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
174
+ value?: unknown | undefined;
175
+ }[];
176
+ })[];
177
+ })[];
178
+ } | undefined;
179
+ };
180
+ };
181
+ rules?: {
182
+ operator: 'AND' | 'OR';
183
+ conditions: ({
184
+ field: string;
185
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
186
+ value?: unknown | undefined;
187
+ } | {
188
+ operator: 'AND' | 'OR';
189
+ conditions: ({
190
+ field: string;
191
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
192
+ value?: unknown | undefined;
193
+ } | {
194
+ operator: 'AND' | 'OR';
195
+ conditions: {
196
+ field: string;
197
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
198
+ value?: unknown | undefined;
199
+ }[];
200
+ })[];
201
+ })[];
202
+ } | undefined;
203
+ }[]) | undefined;
204
+ defaultOptions?: ({
205
+ [x: string]: unknown;
206
+ runId?: string | undefined;
207
+ savePerStep?: boolean | undefined;
208
+ maxSteps?: number | undefined;
209
+ activeTools?: string[] | undefined;
210
+ maxProcessorRetries?: number | undefined;
211
+ toolChoice?: ('auto' | 'none' | 'required' | {
212
+ type: 'tool';
213
+ toolName: string;
214
+ }) | undefined;
215
+ modelSettings?: {
216
+ temperature?: number | undefined;
217
+ maxTokens?: number | undefined;
218
+ topP?: number | undefined;
219
+ topK?: number | undefined;
220
+ frequencyPenalty?: number | undefined;
221
+ presencePenalty?: number | undefined;
222
+ stopSequences?: string[] | undefined;
223
+ seed?: number | undefined;
224
+ maxRetries?: number | undefined;
225
+ } | undefined;
226
+ returnScorerData?: boolean | undefined;
227
+ tracingOptions?: {
228
+ traceName?: string | undefined;
229
+ attributes?: {
230
+ [key: string]: unknown;
231
+ } | undefined;
232
+ spanId?: string | undefined;
233
+ traceId?: string | undefined;
234
+ } | undefined;
235
+ requireToolApproval?: boolean | undefined;
236
+ autoResumeSuspendedTools?: boolean | undefined;
237
+ eagerToolExecution?: boolean | undefined;
238
+ toolCallConcurrency?: (number | {
239
+ limit?: number | undefined;
240
+ strategy?: ('available' | 'called') | undefined;
241
+ }) | undefined;
242
+ includeRawChunks?: boolean | undefined;
243
+ } | {
244
+ value: {
245
+ [x: string]: unknown;
246
+ runId?: string | undefined;
247
+ savePerStep?: boolean | undefined;
248
+ maxSteps?: number | undefined;
249
+ activeTools?: string[] | undefined;
250
+ maxProcessorRetries?: number | undefined;
251
+ toolChoice?: ('auto' | 'none' | 'required' | {
252
+ type: 'tool';
253
+ toolName: string;
254
+ }) | undefined;
255
+ modelSettings?: {
256
+ temperature?: number | undefined;
257
+ maxTokens?: number | undefined;
258
+ topP?: number | undefined;
259
+ topK?: number | undefined;
260
+ frequencyPenalty?: number | undefined;
261
+ presencePenalty?: number | undefined;
262
+ stopSequences?: string[] | undefined;
263
+ seed?: number | undefined;
264
+ maxRetries?: number | undefined;
265
+ } | undefined;
266
+ returnScorerData?: boolean | undefined;
267
+ tracingOptions?: {
268
+ traceName?: string | undefined;
269
+ attributes?: {
270
+ [key: string]: unknown;
271
+ } | undefined;
272
+ spanId?: string | undefined;
273
+ traceId?: string | undefined;
274
+ } | undefined;
275
+ requireToolApproval?: boolean | undefined;
276
+ autoResumeSuspendedTools?: boolean | undefined;
277
+ eagerToolExecution?: boolean | undefined;
278
+ toolCallConcurrency?: (number | {
279
+ limit?: number | undefined;
280
+ strategy?: ('available' | 'called') | undefined;
281
+ }) | undefined;
282
+ includeRawChunks?: boolean | undefined;
283
+ };
284
+ rules?: {
285
+ operator: 'AND' | 'OR';
286
+ conditions: ({
287
+ field: string;
288
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
289
+ value?: unknown | undefined;
290
+ } | {
291
+ operator: 'AND' | 'OR';
292
+ conditions: ({
293
+ field: string;
294
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
295
+ value?: unknown | undefined;
296
+ } | {
297
+ operator: 'AND' | 'OR';
298
+ conditions: {
299
+ field: string;
300
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
301
+ value?: unknown | undefined;
302
+ }[];
303
+ })[];
304
+ })[];
305
+ } | undefined;
306
+ }[]) | undefined;
307
+ workflows?: ({
308
+ [key: string]: {
309
+ description?: string | undefined;
310
+ rules?: {
311
+ operator: 'AND' | 'OR';
312
+ conditions: ({
313
+ field: string;
314
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
315
+ value?: unknown | undefined;
316
+ } | {
317
+ operator: 'AND' | 'OR';
318
+ conditions: ({
319
+ field: string;
320
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
321
+ value?: unknown | undefined;
322
+ } | {
323
+ operator: 'AND' | 'OR';
324
+ conditions: {
325
+ field: string;
326
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
327
+ value?: unknown | undefined;
328
+ }[];
329
+ })[];
330
+ })[];
331
+ } | undefined;
332
+ };
333
+ } | {
334
+ value: {
335
+ [key: string]: {
336
+ description?: string | undefined;
337
+ rules?: {
338
+ operator: 'AND' | 'OR';
339
+ conditions: ({
340
+ field: string;
341
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
342
+ value?: unknown | undefined;
343
+ } | {
344
+ operator: 'AND' | 'OR';
345
+ conditions: ({
346
+ field: string;
347
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
348
+ value?: unknown | undefined;
349
+ } | {
350
+ operator: 'AND' | 'OR';
351
+ conditions: {
352
+ field: string;
353
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
354
+ value?: unknown | undefined;
355
+ }[];
356
+ })[];
357
+ })[];
358
+ } | undefined;
359
+ };
360
+ };
361
+ rules?: {
362
+ operator: 'AND' | 'OR';
363
+ conditions: ({
364
+ field: string;
365
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
366
+ value?: unknown | undefined;
367
+ } | {
368
+ operator: 'AND' | 'OR';
369
+ conditions: ({
370
+ field: string;
371
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
372
+ value?: unknown | undefined;
373
+ } | {
374
+ operator: 'AND' | 'OR';
375
+ conditions: {
376
+ field: string;
377
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
378
+ value?: unknown | undefined;
379
+ }[];
380
+ })[];
381
+ })[];
382
+ } | undefined;
383
+ }[]) | undefined;
384
+ agents?: ({
385
+ [key: string]: {
386
+ description?: string | undefined;
387
+ rules?: {
388
+ operator: 'AND' | 'OR';
389
+ conditions: ({
390
+ field: string;
391
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
392
+ value?: unknown | undefined;
393
+ } | {
394
+ operator: 'AND' | 'OR';
395
+ conditions: ({
396
+ field: string;
397
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
398
+ value?: unknown | undefined;
399
+ } | {
400
+ operator: 'AND' | 'OR';
401
+ conditions: {
402
+ field: string;
403
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
404
+ value?: unknown | undefined;
405
+ }[];
406
+ })[];
407
+ })[];
408
+ } | undefined;
409
+ };
410
+ } | {
411
+ value: {
412
+ [key: string]: {
413
+ description?: string | undefined;
414
+ rules?: {
415
+ operator: 'AND' | 'OR';
416
+ conditions: ({
417
+ field: string;
418
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
419
+ value?: unknown | undefined;
420
+ } | {
421
+ operator: 'AND' | 'OR';
422
+ conditions: ({
423
+ field: string;
424
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
425
+ value?: unknown | undefined;
426
+ } | {
427
+ operator: 'AND' | 'OR';
428
+ conditions: {
429
+ field: string;
430
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
431
+ value?: unknown | undefined;
432
+ }[];
433
+ })[];
434
+ })[];
435
+ } | undefined;
436
+ };
437
+ };
438
+ rules?: {
439
+ operator: 'AND' | 'OR';
440
+ conditions: ({
441
+ field: string;
442
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
443
+ value?: unknown | undefined;
444
+ } | {
445
+ operator: 'AND' | 'OR';
446
+ conditions: ({
447
+ field: string;
448
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
449
+ value?: unknown | undefined;
450
+ } | {
451
+ operator: 'AND' | 'OR';
452
+ conditions: {
453
+ field: string;
454
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
455
+ value?: unknown | undefined;
456
+ }[];
457
+ })[];
458
+ })[];
459
+ } | undefined;
460
+ }[]) | undefined;
461
+ integrationTools?: ({
462
+ [key: string]: {
463
+ tools?: {
464
+ [key: string]: {
465
+ description?: string | undefined;
466
+ rules?: {
467
+ operator: 'AND' | 'OR';
468
+ conditions: ({
469
+ field: string;
470
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
471
+ value?: unknown | undefined;
472
+ } | {
473
+ operator: 'AND' | 'OR';
474
+ conditions: ({
475
+ field: string;
476
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
477
+ value?: unknown | undefined;
478
+ } | {
479
+ operator: 'AND' | 'OR';
480
+ conditions: {
481
+ field: string;
482
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
483
+ value?: unknown | undefined;
484
+ }[];
485
+ })[];
486
+ })[];
487
+ } | undefined;
488
+ };
489
+ } | undefined;
490
+ };
491
+ } | {
492
+ value: {
493
+ [key: string]: {
494
+ tools?: {
495
+ [key: string]: {
496
+ description?: string | undefined;
497
+ rules?: {
498
+ operator: 'AND' | 'OR';
499
+ conditions: ({
500
+ field: string;
501
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
502
+ value?: unknown | undefined;
503
+ } | {
504
+ operator: 'AND' | 'OR';
505
+ conditions: ({
506
+ field: string;
507
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
508
+ value?: unknown | undefined;
509
+ } | {
510
+ operator: 'AND' | 'OR';
511
+ conditions: {
512
+ field: string;
513
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
514
+ value?: unknown | undefined;
515
+ }[];
516
+ })[];
517
+ })[];
518
+ } | undefined;
519
+ };
520
+ } | undefined;
521
+ };
522
+ };
523
+ rules?: {
524
+ operator: 'AND' | 'OR';
525
+ conditions: ({
526
+ field: string;
527
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
528
+ value?: unknown | undefined;
529
+ } | {
530
+ operator: 'AND' | 'OR';
531
+ conditions: ({
532
+ field: string;
533
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
534
+ value?: unknown | undefined;
535
+ } | {
536
+ operator: 'AND' | 'OR';
537
+ conditions: {
538
+ field: string;
539
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
540
+ value?: unknown | undefined;
541
+ }[];
542
+ })[];
543
+ })[];
544
+ } | undefined;
545
+ }[]) | undefined;
546
+ toolProviders?: ({
547
+ [key: string]: {
548
+ tools: {
549
+ [key: string]: {
550
+ toolkit?: string | undefined;
551
+ description?: string | undefined;
552
+ };
553
+ };
554
+ connections: {
555
+ [key: string]: {
556
+ kind: 'author' | 'invoker' | 'platform';
557
+ toolkit: string;
558
+ connectionId: string;
559
+ label?: string | undefined;
560
+ scope?: ('shared' | 'per-author' | 'caller-supplied') | undefined;
561
+ }[];
562
+ };
563
+ };
564
+ } | {
565
+ value: {
566
+ [key: string]: {
567
+ tools: {
568
+ [key: string]: {
569
+ toolkit?: string | undefined;
570
+ description?: string | undefined;
571
+ };
572
+ };
573
+ connections: {
574
+ [key: string]: {
575
+ kind: 'author' | 'invoker' | 'platform';
576
+ toolkit: string;
577
+ connectionId: string;
578
+ label?: string | undefined;
579
+ scope?: ('shared' | 'per-author' | 'caller-supplied') | undefined;
580
+ }[];
581
+ };
582
+ };
583
+ };
584
+ rules?: {
585
+ operator: 'AND' | 'OR';
586
+ conditions: ({
587
+ field: string;
588
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
589
+ value?: unknown | undefined;
590
+ } | {
591
+ operator: 'AND' | 'OR';
592
+ conditions: ({
593
+ field: string;
594
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
595
+ value?: unknown | undefined;
596
+ } | {
597
+ operator: 'AND' | 'OR';
598
+ conditions: {
599
+ field: string;
600
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
601
+ value?: unknown | undefined;
602
+ }[];
603
+ })[];
604
+ })[];
605
+ } | undefined;
606
+ }[]) | undefined;
607
+ mcpClients?: ({
608
+ [key: string]: {
609
+ tools?: {
610
+ [key: string]: {
611
+ description?: string | undefined;
612
+ rules?: {
613
+ operator: 'AND' | 'OR';
614
+ conditions: ({
615
+ field: string;
616
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
617
+ value?: unknown | undefined;
618
+ } | {
619
+ operator: 'AND' | 'OR';
620
+ conditions: ({
621
+ field: string;
622
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
623
+ value?: unknown | undefined;
624
+ } | {
625
+ operator: 'AND' | 'OR';
626
+ conditions: {
627
+ field: string;
628
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
629
+ value?: unknown | undefined;
630
+ }[];
631
+ })[];
632
+ })[];
633
+ } | undefined;
634
+ };
635
+ } | undefined;
636
+ };
637
+ } | {
638
+ value: {
639
+ [key: string]: {
640
+ tools?: {
641
+ [key: string]: {
642
+ description?: string | undefined;
643
+ rules?: {
644
+ operator: 'AND' | 'OR';
645
+ conditions: ({
646
+ field: string;
647
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
648
+ value?: unknown | undefined;
649
+ } | {
650
+ operator: 'AND' | 'OR';
651
+ conditions: ({
652
+ field: string;
653
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
654
+ value?: unknown | undefined;
655
+ } | {
656
+ operator: 'AND' | 'OR';
657
+ conditions: {
658
+ field: string;
659
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
660
+ value?: unknown | undefined;
661
+ }[];
662
+ })[];
663
+ })[];
664
+ } | undefined;
665
+ };
666
+ } | undefined;
667
+ };
668
+ };
669
+ rules?: {
670
+ operator: 'AND' | 'OR';
671
+ conditions: ({
672
+ field: string;
673
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
674
+ value?: unknown | undefined;
675
+ } | {
676
+ operator: 'AND' | 'OR';
677
+ conditions: ({
678
+ field: string;
679
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
680
+ value?: unknown | undefined;
681
+ } | {
682
+ operator: 'AND' | 'OR';
683
+ conditions: {
684
+ field: string;
685
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
686
+ value?: unknown | undefined;
687
+ }[];
688
+ })[];
689
+ })[];
690
+ } | undefined;
691
+ }[]) | undefined;
692
+ inputProcessors?: ({
693
+ value: {
694
+ steps: ({
695
+ type: 'step';
696
+ step: {
697
+ id: string;
698
+ providerId: string;
699
+ config: {
700
+ [key: string]: unknown;
701
+ };
702
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
703
+ };
704
+ } | {
705
+ type: 'parallel';
706
+ branches: ({
707
+ type: 'conditional';
708
+ conditions: {
709
+ steps: {
710
+ type: 'step';
711
+ step: {
712
+ id: string;
713
+ providerId: string;
714
+ config: {
715
+ [key: string]: unknown;
716
+ };
717
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
718
+ };
719
+ }[];
720
+ rules?: {
721
+ operator: 'AND' | 'OR';
722
+ conditions: ({
723
+ field: string;
724
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
725
+ value?: unknown | undefined;
726
+ } | {
727
+ operator: 'AND' | 'OR';
728
+ conditions: ({
729
+ field: string;
730
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
731
+ value?: unknown | undefined;
732
+ } | {
733
+ operator: 'AND' | 'OR';
734
+ conditions: {
735
+ field: string;
736
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
737
+ value?: unknown | undefined;
738
+ }[];
739
+ })[];
740
+ })[];
741
+ } | undefined;
742
+ }[];
743
+ } | {
744
+ type: 'step';
745
+ step: {
746
+ id: string;
747
+ providerId: string;
748
+ config: {
749
+ [key: string]: unknown;
750
+ };
751
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
752
+ };
753
+ } | {
754
+ type: 'parallel';
755
+ branches: {
756
+ type: 'step';
757
+ step: {
758
+ id: string;
759
+ providerId: string;
760
+ config: {
761
+ [key: string]: unknown;
762
+ };
763
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
764
+ };
765
+ }[][];
766
+ })[][];
767
+ } | {
768
+ type: 'conditional';
769
+ conditions: {
770
+ steps: ({
771
+ type: 'conditional';
772
+ conditions: {
773
+ steps: {
774
+ type: 'step';
775
+ step: {
776
+ id: string;
777
+ providerId: string;
778
+ config: {
779
+ [key: string]: unknown;
780
+ };
781
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
782
+ };
783
+ }[];
784
+ rules?: {
785
+ operator: 'AND' | 'OR';
786
+ conditions: ({
787
+ field: string;
788
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
789
+ value?: unknown | undefined;
790
+ } | {
791
+ operator: 'AND' | 'OR';
792
+ conditions: ({
793
+ field: string;
794
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
795
+ value?: unknown | undefined;
796
+ } | {
797
+ operator: 'AND' | 'OR';
798
+ conditions: {
799
+ field: string;
800
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
801
+ value?: unknown | undefined;
802
+ }[];
803
+ })[];
804
+ })[];
805
+ } | undefined;
806
+ }[];
807
+ } | {
808
+ type: 'step';
809
+ step: {
810
+ id: string;
811
+ providerId: string;
812
+ config: {
813
+ [key: string]: unknown;
814
+ };
815
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
816
+ };
817
+ } | {
818
+ type: 'parallel';
819
+ branches: {
820
+ type: 'step';
821
+ step: {
822
+ id: string;
823
+ providerId: string;
824
+ config: {
825
+ [key: string]: unknown;
826
+ };
827
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
828
+ };
829
+ }[][];
830
+ })[];
831
+ rules?: {
832
+ operator: 'AND' | 'OR';
833
+ conditions: ({
834
+ field: string;
835
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
836
+ value?: unknown | undefined;
837
+ } | {
838
+ operator: 'AND' | 'OR';
839
+ conditions: ({
840
+ field: string;
841
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
842
+ value?: unknown | undefined;
843
+ } | {
844
+ operator: 'AND' | 'OR';
845
+ conditions: {
846
+ field: string;
847
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
848
+ value?: unknown | undefined;
849
+ }[];
850
+ })[];
851
+ })[];
852
+ } | undefined;
853
+ }[];
854
+ })[];
855
+ };
856
+ rules?: {
857
+ operator: 'AND' | 'OR';
858
+ conditions: ({
859
+ field: string;
860
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
861
+ value?: unknown | undefined;
862
+ } | {
863
+ operator: 'AND' | 'OR';
864
+ conditions: ({
865
+ field: string;
866
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
867
+ value?: unknown | undefined;
868
+ } | {
869
+ operator: 'AND' | 'OR';
870
+ conditions: {
871
+ field: string;
872
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
873
+ value?: unknown | undefined;
874
+ }[];
875
+ })[];
876
+ })[];
877
+ } | undefined;
878
+ }[] | {
879
+ steps: ({
880
+ type: 'step';
881
+ step: {
882
+ id: string;
883
+ providerId: string;
884
+ config: {
885
+ [key: string]: unknown;
886
+ };
887
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
888
+ };
889
+ } | {
890
+ type: 'parallel';
891
+ branches: ({
892
+ type: 'conditional';
893
+ conditions: {
894
+ steps: {
895
+ type: 'step';
896
+ step: {
897
+ id: string;
898
+ providerId: string;
899
+ config: {
900
+ [key: string]: unknown;
901
+ };
902
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
903
+ };
904
+ }[];
905
+ rules?: {
906
+ operator: 'AND' | 'OR';
907
+ conditions: ({
908
+ field: string;
909
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
910
+ value?: unknown | undefined;
911
+ } | {
912
+ operator: 'AND' | 'OR';
913
+ conditions: ({
914
+ field: string;
915
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
916
+ value?: unknown | undefined;
917
+ } | {
918
+ operator: 'AND' | 'OR';
919
+ conditions: {
920
+ field: string;
921
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
922
+ value?: unknown | undefined;
923
+ }[];
924
+ })[];
925
+ })[];
926
+ } | undefined;
927
+ }[];
928
+ } | {
929
+ type: 'step';
930
+ step: {
931
+ id: string;
932
+ providerId: string;
933
+ config: {
934
+ [key: string]: unknown;
935
+ };
936
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
937
+ };
938
+ } | {
939
+ type: 'parallel';
940
+ branches: {
941
+ type: 'step';
942
+ step: {
943
+ id: string;
944
+ providerId: string;
945
+ config: {
946
+ [key: string]: unknown;
947
+ };
948
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
949
+ };
950
+ }[][];
951
+ })[][];
952
+ } | {
953
+ type: 'conditional';
954
+ conditions: {
955
+ steps: ({
956
+ type: 'conditional';
957
+ conditions: {
958
+ steps: {
959
+ type: 'step';
960
+ step: {
961
+ id: string;
962
+ providerId: string;
963
+ config: {
964
+ [key: string]: unknown;
965
+ };
966
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
967
+ };
968
+ }[];
969
+ rules?: {
970
+ operator: 'AND' | 'OR';
971
+ conditions: ({
972
+ field: string;
973
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
974
+ value?: unknown | undefined;
975
+ } | {
976
+ operator: 'AND' | 'OR';
977
+ conditions: ({
978
+ field: string;
979
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
980
+ value?: unknown | undefined;
981
+ } | {
982
+ operator: 'AND' | 'OR';
983
+ conditions: {
984
+ field: string;
985
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
986
+ value?: unknown | undefined;
987
+ }[];
988
+ })[];
989
+ })[];
990
+ } | undefined;
991
+ }[];
992
+ } | {
993
+ type: 'step';
994
+ step: {
995
+ id: string;
996
+ providerId: string;
997
+ config: {
998
+ [key: string]: unknown;
999
+ };
1000
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
1001
+ };
1002
+ } | {
1003
+ type: 'parallel';
1004
+ branches: {
1005
+ type: 'step';
1006
+ step: {
1007
+ id: string;
1008
+ providerId: string;
1009
+ config: {
1010
+ [key: string]: unknown;
1011
+ };
1012
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
1013
+ };
1014
+ }[][];
1015
+ })[];
1016
+ rules?: {
1017
+ operator: 'AND' | 'OR';
1018
+ conditions: ({
1019
+ field: string;
1020
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1021
+ value?: unknown | undefined;
1022
+ } | {
1023
+ operator: 'AND' | 'OR';
1024
+ conditions: ({
1025
+ field: string;
1026
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1027
+ value?: unknown | undefined;
1028
+ } | {
1029
+ operator: 'AND' | 'OR';
1030
+ conditions: {
1031
+ field: string;
1032
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1033
+ value?: unknown | undefined;
1034
+ }[];
1035
+ })[];
1036
+ })[];
1037
+ } | undefined;
1038
+ }[];
1039
+ })[];
1040
+ }) | undefined;
1041
+ outputProcessors?: ({
1042
+ value: {
1043
+ steps: ({
1044
+ type: 'step';
1045
+ step: {
1046
+ id: string;
1047
+ providerId: string;
1048
+ config: {
1049
+ [key: string]: unknown;
1050
+ };
1051
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
1052
+ };
1053
+ } | {
1054
+ type: 'parallel';
1055
+ branches: ({
1056
+ type: 'conditional';
1057
+ conditions: {
1058
+ steps: {
1059
+ type: 'step';
1060
+ step: {
1061
+ id: string;
1062
+ providerId: string;
1063
+ config: {
1064
+ [key: string]: unknown;
1065
+ };
1066
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
1067
+ };
1068
+ }[];
1069
+ rules?: {
1070
+ operator: 'AND' | 'OR';
1071
+ conditions: ({
1072
+ field: string;
1073
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1074
+ value?: unknown | undefined;
1075
+ } | {
1076
+ operator: 'AND' | 'OR';
1077
+ conditions: ({
1078
+ field: string;
1079
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1080
+ value?: unknown | undefined;
1081
+ } | {
1082
+ operator: 'AND' | 'OR';
1083
+ conditions: {
1084
+ field: string;
1085
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1086
+ value?: unknown | undefined;
1087
+ }[];
1088
+ })[];
1089
+ })[];
1090
+ } | undefined;
1091
+ }[];
1092
+ } | {
1093
+ type: 'step';
1094
+ step: {
1095
+ id: string;
1096
+ providerId: string;
1097
+ config: {
1098
+ [key: string]: unknown;
1099
+ };
1100
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
1101
+ };
1102
+ } | {
1103
+ type: 'parallel';
1104
+ branches: {
1105
+ type: 'step';
1106
+ step: {
1107
+ id: string;
1108
+ providerId: string;
1109
+ config: {
1110
+ [key: string]: unknown;
1111
+ };
1112
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
1113
+ };
1114
+ }[][];
1115
+ })[][];
1116
+ } | {
1117
+ type: 'conditional';
1118
+ conditions: {
1119
+ steps: ({
1120
+ type: 'conditional';
1121
+ conditions: {
1122
+ steps: {
1123
+ type: 'step';
1124
+ step: {
1125
+ id: string;
1126
+ providerId: string;
1127
+ config: {
1128
+ [key: string]: unknown;
1129
+ };
1130
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
1131
+ };
1132
+ }[];
1133
+ rules?: {
1134
+ operator: 'AND' | 'OR';
1135
+ conditions: ({
1136
+ field: string;
1137
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1138
+ value?: unknown | undefined;
1139
+ } | {
1140
+ operator: 'AND' | 'OR';
1141
+ conditions: ({
1142
+ field: string;
1143
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1144
+ value?: unknown | undefined;
1145
+ } | {
1146
+ operator: 'AND' | 'OR';
1147
+ conditions: {
1148
+ field: string;
1149
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1150
+ value?: unknown | undefined;
1151
+ }[];
1152
+ })[];
1153
+ })[];
1154
+ } | undefined;
1155
+ }[];
1156
+ } | {
1157
+ type: 'step';
1158
+ step: {
1159
+ id: string;
1160
+ providerId: string;
1161
+ config: {
1162
+ [key: string]: unknown;
1163
+ };
1164
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
1165
+ };
1166
+ } | {
1167
+ type: 'parallel';
1168
+ branches: {
1169
+ type: 'step';
1170
+ step: {
1171
+ id: string;
1172
+ providerId: string;
1173
+ config: {
1174
+ [key: string]: unknown;
1175
+ };
1176
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
1177
+ };
1178
+ }[][];
1179
+ })[];
1180
+ rules?: {
1181
+ operator: 'AND' | 'OR';
1182
+ conditions: ({
1183
+ field: string;
1184
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1185
+ value?: unknown | undefined;
1186
+ } | {
1187
+ operator: 'AND' | 'OR';
1188
+ conditions: ({
1189
+ field: string;
1190
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1191
+ value?: unknown | undefined;
1192
+ } | {
1193
+ operator: 'AND' | 'OR';
1194
+ conditions: {
1195
+ field: string;
1196
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1197
+ value?: unknown | undefined;
1198
+ }[];
1199
+ })[];
1200
+ })[];
1201
+ } | undefined;
1202
+ }[];
1203
+ })[];
1204
+ };
1205
+ rules?: {
1206
+ operator: 'AND' | 'OR';
1207
+ conditions: ({
1208
+ field: string;
1209
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1210
+ value?: unknown | undefined;
1211
+ } | {
1212
+ operator: 'AND' | 'OR';
1213
+ conditions: ({
1214
+ field: string;
1215
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1216
+ value?: unknown | undefined;
1217
+ } | {
1218
+ operator: 'AND' | 'OR';
1219
+ conditions: {
1220
+ field: string;
1221
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1222
+ value?: unknown | undefined;
1223
+ }[];
1224
+ })[];
1225
+ })[];
1226
+ } | undefined;
1227
+ }[] | {
1228
+ steps: ({
1229
+ type: 'step';
1230
+ step: {
1231
+ id: string;
1232
+ providerId: string;
1233
+ config: {
1234
+ [key: string]: unknown;
1235
+ };
1236
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
1237
+ };
1238
+ } | {
1239
+ type: 'parallel';
1240
+ branches: ({
1241
+ type: 'conditional';
1242
+ conditions: {
1243
+ steps: {
1244
+ type: 'step';
1245
+ step: {
1246
+ id: string;
1247
+ providerId: string;
1248
+ config: {
1249
+ [key: string]: unknown;
1250
+ };
1251
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
1252
+ };
1253
+ }[];
1254
+ rules?: {
1255
+ operator: 'AND' | 'OR';
1256
+ conditions: ({
1257
+ field: string;
1258
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1259
+ value?: unknown | undefined;
1260
+ } | {
1261
+ operator: 'AND' | 'OR';
1262
+ conditions: ({
1263
+ field: string;
1264
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1265
+ value?: unknown | undefined;
1266
+ } | {
1267
+ operator: 'AND' | 'OR';
1268
+ conditions: {
1269
+ field: string;
1270
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1271
+ value?: unknown | undefined;
1272
+ }[];
1273
+ })[];
1274
+ })[];
1275
+ } | undefined;
1276
+ }[];
1277
+ } | {
1278
+ type: 'step';
1279
+ step: {
1280
+ id: string;
1281
+ providerId: string;
1282
+ config: {
1283
+ [key: string]: unknown;
1284
+ };
1285
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
1286
+ };
1287
+ } | {
1288
+ type: 'parallel';
1289
+ branches: {
1290
+ type: 'step';
1291
+ step: {
1292
+ id: string;
1293
+ providerId: string;
1294
+ config: {
1295
+ [key: string]: unknown;
1296
+ };
1297
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
1298
+ };
1299
+ }[][];
1300
+ })[][];
1301
+ } | {
1302
+ type: 'conditional';
1303
+ conditions: {
1304
+ steps: ({
1305
+ type: 'conditional';
1306
+ conditions: {
1307
+ steps: {
1308
+ type: 'step';
1309
+ step: {
1310
+ id: string;
1311
+ providerId: string;
1312
+ config: {
1313
+ [key: string]: unknown;
1314
+ };
1315
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
1316
+ };
1317
+ }[];
1318
+ rules?: {
1319
+ operator: 'AND' | 'OR';
1320
+ conditions: ({
1321
+ field: string;
1322
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1323
+ value?: unknown | undefined;
1324
+ } | {
1325
+ operator: 'AND' | 'OR';
1326
+ conditions: ({
1327
+ field: string;
1328
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1329
+ value?: unknown | undefined;
1330
+ } | {
1331
+ operator: 'AND' | 'OR';
1332
+ conditions: {
1333
+ field: string;
1334
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1335
+ value?: unknown | undefined;
1336
+ }[];
1337
+ })[];
1338
+ })[];
1339
+ } | undefined;
1340
+ }[];
1341
+ } | {
1342
+ type: 'step';
1343
+ step: {
1344
+ id: string;
1345
+ providerId: string;
1346
+ config: {
1347
+ [key: string]: unknown;
1348
+ };
1349
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
1350
+ };
1351
+ } | {
1352
+ type: 'parallel';
1353
+ branches: {
1354
+ type: 'step';
1355
+ step: {
1356
+ id: string;
1357
+ providerId: string;
1358
+ config: {
1359
+ [key: string]: unknown;
1360
+ };
1361
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep' | 'processToolResult')[];
1362
+ };
1363
+ }[][];
1364
+ })[];
1365
+ rules?: {
1366
+ operator: 'AND' | 'OR';
1367
+ conditions: ({
1368
+ field: string;
1369
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1370
+ value?: unknown | undefined;
1371
+ } | {
1372
+ operator: 'AND' | 'OR';
1373
+ conditions: ({
1374
+ field: string;
1375
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1376
+ value?: unknown | undefined;
1377
+ } | {
1378
+ operator: 'AND' | 'OR';
1379
+ conditions: {
1380
+ field: string;
1381
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1382
+ value?: unknown | undefined;
1383
+ }[];
1384
+ })[];
1385
+ })[];
1386
+ } | undefined;
1387
+ }[];
1388
+ })[];
1389
+ }) | undefined;
1390
+ memory?: (({
1391
+ vector?: (string | false) | undefined;
1392
+ options?: {
1393
+ readOnly?: boolean | undefined;
1394
+ lastMessages?: (number | false) | undefined;
1395
+ messageHistory?: {
1396
+ maxTokens: number;
1397
+ atMaxRemoveTokens?: number | undefined;
1398
+ } | undefined;
1399
+ semanticRecall?: (boolean | {
1400
+ topK: number;
1401
+ messageRange: number | {
1402
+ before: number;
1403
+ after: number;
1404
+ };
1405
+ scope?: ('thread' | 'resource') | undefined;
1406
+ threshold?: number | undefined;
1407
+ indexName?: string | undefined;
1408
+ }) | undefined;
1409
+ generateTitle?: (boolean | {
1410
+ model?: string | undefined;
1411
+ instructions?: string | undefined;
1412
+ minMessages?: number | undefined;
1413
+ emitEvent?: boolean | undefined;
1414
+ }) | undefined;
1415
+ } | undefined;
1416
+ embedder?: string | undefined;
1417
+ embedderOptions?: {
1418
+ [key: string]: unknown;
1419
+ } | undefined;
1420
+ observationalMemory?: (boolean | {
1421
+ model?: string | undefined;
1422
+ scope?: ('resource' | 'thread') | undefined;
1423
+ shareTokenBudget?: boolean | undefined;
1424
+ observation?: {
1425
+ model?: string | undefined;
1426
+ messageTokens?: number | undefined;
1427
+ modelSettings?: {
1428
+ [key: string]: unknown;
1429
+ } | undefined;
1430
+ providerOptions?: {
1431
+ [key: string]: {
1432
+ [key: string]: unknown;
1433
+ } | undefined;
1434
+ } | undefined;
1435
+ maxTokensPerBatch?: number | undefined;
1436
+ bufferTokens?: (number | false) | undefined;
1437
+ bufferActivation?: number | undefined;
1438
+ blockAfter?: number | undefined;
1439
+ } | undefined;
1440
+ reflection?: {
1441
+ model?: string | undefined;
1442
+ observationTokens?: number | undefined;
1443
+ modelSettings?: {
1444
+ [key: string]: unknown;
1445
+ } | undefined;
1446
+ providerOptions?: {
1447
+ [key: string]: {
1448
+ [key: string]: unknown;
1449
+ } | undefined;
1450
+ } | undefined;
1451
+ blockAfter?: number | undefined;
1452
+ bufferActivation?: number | undefined;
1453
+ } | undefined;
1454
+ }) | undefined;
1455
+ type?: never | undefined;
1456
+ } | {
1457
+ type: 'id';
1458
+ memoryId: string;
1459
+ } | {
1460
+ type: 'inline';
1461
+ config: {
1462
+ vector?: (string | false) | undefined;
1463
+ options?: {
1464
+ readOnly?: boolean | undefined;
1465
+ lastMessages?: (number | false) | undefined;
1466
+ messageHistory?: {
1467
+ maxTokens: number;
1468
+ atMaxRemoveTokens?: number | undefined;
1469
+ } | undefined;
1470
+ semanticRecall?: (boolean | {
1471
+ topK: number;
1472
+ messageRange: number | {
1473
+ before: number;
1474
+ after: number;
1475
+ };
1476
+ scope?: ('thread' | 'resource') | undefined;
1477
+ threshold?: number | undefined;
1478
+ indexName?: string | undefined;
1479
+ }) | undefined;
1480
+ generateTitle?: (boolean | {
1481
+ model?: string | undefined;
1482
+ instructions?: string | undefined;
1483
+ minMessages?: number | undefined;
1484
+ emitEvent?: boolean | undefined;
1485
+ }) | undefined;
1486
+ } | undefined;
1487
+ embedder?: string | undefined;
1488
+ embedderOptions?: {
1489
+ [key: string]: unknown;
1490
+ } | undefined;
1491
+ observationalMemory?: (boolean | {
1492
+ model?: string | undefined;
1493
+ scope?: ('resource' | 'thread') | undefined;
1494
+ shareTokenBudget?: boolean | undefined;
1495
+ observation?: {
1496
+ model?: string | undefined;
1497
+ messageTokens?: number | undefined;
1498
+ modelSettings?: {
1499
+ [key: string]: unknown;
1500
+ } | undefined;
1501
+ providerOptions?: {
1502
+ [key: string]: {
1503
+ [key: string]: unknown;
1504
+ } | undefined;
1505
+ } | undefined;
1506
+ maxTokensPerBatch?: number | undefined;
1507
+ bufferTokens?: (number | false) | undefined;
1508
+ bufferActivation?: number | undefined;
1509
+ blockAfter?: number | undefined;
1510
+ } | undefined;
1511
+ reflection?: {
1512
+ model?: string | undefined;
1513
+ observationTokens?: number | undefined;
1514
+ modelSettings?: {
1515
+ [key: string]: unknown;
1516
+ } | undefined;
1517
+ providerOptions?: {
1518
+ [key: string]: {
1519
+ [key: string]: unknown;
1520
+ } | undefined;
1521
+ } | undefined;
1522
+ blockAfter?: number | undefined;
1523
+ bufferActivation?: number | undefined;
1524
+ } | undefined;
1525
+ }) | undefined;
1526
+ };
1527
+ }) | {
1528
+ value: {
1529
+ vector?: (string | false) | undefined;
1530
+ options?: {
1531
+ readOnly?: boolean | undefined;
1532
+ lastMessages?: (number | false) | undefined;
1533
+ messageHistory?: {
1534
+ maxTokens: number;
1535
+ atMaxRemoveTokens?: number | undefined;
1536
+ } | undefined;
1537
+ semanticRecall?: (boolean | {
1538
+ topK: number;
1539
+ messageRange: number | {
1540
+ before: number;
1541
+ after: number;
1542
+ };
1543
+ scope?: ('thread' | 'resource') | undefined;
1544
+ threshold?: number | undefined;
1545
+ indexName?: string | undefined;
1546
+ }) | undefined;
1547
+ generateTitle?: (boolean | {
1548
+ model?: string | undefined;
1549
+ instructions?: string | undefined;
1550
+ minMessages?: number | undefined;
1551
+ emitEvent?: boolean | undefined;
1552
+ }) | undefined;
1553
+ } | undefined;
1554
+ embedder?: string | undefined;
1555
+ embedderOptions?: {
1556
+ [key: string]: unknown;
1557
+ } | undefined;
1558
+ observationalMemory?: (boolean | {
1559
+ model?: string | undefined;
1560
+ scope?: ('resource' | 'thread') | undefined;
1561
+ shareTokenBudget?: boolean | undefined;
1562
+ observation?: {
1563
+ model?: string | undefined;
1564
+ messageTokens?: number | undefined;
1565
+ modelSettings?: {
1566
+ [key: string]: unknown;
1567
+ } | undefined;
1568
+ providerOptions?: {
1569
+ [key: string]: {
1570
+ [key: string]: unknown;
1571
+ } | undefined;
1572
+ } | undefined;
1573
+ maxTokensPerBatch?: number | undefined;
1574
+ bufferTokens?: (number | false) | undefined;
1575
+ bufferActivation?: number | undefined;
1576
+ blockAfter?: number | undefined;
1577
+ } | undefined;
1578
+ reflection?: {
1579
+ model?: string | undefined;
1580
+ observationTokens?: number | undefined;
1581
+ modelSettings?: {
1582
+ [key: string]: unknown;
1583
+ } | undefined;
1584
+ providerOptions?: {
1585
+ [key: string]: {
1586
+ [key: string]: unknown;
1587
+ } | undefined;
1588
+ } | undefined;
1589
+ blockAfter?: number | undefined;
1590
+ bufferActivation?: number | undefined;
1591
+ } | undefined;
1592
+ }) | undefined;
1593
+ type?: never | undefined;
1594
+ } | {
1595
+ type: 'id';
1596
+ memoryId: string;
1597
+ } | {
1598
+ type: 'inline';
1599
+ config: {
1600
+ vector?: (string | false) | undefined;
1601
+ options?: {
1602
+ readOnly?: boolean | undefined;
1603
+ lastMessages?: (number | false) | undefined;
1604
+ messageHistory?: {
1605
+ maxTokens: number;
1606
+ atMaxRemoveTokens?: number | undefined;
1607
+ } | undefined;
1608
+ semanticRecall?: (boolean | {
1609
+ topK: number;
1610
+ messageRange: number | {
1611
+ before: number;
1612
+ after: number;
1613
+ };
1614
+ scope?: ('thread' | 'resource') | undefined;
1615
+ threshold?: number | undefined;
1616
+ indexName?: string | undefined;
1617
+ }) | undefined;
1618
+ generateTitle?: (boolean | {
1619
+ model?: string | undefined;
1620
+ instructions?: string | undefined;
1621
+ minMessages?: number | undefined;
1622
+ emitEvent?: boolean | undefined;
1623
+ }) | undefined;
1624
+ } | undefined;
1625
+ embedder?: string | undefined;
1626
+ embedderOptions?: {
1627
+ [key: string]: unknown;
1628
+ } | undefined;
1629
+ observationalMemory?: (boolean | {
1630
+ model?: string | undefined;
1631
+ scope?: ('resource' | 'thread') | undefined;
1632
+ shareTokenBudget?: boolean | undefined;
1633
+ observation?: {
1634
+ model?: string | undefined;
1635
+ messageTokens?: number | undefined;
1636
+ modelSettings?: {
1637
+ [key: string]: unknown;
1638
+ } | undefined;
1639
+ providerOptions?: {
1640
+ [key: string]: {
1641
+ [key: string]: unknown;
1642
+ } | undefined;
1643
+ } | undefined;
1644
+ maxTokensPerBatch?: number | undefined;
1645
+ bufferTokens?: (number | false) | undefined;
1646
+ bufferActivation?: number | undefined;
1647
+ blockAfter?: number | undefined;
1648
+ } | undefined;
1649
+ reflection?: {
1650
+ model?: string | undefined;
1651
+ observationTokens?: number | undefined;
1652
+ modelSettings?: {
1653
+ [key: string]: unknown;
1654
+ } | undefined;
1655
+ providerOptions?: {
1656
+ [key: string]: {
1657
+ [key: string]: unknown;
1658
+ } | undefined;
1659
+ } | undefined;
1660
+ blockAfter?: number | undefined;
1661
+ bufferActivation?: number | undefined;
1662
+ } | undefined;
1663
+ }) | undefined;
1664
+ };
1665
+ };
1666
+ rules?: {
1667
+ operator: 'AND' | 'OR';
1668
+ conditions: ({
1669
+ field: string;
1670
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1671
+ value?: unknown | undefined;
1672
+ } | {
1673
+ operator: 'AND' | 'OR';
1674
+ conditions: ({
1675
+ field: string;
1676
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1677
+ value?: unknown | undefined;
1678
+ } | {
1679
+ operator: 'AND' | 'OR';
1680
+ conditions: {
1681
+ field: string;
1682
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1683
+ value?: unknown | undefined;
1684
+ }[];
1685
+ })[];
1686
+ })[];
1687
+ } | undefined;
1688
+ }[]) | undefined;
1689
+ scorers?: ({
1690
+ [key: string]: {
1691
+ description?: string | undefined;
1692
+ sampling?: ({
1693
+ type: 'none';
1694
+ } | {
1695
+ type: 'ratio';
1696
+ rate: number;
1697
+ }) | undefined;
1698
+ rules?: {
1699
+ operator: 'AND' | 'OR';
1700
+ conditions: ({
1701
+ field: string;
1702
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1703
+ value?: unknown | undefined;
1704
+ } | {
1705
+ operator: 'AND' | 'OR';
1706
+ conditions: ({
1707
+ field: string;
1708
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1709
+ value?: unknown | undefined;
1710
+ } | {
1711
+ operator: 'AND' | 'OR';
1712
+ conditions: {
1713
+ field: string;
1714
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1715
+ value?: unknown | undefined;
1716
+ }[];
1717
+ })[];
1718
+ })[];
1719
+ } | undefined;
1720
+ };
1721
+ } | {
1722
+ value: {
1723
+ [key: string]: {
1724
+ description?: string | undefined;
1725
+ sampling?: ({
1726
+ type: 'none';
1727
+ } | {
1728
+ type: 'ratio';
1729
+ rate: number;
1730
+ }) | undefined;
1731
+ rules?: {
1732
+ operator: 'AND' | 'OR';
1733
+ conditions: ({
1734
+ field: string;
1735
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1736
+ value?: unknown | undefined;
1737
+ } | {
1738
+ operator: 'AND' | 'OR';
1739
+ conditions: ({
1740
+ field: string;
1741
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1742
+ value?: unknown | undefined;
1743
+ } | {
1744
+ operator: 'AND' | 'OR';
1745
+ conditions: {
1746
+ field: string;
1747
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1748
+ value?: unknown | undefined;
1749
+ }[];
1750
+ })[];
1751
+ })[];
1752
+ } | undefined;
1753
+ };
1754
+ };
1755
+ rules?: {
1756
+ operator: 'AND' | 'OR';
1757
+ conditions: ({
1758
+ field: string;
1759
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1760
+ value?: unknown | undefined;
1761
+ } | {
1762
+ operator: 'AND' | 'OR';
1763
+ conditions: ({
1764
+ field: string;
1765
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1766
+ value?: unknown | undefined;
1767
+ } | {
1768
+ operator: 'AND' | 'OR';
1769
+ conditions: {
1770
+ field: string;
1771
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1772
+ value?: unknown | undefined;
1773
+ }[];
1774
+ })[];
1775
+ })[];
1776
+ } | undefined;
1777
+ }[]) | undefined;
1778
+ skills?: ({
1779
+ [key: string]: {
1780
+ description?: string | undefined;
1781
+ instructions?: string | undefined;
1782
+ pin?: string | undefined;
1783
+ strategy?: ('latest' | 'live') | undefined;
1784
+ };
1785
+ } | {
1786
+ value: {
1787
+ [key: string]: {
1788
+ description?: string | undefined;
1789
+ instructions?: string | undefined;
1790
+ pin?: string | undefined;
1791
+ strategy?: ('latest' | 'live') | undefined;
1792
+ };
1793
+ };
1794
+ rules?: {
1795
+ operator: 'AND' | 'OR';
1796
+ conditions: ({
1797
+ field: string;
1798
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1799
+ value?: unknown | undefined;
1800
+ } | {
1801
+ operator: 'AND' | 'OR';
1802
+ conditions: ({
1803
+ field: string;
1804
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1805
+ value?: unknown | undefined;
1806
+ } | {
1807
+ operator: 'AND' | 'OR';
1808
+ conditions: {
1809
+ field: string;
1810
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1811
+ value?: unknown | undefined;
1812
+ }[];
1813
+ })[];
1814
+ })[];
1815
+ } | undefined;
1816
+ }[]) | undefined;
1817
+ workspace?: (({
1818
+ type: 'id';
1819
+ workspaceId: string;
1820
+ } | {
1821
+ type: 'inline';
1822
+ config: {
1823
+ name: string;
1824
+ description?: string | undefined;
1825
+ filesystem?: {
1826
+ provider: string;
1827
+ config: {
1828
+ [key: string]: unknown;
1829
+ };
1830
+ } | undefined;
1831
+ sandbox?: {
1832
+ provider: string;
1833
+ config: {
1834
+ [key: string]: unknown;
1835
+ };
1836
+ } | undefined;
1837
+ mounts?: {
1838
+ [key: string]: {
1839
+ provider: string;
1840
+ config: {
1841
+ [key: string]: unknown;
1842
+ };
1843
+ };
1844
+ } | undefined;
1845
+ search?: {
1846
+ vectorProvider?: string | undefined;
1847
+ vectorConfig?: {
1848
+ [key: string]: unknown;
1849
+ } | undefined;
1850
+ embedderProvider?: string | undefined;
1851
+ embedderModel?: string | undefined;
1852
+ embedderConfig?: {
1853
+ [key: string]: unknown;
1854
+ } | undefined;
1855
+ bm25?: (boolean | {
1856
+ k1?: number | undefined;
1857
+ b?: number | undefined;
1858
+ }) | undefined;
1859
+ searchIndexName?: string | undefined;
1860
+ autoIndexPaths?: string[] | undefined;
1861
+ } | undefined;
1862
+ skills?: string[] | undefined;
1863
+ tools?: {
1864
+ enabled?: boolean | undefined;
1865
+ requireApproval?: boolean | undefined;
1866
+ tools?: {
1867
+ [key: string]: {
1868
+ enabled?: boolean | undefined;
1869
+ requireApproval?: boolean | undefined;
1870
+ requireReadBeforeWrite?: boolean | undefined;
1871
+ };
1872
+ } | undefined;
1873
+ } | undefined;
1874
+ autoSync?: boolean | undefined;
1875
+ operationTimeout?: number | undefined;
1876
+ };
1877
+ } | {
1878
+ type: 'provider';
1879
+ provider: string;
1880
+ config: {
1881
+ [key: string]: unknown;
1882
+ };
1883
+ }) | {
1884
+ value: {
1885
+ type: 'id';
1886
+ workspaceId: string;
1887
+ } | {
1888
+ type: 'inline';
1889
+ config: {
1890
+ name: string;
1891
+ description?: string | undefined;
1892
+ filesystem?: {
1893
+ provider: string;
1894
+ config: {
1895
+ [key: string]: unknown;
1896
+ };
1897
+ } | undefined;
1898
+ sandbox?: {
1899
+ provider: string;
1900
+ config: {
1901
+ [key: string]: unknown;
1902
+ };
1903
+ } | undefined;
1904
+ mounts?: {
1905
+ [key: string]: {
1906
+ provider: string;
1907
+ config: {
1908
+ [key: string]: unknown;
1909
+ };
1910
+ };
1911
+ } | undefined;
1912
+ search?: {
1913
+ vectorProvider?: string | undefined;
1914
+ vectorConfig?: {
1915
+ [key: string]: unknown;
1916
+ } | undefined;
1917
+ embedderProvider?: string | undefined;
1918
+ embedderModel?: string | undefined;
1919
+ embedderConfig?: {
1920
+ [key: string]: unknown;
1921
+ } | undefined;
1922
+ bm25?: (boolean | {
1923
+ k1?: number | undefined;
1924
+ b?: number | undefined;
1925
+ }) | undefined;
1926
+ searchIndexName?: string | undefined;
1927
+ autoIndexPaths?: string[] | undefined;
1928
+ } | undefined;
1929
+ skills?: string[] | undefined;
1930
+ tools?: {
1931
+ enabled?: boolean | undefined;
1932
+ requireApproval?: boolean | undefined;
1933
+ tools?: {
1934
+ [key: string]: {
1935
+ enabled?: boolean | undefined;
1936
+ requireApproval?: boolean | undefined;
1937
+ requireReadBeforeWrite?: boolean | undefined;
1938
+ };
1939
+ } | undefined;
1940
+ } | undefined;
1941
+ autoSync?: boolean | undefined;
1942
+ operationTimeout?: number | undefined;
1943
+ };
1944
+ } | {
1945
+ type: 'provider';
1946
+ provider: string;
1947
+ config: {
1948
+ [key: string]: unknown;
1949
+ };
1950
+ };
1951
+ rules?: {
1952
+ operator: 'AND' | 'OR';
1953
+ conditions: ({
1954
+ field: string;
1955
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1956
+ value?: unknown | undefined;
1957
+ } | {
1958
+ operator: 'AND' | 'OR';
1959
+ conditions: ({
1960
+ field: string;
1961
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1962
+ value?: unknown | undefined;
1963
+ } | {
1964
+ operator: 'AND' | 'OR';
1965
+ conditions: {
1966
+ field: string;
1967
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1968
+ value?: unknown | undefined;
1969
+ }[];
1970
+ })[];
1971
+ })[];
1972
+ } | undefined;
1973
+ }[]) | undefined;
1974
+ browser?: (({
1975
+ value: {
1976
+ type: 'inline';
1977
+ config: {
1978
+ provider: string;
1979
+ headless?: boolean | undefined;
1980
+ viewport?: {
1981
+ width: number;
1982
+ height: number;
1983
+ } | undefined;
1984
+ timeout?: number | undefined;
1985
+ screencast?: {
1986
+ format?: ('jpeg' | 'png') | undefined;
1987
+ quality?: number | undefined;
1988
+ maxWidth?: number | undefined;
1989
+ maxHeight?: number | undefined;
1990
+ everyNthFrame?: number | undefined;
1991
+ } | undefined;
1992
+ };
1993
+ };
1994
+ rules?: {
1995
+ operator: 'AND' | 'OR';
1996
+ conditions: ({
1997
+ field: string;
1998
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
1999
+ value?: unknown | undefined;
2000
+ } | {
2001
+ operator: 'AND' | 'OR';
2002
+ conditions: ({
2003
+ field: string;
2004
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
2005
+ value?: unknown | undefined;
2006
+ } | {
2007
+ operator: 'AND' | 'OR';
2008
+ conditions: {
2009
+ field: string;
2010
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
2011
+ value?: unknown | undefined;
2012
+ }[];
2013
+ })[];
2014
+ })[];
2015
+ } | undefined;
2016
+ }[] | {
2017
+ type: 'inline';
2018
+ config: {
2019
+ provider: string;
2020
+ headless?: boolean | undefined;
2021
+ viewport?: {
2022
+ width: number;
2023
+ height: number;
2024
+ } | undefined;
2025
+ timeout?: number | undefined;
2026
+ screencast?: {
2027
+ format?: ('jpeg' | 'png') | undefined;
2028
+ quality?: number | undefined;
2029
+ maxWidth?: number | undefined;
2030
+ maxHeight?: number | undefined;
2031
+ everyNthFrame?: number | undefined;
2032
+ } | undefined;
2033
+ };
2034
+ }) | boolean | null) | undefined;
2035
+ requestContextSchema?: {
2036
+ [key: string]: unknown;
2037
+ } | undefined;
2038
+ durable?: (boolean | {
2039
+ maxSteps?: number | undefined;
2040
+ cleanupTimeoutMs?: number | undefined;
2041
+ }) | undefined;
2042
+ }, Error, StoredWorkspaceRef | undefined, unknown>;
2043
+ };
2044
+ //# sourceMappingURL=use-agent-workspace.d.ts.map