@n8n/api-types 1.41.2 → 1.42.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (205) hide show
  1. package/dist/agent-sse.d.ts +10 -0
  2. package/dist/agents/agent-config-lifecycle.d.ts +1 -0
  3. package/dist/agents/agent-config-lifecycle.js +1 -1
  4. package/dist/agents/agent-config-lifecycle.js.map +1 -1
  5. package/dist/agents/agent-integration.schema.d.ts +533 -1
  6. package/dist/agents/agent-integration.schema.js +71 -2
  7. package/dist/agents/agent-integration.schema.js.map +1 -1
  8. package/dist/agents/agent-json-config.schema.d.ts +1559 -112
  9. package/dist/agents/agent-json-config.schema.js +7 -13
  10. package/dist/agents/agent-json-config.schema.js.map +1 -1
  11. package/dist/agents/dto.d.ts +691 -6
  12. package/dist/agents/dto.js +19 -1
  13. package/dist/agents/dto.js.map +1 -1
  14. package/dist/agents/index.d.ts +1 -0
  15. package/dist/agents/index.js.map +1 -1
  16. package/dist/agents/inline-agent-config.schema.d.ts +805 -81
  17. package/dist/agents/teams/index.d.ts +1 -0
  18. package/dist/{dto/evaluations/public-api-test-run.dto.js → agents/teams/index.js} +1 -1
  19. package/dist/agents/teams/index.js.map +1 -0
  20. package/dist/agents/teams/types.d.ts +59 -0
  21. package/dist/agents/teams/types.js +3 -0
  22. package/dist/agents/teams/types.js.map +1 -0
  23. package/dist/agents/types.d.ts +31 -2
  24. package/dist/agents/types.js.map +1 -1
  25. package/dist/build.tsbuildinfo +1 -1
  26. package/dist/constants/auth.d.ts +1 -0
  27. package/dist/constants/auth.js +5 -0
  28. package/dist/constants/auth.js.map +1 -0
  29. package/dist/constants/canvas-feature-flags.d.ts +2 -0
  30. package/dist/constants/canvas-feature-flags.js +6 -0
  31. package/dist/constants/canvas-feature-flags.js.map +1 -0
  32. package/dist/constants/credential-descriptions.d.ts +1 -0
  33. package/dist/constants/credential-descriptions.js +5 -0
  34. package/dist/constants/credential-descriptions.js.map +1 -0
  35. package/dist/constants/empty-canvas-groups.d.ts +1 -0
  36. package/dist/constants/empty-canvas-groups.js +5 -0
  37. package/dist/constants/empty-canvas-groups.js.map +1 -0
  38. package/dist/credential-type-availability.d.ts +9 -0
  39. package/dist/credential-type-availability.js +3 -0
  40. package/dist/credential-type-availability.js.map +1 -0
  41. package/dist/dto/ai-preference/ai-preference-list-query.dto.d.ts +6 -2
  42. package/dist/dto/ai-preference/ai-preference-list-query.dto.js +19 -1
  43. package/dist/dto/ai-preference/ai-preference-list-query.dto.js.map +1 -1
  44. package/dist/dto/audit/audit-public.dto.d.ts +3730 -0
  45. package/dist/dto/audit/audit-public.dto.js +107 -0
  46. package/dist/dto/audit/audit-public.dto.js.map +1 -0
  47. package/dist/dto/audit/audit-public.openapi.d.ts +7 -0
  48. package/dist/dto/audit/audit-public.openapi.js +109 -0
  49. package/dist/dto/audit/audit-public.openapi.js.map +1 -0
  50. package/dist/dto/community-packages/community-package-public.dto.d.ts +184 -0
  51. package/dist/dto/community-packages/community-package-public.dto.js +56 -0
  52. package/dist/dto/community-packages/community-package-public.dto.js.map +1 -0
  53. package/dist/dto/community-packages/community-package-public.openapi.d.ts +19 -0
  54. package/dist/dto/community-packages/community-package-public.openapi.js +23 -0
  55. package/dist/dto/community-packages/community-package-public.openapi.js.map +1 -0
  56. package/dist/dto/credentials/create-credential.dto.d.ts +2 -0
  57. package/dist/dto/credentials/create-credential.dto.js +1 -0
  58. package/dist/dto/credentials/create-credential.dto.js.map +1 -1
  59. package/dist/dto/credentials/credential-public.dto.d.ts +16 -0
  60. package/dist/dto/credentials/credential-public.dto.js +14 -1
  61. package/dist/dto/credentials/credential-public.dto.js.map +1 -1
  62. package/dist/dto/data-table/data-table-public.dto.d.ts +268 -0
  63. package/dist/dto/data-table/data-table-public.dto.js +60 -0
  64. package/dist/dto/data-table/data-table-public.dto.js.map +1 -0
  65. package/dist/dto/data-table/data-table-public.openapi.d.ts +102 -0
  66. package/dist/dto/data-table/data-table-public.openapi.js +77 -0
  67. package/dist/dto/data-table/data-table-public.openapi.js.map +1 -0
  68. package/dist/dto/data-table/list-data-table-query.dto.d.ts +3 -2
  69. package/dist/dto/data-table/list-data-table-query.dto.js +6 -3
  70. package/dist/dto/data-table/list-data-table-query.dto.js.map +1 -1
  71. package/dist/dto/discover/discover-public.dto.d.ts +199 -0
  72. package/dist/dto/discover/discover-public.dto.js +51 -0
  73. package/dist/dto/discover/discover-public.dto.js.map +1 -0
  74. package/dist/dto/discover/discover-public.openapi.d.ts +26 -0
  75. package/dist/dto/discover/discover-public.openapi.js +26 -0
  76. package/dist/dto/discover/discover-public.openapi.js.map +1 -0
  77. package/dist/dto/evaluations/index.d.ts +1 -1
  78. package/dist/dto/evaluations/index.js +1 -0
  79. package/dist/dto/evaluations/index.js.map +1 -1
  80. package/dist/dto/evaluations/llm-judge-providers.js +1 -1
  81. package/dist/dto/evaluations/llm-judge-providers.js.map +1 -1
  82. package/dist/dto/evaluations/test-run-public.dto.d.ts +283 -0
  83. package/dist/dto/evaluations/test-run-public.dto.js +90 -0
  84. package/dist/dto/evaluations/test-run-public.dto.js.map +1 -0
  85. package/dist/dto/evaluations/test-run-public.openapi.d.ts +43 -0
  86. package/dist/dto/evaluations/test-run-public.openapi.js +55 -0
  87. package/dist/dto/evaluations/test-run-public.openapi.js.map +1 -0
  88. package/dist/dto/folders/folder-public.dto.d.ts +96 -0
  89. package/dist/dto/folders/folder-public.dto.js +56 -2
  90. package/dist/dto/folders/folder-public.dto.js.map +1 -1
  91. package/dist/dto/folders/folder-public.openapi.d.ts +21 -0
  92. package/dist/dto/folders/folder-public.openapi.js +20 -1
  93. package/dist/dto/folders/folder-public.openapi.js.map +1 -1
  94. package/dist/dto/index.d.ts +19 -7
  95. package/dist/dto/index.js +67 -12
  96. package/dist/dto/index.js.map +1 -1
  97. package/dist/dto/instance-ai/instance-ai-preference-card-request.dto.d.ts +28 -0
  98. package/dist/dto/instance-ai/instance-ai-preference-card-request.dto.js +23 -0
  99. package/dist/dto/instance-ai/instance-ai-preference-card-request.dto.js.map +1 -0
  100. package/dist/dto/instance-ai/instance-ai-thread-tabs-request.dto.d.ts +71 -0
  101. package/dist/dto/instance-ai/instance-ai-thread-tabs-request.dto.js +9 -0
  102. package/dist/dto/instance-ai/instance-ai-thread-tabs-request.dto.js.map +1 -0
  103. package/dist/dto/invitation/invite-users-request.dto.d.ts +1 -2
  104. package/dist/dto/invitation/invite-users-request.dto.js +3 -3
  105. package/dist/dto/invitation/invite-users-request.dto.js.map +1 -1
  106. package/dist/dto/oidc/config.dto.d.ts +0 -37
  107. package/dist/dto/oidc/config.dto.js +1 -11
  108. package/dist/dto/oidc/config.dto.js.map +1 -1
  109. package/dist/dto/oidc/oidc-configuration-public.dto.d.ts +142 -0
  110. package/dist/dto/oidc/oidc-configuration-public.dto.js +56 -0
  111. package/dist/dto/oidc/oidc-configuration-public.dto.js.map +1 -0
  112. package/dist/dto/oidc/oidc-configuration-public.openapi.d.ts +57 -0
  113. package/dist/dto/oidc/oidc-configuration-public.openapi.js +61 -0
  114. package/dist/dto/oidc/oidc-configuration-public.openapi.js.map +1 -0
  115. package/dist/dto/packages/import-package-request.dto.d.ts +16 -0
  116. package/dist/dto/packages/import-package-request.dto.js +54 -1
  117. package/dist/dto/packages/import-package-request.dto.js.map +1 -1
  118. package/dist/dto/project/project-public.dto.d.ts +42 -2
  119. package/dist/dto/project/project-public.dto.js +11 -1
  120. package/dist/dto/project/project-public.dto.js.map +1 -1
  121. package/dist/dto/project/update-project.dto.js +1 -11
  122. package/dist/dto/project/update-project.dto.js.map +1 -1
  123. package/dist/dto/promotions/promotable-resource.dto.d.ts +12 -3
  124. package/dist/dto/promotions/promotable-resource.dto.js +13 -2
  125. package/dist/dto/promotions/promotable-resource.dto.js.map +1 -1
  126. package/dist/dto/promotions/promotion-binding-preflight.dto.d.ts +189 -0
  127. package/dist/dto/promotions/promotion-binding-preflight.dto.js +12 -1
  128. package/dist/dto/promotions/promotion-binding-preflight.dto.js.map +1 -1
  129. package/dist/dto/promotions/promotion-operations.dto.d.ts +217 -0
  130. package/dist/dto/security-settings/security-policy-public.openapi.d.ts +42 -0
  131. package/dist/dto/security-settings/security-policy-public.openapi.js +46 -0
  132. package/dist/dto/security-settings/security-policy-public.openapi.js.map +1 -0
  133. package/dist/dto/security-settings/security-policy.dto.d.ts +125 -8
  134. package/dist/dto/security-settings/security-policy.dto.js +55 -7
  135. package/dist/dto/security-settings/security-policy.dto.js.map +1 -1
  136. package/dist/dto/user/create-users-public.dto.d.ts +69 -0
  137. package/dist/dto/user/create-users-public.dto.js +33 -0
  138. package/dist/dto/user/create-users-public.dto.js.map +1 -0
  139. package/dist/dto/user/delete-user-query-public.dto.d.ts +10 -0
  140. package/dist/dto/user/delete-user-query-public.dto.js +14 -0
  141. package/dist/dto/user/delete-user-query-public.dto.js.map +1 -0
  142. package/dist/dto/user/get-user-query.dto.d.ts +8 -0
  143. package/dist/dto/user/get-user-query.dto.js +11 -0
  144. package/dist/dto/user/get-user-query.dto.js.map +1 -0
  145. package/dist/dto/user/list-users-query.dto.d.ts +15 -0
  146. package/dist/dto/user/list-users-query.dto.js +16 -0
  147. package/dist/dto/user/list-users-query.dto.js.map +1 -0
  148. package/dist/dto/user/user-public.dto.d.ts +106 -0
  149. package/dist/dto/user/user-public.dto.js +37 -0
  150. package/dist/dto/user/user-public.dto.js.map +1 -0
  151. package/dist/dto/workflows/base-workflow-public.dto.d.ts +59 -1
  152. package/dist/dto/workflows/base-workflow-public.dto.js +3 -1
  153. package/dist/dto/workflows/base-workflow-public.dto.js.map +1 -1
  154. package/dist/dto/workflows/create-workflow-public.dto.d.ts +168 -107
  155. package/dist/dto/workflows/create-workflow-public.dto.js +6 -3
  156. package/dist/dto/workflows/create-workflow-public.dto.js.map +1 -1
  157. package/dist/dto/workflows/update-workflow-public.dto.d.ts +59 -1
  158. package/dist/dto/workflows/workflow-public.openapi.d.ts +4 -0
  159. package/dist/dto/workflows/workflow-public.openapi.js +4 -0
  160. package/dist/dto/workflows/workflow-public.openapi.js.map +1 -1
  161. package/dist/frontend-settings.d.ts +4 -0
  162. package/dist/index.d.ts +14 -9
  163. package/dist/index.js +45 -11
  164. package/dist/index.js.map +1 -1
  165. package/dist/instance-registry-types.d.ts +15 -15
  166. package/dist/instance-registry-types.js +2 -2
  167. package/dist/instance-registry-types.js.map +1 -1
  168. package/dist/push/agents.d.ts +9 -1
  169. package/dist/push/collaboration.d.ts +10 -7
  170. package/dist/schemas/agent-run-reducer.js +38 -0
  171. package/dist/schemas/agent-run-reducer.js.map +1 -1
  172. package/dist/schemas/ai-preference.schema.js.map +1 -1
  173. package/dist/schemas/breaking-changes.schema.d.ts +2 -0
  174. package/dist/schemas/breaking-changes.schema.js +8 -1
  175. package/dist/schemas/breaking-changes.schema.js.map +1 -1
  176. package/dist/schemas/folder.schema.d.ts +1 -0
  177. package/dist/schemas/folder.schema.js +4 -4
  178. package/dist/schemas/folder.schema.js.map +1 -1
  179. package/dist/schemas/instance-ai-setup-credential-selection.d.ts +25 -0
  180. package/dist/schemas/instance-ai-setup-credential-selection.js +40 -0
  181. package/dist/schemas/instance-ai-setup-credential-selection.js.map +1 -0
  182. package/dist/schemas/instance-ai.schema.d.ts +2360 -116
  183. package/dist/schemas/instance-ai.schema.js +117 -8
  184. package/dist/schemas/instance-ai.schema.js.map +1 -1
  185. package/dist/schemas/llm-step-display.d.ts +41 -0
  186. package/dist/schemas/llm-step-display.js +242 -3
  187. package/dist/schemas/llm-step-display.js.map +1 -1
  188. package/dist/schemas/mcp.schema.d.ts +2 -2
  189. package/dist/schemas/mcp.schema.js +2 -0
  190. package/dist/schemas/mcp.schema.js.map +1 -1
  191. package/dist/schemas/project.schema.d.ts +16 -0
  192. package/dist/schemas/project.schema.js +9 -1
  193. package/dist/schemas/project.schema.js.map +1 -1
  194. package/dist/schemas/public-api-path-params.schema.d.ts +7 -0
  195. package/dist/schemas/public-api-path-params.schema.js +25 -1
  196. package/dist/schemas/public-api-path-params.schema.js.map +1 -1
  197. package/package.json +8 -6
  198. package/dist/dto/data-table/public-api-create-data-table.dto.d.ts +0 -33
  199. package/dist/dto/data-table/public-api-create-data-table.dto.js +0 -17
  200. package/dist/dto/data-table/public-api-create-data-table.dto.js.map +0 -1
  201. package/dist/dto/evaluations/public-api-test-run.dto.d.ts +0 -37
  202. package/dist/dto/evaluations/public-api-test-run.dto.js.map +0 -1
  203. package/dist/schemas/community-package.schema.d.ts +0 -13
  204. package/dist/schemas/community-package.schema.js +0 -17
  205. package/dist/schemas/community-package.schema.js.map +0 -1
