magic-hour 0.66.0 → 0.68.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 +10 -0
- package/dist/environment.d.ts +1 -1
- package/dist/environment.js +1 -1
- package/dist/resources/v1/ai-image-upscaler/request-types.d.ts +3 -3
- package/dist/resources/v1/ai-image-upscaler/request-types.js +2 -2
- package/dist/resources/v1/ai-image-upscaler/resource-client.d.ts +1 -1
- package/dist/resources/v1/ai-image-upscaler/resource-client.js +1 -1
- package/dist/resources/v1/ai-video-editor/index.d.ts +2 -0
- package/dist/resources/v1/ai-video-editor/index.js +5 -0
- package/dist/resources/v1/ai-video-editor/request-types.d.ts +41 -0
- package/dist/resources/v1/ai-video-editor/request-types.js +85 -0
- package/dist/resources/v1/ai-video-editor/resource-client.d.ts +76 -0
- package/dist/resources/v1/ai-video-editor/resource-client.js +120 -0
- package/dist/resources/v1/body-swap/resource-client.d.ts +1 -1
- package/dist/resources/v1/body-swap/resource-client.js +1 -1
- package/dist/resources/v1/character-replace/index.d.ts +2 -0
- package/dist/resources/v1/character-replace/index.js +5 -0
- package/dist/resources/v1/character-replace/request-types.d.ts +49 -0
- package/dist/resources/v1/character-replace/request-types.js +89 -0
- package/dist/resources/v1/character-replace/resource-client.d.ts +88 -0
- package/dist/resources/v1/character-replace/resource-client.js +129 -0
- package/dist/resources/v1/files/upload-urls/resource-client.d.ts +2 -2
- package/dist/resources/v1/files/upload-urls/resource-client.js +2 -2
- package/dist/resources/v1/index.d.ts +2 -0
- package/dist/resources/v1/index.js +3 -1
- package/dist/resources/v1/resource-client.d.ts +6 -0
- package/dist/resources/v1/resource-client.js +12 -0
- package/dist/types/index.d.ts +12 -0
- package/dist/types/v1-ai-image-upscaler-create-body-style-enhancement-enum.d.ts +1 -1
- package/dist/types/v1-ai-image-upscaler-create-body-style-mode-enum.d.ts +2 -2
- package/dist/types/v1-ai-image-upscaler-create-body-style.d.ts +8 -5
- package/dist/types/v1-ai-image-upscaler-create-body-style.js +2 -2
- package/dist/types/v1-ai-image-upscaler-create-body.d.ts +3 -3
- package/dist/types/v1-ai-image-upscaler-create-body.js +2 -2
- package/dist/types/v1-ai-video-editor-create-body-assets.d.ts +27 -0
- package/dist/types/v1-ai-video-editor-create-body-assets.js +67 -0
- package/dist/types/v1-ai-video-editor-create-body-style.d.ts +22 -0
- package/dist/types/v1-ai-video-editor-create-body-style.js +67 -0
- package/dist/types/v1-ai-video-editor-create-body.d.ts +41 -0
- package/dist/types/v1-ai-video-editor-create-body.js +85 -0
- package/dist/types/v1-ai-video-editor-create-response.d.ts +36 -0
- package/dist/types/v1-ai-video-editor-create-response.js +75 -0
- package/dist/types/v1-body-swap-create-body-assets.d.ts +1 -1
- package/dist/types/v1-character-replace-create-body-assets.d.ts +37 -0
- package/dist/types/v1-character-replace-create-body-assets.js +71 -0
- package/dist/types/v1-character-replace-create-body-resolution-enum.d.ts +4 -0
- package/dist/types/v1-character-replace-create-body-resolution-enum.js +2 -0
- package/dist/types/v1-character-replace-create-body-style-mode-enum.d.ts +4 -0
- package/dist/types/v1-character-replace-create-body-style-mode-enum.js +2 -0
- package/dist/types/v1-character-replace-create-body-style-points-item.d.ts +32 -0
- package/dist/types/v1-character-replace-create-body-style-points-item.js +75 -0
- package/dist/types/v1-character-replace-create-body-style-selection-mode-enum.d.ts +4 -0
- package/dist/types/v1-character-replace-create-body-style-selection-mode-enum.js +2 -0
- package/dist/types/v1-character-replace-create-body-style.d.ts +33 -0
- package/dist/types/v1-character-replace-create-body-style.js +80 -0
- package/dist/types/v1-character-replace-create-body.d.ts +49 -0
- package/dist/types/v1-character-replace-create-body.js +89 -0
- package/dist/types/v1-character-replace-create-response.d.ts +36 -0
- package/dist/types/v1-character-replace-create-response.js +75 -0
- package/dist/types/v1-files-upload-urls-create-body-items-item.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,80 @@
|
|
|
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$V1CharacterReplaceCreateBodyStyle = void 0;
|
|
37
|
+
const make_api_request_js_1 = require("make-api-request-js");
|
|
38
|
+
const z = __importStar(require("zod"));
|
|
39
|
+
const v1_character_replace_create_body_style_points_item_1 = require("./v1-character-replace-create-body-style-points-item");
|
|
40
|
+
/**
|
|
41
|
+
* Takes network data, validates it, and transforms keys to match typescript object V1CharacterReplaceCreateBodyStyle
|
|
42
|
+
*/
|
|
43
|
+
const SchemaIn$V1CharacterReplaceCreateBodyStyle = z
|
|
44
|
+
.object({
|
|
45
|
+
mode: z.enum(["animate", "replace"]).optional(),
|
|
46
|
+
points: z
|
|
47
|
+
.array(v1_character_replace_create_body_style_points_item_1.Schemas$V1CharacterReplaceCreateBodyStylePointsItem.in)
|
|
48
|
+
.optional(),
|
|
49
|
+
selection_mode: z.enum(["auto", "point"]).optional(),
|
|
50
|
+
})
|
|
51
|
+
.transform((obj) => {
|
|
52
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
53
|
+
mode: "mode",
|
|
54
|
+
points: "points",
|
|
55
|
+
selection_mode: "selectionMode",
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
/**
|
|
59
|
+
* @internal
|
|
60
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$V1CharacterReplaceCreateBodyStyle
|
|
61
|
+
*/
|
|
62
|
+
const SchemaOut$V1CharacterReplaceCreateBodyStyle = z
|
|
63
|
+
.object({
|
|
64
|
+
mode: z.enum(["animate", "replace"]).optional(),
|
|
65
|
+
points: z
|
|
66
|
+
.array(v1_character_replace_create_body_style_points_item_1.Schemas$V1CharacterReplaceCreateBodyStylePointsItem.out)
|
|
67
|
+
.optional(),
|
|
68
|
+
selectionMode: z.enum(["auto", "point"]).optional(),
|
|
69
|
+
})
|
|
70
|
+
.transform((obj) => {
|
|
71
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
72
|
+
mode: "mode",
|
|
73
|
+
points: "points",
|
|
74
|
+
selectionMode: "selection_mode",
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
exports.Schemas$V1CharacterReplaceCreateBodyStyle = {
|
|
78
|
+
in: SchemaIn$V1CharacterReplaceCreateBodyStyle,
|
|
79
|
+
out: SchemaOut$V1CharacterReplaceCreateBodyStyle,
|
|
80
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { External$V1CharacterReplaceCreateBodyAssets, V1CharacterReplaceCreateBodyAssets } from "./v1-character-replace-create-body-assets";
|
|
3
|
+
import { External$V1CharacterReplaceCreateBodyStyle, V1CharacterReplaceCreateBodyStyle } from "./v1-character-replace-create-body-style";
|
|
4
|
+
/**
|
|
5
|
+
* V1CharacterReplaceCreateBody
|
|
6
|
+
*/
|
|
7
|
+
export type V1CharacterReplaceCreateBody = {
|
|
8
|
+
/**
|
|
9
|
+
* Source video and reference character image for the job.
|
|
10
|
+
*/
|
|
11
|
+
assets: V1CharacterReplaceCreateBodyAssets;
|
|
12
|
+
/**
|
|
13
|
+
* End time of your clip (seconds). Must be greater than start_seconds.
|
|
14
|
+
*/
|
|
15
|
+
endSeconds: number;
|
|
16
|
+
/**
|
|
17
|
+
* Give your video a custom name for easy identification.
|
|
18
|
+
*/
|
|
19
|
+
name?: string | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Output video resolution. Defaults to 480p, the lowest resolution available on your plan.
|
|
22
|
+
*/
|
|
23
|
+
resolution?: ("480p" | "720p") | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Start time of your clip (seconds). Must be ≥ 0.
|
|
26
|
+
*/
|
|
27
|
+
startSeconds?: number | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Optional style controls for replace vs animate mode and subject selection.
|
|
30
|
+
*/
|
|
31
|
+
style?: V1CharacterReplaceCreateBodyStyle | undefined;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* @internal
|
|
35
|
+
* V1CharacterReplaceCreateBody without any key transformation, this is what
|
|
36
|
+
* we expect to come in as network data
|
|
37
|
+
*/
|
|
38
|
+
export type External$V1CharacterReplaceCreateBody = {
|
|
39
|
+
assets: External$V1CharacterReplaceCreateBodyAssets;
|
|
40
|
+
end_seconds: number;
|
|
41
|
+
name?: string | undefined;
|
|
42
|
+
resolution?: ("480p" | "720p") | undefined;
|
|
43
|
+
start_seconds?: number | undefined;
|
|
44
|
+
style?: External$V1CharacterReplaceCreateBodyStyle | undefined;
|
|
45
|
+
};
|
|
46
|
+
export declare const Schemas$V1CharacterReplaceCreateBody: {
|
|
47
|
+
in: z.ZodType<V1CharacterReplaceCreateBody, z.ZodTypeDef, unknown>;
|
|
48
|
+
out: z.ZodType<External$V1CharacterReplaceCreateBody, z.ZodTypeDef, V1CharacterReplaceCreateBody>;
|
|
49
|
+
};
|
|
@@ -0,0 +1,89 @@
|
|
|
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$V1CharacterReplaceCreateBody = void 0;
|
|
37
|
+
const make_api_request_js_1 = require("make-api-request-js");
|
|
38
|
+
const z = __importStar(require("zod"));
|
|
39
|
+
const v1_character_replace_create_body_assets_1 = require("./v1-character-replace-create-body-assets");
|
|
40
|
+
const v1_character_replace_create_body_style_1 = require("./v1-character-replace-create-body-style");
|
|
41
|
+
/**
|
|
42
|
+
* Takes network data, validates it, and transforms keys to match typescript object V1CharacterReplaceCreateBody
|
|
43
|
+
*/
|
|
44
|
+
const SchemaIn$V1CharacterReplaceCreateBody = z
|
|
45
|
+
.object({
|
|
46
|
+
assets: v1_character_replace_create_body_assets_1.Schemas$V1CharacterReplaceCreateBodyAssets.in,
|
|
47
|
+
end_seconds: z.number(),
|
|
48
|
+
name: z.string().optional(),
|
|
49
|
+
resolution: z.enum(["480p", "720p"]).optional(),
|
|
50
|
+
start_seconds: z.number().optional(),
|
|
51
|
+
style: v1_character_replace_create_body_style_1.Schemas$V1CharacterReplaceCreateBodyStyle.in.optional(),
|
|
52
|
+
})
|
|
53
|
+
.transform((obj) => {
|
|
54
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
55
|
+
assets: "assets",
|
|
56
|
+
end_seconds: "endSeconds",
|
|
57
|
+
name: "name",
|
|
58
|
+
resolution: "resolution",
|
|
59
|
+
start_seconds: "startSeconds",
|
|
60
|
+
style: "style",
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
/**
|
|
64
|
+
* @internal
|
|
65
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$V1CharacterReplaceCreateBody
|
|
66
|
+
*/
|
|
67
|
+
const SchemaOut$V1CharacterReplaceCreateBody = z
|
|
68
|
+
.object({
|
|
69
|
+
assets: v1_character_replace_create_body_assets_1.Schemas$V1CharacterReplaceCreateBodyAssets.out,
|
|
70
|
+
endSeconds: z.number(),
|
|
71
|
+
name: z.string().optional(),
|
|
72
|
+
resolution: z.enum(["480p", "720p"]).optional(),
|
|
73
|
+
startSeconds: z.number().optional(),
|
|
74
|
+
style: v1_character_replace_create_body_style_1.Schemas$V1CharacterReplaceCreateBodyStyle.out.optional(),
|
|
75
|
+
})
|
|
76
|
+
.transform((obj) => {
|
|
77
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
78
|
+
assets: "assets",
|
|
79
|
+
endSeconds: "end_seconds",
|
|
80
|
+
name: "name",
|
|
81
|
+
resolution: "resolution",
|
|
82
|
+
startSeconds: "start_seconds",
|
|
83
|
+
style: "style",
|
|
84
|
+
});
|
|
85
|
+
});
|
|
86
|
+
exports.Schemas$V1CharacterReplaceCreateBody = {
|
|
87
|
+
in: SchemaIn$V1CharacterReplaceCreateBody,
|
|
88
|
+
out: SchemaOut$V1CharacterReplaceCreateBody,
|
|
89
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Success
|
|
4
|
+
*/
|
|
5
|
+
export type V1CharacterReplaceCreateResponse = {
|
|
6
|
+
/**
|
|
7
|
+
* The amount of credits deducted from your account to generate the video. If the status is not 'complete', this value is an estimate and may be adjusted upon completion based on the actual FPS of the output video.
|
|
8
|
+
*
|
|
9
|
+
* If video generation fails, credits will be refunded, and this field will be updated to include the refund.
|
|
10
|
+
*/
|
|
11
|
+
creditsCharged: number;
|
|
12
|
+
/**
|
|
13
|
+
* Deprecated: Previously represented the number of frames (original name of our credit system) used for video generation. Use 'credits_charged' instead.
|
|
14
|
+
*
|
|
15
|
+
* The amount of frames used to generate the video. If the status is not 'complete', the cost is an estimate and will be adjusted when the video completes.
|
|
16
|
+
*/
|
|
17
|
+
estimatedFrameCost: number;
|
|
18
|
+
/**
|
|
19
|
+
* Unique ID of the video. Use it with the [Get video Project API](https://docs.magichour.ai/api-reference/video-projects/get-video-details) to fetch status and downloads.
|
|
20
|
+
*/
|
|
21
|
+
id: string;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* @internal
|
|
25
|
+
* V1CharacterReplaceCreateResponse without any key transformation, this is what
|
|
26
|
+
* we expect to come in as network data
|
|
27
|
+
*/
|
|
28
|
+
export type External$V1CharacterReplaceCreateResponse = {
|
|
29
|
+
credits_charged: number;
|
|
30
|
+
estimated_frame_cost: number;
|
|
31
|
+
id: string;
|
|
32
|
+
};
|
|
33
|
+
export declare const Schemas$V1CharacterReplaceCreateResponse: {
|
|
34
|
+
in: z.ZodType<V1CharacterReplaceCreateResponse, z.ZodTypeDef, unknown>;
|
|
35
|
+
out: z.ZodType<External$V1CharacterReplaceCreateResponse, z.ZodTypeDef, V1CharacterReplaceCreateResponse>;
|
|
36
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
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$V1CharacterReplaceCreateResponse = void 0;
|
|
37
|
+
const make_api_request_js_1 = require("make-api-request-js");
|
|
38
|
+
const z = __importStar(require("zod"));
|
|
39
|
+
/**
|
|
40
|
+
* Takes network data, validates it, and transforms keys to match typescript object V1CharacterReplaceCreateResponse
|
|
41
|
+
*/
|
|
42
|
+
const SchemaIn$V1CharacterReplaceCreateResponse = z
|
|
43
|
+
.object({
|
|
44
|
+
credits_charged: z.number().int(),
|
|
45
|
+
estimated_frame_cost: z.number().int(),
|
|
46
|
+
id: z.string(),
|
|
47
|
+
})
|
|
48
|
+
.transform((obj) => {
|
|
49
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
50
|
+
credits_charged: "creditsCharged",
|
|
51
|
+
estimated_frame_cost: "estimatedFrameCost",
|
|
52
|
+
id: "id",
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
/**
|
|
56
|
+
* @internal
|
|
57
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$V1CharacterReplaceCreateResponse
|
|
58
|
+
*/
|
|
59
|
+
const SchemaOut$V1CharacterReplaceCreateResponse = z
|
|
60
|
+
.object({
|
|
61
|
+
creditsCharged: z.number().int(),
|
|
62
|
+
estimatedFrameCost: z.number().int(),
|
|
63
|
+
id: z.string(),
|
|
64
|
+
})
|
|
65
|
+
.transform((obj) => {
|
|
66
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
67
|
+
creditsCharged: "credits_charged",
|
|
68
|
+
estimatedFrameCost: "estimated_frame_cost",
|
|
69
|
+
id: "id",
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
exports.Schemas$V1CharacterReplaceCreateResponse = {
|
|
73
|
+
in: SchemaIn$V1CharacterReplaceCreateResponse,
|
|
74
|
+
out: SchemaOut$V1CharacterReplaceCreateResponse,
|
|
75
|
+
};
|
|
@@ -4,7 +4,7 @@ import * as z from "zod";
|
|
|
4
4
|
*/
|
|
5
5
|
export type V1FilesUploadUrlsCreateBodyItemsItem = {
|
|
6
6
|
/**
|
|
7
|
-
* The extension of the file to upload. Do not include the dot (.) before the extension. Possible extensions are mp4,m4v,mov,webm,mp3,wav,aac,flac,webm,m4a,opus,ogg,aiff,amr,png,jpg,jpeg,jfif,heic,heif,webp,avif,jp2,tiff,bmp,gif,webp,webm
|
|
7
|
+
* The extension of the file to upload. Do not include the dot (.) before the extension. Possible extensions are mp4,m4v,mov,webm,mp3,wav,aac,flac,webm,weba,m4a,opus,ogg,oga,aiff,amr,png,jpg,jpeg,jfif,heic,heif,webp,avif,jp2,tiff,tif,bmp,gif,webp,webm
|
|
8
8
|
*/
|
|
9
9
|
extension: string;
|
|
10
10
|
/**
|