magic-hour 0.39.0 → 0.41.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.
Files changed (51) hide show
  1. package/README.md +9 -0
  2. package/dist/environment.d.ts +1 -1
  3. package/dist/environment.js +1 -1
  4. package/dist/resources/v1/ai-voice-generator/index.d.ts +2 -0
  5. package/dist/resources/v1/ai-voice-generator/index.js +5 -0
  6. package/dist/resources/v1/ai-voice-generator/request-types.d.ts +28 -0
  7. package/dist/resources/v1/ai-voice-generator/request-types.js +72 -0
  8. package/dist/resources/v1/ai-voice-generator/resource-client.d.ts +14 -0
  9. package/dist/resources/v1/ai-voice-generator/resource-client.js +30 -0
  10. package/dist/resources/v1/audio-projects/index.d.ts +2 -0
  11. package/dist/resources/v1/audio-projects/index.js +5 -0
  12. package/dist/resources/v1/audio-projects/request-types.d.ts +43 -0
  13. package/dist/resources/v1/audio-projects/request-types.js +96 -0
  14. package/dist/resources/v1/audio-projects/resource-client.d.ts +31 -0
  15. package/dist/resources/v1/audio-projects/resource-client.js +51 -0
  16. package/dist/resources/v1/index.d.ts +2 -0
  17. package/dist/resources/v1/index.js +3 -1
  18. package/dist/resources/v1/lip-sync/request-types.d.ts +6 -0
  19. package/dist/resources/v1/lip-sync/request-types.js +5 -0
  20. package/dist/resources/v1/resource-client.d.ts +6 -0
  21. package/dist/resources/v1/resource-client.js +12 -0
  22. package/dist/types/index.d.ts +10 -0
  23. package/dist/types/v1-ai-talking-photo-create-body-style-generation-mode-enum.d.ts +5 -3
  24. package/dist/types/v1-ai-talking-photo-create-body-style.d.ts +6 -4
  25. package/dist/types/v1-ai-talking-photo-create-body-style.js +6 -2
  26. package/dist/types/v1-ai-voice-generator-create-body-style-voice-name-enum.d.ts +4 -0
  27. package/dist/types/v1-ai-voice-generator-create-body-style-voice-name-enum.js +2 -0
  28. package/dist/types/v1-ai-voice-generator-create-body-style.d.ts +27 -0
  29. package/dist/types/v1-ai-voice-generator-create-body-style.js +93 -0
  30. package/dist/types/v1-ai-voice-generator-create-body.d.ts +28 -0
  31. package/dist/types/v1-ai-voice-generator-create-body.js +72 -0
  32. package/dist/types/v1-ai-voice-generator-create-response.d.ts +29 -0
  33. package/dist/types/v1-ai-voice-generator-create-response.js +71 -0
  34. package/dist/types/v1-audio-projects-get-response-downloads-item.d.ts +21 -0
  35. package/dist/types/v1-audio-projects-get-response-downloads-item.js +71 -0
  36. package/dist/types/v1-audio-projects-get-response-error.d.ts +27 -0
  37. package/dist/types/v1-audio-projects-get-response-error.js +71 -0
  38. package/dist/types/v1-audio-projects-get-response-status-enum.d.ts +4 -0
  39. package/dist/types/v1-audio-projects-get-response-status-enum.js +2 -0
  40. package/dist/types/v1-audio-projects-get-response.d.ts +60 -0
  41. package/dist/types/v1-audio-projects-get-response.js +115 -0
  42. package/dist/types/v1-lip-sync-create-body-style-generation-mode-enum.d.ts +10 -0
  43. package/dist/types/v1-lip-sync-create-body-style-generation-mode-enum.js +2 -0
  44. package/dist/types/v1-lip-sync-create-body-style.d.ts +28 -0
  45. package/dist/types/v1-lip-sync-create-body-style.js +67 -0
  46. package/dist/types/v1-lip-sync-create-body.d.ts +6 -0
  47. package/dist/types/v1-lip-sync-create-body.js +5 -0
  48. package/dist/types/v1-video-to-video-create-body-style-art-style-enum.d.ts +1 -1
  49. package/dist/types/v1-video-to-video-create-body-style.d.ts +10 -10
  50. package/dist/types/v1-video-to-video-create-body-style.js +18 -18
  51. package/package.json +5 -4
