@purpleschool/gptbot 0.5.76 → 0.5.78
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.
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ArchiveAllCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const constants_1 = require("../../constants");
|
|
5
6
|
var ArchiveAllCommand;
|
|
6
7
|
(function (ArchiveAllCommand) {
|
|
8
|
+
ArchiveAllCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
type: zod_1.z.nativeEnum(constants_1.AI_MODEL_CONTENT_TYPE),
|
|
10
|
+
});
|
|
7
11
|
ArchiveAllCommand.ResponseSchema = zod_1.z.void();
|
|
8
12
|
})(ArchiveAllCommand || (exports.ArchiveAllCommand = ArchiveAllCommand = {}));
|
|
@@ -11,5 +11,7 @@ exports.SUPPORTED_FILES = new Map([
|
|
|
11
11
|
['audio/mp3', { type: enums_1.FILE_TYPE.AUDIO, size: exports.MAX_AUDIO_UPLOAD_SIZE }],
|
|
12
12
|
['audio/mpeg', { type: enums_1.FILE_TYPE.AUDIO, size: exports.MAX_AUDIO_UPLOAD_SIZE }],
|
|
13
13
|
['audio/wave', { type: enums_1.FILE_TYPE.AUDIO, size: exports.MAX_AUDIO_UPLOAD_SIZE }],
|
|
14
|
+
['audio/wav', { type: enums_1.FILE_TYPE.AUDIO, size: exports.MAX_AUDIO_UPLOAD_SIZE }],
|
|
15
|
+
['audio/x-wav', { type: enums_1.FILE_TYPE.AUDIO, size: exports.MAX_AUDIO_UPLOAD_SIZE }],
|
|
14
16
|
]);
|
|
15
17
|
exports.DELETE_UNUSED_FILES_AFTER_HOURS = 12;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { AI_MODEL_CONTENT_TYPE } from '../../constants';
|
|
2
3
|
|
|
3
4
|
export namespace ArchiveAllCommand {
|
|
5
|
+
export const RequestSchema = z.object({
|
|
6
|
+
type: z.nativeEnum(AI_MODEL_CONTENT_TYPE),
|
|
7
|
+
});
|
|
8
|
+
|
|
4
9
|
export const ResponseSchema = z.void();
|
|
5
10
|
export type Response = z.infer<typeof ResponseSchema>;
|
|
6
11
|
}
|
|
@@ -16,6 +16,8 @@ export const SUPPORTED_FILES = new Map<
|
|
|
16
16
|
['audio/mp3', { type: FILE_TYPE.AUDIO, size: MAX_AUDIO_UPLOAD_SIZE }],
|
|
17
17
|
['audio/mpeg', { type: FILE_TYPE.AUDIO, size: MAX_AUDIO_UPLOAD_SIZE }],
|
|
18
18
|
['audio/wave', { type: FILE_TYPE.AUDIO, size: MAX_AUDIO_UPLOAD_SIZE }],
|
|
19
|
+
['audio/wav', { type: FILE_TYPE.AUDIO, size: MAX_AUDIO_UPLOAD_SIZE }],
|
|
20
|
+
['audio/x-wav', { type: FILE_TYPE.AUDIO, size: MAX_AUDIO_UPLOAD_SIZE }],
|
|
19
21
|
]);
|
|
20
22
|
|
|
21
23
|
export const DELETE_UNUSED_FILES_AFTER_HOURS = 12;
|