@n8n/api-types 1.31.2 → 1.32.0

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 (370) hide show
  1. package/dist/agent-builder-interactive.d.ts +7 -11
  2. package/dist/agent-builder-interactive.js +1 -10
  3. package/dist/agent-builder-interactive.js.map +1 -1
  4. package/dist/agent-builder-tool-node-types.d.ts +1 -1
  5. package/dist/agent-builder-tool-node-types.js +1 -0
  6. package/dist/agent-builder-tool-node-types.js.map +1 -1
  7. package/dist/agent-sse.d.ts +0 -7
  8. package/dist/agents/agent-config-validation.schema.d.ts +127 -0
  9. package/dist/agents/agent-config-validation.schema.js +38 -0
  10. package/dist/agents/agent-config-validation.schema.js.map +1 -0
  11. package/dist/agents/agent-files.constants.d.ts +1 -1
  12. package/dist/agents/agent-files.constants.js.map +1 -1
  13. package/dist/agents/agent-integration.schema.d.ts +1 -1
  14. package/dist/agents/agent-integration.schema.js.map +1 -1
  15. package/dist/agents/agent-interaction.schema.d.ts +27 -26
  16. package/dist/agents/agent-interaction.schema.js +8 -2
  17. package/dist/agents/agent-interaction.schema.js.map +1 -1
  18. package/dist/agents/agent-json-config.schema.d.ts +1342 -1251
  19. package/dist/agents/agent-json-config.schema.js +36 -33
  20. package/dist/agents/agent-json-config.schema.js.map +1 -1
  21. package/dist/agents/agent-skill.schema.d.ts +99 -0
  22. package/dist/agents/agent-skill.schema.js +79 -0
  23. package/dist/agents/agent-skill.schema.js.map +1 -0
  24. package/dist/agents/agent-task.schema.js.map +1 -1
  25. package/dist/agents/dto.d.ts +71 -146
  26. package/dist/agents/dto.js +12 -87
  27. package/dist/agents/dto.js.map +1 -1
  28. package/dist/agents/index.d.ts +4 -1
  29. package/dist/agents/index.js +4 -2
  30. package/dist/agents/index.js.map +1 -1
  31. package/dist/agents/inline-agent-config.schema.d.ts +4007 -0
  32. package/dist/agents/inline-agent-config.schema.js +76 -0
  33. package/dist/agents/inline-agent-config.schema.js.map +1 -0
  34. package/dist/agents/model-providers.d.ts +1 -1
  35. package/dist/agents/model-providers.js.map +1 -1
  36. package/dist/agents/provider-capabilities.d.ts +12 -12
  37. package/dist/agents/provider-capabilities.js.map +1 -1
  38. package/dist/agents/rich-card.schema.d.ts +298 -298
  39. package/dist/agents/rich-card.schema.js.map +1 -1
  40. package/dist/agents/sanitize-agent-json-config.d.ts +1 -0
  41. package/dist/agents/sanitize-agent-json-config.js +10 -0
  42. package/dist/agents/sanitize-agent-json-config.js.map +1 -1
  43. package/dist/agents/types.d.ts +19 -27
  44. package/dist/agents/types.js +1 -6
  45. package/dist/agents/types.js.map +1 -1
  46. package/dist/build.tsbuildinfo +1 -1
  47. package/dist/chat-hub.d.ts +162 -162
  48. package/dist/chat-hub.js.map +1 -1
  49. package/dist/constants/proxy-feature.d.ts +1 -1
  50. package/dist/constants/proxy-feature.js.map +1 -1
  51. package/dist/dto/ai/ai-apply-suggestion-request.dto.js.map +1 -1
  52. package/dist/dto/ai/ai-ask-request.dto.d.ts +10 -10
  53. package/dist/dto/ai/ai-ask-request.dto.js.map +1 -1
  54. package/dist/dto/ai/ai-build-request.dto.d.ts +13 -13
  55. package/dist/dto/ai/ai-build-request.dto.js.map +1 -1
  56. package/dist/dto/ai/ai-chat-request.dto.js.map +1 -1
  57. package/dist/dto/ai/ai-clear-session-request.dto.js.map +1 -1
  58. package/dist/dto/ai/ai-free-credits-request.dto.js.map +1 -1
  59. package/dist/dto/ai/ai-gateway-config-response.dto.js.map +1 -1
  60. package/dist/dto/ai/ai-gateway-usage-response.dto.d.ts +1 -1
  61. package/dist/dto/ai/ai-gateway-usage-response.dto.js.map +1 -1
  62. package/dist/dto/ai/ai-session-retrieval-request.dto.js.map +1 -1
  63. package/dist/dto/ai/ai-truncate-messages-request.dto.d.ts +1 -1
  64. package/dist/dto/ai/ai-truncate-messages-request.dto.js.map +1 -1
  65. package/dist/dto/ai/ai-usage-settings-request.dto.js.map +1 -1
  66. package/dist/dto/api-keys/create-api-key-request.dto.js.map +1 -1
  67. package/dist/dto/api-keys/list-api-keys-query.dto.d.ts +5 -5
  68. package/dist/dto/api-keys/list-api-keys-query.dto.js.map +1 -1
  69. package/dist/dto/api-keys/update-api-key-request.dto.js.map +1 -1
  70. package/dist/dto/auth/embed-login-body.dto.js.map +1 -1
  71. package/dist/dto/auth/embed-login-query.dto.js.map +1 -1
  72. package/dist/dto/auth/login-request.dto.js.map +1 -1
  73. package/dist/dto/auth/resolve-signup-token-query.dto.js.map +1 -1
  74. package/dist/dto/binary-data/binary-data-query.dto.d.ts +2 -2
  75. package/dist/dto/binary-data/binary-data-query.dto.js.map +1 -1
  76. package/dist/dto/binary-data/binary-data-signed-query.dto.js.map +1 -1
  77. package/dist/dto/breaking-changes/breaking-change-report-query.dto.js.map +1 -1
  78. package/dist/dto/credential-resolver/create-credential-resolver.dto.d.ts +1 -1
  79. package/dist/dto/credential-resolver/create-credential-resolver.dto.js.map +1 -1
  80. package/dist/dto/credential-resolver/list-credential-resolvers-query.dto.d.ts +1 -1
  81. package/dist/dto/credential-resolver/list-credential-resolvers-query.dto.js.map +1 -1
  82. package/dist/dto/credential-resolver/update-credential-resolver.dto.js.map +1 -1
  83. package/dist/dto/credentials/create-credential.dto.d.ts +1 -1
  84. package/dist/dto/credentials/create-credential.dto.js.map +1 -1
  85. package/dist/dto/credentials/credentials-get-many-request.dto.d.ts +6 -6
  86. package/dist/dto/credentials/credentials-get-many-request.dto.js.map +1 -1
  87. package/dist/dto/credentials/credentials-get-one-request.dto.d.ts +1 -1
  88. package/dist/dto/credentials/credentials-get-one-request.dto.js.map +1 -1
  89. package/dist/dto/credentials/generate-credential-name.dto.js.map +1 -1
  90. package/dist/dto/data-table/add-data-table-column.dto.d.ts +1 -1
  91. package/dist/dto/data-table/add-data-table-column.dto.js.map +1 -1
  92. package/dist/dto/data-table/add-data-table-rows.dto.d.ts +1 -1
  93. package/dist/dto/data-table/add-data-table-rows.dto.js.map +1 -1
  94. package/dist/dto/data-table/create-data-table-column.dto.d.ts +1 -1
  95. package/dist/dto/data-table/create-data-table-column.dto.js.map +1 -1
  96. package/dist/dto/data-table/create-data-table.dto.d.ts +3 -3
  97. package/dist/dto/data-table/create-data-table.dto.js.map +1 -1
  98. package/dist/dto/data-table/delete-data-table-rows.dto.d.ts +4 -4
  99. package/dist/dto/data-table/delete-data-table-rows.dto.js.map +1 -1
  100. package/dist/dto/data-table/download-data-table-csv-query.dto.js.map +1 -1
  101. package/dist/dto/data-table/import-csv-to-data-table.dto.js.map +1 -1
  102. package/dist/dto/data-table/list-data-table-content-query.dto.d.ts +10 -10
  103. package/dist/dto/data-table/list-data-table-content-query.dto.js.map +1 -1
  104. package/dist/dto/data-table/list-data-table-query.dto.d.ts +8 -8
  105. package/dist/dto/data-table/list-data-table-query.dto.js.map +1 -1
  106. package/dist/dto/data-table/move-data-table-column.dto.js.map +1 -1
  107. package/dist/dto/data-table/public-api-create-data-table.dto.d.ts +4 -4
  108. package/dist/dto/data-table/public-api-create-data-table.dto.js.map +1 -1
  109. package/dist/dto/data-table/rename-data-table-column.dto.js.map +1 -1
  110. package/dist/dto/data-table/update-data-table-column.dto.d.ts +2 -2
  111. package/dist/dto/data-table/update-data-table-row.dto.d.ts +14 -14
  112. package/dist/dto/data-table/update-data-table-row.dto.js.map +1 -1
  113. package/dist/dto/data-table/update-data-table.dto.js.map +1 -1
  114. package/dist/dto/data-table/upsert-data-table-row.dto.d.ts +14 -14
  115. package/dist/dto/data-table/upsert-data-table-row.dto.js.map +1 -1
  116. package/dist/dto/dynamic-node-parameters/action-result-request.dto.d.ts +2 -2
  117. package/dist/dto/dynamic-node-parameters/action-result-request.dto.js.map +1 -1
  118. package/dist/dto/dynamic-node-parameters/base-dynamic-parameters-request.dto.d.ts +2 -2
  119. package/dist/dto/dynamic-node-parameters/base-dynamic-parameters-request.dto.js.map +1 -1
  120. package/dist/dto/dynamic-node-parameters/options-request.dto.d.ts +2 -2
  121. package/dist/dto/dynamic-node-parameters/options-request.dto.js.map +1 -1
  122. package/dist/dto/dynamic-node-parameters/resource-locator-request.dto.d.ts +2 -2
  123. package/dist/dto/dynamic-node-parameters/resource-locator-request.dto.js.map +1 -1
  124. package/dist/dto/dynamic-node-parameters/resource-mapper-fields-request.dto.d.ts +2 -2
  125. package/dist/dto/dynamic-node-parameters/resource-mapper-fields-request.dto.js.map +1 -1
  126. package/dist/dto/encryption/create-encryption-key.dto.js.map +1 -1
  127. package/dist/dto/encryption/list-encryption-keys-query.dto.d.ts +4 -4
  128. package/dist/dto/encryption/list-encryption-keys-query.dto.js.map +1 -1
  129. package/dist/dto/evaluations/dataset-row.dto.d.ts +6 -6
  130. package/dist/dto/evaluations/dataset-row.dto.js.map +1 -1
  131. package/dist/dto/evaluations/evaluation-config.dto.d.ts +110 -110
  132. package/dist/dto/evaluations/evaluation-config.dto.js +2 -1
  133. package/dist/dto/evaluations/evaluation-config.dto.js.map +1 -1
  134. package/dist/dto/evaluations/evaluation-error-code.d.ts +24 -24
  135. package/dist/dto/evaluations/index.d.ts +1 -0
  136. package/dist/dto/evaluations/index.js +1 -0
  137. package/dist/dto/evaluations/index.js.map +1 -1
  138. package/dist/dto/evaluations/llm-judge-providers.d.ts +11 -0
  139. package/dist/dto/evaluations/llm-judge-providers.js +103 -0
  140. package/dist/dto/evaluations/llm-judge-providers.js.map +1 -0
  141. package/dist/dto/evaluations/public-api-test-run.dto.d.ts +9 -0
  142. package/dist/dto/executions/execution-redaction-query.dto.d.ts +3 -3
  143. package/dist/dto/folders/create-folder.dto.js.map +1 -1
  144. package/dist/dto/folders/delete-folder.dto.js.map +1 -1
  145. package/dist/dto/folders/list-folder-query.dto.d.ts +9 -9
  146. package/dist/dto/folders/list-folder-query.dto.js.map +1 -1
  147. package/dist/dto/folders/transfer-folder.dto.d.ts +1 -1
  148. package/dist/dto/folders/transfer-folder.dto.js.map +1 -1
  149. package/dist/dto/folders/update-folder.dto.d.ts +1 -1
  150. package/dist/dto/folders/update-folder.dto.js.map +1 -1
  151. package/dist/dto/index.d.ts +7 -2
  152. package/dist/dto/index.js +20 -4
  153. package/dist/dto/index.js.map +1 -1
  154. package/dist/dto/insights/date-filter.dto.d.ts +1 -1
  155. package/dist/dto/insights/date-filter.dto.js.map +1 -1
  156. package/dist/dto/insights/list-workflow-query.dto.d.ts +3 -3
  157. package/dist/dto/insights/list-workflow-query.dto.js.map +1 -1
  158. package/dist/dto/instance-ai/instance-ai-confirm-request.dto.d.ts +8 -8
  159. package/dist/dto/instance-ai/instance-ai-feedback-request.dto.d.ts +1 -1
  160. package/dist/dto/instance-ai/instance-ai-feedback-request.dto.js.map +1 -1
  161. package/dist/dto/instance-ai/instance-ai-mcp-create-connection-request.dto.d.ts +1 -1
  162. package/dist/dto/instance-ai/instance-ai-mcp-create-connection-request.dto.js.map +1 -1
  163. package/dist/dto/instance-ai/instance-ai-mcp-update-connection-request.dto.d.ts +1 -1
  164. package/dist/dto/instance-ai/instance-ai-mcp-update-connection-request.dto.js.map +1 -1
  165. package/dist/dto/instance-ai/instance-ai-rename-thread-request.dto.js.map +1 -1
  166. package/dist/dto/instance-ai-examples/instance-ai-examples-query.dto.d.ts +2 -2
  167. package/dist/dto/instance-ai-examples/instance-ai-examples-query.dto.js.map +1 -1
  168. package/dist/dto/instance-version-history/version-query.dto.d.ts +1 -1
  169. package/dist/dto/instance-version-history/version-query.dto.js.map +1 -1
  170. package/dist/dto/instance-version-history/version-since-date-query.dto.js.map +1 -1
  171. package/dist/dto/invitation/accept-invitation-request.dto.d.ts +1 -1
  172. package/dist/dto/invitation/accept-invitation-request.dto.js.map +1 -1
  173. package/dist/dto/invitation/invite-users-request.dto.d.ts +2 -2
  174. package/dist/dto/invitation/invite-users-request.dto.js.map +1 -1
  175. package/dist/dto/license/community-registered-request.dto.js.map +1 -1
  176. package/dist/dto/log-streaming/create-destination.dto.d.ts +126 -126
  177. package/dist/dto/log-streaming/delete-destination-query.dto.js.map +1 -1
  178. package/dist/dto/log-streaming/get-destination-query.dto.js.map +1 -1
  179. package/dist/dto/log-streaming/public-destination.dto.d.ts +881 -0
  180. package/dist/dto/log-streaming/public-destination.dto.js +53 -0
  181. package/dist/dto/log-streaming/public-destination.dto.js.map +1 -0
  182. package/dist/dto/log-streaming/test-destination-query.dto.js.map +1 -1
  183. package/dist/dto/node-types/get-node-types-by-identifier.dto.js.map +1 -1
  184. package/dist/dto/oauth/oauth-client.dto.d.ts +142 -10
  185. package/dist/dto/oauth/oauth-client.dto.js +34 -12
  186. package/dist/dto/oauth/oauth-client.dto.js.map +1 -1
  187. package/dist/dto/oidc/config.dto.d.ts +3 -3
  188. package/dist/dto/oidc/config.dto.js.map +1 -1
  189. package/dist/dto/oidc/test-oidc-config-response.dto.js.map +1 -1
  190. package/dist/dto/otel/test-otel-connection.dto.d.ts +1 -1
  191. package/dist/dto/otel/test-otel-connection.dto.js.map +1 -1
  192. package/dist/dto/otel/update-otel-settings.dto.d.ts +1 -1
  193. package/dist/dto/otel/update-otel-settings.dto.js.map +1 -1
  194. package/dist/dto/owner/dismiss-banner-request.dto.js.map +1 -1
  195. package/dist/dto/owner/owner-setup-request.dto.d.ts +1 -1
  196. package/dist/dto/owner/owner-setup-request.dto.js.map +1 -1
  197. package/dist/dto/packages/export-package-request.dto.d.ts +5 -1
  198. package/dist/dto/packages/export-package-request.dto.js +5 -0
  199. package/dist/dto/packages/export-package-request.dto.js.map +1 -1
  200. package/dist/dto/packages/import-package-request.dto.d.ts +13 -7
  201. package/dist/dto/packages/import-package-request.dto.js +12 -0
  202. package/dist/dto/packages/import-package-request.dto.js.map +1 -1
  203. package/dist/dto/pagination/pagination.dto.js.map +1 -1
  204. package/dist/dto/password-reset/change-password-request.dto.js.map +1 -1
  205. package/dist/dto/password-reset/forgot-password-request.dto.js.map +1 -1
  206. package/dist/dto/password-reset/resolve-password-token-query.dto.js.map +1 -1
  207. package/dist/dto/project/add-users-to-project.dto.d.ts +3 -3
  208. package/dist/dto/project/add-users-to-project.dto.js.map +1 -1
  209. package/dist/dto/project/change-user-role-in-project.dto.js.map +1 -1
  210. package/dist/dto/project/create-project.dto.d.ts +3 -3
  211. package/dist/dto/project/create-project.dto.js.map +1 -1
  212. package/dist/dto/project/delete-project.dto.js.map +1 -1
  213. package/dist/dto/project/list-projects-query.dto.d.ts +2 -2
  214. package/dist/dto/project/list-projects-query.dto.js.map +1 -1
  215. package/dist/dto/project/update-project.dto.d.ts +29 -29
  216. package/dist/dto/project/update-project.dto.js.map +1 -1
  217. package/dist/dto/provisioning/config.dto.js.map +1 -1
  218. package/dist/dto/quick-connect/create-quick-connect-credential.dto.js.map +1 -1
  219. package/dist/dto/roles/create-role-mapping-rule.dto.d.ts +2 -2
  220. package/dist/dto/roles/create-role-mapping-rule.dto.js.map +1 -1
  221. package/dist/dto/roles/create-role.dto.d.ts +2 -2
  222. package/dist/dto/roles/create-role.dto.js.map +1 -1
  223. package/dist/dto/roles/list-role-mapping-rule-query.dto.d.ts +3 -3
  224. package/dist/dto/roles/list-role-mapping-rule-query.dto.js.map +1 -1
  225. package/dist/dto/roles/move-role-mapping-rule.dto.js.map +1 -1
  226. package/dist/dto/roles/patch-role-mapping-rule.dto.d.ts +2 -2
  227. package/dist/dto/roles/patch-role-mapping-rule.dto.js.map +1 -1
  228. package/dist/dto/roles/role-assignments-response.dto.d.ts +9 -9
  229. package/dist/dto/roles/role-assignments-response.dto.js.map +1 -1
  230. package/dist/dto/roles/role-get-query.dto.d.ts +1 -1
  231. package/dist/dto/roles/role-get-query.dto.js.map +1 -1
  232. package/dist/dto/roles/role-list-query.dto.d.ts +1 -1
  233. package/dist/dto/roles/role-list-query.dto.js.map +1 -1
  234. package/dist/dto/roles/role-member.schema.d.ts +4 -4
  235. package/dist/dto/roles/role-members-response.dto.d.ts +7 -7
  236. package/dist/dto/roles/role-members-response.dto.js.map +1 -1
  237. package/dist/dto/roles/role-project-members-response.dto.d.ts +6 -6
  238. package/dist/dto/roles/role-project-members-response.dto.js.map +1 -1
  239. package/dist/dto/roles/update-role.dto.js.map +1 -1
  240. package/dist/dto/saml/saml-acs.dto.js.map +1 -1
  241. package/dist/dto/saml/saml-configuration-response.dto.d.ts +5 -0
  242. package/dist/dto/saml/saml-configuration-response.dto.js +3 -0
  243. package/dist/dto/saml/saml-configuration-response.dto.js.map +1 -0
  244. package/dist/dto/saml/saml-preferences.dto.d.ts +113 -20
  245. package/dist/dto/saml/saml-preferences.dto.js +34 -1
  246. package/dist/dto/saml/saml-preferences.dto.js.map +1 -1
  247. package/dist/dto/saml/saml-toggle.dto.js.map +1 -1
  248. package/dist/dto/secrets-provider/create-secrets-provider-connection.dto.d.ts +3 -3
  249. package/dist/dto/secrets-provider/create-secrets-provider-connection.dto.js.map +1 -1
  250. package/dist/dto/secrets-provider/set-secrets-provider-connection-is-enabled.dto.js.map +1 -1
  251. package/dist/dto/secrets-provider/update-external-secrets-settings.dto.js.map +1 -1
  252. package/dist/dto/secrets-provider/update-secrets-provider-connection.dto.d.ts +2 -2
  253. package/dist/dto/secrets-provider/update-secrets-provider-connection.dto.js.map +1 -1
  254. package/dist/dto/security-settings/security-policy.dto.d.ts +11 -11
  255. package/dist/dto/security-settings/security-policy.dto.js +3 -3
  256. package/dist/dto/security-settings/security-policy.dto.js.map +1 -1
  257. package/dist/dto/security-settings/security-settings.dto.d.ts +6 -6
  258. package/dist/dto/security-settings/security-settings.dto.js.map +1 -1
  259. package/dist/dto/source-control/pull-work-folder-request.dto.d.ts +1 -1
  260. package/dist/dto/source-control/pull-work-folder-request.dto.js.map +1 -1
  261. package/dist/dto/source-control/push-work-folder-request.dto.d.ts +14 -14
  262. package/dist/dto/source-control/push-work-folder-request.dto.js.map +1 -1
  263. package/dist/dto/tag/create-or-update-tag-request.dto.js.map +1 -1
  264. package/dist/dto/tag/list-tags-query.dto.d.ts +11 -0
  265. package/dist/dto/tag/list-tags-query.dto.js +13 -0
  266. package/dist/dto/tag/list-tags-query.dto.js.map +1 -0
  267. package/dist/dto/tag/retrieve-tag-query.dto.d.ts +1 -1
  268. package/dist/dto/tag/retrieve-tag-query.dto.js.map +1 -1
  269. package/dist/dto/tag/tag-public.dto.d.ts +60 -0
  270. package/dist/dto/tag/tag-public.dto.js +26 -0
  271. package/dist/dto/tag/tag-public.dto.js.map +1 -0
  272. package/dist/dto/user/password-update-request.dto.js.map +1 -1
  273. package/dist/dto/user/role-change-request.dto.js.map +1 -1
  274. package/dist/dto/user/settings-update-request.dto.js.map +1 -1
  275. package/dist/dto/user/user-self-settings-update-request.dto.js.map +1 -1
  276. package/dist/dto/user/user-update-request.dto.d.ts +1 -1
  277. package/dist/dto/user/user-update-request.dto.js.map +1 -1
  278. package/dist/dto/user/users-list-filter.dto.d.ts +12 -12
  279. package/dist/dto/user/users-list-filter.dto.js.map +1 -1
  280. package/dist/dto/variables/base.dto.d.ts +2 -2
  281. package/dist/dto/variables/base.dto.js.map +1 -1
  282. package/dist/dto/variables/create-variable-request.dto.d.ts +1 -1
  283. package/dist/dto/variables/create-variable-request.dto.js.map +1 -1
  284. package/dist/dto/variables/update-variable-request.dto.d.ts +2 -2
  285. package/dist/dto/variables/update-variable-request.dto.js.map +1 -1
  286. package/dist/dto/variables/variables-list-request.dto.d.ts +1 -1
  287. package/dist/dto/variables/variables-list-request.dto.js.map +1 -1
  288. package/dist/dto/workflow-history/update-workflow-history-version.dto.js.map +1 -1
  289. package/dist/dto/workflow-history/workflow-history-lookup.dto.d.ts +1 -1
  290. package/dist/dto/workflow-history/workflow-history-versions-by-ids.dto.js.map +1 -1
  291. package/dist/dto/workflows/activate-workflow.dto.js.map +1 -1
  292. package/dist/dto/workflows/archive-workflow.dto.js.map +1 -1
  293. package/dist/dto/workflows/base-workflow.dto.d.ts +6 -0
  294. package/dist/dto/workflows/base-workflow.dto.js +7 -0
  295. package/dist/dto/workflows/base-workflow.dto.js.map +1 -1
  296. package/dist/dto/workflows/create-workflow.dto.d.ts +13 -9
  297. package/dist/dto/workflows/create-workflow.dto.js.map +1 -1
  298. package/dist/dto/workflows/deactivate-workflow.dto.js.map +1 -1
  299. package/dist/dto/workflows/get-resource-dependencies.dto.d.ts +1 -1
  300. package/dist/dto/workflows/get-resource-dependencies.dto.js.map +1 -1
  301. package/dist/dto/workflows/get-resource-dependency-counts.dto.d.ts +1 -1
  302. package/dist/dto/workflows/get-resource-dependency-counts.dto.js.map +1 -1
  303. package/dist/dto/workflows/import-workflow-from-url.dto.js.map +1 -1
  304. package/dist/dto/workflows/manual-run.dto.d.ts +23 -23
  305. package/dist/dto/workflows/transfer.dto.js.map +1 -1
  306. package/dist/dto/workflows/update-workflow.dto.d.ts +8 -4
  307. package/dist/dto/workflows/update-workflow.dto.js.map +1 -1
  308. package/dist/frontend-settings.d.ts +10 -1
  309. package/dist/frontend-settings.js +8 -0
  310. package/dist/frontend-settings.js.map +1 -1
  311. package/dist/index.d.ts +7 -6
  312. package/dist/index.js +22 -3
  313. package/dist/index.js.map +1 -1
  314. package/dist/instance-registry-types.d.ts +52 -52
  315. package/dist/instance-registry-types.js.map +1 -1
  316. package/dist/push/execution.d.ts +2 -0
  317. package/dist/push/heartbeat.js.map +1 -1
  318. package/dist/push/workflow.d.ts +1 -0
  319. package/dist/schemas/agent-run-reducer.js +51 -7
  320. package/dist/schemas/agent-run-reducer.js.map +1 -1
  321. package/dist/schemas/banner-name.schema.js.map +1 -1
  322. package/dist/schemas/boolean-from-string.d.ts +1 -1
  323. package/dist/schemas/breaking-changes.schema.d.ts +252 -252
  324. package/dist/schemas/breaking-changes.schema.js.map +1 -1
  325. package/dist/schemas/credential-resolver.schema.d.ts +12 -12
  326. package/dist/schemas/credential-resolver.schema.js.map +1 -1
  327. package/dist/schemas/credential-response.schema.d.ts +8 -8
  328. package/dist/schemas/data-table-filter.schema.d.ts +12 -12
  329. package/dist/schemas/data-table-filter.schema.js.map +1 -1
  330. package/dist/schemas/data-table.schema.d.ts +14 -14
  331. package/dist/schemas/data-table.schema.js.map +1 -1
  332. package/dist/schemas/encryption-key.schema.d.ts +14 -14
  333. package/dist/schemas/encryption-key.schema.js.map +1 -1
  334. package/dist/schemas/eval-collections.schema.d.ts +18 -15
  335. package/dist/schemas/eval-collections.schema.js +19 -1
  336. package/dist/schemas/eval-collections.schema.js.map +1 -1
  337. package/dist/schemas/eval-insights.schema.d.ts +29 -29
  338. package/dist/schemas/eval-insights.schema.js.map +1 -1
  339. package/dist/schemas/evaluations.schema.d.ts +5 -0
  340. package/dist/schemas/evaluations.schema.js +1 -0
  341. package/dist/schemas/evaluations.schema.js.map +1 -1
  342. package/dist/schemas/favorites.schema.d.ts +1 -1
  343. package/dist/schemas/insights.schema.d.ts +76 -68
  344. package/dist/schemas/insights.schema.js +1 -0
  345. package/dist/schemas/insights.schema.js.map +1 -1
  346. package/dist/schemas/instance-ai.schema.d.ts +1115 -820
  347. package/dist/schemas/instance-ai.schema.js +55 -7
  348. package/dist/schemas/instance-ai.schema.js.map +1 -1
  349. package/dist/schemas/llm-step-display.js.map +1 -1
  350. package/dist/schemas/mcp.schema.d.ts +15 -0
  351. package/dist/schemas/mcp.schema.js +31 -1
  352. package/dist/schemas/mcp.schema.js.map +1 -1
  353. package/dist/schemas/password.schema.js.map +1 -1
  354. package/dist/schemas/project.schema.d.ts +4 -4
  355. package/dist/schemas/secrets-provider.schema.d.ts +24 -24
  356. package/dist/schemas/secrets-provider.schema.js.map +1 -1
  357. package/dist/schemas/source-controlled-file.schema.d.ts +8 -8
  358. package/dist/schemas/source-controlled-file.schema.js.map +1 -1
  359. package/dist/schemas/timezone.schema.js.map +1 -1
  360. package/dist/schemas/usage.schema.d.ts +32 -32
  361. package/dist/schemas/user-settings.schema.d.ts +8 -8
  362. package/dist/schemas/user-settings.schema.js.map +1 -1
  363. package/dist/schemas/user.schema.d.ts +111 -111
  364. package/dist/schemas/user.schema.js.map +1 -1
  365. package/dist/schemas/workflow-execution-status.schema.d.ts +10 -10
  366. package/dist/schemas/workflow-publication-status.schema.d.ts +6 -6
  367. package/dist/schemas/workflow-version.schema.js.map +1 -1
  368. package/dist/utils/allowed-domains.js.map +1 -1
  369. package/dist/zod-class.js.map +1 -1
  370. package/package.json +6 -6
