@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
@@ -24,7 +24,7 @@ export type ThreadId = string & {
24
24
  export type ToolCallId = string & {
25
25
  readonly __brand: 'ToolCallId';
26
26
  };
27
- export declare const instanceAiEventTypeSchema: z.ZodEnum<["run-start", "run-finish", "agent-spawned", "agent-completed", "text-delta", "reasoning-delta", "text-block", "reasoning-block", "tool-call", "tool-result", "tool-error", "tool-interrupted", "confirmation-request", "tasks-update", "filesystem-request", "thread-title-updated", "status", "error"]>;
27
+ export declare const instanceAiEventTypeSchema: z.ZodEnum<["run-start", "run-finish", "agent-spawned", "agent-completed", "text-delta", "reasoning-delta", "text-block", "reasoning-block", "tool-input-start", "tool-call", "tool-result", "tool-error", "tool-interrupted", "confirmation-request", "tasks-update", "filesystem-request", "thread-title-updated", "status", "error"]>;
28
28
  export type InstanceAiEventType = z.infer<typeof instanceAiEventTypeSchema>;
29
29
  export declare const INSTANCE_AI_EPHEMERAL_EVENT_TYPES: ReadonlySet<InstanceAiEventType>;
30
30
  export declare const instanceAiRunStatusSchema: z.ZodEnum<["completed", "cancelled", "error", "interrupted"]>;
@@ -76,26 +76,26 @@ export declare const runFinishPayloadSchema: z.ZodObject<{
76
76
  reason: z.ZodOptional<z.ZodString>;
77
77
  archivedWorkflowIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
78
78
  }, "strip", z.ZodTypeAny, {
79
- status: "error" | "completed" | "cancelled" | "interrupted";
79
+ status: "cancelled" | "completed" | "error" | "interrupted";
80
80
  reason?: string | undefined;
81
81
  archivedWorkflowIds?: string[] | undefined;
82
82
  }, {
83
- status: "error" | "completed" | "cancelled" | "interrupted";
83
+ status: "cancelled" | "completed" | "error" | "interrupted";
84
84
  reason?: string | undefined;
85
85
  archivedWorkflowIds?: string[] | undefined;
86
86
  }>;
87
87
  export declare const agentSpawnedTargetResourceSchema: z.ZodObject<{
88
- type: z.ZodEnum<["workflow", "data-table", "credential", "agent", "other"]>;
88
+ type: z.ZodEnum<["workflow", "data-table", "credential", "other", "agent", "config-eval"]>;
89
89
  id: z.ZodOptional<z.ZodString>;
90
90
  name: z.ZodOptional<z.ZodString>;
91
91
  projectId: z.ZodOptional<z.ZodString>;
92
92
  }, "strip", z.ZodTypeAny, {
93
- type: "data-table" | "workflow" | "credential" | "agent" | "other";
93
+ type: "agent" | "config-eval" | "credential" | "data-table" | "other" | "workflow";
94
94
  id?: string | undefined;
95
95
  name?: string | undefined;
96
96
  projectId?: string | undefined;
97
97
  }, {
98
- type: "data-table" | "workflow" | "credential" | "agent" | "other";
98
+ type: "agent" | "config-eval" | "credential" | "data-table" | "other" | "workflow";
99
99
  id?: string | undefined;
100
100
  name?: string | undefined;
101
101
  projectId?: string | undefined;
@@ -111,17 +111,17 @@ export declare const agentSpawnedPayloadSchema: z.ZodObject<{
111
111
  subtitle: z.ZodOptional<z.ZodString>;
112
112
  goal: z.ZodOptional<z.ZodString>;
113
113
  targetResource: z.ZodOptional<z.ZodObject<{
114
- type: z.ZodEnum<["workflow", "data-table", "credential", "agent", "other"]>;
114
+ type: z.ZodEnum<["workflow", "data-table", "credential", "other", "agent", "config-eval"]>;
115
115
  id: z.ZodOptional<z.ZodString>;
116
116
  name: z.ZodOptional<z.ZodString>;
117
117
  projectId: z.ZodOptional<z.ZodString>;
118
118
  }, "strip", z.ZodTypeAny, {
119
- type: "data-table" | "workflow" | "credential" | "agent" | "other";
119
+ type: "agent" | "config-eval" | "credential" | "data-table" | "other" | "workflow";
120
120
  id?: string | undefined;
121
121
  name?: string | undefined;
122
122
  projectId?: string | undefined;
123
123
  }, {
124
- type: "data-table" | "workflow" | "credential" | "agent" | "other";
124
+ type: "agent" | "config-eval" | "credential" | "data-table" | "other" | "workflow";
125
125
  id?: string | undefined;
126
126
  name?: string | undefined;
127
127
  projectId?: string | undefined;
@@ -131,12 +131,12 @@ export declare const agentSpawnedPayloadSchema: z.ZodObject<{
131
131
  role: string;
132
132
  tools: string[];
133
133
  taskId?: string | undefined;
134
- kind?: "builder" | "data-table" | "planner" | "eval-setup" | "agent-builder" | undefined;
134
+ kind?: "agent-builder" | "builder" | "data-table" | "eval-setup" | "planner" | undefined;
135
135
  title?: string | undefined;
136
136
  subtitle?: string | undefined;
137
137
  goal?: string | undefined;
138
138
  targetResource?: {
139
- type: "data-table" | "workflow" | "credential" | "agent" | "other";
139
+ type: "agent" | "config-eval" | "credential" | "data-table" | "other" | "workflow";
140
140
  id?: string | undefined;
141
141
  name?: string | undefined;
142
142
  projectId?: string | undefined;
@@ -146,12 +146,12 @@ export declare const agentSpawnedPayloadSchema: z.ZodObject<{
146
146
  role: string;
147
147
  tools: string[];
148
148
  taskId?: string | undefined;
149
- kind?: "builder" | "data-table" | "planner" | "eval-setup" | "agent-builder" | undefined;
149
+ kind?: "agent-builder" | "builder" | "data-table" | "eval-setup" | "planner" | undefined;
150
150
  title?: string | undefined;
151
151
  subtitle?: string | undefined;
152
152
  goal?: string | undefined;
153
153
  targetResource?: {
154
- type: "data-table" | "workflow" | "credential" | "agent" | "other";
154
+ type: "agent" | "config-eval" | "credential" | "data-table" | "other" | "workflow";
155
155
  id?: string | undefined;
156
156
  name?: string | undefined;
157
157
  projectId?: string | undefined;
@@ -197,6 +197,16 @@ export declare const toolCallPayloadSchema: z.ZodObject<{
197
197
  toolName: string;
198
198
  args: Record<string, unknown>;
199
199
  }>;
200
+ export declare const toolInputStartPayloadSchema: z.ZodObject<{
201
+ toolCallId: z.ZodString;
202
+ toolName: z.ZodString;
203
+ }, "strip", z.ZodTypeAny, {
204
+ toolCallId: string;
205
+ toolName: string;
206
+ }, {
207
+ toolCallId: string;
208
+ toolName: string;
209
+ }>;
200
210
  export declare const toolResultPayloadSchema: z.ZodObject<{
201
211
  toolCallId: z.ZodString;
202
212
  result: z.ZodUnknown;
@@ -211,11 +221,11 @@ export declare const toolErrorPayloadSchema: z.ZodObject<{
211
221
  toolCallId: z.ZodString;
212
222
  error: z.ZodString;
213
223
  }, "strip", z.ZodTypeAny, {
214
- error: string;
215
224
  toolCallId: string;
216
- }, {
217
225
  error: string;
226
+ }, {
218
227
  toolCallId: string;
228
+ error: string;
219
229
  }>;
220
230
  export declare const credentialRequestSchema: z.ZodObject<{
221
231
  credentialType: z.ZodString;
@@ -232,16 +242,16 @@ export declare const credentialRequestSchema: z.ZodObject<{
232
242
  }>, "many">;
233
243
  suggestedName: z.ZodOptional<z.ZodString>;
234
244
  }, "strip", z.ZodTypeAny, {
235
- reason: string;
236
245
  credentialType: string;
246
+ reason: string;
237
247
  existingCredentials: {
238
248
  id: string;
239
249
  name: string;
240
250
  }[];
241
251
  suggestedName?: string | undefined;
242
252
  }, {
243
- reason: string;
244
253
  credentialType: string;
254
+ reason: string;
245
255
  existingCredentials: {
246
256
  id: string;
247
257
  name: string;
@@ -252,9 +262,9 @@ export type InstanceAiCredentialRequest = z.infer<typeof credentialRequestSchema
252
262
  export declare const credentialFlowSchema: z.ZodObject<{
253
263
  stage: z.ZodEnum<["generic", "finalize"]>;
254
264
  }, "strip", z.ZodTypeAny, {
255
- stage: "generic" | "finalize";
265
+ stage: "finalize" | "generic";
256
266
  }, {
257
- stage: "generic" | "finalize";
267
+ stage: "finalize" | "generic";
258
268
  }>;
259
269
  export type InstanceAiCredentialFlow = z.infer<typeof credentialFlowSchema>;
260
270
  export declare const workflowSetupNodeSchema: z.ZodObject<{
@@ -288,12 +298,10 @@ export declare const workflowSetupNodeSchema: z.ZodObject<{
288
298
  position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
289
299
  id: z.ZodString;
290
300
  }, "strip", z.ZodTypeAny, {
291
- type: string;
292
- id: string;
293
301
  name: string;
302
+ type: string;
294
303
  typeVersion: number;
295
304
  parameters: Record<string, unknown>;
296
- position: [number, number];
297
305
  credentials?: Record<string, {
298
306
  id: string;
299
307
  name: string;
@@ -302,13 +310,13 @@ export declare const workflowSetupNodeSchema: z.ZodObject<{
302
310
  name: string;
303
311
  __aiGatewayManaged: true;
304
312
  }> | undefined;
305
- }, {
306
- type: string;
313
+ position: [number, number];
307
314
  id: string;
315
+ }, {
308
316
  name: string;
317
+ type: string;
309
318
  typeVersion: number;
310
319
  parameters: Record<string, unknown>;
311
- position: [number, number];
312
320
  credentials?: Record<string, {
313
321
  id: string;
314
322
  name: string;
@@ -317,6 +325,8 @@ export declare const workflowSetupNodeSchema: z.ZodObject<{
317
325
  name: string;
318
326
  __aiGatewayManaged: true;
319
327
  }> | undefined;
328
+ position: [number, number];
329
+ id: string;
320
330
  }>;
321
331
  credentialType: z.ZodOptional<z.ZodString>;
322
332
  existingCredentials: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -347,10 +357,10 @@ export declare const workflowSetupNodeSchema: z.ZodObject<{
347
357
  status: z.ZodEnum<["success", "error", "listening"]>;
348
358
  error: z.ZodOptional<z.ZodString>;
349
359
  }, "strip", z.ZodTypeAny, {
350
- status: "error" | "success" | "listening";
360
+ status: "error" | "listening" | "success";
351
361
  error?: string | undefined;
352
362
  }, {
353
- status: "error" | "success" | "listening";
363
+ status: "error" | "listening" | "success";
354
364
  error?: string | undefined;
355
365
  }>>;
356
366
  parameterIssues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
@@ -364,32 +374,32 @@ export declare const workflowSetupNodeSchema: z.ZodObject<{
364
374
  name: z.ZodString;
365
375
  value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>;
366
376
  }, "strip", z.ZodTypeAny, {
367
- value: string | number | boolean;
368
377
  name: string;
369
- }, {
370
378
  value: string | number | boolean;
379
+ }, {
371
380
  name: string;
381
+ value: string | number | boolean;
372
382
  }>, "many">>;
373
383
  }, "strip", z.ZodTypeAny, {
374
- type: string;
375
384
  name: string;
376
385
  displayName: string;
386
+ type: string;
387
+ required?: boolean | undefined;
388
+ default?: unknown;
377
389
  options?: {
378
- value: string | number | boolean;
379
390
  name: string;
391
+ value: string | number | boolean;
380
392
  }[] | undefined;
381
- required?: boolean | undefined;
382
- default?: unknown;
383
393
  }, {
384
- type: string;
385
394
  name: string;
386
395
  displayName: string;
396
+ type: string;
397
+ required?: boolean | undefined;
398
+ default?: unknown;
387
399
  options?: {
388
- value: string | number | boolean;
389
400
  name: string;
401
+ value: string | number | boolean;
390
402
  }[] | undefined;
391
- required?: boolean | undefined;
392
- default?: unknown;
393
403
  }>, "many">>;
394
404
  needsAction: z.ZodOptional<z.ZodBoolean>;
395
405
  subnodeRootNode: z.ZodOptional<z.ZodObject<{
@@ -398,24 +408,22 @@ export declare const workflowSetupNodeSchema: z.ZodObject<{
398
408
  typeVersion: z.ZodNumber;
399
409
  id: z.ZodString;
400
410
  }, "strip", z.ZodTypeAny, {
401
- type: string;
402
- id: string;
403
411
  name: string;
404
- typeVersion: number;
405
- }, {
406
412
  type: string;
413
+ typeVersion: number;
407
414
  id: string;
415
+ }, {
408
416
  name: string;
417
+ type: string;
409
418
  typeVersion: number;
419
+ id: string;
410
420
  }>>;
411
421
  }, "strip", z.ZodTypeAny, {
412
422
  node: {
413
- type: string;
414
- id: string;
415
423
  name: string;
424
+ type: string;
416
425
  typeVersion: number;
417
426
  parameters: Record<string, unknown>;
418
- position: [number, number];
419
427
  credentials?: Record<string, {
420
428
  id: string;
421
429
  name: string;
@@ -424,13 +432,15 @@ export declare const workflowSetupNodeSchema: z.ZodObject<{
424
432
  name: string;
425
433
  __aiGatewayManaged: true;
426
434
  }> | undefined;
435
+ position: [number, number];
436
+ id: string;
427
437
  };
428
- isTrigger: boolean;
429
438
  credentialType?: string | undefined;
430
439
  existingCredentials?: {
431
440
  id: string;
432
441
  name: string;
433
442
  }[] | undefined;
443
+ isTrigger: boolean;
434
444
  isFirstTrigger?: boolean | undefined;
435
445
  isTestable?: boolean | undefined;
436
446
  isAutoApplied?: boolean | undefined;
@@ -439,36 +449,34 @@ export declare const workflowSetupNodeSchema: z.ZodObject<{
439
449
  message?: string | undefined;
440
450
  } | undefined;
441
451
  triggerTestResult?: {
442
- status: "error" | "success" | "listening";
452
+ status: "error" | "listening" | "success";
443
453
  error?: string | undefined;
444
454
  } | undefined;
445
455
  parameterIssues?: Record<string, string[]> | undefined;
446
456
  editableParameters?: {
447
- type: string;
448
457
  name: string;
449
458
  displayName: string;
459
+ type: string;
460
+ required?: boolean | undefined;
461
+ default?: unknown;
450
462
  options?: {
451
- value: string | number | boolean;
452
463
  name: string;
464
+ value: string | number | boolean;
453
465
  }[] | undefined;
454
- required?: boolean | undefined;
455
- default?: unknown;
456
466
  }[] | undefined;
457
467
  needsAction?: boolean | undefined;
458
468
  subnodeRootNode?: {
459
- type: string;
460
- id: string;
461
469
  name: string;
470
+ type: string;
462
471
  typeVersion: number;
472
+ id: string;
463
473
  } | undefined;
464
474
  }, {
465
475
  node: {
466
- type: string;
467
- id: string;
468
476
  name: string;
477
+ type: string;
469
478
  typeVersion: number;
470
479
  parameters: Record<string, unknown>;
471
- position: [number, number];
472
480
  credentials?: Record<string, {
473
481
  id: string;
474
482
  name: string;
@@ -477,13 +485,15 @@ export declare const workflowSetupNodeSchema: z.ZodObject<{
477
485
  name: string;
478
486
  __aiGatewayManaged: true;
479
487
  }> | undefined;
488
+ position: [number, number];
489
+ id: string;
480
490
  };
481
- isTrigger: boolean;
482
491
  credentialType?: string | undefined;
483
492
  existingCredentials?: {
484
493
  id: string;
485
494
  name: string;
486
495
  }[] | undefined;
496
+ isTrigger: boolean;
487
497
  isFirstTrigger?: boolean | undefined;
488
498
  isTestable?: boolean | undefined;
489
499
  isAutoApplied?: boolean | undefined;
@@ -492,27 +502,27 @@ export declare const workflowSetupNodeSchema: z.ZodObject<{
492
502
  message?: string | undefined;
493
503
  } | undefined;
494
504
  triggerTestResult?: {
495
- status: "error" | "success" | "listening";
505
+ status: "error" | "listening" | "success";
496
506
  error?: string | undefined;
497
507
  } | undefined;
498
508
  parameterIssues?: Record<string, string[]> | undefined;
499
509
  editableParameters?: {
500
- type: string;
501
510
  name: string;
502
511
  displayName: string;
512
+ type: string;
513
+ required?: boolean | undefined;
514
+ default?: unknown;
503
515
  options?: {
504
- value: string | number | boolean;
505
516
  name: string;
517
+ value: string | number | boolean;
506
518
  }[] | undefined;
507
- required?: boolean | undefined;
508
- default?: unknown;
509
519
  }[] | undefined;
510
520
  needsAction?: boolean | undefined;
511
521
  subnodeRootNode?: {
512
- type: string;
513
- id: string;
514
522
  name: string;
523
+ type: string;
515
524
  typeVersion: number;
525
+ id: string;
516
526
  } | undefined;
517
527
  }>;
518
528
  export type InstanceAiWorkflowSetupNode = z.infer<typeof workflowSetupNodeSchema>;
@@ -522,15 +532,15 @@ export declare const taskItemSchema: z.ZodObject<{
522
532
  detail: z.ZodOptional<z.ZodString>;
523
533
  status: z.ZodEnum<["todo", "in_progress", "done", "failed", "cancelled"]>;
524
534
  }, "strip", z.ZodTypeAny, {
525
- status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
526
535
  id: string;
527
536
  description: string;
528
537
  detail?: string | undefined;
538
+ status: "cancelled" | "done" | "failed" | "in_progress" | "todo";
529
539
  }, {
530
- status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
531
540
  id: string;
532
541
  description: string;
533
542
  detail?: string | undefined;
543
+ status: "cancelled" | "done" | "failed" | "in_progress" | "todo";
534
544
  }>;
535
545
  export type TaskItem = z.infer<typeof taskItemSchema>;
536
546
  export declare const taskListSchema: z.ZodObject<{
@@ -540,29 +550,29 @@ export declare const taskListSchema: z.ZodObject<{
540
550
  detail: z.ZodOptional<z.ZodString>;
541
551
  status: z.ZodEnum<["todo", "in_progress", "done", "failed", "cancelled"]>;
542
552
  }, "strip", z.ZodTypeAny, {
543
- status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
544
553
  id: string;
545
554
  description: string;
546
555
  detail?: string | undefined;
556
+ status: "cancelled" | "done" | "failed" | "in_progress" | "todo";
547
557
  }, {
548
- status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
549
558
  id: string;
550
559
  description: string;
551
560
  detail?: string | undefined;
561
+ status: "cancelled" | "done" | "failed" | "in_progress" | "todo";
552
562
  }>, "many">;
553
563
  }, "strip", z.ZodTypeAny, {
554
564
  tasks: {
555
- status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
556
565
  id: string;
557
566
  description: string;
558
567
  detail?: string | undefined;
568
+ status: "cancelled" | "done" | "failed" | "in_progress" | "todo";
559
569
  }[];
560
570
  }, {
561
571
  tasks: {
562
- status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
563
572
  id: string;
564
573
  description: string;
565
574
  detail?: string | undefined;
575
+ status: "cancelled" | "done" | "failed" | "in_progress" | "todo";
566
576
  }[];
567
577
  }>;
568
578
  export type TaskList = z.infer<typeof taskListSchema>;
@@ -577,8 +587,8 @@ export declare const plannedTaskArgSchema: z.ZodObject<{
577
587
  isSupportingWorkflow: z.ZodOptional<z.ZodBoolean>;
578
588
  }, "strip", z.ZodTypeAny, {
579
589
  id: string;
580
- kind: string;
581
590
  title: string;
591
+ kind: string;
582
592
  spec: string;
583
593
  deps: string[];
584
594
  tools?: string[] | undefined;
@@ -586,8 +596,8 @@ export declare const plannedTaskArgSchema: z.ZodObject<{
586
596
  isSupportingWorkflow?: boolean | undefined;
587
597
  }, {
588
598
  id: string;
589
- kind: string;
590
599
  title: string;
600
+ kind: string;
591
601
  spec: string;
592
602
  deps: string[];
593
603
  tools?: string[] | undefined;
@@ -604,15 +614,15 @@ export declare const gatewayConfirmationRequiredWirePayloadSchema: z.ZodObject<{
604
614
  description: z.ZodString;
605
615
  options: z.ZodArray<z.ZodString, "many">;
606
616
  }, "strip", z.ZodTypeAny, {
607
- options: string[];
608
- description: string;
609
617
  toolGroup: string;
610
618
  resource: string;
611
- }, {
612
- options: string[];
613
619
  description: string;
620
+ options: string[];
621
+ }, {
614
622
  toolGroup: string;
615
623
  resource: string;
624
+ description: string;
625
+ options: string[];
616
626
  }>;
617
627
  export type GatewayConfirmationRequiredWirePayload = z.infer<typeof gatewayConfirmationRequiredWirePayloadSchema>;
618
628
  export declare const gatewayConfirmationRequiredPayloadSchema: z.ZodObject<{
@@ -622,15 +632,15 @@ export declare const gatewayConfirmationRequiredPayloadSchema: z.ZodObject<{
622
632
  } & {
623
633
  options: z.ZodArray<z.ZodEnum<["denyOnce", "allowOnce", "allowForSession"]>, "many">;
624
634
  }, "strip", z.ZodTypeAny, {
625
- options: ("denyOnce" | "allowOnce" | "allowForSession")[];
626
- description: string;
627
635
  toolGroup: string;
628
636
  resource: string;
629
- }, {
630
- options: ("denyOnce" | "allowOnce" | "allowForSession")[];
631
637
  description: string;
638
+ options: ("allowForSession" | "allowOnce" | "denyOnce")[];
639
+ }, {
632
640
  toolGroup: string;
633
641
  resource: string;
642
+ description: string;
643
+ options: ("allowForSession" | "allowOnce" | "denyOnce")[];
634
644
  }>;
635
645
  export type GatewayConfirmationRequiredPayload = z.infer<typeof gatewayConfirmationRequiredPayloadSchema>;
636
646
  export declare const channelConfigSchema: z.ZodObject<{
@@ -669,16 +679,16 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
669
679
  }>, "many">;
670
680
  suggestedName: z.ZodOptional<z.ZodString>;
671
681
  }, "strip", z.ZodTypeAny, {
672
- reason: string;
673
682
  credentialType: string;
683
+ reason: string;
674
684
  existingCredentials: {
675
685
  id: string;
676
686
  name: string;
677
687
  }[];
678
688
  suggestedName?: string | undefined;
679
689
  }, {
680
- reason: string;
681
690
  credentialType: string;
691
+ reason: string;
682
692
  existingCredentials: {
683
693
  id: string;
684
694
  name: string;
@@ -693,14 +703,14 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
693
703
  type: z.ZodEnum<["single", "multi", "text"]>;
694
704
  options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
695
705
  }, "strip", z.ZodTypeAny, {
696
- type: "text" | "single" | "multi";
697
706
  id: string;
698
707
  question: string;
708
+ type: "multi" | "single" | "text";
699
709
  options?: string[] | undefined;
700
710
  }, {
701
- type: "text" | "single" | "multi";
702
711
  id: string;
703
712
  question: string;
713
+ type: "multi" | "single" | "text";
704
714
  options?: string[] | undefined;
705
715
  }>, "many">>;
706
716
  introMessage: z.ZodOptional<z.ZodString>;
@@ -711,29 +721,29 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
711
721
  detail: z.ZodOptional<z.ZodString>;
712
722
  status: z.ZodEnum<["todo", "in_progress", "done", "failed", "cancelled"]>;
713
723
  }, "strip", z.ZodTypeAny, {
714
- status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
715
724
  id: string;
716
725
  description: string;
717
726
  detail?: string | undefined;
727
+ status: "cancelled" | "done" | "failed" | "in_progress" | "todo";
718
728
  }, {
719
- status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
720
729
  id: string;
721
730
  description: string;
722
731
  detail?: string | undefined;
732
+ status: "cancelled" | "done" | "failed" | "in_progress" | "todo";
723
733
  }>, "many">;
724
734
  }, "strip", z.ZodTypeAny, {
725
735
  tasks: {
726
- status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
727
736
  id: string;
728
737
  description: string;
729
738
  detail?: string | undefined;
739
+ status: "cancelled" | "done" | "failed" | "in_progress" | "todo";
730
740
  }[];
731
741
  }, {
732
742
  tasks: {
733
- status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
734
743
  id: string;
735
744
  description: string;
736
745
  detail?: string | undefined;
746
+ status: "cancelled" | "done" | "failed" | "in_progress" | "todo";
737
747
  }[];
738
748
  }>>;
739
749
  planItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -747,8 +757,8 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
747
757
  isSupportingWorkflow: z.ZodOptional<z.ZodBoolean>;
748
758
  }, "strip", z.ZodTypeAny, {
749
759
  id: string;
750
- kind: string;
751
760
  title: string;
761
+ kind: string;
752
762
  spec: string;
753
763
  deps: string[];
754
764
  tools?: string[] | undefined;
@@ -756,8 +766,8 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
756
766
  isSupportingWorkflow?: boolean | undefined;
757
767
  }, {
758
768
  id: string;
759
- kind: string;
760
769
  title: string;
770
+ kind: string;
761
771
  spec: string;
762
772
  deps: string[];
763
773
  tools?: string[] | undefined;
@@ -784,9 +794,9 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
784
794
  credentialFlow: z.ZodOptional<z.ZodObject<{
785
795
  stage: z.ZodEnum<["generic", "finalize"]>;
786
796
  }, "strip", z.ZodTypeAny, {
787
- stage: "generic" | "finalize";
797
+ stage: "finalize" | "generic";
788
798
  }, {
789
- stage: "generic" | "finalize";
799
+ stage: "finalize" | "generic";
790
800
  }>>;
791
801
  setupRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
792
802
  node: z.ZodObject<{
@@ -819,12 +829,10 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
819
829
  position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
820
830
  id: z.ZodString;
821
831
  }, "strip", z.ZodTypeAny, {
822
- type: string;
823
- id: string;
824
832
  name: string;
833
+ type: string;
825
834
  typeVersion: number;
826
835
  parameters: Record<string, unknown>;
827
- position: [number, number];
828
836
  credentials?: Record<string, {
829
837
  id: string;
830
838
  name: string;
@@ -833,13 +841,13 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
833
841
  name: string;
834
842
  __aiGatewayManaged: true;
835
843
  }> | undefined;
836
- }, {
837
- type: string;
844
+ position: [number, number];
838
845
  id: string;
846
+ }, {
839
847
  name: string;
848
+ type: string;
840
849
  typeVersion: number;
841
850
  parameters: Record<string, unknown>;
842
- position: [number, number];
843
851
  credentials?: Record<string, {
844
852
  id: string;
845
853
  name: string;
@@ -848,6 +856,8 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
848
856
  name: string;
849
857
  __aiGatewayManaged: true;
850
858
  }> | undefined;
859
+ position: [number, number];
860
+ id: string;
851
861
  }>;
852
862
  credentialType: z.ZodOptional<z.ZodString>;
853
863
  existingCredentials: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -878,10 +888,10 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
878
888
  status: z.ZodEnum<["success", "error", "listening"]>;
879
889
  error: z.ZodOptional<z.ZodString>;
880
890
  }, "strip", z.ZodTypeAny, {
881
- status: "error" | "success" | "listening";
891
+ status: "error" | "listening" | "success";
882
892
  error?: string | undefined;
883
893
  }, {
884
- status: "error" | "success" | "listening";
894
+ status: "error" | "listening" | "success";
885
895
  error?: string | undefined;
886
896
  }>>;
887
897
  parameterIssues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
@@ -895,32 +905,32 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
895
905
  name: z.ZodString;
896
906
  value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>;
897
907
  }, "strip", z.ZodTypeAny, {
898
- value: string | number | boolean;
899
908
  name: string;
900
- }, {
901
909
  value: string | number | boolean;
910
+ }, {
902
911
  name: string;
912
+ value: string | number | boolean;
903
913
  }>, "many">>;
904
914
  }, "strip", z.ZodTypeAny, {
905
- type: string;
906
915
  name: string;
907
916
  displayName: string;
917
+ type: string;
918
+ required?: boolean | undefined;
919
+ default?: unknown;
908
920
  options?: {
909
- value: string | number | boolean;
910
921
  name: string;
922
+ value: string | number | boolean;
911
923
  }[] | undefined;
912
- required?: boolean | undefined;
913
- default?: unknown;
914
924
  }, {
915
- type: string;
916
925
  name: string;
917
926
  displayName: string;
927
+ type: string;
928
+ required?: boolean | undefined;
929
+ default?: unknown;
918
930
  options?: {
919
- value: string | number | boolean;
920
931
  name: string;
932
+ value: string | number | boolean;
921
933
  }[] | undefined;
922
- required?: boolean | undefined;
923
- default?: unknown;
924
934
  }>, "many">>;
925
935
  needsAction: z.ZodOptional<z.ZodBoolean>;
926
936
  subnodeRootNode: z.ZodOptional<z.ZodObject<{
@@ -929,24 +939,22 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
929
939
  typeVersion: z.ZodNumber;
930
940
  id: z.ZodString;
931
941
  }, "strip", z.ZodTypeAny, {
932
- type: string;
933
- id: string;
934
942
  name: string;
935
- typeVersion: number;
936
- }, {
937
943
  type: string;
944
+ typeVersion: number;
938
945
  id: string;
946
+ }, {
939
947
  name: string;
948
+ type: string;
940
949
  typeVersion: number;
950
+ id: string;
941
951
  }>>;
942
952
  }, "strip", z.ZodTypeAny, {
943
953
  node: {
944
- type: string;
945
- id: string;
946
954
  name: string;
955
+ type: string;
947
956
  typeVersion: number;
948
957
  parameters: Record<string, unknown>;
949
- position: [number, number];
950
958
  credentials?: Record<string, {
951
959
  id: string;
952
960
  name: string;
@@ -955,13 +963,15 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
955
963
  name: string;
956
964
  __aiGatewayManaged: true;
957
965
  }> | undefined;
966
+ position: [number, number];
967
+ id: string;
958
968
  };
959
- isTrigger: boolean;
960
969
  credentialType?: string | undefined;
961
970
  existingCredentials?: {
962
971
  id: string;
963
972
  name: string;
964
973
  }[] | undefined;
974
+ isTrigger: boolean;
965
975
  isFirstTrigger?: boolean | undefined;
966
976
  isTestable?: boolean | undefined;
967
977
  isAutoApplied?: boolean | undefined;
@@ -970,36 +980,34 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
970
980
  message?: string | undefined;
971
981
  } | undefined;
972
982
  triggerTestResult?: {
973
- status: "error" | "success" | "listening";
983
+ status: "error" | "listening" | "success";
974
984
  error?: string | undefined;
975
985
  } | undefined;
976
986
  parameterIssues?: Record<string, string[]> | undefined;
977
987
  editableParameters?: {
978
- type: string;
979
988
  name: string;
980
989
  displayName: string;
990
+ type: string;
991
+ required?: boolean | undefined;
992
+ default?: unknown;
981
993
  options?: {
982
- value: string | number | boolean;
983
994
  name: string;
995
+ value: string | number | boolean;
984
996
  }[] | undefined;
985
- required?: boolean | undefined;
986
- default?: unknown;
987
997
  }[] | undefined;
988
998
  needsAction?: boolean | undefined;
989
999
  subnodeRootNode?: {
990
- type: string;
991
- id: string;
992
1000
  name: string;
1001
+ type: string;
993
1002
  typeVersion: number;
1003
+ id: string;
994
1004
  } | undefined;
995
1005
  }, {
996
1006
  node: {
997
- type: string;
998
- id: string;
999
1007
  name: string;
1008
+ type: string;
1000
1009
  typeVersion: number;
1001
1010
  parameters: Record<string, unknown>;
1002
- position: [number, number];
1003
1011
  credentials?: Record<string, {
1004
1012
  id: string;
1005
1013
  name: string;
@@ -1008,13 +1016,15 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
1008
1016
  name: string;
1009
1017
  __aiGatewayManaged: true;
1010
1018
  }> | undefined;
1019
+ position: [number, number];
1020
+ id: string;
1011
1021
  };
1012
- isTrigger: boolean;
1013
1022
  credentialType?: string | undefined;
1014
1023
  existingCredentials?: {
1015
1024
  id: string;
1016
1025
  name: string;
1017
1026
  }[] | undefined;
1027
+ isTrigger: boolean;
1018
1028
  isFirstTrigger?: boolean | undefined;
1019
1029
  isTestable?: boolean | undefined;
1020
1030
  isAutoApplied?: boolean | undefined;
@@ -1023,27 +1033,27 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
1023
1033
  message?: string | undefined;
1024
1034
  } | undefined;
1025
1035
  triggerTestResult?: {
1026
- status: "error" | "success" | "listening";
1036
+ status: "error" | "listening" | "success";
1027
1037
  error?: string | undefined;
1028
1038
  } | undefined;
1029
1039
  parameterIssues?: Record<string, string[]> | undefined;
1030
1040
  editableParameters?: {
1031
- type: string;
1032
1041
  name: string;
1033
1042
  displayName: string;
1043
+ type: string;
1044
+ required?: boolean | undefined;
1045
+ default?: unknown;
1034
1046
  options?: {
1035
- value: string | number | boolean;
1036
1047
  name: string;
1048
+ value: string | number | boolean;
1037
1049
  }[] | undefined;
1038
- required?: boolean | undefined;
1039
- default?: unknown;
1040
1050
  }[] | undefined;
1041
1051
  needsAction?: boolean | undefined;
1042
1052
  subnodeRootNode?: {
1043
- type: string;
1044
- id: string;
1045
1053
  name: string;
1054
+ type: string;
1046
1055
  typeVersion: number;
1056
+ id: string;
1047
1057
  } | undefined;
1048
1058
  }>, "many">>;
1049
1059
  workflowId: z.ZodOptional<z.ZodString>;
@@ -1054,15 +1064,15 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
1054
1064
  } & {
1055
1065
  options: z.ZodArray<z.ZodEnum<["denyOnce", "allowOnce", "allowForSession"]>, "many">;
1056
1066
  }, "strip", z.ZodTypeAny, {
1057
- options: ("denyOnce" | "allowOnce" | "allowForSession")[];
1058
- description: string;
1059
1067
  toolGroup: string;
1060
1068
  resource: string;
1061
- }, {
1062
- options: ("denyOnce" | "allowOnce" | "allowForSession")[];
1063
1069
  description: string;
1070
+ options: ("allowForSession" | "allowOnce" | "denyOnce")[];
1071
+ }, {
1064
1072
  toolGroup: string;
1065
1073
  resource: string;
1074
+ description: string;
1075
+ options: ("allowForSession" | "allowOnce" | "denyOnce")[];
1066
1076
  }>>;
1067
1077
  channelConfig: z.ZodOptional<z.ZodObject<{
1068
1078
  integrationType: z.ZodString;
@@ -1075,44 +1085,43 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
1075
1085
  agentId: string;
1076
1086
  }>>;
1077
1087
  }, "strip", z.ZodTypeAny, {
1078
- message: string;
1088
+ requestId: string;
1089
+ inputThreadId?: string | undefined;
1079
1090
  toolCallId: string;
1080
1091
  toolName: string;
1081
1092
  args: Record<string, unknown>;
1082
- requestId: string;
1083
- severity: "destructive" | "warning" | "info";
1084
- projectId?: string | undefined;
1085
- tasks?: {
1086
- tasks: {
1087
- status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
1088
- id: string;
1089
- description: string;
1090
- detail?: string | undefined;
1091
- }[];
1092
- } | undefined;
1093
- workflowId?: string | undefined;
1094
- questions?: {
1095
- type: "text" | "single" | "multi";
1096
- id: string;
1097
- question: string;
1098
- options?: string[] | undefined;
1099
- }[] | undefined;
1100
- inputThreadId?: string | undefined;
1093
+ severity: "destructive" | "info" | "warning";
1094
+ message: string;
1101
1095
  credentialRequests?: {
1102
- reason: string;
1103
1096
  credentialType: string;
1097
+ reason: string;
1104
1098
  existingCredentials: {
1105
1099
  id: string;
1106
1100
  name: string;
1107
1101
  }[];
1108
1102
  suggestedName?: string | undefined;
1109
1103
  }[] | undefined;
1110
- inputType?: "text" | "approval" | "questions" | "plan-review" | "resource-decision" | "continue" | undefined;
1104
+ projectId?: string | undefined;
1105
+ inputType?: "approval" | "continue" | "plan-review" | "questions" | "resource-decision" | "text" | undefined;
1106
+ questions?: {
1107
+ id: string;
1108
+ question: string;
1109
+ type: "multi" | "single" | "text";
1110
+ options?: string[] | undefined;
1111
+ }[] | undefined;
1111
1112
  introMessage?: string | undefined;
1113
+ tasks?: {
1114
+ tasks: {
1115
+ id: string;
1116
+ description: string;
1117
+ detail?: string | undefined;
1118
+ status: "cancelled" | "done" | "failed" | "in_progress" | "todo";
1119
+ }[];
1120
+ } | undefined;
1112
1121
  planItems?: {
1113
1122
  id: string;
1114
- kind: string;
1115
1123
  title: string;
1124
+ kind: string;
1116
1125
  spec: string;
1117
1126
  deps: string[];
1118
1127
  tools?: string[] | undefined;
@@ -1127,16 +1136,14 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
1127
1136
  query: string;
1128
1137
  } | undefined;
1129
1138
  credentialFlow?: {
1130
- stage: "generic" | "finalize";
1139
+ stage: "finalize" | "generic";
1131
1140
  } | undefined;
1132
1141
  setupRequests?: {
1133
1142
  node: {
1134
- type: string;
1135
- id: string;
1136
1143
  name: string;
1144
+ type: string;
1137
1145
  typeVersion: number;
1138
1146
  parameters: Record<string, unknown>;
1139
- position: [number, number];
1140
1147
  credentials?: Record<string, {
1141
1148
  id: string;
1142
1149
  name: string;
@@ -1145,13 +1152,15 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
1145
1152
  name: string;
1146
1153
  __aiGatewayManaged: true;
1147
1154
  }> | undefined;
1155
+ position: [number, number];
1156
+ id: string;
1148
1157
  };
1149
- isTrigger: boolean;
1150
1158
  credentialType?: string | undefined;
1151
1159
  existingCredentials?: {
1152
1160
  id: string;
1153
1161
  name: string;
1154
1162
  }[] | undefined;
1163
+ isTrigger: boolean;
1155
1164
  isFirstTrigger?: boolean | undefined;
1156
1165
  isTestable?: boolean | undefined;
1157
1166
  isAutoApplied?: boolean | undefined;
@@ -1160,78 +1169,78 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
1160
1169
  message?: string | undefined;
1161
1170
  } | undefined;
1162
1171
  triggerTestResult?: {
1163
- status: "error" | "success" | "listening";
1172
+ status: "error" | "listening" | "success";
1164
1173
  error?: string | undefined;
1165
1174
  } | undefined;
1166
1175
  parameterIssues?: Record<string, string[]> | undefined;
1167
1176
  editableParameters?: {
1168
- type: string;
1169
1177
  name: string;
1170
1178
  displayName: string;
1179
+ type: string;
1180
+ required?: boolean | undefined;
1181
+ default?: unknown;
1171
1182
  options?: {
1172
- value: string | number | boolean;
1173
1183
  name: string;
1184
+ value: string | number | boolean;
1174
1185
  }[] | undefined;
1175
- required?: boolean | undefined;
1176
- default?: unknown;
1177
1186
  }[] | undefined;
1178
1187
  needsAction?: boolean | undefined;
1179
1188
  subnodeRootNode?: {
1180
- type: string;
1181
- id: string;
1182
1189
  name: string;
1190
+ type: string;
1183
1191
  typeVersion: number;
1192
+ id: string;
1184
1193
  } | undefined;
1185
1194
  }[] | undefined;
1195
+ workflowId?: string | undefined;
1186
1196
  resourceDecision?: {
1187
- options: ("denyOnce" | "allowOnce" | "allowForSession")[];
1188
- description: string;
1189
1197
  toolGroup: string;
1190
1198
  resource: string;
1199
+ description: string;
1200
+ options: ("allowForSession" | "allowOnce" | "denyOnce")[];
1191
1201
  } | undefined;
1192
1202
  channelConfig?: {
1193
1203
  integrationType: string;
1194
1204
  agentId: string;
1195
1205
  } | undefined;
1196
1206
  }, {
1197
- message: string;
1207
+ requestId: string;
1208
+ inputThreadId?: string | undefined;
1198
1209
  toolCallId: string;
1199
1210
  toolName: string;
1200
1211
  args: Record<string, unknown>;
1201
- requestId: string;
1202
- severity: "destructive" | "warning" | "info";
1203
- projectId?: string | undefined;
1204
- tasks?: {
1205
- tasks: {
1206
- status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
1207
- id: string;
1208
- description: string;
1209
- detail?: string | undefined;
1210
- }[];
1211
- } | undefined;
1212
- workflowId?: string | undefined;
1213
- questions?: {
1214
- type: "text" | "single" | "multi";
1215
- id: string;
1216
- question: string;
1217
- options?: string[] | undefined;
1218
- }[] | undefined;
1219
- inputThreadId?: string | undefined;
1212
+ severity: "destructive" | "info" | "warning";
1213
+ message: string;
1220
1214
  credentialRequests?: {
1221
- reason: string;
1222
1215
  credentialType: string;
1216
+ reason: string;
1223
1217
  existingCredentials: {
1224
1218
  id: string;
1225
1219
  name: string;
1226
1220
  }[];
1227
1221
  suggestedName?: string | undefined;
1228
1222
  }[] | undefined;
1229
- inputType?: "text" | "approval" | "questions" | "plan-review" | "resource-decision" | "continue" | undefined;
1223
+ projectId?: string | undefined;
1224
+ inputType?: "approval" | "continue" | "plan-review" | "questions" | "resource-decision" | "text" | undefined;
1225
+ questions?: {
1226
+ id: string;
1227
+ question: string;
1228
+ type: "multi" | "single" | "text";
1229
+ options?: string[] | undefined;
1230
+ }[] | undefined;
1230
1231
  introMessage?: string | undefined;
1232
+ tasks?: {
1233
+ tasks: {
1234
+ id: string;
1235
+ description: string;
1236
+ detail?: string | undefined;
1237
+ status: "cancelled" | "done" | "failed" | "in_progress" | "todo";
1238
+ }[];
1239
+ } | undefined;
1231
1240
  planItems?: {
1232
1241
  id: string;
1233
- kind: string;
1234
1242
  title: string;
1243
+ kind: string;
1235
1244
  spec: string;
1236
1245
  deps: string[];
1237
1246
  tools?: string[] | undefined;
@@ -1246,16 +1255,14 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
1246
1255
  query: string;
1247
1256
  } | undefined;
1248
1257
  credentialFlow?: {
1249
- stage: "generic" | "finalize";
1258
+ stage: "finalize" | "generic";
1250
1259
  } | undefined;
1251
1260
  setupRequests?: {
1252
1261
  node: {
1253
- type: string;
1254
- id: string;
1255
1262
  name: string;
1263
+ type: string;
1256
1264
  typeVersion: number;
1257
1265
  parameters: Record<string, unknown>;
1258
- position: [number, number];
1259
1266
  credentials?: Record<string, {
1260
1267
  id: string;
1261
1268
  name: string;
@@ -1264,13 +1271,15 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
1264
1271
  name: string;
1265
1272
  __aiGatewayManaged: true;
1266
1273
  }> | undefined;
1274
+ position: [number, number];
1275
+ id: string;
1267
1276
  };
1268
- isTrigger: boolean;
1269
1277
  credentialType?: string | undefined;
1270
1278
  existingCredentials?: {
1271
1279
  id: string;
1272
1280
  name: string;
1273
1281
  }[] | undefined;
1282
+ isTrigger: boolean;
1274
1283
  isFirstTrigger?: boolean | undefined;
1275
1284
  isTestable?: boolean | undefined;
1276
1285
  isAutoApplied?: boolean | undefined;
@@ -1279,34 +1288,35 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
1279
1288
  message?: string | undefined;
1280
1289
  } | undefined;
1281
1290
  triggerTestResult?: {
1282
- status: "error" | "success" | "listening";
1291
+ status: "error" | "listening" | "success";
1283
1292
  error?: string | undefined;
1284
1293
  } | undefined;
1285
1294
  parameterIssues?: Record<string, string[]> | undefined;
1286
1295
  editableParameters?: {
1287
- type: string;
1288
1296
  name: string;
1289
1297
  displayName: string;
1298
+ type: string;
1299
+ required?: boolean | undefined;
1300
+ default?: unknown;
1290
1301
  options?: {
1291
- value: string | number | boolean;
1292
1302
  name: string;
1303
+ value: string | number | boolean;
1293
1304
  }[] | undefined;
1294
- required?: boolean | undefined;
1295
- default?: unknown;
1296
1305
  }[] | undefined;
1297
1306
  needsAction?: boolean | undefined;
1298
1307
  subnodeRootNode?: {
1299
- type: string;
1300
- id: string;
1301
1308
  name: string;
1309
+ type: string;
1302
1310
  typeVersion: number;
1311
+ id: string;
1303
1312
  } | undefined;
1304
1313
  }[] | undefined;
1314
+ workflowId?: string | undefined;
1305
1315
  resourceDecision?: {
1306
- options: ("denyOnce" | "allowOnce" | "allowForSession")[];
1307
- description: string;
1308
1316
  toolGroup: string;
1309
1317
  resource: string;
1318
+ description: string;
1319
+ options: ("allowForSession" | "allowOnce" | "denyOnce")[];
1310
1320
  } | undefined;
1311
1321
  channelConfig?: {
1312
1322
  integrationType: string;
@@ -1322,7 +1332,7 @@ export declare const statusPayloadSchema: z.ZodObject<{
1322
1332
  }, {
1323
1333
  message: string;
1324
1334
  }>;
1325
- export declare const INSTANCE_AI_ERROR_CODES: readonly ["quota_exhausted"];
1335
+ export declare const INSTANCE_AI_ERROR_CODES: readonly ['quota_exhausted'];
1326
1336
  export type InstanceAiErrorCode = (typeof INSTANCE_AI_ERROR_CODES)[number];
1327
1337
  export declare function isKnownInstanceAiErrorCode(code: string | undefined): code is InstanceAiErrorCode;
1328
1338
  export declare const errorPayloadSchema: z.ZodObject<{
@@ -1333,14 +1343,14 @@ export declare const errorPayloadSchema: z.ZodObject<{
1333
1343
  technicalDetails: z.ZodOptional<z.ZodString>;
1334
1344
  }, "strip", z.ZodTypeAny, {
1335
1345
  content: string;
1336
- code?: string | undefined;
1337
1346
  statusCode?: number | undefined;
1347
+ code?: string | undefined;
1338
1348
  provider?: string | undefined;
1339
1349
  technicalDetails?: string | undefined;
1340
1350
  }, {
1341
1351
  content: string;
1342
- code?: string | undefined;
1343
1352
  statusCode?: number | undefined;
1353
+ code?: string | undefined;
1344
1354
  provider?: string | undefined;
1345
1355
  technicalDetails?: string | undefined;
1346
1356
  }>;
@@ -1453,6 +1463,7 @@ export declare const mcpToolSchema: z.ZodObject<{
1453
1463
  }>>;
1454
1464
  }, "strip", z.ZodTypeAny, {
1455
1465
  name: string;
1466
+ description?: string | undefined;
1456
1467
  inputSchema: {
1457
1468
  type: "object";
1458
1469
  properties: Record<string, unknown>;
@@ -1470,7 +1481,6 @@ export declare const mcpToolSchema: z.ZodObject<{
1470
1481
  required?: string[] | undefined;
1471
1482
  }[];
1472
1483
  };
1473
- description?: string | undefined;
1474
1484
  annotations?: {
1475
1485
  category?: string | undefined;
1476
1486
  readOnlyHint?: boolean | undefined;
@@ -1480,6 +1490,7 @@ export declare const mcpToolSchema: z.ZodObject<{
1480
1490
  } | undefined;
1481
1491
  }, {
1482
1492
  name: string;
1493
+ description?: string | undefined;
1483
1494
  inputSchema: {
1484
1495
  type: "object";
1485
1496
  properties: Record<string, unknown>;
@@ -1497,7 +1508,6 @@ export declare const mcpToolSchema: z.ZodObject<{
1497
1508
  required?: string[] | undefined;
1498
1509
  }[];
1499
1510
  };
1500
- description?: string | undefined;
1501
1511
  annotations?: {
1502
1512
  category?: string | undefined;
1503
1513
  readOnlyHint?: boolean | undefined;
@@ -1548,26 +1558,26 @@ export declare const mcpToolCallResultSchema: z.ZodObject<{
1548
1558
  blob: z.ZodString;
1549
1559
  }, "strip", z.ZodTypeAny, {
1550
1560
  uri: string;
1551
- blob: string;
1552
1561
  mimeType?: string | undefined;
1562
+ blob: string;
1553
1563
  }, {
1554
1564
  uri: string;
1555
- blob: string;
1556
1565
  mimeType?: string | undefined;
1566
+ blob: string;
1557
1567
  }>;
1558
1568
  }, "strip", z.ZodTypeAny, {
1559
1569
  type: "resource";
1560
1570
  resource: {
1561
1571
  uri: string;
1562
- blob: string;
1563
1572
  mimeType?: string | undefined;
1573
+ blob: string;
1564
1574
  };
1565
1575
  }, {
1566
1576
  type: "resource";
1567
1577
  resource: {
1568
1578
  uri: string;
1569
- blob: string;
1570
1579
  mimeType?: string | undefined;
1580
+ blob: string;
1571
1581
  };
1572
1582
  }>]>, "many">;
1573
1583
  structuredContent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -1584,8 +1594,8 @@ export declare const mcpToolCallResultSchema: z.ZodObject<{
1584
1594
  type: "resource";
1585
1595
  resource: {
1586
1596
  uri: string;
1587
- blob: string;
1588
1597
  mimeType?: string | undefined;
1598
+ blob: string;
1589
1599
  };
1590
1600
  })[];
1591
1601
  structuredContent?: Record<string, unknown> | undefined;
@@ -1602,8 +1612,8 @@ export declare const mcpToolCallResultSchema: z.ZodObject<{
1602
1612
  type: "resource";
1603
1613
  resource: {
1604
1614
  uri: string;
1605
- blob: string;
1606
1615
  mimeType?: string | undefined;
1616
+ blob: string;
1607
1617
  };
1608
1618
  })[];
1609
1619
  structuredContent?: Record<string, unknown> | undefined;
@@ -1625,8 +1635,10 @@ export declare const toolCategorySchema: z.ZodObject<{
1625
1635
  }>;
1626
1636
  export type ToolCategory = z.infer<typeof toolCategorySchema>;
1627
1637
  declare const InstanceAiGatewayCapabilitiesDto_base: import("../zod-class").ZodClass<{
1638
+ rootPath: string;
1628
1639
  tools: {
1629
1640
  name: string;
1641
+ description?: string | undefined;
1630
1642
  inputSchema: {
1631
1643
  type: "object";
1632
1644
  properties: Record<string, unknown>;
@@ -1644,7 +1656,6 @@ declare const InstanceAiGatewayCapabilitiesDto_base: import("../zod-class").ZodC
1644
1656
  required?: string[] | undefined;
1645
1657
  }[];
1646
1658
  };
1647
- description?: string | undefined;
1648
1659
  annotations?: {
1649
1660
  category?: string | undefined;
1650
1661
  readOnlyHint?: boolean | undefined;
@@ -1653,13 +1664,12 @@ declare const InstanceAiGatewayCapabilitiesDto_base: import("../zod-class").ZodC
1653
1664
  openWorldHint?: boolean | undefined;
1654
1665
  } | undefined;
1655
1666
  }[];
1656
- rootPath: string;
1667
+ hostIdentifier?: string | undefined;
1657
1668
  toolCategories: {
1658
1669
  name: string;
1659
1670
  enabled: boolean;
1660
1671
  writeAccess?: boolean | undefined;
1661
1672
  }[];
1662
- hostIdentifier?: string | undefined;
1663
1673
  }, {
1664
1674
  rootPath: z.ZodString;
1665
1675
  tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -1751,6 +1761,7 @@ declare const InstanceAiGatewayCapabilitiesDto_base: import("../zod-class").ZodC
1751
1761
  }>>;
1752
1762
  }, "strip", z.ZodTypeAny, {
1753
1763
  name: string;
1764
+ description?: string | undefined;
1754
1765
  inputSchema: {
1755
1766
  type: "object";
1756
1767
  properties: Record<string, unknown>;
@@ -1768,7 +1779,6 @@ declare const InstanceAiGatewayCapabilitiesDto_base: import("../zod-class").ZodC
1768
1779
  required?: string[] | undefined;
1769
1780
  }[];
1770
1781
  };
1771
- description?: string | undefined;
1772
1782
  annotations?: {
1773
1783
  category?: string | undefined;
1774
1784
  readOnlyHint?: boolean | undefined;
@@ -1778,6 +1788,7 @@ declare const InstanceAiGatewayCapabilitiesDto_base: import("../zod-class").ZodC
1778
1788
  } | undefined;
1779
1789
  }, {
1780
1790
  name: string;
1791
+ description?: string | undefined;
1781
1792
  inputSchema: {
1782
1793
  type: "object";
1783
1794
  properties: Record<string, unknown>;
@@ -1795,7 +1806,6 @@ declare const InstanceAiGatewayCapabilitiesDto_base: import("../zod-class").ZodC
1795
1806
  required?: string[] | undefined;
1796
1807
  }[];
1797
1808
  };
1798
- description?: string | undefined;
1799
1809
  annotations?: {
1800
1810
  category?: string | undefined;
1801
1811
  readOnlyHint?: boolean | undefined;
@@ -1823,8 +1833,8 @@ export declare class InstanceAiGatewayCapabilitiesDto extends InstanceAiGatewayC
1823
1833
  }
1824
1834
  export type InstanceAiGatewayCapabilities = InstanceType<typeof InstanceAiGatewayCapabilitiesDto>;
1825
1835
  declare const InstanceAiGatewayCreateCredentialDto_base: import("../zod-class").ZodClass<{
1826
- type: string;
1827
1836
  name: string;
1837
+ type: string;
1828
1838
  data: Record<string, unknown>;
1829
1839
  projectId?: string | undefined;
1830
1840
  }, {
@@ -1871,7 +1881,6 @@ export declare const filesystemRequestPayloadSchema: z.ZodObject<{
1871
1881
  };
1872
1882
  }>;
1873
1883
  declare const InstanceAiFilesystemResponseDto_base: import("../zod-class").ZodClass<{
1874
- error?: string | undefined;
1875
1884
  result?: {
1876
1885
  content: ({
1877
1886
  type: "text";
@@ -1884,13 +1893,14 @@ declare const InstanceAiFilesystemResponseDto_base: import("../zod-class").ZodCl
1884
1893
  type: "resource";
1885
1894
  resource: {
1886
1895
  uri: string;
1887
- blob: string;
1888
1896
  mimeType?: string | undefined;
1897
+ blob: string;
1889
1898
  };
1890
1899
  })[];
1891
1900
  structuredContent?: Record<string, unknown> | undefined;
1892
1901
  isError?: boolean | undefined;
1893
1902
  } | undefined;
1903
+ error?: string | undefined;
1894
1904
  }, {
1895
1905
  result: z.ZodOptional<z.ZodObject<{
1896
1906
  content: z.ZodArray<z.ZodUnion<[z.ZodObject<{
@@ -1922,26 +1932,26 @@ declare const InstanceAiFilesystemResponseDto_base: import("../zod-class").ZodCl
1922
1932
  blob: z.ZodString;
1923
1933
  }, "strip", z.ZodTypeAny, {
1924
1934
  uri: string;
1925
- blob: string;
1926
1935
  mimeType?: string | undefined;
1936
+ blob: string;
1927
1937
  }, {
1928
1938
  uri: string;
1929
- blob: string;
1930
1939
  mimeType?: string | undefined;
1940
+ blob: string;
1931
1941
  }>;
1932
1942
  }, "strip", z.ZodTypeAny, {
1933
1943
  type: "resource";
1934
1944
  resource: {
1935
1945
  uri: string;
1936
- blob: string;
1937
1946
  mimeType?: string | undefined;
1947
+ blob: string;
1938
1948
  };
1939
1949
  }, {
1940
1950
  type: "resource";
1941
1951
  resource: {
1942
1952
  uri: string;
1943
- blob: string;
1944
1953
  mimeType?: string | undefined;
1954
+ blob: string;
1945
1955
  };
1946
1956
  }>]>, "many">;
1947
1957
  structuredContent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -1958,8 +1968,8 @@ declare const InstanceAiFilesystemResponseDto_base: import("../zod-class").ZodCl
1958
1968
  type: "resource";
1959
1969
  resource: {
1960
1970
  uri: string;
1961
- blob: string;
1962
1971
  mimeType?: string | undefined;
1972
+ blob: string;
1963
1973
  };
1964
1974
  })[];
1965
1975
  structuredContent?: Record<string, unknown> | undefined;
@@ -1976,8 +1986,8 @@ declare const InstanceAiFilesystemResponseDto_base: import("../zod-class").ZodCl
1976
1986
  type: "resource";
1977
1987
  resource: {
1978
1988
  uri: string;
1979
- blob: string;
1980
1989
  mimeType?: string | undefined;
1990
+ blob: string;
1981
1991
  };
1982
1992
  })[];
1983
1993
  structuredContent?: Record<string, unknown> | undefined;
@@ -1995,29 +2005,29 @@ export declare const tasksUpdatePayloadSchema: z.ZodObject<{
1995
2005
  detail: z.ZodOptional<z.ZodString>;
1996
2006
  status: z.ZodEnum<["todo", "in_progress", "done", "failed", "cancelled"]>;
1997
2007
  }, "strip", z.ZodTypeAny, {
1998
- status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
1999
2008
  id: string;
2000
2009
  description: string;
2001
2010
  detail?: string | undefined;
2011
+ status: "cancelled" | "done" | "failed" | "in_progress" | "todo";
2002
2012
  }, {
2003
- status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
2004
2013
  id: string;
2005
2014
  description: string;
2006
2015
  detail?: string | undefined;
2016
+ status: "cancelled" | "done" | "failed" | "in_progress" | "todo";
2007
2017
  }>, "many">;
2008
2018
  }, "strip", z.ZodTypeAny, {
2009
2019
  tasks: {
2010
- status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
2011
2020
  id: string;
2012
2021
  description: string;
2013
2022
  detail?: string | undefined;
2023
+ status: "cancelled" | "done" | "failed" | "in_progress" | "todo";
2014
2024
  }[];
2015
2025
  }, {
2016
2026
  tasks: {
2017
- status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
2018
2027
  id: string;
2019
2028
  description: string;
2020
2029
  detail?: string | undefined;
2030
+ status: "cancelled" | "done" | "failed" | "in_progress" | "todo";
2021
2031
  }[];
2022
2032
  }>;
