@purpleschool/gptbot 0.13.15 → 0.13.18
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.ts +6 -0
- package/api/controllers/http/index.ts +1 -0
- package/api/controllers/http/photo-studio.ts +21 -0
- package/build/api/controllers/http/agents/agent.js +3 -0
- package/build/api/controllers/http/index.js +1 -0
- package/build/api/controllers/http/photo-studio.js +21 -0
- package/build/commands/agents/agent-dialog/get-cabinet-price-preview.command.js +26 -0
- package/build/commands/agents/agent-dialog/get-dialog-context-length.command.js +30 -0
- package/build/commands/agents/agent-dialog/index.js +3 -0
- package/build/commands/agents/agent-dialog/send-cabinet-message.command.js +4 -4
- package/build/commands/agents/agent-dialog/stop-cabinet-stream.command.js +15 -0
- package/build/commands/agents/agent-lead/find-agent-leads.command.js +2 -4
- package/build/commands/index.js +1 -0
- package/build/commands/photo-studio/add-photo-studio-checkpoint.command.js +17 -0
- package/build/commands/photo-studio/clear-photo-studio-checkpoints.command.js +12 -0
- package/build/commands/photo-studio/create-photo-studio-canvas.command.js +15 -0
- package/build/commands/photo-studio/delete-photo-studio-canvas.command.js +11 -0
- package/build/commands/photo-studio/delete-photo-studio-checkpoint.command.js +14 -0
- package/build/commands/photo-studio/execute-photo-studio-action.command.js +47 -0
- package/build/commands/photo-studio/find-photo-studio-canvas-by-uuid.query.js +12 -0
- package/build/commands/photo-studio/find-photo-studio-canvases.query.js +18 -0
- package/build/commands/photo-studio/find-photo-studio-checkpoints.query.js +12 -0
- package/build/commands/photo-studio/find-photo-studio-job-by-id.query.js +32 -0
- package/build/commands/photo-studio/find-photo-studio-jobs.query.js +18 -0
- package/build/commands/photo-studio/get-photo-studio-actions.query.js +11 -0
- package/build/commands/photo-studio/index.js +31 -0
- package/build/commands/photo-studio/save-photo-studio-canvas.command.js +18 -0
- package/build/commands/photo-studio/update-photo-studio-canvas.command.js +15 -0
- package/build/commands/photo-studio/update-photo-studio-checkpoint.command.js +19 -0
- package/build/constants/index.js +1 -0
- package/build/constants/photo-studio/enums/index.js +17 -0
- package/build/constants/photo-studio/enums/photo-studio-checkpoint-action-type.enum.js +11 -0
- package/build/constants/photo-studio/index.js +17 -0
- package/build/models/agents/index.js +1 -0
- package/build/models/agents/message-attachment.schema.js +21 -0
- package/build/models/file.schema.js +7 -1
- package/build/models/index.js +1 -0
- package/build/models/photo-studio/index.js +20 -0
- package/build/models/photo-studio/photo-studio-action.schema.js +17 -0
- package/build/models/photo-studio/photo-studio-checkpoint.schema.js +21 -0
- package/build/models/photo-studio/photo-studio-image-node.schema.js +19 -0
- package/build/models/photo-studio/photo-studio.schema.js +15 -0
- package/build/models/tools/image-generation/image-generation-job.schema.js +3 -0
- package/commands/agents/agent-dialog/get-cabinet-price-preview.command.ts +28 -0
- package/commands/agents/agent-dialog/get-dialog-context-length.command.ts +33 -0
- package/commands/agents/agent-dialog/index.ts +3 -0
- package/commands/agents/agent-dialog/send-cabinet-message.command.ts +18 -10
- package/commands/agents/agent-dialog/stop-cabinet-stream.command.ts +15 -0
- package/commands/agents/agent-lead/find-agent-leads.command.ts +2 -4
- package/commands/index.ts +1 -0
- package/commands/photo-studio/add-photo-studio-checkpoint.command.ts +23 -0
- package/commands/photo-studio/clear-photo-studio-checkpoints.command.ts +12 -0
- package/commands/photo-studio/create-photo-studio-canvas.command.ts +16 -0
- package/commands/photo-studio/delete-photo-studio-canvas.command.ts +11 -0
- package/commands/photo-studio/delete-photo-studio-checkpoint.command.ts +14 -0
- package/commands/photo-studio/execute-photo-studio-action.command.ts +49 -0
- package/commands/photo-studio/find-photo-studio-canvas-by-uuid.query.ts +12 -0
- package/commands/photo-studio/find-photo-studio-canvases.query.ts +20 -0
- package/commands/photo-studio/find-photo-studio-checkpoints.query.ts +12 -0
- package/commands/photo-studio/find-photo-studio-job-by-id.query.ts +36 -0
- package/commands/photo-studio/find-photo-studio-jobs.query.ts +20 -0
- package/commands/photo-studio/get-photo-studio-actions.query.ts +10 -0
- package/commands/photo-studio/index.ts +15 -0
- package/commands/photo-studio/save-photo-studio-canvas.command.ts +24 -0
- package/commands/photo-studio/update-photo-studio-canvas.command.ts +17 -0
- package/commands/photo-studio/update-photo-studio-checkpoint.command.ts +25 -0
- package/constants/index.ts +1 -0
- package/constants/photo-studio/enums/index.ts +1 -0
- package/constants/photo-studio/enums/photo-studio-checkpoint-action-type.enum.ts +7 -0
- package/constants/photo-studio/index.ts +1 -0
- package/models/agents/index.ts +1 -0
- package/models/agents/message-attachment.schema.ts +22 -0
- package/models/file.schema.ts +8 -0
- package/models/index.ts +1 -0
- package/models/photo-studio/index.ts +4 -0
- package/models/photo-studio/photo-studio-action.schema.ts +18 -0
- package/models/photo-studio/photo-studio-checkpoint.schema.ts +22 -0
- package/models/photo-studio/photo-studio-image-node.schema.ts +22 -0
- package/models/photo-studio/photo-studio.schema.ts +16 -0
- package/models/tools/image-generation/image-generation-job.schema.ts +3 -0
- package/package.json +1 -1
|
@@ -13,6 +13,12 @@ export const AGENT_ROUTES = {
|
|
|
13
13
|
CABINET_START_DIALOG: (agentId: string) => `${agentId}/dialogs/cabinet/start`,
|
|
14
14
|
CABINET_SEND_MESSAGE: (agentId: string, dialogId: string) =>
|
|
15
15
|
`${agentId}/dialogs/${dialogId}/cabinet/messages`,
|
|
16
|
+
CABINET_SEND_MESSAGE_STREAM: (agentId: string, dialogId: string) =>
|
|
17
|
+
`${agentId}/dialogs/${dialogId}/cabinet/messages/stream`,
|
|
18
|
+
STOP_CABINET_STREAM: (agentId: string, dialogId: string, messageId: string) =>
|
|
19
|
+
`${agentId}/dialogs/${dialogId}/cabinet/messages/${messageId}/stop`,
|
|
20
|
+
CABINET_PRICE_PREVIEW: (agentId: string, dialogId: string) =>
|
|
21
|
+
`${agentId}/dialogs/${dialogId}/cabinet/price-preview`,
|
|
16
22
|
} as const;
|
|
17
23
|
|
|
18
24
|
export const AGENT_PUBLIC_ROUTES = {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export const PHOTO_STUDIO_PRIVATE_CONTROLLER = 'private/photo-studio' as const;
|
|
2
|
+
|
|
3
|
+
export const PHOTO_STUDIO_ROUTES = {
|
|
4
|
+
ACTIONS: 'actions',
|
|
5
|
+
EXECUTE: (canvasId: string) => `canvases/${canvasId}/execute`,
|
|
6
|
+
CREATE_CANVAS: 'canvases',
|
|
7
|
+
GET_CANVASES: 'canvases',
|
|
8
|
+
GET_CANVAS: (uuid: string) => `canvases/${uuid}`,
|
|
9
|
+
GET_JOBS: (canvasId: string) => `canvases/${canvasId}/jobs`,
|
|
10
|
+
GET_JOB: (canvasId: string, jobId: string) => `canvases/${canvasId}/jobs/${jobId}`,
|
|
11
|
+
SAVE_CANVAS: (uuid: string) => `canvases/${uuid}/save`,
|
|
12
|
+
UPDATE_CANVAS: (uuid: string) => `canvases/${uuid}`,
|
|
13
|
+
DELETE_CANVAS: (uuid: string) => `canvases/${uuid}`,
|
|
14
|
+
GET_CHECKPOINTS: (canvasId: string) => `canvases/${canvasId}/checkpoints`,
|
|
15
|
+
ADD_CHECKPOINT: (canvasId: string) => `canvases/${canvasId}/checkpoints`,
|
|
16
|
+
UPDATE_CHECKPOINT: (canvasId: string, checkpointId: string) =>
|
|
17
|
+
`canvases/${canvasId}/checkpoints/${checkpointId}`,
|
|
18
|
+
DELETE_CHECKPOINT: (canvasId: string, checkpointId: string) =>
|
|
19
|
+
`canvases/${canvasId}/checkpoints/${checkpointId}`,
|
|
20
|
+
CLEAR_CHECKPOINTS: (canvasId: string) => `canvases/${canvasId}/checkpoints`,
|
|
21
|
+
} as const;
|
|
@@ -14,6 +14,9 @@ exports.AGENT_ROUTES = {
|
|
|
14
14
|
DELETE: (id) => `${id}`,
|
|
15
15
|
CABINET_START_DIALOG: (agentId) => `${agentId}/dialogs/cabinet/start`,
|
|
16
16
|
CABINET_SEND_MESSAGE: (agentId, dialogId) => `${agentId}/dialogs/${dialogId}/cabinet/messages`,
|
|
17
|
+
CABINET_SEND_MESSAGE_STREAM: (agentId, dialogId) => `${agentId}/dialogs/${dialogId}/cabinet/messages/stream`,
|
|
18
|
+
STOP_CABINET_STREAM: (agentId, dialogId, messageId) => `${agentId}/dialogs/${dialogId}/cabinet/messages/${messageId}/stop`,
|
|
19
|
+
CABINET_PRICE_PREVIEW: (agentId, dialogId) => `${agentId}/dialogs/${dialogId}/cabinet/price-preview`,
|
|
17
20
|
};
|
|
18
21
|
exports.AGENT_PUBLIC_ROUTES = {
|
|
19
22
|
PUBLIC_INFO: (id) => `${id}/public-info`,
|
|
@@ -92,4 +92,5 @@ __exportStar(require("./tool-workspace"), exports);
|
|
|
92
92
|
__exportStar(require("./html-page-builder"), exports);
|
|
93
93
|
__exportStar(require("./palette"), exports);
|
|
94
94
|
__exportStar(require("./canvas-var-generation"), exports);
|
|
95
|
+
__exportStar(require("./photo-studio"), exports);
|
|
95
96
|
__exportStar(require("./canvas-template"), exports);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PHOTO_STUDIO_ROUTES = exports.PHOTO_STUDIO_PRIVATE_CONTROLLER = void 0;
|
|
4
|
+
exports.PHOTO_STUDIO_PRIVATE_CONTROLLER = 'private/photo-studio';
|
|
5
|
+
exports.PHOTO_STUDIO_ROUTES = {
|
|
6
|
+
ACTIONS: 'actions',
|
|
7
|
+
EXECUTE: (canvasId) => `canvases/${canvasId}/execute`,
|
|
8
|
+
CREATE_CANVAS: 'canvases',
|
|
9
|
+
GET_CANVASES: 'canvases',
|
|
10
|
+
GET_CANVAS: (uuid) => `canvases/${uuid}`,
|
|
11
|
+
GET_JOBS: (canvasId) => `canvases/${canvasId}/jobs`,
|
|
12
|
+
GET_JOB: (canvasId, jobId) => `canvases/${canvasId}/jobs/${jobId}`,
|
|
13
|
+
SAVE_CANVAS: (uuid) => `canvases/${uuid}/save`,
|
|
14
|
+
UPDATE_CANVAS: (uuid) => `canvases/${uuid}`,
|
|
15
|
+
DELETE_CANVAS: (uuid) => `canvases/${uuid}`,
|
|
16
|
+
GET_CHECKPOINTS: (canvasId) => `canvases/${canvasId}/checkpoints`,
|
|
17
|
+
ADD_CHECKPOINT: (canvasId) => `canvases/${canvasId}/checkpoints`,
|
|
18
|
+
UPDATE_CHECKPOINT: (canvasId, checkpointId) => `canvases/${canvasId}/checkpoints/${checkpointId}`,
|
|
19
|
+
DELETE_CHECKPOINT: (canvasId, checkpointId) => `canvases/${canvasId}/checkpoints/${checkpointId}`,
|
|
20
|
+
CLEAR_CHECKPOINTS: (canvasId) => `canvases/${canvasId}/checkpoints`,
|
|
21
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetCabinetPricePreviewCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var GetCabinetPricePreviewCommand;
|
|
6
|
+
(function (GetCabinetPricePreviewCommand) {
|
|
7
|
+
GetCabinetPricePreviewCommand.RequestParamsSchema = zod_1.z.object({
|
|
8
|
+
agentId: zod_1.z.string().uuid(),
|
|
9
|
+
dialogId: zod_1.z.string().uuid(),
|
|
10
|
+
});
|
|
11
|
+
GetCabinetPricePreviewCommand.RequestBodySchema = zod_1.z.object({
|
|
12
|
+
inputLength: zod_1.z.number().int().min(0),
|
|
13
|
+
fileIds: zod_1.z.array(zod_1.z.string().uuid()).optional(),
|
|
14
|
+
useWebSearch: zod_1.z.boolean().optional(),
|
|
15
|
+
});
|
|
16
|
+
GetCabinetPricePreviewCommand.ResponseSchema = zod_1.z.object({
|
|
17
|
+
data: zod_1.z.object({
|
|
18
|
+
price: zod_1.z.number().int().min(0),
|
|
19
|
+
breakdown: zod_1.z.object({
|
|
20
|
+
textCost: zod_1.z.number().int().min(0),
|
|
21
|
+
attachmentsCost: zod_1.z.number().int().min(0),
|
|
22
|
+
webSearchCost: zod_1.z.number().int().min(0),
|
|
23
|
+
}),
|
|
24
|
+
}),
|
|
25
|
+
});
|
|
26
|
+
})(GetCabinetPricePreviewCommand || (exports.GetCabinetPricePreviewCommand = GetCabinetPricePreviewCommand = {}));
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetDialogContextLengthCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const message_attachment_schema_1 = require("../../../models/agents/message-attachment.schema");
|
|
6
|
+
var GetDialogContextLengthCommand;
|
|
7
|
+
(function (GetDialogContextLengthCommand) {
|
|
8
|
+
GetDialogContextLengthCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
teamAccountId: zod_1.z.string().uuid(),
|
|
10
|
+
dialogId: zod_1.z.string().uuid(),
|
|
11
|
+
inputLength: zod_1.z.number().int().min(0),
|
|
12
|
+
attachments: zod_1.z
|
|
13
|
+
.array(zod_1.z.object({
|
|
14
|
+
type: message_attachment_schema_1.MessageAttachmentTypeEnum,
|
|
15
|
+
contentLength: zod_1.z.number().int().optional(),
|
|
16
|
+
}))
|
|
17
|
+
.default([]),
|
|
18
|
+
});
|
|
19
|
+
GetDialogContextLengthCommand.ResponseSchema = zod_1.z.object({
|
|
20
|
+
isSuccess: zod_1.z.literal(true),
|
|
21
|
+
data: zod_1.z.object({
|
|
22
|
+
historyChars: zod_1.z.number().int().min(0),
|
|
23
|
+
totalInputChars: zod_1.z.number().int().min(0),
|
|
24
|
+
modelPricing: zod_1.z.object({
|
|
25
|
+
inputPrice: zod_1.z.number(),
|
|
26
|
+
outputPrice: zod_1.z.number(),
|
|
27
|
+
}),
|
|
28
|
+
}),
|
|
29
|
+
});
|
|
30
|
+
})(GetDialogContextLengthCommand || (exports.GetDialogContextLengthCommand = GetDialogContextLengthCommand = {}));
|
|
@@ -21,3 +21,6 @@ __exportStar(require("./clear-agent-dialog-history.command"), exports);
|
|
|
21
21
|
__exportStar(require("./send-agent-dialog-admin-reply.command"), exports);
|
|
22
22
|
__exportStar(require("./start-cabinet-dialog.command"), exports);
|
|
23
23
|
__exportStar(require("./send-cabinet-message.command"), exports);
|
|
24
|
+
__exportStar(require("./get-dialog-context-length.command"), exports);
|
|
25
|
+
__exportStar(require("./get-cabinet-price-preview.command"), exports);
|
|
26
|
+
__exportStar(require("./stop-cabinet-stream.command"), exports);
|
|
@@ -11,11 +11,11 @@ var SendCabinetMessageCommand;
|
|
|
11
11
|
SendCabinetMessageCommand.RequestBodySchema = zod_1.z
|
|
12
12
|
.object({
|
|
13
13
|
text: zod_1.z.string().optional(),
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
fileIds: zod_1.z.array(zod_1.z.string().uuid()).optional(),
|
|
15
|
+
useWebSearch: zod_1.z.boolean().optional(),
|
|
16
16
|
})
|
|
17
|
-
.refine((data) => { var _a, _b
|
|
18
|
-
message: 'Message must contain text
|
|
17
|
+
.refine((data) => { var _a, _b; return data.text || ((_b = (_a = data.fileIds) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0) > 0; }, {
|
|
18
|
+
message: 'Message must contain text or file attachments',
|
|
19
19
|
path: ['text'],
|
|
20
20
|
});
|
|
21
21
|
SendCabinetMessageCommand.ResponseSchema = zod_1.z.object({
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StopCabinetStreamCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var StopCabinetStreamCommand;
|
|
6
|
+
(function (StopCabinetStreamCommand) {
|
|
7
|
+
StopCabinetStreamCommand.RequestParamsSchema = zod_1.z.object({
|
|
8
|
+
agentId: zod_1.z.string().uuid(),
|
|
9
|
+
dialogId: zod_1.z.string().uuid(),
|
|
10
|
+
messageId: zod_1.z.string().uuid(),
|
|
11
|
+
});
|
|
12
|
+
StopCabinetStreamCommand.ResponseSchema = zod_1.z.object({
|
|
13
|
+
stopped: zod_1.z.boolean(),
|
|
14
|
+
});
|
|
15
|
+
})(StopCabinetStreamCommand || (exports.StopCabinetStreamCommand = StopCabinetStreamCommand = {}));
|
|
@@ -2,15 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FindAgentLeadsCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const
|
|
5
|
+
const agent_lead_schema_1 = require("../../../models/agents/agent-lead.schema");
|
|
6
6
|
var FindAgentLeadsCommand;
|
|
7
7
|
(function (FindAgentLeadsCommand) {
|
|
8
8
|
FindAgentLeadsCommand.RequestQuerySchema = zod_1.z.object({
|
|
9
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
10
|
});
|
|
13
11
|
FindAgentLeadsCommand.ResponseSchema = zod_1.z.object({
|
|
14
|
-
data:
|
|
12
|
+
data: zod_1.z.array(agent_lead_schema_1.AgentLeadSchema),
|
|
15
13
|
});
|
|
16
14
|
})(FindAgentLeadsCommand || (exports.FindAgentLeadsCommand = FindAgentLeadsCommand = {}));
|
package/build/commands/index.js
CHANGED
|
@@ -37,6 +37,7 @@ __exportStar(require("./midjourney"), exports);
|
|
|
37
37
|
__exportStar(require("./page"), exports);
|
|
38
38
|
__exportStar(require("./order"), exports);
|
|
39
39
|
__exportStar(require("./payment"), exports);
|
|
40
|
+
__exportStar(require("./photo-studio"), exports);
|
|
40
41
|
__exportStar(require("./product"), exports);
|
|
41
42
|
__exportStar(require("./question"), exports);
|
|
42
43
|
__exportStar(require("./referral"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
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 = {}));
|
|
@@ -0,0 +1,12 @@
|
|
|
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 = {}));
|
|
@@ -0,0 +1,15 @@
|
|
|
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 = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
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 = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
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 = {}));
|
|
@@ -0,0 +1,47 @@
|
|
|
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 = {}));
|
|
@@ -0,0 +1,12 @@
|
|
|
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 = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
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 = {}));
|
|
@@ -0,0 +1,12 @@
|
|
|
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 = {}));
|
|
@@ -0,0 +1,32 @@
|
|
|
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 = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
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 = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
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 = {}));
|
|
@@ -0,0 +1,31 @@
|
|
|
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);
|
|
@@ -0,0 +1,18 @@
|
|
|
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 = {}));
|
|
@@ -0,0 +1,15 @@
|
|
|
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 = {}));
|
|
@@ -0,0 +1,19 @@
|
|
|
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 = {}));
|
package/build/constants/index.js
CHANGED
|
@@ -34,6 +34,7 @@ __exportStar(require("./order"), exports);
|
|
|
34
34
|
__exportStar(require("./page"), exports);
|
|
35
35
|
__exportStar(require("./payment"), exports);
|
|
36
36
|
__exportStar(require("./presentation"), exports);
|
|
37
|
+
__exportStar(require("./photo-studio"), exports);
|
|
37
38
|
__exportStar(require("./product"), exports);
|
|
38
39
|
__exportStar(require("./referral"), exports);
|
|
39
40
|
__exportStar(require("./roles"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./photo-studio-checkpoint-action-type.enum"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
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 = {}));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./enums"), exports);
|
|
@@ -40,3 +40,4 @@ __exportStar(require("./agent.schema"), exports);
|
|
|
40
40
|
__exportStar(require("./agent-aggregate.schema"), exports);
|
|
41
41
|
__exportStar(require("./agent-statistics.schema"), exports);
|
|
42
42
|
__exportStar(require("./channel.schema"), exports);
|
|
43
|
+
__exportStar(require("./message-attachment.schema"), exports);
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
});
|