@n8n/api-types 1.41.0 → 1.42.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (202) 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 +5 -1
  162. package/dist/index.d.ts +13 -9
  163. package/dist/index.js +44 -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.schema.d.ts +2463 -106
  180. package/dist/schemas/instance-ai.schema.js +131 -14
  181. package/dist/schemas/instance-ai.schema.js.map +1 -1
  182. package/dist/schemas/llm-step-display.d.ts +41 -0
  183. package/dist/schemas/llm-step-display.js +242 -3
  184. package/dist/schemas/llm-step-display.js.map +1 -1
  185. package/dist/schemas/mcp.schema.d.ts +2 -2
  186. package/dist/schemas/mcp.schema.js +2 -0
  187. package/dist/schemas/mcp.schema.js.map +1 -1
  188. package/dist/schemas/project.schema.d.ts +16 -0
  189. package/dist/schemas/project.schema.js +9 -1
  190. package/dist/schemas/project.schema.js.map +1 -1
  191. package/dist/schemas/public-api-path-params.schema.d.ts +7 -0
  192. package/dist/schemas/public-api-path-params.schema.js +25 -1
  193. package/dist/schemas/public-api-path-params.schema.js.map +1 -1
  194. package/package.json +10 -8
  195. package/dist/dto/data-table/public-api-create-data-table.dto.d.ts +0 -33
  196. package/dist/dto/data-table/public-api-create-data-table.dto.js +0 -17
  197. package/dist/dto/data-table/public-api-create-data-table.dto.js.map +0 -1
  198. package/dist/dto/evaluations/public-api-test-run.dto.d.ts +0 -37
  199. package/dist/dto/evaluations/public-api-test-run.dto.js.map +0 -1
  200. package/dist/schemas/community-package.schema.d.ts +0 -13
  201. package/dist/schemas/community-package.schema.js +0 -17
  202. 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
  }>;
@@ -1154,6 +1326,47 @@ export declare const instanceAiTargetApprovalSchema: z.ZodObject<{
1154
1326
  args?: unknown;
1155
1327
  }>;
1156
1328
  export type InstanceAiTargetApproval = z.infer<typeof instanceAiTargetApprovalSchema>;
1329
+ export declare const instanceAiQuestionSchema: z.ZodObject<{
1330
+ id: z.ZodString;
1331
+ question: z.ZodString;
1332
+ type: z.ZodEnum<["single", "multi", "text"]>;
1333
+ options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1334
+ required: z.ZodOptional<z.ZodBoolean>;
1335
+ freeTextLabel: z.ZodOptional<z.ZodString>;
1336
+ optionsByAnswer: z.ZodOptional<z.ZodObject<{
1337
+ questionId: z.ZodString;
1338
+ options: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
1339
+ }, "strip", z.ZodTypeAny, {
1340
+ questionId: string;
1341
+ options: Record<string, string[]>;
1342
+ }, {
1343
+ questionId: string;
1344
+ options: Record<string, string[]>;
1345
+ }>>;
1346
+ }, "strip", z.ZodTypeAny, {
1347
+ id: string;
1348
+ question: string;
1349
+ type: "multi" | "single" | "text";
1350
+ options?: string[] | undefined;
1351
+ required?: boolean | undefined;
1352
+ freeTextLabel?: string | undefined;
1353
+ optionsByAnswer?: {
1354
+ questionId: string;
1355
+ options: Record<string, string[]>;
1356
+ } | undefined;
1357
+ }, {
1358
+ id: string;
1359
+ question: string;
1360
+ type: "multi" | "single" | "text";
1361
+ options?: string[] | undefined;
1362
+ required?: boolean | undefined;
1363
+ freeTextLabel?: string | undefined;
1364
+ optionsByAnswer?: {
1365
+ questionId: string;
1366
+ options: Record<string, string[]>;
1367
+ } | undefined;
1368
+ }>;
1369
+ export type InstanceAiQuestion = z.infer<typeof instanceAiQuestionSchema>;
1157
1370
  export declare const confirmationRequestPayloadSchema: z.ZodObject<{
1158
1371
  requestId: z.ZodString;
1159
1372
  inputThreadId: z.ZodOptional<z.ZodString>;
@@ -1714,16 +1927,40 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
1714
1927
  question: z.ZodString;
1715
1928
  type: z.ZodEnum<["single", "multi", "text"]>;
1716
1929
  options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1930
+ required: z.ZodOptional<z.ZodBoolean>;
1931
+ freeTextLabel: z.ZodOptional<z.ZodString>;
1932
+ optionsByAnswer: z.ZodOptional<z.ZodObject<{
1933
+ questionId: z.ZodString;
1934
+ options: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
1935
+ }, "strip", z.ZodTypeAny, {
1936
+ questionId: string;
1937
+ options: Record<string, string[]>;
1938
+ }, {
1939
+ questionId: string;
1940
+ options: Record<string, string[]>;
1941
+ }>>;
1717
1942
  }, "strip", z.ZodTypeAny, {
1718
1943
  id: string;
1719
1944
  question: string;
1720
1945
  type: "multi" | "single" | "text";
1721
1946
  options?: string[] | undefined;
1947
+ required?: boolean | undefined;
1948
+ freeTextLabel?: string | undefined;
1949
+ optionsByAnswer?: {
1950
+ questionId: string;
1951
+ options: Record<string, string[]>;
1952
+ } | undefined;
1722
1953
  }, {
1723
1954
  id: string;
1724
1955
  question: string;
1725
1956
  type: "multi" | "single" | "text";
1726
1957
  options?: string[] | undefined;
1958
+ required?: boolean | undefined;
1959
+ freeTextLabel?: string | undefined;
1960
+ optionsByAnswer?: {
1961
+ questionId: string;
1962
+ options: Record<string, string[]>;
1963
+ } | undefined;
1727
1964
  }>, "many">>;
1728
1965
  introMessage: z.ZodOptional<z.ZodString>;
1729
1966
  tasks: z.ZodOptional<z.ZodObject<{
@@ -2408,6 +2645,12 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
2408
2645
  question: string;
2409
2646
  type: "multi" | "single" | "text";
2410
2647
  options?: string[] | undefined;
2648
+ required?: boolean | undefined;
2649
+ freeTextLabel?: string | undefined;
2650
+ optionsByAnswer?: {
2651
+ questionId: string;
2652
+ options: Record<string, string[]>;
2653
+ } | undefined;
2411
2654
  }[] | undefined;
2412
2655
  introMessage?: string | undefined;
2413
2656
  tasks?: {
@@ -2681,6 +2924,12 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
2681
2924
  question: string;
2682
2925
  type: "multi" | "single" | "text";
2683
2926
  options?: string[] | undefined;
2927
+ required?: boolean | undefined;
2928
+ freeTextLabel?: string | undefined;
2929
+ optionsByAnswer?: {
2930
+ questionId: string;
2931
+ options: Record<string, string[]>;
2932
+ } | undefined;
2684
2933
  }[] | undefined;
2685
2934
  introMessage?: string | undefined;
2686
2935
  tasks?: {
@@ -3991,6 +4240,29 @@ export declare const setupItemsPayloadSchema: z.ZodObject<{
3991
4240
  workflowId: string;
3992
4241
  items: unknown[];
3993
4242
  }>;
4243
+ export declare const preferenceCardPayloadSchema: z.ZodObject<{
4244
+ toolCallId: z.ZodString;
4245
+ preferenceId: z.ZodString;
4246
+ state: z.ZodEnum<["edited", "undone"]>;
4247
+ content: z.ZodOptional<z.ZodString>;
4248
+ scope: z.ZodOptional<z.ZodEnum<["user", "project", "instance"]>>;
4249
+ projectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4250
+ }, "strip", z.ZodTypeAny, {
4251
+ toolCallId: string;
4252
+ preferenceId: string;
4253
+ state: "edited" | "undone";
4254
+ content?: string | undefined;
4255
+ scope?: "instance" | "project" | "user" | undefined;
4256
+ projectId?: string | null | undefined;
4257
+ }, {
4258
+ toolCallId: string;
4259
+ preferenceId: string;
4260
+ state: "edited" | "undone";
4261
+ content?: string | undefined;
4262
+ scope?: "instance" | "project" | "user" | undefined;
4263
+ projectId?: string | null | undefined;
4264
+ }>;
4265
+ export type PreferenceCardPayload = z.infer<typeof preferenceCardPayloadSchema>;
3994
4266
  export declare const threadTitleUpdatedPayloadSchema: z.ZodObject<{
3995
4267
  title: z.ZodString;
3996
4268
  }, "strip", z.ZodTypeAny, {
@@ -4144,14 +4416,27 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
4144
4416
  payload: z.ZodObject<{
4145
4417
  status: z.ZodEnum<["completed", "cancelled", "error", "interrupted"]>;
4146
4418
  reason: z.ZodOptional<z.ZodString>;
4419
+ contextReach: z.ZodOptional<z.ZodObject<{
4420
+ surfaces: z.ZodArray<z.ZodEnum<["activity-list", "activity-expand", "node-usage", "workflow-read"]>, "many">;
4421
+ }, "strip", z.ZodTypeAny, {
4422
+ surfaces: ("activity-expand" | "activity-list" | "node-usage" | "workflow-read")[];
4423
+ }, {
4424
+ surfaces: ("activity-expand" | "activity-list" | "node-usage" | "workflow-read")[];
4425
+ }>>;
4147
4426
  archivedWorkflowIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4148
4427
  }, "strip", z.ZodTypeAny, {
4149
4428
  status: "cancelled" | "completed" | "error" | "interrupted";
4150
4429
  reason?: string | undefined;
4430
+ contextReach?: {
4431
+ surfaces: ("activity-expand" | "activity-list" | "node-usage" | "workflow-read")[];
4432
+ } | undefined;
4151
4433
  archivedWorkflowIds?: string[] | undefined;
4152
4434
  }, {
4153
4435
  status: "cancelled" | "completed" | "error" | "interrupted";
4154
4436
  reason?: string | undefined;
4437
+ contextReach?: {
4438
+ surfaces: ("activity-expand" | "activity-list" | "node-usage" | "workflow-read")[];
4439
+ } | undefined;
4155
4440
  archivedWorkflowIds?: string[] | undefined;
4156
4441
  }>;
4157
4442
  }, "strip", z.ZodTypeAny, {
@@ -4164,6 +4449,9 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
4164
4449
  payload: {
4165
4450
  status: "cancelled" | "completed" | "error" | "interrupted";
4166
4451
  reason?: string | undefined;
4452
+ contextReach?: {
4453
+ surfaces: ("activity-expand" | "activity-list" | "node-usage" | "workflow-read")[];
4454
+ } | undefined;
4167
4455
  archivedWorkflowIds?: string[] | undefined;
4168
4456
  };
4169
4457
  }, {
@@ -4176,6 +4464,9 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
4176
4464
  payload: {
4177
4465
  status: "cancelled" | "completed" | "error" | "interrupted";
4178
4466
  reason?: string | undefined;
4467
+ contextReach?: {
4468
+ surfaces: ("activity-expand" | "activity-list" | "node-usage" | "workflow-read")[];
4469
+ } | undefined;
4179
4470
  archivedWorkflowIds?: string[] | undefined;
4180
4471
  };
4181
4472
  }>, z.ZodObject<{
@@ -4191,6 +4482,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
4191
4482
  tools: z.ZodArray<z.ZodString, "many">;
4192
4483
  taskId: z.ZodOptional<z.ZodString>;
4193
4484
  kind: z.ZodOptional<z.ZodEnum<["builder", "data-table", "planner", "eval-setup", "agent-builder"]>>;
4485
+ activity: z.ZodOptional<z.ZodEnum<["creating", "editing", "exploring", "testing", "publishing", "working"]>>;
4194
4486
  title: z.ZodOptional<z.ZodString>;
4195
4487
  subtitle: z.ZodOptional<z.ZodString>;
4196
4488
  goal: z.ZodOptional<z.ZodString>;
@@ -4216,6 +4508,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
4216
4508
  tools: string[];
4217
4509
  taskId?: string | undefined;
4218
4510
  kind?: "agent-builder" | "builder" | "data-table" | "eval-setup" | "planner" | undefined;
4511
+ activity?: "creating" | "editing" | "exploring" | "publishing" | "testing" | "working" | undefined;
4219
4512
  title?: string | undefined;
4220
4513
  subtitle?: string | undefined;
4221
4514
  goal?: string | undefined;
@@ -4231,6 +4524,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
4231
4524
  tools: string[];
4232
4525
  taskId?: string | undefined;
4233
4526
  kind?: "agent-builder" | "builder" | "data-table" | "eval-setup" | "planner" | undefined;
4527
+ activity?: "creating" | "editing" | "exploring" | "publishing" | "testing" | "working" | undefined;
4234
4528
  title?: string | undefined;
4235
4529
  subtitle?: string | undefined;
4236
4530
  goal?: string | undefined;
@@ -4254,6 +4548,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
4254
4548
  tools: string[];
4255
4549
  taskId?: string | undefined;
4256
4550
  kind?: "agent-builder" | "builder" | "data-table" | "eval-setup" | "planner" | undefined;
4551
+ activity?: "creating" | "editing" | "exploring" | "publishing" | "testing" | "working" | undefined;
4257
4552
  title?: string | undefined;
4258
4553
  subtitle?: string | undefined;
4259
4554
  goal?: string | undefined;
@@ -4277,6 +4572,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
4277
4572
  tools: string[];
4278
4573
  taskId?: string | undefined;
4279
4574
  kind?: "agent-builder" | "builder" | "data-table" | "eval-setup" | "planner" | undefined;
4575
+ activity?: "creating" | "editing" | "exploring" | "publishing" | "testing" | "working" | undefined;
4280
4576
  title?: string | undefined;
4281
4577
  subtitle?: string | undefined;
4282
4578
  goal?: string | undefined;
@@ -4297,16 +4593,19 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
4297
4593
  payload: z.ZodObject<{
4298
4594
  role: z.ZodString;
4299
4595
  result: z.ZodString;
4596
+ agentChange: z.ZodOptional<z.ZodEnum<["created", "updated", "none"]>>;
4300
4597
  error: z.ZodOptional<z.ZodString>;
4301
4598
  status: z.ZodOptional<z.ZodEnum<["completed", "cancelled", "error"]>>;
4302
4599
  }, "strip", z.ZodTypeAny, {
4303
4600
  role: string;
4304
4601
  result: string;
4602
+ agentChange?: "created" | "none" | "updated" | undefined;
4305
4603
  error?: string | undefined;
4306
4604
  status?: "cancelled" | "completed" | "error" | undefined;
4307
4605
  }, {
4308
4606
  role: string;
4309
4607
  result: string;
4608
+ agentChange?: "created" | "none" | "updated" | undefined;
4310
4609
  error?: string | undefined;
4311
4610
  status?: "cancelled" | "completed" | "error" | undefined;
4312
4611
  }>;
@@ -4320,6 +4619,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
4320
4619
  payload: {
4321
4620
  role: string;
4322
4621
  result: string;
4622
+ agentChange?: "created" | "none" | "updated" | undefined;
4323
4623
  error?: string | undefined;
4324
4624
  status?: "cancelled" | "completed" | "error" | undefined;
4325
4625
  };
@@ -4333,6 +4633,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
4333
4633
  payload: {
4334
4634
  role: string;
4335
4635
  result: string;
4636
+ agentChange?: "created" | "none" | "updated" | undefined;
4336
4637
  error?: string | undefined;
4337
4638
  status?: "cancelled" | "completed" | "error" | undefined;
4338
4639
  };
@@ -5239,16 +5540,40 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
5239
5540
  question: z.ZodString;
5240
5541
  type: z.ZodEnum<["single", "multi", "text"]>;
5241
5542
  options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5543
+ required: z.ZodOptional<z.ZodBoolean>;
5544
+ freeTextLabel: z.ZodOptional<z.ZodString>;
5545
+ optionsByAnswer: z.ZodOptional<z.ZodObject<{
5546
+ questionId: z.ZodString;
5547
+ options: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
5548
+ }, "strip", z.ZodTypeAny, {
5549
+ questionId: string;
5550
+ options: Record<string, string[]>;
5551
+ }, {
5552
+ questionId: string;
5553
+ options: Record<string, string[]>;
5554
+ }>>;
5242
5555
  }, "strip", z.ZodTypeAny, {
5243
5556
  id: string;
5244
5557
  question: string;
5245
5558
  type: "multi" | "single" | "text";
5246
5559
  options?: string[] | undefined;
5560
+ required?: boolean | undefined;
5561
+ freeTextLabel?: string | undefined;
5562
+ optionsByAnswer?: {
5563
+ questionId: string;
5564
+ options: Record<string, string[]>;
5565
+ } | undefined;
5247
5566
  }, {
5248
5567
  id: string;
5249
5568
  question: string;
5250
5569
  type: "multi" | "single" | "text";
5251
5570
  options?: string[] | undefined;
5571
+ required?: boolean | undefined;
5572
+ freeTextLabel?: string | undefined;
5573
+ optionsByAnswer?: {
5574
+ questionId: string;
5575
+ options: Record<string, string[]>;
5576
+ } | undefined;
5252
5577
  }>, "many">>;
5253
5578
  introMessage: z.ZodOptional<z.ZodString>;
5254
5579
  tasks: z.ZodOptional<z.ZodObject<{
@@ -5933,6 +6258,12 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
5933
6258
  question: string;
5934
6259
  type: "multi" | "single" | "text";
5935
6260
  options?: string[] | undefined;
6261
+ required?: boolean | undefined;
6262
+ freeTextLabel?: string | undefined;
6263
+ optionsByAnswer?: {
6264
+ questionId: string;
6265
+ options: Record<string, string[]>;
6266
+ } | undefined;
5936
6267
  }[] | undefined;
5937
6268
  introMessage?: string | undefined;
5938
6269
  tasks?: {
@@ -6206,6 +6537,12 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
6206
6537
  question: string;
6207
6538
  type: "multi" | "single" | "text";
6208
6539
  options?: string[] | undefined;
6540
+ required?: boolean | undefined;
6541
+ freeTextLabel?: string | undefined;
6542
+ optionsByAnswer?: {
6543
+ questionId: string;
6544
+ options: Record<string, string[]>;
6545
+ } | undefined;
6209
6546
  }[] | undefined;
6210
6547
  introMessage?: string | undefined;
6211
6548
  tasks?: {
@@ -6487,6 +6824,12 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
6487
6824
  question: string;
6488
6825
  type: "multi" | "single" | "text";
6489
6826
  options?: string[] | undefined;
6827
+ required?: boolean | undefined;
6828
+ freeTextLabel?: string | undefined;
6829
+ optionsByAnswer?: {
6830
+ questionId: string;
6831
+ options: Record<string, string[]>;
6832
+ } | undefined;
6490
6833
  }[] | undefined;
6491
6834
  introMessage?: string | undefined;
6492
6835
  tasks?: {
@@ -6768,6 +7111,12 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
6768
7111
  question: string;
6769
7112
  type: "multi" | "single" | "text";
6770
7113
  options?: string[] | undefined;
7114
+ required?: boolean | undefined;
7115
+ freeTextLabel?: string | undefined;
7116
+ optionsByAnswer?: {
7117
+ questionId: string;
7118
+ options: Record<string, string[]>;
7119
+ } | undefined;
6771
7120
  }[] | undefined;
6772
7121
  introMessage?: string | undefined;
6773
7122
  tasks?: {
@@ -6896,6 +7245,132 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
6896
7245
  }[];
6897
7246
  } | undefined;
