@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,65 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace UpdatePhotoSessionJobTitleCommand {
|
|
3
|
+
const RequestSchema: z.ZodObject<{
|
|
4
|
+
title: z.ZodString;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
7
|
+
const RequestParamsSchema: z.ZodObject<{
|
|
8
|
+
uuid: z.ZodString;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
11
|
+
const ResponseSchema: z.ZodObject<{
|
|
12
|
+
data: z.ZodObject<{
|
|
13
|
+
uuid: z.ZodString;
|
|
14
|
+
status: z.ZodEnum<typeof import("../../..").TOOL_JOB_STATUS>;
|
|
15
|
+
error: z.ZodNullable<z.ZodString>;
|
|
16
|
+
isFavorite: z.ZodBoolean;
|
|
17
|
+
createdAt: z.ZodDate;
|
|
18
|
+
updatedAt: z.ZodDate;
|
|
19
|
+
prompt: z.ZodString;
|
|
20
|
+
reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
|
|
21
|
+
dislikeReason: z.ZodNullable<z.ZodString>;
|
|
22
|
+
externalId: z.ZodNullable<z.ZodString>;
|
|
23
|
+
title: z.ZodString;
|
|
24
|
+
modelId: z.ZodString;
|
|
25
|
+
price: z.ZodNumber;
|
|
26
|
+
previewUrl: z.ZodNullable<z.ZodString>;
|
|
27
|
+
params: z.ZodObject<{
|
|
28
|
+
attachedFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
29
|
+
uuid: z.ZodString;
|
|
30
|
+
url: z.ZodString;
|
|
31
|
+
name: z.ZodString;
|
|
32
|
+
mimeType: z.ZodString;
|
|
33
|
+
type: z.ZodString;
|
|
34
|
+
size: z.ZodNumber;
|
|
35
|
+
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
36
|
+
}, z.core.$strip>>>;
|
|
37
|
+
imageUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
38
|
+
styleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
referenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
+
referenceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
41
|
+
customStylePrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
+
customStylePhotos: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
43
|
+
clothingPhotos: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
44
|
+
hairstylePhotos: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
45
|
+
accessoriesPhotos: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
46
|
+
aspectRatio: z.ZodOptional<z.ZodString>;
|
|
47
|
+
userHasActiveSubscriptionOrProduct: z.ZodOptional<z.ZodBoolean>;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
imageUrls: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
50
|
+
images: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
51
|
+
uuid: z.ZodString;
|
|
52
|
+
url: z.ZodString;
|
|
53
|
+
originalName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
|
+
resolution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
55
|
+
width: z.ZodNumber;
|
|
56
|
+
height: z.ZodNumber;
|
|
57
|
+
}, z.core.$strip>>>;
|
|
58
|
+
}, z.core.$strip>>>;
|
|
59
|
+
isPublished: z.ZodBoolean;
|
|
60
|
+
postId: z.ZodNullable<z.ZodString>;
|
|
61
|
+
isDeleted: z.ZodBoolean;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
65
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdatePhotoSessionJobTitleCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var UpdatePhotoSessionJobTitleCommand;
|
|
7
|
+
(function (UpdatePhotoSessionJobTitleCommand) {
|
|
8
|
+
UpdatePhotoSessionJobTitleCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
title: zod_1.z.string().min(1).max(40).trim(),
|
|
10
|
+
});
|
|
11
|
+
UpdatePhotoSessionJobTitleCommand.RequestParamsSchema = zod_1.z.object({
|
|
12
|
+
uuid: zod_1.z.string().uuid(),
|
|
13
|
+
});
|
|
14
|
+
UpdatePhotoSessionJobTitleCommand.ResponseSchema = zod_1.z.object({
|
|
15
|
+
data: models_1.PhotoSessionJobSchema,
|
|
16
|
+
});
|
|
17
|
+
})(UpdatePhotoSessionJobTitleCommand || (exports.UpdatePhotoSessionJobTitleCommand = UpdatePhotoSessionJobTitleCommand = {}));
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { VOICE_GENDER } from '../../../constants';
|
|
3
|
+
export declare namespace CreateVoiceCloneCommand {
|
|
4
|
+
const RequestSchema: z.ZodObject<{
|
|
5
|
+
fileId: z.ZodString;
|
|
6
|
+
title: z.ZodString;
|
|
7
|
+
gender: z.ZodOptional<z.ZodEnum<typeof VOICE_GENDER>>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
10
|
+
const ResponseSchema: z.ZodObject<{
|
|
11
|
+
data: z.ZodObject<{
|
|
12
|
+
uuid: z.ZodString;
|
|
13
|
+
source: z.ZodEnum<typeof import("../../..").VOICE_SOURCE>;
|
|
14
|
+
title: z.ZodString;
|
|
15
|
+
description: z.ZodString;
|
|
16
|
+
gender: z.ZodNullable<z.ZodEnum<typeof VOICE_GENDER>>;
|
|
17
|
+
trait: z.ZodNullable<z.ZodString>;
|
|
18
|
+
ageRange: z.ZodNullable<z.ZodString>;
|
|
19
|
+
categories: z.ZodArray<z.ZodEnum<typeof import("../../..").VOICE_CATEGORY>>;
|
|
20
|
+
previewUrl: z.ZodString;
|
|
21
|
+
status: z.ZodEnum<typeof import("../../..").VOICE_STATUS>;
|
|
22
|
+
error: z.ZodNullable<z.ZodString>;
|
|
23
|
+
order: z.ZodNumber;
|
|
24
|
+
isDeleted: z.ZodBoolean;
|
|
25
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
26
|
+
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
27
|
+
createdAt: z.ZodDate;
|
|
28
|
+
updatedAt: z.ZodDate;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateVoiceCloneCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const constants_1 = require("../../../constants");
|
|
6
|
+
const models_1 = require("../../../models");
|
|
7
|
+
var CreateVoiceCloneCommand;
|
|
8
|
+
(function (CreateVoiceCloneCommand) {
|
|
9
|
+
CreateVoiceCloneCommand.RequestSchema = zod_1.z.object({
|
|
10
|
+
fileId: zod_1.z.string().uuid(),
|
|
11
|
+
title: zod_1.z.string().min(1),
|
|
12
|
+
gender: zod_1.z.nativeEnum(constants_1.VOICE_GENDER).optional(),
|
|
13
|
+
});
|
|
14
|
+
CreateVoiceCloneCommand.ResponseSchema = zod_1.z.object({
|
|
15
|
+
data: models_1.VoiceSchema,
|
|
16
|
+
});
|
|
17
|
+
})(CreateVoiceCloneCommand || (exports.CreateVoiceCloneCommand = CreateVoiceCloneCommand = {}));
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { VOICE_GENDER } from '../../../constants';
|
|
3
|
+
export declare namespace CreateVoiceDesignCommand {
|
|
4
|
+
const RequestSchema: z.ZodObject<{
|
|
5
|
+
title: z.ZodString;
|
|
6
|
+
gender: z.ZodEnum<typeof VOICE_GENDER>;
|
|
7
|
+
instruction: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
10
|
+
const ResponseSchema: z.ZodObject<{
|
|
11
|
+
data: z.ZodObject<{
|
|
12
|
+
designId: z.ZodString;
|
|
13
|
+
title: z.ZodString;
|
|
14
|
+
gender: z.ZodEnum<typeof VOICE_GENDER>;
|
|
15
|
+
samples: z.ZodArray<z.ZodObject<{
|
|
16
|
+
sampleId: z.ZodString;
|
|
17
|
+
previewUrl: z.ZodString;
|
|
18
|
+
}, z.core.$strip>>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateVoiceDesignCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const constants_1 = require("../../../constants");
|
|
6
|
+
const models_1 = require("../../../models");
|
|
7
|
+
var CreateVoiceDesignCommand;
|
|
8
|
+
(function (CreateVoiceDesignCommand) {
|
|
9
|
+
CreateVoiceDesignCommand.RequestSchema = zod_1.z.object({
|
|
10
|
+
title: zod_1.z.string().min(1),
|
|
11
|
+
gender: zod_1.z.nativeEnum(constants_1.VOICE_GENDER),
|
|
12
|
+
instruction: zod_1.z.string().min(1),
|
|
13
|
+
});
|
|
14
|
+
CreateVoiceDesignCommand.ResponseSchema = zod_1.z.object({
|
|
15
|
+
data: models_1.VoiceDesignDraftSchema,
|
|
16
|
+
});
|
|
17
|
+
})(CreateVoiceDesignCommand || (exports.CreateVoiceDesignCommand = CreateVoiceDesignCommand = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace DeleteVoiceCommand {
|
|
3
|
+
const RequestParamsSchema: z.ZodObject<{
|
|
4
|
+
uuid: z.ZodString;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
7
|
+
const ResponseSchema: z.ZodVoid;
|
|
8
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteVoiceCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var DeleteVoiceCommand;
|
|
6
|
+
(function (DeleteVoiceCommand) {
|
|
7
|
+
DeleteVoiceCommand.RequestParamsSchema = zod_1.z.object({
|
|
8
|
+
uuid: zod_1.z.string().uuid(),
|
|
9
|
+
});
|
|
10
|
+
DeleteVoiceCommand.ResponseSchema = zod_1.z.void();
|
|
11
|
+
})(DeleteVoiceCommand || (exports.DeleteVoiceCommand = DeleteVoiceCommand = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { TTS_DOWNLOAD_FORMAT } from '../../../constants';
|
|
3
|
+
export declare namespace DownloadTTSJobCommand {
|
|
4
|
+
const RequestParamsSchema: z.ZodObject<{
|
|
5
|
+
uuid: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
8
|
+
const RequestQuerySchema: z.ZodObject<{
|
|
9
|
+
format: z.ZodEnum<typeof TTS_DOWNLOAD_FORMAT>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
type RequestQuery = z.infer<typeof RequestQuerySchema>;
|
|
12
|
+
const ResponseSchema: z.ZodObject<{
|
|
13
|
+
data: z.ZodObject<{
|
|
14
|
+
url: z.ZodString;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DownloadTTSJobCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const constants_1 = require("../../../constants");
|
|
6
|
+
var DownloadTTSJobCommand;
|
|
7
|
+
(function (DownloadTTSJobCommand) {
|
|
8
|
+
DownloadTTSJobCommand.RequestParamsSchema = zod_1.z.object({
|
|
9
|
+
uuid: zod_1.z.string().uuid(),
|
|
10
|
+
});
|
|
11
|
+
DownloadTTSJobCommand.RequestQuerySchema = zod_1.z.object({
|
|
12
|
+
format: zod_1.z.nativeEnum(constants_1.TTS_DOWNLOAD_FORMAT),
|
|
13
|
+
});
|
|
14
|
+
DownloadTTSJobCommand.ResponseSchema = zod_1.z.object({
|
|
15
|
+
data: zod_1.z.object({ url: zod_1.z.string() }),
|
|
16
|
+
});
|
|
17
|
+
})(DownloadTTSJobCommand || (exports.DownloadTTSJobCommand = DownloadTTSJobCommand = {}));
|
|
@@ -24,7 +24,19 @@ export declare namespace FindTTSJobByUUIDCommand {
|
|
|
24
24
|
style: z.ZodOptional<z.ZodNumber>;
|
|
25
25
|
}, z.core.$strip>;
|
|
26
26
|
modelId: z.ZodString;
|
|
27
|
-
voiceId: z.ZodString
|
|
27
|
+
voiceId: z.ZodNullable<z.ZodString>;
|
|
28
|
+
isDialog: z.ZodBoolean;
|
|
29
|
+
speakers: z.ZodArray<z.ZodObject<{
|
|
30
|
+
speaker: z.ZodNumber;
|
|
31
|
+
voiceId: z.ZodString;
|
|
32
|
+
}, z.core.$strip>>;
|
|
33
|
+
voices: z.ZodArray<z.ZodObject<{
|
|
34
|
+
uuid: z.ZodString;
|
|
35
|
+
title: z.ZodString;
|
|
36
|
+
previewUrl: z.ZodString;
|
|
37
|
+
isDeleted: z.ZodBoolean;
|
|
38
|
+
speaker: z.ZodNullable<z.ZodNumber>;
|
|
39
|
+
}, z.core.$strip>>;
|
|
28
40
|
}, z.core.$strip>;
|
|
29
41
|
}, z.core.$strip>;
|
|
30
42
|
type Response = z.infer<typeof ResponseSchema>;
|
|
@@ -30,7 +30,19 @@ export declare namespace FindTTSJobsCommand {
|
|
|
30
30
|
style: z.ZodOptional<z.ZodNumber>;
|
|
31
31
|
}, z.core.$strip>;
|
|
32
32
|
modelId: z.ZodString;
|
|
33
|
-
voiceId: z.ZodString
|
|
33
|
+
voiceId: z.ZodNullable<z.ZodString>;
|
|
34
|
+
isDialog: z.ZodBoolean;
|
|
35
|
+
speakers: z.ZodArray<z.ZodObject<{
|
|
36
|
+
speaker: z.ZodNumber;
|
|
37
|
+
voiceId: z.ZodString;
|
|
38
|
+
}, z.core.$strip>>;
|
|
39
|
+
voices: z.ZodArray<z.ZodObject<{
|
|
40
|
+
uuid: z.ZodString;
|
|
41
|
+
title: z.ZodString;
|
|
42
|
+
previewUrl: z.ZodString;
|
|
43
|
+
isDeleted: z.ZodBoolean;
|
|
44
|
+
speaker: z.ZodNullable<z.ZodNumber>;
|
|
45
|
+
}, z.core.$strip>>;
|
|
34
46
|
}, z.core.$strip>>;
|
|
35
47
|
totalPages: z.ZodNumber;
|
|
36
48
|
total: z.ZodNumber;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace FindVoiceByUuidQuery {
|
|
3
|
+
const RequestParamsSchema: z.ZodObject<{
|
|
4
|
+
uuid: z.ZodString;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
7
|
+
const ResponseSchema: z.ZodObject<{
|
|
8
|
+
data: z.ZodObject<{
|
|
9
|
+
uuid: z.ZodString;
|
|
10
|
+
source: z.ZodEnum<typeof import("../../..").VOICE_SOURCE>;
|
|
11
|
+
title: z.ZodString;
|
|
12
|
+
description: z.ZodString;
|
|
13
|
+
gender: z.ZodNullable<z.ZodEnum<typeof import("../../..").VOICE_GENDER>>;
|
|
14
|
+
trait: z.ZodNullable<z.ZodString>;
|
|
15
|
+
ageRange: z.ZodNullable<z.ZodString>;
|
|
16
|
+
categories: z.ZodArray<z.ZodEnum<typeof import("../../..").VOICE_CATEGORY>>;
|
|
17
|
+
previewUrl: z.ZodString;
|
|
18
|
+
status: z.ZodEnum<typeof import("../../..").VOICE_STATUS>;
|
|
19
|
+
error: z.ZodNullable<z.ZodString>;
|
|
20
|
+
order: z.ZodNumber;
|
|
21
|
+
isDeleted: z.ZodBoolean;
|
|
22
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
23
|
+
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
24
|
+
createdAt: z.ZodDate;
|
|
25
|
+
updatedAt: z.ZodDate;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindVoiceByUuidQuery = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var FindVoiceByUuidQuery;
|
|
7
|
+
(function (FindVoiceByUuidQuery) {
|
|
8
|
+
FindVoiceByUuidQuery.RequestParamsSchema = zod_1.z.object({
|
|
9
|
+
uuid: zod_1.z.string().uuid(),
|
|
10
|
+
});
|
|
11
|
+
FindVoiceByUuidQuery.ResponseSchema = zod_1.z.object({
|
|
12
|
+
data: models_1.VoiceSchema,
|
|
13
|
+
});
|
|
14
|
+
})(FindVoiceByUuidQuery || (exports.FindVoiceByUuidQuery = FindVoiceByUuidQuery = {}));
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { VOICE_CATEGORY, VOICE_GENDER } from '../../../constants';
|
|
3
|
+
export declare namespace FindVoicesQuery {
|
|
4
|
+
const RequestQuerySchema: z.ZodObject<{
|
|
5
|
+
scope: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
6
|
+
all: "all";
|
|
7
|
+
library: "library";
|
|
8
|
+
mine: "mine";
|
|
9
|
+
}>>>;
|
|
10
|
+
category: z.ZodOptional<z.ZodEnum<typeof VOICE_CATEGORY>>;
|
|
11
|
+
gender: z.ZodOptional<z.ZodEnum<typeof VOICE_GENDER>>;
|
|
12
|
+
query: z.ZodOptional<z.ZodString>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
type RequestQuery = z.infer<typeof RequestQuerySchema>;
|
|
15
|
+
const ResponseSchema: z.ZodObject<{
|
|
16
|
+
data: z.ZodArray<z.ZodObject<{
|
|
17
|
+
uuid: z.ZodString;
|
|
18
|
+
source: z.ZodEnum<typeof import("../../..").VOICE_SOURCE>;
|
|
19
|
+
title: z.ZodString;
|
|
20
|
+
description: z.ZodString;
|
|
21
|
+
gender: z.ZodNullable<z.ZodEnum<typeof VOICE_GENDER>>;
|
|
22
|
+
trait: z.ZodNullable<z.ZodString>;
|
|
23
|
+
ageRange: z.ZodNullable<z.ZodString>;
|
|
24
|
+
categories: z.ZodArray<z.ZodEnum<typeof VOICE_CATEGORY>>;
|
|
25
|
+
previewUrl: z.ZodString;
|
|
26
|
+
status: z.ZodEnum<typeof import("../../..").VOICE_STATUS>;
|
|
27
|
+
error: z.ZodNullable<z.ZodString>;
|
|
28
|
+
order: z.ZodNumber;
|
|
29
|
+
isDeleted: z.ZodBoolean;
|
|
30
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
31
|
+
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
32
|
+
createdAt: z.ZodDate;
|
|
33
|
+
updatedAt: z.ZodDate;
|
|
34
|
+
}, z.core.$strip>>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
37
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindVoicesQuery = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const constants_1 = require("../../../constants");
|
|
6
|
+
const models_1 = require("../../../models");
|
|
7
|
+
var FindVoicesQuery;
|
|
8
|
+
(function (FindVoicesQuery) {
|
|
9
|
+
FindVoicesQuery.RequestQuerySchema = zod_1.z.object({
|
|
10
|
+
scope: zod_1.z.enum(['all', 'library', 'mine']).optional().default('all'),
|
|
11
|
+
category: zod_1.z.nativeEnum(constants_1.VOICE_CATEGORY).optional(),
|
|
12
|
+
gender: zod_1.z.nativeEnum(constants_1.VOICE_GENDER).optional(),
|
|
13
|
+
query: zod_1.z.string().optional(),
|
|
14
|
+
});
|
|
15
|
+
FindVoicesQuery.ResponseSchema = zod_1.z.object({
|
|
16
|
+
data: zod_1.z.array(models_1.VoiceSchema),
|
|
17
|
+
});
|
|
18
|
+
})(FindVoicesQuery || (exports.FindVoicesQuery = FindVoicesQuery = {}));
|
|
@@ -19,6 +19,7 @@ export declare namespace GetTTSToolConfigCommand {
|
|
|
19
19
|
}, z.core.$strip>;
|
|
20
20
|
}, z.core.$strip>;
|
|
21
21
|
maxInputLength: z.ZodNumber;
|
|
22
|
+
maxSpeakers: z.ZodNumber;
|
|
22
23
|
params: z.ZodObject<{
|
|
23
24
|
speed: z.ZodOptional<z.ZodObject<{
|
|
24
25
|
title: z.ZodString;
|
|
@@ -122,6 +123,16 @@ export declare namespace GetTTSToolConfigCommand {
|
|
|
122
123
|
canUse: z.ZodBoolean;
|
|
123
124
|
status: z.ZodString;
|
|
124
125
|
}, z.core.$strip>>;
|
|
126
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
127
|
+
id: z.ZodEnum<typeof import("../../..").VOICE_TAG>;
|
|
128
|
+
group: z.ZodEnum<typeof import("../../..").VOICE_TAG_GROUP>;
|
|
129
|
+
label: z.ZodString;
|
|
130
|
+
}, z.core.$strip>>;
|
|
131
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
132
|
+
id: z.ZodEnum<typeof import("../../..").VOICE_CATEGORY>;
|
|
133
|
+
label: z.ZodString;
|
|
134
|
+
}, z.core.$strip>>;
|
|
135
|
+
speakerMarkerLabel: z.ZodString;
|
|
125
136
|
}, z.core.$strip>;
|
|
126
137
|
}, z.core.$strip>;
|
|
127
138
|
type Response = z.infer<typeof ResponseSchema>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace ImproveTTSTextCommand {
|
|
3
|
+
const RequestSchema: z.ZodObject<{
|
|
4
|
+
text: z.ZodString;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
7
|
+
const ResponseSchema: z.ZodObject<{
|
|
8
|
+
data: z.ZodObject<{
|
|
9
|
+
text: z.ZodString;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ImproveTTSTextCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var ImproveTTSTextCommand;
|
|
6
|
+
(function (ImproveTTSTextCommand) {
|
|
7
|
+
ImproveTTSTextCommand.RequestSchema = zod_1.z.object({
|
|
8
|
+
text: zod_1.z.string().min(1),
|
|
9
|
+
});
|
|
10
|
+
ImproveTTSTextCommand.ResponseSchema = zod_1.z.object({
|
|
11
|
+
data: zod_1.z.object({ text: zod_1.z.string() }),
|
|
12
|
+
});
|
|
13
|
+
})(ImproveTTSTextCommand || (exports.ImproveTTSTextCommand = ImproveTTSTextCommand = {}));
|
|
@@ -8,3 +8,12 @@ export * from './set-reaction-to-tts-job.command';
|
|
|
8
8
|
export * from './tts.command';
|
|
9
9
|
export * from './update-tts-job-title.command';
|
|
10
10
|
export * from './update-tts-job-favorite.command';
|
|
11
|
+
export * from './improve-tts-text.command';
|
|
12
|
+
export * from './find-voices.query';
|
|
13
|
+
export * from './find-voice-by-uuid.query';
|
|
14
|
+
export * from './create-voice-clone.command';
|
|
15
|
+
export * from './create-voice-design.command';
|
|
16
|
+
export * from './select-voice-design.command';
|
|
17
|
+
export * from './update-voice.command';
|
|
18
|
+
export * from './delete-voice.command';
|
|
19
|
+
export * from './download-tts-job.command';
|
|
@@ -24,3 +24,12 @@ __exportStar(require("./set-reaction-to-tts-job.command"), exports);
|
|
|
24
24
|
__exportStar(require("./tts.command"), exports);
|
|
25
25
|
__exportStar(require("./update-tts-job-title.command"), exports);
|
|
26
26
|
__exportStar(require("./update-tts-job-favorite.command"), exports);
|
|
27
|
+
__exportStar(require("./improve-tts-text.command"), exports);
|
|
28
|
+
__exportStar(require("./find-voices.query"), exports);
|
|
29
|
+
__exportStar(require("./find-voice-by-uuid.query"), exports);
|
|
30
|
+
__exportStar(require("./create-voice-clone.command"), exports);
|
|
31
|
+
__exportStar(require("./create-voice-design.command"), exports);
|
|
32
|
+
__exportStar(require("./select-voice-design.command"), exports);
|
|
33
|
+
__exportStar(require("./update-voice.command"), exports);
|
|
34
|
+
__exportStar(require("./delete-voice.command"), exports);
|
|
35
|
+
__exportStar(require("./download-tts-job.command"), exports);
|
|
@@ -24,7 +24,19 @@ export declare namespace RetryTTSJobCommand {
|
|
|
24
24
|
style: z.ZodOptional<z.ZodNumber>;
|
|
25
25
|
}, z.core.$strip>;
|
|
26
26
|
modelId: z.ZodString;
|
|
27
|
-
voiceId: z.ZodString
|
|
27
|
+
voiceId: z.ZodNullable<z.ZodString>;
|
|
28
|
+
isDialog: z.ZodBoolean;
|
|
29
|
+
speakers: z.ZodArray<z.ZodObject<{
|
|
30
|
+
speaker: z.ZodNumber;
|
|
31
|
+
voiceId: z.ZodString;
|
|
32
|
+
}, z.core.$strip>>;
|
|
33
|
+
voices: z.ZodArray<z.ZodObject<{
|
|
34
|
+
uuid: z.ZodString;
|
|
35
|
+
title: z.ZodString;
|
|
36
|
+
previewUrl: z.ZodString;
|
|
37
|
+
isDeleted: z.ZodBoolean;
|
|
38
|
+
speaker: z.ZodNullable<z.ZodNumber>;
|
|
39
|
+
}, z.core.$strip>>;
|
|
28
40
|
}, z.core.$strip>;
|
|
29
41
|
}, z.core.$strip>;
|
|
30
42
|
type Response = z.infer<typeof ResponseSchema>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace SelectVoiceDesignCommand {
|
|
3
|
+
const RequestParamsSchema: z.ZodObject<{
|
|
4
|
+
designId: z.ZodString;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
7
|
+
const RequestSchema: z.ZodObject<{
|
|
8
|
+
sampleId: z.ZodString;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
11
|
+
const ResponseSchema: z.ZodObject<{
|
|
12
|
+
data: z.ZodObject<{
|
|
13
|
+
uuid: z.ZodString;
|
|
14
|
+
source: z.ZodEnum<typeof import("../../..").VOICE_SOURCE>;
|
|
15
|
+
title: z.ZodString;
|
|
16
|
+
description: z.ZodString;
|
|
17
|
+
gender: z.ZodNullable<z.ZodEnum<typeof import("../../..").VOICE_GENDER>>;
|
|
18
|
+
trait: z.ZodNullable<z.ZodString>;
|
|
19
|
+
ageRange: z.ZodNullable<z.ZodString>;
|
|
20
|
+
categories: z.ZodArray<z.ZodEnum<typeof import("../../..").VOICE_CATEGORY>>;
|
|
21
|
+
previewUrl: z.ZodString;
|
|
22
|
+
status: z.ZodEnum<typeof import("../../..").VOICE_STATUS>;
|
|
23
|
+
error: z.ZodNullable<z.ZodString>;
|
|
24
|
+
order: z.ZodNumber;
|
|
25
|
+
isDeleted: z.ZodBoolean;
|
|
26
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
27
|
+
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
28
|
+
createdAt: z.ZodDate;
|
|
29
|
+
updatedAt: z.ZodDate;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SelectVoiceDesignCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var SelectVoiceDesignCommand;
|
|
7
|
+
(function (SelectVoiceDesignCommand) {
|
|
8
|
+
SelectVoiceDesignCommand.RequestParamsSchema = zod_1.z.object({
|
|
9
|
+
designId: zod_1.z.string().uuid(),
|
|
10
|
+
});
|
|
11
|
+
SelectVoiceDesignCommand.RequestSchema = zod_1.z.object({
|
|
12
|
+
sampleId: zod_1.z.string().uuid(),
|
|
13
|
+
});
|
|
14
|
+
SelectVoiceDesignCommand.ResponseSchema = zod_1.z.object({
|
|
15
|
+
data: models_1.VoiceSchema,
|
|
16
|
+
});
|
|
17
|
+
})(SelectVoiceDesignCommand || (exports.SelectVoiceDesignCommand = SelectVoiceDesignCommand = {}));
|
|
@@ -30,7 +30,19 @@ export declare namespace SetReactionToTTSJobCommand {
|
|
|
30
30
|
style: z.ZodOptional<z.ZodNumber>;
|
|
31
31
|
}, z.core.$strip>;
|
|
32
32
|
modelId: z.ZodString;
|
|
33
|
-
voiceId: z.ZodString
|
|
33
|
+
voiceId: z.ZodNullable<z.ZodString>;
|
|
34
|
+
isDialog: z.ZodBoolean;
|
|
35
|
+
speakers: z.ZodArray<z.ZodObject<{
|
|
36
|
+
speaker: z.ZodNumber;
|
|
37
|
+
voiceId: z.ZodString;
|
|
38
|
+
}, z.core.$strip>>;
|
|
39
|
+
voices: z.ZodArray<z.ZodObject<{
|
|
40
|
+
uuid: z.ZodString;
|
|
41
|
+
title: z.ZodString;
|
|
42
|
+
previewUrl: z.ZodString;
|
|
43
|
+
isDeleted: z.ZodBoolean;
|
|
44
|
+
speaker: z.ZodNullable<z.ZodNumber>;
|
|
45
|
+
}, z.core.$strip>>;
|
|
34
46
|
}, z.core.$strip>;
|
|
35
47
|
}, z.core.$strip>;
|
|
36
48
|
type Response = z.infer<typeof ResponseSchema>;
|
|
@@ -2,8 +2,13 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare namespace TTSCommand {
|
|
3
3
|
const RequestSchema: z.ZodObject<{
|
|
4
4
|
modelId: z.ZodString;
|
|
5
|
-
voiceId: z.ZodString
|
|
5
|
+
voiceId: z.ZodOptional<z.ZodString>;
|
|
6
6
|
text: z.ZodString;
|
|
7
|
+
isDialog: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
8
|
+
speakers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9
|
+
speaker: z.ZodNumber;
|
|
10
|
+
voiceId: z.ZodString;
|
|
11
|
+
}, z.core.$strip>>>>;
|
|
7
12
|
params: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
8
13
|
speed: z.ZodOptional<z.ZodNumber>;
|
|
9
14
|
similarity: z.ZodOptional<z.ZodNumber>;
|
|
@@ -7,12 +7,18 @@ const TTSReferenceSchema = zod_1.z.object({
|
|
|
7
7
|
audioUrl: zod_1.z.string().url(),
|
|
8
8
|
text: zod_1.z.string(),
|
|
9
9
|
});
|
|
10
|
+
const TTSSpeakerSchema = zod_1.z.object({
|
|
11
|
+
speaker: zod_1.z.number().int().positive(),
|
|
12
|
+
voiceId: zod_1.z.string().uuid(),
|
|
13
|
+
});
|
|
10
14
|
var TTSCommand;
|
|
11
15
|
(function (TTSCommand) {
|
|
12
16
|
TTSCommand.RequestSchema = zod_1.z.object({
|
|
13
17
|
modelId: zod_1.z.string().uuid(),
|
|
14
|
-
voiceId: zod_1.z.string().uuid(),
|
|
18
|
+
voiceId: zod_1.z.string().uuid().optional(),
|
|
15
19
|
text: zod_1.z.string(),
|
|
20
|
+
isDialog: zod_1.z.boolean().optional().default(false),
|
|
21
|
+
speakers: zod_1.z.array(TTSSpeakerSchema).optional().default([]),
|
|
16
22
|
params: zod_1.z
|
|
17
23
|
.object({
|
|
18
24
|
speed: zod_1.z.number().optional(),
|
|
@@ -28,7 +28,19 @@ export declare namespace UpdateTTSJobFavoriteCommand {
|
|
|
28
28
|
style: z.ZodOptional<z.ZodNumber>;
|
|
29
29
|
}, z.core.$strip>;
|
|
30
30
|
modelId: z.ZodString;
|
|
31
|
-
voiceId: z.ZodString
|
|
31
|
+
voiceId: z.ZodNullable<z.ZodString>;
|
|
32
|
+
isDialog: z.ZodBoolean;
|
|
33
|
+
speakers: z.ZodArray<z.ZodObject<{
|
|
34
|
+
speaker: z.ZodNumber;
|
|
35
|
+
voiceId: z.ZodString;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
voices: z.ZodArray<z.ZodObject<{
|
|
38
|
+
uuid: z.ZodString;
|
|
39
|
+
title: z.ZodString;
|
|
40
|
+
previewUrl: z.ZodString;
|
|
41
|
+
isDeleted: z.ZodBoolean;
|
|
42
|
+
speaker: z.ZodNullable<z.ZodNumber>;
|
|
43
|
+
}, z.core.$strip>>;
|
|
32
44
|
}, z.core.$strip>;
|
|
33
45
|
}, z.core.$strip>;
|
|
34
46
|
type Response = z.infer<typeof ResponseSchema>;
|
|
@@ -28,7 +28,19 @@ export declare namespace UpdateTTSJobTitleCommand {
|
|
|
28
28
|
style: z.ZodOptional<z.ZodNumber>;
|
|
29
29
|
}, z.core.$strip>;
|
|
30
30
|
modelId: z.ZodString;
|
|
31
|
-
voiceId: z.ZodString
|
|
31
|
+
voiceId: z.ZodNullable<z.ZodString>;
|
|
32
|
+
isDialog: z.ZodBoolean;
|
|
33
|
+
speakers: z.ZodArray<z.ZodObject<{
|
|
34
|
+
speaker: z.ZodNumber;
|
|
35
|
+
voiceId: z.ZodString;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
voices: z.ZodArray<z.ZodObject<{
|
|
38
|
+
uuid: z.ZodString;
|
|
39
|
+
title: z.ZodString;
|
|
40
|
+
previewUrl: z.ZodString;
|
|
41
|
+
isDeleted: z.ZodBoolean;
|
|
42
|
+
speaker: z.ZodNullable<z.ZodNumber>;
|
|
43
|
+
}, z.core.$strip>>;
|
|
32
44
|
}, z.core.$strip>;
|
|
33
45
|
}, z.core.$strip>;
|
|
34
46
|
type Response = z.infer<typeof ResponseSchema>;
|