@pixerate/schemas 1.11.0 → 1.12.0

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/dist/index.cjs CHANGED
@@ -190,7 +190,7 @@ var AspectRatioSchema = import_zod.z.enum([
190
190
  "21:9"
191
191
  ]);
192
192
  var VideoAspectRatioSchema = import_zod.z.enum(["9:16", "16:9"]);
193
- var VideoResolutionSchema = import_zod.z.enum(["720p", "1080p", "4k", "720P", "1080P", "4K"]);
193
+ var VideoResolutionSchema = import_zod.z.enum(["360p", "720p", "1080p", "4k", "360P", "720P", "1080P", "4K"]);
194
194
  var VideoFrameImageSchema = import_zod.z.union([
195
195
  import_zod.z.string(),
196
196
  import_zod.z.object({
@@ -505,6 +505,9 @@ var VideoModificationSchema = import_zod.z.object({
505
505
  changes: import_zod.z.string().optional(),
506
506
  aspectRatio: VideoAspectRatioSchema.optional(),
507
507
  durationSeconds: import_zod.z.number().optional(),
508
+ resolution: VideoResolutionSchema.optional(),
509
+ task: import_zod.z.enum(["modify", "extend"]).optional(),
510
+ previousInteractionId: import_zod.z.string().optional(),
508
511
  seed: import_zod.z.number().int().optional()
509
512
  });
510
513
  var CodeGenerationSchema = import_zod.z.object({
package/dist/index.d.cts CHANGED
@@ -6,7 +6,7 @@ declare const AspectRatioSchema: z.ZodEnum<["1:1", "2:3", "3:2", "3:4", "4:3", "
6
6
  type AspectRatio = z.infer<typeof AspectRatioSchema>;
7
7
  declare const VideoAspectRatioSchema: z.ZodEnum<["9:16", "16:9"]>;
8
8
  type VideoAspectRatio = z.infer<typeof VideoAspectRatioSchema>;
9
- declare const VideoResolutionSchema: z.ZodEnum<["720p", "1080p", "4k", "720P", "1080P", "4K"]>;
9
+ declare const VideoResolutionSchema: z.ZodEnum<["360p", "720p", "1080p", "4k", "360P", "720P", "1080P", "4K"]>;
10
10
  type VideoResolution = z.infer<typeof VideoResolutionSchema>;
11
11
  declare const VideoFrameImageSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
12
12
  bytesBase64Encoded: z.ZodOptional<z.ZodString>;
@@ -45,7 +45,7 @@ declare const VideoGenerationSchema: z.ZodObject<{
45
45
  durationSeconds: z.ZodOptional<z.ZodNumber>;
46
46
  generateAudio: z.ZodOptional<z.ZodBoolean>;
47
47
  modelName: z.ZodOptional<z.ZodString>;
48
- resolution: z.ZodOptional<z.ZodEnum<["720p", "1080p", "4k", "720P", "1080P", "4K"]>>;
48
+ resolution: z.ZodOptional<z.ZodEnum<["360p", "720p", "1080p", "4k", "360P", "720P", "1080P", "4K"]>>;
49
49
  fps: z.ZodOptional<z.ZodNumber>;
50
50
  isMultimedia: z.ZodOptional<z.ZodBoolean>;
51
51
  multimedia: z.ZodOptional<z.ZodBoolean>;
@@ -129,7 +129,7 @@ declare const VideoGenerationSchema: z.ZodObject<{
129
129
  durationSeconds?: number | undefined;
130
130
  generateAudio?: boolean | undefined;
131
131
  modelName?: string | undefined;
132
- resolution?: "720p" | "1080p" | "4k" | "720P" | "1080P" | "4K" | undefined;
132
+ resolution?: "360p" | "720p" | "1080p" | "4k" | "360P" | "720P" | "1080P" | "4K" | undefined;
133
133
  fps?: number | undefined;
134
134
  isMultimedia?: boolean | undefined;
135
135
  multimedia?: boolean | undefined;
@@ -167,7 +167,7 @@ declare const VideoGenerationSchema: z.ZodObject<{
167
167
  durationSeconds?: number | undefined;
168
168
  generateAudio?: boolean | undefined;
169
169
  modelName?: string | undefined;
170
- resolution?: "720p" | "1080p" | "4k" | "720P" | "1080P" | "4K" | undefined;
170
+ resolution?: "360p" | "720p" | "1080p" | "4k" | "360P" | "720P" | "1080P" | "4K" | undefined;
171
171
  fps?: number | undefined;
172
172
  isMultimedia?: boolean | undefined;
173
173
  multimedia?: boolean | undefined;
@@ -5156,19 +5156,28 @@ declare const VideoModificationSchema: z.ZodObject<{
5156
5156
  changes: z.ZodOptional<z.ZodString>;
5157
5157
  aspectRatio: z.ZodOptional<z.ZodEnum<["9:16", "16:9"]>>;
5158
5158
  durationSeconds: z.ZodOptional<z.ZodNumber>;
5159
+ resolution: z.ZodOptional<z.ZodEnum<["360p", "720p", "1080p", "4k", "360P", "720P", "1080P", "4K"]>>;
5160
+ task: z.ZodOptional<z.ZodEnum<["modify", "extend"]>>;
5161
+ previousInteractionId: z.ZodOptional<z.ZodString>;
5159
5162
  seed: z.ZodOptional<z.ZodNumber>;
5160
5163
  }, "strip", z.ZodTypeAny, {
5161
5164
  prompt: string;
5162
5165
  aspectRatio?: "9:16" | "16:9" | undefined;
5163
5166
  durationSeconds?: number | undefined;
5167
+ resolution?: "360p" | "720p" | "1080p" | "4k" | "360P" | "720P" | "1080P" | "4K" | undefined;
5164
5168
  seed?: number | undefined;
5165
5169
  changes?: string | undefined;
5170
+ task?: "modify" | "extend" | undefined;
5171
+ previousInteractionId?: string | undefined;
5166
5172
  }, {
5167
5173
  prompt: string;
5168
5174
  aspectRatio?: "9:16" | "16:9" | undefined;
5169
5175
  durationSeconds?: number | undefined;
5176
+ resolution?: "360p" | "720p" | "1080p" | "4k" | "360P" | "720P" | "1080P" | "4K" | undefined;
5170
5177
  seed?: number | undefined;
5171
5178
  changes?: string | undefined;
5179
+ task?: "modify" | "extend" | undefined;
5180
+ previousInteractionId?: string | undefined;
5172
5181
  }>;
5173
5182
  type VideoModificationPayload = z.infer<typeof VideoModificationSchema>;
5174
5183
  declare const CodeGenerationSchema: z.ZodObject<{
package/dist/index.d.ts CHANGED
@@ -6,7 +6,7 @@ declare const AspectRatioSchema: z.ZodEnum<["1:1", "2:3", "3:2", "3:4", "4:3", "
6
6
  type AspectRatio = z.infer<typeof AspectRatioSchema>;
7
7
  declare const VideoAspectRatioSchema: z.ZodEnum<["9:16", "16:9"]>;
8
8
  type VideoAspectRatio = z.infer<typeof VideoAspectRatioSchema>;
9
- declare const VideoResolutionSchema: z.ZodEnum<["720p", "1080p", "4k", "720P", "1080P", "4K"]>;
9
+ declare const VideoResolutionSchema: z.ZodEnum<["360p", "720p", "1080p", "4k", "360P", "720P", "1080P", "4K"]>;
10
10
  type VideoResolution = z.infer<typeof VideoResolutionSchema>;
11
11
  declare const VideoFrameImageSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
12
12
  bytesBase64Encoded: z.ZodOptional<z.ZodString>;
@@ -45,7 +45,7 @@ declare const VideoGenerationSchema: z.ZodObject<{
45
45
  durationSeconds: z.ZodOptional<z.ZodNumber>;
46
46
  generateAudio: z.ZodOptional<z.ZodBoolean>;
47
47
  modelName: z.ZodOptional<z.ZodString>;
48
- resolution: z.ZodOptional<z.ZodEnum<["720p", "1080p", "4k", "720P", "1080P", "4K"]>>;
48
+ resolution: z.ZodOptional<z.ZodEnum<["360p", "720p", "1080p", "4k", "360P", "720P", "1080P", "4K"]>>;
49
49
  fps: z.ZodOptional<z.ZodNumber>;
50
50
  isMultimedia: z.ZodOptional<z.ZodBoolean>;
51
51
  multimedia: z.ZodOptional<z.ZodBoolean>;
@@ -129,7 +129,7 @@ declare const VideoGenerationSchema: z.ZodObject<{
129
129
  durationSeconds?: number | undefined;
130
130
  generateAudio?: boolean | undefined;
131
131
  modelName?: string | undefined;
132
- resolution?: "720p" | "1080p" | "4k" | "720P" | "1080P" | "4K" | undefined;
132
+ resolution?: "360p" | "720p" | "1080p" | "4k" | "360P" | "720P" | "1080P" | "4K" | undefined;
133
133
  fps?: number | undefined;
134
134
  isMultimedia?: boolean | undefined;
135
135
  multimedia?: boolean | undefined;
@@ -167,7 +167,7 @@ declare const VideoGenerationSchema: z.ZodObject<{
167
167
  durationSeconds?: number | undefined;
168
168
  generateAudio?: boolean | undefined;
169
169
  modelName?: string | undefined;
170
- resolution?: "720p" | "1080p" | "4k" | "720P" | "1080P" | "4K" | undefined;
170
+ resolution?: "360p" | "720p" | "1080p" | "4k" | "360P" | "720P" | "1080P" | "4K" | undefined;
171
171
  fps?: number | undefined;
172
172
  isMultimedia?: boolean | undefined;
173
173
  multimedia?: boolean | undefined;
@@ -5156,19 +5156,28 @@ declare const VideoModificationSchema: z.ZodObject<{
5156
5156
  changes: z.ZodOptional<z.ZodString>;
5157
5157
  aspectRatio: z.ZodOptional<z.ZodEnum<["9:16", "16:9"]>>;
5158
5158
  durationSeconds: z.ZodOptional<z.ZodNumber>;
5159
+ resolution: z.ZodOptional<z.ZodEnum<["360p", "720p", "1080p", "4k", "360P", "720P", "1080P", "4K"]>>;
5160
+ task: z.ZodOptional<z.ZodEnum<["modify", "extend"]>>;
5161
+ previousInteractionId: z.ZodOptional<z.ZodString>;
5159
5162
  seed: z.ZodOptional<z.ZodNumber>;
5160
5163
  }, "strip", z.ZodTypeAny, {
5161
5164
  prompt: string;
5162
5165
  aspectRatio?: "9:16" | "16:9" | undefined;
5163
5166
  durationSeconds?: number | undefined;
5167
+ resolution?: "360p" | "720p" | "1080p" | "4k" | "360P" | "720P" | "1080P" | "4K" | undefined;
5164
5168
  seed?: number | undefined;
5165
5169
  changes?: string | undefined;
5170
+ task?: "modify" | "extend" | undefined;
5171
+ previousInteractionId?: string | undefined;
5166
5172
  }, {
5167
5173
  prompt: string;
5168
5174
  aspectRatio?: "9:16" | "16:9" | undefined;
5169
5175
  durationSeconds?: number | undefined;
5176
+ resolution?: "360p" | "720p" | "1080p" | "4k" | "360P" | "720P" | "1080P" | "4K" | undefined;
5170
5177
  seed?: number | undefined;
5171
5178
  changes?: string | undefined;
5179
+ task?: "modify" | "extend" | undefined;
5180
+ previousInteractionId?: string | undefined;
5172
5181
  }>;
5173
5182
  type VideoModificationPayload = z.infer<typeof VideoModificationSchema>;
5174
5183
  declare const CodeGenerationSchema: z.ZodObject<{
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ var AspectRatioSchema = z.enum([
14
14
  "21:9"
15
15
  ]);
16
16
  var VideoAspectRatioSchema = z.enum(["9:16", "16:9"]);
17
- var VideoResolutionSchema = z.enum(["720p", "1080p", "4k", "720P", "1080P", "4K"]);
17
+ var VideoResolutionSchema = z.enum(["360p", "720p", "1080p", "4k", "360P", "720P", "1080P", "4K"]);
18
18
  var VideoFrameImageSchema = z.union([
19
19
  z.string(),
20
20
  z.object({
@@ -329,6 +329,9 @@ var VideoModificationSchema = z.object({
329
329
  changes: z.string().optional(),
330
330
  aspectRatio: VideoAspectRatioSchema.optional(),
331
331
  durationSeconds: z.number().optional(),
332
+ resolution: VideoResolutionSchema.optional(),
333
+ task: z.enum(["modify", "extend"]).optional(),
334
+ previousInteractionId: z.string().optional(),
332
335
  seed: z.number().int().optional()
333
336
  });
334
337
  var CodeGenerationSchema = z.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pixerate/schemas",
3
- "version": "1.11.0",
3
+ "version": "1.12.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",