@purpleschool/gptbot 0.7.68 → 0.7.69

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.
@@ -9,7 +9,6 @@ var CreateWriterDocumentCommand;
9
9
  prompt: zod_1.z.string(),
10
10
  numPages: zod_1.z.number(),
11
11
  documentTypeId: zod_1.z.string(),
12
- modelId: zod_1.z.string(),
13
12
  });
14
13
  CreateWriterDocumentCommand.ResponseSchema = zod_1.z.object({
15
14
  data: models_1.WriterDocumentSchema,
@@ -8,6 +8,9 @@ var GenerateWriterDocumentContentsCommand;
8
8
  GenerateWriterDocumentContentsCommand.RequestParamsSchema = zod_1.z.object({
9
9
  uuid: zod_1.z.string().uuid(),
10
10
  });
11
+ GenerateWriterDocumentContentsCommand.RequestBodySchema = zod_1.z.object({
12
+ modelId: zod_1.z.string().uuid(),
13
+ });
11
14
  GenerateWriterDocumentContentsCommand.ResponseSchema = zod_1.z.object({
12
15
  data: models_1.WriterDocumentSchema,
13
16
  });
@@ -15,7 +15,7 @@ exports.WriterDocumentSchema = zod_1.z.object({
15
15
  finalMd: zod_1.z.string().nullable(),
16
16
  userId: zod_1.z.string().nullable(),
17
17
  unregisteredUserId: zod_1.z.string().nullable(),
18
- modelId: zod_1.z.string(),
18
+ modelId: zod_1.z.string().nullable(),
19
19
  reaction: zod_1.z.nativeEnum(constants_1.USER_REACTION).nullable(),
20
20
  pages: zod_1.z.number(),
21
21
  createdAt: zod_1.z.date(),
@@ -6,7 +6,6 @@ export namespace CreateWriterDocumentCommand {
6
6
  prompt: z.string(),
7
7
  numPages: z.number(),
8
8
  documentTypeId: z.string(),
9
- modelId: z.string(),
10
9
  });
11
10
  export type Request = z.infer<typeof RequestSchema>;
12
11
 
@@ -7,6 +7,11 @@ export namespace GenerateWriterDocumentContentsCommand {
7
7
  });
8
8
  export type RequestParams = z.infer<typeof RequestParamsSchema>;
9
9
 
10
+ export const RequestBodySchema = z.object({
11
+ modelId: z.string().uuid(),
12
+ });
13
+ export type RequestBody = z.infer<typeof RequestBodySchema>;
14
+
10
15
  export const ResponseSchema = z.object({
11
16
  data: WriterDocumentSchema,
12
17
  });
@@ -13,7 +13,7 @@ export const WriterDocumentSchema = z.object({
13
13
  finalMd: z.string().nullable(),
14
14
  userId: z.string().nullable(),
15
15
  unregisteredUserId: z.string().nullable(),
16
- modelId: z.string(),
16
+ modelId: z.string().nullable(),
17
17
  reaction: z.nativeEnum(USER_REACTION).nullable(),
18
18
  pages: z.number(),
19
19
  createdAt: z.date(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot",
3
- "version": "0.7.68",
3
+ "version": "0.7.69",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",