@decartai/sdk 0.1.3 → 0.1.4
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.js +3 -3
- package/package.json +1 -1
package/dist/shared/model.js
CHANGED
|
@@ -145,7 +145,7 @@ const proResolutionSchema = () => {
|
|
|
145
145
|
*/
|
|
146
146
|
const v2vResolutionSchema = z.literal("720p").optional().describe("The resolution to use for the generation").default("720p");
|
|
147
147
|
const videoEditSchema = z.object({
|
|
148
|
-
prompt: z.string().min(1).
|
|
148
|
+
prompt: z.string().min(1).describe("The prompt to use for the generation"),
|
|
149
149
|
data: fileInputSchema.describe("The video data to use for generation (File, Blob, ReadableStream, URL, or string URL). Output video is limited to 5 seconds."),
|
|
150
150
|
reference_image: fileInputSchema.optional().describe("Optional reference image to guide what to add to the video (File, Blob, ReadableStream, URL, or string URL)"),
|
|
151
151
|
seed: z.number().optional().describe("The seed to use for the generation"),
|
|
@@ -161,7 +161,7 @@ const imageEditSchema = z.object({
|
|
|
161
161
|
enhance_prompt: z.boolean().optional().describe("Whether to enhance the prompt")
|
|
162
162
|
});
|
|
163
163
|
const restyleSchema = z.object({
|
|
164
|
-
prompt: z.string().min(1).
|
|
164
|
+
prompt: z.string().min(1).optional().describe("Text prompt for the video editing"),
|
|
165
165
|
reference_image: fileInputSchema.optional().describe("Reference image to transform into a prompt (File, Blob, ReadableStream, URL, or string URL)"),
|
|
166
166
|
data: fileInputSchema.describe("Video file to process (File, Blob, ReadableStream, URL, or string URL)"),
|
|
167
167
|
seed: z.number().optional().describe("Seed for the video generation"),
|
|
@@ -169,7 +169,7 @@ const restyleSchema = z.object({
|
|
|
169
169
|
enhance_prompt: z.boolean().optional().describe("Whether to enhance the prompt (only valid with text prompt, defaults to true on backend)")
|
|
170
170
|
}).refine((data) => data.prompt !== void 0 !== (data.reference_image !== void 0), { message: "Must provide either 'prompt' or 'reference_image', but not both" }).refine((data) => !(data.reference_image !== void 0 && data.enhance_prompt !== void 0), { message: "'enhance_prompt' is only valid when using 'prompt', not 'reference_image'" });
|
|
171
171
|
const videoEdit2Schema = z.object({
|
|
172
|
-
prompt: z.string().
|
|
172
|
+
prompt: z.string().describe("Text prompt for the video editing. Send an empty string if you want no text prompt."),
|
|
173
173
|
reference_image: fileInputSchema.optional().describe("Optional reference image to guide the edit (File, Blob, ReadableStream, URL, or string URL)"),
|
|
174
174
|
data: fileInputSchema.describe("Video file to process (File, Blob, ReadableStream, URL, or string URL)"),
|
|
175
175
|
seed: z.number().optional().describe("The seed to use for the generation"),
|