@nodaro/shared 3.31.0 → 3.33.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/README.md +17 -0
- package/dist/chunk-23FJQTEA.js +1604 -0
- package/dist/chunk-23FJQTEA.js.map +1 -0
- package/dist/chunk-2NIQO2J3.cjs +54 -0
- package/dist/chunk-2NIQO2J3.cjs.map +1 -0
- package/dist/chunk-2NQLSLSN.cjs +19 -0
- package/dist/chunk-2NQLSLSN.cjs.map +1 -0
- package/dist/chunk-2OJIVO7R.cjs +32 -0
- package/dist/chunk-2OJIVO7R.cjs.map +1 -0
- package/dist/chunk-2RF4Z7KG.cjs +803 -0
- package/dist/chunk-2RF4Z7KG.cjs.map +1 -0
- package/dist/chunk-3RYKIUAE.js +86 -0
- package/dist/chunk-3RYKIUAE.js.map +1 -0
- package/dist/chunk-44I73CQS.cjs +194 -0
- package/dist/chunk-44I73CQS.cjs.map +1 -0
- package/dist/chunk-5PC6JBGJ.cjs +1419 -0
- package/dist/chunk-5PC6JBGJ.cjs.map +1 -0
- package/dist/chunk-5RU2HCW2.js +30 -0
- package/dist/chunk-5RU2HCW2.js.map +1 -0
- package/dist/chunk-5RYLK3MQ.js +267 -0
- package/dist/chunk-5RYLK3MQ.js.map +1 -0
- package/dist/chunk-5THUHJ3E.js +46 -0
- package/dist/chunk-5THUHJ3E.js.map +1 -0
- package/dist/chunk-6DAWSVX2.cjs +103 -0
- package/dist/chunk-6DAWSVX2.cjs.map +1 -0
- package/dist/chunk-6WZ2VN7V.js +920 -0
- package/dist/chunk-6WZ2VN7V.js.map +1 -0
- package/dist/chunk-7G7G42KS.js +86 -0
- package/dist/chunk-7G7G42KS.js.map +1 -0
- package/dist/chunk-7Z5LUTGU.js +1567 -0
- package/dist/chunk-7Z5LUTGU.js.map +1 -0
- package/dist/chunk-AINCI23X.js +2171 -0
- package/dist/chunk-AINCI23X.js.map +1 -0
- package/dist/chunk-BG5D5CZ6.js +1922 -0
- package/dist/chunk-BG5D5CZ6.js.map +1 -0
- package/dist/chunk-CK3GK34R.js +1381 -0
- package/dist/chunk-CK3GK34R.js.map +1 -0
- package/dist/chunk-CUH22J4D.js +17 -0
- package/dist/chunk-CUH22J4D.js.map +1 -0
- package/dist/chunk-D26ENTN2.cjs +1770 -0
- package/dist/chunk-D26ENTN2.cjs.map +1 -0
- package/dist/chunk-D6GNRSCV.cjs +2017 -0
- package/dist/chunk-D6GNRSCV.cjs.map +1 -0
- package/dist/chunk-FBV5DF6D.js +95 -0
- package/dist/chunk-FBV5DF6D.js.map +1 -0
- package/dist/chunk-FG4E7MTG.cjs +4 -0
- package/dist/chunk-FG4E7MTG.cjs.map +1 -0
- package/dist/chunk-FT5CF6IA.js +42 -0
- package/dist/chunk-FT5CF6IA.js.map +1 -0
- package/dist/chunk-G6IIVKMO.js +26 -0
- package/dist/chunk-G6IIVKMO.js.map +1 -0
- package/dist/chunk-HC7VKIV5.cjs +430 -0
- package/dist/chunk-HC7VKIV5.cjs.map +1 -0
- package/dist/chunk-HGC5JNVA.cjs +1503 -0
- package/dist/chunk-HGC5JNVA.cjs.map +1 -0
- package/dist/chunk-HKFMXNVQ.cjs +1273 -0
- package/dist/chunk-HKFMXNVQ.cjs.map +1 -0
- package/dist/chunk-HRXEZ3SX.cjs +526 -0
- package/dist/chunk-HRXEZ3SX.cjs.map +1 -0
- package/dist/chunk-HSHCCBIV.js +255 -0
- package/dist/chunk-HSHCCBIV.js.map +1 -0
- package/dist/chunk-HUR6ZJ7S.cjs +159 -0
- package/dist/chunk-HUR6ZJ7S.cjs.map +1 -0
- package/dist/chunk-J7BMO73N.cjs +114 -0
- package/dist/chunk-J7BMO73N.cjs.map +1 -0
- package/dist/chunk-JFS3NWZ5.cjs +1714 -0
- package/dist/chunk-JFS3NWZ5.cjs.map +1 -0
- package/dist/chunk-JL4C5VJ7.cjs +488 -0
- package/dist/chunk-JL4C5VJ7.cjs.map +1 -0
- package/dist/chunk-JSGIEF6Z.cjs +1087 -0
- package/dist/chunk-JSGIEF6Z.cjs.map +1 -0
- package/dist/chunk-JWA5SGCS.js +203 -0
- package/dist/chunk-JWA5SGCS.js.map +1 -0
- package/dist/chunk-K3LLGRK7.cjs +3545 -0
- package/dist/chunk-K3LLGRK7.cjs.map +1 -0
- package/dist/chunk-KU6S7IYV.cjs +210 -0
- package/dist/chunk-KU6S7IYV.cjs.map +1 -0
- package/dist/chunk-M36G6SRP.js +447 -0
- package/dist/chunk-M36G6SRP.js.map +1 -0
- package/dist/chunk-M7GQBRZU.cjs +1963 -0
- package/dist/chunk-M7GQBRZU.cjs.map +1 -0
- package/dist/chunk-MRXGWL42.cjs +4 -0
- package/dist/chunk-MRXGWL42.cjs.map +1 -0
- package/dist/chunk-NEJ2PV4C.cjs +211 -0
- package/dist/chunk-NEJ2PV4C.cjs.map +1 -0
- package/dist/chunk-OTATNBMD.js +141 -0
- package/dist/chunk-OTATNBMD.js.map +1 -0
- package/dist/chunk-OZSACQ2V.js +471 -0
- package/dist/chunk-OZSACQ2V.js.map +1 -0
- package/dist/chunk-PHZ23DP3.js +1782 -0
- package/dist/chunk-PHZ23DP3.js.map +1 -0
- package/dist/chunk-PQHS255G.js +1369 -0
- package/dist/chunk-PQHS255G.js.map +1 -0
- package/dist/chunk-PRYE7AZQ.cjs +1227 -0
- package/dist/chunk-PRYE7AZQ.cjs.map +1 -0
- package/dist/chunk-PVJBAPYJ.js +404 -0
- package/dist/chunk-PVJBAPYJ.js.map +1 -0
- package/dist/chunk-PXFQVLBX.js +776 -0
- package/dist/chunk-PXFQVLBX.js.map +1 -0
- package/dist/chunk-QA3MVQ32.js +21 -0
- package/dist/chunk-QA3MVQ32.js.map +1 -0
- package/dist/chunk-QJRP44ZO.js +769 -0
- package/dist/chunk-QJRP44ZO.js.map +1 -0
- package/dist/chunk-SAW5OK36.cjs +54 -0
- package/dist/chunk-SAW5OK36.cjs.map +1 -0
- package/dist/chunk-SES6GDBQ.cjs +624 -0
- package/dist/chunk-SES6GDBQ.cjs.map +1 -0
- package/dist/chunk-SFW3UB2P.js +31 -0
- package/dist/chunk-SFW3UB2P.js.map +1 -0
- package/dist/chunk-TNPDV7I4.cjs +2346 -0
- package/dist/chunk-TNPDV7I4.cjs.map +1 -0
- package/dist/chunk-TU33KYKW.cjs +25 -0
- package/dist/chunk-TU33KYKW.cjs.map +1 -0
- package/dist/chunk-TZBIY5C3.js +187 -0
- package/dist/chunk-TZBIY5C3.js.map +1 -0
- package/dist/chunk-TZE673G6.js +3 -0
- package/dist/chunk-TZE673G6.js.map +1 -0
- package/dist/chunk-UCFWI6D4.js +29 -0
- package/dist/chunk-UCFWI6D4.js.map +1 -0
- package/dist/chunk-UTQSSKSG.js +1164 -0
- package/dist/chunk-UTQSSKSG.js.map +1 -0
- package/dist/chunk-VA42637J.cjs +287 -0
- package/dist/chunk-VA42637J.cjs.map +1 -0
- package/dist/chunk-VNQRI2RO.cjs +1047 -0
- package/dist/chunk-VNQRI2RO.cjs.map +1 -0
- package/dist/chunk-VXPLKQWY.cjs +821 -0
- package/dist/chunk-VXPLKQWY.cjs.map +1 -0
- package/dist/chunk-WD6HJRBG.cjs +197 -0
- package/dist/chunk-WD6HJRBG.cjs.map +1 -0
- package/dist/chunk-WDIBOWAA.js +1054 -0
- package/dist/chunk-WDIBOWAA.js.map +1 -0
- package/dist/chunk-WKOIGLQX.cjs +38 -0
- package/dist/chunk-WKOIGLQX.cjs.map +1 -0
- package/dist/chunk-WNVQ3SMB.cjs +96 -0
- package/dist/chunk-WNVQ3SMB.cjs.map +1 -0
- package/dist/chunk-WRSWH7US.cjs +285 -0
- package/dist/chunk-WRSWH7US.cjs.map +1 -0
- package/dist/chunk-XGFTL5XY.js +181 -0
- package/dist/chunk-XGFTL5XY.js.map +1 -0
- package/dist/chunk-XNISPHTZ.js +1039 -0
- package/dist/chunk-XNISPHTZ.js.map +1 -0
- package/dist/chunk-Y2PM3FFL.js +3 -0
- package/dist/chunk-Y2PM3FFL.js.map +1 -0
- package/dist/chunk-YBPBK5KI.js +1030 -0
- package/dist/chunk-YBPBK5KI.js.map +1 -0
- package/dist/chunk-YWNYGYI7.cjs +31 -0
- package/dist/chunk-YWNYGYI7.cjs.map +1 -0
- package/dist/chunk-YYV35XOS.js +122 -0
- package/dist/chunk-YYV35XOS.js.map +1 -0
- package/dist/chunk-Z2OL5AJD.cjs +133 -0
- package/dist/chunk-Z2OL5AJD.cjs.map +1 -0
- package/dist/chunk-ZDFHA2EC.js +572 -0
- package/dist/chunk-ZDFHA2EC.js.map +1 -0
- package/dist/chunk-ZL7UM6PU.cjs +34 -0
- package/dist/chunk-ZL7UM6PU.cjs.map +1 -0
- package/dist/chunk-ZNZDQAXN.js +175 -0
- package/dist/chunk-ZNZDQAXN.js.map +1 -0
- package/dist/chunk-ZO5PBBFX.js +3497 -0
- package/dist/chunk-ZO5PBBFX.js.map +1 -0
- package/dist/chunk-ZRL2UFTH.cjs +1073 -0
- package/dist/chunk-ZRL2UFTH.cjs.map +1 -0
- package/dist/entries/apps.cjs +155 -0
- package/dist/entries/apps.cjs.map +1 -0
- package/dist/entries/apps.d.cts +292 -0
- package/dist/entries/apps.d.ts +292 -0
- package/dist/entries/apps.js +10 -0
- package/dist/entries/apps.js.map +1 -0
- package/dist/entries/captions.cjs +124 -0
- package/dist/entries/captions.cjs.map +1 -0
- package/dist/entries/captions.d.cts +354 -0
- package/dist/entries/captions.d.ts +354 -0
- package/dist/entries/captions.js +3 -0
- package/dist/entries/captions.js.map +1 -0
- package/dist/entries/catalogs.cjs +165 -0
- package/dist/entries/catalogs.cjs.map +1 -0
- package/dist/entries/catalogs.d.cts +385 -0
- package/dist/entries/catalogs.d.ts +385 -0
- package/dist/entries/catalogs.js +4 -0
- package/dist/entries/catalogs.js.map +1 -0
- package/dist/entries/credits.cjs +596 -0
- package/dist/entries/credits.cjs.map +1 -0
- package/dist/entries/credits.d.cts +1460 -0
- package/dist/entries/credits.d.ts +1460 -0
- package/dist/entries/credits.js +11 -0
- package/dist/entries/credits.js.map +1 -0
- package/dist/entries/edl.cjs +409 -0
- package/dist/entries/edl.cjs.map +1 -0
- package/dist/entries/edl.d.cts +1199 -0
- package/dist/entries/edl.d.ts +1199 -0
- package/dist/entries/edl.js +4 -0
- package/dist/entries/edl.js.map +1 -0
- package/dist/entries/entities.cjs +530 -0
- package/dist/entries/entities.cjs.map +1 -0
- package/dist/entries/entities.d.cts +1371 -0
- package/dist/entries/entities.d.ts +1371 -0
- package/dist/entries/entities.js +5 -0
- package/dist/entries/entities.js.map +1 -0
- package/dist/entries/i18n.cjs +48 -0
- package/dist/entries/i18n.cjs.map +1 -0
- package/dist/entries/i18n.d.cts +69 -0
- package/dist/entries/i18n.d.ts +69 -0
- package/dist/entries/i18n.js +3 -0
- package/dist/entries/i18n.js.map +1 -0
- package/dist/entries/llm-models.cjs +177 -0
- package/dist/entries/llm-models.cjs.map +1 -0
- package/dist/entries/llm-models.d.cts +435 -0
- package/dist/entries/llm-models.d.ts +435 -0
- package/dist/entries/llm-models.js +4 -0
- package/dist/entries/llm-models.js.map +1 -0
- package/dist/entries/media.cjs +335 -0
- package/dist/entries/media.cjs.map +1 -0
- package/dist/entries/media.d.cts +518 -0
- package/dist/entries/media.d.ts +518 -0
- package/dist/entries/media.js +6 -0
- package/dist/entries/media.js.map +1 -0
- package/dist/entries/model-catalog.cjs +259 -0
- package/dist/entries/model-catalog.cjs.map +1 -0
- package/dist/entries/model-catalog.d.cts +202 -0
- package/dist/entries/model-catalog.d.ts +202 -0
- package/dist/entries/model-catalog.js +6 -0
- package/dist/entries/model-catalog.js.map +1 -0
- package/dist/entries/models.cjs +833 -0
- package/dist/entries/models.cjs.map +1 -0
- package/dist/entries/models.d.cts +287 -0
- package/dist/entries/models.d.ts +287 -0
- package/dist/entries/models.js +8 -0
- package/dist/entries/models.js.map +1 -0
- package/dist/entries/nodes.cjs +789 -0
- package/dist/entries/nodes.cjs.map +1 -0
- package/dist/entries/nodes.d.cts +1600 -0
- package/dist/entries/nodes.d.ts +1600 -0
- package/dist/entries/nodes.js +16 -0
- package/dist/entries/nodes.js.map +1 -0
- package/dist/entries/organizations.cjs +80 -0
- package/dist/entries/organizations.cjs.map +1 -0
- package/dist/entries/organizations.d.cts +466 -0
- package/dist/entries/organizations.d.ts +466 -0
- package/dist/entries/organizations.js +3 -0
- package/dist/entries/organizations.js.map +1 -0
- package/dist/entries/pipeline.cjs +594 -0
- package/dist/entries/pipeline.cjs.map +1 -0
- package/dist/entries/pipeline.d.cts +2617 -0
- package/dist/entries/pipeline.d.ts +2617 -0
- package/dist/entries/pipeline.js +5 -0
- package/dist/entries/pipeline.js.map +1 -0
- package/dist/entries/scene3d.cjs +704 -0
- package/dist/entries/scene3d.cjs.map +1 -0
- package/dist/entries/scene3d.d.cts +4284 -0
- package/dist/entries/scene3d.d.ts +4284 -0
- package/dist/entries/scene3d.js +3 -0
- package/dist/entries/scene3d.js.map +1 -0
- package/dist/entries/social.cjs +714 -0
- package/dist/entries/social.cjs.map +1 -0
- package/dist/entries/social.d.cts +1366 -0
- package/dist/entries/social.d.ts +1366 -0
- package/dist/entries/social.js +5 -0
- package/dist/entries/social.js.map +1 -0
- package/dist/entries/types.cjs +13 -0
- package/dist/entries/types.cjs.map +1 -0
- package/dist/entries/types.d.cts +162 -0
- package/dist/entries/types.d.ts +162 -0
- package/dist/entries/types.js +4 -0
- package/dist/entries/types.js.map +1 -0
- package/dist/entries/ugc.cjs +279 -0
- package/dist/entries/ugc.cjs.map +1 -0
- package/dist/entries/ugc.d.cts +575 -0
- package/dist/entries/ugc.d.ts +575 -0
- package/dist/entries/ugc.js +6 -0
- package/dist/entries/ugc.js.map +1 -0
- package/dist/entries/video.cjs +549 -0
- package/dist/entries/video.cjs.map +1 -0
- package/dist/entries/video.d.cts +1791 -0
- package/dist/entries/video.d.ts +1791 -0
- package/dist/entries/video.js +8 -0
- package/dist/entries/video.js.map +1 -0
- package/dist/entries/workflow.cjs +574 -0
- package/dist/entries/workflow.cjs.map +1 -0
- package/dist/entries/workflow.d.cts +1743 -0
- package/dist/entries/workflow.d.ts +1743 -0
- package/dist/entries/workflow.js +5 -0
- package/dist/entries/workflow.js.map +1 -0
- package/dist/fan-out-meta-Bu6VyXcZ.d.cts +19 -0
- package/dist/fan-out-meta-Bu6VyXcZ.d.ts +19 -0
- package/dist/gemini-omni-voices-zeRXxSbZ.d.cts +174 -0
- package/dist/gemini-omni-voices-zeRXxSbZ.d.ts +174 -0
- package/dist/image-overlay-layers-CyBfRhxJ.d.cts +208 -0
- package/dist/image-overlay-layers-CyBfRhxJ.d.ts +208 -0
- package/dist/index.cjs +7747 -27084
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +32 -24198
- package/dist/index.d.ts +32 -24198
- package/dist/index.js +40 -25220
- package/dist/index.js.map +1 -1
- package/dist/model-catalog-V-ZNzRSd.d.cts +651 -0
- package/dist/model-catalog-V-ZNzRSd.d.ts +651 -0
- package/dist/presentation-types-0ENOCjoj.d.cts +61 -0
- package/dist/presentation-types-0ENOCjoj.d.ts +61 -0
- package/dist/presentation-utils-D0kxsWf9.d.cts +92 -0
- package/dist/presentation-utils-pZwlEAzo.d.ts +92 -0
- package/dist/scene-node-types-C3kl_zyK.d.cts +1949 -0
- package/dist/scene-node-types-C3kl_zyK.d.ts +1949 -0
- package/dist/supported-fonts-CRoF1gOy.d.cts +16 -0
- package/dist/supported-fonts-CRoF1gOy.d.ts +16 -0
- package/dist/types-BRlFPEru.d.cts +511 -0
- package/dist/types-BRlFPEru.d.ts +511 -0
- package/dist/types-DffyGSy5.d.cts +67 -0
- package/dist/types-DffyGSy5.d.ts +67 -0
- package/package.json +102 -1
- package/src/__tests__/add-captions-plan.test.ts +6 -2
- package/src/__tests__/caption-edge-dash.test.ts +23 -0
- package/src/__tests__/fixtures/root-exports.baseline.json +4625 -0
- package/src/__tests__/input-field-extra-keys.test.ts +1 -0
- package/src/__tests__/model-makers.test.ts +76 -0
- package/src/__tests__/no-internal-imports.test.ts +1 -1
- package/src/__tests__/node-aspect-ratio.test.ts +25 -0
- package/src/__tests__/node-runtime-keys.test.ts +9 -0
- package/src/__tests__/package-entries.test.ts +50 -0
- package/src/__tests__/pitch-tempo-pricing.test.ts +21 -0
- package/src/__tests__/presentation-utils.test.ts +15 -0
- package/src/__tests__/preview-gate-use-case.test.ts +151 -0
- package/src/__tests__/private-host.test.ts +53 -0
- package/src/__tests__/run-continuation.test.ts +7 -1
- package/src/__tests__/site-capture-node.test.ts +58 -0
- package/src/__tests__/ugc-lane-wires.test.ts +228 -0
- package/src/__tests__/ugc-node-wires.test.ts +9 -3
- package/src/__tests__/ugc-run-state.test.ts +5 -4
- package/src/__tests__/video-analysis-catalog-sync.test.ts +1 -1
- package/src/__tests__/video-analysis-pricing.test.ts +6 -6
- package/src/__tests__/voice-changer-pro-quote.test.ts +79 -0
- package/src/add-captions-plan.ts +9 -3
- package/src/caption-edge-dash.ts +33 -0
- package/src/component-types.ts +9 -0
- package/src/credit-estimators/index.ts +22 -1
- package/src/credit-estimators/pitch-tempo.ts +15 -1
- package/src/credit-estimators/speech.ts +72 -4
- package/src/credit-estimators/unit-quote.ts +52 -0
- package/src/credit-estimators/video-sfx.ts +15 -0
- package/src/credit-estimators/voice-changer-pro-quote.ts +138 -0
- package/src/credit-identifiers.ts +62 -17
- package/src/entity-image-handle.ts +2 -0
- package/src/entries/apps.ts +63 -0
- package/src/entries/captions.ts +34 -0
- package/src/entries/catalogs.ts +65 -0
- package/src/entries/credits.ts +105 -0
- package/src/entries/edl.ts +42 -0
- package/src/entries/entities.ts +144 -0
- package/src/entries/i18n.ts +31 -0
- package/src/entries/llm-models.ts +63 -0
- package/src/entries/media.ts +36 -0
- package/src/entries/model-catalog.ts +95 -0
- package/src/entries/models.ts +266 -0
- package/src/entries/nodes.ts +245 -0
- package/src/entries/organizations.ts +9 -0
- package/src/entries/pipeline.ts +43 -0
- package/src/entries/scene3d.ts +27 -0
- package/src/entries/social.ts +297 -0
- package/src/entries/types.ts +26 -0
- package/src/entries/ugc.ts +14 -0
- package/src/entries/video.ts +59 -0
- package/src/entries/workflow.ts +172 -0
- package/src/fan-out-rows.ts +2 -0
- package/src/index.ts +25 -1845
- package/src/json-kinds.ts +4 -0
- package/src/model-catalog.ts +243 -34
- package/src/node-mappable-fields.ts +1 -0
- package/src/node-run-routes.ts +2 -0
- package/src/node-runtime-keys.ts +8 -0
- package/src/normalize-node-params.ts +30 -0
- package/src/presentation-utils.ts +12 -0
- package/src/preview-gate.ts +92 -14
- package/src/private-host.ts +89 -59
- package/src/producer-types.ts +16 -2
- package/src/run-continuation.ts +21 -0
- package/src/site-capture-node.ts +82 -0
- package/src/ugc-lane-wires.ts +246 -0
- package/src/ugc-node-wires.ts +37 -7
- package/src/ugc-run-state.ts +5 -3
- package/src/video-analysis-pricing.ts +31 -29
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk2NQLSLSN_cjs = require('../chunk-2NQLSLSN.cjs');
|
|
4
|
+
var chunkZL7UM6PU_cjs = require('../chunk-ZL7UM6PU.cjs');
|
|
5
|
+
var chunkSAW5OK36_cjs = require('../chunk-SAW5OK36.cjs');
|
|
6
|
+
var chunkK3LLGRK7_cjs = require('../chunk-K3LLGRK7.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Object.defineProperty(exports, "safetyRetryPolicy", {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () { return chunk2NQLSLSN_cjs.safetyRetryPolicy; }
|
|
13
|
+
});
|
|
14
|
+
Object.defineProperty(exports, "IMAGE_MODEL_RATIO_FALLBACKS", {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () { return chunkZL7UM6PU_cjs.IMAGE_MODEL_RATIO_FALLBACKS; }
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "IMAGE_MODEL_ROLE_DEFAULTS", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () { return chunkZL7UM6PU_cjs.IMAGE_MODEL_ROLE_DEFAULTS; }
|
|
21
|
+
});
|
|
22
|
+
Object.defineProperty(exports, "defaultImageModel", {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
get: function () { return chunkZL7UM6PU_cjs.defaultImageModel; }
|
|
25
|
+
});
|
|
26
|
+
Object.defineProperty(exports, "imageModelDrawsRatio", {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
get: function () { return chunkZL7UM6PU_cjs.imageModelDrawsRatio; }
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "TTS_FALLBACK_PROVIDER", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () { return chunkSAW5OK36_cjs.TTS_FALLBACK_PROVIDER; }
|
|
33
|
+
});
|
|
34
|
+
Object.defineProperty(exports, "TTS_PROVIDER_ALIASES", {
|
|
35
|
+
enumerable: true,
|
|
36
|
+
get: function () { return chunkSAW5OK36_cjs.TTS_PROVIDER_ALIASES; }
|
|
37
|
+
});
|
|
38
|
+
Object.defineProperty(exports, "canonicalTtsProvider", {
|
|
39
|
+
enumerable: true,
|
|
40
|
+
get: function () { return chunkSAW5OK36_cjs.canonicalTtsProvider; }
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "getTtsCapabilities", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function () { return chunkSAW5OK36_cjs.getTtsCapabilities; }
|
|
45
|
+
});
|
|
46
|
+
Object.defineProperty(exports, "ttsHasLever", {
|
|
47
|
+
enumerable: true,
|
|
48
|
+
get: function () { return chunkSAW5OK36_cjs.ttsHasLever; }
|
|
49
|
+
});
|
|
50
|
+
Object.defineProperty(exports, "ttsLanguageCodes", {
|
|
51
|
+
enumerable: true,
|
|
52
|
+
get: function () { return chunkSAW5OK36_cjs.ttsLanguageCodes; }
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(exports, "ttsSupportsAudioTags", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function () { return chunkSAW5OK36_cjs.ttsSupportsAudioTags; }
|
|
57
|
+
});
|
|
58
|
+
Object.defineProperty(exports, "ttsSupportsSsmlBreaks", {
|
|
59
|
+
enumerable: true,
|
|
60
|
+
get: function () { return chunkSAW5OK36_cjs.ttsSupportsSsmlBreaks; }
|
|
61
|
+
});
|
|
62
|
+
Object.defineProperty(exports, "ttsSupportsStitching", {
|
|
63
|
+
enumerable: true,
|
|
64
|
+
get: function () { return chunkSAW5OK36_cjs.ttsSupportsStitching; }
|
|
65
|
+
});
|
|
66
|
+
Object.defineProperty(exports, "ttsSupportsTimestamps", {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function () { return chunkSAW5OK36_cjs.ttsSupportsTimestamps; }
|
|
69
|
+
});
|
|
70
|
+
Object.defineProperty(exports, "FLUX2_RES_MP", {
|
|
71
|
+
enumerable: true,
|
|
72
|
+
get: function () { return chunkK3LLGRK7_cjs.FLUX2_RES_MP; }
|
|
73
|
+
});
|
|
74
|
+
Object.defineProperty(exports, "MODEL_CATALOG", {
|
|
75
|
+
enumerable: true,
|
|
76
|
+
get: function () { return chunkK3LLGRK7_cjs.MODEL_CATALOG; }
|
|
77
|
+
});
|
|
78
|
+
Object.defineProperty(exports, "MODEL_KINDS", {
|
|
79
|
+
enumerable: true,
|
|
80
|
+
get: function () { return chunkK3LLGRK7_cjs.MODEL_KINDS; }
|
|
81
|
+
});
|
|
82
|
+
Object.defineProperty(exports, "MODEL_MAKERS", {
|
|
83
|
+
enumerable: true,
|
|
84
|
+
get: function () { return chunkK3LLGRK7_cjs.MODEL_MAKERS; }
|
|
85
|
+
});
|
|
86
|
+
Object.defineProperty(exports, "MODEL_RECOMMENDATIONS", {
|
|
87
|
+
enumerable: true,
|
|
88
|
+
get: function () { return chunkK3LLGRK7_cjs.MODEL_RECOMMENDATIONS; }
|
|
89
|
+
});
|
|
90
|
+
Object.defineProperty(exports, "SEEDANCE_DRAFT_FINALIZE_MAX_SEC", {
|
|
91
|
+
enumerable: true,
|
|
92
|
+
get: function () { return chunkK3LLGRK7_cjs.SEEDANCE_DRAFT_FINALIZE_MAX_SEC; }
|
|
93
|
+
});
|
|
94
|
+
Object.defineProperty(exports, "SEEDANCE_DRAFT_FINALIZE_MIN_SEC", {
|
|
95
|
+
enumerable: true,
|
|
96
|
+
get: function () { return chunkK3LLGRK7_cjs.SEEDANCE_DRAFT_FINALIZE_MIN_SEC; }
|
|
97
|
+
});
|
|
98
|
+
Object.defineProperty(exports, "SEEDANCE_DRAFT_FINALIZE_PROVIDER", {
|
|
99
|
+
enumerable: true,
|
|
100
|
+
get: function () { return chunkK3LLGRK7_cjs.SEEDANCE_DRAFT_FINALIZE_PROVIDER; }
|
|
101
|
+
});
|
|
102
|
+
Object.defineProperty(exports, "SEEDANCE_DRAFT_FINALIZE_RESOLUTION", {
|
|
103
|
+
enumerable: true,
|
|
104
|
+
get: function () { return chunkK3LLGRK7_cjs.SEEDANCE_DRAFT_FINALIZE_RESOLUTION; }
|
|
105
|
+
});
|
|
106
|
+
Object.defineProperty(exports, "SEEDANCE_DRAFT_MODELS", {
|
|
107
|
+
enumerable: true,
|
|
108
|
+
get: function () { return chunkK3LLGRK7_cjs.SEEDANCE_DRAFT_MODELS; }
|
|
109
|
+
});
|
|
110
|
+
Object.defineProperty(exports, "SEEDANCE_DRAFT_RESOLUTION", {
|
|
111
|
+
enumerable: true,
|
|
112
|
+
get: function () { return chunkK3LLGRK7_cjs.SEEDANCE_DRAFT_RESOLUTION; }
|
|
113
|
+
});
|
|
114
|
+
Object.defineProperty(exports, "SPEECH_UNIT_PRICE_NOTE", {
|
|
115
|
+
enumerable: true,
|
|
116
|
+
get: function () { return chunkK3LLGRK7_cjs.SPEECH_UNIT_PRICE_NOTE; }
|
|
117
|
+
});
|
|
118
|
+
Object.defineProperty(exports, "VIDEO_DURATION_AUTO", {
|
|
119
|
+
enumerable: true,
|
|
120
|
+
get: function () { return chunkK3LLGRK7_cjs.VIDEO_DURATION_AUTO; }
|
|
121
|
+
});
|
|
122
|
+
Object.defineProperty(exports, "aspectRatioOptionsByKind", {
|
|
123
|
+
enumerable: true,
|
|
124
|
+
get: function () { return chunkK3LLGRK7_cjs.aspectRatioOptionsByKind; }
|
|
125
|
+
});
|
|
126
|
+
Object.defineProperty(exports, "autoAspectNeedsSourceImage", {
|
|
127
|
+
enumerable: true,
|
|
128
|
+
get: function () { return chunkK3LLGRK7_cjs.autoAspectNeedsSourceImage; }
|
|
129
|
+
});
|
|
130
|
+
Object.defineProperty(exports, "buildModelMenu", {
|
|
131
|
+
enumerable: true,
|
|
132
|
+
get: function () { return chunkK3LLGRK7_cjs.buildModelMenu; }
|
|
133
|
+
});
|
|
134
|
+
Object.defineProperty(exports, "creditRangesAll", {
|
|
135
|
+
enumerable: true,
|
|
136
|
+
get: function () { return chunkK3LLGRK7_cjs.creditRangesAll; }
|
|
137
|
+
});
|
|
138
|
+
Object.defineProperty(exports, "defaultResolutionFor", {
|
|
139
|
+
enumerable: true,
|
|
140
|
+
get: function () { return chunkK3LLGRK7_cjs.defaultResolutionFor; }
|
|
141
|
+
});
|
|
142
|
+
Object.defineProperty(exports, "durationsByMode", {
|
|
143
|
+
enumerable: true,
|
|
144
|
+
get: function () { return chunkK3LLGRK7_cjs.durationsByMode; }
|
|
145
|
+
});
|
|
146
|
+
Object.defineProperty(exports, "fitAspectRatioToModel", {
|
|
147
|
+
enumerable: true,
|
|
148
|
+
get: function () { return chunkK3LLGRK7_cjs.fitAspectRatioToModel; }
|
|
149
|
+
});
|
|
150
|
+
Object.defineProperty(exports, "getAspectRatioOptions", {
|
|
151
|
+
enumerable: true,
|
|
152
|
+
get: function () { return chunkK3LLGRK7_cjs.getAspectRatioOptions; }
|
|
153
|
+
});
|
|
154
|
+
Object.defineProperty(exports, "getCreditRange", {
|
|
155
|
+
enumerable: true,
|
|
156
|
+
get: function () { return chunkK3LLGRK7_cjs.getCreditRange; }
|
|
157
|
+
});
|
|
158
|
+
Object.defineProperty(exports, "getDurationsForModel", {
|
|
159
|
+
enumerable: true,
|
|
160
|
+
get: function () { return chunkK3LLGRK7_cjs.getDurationsForModel; }
|
|
161
|
+
});
|
|
162
|
+
Object.defineProperty(exports, "getModel", {
|
|
163
|
+
enumerable: true,
|
|
164
|
+
get: function () { return chunkK3LLGRK7_cjs.getModel; }
|
|
165
|
+
});
|
|
166
|
+
Object.defineProperty(exports, "getQualityOptions", {
|
|
167
|
+
enumerable: true,
|
|
168
|
+
get: function () { return chunkK3LLGRK7_cjs.getQualityOptions; }
|
|
169
|
+
});
|
|
170
|
+
Object.defineProperty(exports, "getResolutionOptions", {
|
|
171
|
+
enumerable: true,
|
|
172
|
+
get: function () { return chunkK3LLGRK7_cjs.getResolutionOptions; }
|
|
173
|
+
});
|
|
174
|
+
Object.defineProperty(exports, "groupByFamily", {
|
|
175
|
+
enumerable: true,
|
|
176
|
+
get: function () { return chunkK3LLGRK7_cjs.groupByFamily; }
|
|
177
|
+
});
|
|
178
|
+
Object.defineProperty(exports, "groupByKindAndFamily", {
|
|
179
|
+
enumerable: true,
|
|
180
|
+
get: function () { return chunkK3LLGRK7_cjs.groupByKindAndFamily; }
|
|
181
|
+
});
|
|
182
|
+
Object.defineProperty(exports, "hasFeature", {
|
|
183
|
+
enumerable: true,
|
|
184
|
+
get: function () { return chunkK3LLGRK7_cjs.hasFeature; }
|
|
185
|
+
});
|
|
186
|
+
Object.defineProperty(exports, "isAutoAspectToken", {
|
|
187
|
+
enumerable: true,
|
|
188
|
+
get: function () { return chunkK3LLGRK7_cjs.isAutoAspectToken; }
|
|
189
|
+
});
|
|
190
|
+
Object.defineProperty(exports, "isAutoVideoDuration", {
|
|
191
|
+
enumerable: true,
|
|
192
|
+
get: function () { return chunkK3LLGRK7_cjs.isAutoVideoDuration; }
|
|
193
|
+
});
|
|
194
|
+
Object.defineProperty(exports, "isFlux2Model", {
|
|
195
|
+
enumerable: true,
|
|
196
|
+
get: function () { return chunkK3LLGRK7_cjs.isFlux2Model; }
|
|
197
|
+
});
|
|
198
|
+
Object.defineProperty(exports, "isModelMakerId", {
|
|
199
|
+
enumerable: true,
|
|
200
|
+
get: function () { return chunkK3LLGRK7_cjs.isModelMakerId; }
|
|
201
|
+
});
|
|
202
|
+
Object.defineProperty(exports, "isSeedanceDraftCapable", {
|
|
203
|
+
enumerable: true,
|
|
204
|
+
get: function () { return chunkK3LLGRK7_cjs.isSeedanceDraftCapable; }
|
|
205
|
+
});
|
|
206
|
+
Object.defineProperty(exports, "listModels", {
|
|
207
|
+
enumerable: true,
|
|
208
|
+
get: function () { return chunkK3LLGRK7_cjs.listModels; }
|
|
209
|
+
});
|
|
210
|
+
Object.defineProperty(exports, "modelIdsByKindMode", {
|
|
211
|
+
enumerable: true,
|
|
212
|
+
get: function () { return chunkK3LLGRK7_cjs.modelIdsByKindMode; }
|
|
213
|
+
});
|
|
214
|
+
Object.defineProperty(exports, "modelMakerOf", {
|
|
215
|
+
enumerable: true,
|
|
216
|
+
get: function () { return chunkK3LLGRK7_cjs.modelMakerOf; }
|
|
217
|
+
});
|
|
218
|
+
Object.defineProperty(exports, "modelTakesSeed", {
|
|
219
|
+
enumerable: true,
|
|
220
|
+
get: function () { return chunkK3LLGRK7_cjs.modelTakesSeed; }
|
|
221
|
+
});
|
|
222
|
+
Object.defineProperty(exports, "modelsWithFeature", {
|
|
223
|
+
enumerable: true,
|
|
224
|
+
get: function () { return chunkK3LLGRK7_cjs.modelsWithFeature; }
|
|
225
|
+
});
|
|
226
|
+
Object.defineProperty(exports, "nearestCatalogAspectRatio", {
|
|
227
|
+
enumerable: true,
|
|
228
|
+
get: function () { return chunkK3LLGRK7_cjs.nearestCatalogAspectRatio; }
|
|
229
|
+
});
|
|
230
|
+
Object.defineProperty(exports, "normalizeModelInput", {
|
|
231
|
+
enumerable: true,
|
|
232
|
+
get: function () { return chunkK3LLGRK7_cjs.normalizeModelInput; }
|
|
233
|
+
});
|
|
234
|
+
Object.defineProperty(exports, "normalizeVideoRequestParams", {
|
|
235
|
+
enumerable: true,
|
|
236
|
+
get: function () { return chunkK3LLGRK7_cjs.normalizeVideoRequestParams; }
|
|
237
|
+
});
|
|
238
|
+
Object.defineProperty(exports, "qualityOptionsByKind", {
|
|
239
|
+
enumerable: true,
|
|
240
|
+
get: function () { return chunkK3LLGRK7_cjs.qualityOptionsByKind; }
|
|
241
|
+
});
|
|
242
|
+
Object.defineProperty(exports, "resolutionOptionsByKind", {
|
|
243
|
+
enumerable: true,
|
|
244
|
+
get: function () { return chunkK3LLGRK7_cjs.resolutionOptionsByKind; }
|
|
245
|
+
});
|
|
246
|
+
Object.defineProperty(exports, "seedanceDraftFinalizeBillableSec", {
|
|
247
|
+
enumerable: true,
|
|
248
|
+
get: function () { return chunkK3LLGRK7_cjs.seedanceDraftFinalizeBillableSec; }
|
|
249
|
+
});
|
|
250
|
+
Object.defineProperty(exports, "seedanceDraftFinalizeCreditId", {
|
|
251
|
+
enumerable: true,
|
|
252
|
+
get: function () { return chunkK3LLGRK7_cjs.seedanceDraftFinalizeCreditId; }
|
|
253
|
+
});
|
|
254
|
+
Object.defineProperty(exports, "validateModelInput", {
|
|
255
|
+
enumerable: true,
|
|
256
|
+
get: function () { return chunkK3LLGRK7_cjs.validateModelInput; }
|
|
257
|
+
});
|
|
258
|
+
//# sourceMappingURL=model-catalog.cjs.map
|
|
259
|
+
//# sourceMappingURL=model-catalog.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"model-catalog.cjs"}
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import { T as TtsCapabilities, p as TtsSettingLever } from '../model-catalog-V-ZNzRSd.cjs';
|
|
2
|
+
export { L as LabeledOption, M as MODEL_CATALOG, a as MODEL_KINDS, b as MODEL_MAKERS, c as MODEL_RECOMMENDATIONS, d as ModelCatalogEntry, e as ModelInputAdjustment, f as ModelInputContext, g as ModelKind, h as ModelMaker, i as ModelMakerId, j as ModelMenuOption, k as ModelMode, l as ModelRecommendation, m as ModelValidationIssue, N as NormalizedModelInput, n as NormalizedVideoRequest, P as PriceVariant, S as SPEECH_UNIT_PRICE_NOTE, o as SourceImageSize, V as ValidationField, q as aspectRatioOptionsByKind, r as autoAspectNeedsSourceImage, s as buildModelMenu, t as creditRangesAll, u as defaultResolutionFor, v as durationsByMode, w as fitAspectRatioToModel, x as getAspectRatioOptions, y as getCreditRange, z as getDurationsForModel, A as getModel, B as getQualityOptions, C as getResolutionOptions, D as groupByFamily, E as groupByKindAndFamily, F as hasFeature, G as isAutoAspectToken, H as isModelMakerId, I as listModels, J as modelIdsByKindMode, K as modelMakerOf, O as modelTakesSeed, Q as modelsWithFeature, R as nearestCatalogAspectRatio, U as normalizeModelInput, W as normalizeVideoRequestParams, X as qualityOptionsByKind, Y as resolutionOptionsByKind, Z as validateModelInput } from '../model-catalog-V-ZNzRSd.cjs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Seedance 2.5 Draft mode — the single source of truth for which models offer a
|
|
6
|
+
* draft, what a draft renders at, and how its 1080p finalize is priced.
|
|
7
|
+
*
|
|
8
|
+
* A DRAFT is an ordinary Seedance 2.5 run with the provider's draft flag set: it
|
|
9
|
+
* renders at 480p only and costs exactly what a normal 480p run of the same
|
|
10
|
+
* shape costs. The FINALIZE ("Seedance 2.5 HD (from draft)", a Video Upscale
|
|
11
|
+
* provider) re-renders that same take — same seed, prompt, references and
|
|
12
|
+
* timing — at 1080p, frame for frame, at the draft's own length. Nothing
|
|
13
|
+
* creative is re-sent: the finalize names the draft's provider task and nothing
|
|
14
|
+
* else.
|
|
15
|
+
*
|
|
16
|
+
* Every surface (generation routes, the workflow engine, MCP, the editor's
|
|
17
|
+
* toggle) gates on {@link isSeedanceDraftCapable}; never hand-list the model.
|
|
18
|
+
*/
|
|
19
|
+
/** Models that accept the draft flag. */
|
|
20
|
+
declare const SEEDANCE_DRAFT_MODELS: readonly ["seedance-2-5"];
|
|
21
|
+
type SeedanceDraftModel = typeof SEEDANCE_DRAFT_MODELS[number];
|
|
22
|
+
declare function isSeedanceDraftCapable(provider: string | undefined): provider is SeedanceDraftModel;
|
|
23
|
+
/** The only resolution a draft renders at. Any other value is coerced to it. */
|
|
24
|
+
declare const SEEDANCE_DRAFT_RESOLUTION = "480p";
|
|
25
|
+
/** The Video Upscale provider that finalizes a draft. */
|
|
26
|
+
declare const SEEDANCE_DRAFT_FINALIZE_PROVIDER = "seedance-2-5-hd";
|
|
27
|
+
/** The only resolution a finalize renders at. */
|
|
28
|
+
declare const SEEDANCE_DRAFT_FINALIZE_RESOLUTION = "1080p";
|
|
29
|
+
/** Shortest / longest output the finalize price ladder is seeded for. */
|
|
30
|
+
declare const SEEDANCE_DRAFT_FINALIZE_MIN_SEC = 4;
|
|
31
|
+
declare const SEEDANCE_DRAFT_FINALIZE_MAX_SEC = 30;
|
|
32
|
+
/**
|
|
33
|
+
* Whole seconds the finalize bills for a measured draft length.
|
|
34
|
+
*
|
|
35
|
+
* A container reports a hair over the nominal length (4.04 s for a 4 s clip), so
|
|
36
|
+
* the seconds round UP only past a quarter second — the same rule the Seedance
|
|
37
|
+
* auto-duration settlement uses — and land on the seeded ladder (4–30 s).
|
|
38
|
+
*/
|
|
39
|
+
declare function seedanceDraftFinalizeBillableSec(measuredSec: number): number;
|
|
40
|
+
/**
|
|
41
|
+
* The credit identifier a finalize reserves under.
|
|
42
|
+
*
|
|
43
|
+
* Same encoding as the Seedance 2.5 generation ladder: one row per OUTPUT second
|
|
44
|
+
* (`seedance-2-5-hd:{N}s`), and a `-ref` twin for a draft that had a reference
|
|
45
|
+
* VIDEO. As on the generation lane, the `-ref` row encodes the per-second rate
|
|
46
|
+
* only; a reference run bills `rate × (input + output)` seconds, which the
|
|
47
|
+
* reservation computes from the 8 s `-ref` row (see the backend's
|
|
48
|
+
* `seedanceDraftFinalizeRefBaseCredits`). Reference IMAGES do not change the
|
|
49
|
+
* rate — only a reference video does.
|
|
50
|
+
*/
|
|
51
|
+
declare function seedanceDraftFinalizeCreditId(durationSec: number, hasRefVideo: boolean): string;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Model-id enum + UI resolution options for Replicate Flux 2 image models.
|
|
55
|
+
*
|
|
56
|
+
* The provider-$ rate table and the cost/credit FORMULAS derived from it live
|
|
57
|
+
* in `backend/src/lib/pricing/flux2-cost.ts` (core, not ee/ — the Replicate
|
|
58
|
+
* provider integration needs them regardless of edition). They were moved
|
|
59
|
+
* out of this package (published Apache-2.0 on npm — an irrevocable grant)
|
|
60
|
+
* per the 2026-07-06 public-flip IP audit, S5.
|
|
61
|
+
*/
|
|
62
|
+
type Flux2Model = "flux-2-klein" | "flux-2-pro" | "flux-2-max";
|
|
63
|
+
/** Megapixel tiers offered in the UI (strings; the value space for data.resolution). */
|
|
64
|
+
declare const FLUX2_RES_MP: readonly ["0.5", "1", "2", "4"];
|
|
65
|
+
declare function isFlux2Model(m: string): m is Flux2Model;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Capability lookups for the text-to-speech lane.
|
|
69
|
+
*
|
|
70
|
+
* Every "does this model do X" decision on that lane reads the model's `tts`
|
|
71
|
+
* sheet in `MODEL_CATALOG` through these helpers — tag stripping, which voice
|
|
72
|
+
* settings are sent and shown, the language picker, whether neighbouring text
|
|
73
|
+
* is sent. Declare the sheet honestly
|
|
74
|
+
* on the catalog entry and a new model is covered everywhere; do not compare a
|
|
75
|
+
* provider id by hand.
|
|
76
|
+
*
|
|
77
|
+
* "The text-to-speech lane" means the models that list the `tts` mode. The
|
|
78
|
+
* dialogue models carry a sheet too, read by `dialogue-capabilities.ts`; a
|
|
79
|
+
* text-to-speech request that names one runs as the fallback model, so these
|
|
80
|
+
* helpers answer for the fallback there.
|
|
81
|
+
*/
|
|
82
|
+
|
|
83
|
+
/** Legacy provider ids that are another model under an old name. They have no catalog entry of their own. */
|
|
84
|
+
declare const TTS_PROVIDER_ALIASES: Readonly<Record<string, string>>;
|
|
85
|
+
/** The model a request runs on when its provider id is missing or unknown. */
|
|
86
|
+
declare const TTS_FALLBACK_PROVIDER = "elevenlabs-turbo";
|
|
87
|
+
/**
|
|
88
|
+
* Resolve a legacy alias to the catalog id it runs as. Any other id passes
|
|
89
|
+
* through unchanged. Own properties only: an id that happens to be the name of
|
|
90
|
+
* an inherited object member (`constructor`, `__proto__`, `toString`) is an
|
|
91
|
+
* unknown id like any other, never a function.
|
|
92
|
+
*/
|
|
93
|
+
declare function canonicalTtsProvider(provider: string): string;
|
|
94
|
+
/**
|
|
95
|
+
* The capability sheet a text-to-speech request will actually run under: a
|
|
96
|
+
* missing or unknown provider id runs as {@link TTS_FALLBACK_PROVIDER}, so it
|
|
97
|
+
* gets that sheet — including its `maxChars` (turbo's 40,000), where
|
|
98
|
+
* `getMaxTtsChars` keeps answering its 5,000 default for such ids.
|
|
99
|
+
*/
|
|
100
|
+
declare function getTtsCapabilities(provider: string | undefined): TtsCapabilities;
|
|
101
|
+
/** The model performs inline `[audio tags]`. false ⇒ strip them before sending. */
|
|
102
|
+
declare function ttsSupportsAudioTags(provider: string | undefined): boolean;
|
|
103
|
+
/** The model honours SSML `<break time="…"/>` tags. */
|
|
104
|
+
declare function ttsSupportsSsmlBreaks(provider: string | undefined): boolean;
|
|
105
|
+
/**
|
|
106
|
+
* The model conditions on neighbouring text (`previous_text` / `next_text`).
|
|
107
|
+
* false ⇒ the provider funnel never puts the fields on the wire, whatever the
|
|
108
|
+
* request carries — the model would reject them.
|
|
109
|
+
*/
|
|
110
|
+
declare function ttsSupportsStitching(provider: string | undefined): boolean;
|
|
111
|
+
/** The model honours this voice-setting lever. */
|
|
112
|
+
declare function ttsHasLever(provider: string | undefined, lever: TtsSettingLever): boolean;
|
|
113
|
+
/** The model answers `/v1/text-to-speech/{voice}/with-timestamps` (character timings). */
|
|
114
|
+
declare function ttsSupportsTimestamps(provider: string | undefined): boolean;
|
|
115
|
+
/** Language codes offered for the model, in catalog order. */
|
|
116
|
+
declare function ttsLanguageCodes(provider: string | undefined): readonly string[];
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Retry/fallback behavior derived from a catalog entry's `safetyFilter`
|
|
120
|
+
* flag (see `ModelCatalogEntry.safetyFilter` in `model-catalog.ts`).
|
|
121
|
+
*/
|
|
122
|
+
interface SafetyRetryPolicy {
|
|
123
|
+
/** 2 when the model declares `safetyFilter.stochastic`, else 1. */
|
|
124
|
+
maxAttempts: 1 | 2;
|
|
125
|
+
/**
|
|
126
|
+
* Catalog model id to offer when the retry also blocks. Only present
|
|
127
|
+
* when the entry declares one AND it resolves to a real catalog entry.
|
|
128
|
+
*/
|
|
129
|
+
fallback?: string;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* The provider's safety filter is known to be non-deterministic on some
|
|
133
|
+
* catalog models — a benign prompt can trip it once and pass on an
|
|
134
|
+
* identical retry. For those models the platform retries a blocked
|
|
135
|
+
* request once (`maxAttempts: 2`) before giving up; `fallback` names the
|
|
136
|
+
* catalog model to offer the user when the retry also blocks.
|
|
137
|
+
*
|
|
138
|
+
* Every model not flagged this way — including an unrecognized id —
|
|
139
|
+
* gets a single attempt and no fallback.
|
|
140
|
+
*/
|
|
141
|
+
declare function safetyRetryPolicy(modelId: string): SafetyRetryPolicy;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* The platform's answer to "which image model, when the caller names none".
|
|
145
|
+
*
|
|
146
|
+
* One table by ROLE, so every surface that picks for the user (node defaults,
|
|
147
|
+
* route and workflow fallbacks, MCP tools, studios, pipelines) reads the same
|
|
148
|
+
* model instead of keeping its own literal. Before this table those literals
|
|
149
|
+
* had drifted apart: the Generate Image node started on Nano Banana Pro, the
|
|
150
|
+
* routes fell back to the original Nano Banana, and MCP used Nano Banana 2.1.
|
|
151
|
+
*
|
|
152
|
+
* Decided on 2026-10-08 from a blind five-model comparison, quality
|
|
153
|
+
* first and price second:
|
|
154
|
+
* - characters, general text-to-image and video anchors on GPT Image 2;
|
|
155
|
+
* - edits on GPT Image 2.5 Flare.
|
|
156
|
+
* With reference images attached, GPT Image 2 runs as its i2i sibling (the
|
|
157
|
+
* provider swaps it), so `character` covers identity-from-reference too.
|
|
158
|
+
*
|
|
159
|
+
* Nano Banana Pro is no longer a default. It remains a FALLBACK only: last in
|
|
160
|
+
* the ratio chain below (it is the one model here that draws 4:5 and 5:4), the
|
|
161
|
+
* GPT-family safety-block retry, and the swimwear dressing model.
|
|
162
|
+
*/
|
|
163
|
+
declare const IMAGE_MODEL_ROLE_DEFAULTS: {
|
|
164
|
+
readonly character: "gpt-image-2";
|
|
165
|
+
readonly general: "gpt-image-2";
|
|
166
|
+
readonly anchor: "gpt-image-2";
|
|
167
|
+
readonly edit: "gpt-image-2-5-flare-i2i";
|
|
168
|
+
};
|
|
169
|
+
type ImageModelRole = keyof typeof IMAGE_MODEL_ROLE_DEFAULTS;
|
|
170
|
+
/**
|
|
171
|
+
* Where a role's model goes when it cannot draw the requested aspect ratio.
|
|
172
|
+
* GPT Image 2 draws only auto / 1:1 / 16:9 / 9:16 / 4:3 / 3:4, so 21:9, 3:2,
|
|
173
|
+
* 2:3 and the other wide or in-between ratios move to GPT Image 2.5 Sunburst,
|
|
174
|
+
* and 4:5 / 5:4 (which neither GPT generation draws) to Nano Banana Pro.
|
|
175
|
+
*/
|
|
176
|
+
declare const IMAGE_MODEL_RATIO_FALLBACKS: Readonly<Record<ImageModelRole, readonly string[]>>;
|
|
177
|
+
/** True when the model's catalog entry lists the ratio (or no ratio was asked for). */
|
|
178
|
+
declare function imageModelDrawsRatio(modelId: string, aspectRatio?: string | null): boolean;
|
|
179
|
+
/**
|
|
180
|
+
* The default image model for a role at the requested aspect ratio: the role's
|
|
181
|
+
* model when it draws the ratio, else the first fallback that does, else the
|
|
182
|
+
* role's model (whose own ratio normalization then snaps the ratio). Read from
|
|
183
|
+
* the catalog, so widening a model's documented ratios moves this with it.
|
|
184
|
+
*/
|
|
185
|
+
declare function defaultImageModel(role: ImageModelRole, aspectRatio?: string | null): string;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* "Auto" video duration — the model decides the clip length. The wire value is
|
|
189
|
+
* KIE's own (`duration: -1`): on a video EDIT the output takes the source
|
|
190
|
+
* clip's length, on any other run the model picks within its valid range.
|
|
191
|
+
* Stored in the ordinary numeric `duration` field (node data, routes, presets,
|
|
192
|
+
* MCP) so every surface that can carry a duration can carry Auto. Which models
|
|
193
|
+
* accept it is a catalog capability (`MODEL_CATALOG[id].autoDuration`), read
|
|
194
|
+
* through `supportsAutoVideoDuration`.
|
|
195
|
+
*
|
|
196
|
+
* Import-free on purpose: the catalog and the constants module both need it,
|
|
197
|
+
* and they already depend on each other.
|
|
198
|
+
*/
|
|
199
|
+
declare const VIDEO_DURATION_AUTO = -1;
|
|
200
|
+
declare function isAutoVideoDuration(duration: unknown): boolean;
|
|
201
|
+
|
|
202
|
+
export { FLUX2_RES_MP, type Flux2Model, IMAGE_MODEL_RATIO_FALLBACKS, IMAGE_MODEL_ROLE_DEFAULTS, type ImageModelRole, SEEDANCE_DRAFT_FINALIZE_MAX_SEC, SEEDANCE_DRAFT_FINALIZE_MIN_SEC, SEEDANCE_DRAFT_FINALIZE_PROVIDER, SEEDANCE_DRAFT_FINALIZE_RESOLUTION, SEEDANCE_DRAFT_MODELS, SEEDANCE_DRAFT_RESOLUTION, type SafetyRetryPolicy, type SeedanceDraftModel, TTS_FALLBACK_PROVIDER, TTS_PROVIDER_ALIASES, TtsCapabilities, TtsSettingLever, VIDEO_DURATION_AUTO, canonicalTtsProvider, defaultImageModel, getTtsCapabilities, imageModelDrawsRatio, isAutoVideoDuration, isFlux2Model, isSeedanceDraftCapable, safetyRetryPolicy, seedanceDraftFinalizeBillableSec, seedanceDraftFinalizeCreditId, ttsHasLever, ttsLanguageCodes, ttsSupportsAudioTags, ttsSupportsSsmlBreaks, ttsSupportsStitching, ttsSupportsTimestamps };
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import { T as TtsCapabilities, p as TtsSettingLever } from '../model-catalog-V-ZNzRSd.js';
|
|
2
|
+
export { L as LabeledOption, M as MODEL_CATALOG, a as MODEL_KINDS, b as MODEL_MAKERS, c as MODEL_RECOMMENDATIONS, d as ModelCatalogEntry, e as ModelInputAdjustment, f as ModelInputContext, g as ModelKind, h as ModelMaker, i as ModelMakerId, j as ModelMenuOption, k as ModelMode, l as ModelRecommendation, m as ModelValidationIssue, N as NormalizedModelInput, n as NormalizedVideoRequest, P as PriceVariant, S as SPEECH_UNIT_PRICE_NOTE, o as SourceImageSize, V as ValidationField, q as aspectRatioOptionsByKind, r as autoAspectNeedsSourceImage, s as buildModelMenu, t as creditRangesAll, u as defaultResolutionFor, v as durationsByMode, w as fitAspectRatioToModel, x as getAspectRatioOptions, y as getCreditRange, z as getDurationsForModel, A as getModel, B as getQualityOptions, C as getResolutionOptions, D as groupByFamily, E as groupByKindAndFamily, F as hasFeature, G as isAutoAspectToken, H as isModelMakerId, I as listModels, J as modelIdsByKindMode, K as modelMakerOf, O as modelTakesSeed, Q as modelsWithFeature, R as nearestCatalogAspectRatio, U as normalizeModelInput, W as normalizeVideoRequestParams, X as qualityOptionsByKind, Y as resolutionOptionsByKind, Z as validateModelInput } from '../model-catalog-V-ZNzRSd.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Seedance 2.5 Draft mode — the single source of truth for which models offer a
|
|
6
|
+
* draft, what a draft renders at, and how its 1080p finalize is priced.
|
|
7
|
+
*
|
|
8
|
+
* A DRAFT is an ordinary Seedance 2.5 run with the provider's draft flag set: it
|
|
9
|
+
* renders at 480p only and costs exactly what a normal 480p run of the same
|
|
10
|
+
* shape costs. The FINALIZE ("Seedance 2.5 HD (from draft)", a Video Upscale
|
|
11
|
+
* provider) re-renders that same take — same seed, prompt, references and
|
|
12
|
+
* timing — at 1080p, frame for frame, at the draft's own length. Nothing
|
|
13
|
+
* creative is re-sent: the finalize names the draft's provider task and nothing
|
|
14
|
+
* else.
|
|
15
|
+
*
|
|
16
|
+
* Every surface (generation routes, the workflow engine, MCP, the editor's
|
|
17
|
+
* toggle) gates on {@link isSeedanceDraftCapable}; never hand-list the model.
|
|
18
|
+
*/
|
|
19
|
+
/** Models that accept the draft flag. */
|
|
20
|
+
declare const SEEDANCE_DRAFT_MODELS: readonly ["seedance-2-5"];
|
|
21
|
+
type SeedanceDraftModel = typeof SEEDANCE_DRAFT_MODELS[number];
|
|
22
|
+
declare function isSeedanceDraftCapable(provider: string | undefined): provider is SeedanceDraftModel;
|
|
23
|
+
/** The only resolution a draft renders at. Any other value is coerced to it. */
|
|
24
|
+
declare const SEEDANCE_DRAFT_RESOLUTION = "480p";
|
|
25
|
+
/** The Video Upscale provider that finalizes a draft. */
|
|
26
|
+
declare const SEEDANCE_DRAFT_FINALIZE_PROVIDER = "seedance-2-5-hd";
|
|
27
|
+
/** The only resolution a finalize renders at. */
|
|
28
|
+
declare const SEEDANCE_DRAFT_FINALIZE_RESOLUTION = "1080p";
|
|
29
|
+
/** Shortest / longest output the finalize price ladder is seeded for. */
|
|
30
|
+
declare const SEEDANCE_DRAFT_FINALIZE_MIN_SEC = 4;
|
|
31
|
+
declare const SEEDANCE_DRAFT_FINALIZE_MAX_SEC = 30;
|
|
32
|
+
/**
|
|
33
|
+
* Whole seconds the finalize bills for a measured draft length.
|
|
34
|
+
*
|
|
35
|
+
* A container reports a hair over the nominal length (4.04 s for a 4 s clip), so
|
|
36
|
+
* the seconds round UP only past a quarter second — the same rule the Seedance
|
|
37
|
+
* auto-duration settlement uses — and land on the seeded ladder (4–30 s).
|
|
38
|
+
*/
|
|
39
|
+
declare function seedanceDraftFinalizeBillableSec(measuredSec: number): number;
|
|
40
|
+
/**
|
|
41
|
+
* The credit identifier a finalize reserves under.
|
|
42
|
+
*
|
|
43
|
+
* Same encoding as the Seedance 2.5 generation ladder: one row per OUTPUT second
|
|
44
|
+
* (`seedance-2-5-hd:{N}s`), and a `-ref` twin for a draft that had a reference
|
|
45
|
+
* VIDEO. As on the generation lane, the `-ref` row encodes the per-second rate
|
|
46
|
+
* only; a reference run bills `rate × (input + output)` seconds, which the
|
|
47
|
+
* reservation computes from the 8 s `-ref` row (see the backend's
|
|
48
|
+
* `seedanceDraftFinalizeRefBaseCredits`). Reference IMAGES do not change the
|
|
49
|
+
* rate — only a reference video does.
|
|
50
|
+
*/
|
|
51
|
+
declare function seedanceDraftFinalizeCreditId(durationSec: number, hasRefVideo: boolean): string;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Model-id enum + UI resolution options for Replicate Flux 2 image models.
|
|
55
|
+
*
|
|
56
|
+
* The provider-$ rate table and the cost/credit FORMULAS derived from it live
|
|
57
|
+
* in `backend/src/lib/pricing/flux2-cost.ts` (core, not ee/ — the Replicate
|
|
58
|
+
* provider integration needs them regardless of edition). They were moved
|
|
59
|
+
* out of this package (published Apache-2.0 on npm — an irrevocable grant)
|
|
60
|
+
* per the 2026-07-06 public-flip IP audit, S5.
|
|
61
|
+
*/
|
|
62
|
+
type Flux2Model = "flux-2-klein" | "flux-2-pro" | "flux-2-max";
|
|
63
|
+
/** Megapixel tiers offered in the UI (strings; the value space for data.resolution). */
|
|
64
|
+
declare const FLUX2_RES_MP: readonly ["0.5", "1", "2", "4"];
|
|
65
|
+
declare function isFlux2Model(m: string): m is Flux2Model;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Capability lookups for the text-to-speech lane.
|
|
69
|
+
*
|
|
70
|
+
* Every "does this model do X" decision on that lane reads the model's `tts`
|
|
71
|
+
* sheet in `MODEL_CATALOG` through these helpers — tag stripping, which voice
|
|
72
|
+
* settings are sent and shown, the language picker, whether neighbouring text
|
|
73
|
+
* is sent. Declare the sheet honestly
|
|
74
|
+
* on the catalog entry and a new model is covered everywhere; do not compare a
|
|
75
|
+
* provider id by hand.
|
|
76
|
+
*
|
|
77
|
+
* "The text-to-speech lane" means the models that list the `tts` mode. The
|
|
78
|
+
* dialogue models carry a sheet too, read by `dialogue-capabilities.ts`; a
|
|
79
|
+
* text-to-speech request that names one runs as the fallback model, so these
|
|
80
|
+
* helpers answer for the fallback there.
|
|
81
|
+
*/
|
|
82
|
+
|
|
83
|
+
/** Legacy provider ids that are another model under an old name. They have no catalog entry of their own. */
|
|
84
|
+
declare const TTS_PROVIDER_ALIASES: Readonly<Record<string, string>>;
|
|
85
|
+
/** The model a request runs on when its provider id is missing or unknown. */
|
|
86
|
+
declare const TTS_FALLBACK_PROVIDER = "elevenlabs-turbo";
|
|
87
|
+
/**
|
|
88
|
+
* Resolve a legacy alias to the catalog id it runs as. Any other id passes
|
|
89
|
+
* through unchanged. Own properties only: an id that happens to be the name of
|
|
90
|
+
* an inherited object member (`constructor`, `__proto__`, `toString`) is an
|
|
91
|
+
* unknown id like any other, never a function.
|
|
92
|
+
*/
|
|
93
|
+
declare function canonicalTtsProvider(provider: string): string;
|
|
94
|
+
/**
|
|
95
|
+
* The capability sheet a text-to-speech request will actually run under: a
|
|
96
|
+
* missing or unknown provider id runs as {@link TTS_FALLBACK_PROVIDER}, so it
|
|
97
|
+
* gets that sheet — including its `maxChars` (turbo's 40,000), where
|
|
98
|
+
* `getMaxTtsChars` keeps answering its 5,000 default for such ids.
|
|
99
|
+
*/
|
|
100
|
+
declare function getTtsCapabilities(provider: string | undefined): TtsCapabilities;
|
|
101
|
+
/** The model performs inline `[audio tags]`. false ⇒ strip them before sending. */
|
|
102
|
+
declare function ttsSupportsAudioTags(provider: string | undefined): boolean;
|
|
103
|
+
/** The model honours SSML `<break time="…"/>` tags. */
|
|
104
|
+
declare function ttsSupportsSsmlBreaks(provider: string | undefined): boolean;
|
|
105
|
+
/**
|
|
106
|
+
* The model conditions on neighbouring text (`previous_text` / `next_text`).
|
|
107
|
+
* false ⇒ the provider funnel never puts the fields on the wire, whatever the
|
|
108
|
+
* request carries — the model would reject them.
|
|
109
|
+
*/
|
|
110
|
+
declare function ttsSupportsStitching(provider: string | undefined): boolean;
|
|
111
|
+
/** The model honours this voice-setting lever. */
|
|
112
|
+
declare function ttsHasLever(provider: string | undefined, lever: TtsSettingLever): boolean;
|
|
113
|
+
/** The model answers `/v1/text-to-speech/{voice}/with-timestamps` (character timings). */
|
|
114
|
+
declare function ttsSupportsTimestamps(provider: string | undefined): boolean;
|
|
115
|
+
/** Language codes offered for the model, in catalog order. */
|
|
116
|
+
declare function ttsLanguageCodes(provider: string | undefined): readonly string[];
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Retry/fallback behavior derived from a catalog entry's `safetyFilter`
|
|
120
|
+
* flag (see `ModelCatalogEntry.safetyFilter` in `model-catalog.ts`).
|
|
121
|
+
*/
|
|
122
|
+
interface SafetyRetryPolicy {
|
|
123
|
+
/** 2 when the model declares `safetyFilter.stochastic`, else 1. */
|
|
124
|
+
maxAttempts: 1 | 2;
|
|
125
|
+
/**
|
|
126
|
+
* Catalog model id to offer when the retry also blocks. Only present
|
|
127
|
+
* when the entry declares one AND it resolves to a real catalog entry.
|
|
128
|
+
*/
|
|
129
|
+
fallback?: string;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* The provider's safety filter is known to be non-deterministic on some
|
|
133
|
+
* catalog models — a benign prompt can trip it once and pass on an
|
|
134
|
+
* identical retry. For those models the platform retries a blocked
|
|
135
|
+
* request once (`maxAttempts: 2`) before giving up; `fallback` names the
|
|
136
|
+
* catalog model to offer the user when the retry also blocks.
|
|
137
|
+
*
|
|
138
|
+
* Every model not flagged this way — including an unrecognized id —
|
|
139
|
+
* gets a single attempt and no fallback.
|
|
140
|
+
*/
|
|
141
|
+
declare function safetyRetryPolicy(modelId: string): SafetyRetryPolicy;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* The platform's answer to "which image model, when the caller names none".
|
|
145
|
+
*
|
|
146
|
+
* One table by ROLE, so every surface that picks for the user (node defaults,
|
|
147
|
+
* route and workflow fallbacks, MCP tools, studios, pipelines) reads the same
|
|
148
|
+
* model instead of keeping its own literal. Before this table those literals
|
|
149
|
+
* had drifted apart: the Generate Image node started on Nano Banana Pro, the
|
|
150
|
+
* routes fell back to the original Nano Banana, and MCP used Nano Banana 2.1.
|
|
151
|
+
*
|
|
152
|
+
* Decided on 2026-10-08 from a blind five-model comparison, quality
|
|
153
|
+
* first and price second:
|
|
154
|
+
* - characters, general text-to-image and video anchors on GPT Image 2;
|
|
155
|
+
* - edits on GPT Image 2.5 Flare.
|
|
156
|
+
* With reference images attached, GPT Image 2 runs as its i2i sibling (the
|
|
157
|
+
* provider swaps it), so `character` covers identity-from-reference too.
|
|
158
|
+
*
|
|
159
|
+
* Nano Banana Pro is no longer a default. It remains a FALLBACK only: last in
|
|
160
|
+
* the ratio chain below (it is the one model here that draws 4:5 and 5:4), the
|
|
161
|
+
* GPT-family safety-block retry, and the swimwear dressing model.
|
|
162
|
+
*/
|
|
163
|
+
declare const IMAGE_MODEL_ROLE_DEFAULTS: {
|
|
164
|
+
readonly character: "gpt-image-2";
|
|
165
|
+
readonly general: "gpt-image-2";
|
|
166
|
+
readonly anchor: "gpt-image-2";
|
|
167
|
+
readonly edit: "gpt-image-2-5-flare-i2i";
|
|
168
|
+
};
|
|
169
|
+
type ImageModelRole = keyof typeof IMAGE_MODEL_ROLE_DEFAULTS;
|
|
170
|
+
/**
|
|
171
|
+
* Where a role's model goes when it cannot draw the requested aspect ratio.
|
|
172
|
+
* GPT Image 2 draws only auto / 1:1 / 16:9 / 9:16 / 4:3 / 3:4, so 21:9, 3:2,
|
|
173
|
+
* 2:3 and the other wide or in-between ratios move to GPT Image 2.5 Sunburst,
|
|
174
|
+
* and 4:5 / 5:4 (which neither GPT generation draws) to Nano Banana Pro.
|
|
175
|
+
*/
|
|
176
|
+
declare const IMAGE_MODEL_RATIO_FALLBACKS: Readonly<Record<ImageModelRole, readonly string[]>>;
|
|
177
|
+
/** True when the model's catalog entry lists the ratio (or no ratio was asked for). */
|
|
178
|
+
declare function imageModelDrawsRatio(modelId: string, aspectRatio?: string | null): boolean;
|
|
179
|
+
/**
|
|
180
|
+
* The default image model for a role at the requested aspect ratio: the role's
|
|
181
|
+
* model when it draws the ratio, else the first fallback that does, else the
|
|
182
|
+
* role's model (whose own ratio normalization then snaps the ratio). Read from
|
|
183
|
+
* the catalog, so widening a model's documented ratios moves this with it.
|
|
184
|
+
*/
|
|
185
|
+
declare function defaultImageModel(role: ImageModelRole, aspectRatio?: string | null): string;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* "Auto" video duration — the model decides the clip length. The wire value is
|
|
189
|
+
* KIE's own (`duration: -1`): on a video EDIT the output takes the source
|
|
190
|
+
* clip's length, on any other run the model picks within its valid range.
|
|
191
|
+
* Stored in the ordinary numeric `duration` field (node data, routes, presets,
|
|
192
|
+
* MCP) so every surface that can carry a duration can carry Auto. Which models
|
|
193
|
+
* accept it is a catalog capability (`MODEL_CATALOG[id].autoDuration`), read
|
|
194
|
+
* through `supportsAutoVideoDuration`.
|
|
195
|
+
*
|
|
196
|
+
* Import-free on purpose: the catalog and the constants module both need it,
|
|
197
|
+
* and they already depend on each other.
|
|
198
|
+
*/
|
|
199
|
+
declare const VIDEO_DURATION_AUTO = -1;
|
|
200
|
+
declare function isAutoVideoDuration(duration: unknown): boolean;
|
|
201
|
+
|
|
202
|
+
export { FLUX2_RES_MP, type Flux2Model, IMAGE_MODEL_RATIO_FALLBACKS, IMAGE_MODEL_ROLE_DEFAULTS, type ImageModelRole, SEEDANCE_DRAFT_FINALIZE_MAX_SEC, SEEDANCE_DRAFT_FINALIZE_MIN_SEC, SEEDANCE_DRAFT_FINALIZE_PROVIDER, SEEDANCE_DRAFT_FINALIZE_RESOLUTION, SEEDANCE_DRAFT_MODELS, SEEDANCE_DRAFT_RESOLUTION, type SafetyRetryPolicy, type SeedanceDraftModel, TTS_FALLBACK_PROVIDER, TTS_PROVIDER_ALIASES, TtsCapabilities, TtsSettingLever, VIDEO_DURATION_AUTO, canonicalTtsProvider, defaultImageModel, getTtsCapabilities, imageModelDrawsRatio, isAutoVideoDuration, isFlux2Model, isSeedanceDraftCapable, safetyRetryPolicy, seedanceDraftFinalizeBillableSec, seedanceDraftFinalizeCreditId, ttsHasLever, ttsLanguageCodes, ttsSupportsAudioTags, ttsSupportsSsmlBreaks, ttsSupportsStitching, ttsSupportsTimestamps };
|