@purpleschool/gptbot 0.13.5 → 0.13.7
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/api/controllers/http/agents/agent-ai-model.ts +6 -0
- package/api/controllers/http/agents/agent-channel.ts +10 -0
- package/api/controllers/http/agents/agent-dialog.ts +9 -0
- package/api/controllers/http/agents/agent-document.ts +8 -0
- package/api/controllers/http/agents/agent-lead-form.ts +7 -0
- package/api/controllers/http/agents/agent-lead.ts +8 -0
- package/api/controllers/http/agents/agent-template.ts +11 -0
- package/api/controllers/http/agents/agent-tool.ts +8 -0
- package/api/controllers/http/agents/agent.ts +17 -0
- package/api/controllers/http/agents/index.ts +9 -0
- package/api/controllers/http/index.ts +1 -0
- package/api/routes.ts +89 -0
- package/build/api/controllers/http/agents/agent-ai-model.js +8 -0
- package/build/api/controllers/http/agents/agent-channel.js +12 -0
- package/build/api/controllers/http/agents/agent-dialog.js +11 -0
- package/build/api/controllers/http/agents/agent-document.js +10 -0
- package/build/api/controllers/http/agents/agent-lead-form.js +9 -0
- package/build/api/controllers/http/agents/agent-lead.js +10 -0
- package/build/api/controllers/http/agents/agent-template.js +13 -0
- package/build/api/controllers/http/agents/agent-tool.js +10 -0
- package/build/api/controllers/http/agents/agent.js +17 -0
- package/build/api/controllers/http/agents/index.js +25 -0
- package/build/api/controllers/http/index.js +1 -0
- package/build/api/routes.js +60 -0
- package/build/commands/agents/agent-ai-model/find-agent-ai-models.command.js +11 -0
- package/build/commands/agents/agent-ai-model/get-agent-ai-model-by-id.command.js +14 -0
- package/build/commands/agents/agent-ai-model/index.js +18 -0
- package/build/commands/agents/agent-channel/create-agent-channel.command.js +20 -0
- package/build/commands/agents/agent-channel/delete-agent-channel.command.js +14 -0
- package/build/commands/agents/agent-channel/find-agent-channels-catalog.command.js +11 -0
- package/build/commands/agents/agent-channel/find-agent-channels.command.js +14 -0
- package/build/commands/agents/agent-channel/index.js +21 -0
- package/build/commands/agents/agent-channel/update-agent-channel.command.js +31 -0
- package/build/commands/agents/agent-dialog/clear-agent-dialog-history.command.js +14 -0
- package/build/commands/agents/agent-dialog/find-agent-dialogs.command.js +21 -0
- package/build/commands/agents/agent-dialog/get-agent-dialog-by-id.command.js +15 -0
- package/build/commands/agents/agent-dialog/index.js +23 -0
- package/build/commands/agents/agent-dialog/send-agent-dialog-admin-reply.command.js +22 -0
- package/build/commands/agents/agent-dialog/send-cabinet-message.command.js +28 -0
- package/build/commands/agents/agent-dialog/start-cabinet-dialog.command.js +18 -0
- package/build/commands/agents/agent-dialog/update-agent-dialog-status.command.js +19 -0
- package/build/commands/agents/agent-document/delete-agent-document.command.js +14 -0
- package/build/commands/agents/agent-document/find-agent-documents.command.js +18 -0
- package/build/commands/agents/agent-document/index.js +20 -0
- package/build/commands/agents/agent-document/search-agent-documents.command.js +19 -0
- package/build/commands/agents/agent-document/upload-agent-document.command.js +19 -0
- package/build/commands/agents/agent-lead/create-agent-lead.command.js +16 -0
- package/build/commands/agents/agent-lead/delete-agent-lead.command.js +13 -0
- package/build/commands/agents/agent-lead/find-agent-leads.command.js +16 -0
- package/build/commands/agents/agent-lead/get-agent-lead-by-id.command.js +14 -0
- package/build/commands/agents/agent-lead/index.js +21 -0
- package/build/commands/agents/agent-lead/update-agent-lead.command.js +19 -0
- package/build/commands/agents/agent-lead-form/delete-agent-lead-form.command.js +14 -0
- package/build/commands/agents/agent-lead-form/find-agent-lead-forms.command.js +16 -0
- package/build/commands/agents/agent-lead-form/get-agent-lead-form-by-agent.command.js +14 -0
- package/build/commands/agents/agent-lead-form/get-agent-lead-form-by-id.command.js +14 -0
- package/build/commands/agents/agent-lead-form/index.js +21 -0
- package/build/commands/agents/agent-lead-form/upsert-agent-lead-form.command.js +19 -0
- package/build/commands/agents/agent-template/create-agent-template-category.command.js +17 -0
- package/build/commands/agents/agent-template/create-agent-template-instruction.command.js +20 -0
- package/build/commands/agents/agent-template/create-agent-template.command.js +25 -0
- package/build/commands/agents/agent-template/delete-agent-template-category.command.js +13 -0
- package/build/commands/agents/agent-template/delete-agent-template-instruction.command.js +14 -0
- package/build/commands/agents/agent-template/delete-agent-template.command.js +13 -0
- package/build/commands/agents/agent-template/find-agent-template-catalog.command.js +11 -0
- package/build/commands/agents/agent-template/find-agent-template-categories.command.js +19 -0
- package/build/commands/agents/agent-template/find-agent-template-instructions.command.js +20 -0
- package/build/commands/agents/agent-template/find-agent-templates.command.js +19 -0
- package/build/commands/agents/agent-template/index.js +29 -0
- package/build/commands/agents/agent-template/update-agent-template-category.command.js +21 -0
- package/build/commands/agents/agent-template/update-agent-template-instruction.command.js +22 -0
- package/build/commands/agents/agent-template/update-agent-template.command.js +29 -0
- package/build/commands/agents/agent-tool/connect-agent-tool.command.js +20 -0
- package/build/commands/agents/agent-tool/disconnect-agent-tool.command.js +14 -0
- package/build/commands/agents/agent-tool/find-agent-tools-catalog.command.js +15 -0
- package/build/commands/agents/agent-tool/find-agent-tools.command.js +14 -0
- package/build/commands/agents/agent-tool/index.js +21 -0
- package/build/commands/agents/agent-tool/update-agent-tool.command.js +21 -0
- package/build/commands/agents/agents/create-agent.command.js +25 -0
- package/build/commands/agents/agents/delete-agent.command.js +13 -0
- package/build/commands/agents/agents/find-agents.command.js +18 -0
- package/build/commands/agents/agents/get-agent-by-id.command.js +14 -0
- package/build/commands/agents/agents/get-agent-public-info.command.js +20 -0
- package/build/commands/agents/agents/index.js +22 -0
- package/build/commands/agents/agents/update-agent.command.js +31 -0
- package/build/commands/agents/index.js +25 -0
- package/build/commands/index.js +1 -0
- package/build/constants/agents/enums/agent-channel-status.enum.js +9 -0
- package/build/constants/agents/enums/agent-channel-type.enum.js +9 -0
- package/build/constants/agents/enums/agent-document-status.enum.js +9 -0
- package/build/constants/agents/enums/agent-interaction-mode.enum.js +8 -0
- package/build/constants/agents/enums/agent-status.enum.js +9 -0
- package/build/constants/agents/enums/agent-tool-status.enum.js +9 -0
- package/build/constants/agents/enums/agent-tool-type.enum.js +9 -0
- package/build/constants/agents/enums/dialog-status.enum.js +11 -0
- package/build/constants/agents/enums/index.js +24 -0
- package/build/constants/agents/index.js +17 -0
- package/build/constants/index.js +1 -0
- package/build/models/agents/agent-ai-model.schema.js +14 -0
- package/build/models/agents/agent-channel-credentials.schema.js +23 -0
- package/build/models/agents/agent-channel.schema.js +17 -0
- package/build/models/agents/agent-dialog-lead.schema.js +13 -0
- package/build/models/agents/agent-dialog-message.schema.js +13 -0
- package/build/models/agents/agent-document-chunk.schema.js +15 -0
- package/build/models/agents/agent-document-find-result.schema.js +11 -0
- package/build/models/agents/agent-document-search-result.schema.js +13 -0
- package/build/models/agents/agent-document.schema.js +18 -0
- package/build/models/agents/agent-lead-find-result.schema.js +11 -0
- package/build/models/agents/agent-lead-form-field.schema.js +10 -0
- package/build/models/agents/agent-lead-form.schema.js +14 -0
- package/build/models/agents/agent-lead.schema.js +13 -0
- package/build/models/agents/agent-template-catalog.schema.js +16 -0
- package/build/models/agents/agent-template-category.schema.js +14 -0
- package/build/models/agents/agent-template-instruction.schema.js +15 -0
- package/build/models/agents/agent-template.schema.js +22 -0
- package/build/models/agents/agent-tool-catalog.schema.js +16 -0
- package/build/models/agents/agent-tool-credentials.schema.js +24 -0
- package/build/models/agents/agent-tool.schema.js +15 -0
- package/build/models/agents/agent.schema.js +26 -0
- package/build/models/agents/channel.schema.js +15 -0
- package/build/models/agents/dialog-find-result.schema.js +9 -0
- package/build/models/agents/dialog-with-messages.schema.js +9 -0
- package/build/models/agents/dialog.schema.js +32 -0
- package/build/models/agents/index.js +41 -0
- package/build/models/index.js +1 -0
- package/commands/agents/agent-ai-model/find-agent-ai-models.command.ts +9 -0
- package/commands/agents/agent-ai-model/get-agent-ai-model-by-id.command.ts +14 -0
- package/commands/agents/agent-ai-model/index.ts +2 -0
- package/commands/agents/agent-channel/create-agent-channel.command.ts +22 -0
- package/commands/agents/agent-channel/delete-agent-channel.command.ts +14 -0
- package/commands/agents/agent-channel/find-agent-channels-catalog.command.ts +9 -0
- package/commands/agents/agent-channel/find-agent-channels.command.ts +14 -0
- package/commands/agents/agent-channel/index.ts +5 -0
- package/commands/agents/agent-channel/update-agent-channel.command.ts +36 -0
- package/commands/agents/agent-dialog/clear-agent-dialog-history.command.ts +16 -0
- package/commands/agents/agent-dialog/find-agent-dialogs.command.ts +21 -0
- package/commands/agents/agent-dialog/get-agent-dialog-by-id.command.ts +17 -0
- package/commands/agents/agent-dialog/index.ts +7 -0
- package/commands/agents/agent-dialog/send-agent-dialog-admin-reply.command.ts +26 -0
- package/commands/agents/agent-dialog/send-cabinet-message.command.ts +34 -0
- package/commands/agents/agent-dialog/start-cabinet-dialog.command.ts +20 -0
- package/commands/agents/agent-dialog/update-agent-dialog-status.command.ts +23 -0
- package/commands/agents/agent-document/delete-agent-document.command.ts +14 -0
- package/commands/agents/agent-document/find-agent-documents.command.ts +20 -0
- package/commands/agents/agent-document/index.ts +4 -0
- package/commands/agents/agent-document/search-agent-documents.command.ts +21 -0
- package/commands/agents/agent-document/upload-agent-document.command.ts +21 -0
- package/commands/agents/agent-lead/create-agent-lead.command.ts +16 -0
- package/commands/agents/agent-lead/delete-agent-lead.command.ts +13 -0
- package/commands/agents/agent-lead/find-agent-leads.command.ts +16 -0
- package/commands/agents/agent-lead/get-agent-lead-by-id.command.ts +14 -0
- package/commands/agents/agent-lead/index.ts +5 -0
- package/commands/agents/agent-lead/update-agent-lead.command.ts +21 -0
- package/commands/agents/agent-lead-form/delete-agent-lead-form.command.ts +14 -0
- package/commands/agents/agent-lead-form/find-agent-lead-forms.command.ts +16 -0
- package/commands/agents/agent-lead-form/get-agent-lead-form-by-agent.command.ts +14 -0
- package/commands/agents/agent-lead-form/get-agent-lead-form-by-id.command.ts +14 -0
- package/commands/agents/agent-lead-form/index.ts +5 -0
- package/commands/agents/agent-lead-form/upsert-agent-lead-form.command.ts +21 -0
- package/commands/agents/agent-template/create-agent-template-category.command.ts +17 -0
- package/commands/agents/agent-template/create-agent-template-instruction.command.ts +22 -0
- package/commands/agents/agent-template/create-agent-template.command.ts +25 -0
- package/commands/agents/agent-template/delete-agent-template-category.command.ts +13 -0
- package/commands/agents/agent-template/delete-agent-template-instruction.command.ts +14 -0
- package/commands/agents/agent-template/delete-agent-template.command.ts +13 -0
- package/commands/agents/agent-template/find-agent-template-catalog.command.ts +9 -0
- package/commands/agents/agent-template/find-agent-template-categories.command.ts +19 -0
- package/commands/agents/agent-template/find-agent-template-instructions.command.ts +22 -0
- package/commands/agents/agent-template/find-agent-templates.command.ts +19 -0
- package/commands/agents/agent-template/index.ts +13 -0
- package/commands/agents/agent-template/update-agent-template-category.command.ts +23 -0
- package/commands/agents/agent-template/update-agent-template-instruction.command.ts +24 -0
- package/commands/agents/agent-template/update-agent-template.command.ts +31 -0
- package/commands/agents/agent-tool/connect-agent-tool.command.ts +22 -0
- package/commands/agents/agent-tool/disconnect-agent-tool.command.ts +14 -0
- package/commands/agents/agent-tool/find-agent-tools-catalog.command.ts +15 -0
- package/commands/agents/agent-tool/find-agent-tools.command.ts +14 -0
- package/commands/agents/agent-tool/index.ts +5 -0
- package/commands/agents/agent-tool/update-agent-tool.command.ts +23 -0
- package/commands/agents/agents/create-agent.command.ts +25 -0
- package/commands/agents/agents/delete-agent.command.ts +13 -0
- package/commands/agents/agents/find-agents.command.ts +18 -0
- package/commands/agents/agents/get-agent-by-id.command.ts +14 -0
- package/commands/agents/agents/get-agent-public-info.command.ts +23 -0
- package/commands/agents/agents/index.ts +6 -0
- package/commands/agents/agents/update-agent.command.ts +33 -0
- package/commands/agents/index.ts +9 -0
- package/commands/index.ts +1 -0
- package/constants/agents/enums/agent-channel-status.enum.ts +5 -0
- package/constants/agents/enums/agent-channel-type.enum.ts +5 -0
- package/constants/agents/enums/agent-document-status.enum.ts +5 -0
- package/constants/agents/enums/agent-interaction-mode.enum.ts +4 -0
- package/constants/agents/enums/agent-status.enum.ts +5 -0
- package/constants/agents/enums/agent-tool-status.enum.ts +5 -0
- package/constants/agents/enums/agent-tool-type.enum.ts +5 -0
- package/constants/agents/enums/dialog-status.enum.ts +7 -0
- package/constants/agents/enums/index.ts +8 -0
- package/constants/agents/index.ts +1 -0
- package/constants/index.ts +1 -0
- package/models/agents/agent-ai-model.schema.ts +14 -0
- package/models/agents/agent-channel-credentials.schema.ts +32 -0
- package/models/agents/agent-channel.schema.ts +17 -0
- package/models/agents/agent-dialog-lead.schema.ts +13 -0
- package/models/agents/agent-dialog-message.schema.ts +13 -0
- package/models/agents/agent-document-chunk.schema.ts +15 -0
- package/models/agents/agent-document-find-result.schema.ts +11 -0
- package/models/agents/agent-document-search-result.schema.ts +16 -0
- package/models/agents/agent-document.schema.ts +18 -0
- package/models/agents/agent-lead-find-result.schema.ts +11 -0
- package/models/agents/agent-lead-form-field.schema.ts +10 -0
- package/models/agents/agent-lead-form.schema.ts +14 -0
- package/models/agents/agent-lead.schema.ts +13 -0
- package/models/agents/agent-template-catalog.schema.ts +22 -0
- package/models/agents/agent-template-category.schema.ts +14 -0
- package/models/agents/agent-template-instruction.schema.ts +15 -0
- package/models/agents/agent-template.schema.ts +22 -0
- package/models/agents/agent-tool-catalog.schema.ts +16 -0
- package/models/agents/agent-tool-credentials.schema.ts +33 -0
- package/models/agents/agent-tool.schema.ts +15 -0
- package/models/agents/agent.schema.ts +26 -0
- package/models/agents/channel.schema.ts +15 -0
- package/models/agents/dialog-find-result.schema.ts +9 -0
- package/models/agents/dialog-with-messages.schema.ts +9 -0
- package/models/agents/dialog.schema.ts +32 -0
- package/models/agents/index.ts +25 -0
- package/models/icon-variants.schema.ts +4 -0
- package/models/index.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindAgentTemplatesCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const agent_template_schema_1 = require("../../../models/agents/agent-template.schema");
|
|
6
|
+
var FindAgentTemplatesCommand;
|
|
7
|
+
(function (FindAgentTemplatesCommand) {
|
|
8
|
+
FindAgentTemplatesCommand.RequestQuerySchema = zod_1.z.object({
|
|
9
|
+
id: zod_1.z.string().uuid().optional(),
|
|
10
|
+
categoryId: zod_1.z.string().uuid().optional(),
|
|
11
|
+
name: zod_1.z.string().optional(),
|
|
12
|
+
isActive: zod_1.z.coerce.boolean().optional(),
|
|
13
|
+
limit: zod_1.z.coerce.number().optional(),
|
|
14
|
+
offset: zod_1.z.coerce.number().optional(),
|
|
15
|
+
});
|
|
16
|
+
FindAgentTemplatesCommand.ResponseSchema = zod_1.z.object({
|
|
17
|
+
data: zod_1.z.array(agent_template_schema_1.AgentTemplateSchema),
|
|
18
|
+
});
|
|
19
|
+
})(FindAgentTemplatesCommand || (exports.FindAgentTemplatesCommand = FindAgentTemplatesCommand = {}));
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./create-agent-template-category.command"), exports);
|
|
18
|
+
__exportStar(require("./create-agent-template-instruction.command"), exports);
|
|
19
|
+
__exportStar(require("./create-agent-template.command"), exports);
|
|
20
|
+
__exportStar(require("./delete-agent-template-category.command"), exports);
|
|
21
|
+
__exportStar(require("./delete-agent-template-instruction.command"), exports);
|
|
22
|
+
__exportStar(require("./delete-agent-template.command"), exports);
|
|
23
|
+
__exportStar(require("./find-agent-template-catalog.command"), exports);
|
|
24
|
+
__exportStar(require("./find-agent-template-categories.command"), exports);
|
|
25
|
+
__exportStar(require("./find-agent-template-instructions.command"), exports);
|
|
26
|
+
__exportStar(require("./find-agent-templates.command"), exports);
|
|
27
|
+
__exportStar(require("./update-agent-template-category.command"), exports);
|
|
28
|
+
__exportStar(require("./update-agent-template-instruction.command"), exports);
|
|
29
|
+
__exportStar(require("./update-agent-template.command"), exports);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateAgentTemplateCategoryCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const agent_template_category_schema_1 = require("../../../models/agents/agent-template-category.schema");
|
|
6
|
+
var UpdateAgentTemplateCategoryCommand;
|
|
7
|
+
(function (UpdateAgentTemplateCategoryCommand) {
|
|
8
|
+
UpdateAgentTemplateCategoryCommand.RequestParamsSchema = zod_1.z.object({
|
|
9
|
+
id: zod_1.z.string().uuid(),
|
|
10
|
+
});
|
|
11
|
+
UpdateAgentTemplateCategoryCommand.RequestBodySchema = zod_1.z.object({
|
|
12
|
+
slug: zod_1.z.string().optional(),
|
|
13
|
+
name: zod_1.z.string().optional(),
|
|
14
|
+
description: zod_1.z.string().optional(),
|
|
15
|
+
order: zod_1.z.number().optional(),
|
|
16
|
+
isActive: zod_1.z.boolean().optional(),
|
|
17
|
+
});
|
|
18
|
+
UpdateAgentTemplateCategoryCommand.ResponseSchema = zod_1.z.object({
|
|
19
|
+
data: agent_template_category_schema_1.AgentTemplateCategorySchema,
|
|
20
|
+
});
|
|
21
|
+
})(UpdateAgentTemplateCategoryCommand || (exports.UpdateAgentTemplateCategoryCommand = UpdateAgentTemplateCategoryCommand = {}));
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateAgentTemplateInstructionCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const agent_template_instruction_schema_1 = require("../../../models/agents/agent-template-instruction.schema");
|
|
6
|
+
var UpdateAgentTemplateInstructionCommand;
|
|
7
|
+
(function (UpdateAgentTemplateInstructionCommand) {
|
|
8
|
+
UpdateAgentTemplateInstructionCommand.RequestParamsSchema = zod_1.z.object({
|
|
9
|
+
templateId: zod_1.z.string().uuid(),
|
|
10
|
+
id: zod_1.z.string().uuid(),
|
|
11
|
+
});
|
|
12
|
+
UpdateAgentTemplateInstructionCommand.RequestBodySchema = zod_1.z.object({
|
|
13
|
+
title: zod_1.z.string().optional(),
|
|
14
|
+
description: zod_1.z.string().optional(),
|
|
15
|
+
prompt: zod_1.z.string().optional(),
|
|
16
|
+
order: zod_1.z.number().optional(),
|
|
17
|
+
isActive: zod_1.z.boolean().optional(),
|
|
18
|
+
});
|
|
19
|
+
UpdateAgentTemplateInstructionCommand.ResponseSchema = zod_1.z.object({
|
|
20
|
+
data: agent_template_instruction_schema_1.AgentTemplateInstructionSchema,
|
|
21
|
+
});
|
|
22
|
+
})(UpdateAgentTemplateInstructionCommand || (exports.UpdateAgentTemplateInstructionCommand = UpdateAgentTemplateInstructionCommand = {}));
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateAgentTemplateCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const agent_interaction_mode_enum_1 = require("../../../constants/agents/enums/agent-interaction-mode.enum");
|
|
6
|
+
const agent_template_schema_1 = require("../../../models/agents/agent-template.schema");
|
|
7
|
+
const icon_variants_schema_1 = require("../../../models/icon-variants.schema");
|
|
8
|
+
var UpdateAgentTemplateCommand;
|
|
9
|
+
(function (UpdateAgentTemplateCommand) {
|
|
10
|
+
UpdateAgentTemplateCommand.RequestParamsSchema = zod_1.z.object({
|
|
11
|
+
id: zod_1.z.string().uuid(),
|
|
12
|
+
});
|
|
13
|
+
UpdateAgentTemplateCommand.RequestBodySchema = zod_1.z.object({
|
|
14
|
+
categoryId: zod_1.z.string().uuid().optional(),
|
|
15
|
+
name: zod_1.z.string().optional(),
|
|
16
|
+
description: zod_1.z.string().optional(),
|
|
17
|
+
icons: icon_variants_schema_1.IconVariantsSchema.optional(),
|
|
18
|
+
altIcons: icon_variants_schema_1.IconVariantsSchema.optional(),
|
|
19
|
+
systemPrompt: zod_1.z.string().nullable().optional(),
|
|
20
|
+
interactionMode: zod_1.z.nativeEnum(agent_interaction_mode_enum_1.AGENT_INTERACTION_MODE).optional(),
|
|
21
|
+
isHumanHelp: zod_1.z.boolean().optional(),
|
|
22
|
+
useDocuments: zod_1.z.boolean().optional(),
|
|
23
|
+
order: zod_1.z.number().optional(),
|
|
24
|
+
isActive: zod_1.z.boolean().optional(),
|
|
25
|
+
});
|
|
26
|
+
UpdateAgentTemplateCommand.ResponseSchema = zod_1.z.object({
|
|
27
|
+
data: agent_template_schema_1.AgentTemplateSchema,
|
|
28
|
+
});
|
|
29
|
+
})(UpdateAgentTemplateCommand || (exports.UpdateAgentTemplateCommand = UpdateAgentTemplateCommand = {}));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConnectAgentToolCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const enums_1 = require("../../../constants/agents/enums");
|
|
6
|
+
const agent_tool_credentials_schema_1 = require("../../../models/agents/agent-tool-credentials.schema");
|
|
7
|
+
const agent_tool_schema_1 = require("../../../models/agents/agent-tool.schema");
|
|
8
|
+
var ConnectAgentToolCommand;
|
|
9
|
+
(function (ConnectAgentToolCommand) {
|
|
10
|
+
ConnectAgentToolCommand.RequestParamsSchema = zod_1.z.object({
|
|
11
|
+
agentId: zod_1.z.string().uuid(),
|
|
12
|
+
});
|
|
13
|
+
ConnectAgentToolCommand.RequestBodySchema = zod_1.z.object({
|
|
14
|
+
toolType: zod_1.z.nativeEnum(enums_1.AGENT_TOOL_TYPE),
|
|
15
|
+
credentials: agent_tool_credentials_schema_1.AgentToolCredentialsSchema.nullable().optional(),
|
|
16
|
+
});
|
|
17
|
+
ConnectAgentToolCommand.ResponseSchema = zod_1.z.object({
|
|
18
|
+
data: agent_tool_schema_1.AgentToolSchema,
|
|
19
|
+
});
|
|
20
|
+
})(ConnectAgentToolCommand || (exports.ConnectAgentToolCommand = ConnectAgentToolCommand = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DisconnectAgentToolCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var DisconnectAgentToolCommand;
|
|
6
|
+
(function (DisconnectAgentToolCommand) {
|
|
7
|
+
DisconnectAgentToolCommand.RequestParamsSchema = zod_1.z.object({
|
|
8
|
+
agentId: zod_1.z.string().uuid(),
|
|
9
|
+
id: zod_1.z.string().uuid(),
|
|
10
|
+
});
|
|
11
|
+
DisconnectAgentToolCommand.ResponseSchema = zod_1.z.object({
|
|
12
|
+
success: zod_1.z.boolean(),
|
|
13
|
+
});
|
|
14
|
+
})(DisconnectAgentToolCommand || (exports.DisconnectAgentToolCommand = DisconnectAgentToolCommand = {}));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindAgentToolsCatalogCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const enums_1 = require("../../../constants/agents/enums");
|
|
6
|
+
const agent_tool_catalog_schema_1 = require("../../../models/agents/agent-tool-catalog.schema");
|
|
7
|
+
var FindAgentToolsCatalogCommand;
|
|
8
|
+
(function (FindAgentToolsCatalogCommand) {
|
|
9
|
+
FindAgentToolsCatalogCommand.RequestQuerySchema = zod_1.z.object({
|
|
10
|
+
type: zod_1.z.nativeEnum(enums_1.AGENT_TOOL_TYPE).optional(),
|
|
11
|
+
});
|
|
12
|
+
FindAgentToolsCatalogCommand.ResponseSchema = zod_1.z.object({
|
|
13
|
+
data: zod_1.z.array(agent_tool_catalog_schema_1.AgentToolCatalogSchema),
|
|
14
|
+
});
|
|
15
|
+
})(FindAgentToolsCatalogCommand || (exports.FindAgentToolsCatalogCommand = FindAgentToolsCatalogCommand = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindAgentToolsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const agent_tool_schema_1 = require("../../../models/agents/agent-tool.schema");
|
|
6
|
+
var FindAgentToolsCommand;
|
|
7
|
+
(function (FindAgentToolsCommand) {
|
|
8
|
+
FindAgentToolsCommand.RequestParamsSchema = zod_1.z.object({
|
|
9
|
+
agentId: zod_1.z.string().uuid(),
|
|
10
|
+
});
|
|
11
|
+
FindAgentToolsCommand.ResponseSchema = zod_1.z.object({
|
|
12
|
+
data: zod_1.z.array(agent_tool_schema_1.AgentToolSchema),
|
|
13
|
+
});
|
|
14
|
+
})(FindAgentToolsCommand || (exports.FindAgentToolsCommand = FindAgentToolsCommand = {}));
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./find-agent-tools-catalog.command"), exports);
|
|
18
|
+
__exportStar(require("./find-agent-tools.command"), exports);
|
|
19
|
+
__exportStar(require("./connect-agent-tool.command"), exports);
|
|
20
|
+
__exportStar(require("./update-agent-tool.command"), exports);
|
|
21
|
+
__exportStar(require("./disconnect-agent-tool.command"), exports);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateAgentToolCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const enums_1 = require("../../../constants/agents/enums");
|
|
6
|
+
const agent_tool_credentials_schema_1 = require("../../../models/agents/agent-tool-credentials.schema");
|
|
7
|
+
const agent_tool_schema_1 = require("../../../models/agents/agent-tool.schema");
|
|
8
|
+
var UpdateAgentToolCommand;
|
|
9
|
+
(function (UpdateAgentToolCommand) {
|
|
10
|
+
UpdateAgentToolCommand.RequestParamsSchema = zod_1.z.object({
|
|
11
|
+
agentId: zod_1.z.string().uuid(),
|
|
12
|
+
id: zod_1.z.string().uuid(),
|
|
13
|
+
});
|
|
14
|
+
UpdateAgentToolCommand.RequestBodySchema = zod_1.z.object({
|
|
15
|
+
credentials: agent_tool_credentials_schema_1.AgentToolCredentialsSchema.nullable().optional(),
|
|
16
|
+
status: zod_1.z.nativeEnum(enums_1.AGENT_TOOL_STATUS).optional(),
|
|
17
|
+
});
|
|
18
|
+
UpdateAgentToolCommand.ResponseSchema = zod_1.z.object({
|
|
19
|
+
data: agent_tool_schema_1.AgentToolSchema,
|
|
20
|
+
});
|
|
21
|
+
})(UpdateAgentToolCommand || (exports.UpdateAgentToolCommand = UpdateAgentToolCommand = {}));
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateAgentCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const agent_interaction_mode_enum_1 = require("../../../constants/agents/enums/agent-interaction-mode.enum");
|
|
6
|
+
const agent_schema_1 = require("../../../models/agents/agent.schema");
|
|
7
|
+
const icon_variants_schema_1 = require("../../../models/icon-variants.schema");
|
|
8
|
+
var CreateAgentCommand;
|
|
9
|
+
(function (CreateAgentCommand) {
|
|
10
|
+
CreateAgentCommand.RequestBodySchema = zod_1.z.object({
|
|
11
|
+
templateId: zod_1.z.string().uuid(),
|
|
12
|
+
name: zod_1.z.string(),
|
|
13
|
+
icons: icon_variants_schema_1.IconVariantsSchema.optional(),
|
|
14
|
+
avatar: zod_1.z.string().nullable().optional(),
|
|
15
|
+
greetingPhrase: zod_1.z.string().nullable().optional(),
|
|
16
|
+
instructions: zod_1.z.string().nullable().optional(),
|
|
17
|
+
aiModelId: zod_1.z.string().uuid(),
|
|
18
|
+
interactionMode: zod_1.z.nativeEnum(agent_interaction_mode_enum_1.AGENT_INTERACTION_MODE).optional(),
|
|
19
|
+
isHumanHelp: zod_1.z.boolean().optional(),
|
|
20
|
+
useDocuments: zod_1.z.boolean().optional(),
|
|
21
|
+
});
|
|
22
|
+
CreateAgentCommand.ResponseSchema = zod_1.z.object({
|
|
23
|
+
data: agent_schema_1.AgentSchema,
|
|
24
|
+
});
|
|
25
|
+
})(CreateAgentCommand || (exports.CreateAgentCommand = CreateAgentCommand = {}));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteAgentCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var DeleteAgentCommand;
|
|
6
|
+
(function (DeleteAgentCommand) {
|
|
7
|
+
DeleteAgentCommand.RequestParamsSchema = zod_1.z.object({
|
|
8
|
+
id: zod_1.z.string().uuid(),
|
|
9
|
+
});
|
|
10
|
+
DeleteAgentCommand.ResponseSchema = zod_1.z.object({
|
|
11
|
+
success: zod_1.z.boolean(),
|
|
12
|
+
});
|
|
13
|
+
})(DeleteAgentCommand || (exports.DeleteAgentCommand = DeleteAgentCommand = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindAgentsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const agent_schema_1 = require("../../../models/agents/agent.schema");
|
|
6
|
+
var FindAgentsCommand;
|
|
7
|
+
(function (FindAgentsCommand) {
|
|
8
|
+
FindAgentsCommand.RequestQuerySchema = zod_1.z.object({
|
|
9
|
+
id: zod_1.z.string().uuid().optional(),
|
|
10
|
+
name: zod_1.z.string().optional(),
|
|
11
|
+
isHumanHelp: zod_1.z.coerce.boolean().optional(),
|
|
12
|
+
page: zod_1.z.coerce.number().optional(),
|
|
13
|
+
limit: zod_1.z.coerce.number().optional(),
|
|
14
|
+
});
|
|
15
|
+
FindAgentsCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
+
data: zod_1.z.array(agent_schema_1.AgentSchema),
|
|
17
|
+
});
|
|
18
|
+
})(FindAgentsCommand || (exports.FindAgentsCommand = FindAgentsCommand = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetAgentByIdCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const agent_schema_1 = require("../../../models/agents/agent.schema");
|
|
6
|
+
var GetAgentByIdCommand;
|
|
7
|
+
(function (GetAgentByIdCommand) {
|
|
8
|
+
GetAgentByIdCommand.RequestParamsSchema = zod_1.z.object({
|
|
9
|
+
id: zod_1.z.string().uuid(),
|
|
10
|
+
});
|
|
11
|
+
GetAgentByIdCommand.ResponseSchema = zod_1.z.object({
|
|
12
|
+
data: agent_schema_1.AgentSchema,
|
|
13
|
+
});
|
|
14
|
+
})(GetAgentByIdCommand || (exports.GetAgentByIdCommand = GetAgentByIdCommand = {}));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetAgentPublicInfoCommand = exports.AgentPublicInfoSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const icon_variants_schema_1 = require("../../../models/icon-variants.schema");
|
|
6
|
+
exports.AgentPublicInfoSchema = zod_1.z.object({
|
|
7
|
+
greetingPhrase: zod_1.z.string().nullable(),
|
|
8
|
+
activity: zod_1.z.boolean(),
|
|
9
|
+
icons: icon_variants_schema_1.IconVariantsSchema,
|
|
10
|
+
avatar: zod_1.z.string().nullable(),
|
|
11
|
+
});
|
|
12
|
+
var GetAgentPublicInfoCommand;
|
|
13
|
+
(function (GetAgentPublicInfoCommand) {
|
|
14
|
+
GetAgentPublicInfoCommand.RequestParamsSchema = zod_1.z.object({
|
|
15
|
+
id: zod_1.z.string().uuid(),
|
|
16
|
+
});
|
|
17
|
+
GetAgentPublicInfoCommand.ResponseSchema = zod_1.z.object({
|
|
18
|
+
data: exports.AgentPublicInfoSchema,
|
|
19
|
+
});
|
|
20
|
+
})(GetAgentPublicInfoCommand || (exports.GetAgentPublicInfoCommand = GetAgentPublicInfoCommand = {}));
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./create-agent.command"), exports);
|
|
18
|
+
__exportStar(require("./delete-agent.command"), exports);
|
|
19
|
+
__exportStar(require("./find-agents.command"), exports);
|
|
20
|
+
__exportStar(require("./get-agent-by-id.command"), exports);
|
|
21
|
+
__exportStar(require("./get-agent-public-info.command"), exports);
|
|
22
|
+
__exportStar(require("./update-agent.command"), exports);
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateAgentCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const agent_interaction_mode_enum_1 = require("../../../constants/agents/enums/agent-interaction-mode.enum");
|
|
6
|
+
const agent_status_enum_1 = require("../../../constants/agents/enums/agent-status.enum");
|
|
7
|
+
const agent_schema_1 = require("../../../models/agents/agent.schema");
|
|
8
|
+
const icon_variants_schema_1 = require("../../../models/icon-variants.schema");
|
|
9
|
+
var UpdateAgentCommand;
|
|
10
|
+
(function (UpdateAgentCommand) {
|
|
11
|
+
UpdateAgentCommand.RequestParamsSchema = zod_1.z.object({
|
|
12
|
+
id: zod_1.z.string().uuid(),
|
|
13
|
+
});
|
|
14
|
+
UpdateAgentCommand.RequestBodySchema = zod_1.z.object({
|
|
15
|
+
templateId: zod_1.z.string().uuid().nullable().optional(),
|
|
16
|
+
name: zod_1.z.string().optional(),
|
|
17
|
+
description: zod_1.z.string().optional(),
|
|
18
|
+
icons: icon_variants_schema_1.IconVariantsSchema.optional(),
|
|
19
|
+
avatar: zod_1.z.string().nullable().optional(),
|
|
20
|
+
greetingPhrase: zod_1.z.string().nullable().optional(),
|
|
21
|
+
instructions: zod_1.z.string().nullable().optional(),
|
|
22
|
+
aiModelId: zod_1.z.string().uuid().optional(),
|
|
23
|
+
isHumanHelp: zod_1.z.boolean().optional(),
|
|
24
|
+
useDocuments: zod_1.z.boolean().optional(),
|
|
25
|
+
interactionMode: zod_1.z.nativeEnum(agent_interaction_mode_enum_1.AGENT_INTERACTION_MODE).optional(),
|
|
26
|
+
status: zod_1.z.nativeEnum(agent_status_enum_1.AGENT_STATUS).optional(),
|
|
27
|
+
});
|
|
28
|
+
UpdateAgentCommand.ResponseSchema = zod_1.z.object({
|
|
29
|
+
data: agent_schema_1.AgentSchema,
|
|
30
|
+
});
|
|
31
|
+
})(UpdateAgentCommand || (exports.UpdateAgentCommand = UpdateAgentCommand = {}));
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./agent-ai-model"), exports);
|
|
18
|
+
__exportStar(require("./agent-channel"), exports);
|
|
19
|
+
__exportStar(require("./agent-dialog"), exports);
|
|
20
|
+
__exportStar(require("./agent-lead-form"), exports);
|
|
21
|
+
__exportStar(require("./agent-lead"), exports);
|
|
22
|
+
__exportStar(require("./agent-tool"), exports);
|
|
23
|
+
__exportStar(require("./agent-document"), exports);
|
|
24
|
+
__exportStar(require("./agent-template"), exports);
|
|
25
|
+
__exportStar(require("./agents"), exports);
|
package/build/commands/index.js
CHANGED
|
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./account-merge"), exports);
|
|
18
|
+
__exportStar(require("./agents"), exports);
|
|
18
19
|
__exportStar(require("./ai-model"), exports);
|
|
19
20
|
__exportStar(require("./ai-vendor"), exports);
|
|
20
21
|
__exportStar(require("./auth"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AGENT_CHANNEL_STATUS = void 0;
|
|
4
|
+
var AGENT_CHANNEL_STATUS;
|
|
5
|
+
(function (AGENT_CHANNEL_STATUS) {
|
|
6
|
+
AGENT_CHANNEL_STATUS["ACTIVE"] = "active";
|
|
7
|
+
AGENT_CHANNEL_STATUS["ERROR"] = "error";
|
|
8
|
+
AGENT_CHANNEL_STATUS["PENDING"] = "pending";
|
|
9
|
+
})(AGENT_CHANNEL_STATUS || (exports.AGENT_CHANNEL_STATUS = AGENT_CHANNEL_STATUS = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AGENT_CHANNEL_TYPE = void 0;
|
|
4
|
+
var AGENT_CHANNEL_TYPE;
|
|
5
|
+
(function (AGENT_CHANNEL_TYPE) {
|
|
6
|
+
AGENT_CHANNEL_TYPE["TELEGRAM"] = "telegram";
|
|
7
|
+
AGENT_CHANNEL_TYPE["WEB"] = "web";
|
|
8
|
+
AGENT_CHANNEL_TYPE["AVITO"] = "avito";
|
|
9
|
+
})(AGENT_CHANNEL_TYPE || (exports.AGENT_CHANNEL_TYPE = AGENT_CHANNEL_TYPE = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AGENT_DOCUMENT_STATUS = void 0;
|
|
4
|
+
var AGENT_DOCUMENT_STATUS;
|
|
5
|
+
(function (AGENT_DOCUMENT_STATUS) {
|
|
6
|
+
AGENT_DOCUMENT_STATUS["INDEXING"] = "indexing";
|
|
7
|
+
AGENT_DOCUMENT_STATUS["UPLOADED"] = "uploaded";
|
|
8
|
+
AGENT_DOCUMENT_STATUS["ERROR"] = "error";
|
|
9
|
+
})(AGENT_DOCUMENT_STATUS || (exports.AGENT_DOCUMENT_STATUS = AGENT_DOCUMENT_STATUS = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AGENT_INTERACTION_MODE = void 0;
|
|
4
|
+
var AGENT_INTERACTION_MODE;
|
|
5
|
+
(function (AGENT_INTERACTION_MODE) {
|
|
6
|
+
AGENT_INTERACTION_MODE["EXTERNAL_ONLY"] = "external_only";
|
|
7
|
+
AGENT_INTERACTION_MODE["INTERNAL_ONLY"] = "internal_only";
|
|
8
|
+
})(AGENT_INTERACTION_MODE || (exports.AGENT_INTERACTION_MODE = AGENT_INTERACTION_MODE = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AGENT_STATUS = void 0;
|
|
4
|
+
var AGENT_STATUS;
|
|
5
|
+
(function (AGENT_STATUS) {
|
|
6
|
+
AGENT_STATUS["ACTIVE"] = "active";
|
|
7
|
+
AGENT_STATUS["STOPPED"] = "stopped";
|
|
8
|
+
AGENT_STATUS["DRAFT"] = "draft";
|
|
9
|
+
})(AGENT_STATUS || (exports.AGENT_STATUS = AGENT_STATUS = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AGENT_TOOL_STATUS = void 0;
|
|
4
|
+
var AGENT_TOOL_STATUS;
|
|
5
|
+
(function (AGENT_TOOL_STATUS) {
|
|
6
|
+
AGENT_TOOL_STATUS["ACTIVE"] = "active";
|
|
7
|
+
AGENT_TOOL_STATUS["DISABLED"] = "disabled";
|
|
8
|
+
AGENT_TOOL_STATUS["ERROR"] = "error";
|
|
9
|
+
})(AGENT_TOOL_STATUS || (exports.AGENT_TOOL_STATUS = AGENT_TOOL_STATUS = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AGENT_TOOL_TYPE = void 0;
|
|
4
|
+
var AGENT_TOOL_TYPE;
|
|
5
|
+
(function (AGENT_TOOL_TYPE) {
|
|
6
|
+
AGENT_TOOL_TYPE["BITRIX_LEAD"] = "BITRIX_LEAD";
|
|
7
|
+
AGENT_TOOL_TYPE["AMO_LEAD"] = "AMO_LEAD";
|
|
8
|
+
AGENT_TOOL_TYPE["EMAIL_LEAD"] = "EMAIL_LEAD";
|
|
9
|
+
})(AGENT_TOOL_TYPE || (exports.AGENT_TOOL_TYPE = AGENT_TOOL_TYPE = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DIALOG_STATUS = void 0;
|
|
4
|
+
var DIALOG_STATUS;
|
|
5
|
+
(function (DIALOG_STATUS) {
|
|
6
|
+
DIALOG_STATUS["IN_PROGRESS"] = "inProgress";
|
|
7
|
+
DIALOG_STATUS["TRANSFERRED_TO_HUMAN"] = "transferredToHuman";
|
|
8
|
+
DIALOG_STATUS["GATHERED_LEAD"] = "gatheredLead";
|
|
9
|
+
DIALOG_STATUS["BANNED"] = "banned";
|
|
10
|
+
DIALOG_STATUS["CLOSED"] = "closed";
|
|
11
|
+
})(DIALOG_STATUS || (exports.DIALOG_STATUS = DIALOG_STATUS = {}));
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./agent-channel-status.enum"), exports);
|
|
18
|
+
__exportStar(require("./agent-channel-type.enum"), exports);
|
|
19
|
+
__exportStar(require("./agent-interaction-mode.enum"), exports);
|
|
20
|
+
__exportStar(require("./agent-status.enum"), exports);
|
|
21
|
+
__exportStar(require("./agent-tool-type.enum"), exports);
|
|
22
|
+
__exportStar(require("./agent-tool-status.enum"), exports);
|
|
23
|
+
__exportStar(require("./agent-document-status.enum"), exports);
|
|
24
|
+
__exportStar(require("./dialog-status.enum"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./enums"), exports);
|
package/build/constants/index.js
CHANGED
|
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./ai-model"), exports);
|
|
18
|
+
__exportStar(require("./agents"), exports);
|
|
18
19
|
__exportStar(require("./blog"), exports);
|
|
19
20
|
__exportStar(require("./billing"), exports);
|
|
20
21
|
__exportStar(require("./category"), exports);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AgentAiModelSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.AgentAiModelSchema = zod_1.z.object({
|
|
6
|
+
id: zod_1.z.string().uuid(),
|
|
7
|
+
model: zod_1.z.string(),
|
|
8
|
+
name: zod_1.z.string(),
|
|
9
|
+
icon: zod_1.z.string().nullable(),
|
|
10
|
+
isActive: zod_1.z.boolean(),
|
|
11
|
+
order: zod_1.z.number(),
|
|
12
|
+
createdAt: zod_1.z.date(),
|
|
13
|
+
updatedAt: zod_1.z.date(),
|
|
14
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AgentChannelCredentialsSchema = exports.AvitoChannelCredentialsSchema = exports.WebChannelCredentialsSchema = exports.TelegramChannelCredentialsSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const enums_1 = require("../../constants/agents/enums");
|
|
6
|
+
exports.TelegramChannelCredentialsSchema = zod_1.z.object({
|
|
7
|
+
type: zod_1.z.literal(enums_1.AGENT_CHANNEL_TYPE.TELEGRAM),
|
|
8
|
+
token: zod_1.z.string().min(1),
|
|
9
|
+
});
|
|
10
|
+
exports.WebChannelCredentialsSchema = zod_1.z.object({
|
|
11
|
+
type: zod_1.z.literal(enums_1.AGENT_CHANNEL_TYPE.WEB),
|
|
12
|
+
domain: zod_1.z.string().url().optional(),
|
|
13
|
+
});
|
|
14
|
+
exports.AvitoChannelCredentialsSchema = zod_1.z.object({
|
|
15
|
+
type: zod_1.z.literal(enums_1.AGENT_CHANNEL_TYPE.AVITO),
|
|
16
|
+
clientId: zod_1.z.string().min(1),
|
|
17
|
+
clientSecret: zod_1.z.string().min(1),
|
|
18
|
+
});
|
|
19
|
+
exports.AgentChannelCredentialsSchema = zod_1.z.discriminatedUnion('type', [
|
|
20
|
+
exports.TelegramChannelCredentialsSchema,
|
|
21
|
+
exports.WebChannelCredentialsSchema,
|
|
22
|
+
exports.AvitoChannelCredentialsSchema,
|
|
23
|
+
]);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AgentChannelSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const enums_1 = require("../../constants/agents/enums");
|
|
6
|
+
const agent_channel_credentials_schema_1 = require("./agent-channel-credentials.schema");
|
|
7
|
+
exports.AgentChannelSchema = zod_1.z.object({
|
|
8
|
+
id: zod_1.z.string().uuid(),
|
|
9
|
+
agentId: zod_1.z.string().uuid(),
|
|
10
|
+
channelType: zod_1.z.nativeEnum(enums_1.AGENT_CHANNEL_TYPE),
|
|
11
|
+
status: zod_1.z.nativeEnum(enums_1.AGENT_CHANNEL_STATUS),
|
|
12
|
+
credentials: agent_channel_credentials_schema_1.AgentChannelCredentialsSchema,
|
|
13
|
+
lastCheckedAt: zod_1.z.date().nullable(),
|
|
14
|
+
lastError: zod_1.z.string().nullable(),
|
|
15
|
+
createdAt: zod_1.z.date(),
|
|
16
|
+
updatedAt: zod_1.z.date(),
|
|
17
|
+
});
|