@@ -0,0 +1,115 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.Schemas$V1AudioProjectsGetResponse = void 0;
37
+ const make_api_request_js_1 = require("make-api-request-js");
38
+ const z = __importStar(require("zod"));
39
+ const v1_audio_projects_get_response_downloads_item_1 = require("./v1-audio-projects-get-response-downloads-item");
40
+ const v1_audio_projects_get_response_error_1 = require("./v1-audio-projects-get-response-error");
41
+ /**
42
+ * Takes network data, validates it, and transforms keys to match typescript object V1AudioProjectsGetResponse
43
+ */
44
+ const SchemaIn$V1AudioProjectsGetResponse = z
45
+ .object({
46
+ created_at: z.string(),
47
+ credits_charged: z.number().int(),
48
+ downloads: z.array(v1_audio_projects_get_response_downloads_item_1.Schemas$V1AudioProjectsGetResponseDownloadsItem.in),
49
+ enabled: z.boolean(),
50
+ error: v1_audio_projects_get_response_error_1.Schemas$V1AudioProjectsGetResponseError.in.nullable(),
51
+ id: z.string(),
52
+ name: z.string().nullable(),
53
+ status: z.enum([
54
+ "canceled",
55
+ "complete",
56
+ "draft",
57
+ "error",
58
+ "queued",
59
+ "rendering",
60
+ ]),
61
+ type: z.string(),
62
+ })
63
+ .transform((obj) => {
64
+ return (0, make_api_request_js_1.zodTransform)(obj, {
65
+ created_at: "createdAt",
66
+ credits_charged: "creditsCharged",
67
+ downloads: "downloads",
68
+ enabled: "enabled",
69
+ error: "error",
70
+ id: "id",
71
+ name: "name",
72
+ status: "status",
73
+ type: "type",
74
+ });
75
+ });
76
+ /**
77
+ * @internal
78
+ * Takes typescript data, validates it, and maps keys to match the expected external object External$V1AudioProjectsGetResponse
79
+ */
80
+ const SchemaOut$V1AudioProjectsGetResponse = z
81
+ .object({
82
+ createdAt: z.string(),
83
+ creditsCharged: z.number().int(),
84
+ downloads: z.array(v1_audio_projects_get_response_downloads_item_1.Schemas$V1AudioProjectsGetResponseDownloadsItem.out),
85
+ enabled: z.boolean(),
86
+ error: v1_audio_projects_get_response_error_1.Schemas$V1AudioProjectsGetResponseError.out.nullable(),
87
+ id: z.string(),
88
+ name: z.string().nullable(),
89
+ status: z.enum([
90
+ "canceled",
91
+ "complete",
92
+ "draft",
93
+ "error",
94
+ "queued",
95
+ "rendering",
96
+ ]),
97
+ type: z.string(),
98
+ })
99
+ .transform((obj) => {
100
+ return (0, make_api_request_js_1.zodTransform)(obj, {
101
+ createdAt: "created_at",
102
+ creditsCharged: "credits_charged",
103
+ downloads: "downloads",
104
+ enabled: "enabled",
105
+ error: "error",
106
+ id: "id",
107
+ name: "name",
108
+ status: "status",
109
+ type: "type",
110
+ });
111
+ });
112
+ exports.Schemas$V1AudioProjectsGetResponse = {
113
+ in: SchemaIn$V1AudioProjectsGetResponse,
114
+ out: SchemaOut$V1AudioProjectsGetResponse,
115
+ };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * A specific version of our lip sync system, optimized for different needs.
3
+ * * `lite` - Fast and affordable lip sync - best for simple videos. Costs 1 credit per frame of video.
4
+ * * `standard` - Natural, accurate lip sync - best for most creators. Costs 1 credit per frame of video.
5
+ * * `pro` - Premium fidelity with enhanced detail - best for professionals. Costs 2 credits per frame of video.
6
+ *
7
+ * Note: `standard` and `pro` are only available for users on Creator, Pro, and Business tiers.
8
+ *
9
+ */
10
+ export type V1LipSyncCreateBodyStyleGenerationModeEnum = "lite" | "pro" | "standard";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,28 @@
1
+ import * as z from "zod";
2
+ /**
3
+ * Attributes used to dictate the style of the output
4
+ */
5
+ export type V1LipSyncCreateBodyStyle = {
6
+ /**
7
+ * A specific version of our lip sync system, optimized for different needs.
8
+ * * `lite` - Fast and affordable lip sync - best for simple videos. Costs 1 credit per frame of video.
9
+ * * `standard` - Natural, accurate lip sync - best for most creators. Costs 1 credit per frame of video.
10
+ * * `pro` - Premium fidelity with enhanced detail - best for professionals. Costs 2 credits per frame of video.
11
+ *
12
+ * Note: `standard` and `pro` are only available for users on Creator, Pro, and Business tiers.
13
+ *
14
+ */
15
+ generationMode?: ("lite" | "pro" | "standard") | undefined;
16
+ };
17
+ /**
18
+ * @internal
19
+ * V1LipSyncCreateBodyStyle without any key transformation, this is what
20
+ * we expect to come in as network data
21
+ */
22
+ export type External$V1LipSyncCreateBodyStyle = {
23
+ generation_mode?: ("lite" | "pro" | "standard") | undefined;
24
+ };
25
+ export declare const Schemas$V1LipSyncCreateBodyStyle: {
26
+ in: z.ZodType<V1LipSyncCreateBodyStyle, z.ZodTypeDef, unknown>;
27
+ out: z.ZodType<External$V1LipSyncCreateBodyStyle, z.ZodTypeDef, V1LipSyncCreateBodyStyle>;
28
+ };
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.Schemas$V1LipSyncCreateBodyStyle = void 0;
37
+ const make_api_request_js_1 = require("make-api-request-js");
38
+ const z = __importStar(require("zod"));
39
+ /**
40
+ * Takes network data, validates it, and transforms keys to match typescript object V1LipSyncCreateBodyStyle
41
+ */
42
+ const SchemaIn$V1LipSyncCreateBodyStyle = z
43
+ .object({
44
+ generation_mode: z.enum(["lite", "pro", "standard"]).optional(),
45
+ })
46
+ .transform((obj) => {
47
+ return (0, make_api_request_js_1.zodTransform)(obj, {
48
+ generation_mode: "generationMode",
49
+ });
50
+ });
51
+ /**
52
+ * @internal
53
+ * Takes typescript data, validates it, and maps keys to match the expected external object External$V1LipSyncCreateBodyStyle
54
+ */
55
+ const SchemaOut$V1LipSyncCreateBodyStyle = z
56
+ .object({
57
+ generationMode: z.enum(["lite", "pro", "standard"]).optional(),
58
+ })
59
+ .transform((obj) => {
60
+ return (0, make_api_request_js_1.zodTransform)(obj, {
61
+ generationMode: "generation_mode",
62
+ });
63
+ });
64
+ exports.Schemas$V1LipSyncCreateBodyStyle = {
65
+ in: SchemaIn$V1LipSyncCreateBodyStyle,
66
+ out: SchemaOut$V1LipSyncCreateBodyStyle,
67
+ };
@@ -1,5 +1,6 @@
1
1
  import * as z from "zod";
