@nodaro/shared 3.27.0 → 3.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.
Files changed (50) hide show
  1. package/dist/index.cjs +1050 -105
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.cts +801 -46
  4. package/dist/index.d.ts +801 -46
  5. package/dist/index.js +950 -106
  6. package/dist/index.js.map +1 -1
  7. package/package.json +1 -1
  8. package/src/__tests__/entity-image-handle.test.ts +61 -1
  9. package/src/__tests__/json-kinds.test.ts +10 -0
  10. package/src/__tests__/model-seed-capability.test.ts +34 -0
  11. package/src/__tests__/node-preset-extract.test.ts +8 -0
  12. package/src/__tests__/node-run-routes.test.ts +63 -0
  13. package/src/__tests__/node-runtime-keys.test.ts +61 -0
  14. package/src/__tests__/pitch-tempo-pricing.test.ts +62 -0
  15. package/src/__tests__/presentation-utils.test.ts +14 -0
  16. package/src/__tests__/producer-types.test.ts +15 -0
  17. package/src/__tests__/render-nodes.test.ts +38 -4
  18. package/src/__tests__/seedance-draft.test.ts +74 -0
  19. package/src/__tests__/ugc-clip-saved-list.test.ts +19 -0
  20. package/src/__tests__/ugc-node-wires.test.ts +600 -0
  21. package/src/__tests__/ugc-run-state.test.ts +80 -3
  22. package/src/__tests__/video-depth.test.ts +146 -0
  23. package/src/__tests__/video-mask.test.ts +77 -0
  24. package/src/__tests__/workflow-export-strip.test.ts +14 -0
  25. package/src/credit-estimators/index.ts +10 -0
  26. package/src/credit-estimators/pitch-tempo.ts +68 -0
  27. package/src/credit-identifiers.ts +32 -7
  28. package/src/entity-image-handle.ts +48 -1
  29. package/src/fan-out-rows.ts +2 -0
  30. package/src/index.ts +15 -1
  31. package/src/json-kinds.ts +9 -0
  32. package/src/mask-composite.ts +108 -0
  33. package/src/model-catalog.ts +101 -2
  34. package/src/model-constants.ts +3 -0
  35. package/src/model-tree.ts +2 -0
  36. package/src/node-mappable-fields.ts +2 -0
  37. package/src/node-preset-export.ts +2 -2
  38. package/src/node-preset-extract.ts +6 -4
  39. package/src/node-run-routes.ts +76 -0
  40. package/src/node-runtime-keys.ts +42 -1
  41. package/src/presentation-utils.ts +6 -2
  42. package/src/producer-types.ts +19 -0
  43. package/src/render-nodes.ts +14 -5
  44. package/src/seedance-draft.ts +64 -0
  45. package/src/social-post.ts +13 -0
  46. package/src/ugc-node-wires.ts +623 -0
  47. package/src/ugc-run-state.ts +60 -5
  48. package/src/video-depth.ts +151 -0
  49. package/src/video-mask.ts +96 -0
  50. package/src/workflow-export.ts +3 -1
package/dist/index.cjs CHANGED
@@ -39,6 +39,25 @@ var FREECUT_EXPORT_COMPLETE = "FREECUT_EXPORT_COMPLETE";
39
39
  var FREECUT_EXPORT_PROGRESS = "FREECUT_EXPORT_PROGRESS";
40
40
  var FREECUT_REQUEST_IMPORT = "FREECUT_REQUEST_IMPORT";
41
41
 
42
+ // src/seedance-draft.ts
43
+ var SEEDANCE_DRAFT_MODELS = ["seedance-2-5"];
44
+ function isSeedanceDraftCapable(provider) {
45
+ return !!provider && SEEDANCE_DRAFT_MODELS.includes(provider);
46
+ }
47
+ var SEEDANCE_DRAFT_RESOLUTION = "480p";
48
+ var SEEDANCE_DRAFT_FINALIZE_PROVIDER = "seedance-2-5-hd";
49
+ var SEEDANCE_DRAFT_FINALIZE_RESOLUTION = "1080p";
50
+ var SEEDANCE_DRAFT_FINALIZE_MIN_SEC = 4;
51
+ var SEEDANCE_DRAFT_FINALIZE_MAX_SEC = 30;
52
+ function seedanceDraftFinalizeBillableSec(measuredSec) {
53
+ const whole = Math.max(1, Math.ceil(measuredSec - 0.25));
54
+ return Math.min(SEEDANCE_DRAFT_FINALIZE_MAX_SEC, Math.max(SEEDANCE_DRAFT_FINALIZE_MIN_SEC, whole));
55
+ }
56
+ function seedanceDraftFinalizeCreditId(durationSec, hasRefVideo) {
57
+ const n = seedanceDraftFinalizeBillableSec(durationSec);
58
+ return `${SEEDANCE_DRAFT_FINALIZE_PROVIDER}:${n}s${hasRefVideo ? "-ref" : ""}`;
59
+ }
60
+
42
61
  // src/flux2-pricing.ts
43
62
  var FLUX2_RES_MP = ["0.5", "1", "2", "4"];
