magic-hour 0.88.0 → 0.89.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 +4 -0
- package/dist/environment.d.ts +1 -1
- package/dist/environment.js +1 -1
- package/dist/resources/v1/ai-image-generator/request-types.d.ts +7 -2
- package/dist/resources/v1/ai-image-generator/request-types.js +2 -0
- package/dist/resources/v1/ai-video-editor/request-types.d.ts +11 -3
- package/dist/resources/v1/ai-video-editor/request-types.js +11 -2
- package/dist/resources/v1/face-detection/resource-client.d.ts +4 -0
- package/dist/resources/v1/face-detection/resource-client.js +2 -0
- package/dist/resources/v1/index.d.ts +1 -0
- package/dist/resources/v1/index.js +2 -1
- package/dist/resources/v1/resource-client.d.ts +3 -0
- package/dist/resources/v1/resource-client.js +5 -0
- package/dist/resources/v1/text-to-video/request-types.d.ts +4 -2
- package/dist/resources/v1/video-to-video/request-types.d.ts +7 -6
- package/dist/resources/v1/video-to-video/request-types.js +4 -0
- package/dist/resources/v1/video-to-video/resource-client.d.ts +6 -0
- package/dist/resources/v1/video-to-video/resource-client.js +6 -0
- package/dist/resources/v1/voices/index.d.ts +2 -0
- package/dist/resources/v1/voices/index.js +5 -0
- package/dist/resources/v1/voices/request-types.d.ts +27 -0
- package/dist/resources/v1/voices/request-types.js +71 -0
- package/dist/resources/v1/voices/resource-client.d.ts +14 -0
- package/dist/resources/v1/voices/resource-client.js +75 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/types/v1-ai-image-generator-create-body-model-enum.d.ts +5 -1
- package/dist/types/v1-ai-image-generator-create-body-resolution-enum.d.ts +1 -0
- package/dist/types/v1-ai-image-generator-create-body.d.ts +7 -2
- package/dist/types/v1-ai-image-generator-create-body.js +2 -0
- package/dist/types/v1-ai-video-editor-create-body-references-item.d.ts +29 -0
- package/dist/types/v1-ai-video-editor-create-body-references-item.js +71 -0
- package/dist/types/v1-ai-video-editor-create-body-resolution-enum.d.ts +2 -2
- package/dist/types/v1-ai-video-editor-create-body.d.ts +11 -3
- package/dist/types/v1-ai-video-editor-create-body.js +11 -2
- package/dist/types/v1-ai-voice-cloner-create-body-style-language-enum.d.ts +4 -0
- package/dist/types/v1-ai-voice-cloner-create-body-style-language-enum.js +2 -0
- package/dist/types/v1-ai-voice-cloner-create-body-style.d.ts +10 -0
- package/dist/types/v1-ai-voice-cloner-create-body-style.js +178 -0
- package/dist/types/v1-ai-voice-generator-create-body-style-language-enum.d.ts +4 -0
- package/dist/types/v1-ai-voice-generator-create-body-style-language-enum.js +2 -0
- package/dist/types/v1-ai-voice-generator-create-body-style-voice-name-enum.d.ts +2 -2
- package/dist/types/v1-ai-voice-generator-create-body-style.d.ts +13 -3
- package/dist/types/v1-ai-voice-generator-create-body-style.js +1150 -0
- package/dist/types/v1-face-detection-get-response-error.d.ts +27 -0
- package/dist/types/v1-face-detection-get-response-error.js +71 -0
- package/dist/types/v1-face-detection-get-response.d.ts +6 -0
- package/dist/types/v1-face-detection-get-response.js +5 -0
- package/dist/types/v1-text-to-video-create-body.d.ts +4 -2
- package/dist/types/v1-video-to-video-create-body-assets.d.ts +5 -0
- package/dist/types/v1-video-to-video-create-body-assets.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-model-enum.d.ts +2 -1
- package/dist/types/v1-video-to-video-create-body-style-version-enum.d.ts +3 -2
- package/dist/types/v1-video-to-video-create-body-style.d.ts +9 -7
- package/dist/types/v1-video-to-video-create-body-style.js +688 -2
- package/dist/types/v1-video-to-video-create-body.d.ts +7 -6
- package/dist/types/v1-video-to-video-create-body.js +4 -0
- package/dist/types/v1-voices-list-response-voices-item.d.ts +37 -0
- package/dist/types/v1-voices-list-response-voices-item.js +79 -0
- package/dist/types/v1-voices-list-response.d.ts +25 -0
- package/dist/types/v1-voices-list-response.js +72 -0
- package/package.json +1 -1
|
@@ -65,6 +65,10 @@ export type V1AiImageGeneratorCreateBody = {
|
|
|
65
65
|
* - Supported resolutions: 640px, 1k, 2k, 4k
|
|
66
66
|
* - Available for tiers: creator, pro, business
|
|
67
67
|
* - Image count allowed: 1, 2, 3, 4
|
|
68
|
+
* - `seedream-v4.5` - from 50 credits/image
|
|
69
|
+
* - Supported resolutions: 640px, 1k, 2k, 4k
|
|
70
|
+
* - Available for tiers: creator, pro, business
|
|
71
|
+
* - Image count allowed: 1, 2, 3, 4
|
|
68
72
|
* - `seedream-v5-pro` - from 75 credits/image
|
|
69
73
|
* - Supported resolutions: 640px, 1k, 2k
|
|
70
74
|
* - Available for tiers: creator, pro, business
|
|
@@ -78,7 +82,7 @@ export type V1AiImageGeneratorCreateBody = {
|
|
|
78
82
|
* - `seedream` - Use `seedream-v4` instead.
|
|
79
83
|
*
|
|
80
84
|
*/
|
|
81
|
-
model?: ("default" | "flux-2-klein" | "flux-schnell" | "gpt-image-2" | "gpt-image-2.5-flare" | "krea-2" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-2.1" | "nano-banana-pro" | "qwen-image-2.1" | "seedream" | "seedream-v4" | "seedream-v5-pro" | "z-image-turbo") | undefined;
|
|
85
|
+
model?: ("default" | "flux-2-klein" | "flux-schnell" | "gpt-image-2" | "gpt-image-2.5-flare" | "krea-2" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-2.1" | "nano-banana-pro" | "qwen-image-2.1" | "seedream" | "seedream-v4" | "seedream-v4.5" | "seedream-v5-pro" | "z-image-turbo") | undefined;
|
|
82
86
|
/**
|
|
83
87
|
* Give your image a custom name for easy identification.
|
|
84
88
|
*/
|
|
@@ -112,6 +116,7 @@ export type V1AiImageGeneratorCreateBody = {
|
|
|
112
116
|
* - `nano-banana-pro` - 1k, 2k, 4k
|
|
113
117
|
* - `qwen-image-2.1` - 640px, 1k, 2k
|
|
114
118
|
* - `seedream-v4` - 640px, 1k, 2k, 4k
|
|
119
|
+
* - `seedream-v4.5` - 640px, 1k, 2k, 4k
|
|
115
120
|
* - `seedream-v5-pro` - 640px, 1k, 2k
|
|
116
121
|
* - `z-image-turbo` - 640px, 1k, 2k
|
|
117
122
|
*
|
|
@@ -131,7 +136,7 @@ export type V1AiImageGeneratorCreateBody = {
|
|
|
131
136
|
export type External$V1AiImageGeneratorCreateBody = {
|
|
132
137
|
aspect_ratio?: ("16:9" | "1:1" | "9:16") | undefined;
|
|
133
138
|
image_count: number;
|
|
134
|
-
model?: ("default" | "flux-2-klein" | "flux-schnell" | "gpt-image-2" | "gpt-image-2.5-flare" | "krea-2" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-2.1" | "nano-banana-pro" | "qwen-image-2.1" | "seedream" | "seedream-v4" | "seedream-v5-pro" | "z-image-turbo") | undefined;
|
|
139
|
+
model?: ("default" | "flux-2-klein" | "flux-schnell" | "gpt-image-2" | "gpt-image-2.5-flare" | "krea-2" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-2.1" | "nano-banana-pro" | "qwen-image-2.1" | "seedream" | "seedream-v4" | "seedream-v4.5" | "seedream-v5-pro" | "z-image-turbo") | undefined;
|
|
135
140
|
name?: string | undefined;
|
|
136
141
|
orientation?: ("landscape" | "portrait" | "square") | undefined;
|
|
137
142
|
resolution?: ("1k" | "2k" | "4k" | "640px" | "auto") | undefined;
|
|
@@ -60,6 +60,7 @@ const SchemaIn$V1AiImageGeneratorCreateBody = z
|
|
|
60
60
|
"qwen-image-2.1",
|
|
61
61
|
"seedream",
|
|
62
62
|
"seedream-v4",
|
|
63
|
+
"seedream-v4.5",
|
|
63
64
|
"seedream-v5-pro",
|
|
64
65
|
"z-image-turbo",
|
|
65
66
|
])
|
|
@@ -104,6 +105,7 @@ const SchemaOut$V1AiImageGeneratorCreateBody = z
|
|
|
104
105
|
"qwen-image-2.1",
|
|
105
106
|
"seedream",
|
|
106
107
|
"seedream-v4",
|
|
108
|
+
"seedream-v4.5",
|
|
107
109
|
"seedream-v5-pro",
|
|
108
110
|
"z-image-turbo",
|
|
109
111
|
])
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* V1AiVideoEditorCreateBodyReferencesItem
|
|
4
|
+
*/
|
|
5
|
+
export type V1AiVideoEditorCreateBodyReferencesItem = {
|
|
6
|
+
/**
|
|
7
|
+
* This value is either
|
|
8
|
+
* - a direct URL to the file. The URL path must end in a supported file extension.
|
|
9
|
+
* - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
|
|
10
|
+
*
|
|
11
|
+
* See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.
|
|
12
|
+
*
|
|
13
|
+
*/
|
|
14
|
+
filePath: string;
|
|
15
|
+
name: string;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* @internal
|
|
19
|
+
* V1AiVideoEditorCreateBodyReferencesItem without any key transformation, this is what
|
|
20
|
+
* we expect to come in as network data
|
|
21
|
+
*/
|
|
22
|
+
export type External$V1AiVideoEditorCreateBodyReferencesItem = {
|
|
23
|
+
file_path: string;
|
|
24
|
+
name: string;
|
|
25
|
+
};
|
|
26
|
+
export declare const Schemas$V1AiVideoEditorCreateBodyReferencesItem: {
|
|
27
|
+
in: z.ZodType<V1AiVideoEditorCreateBodyReferencesItem, z.ZodTypeDef, unknown>;
|
|
28
|
+
out: z.ZodType<External$V1AiVideoEditorCreateBodyReferencesItem, z.ZodTypeDef, V1AiVideoEditorCreateBodyReferencesItem>;
|
|
29
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
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$V1AiVideoEditorCreateBodyReferencesItem = 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 V1AiVideoEditorCreateBodyReferencesItem
|
|
41
|
+
*/
|
|
42
|
+
const SchemaIn$V1AiVideoEditorCreateBodyReferencesItem = z
|
|
43
|
+
.object({
|
|
44
|
+
file_path: z.string(),
|
|
45
|
+
name: z.string(),
|
|
46
|
+
})
|
|
47
|
+
.transform((obj) => {
|
|
48
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
49
|
+
file_path: "filePath",
|
|
50
|
+
name: "name",
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
/**
|
|
54
|
+
* @internal
|
|
55
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$V1AiVideoEditorCreateBodyReferencesItem
|
|
56
|
+
*/
|
|
57
|
+
const SchemaOut$V1AiVideoEditorCreateBodyReferencesItem = z
|
|
58
|
+
.object({
|
|
59
|
+
filePath: z.string(),
|
|
60
|
+
name: z.string(),
|
|
61
|
+
})
|
|
62
|
+
.transform((obj) => {
|
|
63
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
64
|
+
filePath: "file_path",
|
|
65
|
+
name: "name",
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
exports.Schemas$V1AiVideoEditorCreateBodyReferencesItem = {
|
|
69
|
+
in: SchemaIn$V1AiVideoEditorCreateBodyReferencesItem,
|
|
70
|
+
out: SchemaOut$V1AiVideoEditorCreateBodyReferencesItem,
|
|
71
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Output resolution. Defaults to `480p` for free tier and `720p` for paid. Supported per model: `gemini-omni-1.1`: 720p, 1080p; `wan-3.0`: 480p, 720p, 1080p; `ltx-2.5`: 480p, 720p, 1080p.
|
|
2
|
+
* Output resolution. Defaults to `480p` for free tier and `720p` for paid. Supported per model: `gemini-omni-1.1`: 360p, 720p, 1080p, 4k; `wan-3.0`: 480p, 720p, 1080p; `ltx-2.5`: 480p, 720p, 1080p.
|
|
3
3
|
*/
|
|
4
|
-
export type V1AiVideoEditorCreateBodyResolutionEnum = "1080p" | "480p" | "720p";
|
|
4
|
+
export type V1AiVideoEditorCreateBodyResolutionEnum = "1080p" | "360p" | "480p" | "4k" | "720p";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { External$V1AiVideoEditorCreateBodyAssets, V1AiVideoEditorCreateBodyAssets } from "./v1-ai-video-editor-create-body-assets";
|
|
3
|
+
import { External$V1AiVideoEditorCreateBodyReferencesItem, V1AiVideoEditorCreateBodyReferencesItem } from "./v1-ai-video-editor-create-body-references-item";
|
|
3
4
|
import { External$V1AiVideoEditorCreateBodyStyle, V1AiVideoEditorCreateBodyStyle } from "./v1-ai-video-editor-create-body-style";
|
|
4
5
|
/**
|
|
5
6
|
* V1AiVideoEditorCreateBody
|
|
@@ -22,9 +23,15 @@ export type V1AiVideoEditorCreateBody = {
|
|
|
22
23
|
*/
|
|
23
24
|
name?: string | undefined;
|
|
24
25
|
/**
|
|
25
|
-
*
|
|
26
|
+
* Name references without @ and refer to them as @name in style.prompt. Names must be unique, ignoring case. Maximum 10 references total. Omit for no references.
|
|
27
|
+
*
|
|
28
|
+
* Reference images for gemini-omni-1.1, wan-3.0, gemini-omni.
|
|
26
29
|
*/
|
|
27
|
-
|
|
30
|
+
references?: V1AiVideoEditorCreateBodyReferencesItem[] | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Output resolution. Defaults to `480p` for free tier and `720p` for paid. Supported per model: `gemini-omni-1.1`: 360p, 720p, 1080p, 4k; `wan-3.0`: 480p, 720p, 1080p; `ltx-2.5`: 480p, 720p, 1080p.
|
|
33
|
+
*/
|
|
34
|
+
resolution?: ("1080p" | "360p" | "480p" | "4k" | "720p") | undefined;
|
|
28
35
|
/**
|
|
29
36
|
* Start time of your clip (seconds). Must be ≥ 0.
|
|
30
37
|
*/
|
|
@@ -41,7 +48,8 @@ export type External$V1AiVideoEditorCreateBody = {
|
|
|
41
48
|
end_seconds: number;
|
|
42
49
|
model?: ("gemini-omni" | "gemini-omni-1.1" | "ltx-2.3" | "ltx-2.5" | "wan-3.0") | undefined;
|
|
43
50
|
name?: string | undefined;
|
|
44
|
-
|
|
51
|
+
references?: External$V1AiVideoEditorCreateBodyReferencesItem[] | undefined;
|
|
52
|
+
resolution?: ("1080p" | "360p" | "480p" | "4k" | "720p") | undefined;
|
|
45
53
|
start_seconds?: number | undefined;
|
|
46
54
|
style: External$V1AiVideoEditorCreateBodyStyle;
|
|
47
55
|
};
|
|
@@ -37,6 +37,7 @@ exports.Schemas$V1AiVideoEditorCreateBody = 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_ai_video_editor_create_body_assets_1 = require("./v1-ai-video-editor-create-body-assets");
|
|
40
|
+
const v1_ai_video_editor_create_body_references_item_1 = require("./v1-ai-video-editor-create-body-references-item");
|
|
40
41
|
const v1_ai_video_editor_create_body_style_1 = require("./v1-ai-video-editor-create-body-style");
|
|
41
42
|
/**
|
|
42
43
|
* Takes network data, validates it, and transforms keys to match typescript object V1AiVideoEditorCreateBody
|
|
@@ -49,7 +50,10 @@ const SchemaIn$V1AiVideoEditorCreateBody = z
|
|
|
49
50
|
.enum(["gemini-omni", "gemini-omni-1.1", "ltx-2.3", "ltx-2.5", "wan-3.0"])
|
|
50
51
|
.optional(),
|
|
51
52
|
name: z.string().optional(),
|
|
52
|
-
|
|
53
|
+
references: z
|
|
54
|
+
.array(v1_ai_video_editor_create_body_references_item_1.Schemas$V1AiVideoEditorCreateBodyReferencesItem.in)
|
|
55
|
+
.optional(),
|
|
56
|
+
resolution: z.enum(["1080p", "360p", "480p", "4k", "720p"]).optional(),
|
|
53
57
|
start_seconds: z.number().optional(),
|
|
54
58
|
style: v1_ai_video_editor_create_body_style_1.Schemas$V1AiVideoEditorCreateBodyStyle.in,
|
|
55
59
|
})
|
|
@@ -59,6 +63,7 @@ const SchemaIn$V1AiVideoEditorCreateBody = z
|
|
|
59
63
|
end_seconds: "endSeconds",
|
|
60
64
|
model: "model",
|
|
61
65
|
name: "name",
|
|
66
|
+
references: "references",
|
|
62
67
|
resolution: "resolution",
|
|
63
68
|
start_seconds: "startSeconds",
|
|
64
69
|
style: "style",
|
|
@@ -76,7 +81,10 @@ const SchemaOut$V1AiVideoEditorCreateBody = z
|
|
|
76
81
|
.enum(["gemini-omni", "gemini-omni-1.1", "ltx-2.3", "ltx-2.5", "wan-3.0"])
|
|
77
82
|
.optional(),
|
|
78
83
|
name: z.string().optional(),
|
|
79
|
-
|
|
84
|
+
references: z
|
|
85
|
+
.array(v1_ai_video_editor_create_body_references_item_1.Schemas$V1AiVideoEditorCreateBodyReferencesItem.out)
|
|
86
|
+
.optional(),
|
|
87
|
+
resolution: z.enum(["1080p", "360p", "480p", "4k", "720p"]).optional(),
|
|
80
88
|
startSeconds: z.number().optional(),
|
|
81
89
|
style: v1_ai_video_editor_create_body_style_1.Schemas$V1AiVideoEditorCreateBodyStyle.out,
|
|
82
90
|
})
|
|
@@ -86,6 +94,7 @@ const SchemaOut$V1AiVideoEditorCreateBody = z
|
|
|
86
94
|
endSeconds: "end_seconds",
|
|
87
95
|
model: "model",
|
|
88
96
|
name: "name",
|
|
97
|
+
references: "references",
|
|
89
98
|
resolution: "resolution",
|
|
90
99
|
startSeconds: "start_seconds",
|
|
91
100
|
style: "style",
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Spoken language. Use a canonical lowercase language name, or auto to detect the language from the text. Defaults to auto.
|
|
3
|
+
*/
|
|
4
|
+
export type V1AiVoiceClonerCreateBodyStyleLanguageEnum = "afrikaans" | "albanian" | "amharic" | "arabic" | "armenian" | "assamese" | "auto" | "azerbaijani" | "basque" | "belarusian" | "bengali" | "bulgarian" | "burmese" | "cantonese" | "catalan" | "cebuano" | "chinese" | "croatian" | "czech" | "danish" | "dutch" | "english" | "estonian" | "finnish" | "french" | "galician" | "georgian" | "german" | "greek" | "gujarati" | "haitian creole" | "hebrew" | "hindi" | "hungarian" | "icelandic" | "indonesian" | "italian" | "japanese" | "javanese" | "kannada" | "kazakh" | "konkani" | "korean" | "lao" | "latvian" | "lithuanian" | "luxembourgish" | "macedonian" | "maithili" | "malagasy" | "malay" | "malayalam" | "marathi" | "mongolian" | "nepali" | "norwegian" | "odia" | "pashto" | "persian" | "polish" | "portuguese" | "punjabi" | "romanian" | "russian" | "serbian" | "sindhi" | "sinhala" | "slovak" | "slovenian" | "spanish" | "swahili" | "swedish" | "tagalog" | "tamil" | "telugu" | "thai" | "turkish" | "ukrainian" | "urdu" | "uzbek" | "vietnamese" | "welsh";
|
|
@@ -3,10 +3,18 @@ import * as z from "zod";
|
|
|
3
3
|
* V1AiVoiceClonerCreateBodyStyle
|
|
4
4
|
*/
|
|
5
5
|
export type V1AiVoiceClonerCreateBodyStyle = {
|
|
6
|
+
/**
|
|
7
|
+
* Spoken language. Use a canonical lowercase language name, or auto to detect the language from the text. Defaults to auto.
|
|
8
|
+
*/
|
|
9
|
+
language?: ("afrikaans" | "albanian" | "amharic" | "arabic" | "armenian" | "assamese" | "auto" | "azerbaijani" | "basque" | "belarusian" | "bengali" | "bulgarian" | "burmese" | "cantonese" | "catalan" | "cebuano" | "chinese" | "croatian" | "czech" | "danish" | "dutch" | "english" | "estonian" | "finnish" | "french" | "galician" | "georgian" | "german" | "greek" | "gujarati" | "haitian creole" | "hebrew" | "hindi" | "hungarian" | "icelandic" | "indonesian" | "italian" | "japanese" | "javanese" | "kannada" | "kazakh" | "konkani" | "korean" | "lao" | "latvian" | "lithuanian" | "luxembourgish" | "macedonian" | "maithili" | "malagasy" | "malay" | "malayalam" | "marathi" | "mongolian" | "nepali" | "norwegian" | "odia" | "pashto" | "persian" | "polish" | "portuguese" | "punjabi" | "romanian" | "russian" | "serbian" | "sindhi" | "sinhala" | "slovak" | "slovenian" | "spanish" | "swahili" | "swedish" | "tagalog" | "tamil" | "telugu" | "thai" | "turkish" | "ukrainian" | "urdu" | "uzbek" | "vietnamese" | "welsh") | undefined;
|
|
6
10
|
/**
|
|
7
11
|
* Text used to generate speech from the cloned voice. The character limit is 5000 characters.
|
|
8
12
|
*/
|
|
9
13
|
prompt: string;
|
|
14
|
+
/**
|
|
15
|
+
* Speech speed multiplier, from 0.75 to 1.30 inclusive. Defaults to 1 (normal speed).
|
|
16
|
+
*/
|
|
17
|
+
speed?: number | undefined;
|
|
10
18
|
};
|
|
11
19
|
/**
|
|
12
20
|
* @internal
|
|
@@ -14,7 +22,9 @@ export type V1AiVoiceClonerCreateBodyStyle = {
|
|
|
14
22
|
* we expect to come in as network data
|
|
15
23
|
*/
|
|
16
24
|
export type External$V1AiVoiceClonerCreateBodyStyle = {
|
|
25
|
+
language?: ("afrikaans" | "albanian" | "amharic" | "arabic" | "armenian" | "assamese" | "auto" | "azerbaijani" | "basque" | "belarusian" | "bengali" | "bulgarian" | "burmese" | "cantonese" | "catalan" | "cebuano" | "chinese" | "croatian" | "czech" | "danish" | "dutch" | "english" | "estonian" | "finnish" | "french" | "galician" | "georgian" | "german" | "greek" | "gujarati" | "haitian creole" | "hebrew" | "hindi" | "hungarian" | "icelandic" | "indonesian" | "italian" | "japanese" | "javanese" | "kannada" | "kazakh" | "konkani" | "korean" | "lao" | "latvian" | "lithuanian" | "luxembourgish" | "macedonian" | "maithili" | "malagasy" | "malay" | "malayalam" | "marathi" | "mongolian" | "nepali" | "norwegian" | "odia" | "pashto" | "persian" | "polish" | "portuguese" | "punjabi" | "romanian" | "russian" | "serbian" | "sindhi" | "sinhala" | "slovak" | "slovenian" | "spanish" | "swahili" | "swedish" | "tagalog" | "tamil" | "telugu" | "thai" | "turkish" | "ukrainian" | "urdu" | "uzbek" | "vietnamese" | "welsh") | undefined;
|
|
17
26
|
prompt: string;
|
|
27
|
+
speed?: number | undefined;
|
|
18
28
|
};
|
|
19
29
|
export declare const Schemas$V1AiVoiceClonerCreateBodyStyle: {
|
|
20
30
|
in: z.ZodType<V1AiVoiceClonerCreateBodyStyle, z.ZodTypeDef, unknown>;
|
|
@@ -41,11 +41,100 @@ const z = __importStar(require("zod"));
|
|
|
41
41
|
*/
|
|
42
42
|
const SchemaIn$V1AiVoiceClonerCreateBodyStyle = z
|
|
43
43
|
.object({
|
|
44
|
+
language: z
|
|
45
|
+
.enum([
|
|
46
|
+
"afrikaans",
|
|
47
|
+
"albanian",
|
|
48
|
+
"amharic",
|
|
49
|
+
"arabic",
|
|
50
|
+
"armenian",
|
|
51
|
+
"assamese",
|
|
52
|
+
"auto",
|
|
53
|
+
"azerbaijani",
|
|
54
|
+
"basque",
|
|
55
|
+
"belarusian",
|
|
56
|
+
"bengali",
|
|
57
|
+
"bulgarian",
|
|
58
|
+
"burmese",
|
|
59
|
+
"cantonese",
|
|
60
|
+
"catalan",
|
|
61
|
+
"cebuano",
|
|
62
|
+
"chinese",
|
|
63
|
+
"croatian",
|
|
64
|
+
"czech",
|
|
65
|
+
"danish",
|
|
66
|
+
"dutch",
|
|
67
|
+
"english",
|
|
68
|
+
"estonian",
|
|
69
|
+
"finnish",
|
|
70
|
+
"french",
|
|
71
|
+
"galician",
|
|
72
|
+
"georgian",
|
|
73
|
+
"german",
|
|
74
|
+
"greek",
|
|
75
|
+
"gujarati",
|
|
76
|
+
"haitian creole",
|
|
77
|
+
"hebrew",
|
|
78
|
+
"hindi",
|
|
79
|
+
"hungarian",
|
|
80
|
+
"icelandic",
|
|
81
|
+
"indonesian",
|
|
82
|
+
"italian",
|
|
83
|
+
"japanese",
|
|
84
|
+
"javanese",
|
|
85
|
+
"kannada",
|
|
86
|
+
"kazakh",
|
|
87
|
+
"konkani",
|
|
88
|
+
"korean",
|
|
89
|
+
"lao",
|
|
90
|
+
"latvian",
|
|
91
|
+
"lithuanian",
|
|
92
|
+
"luxembourgish",
|
|
93
|
+
"macedonian",
|
|
94
|
+
"maithili",
|
|
95
|
+
"malagasy",
|
|
96
|
+
"malay",
|
|
97
|
+
"malayalam",
|
|
98
|
+
"marathi",
|
|
99
|
+
"mongolian",
|
|
100
|
+
"nepali",
|
|
101
|
+
"norwegian",
|
|
102
|
+
"odia",
|
|
103
|
+
"pashto",
|
|
104
|
+
"persian",
|
|
105
|
+
"polish",
|
|
106
|
+
"portuguese",
|
|
107
|
+
"punjabi",
|
|
108
|
+
"romanian",
|
|
109
|
+
"russian",
|
|
110
|
+
"serbian",
|
|
111
|
+
"sindhi",
|
|
112
|
+
"sinhala",
|
|
113
|
+
"slovak",
|
|
114
|
+
"slovenian",
|
|
115
|
+
"spanish",
|
|
116
|
+
"swahili",
|
|
117
|
+
"swedish",
|
|
118
|
+
"tagalog",
|
|
119
|
+
"tamil",
|
|
120
|
+
"telugu",
|
|
121
|
+
"thai",
|
|
122
|
+
"turkish",
|
|
123
|
+
"ukrainian",
|
|
124
|
+
"urdu",
|
|
125
|
+
"uzbek",
|
|
126
|
+
"vietnamese",
|
|
127
|
+
"welsh",
|
|
128
|
+
])
|
|
129
|
+
.optional(),
|
|
44
130
|
prompt: z.string(),
|
|
131
|
+
speed: z.number().optional(),
|
|
45
132
|
})
|
|
46
133
|
.transform((obj) => {
|
|
47
134
|
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
135
|
+
language: "language",
|
|
48
136
|
prompt: "prompt",
|
|
137
|
+
speed: "speed",
|
|
49
138
|
});
|
|
50
139
|
});
|
|
51
140
|
/**
|
|
@@ -54,11 +143,100 @@ const SchemaIn$V1AiVoiceClonerCreateBodyStyle = z
|
|
|
54
143
|
*/
|
|
55
144
|
const SchemaOut$V1AiVoiceClonerCreateBodyStyle = z
|
|
56
145
|
.object({
|
|
146
|
+
language: z
|
|
147
|
+
.enum([
|
|
148
|
+
"afrikaans",
|
|
149
|
+
"albanian",
|
|
150
|
+
"amharic",
|
|
151
|
+
"arabic",
|
|
152
|
+
"armenian",
|
|
153
|
+
"assamese",
|
|
154
|
+
"auto",
|
|
155
|
+
"azerbaijani",
|
|
156
|
+
"basque",
|
|
157
|
+
"belarusian",
|
|
158
|
+
"bengali",
|
|
159
|
+
"bulgarian",
|
|
160
|
+
"burmese",
|
|
161
|
+
"cantonese",
|
|
162
|
+
"catalan",
|
|
163
|
+
"cebuano",
|
|
164
|
+
"chinese",
|
|
165
|
+
"croatian",
|
|
166
|
+
"czech",
|
|
167
|
+
"danish",
|
|
168
|
+
"dutch",
|
|
169
|
+
"english",
|
|
170
|
+
"estonian",
|
|
171
|
+
"finnish",
|
|
172
|
+
"french",
|
|
173
|
+
"galician",
|
|
174
|
+
"georgian",
|
|
175
|
+
"german",
|
|
176
|
+
"greek",
|
|
177
|
+
"gujarati",
|
|
178
|
+
"haitian creole",
|
|
179
|
+
"hebrew",
|
|
180
|
+
"hindi",
|
|
181
|
+
"hungarian",
|
|
182
|
+
"icelandic",
|
|
183
|
+
"indonesian",
|
|
184
|
+
"italian",
|
|
185
|
+
"japanese",
|
|
186
|
+
"javanese",
|
|
187
|
+
"kannada",
|
|
188
|
+
"kazakh",
|
|
189
|
+
"konkani",
|
|
190
|
+
"korean",
|
|
191
|
+
"lao",
|
|
192
|
+
"latvian",
|
|
193
|
+
"lithuanian",
|
|
194
|
+
"luxembourgish",
|
|
195
|
+
"macedonian",
|
|
196
|
+
"maithili",
|
|
197
|
+
"malagasy",
|
|
198
|
+
"malay",
|
|
199
|
+
"malayalam",
|
|
200
|
+
"marathi",
|
|
201
|
+
"mongolian",
|
|
202
|
+
"nepali",
|
|
203
|
+
"norwegian",
|
|
204
|
+
"odia",
|
|
205
|
+
"pashto",
|
|
206
|
+
"persian",
|
|
207
|
+
"polish",
|
|
208
|
+
"portuguese",
|
|
209
|
+
"punjabi",
|
|
210
|
+
"romanian",
|
|
211
|
+
"russian",
|
|
212
|
+
"serbian",
|
|
213
|
+
"sindhi",
|
|
214
|
+
"sinhala",
|
|
215
|
+
"slovak",
|
|
216
|
+
"slovenian",
|
|
217
|
+
"spanish",
|
|
218
|
+
"swahili",
|
|
219
|
+
"swedish",
|
|
220
|
+
"tagalog",
|
|
221
|
+
"tamil",
|
|
222
|
+
"telugu",
|
|
223
|
+
"thai",
|
|
224
|
+
"turkish",
|
|
225
|
+
"ukrainian",
|
|
226
|
+
"urdu",
|
|
227
|
+
"uzbek",
|
|
228
|
+
"vietnamese",
|
|
229
|
+
"welsh",
|
|
230
|
+
])
|
|
231
|
+
.optional(),
|
|
57
232
|
prompt: z.string(),
|
|
233
|
+
speed: z.number().optional(),
|
|
58
234
|
})
|
|
59
235
|
.transform((obj) => {
|
|
60
236
|
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
237
|
+
language: "language",
|
|
61
238
|
prompt: "prompt",
|
|
239
|
+
speed: "speed",
|
|
62
240
|
});
|
|
63
241
|
});
|
|
64
242
|
exports.Schemas$V1AiVoiceClonerCreateBodyStyle = {
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Spoken language. Use a canonical lowercase language name, or auto to detect the language from the text. Defaults to auto.
|
|
3
|
+
*/
|
|
4
|
+
export type V1AiVoiceGeneratorCreateBodyStyleLanguageEnum = "afrikaans" | "albanian" | "amharic" | "arabic" | "armenian" | "assamese" | "auto" | "azerbaijani" | "basque" | "belarusian" | "bengali" | "bulgarian" | "burmese" | "cantonese" | "catalan" | "cebuano" | "chinese" | "croatian" | "czech" | "danish" | "dutch" | "english" | "estonian" | "finnish" | "french" | "galician" | "georgian" | "german" | "greek" | "gujarati" | "haitian creole" | "hebrew" | "hindi" | "hungarian" | "icelandic" | "indonesian" | "italian" | "japanese" | "javanese" | "kannada" | "kazakh" | "konkani" | "korean" | "lao" | "latvian" | "lithuanian" | "luxembourgish" | "macedonian" | "maithili" | "malagasy" | "malay" | "malayalam" | "marathi" | "mongolian" | "nepali" | "norwegian" | "odia" | "pashto" | "persian" | "polish" | "portuguese" | "punjabi" | "romanian" | "russian" | "serbian" | "sindhi" | "sinhala" | "slovak" | "slovenian" | "spanish" | "swahili" | "swedish" | "tagalog" | "tamil" | "telugu" | "thai" | "turkish" | "ukrainian" | "urdu" | "uzbek" | "vietnamese" | "welsh";
|