2
2
  import { External$V1LipSyncCreateBodyAssets, V1LipSyncCreateBodyAssets } from "./v1-lip-sync-create-body-assets";
3
+ import { External$V1LipSyncCreateBodyStyle, V1LipSyncCreateBodyStyle } from "./v1-lip-sync-create-body-style";
3
4
  /**
4
5
  * V1LipSyncCreateBody
5
6
  */
@@ -34,6 +35,10 @@ export type V1LipSyncCreateBody = {
34
35
  * The start time of the input video in seconds. This value is used to trim the input video. The value must be greater than 0.
35
36
  */
36
37
  startSeconds: number;
38
+ /**
39
+ * Attributes used to dictate the style of the output
40
+ */
41
+ style?: V1LipSyncCreateBodyStyle | undefined;
37
42
  /**
38
43
  * `width` is deprecated and no longer influences the output video's resolution.
39
44
  *
@@ -57,6 +62,7 @@ export type External$V1LipSyncCreateBody = {
57
62
  max_fps_limit?: number | undefined;
58
63
  name?: string | undefined;
59
64
  start_seconds: number;
65
+ style?: External$V1LipSyncCreateBodyStyle | undefined;
60
66
  width?: number | null | undefined;
61
67
  };
62
68
  export declare const Schemas$V1LipSyncCreateBody: {
@@ -37,6 +37,7 @@ exports.Schemas$V1LipSyncCreateBody = void 0;
37
37
  const make_api_request_js_1 = require("make-api-request-js");
38
38
  const z = __importStar(require("zod"));
39
39
  const v1_lip_sync_create_body_assets_1 = require("./v1-lip-sync-create-body-assets");
40
+ const v1_lip_sync_create_body_style_1 = require("./v1-lip-sync-create-body-style");
40
41
  /**
41
42
  * Takes network data, validates it, and transforms keys to match typescript object V1LipSyncCreateBody
42
43
  */
@@ -48,6 +49,7 @@ const SchemaIn$V1LipSyncCreateBody = z
48
49
  max_fps_limit: z.number().optional(),
49
50
  name: z.string().optional(),
50
51
  start_seconds: z.number(),
52
+ style: v1_lip_sync_create_body_style_1.Schemas$V1LipSyncCreateBodyStyle.in.optional(),
51
53
  width: z.number().int().nullable().optional(),
52
54
  })
