magic-hour 0.35.0 → 0.37.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 +208 -10
- package/dist/client.js +2 -2
- package/dist/core/api-error.d.ts +1 -1
- package/dist/core/api-promise.d.ts +2 -2
- package/dist/core/api-promise.js +2 -1
- package/dist/core/auth.d.ts +1 -1
- package/dist/core/auth.js +1 -1
- package/dist/core/binary-response.d.ts +1 -1
- package/dist/core/core-client.d.ts +5 -5
- package/dist/core/core-client.js +2 -5
- package/dist/core/form-data.d.ts +1 -1
- package/dist/core/zod.d.ts +1 -1
- package/dist/core/zod.js +1 -1
- package/dist/environment.d.ts +1 -1
- package/dist/environment.js +1 -1
- package/dist/helpers/download.d.ts +5 -0
- package/dist/helpers/download.js +88 -0
- package/dist/helpers/generate-type.d.ts +51 -0
- package/dist/helpers/generate-type.js +2 -0
- package/dist/helpers/sleep.d.ts +4 -0
- package/dist/helpers/sleep.js +9 -0
- package/dist/logger.d.ts +48 -0
- package/dist/logger.js +97 -0
- package/dist/resources/v1/ai-clothes-changer/request-types.d.ts +1 -1
- package/dist/resources/v1/ai-clothes-changer/request-types.js +1 -1
- package/dist/resources/v1/ai-clothes-changer/resource-client.d.ts +50 -0
- package/dist/resources/v1/ai-clothes-changer/resource-client.js +75 -0
- package/dist/resources/v1/ai-face-editor/request-types.d.ts +1 -1
- package/dist/resources/v1/ai-face-editor/request-types.js +1 -1
- package/dist/resources/v1/ai-face-editor/resource-client.d.ts +55 -0
- package/dist/resources/v1/ai-face-editor/resource-client.js +85 -0
- package/dist/resources/v1/ai-gif-generator/request-types.d.ts +1 -1
- package/dist/resources/v1/ai-gif-generator/request-types.js +1 -1
- package/dist/resources/v1/ai-gif-generator/resource-client.d.ts +29 -0
- package/dist/resources/v1/ai-gif-generator/resource-client.js +60 -0
- package/dist/resources/v1/ai-headshot-generator/request-types.d.ts +1 -1
- package/dist/resources/v1/ai-headshot-generator/request-types.js +1 -1
- package/dist/resources/v1/ai-headshot-generator/resource-client.d.ts +38 -0
- package/dist/resources/v1/ai-headshot-generator/resource-client.js +68 -0
- package/dist/resources/v1/ai-image-editor/request-types.d.ts +1 -1
- package/dist/resources/v1/ai-image-editor/request-types.js +1 -1
- package/dist/resources/v1/ai-image-editor/resource-client.d.ts +39 -0
- package/dist/resources/v1/ai-image-editor/resource-client.js +69 -0
- package/dist/resources/v1/ai-image-generator/request-types.d.ts +1 -1
- package/dist/resources/v1/ai-image-generator/request-types.js +1 -1
- package/dist/resources/v1/ai-image-generator/resource-client.d.ts +31 -0
- package/dist/resources/v1/ai-image-generator/resource-client.js +62 -0
- package/dist/resources/v1/ai-image-upscaler/request-types.d.ts +1 -1
- package/dist/resources/v1/ai-image-upscaler/request-types.js +1 -1
- package/dist/resources/v1/ai-image-upscaler/resource-client.d.ts +40 -0
- package/dist/resources/v1/ai-image-upscaler/resource-client.js +70 -0
- package/dist/resources/v1/ai-meme-generator/request-types.d.ts +1 -1
- package/dist/resources/v1/ai-meme-generator/request-types.js +1 -1
- package/dist/resources/v1/ai-meme-generator/resource-client.d.ts +33 -0
- package/dist/resources/v1/ai-meme-generator/resource-client.js +64 -0
- package/dist/resources/v1/ai-photo-editor/request-types.d.ts +1 -1
- package/dist/resources/v1/ai-photo-editor/request-types.js +1 -1
- package/dist/resources/v1/ai-photo-editor/resource-client.d.ts +49 -0
- package/dist/resources/v1/ai-photo-editor/resource-client.js +79 -0
- package/dist/resources/v1/ai-qr-code-generator/request-types.d.ts +1 -1
- package/dist/resources/v1/ai-qr-code-generator/request-types.js +1 -1
- package/dist/resources/v1/ai-qr-code-generator/resource-client.d.ts +30 -0
- package/dist/resources/v1/ai-qr-code-generator/resource-client.js +61 -0
- package/dist/resources/v1/ai-talking-photo/request-types.d.ts +1 -1
- package/dist/resources/v1/ai-talking-photo/request-types.js +1 -1
- package/dist/resources/v1/ai-talking-photo/resource-client.d.ts +51 -0
- package/dist/resources/v1/ai-talking-photo/resource-client.js +76 -0
- package/dist/resources/v1/animation/request-types.d.ts +1 -1
- package/dist/resources/v1/animation/request-types.js +1 -1
- package/dist/resources/v1/animation/resource-client.d.ts +61 -0
- package/dist/resources/v1/animation/resource-client.js +98 -0
- package/dist/resources/v1/auto-subtitle-generator/request-types.d.ts +1 -1
- package/dist/resources/v1/auto-subtitle-generator/request-types.js +1 -1
- package/dist/resources/v1/auto-subtitle-generator/resource-client.d.ts +41 -0
- package/dist/resources/v1/auto-subtitle-generator/resource-client.js +71 -0
- package/dist/resources/v1/face-detection/request-types.d.ts +1 -1
- package/dist/resources/v1/face-detection/request-types.js +1 -1
- package/dist/resources/v1/face-detection/resource-client.d.ts +30 -0
- package/dist/resources/v1/face-detection/resource-client.js +75 -0
- package/dist/resources/v1/face-swap/request-types.d.ts +7 -1
- package/dist/resources/v1/face-swap/request-types.js +6 -1
- package/dist/resources/v1/face-swap/resource-client.d.ts +77 -0
- package/dist/resources/v1/face-swap/resource-client.js +125 -0
- package/dist/resources/v1/face-swap-photo/request-types.d.ts +1 -1
- package/dist/resources/v1/face-swap-photo/request-types.js +1 -1
- package/dist/resources/v1/face-swap-photo/resource-client.d.ts +73 -0
- package/dist/resources/v1/face-swap-photo/resource-client.js +117 -0
- package/dist/resources/v1/files/resource-client.d.ts +40 -0
- package/dist/resources/v1/files/resource-client.js +236 -0
- package/dist/resources/v1/files/resource-client.test.d.ts +1 -0
- package/dist/resources/v1/files/resource-client.test.js +422 -0
- package/dist/resources/v1/files/upload-urls/request-types.d.ts +1 -1
- package/dist/resources/v1/files/upload-urls/request-types.js +1 -1
- package/dist/resources/v1/image-background-remover/request-types.d.ts +1 -1
- package/dist/resources/v1/image-background-remover/request-types.js +1 -1
- package/dist/resources/v1/image-background-remover/resource-client.d.ts +49 -0
- package/dist/resources/v1/image-background-remover/resource-client.js +82 -0
- package/dist/resources/v1/image-projects/request-types.js +1 -1
- package/dist/resources/v1/image-projects/resource-client.d.ts +22 -0
- package/dist/resources/v1/image-projects/resource-client.js +68 -0
- package/dist/resources/v1/image-projects/resource-client.test.d.ts +1 -0
- package/dist/resources/v1/image-projects/resource-client.test.js +538 -0
- package/dist/resources/v1/image-to-video/request-types.d.ts +1 -1
- package/dist/resources/v1/image-to-video/request-types.js +1 -1
- package/dist/resources/v1/image-to-video/resource-client.d.ts +40 -0
- package/dist/resources/v1/image-to-video/resource-client.js +70 -0
- package/dist/resources/v1/lip-sync/request-types.d.ts +1 -1
- package/dist/resources/v1/lip-sync/request-types.js +1 -1
- package/dist/resources/v1/lip-sync/resource-client.d.ts +53 -0
- package/dist/resources/v1/lip-sync/resource-client.js +84 -0
- package/dist/resources/v1/photo-colorizer/request-types.d.ts +1 -1
- package/dist/resources/v1/photo-colorizer/request-types.js +1 -1
- package/dist/resources/v1/photo-colorizer/resource-client.d.ts +38 -0
- package/dist/resources/v1/photo-colorizer/resource-client.js +68 -0
- package/dist/resources/v1/resource-client.js +3 -3
- package/dist/resources/v1/text-to-video/request-types.d.ts +1 -1
- package/dist/resources/v1/text-to-video/request-types.js +1 -1
- package/dist/resources/v1/text-to-video/resource-client.d.ts +32 -0
- package/dist/resources/v1/text-to-video/resource-client.js +63 -0
- package/dist/resources/v1/video-projects/request-types.js +1 -1
- package/dist/resources/v1/video-projects/resource-client.d.ts +22 -0
- package/dist/resources/v1/video-projects/resource-client.js +68 -0
- package/dist/resources/v1/video-projects/resource-client.test.d.ts +1 -0
- package/dist/resources/v1/video-projects/resource-client.test.js +713 -0
- package/dist/resources/v1/video-to-video/request-types.d.ts +1 -1
- package/dist/resources/v1/video-to-video/request-types.js +1 -1
- package/dist/resources/v1/video-to-video/resource-client.d.ts +48 -0
- package/dist/resources/v1/video-to-video/resource-client.js +84 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/v1-ai-clothes-changer-create-body-assets.js +1 -1
- package/dist/types/v1-ai-clothes-changer-create-body.d.ts +1 -1
- package/dist/types/v1-ai-clothes-changer-create-body.js +2 -2
- package/dist/types/v1-ai-clothes-changer-create-response.js +1 -1
- package/dist/types/v1-ai-face-editor-create-body-assets.js +1 -1
- package/dist/types/v1-ai-face-editor-create-body-style.js +1 -1
- package/dist/types/v1-ai-face-editor-create-body.d.ts +1 -1
- package/dist/types/v1-ai-face-editor-create-body.js +2 -2
- package/dist/types/v1-ai-face-editor-create-response.js +1 -1
- package/dist/types/v1-ai-gif-generator-create-body-style.js +1 -1
- package/dist/types/v1-ai-gif-generator-create-body.d.ts +1 -1
- package/dist/types/v1-ai-gif-generator-create-body.js +2 -2
- package/dist/types/v1-ai-gif-generator-create-response.js +1 -1
- package/dist/types/v1-ai-headshot-generator-create-body-assets.js +1 -1
- package/dist/types/v1-ai-headshot-generator-create-body-style.js +1 -1
- package/dist/types/v1-ai-headshot-generator-create-body.d.ts +1 -1
- package/dist/types/v1-ai-headshot-generator-create-body.js +2 -2
- package/dist/types/v1-ai-headshot-generator-create-response.js +1 -1
- package/dist/types/v1-ai-image-editor-create-body-assets.js +1 -1
- package/dist/types/v1-ai-image-editor-create-body-style.js +1 -1
- package/dist/types/v1-ai-image-editor-create-body.d.ts +1 -1
- package/dist/types/v1-ai-image-editor-create-body.js +2 -2
- package/dist/types/v1-ai-image-editor-create-response.js +1 -1
- package/dist/types/v1-ai-image-generator-create-body-style.js +1 -1
- package/dist/types/v1-ai-image-generator-create-body.d.ts +1 -1
- package/dist/types/v1-ai-image-generator-create-body.js +2 -2
- package/dist/types/v1-ai-image-generator-create-response.js +1 -1
- package/dist/types/v1-ai-image-upscaler-create-body-assets.js +1 -1
- package/dist/types/v1-ai-image-upscaler-create-body-style.js +1 -1
- package/dist/types/v1-ai-image-upscaler-create-body.d.ts +1 -1
- package/dist/types/v1-ai-image-upscaler-create-body.js +2 -2
- package/dist/types/v1-ai-image-upscaler-create-response.js +1 -1
- package/dist/types/v1-ai-meme-generator-create-body-style.js +1 -1
- package/dist/types/v1-ai-meme-generator-create-body.d.ts +1 -1
- package/dist/types/v1-ai-meme-generator-create-body.js +2 -2
- package/dist/types/v1-ai-meme-generator-create-response.js +1 -1
- package/dist/types/v1-ai-photo-editor-create-body-assets.js +1 -1
- package/dist/types/v1-ai-photo-editor-create-body-style.js +1 -1
- package/dist/types/v1-ai-photo-editor-create-body.d.ts +1 -1
- package/dist/types/v1-ai-photo-editor-create-body.js +2 -2
- package/dist/types/v1-ai-photo-editor-create-response.js +1 -1
- package/dist/types/v1-ai-qr-code-generator-create-body-style.js +1 -1
- package/dist/types/v1-ai-qr-code-generator-create-body.d.ts +1 -1
- package/dist/types/v1-ai-qr-code-generator-create-body.js +2 -2
- package/dist/types/v1-ai-qr-code-generator-create-response.js +1 -1
- package/dist/types/v1-ai-talking-photo-create-body-assets.js +1 -1
- package/dist/types/v1-ai-talking-photo-create-body-style.js +1 -1
- package/dist/types/v1-ai-talking-photo-create-body.d.ts +1 -1
- package/dist/types/v1-ai-talking-photo-create-body.js +2 -2
- package/dist/types/v1-ai-talking-photo-create-response.js +1 -1
- package/dist/types/v1-animation-create-body-assets.js +1 -1
- package/dist/types/v1-animation-create-body-style.js +1 -1
- package/dist/types/v1-animation-create-body.d.ts +1 -1
- package/dist/types/v1-animation-create-body.js +2 -2
- package/dist/types/v1-animation-create-response.js +1 -1
- package/dist/types/v1-auto-subtitle-generator-create-body-assets.js +1 -1
- package/dist/types/v1-auto-subtitle-generator-create-body-style-custom-config.js +1 -1
- package/dist/types/v1-auto-subtitle-generator-create-body-style.d.ts +1 -1
- package/dist/types/v1-auto-subtitle-generator-create-body-style.js +2 -2
- package/dist/types/v1-auto-subtitle-generator-create-body.d.ts +1 -1
- package/dist/types/v1-auto-subtitle-generator-create-body.js +2 -2
- package/dist/types/v1-auto-subtitle-generator-create-response.js +1 -1
- package/dist/types/v1-face-detection-create-body-assets.js +1 -1
- package/dist/types/v1-face-detection-create-body.d.ts +1 -1
- package/dist/types/v1-face-detection-create-body.js +2 -2
- package/dist/types/v1-face-detection-create-response.js +1 -1
- package/dist/types/v1-face-detection-get-response-faces-item.js +1 -1
- package/dist/types/v1-face-detection-get-response.d.ts +1 -1
- package/dist/types/v1-face-detection-get-response.js +2 -2
- package/dist/types/v1-face-swap-create-body-assets-face-mappings-item.js +1 -1
- package/dist/types/v1-face-swap-create-body-assets.d.ts +1 -1
- package/dist/types/v1-face-swap-create-body-assets.js +2 -2
- package/dist/types/v1-face-swap-create-body-style-version-enum.d.ts +6 -0
- package/dist/types/v1-face-swap-create-body-style-version-enum.js +2 -0
- package/dist/types/v1-face-swap-create-body-style.d.ts +24 -0
- package/dist/types/v1-face-swap-create-body-style.js +67 -0
- package/dist/types/v1-face-swap-create-body.d.ts +7 -1
- package/dist/types/v1-face-swap-create-body.js +7 -2
- package/dist/types/v1-face-swap-create-response.js +1 -1
- package/dist/types/v1-face-swap-photo-create-body-assets-face-mappings-item.js +1 -1
- package/dist/types/v1-face-swap-photo-create-body-assets.d.ts +1 -1
- package/dist/types/v1-face-swap-photo-create-body-assets.js +2 -2
- package/dist/types/v1-face-swap-photo-create-body.d.ts +1 -1
- package/dist/types/v1-face-swap-photo-create-body.js +2 -2
- package/dist/types/v1-face-swap-photo-create-response.js +1 -1
- package/dist/types/v1-files-upload-urls-create-body-items-item.js +1 -1
- package/dist/types/v1-files-upload-urls-create-body.d.ts +1 -1
- package/dist/types/v1-files-upload-urls-create-body.js +2 -2
- package/dist/types/v1-files-upload-urls-create-response-items-item.js +1 -1
- package/dist/types/v1-files-upload-urls-create-response.d.ts +1 -1
- package/dist/types/v1-files-upload-urls-create-response.js +2 -2
- package/dist/types/v1-image-background-remover-create-body-assets.js +1 -1
- package/dist/types/v1-image-background-remover-create-body.d.ts +1 -1
- package/dist/types/v1-image-background-remover-create-body.js +2 -2
- package/dist/types/v1-image-background-remover-create-response.js +1 -1
- package/dist/types/v1-image-projects-get-response-downloads-item.js +1 -1
- package/dist/types/v1-image-projects-get-response-error.js +1 -1
- package/dist/types/v1-image-projects-get-response.d.ts +1 -1
- package/dist/types/v1-image-projects-get-response.js +2 -2
- package/dist/types/v1-image-to-video-create-body-assets.js +1 -1
- package/dist/types/v1-image-to-video-create-body-style.js +1 -1
- package/dist/types/v1-image-to-video-create-body.d.ts +1 -1
- package/dist/types/v1-image-to-video-create-body.js +2 -2
- package/dist/types/v1-image-to-video-create-response.js +1 -1
- package/dist/types/v1-lip-sync-create-body-assets.js +1 -1
- package/dist/types/v1-lip-sync-create-body.d.ts +1 -1
- package/dist/types/v1-lip-sync-create-body.js +2 -2
- package/dist/types/v1-lip-sync-create-response.js +1 -1
- package/dist/types/v1-photo-colorizer-create-body-assets.js +1 -1
- package/dist/types/v1-photo-colorizer-create-body.d.ts +1 -1
- package/dist/types/v1-photo-colorizer-create-body.js +2 -2
- package/dist/types/v1-photo-colorizer-create-response.js +1 -1
- package/dist/types/v1-text-to-video-create-body-style.js +1 -1
- package/dist/types/v1-text-to-video-create-body.d.ts +1 -1
- package/dist/types/v1-text-to-video-create-body.js +2 -2
- package/dist/types/v1-text-to-video-create-response.js +1 -1
- package/dist/types/v1-video-projects-get-response-download.js +1 -1
- package/dist/types/v1-video-projects-get-response-downloads-item.js +1 -1
- package/dist/types/v1-video-projects-get-response-error.js +1 -1
- package/dist/types/v1-video-projects-get-response.d.ts +1 -1
- package/dist/types/v1-video-projects-get-response.js +2 -2
- package/dist/types/v1-video-to-video-create-body-assets.js +1 -1
- package/dist/types/v1-video-to-video-create-body-style.js +1 -1
- package/dist/types/v1-video-to-video-create-body.d.ts +1 -1
- package/dist/types/v1-video-to-video-create-body.js +2 -2
- package/dist/types/v1-video-to-video-create-response.js +1 -1
- package/package.json +14 -9
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
1
2
|
import { External$V1VideoToVideoCreateBodyAssets, V1VideoToVideoCreateBodyAssets } from "../../../types/v1-video-to-video-create-body-assets";
|
|
2
3
|
import { External$V1VideoToVideoCreateBodyStyle, V1VideoToVideoCreateBodyStyle } from "../../../types/v1-video-to-video-create-body-style";
|
|
3
|
-
import * as z from "zod";
|
|
4
4
|
/**
|
|
5
5
|
* CreateRequest
|
|
6
6
|
*/
|
|
@@ -34,10 +34,10 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.Schemas$CreateRequest = void 0;
|
|
37
|
+
const z = __importStar(require("zod"));
|
|
37
38
|
const core_1 = require("../../../core");
|
|
38
39
|
const v1_video_to_video_create_body_assets_1 = require("../../../types/v1-video-to-video-create-body-assets");
|
|
39
40
|
const v1_video_to_video_create_body_style_1 = require("../../../types/v1-video-to-video-create-body-style");
|
|
40
|
-
const z = __importStar(require("zod"));
|
|
41
41
|
/**
|
|
42
42
|
* Takes network data, validates it, and transforms keys to match typescript object CreateRequest
|
|
43
43
|
*/
|
|
@@ -1,8 +1,55 @@
|
|
|
1
1
|
import { types } from "../../../index.js";
|
|
2
2
|
import { ApiPromise, CoreClient, CoreResourceClient, RequestOptions, ResourceClientOptions } from "../../../core";
|
|
3
|
+
import { GenerateOptions, GenerateRequestType } from "../../../helpers/generate-type";
|
|
3
4
|
import * as requests from "../../../resources/v1/video-to-video/request-types";
|
|
5
|
+
type GenerateRequest = GenerateRequestType<requests.CreateRequest, {
|
|
6
|
+
/**
|
|
7
|
+
* Required if `video_source` is `file`. This value is either
|
|
8
|
+
* - a direct URL to the image file
|
|
9
|
+
* - a path to a local file
|
|
10
|
+
*
|
|
11
|
+
* Note: if the path begins with `api-assets`, it will be assumed to already be uploaded to Magic Hour's storage, and will not be uploaded again.
|
|
12
|
+
*/
|
|
13
|
+
videoFilePath?: string | undefined;
|
|
14
|
+
}>;
|
|
4
15
|
export declare class VideoToVideoClient extends CoreResourceClient {
|
|
5
16
|
constructor(coreClient: CoreClient, opts: ResourceClientOptions);
|
|
17
|
+
/**
|
|
18
|
+
* Video-to-Video
|
|
19
|
+
*
|
|
20
|
+
* Create a Video To Video video
|
|
21
|
+
*
|
|
22
|
+
* This method provides a convenient way to create a request and automatically wait for completion and download outputs.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```typescript
|
|
26
|
+
* import Client from "../../../index.js";
|
|
27
|
+
*
|
|
28
|
+
* const client = new Client({ token: process.env["API_TOKEN"]!! });
|
|
29
|
+
* const res = await client.v1.videoToVideo.generate(
|
|
30
|
+
* {
|
|
31
|
+
* assets: { videoFilePath: "/path/to/1234.mp4", videoSource: "file" },
|
|
32
|
+
* endSeconds: 15.0,
|
|
33
|
+
* fpsResolution: "HALF",
|
|
34
|
+
* name: "Video To Video video",
|
|
35
|
+
* startSeconds: 0.0,
|
|
36
|
+
* style: {
|
|
37
|
+
* artStyle: "3D Render",
|
|
38
|
+
* model: "default",
|
|
39
|
+
* prompt: "string",
|
|
40
|
+
* promptType: "default",
|
|
41
|
+
* version: "default",
|
|
42
|
+
* },
|
|
43
|
+
* },
|
|
44
|
+
* {
|
|
45
|
+
* waitForCompletion: true,
|
|
46
|
+
* downloadOutputs: true,
|
|
47
|
+
* downloadDirectory: "outputs",
|
|
48
|
+
* },
|
|
49
|
+
* );
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
generate(request: GenerateRequest, opts?: GenerateOptions): Promise<import("../video-projects/resource-client").V1VideoProjectsGetResponseWithDownloads>;
|
|
6
53
|
/**
|
|
7
54
|
* Video-to-Video
|
|
8
55
|
*
|
|
@@ -15,3 +62,4 @@ export declare class VideoToVideoClient extends CoreResourceClient {
|
|
|
15
62
|
*/
|
|
16
63
|
create(request: requests.CreateRequest, opts?: RequestOptions): ApiPromise<types.V1VideoToVideoCreateResponse>;
|
|
17
64
|
}
|
|
65
|
+
export {};
|
|
@@ -1,13 +1,97 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
12
|
+
var t = {};
|
|
13
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
14
|
+
t[p] = s[p];
|
|
15
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
16
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
17
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
18
|
+
t[p[i]] = s[p[i]];
|
|
19
|
+
}
|
|
20
|
+
return t;
|
|
21
|
+
};
|
|
2
22
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
23
|
exports.VideoToVideoClient = void 0;
|
|
4
24
|
const core_1 = require("../../../core");
|
|
25
|
+
const files_1 = require("../../../resources/v1/files");
|
|
5
26
|
const v1_video_to_video_create_body_1 = require("../../../types/v1-video-to-video-create-body");
|
|
6
27
|
const v1_video_to_video_create_response_1 = require("../../../types/v1-video-to-video-create-response");
|
|
28
|
+
const logger_1 = require("../../../logger");
|
|
29
|
+
const video_projects_1 = require("../../../resources/v1/video-projects");
|
|
7
30
|
class VideoToVideoClient extends core_1.CoreResourceClient {
|
|
8
31
|
constructor(coreClient, opts) {
|
|
9
32
|
super(coreClient, opts);
|
|
10
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* Video-to-Video
|
|
36
|
+
*
|
|
37
|
+
* Create a Video To Video video
|
|
38
|
+
*
|
|
39
|
+
* This method provides a convenient way to create a request and automatically wait for completion and download outputs.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```typescript
|
|
43
|
+
* import Client from "../../../index.js";
|
|
44
|
+
*
|
|
45
|
+
* const client = new Client({ token: process.env["API_TOKEN"]!! });
|
|
46
|
+
* const res = await client.v1.videoToVideo.generate(
|
|
47
|
+
* {
|
|
48
|
+
* assets: { videoFilePath: "/path/to/1234.mp4", videoSource: "file" },
|
|
49
|
+
* endSeconds: 15.0,
|
|
50
|
+
* fpsResolution: "HALF",
|
|
51
|
+
* name: "Video To Video video",
|
|
52
|
+
* startSeconds: 0.0,
|
|
53
|
+
* style: {
|
|
54
|
+
* artStyle: "3D Render",
|
|
55
|
+
* model: "default",
|
|
56
|
+
* prompt: "string",
|
|
57
|
+
* promptType: "default",
|
|
58
|
+
* version: "default",
|
|
59
|
+
* },
|
|
60
|
+
* },
|
|
61
|
+
* {
|
|
62
|
+
* waitForCompletion: true,
|
|
63
|
+
* downloadOutputs: true,
|
|
64
|
+
* downloadDirectory: "outputs",
|
|
65
|
+
* },
|
|
66
|
+
* );
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
69
|
+
generate(request_1) {
|
|
70
|
+
return __awaiter(this, arguments, void 0, function* (request, opts = {}) {
|
|
71
|
+
const { waitForCompletion = true, downloadOutputs = true, downloadDirectory = undefined } = opts, createOpts = __rest(opts, ["waitForCompletion", "downloadOutputs", "downloadDirectory"]);
|
|
72
|
+
const fileClient = new files_1.FilesClient(this._client, this._opts);
|
|
73
|
+
const _a = request.assets, { videoFilePath } = _a, restAssets = __rest(_a, ["videoFilePath"]);
|
|
74
|
+
if (videoFilePath) {
|
|
75
|
+
(0, logger_1.getLogger)().debug(`Uploading file ${videoFilePath} to Magic Hour's storage`);
|
|
76
|
+
}
|
|
77
|
+
const [uploadedVideoFilePath] = yield Promise.all([
|
|
78
|
+
videoFilePath
|
|
79
|
+
? fileClient.uploadFile(videoFilePath)
|
|
80
|
+
: Promise.resolve(videoFilePath),
|
|
81
|
+
]);
|
|
82
|
+
if (videoFilePath) {
|
|
83
|
+
(0, logger_1.getLogger)().info(`Uploaded file ${videoFilePath} to Magic Hour's storage as ${uploadedVideoFilePath}`);
|
|
84
|
+
}
|
|
85
|
+
const createResponse = yield this.create(Object.assign(Object.assign({}, request), { assets: Object.assign(Object.assign({}, restAssets), { videoFilePath: videoFilePath ? uploadedVideoFilePath : videoFilePath }) }), createOpts);
|
|
86
|
+
(0, logger_1.getLogger)().info(`Created VideoToVideoClient project ${createResponse.id}`);
|
|
87
|
+
const projectsClient = new video_projects_1.VideoProjectsClient(this._client, this._opts);
|
|
88
|
+
(0, logger_1.getLogger)().debug(`Checking result for VideoToVideoClient project ${createResponse.id}`);
|
|
89
|
+
const result = yield projectsClient.checkResult({ id: createResponse.id }, Object.assign({ waitForCompletion,
|
|
90
|
+
downloadOutputs,
|
|
91
|
+
downloadDirectory }, createOpts));
|
|
92
|
+
return result;
|
|
93
|
+
});
|
|
94
|
+
}
|
|
11
95
|
/**
|
|
12
96
|
* Video-to-Video
|
|
13
97
|
*
|
package/dist/types/index.d.ts
CHANGED
|
@@ -68,6 +68,8 @@ export { V1FaceSwapCreateBodyAssets } from "./v1-face-swap-create-body-assets";
|
|
|
68
68
|
export { V1FaceSwapCreateBodyAssetsFaceMappingsItem } from "./v1-face-swap-create-body-assets-face-mappings-item";
|
|
69
69
|
export { V1FaceSwapCreateBodyAssetsFaceSwapModeEnum } from "./v1-face-swap-create-body-assets-face-swap-mode-enum";
|
|
70
70
|
export { V1FaceSwapCreateBodyAssetsVideoSourceEnum } from "./v1-face-swap-create-body-assets-video-source-enum";
|
|
71
|
+
export { V1FaceSwapCreateBodyStyle } from "./v1-face-swap-create-body-style";
|
|
72
|
+
export { V1FaceSwapCreateBodyStyleVersionEnum } from "./v1-face-swap-create-body-style-version-enum";
|
|
71
73
|
export { V1FaceSwapCreateResponse } from "./v1-face-swap-create-response";
|
|
72
74
|
export { V1FaceSwapPhotoCreateBody } from "./v1-face-swap-photo-create-body";
|
|
73
75
|
export { V1FaceSwapPhotoCreateBodyAssets } from "./v1-face-swap-photo-create-body-assets";
|
|
@@ -34,8 +34,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.Schemas$V1AiClothesChangerCreateBodyAssets = void 0;
|
|
37
|
-
const core_1 = require("../core");
|
|
38
37
|
const z = __importStar(require("zod"));
|
|
38
|
+
const core_1 = require("../core");
|
|
39
39
|
/**
|
|
40
40
|
* Takes network data, validates it, and transforms keys to match typescript object V1AiClothesChangerCreateBodyAssets
|
|
41
41
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { External$V1AiClothesChangerCreateBodyAssets, V1AiClothesChangerCreateBodyAssets } from "./v1-ai-clothes-changer-create-body-assets";
|
|
2
1
|
import * as z from "zod";
|
|
2
|
+
import { External$V1AiClothesChangerCreateBodyAssets, V1AiClothesChangerCreateBodyAssets } from "./v1-ai-clothes-changer-create-body-assets";
|
|
3
3
|
/**
|
|
4
4
|
* V1AiClothesChangerCreateBody
|
|
5
5
|
*/
|
|
@@ -34,9 +34,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.Schemas$V1AiClothesChangerCreateBody = void 0;
|
|
37
|
-
const v1_ai_clothes_changer_create_body_assets_1 = require("./v1-ai-clothes-changer-create-body-assets");
|
|
38
|
-
const core_1 = require("../core");
|
|
39
37
|
const z = __importStar(require("zod"));
|
|
38
|
+
const core_1 = require("../core");
|
|
39
|
+
const v1_ai_clothes_changer_create_body_assets_1 = require("./v1-ai-clothes-changer-create-body-assets");
|
|
40
40
|
/**
|
|
41
41
|
* Takes network data, validates it, and transforms keys to match typescript object V1AiClothesChangerCreateBody
|
|
42
42
|
*/
|
|
@@ -34,8 +34,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.Schemas$V1AiClothesChangerCreateResponse = void 0;
|
|
37
|
-
const core_1 = require("../core");
|
|
38
37
|
const z = __importStar(require("zod"));
|
|
38
|
+
const core_1 = require("../core");
|
|
39
39
|
/**
|
|
40
40
|
* Takes network data, validates it, and transforms keys to match typescript object V1AiClothesChangerCreateResponse
|
|
41
41
|
*/
|
|
@@ -34,8 +34,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.Schemas$V1AiFaceEditorCreateBodyAssets = void 0;
|
|
37
|
-
const core_1 = require("../core");
|
|
38
37
|
const z = __importStar(require("zod"));
|
|
38
|
+
const core_1 = require("../core");
|
|
39
39
|
/**
|
|
40
40
|
* Takes network data, validates it, and transforms keys to match typescript object V1AiFaceEditorCreateBodyAssets
|
|
41
41
|
*/
|
|
@@ -34,8 +34,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.Schemas$V1AiFaceEditorCreateBodyStyle = void 0;
|
|
37
|
-
const core_1 = require("../core");
|
|
38
37
|
const z = __importStar(require("zod"));
|
|
38
|
+
const core_1 = require("../core");
|
|
39
39
|
/**
|
|
40
40
|
* Takes network data, validates it, and transforms keys to match typescript object V1AiFaceEditorCreateBodyStyle
|
|
41
41
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
1
2
|
import { External$V1AiFaceEditorCreateBodyAssets, V1AiFaceEditorCreateBodyAssets } from "./v1-ai-face-editor-create-body-assets";
|
|
2
3
|
import { External$V1AiFaceEditorCreateBodyStyle, V1AiFaceEditorCreateBodyStyle } from "./v1-ai-face-editor-create-body-style";
|
|
3
|
-
import * as z from "zod";
|
|
4
4
|
/**
|
|
5
5
|
* V1AiFaceEditorCreateBody
|
|
6
6
|
*/
|
|
@@ -34,10 +34,10 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.Schemas$V1AiFaceEditorCreateBody = void 0;
|
|
37
|
+
const z = __importStar(require("zod"));
|
|
38
|
+
const core_1 = require("../core");
|
|
37
39
|
const v1_ai_face_editor_create_body_assets_1 = require("./v1-ai-face-editor-create-body-assets");
|
|
38
40
|
const v1_ai_face_editor_create_body_style_1 = require("./v1-ai-face-editor-create-body-style");
|
|
39
|
-
const core_1 = require("../core");
|
|
40
|
-
const z = __importStar(require("zod"));
|
|
41
41
|
/**
|
|
42
42
|
* Takes network data, validates it, and transforms keys to match typescript object V1AiFaceEditorCreateBody
|
|
43
43
|
*/
|
|
@@ -34,8 +34,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.Schemas$V1AiFaceEditorCreateResponse = void 0;
|
|
37
|
-
const core_1 = require("../core");
|
|
38
37
|
const z = __importStar(require("zod"));
|
|
38
|
+
const core_1 = require("../core");
|
|
39
39
|
/**
|
|
40
40
|
* Takes network data, validates it, and transforms keys to match typescript object V1AiFaceEditorCreateResponse
|
|
41
41
|
*/
|
|
@@ -34,8 +34,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.Schemas$V1AiGifGeneratorCreateBodyStyle = void 0;
|
|
37
|
-
const core_1 = require("../core");
|
|
38
37
|
const z = __importStar(require("zod"));
|
|
38
|
+
const core_1 = require("../core");
|
|
39
39
|
/**
|
|
40
40
|
* Takes network data, validates it, and transforms keys to match typescript object V1AiGifGeneratorCreateBodyStyle
|
|
41
41
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { External$V1AiGifGeneratorCreateBodyStyle, V1AiGifGeneratorCreateBodyStyle } from "./v1-ai-gif-generator-create-body-style";
|
|
2
1
|
import * as z from "zod";
|
|
2
|
+
import { External$V1AiGifGeneratorCreateBodyStyle, V1AiGifGeneratorCreateBodyStyle } from "./v1-ai-gif-generator-create-body-style";
|
|
3
3
|
/**
|
|
4
4
|
* V1AiGifGeneratorCreateBody
|
|
5
5
|
*/
|
|
@@ -34,9 +34,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.Schemas$V1AiGifGeneratorCreateBody = void 0;
|
|
37
|
-
const v1_ai_gif_generator_create_body_style_1 = require("./v1-ai-gif-generator-create-body-style");
|
|
38
|
-
const core_1 = require("../core");
|
|
39
37
|
const z = __importStar(require("zod"));
|
|
38
|
+
const core_1 = require("../core");
|
|
39
|
+
const v1_ai_gif_generator_create_body_style_1 = require("./v1-ai-gif-generator-create-body-style");
|
|
40
40
|
/**
|
|
41
41
|
* Takes network data, validates it, and transforms keys to match typescript object V1AiGifGeneratorCreateBody
|
|
42
42
|
*/
|
|
@@ -34,8 +34,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.Schemas$V1AiGifGeneratorCreateResponse = void 0;
|
|
37
|
-
const core_1 = require("../core");
|
|
38
37
|
const z = __importStar(require("zod"));
|
|
38
|
+
const core_1 = require("../core");
|
|
39
39
|
/**
|
|
40
40
|
* Takes network data, validates it, and transforms keys to match typescript object V1AiGifGeneratorCreateResponse
|
|
41
41
|
*/
|
|
@@ -34,8 +34,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.Schemas$V1AiHeadshotGeneratorCreateBodyAssets = void 0;
|
|
37
|
-
const core_1 = require("../core");
|
|
38
37
|
const z = __importStar(require("zod"));
|
|
38
|
+
const core_1 = require("../core");
|
|
39
39
|
/**
|
|
40
40
|
* Takes network data, validates it, and transforms keys to match typescript object V1AiHeadshotGeneratorCreateBodyAssets
|
|
41
41
|
*/
|
|
@@ -34,8 +34,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.Schemas$V1AiHeadshotGeneratorCreateBodyStyle = void 0;
|
|
37
|
-
const core_1 = require("../core");
|
|
38
37
|
const z = __importStar(require("zod"));
|
|
38
|
+
const core_1 = require("../core");
|
|
39
39
|
/**
|
|
40
40
|
* Takes network data, validates it, and transforms keys to match typescript object V1AiHeadshotGeneratorCreateBodyStyle
|
|
41
41
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
1
2
|
import { External$V1AiHeadshotGeneratorCreateBodyAssets, V1AiHeadshotGeneratorCreateBodyAssets } from "./v1-ai-headshot-generator-create-body-assets";
|
|
2
3
|
import { External$V1AiHeadshotGeneratorCreateBodyStyle, V1AiHeadshotGeneratorCreateBodyStyle } from "./v1-ai-headshot-generator-create-body-style";
|
|
3
|
-
import * as z from "zod";
|
|
4
4
|
/**
|
|
5
5
|
* V1AiHeadshotGeneratorCreateBody
|
|
6
6
|
*/
|
|
@@ -34,10 +34,10 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.Schemas$V1AiHeadshotGeneratorCreateBody = void 0;
|
|
37
|
+
const z = __importStar(require("zod"));
|
|
38
|
+
const core_1 = require("../core");
|
|
37
39
|
const v1_ai_headshot_generator_create_body_assets_1 = require("./v1-ai-headshot-generator-create-body-assets");
|
|
38
40
|
const v1_ai_headshot_generator_create_body_style_1 = require("./v1-ai-headshot-generator-create-body-style");
|
|
39
|
-
const core_1 = require("../core");
|
|
40
|
-
const z = __importStar(require("zod"));
|
|
41
41
|
/**
|
|
42
42
|
* Takes network data, validates it, and transforms keys to match typescript object V1AiHeadshotGeneratorCreateBody
|
|
43
43
|
*/
|
|
@@ -34,8 +34,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.Schemas$V1AiHeadshotGeneratorCreateResponse = void 0;
|
|
37
|
-
const core_1 = require("../core");
|
|
38
37
|
const z = __importStar(require("zod"));
|
|
38
|
+
const core_1 = require("../core");
|
|
39
39
|
/**
|
|
40
40
|
* Takes network data, validates it, and transforms keys to match typescript object V1AiHeadshotGeneratorCreateResponse
|
|
41
41
|
*/
|
|
@@ -34,8 +34,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.Schemas$V1AiImageEditorCreateBodyAssets = void 0;
|
|
37
|
-
const core_1 = require("../core");
|
|
38
37
|
const z = __importStar(require("zod"));
|
|
38
|
+
const core_1 = require("../core");
|
|
39
39
|
/**
|
|
40
40
|
* Takes network data, validates it, and transforms keys to match typescript object V1AiImageEditorCreateBodyAssets
|
|
41
41
|
*/
|
|
@@ -34,8 +34,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.Schemas$V1AiImageEditorCreateBodyStyle = void 0;
|
|
37
|
-
const core_1 = require("../core");
|
|
38
37
|
const z = __importStar(require("zod"));
|
|
38
|
+
const core_1 = require("../core");
|
|
39
39
|
/**
|
|
40
40
|
* Takes network data, validates it, and transforms keys to match typescript object V1AiImageEditorCreateBodyStyle
|
|
41
41
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
1
2
|
import { External$V1AiImageEditorCreateBodyAssets, V1AiImageEditorCreateBodyAssets } from "./v1-ai-image-editor-create-body-assets";
|
|
2
3
|
import { External$V1AiImageEditorCreateBodyStyle, V1AiImageEditorCreateBodyStyle } from "./v1-ai-image-editor-create-body-style";
|
|
3
|
-
import * as z from "zod";
|
|
4
4
|
/**
|
|
5
5
|
* V1AiImageEditorCreateBody
|
|
6
6
|
*/
|
|
@@ -34,10 +34,10 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.Schemas$V1AiImageEditorCreateBody = void 0;
|
|
37
|
+
const z = __importStar(require("zod"));
|
|
38
|
+
const core_1 = require("../core");
|
|
37
39
|
const v1_ai_image_editor_create_body_assets_1 = require("./v1-ai-image-editor-create-body-assets");
|
|
38
40
|
const v1_ai_image_editor_create_body_style_1 = require("./v1-ai-image-editor-create-body-style");
|
|
39
|
-
const core_1 = require("../core");
|
|
40
|
-
const z = __importStar(require("zod"));
|
|
41
41
|
/**
|
|
42
42
|
* Takes network data, validates it, and transforms keys to match typescript object V1AiImageEditorCreateBody
|
|
43
43
|
*/
|
|
@@ -34,8 +34,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.Schemas$V1AiImageEditorCreateResponse = void 0;
|
|
37
|
-
const core_1 = require("../core");
|
|
38
37
|
const z = __importStar(require("zod"));
|
|
38
|
+
const core_1 = require("../core");
|
|
39
39
|
/**
|
|
40
40
|
* Takes network data, validates it, and transforms keys to match typescript object V1AiImageEditorCreateResponse
|
|
41
41
|
*/
|
|
@@ -34,8 +34,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.Schemas$V1AiImageGeneratorCreateBodyStyle = void 0;
|
|
37
|
-
const core_1 = require("../core");
|
|
38
37
|
const z = __importStar(require("zod"));
|
|
38
|
+
const core_1 = require("../core");
|
|
39
39
|
/**
|
|
40
40
|
* Takes network data, validates it, and transforms keys to match typescript object V1AiImageGeneratorCreateBodyStyle
|
|
41
41
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { External$V1AiImageGeneratorCreateBodyStyle, V1AiImageGeneratorCreateBodyStyle } from "./v1-ai-image-generator-create-body-style";
|
|
2
1
|
import * as z from "zod";
|
|
2
|
+
import { External$V1AiImageGeneratorCreateBodyStyle, V1AiImageGeneratorCreateBodyStyle } from "./v1-ai-image-generator-create-body-style";
|
|
3
3
|
/**
|
|
4
4
|
* V1AiImageGeneratorCreateBody
|
|
5
5
|
*/
|
|
@@ -34,9 +34,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.Schemas$V1AiImageGeneratorCreateBody = void 0;
|
|
37
|
-
const v1_ai_image_generator_create_body_style_1 = require("./v1-ai-image-generator-create-body-style");
|
|
38
|
-
const core_1 = require("../core");
|
|
39
37
|
const z = __importStar(require("zod"));
|
|
38
|
+
const core_1 = require("../core");
|
|
39
|
+
const v1_ai_image_generator_create_body_style_1 = require("./v1-ai-image-generator-create-body-style");
|
|
40
40
|
/**
|
|
41
41
|
* Takes network data, validates it, and transforms keys to match typescript object V1AiImageGeneratorCreateBody
|
|
42
42
|
*/
|
|
@@ -34,8 +34,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.Schemas$V1AiImageGeneratorCreateResponse = void 0;
|
|
37
|
-
const core_1 = require("../core");
|
|
38
37
|
const z = __importStar(require("zod"));
|
|
38
|
+
const core_1 = require("../core");
|
|
39
39
|
/**
|
|
40
40
|
* Takes network data, validates it, and transforms keys to match typescript object V1AiImageGeneratorCreateResponse
|
|
41
41
|
*/
|
|
@@ -34,8 +34,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.Schemas$V1AiImageUpscalerCreateBodyAssets = void 0;
|
|
37
|
-
const core_1 = require("../core");
|
|
38
37
|
const z = __importStar(require("zod"));
|
|
38
|
+
const core_1 = require("../core");
|
|
39
39
|
/**
|
|
40
40
|
* Takes network data, validates it, and transforms keys to match typescript object V1AiImageUpscalerCreateBodyAssets
|
|
41
41
|
*/
|
|
@@ -34,8 +34,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.Schemas$V1AiImageUpscalerCreateBodyStyle = void 0;
|
|
37
|
-
const core_1 = require("../core");
|
|
38
37
|
const z = __importStar(require("zod"));
|
|
38
|
+
const core_1 = require("../core");
|
|
39
39
|
/**
|
|
40
40
|
* Takes network data, validates it, and transforms keys to match typescript object V1AiImageUpscalerCreateBodyStyle
|
|
41
41
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
1
2
|
import { External$V1AiImageUpscalerCreateBodyAssets, V1AiImageUpscalerCreateBodyAssets } from "./v1-ai-image-upscaler-create-body-assets";
|
|
2
3
|
import { External$V1AiImageUpscalerCreateBodyStyle, V1AiImageUpscalerCreateBodyStyle } from "./v1-ai-image-upscaler-create-body-style";
|
|
3
|
-
import * as z from "zod";
|
|
4
4
|
/**
|
|
5
5
|
* V1AiImageUpscalerCreateBody
|
|
6
6
|
*/
|
|
@@ -34,10 +34,10 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.Schemas$V1AiImageUpscalerCreateBody = void 0;
|
|
37
|
+
const z = __importStar(require("zod"));
|
|
38
|
+
const core_1 = require("../core");
|
|
37
39
|
const v1_ai_image_upscaler_create_body_assets_1 = require("./v1-ai-image-upscaler-create-body-assets");
|
|
38
40
|
const v1_ai_image_upscaler_create_body_style_1 = require("./v1-ai-image-upscaler-create-body-style");
|
|
39
|
-
const core_1 = require("../core");
|
|
40
|
-
const z = __importStar(require("zod"));
|
|
41
41
|
/**
|
|
42
42
|
* Takes network data, validates it, and transforms keys to match typescript object V1AiImageUpscalerCreateBody
|
|
43
43
|
*/
|
|
@@ -34,8 +34,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.Schemas$V1AiImageUpscalerCreateResponse = void 0;
|
|
37
|
-
const core_1 = require("../core");
|
|
38
37
|
const z = __importStar(require("zod"));
|
|
38
|
+
const core_1 = require("../core");
|
|
39
39
|
/**
|
|
40
40
|
* Takes network data, validates it, and transforms keys to match typescript object V1AiImageUpscalerCreateResponse
|
|
41
41
|
*/
|
|
@@ -34,8 +34,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.Schemas$V1AiMemeGeneratorCreateBodyStyle = void 0;
|
|
37
|
-
const core_1 = require("../core");
|
|
38
37
|
const z = __importStar(require("zod"));
|
|
38
|
+
const core_1 = require("../core");
|
|
39
39
|
/**
|
|
40
40
|
* Takes network data, validates it, and transforms keys to match typescript object V1AiMemeGeneratorCreateBodyStyle
|
|
41
41
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { External$V1AiMemeGeneratorCreateBodyStyle, V1AiMemeGeneratorCreateBodyStyle } from "./v1-ai-meme-generator-create-body-style";
|
|
2
1
|
import * as z from "zod";
|
|
2
|
+
import { External$V1AiMemeGeneratorCreateBodyStyle, V1AiMemeGeneratorCreateBodyStyle } from "./v1-ai-meme-generator-create-body-style";
|
|
3
3
|
/**
|
|
4
4
|
* V1AiMemeGeneratorCreateBody
|
|
5
5
|
*/
|
|
@@ -34,9 +34,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.Schemas$V1AiMemeGeneratorCreateBody = void 0;
|
|
37
|
-
const v1_ai_meme_generator_create_body_style_1 = require("./v1-ai-meme-generator-create-body-style");
|
|
38
|
-
const core_1 = require("../core");
|
|
39
37
|
const z = __importStar(require("zod"));
|
|
38
|
+
const core_1 = require("../core");
|
|
39
|
+
const v1_ai_meme_generator_create_body_style_1 = require("./v1-ai-meme-generator-create-body-style");
|
|
40
40
|
/**
|
|
41
41
|
* Takes network data, validates it, and transforms keys to match typescript object V1AiMemeGeneratorCreateBody
|
|
42
42
|
*/
|
|
@@ -34,8 +34,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.Schemas$V1AiMemeGeneratorCreateResponse = void 0;
|
|
37
|
-
const core_1 = require("../core");
|
|
38
37
|
const z = __importStar(require("zod"));
|
|
38
|
+
const core_1 = require("../core");
|
|
39
39
|
/**
|
|
40
40
|
* Takes network data, validates it, and transforms keys to match typescript object V1AiMemeGeneratorCreateResponse
|
|
41
41
|
*/
|
|
@@ -34,8 +34,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.Schemas$V1AiPhotoEditorCreateBodyAssets = void 0;
|
|
37
|
-
const core_1 = require("../core");
|
|
38
37
|
const z = __importStar(require("zod"));
|
|
38
|
+
const core_1 = require("../core");
|
|
39
39
|
/**
|
|
40
40
|
* Takes network data, validates it, and transforms keys to match typescript object V1AiPhotoEditorCreateBodyAssets
|
|
41
41
|
*/
|
|
@@ -34,8 +34,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.Schemas$V1AiPhotoEditorCreateBodyStyle = void 0;
|
|
37
|
-
const core_1 = require("../core");
|
|
38
37
|
const z = __importStar(require("zod"));
|
|
38
|
+
const core_1 = require("../core");
|
|
39
39
|
/**
|
|
40
40
|
* Takes network data, validates it, and transforms keys to match typescript object V1AiPhotoEditorCreateBodyStyle
|
|
41
41
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
1
2
|
import { External$V1AiPhotoEditorCreateBodyAssets, V1AiPhotoEditorCreateBodyAssets } from "./v1-ai-photo-editor-create-body-assets";
|
|
2
3
|
import { External$V1AiPhotoEditorCreateBodyStyle, V1AiPhotoEditorCreateBodyStyle } from "./v1-ai-photo-editor-create-body-style";
|
|
3
|
-
import * as z from "zod";
|
|
4
4
|
/**
|
|
5
5
|
* V1AiPhotoEditorCreateBody
|
|
6
6
|
*/
|