@decartai/sdk 0.0.16 → 0.0.17
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/dist/realtime/client.d.ts +1 -1
- package/dist/shared/model.d.ts +9 -2
- package/dist/shared/model.js +16 -0
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -14,7 +14,7 @@ type OnRemoteStreamFn = (stream: MediaStream) => void;
|
|
|
14
14
|
type RealTimeClientInitialState = z.infer<typeof realTimeClientInitialStateSchema>;
|
|
15
15
|
declare const realTimeClientConnectOptionsSchema: z.ZodObject<{
|
|
16
16
|
model: z.ZodObject<{
|
|
17
|
-
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-dev-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">]>]>;
|
|
17
|
+
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-dev-v2v">, 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">]>]>;
|
|
18
18
|
urlPath: z.ZodString;
|
|
19
19
|
fps: z.ZodNumber;
|
|
20
20
|
width: z.ZodNumber;
|
package/dist/shared/model.d.ts
CHANGED
|
@@ -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-dev-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-dev-v2v">, 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">]>;
|
|
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-dev-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-dev-v2v">, 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">]>]>;
|
|
8
8
|
type Model = z.infer<typeof modelSchema>;
|
|
9
9
|
type RealTimeModels = z.infer<typeof realtimeModels>;
|
|
10
10
|
type VideoModels = z.infer<typeof videoModels>;
|
|
@@ -58,6 +58,13 @@ declare const modelInputSchemas: {
|
|
|
58
58
|
resolution: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"720p">>>;
|
|
59
59
|
enhance_prompt: z.ZodOptional<z.ZodBoolean>;
|
|
60
60
|
}, z.core.$strip>;
|
|
61
|
+
readonly "lucy-fast-v2v": z.ZodObject<{
|
|
62
|
+
prompt: z.ZodString;
|
|
63
|
+
data: z.ZodUnion<readonly [z.ZodCustom<File, File>, z.ZodCustom<Blob, Blob>, z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>, z.ZodCustom<URL, URL>, z.ZodURL]>;
|
|
64
|
+
seed: z.ZodOptional<z.ZodNumber>;
|
|
65
|
+
resolution: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"720p">>>;
|
|
66
|
+
enhance_prompt: z.ZodOptional<z.ZodBoolean>;
|
|
67
|
+
}, z.core.$strip>;
|
|
61
68
|
readonly "lucy-pro-flf2v": z.ZodObject<{
|
|
62
69
|
prompt: z.ZodString;
|
|
63
70
|
start: z.ZodUnion<readonly [z.ZodCustom<File, File>, z.ZodCustom<Blob, Blob>, z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>, z.ZodCustom<URL, URL>, z.ZodURL]>;
|
package/dist/shared/model.js
CHANGED
|
@@ -10,6 +10,7 @@ const realtimeModels = z.union([
|
|
|
10
10
|
const videoModels = z.union([
|
|
11
11
|
z.literal("lucy-dev-i2v"),
|
|
12
12
|
z.literal("lucy-dev-v2v"),
|
|
13
|
+
z.literal("lucy-fast-v2v"),
|
|
13
14
|
z.literal("lucy-pro-t2v"),
|
|
14
15
|
z.literal("lucy-pro-i2v"),
|
|
15
16
|
z.literal("lucy-pro-v2v"),
|
|
@@ -88,6 +89,13 @@ const modelInputSchemas = {
|
|
|
88
89
|
resolution: devResolutionSchema,
|
|
89
90
|
enhance_prompt: z.boolean().optional().describe("Whether to enhance the prompt")
|
|
90
91
|
}),
|
|
92
|
+
"lucy-fast-v2v": z.object({
|
|
93
|
+
prompt: z.string().min(1).max(1e3).describe("The prompt to use for the generation"),
|
|
94
|
+
data: fileInputSchema.describe("The video data to use for generation (File, Blob, ReadableStream, URL, or string URL)"),
|
|
95
|
+
seed: z.number().optional().describe("The seed to use for the generation"),
|
|
96
|
+
resolution: proV2vResolutionSchema,
|
|
97
|
+
enhance_prompt: z.boolean().optional().describe("Whether to enhance the prompt")
|
|
98
|
+
}),
|
|
91
99
|
"lucy-pro-flf2v": z.object({
|
|
92
100
|
prompt: z.string().min(1).max(1e3).describe("The prompt to use for the generation"),
|
|
93
101
|
start: fileInputSchema.describe("The start frame image (File, Blob, ReadableStream, URL, or string URL)"),
|
|
@@ -183,6 +191,14 @@ const _models = {
|
|
|
183
191
|
height: 704,
|
|
184
192
|
inputSchema: modelInputSchemas["lucy-dev-v2v"]
|
|
185
193
|
},
|
|
194
|
+
"lucy-fast-v2v": {
|
|
195
|
+
urlPath: "/v1/generate/lucy-fast-v2v",
|
|
196
|
+
name: "lucy-fast-v2v",
|
|
197
|
+
fps: 25,
|
|
198
|
+
width: 1280,
|
|
199
|
+
height: 720,
|
|
200
|
+
inputSchema: modelInputSchemas["lucy-fast-v2v"]
|
|
201
|
+
},
|
|
186
202
|
"lucy-pro-t2v": {
|
|
187
203
|
urlPath: "/v1/generate/lucy-pro-t2v",
|
|
188
204
|
name: "lucy-pro-t2v",
|
package/dist/version.js
CHANGED