@n8n/api-types 1.20.0 → 1.21.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.
- package/dist/agent-builder-interactive.d.ts +159 -0
- package/dist/agent-builder-interactive.js +67 -0
- package/dist/agent-builder-interactive.js.map +1 -0
- package/dist/agent-sse.d.ts +83 -0
- package/dist/agent-sse.js +3 -0
- package/dist/agent-sse.js.map +1 -0
- package/dist/agents.d.ts +258 -0
- package/dist/agents.js +52 -0
- package/dist/agents.js.map +1 -0
- package/dist/build.tsbuildinfo +1 -1
- package/dist/chat-hub.d.ts +18 -18
- package/dist/dto/agents/agent-build-resume.dto.d.ts +61 -0
- package/dist/dto/agents/agent-build-resume.dto.js +14 -0
- package/dist/dto/agents/agent-build-resume.dto.js.map +1 -0
- package/dist/dto/agents/agent-chat-message.dto.d.ts +11 -0
- package/dist/dto/agents/agent-chat-message.dto.js +12 -0
- package/dist/dto/agents/agent-chat-message.dto.js.map +1 -0
- package/dist/dto/agents/agent-integration.dto.d.ts +11 -0
- package/dist/dto/agents/agent-integration.dto.js +12 -0
- package/dist/dto/agents/agent-integration.dto.js.map +1 -0
- package/dist/dto/agents/create-agent-skill.dto.d.ts +27 -0
- package/dist/dto/agents/create-agent-skill.dto.js +17 -0
- package/dist/dto/agents/create-agent-skill.dto.js.map +1 -0
- package/dist/dto/agents/create-agent.dto.d.ts +9 -0
- package/dist/dto/agents/create-agent.dto.js +11 -0
- package/dist/dto/agents/create-agent.dto.js.map +1 -0
- package/dist/dto/agents/update-agent-config.dto.d.ts +9 -0
- package/dist/dto/agents/update-agent-config.dto.js +11 -0
- package/dist/dto/agents/update-agent-config.dto.js.map +1 -0
- package/dist/dto/agents/update-agent-schedule.dto.d.ts +11 -0
- package/dist/dto/agents/update-agent-schedule.dto.js +12 -0
- package/dist/dto/agents/update-agent-schedule.dto.js.map +1 -0
- package/dist/dto/agents/update-agent-skill.dto.d.ts +12 -0
- package/dist/dto/agents/update-agent-skill.dto.js +13 -0
- package/dist/dto/agents/update-agent-skill.dto.js.map +1 -0
- package/dist/dto/agents/update-agent.dto.d.ts +13 -0
- package/dist/dto/agents/update-agent.dto.js +13 -0
- package/dist/dto/agents/update-agent.dto.js.map +1 -0
- package/dist/dto/ai/ai-build-request.dto.d.ts +6 -6
- package/dist/dto/encryption/encryption-key-response.dto.d.ts +2 -8
- package/dist/dto/encryption/list-encryption-keys-query.dto.d.ts +14 -2
- package/dist/dto/encryption/list-encryption-keys-query.dto.js +19 -2
- package/dist/dto/encryption/list-encryption-keys-query.dto.js.map +1 -1
- package/dist/dto/evaluations/evaluation-config.dto.d.ts +845 -0
- package/dist/dto/evaluations/evaluation-config.dto.js +96 -0
- package/dist/dto/evaluations/evaluation-config.dto.js.map +1 -0
- package/dist/dto/evaluations/evaluation-error-code.d.ts +38 -0
- package/dist/dto/evaluations/evaluation-error-code.js +29 -0
- package/dist/dto/evaluations/evaluation-error-code.js.map +1 -0
- package/dist/dto/evaluations/index.d.ts +2 -0
- package/dist/dto/evaluations/index.js +19 -0
- package/dist/dto/evaluations/index.js.map +1 -0
- package/dist/dto/folders/list-folder-query.dto.d.ts +2 -2
- package/dist/dto/index.d.ts +12 -2
- package/dist/dto/index.js +38 -1
- package/dist/dto/index.js.map +1 -1
- package/dist/dto/instance-ai/instance-ai-confirm-request.dto.d.ts +9 -7
- package/dist/dto/instance-ai/instance-ai-confirm-request.dto.js +1 -1
- package/dist/dto/instance-ai/instance-ai-confirm-request.dto.js.map +1 -1
- package/dist/dto/project/update-project.dto.d.ts +2 -2
- package/dist/dto/source-control/push-work-folder-request.dto.d.ts +3 -3
- package/dist/dto/workflow-history/update-workflow-history-version.dto.d.ts +1 -1
- package/dist/dto/workflows/activate-workflow.dto.d.ts +1 -1
- package/dist/dto/workflows/create-workflow.dto.d.ts +2 -2
- package/dist/dto/workflows/update-workflow.dto.d.ts +2 -2
- package/dist/frontend-settings.d.ts +5 -1
- package/dist/index.d.ts +7 -3
- package/dist/index.js +27 -3
- package/dist/index.js.map +1 -1
- package/dist/quick-connect.d.ts +6 -0
- package/dist/schemas/agent-run-reducer.js +1 -0
- package/dist/schemas/agent-run-reducer.js.map +1 -1
- package/dist/schemas/breaking-changes.schema.d.ts +48 -48
- package/dist/schemas/data-table.schema.js +4 -1
- package/dist/schemas/data-table.schema.js.map +1 -1
- package/dist/schemas/encryption-key.schema.d.ts +70 -0
- package/dist/schemas/encryption-key.schema.js +17 -0
- package/dist/schemas/encryption-key.schema.js.map +1 -0
- package/dist/schemas/instance-ai.schema.d.ts +336 -145
- package/dist/schemas/instance-ai.schema.js +80 -8
- package/dist/schemas/instance-ai.schema.js.map +1 -1
- package/dist/schemas/secrets-provider.schema.d.ts +10 -10
- package/dist/schemas/source-controlled-file.schema.d.ts +2 -2
- package/dist/schemas/user.schema.d.ts +12 -12
- package/dist/schemas/workflow-execution-status.schema.d.ts +4 -4
- package/package.json +8 -8
package/dist/chat-hub.d.ts
CHANGED
|
@@ -369,9 +369,9 @@ export type ChatHubConversationModel = z.infer<typeof chatHubConversationModelSc
|
|
|
369
369
|
export declare const chatModelsRequestSchema: z.ZodObject<{
|
|
370
370
|
credentials: z.ZodRecord<z.ZodEnum<["openai", "anthropic", "google", "azureOpenAi", "azureEntraId", "ollama", "awsBedrock", "vercelAiGateway", "xAiGrok", "groq", "openRouter", "deepSeek", "cohere", "mistralCloud", "n8n", "custom-agent"]>, z.ZodNullable<z.ZodString>>;
|
|
371
371
|
}, "strip", z.ZodTypeAny, {
|
|
372
|
-
credentials: Partial<Record<"
|
|
372
|
+
credentials: Partial<Record<"n8n" | "anthropic" | "openai" | "google" | "azureOpenAi" | "azureEntraId" | "ollama" | "awsBedrock" | "vercelAiGateway" | "xAiGrok" | "groq" | "openRouter" | "deepSeek" | "cohere" | "mistralCloud" | "custom-agent", string | null>>;
|
|
373
373
|
}, {
|
|
374
|
-
credentials: Partial<Record<"
|
|
374
|
+
credentials: Partial<Record<"n8n" | "anthropic" | "openai" | "google" | "azureOpenAi" | "azureEntraId" | "ollama" | "awsBedrock" | "vercelAiGateway" | "xAiGrok" | "groq" | "openRouter" | "deepSeek" | "cohere" | "mistralCloud" | "custom-agent", string | null>>;
|
|
375
375
|
}>;
|
|
376
376
|
export type ChatModelsRequest = z.infer<typeof chatModelsRequestSchema>;
|
|
377
377
|
export interface ChatModelMetadataDto {
|
|
@@ -1189,7 +1189,6 @@ declare const ChatHubManualEditMessageRequest_base: import("./zod-class").ZodCla
|
|
|
1189
1189
|
export declare class ChatHubManualEditMessageRequest extends ChatHubManualEditMessageRequest_base {
|
|
1190
1190
|
}
|
|
1191
1191
|
declare const ChatHubUpdateConversationRequest_base: import("./zod-class").ZodClass<{
|
|
1192
|
-
title?: string | undefined;
|
|
1193
1192
|
credentialId?: string | undefined;
|
|
1194
1193
|
agent?: {
|
|
1195
1194
|
model: {
|
|
@@ -1243,6 +1242,7 @@ declare const ChatHubUpdateConversationRequest_base: import("./zod-class").ZodCl
|
|
|
1243
1242
|
};
|
|
1244
1243
|
name: string;
|
|
1245
1244
|
} | undefined;
|
|
1245
|
+
title?: string | undefined;
|
|
1246
1246
|
toolIds?: string[] | undefined;
|
|
1247
1247
|
}, {
|
|
1248
1248
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -1687,6 +1687,9 @@ export interface ChatHubAgentDto {
|
|
|
1687
1687
|
updatedAt: string;
|
|
1688
1688
|
}
|
|
1689
1689
|
declare const ChatHubCreateAgentRequest_base: import("./zod-class").ZodClass<{
|
|
1690
|
+
provider: "anthropic" | "openai" | "google" | "azureOpenAi" | "azureEntraId" | "ollama" | "awsBedrock" | "vercelAiGateway" | "xAiGrok" | "groq" | "openRouter" | "deepSeek" | "cohere" | "mistralCloud";
|
|
1691
|
+
model: string;
|
|
1692
|
+
credentialId: string;
|
|
1690
1693
|
icon: {
|
|
1691
1694
|
value: string;
|
|
1692
1695
|
type: "icon";
|
|
@@ -1694,10 +1697,7 @@ declare const ChatHubCreateAgentRequest_base: import("./zod-class").ZodClass<{
|
|
|
1694
1697
|
value: string;
|
|
1695
1698
|
type: "emoji";
|
|
1696
1699
|
};
|
|
1697
|
-
provider: "openai" | "anthropic" | "google" | "azureOpenAi" | "azureEntraId" | "ollama" | "awsBedrock" | "vercelAiGateway" | "xAiGrok" | "groq" | "openRouter" | "deepSeek" | "cohere" | "mistralCloud";
|
|
1698
|
-
model: string;
|
|
1699
1700
|
name: string;
|
|
1700
|
-
credentialId: string;
|
|
1701
1701
|
toolIds: string[];
|
|
1702
1702
|
systemPrompt: string;
|
|
1703
1703
|
description?: string | undefined;
|
|
@@ -1782,6 +1782,10 @@ declare const ChatHubCreateAgentRequest_base: import("./zod-class").ZodClass<{
|
|
|
1782
1782
|
export declare class ChatHubCreateAgentRequest extends ChatHubCreateAgentRequest_base {
|
|
1783
1783
|
}
|
|
1784
1784
|
declare const ChatHubUpdateAgentRequest_base: import("./zod-class").ZodClass<{
|
|
1785
|
+
provider?: "anthropic" | "openai" | "google" | "azureOpenAi" | "azureEntraId" | "ollama" | "awsBedrock" | "vercelAiGateway" | "xAiGrok" | "groq" | "openRouter" | "deepSeek" | "cohere" | "mistralCloud" | undefined;
|
|
1786
|
+
model?: string | undefined;
|
|
1787
|
+
credentialId?: string | undefined;
|
|
1788
|
+
description?: string | undefined;
|
|
1785
1789
|
icon?: {
|
|
1786
1790
|
value: string;
|
|
1787
1791
|
type: "icon";
|
|
@@ -1789,12 +1793,8 @@ declare const ChatHubUpdateAgentRequest_base: import("./zod-class").ZodClass<{
|
|
|
1789
1793
|
value: string;
|
|
1790
1794
|
type: "emoji";
|
|
1791
1795
|
} | undefined;
|
|
1792
|
-
provider?: "openai" | "anthropic" | "google" | "azureOpenAi" | "azureEntraId" | "ollama" | "awsBedrock" | "vercelAiGateway" | "xAiGrok" | "groq" | "openRouter" | "deepSeek" | "cohere" | "mistralCloud" | undefined;
|
|
1793
|
-
model?: string | undefined;
|
|
1794
1796
|
name?: string | undefined;
|
|
1795
|
-
credentialId?: string | undefined;
|
|
1796
1797
|
toolIds?: string[] | undefined;
|
|
1797
|
-
description?: string | undefined;
|
|
1798
1798
|
systemPrompt?: string | undefined;
|
|
1799
1799
|
suggestedPrompts?: {
|
|
1800
1800
|
text: string;
|
|
@@ -1909,7 +1909,7 @@ declare const chatProviderSettingsSchema: z.ZodObject<{
|
|
|
1909
1909
|
createdAt: z.ZodString;
|
|
1910
1910
|
updatedAt: z.ZodNullable<z.ZodString>;
|
|
1911
1911
|
}, "strip", z.ZodTypeAny, {
|
|
1912
|
-
provider: "
|
|
1912
|
+
provider: "anthropic" | "openai" | "google" | "azureOpenAi" | "azureEntraId" | "ollama" | "awsBedrock" | "vercelAiGateway" | "xAiGrok" | "groq" | "openRouter" | "deepSeek" | "cohere" | "mistralCloud";
|
|
1913
1913
|
credentialId: string | null;
|
|
1914
1914
|
allowedModels: {
|
|
1915
1915
|
model: string;
|
|
@@ -1922,7 +1922,7 @@ declare const chatProviderSettingsSchema: z.ZodObject<{
|
|
|
1922
1922
|
responsesApiEnabled?: boolean | undefined;
|
|
1923
1923
|
contextWindowLength?: number | undefined;
|
|
1924
1924
|
}, {
|
|
1925
|
-
provider: "
|
|
1925
|
+
provider: "anthropic" | "openai" | "google" | "azureOpenAi" | "azureEntraId" | "ollama" | "awsBedrock" | "vercelAiGateway" | "xAiGrok" | "groq" | "openRouter" | "deepSeek" | "cohere" | "mistralCloud";
|
|
1926
1926
|
credentialId: string | null;
|
|
1927
1927
|
allowedModels: {
|
|
1928
1928
|
model: string;
|
|
@@ -1938,7 +1938,7 @@ declare const chatProviderSettingsSchema: z.ZodObject<{
|
|
|
1938
1938
|
export type ChatProviderSettingsDto = z.infer<typeof chatProviderSettingsSchema>;
|
|
1939
1939
|
declare const UpdateChatSettingsRequest_base: import("./zod-class").ZodClass<{
|
|
1940
1940
|
payload: {
|
|
1941
|
-
provider: "
|
|
1941
|
+
provider: "anthropic" | "openai" | "google" | "azureOpenAi" | "azureEntraId" | "ollama" | "awsBedrock" | "vercelAiGateway" | "xAiGrok" | "groq" | "openRouter" | "deepSeek" | "cohere" | "mistralCloud";
|
|
1942
1942
|
credentialId: string | null;
|
|
1943
1943
|
allowedModels: {
|
|
1944
1944
|
model: string;
|
|
@@ -1974,7 +1974,7 @@ declare const UpdateChatSettingsRequest_base: import("./zod-class").ZodClass<{
|
|
|
1974
1974
|
createdAt: z.ZodString;
|
|
1975
1975
|
updatedAt: z.ZodNullable<z.ZodString>;
|
|
1976
1976
|
}, "strip", z.ZodTypeAny, {
|
|
1977
|
-
provider: "
|
|
1977
|
+
provider: "anthropic" | "openai" | "google" | "azureOpenAi" | "azureEntraId" | "ollama" | "awsBedrock" | "vercelAiGateway" | "xAiGrok" | "groq" | "openRouter" | "deepSeek" | "cohere" | "mistralCloud";
|
|
1978
1978
|
credentialId: string | null;
|
|
1979
1979
|
allowedModels: {
|
|
1980
1980
|
model: string;
|
|
@@ -1987,7 +1987,7 @@ declare const UpdateChatSettingsRequest_base: import("./zod-class").ZodClass<{
|
|
|
1987
1987
|
responsesApiEnabled?: boolean | undefined;
|
|
1988
1988
|
contextWindowLength?: number | undefined;
|
|
1989
1989
|
}, {
|
|
1990
|
-
provider: "
|
|
1990
|
+
provider: "anthropic" | "openai" | "google" | "azureOpenAi" | "azureEntraId" | "ollama" | "awsBedrock" | "vercelAiGateway" | "xAiGrok" | "groq" | "openRouter" | "deepSeek" | "cohere" | "mistralCloud";
|
|
1991
1991
|
credentialId: string | null;
|
|
1992
1992
|
allowedModels: {
|
|
1993
1993
|
model: string;
|
|
@@ -2009,7 +2009,7 @@ declare const ChatHubSemanticSearchSettings_base: import("./zod-class").ZodClass
|
|
|
2009
2009
|
credentialId: string | null;
|
|
2010
2010
|
};
|
|
2011
2011
|
embeddingModel: {
|
|
2012
|
-
provider: "
|
|
2012
|
+
provider: "anthropic" | "openai" | "google" | "azureOpenAi" | "azureEntraId" | "ollama" | "awsBedrock" | "vercelAiGateway" | "xAiGrok" | "groq" | "openRouter" | "deepSeek" | "cohere" | "mistralCloud";
|
|
2013
2013
|
credentialId: string | null;
|
|
2014
2014
|
};
|
|
2015
2015
|
}, {
|
|
@@ -2027,10 +2027,10 @@ declare const ChatHubSemanticSearchSettings_base: import("./zod-class").ZodClass
|
|
|
2027
2027
|
provider: z.ZodEnum<["openai", "anthropic", "google", "azureOpenAi", "azureEntraId", "ollama", "awsBedrock", "vercelAiGateway", "xAiGrok", "groq", "openRouter", "deepSeek", "cohere", "mistralCloud"]>;
|
|
2028
2028
|
credentialId: z.ZodNullable<z.ZodString>;
|
|
2029
2029
|
}, "strip", z.ZodTypeAny, {
|
|
2030
|
-
provider: "
|
|
2030
|
+
provider: "anthropic" | "openai" | "google" | "azureOpenAi" | "azureEntraId" | "ollama" | "awsBedrock" | "vercelAiGateway" | "xAiGrok" | "groq" | "openRouter" | "deepSeek" | "cohere" | "mistralCloud";
|
|
2031
2031
|
credentialId: string | null;
|
|
2032
2032
|
}, {
|
|
2033
|
-
provider: "
|
|
2033
|
+
provider: "anthropic" | "openai" | "google" | "azureOpenAi" | "azureEntraId" | "ollama" | "awsBedrock" | "vercelAiGateway" | "xAiGrok" | "groq" | "openRouter" | "deepSeek" | "cohere" | "mistralCloud";
|
|
2034
2034
|
credentialId: string | null;
|
|
2035
2035
|
}>;
|
|
2036
2036
|
}>;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare const AgentBuildResumeDto_base: import("../../zod-class").ZodClass<{
|
|
3
|
+
resumeData: {
|
|
4
|
+
provider: string;
|
|
5
|
+
model: string;
|
|
6
|
+
credentialId: string;
|
|
7
|
+
credentialName: string;
|
|
8
|
+
} | {
|
|
9
|
+
credentialId: string;
|
|
10
|
+
credentialName: string;
|
|
11
|
+
} | {
|
|
12
|
+
skipped: true;
|
|
13
|
+
} | {
|
|
14
|
+
values: string[];
|
|
15
|
+
};
|
|
16
|
+
toolCallId: string;
|
|
17
|
+
runId: string;
|
|
18
|
+
}, {
|
|
19
|
+
runId: z.ZodString;
|
|
20
|
+
toolCallId: z.ZodString;
|
|
21
|
+
resumeData: z.ZodUnion<[z.ZodObject<{
|
|
22
|
+
provider: z.ZodString;
|
|
23
|
+
model: z.ZodString;
|
|
24
|
+
credentialId: z.ZodString;
|
|
25
|
+
credentialName: z.ZodString;
|
|
26
|
+
}, "strip", z.ZodTypeAny, {
|
|
27
|
+
provider: string;
|
|
28
|
+
model: string;
|
|
29
|
+
credentialId: string;
|
|
30
|
+
credentialName: string;
|
|
31
|
+
}, {
|
|
32
|
+
provider: string;
|
|
33
|
+
model: string;
|
|
34
|
+
credentialId: string;
|
|
35
|
+
credentialName: string;
|
|
36
|
+
}>, z.ZodUnion<[z.ZodObject<{
|
|
37
|
+
credentialId: z.ZodString;
|
|
38
|
+
credentialName: z.ZodString;
|
|
39
|
+
}, "strip", z.ZodTypeAny, {
|
|
40
|
+
credentialId: string;
|
|
41
|
+
credentialName: string;
|
|
42
|
+
}, {
|
|
43
|
+
credentialId: string;
|
|
44
|
+
credentialName: string;
|
|
45
|
+
}>, z.ZodObject<{
|
|
46
|
+
skipped: z.ZodLiteral<true>;
|
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
|
48
|
+
skipped: true;
|
|
49
|
+
}, {
|
|
50
|
+
skipped: true;
|
|
51
|
+
}>]>, z.ZodObject<{
|
|
52
|
+
values: z.ZodArray<z.ZodString, "many">;
|
|
53
|
+
}, "strip", z.ZodTypeAny, {
|
|
54
|
+
values: string[];
|
|
55
|
+
}, {
|
|
56
|
+
values: string[];
|
|
57
|
+
}>]>;
|
|
58
|
+
}>;
|
|
59
|
+
export declare class AgentBuildResumeDto extends AgentBuildResumeDto_base {
|
|
60
|
+
}
|
|
61
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AgentBuildResumeDto = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const agent_builder_interactive_1 = require("../../agent-builder-interactive");
|
|
6
|
+
const zod_class_1 = require("../../zod-class");
|
|
7
|
+
class AgentBuildResumeDto extends zod_class_1.Z.class({
|
|
8
|
+
runId: zod_1.z.string().min(1),
|
|
9
|
+
toolCallId: zod_1.z.string().min(1),
|
|
10
|
+
resumeData: agent_builder_interactive_1.interactiveResumeDataSchema,
|
|
11
|
+
}) {
|
|
12
|
+
}
|
|
13
|
+
exports.AgentBuildResumeDto = AgentBuildResumeDto;
|
|
14
|
+
//# sourceMappingURL=agent-build-resume.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-build-resume.dto.js","sourceRoot":"","sources":["../../../src/dto/agents/agent-build-resume.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,+EAA8E;AAC9E,+CAAoC;AASpC,MAAa,mBAAoB,SAAQ,aAAC,CAAC,KAAK,CAAC;IAChD,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACxB,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC7B,UAAU,EAAE,uDAA2B;CACvC,CAAC;CAAG;AAJL,kDAIK"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare const AgentChatMessageDto_base: import("../../zod-class").ZodClass<{
|
|
3
|
+
message: string;
|
|
4
|
+
sessionId?: string | undefined;
|
|
5
|
+
}, {
|
|
6
|
+
message: z.ZodString;
|
|
7
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
8
|
+
}>;
|
|
9
|
+
export declare class AgentChatMessageDto extends AgentChatMessageDto_base {
|
|
10
|
+
}
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AgentChatMessageDto = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const zod_class_1 = require("../../zod-class");
|
|
6
|
+
class AgentChatMessageDto extends zod_class_1.Z.class({
|
|
7
|
+
message: zod_1.z.string().min(1),
|
|
8
|
+
sessionId: zod_1.z.string().min(1).optional(),
|
|
9
|
+
}) {
|
|
10
|
+
}
|
|
11
|
+
exports.AgentChatMessageDto = AgentChatMessageDto;
|
|
12
|
+
//# sourceMappingURL=agent-chat-message.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-chat-message.dto.js","sourceRoot":"","sources":["../../../src/dto/agents/agent-chat-message.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,+CAAoC;AAEpC,MAAa,mBAAoB,SAAQ,aAAC,CAAC,KAAK,CAAC;IAChD,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC1B,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;CACvC,CAAC;CAAG;AAHL,kDAGK"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare const AgentIntegrationDto_base: import("../../zod-class").ZodClass<{
|
|
3
|
+
type: string;
|
|
4
|
+
credentialId: string;
|
|
5
|
+
}, {
|
|
6
|
+
type: z.ZodString;
|
|
7
|
+
credentialId: z.ZodString;
|
|
8
|
+
}>;
|
|
9
|
+
export declare class AgentIntegrationDto extends AgentIntegrationDto_base {
|
|
10
|
+
}
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AgentIntegrationDto = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const zod_class_1 = require("../../zod-class");
|
|
6
|
+
class AgentIntegrationDto extends zod_class_1.Z.class({
|
|
7
|
+
type: zod_1.z.string().min(1),
|
|
8
|
+
credentialId: zod_1.z.string().min(1),
|
|
9
|
+
}) {
|
|
10
|
+
}
|
|
11
|
+
exports.AgentIntegrationDto = AgentIntegrationDto;
|
|
12
|
+
//# sourceMappingURL=agent-integration.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-integration.dto.js","sourceRoot":"","sources":["../../../src/dto/agents/agent-integration.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,+CAAoC;AAEpC,MAAa,mBAAoB,SAAQ,aAAC,CAAC,KAAK,CAAC;IAChD,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACvB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAC/B,CAAC;CAAG;AAHL,kDAGK"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const AGENT_SKILL_INSTRUCTIONS_MAX_LENGTH = 10000;
|
|
3
|
+
export declare const agentSkillSchema: z.ZodObject<{
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
description: z.ZodString;
|
|
6
|
+
instructions: z.ZodString;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
description: string;
|
|
9
|
+
name: string;
|
|
10
|
+
instructions: string;
|
|
11
|
+
}, {
|
|
12
|
+
description: string;
|
|
13
|
+
name: string;
|
|
14
|
+
instructions: string;
|
|
15
|
+
}>;
|
|
16
|
+
declare const CreateAgentSkillDto_base: import("../../zod-class").ZodClass<{
|
|
17
|
+
description: string;
|
|
18
|
+
name: string;
|
|
19
|
+
instructions: string;
|
|
20
|
+
}, {
|
|
21
|
+
name: z.ZodString;
|
|
22
|
+
description: z.ZodString;
|
|
23
|
+
instructions: z.ZodString;
|
|
24
|
+
}>;
|
|
25
|
+
export declare class CreateAgentSkillDto extends CreateAgentSkillDto_base {
|
|
26
|
+
}
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateAgentSkillDto = exports.agentSkillSchema = exports.AGENT_SKILL_INSTRUCTIONS_MAX_LENGTH = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const zod_class_1 = require("../../zod-class");
|
|
6
|
+
exports.AGENT_SKILL_INSTRUCTIONS_MAX_LENGTH = 10_000;
|
|
7
|
+
exports.agentSkillSchema = zod_1.z.object({
|
|
8
|
+
name: zod_1.z.string().min(1).max(128),
|
|
9
|
+
description: zod_1.z.string().min(1).max(512),
|
|
10
|
+
instructions: zod_1.z.string().min(1).max(exports.AGENT_SKILL_INSTRUCTIONS_MAX_LENGTH),
|
|
11
|
+
});
|
|
12
|
+
class CreateAgentSkillDto extends zod_class_1.Z.class({
|
|
13
|
+
...exports.agentSkillSchema.shape,
|
|
14
|
+
}) {
|
|
15
|
+
}
|
|
16
|
+
exports.CreateAgentSkillDto = CreateAgentSkillDto;
|
|
17
|
+
//# sourceMappingURL=create-agent-skill.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-agent-skill.dto.js","sourceRoot":"","sources":["../../../src/dto/agents/create-agent-skill.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,+CAAoC;AAIvB,QAAA,mCAAmC,GAAG,MAAM,CAAC;AAE7C,QAAA,gBAAgB,GAAG,OAAC,CAAC,MAAM,CAAC;IACxC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IAChC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IACvC,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,2CAAmC,CAAC;CACxE,CAAC,CAAC;AAEH,MAAa,mBAAoB,SAAQ,aAAC,CAAC,KAAK,CAAC;IAChD,GAAG,wBAAgB,CAAC,KAAK;CACzB,CAAC;CAAG;AAFL,kDAEK"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateAgentDto = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const zod_class_1 = require("../../zod-class");
|
|
6
|
+
class CreateAgentDto extends zod_class_1.Z.class({
|
|
7
|
+
name: zod_1.z.string().min(1),
|
|
8
|
+
}) {
|
|
9
|
+
}
|
|
10
|
+
exports.CreateAgentDto = CreateAgentDto;
|
|
11
|
+
//# sourceMappingURL=create-agent.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-agent.dto.js","sourceRoot":"","sources":["../../../src/dto/agents/create-agent.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,+CAAoC;AAEpC,MAAa,cAAe,SAAQ,aAAC,CAAC,KAAK,CAAC;IAC3C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CACvB,CAAC;CAAG;AAFL,wCAEK"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare const UpdateAgentConfigDto_base: import("../../zod-class").ZodClass<{
|
|
3
|
+
config: Record<string, unknown>;
|
|
4
|
+
}, {
|
|
5
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
6
|
+
}>;
|
|
7
|
+
export declare class UpdateAgentConfigDto extends UpdateAgentConfigDto_base {
|
|
8
|
+
}
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateAgentConfigDto = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const zod_class_1 = require("../../zod-class");
|
|
6
|
+
class UpdateAgentConfigDto extends zod_class_1.Z.class({
|
|
7
|
+
config: zod_1.z.record(zod_1.z.unknown()),
|
|
8
|
+
}) {
|
|
9
|
+
}
|
|
10
|
+
exports.UpdateAgentConfigDto = UpdateAgentConfigDto;
|
|
11
|
+
//# sourceMappingURL=update-agent-config.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-agent-config.dto.js","sourceRoot":"","sources":["../../../src/dto/agents/update-agent-config.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,+CAAoC;AAEpC,MAAa,oBAAqB,SAAQ,aAAC,CAAC,KAAK,CAAC;IACjD,MAAM,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC;CAC7B,CAAC;CAAG;AAFL,oDAEK"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare const UpdateAgentScheduleDto_base: import("../../zod-class").ZodClass<{
|
|
3
|
+
cronExpression: string;
|
|
4
|
+
wakeUpPrompt?: string | undefined;
|
|
5
|
+
}, {
|
|
6
|
+
cronExpression: z.ZodString;
|
|
7
|
+
wakeUpPrompt: z.ZodOptional<z.ZodString>;
|
|
8
|
+
}>;
|
|
9
|
+
export declare class UpdateAgentScheduleDto extends UpdateAgentScheduleDto_base {
|
|
10
|
+
}
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateAgentScheduleDto = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const zod_class_1 = require("../../zod-class");
|
|
6
|
+
class UpdateAgentScheduleDto extends zod_class_1.Z.class({
|
|
7
|
+
cronExpression: zod_1.z.string(),
|
|
8
|
+
wakeUpPrompt: zod_1.z.string().optional(),
|
|
9
|
+
}) {
|
|
10
|
+
}
|
|
11
|
+
exports.UpdateAgentScheduleDto = UpdateAgentScheduleDto;
|
|
12
|
+
//# sourceMappingURL=update-agent-schedule.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-agent-schedule.dto.js","sourceRoot":"","sources":["../../../src/dto/agents/update-agent-schedule.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,+CAAoC;AAEpC,MAAa,sBAAuB,SAAQ,aAAC,CAAC,KAAK,CAAC;IACnD,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE;IAC1B,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC;CAAG;AAHL,wDAGK"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare const UpdateAgentSkillDto_base: import("../../zod-class").ZodClass<{
|
|
2
|
+
description?: string | undefined;
|
|
3
|
+
name?: string | undefined;
|
|
4
|
+
instructions?: string | undefined;
|
|
5
|
+
}, {
|
|
6
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8
|
+
instructions: import("zod").ZodOptional<import("zod").ZodString>;
|
|
9
|
+
}>;
|
|
10
|
+
export declare class UpdateAgentSkillDto extends UpdateAgentSkillDto_base {
|
|
11
|
+
}
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateAgentSkillDto = void 0;
|
|
4
|
+
const create_agent_skill_dto_1 = require("./create-agent-skill.dto");
|
|
5
|
+
const zod_class_1 = require("../../zod-class");
|
|
6
|
+
class UpdateAgentSkillDto extends zod_class_1.Z.class({
|
|
7
|
+
name: create_agent_skill_dto_1.agentSkillSchema.shape.name.optional(),
|
|
8
|
+
description: create_agent_skill_dto_1.agentSkillSchema.shape.description.optional(),
|
|
9
|
+
instructions: create_agent_skill_dto_1.agentSkillSchema.shape.instructions.optional(),
|
|
10
|
+
}) {
|
|
11
|
+
}
|
|
12
|
+
exports.UpdateAgentSkillDto = UpdateAgentSkillDto;
|
|
13
|
+
//# sourceMappingURL=update-agent-skill.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-agent-skill.dto.js","sourceRoot":"","sources":["../../../src/dto/agents/update-agent-skill.dto.ts"],"names":[],"mappings":";;;AAAA,qEAA4D;AAC5D,+CAAoC;AAEpC,MAAa,mBAAoB,SAAQ,aAAC,CAAC,KAAK,CAAC;IAChD,IAAI,EAAE,yCAAgB,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,EAAE;IAC5C,WAAW,EAAE,yCAAgB,CAAC,KAAK,CAAC,WAAW,CAAC,QAAQ,EAAE;IAC1D,YAAY,EAAE,yCAAgB,CAAC,KAAK,CAAC,YAAY,CAAC,QAAQ,EAAE;CAC5D,CAAC;CAAG;AAJL,kDAIK"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare const UpdateAgentDto_base: import("../../zod-class").ZodClass<{
|
|
3
|
+
description?: string | undefined;
|
|
4
|
+
name?: string | undefined;
|
|
5
|
+
updatedAt?: string | undefined;
|
|
6
|
+
}, {
|
|
7
|
+
name: z.ZodOptional<z.ZodString>;
|
|
8
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
9
|
+
description: z.ZodOptional<z.ZodString>;
|
|
10
|
+
}>;
|
|
11
|
+
export declare class UpdateAgentDto extends UpdateAgentDto_base {
|
|
12
|
+
}
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateAgentDto = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const zod_class_1 = require("../../zod-class");
|
|
6
|
+
class UpdateAgentDto extends zod_class_1.Z.class({
|
|
7
|
+
name: zod_1.z.string().optional(),
|
|
8
|
+
updatedAt: zod_1.z.string().optional(),
|
|
9
|
+
description: zod_1.z.string().optional(),
|
|
10
|
+
}) {
|
|
11
|
+
}
|
|
12
|
+
exports.UpdateAgentDto = UpdateAgentDto;
|
|
13
|
+
//# sourceMappingURL=update-agent.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-agent.dto.js","sourceRoot":"","sources":["../../../src/dto/agents/update-agent.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,+CAAoC;AAEpC,MAAa,cAAe,SAAQ,aAAC,CAAC,KAAK,CAAC;IAC3C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC;CAAG;AAJL,wCAIK"}
|
|
@@ -16,9 +16,9 @@ export interface SelectedNodeContext {
|
|
|
16
16
|
declare const AiBuilderChatRequestDto_base: import("../../zod-class").ZodClass<{
|
|
17
17
|
payload: {
|
|
18
18
|
type: "message";
|
|
19
|
+
text: string;
|
|
19
20
|
role: "user";
|
|
20
21
|
id: string;
|
|
21
|
-
text: string;
|
|
22
22
|
workflowContext: {
|
|
23
23
|
currentWorkflow?: Partial<IWorkflowBase> | undefined;
|
|
24
24
|
executionData?: {
|
|
@@ -35,6 +35,7 @@ declare const AiBuilderChatRequestDto_base: import("../../zod-class").ZodClass<{
|
|
|
35
35
|
pinnedNodes?: string[] | undefined;
|
|
36
36
|
selectedNodes?: SelectedNodeContext[] | undefined;
|
|
37
37
|
};
|
|
38
|
+
mode?: "build" | "plan" | undefined;
|
|
38
39
|
versionId?: string | undefined;
|
|
39
40
|
featureFlags?: {
|
|
40
41
|
pinData?: boolean | undefined;
|
|
@@ -43,7 +44,6 @@ declare const AiBuilderChatRequestDto_base: import("../../zod-class").ZodClass<{
|
|
|
43
44
|
mergeAskBuild?: boolean | undefined;
|
|
44
45
|
} | undefined;
|
|
45
46
|
quickReplyType?: "all-good" | "new-suggestion" | undefined;
|
|
46
|
-
mode?: "build" | "plan" | undefined;
|
|
47
47
|
resumeData?: unknown[] | Record<string, unknown> | undefined;
|
|
48
48
|
};
|
|
49
49
|
}, {
|
|
@@ -127,9 +127,9 @@ declare const AiBuilderChatRequestDto_base: import("../../zod-class").ZodClass<{
|
|
|
127
127
|
resumeData: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown, "many">]>>;
|
|
128
128
|
}, "strip", z.ZodTypeAny, {
|
|
129
129
|
type: "message";
|
|
130
|
+
text: string;
|
|
130
131
|
role: "user";
|
|
131
132
|
id: string;
|
|
132
|
-
text: string;
|
|
133
133
|
workflowContext: {
|
|
134
134
|
currentWorkflow?: Partial<IWorkflowBase> | undefined;
|
|
135
135
|
executionData?: {
|
|
@@ -146,6 +146,7 @@ declare const AiBuilderChatRequestDto_base: import("../../zod-class").ZodClass<{
|
|
|
146
146
|
pinnedNodes?: string[] | undefined;
|
|
147
147
|
selectedNodes?: SelectedNodeContext[] | undefined;
|
|
148
148
|
};
|
|
149
|
+
mode?: "build" | "plan" | undefined;
|
|
149
150
|
versionId?: string | undefined;
|
|
150
151
|
featureFlags?: {
|
|
151
152
|
pinData?: boolean | undefined;
|
|
@@ -154,13 +155,12 @@ declare const AiBuilderChatRequestDto_base: import("../../zod-class").ZodClass<{
|
|
|
154
155
|
mergeAskBuild?: boolean | undefined;
|
|
155
156
|
} | undefined;
|
|
156
157
|
quickReplyType?: "all-good" | "new-suggestion" | undefined;
|
|
157
|
-
mode?: "build" | "plan" | undefined;
|
|
158
158
|
resumeData?: unknown[] | Record<string, unknown> | undefined;
|
|
159
159
|
}, {
|
|
160
160
|
type: "message";
|
|
161
|
+
text: string;
|
|
161
162
|
role: "user";
|
|
162
163
|
id: string;
|
|
163
|
-
text: string;
|
|
164
164
|
workflowContext: {
|
|
165
165
|
currentWorkflow?: Partial<IWorkflowBase> | undefined;
|
|
166
166
|
executionData?: {
|
|
@@ -177,6 +177,7 @@ declare const AiBuilderChatRequestDto_base: import("../../zod-class").ZodClass<{
|
|
|
177
177
|
pinnedNodes?: string[] | undefined;
|
|
178
178
|
selectedNodes?: SelectedNodeContext[] | undefined;
|
|
179
179
|
};
|
|
180
|
+
mode?: "build" | "plan" | undefined;
|
|
180
181
|
versionId?: string | undefined;
|
|
181
182
|
featureFlags?: {
|
|
182
183
|
pinData?: boolean | undefined;
|
|
@@ -185,7 +186,6 @@ declare const AiBuilderChatRequestDto_base: import("../../zod-class").ZodClass<{
|
|
|
185
186
|
mergeAskBuild?: boolean | undefined;
|
|
186
187
|
} | undefined;
|
|
187
188
|
quickReplyType?: "all-good" | "new-suggestion" | undefined;
|
|
188
|
-
mode?: "build" | "plan" | undefined;
|
|
189
189
|
resumeData?: unknown[] | Record<string, unknown> | undefined;
|
|
190
190
|
}>;
|
|
191
191
|
}>;
|
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
type: string;
|
|
4
|
-
algorithm: string | null;
|
|
5
|
-
status: string;
|
|
6
|
-
createdAt: string;
|
|
7
|
-
updatedAt: string;
|
|
8
|
-
};
|
|
1
|
+
import type { EncryptionKey } from '../../schemas/encryption-key.schema';
|
|
2
|
+
export type EncryptionKeyResponseDto = EncryptionKey;
|
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
export declare const ENCRYPTION_KEYS_SORT_OPTIONS: readonly ["createdAt:asc", "createdAt:desc", "updatedAt:asc", "updatedAt:desc", "status:asc", "status:desc"];
|
|
3
|
+
export type EncryptionKeysSortOption = (typeof ENCRYPTION_KEYS_SORT_OPTIONS)[number];
|
|
2
4
|
declare const ListEncryptionKeysQueryDto_base: import("../../zod-class").ZodClass<{
|
|
3
|
-
|
|
5
|
+
skip: number;
|
|
6
|
+
take: number;
|
|
7
|
+
type?: "data_encryption" | undefined;
|
|
8
|
+
sortBy?: "createdAt:asc" | "createdAt:desc" | "updatedAt:asc" | "updatedAt:desc" | "status:asc" | "status:desc" | undefined;
|
|
9
|
+
activatedFrom?: string | undefined;
|
|
10
|
+
activatedTo?: string | undefined;
|
|
4
11
|
}, {
|
|
5
|
-
type: z.ZodOptional<z.
|
|
12
|
+
type: z.ZodOptional<z.ZodLiteral<"data_encryption">>;
|
|
13
|
+
sortBy: z.ZodOptional<z.ZodEnum<["createdAt:asc", "createdAt:desc", "updatedAt:asc", "updatedAt:desc", "status:asc", "status:desc"]>>;
|
|
14
|
+
activatedFrom: z.ZodOptional<z.ZodString>;
|
|
15
|
+
activatedTo: z.ZodOptional<z.ZodString>;
|
|
16
|
+
skip: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, number, string | undefined>, number, string | undefined>, number, string | undefined>;
|
|
17
|
+
take: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, number, string | undefined>, number, string | undefined>, number, string | undefined>, number, string | undefined>;
|
|
6
18
|
}>;
|
|
7
19
|
export declare class ListEncryptionKeysQueryDto extends ListEncryptionKeysQueryDto_base {
|
|
8
20
|
}
|
|
@@ -1,10 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ListEncryptionKeysQueryDto = void 0;
|
|
3
|
+
exports.ListEncryptionKeysQueryDto = exports.ENCRYPTION_KEYS_SORT_OPTIONS = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const zod_class_1 = require("../../zod-class");
|
|
6
|
+
const pagination_dto_1 = require("../pagination/pagination.dto");
|
|
7
|
+
exports.ENCRYPTION_KEYS_SORT_OPTIONS = [
|
|
8
|
+
'createdAt:asc',
|
|
9
|
+
'createdAt:desc',
|
|
10
|
+
'updatedAt:asc',
|
|
11
|
+
'updatedAt:desc',
|
|
12
|
+
'status:asc',
|
|
13
|
+
'status:desc',
|
|
14
|
+
];
|
|
6
15
|
class ListEncryptionKeysQueryDto extends zod_class_1.Z.class({
|
|
7
|
-
|
|
16
|
+
...pagination_dto_1.paginationSchema,
|
|
17
|
+
type: zod_1.z.literal('data_encryption').optional(),
|
|
18
|
+
sortBy: zod_1.z
|
|
19
|
+
.enum(exports.ENCRYPTION_KEYS_SORT_OPTIONS, {
|
|
20
|
+
message: `sortBy must be one of: ${exports.ENCRYPTION_KEYS_SORT_OPTIONS.join(', ')}`,
|
|
21
|
+
})
|
|
22
|
+
.optional(),
|
|
23
|
+
activatedFrom: zod_1.z.string().datetime({ offset: true }).optional(),
|
|
24
|
+
activatedTo: zod_1.z.string().datetime({ offset: true }).optional(),
|
|
8
25
|
}) {
|
|
9
26
|
}
|
|
10
27
|
exports.ListEncryptionKeysQueryDto = ListEncryptionKeysQueryDto;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-encryption-keys-query.dto.js","sourceRoot":"","sources":["../../../src/dto/encryption/list-encryption-keys-query.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,+CAAoC;
|
|
1
|
+
{"version":3,"file":"list-encryption-keys-query.dto.js","sourceRoot":"","sources":["../../../src/dto/encryption/list-encryption-keys-query.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,+CAAoC;AACpC,iEAAgE;AAEnD,QAAA,4BAA4B,GAAG;IAC3C,eAAe;IACf,gBAAgB;IAChB,eAAe;IACf,gBAAgB;IAChB,YAAY;IACZ,aAAa;CACJ,CAAC;AAIX,MAAa,0BAA2B,SAAQ,aAAC,CAAC,KAAK,CAAC;IACvD,GAAG,iCAAgB;IACnB,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC,QAAQ,EAAE;IAC7C,MAAM,EAAE,OAAC;SACP,IAAI,CAAC,oCAA4B,EAAE;QACnC,OAAO,EAAE,0BAA0B,oCAA4B,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;KAC5E,CAAC;SACD,QAAQ,EAAE;IACZ,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC/D,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC7D,CAAC;CAAG;AAVL,gEAUK"}
|