@purpleschool/gptbot-tools 0.0.16 → 0.0.18
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/stt/models/stt-model.schema.js +1 -1
- package/build/tts/models/tts-job.schema.js +8 -1
- package/build/tts/models/tts-model.schema.js +1 -1
- package/package.json +1 -1
- package/stt/models/stt-model.schema.ts +1 -1
- package/tts/models/tts-job.schema.ts +9 -0
- package/tts/models/tts-model.schema.ts +1 -1
|
@@ -8,7 +8,7 @@ exports.STTModelSchema = zod_1.z.object({
|
|
|
8
8
|
title: zod_1.z.string(),
|
|
9
9
|
description: zod_1.z.string(),
|
|
10
10
|
aiModel: zod_1.z.string(),
|
|
11
|
-
|
|
11
|
+
pricePerSecond: zod_1.z.number(),
|
|
12
12
|
order: zod_1.z.number(),
|
|
13
13
|
icons: common_1.IconVariantsSchema,
|
|
14
14
|
strategy: zod_1.z.string().optional(),
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TTSJobSchema = void 0;
|
|
3
|
+
exports.TTSJobSchema = exports.TTSJobParamsSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const tools_1 = require("../../tools");
|
|
6
6
|
const common_1 = require("../../common");
|
|
7
|
+
exports.TTSJobParamsSchema = zod_1.z.object({
|
|
8
|
+
speed: zod_1.z.number().optional(),
|
|
9
|
+
similarity: zod_1.z.number().optional(),
|
|
10
|
+
stability: zod_1.z.number().optional(),
|
|
11
|
+
style: zod_1.z.number().optional(),
|
|
12
|
+
});
|
|
7
13
|
exports.TTSJobSchema = zod_1.z.object({
|
|
8
14
|
uuid: zod_1.z.string(),
|
|
9
15
|
userInput: zod_1.z.string(),
|
|
@@ -18,6 +24,7 @@ exports.TTSJobSchema = zod_1.z.object({
|
|
|
18
24
|
userId: zod_1.z.string().nullable(),
|
|
19
25
|
unregisteredUserId: zod_1.z.string().nullable(),
|
|
20
26
|
isDeleted: zod_1.z.boolean(),
|
|
27
|
+
params: exports.TTSJobParamsSchema,
|
|
21
28
|
createdAt: zod_1.z.date(),
|
|
22
29
|
updatedAt: zod_1.z.date(),
|
|
23
30
|
completedAt: zod_1.z.date().nullable(),
|
|
@@ -42,7 +42,7 @@ exports.TTSModelSchema = zod_1.z.object({
|
|
|
42
42
|
title: zod_1.z.string(),
|
|
43
43
|
description: zod_1.z.string(),
|
|
44
44
|
aiModel: zod_1.z.string(),
|
|
45
|
-
|
|
45
|
+
pricePerSymbol: zod_1.z.number(),
|
|
46
46
|
order: zod_1.z.number(),
|
|
47
47
|
icons: common_1.IconVariantsSchema,
|
|
48
48
|
strategy: zod_1.z.string().optional(),
|
package/package.json
CHANGED
|
@@ -2,6 +2,14 @@ import { z } from 'zod';
|
|
|
2
2
|
import { JOB_STATUS } from '../../tools';
|
|
3
3
|
import { USER_REACTION } from '../../common';
|
|
4
4
|
|
|
5
|
+
export const TTSJobParamsSchema = z.object({
|
|
6
|
+
speed: z.number().optional(),
|
|
7
|
+
similarity: z.number().optional(),
|
|
8
|
+
stability: z.number().optional(),
|
|
9
|
+
style: z.number().optional(),
|
|
10
|
+
});
|
|
11
|
+
export type TTSJobParams = z.infer<typeof TTSJobParamsSchema>;
|
|
12
|
+
|
|
5
13
|
export const TTSJobSchema = z.object({
|
|
6
14
|
uuid: z.string(),
|
|
7
15
|
userInput: z.string(),
|
|
@@ -16,6 +24,7 @@ export const TTSJobSchema = z.object({
|
|
|
16
24
|
userId: z.string().nullable(),
|
|
17
25
|
unregisteredUserId: z.string().nullable(),
|
|
18
26
|
isDeleted: z.boolean(),
|
|
27
|
+
params: TTSJobParamsSchema,
|
|
19
28
|
createdAt: z.date(),
|
|
20
29
|
updatedAt: z.date(),
|
|
21
30
|
completedAt: z.date().nullable(),
|
|
@@ -48,7 +48,7 @@ export const TTSModelSchema = z.object({
|
|
|
48
48
|
title: z.string(),
|
|
49
49
|
description: z.string(),
|
|
50
50
|
aiModel: z.string(),
|
|
51
|
-
|
|
51
|
+
pricePerSymbol: z.number(),
|
|
52
52
|
order: z.number(),
|
|
53
53
|
icons: IconVariantsSchema,
|
|
54
54
|
strategy: z.string().optional(),
|