@purpleschool/gptbot 0.13.5 → 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 +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 +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 +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 +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 +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 +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 +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 +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 +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindAgentDialogsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const enums_1 = require("../../../constants/agents/enums");
|
|
6
|
+
const dialog_find_result_schema_1 = require("../../../models/agents/dialog-find-result.schema");
|
|
7
|
+
var FindAgentDialogsCommand;
|
|
8
|
+
(function (FindAgentDialogsCommand) {
|
|
9
|
+
FindAgentDialogsCommand.RequestQuerySchema = zod_1.z.object({
|
|
10
|
+
agentId: zod_1.z.string().uuid().optional(),
|
|
11
|
+
status: zod_1.z.nativeEnum(enums_1.DIALOG_STATUS).optional(),
|
|
12
|
+
source: zod_1.z.string().optional(),
|
|
13
|
+
dateFrom: zod_1.z.coerce.date().optional(),
|
|
14
|
+
dateTo: zod_1.z.coerce.date().optional(),
|
|
15
|
+
limit: zod_1.z.coerce.number().optional(),
|
|
16
|
+
offset: zod_1.z.coerce.number().optional(),
|
|
17
|
+
});
|
|
18
|
+
FindAgentDialogsCommand.ResponseSchema = zod_1.z.object({
|
|
19
|
+
data: dialog_find_result_schema_1.DialogFindResultSchema,
|
|
20
|
+
});
|
|
21
|
+
})(FindAgentDialogsCommand || (exports.FindAgentDialogsCommand = FindAgentDialogsCommand = {}));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetAgentDialogByIdCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const dialog_with_messages_schema_1 = require("../../../models/agents/dialog-with-messages.schema");
|
|
6
|
+
var GetAgentDialogByIdCommand;
|
|
7
|
+
(function (GetAgentDialogByIdCommand) {
|
|
8
|
+
GetAgentDialogByIdCommand.RequestParamsSchema = zod_1.z.object({
|
|
9
|
+
id: zod_1.z.string().uuid(),
|
|
10
|
+
});
|
|
11
|
+
GetAgentDialogByIdCommand.RequestQuerySchema = zod_1.z.object({});
|
|
12
|
+
GetAgentDialogByIdCommand.ResponseSchema = zod_1.z.object({
|
|
13
|
+
data: dialog_with_messages_schema_1.DialogWithMessagesSchema,
|
|
14
|
+
});
|
|
15
|
+
})(GetAgentDialogByIdCommand || (exports.GetAgentDialogByIdCommand = GetAgentDialogByIdCommand = {}));
|
|
@@ -0,0 +1,23 @@
|
|
|
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-dialogs.command"), exports);
|
|
18
|
+
__exportStar(require("./get-agent-dialog-by-id.command"), exports);
|
|
19
|
+
__exportStar(require("./update-agent-dialog-status.command"), exports);
|
|
20
|
+
__exportStar(require("./clear-agent-dialog-history.command"), exports);
|
|
21
|
+
__exportStar(require("./send-agent-dialog-admin-reply.command"), exports);
|
|
22
|
+
__exportStar(require("./start-cabinet-dialog.command"), exports);
|
|
23
|
+
__exportStar(require("./send-cabinet-message.command"), exports);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SendAgentDialogAdminReplyCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var SendAgentDialogAdminReplyCommand;
|
|
6
|
+
(function (SendAgentDialogAdminReplyCommand) {
|
|
7
|
+
SendAgentDialogAdminReplyCommand.RequestParamsSchema = zod_1.z.object({
|
|
8
|
+
dialogId: zod_1.z.string().uuid(),
|
|
9
|
+
});
|
|
10
|
+
SendAgentDialogAdminReplyCommand.RequestQuerySchema = zod_1.z.object({});
|
|
11
|
+
SendAgentDialogAdminReplyCommand.RequestBodySchema = zod_1.z.object({
|
|
12
|
+
text: zod_1.z.string().optional(),
|
|
13
|
+
images: zod_1.z.array(zod_1.z.string()).default([]),
|
|
14
|
+
attachments: zod_1.z.array(zod_1.z.string()).optional(),
|
|
15
|
+
});
|
|
16
|
+
SendAgentDialogAdminReplyCommand.ResponseSchema = zod_1.z.object({
|
|
17
|
+
data: zod_1.z.object({
|
|
18
|
+
messageId: zod_1.z.string().uuid(),
|
|
19
|
+
dialogId: zod_1.z.string().uuid(),
|
|
20
|
+
}),
|
|
21
|
+
});
|
|
22
|
+
})(SendAgentDialogAdminReplyCommand || (exports.SendAgentDialogAdminReplyCommand = SendAgentDialogAdminReplyCommand = {}));
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SendCabinetMessageCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var SendCabinetMessageCommand;
|
|
6
|
+
(function (SendCabinetMessageCommand) {
|
|
7
|
+
SendCabinetMessageCommand.RequestParamsSchema = zod_1.z.object({
|
|
8
|
+
agentId: zod_1.z.string().uuid(),
|
|
9
|
+
dialogId: zod_1.z.string().uuid(),
|
|
10
|
+
});
|
|
11
|
+
SendCabinetMessageCommand.RequestBodySchema = zod_1.z
|
|
12
|
+
.object({
|
|
13
|
+
text: zod_1.z.string().optional(),
|
|
14
|
+
images: zod_1.z.array(zod_1.z.string()).optional(),
|
|
15
|
+
attachments: zod_1.z.array(zod_1.z.string()).optional(),
|
|
16
|
+
})
|
|
17
|
+
.refine((data) => { var _a, _b, _c, _d; return data.text || ((_b = (_a = data.images) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0) > 0 || ((_d = (_c = data.attachments) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0) > 0; }, {
|
|
18
|
+
message: 'Message must contain text, images, or attachments',
|
|
19
|
+
path: ['text'],
|
|
20
|
+
});
|
|
21
|
+
SendCabinetMessageCommand.ResponseSchema = zod_1.z.object({
|
|
22
|
+
data: zod_1.z.object({
|
|
23
|
+
dialogId: zod_1.z.string().uuid(),
|
|
24
|
+
messageId: zod_1.z.string().uuid(),
|
|
25
|
+
isNewDialog: zod_1.z.boolean(),
|
|
26
|
+
}),
|
|
27
|
+
});
|
|
28
|
+
})(SendCabinetMessageCommand || (exports.SendCabinetMessageCommand = SendCabinetMessageCommand = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StartCabinetDialogCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var StartCabinetDialogCommand;
|
|
6
|
+
(function (StartCabinetDialogCommand) {
|
|
7
|
+
StartCabinetDialogCommand.RequestParamsSchema = zod_1.z.object({
|
|
8
|
+
agentId: zod_1.z.string().uuid(),
|
|
9
|
+
});
|
|
10
|
+
StartCabinetDialogCommand.RequestBodySchema = zod_1.z.object({
|
|
11
|
+
userMeta: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional(),
|
|
12
|
+
});
|
|
13
|
+
StartCabinetDialogCommand.ResponseSchema = zod_1.z.object({
|
|
14
|
+
data: zod_1.z.object({
|
|
15
|
+
dialogId: zod_1.z.string().uuid(),
|
|
16
|
+
}),
|
|
17
|
+
});
|
|
18
|
+
})(StartCabinetDialogCommand || (exports.StartCabinetDialogCommand = StartCabinetDialogCommand = {}));
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateAgentDialogStatusCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const enums_1 = require("../../../constants/agents/enums");
|
|
6
|
+
const dialog_schema_1 = require("../../../models/agents/dialog.schema");
|
|
7
|
+
var UpdateAgentDialogStatusCommand;
|
|
8
|
+
(function (UpdateAgentDialogStatusCommand) {
|
|
9
|
+
UpdateAgentDialogStatusCommand.RequestParamsSchema = zod_1.z.object({
|
|
10
|
+
dialogId: zod_1.z.string().uuid(),
|
|
11
|
+
});
|
|
12
|
+
UpdateAgentDialogStatusCommand.RequestQuerySchema = zod_1.z.object({});
|
|
13
|
+
UpdateAgentDialogStatusCommand.RequestBodySchema = zod_1.z.object({
|
|
14
|
+
status: zod_1.z.nativeEnum(enums_1.DIALOG_STATUS),
|
|
15
|
+
});
|
|
16
|
+
UpdateAgentDialogStatusCommand.ResponseSchema = zod_1.z.object({
|
|
17
|
+
data: dialog_schema_1.DialogSchema,
|
|
18
|
+
});
|
|
19
|
+
})(UpdateAgentDialogStatusCommand || (exports.UpdateAgentDialogStatusCommand = UpdateAgentDialogStatusCommand = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteAgentDocumentCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var DeleteAgentDocumentCommand;
|
|
6
|
+
(function (DeleteAgentDocumentCommand) {
|
|
7
|
+
DeleteAgentDocumentCommand.RequestParamsSchema = zod_1.z.object({
|
|
8
|
+
agentId: zod_1.z.string().uuid(),
|
|
9
|
+
documentId: zod_1.z.string().uuid(),
|
|
10
|
+
});
|
|
11
|
+
DeleteAgentDocumentCommand.ResponseSchema = zod_1.z.object({
|
|
12
|
+
success: zod_1.z.boolean(),
|
|
13
|
+
});
|
|
14
|
+
})(DeleteAgentDocumentCommand || (exports.DeleteAgentDocumentCommand = DeleteAgentDocumentCommand = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindAgentDocumentsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const agent_document_find_result_schema_1 = require("../../../models/agents/agent-document-find-result.schema");
|
|
6
|
+
var FindAgentDocumentsCommand;
|
|
7
|
+
(function (FindAgentDocumentsCommand) {
|
|
8
|
+
FindAgentDocumentsCommand.RequestParamsSchema = zod_1.z.object({
|
|
9
|
+
agentId: zod_1.z.string().uuid(),
|
|
10
|
+
});
|
|
11
|
+
FindAgentDocumentsCommand.RequestQuerySchema = zod_1.z.object({
|
|
12
|
+
limit: zod_1.z.coerce.number().optional(),
|
|
13
|
+
offset: zod_1.z.coerce.number().optional(),
|
|
14
|
+
});
|
|
15
|
+
FindAgentDocumentsCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
+
data: agent_document_find_result_schema_1.AgentDocumentFindResultSchema,
|
|
17
|
+
});
|
|
18
|
+
})(FindAgentDocumentsCommand || (exports.FindAgentDocumentsCommand = FindAgentDocumentsCommand = {}));
|
|
@@ -0,0 +1,20 @@
|
|
|
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-documents.command"), exports);
|
|
18
|
+
__exportStar(require("./search-agent-documents.command"), exports);
|
|
19
|
+
__exportStar(require("./delete-agent-document.command"), exports);
|
|
20
|
+
__exportStar(require("./upload-agent-document.command"), exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SearchAgentDocumentsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const agent_document_search_result_schema_1 = require("../../../models/agents/agent-document-search-result.schema");
|
|
6
|
+
var SearchAgentDocumentsCommand;
|
|
7
|
+
(function (SearchAgentDocumentsCommand) {
|
|
8
|
+
SearchAgentDocumentsCommand.RequestParamsSchema = zod_1.z.object({
|
|
9
|
+
agentId: zod_1.z.string().uuid(),
|
|
10
|
+
});
|
|
11
|
+
SearchAgentDocumentsCommand.RequestBodySchema = zod_1.z.object({
|
|
12
|
+
query: zod_1.z.string().min(1),
|
|
13
|
+
limit: zod_1.z.coerce.number().optional(),
|
|
14
|
+
threshold: zod_1.z.coerce.number().optional(),
|
|
15
|
+
});
|
|
16
|
+
SearchAgentDocumentsCommand.ResponseSchema = zod_1.z.object({
|
|
17
|
+
data: agent_document_search_result_schema_1.AgentDocumentSearchResultSchema,
|
|
18
|
+
});
|
|
19
|
+
})(SearchAgentDocumentsCommand || (exports.SearchAgentDocumentsCommand = SearchAgentDocumentsCommand = {}));
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UploadAgentDocumentCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const enums_1 = require("../../../constants/agents/enums");
|
|
6
|
+
var UploadAgentDocumentCommand;
|
|
7
|
+
(function (UploadAgentDocumentCommand) {
|
|
8
|
+
UploadAgentDocumentCommand.RequestParamsSchema = zod_1.z.object({
|
|
9
|
+
agentId: zod_1.z.string().uuid(),
|
|
10
|
+
});
|
|
11
|
+
UploadAgentDocumentCommand.ResponseDataSchema = zod_1.z.object({
|
|
12
|
+
documentId: zod_1.z.string().uuid(),
|
|
13
|
+
filename: zod_1.z.string(),
|
|
14
|
+
status: zod_1.z.nativeEnum(enums_1.AGENT_DOCUMENT_STATUS),
|
|
15
|
+
});
|
|
16
|
+
UploadAgentDocumentCommand.ResponseSchema = zod_1.z.object({
|
|
17
|
+
data: UploadAgentDocumentCommand.ResponseDataSchema,
|
|
18
|
+
});
|
|
19
|
+
})(UploadAgentDocumentCommand || (exports.UploadAgentDocumentCommand = UploadAgentDocumentCommand = {}));
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateAgentLeadCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const agent_lead_schema_1 = require("../../../models/agents/agent-lead.schema");
|
|
6
|
+
var CreateAgentLeadCommand;
|
|
7
|
+
(function (CreateAgentLeadCommand) {
|
|
8
|
+
CreateAgentLeadCommand.RequestBodySchema = zod_1.z.object({
|
|
9
|
+
data: zod_1.z.record(zod_1.z.string(), zod_1.z.string()),
|
|
10
|
+
dialogId: zod_1.z.string().uuid(),
|
|
11
|
+
leadFormId: zod_1.z.string().uuid(),
|
|
12
|
+
});
|
|
13
|
+
CreateAgentLeadCommand.ResponseSchema = zod_1.z.object({
|
|
14
|
+
data: agent_lead_schema_1.AgentLeadSchema,
|
|
15
|
+
});
|
|
16
|
+
})(CreateAgentLeadCommand || (exports.CreateAgentLeadCommand = CreateAgentLeadCommand = {}));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteAgentLeadCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var DeleteAgentLeadCommand;
|
|
6
|
+
(function (DeleteAgentLeadCommand) {
|
|
7
|
+
DeleteAgentLeadCommand.RequestParamsSchema = zod_1.z.object({
|
|
8
|
+
id: zod_1.z.string().uuid(),
|
|
9
|
+
});
|
|
10
|
+
DeleteAgentLeadCommand.ResponseSchema = zod_1.z.object({
|
|
11
|
+
success: zod_1.z.boolean(),
|
|
12
|
+
});
|
|
13
|
+
})(DeleteAgentLeadCommand || (exports.DeleteAgentLeadCommand = DeleteAgentLeadCommand = {}));
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindAgentLeadsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const agent_lead_find_result_schema_1 = require("../../../models/agents/agent-lead-find-result.schema");
|
|
6
|
+
var FindAgentLeadsCommand;
|
|
7
|
+
(function (FindAgentLeadsCommand) {
|
|
8
|
+
FindAgentLeadsCommand.RequestQuerySchema = zod_1.z.object({
|
|
9
|
+
dialogId: zod_1.z.string().uuid().optional(),
|
|
10
|
+
limit: zod_1.z.coerce.number().optional(),
|
|
11
|
+
offset: zod_1.z.coerce.number().optional(),
|
|
12
|
+
});
|
|
13
|
+
FindAgentLeadsCommand.ResponseSchema = zod_1.z.object({
|
|
14
|
+
data: agent_lead_find_result_schema_1.AgentLeadFindResultSchema,
|
|
15
|
+
});
|
|
16
|
+
})(FindAgentLeadsCommand || (exports.FindAgentLeadsCommand = FindAgentLeadsCommand = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetAgentLeadByIdCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const agent_lead_schema_1 = require("../../../models/agents/agent-lead.schema");
|
|
6
|
+
var GetAgentLeadByIdCommand;
|
|
7
|
+
(function (GetAgentLeadByIdCommand) {
|
|
8
|
+
GetAgentLeadByIdCommand.RequestParamsSchema = zod_1.z.object({
|
|
9
|
+
id: zod_1.z.string().uuid(),
|
|
10
|
+
});
|
|
11
|
+
GetAgentLeadByIdCommand.ResponseSchema = zod_1.z.object({
|
|
12
|
+
data: agent_lead_schema_1.AgentLeadSchema,
|
|
13
|
+
});
|
|
14
|
+
})(GetAgentLeadByIdCommand || (exports.GetAgentLeadByIdCommand = GetAgentLeadByIdCommand = {}));
|
|
@@ -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-leads.command"), exports);
|
|
18
|
+
__exportStar(require("./create-agent-lead.command"), exports);
|
|
19
|
+
__exportStar(require("./get-agent-lead-by-id.command"), exports);
|
|
20
|
+
__exportStar(require("./update-agent-lead.command"), exports);
|
|
21
|
+
__exportStar(require("./delete-agent-lead.command"), exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateAgentLeadCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const agent_lead_schema_1 = require("../../../models/agents/agent-lead.schema");
|
|
6
|
+
var UpdateAgentLeadCommand;
|
|
7
|
+
(function (UpdateAgentLeadCommand) {
|
|
8
|
+
UpdateAgentLeadCommand.RequestParamsSchema = zod_1.z.object({
|
|
9
|
+
id: zod_1.z.string().uuid(),
|
|
10
|
+
});
|
|
11
|
+
UpdateAgentLeadCommand.RequestBodySchema = zod_1.z.object({
|
|
12
|
+
data: zod_1.z.record(zod_1.z.string(), zod_1.z.string()),
|
|
13
|
+
dialogId: zod_1.z.string().uuid(),
|
|
14
|
+
leadFormId: zod_1.z.string().uuid(),
|
|
15
|
+
});
|
|
16
|
+
UpdateAgentLeadCommand.ResponseSchema = zod_1.z.object({
|
|
17
|
+
data: agent_lead_schema_1.AgentLeadSchema,
|
|
18
|
+
});
|
|
19
|
+
})(UpdateAgentLeadCommand || (exports.UpdateAgentLeadCommand = UpdateAgentLeadCommand = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteAgentLeadFormCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var DeleteAgentLeadFormCommand;
|
|
6
|
+
(function (DeleteAgentLeadFormCommand) {
|
|
7
|
+
DeleteAgentLeadFormCommand.RequestParamsSchema = zod_1.z.object({
|
|
8
|
+
agentId: zod_1.z.string().uuid(),
|
|
9
|
+
id: zod_1.z.string().uuid(),
|
|
10
|
+
});
|
|
11
|
+
DeleteAgentLeadFormCommand.ResponseSchema = zod_1.z.object({
|
|
12
|
+
success: zod_1.z.boolean(),
|
|
13
|
+
});
|
|
14
|
+
})(DeleteAgentLeadFormCommand || (exports.DeleteAgentLeadFormCommand = DeleteAgentLeadFormCommand = {}));
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindAgentLeadFormsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const agent_lead_form_schema_1 = require("../../../models/agents/agent-lead-form.schema");
|
|
6
|
+
var FindAgentLeadFormsCommand;
|
|
7
|
+
(function (FindAgentLeadFormsCommand) {
|
|
8
|
+
FindAgentLeadFormsCommand.RequestQuerySchema = zod_1.z.object({
|
|
9
|
+
agentId: zod_1.z.string().uuid().optional(),
|
|
10
|
+
limit: zod_1.z.coerce.number().optional(),
|
|
11
|
+
offset: zod_1.z.coerce.number().optional(),
|
|
12
|
+
});
|
|
13
|
+
FindAgentLeadFormsCommand.ResponseSchema = zod_1.z.object({
|
|
14
|
+
data: zod_1.z.array(agent_lead_form_schema_1.AgentLeadFormSchema),
|
|
15
|
+
});
|
|
16
|
+
})(FindAgentLeadFormsCommand || (exports.FindAgentLeadFormsCommand = FindAgentLeadFormsCommand = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetAgentLeadFormByAgentCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const agent_lead_form_schema_1 = require("../../../models/agents/agent-lead-form.schema");
|
|
6
|
+
var GetAgentLeadFormByAgentCommand;
|
|
7
|
+
(function (GetAgentLeadFormByAgentCommand) {
|
|
8
|
+
GetAgentLeadFormByAgentCommand.RequestParamsSchema = zod_1.z.object({
|
|
9
|
+
agentId: zod_1.z.string().uuid(),
|
|
10
|
+
});
|
|
11
|
+
GetAgentLeadFormByAgentCommand.ResponseSchema = zod_1.z.object({
|
|
12
|
+
data: agent_lead_form_schema_1.AgentLeadFormSchema.nullable(),
|
|
13
|
+
});
|
|
14
|
+
})(GetAgentLeadFormByAgentCommand || (exports.GetAgentLeadFormByAgentCommand = GetAgentLeadFormByAgentCommand = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetAgentLeadFormByIdCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const agent_lead_form_schema_1 = require("../../../models/agents/agent-lead-form.schema");
|
|
6
|
+
var GetAgentLeadFormByIdCommand;
|
|
7
|
+
(function (GetAgentLeadFormByIdCommand) {
|
|
8
|
+
GetAgentLeadFormByIdCommand.RequestParamsSchema = zod_1.z.object({
|
|
9
|
+
id: zod_1.z.string().uuid(),
|
|
10
|
+
});
|
|
11
|
+
GetAgentLeadFormByIdCommand.ResponseSchema = zod_1.z.object({
|
|
12
|
+
data: agent_lead_form_schema_1.AgentLeadFormSchema,
|
|
13
|
+
});
|
|
14
|
+
})(GetAgentLeadFormByIdCommand || (exports.GetAgentLeadFormByIdCommand = GetAgentLeadFormByIdCommand = {}));
|
|
@@ -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-lead-forms.command"), exports);
|
|
18
|
+
__exportStar(require("./get-agent-lead-form-by-agent.command"), exports);
|
|
19
|
+
__exportStar(require("./get-agent-lead-form-by-id.command"), exports);
|
|
20
|
+
__exportStar(require("./upsert-agent-lead-form.command"), exports);
|
|
21
|
+
__exportStar(require("./delete-agent-lead-form.command"), exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpsertAgentLeadFormCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const agent_lead_form_field_schema_1 = require("../../../models/agents/agent-lead-form-field.schema");
|
|
6
|
+
const agent_lead_form_schema_1 = require("../../../models/agents/agent-lead-form.schema");
|
|
7
|
+
var UpsertAgentLeadFormCommand;
|
|
8
|
+
(function (UpsertAgentLeadFormCommand) {
|
|
9
|
+
UpsertAgentLeadFormCommand.RequestParamsSchema = zod_1.z.object({
|
|
10
|
+
agentId: zod_1.z.string().uuid(),
|
|
11
|
+
});
|
|
12
|
+
UpsertAgentLeadFormCommand.RequestBodySchema = zod_1.z.object({
|
|
13
|
+
fields: zod_1.z.array(agent_lead_form_field_schema_1.AgentLeadFormFieldSchema),
|
|
14
|
+
collectionTrigger: zod_1.z.string().nullable(),
|
|
15
|
+
});
|
|
16
|
+
UpsertAgentLeadFormCommand.ResponseSchema = zod_1.z.object({
|
|
17
|
+
data: agent_lead_form_schema_1.AgentLeadFormSchema,
|
|
18
|
+
});
|
|
19
|
+
})(UpsertAgentLeadFormCommand || (exports.UpsertAgentLeadFormCommand = UpsertAgentLeadFormCommand = {}));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateAgentTemplateCategoryCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const agent_template_category_schema_1 = require("../../../models/agents/agent-template-category.schema");
|
|
6
|
+
var CreateAgentTemplateCategoryCommand;
|
|
7
|
+
(function (CreateAgentTemplateCategoryCommand) {
|
|
8
|
+
CreateAgentTemplateCategoryCommand.RequestBodySchema = zod_1.z.object({
|
|
9
|
+
slug: zod_1.z.string(),
|
|
10
|
+
name: zod_1.z.string(),
|
|
11
|
+
description: zod_1.z.string(),
|
|
12
|
+
order: zod_1.z.number(),
|
|
13
|
+
});
|
|
14
|
+
CreateAgentTemplateCategoryCommand.ResponseSchema = zod_1.z.object({
|
|
15
|
+
data: agent_template_category_schema_1.AgentTemplateCategorySchema,
|
|
16
|
+
});
|
|
17
|
+
})(CreateAgentTemplateCategoryCommand || (exports.CreateAgentTemplateCategoryCommand = CreateAgentTemplateCategoryCommand = {}));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateAgentTemplateInstructionCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const agent_template_instruction_schema_1 = require("../../../models/agents/agent-template-instruction.schema");
|
|
6
|
+
var CreateAgentTemplateInstructionCommand;
|
|
7
|
+
(function (CreateAgentTemplateInstructionCommand) {
|
|
8
|
+
CreateAgentTemplateInstructionCommand.RequestParamsSchema = zod_1.z.object({
|
|
9
|
+
templateId: zod_1.z.string().uuid(),
|
|
10
|
+
});
|
|
11
|
+
CreateAgentTemplateInstructionCommand.RequestBodySchema = zod_1.z.object({
|
|
12
|
+
title: zod_1.z.string(),
|
|
13
|
+
description: zod_1.z.string(),
|
|
14
|
+
prompt: zod_1.z.string(),
|
|
15
|
+
order: zod_1.z.number().optional(),
|
|
16
|
+
});
|
|
17
|
+
CreateAgentTemplateInstructionCommand.ResponseSchema = zod_1.z.object({
|
|
18
|
+
data: agent_template_instruction_schema_1.AgentTemplateInstructionSchema,
|
|
19
|
+
});
|
|
20
|
+
})(CreateAgentTemplateInstructionCommand || (exports.CreateAgentTemplateInstructionCommand = CreateAgentTemplateInstructionCommand = {}));
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateAgentTemplateCommand = 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 CreateAgentTemplateCommand;
|
|
8
|
+
(function (CreateAgentTemplateCommand) {
|
|
9
|
+
CreateAgentTemplateCommand.RequestBodySchema = zod_1.z.object({
|
|
10
|
+
categoryId: zod_1.z.string().uuid(),
|
|
11
|
+
name: zod_1.z.string(),
|
|
12
|
+
description: zod_1.z.string(),
|
|
13
|
+
iconUrl: zod_1.z.string().nullable().optional(),
|
|
14
|
+
systemPrompt: zod_1.z.string().nullable().optional(),
|
|
15
|
+
interactionMode: zod_1.z.nativeEnum(agent_interaction_mode_enum_1.AGENT_INTERACTION_MODE).optional(),
|
|
16
|
+
order: zod_1.z.number().optional(),
|
|
17
|
+
});
|
|
18
|
+
CreateAgentTemplateCommand.ResponseSchema = zod_1.z.object({
|
|
19
|
+
data: agent_template_schema_1.AgentTemplateSchema,
|
|
20
|
+
});
|
|
21
|
+
})(CreateAgentTemplateCommand || (exports.CreateAgentTemplateCommand = CreateAgentTemplateCommand = {}));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteAgentTemplateCategoryCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var DeleteAgentTemplateCategoryCommand;
|
|
6
|
+
(function (DeleteAgentTemplateCategoryCommand) {
|
|
7
|
+
DeleteAgentTemplateCategoryCommand.RequestParamsSchema = zod_1.z.object({
|
|
8
|
+
id: zod_1.z.string().uuid(),
|
|
9
|
+
});
|
|
10
|
+
DeleteAgentTemplateCategoryCommand.ResponseSchema = zod_1.z.object({
|
|
11
|
+
success: zod_1.z.boolean(),
|
|
12
|
+
});
|
|
13
|
+
})(DeleteAgentTemplateCategoryCommand || (exports.DeleteAgentTemplateCategoryCommand = DeleteAgentTemplateCategoryCommand = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteAgentTemplateInstructionCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var DeleteAgentTemplateInstructionCommand;
|
|
6
|
+
(function (DeleteAgentTemplateInstructionCommand) {
|
|
7
|
+
DeleteAgentTemplateInstructionCommand.RequestParamsSchema = zod_1.z.object({
|
|
8
|
+
templateId: zod_1.z.string().uuid(),
|
|
9
|
+
id: zod_1.z.string().uuid(),
|
|
10
|
+
});
|
|
11
|
+
DeleteAgentTemplateInstructionCommand.ResponseSchema = zod_1.z.object({
|
|
12
|
+
success: zod_1.z.boolean(),
|
|
13
|
+
});
|
|
14
|
+
})(DeleteAgentTemplateInstructionCommand || (exports.DeleteAgentTemplateInstructionCommand = DeleteAgentTemplateInstructionCommand = {}));
|
|
@@ -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 = {}));
|