2023
2033
  planItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -2031,8 +2041,8 @@ export declare const tasksUpdatePayloadSchema: z.ZodObject<{
2031
2041
  isSupportingWorkflow: z.ZodOptional<z.ZodBoolean>;
2032
2042
  }, "strip", z.ZodTypeAny, {
2033
2043
  id: string;
2034
- kind: string;
2035
2044
  title: string;
2045
+ kind: string;
2036
2046
  spec: string;
2037
2047
  deps: string[];
2038
2048
  tools?: string[] | undefined;
@@ -2040,8 +2050,8 @@ export declare const tasksUpdatePayloadSchema: z.ZodObject<{
2040
2050
  isSupportingWorkflow?: boolean | undefined;
2041
2051
  }, {
2042
2052
  id: string;
2043
- kind: string;
2044
2053
  title: string;
2054
+ kind: string;
2045
2055
  spec: string;
2046
2056
  deps: string[];
2047
2057
  tools?: string[] | undefined;
@@ -2051,16 +2061,16 @@ export declare const tasksUpdatePayloadSchema: z.ZodObject<{
2051
2061
  }, "strip", z.ZodTypeAny, {
2052
2062
  tasks: {
2053
2063
  tasks: {
2054
- status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
2055
2064
  id: string;
2056
2065
  description: string;
2057
2066
  detail?: string | undefined;
2067
+ status: "cancelled" | "done" | "failed" | "in_progress" | "todo";
2058
2068
  }[];
2059
2069
  };
2060
2070
  planItems?: {
2061
2071
  id: string;
2062
- kind: string;
2063
2072
  title: string;
2073
+ kind: string;
2064
2074
  spec: string;
2065
2075
  deps: string[];
2066
2076
  tools?: string[] | undefined;
@@ -2070,16 +2080,16 @@ export declare const tasksUpdatePayloadSchema: z.ZodObject<{
2070
2080
  }, {
2071
2081
  tasks: {
2072
2082
  tasks: {
2073
- status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
2074
2083
  id: string;
2075
2084
  description: string;
2076
2085
  detail?: string | undefined;
2086
+ status: "cancelled" | "done" | "failed" | "in_progress" | "todo";
2077
2087
  }[];
2078
2088
  };
2079
2089
  planItems?: {
2080
2090
  id: string;
2081
- kind: string;
2082
2091
  title: string;
2092
+ kind: string;
2083
2093
  spec: string;
2084
2094
  deps: string[];
2085
2095
  tools?: string[] | undefined;
@@ -2095,6 +2105,12 @@ export declare const threadTitleUpdatedPayloadSchema: z.ZodObject<{
2095
2105
  title: string;
2096
2106
  }>;
2097
2107
  export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2108
+ runId: z.ZodString;
2109
+ agentId: z.ZodString;
2110
+ userId: z.ZodOptional<z.ZodString>;
2111
+ responseId: z.ZodOptional<z.ZodString>;
2112
+ ts: z.ZodOptional<z.ZodNumber>;
2113
+ type: z.ZodLiteral<"run-start">;
2098
2114
  payload: z.ZodObject<{
2099
2115
  messageId: z.ZodString;
2100
2116
  traceId: z.ZodOptional<z.ZodString>;
@@ -2108,75 +2124,81 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2108
2124
  traceId?: string | undefined;
2109
2125
  messageGroupId?: string | undefined;
2110
2126
  }>;
2111
- runId: z.ZodString;
2112
- agentId: z.ZodString;
2113
- userId: z.ZodOptional<z.ZodString>;
2114
- responseId: z.ZodOptional<z.ZodString>;
2115
- type: z.ZodLiteral<"run-start">;
2116
2127
  }, "strip", z.ZodTypeAny, {
2117
- type: "run-start";
2128
+ runId: string;
2118
2129
  agentId: string;
2130
+ userId?: string | undefined;
2131
+ responseId?: string | undefined;
2132
+ ts?: number | undefined;
2133
+ type: "run-start";
2119
2134
  payload: {
2120
2135
  messageId: string;
2121
2136
  traceId?: string | undefined;
2122
2137
  messageGroupId?: string | undefined;
2123
2138
  };
2139
+ }, {
2124
2140
  runId: string;
2141
+ agentId: string;
2125
2142
  userId?: string | undefined;
2126
2143
  responseId?: string | undefined;
2127
- }, {
2144
+ ts?: number | undefined;
2128
2145
  type: "run-start";
2129
- agentId: string;
2130
2146
  payload: {
2131
2147
  messageId: string;
2132
2148
  traceId?: string | undefined;
2133
2149
  messageGroupId?: string | undefined;
2134
2150
  };
2135
- runId: string;
2136
- userId?: string | undefined;
2137
- responseId?: string | undefined;
2138
2151
  }>, z.ZodObject<{
2152
+ runId: z.ZodString;
2153
+ agentId: z.ZodString;
2154
+ userId: z.ZodOptional<z.ZodString>;
2155
+ responseId: z.ZodOptional<z.ZodString>;
2156
+ ts: z.ZodOptional<z.ZodNumber>;
2157
+ type: z.ZodLiteral<"run-finish">;
2139
2158
  payload: z.ZodObject<{
2140
2159
  status: z.ZodEnum<["completed", "cancelled", "error", "interrupted"]>;
2141
2160
  reason: z.ZodOptional<z.ZodString>;
2142
2161
  archivedWorkflowIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2143
2162
  }, "strip", z.ZodTypeAny, {
2144
- status: "error" | "completed" | "cancelled" | "interrupted";
2163
+ status: "cancelled" | "completed" | "error" | "interrupted";
2145
2164
  reason?: string | undefined;
2146
2165
  archivedWorkflowIds?: string[] | undefined;
2147
2166
  }, {
2148
- status: "error" | "completed" | "cancelled" | "interrupted";
2167
+ status: "cancelled" | "completed" | "error" | "interrupted";
2149
2168
  reason?: string | undefined;
2150
2169
  archivedWorkflowIds?: string[] | undefined;
2151
2170
  }>;
2152
- runId: z.ZodString;
2153
- agentId: z.ZodString;
2154
- userId: z.ZodOptional<z.ZodString>;
2155
- responseId: z.ZodOptional<z.ZodString>;
2156
- type: z.ZodLiteral<"run-finish">;
2157
2171
  }, "strip", z.ZodTypeAny, {
2158
- type: "run-finish";
2172
+ runId: string;
2159
2173
  agentId: string;
2174
+ userId?: string | undefined;
2175
+ responseId?: string | undefined;
2176
+ ts?: number | undefined;
2177
+ type: "run-finish";
2160
2178
  payload: {
2161
- status: "error" | "completed" | "cancelled" | "interrupted";
2179
+ status: "cancelled" | "completed" | "error" | "interrupted";
2162
2180
  reason?: string | undefined;
2163
2181
  archivedWorkflowIds?: string[] | undefined;
2164
2182
  };
2183
+ }, {
2165
2184
  runId: string;
2185
+ agentId: string;
2166
2186
  userId?: string | undefined;
2167
2187
  responseId?: string | undefined;
2168
- }, {
2188
+ ts?: number | undefined;
2169
2189
  type: "run-finish";
2170
- agentId: string;
2171
2190
  payload: {
2172
- status: "error" | "completed" | "cancelled" | "interrupted";
2191
+ status: "cancelled" | "completed" | "error" | "interrupted";
2173
2192
  reason?: string | undefined;
2174
2193
  archivedWorkflowIds?: string[] | undefined;
2175
2194
  };
2176
- runId: string;
2177
- userId?: string | undefined;
2178
- responseId?: string | undefined;
2179
2195
  }>, z.ZodObject<{
2196
+ runId: z.ZodString;
2197
+ agentId: z.ZodString;
2198
+ userId: z.ZodOptional<z.ZodString>;
2199
+ responseId: z.ZodOptional<z.ZodString>;
2200
+ ts: z.ZodOptional<z.ZodNumber>;
2201
+ type: z.ZodLiteral<"agent-spawned">;
2180
2202
  payload: z.ZodObject<{
2181
2203
  parentId: z.ZodString;
2182
2204
  role: z.ZodString;
@@ -2187,17 +2209,17 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2187
2209
  subtitle: z.ZodOptional<z.ZodString>;
2188
2210
  goal: z.ZodOptional<z.ZodString>;
2189
2211
  targetResource: z.ZodOptional<z.ZodObject<{
2190
- type: z.ZodEnum<["workflow", "data-table", "credential", "agent", "other"]>;
2212
+ type: z.ZodEnum<["workflow", "data-table", "credential", "other", "agent", "config-eval"]>;
2191
2213
  id: z.ZodOptional<z.ZodString>;
2192
2214
  name: z.ZodOptional<z.ZodString>;
2193
2215
  projectId: z.ZodOptional<z.ZodString>;
2194
2216
  }, "strip", z.ZodTypeAny, {
2195
- type: "data-table" | "workflow" | "credential" | "agent" | "other";
2217
+ type: "agent" | "config-eval" | "credential" | "data-table" | "other" | "workflow";
2196
2218
  id?: string | undefined;
2197
2219
  name?: string | undefined;
2198
2220
  projectId?: string | undefined;
2199
2221
  }, {
2200
- type: "data-table" | "workflow" | "credential" | "agent" | "other";
2222
+ type: "agent" | "config-eval" | "credential" | "data-table" | "other" | "workflow";
2201
2223
  id?: string | undefined;
2202
2224
  name?: string | undefined;
2203
2225
  projectId?: string | undefined;
@@ -2207,12 +2229,12 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2207
2229
  role: string;
2208
2230
  tools: string[];
2209
2231
  taskId?: string | undefined;
2210
- kind?: "builder" | "data-table" | "planner" | "eval-setup" | "agent-builder" | undefined;
2232
+ kind?: "agent-builder" | "builder" | "data-table" | "eval-setup" | "planner" | undefined;
2211
2233
  title?: string | undefined;
2212
2234
  subtitle?: string | undefined;
2213
2235
  goal?: string | undefined;
2214
2236
  targetResource?: {
2215
- type: "data-table" | "workflow" | "credential" | "agent" | "other";
2237
+ type: "agent" | "config-eval" | "credential" | "data-table" | "other" | "workflow";
2216
2238
  id?: string | undefined;
2217
2239
  name?: string | undefined;
2218
2240
  projectId?: string | undefined;
@@ -2222,67 +2244,70 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2222
2244
  role: string;
2223
2245
  tools: string[];
2224
2246
  taskId?: string | undefined;
2225
- kind?: "builder" | "data-table" | "planner" | "eval-setup" | "agent-builder" | undefined;
2247
+ kind?: "agent-builder" | "builder" | "data-table" | "eval-setup" | "planner" | undefined;
2226
2248
  title?: string | undefined;
2227
2249
  subtitle?: string | undefined;
2228
2250
  goal?: string | undefined;
2229
2251
  targetResource?: {
2230
- type: "data-table" | "workflow" | "credential" | "agent" | "other";
2252
+ type: "agent" | "config-eval" | "credential" | "data-table" | "other" | "workflow";
2231
2253
  id?: string | undefined;
2232
2254
  name?: string | undefined;
2233
2255
  projectId?: string | undefined;
2234
2256
  } | undefined;
2235
2257
  }>;
2236
- runId: z.ZodString;
2237
- agentId: z.ZodString;
2238
- userId: z.ZodOptional<z.ZodString>;
2239
- responseId: z.ZodOptional<z.ZodString>;
2240
- type: z.ZodLiteral<"agent-spawned">;
2241
2258
  }, "strip", z.ZodTypeAny, {
2242
- type: "agent-spawned";
2259
+ runId: string;
2243
2260
  agentId: string;
2261
+ userId?: string | undefined;
2262
+ responseId?: string | undefined;
2263
+ ts?: number | undefined;
2264
+ type: "agent-spawned";
2244
2265
  payload: {
2245
2266
  parentId: string;
2246
2267
  role: string;
2247
2268
  tools: string[];
2248
2269
  taskId?: string | undefined;
2249
- kind?: "builder" | "data-table" | "planner" | "eval-setup" | "agent-builder" | undefined;
2270
+ kind?: "agent-builder" | "builder" | "data-table" | "eval-setup" | "planner" | undefined;
2250
2271
  title?: string | undefined;
2251
2272
  subtitle?: string | undefined;
2252
2273
  goal?: string | undefined;
2253
2274
  targetResource?: {
2254
- type: "data-table" | "workflow" | "credential" | "agent" | "other";
2275
+ type: "agent" | "config-eval" | "credential" | "data-table" | "other" | "workflow";
2255
2276
  id?: string | undefined;
2256
2277
  name?: string | undefined;
2257
2278
  projectId?: string | undefined;
2258
2279
  } | undefined;
2259
2280
  };
2281
+ }, {
2260
2282
  runId: string;
2283
+ agentId: string;
2261
2284
  userId?: string | undefined;
2262
2285
  responseId?: string | undefined;
2263
- }, {
2286
+ ts?: number | undefined;
2264
2287
  type: "agent-spawned";
2265
- agentId: string;
2266
2288
  payload: {
2267
2289
  parentId: string;
2268
2290
  role: string;
2269
2291
  tools: string[];
2270
2292
  taskId?: string | undefined;
2271
- kind?: "builder" | "data-table" | "planner" | "eval-setup" | "agent-builder" | undefined;
2293
+ kind?: "agent-builder" | "builder" | "data-table" | "eval-setup" | "planner" | undefined;
2272
2294
  title?: string | undefined;
2273
2295
  subtitle?: string | undefined;
2274
2296
  goal?: string | undefined;
2275
2297
  targetResource?: {
2276
- type: "data-table" | "workflow" | "credential" | "agent" | "other";
2298
+ type: "agent" | "config-eval" | "credential" | "data-table" | "other" | "workflow";
2277
2299
  id?: string | undefined;
2278
2300
  name?: string | undefined;
2279
2301
  projectId?: string | undefined;
2280
2302
  } | undefined;
2281
2303
  };
2282
- runId: string;
2283
- userId?: string | undefined;
2284
- responseId?: string | undefined;
2285
2304
  }>, z.ZodObject<{
2305
+ runId: z.ZodString;
2306
+ agentId: z.ZodString;
2307
+ userId: z.ZodOptional<z.ZodString>;
2308
+ responseId: z.ZodOptional<z.ZodString>;
2309
+ ts: z.ZodOptional<z.ZodNumber>;
2310
+ type: z.ZodLiteral<"agent-completed">;
2286
2311
  payload: z.ZodObject<{
2287
2312
  role: z.ZodString;
2288
2313
  result: z.ZodString;
@@ -2296,34 +2321,37 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2296
2321
  result: string;
2297
2322
  error?: string | undefined;
2298
2323
  }>;
2299
- runId: z.ZodString;
2300
- agentId: z.ZodString;
2301
- userId: z.ZodOptional<z.ZodString>;
2302
- responseId: z.ZodOptional<z.ZodString>;
2303
- type: z.ZodLiteral<"agent-completed">;
2304
2324
  }, "strip", z.ZodTypeAny, {
2305
- type: "agent-completed";
2325
+ runId: string;
2306
2326
  agentId: string;
2327
+ userId?: string | undefined;
2328
+ responseId?: string | undefined;
2329
+ ts?: number | undefined;
2330
+ type: "agent-completed";
2307
2331
  payload: {
2308
2332
  role: string;
2309
2333
  result: string;
2310
2334
  error?: string | undefined;
2311
2335
  };
2336
+ }, {
2312
2337
  runId: string;
2338
+ agentId: string;
2313
2339
  userId?: string | undefined;
2314
2340
  responseId?: string | undefined;
2315
- }, {
2341
+ ts?: number | undefined;
2316
2342
  type: "agent-completed";
2317
- agentId: string;
2318
2343
  payload: {
2319
2344
  role: string;
2320
2345
  result: string;
2321
2346
  error?: string | undefined;
2322
2347
  };
2323
- runId: string;
2324
- userId?: string | undefined;
2325
- responseId?: string | undefined;
2326
2348
  }>, z.ZodObject<{
2349
+ runId: z.ZodString;
2350
+ agentId: z.ZodString;
2351
+ userId: z.ZodOptional<z.ZodString>;
2352
+ responseId: z.ZodOptional<z.ZodString>;
2353
+ ts: z.ZodOptional<z.ZodNumber>;
2354
+ type: z.ZodLiteral<"text-delta">;
2327
2355
  payload: z.ZodObject<{
2328
2356
  text: z.ZodString;
2329
2357
  }, "strip", z.ZodTypeAny, {
@@ -2331,30 +2359,33 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2331
2359
  }, {
2332
2360
  text: string;
2333
2361
  }>;
2334
- runId: z.ZodString;
2335
- agentId: z.ZodString;
2336
- userId: z.ZodOptional<z.ZodString>;
2337
- responseId: z.ZodOptional<z.ZodString>;
2338
- type: z.ZodLiteral<"text-delta">;
2339
2362
  }, "strip", z.ZodTypeAny, {
2340
- type: "text-delta";
2363
+ runId: string;
2341
2364
  agentId: string;
2365
+ userId?: string | undefined;
2366
+ responseId?: string | undefined;
2367
+ ts?: number | undefined;
2368
+ type: "text-delta";
2342
2369
  payload: {
2343
2370
  text: string;
2344
2371
  };
2372
+ }, {
2345
2373
  runId: string;
2374
+ agentId: string;
2346
2375
  userId?: string | undefined;
2347
2376
  responseId?: string | undefined;
2348
- }, {
2377
+ ts?: number | undefined;
2349
2378
  type: "text-delta";
2350
- agentId: string;
2351
2379
  payload: {
2352
2380
  text: string;
2353
2381
  };
2354
- runId: string;
2355
- userId?: string | undefined;
2356
- responseId?: string | undefined;
2357
2382
  }>, z.ZodObject<{
2383
+ runId: z.ZodString;
2384
+ agentId: z.ZodString;
2385
+ userId: z.ZodOptional<z.ZodString>;
2386
+ responseId: z.ZodOptional<z.ZodString>;
2387
+ ts: z.ZodOptional<z.ZodNumber>;
2388
+ type: z.ZodLiteral<"reasoning-delta">;
2358
2389
  payload: z.ZodObject<{
2359
2390
  text: z.ZodString;
2360
2391
  }, "strip", z.ZodTypeAny, {
@@ -2362,61 +2393,106 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2362
2393
  }, {
2363
2394
  text: string;
2364
2395
  }>;
2365
- runId: z.ZodString;
2366
- agentId: z.ZodString;
2367
- userId: z.ZodOptional<z.ZodString>;
2368
- responseId: z.ZodOptional<z.ZodString>;
2369
- type: z.ZodLiteral<"reasoning-delta">;
2370
2396
  }, "strip", z.ZodTypeAny, {
2371
- type: "reasoning-delta";
2397
+ runId: string;
2372
2398
  agentId: string;
2399
+ userId?: string | undefined;
2400
+ responseId?: string | undefined;
2401
+ ts?: number | undefined;
2402
+ type: "reasoning-delta";
2373
2403
  payload: {
2374
2404
  text: string;
2375
2405
  };
2406
+ }, {
2376
2407
  runId: string;
2408
+ agentId: string;
2377
2409
  userId?: string | undefined;
2378
2410
  responseId?: string | undefined;
2379
- }, {
2411
+ ts?: number | undefined;
2380
2412
  type: "reasoning-delta";
2381
- agentId: string;
2382
2413
  payload: {
2383
2414
  text: string;
2384
2415
  };
2385
- runId: string;
2386
- userId?: string | undefined;
2387
- responseId?: string | undefined;
2388
2416
  }>, z.ZodObject<{
2417
+ runId: z.ZodString;
2418
+ agentId: z.ZodString;
2419
+ userId: z.ZodOptional<z.ZodString>;
2420
+ responseId: z.ZodOptional<z.ZodString>;
2421
+ ts: z.ZodOptional<z.ZodNumber>;
2422
+ type: z.ZodLiteral<"tool-input-start">;
2389
2423
  payload: z.ZodObject<{
2390
- text: z.ZodString;
2424
+ toolCallId: z.ZodString;
2425
+ toolName: z.ZodString;
2391
2426
  }, "strip", z.ZodTypeAny, {
2392
- text: string;
2427
+ toolCallId: string;
2428
+ toolName: string;
2393
2429
  }, {
2394
- text: string;
2430
+ toolCallId: string;
2431
+ toolName: string;
2395
2432
  }>;
2433
+ }, "strip", z.ZodTypeAny, {
2434
+ runId: string;
2435
+ agentId: string;
2436
+ userId?: string | undefined;
2437
+ responseId?: string | undefined;
2438
+ ts?: number | undefined;
2439
+ type: "tool-input-start";
2440
+ payload: {
2441
+ toolCallId: string;
2442
+ toolName: string;
2443
+ };
2444
+ }, {
2445
+ runId: string;
2446
+ agentId: string;
2447
+ userId?: string | undefined;
2448
+ responseId?: string | undefined;
2449
+ ts?: number | undefined;
2450
+ type: "tool-input-start";
2451
+ payload: {
2452
+ toolCallId: string;
2453
+ toolName: string;
2454
+ };
2455
+ }>, z.ZodObject<{
2396
2456
  runId: z.ZodString;
2397
2457
  agentId: z.ZodString;
2398
2458
  userId: z.ZodOptional<z.ZodString>;
2399
2459
  responseId: z.ZodOptional<z.ZodString>;
2460
+ ts: z.ZodOptional<z.ZodNumber>;
2400
2461
  type: z.ZodLiteral<"text-block">;
2462
+ payload: z.ZodObject<{
2463
+ text: z.ZodString;
2464
+ }, "strip", z.ZodTypeAny, {
2465
+ text: string;
2466
+ }, {
2467
+ text: string;
2468
+ }>;
2401
2469
  }, "strip", z.ZodTypeAny, {
2402
- type: "text-block";
2470
+ runId: string;
2403
2471
  agentId: string;
2472
+ userId?: string | undefined;
2473
+ responseId?: string | undefined;
2474
+ ts?: number | undefined;
2475
+ type: "text-block";
2404
2476
  payload: {
2405
2477
  text: string;
2406
2478
  };
2479
+ }, {
2407
2480
  runId: string;
2481
+ agentId: string;
2408
2482
  userId?: string | undefined;
2409
2483
  responseId?: string | undefined;
2410
- }, {
2484
+ ts?: number | undefined;
2411
2485
  type: "text-block";
2412
- agentId: string;
2413
2486
  payload: {
2414
2487
  text: string;
2415
2488
  };
2416
- runId: string;
2417
- userId?: string | undefined;
2418
- responseId?: string | undefined;
2419
2489
  }>, z.ZodObject<{
2490
+ runId: z.ZodString;
2491
+ agentId: z.ZodString;
2492
+ userId: z.ZodOptional<z.ZodString>;
2493
+ responseId: z.ZodOptional<z.ZodString>;
2494
+ ts: z.ZodOptional<z.ZodNumber>;
2495
+ type: z.ZodLiteral<"reasoning-block">;
2420
2496
  payload: z.ZodObject<{
2421
2497
  text: z.ZodString;
2422
2498
  }, "strip", z.ZodTypeAny, {
@@ -2424,30 +2500,33 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2424
2500
  }, {
2425
2501
  text: string;
2426
2502
  }>;
2427
- runId: z.ZodString;
2428
- agentId: z.ZodString;
2429
- userId: z.ZodOptional<z.ZodString>;
2430
- responseId: z.ZodOptional<z.ZodString>;
2431
- type: z.ZodLiteral<"reasoning-block">;
2432
2503
  }, "strip", z.ZodTypeAny, {
2433
- type: "reasoning-block";
2504
+ runId: string;
2434
2505
  agentId: string;
2506
+ userId?: string | undefined;
2507
+ responseId?: string | undefined;
2508
+ ts?: number | undefined;
2509
+ type: "reasoning-block";
2435
2510
  payload: {
2436
2511
  text: string;
2437
2512
  };
2513
+ }, {
2438
2514
  runId: string;
2515
+ agentId: string;
2439
2516
  userId?: string | undefined;
2440
2517
  responseId?: string | undefined;
2441
- }, {
2518
+ ts?: number | undefined;
2442
2519
  type: "reasoning-block";
2443
- agentId: string;
2444
2520
  payload: {
2445
2521
  text: string;
2446
2522
  };
2447
- runId: string;
2448
- userId?: string | undefined;
2449
- responseId?: string | undefined;
2450
2523
  }>, z.ZodObject<{
2524
+ runId: z.ZodString;
2525
+ agentId: z.ZodString;
2526
+ userId: z.ZodOptional<z.ZodString>;
2527
+ responseId: z.ZodOptional<z.ZodString>;
2528
+ ts: z.ZodOptional<z.ZodNumber>;
2529
+ type: z.ZodLiteral<"tool-call">;
2451
2530
  payload: z.ZodObject<{
2452
2531
  toolCallId: z.ZodString;
2453
2532
  toolName: z.ZodString;
@@ -2461,34 +2540,37 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2461
2540
  toolName: string;
2462
2541
  args: Record<string, unknown>;
2463
2542
  }>;
2464
- runId: z.ZodString;
2465
- agentId: z.ZodString;
2466
- userId: z.ZodOptional<z.ZodString>;
2467
- responseId: z.ZodOptional<z.ZodString>;
2468
- type: z.ZodLiteral<"tool-call">;
2469
2543
  }, "strip", z.ZodTypeAny, {
2470
- type: "tool-call";
2544
+ runId: string;
2471
2545
  agentId: string;
2546
+ userId?: string | undefined;
2547
+ responseId?: string | undefined;
2548
+ ts?: number | undefined;
2549
+ type: "tool-call";
2472
2550
  payload: {
2473
2551
  toolCallId: string;
2474
2552
  toolName: string;
2475
2553
  args: Record<string, unknown>;
2476
2554
  };
2555
+ }, {
2477
2556
  runId: string;
2557
+ agentId: string;
2478
2558
  userId?: string | undefined;
2479
2559
  responseId?: string | undefined;
2480
- }, {
2560
+ ts?: number | undefined;
2481
2561
  type: "tool-call";
2482
- agentId: string;
2483
2562
  payload: {
2484
2563
  toolCallId: string;
2485
2564
  toolName: string;
2486
2565
  args: Record<string, unknown>;
2487
2566
  };
2488
- runId: string;
2489
- userId?: string | undefined;
2490
- responseId?: string | undefined;
2491
2567
  }>, z.ZodObject<{
2568
+ runId: z.ZodString;
2569
+ agentId: z.ZodString;
2570
+ userId: z.ZodOptional<z.ZodString>;
2571
+ responseId: z.ZodOptional<z.ZodString>;
2572
+ ts: z.ZodOptional<z.ZodNumber>;
2573
+ type: z.ZodLiteral<"tool-result">;
2492
2574
  payload: z.ZodObject<{
2493
2575
  toolCallId: z.ZodString;
2494
2576
  result: z.ZodUnknown;
@@ -2499,104 +2581,113 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2499
2581
  toolCallId: string;
2500
2582
  result?: unknown;
2501
2583
  }>;
2502
- runId: z.ZodString;
2503
- agentId: z.ZodString;
2504
- userId: z.ZodOptional<z.ZodString>;
2505
- responseId: z.ZodOptional<z.ZodString>;
2506
- type: z.ZodLiteral<"tool-result">;
2507
2584
  }, "strip", z.ZodTypeAny, {
2508
- type: "tool-result";
2585
+ runId: string;
2509
2586
  agentId: string;
2587
+ userId?: string | undefined;
2588
+ responseId?: string | undefined;
2589
+ ts?: number | undefined;
2590
+ type: "tool-result";
2510
2591
  payload: {
2511
2592
  toolCallId: string;
2512
2593
  result?: unknown;
2513
2594
  };
2595
+ }, {
2514
2596
  runId: string;
2597
+ agentId: string;
2515
2598
  userId?: string | undefined;
2516
2599
  responseId?: string | undefined;
2517
- }, {
2600
+ ts?: number | undefined;
2518
2601
  type: "tool-result";
2519
- agentId: string;
2520
2602
  payload: {
2521
2603
  toolCallId: string;
2522
2604
  result?: unknown;
2523
2605
  };
2524
- runId: string;
2525
- userId?: string | undefined;
2526
- responseId?: string | undefined;
2527
2606
  }>, z.ZodObject<{
2607
+ runId: z.ZodString;
2608
+ agentId: z.ZodString;
2609
+ userId: z.ZodOptional<z.ZodString>;
2610
+ responseId: z.ZodOptional<z.ZodString>;
2611
+ ts: z.ZodOptional<z.ZodNumber>;
2612
+ type: z.ZodLiteral<"tool-error">;
2528
2613
  payload: z.ZodObject<{
2529
2614
  toolCallId: z.ZodString;
2530
2615
  error: z.ZodString;
2531
2616
  }, "strip", z.ZodTypeAny, {
2532
- error: string;
2533
2617
  toolCallId: string;
2534
- }, {
2535
2618
  error: string;
2619
+ }, {
2536
2620
  toolCallId: string;
2621
+ error: string;
2537
2622
  }>;
2538
- runId: z.ZodString;
2539
- agentId: z.ZodString;
2540
- userId: z.ZodOptional<z.ZodString>;
2541
- responseId: z.ZodOptional<z.ZodString>;
2542
- type: z.ZodLiteral<"tool-error">;
2543
2623
  }, "strip", z.ZodTypeAny, {
2544
- type: "tool-error";
2624
+ runId: string;
2545
2625
  agentId: string;
2626
+ userId?: string | undefined;
2627
+ responseId?: string | undefined;
2628
+ ts?: number | undefined;
2629
+ type: "tool-error";
2546
2630
  payload: {
2547
- error: string;
2548
2631
  toolCallId: string;
2632
+ error: string;
2549
2633
  };
2634
+ }, {
2550
2635
  runId: string;
2636
+ agentId: string;
2551
2637
  userId?: string | undefined;
2552
2638
  responseId?: string | undefined;
2553
- }, {
2639
+ ts?: number | undefined;
2554
2640
  type: "tool-error";
2555
- agentId: string;
2556
2641
  payload: {
2557
- error: string;
2558
2642
  toolCallId: string;
2643
+ error: string;
2559
2644
  };
2560
- runId: string;
2561
- userId?: string | undefined;
2562
- responseId?: string | undefined;
2563
2645
  }>, z.ZodObject<{
2646
+ runId: z.ZodString;
2647
+ agentId: z.ZodString;
2648
+ userId: z.ZodOptional<z.ZodString>;
2649
+ responseId: z.ZodOptional<z.ZodString>;
2650
+ ts: z.ZodOptional<z.ZodNumber>;
2651
+ type: z.ZodLiteral<"tool-interrupted">;
2564
2652
  payload: z.ZodObject<{
2565
2653
  toolCallId: z.ZodString;
2566
2654
  error: z.ZodString;
2567
2655
  }, "strip", z.ZodTypeAny, {
2568
- error: string;
2569
2656
  toolCallId: string;
2570
- }, {
2571
2657
  error: string;
2658
+ }, {
2572
2659
  toolCallId: string;
2660
+ error: string;
2573
2661
  }>;
2574
- runId: z.ZodString;
2575
- agentId: z.ZodString;
2576
- userId: z.ZodOptional<z.ZodString>;
2577
- responseId: z.ZodOptional<z.ZodString>;
2578
- type: z.ZodLiteral<"tool-interrupted">;
2579
2662
  }, "strip", z.ZodTypeAny, {
2580
- type: "tool-interrupted";
2663
+ runId: string;
2581
2664
  agentId: string;
2665
+ userId?: string | undefined;
2666
+ responseId?: string | undefined;
2667
+ ts?: number | undefined;
2668
+ type: "tool-interrupted";
2582
2669
  payload: {
2583
- error: string;
2584
2670
  toolCallId: string;
2671
+ error: string;
2585
2672
  };
2673
+ }, {
2586
2674
  runId: string;
2675
+ agentId: string;
2587
2676
  userId?: string | undefined;
2588
2677
  responseId?: string | undefined;
2589
- }, {
2678
+ ts?: number | undefined;
2590
2679
  type: "tool-interrupted";
2591
- agentId: string;
2592
2680
  payload: {
2593
- error: string;
2594
2681
  toolCallId: string;
2682
+ error: string;
2595
2683
  };
2596
- runId: string;
2597
- userId?: string | undefined;
2598
- responseId?: string | undefined;
2599
2684
  }>, z.ZodObject<{
2685
+ runId: z.ZodString;
2686
+ agentId: z.ZodString;
2687
+ userId: z.ZodOptional<z.ZodString>;
2688
+ responseId: z.ZodOptional<z.ZodString>;
2689
+ ts: z.ZodOptional<z.ZodNumber>;
2690
+ type: z.ZodLiteral<"confirmation-request">;
2600
2691
  payload: z.ZodObject<{
2601
2692
  requestId: z.ZodString;
2602
2693
  inputThreadId: z.ZodOptional<z.ZodString>;
@@ -2620,16 +2711,16 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2620
2711
  }>, "many">;
2621
2712
  suggestedName: z.ZodOptional<z.ZodString>;
2622
2713
  }, "strip", z.ZodTypeAny, {
2623
- reason: string;
2624
2714
  credentialType: string;
2715
+ reason: string;
2625
2716
  existingCredentials: {
2626
2717
  id: string;
2627
2718
  name: string;
2628
2719
  }[];
2629
2720
  suggestedName?: string | undefined;
2630
2721
  }, {
2631
- reason: string;
2632
2722
  credentialType: string;
2723
+ reason: string;
2633
2724
  existingCredentials: {
2634
2725
  id: string;
2635
2726
  name: string;
@@ -2644,14 +2735,14 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2644
2735
  type: z.ZodEnum<["single", "multi", "text"]>;
2645
2736
  options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2646
2737
  }, "strip", z.ZodTypeAny, {
2647
- type: "text" | "single" | "multi";
2648
2738
  id: string;
2649
2739
  question: string;
2740
+ type: "multi" | "single" | "text";
2650
2741
  options?: string[] | undefined;
2651
2742
  }, {
2652
- type: "text" | "single" | "multi";
2653
2743
  id: string;
2654
2744
  question: string;
2745
+ type: "multi" | "single" | "text";
2655
2746
  options?: string[] | undefined;
2656
2747
  }>, "many">>;
2657
2748
  introMessage: z.ZodOptional<z.ZodString>;
@@ -2662,29 +2753,29 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2662
2753
  detail: z.ZodOptional<z.ZodString>;
2663
2754
  status: z.ZodEnum<["todo", "in_progress", "done", "failed", "cancelled"]>;
2664
2755
  }, "strip", z.ZodTypeAny, {
2665
- status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
2666
2756
  id: string;
2667
2757
  description: string;
2668
2758
  detail?: string | undefined;
2759
+ status: "cancelled" | "done" | "failed" | "in_progress" | "todo";
2669
2760
  }, {
2670
- status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
2671
2761
  id: string;
2672
2762
  description: string;
2673
2763
  detail?: string | undefined;
2764
+ status: "cancelled" | "done" | "failed" | "in_progress" | "todo";
2674
2765
  }>, "many">;
2675
2766
  }, "strip", z.ZodTypeAny, {
2676
2767
  tasks: {
2677
- status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
2678
2768
  id: string;
2679
2769
  description: string;
2680
2770
  detail?: string | undefined;
2771
+ status: "cancelled" | "done" | "failed" | "in_progress" | "todo";
2681
2772
  }[];
2682
2773
  }, {
2683
2774
  tasks: {
2684
- status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
2685
2775
  id: string;
2686
2776
  description: string;
2687
2777
  detail?: string | undefined;
2778
+ status: "cancelled" | "done" | "failed" | "in_progress" | "todo";
2688
2779
  }[];
2689
2780
  }>>;
2690
2781
  planItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -2698,8 +2789,8 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2698
2789
  isSupportingWorkflow: z.ZodOptional<z.ZodBoolean>;
2699
2790
  }, "strip", z.ZodTypeAny, {
2700
2791
  id: string;
2701
- kind: string;
2702
2792
  title: string;
2793
+ kind: string;
2703
2794
  spec: string;
2704
2795
  deps: string[];
2705
2796
  tools?: string[] | undefined;
@@ -2707,8 +2798,8 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2707
2798
  isSupportingWorkflow?: boolean | undefined;
2708
2799
  }, {
2709
2800
  id: string;
2710
- kind: string;
2711
2801
  title: string;
2802
+ kind: string;
2712
2803
  spec: string;
2713
2804
  deps: string[];
2714
2805
  tools?: string[] | undefined;
@@ -2735,9 +2826,9 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2735
2826
  credentialFlow: z.ZodOptional<z.ZodObject<{
2736
2827
  stage: z.ZodEnum<["generic", "finalize"]>;
2737
2828
  }, "strip", z.ZodTypeAny, {
2738
- stage: "generic" | "finalize";
2829
+ stage: "finalize" | "generic";
2739
2830
  }, {
2740
- stage: "generic" | "finalize";
2831
+ stage: "finalize" | "generic";
2741
2832
  }>>;
2742
2833
  setupRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
2743
2834
  node: z.ZodObject<{
@@ -2770,12 +2861,10 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2770
2861
  position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
2771
2862
  id: z.ZodString;
2772
2863
  }, "strip", z.ZodTypeAny, {
2773
- type: string;
2774
- id: string;
2775
2864
  name: string;
2865
+ type: string;
2776
2866
  typeVersion: number;
2777
2867
  parameters: Record<string, unknown>;
2778
- position: [number, number];
2779
2868
  credentials?: Record<string, {
2780
2869
  id: string;
2781
2870
  name: string;
@@ -2784,13 +2873,13 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2784
2873
  name: string;
2785
2874
  __aiGatewayManaged: true;
2786
2875
  }> | undefined;
2787
- }, {
2788
- type: string;
2876
+ position: [number, number];
2789
2877
  id: string;
2878
+ }, {
2790
2879
  name: string;
2880
+ type: string;
2791
2881
  typeVersion: number;
2792
2882
  parameters: Record<string, unknown>;
2793
- position: [number, number];
2794
2883
  credentials?: Record<string, {
2795
2884
  id: string;
2796
2885
  name: string;
@@ -2799,6 +2888,8 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2799
2888
  name: string;
2800
2889
  __aiGatewayManaged: true;
2801
2890
  }> | undefined;
2891
+ position: [number, number];
2892
+ id: string;
2802
2893
  }>;
2803
2894
  credentialType: z.ZodOptional<z.ZodString>;
2804
2895
  existingCredentials: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -2829,10 +2920,10 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2829
2920
  status: z.ZodEnum<["success", "error", "listening"]>;
2830
2921
  error: z.ZodOptional<z.ZodString>;
2831
2922
  }, "strip", z.ZodTypeAny, {
2832
- status: "error" | "success" | "listening";
2923
+ status: "error" | "listening" | "success";
2833
2924
  error?: string | undefined;
2834
2925
  }, {
2835
- status: "error" | "success" | "listening";
2926
+ status: "error" | "listening" | "success";
2836
2927
  error?: string | undefined;
2837
2928
  }>>;
2838
2929
  parameterIssues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
@@ -2846,32 +2937,32 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2846
2937
  name: z.ZodString;
2847
2938
  value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>;
2848
2939
  }, "strip", z.ZodTypeAny, {
2849
- value: string | number | boolean;
2850
2940
  name: string;
2851
- }, {
2852
2941
  value: string | number | boolean;
2942
+ }, {
2853
2943
  name: string;
2944
+ value: string | number | boolean;
2854
2945
  }>, "many">>;
2855
2946
  }, "strip", z.ZodTypeAny, {
2856
- type: string;
2857
2947
  name: string;
2858
2948
  displayName: string;
2949
+ type: string;
2950
+ required?: boolean | undefined;
2951
+ default?: unknown;
2859
2952
  options?: {
2860
- value: string | number | boolean;
2861
2953
  name: string;
2954
+ value: string | number | boolean;
2862
2955
  }[] | undefined;
2863
- required?: boolean | undefined;
2864
- default?: unknown;
2865
2956
  }, {
2866
- type: string;
2867
2957
  name: string;
2868
2958
  displayName: string;
2959
+ type: string;
2960
+ required?: boolean | undefined;
2961
+ default?: unknown;
2869
2962
  options?: {
2870
- value: string | number | boolean;
2871
2963
  name: string;
2964
+ value: string | number | boolean;
2872
2965
  }[] | undefined;
2873
- required?: boolean | undefined;
2874
- default?: unknown;
2875
2966
  }>, "many">>;
2876
2967
  needsAction: z.ZodOptional<z.ZodBoolean>;
2877
2968
  subnodeRootNode: z.ZodOptional<z.ZodObject<{
@@ -2880,24 +2971,22 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2880
2971
  typeVersion: z.ZodNumber;
2881
2972
  id: z.ZodString;
2882
2973
  }, "strip", z.ZodTypeAny, {
2883
- type: string;
2884
- id: string;
2885
2974
  name: string;
2886
- typeVersion: number;
2887
- }, {
2888
2975
  type: string;
2976
+ typeVersion: number;
2889
2977
  id: string;
2978
+ }, {
2890
2979
  name: string;
2980
+ type: string;
2891
2981
  typeVersion: number;
2982
+ id: string;
2892
2983
  }>>;
2893
2984
  }, "strip", z.ZodTypeAny, {
2894
2985
  node: {
2895
- type: string;
2896
- id: string;
2897
2986
  name: string;
2987
+ type: string;
2898
2988
  typeVersion: number;
2899
2989
  parameters: Record<string, unknown>;
2900
- position: [number, number];
2901
2990
  credentials?: Record<string, {
2902
2991
  id: string;
2903
2992
  name: string;
@@ -2906,13 +2995,15 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2906
2995
  name: string;
2907
2996
  __aiGatewayManaged: true;
2908
2997
  }> | undefined;
2998
+ position: [number, number];
2999
+ id: string;
2909
3000
  };
2910
- isTrigger: boolean;
2911
3001
  credentialType?: string | undefined;
2912
3002
  existingCredentials?: {
2913
3003
  id: string;
2914
3004
  name: string;
2915
3005
  }[] | undefined;
3006
+ isTrigger: boolean;
2916
3007
  isFirstTrigger?: boolean | undefined;
2917
3008
  isTestable?: boolean | undefined;
2918
3009
  isAutoApplied?: boolean | undefined;
@@ -2921,36 +3012,34 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2921
3012
  message?: string | undefined;
2922
3013
  } | undefined;
2923
3014
  triggerTestResult?: {
2924
- status: "error" | "success" | "listening";
3015
+ status: "error" | "listening" | "success";
2925
3016
  error?: string | undefined;
2926
3017
  } | undefined;
2927
3018
  parameterIssues?: Record<string, string[]> | undefined;
2928
3019
  editableParameters?: {
2929
- type: string;
2930
3020
  name: string;
2931
3021
  displayName: string;
3022
+ type: string;
3023
+ required?: boolean | undefined;
3024
+ default?: unknown;
2932
3025
  options?: {
2933
- value: string | number | boolean;
2934
3026
  name: string;
3027
+ value: string | number | boolean;
2935
3028
  }[] | undefined;
2936
- required?: boolean | undefined;
2937
- default?: unknown;
2938
3029
  }[] | undefined;
2939
3030
  needsAction?: boolean | undefined;
2940
3031
  subnodeRootNode?: {
2941
- type: string;
2942
- id: string;
2943
3032
  name: string;
3033
+ type: string;
2944
3034
  typeVersion: number;
3035
+ id: string;
2945
3036
  } | undefined;
2946
3037
  }, {
2947
3038
  node: {
2948
- type: string;
2949
- id: string;
2950
3039
  name: string;
3040
+ type: string;
2951
3041
  typeVersion: number;
2952
3042
  parameters: Record<string, unknown>;
2953
- position: [number, number];
2954
3043
  credentials?: Record<string, {
2955
3044
  id: string;
2956
3045
  name: string;
@@ -2959,13 +3048,15 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2959
3048
  name: string;
2960
3049
  __aiGatewayManaged: true;
2961
3050
  }> | undefined;
2962
- };
2963
- isTrigger: boolean;
3051
+ position: [number, number];
3052
+ id: string;
3053
+ };
2964
3054
  credentialType?: string | undefined;
2965
3055
  existingCredentials?: {
2966
3056
  id: string;
2967
3057
  name: string;
2968
3058
  }[] | undefined;
3059
+ isTrigger: boolean;
2969
3060
  isFirstTrigger?: boolean | undefined;
2970
3061
  isTestable?: boolean | undefined;
2971
3062
  isAutoApplied?: boolean | undefined;
@@ -2974,27 +3065,27 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2974
3065
  message?: string | undefined;
2975
3066
  } | undefined;
