magic-hour 0.50.0 → 0.51.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/README.md +1 -1
  2. package/dist/index.d.ts +1 -1
  3. package/dist/index.js +2 -1
  4. package/dist/resources/v1/ai-clothes-changer/resource-client.d.ts +1 -1
  5. package/dist/resources/v1/ai-clothes-changer/resource-client.js +1 -1
  6. package/dist/resources/v1/ai-face-editor/resource-client.d.ts +1 -1
  7. package/dist/resources/v1/ai-face-editor/resource-client.js +1 -1
  8. package/dist/resources/v1/ai-gif-generator/resource-client.d.ts +1 -1
  9. package/dist/resources/v1/ai-gif-generator/resource-client.js +1 -1
  10. package/dist/resources/v1/ai-headshot-generator/resource-client.d.ts +1 -1
  11. package/dist/resources/v1/ai-headshot-generator/resource-client.js +1 -1
  12. package/dist/resources/v1/ai-image-editor/resource-client.d.ts +1 -1
  13. package/dist/resources/v1/ai-image-editor/resource-client.js +1 -1
  14. package/dist/resources/v1/ai-image-generator/resource-client.d.ts +1 -1
  15. package/dist/resources/v1/ai-image-generator/resource-client.js +1 -1
  16. package/dist/resources/v1/ai-image-upscaler/resource-client.d.ts +1 -1
  17. package/dist/resources/v1/ai-image-upscaler/resource-client.js +1 -1
  18. package/dist/resources/v1/ai-meme-generator/resource-client.d.ts +1 -1
  19. package/dist/resources/v1/ai-meme-generator/resource-client.js +1 -1
  20. package/dist/resources/v1/ai-qr-code-generator/resource-client.d.ts +1 -1
  21. package/dist/resources/v1/ai-qr-code-generator/resource-client.js +1 -1
  22. package/dist/resources/v1/ai-talking-photo/resource-client.d.ts +1 -1
  23. package/dist/resources/v1/ai-talking-photo/resource-client.js +1 -1
  24. package/dist/resources/v1/ai-voice-cloner/resource-client.d.ts +1 -1
  25. package/dist/resources/v1/ai-voice-cloner/resource-client.js +1 -1
  26. package/dist/resources/v1/ai-voice-generator/resource-client.d.ts +1 -1
  27. package/dist/resources/v1/ai-voice-generator/resource-client.js +1 -1
  28. package/dist/resources/v1/animation/resource-client.d.ts +1 -1
  29. package/dist/resources/v1/animation/resource-client.js +1 -1
  30. package/dist/resources/v1/auto-subtitle-generator/resource-client.d.ts +1 -1
  31. package/dist/resources/v1/auto-subtitle-generator/resource-client.js +1 -1
  32. package/dist/resources/v1/face-swap/resource-client.d.ts +1 -1
  33. package/dist/resources/v1/face-swap/resource-client.js +1 -1
  34. package/dist/resources/v1/face-swap-photo/resource-client.d.ts +1 -1
  35. package/dist/resources/v1/face-swap-photo/resource-client.js +1 -1
  36. package/dist/resources/v1/files/resource-client.test.js +2 -5
  37. package/dist/resources/v1/image-background-remover/resource-client.d.ts +1 -1
  38. package/dist/resources/v1/image-background-remover/resource-client.js +1 -1
  39. package/dist/resources/v1/image-to-video/resource-client.d.ts +1 -1
  40. package/dist/resources/v1/image-to-video/resource-client.js +1 -1
  41. package/dist/resources/v1/lip-sync/resource-client.d.ts +1 -1
  42. package/dist/resources/v1/lip-sync/resource-client.js +1 -1
  43. package/dist/resources/v1/photo-colorizer/resource-client.d.ts +1 -1
  44. package/dist/resources/v1/photo-colorizer/resource-client.js +1 -1
  45. package/dist/resources/v1/text-to-video/resource-client.d.ts +1 -1
  46. package/dist/resources/v1/text-to-video/resource-client.js +1 -1
  47. package/dist/resources/v1/video-to-video/resource-client.d.ts +1 -1
  48. package/dist/resources/v1/video-to-video/resource-client.js +1 -1
  49. 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(
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(
@@ -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(
@@ -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(
@@ -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(
@@ -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(
@@ -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(
@@ -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(
@@ -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(
@@ -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(
@@ -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(
@@ -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(
@@ -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(
@@ -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(
@@ -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(
@@ -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(
@@ -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(
@@ -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(
@@ -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(
@@ -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(
@@ -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(
@@ -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(
@@ -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(
@@ -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(
@@ -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(
@@ -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(
@@ -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(
@@ -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(
@@ -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(
@@ -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(
@@ -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(
@@ -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(
@@ -40,7 +40,7 @@ class FaceSwapPhotoClient 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.faceSwapPhoto.generate(
@@ -41,11 +41,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
41
41
  step((generator = generator.apply(thisArg, _arguments || [])).next());
42
42
  });
43
43
  };
44
- var __importDefault = (this && this.__importDefault) || function (mod) {
45
- return (mod && mod.__esModule) ? mod : { "default": mod };
46
- };
47
44
  Object.defineProperty(exports, "__esModule", { value: true });
48
- const magic_hour_1 = __importDefault(require("../../../index.js"));
45
+ const magic_hour_1 = require("../../../index.js");
49
46
  const fs = __importStar(require("fs"));
50
47
  const path = __importStar(require("path"));
51
48
  const stream_1 = require("stream");
@@ -91,7 +88,7 @@ afterEach(() => server.resetHandlers());
91
88
  describe("FilesClient.uploadFile", () => {
92
89
  let client;
93
90
  beforeEach(() => {
94
- client = new magic_hour_1.default({
91
+ client = new magic_hour_1.Client({
95
92
  token: "API_TOKEN",
96
93
  });
97
94
  // Reset all mocks
@@ -31,7 +31,7 @@ export declare class ImageBackgroundRemoverClient 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.imageBackgroundRemover.generate(
@@ -40,7 +40,7 @@ class ImageBackgroundRemoverClient extends make_api_request_js_1.CoreResourceCli
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.imageBackgroundRemover.generate(
@@ -23,7 +23,7 @@ export declare class ImageToVideoClient 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.imageToVideo.generate(
@@ -40,7 +40,7 @@ class ImageToVideoClient 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.imageToVideo.generate(
@@ -31,7 +31,7 @@ export declare class LipSyncClient 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.lipSync.generate(
@@ -40,7 +40,7 @@ class LipSyncClient 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.lipSync.generate(
@@ -23,7 +23,7 @@ export declare class PhotoColorizerClient 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.photoColorizer.generate(
@@ -40,7 +40,7 @@ class PhotoColorizerClient 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.photoColorizer.generate(
@@ -14,7 +14,7 @@ export declare class TextToVideoClient 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.textToVideo.generate(
@@ -39,7 +39,7 @@ class TextToVideoClient 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.textToVideo.generate(
@@ -23,7 +23,7 @@ export declare class VideoToVideoClient 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.videoToVideo.generate(
@@ -40,7 +40,7 @@ class VideoToVideoClient 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.videoToVideo.generate(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "magic-hour",
3
- "version": "0.50.0",
3
+ "version": "0.51.0",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {