@nodaro/shared 3.31.0 → 3.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (378) hide show
  1. package/README.md +17 -0
  2. package/dist/chunk-23FJQTEA.js +1604 -0
  3. package/dist/chunk-23FJQTEA.js.map +1 -0
  4. package/dist/chunk-2NIQO2J3.cjs +54 -0
  5. package/dist/chunk-2NIQO2J3.cjs.map +1 -0
  6. package/dist/chunk-2NQLSLSN.cjs +19 -0
  7. package/dist/chunk-2NQLSLSN.cjs.map +1 -0
  8. package/dist/chunk-2OJIVO7R.cjs +32 -0
  9. package/dist/chunk-2OJIVO7R.cjs.map +1 -0
  10. package/dist/chunk-2RF4Z7KG.cjs +803 -0
  11. package/dist/chunk-2RF4Z7KG.cjs.map +1 -0
  12. package/dist/chunk-3RYKIUAE.js +86 -0
  13. package/dist/chunk-3RYKIUAE.js.map +1 -0
  14. package/dist/chunk-44I73CQS.cjs +194 -0
  15. package/dist/chunk-44I73CQS.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-5RYLK3MQ.js +267 -0
  21. package/dist/chunk-5RYLK3MQ.js.map +1 -0
  22. package/dist/chunk-5THUHJ3E.js +46 -0
  23. package/dist/chunk-5THUHJ3E.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-6WZ2VN7V.js +920 -0
  27. package/dist/chunk-6WZ2VN7V.js.map +1 -0
  28. package/dist/chunk-7G7G42KS.js +86 -0
  29. package/dist/chunk-7G7G42KS.js.map +1 -0
  30. package/dist/chunk-7Z5LUTGU.js +1567 -0
  31. package/dist/chunk-7Z5LUTGU.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-BG5D5CZ6.js +1922 -0
  35. package/dist/chunk-BG5D5CZ6.js.map +1 -0
  36. package/dist/chunk-CK3GK34R.js +1381 -0
  37. package/dist/chunk-CK3GK34R.js.map +1 -0
  38. package/dist/chunk-CUH22J4D.js +17 -0
  39. package/dist/chunk-CUH22J4D.js.map +1 -0
  40. package/dist/chunk-D26ENTN2.cjs +1770 -0
  41. package/dist/chunk-D26ENTN2.cjs.map +1 -0
  42. package/dist/chunk-D6GNRSCV.cjs +2017 -0
  43. package/dist/chunk-D6GNRSCV.cjs.map +1 -0
  44. package/dist/chunk-FBV5DF6D.js +95 -0
  45. package/dist/chunk-FBV5DF6D.js.map +1 -0
  46. package/dist/chunk-FG4E7MTG.cjs +4 -0
  47. package/dist/chunk-FG4E7MTG.cjs.map +1 -0
  48. package/dist/chunk-FT5CF6IA.js +42 -0
  49. package/dist/chunk-FT5CF6IA.js.map +1 -0
  50. package/dist/chunk-G6IIVKMO.js +26 -0
  51. package/dist/chunk-G6IIVKMO.js.map +1 -0
  52. package/dist/chunk-HC7VKIV5.cjs +430 -0
  53. package/dist/chunk-HC7VKIV5.cjs.map +1 -0
  54. package/dist/chunk-HGC5JNVA.cjs +1503 -0
  55. package/dist/chunk-HGC5JNVA.cjs.map +1 -0
  56. package/dist/chunk-HKFMXNVQ.cjs +1273 -0
  57. package/dist/chunk-HKFMXNVQ.cjs.map +1 -0
  58. package/dist/chunk-HRXEZ3SX.cjs +526 -0
  59. package/dist/chunk-HRXEZ3SX.cjs.map +1 -0
  60. package/dist/chunk-HSHCCBIV.js +255 -0
  61. package/dist/chunk-HSHCCBIV.js.map +1 -0
  62. package/dist/chunk-HUR6ZJ7S.cjs +159 -0
  63. package/dist/chunk-HUR6ZJ7S.cjs.map +1 -0
  64. package/dist/chunk-J7BMO73N.cjs +114 -0
  65. package/dist/chunk-J7BMO73N.cjs.map +1 -0
  66. package/dist/chunk-JFS3NWZ5.cjs +1714 -0
  67. package/dist/chunk-JFS3NWZ5.cjs.map +1 -0
  68. package/dist/chunk-JL4C5VJ7.cjs +488 -0
  69. package/dist/chunk-JL4C5VJ7.cjs.map +1 -0
  70. package/dist/chunk-JSGIEF6Z.cjs +1087 -0
  71. package/dist/chunk-JSGIEF6Z.cjs.map +1 -0
  72. package/dist/chunk-JWA5SGCS.js +203 -0
  73. package/dist/chunk-JWA5SGCS.js.map +1 -0
  74. package/dist/chunk-K3LLGRK7.cjs +3545 -0
  75. package/dist/chunk-K3LLGRK7.cjs.map +1 -0
  76. package/dist/chunk-KU6S7IYV.cjs +210 -0
  77. package/dist/chunk-KU6S7IYV.cjs.map +1 -0
  78. package/dist/chunk-M36G6SRP.js +447 -0
  79. package/dist/chunk-M36G6SRP.js.map +1 -0
  80. package/dist/chunk-M7GQBRZU.cjs +1963 -0
  81. package/dist/chunk-M7GQBRZU.cjs.map +1 -0
  82. package/dist/chunk-MRXGWL42.cjs +4 -0
  83. package/dist/chunk-MRXGWL42.cjs.map +1 -0
  84. package/dist/chunk-NEJ2PV4C.cjs +211 -0
  85. package/dist/chunk-NEJ2PV4C.cjs.map +1 -0
  86. package/dist/chunk-OTATNBMD.js +141 -0
  87. package/dist/chunk-OTATNBMD.js.map +1 -0
  88. package/dist/chunk-OZSACQ2V.js +471 -0
  89. package/dist/chunk-OZSACQ2V.js.map +1 -0
  90. package/dist/chunk-PHZ23DP3.js +1782 -0
  91. package/dist/chunk-PHZ23DP3.js.map +1 -0
  92. package/dist/chunk-PQHS255G.js +1369 -0
  93. package/dist/chunk-PQHS255G.js.map +1 -0
  94. package/dist/chunk-PRYE7AZQ.cjs +1227 -0
  95. package/dist/chunk-PRYE7AZQ.cjs.map +1 -0
  96. package/dist/chunk-PVJBAPYJ.js +404 -0
  97. package/dist/chunk-PVJBAPYJ.js.map +1 -0
  98. package/dist/chunk-PXFQVLBX.js +776 -0
  99. package/dist/chunk-PXFQVLBX.js.map +1 -0
  100. package/dist/chunk-QA3MVQ32.js +21 -0
  101. package/dist/chunk-QA3MVQ32.js.map +1 -0
  102. package/dist/chunk-QJRP44ZO.js +769 -0
  103. package/dist/chunk-QJRP44ZO.js.map +1 -0
  104. package/dist/chunk-SAW5OK36.cjs +54 -0
  105. package/dist/chunk-SAW5OK36.cjs.map +1 -0
  106. package/dist/chunk-SES6GDBQ.cjs +624 -0
  107. package/dist/chunk-SES6GDBQ.cjs.map +1 -0
  108. package/dist/chunk-SFW3UB2P.js +31 -0
  109. package/dist/chunk-SFW3UB2P.js.map +1 -0
  110. package/dist/chunk-TNPDV7I4.cjs +2346 -0
  111. package/dist/chunk-TNPDV7I4.cjs.map +1 -0
  112. package/dist/chunk-TU33KYKW.cjs +25 -0
  113. package/dist/chunk-TU33KYKW.cjs.map +1 -0
  114. package/dist/chunk-TZBIY5C3.js +187 -0
  115. package/dist/chunk-TZBIY5C3.js.map +1 -0
  116. package/dist/chunk-TZE673G6.js +3 -0
  117. package/dist/chunk-TZE673G6.js.map +1 -0
  118. package/dist/chunk-UCFWI6D4.js +29 -0
  119. package/dist/chunk-UCFWI6D4.js.map +1 -0
  120. package/dist/chunk-UTQSSKSG.js +1164 -0
  121. package/dist/chunk-UTQSSKSG.js.map +1 -0
  122. package/dist/chunk-VA42637J.cjs +287 -0
  123. package/dist/chunk-VA42637J.cjs.map +1 -0
  124. package/dist/chunk-VNQRI2RO.cjs +1047 -0
  125. package/dist/chunk-VNQRI2RO.cjs.map +1 -0
  126. package/dist/chunk-VXPLKQWY.cjs +821 -0
  127. package/dist/chunk-VXPLKQWY.cjs.map +1 -0
  128. package/dist/chunk-WD6HJRBG.cjs +197 -0
  129. package/dist/chunk-WD6HJRBG.cjs.map +1 -0
  130. package/dist/chunk-WDIBOWAA.js +1054 -0
  131. package/dist/chunk-WDIBOWAA.js.map +1 -0
  132. package/dist/chunk-WKOIGLQX.cjs +38 -0
  133. package/dist/chunk-WKOIGLQX.cjs.map +1 -0
  134. package/dist/chunk-WNVQ3SMB.cjs +96 -0
  135. package/dist/chunk-WNVQ3SMB.cjs.map +1 -0
  136. package/dist/chunk-WRSWH7US.cjs +285 -0
  137. package/dist/chunk-WRSWH7US.cjs.map +1 -0
  138. package/dist/chunk-XGFTL5XY.js +181 -0
  139. package/dist/chunk-XGFTL5XY.js.map +1 -0
  140. package/dist/chunk-XNISPHTZ.js +1039 -0
  141. package/dist/chunk-XNISPHTZ.js.map +1 -0
  142. package/dist/chunk-Y2PM3FFL.js +3 -0
  143. package/dist/chunk-Y2PM3FFL.js.map +1 -0
  144. package/dist/chunk-YBPBK5KI.js +1030 -0
  145. package/dist/chunk-YBPBK5KI.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-ZDFHA2EC.js +572 -0
  153. package/dist/chunk-ZDFHA2EC.js.map +1 -0
  154. package/dist/chunk-ZL7UM6PU.cjs +34 -0
  155. package/dist/chunk-ZL7UM6PU.cjs.map +1 -0
  156. package/dist/chunk-ZNZDQAXN.js +175 -0
  157. package/dist/chunk-ZNZDQAXN.js.map +1 -0
  158. package/dist/chunk-ZO5PBBFX.js +3497 -0
  159. package/dist/chunk-ZO5PBBFX.js.map +1 -0
  160. package/dist/chunk-ZRL2UFTH.cjs +1073 -0
  161. package/dist/chunk-ZRL2UFTH.cjs.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 +292 -0
  165. package/dist/entries/apps.d.ts +292 -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 +596 -0
  181. package/dist/entries/credits.cjs.map +1 -0
  182. package/dist/entries/credits.d.cts +1460 -0
  183. package/dist/entries/credits.d.ts +1460 -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 +259 -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 +1743 -0
  279. package/dist/entries/workflow.d.ts +1743 -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 +7747 -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-V-ZNzRSd.d.cts +651 -0
  295. package/dist/model-catalog-V-ZNzRSd.d.ts +651 -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-D0kxsWf9.d.cts +92 -0
  299. package/dist/presentation-utils-pZwlEAzo.d.ts +92 -0
  300. package/dist/scene-node-types-C3kl_zyK.d.cts +1949 -0
  301. package/dist/scene-node-types-C3kl_zyK.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__/model-makers.test.ts +76 -0
  314. package/src/__tests__/no-internal-imports.test.ts +1 -1
  315. package/src/__tests__/node-aspect-ratio.test.ts +25 -0
  316. package/src/__tests__/node-runtime-keys.test.ts +9 -0
  317. package/src/__tests__/package-entries.test.ts +50 -0
  318. package/src/__tests__/pitch-tempo-pricing.test.ts +21 -0
  319. package/src/__tests__/presentation-utils.test.ts +15 -0
  320. package/src/__tests__/preview-gate-use-case.test.ts +151 -0
  321. package/src/__tests__/private-host.test.ts +53 -0
  322. package/src/__tests__/run-continuation.test.ts +7 -1
  323. package/src/__tests__/site-capture-node.test.ts +58 -0
  324. package/src/__tests__/ugc-lane-wires.test.ts +228 -0
  325. package/src/__tests__/ugc-node-wires.test.ts +9 -3
  326. package/src/__tests__/ugc-run-state.test.ts +5 -4
  327. package/src/__tests__/video-analysis-catalog-sync.test.ts +1 -1
  328. package/src/__tests__/video-analysis-pricing.test.ts +6 -6
  329. package/src/__tests__/voice-changer-pro-quote.test.ts +79 -0
  330. package/src/add-captions-plan.ts +9 -3
  331. package/src/caption-edge-dash.ts +33 -0
  332. package/src/component-types.ts +9 -0
  333. package/src/credit-estimators/index.ts +22 -1
  334. package/src/credit-estimators/pitch-tempo.ts +15 -1
  335. package/src/credit-estimators/speech.ts +72 -4
  336. package/src/credit-estimators/unit-quote.ts +52 -0
  337. package/src/credit-estimators/video-sfx.ts +15 -0
  338. package/src/credit-estimators/voice-changer-pro-quote.ts +138 -0
  339. package/src/credit-identifiers.ts +62 -17
  340. package/src/entity-image-handle.ts +2 -0
  341. package/src/entries/apps.ts +63 -0
  342. package/src/entries/captions.ts +34 -0
  343. package/src/entries/catalogs.ts +65 -0
  344. package/src/entries/credits.ts +105 -0
  345. package/src/entries/edl.ts +42 -0
  346. package/src/entries/entities.ts +144 -0
  347. package/src/entries/i18n.ts +31 -0
  348. package/src/entries/llm-models.ts +63 -0
  349. package/src/entries/media.ts +36 -0
  350. package/src/entries/model-catalog.ts +95 -0
  351. package/src/entries/models.ts +266 -0
  352. package/src/entries/nodes.ts +245 -0
  353. package/src/entries/organizations.ts +9 -0
  354. package/src/entries/pipeline.ts +43 -0
  355. package/src/entries/scene3d.ts +27 -0
  356. package/src/entries/social.ts +297 -0
  357. package/src/entries/types.ts +26 -0
  358. package/src/entries/ugc.ts +14 -0
  359. package/src/entries/video.ts +59 -0
  360. package/src/entries/workflow.ts +172 -0
  361. package/src/fan-out-rows.ts +2 -0
  362. package/src/index.ts +25 -1845
  363. package/src/json-kinds.ts +4 -0
  364. package/src/model-catalog.ts +243 -34
  365. package/src/node-mappable-fields.ts +1 -0
  366. package/src/node-run-routes.ts +2 -0
  367. package/src/node-runtime-keys.ts +8 -0
  368. package/src/normalize-node-params.ts +30 -0
  369. package/src/presentation-utils.ts +12 -0
  370. package/src/preview-gate.ts +92 -14
  371. package/src/private-host.ts +89 -59
  372. package/src/producer-types.ts +16 -2
  373. package/src/run-continuation.ts +21 -0
  374. package/src/site-capture-node.ts +82 -0
  375. package/src/ugc-lane-wires.ts +246 -0
  376. package/src/ugc-node-wires.ts +37 -7
  377. package/src/ugc-run-state.ts +5 -3
  378. package/src/video-analysis-pricing.ts +31 -29
