@decartai/sdk 0.0.25 → 0.0.26

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.
@@ -13,7 +13,7 @@ type OnRemoteStreamFn = (stream: MediaStream) => void;
13
13
  type RealTimeClientInitialState = z.infer<typeof realTimeClientInitialStateSchema>;
14
14
  declare const realTimeClientConnectOptionsSchema: z.ZodObject<{
15
15
  model: z.ZodObject<{
16
- name: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"mirage">, z.ZodLiteral<"mirage_v2">, z.ZodLiteral<"lucy_v2v_720p_rt">]>, z.ZodUnion<readonly [z.ZodLiteral<"lucy-dev-i2v">, z.ZodLiteral<"lucy-fast-v2v">, z.ZodLiteral<"lucy-pro-t2v">, z.ZodLiteral<"lucy-pro-i2v">, z.ZodLiteral<"lucy-pro-v2v">, z.ZodLiteral<"lucy-pro-flf2v">, z.ZodLiteral<"lucy-motion">]>, z.ZodUnion<readonly [z.ZodLiteral<"lucy-pro-t2i">, z.ZodLiteral<"lucy-pro-i2i">]>]>;
16
+ name: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"mirage">, z.ZodLiteral<"mirage_v2">, z.ZodLiteral<"lucy_v2v_720p_rt">]>, z.ZodUnion<readonly [z.ZodLiteral<"lucy-dev-i2v">, z.ZodLiteral<"lucy-fast-v2v">, z.ZodLiteral<"lucy-pro-t2v">, z.ZodLiteral<"lucy-pro-i2v">, z.ZodLiteral<"lucy-pro-v2v">, z.ZodLiteral<"lucy-pro-flf2v">, z.ZodLiteral<"lucy-motion">, z.ZodLiteral<"lucy-restyle-v2v">]>, z.ZodUnion<readonly [z.ZodLiteral<"lucy-pro-t2i">, z.ZodLiteral<"lucy-pro-i2i">]>]>;
17
17
  urlPath: z.ZodString;
18
18
  queueUrlPath: z.ZodOptional<z.ZodString>;
19
19
  fps: z.ZodNumber;
@@ -2,9 +2,9 @@ import { z } from "zod";
2
2
 
3
3
  //#region src/shared/model.d.ts
4
4
  declare const realtimeModels: z.ZodUnion<readonly [z.ZodLiteral<"mirage">, z.ZodLiteral<"mirage_v2">, z.ZodLiteral<"lucy_v2v_720p_rt">]>;
5
- declare const videoModels: z.ZodUnion<readonly [z.ZodLiteral<"lucy-dev-i2v">, z.ZodLiteral<"lucy-fast-v2v">, z.ZodLiteral<"lucy-pro-t2v">, z.ZodLiteral<"lucy-pro-i2v">, z.ZodLiteral<"lucy-pro-v2v">, z.ZodLiteral<"lucy-pro-flf2v">, z.ZodLiteral<"lucy-motion">]>;
5
+ declare const videoModels: z.ZodUnion<readonly [z.ZodLiteral<"lucy-dev-i2v">, z.ZodLiteral<"lucy-fast-v2v">, z.ZodLiteral<"lucy-pro-t2v">, z.ZodLiteral<"lucy-pro-i2v">, z.ZodLiteral<"lucy-pro-v2v">, z.ZodLiteral<"lucy-pro-flf2v">, z.ZodLiteral<"lucy-motion">, z.ZodLiteral<"lucy-restyle-v2v">]>;
6
6
  declare const imageModels: z.ZodUnion<readonly [z.ZodLiteral<"lucy-pro-t2i">, z.ZodLiteral<"lucy-pro-i2i">]>;
7
- declare const modelSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"mirage">, z.ZodLiteral<"mirage_v2">, z.ZodLiteral<"lucy_v2v_720p_rt">]>, z.ZodUnion<readonly [z.ZodLiteral<"lucy-dev-i2v">, z.ZodLiteral<"lucy-fast-v2v">, z.ZodLiteral<"lucy-pro-t2v">, z.ZodLiteral<"lucy-pro-i2v">, z.ZodLiteral<"lucy-pro-v2v">, z.ZodLiteral<"lucy-pro-flf2v">, z.ZodLiteral<"lucy-motion">]>, z.ZodUnion<readonly [z.ZodLiteral<"lucy-pro-t2i">, z.ZodLiteral<"lucy-pro-i2i">]>]>;
7
+ declare const modelSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"mirage">, z.ZodLiteral<"mirage_v2">, z.ZodLiteral<"lucy_v2v_720p_rt">]>, z.ZodUnion<readonly [z.ZodLiteral<"lucy-dev-i2v">, z.ZodLiteral<"lucy-fast-v2v">, z.ZodLiteral<"lucy-pro-t2v">, z.ZodLiteral<"lucy-pro-i2v">, z.ZodLiteral<"lucy-pro-v2v">, z.ZodLiteral<"lucy-pro-flf2v">, z.ZodLiteral<"lucy-motion">, z.ZodLiteral<"lucy-restyle-v2v">]>, z.ZodUnion<readonly [z.ZodLiteral<"lucy-pro-t2i">, z.ZodLiteral<"lucy-pro-i2i">]>]>;
8
8
  type Model = z.infer<typeof modelSchema>;
