From 317d8ac8b68e04bcecc758b77d6fab0fbfb1d5e2 Mon Sep 17 00:00:00 2001 From: "sdk-github-actions[bot]" Date: Tue, 21 Jul 2026 16:43:29 +0000 Subject: [PATCH] chore(release): auto --- .sdk.json | 10 +++++++++- package-lock.json | 4 ++-- package.json | 2 +- src/environment.ts | 2 +- src/resources/v1/ai-video-editor/README.md | 4 ++++ .../v1/ai-video-editor/request-types.ts | 18 ++++++++++++++++++ src/types/index.ts | 2 ++ ...1-ai-video-editor-create-body-model-enum.ts | 4 ++++ ...video-editor-create-body-resolution-enum.ts | 4 ++++ src/types/v1-ai-video-editor-create-body.ts | 18 ++++++++++++++++++ test/v1-ai-video-editor.test.ts | 4 ++++ 11 files changed, 67 insertions(+), 5 deletions(-) create mode 100644 src/types/v1-ai-video-editor-create-body-model-enum.ts create mode 100644 src/types/v1-ai-video-editor-create-body-resolution-enum.ts diff --git a/.sdk.json b/.sdk.json index 6e80b9d..7d34697 100644 --- a/.sdk.json +++ b/.sdk.json @@ -1,5 +1,5 @@ { - "id": "88b59ac0-5cb1-4f23-836d-c115911d1213", + "id": "65155b01-1bb3-4bd8-a8bc-d7a815ca4873", "tracked_paths": [ { "editable": true, @@ -801,6 +801,14 @@ "editable": false, "path": "src/types/v1-ai-video-editor-create-body-assets.ts" }, + { + "editable": false, + "path": "src/types/v1-ai-video-editor-create-body-model-enum.ts" + }, + { + "editable": false, + "path": "src/types/v1-ai-video-editor-create-body-resolution-enum.ts" + }, { "editable": false, "path": "src/types/v1-ai-video-editor-create-body-style.ts" diff --git a/package-lock.json b/package-lock.json index c65f421..9db1d80 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "magic-hour", - "version": "0.70.0", + "version": "0.71.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "magic-hour", - "version": "0.70.0", + "version": "0.71.0", "license": "MIT", "dependencies": { "make-api-request-js": "^0.2.1", diff --git a/package.json b/package.json index 725efc5..95ab210 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "magic-hour", - "version": "0.70.0", + "version": "0.71.0", "main": "./dist/index.js", "types": "./dist/index.d.ts", "exports": { diff --git a/src/environment.ts b/src/environment.ts index 82a3d9a..15ca852 100644 --- a/src/environment.ts +++ b/src/environment.ts @@ -1,4 +1,4 @@ export enum Environment { Environment = "https://api.magichour.ai", - MockServer = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.71.0", + MockServer = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.72.0", } diff --git a/src/resources/v1/ai-video-editor/README.md b/src/resources/v1/ai-video-editor/README.md index 7e2f227..83f1d79 100644 --- a/src/resources/v1/ai-video-editor/README.md +++ b/src/resources/v1/ai-video-editor/README.md @@ -87,7 +87,9 @@ For detailed examples, see the [product page](https://magichour.ai/products/vide | `endSeconds` | ✓ | End time of your clip in seconds. Must be greater than `start_seconds`. Duration must be between 3 and 10 seconds. | `5.0` | | `style` | ✓ | | `{"prompt": "Change the car color to blue"}` | | `└─ prompt` | ✓ | The prompt used to edit the video. | `"Change the car color to blue"` | +| `model` | ✗ | Editing model. Defaults to `ltx-2.3` for free tier and `gemini-omni` for paid. Use `ltx-2.3` for LTX video edit. | `"gemini-omni"` | | `name` | ✗ | Give your video a custom name for easy identification. | `"My Video Editor video"` | +| `resolution` | ✗ | Output resolution. Defaults to `480p` for free tier and `720p` for paid. Google Omni supports 720p only; LTX-2.3 supports 480p, 720p, and 1080p. | `"720p"` | | `startSeconds` | ✗ | Start time of your clip (seconds). Must be ≥ 0. | `0.0` | #### Example Snippet @@ -99,7 +101,9 @@ const client = new Client({ token: process.env["API_TOKEN"]!! }); const res = await client.v1.aiVideoEditor.create({ assets: { videoFilePath: "api-assets/id/1234.mp4" }, endSeconds: 5.0, + model: "gemini-omni", name: "My Video Editor video", + resolution: "720p", startSeconds: 0.0, style: { prompt: "Change the car color to blue" }, }); diff --git a/src/resources/v1/ai-video-editor/request-types.ts b/src/resources/v1/ai-video-editor/request-types.ts index 491a149..d3df463 100644 --- a/src/resources/v1/ai-video-editor/request-types.ts +++ b/src/resources/v1/ai-video-editor/request-types.ts @@ -24,10 +24,18 @@ export type CreateRequest = { * End time of your clip in seconds. Must be greater than `start_seconds`. Duration must be between 3 and 10 seconds. */ endSeconds: number; + /** + * Editing model. Defaults to `ltx-2.3` for free tier and `gemini-omni` for paid. Use `ltx-2.3` for LTX video edit. + */ + model?: ("gemini-omni" | "ltx-2.3") | undefined; /** * Give your video a custom name for easy identification. */ name?: string | undefined; + /** + * Output resolution. Defaults to `480p` for free tier and `720p` for paid. Google Omni supports 720p only; LTX-2.3 supports 480p, 720p, and 1080p. + */ + resolution?: ("1080p" | "480p" | "720p") | undefined; /** * Start time of your clip (seconds). Must be ≥ 0. */ @@ -43,7 +51,9 @@ export type CreateRequest = { export type External$CreateRequest = { assets: External$V1AiVideoEditorCreateBodyAssets; end_seconds: number; + model?: ("gemini-omni" | "ltx-2.3") | undefined; name?: string | undefined; + resolution?: ("1080p" | "480p" | "720p") | undefined; start_seconds?: number | undefined; style: External$V1AiVideoEditorCreateBodyStyle; }; @@ -59,7 +69,9 @@ const SchemaIn$CreateRequest: z.ZodType< .object({ assets: Schemas$V1AiVideoEditorCreateBodyAssets.in, end_seconds: z.number(), + model: z.enum(["gemini-omni", "ltx-2.3"]).optional(), name: z.string().optional(), + resolution: z.enum(["1080p", "480p", "720p"]).optional(), start_seconds: z.number().optional(), style: Schemas$V1AiVideoEditorCreateBodyStyle.in, }) @@ -67,7 +79,9 @@ const SchemaIn$CreateRequest: z.ZodType< return zodTransform(obj, { assets: "assets", end_seconds: "endSeconds", + model: "model", name: "name", + resolution: "resolution", start_seconds: "startSeconds", style: "style", }); @@ -85,7 +99,9 @@ const SchemaOut$CreateRequest: z.ZodType< .object({ assets: Schemas$V1AiVideoEditorCreateBodyAssets.out, endSeconds: z.number(), + model: z.enum(["gemini-omni", "ltx-2.3"]).optional(), name: z.string().optional(), + resolution: z.enum(["1080p", "480p", "720p"]).optional(), startSeconds: z.number().optional(), style: Schemas$V1AiVideoEditorCreateBodyStyle.out, }) @@ -93,7 +109,9 @@ const SchemaOut$CreateRequest: z.ZodType< return zodTransform(obj, { assets: "assets", endSeconds: "end_seconds", + model: "model", name: "name", + resolution: "resolution", startSeconds: "start_seconds", style: "style", }); diff --git a/src/types/index.ts b/src/types/index.ts index dd29689..af86115 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -51,6 +51,8 @@ export { V1AiTalkingPhotoCreateBodyStyleGenerationModeEnum } from "./v1-ai-talki export { V1AiTalkingPhotoCreateResponse } from "./v1-ai-talking-photo-create-response"; export { V1AiVideoEditorCreateBody } from "./v1-ai-video-editor-create-body"; export { V1AiVideoEditorCreateBodyAssets } from "./v1-ai-video-editor-create-body-assets"; +export { V1AiVideoEditorCreateBodyModelEnum } from "./v1-ai-video-editor-create-body-model-enum"; +export { V1AiVideoEditorCreateBodyResolutionEnum } from "./v1-ai-video-editor-create-body-resolution-enum"; export { V1AiVideoEditorCreateBodyStyle } from "./v1-ai-video-editor-create-body-style"; export { V1AiVideoEditorCreateResponse } from "./v1-ai-video-editor-create-response"; export { V1AiVoiceClonerCreateBody } from "./v1-ai-voice-cloner-create-body"; diff --git a/src/types/v1-ai-video-editor-create-body-model-enum.ts b/src/types/v1-ai-video-editor-create-body-model-enum.ts new file mode 100644 index 0000000..9fe9b20 --- /dev/null +++ b/src/types/v1-ai-video-editor-create-body-model-enum.ts @@ -0,0 +1,4 @@ +/** + * Editing model. Defaults to `ltx-2.3` for free tier and `gemini-omni` for paid. Use `ltx-2.3` for LTX video edit. + */ +export type V1AiVideoEditorCreateBodyModelEnum = "gemini-omni" | "ltx-2.3"; diff --git a/src/types/v1-ai-video-editor-create-body-resolution-enum.ts b/src/types/v1-ai-video-editor-create-body-resolution-enum.ts new file mode 100644 index 0000000..b689820 --- /dev/null +++ b/src/types/v1-ai-video-editor-create-body-resolution-enum.ts @@ -0,0 +1,4 @@ +/** + * Output resolution. Defaults to `480p` for free tier and `720p` for paid. Google Omni supports 720p only; LTX-2.3 supports 480p, 720p, and 1080p. + */ +export type V1AiVideoEditorCreateBodyResolutionEnum = "1080p" | "480p" | "720p"; diff --git a/src/types/v1-ai-video-editor-create-body.ts b/src/types/v1-ai-video-editor-create-body.ts index 6d26e12..095321c 100644 --- a/src/types/v1-ai-video-editor-create-body.ts +++ b/src/types/v1-ai-video-editor-create-body.ts @@ -24,10 +24,18 @@ export type V1AiVideoEditorCreateBody = { * End time of your clip in seconds. Must be greater than `start_seconds`. Duration must be between 3 and 10 seconds. */ endSeconds: number; + /** + * Editing model. Defaults to `ltx-2.3` for free tier and `gemini-omni` for paid. Use `ltx-2.3` for LTX video edit. + */ + model?: ("gemini-omni" | "ltx-2.3") | undefined; /** * Give your video a custom name for easy identification. */ name?: string | undefined; + /** + * Output resolution. Defaults to `480p` for free tier and `720p` for paid. Google Omni supports 720p only; LTX-2.3 supports 480p, 720p, and 1080p. + */ + resolution?: ("1080p" | "480p" | "720p") | undefined; /** * Start time of your clip (seconds). Must be ≥ 0. */ @@ -43,7 +51,9 @@ export type V1AiVideoEditorCreateBody = { export type External$V1AiVideoEditorCreateBody = { assets: External$V1AiVideoEditorCreateBodyAssets; end_seconds: number; + model?: ("gemini-omni" | "ltx-2.3") | undefined; name?: string | undefined; + resolution?: ("1080p" | "480p" | "720p") | undefined; start_seconds?: number | undefined; style: External$V1AiVideoEditorCreateBodyStyle; }; @@ -59,7 +69,9 @@ const SchemaIn$V1AiVideoEditorCreateBody: z.ZodType< .object({ assets: Schemas$V1AiVideoEditorCreateBodyAssets.in, end_seconds: z.number(), + model: z.enum(["gemini-omni", "ltx-2.3"]).optional(), name: z.string().optional(), + resolution: z.enum(["1080p", "480p", "720p"]).optional(), start_seconds: z.number().optional(), style: Schemas$V1AiVideoEditorCreateBodyStyle.in, }) @@ -67,7 +79,9 @@ const SchemaIn$V1AiVideoEditorCreateBody: z.ZodType< return zodTransform(obj, { assets: "assets", end_seconds: "endSeconds", + model: "model", name: "name", + resolution: "resolution", start_seconds: "startSeconds", style: "style", }); @@ -85,7 +99,9 @@ const SchemaOut$V1AiVideoEditorCreateBody: z.ZodType< .object({ assets: Schemas$V1AiVideoEditorCreateBodyAssets.out, endSeconds: z.number(), + model: z.enum(["gemini-omni", "ltx-2.3"]).optional(), name: z.string().optional(), + resolution: z.enum(["1080p", "480p", "720p"]).optional(), startSeconds: z.number().optional(), style: Schemas$V1AiVideoEditorCreateBodyStyle.out, }) @@ -93,7 +109,9 @@ const SchemaOut$V1AiVideoEditorCreateBody: z.ZodType< return zodTransform(obj, { assets: "assets", endSeconds: "end_seconds", + model: "model", name: "name", + resolution: "resolution", startSeconds: "start_seconds", style: "style", }); diff --git a/test/v1-ai-video-editor.test.ts b/test/v1-ai-video-editor.test.ts index f2fdd35..802e96f 100644 --- a/test/v1-ai-video-editor.test.ts +++ b/test/v1-ai-video-editor.test.ts @@ -14,7 +14,9 @@ describe("tests client.v1.aiVideoEditor.create", () => { .create({ assets: { videoFilePath: "api-assets/id/1234.mp4" }, endSeconds: 5.0, + model: "gemini-omni", name: "My Video Editor video", + resolution: "720p", startSeconds: 0.0, style: { prompt: "Change the car color to blue" }, }) @@ -22,7 +24,9 @@ describe("tests client.v1.aiVideoEditor.create", () => { client.v1.aiVideoEditor.create({ assets: { videoFilePath: "api-assets/id/1234.mp4" }, endSeconds: 5.0, + model: "gemini-omni", name: "My Video Editor video", + resolution: "720p", startSeconds: 0.0, style: { prompt: "Change the car color to blue" }, }),