@purpleschool/gptbot-tools 0.2.59-stage2 → 0.2.60-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/tts/commands/create-voice-clone.command.d.ts +4 -0
- package/build/tts/commands/create-voice-clone.command.js +1 -0
- package/build/tts/commands/create-voice-design.command.d.ts +2 -0
- package/build/tts/commands/create-voice-design.command.js +1 -0
- package/build/tts/commands/delete-voice.command.d.ts +2 -0
- package/build/tts/commands/delete-voice.command.js +1 -0
- package/build/tts/commands/select-voice-design.command.d.ts +4 -0
- package/build/tts/commands/select-voice-design.command.js +1 -0
- package/build/tts/commands/update-voice.command.d.ts +4 -0
- package/build/tts/commands/update-voice.command.js +1 -0
- package/build/tts/enums/voice-category.enum.d.ts +6 -1
- package/build/tts/enums/voice-category.enum.js +5 -0
- package/build/tts/models/voice.schema.d.ts +2 -0
- package/build/tts/models/voice.schema.js +2 -0
- package/build/tts/queries/find-voice-by-id.query.d.ts +4 -0
- package/build/tts/queries/find-voice-by-id.query.js +1 -0
- package/build/tts/queries/find-voices.query.d.ts +6 -1
- package/build/tts/queries/find-voices.query.js +2 -1
- package/package.json +1 -1
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { JOB_SCOPE } from '../../common';
|
|
2
3
|
import { VOICE_GENDER } from '../enums/voice-gender.enum';
|
|
3
4
|
export declare namespace CreateVoiceCloneCommand {
|
|
4
5
|
const RequestSchema: z.ZodObject<{
|
|
5
6
|
userId: z.ZodString;
|
|
6
7
|
locale: z.ZodOptional<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
|
|
8
|
+
scope: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof JOB_SCOPE>>>;
|
|
7
9
|
title: z.ZodString;
|
|
8
10
|
gender: z.ZodOptional<z.ZodEnum<typeof VOICE_GENDER>>;
|
|
9
11
|
fileUrl: z.ZodString;
|
|
@@ -14,6 +16,7 @@ export declare namespace CreateVoiceCloneCommand {
|
|
|
14
16
|
isSuccess: z.ZodBoolean;
|
|
15
17
|
data: z.ZodOptional<z.ZodType<{
|
|
16
18
|
uuid: string;
|
|
19
|
+
scope: JOB_SCOPE;
|
|
17
20
|
source: import("..").VOICE_SOURCE;
|
|
18
21
|
title: string;
|
|
19
22
|
description: string;
|
|
@@ -32,6 +35,7 @@ export declare namespace CreateVoiceCloneCommand {
|
|
|
32
35
|
updatedAt: Date;
|
|
33
36
|
}, unknown, z.core.$ZodTypeInternals<{
|
|
34
37
|
uuid: string;
|
|
38
|
+
scope: JOB_SCOPE;
|
|
35
39
|
source: import("..").VOICE_SOURCE;
|
|
36
40
|
title: string;
|
|
37
41
|
description: string;
|
|
@@ -10,6 +10,7 @@ var CreateVoiceCloneCommand;
|
|
|
10
10
|
CreateVoiceCloneCommand.RequestSchema = zod_1.z.object({
|
|
11
11
|
userId: zod_1.z.string().uuid(),
|
|
12
12
|
locale: common_1.LocaleSchema.optional(),
|
|
13
|
+
scope: zod_1.z.nativeEnum(common_1.JOB_SCOPE).optional().default(common_1.JOB_SCOPE.TOOL),
|
|
13
14
|
title: zod_1.z.string(),
|
|
14
15
|
gender: zod_1.z.nativeEnum(voice_gender_enum_1.VOICE_GENDER).optional(),
|
|
15
16
|
fileUrl: zod_1.z.string().url(),
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { JOB_SCOPE } from '../../common';
|
|
2
3
|
import { VOICE_GENDER } from '../enums/voice-gender.enum';
|
|
3
4
|
export declare namespace CreateVoiceDesignCommand {
|
|
4
5
|
const RequestSchema: z.ZodObject<{
|
|
5
6
|
userId: z.ZodString;
|
|
6
7
|
locale: z.ZodOptional<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
|
|
8
|
+
scope: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof JOB_SCOPE>>>;
|
|
7
9
|
title: z.ZodString;
|
|
8
10
|
gender: z.ZodEnum<typeof VOICE_GENDER>;
|
|
9
11
|
instruction: z.ZodString;
|
|
@@ -10,6 +10,7 @@ var CreateVoiceDesignCommand;
|
|
|
10
10
|
CreateVoiceDesignCommand.RequestSchema = zod_1.z.object({
|
|
11
11
|
userId: zod_1.z.string().uuid(),
|
|
12
12
|
locale: common_1.LocaleSchema.optional(),
|
|
13
|
+
scope: zod_1.z.nativeEnum(common_1.JOB_SCOPE).optional().default(common_1.JOB_SCOPE.TOOL),
|
|
13
14
|
title: zod_1.z.string(),
|
|
14
15
|
gender: zod_1.z.nativeEnum(voice_gender_enum_1.VOICE_GENDER),
|
|
15
16
|
instruction: zod_1.z.string().min(1),
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { JOB_SCOPE } from '../../common';
|
|
2
3
|
export declare namespace DeleteVoiceCommand {
|
|
3
4
|
const RequestSchema: z.ZodObject<{
|
|
4
5
|
uuid: z.ZodString;
|
|
5
6
|
userId: z.ZodString;
|
|
7
|
+
scope: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof JOB_SCOPE>>>;
|
|
6
8
|
}, z.core.$strip>;
|
|
7
9
|
type Request = z.infer<typeof RequestSchema>;
|
|
8
10
|
const ResponseSchema: z.ZodObject<{
|
|
@@ -8,6 +8,7 @@ var DeleteVoiceCommand;
|
|
|
8
8
|
DeleteVoiceCommand.RequestSchema = zod_1.z.object({
|
|
9
9
|
uuid: zod_1.z.string().uuid(),
|
|
10
10
|
userId: zod_1.z.string().uuid(),
|
|
11
|
+
scope: zod_1.z.nativeEnum(common_1.JOB_SCOPE).optional().default(common_1.JOB_SCOPE.TOOL),
|
|
11
12
|
});
|
|
12
13
|
DeleteVoiceCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(zod_1.z.boolean());
|
|
13
14
|
})(DeleteVoiceCommand || (exports.DeleteVoiceCommand = DeleteVoiceCommand = {}));
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { JOB_SCOPE } from '../../common';
|
|
2
3
|
export declare namespace SelectVoiceDesignCommand {
|
|
3
4
|
const RequestSchema: z.ZodObject<{
|
|
4
5
|
designId: z.ZodString;
|
|
5
6
|
sampleId: z.ZodString;
|
|
6
7
|
userId: z.ZodString;
|
|
7
8
|
locale: z.ZodOptional<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
|
|
9
|
+
scope: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof JOB_SCOPE>>>;
|
|
8
10
|
}, z.core.$strip>;
|
|
9
11
|
type Request = z.infer<typeof RequestSchema>;
|
|
10
12
|
const ResponseSchema: z.ZodObject<{
|
|
11
13
|
isSuccess: z.ZodBoolean;
|
|
12
14
|
data: z.ZodOptional<z.ZodType<{
|
|
13
15
|
uuid: string;
|
|
16
|
+
scope: JOB_SCOPE;
|
|
14
17
|
source: import("..").VOICE_SOURCE;
|
|
15
18
|
title: string;
|
|
16
19
|
description: string;
|
|
@@ -29,6 +32,7 @@ export declare namespace SelectVoiceDesignCommand {
|
|
|
29
32
|
updatedAt: Date;
|
|
30
33
|
}, unknown, z.core.$ZodTypeInternals<{
|
|
31
34
|
uuid: string;
|
|
35
|
+
scope: JOB_SCOPE;
|
|
32
36
|
source: import("..").VOICE_SOURCE;
|
|
33
37
|
title: string;
|
|
34
38
|
description: string;
|
|
@@ -11,6 +11,7 @@ var SelectVoiceDesignCommand;
|
|
|
11
11
|
sampleId: zod_1.z.string().uuid(),
|
|
12
12
|
userId: zod_1.z.string().uuid(),
|
|
13
13
|
locale: common_1.LocaleSchema.optional(),
|
|
14
|
+
scope: zod_1.z.nativeEnum(common_1.JOB_SCOPE).optional().default(common_1.JOB_SCOPE.TOOL),
|
|
14
15
|
});
|
|
15
16
|
SelectVoiceDesignCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.VoiceSchema);
|
|
16
17
|
})(SelectVoiceDesignCommand || (exports.SelectVoiceDesignCommand = SelectVoiceDesignCommand = {}));
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { JOB_SCOPE } from '../../common';
|
|
2
3
|
export declare namespace UpdateVoiceCommand {
|
|
3
4
|
const RequestSchema: z.ZodObject<{
|
|
4
5
|
uuid: z.ZodString;
|
|
5
6
|
userId: z.ZodString;
|
|
6
7
|
locale: z.ZodOptional<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
|
|
7
8
|
title: z.ZodString;
|
|
9
|
+
scope: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof JOB_SCOPE>>>;
|
|
8
10
|
}, z.core.$strip>;
|
|
9
11
|
type Request = z.infer<typeof RequestSchema>;
|
|
10
12
|
const ResponseSchema: z.ZodObject<{
|
|
11
13
|
isSuccess: z.ZodBoolean;
|
|
12
14
|
data: z.ZodOptional<z.ZodType<{
|
|
13
15
|
uuid: string;
|
|
16
|
+
scope: JOB_SCOPE;
|
|
14
17
|
source: import("..").VOICE_SOURCE;
|
|
15
18
|
title: string;
|
|
16
19
|
description: string;
|
|
@@ -29,6 +32,7 @@ export declare namespace UpdateVoiceCommand {
|
|
|
29
32
|
updatedAt: Date;
|
|
30
33
|
}, unknown, z.core.$ZodTypeInternals<{
|
|
31
34
|
uuid: string;
|
|
35
|
+
scope: JOB_SCOPE;
|
|
32
36
|
source: import("..").VOICE_SOURCE;
|
|
33
37
|
title: string;
|
|
34
38
|
description: string;
|
|
@@ -11,6 +11,7 @@ var UpdateVoiceCommand;
|
|
|
11
11
|
userId: zod_1.z.string().uuid(),
|
|
12
12
|
locale: common_1.LocaleSchema.optional(),
|
|
13
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),
|
|
14
15
|
});
|
|
15
16
|
UpdateVoiceCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.VoiceSchema);
|
|
16
17
|
})(UpdateVoiceCommand || (exports.UpdateVoiceCommand = UpdateVoiceCommand = {}));
|
|
@@ -10,5 +10,10 @@ export declare enum VOICE_CATEGORY {
|
|
|
10
10
|
FAIRY_TALES = "FAIRY_TALES",
|
|
11
11
|
HORROR = "HORROR",
|
|
12
12
|
WHISPER = "WHISPER",
|
|
13
|
-
ROMANCE = "ROMANCE"
|
|
13
|
+
ROMANCE = "ROMANCE",
|
|
14
|
+
BUSINESS = "BUSINESS",
|
|
15
|
+
WELLNESS = "WELLNESS",
|
|
16
|
+
SPORTS = "SPORTS",
|
|
17
|
+
AMBIENCE = "AMBIENCE",
|
|
18
|
+
TRAVEL = "TRAVEL"
|
|
14
19
|
}
|
|
@@ -15,4 +15,9 @@ var VOICE_CATEGORY;
|
|
|
15
15
|
VOICE_CATEGORY["HORROR"] = "HORROR";
|
|
16
16
|
VOICE_CATEGORY["WHISPER"] = "WHISPER";
|
|
17
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";
|
|
18
23
|
})(VOICE_CATEGORY || (exports.VOICE_CATEGORY = VOICE_CATEGORY = {}));
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { JOB_SCOPE } from '../../common';
|
|
2
3
|
import { VOICE_SOURCE } from '../enums/voice-source.enum';
|
|
3
4
|
import { VOICE_STATUS } from '../enums/voice-status.enum';
|
|
4
5
|
import { VOICE_GENDER } from '../enums/voice-gender.enum';
|
|
5
6
|
import { VOICE_CATEGORY } from '../enums/voice-category.enum';
|
|
6
7
|
export declare const VoiceSchema: z.ZodObject<{
|
|
7
8
|
uuid: z.ZodString;
|
|
9
|
+
scope: z.ZodEnum<typeof JOB_SCOPE>;
|
|
8
10
|
source: z.ZodEnum<typeof VOICE_SOURCE>;
|
|
9
11
|
title: z.ZodString;
|
|
10
12
|
description: z.ZodString;
|
|
@@ -2,12 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VoiceSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const common_1 = require("../../common");
|
|
5
6
|
const voice_source_enum_1 = require("../enums/voice-source.enum");
|
|
6
7
|
const voice_status_enum_1 = require("../enums/voice-status.enum");
|
|
7
8
|
const voice_gender_enum_1 = require("../enums/voice-gender.enum");
|
|
8
9
|
const voice_category_enum_1 = require("../enums/voice-category.enum");
|
|
9
10
|
exports.VoiceSchema = zod_1.z.object({
|
|
10
11
|
uuid: zod_1.z.string().uuid(),
|
|
12
|
+
scope: zod_1.z.nativeEnum(common_1.JOB_SCOPE),
|
|
11
13
|
source: zod_1.z.nativeEnum(voice_source_enum_1.VOICE_SOURCE),
|
|
12
14
|
title: zod_1.z.string(),
|
|
13
15
|
description: zod_1.z.string(),
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { JOB_SCOPE } from '../../common';
|
|
2
3
|
export declare namespace FindVoiceByIdQuery {
|
|
3
4
|
const RequestSchema: z.ZodObject<{
|
|
4
5
|
uuid: z.ZodString;
|
|
5
6
|
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
7
|
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
8
|
locale: z.ZodOptional<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
|
|
9
|
+
scope: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof JOB_SCOPE>>>;
|
|
8
10
|
}, z.core.$strip>;
|
|
9
11
|
type Request = z.infer<typeof RequestSchema>;
|
|
10
12
|
const ResponseSchema: z.ZodObject<{
|
|
11
13
|
isSuccess: z.ZodBoolean;
|
|
12
14
|
data: z.ZodOptional<z.ZodType<{
|
|
13
15
|
uuid: string;
|
|
16
|
+
scope: JOB_SCOPE;
|
|
14
17
|
source: import("..").VOICE_SOURCE;
|
|
15
18
|
title: string;
|
|
16
19
|
description: string;
|
|
@@ -29,6 +32,7 @@ export declare namespace FindVoiceByIdQuery {
|
|
|
29
32
|
updatedAt: Date;
|
|
30
33
|
}, unknown, z.core.$ZodTypeInternals<{
|
|
31
34
|
uuid: string;
|
|
35
|
+
scope: JOB_SCOPE;
|
|
32
36
|
source: import("..").VOICE_SOURCE;
|
|
33
37
|
title: string;
|
|
34
38
|
description: string;
|
|
@@ -11,6 +11,7 @@ var FindVoiceByIdQuery;
|
|
|
11
11
|
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
12
12
|
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
13
13
|
locale: common_1.LocaleSchema.optional(),
|
|
14
|
+
scope: zod_1.z.nativeEnum(common_1.JOB_SCOPE).optional().default(common_1.JOB_SCOPE.TOOL),
|
|
14
15
|
});
|
|
15
16
|
FindVoiceByIdQuery.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.VoiceSchema);
|
|
16
17
|
})(FindVoiceByIdQuery || (exports.FindVoiceByIdQuery = FindVoiceByIdQuery = {}));
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { JOB_SCOPE } from '../../common';
|
|
2
3
|
import { VOICE_CATEGORY } from '../enums/voice-category.enum';
|
|
3
4
|
import { VOICE_GENDER } from '../enums/voice-gender.enum';
|
|
4
5
|
export declare namespace FindVoicesQuery {
|
|
@@ -6,7 +7,8 @@ export declare namespace FindVoicesQuery {
|
|
|
6
7
|
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
8
|
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
9
|
locale: z.ZodOptional<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
|
|
9
|
-
scope: z.ZodDefault<z.ZodEnum<
|
|
10
|
+
scope: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof JOB_SCOPE>>>;
|
|
11
|
+
ownership: z.ZodDefault<z.ZodEnum<{
|
|
10
12
|
all: "all";
|
|
11
13
|
library: "library";
|
|
12
14
|
mine: "mine";
|
|
@@ -19,6 +21,7 @@ export declare namespace FindVoicesQuery {
|
|
|
19
21
|
const ResponseDataSchema: z.ZodObject<{
|
|
20
22
|
items: z.ZodArray<z.ZodObject<{
|
|
21
23
|
uuid: z.ZodString;
|
|
24
|
+
scope: z.ZodEnum<typeof JOB_SCOPE>;
|
|
22
25
|
source: z.ZodEnum<typeof import("..").VOICE_SOURCE>;
|
|
23
26
|
title: z.ZodString;
|
|
24
27
|
description: z.ZodString;
|
|
@@ -42,6 +45,7 @@ export declare namespace FindVoicesQuery {
|
|
|
42
45
|
data: z.ZodOptional<z.ZodType<{
|
|
43
46
|
items: {
|
|
44
47
|
uuid: string;
|
|
48
|
+
scope: JOB_SCOPE;
|
|
45
49
|
source: import("..").VOICE_SOURCE;
|
|
46
50
|
title: string;
|
|
47
51
|
description: string;
|
|
@@ -62,6 +66,7 @@ export declare namespace FindVoicesQuery {
|
|
|
62
66
|
}, unknown, z.core.$ZodTypeInternals<{
|
|
63
67
|
items: {
|
|
64
68
|
uuid: string;
|
|
69
|
+
scope: JOB_SCOPE;
|
|
65
70
|
source: import("..").VOICE_SOURCE;
|
|
66
71
|
title: string;
|
|
67
72
|
description: string;
|
|
@@ -12,7 +12,8 @@ var FindVoicesQuery;
|
|
|
12
12
|
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
13
13
|
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
14
14
|
locale: common_1.LocaleSchema.optional(),
|
|
15
|
-
scope: zod_1.z.
|
|
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'),
|
|
16
17
|
category: zod_1.z.nativeEnum(voice_category_enum_1.VOICE_CATEGORY).optional(),
|
|
17
18
|
gender: zod_1.z.nativeEnum(voice_gender_enum_1.VOICE_GENDER).optional(),
|
|
18
19
|
query: zod_1.z.string().optional(),
|