@purpleschool/gptbot-tools 0.2.61-stage2 → 0.2.62-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.
@@ -24,10 +24,16 @@ export declare namespace CreateVoiceCloneCommand {
24
24
  };
25
25
  title: string;
26
26
  description: string;
27
- gender: VOICE_GENDER | null;
27
+ gender: {
28
+ id: VOICE_GENDER;
29
+ label: string;
30
+ } | null;
28
31
  trait: string | null;
29
32
  ageRange: string | null;
30
- categories: import("..").VOICE_CATEGORY[];
33
+ categories: {
34
+ id: import("..").VOICE_CATEGORY;
35
+ label: string;
36
+ }[];
31
37
  previewUrl: string;
32
38
  imageUrl: string | null;
33
39
  status: import("..").VOICE_STATUS;
@@ -47,10 +53,16 @@ export declare namespace CreateVoiceCloneCommand {
47
53
  };
48
54
  title: string;
49
55
  description: string;
50
- gender: VOICE_GENDER | null;
56
+ gender: {
57
+ id: VOICE_GENDER;
58
+ label: string;
59
+ } | null;
51
60
  trait: string | null;
52
61
  ageRange: string | null;
53
- categories: import("..").VOICE_CATEGORY[];
62
+ categories: {
63
+ id: import("..").VOICE_CATEGORY;
64
+ label: string;
65
+ }[];
54
66
  previewUrl: string;
55
67
  imageUrl: string | null;
56
68
  status: import("..").VOICE_STATUS;
@@ -20,10 +20,16 @@ export declare namespace SelectVoiceDesignCommand {
20
20
  };
21
21
  title: string;
22
22
  description: string;
23
- gender: import("..").VOICE_GENDER | null;
23
+ gender: {
24
+ id: import("..").VOICE_GENDER;
25
+ label: string;
26
+ } | null;
24
27
  trait: string | null;
25
28
  ageRange: string | null;
26
- categories: import("..").VOICE_CATEGORY[];
29
+ categories: {
30
+ id: import("..").VOICE_CATEGORY;
31
+ label: string;
32
+ }[];
27
33
  previewUrl: string;
28
34
  imageUrl: string | null;
29
35
  status: import("..").VOICE_STATUS;
@@ -43,10 +49,16 @@ export declare namespace SelectVoiceDesignCommand {
43
49
  };
44
50
  title: string;
45
51
  description: string;
46
- gender: import("..").VOICE_GENDER | null;
52
+ gender: {
53
+ id: import("..").VOICE_GENDER;
54
+ label: string;
55
+ } | null;
47
56
  trait: string | null;
48
57
  ageRange: string | null;
49
- categories: import("..").VOICE_CATEGORY[];
58
+ categories: {
59
+ id: import("..").VOICE_CATEGORY;
60
+ label: string;
61
+ }[];
50
62
  previewUrl: string;
51
63
  imageUrl: string | null;
52
64
  status: import("..").VOICE_STATUS;
@@ -21,10 +21,16 @@ export declare namespace UpdateVoiceCommand {
21
21
  };
22
22
  title: string;
23
23
  description: string;
24
- gender: import("..").VOICE_GENDER | null;
24
+ gender: {
25
+ id: import("..").VOICE_GENDER;
26
+ label: string;
27
+ } | null;
25
28
  trait: string | null;
26
29
  ageRange: string | null;
27
- categories: import("..").VOICE_CATEGORY[];
30
+ categories: {
31
+ id: import("..").VOICE_CATEGORY;
32
+ label: string;
33
+ }[];
28
34
  previewUrl: string;
29
35
  imageUrl: string | null;
30
36
  status: import("..").VOICE_STATUS;
@@ -44,10 +50,16 @@ export declare namespace UpdateVoiceCommand {
44
50
  };
45
51
  title: string;
46
52
  description: string;
47
- gender: import("..").VOICE_GENDER | null;
53
+ gender: {
54
+ id: import("..").VOICE_GENDER;
55
+ label: string;
56
+ } | null;
48
57
  trait: string | null;
49
58
  ageRange: string | null;
50
- categories: import("..").VOICE_CATEGORY[];
59
+ categories: {
60
+ id: import("..").VOICE_CATEGORY;
61
+ label: string;
62
+ }[];
51
63
  previewUrl: string;
52
64
  imageUrl: string | null;
53
65
  status: import("..").VOICE_STATUS;
