@purpleschool/gptbot 0.13.4 → 0.13.6
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 +2 -0
- package/api/controllers/http/support-feedback.ts +7 -0
- package/api/routes.ts +97 -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 +2 -0
- package/build/api/controllers/http/support-feedback.js +9 -0
- package/build/api/routes.js +68 -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 +21 -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 +25 -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 +24 -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 +19 -0
- package/build/commands/agents/agents/index.js +22 -0
- package/build/commands/agents/agents/update-agent.command.js +30 -0
- package/build/commands/agents/index.js +25 -0
- package/build/commands/index.js +2 -0
- package/build/commands/support-feedback/check-support-feedback.command.js +24 -0
- package/build/commands/support-feedback/index.js +18 -0
- package/build/commands/support-feedback/upsert-support-feedback.command.js +18 -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 +18 -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 +25 -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 +2 -0
- package/build/models/support-feedback.schema.js +14 -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 +21 -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 +27 -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 +24 -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 +22 -0
- package/commands/agents/agents/index.ts +6 -0
- package/commands/agents/agents/update-agent.command.ts +32 -0
- package/commands/agents/index.ts +9 -0
- package/commands/index.ts +2 -0
- package/commands/support-feedback/check-support-feedback.command.ts +26 -0
- package/commands/support-feedback/index.ts +2 -0
- package/commands/support-feedback/upsert-support-feedback.command.ts +20 -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 +18 -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 +25 -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/index.ts +2 -0
- package/models/support-feedback.schema.ts +12 -0
- package/package.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteAgentTemplateCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var DeleteAgentTemplateCommand;
|
|
6
|
+
(function (DeleteAgentTemplateCommand) {
|
|
7
|
+
DeleteAgentTemplateCommand.RequestParamsSchema = zod_1.z.object({
|
|
8
|
+
id: zod_1.z.string().uuid(),
|
|
9
|
+
});
|
|
10
|
+
DeleteAgentTemplateCommand.ResponseSchema = zod_1.z.object({
|
|
11
|
+
success: zod_1.z.boolean(),
|
|
12
|
+
});
|
|
13
|
+
})(DeleteAgentTemplateCommand || (exports.DeleteAgentTemplateCommand = DeleteAgentTemplateCommand = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindAgentTemplateCatalogCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const agent_template_catalog_schema_1 = require("../../../models/agents/agent-template-catalog.schema");
|
|
6
|
+
var FindAgentTemplateCatalogCommand;
|
|
7
|
+
(function (FindAgentTemplateCatalogCommand) {
|
|
8
|
+
FindAgentTemplateCatalogCommand.ResponseSchema = zod_1.z.object({
|
|
9
|
+
data: agent_template_catalog_schema_1.AgentTemplateCatalogSchema,
|
|
10
|
+
});
|
|
11
|
+
})(FindAgentTemplateCatalogCommand || (exports.FindAgentTemplateCatalogCommand = FindAgentTemplateCatalogCommand = {}));
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindAgentTemplateCategoriesCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const agent_template_category_schema_1 = require("../../../models/agents/agent-template-category.schema");
|
|
6
|
+
var FindAgentTemplateCategoriesCommand;
|
|
7
|
+
(function (FindAgentTemplateCategoriesCommand) {
|
|
8
|
+
FindAgentTemplateCategoriesCommand.RequestQuerySchema = zod_1.z.object({
|
|
9
|
+
id: zod_1.z.string().uuid().optional(),
|
|
10
|
+
slug: zod_1.z.string().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
|
+
FindAgentTemplateCategoriesCommand.ResponseSchema = zod_1.z.object({
|
|
17
|
+
data: zod_1.z.array(agent_template_category_schema_1.AgentTemplateCategorySchema),
|
|
18
|
+
});
|
|
19
|
+
})(FindAgentTemplateCategoriesCommand || (exports.FindAgentTemplateCategoriesCommand = FindAgentTemplateCategoriesCommand = {}));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindAgentTemplateInstructionsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const agent_template_instruction_schema_1 = require("../../../models/agents/agent-template-instruction.schema");
|
|
6
|
+
var FindAgentTemplateInstructionsCommand;
|
|
7
|
+
(function (FindAgentTemplateInstructionsCommand) {
|
|
8
|
+
FindAgentTemplateInstructionsCommand.RequestParamsSchema = zod_1.z.object({
|
|
9
|
+
templateId: zod_1.z.string().uuid(),
|
|
10
|
+
});
|
|
11
|
+
FindAgentTemplateInstructionsCommand.RequestQuerySchema = zod_1.z.object({
|
|
12
|
+
title: zod_1.z.string().optional(),
|
|
13
|
+
isActive: zod_1.z.coerce.boolean().optional(),
|
|
14
|
+
limit: zod_1.z.coerce.number().optional(),
|
|
15
|
+
offset: zod_1.z.coerce.number().optional(),
|
|
16
|
+
});
|
|
17
|
+
FindAgentTemplateInstructionsCommand.ResponseSchema = zod_1.z.object({
|
|
18
|
+
data: zod_1.z.array(agent_template_instruction_schema_1.AgentTemplateInstructionSchema),
|
|
19
|
+
});
|
|
20
|
+
})(FindAgentTemplateInstructionsCommand || (exports.FindAgentTemplateInstructionsCommand = FindAgentTemplateInstructionsCommand = {}));
|
|
@@ -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,25 @@
|
|
|
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
|
+
var UpdateAgentTemplateCommand;
|
|
8
|
+
(function (UpdateAgentTemplateCommand) {
|
|
9
|
+
UpdateAgentTemplateCommand.RequestParamsSchema = zod_1.z.object({
|
|
10
|
+
id: zod_1.z.string().uuid(),
|
|
11
|
+
});
|
|
12
|
+
UpdateAgentTemplateCommand.RequestBodySchema = zod_1.z.object({
|
|
13
|
+
categoryId: zod_1.z.string().uuid().optional(),
|
|
14
|
+
name: zod_1.z.string().optional(),
|
|
15
|
+
description: zod_1.z.string().optional(),
|
|
16
|
+
iconUrl: zod_1.z.string().nullable().optional(),
|
|
17
|
+
systemPrompt: zod_1.z.string().nullable().optional(),
|
|
18
|
+
interactionMode: zod_1.z.nativeEnum(agent_interaction_mode_enum_1.AGENT_INTERACTION_MODE).optional(),
|
|
19
|
+
order: zod_1.z.number().optional(),
|
|
20
|
+
isActive: zod_1.z.boolean().optional(),
|
|
21
|
+
});
|
|
22
|
+
UpdateAgentTemplateCommand.ResponseSchema = zod_1.z.object({
|
|
23
|
+
data: agent_template_schema_1.AgentTemplateSchema,
|
|
24
|
+
});
|
|
25
|
+
})(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,24 @@
|
|
|
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
|
+
var CreateAgentCommand;
|
|
8
|
+
(function (CreateAgentCommand) {
|
|
9
|
+
CreateAgentCommand.RequestBodySchema = zod_1.z.object({
|
|
10
|
+
templateId: zod_1.z.string().uuid().nullable().optional(),
|
|
11
|
+
name: zod_1.z.string(),
|
|
12
|
+
icon: zod_1.z.string().nullable().optional(),
|
|
13
|
+
avatar: zod_1.z.string().nullable().optional(),
|
|
14
|
+
greetingPhrase: zod_1.z.string().nullable().optional(),
|
|
15
|
+
instructions: zod_1.z.string().nullable().optional(),
|
|
16
|
+
aiModelId: zod_1.z.string().uuid(),
|
|
17
|
+
interactionMode: zod_1.z.nativeEnum(agent_interaction_mode_enum_1.AGENT_INTERACTION_MODE).optional(),
|
|
18
|
+
isHumanHelp: zod_1.z.boolean().optional(),
|
|
19
|
+
useDocuments: zod_1.z.boolean().optional(),
|
|
20
|
+
});
|
|
21
|
+
CreateAgentCommand.ResponseSchema = zod_1.z.object({
|
|
22
|
+
data: agent_schema_1.AgentSchema,
|
|
23
|
+
});
|
|
24
|
+
})(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,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetAgentPublicInfoCommand = exports.AgentPublicInfoSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.AgentPublicInfoSchema = zod_1.z.object({
|
|
6
|
+
greetingPhrase: zod_1.z.string().nullable(),
|
|
7
|
+
activity: zod_1.z.boolean(),
|
|
8
|
+
icon: zod_1.z.string().nullable(),
|
|
9
|
+
avatar: zod_1.z.string().nullable(),
|
|
10
|
+
});
|
|
11
|
+
var GetAgentPublicInfoCommand;
|
|
12
|
+
(function (GetAgentPublicInfoCommand) {
|
|
13
|
+
GetAgentPublicInfoCommand.RequestParamsSchema = zod_1.z.object({
|
|
14
|
+
id: zod_1.z.string().uuid(),
|
|
15
|
+
});
|
|
16
|
+
GetAgentPublicInfoCommand.ResponseSchema = zod_1.z.object({
|
|
17
|
+
data: exports.AgentPublicInfoSchema,
|
|
18
|
+
});
|
|
19
|
+
})(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,30 @@
|
|
|
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
|
+
var UpdateAgentCommand;
|
|
9
|
+
(function (UpdateAgentCommand) {
|
|
10
|
+
UpdateAgentCommand.RequestParamsSchema = zod_1.z.object({
|
|
11
|
+
id: zod_1.z.string().uuid(),
|
|
12
|
+
});
|
|
13
|
+
UpdateAgentCommand.RequestBodySchema = zod_1.z.object({
|
|
14
|
+
templateId: zod_1.z.string().uuid().nullable().optional(),
|
|
15
|
+
name: zod_1.z.string().optional(),
|
|
16
|
+
description: zod_1.z.string().optional(),
|
|
17
|
+
icon: zod_1.z.string().nullable().optional(),
|
|
18
|
+
avatar: zod_1.z.string().nullable().optional(),
|
|
19
|
+
greetingPhrase: zod_1.z.string().nullable().optional(),
|
|
20
|
+
instructions: zod_1.z.string().nullable().optional(),
|
|
21
|
+
aiModelId: zod_1.z.string().uuid().optional(),
|
|
22
|
+
isHumanHelp: zod_1.z.boolean().optional(),
|
|
23
|
+
useDocuments: zod_1.z.boolean().optional(),
|
|
24
|
+
interactionMode: zod_1.z.nativeEnum(agent_interaction_mode_enum_1.AGENT_INTERACTION_MODE).optional(),
|
|
25
|
+
status: zod_1.z.nativeEnum(agent_status_enum_1.AGENT_STATUS).optional(),
|
|
26
|
+
});
|
|
27
|
+
UpdateAgentCommand.ResponseSchema = zod_1.z.object({
|
|
28
|
+
data: agent_schema_1.AgentSchema,
|
|
29
|
+
});
|
|
30
|
+
})(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);
|
|
@@ -40,6 +41,7 @@ __exportStar(require("./product"), exports);
|
|
|
40
41
|
__exportStar(require("./question"), exports);
|
|
41
42
|
__exportStar(require("./referral"), exports);
|
|
42
43
|
__exportStar(require("./subscription"), exports);
|
|
44
|
+
__exportStar(require("./support-feedback"), exports);
|
|
43
45
|
__exportStar(require("./task"), exports);
|
|
44
46
|
__exportStar(require("./telegram"), exports);
|
|
45
47
|
__exportStar(require("./telegram-auth"), exports);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CheckSupportFeedbackCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var CheckSupportFeedbackCommand;
|
|
7
|
+
(function (CheckSupportFeedbackCommand) {
|
|
8
|
+
CheckSupportFeedbackCommand.RequestQuerySchema = zod_1.z.object({
|
|
9
|
+
supportDialogId: zod_1.z.string().min(1),
|
|
10
|
+
});
|
|
11
|
+
CheckSupportFeedbackCommand.ResponseSchema = zod_1.z.object({
|
|
12
|
+
data: zod_1.z.object({
|
|
13
|
+
hasFeedback: zod_1.z.boolean(),
|
|
14
|
+
feedback: models_1.SupportFeedbackSchema.pick({
|
|
15
|
+
uuid: true,
|
|
16
|
+
supportDialogId: true,
|
|
17
|
+
rating: true,
|
|
18
|
+
comment: true,
|
|
19
|
+
createdAt: true,
|
|
20
|
+
updatedAt: true,
|
|
21
|
+
}).nullable(),
|
|
22
|
+
}),
|
|
23
|
+
});
|
|
24
|
+
})(CheckSupportFeedbackCommand || (exports.CheckSupportFeedbackCommand = CheckSupportFeedbackCommand = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./check-support-feedback.command"), exports);
|
|
18
|
+
__exportStar(require("./upsert-support-feedback.command"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpsertSupportFeedbackCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var UpsertSupportFeedbackCommand;
|
|
7
|
+
(function (UpsertSupportFeedbackCommand) {
|
|
8
|
+
UpsertSupportFeedbackCommand.RequestSchema = models_1.SupportFeedbackSchema.pick({
|
|
9
|
+
supportDialogId: true,
|
|
10
|
+
rating: true,
|
|
11
|
+
comment: true,
|
|
12
|
+
}).partial({
|
|
13
|
+
comment: true,
|
|
14
|
+
});
|
|
15
|
+
UpsertSupportFeedbackCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
+
data: models_1.SupportFeedbackSchema,
|
|
17
|
+
});
|
|
18
|
+
})(UpsertSupportFeedbackCommand || (exports.UpsertSupportFeedbackCommand = UpsertSupportFeedbackCommand = {}));
|
|
@@ -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 = {}));
|