@decartai/sdk 0.1.10 → 0.1.12

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.
@@ -143,7 +143,7 @@ interface PromptInput {
143
143
  * This allows different models to have field-specific documentation while maintaining type safety.
144
144
  * Specific models are checked first, then falls back to category-based selection.
145
145
  */
146
- type ModelSpecificInputs<T extends ModelDefinition> = T["name"] extends "lucy-pro-i2i" | "lucy-image-2" ? ImageEditingInputs : T["name"] extends "lucy-restyle-v2v" | "lucy-restyle-2" ? VideoRestyleInputs : T["name"] extends "lucy-2.1" | "lucy-vton-2" | "lucy-vton-3" | "lucy-2.1-vton-2" | "lucy-vton-latest" ? VideoEdit2Inputs : T["name"] extends "lucy-pro-v2v" | "lucy-clip" ? VideoEditInputs : T["name"] extends ImageModels ? ImageGenerationInputs : T["name"] extends VideoModels ? VideoModelInputs : PromptInput;
146
+ type ModelSpecificInputs<T extends ModelDefinition> = T["name"] extends "lucy-pro-i2i" | "lucy-image-2" ? ImageEditingInputs : T["name"] extends "lucy-restyle-v2v" | "lucy-restyle-2" ? VideoRestyleInputs : T["name"] extends "lucy-2.1" | "lucy-2.5" | "lucy-vton-2" | "lucy-vton-3" | "lucy-2.1-vton-2" | "lucy-vton-latest" ? VideoEdit2Inputs : T["name"] extends "lucy-pro-v2v" | "lucy-clip" ? VideoEditInputs : T["name"] extends ImageModels ? ImageGenerationInputs : T["name"] extends VideoModels ? VideoModelInputs : PromptInput;
147
147
  interface ProcessInputs {
148
148
  /**
149
149
  * Random seed for reproducible results.
@@ -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 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">]>;
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">]>;
29
+ declare const videoModels: z.ZodUnion<readonly [z.ZodLiteral<"lucy-clip">, 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<"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-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<"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
@@ -372,6 +390,7 @@ declare const models: {
372
390
  * Available options:
373
391
  * - `"lucy-clip"` - Video-to-video editing
374
392
  * - `"lucy-2.1"` - Long-form video editing (Lucy 2.1)
393
+ * - `"lucy-2.5"` - Long-form video editing (Lucy 2.5)
375
394
  * - `"lucy-vton-2"` - Virtual try-on 2 video editing
376
395
  * - `"lucy-vton-3"` - Virtual try-on 3 video editing
377
396
  * - `"lucy-restyle-2"` - Video restyling
@@ -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"
@@ -18,6 +20,7 @@ const CANONICAL_REALTIME_MODEL_NAMES = [
18
20
  const CANONICAL_VIDEO_MODEL_NAMES = [
19
21
  "lucy-clip",
20
22
  "lucy-2.1",
23
+ "lucy-2.5",
21
24
  "lucy-vton-2",
22
25
  "lucy-vton-3",
23
26
  "lucy-restyle-2"
@@ -48,6 +51,7 @@ function warnDeprecated(model) {
48
51
  }
49
52
  const realtimeModels = z.union([
50
53
  z.literal("lucy-2.1"),
54
+ z.literal("lucy-2.5"),
51
55
  z.literal("lucy-vton-2"),
52
56
  z.literal("lucy-vton-3"),
53
57
  z.literal("lucy-restyle-2"),
@@ -60,6 +64,7 @@ const realtimeModels = z.union([
60
64
  const videoModels = z.union([
61
65
  z.literal("lucy-clip"),
62
66
  z.literal("lucy-2.1"),
67
+ z.literal("lucy-2.5"),
63
68
  z.literal("lucy-vton-2"),
64
69
  z.literal("lucy-vton-3"),
65
70
  z.literal("lucy-restyle-2"),
@@ -178,6 +183,7 @@ const modelInputSchemas = {
178
183
  "lucy-image-2": imageEditSchema,
179
184
  "lucy-restyle-2": restyleSchema,
180
185
  "lucy-2.1": videoEdit2Schema,
186
+ "lucy-2.5": videoEdit2Schema,
181
187
  "lucy-vton-2": videoEdit2Schema,
182
188
  "lucy-vton-3": videoEdit2Schema,
183
189
  "lucy-latest": videoEdit2Schema,
@@ -221,6 +227,14 @@ const _models = {
221
227
  height: 624,
222
228
  inputSchema: z.object({})
223
229
  },
230
+ "lucy-2.5": {
231
+ urlPath: "/v1/stream",
232
+ name: "lucy-2.5",
233
+ fps: 20,
234
+ width: 1088,
235
+ height: 624,
236
+ inputSchema: z.object({})
237
+ },
224
238
  "lucy-vton-2": {
225
239
  urlPath: "/v1/stream",
226
240
  name: "lucy-vton-2",
@@ -358,6 +372,15 @@ const _models = {
358
372
  height: 624,
359
373
  inputSchema: modelInputSchemas["lucy-2.1"]
360
374
  },
375
+ "lucy-2.5": {
376
+ urlPath: "/v1/generate/lucy-2.5",
377
+ queueUrlPath: "/v1/jobs/lucy-2.5",
378
+ name: "lucy-2.5",
379
+ fps: 20,
380
+ width: 1088,
381
+ height: 624,
382
+ inputSchema: modelInputSchemas["lucy-2.5"]
383
+ },
361
384
  "lucy-vton-2": {
362
385
  urlPath: "/v1/generate/lucy-vton-2",
363
386
  queueUrlPath: "/v1/jobs/lucy-vton-2",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decartai/sdk",
3
- "version": "0.1.10",
3
+ "version": "0.1.12",
4
4
  "description": "Decart's JavaScript SDK",
5
5
  "type": "module",
6
6
  "license": "MIT",