@purpleschool/gptbot-tools 0.2.62-stage2 → 0.2.63
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 +0 -1
- package/build/ai-proxy/routes/ai-proxy.routes.js +0 -1
- package/build/index.d.ts +3 -3
- package/build/index.js +3 -3
- package/build/{photo-sessions/commands/delete-all-photo-sessions-jobs.command.d.ts → sound-generation/commands/delete-all-sound-generation-jobs.command.d.ts} +1 -1
- package/build/sound-generation/commands/delete-all-sound-generation-jobs.command.js +14 -0
- package/build/{photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.d.ts → sound-generation/commands/delete-sound-generation-job-by-uuid.command.d.ts} +2 -2
- package/build/sound-generation/commands/delete-sound-generation-job-by-uuid.command.js +14 -0
- package/build/{tts/commands/improve-tts-text.command.d.ts → sound-generation/commands/get-sound-generation-price.command.d.ts} +8 -6
- package/build/sound-generation/commands/get-sound-generation-price.command.js +17 -0
- package/build/sound-generation/commands/index.d.ts +8 -0
- package/build/sound-generation/commands/index.js +24 -0
- package/build/sound-generation/commands/retry-sound-generation-job.command.d.ts +94 -0
- package/build/sound-generation/commands/retry-sound-generation-job.command.js +20 -0
- package/build/sound-generation/commands/set-reaction-to-sound-generation-job.command.d.ts +87 -0
- package/build/{photo-sessions/commands/set-reaction-to-photo-sessions-job.command.js → sound-generation/commands/set-reaction-to-sound-generation-job.command.js} +7 -7
- package/build/sound-generation/commands/sound-generation.command.d.ts +96 -0
- package/build/sound-generation/commands/sound-generation.command.js +27 -0
- package/build/sound-generation/commands/update-sound-generation-job-favorite.command.d.ts +85 -0
- package/build/sound-generation/commands/update-sound-generation-job-favorite.command.js +16 -0
- package/build/sound-generation/commands/update-sound-generation-job-title.command.d.ts +85 -0
- package/build/sound-generation/commands/update-sound-generation-job-title.command.js +16 -0
- package/build/sound-generation/enums/index.d.ts +1 -0
- package/build/{photo-sessions/routes → sound-generation/enums}/index.js +1 -2
- package/build/sound-generation/enums/sound-generation-strategy.enum.d.ts +3 -0
- package/build/sound-generation/enums/sound-generation-strategy.enum.js +7 -0
- package/build/sound-generation/models/index.d.ts +5 -0
- package/build/{photo-sessions → sound-generation}/models/index.js +5 -4
- package/build/sound-generation/models/sound-generation-config.schema.d.ts +34 -0
- package/build/sound-generation/models/sound-generation-config.schema.js +8 -0
- package/build/sound-generation/models/sound-generation-job.schema.d.ts +39 -0
- package/build/sound-generation/models/sound-generation-job.schema.js +34 -0
- package/build/sound-generation/models/sound-generation-model.schema.d.ts +42 -0
- package/build/sound-generation/models/sound-generation-model.schema.js +28 -0
- package/build/sound-generation/models/sound-generation-params.schema.d.ts +8 -0
- package/build/sound-generation/models/sound-generation-params.schema.js +10 -0
- package/build/sound-generation/models/sound-generation-result.schema.d.ts +7 -0
- package/build/sound-generation/models/sound-generation-result.schema.js +9 -0
- package/build/sound-generation/queries/find-sound-generation-job-by-id.query.d.ts +84 -0
- package/build/sound-generation/queries/find-sound-generation-job-by-id.query.js +15 -0
- package/build/sound-generation/queries/find-sound-generation-jobs.query.d.ts +102 -0
- package/build/{photo-sessions/queries/find-photo-sessions-jobs.query.js → sound-generation/queries/find-sound-generation-jobs.query.js} +17 -10
- package/build/sound-generation/queries/get-sound-generation-config.query.d.ts +76 -0
- package/build/sound-generation/queries/get-sound-generation-config.query.js +10 -0
- package/build/sound-generation/queries/index.d.ts +3 -0
- package/build/{photo-sessions/commands/admin → sound-generation/queries}/index.js +3 -3
- package/build/sound-generation/routes/index.d.ts +1 -0
- package/build/{photo-sessions/enums → sound-generation/routes}/index.js +1 -2
- package/build/sound-generation/routes/sound-generation.amqp.routes.d.ts +13 -0
- package/build/sound-generation/routes/sound-generation.amqp.routes.js +16 -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 +25 -69
- package/build/tools/models/global-tools-config.schema.js +2 -2
- package/build/tools/models/tool-group.schema.d.ts +1 -0
- package/build/tools/models/tool-group.schema.js +1 -0
- package/build/tools/models/tools-with-configs.schema.d.ts +88 -22
- package/build/tools/models/tools-with-configs.schema.js +5 -0
- package/build/tools/queries/find-grouped-tools.query.d.ts +2 -0
- package/build/tools/queries/get-global-tools-config.query.d.ts +46 -134
- package/build/tools/queries/get-tools-with-configs.query.d.ts +88 -22
- package/build/tts/commands/index.d.ts +0 -7
- package/build/tts/commands/index.js +0 -7
- package/build/tts/commands/retry-tts-job.command.d.ts +2 -29
- package/build/tts/commands/retry-tts-job.command.js +0 -2
- package/build/tts/commands/set-reaction-to-tts-job.command.d.ts +2 -29
- package/build/tts/commands/set-reaction-to-tts-job.command.js +0 -1
- package/build/tts/commands/tts.command.d.ts +3 -35
- package/build/tts/commands/tts.command.js +1 -4
- package/build/tts/commands/update-tts-job-favorite.command.d.ts +2 -29
- package/build/tts/commands/update-tts-job-favorite.command.js +0 -2
- package/build/tts/commands/update-tts-job-title.command.d.ts +2 -29
- package/build/tts/commands/update-tts-job-title.command.js +0 -2
- package/build/tts/enums/index.d.ts +0 -7
- package/build/tts/enums/index.js +0 -7
- package/build/tts/models/index.d.ts +0 -7
- package/build/tts/models/index.js +0 -7
- package/build/tts/models/tts-config-with-vendors.schema.d.ts +0 -1
- package/build/tts/models/tts-config.schema.d.ts +0 -11
- package/build/tts/models/tts-config.schema.js +0 -5
- package/build/tts/models/tts-job.schema.d.ts +2 -34
- package/build/tts/models/tts-job.schema.js +2 -22
- package/build/tts/models/tts-model-with-vendor.schema.d.ts +0 -1
- package/build/tts/models/tts-model.schema.d.ts +0 -1
- package/build/tts/models/tts-model.schema.js +0 -1
- package/build/tts/queries/find-tts-job-by-id.query.d.ts +2 -29
- package/build/tts/queries/find-tts-job-by-id.query.js +0 -2
- package/build/tts/queries/find-tts-jobs.query.d.ts +2 -29
- package/build/tts/queries/find-tts-jobs.query.js +0 -1
- package/build/tts/queries/get-tts-config-with-vendors.query.d.ts +0 -2
- package/build/tts/queries/get-tts-config.query.d.ts +0 -22
- package/build/tts/queries/index.d.ts +0 -2
- package/build/tts/queries/index.js +0 -2
- package/build/tts/routes/tts.amqp.routes.d.ts +0 -9
- package/build/tts/routes/tts.amqp.routes.js +0 -9
- package/package.json +1 -1
- package/build/photo-sessions/commands/admin/create-photo-session-style.command.d.ts +0 -58
- package/build/photo-sessions/commands/admin/create-photo-session-style.command.js +0 -21
- package/build/photo-sessions/commands/admin/delete-photo-session-style.command.d.ts +0 -14
- package/build/photo-sessions/commands/admin/delete-photo-session-style.command.js +0 -12
- package/build/photo-sessions/commands/admin/index.d.ts +0 -3
- package/build/photo-sessions/commands/admin/update-photo-session-style.command.d.ts +0 -55
- package/build/photo-sessions/commands/admin/update-photo-session-style.command.js +0 -28
- package/build/photo-sessions/commands/delete-all-photo-sessions-jobs.command.js +0 -15
- package/build/photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.js +0 -14
- package/build/photo-sessions/commands/get-photo-sessions-price.command.d.ts +0 -46
- package/build/photo-sessions/commands/get-photo-sessions-price.command.js +0 -30
- package/build/photo-sessions/commands/index.d.ts +0 -10
- package/build/photo-sessions/commands/index.js +0 -26
- package/build/photo-sessions/commands/photo-sessions.command.d.ts +0 -147
- package/build/photo-sessions/commands/photo-sessions.command.js +0 -41
- package/build/photo-sessions/commands/retry-photo-sessions-job.command.d.ts +0 -142
- package/build/photo-sessions/commands/retry-photo-sessions-job.command.js +0 -23
- package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.d.ts +0 -115
- package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.d.ts +0 -113
- package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.js +0 -16
- package/build/photo-sessions/commands/update-photo-sessions-job-title.command.d.ts +0 -113
- package/build/photo-sessions/commands/update-photo-sessions-job-title.command.js +0 -16
- package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.d.ts +0 -118
- package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.js +0 -26
- package/build/photo-sessions/enums/index.d.ts +0 -2
- package/build/photo-sessions/enums/photo-session-look-type.enum.d.ts +0 -5
- package/build/photo-sessions/enums/photo-session-look-type.enum.js +0 -9
- package/build/photo-sessions/enums/photo-session-strategy.enum.d.ts +0 -4
- package/build/photo-sessions/enums/photo-session-strategy.enum.js +0 -8
- package/build/photo-sessions/models/index.d.ts +0 -4
- package/build/photo-sessions/models/photo-session-config.schema.d.ts +0 -72
- package/build/photo-sessions/models/photo-session-config.schema.js +0 -16
- package/build/photo-sessions/models/photo-session-job.schema.d.ts +0 -78
- package/build/photo-sessions/models/photo-session-job.schema.js +0 -46
- package/build/photo-sessions/models/photo-session-model.schema.d.ts +0 -69
- package/build/photo-sessions/models/photo-session-model.schema.js +0 -42
- package/build/photo-sessions/models/photo-session-style.schema.d.ts +0 -29
- package/build/photo-sessions/models/photo-session-style.schema.js +0 -22
- package/build/photo-sessions/queries/find-photo-session-style-by-id.query.d.ts +0 -46
- package/build/photo-sessions/queries/find-photo-session-style-by-id.query.js +0 -10
- package/build/photo-sessions/queries/find-photo-session-styles.query.d.ts +0 -57
- package/build/photo-sessions/queries/find-photo-session-styles.query.js +0 -19
- package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.d.ts +0 -110
- package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.js +0 -10
- package/build/photo-sessions/queries/find-photo-sessions-jobs.query.d.ts +0 -130
- package/build/photo-sessions/queries/get-photo-sessions-config.query.d.ts +0 -142
- package/build/photo-sessions/queries/get-photo-sessions-config.query.js +0 -10
- package/build/photo-sessions/queries/index.d.ts +0 -5
- package/build/photo-sessions/queries/index.js +0 -21
- package/build/photo-sessions/routes/index.d.ts +0 -2
- package/build/photo-sessions/routes/photo-sessions.amqp.routes.d.ts +0 -19
- package/build/photo-sessions/routes/photo-sessions.amqp.routes.js +0 -22
- package/build/photo-sessions/routes/photo-sessions.http.routes.d.ts +0 -1
- package/build/photo-sessions/routes/photo-sessions.http.routes.js +0 -4
- package/build/tts/commands/create-voice-clone.command.d.ts +0 -81
- package/build/tts/commands/create-voice-clone.command.js +0 -21
- package/build/tts/commands/create-voice-design.command.d.ts +0 -40
- package/build/tts/commands/create-voice-design.command.js +0 -20
- package/build/tts/commands/delete-voice.command.d.ts +0 -17
- package/build/tts/commands/delete-voice.command.js +0 -14
- package/build/tts/commands/download-tts-job.command.d.ts +0 -25
- package/build/tts/commands/download-tts-job.command.js +0 -19
- package/build/tts/commands/improve-tts-text.command.js +0 -16
- package/build/tts/commands/select-voice-design.command.d.ts +0 -77
- package/build/tts/commands/select-voice-design.command.js +0 -17
- package/build/tts/commands/update-voice.command.d.ts +0 -78
- package/build/tts/commands/update-voice.command.js +0 -18
- package/build/tts/enums/tts-download-format.enum.d.ts +0 -5
- package/build/tts/enums/tts-download-format.enum.js +0 -9
- package/build/tts/enums/voice-category.enum.d.ts +0 -19
- package/build/tts/enums/voice-category.enum.js +0 -23
- package/build/tts/enums/voice-gender.enum.d.ts +0 -4
- package/build/tts/enums/voice-gender.enum.js +0 -8
- package/build/tts/enums/voice-source.enum.d.ts +0 -5
- package/build/tts/enums/voice-source.enum.js +0 -9
- package/build/tts/enums/voice-status.enum.d.ts +0 -5
- package/build/tts/enums/voice-status.enum.js +0 -9
- package/build/tts/enums/voice-tag-group.enum.d.ts +0 -5
- package/build/tts/enums/voice-tag-group.enum.js +0 -9
- package/build/tts/enums/voice-tag.enum.d.ts +0 -20
- package/build/tts/enums/voice-tag.enum.js +0 -24
- package/build/tts/models/voice-category.schema.d.ts +0 -7
- package/build/tts/models/voice-category.schema.js +0 -9
- package/build/tts/models/voice-design-draft.schema.d.ts +0 -13
- package/build/tts/models/voice-design-draft.schema.js +0 -13
- package/build/tts/models/voice-design-sample.schema.d.ts +0 -6
- package/build/tts/models/voice-design-sample.schema.js +0 -8
- package/build/tts/models/voice-gender.schema.d.ts +0 -7
- package/build/tts/models/voice-gender.schema.js +0 -9
- package/build/tts/models/voice-source.schema.d.ts +0 -7
- package/build/tts/models/voice-source.schema.js +0 -9
- package/build/tts/models/voice-tag.schema.d.ts +0 -9
- package/build/tts/models/voice-tag.schema.js +0 -11
- package/build/tts/models/voice.schema.d.ts +0 -34
- package/build/tts/models/voice.schema.js +0 -30
- package/build/tts/queries/find-voice-by-id.query.d.ts +0 -77
- package/build/tts/queries/find-voice-by-id.query.js +0 -17
- package/build/tts/queries/find-voices.query.d.ts +0 -122
- package/build/tts/queries/find-voices.query.js +0 -25
- /package/build/{photo-sessions → sound-generation}/index.d.ts +0 -0
- /package/build/{photo-sessions → sound-generation}/index.js +0 -0
|
@@ -1,17 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
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 = {}));
|
|
@@ -1,25 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
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 = {}));
|
|
@@ -1,16 +0,0 @@
|
|
|
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 = {}));
|
|
@@ -1,77 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
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 = {}));
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { JOB_SCOPE } from '../../common';
|
|
3
|
-
export declare namespace UpdateVoiceCommand {
|
|
4
|
-
const RequestSchema: z.ZodObject<{
|
|
5
|
-
uuid: z.ZodString;
|
|
6
|
-
userId: z.ZodString;
|
|
7
|
-
locale: z.ZodOptional<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
|
|
8
|
-
title: z.ZodString;
|
|
9
|
-
scope: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof JOB_SCOPE>>>;
|
|
10
|
-
imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
-
}, z.core.$strip>;
|
|
12
|
-
type Request = z.infer<typeof RequestSchema>;
|
|
13
|
-
const ResponseSchema: z.ZodObject<{
|
|
14
|
-
isSuccess: z.ZodBoolean;
|
|
15
|
-
data: z.ZodOptional<z.ZodType<{
|
|
16
|
-
uuid: string;
|
|
17
|
-
scope: JOB_SCOPE;
|
|
18
|
-
source: {
|
|
19
|
-
id: import("..").VOICE_SOURCE;
|
|
20
|
-
label: string;
|
|
21
|
-
};
|
|
22
|
-
title: string;
|
|
23
|
-
description: string;
|
|
24
|
-
gender: {
|
|
25
|
-
id: import("..").VOICE_GENDER;
|
|
26
|
-
label: string;
|
|
27
|
-
} | null;
|
|
28
|
-
trait: string | null;
|
|
29
|
-
ageRange: string | null;
|
|
30
|
-
categories: {
|
|
31
|
-
id: import("..").VOICE_CATEGORY;
|
|
32
|
-
label: string;
|
|
33
|
-
}[];
|
|
34
|
-
previewUrl: string;
|
|
35
|
-
imageUrl: string | null;
|
|
36
|
-
status: import("..").VOICE_STATUS;
|
|
37
|
-
error: string | null;
|
|
38
|
-
order: number;
|
|
39
|
-
isDeleted: boolean;
|
|
40
|
-
userId: string | null;
|
|
41
|
-
unregisteredUserId: string | null;
|
|
42
|
-
createdAt: Date;
|
|
43
|
-
updatedAt: Date;
|
|
44
|
-
}, unknown, z.core.$ZodTypeInternals<{
|
|
45
|
-
uuid: string;
|
|
46
|
-
scope: JOB_SCOPE;
|
|
47
|
-
source: {
|
|
48
|
-
id: import("..").VOICE_SOURCE;
|
|
49
|
-
label: string;
|
|
50
|
-
};
|
|
51
|
-
title: string;
|
|
52
|
-
description: string;
|
|
53
|
-
gender: {
|
|
54
|
-
id: import("..").VOICE_GENDER;
|
|
55
|
-
label: string;
|
|
56
|
-
} | null;
|
|
57
|
-
trait: string | null;
|
|
58
|
-
ageRange: string | null;
|
|
59
|
-
categories: {
|
|
60
|
-
id: import("..").VOICE_CATEGORY;
|
|
61
|
-
label: string;
|
|
62
|
-
}[];
|
|
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
|
-
}, unknown>>>;
|
|
74
|
-
code: z.ZodOptional<z.ZodString>;
|
|
75
|
-
message: z.ZodOptional<z.ZodString>;
|
|
76
|
-
}, z.core.$strip>;
|
|
77
|
-
type Response = z.infer<typeof ResponseSchema>;
|
|
78
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateVoiceCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const common_1 = require("../../common");
|
|
6
|
-
const models_1 = require("../models");
|
|
7
|
-
var UpdateVoiceCommand;
|
|
8
|
-
(function (UpdateVoiceCommand) {
|
|
9
|
-
UpdateVoiceCommand.RequestSchema = zod_1.z.object({
|
|
10
|
-
uuid: zod_1.z.string().uuid(),
|
|
11
|
-
userId: zod_1.z.string().uuid(),
|
|
12
|
-
locale: common_1.LocaleSchema.optional(),
|
|
13
|
-
title: zod_1.z.string().min(1),
|
|
14
|
-
scope: zod_1.z.nativeEnum(common_1.JOB_SCOPE).optional().default(common_1.JOB_SCOPE.TOOL),
|
|
15
|
-
imageUrl: zod_1.z.string().url().nullable().optional(),
|
|
16
|
-
});
|
|
17
|
-
UpdateVoiceCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.VoiceSchema);
|
|
18
|
-
})(UpdateVoiceCommand || (exports.UpdateVoiceCommand = UpdateVoiceCommand = {}));
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TTS_DOWNLOAD_FORMAT = void 0;
|
|
4
|
-
var TTS_DOWNLOAD_FORMAT;
|
|
5
|
-
(function (TTS_DOWNLOAD_FORMAT) {
|
|
6
|
-
TTS_DOWNLOAD_FORMAT["MP3"] = "mp3";
|
|
7
|
-
TTS_DOWNLOAD_FORMAT["WAV"] = "wav";
|
|
8
|
-
TTS_DOWNLOAD_FORMAT["OPUS"] = "opus";
|
|
9
|
-
})(TTS_DOWNLOAD_FORMAT || (exports.TTS_DOWNLOAD_FORMAT = TTS_DOWNLOAD_FORMAT = {}));
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export declare enum VOICE_CATEGORY {
|
|
2
|
-
GAMES = "GAMES",
|
|
3
|
-
AUDIOBOOKS = "AUDIOBOOKS",
|
|
4
|
-
YOUTUBE = "YOUTUBE",
|
|
5
|
-
PODCASTS = "PODCASTS",
|
|
6
|
-
NEWS = "NEWS",
|
|
7
|
-
EDUCATION = "EDUCATION",
|
|
8
|
-
ADVERTISING = "ADVERTISING",
|
|
9
|
-
IVR = "IVR",
|
|
10
|
-
FAIRY_TALES = "FAIRY_TALES",
|
|
11
|
-
HORROR = "HORROR",
|
|
12
|
-
WHISPER = "WHISPER",
|
|
13
|
-
ROMANCE = "ROMANCE",
|
|
14
|
-
BUSINESS = "BUSINESS",
|
|
15
|
-
WELLNESS = "WELLNESS",
|
|
16
|
-
SPORTS = "SPORTS",
|
|
17
|
-
AMBIENCE = "AMBIENCE",
|
|
18
|
-
TRAVEL = "TRAVEL"
|
|
19
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VOICE_CATEGORY = void 0;
|
|
4
|
-
var VOICE_CATEGORY;
|
|
5
|
-
(function (VOICE_CATEGORY) {
|
|
6
|
-
VOICE_CATEGORY["GAMES"] = "GAMES";
|
|
7
|
-
VOICE_CATEGORY["AUDIOBOOKS"] = "AUDIOBOOKS";
|
|
8
|
-
VOICE_CATEGORY["YOUTUBE"] = "YOUTUBE";
|
|
9
|
-
VOICE_CATEGORY["PODCASTS"] = "PODCASTS";
|
|
10
|
-
VOICE_CATEGORY["NEWS"] = "NEWS";
|
|
11
|
-
VOICE_CATEGORY["EDUCATION"] = "EDUCATION";
|
|
12
|
-
VOICE_CATEGORY["ADVERTISING"] = "ADVERTISING";
|
|
13
|
-
VOICE_CATEGORY["IVR"] = "IVR";
|
|
14
|
-
VOICE_CATEGORY["FAIRY_TALES"] = "FAIRY_TALES";
|
|
15
|
-
VOICE_CATEGORY["HORROR"] = "HORROR";
|
|
16
|
-
VOICE_CATEGORY["WHISPER"] = "WHISPER";
|
|
17
|
-
VOICE_CATEGORY["ROMANCE"] = "ROMANCE";
|
|
18
|
-
VOICE_CATEGORY["BUSINESS"] = "BUSINESS";
|
|
19
|
-
VOICE_CATEGORY["WELLNESS"] = "WELLNESS";
|
|
20
|
-
VOICE_CATEGORY["SPORTS"] = "SPORTS";
|
|
21
|
-
VOICE_CATEGORY["AMBIENCE"] = "AMBIENCE";
|
|
22
|
-
VOICE_CATEGORY["TRAVEL"] = "TRAVEL";
|
|
23
|
-
})(VOICE_CATEGORY || (exports.VOICE_CATEGORY = VOICE_CATEGORY = {}));
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VOICE_GENDER = void 0;
|
|
4
|
-
var VOICE_GENDER;
|
|
5
|
-
(function (VOICE_GENDER) {
|
|
6
|
-
VOICE_GENDER["M"] = "M";
|
|
7
|
-
VOICE_GENDER["F"] = "F";
|
|
8
|
-
})(VOICE_GENDER || (exports.VOICE_GENDER = VOICE_GENDER = {}));
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VOICE_SOURCE = void 0;
|
|
4
|
-
var VOICE_SOURCE;
|
|
5
|
-
(function (VOICE_SOURCE) {
|
|
6
|
-
VOICE_SOURCE["LIBRARY"] = "LIBRARY";
|
|
7
|
-
VOICE_SOURCE["CLONE"] = "CLONE";
|
|
8
|
-
VOICE_SOURCE["DESIGN"] = "DESIGN";
|
|
9
|
-
})(VOICE_SOURCE || (exports.VOICE_SOURCE = VOICE_SOURCE = {}));
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VOICE_STATUS = void 0;
|
|
4
|
-
var VOICE_STATUS;
|
|
5
|
-
(function (VOICE_STATUS) {
|
|
6
|
-
VOICE_STATUS["PENDING"] = "PENDING";
|
|
7
|
-
VOICE_STATUS["READY"] = "READY";
|
|
8
|
-
VOICE_STATUS["FAILED"] = "FAILED";
|
|
9
|
-
})(VOICE_STATUS || (exports.VOICE_STATUS = VOICE_STATUS = {}));
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VOICE_TAG_GROUP = void 0;
|
|
4
|
-
var VOICE_TAG_GROUP;
|
|
5
|
-
(function (VOICE_TAG_GROUP) {
|
|
6
|
-
VOICE_TAG_GROUP["EMOTION"] = "EMOTION";
|
|
7
|
-
VOICE_TAG_GROUP["DELIVERY"] = "DELIVERY";
|
|
8
|
-
VOICE_TAG_GROUP["SOUND"] = "SOUND";
|
|
9
|
-
})(VOICE_TAG_GROUP || (exports.VOICE_TAG_GROUP = VOICE_TAG_GROUP = {}));
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export declare enum VOICE_TAG {
|
|
2
|
-
JOYFUL = "JOYFUL",
|
|
3
|
-
SAD = "SAD",
|
|
4
|
-
ANGRY = "ANGRY",
|
|
5
|
-
SURPRISED = "SURPRISED",
|
|
6
|
-
TENDER = "TENDER",
|
|
7
|
-
IRONIC = "IRONIC",
|
|
8
|
-
CONVERSATIONAL = "CONVERSATIONAL",
|
|
9
|
-
PROFESSIONAL = "PROFESSIONAL",
|
|
10
|
-
WHISPER = "WHISPER",
|
|
11
|
-
LOUDER = "LOUDER",
|
|
12
|
-
QUIETER = "QUIETER",
|
|
13
|
-
FASTER = "FASTER",
|
|
14
|
-
PAUSE = "PAUSE",
|
|
15
|
-
SHORT_PAUSE = "SHORT_PAUSE",
|
|
16
|
-
LAUGH = "LAUGH",
|
|
17
|
-
SIGH = "SIGH",
|
|
18
|
-
COUGH = "COUGH",
|
|
19
|
-
BREATH = "BREATH"
|
|
20
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VOICE_TAG = void 0;
|
|
4
|
-
var VOICE_TAG;
|
|
5
|
-
(function (VOICE_TAG) {
|
|
6
|
-
VOICE_TAG["JOYFUL"] = "JOYFUL";
|
|
7
|
-
VOICE_TAG["SAD"] = "SAD";
|
|
8
|
-
VOICE_TAG["ANGRY"] = "ANGRY";
|
|
9
|
-
VOICE_TAG["SURPRISED"] = "SURPRISED";
|
|
10
|
-
VOICE_TAG["TENDER"] = "TENDER";
|
|
11
|
-
VOICE_TAG["IRONIC"] = "IRONIC";
|
|
12
|
-
VOICE_TAG["CONVERSATIONAL"] = "CONVERSATIONAL";
|
|
13
|
-
VOICE_TAG["PROFESSIONAL"] = "PROFESSIONAL";
|
|
14
|
-
VOICE_TAG["WHISPER"] = "WHISPER";
|
|
15
|
-
VOICE_TAG["LOUDER"] = "LOUDER";
|
|
16
|
-
VOICE_TAG["QUIETER"] = "QUIETER";
|
|
17
|
-
VOICE_TAG["FASTER"] = "FASTER";
|
|
18
|
-
VOICE_TAG["PAUSE"] = "PAUSE";
|
|
19
|
-
VOICE_TAG["SHORT_PAUSE"] = "SHORT_PAUSE";
|
|
20
|
-
VOICE_TAG["LAUGH"] = "LAUGH";
|
|
21
|
-
VOICE_TAG["SIGH"] = "SIGH";
|
|
22
|
-
VOICE_TAG["COUGH"] = "COUGH";
|
|
23
|
-
VOICE_TAG["BREATH"] = "BREATH";
|
|
24
|
-
})(VOICE_TAG || (exports.VOICE_TAG = VOICE_TAG = {}));
|
|
@@ -1,7 +0,0 @@
|
|
|
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>;
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
-
});
|
|
@@ -1,13 +0,0 @@
|
|
|
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>;
|
|
@@ -1,13 +0,0 @@
|
|
|
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
|
-
});
|
|
@@ -1,8 +0,0 @@
|
|
|
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
|
-
});
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { VOICE_GENDER } from '../enums/voice-gender.enum';
|
|
3
|
-
export declare const VoiceGenderSchema: z.ZodObject<{
|
|
4
|
-
id: z.ZodEnum<typeof VOICE_GENDER>;
|
|
5
|
-
label: z.ZodString;
|
|
6
|
-
}, z.core.$strip>;
|
|
7
|
-
export type VoiceGender = z.infer<typeof VoiceGenderSchema>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VoiceGenderSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const voice_gender_enum_1 = require("../enums/voice-gender.enum");
|
|
6
|
-
exports.VoiceGenderSchema = zod_1.z.object({
|
|
7
|
-
id: zod_1.z.nativeEnum(voice_gender_enum_1.VOICE_GENDER),
|
|
8
|
-
label: zod_1.z.string(),
|
|
9
|
-
});
|
|
@@ -1,7 +0,0 @@
|
|
|
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>;
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
-
});
|
|
@@ -1,9 +0,0 @@
|
|
|
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>;
|
|
@@ -1,11 +0,0 @@
|
|
|
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
|
-
});
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { JOB_SCOPE } from '../../common';
|
|
3
|
-
import { VOICE_STATUS } from '../enums/voice-status.enum';
|
|
4
|
-
export declare const VoiceSchema: z.ZodObject<{
|
|
5
|
-
uuid: z.ZodString;
|
|
6
|
-
scope: z.ZodEnum<typeof JOB_SCOPE>;
|
|
7
|
-
source: z.ZodObject<{
|
|
8
|
-
id: z.ZodEnum<typeof import("..").VOICE_SOURCE>;
|
|
9
|
-
label: z.ZodString;
|
|
10
|
-
}, z.core.$strip>;
|
|
11
|
-
title: z.ZodString;
|
|
12
|
-
description: z.ZodString;
|
|
13
|
-
gender: z.ZodNullable<z.ZodObject<{
|
|
14
|
-
id: z.ZodEnum<typeof import("..").VOICE_GENDER>;
|
|
15
|
-
label: z.ZodString;
|
|
16
|
-
}, z.core.$strip>>;
|
|
17
|
-
trait: z.ZodNullable<z.ZodString>;
|
|
18
|
-
ageRange: z.ZodNullable<z.ZodString>;
|
|
19
|
-
categories: z.ZodArray<z.ZodObject<{
|
|
20
|
-
id: z.ZodEnum<typeof import("..").VOICE_CATEGORY>;
|
|
21
|
-
label: z.ZodString;
|
|
22
|
-
}, z.core.$strip>>;
|
|
23
|
-
previewUrl: z.ZodString;
|
|
24
|
-
imageUrl: z.ZodNullable<z.ZodString>;
|
|
25
|
-
status: z.ZodEnum<typeof VOICE_STATUS>;
|
|
26
|
-
error: z.ZodNullable<z.ZodString>;
|
|
27
|
-
order: z.ZodNumber;
|
|
28
|
-
isDeleted: z.ZodBoolean;
|
|
29
|
-
userId: z.ZodNullable<z.ZodString>;
|
|
30
|
-
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
31
|
-
createdAt: z.ZodDate;
|
|
32
|
-
updatedAt: z.ZodDate;
|
|
33
|
-
}, z.core.$strip>;
|
|
34
|
-
export type Voice = z.infer<typeof VoiceSchema>;
|