@purpleschool/gptbot-tools 0.0.41-texteditor → 0.0.43-texteditor
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-status.enum.js +8 -0
- package/build/image-editor/models/image-editor-model.schema.js +1 -0
- package/build/stt/models/stt-model.schema.js +1 -0
- package/build/tts/models/tts-model.schema.js +1 -0
- package/build/video/models/video-model.schema.js +1 -0
- package/common/enums/index.ts +1 -0
- package/common/enums/tool-model-status.enum.ts +4 -0
- package/image-editor/models/image-editor-model.schema.ts +2 -1
- package/package.json +2 -2
- package/stt/models/stt-model.schema.ts +2 -1
- package/tts/models/tts-model.schema.ts +2 -1
- package/video/models/video-model.schema.ts +2 -1
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./reasoning-effort.enum"), exports);
|
|
18
18
|
__exportStar(require("./user-reaction.enum"), exports);
|
|
19
|
+
__exportStar(require("./tool-model-status.enum"), exports);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TOOL_MODEL_STATUS = void 0;
|
|
4
|
+
var TOOL_MODEL_STATUS;
|
|
5
|
+
(function (TOOL_MODEL_STATUS) {
|
|
6
|
+
TOOL_MODEL_STATUS["ACTIVE"] = "active";
|
|
7
|
+
TOOL_MODEL_STATUS["INACTIVE"] = "inactive";
|
|
8
|
+
})(TOOL_MODEL_STATUS || (exports.TOOL_MODEL_STATUS = TOOL_MODEL_STATUS = {}));
|
|
@@ -18,6 +18,7 @@ exports.ImageEditorModelSchema = zod_1.z.object({
|
|
|
18
18
|
aiModel: zod_1.z.string(),
|
|
19
19
|
pricePerImage: zod_1.z.number(),
|
|
20
20
|
order: zod_1.z.number(),
|
|
21
|
+
status: zod_1.z.nativeEnum(common_1.TOOL_MODEL_STATUS),
|
|
21
22
|
icons: common_1.IconVariantsSchema,
|
|
22
23
|
strategy: zod_1.z.nativeEnum(enums_1.IMAGE_EDITING_STRATEGY),
|
|
23
24
|
maxInputLength: zod_1.z.number(),
|
|
@@ -10,6 +10,7 @@ exports.STTModelSchema = zod_1.z.object({
|
|
|
10
10
|
aiModel: zod_1.z.string(),
|
|
11
11
|
pricePerSecond: zod_1.z.number(),
|
|
12
12
|
order: zod_1.z.number(),
|
|
13
|
+
status: zod_1.z.nativeEnum(common_1.TOOL_MODEL_STATUS),
|
|
13
14
|
icons: common_1.IconVariantsSchema,
|
|
14
15
|
strategy: zod_1.z.string().optional(),
|
|
15
16
|
maxDurationSeconds: zod_1.z.number(),
|
|
@@ -44,6 +44,7 @@ exports.TTSModelSchema = zod_1.z.object({
|
|
|
44
44
|
aiModel: zod_1.z.string(),
|
|
45
45
|
pricePerSymbol: zod_1.z.number(),
|
|
46
46
|
order: zod_1.z.number(),
|
|
47
|
+
status: zod_1.z.nativeEnum(common_1.TOOL_MODEL_STATUS),
|
|
47
48
|
icons: common_1.IconVariantsSchema,
|
|
48
49
|
strategy: zod_1.z.string().optional(),
|
|
49
50
|
maxInputLength: zod_1.z.number(),
|
|
@@ -40,6 +40,7 @@ exports.VideoModelSchema = zod_1.z.object({
|
|
|
40
40
|
aiModel: zod_1.z.string(),
|
|
41
41
|
pricePerSecond: zod_1.z.number(),
|
|
42
42
|
order: zod_1.z.number(),
|
|
43
|
+
status: zod_1.z.nativeEnum(common_1.TOOL_MODEL_STATUS),
|
|
43
44
|
icons: common_1.IconVariantsSchema,
|
|
44
45
|
strategy: zod_1.z.nativeEnum(enums_1.VIDEO_GENERATION_STRATEGY),
|
|
45
46
|
maxInputLength: zod_1.z.number(),
|
package/common/enums/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { IconVariantsSchema } from '../../common';
|
|
2
|
+
import { TOOL_MODEL_STATUS, IconVariantsSchema } from '../../common';
|
|
3
3
|
import { IMAGE_EDITING_STRATEGY } from '../enums';
|
|
4
4
|
|
|
5
5
|
export const ImageEditorModelParamsSchema = z.object({
|
|
@@ -19,6 +19,7 @@ export const ImageEditorModelSchema = z.object({
|
|
|
19
19
|
aiModel: z.string(),
|
|
20
20
|
pricePerImage: z.number(),
|
|
21
21
|
order: z.number(),
|
|
22
|
+
status: z.nativeEnum(TOOL_MODEL_STATUS),
|
|
22
23
|
icons: IconVariantsSchema,
|
|
23
24
|
strategy: z.nativeEnum(IMAGE_EDITING_STRATEGY),
|
|
24
25
|
maxInputLength: z.number(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@purpleschool/gptbot-tools",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.43-texteditor",
|
|
4
4
|
"main": "build/index.js",
|
|
5
5
|
"types": "build/index.d.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -12,6 +12,6 @@
|
|
|
12
12
|
"license": "ISC",
|
|
13
13
|
"description": "",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"zod": "^3.
|
|
15
|
+
"zod": "^3.25.67"
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { IconVariantsSchema } from '../../common';
|
|
2
|
+
import { TOOL_MODEL_STATUS, IconVariantsSchema } from '../../common';
|
|
3
3
|
|
|
4
4
|
export const STTModelSchema = z.object({
|
|
5
5
|
uuid: z.string(),
|
|
@@ -8,6 +8,7 @@ export const STTModelSchema = z.object({
|
|
|
8
8
|
aiModel: z.string(),
|
|
9
9
|
pricePerSecond: z.number(),
|
|
10
10
|
order: z.number(),
|
|
11
|
+
status: z.nativeEnum(TOOL_MODEL_STATUS),
|
|
11
12
|
icons: IconVariantsSchema,
|
|
12
13
|
strategy: z.string().optional(),
|
|
13
14
|
maxDurationSeconds: z.number(),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IconVariantsSchema } from '../../common';
|
|
1
|
+
import { TOOL_MODEL_STATUS, IconVariantsSchema } from '../../common';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
export const TTSVoiceSchema = z.object({
|
|
@@ -50,6 +50,7 @@ export const TTSModelSchema = z.object({
|
|
|
50
50
|
aiModel: z.string(),
|
|
51
51
|
pricePerSymbol: z.number(),
|
|
52
52
|
order: z.number(),
|
|
53
|
+
status: z.nativeEnum(TOOL_MODEL_STATUS),
|
|
53
54
|
icons: IconVariantsSchema,
|
|
54
55
|
strategy: z.string().optional(),
|
|
55
56
|
maxInputLength: z.number(),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { IconVariantsSchema } from '../../common';
|
|
2
|
+
import { TOOL_MODEL_STATUS, IconVariantsSchema } from '../../common';
|
|
3
3
|
import { VIDEO_GENERATION_STRATEGY, VIDEO_PRICING_RULE_TYPE } from '../enums';
|
|
4
4
|
|
|
5
5
|
export const VideoModelParamsSchema = z.object({
|
|
@@ -49,6 +49,7 @@ export const VideoModelSchema = z.object({
|
|
|
49
49
|
aiModel: z.string(),
|
|
50
50
|
pricePerSecond: z.number(),
|
|
51
51
|
order: z.number(),
|
|
52
|
+
status: z.nativeEnum(TOOL_MODEL_STATUS),
|
|
52
53
|
icons: IconVariantsSchema,
|
|
53
54
|
strategy: z.nativeEnum(VIDEO_GENERATION_STRATEGY),
|
|
54
55
|
maxInputLength: z.number(),
|