@purpleschool/gptbot-tools 0.2.36-stage → 0.2.37-stage
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/common/enums/index.js +1 -0
- package/build/common/enums/tool-model-tag.enum.js +7 -0
- package/build/image-generation/models/image-generation-model.schema.js +2 -0
- package/build/video/models/video-model.schema.js +2 -0
- package/common/enums/index.ts +1 -0
- package/common/enums/tool-model-tag.enum.ts +3 -0
- package/image-generation/models/image-generation-model.schema.ts +8 -1
- package/package.json +1 -1
- package/video/models/video-model.schema.ts +8 -1
|
@@ -17,5 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./reasoning-effort.enum"), exports);
|
|
18
18
|
__exportStar(require("./user-reaction.enum"), exports);
|
|
19
19
|
__exportStar(require("./tool-model-status.enum"), exports);
|
|
20
|
+
__exportStar(require("./tool-model-tag.enum"), exports);
|
|
20
21
|
__exportStar(require("./file-type.enum"), exports);
|
|
21
22
|
__exportStar(require("./job-scope.enum"), exports);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TOOL_MODEL_TAG = void 0;
|
|
4
|
+
var TOOL_MODEL_TAG;
|
|
5
|
+
(function (TOOL_MODEL_TAG) {
|
|
6
|
+
TOOL_MODEL_TAG["RECOMMENDED"] = "recommended";
|
|
7
|
+
})(TOOL_MODEL_TAG || (exports.TOOL_MODEL_TAG = TOOL_MODEL_TAG = {}));
|
|
@@ -34,6 +34,8 @@ exports.ImageModelPricingRulesSchema = zod_1.z.array(zod_1.z.object({
|
|
|
34
34
|
exports.ImageGenerationModelSchema = zod_1.z.object({
|
|
35
35
|
uuid: zod_1.z.string(),
|
|
36
36
|
title: zod_1.z.string(),
|
|
37
|
+
tags: zod_1.z.array(zod_1.z.nativeEnum(common_1.TOOL_MODEL_TAG)),
|
|
38
|
+
hint: zod_1.z.string().nullable(),
|
|
37
39
|
description: zod_1.z.string(),
|
|
38
40
|
aiModel: zod_1.z.string(),
|
|
39
41
|
isNew: zod_1.z.boolean(),
|
|
@@ -86,6 +86,8 @@ exports.VideoModelPricingRulesSchema = zod_1.z.array(zod_1.z.object({
|
|
|
86
86
|
exports.VideoModelSchema = zod_1.z.object({
|
|
87
87
|
uuid: zod_1.z.string(),
|
|
88
88
|
title: zod_1.z.string(),
|
|
89
|
+
tags: zod_1.z.array(zod_1.z.nativeEnum(common_1.TOOL_MODEL_TAG)),
|
|
90
|
+
hint: zod_1.z.string().nullable(),
|
|
89
91
|
description: zod_1.z.string(),
|
|
90
92
|
aiModel: zod_1.z.string(),
|
|
91
93
|
pricePerSecond: zod_1.z.number(),
|
package/common/enums/index.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
AttachedFileSchema,
|
|
4
|
+
IconVariantsSchema,
|
|
5
|
+
TOOL_MODEL_STATUS,
|
|
6
|
+
TOOL_MODEL_TAG,
|
|
7
|
+
} from '../../common';
|
|
3
8
|
import { IMAGE_GENERATION_MODEL_STRATEGY, IMAGE_GENERATION_RESOLUTION } from '../enums';
|
|
4
9
|
|
|
5
10
|
export const ImageGenerationRequestParamsSchema = z.object({
|
|
@@ -45,6 +50,8 @@ export type ImageModelPricingRules = z.infer<typeof ImageModelPricingRulesSchema
|
|
|
45
50
|
export const ImageGenerationModelSchema = z.object({
|
|
46
51
|
uuid: z.string(),
|
|
47
52
|
title: z.string(),
|
|
53
|
+
tags: z.array(z.nativeEnum(TOOL_MODEL_TAG)),
|
|
54
|
+
hint: z.string().nullable(),
|
|
48
55
|
description: z.string(),
|
|
49
56
|
aiModel: z.string(),
|
|
50
57
|
isNew: z.boolean(),
|
package/package.json
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
AttachedFileSchema,
|
|
4
|
+
TOOL_MODEL_STATUS,
|
|
5
|
+
TOOL_MODEL_TAG,
|
|
6
|
+
IconVariantsSchema,
|
|
7
|
+
} from '../../common';
|
|
3
8
|
import {
|
|
4
9
|
VIDEO_GENERATION_MODEL_LIMITATION,
|
|
5
10
|
VIDEO_GENERATION_STRATEGY,
|
|
@@ -99,6 +104,8 @@ export type VideoModelPricingRules = z.infer<typeof VideoModelPricingRulesSchema
|
|
|
99
104
|
export const VideoModelSchema = z.object({
|
|
100
105
|
uuid: z.string(),
|
|
101
106
|
title: z.string(),
|
|
107
|
+
tags: z.array(z.nativeEnum(TOOL_MODEL_TAG)),
|
|
108
|
+
hint: z.string().nullable(),
|
|
102
109
|
description: z.string(),
|
|
103
110
|
aiModel: z.string(),
|
|
104
111
|
pricePerSecond: z.number(),
|