@nodaro/shared 3.61.0 → 3.63.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (313) hide show
  1. package/dist/{chunk-4KYLNTR7.cjs → chunk-2PU3AGGS.cjs} +27 -4
  2. package/dist/chunk-2PU3AGGS.cjs.map +1 -0
  3. package/dist/{chunk-43TGSZRJ.js → chunk-2QKF7M2Z.js} +3 -3
  4. package/dist/{chunk-43TGSZRJ.js.map → chunk-2QKF7M2Z.js.map} +1 -1
  5. package/dist/{chunk-B6BG3LV2.js → chunk-34QLPTSA.js} +3 -3
  6. package/dist/{chunk-B6BG3LV2.js.map → chunk-34QLPTSA.js.map} +1 -1
  7. package/dist/chunk-3K24DWOH.js +453 -0
  8. package/dist/chunk-3K24DWOH.js.map +1 -0
  9. package/dist/{chunk-IRQ3SPX7.js → chunk-4DVWXEB6.js} +23 -4
  10. package/dist/chunk-4DVWXEB6.js.map +1 -0
  11. package/dist/{chunk-ZES6EZC4.js → chunk-4MMZD63H.js} +3 -3
  12. package/dist/{chunk-ZES6EZC4.js.map → chunk-4MMZD63H.js.map} +1 -1
  13. package/dist/{chunk-MQZRQ5LM.cjs → chunk-63H4C56Q.cjs} +8 -8
  14. package/dist/{chunk-MQZRQ5LM.cjs.map → chunk-63H4C56Q.cjs.map} +1 -1
  15. package/dist/{chunk-IVXSNW2B.cjs → chunk-6BZC2ZHC.cjs} +18 -332
  16. package/dist/chunk-6BZC2ZHC.cjs.map +1 -0
  17. package/dist/{chunk-M3SXUUWC.cjs → chunk-6FQBKI2A.cjs} +4 -11
  18. package/dist/chunk-6FQBKI2A.cjs.map +1 -0
  19. package/dist/{chunk-673E4KYC.js → chunk-6M563QE6.js} +134 -8
  20. package/dist/chunk-6M563QE6.js.map +1 -0
  21. package/dist/chunk-6TGB7ECA.cjs +48 -0
  22. package/dist/chunk-6TGB7ECA.cjs.map +1 -0
  23. package/dist/{chunk-XUJC6GHE.cjs → chunk-6XUG4L7X.cjs} +6 -6
  24. package/dist/{chunk-XUJC6GHE.cjs.map → chunk-6XUG4L7X.cjs.map} +1 -1
  25. package/dist/{chunk-XZKFZMRT.cjs → chunk-77WU3V3J.cjs} +6 -6
  26. package/dist/{chunk-XZKFZMRT.cjs.map → chunk-77WU3V3J.cjs.map} +1 -1
  27. package/dist/{chunk-ZFJN23V4.cjs → chunk-A2PX5IRC.cjs} +4 -4
  28. package/dist/{chunk-ZFJN23V4.cjs.map → chunk-A2PX5IRC.cjs.map} +1 -1
  29. package/dist/{chunk-ZDBPQBAA.js → chunk-AE3AAJ4O.js} +3 -3
  30. package/dist/{chunk-ZDBPQBAA.js.map → chunk-AE3AAJ4O.js.map} +1 -1
  31. package/dist/chunk-ALRXY4QH.cjs +13 -0
  32. package/dist/chunk-ALRXY4QH.cjs.map +1 -0
  33. package/dist/{chunk-UARGJ5IZ.js → chunk-BMJVKYVB.js} +56 -12
  34. package/dist/chunk-BMJVKYVB.js.map +1 -0
  35. package/dist/{chunk-6XVHYD5R.js → chunk-CLAKSLXF.js} +4 -9
  36. package/dist/chunk-CLAKSLXF.js.map +1 -0
  37. package/dist/chunk-CTANEPMY.js +61 -0
  38. package/dist/chunk-CTANEPMY.js.map +1 -0
  39. package/dist/chunk-CZ5IQB3L.js +42 -0
  40. package/dist/chunk-CZ5IQB3L.js.map +1 -0
  41. package/dist/{chunk-WGKAOUEQ.cjs → chunk-D34K455O.cjs} +3 -2
  42. package/dist/chunk-D34K455O.cjs.map +1 -0
  43. package/dist/chunk-EPXGG27L.js +331 -0
  44. package/dist/chunk-EPXGG27L.js.map +1 -0
  45. package/dist/{chunk-3M4BNKFJ.cjs → chunk-F6WGGYQW.cjs} +167 -3
  46. package/dist/chunk-F6WGGYQW.cjs.map +1 -0
  47. package/dist/{chunk-7FCTCWHD.js → chunk-FXGNRYQQ.js} +3 -3
  48. package/dist/{chunk-7FCTCWHD.js.map → chunk-FXGNRYQQ.js.map} +1 -1
  49. package/dist/{chunk-ZNM2LW3D.cjs → chunk-GMBDLNLD.cjs} +105 -56
  50. package/dist/chunk-GMBDLNLD.cjs.map +1 -0
  51. package/dist/{chunk-NJVOJXBS.cjs → chunk-GSKLPI3J.cjs} +104 -49
  52. package/dist/chunk-GSKLPI3J.cjs.map +1 -0
  53. package/dist/{chunk-EWS2VFO4.js → chunk-HBXF6RUU.js} +4 -4
  54. package/dist/{chunk-EWS2VFO4.js.map → chunk-HBXF6RUU.js.map} +1 -1
  55. package/dist/{chunk-MOMFX32D.js → chunk-HWQ2SYNA.js} +194 -325
  56. package/dist/chunk-HWQ2SYNA.js.map +1 -0
  57. package/dist/{chunk-SCMTN57Y.js → chunk-IY3Y462W.js} +3 -3
  58. package/dist/{chunk-SCMTN57Y.js.map → chunk-IY3Y462W.js.map} +1 -1
  59. package/dist/{chunk-ZZGQRRN7.js → chunk-KCZHQH2O.js} +6 -306
  60. package/dist/chunk-KCZHQH2O.js.map +1 -0
  61. package/dist/{chunk-XROE3CAS.cjs → chunk-KHH54GRP.cjs} +120 -79
  62. package/dist/chunk-KHH54GRP.cjs.map +1 -0
  63. package/dist/{chunk-FVVD6XY2.js → chunk-KL6GAYTT.js} +13 -4
  64. package/dist/chunk-KL6GAYTT.js.map +1 -0
  65. package/dist/{chunk-FVII3KHN.js → chunk-KMGCHV6O.js} +163 -4
  66. package/dist/chunk-KMGCHV6O.js.map +1 -0
  67. package/dist/{chunk-FMXFHJWX.cjs → chunk-L2TVY6XN.cjs} +4 -4
  68. package/dist/{chunk-FMXFHJWX.cjs.map → chunk-L2TVY6XN.cjs.map} +1 -1
  69. package/dist/{chunk-FQXRYPCX.cjs → chunk-LH72PQO2.cjs} +505 -68
  70. package/dist/chunk-LH72PQO2.cjs.map +1 -0
  71. package/dist/chunk-LMAQUR55.cjs +506 -0
  72. package/dist/chunk-LMAQUR55.cjs.map +1 -0
  73. package/dist/{chunk-F5YEMSNK.cjs → chunk-M5OCFGHF.cjs} +571 -30
  74. package/dist/chunk-M5OCFGHF.cjs.map +1 -0
  75. package/dist/{chunk-VOWJCUMR.js → chunk-MD4XHED4.js} +3 -3
  76. package/dist/{chunk-VOWJCUMR.js.map → chunk-MD4XHED4.js.map} +1 -1
  77. package/dist/chunk-N5HH46JF.cjs +68 -0
  78. package/dist/chunk-N5HH46JF.cjs.map +1 -0
  79. package/dist/{chunk-G4XWVWRI.js → chunk-NIAFR5EE.js} +5 -4
  80. package/dist/chunk-NIAFR5EE.js.map +1 -0
  81. package/dist/{chunk-CF4S4N5X.js → chunk-O2QOBA6Q.js} +2 -2
  82. package/dist/{chunk-CF4S4N5X.js.map → chunk-O2QOBA6Q.js.map} +1 -1
  83. package/dist/{chunk-4GGLKRYI.cjs → chunk-O6TBB4IF.cjs} +2 -2
  84. package/dist/{chunk-4GGLKRYI.cjs.map → chunk-O6TBB4IF.cjs.map} +1 -1
  85. package/dist/{chunk-SWVGHAYO.js → chunk-O7RZRUMZ.js} +110 -74
  86. package/dist/chunk-O7RZRUMZ.js.map +1 -0
  87. package/dist/{chunk-LLOIAGFB.js → chunk-OV3JTKBY.js} +449 -51
  88. package/dist/chunk-OV3JTKBY.js.map +1 -0
  89. package/dist/{chunk-A3FHTSLB.js → chunk-PSKZKLDG.js} +550 -31
  90. package/dist/chunk-PSKZKLDG.js.map +1 -0
  91. package/dist/{chunk-VB2ARGQ6.js → chunk-RGNHHIMN.js} +3 -3
  92. package/dist/chunk-RGNHHIMN.js.map +1 -0
  93. package/dist/chunk-SMOO5FAH.js +10 -0
  94. package/dist/chunk-SMOO5FAH.js.map +1 -0
  95. package/dist/{chunk-5XRRENHD.cjs → chunk-TM5JYSJF.cjs} +170 -17
  96. package/dist/chunk-TM5JYSJF.cjs.map +1 -0
  97. package/dist/{chunk-PONP5J5E.cjs → chunk-V24EPI5N.cjs} +13 -3
  98. package/dist/chunk-V24EPI5N.cjs.map +1 -0
  99. package/dist/{chunk-RQ4F3AJH.cjs → chunk-V5EEQR2U.cjs} +21 -21
  100. package/dist/{chunk-RQ4F3AJH.cjs.map → chunk-V5EEQR2U.cjs.map} +1 -1
  101. package/dist/chunk-WZVIBAKN.cjs +351 -0
  102. package/dist/chunk-WZVIBAKN.cjs.map +1 -0
  103. package/dist/{chunk-5M43XMRB.cjs → chunk-X5BAFW3Q.cjs} +8 -8
  104. package/dist/{chunk-5M43XMRB.cjs.map → chunk-X5BAFW3Q.cjs.map} +1 -1
  105. package/dist/{chunk-RUHKBEFF.js → chunk-XBTYGQ6Z.js} +63 -10
  106. package/dist/chunk-XBTYGQ6Z.js.map +1 -0
  107. package/dist/{chunk-JHTT2V4A.cjs → chunk-XGGZWA4A.cjs} +118 -52
  108. package/dist/chunk-XGGZWA4A.cjs.map +1 -0
  109. package/dist/{chunk-5I4T4QR5.cjs → chunk-XGVJGNZW.cjs} +5 -5
  110. package/dist/{chunk-5I4T4QR5.cjs.map → chunk-XGVJGNZW.cjs.map} +1 -1
  111. package/dist/{chunk-7ARKVJTN.cjs → chunk-Y35JQPT6.cjs} +228 -383
  112. package/dist/chunk-Y35JQPT6.cjs.map +1 -0
  113. package/dist/{chunk-AFQFGZN7.cjs → chunk-Y4GCJJPF.cjs} +8 -6
  114. package/dist/chunk-Y4GCJJPF.cjs.map +1 -0
  115. package/dist/{chunk-C77F4ZTL.js → chunk-YUER7TJG.js} +3 -3
  116. package/dist/{chunk-C77F4ZTL.js.map → chunk-YUER7TJG.js.map} +1 -1
  117. package/dist/{chunk-HGI2VKIV.js → chunk-YX6TFX7H.js} +67 -14
  118. package/dist/chunk-YX6TFX7H.js.map +1 -0
  119. package/dist/{chunk-TWF2OSH4.cjs → chunk-ZPE2ZTJ4.cjs} +4 -4
  120. package/dist/{chunk-TWF2OSH4.cjs.map → chunk-ZPE2ZTJ4.cjs.map} +1 -1
  121. package/dist/entries/apps.cjs +44 -44
  122. package/dist/entries/apps.js +9 -9
  123. package/dist/entries/credits.cjs +286 -153
  124. package/dist/entries/credits.d.cts +254 -5
  125. package/dist/entries/credits.d.ts +254 -5
  126. package/dist/entries/credits.js +14 -9
  127. package/dist/entries/entities.cjs +188 -143
  128. package/dist/entries/entities.d.cts +122 -1
  129. package/dist/entries/entities.d.ts +122 -1
  130. package/dist/entries/entities.js +2 -1
  131. package/dist/entries/llm-models.cjs +77 -57
  132. package/dist/entries/llm-models.d.cts +85 -5
  133. package/dist/entries/llm-models.d.ts +85 -5
  134. package/dist/entries/llm-models.js +2 -2
  135. package/dist/entries/media.cjs +92 -87
  136. package/dist/entries/media.d.cts +19 -1
  137. package/dist/entries/media.d.ts +19 -1
  138. package/dist/entries/media.js +3 -2
  139. package/dist/entries/model-catalog.cjs +211 -103
  140. package/dist/entries/model-catalog.d.cts +135 -19
  141. package/dist/entries/model-catalog.d.ts +135 -19
  142. package/dist/entries/model-catalog.js +5 -5
  143. package/dist/entries/models.cjs +504 -295
  144. package/dist/entries/models.d.cts +71 -4
  145. package/dist/entries/models.d.ts +71 -4
  146. package/dist/entries/models.js +7 -6
  147. package/dist/entries/nodes.cjs +249 -233
  148. package/dist/entries/nodes.d.cts +35 -6
  149. package/dist/entries/nodes.d.ts +35 -6
  150. package/dist/entries/nodes.js +10 -10
  151. package/dist/entries/pipeline.cjs +152 -152
  152. package/dist/entries/pipeline.d.cts +3 -2
  153. package/dist/entries/pipeline.d.ts +3 -2
  154. package/dist/entries/pipeline.js +3 -3
  155. package/dist/entries/runtime-config.cjs +29 -29
  156. package/dist/entries/runtime-config.d.cts +10 -7
  157. package/dist/entries/runtime-config.d.ts +10 -7
  158. package/dist/entries/runtime-config.js +1 -1
  159. package/dist/entries/social.cjs +177 -177
  160. package/dist/entries/social.js +2 -2
  161. package/dist/entries/types.d.cts +8 -0
  162. package/dist/entries/types.d.ts +8 -0
  163. package/dist/entries/ugc.cjs +71 -71
  164. package/dist/entries/ugc.js +4 -4
  165. package/dist/entries/video.cjs +316 -208
  166. package/dist/entries/video.d.cts +490 -99
  167. package/dist/entries/video.d.ts +490 -99
  168. package/dist/entries/video.js +8 -4
  169. package/dist/entries/workflow.cjs +102 -102
  170. package/dist/entries/workflow.d.cts +5 -4
  171. package/dist/entries/workflow.d.ts +5 -4
  172. package/dist/entries/workflow.js +2 -2
  173. package/dist/{gpt-image-2-6-BeZdT-pW.d.cts → gpt-image-2-6-jIRQBRag.d.cts} +6 -0
  174. package/dist/{gpt-image-2-6-BeZdT-pW.d.ts → gpt-image-2-6-jIRQBRag.d.ts} +6 -0
  175. package/dist/index.cjs +2727 -2092
  176. package/dist/index.d.cts +11 -11
  177. package/dist/index.d.ts +11 -11
  178. package/dist/index.js +30 -27
  179. package/dist/{model-catalog-BgSvskgY.d.ts → model-catalog-C_Eo35tL.d.cts} +158 -14
  180. package/dist/{model-catalog-BgSvskgY.d.cts → model-catalog-C_Eo35tL.d.ts} +158 -14
  181. package/dist/{model-constants-DHd9jwQ7.d.cts → model-constants-Bg4ccSQb.d.ts} +427 -34
  182. package/dist/{model-constants-DHd9jwQ7.d.ts → model-constants-DWcxOmaY.d.cts} +427 -34
  183. package/package.json +1 -1
  184. package/src/__tests__/credit-identifiers.test.ts +29 -0
  185. package/src/__tests__/extend-providers.test.ts +194 -0
  186. package/src/__tests__/fixtures/mask-composite-quote-parity.json +118 -0
  187. package/src/__tests__/fixtures/root-exports.baseline.json +68 -0
  188. package/src/__tests__/gpt-image-2-6-formats.test.ts +4 -1
  189. package/src/__tests__/grok-video-15-catalog.test.ts +189 -0
  190. package/src/__tests__/gvp-supported-providers.test.ts +32 -4
  191. package/src/__tests__/lip-sync-audio-rate.test.ts +74 -0
  192. package/src/__tests__/lip-sync-levers.test.ts +31 -0
  193. package/src/__tests__/llm-models.test.ts +132 -3
  194. package/src/__tests__/llm-price-key.test.ts +152 -1
  195. package/src/__tests__/minimax-h3-image.test.ts +140 -0
  196. package/src/__tests__/model-makers.test.ts +49 -11
  197. package/src/__tests__/model-tree.test.ts +13 -0
  198. package/src/__tests__/nemotron-transcribe-pricing.test.ts +61 -0
  199. package/src/__tests__/normalize-node-params.test.ts +25 -0
  200. package/src/__tests__/pixverse-v6-max-catalog.test.ts +271 -0
  201. package/src/__tests__/prompt-length-limits.test.ts +4 -0
  202. package/src/__tests__/retired-video-provider.test.ts +15 -5
  203. package/src/__tests__/seedance-25-catalog-modes.test.ts +1 -1
  204. package/src/__tests__/seedance-task-type.test.ts +188 -0
  205. package/src/__tests__/seedream-5-5.test.ts +117 -0
  206. package/src/__tests__/transcribe-capabilities.test.ts +39 -2
  207. package/src/__tests__/transcribe-preflight.test.ts +50 -1
  208. package/src/__tests__/unit-contract-compose.test.ts +27 -1
  209. package/src/__tests__/unit-contracts.test.ts +20 -6
  210. package/src/__tests__/upscale-factors.test.ts +107 -0
  211. package/src/__tests__/video-audio-capability.test.ts +35 -6
  212. package/src/__tests__/video-character-refs.test.ts +20 -2
  213. package/src/__tests__/video-collapse-parity.test.ts +19 -0
  214. package/src/__tests__/video-overlay-geometry.test.ts +68 -0
  215. package/src/__tests__/video-overlay-layer-plan.test.ts +3 -4
  216. package/src/__tests__/video-overlay-layouts.test.ts +529 -0
  217. package/src/__tests__/video-overlay-pricing.test.ts +61 -0
  218. package/src/__tests__/video-overlay-validate.test.ts +128 -0
  219. package/src/__tests__/video-overlay-wired-kind.test.ts +207 -0
  220. package/src/__tests__/video-overlay.test.ts +280 -194
  221. package/src/__tests__/video-ref-limits.test.ts +2 -1
  222. package/src/__tests__/video-reference-only.test.ts +6 -2
  223. package/src/__tests__/video-resolution-billed-as-named.test.ts +30 -0
  224. package/src/__tests__/video-start-frame-only.test.ts +98 -0
  225. package/src/__tests__/video-upscale-params.test.ts +62 -0
  226. package/src/__tests__/wired-character-names.test.ts +220 -0
  227. package/src/catalog-projection.ts +8 -0
  228. package/src/credit-estimators/index.ts +18 -0
  229. package/src/credit-estimators/nemotron-transcribe.ts +87 -0
  230. package/src/credit-estimators/video-overlay.ts +70 -0
  231. package/src/credit-identifiers.ts +183 -16
  232. package/src/entity-image-url.ts +21 -0
  233. package/src/entries/credits.ts +26 -1
  234. package/src/entries/entities.ts +14 -0
  235. package/src/entries/llm-models.ts +6 -0
  236. package/src/entries/model-catalog.ts +44 -1
  237. package/src/entries/models.ts +69 -0
  238. package/src/entries/nodes.ts +4 -0
  239. package/src/entries/video.ts +7 -1
  240. package/src/freecut-protocol.ts +8 -0
  241. package/src/generated/unit-contracts.ts +8 -1
  242. package/src/gpt-image-2-6.ts +6 -0
  243. package/src/input-image-pricing.ts +76 -0
  244. package/src/lip-sync-levers.ts +56 -0
  245. package/src/lip-sync-pricing.ts +91 -1
  246. package/src/llm-models.ts +249 -4
  247. package/src/mask-composite.ts +11 -0
  248. package/src/minimax-h3-image.ts +61 -0
  249. package/src/model-catalog.ts +604 -40
  250. package/src/model-constants.ts +860 -55
  251. package/src/model-tree.ts +2 -1
  252. package/src/nodaro-video-upscale.ts +48 -0
  253. package/src/node-default-mappings.ts +15 -2
  254. package/src/node-execution-state.ts +4 -3
  255. package/src/normalize-node-params.ts +49 -1
  256. package/src/producer-types.ts +23 -1
  257. package/src/runtime-config/contract.ts +10 -7
  258. package/src/seedance-draft.ts +2 -1
  259. package/src/seedance-task-type.ts +37 -0
  260. package/src/seedream-5-5.ts +45 -0
  261. package/src/transcribe-preflight.ts +58 -7
  262. package/src/unit-contract-compose.ts +4 -1
  263. package/src/upscale-factors.ts +111 -0
  264. package/src/video-character-refs.ts +7 -4
  265. package/src/video-duration.ts +9 -0
  266. package/src/video-overlay-geometry.ts +99 -0
  267. package/src/video-overlay-input.ts +25 -0
  268. package/src/video-overlay-layout-ids.ts +48 -0
  269. package/src/video-overlay-layouts.ts +315 -0
  270. package/src/video-overlay-validate.ts +223 -0
  271. package/src/video-overlay-video-layers.ts +304 -0
  272. package/src/video-overlay.ts +165 -297
  273. package/src/video-ui-defaults.ts +11 -7
  274. package/src/video-upscale-params.ts +67 -0
  275. package/src/wired-character-names.ts +202 -0
  276. package/dist/chunk-3M4BNKFJ.cjs.map +0 -1
  277. package/dist/chunk-4KYLNTR7.cjs.map +0 -1
  278. package/dist/chunk-5XRRENHD.cjs.map +0 -1
  279. package/dist/chunk-673E4KYC.js.map +0 -1
  280. package/dist/chunk-6XVHYD5R.js.map +0 -1
  281. package/dist/chunk-7ARKVJTN.cjs.map +0 -1
  282. package/dist/chunk-7WGKP3EU.js +0 -23
  283. package/dist/chunk-7WGKP3EU.js.map +0 -1
  284. package/dist/chunk-A3FHTSLB.js.map +0 -1
  285. package/dist/chunk-AFQFGZN7.cjs.map +0 -1
  286. package/dist/chunk-F5YEMSNK.cjs.map +0 -1
  287. package/dist/chunk-FQXRYPCX.cjs.map +0 -1
  288. package/dist/chunk-FVII3KHN.js.map +0 -1
  289. package/dist/chunk-FVVD6XY2.js.map +0 -1
  290. package/dist/chunk-G4XWVWRI.js.map +0 -1
  291. package/dist/chunk-HGI2VKIV.js.map +0 -1
  292. package/dist/chunk-IRQ3SPX7.js.map +0 -1
  293. package/dist/chunk-IVXSNW2B.cjs.map +0 -1
  294. package/dist/chunk-JHTT2V4A.cjs.map +0 -1
  295. package/dist/chunk-KHZAQGRP.js +0 -17
  296. package/dist/chunk-KHZAQGRP.js.map +0 -1
  297. package/dist/chunk-LLOIAGFB.js.map +0 -1
  298. package/dist/chunk-M3SXUUWC.cjs.map +0 -1
  299. package/dist/chunk-MOMFX32D.js.map +0 -1
  300. package/dist/chunk-NCOGGRRP.cjs +0 -27
  301. package/dist/chunk-NCOGGRRP.cjs.map +0 -1
  302. package/dist/chunk-NJVOJXBS.cjs.map +0 -1
  303. package/dist/chunk-PONP5J5E.cjs.map +0 -1
  304. package/dist/chunk-RUHKBEFF.js.map +0 -1
  305. package/dist/chunk-SWVGHAYO.js.map +0 -1
  306. package/dist/chunk-UARGJ5IZ.js.map +0 -1
  307. package/dist/chunk-VB2ARGQ6.js.map +0 -1
  308. package/dist/chunk-WGKAOUEQ.cjs.map +0 -1
  309. package/dist/chunk-XROE3CAS.cjs.map +0 -1
  310. package/dist/chunk-ZLDFPVVI.cjs +0 -19
  311. package/dist/chunk-ZLDFPVVI.cjs.map +0 -1
  312. package/dist/chunk-ZNM2LW3D.cjs.map +0 -1
  313. package/dist/chunk-ZZGQRRN7.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nodaro/shared",
3
- "version": "3.61.0",
3
+ "version": "3.63.0",
4
4
  "description": "Shared types, model catalog, wire contracts, and structural vocabularies for the Nodaro platform and SDK.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -4,6 +4,7 @@ import {
4
4
  resolveNormalizedImageGen,
5
5
  buildVideoCreditModelIdentifier,
6
6
  buildMotionCreditModelIdentifier,
7
+ motionTransferResolution,
7
8
  } from "../credit-identifiers.js"
8
9
 
9
10
  // ---------------------------------------------------------------------------
@@ -795,6 +796,34 @@ describe("buildMotionCreditModelIdentifier", () => {
795
796
  })
796
797
  })
797
798
 
799
+ // --- A size the model does not have (decided 2026-11-12) ---
800
+ describe("a size the model does not have", () => {
801
+ it("Wan Animate at 1080p runs, and is priced, as 720p, and says so", () => {
802
+ for (const provider of ["wan-animate-move", "wan-animate-replace"]) {
803
+ expect(buildMotionCreditModelIdentifier(provider, "1080p")).toBe(`${provider}:720p`)
804
+ const sized = motionTransferResolution(provider, "1080p")
805
+ expect(sized.resolution).toBe("720p")
806
+ expect(sized.adjustments.map(({ field, from, to }) => ({ field, from, to }))).toEqual([{ field: "resolution", from: "1080p", to: "720p" }])
807
+ }
808
+ })
809
+
810
+ it("Wan Animate's own sizes are kept, with nothing to say", () => {
811
+ for (const size of ["480p", "580p", "720p"]) {
812
+ expect(motionTransferResolution("wan-animate-replace", size)).toEqual({ resolution: size, adjustments: [] })
813
+ }
814
+ })
815
+
816
+ it("the Kling motion models are sent the size they name, as before (their price is the same either way)", () => {
817
+ for (const provider of ["kling", "kling-3.0"]) {
818
+ for (const size of ["480p", "580p", "720p", "1080p"]) {
819
+ expect(motionTransferResolution(provider, size), `${provider} ${size}`).toEqual({ resolution: size, adjustments: [] })
820
+ }
821
+ }
822
+ expect(buildMotionCreditModelIdentifier("kling", "480p")).toBe("motion-transfer:10s")
823
+ expect(buildMotionCreditModelIdentifier("kling-3.0", "1080p")).toBe("kling-3.0-motion:1080p:10s")
824
+ })
825
+ })
826
+
798
827
  // --- Duration tier matching ---