2976
3067
  triggerTestResult?: {
2977
- status: "error" | "success" | "listening";
3068
+ status: "error" | "listening" | "success";
2978
3069
  error?: string | undefined;
2979
3070
  } | undefined;
2980
3071
  parameterIssues?: Record<string, string[]> | undefined;
2981
3072
  editableParameters?: {
2982
- type: string;
2983
3073
  name: string;
2984
3074
  displayName: string;
3075
+ type: string;
3076
+ required?: boolean | undefined;
3077
+ default?: unknown;
2985
3078
  options?: {
2986
- value: string | number | boolean;
2987
3079
  name: string;
3080
+ value: string | number | boolean;
2988
3081
  }[] | undefined;
2989
- required?: boolean | undefined;
2990
- default?: unknown;
2991
3082
  }[] | undefined;
2992
3083
  needsAction?: boolean | undefined;
2993
3084
  subnodeRootNode?: {
2994
- type: string;
2995
- id: string;
2996
3085
  name: string;
3086
+ type: string;
2997
3087
  typeVersion: number;
3088
+ id: string;
2998
3089
  } | undefined;
2999
3090
  }>, "many">>;
3000
3091
  workflowId: z.ZodOptional<z.ZodString>;
@@ -3005,15 +3096,15 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3005
3096
  } & {
3006
3097
  options: z.ZodArray<z.ZodEnum<["denyOnce", "allowOnce", "allowForSession"]>, "many">;
3007
3098
  }, "strip", z.ZodTypeAny, {
3008
- options: ("denyOnce" | "allowOnce" | "allowForSession")[];
3009
- description: string;
3010
3099
  toolGroup: string;
3011
3100
  resource: string;
3012
- }, {
3013
- options: ("denyOnce" | "allowOnce" | "allowForSession")[];
3014
3101
  description: string;
3102
+ options: ("allowForSession" | "allowOnce" | "denyOnce")[];
3103
+ }, {
3015
3104
  toolGroup: string;
3016
3105
  resource: string;
3106
+ description: string;
3107
+ options: ("allowForSession" | "allowOnce" | "denyOnce")[];
3017
3108
  }>>;