53
55
  .transform((obj) => {
@@ -58,6 +60,7 @@ const SchemaIn$V1LipSyncCreateBody = z
58
60
  max_fps_limit: "maxFpsLimit",
59
61
  name: "name",
60
62
  start_seconds: "startSeconds",
63
+ style: "style",
61
64
  width: "width",
62
65
  });
63
66
  });
@@ -73,6 +76,7 @@ const SchemaOut$V1LipSyncCreateBody = z
73
76
  maxFpsLimit: z.number().optional(),
74
77
  name: z.string().optional(),
75
78
  startSeconds: z.number(),
79
+ style: v1_lip_sync_create_body_style_1.Schemas$V1LipSyncCreateBodyStyle.out.optional(),
76
80
  width: z.number().int().nullable().optional(),
77
81
  })
78
82
  .transform((obj) => {
@@ -83,6 +87,7 @@ const SchemaOut$V1LipSyncCreateBody = z
83
87
  maxFpsLimit: "max_fps_limit",
84
88
  name: "name",
85
89
  startSeconds: "start_seconds",
90
+ style: "style",
86
91
  width: "width",
87
92
  });
88
93
  });
@@ -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" | "Bold Anime" | "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" | "Realistic Anime" | "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,30 +3,30 @@ 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" | "Bold Anime" | "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" | "Realistic Anime" | "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.
10
10
  * * `Flat 2D Anime` - best for a flat illustration style that's common in most anime.
11
11
  * * `default` - use the default recommended model for the selected art style.
12
12
  */
13
- model: "Absolute Reality" | "Dreamshaper" | "Flat 2D Anime" | "default";
13
+ model?: ("Absolute Reality" | "Dreamshaper" | "Flat 2D Anime" | "default") | undefined;
14
14
  /**
15
15
  * The prompt used for the video. Prompt is required if `prompt_type` is `custom` or `append_default`. If `prompt_type` is `default`, then the `prompt` value passed will be ignored.
16
16
  */
17
- prompt: string | null;
17
+ prompt?: string | null | undefined;
18
18
  /**
19
19
  * * `default` - Use the default recommended prompt for the art style.
20
20
  * * `custom` - Only use the prompt passed in the API. Note: for v1, lora prompt will still be auto added to apply the art style properly.
21
21
  * * `append_default` - Add the default recommended prompt to the end of the prompt passed in the API.
22
22
  */
23
- promptType: "append_default" | "custom" | "default";
23
+ promptType?: ("append_default" | "custom" | "default") | undefined;
24
24
  /**
25
25
  * * `v1` - more detail, closer prompt adherence, and frame-by-frame previews.
26
26
  * * `v2` - faster, more consistent, and less noisy.
27
27
  * * `default` - use the default version for the selected art style.
28
28
  */
29
- version: "default" | "v1" | "v2";
29
+ version?: ("default" | "v1" | "v2") | undefined;
30
30
  };
