@n8n/api-types 1.25.1 → 1.26.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 (107) hide show
  1. package/dist/agent-builder-interactive.d.ts +27 -6
  2. package/dist/agent-builder-interactive.js +8 -2
  3. package/dist/agent-builder-interactive.js.map +1 -1
  4. package/dist/agent-builder-tool-node-types.d.ts +2 -0
  5. package/dist/agent-builder-tool-node-types.js +15 -0
  6. package/dist/agent-builder-tool-node-types.js.map +1 -0
  7. package/dist/agent-sse.d.ts +8 -0
  8. package/dist/agents/agent-integration.schema.d.ts +54 -1
  9. package/dist/agents/agent-integration.schema.js +18 -1
  10. package/dist/agents/agent-integration.schema.js.map +1 -1
  11. package/dist/agents/agent-json-config.schema.d.ts +635 -425
  12. package/dist/agents/agent-json-config.schema.js +39 -16
  13. package/dist/agents/agent-json-config.schema.js.map +1 -1
  14. package/dist/agents/dto.d.ts +23 -0
  15. package/dist/agents/dto.js +8 -1
  16. package/dist/agents/dto.js.map +1 -1
  17. package/dist/agents/index.d.ts +5 -1
  18. package/dist/agents/index.js +9 -1
  19. package/dist/agents/index.js.map +1 -1
  20. package/dist/agents/model-providers.d.ts +3 -0
  21. package/dist/agents/model-providers.js +24 -0
  22. package/dist/agents/model-providers.js.map +1 -0
  23. package/dist/agents/sanitize-agent-json-config.d.ts +1 -0
  24. package/dist/agents/sanitize-agent-json-config.js +154 -0
  25. package/dist/agents/sanitize-agent-json-config.js.map +1 -0
  26. package/dist/agents/sub-agent.schema.d.ts +27 -0
  27. package/dist/agents/sub-agent.schema.js +7 -0
  28. package/dist/agents/sub-agent.schema.js.map +1 -0
  29. package/dist/agents/types.d.ts +3 -0
  30. package/dist/agents/types.js.map +1 -1
  31. package/dist/api-keys.d.ts +16 -1
  32. package/dist/build.tsbuildinfo +1 -1
  33. package/dist/chat-hub.d.ts +25 -25
  34. package/dist/dto/ai/ai-ask-request.dto.d.ts +11 -11
  35. package/dist/dto/ai/ai-build-request.dto.d.ts +0 -12
  36. package/dist/dto/ai/ai-build-request.dto.js +0 -2
  37. package/dist/dto/ai/ai-build-request.dto.js.map +1 -1
  38. package/dist/dto/api-keys/list-api-keys-query.dto.d.ts +19 -0
  39. package/dist/dto/api-keys/list-api-keys-query.dto.js +25 -0
  40. package/dist/dto/api-keys/list-api-keys-query.dto.js.map +1 -0
  41. package/dist/dto/api-keys/update-api-key-request.dto.js +3 -1
  42. package/dist/dto/api-keys/update-api-key-request.dto.js.map +1 -1
  43. package/dist/dto/data-table/list-data-table-query.dto.d.ts +6 -6
  44. package/dist/dto/evaluations/evaluation-config.dto.d.ts +720 -100
  45. package/dist/dto/evaluations/evaluation-config.dto.js +37 -2
  46. package/dist/dto/evaluations/evaluation-config.dto.js.map +1 -1
  47. package/dist/dto/evaluations/evaluation-error-code.d.ts +1 -0
  48. package/dist/dto/evaluations/evaluation-error-code.js +1 -0
  49. package/dist/dto/evaluations/evaluation-error-code.js.map +1 -1
  50. package/dist/dto/folders/list-folder-query.dto.d.ts +3 -3
  51. package/dist/dto/index.d.ts +3 -0
  52. package/dist/dto/index.js +11 -3
  53. package/dist/dto/index.js.map +1 -1
  54. package/dist/dto/instance-ai/instance-ai-mcp-create-connection-request.dto.d.ts +11 -0
  55. package/dist/dto/instance-ai/instance-ai-mcp-create-connection-request.dto.js +12 -0
  56. package/dist/dto/instance-ai/instance-ai-mcp-create-connection-request.dto.js.map +1 -0
  57. package/dist/dto/instance-ai/instance-ai-mcp-update-connection-request.dto.d.ts +13 -0
  58. package/dist/dto/instance-ai/instance-ai-mcp-update-connection-request.dto.js +13 -0
  59. package/dist/dto/instance-ai/instance-ai-mcp-update-connection-request.dto.js.map +1 -0
  60. package/dist/dto/log-streaming/create-destination.dto.d.ts +96 -96
  61. package/dist/dto/oauth/oauth-client.dto.d.ts +4 -4
  62. package/dist/dto/oidc/config.dto.d.ts +3 -1
  63. package/dist/dto/oidc/config.dto.js +1 -0
  64. package/dist/dto/oidc/config.dto.js.map +1 -1
  65. package/dist/dto/owner/owner-setup-request.dto.d.ts +1 -1
  66. package/dist/dto/packages/import-package-request.dto.d.ts +7 -1
  67. package/dist/dto/packages/import-package-request.dto.js +10 -1
  68. package/dist/dto/packages/import-package-request.dto.js.map +1 -1
  69. package/dist/dto/project/update-project.dto.js +1 -1
  70. package/dist/dto/project/update-project.dto.js.map +1 -1
  71. package/dist/dto/roles/role-project-members-response.dto.d.ts +5 -5
  72. package/dist/dto/source-control/push-work-folder-request.dto.d.ts +6 -6
  73. package/dist/dto/user/user-update-request.dto.js +2 -2
  74. package/dist/dto/user/user-update-request.dto.js.map +1 -1
  75. package/dist/dto/user/users-list-filter.dto.d.ts +3 -3
  76. package/dist/dto/workflows/base-workflow.dto.d.ts +9 -9
  77. package/dist/dto/workflows/base-workflow.dto.js +4 -4
  78. package/dist/dto/workflows/base-workflow.dto.js.map +1 -1
  79. package/dist/dto/workflows/create-workflow.dto.d.ts +9 -9
  80. package/dist/dto/workflows/update-workflow.dto.d.ts +9 -9
  81. package/dist/frontend-settings.d.ts +4 -0
  82. package/dist/index.d.ts +3 -2
  83. package/dist/index.js +4 -3
  84. package/dist/index.js.map +1 -1
  85. package/dist/instance-registry-types.d.ts +22 -22
  86. package/dist/redaction-enforcement.d.ts +2 -16
  87. package/dist/redaction-enforcement.js +2 -12
  88. package/dist/redaction-enforcement.js.map +1 -1
  89. package/dist/schemas/breaking-changes.schema.d.ts +92 -92
  90. package/dist/schemas/credential-resolver.schema.d.ts +12 -12
  91. package/dist/schemas/credential-response.schema.d.ts +2 -2
  92. package/dist/schemas/data-table.schema.d.ts +2 -2
  93. package/dist/schemas/encryption-key.schema.d.ts +6 -6
  94. package/dist/schemas/evaluations.schema.d.ts +10 -0
  95. package/dist/schemas/evaluations.schema.js +2 -0
  96. package/dist/schemas/evaluations.schema.js.map +1 -1
  97. package/dist/schemas/instance-ai.schema.d.ts +332 -279
  98. package/dist/schemas/instance-ai.schema.js +12 -13
  99. package/dist/schemas/instance-ai.schema.js.map +1 -1
  100. package/dist/schemas/mcp-registry.schema.d.ts +29 -0
  101. package/dist/schemas/mcp-registry.schema.js +3 -0
  102. package/dist/schemas/mcp-registry.schema.js.map +1 -0
  103. package/dist/schemas/secrets-provider.schema.d.ts +12 -12
  104. package/dist/schemas/source-controlled-file.schema.d.ts +4 -4
  105. package/dist/schemas/usage.schema.d.ts +14 -14
  106. package/dist/schemas/user.schema.d.ts +18 -18
  107. package/package.json +7 -6
