magic-hour 0.50.0 → 0.52.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 +2 -2
- package/dist/environment.d.ts +1 -1
- package/dist/environment.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -1
- package/dist/resources/v1/ai-clothes-changer/resource-client.d.ts +2 -2
- package/dist/resources/v1/ai-clothes-changer/resource-client.js +2 -2
- package/dist/resources/v1/ai-face-editor/resource-client.d.ts +2 -2
- package/dist/resources/v1/ai-face-editor/resource-client.js +2 -2
- package/dist/resources/v1/ai-gif-generator/resource-client.d.ts +2 -2
- package/dist/resources/v1/ai-gif-generator/resource-client.js +2 -2
- package/dist/resources/v1/ai-headshot-generator/resource-client.d.ts +2 -2
- package/dist/resources/v1/ai-headshot-generator/resource-client.js +2 -2
- package/dist/resources/v1/ai-image-editor/resource-client.d.ts +2 -2
- package/dist/resources/v1/ai-image-editor/resource-client.js +2 -2
- package/dist/resources/v1/ai-image-generator/resource-client.d.ts +2 -2
- package/dist/resources/v1/ai-image-generator/resource-client.js +2 -2
- package/dist/resources/v1/ai-image-upscaler/resource-client.d.ts +2 -2
- package/dist/resources/v1/ai-image-upscaler/resource-client.js +2 -2
- package/dist/resources/v1/ai-meme-generator/resource-client.d.ts +2 -2
- package/dist/resources/v1/ai-meme-generator/resource-client.js +2 -2
- package/dist/resources/v1/ai-qr-code-generator/resource-client.d.ts +2 -2
- package/dist/resources/v1/ai-qr-code-generator/resource-client.js +2 -2
- package/dist/resources/v1/ai-talking-photo/resource-client.d.ts +2 -2
- package/dist/resources/v1/ai-talking-photo/resource-client.js +2 -2
- package/dist/resources/v1/ai-voice-cloner/resource-client.d.ts +2 -2
- package/dist/resources/v1/ai-voice-cloner/resource-client.js +2 -2
- package/dist/resources/v1/ai-voice-generator/resource-client.d.ts +2 -2
- package/dist/resources/v1/ai-voice-generator/resource-client.js +2 -2
- package/dist/resources/v1/animation/resource-client.d.ts +2 -2
- package/dist/resources/v1/animation/resource-client.js +2 -2
- package/dist/resources/v1/auto-subtitle-generator/resource-client.d.ts +2 -2
- package/dist/resources/v1/auto-subtitle-generator/resource-client.js +2 -2
- package/dist/resources/v1/face-swap/resource-client.d.ts +2 -2
- package/dist/resources/v1/face-swap/resource-client.js +2 -2
- package/dist/resources/v1/face-swap-photo/resource-client.d.ts +2 -2
- package/dist/resources/v1/face-swap-photo/resource-client.js +2 -2
- package/dist/resources/v1/files/resource-client.test.js +2 -5
- package/dist/resources/v1/image-background-remover/resource-client.d.ts +2 -2
- package/dist/resources/v1/image-background-remover/resource-client.js +2 -2
- package/dist/resources/v1/image-to-video/request-types.d.ts +29 -16
- package/dist/resources/v1/image-to-video/request-types.js +8 -0
- package/dist/resources/v1/image-to-video/resource-client.d.ts +2 -2
- package/dist/resources/v1/image-to-video/resource-client.js +2 -2
- package/dist/resources/v1/lip-sync/resource-client.d.ts +2 -2
- package/dist/resources/v1/lip-sync/resource-client.js +2 -2
- package/dist/resources/v1/photo-colorizer/resource-client.d.ts +2 -2
- package/dist/resources/v1/photo-colorizer/resource-client.js +2 -2
- package/dist/resources/v1/text-to-video/request-types.d.ts +35 -22
- package/dist/resources/v1/text-to-video/request-types.js +8 -0
- package/dist/resources/v1/text-to-video/resource-client.d.ts +2 -2
- package/dist/resources/v1/text-to-video/resource-client.js +2 -2
- package/dist/resources/v1/video-to-video/resource-client.d.ts +2 -2
- package/dist/resources/v1/video-to-video/resource-client.js +2 -2
- package/dist/types/v1-image-to-video-create-body-model-enum.d.ts +3 -3
- package/dist/types/v1-image-to-video-create-body-resolution-enum.d.ts +6 -6
- package/dist/types/v1-image-to-video-create-body.d.ts +29 -16
- package/dist/types/v1-image-to-video-create-body.js +8 -0
- package/dist/types/v1-text-to-video-create-body-aspect-ratio-enum.d.ts +6 -6
- package/dist/types/v1-text-to-video-create-body-model-enum.d.ts +3 -3
- package/dist/types/v1-text-to-video-create-body-resolution-enum.d.ts +6 -6
- package/dist/types/v1-text-to-video-create-body.d.ts +35 -22
- package/dist/types/v1-text-to-video-create-body.js +8 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ npm install magic-hour
|
|
|
19
19
|
## Usage
|
|
20
20
|
|
|
21
21
|
```ts
|
|
22
|
-
import Client from "magic-hour";
|
|
22
|
+
import { Client } from "magic-hour";
|
|
23
23
|
// generate your API Key at https://magichour.ai/developer
|
|
24
24
|
const client = new Client({ token: process.env["API_TOKEN"]!! });
|
|
25
25
|
const res = await client.v1.faceSwapPhoto.generate(
|
|
@@ -34,7 +34,7 @@ const res = await client.v1.faceSwapPhoto.generate(
|
|
|
34
34
|
{
|
|
35
35
|
waitForCompletion: true,
|
|
36
36
|
downloadOutputs: true,
|
|
37
|
-
downloadDirectory: "
|
|
37
|
+
downloadDirectory: ".",
|
|
38
38
|
},
|
|
39
39
|
);
|
|
40
40
|
|
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.52.0";
|
|
8
8
|
})(Environment || (exports.Environment = Environment = {}));
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { ApiError, ApiResponse, BinaryResponse, RequestOptions, UploadFile, isUploadFile, } from "make-api-request-js";
|
|
2
|
-
export { Client as default } from "./client";
|
|
2
|
+
export { Client, Client as default } from "./client";
|
|
3
3
|
export { Environment } from "./environment";
|
|
4
4
|
export * as resources from "./resources";
|
|
5
5
|
export * as types from "./types";
|
package/dist/index.js
CHANGED
|
@@ -33,12 +33,13 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.types = exports.resources = exports.Environment = exports.default = exports.isUploadFile = exports.BinaryResponse = exports.ApiError = void 0;
|
|
36
|
+
exports.types = exports.resources = exports.Environment = exports.default = exports.Client = exports.isUploadFile = exports.BinaryResponse = exports.ApiError = void 0;
|
|
37
37
|
var make_api_request_js_1 = require("make-api-request-js");
|
|
38
38
|
Object.defineProperty(exports, "ApiError", { enumerable: true, get: function () { return make_api_request_js_1.ApiError; } });
|
|
39
39
|
Object.defineProperty(exports, "BinaryResponse", { enumerable: true, get: function () { return make_api_request_js_1.BinaryResponse; } });
|
|
40
40
|
Object.defineProperty(exports, "isUploadFile", { enumerable: true, get: function () { return make_api_request_js_1.isUploadFile; } });
|
|
41
41
|
var client_1 = require("./client");
|
|
42
|
+
Object.defineProperty(exports, "Client", { enumerable: true, get: function () { return client_1.Client; } });
|
|
42
43
|
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return client_1.Client; } });
|
|
43
44
|
var environment_1 = require("./environment");
|
|
44
45
|
Object.defineProperty(exports, "Environment", { enumerable: true, get: function () { return environment_1.Environment; } });
|
|
@@ -31,7 +31,7 @@ export declare class AiClothesChangerClient extends CoreResourceClient {
|
|
|
31
31
|
*
|
|
32
32
|
* @example
|
|
33
33
|
* ```typescript
|
|
34
|
-
* import Client from "../../../index.js";
|
|
34
|
+
* import { Client } from "../../../index.js";
|
|
35
35
|
*
|
|
36
36
|
* const client = new Client({ token: process.env["API_TOKEN"]!! });
|
|
37
37
|
* const res = await client.v1.aiClothesChanger.generate(
|
|
@@ -46,7 +46,7 @@ export declare class AiClothesChangerClient extends CoreResourceClient {
|
|
|
46
46
|
* {
|
|
47
47
|
* waitForCompletion: true,
|
|
48
48
|
* downloadOutputs: true,
|
|
49
|
-
* downloadDirectory: "
|
|
49
|
+
* downloadDirectory: ".",
|
|
50
50
|
* },
|
|
51
51
|
* );
|
|
52
52
|
* ```
|
|
@@ -40,7 +40,7 @@ class AiClothesChangerClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
40
40
|
*
|
|
41
41
|
* @example
|
|
42
42
|
* ```typescript
|
|
43
|
-
* import Client from "../../../index.js";
|
|
43
|
+
* import { Client } from "../../../index.js";
|
|
44
44
|
*
|
|
45
45
|
* const client = new Client({ token: process.env["API_TOKEN"]!! });
|
|
46
46
|
* const res = await client.v1.aiClothesChanger.generate(
|
|
@@ -55,7 +55,7 @@ class AiClothesChangerClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
55
55
|
* {
|
|
56
56
|
* waitForCompletion: true,
|
|
57
57
|
* downloadOutputs: true,
|
|
58
|
-
* downloadDirectory: "
|
|
58
|
+
* downloadDirectory: ".",
|
|
59
59
|
* },
|
|
60
60
|
* );
|
|
61
61
|
* ```
|
|
@@ -23,7 +23,7 @@ export declare class AiFaceEditorClient extends CoreResourceClient {
|
|
|
23
23
|
*
|
|
24
24
|
* @example
|
|
25
25
|
* ```typescript
|
|
26
|
-
* import Client from "../../../index.js";
|
|
26
|
+
* import { Client } from "../../../index.js";
|
|
27
27
|
*
|
|
28
28
|
* const client = new Client({ token: process.env["API_TOKEN"]!! });
|
|
29
29
|
* const res = await client.v1.aiFaceEditor.generate(
|
|
@@ -51,7 +51,7 @@ export declare class AiFaceEditorClient extends CoreResourceClient {
|
|
|
51
51
|
* {
|
|
52
52
|
* waitForCompletion: true,
|
|
53
53
|
* downloadOutputs: true,
|
|
54
|
-
* downloadDirectory: "
|
|
54
|
+
* downloadDirectory: ".",
|
|
55
55
|
* },
|
|
56
56
|
* );
|
|
57
57
|
* ```
|
|
@@ -40,7 +40,7 @@ class AiFaceEditorClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
40
40
|
*
|
|
41
41
|
* @example
|
|
42
42
|
* ```typescript
|
|
43
|
-
* import Client from "../../../index.js";
|
|
43
|
+
* import { Client } from "../../../index.js";
|
|
44
44
|
*
|
|
45
45
|
* const client = new Client({ token: process.env["API_TOKEN"]!! });
|
|
46
46
|
* const res = await client.v1.aiFaceEditor.generate(
|
|
@@ -68,7 +68,7 @@ class AiFaceEditorClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
68
68
|
* {
|
|
69
69
|
* waitForCompletion: true,
|
|
70
70
|
* downloadOutputs: true,
|
|
71
|
-
* downloadDirectory: "
|
|
71
|
+
* downloadDirectory: ".",
|
|
72
72
|
* },
|
|
73
73
|
* );
|
|
74
74
|
* ```
|
|
@@ -14,7 +14,7 @@ export declare class AiGifGeneratorClient extends CoreResourceClient {
|
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
16
|
* ```typescript
|
|
17
|
-
* import Client from "../../../index.js";
|
|
17
|
+
* import { Client } from "../../../index.js";
|
|
18
18
|
*
|
|
19
19
|
* const client = new Client({ token: process.env["API_TOKEN"]!! });
|
|
20
20
|
* const res = await client.v1.aiGifGenerator.generate(
|
|
@@ -25,7 +25,7 @@ export declare class AiGifGeneratorClient extends CoreResourceClient {
|
|
|
25
25
|
* {
|
|
26
26
|
* waitForCompletion: true,
|
|
27
27
|
* downloadOutputs: true,
|
|
28
|
-
* downloadDirectory: "
|
|
28
|
+
* downloadDirectory: ".",
|
|
29
29
|
* },
|
|
30
30
|
* );
|
|
31
31
|
* ```
|
|
@@ -39,7 +39,7 @@ class AiGifGeneratorClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
39
39
|
*
|
|
40
40
|
* @example
|
|
41
41
|
* ```typescript
|
|
42
|
-
* import Client from "../../../index.js";
|
|
42
|
+
* import { Client } from "../../../index.js";
|
|
43
43
|
*
|
|
44
44
|
* const client = new Client({ token: process.env["API_TOKEN"]!! });
|
|
45
45
|
* const res = await client.v1.aiGifGenerator.generate(
|
|
@@ -50,7 +50,7 @@ class AiGifGeneratorClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
50
50
|
* {
|
|
51
51
|
* waitForCompletion: true,
|
|
52
52
|
* downloadOutputs: true,
|
|
53
|
-
* downloadDirectory: "
|
|
53
|
+
* downloadDirectory: ".",
|
|
54
54
|
* },
|
|
55
55
|
* );
|
|
56
56
|
* ```
|
|
@@ -23,7 +23,7 @@ export declare class AiHeadshotGeneratorClient extends CoreResourceClient {
|
|
|
23
23
|
*
|
|
24
24
|
* @example
|
|
25
25
|
* ```typescript
|
|
26
|
-
* import Client from "../../../index.js";
|
|
26
|
+
* import { Client } from "../../../index.js";
|
|
27
27
|
*
|
|
28
28
|
* const client = new Client({ token: process.env["API_TOKEN"]!! });
|
|
29
29
|
* const res = await client.v1.aiHeadshotGenerator.generate(
|
|
@@ -34,7 +34,7 @@ export declare class AiHeadshotGeneratorClient extends CoreResourceClient {
|
|
|
34
34
|
* {
|
|
35
35
|
* waitForCompletion: true,
|
|
36
36
|
* downloadOutputs: true,
|
|
37
|
-
* downloadDirectory: "
|
|
37
|
+
* downloadDirectory: ".",
|
|
38
38
|
* },
|
|
39
39
|
* );
|
|
40
40
|
* ```
|
|
@@ -40,7 +40,7 @@ class AiHeadshotGeneratorClient extends make_api_request_js_1.CoreResourceClient
|
|
|
40
40
|
*
|
|
41
41
|
* @example
|
|
42
42
|
* ```typescript
|
|
43
|
-
* import Client from "../../../index.js";
|
|
43
|
+
* import { Client } from "../../../index.js";
|
|
44
44
|
*
|
|
45
45
|
* const client = new Client({ token: process.env["API_TOKEN"]!! });
|
|
46
46
|
* const res = await client.v1.aiHeadshotGenerator.generate(
|
|
@@ -51,7 +51,7 @@ class AiHeadshotGeneratorClient extends make_api_request_js_1.CoreResourceClient
|
|
|
51
51
|
* {
|
|
52
52
|
* waitForCompletion: true,
|
|
53
53
|
* downloadOutputs: true,
|
|
54
|
-
* downloadDirectory: "
|
|
54
|
+
* downloadDirectory: ".",
|
|
55
55
|
* },
|
|
56
56
|
* );
|
|
57
57
|
* ```
|
|
@@ -33,7 +33,7 @@ export declare class AiImageEditorClient extends CoreResourceClient {
|
|
|
33
33
|
*
|
|
34
34
|
* @example
|
|
35
35
|
* ```typescript
|
|
36
|
-
* import Client from "../../../index.js";
|
|
36
|
+
* import { Client } from "../../../index.js";
|
|
37
37
|
*
|
|
38
38
|
* const client = new Client({ token: process.env["API_TOKEN"]!! });
|
|
39
39
|
* const res = await client.v1.aiImageEditor.generate(
|
|
@@ -45,7 +45,7 @@ export declare class AiImageEditorClient extends CoreResourceClient {
|
|
|
45
45
|
* {
|
|
46
46
|
* waitForCompletion: true,
|
|
47
47
|
* downloadOutputs: true,
|
|
48
|
-
* downloadDirectory: "
|
|
48
|
+
* downloadDirectory: ".",
|
|
49
49
|
* },
|
|
50
50
|
* );
|
|
51
51
|
* ```
|
|
@@ -40,7 +40,7 @@ class AiImageEditorClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
40
40
|
*
|
|
41
41
|
* @example
|
|
42
42
|
* ```typescript
|
|
43
|
-
* import Client from "../../../index.js";
|
|
43
|
+
* import { Client } from "../../../index.js";
|
|
44
44
|
*
|
|
45
45
|
* const client = new Client({ token: process.env["API_TOKEN"]!! });
|
|
46
46
|
* const res = await client.v1.aiImageEditor.generate(
|
|
@@ -52,7 +52,7 @@ class AiImageEditorClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
52
52
|
* {
|
|
53
53
|
* waitForCompletion: true,
|
|
54
54
|
* downloadOutputs: true,
|
|
55
|
-
* downloadDirectory: "
|
|
55
|
+
* downloadDirectory: ".",
|
|
56
56
|
* },
|
|
57
57
|
* );
|
|
58
58
|
* ```
|
|
@@ -14,7 +14,7 @@ export declare class AiImageGeneratorClient extends CoreResourceClient {
|
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
16
|
* ```typescript
|
|
17
|
-
* import Client from "../../../index.js";
|
|
17
|
+
* import { Client } from "../../../index.js";
|
|
18
18
|
*
|
|
19
19
|
* const client = new Client({ token: process.env["API_TOKEN"]!! });
|
|
20
20
|
* const res = await client.v1.aiImageGenerator.generate(
|
|
@@ -27,7 +27,7 @@ export declare class AiImageGeneratorClient extends CoreResourceClient {
|
|
|
27
27
|
* {
|
|
28
28
|
* waitForCompletion: true,
|
|
29
29
|
* downloadOutputs: true,
|
|
30
|
-
* downloadDirectory: "
|
|
30
|
+
* downloadDirectory: ".",
|
|
31
31
|
* },
|
|
32
32
|
* );
|
|
33
33
|
* ```
|
|
@@ -39,7 +39,7 @@ class AiImageGeneratorClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
39
39
|
*
|
|
40
40
|
* @example
|
|
41
41
|
* ```typescript
|
|
42
|
-
* import Client from "../../../index.js";
|
|
42
|
+
* import { Client } from "../../../index.js";
|
|
43
43
|
*
|
|
44
44
|
* const client = new Client({ token: process.env["API_TOKEN"]!! });
|
|
45
45
|
* const res = await client.v1.aiImageGenerator.generate(
|
|
@@ -52,7 +52,7 @@ class AiImageGeneratorClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
52
52
|
* {
|
|
53
53
|
* waitForCompletion: true,
|
|
54
54
|
* downloadOutputs: true,
|
|
55
|
-
* downloadDirectory: "
|
|
55
|
+
* downloadDirectory: ".",
|
|
56
56
|
* },
|
|
57
57
|
* );
|
|
58
58
|
* ```
|
|
@@ -23,7 +23,7 @@ export declare class AiImageUpscalerClient extends CoreResourceClient {
|
|
|
23
23
|
*
|
|
24
24
|
* @example
|
|
25
25
|
* ```typescript
|
|
26
|
-
* import Client from "../../../index.js";
|
|
26
|
+
* import { Client } from "../../../index.js";
|
|
27
27
|
*
|
|
28
28
|
* const client = new Client({ token: process.env["API_TOKEN"]!! });
|
|
29
29
|
* const res = await client.v1.aiImageUpscaler.generate(
|
|
@@ -36,7 +36,7 @@ export declare class AiImageUpscalerClient extends CoreResourceClient {
|
|
|
36
36
|
* {
|
|
37
37
|
* waitForCompletion: true,
|
|
38
38
|
* downloadOutputs: true,
|
|
39
|
-
* downloadDirectory: "
|
|
39
|
+
* downloadDirectory: ".",
|
|
40
40
|
* },
|
|
41
41
|
* );
|
|
42
42
|
* ```
|
|
@@ -40,7 +40,7 @@ class AiImageUpscalerClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
40
40
|
*
|
|
41
41
|
* @example
|
|
42
42
|
* ```typescript
|
|
43
|
-
* import Client from "../../../index.js";
|
|
43
|
+
* import { Client } from "../../../index.js";
|
|
44
44
|
*
|
|
45
45
|
* const client = new Client({ token: process.env["API_TOKEN"]!! });
|
|
46
46
|
* const res = await client.v1.aiImageUpscaler.generate(
|
|
@@ -53,7 +53,7 @@ class AiImageUpscalerClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
53
53
|
* {
|
|
54
54
|
* waitForCompletion: true,
|
|
55
55
|
* downloadOutputs: true,
|
|
56
|
-
* downloadDirectory: "
|
|
56
|
+
* downloadDirectory: ".",
|
|
57
57
|
* },
|
|
58
58
|
* );
|
|
59
59
|
* ```
|
|
@@ -14,7 +14,7 @@ export declare class AiMemeGeneratorClient extends CoreResourceClient {
|
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
16
|
* ```typescript
|
|
17
|
-
* import Client from "../../../index.js";
|
|
17
|
+
* import { Client } from "../../../index.js";
|
|
18
18
|
*
|
|
19
19
|
* const client = new Client({ token: process.env["API_TOKEN"]!! });
|
|
20
20
|
* const res = await client.v1.aiMemeGenerator.generate(
|
|
@@ -29,7 +29,7 @@ export declare class AiMemeGeneratorClient extends CoreResourceClient {
|
|
|
29
29
|
* {
|
|
30
30
|
* waitForCompletion: true,
|
|
31
31
|
* downloadOutputs: true,
|
|
32
|
-
* downloadDirectory: "
|
|
32
|
+
* downloadDirectory: ".",
|
|
33
33
|
* },
|
|
34
34
|
* );
|
|
35
35
|
* ```
|
|
@@ -39,7 +39,7 @@ class AiMemeGeneratorClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
39
39
|
*
|
|
40
40
|
* @example
|
|
41
41
|
* ```typescript
|
|
42
|
-
* import Client from "../../../index.js";
|
|
42
|
+
* import { Client } from "../../../index.js";
|
|
43
43
|
*
|
|
44
44
|
* const client = new Client({ token: process.env["API_TOKEN"]!! });
|
|
45
45
|
* const res = await client.v1.aiMemeGenerator.generate(
|
|
@@ -54,7 +54,7 @@ class AiMemeGeneratorClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
54
54
|
* {
|
|
55
55
|
* waitForCompletion: true,
|
|
56
56
|
* downloadOutputs: true,
|
|
57
|
-
* downloadDirectory: "
|
|
57
|
+
* downloadDirectory: ".",
|
|
58
58
|
* },
|
|
59
59
|
* );
|
|
60
60
|
* ```
|
|
@@ -14,7 +14,7 @@ export declare class AiQrCodeGeneratorClient extends CoreResourceClient {
|
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
16
|
* ```typescript
|
|
17
|
-
* import Client from "../../../index.js";
|
|
17
|
+
* import { Client } from "../../../index.js";
|
|
18
18
|
*
|
|
19
19
|
* const client = new Client({ token: process.env["API_TOKEN"]!! });
|
|
20
20
|
* const res = await client.v1.aiQrCodeGenerator.generate(
|
|
@@ -26,7 +26,7 @@ export declare class AiQrCodeGeneratorClient extends CoreResourceClient {
|
|
|
26
26
|
* {
|
|
27
27
|
* waitForCompletion: true,
|
|
28
28
|
* downloadOutputs: true,
|
|
29
|
-
* downloadDirectory: "
|
|
29
|
+
* downloadDirectory: ".",
|
|
30
30
|
* },
|
|
31
31
|
* );
|
|
32
32
|
* ```
|
|
@@ -39,7 +39,7 @@ class AiQrCodeGeneratorClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
39
39
|
*
|
|
40
40
|
* @example
|
|
41
41
|
* ```typescript
|
|
42
|
-
* import Client from "../../../index.js";
|
|
42
|
+
* import { Client } from "../../../index.js";
|
|
43
43
|
*
|
|
44
44
|
* const client = new Client({ token: process.env["API_TOKEN"]!! });
|
|
45
45
|
* const res = await client.v1.aiQrCodeGenerator.generate(
|
|
@@ -51,7 +51,7 @@ class AiQrCodeGeneratorClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
51
51
|
* {
|
|
52
52
|
* waitForCompletion: true,
|
|
53
53
|
* downloadOutputs: true,
|
|
54
|
-
* downloadDirectory: "
|
|
54
|
+
* downloadDirectory: ".",
|
|
55
55
|
* },
|
|
56
56
|
* );
|
|
57
57
|
* ```
|
|
@@ -31,7 +31,7 @@ export declare class AiTalkingPhotoClient extends CoreResourceClient {
|
|
|
31
31
|
*
|
|
32
32
|
* @example
|
|
33
33
|
* ```typescript
|
|
34
|
-
* import Client from "../../../index.js";
|
|
34
|
+
* import { Client } from "../../../index.js";
|
|
35
35
|
*
|
|
36
36
|
* const client = new Client({ token: process.env["API_TOKEN"]!! });
|
|
37
37
|
* const res = await client.v1.aiTalkingPhoto.generate(
|
|
@@ -47,7 +47,7 @@ export declare class AiTalkingPhotoClient extends CoreResourceClient {
|
|
|
47
47
|
* {
|
|
48
48
|
* waitForCompletion: true,
|
|
49
49
|
* downloadOutputs: true,
|
|
50
|
-
* downloadDirectory: "
|
|
50
|
+
* downloadDirectory: ".",
|
|
51
51
|
* },
|
|
52
52
|
* );
|
|
53
53
|
* ```
|
|
@@ -40,7 +40,7 @@ class AiTalkingPhotoClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
40
40
|
*
|
|
41
41
|
* @example
|
|
42
42
|
* ```typescript
|
|
43
|
-
* import Client from "../../../index.js";
|
|
43
|
+
* import { Client } from "../../../index.js";
|
|
44
44
|
*
|
|
45
45
|
* const client = new Client({ token: process.env["API_TOKEN"]!! });
|
|
46
46
|
* const res = await client.v1.aiTalkingPhoto.generate(
|
|
@@ -56,7 +56,7 @@ class AiTalkingPhotoClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
56
56
|
* {
|
|
57
57
|
* waitForCompletion: true,
|
|
58
58
|
* downloadOutputs: true,
|
|
59
|
-
* downloadDirectory: "
|
|
59
|
+
* downloadDirectory: ".",
|
|
60
60
|
* },
|
|
61
61
|
* );
|
|
62
62
|
* ```
|
|
@@ -23,7 +23,7 @@ export declare class AiVoiceClonerClient extends CoreResourceClient {
|
|
|
23
23
|
*
|
|
24
24
|
* @example
|
|
25
25
|
* ```typescript
|
|
26
|
-
* import Client from "../../../index.js";
|
|
26
|
+
* import { Client } from "../../../index.js";
|
|
27
27
|
*
|
|
28
28
|
* const client = new Client({ token: process.env["API_TOKEN"]!! });
|
|
29
29
|
* const res = await client.v1.aiVoiceCloner.generate(
|
|
@@ -35,7 +35,7 @@ export declare class AiVoiceClonerClient extends CoreResourceClient {
|
|
|
35
35
|
* {
|
|
36
36
|
* waitForCompletion: true,
|
|
37
37
|
* downloadOutputs: true,
|
|
38
|
-
* downloadDirectory: "
|
|
38
|
+
* downloadDirectory: ".",
|
|
39
39
|
* },
|
|
40
40
|
* );
|
|
41
41
|
* ```
|
|
@@ -40,7 +40,7 @@ class AiVoiceClonerClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
40
40
|
*
|
|
41
41
|
* @example
|
|
42
42
|
* ```typescript
|
|
43
|
-
* import Client from "../../../index.js";
|
|
43
|
+
* import { Client } from "../../../index.js";
|
|
44
44
|
*
|
|
45
45
|
* const client = new Client({ token: process.env["API_TOKEN"]!! });
|
|
46
46
|
* const res = await client.v1.aiVoiceCloner.generate(
|
|
@@ -52,7 +52,7 @@ class AiVoiceClonerClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
52
52
|
* {
|
|
53
53
|
* waitForCompletion: true,
|
|
54
54
|
* downloadOutputs: true,
|
|
55
|
-
* downloadDirectory: "
|
|
55
|
+
* downloadDirectory: ".",
|
|
56
56
|
* },
|
|
57
57
|
* );
|
|
58
58
|
* ```
|
|
@@ -14,7 +14,7 @@ export declare class AiVoiceGeneratorClient extends CoreResourceClient {
|
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
16
|
* ```typescript
|
|
17
|
-
* import Client from "../../../index.js";
|
|
17
|
+
* import { Client } from "../../../index.js";
|
|
18
18
|
*
|
|
19
19
|
* const client = new Client({ token: process.env["API_TOKEN"]!! });
|
|
20
20
|
* const res = await client.v1.aiVoiceGenerator.generate(
|
|
@@ -25,7 +25,7 @@ export declare class AiVoiceGeneratorClient extends CoreResourceClient {
|
|
|
25
25
|
* {
|
|
26
26
|
* waitForCompletion: true,
|
|
27
27
|
* downloadOutputs: true,
|
|
28
|
-
* downloadDirectory: "
|
|
28
|
+
* downloadDirectory: ".",
|
|
29
29
|
* },
|
|
30
30
|
* );
|
|
31
31
|
* ```
|
|
@@ -39,7 +39,7 @@ class AiVoiceGeneratorClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
39
39
|
*
|
|
40
40
|
* @example
|
|
41
41
|
* ```typescript
|
|
42
|
-
* import Client from "../../../index.js";
|
|
42
|
+
* import { Client } from "../../../index.js";
|
|
43
43
|
*
|
|
44
44
|
* const client = new Client({ token: process.env["API_TOKEN"]!! });
|
|
45
45
|
* const res = await client.v1.aiVoiceGenerator.generate(
|
|
@@ -50,7 +50,7 @@ class AiVoiceGeneratorClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
50
50
|
* {
|
|
51
51
|
* waitForCompletion: true,
|
|
52
52
|
* downloadOutputs: true,
|
|
53
|
-
* downloadDirectory: "
|
|
53
|
+
* downloadDirectory: ".",
|
|
54
54
|
* },
|
|
55
55
|
* );
|
|
56
56
|
* ```
|
|
@@ -31,7 +31,7 @@ export declare class AnimationClient extends CoreResourceClient {
|
|
|
31
31
|
*
|
|
32
32
|
* @example
|
|
33
33
|
* ```typescript
|
|
34
|
-
* import Client from "../../../index.js";
|
|
34
|
+
* import { Client } from "../../../index.js";
|
|
35
35
|
*
|
|
36
36
|
* const client = new Client({ token: process.env["API_TOKEN"]!! });
|
|
37
37
|
* const res = await client.v1.animation.generate(
|
|
@@ -57,7 +57,7 @@ export declare class AnimationClient extends CoreResourceClient {
|
|
|
57
57
|
* {
|
|
58
58
|
* waitForCompletion: true,
|
|
59
59
|
* downloadOutputs: true,
|
|
60
|
-
* downloadDirectory: "
|
|
60
|
+
* downloadDirectory: ".",
|
|
61
61
|
* },
|
|
62
62
|
* );
|
|
63
63
|
* ```
|
|
@@ -40,7 +40,7 @@ class AnimationClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
40
40
|
*
|
|
41
41
|
* @example
|
|
42
42
|
* ```typescript
|
|
43
|
-
* import Client from "../../../index.js";
|
|
43
|
+
* import { Client } from "../../../index.js";
|
|
44
44
|
*
|
|
45
45
|
* const client = new Client({ token: process.env["API_TOKEN"]!! });
|
|
46
46
|
* const res = await client.v1.animation.generate(
|
|
@@ -66,7 +66,7 @@ class AnimationClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
66
66
|
* {
|
|
67
67
|
* waitForCompletion: true,
|
|
68
68
|
* downloadOutputs: true,
|
|
69
|
-
* downloadDirectory: "
|
|
69
|
+
* downloadDirectory: ".",
|
|
70
70
|
* },
|
|
71
71
|
* );
|
|
72
72
|
* ```
|
|
@@ -23,7 +23,7 @@ export declare class AutoSubtitleGeneratorClient extends CoreResourceClient {
|
|
|
23
23
|
*
|
|
24
24
|
* @example
|
|
25
25
|
* ```typescript
|
|
26
|
-
* import Client from "../../../index.js";
|
|
26
|
+
* import { Client } from "../../../index.js";
|
|
27
27
|
*
|
|
28
28
|
* const client = new Client({ token: process.env["API_TOKEN"]!! });
|
|
29
29
|
* const res = await client.v1.autoSubtitleGenerator.generate(
|
|
@@ -37,7 +37,7 @@ export declare class AutoSubtitleGeneratorClient extends CoreResourceClient {
|
|
|
37
37
|
* {
|
|
38
38
|
* waitForCompletion: true,
|
|
39
39
|
* downloadOutputs: true,
|
|
40
|
-
* downloadDirectory: "
|
|
40
|
+
* downloadDirectory: ".",
|
|
41
41
|
* },
|
|
42
42
|
* );
|
|
43
43
|
* ```
|
|
@@ -40,7 +40,7 @@ class AutoSubtitleGeneratorClient extends make_api_request_js_1.CoreResourceClie
|
|
|
40
40
|
*
|
|
41
41
|
* @example
|
|
42
42
|
* ```typescript
|
|
43
|
-
* import Client from "../../../index.js";
|
|
43
|
+
* import { Client } from "../../../index.js";
|
|
44
44
|
*
|
|
45
45
|
* const client = new Client({ token: process.env["API_TOKEN"]!! });
|
|
46
46
|
* const res = await client.v1.autoSubtitleGenerator.generate(
|
|
@@ -54,7 +54,7 @@ class AutoSubtitleGeneratorClient extends make_api_request_js_1.CoreResourceClie
|
|
|
54
54
|
* {
|
|
55
55
|
* waitForCompletion: true,
|
|
56
56
|
* downloadOutputs: true,
|
|
57
|
-
* downloadDirectory: "
|
|
57
|
+
* downloadDirectory: ".",
|
|
58
58
|
* },
|
|
59
59
|
* );
|
|
60
60
|
* ```
|
|
@@ -48,7 +48,7 @@ export declare class FaceSwapClient extends CoreResourceClient {
|
|
|
48
48
|
*
|
|
49
49
|
* @example
|
|
50
50
|
* ```typescript
|
|
51
|
-
* import Client from "../../../index.js";
|
|
51
|
+
* import { Client } from "../../../index.js";
|
|
52
52
|
*
|
|
53
53
|
* const client = new Client({ token: process.env["API_TOKEN"]!! });
|
|
54
54
|
* const res = await client.v1.faceSwap.generate(
|
|
@@ -73,7 +73,7 @@ export declare class FaceSwapClient extends CoreResourceClient {
|
|
|
73
73
|
* {
|
|
74
74
|
* waitForCompletion: true,
|
|
75
75
|
* downloadOutputs: true,
|
|
76
|
-
* downloadDirectory: "
|
|
76
|
+
* downloadDirectory: ".",
|
|
77
77
|
* },
|
|
78
78
|
* );
|
|
79
79
|
* ```
|
|
@@ -40,7 +40,7 @@ class FaceSwapClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
40
40
|
*
|
|
41
41
|
* @example
|
|
42
42
|
* ```typescript
|
|
43
|
-
* import Client from "../../../index.js";
|
|
43
|
+
* import { Client } from "../../../index.js";
|
|
44
44
|
*
|
|
45
45
|
* const client = new Client({ token: process.env["API_TOKEN"]!! });
|
|
46
46
|
* const res = await client.v1.faceSwap.generate(
|
|
@@ -65,7 +65,7 @@ class FaceSwapClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
65
65
|
* {
|
|
66
66
|
* waitForCompletion: true,
|
|
67
67
|
* downloadOutputs: true,
|
|
68
|
-
* downloadDirectory: "
|
|
68
|
+
* downloadDirectory: ".",
|
|
69
69
|
* },
|
|
70
70
|
* );
|
|
71
71
|
* ```
|
|
@@ -48,7 +48,7 @@ export declare class FaceSwapPhotoClient extends CoreResourceClient {
|
|
|
48
48
|
*
|
|
49
49
|
* @example
|
|
50
50
|
* ```typescript
|
|
51
|
-
* import Client from "../../../index.js";
|
|
51
|
+
* import { Client } from "../../../index.js";
|
|
52
52
|
*
|
|
53
53
|
* const client = new Client({ token: process.env["API_TOKEN"]!! });
|
|
54
54
|
* const res = await client.v1.faceSwapPhoto.generate(
|
|
@@ -69,7 +69,7 @@ export declare class FaceSwapPhotoClient extends CoreResourceClient {
|
|
|
69
69
|
* {
|
|
70
70
|
* waitForCompletion: true,
|
|
71
71
|
* downloadOutputs: true,
|
|
72
|
-
* downloadDirectory: "
|
|
72
|
+
* downloadDirectory: ".",
|
|
73
73
|
* },
|
|
74
74
|
* );
|
|
75
75
|
* ```
|