@nodaro/shared 3.36.0 → 3.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-FKQJYMCO.js → chunk-2BHOAYZW.js} +38 -13
- package/dist/chunk-2BHOAYZW.js.map +1 -0
- package/dist/{chunk-BSQCKTXH.cjs → chunk-33QG2DOW.cjs} +6 -6
- package/dist/{chunk-BSQCKTXH.cjs.map → chunk-33QG2DOW.cjs.map} +1 -1
- package/dist/{chunk-NYMOHNYV.js → chunk-5OED47LE.js} +3 -3
- package/dist/{chunk-NYMOHNYV.js.map → chunk-5OED47LE.js.map} +1 -1
- package/dist/{chunk-GZH2SIOF.cjs → chunk-5PCI6M44.cjs} +18 -6
- package/dist/chunk-5PCI6M44.cjs.map +1 -0
- package/dist/chunk-6Q4BS6AR.js +158 -0
- package/dist/chunk-6Q4BS6AR.js.map +1 -0
- package/dist/{chunk-AXUW64ZY.js → chunk-7QITUDRT.js} +3 -3
- package/dist/{chunk-AXUW64ZY.js.map → chunk-7QITUDRT.js.map} +1 -1
- package/dist/{chunk-V3N56Z2S.cjs → chunk-7VDPBFER.cjs} +43 -12
- package/dist/chunk-7VDPBFER.cjs.map +1 -0
- package/dist/{chunk-LT5IJO4Y.cjs → chunk-AQA6YXY5.cjs} +39 -10
- package/dist/chunk-AQA6YXY5.cjs.map +1 -0
- package/dist/{chunk-7AB3AE5L.js → chunk-BDSFMY4X.js} +5 -18
- package/dist/chunk-BDSFMY4X.js.map +1 -0
- package/dist/chunk-BLZBDPZJ.js +16 -0
- package/dist/chunk-BLZBDPZJ.js.map +1 -0
- package/dist/{chunk-TCBHVIMD.js → chunk-CQJYKSXF.js} +18 -6
- package/dist/chunk-CQJYKSXF.js.map +1 -0
- package/dist/{chunk-AWWOQH46.cjs → chunk-D33YBZ3B.cjs} +170 -143
- package/dist/chunk-D33YBZ3B.cjs.map +1 -0
- package/dist/chunk-DBD4BCGH.cjs +169 -0
- package/dist/chunk-DBD4BCGH.cjs.map +1 -0
- package/dist/{chunk-7VQPHLZ5.cjs → chunk-ENFBA33M.cjs} +21 -21
- package/dist/{chunk-7VQPHLZ5.cjs.map → chunk-ENFBA33M.cjs.map} +1 -1
- package/dist/{chunk-BBLE4UTG.cjs → chunk-GLON7ANZ.cjs} +48 -15
- package/dist/chunk-GLON7ANZ.cjs.map +1 -0
- package/dist/{chunk-JSGIEF6Z.cjs → chunk-HSJU5KNR.cjs} +6 -3
- package/dist/chunk-HSJU5KNR.cjs.map +1 -0
- package/dist/{chunk-YN6AXDN5.cjs → chunk-HZ46RDLD.cjs} +9 -24
- package/dist/chunk-HZ46RDLD.cjs.map +1 -0
- package/dist/{chunk-NITAUX3A.cjs → chunk-JLKZEKQ3.cjs} +45 -28
- package/dist/chunk-JLKZEKQ3.cjs.map +1 -0
- package/dist/{chunk-WXNQMJ67.js → chunk-LOWOJN65.js} +100 -6
- package/dist/chunk-LOWOJN65.js.map +1 -0
- package/dist/chunk-M7G66F6H.js +17 -0
- package/dist/chunk-M7G66F6H.js.map +1 -0
- package/dist/chunk-PSAWDKO3.cjs +19 -0
- package/dist/chunk-PSAWDKO3.cjs.map +1 -0
- package/dist/{chunk-2HVFF5SS.js → chunk-QLCSS6DK.js} +165 -141
- package/dist/chunk-QLCSS6DK.js.map +1 -0
- package/dist/{chunk-ANOQWAMU.js → chunk-R6B2UDFR.js} +35 -5
- package/dist/chunk-R6B2UDFR.js.map +1 -0
- package/dist/chunk-T3TOSWVH.cjs +20 -0
- package/dist/chunk-T3TOSWVH.cjs.map +1 -0
- package/dist/{chunk-J65CAOUV.cjs → chunk-TGZJXCLL.cjs} +105 -5
- package/dist/chunk-TGZJXCLL.cjs.map +1 -0
- package/dist/{chunk-56VQ7V3V.js → chunk-THGNDVVH.js} +29 -4
- package/dist/chunk-THGNDVVH.js.map +1 -0
- package/dist/{chunk-XNISPHTZ.js → chunk-WPT5ZTA2.js} +6 -3
- package/dist/chunk-WPT5ZTA2.js.map +1 -0
- package/dist/{chunk-NTHRTRQK.js → chunk-XA53RUSD.js} +22 -6
- package/dist/chunk-XA53RUSD.js.map +1 -0
- package/dist/entries/apps.cjs +38 -38
- package/dist/entries/apps.js +3 -3
- package/dist/entries/credits.cjs +135 -134
- package/dist/entries/credits.js +3 -2
- package/dist/entries/llm-models.cjs +81 -49
- package/dist/entries/llm-models.d.cts +82 -14
- package/dist/entries/llm-models.d.ts +82 -14
- package/dist/entries/llm-models.js +2 -2
- package/dist/entries/media.cjs +66 -42
- package/dist/entries/media.d.cts +145 -4
- package/dist/entries/media.d.ts +145 -4
- package/dist/entries/media.js +1 -1
- package/dist/entries/models.cjs +84 -27
- package/dist/entries/models.d.cts +109 -3
- package/dist/entries/models.d.ts +109 -3
- package/dist/entries/models.js +3 -2
- package/dist/entries/nodes.cjs +204 -199
- package/dist/entries/nodes.d.cts +19 -2
- package/dist/entries/nodes.d.ts +19 -2
- package/dist/entries/nodes.js +5 -4
- package/dist/entries/pipeline.d.cts +2 -2
- package/dist/entries/pipeline.d.ts +2 -2
- package/dist/entries/social.cjs +187 -174
- package/dist/entries/social.d.cts +26 -1
- package/dist/entries/social.d.ts +26 -1
- package/dist/entries/social.js +3 -2
- package/dist/entries/workflow.cjs +157 -144
- package/dist/entries/workflow.d.cts +49 -1
- package/dist/entries/workflow.d.ts +49 -1
- package/dist/entries/workflow.js +4 -3
- package/dist/index.cjs +942 -800
- package/dist/index.d.cts +8 -7
- package/dist/index.d.ts +8 -7
- package/dist/index.js +14 -12
- package/dist/{scene-node-types-Cvbtf-0a.d.ts → model-constants-C43YS07I.d.cts} +1 -497
- package/dist/{scene-node-types-Cvbtf-0a.d.cts → model-constants-C43YS07I.d.ts} +1 -497
- package/dist/scene-node-types-BSrTKnV7.d.cts +499 -0
- package/dist/scene-node-types-BSrTKnV7.d.ts +499 -0
- package/package.json +1 -1
- package/src/__tests__/cast-swap-limits.test.ts +40 -0
- package/src/__tests__/fixtures/root-exports.baseline.json +6 -0
- package/src/__tests__/llm-models.test.ts +61 -18
- package/src/__tests__/llm-price-key.test.ts +55 -0
- package/src/__tests__/node-preset-extract.test.ts +10 -0
- package/src/__tests__/node-runtime-keys.test.ts +21 -2
- package/src/__tests__/render-output.test.ts +64 -0
- package/src/__tests__/schedule-retry.test.ts +35 -0
- package/src/__tests__/scrape-analysis-pricing.test.ts +41 -0
- package/src/__tests__/suno-separate.test.ts +78 -0
- package/src/__tests__/video-mask.test.ts +27 -0
- package/src/cast-swap-limits.ts +52 -0
- package/src/entries/llm-models.ts +7 -0
- package/src/entries/models.ts +26 -1
- package/src/entries/social.ts +1 -0
- package/src/entries/workflow.ts +6 -0
- package/src/generated/unit-contracts.ts +8 -2
- package/src/llm-models.ts +111 -23
- package/src/mask-composite.ts +80 -3
- package/src/node-preset-extract.ts +4 -0
- package/src/node-runtime-keys.ts +7 -0
- package/src/render-output.ts +36 -1
- package/src/schedule-retry.ts +71 -0
- package/src/scrape-analysis-pricing.ts +73 -0
- package/src/script-model.ts +21 -0
- package/src/suno-separate.ts +210 -0
- package/src/video-mask.ts +97 -0
- package/dist/chunk-2HVFF5SS.js.map +0 -1
- package/dist/chunk-56VQ7V3V.js.map +0 -1
- package/dist/chunk-7AB3AE5L.js.map +0 -1
- package/dist/chunk-ANOQWAMU.js.map +0 -1
- package/dist/chunk-AWWOQH46.cjs.map +0 -1
- package/dist/chunk-BBLE4UTG.cjs.map +0 -1
- package/dist/chunk-FG4E7MTG.cjs +0 -4
- package/dist/chunk-FG4E7MTG.cjs.map +0 -1
- package/dist/chunk-FKQJYMCO.js.map +0 -1
- package/dist/chunk-GZH2SIOF.cjs.map +0 -1
- package/dist/chunk-J65CAOUV.cjs.map +0 -1
- package/dist/chunk-JSGIEF6Z.cjs.map +0 -1
- package/dist/chunk-LT5IJO4Y.cjs.map +0 -1
- package/dist/chunk-NITAUX3A.cjs.map +0 -1
- package/dist/chunk-NTHRTRQK.js.map +0 -1
- package/dist/chunk-TCBHVIMD.js.map +0 -1
- package/dist/chunk-TZE673G6.js +0 -3
- package/dist/chunk-TZE673G6.js.map +0 -1
- package/dist/chunk-V3N56Z2S.cjs.map +0 -1
- package/dist/chunk-WXNQMJ67.js.map +0 -1
- package/dist/chunk-XNISPHTZ.js.map +0 -1
- package/dist/chunk-YN6AXDN5.cjs.map +0 -1
package/dist/entries/media.d.ts
CHANGED
|
@@ -317,10 +317,38 @@ declare const AUDIO_FX_REVERB_PRESETS: ReadonlySet<AudioFxPreset>;
|
|
|
317
317
|
declare const VIDEO_MASK_PROVIDERS: readonly ["sam-3.1", "sam-3"];
|
|
318
318
|
type VideoMaskProvider = (typeof VIDEO_MASK_PROVIDERS)[number];
|
|
319
319
|
declare const DEFAULT_VIDEO_MASK_PROVIDER: VideoMaskProvider;
|
|
320
|
+
/**
|
|
321
|
+
* `zone`: keep only the subjects whose bounding-box CENTRE lies inside an
|
|
322
|
+
* inner rectangle, given as margins in % of the frame (each
|
|
323
|
+
* `VIDEO_MASK_LIMITS.ZONE_MARGIN_PCT_MIN`–`ZONE_MARGIN_PCT_MAX`). All zero, or
|
|
324
|
+
* no zone, = off.
|
|
325
|
+
*/
|
|
326
|
+
interface VideoMaskZone {
|
|
327
|
+
readonly leftPct: number;
|
|
328
|
+
readonly rightPct: number;
|
|
329
|
+
readonly topPct: number;
|
|
330
|
+
readonly bottomPct: number;
|
|
331
|
+
}
|
|
320
332
|
/** A new Video Mask node's settings — spread into its node definition. */
|
|
321
333
|
declare const VIDEO_MASK_DEFAULTS: {
|
|
322
334
|
readonly threshold: 0.5;
|
|
323
335
|
readonly provider: VideoMaskProvider;
|
|
336
|
+
/** Off: the mask is the model's, frame for frame (see `HOLD_EMPTY_BELOW_FRACTION`). */
|
|
337
|
+
readonly holdLastMask: false;
|
|
338
|
+
/** 0 = off: every region the model finds is kept (see `MIN_SUBJECT_HEIGHT_PCT_*`). */
|
|
339
|
+
readonly minSubjectHeightPct: 0;
|
|
340
|
+
/** 0 = off: no ceiling on a region's height (see `MAX_SUBJECT_HEIGHT_PCT_*`). */
|
|
341
|
+
readonly maxSubjectHeightPct: 0;
|
|
342
|
+
/** Off: subjects anywhere in the frame are kept (see `ZONE_MARGIN_PCT_*`). */
|
|
343
|
+
readonly zone: VideoMaskZone | null;
|
|
344
|
+
/**
|
|
345
|
+
* Off: one pass over the whole clip. On: the clip's scene cuts are found
|
|
346
|
+
* first and each shot is segmented on its own — the model starts afresh
|
|
347
|
+
* after every cut (finding the new shot's subjects), and `holdLastMask`
|
|
348
|
+
* never carries a mask across a cut. A clip with no cut (a flash is not
|
|
349
|
+
* one) is one shot: the same mask, fitted to the clip's exact frame count.
|
|
350
|
+
*/
|
|
351
|
+
readonly perShot: false;
|
|
324
352
|
};
|
|
325
353
|
declare const VIDEO_MASK_LIMITS: {
|
|
326
354
|
/** The longest input clip a run accepts, in seconds of PRICED length (see `videoMaskBilledSeconds`). */
|
|
@@ -335,6 +363,41 @@ declare const VIDEO_MASK_LIMITS: {
|
|
|
335
363
|
readonly THRESHOLD_STEP: 0.05;
|
|
336
364
|
/** Default detection confidence. Lower finds more (and less precise) regions. */
|
|
337
365
|
readonly THRESHOLD_DEFAULT: 0.5;
|
|
366
|
+
/**
|
|
367
|
+
* `holdLastMask`: a frame whose mask covers less than this fraction of the
|
|
368
|
+
* picture (0.002 % — about 41 px at 1080p: a stray speck, never a subject) counts as empty — the subject lost (hidden behind a
|
|
369
|
+
* hand, turned away) — and shows the most recent non-empty frame's mask
|
|
370
|
+
* instead. Frames before the first detection stay as they are.
|
|
371
|
+
*/
|
|
372
|
+
readonly HOLD_EMPTY_BELOW_FRACTION: 0.00002;
|
|
373
|
+
/**
|
|
374
|
+
* `minSubjectHeightPct`: drop every connected white region (8-connected)
|
|
375
|
+
* whose bounding box is shorter than this % of the frame height — extras'
|
|
376
|
+
* small faces behind the main subject. 0 = off. Applied before
|
|
377
|
+
* `holdLastMask`, so a frame left with only small regions counts as empty
|
|
378
|
+
* and is held from the last frame with a big subject.
|
|
379
|
+
*/
|
|
380
|
+
readonly MIN_SUBJECT_HEIGHT_PCT_MIN: 0;
|
|
381
|
+
readonly MIN_SUBJECT_HEIGHT_PCT_MAX: 100;
|
|
382
|
+
/**
|
|
383
|
+
* `maxSubjectHeightPct`, the mirror: drop every region whose bounding box is
|
|
384
|
+
* TALLER than this % of the frame height (keep only the small subjects — a
|
|
385
|
+
* paste-back mask of the background faces). 0 = off. With both set, a
|
|
386
|
+
* region is kept when min ≤ height ≤ max (min > max is refused). Same pass,
|
|
387
|
+
* same order (before `holdLastMask`).
|
|
388
|
+
*/
|
|
389
|
+
readonly MAX_SUBJECT_HEIGHT_PCT_MIN: 0;
|
|
390
|
+
readonly MAX_SUBJECT_HEIGHT_PCT_MAX: 100;
|
|
391
|
+
/**
|
|
392
|
+
* `zone` margins (left / right / top / bottom, % of the frame width or
|
|
393
|
+
* height): drop every connected region whose bounding-box centre lies
|
|
394
|
+
* outside `[w·left/100, w·(1−right/100)] × [h·top/100, h·(1−bottom/100)]`
|
|
395
|
+
* — the faces at the edges of the picture. At most 49 % a side, so the
|
|
396
|
+
* inner rectangle is never empty. Applied after the size cut and before
|
|
397
|
+
* `holdLastMask`, so a frame left with nothing inside counts as empty.
|
|
398
|
+
*/
|
|
399
|
+
readonly ZONE_MARGIN_PCT_MIN: 0;
|
|
400
|
+
readonly ZONE_MARGIN_PCT_MAX: 49;
|
|
338
401
|
};
|
|
339
402
|
/** Every price row a provider can be charged from, smallest first. */
|
|
340
403
|
declare function videoMaskCreditIds(provider?: VideoMaskProvider): string[];
|
|
@@ -353,6 +416,13 @@ declare function videoMaskBilledSeconds(durationSec: number, fps?: number | null
|
|
|
353
416
|
declare function videoMaskCreditId(billedSec: number | null | undefined, provider?: VideoMaskProvider): string;
|
|
354
417
|
/** Narrow an arbitrary value to a known provider, falling back to the default. */
|
|
355
418
|
declare function resolveVideoMaskProvider(value: unknown): VideoMaskProvider;
|
|
419
|
+
/**
|
|
420
|
+
* A zone as the region filter reads it: each margin a finite number clamped
|
|
421
|
+
* to `ZONE_MARGIN_PCT_MIN`–`ZONE_MARGIN_PCT_MAX` (anything else is 0), and
|
|
422
|
+
* null when there is no zone or every margin is 0 (off). The one reading
|
|
423
|
+
* shared by the worker, a workflow run's payload and the node's own run.
|
|
424
|
+
*/
|
|
425
|
+
declare function resolveVideoMaskZone(value: unknown): VideoMaskZone | null;
|
|
356
426
|
/** `POST /v1/video-mask` request body. */
|
|
357
427
|
interface VideoMaskRequest {
|
|
358
428
|
/** The clip to segment. */
|
|
@@ -362,6 +432,22 @@ interface VideoMaskRequest {
|
|
|
362
432
|
/** Detection confidence, `VIDEO_MASK_LIMITS.THRESHOLD_MIN`–`THRESHOLD_MAX` (default 0.5). */
|
|
363
433
|
readonly threshold?: number;
|
|
364
434
|
readonly provider?: VideoMaskProvider;
|
|
435
|
+
/** Hold the last mask where the subject is lost (default false): an empty frame
|
|
436
|
+
* after the first detection repeats the most recent non-empty one. */
|
|
437
|
+
readonly holdLastMask?: boolean;
|
|
438
|
+
/** Ignore subjects smaller than this % of the frame height, 0–100 (default 0 = off):
|
|
439
|
+
* connected regions whose bounding box is shorter are dropped from every frame. */
|
|
440
|
+
readonly minSubjectHeightPct?: number;
|
|
441
|
+
/** Ignore subjects larger than this % of the frame height, 0–100 (default 0 = off):
|
|
442
|
+
* connected regions whose bounding box is taller are dropped from every frame. */
|
|
443
|
+
readonly maxSubjectHeightPct?: number;
|
|
444
|
+
/** Keep only the subjects whose bounding-box centre is inside these margins, each
|
|
445
|
+
* 0–49 % of the frame (a margin left out is 0). null / omitted / all 0 = off. */
|
|
446
|
+
readonly zone?: Partial<VideoMaskZone> | null;
|
|
447
|
+
/** Segment each shot on its own (default false): the clip's scene cuts are found
|
|
448
|
+
* first and the subjects are detected again in every shot; `holdLastMask` never
|
|
449
|
+
* carries a mask across a cut. The output then carries `shots`. */
|
|
450
|
+
readonly perShot?: boolean;
|
|
365
451
|
}
|
|
366
452
|
|
|
367
453
|
/**
|
|
@@ -414,6 +500,15 @@ interface GenerateMaskOutput {
|
|
|
414
500
|
* background is fitted to that frame (`backgroundFit`) and loops when shorter;
|
|
415
501
|
* the mask is stretched to the frame and holds its last frame when shorter.
|
|
416
502
|
*
|
|
503
|
+
* `fill` picks what fills the masked area. `"video"` (the default) is the
|
|
504
|
+
* foreground, as above. `"pixelate"` and `"blur"` fill it with the BACKGROUND
|
|
505
|
+
* itself, pixelated or blurred: there is no foreground then (a sent
|
|
506
|
+
* `foregroundUrl` is ignored), so the render follows the BACKGROUND (its size,
|
|
507
|
+
* frame rate and length; `backgroundFit` has nothing to fit), and the run is
|
|
508
|
+
* priced on the background's length. With no foreground the result always
|
|
509
|
+
* carries the background's sound — `audioSource` is ignored there
|
|
510
|
+
* ({@link maskCompositeEffectiveAudioSource}); the canvas hides the control.
|
|
511
|
+
*
|
|
417
512
|
* Priced per started 5 seconds of the result (the foreground's length), like
|
|
418
513
|
* Trim / Loop / Combine Videos: the node's own `model_pricing` row is ONE unit
|
|
419
514
|
* (`maskCompositeUnits` counts them). Worked examples (repeated in
|
|
@@ -425,6 +520,9 @@ interface GenerateMaskOutput {
|
|
|
425
520
|
/** How the background is fitted to the foreground's frame. */
|
|
426
521
|
declare const MASK_COMPOSITE_BACKGROUND_FITS: readonly ["cover", "contain", "stretch"];
|
|
427
522
|
type MaskCompositeBackgroundFit = (typeof MASK_COMPOSITE_BACKGROUND_FITS)[number];
|
|
523
|
+
/** What fills the masked area: the foreground video, or the background itself pixelated or blurred. */
|
|
524
|
+
declare const MASK_COMPOSITE_FILLS: readonly ["video", "pixelate", "blur"];
|
|
525
|
+
type MaskCompositeFill = (typeof MASK_COMPOSITE_FILLS)[number];
|
|
428
526
|
/** Which sound the result carries. `mix` blends both tracks at equal level. */
|
|
429
527
|
declare const MASK_COMPOSITE_AUDIO_SOURCES: readonly ["foreground", "background", "mix", "none"];
|
|
430
528
|
type MaskCompositeAudioSource = (typeof MASK_COMPOSITE_AUDIO_SOURCES)[number];
|
|
@@ -435,7 +533,19 @@ declare const MASK_COMPOSITE_BOUNDS: {
|
|
|
435
533
|
/** Grow (+) or shrink (−) the white region, pixels. */
|
|
436
534
|
readonly GROW_MIN: -10;
|
|
437
535
|
readonly GROW_MAX: 10;
|
|
438
|
-
/**
|
|
536
|
+
/** How strongly the foreground covers the background inside the mask
|
|
537
|
+
* (1 = fully, today's output; 0 = not at all). */
|
|
538
|
+
readonly OPACITY_MIN: 0;
|
|
539
|
+
readonly OPACITY_MAX: 1;
|
|
540
|
+
/** Pixelate: the block size as a % of the frame's WIDTH (relative, so a
|
|
541
|
+
* setting looks the same at any resolution); the worker makes the blocks
|
|
542
|
+
* max(2, round(width × pct / 100)) px. 1.25 % = 16 px on a 1280-wide frame. */
|
|
543
|
+
readonly PIXEL_SIZE_PCT_MIN: 0.2;
|
|
544
|
+
readonly PIXEL_SIZE_PCT_MAX: 10;
|
|
545
|
+
/** Blur: the gaussian's sigma as a % of the frame's WIDTH (2 % ≈ sigma 25 px on a 1280-wide frame). */
|
|
546
|
+
readonly BLUR_STRENGTH_PCT_MIN: 0.1;
|
|
547
|
+
readonly BLUR_STRENGTH_PCT_MAX: 5;
|
|
548
|
+
/** The longest leading video (the foreground; the background when `fill` is not video) a run accepts, seconds. */
|
|
439
549
|
readonly MAX_DURATION_SEC: 300;
|
|
440
550
|
};
|
|
441
551
|
/** Seconds of result one pricing unit covers. */
|
|
@@ -451,6 +561,10 @@ declare const MASK_COMPOSITE_DEFAULTS: {
|
|
|
451
561
|
readonly invertMask: false;
|
|
452
562
|
readonly feather: 2;
|
|
453
563
|
readonly grow: 0;
|
|
564
|
+
readonly opacity: 1;
|
|
565
|
+
readonly fill: MaskCompositeFill;
|
|
566
|
+
readonly pixelSizePct: 1.25;
|
|
567
|
+
readonly blurStrengthPct: 2;
|
|
454
568
|
readonly backgroundFit: MaskCompositeBackgroundFit;
|
|
455
569
|
readonly audioSource: MaskCompositeAudioSource;
|
|
456
570
|
};
|
|
@@ -458,6 +572,14 @@ interface MaskCompositeSettings {
|
|
|
458
572
|
readonly invertMask: boolean;
|
|
459
573
|
readonly feather: number;
|
|
460
574
|
readonly grow: number;
|
|
575
|
+
/** Inside the mask: opacity × foreground + (1 − opacity) × background. */
|
|
576
|
+
readonly opacity: number;
|
|
577
|
+
/** What fills the masked area (`video` = the foreground). */
|
|
578
|
+
readonly fill: MaskCompositeFill;
|
|
579
|
+
/** Pixelate block size, % of the frame width (used when `fill` is `pixelate`). */
|
|
580
|
+
readonly pixelSizePct: number;
|
|
581
|
+
/** Blur strength: the gaussian's sigma as a % of the frame width (used when `fill` is `blur`). */
|
|
582
|
+
readonly blurStrengthPct: number;
|
|
461
583
|
readonly backgroundFit: MaskCompositeBackgroundFit;
|
|
462
584
|
readonly audioSource: MaskCompositeAudioSource;
|
|
463
585
|
}
|
|
@@ -468,10 +590,29 @@ interface MaskCompositeSettings {
|
|
|
468
590
|
* panel. The ONE normaliser both workflow engines and the worker call.
|
|
469
591
|
*/
|
|
470
592
|
declare function resolveMaskCompositeSettings(data: Readonly<Record<string, unknown>>): MaskCompositeSettings;
|
|
593
|
+
/** The fill a node, payload or request body asks for: an unknown value is `video` (the default). */
|
|
594
|
+
declare function maskCompositeFillOf(data: Readonly<Record<string, unknown>> | null | undefined): MaskCompositeFill;
|
|
595
|
+
/** Does this fill take a foreground video? Only `video` does; pixelate and blur fill from the background. */
|
|
596
|
+
declare function maskCompositeUsesForeground(fill: MaskCompositeFill): boolean;
|
|
597
|
+
/**
|
|
598
|
+
* The input whose size, rate and length the result has (and so the one a run
|
|
599
|
+
* is measured and priced on): the canvas handle — `video` (the foreground) for
|
|
600
|
+
* the video fill, `background-video` for pixelate and blur. The one rule the
|
|
601
|
+
* route, the workflow run, the run estimates and the length walks read.
|
|
602
|
+
*/
|
|
603
|
+
declare function maskCompositeLeadHandle(data: Readonly<Record<string, unknown>> | null | undefined): "video" | "background-video";
|
|
604
|
+
/**
|
|
605
|
+
* The sound a render actually carries. With no foreground (pixelate / blur) it
|
|
606
|
+
* is ALWAYS the background's — the only track there is — whatever
|
|
607
|
+
* `audioSource` says (the canvas hides that control for these fills, so a
|
|
608
|
+
* stored `none` from the Video fill can never silently mute the result).
|
|
609
|
+
*/
|
|
610
|
+
declare function maskCompositeEffectiveAudioSource(s: Pick<MaskCompositeSettings, "fill" | "audioSource">): MaskCompositeAudioSource;
|
|
471
611
|
/** `POST /v1/mask-composite` request body. */
|
|
472
612
|
interface MaskCompositeRequest extends Partial<MaskCompositeSettings> {
|
|
473
|
-
/** The video whose white-masked region is kept (its size, rate and length lead).
|
|
474
|
-
|
|
613
|
+
/** The video whose white-masked region is kept (its size, rate and length lead).
|
|
614
|
+
* Required when `fill` is `video` (the default); not used by `pixelate` / `blur`. */
|
|
615
|
+
readonly foregroundUrl?: string;
|
|
475
616
|
/** The video shown where the mask is black. */
|
|
476
617
|
readonly backgroundUrl: string;
|
|
477
618
|
/** The mask video — white = foreground (Video Mask's output). */
|
|
@@ -553,4 +694,4 @@ declare function overlayVariantHandle(platformId: string): string;
|
|
|
553
694
|
/** The platform id a variant handle names, or null for any other handle. */
|
|
554
695
|
declare function overlayVariantIdFromHandle(handle: string | null | undefined): string | null;
|
|
555
696
|
|
|
556
|
-
export { AUDIO_FX_PRESETS, AUDIO_FX_PRESET_LABELS, AUDIO_FX_PRESET_SET, AUDIO_FX_REVERB_PRESETS, type AudioFxPreset, DEFAULT_VIDEO_MASK_PROVIDER, FAL_VIDEO_DEPTH_PROVIDERS, FREECUT_EXPORT_COMPLETE, FREECUT_EXPORT_PROGRESS, FREECUT_READY, FREECUT_REQUEST_IMPORT, type FreecutExportCompletePayload, type FreecutExportProgressPayload, type FreecutImportFile, type FreecutRequestImportPayload, GENERATE_MASK_LIMITS, type GenerateMaskOutput, type GenerateMaskRequest, LEGACY_LOTTIE_HOST_REMAP, LOTTIE_OVERLAY_CATALOG, LOTTIE_SLOT_FIELD_PREFIX, type LottieOverlayCatalogEntry, type LottieSlotField, MASK_COMPOSITE_AUDIO_SOURCES, MASK_COMPOSITE_BACKGROUND_FITS, MASK_COMPOSITE_BOUNDS, MASK_COMPOSITE_DEFAULTS, MASK_COMPOSITE_UNIT_SEC, type MaskCompositeAudioSource, type MaskCompositeBackgroundFit, type MaskCompositeRequest, type MaskCompositeSettings, type MaskRegionDescriptor, NODARO_IMPORT_FILES, NODARO_LOAD_TIMELINE, NODARO_LOAD_VIDEO, NODARO_RESET_PROJECT, type NodaroLoadTimelinePayload, type NodaroLoadVideoPayload, OVERLAY_MAX_VARIANTS, OVERLAY_PLATFORMS, OVERLAY_PLATFORM_IDS, OVERLAY_SHAPES, OVERLAY_VARIANT_HANDLE_PREFIX, type OverlayPlatformId, type OverlayPlatformPreset, type OverlayPlatformZone, type OverlayShape, type OverlayShapeElement, type PixelBox, REPLICATE_VIDEO_DEPTH_PROVIDERS, type SlotControlDescriptor, type SlotControlKind, VIDEO_DEPTH_BUCKETS, VIDEO_DEPTH_COLORMAPS, VIDEO_DEPTH_LIMITS, VIDEO_DEPTH_MODEL_SIZES, VIDEO_DEPTH_PROVIDERS, VIDEO_DEPTH_RESOLUTIONS, VIDEO_MASK_DEFAULTS, VIDEO_MASK_LIMITS, VIDEO_MASK_PROVIDERS, type VideoDepthColormap, type VideoDepthLever, type VideoDepthModelSize, type VideoDepthProvider, type VideoDepthResolution, type VideoMaskProvider, type VideoMaskRequest, applySlots, checkVideoDepthLength, deriveLottieSlotFields, describeMaskRegion, describeSlotControl, hexToRgbaArray, humanizeSlotSid, listSlotSids, maskCompositeUnits, normalizeLottieLayers, overlayPlatformById, overlayShapeElement, overlayVariantHandle, overlayVariantIdFromHandle, resolveLottieOverlaySrc, resolveMaskCompositeSettings, resolveVideoDepthColormap, resolveVideoDepthModelSize, resolveVideoDepthProvider, resolveVideoMaskProvider, rgbaArrayToHex, videoDepthColormaps, videoDepthCreditId, videoDepthLevers, videoDepthNeedsGrayscalePass, videoMaskBilledSeconds, videoMaskCreditId, videoMaskCreditIds };
|
|
697
|
+
export { AUDIO_FX_PRESETS, AUDIO_FX_PRESET_LABELS, AUDIO_FX_PRESET_SET, AUDIO_FX_REVERB_PRESETS, type AudioFxPreset, DEFAULT_VIDEO_MASK_PROVIDER, FAL_VIDEO_DEPTH_PROVIDERS, FREECUT_EXPORT_COMPLETE, FREECUT_EXPORT_PROGRESS, FREECUT_READY, FREECUT_REQUEST_IMPORT, type FreecutExportCompletePayload, type FreecutExportProgressPayload, type FreecutImportFile, type FreecutRequestImportPayload, GENERATE_MASK_LIMITS, type GenerateMaskOutput, type GenerateMaskRequest, LEGACY_LOTTIE_HOST_REMAP, LOTTIE_OVERLAY_CATALOG, LOTTIE_SLOT_FIELD_PREFIX, type LottieOverlayCatalogEntry, type LottieSlotField, MASK_COMPOSITE_AUDIO_SOURCES, MASK_COMPOSITE_BACKGROUND_FITS, MASK_COMPOSITE_BOUNDS, MASK_COMPOSITE_DEFAULTS, MASK_COMPOSITE_FILLS, MASK_COMPOSITE_UNIT_SEC, type MaskCompositeAudioSource, type MaskCompositeBackgroundFit, type MaskCompositeFill, type MaskCompositeRequest, type MaskCompositeSettings, type MaskRegionDescriptor, NODARO_IMPORT_FILES, NODARO_LOAD_TIMELINE, NODARO_LOAD_VIDEO, NODARO_RESET_PROJECT, type NodaroLoadTimelinePayload, type NodaroLoadVideoPayload, OVERLAY_MAX_VARIANTS, OVERLAY_PLATFORMS, OVERLAY_PLATFORM_IDS, OVERLAY_SHAPES, OVERLAY_VARIANT_HANDLE_PREFIX, type OverlayPlatformId, type OverlayPlatformPreset, type OverlayPlatformZone, type OverlayShape, type OverlayShapeElement, type PixelBox, REPLICATE_VIDEO_DEPTH_PROVIDERS, type SlotControlDescriptor, type SlotControlKind, VIDEO_DEPTH_BUCKETS, VIDEO_DEPTH_COLORMAPS, VIDEO_DEPTH_LIMITS, VIDEO_DEPTH_MODEL_SIZES, VIDEO_DEPTH_PROVIDERS, VIDEO_DEPTH_RESOLUTIONS, VIDEO_MASK_DEFAULTS, VIDEO_MASK_LIMITS, VIDEO_MASK_PROVIDERS, type VideoDepthColormap, type VideoDepthLever, type VideoDepthModelSize, type VideoDepthProvider, type VideoDepthResolution, type VideoMaskProvider, type VideoMaskRequest, type VideoMaskZone, applySlots, checkVideoDepthLength, deriveLottieSlotFields, describeMaskRegion, describeSlotControl, hexToRgbaArray, humanizeSlotSid, listSlotSids, maskCompositeEffectiveAudioSource, maskCompositeFillOf, maskCompositeLeadHandle, maskCompositeUnits, maskCompositeUsesForeground, normalizeLottieLayers, overlayPlatformById, overlayShapeElement, overlayVariantHandle, overlayVariantIdFromHandle, resolveLottieOverlaySrc, resolveMaskCompositeSettings, resolveVideoDepthColormap, resolveVideoDepthModelSize, resolveVideoDepthProvider, resolveVideoMaskProvider, resolveVideoMaskZone, rgbaArrayToHex, videoDepthColormaps, videoDepthCreditId, videoDepthLevers, videoDepthNeedsGrayscalePass, videoMaskBilledSeconds, videoMaskCreditId, videoMaskCreditIds };
|
package/dist/entries/media.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { AUDIO_FX_PRESETS, AUDIO_FX_PRESET_LABELS, AUDIO_FX_PRESET_SET, AUDIO_FX_REVERB_PRESETS, DEFAULT_VIDEO_MASK_PROVIDER, FREECUT_EXPORT_COMPLETE, FREECUT_EXPORT_PROGRESS, FREECUT_READY, FREECUT_REQUEST_IMPORT, GENERATE_MASK_LIMITS, LEGACY_LOTTIE_HOST_REMAP, LOTTIE_OVERLAY_CATALOG, LOTTIE_SLOT_FIELD_PREFIX, MASK_COMPOSITE_AUDIO_SOURCES, MASK_COMPOSITE_BACKGROUND_FITS, MASK_COMPOSITE_BOUNDS, MASK_COMPOSITE_DEFAULTS, MASK_COMPOSITE_UNIT_SEC, NODARO_IMPORT_FILES, NODARO_LOAD_TIMELINE, NODARO_LOAD_VIDEO, NODARO_RESET_PROJECT, VIDEO_MASK_DEFAULTS, VIDEO_MASK_LIMITS, VIDEO_MASK_PROVIDERS, applySlots, deriveLottieSlotFields, describeMaskRegion, describeSlotControl, hexToRgbaArray, humanizeSlotSid, listSlotSids, maskCompositeUnits, normalizeLottieLayers, resolveLottieOverlaySrc, resolveMaskCompositeSettings, resolveVideoMaskProvider, rgbaArrayToHex, videoMaskBilledSeconds, videoMaskCreditId, videoMaskCreditIds } from '../chunk-
|
|
1
|
+
export { AUDIO_FX_PRESETS, AUDIO_FX_PRESET_LABELS, AUDIO_FX_PRESET_SET, AUDIO_FX_REVERB_PRESETS, DEFAULT_VIDEO_MASK_PROVIDER, FREECUT_EXPORT_COMPLETE, FREECUT_EXPORT_PROGRESS, FREECUT_READY, FREECUT_REQUEST_IMPORT, GENERATE_MASK_LIMITS, LEGACY_LOTTIE_HOST_REMAP, LOTTIE_OVERLAY_CATALOG, LOTTIE_SLOT_FIELD_PREFIX, MASK_COMPOSITE_AUDIO_SOURCES, MASK_COMPOSITE_BACKGROUND_FITS, MASK_COMPOSITE_BOUNDS, MASK_COMPOSITE_DEFAULTS, MASK_COMPOSITE_FILLS, MASK_COMPOSITE_UNIT_SEC, NODARO_IMPORT_FILES, NODARO_LOAD_TIMELINE, NODARO_LOAD_VIDEO, NODARO_RESET_PROJECT, VIDEO_MASK_DEFAULTS, VIDEO_MASK_LIMITS, VIDEO_MASK_PROVIDERS, applySlots, deriveLottieSlotFields, describeMaskRegion, describeSlotControl, hexToRgbaArray, humanizeSlotSid, listSlotSids, maskCompositeEffectiveAudioSource, maskCompositeFillOf, maskCompositeLeadHandle, maskCompositeUnits, maskCompositeUsesForeground, normalizeLottieLayers, resolveLottieOverlaySrc, resolveMaskCompositeSettings, resolveVideoMaskProvider, resolveVideoMaskZone, rgbaArrayToHex, videoMaskBilledSeconds, videoMaskCreditId, videoMaskCreditIds } from '../chunk-LOWOJN65.js';
|
|
2
2
|
export { DEFAULT_OVERLAY_QR, DEFAULT_OVERLAY_SHAPE, DEFAULT_OVERLAY_TEXT, OVERLAY_ANCHORS, OVERLAY_FONTS, OVERLAY_FONT_IDS, OVERLAY_IMAGE_MASKS, OVERLAY_LAYER_KINDS, OVERLAY_SHAPES, OVERLAY_TEXT_ALIGNS, isRtlText, overlayFontById, overlayImageEffectsSchema, overlayQrStyleSchema, overlayShapeElement, overlayShapeStyleSchema, overlayStrokeSchema, overlayTextStyleSchema } from '../chunk-ZNZDQAXN.js';
|
|
3
3
|
export { FAL_VIDEO_DEPTH_PROVIDERS, REPLICATE_VIDEO_DEPTH_PROVIDERS, VIDEO_DEPTH_BUCKETS, VIDEO_DEPTH_COLORMAPS, VIDEO_DEPTH_LIMITS, VIDEO_DEPTH_MODEL_SIZES, VIDEO_DEPTH_PROVIDERS, VIDEO_DEPTH_RESOLUTIONS, checkVideoDepthLength, resolveVideoDepthColormap, resolveVideoDepthModelSize, resolveVideoDepthProvider, videoDepthColormaps, videoDepthCreditId, videoDepthLevers, videoDepthNeedsGrayscalePass } from '../chunk-3RYKIUAE.js';
|
|
4
4
|
export { OVERLAY_MAX_VARIANTS, OVERLAY_PLATFORMS, OVERLAY_PLATFORM_IDS, OVERLAY_VARIANT_HANDLE_PREFIX, overlayPlatformById, overlayVariantHandle, overlayVariantIdFromHandle } from '../chunk-5THUHJ3E.js';
|
package/dist/entries/models.cjs
CHANGED
|
@@ -1,113 +1,170 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkAQA6YXY5_cjs = require('../chunk-AQA6YXY5.cjs');
|
|
4
4
|
require('../chunk-6DAWSVX2.cjs');
|
|
5
|
+
var chunkDBD4BCGH_cjs = require('../chunk-DBD4BCGH.cjs');
|
|
5
6
|
var chunkVRUN5TG2_cjs = require('../chunk-VRUN5TG2.cjs');
|
|
6
|
-
require('../chunk-
|
|
7
|
+
require('../chunk-7VDPBFER.cjs');
|
|
7
8
|
var chunkHABDAHZR_cjs = require('../chunk-HABDAHZR.cjs');
|
|
8
9
|
require('../chunk-KOP7UTQR.cjs');
|
|
9
10
|
|
|
10
11
|
|
|
11
12
|
|
|
13
|
+
Object.defineProperty(exports, "CAST_SWAP_FACE_MASKING_BOUNDS", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return chunkAQA6YXY5_cjs.CAST_SWAP_FACE_MASKING_BOUNDS; }
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "CAST_SWAP_FACE_MASKING_DEFAULTS", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return chunkAQA6YXY5_cjs.CAST_SWAP_FACE_MASKING_DEFAULTS; }
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(exports, "CAST_SWAP_POST_PROMPT_MAX", {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () { return chunkAQA6YXY5_cjs.CAST_SWAP_POST_PROMPT_MAX; }
|
|
24
|
+
});
|
|
12
25
|
Object.defineProperty(exports, "CHARACTER_LORA_TRAINING_JOB_TYPE", {
|
|
13
26
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkAQA6YXY5_cjs.CHARACTER_LORA_TRAINING_JOB_TYPE; }
|
|
15
28
|
});
|
|
16
29
|
Object.defineProperty(exports, "DEFAULT_VOICE_CHANGER_MODEL", {
|
|
17
30
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkAQA6YXY5_cjs.DEFAULT_VOICE_CHANGER_MODEL; }
|
|
19
32
|
});
|
|
20
33
|
Object.defineProperty(exports, "FLUX_LORA_CHARACTER_MODEL_ID", {
|
|
21
34
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkAQA6YXY5_cjs.FLUX_LORA_CHARACTER_MODEL_ID; }
|
|
23
36
|
});
|
|
24
37
|
Object.defineProperty(exports, "GEMINI_OMNI_VOICE_PRESETS", {
|
|
25
38
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkAQA6YXY5_cjs.GEMINI_OMNI_VOICE_PRESETS; }
|
|
27
40
|
});
|
|
28
41
|
Object.defineProperty(exports, "GEMINI_OMNI_VOICE_PRESET_IDS", {
|
|
29
42
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkAQA6YXY5_cjs.GEMINI_OMNI_VOICE_PRESET_IDS; }
|
|
31
44
|
});
|
|
32
45
|
Object.defineProperty(exports, "NODE_DEFAULT_TYPES", {
|
|
33
46
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkAQA6YXY5_cjs.NODE_DEFAULT_TYPES; }
|
|
35
48
|
});
|
|
36
49
|
Object.defineProperty(exports, "PROVIDER_DIRECTIVE_DEFAULTS", {
|
|
37
50
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkAQA6YXY5_cjs.PROVIDER_DIRECTIVE_DEFAULTS; }
|
|
39
52
|
});
|
|
40
53
|
Object.defineProperty(exports, "SUNO_TRACK_SOURCE_TYPES", {
|
|
41
54
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkAQA6YXY5_cjs.SUNO_TRACK_SOURCE_TYPES; }
|
|
56
|
+
});
|
|
57
|
+
Object.defineProperty(exports, "TREND_PROMPT_LIMITS", {
|
|
58
|
+
enumerable: true,
|
|
59
|
+
get: function () { return chunkAQA6YXY5_cjs.TREND_PROMPT_LIMITS; }
|
|
43
60
|
});
|
|
44
61
|
Object.defineProperty(exports, "TTS_NEIGHBOUR_TEXT_MAX_CHARS", {
|
|
45
62
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkAQA6YXY5_cjs.TTS_NEIGHBOUR_TEXT_MAX_CHARS; }
|
|
47
64
|
});
|
|
48
65
|
Object.defineProperty(exports, "VOICE_CHANGER_MODELS", {
|
|
49
66
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunkAQA6YXY5_cjs.VOICE_CHANGER_MODELS; }
|
|
51
68
|
});
|
|
52
69
|
Object.defineProperty(exports, "VOICE_CHANGER_MODEL_IDS", {
|
|
53
70
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunkAQA6YXY5_cjs.VOICE_CHANGER_MODEL_IDS; }
|
|
55
72
|
});
|
|
56
73
|
Object.defineProperty(exports, "buildModelTree", {
|
|
57
74
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunkAQA6YXY5_cjs.buildModelTree; }
|
|
59
76
|
});
|
|
60
77
|
Object.defineProperty(exports, "deriveLinkedFields", {
|
|
61
78
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunkAQA6YXY5_cjs.deriveLinkedFields; }
|
|
63
80
|
});
|
|
64
81
|
Object.defineProperty(exports, "extractCharacterLoraFields", {
|
|
65
82
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunkAQA6YXY5_cjs.extractCharacterLoraFields; }
|
|
67
84
|
});
|
|
68
85
|
Object.defineProperty(exports, "getTargetField", {
|
|
69
86
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunkAQA6YXY5_cjs.getTargetField; }
|
|
71
88
|
});
|
|
72
89
|
Object.defineProperty(exports, "getValidValues", {
|
|
73
90
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
91
|
+
get: function () { return chunkAQA6YXY5_cjs.getValidValues; }
|
|
75
92
|
});
|
|
76
93
|
Object.defineProperty(exports, "mapAspectRatio", {
|
|
77
94
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
95
|
+
get: function () { return chunkAQA6YXY5_cjs.mapAspectRatio; }
|
|
79
96
|
});
|
|
80
97
|
Object.defineProperty(exports, "mapQuality", {
|
|
81
98
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
99
|
+
get: function () { return chunkAQA6YXY5_cjs.mapQuality; }
|
|
83
100
|
});
|
|
84
101
|
Object.defineProperty(exports, "mapShotIntentToProviderDirectives", {
|
|
85
102
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
103
|
+
get: function () { return chunkAQA6YXY5_cjs.mapShotIntentToProviderDirectives; }
|
|
87
104
|
});
|
|
88
105
|
Object.defineProperty(exports, "modelToNodeTarget", {
|
|
89
106
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
107
|
+
get: function () { return chunkAQA6YXY5_cjs.modelToNodeTarget; }
|
|
91
108
|
});
|
|
92
109
|
Object.defineProperty(exports, "normalizeTtsNeighbourText", {
|
|
93
110
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
111
|
+
get: function () { return chunkAQA6YXY5_cjs.normalizeTtsNeighbourText; }
|
|
95
112
|
});
|
|
96
113
|
Object.defineProperty(exports, "searchModelVariants", {
|
|
97
114
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
115
|
+
get: function () { return chunkAQA6YXY5_cjs.searchModelVariants; }
|
|
99
116
|
});
|
|
100
117
|
Object.defineProperty(exports, "selectLoraRoutingForMentions", {
|
|
101
118
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
119
|
+
get: function () { return chunkAQA6YXY5_cjs.selectLoraRoutingForMentions; }
|
|
103
120
|
});
|
|
104
121
|
Object.defineProperty(exports, "supportedDefaultDimensions", {
|
|
105
122
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
123
|
+
get: function () { return chunkAQA6YXY5_cjs.supportedDefaultDimensions; }
|
|
107
124
|
});
|
|
108
125
|
Object.defineProperty(exports, "validateProviderForNodeType", {
|
|
109
126
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
127
|
+
get: function () { return chunkAQA6YXY5_cjs.validateProviderForNodeType; }
|
|
128
|
+
});
|
|
129
|
+
Object.defineProperty(exports, "DEFAULT_SUNO_STEM_NAME", {
|
|
130
|
+
enumerable: true,
|
|
131
|
+
get: function () { return chunkDBD4BCGH_cjs.DEFAULT_SUNO_STEM_NAME; }
|
|
132
|
+
});
|
|
133
|
+
Object.defineProperty(exports, "SUNO_SEPARATE_META_FIELDS", {
|
|
134
|
+
enumerable: true,
|
|
135
|
+
get: function () { return chunkDBD4BCGH_cjs.SUNO_SEPARATE_META_FIELDS; }
|
|
136
|
+
});
|
|
137
|
+
Object.defineProperty(exports, "SUNO_SEPARATE_RESULT_FIELDS", {
|
|
138
|
+
enumerable: true,
|
|
139
|
+
get: function () { return chunkDBD4BCGH_cjs.SUNO_SEPARATE_RESULT_FIELDS; }
|
|
140
|
+
});
|
|
141
|
+
Object.defineProperty(exports, "SUNO_SEPARATE_STEM_FIELDS", {
|
|
142
|
+
enumerable: true,
|
|
143
|
+
get: function () { return chunkDBD4BCGH_cjs.SUNO_SEPARATE_STEM_FIELDS; }
|
|
144
|
+
});
|
|
145
|
+
Object.defineProperty(exports, "SUNO_SEPARATE_TAKE_FIELDS", {
|
|
146
|
+
enumerable: true,
|
|
147
|
+
get: function () { return chunkDBD4BCGH_cjs.SUNO_SEPARATE_TAKE_FIELDS; }
|
|
148
|
+
});
|
|
149
|
+
Object.defineProperty(exports, "SUNO_SEPARATE_TYPES", {
|
|
150
|
+
enumerable: true,
|
|
151
|
+
get: function () { return chunkDBD4BCGH_cjs.SUNO_SEPARATE_TYPES; }
|
|
152
|
+
});
|
|
153
|
+
Object.defineProperty(exports, "SUNO_STEM_NAMES", {
|
|
154
|
+
enumerable: true,
|
|
155
|
+
get: function () { return chunkDBD4BCGH_cjs.SUNO_STEM_NAMES; }
|
|
156
|
+
});
|
|
157
|
+
Object.defineProperty(exports, "sunoSeparateCreditId", {
|
|
158
|
+
enumerable: true,
|
|
159
|
+
get: function () { return chunkDBD4BCGH_cjs.sunoSeparateCreditId; }
|
|
160
|
+
});
|
|
161
|
+
Object.defineProperty(exports, "sunoSeparateHandleUrl", {
|
|
162
|
+
enumerable: true,
|
|
163
|
+
get: function () { return chunkDBD4BCGH_cjs.sunoSeparateHandleUrl; }
|
|
164
|
+
});
|
|
165
|
+
Object.defineProperty(exports, "sunoSeparatePrimaryUrl", {
|
|
166
|
+
enumerable: true,
|
|
167
|
+
get: function () { return chunkDBD4BCGH_cjs.sunoSeparatePrimaryUrl; }
|
|
111
168
|
});
|
|
112
169
|
Object.defineProperty(exports, "dialogueHasLever", {
|
|
113
170
|
enumerable: true,
|
|
@@ -1,9 +1,59 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as AI_WRITER_PROVIDERS, a as ASPECT_RATIO_DIMENSIONS, b as AUDIO_ADDON_PROVIDERS, c as AiWriterProvider, C as CHARACTER_MOTION_PROVIDERS,
|
|
1
|
+
import { t as DialogueProvider } from '../model-constants-C43YS07I.cjs';
|
|
2
|
+
export { A as AI_WRITER_PROVIDERS, a as ASPECT_RATIO_DIMENSIONS, b as AUDIO_ADDON_PROVIDERS, c as AiWriterProvider, C as CHARACTER_MOTION_PROVIDERS, d as COMPOSER_PLAN_FIELDS, e as COMPOSER_PLAN_MAP, f as CREDIT_BASE_USD, g as CharacterMotionProvider, D as DEFAULT_DIALOGUE_PROVIDER, h as DEFAULT_MUSIC_PROVIDER, i as DEFAULT_REF_IMAGE_MAX, j as DEFAULT_SUNO_MODEL, k as DEFAULT_TEXT_TO_AUDIO_PROVIDER, l as DEFAULT_TRANSCRIBE_NODE_PROVIDER, m as DEFAULT_TRANSCRIBE_PROVIDER, n as DEFAULT_TTS_PROVIDER, o as DEFAULT_VIDEO_DURATION_SEC, p as DEFAULT_VIDEO_PROVIDER, q as DEFAULT_VOICE_DESIGN_MODEL, r as DIALOGUE_PROVIDERS, s as DURATION_PRICED_PROVIDERS, E as EXTEND_VIDEO_PROVIDERS, u as ExtendVideoProvider, F as FACE_SWAP_PROVIDERS, v as FAL_LIP_SYNC_PROVIDERS, w as FLEXIBLE_INPUT_LIP_SYNC_PROVIDERS, x as FRAME_MODE_ADAPTIVE_ONLY_ASPECT, y as FaceSwapProvider, G as GEMINI_OMNI_PROVIDERS, z as GUIDANCE_SCALE_SUPPORT, B as GVP_ANCHOR_CHOICES, H as GVP_DEFAULT_PROVIDER, I as GVP_END_FRAME_PROVIDERS, J as GVP_EXTEND_PROVIDERS, K as GVP_SUPPORTED_PROVIDERS, L as GvpAnchorChoice, M as GvpAnchorWireMode, N as HIGH_QUALITY_PROVIDERS, O as I2I_MASK_SUPPORT, P as I2I_STRENGTH_SUPPORT, Q as IDEOGRAM_PROVIDERS, R as IMAGE_ASPECT_RATIO_VALUES, S as IMAGE_EDIT_PROVIDERS, T as IMAGE_EDIT_TARGET_RESOLUTION_VALUES, U as IMAGE_GEN_PROVIDERS, V as IMAGE_I2I_PROVIDERS, W as IMAGE_MASK_MODE, X as IMAGE_PROMPT_MAX, Y as IMAGE_QUALITY_VALUES, Z as IMAGE_RENDERING_SPEED_VALUES, _ as IMAGE_RESOLUTION_VALUES, $ as IMAGE_TO_VIDEO_PROVIDERS, a0 as ImageAspectRatio, a1 as ImageEditProvider, a2 as ImageEditTargetResolution, a3 as ImageGenProvider, a4 as ImageI2IProvider, a5 as ImageMaskMode, a6 as ImageQuality, a7 as ImageRenderingSpeed, a8 as ImageResolution, a9 as ImageToVideoProvider, aa as LIP_SYNC_PROVIDERS, ab as LLM_TEXT_INPUT_MAX, ac as LOCATION_ATMOSPHERE_PROVIDERS, ad as LipSyncProvider, ae as LocationAtmosphereProvider, af as MAX_IMAGE_PROMPT_CHARS_BY_PROVIDER, ag as MAX_NEGATIVE_PROMPT_CHARS_BY_PROVIDER, ah as MAX_TTS_CHARS_BY_PROVIDER, ai as MAX_VIDEO_PROMPT_CHARS_BY_PROVIDER, aj as MINIMAX_H3_DEFAULT_RESOLUTION, ak as MINIMAX_H3_PROVIDERS, al as MODELS_WITH_REFERENCE_IMAGE_SUPPORT, am as MODIFY_IMAGE_PROVIDERS, an as MOTION_TRANSFER_PROVIDERS, ao as MUSIC_CREDIT_ID, ap as MUSIC_PROVIDERS, aq as MUSIC_PROVIDER_LABELS, ar as ModelPromptingStyle, as as ModifyImageProvider, at as MotionTransferProviderType, au as MusicProvider, av as NATIVE_ADAPTIVE_ASPECT, aw as NATIVE_NEGATIVE_PROMPT_MODELS, ax as NATIVE_NEGATIVE_VIDEO_PROVIDERS, ay as NEGATIVE_PROMPT_MAX, az as OBJECT_MOTION_PROVIDERS, aA as ObjectMotionProvider, aB as PRICING_DEFAULT_DURATION_SEC, aC as PRICING_DEFAULT_RESOLUTION, aD as PROMPT_HARD_CEILING, aE as QA_CHECK_PROVIDERS, aF as QaCheckProvider, aG as REF_IMAGE_MAX_LIMITS, aH as RENDERING_SPEED_SUPPORT, aI as REPLICATE_LIP_SYNC_PROVIDERS, aJ as RefAudioCheck, aK as RefAudioProbe, aL as RefAudioRule, aM as RefVideoDurationLimit, aN as SCRIPT_PROVIDERS, aO as SEEDANCE_2_5_REF_LIMITS, aP as SEEDANCE_2_CONTINUATION_REF_SEC, aQ as SEEDANCE_2_EXTEND_STITCH, aR as SEEDANCE_2_PROVIDERS, aS as SEEDANCE_2_R2V_MAX_AUDIO_SEC_BY_PROVIDER, aT as SEEDANCE_2_R2V_MIN_REF_VIDEO_SEC, aU as SEEDANCE_2_REF_LIMITS, aV as SEEDANCE_LIP_SYNC_PROVIDERS, aW as SEEDANCE_VIDEO_EDIT_PROVIDERS, aX as SEEDANCE_VIDEO_EDIT_SHAPE, aY as SEED_SUPPORT, aZ as SUNO_ACTIVE_MODELS, a_ as SUNO_ADD_TRACK_MODELS, a$ as SUNO_DURATION_MODELS, b0 as SUNO_HARD_CEILING, b1 as SUNO_LEGACY_MODELS, b2 as SUNO_MODELS, b3 as SUNO_TEXT_MAX, b4 as SUNO_TITLE_MAX, b5 as SceneInputMode, b6 as SceneInputModeSchema, b7 as ScriptProvider, b8 as SeedanceVideoEditProvider, b9 as SunoAddTrackModel, ba as SunoModel, bb as T2I_TO_I2I_VARIANT, bc as TASK_CHAINED_EDIT_PROVIDERS, bd as TASK_CHAINED_EDIT_PROVIDER_IDS, be as TEXT_TO_AUDIO_PROVIDERS, bf as TEXT_TO_VIDEO_PROVIDERS, bg as TRANSCRIBE_LANES, bh as TRANSCRIBE_PROVIDERS, bi as TRANSCRIBE_PROVIDER_CAPABILITIES, bj as TTS_PROVIDERS, bk as TTS_TEXT_MAX, bl as TWO_K_RESOLUTION_PROVIDERS, bm as TaskChainedEditProvider, bn as TextToAudioProvider, bo as TextToVideoProvider, bp as TranscribeLane, bq as TranscribeProvider, br as TtsProvider, bs as UPSCALE_IMAGE_PROVIDERS, bt as UpscaleImageProvider, bu as VARIABLE_PRICING_MODELS, bv as VEO_PROVIDERS, bw as VIDEO_AUDIO_CAPABILITY, bx as VIDEO_DURATION_TIERS, by as VIDEO_GEN_COLLAPSED_T2V_IDS, bz as VIDEO_GEN_PROVIDERS, bA as VIDEO_INPUT_LIP_SYNC_PROVIDERS, bB as VIDEO_MODEL_CAPS, bC as VIDEO_MODE_ALIASES, bD as VIDEO_PROMPT_MAX, bE as VIDEO_PROVIDERS_REQUIRING_IMAGE, bF as VIDEO_PROVIDERS_WITHOUT_DISPATCH, bG as VIDEO_PROVIDERS_WITH_SEPARATE_FRAME_CHANNEL, bH as VIDEO_REF_AUDIO_RULES, bI as VIDEO_REF_LIMITS_BY_PROVIDER, bJ as VIDEO_REF_VIDEO_DURATION_LIMITS, bK as VIDEO_TO_VIDEO_NODE_PROVIDERS, bL as VIDEO_TO_VIDEO_PROVIDERS, bM as VIDEO_UPSCALE_PROVIDERS, bN as VIDEO_VARIABLE_PRICING, bO as VIDU_Q4_DEFAULT_RESOLUTION, bP as VIDU_Q4_PROVIDERS, bQ as VOICE_DESIGN_MODELS, bR as VideoAudioCapability, bS as VideoAudioMode, bT as VideoGenProvider, bU as VideoModeAlias, bV as VideoModelCapabilities, bW as VideoReferenceSyntax, bX as VideoToVideoNodeProvider, bY as VideoToVideoProvider, bZ as VideoUpscaleProvider, b_ as VoiceDesignModel, b$ as WAN_3_DEFAULT_RESOLUTION, c0 as WAN_3_PROVIDERS, c1 as applyDefaultVideoSelection, c2 as applyVideoAudioToggle, c3 as applyVideoNegativePrompt, c4 as checkRefAudioRules, c5 as checkRefVideoDurations, c6 as defaultVideoAspectRatio, c7 as findSeedance2AudioOverLimit, c8 as getMaxImagePromptChars, c9 as getMaxNegativePromptChars, ca as getMaxSunoPromptChars, cb as getMaxSunoStyleChars, cc as getMaxTtsChars, cd as getMaxVideoPromptChars, ce as getVideoAudioCapability, cf as hasContiguousSegmentDurations, cg as imageReferenceLimit, ch as isGeminiOmniProvider, ci as isGvpSupportedProvider, cj as isLegacySunoModel, ck as isMinimaxH3Provider, cl as isSeedance2Provider, cm as isSeedanceVideoEditProvider, cn as isVeoProvider, co as isViduQ4Provider, cp as isWan3Provider, cq as maxSegmentSecFor, cr as maxSegmentsFor, cs as maxVideoDurationSec, ct as minSegmentSecFor, cu as modelsForInputMode, cv as normalizeMinimaxH3Resolution, cw as normalizeViduQ4Resolution, cx as normalizeWan3Resolution, cy as preferredInputModeForModel, cz as pricedOutputDurationSec, cA as resolveGvpAnchorWire, cB as resolveMusicProvider, cC as resolveVideoModeForInputs, cD as resolveVideoProviderForMode, cE as seedance2AudioLimitSec, cF as segmentDurationsFor, cG as snapToNearestDuration, cH as sunoModelHonoursDuration, cI as supportsAutoVideoDuration, cJ as supportsEndAnchor, cK as supportsExtendRender, cL as transcribeLaneSupportsWordTimestamps, cM as transcribeProvidersWithWordTimestamps, cN as videoDefaultDurationSec, cO as videoModelCanSpeakDialogue, cP as videoModelSupportsAudio, cQ as videoNegativeSuffix, cR as videoProviderAppendsFrames, cS as videoProviderFoldsLoneEndFrame, cT as videoProviderRefModeFrameSeats, cU as videoProviderReferenceSyntax, cV as videoProviderRequiresImage, cW as videoProviderRunsFromReferences } from '../model-constants-C43YS07I.cjs';
|
|
3
3
|
export { G as GEMINI_OMNI_VOICE_PRESETS, a as GEMINI_OMNI_VOICE_PRESET_IDS, b as GeminiOmniVoicePreset, c as GeminiOmniVoicePresetId } from '../gemini-omni-voices-zeRXxSbZ.cjs';
|
|
4
4
|
import { p as TtsSettingLever, T as TtsCapabilities, g as ModelKind } from '../model-catalog-I48SvalA.cjs';
|
|
5
|
+
import { f as ShotSpec } from '../scene-node-types-BSrTKnV7.cjs';
|
|
5
6
|
import 'zod';
|
|
6
7
|
|
|
8
|
+
/**
|
|
9
|
+
* Cast Swap's input limits, and what a trend built on it may put in its
|
|
10
|
+
* prompts. One definition read by the server (which enforces them) and by
|
|
11
|
+
* every screen that edits them (which holds Save before a refusal), so the two
|
|
12
|
+
* cannot drift apart.
|
|
13
|
+
*/
|
|
14
|
+
/** The longest `postPrompt` Cast Swap takes. */
|
|
15
|
+
declare const CAST_SWAP_POST_PROMPT_MAX = 4000;
|
|
16
|
+
/**
|
|
17
|
+
* A trend's prompt limits.
|
|
18
|
+
*
|
|
19
|
+
* - `trendPromptMax` / `prePromptMax`: the longest prompt a trend version may
|
|
20
|
+
* store.
|
|
21
|
+
* - `detailsMax`: the longest details a user may add to a run. They follow the
|
|
22
|
+
* trend prompt in Cast Swap's `postPrompt`, after a blank line, so a new
|
|
23
|
+
* trend prompt is held to `CAST_SWAP_POST_PROMPT_MAX − 2 − detailsMax`.
|
|
24
|
+
* - `engineTextReserve`: the room kept for the text Cast Swap writes around a
|
|
25
|
+
* trend's prompts in the prompt it builds, at its longest (a block for each
|
|
26
|
+
* of the 13 roles a run allows with 200-character role names, five
|
|
27
|
+
* 500-character reference lines, the keep, mask and edit lines and the
|
|
28
|
+
* header: about 16,100 characters, rounded up so a small wording change does
|
|
29
|
+
* not need this moved). The pre prompt, the trend prompt and the details
|
|
30
|
+
* share what is left of Seedance 2.5's prompt cap.
|
|
31
|
+
*/
|
|
32
|
+
declare const TREND_PROMPT_LIMITS: {
|
|
33
|
+
readonly trendPromptMax: 3000;
|
|
34
|
+
readonly prePromptMax: 3000;
|
|
35
|
+
readonly detailsMax: 1000;
|
|
36
|
+
readonly engineTextReserve: 17000;
|
|
37
|
+
};
|
|
38
|
+
/** Cast Swap's `faceMasking` bounds, each `[min, max]` inclusive. */
|
|
39
|
+
declare const CAST_SWAP_FACE_MASKING_BOUNDS: {
|
|
40
|
+
/** `minFaceHeightPct` and `maxFaceHeightPct`, % of the frame's height (max 0 = no limit). */
|
|
41
|
+
readonly faceHeightPct: readonly [0, 100];
|
|
42
|
+
/** Each `zone` margin, % of the frame. */
|
|
43
|
+
readonly zonePct: readonly [0, 49];
|
|
44
|
+
/** % of the frame's width. */
|
|
45
|
+
readonly blurStrengthPct: readonly [0.1, 5];
|
|
46
|
+
readonly threshold: readonly [0.05, 0.95];
|
|
47
|
+
};
|
|
48
|
+
/** What Cast Swap uses for a `faceMasking` setting left out. */
|
|
49
|
+
declare const CAST_SWAP_FACE_MASKING_DEFAULTS: {
|
|
50
|
+
readonly minFaceHeightPct: 15;
|
|
51
|
+
readonly maxFaceHeightPct: 0;
|
|
52
|
+
readonly zonePct: 0;
|
|
53
|
+
readonly blurStrengthPct: 2;
|
|
54
|
+
readonly threshold: 0.5;
|
|
55
|
+
};
|
|
56
|
+
|
|
7
57
|
type QualityLevel = "low" | "mid" | "high";
|
|
8
58
|
type SemanticAspectRatio = "auto" | "1:1" | "4:3" | "3:4" | "16:9" | "9:16";
|
|
9
59
|
declare const NODE_DEFAULT_TYPES: readonly ["generate-image", "image-to-image", "edit-image", "upscale-image", "text-to-video", "image-to-video", "generate-video", "lip-sync", "text-to-speech", "generate-music", "voice-design", "ai-writer", "llm-chat", "lottie-overlay", "3d-title", "motion-graphics", "image-to-text", "qa-check"];
|
|
@@ -227,6 +277,62 @@ declare function selectLoraRoutingForMentions(refs: readonly LoraEligibleRef[]):
|
|
|
227
277
|
*/
|
|
228
278
|
declare const SUNO_TRACK_SOURCE_TYPES: ReadonlySet<string>;
|
|
229
279
|
|
|
280
|
+
/**
|
|
281
|
+
* Suno Separate — the public contract of the separation node and its API.
|
|
282
|
+
*
|
|
283
|
+
* The three separation modes, the stem names "one instrument" mode accepts,
|
|
284
|
+
* the result fields a run writes, the credit id each mode is priced from, and
|
|
285
|
+
* the rule that turns a run's output into the URL behind each handle. One
|
|
286
|
+
* module so the route, the worker, both engines' output extractors and the
|
|
287
|
+
* editor read the same answers (they used to keep their own copies and price
|
|
288
|
+
* or route a mode in one place but not another). Structural vocabulary only.
|
|
289
|
+
*/
|
|
290
|
+
/** Separation modes, in the provider's wire spelling. */
|
|
291
|
+
declare const SUNO_SEPARATE_TYPES: readonly ["separate_vocal", "split_stem", "split_stem_advanced"];
|
|
292
|
+
type SunoSeparateType = (typeof SUNO_SEPARATE_TYPES)[number];
|
|
293
|
+
/**
|
|
294
|
+
* Every `stem_name` the provider accepts for `split_stem_advanced` ("one
|
|
295
|
+
* instrument"), verbatim and in the provider's order.
|
|
296
|
+
*/
|
|
297
|
+
declare const SUNO_STEM_NAMES: readonly ["Lead Vocal", "Drum Kit", "Kick", "Snare", "Risers", "Bass", "Backing Vocals", "Piano", "Electric Guitar", "Percussion", "String Section", "Synth", "Acoustic Guitar", "Sound Effects", "Synth Pad", "Synth Bass", "Guitar", "Brass Section", "Organ", "Electronic Drum Kit", "Lead Electric Guitar", "Synth Keys", "Rhythm Electric Guitar", "Electric Piano", "Upright Bass", "Keyboards", "Distorted Electric Guitar", "Synth Strings", "Synth Lead", "Woodwinds", "Rhythm Acoustic Guitar", "Flute", "Harp", "Tambourine", "Trumpet", "Arpeggiator", "Accordion", "Fiddle", "Pedal Steel Guitar", "Synth Voice", "Violin", "Digital Piano", "Synth Brass", "Mandolin", "Choir", "Banjo", "Bells", "Clarinet", "Tenor Saxophone", "Trombone", "Shaker", "French Horn", "Glockenspiel", "Electric Bass", "Cello", "Timpani", "Harmonica", "Marimba", "Vibraphone", "Lap Steel Guitar", "Saxophone", "Orchestra", "Horns", "Cymbals", "Hand Clap", "Oboe", "Celesta", "Congas", "Drone", "Alto Saxophone", "Double Bass", "Ukulele", "Harpsichord", "Baritone Saxophone", "Xylophone", "Tuba", "Bass Guitar", "Whistle", "Lead Guitar", "Rhodes", "808", "Bongos", "Bassoon", "Cowbell", "Viola", "Sitar", "Steel Drums", "Piccolo", "Theremin", "Bagpipes", "Hi-Hat", "Music Box", "Melodica", "Tabla", "Koto", "Djembe", "Taiko", "Didgeridoo"];
|
|
298
|
+
type SunoStemName = (typeof SUNO_STEM_NAMES)[number];
|
|
299
|
+
declare const DEFAULT_SUNO_STEM_NAME: SunoStemName;
|
|
300
|
+
/**
|
|
301
|
+
* Credit id a mode is priced from. Anything that is not a full-stems or
|
|
302
|
+
* one-instrument run prices as the two-stem (vocals + instrumental) split.
|
|
303
|
+
*/
|
|
304
|
+
declare function sunoSeparateCreditId(type: unknown): "suno-separate" | "suno-separate-stem" | "suno-separate-single";
|
|
305
|
+
/**
|
|
306
|
+
* Flat per-stem URL fields of a run's output. `otherUrl` carries the Demucs
|
|
307
|
+
* `other` stem of a full-stems fallback run.
|
|
308
|
+
*/
|
|
309
|
+
declare const SUNO_SEPARATE_STEM_FIELDS: readonly ["vocalUrl", "instrumentalUrl", "backingVocalsUrl", "drumsUrl", "bassUrl", "guitarUrl", "pianoUrl", "keyboardUrl", "percussionUrl", "stringsUrl", "synthUrl", "fxUrl", "brassUrl", "woodwindsUrl", "otherUrl"];
|
|
310
|
+
type SunoSeparateStemField = (typeof SUNO_SEPARATE_STEM_FIELDS)[number];
|
|
311
|
+
/**
|
|
312
|
+
* One-instrument mode's two takes: the named instrument alone (`isolated`) and
|
|
313
|
+
* the song without it (`without`). Take 1 drives the `isolated` / `without`
|
|
314
|
+
* handles; take 2 is kept with the result but is not wireable.
|
|
315
|
+
*/
|
|
316
|
+
declare const SUNO_SEPARATE_TAKE_FIELDS: readonly ["isolatedUrl", "withoutUrl", "isolated2Url", "without2Url"];
|
|
317
|
+
/** Every URL field a run's output can carry. */
|
|
318
|
+
declare const SUNO_SEPARATE_RESULT_FIELDS: readonly ["vocalUrl", "instrumentalUrl", "backingVocalsUrl", "drumsUrl", "bassUrl", "guitarUrl", "pianoUrl", "keyboardUrl", "percussionUrl", "stringsUrl", "synthUrl", "fxUrl", "brassUrl", "woodwindsUrl", "otherUrl", "isolatedUrl", "withoutUrl", "isolated2Url", "without2Url"];
|
|
319
|
+
type SunoSeparateResultField = (typeof SUNO_SEPARATE_RESULT_FIELDS)[number];
|
|
320
|
+
/** Non-URL fields a run's output records about how it ran. */
|
|
321
|
+
declare const SUNO_SEPARATE_META_FIELDS: readonly ["separateType", "stemName", "engineUsed", "sunoRefused", "fallbackReason"];
|
|
322
|
+
/**
|
|
323
|
+
* The URL a run's output puts behind one handle. A stem that did not come back
|
|
324
|
+
* is empty — never filled with the main audio; only an output of the legacy
|
|
325
|
+
* shape routes `audioUrl` to `vocals` / `instrumental`. Accepts the old handle
|
|
326
|
+
* spellings (`vocal`, `vocal-out`, `instrumental-out`). Any other handle, or
|
|
327
|
+
* none, gets the primary URL.
|
|
328
|
+
*/
|
|
329
|
+
declare function sunoSeparateHandleUrl(output: Readonly<Record<string, unknown>>, handle: string | null | undefined): string | undefined;
|
|
330
|
+
/**
|
|
331
|
+
* A run's main URL: vocals, else instrumental, else the isolated instrument,
|
|
332
|
+
* else the first stem that came back.
|
|
333
|
+
*/
|
|
334
|
+
declare function sunoSeparatePrimaryUrl(output: Readonly<Record<string, unknown>>): string | undefined;
|
|
335
|
+
|
|
230
336
|
/**
|
|
231
337
|
* ElevenLabs speech-to-speech (voice changer) models — single source of truth
|
|
232
338
|
* for the Voice Changer node's model picker (frontend config panel) AND the
|
|
@@ -284,4 +390,4 @@ declare function modelToNodeTarget(modelId: string): ModelNodeTarget | null;
|
|
|
284
390
|
declare function searchModelVariants(query: string, kind?: ModelKind): ModelTreeVariant[];
|
|
285
391
|
declare function buildModelTree(): ModelTreeLine[];
|
|
286
392
|
|
|
287
|
-
export { CHARACTER_LORA_TRAINING_JOB_TYPE, type CharacterLoraFields, DEFAULT_VOICE_CHANGER_MODEL, DialogueProvider, FLUX_LORA_CHARACTER_MODEL_ID, type LoraEligibleRef, type LoraRouting, type ModelNodeTarget, type ModelTreeLine, type ModelTreeVariant, NODE_DEFAULT_TYPES, type NodeDefaultType, PROVIDER_DIRECTIVE_DEFAULTS, type QualityLevel, SUNO_TRACK_SOURCE_TYPES, type SemanticAspectRatio, TTS_NEIGHBOUR_TEXT_MAX_CHARS, type TtsNeighbourText, VOICE_CHANGER_MODELS, VOICE_CHANGER_MODEL_IDS, type VoiceChangerModel, buildModelTree, deriveLinkedFields, dialogueHasLever, dialogueProviderOf, dialogueStabilityAccepted, dialogueSupportsTimestamps, extractCharacterLoraFields, findDialogueCapabilities, getDialogueCapabilities, getTargetField, getValidValues, mapAspectRatio, mapQuality, mapShotIntentToProviderDirectives, modelToNodeTarget, normalizeTtsNeighbourText, searchModelVariants, selectLoraRoutingForMentions, supportedDefaultDimensions, validateProviderForNodeType };
|
|
393
|
+
export { CAST_SWAP_FACE_MASKING_BOUNDS, CAST_SWAP_FACE_MASKING_DEFAULTS, CAST_SWAP_POST_PROMPT_MAX, CHARACTER_LORA_TRAINING_JOB_TYPE, type CharacterLoraFields, DEFAULT_SUNO_STEM_NAME, DEFAULT_VOICE_CHANGER_MODEL, DialogueProvider, FLUX_LORA_CHARACTER_MODEL_ID, type LoraEligibleRef, type LoraRouting, type ModelNodeTarget, type ModelTreeLine, type ModelTreeVariant, NODE_DEFAULT_TYPES, type NodeDefaultType, PROVIDER_DIRECTIVE_DEFAULTS, type QualityLevel, SUNO_SEPARATE_META_FIELDS, SUNO_SEPARATE_RESULT_FIELDS, SUNO_SEPARATE_STEM_FIELDS, SUNO_SEPARATE_TAKE_FIELDS, SUNO_SEPARATE_TYPES, SUNO_STEM_NAMES, SUNO_TRACK_SOURCE_TYPES, type SemanticAspectRatio, type SunoSeparateResultField, type SunoSeparateStemField, type SunoSeparateType, type SunoStemName, TREND_PROMPT_LIMITS, TTS_NEIGHBOUR_TEXT_MAX_CHARS, type TtsNeighbourText, VOICE_CHANGER_MODELS, VOICE_CHANGER_MODEL_IDS, type VoiceChangerModel, buildModelTree, deriveLinkedFields, dialogueHasLever, dialogueProviderOf, dialogueStabilityAccepted, dialogueSupportsTimestamps, extractCharacterLoraFields, findDialogueCapabilities, getDialogueCapabilities, getTargetField, getValidValues, mapAspectRatio, mapQuality, mapShotIntentToProviderDirectives, modelToNodeTarget, normalizeTtsNeighbourText, searchModelVariants, selectLoraRoutingForMentions, sunoSeparateCreditId, sunoSeparateHandleUrl, sunoSeparatePrimaryUrl, supportedDefaultDimensions, validateProviderForNodeType };
|