@purpleschool/gptbot-tools 0.2.60 → 0.2.61-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/ai-proxy/routes/ai-proxy.routes.d.ts +1 -0
- package/build/ai-proxy/routes/ai-proxy.routes.js +1 -0
- package/build/index.d.ts +3 -3
- package/build/index.js +3 -3
- package/build/photo-sessions/commands/admin/create-photo-session-style.command.d.ts +58 -0
- package/build/photo-sessions/commands/admin/create-photo-session-style.command.js +21 -0
- package/build/photo-sessions/commands/admin/delete-photo-session-style.command.d.ts +14 -0
- package/build/photo-sessions/commands/admin/delete-photo-session-style.command.js +12 -0
- package/build/photo-sessions/commands/admin/index.d.ts +3 -0
- package/build/{sound-generation/queries → photo-sessions/commands/admin}/index.js +3 -3
- package/build/photo-sessions/commands/admin/update-photo-session-style.command.d.ts +55 -0
- package/build/photo-sessions/commands/admin/update-photo-session-style.command.js +28 -0
- package/build/{sound-generation/commands/delete-all-sound-generation-jobs.command.d.ts → photo-sessions/commands/delete-all-photo-sessions-jobs.command.d.ts} +1 -1
- package/build/photo-sessions/commands/delete-all-photo-sessions-jobs.command.js +15 -0
- package/build/{sound-generation/commands/delete-sound-generation-job-by-uuid.command.d.ts → photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.d.ts} +2 -2
- package/build/photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.js +14 -0
- package/build/photo-sessions/commands/get-photo-sessions-price.command.d.ts +46 -0
- package/build/photo-sessions/commands/get-photo-sessions-price.command.js +30 -0
- package/build/photo-sessions/commands/index.d.ts +10 -0
- package/build/{sound-generation → photo-sessions}/commands/index.js +10 -8
- package/build/photo-sessions/commands/photo-sessions.command.d.ts +147 -0
- package/build/photo-sessions/commands/photo-sessions.command.js +41 -0
- package/build/photo-sessions/commands/retry-photo-sessions-job.command.d.ts +142 -0
- package/build/photo-sessions/commands/retry-photo-sessions-job.command.js +23 -0
- package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.d.ts +115 -0
- package/build/{sound-generation/commands/set-reaction-to-sound-generation-job.command.js → photo-sessions/commands/set-reaction-to-photo-sessions-job.command.js} +7 -7
- package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.d.ts +113 -0
- package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.js +16 -0
- package/build/photo-sessions/commands/update-photo-sessions-job-title.command.d.ts +113 -0
- package/build/photo-sessions/commands/update-photo-sessions-job-title.command.js +16 -0
- package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.d.ts +118 -0
- package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.js +26 -0
- package/build/photo-sessions/enums/index.d.ts +2 -0
- package/build/{sound-generation/routes → photo-sessions/enums}/index.js +2 -1
- package/build/photo-sessions/enums/photo-session-look-type.enum.d.ts +5 -0
- package/build/photo-sessions/enums/photo-session-look-type.enum.js +9 -0
- package/build/photo-sessions/enums/photo-session-strategy.enum.d.ts +4 -0
- package/build/photo-sessions/enums/photo-session-strategy.enum.js +8 -0
- package/build/photo-sessions/models/index.d.ts +4 -0
- package/build/photo-sessions/models/index.js +20 -0
- package/build/photo-sessions/models/photo-session-config.schema.d.ts +72 -0
- package/build/photo-sessions/models/photo-session-config.schema.js +16 -0
- package/build/photo-sessions/models/photo-session-job.schema.d.ts +78 -0
- package/build/photo-sessions/models/photo-session-job.schema.js +46 -0
- package/build/photo-sessions/models/photo-session-model.schema.d.ts +69 -0
- package/build/photo-sessions/models/photo-session-model.schema.js +42 -0
- package/build/photo-sessions/models/photo-session-style.schema.d.ts +29 -0
- package/build/photo-sessions/models/photo-session-style.schema.js +22 -0
- package/build/photo-sessions/queries/find-photo-session-style-by-id.query.d.ts +46 -0
- package/build/photo-sessions/queries/find-photo-session-style-by-id.query.js +10 -0
- package/build/photo-sessions/queries/find-photo-session-styles.query.d.ts +57 -0
- package/build/photo-sessions/queries/find-photo-session-styles.query.js +19 -0
- package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.d.ts +110 -0
- package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.js +10 -0
- package/build/{sound-generation/queries/find-sound-generation-jobs.query.d.ts → photo-sessions/queries/find-photo-sessions-jobs.query.d.ts} +63 -33
- package/build/{sound-generation/queries/find-sound-generation-jobs.query.js → photo-sessions/queries/find-photo-sessions-jobs.query.js} +10 -17
- package/build/photo-sessions/queries/get-photo-sessions-config.query.d.ts +142 -0
- package/build/photo-sessions/queries/get-photo-sessions-config.query.js +10 -0
- package/build/photo-sessions/queries/index.d.ts +5 -0
- package/build/{sound-generation/models → photo-sessions/queries}/index.js +5 -5
- package/build/photo-sessions/routes/index.d.ts +2 -0
- package/build/{sound-generation/enums → photo-sessions/routes}/index.js +2 -1
- package/build/photo-sessions/routes/photo-sessions.amqp.routes.d.ts +19 -0
- package/build/photo-sessions/routes/photo-sessions.amqp.routes.js +22 -0
- package/build/photo-sessions/routes/photo-sessions.http.routes.d.ts +1 -0
- package/build/photo-sessions/routes/photo-sessions.http.routes.js +4 -0
- package/build/tools/enums/tool-content-type.enum.d.ts +2 -2
- package/build/tools/enums/tool-content-type.enum.js +1 -1
- package/build/tools/enums/tool-type.enum.d.ts +2 -2
- package/build/tools/enums/tool-type.enum.js +1 -1
- package/build/tools/models/global-tools-config.schema.d.ts +69 -25
- package/build/tools/models/global-tools-config.schema.js +2 -2
- package/build/tools/models/tools-with-configs.schema.d.ts +22 -88
- package/build/tools/models/tools-with-configs.schema.js +0 -5
- package/build/tools/queries/get-global-tools-config.query.d.ts +134 -46
- package/build/tools/queries/get-tools-with-configs.query.d.ts +22 -88
- package/build/tts/commands/create-voice-clone.command.d.ts +69 -0
- package/build/tts/commands/create-voice-clone.command.js +21 -0
- package/build/tts/commands/create-voice-design.command.d.ts +40 -0
- package/build/tts/commands/create-voice-design.command.js +20 -0
- package/build/tts/commands/delete-voice.command.d.ts +17 -0
- package/build/tts/commands/delete-voice.command.js +14 -0
- package/build/tts/commands/download-tts-job.command.d.ts +25 -0
- package/build/tts/commands/download-tts-job.command.js +19 -0
- package/build/{sound-generation/commands/get-sound-generation-price.command.d.ts → tts/commands/improve-tts-text.command.d.ts} +6 -8
- package/build/tts/commands/improve-tts-text.command.js +16 -0
- package/build/tts/commands/index.d.ts +7 -0
- package/build/tts/commands/index.js +7 -0
- package/build/tts/commands/retry-tts-job.command.d.ts +29 -2
- package/build/tts/commands/retry-tts-job.command.js +2 -0
- package/build/tts/commands/select-voice-design.command.d.ts +65 -0
- package/build/tts/commands/select-voice-design.command.js +17 -0
- package/build/tts/commands/set-reaction-to-tts-job.command.d.ts +29 -2
- package/build/tts/commands/set-reaction-to-tts-job.command.js +1 -0
- package/build/tts/commands/tts.command.d.ts +35 -3
- package/build/tts/commands/tts.command.js +4 -1
- package/build/tts/commands/update-tts-job-favorite.command.d.ts +29 -2
- package/build/tts/commands/update-tts-job-favorite.command.js +2 -0
- package/build/tts/commands/update-tts-job-title.command.d.ts +29 -2
- package/build/tts/commands/update-tts-job-title.command.js +2 -0
- package/build/tts/commands/update-voice.command.d.ts +66 -0
- package/build/tts/commands/update-voice.command.js +18 -0
- package/build/tts/enums/index.d.ts +7 -0
- package/build/tts/enums/index.js +7 -0
- package/build/tts/enums/tts-download-format.enum.d.ts +5 -0
- package/build/tts/enums/tts-download-format.enum.js +9 -0
- package/build/tts/enums/voice-category.enum.d.ts +19 -0
- package/build/tts/enums/voice-category.enum.js +23 -0
- package/build/tts/enums/voice-gender.enum.d.ts +4 -0
- package/build/tts/enums/voice-gender.enum.js +8 -0
- package/build/tts/enums/voice-source.enum.d.ts +5 -0
- package/build/tts/enums/voice-source.enum.js +9 -0
- package/build/tts/enums/voice-status.enum.d.ts +5 -0
- package/build/tts/enums/voice-status.enum.js +9 -0
- package/build/tts/enums/voice-tag-group.enum.d.ts +5 -0
- package/build/tts/enums/voice-tag-group.enum.js +9 -0
- package/build/tts/enums/voice-tag.enum.d.ts +20 -0
- package/build/tts/enums/voice-tag.enum.js +24 -0
- package/build/tts/models/index.d.ts +6 -0
- package/build/tts/models/index.js +6 -0
- package/build/tts/models/tts-config-with-vendors.schema.d.ts +1 -0
- package/build/tts/models/tts-config.schema.d.ts +11 -0
- package/build/tts/models/tts-config.schema.js +5 -0
- package/build/tts/models/tts-job.schema.d.ts +34 -2
- package/build/tts/models/tts-job.schema.js +22 -2
- package/build/tts/models/tts-model-with-vendor.schema.d.ts +1 -0
- package/build/tts/models/tts-model.schema.d.ts +1 -0
- package/build/tts/models/tts-model.schema.js +1 -0
- package/build/tts/models/voice-category.schema.d.ts +7 -0
- package/build/tts/models/voice-category.schema.js +9 -0
- package/build/tts/models/voice-design-draft.schema.d.ts +13 -0
- package/build/tts/models/voice-design-draft.schema.js +13 -0
- package/build/tts/models/voice-design-sample.schema.d.ts +6 -0
- package/build/tts/models/voice-design-sample.schema.js +8 -0
- package/build/tts/models/voice-source.schema.d.ts +7 -0
- package/build/tts/models/voice-source.schema.js +9 -0
- package/build/tts/models/voice-tag.schema.d.ts +9 -0
- package/build/tts/models/voice-tag.schema.js +11 -0
- package/build/tts/models/voice.schema.d.ts +30 -0
- package/build/tts/models/voice.schema.js +30 -0
- package/build/tts/queries/find-tts-job-by-id.query.d.ts +29 -2
- package/build/tts/queries/find-tts-job-by-id.query.js +2 -0
- package/build/tts/queries/find-tts-jobs.query.d.ts +29 -2
- package/build/tts/queries/find-tts-jobs.query.js +1 -0
- package/build/tts/queries/find-voice-by-id.query.d.ts +65 -0
- package/build/tts/queries/find-voice-by-id.query.js +17 -0
- package/build/tts/queries/find-voices.query.d.ts +104 -0
- package/build/tts/queries/find-voices.query.js +25 -0
- package/build/tts/queries/get-tts-config-with-vendors.query.d.ts +2 -0
- package/build/tts/queries/get-tts-config.query.d.ts +22 -0
- package/build/tts/queries/index.d.ts +2 -0
- package/build/tts/queries/index.js +2 -0
- package/build/tts/routes/tts.amqp.routes.d.ts +9 -0
- package/build/tts/routes/tts.amqp.routes.js +9 -0
- package/package.json +1 -1
- package/build/sound-generation/commands/delete-all-sound-generation-jobs.command.js +0 -14
- package/build/sound-generation/commands/delete-sound-generation-job-by-uuid.command.js +0 -14
- package/build/sound-generation/commands/get-sound-generation-price.command.js +0 -17
- package/build/sound-generation/commands/index.d.ts +0 -8
- package/build/sound-generation/commands/retry-sound-generation-job.command.d.ts +0 -84
- package/build/sound-generation/commands/retry-sound-generation-job.command.js +0 -17
- package/build/sound-generation/commands/set-reaction-to-sound-generation-job.command.d.ts +0 -85
- package/build/sound-generation/commands/sound-generation.command.d.ts +0 -94
- package/build/sound-generation/commands/sound-generation.command.js +0 -27
- package/build/sound-generation/commands/update-sound-generation-job-favorite.command.d.ts +0 -83
- package/build/sound-generation/commands/update-sound-generation-job-favorite.command.js +0 -16
- package/build/sound-generation/commands/update-sound-generation-job-title.command.d.ts +0 -83
- package/build/sound-generation/commands/update-sound-generation-job-title.command.js +0 -16
- package/build/sound-generation/enums/index.d.ts +0 -1
- package/build/sound-generation/enums/sound-generation-strategy.enum.d.ts +0 -3
- package/build/sound-generation/enums/sound-generation-strategy.enum.js +0 -7
- package/build/sound-generation/models/index.d.ts +0 -5
- package/build/sound-generation/models/sound-generation-config.schema.d.ts +0 -34
- package/build/sound-generation/models/sound-generation-config.schema.js +0 -8
- package/build/sound-generation/models/sound-generation-job.schema.d.ts +0 -38
- package/build/sound-generation/models/sound-generation-job.schema.js +0 -34
- package/build/sound-generation/models/sound-generation-model.schema.d.ts +0 -42
- package/build/sound-generation/models/sound-generation-model.schema.js +0 -28
- package/build/sound-generation/models/sound-generation-params.schema.d.ts +0 -8
- package/build/sound-generation/models/sound-generation-params.schema.js +0 -10
- package/build/sound-generation/models/sound-generation-result.schema.d.ts +0 -6
- package/build/sound-generation/models/sound-generation-result.schema.js +0 -8
- package/build/sound-generation/queries/find-sound-generation-job-by-id.query.d.ts +0 -82
- package/build/sound-generation/queries/find-sound-generation-job-by-id.query.js +0 -15
- package/build/sound-generation/queries/get-sound-generation-config.query.d.ts +0 -76
- package/build/sound-generation/queries/get-sound-generation-config.query.js +0 -10
- package/build/sound-generation/queries/index.d.ts +0 -3
- package/build/sound-generation/routes/index.d.ts +0 -1
- package/build/sound-generation/routes/sound-generation.amqp.routes.d.ts +0 -13
- package/build/sound-generation/routes/sound-generation.amqp.routes.js +0 -16
- /package/build/{sound-generation → photo-sessions}/index.d.ts +0 -0
- /package/build/{sound-generation → photo-sessions}/index.js +0 -0
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TTSJobSchema = exports.TTSReferenceSchema = exports.TTSJobParamsSchema = void 0;
|
|
3
|
+
exports.TTSJobSchema = exports.TTSJobDownloadSchema = exports.TTSJobVoiceSchema = exports.TTSJobSpeakerSchema = exports.TTSReferenceSchema = exports.TTSJobParamsSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const tools_1 = require("../../tools");
|
|
6
6
|
const common_1 = require("../../common");
|
|
7
|
+
const tts_download_format_enum_1 = require("../enums/tts-download-format.enum");
|
|
7
8
|
exports.TTSJobParamsSchema = zod_1.z.object({
|
|
8
9
|
speed: zod_1.z.number().optional(),
|
|
9
10
|
similarity: zod_1.z.number().optional(),
|
|
@@ -14,6 +15,21 @@ exports.TTSReferenceSchema = zod_1.z.object({
|
|
|
14
15
|
audioUrl: zod_1.z.string().url(),
|
|
15
16
|
text: zod_1.z.string(),
|
|
16
17
|
});
|
|
18
|
+
exports.TTSJobSpeakerSchema = zod_1.z.object({
|
|
19
|
+
speaker: zod_1.z.number().int().positive(),
|
|
20
|
+
voiceId: zod_1.z.string().uuid(),
|
|
21
|
+
});
|
|
22
|
+
exports.TTSJobVoiceSchema = zod_1.z.object({
|
|
23
|
+
uuid: zod_1.z.string().uuid(),
|
|
24
|
+
title: zod_1.z.string(),
|
|
25
|
+
previewUrl: zod_1.z.string(),
|
|
26
|
+
isDeleted: zod_1.z.boolean(),
|
|
27
|
+
speaker: zod_1.z.number().int().positive().nullable(),
|
|
28
|
+
});
|
|
29
|
+
exports.TTSJobDownloadSchema = zod_1.z.object({
|
|
30
|
+
format: zod_1.z.nativeEnum(tts_download_format_enum_1.TTS_DOWNLOAD_FORMAT),
|
|
31
|
+
url: zod_1.z.string(),
|
|
32
|
+
});
|
|
17
33
|
exports.TTSJobSchema = zod_1.z.object({
|
|
18
34
|
uuid: zod_1.z.string(),
|
|
19
35
|
userInput: zod_1.z.string(),
|
|
@@ -24,9 +40,13 @@ exports.TTSJobSchema = zod_1.z.object({
|
|
|
24
40
|
status: zod_1.z.nativeEnum(tools_1.JOB_STATUS),
|
|
25
41
|
error: zod_1.z.string().nullable(),
|
|
26
42
|
modelId: zod_1.z.string(),
|
|
27
|
-
voiceId: zod_1.z.string(),
|
|
43
|
+
voiceId: zod_1.z.string().nullable(),
|
|
44
|
+
isDialog: zod_1.z.boolean(),
|
|
45
|
+
speakers: zod_1.z.array(exports.TTSJobSpeakerSchema),
|
|
46
|
+
voices: zod_1.z.array(exports.TTSJobVoiceSchema),
|
|
28
47
|
price: zod_1.z.number(),
|
|
29
48
|
duration: zod_1.z.number(),
|
|
49
|
+
scope: zod_1.z.nativeEnum(common_1.JOB_SCOPE),
|
|
30
50
|
userId: zod_1.z.string().nullable(),
|
|
31
51
|
unregisteredUserId: zod_1.z.string().nullable(),
|
|
32
52
|
tokenReservationId: zod_1.z.string().nullable().optional(),
|
|
@@ -20,6 +20,7 @@ export declare const TTSModelWithVendorSchema: z.ZodObject<{
|
|
|
20
20
|
}, z.core.$strip>;
|
|
21
21
|
strategy: z.ZodOptional<z.ZodString>;
|
|
22
22
|
maxInputLength: z.ZodNumber;
|
|
23
|
+
maxSpeakers: z.ZodNumber;
|
|
23
24
|
voices: z.ZodArray<z.ZodObject<{
|
|
24
25
|
id: z.ZodString;
|
|
25
26
|
externalId: z.ZodString;
|
|
@@ -141,6 +141,7 @@ export declare const TTSModelSchema: z.ZodObject<{
|
|
|
141
141
|
}, z.core.$strip>;
|
|
142
142
|
strategy: z.ZodOptional<z.ZodString>;
|
|
143
143
|
maxInputLength: z.ZodNumber;
|
|
144
|
+
maxSpeakers: z.ZodNumber;
|
|
144
145
|
voices: z.ZodArray<z.ZodObject<{
|
|
145
146
|
id: z.ZodString;
|
|
146
147
|
externalId: z.ZodString;
|
|
@@ -49,6 +49,7 @@ exports.TTSModelSchema = zod_1.z.object({
|
|
|
49
49
|
icons: common_1.IconVariantsSchema,
|
|
50
50
|
strategy: zod_1.z.string().optional(),
|
|
51
51
|
maxInputLength: zod_1.z.number(),
|
|
52
|
+
maxSpeakers: zod_1.z.number(),
|
|
52
53
|
voices: zod_1.z.array(exports.TTSVoiceSchema),
|
|
53
54
|
params: exports.TTSModelParams,
|
|
54
55
|
createdAt: zod_1.z.date(),
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { VOICE_CATEGORY } from '../enums/voice-category.enum';
|
|
3
|
+
export declare const VoiceCategorySchema: z.ZodObject<{
|
|
4
|
+
id: z.ZodEnum<typeof VOICE_CATEGORY>;
|
|
5
|
+
label: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export type VoiceCategory = z.infer<typeof VoiceCategorySchema>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VoiceCategorySchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const voice_category_enum_1 = require("../enums/voice-category.enum");
|
|
6
|
+
exports.VoiceCategorySchema = zod_1.z.object({
|
|
7
|
+
id: zod_1.z.nativeEnum(voice_category_enum_1.VOICE_CATEGORY),
|
|
8
|
+
label: zod_1.z.string(),
|
|
9
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { VOICE_GENDER } from '../enums/voice-gender.enum';
|
|
3
|
+
export declare const VoiceDesignDraftSchema: z.ZodObject<{
|
|
4
|
+
designId: z.ZodString;
|
|
5
|
+
title: z.ZodString;
|
|
6
|
+
gender: z.ZodEnum<typeof VOICE_GENDER>;
|
|
7
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
8
|
+
samples: z.ZodArray<z.ZodObject<{
|
|
9
|
+
sampleId: z.ZodString;
|
|
10
|
+
previewUrl: z.ZodString;
|
|
11
|
+
}, z.core.$strip>>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export type VoiceDesignDraft = z.infer<typeof VoiceDesignDraftSchema>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VoiceDesignDraftSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const voice_gender_enum_1 = require("../enums/voice-gender.enum");
|
|
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(voice_gender_enum_1.VOICE_GENDER),
|
|
11
|
+
imageUrl: zod_1.z.string().nullable(),
|
|
12
|
+
samples: zod_1.z.array(voice_design_sample_schema_1.VoiceDesignSampleSchema),
|
|
13
|
+
});
|
|
@@ -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,7 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { VOICE_SOURCE } from '../enums/voice-source.enum';
|
|
3
|
+
export declare const VoiceSourceSchema: z.ZodObject<{
|
|
4
|
+
id: z.ZodEnum<typeof VOICE_SOURCE>;
|
|
5
|
+
label: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export type VoiceSource = z.infer<typeof VoiceSourceSchema>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VoiceSourceSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const voice_source_enum_1 = require("../enums/voice-source.enum");
|
|
6
|
+
exports.VoiceSourceSchema = zod_1.z.object({
|
|
7
|
+
id: zod_1.z.nativeEnum(voice_source_enum_1.VOICE_SOURCE),
|
|
8
|
+
label: zod_1.z.string(),
|
|
9
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { VOICE_TAG } from '../enums/voice-tag.enum';
|
|
3
|
+
import { VOICE_TAG_GROUP } from '../enums/voice-tag-group.enum';
|
|
4
|
+
export declare const VoiceTagSchema: z.ZodObject<{
|
|
5
|
+
id: z.ZodEnum<typeof VOICE_TAG>;
|
|
6
|
+
group: z.ZodEnum<typeof VOICE_TAG_GROUP>;
|
|
7
|
+
label: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
export type VoiceTag = z.infer<typeof VoiceTagSchema>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VoiceTagSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const voice_tag_enum_1 = require("../enums/voice-tag.enum");
|
|
6
|
+
const voice_tag_group_enum_1 = require("../enums/voice-tag-group.enum");
|
|
7
|
+
exports.VoiceTagSchema = zod_1.z.object({
|
|
8
|
+
id: zod_1.z.nativeEnum(voice_tag_enum_1.VOICE_TAG),
|
|
9
|
+
group: zod_1.z.nativeEnum(voice_tag_group_enum_1.VOICE_TAG_GROUP),
|
|
10
|
+
label: zod_1.z.string(),
|
|
11
|
+
});
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { JOB_SCOPE } from '../../common';
|
|
3
|
+
import { VOICE_STATUS } from '../enums/voice-status.enum';
|
|
4
|
+
import { VOICE_GENDER } from '../enums/voice-gender.enum';
|
|
5
|
+
import { VOICE_CATEGORY } from '../enums/voice-category.enum';
|
|
6
|
+
export declare const VoiceSchema: z.ZodObject<{
|
|
7
|
+
uuid: z.ZodString;
|
|
8
|
+
scope: z.ZodEnum<typeof JOB_SCOPE>;
|
|
9
|
+
source: z.ZodObject<{
|
|
10
|
+
id: z.ZodEnum<typeof import("..").VOICE_SOURCE>;
|
|
11
|
+
label: z.ZodString;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
title: z.ZodString;
|
|
14
|
+
description: z.ZodString;
|
|
15
|
+
gender: z.ZodNullable<z.ZodEnum<typeof VOICE_GENDER>>;
|
|
16
|
+
trait: z.ZodNullable<z.ZodString>;
|
|
17
|
+
ageRange: z.ZodNullable<z.ZodString>;
|
|
18
|
+
categories: z.ZodArray<z.ZodEnum<typeof VOICE_CATEGORY>>;
|
|
19
|
+
previewUrl: z.ZodString;
|
|
20
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
21
|
+
status: z.ZodEnum<typeof 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
|
+
export type Voice = z.infer<typeof VoiceSchema>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VoiceSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const common_1 = require("../../common");
|
|
6
|
+
const voice_status_enum_1 = require("../enums/voice-status.enum");
|
|
7
|
+
const voice_gender_enum_1 = require("../enums/voice-gender.enum");
|
|
8
|
+
const voice_category_enum_1 = require("../enums/voice-category.enum");
|
|
9
|
+
const voice_source_schema_1 = require("./voice-source.schema");
|
|
10
|
+
exports.VoiceSchema = zod_1.z.object({
|
|
11
|
+
uuid: zod_1.z.string().uuid(),
|
|
12
|
+
scope: zod_1.z.nativeEnum(common_1.JOB_SCOPE),
|
|
13
|
+
source: voice_source_schema_1.VoiceSourceSchema,
|
|
14
|
+
title: zod_1.z.string(),
|
|
15
|
+
description: zod_1.z.string(),
|
|
16
|
+
gender: zod_1.z.nativeEnum(voice_gender_enum_1.VOICE_GENDER).nullable(),
|
|
17
|
+
trait: zod_1.z.string().nullable(),
|
|
18
|
+
ageRange: zod_1.z.string().nullable(),
|
|
19
|
+
categories: zod_1.z.array(zod_1.z.nativeEnum(voice_category_enum_1.VOICE_CATEGORY)),
|
|
20
|
+
previewUrl: zod_1.z.string(),
|
|
21
|
+
imageUrl: zod_1.z.string().nullable(),
|
|
22
|
+
status: zod_1.z.nativeEnum(voice_status_enum_1.VOICE_STATUS),
|
|
23
|
+
error: zod_1.z.string().nullable(),
|
|
24
|
+
order: zod_1.z.number(),
|
|
25
|
+
isDeleted: zod_1.z.boolean(),
|
|
26
|
+
userId: zod_1.z.string().uuid().nullable(),
|
|
27
|
+
unregisteredUserId: zod_1.z.string().uuid().nullable(),
|
|
28
|
+
createdAt: zod_1.z.date(),
|
|
29
|
+
updatedAt: zod_1.z.date(),
|
|
30
|
+
});
|
|
@@ -4,6 +4,7 @@ export declare namespace FindTTSJobByIdQuery {
|
|
|
4
4
|
uuid: z.ZodString;
|
|
5
5
|
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
6
|
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
|
+
locale: z.ZodOptional<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
|
|
7
8
|
}, z.core.$strip>;
|
|
8
9
|
type Request = z.infer<typeof RequestSchema>;
|
|
9
10
|
const ResponseSchema: z.ZodObject<{
|
|
@@ -18,9 +19,22 @@ export declare namespace FindTTSJobByIdQuery {
|
|
|
18
19
|
status: import("../..").JOB_STATUS;
|
|
19
20
|
error: string | null;
|
|
20
21
|
modelId: string;
|
|
21
|
-
voiceId: string;
|
|
22
|
+
voiceId: string | null;
|
|
23
|
+
isDialog: boolean;
|
|
24
|
+
speakers: {
|
|
25
|
+
speaker: number;
|
|
26
|
+
voiceId: string;
|
|
27
|
+
}[];
|
|
28
|
+
voices: {
|
|
29
|
+
uuid: string;
|
|
30
|
+
title: string;
|
|
31
|
+
previewUrl: string;
|
|
32
|
+
isDeleted: boolean;
|
|
33
|
+
speaker: number | null;
|
|
34
|
+
}[];
|
|
22
35
|
price: number;
|
|
23
36
|
duration: number;
|
|
37
|
+
scope: import("../..").JOB_SCOPE;
|
|
24
38
|
userId: string | null;
|
|
25
39
|
unregisteredUserId: string | null;
|
|
26
40
|
tokenReservationId?: string | null | undefined;
|
|
@@ -49,9 +63,22 @@ export declare namespace FindTTSJobByIdQuery {
|
|
|
49
63
|
status: import("../..").JOB_STATUS;
|
|
50
64
|
error: string | null;
|
|
51
65
|
modelId: string;
|
|
52
|
-
voiceId: string;
|
|
66
|
+
voiceId: string | null;
|
|
67
|
+
isDialog: boolean;
|
|
68
|
+
speakers: {
|
|
69
|
+
speaker: number;
|
|
70
|
+
voiceId: string;
|
|
71
|
+
}[];
|
|
72
|
+
voices: {
|
|
73
|
+
uuid: string;
|
|
74
|
+
title: string;
|
|
75
|
+
previewUrl: string;
|
|
76
|
+
isDeleted: boolean;
|
|
77
|
+
speaker: number | null;
|
|
78
|
+
}[];
|
|
53
79
|
price: number;
|
|
54
80
|
duration: number;
|
|
81
|
+
scope: import("../..").JOB_SCOPE;
|
|
55
82
|
userId: string | null;
|
|
56
83
|
unregisteredUserId: string | null;
|
|
57
84
|
tokenReservationId?: string | null | undefined;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.FindTTSJobByIdQuery = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
6
|
+
const common_1 = require("../../common");
|
|
6
7
|
const tts_job_schema_1 = require("../models/tts-job.schema");
|
|
7
8
|
var FindTTSJobByIdQuery;
|
|
8
9
|
(function (FindTTSJobByIdQuery) {
|
|
@@ -10,6 +11,7 @@ var FindTTSJobByIdQuery;
|
|
|
10
11
|
uuid: zod_1.z.string().uuid(),
|
|
11
12
|
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
12
13
|
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
14
|
+
locale: common_1.LocaleSchema.optional(),
|
|
13
15
|
});
|
|
14
16
|
FindTTSJobByIdQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(tts_job_schema_1.TTSJobSchema);
|
|
15
17
|
})(FindTTSJobByIdQuery || (exports.FindTTSJobByIdQuery = FindTTSJobByIdQuery = {}));
|
|
@@ -6,6 +6,7 @@ export declare namespace FindTTSJobsQuery {
|
|
|
6
6
|
userId: z.ZodOptional<z.ZodString>;
|
|
7
7
|
unregisteredUserId: z.ZodOptional<z.ZodString>;
|
|
8
8
|
scope: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof JOB_SCOPE>>>;
|
|
9
|
+
locale: z.ZodOptional<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
|
|
9
10
|
title: z.ZodOptional<z.ZodString>;
|
|
10
11
|
isFavorite: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
11
12
|
createdAtSortOrder: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof JOB_SORT>>>;
|
|
@@ -27,9 +28,22 @@ export declare namespace FindTTSJobsQuery {
|
|
|
27
28
|
status: JOB_STATUS;
|
|
28
29
|
error: string | null;
|
|
29
30
|
modelId: string;
|
|
30
|
-
voiceId: string;
|
|
31
|
+
voiceId: string | null;
|
|
32
|
+
isDialog: boolean;
|
|
33
|
+
speakers: {
|
|
34
|
+
speaker: number;
|
|
35
|
+
voiceId: string;
|
|
36
|
+
}[];
|
|
37
|
+
voices: {
|
|
38
|
+
uuid: string;
|
|
39
|
+
title: string;
|
|
40
|
+
previewUrl: string;
|
|
41
|
+
isDeleted: boolean;
|
|
42
|
+
speaker: number | null;
|
|
43
|
+
}[];
|
|
31
44
|
price: number;
|
|
32
45
|
duration: number;
|
|
46
|
+
scope: JOB_SCOPE;
|
|
33
47
|
userId: string | null;
|
|
34
48
|
unregisteredUserId: string | null;
|
|
35
49
|
tokenReservationId?: string | null | undefined;
|
|
@@ -63,9 +77,22 @@ export declare namespace FindTTSJobsQuery {
|
|
|
63
77
|
status: JOB_STATUS;
|
|
64
78
|
error: string | null;
|
|
65
79
|
modelId: string;
|
|
66
|
-
voiceId: string;
|
|
80
|
+
voiceId: string | null;
|
|
81
|
+
isDialog: boolean;
|
|
82
|
+
speakers: {
|
|
83
|
+
speaker: number;
|
|
84
|
+
voiceId: string;
|
|
85
|
+
}[];
|
|
86
|
+
voices: {
|
|
87
|
+
uuid: string;
|
|
88
|
+
title: string;
|
|
89
|
+
previewUrl: string;
|
|
90
|
+
isDeleted: boolean;
|
|
91
|
+
speaker: number | null;
|
|
92
|
+
}[];
|
|
67
93
|
price: number;
|
|
68
94
|
duration: number;
|
|
95
|
+
scope: JOB_SCOPE;
|
|
69
96
|
userId: string | null;
|
|
70
97
|
unregisteredUserId: string | null;
|
|
71
98
|
tokenReservationId?: string | null | undefined;
|
|
@@ -13,6 +13,7 @@ var FindTTSJobsQuery;
|
|
|
13
13
|
userId: zod_1.z.string().uuid().optional(),
|
|
14
14
|
unregisteredUserId: zod_1.z.string().uuid().optional(),
|
|
15
15
|
scope: zod_1.z.nativeEnum(common_1.JOB_SCOPE).optional().default(common_1.JOB_SCOPE.TOOL),
|
|
16
|
+
locale: common_1.LocaleSchema.optional(),
|
|
16
17
|
title: zod_1.z.string().optional(),
|
|
17
18
|
isFavorite: zod_1.z.coerce.boolean().optional(),
|
|
18
19
|
createdAtSortOrder: zod_1.z.nativeEnum(tools_1.JOB_SORT).optional().default(tools_1.JOB_SORT.DESC),
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { JOB_SCOPE } from '../../common';
|
|
3
|
+
export declare namespace FindVoiceByIdQuery {
|
|
4
|
+
const RequestSchema: z.ZodObject<{
|
|
5
|
+
uuid: z.ZodString;
|
|
6
|
+
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
|
+
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
locale: z.ZodOptional<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
|
|
9
|
+
scope: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof JOB_SCOPE>>>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
12
|
+
const ResponseSchema: z.ZodObject<{
|
|
13
|
+
isSuccess: z.ZodBoolean;
|
|
14
|
+
data: z.ZodOptional<z.ZodType<{
|
|
15
|
+
uuid: string;
|
|
16
|
+
scope: JOB_SCOPE;
|
|
17
|
+
source: {
|
|
18
|
+
id: import("..").VOICE_SOURCE;
|
|
19
|
+
label: string;
|
|
20
|
+
};
|
|
21
|
+
title: string;
|
|
22
|
+
description: string;
|
|
23
|
+
gender: import("..").VOICE_GENDER | null;
|
|
24
|
+
trait: string | null;
|
|
25
|
+
ageRange: string | null;
|
|
26
|
+
categories: import("..").VOICE_CATEGORY[];
|
|
27
|
+
previewUrl: string;
|
|
28
|
+
imageUrl: string | null;
|
|
29
|
+
status: import("..").VOICE_STATUS;
|
|
30
|
+
error: string | null;
|
|
31
|
+
order: number;
|
|
32
|
+
isDeleted: boolean;
|
|
33
|
+
userId: string | null;
|
|
34
|
+
unregisteredUserId: string | null;
|
|
35
|
+
createdAt: Date;
|
|
36
|
+
updatedAt: Date;
|
|
37
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
38
|
+
uuid: string;
|
|
39
|
+
scope: JOB_SCOPE;
|
|
40
|
+
source: {
|
|
41
|
+
id: import("..").VOICE_SOURCE;
|
|
42
|
+
label: string;
|
|
43
|
+
};
|
|
44
|
+
title: string;
|
|
45
|
+
description: string;
|
|
46
|
+
gender: import("..").VOICE_GENDER | null;
|
|
47
|
+
trait: string | null;
|
|
48
|
+
ageRange: string | null;
|
|
49
|
+
categories: import("..").VOICE_CATEGORY[];
|
|
50
|
+
previewUrl: string;
|
|
51
|
+
imageUrl: string | null;
|
|
52
|
+
status: import("..").VOICE_STATUS;
|
|
53
|
+
error: string | null;
|
|
54
|
+
order: number;
|
|
55
|
+
isDeleted: boolean;
|
|
56
|
+
userId: string | null;
|
|
57
|
+
unregisteredUserId: string | null;
|
|
58
|
+
createdAt: Date;
|
|
59
|
+
updatedAt: Date;
|
|
60
|
+
}, unknown>>>;
|
|
61
|
+
code: z.ZodOptional<z.ZodString>;
|
|
62
|
+
message: z.ZodOptional<z.ZodString>;
|
|
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.FindVoiceByIdQuery = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const common_1 = require("../../common");
|
|
6
|
+
const models_1 = require("../models");
|
|
7
|
+
var FindVoiceByIdQuery;
|
|
8
|
+
(function (FindVoiceByIdQuery) {
|
|
9
|
+
FindVoiceByIdQuery.RequestSchema = zod_1.z.object({
|
|
10
|
+
uuid: zod_1.z.string().uuid(),
|
|
11
|
+
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
12
|
+
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
13
|
+
locale: common_1.LocaleSchema.optional(),
|
|
14
|
+
scope: zod_1.z.nativeEnum(common_1.JOB_SCOPE).optional().default(common_1.JOB_SCOPE.TOOL),
|
|
15
|
+
});
|
|
16
|
+
FindVoiceByIdQuery.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.VoiceSchema);
|
|
17
|
+
})(FindVoiceByIdQuery || (exports.FindVoiceByIdQuery = FindVoiceByIdQuery = {}));
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { JOB_SCOPE } from '../../common';
|
|
3
|
+
import { VOICE_CATEGORY } from '../enums/voice-category.enum';
|
|
4
|
+
import { VOICE_GENDER } from '../enums/voice-gender.enum';
|
|
5
|
+
export declare namespace FindVoicesQuery {
|
|
6
|
+
const RequestSchema: z.ZodObject<{
|
|
7
|
+
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
locale: z.ZodOptional<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
|
|
10
|
+
scope: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof JOB_SCOPE>>>;
|
|
11
|
+
ownership: z.ZodDefault<z.ZodEnum<{
|
|
12
|
+
all: "all";
|
|
13
|
+
library: "library";
|
|
14
|
+
mine: "mine";
|
|
15
|
+
}>>;
|
|
16
|
+
category: z.ZodOptional<z.ZodEnum<typeof VOICE_CATEGORY>>;
|
|
17
|
+
gender: z.ZodOptional<z.ZodEnum<typeof VOICE_GENDER>>;
|
|
18
|
+
query: z.ZodOptional<z.ZodString>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
21
|
+
const ResponseDataSchema: z.ZodObject<{
|
|
22
|
+
items: z.ZodArray<z.ZodObject<{
|
|
23
|
+
uuid: z.ZodString;
|
|
24
|
+
scope: z.ZodEnum<typeof JOB_SCOPE>;
|
|
25
|
+
source: z.ZodObject<{
|
|
26
|
+
id: z.ZodEnum<typeof import("..").VOICE_SOURCE>;
|
|
27
|
+
label: z.ZodString;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
title: z.ZodString;
|
|
30
|
+
description: z.ZodString;
|
|
31
|
+
gender: z.ZodNullable<z.ZodEnum<typeof VOICE_GENDER>>;
|
|
32
|
+
trait: z.ZodNullable<z.ZodString>;
|
|
33
|
+
ageRange: z.ZodNullable<z.ZodString>;
|
|
34
|
+
categories: z.ZodArray<z.ZodEnum<typeof VOICE_CATEGORY>>;
|
|
35
|
+
previewUrl: z.ZodString;
|
|
36
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
37
|
+
status: z.ZodEnum<typeof import("..").VOICE_STATUS>;
|
|
38
|
+
error: z.ZodNullable<z.ZodString>;
|
|
39
|
+
order: z.ZodNumber;
|
|
40
|
+
isDeleted: z.ZodBoolean;
|
|
41
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
42
|
+
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
43
|
+
createdAt: z.ZodDate;
|
|
44
|
+
updatedAt: z.ZodDate;
|
|
45
|
+
}, z.core.$strip>>;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
const ResponseSchema: z.ZodObject<{
|
|
48
|
+
isSuccess: z.ZodBoolean;
|
|
49
|
+
data: z.ZodOptional<z.ZodType<{
|
|
50
|
+
items: {
|
|
51
|
+
uuid: string;
|
|
52
|
+
scope: JOB_SCOPE;
|
|
53
|
+
source: {
|
|
54
|
+
id: import("..").VOICE_SOURCE;
|
|
55
|
+
label: string;
|
|
56
|
+
};
|
|
57
|
+
title: string;
|
|
58
|
+
description: string;
|
|
59
|
+
gender: VOICE_GENDER | null;
|
|
60
|
+
trait: string | null;
|
|
61
|
+
ageRange: string | null;
|
|
62
|
+
categories: VOICE_CATEGORY[];
|
|
63
|
+
previewUrl: string;
|
|
64
|
+
imageUrl: string | null;
|
|
65
|
+
status: import("..").VOICE_STATUS;
|
|
66
|
+
error: string | null;
|
|
67
|
+
order: number;
|
|
68
|
+
isDeleted: boolean;
|
|
69
|
+
userId: string | null;
|
|
70
|
+
unregisteredUserId: string | null;
|
|
71
|
+
createdAt: Date;
|
|
72
|
+
updatedAt: Date;
|
|
73
|
+
}[];
|
|
74
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
75
|
+
items: {
|
|
76
|
+
uuid: string;
|
|
77
|
+
scope: JOB_SCOPE;
|
|
78
|
+
source: {
|
|
79
|
+
id: import("..").VOICE_SOURCE;
|
|
80
|
+
label: string;
|
|
81
|
+
};
|
|
82
|
+
title: string;
|
|
83
|
+
description: string;
|
|
84
|
+
gender: VOICE_GENDER | null;
|
|
85
|
+
trait: string | null;
|
|
86
|
+
ageRange: string | null;
|
|
87
|
+
categories: VOICE_CATEGORY[];
|
|
88
|
+
previewUrl: string;
|
|
89
|
+
imageUrl: string | null;
|
|
90
|
+
status: import("..").VOICE_STATUS;
|
|
91
|
+
error: string | null;
|
|
92
|
+
order: number;
|
|
93
|
+
isDeleted: boolean;
|
|
94
|
+
userId: string | null;
|
|
95
|
+
unregisteredUserId: string | null;
|
|
96
|
+
createdAt: Date;
|
|
97
|
+
updatedAt: Date;
|
|
98
|
+
}[];
|
|
99
|
+
}, unknown>>>;
|
|
100
|
+
code: z.ZodOptional<z.ZodString>;
|
|
101
|
+
message: z.ZodOptional<z.ZodString>;
|
|
102
|
+
}, z.core.$strip>;
|
|
103
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
104
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindVoicesQuery = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const common_1 = require("../../common");
|
|
6
|
+
const voice_category_enum_1 = require("../enums/voice-category.enum");
|
|
7
|
+
const voice_gender_enum_1 = require("../enums/voice-gender.enum");
|
|
8
|
+
const models_1 = require("../models");
|
|
9
|
+
var FindVoicesQuery;
|
|
10
|
+
(function (FindVoicesQuery) {
|
|
11
|
+
FindVoicesQuery.RequestSchema = zod_1.z.object({
|
|
12
|
+
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
13
|
+
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
14
|
+
locale: common_1.LocaleSchema.optional(),
|
|
15
|
+
scope: zod_1.z.nativeEnum(common_1.JOB_SCOPE).optional().default(common_1.JOB_SCOPE.TOOL),
|
|
16
|
+
ownership: zod_1.z.enum(['all', 'library', 'mine']).default('all'),
|
|
17
|
+
category: zod_1.z.nativeEnum(voice_category_enum_1.VOICE_CATEGORY).optional(),
|
|
18
|
+
gender: zod_1.z.nativeEnum(voice_gender_enum_1.VOICE_GENDER).optional(),
|
|
19
|
+
query: zod_1.z.string().optional(),
|
|
20
|
+
});
|
|
21
|
+
FindVoicesQuery.ResponseDataSchema = zod_1.z.object({
|
|
22
|
+
items: zod_1.z.array(models_1.VoiceSchema),
|
|
23
|
+
});
|
|
24
|
+
FindVoicesQuery.ResponseSchema = (0, common_1.ICommandResponseSchema)(FindVoicesQuery.ResponseDataSchema);
|
|
25
|
+
})(FindVoicesQuery || (exports.FindVoicesQuery = FindVoicesQuery = {}));
|
|
@@ -45,6 +45,7 @@ export declare namespace GetTTSConfigWithVendorsQuery {
|
|
|
45
45
|
};
|
|
46
46
|
strategy?: string | undefined;
|
|
47
47
|
maxInputLength: number;
|
|
48
|
+
maxSpeakers: number;
|
|
48
49
|
voices: {
|
|
49
50
|
id: string;
|
|
50
51
|
externalId: string;
|
|
@@ -185,6 +186,7 @@ export declare namespace GetTTSConfigWithVendorsQuery {
|
|
|
185
186
|
};
|
|
186
187
|
strategy?: string | undefined;
|
|
187
188
|
maxInputLength: number;
|
|
189
|
+
maxSpeakers: number;
|
|
188
190
|
voices: {
|
|
189
191
|
id: string;
|
|
190
192
|
externalId: string;
|