@nodaro/shared 3.31.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.
Files changed (372) hide show
  1. package/README.md +17 -0
  2. package/dist/chunk-2NIQO2J3.cjs +54 -0
  3. package/dist/chunk-2NIQO2J3.cjs.map +1 -0
  4. package/dist/chunk-2OJIVO7R.cjs +32 -0
  5. package/dist/chunk-2OJIVO7R.cjs.map +1 -0
  6. package/dist/chunk-2RF4Z7KG.cjs +803 -0
  7. package/dist/chunk-2RF4Z7KG.cjs.map +1 -0
  8. package/dist/chunk-3CUFITU7.js +1905 -0
  9. package/dist/chunk-3CUFITU7.js.map +1 -0
  10. package/dist/chunk-3RYKIUAE.js +86 -0
  11. package/dist/chunk-3RYKIUAE.js.map +1 -0
  12. package/dist/chunk-44I73CQS.cjs +194 -0
  13. package/dist/chunk-44I73CQS.cjs.map +1 -0
  14. package/dist/chunk-5AUSSJIM.cjs +3372 -0
  15. package/dist/chunk-5AUSSJIM.cjs.map +1 -0
  16. package/dist/chunk-5PC6JBGJ.cjs +1419 -0
  17. package/dist/chunk-5PC6JBGJ.cjs.map +1 -0
  18. package/dist/chunk-5RU2HCW2.js +30 -0
  19. package/dist/chunk-5RU2HCW2.js.map +1 -0
  20. package/dist/chunk-5THUHJ3E.js +46 -0
  21. package/dist/chunk-5THUHJ3E.js.map +1 -0
  22. package/dist/chunk-5U7VLG43.js +141 -0
  23. package/dist/chunk-5U7VLG43.js.map +1 -0
  24. package/dist/chunk-6DAWSVX2.cjs +103 -0
  25. package/dist/chunk-6DAWSVX2.cjs.map +1 -0
  26. package/dist/chunk-6DKDOWBL.js +1567 -0
  27. package/dist/chunk-6DKDOWBL.js.map +1 -0
  28. package/dist/chunk-6IJOPRZP.cjs +197 -0
  29. package/dist/chunk-6IJOPRZP.cjs.map +1 -0
  30. package/dist/chunk-7G7G42KS.js +86 -0
  31. package/dist/chunk-7G7G42KS.js.map +1 -0
  32. package/dist/chunk-AINCI23X.js +2171 -0
  33. package/dist/chunk-AINCI23X.js.map +1 -0
  34. package/dist/chunk-AROWPFO2.js +773 -0
  35. package/dist/chunk-AROWPFO2.js.map +1 -0
  36. package/dist/chunk-AVQK77G6.cjs +2000 -0
  37. package/dist/chunk-AVQK77G6.cjs.map +1 -0
  38. package/dist/chunk-C57NEO3X.js +3327 -0
  39. package/dist/chunk-C57NEO3X.js.map +1 -0
  40. package/dist/chunk-CK3GK34R.js +1381 -0
  41. package/dist/chunk-CK3GK34R.js.map +1 -0
  42. package/dist/chunk-E2TGXG6X.cjs +1770 -0
  43. package/dist/chunk-E2TGXG6X.cjs.map +1 -0
  44. package/dist/chunk-EK362Q45.cjs +38 -0
  45. package/dist/chunk-EK362Q45.cjs.map +1 -0
  46. package/dist/chunk-FBV5DF6D.js +95 -0
  47. package/dist/chunk-FBV5DF6D.js.map +1 -0
  48. package/dist/chunk-FG4E7MTG.cjs +4 -0
  49. package/dist/chunk-FG4E7MTG.cjs.map +1 -0
  50. package/dist/chunk-G6IIVKMO.js +26 -0
  51. package/dist/chunk-G6IIVKMO.js.map +1 -0
  52. package/dist/chunk-HGC5JNVA.cjs +1503 -0
  53. package/dist/chunk-HGC5JNVA.cjs.map +1 -0
  54. package/dist/chunk-HSHCCBIV.js +255 -0
  55. package/dist/chunk-HSHCCBIV.js.map +1 -0
  56. package/dist/chunk-IEBZHTPE.js +254 -0
  57. package/dist/chunk-IEBZHTPE.js.map +1 -0
  58. package/dist/chunk-ISJDAFKS.js +1604 -0
  59. package/dist/chunk-ISJDAFKS.js.map +1 -0
  60. package/dist/chunk-J6KHW2E5.cjs +1963 -0
  61. package/dist/chunk-J6KHW2E5.cjs.map +1 -0
  62. package/dist/chunk-J7BMO73N.cjs +114 -0
  63. package/dist/chunk-J7BMO73N.cjs.map +1 -0
  64. package/dist/chunk-JL4C5VJ7.cjs +488 -0
  65. package/dist/chunk-JL4C5VJ7.cjs.map +1 -0
  66. package/dist/chunk-JSGIEF6Z.cjs +1087 -0
  67. package/dist/chunk-JSGIEF6Z.cjs.map +1 -0
  68. package/dist/chunk-JSNV5O2F.cjs +34 -0
  69. package/dist/chunk-JSNV5O2F.cjs.map +1 -0
  70. package/dist/chunk-JWA5SGCS.js +203 -0
  71. package/dist/chunk-JWA5SGCS.js.map +1 -0
  72. package/dist/chunk-JX5YZ4DH.cjs +430 -0
  73. package/dist/chunk-JX5YZ4DH.cjs.map +1 -0
  74. package/dist/chunk-KHCBJ7KD.js +42 -0
  75. package/dist/chunk-KHCBJ7KD.js.map +1 -0
  76. package/dist/chunk-KU6S7IYV.cjs +210 -0
  77. package/dist/chunk-KU6S7IYV.cjs.map +1 -0
  78. package/dist/chunk-LKAIXWK3.js +181 -0
  79. package/dist/chunk-LKAIXWK3.js.map +1 -0
  80. package/dist/chunk-LPW3XNC2.js +471 -0
  81. package/dist/chunk-LPW3XNC2.js.map +1 -0
  82. package/dist/chunk-M36G6SRP.js +447 -0
  83. package/dist/chunk-M36G6SRP.js.map +1 -0
  84. package/dist/chunk-MRXGWL42.cjs +4 -0
  85. package/dist/chunk-MRXGWL42.cjs.map +1 -0
  86. package/dist/chunk-NB72XWXQ.cjs +54 -0
  87. package/dist/chunk-NB72XWXQ.cjs.map +1 -0
  88. package/dist/chunk-NEJ2PV4C.cjs +211 -0
  89. package/dist/chunk-NEJ2PV4C.cjs.map +1 -0
  90. package/dist/chunk-NT6IJH4L.cjs +273 -0
  91. package/dist/chunk-NT6IJH4L.cjs.map +1 -0
  92. package/dist/chunk-O5MP52U2.cjs +526 -0
  93. package/dist/chunk-O5MP52U2.cjs.map +1 -0
  94. package/dist/chunk-O7PUQLJ3.cjs +818 -0
  95. package/dist/chunk-O7PUQLJ3.cjs.map +1 -0
  96. package/dist/chunk-PQHS255G.js +1369 -0
  97. package/dist/chunk-PQHS255G.js.map +1 -0
  98. package/dist/chunk-PRYE7AZQ.cjs +1227 -0
  99. package/dist/chunk-PRYE7AZQ.cjs.map +1 -0
  100. package/dist/chunk-Q4CDQ2KO.js +21 -0
  101. package/dist/chunk-Q4CDQ2KO.js.map +1 -0
  102. package/dist/chunk-QELDJGDK.cjs +1714 -0
  103. package/dist/chunk-QELDJGDK.cjs.map +1 -0
  104. package/dist/chunk-QJRP44ZO.js +769 -0
  105. package/dist/chunk-QJRP44ZO.js.map +1 -0
  106. package/dist/chunk-QNGNOU4Z.js +29 -0
  107. package/dist/chunk-QNGNOU4Z.js.map +1 -0
  108. package/dist/chunk-RJL7RCEM.cjs +159 -0
  109. package/dist/chunk-RJL7RCEM.cjs.map +1 -0
  110. package/dist/chunk-RN3RMBJZ.js +1164 -0
  111. package/dist/chunk-RN3RMBJZ.js.map +1 -0
  112. package/dist/chunk-S5DMKUWK.cjs +1273 -0
  113. package/dist/chunk-S5DMKUWK.cjs.map +1 -0
  114. package/dist/chunk-SES6GDBQ.cjs +624 -0
  115. package/dist/chunk-SES6GDBQ.cjs.map +1 -0
  116. package/dist/chunk-TNPDV7I4.cjs +2346 -0
  117. package/dist/chunk-TNPDV7I4.cjs.map +1 -0
  118. package/dist/chunk-TZBIY5C3.js +187 -0
  119. package/dist/chunk-TZBIY5C3.js.map +1 -0
  120. package/dist/chunk-TZE673G6.js +3 -0
  121. package/dist/chunk-TZE673G6.js.map +1 -0
  122. package/dist/chunk-ULXI7A6Q.cjs +1047 -0
  123. package/dist/chunk-ULXI7A6Q.cjs.map +1 -0
  124. package/dist/chunk-VIWSWVAW.js +1782 -0
  125. package/dist/chunk-VIWSWVAW.js.map +1 -0
  126. package/dist/chunk-VWGNPMJZ.cjs +19 -0
  127. package/dist/chunk-VWGNPMJZ.cjs.map +1 -0
  128. package/dist/chunk-WDIBOWAA.js +1054 -0
  129. package/dist/chunk-WDIBOWAA.js.map +1 -0
  130. package/dist/chunk-WNG7HRVA.cjs +25 -0
  131. package/dist/chunk-WNG7HRVA.cjs.map +1 -0
  132. package/dist/chunk-WNVQ3SMB.cjs +96 -0
  133. package/dist/chunk-WNVQ3SMB.cjs.map +1 -0
  134. package/dist/chunk-WRSWH7US.cjs +285 -0
  135. package/dist/chunk-WRSWH7US.cjs.map +1 -0
  136. package/dist/chunk-XAMC4S53.js +17 -0
  137. package/dist/chunk-XAMC4S53.js.map +1 -0
  138. package/dist/chunk-XNISPHTZ.js +1039 -0
  139. package/dist/chunk-XNISPHTZ.js.map +1 -0
  140. package/dist/chunk-Y2PM3FFL.js +3 -0
  141. package/dist/chunk-Y2PM3FFL.js.map +1 -0
  142. package/dist/chunk-YBPBK5KI.js +1030 -0
  143. package/dist/chunk-YBPBK5KI.js.map +1 -0
  144. package/dist/chunk-YHRG7UOC.js +31 -0
  145. package/dist/chunk-YHRG7UOC.js.map +1 -0
  146. package/dist/chunk-YWNYGYI7.cjs +31 -0
  147. package/dist/chunk-YWNYGYI7.cjs.map +1 -0
  148. package/dist/chunk-YYV35XOS.js +122 -0
  149. package/dist/chunk-YYV35XOS.js.map +1 -0
  150. package/dist/chunk-Z2OL5AJD.cjs +133 -0
  151. package/dist/chunk-Z2OL5AJD.cjs.map +1 -0
  152. package/dist/chunk-Z4AZW6FY.js +920 -0
  153. package/dist/chunk-Z4AZW6FY.js.map +1 -0
  154. package/dist/chunk-ZDFHA2EC.js +572 -0
  155. package/dist/chunk-ZDFHA2EC.js.map +1 -0
  156. package/dist/chunk-ZNZDQAXN.js +175 -0
  157. package/dist/chunk-ZNZDQAXN.js.map +1 -0
  158. package/dist/chunk-ZRL2UFTH.cjs +1073 -0
  159. package/dist/chunk-ZRL2UFTH.cjs.map +1 -0
  160. package/dist/chunk-ZT77RY6R.js +404 -0
  161. package/dist/chunk-ZT77RY6R.js.map +1 -0
  162. package/dist/entries/apps.cjs +155 -0
  163. package/dist/entries/apps.cjs.map +1 -0
  164. package/dist/entries/apps.d.cts +283 -0
  165. package/dist/entries/apps.d.ts +283 -0
  166. package/dist/entries/apps.js +10 -0
  167. package/dist/entries/apps.js.map +1 -0
  168. package/dist/entries/captions.cjs +124 -0
  169. package/dist/entries/captions.cjs.map +1 -0
  170. package/dist/entries/captions.d.cts +354 -0
  171. package/dist/entries/captions.d.ts +354 -0
  172. package/dist/entries/captions.js +3 -0
  173. package/dist/entries/captions.js.map +1 -0
  174. package/dist/entries/catalogs.cjs +165 -0
  175. package/dist/entries/catalogs.cjs.map +1 -0
  176. package/dist/entries/catalogs.d.cts +385 -0
  177. package/dist/entries/catalogs.d.ts +385 -0
  178. package/dist/entries/catalogs.js +4 -0
  179. package/dist/entries/catalogs.js.map +1 -0
  180. package/dist/entries/credits.cjs +592 -0
  181. package/dist/entries/credits.cjs.map +1 -0
  182. package/dist/entries/credits.d.cts +1429 -0
  183. package/dist/entries/credits.d.ts +1429 -0
  184. package/dist/entries/credits.js +11 -0
  185. package/dist/entries/credits.js.map +1 -0
  186. package/dist/entries/edl.cjs +409 -0
  187. package/dist/entries/edl.cjs.map +1 -0
  188. package/dist/entries/edl.d.cts +1199 -0
  189. package/dist/entries/edl.d.ts +1199 -0
  190. package/dist/entries/edl.js +4 -0
  191. package/dist/entries/edl.js.map +1 -0
  192. package/dist/entries/entities.cjs +530 -0
  193. package/dist/entries/entities.cjs.map +1 -0
  194. package/dist/entries/entities.d.cts +1371 -0
  195. package/dist/entries/entities.d.ts +1371 -0
  196. package/dist/entries/entities.js +5 -0
  197. package/dist/entries/entities.js.map +1 -0
  198. package/dist/entries/i18n.cjs +48 -0
  199. package/dist/entries/i18n.cjs.map +1 -0
  200. package/dist/entries/i18n.d.cts +69 -0
  201. package/dist/entries/i18n.d.ts +69 -0
  202. package/dist/entries/i18n.js +3 -0
  203. package/dist/entries/i18n.js.map +1 -0
  204. package/dist/entries/llm-models.cjs +177 -0
  205. package/dist/entries/llm-models.cjs.map +1 -0
  206. package/dist/entries/llm-models.d.cts +435 -0
  207. package/dist/entries/llm-models.d.ts +435 -0
  208. package/dist/entries/llm-models.js +4 -0
  209. package/dist/entries/llm-models.js.map +1 -0
  210. package/dist/entries/media.cjs +335 -0
  211. package/dist/entries/media.cjs.map +1 -0
  212. package/dist/entries/media.d.cts +518 -0
  213. package/dist/entries/media.d.ts +518 -0
  214. package/dist/entries/media.js +6 -0
  215. package/dist/entries/media.js.map +1 -0
  216. package/dist/entries/model-catalog.cjs +247 -0
  217. package/dist/entries/model-catalog.cjs.map +1 -0
  218. package/dist/entries/model-catalog.d.cts +202 -0
  219. package/dist/entries/model-catalog.d.ts +202 -0
  220. package/dist/entries/model-catalog.js +6 -0
  221. package/dist/entries/model-catalog.js.map +1 -0
  222. package/dist/entries/models.cjs +833 -0
  223. package/dist/entries/models.cjs.map +1 -0
  224. package/dist/entries/models.d.cts +287 -0
  225. package/dist/entries/models.d.ts +287 -0
  226. package/dist/entries/models.js +8 -0
  227. package/dist/entries/models.js.map +1 -0
  228. package/dist/entries/nodes.cjs +789 -0
  229. package/dist/entries/nodes.cjs.map +1 -0
  230. package/dist/entries/nodes.d.cts +1600 -0
  231. package/dist/entries/nodes.d.ts +1600 -0
  232. package/dist/entries/nodes.js +16 -0
  233. package/dist/entries/nodes.js.map +1 -0
  234. package/dist/entries/organizations.cjs +80 -0
  235. package/dist/entries/organizations.cjs.map +1 -0
  236. package/dist/entries/organizations.d.cts +466 -0
  237. package/dist/entries/organizations.d.ts +466 -0
  238. package/dist/entries/organizations.js +3 -0
  239. package/dist/entries/organizations.js.map +1 -0
  240. package/dist/entries/pipeline.cjs +594 -0
  241. package/dist/entries/pipeline.cjs.map +1 -0
  242. package/dist/entries/pipeline.d.cts +2617 -0
  243. package/dist/entries/pipeline.d.ts +2617 -0
  244. package/dist/entries/pipeline.js +5 -0
  245. package/dist/entries/pipeline.js.map +1 -0
  246. package/dist/entries/scene3d.cjs +704 -0
  247. package/dist/entries/scene3d.cjs.map +1 -0
  248. package/dist/entries/scene3d.d.cts +4284 -0
  249. package/dist/entries/scene3d.d.ts +4284 -0
  250. package/dist/entries/scene3d.js +3 -0
  251. package/dist/entries/scene3d.js.map +1 -0
  252. package/dist/entries/social.cjs +714 -0
  253. package/dist/entries/social.cjs.map +1 -0
  254. package/dist/entries/social.d.cts +1366 -0
  255. package/dist/entries/social.d.ts +1366 -0
  256. package/dist/entries/social.js +5 -0
  257. package/dist/entries/social.js.map +1 -0
  258. package/dist/entries/types.cjs +13 -0
  259. package/dist/entries/types.cjs.map +1 -0
  260. package/dist/entries/types.d.cts +162 -0
  261. package/dist/entries/types.d.ts +162 -0
  262. package/dist/entries/types.js +4 -0
  263. package/dist/entries/types.js.map +1 -0
  264. package/dist/entries/ugc.cjs +279 -0
  265. package/dist/entries/ugc.cjs.map +1 -0
  266. package/dist/entries/ugc.d.cts +575 -0
  267. package/dist/entries/ugc.d.ts +575 -0
  268. package/dist/entries/ugc.js +6 -0
  269. package/dist/entries/ugc.js.map +1 -0
  270. package/dist/entries/video.cjs +549 -0
  271. package/dist/entries/video.cjs.map +1 -0
  272. package/dist/entries/video.d.cts +1791 -0
  273. package/dist/entries/video.d.ts +1791 -0
  274. package/dist/entries/video.js +8 -0
  275. package/dist/entries/video.js.map +1 -0
  276. package/dist/entries/workflow.cjs +574 -0
  277. package/dist/entries/workflow.cjs.map +1 -0
  278. package/dist/entries/workflow.d.cts +1733 -0
  279. package/dist/entries/workflow.d.ts +1733 -0
  280. package/dist/entries/workflow.js +5 -0
  281. package/dist/entries/workflow.js.map +1 -0
  282. package/dist/fan-out-meta-Bu6VyXcZ.d.cts +19 -0
  283. package/dist/fan-out-meta-Bu6VyXcZ.d.ts +19 -0
  284. package/dist/gemini-omni-voices-zeRXxSbZ.d.cts +174 -0
  285. package/dist/gemini-omni-voices-zeRXxSbZ.d.ts +174 -0
  286. package/dist/image-overlay-layers-CyBfRhxJ.d.cts +208 -0
  287. package/dist/image-overlay-layers-CyBfRhxJ.d.ts +208 -0
  288. package/dist/index.cjs +7731 -27084
  289. package/dist/index.cjs.map +1 -1
  290. package/dist/index.d.cts +32 -24198
  291. package/dist/index.d.ts +32 -24198
  292. package/dist/index.js +40 -25220
  293. package/dist/index.js.map +1 -1
  294. package/dist/model-catalog-flJYaa-g.d.cts +561 -0
  295. package/dist/model-catalog-flJYaa-g.d.ts +561 -0
  296. package/dist/presentation-types-0ENOCjoj.d.cts +61 -0
  297. package/dist/presentation-types-0ENOCjoj.d.ts +61 -0
  298. package/dist/presentation-utils-BIqiCzSA.d.cts +90 -0
  299. package/dist/presentation-utils-BdiObtwq.d.ts +90 -0
  300. package/dist/scene-node-types-DjenYFLO.d.cts +1949 -0
  301. package/dist/scene-node-types-DjenYFLO.d.ts +1949 -0
  302. package/dist/supported-fonts-CRoF1gOy.d.cts +16 -0
  303. package/dist/supported-fonts-CRoF1gOy.d.ts +16 -0
  304. package/dist/types-BRlFPEru.d.cts +511 -0
  305. package/dist/types-BRlFPEru.d.ts +511 -0
  306. package/dist/types-DffyGSy5.d.cts +67 -0
  307. package/dist/types-DffyGSy5.d.ts +67 -0
  308. package/package.json +102 -1
  309. package/src/__tests__/add-captions-plan.test.ts +6 -2
  310. package/src/__tests__/caption-edge-dash.test.ts +23 -0
  311. package/src/__tests__/fixtures/root-exports.baseline.json +4625 -0
  312. package/src/__tests__/input-field-extra-keys.test.ts +1 -0
  313. package/src/__tests__/no-internal-imports.test.ts +1 -1
  314. package/src/__tests__/node-aspect-ratio.test.ts +25 -0
  315. package/src/__tests__/node-runtime-keys.test.ts +9 -0
  316. package/src/__tests__/package-entries.test.ts +50 -0
  317. package/src/__tests__/pitch-tempo-pricing.test.ts +21 -0
  318. package/src/__tests__/preview-gate-use-case.test.ts +151 -0
  319. package/src/__tests__/run-continuation.test.ts +7 -1
  320. package/src/__tests__/site-capture-node.test.ts +58 -0
  321. package/src/__tests__/ugc-lane-wires.test.ts +228 -0
  322. package/src/__tests__/ugc-node-wires.test.ts +9 -3
  323. package/src/__tests__/ugc-run-state.test.ts +5 -4
  324. package/src/__tests__/video-analysis-catalog-sync.test.ts +1 -1
  325. package/src/__tests__/video-analysis-pricing.test.ts +6 -6
  326. package/src/__tests__/voice-changer-pro-quote.test.ts +79 -0
  327. package/src/add-captions-plan.ts +9 -3
  328. package/src/caption-edge-dash.ts +33 -0
  329. package/src/credit-estimators/index.ts +22 -1
  330. package/src/credit-estimators/pitch-tempo.ts +15 -1
  331. package/src/credit-estimators/speech.ts +72 -4
  332. package/src/credit-estimators/unit-quote.ts +52 -0
  333. package/src/credit-estimators/video-sfx.ts +15 -0
  334. package/src/credit-estimators/voice-changer-pro-quote.ts +138 -0
  335. package/src/entity-image-handle.ts +2 -0
  336. package/src/entries/apps.ts +63 -0
  337. package/src/entries/captions.ts +34 -0
  338. package/src/entries/catalogs.ts +65 -0
  339. package/src/entries/credits.ts +104 -0
  340. package/src/entries/edl.ts +42 -0
  341. package/src/entries/entities.ts +144 -0
  342. package/src/entries/i18n.ts +31 -0
  343. package/src/entries/llm-models.ts +63 -0
  344. package/src/entries/media.ts +36 -0
  345. package/src/entries/model-catalog.ts +89 -0
  346. package/src/entries/models.ts +266 -0
  347. package/src/entries/nodes.ts +245 -0
  348. package/src/entries/organizations.ts +9 -0
  349. package/src/entries/pipeline.ts +43 -0
  350. package/src/entries/scene3d.ts +27 -0
  351. package/src/entries/social.ts +297 -0
  352. package/src/entries/types.ts +26 -0
  353. package/src/entries/ugc.ts +14 -0
  354. package/src/entries/video.ts +59 -0
  355. package/src/entries/workflow.ts +172 -0
  356. package/src/fan-out-rows.ts +2 -0
  357. package/src/index.ts +25 -1845
  358. package/src/json-kinds.ts +4 -0
  359. package/src/model-catalog.ts +36 -34
  360. package/src/node-mappable-fields.ts +1 -0
  361. package/src/node-run-routes.ts +2 -0
  362. package/src/node-runtime-keys.ts +8 -0
  363. package/src/normalize-node-params.ts +30 -0
  364. package/src/presentation-utils.ts +5 -0
  365. package/src/preview-gate.ts +92 -14
  366. package/src/producer-types.ts +16 -2
  367. package/src/run-continuation.ts +21 -0
  368. package/src/site-capture-node.ts +82 -0
  369. package/src/ugc-lane-wires.ts +246 -0
  370. package/src/ugc-node-wires.ts +37 -7
  371. package/src/ugc-run-state.ts +5 -3
  372. package/src/video-analysis-pricing.ts +31 -29
