@n8n/api-types 1.41.2 → 1.42.1

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 (205) hide show
  1. package/dist/agent-sse.d.ts +10 -0
  2. package/dist/agents/agent-config-lifecycle.d.ts +1 -0
  3. package/dist/agents/agent-config-lifecycle.js +1 -1
  4. package/dist/agents/agent-config-lifecycle.js.map +1 -1
  5. package/dist/agents/agent-integration.schema.d.ts +533 -1
  6. package/dist/agents/agent-integration.schema.js +71 -2
  7. package/dist/agents/agent-integration.schema.js.map +1 -1
  8. package/dist/agents/agent-json-config.schema.d.ts +1559 -112
  9. package/dist/agents/agent-json-config.schema.js +7 -13
  10. package/dist/agents/agent-json-config.schema.js.map +1 -1
  11. package/dist/agents/dto.d.ts +691 -6
  12. package/dist/agents/dto.js +19 -1
  13. package/dist/agents/dto.js.map +1 -1
  14. package/dist/agents/index.d.ts +1 -0
  15. package/dist/agents/index.js.map +1 -1
  16. package/dist/agents/inline-agent-config.schema.d.ts +805 -81
  17. package/dist/agents/teams/index.d.ts +1 -0
  18. package/dist/{dto/evaluations/public-api-test-run.dto.js → agents/teams/index.js} +1 -1
  19. package/dist/agents/teams/index.js.map +1 -0
  20. package/dist/agents/teams/types.d.ts +59 -0
  21. package/dist/agents/teams/types.js +3 -0
  22. package/dist/agents/teams/types.js.map +1 -0
  23. package/dist/agents/types.d.ts +31 -2
  24. package/dist/agents/types.js.map +1 -1
  25. package/dist/build.tsbuildinfo +1 -1
  26. package/dist/constants/auth.d.ts +1 -0
  27. package/dist/constants/auth.js +5 -0
  28. package/dist/constants/auth.js.map +1 -0
  29. package/dist/constants/canvas-feature-flags.d.ts +2 -0
  30. package/dist/constants/canvas-feature-flags.js +6 -0
  31. package/dist/constants/canvas-feature-flags.js.map +1 -0
  32. package/dist/constants/credential-descriptions.d.ts +1 -0
  33. package/dist/constants/credential-descriptions.js +5 -0
  34. package/dist/constants/credential-descriptions.js.map +1 -0
  35. package/dist/constants/empty-canvas-groups.d.ts +1 -0
  36. package/dist/constants/empty-canvas-groups.js +5 -0
  37. package/dist/constants/empty-canvas-groups.js.map +1 -0
  38. package/dist/credential-type-availability.d.ts +9 -0
  39. package/dist/credential-type-availability.js +3 -0
  40. package/dist/credential-type-availability.js.map +1 -0
  41. package/dist/dto/ai-preference/ai-preference-list-query.dto.d.ts +6 -2
  42. package/dist/dto/ai-preference/ai-preference-list-query.dto.js +19 -1
  43. package/dist/dto/ai-preference/ai-preference-list-query.dto.js.map +1 -1
  44. package/dist/dto/audit/audit-public.dto.d.ts +3730 -0
  45. package/dist/dto/audit/audit-public.dto.js +107 -0
  46. package/dist/dto/audit/audit-public.dto.js.map +1 -0
  47. package/dist/dto/audit/audit-public.openapi.d.ts +7 -0
  48. package/dist/dto/audit/audit-public.openapi.js +109 -0
  49. package/dist/dto/audit/audit-public.openapi.js.map +1 -0
  50. package/dist/dto/community-packages/community-package-public.dto.d.ts +184 -0
  51. package/dist/dto/community-packages/community-package-public.dto.js +56 -0
  52. package/dist/dto/community-packages/community-package-public.dto.js.map +1 -0
  53. package/dist/dto/community-packages/community-package-public.openapi.d.ts +19 -0
  54. package/dist/dto/community-packages/community-package-public.openapi.js +23 -0
  55. package/dist/dto/community-packages/community-package-public.openapi.js.map +1 -0
  56. package/dist/dto/credentials/create-credential.dto.d.ts +2 -0
  57. package/dist/dto/credentials/create-credential.dto.js +1 -0
  58. package/dist/dto/credentials/create-credential.dto.js.map +1 -1
  59. package/dist/dto/credentials/credential-public.dto.d.ts +16 -0
  60. package/dist/dto/credentials/credential-public.dto.js +14 -1
  61. package/dist/dto/credentials/credential-public.dto.js.map +1 -1
  62. package/dist/dto/data-table/data-table-public.dto.d.ts +268 -0
  63. package/dist/dto/data-table/data-table-public.dto.js +60 -0
  64. package/dist/dto/data-table/data-table-public.dto.js.map +1 -0
  65. package/dist/dto/data-table/data-table-public.openapi.d.ts +102 -0
  66. package/dist/dto/data-table/data-table-public.openapi.js +77 -0
  67. package/dist/dto/data-table/data-table-public.openapi.js.map +1 -0
  68. package/dist/dto/data-table/list-data-table-query.dto.d.ts +3 -2
  69. package/dist/dto/data-table/list-data-table-query.dto.js +6 -3
  70. package/dist/dto/data-table/list-data-table-query.dto.js.map +1 -1
  71. package/dist/dto/discover/discover-public.dto.d.ts +199 -0
  72. package/dist/dto/discover/discover-public.dto.js +51 -0
  73. package/dist/dto/discover/discover-public.dto.js.map +1 -0
  74. package/dist/dto/discover/discover-public.openapi.d.ts +26 -0
  75. package/dist/dto/discover/discover-public.openapi.js +26 -0
  76. package/dist/dto/discover/discover-public.openapi.js.map +1 -0
  77. package/dist/dto/evaluations/index.d.ts +1 -1
  78. package/dist/dto/evaluations/index.js +1 -0
  79. package/dist/dto/evaluations/index.js.map +1 -1
  80. package/dist/dto/evaluations/llm-judge-providers.js +1 -1
  81. package/dist/dto/evaluations/llm-judge-providers.js.map +1 -1
  82. package/dist/dto/evaluations/test-run-public.dto.d.ts +283 -0
  83. package/dist/dto/evaluations/test-run-public.dto.js +90 -0
  84. package/dist/dto/evaluations/test-run-public.dto.js.map +1 -0
  85. package/dist/dto/evaluations/test-run-public.openapi.d.ts +43 -0
  86. package/dist/dto/evaluations/test-run-public.openapi.js +55 -0
  87. package/dist/dto/evaluations/test-run-public.openapi.js.map +1 -0
  88. package/dist/dto/folders/folder-public.dto.d.ts +96 -0
  89. package/dist/dto/folders/folder-public.dto.js +56 -2
  90. package/dist/dto/folders/folder-public.dto.js.map +1 -1
  91. package/dist/dto/folders/folder-public.openapi.d.ts +21 -0
  92. package/dist/dto/folders/folder-public.openapi.js +20 -1
  93. package/dist/dto/folders/folder-public.openapi.js.map +1 -1
  94. package/dist/dto/index.d.ts +19 -7
  95. package/dist/dto/index.js +67 -12
  96. package/dist/dto/index.js.map +1 -1
  97. package/dist/dto/instance-ai/instance-ai-preference-card-request.dto.d.ts +28 -0
  98. package/dist/dto/instance-ai/instance-ai-preference-card-request.dto.js +23 -0
  99. package/dist/dto/instance-ai/instance-ai-preference-card-request.dto.js.map +1 -0
  100. package/dist/dto/instance-ai/instance-ai-thread-tabs-request.dto.d.ts +71 -0
  101. package/dist/dto/instance-ai/instance-ai-thread-tabs-request.dto.js +9 -0
  102. package/dist/dto/instance-ai/instance-ai-thread-tabs-request.dto.js.map +1 -0
  103. package/dist/dto/invitation/invite-users-request.dto.d.ts +1 -2
  104. package/dist/dto/invitation/invite-users-request.dto.js +3 -3
  105. package/dist/dto/invitation/invite-users-request.dto.js.map +1 -1
  106. package/dist/dto/oidc/config.dto.d.ts +0 -37
  107. package/dist/dto/oidc/config.dto.js +1 -11
  108. package/dist/dto/oidc/config.dto.js.map +1 -1
  109. package/dist/dto/oidc/oidc-configuration-public.dto.d.ts +142 -0
  110. package/dist/dto/oidc/oidc-configuration-public.dto.js +56 -0
  111. package/dist/dto/oidc/oidc-configuration-public.dto.js.map +1 -0
  112. package/dist/dto/oidc/oidc-configuration-public.openapi.d.ts +57 -0
  113. package/dist/dto/oidc/oidc-configuration-public.openapi.js +61 -0
  114. package/dist/dto/oidc/oidc-configuration-public.openapi.js.map +1 -0
  115. package/dist/dto/packages/import-package-request.dto.d.ts +16 -0
  116. package/dist/dto/packages/import-package-request.dto.js +54 -1
  117. package/dist/dto/packages/import-package-request.dto.js.map +1 -1
  118. package/dist/dto/project/project-public.dto.d.ts +42 -2
  119. package/dist/dto/project/project-public.dto.js +11 -1
  120. package/dist/dto/project/project-public.dto.js.map +1 -1
  121. package/dist/dto/project/update-project.dto.js +1 -11
  122. package/dist/dto/project/update-project.dto.js.map +1 -1
  123. package/dist/dto/promotions/promotable-resource.dto.d.ts +12 -3
  124. package/dist/dto/promotions/promotable-resource.dto.js +13 -2
  125. package/dist/dto/promotions/promotable-resource.dto.js.map +1 -1
  126. package/dist/dto/promotions/promotion-binding-preflight.dto.d.ts +189 -0
  127. package/dist/dto/promotions/promotion-binding-preflight.dto.js +12 -1
  128. package/dist/dto/promotions/promotion-binding-preflight.dto.js.map +1 -1
  129. package/dist/dto/promotions/promotion-operations.dto.d.ts +217 -0
  130. package/dist/dto/security-settings/security-policy-public.openapi.d.ts +42 -0
  131. package/dist/dto/security-settings/security-policy-public.openapi.js +46 -0
  132. package/dist/dto/security-settings/security-policy-public.openapi.js.map +1 -0
  133. package/dist/dto/security-settings/security-policy.dto.d.ts +125 -8
  134. package/dist/dto/security-settings/security-policy.dto.js +55 -7
  135. package/dist/dto/security-settings/security-policy.dto.js.map +1 -1
  136. package/dist/dto/user/create-users-public.dto.d.ts +69 -0
  137. package/dist/dto/user/create-users-public.dto.js +33 -0
  138. package/dist/dto/user/create-users-public.dto.js.map +1 -0
  139. package/dist/dto/user/delete-user-query-public.dto.d.ts +10 -0
  140. package/dist/dto/user/delete-user-query-public.dto.js +14 -0
  141. package/dist/dto/user/delete-user-query-public.dto.js.map +1 -0
  142. package/dist/dto/user/get-user-query.dto.d.ts +8 -0
  143. package/dist/dto/user/get-user-query.dto.js +11 -0
  144. package/dist/dto/user/get-user-query.dto.js.map +1 -0
  145. package/dist/dto/user/list-users-query.dto.d.ts +15 -0
  146. package/dist/dto/user/list-users-query.dto.js +16 -0
  147. package/dist/dto/user/list-users-query.dto.js.map +1 -0
  148. package/dist/dto/user/user-public.dto.d.ts +106 -0
  149. package/dist/dto/user/user-public.dto.js +37 -0
  150. package/dist/dto/user/user-public.dto.js.map +1 -0
  151. package/dist/dto/workflows/base-workflow-public.dto.d.ts +59 -1
  152. package/dist/dto/workflows/base-workflow-public.dto.js +3 -1
  153. package/dist/dto/workflows/base-workflow-public.dto.js.map +1 -1
  154. package/dist/dto/workflows/create-workflow-public.dto.d.ts +168 -107
  155. package/dist/dto/workflows/create-workflow-public.dto.js +6 -3
  156. package/dist/dto/workflows/create-workflow-public.dto.js.map +1 -1
  157. package/dist/dto/workflows/update-workflow-public.dto.d.ts +59 -1
  158. package/dist/dto/workflows/workflow-public.openapi.d.ts +4 -0
  159. package/dist/dto/workflows/workflow-public.openapi.js +4 -0
  160. package/dist/dto/workflows/workflow-public.openapi.js.map +1 -1
  161. package/dist/frontend-settings.d.ts +4 -0
  162. package/dist/index.d.ts +14 -9
  163. package/dist/index.js +45 -11
  164. package/dist/index.js.map +1 -1
  165. package/dist/instance-registry-types.d.ts +15 -15
  166. package/dist/instance-registry-types.js +2 -2
  167. package/dist/instance-registry-types.js.map +1 -1
  168. package/dist/push/agents.d.ts +9 -1
  169. package/dist/push/collaboration.d.ts +10 -7
  170. package/dist/schemas/agent-run-reducer.js +38 -0
  171. package/dist/schemas/agent-run-reducer.js.map +1 -1
  172. package/dist/schemas/ai-preference.schema.js.map +1 -1
  173. package/dist/schemas/breaking-changes.schema.d.ts +2 -0
  174. package/dist/schemas/breaking-changes.schema.js +8 -1
  175. package/dist/schemas/breaking-changes.schema.js.map +1 -1
  176. package/dist/schemas/folder.schema.d.ts +1 -0
  177. package/dist/schemas/folder.schema.js +4 -4
  178. package/dist/schemas/folder.schema.js.map +1 -1
  179. package/dist/schemas/instance-ai-setup-credential-selection.d.ts +25 -0
  180. package/dist/schemas/instance-ai-setup-credential-selection.js +40 -0
  181. package/dist/schemas/instance-ai-setup-credential-selection.js.map +1 -0
  182. package/dist/schemas/instance-ai.schema.d.ts +2360 -116
  183. package/dist/schemas/instance-ai.schema.js +117 -8
  184. package/dist/schemas/instance-ai.schema.js.map +1 -1
  185. package/dist/schemas/llm-step-display.d.ts +41 -0
  186. package/dist/schemas/llm-step-display.js +242 -3
  187. package/dist/schemas/llm-step-display.js.map +1 -1
  188. package/dist/schemas/mcp.schema.d.ts +2 -2
  189. package/dist/schemas/mcp.schema.js +2 -0
  190. package/dist/schemas/mcp.schema.js.map +1 -1
  191. package/dist/schemas/project.schema.d.ts +16 -0
  192. package/dist/schemas/project.schema.js +9 -1
  193. package/dist/schemas/project.schema.js.map +1 -1
  194. package/dist/schemas/public-api-path-params.schema.d.ts +7 -0
  195. package/dist/schemas/public-api-path-params.schema.js +25 -1
  196. package/dist/schemas/public-api-path-params.schema.js.map +1 -1
  197. package/package.json +8 -6
  198. package/dist/dto/data-table/public-api-create-data-table.dto.d.ts +0 -33
  199. package/dist/dto/data-table/public-api-create-data-table.dto.js +0 -17
  200. package/dist/dto/data-table/public-api-create-data-table.dto.js.map +0 -1
  201. package/dist/dto/evaluations/public-api-test-run.dto.d.ts +0 -37
  202. package/dist/dto/evaluations/public-api-test-run.dto.js.map +0 -1
  203. package/dist/schemas/community-package.schema.d.ts +0 -13
  204. package/dist/schemas/community-package.schema.js +0 -17
  205. package/dist/schemas/community-package.schema.js.map +0 -1
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import type { AiPreferenceDto, AiPreferenceScope } from './ai-preference.schema';
2
3
  import type { McpRegistryServerIconResponse } from './mcp-registry.schema';
3
4
  export declare const UNLIMITED_CREDITS = -1;
