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.
- package/README.md +9 -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 +14 -0
- package/dist/resources/v1/ai-voice-generator/resource-client.js +30 -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 +31 -0
- package/dist/resources/v1/audio-projects/resource-client.js +51 -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 +18 -18
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -257,11 +257,20 @@ Valid values are: `none`, `error`, `warn`, `info`, `debug` (case insensitive). I
|
|
|
257
257
|
* [create](src/resources/v1/ai-talking-photo/README.md#create) - AI Talking Photo
|
|
258
258
|
* [generate](src/resources/v1/ai-talking-photo/README.md#generate) - AI Talking Photo Generate Workflow
|
|
259
259
|
|
|
260
|
+
### [v1.aiVoiceGenerator](src/resources/v1/ai-voice-generator/README.md)
|
|
261
|
+
|
|
262
|
+
* [create](src/resources/v1/ai-voice-generator/README.md#create) - AI Voice Generator
|
|
263
|
+
|
|
260
264
|
### [v1.animation](src/resources/v1/animation/README.md)
|
|
261
265
|
|
|
262
266
|
* [create](src/resources/v1/animation/README.md#create) - Animation
|
|
263
267
|
* [generate](src/resources/v1/animation/README.md#generate) - Animation Generate Workflow
|
|
264
268
|
|
|
269
|
+
### [v1.audioProjects](src/resources/v1/audio-projects/README.md)
|
|
270
|
+
|
|
271
|
+
* [delete](src/resources/v1/audio-projects/README.md#delete) - Delete audio
|
|
272
|
+
* [get](src/resources/v1/audio-projects/README.md#get) - Get audio details
|
|
273
|
+
|
|
265
274
|
### [v1.autoSubtitleGenerator](src/resources/v1/auto-subtitle-generator/README.md)
|
|
266
275
|
|
|
267
276
|
* [create](src/resources/v1/auto-subtitle-generator/README.md#create) - Auto Subtitle Generator
|
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.41.0";
|
|
8
8
|
})(Environment || (exports.Environment = Environment = {}));
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiVoiceGeneratorClient = void 0;
|
|
4
|
+
var resource_client_1 = require("./resource-client");
|
|
5
|
+
Object.defineProperty(exports, "AiVoiceGeneratorClient", { enumerable: true, get: function () { return resource_client_1.AiVoiceGeneratorClient; } });
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { External$V1AiVoiceGeneratorCreateBodyStyle, V1AiVoiceGeneratorCreateBodyStyle } from "../../../types/v1-ai-voice-generator-create-body-style";
|
|
3
|
+
/**
|
|
4
|
+
* CreateRequest
|
|
5
|
+
*/
|
|
6
|
+
export type CreateRequest = {
|
|
7
|
+
/**
|
|
8
|
+
* The name of audio. This value is mainly used for your own identification of the audio.
|
|
9
|
+
*/
|
|
10
|
+
name?: string | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* The content used to generate speech.
|
|
13
|
+
*/
|
|
14
|
+
style: V1AiVoiceGeneratorCreateBodyStyle;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* @internal
|
|
18
|
+
* CreateRequest without any key transformation, this is what
|
|
19
|
+
* we expect to come in as network data
|
|
20
|
+
*/
|
|
21
|
+
export type External$CreateRequest = {
|
|
22
|
+
name?: string | undefined;
|
|
23
|
+
style: External$V1AiVoiceGeneratorCreateBodyStyle;
|
|
24
|
+
};
|
|
25
|
+
export declare const Schemas$CreateRequest: {
|
|
26
|
+
in: z.ZodType<CreateRequest, z.ZodTypeDef, unknown>;
|
|
27
|
+
out: z.ZodType<External$CreateRequest, z.ZodTypeDef, CreateRequest>;
|
|
28
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
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$CreateRequest = void 0;
|
|
37
|
+
const make_api_request_js_1 = require("make-api-request-js");
|
|
38
|
+
const z = __importStar(require("zod"));
|
|
39
|
+
const v1_ai_voice_generator_create_body_style_1 = require("../../../types/v1-ai-voice-generator-create-body-style");
|
|
40
|
+
/**
|
|
41
|
+
* Takes network data, validates it, and transforms keys to match typescript object CreateRequest
|
|
42
|
+
*/
|
|
43
|
+
const SchemaIn$CreateRequest = z
|
|
44
|
+
.object({
|
|
45
|
+
name: z.string().optional(),
|
|
46
|
+
style: v1_ai_voice_generator_create_body_style_1.Schemas$V1AiVoiceGeneratorCreateBodyStyle.in,
|
|
47
|
+
})
|
|
48
|
+
.transform((obj) => {
|
|
49
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
50
|
+
name: "name",
|
|
51
|
+
style: "style",
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
/**
|
|
55
|
+
* @internal
|
|
56
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$CreateRequest
|
|
57
|
+
*/
|
|
58
|
+
const SchemaOut$CreateRequest = z
|
|
59
|
+
.object({
|
|
60
|
+
name: z.string().optional(),
|
|
61
|
+
style: v1_ai_voice_generator_create_body_style_1.Schemas$V1AiVoiceGeneratorCreateBodyStyle.out,
|
|
62
|
+
})
|
|
63
|
+
.transform((obj) => {
|
|
64
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
65
|
+
name: "name",
|
|
66
|
+
style: "style",
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
exports.Schemas$CreateRequest = {
|
|
70
|
+
in: SchemaIn$CreateRequest,
|
|
71
|
+
out: SchemaOut$CreateRequest,
|
|
72
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ApiPromise, CoreClient, CoreResourceClient, RequestOptions, ResourceClientOptions } from "make-api-request-js";
|
|
2
|
+
import * as requests from "../../../resources/v1/ai-voice-generator/request-types";
|
|
3
|
+
import * as types from "../../../types";
|
|
4
|
+
export declare class AiVoiceGeneratorClient extends CoreResourceClient {
|
|
5
|
+
constructor(coreClient: CoreClient, opts: ResourceClientOptions);
|
|
6
|
+
/**
|
|
7
|
+
* AI Voice Generator
|
|
8
|
+
*
|
|
9
|
+
* Generate speech from text. Each character costs 0.05 credits. The cost is rounded up to the nearest whole number.
|
|
10
|
+
*
|
|
11
|
+
* POST /v1/ai-voice-generator
|
|
12
|
+
*/
|
|
13
|
+
create(request: requests.CreateRequest, opts?: RequestOptions): ApiPromise<types.V1AiVoiceGeneratorCreateResponse>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiVoiceGeneratorClient = void 0;
|
|
4
|
+
const make_api_request_js_1 = require("make-api-request-js");
|
|
5
|
+
const v1_ai_voice_generator_create_body_1 = require("../../../types/v1-ai-voice-generator-create-body");
|
|
6
|
+
const v1_ai_voice_generator_create_response_1 = require("../../../types/v1-ai-voice-generator-create-response");
|
|
7
|
+
class AiVoiceGeneratorClient extends make_api_request_js_1.CoreResourceClient {
|
|
8
|
+
constructor(coreClient, opts) {
|
|
9
|
+
super(coreClient, opts);
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* AI Voice Generator
|
|
13
|
+
*
|
|
14
|
+
* Generate speech from text. Each character costs 0.05 credits. The cost is rounded up to the nearest whole number.
|
|
15
|
+
*
|
|
16
|
+
* POST /v1/ai-voice-generator
|
|
17
|
+
*/
|
|
18
|
+
create(request, opts) {
|
|
19
|
+
return this._client.makeRequest({
|
|
20
|
+
method: "post",
|
|
21
|
+
path: "/v1/ai-voice-generator",
|
|
22
|
+
auth: ["bearerAuth"],
|
|
23
|
+
contentType: "application/json",
|
|
24
|
+
body: v1_ai_voice_generator_create_body_1.Schemas$V1AiVoiceGeneratorCreateBody.out.parse(request),
|
|
25
|
+
responseSchema: v1_ai_voice_generator_create_response_1.Schemas$V1AiVoiceGeneratorCreateResponse.in,
|
|
26
|
+
opts,
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.AiVoiceGeneratorClient = AiVoiceGeneratorClient;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AudioProjectsClient = void 0;
|
|
4
|
+
var resource_client_1 = require("./resource-client");
|
|
5
|
+
Object.defineProperty(exports, "AudioProjectsClient", { enumerable: true, get: function () { return resource_client_1.AudioProjectsClient; } });
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* DeleteRequest
|
|
4
|
+
*/
|
|
5
|
+
export type DeleteRequest = {
|
|
6
|
+
/**
|
|
7
|
+
* Unique ID of the audio project. This value is returned by all of the POST APIs that create an audio.
|
|
8
|
+
*/
|
|
9
|
+
id: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* @internal
|
|
13
|
+
* DeleteRequest without any key transformation, this is what
|
|
14
|
+
* we expect to come in as network data
|
|
15
|
+
*/
|
|
16
|
+
export type External$DeleteRequest = {
|
|
17
|
+
id: string;
|
|
18
|
+
};
|
|
19
|
+
export declare const Schemas$DeleteRequest: {
|
|
20
|
+
in: z.ZodType<DeleteRequest, z.ZodTypeDef, unknown>;
|
|
21
|
+
out: z.ZodType<External$DeleteRequest, z.ZodTypeDef, DeleteRequest>;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* GetRequest
|
|
25
|
+
*/
|
|
26
|
+
export type GetRequest = {
|
|
27
|
+
/**
|
|
28
|
+
* Unique ID of the audio project. This value is returned by all of the POST APIs that create an audio.
|
|
29
|
+
*/
|
|
30
|
+
id: string;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* @internal
|
|
34
|
+
* GetRequest without any key transformation, this is what
|
|
35
|
+
* we expect to come in as network data
|
|
36
|
+
*/
|
|
37
|
+
export type External$GetRequest = {
|
|
38
|
+
id: string;
|
|
39
|
+
};
|
|
40
|
+
export declare const Schemas$GetRequest: {
|
|
41
|
+
in: z.ZodType<GetRequest, z.ZodTypeDef, unknown>;
|
|
42
|
+
out: z.ZodType<External$GetRequest, z.ZodTypeDef, GetRequest>;
|
|
43
|
+
};
|
|
@@ -0,0 +1,96 @@
|
|
|
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$GetRequest = exports.Schemas$DeleteRequest = 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 DeleteRequest
|
|
41
|
+
*/
|
|
42
|
+
const SchemaIn$DeleteRequest = z
|
|
43
|
+
.object({
|
|
44
|
+
id: z.string(),
|
|
45
|
+
})
|
|
46
|
+
.transform((obj) => {
|
|
47
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
48
|
+
id: "id",
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
/**
|
|
52
|
+
* @internal
|
|
53
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$DeleteRequest
|
|
54
|
+
*/
|
|
55
|
+
const SchemaOut$DeleteRequest = z
|
|
56
|
+
.object({
|
|
57
|
+
id: z.string(),
|
|
58
|
+
})
|
|
59
|
+
.transform((obj) => {
|
|
60
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
61
|
+
id: "id",
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
exports.Schemas$DeleteRequest = {
|
|
65
|
+
in: SchemaIn$DeleteRequest,
|
|
66
|
+
out: SchemaOut$DeleteRequest,
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* Takes network data, validates it, and transforms keys to match typescript object GetRequest
|
|
70
|
+
*/
|
|
71
|
+
const SchemaIn$GetRequest = z
|
|
72
|
+
.object({
|
|
73
|
+
id: z.string(),
|
|
74
|
+
})
|
|
75
|
+
.transform((obj) => {
|
|
76
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
77
|
+
id: "id",
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
/**
|
|
81
|
+
* @internal
|
|
82
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$GetRequest
|
|
83
|
+
*/
|
|
84
|
+
const SchemaOut$GetRequest = z
|
|
85
|
+
.object({
|
|
86
|
+
id: z.string(),
|
|
87
|
+
})
|
|
88
|
+
.transform((obj) => {
|
|
89
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
90
|
+
id: "id",
|
|
91
|
+
});
|
|
92
|
+
});
|
|
93
|
+
exports.Schemas$GetRequest = {
|
|
94
|
+
in: SchemaIn$GetRequest,
|
|
95
|
+
out: SchemaOut$GetRequest,
|
|
96
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ApiPromise, CoreClient, CoreResourceClient, RequestOptions, ResourceClientOptions } from "make-api-request-js";
|
|
2
|
+
import * as requests from "../../../resources/v1/audio-projects/request-types";
|
|
3
|
+
import * as types from "../../../types";
|
|
4
|
+
export declare class AudioProjectsClient extends CoreResourceClient {
|
|
5
|
+
constructor(coreClient: CoreClient, opts: ResourceClientOptions);
|
|
6
|
+
/**
|
|
7
|
+
* Delete audio
|
|
8
|
+
*
|
|
9
|
+
* Permanently delete the rendered audio file(s). This action is not reversible, please be sure before deleting.
|
|
10
|
+
*
|
|
11
|
+
* DELETE /v1/audio-projects/{id}
|
|
12
|
+
*/
|
|
13
|
+
delete(request: requests.DeleteRequest, opts?: RequestOptions): ApiPromise<null>;
|
|
14
|
+
/**
|
|
15
|
+
* Get audio details
|
|
16
|
+
*
|
|
17
|
+
* Get the details of a audio project. The `downloads` field will be empty unless the audio was successfully rendered.
|
|
18
|
+
*
|
|
19
|
+
* The audio can be one of the following status
|
|
20
|
+
* - `draft` - not currently used
|
|
21
|
+
* - `queued` - the job is queued and waiting for a GPU
|
|
22
|
+
* - `rendering` - the generation is in progress
|
|
23
|
+
* - `complete` - the audio is successful created
|
|
24
|
+
* - `error` - an error occurred during rendering
|
|
25
|
+
* - `canceled` - audio render is canceled by the user
|
|
26
|
+
*
|
|
27
|
+
*
|
|
28
|
+
* GET /v1/audio-projects/{id}
|
|
29
|
+
*/
|
|
30
|
+
get(request: requests.GetRequest, opts?: RequestOptions): ApiPromise<types.V1AudioProjectsGetResponse>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AudioProjectsClient = void 0;
|
|
4
|
+
const make_api_request_js_1 = require("make-api-request-js");
|
|
5
|
+
const v1_audio_projects_get_response_1 = require("../../../types/v1-audio-projects-get-response");
|
|
6
|
+
class AudioProjectsClient extends make_api_request_js_1.CoreResourceClient {
|
|
7
|
+
constructor(coreClient, opts) {
|
|
8
|
+
super(coreClient, opts);
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Delete audio
|
|
12
|
+
*
|
|
13
|
+
* Permanently delete the rendered audio file(s). This action is not reversible, please be sure before deleting.
|
|
14
|
+
*
|
|
15
|
+
* DELETE /v1/audio-projects/{id}
|
|
16
|
+
*/
|
|
17
|
+
delete(request, opts) {
|
|
18
|
+
return this._client.makeRequest({
|
|
19
|
+
method: "delete",
|
|
20
|
+
path: `/v1/audio-projects/${request.id}`,
|
|
21
|
+
auth: ["bearerAuth"],
|
|
22
|
+
opts,
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Get audio details
|
|
27
|
+
*
|
|
28
|
+
* Get the details of a audio project. The `downloads` field will be empty unless the audio was successfully rendered.
|
|
29
|
+
*
|
|
30
|
+
* The audio can be one of the following status
|
|
31
|
+
* - `draft` - not currently used
|
|
32
|
+
* - `queued` - the job is queued and waiting for a GPU
|
|
33
|
+
* - `rendering` - the generation is in progress
|
|
34
|
+
* - `complete` - the audio is successful created
|
|
35
|
+
* - `error` - an error occurred during rendering
|
|
36
|
+
* - `canceled` - audio render is canceled by the user
|
|
37
|
+
*
|
|
38
|
+
*
|
|
39
|
+
* GET /v1/audio-projects/{id}
|
|
40
|
+
*/
|
|
41
|
+
get(request, opts) {
|
|
42
|
+
return this._client.makeRequest({
|
|
43
|
+
method: "get",
|
|
44
|
+
path: `/v1/audio-projects/${request.id}`,
|
|
45
|
+
auth: ["bearerAuth"],
|
|
46
|
+
responseSchema: v1_audio_projects_get_response_1.Schemas$V1AudioProjectsGetResponse.in,
|
|
47
|
+
opts,
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.AudioProjectsClient = AudioProjectsClient;
|
|
@@ -9,7 +9,9 @@ export * as aiMemeGenerator from "./ai-meme-generator";
|
|
|
9
9
|
export * as aiPhotoEditor from "./ai-photo-editor";
|
|
10
10
|
export * as aiQrCodeGenerator from "./ai-qr-code-generator";
|
|
11
11
|
export * as aiTalkingPhoto from "./ai-talking-photo";
|
|
12
|
+
export * as aiVoiceGenerator from "./ai-voice-generator";
|
|
12
13
|
export * as animation from "./animation";
|
|
14
|
+
export * as audioProjects from "./audio-projects";
|
|
13
15
|
export * as autoSubtitleGenerator from "./auto-subtitle-generator";
|
|
14
16
|
export * as faceDetection from "./face-detection";
|
|
15
17
|
export * as faceSwap from "./face-swap";
|
|
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.videoToVideo = exports.videoProjects = exports.textToVideo = exports.V1Client = exports.photoColorizer = exports.lipSync = exports.imageToVideo = exports.imageProjects = exports.imageBackgroundRemover = exports.files = exports.faceSwapPhoto = exports.faceSwap = exports.faceDetection = exports.autoSubtitleGenerator = exports.animation = exports.aiTalkingPhoto = exports.aiQrCodeGenerator = exports.aiPhotoEditor = exports.aiMemeGenerator = exports.aiImageUpscaler = exports.aiImageGenerator = exports.aiImageEditor = exports.aiHeadshotGenerator = exports.aiGifGenerator = exports.aiFaceEditor = exports.aiClothesChanger = void 0;
|
|
36
|
+
exports.videoToVideo = exports.videoProjects = exports.textToVideo = exports.V1Client = exports.photoColorizer = exports.lipSync = exports.imageToVideo = exports.imageProjects = exports.imageBackgroundRemover = exports.files = exports.faceSwapPhoto = exports.faceSwap = exports.faceDetection = exports.autoSubtitleGenerator = exports.audioProjects = exports.animation = exports.aiVoiceGenerator = exports.aiTalkingPhoto = exports.aiQrCodeGenerator = exports.aiPhotoEditor = exports.aiMemeGenerator = exports.aiImageUpscaler = exports.aiImageGenerator = exports.aiImageEditor = exports.aiHeadshotGenerator = exports.aiGifGenerator = exports.aiFaceEditor = exports.aiClothesChanger = void 0;
|
|
37
37
|
exports.aiClothesChanger = __importStar(require("./ai-clothes-changer"));
|
|
38
38
|
exports.aiFaceEditor = __importStar(require("./ai-face-editor"));
|
|
39
39
|
exports.aiGifGenerator = __importStar(require("./ai-gif-generator"));
|
|
@@ -45,7 +45,9 @@ exports.aiMemeGenerator = __importStar(require("./ai-meme-generator"));
|
|
|
45
45
|
exports.aiPhotoEditor = __importStar(require("./ai-photo-editor"));
|
|
46
46
|
exports.aiQrCodeGenerator = __importStar(require("./ai-qr-code-generator"));
|
|
47
47
|
exports.aiTalkingPhoto = __importStar(require("./ai-talking-photo"));
|
|
48
|
+
exports.aiVoiceGenerator = __importStar(require("./ai-voice-generator"));
|
|
48
49
|
exports.animation = __importStar(require("./animation"));
|
|
50
|
+
exports.audioProjects = __importStar(require("./audio-projects"));
|
|
49
51
|
exports.autoSubtitleGenerator = __importStar(require("./auto-subtitle-generator"));
|
|
50
52
|
exports.faceDetection = __importStar(require("./face-detection"));
|
|
51
53
|
exports.faceSwap = __importStar(require("./face-swap"));
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { External$V1LipSyncCreateBodyAssets, V1LipSyncCreateBodyAssets } from "../../../types/v1-lip-sync-create-body-assets";
|
|
3
|
+
import { External$V1LipSyncCreateBodyStyle, V1LipSyncCreateBodyStyle } from "../../../types/v1-lip-sync-create-body-style";
|
|
3
4
|
/**
|
|
4
5
|
* CreateRequest
|
|
5
6
|
*/
|
|
@@ -34,6 +35,10 @@ export type CreateRequest = {
|
|
|
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$CreateRequest = {
|
|
|
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$CreateRequest: {
|
|
@@ -37,6 +37,7 @@ exports.Schemas$CreateRequest = 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("../../../types/v1-lip-sync-create-body-assets");
|
|
40
|
+
const v1_lip_sync_create_body_style_1 = require("../../../types/v1-lip-sync-create-body-style");
|
|
40
41
|
/**
|
|
41
42
|
* Takes network data, validates it, and transforms keys to match typescript object CreateRequest
|
|
42
43
|
*/
|
|
@@ -48,6 +49,7 @@ const SchemaIn$CreateRequest = 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$CreateRequest = 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$CreateRequest = 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$CreateRequest = 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
|
});
|
|
@@ -10,7 +10,9 @@ import { AiMemeGeneratorClient } from "../../resources/v1/ai-meme-generator";
|
|
|
10
10
|
import { AiPhotoEditorClient } from "../../resources/v1/ai-photo-editor";
|
|
11
11
|
import { AiQrCodeGeneratorClient } from "../../resources/v1/ai-qr-code-generator";
|
|
12
12
|
import { AiTalkingPhotoClient } from "../../resources/v1/ai-talking-photo";
|
|
13
|
+
import { AiVoiceGeneratorClient } from "../../resources/v1/ai-voice-generator";
|
|
13
14
|
import { AnimationClient } from "../../resources/v1/animation";
|
|
15
|
+
import { AudioProjectsClient } from "../../resources/v1/audio-projects";
|
|
14
16
|
import { AutoSubtitleGeneratorClient } from "../../resources/v1/auto-subtitle-generator";
|
|
15
17
|
import { FaceDetectionClient } from "../../resources/v1/face-detection";
|
|
16
18
|
import { FaceSwapClient } from "../../resources/v1/face-swap";
|
|
@@ -25,6 +27,8 @@ import { TextToVideoClient } from "../../resources/v1/text-to-video";
|
|
|
25
27
|
import { VideoProjectsClient } from "../../resources/v1/video-projects";
|
|
26
28
|
import { VideoToVideoClient } from "../../resources/v1/video-to-video";
|
|
27
29
|
export declare class V1Client extends CoreResourceClient {
|
|
30
|
+
private _audioProjectsLazy?;
|
|
31
|
+
private _aiVoiceGeneratorLazy?;
|
|
28
32
|
private _imageProjectsLazy?;
|
|
29
33
|
private _videoProjectsLazy?;
|
|
30
34
|
private _faceDetectionLazy?;
|
|
@@ -76,4 +80,6 @@ export declare class V1Client extends CoreResourceClient {
|
|
|
76
80
|
get photoColorizer(): PhotoColorizerClient;
|
|
77
81
|
get textToVideo(): TextToVideoClient;
|
|
78
82
|
get videoToVideo(): VideoToVideoClient;
|
|
83
|
+
get aiVoiceGenerator(): AiVoiceGeneratorClient;
|
|
84
|
+
get audioProjects(): AudioProjectsClient;
|
|
79
85
|
}
|
|
@@ -17,7 +17,9 @@ class V1Client extends make_api_request_js_1.CoreResourceClient {
|
|
|
17
17
|
this.aiPhotoEditor;
|
|
18
18
|
this.aiQrCodeGenerator;
|
|
19
19
|
this.aiTalkingPhoto;
|
|
20
|
+
this.aiVoiceGenerator;
|
|
20
21
|
this.animation;
|
|
22
|
+
this.audioProjects;
|
|
21
23
|
this.autoSubtitleGenerator;
|
|
22
24
|
this.faceDetection;
|
|
23
25
|
this.faceSwap;
|
|
@@ -154,5 +156,15 @@ class V1Client extends make_api_request_js_1.CoreResourceClient {
|
|
|
154
156
|
return ((_a = this._videoToVideoLazy) !== null && _a !== void 0 ? _a : (this._videoToVideoLazy =
|
|
155
157
|
new (require("./video-to-video").VideoToVideoClient)(this._client, this._opts)));
|
|
156
158
|
}
|
|
159
|
+
get aiVoiceGenerator() {
|
|
160
|
+
var _a;
|
|
161
|
+
return ((_a = this._aiVoiceGeneratorLazy) !== null && _a !== void 0 ? _a : (this._aiVoiceGeneratorLazy =
|
|
162
|
+
new (require("./ai-voice-generator").AiVoiceGeneratorClient)(this._client, this._opts)));
|
|
163
|
+
}
|
|
164
|
+
get audioProjects() {
|
|
165
|
+
var _a;
|
|
166
|
+
return ((_a = this._audioProjectsLazy) !== null && _a !== void 0 ? _a : (this._audioProjectsLazy =
|
|
167
|
+
new (require("./audio-projects").AudioProjectsClient)(this._client, this._opts)));
|
|
168
|
+
}
|
|
157
169
|
}
|
|
158
170
|
exports.V1Client = V1Client;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -44,6 +44,10 @@ export { V1AiTalkingPhotoCreateBodyAssets } from "./v1-ai-talking-photo-create-b
|
|
|
44
44
|
export { V1AiTalkingPhotoCreateBodyStyle } from "./v1-ai-talking-photo-create-body-style";
|
|
45
45
|
export { V1AiTalkingPhotoCreateBodyStyleGenerationModeEnum } from "./v1-ai-talking-photo-create-body-style-generation-mode-enum";
|
|
46
46
|
export { V1AiTalkingPhotoCreateResponse } from "./v1-ai-talking-photo-create-response";
|
|
47
|
+
export { V1AiVoiceGeneratorCreateBody } from "./v1-ai-voice-generator-create-body";
|
|
48
|
+
export { V1AiVoiceGeneratorCreateBodyStyle } from "./v1-ai-voice-generator-create-body-style";
|
|
49
|
+
export { V1AiVoiceGeneratorCreateBodyStyleVoiceNameEnum } from "./v1-ai-voice-generator-create-body-style-voice-name-enum";
|
|
50
|
+
export { V1AiVoiceGeneratorCreateResponse } from "./v1-ai-voice-generator-create-response";
|
|
47
51
|
export { V1AnimationCreateBody } from "./v1-animation-create-body";
|
|
48
52
|
export { V1AnimationCreateBodyAssets } from "./v1-animation-create-body-assets";
|
|
49
53
|
export { V1AnimationCreateBodyAssetsAudioSourceEnum } from "./v1-animation-create-body-assets-audio-source-enum";
|
|
@@ -52,6 +56,10 @@ export { V1AnimationCreateBodyStyleArtStyleEnum } from "./v1-animation-create-bo
|
|
|
52
56
|
export { V1AnimationCreateBodyStyleCameraEffectEnum } from "./v1-animation-create-body-style-camera-effect-enum";
|
|
53
57
|
export { V1AnimationCreateBodyStylePromptTypeEnum } from "./v1-animation-create-body-style-prompt-type-enum";
|
|
54
58
|
export { V1AnimationCreateResponse } from "./v1-animation-create-response";
|
|
59
|
+
export { V1AudioProjectsGetResponse } from "./v1-audio-projects-get-response";
|
|
60
|
+
export { V1AudioProjectsGetResponseDownloadsItem } from "./v1-audio-projects-get-response-downloads-item";
|
|
61
|
+
export { V1AudioProjectsGetResponseError } from "./v1-audio-projects-get-response-error";
|
|
62
|
+
export { V1AudioProjectsGetResponseStatusEnum } from "./v1-audio-projects-get-response-status-enum";
|
|
55
63
|
export { V1AutoSubtitleGeneratorCreateBody } from "./v1-auto-subtitle-generator-create-body";
|
|
56
64
|
export { V1AutoSubtitleGeneratorCreateBodyAssets } from "./v1-auto-subtitle-generator-create-body-assets";
|
|
57
65
|
export { V1AutoSubtitleGeneratorCreateBodyStyle } from "./v1-auto-subtitle-generator-create-body-style";
|
|
@@ -98,6 +106,8 @@ export { V1ImageToVideoCreateResponse } from "./v1-image-to-video-create-respons
|
|
|
98
106
|
export { V1LipSyncCreateBody } from "./v1-lip-sync-create-body";
|
|
99
107
|
export { V1LipSyncCreateBodyAssets } from "./v1-lip-sync-create-body-assets";
|
|
100
108
|
export { V1LipSyncCreateBodyAssetsVideoSourceEnum } from "./v1-lip-sync-create-body-assets-video-source-enum";
|
|
109
|
+
export { V1LipSyncCreateBodyStyle } from "./v1-lip-sync-create-body-style";
|
|
110
|
+
export { V1LipSyncCreateBodyStyleGenerationModeEnum } from "./v1-lip-sync-create-body-style-generation-mode-enum";
|
|
101
111
|
export { V1LipSyncCreateResponse } from "./v1-lip-sync-create-response";
|
|
102
112
|
export { V1PhotoColorizerCreateBody } from "./v1-photo-colorizer-create-body";
|
|
103
113
|
export { V1PhotoColorizerCreateBodyAssets } from "./v1-photo-colorizer-create-body-assets";
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Controls overall motion style.
|
|
3
|
-
* * `pro` -
|
|
4
|
-
* * `
|
|
3
|
+
* * `pro` - Higher fidelity, realistic detail, accurate lip sync, and faster generation.
|
|
4
|
+
* * `standard` - More expressive motion, but lower visual fidelity.
|
|
5
|
+
*
|
|
6
|
+
* * `expressive` - More motion and facial expressiveness; may introduce visual artifacts. (Deprecated: passing this value will be treated as `standard`)
|
|
5
7
|
* * `stable` - Reduced motion for cleaner output; may result in minimal animation. (Deprecated: passing this value will be treated as `pro`)
|
|
6
8
|
*/
|
|
7
|
-
export type V1AiTalkingPhotoCreateBodyStyleGenerationModeEnum = "expressive" | "pro" | "stable";
|
|
9
|
+
export type V1AiTalkingPhotoCreateBodyStyleGenerationModeEnum = "expressive" | "pro" | "stable" | "standard";
|