9
9
  type RealTimeModels = z.infer<typeof realtimeModels>;
10
10
  type VideoModels = z.infer<typeof videoModels>;
@@ -88,6 +88,13 @@ declare const modelInputSchemas: {
88
88
  seed: z.ZodOptional<z.ZodNumber>;
89
89
  resolution: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"720p">>>;
90
90
  }, z.core.$strip>;
91
+ readonly "lucy-restyle-v2v": z.ZodObject<{
92
+ prompt: z.ZodString;
93
+ data: z.ZodUnion<readonly [z.ZodCustom<File, File>, z.ZodCustom<Blob, Blob>, z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>, z.ZodCustom<URL, URL>, z.ZodURL]>;
94
+ seed: z.ZodOptional<z.ZodNumber>;
95
+ resolution: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"720p">>>;
96
+ enhance_prompt: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
97
+ }, z.core.$strip>;
91
98
  };
92
99
  type ModelInputSchemas = typeof modelInputSchemas;
93
100
  type ModelDefinition<T extends Model = Model> = {
@@ -121,6 +128,7 @@ declare const models: {
121
128
  * - `"lucy-pro-flf2v"` - First-last-frame-to-video
122
129
  * - `"lucy-dev-i2v"` - Image-to-video (Dev quality)
123
130
  * - `"lucy-fast-v2v"` - Video-to-video (Fast quality)
131
+ * - `"lucy-restyle-v2v"` - Video-to-video (Restyling)
124
132
  */
125
133
  video: <T extends VideoModels>(model: T) => ModelDefinition<T>;
126
134
  /**
@@ -14,7 +14,8 @@ const videoModels = z.union([
14
14
  z.literal("lucy-pro-i2v"),
15
15
  z.literal("lucy-pro-v2v"),
16
16
  z.literal("lucy-pro-flf2v"),
17
- z.literal("lucy-motion")
17
+ z.literal("lucy-motion"),
18
+ z.literal("lucy-restyle-v2v")
18
19
  ]);
19
20
  const imageModels = z.union([z.literal("lucy-pro-t2i"), z.literal("lucy-pro-i2i")]);
20
21
  const modelSchema = z.union([
@@ -111,6 +112,13 @@ const modelInputSchemas = {
111
112
  })).min(2).max(1e3).describe("The trajectory of the desired movement of the object in the image"),
112
113
  seed: z.number().optional().describe("The seed to use for the generation"),
113
114
  resolution: motionResolutionSchema
115
+ }),
116
+ "lucy-restyle-v2v": z.object({
117
+ prompt: z.string().min(1).max(1e3).describe("Text prompt for the video editing"),
118
+ data: fileInputSchema.describe("Video file to process (File, Blob, ReadableStream, URL, or string URL)"),
119
+ seed: z.number().optional().describe("Seed for the video generation"),
120
+ resolution: proV2vResolutionSchema,
121
+ enhance_prompt: z.boolean().default(true).optional().describe("Whether to enhance the prompt")
114
122
  })
115
123
  };
116
124
  const modelDefinitionSchema = z.object({
@@ -232,6 +240,15 @@ const _models = {
232
240
  width: 1280,
233
241
  height: 704,
234
242
  inputSchema: modelInputSchemas["lucy-motion"]
243
+ },
244
+ "lucy-restyle-v2v": {
245
+ urlPath: "/v1/generate/lucy-restyle-v2v",
246
+ queueUrlPath: "/v1/jobs/lucy-restyle-v2v",
247
+ name: "lucy-restyle-v2v",
248
+ fps: 22,
249
+ width: 1280,
250
+ height: 704,
251
+ inputSchema: modelInputSchemas["lucy-restyle-v2v"]
235
252
  }
236
253
  }
237
254
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decartai/sdk",
3
- "version": "0.0.25",
3
+ "version": "0.0.26",
4
4
  "description": "Decart's JavaScript SDK",
5
5
  "type": "module",
6
6
  "license": "MIT",