magic-hour 0.31.0 → 0.32.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.
@@ -1,4 +1,4 @@
1
1
  export declare enum Environment {
2
2
  Environment = "https://api.magichour.ai",
3
- MockServer = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.31.0"
3
+ MockServer = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.32.0"
4
4
  }
@@ -4,5 +4,5 @@ exports.Environment = void 0;
4
4
  var Environment;
5
5
  (function (Environment) {
6
6
  Environment["Environment"] = "https://api.magichour.ai";
7
- Environment["MockServer"] = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.31.0";
7
+ Environment["MockServer"] = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.32.0";
8
8
  })(Environment || (exports.Environment = Environment = {}));
@@ -19,7 +19,7 @@ export type V1FaceSwapCreateBodyAssets = {
19
19
  *
20
20
  * This value can be either the `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file.
21
21
  */
22
- imageFilePath: string;
22
+ imageFilePath?: string | undefined;
23
23
  /**
24
24
  * The path of the input video. This field is required if `video_source` is `file`. This value can be either the `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file.
25
25
  */
@@ -38,7 +38,7 @@ export type V1FaceSwapCreateBodyAssets = {
38
38
  export type External$V1FaceSwapCreateBodyAssets = {
39
39
  face_mappings?: External$V1FaceSwapCreateBodyAssetsFaceMappingsItem[] | undefined;
40
40
  face_swap_mode?: ("all-faces" | "individual-faces") | undefined;
41
- image_file_path: string;
41
+ image_file_path?: string | undefined;
42
42
  video_file_path?: string | undefined;
43
43
  video_source: "file" | "youtube";
44
44
  youtube_url?: string | undefined;
@@ -46,7 +46,7 @@ const SchemaIn$V1FaceSwapCreateBodyAssets = z
46
46
  .array(v1_face_swap_create_body_assets_face_mappings_item_1.Schemas$V1FaceSwapCreateBodyAssetsFaceMappingsItem.in)
47
47
  .optional(),
48
48
  face_swap_mode: z.enum(["all-faces", "individual-faces"]).optional(),
49
- image_file_path: z.string(),
49
+ image_file_path: z.string().optional(),
50
50
  video_file_path: z.string().optional(),
51
51
  video_source: z.enum(["file", "youtube"]),
52
52
  youtube_url: z.string().optional(),
@@ -71,7 +71,7 @@ const SchemaOut$V1FaceSwapCreateBodyAssets = z
71
71
  .array(v1_face_swap_create_body_assets_face_mappings_item_1.Schemas$V1FaceSwapCreateBodyAssetsFaceMappingsItem.out)
72
72
  .optional(),
73
73
  faceSwapMode: z.enum(["all-faces", "individual-faces"]).optional(),
74
- imageFilePath: z.string(),
74
+ imageFilePath: z.string().optional(),
75
75
  videoFilePath: z.string().optional(),
76
76
  videoSource: z.enum(["file", "youtube"]),
77
77
  youtubeUrl: z.string().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "magic-hour",
3
- "version": "0.31.0",
3
+ "version": "0.32.0",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {