@purpleschool/gptbot 0.7.99 → 0.8.1

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.
@@ -12,6 +12,7 @@ const FormattedModelSchema = zod_1.z.object({
12
12
  order: zod_1.z.number(),
13
13
  icons: icon_variants_schema_1.IconVariantsSchema,
14
14
  pageAlias: zod_1.z.string().nullable().optional(),
15
+ toolId: zod_1.z.string().uuid().nullable().optional(),
15
16
  isToolModel: zod_1.z.boolean(),
16
17
  });
17
18
  var FindFormattedAIModelV2Command;
@@ -8,4 +8,5 @@ var PageType;
8
8
  PageType["OTHER"] = "other";
9
9
  PageType["BOT"] = "bot";
10
10
  PageType["TOOL"] = "tool";
11
+ PageType["TOOL_MODEL"] = "tool_model";
11
12
  })(PageType || (exports.PageType = PageType = {}));
@@ -16,7 +16,7 @@ exports.PageSchema = zod_1.z.object({
16
16
  toolId: zod_1.z.string().uuid().nullable().optional(),
17
17
  toolOptionId: zod_1.z.string().uuid().nullable().optional(),
18
18
  toolModelId: zod_1.z.string().uuid().nullable().optional(),
19
- toolTitle: zod_1.z.string().nullable(),
19
+ toolTitle: zod_1.z.string().optional().nullable(),
20
20
  type: zod_1.z.nativeEnum(constants_1.PageType),
21
21
  createdAt: zod_1.z.date(),
22
22
  updatedAt: zod_1.z.date(),
@@ -10,6 +10,7 @@ const FormattedModelSchema = z.object({
10
10
  order: z.number(),
11
11
  icons: IconVariantsSchema,
12
12
  pageAlias: z.string().nullable().optional(),
13
+ toolId: z.string().uuid().nullable().optional(),
13
14
  isToolModel: z.boolean(),
14
15
  });
15
16
 
@@ -4,4 +4,5 @@ export enum PageType {
4
4
  OTHER = 'other',
5
5
  BOT = 'bot',
6
6
  TOOL = 'tool',
7
+ TOOL_MODEL = 'tool_model',
7
8
  }
@@ -14,7 +14,7 @@ export const PageSchema = z.object({
14
14
  toolId: z.string().uuid().nullable().optional(),
15
15
  toolOptionId: z.string().uuid().nullable().optional(),
16
16
  toolModelId: z.string().uuid().nullable().optional(),
17
- toolTitle: z.string().nullable(),
17
+ toolTitle: z.string().optional().nullable(),
18
18
  type: z.nativeEnum(PageType),
19
19
 
20
20
  createdAt: z.date(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot",
3
- "version": "0.7.99",
3
+ "version": "0.8.1",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",