@purpleschool/gptbot-tools 0.0.85 → 0.0.87
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/paraphrase/models/paraphrase-job.schema.js +2 -0
- package/build/stt/models/stt-job.schema.js +1 -0
- package/build/tts/models/tts-job.schema.js +1 -0
- package/build/video-editor/commands/edit-video.command.js +1 -0
- package/build/video-editor/models/video-editor-job.schema.js +2 -0
- package/package.json +1 -1
- package/paraphrase/models/paraphrase-job.schema.ts +2 -0
- package/stt/models/stt-job.schema.ts +1 -0
- package/tts/models/tts-job.schema.ts +1 -0
- package/video-editor/commands/edit-video.command.ts +1 -0
- package/video-editor/models/video-editor-job.schema.ts +2 -0
|
@@ -4,6 +4,7 @@ exports.ParaphraseJobSchema = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const tools_1 = require("../../tools");
|
|
6
6
|
const common_1 = require("../../common");
|
|
7
|
+
const enums_1 = require("../enums");
|
|
7
8
|
exports.ParaphraseJobSchema = zod_1.z.object({
|
|
8
9
|
uuid: zod_1.z.string(),
|
|
9
10
|
userId: zod_1.z.string().nullable(),
|
|
@@ -18,6 +19,7 @@ exports.ParaphraseJobSchema = zod_1.z.object({
|
|
|
18
19
|
reaction: zod_1.z.nativeEnum(common_1.USER_REACTION).nullable(),
|
|
19
20
|
typeId: zod_1.z.string(),
|
|
20
21
|
styleId: zod_1.z.string(),
|
|
22
|
+
intensity: zod_1.z.nativeEnum(enums_1.PARAPHRASING_INTENSITY),
|
|
21
23
|
createdAt: zod_1.z.date(),
|
|
22
24
|
updatedAt: zod_1.z.date(),
|
|
23
25
|
completedAt: zod_1.z.date().nullable(),
|
|
@@ -15,6 +15,7 @@ exports.STTJobSchema = zod_1.z.object({
|
|
|
15
15
|
aiResponse: stt_response_schema_1.STTResponseSchema.nullable(),
|
|
16
16
|
reaction: zod_1.z.nativeEnum(common_1.USER_REACTION).nullable(),
|
|
17
17
|
status: zod_1.z.nativeEnum(tools_1.JOB_STATUS),
|
|
18
|
+
duration: zod_1.z.number(),
|
|
18
19
|
error: zod_1.z.string().nullable(),
|
|
19
20
|
userId: zod_1.z.string().nullable(),
|
|
20
21
|
unregisteredUserId: zod_1.z.string().nullable(),
|
|
@@ -21,6 +21,7 @@ exports.TTSJobSchema = zod_1.z.object({
|
|
|
21
21
|
modelId: zod_1.z.string(),
|
|
22
22
|
voiceId: zod_1.z.string(),
|
|
23
23
|
price: zod_1.z.number(),
|
|
24
|
+
duration: zod_1.z.number(),
|
|
24
25
|
userId: zod_1.z.string().nullable(),
|
|
25
26
|
unregisteredUserId: zod_1.z.string().nullable(),
|
|
26
27
|
isDeleted: zod_1.z.boolean(),
|
|
@@ -10,6 +10,7 @@ var EditVideoCommand;
|
|
|
10
10
|
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
11
11
|
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
12
12
|
prompt: zod_1.z.string(),
|
|
13
|
+
inputVideoId: zod_1.z.string(),
|
|
13
14
|
inputVideoUrl: zod_1.z.string(),
|
|
14
15
|
duration: zod_1.z.number(),
|
|
15
16
|
userBalance: zod_1.z.number(),
|
|
@@ -15,7 +15,9 @@ exports.VideoEditorJobSchema = zod_1.z.object({
|
|
|
15
15
|
externalId: zod_1.z.string().nullable(),
|
|
16
16
|
modelId: zod_1.z.string(),
|
|
17
17
|
inputVideoUrl: zod_1.z.string(),
|
|
18
|
+
inputVideoId: zod_1.z.string().nullable(),
|
|
18
19
|
outputVideoUrl: zod_1.z.string().nullable(),
|
|
20
|
+
outputVideoId: zod_1.z.string().nullable(),
|
|
19
21
|
duration: zod_1.z.number(),
|
|
20
22
|
attempts: zod_1.z.array(zod_1.z.any()),
|
|
21
23
|
userId: zod_1.z.string().nullable().optional(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { JOB_STATUS } from '../../tools';
|
|
3
3
|
import { USER_REACTION } from '../../common';
|
|
4
|
+
import { PARAPHRASING_INTENSITY } from '../enums';
|
|
4
5
|
|
|
5
6
|
export const ParaphraseJobSchema = z.object({
|
|
6
7
|
uuid: z.string(),
|
|
@@ -16,6 +17,7 @@ export const ParaphraseJobSchema = z.object({
|
|
|
16
17
|
reaction: z.nativeEnum(USER_REACTION).nullable(),
|
|
17
18
|
typeId: z.string(),
|
|
18
19
|
styleId: z.string(),
|
|
20
|
+
intensity: z.nativeEnum(PARAPHRASING_INTENSITY),
|
|
19
21
|
createdAt: z.date(),
|
|
20
22
|
updatedAt: z.date(),
|
|
21
23
|
completedAt: z.date().nullable(),
|
|
@@ -13,6 +13,7 @@ export const STTJobSchema = z.object({
|
|
|
13
13
|
aiResponse: STTResponseSchema.nullable(),
|
|
14
14
|
reaction: z.nativeEnum(USER_REACTION).nullable(),
|
|
15
15
|
status: z.nativeEnum(JOB_STATUS),
|
|
16
|
+
duration: z.number(),
|
|
16
17
|
error: z.string().nullable(),
|
|
17
18
|
userId: z.string().nullable(),
|
|
18
19
|
unregisteredUserId: z.string().nullable(),
|
|
@@ -7,6 +7,7 @@ export namespace EditVideoCommand {
|
|
|
7
7
|
userId: z.string().uuid().nullable().optional(),
|
|
8
8
|
unregisteredUserId: z.string().uuid().nullable().optional(),
|
|
9
9
|
prompt: z.string(),
|
|
10
|
+
inputVideoId: z.string(),
|
|
10
11
|
inputVideoUrl: z.string(),
|
|
11
12
|
duration: z.number(),
|
|
12
13
|
userBalance: z.number(),
|
|
@@ -13,7 +13,9 @@ export const VideoEditorJobSchema = z.object({
|
|
|
13
13
|
externalId: z.string().nullable(),
|
|
14
14
|
modelId: z.string(),
|
|
15
15
|
inputVideoUrl: z.string(),
|
|
16
|
+
inputVideoId: z.string().nullable(),
|
|
16
17
|
outputVideoUrl: z.string().nullable(),
|
|
18
|
+
outputVideoId: z.string().nullable(),
|
|
17
19
|
duration: z.number(),
|
|
18
20
|
attempts: z.array(z.any()),
|
|
19
21
|
userId: z.string().nullable().optional(),
|