@@ -5,6 +5,7 @@ export * from './tts-model.schema';
5
5
  export * from './tts-model-with-vendor.schema';
6
6
  export * from './voice.schema';
7
7
  export * from './voice-source.schema';
8
+ export * from './voice-gender.schema';
8
9
  export * from './voice-tag.schema';
9
10
  export * from './voice-category.schema';
10
11
  export * from './voice-design-sample.schema';
@@ -21,6 +21,7 @@ __exportStar(require("./tts-model.schema"), exports);
21
21
  __exportStar(require("./tts-model-with-vendor.schema"), exports);
22
22
  __exportStar(require("./voice.schema"), exports);
23
23
  __exportStar(require("./voice-source.schema"), exports);
24
+ __exportStar(require("./voice-gender.schema"), exports);
24
25
  __exportStar(require("./voice-tag.schema"), exports);
25
26
  __exportStar(require("./voice-category.schema"), exports);
26
27
  __exportStar(require("./voice-design-sample.schema"), exports);
@@ -0,0 +1,7 @@
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>;
@@ -0,0 +1,9 @@
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,8 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { JOB_SCOPE } from '../../common';
3
3
  import { VOICE_STATUS } from '../enums/voice-status.enum';
4
- import { VOICE_GENDER } from '../enums/voice-gender.enum';
5
- import { VOICE_CATEGORY } from '../enums/voice-category.enum';
6
4
  export declare const VoiceSchema: z.ZodObject<{
7
5
  uuid: z.ZodString;
8
6
  scope: z.ZodEnum<typeof JOB_SCOPE>;
@@ -12,10 +10,16 @@ export declare const VoiceSchema: z.ZodObject<{
12
10
  }, z.core.$strip>;
13
11
  title: z.ZodString;
14
12
  description: z.ZodString;
15
- gender: z.ZodNullable<z.ZodEnum<typeof VOICE_GENDER>>;
13
+ gender: z.ZodNullable<z.ZodObject<{
14
+ id: z.ZodEnum<typeof import("..").VOICE_GENDER>;
15
+ label: z.ZodString;
16
+ }, z.core.$strip>>;
16
17
  trait: z.ZodNullable<z.ZodString>;
17
18
  ageRange: z.ZodNullable<z.ZodString>;
18
- categories: z.ZodArray<z.ZodEnum<typeof VOICE_CATEGORY>>;
19
+ categories: z.ZodArray<z.ZodObject<{
20
+ id: z.ZodEnum<typeof import("..").VOICE_CATEGORY>;
21
+ label: z.ZodString;
22
+ }, z.core.$strip>>;
19
23
  previewUrl: z.ZodString;
20
24
  imageUrl: z.ZodNullable<z.ZodString>;
21
25
  status: z.ZodEnum<typeof VOICE_STATUS>;
@@ -4,19 +4,19 @@ exports.VoiceSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const common_1 = require("../../common");
6
6
  const voice_status_enum_1 = require("../enums/voice-status.enum");
7
- const voice_gender_enum_1 = require("../enums/voice-gender.enum");
8
- const voice_category_enum_1 = require("../enums/voice-category.enum");
9
7
  const voice_source_schema_1 = require("./voice-source.schema");
8
+ const voice_gender_schema_1 = require("./voice-gender.schema");
9
+ const voice_category_schema_1 = require("./voice-category.schema");
10
10
  exports.VoiceSchema = zod_1.z.object({
11
11
  uuid: zod_1.z.string().uuid(),
12
12
  scope: zod_1.z.nativeEnum(common_1.JOB_SCOPE),
13
13
  source: voice_source_schema_1.VoiceSourceSchema,
14
14
  title: zod_1.z.string(),
15
15
  description: zod_1.z.string(),
16
- gender: zod_1.z.nativeEnum(voice_gender_enum_1.VOICE_GENDER).nullable(),
16
+ gender: voice_gender_schema_1.VoiceGenderSchema.nullable(),
17
17
  trait: zod_1.z.string().nullable(),
18
18
  ageRange: zod_1.z.string().nullable(),
19
- categories: zod_1.z.array(zod_1.z.nativeEnum(voice_category_enum_1.VOICE_CATEGORY)),
19
+ categories: zod_1.z.array(voice_category_schema_1.VoiceCategorySchema),
20
20
  previewUrl: zod_1.z.string(),
21
21
  imageUrl: zod_1.z.string().nullable(),
22
22
  status: zod_1.z.nativeEnum(voice_status_enum_1.VOICE_STATUS),
@@ -20,10 +20,16 @@ export declare namespace FindVoiceByIdQuery {
20
20
  };
21
21
  title: string;
22
22
  description: string;
23
- gender: import("..").VOICE_GENDER | null;
23
+ gender: {
24
+ id: import("..").VOICE_GENDER;
25
+ label: string;
26
+ } | null;
24
27
  trait: string | null;
25
28
  ageRange: string | null;
26
- categories: import("..").VOICE_CATEGORY[];
29
+ categories: {
30
+ id: import("..").VOICE_CATEGORY;
31
+ label: string;
32
+ }[];
27
33
  previewUrl: string;
28
34
  imageUrl: string | null;
29
35
  status: import("..").VOICE_STATUS;
@@ -43,10 +49,16 @@ export declare namespace FindVoiceByIdQuery {
43
49
  };
44
50
  title: string;
45
51
  description: string;
46
- gender: import("..").VOICE_GENDER | null;
52
+ gender: {
53
+ id: import("..").VOICE_GENDER;
54
+ label: string;
55
+ } | null;
47
56
  trait: string | null;
48
57
  ageRange: string | null;
49
- categories: import("..").VOICE_CATEGORY[];
58
+ categories: {
59
+ id: import("..").VOICE_CATEGORY;
60
+ label: string;
61
+ }[];
50
62
  previewUrl: string;
51
63
  imageUrl: string | null;
52
64
  status: import("..").VOICE_STATUS;
@@ -28,10 +28,16 @@ export declare namespace FindVoicesQuery {
28
28
  }, z.core.$strip>;
29
29
  title: z.ZodString;
30
30
  description: z.ZodString;
31
- gender: z.ZodNullable<z.ZodEnum<typeof VOICE_GENDER>>;
31
+ gender: z.ZodNullable<z.ZodObject<{
32
+ id: z.ZodEnum<typeof VOICE_GENDER>;
33
+ label: z.ZodString;
34
+ }, z.core.$strip>>;
32
35
  trait: z.ZodNullable<z.ZodString>;
33
36
  ageRange: z.ZodNullable<z.ZodString>;
34
- categories: z.ZodArray<z.ZodEnum<typeof VOICE_CATEGORY>>;
37
+ categories: z.ZodArray<z.ZodObject<{
38
+ id: z.ZodEnum<typeof VOICE_CATEGORY>;
39
+ label: z.ZodString;
40
+ }, z.core.$strip>>;
35
41
  previewUrl: z.ZodString;
36
42
  imageUrl: z.ZodNullable<z.ZodString>;
37
43
  status: z.ZodEnum<typeof import("..").VOICE_STATUS>;
@@ -56,10 +62,16 @@ export declare namespace FindVoicesQuery {
56
62
  };
57
63
  title: string;
58
64
  description: string;
59
- gender: VOICE_GENDER | null;
65
+ gender: {
66
+ id: VOICE_GENDER;
67
+ label: string;
68
+ } | null;
60
69
  trait: string | null;
61
70
  ageRange: string | null;
62
- categories: VOICE_CATEGORY[];
71
+ categories: {
72
+ id: VOICE_CATEGORY;
73
+ label: string;
74
+ }[];
63
75
  previewUrl: string;
64
76
  imageUrl: string | null;
65
77
  status: import("..").VOICE_STATUS;
@@ -81,10 +93,16 @@ export declare namespace FindVoicesQuery {
81
93
  };
82
94
  title: string;
83
95
  description: string;
84
- gender: VOICE_GENDER | null;
96
+ gender: {
97
+ id: VOICE_GENDER;
98
+ label: string;
99
+ } | null;
85
100
  trait: string | null;
86
101
  ageRange: string | null;
87
- categories: VOICE_CATEGORY[];
102
+ categories: {
103
+ id: VOICE_CATEGORY;
104
+ label: string;
105
+ }[];
88
106
  previewUrl: string;
89
107
  imageUrl: string | null;
90
108
  status: import("..").VOICE_STATUS;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot-tools",
3
- "version": "0.2.61-stage2",
3
+ "version": "0.2.62-stage2",
4
4
  "main": "build/index.js",
5
5
  "types": "build/index.d.ts",
6
6
  "files": [