31
31
  /**
32
32
  * @internal
@@ -34,11 +34,11 @@ 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";
38
- model: "Absolute Reality" | "Dreamshaper" | "Flat 2D Anime" | "default";
39
- prompt: string | null;
40
- prompt_type: "append_default" | "custom" | "default";
41
- version: "default" | "v1" | "v2";
37
+ art_style: "3D Render" | "Airbender" | "Android" | "Anime Warrior" | "Armored Knight" | "Assassin's Creed" | "Avatar" | "Black Spiderman" | "Boba Fett" | "Bold Anime" | "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" | "Realistic Anime" | "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
+ model?: ("Absolute Reality" | "Dreamshaper" | "Flat 2D Anime" | "default") | undefined;
39
+ prompt?: string | null | undefined;
40
+ prompt_type?: ("append_default" | "custom" | "default") | undefined;
41
+ version?: ("default" | "v1" | "v2") | undefined;
42
42
  };
43
43
  export declare const Schemas$V1VideoToVideoCreateBodyStyle: {
44
44
  in: z.ZodType<V1VideoToVideoCreateBodyStyle, z.ZodTypeDef, unknown>;
@@ -51,6 +51,7 @@ const SchemaIn$V1VideoToVideoCreateBodyStyle = z
51
51
  "Avatar",
52
52
  "Black Spiderman",
53
53
  "Boba Fett",
54
+ "Bold Anime",
54
55
  "Celestial Skin",
55
56
  "Chinese Swordsmen",
56
57
  "Clay",
@@ -85,10 +86,12 @@ const SchemaIn$V1VideoToVideoCreateBodyStyle = z
85
86
  "Oil Painting",
86
87
  "On Fire",
87
88
  "Origami",
89
+ "Painterly Anime",
88
90
  "Pixar",
89
91
  "Pixel",
90
92
  "Power Armor",
91
93
  "Power Ranger",
94
+ "Realistic Anime",
92
95
  "Retro Anime",
93
96
  "Retro Sci-Fi",
94
97
  "Samurai",
@@ -108,15 +111,12 @@ const SchemaIn$V1VideoToVideoCreateBodyStyle = z
108
111
  "Wu Kong",
109
112
  "Zelda",
110
113
  ]),
111
- model: z.enum([
112
- "Absolute Reality",
113
- "Dreamshaper",
114
- "Flat 2D Anime",
115
- "default",
116
- ]),
117
- prompt: z.string().nullable(),
118
- prompt_type: z.enum(["append_default", "custom", "default"]),
119
- version: z.enum(["default", "v1", "v2"]),
114
+ model: z
115
+ .enum(["Absolute Reality", "Dreamshaper", "Flat 2D Anime", "default"])
116
+ .optional(),
117
+ prompt: z.string().nullable().optional(),
118
+ prompt_type: z.enum(["append_default", "custom", "default"]).optional(),
119
+ version: z.enum(["default", "v1", "v2"]).optional(),
120
120
  })
121
121
  .transform((obj) => {
122
122
  return (0, make_api_request_js_1.zodTransform)(obj, {
@@ -143,6 +143,7 @@ const SchemaOut$V1VideoToVideoCreateBodyStyle = z
143
143
  "Avatar",
144
144
  "Black Spiderman",
145
145
  "Boba Fett",
146
+ "Bold Anime",
146
147
  "Celestial Skin",
147
148
  "Chinese Swordsmen",
148
149
  "Clay",
@@ -177,10 +178,12 @@ 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",
183
185
  "Power Ranger",
186
+ "Realistic Anime",
184
187
  "Retro Anime",
185
188
  "Retro Sci-Fi",
186
189
  "Samurai",
@@ -200,15 +203,12 @@ const SchemaOut$V1VideoToVideoCreateBodyStyle = z
200
203
  "Wu Kong",
201
204
  "Zelda",
202
205
  ]),
203
- model: z.enum([
204
- "Absolute Reality",
205
- "Dreamshaper",
206
- "Flat 2D Anime",
207
- "default",
208
- ]),
209
- prompt: z.string().nullable(),
210
- promptType: z.enum(["append_default", "custom", "default"]),
211
- version: z.enum(["default", "v1", "v2"]),
206
+ model: z
207
+ .enum(["Absolute Reality", "Dreamshaper", "Flat 2D Anime", "default"])
208
+ .optional(),
209
+ prompt: z.string().nullable().optional(),
210
+ promptType: z.enum(["append_default", "custom", "default"]).optional(),
211
+ version: z.enum(["default", "v1", "v2"]).optional(),
212
212
  })
213
213
  .transform((obj) => {
214
214
  return (0, make_api_request_js_1.zodTransform)(obj, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "magic-hour",
3
- "version": "0.39.0",
3
+ "version": "0.41.0",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {
@@ -34,15 +34,16 @@
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",
42
45
  "tsc-alias": "^1.8.10",
43
- "typescript": "^5.2.0",
44
- "@types/qs": "6.9.8",
45
- "@types/url-join": "4.0.1"
46
+ "typescript": "^5.2.0"
46
47
  },
47
48
  "bugs": "https://github.com/magichourhq/magic-hour-node/issues",
48
49
  "description": "Node SDK for Magic Hour API",