@purpleschool/gptbot-tools 0.2.34-stage → 0.2.35-stage
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/build/html-page-builder/commands/update-html-page-builder-session-title.command.js +1 -2
- package/build/video/models/video-job.schema.js +2 -0
- package/build/video/models/video-model.schema.js +8 -0
- package/html-page-builder/commands/update-html-page-builder-session-title.command.ts +6 -7
- package/package.json +1 -1
- package/tools/enums/index.ts +1 -1
- package/tools/enums/job-sort.enum.ts +2 -2
- package/video/models/video-job.schema.ts +2 -0
- package/video/models/video-model.schema.ts +8 -0
|
@@ -6,8 +6,7 @@ const common_1 = require("../../common");
|
|
|
6
6
|
const models_1 = require("../models");
|
|
7
7
|
var UpdateHtmlPageBuilderSessionTitleCommand;
|
|
8
8
|
(function (UpdateHtmlPageBuilderSessionTitleCommand) {
|
|
9
|
-
UpdateHtmlPageBuilderSessionTitleCommand.RequestSchema = zod_1.z
|
|
10
|
-
.object({
|
|
9
|
+
UpdateHtmlPageBuilderSessionTitleCommand.RequestSchema = zod_1.z.object({
|
|
11
10
|
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
12
11
|
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
13
12
|
uuid: zod_1.z.string().uuid(),
|
|
@@ -8,6 +8,8 @@ const enums_1 = require("../enums");
|
|
|
8
8
|
exports.VideoJobParamsSchema = zod_1.z.object({
|
|
9
9
|
imageUrls: zod_1.z.string().array().optional(),
|
|
10
10
|
imageIds: zod_1.z.array(zod_1.z.string()).optional(),
|
|
11
|
+
referenceImages: zod_1.z.string().array().optional(),
|
|
12
|
+
referenceImageIds: zod_1.z.array(zod_1.z.string()).optional(),
|
|
11
13
|
firstFrameUrl: zod_1.z.string().optional(),
|
|
12
14
|
lastFrameUrl: zod_1.z.string().optional(),
|
|
13
15
|
firstFrameId: zod_1.z.string().optional(),
|
|
@@ -9,6 +9,12 @@ exports.VideoModelParamsSchema = zod_1.z.object({
|
|
|
9
9
|
supported: zod_1.z.boolean(),
|
|
10
10
|
maxImages: zod_1.z.number(),
|
|
11
11
|
}),
|
|
12
|
+
referenceImageAttachment: zod_1.z
|
|
13
|
+
.object({
|
|
14
|
+
supported: zod_1.z.boolean(),
|
|
15
|
+
maxImages: zod_1.z.number(),
|
|
16
|
+
})
|
|
17
|
+
.optional(),
|
|
12
18
|
duration: zod_1.z.object({
|
|
13
19
|
options: zod_1.z.array(zod_1.z.number()),
|
|
14
20
|
}),
|
|
@@ -44,6 +50,8 @@ exports.VideoGenerationRequestParamsSchema = zod_1.z.object({
|
|
|
44
50
|
attachedFiles: zod_1.z.array(common_1.AttachedFileSchema).optional(),
|
|
45
51
|
imageUrls: zod_1.z.string().array().optional(),
|
|
46
52
|
imageIds: zod_1.z.array(zod_1.z.string()).optional(),
|
|
53
|
+
referenceImages: zod_1.z.string().array().optional(),
|
|
54
|
+
referenceImageIds: zod_1.z.array(zod_1.z.string()).optional(),
|
|
47
55
|
firstFrameUrl: zod_1.z.string().optional(),
|
|
48
56
|
lastFrameUrl: zod_1.z.string().optional(),
|
|
49
57
|
firstFrameId: zod_1.z.string().optional(),
|
|
@@ -3,13 +3,12 @@ import { ICommandResponseSchema } from '../../common';
|
|
|
3
3
|
import { HtmlPageBuilderSessionSchema } from '../models';
|
|
4
4
|
|
|
5
5
|
export namespace UpdateHtmlPageBuilderSessionTitleCommand {
|
|
6
|
-
export const RequestSchema = z
|
|
7
|
-
.
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
});
|
|
6
|
+
export const RequestSchema = z.object({
|
|
7
|
+
userId: z.string().uuid().nullable().optional(),
|
|
8
|
+
unregisteredUserId: z.string().uuid().nullable().optional(),
|
|
9
|
+
uuid: z.string().uuid(),
|
|
10
|
+
title: z.string(),
|
|
11
|
+
});
|
|
13
12
|
export type Request = z.infer<typeof RequestSchema>;
|
|
14
13
|
|
|
15
14
|
export const ResponseSchema = ICommandResponseSchema(HtmlPageBuilderSessionSchema);
|
package/package.json
CHANGED
package/tools/enums/index.ts
CHANGED
|
@@ -6,6 +6,8 @@ import { VIDEO_PUBLISH_MODERATION_STATUS } from '../enums';
|
|
|
6
6
|
export const VideoJobParamsSchema = z.object({
|
|
7
7
|
imageUrls: z.string().array().optional(),
|
|
8
8
|
imageIds: z.array(z.string()).optional(),
|
|
9
|
+
referenceImages: z.string().array().optional(),
|
|
10
|
+
referenceImageIds: z.array(z.string()).optional(),
|
|
9
11
|
firstFrameUrl: z.string().optional(),
|
|
10
12
|
lastFrameUrl: z.string().optional(),
|
|
11
13
|
firstFrameId: z.string().optional(),
|
|
@@ -11,6 +11,12 @@ export const VideoModelParamsSchema = z.object({
|
|
|
11
11
|
supported: z.boolean(),
|
|
12
12
|
maxImages: z.number(),
|
|
13
13
|
}),
|
|
14
|
+
referenceImageAttachment: z
|
|
15
|
+
.object({
|
|
16
|
+
supported: z.boolean(),
|
|
17
|
+
maxImages: z.number(),
|
|
18
|
+
})
|
|
19
|
+
.optional(),
|
|
14
20
|
duration: z.object({
|
|
15
21
|
options: z.array(z.number()),
|
|
16
22
|
}),
|
|
@@ -49,6 +55,8 @@ export const VideoGenerationRequestParamsSchema = z.object({
|
|
|
49
55
|
attachedFiles: z.array(AttachedFileSchema).optional(),
|
|
50
56
|
imageUrls: z.string().array().optional(),
|
|
51
57
|
imageIds: z.array(z.string()).optional(),
|
|
58
|
+
referenceImages: z.string().array().optional(),
|
|
59
|
+
referenceImageIds: z.array(z.string()).optional(),
|
|
52
60
|
firstFrameUrl: z.string().optional(),
|
|
53
61
|
lastFrameUrl: z.string().optional(),
|
|
54
62
|
firstFrameId: z.string().optional(),
|