@@ -5,9 +5,14 @@
5
5
  * add-on) is priced per STARTED 100 characters of the text actually sent,
6
6
  * with a minimum number of units per request. The amount of one unit is a
7
7
  * `model_pricing` row per model — `<model id>:per-100-chars`, admin-editable
8
- * — and never lives here. A client that reads that row (GET /v1/models,
9
- * credits.model-costs) computes exactly what the server reserves with
10
- * `speechCredits(chars, row)`.
8
+ * — and never lives here. `speechCredits(chars, row)` is the list price of a
9
+ * request at a catalog row. An instance prices the WHOLE request and rounds it
10
+ * once, so the price it serves for one unit times the units is only an upper
11
+ * bound of what the request costs there. The exact charge of a
12
+ * request of N units is served under its own id, `speechQuoteCreditId(model,
13
+ * N)` (`<model>:per-100-chars:<N>u`), by the same price lookups that serve the
14
+ * unit row (credits.model-costs, GET /v1/credits/model-cost): a client quotes
15
+ * that answer rather than multiplying.
11
16
  *
12
17
  * Why 100 and not 1,000: the per-request error is at most one unit, and a
13
18
  * whole number of units times a charged unit price never under-quotes the
@@ -15,7 +20,9 @@
15
20
  *
16
21
  * Decided 2026-10-06. Every name here is a published contract.
