magic-hour 0.40.0 → 0.42.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/README.md +10 -0
- package/dist/environment.d.ts +1 -1
- package/dist/environment.js +1 -1
- package/dist/resources/v1/ai-voice-generator/index.d.ts +2 -0
- package/dist/resources/v1/ai-voice-generator/index.js +5 -0
- package/dist/resources/v1/ai-voice-generator/request-types.d.ts +28 -0
- package/dist/resources/v1/ai-voice-generator/request-types.js +72 -0
- package/dist/resources/v1/ai-voice-generator/resource-client.d.ts +43 -0
- package/dist/resources/v1/ai-voice-generator/resource-client.js +90 -0
- package/dist/resources/v1/audio-projects/index.d.ts +2 -0
- package/dist/resources/v1/audio-projects/index.js +5 -0
- package/dist/resources/v1/audio-projects/request-types.d.ts +43 -0
- package/dist/resources/v1/audio-projects/request-types.js +96 -0
- package/dist/resources/v1/audio-projects/resource-client.d.ts +53 -0
- package/dist/resources/v1/audio-projects/resource-client.js +119 -0
- package/dist/resources/v1/audio-projects/resource-client.test.d.ts +1 -0
- package/dist/resources/v1/audio-projects/resource-client.test.js +552 -0
- package/dist/resources/v1/index.d.ts +2 -0
- package/dist/resources/v1/index.js +3 -1
- package/dist/resources/v1/lip-sync/request-types.d.ts +6 -0
- package/dist/resources/v1/lip-sync/request-types.js +5 -0
- package/dist/resources/v1/resource-client.d.ts +6 -0
- package/dist/resources/v1/resource-client.js +12 -0
- package/dist/types/index.d.ts +10 -0
- package/dist/types/v1-ai-talking-photo-create-body-style-generation-mode-enum.d.ts +5 -3
- package/dist/types/v1-ai-talking-photo-create-body-style.d.ts +6 -4
- package/dist/types/v1-ai-talking-photo-create-body-style.js +6 -2
- package/dist/types/v1-ai-voice-generator-create-body-style-voice-name-enum.d.ts +4 -0
- package/dist/types/v1-ai-voice-generator-create-body-style-voice-name-enum.js +2 -0
- package/dist/types/v1-ai-voice-generator-create-body-style.d.ts +27 -0
- package/dist/types/v1-ai-voice-generator-create-body-style.js +93 -0
- package/dist/types/v1-ai-voice-generator-create-body.d.ts +28 -0
- package/dist/types/v1-ai-voice-generator-create-body.js +72 -0
- package/dist/types/v1-ai-voice-generator-create-response.d.ts +29 -0
- package/dist/types/v1-ai-voice-generator-create-response.js +71 -0
- package/dist/types/v1-audio-projects-get-response-downloads-item.d.ts +21 -0
- package/dist/types/v1-audio-projects-get-response-downloads-item.js +71 -0
- package/dist/types/v1-audio-projects-get-response-error.d.ts +27 -0
- package/dist/types/v1-audio-projects-get-response-error.js +71 -0
- package/dist/types/v1-audio-projects-get-response-status-enum.d.ts +4 -0
- package/dist/types/v1-audio-projects-get-response-status-enum.js +2 -0
- package/dist/types/v1-audio-projects-get-response.d.ts +60 -0
- package/dist/types/v1-audio-projects-get-response.js +115 -0
- package/dist/types/v1-lip-sync-create-body-style-generation-mode-enum.d.ts +10 -0
- package/dist/types/v1-lip-sync-create-body-style-generation-mode-enum.js +2 -0
- package/dist/types/v1-lip-sync-create-body-style.d.ts +28 -0
- package/dist/types/v1-lip-sync-create-body-style.js +67 -0
- package/dist/types/v1-lip-sync-create-body.d.ts +6 -0
- package/dist/types/v1-lip-sync-create-body.js +5 -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 +10 -10
- package/dist/types/v1-video-to-video-create-body-style.js +16 -18
- package/package.json +1 -1
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { External$V1AudioProjectsGetResponseDownloadsItem, V1AudioProjectsGetResponseDownloadsItem } from "./v1-audio-projects-get-response-downloads-item";
|
|
3
|
+
import { External$V1AudioProjectsGetResponseError, V1AudioProjectsGetResponseError } from "./v1-audio-projects-get-response-error";
|
|
4
|
+
/**
|
|
5
|
+
* Success
|
|
6
|
+
*/
|
|
7
|
+
export type V1AudioProjectsGetResponse = {
|
|
8
|
+
createdAt: string;
|
|
9
|
+
/**
|
|
10
|
+
* The amount of credits deducted from your account to generate the audio. We charge credits right when the request is made.
|
|
11
|
+
*
|
|
12
|
+
* If an error occurred while generating the audio, credits will be refunded and this field will be updated to include the refund.
|
|
13
|
+
*/
|
|
14
|
+
creditsCharged: number;
|
|
15
|
+
downloads: V1AudioProjectsGetResponseDownloadsItem[];
|
|
16
|
+
/**
|
|
17
|
+
* Indicates whether the resource is deleted
|
|
18
|
+
*/
|
|
19
|
+
enabled: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* In the case of an error, this object will contain the error encountered during video render
|
|
22
|
+
*/
|
|
23
|
+
error: V1AudioProjectsGetResponseError | null;
|
|
24
|
+
/**
|
|
25
|
+
* Unique ID of the audio. This value can be used in the [get audio project API](https://docs.magichour.ai/api-reference/audio-projects/get-audio-details) to fetch additional details such as status
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* The name of the audio.
|
|
30
|
+
*/
|
|
31
|
+
name: string | null;
|
|
32
|
+
/**
|
|
33
|
+
* The status of the audio.
|
|
34
|
+
*/
|
|
35
|
+
status: "canceled" | "complete" | "draft" | "error" | "queued" | "rendering";
|
|
36
|
+
/**
|
|
37
|
+
* The type of the audio project. Possible values are VOICE_GENERATOR, VOICE_CHANGER
|
|
38
|
+
*/
|
|
39
|
+
type: string;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* @internal
|
|
43
|
+
* V1AudioProjectsGetResponse without any key transformation, this is what
|
|
44
|
+
* we expect to come in as network data
|
|
45
|
+
*/
|
|
46
|
+
export type External$V1AudioProjectsGetResponse = {
|
|
47
|
+
created_at: string;
|
|
48
|
+
credits_charged: number;
|
|
49
|
+
downloads: External$V1AudioProjectsGetResponseDownloadsItem[];
|
|
50
|
+
enabled: boolean;
|
|
51
|
+
error: External$V1AudioProjectsGetResponseError | null;
|
|
52
|
+
id: string;
|
|
53
|
+
name: string | null;
|
|
54
|
+
status: "canceled" | "complete" | "draft" | "error" | "queued" | "rendering";
|
|
55
|
+
type: string;
|
|
56
|
+
};
|
|
57
|
+
export declare const Schemas$V1AudioProjectsGetResponse: {
|
|
58
|
+
in: z.ZodType<V1AudioProjectsGetResponse, z.ZodTypeDef, unknown>;
|
|
59
|
+
out: z.ZodType<External$V1AudioProjectsGetResponse, z.ZodTypeDef, V1AudioProjectsGetResponse>;
|
|
60
|
+
};
|
|
@@ -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,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" | "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";
|
|
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" | "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";
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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" | "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
|
-
model
|
|
39
|
-
prompt
|
|
40
|
-
prompt_type
|
|
41
|
-
version
|
|
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",
|
|
@@ -90,6 +91,7 @@ const SchemaIn$V1VideoToVideoCreateBodyStyle = z
|
|
|
90
91
|
"Pixel",
|
|
91
92
|
"Power Armor",
|
|
92
93
|
"Power Ranger",
|
|
94
|
+
"Realistic Anime",
|
|
93
95
|
"Retro Anime",
|
|
94
96
|
"Retro Sci-Fi",
|
|
95
97
|
"Samurai",
|
|
@@ -109,15 +111,12 @@ const SchemaIn$V1VideoToVideoCreateBodyStyle = z
|
|
|
109
111
|
"Wu Kong",
|
|
110
112
|
"Zelda",
|
|
111
113
|
]),
|
|
112
|
-
model: z
|
|
113
|
-
"Absolute Reality",
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
]),
|
|
118
|
-
prompt: z.string().nullable(),
|
|
119
|
-
prompt_type: z.enum(["append_default", "custom", "default"]),
|
|
120
|
-
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(),
|
|
121
120
|
})
|
|
122
121
|
.transform((obj) => {
|
|
123
122
|
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
@@ -144,6 +143,7 @@ const SchemaOut$V1VideoToVideoCreateBodyStyle = z
|
|
|
144
143
|
"Avatar",
|
|
145
144
|
"Black Spiderman",
|
|
146
145
|
"Boba Fett",
|
|
146
|
+
"Bold Anime",
|
|
147
147
|
"Celestial Skin",
|
|
148
148
|
"Chinese Swordsmen",
|
|
149
149
|
"Clay",
|
|
@@ -183,6 +183,7 @@ const SchemaOut$V1VideoToVideoCreateBodyStyle = z
|
|
|
183
183
|
"Pixel",
|
|
184
184
|
"Power Armor",
|
|
185
185
|
"Power Ranger",
|
|
186
|
+
"Realistic Anime",
|
|
186
187
|
"Retro Anime",
|
|
187
188
|
"Retro Sci-Fi",
|
|
188
189
|
"Samurai",
|
|
@@ -202,15 +203,12 @@ const SchemaOut$V1VideoToVideoCreateBodyStyle = z
|
|
|
202
203
|
"Wu Kong",
|
|
203
204
|
"Zelda",
|
|
204
205
|
]),
|
|
205
|
-
model: z
|
|
206
|
-
"Absolute Reality",
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
]),
|
|
211
|
-
prompt: z.string().nullable(),
|
|
212
|
-
promptType: z.enum(["append_default", "custom", "default"]),
|
|
213
|
-
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(),
|
|
214
212
|
})
|
|
215
213
|
.transform((obj) => {
|
|
216
214
|
return (0, make_api_request_js_1.zodTransform)(obj, {
|