@purpleschool/gptbot 0.13.21 → 0.14.1-stage-2
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-dialog.ts +0 -11
- package/api/controllers/http/agents/agent-lead-form.ts +0 -2
- package/api/controllers/http/agents/agent-lead.ts +0 -1
- package/api/controllers/http/agents/agent-template.ts +0 -4
- package/api/controllers/http/agents/agent-tool.ts +1 -2
- package/api/controllers/http/agents/agent.ts +3 -0
- package/api/controllers/http/agents/index.ts +0 -1
- package/api/controllers/http/b2b-compatible.ts +14 -0
- package/api/controllers/http/b2b-usage-log.ts +5 -0
- package/api/controllers/http/index.ts +2 -2
- package/api/routes.ts +19 -38
- package/build/api/controllers/http/agents/agent-dialog.js +0 -7
- package/build/api/controllers/http/agents/agent-lead-form.js +0 -2
- package/build/api/controllers/http/agents/agent-lead.js +0 -1
- package/build/api/controllers/http/agents/agent-template.js +0 -4
- package/build/api/controllers/http/agents/agent-tool.js +1 -2
- package/build/api/controllers/http/agents/agent.js +2 -0
- package/build/api/controllers/http/agents/index.js +0 -1
- package/build/api/controllers/http/b2b-compatible.js +15 -0
- package/build/api/controllers/http/b2b-usage-log.js +7 -0
- package/build/api/controllers/http/index.js +2 -2
- package/build/api/routes.js +16 -22
- package/build/commands/agents/agent-dialog/find-agent-dialogs.command.js +0 -1
- package/build/commands/agents/agent-dialog/index.js +0 -5
- package/build/commands/agents/agent-dialog/send-cabinet-message.command.js +4 -4
- package/build/commands/agents/agent-lead/find-agent-leads.command.js +4 -2
- package/build/commands/agents/agent-template/index.js +0 -1
- package/build/commands/agents/agent-tool/find-agent-tools-catalog.command.js +0 -2
- package/build/commands/agents/agent-tool/find-agent-tools.command.js +0 -2
- package/build/commands/agents/agents/index.js +0 -1
- package/build/commands/ai-studio/canvas-tool/index.js +0 -1
- package/build/commands/b2b/send-text-request.command.js +8 -1
- package/build/commands/b2b-compatible/anthropic-files.command.js +21 -0
- package/build/commands/b2b-compatible/anthropic-messages.command.js +217 -0
- package/build/commands/b2b-compatible/anthropic-models.command.js +26 -0
- package/build/commands/b2b-compatible/common.schemas.js +46 -0
- package/build/commands/{ai-studio/canvas-tool/var-gen → b2b-compatible}/index.js +7 -3
- package/build/commands/b2b-compatible/openai-files.command.js +26 -0
- package/build/commands/b2b-compatible/openai-models.command.js +24 -0
- package/build/commands/b2b-compatible/openai-responses.command.js +171 -0
- package/build/commands/b2b-usage-log/get-b2b-usage-statistics.command.js +111 -0
- package/build/{constants/photo-studio/enums → commands/b2b-usage-log}/index.js +1 -1
- package/build/commands/index.js +2 -1
- package/build/constants/b2b/enums/b2b-debit-status.enum.js +9 -0
- package/build/constants/b2b/enums/b2b-endpoint-family.enum.js +9 -0
- package/build/constants/b2b/enums/b2b-statistics-granularity.enum.js +8 -0
- package/build/constants/b2b/enums/b2b-statistics-period.enum.js +13 -0
- package/build/constants/b2b/enums/b2b-usage-operation.enum.js +8 -0
- package/build/constants/b2b/enums/b2b-usage-spend-component.enum.js +12 -0
- package/build/constants/b2b/enums/b2b-usage-status.enum.js +8 -0
- package/build/{models/photo-studio → constants/b2b/enums}/index.js +7 -4
- package/build/constants/index.js +1 -1
- package/build/models/agents/index.js +0 -2
- package/build/models/b2b/b2b-usage-statistics.schema.js +69 -0
- package/build/models/b2b/index.js +1 -0
- package/build/models/canvas-node.schema.js +2 -2
- package/build/models/file.schema.js +1 -7
- package/build/models/index.js +0 -1
- package/build/models/tools/image-generation/image-generation-job.schema.js +0 -3
- package/commands/agents/agent-dialog/find-agent-dialogs.command.ts +0 -1
- package/commands/agents/agent-dialog/index.ts +0 -5
- package/commands/agents/agent-dialog/send-cabinet-message.command.ts +10 -18
- package/commands/agents/agent-lead/find-agent-leads.command.ts +4 -2
- package/commands/agents/agent-template/index.ts +0 -1
- package/commands/agents/agent-tool/find-agent-tools-catalog.command.ts +0 -2
- package/commands/agents/agent-tool/find-agent-tools.command.ts +0 -2
- package/commands/agents/agents/index.ts +0 -1
- package/commands/ai-studio/canvas-tool/index.ts +0 -1
- package/commands/b2b/send-text-request.command.ts +10 -1
- package/commands/b2b-compatible/anthropic-files.command.ts +29 -0
- package/commands/b2b-compatible/anthropic-messages.command.ts +244 -0
- package/commands/b2b-compatible/anthropic-models.command.ts +31 -0
- package/commands/b2b-compatible/common.schemas.ts +55 -0
- package/commands/b2b-compatible/index.ts +7 -0
- package/commands/b2b-compatible/openai-files.command.ts +37 -0
- package/commands/b2b-compatible/openai-models.command.ts +29 -0
- package/commands/b2b-compatible/openai-responses.command.ts +191 -0
- package/commands/b2b-usage-log/get-b2b-usage-statistics.command.ts +128 -0
- package/commands/b2b-usage-log/index.ts +1 -0
- package/commands/index.ts +2 -1
- package/constants/b2b/enums/b2b-debit-status.enum.ts +5 -0
- package/constants/b2b/enums/b2b-endpoint-family.enum.ts +5 -0
- package/constants/b2b/enums/b2b-statistics-granularity.enum.ts +4 -0
- package/constants/b2b/enums/b2b-statistics-period.enum.ts +9 -0
- package/constants/b2b/enums/b2b-usage-operation.enum.ts +4 -0
- package/constants/b2b/enums/b2b-usage-spend-component.enum.ts +8 -0
- package/constants/b2b/enums/b2b-usage-status.enum.ts +4 -0
- package/constants/b2b/enums/index.ts +7 -0
- package/constants/index.ts +1 -1
- package/models/agents/index.ts +0 -2
- package/models/b2b/b2b-usage-statistics.schema.ts +81 -0
- package/models/b2b/index.ts +1 -0
- package/models/canvas-node.schema.ts +2 -2
- package/models/file.schema.ts +0 -8
- package/models/index.ts +0 -1
- package/models/tools/image-generation/image-generation-job.schema.ts +0 -3
- package/package.json +1 -1
- package/api/controllers/http/agents/agent-statistics.ts +0 -5
- package/api/controllers/http/canvas-var-generation.ts +0 -7
- package/api/controllers/http/photo-studio.ts +0 -21
- package/build/api/controllers/http/agents/agent-statistics.js +0 -7
- package/build/api/controllers/http/canvas-var-generation.js +0 -9
- package/build/api/controllers/http/photo-studio.js +0 -21
- package/build/commands/agents/agent-dialog/get-cabinet-config.command.js +0 -12
- package/build/commands/agents/agent-dialog/get-cabinet-price-preview.command.js +0 -28
- package/build/commands/agents/agent-dialog/get-dialog-context-length.command.js +0 -30
- package/build/commands/agents/agent-dialog/rename-agent-dialog.command.js +0 -17
- package/build/commands/agents/agent-dialog/stop-cabinet-stream.command.js +0 -15
- package/build/commands/agents/agent-template/get-agent-template-instructions-by-template.command.js +0 -14
- package/build/commands/agents/agents/get-agent-statistics.command.js +0 -20
- package/build/commands/ai-studio/canvas-tool/var-gen/generate-variables.command.js +0 -18
- package/build/commands/ai-studio/canvas-tool/var-gen/get-var-gen-config.command.js +0 -11
- package/build/commands/ai-studio/canvas-tool/var-gen/get-var-gen-price.command.js +0 -18
- package/build/commands/photo-studio/add-photo-studio-checkpoint.command.js +0 -17
- package/build/commands/photo-studio/clear-photo-studio-checkpoints.command.js +0 -12
- package/build/commands/photo-studio/create-photo-studio-canvas.command.js +0 -15
- package/build/commands/photo-studio/delete-photo-studio-canvas.command.js +0 -11
- package/build/commands/photo-studio/delete-photo-studio-checkpoint.command.js +0 -14
- package/build/commands/photo-studio/execute-photo-studio-action.command.js +0 -47
- package/build/commands/photo-studio/find-photo-studio-canvas-by-uuid.query.js +0 -12
- package/build/commands/photo-studio/find-photo-studio-canvases.query.js +0 -18
- package/build/commands/photo-studio/find-photo-studio-checkpoints.query.js +0 -12
- package/build/commands/photo-studio/find-photo-studio-job-by-id.query.js +0 -32
- package/build/commands/photo-studio/find-photo-studio-jobs.query.js +0 -18
- package/build/commands/photo-studio/get-photo-studio-actions.query.js +0 -11
- package/build/commands/photo-studio/index.js +0 -31
- package/build/commands/photo-studio/save-photo-studio-canvas.command.js +0 -18
- package/build/commands/photo-studio/update-photo-studio-canvas.command.js +0 -15
- package/build/commands/photo-studio/update-photo-studio-checkpoint.command.js +0 -19
- package/build/constants/photo-studio/enums/photo-studio-checkpoint-action-type.enum.js +0 -11
- package/build/models/agents/agent-statistics.schema.js +0 -33
- package/build/models/agents/message-attachment.schema.js +0 -21
- package/build/models/photo-studio/photo-studio-action.schema.js +0 -17
- package/build/models/photo-studio/photo-studio-checkpoint.schema.js +0 -21
- package/build/models/photo-studio/photo-studio-image-node.schema.js +0 -19
- package/build/models/photo-studio/photo-studio.schema.js +0 -15
- package/commands/agents/agent-dialog/get-cabinet-config.command.ts +0 -11
- package/commands/agents/agent-dialog/get-cabinet-price-preview.command.ts +0 -30
- package/commands/agents/agent-dialog/get-dialog-context-length.command.ts +0 -33
- package/commands/agents/agent-dialog/rename-agent-dialog.command.ts +0 -19
- package/commands/agents/agent-dialog/stop-cabinet-stream.command.ts +0 -15
- package/commands/agents/agent-template/get-agent-template-instructions-by-template.command.ts +0 -14
- package/commands/agents/agents/get-agent-statistics.command.ts +0 -28
- package/commands/ai-studio/canvas-tool/var-gen/generate-variables.command.ts +0 -20
- package/commands/ai-studio/canvas-tool/var-gen/get-var-gen-config.command.ts +0 -9
- package/commands/ai-studio/canvas-tool/var-gen/get-var-gen-price.command.ts +0 -18
- package/commands/ai-studio/canvas-tool/var-gen/index.ts +0 -3
- package/commands/photo-studio/add-photo-studio-checkpoint.command.ts +0 -23
- package/commands/photo-studio/clear-photo-studio-checkpoints.command.ts +0 -12
- package/commands/photo-studio/create-photo-studio-canvas.command.ts +0 -16
- package/commands/photo-studio/delete-photo-studio-canvas.command.ts +0 -11
- package/commands/photo-studio/delete-photo-studio-checkpoint.command.ts +0 -14
- package/commands/photo-studio/execute-photo-studio-action.command.ts +0 -49
- package/commands/photo-studio/find-photo-studio-canvas-by-uuid.query.ts +0 -12
- package/commands/photo-studio/find-photo-studio-canvases.query.ts +0 -20
- package/commands/photo-studio/find-photo-studio-checkpoints.query.ts +0 -12
- package/commands/photo-studio/find-photo-studio-job-by-id.query.ts +0 -36
- package/commands/photo-studio/find-photo-studio-jobs.query.ts +0 -20
- package/commands/photo-studio/get-photo-studio-actions.query.ts +0 -10
- package/commands/photo-studio/index.ts +0 -15
- package/commands/photo-studio/save-photo-studio-canvas.command.ts +0 -24
- package/commands/photo-studio/update-photo-studio-canvas.command.ts +0 -17
- package/commands/photo-studio/update-photo-studio-checkpoint.command.ts +0 -25
- package/constants/photo-studio/enums/index.ts +0 -1
- package/constants/photo-studio/enums/photo-studio-checkpoint-action-type.enum.ts +0 -7
- package/models/agents/agent-statistics.schema.ts +0 -38
- package/models/agents/message-attachment.schema.ts +0 -22
- package/models/photo-studio/index.ts +0 -4
- package/models/photo-studio/photo-studio-action.schema.ts +0 -18
- package/models/photo-studio/photo-studio-checkpoint.schema.ts +0 -22
- package/models/photo-studio/photo-studio-image-node.schema.ts +0 -22
- package/models/photo-studio/photo-studio.schema.ts +0 -16
- /package/build/constants/{photo-studio → b2b}/index.js +0 -0
- /package/constants/{photo-studio → b2b}/index.ts +0 -0
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetVarGenPriceCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
var GetVarGenPriceCommand;
|
|
6
|
-
(function (GetVarGenPriceCommand) {
|
|
7
|
-
GetVarGenPriceCommand.RequestSchema = zod_1.z.object({
|
|
8
|
-
modelId: zod_1.z.string().uuid(),
|
|
9
|
-
promptLength: zod_1.z.coerce.number().int().positive(),
|
|
10
|
-
});
|
|
11
|
-
GetVarGenPriceCommand.ResponseSchema = zod_1.z.object({
|
|
12
|
-
data: zod_1.z.object({
|
|
13
|
-
price: zod_1.z.number(),
|
|
14
|
-
charsUntilNextPriceIncrease: zod_1.z.number().int().nonnegative().nullable().optional(),
|
|
15
|
-
charsUntilNextPriceDecrease: zod_1.z.number().int().nonnegative().nullable().optional(),
|
|
16
|
-
}),
|
|
17
|
-
});
|
|
18
|
-
})(GetVarGenPriceCommand || (exports.GetVarGenPriceCommand = GetVarGenPriceCommand = {}));
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AddPhotoStudioCheckpointCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const models_1 = require("../../models");
|
|
6
|
-
var AddPhotoStudioCheckpointCommand;
|
|
7
|
-
(function (AddPhotoStudioCheckpointCommand) {
|
|
8
|
-
AddPhotoStudioCheckpointCommand.RequestParamSchema = zod_1.z.object({ canvasId: zod_1.z.string().uuid() });
|
|
9
|
-
AddPhotoStudioCheckpointCommand.RequestSchema = zod_1.z.object({
|
|
10
|
-
action: models_1.PhotoStudioCheckpointActionSchema,
|
|
11
|
-
images: zod_1.z.array(models_1.PhotoStudioImageInputSchema).optional(),
|
|
12
|
-
baseCheckpointSequence: zod_1.z.number().int().positive().optional(),
|
|
13
|
-
});
|
|
14
|
-
AddPhotoStudioCheckpointCommand.ResponseSchema = zod_1.z.object({
|
|
15
|
-
data: models_1.PhotoStudioCheckpointSchema,
|
|
16
|
-
});
|
|
17
|
-
})(AddPhotoStudioCheckpointCommand || (exports.AddPhotoStudioCheckpointCommand = AddPhotoStudioCheckpointCommand = {}));
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ClearPhotoStudioCheckpointsCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const models_1 = require("../../models");
|
|
6
|
-
var ClearPhotoStudioCheckpointsCommand;
|
|
7
|
-
(function (ClearPhotoStudioCheckpointsCommand) {
|
|
8
|
-
ClearPhotoStudioCheckpointsCommand.RequestParamSchema = zod_1.z.object({ canvasId: zod_1.z.string().uuid() });
|
|
9
|
-
ClearPhotoStudioCheckpointsCommand.ResponseSchema = zod_1.z.object({
|
|
10
|
-
data: zod_1.z.array(models_1.PhotoStudioCheckpointSchema),
|
|
11
|
-
});
|
|
12
|
-
})(ClearPhotoStudioCheckpointsCommand || (exports.ClearPhotoStudioCheckpointsCommand = ClearPhotoStudioCheckpointsCommand = {}));
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CreatePhotoStudioCanvasCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const models_1 = require("../../models");
|
|
6
|
-
var CreatePhotoStudioCanvasCommand;
|
|
7
|
-
(function (CreatePhotoStudioCanvasCommand) {
|
|
8
|
-
CreatePhotoStudioCanvasCommand.RequestSchema = zod_1.z.object({
|
|
9
|
-
name: zod_1.z.string().trim().min(1).optional(),
|
|
10
|
-
images: zod_1.z.array(models_1.PhotoStudioImageInputSchema).default([]).optional(),
|
|
11
|
-
});
|
|
12
|
-
CreatePhotoStudioCanvasCommand.ResponseSchema = zod_1.z.object({
|
|
13
|
-
data: models_1.PhotoStudioCanvasWithImagesSchema,
|
|
14
|
-
});
|
|
15
|
-
})(CreatePhotoStudioCanvasCommand || (exports.CreatePhotoStudioCanvasCommand = CreatePhotoStudioCanvasCommand = {}));
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DeletePhotoStudioCanvasCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
var DeletePhotoStudioCanvasCommand;
|
|
6
|
-
(function (DeletePhotoStudioCanvasCommand) {
|
|
7
|
-
DeletePhotoStudioCanvasCommand.RequestParamSchema = zod_1.z.object({ uuid: zod_1.z.string().uuid() });
|
|
8
|
-
DeletePhotoStudioCanvasCommand.ResponseSchema = zod_1.z.object({
|
|
9
|
-
data: zod_1.z.object({ isDeleted: zod_1.z.boolean() }),
|
|
10
|
-
});
|
|
11
|
-
})(DeletePhotoStudioCanvasCommand || (exports.DeletePhotoStudioCanvasCommand = DeletePhotoStudioCanvasCommand = {}));
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DeletePhotoStudioCheckpointCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
var DeletePhotoStudioCheckpointCommand;
|
|
6
|
-
(function (DeletePhotoStudioCheckpointCommand) {
|
|
7
|
-
DeletePhotoStudioCheckpointCommand.RequestParamSchema = zod_1.z.object({
|
|
8
|
-
canvasId: zod_1.z.string().uuid(),
|
|
9
|
-
checkpointId: zod_1.z.string().uuid(),
|
|
10
|
-
});
|
|
11
|
-
DeletePhotoStudioCheckpointCommand.ResponseSchema = zod_1.z.object({
|
|
12
|
-
data: zod_1.z.object({ isDeleted: zod_1.z.boolean() }),
|
|
13
|
-
});
|
|
14
|
-
})(DeletePhotoStudioCheckpointCommand || (exports.DeletePhotoStudioCheckpointCommand = DeletePhotoStudioCheckpointCommand = {}));
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ExecutePhotoStudioActionCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const constants_1 = require("../../constants");
|
|
6
|
-
const image_generation_resolution_enum_1 = require("../../constants/tool-image-generation/enums/image-generation-resolution.enum");
|
|
7
|
-
const models_1 = require("../../models");
|
|
8
|
-
var ExecutePhotoStudioActionCommand;
|
|
9
|
-
(function (ExecutePhotoStudioActionCommand) {
|
|
10
|
-
ExecutePhotoStudioActionCommand.RequestSchema = zod_1.z.object({
|
|
11
|
-
actionAlias: zod_1.z.string().min(1),
|
|
12
|
-
modelId: zod_1.z.string().uuid(),
|
|
13
|
-
prompt: zod_1.z.string().optional(),
|
|
14
|
-
params: zod_1.z
|
|
15
|
-
.object({
|
|
16
|
-
imageUrls: zod_1.z.array(zod_1.z.string().uuid()).optional(),
|
|
17
|
-
enhancePrompt: zod_1.z.boolean().optional(),
|
|
18
|
-
resolution: zod_1.z.nativeEnum(image_generation_resolution_enum_1.IMAGE_GENERATION_RESOLUTION).optional(),
|
|
19
|
-
aspectRatio: zod_1.z.string().optional(),
|
|
20
|
-
effect: zod_1.z.string().optional(),
|
|
21
|
-
size: zod_1.z.enum(['2x', '4x', '8x']).optional(),
|
|
22
|
-
variationsCount: zod_1.z.union([zod_1.z.literal(2), zod_1.z.literal(3), zod_1.z.literal(4)]).optional(),
|
|
23
|
-
variationStrength: zod_1.z.enum(['light', 'medium', 'high']).optional(),
|
|
24
|
-
fontStyle: zod_1.z
|
|
25
|
-
.enum([
|
|
26
|
-
'calligraphy',
|
|
27
|
-
'handwritten',
|
|
28
|
-
'elegant',
|
|
29
|
-
'decorative',
|
|
30
|
-
'poster',
|
|
31
|
-
'engraving',
|
|
32
|
-
])
|
|
33
|
-
.optional(),
|
|
34
|
-
placement: zod_1.z.enum(['top', 'center', 'bottom']).optional(),
|
|
35
|
-
color: zod_1.z.string().optional(),
|
|
36
|
-
})
|
|
37
|
-
.default({}),
|
|
38
|
-
position: models_1.CanvasNodePositionSchema,
|
|
39
|
-
baseCheckpointSequence: zod_1.z.number().int().positive().optional(),
|
|
40
|
-
});
|
|
41
|
-
ExecutePhotoStudioActionCommand.PhotoStudioExecuteJobSchema = models_1.ToolJobSchema.extend({
|
|
42
|
-
toolType: zod_1.z.nativeEnum(constants_1.TOOL_CONTENT_TYPE),
|
|
43
|
-
});
|
|
44
|
-
ExecutePhotoStudioActionCommand.ResponseSchema = zod_1.z.object({
|
|
45
|
-
data: zod_1.z.array(ExecutePhotoStudioActionCommand.PhotoStudioExecuteJobSchema),
|
|
46
|
-
});
|
|
47
|
-
})(ExecutePhotoStudioActionCommand || (exports.ExecutePhotoStudioActionCommand = ExecutePhotoStudioActionCommand = {}));
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FindPhotoStudioCanvasByUuidQuery = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const models_1 = require("../../models");
|
|
6
|
-
var FindPhotoStudioCanvasByUuidQuery;
|
|
7
|
-
(function (FindPhotoStudioCanvasByUuidQuery) {
|
|
8
|
-
FindPhotoStudioCanvasByUuidQuery.RequestParamSchema = zod_1.z.object({ uuid: zod_1.z.string().uuid() });
|
|
9
|
-
FindPhotoStudioCanvasByUuidQuery.ResponseSchema = zod_1.z.object({
|
|
10
|
-
data: models_1.PhotoStudioCanvasWithImagesSchema,
|
|
11
|
-
});
|
|
12
|
-
})(FindPhotoStudioCanvasByUuidQuery || (exports.FindPhotoStudioCanvasByUuidQuery = FindPhotoStudioCanvasByUuidQuery = {}));
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FindPhotoStudioCanvasesQuery = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const models_1 = require("../../models");
|
|
6
|
-
var FindPhotoStudioCanvasesQuery;
|
|
7
|
-
(function (FindPhotoStudioCanvasesQuery) {
|
|
8
|
-
FindPhotoStudioCanvasesQuery.RequestSchema = zod_1.z.object({
|
|
9
|
-
limit: zod_1.z.coerce.number().int().min(1).default(20).optional(),
|
|
10
|
-
offset: zod_1.z.coerce.number().int().min(0).default(0).optional(),
|
|
11
|
-
name: zod_1.z.string().optional(),
|
|
12
|
-
});
|
|
13
|
-
FindPhotoStudioCanvasesQuery.ResponseSchema = zod_1.z.object({
|
|
14
|
-
data: zod_1.z.array(models_1.PhotoStudioCanvasSchema.extend({ countOfImages: zod_1.z.number() })),
|
|
15
|
-
page: zod_1.z.number(),
|
|
16
|
-
totalPages: zod_1.z.number(),
|
|
17
|
-
});
|
|
18
|
-
})(FindPhotoStudioCanvasesQuery || (exports.FindPhotoStudioCanvasesQuery = FindPhotoStudioCanvasesQuery = {}));
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FindPhotoStudioCheckpointsQuery = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const models_1 = require("../../models");
|
|
6
|
-
var FindPhotoStudioCheckpointsQuery;
|
|
7
|
-
(function (FindPhotoStudioCheckpointsQuery) {
|
|
8
|
-
FindPhotoStudioCheckpointsQuery.RequestParamSchema = zod_1.z.object({ canvasId: zod_1.z.string().uuid() });
|
|
9
|
-
FindPhotoStudioCheckpointsQuery.ResponseSchema = zod_1.z.object({
|
|
10
|
-
data: zod_1.z.array(models_1.PhotoStudioCheckpointSchema),
|
|
11
|
-
});
|
|
12
|
-
})(FindPhotoStudioCheckpointsQuery || (exports.FindPhotoStudioCheckpointsQuery = FindPhotoStudioCheckpointsQuery = {}));
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FindPhotoStudioJobByIdQuery = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const constants_1 = require("../../constants");
|
|
6
|
-
const models_1 = require("../../models");
|
|
7
|
-
var FindPhotoStudioJobByIdQuery;
|
|
8
|
-
(function (FindPhotoStudioJobByIdQuery) {
|
|
9
|
-
FindPhotoStudioJobByIdQuery.RequestParamSchema = zod_1.z.object({
|
|
10
|
-
canvasId: zod_1.z.string().uuid(),
|
|
11
|
-
jobId: zod_1.z.string().uuid(),
|
|
12
|
-
});
|
|
13
|
-
FindPhotoStudioJobByIdQuery.PhotoStudioJobImageSchema = zod_1.z.object({
|
|
14
|
-
fileId: zod_1.z.string().uuid(),
|
|
15
|
-
url: zod_1.z.string(),
|
|
16
|
-
originalName: zod_1.z.string().nullable().optional(),
|
|
17
|
-
resolution: models_1.FileResolutionSchema.nullable().optional(),
|
|
18
|
-
});
|
|
19
|
-
FindPhotoStudioJobByIdQuery.PhotoStudioJobSchema = zod_1.z.object({
|
|
20
|
-
jobId: zod_1.z.string().uuid(),
|
|
21
|
-
toolType: zod_1.z.nativeEnum(constants_1.TOOL_CONTENT_TYPE),
|
|
22
|
-
status: zod_1.z.nativeEnum(constants_1.TOOL_JOB_STATUS),
|
|
23
|
-
position: models_1.CanvasNodePositionSchema,
|
|
24
|
-
images: zod_1.z.array(FindPhotoStudioJobByIdQuery.PhotoStudioJobImageSchema),
|
|
25
|
-
error: zod_1.z.string().nullable(),
|
|
26
|
-
createdAt: zod_1.z.date(),
|
|
27
|
-
updatedAt: zod_1.z.date(),
|
|
28
|
-
});
|
|
29
|
-
FindPhotoStudioJobByIdQuery.ResponseSchema = zod_1.z.object({
|
|
30
|
-
data: FindPhotoStudioJobByIdQuery.PhotoStudioJobSchema,
|
|
31
|
-
});
|
|
32
|
-
})(FindPhotoStudioJobByIdQuery || (exports.FindPhotoStudioJobByIdQuery = FindPhotoStudioJobByIdQuery = {}));
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FindPhotoStudioJobsQuery = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const constants_1 = require("../../constants");
|
|
6
|
-
const find_photo_studio_job_by_id_query_1 = require("./find-photo-studio-job-by-id.query");
|
|
7
|
-
var FindPhotoStudioJobsQuery;
|
|
8
|
-
(function (FindPhotoStudioJobsQuery) {
|
|
9
|
-
FindPhotoStudioJobsQuery.RequestParamSchema = zod_1.z.object({
|
|
10
|
-
canvasId: zod_1.z.string().uuid(),
|
|
11
|
-
});
|
|
12
|
-
FindPhotoStudioJobsQuery.RequestQuerySchema = zod_1.z.object({
|
|
13
|
-
status: zod_1.z.nativeEnum(constants_1.TOOL_JOB_STATUS).optional(),
|
|
14
|
-
});
|
|
15
|
-
FindPhotoStudioJobsQuery.ResponseSchema = zod_1.z.object({
|
|
16
|
-
data: zod_1.z.array(find_photo_studio_job_by_id_query_1.FindPhotoStudioJobByIdQuery.PhotoStudioJobSchema),
|
|
17
|
-
});
|
|
18
|
-
})(FindPhotoStudioJobsQuery || (exports.FindPhotoStudioJobsQuery = FindPhotoStudioJobsQuery = {}));
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetPhotoStudioActionsQuery = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const models_1 = require("../../models");
|
|
6
|
-
var GetPhotoStudioActionsQuery;
|
|
7
|
-
(function (GetPhotoStudioActionsQuery) {
|
|
8
|
-
GetPhotoStudioActionsQuery.ResponseSchema = zod_1.z.object({
|
|
9
|
-
data: zod_1.z.array(models_1.PhotoStudioActionSchema),
|
|
10
|
-
});
|
|
11
|
-
})(GetPhotoStudioActionsQuery || (exports.GetPhotoStudioActionsQuery = GetPhotoStudioActionsQuery = {}));
|
|
@@ -1,31 +0,0 @@
|
|
|
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("./add-photo-studio-checkpoint.command"), exports);
|
|
18
|
-
__exportStar(require("./clear-photo-studio-checkpoints.command"), exports);
|
|
19
|
-
__exportStar(require("./create-photo-studio-canvas.command"), exports);
|
|
20
|
-
__exportStar(require("./delete-photo-studio-canvas.command"), exports);
|
|
21
|
-
__exportStar(require("./delete-photo-studio-checkpoint.command"), exports);
|
|
22
|
-
__exportStar(require("./execute-photo-studio-action.command"), exports);
|
|
23
|
-
__exportStar(require("./find-photo-studio-canvas-by-uuid.query"), exports);
|
|
24
|
-
__exportStar(require("./find-photo-studio-canvases.query"), exports);
|
|
25
|
-
__exportStar(require("./find-photo-studio-checkpoints.query"), exports);
|
|
26
|
-
__exportStar(require("./find-photo-studio-job-by-id.query"), exports);
|
|
27
|
-
__exportStar(require("./find-photo-studio-jobs.query"), exports);
|
|
28
|
-
__exportStar(require("./get-photo-studio-actions.query"), exports);
|
|
29
|
-
__exportStar(require("./save-photo-studio-canvas.command"), exports);
|
|
30
|
-
__exportStar(require("./update-photo-studio-canvas.command"), exports);
|
|
31
|
-
__exportStar(require("./update-photo-studio-checkpoint.command"), exports);
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SavePhotoStudioCanvasCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const models_1 = require("../../models");
|
|
6
|
-
var SavePhotoStudioCanvasCommand;
|
|
7
|
-
(function (SavePhotoStudioCanvasCommand) {
|
|
8
|
-
SavePhotoStudioCanvasCommand.RequestParamSchema = zod_1.z.object({ uuid: zod_1.z.string().uuid() });
|
|
9
|
-
SavePhotoStudioCanvasCommand.RequestSchema = zod_1.z.object({
|
|
10
|
-
updatedAt: zod_1.z.coerce.date().optional(),
|
|
11
|
-
images: zod_1.z.array(models_1.PhotoStudioImageInputSchema),
|
|
12
|
-
action: models_1.PhotoStudioCheckpointActionSchema.optional(),
|
|
13
|
-
baseCheckpointSequence: zod_1.z.number().int().positive().optional(),
|
|
14
|
-
});
|
|
15
|
-
SavePhotoStudioCanvasCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
-
data: models_1.PhotoStudioCanvasWithImagesSchema,
|
|
17
|
-
});
|
|
18
|
-
})(SavePhotoStudioCanvasCommand || (exports.SavePhotoStudioCanvasCommand = SavePhotoStudioCanvasCommand = {}));
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdatePhotoStudioCanvasCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const models_1 = require("../../models");
|
|
6
|
-
var UpdatePhotoStudioCanvasCommand;
|
|
7
|
-
(function (UpdatePhotoStudioCanvasCommand) {
|
|
8
|
-
UpdatePhotoStudioCanvasCommand.RequestParamSchema = zod_1.z.object({ uuid: zod_1.z.string().uuid() });
|
|
9
|
-
UpdatePhotoStudioCanvasCommand.RequestSchema = zod_1.z.object({
|
|
10
|
-
name: zod_1.z.string().trim().min(1),
|
|
11
|
-
});
|
|
12
|
-
UpdatePhotoStudioCanvasCommand.ResponseSchema = zod_1.z.object({
|
|
13
|
-
data: models_1.PhotoStudioCanvasWithImagesSchema,
|
|
14
|
-
});
|
|
15
|
-
})(UpdatePhotoStudioCanvasCommand || (exports.UpdatePhotoStudioCanvasCommand = UpdatePhotoStudioCanvasCommand = {}));
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdatePhotoStudioCheckpointCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const models_1 = require("../../models");
|
|
6
|
-
var UpdatePhotoStudioCheckpointCommand;
|
|
7
|
-
(function (UpdatePhotoStudioCheckpointCommand) {
|
|
8
|
-
UpdatePhotoStudioCheckpointCommand.RequestParamSchema = zod_1.z.object({
|
|
9
|
-
canvasId: zod_1.z.string().uuid(),
|
|
10
|
-
checkpointId: zod_1.z.string().uuid(),
|
|
11
|
-
});
|
|
12
|
-
UpdatePhotoStudioCheckpointCommand.RequestSchema = zod_1.z.object({
|
|
13
|
-
action: models_1.PhotoStudioCheckpointActionSchema.optional(),
|
|
14
|
-
images: zod_1.z.array(models_1.PhotoStudioImageInputSchema).optional(),
|
|
15
|
-
});
|
|
16
|
-
UpdatePhotoStudioCheckpointCommand.ResponseSchema = zod_1.z.object({
|
|
17
|
-
data: models_1.PhotoStudioCheckpointSchema,
|
|
18
|
-
});
|
|
19
|
-
})(UpdatePhotoStudioCheckpointCommand || (exports.UpdatePhotoStudioCheckpointCommand = UpdatePhotoStudioCheckpointCommand = {}));
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PHOTO_STUDIO_CHECKPOINT_ACTION_TYPE = void 0;
|
|
4
|
-
var PHOTO_STUDIO_CHECKPOINT_ACTION_TYPE;
|
|
5
|
-
(function (PHOTO_STUDIO_CHECKPOINT_ACTION_TYPE) {
|
|
6
|
-
PHOTO_STUDIO_CHECKPOINT_ACTION_TYPE["ACTION"] = "action";
|
|
7
|
-
PHOTO_STUDIO_CHECKPOINT_ACTION_TYPE["IMAGE_GENERATED"] = "image_generated";
|
|
8
|
-
PHOTO_STUDIO_CHECKPOINT_ACTION_TYPE["IMAGE_ADDED"] = "image_added";
|
|
9
|
-
PHOTO_STUDIO_CHECKPOINT_ACTION_TYPE["IMAGE_DELETED"] = "image_deleted";
|
|
10
|
-
PHOTO_STUDIO_CHECKPOINT_ACTION_TYPE["CANVAS_SAVED"] = "canvas_saved";
|
|
11
|
-
})(PHOTO_STUDIO_CHECKPOINT_ACTION_TYPE || (exports.PHOTO_STUDIO_CHECKPOINT_ACTION_TYPE = PHOTO_STUDIO_CHECKPOINT_ACTION_TYPE = {}));
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AgentStatisticsDataSchema = exports.AgentStatisticsBucketSchema = exports.AgentStatisticsTotalsSchema = exports.AgentStatisticsRangeSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.AgentStatisticsRangeSchema = zod_1.z.object({
|
|
6
|
-
from: zod_1.z.string().datetime(),
|
|
7
|
-
to: zod_1.z.string().datetime(),
|
|
8
|
-
granularity: zod_1.z.enum(['day', 'week', 'month']),
|
|
9
|
-
});
|
|
10
|
-
exports.AgentStatisticsTotalsSchema = zod_1.z.object({
|
|
11
|
-
dialogs: zod_1.z.number().int().min(0),
|
|
12
|
-
leads: zod_1.z.number().int().min(0),
|
|
13
|
-
messagesIncoming: zod_1.z.number().int().min(0),
|
|
14
|
-
messagesOutgoing: zod_1.z.number().int().min(0),
|
|
15
|
-
starsSpent: zod_1.z.number().int().min(0),
|
|
16
|
-
conversionToLeadPercent: zod_1.z.number().min(0),
|
|
17
|
-
conversionToDialogPercent: zod_1.z.number().min(0),
|
|
18
|
-
agentActivations: zod_1.z.number().int().min(0),
|
|
19
|
-
});
|
|
20
|
-
exports.AgentStatisticsBucketSchema = zod_1.z.object({
|
|
21
|
-
start: zod_1.z.string().datetime(),
|
|
22
|
-
dialogs: zod_1.z.number().int().min(0),
|
|
23
|
-
leads: zod_1.z.number().int().min(0),
|
|
24
|
-
launches: zod_1.z.number().int().min(0),
|
|
25
|
-
starsSpent: zod_1.z.number().int().min(0),
|
|
26
|
-
});
|
|
27
|
-
exports.AgentStatisticsDataSchema = zod_1.z.object({
|
|
28
|
-
range: exports.AgentStatisticsRangeSchema,
|
|
29
|
-
totals: exports.AgentStatisticsTotalsSchema,
|
|
30
|
-
chart: zod_1.z.object({
|
|
31
|
-
buckets: zod_1.z.array(exports.AgentStatisticsBucketSchema),
|
|
32
|
-
}),
|
|
33
|
-
});
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MessageAttachmentInputSchema = exports.MessageAttachmentTypeEnum = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.MessageAttachmentTypeEnum = zod_1.z.enum([
|
|
6
|
-
'image',
|
|
7
|
-
'document',
|
|
8
|
-
'text',
|
|
9
|
-
'audio',
|
|
10
|
-
'video',
|
|
11
|
-
'other',
|
|
12
|
-
]);
|
|
13
|
-
exports.MessageAttachmentInputSchema = zod_1.z.object({
|
|
14
|
-
fileId: zod_1.z.string().uuid().optional(),
|
|
15
|
-
url: zod_1.z.string(),
|
|
16
|
-
mimeType: zod_1.z.string(),
|
|
17
|
-
type: exports.MessageAttachmentTypeEnum,
|
|
18
|
-
originalName: zod_1.z.string().optional(),
|
|
19
|
-
content: zod_1.z.string().optional(),
|
|
20
|
-
contentLength: zod_1.z.number().int().optional(),
|
|
21
|
-
});
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PhotoStudioActionSchema = exports.PhotoStudioImageSettingsSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.PhotoStudioImageSettingsSchema = zod_1.z.object({
|
|
6
|
-
minImages: zod_1.z.number().int().min(0),
|
|
7
|
-
maxImages: zod_1.z.number().int().min(1),
|
|
8
|
-
});
|
|
9
|
-
exports.PhotoStudioActionSchema = zod_1.z.object({
|
|
10
|
-
alias: zod_1.z.string().min(1),
|
|
11
|
-
title: zod_1.z.string().min(1),
|
|
12
|
-
icon: zod_1.z.string().min(1),
|
|
13
|
-
allowUserPrompt: zod_1.z.boolean(),
|
|
14
|
-
systemPrompt: zod_1.z.string().nullable(),
|
|
15
|
-
imageSettings: exports.PhotoStudioImageSettingsSchema,
|
|
16
|
-
params: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).default({}),
|
|
17
|
-
});
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PhotoStudioCheckpointSchema = exports.PhotoStudioCheckpointActionSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const constants_1 = require("../../constants");
|
|
6
|
-
const photo_studio_image_node_schema_1 = require("./photo-studio-image-node.schema");
|
|
7
|
-
exports.PhotoStudioCheckpointActionSchema = zod_1.z.object({
|
|
8
|
-
type: zod_1.z.nativeEnum(constants_1.PHOTO_STUDIO_CHECKPOINT_ACTION_TYPE),
|
|
9
|
-
actionAlias: zod_1.z.string().nullable().optional(),
|
|
10
|
-
title: zod_1.z.string().nullable().optional(),
|
|
11
|
-
params: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).nullable().optional(),
|
|
12
|
-
});
|
|
13
|
-
exports.PhotoStudioCheckpointSchema = zod_1.z.object({
|
|
14
|
-
uuid: zod_1.z.string().uuid(),
|
|
15
|
-
canvasId: zod_1.z.string().uuid(),
|
|
16
|
-
sequence: zod_1.z.number().int().positive(),
|
|
17
|
-
action: exports.PhotoStudioCheckpointActionSchema,
|
|
18
|
-
images: zod_1.z.array(photo_studio_image_node_schema_1.PhotoStudioImageNodeSchema),
|
|
19
|
-
createdAt: zod_1.z.date(),
|
|
20
|
-
updatedAt: zod_1.z.date(),
|
|
21
|
-
});
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PhotoStudioImageInputSchema = exports.PhotoStudioImageNodeSchema = exports.PhotoStudioImageResolutionSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const canvas_node_schema_1 = require("../canvas-node.schema");
|
|
6
|
-
const file_schema_1 = require("../file.schema");
|
|
7
|
-
exports.PhotoStudioImageResolutionSchema = file_schema_1.FileResolutionSchema;
|
|
8
|
-
exports.PhotoStudioImageNodeSchema = zod_1.z.object({
|
|
9
|
-
uuid: zod_1.z.string().uuid(),
|
|
10
|
-
fileId: zod_1.z.string().uuid(),
|
|
11
|
-
url: zod_1.z.string().url(),
|
|
12
|
-
originalName: zod_1.z.string().nullable().optional(),
|
|
13
|
-
resolution: exports.PhotoStudioImageResolutionSchema.nullable().optional(),
|
|
14
|
-
position: canvas_node_schema_1.CanvasNodePositionSchema,
|
|
15
|
-
});
|
|
16
|
-
exports.PhotoStudioImageInputSchema = zod_1.z.object({
|
|
17
|
-
fileId: zod_1.z.string().uuid(),
|
|
18
|
-
position: canvas_node_schema_1.CanvasNodePositionSchema,
|
|
19
|
-
});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PhotoStudioCanvasWithImagesSchema = exports.PhotoStudioCanvasSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const photo_studio_image_node_schema_1 = require("./photo-studio-image-node.schema");
|
|
6
|
-
exports.PhotoStudioCanvasSchema = zod_1.z.object({
|
|
7
|
-
uuid: zod_1.z.string().uuid(),
|
|
8
|
-
name: zod_1.z.string(),
|
|
9
|
-
userId: zod_1.z.string().uuid(),
|
|
10
|
-
createdAt: zod_1.z.date(),
|
|
11
|
-
updatedAt: zod_1.z.date(),
|
|
12
|
-
});
|
|
13
|
-
exports.PhotoStudioCanvasWithImagesSchema = exports.PhotoStudioCanvasSchema.extend({
|
|
14
|
-
images: zod_1.z.array(photo_studio_image_node_schema_1.PhotoStudioImageNodeSchema),
|
|
15
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
export namespace GetCabinetConfigCommand {
|
|
4
|
-
export const ResponseSchema = z.object({
|
|
5
|
-
data: z.object({
|
|
6
|
-
maxPromptLength: z.number().int().positive(),
|
|
7
|
-
}),
|
|
8
|
-
});
|
|
9
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
10
|
-
export type ResponseData = z.infer<typeof ResponseSchema>['data'];
|
|
11
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
export namespace GetCabinetPricePreviewCommand {
|
|
4
|
-
export const RequestParamsSchema = z.object({
|
|
5
|
-
agentId: z.string().uuid(),
|
|
6
|
-
dialogId: z.string().uuid(),
|
|
7
|
-
});
|
|
8
|
-
export type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
9
|
-
|
|
10
|
-
export const RequestBodySchema = z.object({
|
|
11
|
-
inputLength: z.number().int().min(0),
|
|
12
|
-
fileIds: z.array(z.string().uuid()).optional(),
|
|
13
|
-
useWebSearch: z.boolean().optional(),
|
|
14
|
-
});
|
|
15
|
-
export type RequestBody = z.infer<typeof RequestBodySchema>;
|
|
16
|
-
|
|
17
|
-
export const ResponseSchema = z.object({
|
|
18
|
-
data: z.object({
|
|
19
|
-
price: z.number().int().min(0),
|
|
20
|
-
breakdown: z.object({
|
|
21
|
-
textCost: z.number().int().min(0),
|
|
22
|
-
attachmentsCost: z.number().int().min(0),
|
|
23
|
-
webSearchCost: z.number().int().min(0),
|
|
24
|
-
}),
|
|
25
|
-
charsUntilNextPriceIncrease: z.number().int().min(1).nullable(),
|
|
26
|
-
charsUntilNextPriceDecrease: z.number().int().min(1).nullable(),
|
|
27
|
-
}),
|
|
28
|
-
});
|
|
29
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
30
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { MessageAttachmentTypeEnum } from '../../../models/agents/message-attachment.schema';
|
|
3
|
-
|
|
4
|
-
export namespace GetDialogContextLengthCommand {
|
|
5
|
-
export const RequestSchema = z.object({
|
|
6
|
-
teamAccountId: z.string().uuid(),
|
|
7
|
-
dialogId: z.string().uuid(),
|
|
8
|
-
inputLength: z.number().int().min(0),
|
|
9
|
-
attachments: z
|
|
10
|
-
.array(
|
|
11
|
-
z.object({
|
|
12
|
-
type: MessageAttachmentTypeEnum,
|
|
13
|
-
contentLength: z.number().int().optional(),
|
|
14
|
-
}),
|
|
15
|
-
)
|
|
16
|
-
.default([]),
|
|
17
|
-
});
|
|
18
|
-
export type Request = z.infer<typeof RequestSchema>;
|
|
19
|
-
|
|
20
|
-
export const ResponseSchema = z.object({
|
|
21
|
-
isSuccess: z.literal(true),
|
|
22
|
-
data: z.object({
|
|
23
|
-
historyChars: z.number().int().min(0),
|
|
24
|
-
totalInputChars: z.number().int().min(0),
|
|
25
|
-
modelPricing: z.object({
|
|
26
|
-
inputPrice: z.number(),
|
|
27
|
-
outputPrice: z.number(),
|
|
28
|
-
}),
|
|
29
|
-
}),
|
|
30
|
-
});
|
|
31
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
32
|
-
export type ResponseData = z.infer<typeof ResponseSchema>['data'];
|
|
33
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { DialogSchema } from '../../../models/agents/dialog.schema';
|
|
3
|
-
|
|
4
|
-
export namespace RenameAgentDialogCommand {
|
|
5
|
-
export const RequestParamsSchema = z.object({
|
|
6
|
-
dialogId: z.string().uuid(),
|
|
7
|
-
});
|
|
8
|
-
export type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
9
|
-
|
|
10
|
-
export const RequestBodySchema = z.object({
|
|
11
|
-
title: z.string(),
|
|
12
|
-
});
|
|
13
|
-
export type RequestBody = z.infer<typeof RequestBodySchema>;
|
|
14
|
-
|
|
15
|
-
export const ResponseSchema = z.object({
|
|
16
|
-
data: DialogSchema,
|
|
17
|
-
});
|
|
18
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
19
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
export namespace StopCabinetStreamCommand {
|
|
4
|
-
export const RequestParamsSchema = z.object({
|
|
5
|
-
agentId: z.string().uuid(),
|
|
6
|
-
dialogId: z.string().uuid(),
|
|
7
|
-
messageId: z.string().uuid(),
|
|
8
|
-
});
|
|
9
|
-
export type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
10
|
-
|
|
11
|
-
export const ResponseSchema = z.object({
|
|
12
|
-
stopped: z.boolean(),
|
|
13
|
-
});
|
|
14
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
15
|
-
}
|
package/commands/agents/agent-template/get-agent-template-instructions-by-template.command.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { AgentTemplateInstructionSchema } from '../../../models/agents/agent-template-instruction.schema';
|
|
3
|
-
|
|
4
|
-
export namespace GetAgentTemplateInstructionsByTemplateCommand {
|
|
5
|
-
export const RequestParamsSchema = z.object({
|
|
6
|
-
templateId: z.string().uuid(),
|
|
7
|
-
});
|
|
8
|
-
export type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
9
|
-
|
|
10
|
-
export const ResponseSchema = z.object({
|
|
11
|
-
data: z.array(AgentTemplateInstructionSchema),
|
|
12
|
-
});
|
|
13
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
14
|
-
}
|