3018
3109
  channelConfig: z.ZodOptional<z.ZodObject<{
3019
3110
  integrationType: z.ZodString;
@@ -3026,44 +3117,43 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3026
3117
  agentId: string;
3027
3118
  }>>;
3028
3119
  }, "strip", z.ZodTypeAny, {
3029
- message: string;
3120
+ requestId: string;
3121
+ inputThreadId?: string | undefined;
3030
3122
  toolCallId: string;
3031
3123
  toolName: string;
3032
3124
  args: Record<string, unknown>;
3033
- requestId: string;
3034
- severity: "destructive" | "warning" | "info";
3035
- projectId?: string | undefined;
3036
- tasks?: {
3037
- tasks: {
3038
- status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
3039
- id: string;
3040
- description: string;
3041
- detail?: string | undefined;
3042
- }[];
3043
- } | undefined;
3044
- workflowId?: string | undefined;
3045
- questions?: {
3046
- type: "text" | "single" | "multi";
3047
- id: string;
3048
- question: string;
3049
- options?: string[] | undefined;
3050
- }[] | undefined;
3051
- inputThreadId?: string | undefined;
3125
+ severity: "destructive" | "info" | "warning";
3126
+ message: string;
3052
3127
  credentialRequests?: {
3053
- reason: string;
3054
3128
  credentialType: string;
3129
+ reason: string;
3055
3130
  existingCredentials: {
3056
3131
  id: string;
3057
3132
  name: string;
3058
3133
  }[];
3059
3134
  suggestedName?: string | undefined;
3060
3135
  }[] | undefined;
3061
- inputType?: "text" | "approval" | "questions" | "plan-review" | "resource-decision" | "continue" | undefined;
3136
+ projectId?: string | undefined;
3137
+ inputType?: "approval" | "continue" | "plan-review" | "questions" | "resource-decision" | "text" | undefined;
3138
+ questions?: {
3139
+ id: string;
3140
+ question: string;
3141
+ type: "multi" | "single" | "text";
3142
+ options?: string[] | undefined;
3143
+ }[] | undefined;
3062
3144
  introMessage?: string | undefined;
3145
+ tasks?: {
3146
+ tasks: {
3147
+ id: string;
3148
+ description: string;
3149
+ detail?: string | undefined;
3150
+ status: "cancelled" | "done" | "failed" | "in_progress" | "todo";
3151
+ }[];
3152
+ } | undefined;
3063
3153
  planItems?: {
3064
3154
  id: string;
3065
- kind: string;
3066
3155
  title: string;
3156
+ kind: string;
3067
3157
  spec: string;
3068
3158
  deps: string[];
3069
3159
  tools?: string[] | undefined;
@@ -3078,16 +3168,14 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3078
3168
  query: string;
3079
3169
  } | undefined;
3080
3170
  credentialFlow?: {
3081
- stage: "generic" | "finalize";
3171
+ stage: "finalize" | "generic";
3082
3172
  } | undefined;
3083
3173
  setupRequests?: {
3084
3174
  node: {
3085
- type: string;
3086
- id: string;
3087
3175
  name: string;
3176
+ type: string;
3088
3177
  typeVersion: number;
3089
3178
  parameters: Record<string, unknown>;
3090
- position: [number, number];
3091
3179
  credentials?: Record<string, {
3092
3180
  id: string;
3093
3181
  name: string;
@@ -3096,13 +3184,15 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3096
3184
  name: string;
3097
3185
  __aiGatewayManaged: true;
3098
3186
  }> | undefined;
3187
+ position: [number, number];
3188
+ id: string;
3099
3189
  };
3100
- isTrigger: boolean;
3101
3190
  credentialType?: string | undefined;
3102
3191
  existingCredentials?: {
3103
3192
  id: string;
3104
3193
  name: string;
3105
3194
  }[] | undefined;
3195
+ isTrigger: boolean;
3106
3196
  isFirstTrigger?: boolean | undefined;
3107
3197
  isTestable?: boolean | undefined;
3108
3198
  isAutoApplied?: boolean | undefined;
@@ -3111,78 +3201,78 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3111
3201
  message?: string | undefined;
3112
3202
  } | undefined;
3113
3203
  triggerTestResult?: {
3114
- status: "error" | "success" | "listening";
3204
+ status: "error" | "listening" | "success";
3115
3205
  error?: string | undefined;
3116
3206
  } | undefined;
3117
3207
  parameterIssues?: Record<string, string[]> | undefined;
3118
3208
  editableParameters?: {
3119
- type: string;
3120
3209
  name: string;
3121
3210
  displayName: string;
3211
+ type: string;
3212
+ required?: boolean | undefined;
3213
+ default?: unknown;
3122
3214
  options?: {
3123
- value: string | number | boolean;
3124
3215
  name: string;
3216
+ value: string | number | boolean;
3125
3217
  }[] | undefined;
3126
- required?: boolean | undefined;
3127
- default?: unknown;
3128
3218
  }[] | undefined;
3129
3219
  needsAction?: boolean | undefined;
3130
3220
  subnodeRootNode?: {
3131
- type: string;
3132
- id: string;
3133
3221
  name: string;
3222
+ type: string;
3134
3223
  typeVersion: number;
3224
+ id: string;
3135
3225
  } | undefined;
3136
3226
  }[] | undefined;
