@purpleschool/gptbot 0.5.91 → 0.5.93
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/api/controllers/http/stt.ts +1 -0
- package/build/api/controllers/http/stt.js +1 -0
- package/build/commands/tools/stt/delete-stt-job-by-uuid.command.js +1 -1
- package/build/commands/tools/stt/index.js +1 -0
- package/build/commands/tools/stt/set-reaction-to-stt-job.command.js +1 -1
- package/build/commands/tools/stt/update-stt-job-title.command.js +17 -0
- package/build/commands/tools/tts/delete-tts-job-by-uuid.command.js +1 -1
- package/build/commands/tools/tts/set-reaction-to-tts-job.command.js +1 -1
- package/build/commands/tools/tts/update-tts-job-title.command.js +1 -1
- package/build/models/tools/stt/stt-job.schema.js +2 -0
- package/commands/tools/stt/delete-stt-job-by-uuid.command.ts +1 -1
- package/commands/tools/stt/index.ts +1 -0
- package/commands/tools/stt/set-reaction-to-stt-job.command.ts +1 -1
- package/commands/tools/stt/update-stt-job-title.command.ts +19 -0
- package/commands/tools/tts/delete-tts-job-by-uuid.command.ts +1 -1
- package/commands/tools/tts/set-reaction-to-tts-job.command.ts +1 -1
- package/commands/tools/tts/update-tts-job-title.command.ts +1 -1
- package/models/tools/stt/stt-job.schema.ts +2 -0
- package/package.json +1 -1
|
@@ -7,6 +7,7 @@ export const STT_ROUTES = {
|
|
|
7
7
|
GET_JOBS: 'jobs',
|
|
8
8
|
GET_JOB: (uuid: string) => `jobs/${uuid}`,
|
|
9
9
|
SET_REACTION: (uuid: string) => `jobs/${uuid}/reaction`,
|
|
10
|
+
UPDATE: (uuid: string) => `jobs/${uuid}`,
|
|
10
11
|
DELETE: (uuid: string) => `jobs/${uuid}`,
|
|
11
12
|
DELETE_ALL: 'jobs',
|
|
12
13
|
} as const;
|
|
@@ -5,7 +5,7 @@ const zod_1 = require("zod");
|
|
|
5
5
|
var DeleteSTTJobByUUIDCommand;
|
|
6
6
|
(function (DeleteSTTJobByUUIDCommand) {
|
|
7
7
|
DeleteSTTJobByUUIDCommand.RequestParamsSchema = zod_1.z.object({
|
|
8
|
-
uuid: zod_1.z.string(),
|
|
8
|
+
uuid: zod_1.z.string().uuid(),
|
|
9
9
|
});
|
|
10
10
|
DeleteSTTJobByUUIDCommand.ResponseSchema = zod_1.z.void();
|
|
11
11
|
})(DeleteSTTJobByUUIDCommand || (exports.DeleteSTTJobByUUIDCommand = DeleteSTTJobByUUIDCommand = {}));
|
|
@@ -21,3 +21,4 @@ __exportStar(require("./find-stt-jobs.command"), exports);
|
|
|
21
21
|
__exportStar(require("./get-stt-tool-config.command"), exports);
|
|
22
22
|
__exportStar(require("./set-reaction-to-stt-job.command"), exports);
|
|
23
23
|
__exportStar(require("./stt.command"), exports);
|
|
24
|
+
__exportStar(require("./update-stt-job-title.command"), exports);
|
|
@@ -10,7 +10,7 @@ var SetReactionToSTTJobCommand;
|
|
|
10
10
|
reaction: zod_1.z.nativeEnum(constants_1.USER_REACTION).nullable(),
|
|
11
11
|
});
|
|
12
12
|
SetReactionToSTTJobCommand.RequestParamsSchema = zod_1.z.object({
|
|
13
|
-
uuid: zod_1.z.string(),
|
|
13
|
+
uuid: zod_1.z.string().uuid(),
|
|
14
14
|
});
|
|
15
15
|
SetReactionToSTTJobCommand.ResponseSchema = zod_1.z.object({
|
|
16
16
|
data: models_1.STTJobSchema,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateSTTJobTitleCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var UpdateSTTJobTitleCommand;
|
|
7
|
+
(function (UpdateSTTJobTitleCommand) {
|
|
8
|
+
UpdateSTTJobTitleCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
title: zod_1.z.string().min(1).max(40).trim(),
|
|
10
|
+
});
|
|
11
|
+
UpdateSTTJobTitleCommand.RequestParamsSchema = zod_1.z.object({
|
|
12
|
+
uuid: zod_1.z.string().uuid(),
|
|
13
|
+
});
|
|
14
|
+
UpdateSTTJobTitleCommand.ResponseSchema = zod_1.z.object({
|
|
15
|
+
data: models_1.STTJobSchema,
|
|
16
|
+
});
|
|
17
|
+
})(UpdateSTTJobTitleCommand || (exports.UpdateSTTJobTitleCommand = UpdateSTTJobTitleCommand = {}));
|
|
@@ -5,7 +5,7 @@ const zod_1 = require("zod");
|
|
|
5
5
|
var DeleteTTSJobByUUIDCommand;
|
|
6
6
|
(function (DeleteTTSJobByUUIDCommand) {
|
|
7
7
|
DeleteTTSJobByUUIDCommand.RequestParamsSchema = zod_1.z.object({
|
|
8
|
-
uuid: zod_1.z.string(),
|
|
8
|
+
uuid: zod_1.z.string().uuid(),
|
|
9
9
|
});
|
|
10
10
|
DeleteTTSJobByUUIDCommand.ResponseSchema = zod_1.z.void();
|
|
11
11
|
})(DeleteTTSJobByUUIDCommand || (exports.DeleteTTSJobByUUIDCommand = DeleteTTSJobByUUIDCommand = {}));
|
|
@@ -10,7 +10,7 @@ var SetReactionToTTSJobCommand;
|
|
|
10
10
|
reaction: zod_1.z.nativeEnum(constants_1.USER_REACTION).nullable(),
|
|
11
11
|
});
|
|
12
12
|
SetReactionToTTSJobCommand.RequestParamsSchema = zod_1.z.object({
|
|
13
|
-
uuid: zod_1.z.string(),
|
|
13
|
+
uuid: zod_1.z.string().uuid(),
|
|
14
14
|
});
|
|
15
15
|
SetReactionToTTSJobCommand.ResponseSchema = zod_1.z.object({
|
|
16
16
|
data: models_1.TTSJobSchema,
|
|
@@ -9,7 +9,7 @@ var UpdateTTSJobTitleCommand;
|
|
|
9
9
|
title: zod_1.z.string().min(1).max(40).trim(),
|
|
10
10
|
});
|
|
11
11
|
UpdateTTSJobTitleCommand.RequestParamsSchema = zod_1.z.object({
|
|
12
|
-
uuid: zod_1.z.string(),
|
|
12
|
+
uuid: zod_1.z.string().uuid(),
|
|
13
13
|
});
|
|
14
14
|
UpdateTTSJobTitleCommand.ResponseSchema = zod_1.z.object({
|
|
15
15
|
data: models_1.TTSJobSchema,
|
|
@@ -10,5 +10,7 @@ exports.STTJobSchema = tool_job_schema_1.ToolJobSchema.extend({
|
|
|
10
10
|
title: zod_1.z.string(),
|
|
11
11
|
reaction: zod_1.z.nativeEnum(constants_1.USER_REACTION).nullable(),
|
|
12
12
|
fileUrl: zod_1.z.string(),
|
|
13
|
+
fileId: zod_1.z.string(),
|
|
14
|
+
fileKey: zod_1.z.string(),
|
|
13
15
|
aiResponse: stt_response_schema_1.STTResponseSchema.nullable(),
|
|
14
16
|
});
|
|
@@ -9,7 +9,7 @@ export namespace SetReactionToSTTJobCommand {
|
|
|
9
9
|
export type Request = z.infer<typeof RequestSchema>;
|
|
10
10
|
|
|
11
11
|
export const RequestParamsSchema = z.object({
|
|
12
|
-
uuid: z.string(),
|
|
12
|
+
uuid: z.string().uuid(),
|
|
13
13
|
});
|
|
14
14
|
export type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
15
15
|
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { STTJobSchema } from '../../../models';
|
|
3
|
+
|
|
4
|
+
export namespace UpdateSTTJobTitleCommand {
|
|
5
|
+
export const RequestSchema = z.object({
|
|
6
|
+
title: z.string().min(1).max(40).trim(),
|
|
7
|
+
});
|
|
8
|
+
export type Request = z.infer<typeof RequestSchema>;
|
|
9
|
+
|
|
10
|
+
export const RequestParamsSchema = z.object({
|
|
11
|
+
uuid: z.string().uuid(),
|
|
12
|
+
});
|
|
13
|
+
export type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
14
|
+
|
|
15
|
+
export const ResponseSchema = z.object({
|
|
16
|
+
data: STTJobSchema,
|
|
17
|
+
});
|
|
18
|
+
export type Response = z.infer<typeof ResponseSchema>;
|
|
19
|
+
}
|
|
@@ -9,7 +9,7 @@ export namespace SetReactionToTTSJobCommand {
|
|
|
9
9
|
export type Request = z.infer<typeof RequestSchema>;
|
|
10
10
|
|
|
11
11
|
export const RequestParamsSchema = z.object({
|
|
12
|
-
uuid: z.string(),
|
|
12
|
+
uuid: z.string().uuid(),
|
|
13
13
|
});
|
|
14
14
|
export type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
15
15
|
|
|
@@ -8,7 +8,7 @@ export namespace UpdateTTSJobTitleCommand {
|
|
|
8
8
|
export type Request = z.infer<typeof RequestSchema>;
|
|
9
9
|
|
|
10
10
|
export const RequestParamsSchema = z.object({
|
|
11
|
-
uuid: z.string(),
|
|
11
|
+
uuid: z.string().uuid(),
|
|
12
12
|
});
|
|
13
13
|
export type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
14
14
|
|