@purpleschool/gptbot 0.5.36 → 0.5.38
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/constants/ai-model/enums/ai-model-status.enum.js +8 -0
- package/build/constants/ai-model/enums/index.js +1 -0
- package/build/constants/file/file.constants.js +6 -0
- package/build/constants/file/index.js +1 -0
- package/build/models/ai-model.schema.js +1 -0
- package/constants/ai-model/enums/ai-model-status.enum.ts +4 -0
- package/constants/ai-model/enums/index.ts +1 -0
- package/constants/file/file.constants.ts +5 -0
- package/constants/file/index.ts +1 -0
- package/models/ai-model.schema.ts +7 -1
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AI_MODEL_STATUS = void 0;
|
|
4
|
+
var AI_MODEL_STATUS;
|
|
5
|
+
(function (AI_MODEL_STATUS) {
|
|
6
|
+
AI_MODEL_STATUS["ACTIVE"] = "active";
|
|
7
|
+
AI_MODEL_STATUS["INACTIVE"] = "inactive";
|
|
8
|
+
})(AI_MODEL_STATUS || (exports.AI_MODEL_STATUS = AI_MODEL_STATUS = {}));
|
|
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./ai-model-content-type.enum"), exports);
|
|
18
18
|
__exportStar(require("./ai-model-feature.enum"), exports);
|
|
19
|
+
__exportStar(require("./ai-model-status.enum"), exports);
|
|
19
20
|
__exportStar(require("./ai-model-strategy.enum"), exports);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VALID_MIMETYPES = exports.IMAGE_MIMETYPES = exports.MAX_UPLOAD_SIZE = void 0;
|
|
4
|
+
exports.MAX_UPLOAD_SIZE = 5 * 1024 * 1024; // 5MB
|
|
5
|
+
exports.IMAGE_MIMETYPES = ['image/jpeg', 'image/png', 'image/webp'];
|
|
6
|
+
exports.VALID_MIMETYPES = [...exports.IMAGE_MIMETYPES];
|
|
@@ -13,6 +13,7 @@ exports.AiModelSchema = zod_1.z.object({
|
|
|
13
13
|
order: zod_1.z.number(),
|
|
14
14
|
canUse: zod_1.z.optional(zod_1.z.boolean()),
|
|
15
15
|
icon: zod_1.z.nullable(zod_1.z.string()),
|
|
16
|
+
status: zod_1.z.nativeEnum(constants_1.AI_MODEL_STATUS),
|
|
16
17
|
contentType: zod_1.z.enum(Object.values(constants_1.AI_MODEL_CONTENT_TYPE)),
|
|
17
18
|
features: zod_1.z.array(zod_1.z.nativeEnum(constants_1.AI_MODEL_FEATURE)),
|
|
18
19
|
createdAt: zod_1.z.date(),
|
package/constants/file/index.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
AI_MODEL_CONTENT_TYPE,
|
|
4
|
+
AI_MODEL_FEATURE,
|
|
5
|
+
AI_MODEL_STATUS,
|
|
6
|
+
TAIModelContentTypeEnum,
|
|
7
|
+
} from '../constants';
|
|
3
8
|
|
|
4
9
|
export const AiModelSchema = z.object({
|
|
5
10
|
uuid: z.string().uuid(),
|
|
@@ -11,6 +16,7 @@ export const AiModelSchema = z.object({
|
|
|
11
16
|
order: z.number(),
|
|
12
17
|
canUse: z.optional(z.boolean()),
|
|
13
18
|
icon: z.nullable(z.string()),
|
|
19
|
+
status: z.nativeEnum(AI_MODEL_STATUS),
|
|
14
20
|
contentType: z.enum(Object.values(AI_MODEL_CONTENT_TYPE) as [TAIModelContentTypeEnum]),
|
|
15
21
|
features: z.array(z.nativeEnum(AI_MODEL_FEATURE)),
|
|
16
22
|
createdAt: z.date(),
|