3227
+ workflowId?: string | undefined;
3137
3228
  resourceDecision?: {
3138
- options: ("denyOnce" | "allowOnce" | "allowForSession")[];
3139
- description: string;
3140
3229
  toolGroup: string;
3141
3230
  resource: string;
3231
+ description: string;
3232
+ options: ("allowForSession" | "allowOnce" | "denyOnce")[];
3142
3233
  } | undefined;
3143
3234
  channelConfig?: {
3144
3235
  integrationType: string;
3145
3236
  agentId: string;
3146
3237
  } | undefined;
3147
3238
  }, {
3148
- message: string;
3239
+ requestId: string;
3240
+ inputThreadId?: string | undefined;
3149
3241
  toolCallId: string;
3150
3242
  toolName: string;
3151
3243
  args: Record<string, unknown>;
3152
- requestId: string;
3153
- severity: "destructive" | "warning" | "info";
3154
- projectId?: string | undefined;
3155
- tasks?: {
3156
- tasks: {
3157
- status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
3158
- id: string;
3159
- description: string;
3160
- detail?: string | undefined;
3161
- }[];
3162
- } | undefined;
3163
- workflowId?: string | undefined;
3164
- questions?: {
3165
- type: "text" | "single" | "multi";
3166
- id: string;
3167
- question: string;
3168
- options?: string[] | undefined;
3169
- }[] | undefined;
3170
- inputThreadId?: string | undefined;
3244
+ severity: "destructive" | "info" | "warning";
3245
+ message: string;
3171
3246
  credentialRequests?: {
3172
- reason: string;
3173
3247
  credentialType: string;
3248
+ reason: string;
3174
3249
  existingCredentials: {
3175
3250
  id: string;
3176
3251
  name: string;
3177
3252
  }[];
3178
3253
  suggestedName?: string | undefined;
3179
3254
  }[] | undefined;
3180
- inputType?: "text" | "approval" | "questions" | "plan-review" | "resource-decision" | "continue" | undefined;
3255
+ projectId?: string | undefined;
3256
+ inputType?: "approval" | "continue" | "plan-review" | "questions" | "resource-decision" | "text" | undefined;
3257
+ questions?: {
3258
+ id: string;
3259
+ question: string;
3260
+ type: "multi" | "single" | "text";
3261
+ options?: string[] | undefined;
3262
+ }[] | undefined;
3181
3263
  introMessage?: string | undefined;
3264
+ tasks?: {
3265
+ tasks: {
3266
+ id: string;
3267
+ description: string;
3268
+ detail?: string | undefined;
3269
+ status: "cancelled" | "done" | "failed" | "in_progress" | "todo";
3270
+ }[];
3271
+ } | undefined;
3182
3272
  planItems?: {
3183
3273
  id: string;
3184
- kind: string;
3185
3274
  title: string;
3275
+ kind: string;
3186
3276
  spec: string;
3187
3277
  deps: string[];
3188
3278
  tools?: string[] | undefined;
@@ -3197,16 +3287,14 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3197
3287
  query: string;
3198
3288
  } | undefined;
3199
3289
  credentialFlow?: {
3200
- stage: "generic" | "finalize";
3290
+ stage: "finalize" | "generic";
3201
3291
  } | undefined;
3202
3292
  setupRequests?: {
3203
3293
  node: {
3204
- type: string;
3205
- id: string;
3206
3294
  name: string;
3295
+ type: string;
3207
3296
  typeVersion: number;
3208
3297
  parameters: Record<string, unknown>;
3209
- position: [number, number];
3210
3298
  credentials?: Record<string, {
3211
3299
  id: string;
3212
3300
  name: string;
@@ -3215,13 +3303,15 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3215
3303
  name: string;
3216
3304
  __aiGatewayManaged: true;
3217
3305
  }> | undefined;
3306
+ position: [number, number];
3307
+ id: string;
3218
3308
  };
3219
- isTrigger: boolean;
3220
3309
  credentialType?: string | undefined;
3221
3310
  existingCredentials?: {
3222
3311
  id: string;
3223
3312
  name: string;
3224
3313
  }[] | undefined;
3314
+ isTrigger: boolean;
3225
3315
  isFirstTrigger?: boolean | undefined;
3226
3316
  isTestable?: boolean | undefined;
3227
3317
  isAutoApplied?: boolean | undefined;
@@ -3230,87 +3320,86 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3230
3320
  message?: string | undefined;
3231
3321
  } | undefined;
3232
3322
  triggerTestResult?: {
3233
- status: "error" | "success" | "listening";
3323
+ status: "error" | "listening" | "success";
3234
3324
  error?: string | undefined;
3235
3325
  } | undefined;
3236
3326
  parameterIssues?: Record<string, string[]> | undefined;
3237
3327
  editableParameters?: {
3238
- type: string;
3239
3328
  name: string;
3240
3329
  displayName: string;
3330
+ type: string;
3331
+ required?: boolean | undefined;
3332
+ default?: unknown;
3241
3333
  options?: {
3242
- value: string | number | boolean;
3243
3334
  name: string;
3335
+ value: string | number | boolean;
3244
3336
  }[] | undefined;
3245
- required?: boolean | undefined;
3246
- default?: unknown;
3247
3337
  }[] | undefined;
3248
3338
  needsAction?: boolean | undefined;
3249
3339
  subnodeRootNode?: {
3250
- type: string;
3251
- id: string;
3252
3340
  name: string;
3341
+ type: string;
3253
3342
  typeVersion: number;
3343
+ id: string;
3254
3344
  } | undefined;
3255
3345
  }[] | undefined;
3346
+ workflowId?: string | undefined;
3256
3347
  resourceDecision?: {
3257
- options: ("denyOnce" | "allowOnce" | "allowForSession")[];
3258
- description: string;
3259
3348
  toolGroup: string;
3260
3349
  resource: string;
3350
+ description: string;
3351
+ options: ("allowForSession" | "allowOnce" | "denyOnce")[];
3261
3352
  } | undefined;
3262
3353
  channelConfig?: {
3263
3354
  integrationType: string;
3264
3355
  agentId: string;
3265
3356
  } | undefined;
3266
3357
  }>;
