@decartai/sdk 0.0.33 → 0.0.34

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.
@@ -49,6 +49,27 @@ interface VideoModelInputs {
49
49
  */
50
50
  data?: FileInput;
51
51
  }
52
+ /**
53
+ * Model-specific input documentation for lucy-pro-v2v.
54
+ */
55
+ interface VideoEditInputs {
56
+ /**
57
+ * Text description to use for the video editing.
58
+ *
59
+ * See our [Prompt Engineering](https://docs.platform.decart.ai/models/video/video-generation#prompt-engineering) guide for how to write prompt for Decart video models effectively.
60
+ */
61
+ prompt: string;
62
+ /**
63
+ * Video file to process.
64
+ * Can be a File, Blob, ReadableStream, URL, or string URL.
65
+ */
66
+ data: FileInput;
67
+ /**
68
+ * Optional reference image to guide what to add to the video.
69
+ * Can be a File, Blob, ReadableStream, URL, or string URL.
70
+ */
71
+ reference_image?: FileInput;
72
+ }
52
73
  /**
53
74
  * Model-specific input documentation for lucy-restyle-v2v.
54
75
  * Allows either prompt or reference_image (mutually exclusive).
@@ -85,7 +106,7 @@ interface PromptInput {
85
106
  * This allows different models to have field-specific documentation while maintaining type safety.
86
107
  * Specific models are checked first, then falls back to category-based selection.
87
108
  */
88
- type ModelSpecificInputs<T extends ModelDefinition> = T["name"] extends "lucy-pro-i2i" ? ImageEditingInputs : T["name"] extends "lucy-restyle-v2v" ? VideoRestyleInputs : T["name"] extends ImageModels ? ImageGenerationInputs : T["name"] extends VideoModels ? VideoModelInputs : PromptInput;
109
+ type ModelSpecificInputs<T extends ModelDefinition> = T["name"] extends "lucy-pro-i2i" ? ImageEditingInputs : T["name"] extends "lucy-restyle-v2v" ? VideoRestyleInputs : T["name"] extends "lucy-pro-v2v" ? VideoEditInputs : T["name"] extends ImageModels ? ImageGenerationInputs : T["name"] extends VideoModels ? VideoModelInputs : PromptInput;
89
110
  interface ProcessInputs {
90
111
  /**
91
112
  * Random seed for reproducible results.
@@ -49,6 +49,7 @@ declare const modelInputSchemas: {
49
49
  readonly "lucy-pro-v2v": z.ZodObject<{
50
50
  prompt: z.ZodString;
51
51
  data: z.ZodUnion<readonly [z.ZodCustom<File, File>, z.ZodCustom<Blob, Blob>, z.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>, z.ZodCustom<URL, URL>, z.ZodURL]>;
52
+ 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]>>;
52
53
  seed: z.ZodOptional<z.ZodNumber>;
53
54
  resolution: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"720p">>>;
54
55
  enhance_prompt: z.ZodOptional<z.ZodBoolean>;
@@ -87,6 +87,7 @@ const modelInputSchemas = {
87
87
  "lucy-pro-v2v": z.object({
88
88
  prompt: z.string().min(1).max(1e3).describe("The prompt to use for the generation"),
89
89
  data: fileInputSchema.describe("The video data to use for generation (File, Blob, ReadableStream, URL, or string URL). Output video is limited to 5 seconds."),
90
+ reference_image: fileInputSchema.optional().describe("Optional reference image to guide what to add to the video (File, Blob, ReadableStream, URL, or string URL)"),
90
91
  seed: z.number().optional().describe("The seed to use for the generation"),
91
92
  resolution: proV2vResolutionSchema,
92
93
  enhance_prompt: z.boolean().optional().describe("Whether to enhance the prompt"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decartai/sdk",
3
- "version": "0.0.33",
3
+ "version": "0.0.34",
4
4
  "description": "Decart's JavaScript SDK",
5
5
  "type": "module",
6
6
  "license": "MIT",