@@ -2,6 +2,7 @@ import { z } from 'zod';
2
2
  export declare const ASK_LLM_TOOL_NAME: "ask_llm";
3
3
  export declare const ASK_CREDENTIAL_TOOL_NAME: "ask_credential";
4
4
  export declare const ASK_QUESTION_TOOL_NAME: "ask_question";
5
+ export declare const APPROVAL_TOOL_NAME: "approval";
5
6
  export declare const interactiveToolNameSchema: z.ZodUnion<[z.ZodLiteral<"ask_llm">, z.ZodLiteral<"ask_credential">, z.ZodLiteral<"ask_question">]>;
6
7
  export type InteractiveToolName = z.infer<typeof interactiveToolNameSchema>;
7
8
  export declare const askLlmInputSchema: z.ZodObject<{
@@ -68,12 +69,12 @@ export declare const askQuestionOptionSchema: z.ZodObject<{
68
69
  value: z.ZodString;
69
70
  description: z.ZodOptional<z.ZodString>;
70
71
  }, "strip", z.ZodTypeAny, {
71
- value: string;
72
72
  label: string;
73
+ value: string;
73
74
  description?: string | undefined;
74
75
  }, {
75
- value: string;
76
76
  label: string;
77
+ value: string;
77
78
  description?: string | undefined;
78
79
  }>;
79
80
  export declare const askQuestionInputSchema: z.ZodObject<{
@@ -83,27 +84,27 @@ export declare const askQuestionInputSchema: z.ZodObject<{
83
84
  value: z.ZodString;
84
85
  description: z.ZodOptional<z.ZodString>;
85
86
  }, "strip", z.ZodTypeAny, {
86
- value: string;
87
87
  label: string;
88
+ value: string;
88
89
  description?: string | undefined;
89
90
  }, {
90
- value: string;
91
91
  label: string;
92
+ value: string;
92
93
  description?: string | undefined;
93
94
  }>, "many">;
94
95
  allowMultiple: z.ZodOptional<z.ZodBoolean>;
95
96
  }, "strip", z.ZodTypeAny, {
96
97
  options: {
97
- value: string;
98
98
  label: string;
99
+ value: string;
99
100
  description?: string | undefined;
100
101
  }[];
101
102
  question: string;
102
103
  allowMultiple?: boolean | undefined;
103
104
  }, {
104
105
  options: {
105
- value: string;
106
106
  label: string;
107
+ value: string;
107
108
  description?: string | undefined;
108
109
  }[];
109
110
  question: string;
@@ -119,6 +120,17 @@ export declare const askQuestionResumeSchema: z.ZodObject<{
119
120
  export type AskQuestionOption = z.infer<typeof askQuestionOptionSchema>;
120
121
  export type AskQuestionInput = z.infer<typeof askQuestionInputSchema>;
121
122
  export type AskQuestionResume = z.infer<typeof askQuestionResumeSchema>;
123
+ export declare const cancellationResumeSchema: z.ZodObject<{
124
+ _type: z.ZodLiteral<"agent.cancellation">;
125
+ message: z.ZodString;
126
+ }, "strip", z.ZodTypeAny, {
127
+ message: string;
128
+ _type: "agent.cancellation";
129
+ }, {
130
+ message: string;
131
+ _type: "agent.cancellation";
132
+ }>;
133
+ export type CancellationResumeData = z.infer<typeof cancellationResumeSchema>;
122
134
  export declare const interactiveResumeDataSchema: z.ZodUnion<[z.ZodObject<{
123
135
  provider: z.ZodString;
124
136
  model: z.ZodString;
@@ -155,5 +167,14 @@ export declare const interactiveResumeDataSchema: z.ZodUnion<[z.ZodObject<{
155
167
  values: string[];
156
168
  }, {
157
169
  values: string[];
170
+ }>, z.ZodObject<{
171
+ _type: z.ZodLiteral<"agent.cancellation">;
172
+ message: z.ZodString;
173
+ }, "strip", z.ZodTypeAny, {
174
+ message: string;
175
+ _type: "agent.cancellation";
176
+ }, {
177
+ message: string;
178
+ _type: "agent.cancellation";
158
179
  }>]>;
159
180
  export type InteractiveResumeData = z.infer<typeof interactiveResumeDataSchema>;
@@ -1,10 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.interactiveResumeDataSchema = exports.askQuestionResumeSchema = exports.askQuestionInputSchema = exports.askQuestionOptionSchema = exports.askCredentialResumeSchema = exports.askCredentialInputSchema = exports.askLlmResumeSchema = exports.askLlmInputSchema = exports.interactiveToolNameSchema = exports.ASK_QUESTION_TOOL_NAME = exports.ASK_CREDENTIAL_TOOL_NAME = exports.ASK_LLM_TOOL_NAME = void 0;
3
+ exports.interactiveResumeDataSchema = exports.cancellationResumeSchema = exports.askQuestionResumeSchema = exports.askQuestionInputSchema = exports.askQuestionOptionSchema = exports.askCredentialResumeSchema = exports.askCredentialInputSchema = exports.askLlmResumeSchema = exports.askLlmInputSchema = exports.interactiveToolNameSchema = exports.APPROVAL_TOOL_NAME = exports.ASK_QUESTION_TOOL_NAME = exports.ASK_CREDENTIAL_TOOL_NAME = exports.ASK_LLM_TOOL_NAME = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.ASK_LLM_TOOL_NAME = 'ask_llm';
6
6
  exports.ASK_CREDENTIAL_TOOL_NAME = 'ask_credential';
7
7
  exports.ASK_QUESTION_TOOL_NAME = 'ask_question';
8
+ exports.APPROVAL_TOOL_NAME = 'approval';
8
9
  exports.interactiveToolNameSchema = zod_1.z.union([
9
10
  zod_1.z.literal(exports.ASK_LLM_TOOL_NAME),
10
11
  zod_1.z.literal(exports.ASK_CREDENTIAL_TOOL_NAME),
@@ -47,7 +48,7 @@ exports.askQuestionInputSchema = zod_1.z.object({
47
48
  question: zod_1.z.string().describe('The question to display to the user'),
48
49
  options: zod_1.z
49
50
  .array(exports.askQuestionOptionSchema)
50
- .describe('Choices to present. Pass an empty array for an open-ended question (the card shows only a freeform input). With a single option the tool auto-resolves to that option without rendering a card.'),
51
+ .describe('Choices to present. Pass an empty array for an open-ended question (the card shows only a freeform input). With a single non-multiple option the tool auto-resolves to that option without rendering a card.'),
51
52
  allowMultiple: zod_1.z
52
53
  .boolean()
53
54
  .optional()
@@ -59,9 +60,14 @@ exports.askQuestionResumeSchema = zod_1.z.object({
59
60
  .min(1)
60
61
  .describe('Selected option values, or freeform text entered in the Other field.'),
61
62
  });
63
+ exports.cancellationResumeSchema = zod_1.z.object({
64
+ _type: zod_1.z.literal('agent.cancellation'),
65
+ message: zod_1.z.string().min(1),
66
+ });
62
67
  exports.interactiveResumeDataSchema = zod_1.z.union([
63
68
  exports.askLlmResumeSchema,
64
69
  exports.askCredentialResumeSchema,
65
70
  exports.askQuestionResumeSchema,
71
+ exports.cancellationResumeSchema,
66
72
  ]);
67
73
  //# sourceMappingURL=agent-builder-interactive.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"agent-builder-interactive.js","sourceRoot":"","sources":["../src/agent-builder-interactive.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAUX,QAAA,iBAAiB,GAAG,SAAkB,CAAC;AACvC,QAAA,wBAAwB,GAAG,gBAAyB,CAAC;AACrD,QAAA,sBAAsB,GAAG,cAAuB,CAAC;AAEjD,QAAA,yBAAyB,GAAG,OAAC,CAAC,KAAK,CAAC;IAChD,OAAC,CAAC,OAAO,CAAC,yBAAiB,CAAC;IAC5B,OAAC,CAAC,OAAO,CAAC,gCAAwB,CAAC;IACnC,OAAC,CAAC,OAAO,CAAC,8BAAsB,CAAC;CACjC,CAAC,CAAC;AAQU,QAAA,iBAAiB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,OAAO,EAAE,OAAC;SACR,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACR,+FAA+F,CAC/F;CACF,CAAC,CAAC;AAEU,QAAA,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;IACxB,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE;CAC1B,CAAC,CAAC;AASU,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,gE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AAE;SACV,QAAQ,CAAC,qEAAqE,CAAC;CACjF,CAAC,CAAC;AAEU,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,MAAM,EAAE,OAAC;SACP,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;SACjB,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,CAAC,sEAAsE,CAAC;CAClF,CAAC,CAAC;AAUU,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,KAAK,EAAE,OAAC,CAAC,OAAO,CAAC,oBAAoB,CAAC;IACtC,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAC1B,CAAC,CAAC;AAIU,QAAA,2BAA2B,GAAG,OAAC,CAAC,KAAK,CAAC;IAClD,0BAAkB;IAClB,iCAAyB;IACzB,+BAAuB;IACvB,gCAAwB;CACxB,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const AGENT_BUILDER_HIDDEN_AVAILABLE_TOOL_NODE_TYPES: readonly string[];
2
+ export declare const AGENT_BUILDER_AVAILABLE_AI_UTILITY_TOOL_NODE_TYPES: readonly ["toolCalculator", "toolThink", "@n8n/n8n-nodes-langchain.toolCalculator", "@n8n/n8n-nodes-langchain.toolThink"];
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AGENT_BUILDER_AVAILABLE_AI_UTILITY_TOOL_NODE_TYPES = exports.AGENT_BUILDER_HIDDEN_AVAILABLE_TOOL_NODE_TYPES = void 0;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ exports.AGENT_BUILDER_HIDDEN_AVAILABLE_TOOL_NODE_TYPES = [
6
+ ...n8n_workflow_1.AI_VENDOR_NODE_TYPES.map((nodeType) => `${nodeType}Tool`),
7
+ n8n_workflow_1.CHAT_TOOL_NODE_TYPE,
8
+ ];
9
+ exports.AGENT_BUILDER_AVAILABLE_AI_UTILITY_TOOL_NODE_TYPES = [
10
+ 'toolCalculator',
11
+ 'toolThink',
12
+ '@n8n/n8n-nodes-langchain.toolCalculator',
13
+ '@n8n/n8n-nodes-langchain.toolThink',
14
+ ];
15
+ //# sourceMappingURL=agent-builder-tool-node-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-builder-tool-node-types.js","sourceRoot":"","sources":["../src/agent-builder-tool-node-types.ts"],"names":[],"mappings":";;;AAAA,+CAAyE;AAE5D,QAAA,8CAA8C,GAAsB;IAChF,GAAG,mCAAoB,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,GAAG,QAAQ,MAAM,CAAC;IAC5D,kCAAmB;CACnB,CAAC;AAEW,QAAA,kDAAkD,GAAG;IACjE,gBAAgB;IAChB,WAAW;IACX,yCAAyC;IACzC,oCAAoC;CAC3B,CAAC"}
@@ -50,12 +50,20 @@ export type AgentSseEvent = {
50
50
  type: 'tool-execution-start';
51
51
  toolCallId: string;
52
52
  toolName: string;
53
+ startTime: number;
54
+ } | {
55
+ type: 'tool-execution-end';
56
+ toolCallId: string;
57
+ toolName: string;
58
+ isError: boolean;
59
+ endTime: number;
53
60
  } | {
54
61
  type: 'tool-result';
55
62
  toolCallId: string;
56
63
  toolName: string;
57
64
  output: unknown;
58
65
  isError?: boolean;
66
+ canceled?: boolean;
59
67
  } | {
60
68
  type: 'tool-call-suspended';
61
69
  payload: ToolSuspendedPayload;
@@ -87,4 +87,57 @@ export declare const AgentIntegrationSchema: z.ZodDiscriminatedUnion<"type", rea
87
87
  type: "linear";
88
88
  credentialId: string;
89
89
  }>]>;
90
- export type AgentIntegrationConfig = z.infer<typeof AgentIntegrationSchema>;
90
+ export declare const AgentIntegrationConfigSchema: z.ZodDiscriminatedUnion<"type", readonly [z.ZodObject<{
91
+ type: z.ZodLiteral<"telegram">;
92
+ credentialId: z.ZodString;
93
+ } & {
94
+ settings: z.ZodOptional<z.ZodEffects<z.ZodObject<{
95
+ accessMode: z.ZodEnum<["private", "public"]>;
96
+ allowedUsers: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodString, "many">>, string[], string[] | undefined>;
97
+ }, "strict", z.ZodTypeAny, {
98
+ accessMode: "private" | "public";
99
+ allowedUsers: string[];
100
+ }, {
101
+ accessMode: "private" | "public";
102
+ allowedUsers?: string[] | undefined;
103
+ }>, {
104
+ accessMode: "private" | "public";
105
+ allowedUsers: string[];
106
+ }, {
107
+ accessMode: "private" | "public";
108
+ allowedUsers?: string[] | undefined;
109
+ }>>;
110
+ }, "strip", z.ZodTypeAny, {
111
+ type: "telegram";
112
+ credentialId: string;
113
+ settings?: {
114
+ accessMode: "private" | "public";
115
+ allowedUsers: string[];
116
+ } | undefined;
117
+ }, {
118
+ type: "telegram";
119
+ credentialId: string;
120
+ settings?: {
121
+ accessMode: "private" | "public";
122
+ allowedUsers?: string[] | undefined;
123
+ } | undefined;
124
+ }>, z.ZodObject<{
125
+ type: z.ZodLiteral<"slack">;
126
+ credentialId: z.ZodString;
127
+ }, "strip", z.ZodTypeAny, {
128
+ type: "slack";
129
+ credentialId: string;
130
+ }, {
131
+ type: "slack";
132
+ credentialId: string;
133
+ }>, z.ZodObject<{
134
+ type: z.ZodLiteral<"linear">;
135
+ credentialId: z.ZodString;
136
+ }, "strip", z.ZodTypeAny, {
137
+ type: "linear";
138
+ credentialId: string;
139
+ }, {
140
+ type: "linear";
141
+ credentialId: string;
142
+ }>]>;
143
+ export type AgentIntegrationConfig = z.infer<typeof AgentIntegrationConfigSchema>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AgentIntegrationSchema = exports.AgentIntegrationSettingsSchema = exports.AgentTelegramSettingsSchema = exports.AGENT_TELEGRAM_ACCESS_MODES = void 0;
3
+ exports.AgentIntegrationConfigSchema = exports.AgentIntegrationSchema = exports.AgentIntegrationSettingsSchema = exports.AgentTelegramSettingsSchema = exports.AGENT_TELEGRAM_ACCESS_MODES = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const createCredIntegrationSchema = (typeName, settingsSchema) => zod_1.z.object({
6
6
  type: zod_1.z.literal(typeName),
@@ -11,6 +11,15 @@ const createSimpleIntegrationSchema = (typeName) => zod_1.z.object({
11
11
  type: zod_1.z.literal(typeName),
12
12
  credentialId: zod_1.z.string().min(1),
13
13
  });
14
+ const createDraftCredIntegrationSchema = (typeName, settingsSchema) => zod_1.z.object({
15
+ type: zod_1.z.literal(typeName),
16
+ credentialId: zod_1.z.string(),
17
+ settings: settingsSchema,
18
+ });
19
+ const createDraftSimpleIntegrationSchema = (typeName) => zod_1.z.object({
20
+ type: zod_1.z.literal(typeName),
21
+ credentialId: zod_1.z.string(),
22
+ });
14
23
  exports.AGENT_TELEGRAM_ACCESS_MODES = ['private', 'public'];
15
24
  exports.AgentTelegramSettingsSchema = zod_1.z
16
25
  .object({
@@ -41,5 +50,13 @@ const credentialIntegrations = [
41
50
  createSimpleIntegrationSchema('slack'),
42
51
  createSimpleIntegrationSchema('linear'),
43
52
  ];
53
+ const draftCredentialIntegrations = [
54
+ createDraftCredIntegrationSchema('telegram', exports.AgentTelegramSettingsSchema).extend({
55
+ settings: exports.AgentTelegramSettingsSchema.optional(),
56
+ }),
57
+ createDraftSimpleIntegrationSchema('slack'),
58
+ createDraftSimpleIntegrationSchema('linear'),
59
+ ];
44
60
  exports.AgentIntegrationSchema = zod_1.z.discriminatedUnion('type', credentialIntegrations);
61
+ exports.AgentIntegrationConfigSchema = zod_1.z.discriminatedUnion('type', draftCredentialIntegrations);
45
62
  //# sourceMappingURL=agent-integration.schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"agent-integration.schema.js","sourceRoot":"","sources":["../../src/agents/agent-integration.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,MAAM,2BAA2B,GAAG,CAInC,QAAe,EACf,cAAwB,EACvB,EAAE,CACH,OAAC,CAAC,MAAM,CAAC;IACR,IAAI,EAAE,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