magic-hour 0.38.0 → 0.40.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 +1 -1
- package/dist/environment.js +1 -1
- package/dist/resources/v1/ai-gif-generator/request-types.d.ts +5 -0
- package/dist/resources/v1/ai-gif-generator/request-types.js +4 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/v1-ai-gif-generator-create-body-output-format-enum.d.ts +4 -0
- package/dist/types/v1-ai-gif-generator-create-body-output-format-enum.js +2 -0
- package/dist/types/v1-ai-gif-generator-create-body.d.ts +5 -0
- package/dist/types/v1-ai-gif-generator-create-body.js +4 -0
- package/dist/types/v1-video-to-video-create-body-style-art-style-enum.d.ts +1 -1
- package/dist/types/v1-video-to-video-create-body-style.d.ts +2 -2
- package/dist/types/v1-video-to-video-create-body-style.js +2 -0
- package/package.json +5 -2
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.39.1";
|
|
8
8
|
})(Environment || (exports.Environment = Environment = {}));
|
|
@@ -8,6 +8,10 @@ export type CreateRequest = {
|
|
|
8
8
|
* The name of gif. This value is mainly used for your own identification of the gif.
|
|
9
9
|
*/
|
|
10
10
|
name?: string | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* The output file format for the generated animation.
|
|
13
|
+
*/
|
|
14
|
+
outputFormat?: ("gif" | "mp4" | "webm") | undefined;
|
|
11
15
|
style: V1AiGifGeneratorCreateBodyStyle;
|
|
12
16
|
};
|
|
13
17
|
/**
|
|
@@ -17,6 +21,7 @@ export type CreateRequest = {
|
|
|
17
21
|
*/
|
|
18
22
|
export type External$CreateRequest = {
|
|
19
23
|
name?: string | undefined;
|
|
24
|
+
output_format?: ("gif" | "mp4" | "webm") | undefined;
|
|
20
25
|
style: External$V1AiGifGeneratorCreateBodyStyle;
|
|
21
26
|
};
|
|
22
27
|
export declare const Schemas$CreateRequest: {
|
|
@@ -43,11 +43,13 @@ const v1_ai_gif_generator_create_body_style_1 = require("../../../types/v1-ai-gi
|
|
|
43
43
|
const SchemaIn$CreateRequest = z
|
|
44
44
|
.object({
|
|
45
45
|
name: z.string().optional(),
|
|
46
|
+
output_format: z.enum(["gif", "mp4", "webm"]).optional(),
|
|
46
47
|
style: v1_ai_gif_generator_create_body_style_1.Schemas$V1AiGifGeneratorCreateBodyStyle.in,
|
|
47
48
|
})
|
|
48
49
|
.transform((obj) => {
|
|
49
50
|
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
50
51
|
name: "name",
|
|
52
|
+
output_format: "outputFormat",
|
|
51
53
|
style: "style",
|
|
52
54
|
});
|
|
53
55
|
});
|
|
@@ -58,11 +60,13 @@ const SchemaIn$CreateRequest = z
|
|
|
58
60
|
const SchemaOut$CreateRequest = z
|
|
59
61
|
.object({
|
|
60
62
|
name: z.string().optional(),
|
|
63
|
+
outputFormat: z.enum(["gif", "mp4", "webm"]).optional(),
|
|
61
64
|
style: v1_ai_gif_generator_create_body_style_1.Schemas$V1AiGifGeneratorCreateBodyStyle.out,
|
|
62
65
|
})
|
|
63
66
|
.transform((obj) => {
|
|
64
67
|
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
65
68
|
name: "name",
|
|
69
|
+
outputFormat: "output_format",
|
|
66
70
|
style: "style",
|
|
67
71
|
});
|
|
68
72
|
});
|
package/dist/types/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export { V1AiFaceEditorCreateBodyAssets } from "./v1-ai-face-editor-create-body-
|
|
|
7
7
|
export { V1AiFaceEditorCreateBodyStyle } from "./v1-ai-face-editor-create-body-style";
|
|
8
8
|
export { V1AiFaceEditorCreateResponse } from "./v1-ai-face-editor-create-response";
|
|
9
9
|
export { V1AiGifGeneratorCreateBody } from "./v1-ai-gif-generator-create-body";
|
|
10
|
+
export { V1AiGifGeneratorCreateBodyOutputFormatEnum } from "./v1-ai-gif-generator-create-body-output-format-enum";
|
|
10
11
|
export { V1AiGifGeneratorCreateBodyStyle } from "./v1-ai-gif-generator-create-body-style";
|
|
11
12
|
export { V1AiGifGeneratorCreateResponse } from "./v1-ai-gif-generator-create-response";
|
|
12
13
|
export { V1AiHeadshotGeneratorCreateBody } from "./v1-ai-headshot-generator-create-body";
|
|
@@ -8,6 +8,10 @@ export type V1AiGifGeneratorCreateBody = {
|
|
|
8
8
|
* The name of gif. This value is mainly used for your own identification of the gif.
|
|
9
9
|
*/
|
|
10
10
|
name?: string | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* The output file format for the generated animation.
|
|
13
|
+
*/
|
|
14
|
+
outputFormat?: ("gif" | "mp4" | "webm") | undefined;
|
|
11
15
|
style: V1AiGifGeneratorCreateBodyStyle;
|
|
12
16
|
};
|
|
13
17
|
/**
|
|
@@ -17,6 +21,7 @@ export type V1AiGifGeneratorCreateBody = {
|
|
|
17
21
|
*/
|
|
18
22
|
export type External$V1AiGifGeneratorCreateBody = {
|
|
19
23
|
name?: string | undefined;
|
|
24
|
+
output_format?: ("gif" | "mp4" | "webm") | undefined;
|
|
20
25
|
style: External$V1AiGifGeneratorCreateBodyStyle;
|
|
21
26
|
};
|
|
22
27
|
export declare const Schemas$V1AiGifGeneratorCreateBody: {
|
|
@@ -43,11 +43,13 @@ const v1_ai_gif_generator_create_body_style_1 = require("./v1-ai-gif-generator-c
|
|
|
43
43
|
const SchemaIn$V1AiGifGeneratorCreateBody = z
|
|
44
44
|
.object({
|
|
45
45
|
name: z.string().optional(),
|
|
46
|
+
output_format: z.enum(["gif", "mp4", "webm"]).optional(),
|
|
46
47
|
style: v1_ai_gif_generator_create_body_style_1.Schemas$V1AiGifGeneratorCreateBodyStyle.in,
|
|
47
48
|
})
|
|
48
49
|
.transform((obj) => {
|
|
49
50
|
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
50
51
|
name: "name",
|
|
52
|
+
output_format: "outputFormat",
|
|
51
53
|
style: "style",
|
|
52
54
|
});
|
|
53
55
|
});
|
|
@@ -58,11 +60,13 @@ const SchemaIn$V1AiGifGeneratorCreateBody = z
|
|
|
58
60
|
const SchemaOut$V1AiGifGeneratorCreateBody = z
|
|
59
61
|
.object({
|
|
60
62
|
name: z.string().optional(),
|
|
63
|
+
outputFormat: z.enum(["gif", "mp4", "webm"]).optional(),
|
|
61
64
|
style: v1_ai_gif_generator_create_body_style_1.Schemas$V1AiGifGeneratorCreateBodyStyle.out,
|
|
62
65
|
})
|
|
63
66
|
.transform((obj) => {
|
|
64
67
|
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
65
68
|
name: "name",
|
|
69
|
+
outputFormat: "output_format",
|
|
66
70
|
style: "style",
|
|
67
71
|
});
|
|
68
72
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* V1VideoToVideoCreateBodyStyleArtStyleEnum
|
|
3
3
|
*/
|
|
4
|
-
export type V1VideoToVideoCreateBodyStyleArtStyleEnum = "3D Render" | "Airbender" | "Android" | "Anime Warrior" | "Armored Knight" | "Assassin's Creed" | "Avatar" | "Black Spiderman" | "Boba Fett" | "Celestial Skin" | "Chinese Swordsmen" | "Clay" | "Comic" | "Cyberpunk" | "Cypher" | "Dark Fantasy" | "Dragonball Z" | "Future Bot" | "Futuristic Fantasy" | "GTA" | "Ghost" | "Gundam" | "Hologram" | "Illustration" | "Impressionism" | "Ink" | "Ink Poster" | "Jinx" | "Knight" | "Lego" | "Link" | "Marble" | "Mario" | "Master Chief" | "Mech" | "Minecraft" | "Mystique" | "Naruto" | "Neon Dream" | "No Art Style" | "Oil Painting" | "On Fire" | "Origami" | "Pixar" | "Pixel" | "Power Armor" | "Power Ranger" | "Retro Anime" | "Retro Sci-Fi" | "Samurai" | "Samurai Bot" | "Solid Snake" | "Spartan" | "Starfield" | "Street Fighter" | "Studio Ghibli" | "Sub-Zero" | "The Void" | "Tomb Raider" | "Underwater" | "Van Gogh" | "Viking" | "Watercolor" | "Wu Kong" | "Zelda";
|
|
4
|
+
export type V1VideoToVideoCreateBodyStyleArtStyleEnum = "3D Render" | "Airbender" | "Android" | "Anime Warrior" | "Armored Knight" | "Assassin's Creed" | "Avatar" | "Black Spiderman" | "Boba Fett" | "Celestial Skin" | "Chinese Swordsmen" | "Clay" | "Comic" | "Cyberpunk" | "Cypher" | "Dark Fantasy" | "Dragonball Z" | "Future Bot" | "Futuristic Fantasy" | "GTA" | "Ghost" | "Gundam" | "Hologram" | "Illustration" | "Impressionism" | "Ink" | "Ink Poster" | "Jinx" | "Knight" | "Lego" | "Link" | "Marble" | "Mario" | "Master Chief" | "Mech" | "Minecraft" | "Mystique" | "Naruto" | "Neon Dream" | "No Art Style" | "Oil Painting" | "On Fire" | "Origami" | "Painterly Anime" | "Pixar" | "Pixel" | "Power Armor" | "Power Ranger" | "Retro Anime" | "Retro Sci-Fi" | "Samurai" | "Samurai Bot" | "Solid Snake" | "Spartan" | "Starfield" | "Street Fighter" | "Studio Ghibli" | "Sub-Zero" | "The Void" | "Tomb Raider" | "Underwater" | "Van Gogh" | "Viking" | "Watercolor" | "Wu Kong" | "Zelda";
|
|
@@ -3,7 +3,7 @@ import * as z from "zod";
|
|
|
3
3
|
* V1VideoToVideoCreateBodyStyle
|
|
4
4
|
*/
|
|
5
5
|
export type V1VideoToVideoCreateBodyStyle = {
|
|
6
|
-
artStyle: "3D Render" | "Airbender" | "Android" | "Anime Warrior" | "Armored Knight" | "Assassin's Creed" | "Avatar" | "Black Spiderman" | "Boba Fett" | "Celestial Skin" | "Chinese Swordsmen" | "Clay" | "Comic" | "Cyberpunk" | "Cypher" | "Dark Fantasy" | "Dragonball Z" | "Future Bot" | "Futuristic Fantasy" | "GTA" | "Ghost" | "Gundam" | "Hologram" | "Illustration" | "Impressionism" | "Ink" | "Ink Poster" | "Jinx" | "Knight" | "Lego" | "Link" | "Marble" | "Mario" | "Master Chief" | "Mech" | "Minecraft" | "Mystique" | "Naruto" | "Neon Dream" | "No Art Style" | "Oil Painting" | "On Fire" | "Origami" | "Pixar" | "Pixel" | "Power Armor" | "Power Ranger" | "Retro Anime" | "Retro Sci-Fi" | "Samurai" | "Samurai Bot" | "Solid Snake" | "Spartan" | "Starfield" | "Street Fighter" | "Studio Ghibli" | "Sub-Zero" | "The Void" | "Tomb Raider" | "Underwater" | "Van Gogh" | "Viking" | "Watercolor" | "Wu Kong" | "Zelda";
|
|
6
|
+
artStyle: "3D Render" | "Airbender" | "Android" | "Anime Warrior" | "Armored Knight" | "Assassin's Creed" | "Avatar" | "Black Spiderman" | "Boba Fett" | "Celestial Skin" | "Chinese Swordsmen" | "Clay" | "Comic" | "Cyberpunk" | "Cypher" | "Dark Fantasy" | "Dragonball Z" | "Future Bot" | "Futuristic Fantasy" | "GTA" | "Ghost" | "Gundam" | "Hologram" | "Illustration" | "Impressionism" | "Ink" | "Ink Poster" | "Jinx" | "Knight" | "Lego" | "Link" | "Marble" | "Mario" | "Master Chief" | "Mech" | "Minecraft" | "Mystique" | "Naruto" | "Neon Dream" | "No Art Style" | "Oil Painting" | "On Fire" | "Origami" | "Painterly Anime" | "Pixar" | "Pixel" | "Power Armor" | "Power Ranger" | "Retro Anime" | "Retro Sci-Fi" | "Samurai" | "Samurai Bot" | "Solid Snake" | "Spartan" | "Starfield" | "Street Fighter" | "Studio Ghibli" | "Sub-Zero" | "The Void" | "Tomb Raider" | "Underwater" | "Van Gogh" | "Viking" | "Watercolor" | "Wu Kong" | "Zelda";
|
|
7
7
|
/**
|
|
8
8
|
* * `Dreamshaper` - a good all-around model that works for both animations as well as realism.
|
|
9
9
|
* * `Absolute Reality` - better at realism, but you'll often get similar results with Dreamshaper as well.
|
|
@@ -34,7 +34,7 @@ export type V1VideoToVideoCreateBodyStyle = {
|
|
|
34
34
|
* we expect to come in as network data
|
|
35
35
|
*/
|
|
36
36
|
export type External$V1VideoToVideoCreateBodyStyle = {
|
|
37
|
-
art_style: "3D Render" | "Airbender" | "Android" | "Anime Warrior" | "Armored Knight" | "Assassin's Creed" | "Avatar" | "Black Spiderman" | "Boba Fett" | "Celestial Skin" | "Chinese Swordsmen" | "Clay" | "Comic" | "Cyberpunk" | "Cypher" | "Dark Fantasy" | "Dragonball Z" | "Future Bot" | "Futuristic Fantasy" | "GTA" | "Ghost" | "Gundam" | "Hologram" | "Illustration" | "Impressionism" | "Ink" | "Ink Poster" | "Jinx" | "Knight" | "Lego" | "Link" | "Marble" | "Mario" | "Master Chief" | "Mech" | "Minecraft" | "Mystique" | "Naruto" | "Neon Dream" | "No Art Style" | "Oil Painting" | "On Fire" | "Origami" | "Pixar" | "Pixel" | "Power Armor" | "Power Ranger" | "Retro Anime" | "Retro Sci-Fi" | "Samurai" | "Samurai Bot" | "Solid Snake" | "Spartan" | "Starfield" | "Street Fighter" | "Studio Ghibli" | "Sub-Zero" | "The Void" | "Tomb Raider" | "Underwater" | "Van Gogh" | "Viking" | "Watercolor" | "Wu Kong" | "Zelda";
|
|
37
|
+
art_style: "3D Render" | "Airbender" | "Android" | "Anime Warrior" | "Armored Knight" | "Assassin's Creed" | "Avatar" | "Black Spiderman" | "Boba Fett" | "Celestial Skin" | "Chinese Swordsmen" | "Clay" | "Comic" | "Cyberpunk" | "Cypher" | "Dark Fantasy" | "Dragonball Z" | "Future Bot" | "Futuristic Fantasy" | "GTA" | "Ghost" | "Gundam" | "Hologram" | "Illustration" | "Impressionism" | "Ink" | "Ink Poster" | "Jinx" | "Knight" | "Lego" | "Link" | "Marble" | "Mario" | "Master Chief" | "Mech" | "Minecraft" | "Mystique" | "Naruto" | "Neon Dream" | "No Art Style" | "Oil Painting" | "On Fire" | "Origami" | "Painterly Anime" | "Pixar" | "Pixel" | "Power Armor" | "Power Ranger" | "Retro Anime" | "Retro Sci-Fi" | "Samurai" | "Samurai Bot" | "Solid Snake" | "Spartan" | "Starfield" | "Street Fighter" | "Studio Ghibli" | "Sub-Zero" | "The Void" | "Tomb Raider" | "Underwater" | "Van Gogh" | "Viking" | "Watercolor" | "Wu Kong" | "Zelda";
|
|
38
38
|
model: "Absolute Reality" | "Dreamshaper" | "Flat 2D Anime" | "default";
|
|
39
39
|
prompt: string | null;
|
|
40
40
|
prompt_type: "append_default" | "custom" | "default";
|
|
@@ -85,6 +85,7 @@ const SchemaIn$V1VideoToVideoCreateBodyStyle = z
|
|
|
85
85
|
"Oil Painting",
|
|
86
86
|
"On Fire",
|
|
87
87
|
"Origami",
|
|
88
|
+
"Painterly Anime",
|
|
88
89
|
"Pixar",
|
|
89
90
|
"Pixel",
|
|
90
91
|
"Power Armor",
|
|
@@ -177,6 +178,7 @@ const SchemaOut$V1VideoToVideoCreateBodyStyle = z
|
|
|
177
178
|
"Oil Painting",
|
|
178
179
|
"On Fire",
|
|
179
180
|
"Origami",
|
|
181
|
+
"Painterly Anime",
|
|
180
182
|
"Pixar",
|
|
181
183
|
"Pixel",
|
|
182
184
|
"Power Armor",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "magic-hour",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.40.0",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -34,8 +34,11 @@
|
|
|
34
34
|
"@types/jest": "^29.5.14",
|
|
35
35
|
"@types/node": "17.0.33",
|
|
36
36
|
"@types/node-fetch": "2.6.9",
|
|
37
|
+
"@types/qs": "6.9.8",
|
|
38
|
+
"@types/url-join": "4.0.1",
|
|
37
39
|
"jest": "^29.7.0",
|
|
38
40
|
"msw": "^2.10.5",
|
|
41
|
+
"prettier": "^3.6.2",
|
|
39
42
|
"ts-jest": "^29.2.5",
|
|
40
43
|
"ts-morph": "^26.0.0",
|
|
41
44
|
"ts-node": "^10.9.2",
|
|
@@ -56,4 +59,4 @@
|
|
|
56
59
|
"type": "git",
|
|
57
60
|
"url": "git://github.com/magichourhq/magic-hour-node.git"
|
|
58
61
|
}
|
|
59
|
-
}
|
|
62
|
+
}
|