magic-hour 0.34.0 → 0.36.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 +6 -0
- 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/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-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-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-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-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-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-upscaler/request-types.d.ts +1 -1
- package/dist/resources/v1/ai-image-upscaler/request-types.js +1 -1
- 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-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-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-talking-photo/request-types.d.ts +1 -1
- package/dist/resources/v1/ai-talking-photo/request-types.js +1 -1
- 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/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/face-detection/request-types.d.ts +1 -1
- package/dist/resources/v1/face-detection/request-types.js +1 -1
- package/dist/resources/v1/face-swap/request-types.d.ts +21 -17
- package/dist/resources/v1/face-swap/request-types.js +10 -5
- 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/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-projects/request-types.js +1 -1
- package/dist/resources/v1/image-to-video/request-types.d.ts +17 -9
- package/dist/resources/v1/image-to-video/request-types.js +5 -5
- package/dist/resources/v1/lip-sync/request-types.d.ts +15 -17
- package/dist/resources/v1/lip-sync/request-types.js +5 -5
- 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/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/video-projects/request-types.js +1 -1
- package/dist/resources/v1/video-to-video/request-types.d.ts +15 -17
- package/dist/resources/v1/video-to-video/request-types.js +5 -5
- 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 +21 -17
- package/dist/types/v1-face-swap-create-body.js +11 -6
- 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 +17 -9
- package/dist/types/v1-image-to-video-create-body.js +6 -6
- 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 +15 -17
- package/dist/types/v1-lip-sync-create-body.js +6 -6
- 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 +15 -17
- package/dist/types/v1-video-to-video-create-body.js +6 -6
- package/dist/types/v1-video-to-video-create-response.js +1 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -32,6 +32,9 @@ const client = new Client({
|
|
|
32
32
|
|
|
33
33
|
## Module Documentation and Snippets
|
|
34
34
|
|
|
35
|
+
### [v1](src/resources/v1/README.md)
|
|
36
|
+
|
|
37
|
+
|
|
35
38
|
### [v1.aiClothesChanger](src/resources/v1/ai-clothes-changer/README.md)
|
|
36
39
|
|
|
37
40
|
* [create](src/resources/v1/ai-clothes-changer/README.md#create) - AI Clothes Changer
|
|
@@ -97,6 +100,9 @@ const client = new Client({
|
|
|
97
100
|
|
|
98
101
|
* [create](src/resources/v1/face-swap-photo/README.md#create) - Face Swap Photo
|
|
99
102
|
|
|
103
|
+
### [v1.files](src/resources/v1/files/README.md)
|
|
104
|
+
|
|
105
|
+
|
|
100
106
|
### [v1.files.uploadUrls](src/resources/v1/files/upload-urls/README.md)
|
|
101
107
|
|
|
102
108
|
* [create](src/resources/v1/files/upload-urls/README.md#create) - Generate asset upload urls
|
package/dist/client.js
CHANGED
|
@@ -9,9 +9,9 @@ class Client {
|
|
|
9
9
|
this._client = new core_1.CoreClient({
|
|
10
10
|
baseUrl: (_b = (_a = opts === null || opts === void 0 ? void 0 : opts.baseUrl) !== null && _a !== void 0 ? _a : opts === null || opts === void 0 ? void 0 : opts.environment) !== null && _b !== void 0 ? _b : environment_1.Environment.Environment,
|
|
11
11
|
timeout: opts === null || opts === void 0 ? void 0 : opts.timeout,
|
|
12
|
+
auths: { bearerAuth: new core_1.AuthBearer(opts === null || opts === void 0 ? void 0 : opts.token) },
|
|
12
13
|
});
|
|
13
|
-
this._opts =
|
|
14
|
-
this._client.registerAuth("bearerAuth", new core_1.AuthBearer(opts === null || opts === void 0 ? void 0 : opts.token));
|
|
14
|
+
this._opts = opts !== null && opts !== void 0 ? opts : {};
|
|
15
15
|
if (this._opts.lazyLoad === false) {
|
|
16
16
|
this.v1;
|
|
17
17
|
}
|
package/dist/core/api-error.d.ts
CHANGED
package/dist/core/api-promise.js
CHANGED
|
@@ -77,9 +77,10 @@ class ApiPromise extends Promise {
|
|
|
77
77
|
}
|
|
78
78
|
const contentType = (_a = response.headers.get("content-type")) !== null && _a !== void 0 ? _a : "";
|
|
79
79
|
switch (this.getResponseType(contentType)) {
|
|
80
|
-
case "json":
|
|
80
|
+
case "json": {
|
|
81
81
|
const rawJson = yield response.json();
|
|
82
82
|
return responseSchema ? responseSchema.parse(rawJson) : rawJson;
|
|
83
|
+
}
|
|
83
84
|
case "text":
|
|
84
85
|
return (yield response.text());
|
|
85
86
|
case "binary":
|
package/dist/core/auth.d.ts
CHANGED
package/dist/core/auth.js
CHANGED
|
@@ -208,7 +208,7 @@ class OAuth2 {
|
|
|
208
208
|
const accessTokenRaw = jsonpointer.get(tokenResJson, accessTokenPointer);
|
|
209
209
|
const accessToken = typeof accessTokenRaw === "string" ? accessTokenRaw : "";
|
|
210
210
|
const expiresInRaw = jsonpointer.get(tokenResJson, expiresInPointer);
|
|
211
|
-
const expiresInSecs = typeof expiresInRaw
|
|
211
|
+
const expiresInSecs = typeof expiresInRaw === "number" ? expiresInRaw : 600;
|
|
212
212
|
const now = new Date();
|
|
213
213
|
const expiresAt = new Date(now.getTime() + expiresInSecs * 1000);
|
|
214
214
|
return { accessToken, expiresAt };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import { Response as NodeResponse } from "node-fetch";
|
|
3
|
-
import { AuthProvider } from "./auth";
|
|
1
|
+
import type * as z from "zod";
|
|
2
|
+
import type { Response as NodeResponse } from "node-fetch";
|
|
3
|
+
import type { AuthProvider } from "./auth";
|
|
4
4
|
import { ApiPromise } from "./api-promise";
|
|
5
|
-
import { QueryStyle } from "./query";
|
|
5
|
+
import { type QueryStyle } from "./query";
|
|
6
6
|
export interface CoreClientProps {
|
|
7
7
|
baseUrl: string | Record<string, string | undefined>;
|
|
8
8
|
timeout?: number | undefined;
|
|
9
|
+
auths?: Record<string, AuthProvider>;
|
|
9
10
|
}
|
|
10
11
|
export type ApiResponse = Response | NodeResponse;
|
|
11
12
|
export type HttpMethod = "get" | "post" | "put" | "patch" | "delete";
|
|
@@ -38,7 +39,6 @@ export declare class CoreClient {
|
|
|
38
39
|
private auths;
|
|
39
40
|
private timeout;
|
|
40
41
|
constructor(props: CoreClientProps);
|
|
41
|
-
registerAuth(name: string, provider: AuthProvider): void;
|
|
42
42
|
private applyAuths;
|
|
43
43
|
buildUrl(path: string, serviceName?: string): string;
|
|
44
44
|
private buildUrlFromCfg;
|
package/dist/core/core-client.js
CHANGED
|
@@ -18,18 +18,15 @@ const query_1 = require("./query");
|
|
|
18
18
|
const content_type_1 = require("./content-type");
|
|
19
19
|
const _DEFAULT_SERVICE_NAME = "__default_service__";
|
|
20
20
|
class CoreClient {
|
|
21
|
-
// private agent: any // TODO
|
|
22
21
|
constructor(props) {
|
|
22
|
+
var _a;
|
|
23
23
|
this.baseUrl =
|
|
24
24
|
typeof props.baseUrl === "string"
|
|
25
25
|
? { [_DEFAULT_SERVICE_NAME]: props.baseUrl }
|
|
26
26
|
: props.baseUrl;
|
|
27
|
-
this.auths = {};
|
|
27
|
+
this.auths = (_a = props.auths) !== null && _a !== void 0 ? _a : {};
|
|
28
28
|
this.timeout = props.timeout;
|
|
29
29
|
}
|
|
30
|
-
registerAuth(name, provider) {
|
|
31
|
-
this.auths[name] = provider;
|
|
32
|
-
}
|
|
33
30
|
applyAuths(cfg) {
|
|
34
31
|
return __awaiter(this, void 0, void 0, function* () {
|
|
35
32
|
var _a;
|
package/dist/core/form-data.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ReadStream as NodeReadStream } from "node:fs";
|
|
2
2
|
export type UploadFile = FileLike | NodeReadStream;
|
|
3
3
|
export declare function isUploadFile(val: any): val is UploadFile;
|
|
4
4
|
export declare function isNodeReadStream(val: any): val is NodeReadStream;
|
package/dist/core/zod.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
-
import { UploadFile } from "./form-data";
|
|
2
|
+
import { type UploadFile } from "./form-data";
|
|
3
3
|
/**
|
|
4
4
|
* Generic function to transform an objects keys from one string to another.
|
|
5
5
|
* If the incoming object does not have a transform key, the original key is retained.
|
package/dist/core/zod.js
CHANGED
|
@@ -44,7 +44,7 @@ const form_data_1 = require("./form-data");
|
|
|
44
44
|
* the value is skipped.
|
|
45
45
|
*/
|
|
46
46
|
function zodTransform(input, transformer) {
|
|
47
|
-
|
|
47
|
+
const transformed = {};
|
|
48
48
|
for (const [key, val] of Object.entries(input)) {
|
|
49
49
|
const toKey = transformer[key];
|
|
50
50
|
if (toKey === null) {
|
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.36.0";
|
|
8
8
|
})(Environment || (exports.Environment = Environment = {}));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { External$V1AiClothesChangerCreateBodyAssets, V1AiClothesChangerCreateBodyAssets } from "../../../types/v1-ai-clothes-changer-create-body-assets";
|
|
2
1
|
import * as z from "zod";
|
|
2
|
+
import { External$V1AiClothesChangerCreateBodyAssets, V1AiClothesChangerCreateBodyAssets } from "../../../types/v1-ai-clothes-changer-create-body-assets";
|
|
3
3
|
/**
|
|
4
4
|
* CreateRequest
|
|
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$CreateRequest = void 0;
|
|
37
|
+
const z = __importStar(require("zod"));
|
|
37
38
|
const core_1 = require("../../../core");
|
|
38
39
|
const v1_ai_clothes_changer_create_body_assets_1 = require("../../../types/v1-ai-clothes-changer-create-body-assets");
|
|
39
|
-
const z = __importStar(require("zod"));
|
|
40
40
|
/**
|
|
41
41
|
* Takes network data, validates it, and transforms keys to match typescript object CreateRequest
|
|
42
42
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
1
2
|
import { External$V1AiFaceEditorCreateBodyAssets, V1AiFaceEditorCreateBodyAssets } from "../../../types/v1-ai-face-editor-create-body-assets";
|
|
2
3
|
import { External$V1AiFaceEditorCreateBodyStyle, V1AiFaceEditorCreateBodyStyle } from "../../../types/v1-ai-face-editor-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_ai_face_editor_create_body_assets_1 = require("../../../types/v1-ai-face-editor-create-body-assets");
|
|
39
40
|
const v1_ai_face_editor_create_body_style_1 = require("../../../types/v1-ai-face-editor-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,5 +1,5 @@
|
|
|
1
|
-
import { External$V1AiGifGeneratorCreateBodyStyle, V1AiGifGeneratorCreateBodyStyle } from "../../../types/v1-ai-gif-generator-create-body-style";
|
|
2
1
|
import * as z from "zod";
|
|
2
|
+
import { External$V1AiGifGeneratorCreateBodyStyle, V1AiGifGeneratorCreateBodyStyle } from "../../../types/v1-ai-gif-generator-create-body-style";
|
|
3
3
|
/**
|
|
4
4
|
* CreateRequest
|
|
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$CreateRequest = void 0;
|
|
37
|
+
const z = __importStar(require("zod"));
|
|
37
38
|
const core_1 = require("../../../core");
|
|
38
39
|
const v1_ai_gif_generator_create_body_style_1 = require("../../../types/v1-ai-gif-generator-create-body-style");
|
|
39
|
-
const z = __importStar(require("zod"));
|
|
40
40
|
/**
|
|
41
41
|
* Takes network data, validates it, and transforms keys to match typescript object CreateRequest
|
|
42
42
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
1
2
|
import { External$V1AiHeadshotGeneratorCreateBodyAssets, V1AiHeadshotGeneratorCreateBodyAssets } from "../../../types/v1-ai-headshot-generator-create-body-assets";
|
|
2
3
|
import { External$V1AiHeadshotGeneratorCreateBodyStyle, V1AiHeadshotGeneratorCreateBodyStyle } from "../../../types/v1-ai-headshot-generator-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_ai_headshot_generator_create_body_assets_1 = require("../../../types/v1-ai-headshot-generator-create-body-assets");
|
|
39
40
|
const v1_ai_headshot_generator_create_body_style_1 = require("../../../types/v1-ai-headshot-generator-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,6 +1,6 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
1
2
|
import { External$V1AiImageEditorCreateBodyAssets, V1AiImageEditorCreateBodyAssets } from "../../../types/v1-ai-image-editor-create-body-assets";
|
|
2
3
|
import { External$V1AiImageEditorCreateBodyStyle, V1AiImageEditorCreateBodyStyle } from "../../../types/v1-ai-image-editor-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_ai_image_editor_create_body_assets_1 = require("../../../types/v1-ai-image-editor-create-body-assets");
|
|
39
40
|
const v1_ai_image_editor_create_body_style_1 = require("../../../types/v1-ai-image-editor-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,5 +1,5 @@
|
|
|
1
|
-
import { External$V1AiImageGeneratorCreateBodyStyle, V1AiImageGeneratorCreateBodyStyle } from "../../../types/v1-ai-image-generator-create-body-style";
|
|
2
1
|
import * as z from "zod";
|
|
2
|
+
import { External$V1AiImageGeneratorCreateBodyStyle, V1AiImageGeneratorCreateBodyStyle } from "../../../types/v1-ai-image-generator-create-body-style";
|
|
3
3
|
/**
|
|
4
4
|
* CreateRequest
|
|
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$CreateRequest = void 0;
|
|
37
|
+
const z = __importStar(require("zod"));
|
|
37
38
|
const core_1 = require("../../../core");
|
|
38
39
|
const v1_ai_image_generator_create_body_style_1 = require("../../../types/v1-ai-image-generator-create-body-style");
|
|
39
|
-
const z = __importStar(require("zod"));
|
|
40
40
|
/**
|
|
41
41
|
* Takes network data, validates it, and transforms keys to match typescript object CreateRequest
|
|
42
42
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
1
2
|
import { External$V1AiImageUpscalerCreateBodyAssets, V1AiImageUpscalerCreateBodyAssets } from "../../../types/v1-ai-image-upscaler-create-body-assets";
|
|
2
3
|
import { External$V1AiImageUpscalerCreateBodyStyle, V1AiImageUpscalerCreateBodyStyle } from "../../../types/v1-ai-image-upscaler-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_ai_image_upscaler_create_body_assets_1 = require("../../../types/v1-ai-image-upscaler-create-body-assets");
|
|
39
40
|
const v1_ai_image_upscaler_create_body_style_1 = require("../../../types/v1-ai-image-upscaler-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,5 +1,5 @@
|
|
|
1
|
-
import { External$V1AiMemeGeneratorCreateBodyStyle, V1AiMemeGeneratorCreateBodyStyle } from "../../../types/v1-ai-meme-generator-create-body-style";
|
|
2
1
|
import * as z from "zod";
|
|
2
|
+
import { External$V1AiMemeGeneratorCreateBodyStyle, V1AiMemeGeneratorCreateBodyStyle } from "../../../types/v1-ai-meme-generator-create-body-style";
|
|
3
3
|
/**
|
|
4
4
|
* CreateRequest
|
|
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$CreateRequest = void 0;
|
|
37
|
+
const z = __importStar(require("zod"));
|
|
37
38
|
const core_1 = require("../../../core");
|
|
38
39
|
const v1_ai_meme_generator_create_body_style_1 = require("../../../types/v1-ai-meme-generator-create-body-style");
|
|
39
|
-
const z = __importStar(require("zod"));
|
|
40
40
|
/**
|
|
41
41
|
* Takes network data, validates it, and transforms keys to match typescript object CreateRequest
|
|
42
42
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
1
2
|
import { External$V1AiPhotoEditorCreateBodyAssets, V1AiPhotoEditorCreateBodyAssets } from "../../../types/v1-ai-photo-editor-create-body-assets";
|
|
2
3
|
import { External$V1AiPhotoEditorCreateBodyStyle, V1AiPhotoEditorCreateBodyStyle } from "../../../types/v1-ai-photo-editor-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_ai_photo_editor_create_body_assets_1 = require("../../../types/v1-ai-photo-editor-create-body-assets");
|
|
39
40
|
const v1_ai_photo_editor_create_body_style_1 = require("../../../types/v1-ai-photo-editor-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,5 +1,5 @@
|
|
|
1
|
-
import { External$V1AiQrCodeGeneratorCreateBodyStyle, V1AiQrCodeGeneratorCreateBodyStyle } from "../../../types/v1-ai-qr-code-generator-create-body-style";
|
|
2
1
|
import * as z from "zod";
|
|
2
|
+
import { External$V1AiQrCodeGeneratorCreateBodyStyle, V1AiQrCodeGeneratorCreateBodyStyle } from "../../../types/v1-ai-qr-code-generator-create-body-style";
|
|
3
3
|
/**
|
|
4
4
|
* CreateRequest
|
|
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$CreateRequest = void 0;
|
|
37
|
+
const z = __importStar(require("zod"));
|
|
37
38
|
const core_1 = require("../../../core");
|
|
38
39
|
const v1_ai_qr_code_generator_create_body_style_1 = require("../../../types/v1-ai-qr-code-generator-create-body-style");
|
|
39
|
-
const z = __importStar(require("zod"));
|
|
40
40
|
/**
|
|
41
41
|
* Takes network data, validates it, and transforms keys to match typescript object CreateRequest
|
|
42
42
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
1
2
|
import { External$V1AiTalkingPhotoCreateBodyAssets, V1AiTalkingPhotoCreateBodyAssets } from "../../../types/v1-ai-talking-photo-create-body-assets";
|
|
2
3
|
import { External$V1AiTalkingPhotoCreateBodyStyle, V1AiTalkingPhotoCreateBodyStyle } from "../../../types/v1-ai-talking-photo-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_ai_talking_photo_create_body_assets_1 = require("../../../types/v1-ai-talking-photo-create-body-assets");
|
|
39
40
|
const v1_ai_talking_photo_create_body_style_1 = require("../../../types/v1-ai-talking-photo-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,6 +1,6 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
1
2
|
import { External$V1AnimationCreateBodyAssets, V1AnimationCreateBodyAssets } from "../../../types/v1-animation-create-body-assets";
|
|
2
3
|
import { External$V1AnimationCreateBodyStyle, V1AnimationCreateBodyStyle } from "../../../types/v1-animation-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_animation_create_body_assets_1 = require("../../../types/v1-animation-create-body-assets");
|
|
39
40
|
const v1_animation_create_body_style_1 = require("../../../types/v1-animation-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,6 +1,6 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
1
2
|
import { External$V1AutoSubtitleGeneratorCreateBodyAssets, V1AutoSubtitleGeneratorCreateBodyAssets } from "../../../types/v1-auto-subtitle-generator-create-body-assets";
|
|
2
3
|
import { External$V1AutoSubtitleGeneratorCreateBodyStyle, V1AutoSubtitleGeneratorCreateBodyStyle } from "../../../types/v1-auto-subtitle-generator-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_auto_subtitle_generator_create_body_assets_1 = require("../../../types/v1-auto-subtitle-generator-create-body-assets");
|
|
39
40
|
const v1_auto_subtitle_generator_create_body_style_1 = require("../../../types/v1-auto-subtitle-generator-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,5 +1,5 @@
|
|
|
1
|
-
import { External$V1FaceDetectionCreateBodyAssets, V1FaceDetectionCreateBodyAssets } from "../../../types/v1-face-detection-create-body-assets";
|
|
2
1
|
import * as z from "zod";
|
|
2
|
+
import { External$V1FaceDetectionCreateBodyAssets, V1FaceDetectionCreateBodyAssets } from "../../../types/v1-face-detection-create-body-assets";
|
|
3
3
|
/**
|
|
4
4
|
* GetRequest
|
|
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$CreateRequest = exports.Schemas$GetRequest = void 0;
|
|
37
|
+
const z = __importStar(require("zod"));
|
|
37
38
|
const core_1 = require("../../../core");
|
|
38
39
|
const v1_face_detection_create_body_assets_1 = require("../../../types/v1-face-detection-create-body-assets");
|
|
39
|
-
const z = __importStar(require("zod"));
|
|
40
40
|
/**
|
|
41
41
|
* Takes network data, validates it, and transforms keys to match typescript object GetRequest
|
|
42
42
|
*/
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { External$V1FaceSwapCreateBodyAssets, V1FaceSwapCreateBodyAssets } from "../../../types/v1-face-swap-create-body-assets";
|
|
2
1
|
import * as z from "zod";
|
|
2
|
+
import { External$V1FaceSwapCreateBodyAssets, V1FaceSwapCreateBodyAssets } from "../../../types/v1-face-swap-create-body-assets";
|
|
3
|
+
import { External$V1FaceSwapCreateBodyStyle, V1FaceSwapCreateBodyStyle } from "../../../types/v1-face-swap-create-body-style";
|
|
3
4
|
/**
|
|
4
5
|
* CreateRequest
|
|
5
6
|
*/
|
|
@@ -13,16 +14,15 @@ export type CreateRequest = {
|
|
|
13
14
|
*/
|
|
14
15
|
endSeconds: number;
|
|
15
16
|
/**
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* * If height is provided, width will also be required. The larger value between width and height will be used to determine the maximum output resolution while maintaining the original aspect ratio.
|
|
19
|
-
* * If both height and width are omitted, the video will be resized according to your subscription's maximum resolution, while preserving aspect ratio.
|
|
17
|
+
* `height` is deprecated and no longer influences the output video's resolution.
|
|
20
18
|
*
|
|
21
|
-
*
|
|
19
|
+
* Output resolution is determined by the **minimum** of:
|
|
20
|
+
* - The resolution of the input video
|
|
21
|
+
* - The maximum resolution allowed by your subscription tier. See our [pricing page](https://magichour.ai/pricing) for more details.
|
|
22
22
|
*
|
|
23
|
-
*
|
|
23
|
+
* This field is retained only for backward compatibility and will be removed in a future release.
|
|
24
24
|
*/
|
|
25
|
-
height?: number | undefined;
|
|
25
|
+
height?: number | null | undefined;
|
|
26
26
|
/**
|
|
27
27
|
* The name of video. This value is mainly used for your own identification of the video.
|
|
28
28
|
*/
|
|
@@ -32,16 +32,19 @@ export type CreateRequest = {
|
|
|
32
32
|
*/
|
|
33
33
|
startSeconds: number;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
* Style of the face swap video.
|
|
36
|
+
*/
|
|
37
|
+
style?: V1FaceSwapCreateBodyStyle | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* `width` is deprecated and no longer influences the output video's resolution.
|
|
39
40
|
*
|
|
40
|
-
*
|
|
41
|
+
* Output resolution is determined by the **minimum** of:
|
|
42
|
+
* - The resolution of the input video
|
|
43
|
+
* - The maximum resolution allowed by your subscription tier. See our [pricing page](https://magichour.ai/pricing) for more details.
|
|
41
44
|
*
|
|
42
|
-
*
|
|
45
|
+
* This field is retained only for backward compatibility and will be removed in a future release.
|
|
43
46
|
*/
|
|
44
|
-
width?: number | undefined;
|
|
47
|
+
width?: number | null | undefined;
|
|
45
48
|
};
|
|
46
49
|
/**
|
|
47
50
|
* @internal
|
|
@@ -51,10 +54,11 @@ export type CreateRequest = {
|
|
|
51
54
|
export type External$CreateRequest = {
|
|
52
55
|
assets: External$V1FaceSwapCreateBodyAssets;
|
|
53
56
|
end_seconds: number;
|
|
54
|
-
height?: number | undefined;
|
|
57
|
+
height?: number | null | undefined;
|
|
55
58
|
name?: string | undefined;
|
|
56
59
|
start_seconds: number;
|
|
57
|
-
|
|
60
|
+
style?: External$V1FaceSwapCreateBodyStyle | undefined;
|
|
61
|
+
width?: number | null | undefined;
|
|
58
62
|
};
|
|
59
63
|
export declare const Schemas$CreateRequest: {
|
|
60
64
|
in: z.ZodType<CreateRequest, z.ZodTypeDef, unknown>;
|
|
@@ -34,9 +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_face_swap_create_body_assets_1 = require("../../../types/v1-face-swap-create-body-assets");
|
|
39
|
-
const
|
|
40
|
+
const v1_face_swap_create_body_style_1 = require("../../../types/v1-face-swap-create-body-style");
|
|
40
41
|
/**
|
|
41
42
|
* Takes network data, validates it, and transforms keys to match typescript object CreateRequest
|
|
42
43
|
*/
|
|
@@ -44,10 +45,11 @@ const SchemaIn$CreateRequest = z
|
|
|
44
45
|
.object({
|
|
45
46
|
assets: v1_face_swap_create_body_assets_1.Schemas$V1FaceSwapCreateBodyAssets.in,
|
|
46
47
|
end_seconds: z.number(),
|
|
47
|
-
height: z.number().int().optional(),
|
|
48
|
+
height: z.number().int().nullable().optional(),
|
|
48
49
|
name: z.string().optional(),
|
|
49
50
|
start_seconds: z.number(),
|
|
50
|
-
|
|
51
|
+
style: v1_face_swap_create_body_style_1.Schemas$V1FaceSwapCreateBodyStyle.in.optional(),
|
|
52
|
+
width: z.number().int().nullable().optional(),
|
|
51
53
|
})
|
|
52
54
|
.transform((obj) => {
|
|
53
55
|
return (0, core_1.zodTransform)(obj, {
|
|
@@ -56,6 +58,7 @@ const SchemaIn$CreateRequest = z
|
|
|
56
58
|
height: "height",
|
|
57
59
|
name: "name",
|
|
58
60
|
start_seconds: "startSeconds",
|
|
61
|
+
style: "style",
|
|
59
62
|
width: "width",
|
|
60
63
|
});
|
|
61
64
|
});
|
|
@@ -67,10 +70,11 @@ const SchemaOut$CreateRequest = z
|
|
|
67
70
|
.object({
|
|
68
71
|
assets: v1_face_swap_create_body_assets_1.Schemas$V1FaceSwapCreateBodyAssets.out,
|
|
69
72
|
endSeconds: z.number(),
|
|
70
|
-
height: z.number().int().optional(),
|
|
73
|
+
height: z.number().int().nullable().optional(),
|
|
71
74
|
name: z.string().optional(),
|
|
72
75
|
startSeconds: z.number(),
|
|
73
|
-
|
|
76
|
+
style: v1_face_swap_create_body_style_1.Schemas$V1FaceSwapCreateBodyStyle.out.optional(),
|
|
77
|
+
width: z.number().int().nullable().optional(),
|
|
74
78
|
})
|
|
75
79
|
.transform((obj) => {
|
|
76
80
|
return (0, core_1.zodTransform)(obj, {
|
|
@@ -79,6 +83,7 @@ const SchemaOut$CreateRequest = z
|
|
|
79
83
|
height: "height",
|
|
80
84
|
name: "name",
|
|
81
85
|
startSeconds: "start_seconds",
|
|
86
|
+
style: "style",
|
|
82
87
|
width: "width",
|
|
83
88
|
});
|
|
84
89
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { External$V1FaceSwapPhotoCreateBodyAssets, V1FaceSwapPhotoCreateBodyAssets } from "../../../types/v1-face-swap-photo-create-body-assets";
|
|
2
1
|
import * as z from "zod";
|
|
2
|
+
import { External$V1FaceSwapPhotoCreateBodyAssets, V1FaceSwapPhotoCreateBodyAssets } from "../../../types/v1-face-swap-photo-create-body-assets";
|
|
3
3
|
/**
|
|
4
4
|
* CreateRequest
|
|
5
5
|
*/
|