@nodaro/shared 3.61.0 → 3.63.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-4KYLNTR7.cjs → chunk-2PU3AGGS.cjs} +27 -4
- package/dist/chunk-2PU3AGGS.cjs.map +1 -0
- package/dist/{chunk-43TGSZRJ.js → chunk-2QKF7M2Z.js} +3 -3
- package/dist/{chunk-43TGSZRJ.js.map → chunk-2QKF7M2Z.js.map} +1 -1
- package/dist/{chunk-B6BG3LV2.js → chunk-34QLPTSA.js} +3 -3
- package/dist/{chunk-B6BG3LV2.js.map → chunk-34QLPTSA.js.map} +1 -1
- package/dist/chunk-3K24DWOH.js +453 -0
- package/dist/chunk-3K24DWOH.js.map +1 -0
- package/dist/{chunk-IRQ3SPX7.js → chunk-4DVWXEB6.js} +23 -4
- package/dist/chunk-4DVWXEB6.js.map +1 -0
- package/dist/{chunk-ZES6EZC4.js → chunk-4MMZD63H.js} +3 -3
- package/dist/{chunk-ZES6EZC4.js.map → chunk-4MMZD63H.js.map} +1 -1
- package/dist/{chunk-MQZRQ5LM.cjs → chunk-63H4C56Q.cjs} +8 -8
- package/dist/{chunk-MQZRQ5LM.cjs.map → chunk-63H4C56Q.cjs.map} +1 -1
- package/dist/{chunk-IVXSNW2B.cjs → chunk-6BZC2ZHC.cjs} +18 -332
- package/dist/chunk-6BZC2ZHC.cjs.map +1 -0
- package/dist/{chunk-M3SXUUWC.cjs → chunk-6FQBKI2A.cjs} +4 -11
- package/dist/chunk-6FQBKI2A.cjs.map +1 -0
- package/dist/{chunk-673E4KYC.js → chunk-6M563QE6.js} +134 -8
- package/dist/chunk-6M563QE6.js.map +1 -0
- package/dist/chunk-6TGB7ECA.cjs +48 -0
- package/dist/chunk-6TGB7ECA.cjs.map +1 -0
- package/dist/{chunk-XUJC6GHE.cjs → chunk-6XUG4L7X.cjs} +6 -6
- package/dist/{chunk-XUJC6GHE.cjs.map → chunk-6XUG4L7X.cjs.map} +1 -1
- package/dist/{chunk-XZKFZMRT.cjs → chunk-77WU3V3J.cjs} +6 -6
- package/dist/{chunk-XZKFZMRT.cjs.map → chunk-77WU3V3J.cjs.map} +1 -1
- package/dist/{chunk-ZFJN23V4.cjs → chunk-A2PX5IRC.cjs} +4 -4
- package/dist/{chunk-ZFJN23V4.cjs.map → chunk-A2PX5IRC.cjs.map} +1 -1
- package/dist/{chunk-ZDBPQBAA.js → chunk-AE3AAJ4O.js} +3 -3
- package/dist/{chunk-ZDBPQBAA.js.map → chunk-AE3AAJ4O.js.map} +1 -1
- package/dist/chunk-ALRXY4QH.cjs +13 -0
- package/dist/chunk-ALRXY4QH.cjs.map +1 -0
- package/dist/{chunk-UARGJ5IZ.js → chunk-BMJVKYVB.js} +56 -12
- package/dist/chunk-BMJVKYVB.js.map +1 -0
- package/dist/{chunk-6XVHYD5R.js → chunk-CLAKSLXF.js} +4 -9
- package/dist/chunk-CLAKSLXF.js.map +1 -0
- package/dist/chunk-CTANEPMY.js +61 -0
- package/dist/chunk-CTANEPMY.js.map +1 -0
- package/dist/chunk-CZ5IQB3L.js +42 -0
- package/dist/chunk-CZ5IQB3L.js.map +1 -0
- package/dist/{chunk-WGKAOUEQ.cjs → chunk-D34K455O.cjs} +3 -2
- package/dist/chunk-D34K455O.cjs.map +1 -0
- package/dist/chunk-EPXGG27L.js +331 -0
- package/dist/chunk-EPXGG27L.js.map +1 -0
- package/dist/{chunk-3M4BNKFJ.cjs → chunk-F6WGGYQW.cjs} +167 -3
- package/dist/chunk-F6WGGYQW.cjs.map +1 -0
- package/dist/{chunk-7FCTCWHD.js → chunk-FXGNRYQQ.js} +3 -3
- package/dist/{chunk-7FCTCWHD.js.map → chunk-FXGNRYQQ.js.map} +1 -1
- package/dist/{chunk-ZNM2LW3D.cjs → chunk-GMBDLNLD.cjs} +105 -56
- package/dist/chunk-GMBDLNLD.cjs.map +1 -0
- package/dist/{chunk-NJVOJXBS.cjs → chunk-GSKLPI3J.cjs} +104 -49
- package/dist/chunk-GSKLPI3J.cjs.map +1 -0
- package/dist/{chunk-EWS2VFO4.js → chunk-HBXF6RUU.js} +4 -4
- package/dist/{chunk-EWS2VFO4.js.map → chunk-HBXF6RUU.js.map} +1 -1
- package/dist/{chunk-MOMFX32D.js → chunk-HWQ2SYNA.js} +194 -325
- package/dist/chunk-HWQ2SYNA.js.map +1 -0
- package/dist/{chunk-SCMTN57Y.js → chunk-IY3Y462W.js} +3 -3
- package/dist/{chunk-SCMTN57Y.js.map → chunk-IY3Y462W.js.map} +1 -1
- package/dist/{chunk-ZZGQRRN7.js → chunk-KCZHQH2O.js} +6 -306
- package/dist/chunk-KCZHQH2O.js.map +1 -0
- package/dist/{chunk-XROE3CAS.cjs → chunk-KHH54GRP.cjs} +120 -79
- package/dist/chunk-KHH54GRP.cjs.map +1 -0
- package/dist/{chunk-FVVD6XY2.js → chunk-KL6GAYTT.js} +13 -4
- package/dist/chunk-KL6GAYTT.js.map +1 -0
- package/dist/{chunk-FVII3KHN.js → chunk-KMGCHV6O.js} +163 -4
- package/dist/chunk-KMGCHV6O.js.map +1 -0
- package/dist/{chunk-FMXFHJWX.cjs → chunk-L2TVY6XN.cjs} +4 -4
- package/dist/{chunk-FMXFHJWX.cjs.map → chunk-L2TVY6XN.cjs.map} +1 -1
- package/dist/{chunk-FQXRYPCX.cjs → chunk-LH72PQO2.cjs} +505 -68
- package/dist/chunk-LH72PQO2.cjs.map +1 -0
- package/dist/chunk-LMAQUR55.cjs +506 -0
- package/dist/chunk-LMAQUR55.cjs.map +1 -0
- package/dist/{chunk-F5YEMSNK.cjs → chunk-M5OCFGHF.cjs} +571 -30
- package/dist/chunk-M5OCFGHF.cjs.map +1 -0
- package/dist/{chunk-VOWJCUMR.js → chunk-MD4XHED4.js} +3 -3
- package/dist/{chunk-VOWJCUMR.js.map → chunk-MD4XHED4.js.map} +1 -1
- package/dist/chunk-N5HH46JF.cjs +68 -0
- package/dist/chunk-N5HH46JF.cjs.map +1 -0
- package/dist/{chunk-G4XWVWRI.js → chunk-NIAFR5EE.js} +5 -4
- package/dist/chunk-NIAFR5EE.js.map +1 -0
- package/dist/{chunk-CF4S4N5X.js → chunk-O2QOBA6Q.js} +2 -2
- package/dist/{chunk-CF4S4N5X.js.map → chunk-O2QOBA6Q.js.map} +1 -1
- package/dist/{chunk-4GGLKRYI.cjs → chunk-O6TBB4IF.cjs} +2 -2
- package/dist/{chunk-4GGLKRYI.cjs.map → chunk-O6TBB4IF.cjs.map} +1 -1
- package/dist/{chunk-SWVGHAYO.js → chunk-O7RZRUMZ.js} +110 -74
- package/dist/chunk-O7RZRUMZ.js.map +1 -0
- package/dist/{chunk-LLOIAGFB.js → chunk-OV3JTKBY.js} +449 -51
- package/dist/chunk-OV3JTKBY.js.map +1 -0
- package/dist/{chunk-A3FHTSLB.js → chunk-PSKZKLDG.js} +550 -31
- package/dist/chunk-PSKZKLDG.js.map +1 -0
- package/dist/{chunk-VB2ARGQ6.js → chunk-RGNHHIMN.js} +3 -3
- package/dist/chunk-RGNHHIMN.js.map +1 -0
- package/dist/chunk-SMOO5FAH.js +10 -0
- package/dist/chunk-SMOO5FAH.js.map +1 -0
- package/dist/{chunk-5XRRENHD.cjs → chunk-TM5JYSJF.cjs} +170 -17
- package/dist/chunk-TM5JYSJF.cjs.map +1 -0
- package/dist/{chunk-PONP5J5E.cjs → chunk-V24EPI5N.cjs} +13 -3
- package/dist/chunk-V24EPI5N.cjs.map +1 -0
- package/dist/{chunk-RQ4F3AJH.cjs → chunk-V5EEQR2U.cjs} +21 -21
- package/dist/{chunk-RQ4F3AJH.cjs.map → chunk-V5EEQR2U.cjs.map} +1 -1
- package/dist/chunk-WZVIBAKN.cjs +351 -0
- package/dist/chunk-WZVIBAKN.cjs.map +1 -0
- package/dist/{chunk-5M43XMRB.cjs → chunk-X5BAFW3Q.cjs} +8 -8
- package/dist/{chunk-5M43XMRB.cjs.map → chunk-X5BAFW3Q.cjs.map} +1 -1
- package/dist/{chunk-RUHKBEFF.js → chunk-XBTYGQ6Z.js} +63 -10
- package/dist/chunk-XBTYGQ6Z.js.map +1 -0
- package/dist/{chunk-JHTT2V4A.cjs → chunk-XGGZWA4A.cjs} +118 -52
- package/dist/chunk-XGGZWA4A.cjs.map +1 -0
- package/dist/{chunk-5I4T4QR5.cjs → chunk-XGVJGNZW.cjs} +5 -5
- package/dist/{chunk-5I4T4QR5.cjs.map → chunk-XGVJGNZW.cjs.map} +1 -1
- package/dist/{chunk-7ARKVJTN.cjs → chunk-Y35JQPT6.cjs} +228 -383
- package/dist/chunk-Y35JQPT6.cjs.map +1 -0
- package/dist/{chunk-AFQFGZN7.cjs → chunk-Y4GCJJPF.cjs} +8 -6
- package/dist/chunk-Y4GCJJPF.cjs.map +1 -0
- package/dist/{chunk-C77F4ZTL.js → chunk-YUER7TJG.js} +3 -3
- package/dist/{chunk-C77F4ZTL.js.map → chunk-YUER7TJG.js.map} +1 -1
- package/dist/{chunk-HGI2VKIV.js → chunk-YX6TFX7H.js} +67 -14
- package/dist/chunk-YX6TFX7H.js.map +1 -0
- package/dist/{chunk-TWF2OSH4.cjs → chunk-ZPE2ZTJ4.cjs} +4 -4
- package/dist/{chunk-TWF2OSH4.cjs.map → chunk-ZPE2ZTJ4.cjs.map} +1 -1
- package/dist/entries/apps.cjs +44 -44
- package/dist/entries/apps.js +9 -9
- package/dist/entries/credits.cjs +286 -153
- package/dist/entries/credits.d.cts +254 -5
- package/dist/entries/credits.d.ts +254 -5
- package/dist/entries/credits.js +14 -9
- package/dist/entries/entities.cjs +188 -143
- package/dist/entries/entities.d.cts +122 -1
- package/dist/entries/entities.d.ts +122 -1
- package/dist/entries/entities.js +2 -1
- package/dist/entries/llm-models.cjs +77 -57
- package/dist/entries/llm-models.d.cts +85 -5
- package/dist/entries/llm-models.d.ts +85 -5
- package/dist/entries/llm-models.js +2 -2
- package/dist/entries/media.cjs +92 -87
- package/dist/entries/media.d.cts +19 -1
- package/dist/entries/media.d.ts +19 -1
- package/dist/entries/media.js +3 -2
- package/dist/entries/model-catalog.cjs +211 -103
- package/dist/entries/model-catalog.d.cts +135 -19
- package/dist/entries/model-catalog.d.ts +135 -19
- package/dist/entries/model-catalog.js +5 -5
- package/dist/entries/models.cjs +504 -295
- package/dist/entries/models.d.cts +71 -4
- package/dist/entries/models.d.ts +71 -4
- package/dist/entries/models.js +7 -6
- package/dist/entries/nodes.cjs +249 -233
- package/dist/entries/nodes.d.cts +35 -6
- package/dist/entries/nodes.d.ts +35 -6
- package/dist/entries/nodes.js +10 -10
- package/dist/entries/pipeline.cjs +152 -152
- package/dist/entries/pipeline.d.cts +3 -2
- package/dist/entries/pipeline.d.ts +3 -2
- package/dist/entries/pipeline.js +3 -3
- package/dist/entries/runtime-config.cjs +29 -29
- package/dist/entries/runtime-config.d.cts +10 -7
- package/dist/entries/runtime-config.d.ts +10 -7
- package/dist/entries/runtime-config.js +1 -1
- package/dist/entries/social.cjs +177 -177
- package/dist/entries/social.js +2 -2
- package/dist/entries/types.d.cts +8 -0
- package/dist/entries/types.d.ts +8 -0
- package/dist/entries/ugc.cjs +71 -71
- package/dist/entries/ugc.js +4 -4
- package/dist/entries/video.cjs +316 -208
- package/dist/entries/video.d.cts +490 -99
- package/dist/entries/video.d.ts +490 -99
- package/dist/entries/video.js +8 -4
- package/dist/entries/workflow.cjs +102 -102
- package/dist/entries/workflow.d.cts +5 -4
- package/dist/entries/workflow.d.ts +5 -4
- package/dist/entries/workflow.js +2 -2
- package/dist/{gpt-image-2-6-BeZdT-pW.d.cts → gpt-image-2-6-jIRQBRag.d.cts} +6 -0
- package/dist/{gpt-image-2-6-BeZdT-pW.d.ts → gpt-image-2-6-jIRQBRag.d.ts} +6 -0
- package/dist/index.cjs +2727 -2092
- package/dist/index.d.cts +11 -11
- package/dist/index.d.ts +11 -11
- package/dist/index.js +30 -27
- package/dist/{model-catalog-BgSvskgY.d.ts → model-catalog-C_Eo35tL.d.cts} +158 -14
- package/dist/{model-catalog-BgSvskgY.d.cts → model-catalog-C_Eo35tL.d.ts} +158 -14
- package/dist/{model-constants-DHd9jwQ7.d.cts → model-constants-Bg4ccSQb.d.ts} +427 -34
- package/dist/{model-constants-DHd9jwQ7.d.ts → model-constants-DWcxOmaY.d.cts} +427 -34
- package/package.json +1 -1
- package/src/__tests__/credit-identifiers.test.ts +29 -0
- package/src/__tests__/extend-providers.test.ts +194 -0
- package/src/__tests__/fixtures/mask-composite-quote-parity.json +118 -0
- package/src/__tests__/fixtures/root-exports.baseline.json +68 -0
- package/src/__tests__/gpt-image-2-6-formats.test.ts +4 -1
- package/src/__tests__/grok-video-15-catalog.test.ts +189 -0
- package/src/__tests__/gvp-supported-providers.test.ts +32 -4
- package/src/__tests__/lip-sync-audio-rate.test.ts +74 -0
- package/src/__tests__/lip-sync-levers.test.ts +31 -0
- package/src/__tests__/llm-models.test.ts +132 -3
- package/src/__tests__/llm-price-key.test.ts +152 -1
- package/src/__tests__/minimax-h3-image.test.ts +140 -0
- package/src/__tests__/model-makers.test.ts +49 -11
- package/src/__tests__/model-tree.test.ts +13 -0
- package/src/__tests__/nemotron-transcribe-pricing.test.ts +61 -0
- package/src/__tests__/normalize-node-params.test.ts +25 -0
- package/src/__tests__/pixverse-v6-max-catalog.test.ts +271 -0
- package/src/__tests__/prompt-length-limits.test.ts +4 -0
- package/src/__tests__/retired-video-provider.test.ts +15 -5
- package/src/__tests__/seedance-25-catalog-modes.test.ts +1 -1
- package/src/__tests__/seedance-task-type.test.ts +188 -0
- package/src/__tests__/seedream-5-5.test.ts +117 -0
- package/src/__tests__/transcribe-capabilities.test.ts +39 -2
- package/src/__tests__/transcribe-preflight.test.ts +50 -1
- package/src/__tests__/unit-contract-compose.test.ts +27 -1
- package/src/__tests__/unit-contracts.test.ts +20 -6
- package/src/__tests__/upscale-factors.test.ts +107 -0
- package/src/__tests__/video-audio-capability.test.ts +35 -6
- package/src/__tests__/video-character-refs.test.ts +20 -2
- package/src/__tests__/video-collapse-parity.test.ts +19 -0
- package/src/__tests__/video-overlay-geometry.test.ts +68 -0
- package/src/__tests__/video-overlay-layer-plan.test.ts +3 -4
- package/src/__tests__/video-overlay-layouts.test.ts +529 -0
- package/src/__tests__/video-overlay-pricing.test.ts +61 -0
- package/src/__tests__/video-overlay-validate.test.ts +128 -0
- package/src/__tests__/video-overlay-wired-kind.test.ts +207 -0
- package/src/__tests__/video-overlay.test.ts +280 -194
- package/src/__tests__/video-ref-limits.test.ts +2 -1
- package/src/__tests__/video-reference-only.test.ts +6 -2
- package/src/__tests__/video-resolution-billed-as-named.test.ts +30 -0
- package/src/__tests__/video-start-frame-only.test.ts +98 -0
- package/src/__tests__/video-upscale-params.test.ts +62 -0
- package/src/__tests__/wired-character-names.test.ts +220 -0
- package/src/catalog-projection.ts +8 -0
- package/src/credit-estimators/index.ts +18 -0
- package/src/credit-estimators/nemotron-transcribe.ts +87 -0
- package/src/credit-estimators/video-overlay.ts +70 -0
- package/src/credit-identifiers.ts +183 -16
- package/src/entity-image-url.ts +21 -0
- package/src/entries/credits.ts +26 -1
- package/src/entries/entities.ts +14 -0
- package/src/entries/llm-models.ts +6 -0
- package/src/entries/model-catalog.ts +44 -1
- package/src/entries/models.ts +69 -0
- package/src/entries/nodes.ts +4 -0
- package/src/entries/video.ts +7 -1
- package/src/freecut-protocol.ts +8 -0
- package/src/generated/unit-contracts.ts +8 -1
- package/src/gpt-image-2-6.ts +6 -0
- package/src/input-image-pricing.ts +76 -0
- package/src/lip-sync-levers.ts +56 -0
- package/src/lip-sync-pricing.ts +91 -1
- package/src/llm-models.ts +249 -4
- package/src/mask-composite.ts +11 -0
- package/src/minimax-h3-image.ts +61 -0
- package/src/model-catalog.ts +604 -40
- package/src/model-constants.ts +860 -55
- package/src/model-tree.ts +2 -1
- package/src/nodaro-video-upscale.ts +48 -0
- package/src/node-default-mappings.ts +15 -2
- package/src/node-execution-state.ts +4 -3
- package/src/normalize-node-params.ts +49 -1
- package/src/producer-types.ts +23 -1
- package/src/runtime-config/contract.ts +10 -7
- package/src/seedance-draft.ts +2 -1
- package/src/seedance-task-type.ts +37 -0
- package/src/seedream-5-5.ts +45 -0
- package/src/transcribe-preflight.ts +58 -7
- package/src/unit-contract-compose.ts +4 -1
- package/src/upscale-factors.ts +111 -0
- package/src/video-character-refs.ts +7 -4
- package/src/video-duration.ts +9 -0
- package/src/video-overlay-geometry.ts +99 -0
- package/src/video-overlay-input.ts +25 -0
- package/src/video-overlay-layout-ids.ts +48 -0
- package/src/video-overlay-layouts.ts +315 -0
- package/src/video-overlay-validate.ts +223 -0
- package/src/video-overlay-video-layers.ts +304 -0
- package/src/video-overlay.ts +165 -297
- package/src/video-ui-defaults.ts +11 -7
- package/src/video-upscale-params.ts +67 -0
- package/src/wired-character-names.ts +202 -0
- package/dist/chunk-3M4BNKFJ.cjs.map +0 -1
- package/dist/chunk-4KYLNTR7.cjs.map +0 -1
- package/dist/chunk-5XRRENHD.cjs.map +0 -1
- package/dist/chunk-673E4KYC.js.map +0 -1
- package/dist/chunk-6XVHYD5R.js.map +0 -1
- package/dist/chunk-7ARKVJTN.cjs.map +0 -1
- package/dist/chunk-7WGKP3EU.js +0 -23
- package/dist/chunk-7WGKP3EU.js.map +0 -1
- package/dist/chunk-A3FHTSLB.js.map +0 -1
- package/dist/chunk-AFQFGZN7.cjs.map +0 -1
- package/dist/chunk-F5YEMSNK.cjs.map +0 -1
- package/dist/chunk-FQXRYPCX.cjs.map +0 -1
- package/dist/chunk-FVII3KHN.js.map +0 -1
- package/dist/chunk-FVVD6XY2.js.map +0 -1
- package/dist/chunk-G4XWVWRI.js.map +0 -1
- package/dist/chunk-HGI2VKIV.js.map +0 -1
- package/dist/chunk-IRQ3SPX7.js.map +0 -1
- package/dist/chunk-IVXSNW2B.cjs.map +0 -1
- package/dist/chunk-JHTT2V4A.cjs.map +0 -1
- package/dist/chunk-KHZAQGRP.js +0 -17
- package/dist/chunk-KHZAQGRP.js.map +0 -1
- package/dist/chunk-LLOIAGFB.js.map +0 -1
- package/dist/chunk-M3SXUUWC.cjs.map +0 -1
- package/dist/chunk-MOMFX32D.js.map +0 -1
- package/dist/chunk-NCOGGRRP.cjs +0 -27
- package/dist/chunk-NCOGGRRP.cjs.map +0 -1
- package/dist/chunk-NJVOJXBS.cjs.map +0 -1
- package/dist/chunk-PONP5J5E.cjs.map +0 -1
- package/dist/chunk-RUHKBEFF.js.map +0 -1
- package/dist/chunk-SWVGHAYO.js.map +0 -1
- package/dist/chunk-UARGJ5IZ.js.map +0 -1
- package/dist/chunk-VB2ARGQ6.js.map +0 -1
- package/dist/chunk-WGKAOUEQ.cjs.map +0 -1
- package/dist/chunk-XROE3CAS.cjs.map +0 -1
- package/dist/chunk-ZLDFPVVI.cjs +0 -19
- package/dist/chunk-ZLDFPVVI.cjs.map +0 -1
- package/dist/chunk-ZNM2LW3D.cjs.map +0 -1
- package/dist/chunk-ZZGQRRN7.js.map +0 -1
|
@@ -1,3 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Seedance 2.5 reference task type — what a request's reference media is FOR.
|
|
3
|
+
*
|
|
4
|
+
* The provider takes an optional declaration of the job a run's references do:
|
|
5
|
+
* - `reference` — the media guides a new clip (look, subject, motion);
|
|
6
|
+
* - `edit` — the clip is an edit of the reference video, in its own shape
|
|
7
|
+
* and length;
|
|
8
|
+
* - `extend` — the clip continues the reference video.
|
|
9
|
+
* Without one the provider guesses from the prompt. `auto` is the platform's
|
|
10
|
+
* spelling of "declare nothing": the provider keeps guessing.
|
|
11
|
+
*
|
|
12
|
+
* Which models take the declaration is a catalog capability
|
|
13
|
+
* (`MODEL_CATALOG[id].referenceTaskTypes`), read through
|
|
14
|
+
* `supportsReferenceTaskType`; whether a given request declares one, and the
|
|
15
|
+
* aspect ratio and length that forces, is decided in one place by
|
|
16
|
+
* `resolveSeedanceTaskType` (both in `model-constants.ts`). Never hand-list the
|
|
17
|
+
* model.
|
|
18
|
+
*
|
|
19
|
+
* Import-free on purpose: the catalog (`model-catalog.ts`) and the constants
|
|
20
|
+
* module (`model-constants.ts`, which imports the catalog) both read it. The
|
|
21
|
+
* resolver itself lives in `model-constants.ts` because it needs
|
|
22
|
+
* `videoDefaultDurationSec` from there.
|
|
23
|
+
*/
|
|
24
|
+
/** Every value a request may carry, `auto` (declare nothing) first. */
|
|
25
|
+
declare const SEEDANCE_REFERENCE_TASK_TYPES: readonly ["auto", "reference", "edit", "extend"];
|
|
26
|
+
type SeedanceReferenceTaskType = typeof SEEDANCE_REFERENCE_TASK_TYPES[number];
|
|
27
|
+
/** A value that is actually sent to the provider. */
|
|
28
|
+
type DeclaredSeedanceTaskType = Exclude<SeedanceReferenceTaskType, "auto">;
|
|
29
|
+
/**
|
|
30
|
+
* The reference-video length (seconds, inclusive) an `edit` declaration
|
|
31
|
+
* accepts. Every reference video must be measured and inside it; otherwise
|
|
32
|
+
* nothing is declared.
|
|
33
|
+
*/
|
|
34
|
+
declare const SEEDANCE_EDIT_REF_VIDEO_SEC: {
|
|
35
|
+
readonly min: 4;
|
|
36
|
+
readonly max: 30;
|
|
37
|
+
};
|
|
38
|
+
|
|
1
39
|
/**
|
|
2
40
|
* Model catalog — single source of truth for what each Nodaro-exposed model
|
|
3
41
|
* is, who made it, what it's good for, and which knobs it accepts.
|
|
@@ -27,6 +65,7 @@
|
|
|
27
65
|
* `npm run gen:skills` (from `backend/`) to refresh the public
|
|
28
66
|
* `docs/choosing-models.md` guide. CI (`gen:skills:check`) fails on drift.
|
|
29
67
|
*/
|
|
68
|
+
|
|
30
69
|
type ModelKind = "image" | "video" | "audio";
|
|
31
70
|
type ModelMode = "t2i" | "i2i" | "edit" | "upscale" | "remove-bg" | "i2v" | "t2v" | "v2v" | "extend" | "motion-transfer" | "lip-sync" | "video-upscale" | "video-depth" | "tts" | "music" | "sfx" | "stt" | "voice-design" | "voice-changer" | "isolation" | "dubbing" | "forced-alignment" | "dialogue" | "video-analysis" | "video-audit";
|
|
32
71
|
interface PriceVariant {
|
|
@@ -153,9 +192,15 @@ declare const MODEL_MAKERS: {
|
|
|
153
192
|
readonly nodaro: {
|
|
154
193
|
readonly name: "Nodaro";
|
|
155
194
|
};
|
|
195
|
+
readonly nvidia: {
|
|
196
|
+
readonly name: "NVIDIA";
|
|
197
|
+
};
|
|
156
198
|
readonly openai: {
|
|
157
199
|
readonly name: "OpenAI";
|
|
158
200
|
};
|
|
201
|
+
readonly pixverse: {
|
|
202
|
+
readonly name: "PixVerse";
|
|
203
|
+
};
|
|
159
204
|
readonly recraft: {
|
|
160
205
|
readonly name: "Recraft";
|
|
161
206
|
};
|
|
@@ -188,12 +233,16 @@ interface ModelMaker {
|
|
|
188
233
|
/** True for an id of {@link MODEL_MAKERS} (and nothing it inherits). */
|
|
189
234
|
declare function isModelMakerId(value: unknown): value is ModelMakerId;
|
|
190
235
|
/**
|
|
191
|
-
* The maker of a catalog entry, in its wire shape — undefined
|
|
192
|
-
*
|
|
193
|
-
*
|
|
236
|
+
* The maker of a catalog entry, in its wire shape — undefined for a model
|
|
237
|
+
* offered under the deployment's own label (`ownLabel`, which names none —
|
|
238
|
+
* even an entry built at run time, or by a JavaScript caller, that also names a
|
|
239
|
+
* maker) and when its `maker` is not a registry id (an entry built at run time
|
|
240
|
+
* without one). Never throws, so one bad entry cannot fail a whole model
|
|
241
|
+
* listing.
|
|
194
242
|
*/
|
|
195
|
-
declare function modelMakerOf(entry: Pick<ModelCatalogEntry, "maker">): ModelMaker | undefined;
|
|
196
|
-
|
|
243
|
+
declare function modelMakerOf(entry: Pick<ModelCatalogEntry, "maker" | "ownLabel">): ModelMaker | undefined;
|
|
244
|
+
/** Every field of a catalog entry but who it is offered under (`maker` / `ownLabel`, {@link ModelCatalogEntry}). */
|
|
245
|
+
interface ModelCatalogEntryFields {
|
|
197
246
|
id: string;
|
|
198
247
|
kind: ModelKind;
|
|
199
248
|
/**
|
|
@@ -206,12 +255,6 @@ interface ModelCatalogEntry {
|
|
|
206
255
|
modes: readonly ModelMode[];
|
|
207
256
|
/** Vendor / lab that produced the model. Used for UI grouping. */
|
|
208
257
|
family: string;
|
|
209
|
-
/**
|
|
210
|
-
* The company that made the model (see {@link MODEL_MAKERS}). REQUIRED, so a
|
|
211
|
-
* new model cannot ship without one; every model of a `family` names the same
|
|
212
|
-
* maker.
|
|
213
|
-
*/
|
|
214
|
-
maker: ModelMakerId;
|
|
215
258
|
/** Display name (NOT the id — the id is the API enum value). */
|
|
216
259
|
label: string;
|
|
217
260
|
/**
|
|
@@ -274,8 +317,10 @@ interface ModelCatalogEntry {
|
|
|
274
317
|
* `"voice-references"` (video models only) means the model takes each
|
|
275
318
|
* reference AUDIO clip as a VOICE sample — who speaks and how they sound —
|
|
276
319
|
* and makes its own soundtrack, rather than conditioning on the audio itself
|
|
277
|
-
* (Kling 4.0: KIE `voices`, `@VoiceN` in the prompt
|
|
278
|
-
*
|
|
320
|
+
* (Kling 4.0: KIE `voices`, `@VoiceN` in the prompt; Kling 4.0 Flash: each
|
|
321
|
+
* clip is a wired character's voice, KIE `elements[].voice_url` — see
|
|
322
|
+
* `audioBindsToCharacters`). The editor names that input "Voice Refs" for
|
|
323
|
+
* such a model.
|
|
279
324
|
*
|
|
280
325
|
* `"audio-soundtrack"` (video models only) means the platform can play the
|
|
281
326
|
* model's FIRST reference audio clip as the result's soundtrack: it sends
|
|
@@ -310,6 +355,24 @@ interface ModelCatalogEntry {
|
|
|
310
355
|
* as before. "auto" stays in `aspectRatios`, so every menu still offers it.
|
|
311
356
|
*/
|
|
312
357
|
autoAspectFromSourceImage?: true;
|
|
358
|
+
/**
|
|
359
|
+
* The provider's endpoint refuses an aspect ratio this model does not list.
|
|
360
|
+
* Set only when that was read from the provider's own schema: a ratio field
|
|
361
|
+
* marked required, with a closed list (Seedream 5.5: text to image requires
|
|
362
|
+
* one of its eight ratios and has no "auto"; its edit takes "auto" and the
|
|
363
|
+
* same eight; docs.kie.ai/market/seedream/5-5-text-to-image.md and
|
|
364
|
+
* 5-5-image-to-image.md). The lanes that pass a stored ratio straight on (a
|
|
365
|
+
* Scene, a surround continuation) move a ratio such a model does not list to
|
|
366
|
+
* the nearest one it does, checked against the model the request reaches
|
|
367
|
+
* (`aspectRatioForStrictModel` in the backend), and send every other model's
|
|
368
|
+
* ratio exactly as stored.
|
|
369
|
+
*
|
|
370
|
+
* A ratio missing from `aspectRatios` is NOT evidence the provider refuses
|
|
371
|
+
* it. Measured 2026-11-11: the provider rendered 21:9 (1916×821) and 4:5
|
|
372
|
+
* (1122×1402) for GPT Image 2, whose list names neither. Do not set this flag
|
|
373
|
+
* from a catalog list alone, and do not snap those lanes for every model.
|
|
374
|
+
*/
|
|
375
|
+
strictAspectRatios?: true;
|
|
313
376
|
/**
|
|
314
377
|
* The pixel size (width, height) this model renders at each aspect ratio and
|
|
315
378
|
* size, from the provider's own table, for a PNG, JPEG or WebP. Read where a
|
|
@@ -356,6 +419,16 @@ interface ModelCatalogEntry {
|
|
|
356
419
|
* the two cannot drift.
|
|
357
420
|
*/
|
|
358
421
|
unlistedResolutionRendersAs?: string;
|
|
422
|
+
/**
|
|
423
|
+
* The resolutions (catalog spelling) at which this video model takes a start
|
|
424
|
+
* frame ONLY: no end frame, no loop and no in-between frames beside it. A run
|
|
425
|
+
* that would send any of them at such a resolution is refused before any
|
|
426
|
+
* credits are held, with one sentence (`videoStartFrameOnlyProblem`), on the
|
|
427
|
+
* API routes, the workflow run and the editor's Run; the editor offers the
|
|
428
|
+
* resolution only while nothing but a start frame is wired. Declared from the
|
|
429
|
+
* provider's own refusal, never guessed.
|
|
430
|
+
*/
|
|
431
|
+
startFrameOnlyResolutions?: readonly string[];
|
|
359
432
|
qualities?: readonly string[];
|
|
360
433
|
/**
|
|
361
434
|
* The quality a run renders at when none is named, where that is not the
|
|
@@ -423,6 +496,16 @@ interface ModelCatalogEntry {
|
|
|
423
496
|
* the longest clip and settled on the delivered one.
|
|
424
497
|
*/
|
|
425
498
|
autoDuration?: boolean;
|
|
499
|
+
/**
|
|
500
|
+
* The reference task types this model accepts as a declaration (see
|
|
501
|
+
* `SEEDANCE_REFERENCE_TASK_TYPES`): what the request's reference media is for
|
|
502
|
+
* — a `reference`, an `edit` of the reference video, or an `extend` of it.
|
|
503
|
+
* The list is what is honoured: `resolveSeedanceTaskType` declares only a
|
|
504
|
+
* value listed here, and anything else runs as Auto. Absent or empty: the
|
|
505
|
+
* model takes no such declaration and the provider guesses from the prompt.
|
|
506
|
+
* `supportsReferenceTaskType` says whether the list is non-empty.
|
|
507
|
+
*/
|
|
508
|
+
referenceTaskTypes?: readonly DeclaredSeedanceTaskType[];
|
|
426
509
|
/**
|
|
427
510
|
* The model takes NO seed: its provider schema has none, so a seed the
|
|
428
511
|
* request carries is dropped before the provider call and repeat runs vary.
|
|
@@ -432,6 +515,18 @@ interface ModelCatalogEntry {
|
|
|
432
515
|
* `omitSeed` in both directions by `seed-capability-parity.test.ts`.
|
|
433
516
|
*/
|
|
434
517
|
noSeed?: boolean;
|
|
518
|
+
/**
|
|
519
|
+
* Generate Video Pro may use this video model although it takes no reference
|
|
520
|
+
* images (decided 2026-11-12, PixVerse V6 Max). The pro engine's bar is a
|
|
521
|
+
* model that takes a start still AND reference images (it attaches identity
|
|
522
|
+
* and continuity references to every segment), so a model without
|
|
523
|
+
* `"reference-image"` is out unless it says so here. With it, each segment
|
|
524
|
+
* runs from its start anchor or from text alone: the references a segment
|
|
525
|
+
* carries are not sent, the "reference" anchor choice is not offered
|
|
526
|
+
* (`gvpAnchorChoicesFor`, `@nodaro/render-rules`), and the run is keyframes only. Never set it on a
|
|
527
|
+
* model that has `"reference-image"` (`gvp-supported-providers.test.ts`).
|
|
528
|
+
*/
|
|
529
|
+
gvpWithoutReferences?: true;
|
|
435
530
|
pricing: readonly PriceVariant[];
|
|
436
531
|
/** Editorial highlight — "best in tier". Surfaces in MCP output as a ⭐. */
|
|
437
532
|
featured?: boolean;
|
|
@@ -459,6 +554,18 @@ interface ModelCatalogEntry {
|
|
|
459
554
|
* is the admin's `model_pricing.is_enabled` (backend lib/model-switch.ts).
|
|
460
555
|
*/
|
|
461
556
|
docsHidden?: boolean;
|
|
557
|
+
/**
|
|
558
|
+
* Never picked: the platform runs this model on its own, never because a
|
|
559
|
+
* person or a client chose it (a trained character's model, which a Generate
|
|
560
|
+
* Image run switches to when its one character has one). It is listed
|
|
561
|
+
* nowhere a model is offered — `listModels` (so `GET /v1/models` and MCP
|
|
562
|
+
* `list_models`), the editor's Models tab and add-node search
|
|
563
|
+
* (`buildModelTree`), the MCP tool model enums (`modelIdsByKindMode`), the
|
|
564
|
+
* docs' model tables and the recommendations — and is still a model a
|
|
565
|
+
* deployment's restriction can name: it counts in the gateable model ids and
|
|
566
|
+
* Admin → Availability shows it.
|
|
567
|
+
*/
|
|
568
|
+
pickerHidden?: true;
|
|
462
569
|
/**
|
|
463
570
|
* The provider's safety filter is known to be non-deterministic on this
|
|
464
571
|
* model — the platform retries a blocked request once; `fallback` names
|
|
@@ -474,6 +581,25 @@ interface ModelCatalogEntry {
|
|
|
474
581
|
*/
|
|
475
582
|
tts?: TtsCapabilities;
|
|
476
583
|
}
|
|
584
|
+
/**
|
|
585
|
+
* Who a model is offered under — exactly one of:
|
|
586
|
+
*
|
|
587
|
+
* - `maker`: the company that made it (see {@link MODEL_MAKERS}). Every model
|
|
588
|
+
* names one unless it is marked `ownLabel`, so a new model cannot ship
|
|
589
|
+
* without saying whose it is; every model of a `family` names the same maker.
|
|
590
|
+
* - `ownLabel: true`: the model is offered under the deployment's own label and
|
|
591
|
+
* names no maker (decided 2026-11-11). `GET /v1/models` leaves `maker` out
|
|
592
|
+
* for it and returns `logoUrl: null`; MCP `list_models` leaves `maker` out (it
|
|
593
|
+
* never carries `logoUrl`); a client shows no maker. Such a model may not
|
|
594
|
+
* carry a `maker` (`model-makers.test.ts`).
|
|
595
|
+
*/
|
|
596
|
+
type ModelCatalogEntry = ModelCatalogEntryFields & ({
|
|
597
|
+
maker: ModelMakerId;
|
|
598
|
+
ownLabel?: never;
|
|
599
|
+
} | {
|
|
600
|
+
ownLabel: true;
|
|
601
|
+
maker?: never;
|
|
602
|
+
});
|
|
477
603
|
/**
|
|
478
604
|
* Editorial recommendations — short "best for X" picks Claude can echo back
|
|
479
605
|
* to the user when they don't know which model to use. Surfaces as a "Quick
|
|
@@ -647,6 +773,24 @@ declare function maskedEditResolution(modelId: string, levers: {
|
|
|
647
773
|
declare function resolutionNearestSource(modelId: string, aspectRatio: unknown, source: SourceImageSize | undefined): string | undefined;
|
|
648
774
|
/** True for the "auto" aspect token in any case or padding. */
|
|
649
775
|
declare function isAutoAspectToken(value: unknown): boolean;
|
|
776
|
+
/**
|
|
777
|
+
* True for the video request's "Auto" ratio — the unified node's
|
|
778
|
+
* provider-agnostic token — in exactly the spellings a video provider adapter
|
|
779
|
+
* receives it as (`"Auto"`, `"auto"`). Narrower than {@link isAutoAspectToken}
|
|
780
|
+
* on purpose: it is the wire rule's own match, so a reader of it agrees with
|
|
781
|
+
* what is sent.
|
|
782
|
+
*/
|
|
783
|
+
declare function isVideoAutoAspectToken(value: string | undefined): boolean;
|
|
784
|
+
/**
|
|
785
|
+
* The ratio a video model runs the "Auto" token ({@link isVideoAutoAspectToken})
|
|
786
|
+
* at: `"adaptive"` (match the input) when the request has a visual input to
|
|
787
|
+
* match — a frame, a reference image or a reference video — and the model's
|
|
788
|
+
* catalog lists `"adaptive"`; otherwise `undefined`, and the provider adapter
|
|
789
|
+
* sends its own fixed default. The ONE mapping: the KIE adapter sends what it
|
|
790
|
+
* says, and the Seedance reference task type resolver reads it to tell a ratio
|
|
791
|
+
* it would replace from one that already runs at the ratio it forces.
|
|
792
|
+
*/
|
|
793
|
+
declare function videoAutoAspectRunsAt(modelId: string | undefined, hasVisualInput: boolean): "adaptive" | undefined;
|
|
650
794
|
/**
|
|
651
795
|
* The ratio in `ratios` nearest a `sourceWidth` x `sourceHeight` image:
|
|
652
796
|
* minimises |ln(w/h) - ln(rw/rh)|, so a portrait and its landscape mirror are
|
|
@@ -884,4 +1028,4 @@ declare function modelIdsByKindMode(kind: ModelKind | null, modes: readonly Mode
|
|
|
884
1028
|
includeHidden?: boolean;
|
|
885
1029
|
}): [string, ...string[]];
|
|
886
1030
|
|
|
887
|
-
export {
|
|
1031
|
+
export { isModelMakerId as $, aspectRatioOptionsByKind as A, autoAspectNeedsSourceImage as B, backgroundOptionsByKind as C, type DeclaredSeedanceTaskType as D, buildModelMenu as E, creditRangesAll as F, defaultResolutionFor as G, durationsByMode as H, IMAGE_GIF_FRAME_SIZE as I, fitAspectRatioToModel as J, getAspectRatioOptions as K, type LabeledOption as L, MASKLESS_OUTPUT_FORMATS as M, type NormalizedModelInput as N, getCreditRange as O, type PriceVariant as P, getDurationsForModel as Q, getModel as R, SEEDANCE_EDIT_REF_VIDEO_SEC as S, TRANSPARENT_OUTPUT_FORMATS as T, getQualityOptions as U, type ValidationField as V, getResolutionOptions as W, groupByFamily as X, groupByKindAndFamily as Y, hasFeature as Z, isAutoAspectToken as _, IMAGE_OUTPUT_FORMAT_LABELS as a, isVideoAutoAspectToken as a0, listModels as a1, maskEditMatchesSource as a2, maskedEditResolution as a3, modelIdsByKindMode as a4, modelMakerOf as a5, modelTakesSeed as a6, modelsWithFeature as a7, nearestCatalogAspectRatio as a8, normalizeModelInput as a9, normalizeVideoRequestParams as aa, outputFormatOptionsByKind as ab, qualityOptionsByKind as ac, resolutionAtAspectRatio as ad, resolutionNearestSource as ae, resolutionOptionsByKind as af, resolutionsAtAspectRatio as ag, sourceImageSizeNeeded as ah, svgLevelOptionsByKind as ai, validateModelInput as aj, videoAutoAspectRunsAt as ak, IMAGE_SVG_LEVEL_LABELS as b, MODEL_CATALOG as c, MODEL_INPUT_ADJUSTMENT_FIELDS as d, MODEL_KINDS as e, MODEL_MAKERS as f, MODEL_RECOMMENDATIONS as g, type ModelCatalogEntry as h, type ModelCatalogEntryFields as i, type ModelInputAdjustment as j, type ModelInputAdjustmentField as k, type ModelInputContext as l, type ModelKind as m, type ModelMaker as n, type ModelMakerId as o, type ModelMenuOption as p, type ModelMode as q, type ModelRecommendation as r, type ModelValidationIssue as s, type NormalizedVideoRequest as t, SEEDANCE_REFERENCE_TASK_TYPES as u, SPEECH_UNIT_PRICE_NOTE as v, type SeedanceReferenceTaskType as w, type SourceImageSize as x, type TtsCapabilities as y, type TtsSettingLever as z };
|