@picsart/ai-sdk 6.30.0 → 6.31.0
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/_vendor/workflows-types/index.d.ts +705 -689
- package/index.d.ts +9 -1
- package/index.js +60 -9
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -203,6 +203,13 @@ type ModelInputById = {
|
|
|
203
203
|
duration?: number;
|
|
204
204
|
manifestDisclosure?: boolean;
|
|
205
205
|
};
|
|
206
|
+
"depth-anything-video": {
|
|
207
|
+
videoUrl: string;
|
|
208
|
+
model?: "VDA-Small" | "VDA-Base" | "VDA-Large";
|
|
209
|
+
colormap?: "grayscale" | "turbo" | "inferno" | "magma" | "viridis";
|
|
210
|
+
resolution?: "auto" | "360p" | "480p" | "720p" | "1080p";
|
|
211
|
+
sideBySide?: boolean;
|
|
212
|
+
};
|
|
206
213
|
"eleven-audio-isolation": {
|
|
207
214
|
audioUrl: string;
|
|
208
215
|
};
|
|
@@ -2468,7 +2475,7 @@ interface ModelFilter {
|
|
|
2468
2475
|
release?: ReleaseTag[];
|
|
2469
2476
|
}
|
|
2470
2477
|
|
|
2471
|
-
type AppProvider = 'picsart' | 'google' | 'kling' | 'grok' | 'openai' | 'flux' | 'ideogram' | 'elevenlabs' | 'minimax' | 'wan' | 'seedance' | 'ltx' | 'seedream' | 'seedaudio' | 'hunyuan' | 'pika' | 'runway' | 'luma' | 'ovi' | 'creatify' | 'veed' | 'bytedance' | 'qwen' | 'reve' | 'recraft' | 'videography' | 'topaz' | 'heygen' | 'happyhorse' | 'pixverse' | 'anthropic' | 'async' | 'captionsai' | 'meta' | 'typesafe';
|
|
2478
|
+
type AppProvider = 'picsart' | 'google' | 'kling' | 'grok' | 'openai' | 'flux' | 'ideogram' | 'elevenlabs' | 'minimax' | 'wan' | 'seedance' | 'ltx' | 'seedream' | 'seedaudio' | 'hunyuan' | 'pika' | 'runway' | 'luma' | 'ovi' | 'creatify' | 'veed' | 'bytedance' | 'qwen' | 'reve' | 'recraft' | 'videography' | 'topaz' | 'heygen' | 'happyhorse' | 'pixverse' | 'anthropic' | 'async' | 'captionsai' | 'meta' | 'typesafe' | 'depth-anything';
|
|
2472
2479
|
/** Provider used by model definitions. */
|
|
2473
2480
|
type Provider = AppProvider;
|
|
2474
2481
|
/** App generation modes. `json` marks structured-output models (judges,
|
|
@@ -3353,6 +3360,7 @@ declare const Models: {
|
|
|
3353
3360
|
readonly ClaudeSonnet5: "claude-sonnet-5";
|
|
3354
3361
|
readonly CreatifyAurora: "creatify-aurora";
|
|
3355
3362
|
readonly CreatifyBoreal: "creatify-boreal";
|
|
3363
|
+
readonly DepthAnythingVideo: "depth-anything-video";
|
|
3356
3364
|
readonly ElevenAudioIsolation: "eleven-audio-isolation";
|
|
3357
3365
|
readonly ElevenDialogueV4: "eleven-dialogue-v4";
|
|
3358
3366
|
readonly ElevenDubbing: "eleven-dubbing";
|
package/index.js
CHANGED
|
@@ -795,7 +795,8 @@ var providers = {
|
|
|
795
795
|
async: { color: "#5E5CE6", label: "AA", name: "Async AI" },
|
|
796
796
|
captionsai: { color: "#1D1F20", label: "MR", name: "Mirage" },
|
|
797
797
|
meta: { color: "#0081FB", label: "MT", name: "Meta" },
|
|
798
|
-
typesafe: { color: "#3E6B8F", label: "TS", name: "TypeSafe" }
|
|
798
|
+
typesafe: { color: "#3E6B8F", label: "TS", name: "TypeSafe" },
|
|
799
|
+
"depth-anything": { color: "#0EA5E9", label: "DA", name: "Depth Anything" }
|
|
799
800
|
};
|
|
800
801
|
|
|
801
802
|
// src/core/descriptors/presets.ts
|
|
@@ -1173,7 +1174,7 @@ var passthroughPayload = (paramConfig) => (ctx) => {
|
|
|
1173
1174
|
return payload;
|
|
1174
1175
|
};
|
|
1175
1176
|
function defineModels(provider, configs) {
|
|
1176
|
-
const
|
|
1177
|
+
const MODELS40 = [];
|
|
1177
1178
|
for (const c of configs) {
|
|
1178
1179
|
const prov = c.provider ?? provider;
|
|
1179
1180
|
const resolvedPayload = c.buildPayload ?? passthroughPayload(c.paramConfig);
|
|
@@ -1209,19 +1210,19 @@ function defineModels(provider, configs) {
|
|
|
1209
1210
|
if (c.constraints !== void 0) model.constraints = c.constraints;
|
|
1210
1211
|
const contract = createModelContract(model);
|
|
1211
1212
|
model.outputSchema = c.outputSchema ?? contract.output;
|
|
1212
|
-
|
|
1213
|
+
MODELS40.push(model);
|
|
1213
1214
|
}
|
|
1214
|
-
return { MODELS:
|
|
1215
|
+
return { MODELS: MODELS40 };
|
|
1215
1216
|
}
|
|
1216
|
-
function registerPayloads(
|
|
1217
|
+
function registerPayloads(MODELS40, payloads) {
|
|
1217
1218
|
for (const [id, builder] of Object.entries(payloads)) {
|
|
1218
|
-
const model =
|
|
1219
|
+
const model = MODELS40.find((m) => m.id === id);
|
|
1219
1220
|
if (model) model.buildPayload = builder;
|
|
1220
1221
|
}
|
|
1221
1222
|
}
|
|
1222
|
-
function registerEditPayloads(
|
|
1223
|
+
function registerEditPayloads(MODELS40, payloads) {
|
|
1223
1224
|
for (const [id, builder] of Object.entries(payloads)) {
|
|
1224
|
-
const model =
|
|
1225
|
+
const model = MODELS40.find((m) => m.id === id);
|
|
1225
1226
|
if (model) model.buildEditPayload = builder;
|
|
1226
1227
|
}
|
|
1227
1228
|
}
|
|
@@ -10781,6 +10782,53 @@ registerPayloads(MODELS38, {
|
|
|
10781
10782
|
"typesafe-evaluate": buildEvaluatePayload
|
|
10782
10783
|
});
|
|
10783
10784
|
|
|
10785
|
+
// src/vendors/catalog/depth-anything.ts
|
|
10786
|
+
var { MODELS: MODELS39 } = defineModels("depth-anything", [
|
|
10787
|
+
{
|
|
10788
|
+
// Billed per second of the source clip at one flat rate, so none of the
|
|
10789
|
+
// knobs below changes the price. `max_frames` / `output_fps` are left to
|
|
10790
|
+
// the vendor defaults on purpose: a frame cap would shorten the processed
|
|
10791
|
+
// clip while billing still counts the whole source.
|
|
10792
|
+
id: "depth-anything-video",
|
|
10793
|
+
name: "Video Depth Anything",
|
|
10794
|
+
modelId: "fal-ai-depth-anything-video",
|
|
10795
|
+
addedAt: "2026-10-08",
|
|
10796
|
+
workflow: "depth-anything-video",
|
|
10797
|
+
estimatedTime: 60,
|
|
10798
|
+
mode: "video",
|
|
10799
|
+
inputType: "v2v",
|
|
10800
|
+
description: "Estimate temporally consistent depth for every frame of a video and render it as a depth-map video \u2014 grayscale or a color map, optionally side by side with the source.",
|
|
10801
|
+
features: [
|
|
10802
|
+
feat("Depth Map", "characteristic"),
|
|
10803
|
+
feat("Video Input", "input"),
|
|
10804
|
+
feat("1080p", "resolution")
|
|
10805
|
+
],
|
|
10806
|
+
paramConfig: {
|
|
10807
|
+
...params.videoInput("Source Video", "asset", true),
|
|
10808
|
+
// Small is fastest, Large is the most accurate.
|
|
10809
|
+
...p.enum("model", ["VDA-Small", "VDA-Base", "VDA-Large"], "VDA-Large", { label: "Model Size" }),
|
|
10810
|
+
...p.enum("colormap", ["grayscale", "turbo", "inferno", "magma", "viridis"], "grayscale", { label: "Color Map" }),
|
|
10811
|
+
// 'auto' keeps the source resolution, capped at 1080p.
|
|
10812
|
+
...params.resolution(["auto", "360p", "480p", "720p", "1080p"], "auto"),
|
|
10813
|
+
...p.boolean("sideBySide", false, "Side by Side")
|
|
10814
|
+
}
|
|
10815
|
+
}
|
|
10816
|
+
]);
|
|
10817
|
+
|
|
10818
|
+
// src/vendors/catalog/depth-anything.payloads.ts
|
|
10819
|
+
var buildDepthAnythingVideoPayload = (input) => ({
|
|
10820
|
+
video_url: input.videoUrl,
|
|
10821
|
+
model: input.model ?? "VDA-Large",
|
|
10822
|
+
colormap: input.colormap ?? "grayscale",
|
|
10823
|
+
resolution: input.resolution ?? "auto",
|
|
10824
|
+
side_by_side: input.sideBySide ?? false,
|
|
10825
|
+
// The .npz export is a second, non-media output the SDK has no slot for.
|
|
10826
|
+
include_raw_depths: false
|
|
10827
|
+
});
|
|
10828
|
+
registerPayloads(MODELS39, {
|
|
10829
|
+
"depth-anything-video": buildDepthAnythingVideoPayload
|
|
10830
|
+
});
|
|
10831
|
+
|
|
10784
10832
|
// src/vendors/catalog/creatify.payloads.ts
|
|
10785
10833
|
var buildCreatifyBorealPayload = (input) => ({
|
|
10786
10834
|
prompt: input.prompt,
|
|
@@ -10936,7 +10984,8 @@ var ALL_MODELS = [
|
|
|
10936
10984
|
...MODELS35,
|
|
10937
10985
|
...MODELS36,
|
|
10938
10986
|
...MODELS37,
|
|
10939
|
-
...MODELS38
|
|
10987
|
+
...MODELS38,
|
|
10988
|
+
...MODELS39
|
|
10940
10989
|
];
|
|
10941
10990
|
var getModelsByMode = (mode, includeHidden = false) => ALL_MODELS.filter((m) => m.mode === mode && (includeHidden || isVisibleForReleases(m)));
|
|
10942
10991
|
|
|
@@ -13648,6 +13697,7 @@ var ClaudeSonnet46 = "claude-sonnet-4-6";
|
|
|
13648
13697
|
var ClaudeSonnet5 = "claude-sonnet-5";
|
|
13649
13698
|
var CreatifyAurora = "creatify-aurora";
|
|
13650
13699
|
var CreatifyBoreal = "creatify-boreal";
|
|
13700
|
+
var DepthAnythingVideo = "depth-anything-video";
|
|
13651
13701
|
var ElevenAudioIsolation = "eleven-audio-isolation";
|
|
13652
13702
|
var ElevenDialogueV4 = "eleven-dialogue-v4";
|
|
13653
13703
|
var ElevenDubbing = "eleven-dubbing";
|
|
@@ -13906,6 +13956,7 @@ var Models = {
|
|
|
13906
13956
|
ClaudeSonnet5,
|
|
13907
13957
|
CreatifyAurora,
|
|
13908
13958
|
CreatifyBoreal,
|
|
13959
|
+
DepthAnythingVideo,
|
|
13909
13960
|
ElevenAudioIsolation,
|
|
13910
13961
|
ElevenDialogueV4,
|
|
13911
13962
|
ElevenDubbing,
|