3267
- runId: z.ZodString;
3268
- agentId: z.ZodString;
3269
- userId: z.ZodOptional<z.ZodString>;
3270
- responseId: z.ZodOptional<z.ZodString>;
3271
- type: z.ZodLiteral<"confirmation-request">;
3272
3358
  }, "strip", z.ZodTypeAny, {
3273
- type: "confirmation-request";
3359
+ runId: string;
3274
3360
  agentId: string;
3361
+ userId?: string | undefined;
3362
+ responseId?: string | undefined;
3363
+ ts?: number | undefined;
3364
+ type: "confirmation-request";
3275
3365
  payload: {
3276
- message: string;
3366
+ requestId: string;
3367
+ inputThreadId?: string | undefined;
3277
3368
  toolCallId: string;
3278
3369
  toolName: string;
3279
3370
  args: Record<string, unknown>;
3280
- requestId: string;
3281
- severity: "destructive" | "warning" | "info";
3282
- projectId?: string | undefined;
3283
- tasks?: {
3284
- tasks: {
3285
- status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
3286
- id: string;
3287
- description: string;
3288
- detail?: string | undefined;
3289
- }[];
3290
- } | undefined;
3291
- workflowId?: string | undefined;
3292
- questions?: {
3293
- type: "text" | "single" | "multi";
3294
- id: string;
3295
- question: string;
3296
- options?: string[] | undefined;
3297
- }[] | undefined;
3298
- inputThreadId?: string | undefined;
3371
+ severity: "destructive" | "info" | "warning";
3372
+ message: string;
3299
3373
  credentialRequests?: {
3300
- reason: string;
3301
3374
  credentialType: string;
3375
+ reason: string;
3302
3376
  existingCredentials: {
3303
3377
  id: string;
3304
3378
  name: string;
3305
3379
  }[];
3306
3380
  suggestedName?: string | undefined;
3307
3381
  }[] | undefined;
3308
- inputType?: "text" | "approval" | "questions" | "plan-review" | "resource-decision" | "continue" | undefined;
3382
+ projectId?: string | undefined;
3383
+ inputType?: "approval" | "continue" | "plan-review" | "questions" | "resource-decision" | "text" | undefined;
3384
+ questions?: {
3385
+ id: string;
3386
+ question: string;
3387
+ type: "multi" | "single" | "text";
3388
+ options?: string[] | undefined;
3389
+ }[] | undefined;
3309
3390
  introMessage?: string | undefined;
3391
+ tasks?: {
3392
+ tasks: {
3393
+ id: string;
3394
+ description: string;
3395
+ detail?: string | undefined;
3396
+ status: "cancelled" | "done" | "failed" | "in_progress" | "todo";
3397
+ }[];
3398
+ } | undefined;
3310
3399
  planItems?: {
3311
3400
  id: string;
3312
- kind: string;
3313
3401
  title: string;
3402
+ kind: string;
3314
3403
  spec: string;
3315
3404
  deps: string[];
3316
3405
  tools?: string[] | undefined;
@@ -3325,16 +3414,14 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3325
3414
  query: string;
3326
3415
  } | undefined;
3327
3416
  credentialFlow?: {
3328
- stage: "generic" | "finalize";
3417
+ stage: "finalize" | "generic";
3329
3418
  } | undefined;
3330
3419
  setupRequests?: {
3331
3420
  node: {
3332
- type: string;
3333
- id: string;
3334
3421
  name: string;
3422
+ type: string;
3335
3423
  typeVersion: number;
3336
3424
  parameters: Record<string, unknown>;
3337
- position: [number, number];
3338
3425
  credentials?: Record<string, {
3339
3426
  id: string;
3340
3427
  name: string;
@@ -3343,13 +3430,15 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3343
3430
  name: string;
3344
3431
  __aiGatewayManaged: true;
3345
3432
  }> | undefined;
3433
+ position: [number, number];
3434
+ id: string;
3346
3435
  };
3347
- isTrigger: boolean;
3348
3436
  credentialType?: string | undefined;
3349
3437
  existingCredentials?: {
3350
3438
  id: string;
3351
3439
  name: string;
3352
3440
  }[] | undefined;
3441
+ isTrigger: boolean;
3353
3442
  isFirstTrigger?: boolean | undefined;
3354
3443
  isTestable?: boolean | undefined;
3355
3444
  isAutoApplied?: boolean | undefined;
@@ -3358,85 +3447,86 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3358
3447
  message?: string | undefined;
3359
3448
  } | undefined;
3360
3449
  triggerTestResult?: {
3361
- status: "error" | "success" | "listening";
3450
+ status: "error" | "listening" | "success";
3362
3451
  error?: string | undefined;
3363
3452
  } | undefined;
3364
3453
  parameterIssues?: Record<string, string[]> | undefined;
3365
3454
  editableParameters?: {
3366
- type: string;
3367
3455
  name: string;
3368
3456
  displayName: string;
3457
+ type: string;
3458
+ required?: boolean | undefined;
3459
+ default?: unknown;
3369
3460
  options?: {
3370
- value: string | number | boolean;
3371
3461
  name: string;
3462
+ value: string | number | boolean;
3372
3463
  }[] | undefined;
3373
- required?: boolean | undefined;
3374
- default?: unknown;
3375
3464
  }[] | undefined;
3376
3465
  needsAction?: boolean | undefined;
3377
3466
  subnodeRootNode?: {
3378
- type: string;
3379
- id: string;
3380
3467
  name: string;
3468
+ type: string;
3381
3469
  typeVersion: number;
3470
+ id: string;
3382
3471
  } | undefined;
3383
3472
  }[] | undefined;
3473
+ workflowId?: string | undefined;
3384
3474
  resourceDecision?: {
3385
- options: ("denyOnce" | "allowOnce" | "allowForSession")[];
3386
- description: string;
3387
3475
  toolGroup: string;
3388
3476
  resource: string;
3477
+ description: string;
3478
+ options: ("allowForSession" | "allowOnce" | "denyOnce")[];
3389
3479
  } | undefined;
3390
3480
  channelConfig?: {
3391
3481
  integrationType: string;
3392
3482
  agentId: string;
3393
3483
  } | undefined;
3394
3484
  };
3485
+ }, {
3395
3486
  runId: string;
3487
+ agentId: string;
3396
3488
  userId?: string | undefined;
3397
3489
  responseId?: string | undefined;
3398
- }, {
3490
+ ts?: number | undefined;
3399
3491
  type: "confirmation-request";
3400
- agentId: string;
3401
3492
  payload: {
3402
- message: string;
3493
+ requestId: string;
3494
+ inputThreadId?: string | undefined;
3403
3495
  toolCallId: string;
3404
3496
  toolName: string;
3405
3497
  args: Record<string, unknown>;
3406
- requestId: string;
3407
- severity: "destructive" | "warning" | "info";
3408
- projectId?: string | undefined;
3409
- tasks?: {
3410
- tasks: {
3411
- status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
3412
- id: string;
3413
- description: string;
3414
- detail?: string | undefined;
3415
- }[];
3416
- } | undefined;
3417
- workflowId?: string | undefined;
3418
- questions?: {
3419
- type: "text" | "single" | "multi";
3420
- id: string;
3421
- question: string;
3422
- options?: string[] | undefined;
3423
- }[] | undefined;
3424
- inputThreadId?: string | undefined;
3498
+ severity: "destructive" | "info" | "warning";
3499
+ message: string;
3425
3500
  credentialRequests?: {
3426
- reason: string;
3427
3501
  credentialType: string;
3502
+ reason: string;
3428
3503
  existingCredentials: {
3429
3504
  id: string;
3430
3505
  name: string;
3431
3506
  }[];
3432
3507
  suggestedName?: string | undefined;
3433
3508
  }[] | undefined;
3434
- inputType?: "text" | "approval" | "questions" | "plan-review" | "resource-decision" | "continue" | undefined;
3509
+ projectId?: string | undefined;
3510
+ inputType?: "approval" | "continue" | "plan-review" | "questions" | "resource-decision" | "text" | undefined;
3511
+ questions?: {
3512
+ id: string;
3513
+ question: string;
3514
+ type: "multi" | "single" | "text";
3515
+ options?: string[] | undefined;
3516
+ }[] | undefined;
3435
3517
  introMessage?: string | undefined;
3518
+ tasks?: {
3519
+ tasks: {
3520
+ id: string;
3521
+ description: string;
3522
+ detail?: string | undefined;
3523
+ status: "cancelled" | "done" | "failed" | "in_progress" | "todo";
3524
+ }[];
3525
+ } | undefined;
3436
3526
  planItems?: {
3437
3527
  id: string;
3438
- kind: string;
3439
3528
  title: string;
3529
+ kind: string;
3440
3530
  spec: string;
3441
3531
  deps: string[];
3442
3532
  tools?: string[] | undefined;
@@ -3451,16 +3541,14 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3451
3541
  query: string;
3452
3542
  } | undefined;
3453
3543
  credentialFlow?: {
3454
- stage: "generic" | "finalize";
3544
+ stage: "finalize" | "generic";
3455
3545
  } | undefined;
3456
3546
  setupRequests?: {
3457
3547
  node: {
3458
- type: string;
3459
- id: string;
3460
3548
  name: string;
3549
+ type: string;
3461
3550
  typeVersion: number;
3462
3551
  parameters: Record<string, unknown>;
3463
- position: [number, number];
3464
3552
  credentials?: Record<string, {
3465
3553
  id: string;
3466
3554
  name: string;
@@ -3469,13 +3557,15 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3469
3557
  name: string;
3470
3558
  __aiGatewayManaged: true;
3471
3559
  }> | undefined;
3560
+ position: [number, number];
3561
+ id: string;
3472
3562
  };
3473
- isTrigger: boolean;
3474
3563
  credentialType?: string | undefined;
3475
3564
  existingCredentials?: {
3476
3565
  id: string;
3477
3566
  name: string;
3478
3567
  }[] | undefined;
3568
+ isTrigger: boolean;
3479
3569
  isFirstTrigger?: boolean | undefined;
3480
3570
  isTestable?: boolean | undefined;
3481
3571
  isAutoApplied?: boolean | undefined;
@@ -3484,44 +3574,48 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3484
3574
  message?: string | undefined;
3485
3575
  } | undefined;
3486
3576
  triggerTestResult?: {
3487
- status: "error" | "success" | "listening";
3577
+ status: "error" | "listening" | "success";
3488
3578
  error?: string | undefined;
3489
3579
  } | undefined;
3490
3580
  parameterIssues?: Record<string, string[]> | undefined;
3491
3581
  editableParameters?: {
3492
- type: string;
3493
3582
  name: string;
3494
3583
  displayName: string;
3584
+ type: string;
3585
+ required?: boolean | undefined;
3586
+ default?: unknown;
3495
3587
  options?: {
3496
- value: string | number | boolean;
3497
3588
  name: string;
3589
+ value: string | number | boolean;
3498
3590
  }[] | undefined;
3499
- required?: boolean | undefined;
3500
- default?: unknown;
3501
3591
  }[] | undefined;
3502
3592
  needsAction?: boolean | undefined;
3503
3593
  subnodeRootNode?: {
3504
- type: string;
3505
- id: string;
3506
3594
  name: string;
3595
+ type: string;
3507
3596
  typeVersion: number;
3597
+ id: string;
3508
3598
  } | undefined;
3509
3599
  }[] | undefined;
3600
+ workflowId?: string | undefined;
3510
3601
  resourceDecision?: {
3511
- options: ("denyOnce" | "allowOnce" | "allowForSession")[];
3512
- description: string;
3513
3602
  toolGroup: string;
3514
3603
  resource: string;
3604
+ description: string;
3605
+ options: ("allowForSession" | "allowOnce" | "denyOnce")[];
3515
3606
  } | undefined;
3516
3607
  channelConfig?: {
3517
3608
  integrationType: string;
3518
3609
  agentId: string;
3519
3610
  } | undefined;
3520
- };
3521
- runId: string;
3522
- userId?: string | undefined;
3523
- responseId?: string | undefined;
3611
+ };
3524
3612
  }>, z.ZodObject<{
3613
+ runId: z.ZodString;
3614
+ agentId: z.ZodString;
3615
+ userId: z.ZodOptional<z.ZodString>;
3616
+ responseId: z.ZodOptional<z.ZodString>;
3617
+ ts: z.ZodOptional<z.ZodNumber>;
3618
+ type: z.ZodLiteral<"tasks-update">;
3525
3619
  payload: z.ZodObject<{
3526
3620
  tasks: z.ZodObject<{
3527
3621
  tasks: z.ZodArray<z.ZodObject<{
@@ -3530,29 +3624,29 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3530
3624
  detail: z.ZodOptional<z.ZodString>;
3531
3625
  status: z.ZodEnum<["todo", "in_progress", "done", "failed", "cancelled"]>;
3532
3626
  }, "strip", z.ZodTypeAny, {
3533
- status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
3534
3627
  id: string;
3535
3628
  description: string;
3536
3629
  detail?: string | undefined;
3630
+ status: "cancelled" | "done" | "failed" | "in_progress" | "todo";
3537
3631
  }, {
3538
- status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
3539
3632
  id: string;
3540
3633
  description: string;
3541
3634
  detail?: string | undefined;
3635
+ status: "cancelled" | "done" | "failed" | "in_progress" | "todo";
3542
3636
  }>, "many">;
3543
3637
  }, "strip", z.ZodTypeAny, {
3544
3638
  tasks: {
3545
- status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
3546
3639
  id: string;
3547
3640
  description: string;
3548
3641
  detail?: string | undefined;
3642
+ status: "cancelled" | "done" | "failed" | "in_progress" | "todo";
3549
3643
  }[];
3550
3644
  }, {
3551
3645
  tasks: {
3552
- status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
3553
3646
  id: string;
3554
3647
  description: string;
3555
3648
  detail?: string | undefined;
3649
+ status: "cancelled" | "done" | "failed" | "in_progress" | "todo";
3556
3650
  }[];
3557
3651
  }>;
3558
3652
  planItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -3566,8 +3660,8 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3566
3660
  isSupportingWorkflow: z.ZodOptional<z.ZodBoolean>;
3567
3661
  }, "strip", z.ZodTypeAny, {
3568
3662
  id: string;
3569
- kind: string;
3570
3663
  title: string;
3664
+ kind: string;
3571
3665
  spec: string;
3572
3666
  deps: string[];
3573
3667
  tools?: string[] | undefined;
@@ -3575,8 +3669,8 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3575
3669
  isSupportingWorkflow?: boolean | undefined;
3576
3670
  }, {
3577
3671
  id: string;
3578
- kind: string;
3579
3672
  title: string;
3673
+ kind: string;
3580
3674
  spec: string;
3581
3675
  deps: string[];
3582
3676
  tools?: string[] | undefined;
@@ -3586,16 +3680,16 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3586
3680
  }, "strip", z.ZodTypeAny, {
3587
3681
  tasks: {
3588
3682
  tasks: {
3589
- status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
3590
3683
  id: string;
3591
3684
  description: string;
3592
3685
  detail?: string | undefined;
3686
+ status: "cancelled" | "done" | "failed" | "in_progress" | "todo";
3593
3687
  }[];
3594
3688
  };
3595
3689
  planItems?: {
3596
3690
  id: string;
3597
- kind: string;
3598
3691
  title: string;
3692
+ kind: string;
3599
3693
  spec: string;
3600
3694
  deps: string[];
3601
3695
  tools?: string[] | undefined;
@@ -3605,16 +3699,16 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3605
3699
  }, {
3606
3700
  tasks: {
3607
3701
  tasks: {
3608
- status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
3609
3702
  id: string;
3610
3703
  description: string;
3611
3704
  detail?: string | undefined;
3705
+ status: "cancelled" | "done" | "failed" | "in_progress" | "todo";
3612
3706
  }[];
3613
3707
  };
3614
3708
  planItems?: {
3615
3709
  id: string;
3616
- kind: string;
3617
3710
  title: string;
3711
+ kind: string;
3618
3712
  spec: string;
3619
3713
  deps: string[];
3620
3714
  tools?: string[] | undefined;
@@ -3622,27 +3716,26 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3622
3716
  isSupportingWorkflow?: boolean | undefined;
3623
3717
  }[] | undefined;
3624
3718
  }>;
3625
- runId: z.ZodString;
3626
- agentId: z.ZodString;
3627
- userId: z.ZodOptional<z.ZodString>;
3628
- responseId: z.ZodOptional<z.ZodString>;
3629
- type: z.ZodLiteral<"tasks-update">;
3630
3719
  }, "strip", z.ZodTypeAny, {
3631
- type: "tasks-update";
3720
+ runId: string;
3632
3721
  agentId: string;
3722
+ userId?: string | undefined;
3723
+ responseId?: string | undefined;
3724
+ ts?: number | undefined;
3725
+ type: "tasks-update";
3633
3726
  payload: {
3634
3727
  tasks: {
3635
3728
  tasks: {
3636
- status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
3637
3729
  id: string;
3638
3730
  description: string;
3639
3731
  detail?: string | undefined;
3732
+ status: "cancelled" | "done" | "failed" | "in_progress" | "todo";
3640
3733
  }[];
3641
3734
  };
3642
3735
  planItems?: {
3643
3736
  id: string;
3644
- kind: string;
3645
3737
  title: string;
3738
+ kind: string;
3646
3739
  spec: string;
3647
3740
  deps: string[];
3648
3741
  tools?: string[] | undefined;
@@ -3650,25 +3743,26 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3650
3743
  isSupportingWorkflow?: boolean | undefined;
3651
3744
  }[] | undefined;
3652
3745
  };
3746
+ }, {
3653
3747
  runId: string;
3748
+ agentId: string;
3654
3749
  userId?: string | undefined;
3655
3750
  responseId?: string | undefined;
3656
- }, {
3751
+ ts?: number | undefined;
3657
3752
  type: "tasks-update";
3658
- agentId: string;
3659
3753
  payload: {
3660
3754
  tasks: {
3661
3755
  tasks: {
3662
- status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
3663
3756
  id: string;
3664
3757
  description: string;
3665
3758
  detail?: string | undefined;
3759
+ status: "cancelled" | "done" | "failed" | "in_progress" | "todo";
3666
3760
  }[];
3667
3761
  };
3668
3762
  planItems?: {
3669
3763
  id: string;
3670
- kind: string;
3671
3764
  title: string;
3765
+ kind: string;
3672
3766
  spec: string;
3673
3767
  deps: string[];
3674
3768
  tools?: string[] | undefined;
@@ -3676,10 +3770,13 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3676
3770
  isSupportingWorkflow?: boolean | undefined;
3677
3771
  }[] | undefined;
3678
3772
  };
3679
- runId: string;
3680
- userId?: string | undefined;
3681
- responseId?: string | undefined;
3682
3773
  }>, z.ZodObject<{
3774
+ runId: z.ZodString;
3775
+ agentId: z.ZodString;
3776
+ userId: z.ZodOptional<z.ZodString>;
3777
+ responseId: z.ZodOptional<z.ZodString>;
3778
+ ts: z.ZodOptional<z.ZodNumber>;
3779
+ type: z.ZodLiteral<"status">;
3683
3780
  payload: z.ZodObject<{
3684
3781
  message: z.ZodString;
3685
3782
  }, "strip", z.ZodTypeAny, {
@@ -3687,30 +3784,33 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3687
3784
  }, {
3688
3785
  message: string;
3689
3786
  }>;
3690
- runId: z.ZodString;
3691
- agentId: z.ZodString;
3692
- userId: z.ZodOptional<z.ZodString>;
3693
- responseId: z.ZodOptional<z.ZodString>;
3694
- type: z.ZodLiteral<"status">;
3695
3787
  }, "strip", z.ZodTypeAny, {
3696
- type: "status";
3788
+ runId: string;
3697
3789
  agentId: string;
3790
+ userId?: string | undefined;
3791
+ responseId?: string | undefined;
3792
+ ts?: number | undefined;
3793
+ type: "status";
3698
3794
  payload: {
3699
3795
  message: string;
3700
3796
  };
3797
+ }, {
3701
3798
  runId: string;
3799
+ agentId: string;
3702
3800
  userId?: string | undefined;
3703
3801
  responseId?: string | undefined;
3704
- }, {
3802
+ ts?: number | undefined;
3705
3803
  type: "status";
3706
- agentId: string;
3707
3804
  payload: {
3708
3805
  message: string;
3709
3806
  };
3710
- runId: string;
3711
- userId?: string | undefined;
3712
- responseId?: string | undefined;
3713
3807
  }>, z.ZodObject<{
3808
+ runId: z.ZodString;
3809
+ agentId: z.ZodString;
3810
+ userId: z.ZodOptional<z.ZodString>;
3811
+ responseId: z.ZodOptional<z.ZodString>;
3812
+ ts: z.ZodOptional<z.ZodNumber>;
3813
+ type: z.ZodLiteral<"error">;
3714
3814
  payload: z.ZodObject<{
3715
3815
  content: z.ZodString;
3716
3816
  statusCode: z.ZodOptional<z.ZodNumber>;
@@ -3719,49 +3819,52 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3719
3819
  technicalDetails: z.ZodOptional<z.ZodString>;
3720
3820
  }, "strip", z.ZodTypeAny, {
3721
3821
  content: string;
3722
- code?: string | undefined;
3723
3822
  statusCode?: number | undefined;
3823
+ code?: string | undefined;
3724
3824
  provider?: string | undefined;
3725
3825
  technicalDetails?: string | undefined;
3726
3826
  }, {
3727
3827
  content: string;
3728
- code?: string | undefined;
3729
3828
  statusCode?: number | undefined;
3829
+ code?: string | undefined;
3730
3830
  provider?: string | undefined;
3731
3831
  technicalDetails?: string | undefined;
3732
3832
  }>;
3733
- runId: z.ZodString;
3734
- agentId: z.ZodString;
3735
- userId: z.ZodOptional<z.ZodString>;
3736
- responseId: z.ZodOptional<z.ZodString>;
3737
- type: z.ZodLiteral<"error">;
3738
3833
  }, "strip", z.ZodTypeAny, {
3739
- type: "error";
3834
+ runId: string;
3740
3835
  agentId: string;
3836
+ userId?: string | undefined;
3837
+ responseId?: string | undefined;
3838
+ ts?: number | undefined;
3839
+ type: "error";
3741
3840
  payload: {
3742
3841
  content: string;
3743
- code?: string | undefined;
3744
3842
  statusCode?: number | undefined;
3843
+ code?: string | undefined;
3745
3844
  provider?: string | undefined;
3746
3845
  technicalDetails?: string | undefined;
3747
3846
  };
3847
+ }, {
3748
3848
  runId: string;
3849
+ agentId: string;
3749
3850
  userId?: string | undefined;
3750
3851
  responseId?: string | undefined;
3751
- }, {
3852
+ ts?: number | undefined;
3752
3853
  type: "error";
3753
- agentId: string;
3754
3854
  payload: {
3755
3855
  content: string;
3756
- code?: string | undefined;
3757
3856
  statusCode?: number | undefined;
3857
+ code?: string | undefined;
3758
3858
  provider?: string | undefined;
3759
3859
  technicalDetails?: string | undefined;
3760
3860
  };
3761
- runId: string;
3762
- userId?: string | undefined;
3763
- responseId?: string | undefined;
3764
3861
  }>, z.ZodObject<{
3862
+ runId: z.ZodString;
3863
+ agentId: z.ZodString;
3864
+ userId: z.ZodOptional<z.ZodString>;
3865
+ responseId: z.ZodOptional<z.ZodString>;
3866
+ ts: z.ZodOptional<z.ZodNumber>;
3867
+ type: z.ZodLiteral<"filesystem-request">;
3765
3868
  payload: z.ZodObject<{
3766
3869
  requestId: z.ZodString;
3767
3870
  toolCall: z.ZodObject<{
@@ -3787,14 +3890,13 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3787
3890
  arguments: Record<string, unknown>;
3788
3891
  };
3789
3892
  }>;
3790
- runId: z.ZodString;
3791
- agentId: z.ZodString;
3792
- userId: z.ZodOptional<z.ZodString>;
3793
- responseId: z.ZodOptional<z.ZodString>;
3794
- type: z.ZodLiteral<"filesystem-request">;
3795
3893
  }, "strip", z.ZodTypeAny, {
3796
- type: "filesystem-request";
3894
+ runId: string;
3797
3895
  agentId: string;
3896
+ userId?: string | undefined;
3897
+ responseId?: string | undefined;
3898
+ ts?: number | undefined;
3899
+ type: "filesystem-request";
3798
3900
  payload: {
3799
3901
  requestId: string;
3800
3902
  toolCall: {
@@ -3802,12 +3904,13 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3802
3904
  arguments: Record<string, unknown>;
3803
3905
  };
3804
3906
  };
3907
+ }, {
3805
3908
  runId: string;
3909
+ agentId: string;
3806
3910
  userId?: string | undefined;
3807
3911
  responseId?: string | undefined;
3808
- }, {
3912
+ ts?: number | undefined;
3809
3913
  type: "filesystem-request";
3810
- agentId: string;
3811
3914
  payload: {
3812
3915
  requestId: string;
3813
3916
  toolCall: {
@@ -3815,10 +3918,13 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3815
3918
  arguments: Record<string, unknown>;
3816
3919
  };
3817
3920
  };
3818
- runId: string;
3819
- userId?: string | undefined;
3820
- responseId?: string | undefined;
3821
3921
  }>, z.ZodObject<{
3922
+ runId: z.ZodString;
3923
+ agentId: z.ZodString;
3924
+ userId: z.ZodOptional<z.ZodString>;
3925
+ responseId: z.ZodOptional<z.ZodString>;
3926
+ ts: z.ZodOptional<z.ZodNumber>;
3927
+ type: z.ZodLiteral<"thread-title-updated">;
3822
3928
  payload: z.ZodObject<{
3823
3929
  title: z.ZodString;
3824
3930
  }, "strip", z.ZodTypeAny, {
@@ -3826,29 +3932,26 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3826
3932
  }, {
3827
3933
  title: string;
3828
3934
  }>;
3829
- runId: z.ZodString;
3830
- agentId: z.ZodString;
3831
- userId: z.ZodOptional<z.ZodString>;
3832
- responseId: z.ZodOptional<z.ZodString>;
3833
- type: z.ZodLiteral<"thread-title-updated">;
3834
3935
  }, "strip", z.ZodTypeAny, {
3835
- type: "thread-title-updated";
3936
+ runId: string;
3836
3937
  agentId: string;
3938
+ userId?: string | undefined;
3939
+ responseId?: string | undefined;
3940
+ ts?: number | undefined;
3941
+ type: "thread-title-updated";
3837
3942
  payload: {
3838
3943
  title: string;
3839
3944
  };
3945
+ }, {
3840
3946
  runId: string;
3947
+ agentId: string;
3841
3948
  userId?: string | undefined;
3842
3949
  responseId?: string | undefined;
3843
- }, {
3950
+ ts?: number | undefined;
3844
3951
  type: "thread-title-updated";
3845
- agentId: string;
3846
3952
  payload: {
3847
3953
  title: string;
3848
3954
  };
3849
- runId: string;
3850
- userId?: string | undefined;
3851
- responseId?: string | undefined;
3852
3955
  }>]>;
