@purpleschool/gptbot 0.13.28 → 0.13.29

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,4 +12,5 @@ var INPUT_OUTPUT_TYPE;
12
12
  INPUT_OUTPUT_TYPE["var"] = "var";
13
13
  INPUT_OUTPUT_TYPE["firstFrame"] = "firstFrame";
14
14
  INPUT_OUTPUT_TYPE["lastFrame"] = "lastFrame";
15
+ INPUT_OUTPUT_TYPE["referenceImage"] = "referenceImage";
15
16
  })(INPUT_OUTPUT_TYPE || (exports.INPUT_OUTPUT_TYPE = INPUT_OUTPUT_TYPE = {}));
@@ -39,6 +39,7 @@ exports.VideoGenParamsSchema = strictObject({
39
39
  duration: zod_1.z.string(),
40
40
  aspectRatio: zod_1.z.string().optional(),
41
41
  resolution: zod_1.z.string().optional(),
42
+ referenceImages: zod_1.z.string().uuid().array().optional(),
42
43
  });
43
44
  exports.AudioGenParamsSchema = zod_1.z.discriminatedUnion('mode', [
44
45
  strictObject({
@@ -7,6 +7,8 @@ const tool_job_schema_1 = require("../../tool-job.schema");
7
7
  exports.VideoJobParamsSchema = zod_1.z.object({
8
8
  imageUrls: zod_1.z.string().array().optional(),
9
9
  imageIds: zod_1.z.array(zod_1.z.string()).optional(),
10
+ referenceImages: zod_1.z.array(zod_1.z.string()).optional(),
11
+ referenceImageIds: zod_1.z.array(zod_1.z.string()).optional(),
10
12
  firstFrameUrl: zod_1.z.string().optional(),
11
13
  lastFrameUrl: zod_1.z.string().optional(),
12
14
  firstFrameId: zod_1.z.string().optional(),
@@ -11,6 +11,12 @@ exports.VideoModelParamsSchema = zod_1.z.object({
11
11
  supported: zod_1.z.boolean(),
12
12
  maxImages: zod_1.z.number(),
13
13
  }),
14
+ referenceImageAttachment: zod_1.z
15
+ .object({
16
+ supported: zod_1.z.boolean(),
17
+ maxImages: zod_1.z.number(),
18
+ })
19
+ .optional(),
14
20
  duration: zod_1.z.object({
15
21
  options: zod_1.z.array(zod_1.z.number()),
16
22
  }),
@@ -44,6 +50,7 @@ exports.VideoModelParamsSchema = zod_1.z.object({
44
50
  });
45
51
  exports.VideoGenerationRequestParamsSchema = zod_1.z.object({
46
52
  imageUrls: zod_1.z.string().array().optional(),
53
+ referenceImages: zod_1.z.string().uuid().array().optional(),
47
54
  firstFrameImageId: zod_1.z.string().uuid().optional(),
48
55
  lastFrameImageId: zod_1.z.string().uuid().optional(),
49
56
  duration: zod_1.z.number(),
@@ -8,4 +8,5 @@ export enum INPUT_OUTPUT_TYPE {
8
8
  var = 'var',
9
9
  firstFrame = 'firstFrame',
10
10
  lastFrame = 'lastFrame',
11
+ referenceImage = 'referenceImage',
11
12
  }
@@ -47,6 +47,7 @@ export const VideoGenParamsSchema = strictObject({
47
47
  duration: z.string(),
48
48
  aspectRatio: z.string().optional(),
49
49
  resolution: z.string().optional(),
50
+ referenceImages: z.string().uuid().array().optional(),
50
51
  });
51
52
  export type VideoGenParams = z.infer<typeof VideoGenParamsSchema>;
52
53
 
@@ -5,6 +5,8 @@ import { ToolJobSchema } from '../../tool-job.schema';
5
5
  export const VideoJobParamsSchema = z.object({
6
6
  imageUrls: z.string().array().optional(),
7
7
  imageIds: z.array(z.string()).optional(),
8
+ referenceImages: z.array(z.string()).optional(),
9
+ referenceImageIds: z.array(z.string()).optional(),
8
10
  firstFrameUrl: z.string().optional(),
9
11
  lastFrameUrl: z.string().optional(),
10
12
  firstFrameId: z.string().optional(),
@@ -9,6 +9,12 @@ export const VideoModelParamsSchema = z.object({
9
9
  supported: z.boolean(),
10
10
  maxImages: z.number(),
11
11
  }),
12
+ referenceImageAttachment: z
13
+ .object({
14
+ supported: z.boolean(),
15
+ maxImages: z.number(),
16
+ })
17
+ .optional(),
12
18
  duration: z.object({
13
19
  options: z.array(z.number()),
14
20
  }),
@@ -43,6 +49,7 @@ export const VideoModelParamsSchema = z.object({
43
49
 
44
50
  export const VideoGenerationRequestParamsSchema = z.object({
45
51
  imageUrls: z.string().array().optional(),
52
+ referenceImages: z.string().uuid().array().optional(),
46
53
  firstFrameImageId: z.string().uuid().optional(),
47
54
  lastFrameImageId: z.string().uuid().optional(),
48
55
  duration: z.number(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot",
3
- "version": "0.13.28",
3
+ "version": "0.13.29",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",