magic-hour 0.77.0 → 0.78.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/environment.d.ts +1 -1
- package/dist/environment.js +1 -1
- package/dist/resources/v1/image-to-video/request-types.d.ts +7 -3
- package/dist/resources/v1/image-to-video/request-types.js +2 -0
- 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 +3 -0
- package/dist/resources/v1/resource-client.js +5 -0
- package/dist/resources/v1/saved-items/index.d.ts +2 -0
- package/dist/resources/v1/saved-items/index.js +5 -0
- package/dist/resources/v1/saved-items/request-types.d.ts +32 -0
- package/dist/resources/v1/saved-items/request-types.js +79 -0
- package/dist/resources/v1/saved-items/resource-client.d.ts +14 -0
- package/dist/resources/v1/saved-items/resource-client.js +84 -0
- package/dist/resources/v1/text-to-video/request-types.d.ts +8 -3
- package/dist/resources/v1/text-to-video/request-types.js +2 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/types/v1-audio-projects-get-response.d.ts +1 -1
- package/dist/types/v1-image-projects-get-response.d.ts +1 -1
- package/dist/types/v1-image-to-video-create-body-assets.d.ts +2 -1
- package/dist/types/v1-image-to-video-create-body-model-enum.d.ts +2 -1
- package/dist/types/v1-image-to-video-create-body-resolution-enum.d.ts +2 -1
- package/dist/types/v1-image-to-video-create-body.d.ts +7 -3
- package/dist/types/v1-image-to-video-create-body.js +2 -0
- package/dist/types/v1-saved-items-list-response-items-item-assets-item-media-kind-enum.d.ts +4 -0
- package/dist/types/v1-saved-items-list-response-items-item-assets-item-media-kind-enum.js +2 -0
- package/dist/types/v1-saved-items-list-response-items-item-assets-item.d.ts +42 -0
- package/dist/types/v1-saved-items-list-response-items-item-assets-item.js +83 -0
- package/dist/types/v1-saved-items-list-response-items-item-type-enum.d.ts +4 -0
- package/dist/types/v1-saved-items-list-response-items-item-type-enum.js +2 -0
- package/dist/types/v1-saved-items-list-response-items-item.d.ts +35 -0
- package/dist/types/v1-saved-items-list-response-items-item.js +80 -0
- package/dist/types/v1-saved-items-list-response.d.ts +25 -0
- package/dist/types/v1-saved-items-list-response.js +72 -0
- package/dist/types/v1-saved-items-list-type-enum.d.ts +4 -0
- package/dist/types/v1-saved-items-list-type-enum.js +2 -0
- package/dist/types/v1-text-to-video-create-body-aspect-ratio-enum.d.ts +1 -0
- package/dist/types/v1-text-to-video-create-body-model-enum.d.ts +2 -1
- package/dist/types/v1-text-to-video-create-body-resolution-enum.d.ts +2 -1
- package/dist/types/v1-text-to-video-create-body.d.ts +8 -3
- package/dist/types/v1-text-to-video-create-body.js +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -355,6 +355,10 @@ Valid values are: `none`, `error`, `warn`, `info`, `debug` (case insensitive). I
|
|
|
355
355
|
- [create](src/resources/v1/photo-colorizer/README.md#create) - Photo Colorizer
|
|
356
356
|
- [generate](src/resources/v1/photo-colorizer/README.md#generate) - Photo Colorizer Generate Workflow
|
|
357
357
|
|
|
358
|
+
### [v1.savedItems](src/resources/v1/saved-items/README.md)
|
|
359
|
+
|
|
360
|
+
- [list](src/resources/v1/saved-items/README.md#list) - List saved items
|
|
361
|
+
|
|
358
362
|
### [v1.textToVideo](src/resources/v1/text-to-video/README.md)
|
|
359
363
|
|
|
360
364
|
- [create](src/resources/v1/text-to-video/README.md#create) - Text-to-Video
|
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.82.0";
|
|
8
8
|
})(Environment || (exports.Environment = Environment = {}));
|
|
@@ -27,6 +27,7 @@ export type CreateRequest = {
|
|
|
27
27
|
* * **`veo3.1`**: Toggle-able: audio adds extra credits when enabled
|
|
28
28
|
* * **`veo3.1-lite`**: Toggle-able: audio adds extra credits when enabled
|
|
29
29
|
* * **`wan-2.2`**: Not supported
|
|
30
|
+
* * **`wan-3.0`**: Toggle-able: no additional credits for audio
|
|
30
31
|
*
|
|
31
32
|
*/
|
|
32
33
|
audio?: boolean | undefined;
|
|
@@ -47,6 +48,7 @@ export type CreateRequest = {
|
|
|
47
48
|
* * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56
|
|
48
49
|
* * **`veo3.1-lite`**: 4, 6, 8, 16, 24, 32, 40, 48, 56
|
|
49
50
|
* * **`wan-2.2`**: 3, 4, 5, 6, 7, 8, 9, 10, 15
|
|
51
|
+
* * **`wan-3.0`**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30
|
|
50
52
|
*
|
|
51
53
|
*/
|
|
52
54
|
endSeconds: number;
|
|
@@ -74,10 +76,11 @@ export type CreateRequest = {
|
|
|
74
76
|
* * `veo3.1`: Best for romantic interactions and expressive action, with realistic detail.
|
|
75
77
|
* * `veo3.1-lite`: Balanced realism and audio at a lower cost than Veo 3.1.
|
|
76
78
|
* * `wan-2.2`: Best for physical motion, action, and camera movement.
|
|
79
|
+
* * `wan-3.0`: High-quality video with native audio, long clips, and end-frame control.
|
|
77
80
|
*
|
|
78
81
|
* If you specify the deprecated model value that includes the `-audio` suffix, this will be the same as included `audio` as `true`.
|
|
79
82
|
*/
|
|
80
|
-
model?: ("default" | "gemini-omni-1.1" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-2.6" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "ltx-2.5" | "minimax-h3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2") | undefined;
|
|
83
|
+
model?: ("default" | "gemini-omni-1.1" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-2.6" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "ltx-2.5" | "minimax-h3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2" | "wan-3.0") | undefined;
|
|
81
84
|
/**
|
|
82
85
|
* Give your video a custom name for easy identification.
|
|
83
86
|
*/
|
|
@@ -92,13 +95,14 @@ export type CreateRequest = {
|
|
|
92
95
|
* * **`ltx-2.5`**: Supports 480p, 720p, 1080p.
|
|
93
96
|
* * **`minimax-h3`**: Supports 480p, 720p, 1080p.
|
|
94
97
|
* * **`seedance-1.5`**: Supports 480p, 720p, 1080p.
|
|
95
|
-
* * **`seedance-2.0`**: Supports 480p, 720p.
|
|
98
|
+
* * **`seedance-2.0`**: Supports 480p, 720p, 1080p, 4k.
|
|
96
99
|
* * **`seedance-2.0-mini`**: Supports 480p, 720p.
|
|
97
100
|
* * **`seedance-2.5`**: Supports 480p, 720p.
|
|
98
101
|
* * **`sora-2`**: Supports 720p.
|
|
99
102
|
* * **`veo3.1`**: Supports 720p, 1080p.
|
|
100
103
|
* * **`veo3.1-lite`**: Supports 720p, 1080p.
|
|
101
104
|
* * **`wan-2.2`**: Supports 480p, 720p, 1080p.
|
|
105
|
+
* * **`wan-3.0`**: Supports 480p, 720p, 1080p.
|
|
102
106
|
*
|
|
103
107
|
*/
|
|
104
108
|
resolution?: ("1080p" | "360p" | "480p" | "4k" | "720p") | undefined;
|
|
@@ -123,7 +127,7 @@ export type External$CreateRequest = {
|
|
|
123
127
|
audio?: boolean | undefined;
|
|
124
128
|
end_seconds: number;
|
|
125
129
|
height?: number | null | undefined;
|
|
126
|
-
model?: ("default" | "gemini-omni-1.1" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-2.6" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "ltx-2.5" | "minimax-h3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2") | undefined;
|
|
130
|
+
model?: ("default" | "gemini-omni-1.1" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-2.6" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "ltx-2.5" | "minimax-h3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2" | "wan-3.0") | undefined;
|
|
127
131
|
name?: string | undefined;
|
|
128
132
|
resolution?: ("1080p" | "360p" | "480p" | "4k" | "720p") | undefined;
|
|
129
133
|
style?: External$V1ImageToVideoCreateBodyStyle | undefined;
|
|
@@ -70,6 +70,7 @@ const SchemaIn$CreateRequest = z
|
|
|
70
70
|
"veo3.1-audio",
|
|
71
71
|
"veo3.1-lite",
|
|
72
72
|
"wan-2.2",
|
|
73
|
+
"wan-3.0",
|
|
73
74
|
])
|
|
74
75
|
.optional(),
|
|
75
76
|
name: z.string().optional(),
|
|
@@ -123,6 +124,7 @@ const SchemaOut$CreateRequest = z
|
|
|
123
124
|
"veo3.1-audio",
|
|
124
125
|
"veo3.1-lite",
|
|
125
126
|
"wan-2.2",
|
|
127
|
+
"wan-3.0",
|
|
126
128
|
])
|
|
127
129
|
.optional(),
|
|
128
130
|
name: z.string().optional(),
|
|
@@ -29,6 +29,7 @@ export * as imageToVideo from "./image-to-video";
|
|
|
29
29
|
export * as lipSync from "./lip-sync";
|
|
30
30
|
export * as photoColorizer from "./photo-colorizer";
|
|
31
31
|
export { V1Client } from "./resource-client";
|
|
32
|
+
export * as savedItems from "./saved-items";
|
|
32
33
|
export * as textToVideo from "./text-to-video";
|
|
33
34
|
export * as videoProjects from "./video-projects";
|
|
34
35
|
export * as videoToVideo from "./video-to-video";
|
|
@@ -33,7 +33,7 @@ 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.headSwap = exports.files = exports.faceSwapPhoto = exports.faceSwap = exports.faceDetection = exports.characterReplace = exports.bodySwap = exports.autoSubtitleGenerator = exports.audioToVideo = exports.audioProjects = exports.animation = exports.aiVoiceGenerator = exports.aiVoiceCloner = exports.aiVideoEditor = exports.aiTalkingPhoto = exports.aiQrCodeGenerator = exports.aiMemeGenerator = exports.aiImageUpscaler = exports.aiImageGenerator = exports.aiImageEditor = exports.aiHeadshotGenerator = exports.aiGifGenerator = exports.aiFaceEditor = exports.aiClothesChanger = exports.account = void 0;
|
|
36
|
+
exports.videoToVideo = exports.videoProjects = exports.textToVideo = exports.savedItems = exports.V1Client = exports.photoColorizer = exports.lipSync = exports.imageToVideo = exports.imageProjects = exports.imageBackgroundRemover = exports.headSwap = exports.files = exports.faceSwapPhoto = exports.faceSwap = exports.faceDetection = exports.characterReplace = exports.bodySwap = exports.autoSubtitleGenerator = exports.audioToVideo = exports.audioProjects = exports.animation = exports.aiVoiceGenerator = exports.aiVoiceCloner = exports.aiVideoEditor = exports.aiTalkingPhoto = exports.aiQrCodeGenerator = exports.aiMemeGenerator = exports.aiImageUpscaler = exports.aiImageGenerator = exports.aiImageEditor = exports.aiHeadshotGenerator = exports.aiGifGenerator = exports.aiFaceEditor = exports.aiClothesChanger = exports.account = void 0;
|
|
37
37
|
exports.account = __importStar(require("./account"));
|
|
38
38
|
exports.aiClothesChanger = __importStar(require("./ai-clothes-changer"));
|
|
39
39
|
exports.aiFaceEditor = __importStar(require("./ai-face-editor"));
|
|
@@ -66,6 +66,7 @@ exports.lipSync = __importStar(require("./lip-sync"));
|
|
|
66
66
|
exports.photoColorizer = __importStar(require("./photo-colorizer"));
|
|
67
67
|
var resource_client_1 = require("./resource-client");
|
|
68
68
|
Object.defineProperty(exports, "V1Client", { enumerable: true, get: function () { return resource_client_1.V1Client; } });
|
|
69
|
+
exports.savedItems = __importStar(require("./saved-items"));
|
|
69
70
|
exports.textToVideo = __importStar(require("./text-to-video"));
|
|
70
71
|
exports.videoProjects = __importStar(require("./video-projects"));
|
|
71
72
|
exports.videoToVideo = __importStar(require("./video-to-video"));
|
|
@@ -29,10 +29,12 @@ import { ImageProjectsClient } from "../../resources/v1/image-projects";
|
|
|
29
29
|
import { ImageToVideoClient } from "../../resources/v1/image-to-video";
|
|
30
30
|
import { LipSyncClient } from "../../resources/v1/lip-sync";
|
|
31
31
|
import { PhotoColorizerClient } from "../../resources/v1/photo-colorizer";
|
|
32
|
+
import { SavedItemsClient } from "../../resources/v1/saved-items";
|
|
32
33
|
import { TextToVideoClient } from "../../resources/v1/text-to-video";
|
|
33
34
|
import { VideoProjectsClient } from "../../resources/v1/video-projects";
|
|
34
35
|
import { VideoToVideoClient } from "../../resources/v1/video-to-video";
|
|
35
36
|
export declare class V1Client extends CoreResourceClient {
|
|
37
|
+
private _savedItemsLazy?;
|
|
36
38
|
private _accountLazy?;
|
|
37
39
|
private _characterReplaceLazy?;
|
|
38
40
|
private _aiVideoEditorLazy?;
|
|
@@ -100,4 +102,5 @@ export declare class V1Client extends CoreResourceClient {
|
|
|
100
102
|
get aiVideoEditor(): AiVideoEditorClient;
|
|
101
103
|
get characterReplace(): CharacterReplaceClient;
|
|
102
104
|
get account(): AccountClient;
|
|
105
|
+
get savedItems(): SavedItemsClient;
|
|
103
106
|
}
|
|
@@ -36,6 +36,7 @@ class V1Client extends make_api_request_js_1.CoreResourceClient {
|
|
|
36
36
|
this.imageToVideo;
|
|
37
37
|
this.lipSync;
|
|
38
38
|
this.photoColorizer;
|
|
39
|
+
this.savedItems;
|
|
39
40
|
this.textToVideo;
|
|
40
41
|
this.videoProjects;
|
|
41
42
|
this.videoToVideo;
|
|
@@ -199,5 +200,9 @@ class V1Client extends make_api_request_js_1.CoreResourceClient {
|
|
|
199
200
|
var _a;
|
|
200
201
|
return ((_a = this._accountLazy) !== null && _a !== void 0 ? _a : (this._accountLazy = new (require("./account").AccountClient)(this._client, this._opts)));
|
|
201
202
|
}
|
|
203
|
+
get savedItems() {
|
|
204
|
+
var _a;
|
|
205
|
+
return ((_a = this._savedItemsLazy) !== null && _a !== void 0 ? _a : (this._savedItemsLazy = new (require("./saved-items").SavedItemsClient)(this._client, this._opts)));
|
|
206
|
+
}
|
|
202
207
|
}
|
|
203
208
|
exports.V1Client = V1Client;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SavedItemsClient = void 0;
|
|
4
|
+
var resource_client_1 = require("./resource-client");
|
|
5
|
+
Object.defineProperty(exports, "SavedItemsClient", { enumerable: true, get: function () { return resource_client_1.SavedItemsClient; } });
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* ListRequest
|
|
4
|
+
*/
|
|
5
|
+
export type ListRequest = {
|
|
6
|
+
/**
|
|
7
|
+
* Opaque pagination cursor from the previous response's next_cursor.
|
|
8
|
+
*/
|
|
9
|
+
cursor?: string | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* Maximum number of saved items to return. Defaults to 20.
|
|
12
|
+
*/
|
|
13
|
+
limit?: number | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* Only return saved items of this type.
|
|
16
|
+
*/
|
|
17
|
+
type?: ("brand_kit" | "character" | "moodboard" | "reference" | "voice") | undefined;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
* ListRequest without any key transformation, this is what
|
|
22
|
+
* we expect to come in as network data
|
|
23
|
+
*/
|
|
24
|
+
export type External$ListRequest = {
|
|
25
|
+
cursor?: string | undefined;
|
|
26
|
+
limit?: number | undefined;
|
|
27
|
+
type?: ("brand_kit" | "character" | "moodboard" | "reference" | "voice") | undefined;
|
|
28
|
+
};
|
|
29
|
+
export declare const Schemas$ListRequest: {
|
|
30
|
+
in: z.ZodType<ListRequest, z.ZodTypeDef, unknown>;
|
|
31
|
+
out: z.ZodType<External$ListRequest, z.ZodTypeDef, ListRequest>;
|
|
32
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
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$ListRequest = 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 ListRequest
|
|
41
|
+
*/
|
|
42
|
+
const SchemaIn$ListRequest = z
|
|
43
|
+
.object({
|
|
44
|
+
cursor: z.string().optional(),
|
|
45
|
+
limit: z.number().int().optional(),
|
|
46
|
+
type: z
|
|
47
|
+
.enum(["brand_kit", "character", "moodboard", "reference", "voice"])
|
|
48
|
+
.optional(),
|
|
49
|
+
})
|
|
50
|
+
.transform((obj) => {
|
|
51
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
52
|
+
cursor: "cursor",
|
|
53
|
+
limit: "limit",
|
|
54
|
+
type: "type",
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
/**
|
|
58
|
+
* @internal
|
|
59
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$ListRequest
|
|
60
|
+
*/
|
|
61
|
+
const SchemaOut$ListRequest = z
|
|
62
|
+
.object({
|
|
63
|
+
cursor: z.string().optional(),
|
|
64
|
+
limit: z.number().int().optional(),
|
|
65
|
+
type: z
|
|
66
|
+
.enum(["brand_kit", "character", "moodboard", "reference", "voice"])
|
|
67
|
+
.optional(),
|
|
68
|
+
})
|
|
69
|
+
.transform((obj) => {
|
|
70
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
71
|
+
cursor: "cursor",
|
|
72
|
+
limit: "limit",
|
|
73
|
+
type: "type",
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
exports.Schemas$ListRequest = {
|
|
77
|
+
in: SchemaIn$ListRequest,
|
|
78
|
+
out: SchemaOut$ListRequest,
|
|
79
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ApiPromise, CoreClient, CoreResourceClient, RequestOptions, ResourceClientOptions } from "make-api-request-js";
|
|
2
|
+
import * as requests from "../../../resources/v1/saved-items/request-types";
|
|
3
|
+
import * as types from "../../../types";
|
|
4
|
+
export declare class SavedItemsClient extends CoreResourceClient {
|
|
5
|
+
constructor(coreClient: CoreClient, opts: ResourceClientOptions);
|
|
6
|
+
/**
|
|
7
|
+
* List saved items
|
|
8
|
+
*
|
|
9
|
+
* Returns active saved items owned by the authenticated account, newest first. Each item includes every saved asset with a durable file_path for reuse in compatible generation APIs and a temporary signed URL for previewing or downloading. Filter by type to find characters, references, voices, moodboards, or brand kits. To fetch the next page, pass the response's next_cursor as cursor.
|
|
10
|
+
*
|
|
11
|
+
* GET /v1/saved-items
|
|
12
|
+
*/
|
|
13
|
+
list(request?: requests.ListRequest, opts?: RequestOptions): ApiPromise<types.V1SavedItemsListResponse>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
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.SavedItemsClient = void 0;
|
|
37
|
+
const make_api_request_js_1 = require("make-api-request-js");
|
|
38
|
+
const z = __importStar(require("zod"));
|
|
39
|
+
const v1_saved_items_list_response_1 = require("../../../types/v1-saved-items-list-response");
|
|
40
|
+
class SavedItemsClient extends make_api_request_js_1.CoreResourceClient {
|
|
41
|
+
constructor(coreClient, opts) {
|
|
42
|
+
super(coreClient, opts);
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* List saved items
|
|
46
|
+
*
|
|
47
|
+
* Returns active saved items owned by the authenticated account, newest first. Each item includes every saved asset with a durable file_path for reuse in compatible generation APIs and a temporary signed URL for previewing or downloading. Filter by type to find characters, references, voices, moodboards, or brand kits. To fetch the next page, pass the response's next_cursor as cursor.
|
|
48
|
+
*
|
|
49
|
+
* GET /v1/saved-items
|
|
50
|
+
*/
|
|
51
|
+
list(request = {}, opts) {
|
|
52
|
+
return this._client.makeRequest({
|
|
53
|
+
method: "get",
|
|
54
|
+
path: "/v1/saved-items",
|
|
55
|
+
auth: ["bearerAuth"],
|
|
56
|
+
query: [
|
|
57
|
+
(0, make_api_request_js_1.encodeQueryParam)({
|
|
58
|
+
name: "cursor",
|
|
59
|
+
value: z.string().optional().parse(request.cursor),
|
|
60
|
+
style: "form",
|
|
61
|
+
explode: true,
|
|
62
|
+
}),
|
|
63
|
+
(0, make_api_request_js_1.encodeQueryParam)({
|
|
64
|
+
name: "limit",
|
|
65
|
+
value: z.number().int().optional().parse(request.limit),
|
|
66
|
+
style: "form",
|
|
67
|
+
explode: true,
|
|
68
|
+
}),
|
|
69
|
+
(0, make_api_request_js_1.encodeQueryParam)({
|
|
70
|
+
name: "type",
|
|
71
|
+
value: z
|
|
72
|
+
.enum(["brand_kit", "character", "moodboard", "reference", "voice"])
|
|
73
|
+
.optional()
|
|
74
|
+
.parse(request.type),
|
|
75
|
+
style: "form",
|
|
76
|
+
explode: true,
|
|
77
|
+
}),
|
|
78
|
+
],
|
|
79
|
+
responseSchema: v1_saved_items_list_response_1.Schemas$V1SavedItemsListResponse.in,
|
|
80
|
+
opts,
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
exports.SavedItemsClient = SavedItemsClient;
|
|
@@ -21,6 +21,7 @@ export type CreateRequest = {
|
|
|
21
21
|
* * **`veo3.1`**: Supports 9:16, 16:9.
|
|
22
22
|
* * **`veo3.1-lite`**: Supports 9:16, 16:9.
|
|
23
23
|
* * **`wan-2.2`**: Supports 9:16, 16:9, 1:1.
|
|
24
|
+
* * **`wan-3.0`**: Supports 16:9, 9:16, 1:1.
|
|
24
25
|
*
|
|
25
26
|
*/
|
|
26
27
|
aspectRatio?: ("16:9" | "1:1" | "9:16") | undefined;
|
|
@@ -42,6 +43,7 @@ export type CreateRequest = {
|
|
|
42
43
|
* * **`veo3.1`**: Toggle-able: audio adds extra credits when enabled
|
|
43
44
|
* * **`veo3.1-lite`**: Toggle-able: audio adds extra credits when enabled
|
|
44
45
|
* * **`wan-2.2`**: Not supported
|
|
46
|
+
* * **`wan-3.0`**: Toggle-able: no additional credits for audio
|
|
45
47
|
*
|
|
46
48
|
*/
|
|
47
49
|
audio?: boolean | undefined;
|
|
@@ -62,6 +64,7 @@ export type CreateRequest = {
|
|
|
62
64
|
* * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56
|
|
63
65
|
* * **`veo3.1-lite`**: 4, 6, 8, 16, 24, 32, 40, 48, 56
|
|
64
66
|
* * **`wan-2.2`**: 3, 4, 5, 6, 7, 8, 9, 10, 15
|
|
67
|
+
* * **`wan-3.0`**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30
|
|
65
68
|
*
|
|
66
69
|
*/
|
|
67
70
|
endSeconds: number;
|
|
@@ -83,10 +86,11 @@ export type CreateRequest = {
|
|
|
83
86
|
* * `veo3.1`: Best for romantic interactions and expressive action, with realistic detail.
|
|
84
87
|
* * `veo3.1-lite`: Balanced realism and audio at a lower cost than Veo 3.1.
|
|
85
88
|
* * `wan-2.2`: Best for physical motion, action, and camera movement.
|
|
89
|
+
* * `wan-3.0`: High-quality video with native audio, long clips, and end-frame control.
|
|
86
90
|
*
|
|
87
91
|
* If you specify the deprecated model value that includes the `-audio` suffix, this will be the same as included `audio` as `true`.
|
|
88
92
|
*/
|
|
89
|
-
model?: ("default" | "gemini-omni-1.1" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-2.6" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "ltx-2.5" | "minimax-h3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2") | undefined;
|
|
93
|
+
model?: ("default" | "gemini-omni-1.1" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-2.6" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "ltx-2.5" | "minimax-h3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2" | "wan-3.0") | undefined;
|
|
90
94
|
/**
|
|
91
95
|
* Give your video a custom name for easy identification.
|
|
92
96
|
*/
|
|
@@ -105,13 +109,14 @@ export type CreateRequest = {
|
|
|
105
109
|
* * **`ltx-2.5`**: Supports 480p, 720p, 1080p.
|
|
106
110
|
* * **`minimax-h3`**: Supports 480p, 720p, 1080p.
|
|
107
111
|
* * **`seedance-1.5`**: Supports 480p, 720p, 1080p.
|
|
108
|
-
* * **`seedance-2.0`**: Supports 480p, 720p.
|
|
112
|
+
* * **`seedance-2.0`**: Supports 480p, 720p, 1080p, 4k.
|
|
109
113
|
* * **`seedance-2.0-mini`**: Supports 480p, 720p.
|
|
110
114
|
* * **`seedance-2.5`**: Supports 480p, 720p.
|
|
111
115
|
* * **`sora-2`**: Supports 720p.
|
|
112
116
|
* * **`veo3.1`**: Supports 720p, 1080p.
|
|
113
117
|
* * **`veo3.1-lite`**: Supports 720p, 1080p.
|
|
114
118
|
* * **`wan-2.2`**: Supports 480p, 720p, 1080p.
|
|
119
|
+
* * **`wan-3.0`**: Supports 480p, 720p, 1080p.
|
|
115
120
|
*
|
|
116
121
|
*/
|
|
117
122
|
resolution?: ("1080p" | "360p" | "480p" | "4k" | "720p") | undefined;
|
|
@@ -126,7 +131,7 @@ export type External$CreateRequest = {
|
|
|
126
131
|
aspect_ratio?: ("16:9" | "1:1" | "9:16") | undefined;
|
|
127
132
|
audio?: boolean | undefined;
|
|
128
133
|
end_seconds: number;
|
|
129
|
-
model?: ("default" | "gemini-omni-1.1" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-2.6" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "ltx-2.5" | "minimax-h3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2") | undefined;
|
|
134
|
+
model?: ("default" | "gemini-omni-1.1" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-2.6" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "ltx-2.5" | "minimax-h3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2" | "wan-3.0") | undefined;
|
|
130
135
|
name?: string | undefined;
|
|
131
136
|
orientation?: ("landscape" | "portrait" | "square") | undefined;
|
|
132
137
|
resolution?: ("1080p" | "360p" | "480p" | "4k" | "720p") | undefined;
|
|
@@ -68,6 +68,7 @@ const SchemaIn$CreateRequest = z
|
|
|
68
68
|
"veo3.1-audio",
|
|
69
69
|
"veo3.1-lite",
|
|
70
70
|
"wan-2.2",
|
|
71
|
+
"wan-3.0",
|
|
71
72
|
])
|
|
72
73
|
.optional(),
|
|
73
74
|
name: z.string().optional(),
|
|
@@ -119,6 +120,7 @@ const SchemaOut$CreateRequest = z
|
|
|
119
120
|
"veo3.1-audio",
|
|
120
121
|
"veo3.1-lite",
|
|
121
122
|
"wan-2.2",
|
|
123
|
+
"wan-3.0",
|
|
122
124
|
])
|
|
123
125
|
.optional(),
|
|
124
126
|
name: z.string().optional(),
|
package/dist/types/index.d.ts
CHANGED
|
@@ -155,6 +155,12 @@ export { V1LipSyncCreateResponse } from "./v1-lip-sync-create-response";
|
|
|
155
155
|
export { V1PhotoColorizerCreateBody } from "./v1-photo-colorizer-create-body";
|
|
156
156
|
export { V1PhotoColorizerCreateBodyAssets } from "./v1-photo-colorizer-create-body-assets";
|
|
157
157
|
export { V1PhotoColorizerCreateResponse } from "./v1-photo-colorizer-create-response";
|
|
158
|
+
export { V1SavedItemsListResponse } from "./v1-saved-items-list-response";
|
|
159
|
+
export { V1SavedItemsListResponseItemsItem } from "./v1-saved-items-list-response-items-item";
|
|
160
|
+
export { V1SavedItemsListResponseItemsItemAssetsItem } from "./v1-saved-items-list-response-items-item-assets-item";
|
|
161
|
+
export { V1SavedItemsListResponseItemsItemAssetsItemMediaKindEnum } from "./v1-saved-items-list-response-items-item-assets-item-media-kind-enum";
|
|
162
|
+
export { V1SavedItemsListResponseItemsItemTypeEnum } from "./v1-saved-items-list-response-items-item-type-enum";
|
|
163
|
+
export { V1SavedItemsListTypeEnum } from "./v1-saved-items-list-type-enum";
|
|
158
164
|
export { V1TextToVideoCreateBody } from "./v1-text-to-video-create-body";
|
|
159
165
|
export { V1TextToVideoCreateBodyAspectRatioEnum } from "./v1-text-to-video-create-body-aspect-ratio-enum";
|
|
160
166
|
export { V1TextToVideoCreateBodyModelEnum } from "./v1-text-to-video-create-body-model-enum";
|
|
@@ -43,7 +43,7 @@ export type V1AudioProjectsGetResponse = {
|
|
|
43
43
|
*/
|
|
44
44
|
status: "canceled" | "complete" | "draft" | "error" | "queued" | "rendering";
|
|
45
45
|
/**
|
|
46
|
-
* The type of the audio project. Possible values are AUDIO_TRANSLATOR, VOICE_GENERATOR, VOICE_CHANGER, VOICE_CLONER, VIDEO_TO_AUDIO, MUSIC_GENERATOR
|
|
46
|
+
* The type of the audio project. Possible values are AUDIO_TRANSLATOR, VOICE_GENERATOR, VOICE_CHANGER, VOICE_CLONER, VIDEO_TO_AUDIO, MUSIC_GENERATOR, SOUND_EFFECT_GENERATOR
|
|
47
47
|
*/
|
|
48
48
|
type: string;
|
|
49
49
|
};
|
|
@@ -51,7 +51,7 @@ export type V1ImageProjectsGetResponse = {
|
|
|
51
51
|
*/
|
|
52
52
|
totalFrameCost: number;
|
|
53
53
|
/**
|
|
54
|
-
* The type of the image project. Possible values are FACE_EDITOR, AI_IMAGE_EDITOR, AI_SELFIE, AI_HEADSHOT, AI_INFLUENCER, AI_IMAGE, AI_MEME, CLOTHES_CHANGER, BACKGROUND_REMOVER, FACE_SWAP, IMAGE_UPSCALER, IMAGE_ENHANCER, AI_GIF, QR_CODE, PHOTO_EDITOR, PHOTO_COLORIZER, IMAGE_COLOR_GRADER, HEAD_SWAP, BODY_SWAP, STORYBOARD, IMAGE_EXPANDER
|
|
54
|
+
* The type of the image project. Possible values are FACE_EDITOR, AI_IMAGE_EDITOR, GENERATIVE_FILL, AI_SELFIE, AI_HEADSHOT, AI_INFLUENCER, AI_IMAGE, AI_MEME, CLOTHES_CHANGER, BACKGROUND_REMOVER, FACE_SWAP, IMAGE_UPSCALER, IMAGE_ENHANCER, AI_GIF, QR_CODE, PHOTO_EDITOR, PHOTO_COLORIZER, IMAGE_COLOR_GRADER, HEAD_SWAP, BODY_SWAP, STORYBOARD, IMAGE_EXPANDER
|
|
55
55
|
*/
|
|
56
56
|
type: string;
|
|
57
57
|
};
|
|
@@ -13,13 +13,14 @@ export type V1ImageToVideoCreateBodyAssets = {
|
|
|
13
13
|
* * **`ltx-2.5`**: Supports 480p, 720p, 1080p.
|
|
14
14
|
* * **`minimax-h3`**: Not supported
|
|
15
15
|
* * **`seedance-1.5`**: Supports 480p, 720p, 1080p.
|
|
16
|
-
* * **`seedance-2.0`**: Supports 480p, 720p.
|
|
16
|
+
* * **`seedance-2.0`**: Supports 480p, 720p, 1080p, 4k.
|
|
17
17
|
* * **`seedance-2.0-mini`**: Supports 480p, 720p.
|
|
18
18
|
* * **`seedance-2.5`**: Supports 480p, 720p.
|
|
19
19
|
* * **`sora-2`**: Not supported
|
|
20
20
|
* * **`veo3.1`**: Supports 720p, 1080p. Requires a duration of 8 seconds or less.
|
|
21
21
|
* * **`veo3.1-lite`**: Supports 720p, 1080p. Requires a duration of 8 seconds or less.
|
|
22
22
|
* * **`wan-2.2`**: Not supported
|
|
23
|
+
* * **`wan-3.0`**: Supports 480p, 720p, 1080p.
|
|
23
24
|
*
|
|
24
25
|
*/
|
|
25
26
|
endImageFilePath?: string | undefined;
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
* * `veo3.1`: Best for romantic interactions and expressive action, with realistic detail.
|
|
17
17
|
* * `veo3.1-lite`: Balanced realism and audio at a lower cost than Veo 3.1.
|
|
18
18
|
* * `wan-2.2`: Best for physical motion, action, and camera movement.
|
|
19
|
+
* * `wan-3.0`: High-quality video with native audio, long clips, and end-frame control.
|
|
19
20
|
*
|
|
20
21
|
* If you specify the deprecated model value that includes the `-audio` suffix, this will be the same as included `audio` as `true`.
|
|
21
22
|
*/
|
|
22
|
-
export type V1ImageToVideoCreateBodyModelEnum = "default" | "gemini-omni-1.1" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-2.6" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "ltx-2.5" | "minimax-h3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2";
|
|
23
|
+
export type V1ImageToVideoCreateBodyModelEnum = "default" | "gemini-omni-1.1" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-2.6" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "ltx-2.5" | "minimax-h3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2" | "wan-3.0";
|
|
@@ -8,13 +8,14 @@
|
|
|
8
8
|
* * **`ltx-2.5`**: Supports 480p, 720p, 1080p.
|
|
9
9
|
* * **`minimax-h3`**: Supports 480p, 720p, 1080p.
|
|
10
10
|
* * **`seedance-1.5`**: Supports 480p, 720p, 1080p.
|
|
11
|
-
* * **`seedance-2.0`**: Supports 480p, 720p.
|
|
11
|
+
* * **`seedance-2.0`**: Supports 480p, 720p, 1080p, 4k.
|
|
12
12
|
* * **`seedance-2.0-mini`**: Supports 480p, 720p.
|
|
13
13
|
* * **`seedance-2.5`**: Supports 480p, 720p.
|
|
14
14
|
* * **`sora-2`**: Supports 720p.
|
|
15
15
|
* * **`veo3.1`**: Supports 720p, 1080p.
|
|
16
16
|
* * **`veo3.1-lite`**: Supports 720p, 1080p.
|
|
17
17
|
* * **`wan-2.2`**: Supports 480p, 720p, 1080p.
|
|
18
|
+
* * **`wan-3.0`**: Supports 480p, 720p, 1080p.
|
|
18
19
|
*
|
|
19
20
|
*/
|
|
20
21
|
export type V1ImageToVideoCreateBodyResolutionEnum = "1080p" | "360p" | "480p" | "4k" | "720p";
|
|
@@ -27,6 +27,7 @@ export type V1ImageToVideoCreateBody = {
|
|
|
27
27
|
* * **`veo3.1`**: Toggle-able: audio adds extra credits when enabled
|
|
28
28
|
* * **`veo3.1-lite`**: Toggle-able: audio adds extra credits when enabled
|
|
29
29
|
* * **`wan-2.2`**: Not supported
|
|
30
|
+
* * **`wan-3.0`**: Toggle-able: no additional credits for audio
|
|
30
31
|
*
|
|
31
32
|
*/
|
|
32
33
|
audio?: boolean | undefined;
|
|
@@ -47,6 +48,7 @@ export type V1ImageToVideoCreateBody = {
|
|
|
47
48
|
* * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56
|
|
48
49
|
* * **`veo3.1-lite`**: 4, 6, 8, 16, 24, 32, 40, 48, 56
|
|
49
50
|
* * **`wan-2.2`**: 3, 4, 5, 6, 7, 8, 9, 10, 15
|
|
51
|
+
* * **`wan-3.0`**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30
|
|
50
52
|
*
|
|
51
53
|
*/
|
|
52
54
|
endSeconds: number;
|
|
@@ -74,10 +76,11 @@ export type V1ImageToVideoCreateBody = {
|
|
|
74
76
|
* * `veo3.1`: Best for romantic interactions and expressive action, with realistic detail.
|
|
75
77
|
* * `veo3.1-lite`: Balanced realism and audio at a lower cost than Veo 3.1.
|
|
76
78
|
* * `wan-2.2`: Best for physical motion, action, and camera movement.
|
|
79
|
+
* * `wan-3.0`: High-quality video with native audio, long clips, and end-frame control.
|
|
77
80
|
*
|
|
78
81
|
* If you specify the deprecated model value that includes the `-audio` suffix, this will be the same as included `audio` as `true`.
|
|
79
82
|
*/
|
|
80
|
-
model?: ("default" | "gemini-omni-1.1" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-2.6" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "ltx-2.5" | "minimax-h3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2") | undefined;
|
|
83
|
+
model?: ("default" | "gemini-omni-1.1" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-2.6" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "ltx-2.5" | "minimax-h3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2" | "wan-3.0") | undefined;
|
|
81
84
|
/**
|
|
82
85
|
* Give your video a custom name for easy identification.
|
|
83
86
|
*/
|
|
@@ -92,13 +95,14 @@ export type V1ImageToVideoCreateBody = {
|
|
|
92
95
|
* * **`ltx-2.5`**: Supports 480p, 720p, 1080p.
|
|
93
96
|
* * **`minimax-h3`**: Supports 480p, 720p, 1080p.
|
|
94
97
|
* * **`seedance-1.5`**: Supports 480p, 720p, 1080p.
|
|
95
|
-
* * **`seedance-2.0`**: Supports 480p, 720p.
|
|
98
|
+
* * **`seedance-2.0`**: Supports 480p, 720p, 1080p, 4k.
|
|
96
99
|
* * **`seedance-2.0-mini`**: Supports 480p, 720p.
|
|
97
100
|
* * **`seedance-2.5`**: Supports 480p, 720p.
|
|
98
101
|
* * **`sora-2`**: Supports 720p.
|
|
99
102
|
* * **`veo3.1`**: Supports 720p, 1080p.
|
|
100
103
|
* * **`veo3.1-lite`**: Supports 720p, 1080p.
|
|
101
104
|
* * **`wan-2.2`**: Supports 480p, 720p, 1080p.
|
|
105
|
+
* * **`wan-3.0`**: Supports 480p, 720p, 1080p.
|
|
102
106
|
*
|
|
103
107
|
*/
|
|
104
108
|
resolution?: ("1080p" | "360p" | "480p" | "4k" | "720p") | undefined;
|
|
@@ -123,7 +127,7 @@ export type External$V1ImageToVideoCreateBody = {
|
|
|
123
127
|
audio?: boolean | undefined;
|
|
124
128
|
end_seconds: number;
|
|
125
129
|
height?: number | null | undefined;
|
|
126
|
-
model?: ("default" | "gemini-omni-1.1" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-2.6" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "ltx-2.5" | "minimax-h3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2") | undefined;
|
|
130
|
+
model?: ("default" | "gemini-omni-1.1" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-2.6" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "ltx-2.5" | "minimax-h3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2" | "wan-3.0") | undefined;
|
|
127
131
|
name?: string | undefined;
|
|
128
132
|
resolution?: ("1080p" | "360p" | "480p" | "4k" | "720p") | undefined;
|
|
129
133
|
style?: External$V1ImageToVideoCreateBodyStyle | undefined;
|
|
@@ -70,6 +70,7 @@ const SchemaIn$V1ImageToVideoCreateBody = z
|
|
|
70
70
|
"veo3.1-audio",
|
|
71
71
|
"veo3.1-lite",
|
|
72
72
|
"wan-2.2",
|
|
73
|
+
"wan-3.0",
|
|
73
74
|
])
|
|
74
75
|
.optional(),
|
|
75
76
|
name: z.string().optional(),
|
|
@@ -123,6 +124,7 @@ const SchemaOut$V1ImageToVideoCreateBody = z
|
|
|
123
124
|
"veo3.1-audio",
|
|
124
125
|
"veo3.1-lite",
|
|
125
126
|
"wan-2.2",
|
|
127
|
+
"wan-3.0",
|
|
126
128
|
])
|
|
127
129
|
.optional(),
|
|
128
130
|
name: z.string().optional(),
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* V1SavedItemsListResponseItemsItemAssetsItem
|
|
4
|
+
*/
|
|
5
|
+
export type V1SavedItemsListResponseItemsItemAssetsItem = {
|
|
6
|
+
/**
|
|
7
|
+
* Durable asset path. Pass it to a compatible API asset field without uploading it again.
|
|
8
|
+
*/
|
|
9
|
+
filePath: string;
|
|
10
|
+
/**
|
|
11
|
+
* Whether this asset is the saved item's primary asset.
|
|
12
|
+
*/
|
|
13
|
+
isPrimary: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Media type of the asset.
|
|
16
|
+
*/
|
|
17
|
+
mediaKind: "AUDIO" | "IMAGE" | "VIDEO";
|
|
18
|
+
/**
|
|
19
|
+
* Signed URL for previewing or downloading the asset. Expires after 24 hours.
|
|
20
|
+
*/
|
|
21
|
+
url: string;
|
|
22
|
+
/**
|
|
23
|
+
* When the signed URL expires. The saved asset and file_path do not expire.
|
|
24
|
+
*/
|
|
25
|
+
urlExpiresAt: string;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* @internal
|
|
29
|
+
* V1SavedItemsListResponseItemsItemAssetsItem without any key transformation, this is what
|
|
30
|
+
* we expect to come in as network data
|
|
31
|
+
*/
|
|
32
|
+
export type External$V1SavedItemsListResponseItemsItemAssetsItem = {
|
|
33
|
+
file_path: string;
|
|
34
|
+
is_primary: boolean;
|
|
35
|
+
media_kind: "AUDIO" | "IMAGE" | "VIDEO";
|
|
36
|
+
url: string;
|
|
37
|
+
url_expires_at: string;
|
|
38
|
+
};
|
|
39
|
+
export declare const Schemas$V1SavedItemsListResponseItemsItemAssetsItem: {
|
|
40
|
+
in: z.ZodType<V1SavedItemsListResponseItemsItemAssetsItem, z.ZodTypeDef, unknown>;
|
|
41
|
+
out: z.ZodType<External$V1SavedItemsListResponseItemsItemAssetsItem, z.ZodTypeDef, V1SavedItemsListResponseItemsItemAssetsItem>;
|
|
42
|
+
};
|
|
@@ -0,0 +1,83 @@
|
|
|
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$V1SavedItemsListResponseItemsItemAssetsItem = 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 V1SavedItemsListResponseItemsItemAssetsItem
|
|
41
|
+
*/
|
|
42
|
+
const SchemaIn$V1SavedItemsListResponseItemsItemAssetsItem = z
|
|
43
|
+
.object({
|
|
44
|
+
file_path: z.string(),
|
|
45
|
+
is_primary: z.boolean(),
|
|
46
|
+
media_kind: z.enum(["AUDIO", "IMAGE", "VIDEO"]),
|
|
47
|
+
url: z.string(),
|
|
48
|
+
url_expires_at: z.string(),
|
|
49
|
+
})
|
|
50
|
+
.transform((obj) => {
|
|
51
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
52
|
+
file_path: "filePath",
|
|
53
|
+
is_primary: "isPrimary",
|
|
54
|
+
media_kind: "mediaKind",
|
|
55
|
+
url: "url",
|
|
56
|
+
url_expires_at: "urlExpiresAt",
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
/**
|
|
60
|
+
* @internal
|
|
61
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$V1SavedItemsListResponseItemsItemAssetsItem
|
|
62
|
+
*/
|
|
63
|
+
const SchemaOut$V1SavedItemsListResponseItemsItemAssetsItem = z
|
|
64
|
+
.object({
|
|
65
|
+
filePath: z.string(),
|
|
66
|
+
isPrimary: z.boolean(),
|
|
67
|
+
mediaKind: z.enum(["AUDIO", "IMAGE", "VIDEO"]),
|
|
68
|
+
url: z.string(),
|
|
69
|
+
urlExpiresAt: z.string(),
|
|
70
|
+
})
|
|
71
|
+
.transform((obj) => {
|
|
72
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
73
|
+
filePath: "file_path",
|
|
74
|
+
isPrimary: "is_primary",
|
|
75
|
+
mediaKind: "media_kind",
|
|
76
|
+
url: "url",
|
|
77
|
+
urlExpiresAt: "url_expires_at",
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
exports.Schemas$V1SavedItemsListResponseItemsItemAssetsItem = {
|
|
81
|
+
in: SchemaIn$V1SavedItemsListResponseItemsItemAssetsItem,
|
|
82
|
+
out: SchemaOut$V1SavedItemsListResponseItemsItemAssetsItem,
|
|
83
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { External$V1SavedItemsListResponseItemsItemAssetsItem, V1SavedItemsListResponseItemsItemAssetsItem } from "./v1-saved-items-list-response-items-item-assets-item";
|
|
3
|
+
/**
|
|
4
|
+
* V1SavedItemsListResponseItemsItem
|
|
5
|
+
*/
|
|
6
|
+
export type V1SavedItemsListResponseItemsItem = {
|
|
7
|
+
assets: V1SavedItemsListResponseItemsItemAssetsItem[];
|
|
8
|
+
/**
|
|
9
|
+
* Unique ID of the saved item.
|
|
10
|
+
*/
|
|
11
|
+
id: string;
|
|
12
|
+
/**
|
|
13
|
+
* User-provided name of the saved item.
|
|
14
|
+
*/
|
|
15
|
+
name: string | null;
|
|
16
|
+
/**
|
|
17
|
+
* Saved item type.
|
|
18
|
+
*/
|
|
19
|
+
type: "brand_kit" | "character" | "moodboard" | "reference" | "voice";
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* @internal
|
|
23
|
+
* V1SavedItemsListResponseItemsItem without any key transformation, this is what
|
|
24
|
+
* we expect to come in as network data
|
|
25
|
+
*/
|
|
26
|
+
export type External$V1SavedItemsListResponseItemsItem = {
|
|
27
|
+
assets: External$V1SavedItemsListResponseItemsItemAssetsItem[];
|
|
28
|
+
id: string;
|
|
29
|
+
name: string | null;
|
|
30
|
+
type: "brand_kit" | "character" | "moodboard" | "reference" | "voice";
|
|
31
|
+
};
|
|
32
|
+
export declare const Schemas$V1SavedItemsListResponseItemsItem: {
|
|
33
|
+
in: z.ZodType<V1SavedItemsListResponseItemsItem, z.ZodTypeDef, unknown>;
|
|
34
|
+
out: z.ZodType<External$V1SavedItemsListResponseItemsItem, z.ZodTypeDef, V1SavedItemsListResponseItemsItem>;
|
|
35
|
+
};
|
|
@@ -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$V1SavedItemsListResponseItemsItem = void 0;
|
|
37
|
+
const make_api_request_js_1 = require("make-api-request-js");
|
|
38
|
+
const z = __importStar(require("zod"));
|
|
39
|
+
const v1_saved_items_list_response_items_item_assets_item_1 = require("./v1-saved-items-list-response-items-item-assets-item");
|
|
40
|
+
/**
|
|
41
|
+
* Takes network data, validates it, and transforms keys to match typescript object V1SavedItemsListResponseItemsItem
|
|
42
|
+
*/
|
|
43
|
+
const SchemaIn$V1SavedItemsListResponseItemsItem = z
|
|
44
|
+
.object({
|
|
45
|
+
assets: z.array(v1_saved_items_list_response_items_item_assets_item_1.Schemas$V1SavedItemsListResponseItemsItemAssetsItem.in),
|
|
46
|
+
id: z.string(),
|
|
47
|
+
name: z.string().nullable(),
|
|
48
|
+
type: z.enum(["brand_kit", "character", "moodboard", "reference", "voice"]),
|
|
49
|
+
})
|
|
50
|
+
.transform((obj) => {
|
|
51
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
52
|
+
assets: "assets",
|
|
53
|
+
id: "id",
|
|
54
|
+
name: "name",
|
|
55
|
+
type: "type",
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
/**
|
|
59
|
+
* @internal
|
|
60
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$V1SavedItemsListResponseItemsItem
|
|
61
|
+
*/
|
|
62
|
+
const SchemaOut$V1SavedItemsListResponseItemsItem = z
|
|
63
|
+
.object({
|
|
64
|
+
assets: z.array(v1_saved_items_list_response_items_item_assets_item_1.Schemas$V1SavedItemsListResponseItemsItemAssetsItem.out),
|
|
65
|
+
id: z.string(),
|
|
66
|
+
name: z.string().nullable(),
|
|
67
|
+
type: z.enum(["brand_kit", "character", "moodboard", "reference", "voice"]),
|
|
68
|
+
})
|
|
69
|
+
.transform((obj) => {
|
|
70
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
71
|
+
assets: "assets",
|
|
72
|
+
id: "id",
|
|
73
|
+
name: "name",
|
|
74
|
+
type: "type",
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
exports.Schemas$V1SavedItemsListResponseItemsItem = {
|
|
78
|
+
in: SchemaIn$V1SavedItemsListResponseItemsItem,
|
|
79
|
+
out: SchemaOut$V1SavedItemsListResponseItemsItem,
|
|
80
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { External$V1SavedItemsListResponseItemsItem, V1SavedItemsListResponseItemsItem } from "./v1-saved-items-list-response-items-item";
|
|
3
|
+
/**
|
|
4
|
+
* V1SavedItemsListResponse
|
|
5
|
+
*/
|
|
6
|
+
export type V1SavedItemsListResponse = {
|
|
7
|
+
items: V1SavedItemsListResponseItemsItem[];
|
|
8
|
+
/**
|
|
9
|
+
* Cursor for the next page, or null when there are no more saved items.
|
|
10
|
+
*/
|
|
11
|
+
nextCursor: string | null;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* @internal
|
|
15
|
+
* V1SavedItemsListResponse without any key transformation, this is what
|
|
16
|
+
* we expect to come in as network data
|
|
17
|
+
*/
|
|
18
|
+
export type External$V1SavedItemsListResponse = {
|
|
19
|
+
items: External$V1SavedItemsListResponseItemsItem[];
|
|
20
|
+
next_cursor: string | null;
|
|
21
|
+
};
|
|
22
|
+
export declare const Schemas$V1SavedItemsListResponse: {
|
|
23
|
+
in: z.ZodType<V1SavedItemsListResponse, z.ZodTypeDef, unknown>;
|
|
24
|
+
out: z.ZodType<External$V1SavedItemsListResponse, z.ZodTypeDef, V1SavedItemsListResponse>;
|
|
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$V1SavedItemsListResponse = void 0;
|
|
37
|
+
const make_api_request_js_1 = require("make-api-request-js");
|
|
38
|
+
const z = __importStar(require("zod"));
|
|
39
|
+
const v1_saved_items_list_response_items_item_1 = require("./v1-saved-items-list-response-items-item");
|
|
40
|
+
/**
|
|
41
|
+
* Takes network data, validates it, and transforms keys to match typescript object V1SavedItemsListResponse
|
|
42
|
+
*/
|
|
43
|
+
const SchemaIn$V1SavedItemsListResponse = z
|
|
44
|
+
.object({
|
|
45
|
+
items: z.array(v1_saved_items_list_response_items_item_1.Schemas$V1SavedItemsListResponseItemsItem.in),
|
|
46
|
+
next_cursor: z.string().nullable(),
|
|
47
|
+
})
|
|
48
|
+
.transform((obj) => {
|
|
49
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
50
|
+
items: "items",
|
|
51
|
+
next_cursor: "nextCursor",
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
/**
|
|
55
|
+
* @internal
|
|
56
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$V1SavedItemsListResponse
|
|
57
|
+
*/
|
|
58
|
+
const SchemaOut$V1SavedItemsListResponse = z
|
|
59
|
+
.object({
|
|
60
|
+
items: z.array(v1_saved_items_list_response_items_item_1.Schemas$V1SavedItemsListResponseItemsItem.out),
|
|
61
|
+
nextCursor: z.string().nullable(),
|
|
62
|
+
})
|
|
63
|
+
.transform((obj) => {
|
|
64
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
65
|
+
items: "items",
|
|
66
|
+
nextCursor: "next_cursor",
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
exports.Schemas$V1SavedItemsListResponse = {
|
|
70
|
+
in: SchemaIn$V1SavedItemsListResponse,
|
|
71
|
+
out: SchemaOut$V1SavedItemsListResponse,
|
|
72
|
+
};
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
* * **`veo3.1`**: Supports 9:16, 16:9.
|
|
16
16
|
* * **`veo3.1-lite`**: Supports 9:16, 16:9.
|
|
17
17
|
* * **`wan-2.2`**: Supports 9:16, 16:9, 1:1.
|
|
18
|
+
* * **`wan-3.0`**: Supports 16:9, 9:16, 1:1.
|
|
18
19
|
*
|
|
19
20
|
*/
|
|
20
21
|
export type V1TextToVideoCreateBodyAspectRatioEnum = "16:9" | "1:1" | "9:16";
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
* * `veo3.1`: Best for romantic interactions and expressive action, with realistic detail.
|
|
17
17
|
* * `veo3.1-lite`: Balanced realism and audio at a lower cost than Veo 3.1.
|
|
18
18
|
* * `wan-2.2`: Best for physical motion, action, and camera movement.
|
|
19
|
+
* * `wan-3.0`: High-quality video with native audio, long clips, and end-frame control.
|
|
19
20
|
*
|
|
20
21
|
* If you specify the deprecated model value that includes the `-audio` suffix, this will be the same as included `audio` as `true`.
|
|
21
22
|
*/
|
|
22
|
-
export type V1TextToVideoCreateBodyModelEnum = "default" | "gemini-omni-1.1" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-2.6" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "ltx-2.5" | "minimax-h3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2";
|
|
23
|
+
export type V1TextToVideoCreateBodyModelEnum = "default" | "gemini-omni-1.1" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-2.6" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "ltx-2.5" | "minimax-h3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2" | "wan-3.0";
|
|
@@ -8,13 +8,14 @@
|
|
|
8
8
|
* * **`ltx-2.5`**: Supports 480p, 720p, 1080p.
|
|
9
9
|
* * **`minimax-h3`**: Supports 480p, 720p, 1080p.
|
|
10
10
|
* * **`seedance-1.5`**: Supports 480p, 720p, 1080p.
|
|
11
|
-
* * **`seedance-2.0`**: Supports 480p, 720p.
|
|
11
|
+
* * **`seedance-2.0`**: Supports 480p, 720p, 1080p, 4k.
|
|
12
12
|
* * **`seedance-2.0-mini`**: Supports 480p, 720p.
|
|
13
13
|
* * **`seedance-2.5`**: Supports 480p, 720p.
|
|
14
14
|
* * **`sora-2`**: Supports 720p.
|
|
15
15
|
* * **`veo3.1`**: Supports 720p, 1080p.
|
|
16
16
|
* * **`veo3.1-lite`**: Supports 720p, 1080p.
|
|
17
17
|
* * **`wan-2.2`**: Supports 480p, 720p, 1080p.
|
|
18
|
+
* * **`wan-3.0`**: Supports 480p, 720p, 1080p.
|
|
18
19
|
*
|
|
19
20
|
*/
|
|
20
21
|
export type V1TextToVideoCreateBodyResolutionEnum = "1080p" | "360p" | "480p" | "4k" | "720p";
|
|
@@ -21,6 +21,7 @@ export type V1TextToVideoCreateBody = {
|
|
|
21
21
|
* * **`veo3.1`**: Supports 9:16, 16:9.
|
|
22
22
|
* * **`veo3.1-lite`**: Supports 9:16, 16:9.
|
|
23
23
|
* * **`wan-2.2`**: Supports 9:16, 16:9, 1:1.
|
|
24
|
+
* * **`wan-3.0`**: Supports 16:9, 9:16, 1:1.
|
|
24
25
|
*
|
|
25
26
|
*/
|
|
26
27
|
aspectRatio?: ("16:9" | "1:1" | "9:16") | undefined;
|
|
@@ -42,6 +43,7 @@ export type V1TextToVideoCreateBody = {
|
|
|
42
43
|
* * **`veo3.1`**: Toggle-able: audio adds extra credits when enabled
|
|
43
44
|
* * **`veo3.1-lite`**: Toggle-able: audio adds extra credits when enabled
|
|
44
45
|
* * **`wan-2.2`**: Not supported
|
|
46
|
+
* * **`wan-3.0`**: Toggle-able: no additional credits for audio
|
|
45
47
|
*
|
|
46
48
|
*/
|
|
47
49
|
audio?: boolean | undefined;
|
|
@@ -62,6 +64,7 @@ export type V1TextToVideoCreateBody = {
|
|
|
62
64
|
* * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56
|
|
63
65
|
* * **`veo3.1-lite`**: 4, 6, 8, 16, 24, 32, 40, 48, 56
|
|
64
66
|
* * **`wan-2.2`**: 3, 4, 5, 6, 7, 8, 9, 10, 15
|
|
67
|
+
* * **`wan-3.0`**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30
|
|
65
68
|
*
|
|
66
69
|
*/
|
|
67
70
|
endSeconds: number;
|
|
@@ -83,10 +86,11 @@ export type V1TextToVideoCreateBody = {
|
|
|
83
86
|
* * `veo3.1`: Best for romantic interactions and expressive action, with realistic detail.
|
|
84
87
|
* * `veo3.1-lite`: Balanced realism and audio at a lower cost than Veo 3.1.
|
|
85
88
|
* * `wan-2.2`: Best for physical motion, action, and camera movement.
|
|
89
|
+
* * `wan-3.0`: High-quality video with native audio, long clips, and end-frame control.
|
|
86
90
|
*
|
|
87
91
|
* If you specify the deprecated model value that includes the `-audio` suffix, this will be the same as included `audio` as `true`.
|
|
88
92
|
*/
|
|
89
|
-
model?: ("default" | "gemini-omni-1.1" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-2.6" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "ltx-2.5" | "minimax-h3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2") | undefined;
|
|
93
|
+
model?: ("default" | "gemini-omni-1.1" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-2.6" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "ltx-2.5" | "minimax-h3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2" | "wan-3.0") | undefined;
|
|
90
94
|
/**
|
|
91
95
|
* Give your video a custom name for easy identification.
|
|
92
96
|
*/
|
|
@@ -105,13 +109,14 @@ export type V1TextToVideoCreateBody = {
|
|
|
105
109
|
* * **`ltx-2.5`**: Supports 480p, 720p, 1080p.
|
|
106
110
|
* * **`minimax-h3`**: Supports 480p, 720p, 1080p.
|
|
107
111
|
* * **`seedance-1.5`**: Supports 480p, 720p, 1080p.
|
|
108
|
-
* * **`seedance-2.0`**: Supports 480p, 720p.
|
|
112
|
+
* * **`seedance-2.0`**: Supports 480p, 720p, 1080p, 4k.
|
|
109
113
|
* * **`seedance-2.0-mini`**: Supports 480p, 720p.
|
|
110
114
|
* * **`seedance-2.5`**: Supports 480p, 720p.
|
|
111
115
|
* * **`sora-2`**: Supports 720p.
|
|
112
116
|
* * **`veo3.1`**: Supports 720p, 1080p.
|
|
113
117
|
* * **`veo3.1-lite`**: Supports 720p, 1080p.
|
|
114
118
|
* * **`wan-2.2`**: Supports 480p, 720p, 1080p.
|
|
119
|
+
* * **`wan-3.0`**: Supports 480p, 720p, 1080p.
|
|
115
120
|
*
|
|
116
121
|
*/
|
|
117
122
|
resolution?: ("1080p" | "360p" | "480p" | "4k" | "720p") | undefined;
|
|
@@ -126,7 +131,7 @@ export type External$V1TextToVideoCreateBody = {
|
|
|
126
131
|
aspect_ratio?: ("16:9" | "1:1" | "9:16") | undefined;
|
|
127
132
|
audio?: boolean | undefined;
|
|
128
133
|
end_seconds: number;
|
|
129
|
-
model?: ("default" | "gemini-omni-1.1" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-2.6" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "ltx-2.5" | "minimax-h3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2") | undefined;
|
|
134
|
+
model?: ("default" | "gemini-omni-1.1" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-2.6" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "ltx-2.5" | "minimax-h3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2" | "wan-3.0") | undefined;
|
|
130
135
|
name?: string | undefined;
|
|
131
136
|
orientation?: ("landscape" | "portrait" | "square") | undefined;
|
|
132
137
|
resolution?: ("1080p" | "360p" | "480p" | "4k" | "720p") | undefined;
|
|
@@ -68,6 +68,7 @@ const SchemaIn$V1TextToVideoCreateBody = z
|
|
|
68
68
|
"veo3.1-audio",
|
|
69
69
|
"veo3.1-lite",
|
|
70
70
|
"wan-2.2",
|
|
71
|
+
"wan-3.0",
|
|
71
72
|
])
|
|
72
73
|
.optional(),
|
|
73
74
|
name: z.string().optional(),
|
|
@@ -119,6 +120,7 @@ const SchemaOut$V1TextToVideoCreateBody = z
|
|
|
119
120
|
"veo3.1-audio",
|
|
120
121
|
"veo3.1-lite",
|
|
121
122
|
"wan-2.2",
|
|
123
|
+
"wan-3.0",
|
|
122
124
|
])
|
|
123
125
|
.optional(),
|
|
124
126
|
name: z.string().optional(),
|