3853
3956
  export type InstanceAiEvent = z.infer<typeof instanceAiEventSchema>;
3854
3957
  export type InstanceAiRunStartEvent = Extract<InstanceAiEvent, {
@@ -3869,6 +3972,9 @@ export type InstanceAiTextDeltaEvent = Extract<InstanceAiEvent, {
3869
3972
  export type InstanceAiReasoningDeltaEvent = Extract<InstanceAiEvent, {
3870
3973
  type: 'reasoning-delta';
3871
3974
  }>;
3975
+ export type InstanceAiToolInputStartEvent = Extract<InstanceAiEvent, {
3976
+ type: 'tool-input-start';
3977
+ }>;
3872
3978
  export type InstanceAiToolCallEvent = Extract<InstanceAiEvent, {
3873
3979
  type: 'tool-call';
3874
3980
  }>;
@@ -3931,6 +4037,55 @@ export declare const instanceAiWorkflowAttachmentSchema: z.ZodObject<{
3931
4037
  executionId?: string | undefined;
3932
4038
  }>;
3933
4039
  export type InstanceAiWorkflowAttachment = z.infer<typeof instanceAiWorkflowAttachmentSchema>;
4040
+ export declare const instanceAiAgentAttachmentSchema: z.ZodObject<{
4041
+ type: z.ZodLiteral<"agent">;
4042
+ id: z.ZodString;
4043
+ name: z.ZodOptional<z.ZodString>;
4044
+ projectId: z.ZodString;
4045
+ }, "strip", z.ZodTypeAny, {
4046
+ type: "agent";
4047
+ id: string;
4048
+ name?: string | undefined;
4049
+ projectId: string;
4050
+ }, {
4051
+ type: "agent";
4052
+ id: string;
4053
+ name?: string | undefined;
4054
+ projectId: string;
4055
+ }>;
4056
+ export type InstanceAiAgentAttachment = z.infer<typeof instanceAiAgentAttachmentSchema>;
4057
+ export declare const instanceAiResourceAttachmentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4058
+ type: z.ZodLiteral<"workflow">;
4059
+ id: z.ZodString;
4060
+ name: z.ZodOptional<z.ZodString>;
4061
+ executionId: z.ZodOptional<z.ZodString>;
4062
+ }, "strip", z.ZodTypeAny, {
4063
+ type: "workflow";
4064
+ id: string;
4065
+ name?: string | undefined;
4066
+ executionId?: string | undefined;
4067
+ }, {
4068
+ type: "workflow";
4069
+ id: string;
4070
+ name?: string | undefined;
4071
+ executionId?: string | undefined;
4072
+ }>, z.ZodObject<{
4073
+ type: z.ZodLiteral<"agent">;
4074
+ id: z.ZodString;
4075
+ name: z.ZodOptional<z.ZodString>;
4076
+ projectId: z.ZodString;
4077
+ }, "strip", z.ZodTypeAny, {
4078
+ type: "agent";
4079
+ id: string;
4080
+ name?: string | undefined;
4081
+ projectId: string;
4082
+ }, {
4083
+ type: "agent";
4084
+ id: string;
4085
+ name?: string | undefined;
4086
+ projectId: string;
4087
+ }>]>;
4088
+ export type InstanceAiResourceAttachment = z.infer<typeof instanceAiResourceAttachmentSchema>;
3934
4089
  export declare const instanceAiAttachmentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3935
4090
  type: z.ZodLiteral<"file">;
3936
4091
  data: z.ZodString;
@@ -3961,6 +4116,21 @@ export declare const instanceAiAttachmentSchema: z.ZodDiscriminatedUnion<"type",
3961
4116
  id: string;
3962
4117
  name?: string | undefined;
3963
4118
  executionId?: string | undefined;
4119
+ }>, z.ZodObject<{
4120
+ type: z.ZodLiteral<"agent">;
4121
+ id: z.ZodString;
4122
+ name: z.ZodOptional<z.ZodString>;
4123
+ projectId: z.ZodString;
4124
+ }, "strip", z.ZodTypeAny, {
4125
+ type: "agent";
4126
+ id: string;
4127
+ name?: string | undefined;
4128
+ projectId: string;
4129
+ }, {
4130
+ type: "agent";
4131
+ id: string;
4132
+ name?: string | undefined;
4133
+ projectId: string;
3964
4134
  }>]>;
3965
4135
  export type InstanceAiAttachment = z.infer<typeof instanceAiAttachmentSchema>;
3966
4136
  export declare const instanceAiCredentialHandoffContextSchema: z.ZodObject<{
@@ -3991,6 +4161,7 @@ export declare const instanceAiCredentialHandoffContextSchema: z.ZodObject<{
3991
4161
  oauthRedirectUrl?: string | undefined;
3992
4162
  }>;
3993
4163
  }, "strip", z.ZodTypeAny, {
4164
+ source: "credential-modal";
3994
4165
  credential: {
3995
4166
  credentialType: string;
3996
4167
  displayName: string;
@@ -4000,8 +4171,8 @@ export declare const instanceAiCredentialHandoffContextSchema: z.ZodObject<{
4000
4171
  documentationUrl?: string | undefined;
4001
4172
  oauthRedirectUrl?: string | undefined;
4002
4173
  };
4003
- source: "credential-modal";
4004
4174
  }, {
4175
+ source: "credential-modal";
4005
4176
  credential: {
4006
4177
  credentialType: string;
4007
4178
  displayName: string;
@@ -4011,9 +4182,34 @@ export declare const instanceAiCredentialHandoffContextSchema: z.ZodObject<{
4011
4182
  documentationUrl?: string | undefined;
4012
4183
  oauthRedirectUrl?: string | undefined;
4013
4184
  };
4014
- source: "credential-modal";
4015
4185
  }>;
4016
4186
  export type InstanceAiCredentialHandoffContext = z.infer<typeof instanceAiCredentialHandoffContextSchema>;
4187
+ export declare const instanceAiAgentPreviewHandoffContextSchema: z.ZodObject<{
4188
+ source: z.ZodLiteral<"agent-preview">;
4189
+ agentId: z.ZodString;
4190
+ threadId: z.ZodString;
4191
+ executionId: z.ZodOptional<z.ZodString>;
4192
+ agentName: z.ZodOptional<z.ZodString>;
4193
+ agentIcon: z.ZodOptional<z.ZodString>;
4194
+ sessionTitle: z.ZodOptional<z.ZodString>;
4195
+ }, "strip", z.ZodTypeAny, {
4196
+ source: "agent-preview";
4197
+ agentId: string;
4198
+ threadId: string;
4199
+ executionId?: string | undefined;
4200
+ agentName?: string | undefined;
4201
+ agentIcon?: string | undefined;
4202
+ sessionTitle?: string | undefined;
4203
+ }, {
4204
+ source: "agent-preview";
4205
+ agentId: string;
4206
+ threadId: string;
4207
+ executionId?: string | undefined;
4208
+ agentName?: string | undefined;
4209
+ agentIcon?: string | undefined;
4210
+ sessionTitle?: string | undefined;
4211
+ }>;
4212
+ export type InstanceAiAgentPreviewHandoffContext = z.infer<typeof instanceAiAgentPreviewHandoffContextSchema>;
4017
4213
  export declare const instanceAiHandoffContextSchema: z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
4018
4214
  source: z.ZodLiteral<"credential-modal">;
4019
4215
  credential: z.ZodObject<{
@@ -4042,6 +4238,7 @@ export declare const instanceAiHandoffContextSchema: z.ZodDiscriminatedUnion<"so
4042
4238
  oauthRedirectUrl?: string | undefined;
4043
4239
  }>;
4044
4240
  }, "strip", z.ZodTypeAny, {
4241
+ source: "credential-modal";
4045
4242
  credential: {
4046
4243
  credentialType: string;
4047
4244
  displayName: string;
@@ -4051,8 +4248,8 @@ export declare const instanceAiHandoffContextSchema: z.ZodDiscriminatedUnion<"so
4051
4248
  documentationUrl?: string | undefined;
4052
4249
  oauthRedirectUrl?: string | undefined;
4053
4250
  };
4054
- source: "credential-modal";
4055
4251
  }, {
4252
+ source: "credential-modal";
4056
4253
  credential: {
4057
4254
  credentialType: string;
4058
4255
  displayName: string;
@@ -4062,12 +4259,34 @@ export declare const instanceAiHandoffContextSchema: z.ZodDiscriminatedUnion<"so
4062
4259
  documentationUrl?: string | undefined;
4063
4260
  oauthRedirectUrl?: string | undefined;
4064
4261
  };
4065
- source: "credential-modal";
4262
+ }>, z.ZodObject<{
4263
+ source: z.ZodLiteral<"agent-preview">;
4264
+ agentId: z.ZodString;
4265
+ threadId: z.ZodString;
4266
+ executionId: z.ZodOptional<z.ZodString>;
4267
+ agentName: z.ZodOptional<z.ZodString>;
4268
+ agentIcon: z.ZodOptional<z.ZodString>;
4269
+ sessionTitle: z.ZodOptional<z.ZodString>;
4270
+ }, "strip", z.ZodTypeAny, {
4271
+ source: "agent-preview";
4272
+ agentId: string;
4273
+ threadId: string;
4274
+ executionId?: string | undefined;
4275
+ agentName?: string | undefined;
4276
+ agentIcon?: string | undefined;
4277
+ sessionTitle?: string | undefined;
4278
+ }, {
4279
+ source: "agent-preview";
4280
+ agentId: string;
4281
+ threadId: string;
4282
+ executionId?: string | undefined;
4283
+ agentName?: string | undefined;
4284
+ agentIcon?: string | undefined;
4285
+ sessionTitle?: string | undefined;
4066
4286
  }>]>;
4067
4287
  export type InstanceAiHandoffContext = z.infer<typeof instanceAiHandoffContextSchema>;
4068
4288
  declare const InstanceAiSendMessageRequest_base: import("../zod-class").ZodClass<{
4069
4289
  message: string;
4070
- timeZone?: string | undefined;
4071
4290
  attachments?: ({
4072
4291
  type: "file";
4073
4292
  data: string;
@@ -4078,8 +4297,14 @@ declare const InstanceAiSendMessageRequest_base: import("../zod-class").ZodClass
4078
4297
  id: string;
4079
4298
  name?: string | undefined;
4080
4299
  executionId?: string | undefined;
4300
+ } | {
4301
+ type: "agent";
4302
+ id: string;
4303
+ name?: string | undefined;
4304
+ projectId: string;
4081
4305
  })[] | undefined;
4082
4306
  context?: {
4307
+ source: "credential-modal";
4083
4308
  credential: {
4084
4309
  credentialType: string;
4085
4310
  displayName: string;
@@ -4089,8 +4314,16 @@ declare const InstanceAiSendMessageRequest_base: import("../zod-class").ZodClass
4089
4314
  documentationUrl?: string | undefined;
4090
4315
  oauthRedirectUrl?: string | undefined;
4091
4316
  };
4092
- source: "credential-modal";
4317
+ } | {
4318
+ source: "agent-preview";
4319
+ agentId: string;
4320
+ threadId: string;
4321
+ executionId?: string | undefined;
4322
+ agentName?: string | undefined;
4323
+ agentIcon?: string | undefined;
4324
+ sessionTitle?: string | undefined;
4093
4325
  } | undefined;
4326
+ timeZone?: string | undefined;
4094
4327
  pushRef?: string | undefined;
4095
4328
  }, {
4096
4329
  message: z.ZodDefault<z.ZodString>;
@@ -4124,6 +4357,21 @@ declare const InstanceAiSendMessageRequest_base: import("../zod-class").ZodClass
4124
4357
  id: string;
4125
4358
  name?: string | undefined;
4126
4359
  executionId?: string | undefined;
4360
+ }>, z.ZodObject<{
4361
+ type: z.ZodLiteral<"agent">;
4362
+ id: z.ZodString;
4363
+ name: z.ZodOptional<z.ZodString>;
4364
+ projectId: z.ZodString;
4365
+ }, "strip", z.ZodTypeAny, {
4366
+ type: "agent";
4367
+ id: string;
4368
+ name?: string | undefined;
4369
+ projectId: string;
4370
+ }, {
4371
+ type: "agent";
4372
+ id: string;
4373
+ name?: string | undefined;
4374
+ projectId: string;
4127
4375
  }>]>, "many">>;
4128
4376
  context: z.ZodOptional<z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
4129
4377
  source: z.ZodLiteral<"credential-modal">;
@@ -4153,6 +4401,7 @@ declare const InstanceAiSendMessageRequest_base: import("../zod-class").ZodClass
4153
4401
  oauthRedirectUrl?: string | undefined;
4154
4402
  }>;
4155
4403
  }, "strip", z.ZodTypeAny, {
4404
+ source: "credential-modal";
4156
4405
  credential: {
4157
4406
  credentialType: string;
4158
4407
  displayName: string;
@@ -4162,8 +4411,8 @@ declare const InstanceAiSendMessageRequest_base: import("../zod-class").ZodClass
4162
4411
  documentationUrl?: string | undefined;
4163
4412
  oauthRedirectUrl?: string | undefined;
4164
4413
  };
4165
- source: "credential-modal";
4166
4414
  }, {
4415
+ source: "credential-modal";
4167
4416
  credential: {
4168
4417
  credentialType: string;
4169
4418
  displayName: string;
@@ -4173,7 +4422,30 @@ declare const InstanceAiSendMessageRequest_base: import("../zod-class").ZodClass
4173
4422
  documentationUrl?: string | undefined;
4174
4423
  oauthRedirectUrl?: string | undefined;
4175
4424
  };
4176
- source: "credential-modal";
4425
+ }>, z.ZodObject<{
4426
+ source: z.ZodLiteral<"agent-preview">;
4427
+ agentId: z.ZodString;
4428
+ threadId: z.ZodString;
4429
+ executionId: z.ZodOptional<z.ZodString>;
4430
+ agentName: z.ZodOptional<z.ZodString>;
4431
+ agentIcon: z.ZodOptional<z.ZodString>;
4432
+ sessionTitle: z.ZodOptional<z.ZodString>;
4433
+ }, "strip", z.ZodTypeAny, {
4434
+ source: "agent-preview";
4435
+ agentId: string;
4436
+ threadId: string;
4437
+ executionId?: string | undefined;
4438
+ agentName?: string | undefined;
4439
+ agentIcon?: string | undefined;
4440
+ sessionTitle?: string | undefined;
4441
+ }, {
4442
+ source: "agent-preview";
4443
+ agentId: string;
4444
+ threadId: string;
4445
+ executionId?: string | undefined;
4446
+ agentName?: string | undefined;
4447
+ agentIcon?: string | undefined;
4448
+ sessionTitle?: string | undefined;
4177
4449
  }>]>>;
4178
4450
  timeZone: z.ZodCatch<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
4179
4451
  pushRef: z.ZodOptional<z.ZodString>;
@@ -4187,18 +4459,18 @@ declare const InstanceAiCorrectTaskRequest_base: import("../zod-class").ZodClass
4187
4459
  }>;
4188
4460
  export declare class InstanceAiCorrectTaskRequest extends InstanceAiCorrectTaskRequest_base {
4189
4461
  }
4190
- export declare const INSTANCE_AI_THREAD_SOURCES: readonly ["website-template", "template-view"];
4462
+ export declare const INSTANCE_AI_THREAD_SOURCES: readonly ['website-template', 'template-view'];
4191
4463
  export type InstanceAiThreadSource = (typeof INSTANCE_AI_THREAD_SOURCES)[number];
4192
4464
  export declare const INSTANCE_AI_THREAD_SOURCE_FALLBACK = "unknown";
4193
4465
  export type InstanceAiThreadSourcePersisted = InstanceAiThreadSource | typeof INSTANCE_AI_THREAD_SOURCE_FALLBACK;
4194
- export declare const INSTANCE_AI_THREAD_ORIGINS: readonly ["internal", "external"];
4466
+ export declare const INSTANCE_AI_THREAD_ORIGINS: readonly ['internal', 'external'];
4195
4467
  export type InstanceAiThreadOrigin = (typeof INSTANCE_AI_THREAD_ORIGINS)[number];
4196
4468
  export declare function normalizeInstanceAiThreadSource(value: string | undefined): InstanceAiThreadSourcePersisted;
