@decartai/sdk 0.1.10 → 0.1.11
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/shared/model.d.ts +20 -2
- package/dist/shared/model.js +12 -0
- package/package.json +1 -1
package/dist/shared/model.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { z } from "zod";
|
|
|
4
4
|
|
|
5
5
|
declare const canonicalModelSchema: z.ZodEnum<{
|
|
6
6
|
"lucy-2.1": "lucy-2.1";
|
|
7
|
+
"lucy-2.5": "lucy-2.5";
|
|
7
8
|
"lucy-vton-2": "lucy-vton-2";
|
|
8
9
|
"lucy-vton-3": "lucy-vton-3";
|
|
9
10
|
"lucy-restyle-2": "lucy-restyle-2";
|
|
@@ -24,10 +25,10 @@ declare const modelAliases: {
|
|
|
24
25
|
};
|
|
25
26
|
/** @internal Test-only helper to reset deprecation warning tracking */
|
|
26
27
|
|
|
27
|
-
declare const realtimeModels: z.ZodUnion<readonly [z.ZodLiteral<"lucy-2.1">, z.ZodLiteral<"lucy-vton-2">, z.ZodLiteral<"lucy-vton-3">, z.ZodLiteral<"lucy-restyle-2">, z.ZodLiteral<"lucy-latest">, z.ZodLiteral<"lucy-vton-latest">, z.ZodLiteral<"lucy-restyle-latest">, z.ZodLiteral<"mirage_v2">, z.ZodLiteral<"lucy-2.1-vton-2">]>;
|
|
28
|
+
declare const realtimeModels: z.ZodUnion<readonly [z.ZodLiteral<"lucy-2.1">, z.ZodLiteral<"lucy-2.5">, z.ZodLiteral<"lucy-vton-2">, z.ZodLiteral<"lucy-vton-3">, z.ZodLiteral<"lucy-restyle-2">, z.ZodLiteral<"lucy-latest">, z.ZodLiteral<"lucy-vton-latest">, z.ZodLiteral<"lucy-restyle-latest">, z.ZodLiteral<"mirage_v2">, z.ZodLiteral<"lucy-2.1-vton-2">]>;
|
|
28
29
|
declare const videoModels: z.ZodUnion<readonly [z.ZodLiteral<"lucy-clip">, z.ZodLiteral<"lucy-2.1">, z.ZodLiteral<"lucy-vton-2">, z.ZodLiteral<"lucy-vton-3">, z.ZodLiteral<"lucy-restyle-2">, z.ZodLiteral<"lucy-latest">, z.ZodLiteral<"lucy-vton-latest">, z.ZodLiteral<"lucy-restyle-latest">, z.ZodLiteral<"lucy-clip-latest">, z.ZodLiteral<"lucy-2.1-vton-2">, z.ZodLiteral<"lucy-pro-v2v">, z.ZodLiteral<"lucy-restyle-v2v">]>;
|
|
29
30
|
declare const imageModels: z.ZodUnion<readonly [z.ZodLiteral<"lucy-image-2">, z.ZodLiteral<"lucy-image-latest">, z.ZodLiteral<"lucy-pro-i2i">]>;
|
|
30
|
-
declare const modelSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"lucy-2.1">, z.ZodLiteral<"lucy-vton-2">, z.ZodLiteral<"lucy-vton-3">, z.ZodLiteral<"lucy-restyle-2">, z.ZodLiteral<"lucy-latest">, z.ZodLiteral<"lucy-vton-latest">, z.ZodLiteral<"lucy-restyle-latest">, z.ZodLiteral<"mirage_v2">, z.ZodLiteral<"lucy-2.1-vton-2">]>, z.ZodUnion<readonly [z.ZodLiteral<"lucy-clip">, z.ZodLiteral<"lucy-2.1">, z.ZodLiteral<"lucy-vton-2">, z.ZodLiteral<"lucy-vton-3">, z.ZodLiteral<"lucy-restyle-2">, z.ZodLiteral<"lucy-latest">, z.ZodLiteral<"lucy-vton-latest">, z.ZodLiteral<"lucy-restyle-latest">, z.ZodLiteral<"lucy-clip-latest">, z.ZodLiteral<"lucy-2.1-vton-2">, z.ZodLiteral<"lucy-pro-v2v">, z.ZodLiteral<"lucy-restyle-v2v">]>, z.ZodUnion<readonly [z.ZodLiteral<"lucy-image-2">, z.ZodLiteral<"lucy-image-latest">, z.ZodLiteral<"lucy-pro-i2i">]>]>;
|
|
31
|
+
declare const modelSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"lucy-2.1">, z.ZodLiteral<"lucy-2.5">, z.ZodLiteral<"lucy-vton-2">, z.ZodLiteral<"lucy-vton-3">, z.ZodLiteral<"lucy-restyle-2">, z.ZodLiteral<"lucy-latest">, z.ZodLiteral<"lucy-vton-latest">, z.ZodLiteral<"lucy-restyle-latest">, z.ZodLiteral<"mirage_v2">, z.ZodLiteral<"lucy-2.1-vton-2">]>, z.ZodUnion<readonly [z.ZodLiteral<"lucy-clip">, z.ZodLiteral<"lucy-2.1">, z.ZodLiteral<"lucy-vton-2">, z.ZodLiteral<"lucy-vton-3">, z.ZodLiteral<"lucy-restyle-2">, z.ZodLiteral<"lucy-latest">, z.ZodLiteral<"lucy-vton-latest">, z.ZodLiteral<"lucy-restyle-latest">, z.ZodLiteral<"lucy-clip-latest">, z.ZodLiteral<"lucy-2.1-vton-2">, z.ZodLiteral<"lucy-pro-v2v">, z.ZodLiteral<"lucy-restyle-v2v">]>, z.ZodUnion<readonly [z.ZodLiteral<"lucy-image-2">, z.ZodLiteral<"lucy-image-latest">, z.ZodLiteral<"lucy-pro-i2i">]>]>;
|
|
31
32
|
type Model = z.infer<typeof modelSchema>;
|
|
32
33
|
type RealTimeModels = z.infer<typeof realtimeModels>;
|
|
33
34
|
type VideoModels = z.infer<typeof videoModels>;
|
|
@@ -117,6 +118,22 @@ declare const modelInputSchemas: {
|
|
|
117
118
|
resolution: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"720p">>>;
|
|
118
119
|
enhance_prompt: z.ZodOptional<z.ZodBoolean>;
|
|
119
120
|
}, z.core.$strip>;
|
|
121
|
+
readonly "lucy-2.5": z.ZodObject<{
|
|
122
|
+
prompt: z.ZodString;
|
|
123
|
+
reference_image: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<File, File>, z.ZodCustom<Blob, Blob>, z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>, z.ZodCustom<URL, URL>, z.ZodURL, z.ZodObject<{
|
|
124
|
+
uri: z.ZodString;
|
|
125
|
+
type: z.ZodString;
|
|
126
|
+
name: z.ZodString;
|
|
127
|
+
}, z.core.$strip>]>>;
|
|
128
|
+
data: z.ZodUnion<readonly [z.ZodCustom<File, File>, z.ZodCustom<Blob, Blob>, z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>, z.ZodCustom<URL, URL>, z.ZodURL, z.ZodObject<{
|
|
129
|
+
uri: z.ZodString;
|
|
130
|
+
type: z.ZodString;
|
|
131
|
+
name: z.ZodString;
|
|
132
|
+
}, z.core.$strip>]>;
|
|
133
|
+
seed: z.ZodOptional<z.ZodNumber>;
|
|
134
|
+
resolution: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"720p">>>;
|
|
135
|
+
enhance_prompt: z.ZodOptional<z.ZodBoolean>;
|
|
136
|
+
}, z.core.$strip>;
|
|
120
137
|
readonly "lucy-vton-2": z.ZodObject<{
|
|
121
138
|
prompt: z.ZodString;
|
|
122
139
|
reference_image: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<File, File>, z.ZodCustom<Blob, Blob>, z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>, z.ZodCustom<URL, URL>, z.ZodURL, z.ZodObject<{
|
|
@@ -361,6 +378,7 @@ declare const models: {
|
|
|
361
378
|
*
|
|
362
379
|
* Available options:
|
|
363
380
|
* - `"lucy-2.1"` - Lucy 2.1 realtime video editing
|
|
381
|
+
* - `"lucy-2.5"` - Lucy 2.5 realtime video editing
|
|
364
382
|
* - `"lucy-vton-2"` - Lucy virtual try-on 2
|
|
365
383
|
* - `"lucy-vton-3"` - Lucy virtual try-on 3
|
|
366
384
|
* - `"lucy-restyle-2"` - Realtime video restyling
|
package/dist/shared/model.js
CHANGED
|
@@ -3,6 +3,7 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/shared/model.ts
|
|
4
4
|
const CANONICAL_MODEL_NAMES = [
|
|
5
5
|
"lucy-2.1",
|
|
6
|
+
"lucy-2.5",
|
|
6
7
|
"lucy-vton-2",
|
|
7
8
|
"lucy-vton-3",
|
|
8
9
|
"lucy-restyle-2",
|
|
@@ -11,6 +12,7 @@ const CANONICAL_MODEL_NAMES = [
|
|
|
11
12
|
];
|
|
12
13
|
const CANONICAL_REALTIME_MODEL_NAMES = [
|
|
13
14
|
"lucy-2.1",
|
|
15
|
+
"lucy-2.5",
|
|
14
16
|
"lucy-vton-2",
|
|
15
17
|
"lucy-vton-3",
|
|
16
18
|
"lucy-restyle-2"
|
|
@@ -48,6 +50,7 @@ function warnDeprecated(model) {
|
|
|
48
50
|
}
|
|
49
51
|
const realtimeModels = z.union([
|
|
50
52
|
z.literal("lucy-2.1"),
|
|
53
|
+
z.literal("lucy-2.5"),
|
|
51
54
|
z.literal("lucy-vton-2"),
|
|
52
55
|
z.literal("lucy-vton-3"),
|
|
53
56
|
z.literal("lucy-restyle-2"),
|
|
@@ -178,6 +181,7 @@ const modelInputSchemas = {
|
|
|
178
181
|
"lucy-image-2": imageEditSchema,
|
|
179
182
|
"lucy-restyle-2": restyleSchema,
|
|
180
183
|
"lucy-2.1": videoEdit2Schema,
|
|
184
|
+
"lucy-2.5": videoEdit2Schema,
|
|
181
185
|
"lucy-vton-2": videoEdit2Schema,
|
|
182
186
|
"lucy-vton-3": videoEdit2Schema,
|
|
183
187
|
"lucy-latest": videoEdit2Schema,
|
|
@@ -221,6 +225,14 @@ const _models = {
|
|
|
221
225
|
height: 624,
|
|
222
226
|
inputSchema: z.object({})
|
|
223
227
|
},
|
|
228
|
+
"lucy-2.5": {
|
|
229
|
+
urlPath: "/v1/stream",
|
|
230
|
+
name: "lucy-2.5",
|
|
231
|
+
fps: 20,
|
|
232
|
+
width: 1088,
|
|
233
|
+
height: 624,
|
|
234
|
+
inputSchema: z.object({})
|
|
235
|
+
},
|
|
224
236
|
"lucy-vton-2": {
|
|
225
237
|
urlPath: "/v1/stream",
|
|
226
238
|
name: "lucy-vton-2",
|