6898
7247
  };
7248
+ }>, z.ZodObject<{
7249
+ runId: z.ZodString;
7250
+ agentId: z.ZodString;
7251
+ userId: z.ZodOptional<z.ZodString>;
7252
+ responseId: z.ZodOptional<z.ZodString>;
7253
+ ts: z.ZodOptional<z.ZodNumber>;
7254
+ type: z.ZodLiteral<"instance-context">;
7255
+ payload: z.ZodObject<{
7256
+ injection: z.ZodDiscriminatedUnion<"state", [z.ZodObject<{
7257
+ state: z.ZodLiteral<"injected">;
7258
+ isUpdate: z.ZodBoolean;
7259
+ legs: z.ZodObject<{
7260
+ inventory: z.ZodNumber;
7261
+ events: z.ZodNumber;
7262
+ runs: z.ZodNumber;
7263
+ }, "strip", z.ZodTypeAny, {
7264
+ inventory: number;
7265
+ events: number;
7266
+ runs: number;
7267
+ }, {
7268
+ inventory: number;
7269
+ events: number;
7270
+ runs: number;
7271
+ }>;
7272
+ chars: z.ZodNumber;
7273
+ }, "strip", z.ZodTypeAny, {
7274
+ state: "injected";
7275
+ isUpdate: boolean;
7276
+ legs: {
7277
+ inventory: number;
7278
+ events: number;
7279
+ runs: number;
7280
+ };
7281
+ chars: number;
7282
+ }, {
7283
+ state: "injected";
7284
+ isUpdate: boolean;
7285
+ legs: {
7286
+ inventory: number;
7287
+ events: number;
7288
+ runs: number;
7289
+ };
7290
+ chars: number;
7291
+ }>, z.ZodObject<{
7292
+ state: z.ZodLiteral<"absent">;
7293
+ reason: z.ZodEnum<["disabled", "machine-follow-up", "empty", "failed"]>;
7294
+ }, "strip", z.ZodTypeAny, {
7295
+ state: "absent";
7296
+ reason: "disabled" | "empty" | "failed" | "machine-follow-up";
7297
+ }, {
7298
+ state: "absent";
7299
+ reason: "disabled" | "empty" | "failed" | "machine-follow-up";
7300
+ }>]>;
7301
+ }, "strip", z.ZodTypeAny, {
7302
+ injection: {
7303
+ state: "injected";
7304
+ isUpdate: boolean;
7305
+ legs: {
7306
+ inventory: number;
7307
+ events: number;
7308
+ runs: number;
7309
+ };
7310
+ chars: number;
7311
+ } | {
7312
+ state: "absent";
7313
+ reason: "disabled" | "empty" | "failed" | "machine-follow-up";
7314
+ };
7315
+ }, {
7316
+ injection: {
7317
+ state: "injected";
7318
+ isUpdate: boolean;
7319
+ legs: {
7320
+ inventory: number;
7321
+ events: number;
7322
+ runs: number;
7323
+ };
7324
+ chars: number;
7325
+ } | {
7326
+ state: "absent";
7327
+ reason: "disabled" | "empty" | "failed" | "machine-follow-up";
7328
+ };
7329
+ }>;
7330
+ }, "strip", z.ZodTypeAny, {
7331
+ runId: string;
7332
+ agentId: string;
7333
+ userId?: string | undefined;
7334
+ responseId?: string | undefined;
7335
+ ts?: number | undefined;
7336
+ type: "instance-context";
7337
+ payload: {
7338
+ injection: {
7339
+ state: "injected";
7340
+ isUpdate: boolean;
7341
+ legs: {
7342
+ inventory: number;
7343
+ events: number;
7344
+ runs: number;
7345
+ };
7346
+ chars: number;
7347
+ } | {
7348
+ state: "absent";
7349
+ reason: "disabled" | "empty" | "failed" | "machine-follow-up";
7350
+ };
7351
+ };
7352
+ }, {
7353
+ runId: string;
7354
+ agentId: string;
7355
+ userId?: string | undefined;
7356
+ responseId?: string | undefined;
7357
+ ts?: number | undefined;
7358
+ type: "instance-context";
7359
+ payload: {
7360
+ injection: {
7361
+ state: "injected";
7362
+ isUpdate: boolean;
7363
+ legs: {
7364
+ inventory: number;
7365
+ events: number;
7366
+ runs: number;
7367
+ };
7368
+ chars: number;
7369
+ } | {
7370
+ state: "absent";
7371
+ reason: "disabled" | "empty" | "failed" | "machine-follow-up";
7372
+ };
7373
+ };
6899
7374
  }>, z.ZodObject<{
6900
7375
  runId: z.ZodString;
6901
7376
  agentId: z.ZodString;
@@ -7506,6 +7981,65 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
7506
7981
  injectedThisTurn: false;
7507
7982
  carriedFromRunId?: string | undefined;
7508
7983
  };
