@purpleschool/gptbot 0.14.25 → 0.14.27-stage2
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/photo-studio.ts +4 -0
- package/api/routes.ts +16 -0
- package/build/api/controllers/http/photo-studio.js +4 -0
- package/build/api/routes.js +8 -0
- package/build/commands/agents/agent-dialog/send-cabinet-message.command.js +1 -1
- package/build/commands/photo-studio/add-photo-studio-image.command.js +33 -0
- package/build/commands/photo-studio/delete-photo-studio-image.command.js +18 -0
- package/build/commands/photo-studio/delete-photo-studio-job.command.js +14 -0
- package/build/commands/photo-studio/execute-photo-studio-action.command.js +1 -0
- package/build/commands/photo-studio/index.js +4 -0
- package/build/commands/photo-studio/retry-photo-studio-job.command.js +13 -0
- package/build/constants/index.js +0 -1
- package/build/constants/photo-studio/index.js +1 -0
- package/build/constants/photo-studio/photo-studio-checkpoint-action-title.constant.js +11 -0
- package/build/models/tools/image-recognition/image-recognition-category.schema.js +2 -0
- package/build/models/tools/image-recognition/image-recognition-model.schema.js +1 -0
- package/commands/photo-studio/add-photo-studio-image.command.ts +37 -0
- package/commands/photo-studio/delete-photo-studio-image.command.ts +20 -0
- package/commands/photo-studio/delete-photo-studio-job.command.ts +14 -0
- package/commands/photo-studio/execute-photo-studio-action.command.ts +1 -0
- package/commands/photo-studio/index.ts +4 -0
- package/commands/photo-studio/retry-photo-studio-job.command.ts +13 -0
- package/constants/index.ts +0 -1
- package/constants/photo-studio/index.ts +1 -0
- package/constants/photo-studio/photo-studio-checkpoint-action-title.constant.ts +9 -0
- package/models/tools/image-recognition/image-recognition-category.schema.ts +2 -0
- package/models/tools/image-recognition/image-recognition-model.schema.ts +1 -0
- package/package.json +1 -1
- package/build/constants/domains/index.js +0 -17
- package/build/constants/domains/white-list.js +0 -57
- package/constants/domains/index.ts +0 -1
- package/constants/domains/white-list.ts +0 -55
|
@@ -10,9 +10,13 @@ export const PHOTO_STUDIO_ROUTES = {
|
|
|
10
10
|
GET_CANVAS: (uuid: string) => `canvases/${uuid}`,
|
|
11
11
|
GET_JOBS: (canvasId: string) => `canvases/${canvasId}/jobs`,
|
|
12
12
|
GET_JOB: (canvasId: string, jobId: string) => `canvases/${canvasId}/jobs/${jobId}`,
|
|
13
|
+
RETRY_JOB: (canvasId: string, jobId: string) => `canvases/${canvasId}/jobs/${jobId}/retry`,
|
|
14
|
+
DELETE_JOB: (canvasId: string, jobId: string) => `canvases/${canvasId}/jobs/${jobId}`,
|
|
13
15
|
SAVE_CANVAS: (uuid: string) => `canvases/${uuid}/save`,
|
|
14
16
|
UPDATE_CANVAS: (uuid: string) => `canvases/${uuid}`,
|
|
15
17
|
DELETE_CANVAS: (uuid: string) => `canvases/${uuid}`,
|
|
18
|
+
ADD_IMAGE: (canvasId: string) => `canvases/${canvasId}/images`,
|
|
19
|
+
DELETE_IMAGE: (canvasId: string, imageId: string) => `canvases/${canvasId}/images/${imageId}`,
|
|
16
20
|
MOVE_IMAGE: (canvasId: string, imageId: string) =>
|
|
17
21
|
`canvases/${canvasId}/images/${imageId}/position`,
|
|
18
22
|
RENAME_IMAGE: (canvasId: string, imageId: string) =>
|
package/api/routes.ts
CHANGED
|
@@ -1767,12 +1767,20 @@ export const REST_API = {
|
|
|
1767
1767
|
`${ROOT}/${CONTROLLERS.PHOTO_STUDIO_PRIVATE_CONTROLLER}/${CONTROLLERS.PHOTO_STUDIO_ROUTES.GET_JOBS(canvasId)}`,
|
|
1768
1768
|
GET_JOB: (canvasId: string, jobId: string) =>
|
|
1769
1769
|
`${ROOT}/${CONTROLLERS.PHOTO_STUDIO_PRIVATE_CONTROLLER}/${CONTROLLERS.PHOTO_STUDIO_ROUTES.GET_JOB(canvasId, jobId)}`,
|
|
1770
|
+
RETRY_JOB: (canvasId: string, jobId: string) =>
|
|
1771
|
+
`${ROOT}/${CONTROLLERS.PHOTO_STUDIO_PRIVATE_CONTROLLER}/${CONTROLLERS.PHOTO_STUDIO_ROUTES.RETRY_JOB(canvasId, jobId)}`,
|
|
1772
|
+
DELETE_JOB: (canvasId: string, jobId: string) =>
|
|
1773
|
+
`${ROOT}/${CONTROLLERS.PHOTO_STUDIO_PRIVATE_CONTROLLER}/${CONTROLLERS.PHOTO_STUDIO_ROUTES.DELETE_JOB(canvasId, jobId)}`,
|
|
1770
1774
|
SAVE_CANVAS: (canvasId: string) =>
|
|
1771
1775
|
`${ROOT}/${CONTROLLERS.PHOTO_STUDIO_PRIVATE_CONTROLLER}/${CONTROLLERS.PHOTO_STUDIO_ROUTES.SAVE_CANVAS(canvasId)}`,
|
|
1772
1776
|
UPDATE_CANVAS: (canvasId: string) =>
|
|
1773
1777
|
`${ROOT}/${CONTROLLERS.PHOTO_STUDIO_PRIVATE_CONTROLLER}/${CONTROLLERS.PHOTO_STUDIO_ROUTES.UPDATE_CANVAS(canvasId)}`,
|
|
1774
1778
|
DELETE_CANVAS: (canvasId: string) =>
|
|
1775
1779
|
`${ROOT}/${CONTROLLERS.PHOTO_STUDIO_PRIVATE_CONTROLLER}/${CONTROLLERS.PHOTO_STUDIO_ROUTES.DELETE_CANVAS(canvasId)}`,
|
|
1780
|
+
ADD_IMAGE: (canvasId: string) =>
|
|
1781
|
+
`${ROOT}/${CONTROLLERS.PHOTO_STUDIO_PRIVATE_CONTROLLER}/${CONTROLLERS.PHOTO_STUDIO_ROUTES.ADD_IMAGE(canvasId)}`,
|
|
1782
|
+
DELETE_IMAGE: (canvasId: string, imageId: string) =>
|
|
1783
|
+
`${ROOT}/${CONTROLLERS.PHOTO_STUDIO_PRIVATE_CONTROLLER}/${CONTROLLERS.PHOTO_STUDIO_ROUTES.DELETE_IMAGE(canvasId, imageId)}`,
|
|
1776
1784
|
GET_CHECKPOINTS: (canvasId: string) =>
|
|
1777
1785
|
`${ROOT}/${CONTROLLERS.PHOTO_STUDIO_PRIVATE_CONTROLLER}/${CONTROLLERS.PHOTO_STUDIO_ROUTES.GET_CHECKPOINTS(canvasId)}`,
|
|
1778
1786
|
ADD_CHECKPOINT: (canvasId: string) =>
|
|
@@ -1799,12 +1807,20 @@ export const REST_API = {
|
|
|
1799
1807
|
`${ROOT}/${CONTROLLERS.PHOTO_STUDIO_PUBLIC_CONTROLLER}/${CONTROLLERS.PHOTO_STUDIO_ROUTES.GET_JOBS(canvasId)}`,
|
|
1800
1808
|
GET_JOB: (canvasId: string, jobId: string) =>
|
|
1801
1809
|
`${ROOT}/${CONTROLLERS.PHOTO_STUDIO_PUBLIC_CONTROLLER}/${CONTROLLERS.PHOTO_STUDIO_ROUTES.GET_JOB(canvasId, jobId)}`,
|
|
1810
|
+
RETRY_JOB: (canvasId: string, jobId: string) =>
|
|
1811
|
+
`${ROOT}/${CONTROLLERS.PHOTO_STUDIO_PUBLIC_CONTROLLER}/${CONTROLLERS.PHOTO_STUDIO_ROUTES.RETRY_JOB(canvasId, jobId)}`,
|
|
1812
|
+
DELETE_JOB: (canvasId: string, jobId: string) =>
|
|
1813
|
+
`${ROOT}/${CONTROLLERS.PHOTO_STUDIO_PUBLIC_CONTROLLER}/${CONTROLLERS.PHOTO_STUDIO_ROUTES.DELETE_JOB(canvasId, jobId)}`,
|
|
1802
1814
|
SAVE_CANVAS: (canvasId: string) =>
|
|
1803
1815
|
`${ROOT}/${CONTROLLERS.PHOTO_STUDIO_PUBLIC_CONTROLLER}/${CONTROLLERS.PHOTO_STUDIO_ROUTES.SAVE_CANVAS(canvasId)}`,
|
|
1804
1816
|
UPDATE_CANVAS: (canvasId: string) =>
|
|
1805
1817
|
`${ROOT}/${CONTROLLERS.PHOTO_STUDIO_PUBLIC_CONTROLLER}/${CONTROLLERS.PHOTO_STUDIO_ROUTES.UPDATE_CANVAS(canvasId)}`,
|
|
1806
1818
|
DELETE_CANVAS: (canvasId: string) =>
|
|
1807
1819
|
`${ROOT}/${CONTROLLERS.PHOTO_STUDIO_PUBLIC_CONTROLLER}/${CONTROLLERS.PHOTO_STUDIO_ROUTES.DELETE_CANVAS(canvasId)}`,
|
|
1820
|
+
ADD_IMAGE: (canvasId: string) =>
|
|
1821
|
+
`${ROOT}/${CONTROLLERS.PHOTO_STUDIO_PUBLIC_CONTROLLER}/${CONTROLLERS.PHOTO_STUDIO_ROUTES.ADD_IMAGE(canvasId)}`,
|
|
1822
|
+
DELETE_IMAGE: (canvasId: string, imageId: string) =>
|
|
1823
|
+
`${ROOT}/${CONTROLLERS.PHOTO_STUDIO_PUBLIC_CONTROLLER}/${CONTROLLERS.PHOTO_STUDIO_ROUTES.DELETE_IMAGE(canvasId, imageId)}`,
|
|
1808
1824
|
GET_CHECKPOINTS: (canvasId: string) =>
|
|
1809
1825
|
`${ROOT}/${CONTROLLERS.PHOTO_STUDIO_PUBLIC_CONTROLLER}/${CONTROLLERS.PHOTO_STUDIO_ROUTES.GET_CHECKPOINTS(canvasId)}`,
|
|
1810
1826
|
ADD_CHECKPOINT: (canvasId: string) =>
|
|
@@ -12,9 +12,13 @@ exports.PHOTO_STUDIO_ROUTES = {
|
|
|
12
12
|
GET_CANVAS: (uuid) => `canvases/${uuid}`,
|
|
13
13
|
GET_JOBS: (canvasId) => `canvases/${canvasId}/jobs`,
|
|
14
14
|
GET_JOB: (canvasId, jobId) => `canvases/${canvasId}/jobs/${jobId}`,
|
|
15
|
+
RETRY_JOB: (canvasId, jobId) => `canvases/${canvasId}/jobs/${jobId}/retry`,
|
|
16
|
+
DELETE_JOB: (canvasId, jobId) => `canvases/${canvasId}/jobs/${jobId}`,
|
|
15
17
|
SAVE_CANVAS: (uuid) => `canvases/${uuid}/save`,
|
|
16
18
|
UPDATE_CANVAS: (uuid) => `canvases/${uuid}`,
|
|
17
19
|
DELETE_CANVAS: (uuid) => `canvases/${uuid}`,
|
|
20
|
+
ADD_IMAGE: (canvasId) => `canvases/${canvasId}/images`,
|
|
21
|
+
DELETE_IMAGE: (canvasId, imageId) => `canvases/${canvasId}/images/${imageId}`,
|
|
18
22
|
MOVE_IMAGE: (canvasId, imageId) => `canvases/${canvasId}/images/${imageId}/position`,
|
|
19
23
|
RENAME_IMAGE: (canvasId, imageId) => `canvases/${canvasId}/images/${imageId}/name`,
|
|
20
24
|
GET_CHECKPOINTS: (canvasId) => `canvases/${canvasId}/checkpoints`,
|
package/build/api/routes.js
CHANGED
|
@@ -1264,9 +1264,13 @@ exports.REST_API = {
|
|
|
1264
1264
|
GET_CANVAS: (canvasId) => `${exports.ROOT}/${CONTROLLERS.PHOTO_STUDIO_PRIVATE_CONTROLLER}/${CONTROLLERS.PHOTO_STUDIO_ROUTES.GET_CANVAS(canvasId)}`,
|
|
1265
1265
|
GET_JOBS: (canvasId) => `${exports.ROOT}/${CONTROLLERS.PHOTO_STUDIO_PRIVATE_CONTROLLER}/${CONTROLLERS.PHOTO_STUDIO_ROUTES.GET_JOBS(canvasId)}`,
|
|
1266
1266
|
GET_JOB: (canvasId, jobId) => `${exports.ROOT}/${CONTROLLERS.PHOTO_STUDIO_PRIVATE_CONTROLLER}/${CONTROLLERS.PHOTO_STUDIO_ROUTES.GET_JOB(canvasId, jobId)}`,
|
|
1267
|
+
RETRY_JOB: (canvasId, jobId) => `${exports.ROOT}/${CONTROLLERS.PHOTO_STUDIO_PRIVATE_CONTROLLER}/${CONTROLLERS.PHOTO_STUDIO_ROUTES.RETRY_JOB(canvasId, jobId)}`,
|
|
1268
|
+
DELETE_JOB: (canvasId, jobId) => `${exports.ROOT}/${CONTROLLERS.PHOTO_STUDIO_PRIVATE_CONTROLLER}/${CONTROLLERS.PHOTO_STUDIO_ROUTES.DELETE_JOB(canvasId, jobId)}`,
|
|
1267
1269
|
SAVE_CANVAS: (canvasId) => `${exports.ROOT}/${CONTROLLERS.PHOTO_STUDIO_PRIVATE_CONTROLLER}/${CONTROLLERS.PHOTO_STUDIO_ROUTES.SAVE_CANVAS(canvasId)}`,
|
|
1268
1270
|
UPDATE_CANVAS: (canvasId) => `${exports.ROOT}/${CONTROLLERS.PHOTO_STUDIO_PRIVATE_CONTROLLER}/${CONTROLLERS.PHOTO_STUDIO_ROUTES.UPDATE_CANVAS(canvasId)}`,
|
|
1269
1271
|
DELETE_CANVAS: (canvasId) => `${exports.ROOT}/${CONTROLLERS.PHOTO_STUDIO_PRIVATE_CONTROLLER}/${CONTROLLERS.PHOTO_STUDIO_ROUTES.DELETE_CANVAS(canvasId)}`,
|
|
1272
|
+
ADD_IMAGE: (canvasId) => `${exports.ROOT}/${CONTROLLERS.PHOTO_STUDIO_PRIVATE_CONTROLLER}/${CONTROLLERS.PHOTO_STUDIO_ROUTES.ADD_IMAGE(canvasId)}`,
|
|
1273
|
+
DELETE_IMAGE: (canvasId, imageId) => `${exports.ROOT}/${CONTROLLERS.PHOTO_STUDIO_PRIVATE_CONTROLLER}/${CONTROLLERS.PHOTO_STUDIO_ROUTES.DELETE_IMAGE(canvasId, imageId)}`,
|
|
1270
1274
|
GET_CHECKPOINTS: (canvasId) => `${exports.ROOT}/${CONTROLLERS.PHOTO_STUDIO_PRIVATE_CONTROLLER}/${CONTROLLERS.PHOTO_STUDIO_ROUTES.GET_CHECKPOINTS(canvasId)}`,
|
|
1271
1275
|
ADD_CHECKPOINT: (canvasId) => `${exports.ROOT}/${CONTROLLERS.PHOTO_STUDIO_PRIVATE_CONTROLLER}/${CONTROLLERS.PHOTO_STUDIO_ROUTES.ADD_CHECKPOINT(canvasId)}`,
|
|
1272
1276
|
UPDATE_CHECKPOINT: (canvasId, checkpointId) => `${exports.ROOT}/${CONTROLLERS.PHOTO_STUDIO_PRIVATE_CONTROLLER}/${CONTROLLERS.PHOTO_STUDIO_ROUTES.UPDATE_CHECKPOINT(canvasId, checkpointId)}`,
|
|
@@ -1283,9 +1287,13 @@ exports.REST_API = {
|
|
|
1283
1287
|
GET_CANVAS: (canvasId) => `${exports.ROOT}/${CONTROLLERS.PHOTO_STUDIO_PUBLIC_CONTROLLER}/${CONTROLLERS.PHOTO_STUDIO_ROUTES.GET_CANVAS(canvasId)}`,
|
|
1284
1288
|
GET_JOBS: (canvasId) => `${exports.ROOT}/${CONTROLLERS.PHOTO_STUDIO_PUBLIC_CONTROLLER}/${CONTROLLERS.PHOTO_STUDIO_ROUTES.GET_JOBS(canvasId)}`,
|
|
1285
1289
|
GET_JOB: (canvasId, jobId) => `${exports.ROOT}/${CONTROLLERS.PHOTO_STUDIO_PUBLIC_CONTROLLER}/${CONTROLLERS.PHOTO_STUDIO_ROUTES.GET_JOB(canvasId, jobId)}`,
|
|
1290
|
+
RETRY_JOB: (canvasId, jobId) => `${exports.ROOT}/${CONTROLLERS.PHOTO_STUDIO_PUBLIC_CONTROLLER}/${CONTROLLERS.PHOTO_STUDIO_ROUTES.RETRY_JOB(canvasId, jobId)}`,
|
|
1291
|
+
DELETE_JOB: (canvasId, jobId) => `${exports.ROOT}/${CONTROLLERS.PHOTO_STUDIO_PUBLIC_CONTROLLER}/${CONTROLLERS.PHOTO_STUDIO_ROUTES.DELETE_JOB(canvasId, jobId)}`,
|
|
1286
1292
|
SAVE_CANVAS: (canvasId) => `${exports.ROOT}/${CONTROLLERS.PHOTO_STUDIO_PUBLIC_CONTROLLER}/${CONTROLLERS.PHOTO_STUDIO_ROUTES.SAVE_CANVAS(canvasId)}`,
|
|
1287
1293
|
UPDATE_CANVAS: (canvasId) => `${exports.ROOT}/${CONTROLLERS.PHOTO_STUDIO_PUBLIC_CONTROLLER}/${CONTROLLERS.PHOTO_STUDIO_ROUTES.UPDATE_CANVAS(canvasId)}`,
|
|
1288
1294
|
DELETE_CANVAS: (canvasId) => `${exports.ROOT}/${CONTROLLERS.PHOTO_STUDIO_PUBLIC_CONTROLLER}/${CONTROLLERS.PHOTO_STUDIO_ROUTES.DELETE_CANVAS(canvasId)}`,
|
|
1295
|
+
ADD_IMAGE: (canvasId) => `${exports.ROOT}/${CONTROLLERS.PHOTO_STUDIO_PUBLIC_CONTROLLER}/${CONTROLLERS.PHOTO_STUDIO_ROUTES.ADD_IMAGE(canvasId)}`,
|
|
1296
|
+
DELETE_IMAGE: (canvasId, imageId) => `${exports.ROOT}/${CONTROLLERS.PHOTO_STUDIO_PUBLIC_CONTROLLER}/${CONTROLLERS.PHOTO_STUDIO_ROUTES.DELETE_IMAGE(canvasId, imageId)}`,
|
|
1289
1297
|
GET_CHECKPOINTS: (canvasId) => `${exports.ROOT}/${CONTROLLERS.PHOTO_STUDIO_PUBLIC_CONTROLLER}/${CONTROLLERS.PHOTO_STUDIO_ROUTES.GET_CHECKPOINTS(canvasId)}`,
|
|
1290
1298
|
ADD_CHECKPOINT: (canvasId) => `${exports.ROOT}/${CONTROLLERS.PHOTO_STUDIO_PUBLIC_CONTROLLER}/${CONTROLLERS.PHOTO_STUDIO_ROUTES.ADD_CHECKPOINT(canvasId)}`,
|
|
1291
1299
|
UPDATE_CHECKPOINT: (canvasId, checkpointId) => `${exports.ROOT}/${CONTROLLERS.PHOTO_STUDIO_PUBLIC_CONTROLLER}/${CONTROLLERS.PHOTO_STUDIO_ROUTES.UPDATE_CHECKPOINT(canvasId, checkpointId)}`,
|
|
@@ -15,7 +15,7 @@ var SendCabinetMessageCommand;
|
|
|
15
15
|
fileIds: zod_1.z.array(zod_1.z.string().uuid()).optional(),
|
|
16
16
|
useWebSearch: zod_1.z.boolean().optional(),
|
|
17
17
|
})
|
|
18
|
-
.refine((data) => { var _a
|
|
18
|
+
.refine((data) => { var _a; var _b; return data.text || ((_b = (_a = data.fileIds) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0) > 0; }, {
|
|
19
19
|
message: 'Message must contain text or file attachments',
|
|
20
20
|
path: ['text'],
|
|
21
21
|
});
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AddPhotoStudioImageCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var AddPhotoStudioImageCommand;
|
|
7
|
+
(function (AddPhotoStudioImageCommand) {
|
|
8
|
+
AddPhotoStudioImageCommand.RequestParamSchema = zod_1.z.object({
|
|
9
|
+
canvasId: zod_1.z.string().uuid(),
|
|
10
|
+
});
|
|
11
|
+
AddPhotoStudioImageCommand.RequestSchema = zod_1.z
|
|
12
|
+
.object({
|
|
13
|
+
fileId: zod_1.z.string().uuid().optional(),
|
|
14
|
+
displayName: zod_1.z.string().nullable().optional(),
|
|
15
|
+
position: models_1.CanvasNodePositionSchema.optional(),
|
|
16
|
+
images: zod_1.z.array(models_1.PhotoStudioImageInputSchema).min(1).optional(),
|
|
17
|
+
baseCheckpointSequence: zod_1.z.number().int().min(0),
|
|
18
|
+
})
|
|
19
|
+
.superRefine((data, ctx) => {
|
|
20
|
+
var _a;
|
|
21
|
+
if ((_a = data.images) === null || _a === void 0 ? void 0 : _a.length)
|
|
22
|
+
return;
|
|
23
|
+
if (data.fileId && data.position)
|
|
24
|
+
return;
|
|
25
|
+
ctx.addIssue({
|
|
26
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
27
|
+
message: 'Either images or fileId with position is required',
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
AddPhotoStudioImageCommand.ResponseSchema = zod_1.z.object({
|
|
31
|
+
data: models_1.PhotoStudioCheckpointSchema,
|
|
32
|
+
});
|
|
33
|
+
})(AddPhotoStudioImageCommand || (exports.AddPhotoStudioImageCommand = AddPhotoStudioImageCommand = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeletePhotoStudioImageCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var DeletePhotoStudioImageCommand;
|
|
7
|
+
(function (DeletePhotoStudioImageCommand) {
|
|
8
|
+
DeletePhotoStudioImageCommand.RequestParamSchema = zod_1.z.object({
|
|
9
|
+
canvasId: zod_1.z.string().uuid(),
|
|
10
|
+
imageId: zod_1.z.string().uuid(),
|
|
11
|
+
});
|
|
12
|
+
DeletePhotoStudioImageCommand.RequestSchema = zod_1.z.object({
|
|
13
|
+
baseCheckpointSequence: zod_1.z.number().int().positive(),
|
|
14
|
+
});
|
|
15
|
+
DeletePhotoStudioImageCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
+
data: models_1.PhotoStudioCheckpointSchema,
|
|
17
|
+
});
|
|
18
|
+
})(DeletePhotoStudioImageCommand || (exports.DeletePhotoStudioImageCommand = DeletePhotoStudioImageCommand = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeletePhotoStudioJobCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const find_photo_studio_job_by_id_query_1 = require("./find-photo-studio-job-by-id.query");
|
|
6
|
+
var DeletePhotoStudioJobCommand;
|
|
7
|
+
(function (DeletePhotoStudioJobCommand) {
|
|
8
|
+
DeletePhotoStudioJobCommand.RequestParamSchema = find_photo_studio_job_by_id_query_1.FindPhotoStudioJobByIdQuery.RequestParamSchema;
|
|
9
|
+
DeletePhotoStudioJobCommand.ResponseSchema = zod_1.z.object({
|
|
10
|
+
data: zod_1.z.object({
|
|
11
|
+
isDeleted: zod_1.z.boolean(),
|
|
12
|
+
}),
|
|
13
|
+
});
|
|
14
|
+
})(DeletePhotoStudioJobCommand || (exports.DeletePhotoStudioJobCommand = DeletePhotoStudioJobCommand = {}));
|
|
@@ -52,6 +52,7 @@ var ExecutePhotoStudioActionCommand;
|
|
|
52
52
|
fontStyle: zod_1.z.nativeEnum(constants_1.PHOTO_STUDIO_FONT_STYLE_ALIAS),
|
|
53
53
|
placement: zod_1.z.nativeEnum(constants_1.PHOTO_STUDIO_PLACEMENT_ALIAS),
|
|
54
54
|
color: zod_1.z.string().optional(),
|
|
55
|
+
aspectRatio: zod_1.z.string().optional(),
|
|
55
56
|
})
|
|
56
57
|
.strict();
|
|
57
58
|
const UpscaleParamsSchema = zod_1.z
|
|
@@ -15,10 +15,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./add-photo-studio-checkpoint.command"), exports);
|
|
18
|
+
__exportStar(require("./add-photo-studio-image.command"), exports);
|
|
18
19
|
__exportStar(require("./clear-photo-studio-checkpoints.command"), exports);
|
|
19
20
|
__exportStar(require("./create-photo-studio-canvas.command"), exports);
|
|
20
21
|
__exportStar(require("./delete-photo-studio-canvas.command"), exports);
|
|
21
22
|
__exportStar(require("./delete-photo-studio-checkpoint.command"), exports);
|
|
23
|
+
__exportStar(require("./delete-photo-studio-image.command"), exports);
|
|
24
|
+
__exportStar(require("./delete-photo-studio-job.command"), exports);
|
|
22
25
|
__exportStar(require("./execute-photo-studio-action.command"), exports);
|
|
23
26
|
__exportStar(require("./find-photo-studio-canvas-by-uuid.query"), exports);
|
|
24
27
|
__exportStar(require("./find-photo-studio-canvases.query"), exports);
|
|
@@ -29,6 +32,7 @@ __exportStar(require("./get-photo-studio-actions.query"), exports);
|
|
|
29
32
|
__exportStar(require("./get-photo-studio-config.query"), exports);
|
|
30
33
|
__exportStar(require("./move-photo-studio-image.command"), exports);
|
|
31
34
|
__exportStar(require("./rename-photo-studio-image.command"), exports);
|
|
35
|
+
__exportStar(require("./retry-photo-studio-job.command"), exports);
|
|
32
36
|
__exportStar(require("./save-photo-studio-canvas.command"), exports);
|
|
33
37
|
__exportStar(require("./update-photo-studio-canvas.command"), exports);
|
|
34
38
|
__exportStar(require("./update-photo-studio-checkpoint.command"), exports);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RetryPhotoStudioJobCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const execute_photo_studio_action_command_1 = require("./execute-photo-studio-action.command");
|
|
6
|
+
const find_photo_studio_job_by_id_query_1 = require("./find-photo-studio-job-by-id.query");
|
|
7
|
+
var RetryPhotoStudioJobCommand;
|
|
8
|
+
(function (RetryPhotoStudioJobCommand) {
|
|
9
|
+
RetryPhotoStudioJobCommand.RequestParamSchema = find_photo_studio_job_by_id_query_1.FindPhotoStudioJobByIdQuery.RequestParamSchema;
|
|
10
|
+
RetryPhotoStudioJobCommand.ResponseSchema = zod_1.z.object({
|
|
11
|
+
data: execute_photo_studio_action_command_1.ExecutePhotoStudioActionCommand.PhotoStudioExecuteJobSchema,
|
|
12
|
+
});
|
|
13
|
+
})(RetryPhotoStudioJobCommand || (exports.RetryPhotoStudioJobCommand = RetryPhotoStudioJobCommand = {}));
|
package/build/constants/index.js
CHANGED
|
@@ -25,7 +25,6 @@ __exportStar(require("./category"), exports);
|
|
|
25
25
|
__exportStar(require("./chat"), exports);
|
|
26
26
|
__exportStar(require("./cloud-payments"), exports);
|
|
27
27
|
__exportStar(require("./course"), exports);
|
|
28
|
-
__exportStar(require("./domains"), exports);
|
|
29
28
|
__exportStar(require("./email"), exports);
|
|
30
29
|
__exportStar(require("./file"), exports);
|
|
31
30
|
__exportStar(require("./form-submission"), exports);
|
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./enums"), exports);
|
|
18
18
|
__exportStar(require("./photo-studio-action-title.constant"), exports);
|
|
19
|
+
__exportStar(require("./photo-studio-checkpoint-action-title.constant"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PHOTO_STUDIO_CHECKPOINT_ACTION_TITLES_BY_TYPE = void 0;
|
|
4
|
+
const enums_1 = require("./enums");
|
|
5
|
+
exports.PHOTO_STUDIO_CHECKPOINT_ACTION_TITLES_BY_TYPE = {
|
|
6
|
+
[enums_1.PHOTO_STUDIO_CHECKPOINT_ACTION_TYPE.ACTION]: 'Действие',
|
|
7
|
+
[enums_1.PHOTO_STUDIO_CHECKPOINT_ACTION_TYPE.IMAGE_GENERATED]: 'Изображение сгенерировано',
|
|
8
|
+
[enums_1.PHOTO_STUDIO_CHECKPOINT_ACTION_TYPE.IMAGE_ADDED]: 'Изображение добавлено',
|
|
9
|
+
[enums_1.PHOTO_STUDIO_CHECKPOINT_ACTION_TYPE.IMAGE_DELETED]: 'Изображение удалено',
|
|
10
|
+
[enums_1.PHOTO_STUDIO_CHECKPOINT_ACTION_TYPE.CANVAS_SAVED]: 'Canvas сохранён',
|
|
11
|
+
};
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ImageRecognitionCategorySchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const icon_variants_schema_1 = require("../../icon-variants.schema");
|
|
5
6
|
exports.ImageRecognitionCategorySchema = zod_1.z.object({
|
|
6
7
|
uuid: zod_1.z.string(),
|
|
7
8
|
parentId: zod_1.z.string().nullable(),
|
|
@@ -9,6 +10,7 @@ exports.ImageRecognitionCategorySchema = zod_1.z.object({
|
|
|
9
10
|
systemPrompt: zod_1.z.string(),
|
|
10
11
|
order: zod_1.z.number(),
|
|
11
12
|
status: zod_1.z.string(),
|
|
13
|
+
icons: icon_variants_schema_1.IconVariantsSchema.nullable(),
|
|
12
14
|
createdAt: zod_1.z.date(),
|
|
13
15
|
updatedAt: zod_1.z.date(),
|
|
14
16
|
});
|
|
@@ -19,6 +19,7 @@ exports.ImageRecognitionModelSchema = zod_1.z.object({
|
|
|
19
19
|
order: zod_1.z.number(),
|
|
20
20
|
status: zod_1.z.string(),
|
|
21
21
|
icons: icon_variants_schema_1.IconVariantsSchema,
|
|
22
|
+
maxPromptLength: zod_1.z.number(),
|
|
22
23
|
params: exports.ImageRecognitionModelParamsSchema,
|
|
23
24
|
createdAt: zod_1.z.date(),
|
|
24
25
|
updatedAt: zod_1.z.date(),
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import {
|
|
3
|
+
CanvasNodePositionSchema,
|
|
4
|
+
PhotoStudioCheckpointSchema,
|
|
5
|
+
PhotoStudioImageInputSchema,
|
|
6
|
+
} from '../../models';
|
|
7
|
+
|
|
8
|
+
export namespace AddPhotoStudioImageCommand {
|
|
9
|
+
export const RequestParamSchema = z.object({
|
|
10
|
+
canvasId: z.string().uuid(),
|
|
11
|
+
});
|
|
12
|
+
export type RequestParam = z.infer<typeof RequestParamSchema>;
|
|
13
|
+
|
|
14
|
+
export const RequestSchema = z
|
|
15
|
+
.object({
|
|
16
|
+
fileId: z.string().uuid().optional(),
|
|
17
|
+
displayName: z.string().nullable().optional(),
|
|
18
|
+
position: CanvasNodePositionSchema.optional(),
|
|
19
|
+
images: z.array(PhotoStudioImageInputSchema).min(1).optional(),
|
|
20
|
+
baseCheckpointSequence: z.number().int().min(0),
|
|
21
|
+
})
|
|
22
|
+
.superRefine((data, ctx) => {
|
|
23
|
+
if (data.images?.length) return;
|
|
24
|
+
if (data.fileId && data.position) return;
|
|
25
|
+
|
|
26
|
+
ctx.addIssue({
|
|
27
|
+
code: z.ZodIssueCode.custom,
|
|
28
|
+
message: 'Either images or fileId with position is required',
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
export type Request = z.infer<typeof RequestSchema>;
|
|
32
|
+
|
|
33
|
+
export const ResponseSchema = z.object({
|
|
34
|
+
data: PhotoStudioCheckpointSchema,
|
|
35
|
+
});
|
|
36
|
+
export type Response = z.infer<typeof ResponseSchema>;
|
|
37
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { PhotoStudioCheckpointSchema } from '../../models';
|
|
3
|
+
|
|
4
|
+
export namespace DeletePhotoStudioImageCommand {
|
|
5
|
+
export const RequestParamSchema = z.object({
|
|
6
|
+
canvasId: z.string().uuid(),
|
|
7
|
+
imageId: z.string().uuid(),
|
|
8
|
+
});
|
|
9
|
+
export type RequestParam = z.infer<typeof RequestParamSchema>;
|
|
10
|
+
|
|
11
|
+
export const RequestSchema = z.object({
|
|
12
|
+
baseCheckpointSequence: z.number().int().positive(),
|
|
13
|
+
});
|
|
14
|
+
export type Request = z.infer<typeof RequestSchema>;
|
|
15
|
+
|
|
16
|
+
export const ResponseSchema = z.object({
|
|
17
|
+
data: PhotoStudioCheckpointSchema,
|
|
18
|
+
});
|
|
19
|
+
export type Response = z.infer<typeof ResponseSchema>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { FindPhotoStudioJobByIdQuery } from './find-photo-studio-job-by-id.query';
|
|
3
|
+
|
|
4
|
+
export namespace DeletePhotoStudioJobCommand {
|
|
5
|
+
export const RequestParamSchema = FindPhotoStudioJobByIdQuery.RequestParamSchema;
|
|
6
|
+
export type RequestParam = z.infer<typeof RequestParamSchema>;
|
|
7
|
+
|
|
8
|
+
export const ResponseSchema = z.object({
|
|
9
|
+
data: z.object({
|
|
10
|
+
isDeleted: z.boolean(),
|
|
11
|
+
}),
|
|
12
|
+
});
|
|
13
|
+
export type Response = z.infer<typeof ResponseSchema>;
|
|
14
|
+
}
|
|
@@ -56,6 +56,7 @@ export namespace ExecutePhotoStudioActionCommand {
|
|
|
56
56
|
fontStyle: z.nativeEnum(PHOTO_STUDIO_FONT_STYLE_ALIAS),
|
|
57
57
|
placement: z.nativeEnum(PHOTO_STUDIO_PLACEMENT_ALIAS),
|
|
58
58
|
color: z.string().optional(),
|
|
59
|
+
aspectRatio: z.string().optional(),
|
|
59
60
|
})
|
|
60
61
|
.strict();
|
|
61
62
|
const UpscaleParamsSchema = z
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
export * from './add-photo-studio-checkpoint.command';
|
|
2
|
+
export * from './add-photo-studio-image.command';
|
|
2
3
|
export * from './clear-photo-studio-checkpoints.command';
|
|
3
4
|
export * from './create-photo-studio-canvas.command';
|
|
4
5
|
export * from './delete-photo-studio-canvas.command';
|
|
5
6
|
export * from './delete-photo-studio-checkpoint.command';
|
|
7
|
+
export * from './delete-photo-studio-image.command';
|
|
8
|
+
export * from './delete-photo-studio-job.command';
|
|
6
9
|
export * from './execute-photo-studio-action.command';
|
|
7
10
|
export * from './find-photo-studio-canvas-by-uuid.query';
|
|
8
11
|
export * from './find-photo-studio-canvases.query';
|
|
@@ -13,6 +16,7 @@ export * from './get-photo-studio-actions.query';
|
|
|
13
16
|
export * from './get-photo-studio-config.query';
|
|
14
17
|
export * from './move-photo-studio-image.command';
|
|
15
18
|
export * from './rename-photo-studio-image.command';
|
|
19
|
+
export * from './retry-photo-studio-job.command';
|
|
16
20
|
export * from './save-photo-studio-canvas.command';
|
|
17
21
|
export * from './update-photo-studio-canvas.command';
|
|
18
22
|
export * from './update-photo-studio-checkpoint.command';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ExecutePhotoStudioActionCommand } from './execute-photo-studio-action.command';
|
|
3
|
+
import { FindPhotoStudioJobByIdQuery } from './find-photo-studio-job-by-id.query';
|
|
4
|
+
|
|
5
|
+
export namespace RetryPhotoStudioJobCommand {
|
|
6
|
+
export const RequestParamSchema = FindPhotoStudioJobByIdQuery.RequestParamSchema;
|
|
7
|
+
export type RequestParam = z.infer<typeof RequestParamSchema>;
|
|
8
|
+
|
|
9
|
+
export const ResponseSchema = z.object({
|
|
10
|
+
data: ExecutePhotoStudioActionCommand.PhotoStudioExecuteJobSchema,
|
|
11
|
+
});
|
|
12
|
+
export type Response = z.infer<typeof ResponseSchema>;
|
|
13
|
+
}
|
package/constants/index.ts
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PHOTO_STUDIO_CHECKPOINT_ACTION_TYPE } from './enums';
|
|
2
|
+
|
|
3
|
+
export const PHOTO_STUDIO_CHECKPOINT_ACTION_TITLES_BY_TYPE = {
|
|
4
|
+
[PHOTO_STUDIO_CHECKPOINT_ACTION_TYPE.ACTION]: 'Действие',
|
|
5
|
+
[PHOTO_STUDIO_CHECKPOINT_ACTION_TYPE.IMAGE_GENERATED]: 'Изображение сгенерировано',
|
|
6
|
+
[PHOTO_STUDIO_CHECKPOINT_ACTION_TYPE.IMAGE_ADDED]: 'Изображение добавлено',
|
|
7
|
+
[PHOTO_STUDIO_CHECKPOINT_ACTION_TYPE.IMAGE_DELETED]: 'Изображение удалено',
|
|
8
|
+
[PHOTO_STUDIO_CHECKPOINT_ACTION_TYPE.CANVAS_SAVED]: 'Canvas сохранён',
|
|
9
|
+
} as const satisfies Record<PHOTO_STUDIO_CHECKPOINT_ACTION_TYPE, string>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { IconVariantsSchema } from '../../icon-variants.schema';
|
|
2
3
|
|
|
3
4
|
export const ImageRecognitionCategorySchema = z.object({
|
|
4
5
|
uuid: z.string(),
|
|
@@ -7,6 +8,7 @@ export const ImageRecognitionCategorySchema = z.object({
|
|
|
7
8
|
systemPrompt: z.string(),
|
|
8
9
|
order: z.number(),
|
|
9
10
|
status: z.string(),
|
|
11
|
+
icons: IconVariantsSchema.nullable(),
|
|
10
12
|
createdAt: z.date(),
|
|
11
13
|
updatedAt: z.date(),
|
|
12
14
|
});
|
package/package.json
CHANGED
|
@@ -1,17 +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("./white-list"), exports);
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EMAIL_STUDENT_DOMAINS = exports.WHITE_LIST = void 0;
|
|
4
|
-
exports.WHITE_LIST = [
|
|
5
|
-
'mail.ru',
|
|
6
|
-
'yandex.ru',
|
|
7
|
-
'gmail.com',
|
|
8
|
-
'rambler.ru',
|
|
9
|
-
'bk.ru',
|
|
10
|
-
'inbox.ru',
|
|
11
|
-
'list.ru',
|
|
12
|
-
'ya.ru',
|
|
13
|
-
'hotmail.com',
|
|
14
|
-
'outlook.com',
|
|
15
|
-
'msn.com',
|
|
16
|
-
'live.com',
|
|
17
|
-
'qip.ru',
|
|
18
|
-
'pochta.ru',
|
|
19
|
-
'icloud.com',
|
|
20
|
-
'mail.com',
|
|
21
|
-
'tut.by',
|
|
22
|
-
'ukr.net',
|
|
23
|
-
'vk.com',
|
|
24
|
-
'e1.ru',
|
|
25
|
-
'online.ua',
|
|
26
|
-
'bigmir.net',
|
|
27
|
-
'meta.ua',
|
|
28
|
-
'me.com',
|
|
29
|
-
'yandex.com',
|
|
30
|
-
'yandex.kz',
|
|
31
|
-
'mail.ua',
|
|
32
|
-
'protonmail.com',
|
|
33
|
-
'zoho.com',
|
|
34
|
-
'gmx.com',
|
|
35
|
-
'web.de',
|
|
36
|
-
'aol.com',
|
|
37
|
-
'gmx.net',
|
|
38
|
-
'yandex.by',
|
|
39
|
-
'live.ru',
|
|
40
|
-
'inbox.lv',
|
|
41
|
-
'mail.kz',
|
|
42
|
-
'outlook.ru',
|
|
43
|
-
'yandex.ua',
|
|
44
|
-
'email.com',
|
|
45
|
-
'fastmail.com',
|
|
46
|
-
'hinet.net',
|
|
47
|
-
'zohomail.com',
|
|
48
|
-
'tut.net',
|
|
49
|
-
'yahoo.com',
|
|
50
|
-
'rocketmail.com',
|
|
51
|
-
'live.fr',
|
|
52
|
-
'yahoo.co.jp',
|
|
53
|
-
'rediffmail.com',
|
|
54
|
-
'ymail.com',
|
|
55
|
-
'hushmail.com',
|
|
56
|
-
];
|
|
57
|
-
exports.EMAIL_STUDENT_DOMAINS = ['edu', 'study', 'student'];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './white-list';
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
export const WHITE_LIST = [
|
|
2
|
-
'mail.ru',
|
|
3
|
-
'yandex.ru',
|
|
4
|
-
'gmail.com',
|
|
5
|
-
'rambler.ru',
|
|
6
|
-
'bk.ru',
|
|
7
|
-
'inbox.ru',
|
|
8
|
-
'list.ru',
|
|
9
|
-
'ya.ru',
|
|
10
|
-
'hotmail.com',
|
|
11
|
-
'outlook.com',
|
|
12
|
-
'msn.com',
|
|
13
|
-
'live.com',
|
|
14
|
-
'qip.ru',
|
|
15
|
-
'pochta.ru',
|
|
16
|
-
'icloud.com',
|
|
17
|
-
'mail.com',
|
|
18
|
-
'tut.by',
|
|
19
|
-
'ukr.net',
|
|
20
|
-
'vk.com',
|
|
21
|
-
'e1.ru',
|
|
22
|
-
'online.ua',
|
|
23
|
-
'bigmir.net',
|
|
24
|
-
'meta.ua',
|
|
25
|
-
'me.com',
|
|
26
|
-
'yandex.com',
|
|
27
|
-
'yandex.kz',
|
|
28
|
-
'mail.ua',
|
|
29
|
-
'protonmail.com',
|
|
30
|
-
'zoho.com',
|
|
31
|
-
'gmx.com',
|
|
32
|
-
'web.de',
|
|
33
|
-
'aol.com',
|
|
34
|
-
'gmx.net',
|
|
35
|
-
'yandex.by',
|
|
36
|
-
'live.ru',
|
|
37
|
-
'inbox.lv',
|
|
38
|
-
'mail.kz',
|
|
39
|
-
'outlook.ru',
|
|
40
|
-
'yandex.ua',
|
|
41
|
-
'email.com',
|
|
42
|
-
'fastmail.com',
|
|
43
|
-
'hinet.net',
|
|
44
|
-
'zohomail.com',
|
|
45
|
-
'tut.net',
|
|
46
|
-
'yahoo.com',
|
|
47
|
-
'rocketmail.com',
|
|
48
|
-
'live.fr',
|
|
49
|
-
'yahoo.co.jp',
|
|
50
|
-
'rediffmail.com',
|
|
51
|
-
'ymail.com',
|
|
52
|
-
'hushmail.com',
|
|
53
|
-
];
|
|
54
|
-
|
|
55
|
-
export const EMAIL_STUDENT_DOMAINS = ['edu', 'study', 'student'];
|