@@ -2,7 +2,7 @@ import { z } from 'zod';
2
2
  import { agentSkillSchema } from './agent-skill.schema';
3
3
  export declare const AGENTS_LIST_SORT_OPTIONS: readonly ['name:asc', 'name:desc', 'createdAt:asc', 'createdAt:desc', 'updatedAt:asc', 'updatedAt:desc'];
4
4
  export declare const AGENT_SESSION_STATUSES: readonly ['running', 'succeeded', 'error', 'cancelled', 'interrupted'];
5
- export declare const AGENT_SESSION_ORIGINS: readonly ['preview', 'instance-ai', 'mcp', 'sub-agent', 'schedule', 'workflow', 'slack', 'telegram', 'linear', 'discord'];
5
+ export declare const AGENT_SESSION_ORIGINS: readonly ['preview', 'instance-ai', 'mcp', 'sub-agent', 'schedule', 'workflow', 'n8n_chat_production', 'slack', 'telegram', 'linear', 'discord', 'teams'];
6
6
  export type AgentSessionStatus = (typeof AGENT_SESSION_STATUSES)[number];
7
7
  export type AgentSessionOrigin = (typeof AGENT_SESSION_ORIGINS)[number];
8
8
  declare const ListAgentsQueryDto_base: import("../zod-class").ZodClass<{
@@ -27,21 +27,23 @@ export declare class ListAgentsQueryDto extends ListAgentsQueryDto_base {
27
27
  declare const ListAgentSessionsQueryDto_base: import("../zod-class").ZodClass<{
28
28
  cursor?: string | undefined;
29
29
  limit?: string | undefined;
30
+ previewOnly?: boolean | undefined;
30
31
  status?: "cancelled" | "error" | "interrupted" | "running" | "succeeded" | undefined;
31
- origin?: "discord" | "instance-ai" | "linear" | "mcp" | "preview" | "schedule" | "slack" | "sub-agent" | "telegram" | "workflow" | undefined;
32
+ origin?: "discord" | "instance-ai" | "linear" | "mcp" | "n8n_chat_production" | "preview" | "schedule" | "slack" | "sub-agent" | "teams" | "telegram" | "workflow" | undefined;
32
33
  updatedAfter?: Date | undefined;
33
34
  updatedBefore?: Date | undefined;
34
35
  }, {
35
36
  cursor: z.ZodOptional<z.ZodString>;
36
37
  limit: z.ZodOptional<z.ZodString>;
38
+ previewOnly: z.ZodOptional<z.ZodEffects<z.ZodEnum<["true", "false"]>, boolean, "false" | "true">>;
37
39
  status: z.ZodOptional<z.ZodEnum<["running", "succeeded", "error", "cancelled", "interrupted"]>>;
38
- origin: z.ZodOptional<z.ZodEnum<["preview", "instance-ai", "mcp", "sub-agent", "schedule", "workflow", "slack", "telegram", "linear", "discord"]>>;
40
+ origin: z.ZodOptional<z.ZodEnum<["preview", "instance-ai", "mcp", "sub-agent", "schedule", "workflow", "n8n_chat_production", "slack", "telegram", "linear", "discord", "teams"]>>;
39
41
  updatedAfter: z.ZodOptional<z.ZodDate>;
40
42
  updatedBefore: z.ZodOptional<z.ZodDate>;
41
43
  }>;
42
44
  export declare class ListAgentSessionsQueryDto extends ListAgentSessionsQueryDto_base {
43
45
  }
44
- export type AgentSessionQueryFilters = Pick<ListAgentSessionsQueryDto, 'status' | 'origin' | 'updatedAfter' | 'updatedBefore'>;
46
+ export type AgentSessionQueryFilters = Pick<ListAgentSessionsQueryDto, 'status' | 'origin' | 'updatedAfter' | 'updatedBefore' | 'previewOnly'>;
45
47
  declare const AgentProviderModelsQueryDto_base: import("../zod-class").ZodClass<{
46
48
  credentialId?: string | undefined;
47
49
  }, {
@@ -186,6 +188,12 @@ declare const CreateAgentDto_base: import("../zod-class").ZodClass<{
186
188
  integrations?: ({
187
189
  type: "telegram";
188
190
  credentialId: string;
191
+ approval?: {
192
+ mode: "global";
193
+ } | {
194
+ mode: "selected";
195
+ tools: string[];
196
+ } | undefined;
189
197
  settings?: {
190
198
  accessMode: "private" | "public";
191
199
  allowedUsers: string[];
@@ -194,6 +202,12 @@ declare const CreateAgentDto_base: import("../zod-class").ZodClass<{
194
202
  } | {
195
203
  type: "slack";
196
204
  credentialId: string;
205
+ approval?: {
206
+ mode: "global";
207
+ } | {
208
+ mode: "selected";
209
+ tools: string[];
210
+ } | undefined;
197
211
  settings?: {
198
212
  messagingExperience: "agent" | "assistant";
199
213
  sessionIdleTimeoutMinutes?: number | null | undefined;
@@ -201,15 +215,48 @@ declare const CreateAgentDto_base: import("../zod-class").ZodClass<{
201
215
  } | {
202
216
  type: "linear";
203
217
  credentialId: string;
218
+ approval?: {
219
+ mode: "global";
220
+ } | {
221
+ mode: "selected";
222
+ tools: string[];
223
+ } | undefined;
204
224
  settings?: {
205
225
  sessionIdleTimeoutMinutes?: number | null | undefined;
206
226
  } | undefined;
207
227
  } | {
208
228
  type: "discord";
209
229
  credentialId: string;
230
+ approval?: {
231
+ mode: "global";
232
+ } | {
233
+ mode: "selected";
234
+ tools: string[];
235
+ } | undefined;
210
236
  settings?: {
211
237
  sessionIdleTimeoutMinutes?: number | null | undefined;
212
238
  } | undefined;
239
+ } | {
240
+ type: "teams";
241
+ credentialId: string;
242
+ approval?: {
243
+ mode: "global";
244
+ } | {
245
+ mode: "selected";
246
+ tools: string[];
247
+ } | undefined;
248
+ settings?: {
249
+ sessionIdleTimeoutMinutes?: number | null | undefined;
250
+ displayName?: string | undefined;
251
+ description?: string | undefined;
252
+ teamChannels?: boolean | undefined;
253
+ groupChats?: boolean | undefined;
254
+ readAllChannelMessages?: boolean | undefined;
255
+ readAllGroupMessages?: boolean | undefined;
256
+ } | undefined;
257
+ } | {
258
+ type: "n8n_chat";
259
+ credentialId: "";
213
260
  })[] | undefined;
214
261
  mcpServers?: {
215
262
  name: string;
@@ -907,9 +954,25 @@ declare const CreateAgentDto_base: import("../zod-class").ZodClass<{
907
954
  enabled: boolean;
908
955
  }>, "many">>;
909
956
  providerTools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
910
- integrations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", readonly [z.ZodObject<{
957
+ integrations: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
911
958
  type: z.ZodLiteral<"telegram">;
912
959
  credentialId: z.ZodString;
960
+ approval: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
961
+ mode: z.ZodLiteral<"global">;
962
+ }, "strict", z.ZodTypeAny, {
963
+ mode: "global";
964
+ }, {
965
+ mode: "global";
966
+ }>, z.ZodObject<{
967
+ mode: z.ZodLiteral<"selected">;
968
+ tools: z.ZodArray<z.ZodString, "many">;
969
+ }, "strict", z.ZodTypeAny, {
970
+ mode: "selected";
971
+ tools: string[];
972
+ }, {
973
+ mode: "selected";
974
+ tools: string[];
975
+ }>]>>;
913
976
  } & {
914
977
  settings: z.ZodOptional<z.ZodEffects<z.ZodObject<{
915
978
  accessMode: z.ZodEnum<["private", "public"]>;
@@ -935,6 +998,12 @@ declare const CreateAgentDto_base: import("../zod-class").ZodClass<{
935
998
  }, "strip", z.ZodTypeAny, {
936
999
  type: "telegram";
937
1000
  credentialId: string;
1001
+ approval?: {
1002
+ mode: "global";
1003
+ } | {
1004
+ mode: "selected";
1005
+ tools: string[];
1006
+ } | undefined;
938
1007
  settings?: {
939
1008
  accessMode: "private" | "public";
940
1009
  allowedUsers: string[];
@@ -943,6 +1012,12 @@ declare const CreateAgentDto_base: import("../zod-class").ZodClass<{
943
1012
  }, {
944
1013
  type: "telegram";
945
1014
  credentialId: string;
1015
+ approval?: {
1016
+ mode: "global";
1017
+ } | {
1018
+ mode: "selected";
1019
+ tools: string[];
1020
+ } | undefined;
946
1021
  settings?: {
947
1022
  accessMode: "private" | "public";
948
1023
  allowedUsers?: string[] | undefined;
@@ -951,6 +1026,22 @@ declare const CreateAgentDto_base: import("../zod-class").ZodClass<{
951
1026
  }>, z.ZodObject<{
952
1027
  type: z.ZodLiteral<"slack">;
953
1028
  credentialId: z.ZodString;
1029
+ approval: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
1030
+ mode: z.ZodLiteral<"global">;
1031
+ }, "strict", z.ZodTypeAny, {
1032
+ mode: "global";
1033
+ }, {
1034
+ mode: "global";
1035
+ }>, z.ZodObject<{
1036
+ mode: z.ZodLiteral<"selected">;
1037
+ tools: z.ZodArray<z.ZodString, "many">;
1038
+ }, "strict", z.ZodTypeAny, {
1039
+ mode: "selected";
1040
+ tools: string[];
1041
+ }, {
1042
+ mode: "selected";
1043
+ tools: string[];
1044
+ }>]>>;
954
1045
  } & {
955
1046
  settings: z.ZodOptional<z.ZodObject<{
956
1047
  messagingExperience: z.ZodEnum<["assistant", "agent"]>;
@@ -965,6 +1056,12 @@ declare const CreateAgentDto_base: import("../zod-class").ZodClass<{
965
1056
  }, "strip", z.ZodTypeAny, {
966
1057
  type: "slack";
967
1058
  credentialId: string;
1059
+ approval?: {
1060
+ mode: "global";
1061
+ } | {
1062
+ mode: "selected";
1063
+ tools: string[];
1064
+ } | undefined;
968
1065
  settings?: {
969
1066
  messagingExperience: "agent" | "assistant";
970
1067
  sessionIdleTimeoutMinutes?: number | null | undefined;
@@ -972,6 +1069,12 @@ declare const CreateAgentDto_base: import("../zod-class").ZodClass<{
972
1069
  }, {
973
1070
  type: "slack";
974
1071
  credentialId: string;
1072
+ approval?: {
1073
+ mode: "global";
1074
+ } | {
1075
+ mode: "selected";
1076
+ tools: string[];
1077
+ } | undefined;
975
1078
  settings?: {
976
1079
  messagingExperience: "agent" | "assistant";
977
1080
  sessionIdleTimeoutMinutes?: number | null | undefined;
@@ -979,6 +1082,22 @@ declare const CreateAgentDto_base: import("../zod-class").ZodClass<{
979
1082
  }>, z.ZodObject<{
980
1083
  type: z.ZodLiteral<"linear">;
981
1084
  credentialId: z.ZodString;
1085
+ approval: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
1086
+ mode: z.ZodLiteral<"global">;
1087
+ }, "strict", z.ZodTypeAny, {
1088
+ mode: "global";
1089
+ }, {
1090
+ mode: "global";
1091
+ }>, z.ZodObject<{
1092
+ mode: z.ZodLiteral<"selected">;
1093
+ tools: z.ZodArray<z.ZodString, "many">;
1094
+ }, "strict", z.ZodTypeAny, {
1095
+ mode: "selected";
1096
+ tools: string[];
1097
+ }, {
1098
+ mode: "selected";
1099
+ tools: string[];
1100
+ }>]>>;
982
1101
  } & {
983
1102
  settings: z.ZodOptional<z.ZodObject<{
984
1103
  sessionIdleTimeoutMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -990,18 +1109,46 @@ declare const CreateAgentDto_base: import("../zod-class").ZodClass<{
990
1109
  }, "strip", z.ZodTypeAny, {
991
1110
  type: "linear";
992
1111
  credentialId: string;
1112
+ approval?: {
1113
+ mode: "global";
1114
+ } | {
1115
+ mode: "selected";
1116
+ tools: string[];
1117
+ } | undefined;
993
1118
  settings?: {
994
1119
  sessionIdleTimeoutMinutes?: number | null | undefined;
995
1120
  } | undefined;
996
1121
  }, {
997
1122
  type: "linear";
998
1123
  credentialId: string;
1124
+ approval?: {
1125
+ mode: "global";
1126
+ } | {
1127
+ mode: "selected";
1128
+ tools: string[];
1129
+ } | undefined;
999
1130
  settings?: {
1000
1131
  sessionIdleTimeoutMinutes?: number | null | undefined;
1001
1132
  } | undefined;
1002
1133
  }>, z.ZodObject<{
1003
1134
  type: z.ZodLiteral<"discord">;
1004
1135
  credentialId: z.ZodString;
1136
+ approval: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
1137
+ mode: z.ZodLiteral<"global">;
1138
+ }, "strict", z.ZodTypeAny, {
1139
+ mode: "global";
1140
+ }, {
1141
+ mode: "global";
1142
+ }>, z.ZodObject<{
1143
+ mode: z.ZodLiteral<"selected">;
1144
+ tools: z.ZodArray<z.ZodString, "many">;
1145
+ }, "strict", z.ZodTypeAny, {
1146
+ mode: "selected";
1147
+ tools: string[];
1148
+ }, {
1149
+ mode: "selected";
1150
+ tools: string[];
1151
+ }>]>>;
1005
1152
  } & {
1006
1153
  settings: z.ZodOptional<z.ZodObject<{
1007
1154
  sessionIdleTimeoutMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -1013,16 +1160,278 @@ declare const CreateAgentDto_base: import("../zod-class").ZodClass<{
1013
1160
  }, "strip", z.ZodTypeAny, {
1014
1161
  type: "discord";
1015
1162
  credentialId: string;
1163
+ approval?: {
1164
+ mode: "global";
1165
+ } | {
1166
+ mode: "selected";
1167
+ tools: string[];
1168
+ } | undefined;
1016
1169
  settings?: {
1017
1170
  sessionIdleTimeoutMinutes?: number | null | undefined;
1018
1171
  } | undefined;
1019
1172
  }, {
1020
1173
  type: "discord";
1021
1174
  credentialId: string;
1175
+ approval?: {
1176
+ mode: "global";
1177
+ } | {
1178
+ mode: "selected";
1179
+ tools: string[];
1180
+ } | undefined;
1181
+ settings?: {
1182
+ sessionIdleTimeoutMinutes?: number | null | undefined;
1183
+ } | undefined;
1184
+ }>, z.ZodObject<{
1185
+ type: z.ZodLiteral<"teams">;
1186
+ credentialId: z.ZodString;
1187
+ approval: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
1188
+ mode: z.ZodLiteral<"global">;
1189
+ }, "strict", z.ZodTypeAny, {
1190
+ mode: "global";
1191
+ }, {
1192
+ mode: "global";
1193
+ }>, z.ZodObject<{
1194
+ mode: z.ZodLiteral<"selected">;
1195
+ tools: z.ZodArray<z.ZodString, "many">;
1196
+ }, "strict", z.ZodTypeAny, {
1197
+ mode: "selected";
1198
+ tools: string[];
1199
+ }, {
1200
+ mode: "selected";
1201
+ tools: string[];
1202
+ }>]>>;
1203
+ } & {
1204
+ settings: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1205
+ sessionIdleTimeoutMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1206
+ displayName: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1207
+ description: z.ZodOptional<z.ZodString>;
1208
+ teamChannels: z.ZodOptional<z.ZodBoolean>;
1209
+ groupChats: z.ZodOptional<z.ZodBoolean>;
1210
+ readAllChannelMessages: z.ZodOptional<z.ZodBoolean>;
1211
+ readAllGroupMessages: z.ZodOptional<z.ZodBoolean>;
1212
+ }, "strict", z.ZodTypeAny, {
1213
+ sessionIdleTimeoutMinutes?: number | null | undefined;
1214
+ displayName?: string | undefined;
1215
+ description?: string | undefined;
1216
+ teamChannels?: boolean | undefined;
1217
+ groupChats?: boolean | undefined;
1218
+ readAllChannelMessages?: boolean | undefined;
1219
+ readAllGroupMessages?: boolean | undefined;
1220
+ }, {
1221
+ sessionIdleTimeoutMinutes?: number | null | undefined;
1222
+ displayName?: string | undefined;
1223
+ description?: string | undefined;
1224
+ teamChannels?: boolean | undefined;
1225
+ groupChats?: boolean | undefined;
1226
+ readAllChannelMessages?: boolean | undefined;
1227
+ readAllGroupMessages?: boolean | undefined;
1228
+ }>, {
1229
+ sessionIdleTimeoutMinutes?: number | null | undefined;
1230
+ displayName?: string | undefined;
1231
+ description?: string | undefined;
1232
+ teamChannels?: boolean | undefined;
1233
+ groupChats?: boolean | undefined;
1234
+ readAllChannelMessages?: boolean | undefined;
1235
+ readAllGroupMessages?: boolean | undefined;
1236
+ }, {
1237
+ sessionIdleTimeoutMinutes?: number | null | undefined;
1238
+ displayName?: string | undefined;
1239
+ description?: string | undefined;
1240
+ teamChannels?: boolean | undefined;
1241
+ groupChats?: boolean | undefined;
1242
+ readAllChannelMessages?: boolean | undefined;
1243
+ readAllGroupMessages?: boolean | undefined;
1244
+ }>>;
1245
+ }, "strip", z.ZodTypeAny, {
1246
+ type: "teams";
1247
+ credentialId: string;
1248
+ approval?: {
1249
+ mode: "global";
1250
+ } | {
1251
+ mode: "selected";
1252
+ tools: string[];
1253
+ } | undefined;
1254
+ settings?: {
1255
+ sessionIdleTimeoutMinutes?: number | null | undefined;
1256
+ displayName?: string | undefined;
1257
+ description?: string | undefined;
1258
+ teamChannels?: boolean | undefined;
1259
+ groupChats?: boolean | undefined;
1260
+ readAllChannelMessages?: boolean | undefined;
1261
+ readAllGroupMessages?: boolean | undefined;
1262
+ } | undefined;
1263
+ }, {
1264
+ type: "teams";
1265
+ credentialId: string;
1266
+ approval?: {
1267
+ mode: "global";
1268
+ } | {
1269
+ mode: "selected";
1270
+ tools: string[];
1271
+ } | undefined;
1272
+ settings?: {
1273
+ sessionIdleTimeoutMinutes?: number | null | undefined;
1274
+ displayName?: string | undefined;
1275
+ description?: string | undefined;
1276
+ teamChannels?: boolean | undefined;
1277
+ groupChats?: boolean | undefined;
1278
+ readAllChannelMessages?: boolean | undefined;
1279
+ readAllGroupMessages?: boolean | undefined;
1280
+ } | undefined;
1281
+ }>, z.ZodObject<{
1282
+ type: z.ZodLiteral<"n8n_chat">;
1283
+ credentialId: z.ZodDefault<z.ZodLiteral<"">>;
1284
+ }, "strict", z.ZodTypeAny, {
1285
+ type: "n8n_chat";
1286
+ credentialId: "";
1287
+ }, {
1288
+ type: "n8n_chat";
1289
+ credentialId?: "" | undefined;
1290
+ }>]>, "many">, ({
1291
+ type: "telegram";
1292
+ credentialId: string;
1293
+ approval?: {
1294
+ mode: "global";
1295
+ } | {
1296
+ mode: "selected";
1297
+ tools: string[];
1298
+ } | undefined;
1022
1299
  settings?: {
1300
+ accessMode: "private" | "public";
1301
+ allowedUsers: string[];
1023
1302
  sessionIdleTimeoutMinutes?: number | null | undefined;
1024
1303
  } | undefined;
1025
- }>]>, "many">>;
1304
+ } | {
1305
+ type: "slack";
1306
+ credentialId: string;
1307
+ approval?: {
1308
+ mode: "global";
1309
+ } | {
1310
+ mode: "selected";
1311
+ tools: string[];
1312
+ } | undefined;
1313
+ settings?: {
1314
+ messagingExperience: "agent" | "assistant";
1315
+ sessionIdleTimeoutMinutes?: number | null | undefined;
1316
+ } | undefined;
1317
+ } | {
1318
+ type: "linear";
1319
+ credentialId: string;
1320
+ approval?: {
1321
+ mode: "global";
1322
+ } | {
1323
+ mode: "selected";
1324
+ tools: string[];
1325
+ } | undefined;
1326
+ settings?: {
1327
+ sessionIdleTimeoutMinutes?: number | null | undefined;
1328
+ } | undefined;
1329
+ } | {
1330
+ type: "discord";
1331
+ credentialId: string;
1332
+ approval?: {
1333
+ mode: "global";
1334
+ } | {
1335
+ mode: "selected";
1336
+ tools: string[];
1337
+ } | undefined;
1338
+ settings?: {
1339
+ sessionIdleTimeoutMinutes?: number | null | undefined;
1340
+ } | undefined;
1341
+ } | {
1342
+ type: "teams";
1343
+ credentialId: string;
1344
+ approval?: {
1345
+ mode: "global";
1346
+ } | {
1347
+ mode: "selected";
1348
+ tools: string[];
1349
+ } | undefined;
1350
+ settings?: {
1351
+ sessionIdleTimeoutMinutes?: number | null | undefined;
1352
+ displayName?: string | undefined;
1353
+ description?: string | undefined;
1354
+ teamChannels?: boolean | undefined;
1355
+ groupChats?: boolean | undefined;
1356
+ readAllChannelMessages?: boolean | undefined;
1357
+ readAllGroupMessages?: boolean | undefined;
1358
+ } | undefined;
1359
+ } | {
1360
+ type: "n8n_chat";
1361
+ credentialId: "";
1362
+ })[], ({
1363
+ type: "telegram";
1364
+ credentialId: string;
1365
+ approval?: {
1366
+ mode: "global";
1367
+ } | {
1368
+ mode: "selected";
1369
+ tools: string[];
1370
+ } | undefined;
1371
+ settings?: {
1372
+ accessMode: "private" | "public";
1373
+ allowedUsers?: string[] | undefined;
1374
+ sessionIdleTimeoutMinutes?: number | null | undefined;
1375
+ } | undefined;
1376
+ } | {
1377
+ type: "slack";
1378
+ credentialId: string;
1379
+ approval?: {
1380
+ mode: "global";
1381
+ } | {
1382
+ mode: "selected";
1383
+ tools: string[];
1384
+ } | undefined;
1385
+ settings?: {
1386
+ messagingExperience: "agent" | "assistant";
1387
+ sessionIdleTimeoutMinutes?: number | null | undefined;
1388
+ } | undefined;
1389
+ } | {
1390
+ type: "linear";
1391
+ credentialId: string;
1392
+ approval?: {
1393
+ mode: "global";
1394
+ } | {
1395
+ mode: "selected";
1396
+ tools: string[];
1397
+ } | undefined;
1398
+ settings?: {
1399
+ sessionIdleTimeoutMinutes?: number | null | undefined;
1400
+ } | undefined;
1401
+ } | {
1402
+ type: "discord";
1403
+ credentialId: string;
1404
+ approval?: {
1405
+ mode: "global";
1406
+ } | {
1407
+ mode: "selected";
1408
+ tools: string[];
1409
+ } | undefined;
1410
+ settings?: {
1411
+ sessionIdleTimeoutMinutes?: number | null | undefined;
1412
+ } | undefined;
1413
+ } | {
1414
+ type: "teams";
1415
+ credentialId: string;
1416
+ approval?: {
1417
+ mode: "global";
1418
+ } | {
1419
+ mode: "selected";
1420
+ tools: string[];
1421
+ } | undefined;
1422
+ settings?: {
1423
+ sessionIdleTimeoutMinutes?: number | null | undefined;
1424
+ displayName?: string | undefined;
1425
+ description?: string | undefined;
1426
+ teamChannels?: boolean | undefined;
1427
+ groupChats?: boolean | undefined;
1428
+ readAllChannelMessages?: boolean | undefined;
1429
+ readAllGroupMessages?: boolean | undefined;
1430
+ } | undefined;
1431
+ } | {
1432
+ type: "n8n_chat";
1433
+ credentialId?: "" | undefined;
1434
+ })[]>>;
1026
1435
  mcpServers: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
1027
1436
  name: z.ZodEffects<z.ZodString, string, string>;
1028
1437
  description: z.ZodOptional<z.ZodString>;
@@ -1593,6 +2002,12 @@ declare const CreateAgentDto_base: import("../zod-class").ZodClass<{
1593
2002
  integrations?: ({
1594
2003
  type: "telegram";
1595
2004
  credentialId: string;
2005
+ approval?: {
2006
+ mode: "global";
2007
+ } | {
2008
+ mode: "selected";
2009
+ tools: string[];
2010
+ } | undefined;
1596
2011
  settings?: {
1597
2012
  accessMode: "private" | "public";
1598
2013
  allowedUsers: string[];
@@ -1601,6 +2016,12 @@ declare const CreateAgentDto_base: import("../zod-class").ZodClass<{
1601
2016
  } | {
1602
2017
  type: "slack";
1603
2018
  credentialId: string;
2019
+ approval?: {
2020
+ mode: "global";
2021
+ } | {
2022
+ mode: "selected";
2023
+ tools: string[];
2024
+ } | undefined;
1604
2025
  settings?: {
1605
2026
  messagingExperience: "agent" | "assistant";
1606
2027
  sessionIdleTimeoutMinutes?: number | null | undefined;
@@ -1608,15 +2029,48 @@ declare const CreateAgentDto_base: import("../zod-class").ZodClass<{
1608
2029
  } | {
1609
2030
  type: "linear";
1610
2031
  credentialId: string;
2032
+ approval?: {
2033
+ mode: "global";
2034
+ } | {
2035
+ mode: "selected";
2036
+ tools: string[];
2037
+ } | undefined;
1611
2038
  settings?: {
1612
2039
  sessionIdleTimeoutMinutes?: number | null | undefined;
1613
2040
  } | undefined;
1614
2041
  } | {
1615
2042
  type: "discord";
1616
2043
  credentialId: string;
2044
+ approval?: {
2045
+ mode: "global";
2046
+ } | {
2047
+ mode: "selected";
2048
+ tools: string[];
2049
+ } | undefined;
1617
2050
  settings?: {
1618
2051
  sessionIdleTimeoutMinutes?: number | null | undefined;
1619
2052
  } | undefined;
2053
+ } | {
2054
+ type: "teams";
2055
+ credentialId: string;
2056
+ approval?: {
2057
+ mode: "global";
2058
+ } | {
2059
+ mode: "selected";
2060
+ tools: string[];
2061
+ } | undefined;
2062
+ settings?: {
2063
+ sessionIdleTimeoutMinutes?: number | null | undefined;
2064
+ displayName?: string | undefined;
2065
+ description?: string | undefined;
2066
+ teamChannels?: boolean | undefined;
2067
+ groupChats?: boolean | undefined;
2068
+ readAllChannelMessages?: boolean | undefined;
2069
+ readAllGroupMessages?: boolean | undefined;
2070
+ } | undefined;
2071
+ } | {
2072
+ type: "n8n_chat";
2073
+ credentialId: "";
1620
2074
  })[] | undefined;
1621
2075
  mcpServers?: {
1622
2076
  name: string;
@@ -1822,6 +2276,12 @@ declare const CreateAgentDto_base: import("../zod-class").ZodClass<{
1822
2276
  integrations?: ({
1823
2277
  type: "telegram";
1824
2278
  credentialId: string;
2279
+ approval?: {
2280
+ mode: "global";
2281
+ } | {
2282
+ mode: "selected";
2283
+ tools: string[];
2284
+ } | undefined;
1825
2285
  settings?: {
1826
2286
  accessMode: "private" | "public";
1827
2287
  allowedUsers?: string[] | undefined;
@@ -1830,6 +2290,12 @@ declare const CreateAgentDto_base: import("../zod-class").ZodClass<{
1830
2290
  } | {
1831
2291
  type: "slack";
1832
2292
  credentialId: string;
2293
+ approval?: {
2294
+ mode: "global";
2295
+ } | {
2296
+ mode: "selected";
2297
+ tools: string[];
2298
+ } | undefined;
1833
2299
  settings?: {
1834
2300
  messagingExperience: "agent" | "assistant";
1835
2301
  sessionIdleTimeoutMinutes?: number | null | undefined;
@@ -1837,15 +2303,48 @@ declare const CreateAgentDto_base: import("../zod-class").ZodClass<{
1837
2303
  } | {
1838
2304
  type: "linear";
1839
2305
  credentialId: string;
2306
+ approval?: {
2307
+ mode: "global";
2308
+ } | {
2309
+ mode: "selected";
2310
+ tools: string[];
2311
+ } | undefined;
1840
2312
  settings?: {
1841
2313
  sessionIdleTimeoutMinutes?: number | null | undefined;
1842
2314
  } | undefined;
1843
2315
  } | {
1844
2316
  type: "discord";
1845
2317
  credentialId: string;
2318
+ approval?: {
2319
+ mode: "global";
2320
+ } | {
2321
+ mode: "selected";
2322
+ tools: string[];
2323
+ } | undefined;
2324
+ settings?: {
2325
+ sessionIdleTimeoutMinutes?: number | null | undefined;
2326
+ } | undefined;
2327
+ } | {
2328
+ type: "teams";
2329
+ credentialId: string;
2330
+ approval?: {
2331
+ mode: "global";
2332
+ } | {
2333
+ mode: "selected";
2334
+ tools: string[];
2335
+ } | undefined;
1846
2336
  settings?: {
1847
2337
  sessionIdleTimeoutMinutes?: number | null | undefined;
2338
+ displayName?: string | undefined;
2339
+ description?: string | undefined;
2340
+ teamChannels?: boolean | undefined;
2341
+ groupChats?: boolean | undefined;
2342
+ readAllChannelMessages?: boolean | undefined;
2343
+ readAllGroupMessages?: boolean | undefined;
1848
2344
  } | undefined;
2345
+ } | {
2346
+ type: "n8n_chat";
2347
+ credentialId?: "" | undefined;
1849
2348
  })[] | undefined;
1850
2349
  mcpServers?: {
1851
2350
  name: string;
@@ -2051,6 +2550,12 @@ declare const CreateAgentDto_base: import("../zod-class").ZodClass<{
2051
2550
  integrations?: ({
2052
2551
  type: "telegram";
2053
2552
  credentialId: string;
2553
+ approval?: {
2554
+ mode: "global";
2555
+ } | {
2556
+ mode: "selected";
2557
+ tools: string[];
2558
+ } | undefined;
2054
2559
  settings?: {
2055
2560
  accessMode: "private" | "public";
2056
2561
  allowedUsers: string[];
@@ -2059,6 +2564,12 @@ declare const CreateAgentDto_base: import("../zod-class").ZodClass<{
2059
2564
  } | {
2060
2565
  type: "slack";
2061
2566
  credentialId: string;
2567
+ approval?: {
2568
+ mode: "global";
2569
+ } | {
2570
+ mode: "selected";
2571
+ tools: string[];
2572
+ } | undefined;
2062
2573
  settings?: {
2063
2574
  messagingExperience: "agent" | "assistant";
2064
2575
  sessionIdleTimeoutMinutes?: number | null | undefined;
@@ -2066,15 +2577,48 @@ declare const CreateAgentDto_base: import("../zod-class").ZodClass<{
2066
2577
  } | {
2067
2578
  type: "linear";
2068
2579
  credentialId: string;
2580
+ approval?: {
2581
+ mode: "global";
2582
+ } | {
2583
+ mode: "selected";
2584
+ tools: string[];
2585
+ } | undefined;
2069
2586
  settings?: {
2070
2587
  sessionIdleTimeoutMinutes?: number | null | undefined;
2071
2588
  } | undefined;
2072
2589
  } | {
2073
2590
  type: "discord";
2074
2591
  credentialId: string;
2592
+ approval?: {
2593
+ mode: "global";
2594
+ } | {
2595
+ mode: "selected";
2596
+ tools: string[];
2597
+ } | undefined;
2075
2598
  settings?: {
2076
2599
  sessionIdleTimeoutMinutes?: number | null | undefined;
2077
2600
  } | undefined;
2601
+ } | {
2602
+ type: "teams";
2603
+ credentialId: string;
2604
+ approval?: {
2605
+ mode: "global";
2606
+ } | {
2607
+ mode: "selected";
2608
+ tools: string[];
2609
+ } | undefined;
2610
+ settings?: {
2611
+ sessionIdleTimeoutMinutes?: number | null | undefined;
2612
+ displayName?: string | undefined;
2613
+ description?: string | undefined;
2614
+ teamChannels?: boolean | undefined;
2615
+ groupChats?: boolean | undefined;
2616
+ readAllChannelMessages?: boolean | undefined;
2617
+ readAllGroupMessages?: boolean | undefined;
2618
+ } | undefined;
2619
+ } | {
2620
+ type: "n8n_chat";
2621
+ credentialId: "";
2078
2622
  })[] | undefined;
2079
2623
  mcpServers?: {
2080
2624
  name: string;
@@ -2280,6 +2824,12 @@ declare const CreateAgentDto_base: import("../zod-class").ZodClass<{
2280
2824
  integrations?: ({
2281
2825
  type: "telegram";
2282
2826
  credentialId: string;
2827
+ approval?: {
2828
+ mode: "global";
2829
+ } | {
2830
+ mode: "selected";
2831
+ tools: string[];
2832
+ } | undefined;
2283
2833
  settings?: {
2284
2834
  accessMode: "private" | "public";
2285
2835
  allowedUsers?: string[] | undefined;
@@ -2288,6 +2838,12 @@ declare const CreateAgentDto_base: import("../zod-class").ZodClass<{
2288
2838
  } | {
2289
2839
  type: "slack";
2290
2840
  credentialId: string;
2841
+ approval?: {
2842
+ mode: "global";
2843
+ } | {
2844
+ mode: "selected";
2845
+ tools: string[];
2846
+ } | undefined;
2291
2847
  settings?: {
2292
2848
  messagingExperience: "agent" | "assistant";
2293
2849
  sessionIdleTimeoutMinutes?: number | null | undefined;
@@ -2295,15 +2851,48 @@ declare const CreateAgentDto_base: import("../zod-class").ZodClass<{
2295
2851
  } | {
2296
2852
  type: "linear";
2297
2853
  credentialId: string;
2854
+ approval?: {
2855
+ mode: "global";
2856
+ } | {
2857
+ mode: "selected";
2858
+ tools: string[];
2859
+ } | undefined;
2298
2860
  settings?: {
2299
2861
  sessionIdleTimeoutMinutes?: number | null | undefined;
2300
2862
  } | undefined;
2301
2863
  } | {
2302
2864
  type: "discord";
2303
2865
  credentialId: string;
2866
+ approval?: {
2867
+ mode: "global";
2868
+ } | {
2869
+ mode: "selected";
2870
+ tools: string[];
2871
+ } | undefined;
2872
+ settings?: {
2873
+ sessionIdleTimeoutMinutes?: number | null | undefined;
2874
+ } | undefined;
2875
+ } | {
2876
+ type: "teams";
2877
+ credentialId: string;
2878
+ approval?: {
2879
+ mode: "global";
2880
+ } | {
2881
+ mode: "selected";
2882
+ tools: string[];
2883
+ } | undefined;
2304
2884
  settings?: {
2305
2885
  sessionIdleTimeoutMinutes?: number | null | undefined;
2886
+ displayName?: string | undefined;
2887
+ description?: string | undefined;
2888
+ teamChannels?: boolean | undefined;
2889
+ groupChats?: boolean | undefined;
2890
+ readAllChannelMessages?: boolean | undefined;
2891
+ readAllGroupMessages?: boolean | undefined;
2306
2892
  } | undefined;
2893
+ } | {
2894
+ type: "n8n_chat";
2895
+ credentialId?: "" | undefined;
2307
2896
  })[] | undefined;
2308
2897
  mcpServers?: {
2309
2898
  name: string;
@@ -2823,6 +3412,7 @@ export type AgentChatAttachmentPayload = z.infer<typeof agentChatAttachmentSchem
2823
3412
  declare const agentChatMessageSchema: z.ZodEffects<z.ZodObject<{
2824
3413
  message: z.ZodString;
2825
3414
  sessionId: z.ZodOptional<z.ZodString>;
3415
+ newSession: z.ZodOptional<z.ZodLiteral<true>>;
2826
3416
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
2827
3417
  fileName: z.ZodString;
2828
3418
  mimeType: z.ZodString;
@@ -2839,6 +3429,7 @@ declare const agentChatMessageSchema: z.ZodEffects<z.ZodObject<{
2839
3429
  }, "strip", z.ZodTypeAny, {
2840
3430
  message: string;
2841
3431
  sessionId?: string | undefined;
3432
+ newSession?: true | undefined;
2842
3433
  attachments?: {
2843
3434
  fileName: string;
2844
3435
  mimeType: string;
@@ -2847,6 +3438,7 @@ declare const agentChatMessageSchema: z.ZodEffects<z.ZodObject<{
2847
3438
  }, {
2848
3439
  message: string;
2849
3440
  sessionId?: string | undefined;
3441
+ newSession?: true | undefined;
2850
3442
  attachments?: {
2851
3443
  fileName: string;
2852
3444
  mimeType: string;
@@ -2855,6 +3447,7 @@ declare const agentChatMessageSchema: z.ZodEffects<z.ZodObject<{
2855
3447
  }>, {
2856
3448
  message: string;
2857
3449
  sessionId?: string | undefined;
3450
+ newSession?: true | undefined;
2858
3451
  attachments?: {
2859
3452
  fileName: string;
2860
3453
  mimeType: string;
@@ -2863,6 +3456,7 @@ declare const agentChatMessageSchema: z.ZodEffects<z.ZodObject<{
2863
3456
  }, {
2864
3457
  message: string;
2865
3458
  sessionId?: string | undefined;
3459
+ newSession?: true | undefined;
2866
3460
  attachments?: {
2867
3461
  fileName: string;
2868
3462
  mimeType: string;
@@ -2872,6 +3466,7 @@ declare const agentChatMessageSchema: z.ZodEffects<z.ZodObject<{
2872
3466
  declare const AgentChatMessageDto_base: import("../zod-class").ZodClass<{
2873
3467
  message: string;
2874
3468
  sessionId?: string | undefined;
3469
+ newSession?: true | undefined;
2875
3470
  attachments?: {
2876
3471
  fileName: string;
2877
3472
  mimeType: string;
@@ -2880,6 +3475,7 @@ declare const AgentChatMessageDto_base: import("../zod-class").ZodClass<{
2880
3475
  }, {
2881
3476
  message: z.ZodString;
2882
3477
  sessionId: z.ZodOptional<z.ZodString>;
3478
+ newSession: z.ZodOptional<z.ZodLiteral<true>>;
2883
3479
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
2884
3480
  fileName: z.ZodString;
2885
3481
  mimeType: z.ZodString;
@@ -2899,6 +3495,7 @@ export declare class AgentChatMessageDto extends AgentChatMessageDto_base {
2899
3495
  static safeParse(data: unknown): z.SafeParseReturnType<{
2900
3496
  message: string;
2901
3497
  sessionId?: string | undefined;
3498
+ newSession?: true | undefined;
2902
3499
  attachments?: {
2903
3500
  fileName: string;
2904
3501
  mimeType: string;
@@ -2907,6 +3504,7 @@ export declare class AgentChatMessageDto extends AgentChatMessageDto_base {
2907
3504
  }, {
2908
3505
  message: string;
2909
3506
  sessionId?: string | undefined;
3507
+ newSession?: true | undefined;
2910
3508
  attachments?: {
2911
3509
  fileName: string;
2912
3510
  mimeType: string;
@@ -2916,6 +3514,7 @@ export declare class AgentChatMessageDto extends AgentChatMessageDto_base {
2916
3514
  static parse(data: unknown): {
2917
3515
  message: string;
2918
3516
  sessionId?: string | undefined;
3517
+ newSession?: true | undefined;
2919
3518
  attachments?: {
2920
3519
  fileName: string;
2921
3520
  mimeType: string;
@@ -2923,6 +3522,13 @@ export declare class AgentChatMessageDto extends AgentChatMessageDto_base {
2923
3522
  }[] | undefined;
2924
3523
  };
2925
3524
  }
3525
+ declare const AgentChatQueueUpdateDto_base: import("../zod-class").ZodClass<{
3526
+ message: string;
3527
+ }, {
3528
+ message: z.ZodString;
3529
+ }>;
3530
+ export declare class AgentChatQueueUpdateDto extends AgentChatQueueUpdateDto_base {
3531
+ }
2926
3532
  declare const AgentChatResumeDto_base: import("../zod-class").ZodClass<{
2927
3533
  runId: string;
2928
3534
  toolCallId: string;
@@ -2940,6 +3546,12 @@ declare const AgentConnectIntegrationDto_base: import("../zod-class").ZodClass<{
2940
3546
  replaces?: {
2941
3547
  credentialId: string;
2942
3548
  } | undefined;
3549
+ approval?: {
3550
+ mode: "global";
3551
+ } | {
3552
+ mode: "selected";
3553
+ tools: string[];
3554
+ } | undefined;
2943
3555
  }, {
2944
3556
  type: z.ZodString;
2945
3557
  credentialId: z.ZodString;
@@ -2950,9 +3562,82 @@ declare const AgentConnectIntegrationDto_base: import("../zod-class").ZodClass<{
2950
3562
  }, {
2951
3563
  credentialId: string;
2952
3564
  }>>;
3565
+ approval: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
3566
+ mode: z.ZodLiteral<"global">;
3567
+ }, "strict", z.ZodTypeAny, {
3568
+ mode: "global";
3569
+ }, {
3570
+ mode: "global";
3571
+ }>, z.ZodObject<{
3572
+ mode: z.ZodLiteral<"selected">;
3573
+ tools: z.ZodArray<z.ZodString, "many">;
3574
+ }, "strict", z.ZodTypeAny, {
3575
+ mode: "selected";
3576
+ tools: string[];
3577
+ }, {
3578
+ mode: "selected";
3579
+ tools: string[];
3580
+ }>]>>;
2953
3581
  }>;
2954
3582
  export declare class AgentConnectIntegrationDto extends AgentConnectIntegrationDto_base {
2955
3583
  }
3584
+ declare const AgentTeamsPackageDto_base: import("../zod-class").ZodClass<{
3585
+ credentialId?: string | undefined;
3586
+ settings?: {
3587
+ sessionIdleTimeoutMinutes?: number | null | undefined;
3588
+ displayName?: string | undefined;
3589
+ description?: string | undefined;
3590
+ teamChannels?: boolean | undefined;
3591
+ groupChats?: boolean | undefined;
3592
+ readAllChannelMessages?: boolean | undefined;
3593
+ readAllGroupMessages?: boolean | undefined;
3594
+ } | undefined;
3595
+ }, {
3596
+ credentialId: z.ZodOptional<z.ZodString>;
3597
+ settings: z.ZodOptional<z.ZodEffects<z.ZodObject<{
3598
+ sessionIdleTimeoutMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3599
+ displayName: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
3600
+ description: z.ZodOptional<z.ZodString>;
3601
+ teamChannels: z.ZodOptional<z.ZodBoolean>;
3602
+ groupChats: z.ZodOptional<z.ZodBoolean>;
3603
+ readAllChannelMessages: z.ZodOptional<z.ZodBoolean>;
3604
+ readAllGroupMessages: z.ZodOptional<z.ZodBoolean>;
3605
+ }, "strict", z.ZodTypeAny, {
3606
+ sessionIdleTimeoutMinutes?: number | null | undefined;
3607
+ displayName?: string | undefined;
3608
+ description?: string | undefined;
3609
+ teamChannels?: boolean | undefined;
3610
+ groupChats?: boolean | undefined;
3611
+ readAllChannelMessages?: boolean | undefined;
3612
+ readAllGroupMessages?: boolean | undefined;
3613
+ }, {
3614
+ sessionIdleTimeoutMinutes?: number | null | undefined;
3615
+ displayName?: string | undefined;
3616
+ description?: string | undefined;
3617
+ teamChannels?: boolean | undefined;
3618
+ groupChats?: boolean | undefined;
3619
+ readAllChannelMessages?: boolean | undefined;
3620
+ readAllGroupMessages?: boolean | undefined;
3621
+ }>, {
3622
+ sessionIdleTimeoutMinutes?: number | null | undefined;
3623
+ displayName?: string | undefined;
3624
+ description?: string | undefined;
3625
+ teamChannels?: boolean | undefined;
3626
+ groupChats?: boolean | undefined;
3627
+ readAllChannelMessages?: boolean | undefined;
3628
+ readAllGroupMessages?: boolean | undefined;
3629
+ }, {
3630
+ sessionIdleTimeoutMinutes?: number | null | undefined;
3631
+ displayName?: string | undefined;
3632
+ description?: string | undefined;
3633
+ teamChannels?: boolean | undefined;
3634
+ groupChats?: boolean | undefined;
3635
+ readAllChannelMessages?: boolean | undefined;
3636
+ readAllGroupMessages?: boolean | undefined;
3637
+ }>>;
3638
+ }>;
3639
+ export declare class AgentTeamsPackageDto extends AgentTeamsPackageDto_base {
3640
+ }
2956
3641
  declare const AgentDisconnectIntegrationDto_base: import("../zod-class").ZodClass<{
2957
3642
  type: string;
2958
3643
  credentialId: string;