@purpleschool/gptbot 0.14.49 → 0.14.50-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/build/api/controllers/http/index.d.ts +1 -0
- package/build/api/controllers/http/index.js +1 -0
- package/build/api/controllers/http/photo-session.d.ts +20 -0
- package/build/api/controllers/http/photo-session.js +23 -0
- package/build/api/controllers/http/tts.d.ts +9 -0
- package/build/api/controllers/http/tts.js +9 -0
- package/build/api/routes.d.ts +12 -0
- package/build/api/routes.js +12 -0
- package/build/commands/ai-studio/canvas-node/find-canvas-node-definitions-with-configs.query.d.ts +11 -0
- package/build/commands/tools/index.d.ts +1 -0
- package/build/commands/tools/index.js +1 -0
- package/build/commands/tools/photo-session/admin/create-photo-session-style.command.d.ts +39 -0
- package/build/commands/tools/photo-session/admin/create-photo-session-style.command.js +22 -0
- package/build/commands/tools/photo-session/admin/delete-photo-session-style.command.d.ts +9 -0
- package/build/commands/tools/photo-session/admin/delete-photo-session-style.command.js +11 -0
- package/build/commands/tools/photo-session/admin/index.d.ts +3 -0
- package/build/commands/tools/photo-session/admin/index.js +19 -0
- package/build/commands/tools/photo-session/admin/update-photo-session-style.command.d.ts +45 -0
- package/build/commands/tools/photo-session/admin/update-photo-session-style.command.js +31 -0
- package/build/commands/tools/photo-session/delete-all-photo-session-jobs.command.d.ts +5 -0
- package/build/commands/tools/photo-session/delete-all-photo-session-jobs.command.js +8 -0
- package/build/commands/tools/photo-session/delete-photo-session-job-by-uuid.command.d.ts +9 -0
- package/build/commands/tools/photo-session/delete-photo-session-job-by-uuid.command.js +11 -0
- package/build/commands/tools/photo-session/find-photo-session-job-by-uuid.command.d.ts +61 -0
- package/build/commands/tools/photo-session/find-photo-session-job-by-uuid.command.js +14 -0
- package/build/commands/tools/photo-session/find-photo-session-jobs.command.d.ts +70 -0
- package/build/commands/tools/photo-session/find-photo-session-jobs.command.js +24 -0
- package/build/commands/tools/photo-session/get-photo-session-config.command.d.ts +76 -0
- package/build/commands/tools/photo-session/get-photo-session-config.command.js +11 -0
- package/build/commands/tools/photo-session/get-photo-session-price.command.d.ts +32 -0
- package/build/commands/tools/photo-session/get-photo-session-price.command.js +27 -0
- package/build/commands/tools/photo-session/index.d.ts +12 -0
- package/build/commands/tools/photo-session/index.js +28 -0
- package/build/commands/tools/photo-session/photo-session.command.d.ts +87 -0
- package/build/commands/tools/photo-session/photo-session.command.js +33 -0
- package/build/commands/tools/photo-session/retry-photo-session-job.command.d.ts +85 -0
- package/build/commands/tools/photo-session/retry-photo-session-job.command.js +32 -0
- package/build/commands/tools/photo-session/set-reaction-to-photo-session-job.command.d.ts +67 -0
- package/build/commands/tools/photo-session/set-reaction-to-photo-session-job.command.js +28 -0
- package/build/commands/tools/photo-session/update-photo-session-job-favorite.command.d.ts +65 -0
- package/build/commands/tools/photo-session/update-photo-session-job-favorite.command.js +17 -0
- package/build/commands/tools/photo-session/update-photo-session-job-title.command.d.ts +65 -0
- package/build/commands/tools/photo-session/update-photo-session-job-title.command.js +17 -0
- package/build/commands/tools/tts/create-voice-clone.command.d.ts +32 -0
- package/build/commands/tools/tts/create-voice-clone.command.js +17 -0
- package/build/commands/tools/tts/create-voice-design.command.d.ts +22 -0
- package/build/commands/tools/tts/create-voice-design.command.js +17 -0
- package/build/commands/tools/tts/delete-voice.command.d.ts +9 -0
- package/build/commands/tools/tts/delete-voice.command.js +11 -0
- package/build/commands/tools/tts/download-tts-job.command.d.ts +18 -0
- package/build/commands/tools/tts/download-tts-job.command.js +17 -0
- package/build/commands/tools/tts/find-tts-job-by-uuid.command.d.ts +13 -1
- package/build/commands/tools/tts/find-tts-jobs.command.d.ts +13 -1
- package/build/commands/tools/tts/find-voice-by-uuid.query.d.ts +29 -0
- package/build/commands/tools/tts/find-voice-by-uuid.query.js +14 -0
- package/build/commands/tools/tts/find-voices.query.d.ts +37 -0
- package/build/commands/tools/tts/find-voices.query.js +18 -0
- package/build/commands/tools/tts/get-tts-tool-config.command.d.ts +11 -0
- package/build/commands/tools/tts/improve-tts-text.command.d.ts +13 -0
- package/build/commands/tools/tts/improve-tts-text.command.js +13 -0
- package/build/commands/tools/tts/index.d.ts +9 -0
- package/build/commands/tools/tts/index.js +9 -0
- package/build/commands/tools/tts/retry-tts-job.command.d.ts +13 -1
- package/build/commands/tools/tts/select-voice-design.command.d.ts +33 -0
- package/build/commands/tools/tts/select-voice-design.command.js +17 -0
- package/build/commands/tools/tts/set-reaction-to-tts-job.command.d.ts +13 -1
- package/build/commands/tools/tts/tts.command.d.ts +6 -1
- package/build/commands/tools/tts/tts.command.js +7 -1
- package/build/commands/tools/tts/update-tts-job-favorite.command.d.ts +13 -1
- package/build/commands/tools/tts/update-tts-job-title.command.d.ts +13 -1
- package/build/commands/tools/tts/update-voice.command.d.ts +33 -0
- package/build/commands/tools/tts/update-voice.command.js +17 -0
- package/build/constants/index.d.ts +2 -0
- package/build/constants/index.js +2 -0
- package/build/constants/tool-photo-session/enums/index.d.ts +3 -0
- package/build/constants/tool-photo-session/enums/index.js +19 -0
- package/build/constants/tool-photo-session/enums/photo-session-look-type.enum.d.ts +5 -0
- package/build/constants/tool-photo-session/enums/photo-session-look-type.enum.js +9 -0
- package/build/constants/tool-photo-session/enums/photo-session-model-type.enum.d.ts +3 -0
- package/build/constants/tool-photo-session/enums/photo-session-model-type.enum.js +7 -0
- package/build/constants/tool-photo-session/enums/photo-session-strategy.enum.d.ts +4 -0
- package/build/constants/tool-photo-session/enums/photo-session-strategy.enum.js +8 -0
- package/build/constants/tool-photo-session/index.d.ts +1 -0
- package/build/constants/tool-photo-session/index.js +17 -0
- package/build/constants/tool-tts/enums/index.d.ts +7 -0
- package/build/constants/tool-tts/enums/index.js +23 -0
- package/build/constants/tool-tts/enums/tts-download-format.enum.d.ts +5 -0
- package/build/constants/tool-tts/enums/tts-download-format.enum.js +9 -0
- package/build/constants/tool-tts/enums/voice-category.enum.d.ts +14 -0
- package/build/constants/tool-tts/enums/voice-category.enum.js +18 -0
- package/build/constants/tool-tts/enums/voice-gender.enum.d.ts +4 -0
- package/build/constants/tool-tts/enums/voice-gender.enum.js +8 -0
- package/build/constants/tool-tts/enums/voice-source.enum.d.ts +5 -0
- package/build/constants/tool-tts/enums/voice-source.enum.js +9 -0
- package/build/constants/tool-tts/enums/voice-status.enum.d.ts +5 -0
- package/build/constants/tool-tts/enums/voice-status.enum.js +9 -0
- package/build/constants/tool-tts/enums/voice-tag-group.enum.d.ts +5 -0
- package/build/constants/tool-tts/enums/voice-tag-group.enum.js +9 -0
- package/build/constants/tool-tts/enums/voice-tag.enum.d.ts +20 -0
- package/build/constants/tool-tts/enums/voice-tag.enum.js +24 -0
- package/build/constants/tool-tts/index.d.ts +1 -0
- package/build/constants/tool-tts/index.js +17 -0
- package/build/helpers/index.d.ts +1 -0
- package/build/helpers/index.js +1 -0
- package/build/helpers/photo-session/calculate-photo-session-price.helper.d.ts +6 -0
- package/build/helpers/photo-session/calculate-photo-session-price.helper.js +13 -0
- package/build/helpers/photo-session/index.d.ts +1 -0
- package/build/helpers/photo-session/index.js +17 -0
- package/build/models/canvas-node-definition.schema.d.ts +33 -0
- package/build/models/tools/index.d.ts +1 -0
- package/build/models/tools/index.js +1 -0
- package/build/models/tools/photo-session/index.d.ts +4 -0
- package/build/models/tools/photo-session/index.js +20 -0
- package/build/models/tools/photo-session/photo-session-config.schema.d.ts +77 -0
- package/build/models/tools/photo-session/photo-session-config.schema.js +16 -0
- package/build/models/tools/photo-session/photo-session-job.schema.d.ts +77 -0
- package/build/models/tools/photo-session/photo-session-job.schema.js +45 -0
- package/build/models/tools/photo-session/photo-session-model.schema.d.ts +73 -0
- package/build/models/tools/photo-session/photo-session-model.schema.js +45 -0
- package/build/models/tools/photo-session/photo-session-style.schema.d.ts +29 -0
- package/build/models/tools/photo-session/photo-session-style.schema.js +22 -0
- package/build/models/tools/tts/index.d.ts +3 -0
- package/build/models/tools/tts/index.js +3 -0
- package/build/models/tools/tts/tts-config.schema.d.ts +23 -0
- package/build/models/tools/tts/tts-config.schema.js +14 -1
- package/build/models/tools/tts/tts-job.schema.d.ts +26 -1
- package/build/models/tools/tts/tts-job.schema.js +16 -2
- package/build/models/tools/tts/tts-model.schema.d.ts +1 -0
- package/build/models/tools/tts/tts-model.schema.js +1 -0
- package/build/models/tools/tts/voice-design-draft.schema.d.ts +12 -0
- package/build/models/tools/tts/voice-design-draft.schema.js +12 -0
- package/build/models/tools/tts/voice-design-sample.schema.d.ts +6 -0
- package/build/models/tools/tts/voice-design-sample.schema.js +8 -0
- package/build/models/tools/tts/voice.schema.d.ts +22 -0
- package/build/models/tools/tts/voice.schema.js +24 -0
- package/package.json +1 -1
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { PHOTO_SESSION_LOOK_TYPE } from '../../../constants';
|
|
3
|
+
export declare const PhotoSessionLookCategorySchema: z.ZodObject<{
|
|
4
|
+
type: z.ZodEnum<typeof PHOTO_SESSION_LOOK_TYPE>;
|
|
5
|
+
maxPhotos: z.ZodNumber;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export declare const PhotoSessionConfigSchema: z.ZodObject<{
|
|
8
|
+
models: z.ZodArray<z.ZodObject<{
|
|
9
|
+
uuid: z.ZodString;
|
|
10
|
+
title: z.ZodString;
|
|
11
|
+
description: z.ZodString;
|
|
12
|
+
aiModel: z.ZodString;
|
|
13
|
+
isNew: z.ZodBoolean;
|
|
14
|
+
tierLabel: z.ZodString;
|
|
15
|
+
pricePerImage: z.ZodNumber;
|
|
16
|
+
order: z.ZodNumber;
|
|
17
|
+
status: z.ZodEnum<typeof import("../../..").TOOL_MODEL_STATUS>;
|
|
18
|
+
icons: z.ZodObject<{
|
|
19
|
+
light: z.ZodObject<{
|
|
20
|
+
svg: z.ZodString;
|
|
21
|
+
png: z.ZodString;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
dark: z.ZodObject<{
|
|
24
|
+
svg: z.ZodString;
|
|
25
|
+
png: z.ZodString;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
strategy: z.ZodEnum<typeof import("../../..").PHOTO_SESSION_STRATEGY>;
|
|
29
|
+
maxInputLength: z.ZodOptional<z.ZodNumber>;
|
|
30
|
+
params: z.ZodObject<{
|
|
31
|
+
imageAttachment: z.ZodObject<{
|
|
32
|
+
supported: z.ZodBoolean;
|
|
33
|
+
maxImages: z.ZodNumber;
|
|
34
|
+
acceptedTypes: z.ZodArray<z.ZodString>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
aspectRatio: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
37
|
+
width: z.ZodNumber;
|
|
38
|
+
height: z.ZodNumber;
|
|
39
|
+
}, z.core.$strip>>;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
pricingRules: z.ZodArray<z.ZodObject<{
|
|
42
|
+
condition: z.ZodObject<{
|
|
43
|
+
withoutSub: z.ZodOptional<z.ZodBoolean>;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
value: z.ZodNumber;
|
|
46
|
+
}, z.core.$strip>>;
|
|
47
|
+
unlockedBy: z.ZodNullable<z.ZodObject<{
|
|
48
|
+
uuid: z.ZodString;
|
|
49
|
+
name: z.ZodString;
|
|
50
|
+
}, z.core.$strip>>;
|
|
51
|
+
canUse: z.ZodBoolean;
|
|
52
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
53
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
54
|
+
}, z.core.$strip>>;
|
|
55
|
+
styles: z.ZodArray<z.ZodObject<{
|
|
56
|
+
uuid: z.ZodString;
|
|
57
|
+
code: z.ZodString;
|
|
58
|
+
title: z.ZodString;
|
|
59
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
|
+
references: z.ZodArray<z.ZodObject<{
|
|
61
|
+
uuid: z.ZodString;
|
|
62
|
+
styleId: z.ZodString;
|
|
63
|
+
photoUrl: z.ZodString;
|
|
64
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
|
+
order: z.ZodNumber;
|
|
66
|
+
createdAt: z.ZodDate;
|
|
67
|
+
updatedAt: z.ZodDate;
|
|
68
|
+
}, z.core.$strip>>;
|
|
69
|
+
createdAt: z.ZodDate;
|
|
70
|
+
updatedAt: z.ZodDate;
|
|
71
|
+
}, z.core.$strip>>;
|
|
72
|
+
looks: z.ZodArray<z.ZodObject<{
|
|
73
|
+
type: z.ZodEnum<typeof PHOTO_SESSION_LOOK_TYPE>;
|
|
74
|
+
maxPhotos: z.ZodNumber;
|
|
75
|
+
}, z.core.$strip>>;
|
|
76
|
+
}, z.core.$strip>;
|
|
77
|
+
export type PhotoSessionConfig = z.infer<typeof PhotoSessionConfigSchema>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PhotoSessionConfigSchema = exports.PhotoSessionLookCategorySchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const photo_session_model_schema_1 = require("./photo-session-model.schema");
|
|
6
|
+
const photo_session_style_schema_1 = require("./photo-session-style.schema");
|
|
7
|
+
const constants_1 = require("../../../constants");
|
|
8
|
+
exports.PhotoSessionLookCategorySchema = zod_1.z.object({
|
|
9
|
+
type: zod_1.z.nativeEnum(constants_1.PHOTO_SESSION_LOOK_TYPE),
|
|
10
|
+
maxPhotos: zod_1.z.number(),
|
|
11
|
+
});
|
|
12
|
+
exports.PhotoSessionConfigSchema = zod_1.z.object({
|
|
13
|
+
models: zod_1.z.array(photo_session_model_schema_1.PhotoSessionModelSchema),
|
|
14
|
+
styles: zod_1.z.array(photo_session_style_schema_1.PhotoSessionStyleSchema),
|
|
15
|
+
looks: zod_1.z.array(exports.PhotoSessionLookCategorySchema),
|
|
16
|
+
});
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { USER_REACTION } from '../../../constants';
|
|
3
|
+
export declare const PhotoSessionJobParamsSchema: z.ZodObject<{
|
|
4
|
+
attachedFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5
|
+
uuid: z.ZodString;
|
|
6
|
+
url: z.ZodString;
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
mimeType: z.ZodString;
|
|
9
|
+
type: z.ZodString;
|
|
10
|
+
size: z.ZodNumber;
|
|
11
|
+
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
12
|
+
}, z.core.$strip>>>;
|
|
13
|
+
imageUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
14
|
+
styleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
referenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
referenceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
17
|
+
customStylePrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
customStylePhotos: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
19
|
+
clothingPhotos: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
20
|
+
hairstylePhotos: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
21
|
+
accessoriesPhotos: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
22
|
+
aspectRatio: z.ZodOptional<z.ZodString>;
|
|
23
|
+
userHasActiveSubscriptionOrProduct: z.ZodOptional<z.ZodBoolean>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
export type PhotoSessionJobParams = z.infer<typeof PhotoSessionJobParamsSchema>;
|
|
26
|
+
export declare const PhotoSessionJobSchema: z.ZodObject<{
|
|
27
|
+
uuid: z.ZodString;
|
|
28
|
+
status: z.ZodEnum<typeof import("../../..").TOOL_JOB_STATUS>;
|
|
29
|
+
error: z.ZodNullable<z.ZodString>;
|
|
30
|
+
isFavorite: z.ZodBoolean;
|
|
31
|
+
createdAt: z.ZodDate;
|
|
32
|
+
updatedAt: z.ZodDate;
|
|
33
|
+
prompt: z.ZodString;
|
|
34
|
+
reaction: z.ZodNullable<z.ZodEnum<typeof USER_REACTION>>;
|
|
35
|
+
dislikeReason: z.ZodNullable<z.ZodString>;
|
|
36
|
+
externalId: z.ZodNullable<z.ZodString>;
|
|
37
|
+
title: z.ZodString;
|
|
38
|
+
modelId: z.ZodString;
|
|
39
|
+
price: z.ZodNumber;
|
|
40
|
+
previewUrl: z.ZodNullable<z.ZodString>;
|
|
41
|
+
params: z.ZodObject<{
|
|
42
|
+
attachedFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
43
|
+
uuid: z.ZodString;
|
|
44
|
+
url: z.ZodString;
|
|
45
|
+
name: z.ZodString;
|
|
46
|
+
mimeType: z.ZodString;
|
|
47
|
+
type: z.ZodString;
|
|
48
|
+
size: z.ZodNumber;
|
|
49
|
+
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
50
|
+
}, z.core.$strip>>>;
|
|
51
|
+
imageUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
52
|
+
styleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
+
referenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
|
+
referenceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
55
|
+
customStylePrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
56
|
+
customStylePhotos: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
57
|
+
clothingPhotos: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
58
|
+
hairstylePhotos: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
59
|
+
accessoriesPhotos: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
60
|
+
aspectRatio: z.ZodOptional<z.ZodString>;
|
|
61
|
+
userHasActiveSubscriptionOrProduct: z.ZodOptional<z.ZodBoolean>;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
imageUrls: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
64
|
+
images: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
65
|
+
uuid: z.ZodString;
|
|
66
|
+
url: z.ZodString;
|
|
67
|
+
originalName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
68
|
+
resolution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
69
|
+
width: z.ZodNumber;
|
|
70
|
+
height: z.ZodNumber;
|
|
71
|
+
}, z.core.$strip>>>;
|
|
72
|
+
}, z.core.$strip>>>;
|
|
73
|
+
isPublished: z.ZodBoolean;
|
|
74
|
+
postId: z.ZodNullable<z.ZodString>;
|
|
75
|
+
isDeleted: z.ZodBoolean;
|
|
76
|
+
}, z.core.$strip>;
|
|
77
|
+
export type PhotoSessionJob = z.infer<typeof PhotoSessionJobSchema>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PhotoSessionJobSchema = exports.PhotoSessionJobParamsSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const constants_1 = require("../../../constants");
|
|
6
|
+
const tool_job_schema_1 = require("../../tool-job.schema");
|
|
7
|
+
const file_schema_1 = require("../../file.schema");
|
|
8
|
+
const common_1 = require("../common");
|
|
9
|
+
exports.PhotoSessionJobParamsSchema = zod_1.z.object({
|
|
10
|
+
attachedFiles: zod_1.z.array(common_1.AttachedToolFileSchema).optional(),
|
|
11
|
+
imageUrls: zod_1.z.array(zod_1.z.string()).optional(),
|
|
12
|
+
styleId: zod_1.z.string().uuid().nullable().optional(),
|
|
13
|
+
referenceId: zod_1.z.string().uuid().nullable().optional(),
|
|
14
|
+
referenceIds: zod_1.z.array(zod_1.z.string().uuid()).optional(),
|
|
15
|
+
customStylePrompt: zod_1.z.string().nullable().optional(),
|
|
16
|
+
customStylePhotos: zod_1.z.array(zod_1.z.string()).optional(),
|
|
17
|
+
clothingPhotos: zod_1.z.array(zod_1.z.string()).optional(),
|
|
18
|
+
hairstylePhotos: zod_1.z.array(zod_1.z.string()).optional(),
|
|
19
|
+
accessoriesPhotos: zod_1.z.array(zod_1.z.string()).optional(),
|
|
20
|
+
aspectRatio: zod_1.z.string().optional(),
|
|
21
|
+
userHasActiveSubscriptionOrProduct: zod_1.z.boolean().optional(),
|
|
22
|
+
});
|
|
23
|
+
exports.PhotoSessionJobSchema = tool_job_schema_1.ToolJobSchema.extend({
|
|
24
|
+
prompt: zod_1.z.string(),
|
|
25
|
+
reaction: zod_1.z.nativeEnum(constants_1.USER_REACTION).nullable(),
|
|
26
|
+
dislikeReason: zod_1.z.string().nullable(),
|
|
27
|
+
externalId: zod_1.z.string().nullable(),
|
|
28
|
+
title: zod_1.z.string(),
|
|
29
|
+
modelId: zod_1.z.string(),
|
|
30
|
+
price: zod_1.z.number(),
|
|
31
|
+
previewUrl: zod_1.z.string().nullable(),
|
|
32
|
+
params: exports.PhotoSessionJobParamsSchema,
|
|
33
|
+
imageUrls: zod_1.z.array(zod_1.z.string()).nullable(),
|
|
34
|
+
images: zod_1.z
|
|
35
|
+
.array(zod_1.z.object({
|
|
36
|
+
uuid: zod_1.z.string(),
|
|
37
|
+
url: zod_1.z.string(),
|
|
38
|
+
originalName: zod_1.z.string().nullable().optional(),
|
|
39
|
+
resolution: file_schema_1.FileResolutionSchema.nullable().optional(),
|
|
40
|
+
}))
|
|
41
|
+
.nullable(),
|
|
42
|
+
isPublished: zod_1.z.boolean(),
|
|
43
|
+
postId: zod_1.z.string().nullable(),
|
|
44
|
+
isDeleted: zod_1.z.boolean(),
|
|
45
|
+
});
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { PHOTO_SESSION_STRATEGY, TOOL_MODEL_STATUS } from '../../../constants';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
export declare const PhotoSessionModelParamsSchema: z.ZodObject<{
|
|
4
|
+
imageAttachment: z.ZodObject<{
|
|
5
|
+
supported: z.ZodBoolean;
|
|
6
|
+
maxImages: z.ZodNumber;
|
|
7
|
+
acceptedTypes: z.ZodArray<z.ZodString>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
aspectRatio: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
10
|
+
width: z.ZodNumber;
|
|
11
|
+
height: z.ZodNumber;
|
|
12
|
+
}, z.core.$strip>>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
export type PhotoSessionModelParams = z.infer<typeof PhotoSessionModelParamsSchema>;
|
|
15
|
+
export declare const PhotoSessionModelPricingRuleConditionSchema: z.ZodObject<{
|
|
16
|
+
withoutSub: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
export type PhotoSessionModelPricingRuleCondition = z.infer<typeof PhotoSessionModelPricingRuleConditionSchema>;
|
|
19
|
+
export declare const PhotoSessionModelPricingRulesSchema: z.ZodArray<z.ZodObject<{
|
|
20
|
+
condition: z.ZodObject<{
|
|
21
|
+
withoutSub: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
value: z.ZodNumber;
|
|
24
|
+
}, z.core.$strip>>;
|
|
25
|
+
export type PhotoSessionModelPricingRules = z.infer<typeof PhotoSessionModelPricingRulesSchema>;
|
|
26
|
+
export declare const PhotoSessionModelSchema: z.ZodObject<{
|
|
27
|
+
uuid: z.ZodString;
|
|
28
|
+
title: z.ZodString;
|
|
29
|
+
description: z.ZodString;
|
|
30
|
+
aiModel: z.ZodString;
|
|
31
|
+
isNew: z.ZodBoolean;
|
|
32
|
+
tierLabel: z.ZodString;
|
|
33
|
+
pricePerImage: z.ZodNumber;
|
|
34
|
+
order: z.ZodNumber;
|
|
35
|
+
status: z.ZodEnum<typeof TOOL_MODEL_STATUS>;
|
|
36
|
+
icons: z.ZodObject<{
|
|
37
|
+
light: z.ZodObject<{
|
|
38
|
+
svg: z.ZodString;
|
|
39
|
+
png: z.ZodString;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
dark: z.ZodObject<{
|
|
42
|
+
svg: z.ZodString;
|
|
43
|
+
png: z.ZodString;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
strategy: z.ZodEnum<typeof PHOTO_SESSION_STRATEGY>;
|
|
47
|
+
maxInputLength: z.ZodOptional<z.ZodNumber>;
|
|
48
|
+
params: z.ZodObject<{
|
|
49
|
+
imageAttachment: z.ZodObject<{
|
|
50
|
+
supported: z.ZodBoolean;
|
|
51
|
+
maxImages: z.ZodNumber;
|
|
52
|
+
acceptedTypes: z.ZodArray<z.ZodString>;
|
|
53
|
+
}, z.core.$strip>;
|
|
54
|
+
aspectRatio: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
55
|
+
width: z.ZodNumber;
|
|
56
|
+
height: z.ZodNumber;
|
|
57
|
+
}, z.core.$strip>>;
|
|
58
|
+
}, z.core.$strip>;
|
|
59
|
+
pricingRules: z.ZodArray<z.ZodObject<{
|
|
60
|
+
condition: z.ZodObject<{
|
|
61
|
+
withoutSub: z.ZodOptional<z.ZodBoolean>;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
value: z.ZodNumber;
|
|
64
|
+
}, z.core.$strip>>;
|
|
65
|
+
unlockedBy: z.ZodNullable<z.ZodObject<{
|
|
66
|
+
uuid: z.ZodString;
|
|
67
|
+
name: z.ZodString;
|
|
68
|
+
}, z.core.$strip>>;
|
|
69
|
+
canUse: z.ZodBoolean;
|
|
70
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
71
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
72
|
+
}, z.core.$strip>;
|
|
73
|
+
export type PhotoSessionModel = z.infer<typeof PhotoSessionModelSchema>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PhotoSessionModelSchema = exports.PhotoSessionModelPricingRulesSchema = exports.PhotoSessionModelPricingRuleConditionSchema = exports.PhotoSessionModelParamsSchema = void 0;
|
|
4
|
+
const unlocked_by_subscription_schema_1 = require("../../unlocked-by-subscription.schema");
|
|
5
|
+
const constants_1 = require("../../../constants");
|
|
6
|
+
const zod_1 = require("zod");
|
|
7
|
+
const icon_variants_schema_1 = require("../../icon-variants.schema");
|
|
8
|
+
exports.PhotoSessionModelParamsSchema = zod_1.z.object({
|
|
9
|
+
imageAttachment: zod_1.z.object({
|
|
10
|
+
supported: zod_1.z.boolean(),
|
|
11
|
+
maxImages: zod_1.z.number(),
|
|
12
|
+
acceptedTypes: zod_1.z.array(zod_1.z.string()),
|
|
13
|
+
}),
|
|
14
|
+
aspectRatio: zod_1.z.record(zod_1.z.string(), zod_1.z.object({
|
|
15
|
+
width: zod_1.z.number(),
|
|
16
|
+
height: zod_1.z.number(),
|
|
17
|
+
})),
|
|
18
|
+
});
|
|
19
|
+
exports.PhotoSessionModelPricingRuleConditionSchema = zod_1.z.object({
|
|
20
|
+
withoutSub: zod_1.z.boolean().optional(),
|
|
21
|
+
});
|
|
22
|
+
exports.PhotoSessionModelPricingRulesSchema = zod_1.z.array(zod_1.z.object({
|
|
23
|
+
condition: exports.PhotoSessionModelPricingRuleConditionSchema,
|
|
24
|
+
value: zod_1.z.number(),
|
|
25
|
+
}));
|
|
26
|
+
exports.PhotoSessionModelSchema = zod_1.z.object({
|
|
27
|
+
uuid: zod_1.z.string(),
|
|
28
|
+
title: zod_1.z.string(),
|
|
29
|
+
description: zod_1.z.string(),
|
|
30
|
+
aiModel: zod_1.z.string(),
|
|
31
|
+
isNew: zod_1.z.boolean(),
|
|
32
|
+
tierLabel: zod_1.z.string(),
|
|
33
|
+
pricePerImage: zod_1.z.number(),
|
|
34
|
+
order: zod_1.z.number(),
|
|
35
|
+
status: zod_1.z.nativeEnum(constants_1.TOOL_MODEL_STATUS),
|
|
36
|
+
icons: icon_variants_schema_1.IconVariantsSchema,
|
|
37
|
+
strategy: zod_1.z.nativeEnum(constants_1.PHOTO_SESSION_STRATEGY),
|
|
38
|
+
maxInputLength: zod_1.z.number().optional(),
|
|
39
|
+
params: exports.PhotoSessionModelParamsSchema,
|
|
40
|
+
pricingRules: exports.PhotoSessionModelPricingRulesSchema,
|
|
41
|
+
unlockedBy: unlocked_by_subscription_schema_1.UnlockedBySchema.nullable(),
|
|
42
|
+
canUse: zod_1.z.boolean(),
|
|
43
|
+
createdAt: zod_1.z.date().optional(),
|
|
44
|
+
updatedAt: zod_1.z.date().optional(),
|
|
45
|
+
});
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const PhotoSessionStyleReferenceSchema: z.ZodObject<{
|
|
3
|
+
uuid: z.ZodString;
|
|
4
|
+
styleId: z.ZodString;
|
|
5
|
+
photoUrl: z.ZodString;
|
|
6
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
|
+
order: z.ZodNumber;
|
|
8
|
+
createdAt: z.ZodDate;
|
|
9
|
+
updatedAt: z.ZodDate;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export type PhotoSessionStyleReference = z.infer<typeof PhotoSessionStyleReferenceSchema>;
|
|
12
|
+
export declare const PhotoSessionStyleSchema: z.ZodObject<{
|
|
13
|
+
uuid: z.ZodString;
|
|
14
|
+
code: z.ZodString;
|
|
15
|
+
title: z.ZodString;
|
|
16
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
references: z.ZodArray<z.ZodObject<{
|
|
18
|
+
uuid: z.ZodString;
|
|
19
|
+
styleId: z.ZodString;
|
|
20
|
+
photoUrl: z.ZodString;
|
|
21
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
order: z.ZodNumber;
|
|
23
|
+
createdAt: z.ZodDate;
|
|
24
|
+
updatedAt: z.ZodDate;
|
|
25
|
+
}, z.core.$strip>>;
|
|
26
|
+
createdAt: z.ZodDate;
|
|
27
|
+
updatedAt: z.ZodDate;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
export type PhotoSessionStyle = z.infer<typeof PhotoSessionStyleSchema>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PhotoSessionStyleSchema = exports.PhotoSessionStyleReferenceSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.PhotoSessionStyleReferenceSchema = zod_1.z.object({
|
|
6
|
+
uuid: zod_1.z.string().uuid(),
|
|
7
|
+
styleId: zod_1.z.string().uuid(),
|
|
8
|
+
photoUrl: zod_1.z.string(),
|
|
9
|
+
description: zod_1.z.string().nullable().optional(),
|
|
10
|
+
order: zod_1.z.number().int().min(0).max(5),
|
|
11
|
+
createdAt: zod_1.z.date(),
|
|
12
|
+
updatedAt: zod_1.z.date(),
|
|
13
|
+
});
|
|
14
|
+
exports.PhotoSessionStyleSchema = zod_1.z.object({
|
|
15
|
+
uuid: zod_1.z.string().uuid(),
|
|
16
|
+
code: zod_1.z.string(),
|
|
17
|
+
title: zod_1.z.string(),
|
|
18
|
+
description: zod_1.z.string().nullable().optional(),
|
|
19
|
+
references: zod_1.z.array(exports.PhotoSessionStyleReferenceSchema),
|
|
20
|
+
createdAt: zod_1.z.date(),
|
|
21
|
+
updatedAt: zod_1.z.date(),
|
|
22
|
+
});
|
|
@@ -17,3 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./tts-config.schema"), exports);
|
|
18
18
|
__exportStar(require("./tts-job.schema"), exports);
|
|
19
19
|
__exportStar(require("./tts-model.schema"), exports);
|
|
20
|
+
__exportStar(require("./voice.schema"), exports);
|
|
21
|
+
__exportStar(require("./voice-design-draft.schema"), exports);
|
|
22
|
+
__exportStar(require("./voice-design-sample.schema"), exports);
|
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { VOICE_CATEGORY, VOICE_TAG, VOICE_TAG_GROUP } from '../../../constants';
|
|
3
|
+
export declare const TTSVoiceTagSchema: z.ZodObject<{
|
|
4
|
+
id: z.ZodEnum<typeof VOICE_TAG>;
|
|
5
|
+
group: z.ZodEnum<typeof VOICE_TAG_GROUP>;
|
|
6
|
+
label: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export type TTSVoiceTag = z.infer<typeof TTSVoiceTagSchema>;
|
|
9
|
+
export declare const TTSVoiceCategorySchema: z.ZodObject<{
|
|
10
|
+
id: z.ZodEnum<typeof VOICE_CATEGORY>;
|
|
11
|
+
label: z.ZodString;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export type TTSVoiceCategory = z.infer<typeof TTSVoiceCategorySchema>;
|
|
2
14
|
export declare const TTSConfigSchema: z.ZodObject<{
|
|
3
15
|
models: z.ZodArray<z.ZodObject<{
|
|
4
16
|
uuid: z.ZodString;
|
|
@@ -17,6 +29,7 @@ export declare const TTSConfigSchema: z.ZodObject<{
|
|
|
17
29
|
}, z.core.$strip>;
|
|
18
30
|
}, z.core.$strip>;
|
|
19
31
|
maxInputLength: z.ZodNumber;
|
|
32
|
+
maxSpeakers: z.ZodNumber;
|
|
20
33
|
params: z.ZodObject<{
|
|
21
34
|
speed: z.ZodOptional<z.ZodObject<{
|
|
22
35
|
title: z.ZodString;
|
|
@@ -120,4 +133,14 @@ export declare const TTSConfigSchema: z.ZodObject<{
|
|
|
120
133
|
canUse: z.ZodBoolean;
|
|
121
134
|
status: z.ZodString;
|
|
122
135
|
}, z.core.$strip>>;
|
|
136
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
137
|
+
id: z.ZodEnum<typeof VOICE_TAG>;
|
|
138
|
+
group: z.ZodEnum<typeof VOICE_TAG_GROUP>;
|
|
139
|
+
label: z.ZodString;
|
|
140
|
+
}, z.core.$strip>>;
|
|
141
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
142
|
+
id: z.ZodEnum<typeof VOICE_CATEGORY>;
|
|
143
|
+
label: z.ZodString;
|
|
144
|
+
}, z.core.$strip>>;
|
|
145
|
+
speakerMarkerLabel: z.ZodString;
|
|
123
146
|
}, z.core.$strip>;
|
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TTSConfigSchema = void 0;
|
|
3
|
+
exports.TTSConfigSchema = exports.TTSVoiceCategorySchema = exports.TTSVoiceTagSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const constants_1 = require("../../../constants");
|
|
5
6
|
const tts_model_schema_1 = require("./tts-model.schema");
|
|
7
|
+
exports.TTSVoiceTagSchema = zod_1.z.object({
|
|
8
|
+
id: zod_1.z.nativeEnum(constants_1.VOICE_TAG),
|
|
9
|
+
group: zod_1.z.nativeEnum(constants_1.VOICE_TAG_GROUP),
|
|
10
|
+
label: zod_1.z.string(),
|
|
11
|
+
});
|
|
12
|
+
exports.TTSVoiceCategorySchema = zod_1.z.object({
|
|
13
|
+
id: zod_1.z.nativeEnum(constants_1.VOICE_CATEGORY),
|
|
14
|
+
label: zod_1.z.string(),
|
|
15
|
+
});
|
|
6
16
|
exports.TTSConfigSchema = zod_1.z.object({
|
|
7
17
|
models: zod_1.z.array(tts_model_schema_1.TTSModelSchema),
|
|
18
|
+
tags: zod_1.z.array(exports.TTSVoiceTagSchema),
|
|
19
|
+
categories: zod_1.z.array(exports.TTSVoiceCategorySchema),
|
|
20
|
+
speakerMarkerLabel: zod_1.z.string(),
|
|
8
21
|
});
|
|
@@ -7,6 +7,19 @@ export declare const TTSJobParamsSchema: z.ZodObject<{
|
|
|
7
7
|
style: z.ZodOptional<z.ZodNumber>;
|
|
8
8
|
}, z.core.$strip>;
|
|
9
9
|
export type TTSJobParams = z.infer<typeof TTSJobParamsSchema>;
|
|
10
|
+
export declare const TTSJobSpeakerSchema: z.ZodObject<{
|
|
11
|
+
speaker: z.ZodNumber;
|
|
12
|
+
voiceId: z.ZodString;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
export type TTSJobSpeaker = z.infer<typeof TTSJobSpeakerSchema>;
|
|
15
|
+
export declare const TTSJobVoiceSchema: z.ZodObject<{
|
|
16
|
+
uuid: z.ZodString;
|
|
17
|
+
title: z.ZodString;
|
|
18
|
+
previewUrl: z.ZodString;
|
|
19
|
+
isDeleted: z.ZodBoolean;
|
|
20
|
+
speaker: z.ZodNullable<z.ZodNumber>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
export type TTSJobVoice = z.infer<typeof TTSJobVoiceSchema>;
|
|
10
23
|
export declare const TTSJobSchema: z.ZodObject<{
|
|
11
24
|
uuid: z.ZodString;
|
|
12
25
|
status: z.ZodEnum<typeof import("../../..").TOOL_JOB_STATUS>;
|
|
@@ -26,6 +39,18 @@ export declare const TTSJobSchema: z.ZodObject<{
|
|
|
26
39
|
style: z.ZodOptional<z.ZodNumber>;
|
|
27
40
|
}, z.core.$strip>;
|
|
28
41
|
modelId: z.ZodString;
|
|
29
|
-
voiceId: z.ZodString
|
|
42
|
+
voiceId: z.ZodNullable<z.ZodString>;
|
|
43
|
+
isDialog: z.ZodBoolean;
|
|
44
|
+
speakers: z.ZodArray<z.ZodObject<{
|
|
45
|
+
speaker: z.ZodNumber;
|
|
46
|
+
voiceId: z.ZodString;
|
|
47
|
+
}, z.core.$strip>>;
|
|
48
|
+
voices: z.ZodArray<z.ZodObject<{
|
|
49
|
+
uuid: z.ZodString;
|
|
50
|
+
title: z.ZodString;
|
|
51
|
+
previewUrl: z.ZodString;
|
|
52
|
+
isDeleted: z.ZodBoolean;
|
|
53
|
+
speaker: z.ZodNullable<z.ZodNumber>;
|
|
54
|
+
}, z.core.$strip>>;
|
|
30
55
|
}, z.core.$strip>;
|
|
31
56
|
export type TTSJob = z.infer<typeof TTSJobSchema>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TTSJobSchema = exports.TTSJobParamsSchema = void 0;
|
|
3
|
+
exports.TTSJobSchema = exports.TTSJobVoiceSchema = exports.TTSJobSpeakerSchema = exports.TTSJobParamsSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const tool_job_schema_1 = require("../../tool-job.schema");
|
|
6
6
|
const constants_1 = require("../../../constants");
|
|
@@ -10,6 +10,17 @@ exports.TTSJobParamsSchema = zod_1.z.object({
|
|
|
10
10
|
stability: zod_1.z.number().optional(),
|
|
11
11
|
style: zod_1.z.number().optional(),
|
|
12
12
|
});
|
|
13
|
+
exports.TTSJobSpeakerSchema = zod_1.z.object({
|
|
14
|
+
speaker: zod_1.z.number(),
|
|
15
|
+
voiceId: zod_1.z.string(),
|
|
16
|
+
});
|
|
17
|
+
exports.TTSJobVoiceSchema = zod_1.z.object({
|
|
18
|
+
uuid: zod_1.z.string(),
|
|
19
|
+
title: zod_1.z.string(),
|
|
20
|
+
previewUrl: zod_1.z.string(),
|
|
21
|
+
isDeleted: zod_1.z.boolean(),
|
|
22
|
+
speaker: zod_1.z.number().nullable(),
|
|
23
|
+
});
|
|
13
24
|
exports.TTSJobSchema = tool_job_schema_1.ToolJobSchema.extend({
|
|
14
25
|
userInput: zod_1.z.string(),
|
|
15
26
|
title: zod_1.z.string(),
|
|
@@ -18,5 +29,8 @@ exports.TTSJobSchema = tool_job_schema_1.ToolJobSchema.extend({
|
|
|
18
29
|
duration: zod_1.z.string(),
|
|
19
30
|
params: exports.TTSJobParamsSchema,
|
|
20
31
|
modelId: zod_1.z.string(),
|
|
21
|
-
voiceId: zod_1.z.string(),
|
|
32
|
+
voiceId: zod_1.z.string().nullable(),
|
|
33
|
+
isDialog: zod_1.z.boolean(),
|
|
34
|
+
speakers: zod_1.z.array(exports.TTSJobSpeakerSchema),
|
|
35
|
+
voices: zod_1.z.array(exports.TTSJobVoiceSchema),
|
|
22
36
|
});
|
|
@@ -45,6 +45,7 @@ exports.TTSModelSchema = zod_1.z.object({
|
|
|
45
45
|
order: zod_1.z.number(),
|
|
46
46
|
icons: icon_variants_schema_1.IconVariantsSchema,
|
|
47
47
|
maxInputLength: zod_1.z.number(),
|
|
48
|
+
maxSpeakers: zod_1.z.number(),
|
|
48
49
|
params: exports.TTSModelParams,
|
|
49
50
|
voices: zod_1.z.array(exports.TTSVoiceSchema),
|
|
50
51
|
unlockedBy: unlocked_by_subscription_schema_1.UnlockedBySchema.nullable(),
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { VOICE_GENDER } from '../../../constants';
|
|
3
|
+
export declare const VoiceDesignDraftSchema: z.ZodObject<{
|
|
4
|
+
designId: z.ZodString;
|
|
5
|
+
title: z.ZodString;
|
|
6
|
+
gender: z.ZodEnum<typeof VOICE_GENDER>;
|
|
7
|
+
samples: z.ZodArray<z.ZodObject<{
|
|
8
|
+
sampleId: z.ZodString;
|
|
9
|
+
previewUrl: z.ZodString;
|
|
10
|
+
}, z.core.$strip>>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export type VoiceDesignDraft = z.infer<typeof VoiceDesignDraftSchema>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VoiceDesignDraftSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const constants_1 = require("../../../constants");
|
|
6
|
+
const voice_design_sample_schema_1 = require("./voice-design-sample.schema");
|
|
7
|
+
exports.VoiceDesignDraftSchema = zod_1.z.object({
|
|
8
|
+
designId: zod_1.z.string().uuid(),
|
|
9
|
+
title: zod_1.z.string(),
|
|
10
|
+
gender: zod_1.z.nativeEnum(constants_1.VOICE_GENDER),
|
|
11
|
+
samples: zod_1.z.array(voice_design_sample_schema_1.VoiceDesignSampleSchema),
|
|
12
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VoiceDesignSampleSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.VoiceDesignSampleSchema = zod_1.z.object({
|
|
6
|
+
sampleId: zod_1.z.string().uuid(),
|
|
7
|
+
previewUrl: zod_1.z.string(),
|
|
8
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { VOICE_CATEGORY, VOICE_GENDER, VOICE_SOURCE, VOICE_STATUS } from '../../../constants';
|
|
3
|
+
export declare const VoiceSchema: z.ZodObject<{
|
|
4
|
+
uuid: z.ZodString;
|
|
5
|
+
source: z.ZodEnum<typeof VOICE_SOURCE>;
|
|
6
|
+
title: z.ZodString;
|
|
7
|
+
description: z.ZodString;
|
|
8
|
+
gender: z.ZodNullable<z.ZodEnum<typeof VOICE_GENDER>>;
|
|
9
|
+
trait: z.ZodNullable<z.ZodString>;
|
|
10
|
+
ageRange: z.ZodNullable<z.ZodString>;
|
|
11
|
+
categories: z.ZodArray<z.ZodEnum<typeof VOICE_CATEGORY>>;
|
|
12
|
+
previewUrl: z.ZodString;
|
|
13
|
+
status: z.ZodEnum<typeof VOICE_STATUS>;
|
|
14
|
+
error: z.ZodNullable<z.ZodString>;
|
|
15
|
+
order: z.ZodNumber;
|
|
16
|
+
isDeleted: z.ZodBoolean;
|
|
17
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
18
|
+
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
19
|
+
createdAt: z.ZodDate;
|
|
20
|
+
updatedAt: z.ZodDate;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
export type Voice = z.infer<typeof VoiceSchema>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VoiceSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const constants_1 = require("../../../constants");
|
|
6
|
+
exports.VoiceSchema = zod_1.z.object({
|
|
7
|
+
uuid: zod_1.z.string().uuid(),
|
|
8
|
+
source: zod_1.z.nativeEnum(constants_1.VOICE_SOURCE),
|
|
9
|
+
title: zod_1.z.string(),
|
|
10
|
+
description: zod_1.z.string(),
|
|
11
|
+
gender: zod_1.z.nativeEnum(constants_1.VOICE_GENDER).nullable(),
|
|
12
|
+
trait: zod_1.z.string().nullable(),
|
|
13
|
+
ageRange: zod_1.z.string().nullable(),
|
|
14
|
+
categories: zod_1.z.array(zod_1.z.nativeEnum(constants_1.VOICE_CATEGORY)),
|
|
15
|
+
previewUrl: zod_1.z.string(),
|
|
16
|
+
status: zod_1.z.nativeEnum(constants_1.VOICE_STATUS),
|
|
17
|
+
error: zod_1.z.string().nullable(),
|
|
18
|
+
order: zod_1.z.number(),
|
|
19
|
+
isDeleted: zod_1.z.boolean(),
|
|
20
|
+
userId: zod_1.z.string().uuid().nullable(),
|
|
21
|
+
unregisteredUserId: zod_1.z.string().uuid().nullable(),
|
|
22
|
+
createdAt: zod_1.z.date(),
|
|
23
|
+
updatedAt: zod_1.z.date(),
|
|
24
|
+
});
|