Skip to content

Commit e8baaaa

Browse files
magic-hour-sdk-bot[bot]sdk-github-actions[bot]
andauthored
fix: mark image_file_path as optional for face swap API (#88)
Co-authored-by: sdk-github-actions[bot] <sdk-github-actions[bot]@users.noreply.github.com>
1 parent 0f5e2ce commit e8baaaa

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

.sdk.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"id": "fdd770a0-3266-42d2-b323-4f6e530b3f1a"
2+
"id": "2fa71674-03e2-4bc5-97f2-c1d0431b0585"
33
}

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "magic-hour",
3-
"version": "0.31.0",
3+
"version": "0.32.0",
44
"main": "./dist/index.js",
55
"types": "./dist/index.d.ts",
66
"exports": {

src/environment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export enum Environment {
22
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",
44
}

src/types/v1-face-swap-create-body-assets.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export type V1FaceSwapCreateBodyAssets = {
2525
*
2626
* 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.
2727
*/
28-
imageFilePath: string;
28+
imageFilePath?: string | undefined;
2929
/**
3030
* 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.
3131
*/
@@ -47,7 +47,7 @@ export type External$V1FaceSwapCreateBodyAssets = {
4747
| External$V1FaceSwapCreateBodyAssetsFaceMappingsItem[]
4848
| undefined;
4949
face_swap_mode?: ("all-faces" | "individual-faces") | undefined;
50-
image_file_path: string;
50+
image_file_path?: string | undefined;
5151
video_file_path?: string | undefined;
5252
video_source: "file" | "youtube";
5353
youtube_url?: string | undefined;
@@ -66,7 +66,7 @@ const SchemaIn$V1FaceSwapCreateBodyAssets: z.ZodType<
6666
.array(Schemas$V1FaceSwapCreateBodyAssetsFaceMappingsItem.in)
6767
.optional(),
6868
face_swap_mode: z.enum(["all-faces", "individual-faces"]).optional(),
69-
image_file_path: z.string(),
69+
image_file_path: z.string().optional(),
7070
video_file_path: z.string().optional(),
7171
video_source: z.enum(["file", "youtube"]),
7272
youtube_url: z.string().optional(),
@@ -96,7 +96,7 @@ const SchemaOut$V1FaceSwapCreateBodyAssets: z.ZodType<
9696
.array(Schemas$V1FaceSwapCreateBodyAssetsFaceMappingsItem.out)
9797
.optional(),
9898
faceSwapMode: z.enum(["all-faces", "individual-faces"]).optional(),
99-
imageFilePath: z.string(),
99+
imageFilePath: z.string().optional(),
100100
videoFilePath: z.string().optional(),
101101
videoSource: z.enum(["file", "youtube"]),
102102
youtubeUrl: z.string().optional(),

0 commit comments

Comments
 (0)