magic-hour 0.20.0 → 0.21.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.21.0";
|
|
8
8
|
})(Environment || (exports.Environment = Environment = {}));
|
|
@@ -27,6 +27,14 @@ export type V1AiPhotoEditorCreateBodyStyle = {
|
|
|
27
27
|
* Number of iterations used to generate the output. Higher values improve quality and increase the strength of the prompt but increase processing time.
|
|
28
28
|
*/
|
|
29
29
|
steps?: number | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* The multiplier applied to an image's original dimensions during the upscaling process. For example, a scale of 2 doubles the width and height (e.g., from 512x512 to 1024x1024).
|
|
32
|
+
*/
|
|
33
|
+
upscaleFactor?: number | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Upscale fidelity refers to the level of quality desired in the generated image. Fidelity value of 1 means more details.
|
|
36
|
+
*/
|
|
37
|
+
upscaleFidelity?: number | undefined;
|
|
30
38
|
};
|
|
31
39
|
/**
|
|
32
40
|
* @internal
|
|
@@ -40,6 +48,8 @@ export type External$V1AiPhotoEditorCreateBodyStyle = {
|
|
|
40
48
|
prompt: string;
|
|
41
49
|
prompt_strength: number;
|
|
42
50
|
steps?: number | undefined;
|
|
51
|
+
upscale_factor?: number | undefined;
|
|
52
|
+
upscale_fidelity?: number | undefined;
|
|
43
53
|
};
|
|
44
54
|
export declare const Schemas$V1AiPhotoEditorCreateBodyStyle: {
|
|
45
55
|
in: z.ZodType<V1AiPhotoEditorCreateBodyStyle, z.ZodTypeDef, unknown>;
|
|
@@ -47,6 +47,8 @@ const SchemaIn$V1AiPhotoEditorCreateBodyStyle = z
|
|
|
47
47
|
prompt: z.string(),
|
|
48
48
|
prompt_strength: z.number(),
|
|
49
49
|
steps: z.number().int().optional(),
|
|
50
|
+
upscale_factor: z.number().int().optional(),
|
|
51
|
+
upscale_fidelity: z.number().optional(),
|
|
50
52
|
})
|
|
51
53
|
.transform((obj) => {
|
|
52
54
|
return (0, core_1.zodTransform)(obj, {
|
|
@@ -56,6 +58,8 @@ const SchemaIn$V1AiPhotoEditorCreateBodyStyle = z
|
|
|
56
58
|
prompt: "prompt",
|
|
57
59
|
prompt_strength: "promptStrength",
|
|
58
60
|
steps: "steps",
|
|
61
|
+
upscale_factor: "upscaleFactor",
|
|
62
|
+
upscale_fidelity: "upscaleFidelity",
|
|
59
63
|
});
|
|
60
64
|
});
|
|
61
65
|
/**
|
|
@@ -70,6 +74,8 @@ const SchemaOut$V1AiPhotoEditorCreateBodyStyle = z
|
|
|
70
74
|
prompt: z.string(),
|
|
71
75
|
promptStrength: z.number(),
|
|
72
76
|
steps: z.number().int().optional(),
|
|
77
|
+
upscaleFactor: z.number().int().optional(),
|
|
78
|
+
upscaleFidelity: z.number().optional(),
|
|
73
79
|
})
|
|
74
80
|
.transform((obj) => {
|
|
75
81
|
return (0, core_1.zodTransform)(obj, {
|
|
@@ -79,6 +85,8 @@ const SchemaOut$V1AiPhotoEditorCreateBodyStyle = z
|
|
|
79
85
|
prompt: "prompt",
|
|
80
86
|
promptStrength: "prompt_strength",
|
|
81
87
|
steps: "steps",
|
|
88
|
+
upscaleFactor: "upscale_factor",
|
|
89
|
+
upscaleFidelity: "upscale_fidelity",
|
|
82
90
|
});
|
|
83
91
|
});
|
|
84
92
|
exports.Schemas$V1AiPhotoEditorCreateBodyStyle = {
|