4197
4469
  declare const InstanceAiEnsureThreadRequest_base: import("../zod-class").ZodClass<{
4470
+ threadId?: string | undefined;
4198
4471
  projectId: string;
4199
4472
  source?: string | undefined;
4200
- threadId?: string | undefined;
4201
- origin?: "internal" | "external" | undefined;
4473
+ origin?: "external" | "internal" | undefined;
4202
4474
  sourceContext?: Record<string, unknown> | undefined;
4203
4475
  }, {
4204
4476
  threadId: z.ZodOptional<z.ZodString>;
@@ -4227,7 +4499,7 @@ export declare class InstanceAiEventsQuery extends InstanceAiEventsQuery_base {
4227
4499
  declare const InstanceAiThreadMessagesQuery_base: import("../zod-class").ZodClass<{
4228
4500
  limit: number;
4229
4501
  page: number;
4230
- raw?: "true" | "false" | undefined;
4502
+ raw?: "false" | "true" | undefined;
4231
4503
  }, {
4232
4504
  limit: z.ZodDefault<z.ZodNumber>;
4233
4505
  page: z.ZodDefault<z.ZodNumber>;
@@ -4336,6 +4608,7 @@ export interface InstanceAiMessage {
4336
4608
  isStreaming: boolean;
4337
4609
  agentTree?: InstanceAiAgentNode;
4338
4610
  attachments?: InstanceAiAttachment[];
4611
+ context?: InstanceAiHandoffContext;
4339
4612
  }
4340
4613
  export interface InstanceAiThreadSummary {
4341
4614
  id: string;
@@ -4468,47 +4741,47 @@ declare const instanceAiPermissionsSchema: z.ZodObject<{
4468
4741
  restoreWorkflowVersion: z.ZodEnum<["require_approval", "always_allow", "blocked"]>;
4469
4742
  executeMcpTool: z.ZodEnum<["require_approval", "always_allow", "blocked"]>;
4470
4743
  }, "strip", z.ZodTypeAny, {
4471
- webSearch: "require_approval" | "always_allow" | "blocked";
4472
- createWorkflow: "require_approval" | "always_allow" | "blocked";
4473
- updateWorkflow: "require_approval" | "always_allow" | "blocked";
4474
- runWorkflow: "require_approval" | "always_allow" | "blocked";
4475
- publishWorkflow: "require_approval" | "always_allow" | "blocked";
4476
- deleteWorkflow: "require_approval" | "always_allow" | "blocked";
4477
- deleteCredential: "require_approval" | "always_allow" | "blocked";
4478
- createFolder: "require_approval" | "always_allow" | "blocked";
4479
- deleteFolder: "require_approval" | "always_allow" | "blocked";
4480
- moveWorkflowToFolder: "require_approval" | "always_allow" | "blocked";
4481
- tagWorkflow: "require_approval" | "always_allow" | "blocked";
4482
- createDataTable: "require_approval" | "always_allow" | "blocked";
4483
- deleteDataTable: "require_approval" | "always_allow" | "blocked";
4484
- mutateDataTableSchema: "require_approval" | "always_allow" | "blocked";
4485
- mutateDataTableRows: "require_approval" | "always_allow" | "blocked";
4486
- cleanupTestExecutions: "require_approval" | "always_allow" | "blocked";
4487
- readFilesystem: "require_approval" | "always_allow" | "blocked";
4488
- fetchUrl: "require_approval" | "always_allow" | "blocked";
4489
- restoreWorkflowVersion: "require_approval" | "always_allow" | "blocked";
4490
- executeMcpTool: "require_approval" | "always_allow" | "blocked";
4744
+ createWorkflow: "always_allow" | "blocked" | "require_approval";
4745
+ updateWorkflow: "always_allow" | "blocked" | "require_approval";
4746
+ runWorkflow: "always_allow" | "blocked" | "require_approval";
4747
+ publishWorkflow: "always_allow" | "blocked" | "require_approval";
4748
+ deleteWorkflow: "always_allow" | "blocked" | "require_approval";
4749
+ deleteCredential: "always_allow" | "blocked" | "require_approval";
4750
+ createFolder: "always_allow" | "blocked" | "require_approval";
4751
+ deleteFolder: "always_allow" | "blocked" | "require_approval";
4752
+ moveWorkflowToFolder: "always_allow" | "blocked" | "require_approval";
4753
+ tagWorkflow: "always_allow" | "blocked" | "require_approval";
4754
+ createDataTable: "always_allow" | "blocked" | "require_approval";
4755
+ deleteDataTable: "always_allow" | "blocked" | "require_approval";
4756
+ mutateDataTableSchema: "always_allow" | "blocked" | "require_approval";
4757
+ mutateDataTableRows: "always_allow" | "blocked" | "require_approval";
4758
+ cleanupTestExecutions: "always_allow" | "blocked" | "require_approval";
4759
+ readFilesystem: "always_allow" | "blocked" | "require_approval";
4760
+ fetchUrl: "always_allow" | "blocked" | "require_approval";
4761
+ webSearch: "always_allow" | "blocked" | "require_approval";
4762
+ restoreWorkflowVersion: "always_allow" | "blocked" | "require_approval";
4763
+ executeMcpTool: "always_allow" | "blocked" | "require_approval";
4491
4764
  }, {
4492
- webSearch: "require_approval" | "always_allow" | "blocked";
4493
- createWorkflow: "require_approval" | "always_allow" | "blocked";
4494
- updateWorkflow: "require_approval" | "always_allow" | "blocked";
4495
- runWorkflow: "require_approval" | "always_allow" | "blocked";
4496
- publishWorkflow: "require_approval" | "always_allow" | "blocked";
4497
- deleteWorkflow: "require_approval" | "always_allow" | "blocked";
4498
- deleteCredential: "require_approval" | "always_allow" | "blocked";
4499
- createFolder: "require_approval" | "always_allow" | "blocked";
4500
- deleteFolder: "require_approval" | "always_allow" | "blocked";
4501
- moveWorkflowToFolder: "require_approval" | "always_allow" | "blocked";
4502
- tagWorkflow: "require_approval" | "always_allow" | "blocked";
4503
- createDataTable: "require_approval" | "always_allow" | "blocked";
4504
- deleteDataTable: "require_approval" | "always_allow" | "blocked";
4505
- mutateDataTableSchema: "require_approval" | "always_allow" | "blocked";
4506
- mutateDataTableRows: "require_approval" | "always_allow" | "blocked";
4507
- cleanupTestExecutions: "require_approval" | "always_allow" | "blocked";
4508
- readFilesystem: "require_approval" | "always_allow" | "blocked";
4509
- fetchUrl: "require_approval" | "always_allow" | "blocked";
4510
- restoreWorkflowVersion: "require_approval" | "always_allow" | "blocked";
4511
- executeMcpTool: "require_approval" | "always_allow" | "blocked";
4765
+ createWorkflow: "always_allow" | "blocked" | "require_approval";
4766
+ updateWorkflow: "always_allow" | "blocked" | "require_approval";
4767
+ runWorkflow: "always_allow" | "blocked" | "require_approval";
4768
+ publishWorkflow: "always_allow" | "blocked" | "require_approval";
4769
+ deleteWorkflow: "always_allow" | "blocked" | "require_approval";
4770
+ deleteCredential: "always_allow" | "blocked" | "require_approval";
4771
+ createFolder: "always_allow" | "blocked" | "require_approval";
4772
+ deleteFolder: "always_allow" | "blocked" | "require_approval";
4773
+ moveWorkflowToFolder: "always_allow" | "blocked" | "require_approval";
4774
+ tagWorkflow: "always_allow" | "blocked" | "require_approval";
4775
+ createDataTable: "always_allow" | "blocked" | "require_approval";
4776
+ deleteDataTable: "always_allow" | "blocked" | "require_approval";
4777
+ mutateDataTableSchema: "always_allow" | "blocked" | "require_approval";
4778
+ mutateDataTableRows: "always_allow" | "blocked" | "require_approval";
4779
+ cleanupTestExecutions: "always_allow" | "blocked" | "require_approval";
4780
+ readFilesystem: "always_allow" | "blocked" | "require_approval";
4781
+ fetchUrl: "always_allow" | "blocked" | "require_approval";
4782
+ webSearch: "always_allow" | "blocked" | "require_approval";
4783
+ restoreWorkflowVersion: "always_allow" | "blocked" | "require_approval";
4784
+ executeMcpTool: "always_allow" | "blocked" | "require_approval";
4512
4785
  }>;
4513
4786
  export type InstanceAiPermissions = z.infer<typeof instanceAiPermissionsSchema>;
4514
4787
  export declare const DEFAULT_INSTANCE_AI_PERMISSIONS: InstanceAiPermissions;
@@ -4534,31 +4807,31 @@ export interface InstanceAiAdminSettingsResponse {
4534
4807
  declare const InstanceAiAdminSettingsUpdateRequest_base: import("../zod-class").ZodClass<{
4535
4808
  enabled?: boolean | undefined;
4536
4809
  permissions?: {
4537
- webSearch?: "require_approval" | "always_allow" | "blocked" | undefined;
4538
- createWorkflow?: "require_approval" | "always_allow" | "blocked" | undefined;
4539
- updateWorkflow?: "require_approval" | "always_allow" | "blocked" | undefined;
4540
- runWorkflow?: "require_approval" | "always_allow" | "blocked" | undefined;
4541
- publishWorkflow?: "require_approval" | "always_allow" | "blocked" | undefined;
4542
- deleteWorkflow?: "require_approval" | "always_allow" | "blocked" | undefined;
4543
- deleteCredential?: "require_approval" | "always_allow" | "blocked" | undefined;
4544
- createFolder?: "require_approval" | "always_allow" | "blocked" | undefined;
4545
- deleteFolder?: "require_approval" | "always_allow" | "blocked" | undefined;
4546
- moveWorkflowToFolder?: "require_approval" | "always_allow" | "blocked" | undefined;
4547
- tagWorkflow?: "require_approval" | "always_allow" | "blocked" | undefined;
4548
- createDataTable?: "require_approval" | "always_allow" | "blocked" | undefined;
4549
- deleteDataTable?: "require_approval" | "always_allow" | "blocked" | undefined;
4550
- mutateDataTableSchema?: "require_approval" | "always_allow" | "blocked" | undefined;
4551
- mutateDataTableRows?: "require_approval" | "always_allow" | "blocked" | undefined;
4552
- cleanupTestExecutions?: "require_approval" | "always_allow" | "blocked" | undefined;
4553
- readFilesystem?: "require_approval" | "always_allow" | "blocked" | undefined;
4554
- fetchUrl?: "require_approval" | "always_allow" | "blocked" | undefined;
4555
- restoreWorkflowVersion?: "require_approval" | "always_allow" | "blocked" | undefined;
4556
- executeMcpTool?: "require_approval" | "always_allow" | "blocked" | undefined;
4810
+ createWorkflow?: "always_allow" | "blocked" | "require_approval" | undefined;
4811
+ updateWorkflow?: "always_allow" | "blocked" | "require_approval" | undefined;
4812
+ runWorkflow?: "always_allow" | "blocked" | "require_approval" | undefined;
4813
+ publishWorkflow?: "always_allow" | "blocked" | "require_approval" | undefined;
4814
+ deleteWorkflow?: "always_allow" | "blocked" | "require_approval" | undefined;
4815
+ deleteCredential?: "always_allow" | "blocked" | "require_approval" | undefined;
4816
+ createFolder?: "always_allow" | "blocked" | "require_approval" | undefined;
4817
+ deleteFolder?: "always_allow" | "blocked" | "require_approval" | undefined;
4818
+ moveWorkflowToFolder?: "always_allow" | "blocked" | "require_approval" | undefined;
4819
+ tagWorkflow?: "always_allow" | "blocked" | "require_approval" | undefined;
4820
+ createDataTable?: "always_allow" | "blocked" | "require_approval" | undefined;
4821
+ deleteDataTable?: "always_allow" | "blocked" | "require_approval" | undefined;
4822
+ mutateDataTableSchema?: "always_allow" | "blocked" | "require_approval" | undefined;
4823
+ mutateDataTableRows?: "always_allow" | "blocked" | "require_approval" | undefined;
4824
+ cleanupTestExecutions?: "always_allow" | "blocked" | "require_approval" | undefined;
4825
+ readFilesystem?: "always_allow" | "blocked" | "require_approval" | undefined;
4826
+ fetchUrl?: "always_allow" | "blocked" | "require_approval" | undefined;
4827
+ webSearch?: "always_allow" | "blocked" | "require_approval" | undefined;
4828
+ restoreWorkflowVersion?: "always_allow" | "blocked" | "require_approval" | undefined;
4829
+ executeMcpTool?: "always_allow" | "blocked" | "require_approval" | undefined;
4557
4830
  } | undefined;
4558
4831
  mcpServers?: string | undefined;
4559
4832
  mcpAccessEnabled?: boolean | undefined;
4560
4833
  sandboxEnabled?: boolean | undefined;
4561
- sandboxProvider?: "n8n-sandbox" | "daytona" | undefined;
4834
+ sandboxProvider?: "daytona" | "n8n-sandbox" | undefined;
4562
4835
  sandboxImage?: string | undefined;
4563
4836
  sandboxTimeout?: number | undefined;
4564
4837
  daytonaCredentialId?: string | null | undefined;
@@ -4590,47 +4863,47 @@ declare const InstanceAiAdminSettingsUpdateRequest_base: import("../zod-class").
4590
4863
  restoreWorkflowVersion: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow", "blocked"]>>;
4591
4864
  executeMcpTool: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow", "blocked"]>>;
4592
4865
  }, "strip", z.ZodTypeAny, {
4593
- webSearch?: "require_approval" | "always_allow" | "blocked" | undefined;
4594
- createWorkflow?: "require_approval" | "always_allow" | "blocked" | undefined;
4595
- updateWorkflow?: "require_approval" | "always_allow" | "blocked" | undefined;
4596
- runWorkflow?: "require_approval" | "always_allow" | "blocked" | undefined;
4597
- publishWorkflow?: "require_approval" | "always_allow" | "blocked" | undefined;
4598
- deleteWorkflow?: "require_approval" | "always_allow" | "blocked" | undefined;
4599
- deleteCredential?: "require_approval" | "always_allow" | "blocked" | undefined;
4600
- createFolder?: "require_approval" | "always_allow" | "blocked" | undefined;
4601
- deleteFolder?: "require_approval" | "always_allow" | "blocked" | undefined;
4602
- moveWorkflowToFolder?: "require_approval" | "always_allow" | "blocked" | undefined;
4603
- tagWorkflow?: "require_approval" | "always_allow" | "blocked" | undefined;
4604
- createDataTable?: "require_approval" | "always_allow" | "blocked" | undefined;
4605
- deleteDataTable?: "require_approval" | "always_allow" | "blocked" | undefined;
4606
- mutateDataTableSchema?: "require_approval" | "always_allow" | "blocked" | undefined;
4607
- mutateDataTableRows?: "require_approval" | "always_allow" | "blocked" | undefined;
4608
- cleanupTestExecutions?: "require_approval" | "always_allow" | "blocked" | undefined;
4609
- readFilesystem?: "require_approval" | "always_allow" | "blocked" | undefined;
4610
- fetchUrl?: "require_approval" | "always_allow" | "blocked" | undefined;
4611
- restoreWorkflowVersion?: "require_approval" | "always_allow" | "blocked" | undefined;
4612
- executeMcpTool?: "require_approval" | "always_allow" | "blocked" | undefined;
4866
+ createWorkflow?: "always_allow" | "blocked" | "require_approval" | undefined;
4867
+ updateWorkflow?: "always_allow" | "blocked" | "require_approval" | undefined;
4868
+ runWorkflow?: "always_allow" | "blocked" | "require_approval" | undefined;
4869
+ publishWorkflow?: "always_allow" | "blocked" | "require_approval" | undefined;
4870
+ deleteWorkflow?: "always_allow" | "blocked" | "require_approval" | undefined;
4871
+ deleteCredential?: "always_allow" | "blocked" | "require_approval" | undefined;
4872
+ createFolder?: "always_allow" | "blocked" | "require_approval" | undefined;
4873
+ deleteFolder?: "always_allow" | "blocked" | "require_approval" | undefined;
4874
+ moveWorkflowToFolder?: "always_allow" | "blocked" | "require_approval" | undefined;
4875
+ tagWorkflow?: "always_allow" | "blocked" | "require_approval" | undefined;
4876
+ createDataTable?: "always_allow" | "blocked" | "require_approval" | undefined;
4877
+ deleteDataTable?: "always_allow" | "blocked" | "require_approval" | undefined;
4878
+ mutateDataTableSchema?: "always_allow" | "blocked" | "require_approval" | undefined;
4879
+ mutateDataTableRows?: "always_allow" | "blocked" | "require_approval" | undefined;
4880
+ cleanupTestExecutions?: "always_allow" | "blocked" | "require_approval" | undefined;
4881
+ readFilesystem?: "always_allow" | "blocked" | "require_approval" | undefined;
4882
+ fetchUrl?: "always_allow" | "blocked" | "require_approval" | undefined;
4883
+ webSearch?: "always_allow" | "blocked" | "require_approval" | undefined;
4884
+ restoreWorkflowVersion?: "always_allow" | "blocked" | "require_approval" | undefined;
4885
+ executeMcpTool?: "always_allow" | "blocked" | "require_approval" | undefined;
4613
4886
  }, {
4614
- webSearch?: "require_approval" | "always_allow" | "blocked" | undefined;
4615
- createWorkflow?: "require_approval" | "always_allow" | "blocked" | undefined;
4616
- updateWorkflow?: "require_approval" | "always_allow" | "blocked" | undefined;
4617
- runWorkflow?: "require_approval" | "always_allow" | "blocked" | undefined;
4618
- publishWorkflow?: "require_approval" | "always_allow" | "blocked" | undefined;
4619
- deleteWorkflow?: "require_approval" | "always_allow" | "blocked" | undefined;
4620
- deleteCredential?: "require_approval" | "always_allow" | "blocked" | undefined;
4621
- createFolder?: "require_approval" | "always_allow" | "blocked" | undefined;
4622
- deleteFolder?: "require_approval" | "always_allow" | "blocked" | undefined;
4623
- moveWorkflowToFolder?: "require_approval" | "always_allow" | "blocked" | undefined;
4624
- tagWorkflow?: "require_approval" | "always_allow" | "blocked" | undefined;
4625
- createDataTable?: "require_approval" | "always_allow" | "blocked" | undefined;
4626
- deleteDataTable?: "require_approval" | "always_allow" | "blocked" | undefined;
4627
- mutateDataTableSchema?: "require_approval" | "always_allow" | "blocked" | undefined;
4628
- mutateDataTableRows?: "require_approval" | "always_allow" | "blocked" | undefined;
4629
- cleanupTestExecutions?: "require_approval" | "always_allow" | "blocked" | undefined;
4630
- readFilesystem?: "require_approval" | "always_allow" | "blocked" | undefined;
4631
- fetchUrl?: "require_approval" | "always_allow" | "blocked" | undefined;
4632
- restoreWorkflowVersion?: "require_approval" | "always_allow" | "blocked" | undefined;
4633
- executeMcpTool?: "require_approval" | "always_allow" | "blocked" | undefined;
4887
+ createWorkflow?: "always_allow" | "blocked" | "require_approval" | undefined;
4888
+ updateWorkflow?: "always_allow" | "blocked" | "require_approval" | undefined;
4889
+ runWorkflow?: "always_allow" | "blocked" | "require_approval" | undefined;
4890
+ publishWorkflow?: "always_allow" | "blocked" | "require_approval" | undefined;
4891
+ deleteWorkflow?: "always_allow" | "blocked" | "require_approval" | undefined;
4892
+ deleteCredential?: "always_allow" | "blocked" | "require_approval" | undefined;
4893
+ createFolder?: "always_allow" | "blocked" | "require_approval" | undefined;
4894
+ deleteFolder?: "always_allow" | "blocked" | "require_approval" | undefined;
4895
+ moveWorkflowToFolder?: "always_allow" | "blocked" | "require_approval" | undefined;
4896
+ tagWorkflow?: "always_allow" | "blocked" | "require_approval" | undefined;
4897
+ createDataTable?: "always_allow" | "blocked" | "require_approval" | undefined;
4898
+ deleteDataTable?: "always_allow" | "blocked" | "require_approval" | undefined;
4899
+ mutateDataTableSchema?: "always_allow" | "blocked" | "require_approval" | undefined;
4900
+ mutateDataTableRows?: "always_allow" | "blocked" | "require_approval" | undefined;
4901
+ cleanupTestExecutions?: "always_allow" | "blocked" | "require_approval" | undefined;
4902
+ readFilesystem?: "always_allow" | "blocked" | "require_approval" | undefined;
4903
+ fetchUrl?: "always_allow" | "blocked" | "require_approval" | undefined;
4904
+ webSearch?: "always_allow" | "blocked" | "require_approval" | undefined;
4905
+ restoreWorkflowVersion?: "always_allow" | "blocked" | "require_approval" | undefined;
4906
+ executeMcpTool?: "always_allow" | "blocked" | "require_approval" | undefined;
4634
4907
  }>>;
4635
4908
  mcpServers: z.ZodOptional<z.ZodString>;
4636
4909
  mcpAccessEnabled: z.ZodOptional<z.ZodBoolean>;
@@ -4654,9 +4927,9 @@ export interface InstanceAiUserPreferencesResponse {
4654
4927
  localGatewayDisabled: boolean;
4655
4928
  }
4656
4929
  declare const InstanceAiUserPreferencesUpdateRequest_base: import("../zod-class").ZodClass<{
4657
- localGatewayDisabled?: boolean | undefined;
4658
4930
  credentialId?: string | null | undefined;
4659
4931
  modelName?: string | undefined;
4932
+ localGatewayDisabled?: boolean | undefined;
4660
4933
  }, {
4661
4934
  credentialId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4662
4935
  modelName: z.ZodOptional<z.ZodString>;
@@ -4725,6 +4998,8 @@ export interface InstanceAiEvalMockedCredential {
4725
4998
  credentialId?: string;
4726
4999
  }
4727
5000
  export declare const EVAL_VENDOR_SDK_INTERCEPTION_FLAG = "085_eval_vendor_sdk_interception";
5001
+ export declare const CONFIG_EVALUATIONS_FLAG = "088_config_evaluations";
5002
+ export declare const CONFIG_EVALUATIONS_ENABLED_VARIANT = "variant";
4728
5003
  export interface InstanceAiEvalRewrittenCredential {
4729
5004
  nodeName: string;
4730
5005
  credentialType: string;
@@ -4775,33 +5050,36 @@ declare const instanceAiEvalSeedWorkflowSchema: z.ZodObject<{
4775
5050
  connections: Record<string, unknown>;
4776
5051
  }>;
4777
5052
  export type InstanceAiEvalSeedWorkflow = z.infer<typeof instanceAiEvalSeedWorkflowSchema>;
4778
- declare const instanceAiEvalSeedDataTableSchema: z.ZodObject<{
5053
+ export declare const instanceAiEvalSeedDataTableSchema: z.ZodObject<{
4779
5054
  id: z.ZodString;
4780
5055
  name: z.ZodString;
4781
5056
  columns: z.ZodArray<z.ZodObject<{
4782
5057
  name: z.ZodString;
4783
5058
  type: z.ZodEnum<["string", "number", "boolean", "date"]>;
4784
5059
  }, "strip", z.ZodTypeAny, {
4785
- type: "string" | "number" | "boolean" | "date";
4786
5060
  name: string;
5061
+ type: "boolean" | "date" | "number" | "string";
4787
5062
  }, {
4788
- type: "string" | "number" | "boolean" | "date";
4789
5063
  name: string;
5064
+ type: "boolean" | "date" | "number" | "string";
4790
5065
  }>, "many">;
5066
+ rows: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, "many">>;
4791
5067
  }, "strip", z.ZodTypeAny, {
4792
5068
  id: string;
4793
5069
  name: string;
4794
5070
  columns: {
4795
- type: "string" | "number" | "boolean" | "date";
4796
5071
  name: string;
5072
+ type: "boolean" | "date" | "number" | "string";
4797
5073
  }[];
5074
+ rows?: Record<string, string | number | boolean | null>[] | undefined;
4798
5075
  }, {
4799
5076
  id: string;
4800
5077
  name: string;
4801
5078
  columns: {
4802
- type: "string" | "number" | "boolean" | "date";
4803
5079
  name: string;
5080
+ type: "boolean" | "date" | "number" | "string";
4804
5081
  }[];
5082
+ rows?: Record<string, string | number | boolean | null>[] | undefined;
4805
5083
  }>;
4806
5084
  export type InstanceAiEvalSeedDataTable = z.infer<typeof instanceAiEvalSeedDataTableSchema>;
4807
5085
  declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").ZodClass<{
@@ -4811,9 +5089,10 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
4811
5089
  id: string;
4812
5090
  name: string;
4813
5091
  columns: {
4814
- type: "string" | "number" | "boolean" | "date";
4815
5092
  name: string;
5093
+ type: "boolean" | "date" | "number" | "string";
4816
5094
  }[];
5095
+ rows?: Record<string, string | number | boolean | null>[] | undefined;
4817
5096
  }[] | undefined;
4818
5097
  workflows?: {
4819
5098
  id: string;
@@ -4821,6 +5100,7 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
4821
5100
  nodes: Record<string, unknown>[];
4822
5101
  connections: Record<string, unknown>;
4823
5102
  }[] | undefined;
5103
+ uniquifyNames?: boolean | undefined;
4824
5104
  }, {
4825
5105
  threadId: z.ZodString;
4826
5106
  messages: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
@@ -4831,26 +5111,29 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
4831
5111
  name: z.ZodString;
4832
5112
  type: z.ZodEnum<["string", "number", "boolean", "date"]>;
4833
5113
  }, "strip", z.ZodTypeAny, {
4834
- type: "string" | "number" | "boolean" | "date";
4835
5114
  name: string;
5115
+ type: "boolean" | "date" | "number" | "string";
4836
5116
  }, {
4837
- type: "string" | "number" | "boolean" | "date";
4838
5117
  name: string;
5118
+ type: "boolean" | "date" | "number" | "string";
4839
5119
  }>, "many">;
5120
+ rows: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, "many">>;
4840
5121
  }, "strip", z.ZodTypeAny, {
4841
5122
  id: string;
4842
5123
  name: string;
4843
5124
  columns: {
4844
- type: "string" | "number" | "boolean" | "date";
4845
5125
  name: string;
5126
+ type: "boolean" | "date" | "number" | "string";
4846
5127
  }[];
5128
+ rows?: Record<string, string | number | boolean | null>[] | undefined;
4847
5129
  }, {
4848
5130
  id: string;
4849
5131
  name: string;
4850
5132
  columns: {
4851
- type: "string" | "number" | "boolean" | "date";
4852
5133
  name: string;
5134
+ type: "boolean" | "date" | "number" | "string";
4853
5135
  }[];
5136
+ rows?: Record<string, string | number | boolean | null>[] | undefined;
4854
5137
  }>, "many">>;
4855
5138
  workflows: z.ZodOptional<z.ZodArray<z.ZodObject<{
4856
5139
  id: z.ZodString;
@@ -4868,7 +5151,19 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
4868
5151
  nodes: Record<string, unknown>[];
4869
5152
  connections: Record<string, unknown>;
4870
5153
  }>, "many">>;
5154
+ uniquifyNames: z.ZodOptional<z.ZodBoolean>;
4871
5155
  }>;
4872
5156
  export declare class InstanceAiEvalRestoreThreadRequest extends InstanceAiEvalRestoreThreadRequest_base {
4873
5157
  }
5158
+ declare const InstanceAiEvalSeedDataTableRowsRequest_base: import("../zod-class").ZodClass<{
5159
+ threadId: string;
5160
+ tableId: string;
5161
+ rows: Record<string, string | number | boolean | null>[];
5162
+ }, {
5163
+ threadId: z.ZodString;
5164
+ tableId: z.ZodString;
5165
+ rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, "many">;
5166
+ }>;
5167
+ export declare class InstanceAiEvalSeedDataTableRowsRequest extends InstanceAiEvalSeedDataTableRowsRequest_base {
5168
+ }
4874
5169
  export {};