@@ -0,0 +1,4007 @@
1
+ import { z } from 'zod';
2
+ export declare const InlineAgentJsonConfigSchema: z.ZodObject<Pick<{
3
+ name: z.ZodString;
4
+ model: z.ZodUnion<[z.ZodLiteral<"">, z.ZodString]>;
5
+ credential: z.ZodOptional<z.ZodString>;
6
+ instructions: z.ZodString;
7
+ personalisation: z.ZodOptional<z.ZodObject<{
8
+ icon: z.ZodString;
9
+ gradient: z.ZodDefault<z.ZodObject<{
10
+ from: z.ZodString;
11
+ to: z.ZodString;
12
+ angle: z.ZodDefault<z.ZodNumber>;
13
+ fromStop: z.ZodDefault<z.ZodNumber>;
14
+ toStop: z.ZodDefault<z.ZodNumber>;
15
+ }, "strict", z.ZodTypeAny, {
16
+ from: string;
17
+ to: string;
18
+ angle: number;
19
+ fromStop: number;
20
+ toStop: number;
21
+ }, {
22
+ from: string;
23
+ to: string;
24
+ angle?: number | undefined;
25
+ fromStop?: number | undefined;
26
+ toStop?: number | undefined;
27
+ }>>;
28
+ }, "strict", z.ZodTypeAny, {
29
+ icon: string;
30
+ gradient: {
31
+ from: string;
32
+ to: string;
33
+ angle: number;
34
+ fromStop: number;
35
+ toStop: number;
36
+ };
37
+ }, {
38
+ icon: string;
39
+ gradient?: {
40
+ from: string;
41
+ to: string;
42
+ angle?: number | undefined;
43
+ fromStop?: number | undefined;
44
+ toStop?: number | undefined;
45
+ } | undefined;
46
+ }>>;
47
+ memory: z.ZodOptional<z.ZodObject<{
48
+ enabled: z.ZodBoolean;
49
+ storage: z.ZodEnum<["n8n"]>;
50
+ observationalMemory: z.ZodOptional<z.ZodObject<{
51
+ enabled: z.ZodOptional<z.ZodBoolean>;
52
+ observerModel: z.ZodOptional<z.ZodObject<{
53
+ model: z.ZodString;
54
+ credential: z.ZodString;
55
+ }, "strip", z.ZodTypeAny, {
56
+ model: string;
57
+ credential: string;
58
+ }, {
59
+ model: string;
60
+ credential: string;
61
+ }>>;
62
+ reflectorModel: z.ZodOptional<z.ZodObject<{
63
+ model: z.ZodString;
64
+ credential: z.ZodString;
65
+ }, "strip", z.ZodTypeAny, {
66
+ model: string;
67
+ credential: string;
68
+ }, {
69
+ model: string;
70
+ credential: string;
71
+ }>>;
72
+ observerThresholdTokens: z.ZodOptional<z.ZodNumber>;
73
+ reflectorThresholdTokens: z.ZodOptional<z.ZodNumber>;
74
+ renderTokenBudget: z.ZodOptional<z.ZodNumber>;
75
+ observationLogTailLimit: z.ZodOptional<z.ZodNumber>;
76
+ lockTtlMs: z.ZodOptional<z.ZodNumber>;
77
+ }, "strip", z.ZodTypeAny, {
78
+ enabled?: boolean | undefined;
79
+ observerModel?: {
80
+ model: string;
81
+ credential: string;
82
+ } | undefined;
83
+ reflectorModel?: {
84
+ model: string;
85
+ credential: string;
86
+ } | undefined;
87
+ observerThresholdTokens?: number | undefined;
88
+ reflectorThresholdTokens?: number | undefined;
89
+ renderTokenBudget?: number | undefined;
90
+ observationLogTailLimit?: number | undefined;
91
+ lockTtlMs?: number | undefined;
92
+ }, {
93
+ enabled?: boolean | undefined;
94
+ observerModel?: {
95
+ model: string;
96
+ credential: string;
97
+ } | undefined;
98
+ reflectorModel?: {
99
+ model: string;
100
+ credential: string;
101
+ } | undefined;
102
+ observerThresholdTokens?: number | undefined;
103
+ reflectorThresholdTokens?: number | undefined;
104
+ renderTokenBudget?: number | undefined;
105
+ observationLogTailLimit?: number | undefined;
106
+ lockTtlMs?: number | undefined;
107
+ }>>;
108
+ episodicMemory: z.ZodOptional<z.ZodDiscriminatedUnion<"enabled", [z.ZodObject<{
109
+ enabled: z.ZodLiteral<false>;
110
+ }, "strip", z.ZodTypeAny, {
111
+ enabled: false;
112
+ }, {
113
+ enabled: false;
114
+ }>, z.ZodObject<{
115
+ enabled: z.ZodLiteral<true>;
116
+ credential: z.ZodUnion<[z.ZodLiteral<"managed">, z.ZodString]>;
117
+ extractorModel: z.ZodOptional<z.ZodObject<{
118
+ model: z.ZodString;
119
+ credential: z.ZodString;
120
+ }, "strip", z.ZodTypeAny, {
121
+ model: string;
122
+ credential: string;
123
+ }, {
124
+ model: string;
125
+ credential: string;
126
+ }>>;
127
+ reflectorModel: z.ZodOptional<z.ZodObject<{
128
+ model: z.ZodString;
129
+ credential: z.ZodString;
130
+ }, "strip", z.ZodTypeAny, {
131
+ model: string;
132
+ credential: string;
133
+ }, {
134
+ model: string;
135
+ credential: string;
136
+ }>>;
137
+ topK: z.ZodOptional<z.ZodNumber>;
138
+ maxEntriesPerRun: z.ZodOptional<z.ZodNumber>;
139
+ }, "strip", z.ZodTypeAny, {
140
+ enabled: true;
141
+ credential: string;
142
+ extractorModel?: {
143
+ model: string;
144
+ credential: string;
145
+ } | undefined;
146
+ reflectorModel?: {
147
+ model: string;
148
+ credential: string;
149
+ } | undefined;
150
+ topK?: number | undefined;
151
+ maxEntriesPerRun?: number | undefined;
152
+ }, {
153
+ enabled: true;
154
+ credential: string;
155
+ extractorModel?: {
156
+ model: string;
157
+ credential: string;
158
+ } | undefined;
159
+ reflectorModel?: {
160
+ model: string;
161
+ credential: string;
162
+ } | undefined;
163
+ topK?: number | undefined;
164
+ maxEntriesPerRun?: number | undefined;
165
+ }>]>>;
166
+ }, "strip", z.ZodTypeAny, {
167
+ enabled: boolean;
168
+ storage: "n8n";
169
+ observationalMemory?: {
170
+ enabled?: boolean | undefined;
171
+ observerModel?: {
172
+ model: string;
173
+ credential: string;
174
+ } | undefined;
175
+ reflectorModel?: {
176
+ model: string;
177
+ credential: string;
178
+ } | undefined;
179
+ observerThresholdTokens?: number | undefined;
180
+ reflectorThresholdTokens?: number | undefined;
181
+ renderTokenBudget?: number | undefined;
182
+ observationLogTailLimit?: number | undefined;
183
+ lockTtlMs?: number | undefined;
184
+ } | undefined;
185
+ episodicMemory?: {
186
+ enabled: false;
187
+ } | {
188
+ enabled: true;
189
+ credential: string;
190
+ extractorModel?: {
191
+ model: string;
192
+ credential: string;
193
+ } | undefined;
194
+ reflectorModel?: {
195
+ model: string;
196
+ credential: string;
197
+ } | undefined;
198
+ topK?: number | undefined;
199
+ maxEntriesPerRun?: number | undefined;
200
+ } | undefined;
201
+ }, {
202
+ enabled: boolean;
203
+ storage: "n8n";
204
+ observationalMemory?: {
205
+ enabled?: boolean | undefined;
206
+ observerModel?: {
207
+ model: string;
208
+ credential: string;
209
+ } | undefined;
210
+ reflectorModel?: {
211
+ model: string;
212
+ credential: string;
213
+ } | undefined;
214
+ observerThresholdTokens?: number | undefined;
215
+ reflectorThresholdTokens?: number | undefined;
216
+ renderTokenBudget?: number | undefined;
217
+ observationLogTailLimit?: number | undefined;
218
+ lockTtlMs?: number | undefined;
219
+ } | undefined;
220
+ episodicMemory?: {
221
+ enabled: false;
222
+ } | {
223
+ enabled: true;
224
+ credential: string;
225
+ extractorModel?: {
226
+ model: string;
227
+ credential: string;
228
+ } | undefined;
229
+ reflectorModel?: {
230
+ model: string;
231
+ credential: string;
232
+ } | undefined;
233
+ topK?: number | undefined;
234
+ maxEntriesPerRun?: number | undefined;
235
+ } | undefined;
236
+ }>>;
237
+ subAgents: z.ZodOptional<z.ZodObject<{
238
+ maxChildren: z.ZodOptional<z.ZodNumber>;
239
+ agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
240
+ agentId: z.ZodString;
241
+ useWhen: z.ZodOptional<z.ZodString>;
242
+ }, "strict", z.ZodTypeAny, {
243
+ agentId: string;
244
+ useWhen?: string | undefined;
245
+ }, {
246
+ agentId: string;
247
+ useWhen?: string | undefined;
248
+ }>, "many">>;
249
+ modelsByDifficulty: z.ZodOptional<z.ZodObject<{
250
+ low: z.ZodOptional<z.ZodObject<{
251
+ model: z.ZodString;
252
+ credential: z.ZodString;
253
+ }, "strict", z.ZodTypeAny, {
254
+ model: string;
255
+ credential: string;
256
+ }, {
257
+ model: string;
258
+ credential: string;
259
+ }>>;
260
+ medium: z.ZodOptional<z.ZodObject<{
261
+ model: z.ZodString;
262
+ credential: z.ZodString;
263
+ }, "strict", z.ZodTypeAny, {
264
+ model: string;
265
+ credential: string;
266
+ }, {
267
+ model: string;
268
+ credential: string;
269
+ }>>;
270
+ high: z.ZodOptional<z.ZodObject<{
271
+ model: z.ZodString;
272
+ credential: z.ZodString;
273
+ }, "strict", z.ZodTypeAny, {
274
+ model: string;
275
+ credential: string;
276
+ }, {
277
+ model: string;
278
+ credential: string;
279
+ }>>;
280
+ }, "strict", z.ZodTypeAny, {
281
+ low?: {
282
+ model: string;
283
+ credential: string;
284
+ } | undefined;
285
+ medium?: {
286
+ model: string;
287
+ credential: string;
288
+ } | undefined;
289
+ high?: {
290
+ model: string;
291
+ credential: string;
292
+ } | undefined;
293
+ }, {
294
+ low?: {
295
+ model: string;
296
+ credential: string;
297
+ } | undefined;
298
+ medium?: {
299
+ model: string;
300
+ credential: string;
301
+ } | undefined;
302
+ high?: {
303
+ model: string;
304
+ credential: string;
305
+ } | undefined;
306
+ }>>;
307
+ }, "strict", z.ZodTypeAny, {
308
+ maxChildren?: number | undefined;
309
+ agents?: {
310
+ agentId: string;
311
+ useWhen?: string | undefined;
312
+ }[] | undefined;
313
+ modelsByDifficulty?: {
314
+ low?: {
315
+ model: string;
316
+ credential: string;
317
+ } | undefined;
318
+ medium?: {
319
+ model: string;
320
+ credential: string;
321
+ } | undefined;
322
+ high?: {
323
+ model: string;
324
+ credential: string;
325
+ } | undefined;
326
+ } | undefined;
327
+ }, {
328
+ maxChildren?: number | undefined;
329
+ agents?: {
330
+ agentId: string;
331
+ useWhen?: string | undefined;
332
+ }[] | undefined;
333
+ modelsByDifficulty?: {
334
+ low?: {
335
+ model: string;
336
+ credential: string;
337
+ } | undefined;
338
+ medium?: {
339
+ model: string;
340
+ credential: string;
341
+ } | undefined;
342
+ high?: {
343
+ model: string;
344
+ credential: string;
345
+ } | undefined;
346
+ } | undefined;
347
+ }>>;
348
+ tools: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
349
+ type: z.ZodLiteral<"custom">;
350
+ id: z.ZodString;
351
+ requireApproval: z.ZodOptional<z.ZodBoolean>;
352
+ }, "strip", z.ZodTypeAny, {
353
+ type: "custom";
354
+ id: string;
355
+ requireApproval?: boolean | undefined;
356
+ }, {
357
+ type: "custom";
358
+ id: string;
359
+ requireApproval?: boolean | undefined;
360
+ }>, z.ZodObject<{
361
+ type: z.ZodLiteral<"workflow">;
362
+ workflow: z.ZodString;
363
+ name: z.ZodOptional<z.ZodString>;
364
+ description: z.ZodOptional<z.ZodString>;
365
+ requireApproval: z.ZodOptional<z.ZodBoolean>;
366
+ allOutputs: z.ZodOptional<z.ZodBoolean>;
367
+ }, "strict", z.ZodTypeAny, {
368
+ type: "workflow";
369
+ workflow: string;
370
+ name?: string | undefined;
371
+ description?: string | undefined;
372
+ requireApproval?: boolean | undefined;
373
+ allOutputs?: boolean | undefined;
374
+ }, {
375
+ type: "workflow";
376
+ workflow: string;
377
+ name?: string | undefined;
378
+ description?: string | undefined;
379
+ requireApproval?: boolean | undefined;
380
+ allOutputs?: boolean | undefined;
381
+ }>, z.ZodObject<{
382
+ type: z.ZodLiteral<"node">;
383
+ name: z.ZodString;
384
+ description: z.ZodOptional<z.ZodString>;
385
+ inputSchema: z.ZodOptional<z.ZodNever>;
386
+ node: z.ZodObject<{
387
+ nodeType: z.ZodString;
388
+ nodeTypeVersion: z.ZodNumber;
389
+ nodeParameters: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
390
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
391
+ id: z.ZodString;
392
+ name: z.ZodString;
393
+ }, "strip", z.ZodTypeAny, {
394
+ id: string;
395
+ name: string;
396
+ }, {
397
+ id: string;
398
+ name: string;
399
+ }>>>;
400
+ }, "strip", z.ZodTypeAny, {
401
+ nodeType: string;
402
+ nodeTypeVersion: number;
403
+ nodeParameters: Record<string, unknown>;
404
+ credentials?: Record<string, {
405
+ id: string;
406
+ name: string;
407
+ }> | undefined;
408
+ }, {
409
+ nodeType: string;
410
+ nodeTypeVersion: number;
411
+ nodeParameters?: Record<string, unknown> | undefined;
412
+ credentials?: Record<string, {
413
+ id: string;
414
+ name: string;
415
+ }> | undefined;
416
+ }>;
417
+ requireApproval: z.ZodOptional<z.ZodBoolean>;
418
+ }, "strict", z.ZodTypeAny, {
419
+ type: "node";
420
+ name: string;
421
+ description?: string | undefined;
422
+ inputSchema?: undefined;
423
+ node: {
424
+ nodeType: string;
425
+ nodeTypeVersion: number;
426
+ nodeParameters: Record<string, unknown>;
427
+ credentials?: Record<string, {
428
+ id: string;
429
+ name: string;
430
+ }> | undefined;
431
+ };
432
+ requireApproval?: boolean | undefined;
433
+ }, {
434
+ type: "node";
435
+ name: string;
436
+ description?: string | undefined;
437
+ inputSchema?: undefined;
438
+ node: {
439
+ nodeType: string;
440
+ nodeTypeVersion: number;
441
+ nodeParameters?: Record<string, unknown> | undefined;
442
+ credentials?: Record<string, {
443
+ id: string;
444
+ name: string;
445
+ }> | undefined;
446
+ };
447
+ requireApproval?: boolean | undefined;
448
+ }>]>, "many">, ({
449
+ type: "workflow";
450
+ workflow: string;
451
+ name?: string | undefined;
452
+ description?: string | undefined;
453
+ requireApproval?: boolean | undefined;
454
+ allOutputs?: boolean | undefined;
455
+ } | {
456
+ type: "node";
457
+ name: string;
458
+ description?: string | undefined;
459
+ inputSchema?: undefined;
460
+ node: {
461
+ nodeType: string;
462
+ nodeTypeVersion: number;
463
+ nodeParameters: Record<string, unknown>;
464
+ credentials?: Record<string, {
465
+ id: string;
466
+ name: string;
467
+ }> | undefined;
468
+ };
469
+ requireApproval?: boolean | undefined;
470
+ } | {
471
+ type: "custom";
472
+ id: string;
473
+ requireApproval?: boolean | undefined;
474
+ })[], ({
475
+ type: "workflow";
476
+ workflow: string;
477
+ name?: string | undefined;
478
+ description?: string | undefined;
479
+ requireApproval?: boolean | undefined;
480
+ allOutputs?: boolean | undefined;
481
+ } | {
482
+ type: "node";
483
+ name: string;
484
+ description?: string | undefined;
485
+ inputSchema?: undefined;
486
+ node: {
487
+ nodeType: string;
488
+ nodeTypeVersion: number;
489
+ nodeParameters?: Record<string, unknown> | undefined;
490
+ credentials?: Record<string, {
491
+ id: string;
492
+ name: string;
493
+ }> | undefined;
494
+ };
495
+ requireApproval?: boolean | undefined;
496
+ } | {
497
+ type: "custom";
498
+ id: string;
499
+ requireApproval?: boolean | undefined;
500
+ })[]>>;
501
+ skills: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
502
+ type: z.ZodLiteral<"skill">;
503
+ id: z.ZodString;
504
+ }, "strip", z.ZodTypeAny, {
505
+ type: "skill";
506
+ id: string;
507
+ }, {
508
+ type: "skill";
509
+ id: string;
510
+ }>, "many">, {
511
+ type: "skill";
512
+ id: string;
513
+ }[], {
514
+ type: "skill";
515
+ id: string;
516
+ }[]>>;
517
+ tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
518
+ type: z.ZodLiteral<"task">;
519
+ id: z.ZodString;
520
+ enabled: z.ZodBoolean;
521
+ }, "strip", z.ZodTypeAny, {
522
+ type: "task";
523
+ id: string;
524
+ enabled: boolean;
525
+ }, {
526
+ type: "task";
527
+ id: string;
528
+ enabled: boolean;
529
+ }>, "many">>;
530
+ providerTools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
531
+ integrations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", readonly [z.ZodObject<{
532
+ type: z.ZodLiteral<"telegram">;
533
+ credentialId: z.ZodString;
534
+ } & {
535
+ settings: z.ZodOptional<z.ZodEffects<z.ZodObject<{
536
+ accessMode: z.ZodEnum<["private", "public"]>;
537
+ allowedUsers: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodString, "many">>, string[], string[] | undefined>;
538
+ }, "strict", z.ZodTypeAny, {
539
+ accessMode: "private" | "public";
540
+ allowedUsers: string[];
541
+ }, {
542
+ accessMode: "private" | "public";
543
+ allowedUsers?: string[] | undefined;
544
+ }>, {
545
+ accessMode: "private" | "public";
546
+ allowedUsers: string[];
547
+ }, {
548
+ accessMode: "private" | "public";
549
+ allowedUsers?: string[] | undefined;
550
+ }>>;
551
+ }, "strip", z.ZodTypeAny, {
552
+ type: "telegram";
553
+ credentialId: string;
554
+ settings?: {
555
+ accessMode: "private" | "public";
556
+ allowedUsers: string[];
557
+ } | undefined;
558
+ }, {
559
+ type: "telegram";
560
+ credentialId: string;
561
+ settings?: {
562
+ accessMode: "private" | "public";
563
+ allowedUsers?: string[] | undefined;
564
+ } | undefined;
565
+ }>, z.ZodObject<{
566
+ type: z.ZodLiteral<"slack">;
567
+ credentialId: z.ZodString;
568
+ }, "strip", z.ZodTypeAny, {
569
+ type: "slack";
570
+ credentialId: string;
571
+ }, {
572
+ type: "slack";
573
+ credentialId: string;
574
+ }>, z.ZodObject<{
575
+ type: z.ZodLiteral<"linear">;
576
+ credentialId: z.ZodString;
577
+ }, "strip", z.ZodTypeAny, {
578
+ type: "linear";
579
+ credentialId: string;
580
+ }, {
581
+ type: "linear";
582
+ credentialId: string;
583
+ }>]>, "many">>;
584
+ mcpServers: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
585
+ name: z.ZodString;
586
+ description: z.ZodOptional<z.ZodString>;
587
+ url: z.ZodString;
588
+ transport: z.ZodDefault<z.ZodEnum<["sse", "streamableHttp"]>>;
589
+ authentication: z.ZodDefault<z.ZodUnion<[z.ZodEnum<["none", "bearerAuth", "headerAuth", "multipleHeadersAuth", "mcpOAuth2Api"]>, z.ZodString]>>;
590
+ credential: z.ZodOptional<z.ZodString>;
591
+ metadata: z.ZodOptional<z.ZodObject<{
592
+ nodeTypeName: z.ZodOptional<z.ZodString>;
593
+ }, "strip", z.ZodTypeAny, {
594
+ nodeTypeName?: string | undefined;
595
+ }, {
596
+ nodeTypeName?: string | undefined;
597
+ }>>;
598
+ toolFilter: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
599
+ mode: z.ZodLiteral<"allow">;
600
+ tools: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
601
+ }, "strict", z.ZodTypeAny, {
602
+ mode: "allow";
603
+ tools: string[];
604
+ }, {
605
+ mode: "allow";
606
+ tools?: string[] | undefined;
607
+ }>, z.ZodObject<{
608
+ mode: z.ZodLiteral<"exclude">;
609
+ tools: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
610
+ }, "strict", z.ZodTypeAny, {
611
+ mode: "exclude";
612
+ tools: string[];
613
+ }, {
614
+ mode: "exclude";
615
+ tools?: string[] | undefined;
616
+ }>]>>;
617
+ approval: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
618
+ mode: z.ZodLiteral<"global">;
619
+ }, "strict", z.ZodTypeAny, {
620
+ mode: "global";
621
+ }, {
622
+ mode: "global";
623
+ }>, z.ZodObject<{
624
+ mode: z.ZodLiteral<"selected">;
625
+ tools: z.ZodArray<z.ZodString, "many">;
626
+ }, "strict", z.ZodTypeAny, {
627
+ mode: "selected";
628
+ tools: string[];
629
+ }, {
630
+ mode: "selected";
631
+ tools: string[];
632
+ }>]>>;
633
+ connectionTimeoutMs: z.ZodOptional<z.ZodNumber>;
634
+ }, "strict", z.ZodTypeAny, {
635
+ name: string;
636
+ description?: string | undefined;
637
+ url: string;
638
+ transport: "sse" | "streamableHttp";
639
+ authentication: string;
640
+ credential?: string | undefined;
641
+ metadata?: {
642
+ nodeTypeName?: string | undefined;
643
+ } | undefined;
644
+ toolFilter?: {
645
+ mode: "allow";
646
+ tools: string[];
647
+ } | {
648
+ mode: "exclude";
649
+ tools: string[];
650
+ } | undefined;
651
+ approval?: {
652
+ mode: "global";
653
+ } | {
654
+ mode: "selected";
655
+ tools: string[];
656
+ } | undefined;
657
+ connectionTimeoutMs?: number | undefined;
658
+ }, {
659
+ name: string;
660
+ description?: string | undefined;
661
+ url: string;
662
+ transport?: "sse" | "streamableHttp" | undefined;
663
+ authentication?: string | undefined;
664
+ credential?: string | undefined;
665
+ metadata?: {
666
+ nodeTypeName?: string | undefined;
667
+ } | undefined;
668
+ toolFilter?: {
669
+ mode: "allow";
670
+ tools?: string[] | undefined;
671
+ } | {
672
+ mode: "exclude";
673
+ tools?: string[] | undefined;
674
+ } | undefined;
675
+ approval?: {
676
+ mode: "global";
677
+ } | {
678
+ mode: "selected";
679
+ tools: string[];
680
+ } | undefined;
681
+ connectionTimeoutMs?: number | undefined;
682
+ }>, "many">, {
683
+ name: string;
684
+ description?: string | undefined;
685
+ url: string;
686
+ transport: "sse" | "streamableHttp";
687
+ authentication: string;
688
+ credential?: string | undefined;
689
+ metadata?: {
690
+ nodeTypeName?: string | undefined;
691
+ } | undefined;
692
+ toolFilter?: {
693
+ mode: "allow";
694
+ tools: string[];
695
+ } | {
696
+ mode: "exclude";
697
+ tools: string[];
698
+ } | undefined;
699
+ approval?: {
700
+ mode: "global";
701
+ } | {
702
+ mode: "selected";
703
+ tools: string[];
704
+ } | undefined;
705
+ connectionTimeoutMs?: number | undefined;
706
+ }[], {
707
+ name: string;
708
+ description?: string | undefined;
709
+ url: string;
710
+ transport?: "sse" | "streamableHttp" | undefined;
711
+ authentication?: string | undefined;
712
+ credential?: string | undefined;
713
+ metadata?: {
714
+ nodeTypeName?: string | undefined;
715
+ } | undefined;
716
+ toolFilter?: {
717
+ mode: "allow";
718
+ tools?: string[] | undefined;
719
+ } | {
720
+ mode: "exclude";
721
+ tools?: string[] | undefined;
722
+ } | undefined;
723
+ approval?: {
724
+ mode: "global";
725
+ } | {
726
+ mode: "selected";
727
+ tools: string[];
728
+ } | undefined;
729
+ connectionTimeoutMs?: number | undefined;
730
+ }[]>>;
731
+ vectorStores: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodDiscriminatedUnion<"provider", [z.ZodObject<{
732
+ name: z.ZodString;
733
+ credential: z.ZodString;
734
+ useWhen: z.ZodString;
735
+ embedding: z.ZodObject<{
736
+ model: z.ZodString;
737
+ credential: z.ZodString;
738
+ }, "strict", z.ZodTypeAny, {
739
+ model: string;
740
+ credential: string;
741
+ }, {
742
+ model: string;
743
+ credential: string;
744
+ }>;
745
+ provider: z.ZodLiteral<"pinecone">;
746
+ indexName: z.ZodString;
747
+ namespace: z.ZodOptional<z.ZodString>;
748
+ }, "strict", z.ZodTypeAny, {
749
+ name: string;
750
+ credential: string;
751
+ useWhen: string;
752
+ embedding: {
753
+ model: string;
754
+ credential: string;
755
+ };
756
+ provider: "pinecone";
757
+ indexName: string;
758
+ namespace?: string | undefined;
759
+ }, {
760
+ name: string;
761
+ credential: string;
762
+ useWhen: string;
763
+ embedding: {
764
+ model: string;
765
+ credential: string;
766
+ };
767
+ provider: "pinecone";
768
+ indexName: string;
769
+ namespace?: string | undefined;
770
+ }>, z.ZodObject<{
771
+ name: z.ZodString;
772
+ credential: z.ZodString;
773
+ useWhen: z.ZodString;
774
+ embedding: z.ZodObject<{
775
+ model: z.ZodString;
776
+ credential: z.ZodString;
777
+ }, "strict", z.ZodTypeAny, {
778
+ model: string;
779
+ credential: string;
780
+ }, {
781
+ model: string;
782
+ credential: string;
783
+ }>;
784
+ provider: z.ZodLiteral<"qdrant">;
785
+ collectionName: z.ZodString;
786
+ }, "strict", z.ZodTypeAny, {
787
+ name: string;
788
+ credential: string;
789
+ useWhen: string;
790
+ embedding: {
791
+ model: string;
792
+ credential: string;
793
+ };
794
+ provider: "qdrant";
795
+ collectionName: string;
796
+ }, {
797
+ name: string;
798
+ credential: string;
799
+ useWhen: string;
800
+ embedding: {
801
+ model: string;
802
+ credential: string;
803
+ };
804
+ provider: "qdrant";
805
+ collectionName: string;
806
+ }>, z.ZodObject<{
807
+ name: z.ZodString;
808
+ credential: z.ZodString;
809
+ useWhen: z.ZodString;
810
+ embedding: z.ZodObject<{
811
+ model: z.ZodString;
812
+ credential: z.ZodString;
813
+ }, "strict", z.ZodTypeAny, {
814
+ model: string;
815
+ credential: string;
816
+ }, {
817
+ model: string;
818
+ credential: string;
819
+ }>;
820
+ provider: z.ZodLiteral<"supabase">;
821
+ tableName: z.ZodString;
822
+ queryName: z.ZodOptional<z.ZodString>;
823
+ }, "strict", z.ZodTypeAny, {
824
+ name: string;
825
+ credential: string;
826
+ useWhen: string;
827
+ embedding: {
828
+ model: string;
829
+ credential: string;
830
+ };
831
+ provider: "supabase";
832
+ tableName: string;
833
+ queryName?: string | undefined;
834
+ }, {
835
+ name: string;
836
+ credential: string;
837
+ useWhen: string;
838
+ embedding: {
839
+ model: string;
840
+ credential: string;
841
+ };
842
+ provider: "supabase";
843
+ tableName: string;
844
+ queryName?: string | undefined;
845
+ }>, z.ZodObject<{
846
+ name: z.ZodString;
847
+ credential: z.ZodString;
848
+ useWhen: z.ZodString;
849
+ embedding: z.ZodObject<{
850
+ model: z.ZodString;
851
+ credential: z.ZodString;
852
+ }, "strict", z.ZodTypeAny, {
853
+ model: string;
854
+ credential: string;
855
+ }, {
856
+ model: string;
857
+ credential: string;
858
+ }>;
859
+ provider: z.ZodLiteral<"postgres">;
860
+ tableName: z.ZodString;
861
+ }, "strict", z.ZodTypeAny, {
862
+ name: string;
863
+ credential: string;
864
+ useWhen: string;
865
+ embedding: {
866
+ model: string;
867
+ credential: string;
868
+ };
869
+ provider: "postgres";
870
+ tableName: string;
871
+ }, {
872
+ name: string;
873
+ credential: string;
874
+ useWhen: string;
875
+ embedding: {
876
+ model: string;
877
+ credential: string;
878
+ };
879
+ provider: "postgres";
880
+ tableName: string;
881
+ }>]>, "many">, ({
882
+ name: string;
883
+ credential: string;
884
+ useWhen: string;
885
+ embedding: {
886
+ model: string;
887
+ credential: string;
888
+ };
889
+ provider: "pinecone";
890
+ indexName: string;
891
+ namespace?: string | undefined;
892
+ } | {
893
+ name: string;
894
+ credential: string;
895
+ useWhen: string;
896
+ embedding: {
897
+ model: string;
898
+ credential: string;
899
+ };
900
+ provider: "qdrant";
901
+ collectionName: string;
902
+ } | {
903
+ name: string;
904
+ credential: string;
905
+ useWhen: string;
906
+ embedding: {
907
+ model: string;
908
+ credential: string;
909
+ };
910
+ provider: "supabase";
911
+ tableName: string;
912
+ queryName?: string | undefined;
913
+ } | {
914
+ name: string;
915
+ credential: string;
916
+ useWhen: string;
917
+ embedding: {
918
+ model: string;
919
+ credential: string;
920
+ };
921
+ provider: "postgres";
922
+ tableName: string;
923
+ })[], ({
924
+ name: string;
925
+ credential: string;
926
+ useWhen: string;
927
+ embedding: {
928
+ model: string;
929
+ credential: string;
930
+ };
931
+ provider: "pinecone";
932
+ indexName: string;
933
+ namespace?: string | undefined;
934
+ } | {
935
+ name: string;
936
+ credential: string;
937
+ useWhen: string;
938
+ embedding: {
939
+ model: string;
940
+ credential: string;
941
+ };
942
+ provider: "qdrant";
943
+ collectionName: string;
944
+ } | {
945
+ name: string;
946
+ credential: string;
947
+ useWhen: string;
948
+ embedding: {
949
+ model: string;
950
+ credential: string;
951
+ };
952
+ provider: "supabase";
953
+ tableName: string;
954
+ queryName?: string | undefined;
955
+ } | {
956
+ name: string;
957
+ credential: string;
958
+ useWhen: string;
959
+ embedding: {
960
+ model: string;
961
+ credential: string;
962
+ };
963
+ provider: "postgres";
964
+ tableName: string;
965
+ })[]>>;
966
+ config: z.ZodOptional<z.ZodObject<{
967
+ thinking: z.ZodOptional<z.ZodObject<{
968
+ provider: z.ZodEnum<["anthropic", "openai"]>;
969
+ budgetTokens: z.ZodOptional<z.ZodNumber>;
970
+ reasoningEffort: z.ZodOptional<z.ZodString>;
971
+ }, "strip", z.ZodTypeAny, {
972
+ provider: "anthropic" | "openai";
973
+ budgetTokens?: number | undefined;
974
+ reasoningEffort?: string | undefined;
975
+ }, {
976
+ provider: "anthropic" | "openai";
977
+ budgetTokens?: number | undefined;
978
+ reasoningEffort?: string | undefined;
979
+ }>>;
980
+ promptCaching: z.ZodOptional<z.ZodObject<{
981
+ enabled: z.ZodBoolean;
982
+ anthropic: z.ZodOptional<z.ZodObject<{
983
+ ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
984
+ }, "strip", z.ZodTypeAny, {
985
+ ttl?: "1h" | "5m" | undefined;
986
+ }, {
987
+ ttl?: "1h" | "5m" | undefined;
988
+ }>>;
989
+ }, "strip", z.ZodTypeAny, {
990
+ enabled: boolean;
991
+ anthropic?: {
992
+ ttl?: "1h" | "5m" | undefined;
993
+ } | undefined;
994
+ }, {
995
+ enabled: boolean;
996
+ anthropic?: {
997
+ ttl?: "1h" | "5m" | undefined;
998
+ } | undefined;
999
+ }>>;
1000
+ webSearch: z.ZodOptional<z.ZodObject<{
1001
+ enabled: z.ZodBoolean;
1002
+ provider: z.ZodOptional<z.ZodEnum<["auto", "native", "brave", "searxng"]>>;
1003
+ credential: z.ZodOptional<z.ZodString>;
1004
+ }, "strip", z.ZodTypeAny, {
1005
+ enabled: boolean;
1006
+ provider?: "auto" | "brave" | "native" | "searxng" | undefined;
1007
+ credential?: string | undefined;
1008
+ }, {
1009
+ enabled: boolean;
1010
+ provider?: "auto" | "brave" | "native" | "searxng" | undefined;
1011
+ credential?: string | undefined;
1012
+ }>>;
1013
+ toolCallConcurrency: z.ZodOptional<z.ZodNumber>;
1014
+ maxIterations: z.ZodOptional<z.ZodNumber>;
1015
+ }, "strip", z.ZodTypeAny, {
1016
+ thinking?: {
1017
+ provider: "anthropic" | "openai";
1018
+ budgetTokens?: number | undefined;
1019
+ reasoningEffort?: string | undefined;
1020
+ } | undefined;
1021
+ promptCaching?: {
1022
+ enabled: boolean;
1023
+ anthropic?: {
1024
+ ttl?: "1h" | "5m" | undefined;
1025
+ } | undefined;
1026
+ } | undefined;
1027
+ webSearch?: {
1028
+ enabled: boolean;
1029
+ provider?: "auto" | "brave" | "native" | "searxng" | undefined;
1030
+ credential?: string | undefined;
1031
+ } | undefined;
1032
+ toolCallConcurrency?: number | undefined;
1033
+ maxIterations?: number | undefined;
1034
+ }, {
1035
+ thinking?: {
1036
+ provider: "anthropic" | "openai";
1037
+ budgetTokens?: number | undefined;
1038
+ reasoningEffort?: string | undefined;
1039
+ } | undefined;
1040
+ promptCaching?: {
1041
+ enabled: boolean;
1042
+ anthropic?: {
1043
+ ttl?: "1h" | "5m" | undefined;
1044
+ } | undefined;
1045
+ } | undefined;
1046
+ webSearch?: {
1047
+ enabled: boolean;
1048
+ provider?: "auto" | "brave" | "native" | "searxng" | undefined;
1049
+ credential?: string | undefined;
1050
+ } | undefined;
1051
+ toolCallConcurrency?: number | undefined;
1052
+ maxIterations?: number | undefined;
1053
+ }>>;
1054
+ }, "credential" | "instructions" | "model" | "name" | "skills"> & {
1055
+ tools: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<Omit<{
1056
+ type: z.ZodLiteral<"workflow">;
1057
+ workflow: z.ZodString;
1058
+ name: z.ZodOptional<z.ZodString>;
1059
+ description: z.ZodOptional<z.ZodString>;
1060
+ requireApproval: z.ZodOptional<z.ZodBoolean>;
1061
+ allOutputs: z.ZodOptional<z.ZodBoolean>;
1062
+ }, "requireApproval">, "strict", z.ZodTypeAny, {
1063
+ type: "workflow";
1064
+ workflow: string;
1065
+ name?: string | undefined;
1066
+ description?: string | undefined;
1067
+ allOutputs?: boolean | undefined;
1068
+ }, {
1069
+ type: "workflow";
1070
+ workflow: string;
1071
+ name?: string | undefined;
1072
+ description?: string | undefined;
1073
+ allOutputs?: boolean | undefined;
1074
+ }>, z.ZodObject<Omit<{
1075
+ type: z.ZodLiteral<"node">;
1076
+ name: z.ZodString;
1077
+ description: z.ZodOptional<z.ZodString>;
1078
+ inputSchema: z.ZodOptional<z.ZodNever>;
1079
+ node: z.ZodObject<{
1080
+ nodeType: z.ZodString;
1081
+ nodeTypeVersion: z.ZodNumber;
1082
+ nodeParameters: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1083
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1084
+ id: z.ZodString;
1085
+ name: z.ZodString;
1086
+ }, "strip", z.ZodTypeAny, {
1087
+ id: string;
1088
+ name: string;
1089
+ }, {
1090
+ id: string;
1091
+ name: string;
1092
+ }>>>;
1093
+ }, "strip", z.ZodTypeAny, {
1094
+ nodeType: string;
1095
+ nodeTypeVersion: number;
1096
+ nodeParameters: Record<string, unknown>;
1097
+ credentials?: Record<string, {
1098
+ id: string;
1099
+ name: string;
1100
+ }> | undefined;
1101
+ }, {
1102
+ nodeType: string;
1103
+ nodeTypeVersion: number;
1104
+ nodeParameters?: Record<string, unknown> | undefined;
1105
+ credentials?: Record<string, {
1106
+ id: string;
1107
+ name: string;
1108
+ }> | undefined;
1109
+ }>;
1110
+ requireApproval: z.ZodOptional<z.ZodBoolean>;
1111
+ }, "requireApproval">, "strict", z.ZodTypeAny, {
1112
+ type: "node";
1113
+ name: string;
1114
+ description?: string | undefined;
1115
+ inputSchema?: undefined;
1116
+ node: {
1117
+ nodeType: string;
1118
+ nodeTypeVersion: number;
1119
+ nodeParameters: Record<string, unknown>;
1120
+ credentials?: Record<string, {
1121
+ id: string;
1122
+ name: string;
1123
+ }> | undefined;
1124
+ };
1125
+ }, {
1126
+ type: "node";
1127
+ name: string;
1128
+ description?: string | undefined;
1129
+ inputSchema?: undefined;
1130
+ node: {
1131
+ nodeType: string;
1132
+ nodeTypeVersion: number;
1133
+ nodeParameters?: Record<string, unknown> | undefined;
1134
+ credentials?: Record<string, {
1135
+ id: string;
1136
+ name: string;
1137
+ }> | undefined;
1138
+ };
1139
+ }>]>, "many">>;
1140
+ mcpServers: z.ZodEffects<z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
1141
+ name: z.ZodString;
1142
+ description: z.ZodOptional<z.ZodString>;
1143
+ url: z.ZodString;
1144
+ transport: z.ZodDefault<z.ZodEnum<["sse", "streamableHttp"]>>;
1145
+ authentication: z.ZodDefault<z.ZodUnion<[z.ZodEnum<["none", "bearerAuth", "headerAuth", "multipleHeadersAuth", "mcpOAuth2Api"]>, z.ZodString]>>;
1146
+ credential: z.ZodOptional<z.ZodString>;
1147
+ metadata: z.ZodOptional<z.ZodObject<{
1148
+ nodeTypeName: z.ZodOptional<z.ZodString>;
1149
+ }, "strip", z.ZodTypeAny, {
1150
+ nodeTypeName?: string | undefined;
1151
+ }, {
1152
+ nodeTypeName?: string | undefined;
1153
+ }>>;
1154
+ toolFilter: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
1155
+ mode: z.ZodLiteral<"allow">;
1156
+ tools: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1157
+ }, "strict", z.ZodTypeAny, {
1158
+ mode: "allow";
1159
+ tools: string[];
1160
+ }, {
1161
+ mode: "allow";
1162
+ tools?: string[] | undefined;
1163
+ }>, z.ZodObject<{
1164
+ mode: z.ZodLiteral<"exclude">;
1165
+ tools: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1166
+ }, "strict", z.ZodTypeAny, {
1167
+ mode: "exclude";
1168
+ tools: string[];
1169
+ }, {
1170
+ mode: "exclude";
1171
+ tools?: string[] | undefined;
1172
+ }>]>>;
1173
+ approval: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
1174
+ mode: z.ZodLiteral<"global">;
1175
+ }, "strict", z.ZodTypeAny, {
1176
+ mode: "global";
1177
+ }, {
1178
+ mode: "global";
1179
+ }>, z.ZodObject<{
1180
+ mode: z.ZodLiteral<"selected">;
1181
+ tools: z.ZodArray<z.ZodString, "many">;
1182
+ }, "strict", z.ZodTypeAny, {
1183
+ mode: "selected";
1184
+ tools: string[];
1185
+ }, {
1186
+ mode: "selected";
1187
+ tools: string[];
1188
+ }>]>>;
1189
+ connectionTimeoutMs: z.ZodOptional<z.ZodNumber>;
1190
+ }, "strict", z.ZodTypeAny, {
1191
+ name: string;
1192
+ description?: string | undefined;
1193
+ url: string;
1194
+ transport: "sse" | "streamableHttp";
1195
+ authentication: string;
1196
+ credential?: string | undefined;
1197
+ metadata?: {
1198
+ nodeTypeName?: string | undefined;
1199
+ } | undefined;
1200
+ toolFilter?: {
1201
+ mode: "allow";
1202
+ tools: string[];
1203
+ } | {
1204
+ mode: "exclude";
1205
+ tools: string[];
1206
+ } | undefined;
1207
+ approval?: {
1208
+ mode: "global";
1209
+ } | {
1210
+ mode: "selected";
1211
+ tools: string[];
1212
+ } | undefined;
1213
+ connectionTimeoutMs?: number | undefined;
1214
+ }, {
1215
+ name: string;
1216
+ description?: string | undefined;
1217
+ url: string;
1218
+ transport?: "sse" | "streamableHttp" | undefined;
1219
+ authentication?: string | undefined;
1220
+ credential?: string | undefined;
1221
+ metadata?: {
1222
+ nodeTypeName?: string | undefined;
1223
+ } | undefined;
1224
+ toolFilter?: {
1225
+ mode: "allow";
1226
+ tools?: string[] | undefined;
1227
+ } | {
1228
+ mode: "exclude";
1229
+ tools?: string[] | undefined;
1230
+ } | undefined;
1231
+ approval?: {
1232
+ mode: "global";
1233
+ } | {
1234
+ mode: "selected";
1235
+ tools: string[];
1236
+ } | undefined;
1237
+ connectionTimeoutMs?: number | undefined;
1238
+ }>, "many">, {
1239
+ name: string;
1240
+ description?: string | undefined;
1241
+ url: string;
1242
+ transport: "sse" | "streamableHttp";
1243
+ authentication: string;
1244
+ credential?: string | undefined;
1245
+ metadata?: {
1246
+ nodeTypeName?: string | undefined;
1247
+ } | undefined;
1248
+ toolFilter?: {
1249
+ mode: "allow";
1250
+ tools: string[];
1251
+ } | {
1252
+ mode: "exclude";
1253
+ tools: string[];
1254
+ } | undefined;
1255
+ approval?: {
1256
+ mode: "global";
1257
+ } | {
1258
+ mode: "selected";
1259
+ tools: string[];
1260
+ } | undefined;
1261
+ connectionTimeoutMs?: number | undefined;
1262
+ }[], {
1263
+ name: string;
1264
+ description?: string | undefined;
1265
+ url: string;
1266
+ transport?: "sse" | "streamableHttp" | undefined;
1267
+ authentication?: string | undefined;
1268
+ credential?: string | undefined;
1269
+ metadata?: {
1270
+ nodeTypeName?: string | undefined;
1271
+ } | undefined;
1272
+ toolFilter?: {
1273
+ mode: "allow";
1274
+ tools?: string[] | undefined;
1275
+ } | {
1276
+ mode: "exclude";
1277
+ tools?: string[] | undefined;
1278
+ } | undefined;
1279
+ approval?: {
1280
+ mode: "global";
1281
+ } | {
1282
+ mode: "selected";
1283
+ tools: string[];
1284
+ } | undefined;
1285
+ connectionTimeoutMs?: number | undefined;
1286
+ }[]>>, {
1287
+ name: string;
1288
+ description?: string | undefined;
1289
+ url: string;
1290
+ transport: "sse" | "streamableHttp";
1291
+ authentication: string;
1292
+ credential?: string | undefined;
1293
+ metadata?: {
1294
+ nodeTypeName?: string | undefined;
1295
+ } | undefined;
1296
+ toolFilter?: {
1297
+ mode: "allow";
1298
+ tools: string[];
1299
+ } | {
1300
+ mode: "exclude";
1301
+ tools: string[];
1302
+ } | undefined;
1303
+ approval?: {
1304
+ mode: "global";
1305
+ } | {
1306
+ mode: "selected";
1307
+ tools: string[];
1308
+ } | undefined;
1309
+ connectionTimeoutMs?: number | undefined;
1310
+ }[] | undefined, {
1311
+ name: string;
1312
+ description?: string | undefined;
1313
+ url: string;
1314
+ transport?: "sse" | "streamableHttp" | undefined;
1315
+ authentication?: string | undefined;
1316
+ credential?: string | undefined;
1317
+ metadata?: {
1318
+ nodeTypeName?: string | undefined;
1319
+ } | undefined;
1320
+ toolFilter?: {
1321
+ mode: "allow";
1322
+ tools?: string[] | undefined;
1323
+ } | {
1324
+ mode: "exclude";
1325
+ tools?: string[] | undefined;
1326
+ } | undefined;
1327
+ approval?: {
1328
+ mode: "global";
1329
+ } | {
1330
+ mode: "selected";
1331
+ tools: string[];
1332
+ } | undefined;
1333
+ connectionTimeoutMs?: number | undefined;
1334
+ }[] | undefined>;
1335
+ }, "strict", z.ZodTypeAny, {
1336
+ name: string;
1337
+ model: string;
1338
+ credential?: string | undefined;
1339
+ instructions: string;
1340
+ skills?: {
1341
+ type: "skill";
1342
+ id: string;
1343
+ }[] | undefined;
1344
+ tools?: ({
1345
+ type: "workflow";
1346
+ workflow: string;
1347
+ name?: string | undefined;
1348
+ description?: string | undefined;
1349
+ allOutputs?: boolean | undefined;
1350
+ } | {
1351
+ type: "node";
1352
+ name: string;
1353
+ description?: string | undefined;
1354
+ inputSchema?: undefined;
1355
+ node: {
1356
+ nodeType: string;
1357
+ nodeTypeVersion: number;
1358
+ nodeParameters: Record<string, unknown>;
1359
+ credentials?: Record<string, {
1360
+ id: string;
1361
+ name: string;
1362
+ }> | undefined;
1363
+ };
1364
+ })[] | undefined;
1365
+ mcpServers?: {
1366
+ name: string;
1367
+ description?: string | undefined;
1368
+ url: string;
1369
+ transport: "sse" | "streamableHttp";
1370
+ authentication: string;
1371
+ credential?: string | undefined;
1372
+ metadata?: {
1373
+ nodeTypeName?: string | undefined;
1374
+ } | undefined;
1375
+ toolFilter?: {
1376
+ mode: "allow";
1377
+ tools: string[];
1378
+ } | {
1379
+ mode: "exclude";
1380
+ tools: string[];
1381
+ } | undefined;
1382
+ approval?: {
1383
+ mode: "global";
1384
+ } | {
1385
+ mode: "selected";
1386
+ tools: string[];
1387
+ } | undefined;
1388
+ connectionTimeoutMs?: number | undefined;
1389
+ }[] | undefined;
1390
+ }, {
1391
+ name: string;
1392
+ model: string;
1393
+ credential?: string | undefined;
1394
+ instructions: string;
1395
+ skills?: {
1396
+ type: "skill";
1397
+ id: string;
1398
+ }[] | undefined;
1399
+ tools?: ({
1400
+ type: "workflow";
1401
+ workflow: string;
1402
+ name?: string | undefined;
1403
+ description?: string | undefined;
1404
+ allOutputs?: boolean | undefined;
1405
+ } | {
1406
+ type: "node";
1407
+ name: string;
1408
+ description?: string | undefined;
1409
+ inputSchema?: undefined;
1410
+ node: {
1411
+ nodeType: string;
1412
+ nodeTypeVersion: number;
1413
+ nodeParameters?: Record<string, unknown> | undefined;
1414
+ credentials?: Record<string, {
1415
+ id: string;
1416
+ name: string;
1417
+ }> | undefined;
1418
+ };
1419
+ })[] | undefined;
1420
+ mcpServers?: {
1421
+ name: string;
1422
+ description?: string | undefined;
1423
+ url: string;
1424
+ transport?: "sse" | "streamableHttp" | undefined;
1425
+ authentication?: string | undefined;
1426
+ credential?: string | undefined;
1427
+ metadata?: {
1428
+ nodeTypeName?: string | undefined;
1429
+ } | undefined;
1430
+ toolFilter?: {
1431
+ mode: "allow";
1432
+ tools?: string[] | undefined;
1433
+ } | {
1434
+ mode: "exclude";
1435
+ tools?: string[] | undefined;
1436
+ } | undefined;
1437
+ approval?: {
1438
+ mode: "global";
1439
+ } | {
1440
+ mode: "selected";
1441
+ tools: string[];
1442
+ } | undefined;
1443
+ connectionTimeoutMs?: number | undefined;
1444
+ }[] | undefined;
1445
+ }>;
1446
+ export declare const InlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
1447
+ config: z.ZodObject<Pick<{
1448
+ name: z.ZodString;
1449
+ model: z.ZodUnion<[z.ZodLiteral<"">, z.ZodString]>;
1450
+ credential: z.ZodOptional<z.ZodString>;
1451
+ instructions: z.ZodString;
1452
+ personalisation: z.ZodOptional<z.ZodObject<{
1453
+ icon: z.ZodString;
1454
+ gradient: z.ZodDefault<z.ZodObject<{
1455
+ from: z.ZodString;
1456
+ to: z.ZodString;
1457
+ angle: z.ZodDefault<z.ZodNumber>;
1458
+ fromStop: z.ZodDefault<z.ZodNumber>;
1459
+ toStop: z.ZodDefault<z.ZodNumber>;
1460
+ }, "strict", z.ZodTypeAny, {
1461
+ from: string;
1462
+ to: string;
1463
+ angle: number;
1464
+ fromStop: number;
1465
+ toStop: number;
1466
+ }, {
1467
+ from: string;
1468
+ to: string;
1469
+ angle?: number | undefined;
1470
+ fromStop?: number | undefined;
1471
+ toStop?: number | undefined;
1472
+ }>>;
1473
+ }, "strict", z.ZodTypeAny, {
1474
+ icon: string;
1475
+ gradient: {
1476
+ from: string;
1477
+ to: string;
1478
+ angle: number;
1479
+ fromStop: number;
1480
+ toStop: number;
1481
+ };
1482
+ }, {
1483
+ icon: string;
1484
+ gradient?: {
1485
+ from: string;
1486
+ to: string;
1487
+ angle?: number | undefined;
1488
+ fromStop?: number | undefined;
1489
+ toStop?: number | undefined;
1490
+ } | undefined;
1491
+ }>>;
1492
+ memory: z.ZodOptional<z.ZodObject<{
1493
+ enabled: z.ZodBoolean;
1494
+ storage: z.ZodEnum<["n8n"]>;
1495
+ observationalMemory: z.ZodOptional<z.ZodObject<{
1496
+ enabled: z.ZodOptional<z.ZodBoolean>;
1497
+ observerModel: z.ZodOptional<z.ZodObject<{
1498
+ model: z.ZodString;
1499
+ credential: z.ZodString;
1500
+ }, "strip", z.ZodTypeAny, {
1501
+ model: string;
1502
+ credential: string;
1503
+ }, {
1504
+ model: string;
1505
+ credential: string;
1506
+ }>>;
1507
+ reflectorModel: z.ZodOptional<z.ZodObject<{
1508
+ model: z.ZodString;
1509
+ credential: z.ZodString;
1510
+ }, "strip", z.ZodTypeAny, {
1511
+ model: string;
1512
+ credential: string;
1513
+ }, {
1514
+ model: string;
1515
+ credential: string;
1516
+ }>>;
1517
+ observerThresholdTokens: z.ZodOptional<z.ZodNumber>;
1518
+ reflectorThresholdTokens: z.ZodOptional<z.ZodNumber>;
1519
+ renderTokenBudget: z.ZodOptional<z.ZodNumber>;
1520
+ observationLogTailLimit: z.ZodOptional<z.ZodNumber>;
1521
+ lockTtlMs: z.ZodOptional<z.ZodNumber>;
1522
+ }, "strip", z.ZodTypeAny, {
1523
+ enabled?: boolean | undefined;
1524
+ observerModel?: {
1525
+ model: string;
1526
+ credential: string;
1527
+ } | undefined;
1528
+ reflectorModel?: {
1529
+ model: string;
1530
+ credential: string;
1531
+ } | undefined;
1532
+ observerThresholdTokens?: number | undefined;
1533
+ reflectorThresholdTokens?: number | undefined;
1534
+ renderTokenBudget?: number | undefined;
1535
+ observationLogTailLimit?: number | undefined;
1536
+ lockTtlMs?: number | undefined;
1537
+ }, {
1538
+ enabled?: boolean | undefined;
1539
+ observerModel?: {
1540
+ model: string;
1541
+ credential: string;
1542
+ } | undefined;
1543
+ reflectorModel?: {
1544
+ model: string;
1545
+ credential: string;
1546
+ } | undefined;
1547
+ observerThresholdTokens?: number | undefined;
1548
+ reflectorThresholdTokens?: number | undefined;
1549
+ renderTokenBudget?: number | undefined;
1550
+ observationLogTailLimit?: number | undefined;
1551
+ lockTtlMs?: number | undefined;
1552
+ }>>;
1553
+ episodicMemory: z.ZodOptional<z.ZodDiscriminatedUnion<"enabled", [z.ZodObject<{
1554
+ enabled: z.ZodLiteral<false>;
1555
+ }, "strip", z.ZodTypeAny, {
1556
+ enabled: false;
1557
+ }, {
1558
+ enabled: false;
1559
+ }>, z.ZodObject<{
1560
+ enabled: z.ZodLiteral<true>;
1561
+ credential: z.ZodUnion<[z.ZodLiteral<"managed">, z.ZodString]>;
1562
+ extractorModel: z.ZodOptional<z.ZodObject<{
1563
+ model: z.ZodString;
1564
+ credential: z.ZodString;
1565
+ }, "strip", z.ZodTypeAny, {
1566
+ model: string;
1567
+ credential: string;
1568
+ }, {
1569
+ model: string;
1570
+ credential: string;
1571
+ }>>;
1572
+ reflectorModel: z.ZodOptional<z.ZodObject<{
1573
+ model: z.ZodString;
1574
+ credential: z.ZodString;
1575
+ }, "strip", z.ZodTypeAny, {
1576
+ model: string;
1577
+ credential: string;
1578
+ }, {
1579
+ model: string;
1580
+ credential: string;
1581
+ }>>;
1582
+ topK: z.ZodOptional<z.ZodNumber>;
1583
+ maxEntriesPerRun: z.ZodOptional<z.ZodNumber>;
1584
+ }, "strip", z.ZodTypeAny, {
1585
+ enabled: true;
1586
+ credential: string;
1587
+ extractorModel?: {
1588
+ model: string;
1589
+ credential: string;
1590
+ } | undefined;
1591
+ reflectorModel?: {
1592
+ model: string;
1593
+ credential: string;
1594
+ } | undefined;
1595
+ topK?: number | undefined;
1596
+ maxEntriesPerRun?: number | undefined;
1597
+ }, {
1598
+ enabled: true;
1599
+ credential: string;
1600
+ extractorModel?: {
1601
+ model: string;
1602
+ credential: string;
1603
+ } | undefined;
1604
+ reflectorModel?: {
1605
+ model: string;
1606
+ credential: string;
1607
+ } | undefined;
1608
+ topK?: number | undefined;
1609
+ maxEntriesPerRun?: number | undefined;
1610
+ }>]>>;
1611
+ }, "strip", z.ZodTypeAny, {
1612
+ enabled: boolean;
1613
+ storage: "n8n";
1614
+ observationalMemory?: {
1615
+ enabled?: boolean | undefined;
1616
+ observerModel?: {
1617
+ model: string;
1618
+ credential: string;
1619
+ } | undefined;
1620
+ reflectorModel?: {
1621
+ model: string;
1622
+ credential: string;
1623
+ } | undefined;
1624
+ observerThresholdTokens?: number | undefined;
1625
+ reflectorThresholdTokens?: number | undefined;
1626
+ renderTokenBudget?: number | undefined;
1627
+ observationLogTailLimit?: number | undefined;
1628
+ lockTtlMs?: number | undefined;
1629
+ } | undefined;
1630
+ episodicMemory?: {
1631
+ enabled: false;
1632
+ } | {
1633
+ enabled: true;
1634
+ credential: string;
1635
+ extractorModel?: {
1636
+ model: string;
1637
+ credential: string;
1638
+ } | undefined;
1639
+ reflectorModel?: {
1640
+ model: string;
1641
+ credential: string;
1642
+ } | undefined;
1643
+ topK?: number | undefined;
1644
+ maxEntriesPerRun?: number | undefined;
1645
+ } | undefined;
1646
+ }, {
1647
+ enabled: boolean;
1648
+ storage: "n8n";
1649
+ observationalMemory?: {
1650
+ enabled?: boolean | undefined;
1651
+ observerModel?: {
1652
+ model: string;
1653
+ credential: string;
1654
+ } | undefined;
1655
+ reflectorModel?: {
1656
+ model: string;
1657
+ credential: string;
1658
+ } | undefined;
1659
+ observerThresholdTokens?: number | undefined;
1660
+ reflectorThresholdTokens?: number | undefined;
1661
+ renderTokenBudget?: number | undefined;
1662
+ observationLogTailLimit?: number | undefined;
1663
+ lockTtlMs?: number | undefined;
1664
+ } | undefined;
1665
+ episodicMemory?: {
1666
+ enabled: false;
1667
+ } | {
1668
+ enabled: true;
1669
+ credential: string;
1670
+ extractorModel?: {
1671
+ model: string;
1672
+ credential: string;
1673
+ } | undefined;
1674
+ reflectorModel?: {
1675
+ model: string;
1676
+ credential: string;
1677
+ } | undefined;
1678
+ topK?: number | undefined;
1679
+ maxEntriesPerRun?: number | undefined;
1680
+ } | undefined;
1681
+ }>>;
1682
+ subAgents: z.ZodOptional<z.ZodObject<{
1683
+ maxChildren: z.ZodOptional<z.ZodNumber>;
1684
+ agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
1685
+ agentId: z.ZodString;
1686
+ useWhen: z.ZodOptional<z.ZodString>;
1687
+ }, "strict", z.ZodTypeAny, {
1688
+ agentId: string;
1689
+ useWhen?: string | undefined;
1690
+ }, {
1691
+ agentId: string;
1692
+ useWhen?: string | undefined;
1693
+ }>, "many">>;
1694
+ modelsByDifficulty: z.ZodOptional<z.ZodObject<{
1695
+ low: z.ZodOptional<z.ZodObject<{
1696
+ model: z.ZodString;
1697
+ credential: z.ZodString;
1698
+ }, "strict", z.ZodTypeAny, {
1699
+ model: string;
1700
+ credential: string;
1701
+ }, {
1702
+ model: string;
1703
+ credential: string;
1704
+ }>>;
1705
+ medium: z.ZodOptional<z.ZodObject<{
1706
+ model: z.ZodString;
1707
+ credential: z.ZodString;
1708
+ }, "strict", z.ZodTypeAny, {
1709
+ model: string;
1710
+ credential: string;
1711
+ }, {
1712
+ model: string;
1713
+ credential: string;
1714
+ }>>;
1715
+ high: z.ZodOptional<z.ZodObject<{
1716
+ model: z.ZodString;
1717
+ credential: z.ZodString;
1718
+ }, "strict", z.ZodTypeAny, {
1719
+ model: string;
1720
+ credential: string;
1721
+ }, {
1722
+ model: string;
1723
+ credential: string;
1724
+ }>>;
1725
+ }, "strict", z.ZodTypeAny, {
1726
+ low?: {
1727
+ model: string;
1728
+ credential: string;
1729
+ } | undefined;
1730
+ medium?: {
1731
+ model: string;
1732
+ credential: string;
1733
+ } | undefined;
1734
+ high?: {
1735
+ model: string;
1736
+ credential: string;
1737
+ } | undefined;
1738
+ }, {
1739
+ low?: {
1740
+ model: string;
1741
+ credential: string;
1742
+ } | undefined;
1743
+ medium?: {
1744
+ model: string;
1745
+ credential: string;
1746
+ } | undefined;
1747
+ high?: {
1748
+ model: string;
1749
+ credential: string;
1750
+ } | undefined;
1751
+ }>>;
1752
+ }, "strict", z.ZodTypeAny, {
1753
+ maxChildren?: number | undefined;
1754
+ agents?: {
1755
+ agentId: string;
1756
+ useWhen?: string | undefined;
1757
+ }[] | undefined;
1758
+ modelsByDifficulty?: {
1759
+ low?: {
1760
+ model: string;
1761
+ credential: string;
1762
+ } | undefined;
1763
+ medium?: {
1764
+ model: string;
1765
+ credential: string;
1766
+ } | undefined;
1767
+ high?: {
1768
+ model: string;
1769
+ credential: string;
1770
+ } | undefined;
1771
+ } | undefined;
1772
+ }, {
1773
+ maxChildren?: number | undefined;
1774
+ agents?: {
1775
+ agentId: string;
1776
+ useWhen?: string | undefined;
1777
+ }[] | undefined;
1778
+ modelsByDifficulty?: {
1779
+ low?: {
1780
+ model: string;
1781
+ credential: string;
1782
+ } | undefined;
1783
+ medium?: {
1784
+ model: string;
1785
+ credential: string;
1786
+ } | undefined;
1787
+ high?: {
1788
+ model: string;
1789
+ credential: string;
1790
+ } | undefined;
1791
+ } | undefined;
1792
+ }>>;
1793
+ tools: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1794
+ type: z.ZodLiteral<"custom">;
1795
+ id: z.ZodString;
1796
+ requireApproval: z.ZodOptional<z.ZodBoolean>;
1797
+ }, "strip", z.ZodTypeAny, {
1798
+ type: "custom";
1799
+ id: string;
1800
+ requireApproval?: boolean | undefined;
1801
+ }, {
1802
+ type: "custom";
1803
+ id: string;
1804
+ requireApproval?: boolean | undefined;
1805
+ }>, z.ZodObject<{
1806
+ type: z.ZodLiteral<"workflow">;
1807
+ workflow: z.ZodString;
1808
+ name: z.ZodOptional<z.ZodString>;
1809
+ description: z.ZodOptional<z.ZodString>;
1810
+ requireApproval: z.ZodOptional<z.ZodBoolean>;
1811
+ allOutputs: z.ZodOptional<z.ZodBoolean>;
1812
+ }, "strict", z.ZodTypeAny, {
1813
+ type: "workflow";
1814
+ workflow: string;
1815
+ name?: string | undefined;
1816
+ description?: string | undefined;
1817
+ requireApproval?: boolean | undefined;
1818
+ allOutputs?: boolean | undefined;
1819
+ }, {
1820
+ type: "workflow";
1821
+ workflow: string;
1822
+ name?: string | undefined;
1823
+ description?: string | undefined;
1824
+ requireApproval?: boolean | undefined;
1825
+ allOutputs?: boolean | undefined;
1826
+ }>, z.ZodObject<{
1827
+ type: z.ZodLiteral<"node">;
1828
+ name: z.ZodString;
1829
+ description: z.ZodOptional<z.ZodString>;
1830
+ inputSchema: z.ZodOptional<z.ZodNever>;
1831
+ node: z.ZodObject<{
1832
+ nodeType: z.ZodString;
1833
+ nodeTypeVersion: z.ZodNumber;
1834
+ nodeParameters: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1835
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1836
+ id: z.ZodString;
1837
+ name: z.ZodString;
1838
+ }, "strip", z.ZodTypeAny, {
1839
+ id: string;
1840
+ name: string;
1841
+ }, {
1842
+ id: string;
1843
+ name: string;
1844
+ }>>>;
1845
+ }, "strip", z.ZodTypeAny, {
1846
+ nodeType: string;
1847
+ nodeTypeVersion: number;
1848
+ nodeParameters: Record<string, unknown>;
1849
+ credentials?: Record<string, {
1850
+ id: string;
1851
+ name: string;
1852
+ }> | undefined;
1853
+ }, {
1854
+ nodeType: string;
1855
+ nodeTypeVersion: number;
1856
+ nodeParameters?: Record<string, unknown> | undefined;
1857
+ credentials?: Record<string, {
1858
+ id: string;
1859
+ name: string;
1860
+ }> | undefined;
1861
+ }>;
1862
+ requireApproval: z.ZodOptional<z.ZodBoolean>;
1863
+ }, "strict", z.ZodTypeAny, {
1864
+ type: "node";
1865
+ name: string;
1866
+ description?: string | undefined;
1867
+ inputSchema?: undefined;
1868
+ node: {
1869
+ nodeType: string;
1870
+ nodeTypeVersion: number;
1871
+ nodeParameters: Record<string, unknown>;
1872
+ credentials?: Record<string, {
1873
+ id: string;
1874
+ name: string;
1875
+ }> | undefined;
1876
+ };
1877
+ requireApproval?: boolean | undefined;
1878
+ }, {
1879
+ type: "node";
1880
+ name: string;
1881
+ description?: string | undefined;
1882
+ inputSchema?: undefined;
1883
+ node: {
1884
+ nodeType: string;
1885
+ nodeTypeVersion: number;
1886
+ nodeParameters?: Record<string, unknown> | undefined;
1887
+ credentials?: Record<string, {
1888
+ id: string;
1889
+ name: string;
1890
+ }> | undefined;
1891
+ };
1892
+ requireApproval?: boolean | undefined;
1893
+ }>]>, "many">, ({
1894
+ type: "workflow";
1895
+ workflow: string;
1896
+ name?: string | undefined;
1897
+ description?: string | undefined;
1898
+ requireApproval?: boolean | undefined;
1899
+ allOutputs?: boolean | undefined;
1900
+ } | {
1901
+ type: "node";
1902
+ name: string;
1903
+ description?: string | undefined;
1904
+ inputSchema?: undefined;
1905
+ node: {
1906
+ nodeType: string;
1907
+ nodeTypeVersion: number;
1908
+ nodeParameters: Record<string, unknown>;
1909
+ credentials?: Record<string, {
1910
+ id: string;
1911
+ name: string;
1912
+ }> | undefined;
1913
+ };
1914
+ requireApproval?: boolean | undefined;
1915
+ } | {
1916
+ type: "custom";
1917
+ id: string;
1918
+ requireApproval?: boolean | undefined;
1919
+ })[], ({
1920
+ type: "workflow";
1921
+ workflow: string;
1922
+ name?: string | undefined;
1923
+ description?: string | undefined;
1924
+ requireApproval?: boolean | undefined;
1925
+ allOutputs?: boolean | undefined;
1926
+ } | {
1927
+ type: "node";
1928
+ name: string;
1929
+ description?: string | undefined;
1930
+ inputSchema?: undefined;
1931
+ node: {
1932
+ nodeType: string;
1933
+ nodeTypeVersion: number;
1934
+ nodeParameters?: Record<string, unknown> | undefined;
1935
+ credentials?: Record<string, {
1936
+ id: string;
1937
+ name: string;
1938
+ }> | undefined;
1939
+ };
1940
+ requireApproval?: boolean | undefined;
1941
+ } | {
1942
+ type: "custom";
1943
+ id: string;
1944
+ requireApproval?: boolean | undefined;
1945
+ })[]>>;
1946
+ skills: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
1947
+ type: z.ZodLiteral<"skill">;
1948
+ id: z.ZodString;
1949
+ }, "strip", z.ZodTypeAny, {
1950
+ type: "skill";
1951
+ id: string;
1952
+ }, {
1953
+ type: "skill";
1954
+ id: string;
1955
+ }>, "many">, {
1956
+ type: "skill";
1957
+ id: string;
1958
+ }[], {
1959
+ type: "skill";
1960
+ id: string;
1961
+ }[]>>;
1962
+ tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1963
+ type: z.ZodLiteral<"task">;
1964
+ id: z.ZodString;
1965
+ enabled: z.ZodBoolean;
1966
+ }, "strip", z.ZodTypeAny, {
1967
+ type: "task";
1968
+ id: string;
1969
+ enabled: boolean;
1970
+ }, {
1971
+ type: "task";
1972
+ id: string;
1973
+ enabled: boolean;
1974
+ }>, "many">>;
1975
+ providerTools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1976
+ integrations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", readonly [z.ZodObject<{
1977
+ type: z.ZodLiteral<"telegram">;
1978
+ credentialId: z.ZodString;
1979
+ } & {
1980
+ settings: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1981
+ accessMode: z.ZodEnum<["private", "public"]>;
1982
+ allowedUsers: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodString, "many">>, string[], string[] | undefined>;
1983
+ }, "strict", z.ZodTypeAny, {
1984
+ accessMode: "private" | "public";
1985
+ allowedUsers: string[];
1986
+ }, {
1987
+ accessMode: "private" | "public";
1988
+ allowedUsers?: string[] | undefined;
1989
+ }>, {
1990
+ accessMode: "private" | "public";
1991
+ allowedUsers: string[];
1992
+ }, {
1993
+ accessMode: "private" | "public";
1994
+ allowedUsers?: string[] | undefined;
1995
+ }>>;
1996
+ }, "strip", z.ZodTypeAny, {
1997
+ type: "telegram";
1998
+ credentialId: string;
1999
+ settings?: {
2000
+ accessMode: "private" | "public";
2001
+ allowedUsers: string[];
2002
+ } | undefined;
2003
+ }, {
2004
+ type: "telegram";
2005
+ credentialId: string;
2006
+ settings?: {
2007
+ accessMode: "private" | "public";
2008
+ allowedUsers?: string[] | undefined;
2009
+ } | undefined;
2010
+ }>, z.ZodObject<{
2011
+ type: z.ZodLiteral<"slack">;
2012
+ credentialId: z.ZodString;
2013
+ }, "strip", z.ZodTypeAny, {
2014
+ type: "slack";
2015
+ credentialId: string;
2016
+ }, {
2017
+ type: "slack";
2018
+ credentialId: string;
2019
+ }>, z.ZodObject<{
2020
+ type: z.ZodLiteral<"linear">;
2021
+ credentialId: z.ZodString;
2022
+ }, "strip", z.ZodTypeAny, {
2023
+ type: "linear";
2024
+ credentialId: string;
2025
+ }, {
2026
+ type: "linear";
2027
+ credentialId: string;
2028
+ }>]>, "many">>;
2029
+ mcpServers: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
2030
+ name: z.ZodString;
2031
+ description: z.ZodOptional<z.ZodString>;
2032
+ url: z.ZodString;
2033
+ transport: z.ZodDefault<z.ZodEnum<["sse", "streamableHttp"]>>;
2034
+ authentication: z.ZodDefault<z.ZodUnion<[z.ZodEnum<["none", "bearerAuth", "headerAuth", "multipleHeadersAuth", "mcpOAuth2Api"]>, z.ZodString]>>;
2035
+ credential: z.ZodOptional<z.ZodString>;
2036
+ metadata: z.ZodOptional<z.ZodObject<{
2037
+ nodeTypeName: z.ZodOptional<z.ZodString>;
2038
+ }, "strip", z.ZodTypeAny, {
2039
+ nodeTypeName?: string | undefined;
2040
+ }, {
2041
+ nodeTypeName?: string | undefined;
2042
+ }>>;
2043
+ toolFilter: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
2044
+ mode: z.ZodLiteral<"allow">;
2045
+ tools: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2046
+ }, "strict", z.ZodTypeAny, {
2047
+ mode: "allow";
2048
+ tools: string[];
2049
+ }, {
2050
+ mode: "allow";
2051
+ tools?: string[] | undefined;
2052
+ }>, z.ZodObject<{
2053
+ mode: z.ZodLiteral<"exclude">;
2054
+ tools: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2055
+ }, "strict", z.ZodTypeAny, {
2056
+ mode: "exclude";
2057
+ tools: string[];
2058
+ }, {
2059
+ mode: "exclude";
2060
+ tools?: string[] | undefined;
2061
+ }>]>>;
2062
+ approval: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
2063
+ mode: z.ZodLiteral<"global">;
2064
+ }, "strict", z.ZodTypeAny, {
2065
+ mode: "global";
2066
+ }, {
2067
+ mode: "global";
2068
+ }>, z.ZodObject<{
2069
+ mode: z.ZodLiteral<"selected">;
2070
+ tools: z.ZodArray<z.ZodString, "many">;
2071
+ }, "strict", z.ZodTypeAny, {
2072
+ mode: "selected";
2073
+ tools: string[];
2074
+ }, {
2075
+ mode: "selected";
2076
+ tools: string[];
2077
+ }>]>>;
2078
+ connectionTimeoutMs: z.ZodOptional<z.ZodNumber>;
2079
+ }, "strict", z.ZodTypeAny, {
2080
+ name: string;
2081
+ description?: string | undefined;
2082
+ url: string;
2083
+ transport: "sse" | "streamableHttp";
2084
+ authentication: string;
2085
+ credential?: string | undefined;
2086
+ metadata?: {
2087
+ nodeTypeName?: string | undefined;
2088
+ } | undefined;
2089
+ toolFilter?: {
2090
+ mode: "allow";
2091
+ tools: string[];
2092
+ } | {
2093
+ mode: "exclude";
2094
+ tools: string[];
2095
+ } | undefined;
2096
+ approval?: {
2097
+ mode: "global";
2098
+ } | {
2099
+ mode: "selected";
2100
+ tools: string[];
2101
+ } | undefined;
2102
+ connectionTimeoutMs?: number | undefined;
2103
+ }, {
2104
+ name: string;
2105
+ description?: string | undefined;
2106
+ url: string;
2107
+ transport?: "sse" | "streamableHttp" | undefined;
2108
+ authentication?: string | undefined;
2109
+ credential?: string | undefined;
2110
+ metadata?: {
2111
+ nodeTypeName?: string | undefined;
2112
+ } | undefined;
2113
+ toolFilter?: {
2114
+ mode: "allow";
2115
+ tools?: string[] | undefined;
2116
+ } | {
2117
+ mode: "exclude";
2118
+ tools?: string[] | undefined;
2119
+ } | undefined;
2120
+ approval?: {
2121
+ mode: "global";
2122
+ } | {
2123
+ mode: "selected";
2124
+ tools: string[];
2125
+ } | undefined;
2126
+ connectionTimeoutMs?: number | undefined;
2127
+ }>, "many">, {
2128
+ name: string;
2129
+ description?: string | undefined;
2130
+ url: string;
2131
+ transport: "sse" | "streamableHttp";
2132
+ authentication: string;
2133
+ credential?: string | undefined;
2134
+ metadata?: {
2135
+ nodeTypeName?: string | undefined;
2136
+ } | undefined;
2137
+ toolFilter?: {
2138
+ mode: "allow";
2139
+ tools: string[];
2140
+ } | {
2141
+ mode: "exclude";
2142
+ tools: string[];
2143
+ } | undefined;
2144
+ approval?: {
2145
+ mode: "global";
2146
+ } | {
2147
+ mode: "selected";
2148
+ tools: string[];
2149
+ } | undefined;
2150
+ connectionTimeoutMs?: number | undefined;
2151
+ }[], {
2152
+ name: string;
2153
+ description?: string | undefined;
2154
+ url: string;
2155
+ transport?: "sse" | "streamableHttp" | undefined;
2156
+ authentication?: string | undefined;
2157
+ credential?: string | undefined;
2158
+ metadata?: {
2159
+ nodeTypeName?: string | undefined;
2160
+ } | undefined;
2161
+ toolFilter?: {
2162
+ mode: "allow";
2163
+ tools?: string[] | undefined;
2164
+ } | {
2165
+ mode: "exclude";
2166
+ tools?: string[] | undefined;
2167
+ } | undefined;
2168
+ approval?: {
2169
+ mode: "global";
2170
+ } | {
2171
+ mode: "selected";
2172
+ tools: string[];
2173
+ } | undefined;
2174
+ connectionTimeoutMs?: number | undefined;
2175
+ }[]>>;
2176
+ vectorStores: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodDiscriminatedUnion<"provider", [z.ZodObject<{
2177
+ name: z.ZodString;
2178
+ credential: z.ZodString;
2179
+ useWhen: z.ZodString;
2180
+ embedding: z.ZodObject<{
2181
+ model: z.ZodString;
2182
+ credential: z.ZodString;
2183
+ }, "strict", z.ZodTypeAny, {
2184
+ model: string;
2185
+ credential: string;
2186
+ }, {
2187
+ model: string;
2188
+ credential: string;
2189
+ }>;
2190
+ provider: z.ZodLiteral<"pinecone">;
2191
+ indexName: z.ZodString;
2192
+ namespace: z.ZodOptional<z.ZodString>;
2193
+ }, "strict", z.ZodTypeAny, {
2194
+ name: string;
2195
+ credential: string;
2196
+ useWhen: string;
2197
+ embedding: {
2198
+ model: string;
2199
+ credential: string;
2200
+ };
2201
+ provider: "pinecone";
2202
+ indexName: string;
2203
+ namespace?: string | undefined;
2204
+ }, {
2205
+ name: string;
2206
+ credential: string;
2207
+ useWhen: string;
2208
+ embedding: {
2209
+ model: string;
2210
+ credential: string;
2211
+ };
2212
+ provider: "pinecone";
2213
+ indexName: string;
2214
+ namespace?: string | undefined;
2215
+ }>, z.ZodObject<{
2216
+ name: z.ZodString;
2217
+ credential: z.ZodString;
2218
+ useWhen: z.ZodString;
2219
+ embedding: z.ZodObject<{
2220
+ model: z.ZodString;
2221
+ credential: z.ZodString;
2222
+ }, "strict", z.ZodTypeAny, {
2223
+ model: string;
2224
+ credential: string;
2225
+ }, {
2226
+ model: string;
2227
+ credential: string;
2228
+ }>;
2229
+ provider: z.ZodLiteral<"qdrant">;
2230
+ collectionName: z.ZodString;
2231
+ }, "strict", z.ZodTypeAny, {
2232
+ name: string;
2233
+ credential: string;
2234
+ useWhen: string;
2235
+ embedding: {
2236
+ model: string;
2237
+ credential: string;
2238
+ };
2239
+ provider: "qdrant";
2240
+ collectionName: string;
2241
+ }, {
2242
+ name: string;
2243
+ credential: string;
2244
+ useWhen: string;
2245
+ embedding: {
2246
+ model: string;
2247
+ credential: string;
2248
+ };
2249
+ provider: "qdrant";
2250
+ collectionName: string;
2251
+ }>, z.ZodObject<{
2252
+ name: z.ZodString;
2253
+ credential: z.ZodString;
2254
+ useWhen: z.ZodString;
2255
+ embedding: z.ZodObject<{
2256
+ model: z.ZodString;
2257
+ credential: z.ZodString;
2258
+ }, "strict", z.ZodTypeAny, {
2259
+ model: string;
2260
+ credential: string;
2261
+ }, {
2262
+ model: string;
2263
+ credential: string;
2264
+ }>;
2265
+ provider: z.ZodLiteral<"supabase">;
2266
+ tableName: z.ZodString;
2267
+ queryName: z.ZodOptional<z.ZodString>;
2268
+ }, "strict", z.ZodTypeAny, {
2269
+ name: string;
2270
+ credential: string;
2271
+ useWhen: string;
2272
+ embedding: {
2273
+ model: string;
2274
+ credential: string;
2275
+ };
2276
+ provider: "supabase";
2277
+ tableName: string;
2278
+ queryName?: string | undefined;
2279
+ }, {
2280
+ name: string;
2281
+ credential: string;
2282
+ useWhen: string;
2283
+ embedding: {
2284
+ model: string;
2285
+ credential: string;
2286
+ };
2287
+ provider: "supabase";
2288
+ tableName: string;
2289
+ queryName?: string | undefined;
2290
+ }>, z.ZodObject<{
2291
+ name: z.ZodString;
2292
+ credential: z.ZodString;
2293
+ useWhen: z.ZodString;
2294
+ embedding: z.ZodObject<{
2295
+ model: z.ZodString;
2296
+ credential: z.ZodString;
2297
+ }, "strict", z.ZodTypeAny, {
2298
+ model: string;
2299
+ credential: string;
2300
+ }, {
2301
+ model: string;
2302
+ credential: string;
2303
+ }>;
2304
+ provider: z.ZodLiteral<"postgres">;
2305
+ tableName: z.ZodString;
2306
+ }, "strict", z.ZodTypeAny, {
2307
+ name: string;
2308
+ credential: string;
2309
+ useWhen: string;
2310
+ embedding: {
2311
+ model: string;
2312
+ credential: string;
2313
+ };
2314
+ provider: "postgres";
2315
+ tableName: string;
2316
+ }, {
2317
+ name: string;
2318
+ credential: string;
2319
+ useWhen: string;
2320
+ embedding: {
2321
+ model: string;
2322
+ credential: string;
2323
+ };
2324
+ provider: "postgres";
2325
+ tableName: string;
2326
+ }>]>, "many">, ({
2327
+ name: string;
2328
+ credential: string;
2329
+ useWhen: string;
2330
+ embedding: {
2331
+ model: string;
2332
+ credential: string;
2333
+ };
2334
+ provider: "pinecone";
2335
+ indexName: string;
2336
+ namespace?: string | undefined;
2337
+ } | {
2338
+ name: string;
2339
+ credential: string;
2340
+ useWhen: string;
2341
+ embedding: {
2342
+ model: string;
2343
+ credential: string;
2344
+ };
2345
+ provider: "qdrant";
2346
+ collectionName: string;
2347
+ } | {
2348
+ name: string;
2349
+ credential: string;
2350
+ useWhen: string;
2351
+ embedding: {
2352
+ model: string;
2353
+ credential: string;
2354
+ };
2355
+ provider: "supabase";
2356
+ tableName: string;
2357
+ queryName?: string | undefined;
2358
+ } | {
2359
+ name: string;
2360
+ credential: string;
2361
+ useWhen: string;
2362
+ embedding: {
2363
+ model: string;
2364
+ credential: string;
2365
+ };
2366
+ provider: "postgres";
2367
+ tableName: string;
2368
+ })[], ({
2369
+ name: string;
2370
+ credential: string;
2371
+ useWhen: string;
2372
+ embedding: {
2373
+ model: string;
2374
+ credential: string;
2375
+ };
2376
+ provider: "pinecone";
2377
+ indexName: string;
2378
+ namespace?: string | undefined;
2379
+ } | {
2380
+ name: string;
2381
+ credential: string;
2382
+ useWhen: string;
2383
+ embedding: {
2384
+ model: string;
2385
+ credential: string;
2386
+ };
2387
+ provider: "qdrant";
2388
+ collectionName: string;
2389
+ } | {
2390
+ name: string;
2391
+ credential: string;
2392
+ useWhen: string;
2393
+ embedding: {
2394
+ model: string;
2395
+ credential: string;
2396
+ };
2397
+ provider: "supabase";
2398
+ tableName: string;
2399
+ queryName?: string | undefined;
2400
+ } | {
2401
+ name: string;
2402
+ credential: string;
2403
+ useWhen: string;
2404
+ embedding: {
2405
+ model: string;
2406
+ credential: string;
2407
+ };
2408
+ provider: "postgres";
2409
+ tableName: string;
2410
+ })[]>>;
2411
+ config: z.ZodOptional<z.ZodObject<{
2412
+ thinking: z.ZodOptional<z.ZodObject<{
2413
+ provider: z.ZodEnum<["anthropic", "openai"]>;
2414
+ budgetTokens: z.ZodOptional<z.ZodNumber>;
2415
+ reasoningEffort: z.ZodOptional<z.ZodString>;
2416
+ }, "strip", z.ZodTypeAny, {
2417
+ provider: "anthropic" | "openai";
2418
+ budgetTokens?: number | undefined;
2419
+ reasoningEffort?: string | undefined;
2420
+ }, {
2421
+ provider: "anthropic" | "openai";
2422
+ budgetTokens?: number | undefined;
2423
+ reasoningEffort?: string | undefined;
2424
+ }>>;
2425
+ promptCaching: z.ZodOptional<z.ZodObject<{
2426
+ enabled: z.ZodBoolean;
2427
+ anthropic: z.ZodOptional<z.ZodObject<{
2428
+ ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
2429
+ }, "strip", z.ZodTypeAny, {
2430
+ ttl?: "1h" | "5m" | undefined;
2431
+ }, {
2432
+ ttl?: "1h" | "5m" | undefined;
2433
+ }>>;
2434
+ }, "strip", z.ZodTypeAny, {
2435
+ enabled: boolean;
2436
+ anthropic?: {
2437
+ ttl?: "1h" | "5m" | undefined;
2438
+ } | undefined;
2439
+ }, {
2440
+ enabled: boolean;
2441
+ anthropic?: {
2442
+ ttl?: "1h" | "5m" | undefined;
2443
+ } | undefined;
2444
+ }>>;
2445
+ webSearch: z.ZodOptional<z.ZodObject<{
2446
+ enabled: z.ZodBoolean;
2447
+ provider: z.ZodOptional<z.ZodEnum<["auto", "native", "brave", "searxng"]>>;
2448
+ credential: z.ZodOptional<z.ZodString>;
2449
+ }, "strip", z.ZodTypeAny, {
2450
+ enabled: boolean;
2451
+ provider?: "auto" | "brave" | "native" | "searxng" | undefined;
2452
+ credential?: string | undefined;
2453
+ }, {
2454
+ enabled: boolean;
2455
+ provider?: "auto" | "brave" | "native" | "searxng" | undefined;
2456
+ credential?: string | undefined;
2457
+ }>>;
2458
+ toolCallConcurrency: z.ZodOptional<z.ZodNumber>;
2459
+ maxIterations: z.ZodOptional<z.ZodNumber>;
2460
+ }, "strip", z.ZodTypeAny, {
2461
+ thinking?: {
2462
+ provider: "anthropic" | "openai";
2463
+ budgetTokens?: number | undefined;
2464
+ reasoningEffort?: string | undefined;
2465
+ } | undefined;
2466
+ promptCaching?: {
2467
+ enabled: boolean;
2468
+ anthropic?: {
2469
+ ttl?: "1h" | "5m" | undefined;
2470
+ } | undefined;
2471
+ } | undefined;
2472
+ webSearch?: {
2473
+ enabled: boolean;
2474
+ provider?: "auto" | "brave" | "native" | "searxng" | undefined;
2475
+ credential?: string | undefined;
2476
+ } | undefined;
2477
+ toolCallConcurrency?: number | undefined;
2478
+ maxIterations?: number | undefined;
2479
+ }, {
2480
+ thinking?: {
2481
+ provider: "anthropic" | "openai";
2482
+ budgetTokens?: number | undefined;
2483
+ reasoningEffort?: string | undefined;
2484
+ } | undefined;
2485
+ promptCaching?: {
2486
+ enabled: boolean;
2487
+ anthropic?: {
2488
+ ttl?: "1h" | "5m" | undefined;
2489
+ } | undefined;
2490
+ } | undefined;
2491
+ webSearch?: {
2492
+ enabled: boolean;
2493
+ provider?: "auto" | "brave" | "native" | "searxng" | undefined;
2494
+ credential?: string | undefined;
2495
+ } | undefined;
2496
+ toolCallConcurrency?: number | undefined;
2497
+ maxIterations?: number | undefined;
2498
+ }>>;
2499
+ }, "credential" | "instructions" | "model" | "name" | "skills"> & {
2500
+ tools: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<Omit<{
2501
+ type: z.ZodLiteral<"workflow">;
2502
+ workflow: z.ZodString;
2503
+ name: z.ZodOptional<z.ZodString>;
2504
+ description: z.ZodOptional<z.ZodString>;
2505
+ requireApproval: z.ZodOptional<z.ZodBoolean>;
2506
+ allOutputs: z.ZodOptional<z.ZodBoolean>;
2507
+ }, "requireApproval">, "strict", z.ZodTypeAny, {
2508
+ type: "workflow";
2509
+ workflow: string;
2510
+ name?: string | undefined;
2511
+ description?: string | undefined;
2512
+ allOutputs?: boolean | undefined;
2513
+ }, {
2514
+ type: "workflow";
2515
+ workflow: string;
2516
+ name?: string | undefined;
2517
+ description?: string | undefined;
2518
+ allOutputs?: boolean | undefined;
2519
+ }>, z.ZodObject<Omit<{
2520
+ type: z.ZodLiteral<"node">;
2521
+ name: z.ZodString;
2522
+ description: z.ZodOptional<z.ZodString>;
2523
+ inputSchema: z.ZodOptional<z.ZodNever>;
2524
+ node: z.ZodObject<{
2525
+ nodeType: z.ZodString;
2526
+ nodeTypeVersion: z.ZodNumber;
2527
+ nodeParameters: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2528
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2529
+ id: z.ZodString;
2530
+ name: z.ZodString;
2531
+ }, "strip", z.ZodTypeAny, {
2532
+ id: string;
2533
+ name: string;
2534
+ }, {
2535
+ id: string;
2536
+ name: string;
2537
+ }>>>;
2538
+ }, "strip", z.ZodTypeAny, {
2539
+ nodeType: string;
2540
+ nodeTypeVersion: number;
2541
+ nodeParameters: Record<string, unknown>;
2542
+ credentials?: Record<string, {
2543
+ id: string;
2544
+ name: string;
2545
+ }> | undefined;
2546
+ }, {
2547
+ nodeType: string;
2548
+ nodeTypeVersion: number;
2549
+ nodeParameters?: Record<string, unknown> | undefined;
2550
+ credentials?: Record<string, {
2551
+ id: string;
2552
+ name: string;
2553
+ }> | undefined;
2554
+ }>;
2555
+ requireApproval: z.ZodOptional<z.ZodBoolean>;
2556
+ }, "requireApproval">, "strict", z.ZodTypeAny, {
2557
+ type: "node";
2558
+ name: string;
2559
+ description?: string | undefined;
2560
+ inputSchema?: undefined;
2561
+ node: {
2562
+ nodeType: string;
2563
+ nodeTypeVersion: number;
2564
+ nodeParameters: Record<string, unknown>;
2565
+ credentials?: Record<string, {
2566
+ id: string;
2567
+ name: string;
2568
+ }> | undefined;
2569
+ };
2570
+ }, {
2571
+ type: "node";
2572
+ name: string;
2573
+ description?: string | undefined;
2574
+ inputSchema?: undefined;
2575
+ node: {
2576
+ nodeType: string;
2577
+ nodeTypeVersion: number;
2578
+ nodeParameters?: Record<string, unknown> | undefined;
2579
+ credentials?: Record<string, {
2580
+ id: string;
2581
+ name: string;
2582
+ }> | undefined;
2583
+ };
2584
+ }>]>, "many">>;
2585
+ mcpServers: z.ZodEffects<z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
2586
+ name: z.ZodString;
2587
+ description: z.ZodOptional<z.ZodString>;
2588
+ url: z.ZodString;
2589
+ transport: z.ZodDefault<z.ZodEnum<["sse", "streamableHttp"]>>;
2590
+ authentication: z.ZodDefault<z.ZodUnion<[z.ZodEnum<["none", "bearerAuth", "headerAuth", "multipleHeadersAuth", "mcpOAuth2Api"]>, z.ZodString]>>;
2591
+ credential: z.ZodOptional<z.ZodString>;
2592
+ metadata: z.ZodOptional<z.ZodObject<{
2593
+ nodeTypeName: z.ZodOptional<z.ZodString>;
2594
+ }, "strip", z.ZodTypeAny, {
2595
+ nodeTypeName?: string | undefined;
2596
+ }, {
2597
+ nodeTypeName?: string | undefined;
2598
+ }>>;
2599
+ toolFilter: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
2600
+ mode: z.ZodLiteral<"allow">;
2601
+ tools: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2602
+ }, "strict", z.ZodTypeAny, {
2603
+ mode: "allow";
2604
+ tools: string[];
2605
+ }, {
2606
+ mode: "allow";
2607
+ tools?: string[] | undefined;
2608
+ }>, z.ZodObject<{
2609
+ mode: z.ZodLiteral<"exclude">;
2610
+ tools: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2611
+ }, "strict", z.ZodTypeAny, {
2612
+ mode: "exclude";
2613
+ tools: string[];
2614
+ }, {
2615
+ mode: "exclude";
2616
+ tools?: string[] | undefined;
2617
+ }>]>>;
2618
+ approval: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
2619
+ mode: z.ZodLiteral<"global">;
2620
+ }, "strict", z.ZodTypeAny, {
2621
+ mode: "global";
2622
+ }, {
2623
+ mode: "global";
2624
+ }>, z.ZodObject<{
2625
+ mode: z.ZodLiteral<"selected">;
2626
+ tools: z.ZodArray<z.ZodString, "many">;
2627
+ }, "strict", z.ZodTypeAny, {
2628
+ mode: "selected";
2629
+ tools: string[];
2630
+ }, {
2631
+ mode: "selected";
2632
+ tools: string[];
2633
+ }>]>>;
2634
+ connectionTimeoutMs: z.ZodOptional<z.ZodNumber>;
2635
+ }, "strict", z.ZodTypeAny, {
2636
+ name: string;
2637
+ description?: string | undefined;
2638
+ url: string;
2639
+ transport: "sse" | "streamableHttp";
2640
+ authentication: string;
2641
+ credential?: string | undefined;
2642
+ metadata?: {
2643
+ nodeTypeName?: string | undefined;
2644
+ } | undefined;
2645
+ toolFilter?: {
2646
+ mode: "allow";
2647
+ tools: string[];
2648
+ } | {
2649
+ mode: "exclude";
2650
+ tools: string[];
2651
+ } | undefined;
2652
+ approval?: {
2653
+ mode: "global";
2654
+ } | {
2655
+ mode: "selected";
2656
+ tools: string[];
2657
+ } | undefined;
2658
+ connectionTimeoutMs?: number | undefined;
2659
+ }, {
2660
+ name: string;
2661
+ description?: string | undefined;
2662
+ url: string;
2663
+ transport?: "sse" | "streamableHttp" | undefined;
2664
+ authentication?: string | undefined;
2665
+ credential?: string | undefined;
2666
+ metadata?: {
2667
+ nodeTypeName?: string | undefined;
2668
+ } | undefined;
2669
+ toolFilter?: {
2670
+ mode: "allow";
2671
+ tools?: string[] | undefined;
2672
+ } | {
2673
+ mode: "exclude";
2674
+ tools?: string[] | undefined;
2675
+ } | undefined;
2676
+ approval?: {
2677
+ mode: "global";
2678
+ } | {
2679
+ mode: "selected";
2680
+ tools: string[];
2681
+ } | undefined;
2682
+ connectionTimeoutMs?: number | undefined;
2683
+ }>, "many">, {
2684
+ name: string;
2685
+ description?: string | undefined;
2686
+ url: string;
2687
+ transport: "sse" | "streamableHttp";
2688
+ authentication: string;
2689
+ credential?: string | undefined;
2690
+ metadata?: {
2691
+ nodeTypeName?: string | undefined;
2692
+ } | undefined;
2693
+ toolFilter?: {
2694
+ mode: "allow";
2695
+ tools: string[];
2696
+ } | {
2697
+ mode: "exclude";
2698
+ tools: string[];
2699
+ } | undefined;
2700
+ approval?: {
2701
+ mode: "global";
2702
+ } | {
2703
+ mode: "selected";
2704
+ tools: string[];
2705
+ } | undefined;
2706
+ connectionTimeoutMs?: number | undefined;
2707
+ }[], {
2708
+ name: string;
2709
+ description?: string | undefined;
2710
+ url: string;
2711
+ transport?: "sse" | "streamableHttp" | undefined;
2712
+ authentication?: string | undefined;
2713
+ credential?: string | undefined;
2714
+ metadata?: {
2715
+ nodeTypeName?: string | undefined;
2716
+ } | undefined;
2717
+ toolFilter?: {
2718
+ mode: "allow";
2719
+ tools?: string[] | undefined;
2720
+ } | {
2721
+ mode: "exclude";
2722
+ tools?: string[] | undefined;
2723
+ } | undefined;
2724
+ approval?: {
2725
+ mode: "global";
2726
+ } | {
2727
+ mode: "selected";
2728
+ tools: string[];
2729
+ } | undefined;
2730
+ connectionTimeoutMs?: number | undefined;
2731
+ }[]>>, {
2732
+ name: string;
2733
+ description?: string | undefined;
2734
+ url: string;
2735
+ transport: "sse" | "streamableHttp";
2736
+ authentication: string;
2737
+ credential?: string | undefined;
2738
+ metadata?: {
2739
+ nodeTypeName?: string | undefined;
2740
+ } | undefined;
2741
+ toolFilter?: {
2742
+ mode: "allow";
2743
+ tools: string[];
2744
+ } | {
2745
+ mode: "exclude";
2746
+ tools: string[];
2747
+ } | undefined;
2748
+ approval?: {
2749
+ mode: "global";
2750
+ } | {
2751
+ mode: "selected";
2752
+ tools: string[];
2753
+ } | undefined;
2754
+ connectionTimeoutMs?: number | undefined;
2755
+ }[] | undefined, {
2756
+ name: string;
2757
+ description?: string | undefined;
2758
+ url: string;
2759
+ transport?: "sse" | "streamableHttp" | undefined;
2760
+ authentication?: string | undefined;
2761
+ credential?: string | undefined;
2762
+ metadata?: {
2763
+ nodeTypeName?: string | undefined;
2764
+ } | undefined;
2765
+ toolFilter?: {
2766
+ mode: "allow";
2767
+ tools?: string[] | undefined;
2768
+ } | {
2769
+ mode: "exclude";
2770
+ tools?: string[] | undefined;
2771
+ } | undefined;
2772
+ approval?: {
2773
+ mode: "global";
2774
+ } | {
2775
+ mode: "selected";
2776
+ tools: string[];
2777
+ } | undefined;
2778
+ connectionTimeoutMs?: number | undefined;
2779
+ }[] | undefined>;
2780
+ }, "strict", z.ZodTypeAny, {
2781
+ name: string;
2782
+ model: string;
2783
+ credential?: string | undefined;
2784
+ instructions: string;
2785
+ skills?: {
2786
+ type: "skill";
2787
+ id: string;
2788
+ }[] | undefined;
2789
+ tools?: ({
2790
+ type: "workflow";
2791
+ workflow: string;
2792
+ name?: string | undefined;
2793
+ description?: string | undefined;
2794
+ allOutputs?: boolean | undefined;
2795
+ } | {
2796
+ type: "node";
2797
+ name: string;
2798
+ description?: string | undefined;
2799
+ inputSchema?: undefined;
2800
+ node: {
2801
+ nodeType: string;
2802
+ nodeTypeVersion: number;
2803
+ nodeParameters: Record<string, unknown>;
2804
+ credentials?: Record<string, {
2805
+ id: string;
2806
+ name: string;
2807
+ }> | undefined;
2808
+ };
2809
+ })[] | undefined;
2810
+ mcpServers?: {
2811
+ name: string;
2812
+ description?: string | undefined;
2813
+ url: string;
2814
+ transport: "sse" | "streamableHttp";
2815
+ authentication: string;
2816
+ credential?: string | undefined;
2817
+ metadata?: {
2818
+ nodeTypeName?: string | undefined;
2819
+ } | undefined;
2820
+ toolFilter?: {
2821
+ mode: "allow";
2822
+ tools: string[];
2823
+ } | {
2824
+ mode: "exclude";
2825
+ tools: string[];
2826
+ } | undefined;
2827
+ approval?: {
2828
+ mode: "global";
2829
+ } | {
2830
+ mode: "selected";
2831
+ tools: string[];
2832
+ } | undefined;
2833
+ connectionTimeoutMs?: number | undefined;
2834
+ }[] | undefined;
2835
+ }, {
2836
+ name: string;
2837
+ model: string;
2838
+ credential?: string | undefined;
2839
+ instructions: string;
2840
+ skills?: {
2841
+ type: "skill";
2842
+ id: string;
2843
+ }[] | undefined;
2844
+ tools?: ({
2845
+ type: "workflow";
2846
+ workflow: string;
2847
+ name?: string | undefined;
2848
+ description?: string | undefined;
2849
+ allOutputs?: boolean | undefined;
2850
+ } | {
2851
+ type: "node";
2852
+ name: string;
2853
+ description?: string | undefined;
2854
+ inputSchema?: undefined;
2855
+ node: {
2856
+ nodeType: string;
2857
+ nodeTypeVersion: number;
2858
+ nodeParameters?: Record<string, unknown> | undefined;
2859
+ credentials?: Record<string, {
2860
+ id: string;
2861
+ name: string;
2862
+ }> | undefined;
2863
+ };
2864
+ })[] | undefined;
2865
+ mcpServers?: {
2866
+ name: string;
2867
+ description?: string | undefined;
2868
+ url: string;
2869
+ transport?: "sse" | "streamableHttp" | undefined;
2870
+ authentication?: string | undefined;
2871
+ credential?: string | undefined;
2872
+ metadata?: {
2873
+ nodeTypeName?: string | undefined;
2874
+ } | undefined;
2875
+ toolFilter?: {
2876
+ mode: "allow";
2877
+ tools?: string[] | undefined;
2878
+ } | {
2879
+ mode: "exclude";
2880
+ tools?: string[] | undefined;
2881
+ } | undefined;
2882
+ approval?: {
2883
+ mode: "global";
2884
+ } | {
2885
+ mode: "selected";
2886
+ tools: string[];
2887
+ } | undefined;
2888
+ connectionTimeoutMs?: number | undefined;
2889
+ }[] | undefined;
2890
+ }>;
2891
+ skills: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
2892
+ name: z.ZodString;
2893
+ description: z.ZodString;
2894
+ instructions: z.ZodEffects<z.ZodString, string, string>;
2895
+ allowedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2896
+ references: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodObject<{
2897
+ path: z.ZodEffects<z.ZodString, string, string>;
2898
+ content: z.ZodString;
2899
+ }, "strict", z.ZodTypeAny, {
2900
+ path: string;
2901
+ content: string;
2902
+ }, {
2903
+ path: string;
2904
+ content: string;
2905
+ }>, {
2906
+ path: string;
2907
+ content: string;
2908
+ }, {
2909
+ path: string;
2910
+ content: string;
2911
+ }>, "many">, {
2912
+ path: string;
2913
+ content: string;
2914
+ }[], {
2915
+ path: string;
2916
+ content: string;
2917
+ }[]>>;
2918
+ scripts: z.ZodOptional<z.ZodNever>;
2919
+ templates: z.ZodOptional<z.ZodNever>;
2920
+ assets: z.ZodOptional<z.ZodNever>;
2921
+ examples: z.ZodOptional<z.ZodNever>;
2922
+ other: z.ZodOptional<z.ZodNever>;
2923
+ }, "strict", z.ZodTypeAny, {
2924
+ name: string;
2925
+ description: string;
2926
+ instructions: string;
2927
+ allowedTools?: string[] | undefined;
2928
+ references?: {
2929
+ path: string;
2930
+ content: string;
2931
+ }[] | undefined;
2932
+ scripts?: undefined;
2933
+ templates?: undefined;
2934
+ assets?: undefined;
2935
+ examples?: undefined;
2936
+ other?: undefined;
2937
+ }, {
2938
+ name: string;
2939
+ description: string;
2940
+ instructions: string;
2941
+ allowedTools?: string[] | undefined;
2942
+ references?: {
2943
+ path: string;
2944
+ content: string;
2945
+ }[] | undefined;
2946
+ scripts?: undefined;
2947
+ templates?: undefined;
2948
+ assets?: undefined;
2949
+ examples?: undefined;
2950
+ other?: undefined;
2951
+ }>>>;
2952
+ }, "strict", z.ZodTypeAny, {
2953
+ config: {
2954
+ name: string;
2955
+ model: string;
2956
+ credential?: string | undefined;
2957
+ instructions: string;
2958
+ skills?: {
2959
+ type: "skill";
2960
+ id: string;
2961
+ }[] | undefined;
2962
+ tools?: ({
2963
+ type: "workflow";
2964
+ workflow: string;
2965
+ name?: string | undefined;
2966
+ description?: string | undefined;
2967
+ allOutputs?: boolean | undefined;
2968
+ } | {
2969
+ type: "node";
2970
+ name: string;
2971
+ description?: string | undefined;
2972
+ inputSchema?: undefined;
2973
+ node: {
2974
+ nodeType: string;
2975
+ nodeTypeVersion: number;
2976
+ nodeParameters: Record<string, unknown>;
2977
+ credentials?: Record<string, {
2978
+ id: string;
2979
+ name: string;
2980
+ }> | undefined;
2981
+ };
2982
+ })[] | undefined;
2983
+ mcpServers?: {
2984
+ name: string;
2985
+ description?: string | undefined;
2986
+ url: string;
2987
+ transport: "sse" | "streamableHttp";
2988
+ authentication: string;
2989
+ credential?: string | undefined;
2990
+ metadata?: {
2991
+ nodeTypeName?: string | undefined;
2992
+ } | undefined;
2993
+ toolFilter?: {
2994
+ mode: "allow";
2995
+ tools: string[];
2996
+ } | {
2997
+ mode: "exclude";
2998
+ tools: string[];
2999
+ } | undefined;
3000
+ approval?: {
3001
+ mode: "global";
3002
+ } | {
3003
+ mode: "selected";
3004
+ tools: string[];
3005
+ } | undefined;
3006
+ connectionTimeoutMs?: number | undefined;
3007
+ }[] | undefined;
3008
+ };
3009
+ skills?: Record<string, {
3010
+ name: string;
3011
+ description: string;
3012
+ instructions: string;
3013
+ allowedTools?: string[] | undefined;
3014
+ references?: {
3015
+ path: string;
3016
+ content: string;
3017
+ }[] | undefined;
3018
+ scripts?: undefined;
3019
+ templates?: undefined;
3020
+ assets?: undefined;
3021
+ examples?: undefined;
3022
+ other?: undefined;
3023
+ }> | undefined;
3024
+ }, {
3025
+ config: {
3026
+ name: string;
3027
+ model: string;
3028
+ credential?: string | undefined;
3029
+ instructions: string;
3030
+ skills?: {
3031
+ type: "skill";
3032
+ id: string;
3033
+ }[] | undefined;
3034
+ tools?: ({
3035
+ type: "workflow";
3036
+ workflow: string;
3037
+ name?: string | undefined;
3038
+ description?: string | undefined;
3039
+ allOutputs?: boolean | undefined;
3040
+ } | {
3041
+ type: "node";
3042
+ name: string;
3043
+ description?: string | undefined;
3044
+ inputSchema?: undefined;
3045
+ node: {
3046
+ nodeType: string;
3047
+ nodeTypeVersion: number;
3048
+ nodeParameters?: Record<string, unknown> | undefined;
3049
+ credentials?: Record<string, {
3050
+ id: string;
3051
+ name: string;
3052
+ }> | undefined;
3053
+ };
3054
+ })[] | undefined;
3055
+ mcpServers?: {
3056
+ name: string;
3057
+ description?: string | undefined;
3058
+ url: string;
3059
+ transport?: "sse" | "streamableHttp" | undefined;
3060
+ authentication?: string | undefined;
3061
+ credential?: string | undefined;
3062
+ metadata?: {
3063
+ nodeTypeName?: string | undefined;
3064
+ } | undefined;
3065
+ toolFilter?: {
3066
+ mode: "allow";
3067
+ tools?: string[] | undefined;
3068
+ } | {
3069
+ mode: "exclude";
3070
+ tools?: string[] | undefined;
3071
+ } | undefined;
3072
+ approval?: {
3073
+ mode: "global";
3074
+ } | {
3075
+ mode: "selected";
3076
+ tools: string[];
3077
+ } | undefined;
3078
+ connectionTimeoutMs?: number | undefined;
3079
+ }[] | undefined;
3080
+ };
3081
+ skills?: Record<string, {
3082
+ name: string;
3083
+ description: string;
3084
+ instructions: string;
3085
+ allowedTools?: string[] | undefined;
3086
+ references?: {
3087
+ path: string;
3088
+ content: string;
3089
+ }[] | undefined;
3090
+ scripts?: undefined;
3091
+ templates?: undefined;
3092
+ assets?: undefined;
3093
+ examples?: undefined;
3094
+ other?: undefined;
3095
+ }> | undefined;
3096
+ }>, {
3097
+ config: {
3098
+ name: string;
3099
+ model: string;
3100
+ credential?: string | undefined;
3101
+ instructions: string;
3102
+ skills?: {
3103
+ type: "skill";
3104
+ id: string;
3105
+ }[] | undefined;
3106
+ tools?: ({
3107
+ type: "workflow";
3108
+ workflow: string;
3109
+ name?: string | undefined;
3110
+ description?: string | undefined;
3111
+ allOutputs?: boolean | undefined;
3112
+ } | {
3113
+ type: "node";
3114
+ name: string;
3115
+ description?: string | undefined;
3116
+ inputSchema?: undefined;
3117
+ node: {
3118
+ nodeType: string;
3119
+ nodeTypeVersion: number;
3120
+ nodeParameters: Record<string, unknown>;
3121
+ credentials?: Record<string, {
3122
+ id: string;
3123
+ name: string;
3124
+ }> | undefined;
3125
+ };
3126
+ })[] | undefined;
3127
+ mcpServers?: {
3128
+ name: string;
3129
+ description?: string | undefined;
3130
+ url: string;
3131
+ transport: "sse" | "streamableHttp";
3132
+ authentication: string;
3133
+ credential?: string | undefined;
3134
+ metadata?: {
3135
+ nodeTypeName?: string | undefined;
3136
+ } | undefined;
3137
+ toolFilter?: {
3138
+ mode: "allow";
3139
+ tools: string[];
3140
+ } | {
3141
+ mode: "exclude";
3142
+ tools: string[];
3143
+ } | undefined;
3144
+ approval?: {
3145
+ mode: "global";
3146
+ } | {
3147
+ mode: "selected";
3148
+ tools: string[];
3149
+ } | undefined;
3150
+ connectionTimeoutMs?: number | undefined;
3151
+ }[] | undefined;
3152
+ };
3153
+ skills?: Record<string, {
3154
+ name: string;
3155
+ description: string;
3156
+ instructions: string;
3157
+ allowedTools?: string[] | undefined;
3158
+ references?: {
3159
+ path: string;
3160
+ content: string;
3161
+ }[] | undefined;
3162
+ scripts?: undefined;
3163
+ templates?: undefined;
3164
+ assets?: undefined;
3165
+ examples?: undefined;
3166
+ other?: undefined;
3167
+ }> | undefined;
3168
+ }, {
3169
+ config: {
3170
+ name: string;
3171
+ model: string;
3172
+ credential?: string | undefined;
3173
+ instructions: string;
3174
+ skills?: {
3175
+ type: "skill";
3176
+ id: string;
3177
+ }[] | undefined;
3178
+ tools?: ({
3179
+ type: "workflow";
3180
+ workflow: string;
3181
+ name?: string | undefined;
3182
+ description?: string | undefined;
3183
+ allOutputs?: boolean | undefined;
3184
+ } | {
3185
+ type: "node";
3186
+ name: string;
3187
+ description?: string | undefined;
3188
+ inputSchema?: undefined;
3189
+ node: {
3190
+ nodeType: string;
3191
+ nodeTypeVersion: number;
3192
+ nodeParameters?: Record<string, unknown> | undefined;
3193
+ credentials?: Record<string, {
3194
+ id: string;
3195
+ name: string;
3196
+ }> | undefined;
3197
+ };
3198
+ })[] | undefined;
3199
+ mcpServers?: {
3200
+ name: string;
3201
+ description?: string | undefined;
3202
+ url: string;
3203
+ transport?: "sse" | "streamableHttp" | undefined;
3204
+ authentication?: string | undefined;
3205
+ credential?: string | undefined;
3206
+ metadata?: {
3207
+ nodeTypeName?: string | undefined;
3208
+ } | undefined;
3209
+ toolFilter?: {
3210
+ mode: "allow";
3211
+ tools?: string[] | undefined;
3212
+ } | {
3213
+ mode: "exclude";
3214
+ tools?: string[] | undefined;
3215
+ } | undefined;
3216
+ approval?: {
3217
+ mode: "global";
3218
+ } | {
3219
+ mode: "selected";
3220
+ tools: string[];
3221
+ } | undefined;
3222
+ connectionTimeoutMs?: number | undefined;
3223
+ }[] | undefined;
3224
+ };
3225
+ skills?: Record<string, {
3226
+ name: string;
3227
+ description: string;
3228
+ instructions: string;
3229
+ allowedTools?: string[] | undefined;
3230
+ references?: {
3231
+ path: string;
3232
+ content: string;
3233
+ }[] | undefined;
3234
+ scripts?: undefined;
3235
+ templates?: undefined;
3236
+ assets?: undefined;
3237
+ examples?: undefined;
3238
+ other?: undefined;
3239
+ }> | undefined;
3240
+ }>;
3241
+ export declare const RunnableInlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
3242
+ config: z.ZodObject<{
3243
+ name: z.ZodString;
3244
+ instructions: z.ZodString;
3245
+ skills: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
3246
+ type: z.ZodLiteral<"skill">;
3247
+ id: z.ZodString;
3248
+ }, "strip", z.ZodTypeAny, {
3249
+ type: "skill";
3250
+ id: string;
3251
+ }, {
3252
+ type: "skill";
3253
+ id: string;
3254
+ }>, "many">, {
3255
+ type: "skill";
3256
+ id: string;
3257
+ }[], {
3258
+ type: "skill";
3259
+ id: string;
3260
+ }[]>>;
3261
+ tools: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<Omit<{
3262
+ type: z.ZodLiteral<"workflow">;
3263
+ workflow: z.ZodString;
3264
+ name: z.ZodOptional<z.ZodString>;
3265
+ description: z.ZodOptional<z.ZodString>;
3266
+ requireApproval: z.ZodOptional<z.ZodBoolean>;
3267
+ allOutputs: z.ZodOptional<z.ZodBoolean>;
3268
+ }, "requireApproval">, "strict", z.ZodTypeAny, {
3269
+ type: "workflow";
3270
+ workflow: string;
3271
+ name?: string | undefined;
3272
+ description?: string | undefined;
3273
+ allOutputs?: boolean | undefined;
3274
+ }, {
3275
+ type: "workflow";
3276
+ workflow: string;
3277
+ name?: string | undefined;
3278
+ description?: string | undefined;
3279
+ allOutputs?: boolean | undefined;
3280
+ }>, z.ZodObject<Omit<{
3281
+ type: z.ZodLiteral<"node">;
3282
+ name: z.ZodString;
3283
+ description: z.ZodOptional<z.ZodString>;
3284
+ inputSchema: z.ZodOptional<z.ZodNever>;
3285
+ node: z.ZodObject<{
3286
+ nodeType: z.ZodString;
3287
+ nodeTypeVersion: z.ZodNumber;
3288
+ nodeParameters: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
3289
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3290
+ id: z.ZodString;
3291
+ name: z.ZodString;
3292
+ }, "strip", z.ZodTypeAny, {
3293
+ id: string;
3294
+ name: string;
3295
+ }, {
3296
+ id: string;
3297
+ name: string;
3298
+ }>>>;
3299
+ }, "strip", z.ZodTypeAny, {
3300
+ nodeType: string;
3301
+ nodeTypeVersion: number;
3302
+ nodeParameters: Record<string, unknown>;
3303
+ credentials?: Record<string, {
3304
+ id: string;
3305
+ name: string;
3306
+ }> | undefined;
3307
+ }, {
3308
+ nodeType: string;
3309
+ nodeTypeVersion: number;
3310
+ nodeParameters?: Record<string, unknown> | undefined;
3311
+ credentials?: Record<string, {
3312
+ id: string;
3313
+ name: string;
3314
+ }> | undefined;
3315
+ }>;
3316
+ requireApproval: z.ZodOptional<z.ZodBoolean>;
3317
+ }, "requireApproval">, "strict", z.ZodTypeAny, {
3318
+ type: "node";
3319
+ name: string;
3320
+ description?: string | undefined;
3321
+ inputSchema?: undefined;
3322
+ node: {
3323
+ nodeType: string;
3324
+ nodeTypeVersion: number;
3325
+ nodeParameters: Record<string, unknown>;
3326
+ credentials?: Record<string, {
3327
+ id: string;
3328
+ name: string;
3329
+ }> | undefined;
3330
+ };
3331
+ }, {
3332
+ type: "node";
3333
+ name: string;
3334
+ description?: string | undefined;
3335
+ inputSchema?: undefined;
3336
+ node: {
3337
+ nodeType: string;
3338
+ nodeTypeVersion: number;
3339
+ nodeParameters?: Record<string, unknown> | undefined;
3340
+ credentials?: Record<string, {
3341
+ id: string;
3342
+ name: string;
3343
+ }> | undefined;
3344
+ };
3345
+ }>]>, "many">>;
3346
+ mcpServers: z.ZodEffects<z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
3347
+ name: z.ZodString;
3348
+ description: z.ZodOptional<z.ZodString>;
3349
+ url: z.ZodString;
3350
+ transport: z.ZodDefault<z.ZodEnum<["sse", "streamableHttp"]>>;
3351
+ authentication: z.ZodDefault<z.ZodUnion<[z.ZodEnum<["none", "bearerAuth", "headerAuth", "multipleHeadersAuth", "mcpOAuth2Api"]>, z.ZodString]>>;
3352
+ credential: z.ZodOptional<z.ZodString>;
3353
+ metadata: z.ZodOptional<z.ZodObject<{
3354
+ nodeTypeName: z.ZodOptional<z.ZodString>;
3355
+ }, "strip", z.ZodTypeAny, {
3356
+ nodeTypeName?: string | undefined;
3357
+ }, {
3358
+ nodeTypeName?: string | undefined;
3359
+ }>>;
3360
+ toolFilter: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
3361
+ mode: z.ZodLiteral<"allow">;
3362
+ tools: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3363
+ }, "strict", z.ZodTypeAny, {
3364
+ mode: "allow";
3365
+ tools: string[];
3366
+ }, {
3367
+ mode: "allow";
3368
+ tools?: string[] | undefined;
3369
+ }>, z.ZodObject<{
3370
+ mode: z.ZodLiteral<"exclude">;
3371
+ tools: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3372
+ }, "strict", z.ZodTypeAny, {
3373
+ mode: "exclude";
3374
+ tools: string[];
3375
+ }, {
3376
+ mode: "exclude";
3377
+ tools?: string[] | undefined;
3378
+ }>]>>;
3379
+ approval: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
3380
+ mode: z.ZodLiteral<"global">;
3381
+ }, "strict", z.ZodTypeAny, {
3382
+ mode: "global";
3383
+ }, {
3384
+ mode: "global";
3385
+ }>, z.ZodObject<{
3386
+ mode: z.ZodLiteral<"selected">;
3387
+ tools: z.ZodArray<z.ZodString, "many">;
3388
+ }, "strict", z.ZodTypeAny, {
3389
+ mode: "selected";
3390
+ tools: string[];
3391
+ }, {
3392
+ mode: "selected";
3393
+ tools: string[];
3394
+ }>]>>;
3395
+ connectionTimeoutMs: z.ZodOptional<z.ZodNumber>;
3396
+ }, "strict", z.ZodTypeAny, {
3397
+ name: string;
3398
+ description?: string | undefined;
3399
+ url: string;
3400
+ transport: "sse" | "streamableHttp";
3401
+ authentication: string;
3402
+ credential?: string | undefined;
3403
+ metadata?: {
3404
+ nodeTypeName?: string | undefined;
3405
+ } | undefined;
3406
+ toolFilter?: {
3407
+ mode: "allow";
3408
+ tools: string[];
3409
+ } | {
3410
+ mode: "exclude";
3411
+ tools: string[];
3412
+ } | undefined;
3413
+ approval?: {
3414
+ mode: "global";
3415
+ } | {
3416
+ mode: "selected";
3417
+ tools: string[];
3418
+ } | undefined;
3419
+ connectionTimeoutMs?: number | undefined;
3420
+ }, {
3421
+ name: string;
3422
+ description?: string | undefined;
3423
+ url: string;
3424
+ transport?: "sse" | "streamableHttp" | undefined;
3425
+ authentication?: string | undefined;
3426
+ credential?: string | undefined;
3427
+ metadata?: {
3428
+ nodeTypeName?: string | undefined;
3429
+ } | undefined;
3430
+ toolFilter?: {
3431
+ mode: "allow";
3432
+ tools?: string[] | undefined;
3433
+ } | {
3434
+ mode: "exclude";
3435
+ tools?: string[] | undefined;
3436
+ } | undefined;
3437
+ approval?: {
3438
+ mode: "global";
3439
+ } | {
3440
+ mode: "selected";
3441
+ tools: string[];
3442
+ } | undefined;
3443
+ connectionTimeoutMs?: number | undefined;
3444
+ }>, "many">, {
3445
+ name: string;
3446
+ description?: string | undefined;
3447
+ url: string;
3448
+ transport: "sse" | "streamableHttp";
3449
+ authentication: string;
3450
+ credential?: string | undefined;
3451
+ metadata?: {
3452
+ nodeTypeName?: string | undefined;
3453
+ } | undefined;
3454
+ toolFilter?: {
3455
+ mode: "allow";
3456
+ tools: string[];
3457
+ } | {
3458
+ mode: "exclude";
3459
+ tools: string[];
3460
+ } | undefined;
3461
+ approval?: {
3462
+ mode: "global";
3463
+ } | {
3464
+ mode: "selected";
3465
+ tools: string[];
3466
+ } | undefined;
3467
+ connectionTimeoutMs?: number | undefined;
3468
+ }[], {
3469
+ name: string;
3470
+ description?: string | undefined;
3471
+ url: string;
3472
+ transport?: "sse" | "streamableHttp" | undefined;
3473
+ authentication?: string | undefined;
3474
+ credential?: string | undefined;
3475
+ metadata?: {
3476
+ nodeTypeName?: string | undefined;
3477
+ } | undefined;
3478
+ toolFilter?: {
3479
+ mode: "allow";
3480
+ tools?: string[] | undefined;
3481
+ } | {
3482
+ mode: "exclude";
3483
+ tools?: string[] | undefined;
3484
+ } | undefined;
3485
+ approval?: {
3486
+ mode: "global";
3487
+ } | {
3488
+ mode: "selected";
3489
+ tools: string[];
3490
+ } | undefined;
3491
+ connectionTimeoutMs?: number | undefined;
3492
+ }[]>>, {
3493
+ name: string;
3494
+ description?: string | undefined;
3495
+ url: string;
3496
+ transport: "sse" | "streamableHttp";
3497
+ authentication: string;
3498
+ credential?: string | undefined;
3499
+ metadata?: {
3500
+ nodeTypeName?: string | undefined;
3501
+ } | undefined;
3502
+ toolFilter?: {
3503
+ mode: "allow";
3504
+ tools: string[];
3505
+ } | {
3506
+ mode: "exclude";
3507
+ tools: string[];
3508
+ } | undefined;
3509
+ approval?: {
3510
+ mode: "global";
3511
+ } | {
3512
+ mode: "selected";
3513
+ tools: string[];
3514
+ } | undefined;
3515
+ connectionTimeoutMs?: number | undefined;
3516
+ }[] | undefined, {
3517
+ name: string;
3518
+ description?: string | undefined;
3519
+ url: string;
3520
+ transport?: "sse" | "streamableHttp" | undefined;
3521
+ authentication?: string | undefined;
3522
+ credential?: string | undefined;
3523
+ metadata?: {
3524
+ nodeTypeName?: string | undefined;
3525
+ } | undefined;
3526
+ toolFilter?: {
3527
+ mode: "allow";
3528
+ tools?: string[] | undefined;
3529
+ } | {
3530
+ mode: "exclude";
3531
+ tools?: string[] | undefined;
3532
+ } | undefined;
3533
+ approval?: {
3534
+ mode: "global";
3535
+ } | {
3536
+ mode: "selected";
3537
+ tools: string[];
3538
+ } | undefined;
3539
+ connectionTimeoutMs?: number | undefined;
3540
+ }[] | undefined>;
3541
+ } & {
3542
+ model: z.ZodString;
3543
+ credential: z.ZodEffects<z.ZodString, string, string>;
3544
+ }, "strict", z.ZodTypeAny, {
3545
+ name: string;
3546
+ instructions: string;
3547
+ skills?: {
3548
+ type: "skill";
3549
+ id: string;
3550
+ }[] | undefined;
3551
+ tools?: ({
3552
+ type: "workflow";
3553
+ workflow: string;
3554
+ name?: string | undefined;
3555
+ description?: string | undefined;
3556
+ allOutputs?: boolean | undefined;
3557
+ } | {
3558
+ type: "node";
3559
+ name: string;
3560
+ description?: string | undefined;
3561
+ inputSchema?: undefined;
3562
+ node: {
3563
+ nodeType: string;
3564
+ nodeTypeVersion: number;
3565
+ nodeParameters: Record<string, unknown>;
3566
+ credentials?: Record<string, {
3567
+ id: string;
3568
+ name: string;
3569
+ }> | undefined;
3570
+ };
3571
+ })[] | undefined;
3572
+ mcpServers?: {
3573
+ name: string;
3574
+ description?: string | undefined;
3575
+ url: string;
3576
+ transport: "sse" | "streamableHttp";
3577
+ authentication: string;
3578
+ credential?: string | undefined;
3579
+ metadata?: {
3580
+ nodeTypeName?: string | undefined;
3581
+ } | undefined;
3582
+ toolFilter?: {
3583
+ mode: "allow";
3584
+ tools: string[];
3585
+ } | {
3586
+ mode: "exclude";
3587
+ tools: string[];
3588
+ } | undefined;
3589
+ approval?: {
3590
+ mode: "global";
3591
+ } | {
3592
+ mode: "selected";
3593
+ tools: string[];
3594
+ } | undefined;
3595
+ connectionTimeoutMs?: number | undefined;
3596
+ }[] | undefined;
3597
+ model: string;
3598
+ credential: string;
3599
+ }, {
3600
+ name: string;
3601
+ instructions: string;
3602
+ skills?: {
3603
+ type: "skill";
3604
+ id: string;
3605
+ }[] | undefined;
3606
+ tools?: ({
3607
+ type: "workflow";
3608
+ workflow: string;
3609
+ name?: string | undefined;
3610
+ description?: string | undefined;
3611
+ allOutputs?: boolean | undefined;
3612
+ } | {
3613
+ type: "node";
3614
+ name: string;
3615
+ description?: string | undefined;
3616
+ inputSchema?: undefined;
3617
+ node: {
3618
+ nodeType: string;
3619
+ nodeTypeVersion: number;
3620
+ nodeParameters?: Record<string, unknown> | undefined;
3621
+ credentials?: Record<string, {
3622
+ id: string;
3623
+ name: string;
3624
+ }> | undefined;
3625
+ };
3626
+ })[] | undefined;
3627
+ mcpServers?: {
3628
+ name: string;
3629
+ description?: string | undefined;
3630
+ url: string;
3631
+ transport?: "sse" | "streamableHttp" | undefined;
3632
+ authentication?: string | undefined;
3633
+ credential?: string | undefined;
3634
+ metadata?: {
3635
+ nodeTypeName?: string | undefined;
3636
+ } | undefined;
3637
+ toolFilter?: {
3638
+ mode: "allow";
3639
+ tools?: string[] | undefined;
3640
+ } | {
3641
+ mode: "exclude";
3642
+ tools?: string[] | undefined;
3643
+ } | undefined;
3644
+ approval?: {
3645
+ mode: "global";
3646
+ } | {
3647
+ mode: "selected";
3648
+ tools: string[];
3649
+ } | undefined;
3650
+ connectionTimeoutMs?: number | undefined;
3651
+ }[] | undefined;
3652
+ model: string;
3653
+ credential: string;
3654
+ }>;
3655
+ skills: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
3656
+ name: z.ZodString;
3657
+ description: z.ZodString;
3658
+ instructions: z.ZodEffects<z.ZodString, string, string>;
3659
+ allowedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3660
+ references: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodObject<{
3661
+ path: z.ZodEffects<z.ZodString, string, string>;
3662
+ content: z.ZodString;
3663
+ }, "strict", z.ZodTypeAny, {
3664
+ path: string;
3665
+ content: string;
3666
+ }, {
3667
+ path: string;
3668
+ content: string;
3669
+ }>, {
3670
+ path: string;
3671
+ content: string;
3672
+ }, {
3673
+ path: string;
3674
+ content: string;
3675
+ }>, "many">, {
3676
+ path: string;
3677
+ content: string;
3678
+ }[], {
3679
+ path: string;
3680
+ content: string;
3681
+ }[]>>;
3682
+ scripts: z.ZodOptional<z.ZodNever>;
3683
+ templates: z.ZodOptional<z.ZodNever>;
3684
+ assets: z.ZodOptional<z.ZodNever>;
3685
+ examples: z.ZodOptional<z.ZodNever>;
3686
+ other: z.ZodOptional<z.ZodNever>;
3687
+ }, "strict", z.ZodTypeAny, {
3688
+ name: string;
3689
+ description: string;
3690
+ instructions: string;
3691
+ allowedTools?: string[] | undefined;
3692
+ references?: {
3693
+ path: string;
3694
+ content: string;
3695
+ }[] | undefined;
3696
+ scripts?: undefined;
3697
+ templates?: undefined;
3698
+ assets?: undefined;
3699
+ examples?: undefined;
3700
+ other?: undefined;
3701
+ }, {
3702
+ name: string;
3703
+ description: string;
3704
+ instructions: string;
3705
+ allowedTools?: string[] | undefined;
3706
+ references?: {
3707
+ path: string;
3708
+ content: string;
3709
+ }[] | undefined;
3710
+ scripts?: undefined;
3711
+ templates?: undefined;
3712
+ assets?: undefined;
3713
+ examples?: undefined;
3714
+ other?: undefined;
3715
+ }>>>;
3716
+ }, "strict", z.ZodTypeAny, {
3717
+ config: {
3718
+ name: string;
3719
+ instructions: string;
3720
+ skills?: {
3721
+ type: "skill";
3722
+ id: string;
3723
+ }[] | undefined;
3724
+ tools?: ({
3725
+ type: "workflow";
3726
+ workflow: string;
3727
+ name?: string | undefined;
3728
+ description?: string | undefined;
3729
+ allOutputs?: boolean | undefined;
3730
+ } | {
3731
+ type: "node";
3732
+ name: string;
3733
+ description?: string | undefined;
3734
+ inputSchema?: undefined;
3735
+ node: {
3736
+ nodeType: string;
3737
+ nodeTypeVersion: number;
3738
+ nodeParameters: Record<string, unknown>;
3739
+ credentials?: Record<string, {
3740
+ id: string;
3741
+ name: string;
3742
+ }> | undefined;
3743
+ };
3744
+ })[] | undefined;
3745
+ mcpServers?: {
3746
+ name: string;
3747
+ description?: string | undefined;
3748
+ url: string;
3749
+ transport: "sse" | "streamableHttp";
3750
+ authentication: string;
3751
+ credential?: string | undefined;
3752
+ metadata?: {
3753
+ nodeTypeName?: string | undefined;
3754
+ } | undefined;
3755
+ toolFilter?: {
3756
+ mode: "allow";
3757
+ tools: string[];
3758
+ } | {
3759
+ mode: "exclude";
3760
+ tools: string[];
3761
+ } | undefined;
3762
+ approval?: {
3763
+ mode: "global";
3764
+ } | {
3765
+ mode: "selected";
3766
+ tools: string[];
3767
+ } | undefined;
3768
+ connectionTimeoutMs?: number | undefined;
3769
+ }[] | undefined;
3770
+ model: string;
3771
+ credential: string;
3772
+ };
3773
+ skills?: Record<string, {
3774
+ name: string;
3775
+ description: string;
3776
+ instructions: string;
3777
+ allowedTools?: string[] | undefined;
3778
+ references?: {
3779
+ path: string;
3780
+ content: string;
3781
+ }[] | undefined;
3782
+ scripts?: undefined;
3783
+ templates?: undefined;
3784
+ assets?: undefined;
3785
+ examples?: undefined;
3786
+ other?: undefined;
3787
+ }> | undefined;
3788
+ }, {
3789
+ config: {
3790
+ name: string;
3791
+ instructions: string;
3792
+ skills?: {
3793
+ type: "skill";
3794
+ id: string;
3795
+ }[] | undefined;
3796
+ tools?: ({
3797
+ type: "workflow";
3798
+ workflow: string;
3799
+ name?: string | undefined;
3800
+ description?: string | undefined;
3801
+ allOutputs?: boolean | undefined;
3802
+ } | {
3803
+ type: "node";
3804
+ name: string;
3805
+ description?: string | undefined;
3806
+ inputSchema?: undefined;
3807
+ node: {
3808
+ nodeType: string;
3809
+ nodeTypeVersion: number;
3810
+ nodeParameters?: Record<string, unknown> | undefined;
3811
+ credentials?: Record<string, {
3812
+ id: string;
3813
+ name: string;
3814
+ }> | undefined;
3815
+ };
3816
+ })[] | undefined;
3817
+ mcpServers?: {
3818
+ name: string;
3819
+ description?: string | undefined;
3820
+ url: string;
3821
+ transport?: "sse" | "streamableHttp" | undefined;
3822
+ authentication?: string | undefined;
3823
+ credential?: string | undefined;
3824
+ metadata?: {
3825
+ nodeTypeName?: string | undefined;
3826
+ } | undefined;
3827
+ toolFilter?: {
3828
+ mode: "allow";
3829
+ tools?: string[] | undefined;
3830
+ } | {
3831
+ mode: "exclude";
3832
+ tools?: string[] | undefined;
3833
+ } | undefined;
3834
+ approval?: {
3835
+ mode: "global";
3836
+ } | {
3837
+ mode: "selected";
3838
+ tools: string[];
3839
+ } | undefined;
3840
+ connectionTimeoutMs?: number | undefined;
3841
+ }[] | undefined;
3842
+ model: string;
3843
+ credential: string;
3844
+ };
3845
+ skills?: Record<string, {
3846
+ name: string;
3847
+ description: string;
3848
+ instructions: string;
3849
+ allowedTools?: string[] | undefined;
3850
+ references?: {
3851
+ path: string;
3852
+ content: string;
3853
+ }[] | undefined;
3854
+ scripts?: undefined;
3855
+ templates?: undefined;
3856
+ assets?: undefined;
3857
+ examples?: undefined;
3858
+ other?: undefined;
3859
+ }> | undefined;
3860
+ }>, {
3861
+ config: {
3862
+ name: string;
3863
+ instructions: string;
3864
+ skills?: {
3865
+ type: "skill";
3866
+ id: string;
3867
+ }[] | undefined;
3868
+ tools?: ({
3869
+ type: "workflow";
3870
+ workflow: string;
3871
+ name?: string | undefined;
3872
+ description?: string | undefined;
3873
+ allOutputs?: boolean | undefined;
3874
+ } | {
3875
+ type: "node";
3876
+ name: string;
3877
+ description?: string | undefined;
3878
+ inputSchema?: undefined;
3879
+ node: {
3880
+ nodeType: string;
3881
+ nodeTypeVersion: number;
3882
+ nodeParameters: Record<string, unknown>;
3883
+ credentials?: Record<string, {
3884
+ id: string;
3885
+ name: string;
3886
+ }> | undefined;
3887
+ };
3888
+ })[] | undefined;
3889
+ mcpServers?: {
3890
+ name: string;
3891
+ description?: string | undefined;
3892
+ url: string;
3893
+ transport: "sse" | "streamableHttp";
3894
+ authentication: string;
3895
+ credential?: string | undefined;
3896
+ metadata?: {
3897
+ nodeTypeName?: string | undefined;
3898
+ } | undefined;
3899
+ toolFilter?: {
3900
+ mode: "allow";
3901
+ tools: string[];
3902
+ } | {
3903
+ mode: "exclude";
3904
+ tools: string[];
3905
+ } | undefined;
3906
+ approval?: {
3907
+ mode: "global";
3908
+ } | {
3909
+ mode: "selected";
3910
+ tools: string[];
3911
+ } | undefined;
3912
+ connectionTimeoutMs?: number | undefined;
3913
+ }[] | undefined;
3914
+ model: string;
3915
+ credential: string;
3916
+ };
3917
+ skills?: Record<string, {
3918
+ name: string;
3919
+ description: string;
3920
+ instructions: string;
3921
+ allowedTools?: string[] | undefined;
3922
+ references?: {
3923
+ path: string;
3924
+ content: string;
3925
+ }[] | undefined;
3926
+ scripts?: undefined;
3927
+ templates?: undefined;
3928
+ assets?: undefined;
3929
+ examples?: undefined;
3930
+ other?: undefined;
3931
+ }> | undefined;
3932
+ }, {
3933
+ config: {
3934
+ name: string;
3935
+ instructions: string;
3936
+ skills?: {
3937
+ type: "skill";
3938
+ id: string;
3939
+ }[] | undefined;
3940
+ tools?: ({
3941
+ type: "workflow";
3942
+ workflow: string;
3943
+ name?: string | undefined;
3944
+ description?: string | undefined;
3945
+ allOutputs?: boolean | undefined;
3946
+ } | {
3947
+ type: "node";
3948
+ name: string;
3949
+ description?: string | undefined;
3950
+ inputSchema?: undefined;
3951
+ node: {
3952
+ nodeType: string;
3953
+ nodeTypeVersion: number;
3954
+ nodeParameters?: Record<string, unknown> | undefined;
3955
+ credentials?: Record<string, {
3956
+ id: string;
3957
+ name: string;
3958
+ }> | undefined;
3959
+ };
3960
+ })[] | undefined;
3961
+ mcpServers?: {
3962
+ name: string;
3963
+ description?: string | undefined;
3964
+ url: string;
3965
+ transport?: "sse" | "streamableHttp" | undefined;
3966
+ authentication?: string | undefined;
3967
+ credential?: string | undefined;
3968
+ metadata?: {
3969
+ nodeTypeName?: string | undefined;
3970
+ } | undefined;
3971
+ toolFilter?: {
3972
+ mode: "allow";
3973
+ tools?: string[] | undefined;
3974
+ } | {
3975
+ mode: "exclude";
3976
+ tools?: string[] | undefined;
3977
+ } | undefined;
3978
+ approval?: {
3979
+ mode: "global";
3980
+ } | {
3981
+ mode: "selected";
3982
+ tools: string[];
3983
+ } | undefined;
3984
+ connectionTimeoutMs?: number | undefined;
3985
+ }[] | undefined;
3986
+ model: string;
3987
+ credential: string;
3988
+ };
3989
+ skills?: Record<string, {
3990
+ name: string;
3991
+ description: string;
3992
+ instructions: string;
3993
+ allowedTools?: string[] | undefined;
3994
+ references?: {
3995
+ path: string;
3996
+ content: string;
3997
+ }[] | undefined;
3998
+ scripts?: undefined;
3999
+ templates?: undefined;
4000
+ assets?: undefined;
4001
+ examples?: undefined;
4002
+ other?: undefined;
4003
+ }> | undefined;
4004
+ }>;
4005
+ export type InlineAgentJsonConfig = z.infer<typeof InlineAgentJsonConfigSchema>;
4006
+ export type InlineAgentConfig = z.infer<typeof InlineAgentConfigSchema>;
4007
+ export type RunnableInlineAgentConfig = z.infer<typeof RunnableInlineAgentConfigSchema>;