@purpleschool/gptbot 0.13.33 → 0.13.35
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.
|
@@ -8,10 +8,15 @@ var SendAgentDialogAdminReplyCommand;
|
|
|
8
8
|
dialogId: zod_1.z.string().uuid(),
|
|
9
9
|
});
|
|
10
10
|
SendAgentDialogAdminReplyCommand.RequestQuerySchema = zod_1.z.object({});
|
|
11
|
-
SendAgentDialogAdminReplyCommand.RequestBodySchema = zod_1.z
|
|
11
|
+
SendAgentDialogAdminReplyCommand.RequestBodySchema = zod_1.z
|
|
12
|
+
.object({
|
|
12
13
|
text: zod_1.z.string().optional(),
|
|
13
14
|
images: zod_1.z.array(zod_1.z.string()).default([]),
|
|
14
|
-
|
|
15
|
+
fileIds: zod_1.z.array(zod_1.z.string().uuid()).default([]),
|
|
16
|
+
})
|
|
17
|
+
.refine((data) => data.text || data.images.length > 0 || data.fileIds.length > 0, {
|
|
18
|
+
message: 'Message must contain text, images, or files',
|
|
19
|
+
path: ['text'],
|
|
15
20
|
});
|
|
16
21
|
SendAgentDialogAdminReplyCommand.ResponseSchema = zod_1.z.object({
|
|
17
22
|
data: zod_1.z.object({
|
|
@@ -212,6 +212,7 @@ exports.CanvasNodeBaseSchema = zod_1.z.object({
|
|
|
212
212
|
status: zod_1.z.nativeEnum(constants_1.NODE_RUN_STATUS),
|
|
213
213
|
toolJobId: zod_1.z.string().uuid().nullable(),
|
|
214
214
|
params: zod_1.z.unknown().nullable(),
|
|
215
|
+
isParamsChanged: zod_1.z.boolean().optional(),
|
|
215
216
|
output: zod_1.z.unknown().nullable(),
|
|
216
217
|
error: exports.CanvasNodeErrorSchema.nullable(),
|
|
217
218
|
createdAt: zod_1.z.date(),
|
|
@@ -9,11 +9,16 @@ export namespace SendAgentDialogAdminReplyCommand {
|
|
|
9
9
|
export const RequestQuerySchema = z.object({});
|
|
10
10
|
export type RequestQuery = z.infer<typeof RequestQuerySchema>;
|
|
11
11
|
|
|
12
|
-
export const RequestBodySchema = z
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
export const RequestBodySchema = z
|
|
13
|
+
.object({
|
|
14
|
+
text: z.string().optional(),
|
|
15
|
+
images: z.array(z.string()).default([]),
|
|
16
|
+
fileIds: z.array(z.string().uuid()).default([]),
|
|
17
|
+
})
|
|
18
|
+
.refine((data) => data.text || data.images.length > 0 || data.fileIds.length > 0, {
|
|
19
|
+
message: 'Message must contain text, images, or files',
|
|
20
|
+
path: ['text'],
|
|
21
|
+
});
|
|
17
22
|
export type RequestBody = z.infer<typeof RequestBodySchema>;
|
|
18
23
|
|
|
19
24
|
export const ResponseSchema = z.object({
|
|
@@ -332,6 +332,7 @@ export const CanvasNodeBaseSchema = z.object({
|
|
|
332
332
|
status: z.nativeEnum(NODE_RUN_STATUS),
|
|
333
333
|
toolJobId: z.string().uuid().nullable(),
|
|
334
334
|
params: z.unknown().nullable(),
|
|
335
|
+
isParamsChanged: z.boolean().optional(),
|
|
335
336
|
output: z.unknown().nullable(),
|
|
336
337
|
error: CanvasNodeErrorSchema.nullable(),
|
|
337
338
|
createdAt: z.date(),
|