@nodaro/shared 3.37.0 → 3.39.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-4XI6B4RU.js → chunk-2BHOAYZW.js} +17 -4
- package/dist/chunk-2BHOAYZW.js.map +1 -0
- package/dist/{chunk-M6JHRWVY.cjs → chunk-7VDPBFER.cjs} +19 -3
- package/dist/chunk-7VDPBFER.cjs.map +1 -0
- package/dist/{chunk-YVKUCBY2.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-NARVPCWW.cjs → chunk-D33YBZ3B.cjs} +170 -143
- package/dist/chunk-D33YBZ3B.cjs.map +1 -0
- package/dist/{chunk-7Q75OZBL.cjs → chunk-HZ46RDLD.cjs} +9 -24
- package/dist/chunk-HZ46RDLD.cjs.map +1 -0
- package/dist/{chunk-WD6AJ533.js → chunk-KMNSK7T5.js} +38 -4
- package/dist/chunk-KMNSK7T5.js.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-L6HS52BV.js → chunk-QLCSS6DK.js} +165 -141
- package/dist/chunk-QLCSS6DK.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-6Y66YM4M.cjs → chunk-XUISP5BT.cjs} +48 -10
- package/dist/chunk-XUISP5BT.cjs.map +1 -0
- package/dist/entries/credits.cjs +135 -134
- package/dist/entries/credits.js +3 -2
- package/dist/entries/llm-models.cjs +72 -52
- package/dist/entries/llm-models.d.cts +50 -13
- package/dist/entries/llm-models.d.ts +50 -13
- 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 +43 -27
- package/dist/entries/models.d.cts +67 -3
- package/dist/entries/models.d.ts +67 -3
- package/dist/entries/models.js +2 -2
- 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/index.cjs +499 -426
- package/dist/index.d.cts +6 -5
- package/dist/index.d.ts +6 -5
- package/dist/index.js +7 -6
- package/dist/{scene-node-types-Cvbtf-0a.d.cts → model-constants-C43YS07I.d.cts} +1 -497
- package/dist/{scene-node-types-Cvbtf-0a.d.ts → 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 +49 -0
- package/src/__tests__/fixtures/root-exports.baseline.json +6 -0
- package/src/__tests__/llm-models.test.ts +8 -8
- package/src/__tests__/llm-price-key.test.ts +55 -0
- package/src/__tests__/scrape-analysis-pricing.test.ts +41 -0
- package/src/__tests__/video-mask.test.ts +27 -0
- package/src/cast-swap-limits.ts +61 -0
- package/src/entries/llm-models.ts +4 -0
- package/src/entries/models.ts +7 -1
- package/src/entries/social.ts +1 -0
- package/src/llm-models.ts +61 -13
- package/src/mask-composite.ts +80 -3
- package/src/scrape-analysis-pricing.ts +73 -0
- package/src/script-model.ts +21 -0
- package/src/video-mask.ts +97 -0
- package/dist/chunk-4XI6B4RU.js.map +0 -1
- package/dist/chunk-6Y66YM4M.cjs.map +0 -1
- package/dist/chunk-7Q75OZBL.cjs.map +0 -1
- package/dist/chunk-FG4E7MTG.cjs +0 -4
- package/dist/chunk-FG4E7MTG.cjs.map +0 -1
- package/dist/chunk-J65CAOUV.cjs.map +0 -1
- package/dist/chunk-L6HS52BV.js.map +0 -1
- package/dist/chunk-M6JHRWVY.cjs.map +0 -1
- package/dist/chunk-NARVPCWW.cjs.map +0 -1
- package/dist/chunk-TZE673G6.js +0 -3
- package/dist/chunk-TZE673G6.js.map +0 -1
- package/dist/chunk-WD6AJ533.js.map +0 -1
- package/dist/chunk-WXNQMJ67.js.map +0 -1
- package/dist/chunk-YVKUCBY2.js.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,114 +1,130 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkXUISP5BT_cjs = require('../chunk-XUISP5BT.cjs');
|
|
4
4
|
require('../chunk-6DAWSVX2.cjs');
|
|
5
5
|
var chunkDBD4BCGH_cjs = require('../chunk-DBD4BCGH.cjs');
|
|
6
6
|
var chunkVRUN5TG2_cjs = require('../chunk-VRUN5TG2.cjs');
|
|
7
|
-
require('../chunk-
|
|
7
|
+
require('../chunk-7VDPBFER.cjs');
|
|
8
8
|
var chunkHABDAHZR_cjs = require('../chunk-HABDAHZR.cjs');
|
|
9
9
|
require('../chunk-KOP7UTQR.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
+
Object.defineProperty(exports, "CAST_SWAP_FACE_MASKING_BOUNDS", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return chunkXUISP5BT_cjs.CAST_SWAP_FACE_MASKING_BOUNDS; }
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "CAST_SWAP_FACE_MASKING_DEFAULTS", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return chunkXUISP5BT_cjs.CAST_SWAP_FACE_MASKING_DEFAULTS; }
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(exports, "CAST_SWAP_POST_PROMPT_MAX", {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () { return chunkXUISP5BT_cjs.CAST_SWAP_POST_PROMPT_MAX; }
|
|
24
|
+
});
|
|
13
25
|
Object.defineProperty(exports, "CHARACTER_LORA_TRAINING_JOB_TYPE", {
|
|
14
26
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkXUISP5BT_cjs.CHARACTER_LORA_TRAINING_JOB_TYPE; }
|
|
16
28
|
});
|
|
17
29
|
Object.defineProperty(exports, "DEFAULT_VOICE_CHANGER_MODEL", {
|
|
18
30
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkXUISP5BT_cjs.DEFAULT_VOICE_CHANGER_MODEL; }
|
|
20
32
|
});
|
|
21
33
|
Object.defineProperty(exports, "FLUX_LORA_CHARACTER_MODEL_ID", {
|
|
22
34
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkXUISP5BT_cjs.FLUX_LORA_CHARACTER_MODEL_ID; }
|
|
24
36
|
});
|
|
25
37
|
Object.defineProperty(exports, "GEMINI_OMNI_VOICE_PRESETS", {
|
|
26
38
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkXUISP5BT_cjs.GEMINI_OMNI_VOICE_PRESETS; }
|
|
28
40
|
});
|
|
29
41
|
Object.defineProperty(exports, "GEMINI_OMNI_VOICE_PRESET_IDS", {
|
|
30
42
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkXUISP5BT_cjs.GEMINI_OMNI_VOICE_PRESET_IDS; }
|
|
32
44
|
});
|
|
33
45
|
Object.defineProperty(exports, "NODE_DEFAULT_TYPES", {
|
|
34
46
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkXUISP5BT_cjs.NODE_DEFAULT_TYPES; }
|
|
36
48
|
});
|
|
37
49
|
Object.defineProperty(exports, "PROVIDER_DIRECTIVE_DEFAULTS", {
|
|
38
50
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkXUISP5BT_cjs.PROVIDER_DIRECTIVE_DEFAULTS; }
|
|
40
52
|
});
|
|
41
53
|
Object.defineProperty(exports, "SUNO_TRACK_SOURCE_TYPES", {
|
|
42
54
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkXUISP5BT_cjs.SUNO_TRACK_SOURCE_TYPES; }
|
|
56
|
+
});
|
|
57
|
+
Object.defineProperty(exports, "TREND_PROMPT_LIMITS", {
|
|
58
|
+
enumerable: true,
|
|
59
|
+
get: function () { return chunkXUISP5BT_cjs.TREND_PROMPT_LIMITS; }
|
|
44
60
|
});
|
|
45
61
|
Object.defineProperty(exports, "TTS_NEIGHBOUR_TEXT_MAX_CHARS", {
|
|
46
62
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkXUISP5BT_cjs.TTS_NEIGHBOUR_TEXT_MAX_CHARS; }
|
|
48
64
|
});
|
|
49
65
|
Object.defineProperty(exports, "VOICE_CHANGER_MODELS", {
|
|
50
66
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunkXUISP5BT_cjs.VOICE_CHANGER_MODELS; }
|
|
52
68
|
});
|
|
53
69
|
Object.defineProperty(exports, "VOICE_CHANGER_MODEL_IDS", {
|
|
54
70
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunkXUISP5BT_cjs.VOICE_CHANGER_MODEL_IDS; }
|
|
56
72
|
});
|
|
57
73
|
Object.defineProperty(exports, "buildModelTree", {
|
|
58
74
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunkXUISP5BT_cjs.buildModelTree; }
|
|
60
76
|
});
|
|
61
77
|
Object.defineProperty(exports, "deriveLinkedFields", {
|
|
62
78
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunkXUISP5BT_cjs.deriveLinkedFields; }
|
|
64
80
|
});
|
|
65
81
|
Object.defineProperty(exports, "extractCharacterLoraFields", {
|
|
66
82
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunkXUISP5BT_cjs.extractCharacterLoraFields; }
|
|
68
84
|
});
|
|
69
85
|
Object.defineProperty(exports, "getTargetField", {
|
|
70
86
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunkXUISP5BT_cjs.getTargetField; }
|
|
72
88
|
});
|
|
73
89
|
Object.defineProperty(exports, "getValidValues", {
|
|
74
90
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
91
|
+
get: function () { return chunkXUISP5BT_cjs.getValidValues; }
|
|
76
92
|
});
|
|
77
93
|
Object.defineProperty(exports, "mapAspectRatio", {
|
|
78
94
|
enumerable: true,
|
|
79
|
-
get: function () { return
|
|
95
|
+
get: function () { return chunkXUISP5BT_cjs.mapAspectRatio; }
|
|
80
96
|
});
|
|
81
97
|
Object.defineProperty(exports, "mapQuality", {
|
|
82
98
|
enumerable: true,
|
|
83
|
-
get: function () { return
|
|
99
|
+
get: function () { return chunkXUISP5BT_cjs.mapQuality; }
|
|
84
100
|
});
|
|
85
101
|
Object.defineProperty(exports, "mapShotIntentToProviderDirectives", {
|
|
86
102
|
enumerable: true,
|
|
87
|
-
get: function () { return
|
|
103
|
+
get: function () { return chunkXUISP5BT_cjs.mapShotIntentToProviderDirectives; }
|
|
88
104
|
});
|
|
89
105
|
Object.defineProperty(exports, "modelToNodeTarget", {
|
|
90
106
|
enumerable: true,
|
|
91
|
-
get: function () { return
|
|
107
|
+
get: function () { return chunkXUISP5BT_cjs.modelToNodeTarget; }
|
|
92
108
|
});
|
|
93
109
|
Object.defineProperty(exports, "normalizeTtsNeighbourText", {
|
|
94
110
|
enumerable: true,
|
|
95
|
-
get: function () { return
|
|
111
|
+
get: function () { return chunkXUISP5BT_cjs.normalizeTtsNeighbourText; }
|
|
96
112
|
});
|
|
97
113
|
Object.defineProperty(exports, "searchModelVariants", {
|
|
98
114
|
enumerable: true,
|
|
99
|
-
get: function () { return
|
|
115
|
+
get: function () { return chunkXUISP5BT_cjs.searchModelVariants; }
|
|
100
116
|
});
|
|
101
117
|
Object.defineProperty(exports, "selectLoraRoutingForMentions", {
|
|
102
118
|
enumerable: true,
|
|
103
|
-
get: function () { return
|
|
119
|
+
get: function () { return chunkXUISP5BT_cjs.selectLoraRoutingForMentions; }
|
|
104
120
|
});
|
|
105
121
|
Object.defineProperty(exports, "supportedDefaultDimensions", {
|
|
106
122
|
enumerable: true,
|
|
107
|
-
get: function () { return
|
|
123
|
+
get: function () { return chunkXUISP5BT_cjs.supportedDefaultDimensions; }
|
|
108
124
|
});
|
|
109
125
|
Object.defineProperty(exports, "validateProviderForNodeType", {
|
|
110
126
|
enumerable: true,
|
|
111
|
-
get: function () { return
|
|
127
|
+
get: function () { return chunkXUISP5BT_cjs.validateProviderForNodeType; }
|
|
112
128
|
});
|
|
113
129
|
Object.defineProperty(exports, "DEFAULT_SUNO_STEM_NAME", {
|
|
114
130
|
enumerable: true,
|
|
@@ -1,9 +1,73 @@
|
|
|
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
|
+
/** What covers a masked face: a blur (`"depth"`, a depth-color view of it, is the other fill). */
|
|
51
|
+
readonly fill: "blur";
|
|
52
|
+
readonly minFaceHeightPct: 15;
|
|
53
|
+
readonly maxFaceHeightPct: 0;
|
|
54
|
+
/**
|
|
55
|
+
* The frame margins when `zone` is left out: a face centred in the outer 10 %
|
|
56
|
+
* at the left or right is not masked (people walking in at the edge). An
|
|
57
|
+
* explicit `zone: null`, or all four margins 0, means no margins.
|
|
58
|
+
*/
|
|
59
|
+
readonly zone: {
|
|
60
|
+
readonly leftPct: 10;
|
|
61
|
+
readonly rightPct: 10;
|
|
62
|
+
readonly topPct: 0;
|
|
63
|
+
readonly bottomPct: 0;
|
|
64
|
+
};
|
|
65
|
+
/** A margin left out of a `zone` that is given. */
|
|
66
|
+
readonly zonePct: 0;
|
|
67
|
+
readonly blurStrengthPct: 2;
|
|
68
|
+
readonly threshold: 0.5;
|
|
69
|
+
};
|
|
70
|
+
|
|
7
71
|
type QualityLevel = "low" | "mid" | "high";
|
|
8
72
|
type SemanticAspectRatio = "auto" | "1:1" | "4:3" | "3:4" | "16:9" | "9:16";
|
|
9
73
|
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"];
|
|
@@ -340,4 +404,4 @@ declare function modelToNodeTarget(modelId: string): ModelNodeTarget | null;
|
|
|
340
404
|
declare function searchModelVariants(query: string, kind?: ModelKind): ModelTreeVariant[];
|
|
341
405
|
declare function buildModelTree(): ModelTreeLine[];
|
|
342
406
|
|
|
343
|
-
export { 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, 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 };
|
|
407
|
+
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 };
|