7984
+ }>, z.ZodObject<{
7985
+ runId: z.ZodString;
7986
+ agentId: z.ZodString;
7987
+ userId: z.ZodOptional<z.ZodString>;
7988
+ responseId: z.ZodOptional<z.ZodString>;
7989
+ ts: z.ZodOptional<z.ZodNumber>;
7990
+ type: z.ZodLiteral<"preference-card">;
7991
+ payload: z.ZodObject<{
7992
+ toolCallId: z.ZodString;
7993
+ preferenceId: z.ZodString;
7994
+ state: z.ZodEnum<["edited", "undone"]>;
7995
+ content: z.ZodOptional<z.ZodString>;
7996
+ scope: z.ZodOptional<z.ZodEnum<["user", "project", "instance"]>>;
7997
+ projectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7998
+ }, "strip", z.ZodTypeAny, {
7999
+ toolCallId: string;
8000
+ preferenceId: string;
8001
+ state: "edited" | "undone";
8002
+ content?: string | undefined;
8003
+ scope?: "instance" | "project" | "user" | undefined;
8004
+ projectId?: string | null | undefined;
8005
+ }, {
8006
+ toolCallId: string;
8007
+ preferenceId: string;
8008
+ state: "edited" | "undone";
8009
+ content?: string | undefined;
8010
+ scope?: "instance" | "project" | "user" | undefined;
8011
+ projectId?: string | null | undefined;
8012
+ }>;
8013
+ }, "strip", z.ZodTypeAny, {
8014
+ runId: string;
8015
+ agentId: string;
8016
+ userId?: string | undefined;
8017
+ responseId?: string | undefined;
8018
+ ts?: number | undefined;
8019
+ type: "preference-card";
8020
+ payload: {
8021
+ toolCallId: string;
8022
+ preferenceId: string;
8023
+ state: "edited" | "undone";
8024
+ content?: string | undefined;
8025
+ scope?: "instance" | "project" | "user" | undefined;
8026
+ projectId?: string | null | undefined;
8027
+ };
8028
+ }, {
8029
+ runId: string;
8030
+ agentId: string;
8031
+ userId?: string | undefined;
8032
+ responseId?: string | undefined;
8033
+ ts?: number | undefined;
8034
+ type: "preference-card";
8035
+ payload: {
8036
+ toolCallId: string;
8037
+ preferenceId: string;
8038
+ state: "edited" | "undone";
8039
+ content?: string | undefined;
8040
+ scope?: "instance" | "project" | "user" | undefined;
8041
+ projectId?: string | null | undefined;
8042
+ };
7509
8043
  }>, z.ZodObject<{
7510
8044
  runId: z.ZodString;
7511
8045
  agentId: z.ZodString;
@@ -7732,6 +8266,9 @@ export type InstanceAiSetupItemsEvent = Extract<InstanceAiEvent, {
7732
8266
  export type InstanceAiPreferencesAppliedEvent = Extract<InstanceAiEvent, {
7733
8267
  type: 'preferences-applied';
7734
8268
  }>;
8269
+ export type InstanceAiPreferenceCardEvent = Extract<InstanceAiEvent, {
8270
+ type: 'preference-card';
8271
+ }>;
7735
8272
  export type InstanceAiStatusEvent = Extract<InstanceAiEvent, {
7736
8273
  type: 'status';
7737
8274
  }>;
@@ -7807,9 +8344,11 @@ export declare const instanceAiAgentAttachmentSchema: z.ZodObject<{
7807
8344
  pending?: true | undefined;
7808
8345
  }>;
7809
8346
  export type InstanceAiAgentAttachment = z.infer<typeof instanceAiAgentAttachmentSchema>;
8347
+ export declare const MAX_INSTANCE_AI_NODES_PER_SET = 50;
7810
8348
  export declare const instanceAiNodesAttachmentSchema: z.ZodObject<{
7811
8349
  type: z.ZodLiteral<"nodes">;
7812
8350
  workflowId: z.ZodString;
8351
+ workflowName: z.ZodOptional<z.ZodString>;
7813
8352
  sets: z.ZodArray<z.ZodObject<{
7814
8353
  nodes: z.ZodArray<z.ZodObject<{
7815
8354
  id: z.ZodString;
@@ -7877,6 +8416,7 @@ export declare const instanceAiNodesAttachmentSchema: z.ZodObject<{
7877
8416
  }, "strip", z.ZodTypeAny, {
7878
8417
  type: "nodes";
7879
8418
  workflowId: string;
8419
+ workflowName?: string | undefined;
7880
8420
  sets: {
7881
8421
  nodes: {
7882
8422
  id: string;
@@ -7896,6 +8436,7 @@ export declare const instanceAiNodesAttachmentSchema: z.ZodObject<{
7896
8436
  }, {
7897
8437
  type: "nodes";
7898
8438
  workflowId: string;
8439
+ workflowName?: string | undefined;
7899
8440
  sets: {
7900
8441
  nodes: {
7901
8442
  id: string;
@@ -7950,6 +8491,7 @@ export declare const instanceAiResourceAttachmentSchema: z.ZodDiscriminatedUnion
7950
8491
  }>, z.ZodObject<{
7951
8492
  type: z.ZodLiteral<"nodes">;
7952
8493
  workflowId: z.ZodString;
8494
+ workflowName: z.ZodOptional<z.ZodString>;
7953
8495
  sets: z.ZodArray<z.ZodObject<{
7954
8496
  nodes: z.ZodArray<z.ZodObject<{
7955
8497
  id: z.ZodString;
@@ -8017,6 +8559,7 @@ export declare const instanceAiResourceAttachmentSchema: z.ZodDiscriminatedUnion
8017
8559
  }, "strip", z.ZodTypeAny, {
8018
8560
  type: "nodes";
8019
8561
  workflowId: string;
8562
+ workflowName?: string | undefined;
8020
8563
  sets: {
8021
8564
  nodes: {
8022
8565
  id: string;
@@ -8036,6 +8579,7 @@ export declare const instanceAiResourceAttachmentSchema: z.ZodDiscriminatedUnion
8036
8579
  }, {
8037
8580
  type: "nodes";
8038
8581
  workflowId: string;
8582
+ workflowName?: string | undefined;
8039
8583
  sets: {
8040
8584
  nodes: {
8041
8585
  id: string;
@@ -8105,6 +8649,7 @@ export declare const instanceAiAttachmentSchema: z.ZodDiscriminatedUnion<"type",
8105
8649
  }>, z.ZodObject<{
8106
8650
  type: z.ZodLiteral<"nodes">;
8107
8651
  workflowId: z.ZodString;
8652
+ workflowName: z.ZodOptional<z.ZodString>;
8108
8653
  sets: z.ZodArray<z.ZodObject<{
8109
8654
  nodes: z.ZodArray<z.ZodObject<{
8110
8655
  id: z.ZodString;
@@ -8172,6 +8717,7 @@ export declare const instanceAiAttachmentSchema: z.ZodDiscriminatedUnion<"type",
8172
8717
  }, "strip", z.ZodTypeAny, {
8173
8718
  type: "nodes";
8174
8719
  workflowId: string;
8720
+ workflowName?: string | undefined;
8175
8721
  sets: {
8176
8722
  nodes: {
8177
8723
  id: string;
@@ -8191,6 +8737,7 @@ export declare const instanceAiAttachmentSchema: z.ZodDiscriminatedUnion<"type",
8191
8737
  }, {
8192
8738
  type: "nodes";
8193
8739
  workflowId: string;
8740
+ workflowName?: string | undefined;
8194
8741
  sets: {
8195
8742
  nodes: {
8196
8743
  id: string;
@@ -8470,51 +9017,178 @@ export declare const instanceAiThreadArtifactsContextSchema: z.ZodObject<{
8470
9017
  activeId?: string | undefined;
8471
9018
  }>;
8472
9019
  export type InstanceAiThreadArtifactsContext = z.infer<typeof instanceAiThreadArtifactsContextSchema>;
8473
- export declare const instanceAiBuildModeSchema: z.ZodEnum<["default", "progressive"]>;
8474
- export type InstanceAiBuildMode = z.infer<typeof instanceAiBuildModeSchema>;
8475
- export declare const instanceAiPromptConfigurationSchema: z.ZodObject<{
8476
- version: z.ZodString;
8477
- systemPromptVersion: z.ZodString;
8478
- skillVariants: z.ZodArray<z.ZodString, "many">;
8479
- skillsHash: z.ZodString;
8480
- fallbackFrom: z.ZodOptional<z.ZodString>;
9020
+ export declare const instanceAiThreadTabRefSchema: z.ZodObject<Pick<{
9021
+ type: z.ZodEnum<["workflow", "agent", "data-table"]>;
9022
+ id: z.ZodString;
9023
+ name: z.ZodOptional<z.ZodString>;
9024
+ projectId: z.ZodOptional<z.ZodString>;
9025
+ pending: z.ZodOptional<z.ZodLiteral<true>>;
9026
+ archived: z.ZodOptional<z.ZodLiteral<true>>;
9027
+ }, "id" | "type">, "strip", z.ZodTypeAny, {
9028
+ type: "agent" | "data-table" | "workflow";
9029
+ id: string;
9030
+ }, {
9031
+ type: "agent" | "data-table" | "workflow";
9032
+ id: string;
9033
+ }>;
9034
+ export type InstanceAiThreadTabRef = z.infer<typeof instanceAiThreadTabRefSchema>;
9035
+ export declare const instanceAiThreadTabSchema: z.ZodObject<Pick<{
9036
+ type: z.ZodEnum<["workflow", "agent", "data-table"]>;
9037
+ id: z.ZodString;
9038
+ name: z.ZodOptional<z.ZodString>;
9039
+ projectId: z.ZodOptional<z.ZodString>;
9040
+ pending: z.ZodOptional<z.ZodLiteral<true>>;
9041
+ archived: z.ZodOptional<z.ZodLiteral<true>>;
9042
+ }, "id" | "type"> & {
9043
+ name: z.ZodString;
9044
+ projectId: z.ZodOptional<z.ZodString>;
8481
9045
  }, "strip", z.ZodTypeAny, {
8482
- version: string;
8483
- systemPromptVersion: string;
8484
- skillVariants: string[];
8485
- skillsHash: string;
8486
- fallbackFrom?: string | undefined;
9046
+ type: "agent" | "data-table" | "workflow";
9047
+ id: string;
9048
+ name: string;
9049
+ projectId?: string | undefined;
8487
9050
  }, {
8488
- version: string;
8489
- systemPromptVersion: string;
8490
- skillVariants: string[];
8491
- skillsHash: string;
8492
- fallbackFrom?: string | undefined;
9051
+ type: "agent" | "data-table" | "workflow";
9052
+ id: string;
9053
+ name: string;
9054
+ projectId?: string | undefined;
8493
9055
  }>;
8494
- export type InstanceAiPromptConfiguration = z.infer<typeof instanceAiPromptConfigurationSchema>;
8495
- export declare const computerUseChannelSchema: z.ZodEnum<["localComputer", "browser"]>;
8496
- export type ComputerUseChannel = z.infer<typeof computerUseChannelSchema>;
8497
- declare const InstanceAiSendMessageRequest_base: import("../zod-class").ZodClass<{
8498
- message: string;
8499
- attachments?: ({
8500
- type: "file";
8501
- data: string;
8502
- mimeType: string;
8503
- fileName: string;
8504
- } | {
8505
- type: "workflow";
9056
+ export type InstanceAiThreadTab = z.infer<typeof instanceAiThreadTabSchema>;
9057
+ export declare const instanceAiThreadTabsStateSchema: z.ZodObject<{
9058
+ tabs: z.ZodArray<z.ZodObject<Pick<{
9059
+ type: z.ZodEnum<["workflow", "agent", "data-table"]>;
9060
+ id: z.ZodString;
9061
+ name: z.ZodOptional<z.ZodString>;
9062
+ projectId: z.ZodOptional<z.ZodString>;
9063
+ pending: z.ZodOptional<z.ZodLiteral<true>>;
9064
+ archived: z.ZodOptional<z.ZodLiteral<true>>;
9065
+ }, "id" | "type"> & {
9066
+ name: z.ZodString;
9067
+ projectId: z.ZodOptional<z.ZodString>;
9068
+ }, "strip", z.ZodTypeAny, {
9069
+ type: "agent" | "data-table" | "workflow";
8506
9070
  id: string;
8507
- name?: string | undefined;
8508
- executionId?: string | undefined;
8509
- } | {
8510
- type: "agent";
9071
+ name: string;
9072
+ projectId?: string | undefined;
9073
+ }, {
9074
+ type: "agent" | "data-table" | "workflow";
8511
9075
  id: string;
8512
- name?: string | undefined;
8513
- projectId: string;
8514
- pending?: true | undefined;
8515
- } | {
8516
- type: "nodes";
9076
+ name: string;
9077
+ projectId?: string | undefined;
9078
+ }>, "many">;
9079
+ closedTabs: z.ZodArray<z.ZodObject<Pick<{
9080
+ type: z.ZodEnum<["workflow", "agent", "data-table"]>;
9081
+ id: z.ZodString;
9082
+ name: z.ZodOptional<z.ZodString>;
9083
+ projectId: z.ZodOptional<z.ZodString>;
9084
+ pending: z.ZodOptional<z.ZodLiteral<true>>;
9085
+ archived: z.ZodOptional<z.ZodLiteral<true>>;
9086
+ }, "id" | "type">, "strip", z.ZodTypeAny, {
9087
+ type: "agent" | "data-table" | "workflow";
9088
+ id: string;
9089
+ }, {
9090
+ type: "agent" | "data-table" | "workflow";
9091
+ id: string;
9092
+ }>, "many">;
9093
+ activeTab: z.ZodNullable<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
+ }>>;
9107
+ previewOpen: z.ZodOptional<z.ZodBoolean>;
9108
+ }, "strip", z.ZodTypeAny, {
9109
+ tabs: {
9110
+ type: "agent" | "data-table" | "workflow";
9111
+ id: string;
9112
+ name: string;
9113
+ projectId?: string | undefined;
9114
+ }[];
9115
+ closedTabs: {
9116
+ type: "agent" | "data-table" | "workflow";
9117
+ id: string;
9118
+ }[];
9119
+ activeTab: {
9120
+ type: "agent" | "data-table" | "workflow";
9121
+ id: string;
9122
+ } | null;
9123
+ previewOpen?: boolean | undefined;
9124
+ }, {
9125
+ tabs: {
9126
+ type: "agent" | "data-table" | "workflow";
9127
+ id: string;
9128
+ name: string;
9129
+ projectId?: string | undefined;
9130
+ }[];
9131
+ closedTabs: {
9132
+ type: "agent" | "data-table" | "workflow";
9133
+ id: string;
9134
+ }[];
9135
+ activeTab: {
9136
+ type: "agent" | "data-table" | "workflow";
9137
+ id: string;
9138
+ } | null;
9139
+ previewOpen?: boolean | undefined;
9140
+ }>;
9141
+ export type InstanceAiThreadTabsState = z.infer<typeof instanceAiThreadTabsStateSchema>;
9142
+ export interface InstanceAiThreadTabsResponse {
9143
+ state: InstanceAiThreadTabsState | null;
9144
+ }
9145
+ export declare const instanceAiBuildModeSchema: z.ZodEnum<["default", "progressive"]>;
9146
+ export type InstanceAiBuildMode = z.infer<typeof instanceAiBuildModeSchema>;
9147
+ export declare const instanceAiPromptConfigurationSchema: z.ZodObject<{
9148
+ version: z.ZodString;
9149
+ systemPromptVersion: z.ZodString;
9150
+ skillVariants: z.ZodArray<z.ZodString, "many">;
9151
+ skillsHash: z.ZodString;
9152
+ fallbackFrom: z.ZodOptional<z.ZodString>;
9153
+ }, "strip", z.ZodTypeAny, {
9154
+ version: string;
9155
+ systemPromptVersion: string;
9156
+ skillVariants: string[];
9157
+ skillsHash: string;
9158
+ fallbackFrom?: string | undefined;
9159
+ }, {
9160
+ version: string;
9161
+ systemPromptVersion: string;
9162
+ skillVariants: string[];
9163
+ skillsHash: string;
9164
+ fallbackFrom?: string | undefined;
9165
+ }>;
9166
+ export type InstanceAiPromptConfiguration = z.infer<typeof instanceAiPromptConfigurationSchema>;
9167
+ export declare const computerUseChannelSchema: z.ZodEnum<["localComputer", "browser"]>;
9168
+ export type ComputerUseChannel = z.infer<typeof computerUseChannelSchema>;
9169
+ export declare const MAX_INSTANCE_AI_ATTACHMENTS_PER_MESSAGE = 10;
9170
+ declare const InstanceAiSendMessageRequest_base: import("../zod-class").ZodClass<{
9171
+ message: string;
9172
+ attachments?: ({
9173
+ type: "file";
9174
+ data: string;
9175
+ mimeType: string;
9176
+ fileName: string;
9177
+ } | {
9178
+ type: "workflow";
9179
+ id: string;
9180
+ name?: string | undefined;
9181
+ executionId?: string | undefined;
9182
+ } | {
9183
+ type: "agent";
9184
+ id: string;
9185
+ name?: string | undefined;
9186
+ projectId: string;
9187
+ pending?: true | undefined;
9188
+ } | {
9189
+ type: "nodes";
8517
9190
  workflowId: string;
9191
+ workflowName?: string | undefined;
8518
9192
  sets: {
8519
9193
  nodes: {
8520
9194
  id: string;
@@ -8573,6 +9247,7 @@ declare const InstanceAiSendMessageRequest_base: import("../zod-class").ZodClass
8573
9247
  computerUseChannels?: ("browser" | "localComputer")[] | undefined;
8574
9248
  mode?: "default" | "progressive" | undefined;
8575
9249
  promptVersion?: string | undefined;
9250
+ observerThresholdTokens?: number | undefined;
8576
9251
  }, {
8577
9252
  message: z.ZodDefault<z.ZodString>;
8578
9253
  attachments: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -8626,6 +9301,7 @@ declare const InstanceAiSendMessageRequest_base: import("../zod-class").ZodClass
8626
9301
  }>, z.ZodObject<{
8627
9302
  type: z.ZodLiteral<"nodes">;
8628
9303
  workflowId: z.ZodString;
9304
+ workflowName: z.ZodOptional<z.ZodString>;
8629
9305
  sets: z.ZodArray<z.ZodObject<{
8630
9306
  nodes: z.ZodArray<z.ZodObject<{
8631
9307
  id: z.ZodString;
@@ -8693,6 +9369,7 @@ declare const InstanceAiSendMessageRequest_base: import("../zod-class").ZodClass
8693
9369
  }, "strip", z.ZodTypeAny, {
8694
9370
  type: "nodes";
8695
9371
  workflowId: string;
9372
+ workflowName?: string | undefined;
8696
9373
  sets: {
8697
9374
  nodes: {
8698
9375
  id: string;
@@ -8712,6 +9389,7 @@ declare const InstanceAiSendMessageRequest_base: import("../zod-class").ZodClass
8712
9389
  }, {
8713
9390
  type: "nodes";
8714
9391
  workflowId: string;
9392
+ workflowName?: string | undefined;
8715
9393
  sets: {
8716
9394
  nodes: {
8717
9395
  id: string;
@@ -8872,6 +9550,7 @@ declare const InstanceAiSendMessageRequest_base: import("../zod-class").ZodClass
8872
9550
  computerUseChannels: z.ZodOptional<z.ZodArray<z.ZodEnum<["localComputer", "browser"]>, "many">>;
8873
9551
  mode: z.ZodOptional<z.ZodEnum<["default", "progressive"]>>;
8874
9552
  promptVersion: z.ZodOptional<z.ZodString>;
9553
+ observerThresholdTokens: z.ZodOptional<z.ZodNumber>;
8875
9554
  }>;
8876
9555
  export declare class InstanceAiSendMessageRequest extends InstanceAiSendMessageRequest_base {
8877
9556
  }
@@ -8882,7 +9561,7 @@ declare const InstanceAiCorrectTaskRequest_base: import("../zod-class").ZodClass
8882
9561
  }>;
8883
9562
  export declare class InstanceAiCorrectTaskRequest extends InstanceAiCorrectTaskRequest_base {
8884
9563
  }
8885
- export declare const INSTANCE_AI_THREAD_SOURCES: readonly ['website-template', 'template-view', 'canvas_action_button', 'canvas_choice_prompt', 'node_error_view', 'credential_edit', 'credentials_list', 'agent_builder_page', 'agent_preview', 'assistant_page', 'workflow_list_auto', 'workflow_list_button', 'evals', 'playwright'];
9564
+ export declare const INSTANCE_AI_THREAD_SOURCES: readonly ['website-template', 'template-view', 'canvas_action_button', 'canvas_choice_prompt', 'node_error_view', 'credential_edit', 'credentials_list', 'agent_builder_page', 'agent_preview', 'assistant_page', 'onboarding', 'workflow_list_auto', 'workflow_list_button', 'evals', 'playwright'];
8886
9565
  export type InstanceAiThreadSource = (typeof INSTANCE_AI_THREAD_SOURCES)[number];
8887
9566
  export declare const INSTANCE_AI_THREAD_SOURCE_FALLBACK = "unknown";
8888
9567
  export type InstanceAiThreadSourcePersisted = InstanceAiThreadSource | typeof INSTANCE_AI_THREAD_SOURCE_FALLBACK;
@@ -8890,18 +9569,23 @@ export declare const INSTANCE_AI_PREFILL_TYPES: readonly ['handoff_execution_err
8890
9569
  export type InstanceAiPrefillType = (typeof INSTANCE_AI_PREFILL_TYPES)[number];
8891
9570
  export declare const INSTANCE_AI_PREFILL_TYPE_FALLBACK = "unknown";
8892
9571
  export type InstanceAiPrefillTypeReported = InstanceAiPrefillType | typeof INSTANCE_AI_PREFILL_TYPE_FALLBACK;
9572
+ export interface InstanceAiPrefillPayload {
9573
+ text: string;
9574
+ prefillType: InstanceAiPrefillTypeReported;
9575
+ prefillId?: string;
9576
+ }
8893
9577
  export declare const INSTANCE_AI_THREAD_ORIGINS: readonly ['internal', 'external'];
8894
9578
  export type InstanceAiThreadOrigin = (typeof INSTANCE_AI_THREAD_ORIGINS)[number];
8895
9579
  declare const InstanceAiEnsureThreadRequest_base: import("../zod-class").ZodClass<{
8896
9580
  threadId?: string | undefined;
8897
9581
  projectId: string;
8898
- source: "agent_builder_page" | "agent_preview" | "assistant_page" | "canvas_action_button" | "canvas_choice_prompt" | "credential_edit" | "credentials_list" | "evals" | "node_error_view" | "playwright" | "template-view" | "website-template" | "workflow_list_auto" | "workflow_list_button";
9582
+ source: "agent_builder_page" | "agent_preview" | "assistant_page" | "canvas_action_button" | "canvas_choice_prompt" | "credential_edit" | "credentials_list" | "evals" | "node_error_view" | "onboarding" | "playwright" | "template-view" | "website-template" | "workflow_list_auto" | "workflow_list_button";
8899
9583
  origin?: "external" | "internal" | undefined;
8900
9584
  sourceContext?: Record<string, unknown> | undefined;
8901
9585
  }, {
8902
9586
  threadId: z.ZodOptional<z.ZodString>;
8903
9587
  projectId: z.ZodString;
8904
- source: z.ZodEnum<["website-template", "template-view", "canvas_action_button", "canvas_choice_prompt", "node_error_view", "credential_edit", "credentials_list", "agent_builder_page", "agent_preview", "assistant_page", "workflow_list_auto", "workflow_list_button", "evals", "playwright"]>;
9588
+ source: z.ZodEnum<["website-template", "template-view", "canvas_action_button", "canvas_choice_prompt", "node_error_view", "credential_edit", "credentials_list", "agent_builder_page", "agent_preview", "assistant_page", "onboarding", "workflow_list_auto", "workflow_list_button", "evals", "playwright"]>;
8905
9589
  origin: z.ZodOptional<z.ZodEnum<["internal", "external"]>>;
8906
9590
  sourceContext: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>>;
8907
9591
  }>;
@@ -8950,6 +9634,14 @@ export declare class InstanceAiThreadMessagesQuery extends InstanceAiThreadMessa
8950
9634
  export interface InstanceAiSendMessageResponse {
8951
9635
  runId: string;
8952
9636
  }
9637
+ export interface InstanceAiPreferenceCardUndoResponse {
9638
+ ok: true;
9639
+ event: InstanceAiPreferenceCardEvent;
9640
+ }
9641
+ export interface InstanceAiPreferenceCardEditResponse {
9642
+ preference: AiPreferenceDto;
9643
+ event: InstanceAiPreferenceCardEvent;
9644
+ }
8953
9645
  export declare const INSTANCE_AI_RUN_LIMIT_REASONS: readonly ['user_run_limit', 'instance_run_limit'];
8954
9646
  export type InstanceAiRunLimitReason = (typeof INSTANCE_AI_RUN_LIMIT_REASONS)[number];
8955
9647
  export type InstanceAiRunLimitMeta = {
@@ -8965,10 +9657,17 @@ export interface InstanceAiToolCallState {
8965
9657
  args: Record<string, unknown>;
8966
9658
  result?: unknown;
8967
9659
  error?: string;
9660
+ interrupted?: true;
8968
9661
  isLoading: boolean;
8969
9662
  renderHint?: 'tasks' | 'builder' | 'researcher' | 'data-table' | 'planner' | 'eval-setup' | 'skill' | 'default';
8970
9663
  confirmation?: InstanceAiConfirmation;
8971
9664
  confirmationStatus?: 'pending' | 'approved' | 'denied';
9665
+ preferenceCard?: {
9666
+ state: 'edited' | 'undone';
9667
+ content?: string;
9668
+ scope?: AiPreferenceScope;
9669
+ projectId?: string | null;
9670
+ };
8972
9671
  startedAt?: string;
8973
9672
  completedAt?: string;
8974
9673
  }
@@ -8988,6 +9687,12 @@ export type InstanceAiTimelineEntry = {
8988
9687
  type: 'child';
8989
9688
  agentId: string;
8990
9689
  responseId?: string;
9690
+ } | {
9691
+ type: 'instance-context';
9692
+ runId: string;
9693
+ injection: InstanceContextInjection;
9694
+ reach?: InstanceContextReach;
9695
+ responseId?: string;
8991
9696
  };
8992
9697
  export interface InstanceAiAgentNode {
8993
9698
  agentId: string;
@@ -8995,6 +9700,8 @@ export interface InstanceAiAgentNode {
8995
9700
  tools?: string[];
8996
9701
  taskId?: string;
8997
9702
  kind?: InstanceAiAgentKind;
9703
+ activity?: InstanceAiAgentActivity;
9704
+ agentChange?: InstanceAiAgentChange;
8998
9705
  title?: string;
8999
9706
  subtitle?: string;
9000
9707
  goal?: string;
@@ -9133,6 +9840,7 @@ export interface InstanceAiRichMessagesResponse {
9133
9840
  projectId?: string;
9134
9841
  messages: InstanceAiMessage[];
9135
9842
  nextEventId: number;
9843
+ appliedPreferences?: AiPreferencesAppliedPayload;
9136
9844
  }
9137
9845
  export declare const INSTANCE_AI_MEMORY_TASK_WAIT_TIMEOUT_MS = 30000;
9138
9846
  export type InstanceAiMemoryTaskKind = 'observer' | 'reflector';
@@ -9188,6 +9896,7 @@ declare const instanceAiPermissionsSchema: z.ZodObject<{
9188
9896
  restoreWorkflowVersion: z.ZodEnum<["require_approval", "always_allow", "blocked"]>;
9189
9897
  executeNode: z.ZodEnum<["require_approval", "always_allow", "blocked"]>;
9190
9898
  executeMcpTool: z.ZodEnum<["require_approval", "always_allow", "blocked"]>;
9899
+ createPreference: z.ZodEnum<["require_approval", "always_allow", "blocked"]>;
9191
9900
  }, "strip", z.ZodTypeAny, {
9192
9901
  createWorkflow: "always_allow" | "blocked" | "require_approval";
9193
9902
  updateWorkflow: "always_allow" | "blocked" | "require_approval";
@@ -9211,6 +9920,7 @@ declare const instanceAiPermissionsSchema: z.ZodObject<{
9211
9920
  restoreWorkflowVersion: "always_allow" | "blocked" | "require_approval";
9212
9921
  executeNode: "always_allow" | "blocked" | "require_approval";
9213
9922
  executeMcpTool: "always_allow" | "blocked" | "require_approval";
9923
+ createPreference: "always_allow" | "blocked" | "require_approval";
9214
9924
  }, {
9215
9925
  createWorkflow: "always_allow" | "blocked" | "require_approval";
9216
9926
  updateWorkflow: "always_allow" | "blocked" | "require_approval";
@@ -9234,6 +9944,7 @@ declare const instanceAiPermissionsSchema: z.ZodObject<{
9234
9944
  restoreWorkflowVersion: "always_allow" | "blocked" | "require_approval";
9235
9945
  executeNode: "always_allow" | "blocked" | "require_approval";
9236
9946
  executeMcpTool: "always_allow" | "blocked" | "require_approval";
9947
+ createPreference: "always_allow" | "blocked" | "require_approval";
9237
9948
  }>;
9238
9949
  export type InstanceAiPermissions = z.infer<typeof instanceAiPermissionsSchema>;
9239
9950
  export declare const DEFAULT_INSTANCE_AI_PERMISSIONS: InstanceAiPermissions;
@@ -9340,6 +10051,7 @@ declare const InstanceAiAdminSettingsUpdateRequest_base: import("../zod-class").
9340
10051
  restoreWorkflowVersion?: "always_allow" | "blocked" | "require_approval" | undefined;
9341
10052
  executeNode?: "always_allow" | "blocked" | "require_approval" | undefined;
9342
10053
  executeMcpTool?: "always_allow" | "blocked" | "require_approval" | undefined;
10054
+ createPreference?: "always_allow" | "blocked" | "require_approval" | undefined;
9343
10055
  } | undefined;
9344
10056
  mcpServers?: string | undefined;
9345
10057
  mcpAccessEnabled?: boolean | undefined;
@@ -9370,7 +10082,7 @@ declare const InstanceAiAdminSettingsUpdateRequest_base: import("../zod-class").
9370
10082
  browserUseEnabled?: boolean | undefined;
9371
10083
  }, {
9372
10084
  enabled: z.ZodOptional<z.ZodBoolean>;
9373
- permissions: z.ZodOptional<z.ZodObject<{
10085
+ permissions: z.ZodOptional<z.ZodEffects<z.ZodObject<{
9374
10086
  createWorkflow: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow", "blocked"]>>;
9375
10087
  updateWorkflow: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow", "blocked"]>>;
9376
10088
  runWorkflow: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow", "blocked"]>>;
@@ -9393,6 +10105,7 @@ declare const InstanceAiAdminSettingsUpdateRequest_base: import("../zod-class").
9393
10105
  restoreWorkflowVersion: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow", "blocked"]>>;
9394
10106
  executeNode: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow", "blocked"]>>;
9395
10107
  executeMcpTool: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow", "blocked"]>>;
10108
+ createPreference: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow", "blocked"]>>;
9396
10109
  }, "strip", z.ZodTypeAny, {
9397
10110
  createWorkflow?: "always_allow" | "blocked" | "require_approval" | undefined;
9398
10111
  updateWorkflow?: "always_allow" | "blocked" | "require_approval" | undefined;
@@ -9416,6 +10129,55 @@ declare const InstanceAiAdminSettingsUpdateRequest_base: import("../zod-class").
9416
10129
  restoreWorkflowVersion?: "always_allow" | "blocked" | "require_approval" | undefined;
9417
10130
  executeNode?: "always_allow" | "blocked" | "require_approval" | undefined;
9418
10131
  executeMcpTool?: "always_allow" | "blocked" | "require_approval" | undefined;
10132
+ createPreference?: "always_allow" | "blocked" | "require_approval" | undefined;
10133
+ }, {
10134
+ createWorkflow?: "always_allow" | "blocked" | "require_approval" | undefined;
10135
+ updateWorkflow?: "always_allow" | "blocked" | "require_approval" | undefined;
10136
+ runWorkflow?: "always_allow" | "blocked" | "require_approval" | undefined;
10137
+ publishWorkflow?: "always_allow" | "blocked" | "require_approval" | undefined;
10138
+ deleteWorkflow?: "always_allow" | "blocked" | "require_approval" | undefined;
10139
+ createCredential?: "always_allow" | "blocked" | "require_approval" | undefined;
10140
+ deleteCredential?: "always_allow" | "blocked" | "require_approval" | undefined;
10141
+ createFolder?: "always_allow" | "blocked" | "require_approval" | undefined;
10142
+ deleteFolder?: "always_allow" | "blocked" | "require_approval" | undefined;
10143
+ moveWorkflowToFolder?: "always_allow" | "blocked" | "require_approval" | undefined;
10144
+ tagWorkflow?: "always_allow" | "blocked" | "require_approval" | undefined;
10145
+ createDataTable?: "always_allow" | "blocked" | "require_approval" | undefined;
10146
+ deleteDataTable?: "always_allow" | "blocked" | "require_approval" | undefined;
10147
+ mutateDataTableSchema?: "always_allow" | "blocked" | "require_approval" | undefined;
10148
+ mutateDataTableRows?: "always_allow" | "blocked" | "require_approval" | undefined;
10149
+ cleanupTestExecutions?: "always_allow" | "blocked" | "require_approval" | undefined;
10150
+ readFilesystem?: "always_allow" | "blocked" | "require_approval" | undefined;
10151
+ fetchUrl?: "always_allow" | "blocked" | "require_approval" | undefined;
10152
+ webSearch?: "always_allow" | "blocked" | "require_approval" | undefined;
10153
+ restoreWorkflowVersion?: "always_allow" | "blocked" | "require_approval" | undefined;
10154
+ executeNode?: "always_allow" | "blocked" | "require_approval" | undefined;
10155
+ executeMcpTool?: "always_allow" | "blocked" | "require_approval" | undefined;
10156
+ createPreference?: "always_allow" | "blocked" | "require_approval" | undefined;
10157
+ }>, {
10158
+ createWorkflow?: "always_allow" | "blocked" | "require_approval" | undefined;
10159
+ updateWorkflow?: "always_allow" | "blocked" | "require_approval" | undefined;
10160
+ runWorkflow?: "always_allow" | "blocked" | "require_approval" | undefined;
10161
+ publishWorkflow?: "always_allow" | "blocked" | "require_approval" | undefined;
10162
+ deleteWorkflow?: "always_allow" | "blocked" | "require_approval" | undefined;
10163
+ createCredential?: "always_allow" | "blocked" | "require_approval" | undefined;
10164
+ deleteCredential?: "always_allow" | "blocked" | "require_approval" | undefined;
10165
+ createFolder?: "always_allow" | "blocked" | "require_approval" | undefined;
10166
+ deleteFolder?: "always_allow" | "blocked" | "require_approval" | undefined;
10167
+ moveWorkflowToFolder?: "always_allow" | "blocked" | "require_approval" | undefined;
10168
+ tagWorkflow?: "always_allow" | "blocked" | "require_approval" | undefined;
10169
+ createDataTable?: "always_allow" | "blocked" | "require_approval" | undefined;
10170
+ deleteDataTable?: "always_allow" | "blocked" | "require_approval" | undefined;
10171
+ mutateDataTableSchema?: "always_allow" | "blocked" | "require_approval" | undefined;
10172
+ mutateDataTableRows?: "always_allow" | "blocked" | "require_approval" | undefined;
10173
+ cleanupTestExecutions?: "always_allow" | "blocked" | "require_approval" | undefined;
10174
+ readFilesystem?: "always_allow" | "blocked" | "require_approval" | undefined;
10175
+ fetchUrl?: "always_allow" | "blocked" | "require_approval" | undefined;
10176
+ webSearch?: "always_allow" | "blocked" | "require_approval" | undefined;
10177
+ restoreWorkflowVersion?: "always_allow" | "blocked" | "require_approval" | undefined;
10178
+ executeNode?: "always_allow" | "blocked" | "require_approval" | undefined;
10179
+ executeMcpTool?: "always_allow" | "blocked" | "require_approval" | undefined;
10180
+ createPreference?: "always_allow" | "blocked" | "require_approval" | undefined;
9419
10181
  }, {
9420
10182
  createWorkflow?: "always_allow" | "blocked" | "require_approval" | undefined;
9421
10183
  updateWorkflow?: "always_allow" | "blocked" | "require_approval" | undefined;
@@ -9439,6 +10201,7 @@ declare const InstanceAiAdminSettingsUpdateRequest_base: import("../zod-class").
9439
10201
  restoreWorkflowVersion?: "always_allow" | "blocked" | "require_approval" | undefined;
9440
10202
  executeNode?: "always_allow" | "blocked" | "require_approval" | undefined;
9441
10203
  executeMcpTool?: "always_allow" | "blocked" | "require_approval" | undefined;
10204
+ createPreference?: "always_allow" | "blocked" | "require_approval" | undefined;
9442
10205
  }>>;
9443
10206
  mcpServers: z.ZodOptional<z.ZodString>;
9444
10207
  mcpAccessEnabled: z.ZodOptional<z.ZodBoolean>;
@@ -9654,13 +10417,16 @@ export interface InstanceAiEvalMockedCredential {
9654
10417
  export declare const EVAL_VENDOR_SDK_INTERCEPTION_FLAG = "085_eval_vendor_sdk_interception";
9655
10418
  export declare const CONFIG_EVALUATIONS_FLAG = "088_config_evaluations";
9656
10419
  export declare const CONFIG_EVALUATIONS_ENABLED_VARIANT = "variant";
9657
- export declare const INSTANCE_AI_MCP_CONNECTIONS_FLAG = "089_instance_ai_mcp_connections";
9658
- export declare const INSTANCE_AI_MCP_CONNECTIONS_ENABLED_VARIANT = "variant";
9659
10420
  export declare const CANVAS_NODE_CONTEXT_FLAG = "104_canvas_aia_node_context";
10421
+ export declare const AI_ASSISTANT_AT_MENTIONS_FLAG = "116_at_mentions_enabled";
9660
10422
  export declare const INSTANCE_AI_CONVERSATION_HISTORY_FLAG = "109_instance_ai_conversation_history";
9661
10423
  export declare const INSTANCE_AI_CONVERSATION_HISTORY_ENABLED_VARIANT = "variant";
9662
10424
  export declare const INSTANCE_AI_PROGRESSIVE_BUILDING_FLAG = "111_instance_ai_progressive_building";
9663
10425
  export declare const INSTANCE_AI_PROGRESSIVE_BUILDING_ENABLED_VARIANT = "variant";
10426
+ export declare const INSTANCE_AI_CONCISE_STYLE_FLAG = "124_instance_ai_concise_style";
10427
+ export declare const INSTANCE_AI_CONCISE_STYLE_ENABLED_VARIANT = "variant";
10428
+ export declare const INSTANCE_AI_SETUP_PANEL_FLAG = "118_instance_ai_setup_overhaul";
10429
+ export declare const INSTANCE_AI_SETUP_PANEL_ENABLED_VARIANT = "variant";
9664
10430
  export declare const INSTANCE_AI_NODE_USAGE_FLAG = "109_instance_ai_node_usage";
9665
10431
  export declare const INSTANCE_AI_FOLDER_EXPLORATION_FLAG = "110_instance_ai_folder_exploration";
9666
10432
  export declare const INSTANCE_ACTIVITY_CONTEXT_FLAG = "114_instance_activity_context";
@@ -9721,6 +10487,18 @@ export interface InstanceAiEvalAgentSkippedFeature {
9721
10487
  feature: string;
9722
10488
  reason: string;
9723
10489
  }
10490
+ export interface InstanceAiEvalObservation {
10491
+ marker: 'critical' | 'important' | 'info' | 'completion';
10492
+ text: string;
10493
+ tokenCount: number;
10494
+ }
10495
+ export interface InstanceAiEvalThreadMemoryResponse {
10496
+ observations: InstanceAiEvalObservation[];
10497
+ cursor: {
10498
+ lastObservedMessageId: string;
10499
+ lastObservedAt: string;
10500
+ } | null;
10501
+ }
9724
10502
  export interface InstanceAiEvalAgentExecutionResult {
9725
10503
  runId: string;
9726
10504
  success: boolean;
@@ -10427,9 +11205,25 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
10427
11205
  enabled: boolean;
10428
11206
  }>, "many">>;
10429
11207
  providerTools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
10430
- integrations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", readonly [z.ZodObject<{
11208
+ integrations: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10431
11209
  type: z.ZodLiteral<"telegram">;
10432
11210
  credentialId: z.ZodString;
11211
+ approval: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
11212
+ mode: z.ZodLiteral<"global">;
11213
+ }, "strict", z.ZodTypeAny, {
11214
+ mode: "global";
11215
+ }, {
11216
+ mode: "global";
11217
+ }>, z.ZodObject<{
11218
+ mode: z.ZodLiteral<"selected">;
11219
+ tools: z.ZodArray<z.ZodString, "many">;
11220
+ }, "strict", z.ZodTypeAny, {
11221
+ mode: "selected";
11222
+ tools: string[];
11223
+ }, {
11224
+ mode: "selected";
11225
+ tools: string[];
11226
+ }>]>>;
10433
11227
  } & {
10434
11228
  settings: z.ZodOptional<z.ZodEffects<z.ZodObject<{
10435
11229
  accessMode: z.ZodEnum<["private", "public"]>;
@@ -10455,6 +11249,12 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
10455
11249
  }, "strip", z.ZodTypeAny, {
10456
11250
  type: "telegram";
10457
11251
  credentialId: string;
11252
+ approval?: {
11253
+ mode: "global";
11254
+ } | {
11255
+ mode: "selected";
11256
+ tools: string[];
11257
+ } | undefined;
10458
11258
  settings?: {
10459
11259
  accessMode: "private" | "public";
10460
11260
  allowedUsers: string[];
@@ -10463,6 +11263,12 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
10463
11263
  }, {
10464
11264
  type: "telegram";
10465
11265
  credentialId: string;
11266
+ approval?: {
11267
+ mode: "global";
11268
+ } | {
11269
+ mode: "selected";
11270
+ tools: string[];
11271
+ } | undefined;
10466
11272
  settings?: {
10467
11273
  accessMode: "private" | "public";
10468
11274
  allowedUsers?: string[] | undefined;
@@ -10471,6 +11277,22 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
10471
11277
  }>, z.ZodObject<{
10472
11278
  type: z.ZodLiteral<"slack">;
10473
11279
  credentialId: z.ZodString;
11280
+ approval: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
11281
+ mode: z.ZodLiteral<"global">;
11282
+ }, "strict", z.ZodTypeAny, {
11283
+ mode: "global";
11284
+ }, {
11285
+ mode: "global";
11286
+ }>, z.ZodObject<{
11287
+ mode: z.ZodLiteral<"selected">;
11288
+ tools: z.ZodArray<z.ZodString, "many">;
11289
+ }, "strict", z.ZodTypeAny, {
11290
+ mode: "selected";
11291
+ tools: string[];
11292
+ }, {
11293
+ mode: "selected";
11294
+ tools: string[];
11295
+ }>]>>;
10474
11296
  } & {
10475
11297
  settings: z.ZodOptional<z.ZodObject<{
10476
11298
  messagingExperience: z.ZodEnum<["assistant", "agent"]>;
@@ -10485,6 +11307,12 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
10485
11307
  }, "strip", z.ZodTypeAny, {
10486
11308
  type: "slack";
10487
11309
  credentialId: string;
11310
+ approval?: {
11311
+ mode: "global";
11312
+ } | {
11313
+ mode: "selected";
11314
+ tools: string[];
11315
+ } | undefined;
10488
11316
  settings?: {
10489
11317
  messagingExperience: "agent" | "assistant";
10490
11318
  sessionIdleTimeoutMinutes?: number | null | undefined;
@@ -10492,6 +11320,12 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
10492
11320
  }, {
10493
11321
  type: "slack";
10494
11322
  credentialId: string;
11323
+ approval?: {
11324
+ mode: "global";
11325
+ } | {
11326
+ mode: "selected";
11327
+ tools: string[];
11328
+ } | undefined;
10495
11329
  settings?: {
10496
11330
  messagingExperience: "agent" | "assistant";
10497
11331
  sessionIdleTimeoutMinutes?: number | null | undefined;
@@ -10499,6 +11333,22 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
10499
11333
  }>, z.ZodObject<{
10500
11334
  type: z.ZodLiteral<"linear">;
10501
11335
  credentialId: z.ZodString;
11336
+ approval: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
11337
+ mode: z.ZodLiteral<"global">;
11338
+ }, "strict", z.ZodTypeAny, {
11339
+ mode: "global";
11340
+ }, {
11341
+ mode: "global";
11342
+ }>, z.ZodObject<{
11343
+ mode: z.ZodLiteral<"selected">;
11344
+ tools: z.ZodArray<z.ZodString, "many">;
11345
+ }, "strict", z.ZodTypeAny, {
11346
+ mode: "selected";
11347
+ tools: string[];
11348
+ }, {
11349
+ mode: "selected";
11350
+ tools: string[];
11351
+ }>]>>;
10502
11352
  } & {
10503
11353
  settings: z.ZodOptional<z.ZodObject<{
10504
11354
  sessionIdleTimeoutMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -10510,18 +11360,46 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
10510
11360
  }, "strip", z.ZodTypeAny, {
10511
11361
  type: "linear";
10512
11362
  credentialId: string;
11363
+ approval?: {
11364
+ mode: "global";
11365
+ } | {
11366
+ mode: "selected";
11367
+ tools: string[];
11368
+ } | undefined;
10513
11369
  settings?: {
10514
11370
  sessionIdleTimeoutMinutes?: number | null | undefined;
10515
11371
  } | undefined;
10516
11372
  }, {
10517
11373
  type: "linear";
10518
11374
  credentialId: string;
11375
+ approval?: {
11376
+ mode: "global";
11377
+ } | {
11378
+ mode: "selected";
11379
+ tools: string[];
11380
+ } | undefined;
10519
11381
  settings?: {
10520
11382
  sessionIdleTimeoutMinutes?: number | null | undefined;
10521
11383
  } | undefined;
10522
11384
  }>, z.ZodObject<{
10523
11385
  type: z.ZodLiteral<"discord">;
10524
11386
  credentialId: z.ZodString;
11387
+ approval: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
11388
+ mode: z.ZodLiteral<"global">;
11389
+ }, "strict", z.ZodTypeAny, {
11390
+ mode: "global";
11391
+ }, {
11392
+ mode: "global";
11393
+ }>, z.ZodObject<{
11394
+ mode: z.ZodLiteral<"selected">;
11395
+ tools: z.ZodArray<z.ZodString, "many">;
11396
+ }, "strict", z.ZodTypeAny, {
11397
+ mode: "selected";
11398
+ tools: string[];
11399
+ }, {
11400
+ mode: "selected";
11401
+ tools: string[];
11402
+ }>]>>;
10525
11403
  } & {
10526
11404
  settings: z.ZodOptional<z.ZodObject<{
10527
11405
  sessionIdleTimeoutMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -10533,16 +11411,278 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
10533
11411
  }, "strip", z.ZodTypeAny, {
10534
11412
  type: "discord";
10535
11413
  credentialId: string;
10536
- settings?: {
10537
- sessionIdleTimeoutMinutes?: number | null | undefined;
10538
- } | undefined;
11414
+ approval?: {
11415
+ mode: "global";
11416
+ } | {
11417
+ mode: "selected";
11418
+ tools: string[];
11419
+ } | undefined;
11420
+ settings?: {
11421
+ sessionIdleTimeoutMinutes?: number | null | undefined;
11422
+ } | undefined;
11423
+ }, {
11424
+ type: "discord";
11425
+ credentialId: string;
11426
+ approval?: {
11427
+ mode: "global";
11428
+ } | {
11429
+ mode: "selected";
11430
+ tools: string[];
11431
+ } | undefined;
11432
+ settings?: {
11433
+ sessionIdleTimeoutMinutes?: number | null | undefined;
11434
+ } | undefined;
11435
+ }>, z.ZodObject<{
11436
+ type: z.ZodLiteral<"teams">;
11437
+ credentialId: z.ZodString;
11438
+ approval: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
11439
+ mode: z.ZodLiteral<"global">;
11440
+ }, "strict", z.ZodTypeAny, {
11441
+ mode: "global";
11442
+ }, {
11443
+ mode: "global";
11444
+ }>, z.ZodObject<{
11445
+ mode: z.ZodLiteral<"selected">;
11446
+ tools: z.ZodArray<z.ZodString, "many">;
11447
+ }, "strict", z.ZodTypeAny, {
11448
+ mode: "selected";
11449
+ tools: string[];
11450
+ }, {
11451
+ mode: "selected";
11452
+ tools: string[];
11453
+ }>]>>;
11454
+ } & {
11455
+ settings: z.ZodOptional<z.ZodEffects<z.ZodObject<{
11456
+ sessionIdleTimeoutMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
11457
+ displayName: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
11458
+ description: z.ZodOptional<z.ZodString>;
11459
+ teamChannels: z.ZodOptional<z.ZodBoolean>;
11460
+ groupChats: z.ZodOptional<z.ZodBoolean>;
11461
+ readAllChannelMessages: z.ZodOptional<z.ZodBoolean>;
11462
+ readAllGroupMessages: z.ZodOptional<z.ZodBoolean>;
11463
+ }, "strict", z.ZodTypeAny, {
11464
+ sessionIdleTimeoutMinutes?: number | null | undefined;
11465
+ displayName?: string | undefined;
11466
+ description?: string | undefined;
11467
+ teamChannels?: boolean | undefined;
11468
+ groupChats?: boolean | undefined;
11469
+ readAllChannelMessages?: boolean | undefined;
11470
+ readAllGroupMessages?: boolean | undefined;
11471
+ }, {
11472
+ sessionIdleTimeoutMinutes?: number | null | undefined;
11473
+ displayName?: string | undefined;
11474
+ description?: string | undefined;
11475
+ teamChannels?: boolean | undefined;
11476
+ groupChats?: boolean | undefined;
11477
+ readAllChannelMessages?: boolean | undefined;
11478
+ readAllGroupMessages?: boolean | undefined;
11479
+ }>, {
11480
+ sessionIdleTimeoutMinutes?: number | null | undefined;
11481
+ displayName?: string | undefined;
11482
+ description?: string | undefined;
11483
+ teamChannels?: boolean | undefined;
11484
+ groupChats?: boolean | undefined;
11485
+ readAllChannelMessages?: boolean | undefined;
11486
+ readAllGroupMessages?: boolean | undefined;
11487
+ }, {
11488
+ sessionIdleTimeoutMinutes?: number | null | undefined;
11489
+ displayName?: string | undefined;
11490
+ description?: string | undefined;
11491
+ teamChannels?: boolean | undefined;
11492
+ groupChats?: boolean | undefined;
11493
+ readAllChannelMessages?: boolean | undefined;
11494
+ readAllGroupMessages?: boolean | undefined;
11495
+ }>>;
11496
+ }, "strip", z.ZodTypeAny, {
11497
+ type: "teams";
11498
+ credentialId: string;
11499
+ approval?: {
11500
+ mode: "global";
11501
+ } | {
11502
+ mode: "selected";
11503
+ tools: string[];
11504
+ } | undefined;
11505
+ settings?: {
11506
+ sessionIdleTimeoutMinutes?: number | null | undefined;
11507
+ displayName?: string | undefined;
11508
+ description?: string | undefined;
11509
+ teamChannels?: boolean | undefined;
11510
+ groupChats?: boolean | undefined;
11511
+ readAllChannelMessages?: boolean | undefined;
11512
+ readAllGroupMessages?: boolean | undefined;
11513
+ } | undefined;
11514
+ }, {
11515
+ type: "teams";
11516
+ credentialId: string;
11517
+ approval?: {
11518
+ mode: "global";
11519
+ } | {
11520
+ mode: "selected";
11521
+ tools: string[];
11522
+ } | undefined;
11523
+ settings?: {
11524
+ sessionIdleTimeoutMinutes?: number | null | undefined;
11525
+ displayName?: string | undefined;
11526
+ description?: string | undefined;
11527
+ teamChannels?: boolean | undefined;
11528
+ groupChats?: boolean | undefined;
11529
+ readAllChannelMessages?: boolean | undefined;
11530
+ readAllGroupMessages?: boolean | undefined;
11531
+ } | undefined;
11532
+ }>, z.ZodObject<{
11533
+ type: z.ZodLiteral<"n8n_chat">;
11534
+ credentialId: z.ZodDefault<z.ZodLiteral<"">>;
11535
+ }, "strict", z.ZodTypeAny, {
11536
+ type: "n8n_chat";
11537
+ credentialId: "";
10539
11538
  }, {
11539
+ type: "n8n_chat";
11540
+ credentialId?: "" | undefined;
11541
+ }>]>, "many">, ({
11542
+ type: "telegram";
11543
+ credentialId: string;
11544
+ approval?: {
11545
+ mode: "global";
11546
+ } | {
11547
+ mode: "selected";
11548
+ tools: string[];
11549
+ } | undefined;
11550
+ settings?: {
11551
+ accessMode: "private" | "public";
11552
+ allowedUsers: string[];
11553
+ sessionIdleTimeoutMinutes?: number | null | undefined;
11554
+ } | undefined;
11555
+ } | {
11556
+ type: "slack";
11557
+ credentialId: string;
11558
+ approval?: {
11559
+ mode: "global";
11560
+ } | {
11561
+ mode: "selected";
11562
+ tools: string[];
11563
+ } | undefined;
11564
+ settings?: {
11565
+ messagingExperience: "agent" | "assistant";
11566
+ sessionIdleTimeoutMinutes?: number | null | undefined;
11567
+ } | undefined;
11568
+ } | {
11569
+ type: "linear";
11570
+ credentialId: string;
11571
+ approval?: {
11572
+ mode: "global";
11573
+ } | {
11574
+ mode: "selected";
11575
+ tools: string[];
11576
+ } | undefined;
11577
+ settings?: {
11578
+ sessionIdleTimeoutMinutes?: number | null | undefined;
11579
+ } | undefined;
11580
+ } | {
11581
+ type: "discord";
11582
+ credentialId: string;
11583
+ approval?: {
11584
+ mode: "global";
11585
+ } | {
11586
+ mode: "selected";
11587
+ tools: string[];
11588
+ } | undefined;
11589
+ settings?: {
11590
+ sessionIdleTimeoutMinutes?: number | null | undefined;
11591
+ } | undefined;
11592
+ } | {
11593
+ type: "teams";
11594
+ credentialId: string;
11595
+ approval?: {
11596
+ mode: "global";
11597
+ } | {
11598
+ mode: "selected";
11599
+ tools: string[];
11600
+ } | undefined;
11601
+ settings?: {
11602
+ sessionIdleTimeoutMinutes?: number | null | undefined;
11603
+ displayName?: string | undefined;
11604
+ description?: string | undefined;
11605
+ teamChannels?: boolean | undefined;
11606
+ groupChats?: boolean | undefined;
11607
+ readAllChannelMessages?: boolean | undefined;
11608
+ readAllGroupMessages?: boolean | undefined;
11609
+ } | undefined;
11610
+ } | {
11611
+ type: "n8n_chat";
11612
+ credentialId: "";
11613
+ })[], ({
11614
+ type: "telegram";
11615
+ credentialId: string;
11616
+ approval?: {
11617
+ mode: "global";
11618
+ } | {
11619
+ mode: "selected";
11620
+ tools: string[];
11621
+ } | undefined;
11622
+ settings?: {
11623
+ accessMode: "private" | "public";
11624
+ allowedUsers?: string[] | undefined;
11625
+ sessionIdleTimeoutMinutes?: number | null | undefined;
11626
+ } | undefined;
11627
+ } | {
11628
+ type: "slack";
11629
+ credentialId: string;
11630
+ approval?: {
11631
+ mode: "global";
11632
+ } | {
11633
+ mode: "selected";
11634
+ tools: string[];
11635
+ } | undefined;
11636
+ settings?: {
11637
+ messagingExperience: "agent" | "assistant";
11638
+ sessionIdleTimeoutMinutes?: number | null | undefined;
11639
+ } | undefined;
11640
+ } | {
11641
+ type: "linear";
11642
+ credentialId: string;
11643
+ approval?: {
11644
+ mode: "global";
11645
+ } | {
11646
+ mode: "selected";
11647
+ tools: string[];
11648
+ } | undefined;
11649
+ settings?: {
11650
+ sessionIdleTimeoutMinutes?: number | null | undefined;
11651
+ } | undefined;
11652
+ } | {
10540
11653
  type: "discord";
10541
11654
  credentialId: string;
11655
+ approval?: {
11656
+ mode: "global";
11657
+ } | {
11658
+ mode: "selected";
11659
+ tools: string[];
11660
+ } | undefined;
11661
+ settings?: {
11662
+ sessionIdleTimeoutMinutes?: number | null | undefined;
11663
+ } | undefined;
11664
+ } | {
11665
+ type: "teams";
11666
+ credentialId: string;
11667
+ approval?: {
11668
+ mode: "global";
11669
+ } | {
11670
+ mode: "selected";
11671
+ tools: string[];
11672
+ } | undefined;
10542
11673
  settings?: {
10543
11674
  sessionIdleTimeoutMinutes?: number | null | undefined;
11675
+ displayName?: string | undefined;
11676
+ description?: string | undefined;
11677
+ teamChannels?: boolean | undefined;
11678
+ groupChats?: boolean | undefined;
11679
+ readAllChannelMessages?: boolean | undefined;
11680
+ readAllGroupMessages?: boolean | undefined;
10544
11681
  } | undefined;
10545
- }>]>, "many">>;
11682
+ } | {
11683
+ type: "n8n_chat";
11684
+ credentialId?: "" | undefined;
11685
+ })[]>>;
10546
11686
  mcpServers: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
10547
11687
  name: z.ZodEffects<z.ZodString, string, string>;
10548
11688
  description: z.ZodOptional<z.ZodString>;
@@ -11113,6 +12253,12 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
11113
12253
  integrations?: ({
11114
12254
  type: "telegram";
11115
12255
  credentialId: string;
12256
+ approval?: {
12257
+ mode: "global";
12258
+ } | {
12259
+ mode: "selected";
12260
+ tools: string[];
12261
+ } | undefined;
11116
12262
  settings?: {
11117
12263
  accessMode: "private" | "public";
11118
12264
  allowedUsers: string[];
@@ -11121,6 +12267,12 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
11121
12267
  } | {
11122
12268
  type: "slack";
11123
12269
  credentialId: string;
12270
+ approval?: {
12271
+ mode: "global";
12272
+ } | {
12273
+ mode: "selected";
12274
+ tools: string[];
12275
+ } | undefined;
11124
12276
  settings?: {
11125
12277
  messagingExperience: "agent" | "assistant";
11126
12278
  sessionIdleTimeoutMinutes?: number | null | undefined;
@@ -11128,15 +12280,48 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
11128
12280
  } | {
11129
12281
  type: "linear";
11130
12282
  credentialId: string;
12283
+ approval?: {
12284
+ mode: "global";
12285
+ } | {
12286
+ mode: "selected";
12287
+ tools: string[];
12288
+ } | undefined;
11131
12289
  settings?: {
11132
12290
  sessionIdleTimeoutMinutes?: number | null | undefined;
11133
12291
  } | undefined;
11134
12292
  } | {
11135
12293
  type: "discord";
11136
12294
  credentialId: string;
12295
+ approval?: {
12296
+ mode: "global";
12297
+ } | {
12298
+ mode: "selected";
12299
+ tools: string[];
12300
+ } | undefined;
12301
+ settings?: {
12302
+ sessionIdleTimeoutMinutes?: number | null | undefined;
12303
+ } | undefined;
12304
+ } | {
12305
+ type: "teams";
12306
+ credentialId: string;
12307
+ approval?: {
12308
+ mode: "global";
12309
+ } | {
12310
+ mode: "selected";
12311
+ tools: string[];
12312
+ } | undefined;
11137
12313
  settings?: {
11138
12314
  sessionIdleTimeoutMinutes?: number | null | undefined;
12315
+ displayName?: string | undefined;
12316
+ description?: string | undefined;
12317
+ teamChannels?: boolean | undefined;
12318
+ groupChats?: boolean | undefined;
12319
+ readAllChannelMessages?: boolean | undefined;
12320
+ readAllGroupMessages?: boolean | undefined;
11139
12321
  } | undefined;
12322
+ } | {
12323
+ type: "n8n_chat";
12324
+ credentialId: "";
11140
12325
  })[] | undefined;
11141
12326
  mcpServers?: {
11142
12327
  name: string;
@@ -11342,6 +12527,12 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
11342
12527
  integrations?: ({
11343
12528
  type: "telegram";
11344
12529
  credentialId: string;
12530
+ approval?: {
12531
+ mode: "global";
12532
+ } | {
12533
+ mode: "selected";
12534
+ tools: string[];
12535
+ } | undefined;
11345
12536
  settings?: {
11346
12537
  accessMode: "private" | "public";
11347
12538
  allowedUsers?: string[] | undefined;
@@ -11350,6 +12541,12 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
11350
12541
  } | {
11351
12542
  type: "slack";
11352
12543
  credentialId: string;
12544
+ approval?: {
12545
+ mode: "global";
12546
+ } | {
12547
+ mode: "selected";
12548
+ tools: string[];
12549
+ } | undefined;
11353
12550
  settings?: {
11354
12551
  messagingExperience: "agent" | "assistant";
11355
12552
  sessionIdleTimeoutMinutes?: number | null | undefined;
@@ -11357,15 +12554,48 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
11357
12554
  } | {
11358
12555
  type: "linear";
11359
12556
  credentialId: string;
11360
- settings?: {
12557
+ approval?: {
12558
+ mode: "global";
12559
+ } | {
12560
+ mode: "selected";
12561
+ tools: string[];
12562
+ } | undefined;
12563
+ settings?: {
11361
12564
  sessionIdleTimeoutMinutes?: number | null | undefined;
11362
12565
  } | undefined;
11363
12566
  } | {
11364
12567
  type: "discord";
11365
12568
  credentialId: string;
12569
+ approval?: {
12570
+ mode: "global";
12571
+ } | {
12572
+ mode: "selected";
12573
+ tools: string[];
12574
+ } | undefined;
12575
+ settings?: {
12576
+ sessionIdleTimeoutMinutes?: number | null | undefined;
12577
+ } | undefined;
12578
+ } | {
12579
+ type: "teams";
12580
+ credentialId: string;
12581
+ approval?: {
12582
+ mode: "global";
12583
+ } | {
12584
+ mode: "selected";
12585
+ tools: string[];
12586
+ } | undefined;
11366
12587
  settings?: {
11367
12588
  sessionIdleTimeoutMinutes?: number | null | undefined;
12589
+ displayName?: string | undefined;
12590
+ description?: string | undefined;
12591
+ teamChannels?: boolean | undefined;
12592
+ groupChats?: boolean | undefined;
12593
+ readAllChannelMessages?: boolean | undefined;
12594
+ readAllGroupMessages?: boolean | undefined;
11368
12595
  } | undefined;
12596
+ } | {
12597
+ type: "n8n_chat";
12598
+ credentialId?: "" | undefined;
11369
12599
  })[] | undefined;
11370
12600
  mcpServers?: {
11371
12601
  name: string;
@@ -11571,6 +12801,12 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
11571
12801
  integrations?: ({
11572
12802
  type: "telegram";
11573
12803
  credentialId: string;
12804
+ approval?: {
12805
+ mode: "global";
12806
+ } | {
12807
+ mode: "selected";
12808
+ tools: string[];
12809
+ } | undefined;
11574
12810
  settings?: {
11575
12811
  accessMode: "private" | "public";
11576
12812
  allowedUsers: string[];
@@ -11579,6 +12815,12 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
11579
12815
  } | {
11580
12816
  type: "slack";
11581
12817
  credentialId: string;
12818
+ approval?: {
12819
+ mode: "global";
12820
+ } | {
12821
+ mode: "selected";
12822
+ tools: string[];
12823
+ } | undefined;
11582
12824
  settings?: {
11583
12825
  messagingExperience: "agent" | "assistant";
11584
12826
  sessionIdleTimeoutMinutes?: number | null | undefined;
@@ -11586,15 +12828,48 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
11586
12828
  } | {
11587
12829
  type: "linear";
11588
12830
  credentialId: string;
12831
+ approval?: {
12832
+ mode: "global";
12833
+ } | {
12834
+ mode: "selected";
12835
+ tools: string[];
12836
+ } | undefined;
11589
12837
  settings?: {
11590
12838
  sessionIdleTimeoutMinutes?: number | null | undefined;
11591
12839
  } | undefined;
11592
12840
  } | {
11593
12841
  type: "discord";
11594
12842
  credentialId: string;
12843
+ approval?: {
12844
+ mode: "global";
12845
+ } | {
12846
+ mode: "selected";
12847
+ tools: string[];
12848
+ } | undefined;
12849
+ settings?: {
12850
+ sessionIdleTimeoutMinutes?: number | null | undefined;
12851
+ } | undefined;
12852
+ } | {
12853
+ type: "teams";
12854
+ credentialId: string;
12855
+ approval?: {
12856
+ mode: "global";
12857
+ } | {
12858
+ mode: "selected";
12859
+ tools: string[];
12860
+ } | undefined;
11595
12861
  settings?: {
11596
12862
  sessionIdleTimeoutMinutes?: number | null | undefined;
12863
+ displayName?: string | undefined;
12864
+ description?: string | undefined;
12865
+ teamChannels?: boolean | undefined;
12866
+ groupChats?: boolean | undefined;
12867
+ readAllChannelMessages?: boolean | undefined;
12868
+ readAllGroupMessages?: boolean | undefined;
11597
12869
  } | undefined;
12870
+ } | {
12871
+ type: "n8n_chat";
12872
+ credentialId: "";
11598
12873
  })[] | undefined;
11599
12874
  mcpServers?: {
11600
12875
  name: string;
@@ -11800,6 +13075,12 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
11800
13075
  integrations?: ({
11801
13076
  type: "telegram";
11802
13077
  credentialId: string;
13078
+ approval?: {
13079
+ mode: "global";
13080
+ } | {
13081
+ mode: "selected";
13082
+ tools: string[];
13083
+ } | undefined;
11803
13084
  settings?: {
11804
13085
  accessMode: "private" | "public";
11805
13086
  allowedUsers?: string[] | undefined;
@@ -11808,6 +13089,12 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
11808
13089
  } | {
11809
13090
  type: "slack";
11810
13091
  credentialId: string;
13092
+ approval?: {
13093
+ mode: "global";
13094
+ } | {
13095
+ mode: "selected";
13096
+ tools: string[];
13097
+ } | undefined;
11811
13098
  settings?: {
11812
13099
  messagingExperience: "agent" | "assistant";
11813
13100
  sessionIdleTimeoutMinutes?: number | null | undefined;
@@ -11815,15 +13102,48 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
11815
13102
  } | {
11816
13103
  type: "linear";
11817
13104
  credentialId: string;
13105
+ approval?: {
13106
+ mode: "global";
13107
+ } | {
13108
+ mode: "selected";
13109
+ tools: string[];
13110
+ } | undefined;
11818
13111
  settings?: {
11819
13112
  sessionIdleTimeoutMinutes?: number | null | undefined;
11820
13113
  } | undefined;
11821
13114
  } | {
11822
13115
  type: "discord";
11823
13116
  credentialId: string;
13117
+ approval?: {
13118
+ mode: "global";
13119
+ } | {
13120
+ mode: "selected";
13121
+ tools: string[];
13122
+ } | undefined;
13123
+ settings?: {
13124
+ sessionIdleTimeoutMinutes?: number | null | undefined;
13125
+ } | undefined;
13126
+ } | {
13127
+ type: "teams";
13128
+ credentialId: string;
13129
+ approval?: {
13130
+ mode: "global";
13131
+ } | {
13132
+ mode: "selected";
13133
+ tools: string[];
13134
+ } | undefined;
11824
13135
  settings?: {
11825
13136
  sessionIdleTimeoutMinutes?: number | null | undefined;
13137
+ displayName?: string | undefined;
13138
+ description?: string | undefined;
13139
+ teamChannels?: boolean | undefined;
13140
+ groupChats?: boolean | undefined;
13141
+ readAllChannelMessages?: boolean | undefined;
13142
+ readAllGroupMessages?: boolean | undefined;
11826
13143
  } | undefined;
13144
+ } | {
13145
+ type: "n8n_chat";
13146
+ credentialId?: "" | undefined;
11827
13147
  })[] | undefined;
11828
13148
  mcpServers?: {
11829
13149
  name: string;
@@ -12087,6 +13407,12 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
12087
13407
  integrations?: ({
12088
13408
  type: "telegram";
12089
13409
  credentialId: string;
13410
+ approval?: {
13411
+ mode: "global";
13412
+ } | {
13413
+ mode: "selected";
13414
+ tools: string[];
13415
+ } | undefined;
12090
13416
  settings?: {
12091
13417
  accessMode: "private" | "public";
12092
13418
  allowedUsers: string[];
@@ -12095,6 +13421,12 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
12095
13421
  } | {
12096
13422
  type: "slack";
12097
13423
  credentialId: string;
13424
+ approval?: {
13425
+ mode: "global";
13426
+ } | {
13427
+ mode: "selected";
13428
+ tools: string[];
13429
+ } | undefined;
12098
13430
  settings?: {
12099
13431
  messagingExperience: "agent" | "assistant";
12100
13432
  sessionIdleTimeoutMinutes?: number | null | undefined;
@@ -12102,15 +13434,48 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
12102
13434
  } | {
12103
13435
  type: "linear";
12104
13436
  credentialId: string;
13437
+ approval?: {
13438
+ mode: "global";
13439
+ } | {
13440
+ mode: "selected";
13441
+ tools: string[];
13442
+ } | undefined;
12105
13443
  settings?: {
12106
13444
  sessionIdleTimeoutMinutes?: number | null | undefined;
12107
13445
  } | undefined;
12108
13446
  } | {
12109
13447
  type: "discord";
12110
13448
  credentialId: string;
13449
+ approval?: {
13450
+ mode: "global";
13451
+ } | {
13452
+ mode: "selected";
13453
+ tools: string[];
13454
+ } | undefined;
13455
+ settings?: {
13456
+ sessionIdleTimeoutMinutes?: number | null | undefined;
13457
+ } | undefined;
13458
+ } | {
13459
+ type: "teams";
13460
+ credentialId: string;
13461
+ approval?: {
13462
+ mode: "global";
13463
+ } | {
13464
+ mode: "selected";
13465
+ tools: string[];
13466
+ } | undefined;
12111
13467
  settings?: {
12112
13468
  sessionIdleTimeoutMinutes?: number | null | undefined;
13469
+ displayName?: string | undefined;
13470
+ description?: string | undefined;
13471
+ teamChannels?: boolean | undefined;
13472
+ groupChats?: boolean | undefined;
13473
+ readAllChannelMessages?: boolean | undefined;
13474
+ readAllGroupMessages?: boolean | undefined;
12113
13475
  } | undefined;
13476
+ } | {
13477
+ type: "n8n_chat";
13478
+ credentialId: "";
12114
13479
  })[] | undefined;
12115
13480
  mcpServers?: {
12116
13481
  name: string;
@@ -12334,6 +13699,12 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
12334
13699
  integrations?: ({
12335
13700
  type: "telegram";
12336
13701
  credentialId: string;
13702
+ approval?: {
13703
+ mode: "global";
13704
+ } | {
13705
+ mode: "selected";
13706
+ tools: string[];
13707
+ } | undefined;
12337
13708
  settings?: {
12338
13709
  accessMode: "private" | "public";
12339
13710
  allowedUsers?: string[] | undefined;
@@ -12342,6 +13713,12 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
12342
13713
  } | {
12343
13714
  type: "slack";
12344
13715
  credentialId: string;
13716
+ approval?: {
13717
+ mode: "global";
13718
+ } | {
13719
+ mode: "selected";
13720
+ tools: string[];
13721
+ } | undefined;
12345
13722
  settings?: {
12346
13723
  messagingExperience: "agent" | "assistant";
12347
13724
  sessionIdleTimeoutMinutes?: number | null | undefined;
@@ -12349,15 +13726,48 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
12349
13726
  } | {
12350
13727
  type: "linear";
12351
13728
  credentialId: string;
13729
+ approval?: {
13730
+ mode: "global";
13731
+ } | {
13732
+ mode: "selected";
13733
+ tools: string[];
13734
+ } | undefined;
12352
13735
  settings?: {
12353
13736
  sessionIdleTimeoutMinutes?: number | null | undefined;
12354
13737
  } | undefined;
12355
13738
  } | {
12356
13739
  type: "discord";
12357
13740
  credentialId: string;
13741
+ approval?: {
13742
+ mode: "global";
13743
+ } | {
13744
+ mode: "selected";
13745
+ tools: string[];
13746
+ } | undefined;
13747
+ settings?: {
13748
+ sessionIdleTimeoutMinutes?: number | null | undefined;
13749
+ } | undefined;
13750
+ } | {
13751
+ type: "teams";
13752
+ credentialId: string;
13753
+ approval?: {
13754
+ mode: "global";
13755
+ } | {
13756
+ mode: "selected";
13757
+ tools: string[];
13758
+ } | undefined;
12358
13759
  settings?: {
12359
13760
  sessionIdleTimeoutMinutes?: number | null | undefined;
13761
+ displayName?: string | undefined;
13762
+ description?: string | undefined;
13763
+ teamChannels?: boolean | undefined;
13764
+ groupChats?: boolean | undefined;
13765
+ readAllChannelMessages?: boolean | undefined;
13766
+ readAllGroupMessages?: boolean | undefined;
12360
13767
  } | undefined;
13768
+ } | {
13769
+ type: "n8n_chat";
13770
+ credentialId?: "" | undefined;
12361
13771
  })[] | undefined;
12362
13772
  mcpServers?: {
12363
13773
  name: string;
@@ -12581,6 +13991,12 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
12581
13991
  integrations?: ({
12582
13992
  type: "telegram";
12583
13993
  credentialId: string;
13994
+ approval?: {
13995
+ mode: "global";
13996
+ } | {
13997
+ mode: "selected";
13998
+ tools: string[];
13999
+ } | undefined;
12584
14000
  settings?: {
12585
14001
  accessMode: "private" | "public";
12586
14002
  allowedUsers: string[];
@@ -12589,6 +14005,12 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
12589
14005
  } | {
12590
14006
  type: "slack";
12591
14007
  credentialId: string;
14008
+ approval?: {
14009
+ mode: "global";
14010
+ } | {
14011
+ mode: "selected";
14012
+ tools: string[];
14013
+ } | undefined;
12592
14014
  settings?: {
12593
14015
  messagingExperience: "agent" | "assistant";
12594
14016
  sessionIdleTimeoutMinutes?: number | null | undefined;
@@ -12596,15 +14018,48 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
12596
14018
  } | {
12597
14019
  type: "linear";
12598
14020
  credentialId: string;
14021
+ approval?: {
14022
+ mode: "global";
14023
+ } | {
14024
+ mode: "selected";
14025
+ tools: string[];
14026
+ } | undefined;
12599
14027
  settings?: {
12600
14028
  sessionIdleTimeoutMinutes?: number | null | undefined;
12601
14029
  } | undefined;
12602
14030
  } | {
12603
14031
  type: "discord";
12604
14032
  credentialId: string;
14033
+ approval?: {
14034
+ mode: "global";
14035
+ } | {
14036
+ mode: "selected";
14037
+ tools: string[];
14038
+ } | undefined;
14039
+ settings?: {
14040
+ sessionIdleTimeoutMinutes?: number | null | undefined;
14041
+ } | undefined;
14042
+ } | {
14043
+ type: "teams";
14044
+ credentialId: string;
14045
+ approval?: {
14046
+ mode: "global";
14047
+ } | {
14048
+ mode: "selected";
14049
+ tools: string[];
14050
+ } | undefined;
12605
14051
  settings?: {
12606
14052
  sessionIdleTimeoutMinutes?: number | null | undefined;
14053
+ displayName?: string | undefined;
14054
+ description?: string | undefined;
14055
+ teamChannels?: boolean | undefined;
14056
+ groupChats?: boolean | undefined;
14057
+ readAllChannelMessages?: boolean | undefined;
14058
+ readAllGroupMessages?: boolean | undefined;
12607
14059
  } | undefined;
14060
+ } | {
14061
+ type: "n8n_chat";
14062
+ credentialId: "";
12608
14063
  })[] | undefined;
12609
14064
  mcpServers?: {
12610
14065
  name: string;
@@ -12828,6 +14283,12 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
12828
14283
  integrations?: ({
12829
14284
  type: "telegram";
12830
14285
  credentialId: string;
14286
+ approval?: {
14287
+ mode: "global";
14288
+ } | {
14289
+ mode: "selected";
14290
+ tools: string[];
14291
+ } | undefined;
12831
14292
  settings?: {
12832
14293
  accessMode: "private" | "public";
12833
14294
  allowedUsers?: string[] | undefined;
@@ -12836,6 +14297,12 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
12836
14297
  } | {
12837
14298
  type: "slack";
12838
14299
  credentialId: string;
14300
+ approval?: {
14301
+ mode: "global";
14302
+ } | {
14303
+ mode: "selected";
14304
+ tools: string[];
14305
+ } | undefined;
12839
14306
  settings?: {
12840
14307
  messagingExperience: "agent" | "assistant";
12841
14308
  sessionIdleTimeoutMinutes?: number | null | undefined;
@@ -12843,15 +14310,48 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
12843
14310
  } | {
12844
14311
  type: "linear";
12845
14312
  credentialId: string;
14313
+ approval?: {
14314
+ mode: "global";
14315
+ } | {
14316
+ mode: "selected";
14317
+ tools: string[];
14318
+ } | undefined;
12846
14319
  settings?: {
12847
14320
  sessionIdleTimeoutMinutes?: number | null | undefined;
12848
14321
  } | undefined;
12849
14322
  } | {
12850
14323
  type: "discord";
12851
14324
  credentialId: string;
14325
+ approval?: {
14326
+ mode: "global";
14327
+ } | {
14328
+ mode: "selected";
14329
+ tools: string[];
14330
+ } | undefined;
14331
+ settings?: {
14332
+ sessionIdleTimeoutMinutes?: number | null | undefined;
14333
+ } | undefined;
14334
+ } | {
14335
+ type: "teams";
14336
+ credentialId: string;
14337
+ approval?: {
14338
+ mode: "global";
14339
+ } | {
14340
+ mode: "selected";
14341
+ tools: string[];
14342
+ } | undefined;
12852
14343
  settings?: {
12853
14344
  sessionIdleTimeoutMinutes?: number | null | undefined;
14345
+ displayName?: string | undefined;
14346
+ description?: string | undefined;
14347
+ teamChannels?: boolean | undefined;
14348
+ groupChats?: boolean | undefined;
14349
+ readAllChannelMessages?: boolean | undefined;
14350
+ readAllGroupMessages?: boolean | undefined;
12854
14351
  } | undefined;
14352
+ } | {
14353
+ type: "n8n_chat";
14354
+ credentialId?: "" | undefined;
12855
14355
  })[] | undefined;
12856
14356
  mcpServers?: {
12857
14357
  name: string;
@@ -13102,6 +14602,12 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
13102
14602
  integrations?: ({
13103
14603
  type: "telegram";
13104
14604
  credentialId: string;
14605
+ approval?: {
14606
+ mode: "global";
14607
+ } | {
14608
+ mode: "selected";
14609
+ tools: string[];
14610
+ } | undefined;
13105
14611
  settings?: {
13106
14612
  accessMode: "private" | "public";
13107
14613
  allowedUsers: string[];
@@ -13110,22 +14616,61 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
13110
14616
  } | {
13111
14617
  type: "slack";
13112
14618
  credentialId: string;
13113
- settings?: {
13114
- messagingExperience: "agent" | "assistant";
14619
+ approval?: {
14620
+ mode: "global";
14621
+ } | {
14622
+ mode: "selected";
14623
+ tools: string[];
14624
+ } | undefined;
14625
+ settings?: {
14626
+ messagingExperience: "agent" | "assistant";
13115
14627
  sessionIdleTimeoutMinutes?: number | null | undefined;
13116
14628
  } | undefined;
13117
14629
  } | {
13118
14630
  type: "linear";
13119
14631
  credentialId: string;
14632
+ approval?: {
14633
+ mode: "global";
14634
+ } | {
14635
+ mode: "selected";
14636
+ tools: string[];
14637
+ } | undefined;
13120
14638
  settings?: {
13121
14639
  sessionIdleTimeoutMinutes?: number | null | undefined;
13122
14640
  } | undefined;
13123
14641
  } | {
13124
14642
  type: "discord";
13125
14643
  credentialId: string;
14644
+ approval?: {
14645
+ mode: "global";
14646
+ } | {
14647
+ mode: "selected";
14648
+ tools: string[];
14649
+ } | undefined;
13126
14650
  settings?: {
13127
14651
  sessionIdleTimeoutMinutes?: number | null | undefined;
13128
14652
  } | undefined;
14653
+ } | {
14654
+ type: "teams";
14655
+ credentialId: string;
14656
+ approval?: {
14657
+ mode: "global";
14658
+ } | {
14659
+ mode: "selected";
14660
+ tools: string[];
14661
+ } | undefined;
14662
+ settings?: {
14663
+ sessionIdleTimeoutMinutes?: number | null | undefined;
14664
+ displayName?: string | undefined;
14665
+ description?: string | undefined;
14666
+ teamChannels?: boolean | undefined;
14667
+ groupChats?: boolean | undefined;
14668
+ readAllChannelMessages?: boolean | undefined;
14669
+ readAllGroupMessages?: boolean | undefined;
14670
+ } | undefined;
14671
+ } | {
14672
+ type: "n8n_chat";
14673
+ credentialId: "";
13129
14674
  })[] | undefined;
13130
14675
  mcpServers?: {
13131
14676
  name: string;
@@ -13893,9 +15438,25 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
13893
15438
  enabled: boolean;
13894
15439
  }>, "many">>;
13895
15440
  providerTools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
13896
- integrations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", readonly [z.ZodObject<{
15441
+ integrations: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
13897
15442
  type: z.ZodLiteral<"telegram">;
13898
15443
  credentialId: z.ZodString;
15444
+ approval: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
15445
+ mode: z.ZodLiteral<"global">;
15446
+ }, "strict", z.ZodTypeAny, {
15447
+ mode: "global";
15448
+ }, {
15449
+ mode: "global";
15450
+ }>, z.ZodObject<{
15451
+ mode: z.ZodLiteral<"selected">;
15452
+ tools: z.ZodArray<z.ZodString, "many">;
15453
+ }, "strict", z.ZodTypeAny, {
15454
+ mode: "selected";
15455
+ tools: string[];
15456
+ }, {
15457
+ mode: "selected";
15458
+ tools: string[];
15459
+ }>]>>;
13899
15460
  } & {
13900
15461
  settings: z.ZodOptional<z.ZodEffects<z.ZodObject<{
13901
15462
  accessMode: z.ZodEnum<["private", "public"]>;
@@ -13921,94 +15482,440 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
13921
15482
  }, "strip", z.ZodTypeAny, {
13922
15483
  type: "telegram";
13923
15484
  credentialId: string;
15485
+ approval?: {
15486
+ mode: "global";
15487
+ } | {
15488
+ mode: "selected";
15489
+ tools: string[];
15490
+ } | undefined;
15491
+ settings?: {
15492
+ accessMode: "private" | "public";
15493
+ allowedUsers: string[];
15494
+ sessionIdleTimeoutMinutes?: number | null | undefined;
15495
+ } | undefined;
15496
+ }, {
15497
+ type: "telegram";
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[] | undefined;
15508
+ sessionIdleTimeoutMinutes?: number | null | undefined;
15509
+ } | undefined;
15510
+ }>, z.ZodObject<{
15511
+ type: z.ZodLiteral<"slack">;
15512
+ credentialId: z.ZodString;
15513
+ approval: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
15514
+ mode: z.ZodLiteral<"global">;
15515
+ }, "strict", z.ZodTypeAny, {
15516
+ mode: "global";
15517
+ }, {
15518
+ mode: "global";
15519
+ }>, z.ZodObject<{
15520
+ mode: z.ZodLiteral<"selected">;
15521
+ tools: z.ZodArray<z.ZodString, "many">;
15522
+ }, "strict", z.ZodTypeAny, {
15523
+ mode: "selected";
15524
+ tools: string[];
15525
+ }, {
15526
+ mode: "selected";
15527
+ tools: string[];
15528
+ }>]>>;
15529
+ } & {
15530
+ settings: z.ZodOptional<z.ZodObject<{
15531
+ messagingExperience: z.ZodEnum<["assistant", "agent"]>;
15532
+ sessionIdleTimeoutMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
15533
+ }, "strict", z.ZodTypeAny, {
15534
+ messagingExperience: "agent" | "assistant";
15535
+ sessionIdleTimeoutMinutes?: number | null | undefined;
15536
+ }, {
15537
+ messagingExperience: "agent" | "assistant";
15538
+ sessionIdleTimeoutMinutes?: number | null | undefined;
15539
+ }>>;
15540
+ }, "strip", z.ZodTypeAny, {
15541
+ type: "slack";
15542
+ credentialId: string;
15543
+ approval?: {
15544
+ mode: "global";
15545
+ } | {
15546
+ mode: "selected";
15547
+ tools: string[];
15548
+ } | undefined;
15549
+ settings?: {
15550
+ messagingExperience: "agent" | "assistant";
15551
+ sessionIdleTimeoutMinutes?: number | null | undefined;
15552
+ } | undefined;
15553
+ }, {
15554
+ type: "slack";
15555
+ credentialId: string;
15556
+ approval?: {
15557
+ mode: "global";
15558
+ } | {
15559
+ mode: "selected";
15560
+ tools: string[];
15561
+ } | undefined;
15562
+ settings?: {
15563
+ messagingExperience: "agent" | "assistant";
15564
+ sessionIdleTimeoutMinutes?: number | null | undefined;
15565
+ } | undefined;
15566
+ }>, z.ZodObject<{
15567
+ type: z.ZodLiteral<"linear">;
15568
+ credentialId: z.ZodString;
15569
+ approval: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
15570
+ mode: z.ZodLiteral<"global">;
15571
+ }, "strict", z.ZodTypeAny, {
15572
+ mode: "global";
15573
+ }, {
15574
+ mode: "global";
15575
+ }>, z.ZodObject<{
15576
+ mode: z.ZodLiteral<"selected">;
15577
+ tools: z.ZodArray<z.ZodString, "many">;
15578
+ }, "strict", z.ZodTypeAny, {
15579
+ mode: "selected";
15580
+ tools: string[];
15581
+ }, {
15582
+ mode: "selected";
15583
+ tools: string[];
15584
+ }>]>>;
15585
+ } & {
15586
+ settings: z.ZodOptional<z.ZodObject<{
15587
+ sessionIdleTimeoutMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
15588
+ }, "strict", z.ZodTypeAny, {
15589
+ sessionIdleTimeoutMinutes?: number | null | undefined;
15590
+ }, {
15591
+ sessionIdleTimeoutMinutes?: number | null | undefined;
15592
+ }>>;
15593
+ }, "strip", z.ZodTypeAny, {
15594
+ type: "linear";
15595
+ credentialId: string;
15596
+ approval?: {
15597
+ mode: "global";
15598
+ } | {
15599
+ mode: "selected";
15600
+ tools: string[];
15601
+ } | undefined;
15602
+ settings?: {
15603
+ sessionIdleTimeoutMinutes?: number | null | undefined;
15604
+ } | undefined;
15605
+ }, {
15606
+ type: "linear";
15607
+ credentialId: string;
15608
+ approval?: {
15609
+ mode: "global";
15610
+ } | {
15611
+ mode: "selected";
15612
+ tools: string[];
15613
+ } | undefined;
15614
+ settings?: {
15615
+ sessionIdleTimeoutMinutes?: number | null | undefined;
15616
+ } | undefined;
15617
+ }>, z.ZodObject<{
15618
+ type: z.ZodLiteral<"discord">;
15619
+ credentialId: z.ZodString;
15620
+ approval: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
15621
+ mode: z.ZodLiteral<"global">;
15622
+ }, "strict", z.ZodTypeAny, {
15623
+ mode: "global";
15624
+ }, {
15625
+ mode: "global";
15626
+ }>, z.ZodObject<{
15627
+ mode: z.ZodLiteral<"selected">;
15628
+ tools: z.ZodArray<z.ZodString, "many">;
15629
+ }, "strict", z.ZodTypeAny, {
15630
+ mode: "selected";
15631
+ tools: string[];
15632
+ }, {
15633
+ mode: "selected";
15634
+ tools: string[];
15635
+ }>]>>;
15636
+ } & {
15637
+ settings: z.ZodOptional<z.ZodObject<{
15638
+ sessionIdleTimeoutMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
15639
+ }, "strict", z.ZodTypeAny, {
15640
+ sessionIdleTimeoutMinutes?: number | null | undefined;
15641
+ }, {
15642
+ sessionIdleTimeoutMinutes?: number | null | undefined;
15643
+ }>>;
15644
+ }, "strip", z.ZodTypeAny, {
15645
+ type: "discord";
15646
+ credentialId: string;
15647
+ approval?: {
15648
+ mode: "global";
15649
+ } | {
15650
+ mode: "selected";
15651
+ tools: string[];
15652
+ } | undefined;
15653
+ settings?: {
15654
+ sessionIdleTimeoutMinutes?: number | null | undefined;
15655
+ } | undefined;
15656
+ }, {
15657
+ type: "discord";
15658
+ credentialId: string;
15659
+ approval?: {
15660
+ mode: "global";
15661
+ } | {
15662
+ mode: "selected";
15663
+ tools: string[];
15664
+ } | undefined;
15665
+ settings?: {
15666
+ sessionIdleTimeoutMinutes?: number | null | undefined;
15667
+ } | undefined;
15668
+ }>, z.ZodObject<{
15669
+ type: z.ZodLiteral<"teams">;
15670
+ credentialId: z.ZodString;
15671
+ approval: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
15672
+ mode: z.ZodLiteral<"global">;
15673
+ }, "strict", z.ZodTypeAny, {
15674
+ mode: "global";
15675
+ }, {
15676
+ mode: "global";
15677
+ }>, z.ZodObject<{
15678
+ mode: z.ZodLiteral<"selected">;
15679
+ tools: z.ZodArray<z.ZodString, "many">;
15680
+ }, "strict", z.ZodTypeAny, {
15681
+ mode: "selected";
15682
+ tools: string[];
15683
+ }, {
15684
+ mode: "selected";
15685
+ tools: string[];
15686
+ }>]>>;
15687
+ } & {
15688
+ settings: z.ZodOptional<z.ZodEffects<z.ZodObject<{
15689
+ sessionIdleTimeoutMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
15690
+ displayName: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
15691
+ description: z.ZodOptional<z.ZodString>;
15692
+ teamChannels: z.ZodOptional<z.ZodBoolean>;
15693
+ groupChats: z.ZodOptional<z.ZodBoolean>;
15694
+ readAllChannelMessages: z.ZodOptional<z.ZodBoolean>;
15695
+ readAllGroupMessages: z.ZodOptional<z.ZodBoolean>;
15696
+ }, "strict", z.ZodTypeAny, {
15697
+ sessionIdleTimeoutMinutes?: number | null | undefined;
15698
+ displayName?: string | undefined;
15699
+ description?: string | undefined;
15700
+ teamChannels?: boolean | undefined;
15701
+ groupChats?: boolean | undefined;
15702
+ readAllChannelMessages?: boolean | undefined;
15703
+ readAllGroupMessages?: boolean | undefined;
15704
+ }, {
15705
+ sessionIdleTimeoutMinutes?: number | null | undefined;
15706
+ displayName?: string | undefined;
15707
+ description?: string | undefined;
15708
+ teamChannels?: boolean | undefined;
15709
+ groupChats?: boolean | undefined;
15710
+ readAllChannelMessages?: boolean | undefined;
15711
+ readAllGroupMessages?: boolean | undefined;
15712
+ }>, {
15713
+ sessionIdleTimeoutMinutes?: number | null | undefined;
15714
+ displayName?: string | undefined;
15715
+ description?: string | undefined;
15716
+ teamChannels?: boolean | undefined;
15717
+ groupChats?: boolean | undefined;
15718
+ readAllChannelMessages?: boolean | undefined;
15719
+ readAllGroupMessages?: boolean | undefined;
15720
+ }, {
15721
+ sessionIdleTimeoutMinutes?: number | null | undefined;
15722
+ displayName?: string | undefined;
15723
+ description?: string | undefined;
15724
+ teamChannels?: boolean | undefined;
15725
+ groupChats?: boolean | undefined;
15726
+ readAllChannelMessages?: boolean | undefined;
15727
+ readAllGroupMessages?: boolean | undefined;
15728
+ }>>;
15729
+ }, "strip", z.ZodTypeAny, {
15730
+ type: "teams";
15731
+ credentialId: string;
15732
+ approval?: {
15733
+ mode: "global";
15734
+ } | {
15735
+ mode: "selected";
15736
+ tools: string[];
15737
+ } | undefined;
15738
+ settings?: {
15739
+ sessionIdleTimeoutMinutes?: number | null | undefined;
15740
+ displayName?: string | undefined;
15741
+ description?: string | undefined;
15742
+ teamChannels?: boolean | undefined;
15743
+ groupChats?: boolean | undefined;
15744
+ readAllChannelMessages?: boolean | undefined;
15745
+ readAllGroupMessages?: boolean | undefined;
15746
+ } | undefined;
15747
+ }, {
15748
+ type: "teams";
15749
+ credentialId: string;
15750
+ approval?: {
15751
+ mode: "global";
15752
+ } | {
15753
+ mode: "selected";
15754
+ tools: string[];
15755
+ } | undefined;
13924
15756
  settings?: {
13925
- accessMode: "private" | "public";
13926
- allowedUsers: string[];
13927
15757
  sessionIdleTimeoutMinutes?: number | null | undefined;
15758
+ displayName?: string | undefined;
15759
+ description?: string | undefined;
15760
+ teamChannels?: boolean | undefined;
15761
+ groupChats?: boolean | undefined;
15762
+ readAllChannelMessages?: boolean | undefined;
15763
+ readAllGroupMessages?: boolean | undefined;
13928
15764
  } | undefined;
15765
+ }>, z.ZodObject<{
15766
+ type: z.ZodLiteral<"n8n_chat">;
15767
+ credentialId: z.ZodDefault<z.ZodLiteral<"">>;
15768
+ }, "strict", z.ZodTypeAny, {
15769
+ type: "n8n_chat";
15770
+ credentialId: "";
13929
15771
  }, {
15772
+ type: "n8n_chat";
15773
+ credentialId?: "" | undefined;
15774
+ }>]>, "many">, ({
13930
15775
  type: "telegram";
13931
15776
  credentialId: string;
15777
+ approval?: {
15778
+ mode: "global";
15779
+ } | {
15780
+ mode: "selected";
15781
+ tools: string[];
15782
+ } | undefined;
13932
15783
  settings?: {
13933
15784
  accessMode: "private" | "public";
13934
- allowedUsers?: string[] | undefined;
15785
+ allowedUsers: string[];
13935
15786
  sessionIdleTimeoutMinutes?: number | null | undefined;
13936
15787
  } | undefined;
13937
- }>, z.ZodObject<{
13938
- type: z.ZodLiteral<"slack">;
13939
- credentialId: z.ZodString;
13940
- } & {
13941
- settings: z.ZodOptional<z.ZodObject<{
13942
- messagingExperience: z.ZodEnum<["assistant", "agent"]>;
13943
- sessionIdleTimeoutMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
13944
- }, "strict", z.ZodTypeAny, {
13945
- messagingExperience: "agent" | "assistant";
13946
- sessionIdleTimeoutMinutes?: number | null | undefined;
13947
- }, {
13948
- messagingExperience: "agent" | "assistant";
13949
- sessionIdleTimeoutMinutes?: number | null | undefined;
13950
- }>>;
13951
- }, "strip", z.ZodTypeAny, {
15788
+ } | {
13952
15789
  type: "slack";
13953
15790
  credentialId: string;
15791
+ approval?: {
15792
+ mode: "global";
15793
+ } | {
15794
+ mode: "selected";
15795
+ tools: string[];
15796
+ } | undefined;
13954
15797
  settings?: {
13955
15798
  messagingExperience: "agent" | "assistant";
13956
15799
  sessionIdleTimeoutMinutes?: number | null | undefined;
13957
15800
  } | undefined;
13958
- }, {
13959
- type: "slack";
15801
+ } | {
15802
+ type: "linear";
13960
15803
  credentialId: string;
15804
+ approval?: {
15805
+ mode: "global";
15806
+ } | {
15807
+ mode: "selected";
15808
+ tools: string[];
15809
+ } | undefined;
13961
15810
  settings?: {
13962
- messagingExperience: "agent" | "assistant";
13963
15811
  sessionIdleTimeoutMinutes?: number | null | undefined;
13964
15812
  } | undefined;
13965
- }>, z.ZodObject<{
13966
- type: z.ZodLiteral<"linear">;
13967
- credentialId: z.ZodString;
13968
- } & {
13969
- settings: z.ZodOptional<z.ZodObject<{
13970
- sessionIdleTimeoutMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
13971
- }, "strict", z.ZodTypeAny, {
13972
- sessionIdleTimeoutMinutes?: number | null | undefined;
13973
- }, {
15813
+ } | {
15814
+ type: "discord";
15815
+ credentialId: string;
15816
+ approval?: {
15817
+ mode: "global";
15818
+ } | {
15819
+ mode: "selected";
15820
+ tools: string[];
15821
+ } | undefined;
15822
+ settings?: {
13974
15823
  sessionIdleTimeoutMinutes?: number | null | undefined;
13975
- }>>;
13976
- }, "strip", z.ZodTypeAny, {
13977
- type: "linear";
15824
+ } | undefined;
15825
+ } | {
15826
+ type: "teams";
13978
15827
  credentialId: string;
15828
+ approval?: {
15829
+ mode: "global";
15830
+ } | {
15831
+ mode: "selected";
15832
+ tools: string[];
15833
+ } | undefined;
13979
15834
  settings?: {
13980
15835
  sessionIdleTimeoutMinutes?: number | null | undefined;
15836
+ displayName?: string | undefined;
15837
+ description?: string | undefined;
15838
+ teamChannels?: boolean | undefined;
15839
+ groupChats?: boolean | undefined;
15840
+ readAllChannelMessages?: boolean | undefined;
15841
+ readAllGroupMessages?: boolean | undefined;
13981
15842
  } | undefined;
13982
- }, {
13983
- type: "linear";
15843
+ } | {
15844
+ type: "n8n_chat";
15845
+ credentialId: "";
15846
+ })[], ({
15847
+ type: "telegram";
13984
15848
  credentialId: string;
15849
+ approval?: {
15850
+ mode: "global";
15851
+ } | {
15852
+ mode: "selected";
15853
+ tools: string[];
15854
+ } | undefined;
13985
15855
  settings?: {
15856
+ accessMode: "private" | "public";
15857
+ allowedUsers?: string[] | undefined;
13986
15858
  sessionIdleTimeoutMinutes?: number | null | undefined;
13987
15859
  } | undefined;
13988
- }>, z.ZodObject<{
13989
- type: z.ZodLiteral<"discord">;
13990
- credentialId: z.ZodString;
13991
- } & {
13992
- settings: z.ZodOptional<z.ZodObject<{
13993
- sessionIdleTimeoutMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
13994
- }, "strict", z.ZodTypeAny, {
15860
+ } | {
15861
+ type: "slack";
15862
+ credentialId: string;
15863
+ approval?: {
15864
+ mode: "global";
15865
+ } | {
15866
+ mode: "selected";
15867
+ tools: string[];
15868
+ } | undefined;
15869
+ settings?: {
15870
+ messagingExperience: "agent" | "assistant";
13995
15871
  sessionIdleTimeoutMinutes?: number | null | undefined;
13996
- }, {
15872
+ } | undefined;
15873
+ } | {
15874
+ type: "linear";
15875
+ credentialId: string;
15876
+ approval?: {
15877
+ mode: "global";
15878
+ } | {
15879
+ mode: "selected";
15880
+ tools: string[];
15881
+ } | undefined;
15882
+ settings?: {
13997
15883
  sessionIdleTimeoutMinutes?: number | null | undefined;
13998
- }>>;
13999
- }, "strip", z.ZodTypeAny, {
15884
+ } | undefined;
15885
+ } | {
14000
15886
  type: "discord";
14001
15887
  credentialId: string;
15888
+ approval?: {
15889
+ mode: "global";
15890
+ } | {
15891
+ mode: "selected";
15892
+ tools: string[];
15893
+ } | undefined;
14002
15894
  settings?: {
14003
15895
  sessionIdleTimeoutMinutes?: number | null | undefined;
14004
15896
  } | undefined;
14005
- }, {
14006
- type: "discord";
15897
+ } | {
15898
+ type: "teams";
14007
15899
  credentialId: string;
15900
+ approval?: {
15901
+ mode: "global";
15902
+ } | {
15903
+ mode: "selected";
15904
+ tools: string[];
15905
+ } | undefined;
14008
15906
  settings?: {
14009
15907
  sessionIdleTimeoutMinutes?: number | null | undefined;
15908
+ displayName?: string | undefined;
15909
+ description?: string | undefined;
15910
+ teamChannels?: boolean | undefined;
15911
+ groupChats?: boolean | undefined;
15912
+ readAllChannelMessages?: boolean | undefined;
15913
+ readAllGroupMessages?: boolean | undefined;
14010
15914
  } | undefined;
14011
- }>]>, "many">>;
15915
+ } | {
15916
+ type: "n8n_chat";
15917
+ credentialId?: "" | undefined;
15918
+ })[]>>;
14012
15919
  mcpServers: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
14013
15920
  name: z.ZodEffects<z.ZodString, string, string>;
14014
15921
  description: z.ZodOptional<z.ZodString>;
@@ -14579,6 +16486,12 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
14579
16486
  integrations?: ({
14580
16487
  type: "telegram";
14581
16488
  credentialId: string;
16489
+ approval?: {
16490
+ mode: "global";
16491
+ } | {
16492
+ mode: "selected";
16493
+ tools: string[];
16494
+ } | undefined;
14582
16495
  settings?: {
14583
16496
  accessMode: "private" | "public";
14584
16497
  allowedUsers: string[];
@@ -14587,6 +16500,12 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
14587
16500
  } | {
14588
16501
  type: "slack";
14589
16502
  credentialId: string;
16503
+ approval?: {
16504
+ mode: "global";
16505
+ } | {
16506
+ mode: "selected";
16507
+ tools: string[];
16508
+ } | undefined;
14590
16509
  settings?: {
14591
16510
  messagingExperience: "agent" | "assistant";
14592
16511
  sessionIdleTimeoutMinutes?: number | null | undefined;
@@ -14594,15 +16513,48 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
14594
16513
  } | {
14595
16514
  type: "linear";
14596
16515
  credentialId: string;
16516
+ approval?: {
16517
+ mode: "global";
16518
+ } | {
16519
+ mode: "selected";
16520
+ tools: string[];
16521
+ } | undefined;
14597
16522
  settings?: {
14598
16523
  sessionIdleTimeoutMinutes?: number | null | undefined;
14599
16524
  } | undefined;
14600
16525
  } | {
14601
16526
  type: "discord";
14602
16527
  credentialId: string;
16528
+ approval?: {
16529
+ mode: "global";
16530
+ } | {
16531
+ mode: "selected";
16532
+ tools: string[];
16533
+ } | undefined;
16534
+ settings?: {
16535
+ sessionIdleTimeoutMinutes?: number | null | undefined;
16536
+ } | undefined;
16537
+ } | {
16538
+ type: "teams";
16539
+ credentialId: string;
16540
+ approval?: {
16541
+ mode: "global";
16542
+ } | {
16543
+ mode: "selected";
16544
+ tools: string[];
16545
+ } | undefined;
14603
16546
  settings?: {
14604
16547
  sessionIdleTimeoutMinutes?: number | null | undefined;
16548
+ displayName?: string | undefined;
16549
+ description?: string | undefined;
16550
+ teamChannels?: boolean | undefined;
16551
+ groupChats?: boolean | undefined;
16552
+ readAllChannelMessages?: boolean | undefined;
16553
+ readAllGroupMessages?: boolean | undefined;
14605
16554
  } | undefined;
16555
+ } | {
16556
+ type: "n8n_chat";
16557
+ credentialId: "";
14606
16558
  })[] | undefined;
14607
16559
  mcpServers?: {
14608
16560
  name: string;
@@ -14808,6 +16760,12 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
14808
16760
  integrations?: ({
14809
16761
  type: "telegram";
14810
16762
  credentialId: string;
16763
+ approval?: {
16764
+ mode: "global";
16765
+ } | {
16766
+ mode: "selected";
16767
+ tools: string[];
16768
+ } | undefined;
14811
16769
  settings?: {
14812
16770
  accessMode: "private" | "public";
14813
16771
  allowedUsers?: string[] | undefined;
@@ -14816,6 +16774,12 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
14816
16774
  } | {
14817
16775
  type: "slack";
14818
16776
  credentialId: string;
16777
+ approval?: {
16778
+ mode: "global";
16779
+ } | {
16780
+ mode: "selected";
16781
+ tools: string[];
16782
+ } | undefined;
14819
16783
  settings?: {
14820
16784
  messagingExperience: "agent" | "assistant";
14821
16785
  sessionIdleTimeoutMinutes?: number | null | undefined;
@@ -14823,15 +16787,48 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
14823
16787
  } | {
14824
16788
  type: "linear";
14825
16789
  credentialId: string;
16790
+ approval?: {
16791
+ mode: "global";
16792
+ } | {
16793
+ mode: "selected";
16794
+ tools: string[];
16795
+ } | undefined;
14826
16796
  settings?: {
14827
16797
  sessionIdleTimeoutMinutes?: number | null | undefined;
14828
16798
  } | undefined;
14829
16799
  } | {
14830
16800
  type: "discord";
14831
16801
  credentialId: string;
16802
+ approval?: {
16803
+ mode: "global";
16804
+ } | {
16805
+ mode: "selected";
16806
+ tools: string[];
16807
+ } | undefined;
16808
+ settings?: {
16809
+ sessionIdleTimeoutMinutes?: number | null | undefined;
16810
+ } | undefined;
16811
+ } | {
16812
+ type: "teams";
16813
+ credentialId: string;
16814
+ approval?: {
16815
+ mode: "global";
16816
+ } | {
16817
+ mode: "selected";
16818
+ tools: string[];
16819
+ } | undefined;
14832
16820
  settings?: {
14833
16821
  sessionIdleTimeoutMinutes?: number | null | undefined;
16822
+ displayName?: string | undefined;
16823
+ description?: string | undefined;
16824
+ teamChannels?: boolean | undefined;
16825
+ groupChats?: boolean | undefined;
16826
+ readAllChannelMessages?: boolean | undefined;
16827
+ readAllGroupMessages?: boolean | undefined;
14834
16828
  } | undefined;
16829
+ } | {
16830
+ type: "n8n_chat";
16831
+ credentialId?: "" | undefined;
14835
16832
  })[] | undefined;
14836
16833
  mcpServers?: {
14837
16834
  name: string;
@@ -15037,6 +17034,12 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
15037
17034
  integrations?: ({
15038
17035
  type: "telegram";
15039
17036
  credentialId: string;
17037
+ approval?: {
17038
+ mode: "global";
17039
+ } | {
17040
+ mode: "selected";
17041
+ tools: string[];
17042
+ } | undefined;
15040
17043
  settings?: {
15041
17044
  accessMode: "private" | "public";
15042
17045
  allowedUsers: string[];
@@ -15045,6 +17048,12 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
15045
17048
  } | {
15046
17049
  type: "slack";
15047
17050
  credentialId: string;
17051
+ approval?: {
17052
+ mode: "global";
17053
+ } | {
17054
+ mode: "selected";
17055
+ tools: string[];
17056
+ } | undefined;
15048
17057
  settings?: {
15049
17058
  messagingExperience: "agent" | "assistant";
15050
17059
  sessionIdleTimeoutMinutes?: number | null | undefined;
@@ -15052,15 +17061,48 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
15052
17061
  } | {
15053
17062
  type: "linear";
15054
17063
  credentialId: string;
17064
+ approval?: {
17065
+ mode: "global";
17066
+ } | {
17067
+ mode: "selected";
17068
+ tools: string[];
17069
+ } | undefined;
17070
+ settings?: {
17071
+ sessionIdleTimeoutMinutes?: number | null | undefined;
17072
+ } | undefined;
17073
+ } | {
17074
+ type: "discord";
17075
+ credentialId: string;
17076
+ approval?: {
17077
+ mode: "global";
17078
+ } | {
17079
+ mode: "selected";
17080
+ tools: string[];
17081
+ } | undefined;
15055
17082
  settings?: {
15056
17083
  sessionIdleTimeoutMinutes?: number | null | undefined;
15057
17084
  } | undefined;
15058
- } | {
15059
- type: "discord";
15060
- credentialId: string;
17085
+ } | {
17086
+ type: "teams";
17087
+ credentialId: string;
17088
+ approval?: {
17089
+ mode: "global";
17090
+ } | {
17091
+ mode: "selected";
17092
+ tools: string[];
17093
+ } | undefined;
15061
17094
  settings?: {
15062
17095
  sessionIdleTimeoutMinutes?: number | null | undefined;
17096
+ displayName?: string | undefined;
17097
+ description?: string | undefined;
17098
+ teamChannels?: boolean | undefined;
17099
+ groupChats?: boolean | undefined;
17100
+ readAllChannelMessages?: boolean | undefined;
17101
+ readAllGroupMessages?: boolean | undefined;
15063
17102
  } | undefined;
17103
+ } | {
17104
+ type: "n8n_chat";
17105
+ credentialId: "";
15064
17106
  })[] | undefined;
15065
17107
  mcpServers?: {
15066
17108
  name: string;
@@ -15266,6 +17308,12 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
15266
17308
  integrations?: ({
15267
17309
  type: "telegram";
15268
17310
  credentialId: string;
17311
+ approval?: {
17312
+ mode: "global";
17313
+ } | {
17314
+ mode: "selected";
17315
+ tools: string[];
17316
+ } | undefined;
15269
17317
  settings?: {
15270
17318
  accessMode: "private" | "public";
15271
17319
  allowedUsers?: string[] | undefined;
@@ -15274,6 +17322,12 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
15274
17322
  } | {
15275
17323
  type: "slack";
15276
17324
  credentialId: string;
17325
+ approval?: {
17326
+ mode: "global";
17327
+ } | {
17328
+ mode: "selected";
17329
+ tools: string[];
17330
+ } | undefined;
15277
17331
  settings?: {
15278
17332
  messagingExperience: "agent" | "assistant";
15279
17333
  sessionIdleTimeoutMinutes?: number | null | undefined;
@@ -15281,15 +17335,48 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
15281
17335
  } | {
15282
17336
  type: "linear";
15283
17337
  credentialId: string;
17338
+ approval?: {
17339
+ mode: "global";
17340
+ } | {
17341
+ mode: "selected";
17342
+ tools: string[];
17343
+ } | undefined;
15284
17344
  settings?: {
15285
17345
  sessionIdleTimeoutMinutes?: number | null | undefined;
15286
17346
  } | undefined;
15287
17347
  } | {
15288
17348
  type: "discord";
15289
17349
  credentialId: string;
17350
+ approval?: {
17351
+ mode: "global";
17352
+ } | {
17353
+ mode: "selected";
17354
+ tools: string[];
17355
+ } | undefined;
17356
+ settings?: {
17357
+ sessionIdleTimeoutMinutes?: number | null | undefined;
17358
+ } | undefined;
17359
+ } | {
17360
+ type: "teams";
17361
+ credentialId: string;
17362
+ approval?: {
17363
+ mode: "global";
17364
+ } | {
17365
+ mode: "selected";
17366
+ tools: string[];
17367
+ } | undefined;
15290
17368
  settings?: {
15291
17369
  sessionIdleTimeoutMinutes?: number | null | undefined;
17370
+ displayName?: string | undefined;
17371
+ description?: string | undefined;
17372
+ teamChannels?: boolean | undefined;
17373
+ groupChats?: boolean | undefined;
17374
+ readAllChannelMessages?: boolean | undefined;
17375
+ readAllGroupMessages?: boolean | undefined;
15292
17376
  } | undefined;
17377
+ } | {
17378
+ type: "n8n_chat";
17379
+ credentialId?: "" | undefined;
15293
17380
  })[] | undefined;
15294
17381
  mcpServers?: {
15295
17382
  name: string;
@@ -15553,6 +17640,12 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
15553
17640
  integrations?: ({
15554
17641
  type: "telegram";
15555
17642
  credentialId: string;
17643
+ approval?: {
17644
+ mode: "global";
17645
+ } | {
17646
+ mode: "selected";
17647
+ tools: string[];
17648
+ } | undefined;
15556
17649
  settings?: {
15557
17650
  accessMode: "private" | "public";
15558
17651
  allowedUsers: string[];
@@ -15561,6 +17654,12 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
15561
17654
  } | {
15562
17655
  type: "slack";
15563
17656
  credentialId: string;
17657
+ approval?: {
17658
+ mode: "global";
17659
+ } | {
17660
+ mode: "selected";
17661
+ tools: string[];
17662
+ } | undefined;
15564
17663
  settings?: {
15565
17664
  messagingExperience: "agent" | "assistant";
15566
17665
  sessionIdleTimeoutMinutes?: number | null | undefined;
@@ -15568,15 +17667,48 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
15568
17667
  } | {
15569
17668
  type: "linear";
15570
17669
  credentialId: string;
17670
+ approval?: {
17671
+ mode: "global";
17672
+ } | {
17673
+ mode: "selected";
17674
+ tools: string[];
17675
+ } | undefined;
15571
17676
  settings?: {
15572
17677
  sessionIdleTimeoutMinutes?: number | null | undefined;
15573
17678
  } | undefined;
15574
17679
  } | {
15575
17680
  type: "discord";
15576
17681
  credentialId: string;
17682
+ approval?: {
17683
+ mode: "global";
17684
+ } | {
17685
+ mode: "selected";
17686
+ tools: string[];
17687
+ } | undefined;
17688
+ settings?: {
17689
+ sessionIdleTimeoutMinutes?: number | null | undefined;
17690
+ } | undefined;
17691
+ } | {
17692
+ type: "teams";
17693
+ credentialId: string;
17694
+ approval?: {
17695
+ mode: "global";
17696
+ } | {
17697
+ mode: "selected";
17698
+ tools: string[];
17699
+ } | undefined;
15577
17700
  settings?: {
15578
17701
  sessionIdleTimeoutMinutes?: number | null | undefined;
17702
+ displayName?: string | undefined;
17703
+ description?: string | undefined;
17704
+ teamChannels?: boolean | undefined;
17705
+ groupChats?: boolean | undefined;
17706
+ readAllChannelMessages?: boolean | undefined;
17707
+ readAllGroupMessages?: boolean | undefined;
15579
17708
  } | undefined;
17709
+ } | {
17710
+ type: "n8n_chat";
17711
+ credentialId: "";
15580
17712
  })[] | undefined;
15581
17713
  mcpServers?: {
15582
17714
  name: string;
@@ -15800,6 +17932,12 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
15800
17932
  integrations?: ({
15801
17933
  type: "telegram";
15802
17934
  credentialId: string;
17935
+ approval?: {
17936
+ mode: "global";
17937
+ } | {
17938
+ mode: "selected";
17939
+ tools: string[];
17940
+ } | undefined;
15803
17941
  settings?: {
15804
17942
  accessMode: "private" | "public";
15805
17943
  allowedUsers?: string[] | undefined;
@@ -15808,6 +17946,12 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
15808
17946
  } | {
15809
17947
  type: "slack";
15810
17948
  credentialId: string;
17949
+ approval?: {
17950
+ mode: "global";
17951
+ } | {
17952
+ mode: "selected";
17953
+ tools: string[];
17954
+ } | undefined;
15811
17955
  settings?: {
15812
17956
  messagingExperience: "agent" | "assistant";
15813
17957
  sessionIdleTimeoutMinutes?: number | null | undefined;
@@ -15815,15 +17959,48 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
15815
17959
  } | {
15816
17960
  type: "linear";
15817
17961
  credentialId: string;
17962
+ approval?: {
17963
+ mode: "global";
17964
+ } | {
17965
+ mode: "selected";
17966
+ tools: string[];
17967
+ } | undefined;
15818
17968
  settings?: {
15819
17969
  sessionIdleTimeoutMinutes?: number | null | undefined;
15820
17970
  } | undefined;
15821
17971
  } | {
15822
17972
  type: "discord";
15823
17973
  credentialId: string;
17974
+ approval?: {
17975
+ mode: "global";
17976
+ } | {
17977
+ mode: "selected";
17978
+ tools: string[];
17979
+ } | undefined;
17980
+ settings?: {
17981
+ sessionIdleTimeoutMinutes?: number | null | undefined;
17982
+ } | undefined;
17983
+ } | {
17984
+ type: "teams";
17985
+ credentialId: string;
17986
+ approval?: {
17987
+ mode: "global";
17988
+ } | {
17989
+ mode: "selected";
17990
+ tools: string[];
17991
+ } | undefined;
15824
17992
  settings?: {
15825
17993
  sessionIdleTimeoutMinutes?: number | null | undefined;
17994
+ displayName?: string | undefined;
17995
+ description?: string | undefined;
17996
+ teamChannels?: boolean | undefined;
17997
+ groupChats?: boolean | undefined;
17998
+ readAllChannelMessages?: boolean | undefined;
17999
+ readAllGroupMessages?: boolean | undefined;
15826
18000
  } | undefined;
18001
+ } | {
18002
+ type: "n8n_chat";
18003
+ credentialId?: "" | undefined;
15827
18004
  })[] | undefined;
15828
18005
  mcpServers?: {
15829
18006
  name: string;
@@ -16047,6 +18224,12 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
16047
18224
  integrations?: ({
16048
18225
  type: "telegram";
16049
18226
  credentialId: string;
18227
+ approval?: {
18228
+ mode: "global";
18229
+ } | {
18230
+ mode: "selected";
18231
+ tools: string[];
18232
+ } | undefined;
16050
18233
  settings?: {
16051
18234
  accessMode: "private" | "public";
16052
18235
  allowedUsers: string[];
@@ -16055,6 +18238,12 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
16055
18238
  } | {
16056
18239
  type: "slack";
16057
18240
  credentialId: string;
18241
+ approval?: {
18242
+ mode: "global";
18243
+ } | {
18244
+ mode: "selected";
18245
+ tools: string[];
18246
+ } | undefined;
16058
18247
  settings?: {
16059
18248
  messagingExperience: "agent" | "assistant";
16060
18249
  sessionIdleTimeoutMinutes?: number | null | undefined;
@@ -16062,15 +18251,48 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
16062
18251
  } | {
16063
18252
  type: "linear";
16064
18253
  credentialId: string;
18254
+ approval?: {
18255
+ mode: "global";
18256
+ } | {
18257
+ mode: "selected";
18258
+ tools: string[];
18259
+ } | undefined;
16065
18260
  settings?: {
16066
18261
  sessionIdleTimeoutMinutes?: number | null | undefined;
16067
18262
  } | undefined;
16068
18263
  } | {
16069
18264
  type: "discord";
16070
18265
  credentialId: string;
18266
+ approval?: {
18267
+ mode: "global";
18268
+ } | {
18269
+ mode: "selected";
18270
+ tools: string[];
18271
+ } | undefined;
18272
+ settings?: {
18273
+ sessionIdleTimeoutMinutes?: number | null | undefined;
18274
+ } | undefined;
18275
+ } | {
18276
+ type: "teams";
18277
+ credentialId: string;
18278
+ approval?: {
18279
+ mode: "global";
18280
+ } | {
18281
+ mode: "selected";
18282
+ tools: string[];
18283
+ } | undefined;
16071
18284
  settings?: {
16072
18285
  sessionIdleTimeoutMinutes?: number | null | undefined;
18286
+ displayName?: string | undefined;
18287
+ description?: string | undefined;
18288
+ teamChannels?: boolean | undefined;
18289
+ groupChats?: boolean | undefined;
18290
+ readAllChannelMessages?: boolean | undefined;
18291
+ readAllGroupMessages?: boolean | undefined;
16073
18292
  } | undefined;
18293
+ } | {
18294
+ type: "n8n_chat";
18295
+ credentialId: "";
16074
18296
  })[] | undefined;
16075
18297
  mcpServers?: {
16076
18298
  name: string;
@@ -16294,6 +18516,12 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
16294
18516
  integrations?: ({
16295
18517
  type: "telegram";
16296
18518
  credentialId: string;
18519
+ approval?: {
18520
+ mode: "global";
18521
+ } | {
18522
+ mode: "selected";
18523
+ tools: string[];
18524
+ } | undefined;
16297
18525
  settings?: {
16298
18526
  accessMode: "private" | "public";
16299
18527
  allowedUsers?: string[] | undefined;
@@ -16302,6 +18530,12 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
16302
18530
  } | {
16303
18531
  type: "slack";
16304
18532
  credentialId: string;
18533
+ approval?: {
18534
+ mode: "global";
18535
+ } | {
18536
+ mode: "selected";
18537
+ tools: string[];
18538
+ } | undefined;
16305
18539
  settings?: {
16306
18540
  messagingExperience: "agent" | "assistant";
16307
18541
  sessionIdleTimeoutMinutes?: number | null | undefined;
@@ -16309,15 +18543,48 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
16309
18543
  } | {
16310
18544
  type: "linear";
16311
18545
  credentialId: string;
18546
+ approval?: {
18547
+ mode: "global";
18548
+ } | {
18549
+ mode: "selected";
18550
+ tools: string[];
18551
+ } | undefined;
16312
18552
  settings?: {
16313
18553
  sessionIdleTimeoutMinutes?: number | null | undefined;
16314
18554
  } | undefined;
16315
18555
  } | {
16316
18556
  type: "discord";
16317
18557
  credentialId: string;
18558
+ approval?: {
18559
+ mode: "global";
18560
+ } | {
18561
+ mode: "selected";
18562
+ tools: string[];
18563
+ } | undefined;
18564
+ settings?: {
18565
+ sessionIdleTimeoutMinutes?: number | null | undefined;
18566
+ } | undefined;
18567
+ } | {
18568
+ type: "teams";
18569
+ credentialId: string;
18570
+ approval?: {
18571
+ mode: "global";
18572
+ } | {
18573
+ mode: "selected";
18574
+ tools: string[];
18575
+ } | undefined;
16318
18576
  settings?: {
16319
18577
  sessionIdleTimeoutMinutes?: number | null | undefined;
18578
+ displayName?: string | undefined;
18579
+ description?: string | undefined;
18580
+ teamChannels?: boolean | undefined;
18581
+ groupChats?: boolean | undefined;
18582
+ readAllChannelMessages?: boolean | undefined;
18583
+ readAllGroupMessages?: boolean | undefined;
16320
18584
  } | undefined;
18585
+ } | {
18586
+ type: "n8n_chat";
18587
+ credentialId?: "" | undefined;
16321
18588
  })[] | undefined;
16322
18589
  mcpServers?: {
16323
18590
  name: string;
@@ -16541,6 +18808,12 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
16541
18808
  integrations?: ({
16542
18809
  type: "telegram";
16543
18810
  credentialId: string;
18811
+ approval?: {
18812
+ mode: "global";
18813
+ } | {
18814
+ mode: "selected";
18815
+ tools: string[];
18816
+ } | undefined;
16544
18817
  settings?: {
16545
18818
  accessMode: "private" | "public";
16546
18819
  allowedUsers: string[];
@@ -16549,6 +18822,12 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
16549
18822
  } | {
16550
18823
  type: "slack";
16551
18824
  credentialId: string;
18825
+ approval?: {
18826
+ mode: "global";
18827
+ } | {
18828
+ mode: "selected";
18829
+ tools: string[];
18830
+ } | undefined;
16552
18831
  settings?: {
16553
18832
  messagingExperience: "agent" | "assistant";
16554
18833
  sessionIdleTimeoutMinutes?: number | null | undefined;
@@ -16556,15 +18835,48 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
16556
18835
  } | {
16557
18836
  type: "linear";
16558
18837
  credentialId: string;
18838
+ approval?: {
18839
+ mode: "global";
18840
+ } | {
18841
+ mode: "selected";
18842
+ tools: string[];
18843
+ } | undefined;
16559
18844
  settings?: {
16560
18845
  sessionIdleTimeoutMinutes?: number | null | undefined;
16561
18846
  } | undefined;
16562
18847
  } | {
16563
18848
  type: "discord";
16564
18849
  credentialId: string;
18850
+ approval?: {
18851
+ mode: "global";
18852
+ } | {
18853
+ mode: "selected";
18854
+ tools: string[];
18855
+ } | undefined;
18856
+ settings?: {
18857
+ sessionIdleTimeoutMinutes?: number | null | undefined;
18858
+ } | undefined;
18859
+ } | {
18860
+ type: "teams";
18861
+ credentialId: string;
18862
+ approval?: {
18863
+ mode: "global";
18864
+ } | {
18865
+ mode: "selected";
18866
+ tools: string[];
18867
+ } | undefined;
16565
18868
  settings?: {
16566
18869
  sessionIdleTimeoutMinutes?: number | null | undefined;
18870
+ displayName?: string | undefined;
18871
+ description?: string | undefined;
18872
+ teamChannels?: boolean | undefined;
18873
+ groupChats?: boolean | undefined;
18874
+ readAllChannelMessages?: boolean | undefined;
18875
+ readAllGroupMessages?: boolean | undefined;
16567
18876
  } | undefined;
18877
+ } | {
18878
+ type: "n8n_chat";
18879
+ credentialId: "";
16568
18880
  })[] | undefined;
16569
18881
  mcpServers?: {
16570
18882
  name: string;
@@ -16788,6 +19100,12 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
16788
19100
  integrations?: ({
16789
19101
  type: "telegram";
16790
19102
  credentialId: string;
19103
+ approval?: {
19104
+ mode: "global";
19105
+ } | {
19106
+ mode: "selected";
19107
+ tools: string[];
19108
+ } | undefined;
16791
19109
  settings?: {
16792
19110
  accessMode: "private" | "public";
16793
19111
  allowedUsers?: string[] | undefined;
@@ -16796,6 +19114,12 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
16796
19114
  } | {
16797
19115
  type: "slack";
16798
19116
  credentialId: string;
19117
+ approval?: {
19118
+ mode: "global";
19119
+ } | {
19120
+ mode: "selected";
19121
+ tools: string[];
19122
+ } | undefined;
16799
19123
  settings?: {
16800
19124
  messagingExperience: "agent" | "assistant";
16801
19125
  sessionIdleTimeoutMinutes?: number | null | undefined;
@@ -16803,15 +19127,48 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
16803
19127
  } | {
16804
19128
  type: "linear";
16805
19129
  credentialId: string;
19130
+ approval?: {
19131
+ mode: "global";
19132
+ } | {
19133
+ mode: "selected";
19134
+ tools: string[];
19135
+ } | undefined;
16806
19136
  settings?: {
16807
19137
  sessionIdleTimeoutMinutes?: number | null | undefined;
16808
19138
  } | undefined;
16809
19139
  } | {
16810
19140
  type: "discord";
16811
19141
  credentialId: string;
19142
+ approval?: {
19143
+ mode: "global";
19144
+ } | {
19145
+ mode: "selected";
19146
+ tools: string[];
19147
+ } | undefined;
19148
+ settings?: {
19149
+ sessionIdleTimeoutMinutes?: number | null | undefined;
19150
+ } | undefined;
19151
+ } | {
19152
+ type: "teams";
19153
+ credentialId: string;
19154
+ approval?: {
19155
+ mode: "global";
19156
+ } | {
19157
+ mode: "selected";
19158
+ tools: string[];
19159
+ } | undefined;
16812
19160
  settings?: {
16813
19161
  sessionIdleTimeoutMinutes?: number | null | undefined;
19162
+ displayName?: string | undefined;
19163
+ description?: string | undefined;
19164
+ teamChannels?: boolean | undefined;
19165
+ groupChats?: boolean | undefined;
19166
+ readAllChannelMessages?: boolean | undefined;
19167
+ readAllGroupMessages?: boolean | undefined;
16814
19168
  } | undefined;
19169
+ } | {
19170
+ type: "n8n_chat";
19171
+ credentialId?: "" | undefined;
16815
19172
  })[] | undefined;
16816
19173
  mcpServers?: {
16817
19174
  name: string;