@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.
@@ -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(),
@@ -1,5 +1,6 @@
1
1
  export * from './reasoning-effort.enum';
2
2
  export * from './user-reaction.enum';
3
3
  export * from './tool-model-status.enum';
4
+ export * from './tool-model-tag.enum';
4
5
  export * from './file-type.enum';
5
6
  export * from './job-scope.enum';
@@ -0,0 +1,3 @@
1
+ export enum TOOL_MODEL_TAG {
2
+ RECOMMENDED = 'recommended',
3
+ }
@@ -1,5 +1,10 @@
1
1
  import { z } from 'zod';
2
- import { AttachedFileSchema, IconVariantsSchema, TOOL_MODEL_STATUS } from '../../common';
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot-tools",
3
- "version": "0.2.36-stage",
3
+ "version": "0.2.37-stage",
4
4
  "main": "build/index.js",
5
5
  "types": "build/index.d.ts",
6
6
  "scripts": {
@@ -1,5 +1,10 @@
1
1
  import { z } from 'zod';
2
- import { AttachedFileSchema, TOOL_MODEL_STATUS, IconVariantsSchema } from '../../common';
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(),