799
828
  describe("duration tier matching", () => {
800
829
  it("3s falls into 5s tier", () => {
@@ -0,0 +1,194 @@
1
+ import { describe, expect, it } from "vitest"
2
+ import { EXTEND_VIDEO_PROVIDERS, isSeedanceExtendProvider, isTailExtendProvider } from "../model-constants.js"
3
+ import { MODEL_CATALOG } from "../model-catalog.js"
4
+ import { buildVideoCreditModelIdentifier, seedanceExtendCreditId, seedanceExtendResolution, tailExtendCreditId, tailExtendResolution } from "../credit-identifiers.js"
5
+
6
+ const range = (from: number, to: number): number[] => Array.from({ length: to - from + 1 }, (_, i) => from + i)
7
+ const RESOLUTIONS = ["480p", "720p", "1080p"] as const
8
+
9
+ /**
10
+ * Extend Video runs Seedance as two providers, one per model: Seedance 2.5
11
+ * (4–30 s added) and Seedance 2.0 (4–15 s). Each is priced on its own rows,
12
+ * one per second added and resolution.
13
+ */
14
+ describe("Seedance Extend Video providers", () => {
15
+ it("lists Seedance 2.5 and 2.0 as two extend providers", () => {
16
+ expect(EXTEND_VIDEO_PROVIDERS).toEqual(expect.arrayContaining(["seedance-2-5-extend", "seedance-2-0-extend"]))
17
+ expect(EXTEND_VIDEO_PROVIDERS).not.toContain("seedance-2-extend")
18
+ })
19
+
20
+ it("tells the two Seedance extend providers from every other value", () => {
21
+ expect(isSeedanceExtendProvider("seedance-2-5-extend")).toBe(true)
22
+ expect(isSeedanceExtendProvider("seedance-2-0-extend")).toBe(true)
23
+ // The retired id is mapped to the provider it runs as before it is asked.
24
+ expect(isSeedanceExtendProvider("seedance-2-extend")).toBe(false)
25
+ expect(isSeedanceExtendProvider("veo-extend")).toBe(false)
26
+ expect(isSeedanceExtendProvider("seedance-2-5")).toBe(false)
27
+ expect(isSeedanceExtendProvider(undefined)).toBe(false)
28
+ })
29
+
30
+ it("prices each Seedance extend on its own rows", () => {
31
+ expect(tailExtendCreditId("seedance-2-5-extend", 8, "720p")).toBe("seedance-2-5-extend:8s:720p")
32
+ expect(tailExtendCreditId("seedance-2-0-extend", 8, "720p")).toBe("seedance-2-0-extend:8s:720p")
33
+ expect(tailExtendCreditId("seedance-2-5-extend", 30, "1080p")).toBe("seedance-2-5-extend:30s:1080p")
34
+ expect(tailExtendCreditId("seedance-2-0-extend", 25, "480p")).toBe("seedance-2-0-extend:15s:480p")
35
+ expect(tailExtendCreditId("seedance-2-5-extend")).toBe("seedance-2-5-extend:8s:720p")
36
+ })
37
+
38
+ it("prices both Seedance models per second added", () => {
39
+ expect(tailExtendCreditId("seedance-2-5-extend", 6, "480p")).toBe("seedance-2-5-extend:6s:480p")
40
+ expect(tailExtendCreditId("seedance-2-0-extend", 6, "480p")).toBe("seedance-2-0-extend:6s:480p")
41
+ expect(tailExtendCreditId("seedance-2-0-extend", 10, "1080p")).toBe("seedance-2-0-extend:10s:1080p")
42
+ expect(tailExtendCreditId("seedance-2-0-extend", 4, "720p")).toBe("seedance-2-0-extend:4s:720p")
43
+ expect(tailExtendCreditId("seedance-2-0-extend")).toBe("seedance-2-0-extend:8s:720p")
44
+ })
45
+
46
+ it("snaps a length or a resolution the provider does not offer", () => {
47
+ expect(tailExtendCreditId("seedance-2-5-extend", 2, "720p")).toBe("seedance-2-5-extend:4s:720p")
48
+ expect(tailExtendCreditId("seedance-2-5-extend", 45, "720p")).toBe("seedance-2-5-extend:30s:720p")
49
+ expect(tailExtendCreditId("seedance-2-5-extend", 8, "4k")).toBe("seedance-2-5-extend:8s:720p")
50
+ expect(tailExtendCreditId("seedance-2-0-extend", 8, "4k")).toBe("seedance-2-0-extend:8s:720p")
51
+ expect(tailExtendCreditId("seedance-2-0-extend", 2, "480p")).toBe("seedance-2-0-extend:4s:480p")
52
+ expect(tailExtendCreditId("seedance-2-5-extend", 0, "480p")).toBe("seedance-2-5-extend:8s:480p")
53
+ })
54
+
55
+ it("renders at the resolution it is priced at: one the model offers, else 720p", () => {
56
+ for (const provider of ["seedance-2-5-extend", "seedance-2-0-extend"] as const) {
57
+ for (const res of RESOLUTIONS) expect(tailExtendResolution(provider, res), `${provider} ${res}`).toBe(res)
58
+ for (const res of [undefined, "4k", "360p", "", 1080, null]) {
59
+ expect(tailExtendResolution(provider, res), `${provider} ${String(res)}`).toBe("720p")
60
+ }
61
+ // The id names exactly the resolution the run renders at.
62
+ for (const res of [...RESOLUTIONS, undefined, "4k"]) {
63
+ expect(tailExtendCreditId(provider, 8, res)).toBe(`${provider}:8s:${tailExtendResolution(provider, res)}`)
64
+ }
65
+ }
66
+ })
67
+
68
+ it("names only rows each provider is priced on, for any length and resolution", () => {
69
+ // The Seedance 2.0 rows: every second of its window at three resolutions.
70
+ const rows20 = new Set(range(4, 15).flatMap((n) => RESOLUTIONS.map((r) => `seedance-2-0-extend:${n}s:${r}`)))
71
+ // The Seedance 2.5 rows: every second of its window at three resolutions.
72
+ const rows25 = new Set(range(4, 30).flatMap((n) => RESOLUTIONS.map((r) => `seedance-2-5-extend:${n}s:${r}`)))
73
+ for (const res of [...RESOLUTIONS, undefined, "4k"]) {
74
+ for (const duration of [undefined, ...range(-1, 35)]) {
75
+ expect(rows20.has(tailExtendCreditId("seedance-2-0-extend", duration, res)), `2.0 ${duration}s ${res}`).toBe(true)
76
+ expect(rows25.has(tailExtendCreditId("seedance-2-5-extend", duration, res)), `2.5 ${duration}s ${res}`).toBe(true)
77
+ }
78
+ }
79
+ })
80
+
81
+ it("the generic video builder prices a Seedance extend on its own rows, never a bare unpriced id", () => {
82
+ for (const provider of ["seedance-2-5-extend", "seedance-2-0-extend"] as const) {
83
+ for (const duration of [undefined, 1, 6, 12, 25, 45, "12"]) {
84
+ for (const res of [undefined, "480p", "720p", "1080p", "4k"]) {
85
+ expect(buildVideoCreditModelIdentifier(provider, duration, undefined, undefined, undefined, res), `${provider} ${duration} ${res}`)
86
+ .toBe(tailExtendCreditId(provider, duration, res))
87
+ }
88
+ }
89
+ }
90
+ // The retired id is priced as the provider it runs as.
91
+ expect(buildVideoCreditModelIdentifier("seedance-2-extend", 12, undefined, undefined, undefined, "1080p")).toBe("seedance-2-5-extend:12s:1080p")
92
+ expect(buildVideoCreditModelIdentifier("seedance-2-extend")).toBe("seedance-2-5-extend:8s:720p")
93
+ })
94
+
95
+ it("catalogs each with its own window", () => {
96
+ expect(MODEL_CATALOG["seedance-2-5-extend"]?.durations).toEqual(range(4, 30))
97
+ expect(MODEL_CATALOG["seedance-2-0-extend"]?.durations).toEqual(range(4, 15))
98
+ expect(MODEL_CATALOG["seedance-2-extend"]).toBeUndefined()
99
+ for (const id of ["seedance-2-5-extend", "seedance-2-0-extend"] as const) {
100
+ const entry = MODEL_CATALOG[id]!
101
+ expect(entry.modes).toEqual(["extend"])
102
+ expect(entry.maker).toBe("bytedance")
103
+ expect(entry.defaultDuration).toBe(8)
104
+ expect(entry.resolutions).toEqual([...RESOLUTIONS])
105
+ // Each catalog entry lists the rows its default length is priced on.
106
+ const ids = entry.pricing.map((p) => p.identifier)
107
+ for (const res of RESOLUTIONS) expect(ids, `${id} ${res}`).toContain(tailExtendCreditId(id, 8, res))
108
+ // The first row is the default run's price; the retired provider id is
109
+ // never listed (sent as a provider, it runs and bills as Seedance 2.5).
110
+ expect(entry.pricing[0]!.identifier, id).toBe(tailExtendCreditId(id))
111
+ expect(ids, id).not.toContain("seedance-2-extend")
112
+ }
113
+ })
114
+ })
115
+
116
+ /**
117
+ * Kling 4 extends any video with the same tail recipe as Seedance (the
118
+ * source's last frame opens the new footage, its last seconds ride as
119
+ * `@video_1`, then the two are stitched): `kling-4-extend`, 3–30 s added at
120
+ * 720p or 1080p, priced on its own rows.
121
+ */
122
+ describe("Kling 4 Extend Video provider", () => {
123
+ const KLING_RESOLUTIONS = ["720p", "1080p"] as const
124
+
125
+ it("lists Kling 4 right after the two Seedance extend providers", () => {
126
+ const at = EXTEND_VIDEO_PROVIDERS.indexOf("kling-4-extend")
127
+ expect(at).toBeGreaterThan(-1)
128
+ expect(EXTEND_VIDEO_PROVIDERS[at - 1]).toBe("seedance-2-0-extend")
129
+ })
130
+
131
+ it("is a tail-recipe extend provider, but no Seedance one (its levers are its own)", () => {
132
+ expect(isTailExtendProvider("kling-4-extend")).toBe(true)
133
+ expect(isSeedanceExtendProvider("kling-4-extend")).toBe(false)
134
+ expect(isTailExtendProvider("kling-4")).toBe(false)
135
+ })
136
+
137
+ it("offers 3–30 s and 720p/1080p on Kling 4, in a catalog entry of its own", () => {
138
+ const entry = MODEL_CATALOG["kling-4-extend"]!
139
+ expect(entry.modes).toEqual(["extend"])
140
+ expect(entry.maker).toBe("kuaishou")
141
+ expect(entry.durations).toEqual(range(3, 30))
142
+ expect(entry.resolutions).toEqual([...KLING_RESOLUTIONS])
143
+ // Its default run is Kling 4's own default length.
144
+ expect(entry.defaultDuration).toBe(MODEL_CATALOG["kling-4"]!.defaultDuration)
145
+ expect(entry.pricing[0]!.identifier).toBe(tailExtendCreditId("kling-4-extend"))
146
+ expect(entry.pricing[0]!.identifier).toBe("kling-4-extend:5s:720p")
147
+ })
148
+
149
+ it("prices every length and resolution on its own rows, snapping what it does not offer", () => {
150
+ expect(tailExtendCreditId("kling-4-extend", 5, "720p")).toBe("kling-4-extend:5s:720p")
151
+ expect(tailExtendCreditId("kling-4-extend", 30, "1080p")).toBe("kling-4-extend:30s:1080p")
152
+ expect(tailExtendCreditId("kling-4-extend", 3, "1080p")).toBe("kling-4-extend:3s:1080p")
153
+ expect(tailExtendCreditId("kling-4-extend", 2, "720p")).toBe("kling-4-extend:3s:720p")
154
+ expect(tailExtendCreditId("kling-4-extend", 45, "720p")).toBe("kling-4-extend:30s:720p")
155
+ // Kling 4 renders no 480p: a run naming it is priced, and renders, at 720p.
156
+ expect(tailExtendCreditId("kling-4-extend", 8, "480p")).toBe("kling-4-extend:8s:720p")
157
+ expect(tailExtendResolution("kling-4-extend", "480p")).toBe("720p")
158
+ expect(tailExtendResolution("kling-4-extend", "1080p")).toBe("1080p")
159
+ const rows = new Set(range(3, 30).flatMap((n) => KLING_RESOLUTIONS.map((r) => `kling-4-extend:${n}s:${r}`)))
160
+ for (const res of [...KLING_RESOLUTIONS, undefined, "480p", "4k"]) {
161
+ for (const duration of [undefined, ...range(-1, 35)]) {
162
+ expect(rows.has(tailExtendCreditId("kling-4-extend", duration, res)), `${duration}s ${res}`).toBe(true)
163
+ }
164
+ }
165
+ })
166
+
167
+ it("the generic video builder prices a Kling 4 extend on its own rows", () => {
168
+ for (const duration of [undefined, 1, 5, 12, 30, 45, "12"]) {
169
+ for (const res of [undefined, "480p", "720p", "1080p"]) {
170
+ expect(buildVideoCreditModelIdentifier("kling-4-extend", duration, undefined, undefined, undefined, res), `${duration} ${res}`)
171
+ .toBe(tailExtendCreditId("kling-4-extend", duration, res))
172
+ }
173
+ }
174
+ })
175
+ })
176
+
177
+ describe("the tail-recipe extend providers", () => {
178
+ it("are Seedance 2.5, Seedance 2.0 and Kling 4", () => {
179
+ expect(EXTEND_VIDEO_PROVIDERS.filter(isTailExtendProvider)).toEqual(["seedance-2-5-extend", "seedance-2-0-extend", "kling-4-extend"])
180
+ expect(isTailExtendProvider("seedance-2-extend")).toBe(false)
181
+ expect(isTailExtendProvider("veo-extend")).toBe(false)
182
+ expect(isTailExtendProvider(undefined)).toBe(false)
183
+ expect(isTailExtendProvider("toString")).toBe(false)
184
+ })
185
+
186
+ it("the earlier Seedance-only names still answer, as the tail builders do (published API)", () => {
187
+ for (const provider of ["seedance-2-5-extend", "seedance-2-0-extend"] as const) {
188
+ for (const res of [undefined, "480p", "1080p", "4k"]) {
189
+ expect(seedanceExtendCreditId(provider, 12, res)).toBe(tailExtendCreditId(provider, 12, res))
190
+ expect(seedanceExtendResolution(provider, res)).toBe(tailExtendResolution(provider, res))
191
+ }
192
+ }
193
+ })
194
+ })
@@ -0,0 +1,118 @@
1
+ {
2
+ "$comment": "Mask Composite's quote before a run, read by BOTH estimates over the same graphs: the editor's (frontend maskCompositePricingUnits — the node's pill, its Run button, the confirm and the workflow badge) and the server's run estimate (CreditsService.estimateWorkflowBaseCredits). Each case wires its sources into the composite `c`; `expectedUnits` is the 5-second units both quote (60 = the 300 s cap). The sources are uploads, Library clips and Video links, which the two read the same way (as they do Trim / Loop / Combine Videos or length-keeping steps built only on those). Any other node's output (a generation, an Extend Video, or a step that recorded a length of its own, and a chain built on one) is not a case: the editor reads the length that node records or is set to, which the server's run estimate does not read. `fallbackDecidedBefore` marks a shape the editor used to price from a length the upstream node merely stores (an upload's metadata, a Video link's whole length) — the server never read it, so the editor now quotes the cap there too. `libraryAsset` is the Library asset a case's upload node was added from: the editor half builds that node through `assetToUploadNode` and holds it to `nodes[0].data` (all but the row's `jobId` and `timestamp`, which no reader reads), so the server half reads exactly what a Library add writes.",
3
+ "cases": [
4
+ {
5
+ "name": "an uploaded clip: the result row the upload recorded for its current file",
6
+ "composite": {},
7
+ "nodes": [
8
+ { "id": "u", "type": "upload-video", "data": { "url": "https://cdn.example/clip.mp4", "metadata": { "durationSeconds": 23 }, "generatedResults": [{ "url": "https://cdn.example/clip.mp4", "duration": 23 }], "activeResultIndex": 0 } }
9
+ ],
10
+ "edges": [{ "source": "u", "targetHandle": "video" }],
11
+ "expectedUnits": 5
12
+ },
13
+ {
14
+ "name": "an upload that declares its length with the node (an API-written workflow)",
15
+ "composite": {},
16
+ "nodes": [
17
+ { "id": "u", "type": "upload-video", "data": { "url": "https://cdn.example/clip.mp4", "duration": 12 } }
18
+ ],
19
+ "edges": [{ "source": "u", "targetHandle": "video" }],
20
+ "expectedUnits": 3
21
+ },
22
+ {
23
+ "name": "pixelate: the background's recorded length, never the foreground's",
24
+ "composite": { "fill": "pixelate" },
25
+ "nodes": [
26
+ { "id": "f", "type": "upload-video", "data": { "url": "https://cdn.example/f.mp4", "duration": 12 } },
27
+ { "id": "b", "type": "upload-video", "data": { "url": "https://cdn.example/b.mp4", "duration": 41 } }
28
+ ],
29
+ "edges": [{ "source": "f", "targetHandle": "video" }, { "source": "b", "targetHandle": "background-video" }],
30
+ "expectedUnits": 9
31
+ },
32
+ {
33
+ "name": "nothing wired: the cap",
34
+ "composite": {},
35
+ "nodes": [],
36
+ "edges": [],
37
+ "expectedUnits": 60
38
+ },
39
+ {
40
+ "name": "an upload with no length at all: the cap",
41
+ "composite": {},
42
+ "nodes": [
43
+ { "id": "u", "type": "upload-video", "data": { "url": "https://cdn.example/clip.mp4" } }
44
+ ],
45
+ "edges": [{ "source": "u", "targetHandle": "video" }],
46
+ "expectedUnits": 60
47
+ },
48
+ {
49
+ "name": "blur with only a foreground of known length: the cap (the background is the lead)",
50
+ "composite": { "fill": "blur" },
51
+ "nodes": [
52
+ { "id": "f", "type": "upload-video", "data": { "url": "https://cdn.example/f.mp4", "duration": 12 } }
53
+ ],
54
+ "edges": [{ "source": "f", "targetHandle": "video" }],
55
+ "expectedUnits": 60
56
+ },
57
+ {
58
+ "name": "a video added from the Library: the row the add records for its file — its length",
59
+ "libraryAsset": { "id": "asset-1", "type": "video", "filename": "clip.mp4", "mimeType": "video/mp4", "sizeBytes": 1234, "url": "https://cdn.example/asset.mp4", "thumbnailUrl": "https://cdn.example/asset.jpg", "metadata": { "width": 1280, "height": 720, "durationSeconds": 23 }, "isLibraryItem": true, "uploadSource": "manual_upload", "createdAt": "2026-11-01T00:00:00.000Z" },
60
+ "composite": {},
61
+ "nodes": [
62
+ { "id": "u", "type": "upload-video", "data": { "r2Url": "https://cdn.example/asset.mp4", "url": "https://cdn.example/asset.mp4", "thumbnailUrl": "https://cdn.example/asset.jpg", "filename": "clip.mp4", "fileSize": 1234, "mimeType": "video/mp4", "metadata": { "width": 1280, "height": 720, "durationSeconds": 23 }, "assetId": "asset-1", "generatedResults": [{ "url": "https://cdn.example/asset.mp4", "thumbnailUrl": "https://cdn.example/asset.jpg", "jobId": "upload-1794441600000", "timestamp": "2026-11-12T00:00:00.000Z", "width": 1280, "height": 720, "duration": 23 }], "activeResultIndex": 0 } }
63
+ ],
64
+ "edges": [{ "source": "u", "targetHandle": "video" }],
65
+ "expectedUnits": 5
66
+ },
67
+ {
68
+ "name": "a video added from the Library whose length was never measured (a generated video's asset): the cap",
69
+ "libraryAsset": { "id": "asset-2", "type": "video", "filename": "gen.mp4", "mimeType": "video/mp4", "sizeBytes": 999, "url": "https://cdn.example/gen.mp4", "thumbnailUrl": null, "metadata": { "thumbnail_url": "https://cdn.example/gen.jpg" }, "isLibraryItem": true, "uploadSource": "generated", "jobId": "job-9", "createdAt": "2026-11-01T00:00:00.000Z" },
70
+ "composite": {},
71
+ "nodes": [
72
+ { "id": "u", "type": "upload-video", "data": { "r2Url": "https://cdn.example/gen.mp4", "url": "https://cdn.example/gen.mp4", "filename": "gen.mp4", "fileSize": 999, "mimeType": "video/mp4", "metadata": { "thumbnail_url": "https://cdn.example/gen.jpg" }, "assetId": "asset-2", "generatedResults": [{ "url": "https://cdn.example/gen.mp4", "jobId": "upload-1794441600000", "timestamp": "2026-11-12T00:00:00.000Z" }], "activeResultIndex": 0 } }
73
+ ],
74
+ "edges": [{ "source": "u", "targetHandle": "video" }],
75
+ "expectedUnits": 60
76
+ },
77
+ {
78
+ "name": "a video saved to the Library with its caller's metadata (POST /v1/library/save-generated): no length recorded — the cap",
79
+ "libraryAsset": { "id": "asset-3", "type": "video", "filename": "saved.mp4", "mimeType": "video/mp4", "sizeBytes": 0, "url": "https://cdn.example/saved.mp4", "thumbnailUrl": null, "metadata": { "durationSeconds": 1 }, "isLibraryItem": true, "uploadSource": "generated", "createdAt": "2026-11-01T00:00:00.000Z" },
80
+ "composite": {},
81
+ "nodes": [
82
+ { "id": "u", "type": "upload-video", "data": { "r2Url": "https://cdn.example/saved.mp4", "url": "https://cdn.example/saved.mp4", "filename": "saved.mp4", "fileSize": 0, "mimeType": "video/mp4", "metadata": { "durationSeconds": 1 }, "assetId": "asset-3", "generatedResults": [{ "url": "https://cdn.example/saved.mp4", "jobId": "upload-1794441600000", "timestamp": "2026-11-12T00:00:00.000Z" }], "activeResultIndex": 0 } }
83
+ ],
84
+ "edges": [{ "source": "u", "targetHandle": "video" }],
85
+ "expectedUnits": 60
86
+ },
87
+ {
88
+ "name": "a video added from the Library before adds recorded its length (the asset's metadata only, no result row): the cap",
89
+ "fallbackDecidedBefore": 2,
90
+ "composite": {},
91
+ "nodes": [
92
+ { "id": "u", "type": "upload-video", "data": { "url": "https://cdn.example/asset.mp4", "r2Url": "https://cdn.example/asset.mp4", "assetId": "asset-1", "metadata": { "durationSeconds": 10 } } }
93
+ ],
94
+ "edges": [{ "source": "u", "targetHandle": "video" }],
95
+ "expectedUnits": 60
96
+ },
97
+ {
98
+ "name": "an upload whose link was replaced: the earlier file's length is not this file's — the cap",
99
+ "fallbackDecidedBefore": 2,
100
+ "composite": {},
101
+ "nodes": [
102
+ { "id": "u", "type": "upload-video", "data": { "url": "https://cdn.example/new.mp4", "metadata": { "durationSeconds": 10 }, "generatedResults": [{ "url": "https://cdn.example/old.mp4", "duration": 10 }], "activeResultIndex": 0 } }
103
+ ],
104
+ "edges": [{ "source": "u", "targetHandle": "video" }],
105
+ "expectedUnits": 60
106
+ },
107
+ {
108
+ "name": "a Video link: the linked video's whole length is not the file the run downloads — the cap",
109
+ "fallbackDecidedBefore": 8,
110
+ "composite": {},
111
+ "nodes": [
112
+ { "id": "y", "type": "youtube-video", "data": { "url": "https://www.youtube.com/watch?v=abc", "videoDurationSec": 40 } }
113
+ ],
114
+ "edges": [{ "source": "y", "targetHandle": "video" }],
115
+ "expectedUnits": 60
116
+ }
117
+ ]
118
+ }
@@ -959,6 +959,7 @@
959
959
  "PipelineStatusSchema",
960
960
  "PipelineType",
961
961
  "PixelBox",
962
+ "PlacedVideoOverlayVideoInput",
962
963
  "PreflightGraphEdge",
963
964
  "PreflightGraphNode",
964
965
  "PresentationItem",
@@ -1635,6 +1636,7 @@
1635
1636
  "VIDEO_OUTPUT_CANVAS",
1636
1637
  "VIDEO_OVERLAY_ANIMATION_MIN_SCALE",
1637
1638
  "VIDEO_OVERLAY_ANIMATION_SEC",
1639
+ "VIDEO_OVERLAY_ASPECT_BOUNDS",
1638
1640
  "VIDEO_OVERLAY_BADGE_INSET",
1639
1641
  "VIDEO_OVERLAY_BADGE_WIDTH",
1640
1642
  "VIDEO_OVERLAY_BOUNDS",
@@ -1645,13 +1647,22 @@
1645
1647
  "VIDEO_OVERLAY_FITS",
1646
1648
  "VIDEO_OVERLAY_HANDLE_IDS",
1647
1649
  "VIDEO_OVERLAY_LAYER_PLAN_HANDLE",
1650
+ "VIDEO_OVERLAY_LAYOUT_IDS",
1648
1651
  "VIDEO_OVERLAY_MAX_COMPOSITION_KEY_LENGTH",
1649
1652
  "VIDEO_OVERLAY_MAX_LAYERS",
1653
+ "VIDEO_OVERLAY_MAX_LAYER_VIDEO_BYTES",
1650
1654
  "VIDEO_OVERLAY_MAX_TIME_SEC",
1651
1655
  "VIDEO_OVERLAY_MAX_TOTAL_LAYER_BYTES",
1656
+ "VIDEO_OVERLAY_MAX_VIDEO_LAYERS",
1652
1657
  "VIDEO_OVERLAY_OUTPUT_ASPECTS",
1658
+ "VIDEO_OVERLAY_PIP_INSET",
1659
+ "VIDEO_OVERLAY_PIP_WIDTH",
1653
1660
  "VIDEO_OVERLAY_PRESETS",
1654
1661
  "VIDEO_OVERLAY_PRESET_IDS",
1662
+ "VIDEO_OVERLAY_PRICING",
1663
+ "VIDEO_OVERLAY_REMEASURE_SLACK_SEC",
1664
+ "VIDEO_OVERLAY_VIDEO_MAX_BASE_SEC",
1665
+ "VIDEO_OVERLAY_VOLUME_BOUNDS",
1655
1666
  "VIDEO_OVERLAY_WARNING_CODES",
1656
1667
  "VIDEO_PRODUCER_TYPES",
1657
1668
  "VIDEO_PROMPT_MAX",
@@ -1716,7 +1727,9 @@
1716
1727
  "VideoModeAlias",
1717
1728
  "VideoModelCapabilities",
1718
1729
  "VideoOutputCanvas",
1730
+ "VideoOverlayBaseBoxSpec",
1719
1731
  "VideoOverlayBox",
1732
+ "VideoOverlayBoxInput",
1720
1733
  "VideoOverlayCanvas",
1721
1734
  "VideoOverlayComposition",
1722
1735
  "VideoOverlayCorner",
@@ -1727,16 +1740,23 @@
1727
1740
  "VideoOverlayLayer",
1728
1741
  "VideoOverlayLayerInput",
1729
1742
  "VideoOverlayLayerSpec",
1743
+ "VideoOverlayLayoutFields",
1744
+ "VideoOverlayLayoutId",
1730
1745
  "VideoOverlayNodeFields",
1731
1746
  "VideoOverlayOrderable",
1732
1747
  "VideoOverlayOutputAspect",
1748
+ "VideoOverlayPlacedRect",
1733
1749
  "VideoOverlayPresetId",
1734
1750
  "VideoOverlayRect",
1735
1751
  "VideoOverlayRequest",
1752
+ "VideoOverlaySound",
1736
1753
  "VideoOverlayValidation",
1737
1754
  "VideoOverlayValidationInput",
1755
+ "VideoOverlayVideoPlacement",
1738
1756
  "VideoOverlayWarning",
1739
1757
  "VideoOverlayWarningCode",
1758
+ "VideoOverlayWireBeforeRun",
1759
+ "VideoOverlayWireMedium",
1740
1760
  "VideoToVideoNodeProvider",
1741
1761
  "VideoToVideoProvider",
1742
1762
  "VideoUpscaleProvider",
@@ -1879,6 +1899,7 @@
1879
1899
  "clampInstagramFeaturedIndex",
1880
1900
  "clampMetaAdsFeaturedIndex",
1881
1901
  "clampSmartCutWindow",
1902
+ "clampVideoOverlayAspect",
1882
1903
  "classifyCreativeFormat",
1883
1904
  "classifyLegacyTargetHandle",
1884
1905
  "classifyRefToken",
@@ -1978,11 +1999,13 @@
1978
1999
  "evaluateConditionGroup",
1979
2000
  "evaluateJsonExpression",
1980
2001
  "evaluateJsonPath",
2002
+ "evenVideoOverlayRect",
1981
2003
  "executionDataKeysOf",
1982
2004
  "executionOutcome",
1983
2005
  "expandExtraRefsToConnectedReferences",
1984
2006
  "expandItemsWithRepeat",
1985
2007
  "expandVideoOverlayLayer",
2008
+ "expandVideoOverlayLayout",
1986
2009
  "expandVideoOverlayPresets",
1987
2010
  "extractAllGeneratedResults",
1988
2011
  "extractCharacterLoraFields",
@@ -2008,6 +2031,7 @@
2008
2031
  "findUgcLockedFields",
2009
2032
  "findWordlessTranscriptFeeds",
2010
2033
  "firstSightExtraRole",
2034
+ "firstVideoLayerIndex",
2011
2035
  "fitAspectRatioToModel",
2012
2036
  "fitCollectionField",
2013
2037
  "flattenItems",
@@ -2172,6 +2196,7 @@
2172
2196
  "isVideoAnalysisMixedTier",
2173
2197
  "isVideoAnalysisTier",
2174
2198
  "isVideoOverlayCorner",
2199
+ "isVideoOverlayLayoutId",
2175
2200
  "isVideoOverlayOutputAspect",
2176
2201
  "isVideoOverlayPresetId",
2177
2202
  "isWan3Provider",
@@ -2184,6 +2209,7 @@
2184
2209
  "knownImageSlugsFromRefs",
2185
2210
  "legacyScheduleToRules",
2186
2211
  "listBoardTemplates",
2212
+ "listColumnMediaType",
2187
2213
  "listModels",
2188
2214
  "listResultsServeHandle",
2189
2215
  "listSlotSids",
@@ -2311,6 +2337,7 @@
2311
2337
  "pitchTempoBaseCredits",
2312
2338
  "pitchTempoCreditId",
2313
2339
  "pitchTempoStartedMinutes",
2340
+ "placeVideoOverlayVideos",
2314
2341
  "planClipKeyAt",
2315
2342
  "planFanOut",
2316
2343
  "planFeedEmission",
@@ -2429,7 +2456,9 @@
2429
2456
  "resolveVideoLinkOutput",
2430
2457
  "resolveVideoMaskProvider",
2431
2458
  "resolveVideoModeForInputs",
2459
+ "resolveVideoOverlayBaseRect",
2432
2460
  "resolveVideoOverlayGeometry",
2461
+ "resolveVideoOverlayStackRects",
2433
2462
  "resolveVideoProviderForMode",
2434
2463
  "resolveWiredSettings",
2435
2464
  "resolveXfadeName",
@@ -2728,20 +2757,30 @@
2728
2757
  "videoModelCanSpeakDialogue",
2729
2758
  "videoModelSupportsAudio",
2730
2759
  "videoNegativeSuffix",
2760
+ "videoOverlayBaseTooLong",
2731
2761
  "videoOverlayCanvas",
2732
2762
  "videoOverlayCompositionKey",
2763
+ "videoOverlayCreditId",
2764
+ "videoOverlayHasVideoLayer",
2733
2765
  "videoOverlayLayerLabel",
2766
+ "videoOverlayLayoutNeedsAspect",
2767
+ "videoOverlayLayoutNeedsVideoLayer",
2768
+ "videoOverlayLayoutPlacesBase",
2734
2769
  "videoOverlayPassThrough",
2735
2770
  "videoOverlayPresetBox",
2736
2771
  "videoOverlayRenderOrder",
2737
2772
  "videoOverlaySlotOfHandle",
2738
2773
  "videoOverlaySlotSources",
2774
+ "videoOverlayVideoUnits",
2775
+ "videoOverlayWireMediumBeforeRun",
2776
+ "videoOverlayWiredLayerKind",
2739
2777
  "videoProviderFoldsLoneEndFrame",
2740
2778
  "videoProviderRequiresImage",
2741
2779
  "videoSfxCreditId",
2742
2780
  "windowAnalysisSchema",
2743
2781
  "withRunOverrides",
2744
2782
  "withWiredSettings",
2783
+ "withoutImpliedVideoOverlayAnimate",
2745
2784
  "zipMergeLists"
2746
2785
  ],
2747
2786
  "runtime": [
@@ -3641,6 +3680,7 @@
3641
3680
  "VIDEO_OUTPUT_CANVAS",
3642
3681
  "VIDEO_OVERLAY_ANIMATION_MIN_SCALE",
3643
3682
  "VIDEO_OVERLAY_ANIMATION_SEC",
3683
+ "VIDEO_OVERLAY_ASPECT_BOUNDS",
3644
3684
  "VIDEO_OVERLAY_BADGE_INSET",
3645
3685
  "VIDEO_OVERLAY_BADGE_WIDTH",
3646
3686
  "VIDEO_OVERLAY_BOUNDS",
@@ -3651,13 +3691,22 @@
3651
3691
  "VIDEO_OVERLAY_FITS",
3652
3692
  "VIDEO_OVERLAY_HANDLE_IDS",
3653
3693
  "VIDEO_OVERLAY_LAYER_PLAN_HANDLE",
3694
+ "VIDEO_OVERLAY_LAYOUT_IDS",
3654
3695
  "VIDEO_OVERLAY_MAX_COMPOSITION_KEY_LENGTH",
3655
3696
  "VIDEO_OVERLAY_MAX_LAYERS",
3697
+ "VIDEO_OVERLAY_MAX_LAYER_VIDEO_BYTES",
3656
3698
  "VIDEO_OVERLAY_MAX_TIME_SEC",
3657
3699
  "VIDEO_OVERLAY_MAX_TOTAL_LAYER_BYTES",
3700
+ "VIDEO_OVERLAY_MAX_VIDEO_LAYERS",
3658
3701
  "VIDEO_OVERLAY_OUTPUT_ASPECTS",
3702
+ "VIDEO_OVERLAY_PIP_INSET",
3703
+ "VIDEO_OVERLAY_PIP_WIDTH",
3659
3704
  "VIDEO_OVERLAY_PRESETS",
3660
3705
  "VIDEO_OVERLAY_PRESET_IDS",
3706
+ "VIDEO_OVERLAY_PRICING",
3707
+ "VIDEO_OVERLAY_REMEASURE_SLACK_SEC",
3708
+ "VIDEO_OVERLAY_VIDEO_MAX_BASE_SEC",
3709
+ "VIDEO_OVERLAY_VOLUME_BOUNDS",
3661
3710
  "VIDEO_OVERLAY_WARNING_CODES",
3662
3711
  "VIDEO_PRODUCER_TYPES",
3663
3712
  "VIDEO_PROMPT_MAX",
@@ -3786,6 +3835,7 @@
3786
3835
  "clampInstagramFeaturedIndex",
3787
3836
  "clampMetaAdsFeaturedIndex",
3788
3837
  "clampSmartCutWindow",
3838
+ "clampVideoOverlayAspect",
3789
3839
  "classifyCreativeFormat",
3790
3840
  "classifyLegacyTargetHandle",
3791
3841
  "classifyRefToken",
@@ -3885,11 +3935,13 @@
3885
3935
  "evaluateConditionGroup",
3886
3936
  "evaluateJsonExpression",
3887
3937
  "evaluateJsonPath",
3938
+ "evenVideoOverlayRect",
3888
3939
  "executionDataKeysOf",
3889
3940
  "executionOutcome",
3890
3941
  "expandExtraRefsToConnectedReferences",
3891
3942
  "expandItemsWithRepeat",
3892
3943
  "expandVideoOverlayLayer",
3944
+ "expandVideoOverlayLayout",
3893
3945
  "expandVideoOverlayPresets",
3894
3946
  "extractAllGeneratedResults",
3895
3947
  "extractCharacterLoraFields",
@@ -3915,6 +3967,7 @@
3915
3967
  "findUgcLockedFields",
3916
3968
  "findWordlessTranscriptFeeds",
3917
3969
  "firstSightExtraRole",
3970
+ "firstVideoLayerIndex",
3918
3971
  "fitAspectRatioToModel",
3919
3972
  "fitCollectionField",
3920
3973
  "flattenItems",
@@ -4079,6 +4132,7 @@
4079
4132
  "isVideoAnalysisMixedTier",
4080
4133
  "isVideoAnalysisTier",
4081
4134
  "isVideoOverlayCorner",
4135
+ "isVideoOverlayLayoutId",
4082
4136
  "isVideoOverlayOutputAspect",
4083
4137
  "isVideoOverlayPresetId",
4084
4138
  "isWan3Provider",
@@ -4091,6 +4145,7 @@
4091
4145
  "knownImageSlugsFromRefs",
4092
4146
  "legacyScheduleToRules",
4093
4147
  "listBoardTemplates",
4148
+ "listColumnMediaType",
4094
4149
  "listModels",
4095
4150
  "listResultsServeHandle",
4096
4151
  "listSlotSids",
@@ -4218,6 +4273,7 @@
4218
4273
  "pitchTempoBaseCredits",
4219
4274
  "pitchTempoCreditId",
4220
4275
  "pitchTempoStartedMinutes",
4276
+ "placeVideoOverlayVideos",
4221
4277
  "planClipKeyAt",
4222
4278
  "planFanOut",
4223
4279
  "planFeedEmission",
@@ -4336,7 +4392,9 @@
4336
4392
  "resolveVideoLinkOutput",
4337
4393
  "resolveVideoMaskProvider",
4338
4394
  "resolveVideoModeForInputs",
4395
+ "resolveVideoOverlayBaseRect",
4339
4396
  "resolveVideoOverlayGeometry",
4397
+ "resolveVideoOverlayStackRects",
4340
4398
  "resolveVideoProviderForMode",
4341
4399
  "resolveWiredSettings",
4342
4400
  "resolveXfadeName",
@@ -4635,20 +4693,30 @@
4635
4693
  "videoModelCanSpeakDialogue",
4636
4694
  "videoModelSupportsAudio",
4637
4695
  "videoNegativeSuffix",
4696
+ "videoOverlayBaseTooLong",
4638
4697
  "videoOverlayCanvas",
4639
4698
  "videoOverlayCompositionKey",
4699
+ "videoOverlayCreditId",
4700
+ "videoOverlayHasVideoLayer",
4640
4701
  "videoOverlayLayerLabel",
4702
+ "videoOverlayLayoutNeedsAspect",
4703
+ "videoOverlayLayoutNeedsVideoLayer",
4704
+ "videoOverlayLayoutPlacesBase",
4641
4705
  "videoOverlayPassThrough",
4642
4706
  "videoOverlayPresetBox",
4643
4707
  "videoOverlayRenderOrder",
4644
4708
  "videoOverlaySlotOfHandle",
4645
4709
  "videoOverlaySlotSources",
4710
+ "videoOverlayVideoUnits",
4711
+ "videoOverlayWireMediumBeforeRun",
4712
+ "videoOverlayWiredLayerKind",
4646
4713
  "videoProviderFoldsLoneEndFrame",
4647
4714
  "videoProviderRequiresImage",
4648
4715
  "videoSfxCreditId",
4649
4716
  "windowAnalysisSchema",
4650
4717
  "withRunOverrides",
4651
4718
  "withWiredSettings",
4719
+ "withoutImpliedVideoOverlayAnimate",
4652
4720
  "zipMergeLists"
4653
4721
  ]
4654
4722
  }