@purpleschool/gptbot 0.8.54 → 0.8.56
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/api/controllers/http/community.ts +2 -2
- package/build/api/controllers/http/community.js +2 -2
- package/build/models/tools/image-editor/image-editor-job.schema.js +2 -0
- package/build/models/tools/image-generation/image-generation-job.schema.js +1 -0
- package/models/tools/image-editor/image-editor-job.schema.ts +2 -0
- package/models/tools/image-generation/image-generation-job.schema.ts +1 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export const COMMUNITY_CONTROLLER_PRIVATE = 'community/posts
|
|
2
|
-
export const COMMUNITY_CONTROLLER_PUBLIC = 'community/posts
|
|
1
|
+
export const COMMUNITY_CONTROLLER_PRIVATE = 'private/community/posts' as const;
|
|
2
|
+
export const COMMUNITY_CONTROLLER_PUBLIC = 'public/community/posts' as const;
|
|
3
3
|
|
|
4
4
|
export const COMMUNITY_ROUTES_PRIVATE = {
|
|
5
5
|
GET_ALL: '',
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.COMMUNITY_ROUTES_PUBLIC = exports.COMMUNITY_ROUTES_PRIVATE = exports.COMMUNITY_CONTROLLER_PUBLIC = exports.COMMUNITY_CONTROLLER_PRIVATE = void 0;
|
|
4
|
-
exports.COMMUNITY_CONTROLLER_PRIVATE = 'community/posts
|
|
5
|
-
exports.COMMUNITY_CONTROLLER_PUBLIC = 'community/posts
|
|
4
|
+
exports.COMMUNITY_CONTROLLER_PRIVATE = 'private/community/posts';
|
|
5
|
+
exports.COMMUNITY_CONTROLLER_PUBLIC = 'public/community/posts';
|
|
6
6
|
exports.COMMUNITY_ROUTES_PRIVATE = {
|
|
7
7
|
GET_ALL: '',
|
|
8
8
|
GET_MY: 'my',
|
|
@@ -9,11 +9,13 @@ const common_1 = require("../common");
|
|
|
9
9
|
exports.ImageEditorJobParamsSchema = zod_1.z.object({
|
|
10
10
|
attachedFiles: zod_1.z.array(common_1.AttachedToolFileSchema),
|
|
11
11
|
systemPromptId: zod_1.z.string().optional(),
|
|
12
|
+
imageUrls: zod_1.z.string().array().optional(),
|
|
12
13
|
});
|
|
13
14
|
exports.ImageEditorJobSchema = tool_job_schema_1.ToolJobSchema.extend({
|
|
14
15
|
title: zod_1.z.string(),
|
|
15
16
|
prompt: zod_1.z.string(),
|
|
16
17
|
reaction: zod_1.z.nativeEnum(constants_1.USER_REACTION).nullable(),
|
|
18
|
+
imageUrls: zod_1.z.string().array(),
|
|
17
19
|
images: zod_1.z
|
|
18
20
|
.array(file_schema_1.FileSchema.pick({
|
|
19
21
|
uuid: true,
|
|
@@ -23,6 +23,7 @@ exports.ImageGenerationJobSchema = tool_job_schema_1.ToolJobSchema.extend({
|
|
|
23
23
|
prompt: zod_1.z.string(),
|
|
24
24
|
reaction: zod_1.z.nativeEnum(constants_1.USER_REACTION).nullable(),
|
|
25
25
|
presetId: zod_1.z.string().uuid().nullable().optional(),
|
|
26
|
+
output: zod_1.z.array(zod_1.z.string()).nullable(),
|
|
26
27
|
images: zod_1.z
|
|
27
28
|
.array(zod_1.z.object({
|
|
28
29
|
uuid: zod_1.z.string(),
|
|
@@ -7,6 +7,7 @@ import { AttachedToolFileSchema } from '../common';
|
|
|
7
7
|
export const ImageEditorJobParamsSchema = z.object({
|
|
8
8
|
attachedFiles: z.array(AttachedToolFileSchema),
|
|
9
9
|
systemPromptId: z.string().optional(),
|
|
10
|
+
imageUrls: z.string().array().optional(),
|
|
10
11
|
});
|
|
11
12
|
|
|
12
13
|
export type ImageEditorJobParams = z.infer<typeof ImageEditorJobParamsSchema>;
|
|
@@ -15,6 +16,7 @@ export const ImageEditorJobSchema = ToolJobSchema.extend({
|
|
|
15
16
|
title: z.string(),
|
|
16
17
|
prompt: z.string(),
|
|
17
18
|
reaction: z.nativeEnum(USER_REACTION).nullable(),
|
|
19
|
+
imageUrls: z.string().array(),
|
|
18
20
|
images: z
|
|
19
21
|
.array(
|
|
20
22
|
FileSchema.pick({
|
|
@@ -26,6 +26,7 @@ export const ImageGenerationJobSchema = ToolJobSchema.extend({
|
|
|
26
26
|
prompt: z.string(),
|
|
27
27
|
reaction: z.nativeEnum(USER_REACTION).nullable(),
|
|
28
28
|
presetId: z.string().uuid().nullable().optional(),
|
|
29
|
+
output: z.array(z.string()).nullable(),
|
|
29
30
|
images: z
|
|
30
31
|
.array(
|
|
31
32
|
z.object({
|