@purpleschool/gptbot-tools 0.2.69 → 0.2.72-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 -0
- package/build/index.js +3 -0
- package/build/music/commands/add-track-to-music-playlist.command.d.ts +199 -41
- package/build/music/commands/add-track-to-music-playlist.command.js +1 -1
- package/build/music/commands/create-music-playlist.command.d.ts +198 -40
- package/build/music/commands/edit-music.command.d.ts +12 -0
- package/build/music/commands/generate-music.command.d.ts +18 -2
- package/build/music/commands/generate-music.command.js +1 -1
- package/build/music/commands/get-music-price.command.d.ts +2 -0
- package/build/music/commands/get-music-price.command.js +2 -0
- package/build/music/commands/remove-track-from-music-playlist.command.d.ts +199 -41
- package/build/music/commands/remove-track-from-music-playlist.command.js +1 -1
- package/build/music/commands/retry-music-job.command.d.ts +12 -0
- package/build/music/commands/set-reaction-to-music-job.command.d.ts +12 -0
- package/build/music/commands/update-music-job-favorite.command.d.ts +12 -0
- package/build/music/commands/update-music-job-title.command.d.ts +12 -0
- package/build/music/commands/update-music-playlist.command.d.ts +198 -40
- package/build/music/commands/update-published-status-music-jobs.command.d.ts +12 -0
- package/build/music/enums/music-action-type.enum.d.ts +0 -2
- package/build/music/enums/music-action-type.enum.js +0 -2
- package/build/music/enums/music-audio-action-type.enum.d.ts +0 -2
- package/build/music/enums/music-audio-action-type.enum.js +0 -2
- package/build/music/models/music-job.schema.d.ts +10 -0
- package/build/music/models/music-job.schema.js +14 -15
- package/build/music/models/music-playlist.schema.d.ts +99 -20
- package/build/music/models/music-playlist.schema.js +3 -3
- package/build/music/queries/find-music-job-by-id.query.d.ts +12 -0
- package/build/music/queries/find-music-jobs.query.d.ts +12 -0
- package/build/music/queries/find-music-playlists.query.d.ts +227 -56
- package/build/music/queries/find-music-playlists.query.js +9 -1
- 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/photo-sessions/commands/admin/index.js +19 -0
- package/build/photo-sessions/commands/admin/update-photo-session-style.command.d.ts +54 -0
- package/build/photo-sessions/commands/admin/update-photo-session-style.command.js +18 -0
- package/build/photo-sessions/commands/delete-all-photo-sessions-jobs.command.d.ts +17 -0
- package/build/photo-sessions/commands/delete-all-photo-sessions-jobs.command.js +19 -0
- package/build/photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.d.ts +16 -0
- 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 +74 -0
- package/build/photo-sessions/commands/get-photo-sessions-price.command.js +28 -0
- package/build/photo-sessions/commands/index.d.ts +10 -0
- package/build/photo-sessions/commands/index.js +26 -0
- package/build/photo-sessions/commands/photo-sessions.command.d.ts +272 -0
- package/build/photo-sessions/commands/photo-sessions.command.js +37 -0
- package/build/photo-sessions/commands/retry-photo-sessions-job.command.d.ts +179 -0
- package/build/photo-sessions/commands/retry-photo-sessions-job.command.js +17 -0
- package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.d.ts +181 -0
- package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.js +27 -0
- package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.d.ts +179 -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 +217 -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 +184 -0
- package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.js +26 -0
- package/build/photo-sessions/enums/index.d.ts +3 -0
- package/build/photo-sessions/enums/index.js +19 -0
- package/build/photo-sessions/enums/photo-session-group-status.enum.d.ts +6 -0
- package/build/photo-sessions/enums/photo-session-group-status.enum.js +10 -0
- 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/index.d.ts +5 -0
- package/build/photo-sessions/index.js +21 -0
- package/build/photo-sessions/models/index.d.ts +5 -0
- package/build/photo-sessions/models/index.js +21 -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-group.schema.d.ts +113 -0
- package/build/photo-sessions/models/photo-session-group.schema.js +27 -0
- package/build/photo-sessions/models/photo-session-job.schema.d.ts +159 -0
- package/build/photo-sessions/models/photo-session-job.schema.js +55 -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 +216 -0
- package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.js +18 -0
- package/build/photo-sessions/queries/find-photo-sessions-jobs.query.d.ts +235 -0
- package/build/photo-sessions/queries/find-photo-sessions-jobs.query.js +33 -0
- 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/photo-sessions/queries/index.js +21 -0
- package/build/photo-sessions/routes/index.d.ts +2 -0
- package/build/photo-sessions/routes/index.js +18 -0
- 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/spell-corrector/commands/get-spell-corrector-price.command.d.ts +16 -3
- package/build/spell-corrector/commands/get-spell-corrector-price.command.js +6 -1
- package/build/spell-corrector/commands/retry-spell-corrector-job.command.d.ts +67 -0
- package/build/spell-corrector/commands/retry-spell-corrector-job.command.js +2 -0
- package/build/spell-corrector/commands/set-reaction-to-spell-corrector-job.command.d.ts +56 -0
- package/build/spell-corrector/commands/spell-corrector.command.d.ts +69 -1
- package/build/spell-corrector/commands/spell-corrector.command.js +9 -2
- package/build/spell-corrector/commands/update-spell-corrector-job-favorite.command.d.ts +56 -0
- package/build/spell-corrector/commands/update-spell-corrector-job-title.command.d.ts +56 -0
- package/build/spell-corrector/constants/index.d.ts +1 -0
- package/build/spell-corrector/constants/index.js +17 -0
- package/build/spell-corrector/constants/spell-corrector-errors.constant.d.ts +32 -0
- package/build/spell-corrector/constants/spell-corrector-errors.constant.js +35 -0
- package/build/spell-corrector/enums/index.d.ts +1 -0
- package/build/spell-corrector/enums/index.js +17 -0
- package/build/spell-corrector/enums/spell-corrector-input-kind.enum.d.ts +4 -0
- package/build/spell-corrector/enums/spell-corrector-input-kind.enum.js +8 -0
- package/build/spell-corrector/index.d.ts +2 -0
- package/build/spell-corrector/index.js +2 -0
- package/build/spell-corrector/models/index.d.ts +2 -0
- package/build/spell-corrector/models/index.js +2 -0
- package/build/spell-corrector/models/spell-corrector-correction-statistics.schema.d.ts +7 -0
- package/build/spell-corrector/models/spell-corrector-correction-statistics.schema.js +13 -0
- package/build/spell-corrector/models/spell-corrector-document.schema.d.ts +22 -0
- package/build/spell-corrector/models/spell-corrector-document.schema.js +16 -0
- package/build/spell-corrector/models/spell-corrector-job.schema.d.ts +29 -0
- package/build/spell-corrector/models/spell-corrector-job.schema.js +11 -0
- package/build/spell-corrector/models/spell-corrector-model.schema.d.ts +4 -0
- package/build/spell-corrector/models/spell-corrector-model.schema.js +4 -0
- package/build/spell-corrector/models/spell-corrector-tool-config.schema.d.ts +5 -0
- package/build/spell-corrector/models/spell-corrector-tool-config.schema.js +1 -0
- package/build/spell-corrector/queries/find-spell-corrector-job-by-uuid.query.d.ts +56 -0
- package/build/spell-corrector/queries/find-spell-corrector-jobs.query.d.ts +56 -0
- package/build/spell-corrector/queries/get-spell-corrector-tool-config.query.d.ts +10 -0
- package/build/tools/enums/tool-content-type.enum.d.ts +1 -0
- package/build/tools/enums/tool-content-type.enum.js +1 -0
- package/build/tools/enums/tool-type.enum.d.ts +1 -0
- package/build/tools/enums/tool-type.enum.js +1 -0
- package/build/tools/events/tool-job-complete.event.d.ts +1 -0
- package/build/tools/events/tool-job-failed.event.d.ts +1 -0
- package/build/tools/models/global-tools-config.schema.d.ts +81 -0
- package/build/tools/models/global-tools-config.schema.js +2 -0
- package/build/tools/models/tool-job.schema.d.ts +1 -0
- package/build/tools/models/tool-job.schema.js +1 -0
- package/build/tools/models/tools-with-configs.schema.d.ts +32 -0
- package/build/tools/queries/get-global-tools-config.query.d.ts +162 -0
- package/build/tools/queries/get-tools-with-configs.query.d.ts +32 -0
- package/build/tts/commands/create-voice-clone.command.d.ts +81 -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/tts/commands/improve-tts-text.command.d.ts +22 -0
- 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 +77 -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 +78 -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 +7 -0
- package/build/tts/models/index.js +7 -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-gender.schema.d.ts +7 -0
- package/build/tts/models/voice-gender.schema.js +9 -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 +34 -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 +77 -0
- package/build/tts/queries/find-voice-by-id.query.js +17 -0
- package/build/tts/queries/find-voices.query.d.ts +122 -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
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { JOB_SCOPE } from '../../common';
|
|
3
|
+
import { VOICE_GENDER } from '../enums/voice-gender.enum';
|
|
4
|
+
export declare namespace CreateVoiceDesignCommand {
|
|
5
|
+
const RequestSchema: z.ZodObject<{
|
|
6
|
+
userId: z.ZodString;
|
|
7
|
+
locale: z.ZodOptional<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
|
|
8
|
+
scope: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof JOB_SCOPE>>>;
|
|
9
|
+
title: z.ZodString;
|
|
10
|
+
gender: z.ZodEnum<typeof VOICE_GENDER>;
|
|
11
|
+
instruction: z.ZodString;
|
|
12
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
15
|
+
const ResponseSchema: z.ZodObject<{
|
|
16
|
+
isSuccess: z.ZodBoolean;
|
|
17
|
+
data: z.ZodOptional<z.ZodType<{
|
|
18
|
+
designId: string;
|
|
19
|
+
title: string;
|
|
20
|
+
gender: VOICE_GENDER;
|
|
21
|
+
imageUrl: string | null;
|
|
22
|
+
samples: {
|
|
23
|
+
sampleId: string;
|
|
24
|
+
previewUrl: string;
|
|
25
|
+
}[];
|
|
26
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
27
|
+
designId: string;
|
|
28
|
+
title: string;
|
|
29
|
+
gender: VOICE_GENDER;
|
|
30
|
+
imageUrl: string | null;
|
|
31
|
+
samples: {
|
|
32
|
+
sampleId: string;
|
|
33
|
+
previewUrl: string;
|
|
34
|
+
}[];
|
|
35
|
+
}, unknown>>>;
|
|
36
|
+
code: z.ZodOptional<z.ZodString>;
|
|
37
|
+
message: z.ZodOptional<z.ZodString>;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
40
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateVoiceDesignCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const common_1 = require("../../common");
|
|
6
|
+
const voice_gender_enum_1 = require("../enums/voice-gender.enum");
|
|
7
|
+
const models_1 = require("../models");
|
|
8
|
+
var CreateVoiceDesignCommand;
|
|
9
|
+
(function (CreateVoiceDesignCommand) {
|
|
10
|
+
CreateVoiceDesignCommand.RequestSchema = zod_1.z.object({
|
|
11
|
+
userId: zod_1.z.string().uuid(),
|
|
12
|
+
locale: common_1.LocaleSchema.optional(),
|
|
13
|
+
scope: zod_1.z.nativeEnum(common_1.JOB_SCOPE).optional().default(common_1.JOB_SCOPE.TOOL),
|
|
14
|
+
title: zod_1.z.string(),
|
|
15
|
+
gender: zod_1.z.nativeEnum(voice_gender_enum_1.VOICE_GENDER),
|
|
16
|
+
instruction: zod_1.z.string().min(1),
|
|
17
|
+
imageUrl: zod_1.z.string().url().optional(),
|
|
18
|
+
});
|
|
19
|
+
CreateVoiceDesignCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.VoiceDesignDraftSchema);
|
|
20
|
+
})(CreateVoiceDesignCommand || (exports.CreateVoiceDesignCommand = CreateVoiceDesignCommand = {}));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { JOB_SCOPE } from '../../common';
|
|
3
|
+
export declare namespace DeleteVoiceCommand {
|
|
4
|
+
const RequestSchema: z.ZodObject<{
|
|
5
|
+
uuid: z.ZodString;
|
|
6
|
+
userId: z.ZodString;
|
|
7
|
+
scope: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof JOB_SCOPE>>>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
10
|
+
const ResponseSchema: z.ZodObject<{
|
|
11
|
+
isSuccess: z.ZodBoolean;
|
|
12
|
+
data: z.ZodOptional<z.ZodType<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>>;
|
|
13
|
+
code: z.ZodOptional<z.ZodString>;
|
|
14
|
+
message: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteVoiceCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const common_1 = require("../../common");
|
|
6
|
+
var DeleteVoiceCommand;
|
|
7
|
+
(function (DeleteVoiceCommand) {
|
|
8
|
+
DeleteVoiceCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
uuid: zod_1.z.string().uuid(),
|
|
10
|
+
userId: zod_1.z.string().uuid(),
|
|
11
|
+
scope: zod_1.z.nativeEnum(common_1.JOB_SCOPE).optional().default(common_1.JOB_SCOPE.TOOL),
|
|
12
|
+
});
|
|
13
|
+
DeleteVoiceCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(zod_1.z.boolean());
|
|
14
|
+
})(DeleteVoiceCommand || (exports.DeleteVoiceCommand = DeleteVoiceCommand = {}));
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { TTS_DOWNLOAD_FORMAT } from '../enums/tts-download-format.enum';
|
|
3
|
+
export declare namespace DownloadTTSJobCommand {
|
|
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
|
+
format: z.ZodEnum<typeof TTS_DOWNLOAD_FORMAT>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
11
|
+
const ResponseDataSchema: z.ZodObject<{
|
|
12
|
+
url: z.ZodString;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
const ResponseSchema: z.ZodObject<{
|
|
15
|
+
isSuccess: z.ZodBoolean;
|
|
16
|
+
data: z.ZodOptional<z.ZodType<{
|
|
17
|
+
url: string;
|
|
18
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
19
|
+
url: string;
|
|
20
|
+
}, unknown>>>;
|
|
21
|
+
code: z.ZodOptional<z.ZodString>;
|
|
22
|
+
message: z.ZodOptional<z.ZodString>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DownloadTTSJobCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const common_1 = require("../../common");
|
|
6
|
+
const tts_download_format_enum_1 = require("../enums/tts-download-format.enum");
|
|
7
|
+
var DownloadTTSJobCommand;
|
|
8
|
+
(function (DownloadTTSJobCommand) {
|
|
9
|
+
DownloadTTSJobCommand.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
|
+
format: zod_1.z.nativeEnum(tts_download_format_enum_1.TTS_DOWNLOAD_FORMAT),
|
|
14
|
+
});
|
|
15
|
+
DownloadTTSJobCommand.ResponseDataSchema = zod_1.z.object({
|
|
16
|
+
url: zod_1.z.string(),
|
|
17
|
+
});
|
|
18
|
+
DownloadTTSJobCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(DownloadTTSJobCommand.ResponseDataSchema);
|
|
19
|
+
})(DownloadTTSJobCommand || (exports.DownloadTTSJobCommand = DownloadTTSJobCommand = {}));
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace ImproveTTSTextCommand {
|
|
3
|
+
const RequestSchema: z.ZodObject<{
|
|
4
|
+
userInput: z.ZodString;
|
|
5
|
+
locale: z.ZodOptional<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
8
|
+
const ResponseDataSchema: z.ZodObject<{
|
|
9
|
+
text: z.ZodString;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
const ResponseSchema: z.ZodObject<{
|
|
12
|
+
isSuccess: z.ZodBoolean;
|
|
13
|
+
data: z.ZodOptional<z.ZodType<{
|
|
14
|
+
text: string;
|
|
15
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
16
|
+
text: string;
|
|
17
|
+
}, unknown>>>;
|
|
18
|
+
code: z.ZodOptional<z.ZodString>;
|
|
19
|
+
message: z.ZodOptional<z.ZodString>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ImproveTTSTextCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const common_1 = require("../../common");
|
|
6
|
+
var ImproveTTSTextCommand;
|
|
7
|
+
(function (ImproveTTSTextCommand) {
|
|
8
|
+
ImproveTTSTextCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
userInput: zod_1.z.string(),
|
|
10
|
+
locale: common_1.LocaleSchema.optional(),
|
|
11
|
+
});
|
|
12
|
+
ImproveTTSTextCommand.ResponseDataSchema = zod_1.z.object({
|
|
13
|
+
text: zod_1.z.string(),
|
|
14
|
+
});
|
|
15
|
+
ImproveTTSTextCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(ImproveTTSTextCommand.ResponseDataSchema);
|
|
16
|
+
})(ImproveTTSTextCommand || (exports.ImproveTTSTextCommand = ImproveTTSTextCommand = {}));
|
|
@@ -6,3 +6,10 @@ export * from './tts.command';
|
|
|
6
6
|
export * from './get-tts-price.command';
|
|
7
7
|
export * from './update-tts-job-title.command';
|
|
8
8
|
export * from './update-tts-job-favorite.command';
|
|
9
|
+
export * from './create-voice-clone.command';
|
|
10
|
+
export * from './create-voice-design.command';
|
|
11
|
+
export * from './select-voice-design.command';
|
|
12
|
+
export * from './update-voice.command';
|
|
13
|
+
export * from './delete-voice.command';
|
|
14
|
+
export * from './improve-tts-text.command';
|
|
15
|
+
export * from './download-tts-job.command';
|
|
@@ -22,3 +22,10 @@ __exportStar(require("./tts.command"), exports);
|
|
|
22
22
|
__exportStar(require("./get-tts-price.command"), exports);
|
|
23
23
|
__exportStar(require("./update-tts-job-title.command"), exports);
|
|
24
24
|
__exportStar(require("./update-tts-job-favorite.command"), exports);
|
|
25
|
+
__exportStar(require("./create-voice-clone.command"), exports);
|
|
26
|
+
__exportStar(require("./create-voice-design.command"), exports);
|
|
27
|
+
__exportStar(require("./select-voice-design.command"), exports);
|
|
28
|
+
__exportStar(require("./update-voice.command"), exports);
|
|
29
|
+
__exportStar(require("./delete-voice.command"), exports);
|
|
30
|
+
__exportStar(require("./improve-tts-text.command"), exports);
|
|
31
|
+
__exportStar(require("./download-tts-job.command"), exports);
|
|
@@ -4,6 +4,7 @@ export declare namespace RetryTTSJobCommand {
|
|
|
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
|
tokenReservationId: z.ZodString;
|
|
8
9
|
precalculatedPrice: z.ZodNumber;
|
|
9
10
|
mock: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -21,9 +22,22 @@ export declare namespace RetryTTSJobCommand {
|
|
|
21
22
|
status: import("../..").JOB_STATUS;
|
|
22
23
|
error: string | null;
|
|
23
24
|
modelId: string;
|
|
24
|
-
voiceId: string;
|
|
25
|
+
voiceId: string | null;
|
|
26
|
+
isDialog: boolean;
|
|
27
|
+
speakers: {
|
|
28
|
+
speaker: number;
|
|
29
|
+
voiceId: string;
|
|
30
|
+
}[];
|
|
31
|
+
voices: {
|
|
32
|
+
uuid: string;
|
|
33
|
+
title: string;
|
|
34
|
+
previewUrl: string;
|
|
35
|
+
isDeleted: boolean;
|
|
36
|
+
speaker: number | null;
|
|
37
|
+
}[];
|
|
25
38
|
price: number;
|
|
26
39
|
duration: number;
|
|
40
|
+
scope: import("../..").JOB_SCOPE;
|
|
27
41
|
userId: string | null;
|
|
28
42
|
unregisteredUserId: string | null;
|
|
29
43
|
tokenReservationId?: string | null | undefined;
|
|
@@ -52,9 +66,22 @@ export declare namespace RetryTTSJobCommand {
|
|
|
52
66
|
status: import("../..").JOB_STATUS;
|
|
53
67
|
error: string | null;
|
|
54
68
|
modelId: string;
|
|
55
|
-
voiceId: string;
|
|
69
|
+
voiceId: string | null;
|
|
70
|
+
isDialog: boolean;
|
|
71
|
+
speakers: {
|
|
72
|
+
speaker: number;
|
|
73
|
+
voiceId: string;
|
|
74
|
+
}[];
|
|
75
|
+
voices: {
|
|
76
|
+
uuid: string;
|
|
77
|
+
title: string;
|
|
78
|
+
previewUrl: string;
|
|
79
|
+
isDeleted: boolean;
|
|
80
|
+
speaker: number | null;
|
|
81
|
+
}[];
|
|
56
82
|
price: number;
|
|
57
83
|
duration: number;
|
|
84
|
+
scope: import("../..").JOB_SCOPE;
|
|
58
85
|
userId: string | null;
|
|
59
86
|
unregisteredUserId: string | null;
|
|
60
87
|
tokenReservationId?: string | null | undefined;
|
|
@@ -4,12 +4,14 @@ exports.RetryTTSJobCommand = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
6
6
|
const tts_job_schema_1 = require("../models/tts-job.schema");
|
|
7
|
+
const common_1 = require("../../common");
|
|
7
8
|
var RetryTTSJobCommand;
|
|
8
9
|
(function (RetryTTSJobCommand) {
|
|
9
10
|
RetryTTSJobCommand.RequestSchema = zod_1.z.object({
|
|
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
|
tokenReservationId: zod_1.z.string().uuid(),
|
|
14
16
|
precalculatedPrice: zod_1.z.number(),
|
|
15
17
|
mock: zod_1.z.boolean().optional(),
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { JOB_SCOPE } from '../../common';
|
|
3
|
+
export declare namespace SelectVoiceDesignCommand {
|
|
4
|
+
const RequestSchema: z.ZodObject<{
|
|
5
|
+
designId: z.ZodString;
|
|
6
|
+
sampleId: z.ZodString;
|
|
7
|
+
userId: 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: {
|
|
24
|
+
id: import("..").VOICE_GENDER;
|
|
25
|
+
label: string;
|
|
26
|
+
} | null;
|
|
27
|
+
trait: string | null;
|
|
28
|
+
ageRange: string | null;
|
|
29
|
+
categories: {
|
|
30
|
+
id: import("..").VOICE_CATEGORY;
|
|
31
|
+
label: string;
|
|
32
|
+
}[];
|
|
33
|
+
previewUrl: string;
|
|
34
|
+
imageUrl: string | null;
|
|
35
|
+
status: import("..").VOICE_STATUS;
|
|
36
|
+
error: string | null;
|
|
37
|
+
order: number;
|
|
38
|
+
isDeleted: boolean;
|
|
39
|
+
userId: string | null;
|
|
40
|
+
unregisteredUserId: string | null;
|
|
41
|
+
createdAt: Date;
|
|
42
|
+
updatedAt: Date;
|
|
43
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
44
|
+
uuid: string;
|
|
45
|
+
scope: JOB_SCOPE;
|
|
46
|
+
source: {
|
|
47
|
+
id: import("..").VOICE_SOURCE;
|
|
48
|
+
label: string;
|
|
49
|
+
};
|
|
50
|
+
title: string;
|
|
51
|
+
description: string;
|
|
52
|
+
gender: {
|
|
53
|
+
id: import("..").VOICE_GENDER;
|
|
54
|
+
label: string;
|
|
55
|
+
} | null;
|
|
56
|
+
trait: string | null;
|
|
57
|
+
ageRange: string | null;
|
|
58
|
+
categories: {
|
|
59
|
+
id: import("..").VOICE_CATEGORY;
|
|
60
|
+
label: string;
|
|
61
|
+
}[];
|
|
62
|
+
previewUrl: string;
|
|
63
|
+
imageUrl: string | null;
|
|
64
|
+
status: import("..").VOICE_STATUS;
|
|
65
|
+
error: string | null;
|
|
66
|
+
order: number;
|
|
67
|
+
isDeleted: boolean;
|
|
68
|
+
userId: string | null;
|
|
69
|
+
unregisteredUserId: string | null;
|
|
70
|
+
createdAt: Date;
|
|
71
|
+
updatedAt: Date;
|
|
72
|
+
}, unknown>>>;
|
|
73
|
+
code: z.ZodOptional<z.ZodString>;
|
|
74
|
+
message: z.ZodOptional<z.ZodString>;
|
|
75
|
+
}, z.core.$strip>;
|
|
76
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
77
|
+
}
|
|
@@ -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 common_1 = require("../../common");
|
|
6
|
+
const models_1 = require("../models");
|
|
7
|
+
var SelectVoiceDesignCommand;
|
|
8
|
+
(function (SelectVoiceDesignCommand) {
|
|
9
|
+
SelectVoiceDesignCommand.RequestSchema = zod_1.z.object({
|
|
10
|
+
designId: zod_1.z.string().uuid(),
|
|
11
|
+
sampleId: zod_1.z.string().uuid(),
|
|
12
|
+
userId: zod_1.z.string().uuid(),
|
|
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
|
+
SelectVoiceDesignCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.VoiceSchema);
|
|
17
|
+
})(SelectVoiceDesignCommand || (exports.SelectVoiceDesignCommand = SelectVoiceDesignCommand = {}));
|
|
@@ -4,6 +4,7 @@ export declare namespace SetReactionToTTSJobCommand {
|
|
|
4
4
|
const RequestSchema: z.ZodObject<{
|
|
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
|
uuid: z.ZodString;
|
|
8
9
|
reaction: z.ZodNullable<z.ZodEnum<typeof USER_REACTION>>;
|
|
9
10
|
dislikeReason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -21,9 +22,22 @@ export declare namespace SetReactionToTTSJobCommand {
|
|
|
21
22
|
status: import("../..").JOB_STATUS;
|
|
22
23
|
error: string | null;
|
|
23
24
|
modelId: string;
|
|
24
|
-
voiceId: string;
|
|
25
|
+
voiceId: string | null;
|
|
26
|
+
isDialog: boolean;
|
|
27
|
+
speakers: {
|
|
28
|
+
speaker: number;
|
|
29
|
+
voiceId: string;
|
|
30
|
+
}[];
|
|
31
|
+
voices: {
|
|
32
|
+
uuid: string;
|
|
33
|
+
title: string;
|
|
34
|
+
previewUrl: string;
|
|
35
|
+
isDeleted: boolean;
|
|
36
|
+
speaker: number | null;
|
|
37
|
+
}[];
|
|
25
38
|
price: number;
|
|
26
39
|
duration: number;
|
|
40
|
+
scope: import("../..").JOB_SCOPE;
|
|
27
41
|
userId: string | null;
|
|
28
42
|
unregisteredUserId: string | null;
|
|
29
43
|
tokenReservationId?: string | null | undefined;
|
|
@@ -52,9 +66,22 @@ export declare namespace SetReactionToTTSJobCommand {
|
|
|
52
66
|
status: import("../..").JOB_STATUS;
|
|
53
67
|
error: string | null;
|
|
54
68
|
modelId: string;
|
|
55
|
-
voiceId: string;
|
|
69
|
+
voiceId: string | null;
|
|
70
|
+
isDialog: boolean;
|
|
71
|
+
speakers: {
|
|
72
|
+
speaker: number;
|
|
73
|
+
voiceId: string;
|
|
74
|
+
}[];
|
|
75
|
+
voices: {
|
|
76
|
+
uuid: string;
|
|
77
|
+
title: string;
|
|
78
|
+
previewUrl: string;
|
|
79
|
+
isDeleted: boolean;
|
|
80
|
+
speaker: number | null;
|
|
81
|
+
}[];
|
|
56
82
|
price: number;
|
|
57
83
|
duration: number;
|
|
84
|
+
scope: import("../..").JOB_SCOPE;
|
|
58
85
|
userId: string | null;
|
|
59
86
|
unregisteredUserId: string | null;
|
|
60
87
|
tokenReservationId?: string | null | undefined;
|
|
@@ -11,6 +11,7 @@ var SetReactionToTTSJobCommand;
|
|
|
11
11
|
.object({
|
|
12
12
|
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
13
13
|
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
14
|
+
locale: common_1.LocaleSchema.optional(),
|
|
14
15
|
uuid: zod_1.z.string().uuid(),
|
|
15
16
|
reaction: zod_1.z.nativeEnum(common_1.USER_REACTION).nullable(),
|
|
16
17
|
dislikeReason: zod_1.z.string().nullable().default(null),
|
|
@@ -5,9 +5,15 @@ export declare namespace TTSCommand {
|
|
|
5
5
|
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
6
|
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
7
|
scope: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof JOB_SCOPE>>>;
|
|
8
|
+
locale: z.ZodOptional<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
|
|
8
9
|
modelId: z.ZodString;
|
|
9
|
-
voiceId: z.ZodString
|
|
10
|
+
voiceId: z.ZodOptional<z.ZodString>;
|
|
10
11
|
userInput: z.ZodString;
|
|
12
|
+
isDialog: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
13
|
+
speakers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14
|
+
speaker: z.ZodNumber;
|
|
15
|
+
voiceId: z.ZodString;
|
|
16
|
+
}, z.core.$strip>>>>;
|
|
11
17
|
params: z.ZodOptional<z.ZodObject<{
|
|
12
18
|
speed: z.ZodOptional<z.ZodNumber>;
|
|
13
19
|
similarity: z.ZodOptional<z.ZodNumber>;
|
|
@@ -35,9 +41,22 @@ export declare namespace TTSCommand {
|
|
|
35
41
|
status: import("../..").JOB_STATUS;
|
|
36
42
|
error: string | null;
|
|
37
43
|
modelId: string;
|
|
38
|
-
voiceId: string;
|
|
44
|
+
voiceId: string | null;
|
|
45
|
+
isDialog: boolean;
|
|
46
|
+
speakers: {
|
|
47
|
+
speaker: number;
|
|
48
|
+
voiceId: string;
|
|
49
|
+
}[];
|
|
50
|
+
voices: {
|
|
51
|
+
uuid: string;
|
|
52
|
+
title: string;
|
|
53
|
+
previewUrl: string;
|
|
54
|
+
isDeleted: boolean;
|
|
55
|
+
speaker: number | null;
|
|
56
|
+
}[];
|
|
39
57
|
price: number;
|
|
40
58
|
duration: number;
|
|
59
|
+
scope: JOB_SCOPE;
|
|
41
60
|
userId: string | null;
|
|
42
61
|
unregisteredUserId: string | null;
|
|
43
62
|
tokenReservationId?: string | null | undefined;
|
|
@@ -66,9 +85,22 @@ export declare namespace TTSCommand {
|
|
|
66
85
|
status: import("../..").JOB_STATUS;
|
|
67
86
|
error: string | null;
|
|
68
87
|
modelId: string;
|
|
69
|
-
voiceId: string;
|
|
88
|
+
voiceId: string | null;
|
|
89
|
+
isDialog: boolean;
|
|
90
|
+
speakers: {
|
|
91
|
+
speaker: number;
|
|
92
|
+
voiceId: string;
|
|
93
|
+
}[];
|
|
94
|
+
voices: {
|
|
95
|
+
uuid: string;
|
|
96
|
+
title: string;
|
|
97
|
+
previewUrl: string;
|
|
98
|
+
isDeleted: boolean;
|
|
99
|
+
speaker: number | null;
|
|
100
|
+
}[];
|
|
70
101
|
price: number;
|
|
71
102
|
duration: number;
|
|
103
|
+
scope: JOB_SCOPE;
|
|
72
104
|
userId: string | null;
|
|
73
105
|
unregisteredUserId: string | null;
|
|
74
106
|
tokenReservationId?: string | null | undefined;
|
|
@@ -11,9 +11,12 @@ var TTSCommand;
|
|
|
11
11
|
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
12
12
|
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
13
13
|
scope: zod_1.z.nativeEnum(common_1.JOB_SCOPE).optional().default(common_1.JOB_SCOPE.TOOL),
|
|
14
|
+
locale: common_1.LocaleSchema.optional(),
|
|
14
15
|
modelId: zod_1.z.string(),
|
|
15
|
-
voiceId: zod_1.z.string(),
|
|
16
|
+
voiceId: zod_1.z.string().uuid().optional(),
|
|
16
17
|
userInput: zod_1.z.string(),
|
|
18
|
+
isDialog: zod_1.z.boolean().optional().default(false),
|
|
19
|
+
speakers: zod_1.z.array(tts_job_schema_1.TTSJobSpeakerSchema).optional().default([]),
|
|
17
20
|
params: zod_1.z
|
|
18
21
|
.object({
|
|
19
22
|
speed: zod_1.z.number().optional(),
|
|
@@ -4,6 +4,7 @@ export declare namespace UpdateTTSJobFavoriteCommand {
|
|
|
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
|
isFavorite: z.ZodBoolean;
|
|
8
9
|
}, z.core.$strip>;
|
|
9
10
|
type Request = z.infer<typeof RequestSchema>;
|
|
@@ -19,9 +20,22 @@ export declare namespace UpdateTTSJobFavoriteCommand {
|
|
|
19
20
|
status: import("../..").JOB_STATUS;
|
|
20
21
|
error: string | null;
|
|
21
22
|
modelId: string;
|
|
22
|
-
voiceId: string;
|
|
23
|
+
voiceId: string | null;
|
|
24
|
+
isDialog: boolean;
|
|
25
|
+
speakers: {
|
|
26
|
+
speaker: number;
|
|
27
|
+
voiceId: string;
|
|
28
|
+
}[];
|
|
29
|
+
voices: {
|
|
30
|
+
uuid: string;
|
|
31
|
+
title: string;
|
|
32
|
+
previewUrl: string;
|
|
33
|
+
isDeleted: boolean;
|
|
34
|
+
speaker: number | null;
|
|
35
|
+
}[];
|
|
23
36
|
price: number;
|
|
24
37
|
duration: number;
|
|
38
|
+
scope: import("../..").JOB_SCOPE;
|
|
25
39
|
userId: string | null;
|
|
26
40
|
unregisteredUserId: string | null;
|
|
27
41
|
tokenReservationId?: string | null | undefined;
|
|
@@ -50,9 +64,22 @@ export declare namespace UpdateTTSJobFavoriteCommand {
|
|
|
50
64
|
status: import("../..").JOB_STATUS;
|
|
51
65
|
error: string | null;
|
|
52
66
|
modelId: string;
|
|
53
|
-
voiceId: string;
|
|
67
|
+
voiceId: string | null;
|
|
68
|
+
isDialog: boolean;
|
|
69
|
+
speakers: {
|
|
70
|
+
speaker: number;
|
|
71
|
+
voiceId: string;
|
|
72
|
+
}[];
|
|
73
|
+
voices: {
|
|
74
|
+
uuid: string;
|
|
75
|
+
title: string;
|
|
76
|
+
previewUrl: string;
|
|
77
|
+
isDeleted: boolean;
|
|
78
|
+
speaker: number | null;
|
|
79
|
+
}[];
|
|
54
80
|
price: number;
|
|
55
81
|
duration: number;
|
|
82
|
+
scope: import("../..").JOB_SCOPE;
|
|
56
83
|
userId: string | null;
|
|
57
84
|
unregisteredUserId: string | null;
|
|
58
85
|
tokenReservationId?: string | null | undefined;
|
|
@@ -4,12 +4,14 @@ exports.UpdateTTSJobFavoriteCommand = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
6
6
|
const tts_job_schema_1 = require("../models/tts-job.schema");
|
|
7
|
+
const common_1 = require("../../common");
|
|
7
8
|
var UpdateTTSJobFavoriteCommand;
|
|
8
9
|
(function (UpdateTTSJobFavoriteCommand) {
|
|
9
10
|
UpdateTTSJobFavoriteCommand.RequestSchema = zod_1.z.object({
|
|
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
|
isFavorite: zod_1.z.boolean(),
|
|
14
16
|
});
|
|
15
17
|
UpdateTTSJobFavoriteCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(tts_job_schema_1.TTSJobSchema);
|
|
@@ -4,6 +4,7 @@ export declare namespace UpdateTTSJobTitleCommand {
|
|
|
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
|
title: z.ZodString;
|
|
8
9
|
}, z.core.$strip>;
|
|
9
10
|
type Request = z.infer<typeof RequestSchema>;
|
|
@@ -19,9 +20,22 @@ export declare namespace UpdateTTSJobTitleCommand {
|
|
|
19
20
|
status: import("../..").JOB_STATUS;
|
|
20
21
|
error: string | null;
|
|
21
22
|
modelId: string;
|
|
22
|
-
voiceId: string;
|
|
23
|
+
voiceId: string | null;
|
|
24
|
+
isDialog: boolean;
|
|
25
|
+
speakers: {
|
|
26
|
+
speaker: number;
|
|
27
|
+
voiceId: string;
|
|
28
|
+
}[];
|
|
29
|
+
voices: {
|
|
30
|
+
uuid: string;
|
|
31
|
+
title: string;
|
|
32
|
+
previewUrl: string;
|
|
33
|
+
isDeleted: boolean;
|
|
34
|
+
speaker: number | null;
|
|
35
|
+
}[];
|
|
23
36
|
price: number;
|
|
24
37
|
duration: number;
|
|
38
|
+
scope: import("../..").JOB_SCOPE;
|
|
25
39
|
userId: string | null;
|
|
26
40
|
unregisteredUserId: string | null;
|
|
27
41
|
tokenReservationId?: string | null | undefined;
|
|
@@ -50,9 +64,22 @@ export declare namespace UpdateTTSJobTitleCommand {
|
|
|
50
64
|
status: import("../..").JOB_STATUS;
|
|
51
65
|
error: string | null;
|
|
52
66
|
modelId: string;
|
|
53
|
-
voiceId: string;
|
|
67
|
+
voiceId: string | null;
|
|
68
|
+
isDialog: boolean;
|
|
69
|
+
speakers: {
|
|
70
|
+
speaker: number;
|
|
71
|
+
voiceId: string;
|
|
72
|
+
}[];
|
|
73
|
+
voices: {
|
|
74
|
+
uuid: string;
|
|
75
|
+
title: string;
|
|
76
|
+
previewUrl: string;
|
|
77
|
+
isDeleted: boolean;
|
|
78
|
+
speaker: number | null;
|
|
79
|
+
}[];
|
|
54
80
|
price: number;
|
|
55
81
|
duration: number;
|
|
82
|
+
scope: import("../..").JOB_SCOPE;
|
|
56
83
|
userId: string | null;
|
|
57
84
|
unregisteredUserId: string | null;
|
|
58
85
|
tokenReservationId?: string | null | undefined;
|
|
@@ -4,12 +4,14 @@ exports.UpdateTTSJobTitleCommand = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
6
6
|
const tts_job_schema_1 = require("../models/tts-job.schema");
|
|
7
|
+
const common_1 = require("../../common");
|
|
7
8
|
var UpdateTTSJobTitleCommand;
|
|
8
9
|
(function (UpdateTTSJobTitleCommand) {
|
|
9
10
|
UpdateTTSJobTitleCommand.RequestSchema = zod_1.z.object({
|
|
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
|
title: zod_1.z.string().min(1).max(40),
|
|
14
16
|
});
|
|
15
17
|
UpdateTTSJobTitleCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(tts_job_schema_1.TTSJobSchema);
|