17
22
  */
18
- import { canonicalTtsProvider } from "../tts-capabilities.js"
23
+ import { canonicalTtsProvider, findTtsCapabilities } from "../tts-capabilities.js"
24
+ import { findDialogueCapabilities } from "../dialogue-capabilities.js"
25
+ import { unitQuoteCreditId } from "./unit-quote.js"
19
26
 
20
27
  /** Characters per price unit. */
21
28
  export const SPEECH_PRICE_UNIT_CHARS = 100
@@ -49,3 +56,64 @@ export function speechPriceUnits(chars: number): number {
49
56
  export function speechCredits(chars: number, perUnitCredits: number): number {
50
57
  return speechPriceUnits(chars) * perUnitCredits
51
58
  }
59
+
60
+ /**
61
+ * The id of the exact charge of a whole request of `units` units on `modelId`:
62
+ * `<model>:per-100-chars:<N>u`. Never a row of its own — a price lookup prices
63
+ * it from the model's unit row × N as one whole, exactly as a request of that
64
+ * length is reserved. Served only while length pricing is on, like the unit
65
+ * row it is priced from.
66
+ */
67
+ export function speechQuoteCreditId(modelId: string, units: number): string {
68
+ return unitQuoteCreditId(speechUnitCreditId(modelId), units)
69
+ }
70
+
71
+ /** A `<model>:per-100-chars:<N>u` id, read back. */
72
+ export interface SpeechQuoteCreditIdParts {
73
+ /** The speech model (canonical id) the request runs as. */
74
+ model: string
75
+ /** Its `<model>:per-100-chars` unit row. */
76
+ unitId: string
77
+ /** Units priced: at least the floor, at most the model's per-request cap in started hundreds. */
78
+ units: number
79
+ }
80
+
81
+ const SPEECH_QUOTE_ID = /^(.+):per-100-chars:(\d{1,6})u$/
82
+
83
+ /**
84
+ * The parts of a `<model>:per-100-chars:<N>u` id, or undefined for any other id
85
+ * — including a model that is not a speech model under its canonical id, and a
86
+ * unit count no request on that model can be priced at (below the floor, or
87
+ * above the model's cap in started hundreds).
88
+ */
89
+ export function parseSpeechQuoteCreditId(id: string): SpeechQuoteCreditIdParts | undefined {
90
+ if (typeof id !== "string") return undefined
91
+ const m = SPEECH_QUOTE_ID.exec(id)
92
+ if (!m) return undefined
93
+ const model = m[1]!
94
+ if (canonicalTtsProvider(model) !== model) return undefined
95
+ const caps = findTtsCapabilities(model) ?? findDialogueCapabilities(model)
96
+ if (!caps) return undefined
97
+ const units = Number(m[2])
98
+ if (!Number.isInteger(units) || units < SPEECH_FLOOR_UNITS || units > speechPriceUnits(caps.maxChars)) return undefined
99
+ return { model, unitId: speechUnitCreditId(model), units }
100
+ }
101
+
102
+ /**
103
+ * Whether an id is a length price of speech — a `<model>:per-100-chars` unit
104
+ * row or a `<model>:per-100-chars:<N>u` request quote — by its shape alone.
105
+ * Both are served only while the server prices speech by length.
106
+ */
107
+ export function isSpeechLengthPriceId(id: string): boolean {
108
+ return typeof id === "string" && /:per-100-chars(?::\d+u)?$/.test(id)
109
+ }
110
+
111
+ /**
112
+ * The speech model a length price id is priced for — the id a request of
113
+ * that model is reserved at, so the two are priced under the same id — or
114
+ * undefined for any other id.
115
+ */
116
+ export function speechLengthPriceModel(id: string): string | undefined {
117
+ if (!isSpeechLengthPriceId(id)) return undefined
118
+ return id.replace(/:per-100-chars(?::\d+u)?$/, "")
119
+ }
@@ -0,0 +1,52 @@
1
+ /**
2
+ * The price of a whole run priced per unit, as ONE id.
3
+ *
4
+ * Some runs are charged a multiple of a one-unit price row: minutes of an
5
+ * Apply EDL or Speaker View render, 5-second steps of a Trim / Loop / Combine
6
+ * / Mask Composite result, seconds of an LTX extend or retake, started
7
+ * hundreds of a speech text. The server prices such a run as a whole — the
8
+ * row's base × the units, marked up ONCE and rounded up once — so a client
9
+ * that multiplies the served one-unit price (already rounded up) by the units
10
+ * can quote more than the run is charged.
11
+ *
12
+ * `unitQuoteCreditId(rateId, units)` names that whole price:
13
+ * `<rateId>:<units>u`. `POST /v1/credits/model-costs` and
14
+ * `GET /v1/credits/model-cost` answer it with the figure the run is charged,
15
+ * for a rate the server charges per unit and a unit count a run can have;
16
+ * any other id lands in `missing`. A client quotes that answer rather than
17
+ * multiplying. (A speech request's id, `<model>:per-100-chars:<N>u`, is this
18
+ * id on the model's per-100-characters row.)
19
+ *
20
+ * Units may be fractional — a retake window is set to the frame — and are
21
+ * written exactly as JavaScript prints the number, so the server reads back
22
+ * the same value the client priced.
23
+ */
24
+
25
+ /** `<rateId>:<units>u` — the id of the whole price of `units` of `rateId`. */
26
+ export function unitQuoteCreditId(rateId: string, units: number): string {
27
+ return `${rateId}:${String(units)}u`
28
+ }
29
+
30
+ /** A `<rateId>:<units>u` id, read back. */
31
+ export interface UnitQuoteCreditIdParts {
32
+ /** The one-unit price row. */
33
+ rateId: string
34
+ /** How many of it the run is priced at (a positive number, possibly fractional). */
35
+ units: number
36
+ }
37
+
38
+ const UNIT_QUOTE_ID = /^(.+):(\d{1,7}(?:\.\d{1,20})?)u$/
39
+
40
+ /**
41
+ * The parts of a `<rateId>:<units>u` id by its shape alone, or undefined. Which
42
+ * rates the server prices this way, and at how many units, is the server's to
43
+ * say: an id it does not price lands in `missing`.
44
+ */
45
+ export function parseUnitQuoteCreditId(id: string): UnitQuoteCreditIdParts | undefined {
46
+ if (typeof id !== "string") return undefined
47
+ const m = UNIT_QUOTE_ID.exec(id)
48
+ if (!m) return undefined
49
+ const units = Number(m[2])
50
+ if (!Number.isFinite(units) || units <= 0) return undefined
51
+ return { rateId: m[1]!, units }
52
+ }
@@ -39,3 +39,18 @@ export function videoSfxCreditId(durationSec: number | null | undefined): string
39
39
  const bucket = VIDEO_SFX_BUCKETS.find((b) => seconds <= b.upToSec) ?? VIDEO_SFX_BUCKETS[VIDEO_SFX_BUCKETS.length - 1]!
40
40
  return bucket.creditId
41
41
  }
