magic-hour 0.17.0 → 0.19.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 +4 -0
- package/dist/core/core-client.d.ts +5 -0
- package/dist/core/core-client.js +15 -6
- package/dist/core/query.d.ts +2 -1
- package/dist/core/query.js +1 -1
- package/dist/environment.d.ts +1 -1
- package/dist/environment.js +1 -1
- package/dist/resources/v1/ai-gif-generator/index.d.ts +2 -0
- package/dist/resources/v1/ai-gif-generator/index.js +5 -0
- package/dist/resources/v1/ai-gif-generator/request-types.d.ts +25 -0
- package/dist/resources/v1/ai-gif-generator/request-types.js +72 -0
- package/dist/resources/v1/ai-gif-generator/resource-client.d.ts +14 -0
- package/dist/resources/v1/ai-gif-generator/resource-client.js +30 -0
- package/dist/resources/v1/image-to-video/request-types.d.ts +10 -6
- package/dist/resources/v1/image-to-video/request-types.js +4 -4
- package/dist/resources/v1/index.d.ts +1 -0
- package/dist/resources/v1/index.js +2 -1
- package/dist/resources/v1/resource-client.d.ts +2 -0
- package/dist/resources/v1/resource-client.js +2 -0
- package/dist/types/index.d.ts +9 -0
- package/dist/types/v1-ai-gif-generator-create-body-style.d.ts +22 -0
- package/dist/types/v1-ai-gif-generator-create-body-style.js +67 -0
- package/dist/types/v1-ai-gif-generator-create-body.d.ts +25 -0
- package/dist/types/v1-ai-gif-generator-create-body.js +72 -0
- package/dist/types/v1-ai-gif-generator-create-response.d.ts +27 -0
- package/dist/types/v1-ai-gif-generator-create-response.js +71 -0
- package/dist/types/v1-ai-gif-generator-create-response400.d.ts +19 -0
- package/dist/types/v1-ai-gif-generator-create-response400.js +67 -0
- package/dist/types/v1-ai-gif-generator-create-response401-message-enum.d.ts +4 -0
- package/dist/types/v1-ai-gif-generator-create-response401-message-enum.js +2 -0
- package/dist/types/v1-ai-gif-generator-create-response401.d.ts +19 -0
- package/dist/types/v1-ai-gif-generator-create-response401.js +67 -0
- package/dist/types/v1-ai-gif-generator-create-response404-message-enum.d.ts +4 -0
- package/dist/types/v1-ai-gif-generator-create-response404-message-enum.js +2 -0
- package/dist/types/v1-ai-gif-generator-create-response404.d.ts +19 -0
- package/dist/types/v1-ai-gif-generator-create-response404.js +67 -0
- package/dist/types/v1-ai-gif-generator-create-response422.d.ts +19 -0
- package/dist/types/v1-ai-gif-generator-create-response422.js +67 -0
- package/dist/types/v1-image-projects-get-response.d.ts +1 -1
- package/dist/types/v1-image-to-video-create-body.d.ts +10 -6
- package/dist/types/v1-image-to-video-create-body.js +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -40,6 +40,10 @@ const client = new Client({
|
|
|
40
40
|
|
|
41
41
|
* [create](src/resources/v1/ai-face-editor/README.md#create) - AI Face Editor
|
|
42
42
|
|
|
43
|
+
### [v1.aiGifGenerator](src/resources/v1/ai-gif-generator/README.md)
|
|
44
|
+
|
|
45
|
+
* [create](src/resources/v1/ai-gif-generator/README.md#create) - AI GIFs
|
|
46
|
+
|
|
43
47
|
### [v1.aiHeadshotGenerator](src/resources/v1/ai-headshot-generator/README.md)
|
|
44
48
|
|
|
45
49
|
* [create](src/resources/v1/ai-headshot-generator/README.md#create) - AI Headshots
|
|
@@ -2,6 +2,7 @@ import * as z from "zod";
|
|
|
2
2
|
import { Response as NodeResponse } from "node-fetch";
|
|
3
3
|
import { AuthProvider } from "./auth";
|
|
4
4
|
import { ApiPromise } from "./api-promise";
|
|
5
|
+
import { QueryStyle } from "./query";
|
|
5
6
|
export interface CoreClientProps {
|
|
6
7
|
baseUrl: string;
|
|
7
8
|
timeout?: number | undefined;
|
|
@@ -17,6 +18,10 @@ export type RequestConfig = {
|
|
|
17
18
|
auth?: string[];
|
|
18
19
|
query?: string[];
|
|
19
20
|
body?: any;
|
|
21
|
+
bodyEncoding?: {
|
|
22
|
+
style?: Record<string, QueryStyle>;
|
|
23
|
+
explode?: Record<string, boolean>;
|
|
24
|
+
};
|
|
20
25
|
contentType?: string;
|
|
21
26
|
headers?: Record<string, string>;
|
|
22
27
|
opts?: RequestOptions | undefined;
|
package/dist/core/core-client.js
CHANGED
|
@@ -8,16 +8,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
12
|
exports.CoreResourceClient = exports.CoreClient = void 0;
|
|
16
|
-
const form_urlencoded_1 = __importDefault(require("form-urlencoded"));
|
|
17
13
|
const runtime_1 = require("./runtime");
|
|
18
14
|
const api_promise_1 = require("./api-promise");
|
|
19
15
|
const api_error_1 = require("./api-error");
|
|
20
16
|
const form_data_1 = require("./form-data");
|
|
17
|
+
const query_1 = require("./query");
|
|
21
18
|
const content_type_1 = require("./content-type");
|
|
22
19
|
class CoreClient {
|
|
23
20
|
// private agent: any // TODO
|
|
@@ -71,7 +68,7 @@ class CoreClient {
|
|
|
71
68
|
return reqInit;
|
|
72
69
|
}
|
|
73
70
|
encodeBodyByContentType(cfg, reqInit) {
|
|
74
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
71
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
75
72
|
const contentTypeOverride = (_c = (_b = (_a = cfg.opts) === null || _a === void 0 ? void 0 : _a.additionalHeaders) === null || _b === void 0 ? void 0 : _b["content-type"]) !== null && _c !== void 0 ? _c : (_e = (_d = cfg.opts) === null || _d === void 0 ? void 0 : _d.additionalHeaders) === null || _e === void 0 ? void 0 : _e["Content-Type"];
|
|
76
73
|
const contentType = (_f = contentTypeOverride !== null && contentTypeOverride !== void 0 ? contentTypeOverride : cfg.contentType) !== null && _f !== void 0 ? _f : "";
|
|
77
74
|
if (typeof cfg.body === "undefined") {
|
|
@@ -99,7 +96,19 @@ class CoreClient {
|
|
|
99
96
|
reqInit.body = form;
|
|
100
97
|
}
|
|
101
98
|
else if (contentType === content_type_1.URL_FORM) {
|
|
102
|
-
|
|
99
|
+
if (typeof cfg.body !== "object") {
|
|
100
|
+
throw new TypeError("x-www-form-urlencoded data must be an object at the top level");
|
|
101
|
+
}
|
|
102
|
+
// encode form data
|
|
103
|
+
const styleMap = (_j = (_h = cfg.bodyEncoding) === null || _h === void 0 ? void 0 : _h.style) !== null && _j !== void 0 ? _j : {};
|
|
104
|
+
const explodeMap = (_l = (_k = cfg.bodyEncoding) === null || _k === void 0 ? void 0 : _k.explode) !== null && _l !== void 0 ? _l : {};
|
|
105
|
+
const formData = Object.entries(cfg.body).map(([name, value]) => {
|
|
106
|
+
var _a, _b;
|
|
107
|
+
const style = (_a = styleMap[name]) !== null && _a !== void 0 ? _a : "form";
|
|
108
|
+
const explode = (_b = explodeMap[name]) !== null && _b !== void 0 ? _b : style === "form";
|
|
109
|
+
return (0, query_1.encodeQueryParam)({ name, value, style, explode });
|
|
110
|
+
});
|
|
111
|
+
reqInit.body = formData.join("&");
|
|
103
112
|
}
|
|
104
113
|
else {
|
|
105
114
|
// we expect body to already be encoded in the correct fashion
|
package/dist/core/query.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
export type QueryStyle = "form" | "spaceDelimited" | "pipeDelimited" | "deepObject";
|
|
1
2
|
export interface EncodeQueryParamProps {
|
|
2
3
|
name: string;
|
|
3
4
|
value: any;
|
|
4
|
-
style:
|
|
5
|
+
style: QueryStyle;
|
|
5
6
|
explode: boolean;
|
|
6
7
|
}
|
|
7
8
|
export declare function encodeQueryParam({ name, value, style, explode, }: EncodeQueryParamProps): string;
|
package/dist/core/query.js
CHANGED
|
@@ -65,7 +65,7 @@ function encodePipeDelimited(name, value, explode) {
|
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
function encodeDeepObj(name, value, explode) {
|
|
68
|
-
if (
|
|
68
|
+
if ((Array.isArray(value) || typeof value === "object") && value != null) {
|
|
69
69
|
return qs_1.default.stringify({ [name]: value });
|
|
70
70
|
}
|
|
71
71
|
else {
|
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.19.0";
|
|
8
8
|
})(Environment || (exports.Environment = Environment = {}));
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiGifGeneratorClient = void 0;
|
|
4
|
+
var resource_client_1 = require("./resource-client");
|
|
5
|
+
Object.defineProperty(exports, "AiGifGeneratorClient", { enumerable: true, get: function () { return resource_client_1.AiGifGeneratorClient; } });
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { External$V1AiGifGeneratorCreateBodyStyle, V1AiGifGeneratorCreateBodyStyle } from "../../../types/v1-ai-gif-generator-create-body-style";
|
|
2
|
+
import * as z from "zod";
|
|
3
|
+
/**
|
|
4
|
+
* CreateRequest
|
|
5
|
+
*/
|
|
6
|
+
export type CreateRequest = {
|
|
7
|
+
/**
|
|
8
|
+
* The name of gif
|
|
9
|
+
*/
|
|
10
|
+
name?: string | undefined;
|
|
11
|
+
style: V1AiGifGeneratorCreateBodyStyle;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* @internal
|
|
15
|
+
* CreateRequest without any key transformation, this is what
|
|
16
|
+
* we expect to come in as network data
|
|
17
|
+
*/
|
|
18
|
+
export type External$CreateRequest = {
|
|
19
|
+
name?: string | undefined;
|
|
20
|
+
style: External$V1AiGifGeneratorCreateBodyStyle;
|
|
21
|
+
};
|
|
22
|
+
export declare const Schemas$CreateRequest: {
|
|
23
|
+
in: z.ZodType<CreateRequest, z.ZodTypeDef, unknown>;
|
|
24
|
+
out: z.ZodType<External$CreateRequest, z.ZodTypeDef, CreateRequest>;
|
|
25
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.Schemas$CreateRequest = void 0;
|
|
37
|
+
const core_1 = require("../../../core");
|
|
38
|
+
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
|
+
/**
|
|
41
|
+
* Takes network data, validates it, and transforms keys to match typescript object CreateRequest
|
|
42
|
+
*/
|
|
43
|
+
const SchemaIn$CreateRequest = z
|
|
44
|
+
.object({
|
|
45
|
+
name: z.string().optional(),
|
|
46
|
+
style: v1_ai_gif_generator_create_body_style_1.Schemas$V1AiGifGeneratorCreateBodyStyle.in,
|
|
47
|
+
})
|
|
48
|
+
.transform((obj) => {
|
|
49
|
+
return (0, core_1.zodTransform)(obj, {
|
|
50
|
+
name: "name",
|
|
51
|
+
style: "style",
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
/**
|
|
55
|
+
* @internal
|
|
56
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$CreateRequest
|
|
57
|
+
*/
|
|
58
|
+
const SchemaOut$CreateRequest = z
|
|
59
|
+
.object({
|
|
60
|
+
name: z.string().optional(),
|
|
61
|
+
style: v1_ai_gif_generator_create_body_style_1.Schemas$V1AiGifGeneratorCreateBodyStyle.out,
|
|
62
|
+
})
|
|
63
|
+
.transform((obj) => {
|
|
64
|
+
return (0, core_1.zodTransform)(obj, {
|
|
65
|
+
name: "name",
|
|
66
|
+
style: "style",
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
exports.Schemas$CreateRequest = {
|
|
70
|
+
in: SchemaIn$CreateRequest,
|
|
71
|
+
out: SchemaOut$CreateRequest,
|
|
72
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { types } from "../../../index.js";
|
|
2
|
+
import { ApiPromise, CoreClient, CoreResourceClient, RequestOptions } from "../../../core";
|
|
3
|
+
import * as requests from "../../../resources/v1/ai-gif-generator/request-types";
|
|
4
|
+
export declare class AiGifGeneratorClient extends CoreResourceClient {
|
|
5
|
+
constructor(client: CoreClient);
|
|
6
|
+
/**
|
|
7
|
+
* AI GIFs
|
|
8
|
+
*
|
|
9
|
+
* Create an AI GIF. Each GIF costs 5 frames.
|
|
10
|
+
*
|
|
11
|
+
* POST /v1/ai-gif-generator
|
|
12
|
+
*/
|
|
13
|
+
create(request: requests.CreateRequest, opts?: RequestOptions): ApiPromise<types.V1AiGifGeneratorCreateResponse>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiGifGeneratorClient = void 0;
|
|
4
|
+
const core_1 = require("../../../core");
|
|
5
|
+
const v1_ai_gif_generator_create_body_1 = require("../../../types/v1-ai-gif-generator-create-body");
|
|
6
|
+
const v1_ai_gif_generator_create_response_1 = require("../../../types/v1-ai-gif-generator-create-response");
|
|
7
|
+
class AiGifGeneratorClient extends core_1.CoreResourceClient {
|
|
8
|
+
constructor(client) {
|
|
9
|
+
super(client);
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* AI GIFs
|
|
13
|
+
*
|
|
14
|
+
* Create an AI GIF. Each GIF costs 5 frames.
|
|
15
|
+
*
|
|
16
|
+
* POST /v1/ai-gif-generator
|
|
17
|
+
*/
|
|
18
|
+
create(request, opts) {
|
|
19
|
+
return this._client.makeRequest({
|
|
20
|
+
method: "post",
|
|
21
|
+
path: "/v1/ai-gif-generator",
|
|
22
|
+
auth: ["bearerAuth"],
|
|
23
|
+
contentType: "application/json",
|
|
24
|
+
body: v1_ai_gif_generator_create_body_1.Schemas$V1AiGifGeneratorCreateBody.out.parse(request),
|
|
25
|
+
responseSchema: v1_ai_gif_generator_create_response_1.Schemas$V1AiGifGeneratorCreateResponse.in,
|
|
26
|
+
opts,
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.AiGifGeneratorClient = AiGifGeneratorClient;
|
|
@@ -14,9 +14,11 @@ export type CreateRequest = {
|
|
|
14
14
|
*/
|
|
15
15
|
endSeconds: number;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* This field does not affect the output video's resolution. The video's orientation will match that of the input image.
|
|
18
|
+
*
|
|
19
|
+
* It is retained solely for backward compatibility and will be deprecated in the future.
|
|
18
20
|
*/
|
|
19
|
-
height
|
|
21
|
+
height?: number | undefined;
|
|
20
22
|
/**
|
|
21
23
|
* The name of video
|
|
22
24
|
*/
|
|
@@ -26,9 +28,11 @@ export type CreateRequest = {
|
|
|
26
28
|
*/
|
|
27
29
|
style: V1ImageToVideoCreateBodyStyle;
|
|
28
30
|
/**
|
|
29
|
-
*
|
|
31
|
+
* This field does not affect the output video's resolution. The video's orientation will match that of the input image.
|
|
32
|
+
*
|
|
33
|
+
* It is retained solely for backward compatibility and will be deprecated in the future.
|
|
30
34
|
*/
|
|
31
|
-
width
|
|
35
|
+
width?: number | undefined;
|
|
32
36
|
};
|
|
33
37
|
/**
|
|
34
38
|
* @internal
|
|
@@ -38,10 +42,10 @@ export type CreateRequest = {
|
|
|
38
42
|
export type External$CreateRequest = {
|
|
39
43
|
assets: External$V1ImageToVideoCreateBodyAssets;
|
|
40
44
|
end_seconds: number;
|
|
41
|
-
height
|
|
45
|
+
height?: number | undefined;
|
|
42
46
|
name?: string | undefined;
|
|
43
47
|
style: External$V1ImageToVideoCreateBodyStyle;
|
|
44
|
-
width
|
|
48
|
+
width?: number | undefined;
|
|
45
49
|
};
|
|
46
50
|
export declare const Schemas$CreateRequest: {
|
|
47
51
|
in: z.ZodType<CreateRequest, z.ZodTypeDef, unknown>;
|
|
@@ -45,10 +45,10 @@ const SchemaIn$CreateRequest = z
|
|
|
45
45
|
.object({
|
|
46
46
|
assets: v1_image_to_video_create_body_assets_1.Schemas$V1ImageToVideoCreateBodyAssets.in,
|
|
47
47
|
end_seconds: z.number(),
|
|
48
|
-
height: z.number().int(),
|
|
48
|
+
height: z.number().int().optional(),
|
|
49
49
|
name: z.string().optional(),
|
|
50
50
|
style: v1_image_to_video_create_body_style_1.Schemas$V1ImageToVideoCreateBodyStyle.in,
|
|
51
|
-
width: z.number().int(),
|
|
51
|
+
width: z.number().int().optional(),
|
|
52
52
|
})
|
|
53
53
|
.transform((obj) => {
|
|
54
54
|
return (0, core_1.zodTransform)(obj, {
|
|
@@ -68,10 +68,10 @@ const SchemaOut$CreateRequest = z
|
|
|
68
68
|
.object({
|
|
69
69
|
assets: v1_image_to_video_create_body_assets_1.Schemas$V1ImageToVideoCreateBodyAssets.out,
|
|
70
70
|
endSeconds: z.number(),
|
|
71
|
-
height: z.number().int(),
|
|
71
|
+
height: z.number().int().optional(),
|
|
72
72
|
name: z.string().optional(),
|
|
73
73
|
style: v1_image_to_video_create_body_style_1.Schemas$V1ImageToVideoCreateBodyStyle.out,
|
|
74
|
-
width: z.number().int(),
|
|
74
|
+
width: z.number().int().optional(),
|
|
75
75
|
})
|
|
76
76
|
.transform((obj) => {
|
|
77
77
|
return (0, core_1.zodTransform)(obj, {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * as aiClothesChanger from "./ai-clothes-changer";
|
|
2
2
|
export * as aiFaceEditor from "./ai-face-editor";
|
|
3
|
+
export * as aiGifGenerator from "./ai-gif-generator";
|
|
3
4
|
export * as aiHeadshotGenerator from "./ai-headshot-generator";
|
|
4
5
|
export * as aiImageGenerator from "./ai-image-generator";
|
|
5
6
|
export * as aiImageUpscaler from "./ai-image-upscaler";
|
|
@@ -33,9 +33,10 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.videoToVideo = exports.videoProjects = exports.textToVideo = exports.V1Client = exports.photoColorizer = exports.lipSync = exports.imageToVideo = exports.imageProjects = exports.imageBackgroundRemover = exports.files = exports.faceSwapPhoto = exports.faceSwap = exports.animation = exports.aiTalkingPhoto = exports.aiQrCodeGenerator = exports.aiPhotoEditor = exports.aiMemeGenerator = exports.aiImageUpscaler = exports.aiImageGenerator = exports.aiHeadshotGenerator = exports.aiFaceEditor = exports.aiClothesChanger = void 0;
|
|
36
|
+
exports.videoToVideo = exports.videoProjects = exports.textToVideo = exports.V1Client = exports.photoColorizer = exports.lipSync = exports.imageToVideo = exports.imageProjects = exports.imageBackgroundRemover = exports.files = exports.faceSwapPhoto = exports.faceSwap = exports.animation = exports.aiTalkingPhoto = exports.aiQrCodeGenerator = exports.aiPhotoEditor = exports.aiMemeGenerator = exports.aiImageUpscaler = exports.aiImageGenerator = exports.aiHeadshotGenerator = exports.aiGifGenerator = exports.aiFaceEditor = exports.aiClothesChanger = void 0;
|
|
37
37
|
exports.aiClothesChanger = __importStar(require("./ai-clothes-changer"));
|
|
38
38
|
exports.aiFaceEditor = __importStar(require("./ai-face-editor"));
|
|
39
|
+
exports.aiGifGenerator = __importStar(require("./ai-gif-generator"));
|
|
39
40
|
exports.aiHeadshotGenerator = __importStar(require("./ai-headshot-generator"));
|
|
40
41
|
exports.aiImageGenerator = __importStar(require("./ai-image-generator"));
|
|
41
42
|
exports.aiImageUpscaler = __importStar(require("./ai-image-upscaler"));
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CoreClient, CoreResourceClient } from "../../core";
|
|
2
2
|
import { AiClothesChangerClient } from "../../resources/v1/ai-clothes-changer";
|
|
3
3
|
import { AiFaceEditorClient } from "../../resources/v1/ai-face-editor";
|
|
4
|
+
import { AiGifGeneratorClient } from "../../resources/v1/ai-gif-generator";
|
|
4
5
|
import { AiHeadshotGeneratorClient } from "../../resources/v1/ai-headshot-generator";
|
|
5
6
|
import { AiImageGeneratorClient } from "../../resources/v1/ai-image-generator";
|
|
6
7
|
import { AiImageUpscalerClient } from "../../resources/v1/ai-image-upscaler";
|
|
@@ -25,6 +26,7 @@ export declare class V1Client extends CoreResourceClient {
|
|
|
25
26
|
videoProjects: VideoProjectsClient;
|
|
26
27
|
aiClothesChanger: AiClothesChangerClient;
|
|
27
28
|
aiFaceEditor: AiFaceEditorClient;
|
|
29
|
+
aiGifGenerator: AiGifGeneratorClient;
|
|
28
30
|
aiHeadshotGenerator: AiHeadshotGeneratorClient;
|
|
29
31
|
aiImageGenerator: AiImageGeneratorClient;
|
|
30
32
|
aiImageUpscaler: AiImageUpscalerClient;
|
|
@@ -4,6 +4,7 @@ exports.V1Client = void 0;
|
|
|
4
4
|
const core_1 = require("../../core");
|
|
5
5
|
const ai_clothes_changer_1 = require("../../resources/v1/ai-clothes-changer");
|
|
6
6
|
const ai_face_editor_1 = require("../../resources/v1/ai-face-editor");
|
|
7
|
+
const ai_gif_generator_1 = require("../../resources/v1/ai-gif-generator");
|
|
7
8
|
const ai_headshot_generator_1 = require("../../resources/v1/ai-headshot-generator");
|
|
8
9
|
const ai_image_generator_1 = require("../../resources/v1/ai-image-generator");
|
|
9
10
|
const ai_image_upscaler_1 = require("../../resources/v1/ai-image-upscaler");
|
|
@@ -30,6 +31,7 @@ class V1Client extends core_1.CoreResourceClient {
|
|
|
30
31
|
this.videoProjects = new video_projects_1.VideoProjectsClient(this._client);
|
|
31
32
|
this.aiClothesChanger = new ai_clothes_changer_1.AiClothesChangerClient(this._client);
|
|
32
33
|
this.aiFaceEditor = new ai_face_editor_1.AiFaceEditorClient(this._client);
|
|
34
|
+
this.aiGifGenerator = new ai_gif_generator_1.AiGifGeneratorClient(this._client);
|
|
33
35
|
this.aiHeadshotGenerator = new ai_headshot_generator_1.AiHeadshotGeneratorClient(this._client);
|
|
34
36
|
this.aiImageGenerator = new ai_image_generator_1.AiImageGeneratorClient(this._client);
|
|
35
37
|
this.aiImageUpscaler = new ai_image_upscaler_1.AiImageUpscalerClient(this._client);
|
package/dist/types/index.d.ts
CHANGED
|
@@ -18,6 +18,15 @@ export { V1AiFaceEditorCreateResponse401MessageEnum } from "./v1-ai-face-editor-
|
|
|
18
18
|
export { V1AiFaceEditorCreateResponse404 } from "./v1-ai-face-editor-create-response404";
|
|
19
19
|
export { V1AiFaceEditorCreateResponse404MessageEnum } from "./v1-ai-face-editor-create-response404-message-enum";
|
|
20
20
|
export { V1AiFaceEditorCreateResponse422 } from "./v1-ai-face-editor-create-response422";
|
|
21
|
+
export { V1AiGifGeneratorCreateBody } from "./v1-ai-gif-generator-create-body";
|
|
22
|
+
export { V1AiGifGeneratorCreateBodyStyle } from "./v1-ai-gif-generator-create-body-style";
|
|
23
|
+
export { V1AiGifGeneratorCreateResponse } from "./v1-ai-gif-generator-create-response";
|
|
24
|
+
export { V1AiGifGeneratorCreateResponse400 } from "./v1-ai-gif-generator-create-response400";
|
|
25
|
+
export { V1AiGifGeneratorCreateResponse401 } from "./v1-ai-gif-generator-create-response401";
|
|
26
|
+
export { V1AiGifGeneratorCreateResponse401MessageEnum } from "./v1-ai-gif-generator-create-response401-message-enum";
|
|
27
|
+
export { V1AiGifGeneratorCreateResponse404 } from "./v1-ai-gif-generator-create-response404";
|
|
28
|
+
export { V1AiGifGeneratorCreateResponse404MessageEnum } from "./v1-ai-gif-generator-create-response404-message-enum";
|
|
29
|
+
export { V1AiGifGeneratorCreateResponse422 } from "./v1-ai-gif-generator-create-response422";
|
|
21
30
|
export { V1AiHeadshotGeneratorCreateBody } from "./v1-ai-headshot-generator-create-body";
|
|
22
31
|
export { V1AiHeadshotGeneratorCreateBodyAssets } from "./v1-ai-headshot-generator-create-body-assets";
|
|
23
32
|
export { V1AiHeadshotGeneratorCreateBodyStyle } from "./v1-ai-headshot-generator-create-body-style";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* V1AiGifGeneratorCreateBodyStyle
|
|
4
|
+
*/
|
|
5
|
+
export type V1AiGifGeneratorCreateBodyStyle = {
|
|
6
|
+
/**
|
|
7
|
+
* The prompt used for the GIF.
|
|
8
|
+
*/
|
|
9
|
+
prompt: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* @internal
|
|
13
|
+
* V1AiGifGeneratorCreateBodyStyle without any key transformation, this is what
|
|
14
|
+
* we expect to come in as network data
|
|
15
|
+
*/
|
|
16
|
+
export type External$V1AiGifGeneratorCreateBodyStyle = {
|
|
17
|
+
prompt: string;
|
|
18
|
+
};
|
|
19
|
+
export declare const Schemas$V1AiGifGeneratorCreateBodyStyle: {
|
|
20
|
+
in: z.ZodType<V1AiGifGeneratorCreateBodyStyle, z.ZodTypeDef, unknown>;
|
|
21
|
+
out: z.ZodType<External$V1AiGifGeneratorCreateBodyStyle, z.ZodTypeDef, V1AiGifGeneratorCreateBodyStyle>;
|
|
22
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.Schemas$V1AiGifGeneratorCreateBodyStyle = void 0;
|
|
37
|
+
const core_1 = require("../core");
|
|
38
|
+
const z = __importStar(require("zod"));
|
|
39
|
+
/**
|
|
40
|
+
* Takes network data, validates it, and transforms keys to match typescript object V1AiGifGeneratorCreateBodyStyle
|
|
41
|
+
*/
|
|
42
|
+
const SchemaIn$V1AiGifGeneratorCreateBodyStyle = z
|
|
43
|
+
.object({
|
|
44
|
+
prompt: z.string(),
|
|
45
|
+
})
|
|
46
|
+
.transform((obj) => {
|
|
47
|
+
return (0, core_1.zodTransform)(obj, {
|
|
48
|
+
prompt: "prompt",
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
/**
|
|
52
|
+
* @internal
|
|
53
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$V1AiGifGeneratorCreateBodyStyle
|
|
54
|
+
*/
|
|
55
|
+
const SchemaOut$V1AiGifGeneratorCreateBodyStyle = z
|
|
56
|
+
.object({
|
|
57
|
+
prompt: z.string(),
|
|
58
|
+
})
|
|
59
|
+
.transform((obj) => {
|
|
60
|
+
return (0, core_1.zodTransform)(obj, {
|
|
61
|
+
prompt: "prompt",
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
exports.Schemas$V1AiGifGeneratorCreateBodyStyle = {
|
|
65
|
+
in: SchemaIn$V1AiGifGeneratorCreateBodyStyle,
|
|
66
|
+
out: SchemaOut$V1AiGifGeneratorCreateBodyStyle,
|
|
67
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { External$V1AiGifGeneratorCreateBodyStyle, V1AiGifGeneratorCreateBodyStyle } from "./v1-ai-gif-generator-create-body-style";
|
|
2
|
+
import * as z from "zod";
|
|
3
|
+
/**
|
|
4
|
+
* V1AiGifGeneratorCreateBody
|
|
5
|
+
*/
|
|
6
|
+
export type V1AiGifGeneratorCreateBody = {
|
|
7
|
+
/**
|
|
8
|
+
* The name of gif
|
|
9
|
+
*/
|
|
10
|
+
name?: string | undefined;
|
|
11
|
+
style: V1AiGifGeneratorCreateBodyStyle;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* @internal
|
|
15
|
+
* V1AiGifGeneratorCreateBody without any key transformation, this is what
|
|
16
|
+
* we expect to come in as network data
|
|
17
|
+
*/
|
|
18
|
+
export type External$V1AiGifGeneratorCreateBody = {
|
|
19
|
+
name?: string | undefined;
|
|
20
|
+
style: External$V1AiGifGeneratorCreateBodyStyle;
|
|
21
|
+
};
|
|
22
|
+
export declare const Schemas$V1AiGifGeneratorCreateBody: {
|
|
23
|
+
in: z.ZodType<V1AiGifGeneratorCreateBody, z.ZodTypeDef, unknown>;
|
|
24
|
+
out: z.ZodType<External$V1AiGifGeneratorCreateBody, z.ZodTypeDef, V1AiGifGeneratorCreateBody>;
|
|
25
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.Schemas$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
|
+
const z = __importStar(require("zod"));
|
|
40
|
+
/**
|
|
41
|
+
* Takes network data, validates it, and transforms keys to match typescript object V1AiGifGeneratorCreateBody
|
|
42
|
+
*/
|
|
43
|
+
const SchemaIn$V1AiGifGeneratorCreateBody = z
|
|
44
|
+
.object({
|
|
45
|
+
name: z.string().optional(),
|
|
46
|
+
style: v1_ai_gif_generator_create_body_style_1.Schemas$V1AiGifGeneratorCreateBodyStyle.in,
|
|
47
|
+
})
|
|
48
|
+
.transform((obj) => {
|
|
49
|
+
return (0, core_1.zodTransform)(obj, {
|
|
50
|
+
name: "name",
|
|
51
|
+
style: "style",
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
/**
|
|
55
|
+
* @internal
|
|
56
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$V1AiGifGeneratorCreateBody
|
|
57
|
+
*/
|
|
58
|
+
const SchemaOut$V1AiGifGeneratorCreateBody = z
|
|
59
|
+
.object({
|
|
60
|
+
name: z.string().optional(),
|
|
61
|
+
style: v1_ai_gif_generator_create_body_style_1.Schemas$V1AiGifGeneratorCreateBodyStyle.out,
|
|
62
|
+
})
|
|
63
|
+
.transform((obj) => {
|
|
64
|
+
return (0, core_1.zodTransform)(obj, {
|
|
65
|
+
name: "name",
|
|
66
|
+
style: "style",
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
exports.Schemas$V1AiGifGeneratorCreateBody = {
|
|
70
|
+
in: SchemaIn$V1AiGifGeneratorCreateBody,
|
|
71
|
+
out: SchemaOut$V1AiGifGeneratorCreateBody,
|
|
72
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Success
|
|
4
|
+
*/
|
|
5
|
+
export type V1AiGifGeneratorCreateResponse = {
|
|
6
|
+
/**
|
|
7
|
+
* The frame cost of the image generation
|
|
8
|
+
*/
|
|
9
|
+
frameCost: number;
|
|
10
|
+
/**
|
|
11
|
+
* Unique ID of the image. This value can be used in the [get image project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch additional details such as status
|
|
12
|
+
*/
|
|
13
|
+
id: string;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
* V1AiGifGeneratorCreateResponse without any key transformation, this is what
|
|
18
|
+
* we expect to come in as network data
|
|
19
|
+
*/
|
|
20
|
+
export type External$V1AiGifGeneratorCreateResponse = {
|
|
21
|
+
frame_cost: number;
|
|
22
|
+
id: string;
|
|
23
|
+
};
|
|
24
|
+
export declare const Schemas$V1AiGifGeneratorCreateResponse: {
|
|
25
|
+
in: z.ZodType<V1AiGifGeneratorCreateResponse, z.ZodTypeDef, unknown>;
|
|
26
|
+
out: z.ZodType<External$V1AiGifGeneratorCreateResponse, z.ZodTypeDef, V1AiGifGeneratorCreateResponse>;
|
|
27
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.Schemas$V1AiGifGeneratorCreateResponse = void 0;
|
|
37
|
+
const core_1 = require("../core");
|
|
38
|
+
const z = __importStar(require("zod"));
|
|
39
|
+
/**
|
|
40
|
+
* Takes network data, validates it, and transforms keys to match typescript object V1AiGifGeneratorCreateResponse
|
|
41
|
+
*/
|
|
42
|
+
const SchemaIn$V1AiGifGeneratorCreateResponse = z
|
|
43
|
+
.object({
|
|
44
|
+
frame_cost: z.number().int(),
|
|
45
|
+
id: z.string(),
|
|
46
|
+
})
|
|
47
|
+
.transform((obj) => {
|
|
48
|
+
return (0, core_1.zodTransform)(obj, {
|
|
49
|
+
frame_cost: "frameCost",
|
|
50
|
+
id: "id",
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
/**
|
|
54
|
+
* @internal
|
|
55
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$V1AiGifGeneratorCreateResponse
|
|
56
|
+
*/
|
|
57
|
+
const SchemaOut$V1AiGifGeneratorCreateResponse = z
|
|
58
|
+
.object({
|
|
59
|
+
frameCost: z.number().int(),
|
|
60
|
+
id: z.string(),
|
|
61
|
+
})
|
|
62
|
+
.transform((obj) => {
|
|
63
|
+
return (0, core_1.zodTransform)(obj, {
|
|
64
|
+
frameCost: "frame_cost",
|
|
65
|
+
id: "id",
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
exports.Schemas$V1AiGifGeneratorCreateResponse = {
|
|
69
|
+
in: SchemaIn$V1AiGifGeneratorCreateResponse,
|
|
70
|
+
out: SchemaOut$V1AiGifGeneratorCreateResponse,
|
|
71
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* The request is invalid
|
|
4
|
+
*/
|
|
5
|
+
export type V1AiGifGeneratorCreateResponse400 = {
|
|
6
|
+
message: string;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* @internal
|
|
10
|
+
* V1AiGifGeneratorCreateResponse400 without any key transformation, this is what
|
|
11
|
+
* we expect to come in as network data
|
|
12
|
+
*/
|
|
13
|
+
export type External$V1AiGifGeneratorCreateResponse400 = {
|
|
14
|
+
message: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const Schemas$V1AiGifGeneratorCreateResponse400: {
|
|
17
|
+
in: z.ZodType<V1AiGifGeneratorCreateResponse400, z.ZodTypeDef, unknown>;
|
|
18
|
+
out: z.ZodType<External$V1AiGifGeneratorCreateResponse400, z.ZodTypeDef, V1AiGifGeneratorCreateResponse400>;
|
|
19
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.Schemas$V1AiGifGeneratorCreateResponse400 = void 0;
|
|
37
|
+
const core_1 = require("../core");
|
|
38
|
+
const z = __importStar(require("zod"));
|
|
39
|
+
/**
|
|
40
|
+
* Takes network data, validates it, and transforms keys to match typescript object V1AiGifGeneratorCreateResponse400
|
|
41
|
+
*/
|
|
42
|
+
const SchemaIn$V1AiGifGeneratorCreateResponse400 = z
|
|
43
|
+
.object({
|
|
44
|
+
message: z.string(),
|
|
45
|
+
})
|
|
46
|
+
.transform((obj) => {
|
|
47
|
+
return (0, core_1.zodTransform)(obj, {
|
|
48
|
+
message: "message",
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
/**
|
|
52
|
+
* @internal
|
|
53
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$V1AiGifGeneratorCreateResponse400
|
|
54
|
+
*/
|
|
55
|
+
const SchemaOut$V1AiGifGeneratorCreateResponse400 = z
|
|
56
|
+
.object({
|
|
57
|
+
message: z.string(),
|
|
58
|
+
})
|
|
59
|
+
.transform((obj) => {
|
|
60
|
+
return (0, core_1.zodTransform)(obj, {
|
|
61
|
+
message: "message",
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
exports.Schemas$V1AiGifGeneratorCreateResponse400 = {
|
|
65
|
+
in: SchemaIn$V1AiGifGeneratorCreateResponse400,
|
|
66
|
+
out: SchemaOut$V1AiGifGeneratorCreateResponse400,
|
|
67
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* The request is not properly authenticated
|
|
4
|
+
*/
|
|
5
|
+
export type V1AiGifGeneratorCreateResponse401 = {
|
|
6
|
+
message: "Unauthorized";
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* @internal
|
|
10
|
+
* V1AiGifGeneratorCreateResponse401 without any key transformation, this is what
|
|
11
|
+
* we expect to come in as network data
|
|
12
|
+
*/
|
|
13
|
+
export type External$V1AiGifGeneratorCreateResponse401 = {
|
|
14
|
+
message: "Unauthorized";
|
|
15
|
+
};
|
|
16
|
+
export declare const Schemas$V1AiGifGeneratorCreateResponse401: {
|
|
17
|
+
in: z.ZodType<V1AiGifGeneratorCreateResponse401, z.ZodTypeDef, unknown>;
|
|
18
|
+
out: z.ZodType<External$V1AiGifGeneratorCreateResponse401, z.ZodTypeDef, V1AiGifGeneratorCreateResponse401>;
|
|
19
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.Schemas$V1AiGifGeneratorCreateResponse401 = void 0;
|
|
37
|
+
const core_1 = require("../core");
|
|
38
|
+
const z = __importStar(require("zod"));
|
|
39
|
+
/**
|
|
40
|
+
* Takes network data, validates it, and transforms keys to match typescript object V1AiGifGeneratorCreateResponse401
|
|
41
|
+
*/
|
|
42
|
+
const SchemaIn$V1AiGifGeneratorCreateResponse401 = z
|
|
43
|
+
.object({
|
|
44
|
+
message: z.enum(["Unauthorized"]),
|
|
45
|
+
})
|
|
46
|
+
.transform((obj) => {
|
|
47
|
+
return (0, core_1.zodTransform)(obj, {
|
|
48
|
+
message: "message",
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
/**
|
|
52
|
+
* @internal
|
|
53
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$V1AiGifGeneratorCreateResponse401
|
|
54
|
+
*/
|
|
55
|
+
const SchemaOut$V1AiGifGeneratorCreateResponse401 = z
|
|
56
|
+
.object({
|
|
57
|
+
message: z.enum(["Unauthorized"]),
|
|
58
|
+
})
|
|
59
|
+
.transform((obj) => {
|
|
60
|
+
return (0, core_1.zodTransform)(obj, {
|
|
61
|
+
message: "message",
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
exports.Schemas$V1AiGifGeneratorCreateResponse401 = {
|
|
65
|
+
in: SchemaIn$V1AiGifGeneratorCreateResponse401,
|
|
66
|
+
out: SchemaOut$V1AiGifGeneratorCreateResponse401,
|
|
67
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Requested resource is not found
|
|
4
|
+
*/
|
|
5
|
+
export type V1AiGifGeneratorCreateResponse404 = {
|
|
6
|
+
message: "Not Found";
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* @internal
|
|
10
|
+
* V1AiGifGeneratorCreateResponse404 without any key transformation, this is what
|
|
11
|
+
* we expect to come in as network data
|
|
12
|
+
*/
|
|
13
|
+
export type External$V1AiGifGeneratorCreateResponse404 = {
|
|
14
|
+
message: "Not Found";
|
|
15
|
+
};
|
|
16
|
+
export declare const Schemas$V1AiGifGeneratorCreateResponse404: {
|
|
17
|
+
in: z.ZodType<V1AiGifGeneratorCreateResponse404, z.ZodTypeDef, unknown>;
|
|
18
|
+
out: z.ZodType<External$V1AiGifGeneratorCreateResponse404, z.ZodTypeDef, V1AiGifGeneratorCreateResponse404>;
|
|
19
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.Schemas$V1AiGifGeneratorCreateResponse404 = void 0;
|
|
37
|
+
const core_1 = require("../core");
|
|
38
|
+
const z = __importStar(require("zod"));
|
|
39
|
+
/**
|
|
40
|
+
* Takes network data, validates it, and transforms keys to match typescript object V1AiGifGeneratorCreateResponse404
|
|
41
|
+
*/
|
|
42
|
+
const SchemaIn$V1AiGifGeneratorCreateResponse404 = z
|
|
43
|
+
.object({
|
|
44
|
+
message: z.enum(["Not Found"]),
|
|
45
|
+
})
|
|
46
|
+
.transform((obj) => {
|
|
47
|
+
return (0, core_1.zodTransform)(obj, {
|
|
48
|
+
message: "message",
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
/**
|
|
52
|
+
* @internal
|
|
53
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$V1AiGifGeneratorCreateResponse404
|
|
54
|
+
*/
|
|
55
|
+
const SchemaOut$V1AiGifGeneratorCreateResponse404 = z
|
|
56
|
+
.object({
|
|
57
|
+
message: z.enum(["Not Found"]),
|
|
58
|
+
})
|
|
59
|
+
.transform((obj) => {
|
|
60
|
+
return (0, core_1.zodTransform)(obj, {
|
|
61
|
+
message: "message",
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
exports.Schemas$V1AiGifGeneratorCreateResponse404 = {
|
|
65
|
+
in: SchemaIn$V1AiGifGeneratorCreateResponse404,
|
|
66
|
+
out: SchemaOut$V1AiGifGeneratorCreateResponse404,
|
|
67
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Unprocessable Entity
|
|
4
|
+
*/
|
|
5
|
+
export type V1AiGifGeneratorCreateResponse422 = {
|
|
6
|
+
message: string;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* @internal
|
|
10
|
+
* V1AiGifGeneratorCreateResponse422 without any key transformation, this is what
|
|
11
|
+
* we expect to come in as network data
|
|
12
|
+
*/
|
|
13
|
+
export type External$V1AiGifGeneratorCreateResponse422 = {
|
|
14
|
+
message: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const Schemas$V1AiGifGeneratorCreateResponse422: {
|
|
17
|
+
in: z.ZodType<V1AiGifGeneratorCreateResponse422, z.ZodTypeDef, unknown>;
|
|
18
|
+
out: z.ZodType<External$V1AiGifGeneratorCreateResponse422, z.ZodTypeDef, V1AiGifGeneratorCreateResponse422>;
|
|
19
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.Schemas$V1AiGifGeneratorCreateResponse422 = void 0;
|
|
37
|
+
const core_1 = require("../core");
|
|
38
|
+
const z = __importStar(require("zod"));
|
|
39
|
+
/**
|
|
40
|
+
* Takes network data, validates it, and transforms keys to match typescript object V1AiGifGeneratorCreateResponse422
|
|
41
|
+
*/
|
|
42
|
+
const SchemaIn$V1AiGifGeneratorCreateResponse422 = z
|
|
43
|
+
.object({
|
|
44
|
+
message: z.string(),
|
|
45
|
+
})
|
|
46
|
+
.transform((obj) => {
|
|
47
|
+
return (0, core_1.zodTransform)(obj, {
|
|
48
|
+
message: "message",
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
/**
|
|
52
|
+
* @internal
|
|
53
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$V1AiGifGeneratorCreateResponse422
|
|
54
|
+
*/
|
|
55
|
+
const SchemaOut$V1AiGifGeneratorCreateResponse422 = z
|
|
56
|
+
.object({
|
|
57
|
+
message: z.string(),
|
|
58
|
+
})
|
|
59
|
+
.transform((obj) => {
|
|
60
|
+
return (0, core_1.zodTransform)(obj, {
|
|
61
|
+
message: "message",
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
exports.Schemas$V1AiGifGeneratorCreateResponse422 = {
|
|
65
|
+
in: SchemaIn$V1AiGifGeneratorCreateResponse422,
|
|
66
|
+
out: SchemaOut$V1AiGifGeneratorCreateResponse422,
|
|
67
|
+
};
|
|
@@ -36,7 +36,7 @@ export type V1ImageProjectsGetResponse = {
|
|
|
36
36
|
*/
|
|
37
37
|
totalFrameCost: number;
|
|
38
38
|
/**
|
|
39
|
-
* The type of the image project. Possible values are AI_HEADSHOT, AI_IMAGE, IMAGE_UPSCALER, FACE_SWAP, PHOTO_EDITOR, QR_CODE, BACKGROUND_REMOVER, CLOTHES_CHANGER, AI_MEME, FACE_EDITOR, PHOTO_COLORIZER
|
|
39
|
+
* The type of the image project. Possible values are AI_HEADSHOT, AI_IMAGE, IMAGE_UPSCALER, FACE_SWAP, PHOTO_EDITOR, QR_CODE, BACKGROUND_REMOVER, CLOTHES_CHANGER, AI_MEME, FACE_EDITOR, PHOTO_COLORIZER, AI_GIF
|
|
40
40
|
*/
|
|
41
41
|
type: string;
|
|
42
42
|
};
|
|
@@ -14,9 +14,11 @@ export type V1ImageToVideoCreateBody = {
|
|
|
14
14
|
*/
|
|
15
15
|
endSeconds: number;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* This field does not affect the output video's resolution. The video's orientation will match that of the input image.
|
|
18
|
+
*
|
|
19
|
+
* It is retained solely for backward compatibility and will be deprecated in the future.
|
|
18
20
|
*/
|
|
19
|
-
height
|
|
21
|
+
height?: number | undefined;
|
|
20
22
|
/**
|
|
21
23
|
* The name of video
|
|
22
24
|
*/
|
|
@@ -26,9 +28,11 @@ export type V1ImageToVideoCreateBody = {
|
|
|
26
28
|
*/
|
|
27
29
|
style: V1ImageToVideoCreateBodyStyle;
|
|
28
30
|
/**
|
|
29
|
-
*
|
|
31
|
+
* This field does not affect the output video's resolution. The video's orientation will match that of the input image.
|
|
32
|
+
*
|
|
33
|
+
* It is retained solely for backward compatibility and will be deprecated in the future.
|
|
30
34
|
*/
|
|
31
|
-
width
|
|
35
|
+
width?: number | undefined;
|
|
32
36
|
};
|
|
33
37
|
/**
|
|
34
38
|
* @internal
|
|
@@ -38,10 +42,10 @@ export type V1ImageToVideoCreateBody = {
|
|
|
38
42
|
export type External$V1ImageToVideoCreateBody = {
|
|
39
43
|
assets: External$V1ImageToVideoCreateBodyAssets;
|
|
40
44
|
end_seconds: number;
|
|
41
|
-
height
|
|
45
|
+
height?: number | undefined;
|
|
42
46
|
name?: string | undefined;
|
|
43
47
|
style: External$V1ImageToVideoCreateBodyStyle;
|
|
44
|
-
width
|
|
48
|
+
width?: number | undefined;
|
|
45
49
|
};
|
|
46
50
|
export declare const Schemas$V1ImageToVideoCreateBody: {
|
|
47
51
|
in: z.ZodType<V1ImageToVideoCreateBody, z.ZodTypeDef, unknown>;
|
|
@@ -45,10 +45,10 @@ const SchemaIn$V1ImageToVideoCreateBody = z
|
|
|
45
45
|
.object({
|
|
46
46
|
assets: v1_image_to_video_create_body_assets_1.Schemas$V1ImageToVideoCreateBodyAssets.in,
|
|
47
47
|
end_seconds: z.number(),
|
|
48
|
-
height: z.number().int(),
|
|
48
|
+
height: z.number().int().optional(),
|
|
49
49
|
name: z.string().optional(),
|
|
50
50
|
style: v1_image_to_video_create_body_style_1.Schemas$V1ImageToVideoCreateBodyStyle.in,
|
|
51
|
-
width: z.number().int(),
|
|
51
|
+
width: z.number().int().optional(),
|
|
52
52
|
})
|
|
53
53
|
.transform((obj) => {
|
|
54
54
|
return (0, core_1.zodTransform)(obj, {
|
|
@@ -68,10 +68,10 @@ const SchemaOut$V1ImageToVideoCreateBody = z
|
|
|
68
68
|
.object({
|
|
69
69
|
assets: v1_image_to_video_create_body_assets_1.Schemas$V1ImageToVideoCreateBodyAssets.out,
|
|
70
70
|
endSeconds: z.number(),
|
|
71
|
-
height: z.number().int(),
|
|
71
|
+
height: z.number().int().optional(),
|
|
72
72
|
name: z.string().optional(),
|
|
73
73
|
style: v1_image_to_video_create_body_style_1.Schemas$V1ImageToVideoCreateBodyStyle.out,
|
|
74
|
-
width: z.number().int(),
|
|
74
|
+
width: z.number().int().optional(),
|
|
75
75
|
})
|
|
76
76
|
.transform((obj) => {
|
|
77
77
|
return (0, core_1.zodTransform)(obj, {
|