magic-hour 0.32.0 → 0.33.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/environment.d.ts
CHANGED
package/dist/environment.js
CHANGED
|
@@ -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.
|
|
7
|
+
Environment["MockServer"] = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.33.0";
|
|
8
8
|
})(Environment || (exports.Environment = Environment = {}));
|
|
@@ -4,7 +4,13 @@ import * as z from "zod";
|
|
|
4
4
|
*/
|
|
5
5
|
export type V1ImageBackgroundRemoverCreateBodyAssets = {
|
|
6
6
|
/**
|
|
7
|
-
* The image used
|
|
7
|
+
* The image used as the new background for the image_file_path. This image will be resized to match the image in image_file_path. Please make sure the resolution between the images are similar.
|
|
8
|
+
*
|
|
9
|
+
* 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.
|
|
10
|
+
*/
|
|
11
|
+
backgroundImageFilePath?: string | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* The image to remove the background. 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.
|
|
8
14
|
*/
|
|
9
15
|
imageFilePath: string;
|
|
10
16
|
};
|
|
@@ -14,6 +20,7 @@ export type V1ImageBackgroundRemoverCreateBodyAssets = {
|
|
|
14
20
|
* we expect to come in as network data
|
|
15
21
|
*/
|
|
16
22
|
export type External$V1ImageBackgroundRemoverCreateBodyAssets = {
|
|
23
|
+
background_image_file_path?: string | undefined;
|
|
17
24
|
image_file_path: string;
|
|
18
25
|
};
|
|
19
26
|
export declare const Schemas$V1ImageBackgroundRemoverCreateBodyAssets: {
|
|
@@ -41,10 +41,12 @@ const z = __importStar(require("zod"));
|
|
|
41
41
|
*/
|
|
42
42
|
const SchemaIn$V1ImageBackgroundRemoverCreateBodyAssets = z
|
|
43
43
|
.object({
|
|
44
|
+
background_image_file_path: z.string().optional(),
|
|
44
45
|
image_file_path: z.string(),
|
|
45
46
|
})
|
|
46
47
|
.transform((obj) => {
|
|
47
48
|
return (0, core_1.zodTransform)(obj, {
|
|
49
|
+
background_image_file_path: "backgroundImageFilePath",
|
|
48
50
|
image_file_path: "imageFilePath",
|
|
49
51
|
});
|
|
50
52
|
});
|
|
@@ -54,10 +56,12 @@ const SchemaIn$V1ImageBackgroundRemoverCreateBodyAssets = z
|
|
|
54
56
|
*/
|
|
55
57
|
const SchemaOut$V1ImageBackgroundRemoverCreateBodyAssets = z
|
|
56
58
|
.object({
|
|
59
|
+
backgroundImageFilePath: z.string().optional(),
|
|
57
60
|
imageFilePath: z.string(),
|
|
58
61
|
})
|
|
59
62
|
.transform((obj) => {
|
|
60
63
|
return (0, core_1.zodTransform)(obj, {
|
|
64
|
+
backgroundImageFilePath: "background_image_file_path",
|
|
61
65
|
imageFilePath: "image_file_path",
|
|
62
66
|
});
|
|
63
67
|
});
|