42
+
43
+ /**
44
+ * The price row a QUOTE names for an input video of `durationSec` seconds —
45
+ * every estimate before a run (the node's Run button, the workflow estimate,
46
+ * the server's run estimate, a listing). A known length is the row its run is
47
+ * charged ({@link videoSfxCreditId}). An UNKNOWN length is the last row, 300
48
+ * seconds (decided 2026-10-13): a run measures the clip before it reserves and
49
+ * refuses one over 300 s, so that row is the most any run can be charged —
50
+ * the quote is never below the charge, as Video Mask and Video Depth quote an
51
+ * unknown clip at their highest row.
52
+ */
53
+ export function videoSfxQuoteCreditId(durationSec: number | null | undefined): string {
54
+ const known = typeof durationSec === "number" && Number.isFinite(durationSec) && durationSec > 0
55
+ return videoSfxCreditId(known ? durationSec : VIDEO_SFX_PRICING.MAX_DURATION_SEC)
56
+ }
@@ -0,0 +1,138 @@
1
+ /**
2
+ * The price of a whole Voice Changer Pro convert, as ONE id.
3
+ *
4
+ * A convert is charged as one whole: every changed speaker's slot is priced in
5
+ * base credits (a recast slot by the length of its stem, a Re-speak slot by
6
+ * its characters on its engine's row), the slots are summed, and the sum is
7
+ * marked up ONCE at `voice-changer-pro`. A client that prices each slot on the
8
+ * served (already marked-up, already rounded) rows and adds them up cannot
9
+ * reach that figure: the rounding happens in a different place.
10
+ *
11
+ * `voiceChangerProQuoteCreditId(slots)` names the whole price:
12
+ * `voice-changer-pro:<slot>,<slot>,…`, one slot per changed speaker, where a
13
+ * slot is
14
+ *
15
+ * - `sts-<seconds>` — a recast (speech-to-speech) slot whose stem is that
16
+ * many seconds long (the speaker's last utterance end); `sts` alone when
17
+ * the length is unknown (priced as one minute, as the convert reserves it);
18
+ * - `respeak-<chars>` — a Re-speak slot on the default engine (v3) that
19
+ * re-speaks that many characters; `respeak` alone when the count is unknown;
20
+ * - `respeak-v4-<chars>` — a Re-speak slot on the v4 engine (`respeak-v4`
21
+ * when the count is unknown); `respeak-v3-<chars>` names v3 explicitly
22
+ * and is the same price as `respeak-<chars>`;
23
+ * - `respeak-v4t-<chars>` — a v4 slot speaking a TRANSLATION of its
24
+ * `<chars>` transcript characters. The convert reserves such a slot for more
25
+ * speech than its transcript holds (a line may be re-rendered once,
26
+ * shorter); the server applies that allowance, so the client sends the
27
+ * transcript's own count and never the arithmetic. Only v4 speaks a
28
+ * translation, so there is no `v3t`.
29
+ *
30
+ * `POST /v1/credits/model-costs` and `GET /v1/credits/model-cost` answer it
31
+ * with the figure the convert reserves; an id the server does not price
32
+ * (a malformed slot, more slots than a convert takes, a count out of range)
33
+ * lands in `missing`. Numbers are written exactly as JavaScript prints them,
34
+ * so the server reads back the value the client priced.
35
+ */
36
+
37
+ /** The id a convert is reserved (and marked up) at. */
38
+ export const VOICE_CHANGER_PRO_QUOTE_RATE_ID = "voice-changer-pro"
39
+
40
+ /** A Re-speak engine, as the quote names it. */
41
+ export type VoiceChangerProQuoteRespeakEngine = "v3" | "v4"
42
+
43
+ /** One changed speaker of a convert, as the quote prices it. */
44
+ export type VoiceChangerProQuoteSlot =
45
+ /** A recast slot: the stem's length in seconds; `null` (or not a positive number) = unknown. */
46
+ | { readonly kind: "sts"; readonly seconds: number | null }
47
+ /**
48
+ * A Re-speak slot: the characters of its transcript; `null` (or not a
49
+ * positive number) = unknown. `engine` absent = the default engine (v3).
50
+ * `translated` = the slot speaks the plan's target language — read only on
51
+ * v4, the one engine that speaks a translation (the convert route reads it
52
+ * the same way).
53
+ */
54
+ | {
55
+ readonly kind: "respeak"
56
+ readonly chars: number | null
57
+ readonly engine?: VoiceChangerProQuoteRespeakEngine
58
+ readonly translated?: boolean
59
+ }
60
+
61
+ /** A `voice-changer-pro:<slots>` id, read back into the convert's pricing inputs (slot order kept per kind). */
62
+ export interface VoiceChangerProQuoteCreditIdParts {
63
+ /** Stem seconds per recast slot; `null` = unknown. */
64
+ readonly stsSlotSeconds: ReadonlyArray<number | null>
65
+ /** Transcript characters per Re-speak slot; `null` = unknown. */
66
+ readonly respeakChars: ReadonlyArray<number | null>
67
+ /** The engine of each Re-speak slot, index-aligned with `respeakChars`; `null` = not named (the default engine). */
68
+ readonly respeakEngines: ReadonlyArray<VoiceChangerProQuoteRespeakEngine | null>
69
+ /** Whether each Re-speak slot speaks a translation, index-aligned with `respeakChars` (only ever true on v4). */
70
+ readonly respeakTranslated: ReadonlyArray<boolean>
71
+ }
72
+
73
+ const PREFIX = `${VOICE_CHANGER_PRO_QUOTE_RATE_ID}:`
74
+ const NUMBER = String.raw`\d{1,7}(?:\.\d{1,20})?`
75
+ const STS_SLOT = new RegExp(`^sts(?:-(${NUMBER}))?$`)
76
+ const RESPEAK_SLOT = new RegExp(`^respeak(?:-(v3|v4|v4t))?(?:-(${NUMBER}))?$`)
77
+
78
+ const known = (n: number | null): n is number => n !== null && Number.isFinite(n) && n > 0
79
+
80
+ /** The engine token of a Re-speak slot: none for the default engine (the id every client sent before engines were named). */
81
+ function respeakEngineToken(slot: { readonly engine?: VoiceChangerProQuoteRespeakEngine; readonly translated?: boolean }): string {
82
+ if (slot.engine !== "v4") return ""
83
+ return slot.translated === true ? "-v4t" : "-v4"
84
+ }
85
+
86
+ /** `voice-changer-pro:<slot>,…` — the id of the whole price of a convert with these changed speakers. */
87
+ export function voiceChangerProQuoteCreditId(slots: ReadonlyArray<VoiceChangerProQuoteSlot>): string {
88
+ return (
89
+ PREFIX +
90
+ slots
91
+ .map((slot) => {
92
+ if (slot.kind === "sts") return known(slot.seconds) ? `sts-${String(slot.seconds)}` : "sts"
93
+ const head = `respeak${respeakEngineToken(slot)}`
94
+ return known(slot.chars) ? `${head}-${String(slot.chars)}` : head
95
+ })
96
+ .join(",")
97
+ )
98
+ }
99
+
100
+ function measureOf(text: string | undefined): number | null | undefined {
101
+ if (text === undefined) return null
102
+ const value = Number(text)
103
+ return Number.isFinite(value) && value > 0 ? value : undefined
104
+ }
105
+
106
+ /**
107
+ * The parts of a `voice-changer-pro:<slots>` id by its shape alone, or
108
+ * undefined (not such an id, an empty or malformed slot). How many slots and
109
+ * what counts the server prices is the server's to say: an id it does not
110
+ * price lands in `missing`.
111
+ */
112
+ export function parseVoiceChangerProQuoteCreditId(id: string): VoiceChangerProQuoteCreditIdParts | undefined {
113
+ if (typeof id !== "string" || !id.startsWith(PREFIX)) return undefined
114
+ const body = id.slice(PREFIX.length)
115
+ if (body.length === 0) return undefined
116
+ const stsSlotSeconds: Array<number | null> = []
117
+ const respeakChars: Array<number | null> = []
118
+ const respeakEngines: Array<VoiceChangerProQuoteRespeakEngine | null> = []
119
+ const respeakTranslated: boolean[] = []
120
+ for (const part of body.split(",")) {
121
+ const sts = STS_SLOT.exec(part)
122
+ if (sts) {
123
+ const seconds = measureOf(sts[1])
124
+ if (seconds === undefined) return undefined
125
+ stsSlotSeconds.push(seconds)
126
+ continue
127
+ }
128
+ const respeak = RESPEAK_SLOT.exec(part)
129
+ if (!respeak) return undefined
130
+ const chars = measureOf(respeak[2])
131
+ if (chars === undefined) return undefined
132
+ const token = respeak[1]
133
+ respeakChars.push(chars)
134
+ respeakEngines.push(token === undefined ? null : token === "v3" ? "v3" : "v4")
135
+ respeakTranslated.push(token === "v4t")
136
+ }
137
+ return { stsSlotSeconds, respeakChars, respeakEngines, respeakTranslated }
138
+ }
@@ -31,7 +31,7 @@ import {
31
31
  import { isFlux2Model, FLUX2_RES_MP, type Flux2Model } from "./flux2-pricing.js"
32
32
  import { VIDEO_DURATION_AUTO } from "./video-duration-auto.js"
33
33
  import { uiResolutionFill } from "./video-ui-defaults.js"
34
- import { MODEL_CATALOG, autoAspectNeedsSourceImage, normalizeModelInput, defaultResolutionFor, type ModelInputAdjustment, type SourceImageSize } from "./model-catalog.js"
34
+ import { MODEL_CATALOG, autoAspectNeedsSourceImage, normalizeModelInput, normalizeVideoRequestParams, defaultResolutionFor, type ModelInputAdjustment, type SourceImageSize } from "./model-catalog.js"
35
35
 
36
36
  /**
37
37
  * The megapixel tier a Flux 2 credit identifier is keyed on, for ANY incoming
@@ -499,6 +499,50 @@ export function buildVideoCreditModelIdentifier(
499
499
  return identifier
500
500
  }
501
501
 
502
+ /**
503
+ * The credit identifier a video GENERATION node is quoted at — Generate Video
504
+ * (and the legacy Image/Text to Video nodes) and the Video to Video Seedance
505
+ * edit lane, on every surface that quotes one: the node's cost pill, the
506
+ * editor's run estimate, the prompt modal and the backend pre-run estimator.
507
+ *
508
+ * It applies the request levers the run applies BEFORE it prices
509
+ * (payload-builder's `resolveVideoRequestNorm`): the model's UI resolution fill
510
+ * when the node names none (`uiResolutionFill` — what the run sends), then the
511
+ * catalog normalizer `normalizeVideoRequestParams`, which also owns the Seedance
512
+ * Draft rule (a draft is priced AND sent at 480p whatever resolution came with
513
+ * it). Without that, a node with no resolution was quoted at the identifier's
514
+ * own default band (720p on Seedance 2.5) while the run sent and reserved 480p.
515
+ *
516
+ * `hasVideoRef` must come from the GRAPH (a wired reference-video edge, e.g.
517
+ * `countRefModalityEdges(edges, id, "video") > 0`), never node data: nothing
518
+ * writes `referenceVideoUrls` into a video node, so reading it there always
519
+ * quoted the plain ladder for a run that reserves on the `-ref` one.
520
+ */
521
+ export function videoGenerationCreditId(args: {
522
+ provider: string
523
+ duration?: number | string
524
+ sound?: boolean
525
+ nodeType?: "image-to-video" | "text-to-video"
526
+ mode?: string
527
+ resolution?: string
528
+ draft?: boolean
529
+ hasVideoRef?: boolean
530
+ }): string {
531
+ const { resolution } = normalizeVideoRequestParams(args.provider, {
532
+ resolution: args.resolution ?? uiResolutionFill(args.provider),
533
+ draft: args.draft === true,
534
+ })
535
+ return buildVideoCreditModelIdentifier(
536
+ args.provider,
537
+ args.duration,
538
+ args.sound,
539
+ args.nodeType ?? "image-to-video",
540
+ args.mode,
541
+ resolution,
542
+ args.hasVideoRef === true,
543
+ )
544
+ }
545
+
502
546
  /**
503
547
  * The credit identifier a Video to Video node's Seedance EDIT lane reserves
504
548
  * under. Seedance has no v2v endpoint — the lane is a text-to-video job in edit
@@ -506,26 +550,27 @@ export function buildVideoCreditModelIdentifier(
506
550
  * REFERENCE-VIDEO ladder at the model's LONGEST clip (Auto duration), and the
507
551
  * measured settlement refunds down to what was actually delivered.
508
552
  *
509
- * It exists because that is a 7-positional-argument call with four
510
- * easy-to-transpose slots, and FOUR surfaces must agree on it exactly: the
511
- * orchestrator's reservation (payload-builder.ts), the backend pre-run
512
- * estimator (ee/billing/credits.ts), the node's cost pill, and the frontend
513
- * run-level estimate (config-panels/helpers.ts). A quote that disagrees with
514
- * the reserve is the documented `price_not_configured` / blank-pill trap.
553
+ * A thin call into {@link videoGenerationCreditId}, so a Generate Video node
554
+ * making the same KIE call (Seedance, Auto, a wired reference video) is quoted
555
+ * the same id. FOUR surfaces must agree on it exactly: the orchestrator's
556
+ * reservation (payload-builder.ts), the backend pre-run estimator
557
+ * (ee/billing/credits.ts), the node's cost pill, and the frontend run-level
558
+ * estimate (config-panels/helpers.ts). A quote that disagrees with the reserve
559
+ * is the documented `price_not_configured` / blank-pill trap.
515
560
  *
516
561
  * `resolution` is the node's one `v2vResolution` field; when unset the model's
517
- * own UI fill is priced, which is what the lane will send.
562
+ * own UI fill is priced, which is what the lane will send. `draft` is the
563
+ * node's Seedance Draft toggle (priced at 480p).
518
564
  */
519
- export function seedanceVideoEditCreditId(provider: string, resolution?: string): string {
520
- return buildVideoCreditModelIdentifier(
565
+ export function seedanceVideoEditCreditId(provider: string, resolution?: string, draft?: boolean): string {
566
+ return videoGenerationCreditId({
521
567
  provider,
522
- VIDEO_DURATION_AUTO,
523
- undefined,
524
- "text-to-video",
525
- undefined,
526
- resolution ?? uiResolutionFill(provider),
527
- /* hasVideoRef */ true,
528
- )
568
+ duration: VIDEO_DURATION_AUTO,
569
+ nodeType: "text-to-video",
570
+ resolution,
571
+ draft,
572
+ hasVideoRef: true,
573
+ })
529
574
  }
530
575
 
531
576
  /** What the video credit identifier PRICES for a request, for the levers whose
@@ -80,6 +80,8 @@ const SCRAPER_SOURCE_TYPES = new Set(["meta-ads-scrape", "instagram-scrape"])
80
80
  export const OUTPUT_PIP_EFFECTIVE_TYPES: Readonly<Record<string, Readonly<Record<string, string>>>> = Object.freeze({
81
81
  // UGC Creator's `image`: the creator's first image, for any image input.
82
82
  "ugc-creator": Object.freeze({ image: "upload-image" }),
83
+ // Site Capture's `image`: its section stills — the first on a plain wire, each or all on an Each / Bundle wire.
84
+ "site-capture": Object.freeze({ image: "upload-image" }),
83
85
  // The UGC nodes' plain-text pips — the script's product category, the clips'
84
86
  // transcript, the cards' Notes — are one text each (`combine-text`: one
85
87
  // string, not a list): they reach text and prompt inputs, never a JSON input.
@@ -0,0 +1,63 @@
1
+ /**
2
+ * `@nodaro/shared/apps` — Published apps and the public API surface: presentation utils, exposed fields, picker restrictions, components, community listings, templates, OAuth scopes, recast segment packs.
3
+ *
4
+ * One of the package's subpath entries (see `src/index.ts`). The root
5
+ * re-exports every entry, so each name here is also importable from
6
+ * `@nodaro/shared`.
7
+ */
8
+ export {
9
+ INPUT_NODE_TYPES,
10
+ getInputNodes,
11
+ getOutputNodes,
12
+ getOutputType,
13
+ getNodeResult,
14
+ getNodeLabel,
15
+ getInputFieldSchema,
16
+ INPUT_FIELD_EXTRA_KEYS,
17
+ getInputFieldExtraKeys,
18
+ mergeNodeInputOverrides,
19
+ flattenItems,
20
+ migrateToItems,
21
+ validateNoNestedGroups,
22
+ cleanOrphanedItems,
23
+ getItemSortId,
24
+ type OutputType,
25
+ type InputFieldSchema,
26
+ } from "../presentation-utils.js"
27
+ export {
28
+ LEGACY_EXPOSED_FIELD_KEYS,
29
+ canonicalExposedFieldKey,
30
+ canonicalizeOverrideKeys,
31
+ } from "../exposed-field-keys.js"
32
+ export { findRestrictedPickerValue, type PickerCardRestrictions } from "../picker-restrictions.js"
33
+ export {
34
+ INPUT_FIELD_MAP,
35
+ OUTPUT_FIELD_MAP,
36
+ HANDLE_PORT_SEPARATOR,
37
+ mergeExposedSettings,
38
+ parseHandleId,
39
+ applyHandleInputOverride,
40
+ isHandleInputWired,
41
+ type ComponentMetadata,
42
+ type ComponentHandle,
43
+ type ExposedSetting,
44
+ } from "../component-types.js"
45
+ export type {
46
+ CommunityEntityType,
47
+ CommunitySort,
48
+ CommunityReportReason,
49
+ CommunityCard,
50
+ CommunityFullDetail,
51
+ BrowseCommunityParams,
52
+ BrowseCommunityResult,
53
+ CloneListingResult,
54
+ FavoriteListingResult,
55
+ ReportListingResult,
56
+ PublishListingParams,
57
+ PublishListingResult,
58
+ SharedListing,
59
+ } from "../community.js"
60
+ export { OAUTH_SCOPES, type OAuthScope } from "../oauth-scopes.js"
61
+ export { RECAST_SEGMENT_PACKS, type RecastSegmentPack } from "../recast-segment-packs.js"
62
+ // --- Marketplace template categories (the eight use cases) ---
63
+ export * from "../template-categories.js"
@@ -0,0 +1,34 @@
1
+ /**
2
+ * `@nodaro/shared/captions` — Caption styles, caption plans and segment schemas, supported fonts.
3
+ *
4
+ * One of the package's subpath entries (see `src/index.ts`). The root
5
+ * re-exports every entry, so each name here is also importable from
6
+ * `@nodaro/shared`.
7
+ */
8
+ export {
9
+ STATIC_CAPTION_STYLES,
10
+ KINETIC_CAPTION_STYLES,
11
+ ALL_CAPTION_STYLES,
12
+ isKineticCaptionStyle,
13
+ CAPTION_LOOK_IDS,
14
+ CAPTION_LOOKS,
15
+ DEFAULT_CAPTION_LOOK,
16
+ DEFAULT_SUBTITLE_LOOK,
17
+ KINETIC_ONLY_CAPTION_LEVER_KEYS,
18
+ captionRoutesToRemotion,
19
+ CAPTION_MAX_WORDS_PER_LINE_MIN,
20
+ CAPTION_MAX_WORDS_PER_LINE_MAX,
21
+ CAPTION_LEVER_BOUNDS,
22
+ normalizeCaptionNumericLevers,
23
+ autoStrokeWidth,
24
+ resolveCaptionLook,
25
+ resolveCaptionLevers,
26
+ } from "../caption-styles.js"
27
+ export type { StaticCaptionStyle, KineticCaptionStyle, CaptionStyle, CaptionLookId, CaptionLookLevers, KineticOnlyCaptionLeverKey } from "../caption-styles.js"
28
+ export type { CaptionPlan, CaptionWordTiming } from "../caption-plan.js"
29
+ export { parseCaptionPlan } from "../caption-plan.js"
30
+ export * from "../caption-segment-schema.js"
31
+ export * from "../caption-edge-dash.js"
32
+ export * from "../add-captions-plan.js"
33
+ // --- Remotion renderer: supported font names (shared with backend Zod validation) ---
34
+ export * from "../supported-fonts.js"
@@ -0,0 +1,65 @@
1
+ /**
2
+ * `@nodaro/shared/catalogs` — Parameter-node dimensions (animals, furniture, vehicles, weapons, character facets, seasons) and the parameter-node value gate.
3
+ *
4
+ * One of the package's subpath entries (see `src/index.ts`). The root
5
+ * re-exports every entry, so each name here is also importable from
6
+ * `@nodaro/shared`.
7
+ */
8
+ export {
9
+ OBJECT_PICKER_NODE_TYPES,
10
+ } from "../object-picker-types.js"
11
+ export { SEASONS } from "../seasons.js"
12
+ export type { Season } from "../seasons.js"
13
+ export {
14
+ LOCATION_PRESET_TO_CATALOG,
15
+ LOCATION_BUCKET_TO_CATALOG_ID,
16
+ resolveLocationPresetCatalog,
17
+ } from "../location-preset-catalog-map.js"
18
+ export type { LocationCatalogRef } from "../location-preset-catalog-map.js"
19
+ export {
20
+ PARAMETER_NODE_TYPES,
21
+ HINT_EXEMPT_PARAMETER_TYPES,
22
+ VIDEO_ONLY_PARAMETER_NODE_TYPES,
23
+ EXECUTION_GRAPH_COMPOSED_PARAMETER_TYPES,
24
+ getParameterValue,
25
+ setRegisteredPersonPackFields,
26
+ } from "../parameter-node-value.js"
27
+ // Parameter-node dimensions (frontend pickers + backend hints)
28
+
29
+ export {
30
+ ANIMALS,
31
+ ANIMAL_SUBCATEGORY_LABELS,
32
+ ANIMAL_SUBCATEGORY_ORDER,
33
+ getAnimal,
34
+ getAnimalLabel,
35
+ getAnimalPromptHint,
36
+ getAnimalTerm,
37
+ } from "../animals.js"
38
+ export type { Animal, AnimalSubcategory } from "../animals.js"
39
+ export {
40
+ FURNITURE,
41
+ FURNITURE_SUBCATEGORY_LABELS,
42
+ FURNITURE_SUBCATEGORY_ORDER,
43
+ getFurniture,
44
+ getFurnitureLabel,
45
+ } from "../furniture.js"
46
+ export type { Furniture, FurnitureSubcategory } from "../furniture.js"
47
+ export * from "../character-facets.js"
48
+ export {
49
+ VEHICLES,
50
+ VEHICLE_SUBCATEGORY_LABELS,
51
+ VEHICLE_SUBCATEGORY_ORDER,
52
+ getVehicle,
53
+ getVehicleLabel,
54
+ } from "../vehicles.js"
55
+ export type { Vehicle, VehicleSubcategory } from "../vehicles.js"
56
+ export {
57
+ WEAPONS,
58
+ WEAPON_SUBCATEGORY_LABELS,
59
+ WEAPON_SUBCATEGORY_ORDER,
60
+ getWeapon,
61
+ getWeaponLabel,
62
+ } from "../weapons.js"
63
+ export type { Weapon, WeaponSubcategory } from "../weapons.js"
64
+ // Multi-pick utilities
65
+ export { pickIds, togglePick } from "../multi-pick.js"