@nodaro/shared 3.30.0 → 3.32.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-2NIQO2J3.cjs +54 -0
- package/dist/chunk-2NIQO2J3.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-3CUFITU7.js +1905 -0
- package/dist/chunk-3CUFITU7.js.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-5AUSSJIM.cjs +3372 -0
- package/dist/chunk-5AUSSJIM.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-5THUHJ3E.js +46 -0
- package/dist/chunk-5THUHJ3E.js.map +1 -0
- package/dist/chunk-5U7VLG43.js +141 -0
- package/dist/chunk-5U7VLG43.js.map +1 -0
- package/dist/chunk-6DAWSVX2.cjs +103 -0
- package/dist/chunk-6DAWSVX2.cjs.map +1 -0
- package/dist/chunk-6DKDOWBL.js +1567 -0
- package/dist/chunk-6DKDOWBL.js.map +1 -0
- package/dist/chunk-6IJOPRZP.cjs +197 -0
- package/dist/chunk-6IJOPRZP.cjs.map +1 -0
- package/dist/chunk-7G7G42KS.js +86 -0
- package/dist/chunk-7G7G42KS.js.map +1 -0
- package/dist/chunk-AINCI23X.js +2171 -0
- package/dist/chunk-AINCI23X.js.map +1 -0
- package/dist/chunk-AROWPFO2.js +773 -0
- package/dist/chunk-AROWPFO2.js.map +1 -0
- package/dist/chunk-AVQK77G6.cjs +2000 -0
- package/dist/chunk-AVQK77G6.cjs.map +1 -0
- package/dist/chunk-C57NEO3X.js +3327 -0
- package/dist/chunk-C57NEO3X.js.map +1 -0
- package/dist/chunk-CK3GK34R.js +1381 -0
- package/dist/chunk-CK3GK34R.js.map +1 -0
- package/dist/chunk-E2TGXG6X.cjs +1770 -0
- package/dist/chunk-E2TGXG6X.cjs.map +1 -0
- package/dist/chunk-EK362Q45.cjs +38 -0
- package/dist/chunk-EK362Q45.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-G6IIVKMO.js +26 -0
- package/dist/chunk-G6IIVKMO.js.map +1 -0
- package/dist/chunk-HGC5JNVA.cjs +1503 -0
- package/dist/chunk-HGC5JNVA.cjs.map +1 -0
- package/dist/chunk-HSHCCBIV.js +255 -0
- package/dist/chunk-HSHCCBIV.js.map +1 -0
- package/dist/chunk-IEBZHTPE.js +254 -0
- package/dist/chunk-IEBZHTPE.js.map +1 -0
- package/dist/chunk-ISJDAFKS.js +1604 -0
- package/dist/chunk-ISJDAFKS.js.map +1 -0
- package/dist/chunk-J6KHW2E5.cjs +1963 -0
- package/dist/chunk-J6KHW2E5.cjs.map +1 -0
- package/dist/chunk-J7BMO73N.cjs +114 -0
- package/dist/chunk-J7BMO73N.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-JSNV5O2F.cjs +34 -0
- package/dist/chunk-JSNV5O2F.cjs.map +1 -0
- package/dist/chunk-JWA5SGCS.js +203 -0
- package/dist/chunk-JWA5SGCS.js.map +1 -0
- package/dist/chunk-JX5YZ4DH.cjs +430 -0
- package/dist/chunk-JX5YZ4DH.cjs.map +1 -0
- package/dist/chunk-KHCBJ7KD.js +42 -0
- package/dist/chunk-KHCBJ7KD.js.map +1 -0
- package/dist/chunk-KU6S7IYV.cjs +210 -0
- package/dist/chunk-KU6S7IYV.cjs.map +1 -0
- package/dist/chunk-LKAIXWK3.js +181 -0
- package/dist/chunk-LKAIXWK3.js.map +1 -0
- package/dist/chunk-LPW3XNC2.js +471 -0
- package/dist/chunk-LPW3XNC2.js.map +1 -0
- package/dist/chunk-M36G6SRP.js +447 -0
- package/dist/chunk-M36G6SRP.js.map +1 -0
- package/dist/chunk-MRXGWL42.cjs +4 -0
- package/dist/chunk-MRXGWL42.cjs.map +1 -0
- package/dist/chunk-NB72XWXQ.cjs +54 -0
- package/dist/chunk-NB72XWXQ.cjs.map +1 -0
- package/dist/chunk-NEJ2PV4C.cjs +211 -0
- package/dist/chunk-NEJ2PV4C.cjs.map +1 -0
- package/dist/chunk-NT6IJH4L.cjs +273 -0
- package/dist/chunk-NT6IJH4L.cjs.map +1 -0
- package/dist/chunk-O5MP52U2.cjs +526 -0
- package/dist/chunk-O5MP52U2.cjs.map +1 -0
- package/dist/chunk-O7PUQLJ3.cjs +818 -0
- package/dist/chunk-O7PUQLJ3.cjs.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-Q4CDQ2KO.js +21 -0
- package/dist/chunk-Q4CDQ2KO.js.map +1 -0
- package/dist/chunk-QELDJGDK.cjs +1714 -0
- package/dist/chunk-QELDJGDK.cjs.map +1 -0
- package/dist/chunk-QJRP44ZO.js +769 -0
- package/dist/chunk-QJRP44ZO.js.map +1 -0
- package/dist/chunk-QNGNOU4Z.js +29 -0
- package/dist/chunk-QNGNOU4Z.js.map +1 -0
- package/dist/chunk-RJL7RCEM.cjs +159 -0
- package/dist/chunk-RJL7RCEM.cjs.map +1 -0
- package/dist/chunk-RN3RMBJZ.js +1164 -0
- package/dist/chunk-RN3RMBJZ.js.map +1 -0
- package/dist/chunk-S5DMKUWK.cjs +1273 -0
- package/dist/chunk-S5DMKUWK.cjs.map +1 -0
- package/dist/chunk-SES6GDBQ.cjs +624 -0
- package/dist/chunk-SES6GDBQ.cjs.map +1 -0
- package/dist/chunk-TNPDV7I4.cjs +2346 -0
- package/dist/chunk-TNPDV7I4.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-ULXI7A6Q.cjs +1047 -0
- package/dist/chunk-ULXI7A6Q.cjs.map +1 -0
- package/dist/chunk-VIWSWVAW.js +1782 -0
- package/dist/chunk-VIWSWVAW.js.map +1 -0
- package/dist/chunk-VWGNPMJZ.cjs +19 -0
- package/dist/chunk-VWGNPMJZ.cjs.map +1 -0
- package/dist/chunk-WDIBOWAA.js +1054 -0
- package/dist/chunk-WDIBOWAA.js.map +1 -0
- package/dist/chunk-WNG7HRVA.cjs +25 -0
- package/dist/chunk-WNG7HRVA.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-XAMC4S53.js +17 -0
- package/dist/chunk-XAMC4S53.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-YHRG7UOC.js +31 -0
- package/dist/chunk-YHRG7UOC.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-Z4AZW6FY.js +920 -0
- package/dist/chunk-Z4AZW6FY.js.map +1 -0
- package/dist/chunk-ZDFHA2EC.js +572 -0
- package/dist/chunk-ZDFHA2EC.js.map +1 -0
- package/dist/chunk-ZNZDQAXN.js +175 -0
- package/dist/chunk-ZNZDQAXN.js.map +1 -0
- package/dist/chunk-ZRL2UFTH.cjs +1073 -0
- package/dist/chunk-ZRL2UFTH.cjs.map +1 -0
- package/dist/chunk-ZT77RY6R.js +404 -0
- package/dist/chunk-ZT77RY6R.js.map +1 -0
- package/dist/entries/apps.cjs +155 -0
- package/dist/entries/apps.cjs.map +1 -0
- package/dist/entries/apps.d.cts +283 -0
- package/dist/entries/apps.d.ts +283 -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 +592 -0
- package/dist/entries/credits.cjs.map +1 -0
- package/dist/entries/credits.d.cts +1429 -0
- package/dist/entries/credits.d.ts +1429 -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 +247 -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 +1733 -0
- package/dist/entries/workflow.d.ts +1733 -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 +7731 -26444
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +32 -23733
- package/dist/index.d.ts +32 -23733
- package/dist/index.js +40 -24641
- package/dist/index.js.map +1 -1
- package/dist/model-catalog-flJYaa-g.d.cts +561 -0
- package/dist/model-catalog-flJYaa-g.d.ts +561 -0
- package/dist/presentation-types-0ENOCjoj.d.cts +61 -0
- package/dist/presentation-types-0ENOCjoj.d.ts +61 -0
- package/dist/presentation-utils-BIqiCzSA.d.cts +90 -0
- package/dist/presentation-utils-BdiObtwq.d.ts +90 -0
- package/dist/scene-node-types-DjenYFLO.d.cts +1949 -0
- package/dist/scene-node-types-DjenYFLO.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__/entity-image-handle.test.ts +61 -1
- package/src/__tests__/fixtures/root-exports.baseline.json +4625 -0
- package/src/__tests__/input-field-extra-keys.test.ts +1 -0
- package/src/__tests__/json-kinds.test.ts +10 -0
- package/src/__tests__/model-seed-capability.test.ts +34 -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-preset-extract.test.ts +8 -0
- package/src/__tests__/node-run-routes.test.ts +63 -0
- package/src/__tests__/node-runtime-keys.test.ts +70 -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 +14 -0
- package/src/__tests__/preview-gate-use-case.test.ts +151 -0
- package/src/__tests__/producer-types.test.ts +15 -0
- package/src/__tests__/run-continuation.test.ts +7 -1
- package/src/__tests__/seedance-draft.test.ts +74 -0
- package/src/__tests__/site-capture-node.test.ts +58 -0
- package/src/__tests__/ugc-clip-saved-list.test.ts +19 -0
- package/src/__tests__/ugc-lane-wires.test.ts +228 -0
- package/src/__tests__/ugc-node-wires.test.ts +606 -0
- package/src/__tests__/ugc-run-state.test.ts +85 -7
- 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/__tests__/workflow-export-strip.test.ts +14 -0
- package/src/add-captions-plan.ts +9 -3
- package/src/caption-edge-dash.ts +33 -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/entity-image-handle.ts +50 -1
- 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 +104 -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 +89 -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 -1838
- package/src/json-kinds.ts +13 -0
- package/src/model-catalog.ts +97 -36
- package/src/model-constants.ts +3 -0
- package/src/node-mappable-fields.ts +1 -0
- package/src/node-preset-export.ts +2 -2
- package/src/node-preset-extract.ts +6 -4
- package/src/node-run-routes.ts +78 -0
- package/src/node-runtime-keys.ts +50 -1
- package/src/normalize-node-params.ts +30 -0
- package/src/presentation-utils.ts +8 -0
- package/src/preview-gate.ts +92 -14
- package/src/producer-types.ts +26 -2
- package/src/run-continuation.ts +21 -0
- package/src/seedance-draft.ts +64 -0
- package/src/site-capture-node.ts +82 -0
- package/src/social-post.ts +13 -0
- package/src/ugc-lane-wires.ts +246 -0
- package/src/ugc-node-wires.ts +653 -0
- package/src/ugc-run-state.ts +65 -8
- package/src/video-analysis-pricing.ts +31 -29
- package/src/workflow-export.ts +3 -1
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The price of a whole Voice Changer Pro convert, as ONE id.
|
|
3
|
+
*
|
|
4
|
+
* A convert is charged as one whole: every changed speaker's slot is priced in
|
|
5
|
+
* base credits (a recast slot by the length of its stem, a Re-speak slot by
|
|
6
|
+
* its characters on its engine's row), the slots are summed, and the sum is
|
|
7
|
+
* marked up ONCE at `voice-changer-pro`. A client that prices each slot on the
|
|
8
|
+
* served (already marked-up, already rounded) rows and adds them up cannot
|
|
9
|
+
* reach that figure: the rounding happens in a different place.
|
|
10
|
+
*
|
|
11
|
+
* `voiceChangerProQuoteCreditId(slots)` names the whole price:
|
|
12
|
+
* `voice-changer-pro:<slot>,<slot>,…`, one slot per changed speaker, where a
|
|
13
|
+
* slot is
|
|
14
|
+
*
|
|
15
|
+
* - `sts-<seconds>` — a recast (speech-to-speech) slot whose stem is that
|
|
16
|
+
* many seconds long (the speaker's last utterance end); `sts` alone when
|
|
17
|
+
* the length is unknown (priced as one minute, as the convert reserves it);
|
|
18
|
+
* - `respeak-<chars>` — a Re-speak slot on the default engine (v3) that
|
|
19
|
+
* re-speaks that many characters; `respeak` alone when the count is unknown;
|
|
20
|
+
* - `respeak-v4-<chars>` — a Re-speak slot on the v4 engine (`respeak-v4`
|
|
21
|
+
* when the count is unknown); `respeak-v3-<chars>` names v3 explicitly
|
|
22
|
+
* and is the same price as `respeak-<chars>`;
|
|
23
|
+
* - `respeak-v4t-<chars>` — a v4 slot speaking a TRANSLATION of its
|
|
24
|
+
* `<chars>` transcript characters. The convert reserves such a slot for more
|
|
25
|
+
* speech than its transcript holds (a line may be re-rendered once,
|
|
26
|
+
* shorter); the server applies that allowance, so the client sends the
|
|
27
|
+
* transcript's own count and never the arithmetic. Only v4 speaks a
|
|
28
|
+
* translation, so there is no `v3t`.
|
|
29
|
+
*
|
|
30
|
+
* `POST /v1/credits/model-costs` and `GET /v1/credits/model-cost` answer it
|
|
31
|
+
* with the figure the convert reserves; an id the server does not price
|
|
32
|
+
* (a malformed slot, more slots than a convert takes, a count out of range)
|
|
33
|
+
* lands in `missing`. Numbers are written exactly as JavaScript prints them,
|
|
34
|
+
* so the server reads back the value the client priced.
|
|
35
|
+
*/
|
|
36
|
+
|
|
37
|
+
/** The id a convert is reserved (and marked up) at. */
|
|
38
|
+
export const VOICE_CHANGER_PRO_QUOTE_RATE_ID = "voice-changer-pro"
|
|
39
|
+
|
|
40
|
+
/** A Re-speak engine, as the quote names it. */
|
|
41
|
+
export type VoiceChangerProQuoteRespeakEngine = "v3" | "v4"
|
|
42
|
+
|
|
43
|
+
/** One changed speaker of a convert, as the quote prices it. */
|
|
44
|
+
export type VoiceChangerProQuoteSlot =
|
|
45
|
+
/** A recast slot: the stem's length in seconds; `null` (or not a positive number) = unknown. */
|
|
46
|
+
| { readonly kind: "sts"; readonly seconds: number | null }
|
|
47
|
+
/**
|
|
48
|
+
* A Re-speak slot: the characters of its transcript; `null` (or not a
|
|
49
|
+
* positive number) = unknown. `engine` absent = the default engine (v3).
|
|
50
|
+
* `translated` = the slot speaks the plan's target language — read only on
|
|
51
|
+
* v4, the one engine that speaks a translation (the convert route reads it
|
|
52
|
+
* the same way).
|
|
53
|
+
*/
|
|
54
|
+
| {
|
|
55
|
+
readonly kind: "respeak"
|
|
56
|
+
readonly chars: number | null
|
|
57
|
+
readonly engine?: VoiceChangerProQuoteRespeakEngine
|
|
58
|
+
readonly translated?: boolean
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/** A `voice-changer-pro:<slots>` id, read back into the convert's pricing inputs (slot order kept per kind). */
|
|
62
|
+
export interface VoiceChangerProQuoteCreditIdParts {
|
|
63
|
+
/** Stem seconds per recast slot; `null` = unknown. */
|
|
64
|
+
readonly stsSlotSeconds: ReadonlyArray<number | null>
|
|
65
|
+
/** Transcript characters per Re-speak slot; `null` = unknown. */
|
|
66
|
+
readonly respeakChars: ReadonlyArray<number | null>
|
|
67
|
+
/** The engine of each Re-speak slot, index-aligned with `respeakChars`; `null` = not named (the default engine). */
|
|
68
|
+
readonly respeakEngines: ReadonlyArray<VoiceChangerProQuoteRespeakEngine | null>
|
|
69
|
+
/** Whether each Re-speak slot speaks a translation, index-aligned with `respeakChars` (only ever true on v4). */
|
|
70
|
+
readonly respeakTranslated: ReadonlyArray<boolean>
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
const PREFIX = `${VOICE_CHANGER_PRO_QUOTE_RATE_ID}:`
|
|
74
|
+
const NUMBER = String.raw`\d{1,7}(?:\.\d{1,20})?`
|
|
75
|
+
const STS_SLOT = new RegExp(`^sts(?:-(${NUMBER}))?$`)
|
|
76
|
+
const RESPEAK_SLOT = new RegExp(`^respeak(?:-(v3|v4|v4t))?(?:-(${NUMBER}))?$`)
|
|
77
|
+
|
|
78
|
+
const known = (n: number | null): n is number => n !== null && Number.isFinite(n) && n > 0
|
|
79
|
+
|
|
80
|
+
/** The engine token of a Re-speak slot: none for the default engine (the id every client sent before engines were named). */
|
|
81
|
+
function respeakEngineToken(slot: { readonly engine?: VoiceChangerProQuoteRespeakEngine; readonly translated?: boolean }): string {
|
|
82
|
+
if (slot.engine !== "v4") return ""
|
|
83
|
+
return slot.translated === true ? "-v4t" : "-v4"
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/** `voice-changer-pro:<slot>,…` — the id of the whole price of a convert with these changed speakers. */
|
|
87
|
+
export function voiceChangerProQuoteCreditId(slots: ReadonlyArray<VoiceChangerProQuoteSlot>): string {
|
|
88
|
+
return (
|
|
89
|
+
PREFIX +
|
|
90
|
+
slots
|
|
91
|
+
.map((slot) => {
|
|
92
|
+
if (slot.kind === "sts") return known(slot.seconds) ? `sts-${String(slot.seconds)}` : "sts"
|
|
93
|
+
const head = `respeak${respeakEngineToken(slot)}`
|
|
94
|
+
return known(slot.chars) ? `${head}-${String(slot.chars)}` : head
|
|
95
|
+
})
|
|
96
|
+
.join(",")
|
|
97
|
+
)
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
function measureOf(text: string | undefined): number | null | undefined {
|
|
101
|
+
if (text === undefined) return null
|
|
102
|
+
const value = Number(text)
|
|
103
|
+
return Number.isFinite(value) && value > 0 ? value : undefined
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* The parts of a `voice-changer-pro:<slots>` id by its shape alone, or
|
|
108
|
+
* undefined (not such an id, an empty or malformed slot). How many slots and
|
|
109
|
+
* what counts the server prices is the server's to say: an id it does not
|
|
110
|
+
* price lands in `missing`.
|
|
111
|
+
*/
|
|
112
|
+
export function parseVoiceChangerProQuoteCreditId(id: string): VoiceChangerProQuoteCreditIdParts | undefined {
|
|
113
|
+
if (typeof id !== "string" || !id.startsWith(PREFIX)) return undefined
|
|
114
|
+
const body = id.slice(PREFIX.length)
|
|
115
|
+
if (body.length === 0) return undefined
|
|
116
|
+
const stsSlotSeconds: Array<number | null> = []
|
|
117
|
+
const respeakChars: Array<number | null> = []
|
|
118
|
+
const respeakEngines: Array<VoiceChangerProQuoteRespeakEngine | null> = []
|
|
119
|
+
const respeakTranslated: boolean[] = []
|
|
120
|
+
for (const part of body.split(",")) {
|
|
121
|
+
const sts = STS_SLOT.exec(part)
|
|
122
|
+
if (sts) {
|
|
123
|
+
const seconds = measureOf(sts[1])
|
|
124
|
+
if (seconds === undefined) return undefined
|
|
125
|
+
stsSlotSeconds.push(seconds)
|
|
126
|
+
continue
|
|
127
|
+
}
|
|
128
|
+
const respeak = RESPEAK_SLOT.exec(part)
|
|
129
|
+
if (!respeak) return undefined
|
|
130
|
+
const chars = measureOf(respeak[2])
|
|
131
|
+
if (chars === undefined) return undefined
|
|
132
|
+
const token = respeak[1]
|
|
133
|
+
respeakChars.push(chars)
|
|
134
|
+
respeakEngines.push(token === undefined ? null : token === "v3" ? "v3" : "v4")
|
|
135
|
+
respeakTranslated.push(token === "v4t")
|
|
136
|
+
}
|
|
137
|
+
return { stsSlotSeconds, respeakChars, respeakEngines, respeakTranslated }
|
|
138
|
+
}
|
|
@@ -63,6 +63,52 @@ const SCRAPER_HANDLE_EFFECTIVE_TYPE: Readonly<Record<string, string>> = {
|
|
|
63
63
|
}
|
|
64
64
|
const SCRAPER_SOURCE_TYPES = new Set(["meta-ads-scrape", "instagram-scrape"])
|
|
65
65
|
|
|
66
|
+
/**
|
|
67
|
+
* Output pips that emit a plain medium although their node is no producer of
|
|
68
|
+
* it: node type → pip → the canonical single-media producer the pip behaves
|
|
69
|
+
* as. A row here is NOT an identity remap (`ENTITY_IMAGE_HANDLE_TYPES`, which
|
|
70
|
+
* the identity gates and `sourceRefKey` read) and adds the node to no producer
|
|
71
|
+
* set: only a wire leaving THIS pip is that producer, so the node's other pips
|
|
72
|
+
* (UGC Creator's `creator` record) stay what they are. A frontend guard holds
|
|
73
|
+
* every row to a declared output drawn in that medium's colour.
|
|
74
|
+
*
|
|
75
|
+
* Both engines' input resolvers route a wire leaving one of these pips as the
|
|
76
|
+
* producer it names, and the editor's validators judge it the same way. A
|
|
77
|
+
* UGC wire input (a pip that reads one output of one UGC node) still judges
|
|
78
|
+
* the RAW node and pip, so a text pip keeps feeding the UGC input made for it.
|
|
79
|
+
*/
|
|
80
|
+
export const OUTPUT_PIP_EFFECTIVE_TYPES: Readonly<Record<string, Readonly<Record<string, string>>>> = Object.freeze({
|
|
81
|
+
// UGC Creator's `image`: the creator's first image, for any image input.
|
|
82
|
+
"ugc-creator": Object.freeze({ image: "upload-image" }),
|
|
83
|
+
// Site Capture's `image`: its section stills — the first on a plain wire, each or all on an Each / Bundle wire.
|
|
84
|
+
"site-capture": Object.freeze({ image: "upload-image" }),
|
|
85
|
+
// The UGC nodes' plain-text pips — the script's product category, the clips'
|
|
86
|
+
// transcript, the cards' Notes — are one text each (`combine-text`: one
|
|
87
|
+
// string, not a list): they reach text and prompt inputs, never a JSON input.
|
|
88
|
+
"ugc-script": Object.freeze({ category: "combine-text" }),
|
|
89
|
+
"ugc-clips": Object.freeze({ transcript: "combine-text" }),
|
|
90
|
+
"ugc-cards": Object.freeze({ report: "combine-text" }),
|
|
91
|
+
})
|
|
92
|
+
|
|
93
|
+
const own = <T>(table: Readonly<Record<string, T>>, key: string): T | undefined =>
|
|
94
|
+
Object.hasOwn(table, key) ? table[key] : undefined
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* The source type a legacy-handle classifier judges an edge by: the raw node
|
|
98
|
+
* type, unless the edge leaves an `OUTPUT_PIP_EFFECTIVE_TYPES` pip. Only that
|
|
99
|
+
* table: the entity, aggregate and scraper remaps of `resolveEffectiveSourceType`
|
|
100
|
+
* keep the classifiers' rewiring of existing graphs as it was. Read by the
|
|
101
|
+
* editor's load-time pass and the server's write-time normalizer alike.
|
|
102
|
+
*/
|
|
103
|
+
export function outputPipSourceType(
|
|
104
|
+
rawSourceType: string | undefined | null,
|
|
105
|
+
sourceHandleId: string | undefined | null,
|
|
106
|
+
): string {
|
|
107
|
+
const type = rawSourceType ?? ""
|
|
108
|
+
const pips = own(OUTPUT_PIP_EFFECTIVE_TYPES, type)
|
|
109
|
+
return (pips && typeof sourceHandleId === "string" ? own(pips, sourceHandleId) : undefined) ?? type
|
|
110
|
+
}
|
|
111
|
+
|
|
66
112
|
/**
|
|
67
113
|
* The effective output TYPE a given source handle emits. Returns the raw node
|
|
68
114
|
* type for every `(type, handle)` pair EXCEPT:
|
|
@@ -71,7 +117,8 @@ const SCRAPER_SOURCE_TYPES = new Set(["meta-ads-scrape", "instagram-scrape"])
|
|
|
71
117
|
* lane's media type (see AGGREGATE_LANE_EFFECTIVE_TYPE);
|
|
72
118
|
* - a Meta Ads `text` / `image` / `video` handle → the plain producer of
|
|
73
119
|
* that type (see META_ADS_HANDLE_EFFECTIVE_TYPE); its `json` handle keeps
|
|
74
|
-
* the raw type
|
|
120
|
+
* the raw type;
|
|
121
|
+
* - an `OUTPUT_PIP_EFFECTIVE_TYPES` pip → the producer its row names.
|
|
75
122
|
* Pure — safe for both frontend and backend.
|
|
76
123
|
*/
|
|
77
124
|
export function resolveEffectiveSourceType(
|
|
@@ -81,6 +128,8 @@ export function resolveEffectiveSourceType(
|
|
|
81
128
|
if (sourceHandleId === "image" && ENTITY_IMAGE_HANDLE_TYPES.has(rawSourceType ?? "")) {
|
|
82
129
|
return "upload-image"
|
|
83
130
|
}
|
|
131
|
+
const pipType = outputPipSourceType(rawSourceType, sourceHandleId)
|
|
132
|
+
if (pipType !== (rawSourceType ?? "")) return pipType
|
|
84
133
|
if (AGGREGATE_LANE_SOURCE_TYPES.has(rawSourceType ?? "")) {
|
|
85
134
|
const effective = AGGREGATE_LANE_EFFECTIVE_TYPE[sourceHandleId ?? ""]
|
|
86
135
|
if (effective) return effective
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@nodaro/shared/apps` — Published apps and the public API surface: presentation utils, exposed fields, picker restrictions, components, community listings, templates, OAuth scopes, recast segment packs.
|
|
3
|
+
*
|
|
4
|
+
* One of the package's subpath entries (see `src/index.ts`). The root
|
|
5
|
+
* re-exports every entry, so each name here is also importable from
|
|
6
|
+
* `@nodaro/shared`.
|
|
7
|
+
*/
|
|
8
|
+
export {
|
|
9
|
+
INPUT_NODE_TYPES,
|
|
10
|
+
getInputNodes,
|
|
11
|
+
getOutputNodes,
|
|
12
|
+
getOutputType,
|
|
13
|
+
getNodeResult,
|
|
14
|
+
getNodeLabel,
|
|
15
|
+
getInputFieldSchema,
|
|
16
|
+
INPUT_FIELD_EXTRA_KEYS,
|
|
17
|
+
getInputFieldExtraKeys,
|
|
18
|
+
mergeNodeInputOverrides,
|
|
19
|
+
flattenItems,
|
|
20
|
+
migrateToItems,
|
|
21
|
+
validateNoNestedGroups,
|
|
22
|
+
cleanOrphanedItems,
|
|
23
|
+
getItemSortId,
|
|
24
|
+
type OutputType,
|
|
25
|
+
type InputFieldSchema,
|
|
26
|
+
} from "../presentation-utils.js"
|
|
27
|
+
export {
|
|
28
|
+
LEGACY_EXPOSED_FIELD_KEYS,
|
|
29
|
+
canonicalExposedFieldKey,
|
|
30
|
+
canonicalizeOverrideKeys,
|
|
31
|
+
} from "../exposed-field-keys.js"
|
|
32
|
+
export { findRestrictedPickerValue, type PickerCardRestrictions } from "../picker-restrictions.js"
|
|
33
|
+
export {
|
|
34
|
+
INPUT_FIELD_MAP,
|
|
35
|
+
OUTPUT_FIELD_MAP,
|
|
36
|
+
HANDLE_PORT_SEPARATOR,
|
|
37
|
+
mergeExposedSettings,
|
|
38
|
+
parseHandleId,
|
|
39
|
+
applyHandleInputOverride,
|
|
40
|
+
isHandleInputWired,
|
|
41
|
+
type ComponentMetadata,
|
|
42
|
+
type ComponentHandle,
|
|
43
|
+
type ExposedSetting,
|
|
44
|
+
} from "../component-types.js"
|
|
45
|
+
export type {
|
|
46
|
+
CommunityEntityType,
|
|
47
|
+
CommunitySort,
|
|
48
|
+
CommunityReportReason,
|
|
49
|
+
CommunityCard,
|
|
50
|
+
CommunityFullDetail,
|
|
51
|
+
BrowseCommunityParams,
|
|
52
|
+
BrowseCommunityResult,
|
|
53
|
+
CloneListingResult,
|
|
54
|
+
FavoriteListingResult,
|
|
55
|
+
ReportListingResult,
|
|
56
|
+
PublishListingParams,
|
|
57
|
+
PublishListingResult,
|
|
58
|
+
SharedListing,
|
|
59
|
+
} from "../community.js"
|
|
60
|
+
export { OAUTH_SCOPES, type OAuthScope } from "../oauth-scopes.js"
|
|
61
|
+
export { RECAST_SEGMENT_PACKS, type RecastSegmentPack } from "../recast-segment-packs.js"
|
|
62
|
+
// --- Marketplace template categories (the eight use cases) ---
|
|
63
|
+
export * from "../template-categories.js"
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@nodaro/shared/captions` — Caption styles, caption plans and segment schemas, supported fonts.
|
|
3
|
+
*
|
|
4
|
+
* One of the package's subpath entries (see `src/index.ts`). The root
|
|
5
|
+
* re-exports every entry, so each name here is also importable from
|
|
6
|
+
* `@nodaro/shared`.
|
|
7
|
+
*/
|
|
8
|
+
export {
|
|
9
|
+
STATIC_CAPTION_STYLES,
|
|
10
|
+
KINETIC_CAPTION_STYLES,
|
|
11
|
+
ALL_CAPTION_STYLES,
|
|
12
|
+
isKineticCaptionStyle,
|
|
13
|
+
CAPTION_LOOK_IDS,
|
|
14
|
+
CAPTION_LOOKS,
|
|
15
|
+
DEFAULT_CAPTION_LOOK,
|
|
16
|
+
DEFAULT_SUBTITLE_LOOK,
|
|
17
|
+
KINETIC_ONLY_CAPTION_LEVER_KEYS,
|
|
18
|
+
captionRoutesToRemotion,
|
|
19
|
+
CAPTION_MAX_WORDS_PER_LINE_MIN,
|
|
20
|
+
CAPTION_MAX_WORDS_PER_LINE_MAX,
|
|
21
|
+
CAPTION_LEVER_BOUNDS,
|
|
22
|
+
normalizeCaptionNumericLevers,
|
|
23
|
+
autoStrokeWidth,
|
|
24
|
+
resolveCaptionLook,
|
|
25
|
+
resolveCaptionLevers,
|
|
26
|
+
} from "../caption-styles.js"
|
|
27
|
+
export type { StaticCaptionStyle, KineticCaptionStyle, CaptionStyle, CaptionLookId, CaptionLookLevers, KineticOnlyCaptionLeverKey } from "../caption-styles.js"
|
|
28
|
+
export type { CaptionPlan, CaptionWordTiming } from "../caption-plan.js"
|
|
29
|
+
export { parseCaptionPlan } from "../caption-plan.js"
|
|
30
|
+
export * from "../caption-segment-schema.js"
|
|
31
|
+
export * from "../caption-edge-dash.js"
|
|
32
|
+
export * from "../add-captions-plan.js"
|
|
33
|
+
// --- Remotion renderer: supported font names (shared with backend Zod validation) ---
|
|
34
|
+
export * from "../supported-fonts.js"
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@nodaro/shared/catalogs` — Parameter-node dimensions (animals, furniture, vehicles, weapons, character facets, seasons) and the parameter-node value gate.
|
|
3
|
+
*
|
|
4
|
+
* One of the package's subpath entries (see `src/index.ts`). The root
|
|
5
|
+
* re-exports every entry, so each name here is also importable from
|
|
6
|
+
* `@nodaro/shared`.
|
|
7
|
+
*/
|
|
8
|
+
export {
|
|
9
|
+
OBJECT_PICKER_NODE_TYPES,
|
|
10
|
+
} from "../object-picker-types.js"
|
|
11
|
+
export { SEASONS } from "../seasons.js"
|
|
12
|
+
export type { Season } from "../seasons.js"
|
|
13
|
+
export {
|
|
14
|
+
LOCATION_PRESET_TO_CATALOG,
|
|
15
|
+
LOCATION_BUCKET_TO_CATALOG_ID,
|
|
16
|
+
resolveLocationPresetCatalog,
|
|
17
|
+
} from "../location-preset-catalog-map.js"
|
|
18
|
+
export type { LocationCatalogRef } from "../location-preset-catalog-map.js"
|
|
19
|
+
export {
|
|
20
|
+
PARAMETER_NODE_TYPES,
|
|
21
|
+
HINT_EXEMPT_PARAMETER_TYPES,
|
|
22
|
+
VIDEO_ONLY_PARAMETER_NODE_TYPES,
|
|
23
|
+
EXECUTION_GRAPH_COMPOSED_PARAMETER_TYPES,
|
|
24
|
+
getParameterValue,
|
|
25
|
+
setRegisteredPersonPackFields,
|
|
26
|
+
} from "../parameter-node-value.js"
|
|
27
|
+
// Parameter-node dimensions (frontend pickers + backend hints)
|
|
28
|
+
|
|
29
|
+
export {
|
|
30
|
+
ANIMALS,
|
|
31
|
+
ANIMAL_SUBCATEGORY_LABELS,
|
|
32
|
+
ANIMAL_SUBCATEGORY_ORDER,
|
|
33
|
+
getAnimal,
|
|
34
|
+
getAnimalLabel,
|
|
35
|
+
getAnimalPromptHint,
|
|
36
|
+
getAnimalTerm,
|
|
37
|
+
} from "../animals.js"
|
|
38
|
+
export type { Animal, AnimalSubcategory } from "../animals.js"
|
|
39
|
+
export {
|
|
40
|
+
FURNITURE,
|
|
41
|
+
FURNITURE_SUBCATEGORY_LABELS,
|
|
42
|
+
FURNITURE_SUBCATEGORY_ORDER,
|
|
43
|
+
getFurniture,
|
|
44
|
+
getFurnitureLabel,
|
|
45
|
+
} from "../furniture.js"
|
|
46
|
+
export type { Furniture, FurnitureSubcategory } from "../furniture.js"
|
|
47
|
+
export * from "../character-facets.js"
|
|
48
|
+
export {
|
|
49
|
+
VEHICLES,
|
|
50
|
+
VEHICLE_SUBCATEGORY_LABELS,
|
|
51
|
+
VEHICLE_SUBCATEGORY_ORDER,
|
|
52
|
+
getVehicle,
|
|
53
|
+
getVehicleLabel,
|
|
54
|
+
} from "../vehicles.js"
|
|
55
|
+
export type { Vehicle, VehicleSubcategory } from "../vehicles.js"
|
|
56
|
+
export {
|
|
57
|
+
WEAPONS,
|
|
58
|
+
WEAPON_SUBCATEGORY_LABELS,
|
|
59
|
+
WEAPON_SUBCATEGORY_ORDER,
|
|
60
|
+
getWeapon,
|
|
61
|
+
getWeaponLabel,
|
|
62
|
+
} from "../weapons.js"
|
|
63
|
+
export type { Weapon, WeaponSubcategory } from "../weapons.js"
|
|
64
|
+
// Multi-pick utilities
|
|
65
|
+
export { pickIds, togglePick } from "../multi-pick.js"
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@nodaro/shared/credits` — Credit identifiers, estimators and the per-feature pricing shapes (what a user pays, never a rate).
|
|
3
|
+
*
|
|
4
|
+
* One of the package's subpath entries (see `src/index.ts`). The root
|
|
5
|
+
* re-exports every entry, so each name here is also importable from
|
|
6
|
+
* `@nodaro/shared`.
|
|
7
|
+
*/
|
|
8
|
+
export { usdToCredits, creditsToUsd, CREDIT_ROUNDING_RESOLUTION } from "../credit-conversion.js"
|
|
9
|
+
export {
|
|
10
|
+
FILM_BASE_CREDITS,
|
|
11
|
+
KEYFRAME_CREDITS_PER_SHOT,
|
|
12
|
+
VIDEO_CRITIC_CREDITS_PER_SHOT,
|
|
13
|
+
VIDEO_CLIP_CREDITS,
|
|
14
|
+
DEFAULT_VIDEO_CLIP_COST,
|
|
15
|
+
estimateFilmCredits,
|
|
16
|
+
} from "../film-pricing.js"
|
|
17
|
+
export type { VideoClipCost, FilmCreditEstimate } from "../film-pricing.js"
|
|
18
|
+
export {
|
|
19
|
+
buildCreditModelIdentifier,
|
|
20
|
+
resolveImageGenCreditIdentifier,
|
|
21
|
+
resolveNormalizedImageGen,
|
|
22
|
+
normalizedImageGenModelId,
|
|
23
|
+
imageGenAutoAspectNeedsSourceImage,
|
|
24
|
+
buildVideoCreditModelIdentifier,
|
|
25
|
+
seedanceVideoEditCreditId,
|
|
26
|
+
pricedVideoSelection,
|
|
27
|
+
buildMotionCreditModelIdentifier,
|
|
28
|
+
speedRampCreditId,
|
|
29
|
+
applyEdlCreditId,
|
|
30
|
+
speakerViewCreditId,
|
|
31
|
+
SPEAKER_VIEW_CREDIT_IDS,
|
|
32
|
+
SPEAKER_VIEW_PRICE_TIERS,
|
|
33
|
+
type SpeakerViewPriceTier,
|
|
34
|
+
type SpeakerViewCreditId,
|
|
35
|
+
sunoCreditType,
|
|
36
|
+
SUNO_VERSION_CREDIT_KEYS,
|
|
37
|
+
SUNO_VERSION_PRICED_OPERATIONS,
|
|
38
|
+
SUNO_SELECT_OPERATIONS,
|
|
39
|
+
} from "../credit-identifiers.js"
|
|
40
|
+
export type { NormalizedImageGen, PricedVideoSelection } from "../credit-identifiers.js"
|
|
41
|
+
export * from "../credit-estimators/index.js"
|
|
42
|
+
export {
|
|
43
|
+
resolveTopazUpscale,
|
|
44
|
+
TOPAZ_UPSCALE_FACTORS,
|
|
45
|
+
TOPAZ_DEFAULT_UPSCALE_FACTOR,
|
|
46
|
+
type TopazUpscaleFactor,
|
|
47
|
+
type TopazUpscaleAdjustment,
|
|
48
|
+
type TopazUpscaleResolution,
|
|
49
|
+
} from "../topaz-upscale.js"
|
|
50
|
+
export { calculateMonetizationMarkup, calculateMonetizedCost } from "../monetization.js"
|
|
51
|
+
export {
|
|
52
|
+
LIP_SYNC_DURATION_BUCKETS,
|
|
53
|
+
LIP_SYNC_MAX_AUDIO_SECONDS,
|
|
54
|
+
pickLipSyncBucket,
|
|
55
|
+
getLipSyncMaxAudioSeconds,
|
|
56
|
+
isPerSecondLipSyncProvider,
|
|
57
|
+
buildLipSyncCreditId,
|
|
58
|
+
} from "../lip-sync-pricing.js"
|
|
59
|
+
export type { LipSyncDurationBucket } from "../lip-sync-pricing.js"
|
|
60
|
+
export {
|
|
61
|
+
AI_AVATAR_MAX_DURATION_SEC,
|
|
62
|
+
AI_AVATAR_MAX_AUDIO_SEC,
|
|
63
|
+
AI_AVATAR_DURATION_BUCKETS,
|
|
64
|
+
AI_AVATAR_RESERVE_IDS,
|
|
65
|
+
aiAvatarReserveCreditId,
|
|
66
|
+
resolveAiAvatarCreditId,
|
|
67
|
+
estimateScriptDurationSec,
|
|
68
|
+
pickAiAvatarBucket,
|
|
69
|
+
} from "../ai-avatar-pricing.js"
|
|
70
|
+
export type { AiAvatarEngine, AiAvatarResolution, AiAvatarDurationBucket } from "../ai-avatar-pricing.js"
|
|
71
|
+
export * from "../switchx-pricing.js"
|
|
72
|
+
export {
|
|
73
|
+
CINEMATIC_MIN_DURATION_SEC,
|
|
74
|
+
CINEMATIC_MAX_DURATION_SEC,
|
|
75
|
+
CINEMATIC_DEFAULT_DURATION_SEC,
|
|
76
|
+
CINEMATIC_DEFAULT_RESOLUTION,
|
|
77
|
+
CINEMATIC_RESERVE_IDS,
|
|
78
|
+
clampCinematicDuration,
|
|
79
|
+
cinematicCreditId,
|
|
80
|
+
resolveCinematicCreditId,
|
|
81
|
+
} from "../cinematic-avatar-pricing.js"
|
|
82
|
+
export type { CinematicResolution } from "../cinematic-avatar-pricing.js"
|
|
83
|
+
export {
|
|
84
|
+
AvatarPayloadError,
|
|
85
|
+
validateAiAvatarPayload,
|
|
86
|
+
validateCinematicAvatarPayload,
|
|
87
|
+
CINEMATIC_PROMPT_MAX,
|
|
88
|
+
CINEMATIC_MAX_REFERENCE_VIDEOS,
|
|
89
|
+
CINEMATIC_MAX_REFERENCE_IMAGES,
|
|
90
|
+
CINEMATIC_MIN_LOOKS,
|
|
91
|
+
CINEMATIC_MAX_LOOKS,
|
|
92
|
+
} from "../avatar-payload-validators.js"
|
|
93
|
+
export {
|
|
94
|
+
resolveStoredTier,
|
|
95
|
+
resolveEffectiveTier,
|
|
96
|
+
isPaygRetentionActive,
|
|
97
|
+
PAYG_RETENTION_DAYS,
|
|
98
|
+
} from "../effective-tier.js"
|
|
99
|
+
// --- Video-analysis pricing (duration buckets + structural credit formula) ---
|
|
100
|
+
// Also hosts video-audit's sibling pricing (VIDEO_AUDIT_BUCKET_CREDITS +
|
|
101
|
+
// buildVideoAuditCreditId / videoAuditCreditsForBucket / bucketSecondsFromAuditCreditId).
|
|
102
|
+
export * from "../video-analysis-pricing.js"
|
|
103
|
+
// --- Content Recipe / Content Ideas pricing (credit ids + the per-five-ideas rule) ---
|
|
104
|
+
export * from "../content-recipe-ideas.js"
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@nodaro/shared/edl` — The edit decision list contract: EDL, speaker layouts/tracks, multicam, camera switch, edit plans.
|
|
3
|
+
*
|
|
4
|
+
* One of the package's subpath entries (see `src/index.ts`). The root
|
|
5
|
+
* re-exports every entry, so each name here is also importable from
|
|
6
|
+
* `@nodaro/shared`.
|
|
7
|
+
*/
|
|
8
|
+
export {
|
|
9
|
+
COMBINE_TRANSITIONS,
|
|
10
|
+
COMBINE_TRANSITION_IDS,
|
|
11
|
+
PICKER_TO_COMBINE_TRANSITION,
|
|
12
|
+
resolveSlideshowTransition,
|
|
13
|
+
COMBINE_TRANSITION_GROUP_ORDER,
|
|
14
|
+
COMBINE_TRANSITION_GROUP_LABELS,
|
|
15
|
+
getCombineTransition,
|
|
16
|
+
resolveXfadeName,
|
|
17
|
+
} from "../combine-transitions.js"
|
|
18
|
+
export type {
|
|
19
|
+
CombineTransition,
|
|
20
|
+
CombineTransitionGroup,
|
|
21
|
+
} from "../combine-transitions.js"
|
|
22
|
+
export {
|
|
23
|
+
AUDIO_CROSSFADE_CURVES,
|
|
24
|
+
AUDIO_CROSSFADE_CURVE_IDS,
|
|
25
|
+
DEFAULT_AUDIO_CROSSFADE_CURVE_ID,
|
|
26
|
+
getAudioCrossfadeCurve,
|
|
27
|
+
resolveAudioCrossfadeCurve,
|
|
28
|
+
} from "../audio-crossfade-curves.js"
|
|
29
|
+
export type { AudioCrossfadeCurve } from "../audio-crossfade-curves.js"
|
|
30
|
+
// --- Smart-cut best-pair search windows (shared bound + clamp) ---
|
|
31
|
+
export * from "../smart-cut-windows.js"
|
|
32
|
+
// --- EDL: the edit decision list contract (podcast editing primitives).
|
|
33
|
+
// Types + validators + pure remap/duration functions; structural only. ---
|
|
34
|
+
export * from "../edl.js"
|
|
35
|
+
export * from "../speaker-layouts.js"
|
|
36
|
+
export * from "../edl-multicam.js"
|
|
37
|
+
// Speaker tracks: the face-tracking result (box body + the node's descriptor) and its validators.
|
|
38
|
+
export * from "../speaker-tracks.js"
|
|
39
|
+
export * from "../camera-switch-contract.js"
|
|
40
|
+
export * from "../edit-plan-contract.js"
|
|
41
|
+
// A person's review of an Edit Plan (`editedEdl`) and the one resolver that applies it.
|
|
42
|
+
export * from "../edit-plan-review.js"
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@nodaro/shared/entities` — Characters, locations and objects: mention slugs, aspect defaults, entity fields and assets, references, reference sheets and boards.
|
|
3
|
+
*
|
|
4
|
+
* One of the package's subpath entries (see `src/index.ts`). The root
|
|
5
|
+
* re-exports every entry, so each name here is also importable from
|
|
6
|
+
* `@nodaro/shared`.
|
|
7
|
+
*/
|
|
8
|
+
export { FEATURED_ENTITIES, getFeaturedEntities } from "../featured-entities.js"
|
|
9
|
+
export type { FeaturedEntity } from "../featured-entities.js"
|
|
10
|
+
export {
|
|
11
|
+
IMAGE_REF_TYPES,
|
|
12
|
+
PASSTHROUGH_TYPES,
|
|
13
|
+
collectAncestorRefs,
|
|
14
|
+
} from "../ancestor-refs.js"
|
|
15
|
+
export {
|
|
16
|
+
expandExtraRefsToConnectedReferences,
|
|
17
|
+
} from "../extra-refs.js"
|
|
18
|
+
export type {
|
|
19
|
+
ExtraRefInput,
|
|
20
|
+
ExtraRefCharacterContext,
|
|
21
|
+
} from "../extra-refs.js"
|
|
22
|
+
export {
|
|
23
|
+
SURROUND_DIRECTIONS,
|
|
24
|
+
DEFAULT_CARRIED_FRACTION,
|
|
25
|
+
TILT_CARRIED_FRACTION,
|
|
26
|
+
isTiltDirection,
|
|
27
|
+
defaultCarriedFraction,
|
|
28
|
+
type SurroundDirection,
|
|
29
|
+
} from "../surround.js"
|
|
30
|
+
export {
|
|
31
|
+
OBJECT_ASPECT_OPTIONS,
|
|
32
|
+
OBJECT_ASPECT_DEFAULTS,
|
|
33
|
+
isObjectAspectRatio,
|
|
34
|
+
resolveObjectAspectRatio,
|
|
35
|
+
type ObjectAspectRatio,
|
|
36
|
+
type ObjectAssetTypeForAspect,
|
|
37
|
+
type ResolveObjectAspectOptions,
|
|
38
|
+
} from "../object-aspect-defaults.js"
|
|
39
|
+
export {
|
|
40
|
+
characterMentionSlug,
|
|
41
|
+
parseCharacterMentionToken,
|
|
42
|
+
findCharacterMentionTokens,
|
|
43
|
+
} from "../character-mention-slug.js"
|
|
44
|
+
export type { CharacterMentionTokenInfo } from "../character-mention-slug.js"
|
|
45
|
+
export {
|
|
46
|
+
CHARACTER_VARIANT_ASSET_BUCKETS,
|
|
47
|
+
characterVariantAssetArrays,
|
|
48
|
+
characterSheetRefItems,
|
|
49
|
+
characterBoardItems,
|
|
50
|
+
characterMentionableAssetArrays,
|
|
51
|
+
CHARACTER_PICKER_DISPLAY_ORDER,
|
|
52
|
+
characterBucketDisplayRank,
|
|
53
|
+
sortCharacterEntriesForDisplay,
|
|
54
|
+
} from "../character-variant-assets.js"
|
|
55
|
+
export type {
|
|
56
|
+
CharacterVariantAssetBucket,
|
|
57
|
+
CharacterVariantAssetItem,
|
|
58
|
+
} from "../character-variant-assets.js"
|
|
59
|
+
export {
|
|
60
|
+
LOCATION_USAGE_MODES,
|
|
61
|
+
DEFAULT_LOCATION_USAGE_MODE,
|
|
62
|
+
isLocationUsageMode,
|
|
63
|
+
locationMentionSlug,
|
|
64
|
+
locationUsageModeLabel,
|
|
65
|
+
parseLocationMentionToken,
|
|
66
|
+
findLocationMentionTokens,
|
|
67
|
+
} from "../location-mention-slug.js"
|
|
68
|
+
export type {
|
|
69
|
+
LocationUsageMode,
|
|
70
|
+
LocationMentionTokenInfo,
|
|
71
|
+
} from "../location-mention-slug.js"
|
|
72
|
+
export {
|
|
73
|
+
imageMentionSlug,
|
|
74
|
+
parseImageMentionToken,
|
|
75
|
+
findImageMentionTokens,
|
|
76
|
+
knownImageSlugsFromRefs,
|
|
77
|
+
imageMentionSlugForRef,
|
|
78
|
+
} from "../image-mention-slug.js"
|
|
79
|
+
export type { ImageMentionTokenInfo } from "../image-mention-slug.js"
|
|
80
|
+
// Wired-creature / wired-object mentions — the SAME 2-or-3-segment grammar as
|
|
81
|
+
// the named-image mention (both are views of `mention-token-grammar.ts`), with
|
|
82
|
+
// their own ref gate. The grammar core itself stays internal to the package: it
|
|
83
|
+
// has no standalone consumer, and a third public `@slug:N` surface would invite
|
|
84
|
+
// call sites that bypass a kind's gate.
|
|
85
|
+
export {
|
|
86
|
+
entityMentionSlug,
|
|
87
|
+
parseEntityMentionToken,
|
|
88
|
+
findEntityMentionTokens,
|
|
89
|
+
knownEntitySlugsFromRefs,
|
|
90
|
+
entityMentionSlugForRef,
|
|
91
|
+
} from "../entity-mention-slug.js"
|
|
92
|
+
export type { EntityMentionTokenInfo } from "../entity-mention-slug.js"
|
|
93
|
+
export {
|
|
94
|
+
toConnectedReference,
|
|
95
|
+
toConnectedReferences,
|
|
96
|
+
} from "../to-connected-references.js"
|
|
97
|
+
export type { EntityReferenceInput } from "../to-connected-references.js"
|
|
98
|
+
export {
|
|
99
|
+
USAGE_MODES,
|
|
100
|
+
DEFAULT_USAGE_MODE,
|
|
101
|
+
isUsageMode,
|
|
102
|
+
usageModeDirective,
|
|
103
|
+
usageModeLabel,
|
|
104
|
+
usageModeIncludesName,
|
|
105
|
+
} from "../character-usage-mode.js"
|
|
106
|
+
export type { UsageMode } from "../character-usage-mode.js"
|
|
107
|
+
export {
|
|
108
|
+
CHARACTER_ASPECT_OPTIONS,
|
|
109
|
+
CHARACTER_ASPECT_DEFAULTS,
|
|
110
|
+
isCharacterAspectRatio,
|
|
111
|
+
resolveCharacterAspectRatio,
|
|
112
|
+
} from "../character-aspect-defaults.js"
|
|
113
|
+
export type {
|
|
114
|
+
CharacterAspectRatio,
|
|
115
|
+
CharacterAssetTypeForAspect,
|
|
116
|
+
ResolveCharacterAspectOptions,
|
|
117
|
+
} from "../character-aspect-defaults.js"
|
|
118
|
+
export {
|
|
119
|
+
ENTITY_ASPECT_DEFAULTS,
|
|
120
|
+
resolveEntityAspect,
|
|
121
|
+
aspectRatioToNumber,
|
|
122
|
+
} from "../entity-aspect-defaults.js"
|
|
123
|
+
export type { EntityStudioKind } from "../entity-aspect-defaults.js"
|
|
124
|
+
// --- Reference Sheet (catalog, types, planner) ---
|
|
125
|
+
export * from "../reference-sheet/index.js"
|
|
126
|
+
// --- Reference Board (templates + provider constant) ---
|
|
127
|
+
export * from "../reference-board-templates.js"
|
|
128
|
+
// --- Entity image-handle parity (entity `image` source handle → plain image) ---
|
|
129
|
+
export * from "../entity-image-handle.js"
|
|
130
|
+
// --- Type-aware reference-role registry (presets + default + phrase renderer) ---
|
|
131
|
+
export * from "../reference-roles.js"
|
|
132
|
+
export * from "../entity-asset-types.js"
|
|
133
|
+
export {
|
|
134
|
+
ENTITY_DB_ID_FIELD,
|
|
135
|
+
ENTITY_NAME_FIELD,
|
|
136
|
+
ENTITY_TABLE,
|
|
137
|
+
ENTITY_BUCKET_FIELDS,
|
|
138
|
+
ENTITY_KIND_SCALAR_FIELDS,
|
|
139
|
+
ENTITY_SCALAR_FIELDS,
|
|
140
|
+
entityScalarFields,
|
|
141
|
+
entityHydrationColumns,
|
|
142
|
+
} from "../entity-node-fields.js"
|
|
143
|
+
export { ENTITY_NODE_KINDS } from "../entity-node-fields.js"
|
|
144
|
+
export type { EntityNodeKind } from "../entity-node-fields.js"
|