44
63
  function isFlux2Model(m) {
@@ -1522,6 +1541,8 @@ var VIDEO_MODELS = {
1522
1541
  defaultDuration: 8,
1523
1542
  autoDuration: true,
1524
1543
  resolutions: ["480p", "720p", "1080p"],
1544
+ // KIE refuses a seed on Seedance 2.5 (422) — the provider config omits it.
1545
+ noSeed: true,
1525
1546
  pricing: [
1526
1547
  { identifier: "seedance-2-5", credits: 1260, note: "default 8s 720p \u2014 see :Ns:res variants for exact" },
1527
1548
  { identifier: "seedance-2-5:8s:480p", credits: 560, note: "8s 480p" },
@@ -1838,6 +1859,8 @@ var VIDEO_MODELS = {
1838
1859
  durations: [3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15],
1839
1860
  defaultDuration: 5,
1840
1861
  resolutions: ["720p", "1080p"],
1862
+ noSeed: true,
1863
+ // HappyHorse 1.1 dropped `seed` from its schema
1841
1864
  pricing: [
1842
1865
  { identifier: "happyhorse", credits: 282, note: "5s 720p default \u2014 per-second: ~5.7 cr/s @720p, ~7.3 cr/s @1080p" }
1843
1866
  ]
@@ -1854,6 +1877,8 @@ var VIDEO_MODELS = {
1854
1877
  durations: [3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15],
1855
1878
  defaultDuration: 5,
1856
1879
  resolutions: ["720p", "1080p"],
1880
+ noSeed: true,
1881
+ // HappyHorse 1.1 dropped `seed` from its schema
1857
1882
  pricing: [
1858
1883
  { identifier: "happyhorse-i2v", credits: 282, note: "5s 720p default \u2014 per-second: ~5.7 cr/s @720p, ~7.3 cr/s @1080p" }
1859
1884
  ]
@@ -1872,6 +1897,8 @@ var VIDEO_MODELS = {
1872
1897
  defaultDuration: 5,
1873
1898
  resolutions: ["720p", "1080p"],
1874
1899
  features: ["reference-image"],
1900
+ noSeed: true,
1901
+ // HappyHorse 1.1 dropped `seed` from its schema
1875
1902
  pricing: [
1876
1903
  { identifier: "happyhorse-ref2v", credits: 282, note: "5s 720p default \u2014 per-second: ~5.7 cr/s @720p, ~7.3 cr/s @1080p" }
1877
1904
  ]
@@ -2034,6 +2061,27 @@ var VIDEO_MODELS = {
2034
2061
  useCases: ["upscale", "high-res"],
2035
2062
  pricing: [{ identifier: "veo-4k", credits: 380 }]
2036
2063
  },
2064
+ // Seedance 2.5 Draft finalize (seedance-draft.ts): re-renders a Seedance 2.5
2065
+ // DRAFT as the same take at 1080p. Priced per output second of the draft; a
2066
+ // draft made with a reference VIDEO bills its `-ref` rate on input + output
2067
+ // seconds. Only works on a completed Seedance 2.5 draft.
2068
+ "seedance-2-5-hd": {
2069
+ id: "seedance-2-5-hd",
2070
+ kind: "video",
2071
+ modes: ["video-upscale"],
2072
+ family: "Bytedance",
2073
+ label: "Seedance 2.5 HD (from draft)",
2074
+ series: "Seedance",
2075
+ description: "Finalize a Seedance 2.5 draft: the same take, frame for frame, re-rendered at 1080p.",
2076
+ useCases: ["upscale", "high-res"],
2077
+ pricing: [
2078
+ { identifier: "seedance-2-5-hd", credits: 3160, note: "default 8s \u2014 see :Ns variants for exact" },
2079
+ { identifier: "seedance-2-5-hd:4s", credits: 1580, note: "4s draft" },
2080
+ { identifier: "seedance-2-5-hd:8s", credits: 3160, note: "8s draft" },
2081
+ { identifier: "seedance-2-5-hd:30s", credits: 11850, note: "30s draft (max)" },
2082
+ { identifier: "seedance-2-5-hd:8s-ref", credits: 1900, note: "per-second rate of a draft made with a reference video; billed on input + output seconds" }
2083
+ ]
2084
+ },
2037
2085
  "topaz-video": {
2038
2086
  id: "topaz-video",
2039
2087
  kind: "video",
@@ -2191,6 +2239,45 @@ var VIDEO_MODELS = {
2191
2239
  { identifier: "volcengine-lipsync:300s", credits: 6e3, note: "5-min ceiling" }
2192
2240
  ]
2193
2241
  },
2242
+ // ── Video Depth ── (video-depth node; billed per duration bucket via
2243
+ // videoDepthCreditId in video-depth.ts — `<provider>:<bucket>s`, bare row =
2244
+ // the 300 s ceiling, same shape as volcengine-lipsync.)
2245
+ "video-depth-anything": {
2246
+ id: "video-depth-anything",
2247
+ kind: "video",
2248
+ modes: ["video-depth"],
2249
+ family: "Depth Anything",
2250
+ label: "Video Depth Anything",
2251
+ series: "Depth Anything",
2252
+ description: "Temporally consistent depth video from any clip. Grayscale or colormapped, up to 2,400 frames or 300 seconds.",
2253
+ useCases: ["depth", "video-to-video", "compositing"],
2254
+ pricing: [
2255
+ { identifier: "video-depth-anything", credits: 6e3, note: "5-min ceiling (no duration given)" },
2256
+ { identifier: "video-depth-anything:15s", credits: 300 },
2257
+ { identifier: "video-depth-anything:30s", credits: 600 },
2258
+ { identifier: "video-depth-anything:60s", credits: 1200 },
2259
+ { identifier: "video-depth-anything:120s", credits: 2400 },
2260
+ { identifier: "video-depth-anything:300s", credits: 6e3, note: "5-min ceiling" }
2261
+ ]
2262
+ },
2263
+ "depth-anything-frames": {
2264
+ id: "depth-anything-frames",
2265
+ kind: "video",
2266
+ modes: ["video-depth"],
2267
+ family: "Depth Anything",
2268
+ label: "Depth Anything (per frame)",
2269
+ series: "Depth Anything",
2270
+ description: "Depth Anything v1 run on each frame. Grayscale or inferno colormap; may flicker between frames. Up to 80 s.",
2271
+ useCases: ["depth", "video-to-video"],
2272
+ pricing: [
2273
+ { identifier: "depth-anything-frames", credits: 600, note: "5-min ceiling (no duration given)" },
2274
+ { identifier: "depth-anything-frames:15s", credits: 30 },
2275
+ { identifier: "depth-anything-frames:30s", credits: 60 },
2276
+ { identifier: "depth-anything-frames:60s", credits: 120 },
2277
+ { identifier: "depth-anything-frames:120s", credits: 240 },
2278
+ { identifier: "depth-anything-frames:300s", credits: 600, note: "5-min ceiling" }
2279
+ ]
2280
+ },
2194
2281
  // ── Gemini video analysis ── (Gemini-only; billed per duration bucket — the
2195
2282
  // structural credit formula lives in video-analysis-pricing.ts. Composite id
2196
2283
  // shape `video-analysis:<model>:<bucket>s` mirrors volcengine-lipsync: bare
@@ -3090,8 +3177,18 @@ function readOptionToken(value) {
3090
3177
  function normalizeVideoRequestParams(modelId, input) {
3091
3178
  const m = MODEL_CATALOG[modelId];
3092
3179
  const aspect = readOptionToken(input.aspectRatio);
3093
- const res = readOptionToken(input.resolution);
3180
+ const requestedRes = readOptionToken(input.resolution);
3181
+ const draft = input.draft === true && isSeedanceDraftCapable(modelId);
3182
+ const res = draft ? SEEDANCE_DRAFT_RESOLUTION : requestedRes;
3094
3183
  const out = { aspectRatio: aspect, resolution: res, adjustments: [] };
3184
+ if (draft && requestedRes !== void 0 && requestedRes.toLowerCase() !== SEEDANCE_DRAFT_RESOLUTION) {
3185
+ out.adjustments.push({
3186
+ field: "resolution",
3187
+ from: requestedRes,
3188
+ to: SEEDANCE_DRAFT_RESOLUTION,
3189
+ reason: `A Seedance draft renders at ${SEEDANCE_DRAFT_RESOLUTION} only \u2014 using "${SEEDANCE_DRAFT_RESOLUTION}" instead of "${requestedRes}". Finalize the draft to get the same take at 1080p.`
3190
+ });
3191
+ }
3095
3192
  if (!m) return out;
3096
3193
  if (m.aspectRatios?.length && aspect && !PASSTHROUGH_ASPECT_TOKENS.has(aspect.toLowerCase())) {
3097
3194
  const next = fitAspectRatioToModel(modelId, aspect);
@@ -3184,6 +3281,10 @@ function getCreditRange(modelId) {
3184
3281
  function hasFeature(modelId, feature) {
3185
3282
  return MODEL_CATALOG[modelId]?.features?.includes(feature) ?? false;
3186
3283
  }
3284
+ function modelTakesSeed(modelId) {
3285
+ if (!modelId) return true;
3286
+ return MODEL_CATALOG[modelId]?.noSeed !== true;
3287
+ }
3187
3288
  function modelsWithFeature(feature) {
3188
3289
  return Object.values(MODEL_CATALOG).filter((m) => m.features?.includes(feature)).map((m) => m.id);
3189
3290
  }
@@ -3909,7 +4010,10 @@ var FACE_SWAP_PROVIDERS = [
3909
4010
  var VIDEO_UPSCALE_PROVIDERS = [
3910
4011
  "topaz",
3911
4012
  "veo-1080p",
3912
- "veo-4k"
4013
+ "veo-4k",
4014
+ // Seedance 2.5 Draft finalize: re-renders a Seedance 2.5 DRAFT (by its task
4015
+ // id) as the same take at 1080p. See seedance-draft.ts.
4016
+ "seedance-2-5-hd"
3913
4017
  ];
3914
4018
  var EXTEND_VIDEO_PROVIDERS = [
3915
4019
  "veo-extend",
@@ -5744,8 +5848,17 @@ function speedRampCreditId(quality) {
5744
5848
  function applyEdlCreditId(quality) {
5745
5849
  return quality === "proxy" ? "apply-edl:proxy" : "apply-edl";
5746
5850
  }
5747
- function speakerViewCreditId(quality) {
5748
- return quality === "proxy" ? "speaker-view:proxy" : "speaker-view";
5851
+ var SPEAKER_VIEW_PRICE_TIERS = ["standard", "complex"];
5852
+ var SPEAKER_VIEW_CREDIT_IDS = Object.freeze([
5853
+ "speaker-view",
5854
+ "speaker-view:proxy",
5855
+ "speaker-view:complex",
5856
+ "speaker-view:complex:proxy"
5857
+ ]);
5858
+ function speakerViewCreditId(quality, tier) {
5859
+ const proxy = quality === "proxy";
5860
+ if (tier === "standard") return proxy ? "speaker-view:proxy" : "speaker-view";
5861
+ return proxy ? "speaker-view:complex:proxy" : "speaker-view:complex";
5749
5862
  }
5750
5863
  function sunoCreditType(model, operation) {
5751
5864
  if (!SUNO_VERSION_PRICED_OPERATIONS.includes(operation)) {
@@ -6016,6 +6129,44 @@ function speechCredits(chars, perUnitCredits) {
6016
6129
  return speechPriceUnits(chars) * perUnitCredits;
6017
6130
  }
6018
6131
 
6132
+ // src/credit-estimators/pitch-tempo.ts
6133
+ var PITCH_TEMPO_PRICING = {
6134
+ /** The rate row: credits per started minute. Never reserved by itself. */
6135
+ RATE_CREDIT_ID: "pitch-tempo",
6136
+ /** The longest input a run accepts, in seconds (the route refuses longer). */
6137
+ MAX_DURATION_SEC: 1800,
6138
+ /** The most minutes a `pitch-tempo:<N>m` id can carry. */
6139
+ MAX_MINUTES: 30,
6140
+ /** The rate row's launch value (admin-retunable in /admin/models). */
6141
+ CREDITS_PER_MINUTE_DEFAULT: 20
6142
+ };
6143
+ var PITCH_TEMPO_LIMITS = {
6144
+ SEMITONES_MIN: -12,
6145
+ SEMITONES_MAX: 12,
6146
+ TEMPO_MIN: 0.5,
6147
+ TEMPO_MAX: 2
6148
+ };
6149
+ function pitchTempoStartedMinutes(durationSec) {
6150
+ if (typeof durationSec !== "number" || !Number.isFinite(durationSec) || durationSec <= 0) return 1;
6151
+ return Math.min(PITCH_TEMPO_PRICING.MAX_MINUTES, Math.max(1, Math.ceil(durationSec / 60)));
6152
+ }
6153
+ function pitchTempoCreditId(durationSec) {
6154
+ return `pitch-tempo:${pitchTempoStartedMinutes(durationSec)}m`;
6155
+ }
6156
+ function parsePitchTempoCreditId(id) {
6157
+ const m = /^pitch-tempo:(\d+)m$/.exec(id);
6158
+ if (!m) return void 0;
6159
+ const minutes = Number(m[1]);
6160
+ if (!Number.isInteger(minutes) || minutes < 1 || minutes > PITCH_TEMPO_PRICING.MAX_MINUTES) return void 0;
6161
+ return { minutes };
6162
+ }
6163
+ function pitchTempoBaseCredits(ratePerMinute, minutes) {
6164
+ return Math.max(1, Math.ceil(ratePerMinute * minutes));
6165
+ }
6166
+ function semitonesToPitchRatio(semitones) {
6167
+ return 2 ** (semitones / 12);
6168
+ }
6169
+
6019
6170
  // src/video-duration.ts
6020
6171
  function extractVideoDurationFromNode(data) {
6021
6172
  if (!data) return void 0;
@@ -6107,6 +6258,458 @@ function resolveTopazUpscale(input) {
6107
6258
  };
6108
6259
  }
6109
6260
 
6261
+ // src/fan-out-meta.ts
6262
+ function fanOutItemMeta(output) {
6263
+ const w = output?.clipWarnings;
6264
+ const d = output?.durationSec;
6265
+ return {
6266
+ warnings: Array.isArray(w) ? w.filter((x) => typeof x === "string") : [],
6267
+ durationSec: typeof d === "number" && Number.isFinite(d) && d > 0 ? d : null
6268
+ };
6269
+ }
6270
+ function clipNotesFrom(meta, single) {
6271
+ const rows = meta && meta.length > 0 ? meta : single ? [single] : [];
6272
+ return rows.map((m, i) => ({
6273
+ clip: i + 1,
6274
+ warnings: m?.warnings ?? [],
6275
+ ...typeof m?.durationSec === "number" ? { durationSec: m.durationSec } : {}
6276
+ }));
6277
+ }
6278
+
6279
+ // src/ugc-run-state.ts
6280
+ var UGC_NODE_TYPES = /* @__PURE__ */ new Set(["ugc-creator", "ugc-script", "ugc-clips", "ugc-clip", "ugc-cards"]);
6281
+ var UGC_CREATOR_CANDIDATES_KEY = "candidates";
6282
+ var UGC_PICK_FIRST_MESSAGE = "Pick a creator first.";
6283
+ var UGC_NODE_RUN_STATE_KEYS = {
6284
+ "ugc-creator": ["result", "keepResult", "ugcOutputs", UGC_CREATOR_CANDIDATES_KEY, "optionFailed", "generatedImageUrl"],
6285
+ // `exampleLines`: a template's example run, shown until the node's own first script (display only).
6286
+ "ugc-script": ["result", "keepResult", "ugcOutputs", "exampleLines"],
6287
+ "ugc-clips": ["result", "quote", "__listResults", "ugcOutputs"],
6288
+ "ugc-clip": [
6289
+ "warnings",
6290
+ "rerender",
6291
+ "rerenderPending",
6292
+ "__listResults",
6293
+ "__listResultMeta",
6294
+ "clipWarnings",
6295
+ "durationSec",
6296
+ "ugcOutputs",
6297
+ "generatedVideoUrl",
6298
+ "generatedResults",
6299
+ "activeResultIndex"
6300
+ ],
6301
+ "ugc-cards": ["result", "ugcOutputs", "generatedText", "text"]
6302
+ };
6303
+ var UGC_OVERRIDABLE_FIELDS = {
6304
+ "ugc-creator": ["source", "gender", "photoUrl"],
6305
+ "ugc-script": ["targetDurationSec"],
6306
+ "ugc-clips": [],
6307
+ "ugc-clip": [],
6308
+ "ugc-cards": []
6309
+ };
6310
+ var KEEP_RESULT_TYPES = /* @__PURE__ */ new Set(["ugc-creator", "ugc-script"]);
6311
+ function ugcPickPending(data) {
6312
+ const candidates = data && typeof data === "object" ? data[UGC_CREATOR_CANDIDATES_KEY] : void 0;
6313
+ return Array.isArray(candidates) && candidates.length > 0;
6314
+ }
6315
+ function ugcRunWaitsForPick(runNodes, opts = {}) {
6316
+ return runNodes.some((n) => n.type === "ugc-creator" && n.id !== opts.redrawId && ugcPickPending(n.data));
6317
+ }
6318
+ var UGC_PUBLISH_PRIVATE_FIELDS = {
6319
+ "ugc-creator": ["photoUrl"]
6320
+ };
6321
+ function stripUgcRunState(nodes) {
6322
+ return nodes.map((node) => {
6323
+ const type = typeof node.type === "string" ? node.type : "";
6324
+ if (!UGC_NODE_TYPES.has(type) || !node.data || typeof node.data !== "object") return node;
6325
+ const data = { ...node.data };
6326
+ for (const key of UGC_NODE_RUN_STATE_KEYS[type] ?? []) delete data[key];
6327
+ for (const key of UGC_PUBLISH_PRIVATE_FIELDS[type] ?? []) delete data[key];
6328
+ if (KEEP_RESULT_TYPES.has(type)) data.keepResult = false;
6329
+ return { ...node, data };
6330
+ });
6331
+ }
6332
+ function findUgcLockedFields(nodes, inputOverrides) {
6333
+ if (!nodes || !inputOverrides) return [];
6334
+ const found = [];
6335
+ for (const node of nodes) {
6336
+ const type = node?.type;
6337
+ if (typeof type !== "string" || !UGC_NODE_TYPES.has(type)) continue;
6338
+ const allowed = UGC_OVERRIDABLE_FIELDS[type] ?? [];
6339
+ const fields = inputOverrides[node.id];
6340
+ if (!fields || typeof fields !== "object") continue;
6341
+ for (const field of Object.keys(fields)) {
6342
+ if (!allowed.includes(field)) found.push({ nodeId: String(node.id), nodeType: type, field });
6343
+ }
6344
+ }
6345
+ return found;
6346
+ }
6347
+
6348
+ // src/ugc-node-wires.ts
6349
+ var UGC_NOT_SERVED_MESSAGE = "UGC videos are a Nodaro Cloud feature and are not served on this deployment.";
6350
+ var UGC_VERSION_MESSAGE = "This workflow was made with a newer version of the UGC nodes.";
6351
+ var UGC_NEWER_APP_MESSAGE = "This step needs a newer app version.";
6352
+ var UGC_PICK_GONE_MESSAGE = "These creator options are no longer available. Run UGC Creator again.";
6353
+ var UGC_CREATOR_MISSING_MESSAGE = "UGC Creator has no creator yet. Run it, or pick one of its options.";
6354
+ var UGC_SCRIPT_DEFAULT_TARGET_SEC = 15;
6355
+ var UGC_SCRIPT_MIN_TARGET_SEC = 4;
6356
+ var UGC_SCRIPT_MAX_TARGET_SEC = 300;
6357
+ var MINOR_AGE_MESSAGE = "That age can't be used: UGC creators are adults only.";
6358
+ var NEEDS_GENDER = "Choose woman or man.";
6359
+ var NEEDS_PHOTO = "Connect or upload a photo of yourself.";
6360
+ var NEEDS_CATEGORY = "Run UGC Script first, or pick a product category.";
6361
+ var NEEDS_SITE = "Add the product name or website.";
6362
+ var UGC_SCRIPT_NEEDS_CHANGES = "The script needs changes:";
6363
+ var NEEDS_PLAN_OUT = "Connect the Script (sized) output of UGC Clips.";
6364
+ var NEEDS_PLAN = "Connect the Script output of UGC Script.";
6365
+ var NEEDS_TICKET = "Connect the Clips output of UGC Clips.";
6366
+ var NEEDS_VIDEO = "Connect the joined video.";
6367
+ var NEEDS_TRANSCRIPT = "Connect the Transcript output of UGC Clips.";
6368
+ var UGC_NODE_MESSAGES = Object.freeze({
6369
+ notServed: UGC_NOT_SERVED_MESSAGE,
6370
+ version: UGC_VERSION_MESSAGE,
6371
+ newerApp: UGC_NEWER_APP_MESSAGE,
6372
+ pickGone: UGC_PICK_GONE_MESSAGE,
6373
+ creatorMissing: UGC_CREATOR_MISSING_MESSAGE,
6374
+ minorAge: MINOR_AGE_MESSAGE,
6375
+ needsGender: NEEDS_GENDER,
6376
+ needsPhoto: NEEDS_PHOTO,
6377
+ needsCategory: NEEDS_CATEGORY,
6378
+ needsSite: NEEDS_SITE,
6379
+ needsPlanOut: NEEDS_PLAN_OUT,
6380
+ needsPlan: NEEDS_PLAN,
6381
+ needsTicket: NEEDS_TICKET,
6382
+ needsVideo: NEEDS_VIDEO,
6383
+ needsTranscript: NEEDS_TRANSCRIPT
6384
+ });
6385
+ var UGC_SCREENSHOT_HANDLES = [
6386
+ "screenshot",
6387
+ "screenshot2",
6388
+ "screenshot3",
6389
+ "screenshot4",
6390
+ "screenshot5",
6391
+ "screenshot6",
6392
+ "screenshot7",
6393
+ "screenshot8"
6394
+ ];
6395
+ var UGC_PRIMARY_HANDLE = {
6396
+ "ugc-creator": "creator",
6397
+ "ugc-script": "plan",
6398
+ "ugc-clips": "clips",
6399
+ "ugc-clip": "video-out",
6400
+ "ugc-cards": "layerPlan"
6401
+ };
6402
+ var isObject = (x) => !!x && typeof x === "object" && !Array.isArray(x);
6403
+ function ugcPlanLengthSec(plan) {
6404
+ const value = savedPlanOf(plan);
6405
+ if (!value) return void 0;
6406
+ const sec2 = value.targetDurationSec;
6407
+ return typeof sec2 === "number" && Number.isInteger(sec2) && sec2 >= UGC_SCRIPT_MIN_TARGET_SEC && sec2 <= UGC_SCRIPT_MAX_TARGET_SEC ? sec2 : void 0;
6408
+ }
6409
+ function ugcPlanScreenshotCount(plan) {
6410
+ const value = savedPlanOf(plan);
6411
+ if (!value || !Array.isArray(value.beats)) return void 0;
6412
+ return value.beats.filter((beat) => isObject(beat) && isObject(beat.screenshot)).length;
6413
+ }
6414
+ function savedPlanOf(plan) {
6415
+ let value = plan;
6416
+ if (typeof value === "string") {
6417
+ try {
6418
+ value = JSON.parse(value);
6419
+ } catch {
6420
+ return void 0;
6421
+ }
6422
+ }
6423
+ return isObject(value) ? value : void 0;
6424
+ }
6425
+ var filled = (x) => typeof x === "string" && x.trim() !== "" ? x : void 0;
6426
+ function ugcPipValue(outputs, sourceType, sourceHandle) {
6427
+ const pip = sourceHandle || (Object.hasOwn(UGC_PRIMARY_HANDLE, sourceType) ? UGC_PRIMARY_HANDLE[sourceType] : void 0);
6428
+ if (pip === void 0 || !isObject(outputs) || !Object.hasOwn(outputs, pip)) return void 0;
6429
+ const value = outputs[pip];
6430
+ return typeof value === "string" ? value : void 0;
6431
+ }
6432
+ function readUgcWire(raw, unreadable = UGC_VERSION_MESSAGE) {
6433
+ let parsed = raw;
6434
+ if (typeof raw === "string") {
6435
+ try {
6436
+ parsed = JSON.parse(raw);
6437
+ } catch {
6438
+ return { error: unreadable };
6439
+ }
6440
+ }
6441
+ if (!isObject(parsed) || parsed.v === void 0) return { error: unreadable };
6442
+ if (parsed.v !== 1) return { error: UGC_VERSION_MESSAGE };
6443
+ return { value: parsed };
6444
+ }
6445
+ function routeErrorOf(body) {
6446
+ let parsed;
6447
+ try {
6448
+ parsed = JSON.parse(body);
6449
+ } catch {
6450
+ return {};
6451
+ }
6452
+ if (!isObject(parsed)) return {};
6453
+ if (isObject(parsed.error)) {
6454
+ const { code, message } = parsed.error;
6455
+ return { code: typeof code === "string" ? code : void 0, message: filled(message) };
6456
+ }
6457
+ return { message: filled(parsed.message) };
6458
+ }
6459
+ function ugcFailure(status, body) {
6460
+ const error = routeErrorOf(body);
6461
+ if (status === 404 && error.code === void 0) return UGC_NOT_SERVED_MESSAGE;
6462
+ if (error.code === "minor_age_refused") return MINOR_AGE_MESSAGE;
6463
+ if ((status === 503 || status >= 400 && status < 500) && error.message) return error.message;
6464
+ return `UGC step failed (${status})`;
6465
+ }
6466
+ var UGC_CREATOR_PICKER_TYPES = /* @__PURE__ */ new Set(["person", "styling", "setting", "lighting"]);
6467
+ function previousTraits(data) {
6468
+ if (ugcPickPending(data)) {
6469
+ const first = data.candidates[0];
6470
+ const record = isObject(first) ? first.record : void 0;
6471
+ return isObject(record) ? record.traits : void 0;
6472
+ }
6473
+ return !data.keepResult && isObject(data.result) ? data.result.traits : void 0;
6474
+ }
6475
+ function setPickers(pickers) {
6476
+ if (!pickers) return void 0;
6477
+ const set = Object.entries(pickers).filter(([, fields]) => isObject(fields) && Object.keys(fields).length > 0);
6478
+ return set.length > 0 ? Object.fromEntries(set) : void 0;
6479
+ }
6480
+ function ugcCreatorBody(input) {
6481
+ const { data } = input;
6482
+ const gender = data.gender;
6483
+ if (gender !== "woman" && gender !== "man") return { error: NEEDS_GENDER };
6484
+ if (data.source === "photo") {
6485
+ const imageUrl = filled(input.photoUrl) ?? filled(data.photoUrl);
6486
+ if (!imageUrl) return { error: NEEDS_PHOTO };
6487
+ return { body: { source: { kind: "photo", imageUrl, gender } } };
6488
+ }
6489
+ const productCategory = filled(data.categoryOverride) ?? filled(input.category);
6490
+ if (!productCategory) return { error: NEEDS_CATEGORY };
6491
+ const pickers = setPickers(input.pickers);
6492
+ const traits = previousTraits(data);
6493
+ return {
6494
+ body: {
6495
+ ...typeof data.seed === "number" ? { seed: data.seed } : {},
6496
+ source: {
6497
+ kind: "sampled",
6498
+ gender,
6499
+ productCategory,
6500
+ ...pickers ? { pickers } : {},
6501
+ ...isObject(traits) ? { previous: traits } : {}
6502
+ }
6503
+ }
6504
+ };
6505
+ }
6506
+ function ugcCreatorOutputs(answer, identityImages) {
6507
+ const record = {
6508
+ v: 1,
6509
+ kind: answer.kind,
6510
+ gender: answer.gender,
6511
+ identityImages: [...identityImages],
6512
+ traits: answer.traits ?? null,
6513
+ seed: answer.seed ?? null,
6514
+ promptsVersion: answer.promptsVersion,
6515
+ productCategory: answer.productCategory ?? null
6516
+ };
6517
+ const imageUrl = identityImages[0] ?? "";
6518
+ return { outputs: { creator: JSON.stringify(record), ...imageUrl ? { image: imageUrl } : {} }, imageUrl, record };
6519
+ }
6520
+ var callOf = (raw) => {
6521
+ if (!raw || typeof raw !== "object") return void 0;
6522
+ const { tool, args } = raw;
6523
+ if (typeof tool !== "string" || !args || typeof args !== "object" || Array.isArray(args)) return void 0;
6524
+ return { tool, args };
6525
+ };
6526
+ var fallbackOf = (image) => image && typeof image === "object" ? image.fallback : void 0;
6527
+ function ugcCreatorCandidates(answer) {
6528
+ const listed = answer.candidates;
6529
+ const noList = listed === void 0 || listed === null || Array.isArray(listed) && listed.length === 0;
6530
+ const noImage = answer.image === void 0 || answer.image === null;
6531
+ if (noList && noImage) return { calls: [], fallback: null, pick: null };
6532
+ if (noList) {
6533
+ const image = callOf(answer.image);
6534
+ if (!image) return { error: UGC_NEWER_APP_MESSAGE };
6535
+ return { calls: [image], fallback: callOf(fallbackOf(answer.image)) ?? null, pick: "primary" };
6536
+ }
6537
+ if (!Array.isArray(listed)) return { error: UGC_NEWER_APP_MESSAGE };
6538
+ const calls = listed.map(callOf);
6539
+ if (calls.some((c) => c === void 0)) return { error: UGC_NEWER_APP_MESSAGE };
6540
+ const how = answer.pick?.how;
6541
+ return {
6542
+ calls,
6543
+ fallback: callOf(answer.fallback) ?? callOf(fallbackOf(answer.image)) ?? null,
6544
+ pick: how === "user" && calls.length > 1 ? "user" : "primary"
6545
+ };
6546
+ }
6547
+ function ugcCreatorCallsToRender(c, opts) {
6548
+ return opts.personPicks && c.pick === "user" ? c.calls : c.calls.slice(0, 1);
6549
+ }
6550
+ function ugcCreatorCandidate(answer, images) {
6551
+ const out = ugcCreatorOutputs(answer, images);
6552
+ return { imageUrl: out.imageUrl, record: out.record };
6553
+ }
6554
+ function ugcAwaitsPick(output) {
6555
+ const candidates = isObject(output) ? output.ugcCandidates : void 0;
6556
+ return Array.isArray(candidates) && candidates.length >= 2;
6557
+ }
6558
+ function ugcCreatorPick(candidates, index) {
6559
+ const entry = Array.isArray(candidates) && Number.isInteger(index) && index >= 0 ? candidates[index] : void 0;
6560
+ const imageUrl = entry?.imageUrl;
6561
+ const record = entry?.record;
6562
+ if (typeof imageUrl !== "string" || !record || typeof record !== "object" || Array.isArray(record)) return { error: UGC_PICK_GONE_MESSAGE };
6563
+ const r = record;
6564
+ if (r.v !== 1) return { error: UGC_VERSION_MESSAGE };
6565
+ if (!Array.isArray(r.identityImages) || r.identityImages[0] !== imageUrl) return { error: UGC_PICK_GONE_MESSAGE };
6566
+ return { result: r, outputs: { creator: JSON.stringify(r), image: imageUrl }, imageUrl };
6567
+ }
6568
+ function ugcScriptBody(input) {
6569
+ const site = filled(input.site)?.trim();
6570
+ if (!site) return { error: NEEDS_SITE };
6571
+ const productImage = filled(input.productImage);
6572
+ return {
6573
+ body: {
6574
+ site,
6575
+ screenshots: input.screenshots.filter((s) => filled(s) !== void 0),
6576
+ ...productImage ? { productImage } : {},
6577
+ targetDurationSec: typeof input.targetDurationSec === "number" ? input.targetDurationSec : UGC_SCRIPT_DEFAULT_TARGET_SEC,
6578
+ language: "en"
6579
+ }
6580
+ };
6581
+ }
6582
+ function ugcScriptOutputs(outputData) {
6583
+ const plan = outputData.plan;
6584
+ const category = filled(outputData.productCategory);
6585
+ return {
6586
+ ...isObject(plan) ? { plan: JSON.stringify({ v: 1, ...plan }) } : {},
6587
+ ...category ? { category } : {}
6588
+ };
6589
+ }
6590
+ function ugcScriptResult(outputData) {
6591
+ const { plan, productCategory, warnings, notes, rounds } = outputData;
6592
+ if (!isObject(plan)) return void 0;
6593
+ return {
6594
+ plan,
6595
+ productCategory: filled(productCategory) ?? "",
6596
+ warnings: Array.isArray(warnings) ? [...warnings] : [],
6597
+ notes: Array.isArray(notes) ? notes.filter((n) => typeof n === "string") : [],
6598
+ rounds: typeof rounds === "number" && Number.isFinite(rounds) ? rounds : 0
6599
+ };
6600
+ }
6601
+ function ugcKeptOutputs(type, data) {
6602
+ if (type === "ugc-creator" && ugcPickPending(data)) return null;
6603
+ const result = data.keepResult === true ? data.result : void 0;
6604
+ if (!isObject(result)) return null;
6605
+ if (type === "ugc-creator") {
6606
+ const image = Array.isArray(result.identityImages) ? filled(result.identityImages[0]) : void 0;
6607
+ return image ? { creator: JSON.stringify(result), image } : null;
6608
+ }
6609
+ if (type === "ugc-script") return isObject(result.plan) ? ugcScriptOutputs(result) : null;
6610
+ return null;
6611
+ }
6612
+ function ugcClipsBody(input) {
6613
+ const plan = readUgcWire(input.planWire, NEEDS_PLAN);
6614
+ if ("error" in plan) return plan;
6615
+ const creator = readUgcWire(input.creatorWire, UGC_CREATOR_MISSING_MESSAGE);
6616
+ if ("error" in creator) return creator;
6617
+ const voiceId = filled(input.voiceId);
6618
+ return {
6619
+ body: {
6620
+ plan: plan.value,
6621
+ gender: creator.value.gender,
6622
+ traits: creator.value.traits ?? null,
6623
+ identityImages: creator.value.identityImages,
6624
+ surface: "canvas",
6625
+ ...voiceId ? { voiceId } : {}
6626
+ }
6627
+ };
6628
+ }
6629
+ function ugcClipsOutputs(answer) {
6630
+ const errors = Array.isArray(answer.errors) ? answer.errors : [];
6631
+ if (errors.length > 0) {
6632
+ const said = errors.flatMap((e) => isObject(e) ? [filled(e.message), filled(e.fix)] : []).filter((s) => s !== void 0);
6633
+ return { error: said.length > 0 ? `${UGC_SCRIPT_NEEDS_CHANGES} ${said.join(" ")}` : UGC_NEWER_APP_MESSAGE };
6634
+ }
6635
+ const { tickets, sizedPlan, transcript, speechCheckCall } = answer;
6636
+ if (!Array.isArray(tickets) || tickets.length === 0 || !tickets.every(isObject) || !isObject(sizedPlan) || typeof transcript !== "string") {
6637
+ return { error: UGC_NEWER_APP_MESSAGE };
6638
+ }
6639
+ const wires = tickets.map((t2) => JSON.stringify(t2));
6640
+ const transcribeArgs = isObject(speechCheckCall) && isObject(speechCheckCall.args) ? speechCheckCall.args : {};
6641
+ return {
6642
+ outputs: { clips: wires[0], "plan-out": JSON.stringify({ v: 1, plan: sizedPlan, transcribeArgs }), transcript },
6643
+ tickets: wires,
6644
+ hasCards: answer.hasCards === true
6645
+ };
6646
+ }
6647
+ function ugcClipBody(input) {
6648
+ const read = readUgcWire(input.ticketWire, NEEDS_TICKET);
6649
+ if ("error" in read) return read;
6650
+ const ticket = read.value;
6651
+ const { index, durationSec } = ticket;
6652
+ if (typeof index !== "number" || !Number.isInteger(index) || index < 0) return { error: NEEDS_TICKET };
6653
+ if (typeof durationSec !== "number" || !Number.isFinite(durationSec) || durationSec <= 0) return { error: NEEDS_TICKET };
6654
+ const clipNumber = index + 1;
6655
+ const count = input.rerender?.[String(clipNumber)];
6656
+ const nonce = typeof count === "number" && Number.isInteger(count) && count >= 0 ? count : 0;
6657
+ const runKey = filled(input.runKey);
6658
+ return { body: { ticket, nonce, ...runKey ? { runKey } : {} }, clipNumber, durationSec };
6659
+ }
6660
+ function ugcClipOutputs(outputData) {
6661
+ const videoUrl = filled(outputData.videoUrl) ?? "";
6662
+ const meta = fanOutItemMeta(outputData);
6663
+ return { outputs: videoUrl ? { "video-out": videoUrl } : {}, videoUrl, durationSec: meta.durationSec, clipWarnings: [...meta.warnings] };
6664
+ }
6665
+ function ugcClipSavedList(data) {
6666
+ if (!isObject(data)) return void 0;
6667
+ const batch = Array.isArray(data.__listResults) ? data.__listResults.filter((u) => typeof u === "string" && u !== "") : [];
6668
+ if (batch.length > 0) return batch;
6669
+ const results = Array.isArray(data.generatedResults) ? data.generatedResults : [];
6670
+ const index = typeof data.activeResultIndex === "number" && Number.isInteger(data.activeResultIndex) ? data.activeResultIndex : 0;
6671
+ const active = results[index];
6672
+ const url = (isObject(active) ? filled(active.url) : void 0) ?? filled(data.generatedVideoUrl);
6673
+ return url ? [url] : void 0;
6674
+ }
6675
+ function ugcCardsJobs(input) {
6676
+ const read = readUgcWire(input.planOutWire, NEEDS_PLAN_OUT);
6677
+ if ("error" in read) return read;
6678
+ const { plan, transcribeArgs } = read.value;
6679
+ if (!isObject(plan) || !isObject(transcribeArgs)) return { error: NEEDS_PLAN_OUT };
6680
+ const videoUrl = filled(input.videoUrl);
6681
+ if (!videoUrl) return { error: NEEDS_VIDEO };
6682
+ const transcript = input.transcript;
6683
+ if (typeof transcript !== "string") return { error: NEEDS_TRANSCRIPT };
6684
+ return {
6685
+ alignment: { path: "/v1/forced-alignment", body: { audioUrl: videoUrl, transcript } },
6686
+ transcribe: { path: "/v1/transcribe", body: { ...transcribeArgs, audioUrl: videoUrl, provider: DEFAULT_TRANSCRIBE_NODE_PROVIDER, wordTimestamps: true } },
6687
+ plan
6688
+ };
6689
+ }
6690
+ function ugcCardsBody(input) {
6691
+ return {
6692
+ surface: "canvas",
6693
+ plan: input.plan,
6694
+ videoUrl: input.videoUrl,
6695
+ ...Array.isArray(input.alignment) ? { alignment: input.alignment } : {},
6696
+ ...Array.isArray(input.words) ? { words: input.words } : {},
6697
+ failed: [...input.failed],
6698
+ clipNotes: [...input.clipNotes]
6699
+ };
6700
+ }
6701
+ var EMPTY_CAPTION_PLAN = { v: 1, hookText: "", hookEndMs: 0, bodyEndMs: 0, captions: [] };
6702
+ function ugcCardsOutputs(answer) {
6703
+ const timing = answer.captionTiming;
6704
+ const report = answer.report;
6705
+ const lines = isObject(report) && Array.isArray(report.lines) ? report.lines.filter((l) => typeof l === "string") : [];
6706
+ return {
6707
+ layerPlan: JSON.stringify(Array.isArray(answer.layerPlan) ? answer.layerPlan : []),
6708
+ captionPlan: JSON.stringify(isObject(timing) ? { v: 1, ...timing } : EMPTY_CAPTION_PLAN),
6709
+ report: lines.join("\n")
6710
+ };
6711
+ }
6712
+
6110
6713
  // src/producer-types.ts
6111
6714
  var VIDEO_PRODUCER_TYPES = /* @__PURE__ */ new Set([
6112
6715
  "image-to-video",
@@ -6137,6 +6740,7 @@ var VIDEO_PRODUCER_TYPES = /* @__PURE__ */ new Set([
6137
6740
  "speech-to-video",
6138
6741
  "motion-transfer",
6139
6742
  "video-upscale",
6743
+ "video-depth",
6140
6744
  "extend-video",
6141
6745
  // face-swap output is video (writes generatedVideoUrl, per-result `url`).
6142
6746
  // Frontend execution-graph already includes it in VIDEO_SOURCE_TYPES; this
@@ -6162,6 +6766,9 @@ var VIDEO_PRODUCER_TYPES = /* @__PURE__ */ new Set([
6162
6766
  "speed-ramp",
6163
6767
  "loop-video",
6164
6768
  "fade-video",
6769
+ // Video Mask emits its mask as a video; Mask Composite its composite.
6770
+ "video-mask",
6771
+ "mask-composite",
6165
6772
  "transcode-video",
6166
6773
  "manual-edit",
6167
6774
  // Remove Audio: strips the audio track, emits a silent video.
@@ -6189,12 +6796,19 @@ var VIDEO_PRODUCER_TYPES = /* @__PURE__ */ new Set([
6189
6796
  "pro-3d-render",
6190
6797
  // Video Overlay: timed image layers over a video in one local FFmpeg pass
6191
6798
  // (the base audio copied) — emits a video URL on `video-out`.
6192
- "video-overlay"
6799
+ "video-overlay",
6800
+ // UGC Clip: renders one clip of a UGC video from its ticket — emits a video
6801
+ // URL on `video-out` (one per fan-out iteration).
6802
+ "ugc-clip"
6193
6803
  ]);
6194
6804
  var DYNAMIC_PRODUCER_TYPES = /* @__PURE__ */ new Set([
6195
6805
  "list",
6196
6806
  "sub-workflow",
6197
6807
  "adjust-volume",
6808
+ // Pitch & Tempo: audio in → audio out, video in → video out (picture
6809
+ // copied). Dual-mode like adjust-volume; stays in AUDIO_PRODUCER_TYPES as
6810
+ // its default.
6811
+ "pitch-tempo",
6198
6812
  // Dual-mode: audio in → audio out; video in → video out (+ revoiced audio).
6199
6813
  // Listed here so canvas validators accept its output on BOTH audio and video
6200
6814
  // input handles (it also stays in AUDIO_PRODUCER_TYPES as its default).
@@ -6254,6 +6868,7 @@ var AUDIO_PRODUCER_TYPES = /* @__PURE__ */ new Set([
6254
6868
  "combine-audio",
6255
6869
  "adjust-volume",
6256
6870
  "audio-fx",
6871
+ "pitch-tempo",
6257
6872
  "reference-audio",
6258
6873
  "audio-isolation",
6259
6874
  "text-to-dialogue",
@@ -6328,7 +6943,13 @@ var FAN_OUT_EACH_HANDLES = {
6328
6943
  // switched EDL is its own Apply EDL render. Its transcript is the same for
6329
6944
  // every clip (the master clock, renamed), so that handle stays one value
6330
6945
  // (decided 2026-10-04).
6331
- "camera-switch": { each: ["edl"], primary: "edl" }
6946
+ "camera-switch": { each: ["edl"], primary: "edl" },
6947
+ // UGC Clips: one ticket per clip on `clips` (each); `plan-out` and
6948
+ // `transcript` carry one value. Not a FAN_OUT_EACH_TYPES member — every
6949
+ // handle of such a member would fan out. Its one run writes the tickets as
6950
+ // its list (`listResults`, the editor's `__listResults`). The pip an edge
6951
+ // with no handle reads is the UGC wires' own (UGC_PRIMARY_HANDLE).
6952
+ "ugc-clips": { each: ["clips"], primary: UGC_PRIMARY_HANDLE["ugc-clips"] }
6332
6953
  };
6333
6954
  var FAN_OUT_ALL_OR_NOTHING_TYPES = /* @__PURE__ */ new Set(["ugc-clip"]);
6334
6955
  var OWN_LIST_NODE_TYPES = /* @__PURE__ */ new Set(["extract-field", "json-process"]);
@@ -6409,11 +7030,12 @@ function canonicalizeOverrideKeys(nodeType, overrides) {
6409
7030
  // src/render-nodes.ts
6410
7031
  var RENDER_JSON_HANDLE = "json";
6411
7032
  var outputSettingMedium = (data) => data.output === "audio" ? "audio" : "video";
6412
- var descriptor = (d) => Object.freeze({ ...d, transcriptOutput: Object.freeze({ ...d.transcriptOutput }) });
7033
+ var descriptor = (d) => Object.freeze({ ...d, creditIds: Object.freeze([...d.creditIds]), transcriptOutput: Object.freeze({ ...d.transcriptOutput }) });
6413
7034
  var RENDER_NODE_TYPES = Object.freeze({
6414
7035
  "apply-edl": descriptor({
6415
7036
  mediumOf: outputSettingMedium,
6416
7037
  creditId: (quality) => applyEdlCreditId(quality),
7038
+ creditIds: ["apply-edl", "apply-edl:proxy"],
6417
7039
  clockMapFrom: "input",
6418
7040
  ownerOnlyListing: true,
6419
7041
  latestBatch: true,
@@ -6427,7 +7049,8 @@ var RENDER_NODE_TYPES = Object.freeze({
6427
7049
  // `transcript` pip (decided 2026-10-08) — what a caption step reads.
6428
7050
  "speaker-view": descriptor({
6429
7051
  mediumOf: () => "video",
6430
- creditId: (quality) => speakerViewCreditId(quality),
7052
+ creditId: (quality, _output, priceTier) => speakerViewCreditId(quality, priceTier),
7053
+ creditIds: SPEAKER_VIEW_CREDIT_IDS,
6431
7054
  clockMapFrom: "output-json",
6432
7055
  ownerOnlyListing: true,
6433
7056
  latestBatch: true,
@@ -6747,7 +7370,8 @@ var MEDIA_PRODUCING_TYPES = /* @__PURE__ */ new Set([
6747
7370
  "extend-video",
6748
7371
  "lip-sync",
6749
7372
  "motion-transfer",
6750
- "video-upscale"
7373
+ "video-upscale",
7374
+ "video-depth"
6751
7375
  ]);
6752
7376
  var IMAGE_OUTPUT_TYPES = /* @__PURE__ */ new Set([
6753
7377
  "generate-image",
@@ -6779,6 +7403,7 @@ var VIDEO_OUTPUT_TYPES = /* @__PURE__ */ new Set([
6779
7403
  "lip-sync",
6780
7404
  "motion-transfer",
6781
7405
  "video-upscale",
7406
+ "video-depth",
6782
7407
  "add-captions",
6783
7408
  "social-media-format",
6784
7409
  // A render (Apply EDL) renders an EDL into video OR audio. Its medium is
@@ -6802,6 +7427,7 @@ var AUDIO_OUTPUT_TYPES = /* @__PURE__ */ new Set([
6802
7427
  "mix-audio",
6803
7428
  "adjust-volume",
6804
7429
  "audio-fx",
7430
+ "pitch-tempo",
6805
7431
  "trim-audio",
6806
7432
  "audio-isolation",
6807
7433
  "audio-separation",
@@ -6814,7 +7440,10 @@ var TEXT_OUTPUT_TYPES = /* @__PURE__ */ new Set([
6814
7440
  "transcribe",
6815
7441
  "image-to-text",
6816
7442
  "qa-check",
6817
- "text-prompt"
7443
+ "text-prompt",
7444
+ // UGC Cards' output card is its Notes: a run hands it on as the node's text
7445
+ // (`output.text`, `generatedText` on the canvas).
7446
+ "ugc-cards"
6818
7447
  ]);
6819
7448
  function getInputNodes(nodes, curatedOnly = true) {
6820
7449
  return nodes.filter((n) => {
@@ -9760,6 +10389,8 @@ var NON_PROMPT_TEXT_LANES = {
9760
10389
  script: ["ai-avatar"],
9761
10390
  transcript: ["add-captions", "apply-edl", "edit-plan", "camera-switch", "speaker-view", "speaker-frames"],
9762
10391
  edl: ["apply-edl", "camera-switch", "speaker-view"],
10392
+ // Speaker View's face tracks (Speaker Frames' descriptor): framing data, never a prompt.
10393
+ tracks: ["speaker-view"],
9763
10394
  silence: ["edit-plan"],
9764
10395
  offsets: ["edit-plan"],
9765
10396
  qrText: ["image-overlay"],
@@ -10187,6 +10818,89 @@ function buildLipSyncCreditId(provider, audioDurationSec) {
10187
10818
  return `${provider}:${pickLipSyncBucket(requested)}s`;
10188
10819
  }
10189
10820
 
10821
+ // src/video-depth.ts
10822
+ var VIDEO_DEPTH_PROVIDERS = ["video-depth-anything", "depth-anything-frames"];
10823
+ var FAL_VIDEO_DEPTH_PROVIDERS = /* @__PURE__ */ new Set(["video-depth-anything"]);
10824
+ var REPLICATE_VIDEO_DEPTH_PROVIDERS = /* @__PURE__ */ new Set(["depth-anything-frames"]);
10825
+ function resolveVideoDepthProvider(raw) {
10826
+ return typeof raw === "string" && VIDEO_DEPTH_PROVIDERS.includes(raw) ? raw : VIDEO_DEPTH_PROVIDERS[0];
10827
+ }
10828
+ var VIDEO_DEPTH_MODEL_SIZES = ["small", "base", "large"];
10829
+ function resolveVideoDepthModelSize(raw) {
10830
+ return typeof raw === "string" && VIDEO_DEPTH_MODEL_SIZES.includes(raw) ? raw : "large";
10831
+ }
10832
+ var VIDEO_DEPTH_COLORMAPS = ["grayscale", "turbo", "inferno", "magma", "viridis"];
10833
+ var VIDEO_DEPTH_RESOLUTIONS = ["auto", "360p", "480p", "720p", "1080p"];
10834
+ var ALL_LEVERS = /* @__PURE__ */ new Set(["colormap", "resolution", "sideBySide"]);
10835
+ var COLORMAP_ONLY = /* @__PURE__ */ new Set(["colormap"]);
10836
+ var NO_LEVERS = /* @__PURE__ */ new Set();
10837
+ function videoDepthLevers(provider) {
10838
+ if (FAL_VIDEO_DEPTH_PROVIDERS.has(provider)) return ALL_LEVERS;
10839
+ if (REPLICATE_VIDEO_DEPTH_PROVIDERS.has(provider)) return COLORMAP_ONLY;
10840
+ return NO_LEVERS;
10841
+ }
10842
+ var REPLICATE_COLORMAPS = ["grayscale", "inferno"];
10843
+ function videoDepthColormaps(provider) {
10844
+ if (FAL_VIDEO_DEPTH_PROVIDERS.has(provider)) return VIDEO_DEPTH_COLORMAPS;
10845
+ if (REPLICATE_VIDEO_DEPTH_PROVIDERS.has(provider)) return REPLICATE_COLORMAPS;
10846
+ return [];
10847
+ }
10848
+ function resolveVideoDepthColormap(provider, requested) {
10849
+ if (!videoDepthLevers(provider).has("colormap")) return void 0;
10850
+ const offered = videoDepthColormaps(provider);
10851
+ return typeof requested === "string" && offered.includes(requested) ? requested : "grayscale";
10852
+ }
10853
+ function videoDepthNeedsGrayscalePass(provider, colormap) {
10854
+ return REPLICATE_VIDEO_DEPTH_PROVIDERS.has(provider) && resolveVideoDepthColormap(provider, colormap) === "grayscale";
10855
+ }
10856
+ var VIDEO_DEPTH_LIMITS = {
10857
+ /** fal `max_frames` ceiling. */
10858
+ FAL_MAX_FRAMES: 2400,
10859
+ /** Longest clip the fal lane accepts, whatever its frame rate: the top price bucket (a low-fps clip under the frame limit can otherwise run past every price row). */
10860
+ FAL_MAX_SECONDS: 300,
10861
+ /** Frame rate assumed when the clip reports none (variable-rate or missing). */
10862
+ ASSUMED_FPS: 30,
10863
+ /** Longest clip the Replicate lane accepts. */
10864
+ REPLICATE_MAX_SECONDS: 80
10865
+ };
10866
+ var fmt = (n) => n.toLocaleString("en-US");
10867
+ function checkVideoDepthLength(provider, probe) {
10868
+ if (REPLICATE_VIDEO_DEPTH_PROVIDERS.has(provider)) {
10869
+ if (probe.durationSec <= VIDEO_DEPTH_LIMITS.REPLICATE_MAX_SECONDS) return { ok: true };
10870
+ return {
10871
+ ok: false,
10872
+ message: `Video is ${Math.ceil(probe.durationSec)} s. This provider accepts at most ${VIDEO_DEPTH_LIMITS.REPLICATE_MAX_SECONDS} s.`
10873
+ };
10874
+ }
10875
+ if (probe.durationSec > VIDEO_DEPTH_LIMITS.FAL_MAX_SECONDS) {
10876
+ return {
10877
+ ok: false,
10878
+ message: `Video is ${Math.ceil(probe.durationSec)} s. This provider accepts at most ${VIDEO_DEPTH_LIMITS.FAL_MAX_SECONDS} s. Trim the clip and run again.`
10879
+ };
10880
+ }
10881
+ const assumed = !(typeof probe.fps === "number" && probe.fps > 0);
10882
+ const fps = assumed ? VIDEO_DEPTH_LIMITS.ASSUMED_FPS : probe.fps;
10883
+ const frames = Math.ceil(probe.durationSec * fps - 1e-9);
10884
+ if (frames <= VIDEO_DEPTH_LIMITS.FAL_MAX_FRAMES) return { ok: true };
10885
+ const maxSec = Math.floor(VIDEO_DEPTH_LIMITS.FAL_MAX_FRAMES / fps);
10886
+ return {
10887
+ ok: false,
10888
+ message: `Video is ${fmt(frames)} frames; the limit is ${fmt(VIDEO_DEPTH_LIMITS.FAL_MAX_FRAMES)} (about ${maxSec} s at ${Math.round(fps)} fps${assumed ? ", assumed 30 fps because the clip reports no frame rate" : ""}). Trim the clip and run again.`
10889
+ };
10890
+ }
10891
+ var VIDEO_DEPTH_BUCKETS = [15, 30, 60, 120, 300];
10892
+ function videoDepthMaxSeconds(provider) {
10893
+ return REPLICATE_VIDEO_DEPTH_PROVIDERS.has(provider) ? VIDEO_DEPTH_LIMITS.REPLICATE_MAX_SECONDS : VIDEO_DEPTH_LIMITS.FAL_MAX_SECONDS;
10894
+ }
10895
+ function videoDepthCreditId(provider, durationSec) {
10896
+ const top = VIDEO_DEPTH_BUCKETS[VIDEO_DEPTH_BUCKETS.length - 1];
10897
+ const maxSec = videoDepthMaxSeconds(provider);
10898
+ const reachableCeiling = VIDEO_DEPTH_BUCKETS.find((b) => b >= maxSec) ?? top;
10899
+ const known = typeof durationSec === "number" && Number.isFinite(durationSec) && durationSec > 0 && durationSec <= maxSec;
10900
+ const bucket = known ? VIDEO_DEPTH_BUCKETS.find((b) => durationSec <= b) ?? top : reachableCeiling;
10901
+ return `${provider}:${bucket}s`;
10902
+ }
10903
+
10190
10904
  // src/ai-avatar-pricing.ts
10191
10905
  var AI_AVATAR_MAX_DURATION_SEC = 900;
10192
10906
  var AI_AVATAR_DURATION_BUCKETS = [5, 10, 15, 30, 60, 120, 240, 360, 600, 900];
@@ -10757,9 +11471,73 @@ var SOCIAL_POST_NODE_TYPES = /* @__PURE__ */ new Set([
10757
11471
  "telegram-post",
10758
11472
  "publish-social"
10759
11473
  ]);
11474
+ var SOCIAL_POST_NODE_PLATFORM = Object.freeze({
11475
+ "instagram-post": "instagram",
11476
+ "tiktok-post": "tiktok",
11477
+ "youtube-upload": "youtube",
11478
+ "linkedin-post": "linkedin",
11479
+ "x-post": "x",
11480
+ "facebook-post": "facebook",
11481
+ "telegram-post": "telegram"
11482
+ });
10760
11483
  var INSTAGRAM_CAROUSEL_MIN_ITEMS = 2;
10761
11484
  var INSTAGRAM_CAROUSEL_MAX_ITEMS = 10;
10762
11485
 
11486
+ // src/node-run-routes.ts
11487
+ var SOCIAL_PUBLISH_ROUTE = "/v1/social/publish";
11488
+ var NODE_RUN_ROUTES = Object.freeze({
11489
+ "generate-3d-scene": "/v1/3d-scene/generate",
11490
+ "edit-3d-scene": "/v1/3d-scene/edit",
11491
+ "ai-writer": "/v1/ai-writer/generate",
11492
+ "llm-chat": "/v1/llm-chat/generate",
11493
+ "video-composer": "/v1/scene-graph/generate",
11494
+ "after-effects": "/v1/after-effects/generate",
11495
+ "lottie-overlay": "/v1/lottie-overlay/generate",
11496
+ "3d-title": "/v1/3d-title/generate",
11497
+ "motion-graphics": "/v1/motion-graphics/generate",
11498
+ "image-to-text": "/v1/image-to-text/describe",
11499
+ "telegram-channel-feed": "/v1/telegram-channel/fetch",
11500
+ "suno-generate": "/v1/suno/generate",
11501
+ "suno-cover": "/v1/suno/cover",
11502
+ "suno-extend": "/v1/suno/extend",
11503
+ "suno-lyrics": "/v1/suno/lyrics",
11504
+ "suno-separate": "/v1/suno/separate",
11505
+ "suno-music-video": "/v1/suno/music-video",
11506
+ "suno-mashup": "/v1/suno/mashup",
11507
+ "suno-replace-section": "/v1/suno/replace-section",
11508
+ "suno-style-boost": "/v1/suno/style-boost",
11509
+ "suno-add-instrumental": "/v1/suno/add-instrumental",
11510
+ "suno-add-vocals": "/v1/suno/add-vocals",
11511
+ "suno-convert-wav": "/v1/suno/convert-wav",
11512
+ "suno-upload-extend": "/v1/suno/upload-extend",
11513
+ "suno-voice": "/v1/suno/voice/generate",
11514
+ // The UGC nodes' routes, served by the Nodaro Cloud plugin.
11515
+ "ugc-creator": "/v1/ugc/creator",
11516
+ "ugc-script": "/v1/ugc/script",
11517
+ "ugc-clips": "/v1/ugc/clips",
11518
+ "ugc-clip": "/v1/ugc/clip",
11519
+ "ugc-cards": "/v1/ugc/cards",
11520
+ // Every social post node publishes through the one route; the body's
11521
+ // `platform` says where (SOCIAL_POST_NODE_PLATFORM).
11522
+ ...Object.fromEntries([...SOCIAL_POST_NODE_TYPES].map((type) => [type, SOCIAL_PUBLISH_ROUTE]))
11523
+ });
11524
+ var NODE_TYPES_WITHOUT_RUN_ROUTE = Object.freeze({
11525
+ "modify-image": 'run "image-to-image" instead (or "edit-image" for the nano-banana-edit provider)',
11526
+ "upscale-image": 'run "edit-image" with an upscale provider instead (e.g. provider "recraft-upscale")',
11527
+ "remove-background": 'run "edit-image" with provider "recraft-remove-bg" instead',
11528
+ "image-to-video": 'run "generate-video" with a start frame instead',
11529
+ composite: "it runs only as part of a workflow (client.workflows.run)",
11530
+ "manual-edit": "it opens the in-browser editor and runs only inside a workflow",
11531
+ "paint-mask": "it is painted in the editor and never runs; use its mask output inside a workflow",
11532
+ scene: "it is run by the pipeline orchestrator (client.pipelines)",
11533
+ "generative-pipeline": "it is run by the pipeline orchestrator (client.pipelines)"
11534
+ });
11535
+ function nodeRunRoute(type) {
11536
+ if (Object.prototype.hasOwnProperty.call(NODE_TYPES_WITHOUT_RUN_ROUTE, type)) return null;
11537
+ if (Object.prototype.hasOwnProperty.call(NODE_RUN_ROUTES, type)) return NODE_RUN_ROUTES[type];
11538
+ return `/v1/${encodeURIComponent(type)}`;
11539
+ }
11540
+
10763
11541
  // src/effective-tier.ts
10764
11542
  function resolveStoredTier(p) {
10765
11543
  return p.tier ?? p.subscription_tier ?? "free";
@@ -11139,6 +11917,8 @@ var NODE_MAPPABLE_FIELDS = {
11139
11917
  // Span-replace sibling of generate-video-pro — prompt only, no
11140
11918
  // negativePrompt field on the node.
11141
11919
  "edit-video-pro": ["prompt"],
11920
+ // The subject to track — a {Label} reference or a mapping writes it.
11921
+ "video-mask": ["prompt"],
11142
11922
  "video-analysis": ["analysisFocus", "youtubeUrl"],
11143
11923
  "video-to-video": ["prompt"],
11144
11924
  // + the two neighbour-text fields (continuity across clips): a wired Text node can feed
@@ -11405,7 +12185,15 @@ var JSON_OUTPUT_KINDS = Object.freeze({
11405
12185
  "inspiration-read": { primary: "json", pips: { json: "other" } },
11406
12186
  "competitor-read": { primary: "json", pips: { json: "other" } },
11407
12187
  // Describe to Picker: the picker values read off an image.
11408
- "describe-to-picker": { primary: "picker-json", pips: { "picker-json": "other" } }
12188
+ "describe-to-picker": { primary: "picker-json", pips: { "picker-json": "other" } },
12189
+ // The UGC video nodes: their own versioned JSON (a creator record, a plan, the
12190
+ // clip tickets, the sized plan), and UGC Cards' layer plan and caption plan.
12191
+ // Their text pips (category, transcript, report) are not JSON pips. The pip an
12192
+ // edge with no `sourceHandle` reads is the UGC wires' own (UGC_PRIMARY_HANDLE).
12193
+ "ugc-creator": { primary: UGC_PRIMARY_HANDLE["ugc-creator"], pips: { creator: "other" } },
12194
+ "ugc-script": { primary: UGC_PRIMARY_HANDLE["ugc-script"], pips: { plan: "other" } },
12195
+ "ugc-clips": { primary: UGC_PRIMARY_HANDLE["ugc-clips"], pips: { clips: "other", "plan-out": "other" } },
12196
+ "ugc-cards": { primary: UGC_PRIMARY_HANDLE["ugc-cards"], pips: { layerPlan: "other", captionPlan: "other" } }
11409
12197
  });
11410
12198
  var JSON_INPUT_KINDS = Object.freeze({
11411
12199
  transcript: "transcript",
@@ -11707,7 +12495,7 @@ function formatterFor(timezone) {
11707
12495
  const known = canonicalZone.get(spelled);
11708
12496
  if (known) return formatters.get(known) ?? null;
11709
12497
  try {
11710
- const fmt = new Intl.DateTimeFormat("en-US", {
12498
+ const fmt2 = new Intl.DateTimeFormat("en-US", {
11711
12499
  timeZone: spelled,
11712
12500
  hourCycle: "h23",
11713
12501
  year: "numeric",
@@ -11716,11 +12504,11 @@ function formatterFor(timezone) {
11716
12504
  hour: "2-digit",
11717
12505
  minute: "2-digit"
11718
12506
  });
11719
- const canonical = fmt.resolvedOptions().timeZone;
11720
- if (!formatters.has(canonical)) formatters.set(canonical, fmt);
12507
+ const canonical = fmt2.resolvedOptions().timeZone;
12508
+ if (!formatters.has(canonical)) formatters.set(canonical, fmt2);
11721
12509
  if (canonicalZone.size >= MAX_ZONE_SPELLINGS) canonicalZone.clear();
11722
12510
  canonicalZone.set(spelled, canonical);
11723
- return formatters.get(canonical) ?? fmt;
12511
+ return formatters.get(canonical) ?? fmt2;
11724
12512
  } catch {
11725
12513
  return null;
11726
12514
  }
@@ -11737,10 +12525,10 @@ function localFromComponents(year, month, day, hour, minute) {
11737
12525
  return { year, month, day, hour: hour === 24 ? 0 : hour, minute, weekday, epochDay };
11738
12526
  }
11739
12527
  function localTimeIn(date, timezone) {
11740
- const fmt = formatterFor(timezone);
11741
- if (!fmt) return localFromComponents(date.getUTCFullYear(), date.getUTCMonth() + 1, date.getUTCDate(), date.getUTCHours(), date.getUTCMinutes());
12528
+ const fmt2 = formatterFor(timezone);
12529
+ if (!fmt2) return localFromComponents(date.getUTCFullYear(), date.getUTCMonth() + 1, date.getUTCDate(), date.getUTCHours(), date.getUTCMinutes());
11742
12530
  const parts = {};
11743
- for (const p of fmt.formatToParts(date)) {
12531
+ for (const p of fmt2.formatToParts(date)) {
11744
12532
  if (p.type === "literal") continue;
11745
12533
  parts[p.type] = parseInt(p.value, 10);
11746
12534
  }
@@ -12090,8 +12878,8 @@ function metaAdsScrapeWireSources(data, upstream) {
12090
12878
  const upstreamText = typeof upstream === "string" ? upstream : void 0;
12091
12879
  switch (metaAdsNodeMode(data.mode)) {
12092
12880
  case "pages": {
12093
- const own2 = splitMetaAdsPageUrls(data.pageUrls);
12094
- return { mode: "pages", pageUrls: own2.length > 0 ? own2 : splitMetaAdsPageUrls(upstreamText) };
12881
+ const own3 = splitMetaAdsPageUrls(data.pageUrls);
12882
+ return { mode: "pages", pageUrls: own3.length > 0 ? own3 : splitMetaAdsPageUrls(upstreamText) };
12095
12883
  }
12096
12884
  case "advertiser": {
12097
12885
  const picks = metaAdsAdvertisersFrom(data.advertisers);
@@ -12100,8 +12888,8 @@ function metaAdsScrapeWireSources(data, upstream) {
12100
12888
  return { mode: "pages", pageUrls: [], advertiserNames: names };
12101
12889
  }
12102
12890
  default: {
12103
- const own2 = typeof data.query === "string" ? data.query : "";
12104
- return { mode: "search", query: own2 || upstreamText };
12891
+ const own3 = typeof data.query === "string" ? data.query : "";
12892
+ return { mode: "search", query: own3 || upstreamText };
12105
12893
  }
12106
12894
  }
12107
12895
  }
@@ -14806,8 +15594,28 @@ var EXECUTION_DATA_KEYS = /* @__PURE__ */ new Set([
14806
15594
  // that run. Bookkeeping, persisted for the same reason.
14807
15595
  "resultsRunEndedAt",
14808
15596
  // A trigger's last run values (also in TRANSIENT_RUNTIME_KEYS: never saved).
14809
- "__triggerData"
15597
+ "__triggerData",
15598
+ // A fan-out's notes rows, every fan-out's (row-aligned with __listResults):
15599
+ // a row's warnings and length. A RESULT: persisted.
15600
+ "__listResultMeta"
14810
15601
  ]);
15602
+ var NODE_TYPE_EXECUTION_DATA_KEYS = {
15603
+ "ugc-creator": ["ugcOutputs", "candidates", "optionFailed"],
15604
+ "ugc-script": ["ugcOutputs"],
15605
+ "ugc-clips": ["ugcOutputs", "quote"],
15606
+ "ugc-clip": ["ugcOutputs", "clipWarnings", "durationSec", "rerenderPending"],
15607
+ "ugc-cards": ["ugcOutputs"]
15608
+ };
15609
+ function isExecutionDataKey(key, type) {
15610
+ if (EXECUTION_DATA_KEYS.has(key)) return true;
15611
+ return typeof type === "string" && Object.hasOwn(NODE_TYPE_EXECUTION_DATA_KEYS, type) && NODE_TYPE_EXECUTION_DATA_KEYS[type].includes(key);
15612
+ }
15613
+ var EXECUTION_DATA_KEYS_BY_TYPE = new Map(
15614
+ Object.entries(NODE_TYPE_EXECUTION_DATA_KEYS).map(([type, keys]) => [type, /* @__PURE__ */ new Set([...EXECUTION_DATA_KEYS, ...keys])])
15615
+ );
15616
+ function executionDataKeysOf(type) {
15617
+ return (typeof type === "string" ? EXECUTION_DATA_KEYS_BY_TYPE.get(type) : void 0) ?? EXECUTION_DATA_KEYS;
15618
+ }
14811
15619
  var TRANSIENT_RUNTIME_KEYS = /* @__PURE__ */ new Set([
14812
15620
  "executionStatus",
14813
15621
  "currentJobId",
@@ -14920,6 +15728,7 @@ function stripExportContent(nodes) {
14920
15728
  return stripUnownedRefs(nodes).map((node) => {
14921
15729
  const data = { ...node.data };
14922
15730
  for (const field of GENERATED_FIELDS) delete data[field];
15731
+ for (const field of NODE_TYPE_EXECUTION_DATA_KEYS[node.type] ?? []) delete data[field];
14923
15732
  const extras = NODE_EXTRA_FIELDS[node.type] ?? [];
14924
15733
  for (const field of extras) delete data[field];
14925
15734
  return { ...node, data };
@@ -17454,24 +18263,6 @@ function resolveAudioCrossfadeCurve(id) {
17454
18263
  return CURVES_BY_ID.get(id)?.ffmpeg ?? "tri";
17455
18264
  }
17456
18265
 
17457
- // src/fan-out-meta.ts
17458
- function fanOutItemMeta(output) {
17459
- const w = output?.clipWarnings;
17460
- const d = output?.durationSec;
17461
- return {
17462
- warnings: Array.isArray(w) ? w.filter((x) => typeof x === "string") : [],
17463
- durationSec: typeof d === "number" && Number.isFinite(d) && d > 0 ? d : null
17464
- };
17465
- }
17466
- function clipNotesFrom(meta, single) {
17467
- const rows = meta && meta.length > 0 ? meta : single ? [single] : [];
17468
- return rows.map((m, i) => ({
17469
- clip: i + 1,
17470
- warnings: m?.warnings ?? [],
17471
- ...typeof m?.durationSec === "number" ? { durationSec: m.durationSec } : {}
17472
- }));
17473
- }
17474
-
17475
18266
  // src/suno-track-sources.ts
17476
18267
  var SUNO_TRACK_SOURCE_TYPES = /* @__PURE__ */ new Set([
17477
18268
  "suno-generate",
@@ -17725,10 +18516,10 @@ var PRESET_EXCLUDED_KEYS = /* @__PURE__ */ new Set([
17725
18516
  // generated composer-plan state (derived from COMPOSER_PLAN_MAP + lottieUrl)
17726
18517
  ...PRESET_APPLY_CLEAR_KEYS
17727
18518
  ]);
17728
- function extractPresetData(data) {
18519
+ function extractPresetData(data, nodeType) {
17729
18520
  const out = {};
17730
18521
  for (const key of Object.keys(data)) {
17731
- if (EXECUTION_DATA_KEYS.has(key)) continue;
18522
+ if (isExecutionDataKey(key, nodeType)) continue;
17732
18523
  if (PRESET_EXCLUDED_KEYS.has(key)) continue;
17733
18524
  out[key] = data[key];
17734
18525
  }
@@ -17776,14 +18567,14 @@ function buildNodePresetExport(presets, exportedAtIso) {
17776
18567
  kind: NODE_PRESET_EXPORT_KIND,
17777
18568
  version: 1,
17778
18569
  exportedAt: exportedAtIso,
17779
- presets: presets.map((p) => ({ ...p, data: extractPresetData(p.data) }))
18570
+ presets: presets.map((p) => ({ ...p, data: extractPresetData(p.data, p.nodeType) }))
17780
18571
  };
17781
18572
  }
17782
18573
  function parseNodePresetExport(input) {
17783
18574
  const parsed = envelopeSchema.parse(input);
17784
18575
  return {
17785
18576
  ...parsed,
17786
- presets: parsed.presets.map((p) => ({ ...p, data: extractPresetData(p.data) }))
18577
+ presets: parsed.presets.map((p) => ({ ...p, data: extractPresetData(p.data, p.nodeType) }))
17787
18578
  };
17788
18579
  }
17789
18580
 
@@ -18310,6 +19101,7 @@ var ENUM_TARGETS = [
18310
19101
  [TEXT_TO_VIDEO_PROVIDERS, "generate-video"],
18311
19102
  [UPSCALE_IMAGE_PROVIDERS, "upscale-image"],
18312
19103
  [VIDEO_UPSCALE_PROVIDERS, "video-upscale"],
19104
+ [VIDEO_DEPTH_PROVIDERS, "video-depth"],
18313
19105
  [MODIFY_IMAGE_PROVIDERS, "modify-image"],
18314
19106
  [IMAGE_EDIT_PROVIDERS, "modify-image"],
18315
19107
  [VIDEO_TO_VIDEO_PROVIDERS, "video-to-video"],
@@ -18821,8 +19613,8 @@ var isSlot = (v) => typeof v === "number" && Number.isInteger(v) && v >= 1;
18821
19613
  var isIndex = (v) => typeof v === "number" && Number.isInteger(v) && v >= 0;
18822
19614
  function videoOverlayRenderOrder(layers) {
18823
19615
  return layers.map((l, i) => {
18824
- const own2 = isSlot(l?.planLayer) ? l.planLayer - 1 - PLAN_LAYER_Z_BASE : isSlot(l?.slot) ? l.slot - 1 : isIndex(l?.index) ? l.index : i;
18825
- return { i, z: typeof l?.zIndex === "number" && Number.isFinite(l.zIndex) ? l.zIndex : own2 };
19616
+ const own3 = isSlot(l?.planLayer) ? l.planLayer - 1 - PLAN_LAYER_Z_BASE : isSlot(l?.slot) ? l.slot - 1 : isIndex(l?.index) ? l.index : i;
19617
+ return { i, z: typeof l?.zIndex === "number" && Number.isFinite(l.zIndex) ? l.zIndex : own3 };
18826
19618
  }).sort((a, b) => a.z - b.z || a.i - b.i).map((e) => e.i);
18827
19619
  }
18828
19620
  var evenFloor = (n) => Math.max(2, Math.floor(n / 2) * 2);
@@ -18972,8 +19764,8 @@ function assembleVideoOverlayRequest(input) {
18972
19764
  for (let i = 0; i < slots; i++) {
18973
19765
  const raw = asLayer(stored[i]);
18974
19766
  const wiredUrl = wired[i];
18975
- const own2 = raw?.imageUrl;
18976
- const image = typeof wiredUrl === "string" && wiredUrl.length > 0 ? wiredUrl : typeof own2 === "string" && own2.length > 0 ? own2 : void 0;
19767
+ const own3 = raw?.imageUrl;
19768
+ const image = typeof wiredUrl === "string" && wiredUrl.length > 0 ? wiredUrl : typeof own3 === "string" && own3.length > 0 ? own3 : void 0;
18977
19769
  if (!image) continue;
18978
19770
  layers.push(expandVideoOverlayLayer({ ...raw ?? {}, imageUrl: image, slot: i + 1 }));
18979
19771
  }
@@ -18989,8 +19781,8 @@ function assembleVideoOverlayRequest(input) {
18989
19781
  const plan = parseVideoOverlayLayerPlan(input.planLayers);
18990
19782
  if ("error" in plan) return { videoUrl: input.videoUrl, layers, ...rest, planError: plan.error };
18991
19783
  const planned = expandVideoOverlayPresets(plan.layers).map((l, i) => {
18992
- const { slot: _slot, ...own2 } = l;
18993
- return { ...own2, planLayer: i + 1 };
19784
+ const { slot: _slot, ...own3 } = l;
19785
+ return { ...own3, planLayer: i + 1 };
18994
19786
  });
18995
19787
  return { videoUrl: input.videoUrl, layers: [...planned, ...layers], ...rest };
18996
19788
  }
@@ -19000,8 +19792,8 @@ function videoOverlaySlotSources(layers, wiredImageUrls) {
19000
19792
  return Array.from({ length: Math.max(stored.length, wired.length) }, (_, i) => {
19001
19793
  const w = wired[i];
19002
19794
  if (typeof w === "string" && w.length > 0) return w;
19003
- const own2 = asLayer(stored[i])?.imageUrl;
19004
- return typeof own2 === "string" && own2.length > 0 ? own2 : void 0;
19795
+ const own3 = asLayer(stored[i])?.imageUrl;
19796
+ return typeof own3 === "string" && own3.length > 0 ? own3 : void 0;
19005
19797
  });
19006
19798
  }
19007
19799
  function canonicalValue(v) {
@@ -19035,6 +19827,83 @@ function videoOverlayCompositionKey(c) {
19035
19827
  return JSON.stringify(canonicalValue(parts));
19036
19828
  }
19037
19829
 
19830
+ // src/video-mask.ts
19831
+ var VIDEO_MASK_PROVIDERS = ["sam-3.1", "sam-3"];
19832
+ var DEFAULT_VIDEO_MASK_PROVIDER = "sam-3.1";
19833
+ var VIDEO_MASK_DEFAULTS = {
19834
+ threshold: 0.5,
19835
+ provider: "sam-3.1"
19836
+ };
19837
+ var VIDEO_MASK_LIMITS = {
19838
+ /** The longest input clip a run accepts, in seconds of PRICED length (see `videoMaskBilledSeconds`). */
19839
+ MAX_BILLED_SEC: 300,
19840
+ /** Frame rate the price rows assume. A faster clip is priced proportionally longer. */
19841
+ FPS_BASIS: 30,
19842
+ /** Subject description length cap. */
19843
+ PROMPT_MAX_LENGTH: 500,
19844
+ /** Detection confidence bounds (the model's own range, narrowed to useful values). */
19845
+ THRESHOLD_MIN: 0.05,
19846
+ THRESHOLD_MAX: 0.95,
19847
+ THRESHOLD_STEP: 0.05,
19848
+ /** Default detection confidence. Lower finds more (and less precise) regions. */
19849
+ THRESHOLD_DEFAULT: VIDEO_MASK_DEFAULTS.threshold
19850
+ };
19851
+ var VIDEO_MASK_BUCKETS_SEC = [5, 10, 15, 30, 60, 90, 120, 180, 240, 300];
19852
+ function videoMaskCreditIds(provider = DEFAULT_VIDEO_MASK_PROVIDER) {
19853
+ return VIDEO_MASK_BUCKETS_SEC.map((sec2) => `${provider}-video:${sec2}s`);
19854
+ }
19855
+ function videoMaskBilledSeconds(durationSec, fps) {
19856
+ const rate = typeof fps === "number" && Number.isFinite(fps) && fps > 0 ? fps : VIDEO_MASK_LIMITS.FPS_BASIS;
19857
+ return durationSec * Math.max(1, rate / VIDEO_MASK_LIMITS.FPS_BASIS);
19858
+ }
19859
+ function videoMaskCreditId(billedSec, provider = DEFAULT_VIDEO_MASK_PROVIDER) {
19860
+ const ids = videoMaskCreditIds(provider);
19861
+ if (typeof billedSec !== "number" || !Number.isFinite(billedSec) || billedSec <= 0) return ids[ids.length - 1];
19862
+ const i = VIDEO_MASK_BUCKETS_SEC.findIndex((b) => billedSec <= b);
19863
+ return ids[i === -1 ? ids.length - 1 : i];
19864
+ }
19865
+ function resolveVideoMaskProvider(value) {
19866
+ return VIDEO_MASK_PROVIDERS.includes(value) ? value : DEFAULT_VIDEO_MASK_PROVIDER;
19867
+ }
19868
+
19869
+ // src/mask-composite.ts
19870
+ var MASK_COMPOSITE_BACKGROUND_FITS = ["cover", "contain", "stretch"];
19871
+ var MASK_COMPOSITE_AUDIO_SOURCES = ["foreground", "background", "mix", "none"];
19872
+ var MASK_COMPOSITE_BOUNDS = {
19873
+ /** Edge softening, pixels of blur radius on the mask (0 = hard edge). */
19874
+ FEATHER_MIN: 0,
19875
+ FEATHER_MAX: 20,
19876
+ /** Grow (+) or shrink (−) the white region, pixels. */
19877
+ GROW_MIN: -10,
19878
+ GROW_MAX: 10,
19879
+ /** The longest foreground a run accepts, seconds. */
19880
+ MAX_DURATION_SEC: 300
19881
+ };
19882
+ var MASK_COMPOSITE_UNIT_SEC = 5;
19883
+ function maskCompositeUnits(durationSec) {
19884
+ const sec2 = typeof durationSec === "number" && Number.isFinite(durationSec) && durationSec > 0 ? Math.min(durationSec, MASK_COMPOSITE_BOUNDS.MAX_DURATION_SEC) : MASK_COMPOSITE_BOUNDS.MAX_DURATION_SEC;
19885
+ return Math.max(1, Math.ceil(sec2 / MASK_COMPOSITE_UNIT_SEC - 1e-6));
19886
+ }
19887
+ var MASK_COMPOSITE_DEFAULTS = {
19888
+ invertMask: false,
19889
+ feather: 2,
19890
+ grow: 0,
19891
+ backgroundFit: "cover",
19892
+ audioSource: "foreground"
19893
+ };
19894
+ var clampInt2 = (v, min, max, fallback) => typeof v === "number" && Number.isFinite(v) ? Math.min(max, Math.max(min, Math.round(v))) : fallback;
19895
+ function resolveMaskCompositeSettings(data) {
19896
+ const d = MASK_COMPOSITE_DEFAULTS;
19897
+ const b = MASK_COMPOSITE_BOUNDS;
19898
+ return {
19899
+ invertMask: typeof data.invertMask === "boolean" ? data.invertMask : d.invertMask,
19900
+ feather: clampInt2(data.feather, b.FEATHER_MIN, b.FEATHER_MAX, d.feather),
19901
+ grow: clampInt2(data.grow, b.GROW_MIN, b.GROW_MAX, d.grow),
19902
+ backgroundFit: MASK_COMPOSITE_BACKGROUND_FITS.includes(data.backgroundFit) ? data.backgroundFit : d.backgroundFit,
19903
+ audioSource: MASK_COMPOSITE_AUDIO_SOURCES.includes(data.audioSource) ? data.audioSource : d.audioSource
19904
+ };
19905
+ }
19906
+
19038
19907
  // src/entity-image-handle.ts
19039
19908
  var ENTITY_IMAGE_HANDLE_TYPES = /* @__PURE__ */ new Set([
19040
19909
  "character",
@@ -19055,10 +19924,28 @@ var SCRAPER_HANDLE_EFFECTIVE_TYPE = {
19055
19924
  video: "upload-video"
19056
19925
  };
19057
19926
  var SCRAPER_SOURCE_TYPES = /* @__PURE__ */ new Set(["meta-ads-scrape", "instagram-scrape"]);
19927
+ var OUTPUT_PIP_EFFECTIVE_TYPES = Object.freeze({
19928
+ // UGC Creator's `image`: the creator's first image, for any image input.
19929
+ "ugc-creator": Object.freeze({ image: "upload-image" }),
19930
+ // The UGC nodes' plain-text pips — the script's product category, the clips'
19931
+ // transcript, the cards' Notes — are one text each (`combine-text`: one
19932
+ // string, not a list): they reach text and prompt inputs, never a JSON input.
19933
+ "ugc-script": Object.freeze({ category: "combine-text" }),
19934
+ "ugc-clips": Object.freeze({ transcript: "combine-text" }),
19935
+ "ugc-cards": Object.freeze({ report: "combine-text" })
19936
+ });
19937
+ var own2 = (table, key) => Object.hasOwn(table, key) ? table[key] : void 0;
19938
+ function outputPipSourceType(rawSourceType, sourceHandleId) {
19939
+ const type = rawSourceType ?? "";
19940
+ const pips = own2(OUTPUT_PIP_EFFECTIVE_TYPES, type);
19941
+ return (pips && typeof sourceHandleId === "string" ? own2(pips, sourceHandleId) : void 0) ?? type;
19942
+ }
19058
19943
  function resolveEffectiveSourceType(rawSourceType, sourceHandleId) {
19059
19944
  if (sourceHandleId === "image" && ENTITY_IMAGE_HANDLE_TYPES.has(rawSourceType ?? "")) {
19060
19945
  return "upload-image";
19061
19946
  }
19947
+ const pipType = outputPipSourceType(rawSourceType, sourceHandleId);
19948
+ if (pipType !== (rawSourceType ?? "")) return pipType;
19062
19949
  if (AGGREGATE_LANE_SOURCE_TYPES.has(rawSourceType ?? "")) {
19063
19950
  const effective = AGGREGATE_LANE_EFFECTIVE_TYPE[sourceHandleId ?? ""];
19064
19951
  if (effective) return effective;
@@ -22640,22 +23527,22 @@ function isKnownSpeakerEmphasisStyle(style) {
22640
23527
  if (new Set(atoms).size !== atoms.length) return false;
22641
23528
  return !(atoms.includes("none") && atoms.length > 1);
22642
23529
  }
22643
- var isObject = (v) => !!v && typeof v === "object";
23530
+ var isObject2 = (v) => !!v && typeof v === "object";
22644
23531
  function speakerPresentationWarnings(edl) {
22645
23532
  const warnings = [];
22646
- if (!isObject(edl)) return warnings;
23533
+ if (!isObject2(edl)) return warnings;
22647
23534
  const safe = {
22648
23535
  ...edl,
22649
23536
  sources: Array.isArray(edl.sources) ? edl.sources : [],
22650
23537
  segments: Array.isArray(edl.segments) ? edl.segments : []
22651
23538
  };
22652
- const rawAspect = isObject(safe.meta) ? safe.meta.targetAspect : void 0;
23539
+ const rawAspect = isObject2(safe.meta) ? safe.meta.targetAspect : void 0;
22653
23540
  const aspect = isEdlTargetAspect(rawAspect) ? rawAspect : void 0;
22654
23541
  if (rawAspect != null && aspect === void 0) {
22655
23542
  warnings.push(`meta.targetAspect "${String(rawAspect)}" is not a known target aspect (known: ${EDL_TARGET_ASPECTS.join(", ")})`);
22656
23543
  }
22657
23544
  safe.segments.forEach((seg, i) => {
22658
- if (!isObject(seg) || !isObject(seg.layout)) return;
23545
+ if (!isObject2(seg) || !isObject2(seg.layout)) return;
22659
23546
  const at = `segment[${i}] "${seg.id}"`;
22660
23547
  const layout = seg.layout;
22661
23548
  const sheet = typeof layout.mode === "string" ? getSpeakerLayout(layout.mode) : void 0;
@@ -22671,7 +23558,7 @@ function speakerPresentationWarnings(edl) {
22671
23558
  warnings.push(`${at}: layout "${sheet.id}" is not drawn for targetAspect ${aspect} (drawn for: ${sheet.aspects.join(", ")})`);
22672
23559
  }
22673
23560
  }
22674
- if (isObject(layout.transition)) {
23561
+ if (isObject2(layout.transition)) {
22675
23562
  const type = layout.transition.type;
22676
23563
  const sw = typeof type === "string" ? getSpeakerSwitch(type) : void 0;
22677
23564
  if (!sw) {
@@ -22679,13 +23566,13 @@ function speakerPresentationWarnings(edl) {
22679
23566
  } else if (sw.requiresSameSource && i > 0) {
22680
23567
  const prev = safe.segments[i - 1];
22681
23568
  const cur = resolveEdlSegmentSlots(safe, seg);
22682
- const before = isObject(prev) ? resolveEdlSegmentSlots(safe, prev) : [];
23569
+ const before = isObject2(prev) ? resolveEdlSegmentSlots(safe, prev) : [];
22683
23570
  if (cur.length === 1 && before.length === 1 && cur[0].source !== before[0].source) {
22684
23571
  warnings.push(`${at}: switch "${sw.id}" moves within ONE picture source, but the previous segment shows "${before[0].source}" and this one "${cur[0].source}"`);
22685
23572
  }
22686
23573
  }
22687
23574
  }
22688
- if (isObject(layout.emphasis) && !isKnownSpeakerEmphasisStyle(layout.emphasis.style)) {
23575
+ if (isObject2(layout.emphasis) && !isKnownSpeakerEmphasisStyle(layout.emphasis.style)) {
22689
23576
  const style = String(layout.emphasis.style);
22690
23577
  const atoms = parseSpeakerEmphasisStyle(layout.emphasis.style);
22691
23578
  warnings.push(atoms.length > 0 && atoms.every((a) => EMPHASIS_STYLE_SET.has(a)) ? `${at}: emphasis style "${style}" \u2014 "none" must stand alone and no style may repeat` : `${at}: unknown emphasis style "${style}" (a "+"-joined set of: ${SPEAKER_EMPHASIS_STYLES.join(", ")})`);
@@ -23843,8 +24730,8 @@ function savedRenderOutput(data) {
23843
24730
  const selected = results[index] ?? results[0];
23844
24731
  const selectedUrl = str5(selected?.url);
23845
24732
  if (selectedUrl) return itemOf(selectedUrl, medium, selected);
23846
- const own2 = str5(data[MEDIUM_FIELD[medium]]);
23847
- if (own2) return { url: own2, medium };
24733
+ const own3 = str5(data[MEDIUM_FIELD[medium]]);
24734
+ if (own3) return { url: own3, medium };
23848
24735
  const other = medium === "video" ? "audio" : "video";
23849
24736
  const otherUrl = str5(data[MEDIUM_FIELD[other]]);
23850
24737
  return otherUrl ? { url: otherUrl, medium: other } : void 0;
@@ -24269,49 +25156,6 @@ function planFeedEmission(posts, since, limit, pageMaxId) {
24269
25156
  return { emitted, latestId: pastUnreadable ? pageMaxId : since };
24270
25157
  }
24271
25158
 
24272
- // src/ugc-run-state.ts
24273
- var UGC_NODE_TYPES = /* @__PURE__ */ new Set(["ugc-creator", "ugc-script", "ugc-clips", "ugc-clip", "ugc-cards"]);
24274
- var UGC_NODE_RUN_STATE_KEYS = {
24275
- "ugc-creator": ["result", "keepResult", "ugcOutputs"],
24276
- "ugc-script": ["result", "keepResult", "ugcOutputs"],
24277
- "ugc-clips": ["result", "quote", "__listResults", "ugcOutputs"],
24278
- "ugc-clip": ["warnings", "rerender", "__listResults", "__listResultMeta", "clipWarnings", "durationSec", "ugcOutputs"],
24279
- "ugc-cards": ["result", "ugcOutputs"]
24280
- };
24281
- var UGC_OVERRIDABLE_FIELDS = {
24282
- "ugc-creator": ["source", "gender", "photoUrl"],
24283
- "ugc-script": ["targetDurationSec"],
24284
- "ugc-clips": [],
24285
- "ugc-clip": [],
24286
- "ugc-cards": []
24287
- };
24288
- var KEEP_RESULT_TYPES = /* @__PURE__ */ new Set(["ugc-creator", "ugc-script"]);
24289
- function stripUgcRunState(nodes) {
24290
- return nodes.map((node) => {
24291
- const type = typeof node.type === "string" ? node.type : "";
24292
- if (!UGC_NODE_TYPES.has(type) || !node.data || typeof node.data !== "object") return node;
24293
- const data = { ...node.data };
24294
- for (const key of UGC_NODE_RUN_STATE_KEYS[type] ?? []) delete data[key];
24295
- if (KEEP_RESULT_TYPES.has(type)) data.keepResult = false;
24296
- return { ...node, data };
24297
- });
24298
- }
24299
- function findUgcLockedFields(nodes, inputOverrides) {
24300
- if (!nodes || !inputOverrides) return [];
24301
- const found = [];
24302
- for (const node of nodes) {
24303
- const type = node?.type;
24304
- if (typeof type !== "string" || !UGC_NODE_TYPES.has(type)) continue;
24305
- const allowed = UGC_OVERRIDABLE_FIELDS[type] ?? [];
24306
- const fields = inputOverrides[node.id];
24307
- if (!fields || typeof fields !== "object") continue;
24308
- for (const field of Object.keys(fields)) {
24309
- if (!allowed.includes(field)) found.push({ nodeId: String(node.id), nodeType: type, field });
24310
- }
24311
- }
24312
- return found;
24313
- }
24314
-
24315
25159
  // src/ugc-call-body.ts
24316
25160
  var pick = (a, from, to) => a[from] !== void 0 && a[from] !== null ? { [to]: a[from] } : {};
24317
25161
  function llmFields(a) {
@@ -24553,6 +25397,7 @@ exports.DEFAULT_VIDEO_ANALYSIS_MODEL = DEFAULT_VIDEO_ANALYSIS_MODEL;
24553
25397
  exports.DEFAULT_VIDEO_ANALYSIS_TIER = DEFAULT_VIDEO_ANALYSIS_TIER;
24554
25398
  exports.DEFAULT_VIDEO_CLIP_COST = DEFAULT_VIDEO_CLIP_COST;
24555
25399
  exports.DEFAULT_VIDEO_DURATION_SEC = DEFAULT_VIDEO_DURATION_SEC;
25400
+ exports.DEFAULT_VIDEO_MASK_PROVIDER = DEFAULT_VIDEO_MASK_PROVIDER;
24556
25401
  exports.DEFAULT_VIDEO_OVERLAY_LAYER = DEFAULT_VIDEO_OVERLAY_LAYER;
24557
25402
  exports.DEFAULT_VIDEO_PROVIDER = DEFAULT_VIDEO_PROVIDER;
24558
25403
  exports.DEFAULT_VOICE_CHANGER_MODEL = DEFAULT_VOICE_CHANGER_MODEL;
@@ -24600,6 +25445,7 @@ exports.EntityStaleEventSchema = EntityStaleEventSchema;
24600
25445
  exports.EntityStateChangeEventSchema = EntityStateChangeEventSchema;
24601
25446
  exports.FACE_SWAP_PROVIDERS = FACE_SWAP_PROVIDERS;
24602
25447
  exports.FAL_LIP_SYNC_PROVIDERS = FAL_LIP_SYNC_PROVIDERS;
25448
+ exports.FAL_VIDEO_DEPTH_PROVIDERS = FAL_VIDEO_DEPTH_PROVIDERS;
24603
25449
  exports.FAN_IN_TARGETS = FAN_IN_TARGETS;
24604
25450
  exports.FAN_OUT_ALL_OR_NOTHING_TYPES = FAN_OUT_ALL_OR_NOTHING_TYPES;
24605
25451
  exports.FAN_OUT_EACH_HANDLES = FAN_OUT_EACH_HANDLES;
@@ -24731,6 +25577,11 @@ exports.LocationImageCriticVerdictSchema = LocationImageCriticVerdictSchema;
24731
25577
  exports.LocationMetadataSchema = LocationMetadataSchema;
24732
25578
  exports.LocationsCoverageCriticIssueSchema = LocationsCoverageCriticIssueSchema;
24733
25579
  exports.LocationsCoverageCriticVerdictSchema = LocationsCoverageCriticVerdictSchema;
25580
+ exports.MASK_COMPOSITE_AUDIO_SOURCES = MASK_COMPOSITE_AUDIO_SOURCES;
25581
+ exports.MASK_COMPOSITE_BACKGROUND_FITS = MASK_COMPOSITE_BACKGROUND_FITS;
25582
+ exports.MASK_COMPOSITE_BOUNDS = MASK_COMPOSITE_BOUNDS;
25583
+ exports.MASK_COMPOSITE_DEFAULTS = MASK_COMPOSITE_DEFAULTS;
25584
+ exports.MASK_COMPOSITE_UNIT_SEC = MASK_COMPOSITE_UNIT_SEC;
24734
25585
  exports.MATCH_CUT_BREAK_GATE = MATCH_CUT_BREAK_GATE;
24735
25586
  exports.MAX_CUSTOM_ENTRIES_PER_BOARD = MAX_CUSTOM_ENTRIES_PER_BOARD;
24736
25587
  exports.MAX_IMAGE_PROMPT_CHARS_BY_PROVIDER = MAX_IMAGE_PROMPT_CHARS_BY_PROVIDER;
@@ -24788,6 +25639,9 @@ exports.NODE_DEFAULT_TYPES = NODE_DEFAULT_TYPES;
24788
25639
  exports.NODE_MAPPABLE_FIELDS = NODE_MAPPABLE_FIELDS;
24789
25640
  exports.NODE_PRESET_EXPORT_KIND = NODE_PRESET_EXPORT_KIND;
24790
25641
  exports.NODE_REF_PATTERN = NODE_REF_PATTERN;
25642
+ exports.NODE_RUN_ROUTES = NODE_RUN_ROUTES;
25643
+ exports.NODE_TYPES_WITHOUT_RUN_ROUTE = NODE_TYPES_WITHOUT_RUN_ROUTE;
25644
+ exports.NODE_TYPE_EXECUTION_DATA_KEYS = NODE_TYPE_EXECUTION_DATA_KEYS;
24791
25645
  exports.NON_EN_LOCALE_IDS = NON_EN_LOCALE_IDS;
24792
25646
  exports.NON_PROMPT_TEXT_LANES = NON_PROMPT_TEXT_LANES;
24793
25647
  exports.NO_SAVED_RENDER_STAMPS = NO_SAVED_RENDER_STAMPS;
@@ -24807,6 +25661,7 @@ exports.ORG_STATUSES = ORG_STATUSES;
24807
25661
  exports.OUTPUT_BEARING_NODE_STATUSES = OUTPUT_BEARING_NODE_STATUSES;
24808
25662
  exports.OUTPUT_FIELD_MAP = OUTPUT_FIELD_MAP;
24809
25663
  exports.OUTPUT_FORMATS = OUTPUT_FORMATS;
25664
+ exports.OUTPUT_PIP_EFFECTIVE_TYPES = OUTPUT_PIP_EFFECTIVE_TYPES;
24810
25665
  exports.OVERLAY_ANCHORS = OVERLAY_ANCHORS;
24811
25666
  exports.OVERLAY_FONTS = OVERLAY_FONTS;
24812
25667
  exports.OVERLAY_FONT_IDS = OVERLAY_FONT_IDS;
@@ -24845,6 +25700,8 @@ exports.PIPELINE_PINNABLE_VIDEO_MODELS = PIPELINE_PINNABLE_VIDEO_MODELS;
24845
25700
  exports.PIPELINE_STAGE_NAMES = PIPELINE_STAGE_NAMES;
24846
25701
  exports.PIPELINE_STAGE_TIMEOUT_MS = PIPELINE_STAGE_TIMEOUT_MS;
24847
25702
  exports.PIPELINE_TYPES = PIPELINE_TYPES;
25703
+ exports.PITCH_TEMPO_LIMITS = PITCH_TEMPO_LIMITS;
25704
+ exports.PITCH_TEMPO_PRICING = PITCH_TEMPO_PRICING;
24848
25705
  exports.PLACEHOLDER_CHARACTER_NAME = PLACEHOLDER_CHARACTER_NAME;
24849
25706
  exports.PLATFORM_LABELS = PLATFORM_LABELS;
24850
25707
  exports.PLATFORM_SPECS = PLATFORM_SPECS;
@@ -24916,6 +25773,7 @@ exports.RENDER_VIDEO_CREDIT_ID = RENDER_VIDEO_CREDIT_ID;
24916
25773
  exports.REPEATABLE_NODE_TYPES = REPEATABLE_NODE_TYPES;
24917
25774
  exports.REPEAT_PLACEHOLDER = REPEAT_PLACEHOLDER;
24918
25775
  exports.REPLICATE_LIP_SYNC_PROVIDERS = REPLICATE_LIP_SYNC_PROVIDERS;
25776
+ exports.REPLICATE_VIDEO_DEPTH_PROVIDERS = REPLICATE_VIDEO_DEPTH_PROVIDERS;
24919
25777
  exports.RESERVED_TEMPLATE_VARS = RESERVED_TEMPLATE_VARS;
24920
25778
  exports.RUN_CONTINUATION_CODES = RUN_CONTINUATION_CODES;
24921
25779
  exports.RUN_OVERRIDE_CLEARED_FIELDS = RUN_OVERRIDE_CLEARED_FIELDS;
@@ -24996,6 +25854,12 @@ exports.SEEDANCE_2_PROVIDERS = SEEDANCE_2_PROVIDERS;
24996
25854
  exports.SEEDANCE_2_R2V_MAX_AUDIO_SEC_BY_PROVIDER = SEEDANCE_2_R2V_MAX_AUDIO_SEC_BY_PROVIDER;
24997
25855
  exports.SEEDANCE_2_R2V_MIN_REF_VIDEO_SEC = SEEDANCE_2_R2V_MIN_REF_VIDEO_SEC;
24998
25856
  exports.SEEDANCE_2_REF_LIMITS = SEEDANCE_2_REF_LIMITS;
25857
+ exports.SEEDANCE_DRAFT_FINALIZE_MAX_SEC = SEEDANCE_DRAFT_FINALIZE_MAX_SEC;
25858
+ exports.SEEDANCE_DRAFT_FINALIZE_MIN_SEC = SEEDANCE_DRAFT_FINALIZE_MIN_SEC;
25859
+ exports.SEEDANCE_DRAFT_FINALIZE_PROVIDER = SEEDANCE_DRAFT_FINALIZE_PROVIDER;
25860
+ exports.SEEDANCE_DRAFT_FINALIZE_RESOLUTION = SEEDANCE_DRAFT_FINALIZE_RESOLUTION;
25861
+ exports.SEEDANCE_DRAFT_MODELS = SEEDANCE_DRAFT_MODELS;
25862
+ exports.SEEDANCE_DRAFT_RESOLUTION = SEEDANCE_DRAFT_RESOLUTION;
24999
25863
  exports.SEEDANCE_LIP_SYNC_PROVIDERS = SEEDANCE_LIP_SYNC_PROVIDERS;
25000
25864
  exports.SEEDANCE_VIDEO_EDIT_PROVIDERS = SEEDANCE_VIDEO_EDIT_PROVIDERS;
25001
25865
  exports.SEEDANCE_VIDEO_EDIT_SHAPE = SEEDANCE_VIDEO_EDIT_SHAPE;
@@ -25020,6 +25884,7 @@ exports.SMART_CUT_WINDOW_DEFAULT = SMART_CUT_WINDOW_DEFAULT;
25020
25884
  exports.SMART_CUT_WINDOW_MAX = SMART_CUT_WINDOW_MAX;
25021
25885
  exports.SMART_CUT_WINDOW_MIN = SMART_CUT_WINDOW_MIN;
25022
25886
  exports.SOCIAL_PLATFORMS = SOCIAL_PLATFORMS;
25887
+ exports.SOCIAL_POST_NODE_PLATFORM = SOCIAL_POST_NODE_PLATFORM;
25023
25888
  exports.SOCIAL_POST_NODE_TYPES = SOCIAL_POST_NODE_TYPES;
25024
25889
  exports.SOCIAL_POST_READER_NODE_TYPES = SOCIAL_POST_READER_NODE_TYPES;
25025
25890
  exports.SOCIAL_POST_VIDEO_LINK_MARGIN_MS = SOCIAL_POST_VIDEO_LINK_MARGIN_MS;
@@ -25052,6 +25917,8 @@ exports.SPEAKER_TRACKS_MAX_BOXES_PER_SOURCE = SPEAKER_TRACKS_MAX_BOXES_PER_SOURC
25052
25917
  exports.SPEAKER_TRACKS_MAX_BYTES = SPEAKER_TRACKS_MAX_BYTES;
25053
25918
  exports.SPEAKER_TRACKS_VERSION = SPEAKER_TRACKS_VERSION;
25054
25919
  exports.SPEAKER_TRACK_ATTRIBUTION_METHODS = SPEAKER_TRACK_ATTRIBUTION_METHODS;
25920
+ exports.SPEAKER_VIEW_CREDIT_IDS = SPEAKER_VIEW_CREDIT_IDS;
25921
+ exports.SPEAKER_VIEW_PRICE_TIERS = SPEAKER_VIEW_PRICE_TIERS;
25055
25922
  exports.SPEECH_FLOOR_UNITS = SPEECH_FLOOR_UNITS;
25056
25923
  exports.SPEECH_PRICE_UNIT_CHARS = SPEECH_PRICE_UNIT_CHARS;
25057
25924
  exports.SPEECH_UNIT_CREDIT_SUFFIX = SPEECH_UNIT_CREDIT_SUFFIX;
@@ -25143,9 +26010,25 @@ exports.TTS_PROVIDER_ALIASES = TTS_PROVIDER_ALIASES;
25143
26010
  exports.TTS_TEXT_MAX = TTS_TEXT_MAX;
25144
26011
  exports.TWO_K_RESOLUTION_PROVIDERS = TWO_K_RESOLUTION_PROVIDERS;
25145
26012
  exports.TransitionTypeSchema = TransitionTypeSchema;
26013
+ exports.UGC_CREATOR_CANDIDATES_KEY = UGC_CREATOR_CANDIDATES_KEY;
26014
+ exports.UGC_CREATOR_MISSING_MESSAGE = UGC_CREATOR_MISSING_MESSAGE;
26015
+ exports.UGC_CREATOR_PICKER_TYPES = UGC_CREATOR_PICKER_TYPES;
26016
+ exports.UGC_NEWER_APP_MESSAGE = UGC_NEWER_APP_MESSAGE;
26017
+ exports.UGC_NODE_MESSAGES = UGC_NODE_MESSAGES;
25146
26018
  exports.UGC_NODE_RUN_STATE_KEYS = UGC_NODE_RUN_STATE_KEYS;
25147
26019
  exports.UGC_NODE_TYPES = UGC_NODE_TYPES;
26020
+ exports.UGC_NOT_SERVED_MESSAGE = UGC_NOT_SERVED_MESSAGE;
25148
26021
  exports.UGC_OVERRIDABLE_FIELDS = UGC_OVERRIDABLE_FIELDS;
26022
+ exports.UGC_PICK_FIRST_MESSAGE = UGC_PICK_FIRST_MESSAGE;
26023
+ exports.UGC_PICK_GONE_MESSAGE = UGC_PICK_GONE_MESSAGE;
26024
+ exports.UGC_PRIMARY_HANDLE = UGC_PRIMARY_HANDLE;
26025
+ exports.UGC_PUBLISH_PRIVATE_FIELDS = UGC_PUBLISH_PRIVATE_FIELDS;
26026
+ exports.UGC_SCREENSHOT_HANDLES = UGC_SCREENSHOT_HANDLES;
26027
+ exports.UGC_SCRIPT_DEFAULT_TARGET_SEC = UGC_SCRIPT_DEFAULT_TARGET_SEC;
26028
+ exports.UGC_SCRIPT_MAX_TARGET_SEC = UGC_SCRIPT_MAX_TARGET_SEC;
26029
+ exports.UGC_SCRIPT_MIN_TARGET_SEC = UGC_SCRIPT_MIN_TARGET_SEC;
26030
+ exports.UGC_SCRIPT_NEEDS_CHANGES = UGC_SCRIPT_NEEDS_CHANGES;
26031
+ exports.UGC_VERSION_MESSAGE = UGC_VERSION_MESSAGE;
25149
26032
  exports.UPSCALE_IMAGE_PROVIDERS = UPSCALE_IMAGE_PROVIDERS;
25150
26033
  exports.USAGE_GROUP_BYS = USAGE_GROUP_BYS;
25151
26034
  exports.USAGE_MODES = USAGE_MODES;
@@ -25196,6 +26079,12 @@ exports.VIDEO_CRITIC_MAX_RETRIES = VIDEO_CRITIC_MAX_RETRIES;
25196
26079
  exports.VIDEO_CRITIC_METADATA_KEYS = VIDEO_CRITIC_METADATA_KEYS;
25197
26080
  exports.VIDEO_CRITIC_MIN_ADHERENCE_SCORE = VIDEO_CRITIC_MIN_ADHERENCE_SCORE;
25198
26081
  exports.VIDEO_CRITIC_RESERVED_CREDITS_PER_SHOT = VIDEO_CRITIC_RESERVED_CREDITS_PER_SHOT;
26082
+ exports.VIDEO_DEPTH_BUCKETS = VIDEO_DEPTH_BUCKETS;
26083
+ exports.VIDEO_DEPTH_COLORMAPS = VIDEO_DEPTH_COLORMAPS;
26084
+ exports.VIDEO_DEPTH_LIMITS = VIDEO_DEPTH_LIMITS;
26085
+ exports.VIDEO_DEPTH_MODEL_SIZES = VIDEO_DEPTH_MODEL_SIZES;
26086
+ exports.VIDEO_DEPTH_PROVIDERS = VIDEO_DEPTH_PROVIDERS;
26087
+ exports.VIDEO_DEPTH_RESOLUTIONS = VIDEO_DEPTH_RESOLUTIONS;
25199
26088
  exports.VIDEO_DURATION_AUTO = VIDEO_DURATION_AUTO;
25200
26089
  exports.VIDEO_DURATION_TIERS = VIDEO_DURATION_TIERS;
25201
26090
  exports.VIDEO_GEN_COLLAPSED_T2V_IDS = VIDEO_GEN_COLLAPSED_T2V_IDS;
@@ -25204,6 +26093,9 @@ exports.VIDEO_INPUT_LIP_SYNC_PROVIDERS = VIDEO_INPUT_LIP_SYNC_PROVIDERS;
25204
26093
  exports.VIDEO_LINK_AUDIO_CONSUMER_TYPES = VIDEO_LINK_AUDIO_CONSUMER_TYPES;
25205
26094
  exports.VIDEO_LINK_DERIVED_FIELDS = VIDEO_LINK_DERIVED_FIELDS;
25206
26095
  exports.VIDEO_LINK_TOLERANT_CONSUMER_TYPES = VIDEO_LINK_TOLERANT_CONSUMER_TYPES;
26096
+ exports.VIDEO_MASK_DEFAULTS = VIDEO_MASK_DEFAULTS;
26097
+ exports.VIDEO_MASK_LIMITS = VIDEO_MASK_LIMITS;
26098
+ exports.VIDEO_MASK_PROVIDERS = VIDEO_MASK_PROVIDERS;
25207
26099
  exports.VIDEO_MODEL_CAPS = VIDEO_MODEL_CAPS;
25208
26100
  exports.VIDEO_MODE_ALIASES = VIDEO_MODE_ALIASES;
25209
26101
  exports.VIDEO_ONLY_PARAMETER_NODE_TYPES = VIDEO_ONLY_PARAMETER_NODE_TYPES;
@@ -25344,6 +26236,7 @@ exports.characterMentionableAssetArrays = characterMentionableAssetArrays;
25344
26236
  exports.characterSheetRefItems = characterSheetRefItems;
25345
26237
  exports.characterVariantAssetArrays = characterVariantAssetArrays;
25346
26238
  exports.checkRefVideoDurations = checkRefVideoDurations;
26239
+ exports.checkVideoDepthLength = checkVideoDepthLength;
25347
26240
  exports.cinematicCreditId = cinematicCreditId;
25348
26241
  exports.clampCameraSwitchSetting = clampCameraSwitchSetting;
25349
26242
  exports.clampChars = clampChars;
@@ -25451,6 +26344,7 @@ exports.evaluateCondition = evaluateCondition;
25451
26344
  exports.evaluateConditionGroup = evaluateConditionGroup;
25452
26345
  exports.evaluateJsonExpression = evaluateJsonExpression;
25453
26346
  exports.evaluateJsonPath = evaluateJsonPath;
26347
+ exports.executionDataKeysOf = executionDataKeysOf;
25454
26348
  exports.executionOutcome = executionOutcome;
25455
26349
  exports.expandExtraRefsToConnectedReferences = expandExtraRefsToConnectedReferences;
25456
26350
  exports.expandItemsWithRepeat = expandItemsWithRepeat;
@@ -25575,6 +26469,7 @@ exports.isCronExpression = isCronExpression;
25575
26469
  exports.isDefaultSelectorConfig = isDefaultSelectorConfig;
25576
26470
  exports.isDirectVideoFileUrl = isDirectVideoFileUrl;
25577
26471
  exports.isEdlTargetAspect = isEdlTargetAspect;
26472
+ exports.isExecutionDataKey = isExecutionDataKey;
25578
26473
  exports.isExpandedClone = isExpandedClone;
25579
26474
  exports.isFacebookPageUrl = isFacebookPageUrl;
25580
26475
  exports.isFanInEdge = isFanInEdge;
@@ -25622,6 +26517,7 @@ exports.isScene3DReviewUnavailableReason = isScene3DReviewUnavailableReason;
25622
26517
  exports.isScene3DSchemaVersionSupported = isScene3DSchemaVersionSupported;
25623
26518
  exports.isScraperActor = isScraperActor;
25624
26519
  exports.isSeedance2Provider = isSeedance2Provider;
26520
+ exports.isSeedanceDraftCapable = isSeedanceDraftCapable;
25625
26521
  exports.isSeedanceVideoEditProvider = isSeedanceVideoEditProvider;
25626
26522
  exports.isSettingsHintEdge = isSettingsHintEdge;
25627
26523
  exports.isSettingsHintSource = isSettingsHintSource;
@@ -25670,6 +26566,7 @@ exports.ltxRetakeDurationSec = ltxRetakeDurationSec;
25670
26566
  exports.mapAspectRatio = mapAspectRatio;
25671
26567
  exports.mapQuality = mapQuality;
25672
26568
  exports.mapShotIntentToProviderDirectives = mapShotIntentToProviderDirectives;
26569
+ exports.maskCompositeUnits = maskCompositeUnits;
25673
26570
  exports.matchVariant = matchVariant;
25674
26571
  exports.matchesCron = matchesCron;
25675
26572
  exports.matchesCronField = matchesCronField;
@@ -25695,6 +26592,7 @@ exports.migrateToItems = migrateToItems;
25695
26592
  exports.minSegmentSecFor = minSegmentSecFor;
25696
26593
  exports.minimalRatioDimensions = minimalRatioDimensions;
25697
26594
  exports.modelIdsByKindMode = modelIdsByKindMode;
26595
+ exports.modelTakesSeed = modelTakesSeed;
25698
26596
  exports.modelToNodeTarget = modelToNodeTarget;
25699
26597
  exports.modelsForInputMode = modelsForInputMode;
25700
26598
  exports.modelsWithFeature = modelsWithFeature;
@@ -25703,6 +26601,7 @@ exports.nearestCatalogAspectRatio = nearestCatalogAspectRatio;
25703
26601
  exports.newScene3DRevisionId = newScene3DRevisionId;
25704
26602
  exports.nextScheduleRuns = nextScheduleRuns;
25705
26603
  exports.nodeFeedsAnything = nodeFeedsAnything;
26604
+ exports.nodeRunRoute = nodeRunRoute;
25706
26605
  exports.nodeStateMayCarryOutput = nodeStateMayCarryOutput;
25707
26606
  exports.nonBlankCaptionText = nonBlankCaptionText;
25708
26607
  exports.normalizeCaptionNumericLevers = normalizeCaptionNumericLevers;
@@ -25730,6 +26629,7 @@ exports.normalizeWan3Resolution = normalizeWan3Resolution;
25730
26629
  exports.normalizedImageGenModelId = normalizedImageGenModelId;
25731
26630
  exports.orderedLlmModels = orderedLlmModels;
25732
26631
  exports.outputMsToMasterMs = outputMsToMasterMs;
26632
+ exports.outputPipSourceType = outputPipSourceType;
25733
26633
  exports.overlayFontById = overlayFontById;
25734
26634
  exports.overlayImageEffectsSchema = overlayImageEffectsSchema;
25735
26635
  exports.overlayPlatformById = overlayPlatformById;
@@ -25755,6 +26655,7 @@ exports.parseListExpression = parseListExpression;
25755
26655
  exports.parseLocationMentionToken = parseLocationMentionToken;
25756
26656
  exports.parseNodePresetExport = parseNodePresetExport;
25757
26657
  exports.parseNodeRef = parseNodeRef;
26658
+ exports.parsePitchTempoCreditId = parsePitchTempoCreditId;
25758
26659
  exports.parseScene3DCameraTrackJson = parseScene3DCameraTrackJson;
25759
26660
  exports.parseScene3DPlanV2Json = parseScene3DPlanV2Json;
25760
26661
  exports.parseSpeakerEmphasisStyle = parseSpeakerEmphasisStyle;
@@ -25766,6 +26667,9 @@ exports.pickLipSyncBucket = pickLipSyncBucket;
25766
26667
  exports.pickSocialPosts = pickSocialPosts;
25767
26668
  exports.pickSwitchXFrameTier = pickSwitchXFrameTier;
25768
26669
  exports.pickVideoAnalysisBucket = pickVideoAnalysisBucket;
26670
+ exports.pitchTempoBaseCredits = pitchTempoBaseCredits;
26671
+ exports.pitchTempoCreditId = pitchTempoCreditId;
26672
+ exports.pitchTempoStartedMinutes = pitchTempoStartedMinutes;
25769
26673
  exports.planClipKeyAt = planClipKeyAt;
25770
26674
  exports.planFanOut = planFanOut;
25771
26675
  exports.planFeedEmission = planFeedEmission;
@@ -25794,6 +26698,7 @@ exports.pro3DRenderTimingOverrides = pro3DRenderTimingOverrides;
25794
26698
  exports.qualityOptionsByKind = qualityOptionsByKind;
25795
26699
  exports.readPromptAffixes = readPromptAffixes;
25796
26700
  exports.readScriptSettings = readScriptSettings;
26701
+ exports.readUgcWire = readUgcWire;
25797
26702
  exports.reasoningOutputFloor = reasoningOutputFloor;
25798
26703
  exports.refHandleCategory = refHandleCategory;
25799
26704
  exports.referenceModalityForHandle = referenceModalityForHandle;
@@ -25856,6 +26761,7 @@ exports.resolveLlmCreditId = resolveLlmCreditId;
25856
26761
  exports.resolveLocationFields = resolveLocationFields;
25857
26762
  exports.resolveLocationPresetCatalog = resolveLocationPresetCatalog;
25858
26763
  exports.resolveLottieOverlaySrc = resolveLottieOverlaySrc;
26764
+ exports.resolveMaskCompositeSettings = resolveMaskCompositeSettings;
25859
26765
  exports.resolveMetaAdsScrapeCreditId = resolveMetaAdsScrapeCreditId;
25860
26766
  exports.resolveMusicProvider = resolveMusicProvider;
25861
26767
  exports.resolveNodeRefs = resolveNodeRefs;
@@ -25876,7 +26782,11 @@ exports.resolveSwitchXCreditId = resolveSwitchXCreditId;
25876
26782
  exports.resolveTemplateCategory = resolveTemplateCategory;
25877
26783
  exports.resolveTopazUpscale = resolveTopazUpscale;
25878
26784
  exports.resolveVideoAnalysisModel = resolveVideoAnalysisModel;
26785
+ exports.resolveVideoDepthColormap = resolveVideoDepthColormap;
26786
+ exports.resolveVideoDepthModelSize = resolveVideoDepthModelSize;
26787
+ exports.resolveVideoDepthProvider = resolveVideoDepthProvider;
25879
26788
  exports.resolveVideoLinkOutput = resolveVideoLinkOutput;
26789
+ exports.resolveVideoMaskProvider = resolveVideoMaskProvider;
25880
26790
  exports.resolveVideoModeForInputs = resolveVideoModeForInputs;
25881
26791
  exports.resolveVideoOverlayGeometry = resolveVideoOverlayGeometry;
25882
26792
  exports.resolveVideoProviderForMode = resolveVideoProviderForMode;
@@ -25975,6 +26885,8 @@ exports.scheduleMatchesAt = scheduleMatchesAt;
25975
26885
  exports.scheduleOccurrences = scheduleOccurrences;
25976
26886
  exports.searchModelVariants = searchModelVariants;
25977
26887
  exports.seedance2AudioLimitSec = seedance2AudioLimitSec;
26888
+ exports.seedanceDraftFinalizeBillableSec = seedanceDraftFinalizeBillableSec;
26889
+ exports.seedanceDraftFinalizeCreditId = seedanceDraftFinalizeCreditId;
25978
26890
  exports.seedanceVideoEditCreditId = seedanceVideoEditCreditId;
25979
26891
  exports.segmentDurationsFor = segmentDurationsFor;
25980
26892
  exports.selectByModulo = selectByModulo;
@@ -25983,6 +26895,7 @@ exports.selectByPredicate = selectByPredicate;
25983
26895
  exports.selectListItems = selectListItems;
25984
26896
  exports.selectLoraRoutingForMentions = selectLoraRoutingForMentions;
25985
26897
  exports.selectRandom = selectRandom;
26898
+ exports.semitonesToPitchRatio = semitonesToPitchRatio;
25986
26899
  exports.setRegisteredPersonPackFields = setRegisteredPersonPackFields;
25987
26900
  exports.settingsInputAccepts = settingsInputAccepts;
25988
26901
  exports.settingsInputFields = settingsInputFields;
@@ -26077,7 +26990,32 @@ exports.ttsSupportsAudioTags = ttsSupportsAudioTags;
26077
26990
  exports.ttsSupportsSsmlBreaks = ttsSupportsSsmlBreaks;
26078
26991
  exports.ttsSupportsStitching = ttsSupportsStitching;
26079
26992
  exports.ttsSupportsTimestamps = ttsSupportsTimestamps;
26993
+ exports.ugcAwaitsPick = ugcAwaitsPick;
26080
26994
  exports.ugcCallToRouteBody = ugcCallToRouteBody;
26995
+ exports.ugcCardsBody = ugcCardsBody;
26996
+ exports.ugcCardsJobs = ugcCardsJobs;
26997
+ exports.ugcCardsOutputs = ugcCardsOutputs;
26998
+ exports.ugcClipBody = ugcClipBody;
26999
+ exports.ugcClipOutputs = ugcClipOutputs;
27000
+ exports.ugcClipSavedList = ugcClipSavedList;
27001
+ exports.ugcClipsBody = ugcClipsBody;
27002
+ exports.ugcClipsOutputs = ugcClipsOutputs;
27003
+ exports.ugcCreatorBody = ugcCreatorBody;
27004
+ exports.ugcCreatorCallsToRender = ugcCreatorCallsToRender;
27005
+ exports.ugcCreatorCandidate = ugcCreatorCandidate;
27006
+ exports.ugcCreatorCandidates = ugcCreatorCandidates;
27007
+ exports.ugcCreatorOutputs = ugcCreatorOutputs;
27008
+ exports.ugcCreatorPick = ugcCreatorPick;
27009
+ exports.ugcFailure = ugcFailure;
27010
+ exports.ugcKeptOutputs = ugcKeptOutputs;
27011
+ exports.ugcPickPending = ugcPickPending;
27012
+ exports.ugcPipValue = ugcPipValue;
27013
+ exports.ugcPlanLengthSec = ugcPlanLengthSec;
27014
+ exports.ugcPlanScreenshotCount = ugcPlanScreenshotCount;
27015
+ exports.ugcRunWaitsForPick = ugcRunWaitsForPick;
27016
+ exports.ugcScriptBody = ugcScriptBody;
27017
+ exports.ugcScriptOutputs = ugcScriptOutputs;
27018
+ exports.ugcScriptResult = ugcScriptResult;
26081
27019
  exports.uiAspectRatioFill = uiAspectRatioFill;
26082
27020
  exports.uiDurationFill = uiDurationFill;
26083
27021
  exports.uiResolutionFill = uiResolutionFill;
@@ -26119,12 +27057,19 @@ exports.videoCharacterVoiceCap = videoCharacterVoiceCap;
26119
27057
  exports.videoCharacterVoiceKey = videoCharacterVoiceKey;
26120
27058
  exports.videoCharacterVoiceProblem = videoCharacterVoiceProblem;
26121
27059
  exports.videoDefaultDurationSec = videoDefaultDurationSec;
27060
+ exports.videoDepthColormaps = videoDepthColormaps;
27061
+ exports.videoDepthCreditId = videoDepthCreditId;
27062
+ exports.videoDepthLevers = videoDepthLevers;
27063
+ exports.videoDepthNeedsGrayscalePass = videoDepthNeedsGrayscalePass;
26122
27064
  exports.videoLinkDownloadedFile = videoLinkDownloadedFile;
26123
27065
  exports.videoLinkInputProblem = videoLinkInputProblem;
26124
27066
  exports.videoLinkNeedOf = videoLinkNeedOf;
26125
27067
  exports.videoLinkNeedsDownload = videoLinkNeedsDownload;
26126
27068
  exports.videoLinkPageUrl = videoLinkPageUrl;
26127
27069
  exports.videoLinkRunNeeds = videoLinkRunNeeds;
27070
+ exports.videoMaskBilledSeconds = videoMaskBilledSeconds;
27071
+ exports.videoMaskCreditId = videoMaskCreditId;
27072
+ exports.videoMaskCreditIds = videoMaskCreditIds;
26128
27073
  exports.videoModelCanSpeakDialogue = videoModelCanSpeakDialogue;
26129
27074
  exports.videoModelSupportsAudio = videoModelSupportsAudio;
26130
27075
  exports.videoNegativeSuffix = videoNegativeSuffix;