@purpleschool/gptbot-tools 0.0.59 → 0.0.60

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,7 +12,6 @@ var CreateWriterDocumentCommand;
12
12
  prompt: zod_1.z.string(),
13
13
  numPages: zod_1.z.number(),
14
14
  documentTypeId: zod_1.z.string().uuid(),
15
- modelId: zod_1.z.string().uuid(),
16
15
  });
17
16
  CreateWriterDocumentCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.WriterDocumentSchema);
18
17
  })(CreateWriterDocumentCommand || (exports.CreateWriterDocumentCommand = CreateWriterDocumentCommand = {}));
@@ -11,6 +11,7 @@ var GenerateWriterDocumentContentsCommand;
11
11
  userId: zod_1.z.string().uuid().nullable().optional(),
12
12
  unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
13
13
  userBalance: zod_1.z.number(),
14
+ modelId: zod_1.z.string(),
14
15
  });
15
16
  GenerateWriterDocumentContentsCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.WriterDocumentSchema);
16
17
  })(GenerateWriterDocumentContentsCommand || (exports.GenerateWriterDocumentContentsCommand = GenerateWriterDocumentContentsCommand = {}));
@@ -16,7 +16,7 @@ exports.WriterDocumentSchema = zod_1.z.object({
16
16
  finalMd: zod_1.z.string().nullable(),
17
17
  userId: zod_1.z.string().nullable(),
18
18
  unregisteredUserId: zod_1.z.string().nullable(),
19
- modelId: zod_1.z.string(),
19
+ modelId: zod_1.z.string().nullable(),
20
20
  reaction: zod_1.z.nativeEnum(common_1.USER_REACTION).nullable(),
21
21
  pages: zod_1.z.number(),
22
22
  isDeleted: zod_1.z.boolean(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot-tools",
3
- "version": "0.0.59",
3
+ "version": "0.0.60",
4
4
  "main": "build/index.js",
5
5
  "types": "build/index.d.ts",
6
6
  "scripts": {
@@ -9,7 +9,6 @@ export namespace CreateWriterDocumentCommand {
9
9
  prompt: z.string(),
10
10
  numPages: z.number(),
11
11
  documentTypeId: z.string().uuid(),
12
- modelId: z.string().uuid(),
13
12
  });
14
13
  export type Request = z.infer<typeof RequestSchema>;
15
14
 
@@ -8,6 +8,7 @@ export namespace GenerateWriterDocumentContentsCommand {
8
8
  userId: z.string().uuid().nullable().optional(),
9
9
  unregisteredUserId: z.string().uuid().nullable().optional(),
10
10
  userBalance: z.number(),
11
+ modelId: z.string(),
11
12
  });
12
13
  export type Request = z.infer<typeof RequestSchema>;
13
14
 
@@ -14,7 +14,7 @@ export const WriterDocumentSchema = z.object({
14
14
  finalMd: z.string().nullable(),
15
15
  userId: z.string().nullable(),
16
16
  unregisteredUserId: z.string().nullable(),
17
- modelId: z.string(),
17
+ modelId: z.string().nullable(),
18
18
  reaction: z.nativeEnum(USER_REACTION).nullable(),
19
19
  pages: z.number(),
20
20
  isDeleted: z.boolean(),