4
5
  export type InstanceAiCredits = {
@@ -37,7 +38,7 @@ export type ThreadId = string & {
37
38
  export type ToolCallId = string & {
38
39
  readonly __brand: 'ToolCallId';
39
40
  };
40
- 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", "setup-items", "preferences-applied", "filesystem-request", "thread-title-updated", "status", "error"]>;
41
+ 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", "instance-context", "tasks-update", "setup-items", "preferences-applied", "preference-card", "filesystem-request", "thread-title-updated", "status", "error"]>;
41
42
  export type InstanceAiEventType = z.infer<typeof instanceAiEventTypeSchema>;
42
43
  export declare const INSTANCE_AI_EPHEMERAL_EVENT_TYPES: ReadonlySet<InstanceAiEventType>;
43
44
  export declare const instanceAiRunStatusSchema: z.ZodEnum<["completed", "cancelled", "error", "interrupted"]>;
@@ -85,6 +86,154 @@ export declare const webSearchMetaSchema: z.ZodObject<{
85
86
  export type WebSearchMeta = z.infer<typeof webSearchMetaSchema>;
86
87
  export declare const UNSAFE_OBJECT_KEYS: Set<string>;
87
88
  export declare function isSafeObjectKey(key: string): boolean;
89
+ export declare const instanceContextSurfaceSchema: z.ZodEnum<["activity-list", "activity-expand", "node-usage", "workflow-read"]>;
90
+ export type InstanceContextSurface = z.infer<typeof instanceContextSurfaceSchema>;
91
+ export declare const INSTANCE_CONTEXT_SURFACE_DEPTH: Record<InstanceContextSurface, 0 | 1 | 2 | 3>;
92
+ export declare const instanceContextReachSchema: z.ZodObject<{
93
+ surfaces: z.ZodArray<z.ZodEnum<["activity-list", "activity-expand", "node-usage", "workflow-read"]>, "many">;
94
+ }, "strip", z.ZodTypeAny, {
95
+ surfaces: ("activity-expand" | "activity-list" | "node-usage" | "workflow-read")[];
96
+ }, {
97
+ surfaces: ("activity-expand" | "activity-list" | "node-usage" | "workflow-read")[];
98
+ }>;
99
+ export type InstanceContextReach = z.infer<typeof instanceContextReachSchema>;
100
+ export declare const instanceContextLegsSchema: z.ZodObject<{
101
+ inventory: z.ZodNumber;
102
+ events: z.ZodNumber;
103
+ runs: z.ZodNumber;
104
+ }, "strip", z.ZodTypeAny, {
105
+ inventory: number;
106
+ events: number;
107
+ runs: number;
108
+ }, {
109
+ inventory: number;
110
+ events: number;
111
+ runs: number;
112
+ }>;
113
+ export type InstanceContextLegs = z.infer<typeof instanceContextLegsSchema>;
114
+ export declare const instanceContextAbsenceReasonSchema: z.ZodEnum<["disabled", "machine-follow-up", "empty", "failed"]>;
115
+ export type InstanceContextAbsenceReason = z.infer<typeof instanceContextAbsenceReasonSchema>;
116
+ export declare const instanceContextInjectionSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<{
117
+ state: z.ZodLiteral<"injected">;
118
+ isUpdate: z.ZodBoolean;
119
+ legs: z.ZodObject<{
120
+ inventory: z.ZodNumber;
121
+ events: z.ZodNumber;
122
+ runs: z.ZodNumber;
123
+ }, "strip", z.ZodTypeAny, {
124
+ inventory: number;
125
+ events: number;
126
+ runs: number;
127
+ }, {
128
+ inventory: number;
129
+ events: number;
130
+ runs: number;
131
+ }>;
132
+ chars: z.ZodNumber;
133
+ }, "strip", z.ZodTypeAny, {
134
+ state: "injected";
135
+ isUpdate: boolean;
136
+ legs: {
137
+ inventory: number;
138
+ events: number;
139
+ runs: number;
140
+ };
141
+ chars: number;
142
+ }, {
143
+ state: "injected";
144
+ isUpdate: boolean;
145
+ legs: {
146
+ inventory: number;
147
+ events: number;
148
+ runs: number;
149
+ };
150
+ chars: number;
151
+ }>, z.ZodObject<{
152
+ state: z.ZodLiteral<"absent">;
153
+ reason: z.ZodEnum<["disabled", "machine-follow-up", "empty", "failed"]>;
154
+ }, "strip", z.ZodTypeAny, {
155
+ state: "absent";
156
+ reason: "disabled" | "empty" | "failed" | "machine-follow-up";
157
+ }, {
158
+ state: "absent";
159
+ reason: "disabled" | "empty" | "failed" | "machine-follow-up";
160
+ }>]>;
161
+ export type InstanceContextInjection = z.infer<typeof instanceContextInjectionSchema>;
162
+ export declare const instanceContextPayloadSchema: z.ZodObject<{
163
+ injection: z.ZodDiscriminatedUnion<"state", [z.ZodObject<{
164
+ state: z.ZodLiteral<"injected">;
165
+ isUpdate: z.ZodBoolean;
166
+ legs: z.ZodObject<{
167
+ inventory: z.ZodNumber;
168
+ events: z.ZodNumber;
169
+ runs: z.ZodNumber;
170
+ }, "strip", z.ZodTypeAny, {
171
+ inventory: number;
172
+ events: number;
173
+ runs: number;
174
+ }, {
175
+ inventory: number;
176
+ events: number;
177
+ runs: number;
178
+ }>;
179
+ chars: z.ZodNumber;
180
+ }, "strip", z.ZodTypeAny, {
181
+ state: "injected";
182
+ isUpdate: boolean;
183
+ legs: {
184
+ inventory: number;
185
+ events: number;
186
+ runs: number;
187
+ };
188
+ chars: number;
189
+ }, {
190
+ state: "injected";
191
+ isUpdate: boolean;
192
+ legs: {
193
+ inventory: number;
194
+ events: number;
195
+ runs: number;
196
+ };
197
+ chars: number;
198
+ }>, z.ZodObject<{
199
+ state: z.ZodLiteral<"absent">;
200
+ reason: z.ZodEnum<["disabled", "machine-follow-up", "empty", "failed"]>;
201
+ }, "strip", z.ZodTypeAny, {
202
+ state: "absent";
203
+ reason: "disabled" | "empty" | "failed" | "machine-follow-up";
204
+ }, {
205
+ state: "absent";
206
+ reason: "disabled" | "empty" | "failed" | "machine-follow-up";
207
+ }>]>;
208
+ }, "strip", z.ZodTypeAny, {
209
+ injection: {
210
+ state: "injected";
211
+ isUpdate: boolean;
212
+ legs: {
213
+ inventory: number;
214
+ events: number;
215
+ runs: number;
216
+ };
217
+ chars: number;
218
+ } | {
219
+ state: "absent";
220
+ reason: "disabled" | "empty" | "failed" | "machine-follow-up";
221
+ };
222
+ }, {
223
+ injection: {
224
+ state: "injected";
225
+ isUpdate: boolean;
226
+ legs: {
227
+ inventory: number;
228
+ events: number;
229
+ runs: number;
230
+ };
231
+ chars: number;
232
+ } | {
233
+ state: "absent";
234
+ reason: "disabled" | "empty" | "failed" | "machine-follow-up";
235
+ };
236
+ }>;
88
237
  export declare const runStartPayloadSchema: z.ZodObject<{
89
238
  messageId: z.ZodString;
90
239
  traceId: z.ZodOptional<z.ZodString>;
@@ -107,14 +256,27 @@ export declare const runStartPayloadSchema: z.ZodObject<{
107
256
  export declare const runFinishPayloadSchema: z.ZodObject<{
108
257
  status: z.ZodEnum<["completed", "cancelled", "error", "interrupted"]>;
109
258
  reason: z.ZodOptional<z.ZodString>;
259
+ contextReach: z.ZodOptional<z.ZodObject<{
260
+ surfaces: z.ZodArray<z.ZodEnum<["activity-list", "activity-expand", "node-usage", "workflow-read"]>, "many">;
261
+ }, "strip", z.ZodTypeAny, {
262
+ surfaces: ("activity-expand" | "activity-list" | "node-usage" | "workflow-read")[];
263
+ }, {
264
+ surfaces: ("activity-expand" | "activity-list" | "node-usage" | "workflow-read")[];
265
+ }>>;
110
266
  archivedWorkflowIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
111
267
  }, "strip", z.ZodTypeAny, {
112
268
  status: "cancelled" | "completed" | "error" | "interrupted";
113
269
  reason?: string | undefined;
270
+ contextReach?: {
271
+ surfaces: ("activity-expand" | "activity-list" | "node-usage" | "workflow-read")[];
272
+ } | undefined;
114
273
  archivedWorkflowIds?: string[] | undefined;
115
274
  }, {
116
275
  status: "cancelled" | "completed" | "error" | "interrupted";
117
276
  reason?: string | undefined;
277
+ contextReach?: {
278
+ surfaces: ("activity-expand" | "activity-list" | "node-usage" | "workflow-read")[];
279
+ } | undefined;
118
280
  archivedWorkflowIds?: string[] | undefined;
119
281
  }>;
120
282
  export declare const agentSpawnedTargetResourceSchema: z.ZodObject<{
@@ -134,12 +296,17 @@ export declare const agentSpawnedTargetResourceSchema: z.ZodObject<{
134
296
  projectId?: string | undefined;
135
297
  }>;
136
298
  export type InstanceAiTargetResource = z.infer<typeof agentSpawnedTargetResourceSchema>;
299
+ export declare const agentActivitySchema: z.ZodEnum<["creating", "editing", "exploring", "testing", "publishing", "working"]>;
300
+ export type InstanceAiAgentActivity = z.infer<typeof agentActivitySchema>;
301
+ export declare const agentChangeSchema: z.ZodEnum<["created", "updated", "none"]>;
302
+ export type InstanceAiAgentChange = z.infer<typeof agentChangeSchema>;
137
303
  export declare const agentSpawnedPayloadSchema: z.ZodObject<{
138
304
  parentId: z.ZodString;
139
305
  role: z.ZodString;
140
306
  tools: z.ZodArray<z.ZodString, "many">;
141
307
  taskId: z.ZodOptional<z.ZodString>;
142
308
  kind: z.ZodOptional<z.ZodEnum<["builder", "data-table", "planner", "eval-setup", "agent-builder"]>>;
309
+ activity: z.ZodOptional<z.ZodEnum<["creating", "editing", "exploring", "testing", "publishing", "working"]>>;
143
310
  title: z.ZodOptional<z.ZodString>;
144
311
  subtitle: z.ZodOptional<z.ZodString>;
145
312
  goal: z.ZodOptional<z.ZodString>;
@@ -165,6 +332,7 @@ export declare const agentSpawnedPayloadSchema: z.ZodObject<{
165
332
  tools: string[];
166
333
  taskId?: string | undefined;
167
334
  kind?: "agent-builder" | "builder" | "data-table" | "eval-setup" | "planner" | undefined;
335
+ activity?: "creating" | "editing" | "exploring" | "publishing" | "testing" | "working" | undefined;
168
336
  title?: string | undefined;
169
337
  subtitle?: string | undefined;
170
338
  goal?: string | undefined;
@@ -180,6 +348,7 @@ export declare const agentSpawnedPayloadSchema: z.ZodObject<{
180
348
  tools: string[];
181
349
  taskId?: string | undefined;
182
350
  kind?: "agent-builder" | "builder" | "data-table" | "eval-setup" | "planner" | undefined;
351
+ activity?: "creating" | "editing" | "exploring" | "publishing" | "testing" | "working" | undefined;
183
352
  title?: string | undefined;
184
353
  subtitle?: string | undefined;
185
354
  goal?: string | undefined;
@@ -193,16 +362,19 @@ export declare const agentSpawnedPayloadSchema: z.ZodObject<{
193
362
  export declare const agentCompletedPayloadSchema: z.ZodObject<{
194
363
  role: z.ZodString;
195
364
  result: z.ZodString;
365
+ agentChange: z.ZodOptional<z.ZodEnum<["created", "updated", "none"]>>;
196
366
  error: z.ZodOptional<z.ZodString>;
197
367
  status: z.ZodOptional<z.ZodEnum<["completed", "cancelled", "error"]>>;
198
368
  }, "strip", z.ZodTypeAny, {
199
369
  role: string;
200
370
  result: string;
371
+ agentChange?: "created" | "none" | "updated" | undefined;
201
372
  error?: string | undefined;
202
373
  status?: "cancelled" | "completed" | "error" | undefined;
203
374
  }, {
204
375
  role: string;
205
376
  result: string;
377
+ agentChange?: "created" | "none" | "updated" | undefined;
206
378
  error?: string | undefined;
207
379
  status?: "cancelled" | "completed" | "error" | undefined;
208
380
  }>;
@@ -3665,6 +3837,7 @@ export declare const setupItemSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObje
3665
3837
  kind: z.ZodLiteral<"credential">;
3666
3838
  credentialType: z.ZodString;
3667
3839
  appDisplayName: z.ZodOptional<z.ZodString>;
3840
+ preferNew: z.ZodOptional<z.ZodBoolean>;
3668
3841
  nodeBindings: z.ZodOptional<z.ZodArray<z.ZodObject<{
3669
3842
  nodeName: z.ZodString;
3670
3843
  }, "strip", z.ZodTypeAny, {
@@ -3756,6 +3929,7 @@ export declare const setupItemSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObje
3756
3929
  kind: "credential";
3757
3930
  credentialType: string;
3758
3931
  appDisplayName?: string | undefined;
3932
+ preferNew?: boolean | undefined;
3759
3933
  nodeBindings?: {
3760
3934
  nodeName: string;
3761
3935
  }[] | undefined;
@@ -3785,6 +3959,7 @@ export declare const setupItemSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObje
3785
3959
  kind: "credential";
3786
3960
  credentialType: string;
3787
3961
  appDisplayName?: string | undefined;
3962
+ preferNew?: boolean | undefined;
3788
3963
  nodeBindings?: {
3789
3964
  nodeName: string;
3790
3965
  }[] | undefined;
@@ -3833,6 +4008,7 @@ export declare const setupItemsPayloadSchema: z.ZodObject<{
3833
4008
  kind: z.ZodLiteral<"credential">;
3834
4009
  credentialType: z.ZodString;
3835
4010
  appDisplayName: z.ZodOptional<z.ZodString>;
4011
+ preferNew: z.ZodOptional<z.ZodBoolean>;
3836
4012
  nodeBindings: z.ZodOptional<z.ZodArray<z.ZodObject<{
3837
4013
  nodeName: z.ZodString;
3838
4014
  }, "strip", z.ZodTypeAny, {
@@ -3924,6 +4100,7 @@ export declare const setupItemsPayloadSchema: z.ZodObject<{
3924
4100
  kind: "credential";
3925
4101
  credentialType: string;
3926
4102
  appDisplayName?: string | undefined;
4103
+ preferNew?: boolean | undefined;
3927
4104
  nodeBindings?: {
3928
4105
  nodeName: string;
3929
4106
  }[] | undefined;
@@ -3953,6 +4130,7 @@ export declare const setupItemsPayloadSchema: z.ZodObject<{
3953
4130
  kind: "credential";
3954
4131
  credentialType: string;
3955
4132
  appDisplayName?: string | undefined;
4133
+ preferNew?: boolean | undefined;
3956
4134
  nodeBindings?: {
3957
4135
  nodeName: string;
3958
4136
  }[] | undefined;
@@ -3997,6 +4175,7 @@ export declare const setupItemsPayloadSchema: z.ZodObject<{
3997
4175
  kind: "credential";
3998
4176
  credentialType: string;
3999
4177
  appDisplayName?: string | undefined;
4178
+ preferNew?: boolean | undefined;
4000
4179
  nodeBindings?: {
4001
4180
  nodeName: string;
4002
4181
  }[] | undefined;
@@ -4034,6 +4213,7 @@ export declare const setupItemsPayloadSchema: z.ZodObject<{
4034
4213
  kind: "credential";
4035
4214
  credentialType: string;
4036
4215
  appDisplayName?: string | undefined;
4216
+ preferNew?: boolean | undefined;
4037
4217
  nodeBindings?: {
4038
4218
  nodeName: string;
4039
4219
  }[] | undefined;
@@ -4068,6 +4248,29 @@ export declare const setupItemsPayloadSchema: z.ZodObject<{
4068
4248
  workflowId: string;
4069
4249
  items: unknown[];
4070
4250
  }>;
4251
+ export declare const preferenceCardPayloadSchema: z.ZodObject<{
4252
+ toolCallId: z.ZodString;
4253
+ preferenceId: z.ZodString;
4254
+ state: z.ZodEnum<["edited", "undone"]>;
4255
+ content: z.ZodOptional<z.ZodString>;
4256
+ scope: z.ZodOptional<z.ZodEnum<["user", "project", "instance"]>>;
4257
+ projectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4258
+ }, "strip", z.ZodTypeAny, {
4259
+ toolCallId: string;
4260
+ preferenceId: string;
4261
+ state: "edited" | "undone";
4262
+ content?: string | undefined;
4263
+ scope?: "instance" | "project" | "user" | undefined;
4264
+ projectId?: string | null | undefined;
4265
+ }, {
4266
+ toolCallId: string;
4267
+ preferenceId: string;
4268
+ state: "edited" | "undone";
4269
+ content?: string | undefined;
4270
+ scope?: "instance" | "project" | "user" | undefined;
4271
+ projectId?: string | null | undefined;
4272
+ }>;
4273
+ export type PreferenceCardPayload = z.infer<typeof preferenceCardPayloadSchema>;
4071
4274
  export declare const threadTitleUpdatedPayloadSchema: z.ZodObject<{
4072
4275
  title: z.ZodString;
4073
4276
  }, "strip", z.ZodTypeAny, {
@@ -4221,14 +4424,27 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
4221
4424
  payload: z.ZodObject<{
4222
4425
  status: z.ZodEnum<["completed", "cancelled", "error", "interrupted"]>;
4223
4426
  reason: z.ZodOptional<z.ZodString>;
4427
+ contextReach: z.ZodOptional<z.ZodObject<{
4428
+ surfaces: z.ZodArray<z.ZodEnum<["activity-list", "activity-expand", "node-usage", "workflow-read"]>, "many">;
4429
+ }, "strip", z.ZodTypeAny, {
4430
+ surfaces: ("activity-expand" | "activity-list" | "node-usage" | "workflow-read")[];
4431
+ }, {
4432
+ surfaces: ("activity-expand" | "activity-list" | "node-usage" | "workflow-read")[];
4433
+ }>>;
4224
4434
  archivedWorkflowIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4225
4435
  }, "strip", z.ZodTypeAny, {
4226
4436
  status: "cancelled" | "completed" | "error" | "interrupted";
4227
4437
  reason?: string | undefined;
4438
+ contextReach?: {
4439
+ surfaces: ("activity-expand" | "activity-list" | "node-usage" | "workflow-read")[];
4440
+ } | undefined;
4228
4441
  archivedWorkflowIds?: string[] | undefined;
4229
4442
  }, {
4230
4443
  status: "cancelled" | "completed" | "error" | "interrupted";
4231
4444
  reason?: string | undefined;
4445
+ contextReach?: {
4446
+ surfaces: ("activity-expand" | "activity-list" | "node-usage" | "workflow-read")[];
4447
+ } | undefined;
4232
4448
  archivedWorkflowIds?: string[] | undefined;
4233
4449
  }>;
4234
4450
  }, "strip", z.ZodTypeAny, {
@@ -4241,6 +4457,9 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
4241
4457
  payload: {
4242
4458
  status: "cancelled" | "completed" | "error" | "interrupted";
4243
4459
  reason?: string | undefined;
4460
+ contextReach?: {
4461
+ surfaces: ("activity-expand" | "activity-list" | "node-usage" | "workflow-read")[];
4462
+ } | undefined;
4244
4463
  archivedWorkflowIds?: string[] | undefined;
4245
4464
  };
4246
4465
  }, {
@@ -4253,6 +4472,9 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
4253
4472
  payload: {
4254
4473
  status: "cancelled" | "completed" | "error" | "interrupted";
4255
4474
  reason?: string | undefined;
4475
+ contextReach?: {
4476
+ surfaces: ("activity-expand" | "activity-list" | "node-usage" | "workflow-read")[];
4477
+ } | undefined;
4256
4478
  archivedWorkflowIds?: string[] | undefined;
4257
4479
  };
4258
4480
  }>, z.ZodObject<{
@@ -4268,6 +4490,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
4268
4490
  tools: z.ZodArray<z.ZodString, "many">;
4269
4491
  taskId: z.ZodOptional<z.ZodString>;
4270
4492
  kind: z.ZodOptional<z.ZodEnum<["builder", "data-table", "planner", "eval-setup", "agent-builder"]>>;
4493
+ activity: z.ZodOptional<z.ZodEnum<["creating", "editing", "exploring", "testing", "publishing", "working"]>>;
4271
4494
  title: z.ZodOptional<z.ZodString>;
4272
4495
  subtitle: z.ZodOptional<z.ZodString>;
4273
4496
  goal: z.ZodOptional<z.ZodString>;
@@ -4293,6 +4516,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
4293
4516
  tools: string[];
4294
4517
  taskId?: string | undefined;
4295
4518
  kind?: "agent-builder" | "builder" | "data-table" | "eval-setup" | "planner" | undefined;
4519
+ activity?: "creating" | "editing" | "exploring" | "publishing" | "testing" | "working" | undefined;
4296
4520
  title?: string | undefined;
4297
4521
  subtitle?: string | undefined;
4298
4522
  goal?: string | undefined;
@@ -4308,6 +4532,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
4308
4532
  tools: string[];
4309
4533
  taskId?: string | undefined;
4310
4534
  kind?: "agent-builder" | "builder" | "data-table" | "eval-setup" | "planner" | undefined;
4535
+ activity?: "creating" | "editing" | "exploring" | "publishing" | "testing" | "working" | undefined;
4311
4536
  title?: string | undefined;
4312
4537
  subtitle?: string | undefined;
4313
4538
  goal?: string | undefined;
@@ -4331,6 +4556,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
4331
4556
  tools: string[];
4332
4557
  taskId?: string | undefined;
4333
4558
  kind?: "agent-builder" | "builder" | "data-table" | "eval-setup" | "planner" | undefined;
4559
+ activity?: "creating" | "editing" | "exploring" | "publishing" | "testing" | "working" | undefined;
4334
4560
  title?: string | undefined;
4335
4561
  subtitle?: string | undefined;
4336
4562
  goal?: string | undefined;
@@ -4354,6 +4580,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
4354
4580
  tools: string[];
4355
4581
  taskId?: string | undefined;
4356
4582
  kind?: "agent-builder" | "builder" | "data-table" | "eval-setup" | "planner" | undefined;
4583
+ activity?: "creating" | "editing" | "exploring" | "publishing" | "testing" | "working" | undefined;
4357
4584
  title?: string | undefined;
4358
4585
  subtitle?: string | undefined;
4359
4586
  goal?: string | undefined;
@@ -4374,16 +4601,19 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
4374
4601
  payload: z.ZodObject<{
4375
4602
  role: z.ZodString;
4376
4603
  result: z.ZodString;
4604
+ agentChange: z.ZodOptional<z.ZodEnum<["created", "updated", "none"]>>;
4377
4605
  error: z.ZodOptional<z.ZodString>;
4378
4606
  status: z.ZodOptional<z.ZodEnum<["completed", "cancelled", "error"]>>;
4379
4607
  }, "strip", z.ZodTypeAny, {
4380
4608
  role: string;
4381
4609
  result: string;
4610
+ agentChange?: "created" | "none" | "updated" | undefined;
4382
4611
  error?: string | undefined;
4383
4612
  status?: "cancelled" | "completed" | "error" | undefined;
4384
4613
  }, {
4385
4614
  role: string;
4386
4615
  result: string;
4616
+ agentChange?: "created" | "none" | "updated" | undefined;
4387
4617
  error?: string | undefined;
4388
4618
  status?: "cancelled" | "completed" | "error" | undefined;
4389
4619
  }>;
@@ -4397,6 +4627,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
4397
4627
  payload: {
4398
4628
  role: string;
4399
4629
  result: string;
4630
+ agentChange?: "created" | "none" | "updated" | undefined;
4400
4631
  error?: string | undefined;
4401
4632
  status?: "cancelled" | "completed" | "error" | undefined;
4402
4633
  };
@@ -4410,6 +4641,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
4410
4641
  payload: {
4411
4642
  role: string;
4412
4643
  result: string;
4644
+ agentChange?: "created" | "none" | "updated" | undefined;
4413
4645
  error?: string | undefined;
4414
4646
  status?: "cancelled" | "completed" | "error" | undefined;
4415
4647
  };
@@ -7021,6 +7253,132 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
7021
7253
  }[];
7022
7254
  } | undefined;
7023
7255
  };
7256
+ }>, z.ZodObject<{
7257
+ runId: z.ZodString;
7258
+ agentId: z.ZodString;
7259
+ userId: z.ZodOptional<z.ZodString>;
7260
+ responseId: z.ZodOptional<z.ZodString>;
7261
+ ts: z.ZodOptional<z.ZodNumber>;
7262
+ type: z.ZodLiteral<"instance-context">;
7263
+ payload: z.ZodObject<{
7264
+ injection: z.ZodDiscriminatedUnion<"state", [z.ZodObject<{
7265
+ state: z.ZodLiteral<"injected">;
7266
+ isUpdate: z.ZodBoolean;
7267
+ legs: z.ZodObject<{
7268
+ inventory: z.ZodNumber;
7269
+ events: z.ZodNumber;
7270
+ runs: z.ZodNumber;
7271
+ }, "strip", z.ZodTypeAny, {
7272
+ inventory: number;
7273
+ events: number;
7274
+ runs: number;
7275
+ }, {
7276
+ inventory: number;
7277
+ events: number;
7278
+ runs: number;
7279
+ }>;
7280
+ chars: z.ZodNumber;
7281
+ }, "strip", z.ZodTypeAny, {
7282
+ state: "injected";
7283
+ isUpdate: boolean;
7284
+ legs: {
7285
+ inventory: number;
7286
+ events: number;
7287
+ runs: number;
7288
+ };
7289
+ chars: number;
7290
+ }, {
7291
+ state: "injected";
7292
+ isUpdate: boolean;
7293
+ legs: {
7294
+ inventory: number;
7295
+ events: number;
7296
+ runs: number;
7297
+ };
7298
+ chars: number;
7299
+ }>, z.ZodObject<{
7300
+ state: z.ZodLiteral<"absent">;
7301
+ reason: z.ZodEnum<["disabled", "machine-follow-up", "empty", "failed"]>;
7302
+ }, "strip", z.ZodTypeAny, {
7303
+ state: "absent";
7304
+ reason: "disabled" | "empty" | "failed" | "machine-follow-up";
7305
+ }, {
7306
+ state: "absent";
7307
+ reason: "disabled" | "empty" | "failed" | "machine-follow-up";
7308
+ }>]>;
7309
+ }, "strip", z.ZodTypeAny, {
7310
+ injection: {
7311
+ state: "injected";
7312
+ isUpdate: boolean;
7313
+ legs: {
7314
+ inventory: number;
7315
+ events: number;
7316
+ runs: number;
7317
+ };
7318
+ chars: number;
7319
+ } | {
7320
+ state: "absent";
7321
+ reason: "disabled" | "empty" | "failed" | "machine-follow-up";
7322
+ };
7323
+ }, {
7324
+ injection: {
7325
+ state: "injected";
7326
+ isUpdate: boolean;
7327
+ legs: {
7328
+ inventory: number;
7329
+ events: number;
7330
+ runs: number;
7331
+ };
7332
+ chars: number;
7333
+ } | {
7334
+ state: "absent";
7335
+ reason: "disabled" | "empty" | "failed" | "machine-follow-up";
7336
+ };
7337
+ }>;
7338
+ }, "strip", z.ZodTypeAny, {
7339
+ runId: string;
7340
+ agentId: string;
7341
+ userId?: string | undefined;
7342
+ responseId?: string | undefined;
7343
+ ts?: number | undefined;
7344
+ type: "instance-context";
7345
+ payload: {
7346
+ injection: {
7347
+ state: "injected";
7348
+ isUpdate: boolean;
7349
+ legs: {
7350
+ inventory: number;
7351
+ events: number;
7352
+ runs: number;
7353
+ };
7354
+ chars: number;
7355
+ } | {
7356
+ state: "absent";
7357
+ reason: "disabled" | "empty" | "failed" | "machine-follow-up";
7358
+ };
7359
+ };
7360
+ }, {
7361
+ runId: string;
7362
+ agentId: string;
7363
+ userId?: string | undefined;
7364
+ responseId?: string | undefined;
7365
+ ts?: number | undefined;
7366
+ type: "instance-context";
7367
+ payload: {
7368
+ injection: {
7369
+ state: "injected";
7370
+ isUpdate: boolean;
7371
+ legs: {
7372
+ inventory: number;
7373
+ events: number;
7374
+ runs: number;
7375
+ };
7376
+ chars: number;
7377
+ } | {
7378
+ state: "absent";
7379
+ reason: "disabled" | "empty" | "failed" | "machine-follow-up";
7380
+ };
7381
+ };
7024
7382
  }>, z.ZodObject<{
7025
7383
  runId: z.ZodString;
7026
7384
  agentId: z.ZodString;
@@ -7196,6 +7554,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
7196
7554
  kind: z.ZodLiteral<"credential">;
7197
7555
  credentialType: z.ZodString;
7198
7556
  appDisplayName: z.ZodOptional<z.ZodString>;
7557
+ preferNew: z.ZodOptional<z.ZodBoolean>;
7199
7558
  nodeBindings: z.ZodOptional<z.ZodArray<z.ZodObject<{
7200
7559
  nodeName: z.ZodString;
7201
7560
  }, "strip", z.ZodTypeAny, {
@@ -7287,6 +7646,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
7287
7646
  kind: "credential";
7288
7647
  credentialType: string;
7289
7648
  appDisplayName?: string | undefined;
7649
+ preferNew?: boolean | undefined;
7290
7650
  nodeBindings?: {
7291
7651
  nodeName: string;
7292
7652
  }[] | undefined;
@@ -7316,6 +7676,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
7316
7676
  kind: "credential";
7317
7677
  credentialType: string;
7318
7678
  appDisplayName?: string | undefined;
7679
+ preferNew?: boolean | undefined;
7319
7680
  nodeBindings?: {
7320
7681
  nodeName: string;
7321
7682
  }[] | undefined;
@@ -7360,6 +7721,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
7360
7721
  kind: "credential";
7361
7722
  credentialType: string;
7362
7723
  appDisplayName?: string | undefined;
7724
+ preferNew?: boolean | undefined;
7363
7725
  nodeBindings?: {
7364
7726
  nodeName: string;
7365
7727
  }[] | undefined;
@@ -7397,6 +7759,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
7397
7759
  kind: "credential";
7398
7760
  credentialType: string;
7399
7761
  appDisplayName?: string | undefined;
7762
+ preferNew?: boolean | undefined;
7400
7763
  nodeBindings?: {
7401
7764
  nodeName: string;
7402
7765
  }[] | undefined;
@@ -7445,6 +7808,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
7445
7808
  kind: "credential";
7446
7809
  credentialType: string;
7447
7810
  appDisplayName?: string | undefined;
7811
+ preferNew?: boolean | undefined;
7448
7812
  nodeBindings?: {
7449
7813
  nodeName: string;
7450
7814
  }[] | undefined;
@@ -7631,6 +7995,65 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
7631
7995
  injectedThisTurn: false;
7632
7996
  carriedFromRunId?: string | undefined;
7633
7997
  };
7998
+ }>, z.ZodObject<{
7999
+ runId: z.ZodString;
8000
+ agentId: z.ZodString;
8001
+ userId: z.ZodOptional<z.ZodString>;
8002
+ responseId: z.ZodOptional<z.ZodString>;
8003
+ ts: z.ZodOptional<z.ZodNumber>;
8004
+ type: z.ZodLiteral<"preference-card">;
8005
+ payload: z.ZodObject<{
8006
+ toolCallId: z.ZodString;
8007
+ preferenceId: z.ZodString;
8008
+ state: z.ZodEnum<["edited", "undone"]>;
8009
+ content: z.ZodOptional<z.ZodString>;
8010
+ scope: z.ZodOptional<z.ZodEnum<["user", "project", "instance"]>>;
8011
+ projectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8012
+ }, "strip", z.ZodTypeAny, {
8013
+ toolCallId: string;
8014
+ preferenceId: string;
8015
+ state: "edited" | "undone";
8016
+ content?: string | undefined;
8017
+ scope?: "instance" | "project" | "user" | undefined;
8018
+ projectId?: string | null | undefined;
8019
+ }, {
8020
+ toolCallId: string;
8021
+ preferenceId: string;
8022
+ state: "edited" | "undone";
8023
+ content?: string | undefined;
8024
+ scope?: "instance" | "project" | "user" | undefined;
8025
+ projectId?: string | null | undefined;
8026
+ }>;
8027
+ }, "strip", z.ZodTypeAny, {
8028
+ runId: string;
8029
+ agentId: string;
8030
+ userId?: string | undefined;
8031
+ responseId?: string | undefined;
8032
+ ts?: number | undefined;
8033
+ type: "preference-card";
8034
+ payload: {
8035
+ toolCallId: string;
8036
+ preferenceId: string;
8037
+ state: "edited" | "undone";
8038
+ content?: string | undefined;
8039
+ scope?: "instance" | "project" | "user" | undefined;
8040
+ projectId?: string | null | undefined;
8041
+ };
8042
+ }, {
8043
+ runId: string;
8044
+ agentId: string;
8045
+ userId?: string | undefined;
8046
+ responseId?: string | undefined;
8047
+ ts?: number | undefined;
8048
+ type: "preference-card";
8049
+ payload: {
8050
+ toolCallId: string;
8051
+ preferenceId: string;
8052
+ state: "edited" | "undone";
8053
+ content?: string | undefined;
8054
+ scope?: "instance" | "project" | "user" | undefined;
8055
+ projectId?: string | null | undefined;
8056
+ };
7634
8057
  }>, z.ZodObject<{
7635
8058
  runId: z.ZodString;
7636
8059
  agentId: z.ZodString;
@@ -7857,6 +8280,9 @@ export type InstanceAiSetupItemsEvent = Extract<InstanceAiEvent, {
7857
8280
  export type InstanceAiPreferencesAppliedEvent = Extract<InstanceAiEvent, {
7858
8281
  type: 'preferences-applied';
7859
8282
  }>;
8283
+ export type InstanceAiPreferenceCardEvent = Extract<InstanceAiEvent, {
8284
+ type: 'preference-card';
8285
+ }>;
7860
8286
  export type InstanceAiStatusEvent = Extract<InstanceAiEvent, {
7861
8287
  type: 'status';
7862
8288
  }>;
@@ -7932,9 +8358,11 @@ export declare const instanceAiAgentAttachmentSchema: z.ZodObject<{
7932
8358
  pending?: true | undefined;
7933
8359
  }>;
7934
8360
  export type InstanceAiAgentAttachment = z.infer<typeof instanceAiAgentAttachmentSchema>;
8361
+ export declare const MAX_INSTANCE_AI_NODES_PER_SET = 50;
7935
8362
  export declare const instanceAiNodesAttachmentSchema: z.ZodObject<{
7936
8363
  type: z.ZodLiteral<"nodes">;
7937
8364
  workflowId: z.ZodString;
8365
+ workflowName: z.ZodOptional<z.ZodString>;
7938
8366
  sets: z.ZodArray<z.ZodObject<{
7939
8367
  nodes: z.ZodArray<z.ZodObject<{
7940
8368
  id: z.ZodString;
@@ -8002,6 +8430,7 @@ export declare const instanceAiNodesAttachmentSchema: z.ZodObject<{
8002
8430
  }, "strip", z.ZodTypeAny, {
8003
8431
  type: "nodes";
8004
8432
  workflowId: string;
8433
+ workflowName?: string | undefined;
8005
8434
  sets: {
8006
8435
  nodes: {
8007
8436
  id: string;
@@ -8021,6 +8450,7 @@ export declare const instanceAiNodesAttachmentSchema: z.ZodObject<{
8021
8450
  }, {
8022
8451
  type: "nodes";
8023
8452
  workflowId: string;
8453
+ workflowName?: string | undefined;
8024
8454
  sets: {
8025
8455
  nodes: {
8026
8456
  id: string;
@@ -8075,6 +8505,7 @@ export declare const instanceAiResourceAttachmentSchema: z.ZodDiscriminatedUnion
8075
8505
  }>, z.ZodObject<{
8076
8506
  type: z.ZodLiteral<"nodes">;
8077
8507
  workflowId: z.ZodString;
8508
+ workflowName: z.ZodOptional<z.ZodString>;
8078
8509
  sets: z.ZodArray<z.ZodObject<{
8079
8510
  nodes: z.ZodArray<z.ZodObject<{
8080
8511
  id: z.ZodString;
@@ -8142,6 +8573,7 @@ export declare const instanceAiResourceAttachmentSchema: z.ZodDiscriminatedUnion
8142
8573
  }, "strip", z.ZodTypeAny, {
8143
8574
  type: "nodes";
8144
8575
  workflowId: string;
8576
+ workflowName?: string | undefined;
8145
8577
  sets: {
8146
8578
  nodes: {
8147
8579
  id: string;
@@ -8161,6 +8593,7 @@ export declare const instanceAiResourceAttachmentSchema: z.ZodDiscriminatedUnion
8161
8593
  }, {
8162
8594
  type: "nodes";
8163
8595
  workflowId: string;
8596
+ workflowName?: string | undefined;
8164
8597
  sets: {
8165
8598
  nodes: {
8166
8599
  id: string;
@@ -8230,6 +8663,7 @@ export declare const instanceAiAttachmentSchema: z.ZodDiscriminatedUnion<"type",
8230
8663
  }>, z.ZodObject<{
8231
8664
  type: z.ZodLiteral<"nodes">;
8232
8665
  workflowId: z.ZodString;
8666
+ workflowName: z.ZodOptional<z.ZodString>;
8233
8667
  sets: z.ZodArray<z.ZodObject<{
8234
8668
  nodes: z.ZodArray<z.ZodObject<{
8235
8669
  id: z.ZodString;
@@ -8297,6 +8731,7 @@ export declare const instanceAiAttachmentSchema: z.ZodDiscriminatedUnion<"type",
8297
8731
  }, "strip", z.ZodTypeAny, {
8298
8732
  type: "nodes";
8299
8733
  workflowId: string;
8734
+ workflowName?: string | undefined;
8300
8735
  sets: {
8301
8736
  nodes: {
8302
8737
  id: string;
@@ -8316,6 +8751,7 @@ export declare const instanceAiAttachmentSchema: z.ZodDiscriminatedUnion<"type",
8316
8751
  }, {
8317
8752
  type: "nodes";
8318
8753
  workflowId: string;
8754
+ workflowName?: string | undefined;
8319
8755
  sets: {
8320
8756
  nodes: {
8321
8757
  id: string;
@@ -8595,6 +9031,131 @@ export declare const instanceAiThreadArtifactsContextSchema: z.ZodObject<{
8595
9031
  activeId?: string | undefined;
8596
9032
  }>;
8597
9033
  export type InstanceAiThreadArtifactsContext = z.infer<typeof instanceAiThreadArtifactsContextSchema>;
9034
+ export declare const instanceAiThreadTabRefSchema: z.ZodObject<Pick<{
9035
+ type: z.ZodEnum<["workflow", "agent", "data-table"]>;
9036
+ id: z.ZodString;
9037
+ name: z.ZodOptional<z.ZodString>;
9038
+ projectId: z.ZodOptional<z.ZodString>;
9039
+ pending: z.ZodOptional<z.ZodLiteral<true>>;
9040
+ archived: z.ZodOptional<z.ZodLiteral<true>>;
9041
+ }, "id" | "type">, "strip", z.ZodTypeAny, {
9042
+ type: "agent" | "data-table" | "workflow";
9043
+ id: string;
9044
+ }, {
9045
+ type: "agent" | "data-table" | "workflow";
9046
+ id: string;
9047
+ }>;
9048
+ export type InstanceAiThreadTabRef = z.infer<typeof instanceAiThreadTabRefSchema>;
9049
+ export declare const instanceAiThreadTabSchema: z.ZodObject<Pick<{
9050
+ type: z.ZodEnum<["workflow", "agent", "data-table"]>;
9051
+ id: z.ZodString;
9052
+ name: z.ZodOptional<z.ZodString>;
9053
+ projectId: z.ZodOptional<z.ZodString>;
9054
+ pending: z.ZodOptional<z.ZodLiteral<true>>;
9055
+ archived: z.ZodOptional<z.ZodLiteral<true>>;
9056
+ }, "id" | "type"> & {
9057
+ name: z.ZodString;
9058
+ projectId: z.ZodOptional<z.ZodString>;
9059
+ }, "strip", z.ZodTypeAny, {
9060
+ type: "agent" | "data-table" | "workflow";
9061
+ id: string;
9062
+ name: string;
9063
+ projectId?: string | undefined;
9064
+ }, {
9065
+ type: "agent" | "data-table" | "workflow";
9066
+ id: string;
9067
+ name: string;
9068
+ projectId?: string | undefined;
9069
+ }>;
9070
+ export type InstanceAiThreadTab = z.infer<typeof instanceAiThreadTabSchema>;
9071
+ export declare const instanceAiThreadTabsStateSchema: z.ZodObject<{
9072
+ tabs: z.ZodArray<z.ZodObject<Pick<{
9073
+ type: z.ZodEnum<["workflow", "agent", "data-table"]>;
9074
+ id: z.ZodString;
9075
+ name: z.ZodOptional<z.ZodString>;
9076
+ projectId: z.ZodOptional<z.ZodString>;
9077
+ pending: z.ZodOptional<z.ZodLiteral<true>>;
9078
+ archived: z.ZodOptional<z.ZodLiteral<true>>;
9079
+ }, "id" | "type"> & {
9080
+ name: z.ZodString;
9081
+ projectId: z.ZodOptional<z.ZodString>;
9082
+ }, "strip", z.ZodTypeAny, {
9083
+ type: "agent" | "data-table" | "workflow";
9084
+ id: string;
9085
+ name: string;
9086
+ projectId?: string | undefined;
9087
+ }, {
9088
+ type: "agent" | "data-table" | "workflow";
9089
+ id: string;
9090
+ name: string;
9091
+ projectId?: string | undefined;
9092
+ }>, "many">;
9093
+ closedTabs: z.ZodArray<z.ZodObject<Pick<{
9094
+ type: z.ZodEnum<["workflow", "agent", "data-table"]>;
9095
+ id: z.ZodString;
9096
+ name: z.ZodOptional<z.ZodString>;
9097
+ projectId: z.ZodOptional<z.ZodString>;
9098
+ pending: z.ZodOptional<z.ZodLiteral<true>>;
9099
+ archived: z.ZodOptional<z.ZodLiteral<true>>;
9100
+ }, "id" | "type">, "strip", z.ZodTypeAny, {
9101
+ type: "agent" | "data-table" | "workflow";
9102
+ id: string;
9103
+ }, {
9104
+ type: "agent" | "data-table" | "workflow";
9105
+ id: string;
9106
+ }>, "many">;
9107
+ activeTab: z.ZodNullable<z.ZodObject<Pick<{
9108
+ type: z.ZodEnum<["workflow", "agent", "data-table"]>;
9109
+ id: z.ZodString;
9110
+ name: z.ZodOptional<z.ZodString>;
9111
+ projectId: z.ZodOptional<z.ZodString>;
9112
+ pending: z.ZodOptional<z.ZodLiteral<true>>;
9113
+ archived: z.ZodOptional<z.ZodLiteral<true>>;
9114
+ }, "id" | "type">, "strip", z.ZodTypeAny, {
9115
+ type: "agent" | "data-table" | "workflow";
9116
+ id: string;
9117
+ }, {
9118
+ type: "agent" | "data-table" | "workflow";
9119
+ id: string;
9120
+ }>>;
9121
+ previewOpen: z.ZodOptional<z.ZodBoolean>;
9122
+ }, "strip", z.ZodTypeAny, {
9123
+ tabs: {
9124
+ type: "agent" | "data-table" | "workflow";
9125
+ id: string;
9126
+ name: string;
9127
+ projectId?: string | undefined;
9128
+ }[];
9129
+ closedTabs: {
9130
+ type: "agent" | "data-table" | "workflow";
9131
+ id: string;
9132
+ }[];
9133
+ activeTab: {
9134
+ type: "agent" | "data-table" | "workflow";
9135
+ id: string;
9136
+ } | null;
9137
+ previewOpen?: boolean | undefined;
9138
+ }, {
9139
+ tabs: {
9140
+ type: "agent" | "data-table" | "workflow";
9141
+ id: string;
9142
+ name: string;
9143
+ projectId?: string | undefined;
9144
+ }[];
9145
+ closedTabs: {
9146
+ type: "agent" | "data-table" | "workflow";
9147
+ id: string;
9148
+ }[];
9149
+ activeTab: {
9150
+ type: "agent" | "data-table" | "workflow";
9151
+ id: string;
9152
+ } | null;
9153
+ previewOpen?: boolean | undefined;
9154
+ }>;
9155
+ export type InstanceAiThreadTabsState = z.infer<typeof instanceAiThreadTabsStateSchema>;
9156
+ export interface InstanceAiThreadTabsResponse {
9157
+ state: InstanceAiThreadTabsState | null;
9158
+ }
8598
9159
  export declare const instanceAiBuildModeSchema: z.ZodEnum<["default", "progressive"]>;
8599
9160
  export type InstanceAiBuildMode = z.infer<typeof instanceAiBuildModeSchema>;
8600
9161
  export declare const instanceAiPromptConfigurationSchema: z.ZodObject<{
@@ -8619,6 +9180,7 @@ export declare const instanceAiPromptConfigurationSchema: z.ZodObject<{
8619
9180
  export type InstanceAiPromptConfiguration = z.infer<typeof instanceAiPromptConfigurationSchema>;
8620
9181
  export declare const computerUseChannelSchema: z.ZodEnum<["localComputer", "browser"]>;
8621
9182
  export type ComputerUseChannel = z.infer<typeof computerUseChannelSchema>;
9183
+ export declare const MAX_INSTANCE_AI_ATTACHMENTS_PER_MESSAGE = 10;
8622
9184
  declare const InstanceAiSendMessageRequest_base: import("../zod-class").ZodClass<{
8623
9185
  message: string;
8624
9186
  attachments?: ({
@@ -8640,6 +9202,7 @@ declare const InstanceAiSendMessageRequest_base: import("../zod-class").ZodClass
8640
9202
  } | {
8641
9203
  type: "nodes";
8642
9204
  workflowId: string;
9205
+ workflowName?: string | undefined;
8643
9206
  sets: {
8644
9207
  nodes: {
8645
9208
  id: string;
@@ -8698,6 +9261,7 @@ declare const InstanceAiSendMessageRequest_base: import("../zod-class").ZodClass
8698
9261
  computerUseChannels?: ("browser" | "localComputer")[] | undefined;
8699
9262
  mode?: "default" | "progressive" | undefined;
8700
9263
  promptVersion?: string | undefined;
9264
+ observerThresholdTokens?: number | undefined;
8701
9265
  }, {
8702
9266
  message: z.ZodDefault<z.ZodString>;
8703
9267
  attachments: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -8751,6 +9315,7 @@ declare const InstanceAiSendMessageRequest_base: import("../zod-class").ZodClass
8751
9315
  }>, z.ZodObject<{
8752
9316
  type: z.ZodLiteral<"nodes">;
8753
9317
  workflowId: z.ZodString;
9318
+ workflowName: z.ZodOptional<z.ZodString>;
8754
9319
  sets: z.ZodArray<z.ZodObject<{
8755
9320
  nodes: z.ZodArray<z.ZodObject<{
8756
9321
  id: z.ZodString;
@@ -8818,6 +9383,7 @@ declare const InstanceAiSendMessageRequest_base: import("../zod-class").ZodClass
8818
9383
  }, "strip", z.ZodTypeAny, {
8819
9384
  type: "nodes";
8820
9385
  workflowId: string;
9386
+ workflowName?: string | undefined;
8821
9387
  sets: {
8822
9388
  nodes: {
8823
9389
  id: string;
@@ -8837,6 +9403,7 @@ declare const InstanceAiSendMessageRequest_base: import("../zod-class").ZodClass
8837
9403
  }, {
8838
9404
  type: "nodes";
8839
9405
  workflowId: string;
9406
+ workflowName?: string | undefined;
8840
9407
  sets: {
8841
9408
  nodes: {
8842
9409
  id: string;
@@ -8997,6 +9564,7 @@ declare const InstanceAiSendMessageRequest_base: import("../zod-class").ZodClass
8997
9564
  computerUseChannels: z.ZodOptional<z.ZodArray<z.ZodEnum<["localComputer", "browser"]>, "many">>;
8998
9565
  mode: z.ZodOptional<z.ZodEnum<["default", "progressive"]>>;
8999
9566
  promptVersion: z.ZodOptional<z.ZodString>;
9567
+ observerThresholdTokens: z.ZodOptional<z.ZodNumber>;
9000
9568
  }>;
9001
9569
  export declare class InstanceAiSendMessageRequest extends InstanceAiSendMessageRequest_base {
9002
9570
  }
@@ -9015,6 +9583,11 @@ export declare const INSTANCE_AI_PREFILL_TYPES: readonly ['handoff_execution_err
9015
9583
  export type InstanceAiPrefillType = (typeof INSTANCE_AI_PREFILL_TYPES)[number];
9016
9584
  export declare const INSTANCE_AI_PREFILL_TYPE_FALLBACK = "unknown";
9017
9585
  export type InstanceAiPrefillTypeReported = InstanceAiPrefillType | typeof INSTANCE_AI_PREFILL_TYPE_FALLBACK;
9586
+ export interface InstanceAiPrefillPayload {
9587
+ text: string;
9588
+ prefillType: InstanceAiPrefillTypeReported;
9589
+ prefillId?: string;
9590
+ }
9018
9591
  export declare const INSTANCE_AI_THREAD_ORIGINS: readonly ['internal', 'external'];
9019
9592
  export type InstanceAiThreadOrigin = (typeof INSTANCE_AI_THREAD_ORIGINS)[number];
9020
9593
  declare const InstanceAiEnsureThreadRequest_base: import("../zod-class").ZodClass<{
@@ -9075,6 +9648,14 @@ export declare class InstanceAiThreadMessagesQuery extends InstanceAiThreadMessa
9075
9648
  export interface InstanceAiSendMessageResponse {
9076
9649
  runId: string;
9077
9650
  }
9651
+ export interface InstanceAiPreferenceCardUndoResponse {
9652
+ ok: true;
9653
+ event: InstanceAiPreferenceCardEvent;
9654
+ }
9655
+ export interface InstanceAiPreferenceCardEditResponse {
9656
+ preference: AiPreferenceDto;
9657
+ event: InstanceAiPreferenceCardEvent;
9658
+ }
9078
9659
  export declare const INSTANCE_AI_RUN_LIMIT_REASONS: readonly ['user_run_limit', 'instance_run_limit'];
9079
9660
  export type InstanceAiRunLimitReason = (typeof INSTANCE_AI_RUN_LIMIT_REASONS)[number];
9080
9661
  export type InstanceAiRunLimitMeta = {
@@ -9090,10 +9671,17 @@ export interface InstanceAiToolCallState {
9090
9671
  args: Record<string, unknown>;
9091
9672
  result?: unknown;
9092
9673
  error?: string;
9674
+ interrupted?: true;
9093
9675
  isLoading: boolean;
9094
9676
  renderHint?: 'tasks' | 'builder' | 'researcher' | 'data-table' | 'planner' | 'eval-setup' | 'skill' | 'default';
9095
9677
  confirmation?: InstanceAiConfirmation;
9096
9678
  confirmationStatus?: 'pending' | 'approved' | 'denied';
9679
+ preferenceCard?: {
9680
+ state: 'edited' | 'undone';
9681
+ content?: string;
9682
+ scope?: AiPreferenceScope;
9683
+ projectId?: string | null;
9684
+ };
9097
9685
  startedAt?: string;
9098
9686
  completedAt?: string;
9099
9687
  }
@@ -9113,13 +9701,21 @@ export type InstanceAiTimelineEntry = {
9113
9701
  type: 'child';
9114
9702
  agentId: string;
9115
9703
  responseId?: string;
9116
- };
9117
- export interface InstanceAiAgentNode {
9704
+ } | {
9705
+ type: 'instance-context';
9706
+ runId: string;
9707
+ injection: InstanceContextInjection;
9708
+ reach?: InstanceContextReach;
9709
+ responseId?: string;
9710
+ };
9711
+ export interface InstanceAiAgentNode {
9118
9712
  agentId: string;
9119
9713
  role: string;
9120
9714
  tools?: string[];
9121
9715
  taskId?: string;
9122
9716
  kind?: InstanceAiAgentKind;
9717
+ activity?: InstanceAiAgentActivity;
9718
+ agentChange?: InstanceAiAgentChange;
9123
9719
  title?: string;
9124
9720
  subtitle?: string;
9125
9721
  goal?: string;
@@ -9258,6 +9854,7 @@ export interface InstanceAiRichMessagesResponse {
9258
9854
  projectId?: string;
9259
9855
  messages: InstanceAiMessage[];
9260
9856
  nextEventId: number;
9857
+ appliedPreferences?: AiPreferencesAppliedPayload;
9261
9858
  }
9262
9859
  export declare const INSTANCE_AI_MEMORY_TASK_WAIT_TIMEOUT_MS = 30000;
9263
9860
  export type InstanceAiMemoryTaskKind = 'observer' | 'reflector';
@@ -9313,6 +9910,7 @@ declare const instanceAiPermissionsSchema: z.ZodObject<{
9313
9910
  restoreWorkflowVersion: z.ZodEnum<["require_approval", "always_allow", "blocked"]>;
9314
9911
  executeNode: z.ZodEnum<["require_approval", "always_allow", "blocked"]>;
9315
9912
  executeMcpTool: z.ZodEnum<["require_approval", "always_allow", "blocked"]>;
9913
+ createPreference: z.ZodEnum<["require_approval", "always_allow", "blocked"]>;
9316
9914
  }, "strip", z.ZodTypeAny, {
9317
9915
  createWorkflow: "always_allow" | "blocked" | "require_approval";
9318
9916
  updateWorkflow: "always_allow" | "blocked" | "require_approval";
@@ -9336,6 +9934,7 @@ declare const instanceAiPermissionsSchema: z.ZodObject<{
9336
9934
  restoreWorkflowVersion: "always_allow" | "blocked" | "require_approval";
9337
9935
  executeNode: "always_allow" | "blocked" | "require_approval";
9338
9936
  executeMcpTool: "always_allow" | "blocked" | "require_approval";
9937
+ createPreference: "always_allow" | "blocked" | "require_approval";
9339
9938
  }, {
9340
9939
  createWorkflow: "always_allow" | "blocked" | "require_approval";
9341
9940
  updateWorkflow: "always_allow" | "blocked" | "require_approval";
@@ -9359,6 +9958,7 @@ declare const instanceAiPermissionsSchema: z.ZodObject<{
9359
9958
  restoreWorkflowVersion: "always_allow" | "blocked" | "require_approval";
9360
9959
  executeNode: "always_allow" | "blocked" | "require_approval";
9361
9960
  executeMcpTool: "always_allow" | "blocked" | "require_approval";
9961
+ createPreference: "always_allow" | "blocked" | "require_approval";
9362
9962
  }>;
9363
9963
  export type InstanceAiPermissions = z.infer<typeof instanceAiPermissionsSchema>;
9364
9964
  export declare const DEFAULT_INSTANCE_AI_PERMISSIONS: InstanceAiPermissions;
@@ -9465,6 +10065,7 @@ declare const InstanceAiAdminSettingsUpdateRequest_base: import("../zod-class").
9465
10065
  restoreWorkflowVersion?: "always_allow" | "blocked" | "require_approval" | undefined;
9466
10066
  executeNode?: "always_allow" | "blocked" | "require_approval" | undefined;
9467
10067
  executeMcpTool?: "always_allow" | "blocked" | "require_approval" | undefined;
10068
+ createPreference?: "always_allow" | "blocked" | "require_approval" | undefined;
9468
10069
  } | undefined;
9469
10070
  mcpServers?: string | undefined;
9470
10071
  mcpAccessEnabled?: boolean | undefined;
@@ -9495,7 +10096,7 @@ declare const InstanceAiAdminSettingsUpdateRequest_base: import("../zod-class").
9495
10096
  browserUseEnabled?: boolean | undefined;
9496
10097
  }, {
9497
10098
  enabled: z.ZodOptional<z.ZodBoolean>;
9498
- permissions: z.ZodOptional<z.ZodObject<{
10099
+ permissions: z.ZodOptional<z.ZodEffects<z.ZodObject<{
9499
10100
  createWorkflow: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow", "blocked"]>>;
9500
10101
  updateWorkflow: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow", "blocked"]>>;
9501
10102
  runWorkflow: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow", "blocked"]>>;
@@ -9518,6 +10119,7 @@ declare const InstanceAiAdminSettingsUpdateRequest_base: import("../zod-class").
9518
10119
  restoreWorkflowVersion: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow", "blocked"]>>;
9519
10120
  executeNode: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow", "blocked"]>>;
9520
10121
  executeMcpTool: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow", "blocked"]>>;
10122
+ createPreference: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow", "blocked"]>>;
9521
10123
  }, "strip", z.ZodTypeAny, {
9522
10124
  createWorkflow?: "always_allow" | "blocked" | "require_approval" | undefined;
9523
10125
  updateWorkflow?: "always_allow" | "blocked" | "require_approval" | undefined;
@@ -9541,6 +10143,55 @@ declare const InstanceAiAdminSettingsUpdateRequest_base: import("../zod-class").
9541
10143
  restoreWorkflowVersion?: "always_allow" | "blocked" | "require_approval" | undefined;
9542
10144
  executeNode?: "always_allow" | "blocked" | "require_approval" | undefined;
9543
10145
  executeMcpTool?: "always_allow" | "blocked" | "require_approval" | undefined;
10146
+ createPreference?: "always_allow" | "blocked" | "require_approval" | undefined;
10147
+ }, {
10148
+ createWorkflow?: "always_allow" | "blocked" | "require_approval" | undefined;
10149
+ updateWorkflow?: "always_allow" | "blocked" | "require_approval" | undefined;
10150
+ runWorkflow?: "always_allow" | "blocked" | "require_approval" | undefined;
10151
+ publishWorkflow?: "always_allow" | "blocked" | "require_approval" | undefined;
10152
+ deleteWorkflow?: "always_allow" | "blocked" | "require_approval" | undefined;
10153
+ createCredential?: "always_allow" | "blocked" | "require_approval" | undefined;
10154
+ deleteCredential?: "always_allow" | "blocked" | "require_approval" | undefined;
10155
+ createFolder?: "always_allow" | "blocked" | "require_approval" | undefined;
10156
+ deleteFolder?: "always_allow" | "blocked" | "require_approval" | undefined;
10157
+ moveWorkflowToFolder?: "always_allow" | "blocked" | "require_approval" | undefined;
10158
+ tagWorkflow?: "always_allow" | "blocked" | "require_approval" | undefined;
10159
+ createDataTable?: "always_allow" | "blocked" | "require_approval" | undefined;
10160
+ deleteDataTable?: "always_allow" | "blocked" | "require_approval" | undefined;
10161
+ mutateDataTableSchema?: "always_allow" | "blocked" | "require_approval" | undefined;
10162
+ mutateDataTableRows?: "always_allow" | "blocked" | "require_approval" | undefined;
10163
+ cleanupTestExecutions?: "always_allow" | "blocked" | "require_approval" | undefined;
10164
+ readFilesystem?: "always_allow" | "blocked" | "require_approval" | undefined;
10165
+ fetchUrl?: "always_allow" | "blocked" | "require_approval" | undefined;
10166
+ webSearch?: "always_allow" | "blocked" | "require_approval" | undefined;
10167
+ restoreWorkflowVersion?: "always_allow" | "blocked" | "require_approval" | undefined;
10168
+ executeNode?: "always_allow" | "blocked" | "require_approval" | undefined;
10169
+ executeMcpTool?: "always_allow" | "blocked" | "require_approval" | undefined;
10170
+ createPreference?: "always_allow" | "blocked" | "require_approval" | undefined;
10171
+ }>, {
10172
+ createWorkflow?: "always_allow" | "blocked" | "require_approval" | undefined;
10173
+ updateWorkflow?: "always_allow" | "blocked" | "require_approval" | undefined;
10174
+ runWorkflow?: "always_allow" | "blocked" | "require_approval" | undefined;
10175
+ publishWorkflow?: "always_allow" | "blocked" | "require_approval" | undefined;
10176
+ deleteWorkflow?: "always_allow" | "blocked" | "require_approval" | undefined;
10177
+ createCredential?: "always_allow" | "blocked" | "require_approval" | undefined;
10178
+ deleteCredential?: "always_allow" | "blocked" | "require_approval" | undefined;
10179
+ createFolder?: "always_allow" | "blocked" | "require_approval" | undefined;
10180
+ deleteFolder?: "always_allow" | "blocked" | "require_approval" | undefined;
10181
+ moveWorkflowToFolder?: "always_allow" | "blocked" | "require_approval" | undefined;
10182
+ tagWorkflow?: "always_allow" | "blocked" | "require_approval" | undefined;
10183
+ createDataTable?: "always_allow" | "blocked" | "require_approval" | undefined;
10184
+ deleteDataTable?: "always_allow" | "blocked" | "require_approval" | undefined;
10185
+ mutateDataTableSchema?: "always_allow" | "blocked" | "require_approval" | undefined;
10186
+ mutateDataTableRows?: "always_allow" | "blocked" | "require_approval" | undefined;
10187
+ cleanupTestExecutions?: "always_allow" | "blocked" | "require_approval" | undefined;
10188
+ readFilesystem?: "always_allow" | "blocked" | "require_approval" | undefined;
10189
+ fetchUrl?: "always_allow" | "blocked" | "require_approval" | undefined;
10190
+ webSearch?: "always_allow" | "blocked" | "require_approval" | undefined;
10191
+ restoreWorkflowVersion?: "always_allow" | "blocked" | "require_approval" | undefined;
10192
+ executeNode?: "always_allow" | "blocked" | "require_approval" | undefined;
10193
+ executeMcpTool?: "always_allow" | "blocked" | "require_approval" | undefined;
10194
+ createPreference?: "always_allow" | "blocked" | "require_approval" | undefined;
9544
10195
  }, {
9545
10196
  createWorkflow?: "always_allow" | "blocked" | "require_approval" | undefined;
9546
10197
  updateWorkflow?: "always_allow" | "blocked" | "require_approval" | undefined;
@@ -9564,6 +10215,7 @@ declare const InstanceAiAdminSettingsUpdateRequest_base: import("../zod-class").
9564
10215
  restoreWorkflowVersion?: "always_allow" | "blocked" | "require_approval" | undefined;
9565
10216
  executeNode?: "always_allow" | "blocked" | "require_approval" | undefined;
9566
10217
  executeMcpTool?: "always_allow" | "blocked" | "require_approval" | undefined;
10218
+ createPreference?: "always_allow" | "blocked" | "require_approval" | undefined;
9567
10219
  }>>;
9568
10220
  mcpServers: z.ZodOptional<z.ZodString>;
9569
10221
  mcpAccessEnabled: z.ZodOptional<z.ZodBoolean>;
@@ -9779,13 +10431,14 @@ export interface InstanceAiEvalMockedCredential {
9779
10431
  export declare const EVAL_VENDOR_SDK_INTERCEPTION_FLAG = "085_eval_vendor_sdk_interception";
9780
10432
  export declare const CONFIG_EVALUATIONS_FLAG = "088_config_evaluations";
9781
10433
  export declare const CONFIG_EVALUATIONS_ENABLED_VARIANT = "variant";
9782
- export declare const INSTANCE_AI_MCP_CONNECTIONS_FLAG = "089_instance_ai_mcp_connections";
9783
- export declare const INSTANCE_AI_MCP_CONNECTIONS_ENABLED_VARIANT = "variant";
9784
10434
  export declare const CANVAS_NODE_CONTEXT_FLAG = "104_canvas_aia_node_context";
10435
+ export declare const AI_ASSISTANT_AT_MENTIONS_FLAG = "116_at_mentions_enabled";
9785
10436
  export declare const INSTANCE_AI_CONVERSATION_HISTORY_FLAG = "109_instance_ai_conversation_history";
9786
10437
  export declare const INSTANCE_AI_CONVERSATION_HISTORY_ENABLED_VARIANT = "variant";
9787
10438
  export declare const INSTANCE_AI_PROGRESSIVE_BUILDING_FLAG = "111_instance_ai_progressive_building";
9788
10439
  export declare const INSTANCE_AI_PROGRESSIVE_BUILDING_ENABLED_VARIANT = "variant";
10440
+ export declare const INSTANCE_AI_CONCISE_STYLE_FLAG = "124_instance_ai_concise_style";
10441
+ export declare const INSTANCE_AI_CONCISE_STYLE_ENABLED_VARIANT = "variant";
9789
10442
  export declare const INSTANCE_AI_SETUP_PANEL_FLAG = "118_instance_ai_setup_overhaul";
9790
10443
  export declare const INSTANCE_AI_SETUP_PANEL_ENABLED_VARIANT = "variant";
9791
10444
  export declare const INSTANCE_AI_NODE_USAGE_FLAG = "109_instance_ai_node_usage";
@@ -9848,6 +10501,18 @@ export interface InstanceAiEvalAgentSkippedFeature {
9848
10501
  feature: string;
9849
10502
  reason: string;
9850
10503
  }
10504
+ export interface InstanceAiEvalObservation {
10505
+ marker: 'critical' | 'important' | 'info' | 'completion';
10506
+ text: string;
10507
+ tokenCount: number;
10508
+ }
10509
+ export interface InstanceAiEvalThreadMemoryResponse {
10510
+ observations: InstanceAiEvalObservation[];
10511
+ cursor: {
10512
+ lastObservedMessageId: string;
10513
+ lastObservedAt: string;
10514
+ } | null;
10515
+ }
9851
10516
  export interface InstanceAiEvalAgentExecutionResult {
9852
10517
  runId: string;
9853
10518
  success: boolean;
@@ -10554,9 +11219,25 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
10554
11219
  enabled: boolean;
10555
11220
  }>, "many">>;
10556
11221
  providerTools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
10557
- integrations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", readonly [z.ZodObject<{
11222
+ integrations: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10558
11223
  type: z.ZodLiteral<"telegram">;
10559
11224
  credentialId: z.ZodString;
11225
+ approval: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
11226
+ mode: z.ZodLiteral<"global">;
11227
+ }, "strict", z.ZodTypeAny, {
11228
+ mode: "global";
11229
+ }, {
11230
+ mode: "global";
11231
+ }>, z.ZodObject<{
11232
+ mode: z.ZodLiteral<"selected">;
11233
+ tools: z.ZodArray<z.ZodString, "many">;
11234
+ }, "strict", z.ZodTypeAny, {
11235
+ mode: "selected";
11236
+ tools: string[];
11237
+ }, {
11238
+ mode: "selected";
11239
+ tools: string[];
11240
+ }>]>>;
10560
11241
  } & {
10561
11242
  settings: z.ZodOptional<z.ZodEffects<z.ZodObject<{
10562
11243
  accessMode: z.ZodEnum<["private", "public"]>;
@@ -10582,6 +11263,12 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
10582
11263
  }, "strip", z.ZodTypeAny, {
10583
11264
  type: "telegram";
10584
11265
  credentialId: string;
11266
+ approval?: {
11267
+ mode: "global";
11268
+ } | {
11269
+ mode: "selected";
11270
+ tools: string[];
11271
+ } | undefined;
10585
11272
  settings?: {
10586
11273
  accessMode: "private" | "public";
10587
11274
  allowedUsers: string[];
@@ -10590,6 +11277,12 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
10590
11277
  }, {
10591
11278
  type: "telegram";
10592
11279
  credentialId: string;
11280
+ approval?: {
11281
+ mode: "global";
11282
+ } | {
11283
+ mode: "selected";
11284
+ tools: string[];
11285
+ } | undefined;
10593
11286
  settings?: {
10594
11287
  accessMode: "private" | "public";
10595
11288
  allowedUsers?: string[] | undefined;
@@ -10598,6 +11291,22 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
10598
11291
  }>, z.ZodObject<{
10599
11292
  type: z.ZodLiteral<"slack">;
10600
11293
  credentialId: z.ZodString;
11294
+ approval: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
11295
+ mode: z.ZodLiteral<"global">;
11296
+ }, "strict", z.ZodTypeAny, {
11297
+ mode: "global";
11298
+ }, {
11299
+ mode: "global";
11300
+ }>, z.ZodObject<{
11301
+ mode: z.ZodLiteral<"selected">;
11302
+ tools: z.ZodArray<z.ZodString, "many">;
11303
+ }, "strict", z.ZodTypeAny, {
11304
+ mode: "selected";
11305
+ tools: string[];
11306
+ }, {
11307
+ mode: "selected";
11308
+ tools: string[];
11309
+ }>]>>;
10601
11310
  } & {
10602
11311
  settings: z.ZodOptional<z.ZodObject<{
10603
11312
  messagingExperience: z.ZodEnum<["assistant", "agent"]>;
@@ -10612,6 +11321,12 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
10612
11321
  }, "strip", z.ZodTypeAny, {
10613
11322
  type: "slack";
10614
11323
  credentialId: string;
11324
+ approval?: {
11325
+ mode: "global";
11326
+ } | {
11327
+ mode: "selected";
11328
+ tools: string[];
11329
+ } | undefined;
10615
11330
  settings?: {
10616
11331
  messagingExperience: "agent" | "assistant";
10617
11332
  sessionIdleTimeoutMinutes?: number | null | undefined;
@@ -10619,6 +11334,12 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
10619
11334
  }, {
10620
11335
  type: "slack";
10621
11336
  credentialId: string;
11337
+ approval?: {
11338
+ mode: "global";
11339
+ } | {
11340
+ mode: "selected";
11341
+ tools: string[];
11342
+ } | undefined;
10622
11343
  settings?: {
10623
11344
  messagingExperience: "agent" | "assistant";
10624
11345
  sessionIdleTimeoutMinutes?: number | null | undefined;
@@ -10626,6 +11347,22 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
10626
11347
  }>, z.ZodObject<{
10627
11348
  type: z.ZodLiteral<"linear">;
10628
11349
  credentialId: z.ZodString;
11350
+ approval: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
11351
+ mode: z.ZodLiteral<"global">;
11352
+ }, "strict", z.ZodTypeAny, {
11353
+ mode: "global";
11354
+ }, {
11355
+ mode: "global";
11356
+ }>, z.ZodObject<{
11357
+ mode: z.ZodLiteral<"selected">;
11358
+ tools: z.ZodArray<z.ZodString, "many">;
11359
+ }, "strict", z.ZodTypeAny, {
11360
+ mode: "selected";
11361
+ tools: string[];
11362
+ }, {
11363
+ mode: "selected";
11364
+ tools: string[];
11365
+ }>]>>;
10629
11366
  } & {
10630
11367
  settings: z.ZodOptional<z.ZodObject<{
10631
11368
  sessionIdleTimeoutMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -10637,18 +11374,46 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
10637
11374
  }, "strip", z.ZodTypeAny, {
10638
11375
  type: "linear";
10639
11376
  credentialId: string;
11377
+ approval?: {
11378
+ mode: "global";
11379
+ } | {
11380
+ mode: "selected";
11381
+ tools: string[];
11382
+ } | undefined;
10640
11383
  settings?: {
10641
11384
  sessionIdleTimeoutMinutes?: number | null | undefined;
10642
11385
  } | undefined;
10643
11386
  }, {
10644
11387
  type: "linear";
10645
11388
  credentialId: string;
11389
+ approval?: {
11390
+ mode: "global";
11391
+ } | {
11392
+ mode: "selected";
11393
+ tools: string[];
11394
+ } | undefined;
10646
11395
  settings?: {
10647
11396
  sessionIdleTimeoutMinutes?: number | null | undefined;
10648
11397
  } | undefined;
10649
11398
  }>, z.ZodObject<{
10650
11399
  type: z.ZodLiteral<"discord">;
10651
11400
  credentialId: z.ZodString;
11401
+ approval: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
11402
+ mode: z.ZodLiteral<"global">;
11403
+ }, "strict", z.ZodTypeAny, {
11404
+ mode: "global";
11405
+ }, {
11406
+ mode: "global";
11407
+ }>, z.ZodObject<{
11408
+ mode: z.ZodLiteral<"selected">;
11409
+ tools: z.ZodArray<z.ZodString, "many">;
11410
+ }, "strict", z.ZodTypeAny, {
11411
+ mode: "selected";
11412
+ tools: string[];
11413
+ }, {
11414
+ mode: "selected";
11415
+ tools: string[];
11416
+ }>]>>;
10652
11417
  } & {
10653
11418
  settings: z.ZodOptional<z.ZodObject<{
10654
11419
  sessionIdleTimeoutMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -10660,49 +11425,30 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
10660
11425
  }, "strip", z.ZodTypeAny, {
10661
11426
  type: "discord";
10662
11427
  credentialId: string;
11428
+ approval?: {
11429
+ mode: "global";
11430
+ } | {
11431
+ mode: "selected";
11432
+ tools: string[];
11433
+ } | undefined;
10663
11434
  settings?: {
10664
11435
  sessionIdleTimeoutMinutes?: number | null | undefined;
10665
11436
  } | undefined;
10666
11437
  }, {
10667
11438
  type: "discord";
10668
11439
  credentialId: string;
11440
+ approval?: {
11441
+ mode: "global";
11442
+ } | {
11443
+ mode: "selected";
11444
+ tools: string[];
11445
+ } | undefined;
10669
11446
  settings?: {
10670
11447
  sessionIdleTimeoutMinutes?: number | null | undefined;
10671
11448
  } | undefined;
10672
- }>]>, "many">>;
10673
- mcpServers: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
10674
- name: z.ZodEffects<z.ZodString, string, string>;
10675
- description: z.ZodOptional<z.ZodString>;
10676
- url: z.ZodString;
10677
- transport: z.ZodDefault<z.ZodEnum<["sse", "streamableHttp"]>>;
10678
- authentication: z.ZodDefault<z.ZodUnion<[z.ZodEnum<["none", "bearerAuth", "headerAuth", "multipleHeadersAuth", "mcpOAuth2Api"]>, z.ZodString]>>;
10679
- credential: z.ZodOptional<z.ZodString>;
10680
- metadata: z.ZodOptional<z.ZodObject<{
10681
- nodeTypeName: z.ZodOptional<z.ZodString>;
10682
- }, "strip", z.ZodTypeAny, {
10683
- nodeTypeName?: string | undefined;
10684
- }, {
10685
- nodeTypeName?: string | undefined;
10686
- }>>;
10687
- toolFilter: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
10688
- mode: z.ZodLiteral<"allow">;
10689
- tools: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
10690
- }, "strict", z.ZodTypeAny, {
10691
- mode: "allow";
10692
- tools: string[];
10693
- }, {
10694
- mode: "allow";
10695
- tools?: string[] | undefined;
10696
- }>, z.ZodObject<{
10697
- mode: z.ZodLiteral<"exclude">;
10698
- tools: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
10699
- }, "strict", z.ZodTypeAny, {
10700
- mode: "exclude";
10701
- tools: string[];
10702
- }, {
10703
- mode: "exclude";
10704
- tools?: string[] | undefined;
10705
- }>]>>;
11449
+ }>, z.ZodObject<{
11450
+ type: z.ZodLiteral<"teams">;
11451
+ credentialId: z.ZodString;
10706
11452
  approval: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
10707
11453
  mode: z.ZodLiteral<"global">;
10708
11454
  }, "strict", z.ZodTypeAny, {
@@ -10719,37 +11465,318 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
10719
11465
  mode: "selected";
10720
11466
  tools: string[];
10721
11467
  }>]>>;
10722
- connectionTimeoutMs: z.ZodOptional<z.ZodNumber>;
10723
- }, "strict", z.ZodTypeAny, {
10724
- name: string;
10725
- description?: string | undefined;
10726
- url: string;
10727
- transport: "sse" | "streamableHttp";
10728
- authentication: string;
10729
- credential?: string | undefined;
10730
- metadata?: {
10731
- nodeTypeName?: string | undefined;
10732
- } | undefined;
10733
- toolFilter?: {
10734
- mode: "allow";
10735
- tools: string[];
11468
+ } & {
11469
+ settings: z.ZodOptional<z.ZodEffects<z.ZodObject<{
11470
+ sessionIdleTimeoutMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
11471
+ displayName: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
11472
+ description: z.ZodOptional<z.ZodString>;
11473
+ teamChannels: z.ZodOptional<z.ZodBoolean>;
11474
+ groupChats: z.ZodOptional<z.ZodBoolean>;
11475
+ readAllChannelMessages: z.ZodOptional<z.ZodBoolean>;
11476
+ readAllGroupMessages: z.ZodOptional<z.ZodBoolean>;
11477
+ }, "strict", z.ZodTypeAny, {
11478
+ sessionIdleTimeoutMinutes?: number | null | undefined;
11479
+ displayName?: string | undefined;
11480
+ description?: string | undefined;
11481
+ teamChannels?: boolean | undefined;
11482
+ groupChats?: boolean | undefined;
11483
+ readAllChannelMessages?: boolean | undefined;
11484
+ readAllGroupMessages?: boolean | undefined;
11485
+ }, {
11486
+ sessionIdleTimeoutMinutes?: number | null | undefined;
11487
+ displayName?: string | undefined;
11488
+ description?: string | undefined;
11489
+ teamChannels?: boolean | undefined;
11490
+ groupChats?: boolean | undefined;
11491
+ readAllChannelMessages?: boolean | undefined;
11492
+ readAllGroupMessages?: boolean | undefined;
11493
+ }>, {
11494
+ sessionIdleTimeoutMinutes?: number | null | undefined;
11495
+ displayName?: string | undefined;
11496
+ description?: string | undefined;
11497
+ teamChannels?: boolean | undefined;
11498
+ groupChats?: boolean | undefined;
11499
+ readAllChannelMessages?: boolean | undefined;
11500
+ readAllGroupMessages?: boolean | undefined;
11501
+ }, {
11502
+ sessionIdleTimeoutMinutes?: number | null | undefined;
11503
+ displayName?: string | undefined;
11504
+ description?: string | undefined;
11505
+ teamChannels?: boolean | undefined;
11506
+ groupChats?: boolean | undefined;
11507
+ readAllChannelMessages?: boolean | undefined;
11508
+ readAllGroupMessages?: boolean | undefined;
11509
+ }>>;
11510
+ }, "strip", z.ZodTypeAny, {
11511
+ type: "teams";
11512
+ credentialId: string;
11513
+ approval?: {
11514
+ mode: "global";
10736
11515
  } | {
10737
- mode: "exclude";
11516
+ mode: "selected";
10738
11517
  tools: string[];
10739
11518
  } | undefined;
11519
+ settings?: {
11520
+ sessionIdleTimeoutMinutes?: number | null | undefined;
11521
+ displayName?: string | undefined;
11522
+ description?: string | undefined;
11523
+ teamChannels?: boolean | undefined;
11524
+ groupChats?: boolean | undefined;
11525
+ readAllChannelMessages?: boolean | undefined;
11526
+ readAllGroupMessages?: boolean | undefined;
11527
+ } | undefined;
11528
+ }, {
11529
+ type: "teams";
11530
+ credentialId: string;
10740
11531
  approval?: {
10741
11532
  mode: "global";
10742
11533
  } | {
10743
11534
  mode: "selected";
10744
11535
  tools: string[];
10745
11536
  } | undefined;
10746
- connectionTimeoutMs?: number | undefined;
11537
+ settings?: {
11538
+ sessionIdleTimeoutMinutes?: number | null | undefined;
11539
+ displayName?: string | undefined;
11540
+ description?: string | undefined;
11541
+ teamChannels?: boolean | undefined;
11542
+ groupChats?: boolean | undefined;
11543
+ readAllChannelMessages?: boolean | undefined;
11544
+ readAllGroupMessages?: boolean | undefined;
11545
+ } | undefined;
11546
+ }>, z.ZodObject<{
11547
+ type: z.ZodLiteral<"n8n_chat">;
11548
+ credentialId: z.ZodDefault<z.ZodLiteral<"">>;
11549
+ }, "strict", z.ZodTypeAny, {
11550
+ type: "n8n_chat";
11551
+ credentialId: "";
10747
11552
  }, {
10748
- name: string;
10749
- description?: string | undefined;
10750
- url: string;
10751
- transport?: "sse" | "streamableHttp" | undefined;
10752
- authentication?: string | undefined;
11553
+ type: "n8n_chat";
11554
+ credentialId?: "" | undefined;
11555
+ }>]>, "many">, ({
11556
+ type: "telegram";
11557
+ credentialId: string;
11558
+ approval?: {
11559
+ mode: "global";
11560
+ } | {
11561
+ mode: "selected";
11562
+ tools: string[];
11563
+ } | undefined;
11564
+ settings?: {
11565
+ accessMode: "private" | "public";
11566
+ allowedUsers: string[];
11567
+ sessionIdleTimeoutMinutes?: number | null | undefined;
11568
+ } | undefined;
11569
+ } | {
11570
+ type: "slack";
11571
+ credentialId: string;
11572
+ approval?: {
11573
+ mode: "global";
11574
+ } | {
11575
+ mode: "selected";
11576
+ tools: string[];
11577
+ } | undefined;
11578
+ settings?: {
11579
+ messagingExperience: "agent" | "assistant";
11580
+ sessionIdleTimeoutMinutes?: number | null | undefined;
11581
+ } | undefined;
11582
+ } | {
11583
+ type: "linear";
11584
+ credentialId: string;
11585
+ approval?: {
11586
+ mode: "global";
11587
+ } | {
11588
+ mode: "selected";
11589
+ tools: string[];
11590
+ } | undefined;
11591
+ settings?: {
11592
+ sessionIdleTimeoutMinutes?: number | null | undefined;
11593
+ } | undefined;
11594
+ } | {
11595
+ type: "discord";
11596
+ credentialId: string;
11597
+ approval?: {
11598
+ mode: "global";
11599
+ } | {
11600
+ mode: "selected";
11601
+ tools: string[];
11602
+ } | undefined;
11603
+ settings?: {
11604
+ sessionIdleTimeoutMinutes?: number | null | undefined;
11605
+ } | undefined;
11606
+ } | {
11607
+ type: "teams";
11608
+ credentialId: string;
11609
+ approval?: {
11610
+ mode: "global";
11611
+ } | {
11612
+ mode: "selected";
11613
+ tools: string[];
11614
+ } | undefined;
11615
+ settings?: {
11616
+ sessionIdleTimeoutMinutes?: number | null | undefined;
11617
+ displayName?: string | undefined;
11618
+ description?: string | undefined;
11619
+ teamChannels?: boolean | undefined;
11620
+ groupChats?: boolean | undefined;
11621
+ readAllChannelMessages?: boolean | undefined;
11622
+ readAllGroupMessages?: boolean | undefined;
11623
+ } | undefined;
11624
+ } | {
11625
+ type: "n8n_chat";
11626
+ credentialId: "";
11627
+ })[], ({
11628
+ type: "telegram";
11629
+ credentialId: string;
11630
+ approval?: {
11631
+ mode: "global";
11632
+ } | {
11633
+ mode: "selected";
11634
+ tools: string[];
11635
+ } | undefined;
11636
+ settings?: {
11637
+ accessMode: "private" | "public";
11638
+ allowedUsers?: string[] | undefined;
11639
+ sessionIdleTimeoutMinutes?: number | null | undefined;
11640
+ } | undefined;
11641
+ } | {
11642
+ type: "slack";
11643
+ credentialId: string;
11644
+ approval?: {
11645
+ mode: "global";
11646
+ } | {
11647
+ mode: "selected";
11648
+ tools: string[];
11649
+ } | undefined;
11650
+ settings?: {
11651
+ messagingExperience: "agent" | "assistant";
11652
+ sessionIdleTimeoutMinutes?: number | null | undefined;
11653
+ } | undefined;
11654
+ } | {
11655
+ type: "linear";
11656
+ credentialId: string;
11657
+ approval?: {
11658
+ mode: "global";
11659
+ } | {
11660
+ mode: "selected";
11661
+ tools: string[];
11662
+ } | undefined;
11663
+ settings?: {
11664
+ sessionIdleTimeoutMinutes?: number | null | undefined;
11665
+ } | undefined;
11666
+ } | {
11667
+ type: "discord";
11668
+ credentialId: string;
11669
+ approval?: {
11670
+ mode: "global";
11671
+ } | {
11672
+ mode: "selected";
11673
+ tools: string[];
11674
+ } | undefined;
11675
+ settings?: {
11676
+ sessionIdleTimeoutMinutes?: number | null | undefined;
11677
+ } | undefined;
11678
+ } | {
11679
+ type: "teams";
11680
+ credentialId: string;
11681
+ approval?: {
11682
+ mode: "global";
11683
+ } | {
11684
+ mode: "selected";
11685
+ tools: string[];
11686
+ } | undefined;
11687
+ settings?: {
11688
+ sessionIdleTimeoutMinutes?: number | null | undefined;
11689
+ displayName?: string | undefined;
11690
+ description?: string | undefined;
11691
+ teamChannels?: boolean | undefined;
11692
+ groupChats?: boolean | undefined;
11693
+ readAllChannelMessages?: boolean | undefined;
11694
+ readAllGroupMessages?: boolean | undefined;
11695
+ } | undefined;
11696
+ } | {
11697
+ type: "n8n_chat";
11698
+ credentialId?: "" | undefined;
11699
+ })[]>>;
11700
+ mcpServers: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
11701
+ name: z.ZodEffects<z.ZodString, string, string>;
11702
+ description: z.ZodOptional<z.ZodString>;
11703
+ url: z.ZodString;
11704
+ transport: z.ZodDefault<z.ZodEnum<["sse", "streamableHttp"]>>;
11705
+ authentication: z.ZodDefault<z.ZodUnion<[z.ZodEnum<["none", "bearerAuth", "headerAuth", "multipleHeadersAuth", "mcpOAuth2Api"]>, z.ZodString]>>;
11706
+ credential: z.ZodOptional<z.ZodString>;
11707
+ metadata: z.ZodOptional<z.ZodObject<{
11708
+ nodeTypeName: z.ZodOptional<z.ZodString>;
11709
+ }, "strip", z.ZodTypeAny, {
11710
+ nodeTypeName?: string | undefined;
11711
+ }, {
11712
+ nodeTypeName?: string | undefined;
11713
+ }>>;
11714
+ toolFilter: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
11715
+ mode: z.ZodLiteral<"allow">;
11716
+ tools: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
11717
+ }, "strict", z.ZodTypeAny, {
11718
+ mode: "allow";
11719
+ tools: string[];
11720
+ }, {
11721
+ mode: "allow";
11722
+ tools?: string[] | undefined;
11723
+ }>, z.ZodObject<{
11724
+ mode: z.ZodLiteral<"exclude">;
11725
+ tools: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
11726
+ }, "strict", z.ZodTypeAny, {
11727
+ mode: "exclude";
11728
+ tools: string[];
11729
+ }, {
11730
+ mode: "exclude";
11731
+ tools?: string[] | undefined;
11732
+ }>]>>;
11733
+ approval: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
11734
+ mode: z.ZodLiteral<"global">;
11735
+ }, "strict", z.ZodTypeAny, {
11736
+ mode: "global";
11737
+ }, {
11738
+ mode: "global";
11739
+ }>, z.ZodObject<{
11740
+ mode: z.ZodLiteral<"selected">;
11741
+ tools: z.ZodArray<z.ZodString, "many">;
11742
+ }, "strict", z.ZodTypeAny, {
11743
+ mode: "selected";
11744
+ tools: string[];
11745
+ }, {
11746
+ mode: "selected";
11747
+ tools: string[];
11748
+ }>]>>;
11749
+ connectionTimeoutMs: z.ZodOptional<z.ZodNumber>;
11750
+ }, "strict", z.ZodTypeAny, {
11751
+ name: string;
11752
+ description?: string | undefined;
11753
+ url: string;
11754
+ transport: "sse" | "streamableHttp";
11755
+ authentication: string;
11756
+ credential?: string | undefined;
11757
+ metadata?: {
11758
+ nodeTypeName?: string | undefined;
11759
+ } | undefined;
11760
+ toolFilter?: {
11761
+ mode: "allow";
11762
+ tools: string[];
11763
+ } | {
11764
+ mode: "exclude";
11765
+ tools: string[];
11766
+ } | undefined;
11767
+ approval?: {
11768
+ mode: "global";
11769
+ } | {
11770
+ mode: "selected";
11771
+ tools: string[];
11772
+ } | undefined;
11773
+ connectionTimeoutMs?: number | undefined;
11774
+ }, {
11775
+ name: string;
11776
+ description?: string | undefined;
11777
+ url: string;
11778
+ transport?: "sse" | "streamableHttp" | undefined;
11779
+ authentication?: string | undefined;
10753
11780
  credential?: string | undefined;
10754
11781
  metadata?: {
10755
11782
  nodeTypeName?: string | undefined;
@@ -11240,6 +12267,12 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
11240
12267
  integrations?: ({
11241
12268
  type: "telegram";
11242
12269
  credentialId: string;
12270
+ approval?: {
12271
+ mode: "global";
12272
+ } | {
12273
+ mode: "selected";
12274
+ tools: string[];
12275
+ } | undefined;
11243
12276
  settings?: {
11244
12277
  accessMode: "private" | "public";
11245
12278
  allowedUsers: string[];
@@ -11248,6 +12281,12 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
11248
12281
  } | {
11249
12282
  type: "slack";
11250
12283
  credentialId: string;
12284
+ approval?: {
12285
+ mode: "global";
12286
+ } | {
12287
+ mode: "selected";
12288
+ tools: string[];
12289
+ } | undefined;
11251
12290
  settings?: {
11252
12291
  messagingExperience: "agent" | "assistant";
11253
12292
  sessionIdleTimeoutMinutes?: number | null | undefined;
@@ -11255,15 +12294,48 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
11255
12294
  } | {
11256
12295
  type: "linear";
11257
12296
  credentialId: string;
12297
+ approval?: {
12298
+ mode: "global";
12299
+ } | {
12300
+ mode: "selected";
12301
+ tools: string[];
12302
+ } | undefined;
11258
12303
  settings?: {
11259
12304
  sessionIdleTimeoutMinutes?: number | null | undefined;
11260
12305
  } | undefined;
11261
12306
  } | {
11262
12307
  type: "discord";
11263
12308
  credentialId: string;
12309
+ approval?: {
12310
+ mode: "global";
12311
+ } | {
12312
+ mode: "selected";
12313
+ tools: string[];
12314
+ } | undefined;
12315
+ settings?: {
12316
+ sessionIdleTimeoutMinutes?: number | null | undefined;
12317
+ } | undefined;
12318
+ } | {
12319
+ type: "teams";
12320
+ credentialId: string;
12321
+ approval?: {
12322
+ mode: "global";
12323
+ } | {
12324
+ mode: "selected";
12325
+ tools: string[];
12326
+ } | undefined;
11264
12327
  settings?: {
11265
12328
  sessionIdleTimeoutMinutes?: number | null | undefined;
12329
+ displayName?: string | undefined;
12330
+ description?: string | undefined;
12331
+ teamChannels?: boolean | undefined;
12332
+ groupChats?: boolean | undefined;
12333
+ readAllChannelMessages?: boolean | undefined;
12334
+ readAllGroupMessages?: boolean | undefined;
11266
12335
  } | undefined;
12336
+ } | {
12337
+ type: "n8n_chat";
12338
+ credentialId: "";
11267
12339
  })[] | undefined;
11268
12340
  mcpServers?: {
11269
12341
  name: string;
@@ -11469,6 +12541,12 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
11469
12541
  integrations?: ({
11470
12542
  type: "telegram";
11471
12543
  credentialId: string;
12544
+ approval?: {
12545
+ mode: "global";
12546
+ } | {
12547
+ mode: "selected";
12548
+ tools: string[];
12549
+ } | undefined;
11472
12550
  settings?: {
11473
12551
  accessMode: "private" | "public";
11474
12552
  allowedUsers?: string[] | undefined;
@@ -11477,6 +12555,12 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
11477
12555
  } | {
11478
12556
  type: "slack";
11479
12557
  credentialId: string;
12558
+ approval?: {
12559
+ mode: "global";
12560
+ } | {
12561
+ mode: "selected";
12562
+ tools: string[];
12563
+ } | undefined;
11480
12564
  settings?: {
11481
12565
  messagingExperience: "agent" | "assistant";
11482
12566
  sessionIdleTimeoutMinutes?: number | null | undefined;
@@ -11484,15 +12568,48 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
11484
12568
  } | {
11485
12569
  type: "linear";
11486
12570
  credentialId: string;
12571
+ approval?: {
12572
+ mode: "global";
12573
+ } | {
12574
+ mode: "selected";
12575
+ tools: string[];
12576
+ } | undefined;
12577
+ settings?: {
12578
+ sessionIdleTimeoutMinutes?: number | null | undefined;
12579
+ } | undefined;
12580
+ } | {
12581
+ type: "discord";
12582
+ credentialId: string;
12583
+ approval?: {
12584
+ mode: "global";
12585
+ } | {
12586
+ mode: "selected";
12587
+ tools: string[];
12588
+ } | undefined;
11487
12589
  settings?: {
11488
12590
  sessionIdleTimeoutMinutes?: number | null | undefined;
11489
12591
  } | undefined;
11490
12592
  } | {
11491
- type: "discord";
12593
+ type: "teams";
11492
12594
  credentialId: string;
12595
+ approval?: {
12596
+ mode: "global";
12597
+ } | {
12598
+ mode: "selected";
12599
+ tools: string[];
12600
+ } | undefined;
11493
12601
  settings?: {
11494
12602
  sessionIdleTimeoutMinutes?: number | null | undefined;
12603
+ displayName?: string | undefined;
12604
+ description?: string | undefined;
12605
+ teamChannels?: boolean | undefined;
12606
+ groupChats?: boolean | undefined;
12607
+ readAllChannelMessages?: boolean | undefined;
12608
+ readAllGroupMessages?: boolean | undefined;
11495
12609
  } | undefined;
12610
+ } | {
12611
+ type: "n8n_chat";
12612
+ credentialId?: "" | undefined;
11496
12613
  })[] | undefined;
11497
12614
  mcpServers?: {
11498
12615
  name: string;
@@ -11698,6 +12815,12 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
11698
12815
  integrations?: ({
11699
12816
  type: "telegram";
11700
12817
  credentialId: string;
12818
+ approval?: {
12819
+ mode: "global";
12820
+ } | {
12821
+ mode: "selected";
12822
+ tools: string[];
12823
+ } | undefined;
11701
12824
  settings?: {
11702
12825
  accessMode: "private" | "public";
11703
12826
  allowedUsers: string[];
@@ -11706,6 +12829,12 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
11706
12829
  } | {
11707
12830
  type: "slack";
11708
12831
  credentialId: string;
12832
+ approval?: {
12833
+ mode: "global";
12834
+ } | {
12835
+ mode: "selected";
12836
+ tools: string[];
12837
+ } | undefined;
11709
12838
  settings?: {
11710
12839
  messagingExperience: "agent" | "assistant";
11711
12840
  sessionIdleTimeoutMinutes?: number | null | undefined;
@@ -11713,15 +12842,48 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
11713
12842
  } | {
11714
12843
  type: "linear";
11715
12844
  credentialId: string;
12845
+ approval?: {
12846
+ mode: "global";
12847
+ } | {
12848
+ mode: "selected";
12849
+ tools: string[];
12850
+ } | undefined;
11716
12851
  settings?: {
11717
12852
  sessionIdleTimeoutMinutes?: number | null | undefined;
11718
12853
  } | undefined;
11719
12854
  } | {
11720
12855
  type: "discord";
11721
12856
  credentialId: string;
12857
+ approval?: {
12858
+ mode: "global";
12859
+ } | {
12860
+ mode: "selected";
12861
+ tools: string[];
12862
+ } | undefined;
12863
+ settings?: {
12864
+ sessionIdleTimeoutMinutes?: number | null | undefined;
12865
+ } | undefined;
12866
+ } | {
12867
+ type: "teams";
12868
+ credentialId: string;
12869
+ approval?: {
12870
+ mode: "global";
12871
+ } | {
12872
+ mode: "selected";
12873
+ tools: string[];
12874
+ } | undefined;
11722
12875
  settings?: {
11723
12876
  sessionIdleTimeoutMinutes?: number | null | undefined;
12877
+ displayName?: string | undefined;
12878
+ description?: string | undefined;
12879
+ teamChannels?: boolean | undefined;
12880
+ groupChats?: boolean | undefined;
12881
+ readAllChannelMessages?: boolean | undefined;
12882
+ readAllGroupMessages?: boolean | undefined;
11724
12883
  } | undefined;
12884
+ } | {
12885
+ type: "n8n_chat";
12886
+ credentialId: "";
11725
12887
  })[] | undefined;
11726
12888
  mcpServers?: {
11727
12889
  name: string;
@@ -11927,6 +13089,12 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
11927
13089
  integrations?: ({
11928
13090
  type: "telegram";
11929
13091
  credentialId: string;
13092
+ approval?: {
13093
+ mode: "global";
13094
+ } | {
13095
+ mode: "selected";
13096
+ tools: string[];
13097
+ } | undefined;
11930
13098
  settings?: {
11931
13099
  accessMode: "private" | "public";
11932
13100
  allowedUsers?: string[] | undefined;
@@ -11935,6 +13103,12 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
11935
13103
  } | {
11936
13104
  type: "slack";
11937
13105
  credentialId: string;
13106
+ approval?: {
13107
+ mode: "global";
13108
+ } | {
13109
+ mode: "selected";
13110
+ tools: string[];
13111
+ } | undefined;
11938
13112
  settings?: {
11939
13113
  messagingExperience: "agent" | "assistant";
11940
13114
  sessionIdleTimeoutMinutes?: number | null | undefined;
@@ -11942,15 +13116,48 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
11942
13116
  } | {
11943
13117
  type: "linear";
11944
13118
  credentialId: string;
13119
+ approval?: {
13120
+ mode: "global";
13121
+ } | {
13122
+ mode: "selected";
13123
+ tools: string[];
13124
+ } | undefined;
11945
13125
  settings?: {
11946
13126
  sessionIdleTimeoutMinutes?: number | null | undefined;
11947
13127
  } | undefined;
11948
13128
  } | {
11949
13129
  type: "discord";
11950
13130
  credentialId: string;
13131
+ approval?: {
13132
+ mode: "global";
13133
+ } | {
13134
+ mode: "selected";
13135
+ tools: string[];
13136
+ } | undefined;
13137
+ settings?: {
13138
+ sessionIdleTimeoutMinutes?: number | null | undefined;
13139
+ } | undefined;
13140
+ } | {
13141
+ type: "teams";
13142
+ credentialId: string;
13143
+ approval?: {
13144
+ mode: "global";
13145
+ } | {
13146
+ mode: "selected";
13147
+ tools: string[];
13148
+ } | undefined;
11951
13149
  settings?: {
11952
13150
  sessionIdleTimeoutMinutes?: number | null | undefined;
13151
+ displayName?: string | undefined;
13152
+ description?: string | undefined;
13153
+ teamChannels?: boolean | undefined;
13154
+ groupChats?: boolean | undefined;
13155
+ readAllChannelMessages?: boolean | undefined;
13156
+ readAllGroupMessages?: boolean | undefined;
11953
13157
  } | undefined;
13158
+ } | {
13159
+ type: "n8n_chat";
13160
+ credentialId?: "" | undefined;
11954
13161
  })[] | undefined;
11955
13162
  mcpServers?: {
11956
13163
  name: string;
@@ -12214,6 +13421,12 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
12214
13421
  integrations?: ({
12215
13422
  type: "telegram";
12216
13423
  credentialId: string;
13424
+ approval?: {
13425
+ mode: "global";
13426
+ } | {
13427
+ mode: "selected";
13428
+ tools: string[];
13429
+ } | undefined;
12217
13430
  settings?: {
12218
13431
  accessMode: "private" | "public";
12219
13432
  allowedUsers: string[];
@@ -12222,6 +13435,12 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
12222
13435
  } | {
12223
13436
  type: "slack";
12224
13437
  credentialId: string;
13438
+ approval?: {
13439
+ mode: "global";
13440
+ } | {
13441
+ mode: "selected";
13442
+ tools: string[];
13443
+ } | undefined;
12225
13444
  settings?: {
12226
13445
  messagingExperience: "agent" | "assistant";
12227
13446
  sessionIdleTimeoutMinutes?: number | null | undefined;
@@ -12229,15 +13448,48 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
12229
13448
  } | {
12230
13449
  type: "linear";
12231
13450
  credentialId: string;
13451
+ approval?: {
13452
+ mode: "global";
13453
+ } | {
13454
+ mode: "selected";
13455
+ tools: string[];
13456
+ } | undefined;
12232
13457
  settings?: {
12233
13458
  sessionIdleTimeoutMinutes?: number | null | undefined;
12234
13459
  } | undefined;
12235
13460
  } | {
12236
13461
  type: "discord";
12237
13462
  credentialId: string;
13463
+ approval?: {
13464
+ mode: "global";
13465
+ } | {
13466
+ mode: "selected";
13467
+ tools: string[];
13468
+ } | undefined;
13469
+ settings?: {
13470
+ sessionIdleTimeoutMinutes?: number | null | undefined;
13471
+ } | undefined;
13472
+ } | {
13473
+ type: "teams";
13474
+ credentialId: string;
13475
+ approval?: {
13476
+ mode: "global";
13477
+ } | {
13478
+ mode: "selected";
13479
+ tools: string[];
13480
+ } | undefined;
12238
13481
  settings?: {
12239
13482
  sessionIdleTimeoutMinutes?: number | null | undefined;
13483
+ displayName?: string | undefined;
13484
+ description?: string | undefined;
13485
+ teamChannels?: boolean | undefined;
13486
+ groupChats?: boolean | undefined;
13487
+ readAllChannelMessages?: boolean | undefined;
13488
+ readAllGroupMessages?: boolean | undefined;
12240
13489
  } | undefined;
13490
+ } | {
13491
+ type: "n8n_chat";
13492
+ credentialId: "";
12241
13493
  })[] | undefined;
12242
13494
  mcpServers?: {
12243
13495
  name: string;
@@ -12461,6 +13713,12 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
12461
13713
  integrations?: ({
12462
13714
  type: "telegram";
12463
13715
  credentialId: string;
13716
+ approval?: {
13717
+ mode: "global";
13718
+ } | {
13719
+ mode: "selected";
13720
+ tools: string[];
13721
+ } | undefined;
12464
13722
  settings?: {
12465
13723
  accessMode: "private" | "public";
12466
13724
  allowedUsers?: string[] | undefined;
@@ -12469,6 +13727,12 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
12469
13727
  } | {
12470
13728
  type: "slack";
12471
13729
  credentialId: string;
13730
+ approval?: {
13731
+ mode: "global";
13732
+ } | {
13733
+ mode: "selected";
13734
+ tools: string[];
13735
+ } | undefined;
12472
13736
  settings?: {
12473
13737
  messagingExperience: "agent" | "assistant";
12474
13738
  sessionIdleTimeoutMinutes?: number | null | undefined;
@@ -12476,15 +13740,48 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
12476
13740
  } | {
12477
13741
  type: "linear";
12478
13742
  credentialId: string;
13743
+ approval?: {
13744
+ mode: "global";
13745
+ } | {
13746
+ mode: "selected";
13747
+ tools: string[];
13748
+ } | undefined;
12479
13749
  settings?: {
12480
13750
  sessionIdleTimeoutMinutes?: number | null | undefined;
12481
13751
  } | undefined;
12482
13752
  } | {
12483
13753
  type: "discord";
12484
13754
  credentialId: string;
13755
+ approval?: {
13756
+ mode: "global";
13757
+ } | {
13758
+ mode: "selected";
13759
+ tools: string[];
13760
+ } | undefined;
13761
+ settings?: {
13762
+ sessionIdleTimeoutMinutes?: number | null | undefined;
13763
+ } | undefined;
13764
+ } | {
13765
+ type: "teams";
13766
+ credentialId: string;
13767
+ approval?: {
13768
+ mode: "global";
13769
+ } | {
13770
+ mode: "selected";
13771
+ tools: string[];
13772
+ } | undefined;
12485
13773
  settings?: {
12486
13774
  sessionIdleTimeoutMinutes?: number | null | undefined;
13775
+ displayName?: string | undefined;
13776
+ description?: string | undefined;
13777
+ teamChannels?: boolean | undefined;
13778
+ groupChats?: boolean | undefined;
13779
+ readAllChannelMessages?: boolean | undefined;
13780
+ readAllGroupMessages?: boolean | undefined;
12487
13781
  } | undefined;
13782
+ } | {
13783
+ type: "n8n_chat";
13784
+ credentialId?: "" | undefined;
12488
13785
  })[] | undefined;
12489
13786
  mcpServers?: {
12490
13787
  name: string;
@@ -12708,6 +14005,12 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
12708
14005
  integrations?: ({
12709
14006
  type: "telegram";
12710
14007
  credentialId: string;
14008
+ approval?: {
14009
+ mode: "global";
14010
+ } | {
14011
+ mode: "selected";
14012
+ tools: string[];
14013
+ } | undefined;
12711
14014
  settings?: {
12712
14015
  accessMode: "private" | "public";
12713
14016
  allowedUsers: string[];
@@ -12716,6 +14019,12 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
12716
14019
  } | {
12717
14020
  type: "slack";
12718
14021
  credentialId: string;
14022
+ approval?: {
14023
+ mode: "global";
14024
+ } | {
14025
+ mode: "selected";
14026
+ tools: string[];
14027
+ } | undefined;
12719
14028
  settings?: {
12720
14029
  messagingExperience: "agent" | "assistant";
12721
14030
  sessionIdleTimeoutMinutes?: number | null | undefined;
@@ -12723,15 +14032,48 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
12723
14032
  } | {
12724
14033
  type: "linear";
12725
14034
  credentialId: string;
14035
+ approval?: {
14036
+ mode: "global";
14037
+ } | {
14038
+ mode: "selected";
14039
+ tools: string[];
14040
+ } | undefined;
12726
14041
  settings?: {
12727
14042
  sessionIdleTimeoutMinutes?: number | null | undefined;
12728
14043
  } | undefined;
12729
14044
  } | {
12730
14045
  type: "discord";
12731
14046
  credentialId: string;
14047
+ approval?: {
14048
+ mode: "global";
14049
+ } | {
14050
+ mode: "selected";
14051
+ tools: string[];
14052
+ } | undefined;
14053
+ settings?: {
14054
+ sessionIdleTimeoutMinutes?: number | null | undefined;
14055
+ } | undefined;
14056
+ } | {
14057
+ type: "teams";
14058
+ credentialId: string;
14059
+ approval?: {
14060
+ mode: "global";
14061
+ } | {
14062
+ mode: "selected";
14063
+ tools: string[];
14064
+ } | undefined;
12732
14065
  settings?: {
12733
14066
  sessionIdleTimeoutMinutes?: number | null | undefined;
14067
+ displayName?: string | undefined;
14068
+ description?: string | undefined;
14069
+ teamChannels?: boolean | undefined;
14070
+ groupChats?: boolean | undefined;
14071
+ readAllChannelMessages?: boolean | undefined;
14072
+ readAllGroupMessages?: boolean | undefined;
12734
14073
  } | undefined;
14074
+ } | {
14075
+ type: "n8n_chat";
14076
+ credentialId: "";
12735
14077
  })[] | undefined;
12736
14078
  mcpServers?: {
12737
14079
  name: string;
@@ -12955,6 +14297,12 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
12955
14297
  integrations?: ({
12956
14298
  type: "telegram";
12957
14299
  credentialId: string;
14300
+ approval?: {
14301
+ mode: "global";
14302
+ } | {
14303
+ mode: "selected";
14304
+ tools: string[];
14305
+ } | undefined;
12958
14306
  settings?: {
12959
14307
  accessMode: "private" | "public";
12960
14308
  allowedUsers?: string[] | undefined;
@@ -12963,6 +14311,12 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
12963
14311
  } | {
12964
14312
  type: "slack";
12965
14313
  credentialId: string;
14314
+ approval?: {
14315
+ mode: "global";
14316
+ } | {
14317
+ mode: "selected";
14318
+ tools: string[];
14319
+ } | undefined;
12966
14320
  settings?: {
12967
14321
  messagingExperience: "agent" | "assistant";
12968
14322
  sessionIdleTimeoutMinutes?: number | null | undefined;
@@ -12970,15 +14324,48 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
12970
14324
  } | {
12971
14325
  type: "linear";
12972
14326
  credentialId: string;
14327
+ approval?: {
14328
+ mode: "global";
14329
+ } | {
14330
+ mode: "selected";
14331
+ tools: string[];
14332
+ } | undefined;
12973
14333
  settings?: {
12974
14334
  sessionIdleTimeoutMinutes?: number | null | undefined;
12975
14335
  } | undefined;
12976
14336
  } | {
12977
14337
  type: "discord";
12978
14338
  credentialId: string;
14339
+ approval?: {
14340
+ mode: "global";
14341
+ } | {
14342
+ mode: "selected";
14343
+ tools: string[];
14344
+ } | undefined;
14345
+ settings?: {
14346
+ sessionIdleTimeoutMinutes?: number | null | undefined;
14347
+ } | undefined;
14348
+ } | {
14349
+ type: "teams";
14350
+ credentialId: string;
14351
+ approval?: {
14352
+ mode: "global";
14353
+ } | {
14354
+ mode: "selected";
14355
+ tools: string[];
14356
+ } | undefined;
12979
14357
  settings?: {
12980
14358
  sessionIdleTimeoutMinutes?: number | null | undefined;
14359
+ displayName?: string | undefined;
14360
+ description?: string | undefined;
14361
+ teamChannels?: boolean | undefined;
14362
+ groupChats?: boolean | undefined;
14363
+ readAllChannelMessages?: boolean | undefined;
14364
+ readAllGroupMessages?: boolean | undefined;
12981
14365
  } | undefined;
14366
+ } | {
14367
+ type: "n8n_chat";
14368
+ credentialId?: "" | undefined;
12982
14369
  })[] | undefined;
12983
14370
  mcpServers?: {
12984
14371
  name: string;
@@ -13229,6 +14616,12 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
13229
14616
  integrations?: ({
13230
14617
  type: "telegram";
13231
14618
  credentialId: string;
14619
+ approval?: {
14620
+ mode: "global";
14621
+ } | {
14622
+ mode: "selected";
14623
+ tools: string[];
14624
+ } | undefined;
13232
14625
  settings?: {
13233
14626
  accessMode: "private" | "public";
13234
14627
  allowedUsers: string[];
@@ -13237,6 +14630,12 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
13237
14630
  } | {
13238
14631
  type: "slack";
13239
14632
  credentialId: string;
14633
+ approval?: {
14634
+ mode: "global";
14635
+ } | {
14636
+ mode: "selected";
14637
+ tools: string[];
14638
+ } | undefined;
13240
14639
  settings?: {
13241
14640
  messagingExperience: "agent" | "assistant";
13242
14641
  sessionIdleTimeoutMinutes?: number | null | undefined;
@@ -13244,15 +14643,48 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
13244
14643
  } | {
13245
14644
  type: "linear";
13246
14645
  credentialId: string;
14646
+ approval?: {
14647
+ mode: "global";
14648
+ } | {
14649
+ mode: "selected";
14650
+ tools: string[];
14651
+ } | undefined;
14652
+ settings?: {
14653
+ sessionIdleTimeoutMinutes?: number | null | undefined;
14654
+ } | undefined;
14655
+ } | {
14656
+ type: "discord";
14657
+ credentialId: string;
14658
+ approval?: {
14659
+ mode: "global";
14660
+ } | {
14661
+ mode: "selected";
14662
+ tools: string[];
14663
+ } | undefined;
13247
14664
  settings?: {
13248
14665
  sessionIdleTimeoutMinutes?: number | null | undefined;
13249
14666
  } | undefined;
13250
14667
  } | {
13251
- type: "discord";
14668
+ type: "teams";
13252
14669
  credentialId: string;
14670
+ approval?: {
14671
+ mode: "global";
14672
+ } | {
14673
+ mode: "selected";
14674
+ tools: string[];
14675
+ } | undefined;
13253
14676
  settings?: {
13254
14677
  sessionIdleTimeoutMinutes?: number | null | undefined;
14678
+ displayName?: string | undefined;
14679
+ description?: string | undefined;
14680
+ teamChannels?: boolean | undefined;
14681
+ groupChats?: boolean | undefined;
14682
+ readAllChannelMessages?: boolean | undefined;
14683
+ readAllGroupMessages?: boolean | undefined;
13255
14684
  } | undefined;
14685
+ } | {
14686
+ type: "n8n_chat";
14687
+ credentialId: "";
13256
14688
  })[] | undefined;
13257
14689
  mcpServers?: {
13258
14690
  name: string;
@@ -14020,9 +15452,25 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
14020
15452
  enabled: boolean;
14021
15453
  }>, "many">>;
14022
15454
  providerTools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
14023
- integrations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", readonly [z.ZodObject<{
15455
+ integrations: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
14024
15456
  type: z.ZodLiteral<"telegram">;
14025
15457
  credentialId: z.ZodString;
15458
+ approval: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
15459
+ mode: z.ZodLiteral<"global">;
15460
+ }, "strict", z.ZodTypeAny, {
15461
+ mode: "global";
15462
+ }, {
15463
+ mode: "global";
15464
+ }>, z.ZodObject<{
15465
+ mode: z.ZodLiteral<"selected">;
15466
+ tools: z.ZodArray<z.ZodString, "many">;
15467
+ }, "strict", z.ZodTypeAny, {
15468
+ mode: "selected";
15469
+ tools: string[];
15470
+ }, {
15471
+ mode: "selected";
15472
+ tools: string[];
15473
+ }>]>>;
14026
15474
  } & {
14027
15475
  settings: z.ZodOptional<z.ZodEffects<z.ZodObject<{
14028
15476
  accessMode: z.ZodEnum<["private", "public"]>;
@@ -14048,94 +15496,440 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
14048
15496
  }, "strip", z.ZodTypeAny, {
14049
15497
  type: "telegram";
14050
15498
  credentialId: string;
15499
+ approval?: {
15500
+ mode: "global";
15501
+ } | {
15502
+ mode: "selected";
15503
+ tools: string[];
15504
+ } | undefined;
15505
+ settings?: {
15506
+ accessMode: "private" | "public";
15507
+ allowedUsers: string[];
15508
+ sessionIdleTimeoutMinutes?: number | null | undefined;
15509
+ } | undefined;
15510
+ }, {
15511
+ type: "telegram";
15512
+ credentialId: string;
15513
+ approval?: {
15514
+ mode: "global";
15515
+ } | {
15516
+ mode: "selected";
15517
+ tools: string[];
15518
+ } | undefined;
15519
+ settings?: {
15520
+ accessMode: "private" | "public";
15521
+ allowedUsers?: string[] | undefined;
15522
+ sessionIdleTimeoutMinutes?: number | null | undefined;
15523
+ } | undefined;
15524
+ }>, z.ZodObject<{
15525
+ type: z.ZodLiteral<"slack">;
15526
+ credentialId: z.ZodString;
15527
+ approval: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
15528
+ mode: z.ZodLiteral<"global">;
15529
+ }, "strict", z.ZodTypeAny, {
15530
+ mode: "global";
15531
+ }, {
15532
+ mode: "global";
15533
+ }>, z.ZodObject<{
15534
+ mode: z.ZodLiteral<"selected">;
15535
+ tools: z.ZodArray<z.ZodString, "many">;
15536
+ }, "strict", z.ZodTypeAny, {
15537
+ mode: "selected";
15538
+ tools: string[];
15539
+ }, {
15540
+ mode: "selected";
15541
+ tools: string[];
15542
+ }>]>>;
15543
+ } & {
15544
+ settings: z.ZodOptional<z.ZodObject<{
15545
+ messagingExperience: z.ZodEnum<["assistant", "agent"]>;
15546
+ sessionIdleTimeoutMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
15547
+ }, "strict", z.ZodTypeAny, {
15548
+ messagingExperience: "agent" | "assistant";
15549
+ sessionIdleTimeoutMinutes?: number | null | undefined;
15550
+ }, {
15551
+ messagingExperience: "agent" | "assistant";
15552
+ sessionIdleTimeoutMinutes?: number | null | undefined;
15553
+ }>>;
15554
+ }, "strip", z.ZodTypeAny, {
15555
+ type: "slack";
15556
+ credentialId: string;
15557
+ approval?: {
15558
+ mode: "global";
15559
+ } | {
15560
+ mode: "selected";
15561
+ tools: string[];
15562
+ } | undefined;
15563
+ settings?: {
15564
+ messagingExperience: "agent" | "assistant";
15565
+ sessionIdleTimeoutMinutes?: number | null | undefined;
15566
+ } | undefined;
15567
+ }, {
15568
+ type: "slack";
15569
+ credentialId: string;
15570
+ approval?: {
15571
+ mode: "global";
15572
+ } | {
15573
+ mode: "selected";
15574
+ tools: string[];
15575
+ } | undefined;
15576
+ settings?: {
15577
+ messagingExperience: "agent" | "assistant";
15578
+ sessionIdleTimeoutMinutes?: number | null | undefined;
15579
+ } | undefined;
15580
+ }>, z.ZodObject<{
15581
+ type: z.ZodLiteral<"linear">;
15582
+ credentialId: z.ZodString;
15583
+ approval: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
15584
+ mode: z.ZodLiteral<"global">;
15585
+ }, "strict", z.ZodTypeAny, {
15586
+ mode: "global";
15587
+ }, {
15588
+ mode: "global";
15589
+ }>, z.ZodObject<{
15590
+ mode: z.ZodLiteral<"selected">;
15591
+ tools: z.ZodArray<z.ZodString, "many">;
15592
+ }, "strict", z.ZodTypeAny, {
15593
+ mode: "selected";
15594
+ tools: string[];
15595
+ }, {
15596
+ mode: "selected";
15597
+ tools: string[];
15598
+ }>]>>;
15599
+ } & {
15600
+ settings: z.ZodOptional<z.ZodObject<{
15601
+ sessionIdleTimeoutMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
15602
+ }, "strict", z.ZodTypeAny, {
15603
+ sessionIdleTimeoutMinutes?: number | null | undefined;
15604
+ }, {
15605
+ sessionIdleTimeoutMinutes?: number | null | undefined;
15606
+ }>>;
15607
+ }, "strip", z.ZodTypeAny, {
15608
+ type: "linear";
15609
+ credentialId: string;
15610
+ approval?: {
15611
+ mode: "global";
15612
+ } | {
15613
+ mode: "selected";
15614
+ tools: string[];
15615
+ } | undefined;
15616
+ settings?: {
15617
+ sessionIdleTimeoutMinutes?: number | null | undefined;
15618
+ } | undefined;
15619
+ }, {
15620
+ type: "linear";
15621
+ credentialId: string;
15622
+ approval?: {
15623
+ mode: "global";
15624
+ } | {
15625
+ mode: "selected";
15626
+ tools: string[];
15627
+ } | undefined;
15628
+ settings?: {
15629
+ sessionIdleTimeoutMinutes?: number | null | undefined;
15630
+ } | undefined;
15631
+ }>, z.ZodObject<{
15632
+ type: z.ZodLiteral<"discord">;
15633
+ credentialId: z.ZodString;
15634
+ approval: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
15635
+ mode: z.ZodLiteral<"global">;
15636
+ }, "strict", z.ZodTypeAny, {
15637
+ mode: "global";
15638
+ }, {
15639
+ mode: "global";
15640
+ }>, z.ZodObject<{
15641
+ mode: z.ZodLiteral<"selected">;
15642
+ tools: z.ZodArray<z.ZodString, "many">;
15643
+ }, "strict", z.ZodTypeAny, {
15644
+ mode: "selected";
15645
+ tools: string[];
15646
+ }, {
15647
+ mode: "selected";
15648
+ tools: string[];
15649
+ }>]>>;
15650
+ } & {
15651
+ settings: z.ZodOptional<z.ZodObject<{
15652
+ sessionIdleTimeoutMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
15653
+ }, "strict", z.ZodTypeAny, {
15654
+ sessionIdleTimeoutMinutes?: number | null | undefined;
15655
+ }, {
15656
+ sessionIdleTimeoutMinutes?: number | null | undefined;
15657
+ }>>;
15658
+ }, "strip", z.ZodTypeAny, {
15659
+ type: "discord";
15660
+ credentialId: string;
15661
+ approval?: {
15662
+ mode: "global";
15663
+ } | {
15664
+ mode: "selected";
15665
+ tools: string[];
15666
+ } | undefined;
15667
+ settings?: {
15668
+ sessionIdleTimeoutMinutes?: number | null | undefined;
15669
+ } | undefined;
15670
+ }, {
15671
+ type: "discord";
15672
+ credentialId: string;
15673
+ approval?: {
15674
+ mode: "global";
15675
+ } | {
15676
+ mode: "selected";
15677
+ tools: string[];
15678
+ } | undefined;
15679
+ settings?: {
15680
+ sessionIdleTimeoutMinutes?: number | null | undefined;
15681
+ } | undefined;
15682
+ }>, z.ZodObject<{
15683
+ type: z.ZodLiteral<"teams">;
15684
+ credentialId: z.ZodString;
15685
+ approval: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
15686
+ mode: z.ZodLiteral<"global">;
15687
+ }, "strict", z.ZodTypeAny, {
15688
+ mode: "global";
15689
+ }, {
15690
+ mode: "global";
15691
+ }>, z.ZodObject<{
15692
+ mode: z.ZodLiteral<"selected">;
15693
+ tools: z.ZodArray<z.ZodString, "many">;
15694
+ }, "strict", z.ZodTypeAny, {
15695
+ mode: "selected";
15696
+ tools: string[];
15697
+ }, {
15698
+ mode: "selected";
15699
+ tools: string[];
15700
+ }>]>>;
15701
+ } & {
15702
+ settings: z.ZodOptional<z.ZodEffects<z.ZodObject<{
15703
+ sessionIdleTimeoutMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
15704
+ displayName: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
15705
+ description: z.ZodOptional<z.ZodString>;
15706
+ teamChannels: z.ZodOptional<z.ZodBoolean>;
15707
+ groupChats: z.ZodOptional<z.ZodBoolean>;
15708
+ readAllChannelMessages: z.ZodOptional<z.ZodBoolean>;
15709
+ readAllGroupMessages: z.ZodOptional<z.ZodBoolean>;
15710
+ }, "strict", z.ZodTypeAny, {
15711
+ sessionIdleTimeoutMinutes?: number | null | undefined;
15712
+ displayName?: string | undefined;
15713
+ description?: string | undefined;
15714
+ teamChannels?: boolean | undefined;
15715
+ groupChats?: boolean | undefined;
15716
+ readAllChannelMessages?: boolean | undefined;
15717
+ readAllGroupMessages?: boolean | undefined;
15718
+ }, {
15719
+ sessionIdleTimeoutMinutes?: number | null | undefined;
15720
+ displayName?: string | undefined;
15721
+ description?: string | undefined;
15722
+ teamChannels?: boolean | undefined;
15723
+ groupChats?: boolean | undefined;
15724
+ readAllChannelMessages?: boolean | undefined;
15725
+ readAllGroupMessages?: boolean | undefined;
15726
+ }>, {
15727
+ sessionIdleTimeoutMinutes?: number | null | undefined;
15728
+ displayName?: string | undefined;
15729
+ description?: string | undefined;
15730
+ teamChannels?: boolean | undefined;
15731
+ groupChats?: boolean | undefined;
15732
+ readAllChannelMessages?: boolean | undefined;
15733
+ readAllGroupMessages?: boolean | undefined;
15734
+ }, {
15735
+ sessionIdleTimeoutMinutes?: number | null | undefined;
15736
+ displayName?: string | undefined;
15737
+ description?: string | undefined;
15738
+ teamChannels?: boolean | undefined;
15739
+ groupChats?: boolean | undefined;
15740
+ readAllChannelMessages?: boolean | undefined;
15741
+ readAllGroupMessages?: boolean | undefined;
15742
+ }>>;
15743
+ }, "strip", z.ZodTypeAny, {
15744
+ type: "teams";
15745
+ credentialId: string;
15746
+ approval?: {
15747
+ mode: "global";
15748
+ } | {
15749
+ mode: "selected";
15750
+ tools: string[];
15751
+ } | undefined;
15752
+ settings?: {
15753
+ sessionIdleTimeoutMinutes?: number | null | undefined;
15754
+ displayName?: string | undefined;
15755
+ description?: string | undefined;
15756
+ teamChannels?: boolean | undefined;
15757
+ groupChats?: boolean | undefined;
15758
+ readAllChannelMessages?: boolean | undefined;
15759
+ readAllGroupMessages?: boolean | undefined;
15760
+ } | undefined;
15761
+ }, {
15762
+ type: "teams";
15763
+ credentialId: string;
15764
+ approval?: {
15765
+ mode: "global";
15766
+ } | {
15767
+ mode: "selected";
15768
+ tools: string[];
15769
+ } | undefined;
14051
15770
  settings?: {
14052
- accessMode: "private" | "public";
14053
- allowedUsers: string[];
14054
15771
  sessionIdleTimeoutMinutes?: number | null | undefined;
15772
+ displayName?: string | undefined;
15773
+ description?: string | undefined;
15774
+ teamChannels?: boolean | undefined;
15775
+ groupChats?: boolean | undefined;
15776
+ readAllChannelMessages?: boolean | undefined;
15777
+ readAllGroupMessages?: boolean | undefined;
14055
15778
  } | undefined;
15779
+ }>, z.ZodObject<{
15780
+ type: z.ZodLiteral<"n8n_chat">;
15781
+ credentialId: z.ZodDefault<z.ZodLiteral<"">>;
15782
+ }, "strict", z.ZodTypeAny, {
15783
+ type: "n8n_chat";
15784
+ credentialId: "";
14056
15785
  }, {
15786
+ type: "n8n_chat";
15787
+ credentialId?: "" | undefined;
15788
+ }>]>, "many">, ({
14057
15789
  type: "telegram";
14058
15790
  credentialId: string;
15791
+ approval?: {
15792
+ mode: "global";
15793
+ } | {
15794
+ mode: "selected";
15795
+ tools: string[];
15796
+ } | undefined;
14059
15797
  settings?: {
14060
15798
  accessMode: "private" | "public";
14061
- allowedUsers?: string[] | undefined;
15799
+ allowedUsers: string[];
14062
15800
  sessionIdleTimeoutMinutes?: number | null | undefined;
14063
15801
  } | undefined;
14064
- }>, z.ZodObject<{
14065
- type: z.ZodLiteral<"slack">;
14066
- credentialId: z.ZodString;
14067
- } & {
14068
- settings: z.ZodOptional<z.ZodObject<{
14069
- messagingExperience: z.ZodEnum<["assistant", "agent"]>;
14070
- sessionIdleTimeoutMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
14071
- }, "strict", z.ZodTypeAny, {
14072
- messagingExperience: "agent" | "assistant";
14073
- sessionIdleTimeoutMinutes?: number | null | undefined;
14074
- }, {
14075
- messagingExperience: "agent" | "assistant";
14076
- sessionIdleTimeoutMinutes?: number | null | undefined;
14077
- }>>;
14078
- }, "strip", z.ZodTypeAny, {
15802
+ } | {
14079
15803
  type: "slack";
14080
15804
  credentialId: string;
15805
+ approval?: {
15806
+ mode: "global";
15807
+ } | {
15808
+ mode: "selected";
15809
+ tools: string[];
15810
+ } | undefined;
14081
15811
  settings?: {
14082
15812
  messagingExperience: "agent" | "assistant";
14083
15813
  sessionIdleTimeoutMinutes?: number | null | undefined;
14084
15814
  } | undefined;
14085
- }, {
14086
- type: "slack";
15815
+ } | {
15816
+ type: "linear";
14087
15817
  credentialId: string;
15818
+ approval?: {
15819
+ mode: "global";
15820
+ } | {
15821
+ mode: "selected";
15822
+ tools: string[];
15823
+ } | undefined;
14088
15824
  settings?: {
14089
- messagingExperience: "agent" | "assistant";
14090
15825
  sessionIdleTimeoutMinutes?: number | null | undefined;
14091
15826
  } | undefined;
14092
- }>, z.ZodObject<{
14093
- type: z.ZodLiteral<"linear">;
14094
- credentialId: z.ZodString;
14095
- } & {
14096
- settings: z.ZodOptional<z.ZodObject<{
14097
- sessionIdleTimeoutMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
14098
- }, "strict", z.ZodTypeAny, {
14099
- sessionIdleTimeoutMinutes?: number | null | undefined;
14100
- }, {
15827
+ } | {
15828
+ type: "discord";
15829
+ credentialId: string;
15830
+ approval?: {
15831
+ mode: "global";
15832
+ } | {
15833
+ mode: "selected";
15834
+ tools: string[];
15835
+ } | undefined;
15836
+ settings?: {
14101
15837
  sessionIdleTimeoutMinutes?: number | null | undefined;
14102
- }>>;
14103
- }, "strip", z.ZodTypeAny, {
14104
- type: "linear";
15838
+ } | undefined;
15839
+ } | {
15840
+ type: "teams";
14105
15841
  credentialId: string;
15842
+ approval?: {
15843
+ mode: "global";
15844
+ } | {
15845
+ mode: "selected";
15846
+ tools: string[];
15847
+ } | undefined;
14106
15848
  settings?: {
14107
15849
  sessionIdleTimeoutMinutes?: number | null | undefined;
15850
+ displayName?: string | undefined;
15851
+ description?: string | undefined;
15852
+ teamChannels?: boolean | undefined;
15853
+ groupChats?: boolean | undefined;
15854
+ readAllChannelMessages?: boolean | undefined;
15855
+ readAllGroupMessages?: boolean | undefined;
14108
15856
  } | undefined;
14109
- }, {
14110
- type: "linear";
15857
+ } | {
15858
+ type: "n8n_chat";
15859
+ credentialId: "";
15860
+ })[], ({
15861
+ type: "telegram";
14111
15862
  credentialId: string;
15863
+ approval?: {
15864
+ mode: "global";
15865
+ } | {
15866
+ mode: "selected";
15867
+ tools: string[];
15868
+ } | undefined;
14112
15869
  settings?: {
15870
+ accessMode: "private" | "public";
15871
+ allowedUsers?: string[] | undefined;
14113
15872
  sessionIdleTimeoutMinutes?: number | null | undefined;
14114
15873
  } | undefined;
14115
- }>, z.ZodObject<{
14116
- type: z.ZodLiteral<"discord">;
14117
- credentialId: z.ZodString;
14118
- } & {
14119
- settings: z.ZodOptional<z.ZodObject<{
14120
- sessionIdleTimeoutMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
14121
- }, "strict", z.ZodTypeAny, {
15874
+ } | {
15875
+ type: "slack";
15876
+ credentialId: string;
15877
+ approval?: {
15878
+ mode: "global";
15879
+ } | {
15880
+ mode: "selected";
15881
+ tools: string[];
15882
+ } | undefined;
15883
+ settings?: {
15884
+ messagingExperience: "agent" | "assistant";
14122
15885
  sessionIdleTimeoutMinutes?: number | null | undefined;
14123
- }, {
15886
+ } | undefined;
15887
+ } | {
15888
+ type: "linear";
15889
+ credentialId: string;
15890
+ approval?: {
15891
+ mode: "global";
15892
+ } | {
15893
+ mode: "selected";
15894
+ tools: string[];
15895
+ } | undefined;
15896
+ settings?: {
14124
15897
  sessionIdleTimeoutMinutes?: number | null | undefined;
14125
- }>>;
14126
- }, "strip", z.ZodTypeAny, {
15898
+ } | undefined;
15899
+ } | {
14127
15900
  type: "discord";
14128
15901
  credentialId: string;
15902
+ approval?: {
15903
+ mode: "global";
15904
+ } | {
15905
+ mode: "selected";
15906
+ tools: string[];
15907
+ } | undefined;
14129
15908
  settings?: {
14130
15909
  sessionIdleTimeoutMinutes?: number | null | undefined;
14131
15910
  } | undefined;
14132
- }, {
14133
- type: "discord";
15911
+ } | {
15912
+ type: "teams";
14134
15913
  credentialId: string;
15914
+ approval?: {
15915
+ mode: "global";
15916
+ } | {
15917
+ mode: "selected";
15918
+ tools: string[];
15919
+ } | undefined;
14135
15920
  settings?: {
14136
15921
  sessionIdleTimeoutMinutes?: number | null | undefined;
15922
+ displayName?: string | undefined;
15923
+ description?: string | undefined;
15924
+ teamChannels?: boolean | undefined;
15925
+ groupChats?: boolean | undefined;
15926
+ readAllChannelMessages?: boolean | undefined;
15927
+ readAllGroupMessages?: boolean | undefined;
14137
15928
  } | undefined;
14138
- }>]>, "many">>;
15929
+ } | {
15930
+ type: "n8n_chat";
15931
+ credentialId?: "" | undefined;
15932
+ })[]>>;
14139
15933
  mcpServers: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
14140
15934
  name: z.ZodEffects<z.ZodString, string, string>;
14141
15935
  description: z.ZodOptional<z.ZodString>;
@@ -14706,6 +16500,12 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
14706
16500
  integrations?: ({
14707
16501
  type: "telegram";
14708
16502
  credentialId: string;
16503
+ approval?: {
16504
+ mode: "global";
16505
+ } | {
16506
+ mode: "selected";
16507
+ tools: string[];
16508
+ } | undefined;
14709
16509
  settings?: {
14710
16510
  accessMode: "private" | "public";
14711
16511
  allowedUsers: string[];
@@ -14714,6 +16514,12 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
14714
16514
  } | {
14715
16515
  type: "slack";
14716
16516
  credentialId: string;
16517
+ approval?: {
16518
+ mode: "global";
16519
+ } | {
16520
+ mode: "selected";
16521
+ tools: string[];
16522
+ } | undefined;
14717
16523
  settings?: {
14718
16524
  messagingExperience: "agent" | "assistant";
14719
16525
  sessionIdleTimeoutMinutes?: number | null | undefined;
@@ -14721,15 +16527,48 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
14721
16527
  } | {
14722
16528
  type: "linear";
14723
16529
  credentialId: string;
16530
+ approval?: {
16531
+ mode: "global";
16532
+ } | {
16533
+ mode: "selected";
16534
+ tools: string[];
16535
+ } | undefined;
14724
16536
  settings?: {
14725
16537
  sessionIdleTimeoutMinutes?: number | null | undefined;
14726
16538
  } | undefined;
14727
16539
  } | {
14728
16540
  type: "discord";
14729
16541
  credentialId: string;
16542
+ approval?: {
16543
+ mode: "global";
16544
+ } | {
16545
+ mode: "selected";
16546
+ tools: string[];
16547
+ } | undefined;
16548
+ settings?: {
16549
+ sessionIdleTimeoutMinutes?: number | null | undefined;
16550
+ } | undefined;
16551
+ } | {
16552
+ type: "teams";
16553
+ credentialId: string;
16554
+ approval?: {
16555
+ mode: "global";
16556
+ } | {
16557
+ mode: "selected";
16558
+ tools: string[];
16559
+ } | undefined;
14730
16560
  settings?: {
14731
16561
  sessionIdleTimeoutMinutes?: number | null | undefined;
16562
+ displayName?: string | undefined;
16563
+ description?: string | undefined;
16564
+ teamChannels?: boolean | undefined;
16565
+ groupChats?: boolean | undefined;
16566
+ readAllChannelMessages?: boolean | undefined;
16567
+ readAllGroupMessages?: boolean | undefined;
14732
16568
  } | undefined;
16569
+ } | {
16570
+ type: "n8n_chat";
16571
+ credentialId: "";
14733
16572
  })[] | undefined;
14734
16573
  mcpServers?: {
14735
16574
  name: string;
@@ -14935,6 +16774,12 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
14935
16774
  integrations?: ({
14936
16775
  type: "telegram";
14937
16776
  credentialId: string;
16777
+ approval?: {
16778
+ mode: "global";
16779
+ } | {
16780
+ mode: "selected";
16781
+ tools: string[];
16782
+ } | undefined;
14938
16783
  settings?: {
14939
16784
  accessMode: "private" | "public";
14940
16785
  allowedUsers?: string[] | undefined;
@@ -14943,6 +16788,12 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
14943
16788
  } | {
14944
16789
  type: "slack";
14945
16790
  credentialId: string;
16791
+ approval?: {
16792
+ mode: "global";
16793
+ } | {
16794
+ mode: "selected";
16795
+ tools: string[];
16796
+ } | undefined;
14946
16797
  settings?: {
14947
16798
  messagingExperience: "agent" | "assistant";
14948
16799
  sessionIdleTimeoutMinutes?: number | null | undefined;
@@ -14950,15 +16801,48 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
14950
16801
  } | {
14951
16802
  type: "linear";
14952
16803
  credentialId: string;
16804
+ approval?: {
16805
+ mode: "global";
16806
+ } | {
16807
+ mode: "selected";
16808
+ tools: string[];
16809
+ } | undefined;
14953
16810
  settings?: {
14954
16811
  sessionIdleTimeoutMinutes?: number | null | undefined;
14955
16812
  } | undefined;
14956
16813
  } | {
14957
16814
  type: "discord";
14958
16815
  credentialId: string;
16816
+ approval?: {
16817
+ mode: "global";
16818
+ } | {
16819
+ mode: "selected";
16820
+ tools: string[];
16821
+ } | undefined;
16822
+ settings?: {
16823
+ sessionIdleTimeoutMinutes?: number | null | undefined;
16824
+ } | undefined;
16825
+ } | {
16826
+ type: "teams";
16827
+ credentialId: string;
16828
+ approval?: {
16829
+ mode: "global";
16830
+ } | {
16831
+ mode: "selected";
16832
+ tools: string[];
16833
+ } | undefined;
14959
16834
  settings?: {
14960
16835
  sessionIdleTimeoutMinutes?: number | null | undefined;
16836
+ displayName?: string | undefined;
16837
+ description?: string | undefined;
16838
+ teamChannels?: boolean | undefined;
16839
+ groupChats?: boolean | undefined;
16840
+ readAllChannelMessages?: boolean | undefined;
16841
+ readAllGroupMessages?: boolean | undefined;
14961
16842
  } | undefined;
16843
+ } | {
16844
+ type: "n8n_chat";
16845
+ credentialId?: "" | undefined;
14962
16846
  })[] | undefined;
14963
16847
  mcpServers?: {
14964
16848
  name: string;
@@ -15164,6 +17048,12 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
15164
17048
  integrations?: ({
15165
17049
  type: "telegram";
15166
17050
  credentialId: string;
17051
+ approval?: {
17052
+ mode: "global";
17053
+ } | {
17054
+ mode: "selected";
17055
+ tools: string[];
17056
+ } | undefined;
15167
17057
  settings?: {
15168
17058
  accessMode: "private" | "public";
15169
17059
  allowedUsers: string[];
@@ -15172,6 +17062,12 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
15172
17062
  } | {
15173
17063
  type: "slack";
15174
17064
  credentialId: string;
17065
+ approval?: {
17066
+ mode: "global";
17067
+ } | {
17068
+ mode: "selected";
17069
+ tools: string[];
17070
+ } | undefined;
15175
17071
  settings?: {
15176
17072
  messagingExperience: "agent" | "assistant";
15177
17073
  sessionIdleTimeoutMinutes?: number | null | undefined;
@@ -15179,15 +17075,48 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
15179
17075
  } | {
15180
17076
  type: "linear";
15181
17077
  credentialId: string;
17078
+ approval?: {
17079
+ mode: "global";
17080
+ } | {
17081
+ mode: "selected";
17082
+ tools: string[];
17083
+ } | undefined;
17084
+ settings?: {
17085
+ sessionIdleTimeoutMinutes?: number | null | undefined;
17086
+ } | undefined;
17087
+ } | {
17088
+ type: "discord";
17089
+ credentialId: string;
17090
+ approval?: {
17091
+ mode: "global";
17092
+ } | {
17093
+ mode: "selected";
17094
+ tools: string[];
17095
+ } | undefined;
15182
17096
  settings?: {
15183
17097
  sessionIdleTimeoutMinutes?: number | null | undefined;
15184
17098
  } | undefined;
15185
- } | {
15186
- type: "discord";
15187
- credentialId: string;
17099
+ } | {
17100
+ type: "teams";
17101
+ credentialId: string;
17102
+ approval?: {
17103
+ mode: "global";
17104
+ } | {
17105
+ mode: "selected";
17106
+ tools: string[];
17107
+ } | undefined;
15188
17108
  settings?: {
15189
17109
  sessionIdleTimeoutMinutes?: number | null | undefined;
17110
+ displayName?: string | undefined;
17111
+ description?: string | undefined;
17112
+ teamChannels?: boolean | undefined;
17113
+ groupChats?: boolean | undefined;
17114
+ readAllChannelMessages?: boolean | undefined;
17115
+ readAllGroupMessages?: boolean | undefined;
15190
17116
  } | undefined;
17117
+ } | {
17118
+ type: "n8n_chat";
17119
+ credentialId: "";
15191
17120
  })[] | undefined;
15192
17121
  mcpServers?: {
15193
17122
  name: string;
@@ -15393,6 +17322,12 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
15393
17322
  integrations?: ({
15394
17323
  type: "telegram";
15395
17324
  credentialId: string;
17325
+ approval?: {
17326
+ mode: "global";
17327
+ } | {
17328
+ mode: "selected";
17329
+ tools: string[];
17330
+ } | undefined;
15396
17331
  settings?: {
15397
17332
  accessMode: "private" | "public";
15398
17333
  allowedUsers?: string[] | undefined;
@@ -15401,6 +17336,12 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
15401
17336
  } | {
15402
17337
  type: "slack";
15403
17338
  credentialId: string;
17339
+ approval?: {
17340
+ mode: "global";
17341
+ } | {
17342
+ mode: "selected";
17343
+ tools: string[];
17344
+ } | undefined;
15404
17345
  settings?: {
15405
17346
  messagingExperience: "agent" | "assistant";
15406
17347
  sessionIdleTimeoutMinutes?: number | null | undefined;
@@ -15408,15 +17349,48 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
15408
17349
  } | {
15409
17350
  type: "linear";
15410
17351
  credentialId: string;
17352
+ approval?: {
17353
+ mode: "global";
17354
+ } | {
17355
+ mode: "selected";
17356
+ tools: string[];
17357
+ } | undefined;
15411
17358
  settings?: {
15412
17359
  sessionIdleTimeoutMinutes?: number | null | undefined;
15413
17360
  } | undefined;
15414
17361
  } | {
15415
17362
  type: "discord";
15416
17363
  credentialId: string;
17364
+ approval?: {
17365
+ mode: "global";
17366
+ } | {
17367
+ mode: "selected";
17368
+ tools: string[];
17369
+ } | undefined;
17370
+ settings?: {
17371
+ sessionIdleTimeoutMinutes?: number | null | undefined;
17372
+ } | undefined;
17373
+ } | {
17374
+ type: "teams";
17375
+ credentialId: string;
17376
+ approval?: {
17377
+ mode: "global";
17378
+ } | {
17379
+ mode: "selected";
17380
+ tools: string[];
17381
+ } | undefined;
15417
17382
  settings?: {
15418
17383
  sessionIdleTimeoutMinutes?: number | null | undefined;
17384
+ displayName?: string | undefined;
17385
+ description?: string | undefined;
17386
+ teamChannels?: boolean | undefined;
17387
+ groupChats?: boolean | undefined;
17388
+ readAllChannelMessages?: boolean | undefined;
17389
+ readAllGroupMessages?: boolean | undefined;
15419
17390
  } | undefined;
17391
+ } | {
17392
+ type: "n8n_chat";
17393
+ credentialId?: "" | undefined;
15420
17394
  })[] | undefined;
15421
17395
  mcpServers?: {
15422
17396
  name: string;
@@ -15680,6 +17654,12 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
15680
17654
  integrations?: ({
15681
17655
  type: "telegram";
15682
17656
  credentialId: string;
17657
+ approval?: {
17658
+ mode: "global";
17659
+ } | {
17660
+ mode: "selected";
17661
+ tools: string[];
17662
+ } | undefined;
15683
17663
  settings?: {
15684
17664
  accessMode: "private" | "public";
15685
17665
  allowedUsers: string[];
@@ -15688,6 +17668,12 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
15688
17668
  } | {
15689
17669
  type: "slack";
15690
17670
  credentialId: string;
17671
+ approval?: {
17672
+ mode: "global";
17673
+ } | {
17674
+ mode: "selected";
17675
+ tools: string[];
17676
+ } | undefined;
15691
17677
  settings?: {
15692
17678
  messagingExperience: "agent" | "assistant";
15693
17679
  sessionIdleTimeoutMinutes?: number | null | undefined;
@@ -15695,15 +17681,48 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
15695
17681
  } | {
15696
17682
  type: "linear";
15697
17683
  credentialId: string;
17684
+ approval?: {
17685
+ mode: "global";
17686
+ } | {
17687
+ mode: "selected";
17688
+ tools: string[];
17689
+ } | undefined;
15698
17690
  settings?: {
15699
17691
  sessionIdleTimeoutMinutes?: number | null | undefined;
15700
17692
  } | undefined;
15701
17693
  } | {
15702
17694
  type: "discord";
15703
17695
  credentialId: string;
17696
+ approval?: {
17697
+ mode: "global";
17698
+ } | {
17699
+ mode: "selected";
17700
+ tools: string[];
17701
+ } | undefined;
17702
+ settings?: {
17703
+ sessionIdleTimeoutMinutes?: number | null | undefined;
17704
+ } | undefined;
17705
+ } | {
17706
+ type: "teams";
17707
+ credentialId: string;
17708
+ approval?: {
17709
+ mode: "global";
17710
+ } | {
17711
+ mode: "selected";
17712
+ tools: string[];
17713
+ } | undefined;
15704
17714
  settings?: {
15705
17715
  sessionIdleTimeoutMinutes?: number | null | undefined;
17716
+ displayName?: string | undefined;
17717
+ description?: string | undefined;
17718
+ teamChannels?: boolean | undefined;
17719
+ groupChats?: boolean | undefined;
17720
+ readAllChannelMessages?: boolean | undefined;
17721
+ readAllGroupMessages?: boolean | undefined;
15706
17722
  } | undefined;
17723
+ } | {
17724
+ type: "n8n_chat";
17725
+ credentialId: "";
15707
17726
  })[] | undefined;
15708
17727
  mcpServers?: {
15709
17728
  name: string;
@@ -15927,6 +17946,12 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
15927
17946
  integrations?: ({
15928
17947
  type: "telegram";
15929
17948
  credentialId: string;
17949
+ approval?: {
17950
+ mode: "global";
17951
+ } | {
17952
+ mode: "selected";
17953
+ tools: string[];
17954
+ } | undefined;
15930
17955
  settings?: {
15931
17956
  accessMode: "private" | "public";
15932
17957
  allowedUsers?: string[] | undefined;
@@ -15935,6 +17960,12 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
15935
17960
  } | {
15936
17961
  type: "slack";
15937
17962
  credentialId: string;
17963
+ approval?: {
17964
+ mode: "global";
17965
+ } | {
17966
+ mode: "selected";
17967
+ tools: string[];
17968
+ } | undefined;
15938
17969
  settings?: {
15939
17970
  messagingExperience: "agent" | "assistant";
15940
17971
  sessionIdleTimeoutMinutes?: number | null | undefined;
@@ -15942,15 +17973,48 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
15942
17973
  } | {
15943
17974
  type: "linear";
15944
17975
  credentialId: string;
17976
+ approval?: {
17977
+ mode: "global";
17978
+ } | {
17979
+ mode: "selected";
17980
+ tools: string[];
17981
+ } | undefined;
15945
17982
  settings?: {
15946
17983
  sessionIdleTimeoutMinutes?: number | null | undefined;
15947
17984
  } | undefined;
15948
17985
  } | {
15949
17986
  type: "discord";
15950
17987
  credentialId: string;
17988
+ approval?: {
17989
+ mode: "global";
17990
+ } | {
17991
+ mode: "selected";
17992
+ tools: string[];
17993
+ } | undefined;
17994
+ settings?: {
17995
+ sessionIdleTimeoutMinutes?: number | null | undefined;
17996
+ } | undefined;
17997
+ } | {
17998
+ type: "teams";
17999
+ credentialId: string;
18000
+ approval?: {
18001
+ mode: "global";
18002
+ } | {
18003
+ mode: "selected";
18004
+ tools: string[];
18005
+ } | undefined;
15951
18006
  settings?: {
15952
18007
  sessionIdleTimeoutMinutes?: number | null | undefined;
18008
+ displayName?: string | undefined;
18009
+ description?: string | undefined;
18010
+ teamChannels?: boolean | undefined;
18011
+ groupChats?: boolean | undefined;
18012
+ readAllChannelMessages?: boolean | undefined;
18013
+ readAllGroupMessages?: boolean | undefined;
15953
18014
  } | undefined;
18015
+ } | {
18016
+ type: "n8n_chat";
18017
+ credentialId?: "" | undefined;
15954
18018
  })[] | undefined;
15955
18019
  mcpServers?: {
15956
18020
  name: string;
@@ -16174,6 +18238,12 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
16174
18238
  integrations?: ({
16175
18239
  type: "telegram";
16176
18240
  credentialId: string;
18241
+ approval?: {
18242
+ mode: "global";
18243
+ } | {
18244
+ mode: "selected";
18245
+ tools: string[];
18246
+ } | undefined;
16177
18247
  settings?: {
16178
18248
  accessMode: "private" | "public";
16179
18249
  allowedUsers: string[];
@@ -16182,6 +18252,12 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
16182
18252
  } | {
16183
18253
  type: "slack";
16184
18254
  credentialId: string;
18255
+ approval?: {
18256
+ mode: "global";
18257
+ } | {
18258
+ mode: "selected";
18259
+ tools: string[];
18260
+ } | undefined;
16185
18261
  settings?: {
16186
18262
  messagingExperience: "agent" | "assistant";
16187
18263
  sessionIdleTimeoutMinutes?: number | null | undefined;
@@ -16189,15 +18265,48 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
16189
18265
  } | {
16190
18266
  type: "linear";
16191
18267
  credentialId: string;
18268
+ approval?: {
18269
+ mode: "global";
18270
+ } | {
18271
+ mode: "selected";
18272
+ tools: string[];
18273
+ } | undefined;
16192
18274
  settings?: {
16193
18275
  sessionIdleTimeoutMinutes?: number | null | undefined;
16194
18276
  } | undefined;
16195
18277
  } | {
16196
18278
  type: "discord";
16197
18279
  credentialId: string;
18280
+ approval?: {
18281
+ mode: "global";
18282
+ } | {
18283
+ mode: "selected";
18284
+ tools: string[];
18285
+ } | undefined;
18286
+ settings?: {
18287
+ sessionIdleTimeoutMinutes?: number | null | undefined;
18288
+ } | undefined;
18289
+ } | {
18290
+ type: "teams";
18291
+ credentialId: string;
18292
+ approval?: {
18293
+ mode: "global";
18294
+ } | {
18295
+ mode: "selected";
18296
+ tools: string[];
18297
+ } | undefined;
16198
18298
  settings?: {
16199
18299
  sessionIdleTimeoutMinutes?: number | null | undefined;
18300
+ displayName?: string | undefined;
18301
+ description?: string | undefined;
18302
+ teamChannels?: boolean | undefined;
18303
+ groupChats?: boolean | undefined;
18304
+ readAllChannelMessages?: boolean | undefined;
18305
+ readAllGroupMessages?: boolean | undefined;
16200
18306
  } | undefined;
18307
+ } | {
18308
+ type: "n8n_chat";
18309
+ credentialId: "";
16201
18310
  })[] | undefined;
16202
18311
  mcpServers?: {
16203
18312
  name: string;
@@ -16421,6 +18530,12 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
16421
18530
  integrations?: ({
16422
18531
  type: "telegram";
16423
18532
  credentialId: string;
18533
+ approval?: {
18534
+ mode: "global";
18535
+ } | {
18536
+ mode: "selected";
18537
+ tools: string[];
18538
+ } | undefined;
16424
18539
  settings?: {
16425
18540
  accessMode: "private" | "public";
16426
18541
  allowedUsers?: string[] | undefined;
@@ -16429,6 +18544,12 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
16429
18544
  } | {
16430
18545
  type: "slack";
16431
18546
  credentialId: string;
18547
+ approval?: {
18548
+ mode: "global";
18549
+ } | {
18550
+ mode: "selected";
18551
+ tools: string[];
18552
+ } | undefined;
16432
18553
  settings?: {
16433
18554
  messagingExperience: "agent" | "assistant";
16434
18555
  sessionIdleTimeoutMinutes?: number | null | undefined;
@@ -16436,15 +18557,48 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
16436
18557
  } | {
16437
18558
  type: "linear";
16438
18559
  credentialId: string;
18560
+ approval?: {
18561
+ mode: "global";
18562
+ } | {
18563
+ mode: "selected";
18564
+ tools: string[];
18565
+ } | undefined;
16439
18566
  settings?: {
16440
18567
  sessionIdleTimeoutMinutes?: number | null | undefined;
16441
18568
  } | undefined;
16442
18569
  } | {
16443
18570
  type: "discord";
16444
18571
  credentialId: string;
18572
+ approval?: {
18573
+ mode: "global";
18574
+ } | {
18575
+ mode: "selected";
18576
+ tools: string[];
18577
+ } | undefined;
18578
+ settings?: {
18579
+ sessionIdleTimeoutMinutes?: number | null | undefined;
18580
+ } | undefined;
18581
+ } | {
18582
+ type: "teams";
18583
+ credentialId: string;
18584
+ approval?: {
18585
+ mode: "global";
18586
+ } | {
18587
+ mode: "selected";
18588
+ tools: string[];
18589
+ } | undefined;
16445
18590
  settings?: {
16446
18591
  sessionIdleTimeoutMinutes?: number | null | undefined;
18592
+ displayName?: string | undefined;
18593
+ description?: string | undefined;
18594
+ teamChannels?: boolean | undefined;
18595
+ groupChats?: boolean | undefined;
18596
+ readAllChannelMessages?: boolean | undefined;
18597
+ readAllGroupMessages?: boolean | undefined;
16447
18598
  } | undefined;
18599
+ } | {
18600
+ type: "n8n_chat";
18601
+ credentialId?: "" | undefined;
16448
18602
  })[] | undefined;
16449
18603
  mcpServers?: {
16450
18604
  name: string;
@@ -16668,6 +18822,12 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
16668
18822
  integrations?: ({
16669
18823
  type: "telegram";
16670
18824
  credentialId: string;
18825
+ approval?: {
18826
+ mode: "global";
18827
+ } | {
18828
+ mode: "selected";
18829
+ tools: string[];
18830
+ } | undefined;
16671
18831
  settings?: {
16672
18832
  accessMode: "private" | "public";
16673
18833
  allowedUsers: string[];
@@ -16676,6 +18836,12 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
16676
18836
  } | {
16677
18837
  type: "slack";
16678
18838
  credentialId: string;
18839
+ approval?: {
18840
+ mode: "global";
18841
+ } | {
18842
+ mode: "selected";
18843
+ tools: string[];
18844
+ } | undefined;
16679
18845
  settings?: {
16680
18846
  messagingExperience: "agent" | "assistant";
16681
18847
  sessionIdleTimeoutMinutes?: number | null | undefined;
@@ -16683,15 +18849,48 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
16683
18849
  } | {
16684
18850
  type: "linear";
16685
18851
  credentialId: string;
18852
+ approval?: {
18853
+ mode: "global";
18854
+ } | {
18855
+ mode: "selected";
18856
+ tools: string[];
18857
+ } | undefined;
16686
18858
  settings?: {
16687
18859
  sessionIdleTimeoutMinutes?: number | null | undefined;
16688
18860
  } | undefined;
16689
18861
  } | {
16690
18862
  type: "discord";
16691
18863
  credentialId: string;
18864
+ approval?: {
18865
+ mode: "global";
18866
+ } | {
18867
+ mode: "selected";
18868
+ tools: string[];
18869
+ } | undefined;
18870
+ settings?: {
18871
+ sessionIdleTimeoutMinutes?: number | null | undefined;
18872
+ } | undefined;
18873
+ } | {
18874
+ type: "teams";
18875
+ credentialId: string;
18876
+ approval?: {
18877
+ mode: "global";
18878
+ } | {
18879
+ mode: "selected";
18880
+ tools: string[];
18881
+ } | undefined;
16692
18882
  settings?: {
16693
18883
  sessionIdleTimeoutMinutes?: number | null | undefined;
18884
+ displayName?: string | undefined;
18885
+ description?: string | undefined;
18886
+ teamChannels?: boolean | undefined;
18887
+ groupChats?: boolean | undefined;
18888
+ readAllChannelMessages?: boolean | undefined;
18889
+ readAllGroupMessages?: boolean | undefined;
16694
18890
  } | undefined;
18891
+ } | {
18892
+ type: "n8n_chat";
18893
+ credentialId: "";
16695
18894
  })[] | undefined;
16696
18895
  mcpServers?: {
16697
18896
  name: string;
@@ -16915,6 +19114,12 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
16915
19114
  integrations?: ({
16916
19115
  type: "telegram";
16917
19116
  credentialId: string;
19117
+ approval?: {
19118
+ mode: "global";
19119
+ } | {
19120
+ mode: "selected";
19121
+ tools: string[];
19122
+ } | undefined;
16918
19123
  settings?: {
16919
19124
  accessMode: "private" | "public";
16920
19125
  allowedUsers?: string[] | undefined;
@@ -16923,6 +19128,12 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
16923
19128
  } | {
16924
19129
  type: "slack";
16925
19130
  credentialId: string;
19131
+ approval?: {
19132
+ mode: "global";
19133
+ } | {
19134
+ mode: "selected";
19135
+ tools: string[];
19136
+ } | undefined;
16926
19137
  settings?: {
16927
19138
  messagingExperience: "agent" | "assistant";
16928
19139
  sessionIdleTimeoutMinutes?: number | null | undefined;
@@ -16930,15 +19141,48 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
16930
19141
  } | {
16931
19142
  type: "linear";
16932
19143
  credentialId: string;
19144
+ approval?: {
19145
+ mode: "global";
19146
+ } | {
19147
+ mode: "selected";
19148
+ tools: string[];
19149
+ } | undefined;
16933
19150
  settings?: {
16934
19151
  sessionIdleTimeoutMinutes?: number | null | undefined;
16935
19152
  } | undefined;
16936
19153
  } | {
16937
19154
  type: "discord";
16938
19155
  credentialId: string;
19156
+ approval?: {
19157
+ mode: "global";
19158
+ } | {
19159
+ mode: "selected";
19160
+ tools: string[];
19161
+ } | undefined;
19162
+ settings?: {
19163
+ sessionIdleTimeoutMinutes?: number | null | undefined;
19164
+ } | undefined;
19165
+ } | {
19166
+ type: "teams";
19167
+ credentialId: string;
19168
+ approval?: {
19169
+ mode: "global";
19170
+ } | {
19171
+ mode: "selected";
19172
+ tools: string[];
19173
+ } | undefined;
16939
19174
  settings?: {
16940
19175
  sessionIdleTimeoutMinutes?: number | null | undefined;
19176
+ displayName?: string | undefined;
19177
+ description?: string | undefined;
19178
+ teamChannels?: boolean | undefined;
19179
+ groupChats?: boolean | undefined;
19180
+ readAllChannelMessages?: boolean | undefined;
19181
+ readAllGroupMessages?: boolean | undefined;
16941
19182
  } | undefined;
19183
+ } | {
19184
+ type: "n8n_chat";
19185
+ credentialId?: "" | undefined;
16942
19186
  })[] | undefined;
16943
19187
  mcpServers?: {
16944
19188
  name: string;