@@ -0,0 +1,518 @@
1
+ export { D as DEFAULT_OVERLAY_QR, a as DEFAULT_OVERLAY_SHAPE, b as DEFAULT_OVERLAY_TEXT, O as OVERLAY_ANCHORS, c as OVERLAY_FONTS, d as OVERLAY_FONT_IDS, e as OVERLAY_IMAGE_MASKS, f as OVERLAY_LAYER_KINDS, g as OVERLAY_TEXT_ALIGNS, h as OverlayAnchor, i as OverlayFontId, j as OverlayImageEffects, k as OverlayImageMask, l as OverlayLayerKind, m as OverlayQrStyle, n as OverlayShapeStyle, o as OverlayTextAlign, p as OverlayTextStyle, q as isRtlText, r as overlayFontById, s as overlayImageEffectsSchema, t as overlayQrStyleSchema, u as overlayShapeStyleSchema, v as overlayStrokeSchema, w as overlayTextStyleSchema } from '../image-overlay-layers-CyBfRhxJ.js';
2
+ import 'zod';
3
+
4
+ declare const NODARO_LOAD_VIDEO = "NODARO_LOAD_VIDEO";
5
+ declare const NODARO_LOAD_TIMELINE = "NODARO_LOAD_TIMELINE";
6
+ declare const NODARO_IMPORT_FILES = "NODARO_IMPORT_FILES";
7
+ declare const NODARO_RESET_PROJECT = "NODARO_RESET_PROJECT";
8
+ declare const FREECUT_READY = "FREECUT_READY";
9
+ declare const FREECUT_EXPORT_COMPLETE = "FREECUT_EXPORT_COMPLETE";
10
+ declare const FREECUT_EXPORT_PROGRESS = "FREECUT_EXPORT_PROGRESS";
11
+ declare const FREECUT_REQUEST_IMPORT = "FREECUT_REQUEST_IMPORT";
12
+ interface FreecutImportFile {
13
+ readonly name: string;
14
+ readonly type: string;
15
+ readonly size: number;
16
+ readonly buffer: ArrayBuffer;
17
+ }
18
+ interface NodaroLoadVideoPayload {
19
+ readonly videoUrl: string;
20
+ /** Display/file name for the primary video ("Shot 1.mp4") — optional; absent = URL-derived name (fork default). */
21
+ readonly videoName?: string;
22
+ readonly videoBuffer?: ArrayBuffer;
23
+ readonly projectJson?: unknown;
24
+ readonly additionalFiles?: ReadonlyArray<FreecutImportFile>;
25
+ }
26
+ interface NodaroLoadTimelinePayload {
27
+ readonly clips: ReadonlyArray<string>;
28
+ }
29
+ interface FreecutExportCompletePayload {
30
+ readonly videoBuffer: ArrayBuffer;
31
+ readonly projectJson?: unknown;
32
+ }
33
+ interface FreecutExportProgressPayload {
34
+ readonly percent: number;
35
+ }
36
+ interface FreecutRequestImportPayload {
37
+ readonly accept?: string;
38
+ readonly multiple?: boolean;
39
+ }
40
+
41
+ interface PixelBox {
42
+ x: number;
43
+ y: number;
44
+ width: number;
45
+ height: number;
46
+ }
47
+ interface MaskRegionDescriptor {
48
+ /** bbox normalized to 0..1 against the image, clamped so x+width ≤ 1 and y+height ≤ 1. */
49
+ normBbox: PixelBox;
50
+ /** Natural-language location, e.g. "the upper-left region" / "the center". */
51
+ location: string;
52
+ /** Prompt fragment to PREPEND to the user instruction. */
53
+ fragment: string;
54
+ }
55
+ /**
56
+ * Turn a pixel bounding box of the masked (edit) region into a normalized bbox
57
+ * + natural-language location + a prompt fragment. Pure — no IO. This is the
58
+ * Tier-B descriptor injected for strong instruction-following editors, and the
59
+ * exact primitive Phase 2 (named regions) will reuse.
60
+ */
61
+ declare function describeMaskRegion(box: PixelBox, image: {
62
+ width: number;
63
+ height: number;
64
+ }): MaskRegionDescriptor;
65
+
66
+ /**
67
+ * Video Depth — the one contract every layer reads: which providers exist and
68
+ * which lane serves each, which optional levers a provider honours, how long a
69
+ * clip may be, and which price row a run is charged from.
70
+ *
71
+ * Colormaps: fal renders every `VIDEO_DEPTH_COLORMAPS` entry natively. The
72
+ * Replicate model's native output is inferno-colorized, so it offers only
73
+ * `inferno` (passed through as-is) and `grayscale`, which a worker ffmpeg pass
74
+ * produces from the inferno output (`videoDepthNeedsGrayscalePass`).
75
+ *
76
+ * Price rows are `model_pricing` rows (`<provider>:<n>s`); the credit amounts
77
+ * live there, never here. Worked examples (repeated in
78
+ * docs/nodes/processing-video/video-depth.md):
79
+ * 5 s → `:15s`, 15 s → `:15s`, 15.01 s → `:30s`, 61 s → `:120s`.
80
+ */
81
+ declare const VIDEO_DEPTH_PROVIDERS: readonly ["video-depth-anything", "depth-anything-frames"];
82
+ type VideoDepthProvider = (typeof VIDEO_DEPTH_PROVIDERS)[number];
83
+ declare const FAL_VIDEO_DEPTH_PROVIDERS: ReadonlySet<string>;
84
+ declare const REPLICATE_VIDEO_DEPTH_PROVIDERS: ReadonlySet<string>;
85
+ /**
86
+ * The provider a run uses: `raw` when it is a Video Depth provider, else the
87
+ * default (the first entry). Raw workflow JSON or a FieldMapping can carry any
88
+ * value; the dispatch, the model deny and the price row all read this one
89
+ * resolution, so an unknown id never reaches a price row or slips the deny.
90
+ */
91
+ declare function resolveVideoDepthProvider(raw: unknown): VideoDepthProvider;
92
+ declare const VIDEO_DEPTH_MODEL_SIZES: readonly ["small", "base", "large"];
93
+ type VideoDepthModelSize = (typeof VIDEO_DEPTH_MODEL_SIZES)[number];
94
+ /** The model size a run uses: `raw` when it is one, else `large` (the providers index lookup tables with it). */
95
+ declare function resolveVideoDepthModelSize(raw: unknown): VideoDepthModelSize;
96
+ declare const VIDEO_DEPTH_COLORMAPS: readonly ["grayscale", "turbo", "inferno", "magma", "viridis"];
97
+ type VideoDepthColormap = (typeof VIDEO_DEPTH_COLORMAPS)[number];
98
+ declare const VIDEO_DEPTH_RESOLUTIONS: readonly ["auto", "360p", "480p", "720p", "1080p"];
99
+ type VideoDepthResolution = (typeof VIDEO_DEPTH_RESOLUTIONS)[number];
100
+ type VideoDepthLever = "colormap" | "resolution" | "sideBySide";
101
+ /** The optional levers `provider` honours. A lever absent here is dropped, never sent. */
102
+ declare function videoDepthLevers(provider: string): ReadonlySet<VideoDepthLever>;
103
+ /** The colormaps `provider` can deliver, in display order; empty when it has no colormap lever. */
104
+ declare function videoDepthColormaps(provider: string): readonly VideoDepthColormap[];
105
+ /** The colormap a run uses: the requested one when `provider` offers it, else `grayscale`; `undefined` when the provider has no colormap lever. Coerces, never throws. */
106
+ declare function resolveVideoDepthColormap(provider: string, requested: unknown): VideoDepthColormap | undefined;
107
+ /** True when the worker must turn the Replicate model's native inferno output into grayscale with ffmpeg. */
108
+ declare function videoDepthNeedsGrayscalePass(provider: string, colormap: VideoDepthColormap | undefined): boolean;
109
+ declare const VIDEO_DEPTH_LIMITS: {
110
+ /** fal `max_frames` ceiling. */
111
+ readonly FAL_MAX_FRAMES: 2400;
112
+ /** Longest clip the fal lane accepts, whatever its frame rate: the top price bucket (a low-fps clip under the frame limit can otherwise run past every price row). */
113
+ readonly FAL_MAX_SECONDS: 300;
114
+ /** Frame rate assumed when the clip reports none (variable-rate or missing). */
115
+ readonly ASSUMED_FPS: 30;
116
+ /** Longest clip the Replicate lane accepts. */
117
+ readonly REPLICATE_MAX_SECONDS: 80;
118
+ };
119
+ /** Refuse a clip the provider cannot take — run BEFORE any credit reservation. */
120
+ declare function checkVideoDepthLength(provider: string, probe: {
121
+ durationSec: number;
122
+ fps?: number;
123
+ }): {
124
+ ok: true;
125
+ } | {
126
+ ok: false;
127
+ message: string;
128
+ };
129
+ declare const VIDEO_DEPTH_BUCKETS: readonly [15, 30, 60, 120, 300];
130
+ /**
131
+ * The price row for a clip of `durationSec`. Unknown, non-positive or longer
132
+ * than the provider accepts → the provider's highest REACHABLE row: the
133
+ * smallest bucket at or above its longest clip (Replicate 80 s → `:120s`,
134
+ * fal 300 s → `:300s`) — the most a run on it can be charged, never a row a
135
+ * run could not reach.
136
+ */
137
+ declare function videoDepthCreditId(provider: string, durationSec: number | null | undefined): string;
138
+
139
+ /**
140
+ * Lottie slot substitution — single source of truth (design §5).
141
+ *
142
+ * A slotted property is an object containing a `sid` key (canonically exactly
143
+ * `{"sid": "name"}`; tolerantly also the annotation form `{a, k, sid}`). The
144
+ * slot manifest maps sid → { p: <whatever belongs at the reference position> }.
145
+ * Overrides map sid → raw value (what UI controls write).
146
+ *
147
+ * KEY CONVENTION: a slot's `p` is, by design, EXACTLY what belongs at the
148
+ * reference position — and we substitute it VERBATIM, never auto-wrapping it in
149
+ * an `{a:0,k:...}` envelope. At a property position (a fill color, a shape size)
150
+ * that means `p` is a property object like `{"a":0,"k":[1,0,0,1]}`. At a RAW
151
+ * position inside a text document — `layers[].t.d.k[0].s.t`, where lottie-web's
152
+ * `buildFinalText` iterates string characters — `p` is a BARE string, e.g.
153
+ * `{ "nameText": { "p": "John Smith" } }` substitutes the string `"John Smith"`
154
+ * straight onto `s.t`. (Auto-wrapping there produced `{a:0,k:"John Smith"}` and
155
+ * broke text rendering — the defect this contract fixes.)
156
+ *
157
+ * An override is wrapped ONLY when it lands on a property-object default: the
158
+ * `{...p, k: override}` form preserves the default's envelope (animated/static
159
+ * flags). On a raw default (or a missing slot) the override is substituted
160
+ * verbatim too — so a raw text override stays a bare string.
161
+ *
162
+ * Substitution is renderer-agnostic: we replace every sid node ourselves and
163
+ * never rely on lottie-web's version-dependent native slot support.
164
+ */
165
+ type JsonRecord = Record<string, unknown>;
166
+ /** Pure: returns a new document; never mutates inputs. */
167
+ declare function applySlots(lottie: JsonRecord, slots: JsonRecord | undefined, overrides: JsonRecord | undefined): JsonRecord;
168
+ declare function normalizeLottieLayers<T>(doc: T): T;
169
+ type SlotControlKind = "color" | "text" | "number" | "point";
170
+ interface SlotControlDescriptor {
171
+ kind: SlotControlKind;
172
+ value: unknown;
173
+ }
174
+ /**
175
+ * Unwraps a slot entry to its editable raw value and classifies it:
176
+ * {p:{a:0,k:[1,0,0,1]}} → { kind:"color", value:[1,0,0,1] }
177
+ * {p:"John"} → { kind:"text", value:"John" }
178
+ * {p:{a:0,k:42}} → { kind:"number", value:42 }
179
+ * {p:{a:0,k:[10,20]}} → { kind:"point", value:[10,20] }
180
+ * Animated property objects (`a:1`) and anything that doesn't map to a known
181
+ * control kind return null (no editable control).
182
+ */
183
+ declare function describeSlotControl(slot: unknown): SlotControlDescriptor | null;
184
+ /**
185
+ * RGBA array (components 0..1) → hex string. The alpha component is omitted
186
+ * when it is exactly 1 (`[1,0,0,1]` → `"#ff0000"`); otherwise an 8-digit hex is
187
+ * emitted (`[0,1,0,0.5]` → `"#00ff0080"`). Output is always lowercase.
188
+ */
189
+ declare function rgbaArrayToHex(rgba: number[]): string;
190
+ /**
191
+ * Hex string → RGBA array (components 0..1). Accepts `#rgb`, `#rrggbb`, and
192
+ * `#rrggbbaa`; alpha defaults to 1 when absent. Leading `#` is optional.
193
+ */
194
+ declare function hexToRgbaArray(hex: string): number[];
195
+ /** Manifest sids in insertion order (drives the slot-control list ordering). */
196
+ declare function listSlotSids(slots: Record<string, unknown>): string[];
197
+ /** Prefix for the synthetic field key of a derived slot field: `slot:<sid>`. */
198
+ declare const LOTTIE_SLOT_FIELD_PREFIX = "slot:";
199
+ /** "primaryColor" → "Primary Color"; "bar_size" → "Bar Size". */
200
+ declare function humanizeSlotSid(sid: string): string;
201
+ /** ExposableField-shaped descriptor derived from one slot. */
202
+ interface LottieSlotField {
203
+ /** Synthetic field key: `slot:<sid>`. */
204
+ key: string;
205
+ /** Humanized sid (camelCase / snake_case → Title Case). */
206
+ label: string;
207
+ /** Maps onto the `ExposableField.type` members used in apps. */
208
+ type: "color" | "text" | "slider";
209
+ min?: number;
210
+ max?: number;
211
+ step?: number;
212
+ /** Hex string for color; raw value for text/number. */
213
+ defaultValue?: unknown;
214
+ }
215
+ /**
216
+ * Derive ExposableField-shaped descriptors from a motion-graphics node's plan.
217
+ *
218
+ * Returns [] unless `motionPlan.planType === "lottie-graphic"` and `slots` is a
219
+ * non-empty object — the elements engine and absent plans expose nothing.
220
+ *
221
+ * Per slot, via `describeSlotControl`:
222
+ * - color → `{ type: "color", defaultValue: rgbaArrayToHex(value) }`
223
+ * - text → `{ type: "text", defaultValue: value }`
224
+ * - number → `{ type: "slider", min, max, step, defaultValue: value }`
225
+ * (0–1 values → 0..1 step 0.01; larger → 0..ceil(value*2) step 1)
226
+ * - point / null → SKIPPED. Point-kind slots are intentionally not exposed in
227
+ * apps (no paired-number card; positions are rarely end-user-meaningful).
228
+ */
229
+ declare function deriveLottieSlotFields(motionPlan: Record<string, unknown> | undefined): LottieSlotField[];
230
+
231
+ /**
232
+ * Built-in Lottie Overlay catalog — single source of truth.
233
+ *
234
+ * The Lottie Overlay node ships a curated set of 12 animations the overlay LLM
235
+ * can pick from. They were originally served from the third-party lottie.host
236
+ * CDN, which went dead (origin returns 403) and broke every catalog-based
237
+ * overlay render in production. The replacements were authored with our own
238
+ * Lottie engine, baked (slots resolved, no `sid` refs), and are now self-hosted
239
+ * on the Nodaro CDN at `https://cdn.nodaro.ai/lottie-catalog/<slug>.json`.
240
+ *
241
+ * This module is the ONE place the catalog lives:
242
+ * - `LOTTIE_OVERLAY_CATALOG` feeds the overlay system prompt (the LLM's menu).
243
+ * - `LEGACY_LOTTIE_HOST_REMAP` + `resolveLottieOverlaySrc` heal saved overlay
244
+ * plans at render time — a plan authored before the cut-over still points at
245
+ * a dead lottie.host URL, so the renderer rewrites it to its self-hosted
246
+ * replacement before fetching.
247
+ */
248
+ interface LottieOverlayCatalogEntry {
249
+ /** Stable system key — the R2 object is `lottie-catalog/<slug>.json`. */
250
+ readonly slug: string;
251
+ /** Display name — mirrors the original prompt's catalog labels. */
252
+ readonly name: string;
253
+ /** Catalog group (drives the grouped layout in the system prompt). */
254
+ readonly group: "Celebration" | "Social / Reactions" | "UI / Indicators" | "Ambient / Decorative";
255
+ /** One placement-intent line for the overlay LLM. */
256
+ readonly description: string;
257
+ /** Public CDN URL: `https://cdn.nodaro.ai/lottie-catalog/<slug>.json`. */
258
+ readonly url: string;
259
+ /** Whether the animation is continuous (loop) or a one-shot effect. */
260
+ readonly loop: boolean;
261
+ }
262
+ declare const LOTTIE_OVERLAY_CATALOG: readonly LottieOverlayCatalogEntry[];
263
+ /**
264
+ * Dead lottie.host URLs (origin returns 403) → their replacement catalog URLs.
265
+ * Heals saved plans at render time. The keys are copied EXACTLY from the
266
+ * original `lottie-overlay-system.ts` prompt — they are the literal `src`
267
+ * strings the overlay LLM emitted before the cut-over.
268
+ */
269
+ declare const LEGACY_LOTTIE_HOST_REMAP: Readonly<Record<string, string>>;
270
+ /**
271
+ * Resolve an overlay `src` through the legacy remap: a dead lottie.host URL is
272
+ * rewritten to its self-hosted replacement; everything else (already-migrated
273
+ * catalog URLs, user-provided assets) passes through unchanged.
274
+ */
275
+ declare function resolveLottieOverlaySrc(src: string): string;
276
+
277
+ /**
278
+ * Audio FX node — preset id union (single source of truth).
279
+ *
280
+ * Shared so the backend Zod route enum, the frontend config dropdown, and the
281
+ * `AudioFxData` node type can't drift. The per-preset FFmpeg filter chains
282
+ * (IR DUR/SHAPE, delay/EQ knobs) live in the backend provider's PRESET_CHAINS
283
+ * map — this file only fixes the id set + their human labels.
284
+ *
285
+ * Reverb presets are named by ON-SCREEN SCENARIO (where the voice is happening
286
+ * in the scene) rather than abstract size, so a creator picking "Church" or
287
+ * "Car" gets a believable space for that shot.
288
+ */
289
+ declare const AUDIO_FX_PRESETS: readonly ["room", "bathroom", "car", "hall", "concert-hall", "church", "cave", "arena", "outdoor", "telephone", "megaphone", "echo", "custom"];
290
+ type AudioFxPreset = (typeof AUDIO_FX_PRESETS)[number];
291
+ declare const AUDIO_FX_PRESET_SET: ReadonlySet<string>;
292
+ /** Display labels for the config dropdown. */
293
+ declare const AUDIO_FX_PRESET_LABELS: Record<AudioFxPreset, string>;
294
+ /** Presets that apply convolution reverb (afir + inline-synth IR). */
295
+ declare const AUDIO_FX_REVERB_PRESETS: ReadonlySet<AudioFxPreset>;
296
+
297
+ /**
298
+ * Video Mask — text-prompted video segmentation (SAM 3.1 / SAM 3). The wire contract of
299
+ * the `video-mask` node, `POST /v1/video-mask`, the `video_mask` MCP verb,
300
+ * `client.media.videoMask` and `nodaro media video-mask`, defined ONCE:
301
+ * - every bound the route schema, the node panel and the MCP verb read;
302
+ * - `videoMaskBilledSeconds`: the length a run is priced at — the clip's
303
+ * length at the 30 fps basis, so a 60 fps clip is priced at twice its
304
+ * length (the segmentation works per FRAME);
305
+ * - `videoMaskCreditId`: which price row (`model_pricing`) that length is
306
+ * charged from. The credit amounts live in the rows, never here.
307
+ *
308
+ * Worked examples (repeated in docs/nodes/ai-video/video-mask.md):
309
+ * 4 s at 30 fps → `sam-3.1-video:5s`, 12 s at 24 fps → `sam-3.1-video:15s`,
310
+ * 10 s at 60 fps (priced as 20 s) → `sam-3.1-video:30s`, 45 s at 30 fps → `sam-3.1-video:60s`,
311
+ * 100 s at 30 fps → `sam-3.1-video:120s`, 4 min at 30 fps on SAM 3 → `sam-3-video:240s`.
312
+ *
313
+ * Wire contract only — no I/O.
314
+ */
315
+ /** Segmentation models a Video Mask run can use. SAM 3.1 (the default)
316
+ * tracks several objects in one pass and runs faster; SAM 3 costs half. */
317
+ declare const VIDEO_MASK_PROVIDERS: readonly ["sam-3.1", "sam-3"];
318
+ type VideoMaskProvider = (typeof VIDEO_MASK_PROVIDERS)[number];
319
+ declare const DEFAULT_VIDEO_MASK_PROVIDER: VideoMaskProvider;
320
+ /** A new Video Mask node's settings — spread into its node definition. */
321
+ declare const VIDEO_MASK_DEFAULTS: {
322
+ readonly threshold: 0.5;
323
+ readonly provider: VideoMaskProvider;
324
+ };
325
+ declare const VIDEO_MASK_LIMITS: {
326
+ /** The longest input clip a run accepts, in seconds of PRICED length (see `videoMaskBilledSeconds`). */
327
+ readonly MAX_BILLED_SEC: 300;
328
+ /** Frame rate the price rows assume. A faster clip is priced proportionally longer. */
329
+ readonly FPS_BASIS: 30;
330
+ /** Subject description length cap. */
331
+ readonly PROMPT_MAX_LENGTH: 500;
332
+ /** Detection confidence bounds (the model's own range, narrowed to useful values). */
333
+ readonly THRESHOLD_MIN: 0.05;
334
+ readonly THRESHOLD_MAX: 0.95;
335
+ readonly THRESHOLD_STEP: 0.05;
336
+ /** Default detection confidence. Lower finds more (and less precise) regions. */
337
+ readonly THRESHOLD_DEFAULT: 0.5;
338
+ };
339
+ /** Every price row a provider can be charged from, smallest first. */
340
+ declare function videoMaskCreditIds(provider?: VideoMaskProvider): string[];
341
+ /**
342
+ * The length a clip is priced at: its duration at the 30 fps basis. A clip
343
+ * at or under 30 fps is priced at its own length; a 60 fps clip at twice it.
344
+ * An unknown frame rate counts as the basis.
345
+ */
346
+ declare function videoMaskBilledSeconds(durationSec: number, fps?: number | null): number;
347
+ /**
348
+ * The price row for a clip priced at `billedSec` seconds. An unknown or
349
+ * non-positive length prices the LONGEST row (a clip the route could not
350
+ * measure is refused, so this is only the pre-run quote for a clip whose
351
+ * length is not known yet); anything past the cap prices the last row.
352
+ */
353
+ declare function videoMaskCreditId(billedSec: number | null | undefined, provider?: VideoMaskProvider): string;
354
+ /** Narrow an arbitrary value to a known provider, falling back to the default. */
355
+ declare function resolveVideoMaskProvider(value: unknown): VideoMaskProvider;
356
+ /** `POST /v1/video-mask` request body. */
357
+ interface VideoMaskRequest {
358
+ /** The clip to segment. */
359
+ readonly videoUrl: string;
360
+ /** What to track: a short noun phrase; separate several with commas. */
361
+ readonly prompt: string;
362
+ /** Detection confidence, `VIDEO_MASK_LIMITS.THRESHOLD_MIN`–`THRESHOLD_MAX` (default 0.5). */
363
+ readonly threshold?: number;
364
+ readonly provider?: VideoMaskProvider;
365
+ }
366
+
367
+ /**
368
+ * Mask Composite — place a foreground video over a background video through a
369
+ * mask video (white = keep the foreground, black = show the background). The
370
+ * wire contract of the `mask-composite` node, `POST /v1/mask-composite`, the
371
+ * `mask_composite` MCP verb, `client.media.maskComposite` and
372
+ * `nodaro media mask-composite`, defined ONCE. Pair it with Video Mask, whose
373
+ * output is exactly such a mask.
374
+ *
375
+ * The render follows the FOREGROUND: its size, frame rate and length. The
376
+ * background is fitted to that frame (`backgroundFit`) and loops when shorter;
377
+ * the mask is stretched to the frame and holds its last frame when shorter.
378
+ *
379
+ * Priced per started 5 seconds of the result (the foreground's length), like
380
+ * Trim / Loop / Combine Videos: the node's own `model_pricing` row is ONE unit
381
+ * (`maskCompositeUnits` counts them). Worked examples (repeated in
382
+ * docs/nodes/processing-video/mask-composite.md, at the 10-credit row):
383
+ * 3 s → 1 unit (10), 10 s → 2 units (20), 61 s → 13 units (130), 5 min → 60 units (600).
384
+ *
385
+ * Wire contract only — no I/O.
386
+ */
387
+ /** How the background is fitted to the foreground's frame. */
388
+ declare const MASK_COMPOSITE_BACKGROUND_FITS: readonly ["cover", "contain", "stretch"];
389
+ type MaskCompositeBackgroundFit = (typeof MASK_COMPOSITE_BACKGROUND_FITS)[number];
390
+ /** Which sound the result carries. `mix` blends both tracks at equal level. */
391
+ declare const MASK_COMPOSITE_AUDIO_SOURCES: readonly ["foreground", "background", "mix", "none"];
392
+ type MaskCompositeAudioSource = (typeof MASK_COMPOSITE_AUDIO_SOURCES)[number];
393
+ declare const MASK_COMPOSITE_BOUNDS: {
394
+ /** Edge softening, pixels of blur radius on the mask (0 = hard edge). */
395
+ readonly FEATHER_MIN: 0;
396
+ readonly FEATHER_MAX: 20;
397
+ /** Grow (+) or shrink (−) the white region, pixels. */
398
+ readonly GROW_MIN: -10;
399
+ readonly GROW_MAX: 10;
400
+ /** The longest foreground a run accepts, seconds. */
401
+ readonly MAX_DURATION_SEC: 300;
402
+ };
403
+ /** Seconds of result one pricing unit covers. */
404
+ declare const MASK_COMPOSITE_UNIT_SEC = 5;
405
+ /**
406
+ * Pricing units for a result `durationSec` long: one per started 5 seconds,
407
+ * at least one. An unknown length counts the longest result a run accepts
408
+ * (an upper bound — the pre-run quote for a clip whose length is not known
409
+ * yet; every run measures its foreground).
410
+ */
411
+ declare function maskCompositeUnits(durationSec: number | null | undefined): number;
412
+ declare const MASK_COMPOSITE_DEFAULTS: {
413
+ readonly invertMask: false;
414
+ readonly feather: 2;
415
+ readonly grow: 0;
416
+ readonly backgroundFit: MaskCompositeBackgroundFit;
417
+ readonly audioSource: MaskCompositeAudioSource;
418
+ };
419
+ interface MaskCompositeSettings {
420
+ readonly invertMask: boolean;
421
+ readonly feather: number;
422
+ readonly grow: number;
423
+ readonly backgroundFit: MaskCompositeBackgroundFit;
424
+ readonly audioSource: MaskCompositeAudioSource;
425
+ }
426
+ /**
427
+ * Node data (or any loose object) → settings every engine renders with.
428
+ * Unknown enum values fall back to the default and numbers are clamped, so a
429
+ * node written straight into workflow JSON renders the same as one set in the
430
+ * panel. The ONE normaliser both workflow engines and the worker call.
431
+ */
432
+ declare function resolveMaskCompositeSettings(data: Readonly<Record<string, unknown>>): MaskCompositeSettings;
433
+ /** `POST /v1/mask-composite` request body. */
434
+ interface MaskCompositeRequest extends Partial<MaskCompositeSettings> {
435
+ /** The video whose white-masked region is kept (its size, rate and length lead). */
436
+ readonly foregroundUrl: string;
437
+ /** The video shown where the mask is black. */
438
+ readonly backgroundUrl: string;
439
+ /** The mask video — white = foreground (Video Mask's output). */
440
+ readonly maskUrl: string;
441
+ }
442
+
443
+ /**
444
+ * Flat-shape vocabulary for Image Overlay shape layers, and the ONE geometry
445
+ * both renderers draw: the server serialises the element to SVG for sharp,
446
+ * the editor renders the same element in an inline <svg> — so the stage shows
447
+ * exactly the shape the run produces. Every shape fills its w × h box.
448
+ */
449
+ declare const OVERLAY_SHAPES: readonly ["rect", "rounded", "pill", "circle", "ribbon", "triangle", "diamond", "hexagon", "star", "burst", "arrow"];
450
+ type OverlayShape = (typeof OVERLAY_SHAPES)[number];
451
+ interface OverlayShapeElement {
452
+ readonly tag: "rect" | "ellipse" | "polygon";
453
+ /** Plain SVG attributes (already valid React props too: rx, cx, points…). */
454
+ readonly attrs: Readonly<Record<string, number | string>>;
455
+ }
456
+ /**
457
+ * The element for `shape` inside a w × h box. `inset` keeps a stroke inside
458
+ * the box (pass half the stroke width); geometry is identical for inset 0.
459
+ */
460
+ declare function overlayShapeElement(shape: OverlayShape, w: number, h: number, inset?: number): OverlayShapeElement;
461
+
462
+ /**
463
+ * Image Overlay — platform canvas presets. Picking one sets the output canvas
464
+ * to the platform's pixel size and draws its SAFE AREA in the preview (the
465
+ * part of the image every surface actually shows — a YouTube banner is
466
+ * cropped to a 1546×423 strip on phones, a LinkedIn personal cover has the
467
+ * profile photo over its bottom-left, an Instagram story hides the top and
468
+ * bottom under the UI). The same ids drive "export also for" — one
469
+ * composition rendered into several platform sizes in one run.
470
+ *
471
+ * Safe areas are FRACTIONS of the canvas (x, y, w, h in 0..1). Sizes are the
472
+ * platforms' documented recommendations as of 2026-09.
473
+ */
474
+ interface OverlayPlatformPreset {
475
+ readonly id: string;
476
+ readonly label: string;
477
+ readonly width: number;
478
+ readonly height: number;
479
+ /** The always-visible region, as fractions of the canvas. Absent = whole canvas. */
480
+ readonly safe?: {
481
+ readonly x: number;
482
+ readonly y: number;
483
+ readonly w: number;
484
+ readonly h: number;
485
+ };
486
+ /** Per-device viewports drawn as nested boxes (the YouTube banner shows TV /
487
+ * desktop / every device). `safe` is the innermost one. Ids are stable
488
+ * keys the UI localises; absent = only `safe` is drawn. */
489
+ readonly zones?: readonly OverlayPlatformZone[];
490
+ readonly note?: string;
491
+ }
492
+ interface OverlayPlatformZone {
493
+ readonly id: "tv" | "desktop" | "all";
494
+ readonly x: number;
495
+ readonly y: number;
496
+ readonly w: number;
497
+ readonly h: number;
498
+ }
499
+ declare const OVERLAY_PLATFORMS: readonly OverlayPlatformPreset[];
500
+ type OverlayPlatformId = (typeof OVERLAY_PLATFORMS)[number]["id"];
501
+ declare const OVERLAY_PLATFORM_IDS: readonly [OverlayPlatformId, ...OverlayPlatformId[]];
502
+ declare function overlayPlatformById(id: string | undefined | null): OverlayPlatformPreset | undefined;
503
+ /** How many extra platform renders one run may produce — every platform in
504
+ * the registry, so "all of them" is one run. The node's handle column is
505
+ * sized for this (image-overlay-handles.test.ts pins it). */
506
+ declare const OVERLAY_MAX_VARIANTS: number;
507
+ /**
508
+ * Every platform ticked under "export also for" is ALSO a source handle on
509
+ * the node — `variant:<platformId>` — so the X header can feed an X publisher
510
+ * while the YouTube thumbnail feeds YouTube, in one run. The main `image`
511
+ * handle stays the primary composite.
512
+ */
513
+ declare const OVERLAY_VARIANT_HANDLE_PREFIX = "variant:";
514
+ declare function overlayVariantHandle(platformId: string): string;
515
+ /** The platform id a variant handle names, or null for any other handle. */
516
+ declare function overlayVariantIdFromHandle(handle: string | null | undefined): string | null;
517
+
518
+ export { AUDIO_FX_PRESETS, AUDIO_FX_PRESET_LABELS, AUDIO_FX_PRESET_SET, AUDIO_FX_REVERB_PRESETS, type AudioFxPreset, DEFAULT_VIDEO_MASK_PROVIDER, FAL_VIDEO_DEPTH_PROVIDERS, FREECUT_EXPORT_COMPLETE, FREECUT_EXPORT_PROGRESS, FREECUT_READY, FREECUT_REQUEST_IMPORT, type FreecutExportCompletePayload, type FreecutExportProgressPayload, type FreecutImportFile, type FreecutRequestImportPayload, LEGACY_LOTTIE_HOST_REMAP, LOTTIE_OVERLAY_CATALOG, LOTTIE_SLOT_FIELD_PREFIX, type LottieOverlayCatalogEntry, type LottieSlotField, MASK_COMPOSITE_AUDIO_SOURCES, MASK_COMPOSITE_BACKGROUND_FITS, MASK_COMPOSITE_BOUNDS, MASK_COMPOSITE_DEFAULTS, MASK_COMPOSITE_UNIT_SEC, type MaskCompositeAudioSource, type MaskCompositeBackgroundFit, type MaskCompositeRequest, type MaskCompositeSettings, type MaskRegionDescriptor, NODARO_IMPORT_FILES, NODARO_LOAD_TIMELINE, NODARO_LOAD_VIDEO, NODARO_RESET_PROJECT, type NodaroLoadTimelinePayload, type NodaroLoadVideoPayload, OVERLAY_MAX_VARIANTS, OVERLAY_PLATFORMS, OVERLAY_PLATFORM_IDS, OVERLAY_SHAPES, OVERLAY_VARIANT_HANDLE_PREFIX, type OverlayPlatformId, type OverlayPlatformPreset, type OverlayPlatformZone, type OverlayShape, type OverlayShapeElement, type PixelBox, REPLICATE_VIDEO_DEPTH_PROVIDERS, type SlotControlDescriptor, type SlotControlKind, VIDEO_DEPTH_BUCKETS, VIDEO_DEPTH_COLORMAPS, VIDEO_DEPTH_LIMITS, VIDEO_DEPTH_MODEL_SIZES, VIDEO_DEPTH_PROVIDERS, VIDEO_DEPTH_RESOLUTIONS, VIDEO_MASK_DEFAULTS, VIDEO_MASK_LIMITS, VIDEO_MASK_PROVIDERS, type VideoDepthColormap, type VideoDepthLever, type VideoDepthModelSize, type VideoDepthProvider, type VideoDepthResolution, type VideoMaskProvider, type VideoMaskRequest, applySlots, checkVideoDepthLength, deriveLottieSlotFields, describeMaskRegion, describeSlotControl, hexToRgbaArray, humanizeSlotSid, listSlotSids, maskCompositeUnits, normalizeLottieLayers, overlayPlatformById, overlayShapeElement, overlayVariantHandle, overlayVariantIdFromHandle, resolveLottieOverlaySrc, resolveMaskCompositeSettings, resolveVideoDepthColormap, resolveVideoDepthModelSize, resolveVideoDepthProvider, resolveVideoMaskProvider, rgbaArrayToHex, videoDepthColormaps, videoDepthCreditId, videoDepthLevers, videoDepthNeedsGrayscalePass, videoMaskBilledSeconds, videoMaskCreditId, videoMaskCreditIds };
@@ -0,0 +1,6 @@
1
+ export { AUDIO_FX_PRESETS, AUDIO_FX_PRESET_LABELS, AUDIO_FX_PRESET_SET, AUDIO_FX_REVERB_PRESETS, DEFAULT_VIDEO_MASK_PROVIDER, FREECUT_EXPORT_COMPLETE, FREECUT_EXPORT_PROGRESS, FREECUT_READY, FREECUT_REQUEST_IMPORT, LEGACY_LOTTIE_HOST_REMAP, LOTTIE_OVERLAY_CATALOG, LOTTIE_SLOT_FIELD_PREFIX, MASK_COMPOSITE_AUDIO_SOURCES, MASK_COMPOSITE_BACKGROUND_FITS, MASK_COMPOSITE_BOUNDS, MASK_COMPOSITE_DEFAULTS, MASK_COMPOSITE_UNIT_SEC, NODARO_IMPORT_FILES, NODARO_LOAD_TIMELINE, NODARO_LOAD_VIDEO, NODARO_RESET_PROJECT, VIDEO_MASK_DEFAULTS, VIDEO_MASK_LIMITS, VIDEO_MASK_PROVIDERS, applySlots, deriveLottieSlotFields, describeMaskRegion, describeSlotControl, hexToRgbaArray, humanizeSlotSid, listSlotSids, maskCompositeUnits, normalizeLottieLayers, resolveLottieOverlaySrc, resolveMaskCompositeSettings, resolveVideoMaskProvider, rgbaArrayToHex, videoMaskBilledSeconds, videoMaskCreditId, videoMaskCreditIds } from '../chunk-M36G6SRP.js';
2
+ export { DEFAULT_OVERLAY_QR, DEFAULT_OVERLAY_SHAPE, DEFAULT_OVERLAY_TEXT, OVERLAY_ANCHORS, OVERLAY_FONTS, OVERLAY_FONT_IDS, OVERLAY_IMAGE_MASKS, OVERLAY_LAYER_KINDS, OVERLAY_SHAPES, OVERLAY_TEXT_ALIGNS, isRtlText, overlayFontById, overlayImageEffectsSchema, overlayQrStyleSchema, overlayShapeElement, overlayShapeStyleSchema, overlayStrokeSchema, overlayTextStyleSchema } from '../chunk-ZNZDQAXN.js';
3
+ export { FAL_VIDEO_DEPTH_PROVIDERS, REPLICATE_VIDEO_DEPTH_PROVIDERS, VIDEO_DEPTH_BUCKETS, VIDEO_DEPTH_COLORMAPS, VIDEO_DEPTH_LIMITS, VIDEO_DEPTH_MODEL_SIZES, VIDEO_DEPTH_PROVIDERS, VIDEO_DEPTH_RESOLUTIONS, checkVideoDepthLength, resolveVideoDepthColormap, resolveVideoDepthModelSize, resolveVideoDepthProvider, videoDepthColormaps, videoDepthCreditId, videoDepthLevers, videoDepthNeedsGrayscalePass } from '../chunk-3RYKIUAE.js';
4
+ export { OVERLAY_MAX_VARIANTS, OVERLAY_PLATFORMS, OVERLAY_PLATFORM_IDS, OVERLAY_VARIANT_HANDLE_PREFIX, overlayPlatformById, overlayVariantHandle, overlayVariantIdFromHandle } from '../chunk-5THUHJ3E.js';
5
+ //# sourceMappingURL=media.js.map
6
+ //# sourceMappingURL=media.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"media.js"}