@nodaro/shared 3.31.0 → 3.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (372) hide show
  1. package/README.md +17 -0
  2. package/dist/chunk-2NIQO2J3.cjs +54 -0
  3. package/dist/chunk-2NIQO2J3.cjs.map +1 -0
  4. package/dist/chunk-2OJIVO7R.cjs +32 -0
  5. package/dist/chunk-2OJIVO7R.cjs.map +1 -0
  6. package/dist/chunk-2RF4Z7KG.cjs +803 -0
  7. package/dist/chunk-2RF4Z7KG.cjs.map +1 -0
  8. package/dist/chunk-3CUFITU7.js +1905 -0
  9. package/dist/chunk-3CUFITU7.js.map +1 -0
  10. package/dist/chunk-3RYKIUAE.js +86 -0
  11. package/dist/chunk-3RYKIUAE.js.map +1 -0
  12. package/dist/chunk-44I73CQS.cjs +194 -0
  13. package/dist/chunk-44I73CQS.cjs.map +1 -0
  14. package/dist/chunk-5AUSSJIM.cjs +3372 -0
  15. package/dist/chunk-5AUSSJIM.cjs.map +1 -0
  16. package/dist/chunk-5PC6JBGJ.cjs +1419 -0
  17. package/dist/chunk-5PC6JBGJ.cjs.map +1 -0
  18. package/dist/chunk-5RU2HCW2.js +30 -0
  19. package/dist/chunk-5RU2HCW2.js.map +1 -0
  20. package/dist/chunk-5THUHJ3E.js +46 -0
  21. package/dist/chunk-5THUHJ3E.js.map +1 -0
  22. package/dist/chunk-5U7VLG43.js +141 -0
  23. package/dist/chunk-5U7VLG43.js.map +1 -0
  24. package/dist/chunk-6DAWSVX2.cjs +103 -0
  25. package/dist/chunk-6DAWSVX2.cjs.map +1 -0
  26. package/dist/chunk-6DKDOWBL.js +1567 -0
  27. package/dist/chunk-6DKDOWBL.js.map +1 -0
  28. package/dist/chunk-6IJOPRZP.cjs +197 -0
  29. package/dist/chunk-6IJOPRZP.cjs.map +1 -0
  30. package/dist/chunk-7G7G42KS.js +86 -0
  31. package/dist/chunk-7G7G42KS.js.map +1 -0
  32. package/dist/chunk-AINCI23X.js +2171 -0
  33. package/dist/chunk-AINCI23X.js.map +1 -0
  34. package/dist/chunk-AROWPFO2.js +773 -0
  35. package/dist/chunk-AROWPFO2.js.map +1 -0
  36. package/dist/chunk-AVQK77G6.cjs +2000 -0
  37. package/dist/chunk-AVQK77G6.cjs.map +1 -0
  38. package/dist/chunk-C57NEO3X.js +3327 -0
  39. package/dist/chunk-C57NEO3X.js.map +1 -0
  40. package/dist/chunk-CK3GK34R.js +1381 -0
  41. package/dist/chunk-CK3GK34R.js.map +1 -0
  42. package/dist/chunk-E2TGXG6X.cjs +1770 -0
  43. package/dist/chunk-E2TGXG6X.cjs.map +1 -0
  44. package/dist/chunk-EK362Q45.cjs +38 -0
  45. package/dist/chunk-EK362Q45.cjs.map +1 -0
  46. package/dist/chunk-FBV5DF6D.js +95 -0
  47. package/dist/chunk-FBV5DF6D.js.map +1 -0
  48. package/dist/chunk-FG4E7MTG.cjs +4 -0
  49. package/dist/chunk-FG4E7MTG.cjs.map +1 -0
  50. package/dist/chunk-G6IIVKMO.js +26 -0
  51. package/dist/chunk-G6IIVKMO.js.map +1 -0
  52. package/dist/chunk-HGC5JNVA.cjs +1503 -0
  53. package/dist/chunk-HGC5JNVA.cjs.map +1 -0
  54. package/dist/chunk-HSHCCBIV.js +255 -0
  55. package/dist/chunk-HSHCCBIV.js.map +1 -0
  56. package/dist/chunk-IEBZHTPE.js +254 -0
  57. package/dist/chunk-IEBZHTPE.js.map +1 -0
  58. package/dist/chunk-ISJDAFKS.js +1604 -0
  59. package/dist/chunk-ISJDAFKS.js.map +1 -0
  60. package/dist/chunk-J6KHW2E5.cjs +1963 -0
  61. package/dist/chunk-J6KHW2E5.cjs.map +1 -0
  62. package/dist/chunk-J7BMO73N.cjs +114 -0
  63. package/dist/chunk-J7BMO73N.cjs.map +1 -0
  64. package/dist/chunk-JL4C5VJ7.cjs +488 -0
  65. package/dist/chunk-JL4C5VJ7.cjs.map +1 -0
  66. package/dist/chunk-JSGIEF6Z.cjs +1087 -0
  67. package/dist/chunk-JSGIEF6Z.cjs.map +1 -0
  68. package/dist/chunk-JSNV5O2F.cjs +34 -0
  69. package/dist/chunk-JSNV5O2F.cjs.map +1 -0
  70. package/dist/chunk-JWA5SGCS.js +203 -0
  71. package/dist/chunk-JWA5SGCS.js.map +1 -0
  72. package/dist/chunk-JX5YZ4DH.cjs +430 -0
  73. package/dist/chunk-JX5YZ4DH.cjs.map +1 -0
  74. package/dist/chunk-KHCBJ7KD.js +42 -0
  75. package/dist/chunk-KHCBJ7KD.js.map +1 -0
  76. package/dist/chunk-KU6S7IYV.cjs +210 -0
  77. package/dist/chunk-KU6S7IYV.cjs.map +1 -0
  78. package/dist/chunk-LKAIXWK3.js +181 -0
  79. package/dist/chunk-LKAIXWK3.js.map +1 -0
  80. package/dist/chunk-LPW3XNC2.js +471 -0
  81. package/dist/chunk-LPW3XNC2.js.map +1 -0
  82. package/dist/chunk-M36G6SRP.js +447 -0
  83. package/dist/chunk-M36G6SRP.js.map +1 -0
  84. package/dist/chunk-MRXGWL42.cjs +4 -0
  85. package/dist/chunk-MRXGWL42.cjs.map +1 -0
  86. package/dist/chunk-NB72XWXQ.cjs +54 -0
  87. package/dist/chunk-NB72XWXQ.cjs.map +1 -0
  88. package/dist/chunk-NEJ2PV4C.cjs +211 -0
  89. package/dist/chunk-NEJ2PV4C.cjs.map +1 -0
  90. package/dist/chunk-NT6IJH4L.cjs +273 -0
  91. package/dist/chunk-NT6IJH4L.cjs.map +1 -0
  92. package/dist/chunk-O5MP52U2.cjs +526 -0
  93. package/dist/chunk-O5MP52U2.cjs.map +1 -0
  94. package/dist/chunk-O7PUQLJ3.cjs +818 -0
  95. package/dist/chunk-O7PUQLJ3.cjs.map +1 -0
  96. package/dist/chunk-PQHS255G.js +1369 -0
  97. package/dist/chunk-PQHS255G.js.map +1 -0
  98. package/dist/chunk-PRYE7AZQ.cjs +1227 -0
  99. package/dist/chunk-PRYE7AZQ.cjs.map +1 -0
  100. package/dist/chunk-Q4CDQ2KO.js +21 -0
  101. package/dist/chunk-Q4CDQ2KO.js.map +1 -0
  102. package/dist/chunk-QELDJGDK.cjs +1714 -0
  103. package/dist/chunk-QELDJGDK.cjs.map +1 -0
  104. package/dist/chunk-QJRP44ZO.js +769 -0
  105. package/dist/chunk-QJRP44ZO.js.map +1 -0
  106. package/dist/chunk-QNGNOU4Z.js +29 -0
  107. package/dist/chunk-QNGNOU4Z.js.map +1 -0
  108. package/dist/chunk-RJL7RCEM.cjs +159 -0
  109. package/dist/chunk-RJL7RCEM.cjs.map +1 -0
  110. package/dist/chunk-RN3RMBJZ.js +1164 -0
  111. package/dist/chunk-RN3RMBJZ.js.map +1 -0
  112. package/dist/chunk-S5DMKUWK.cjs +1273 -0
  113. package/dist/chunk-S5DMKUWK.cjs.map +1 -0
  114. package/dist/chunk-SES6GDBQ.cjs +624 -0
  115. package/dist/chunk-SES6GDBQ.cjs.map +1 -0
  116. package/dist/chunk-TNPDV7I4.cjs +2346 -0
  117. package/dist/chunk-TNPDV7I4.cjs.map +1 -0
  118. package/dist/chunk-TZBIY5C3.js +187 -0
  119. package/dist/chunk-TZBIY5C3.js.map +1 -0
  120. package/dist/chunk-TZE673G6.js +3 -0
  121. package/dist/chunk-TZE673G6.js.map +1 -0
  122. package/dist/chunk-ULXI7A6Q.cjs +1047 -0
  123. package/dist/chunk-ULXI7A6Q.cjs.map +1 -0
  124. package/dist/chunk-VIWSWVAW.js +1782 -0
  125. package/dist/chunk-VIWSWVAW.js.map +1 -0
  126. package/dist/chunk-VWGNPMJZ.cjs +19 -0
  127. package/dist/chunk-VWGNPMJZ.cjs.map +1 -0
  128. package/dist/chunk-WDIBOWAA.js +1054 -0
  129. package/dist/chunk-WDIBOWAA.js.map +1 -0
  130. package/dist/chunk-WNG7HRVA.cjs +25 -0
  131. package/dist/chunk-WNG7HRVA.cjs.map +1 -0
  132. package/dist/chunk-WNVQ3SMB.cjs +96 -0
  133. package/dist/chunk-WNVQ3SMB.cjs.map +1 -0
  134. package/dist/chunk-WRSWH7US.cjs +285 -0
  135. package/dist/chunk-WRSWH7US.cjs.map +1 -0
  136. package/dist/chunk-XAMC4S53.js +17 -0
  137. package/dist/chunk-XAMC4S53.js.map +1 -0
  138. package/dist/chunk-XNISPHTZ.js +1039 -0
  139. package/dist/chunk-XNISPHTZ.js.map +1 -0
  140. package/dist/chunk-Y2PM3FFL.js +3 -0
  141. package/dist/chunk-Y2PM3FFL.js.map +1 -0
  142. package/dist/chunk-YBPBK5KI.js +1030 -0
  143. package/dist/chunk-YBPBK5KI.js.map +1 -0
  144. package/dist/chunk-YHRG7UOC.js +31 -0
  145. package/dist/chunk-YHRG7UOC.js.map +1 -0
  146. package/dist/chunk-YWNYGYI7.cjs +31 -0
  147. package/dist/chunk-YWNYGYI7.cjs.map +1 -0
  148. package/dist/chunk-YYV35XOS.js +122 -0
  149. package/dist/chunk-YYV35XOS.js.map +1 -0
  150. package/dist/chunk-Z2OL5AJD.cjs +133 -0
  151. package/dist/chunk-Z2OL5AJD.cjs.map +1 -0
  152. package/dist/chunk-Z4AZW6FY.js +920 -0
  153. package/dist/chunk-Z4AZW6FY.js.map +1 -0
  154. package/dist/chunk-ZDFHA2EC.js +572 -0
  155. package/dist/chunk-ZDFHA2EC.js.map +1 -0
  156. package/dist/chunk-ZNZDQAXN.js +175 -0
  157. package/dist/chunk-ZNZDQAXN.js.map +1 -0
  158. package/dist/chunk-ZRL2UFTH.cjs +1073 -0
  159. package/dist/chunk-ZRL2UFTH.cjs.map +1 -0
  160. package/dist/chunk-ZT77RY6R.js +404 -0
  161. package/dist/chunk-ZT77RY6R.js.map +1 -0
  162. package/dist/entries/apps.cjs +155 -0
  163. package/dist/entries/apps.cjs.map +1 -0
  164. package/dist/entries/apps.d.cts +283 -0
  165. package/dist/entries/apps.d.ts +283 -0
  166. package/dist/entries/apps.js +10 -0
  167. package/dist/entries/apps.js.map +1 -0
  168. package/dist/entries/captions.cjs +124 -0
  169. package/dist/entries/captions.cjs.map +1 -0
  170. package/dist/entries/captions.d.cts +354 -0
  171. package/dist/entries/captions.d.ts +354 -0
  172. package/dist/entries/captions.js +3 -0
  173. package/dist/entries/captions.js.map +1 -0
  174. package/dist/entries/catalogs.cjs +165 -0
  175. package/dist/entries/catalogs.cjs.map +1 -0
  176. package/dist/entries/catalogs.d.cts +385 -0
  177. package/dist/entries/catalogs.d.ts +385 -0
  178. package/dist/entries/catalogs.js +4 -0
  179. package/dist/entries/catalogs.js.map +1 -0
  180. package/dist/entries/credits.cjs +592 -0
  181. package/dist/entries/credits.cjs.map +1 -0
  182. package/dist/entries/credits.d.cts +1429 -0
  183. package/dist/entries/credits.d.ts +1429 -0
  184. package/dist/entries/credits.js +11 -0
  185. package/dist/entries/credits.js.map +1 -0
  186. package/dist/entries/edl.cjs +409 -0
  187. package/dist/entries/edl.cjs.map +1 -0
  188. package/dist/entries/edl.d.cts +1199 -0
  189. package/dist/entries/edl.d.ts +1199 -0
  190. package/dist/entries/edl.js +4 -0
  191. package/dist/entries/edl.js.map +1 -0
  192. package/dist/entries/entities.cjs +530 -0
  193. package/dist/entries/entities.cjs.map +1 -0
  194. package/dist/entries/entities.d.cts +1371 -0
  195. package/dist/entries/entities.d.ts +1371 -0
  196. package/dist/entries/entities.js +5 -0
  197. package/dist/entries/entities.js.map +1 -0
  198. package/dist/entries/i18n.cjs +48 -0
  199. package/dist/entries/i18n.cjs.map +1 -0
  200. package/dist/entries/i18n.d.cts +69 -0
  201. package/dist/entries/i18n.d.ts +69 -0
  202. package/dist/entries/i18n.js +3 -0
  203. package/dist/entries/i18n.js.map +1 -0
  204. package/dist/entries/llm-models.cjs +177 -0
  205. package/dist/entries/llm-models.cjs.map +1 -0
  206. package/dist/entries/llm-models.d.cts +435 -0
  207. package/dist/entries/llm-models.d.ts +435 -0
  208. package/dist/entries/llm-models.js +4 -0
  209. package/dist/entries/llm-models.js.map +1 -0
  210. package/dist/entries/media.cjs +335 -0
  211. package/dist/entries/media.cjs.map +1 -0
  212. package/dist/entries/media.d.cts +518 -0
  213. package/dist/entries/media.d.ts +518 -0
  214. package/dist/entries/media.js +6 -0
  215. package/dist/entries/media.js.map +1 -0
  216. package/dist/entries/model-catalog.cjs +247 -0
  217. package/dist/entries/model-catalog.cjs.map +1 -0
  218. package/dist/entries/model-catalog.d.cts +202 -0
  219. package/dist/entries/model-catalog.d.ts +202 -0
  220. package/dist/entries/model-catalog.js +6 -0
  221. package/dist/entries/model-catalog.js.map +1 -0
  222. package/dist/entries/models.cjs +833 -0
  223. package/dist/entries/models.cjs.map +1 -0
  224. package/dist/entries/models.d.cts +287 -0
  225. package/dist/entries/models.d.ts +287 -0
  226. package/dist/entries/models.js +8 -0
  227. package/dist/entries/models.js.map +1 -0
  228. package/dist/entries/nodes.cjs +789 -0
  229. package/dist/entries/nodes.cjs.map +1 -0
  230. package/dist/entries/nodes.d.cts +1600 -0
  231. package/dist/entries/nodes.d.ts +1600 -0
  232. package/dist/entries/nodes.js +16 -0
  233. package/dist/entries/nodes.js.map +1 -0
  234. package/dist/entries/organizations.cjs +80 -0
  235. package/dist/entries/organizations.cjs.map +1 -0
  236. package/dist/entries/organizations.d.cts +466 -0
  237. package/dist/entries/organizations.d.ts +466 -0
  238. package/dist/entries/organizations.js +3 -0
  239. package/dist/entries/organizations.js.map +1 -0
  240. package/dist/entries/pipeline.cjs +594 -0
  241. package/dist/entries/pipeline.cjs.map +1 -0
  242. package/dist/entries/pipeline.d.cts +2617 -0
  243. package/dist/entries/pipeline.d.ts +2617 -0
  244. package/dist/entries/pipeline.js +5 -0
  245. package/dist/entries/pipeline.js.map +1 -0
  246. package/dist/entries/scene3d.cjs +704 -0
  247. package/dist/entries/scene3d.cjs.map +1 -0
  248. package/dist/entries/scene3d.d.cts +4284 -0
  249. package/dist/entries/scene3d.d.ts +4284 -0
  250. package/dist/entries/scene3d.js +3 -0
  251. package/dist/entries/scene3d.js.map +1 -0
  252. package/dist/entries/social.cjs +714 -0
  253. package/dist/entries/social.cjs.map +1 -0
  254. package/dist/entries/social.d.cts +1366 -0
  255. package/dist/entries/social.d.ts +1366 -0
  256. package/dist/entries/social.js +5 -0
  257. package/dist/entries/social.js.map +1 -0
  258. package/dist/entries/types.cjs +13 -0
  259. package/dist/entries/types.cjs.map +1 -0
  260. package/dist/entries/types.d.cts +162 -0
  261. package/dist/entries/types.d.ts +162 -0
  262. package/dist/entries/types.js +4 -0
  263. package/dist/entries/types.js.map +1 -0
  264. package/dist/entries/ugc.cjs +279 -0
  265. package/dist/entries/ugc.cjs.map +1 -0
  266. package/dist/entries/ugc.d.cts +575 -0
  267. package/dist/entries/ugc.d.ts +575 -0
  268. package/dist/entries/ugc.js +6 -0
  269. package/dist/entries/ugc.js.map +1 -0
  270. package/dist/entries/video.cjs +549 -0
  271. package/dist/entries/video.cjs.map +1 -0
  272. package/dist/entries/video.d.cts +1791 -0
  273. package/dist/entries/video.d.ts +1791 -0
  274. package/dist/entries/video.js +8 -0
  275. package/dist/entries/video.js.map +1 -0
  276. package/dist/entries/workflow.cjs +574 -0
  277. package/dist/entries/workflow.cjs.map +1 -0
  278. package/dist/entries/workflow.d.cts +1733 -0
  279. package/dist/entries/workflow.d.ts +1733 -0
  280. package/dist/entries/workflow.js +5 -0
  281. package/dist/entries/workflow.js.map +1 -0
  282. package/dist/fan-out-meta-Bu6VyXcZ.d.cts +19 -0
  283. package/dist/fan-out-meta-Bu6VyXcZ.d.ts +19 -0
  284. package/dist/gemini-omni-voices-zeRXxSbZ.d.cts +174 -0
  285. package/dist/gemini-omni-voices-zeRXxSbZ.d.ts +174 -0
  286. package/dist/image-overlay-layers-CyBfRhxJ.d.cts +208 -0
  287. package/dist/image-overlay-layers-CyBfRhxJ.d.ts +208 -0
  288. package/dist/index.cjs +7731 -27084
  289. package/dist/index.cjs.map +1 -1
  290. package/dist/index.d.cts +32 -24198
  291. package/dist/index.d.ts +32 -24198
  292. package/dist/index.js +40 -25220
  293. package/dist/index.js.map +1 -1
  294. package/dist/model-catalog-flJYaa-g.d.cts +561 -0
  295. package/dist/model-catalog-flJYaa-g.d.ts +561 -0
  296. package/dist/presentation-types-0ENOCjoj.d.cts +61 -0
  297. package/dist/presentation-types-0ENOCjoj.d.ts +61 -0
  298. package/dist/presentation-utils-BIqiCzSA.d.cts +90 -0
  299. package/dist/presentation-utils-BdiObtwq.d.ts +90 -0
  300. package/dist/scene-node-types-DjenYFLO.d.cts +1949 -0
  301. package/dist/scene-node-types-DjenYFLO.d.ts +1949 -0
  302. package/dist/supported-fonts-CRoF1gOy.d.cts +16 -0
  303. package/dist/supported-fonts-CRoF1gOy.d.ts +16 -0
  304. package/dist/types-BRlFPEru.d.cts +511 -0
  305. package/dist/types-BRlFPEru.d.ts +511 -0
  306. package/dist/types-DffyGSy5.d.cts +67 -0
  307. package/dist/types-DffyGSy5.d.ts +67 -0
  308. package/package.json +102 -1
  309. package/src/__tests__/add-captions-plan.test.ts +6 -2
  310. package/src/__tests__/caption-edge-dash.test.ts +23 -0
  311. package/src/__tests__/fixtures/root-exports.baseline.json +4625 -0
  312. package/src/__tests__/input-field-extra-keys.test.ts +1 -0
  313. package/src/__tests__/no-internal-imports.test.ts +1 -1
  314. package/src/__tests__/node-aspect-ratio.test.ts +25 -0
  315. package/src/__tests__/node-runtime-keys.test.ts +9 -0
  316. package/src/__tests__/package-entries.test.ts +50 -0
  317. package/src/__tests__/pitch-tempo-pricing.test.ts +21 -0
  318. package/src/__tests__/preview-gate-use-case.test.ts +151 -0
  319. package/src/__tests__/run-continuation.test.ts +7 -1
  320. package/src/__tests__/site-capture-node.test.ts +58 -0
  321. package/src/__tests__/ugc-lane-wires.test.ts +228 -0
  322. package/src/__tests__/ugc-node-wires.test.ts +9 -3
  323. package/src/__tests__/ugc-run-state.test.ts +5 -4
  324. package/src/__tests__/video-analysis-catalog-sync.test.ts +1 -1
  325. package/src/__tests__/video-analysis-pricing.test.ts +6 -6
  326. package/src/__tests__/voice-changer-pro-quote.test.ts +79 -0
  327. package/src/add-captions-plan.ts +9 -3
  328. package/src/caption-edge-dash.ts +33 -0
  329. package/src/credit-estimators/index.ts +22 -1
  330. package/src/credit-estimators/pitch-tempo.ts +15 -1
  331. package/src/credit-estimators/speech.ts +72 -4
  332. package/src/credit-estimators/unit-quote.ts +52 -0
  333. package/src/credit-estimators/video-sfx.ts +15 -0
  334. package/src/credit-estimators/voice-changer-pro-quote.ts +138 -0
  335. package/src/entity-image-handle.ts +2 -0
  336. package/src/entries/apps.ts +63 -0
  337. package/src/entries/captions.ts +34 -0
  338. package/src/entries/catalogs.ts +65 -0
  339. package/src/entries/credits.ts +104 -0
  340. package/src/entries/edl.ts +42 -0
  341. package/src/entries/entities.ts +144 -0
  342. package/src/entries/i18n.ts +31 -0
  343. package/src/entries/llm-models.ts +63 -0
  344. package/src/entries/media.ts +36 -0
  345. package/src/entries/model-catalog.ts +89 -0
  346. package/src/entries/models.ts +266 -0
  347. package/src/entries/nodes.ts +245 -0
  348. package/src/entries/organizations.ts +9 -0
  349. package/src/entries/pipeline.ts +43 -0
  350. package/src/entries/scene3d.ts +27 -0
  351. package/src/entries/social.ts +297 -0
  352. package/src/entries/types.ts +26 -0
  353. package/src/entries/ugc.ts +14 -0
  354. package/src/entries/video.ts +59 -0
  355. package/src/entries/workflow.ts +172 -0
  356. package/src/fan-out-rows.ts +2 -0
  357. package/src/index.ts +25 -1845
  358. package/src/json-kinds.ts +4 -0
  359. package/src/model-catalog.ts +36 -34
  360. package/src/node-mappable-fields.ts +1 -0
  361. package/src/node-run-routes.ts +2 -0
  362. package/src/node-runtime-keys.ts +8 -0
  363. package/src/normalize-node-params.ts +30 -0
  364. package/src/presentation-utils.ts +5 -0
  365. package/src/preview-gate.ts +92 -14
  366. package/src/producer-types.ts +16 -2
  367. package/src/run-continuation.ts +21 -0
  368. package/src/site-capture-node.ts +82 -0
  369. package/src/ugc-lane-wires.ts +246 -0
  370. package/src/ugc-node-wires.ts +37 -7
  371. package/src/ugc-run-state.ts +5 -3
  372. package/src/video-analysis-pricing.ts +31 -29
@@ -0,0 +1,575 @@
1
+ import { C as ClipNote, F as FanOutItemMeta } from '../fan-out-meta-Bu6VyXcZ.js';
2
+
3
+ /** The UGC node types (Cloud only; served by a private plugin). */
4
+ declare const UGC_NODE_TYPES: ReadonlySet<string>;
5
+ /** UGC Creator: the node-data key that holds a round's passing candidates until the person picks one (run state). */
6
+ declare const UGC_CREATOR_CANDIDATES_KEY = "candidates";
7
+ /** A run that would execute a UGC Creator whose options wait for the person's pick. */
8
+ declare const UGC_PICK_FIRST_MESSAGE = "Pick a creator first.";
9
+ /**
10
+ * Per UGC type, the node-data keys that are a RUN's state, never a choice. A
11
+ * published app's snapshot is readable by every runner, so publishing strips
12
+ * them (the last plan, the clip tickets, the publisher's kept creator).
13
+ *
14
+ * UGC Creator's image (`generatedImageUrl`) goes from every creator, whatever its
15
+ * source: after a My photo run it IS the author's photo, and a creator switched
16
+ * to another source after such a run, or whose photo was removed, still holds it.
17
+ * UGC Clip's takes and UGC Cards' Notes (`generatedText`, and `text`, the Notes
18
+ * as a run hands them on) are the author's renders: a published node starts empty.
19
+ *
20
+ * A published snapshot is stripped through `stripUgcPublishState`
21
+ * (@nodaro/render-rules), which also empties every run result a lane writes under
22
+ * a generic name, every node made from the UGC video, and every node on a path
23
+ * into a UGC Creator's photo input.
24
+ */
25
+ declare const UGC_NODE_RUN_STATE_KEYS: Readonly<Record<string, readonly string[]>>;
26
+ /**
27
+ * The ONLY UGC keys a run request's `inputOverrides` may set — an allow-list,
28
+ * so a run-state field added later is locked without anyone listing it.
29
+ *
30
+ * No UGC type may gain a `LEGACY_EXPOSED_FIELD_KEYS` row: the lock reads the
31
+ * stored key, before that table renames it.
32
+ */
33
+ declare const UGC_OVERRIDABLE_FIELDS: Readonly<Record<string, readonly string[]>>;
34
+ /** UGC Creator holds options for the person to pick: the ones a run drew, or the ones a credits stop kept. */
35
+ declare function ugcPickPending(data: unknown): boolean;
36
+ /**
37
+ * A run that would execute a UGC Creator whose options wait is refused ("Pick a creator first."),
38
+ * except that creator's own re-draw. One rule for the editor's check before a run and the
39
+ * orchestrator's.
40
+ */
41
+ declare function ugcRunWaitsForPick(runNodes: ReadonlyArray<{
42
+ readonly id: string;
43
+ readonly type?: string | null;
44
+ readonly data?: unknown;
45
+ }>, opts?: {
46
+ readonly redrawId?: string;
47
+ }): boolean;
48
+ /**
49
+ * Per UGC type, the author's own content a published snapshot never carries: UGC Creator's photo
50
+ * of a person (`photoUrl`). A choice, not run state — so it stays on the author's own workflow —
51
+ * but a runner gives their own photo (or the run is refused for want of one) and a template's
52
+ * cloner adds theirs.
53
+ */
54
+ declare const UGC_PUBLISH_PRIVATE_FIELDS: Readonly<Record<string, readonly string[]>>;
55
+ /**
56
+ * The UGC types' own strip: a copy of `nodes` with every UGC node's run state and the author's own
57
+ * photo removed (and `keepResult: false`). Other nodes are returned as they are. Publishing, a
58
+ * share link's view and a viewer's run go through `stripUgcPublishState` (@nodaro/render-rules),
59
+ * which starts here.
60
+ */
61
+ declare function stripUgcRunState<T extends {
62
+ type?: unknown;
63
+ data?: unknown;
64
+ }>(nodes: readonly T[]): T[];
65
+ /** Every override entry that would set a non-overridable key on a UGC node, in node then key order. Pure. */
66
+ declare function findUgcLockedFields(nodes: ReadonlyArray<{
67
+ id: string;
68
+ type?: string;
69
+ }> | null | undefined, inputOverrides: Record<string, Record<string, unknown>> | null | undefined): Array<{
70
+ nodeId: string;
71
+ nodeType: string;
72
+ field: string;
73
+ }>;
74
+
75
+ /**
76
+ * A UGC builder call `{ tool, args }` (MCP argument names) → the REST body of
77
+ * the public route that tool dispatches to. The builder sets every price lever;
78
+ * this adds none — its one addition is the image of a call that needs the
79
+ * previous step's image (`imageArg`, or the photo of `image_to_text`). A tool
80
+ * it does not know → undefined, so an app older than the builder fails plainly
81
+ * instead of guessing. Kept equal to the MCP verbs by ugc-call-body-parity.test.ts.
82
+ */
83
+ interface UgcToolCall {
84
+ readonly tool: string;
85
+ readonly args: Readonly<Record<string, unknown>>;
86
+ readonly imageArg?: string;
87
+ }
88
+ type UgcRouteBody = {
89
+ readonly path: "/v1/generate-image" | "/v1/image-to-image" | "/v1/image-to-text/describe";
90
+ readonly body: Record<string, unknown>;
91
+ };
92
+ declare function ugcCallToRouteBody(call: UgcToolCall, opts?: {
93
+ readonly image?: string;
94
+ }): UgcRouteBody | {
95
+ readonly error: string;
96
+ } | undefined;
97
+
98
+ /** A UGC call that reached a deployment without the UGC routes (the router's 404). */
99
+ declare const UGC_NOT_SERVED_MESSAGE = "UGC videos are a Nodaro Cloud feature and are not served on this deployment.";
100
+ /** A wire whose `v` this app does not read. */
101
+ declare const UGC_VERSION_MESSAGE = "This workflow was made with a newer version of the UGC nodes.";
102
+ /** An answer this app cannot run: a tool it does not know, or a shape it cannot read. */
103
+ declare const UGC_NEWER_APP_MESSAGE = "This step needs a newer app version.";
104
+ /** A creator pick whose options are gone (another run replaced them, or they were never this node's). */
105
+ declare const UGC_PICK_GONE_MESSAGE = "These creator options are no longer available. Run UGC Creator again.";
106
+ /** UGC Clips with no creator on its creator input (UGC Creator has not run, or waits for a pick). */
107
+ declare const UGC_CREATOR_MISSING_MESSAGE = "UGC Creator has no creator yet. Run it, or pick one of its options.";
108
+ /** UGC Script's target length in seconds when the node holds none: the node's default (the route requires a length). */
109
+ declare const UGC_SCRIPT_DEFAULT_TARGET_SEC = 15;
110
+ /** The range of a UGC script's length, in whole seconds: the script route's, and a plan's own. */
111
+ declare const UGC_SCRIPT_MIN_TARGET_SEC = 4;
112
+ declare const UGC_SCRIPT_MAX_TARGET_SEC = 300;
113
+ /** The opening of the sentence UGC Clips fails with when the plugin refuses the script: "<this> <each error and its fix>". */
114
+ declare const UGC_SCRIPT_NEEDS_CHANGES = "The script needs changes:";
115
+ /**
116
+ * A run of a video whose clips are cut from one recorded speech, on a graph with no UGC Finish on this UGC
117
+ * Clips' Script (sized) output: refused before anything is spent.
118
+ */
119
+ declare const UGC_NEEDS_FINISH_MESSAGE = "Add a UGC Finish node after UGC Clip, and connect UGC Clips' Script (sized) output to it.";
120
+ /** UGC Finish with nothing on its clips input. */
121
+ declare const UGC_FINISH_NEEDS_CLIPS_MESSAGE = "Connect the Video output of UGC Clip.";
122
+ /** UGC Finish's job answered that a clip does not follow its speech (each clip checks itself first, so this is rare). */
123
+ declare const UGC_FINISH_NOT_READY_MESSAGE = "A clip did not follow its speech. Re-render it from the UGC Clip node and run again.";
124
+ /**
125
+ * A video cut from one recorded speech whose clips, priced once the speech is split, would hold more
126
+ * than the run was checked for before it started: the run stops at UGC Clips, before any clip renders.
127
+ */
128
+ declare const UGC_OVER_HOLD_MESSAGE = "The clips for this recording would cost more than this run was checked for, so none was rendered. Run UGC Clips again to record the speech again.";
129
+ /**
130
+ * Every fixed sentence a UGC node fails with, by id: the English both engines write on the node.
131
+ * The editor shows each in the person's language by its id. Not listed: the sentence that opens
132
+ * with `UGC_SCRIPT_NEEDS_CHANGES` (the plugin's own words finish it), a route's own message, and
133
+ * "UGC step failed (<status>)".
134
+ */
135
+ declare const UGC_NODE_MESSAGES: Readonly<{
136
+ readonly notServed: "UGC videos are a Nodaro Cloud feature and are not served on this deployment.";
137
+ readonly version: "This workflow was made with a newer version of the UGC nodes.";
138
+ readonly newerApp: "This step needs a newer app version.";
139
+ readonly pickGone: "These creator options are no longer available. Run UGC Creator again.";
140
+ readonly creatorMissing: "UGC Creator has no creator yet. Run it, or pick one of its options.";
141
+ readonly minorAge: "That age can't be used: UGC creators are adults only.";
142
+ readonly needsGender: "Choose woman or man.";
143
+ readonly needsPhoto: "Connect or upload a photo of yourself.";
144
+ readonly needsCategory: "Run UGC Script first, or pick a product category.";
145
+ readonly needsSite: "Add the product name or website.";
146
+ readonly needsPlanOut: "Connect the Script (sized) output of UGC Clips.";
147
+ readonly needsPlan: "Connect the Script output of UGC Script.";
148
+ readonly needsTicket: "Connect the Clips output of UGC Clips.";
149
+ readonly needsVideo: "Connect the joined video.";
150
+ readonly needsTranscript: "Connect the Transcript output of UGC Clips.";
151
+ readonly needsFinish: "Add a UGC Finish node after UGC Clip, and connect UGC Clips' Script (sized) output to it.";
152
+ readonly finishNeedsClips: "Connect the Video output of UGC Clip.";
153
+ readonly finishNotReady: "A clip did not follow its speech. Re-render it from the UGC Clip node and run again.";
154
+ readonly overHold: "The clips for this recording would cost more than this run was checked for, so none was rendered. Run UGC Clips again to record the speech again.";
155
+ }>;
156
+ /** The id of a fixed sentence a UGC node fails with (`UGC_NODE_MESSAGES`). */
157
+ type UgcNodeMessageId = keyof typeof UGC_NODE_MESSAGES;
158
+ /** UGC Script's screenshot inputs, in card order. */
159
+ declare const UGC_SCREENSHOT_HANDLES: readonly string[];
160
+ /** Per UGC type, the output an edge with no source handle reads. */
161
+ declare const UGC_PRIMARY_HANDLE: Readonly<Record<string, string>>;
162
+ /** A UGC node's outputs: handle id → the value that handle carries (a JSON string, text or a URL). */
163
+ type UgcOutputs = Readonly<Record<string, string>>;
164
+ /**
165
+ * The length a saved UGC plan was written to: its own `targetDurationSec`, a whole number of
166
+ * seconds in the script's range. Besides the lines (the opening line, each beat's line, the
167
+ * closing line), one of the two keys of a plan the app reads (the other: whether each beat carries
168
+ * a screenshot, `ugcPlanScreenshotCount`): a script that hands on its saved plan is priced at the
169
+ * plan's length, and shows it, never at the length setting, which may have changed since. Takes
170
+ * the plan or its wire (a JSON string); undefined for anything that is not a plan carrying a length.
171
+ */
172
+ declare function ugcPlanLengthSec(plan: unknown): number | undefined;
173
+ /**
174
+ * How many of a saved UGC plan's beats carry a screenshot: the screenshot cards the plan was
175
+ * written with. Read beat by beat: a beat carries one when its `screenshot` is an object, as the
176
+ * plan's own screenshots are (whatever it names); a beat that is not an object, or whose screenshot
177
+ * is anything else, carries none — and never makes the rest unreadable. A plan whose beats carry
178
+ * none is a talking-head plan (0). Read, like its length, so a script that hands on its saved plan
179
+ * is priced at the screenshots that plan holds, never at the script's wires, which may have changed
180
+ * since. Takes the plan or its wire (a JSON string); undefined only for a plan with no beats to read
181
+ * and for anything that is not a plan.
182
+ */
183
+ declare function ugcPlanScreenshotCount(plan: unknown): number | undefined;
184
+ /**
185
+ * What an edge from a UGC node reads, on both engines: the value of the pip it leaves — an edge
186
+ * with no source handle reads the node's primary output — from the node's outputs by pip. Only a
187
+ * pip the outputs hold as a string ("" included: an empty transcript is a value); an inherited
188
+ * key or a non-string is no value.
189
+ */
190
+ declare function ugcPipValue(outputs: unknown, sourceType: string, sourceHandle?: string | null): string | undefined;
191
+ /**
192
+ * A UGC wire (a JSON string or an object) → its value when it is an object with `v: 1`.
193
+ * Another `v` → the version message. Anything that is not a UGC wire at all (nothing
194
+ * connected, not JSON, no `v`) → `unreadable`, which a node words as the input it needs.
195
+ */
196
+ declare function readUgcWire(raw: unknown, unreadable?: string): {
197
+ value: Record<string, unknown>;
198
+ } | {
199
+ error: string;
200
+ };
201
+ /**
202
+ * A failed UGC call → the sentence the node fails with. A 404 that names no error code is
203
+ * the router's (the route is not registered here) → the Cloud sentence; a route's own 404
204
+ * names a code and keeps its message. `minor_age_refused` → the adults-only sentence. A 4xx
205
+ * or 503 → the route's message. Anything else → "UGC step failed (<status>)".
206
+ */
207
+ declare function ugcFailure(status: number, body: string): string;
208
+ /**
209
+ * The pickers whose own set fields shape a sampled creator: the picker types UGC Creator's
210
+ * `pickers` input takes (the route takes no other). One list for the editor's connection rule
211
+ * and both engines' input resolvers.
212
+ */
213
+ declare const UGC_CREATOR_PICKER_TYPES: ReadonlySet<string>;
214
+ /** The UGC Creator node-data keys its request body reads. */
215
+ interface UgcCreatorFields {
216
+ readonly source?: string;
217
+ readonly gender?: string;
218
+ readonly photoUrl?: string;
219
+ readonly categoryOverride?: string;
220
+ readonly seed?: number;
221
+ readonly keepResult?: boolean;
222
+ readonly result?: Readonly<Record<string, unknown>>;
223
+ /** The options a draw left waiting for the pick (run state): read only for `previous`. */
224
+ readonly candidates?: unknown;
225
+ }
226
+ /**
227
+ * The `/v1/ugc/creator` body. A photo: the wired photo, else the node's own. A sampled
228
+ * creator: the product category (the node's override, else the wired one), the pickers that
229
+ * set a field, the node's seed, and the traits of the latest creator the person saw as
230
+ * `previous`, so the next one differs: the first option waiting for the pick, else — on a
231
+ * re-run that does not keep the result — the last creator's. Refuses before any call.
232
+ */
233
+ declare function ugcCreatorBody(input: {
234
+ data: UgcCreatorFields;
235
+ photoUrl?: string;
236
+ category?: string;
237
+ pickers?: Record<string, Record<string, unknown>>;
238
+ }): {
239
+ body: Record<string, unknown>;
240
+ } | {
241
+ error: string;
242
+ };
243
+ /**
244
+ * The creator the node hands on: the record (`creator`, v1) and its first image (`image`).
245
+ * `identityImages` are the images of the candidate the node hands on — the picked one where
246
+ * a person picked. The record copies the listed fields only, so `candidates`, `fallback`,
247
+ * `pick` and `image` never reach the `creator` wire.
248
+ */
249
+ declare function ugcCreatorOutputs(answer: Record<string, unknown>, identityImages: readonly string[]): {
250
+ outputs: UgcOutputs;
251
+ imageUrl: string;
252
+ record: Record<string, unknown>;
253
+ };
254
+ /** One builder call as the app runs it: `tool` and `args`, nothing else (a candidate's other keys, its model included, are never read). */
255
+ interface UgcCreatorCall {
256
+ readonly tool: string;
257
+ readonly args: Readonly<Record<string, unknown>>;
258
+ }
259
+ /** What a creator answer asks the node to render. */
260
+ interface UgcCreatorCandidateCalls {
261
+ /** Every candidate's image call, the primary first. One call (`image`) for an answer from before candidates; none for a photo. */
262
+ readonly calls: readonly UgcCreatorCall[];
263
+ /** The round's one moderation fallback: it runs once, and only when every candidate the run rendered was blocked. */
264
+ readonly fallback: UgcCreatorCall | null;
265
+ /** "user": a person picks among `calls` where one can be asked; "primary": `calls[0]` alone; null: nothing to render (a photo). */
266
+ readonly pick: "user" | "primary" | null;
267
+ }
268
+ /**
269
+ * A `/v1/ugc/creator` answer's image calls. Content-free: reads `image` (`tool`, `args`,
270
+ * `fallback`), `candidates[].tool|args`, `fallback` and `pick.how` — never a candidate's
271
+ * model. An answer without `candidates` (an older builder) renders `image` alone, as before.
272
+ */
273
+ declare function ugcCreatorCandidates(answer: Readonly<Record<string, unknown>>): UgcCreatorCandidateCalls | {
274
+ readonly error: string;
275
+ };
276
+ /** The calls a run renders: every candidate where a person is there to pick, else the primary alone. */
277
+ declare function ugcCreatorCallsToRender(c: UgcCreatorCandidateCalls, opts: {
278
+ readonly personPicks: boolean;
279
+ }): readonly UgcCreatorCall[];
280
+ /** One rendered candidate that passed its checks, kept on the node until the person picks (run state, never a wire). */
281
+ interface UgcCreatorCandidate {
282
+ readonly imageUrl: string;
283
+ readonly record: Readonly<Record<string, unknown>>;
284
+ }
285
+ declare function ugcCreatorCandidate(answer: Readonly<Record<string, unknown>>, images: readonly string[]): UgcCreatorCandidate;
286
+ /** A UGC Creator run output that waits for the person's pick: two or more options (`ugcCandidates`). */
287
+ declare function ugcAwaitsPick(output: unknown): boolean;
288
+ /** The person's pick, read back from node data (untrusted): a stale index, a foreign list or another version is refused. */
289
+ declare function ugcCreatorPick(candidates: unknown, index: number): {
290
+ readonly result: Readonly<Record<string, unknown>>;
291
+ readonly outputs: UgcOutputs;
292
+ readonly imageUrl: string;
293
+ } | {
294
+ readonly error: string;
295
+ };
296
+ /** The languages a UGC script can be written in: the node's choice (`UgcScriptData.language`). */
297
+ declare const UGC_SCRIPT_LANGUAGES: readonly ["en", "he"];
298
+ type UgcScriptLanguage = (typeof UGC_SCRIPT_LANGUAGES)[number];
299
+ /**
300
+ * The `/v1/ugc/script` body: the product name or website (required), the screenshot slots
301
+ * in card order with the empty ones dropped, the product image when set, the target length
302
+ * (`UGC_SCRIPT_DEFAULT_TARGET_SEC` when the node holds no number), and the language (the
303
+ * node's choice; English when it holds none or one this app does not know).
304
+ */
305
+ declare function ugcScriptBody(input: {
306
+ site?: string;
307
+ screenshots: ReadonlyArray<string | undefined>;
308
+ productImage?: string;
309
+ targetDurationSec?: number;
310
+ language?: unknown;
311
+ }): {
312
+ body: Record<string, unknown>;
313
+ } | {
314
+ error: string;
315
+ };
316
+ /** A finished UGC Script job → `plan` (the plan, v1) and `category` (text). */
317
+ declare function ugcScriptOutputs(outputData: Record<string, unknown>): UgcOutputs;
318
+ /** UGC Script's last result, as the node holds it. */
319
+ type UgcScriptResult = {
320
+ plan: Record<string, unknown>;
321
+ productCategory: string;
322
+ warnings: unknown[];
323
+ notes: string[];
324
+ rounds: number;
325
+ };
326
+ /** A finished UGC Script job → the node's `result`, written the same by both engines; none without a plan. */
327
+ declare function ugcScriptResult(outputData: Readonly<Record<string, unknown>>): UgcScriptResult | undefined;
328
+ /**
329
+ * What a UGC Creator or UGC Script with Keep on hands on instead of running: the outputs of
330
+ * the result it holds. Null — the node runs — when Keep is off, when the result holds nothing
331
+ * to hand on (a creator without its image, a script without its plan), and for a creator whose
332
+ * options wait for a pick, whatever Keep says. The creator record goes on unread; whoever reads
333
+ * it refuses another version.
334
+ */
335
+ declare function ugcKeptOutputs(type: "ugc-creator" | "ugc-script", data: Readonly<Record<string, unknown>>): UgcOutputs | null;
336
+ /** The `/v1/ugc/clips` canvas body: the plan, the creator's gender, traits and images, and the picked voice. */
337
+ declare function ugcClipsBody(input: {
338
+ planWire: unknown;
339
+ creatorWire: unknown;
340
+ voiceId?: string;
341
+ }): {
342
+ body: Record<string, unknown>;
343
+ } | {
344
+ error: string;
345
+ };
346
+ /**
347
+ * The `/v1/ugc/clips` answer → the tickets (one per clip, as JSON strings), `clips` (the
348
+ * first), `plan-out` (`{ v: 1, plan, transcribeArgs }` for UGC Cards), `transcript`, whether
349
+ * the plan has cards, and whether the clips go through UGC Finish's job (`finishes`: the plan-out
350
+ * carries a finish call, which is what UGC Finish reads to run it). An answer with errors → "The script needs changes: …" with each
351
+ * error and its fix; an answer without the parts UGC Cards needs fails here, before any clip
352
+ * is paid for.
353
+ */
354
+ declare function ugcClipsOutputs(answer: Record<string, unknown>): {
355
+ outputs: UgcOutputs;
356
+ tickets: string[];
357
+ hasCards: boolean;
358
+ finishes: boolean;
359
+ } | {
360
+ error: string;
361
+ };
362
+ /**
363
+ * The `/v1/ugc/clip` body for one ticket: the ticket, `nonce` = how many times this clip was
364
+ * re-rendered (`rerender["<clip number>"]`, else 0) and `runKey` when one is given.
365
+ */
366
+ declare function ugcClipBody(input: {
367
+ ticketWire: unknown;
368
+ rerender?: Readonly<Record<string, number>>;
369
+ runKey?: string;
370
+ }): {
371
+ body: Record<string, unknown>;
372
+ clipNumber: number;
373
+ durationSec: number;
374
+ } | {
375
+ error: string;
376
+ };
377
+ /**
378
+ * A finished UGC Clip job (`{ videoUrl, durationSec, clipWarnings, … }`) → `video-out`, the
379
+ * clip's real length (null when unknown) and its warnings ([] when it has none).
380
+ */
381
+ declare function ugcClipOutputs(outputData: Record<string, unknown>): {
382
+ outputs: UgcOutputs;
383
+ videoUrl: string;
384
+ durationSec: number | null;
385
+ clipWarnings: string[];
386
+ };
387
+ /**
388
+ * What a list read (a Bundle edge, a fold) takes from a UGC Clip's saved data, on both engines:
389
+ * its last fanned-out batch — one take per clip, in clip order — when its last run was one; else
390
+ * exactly the take it shows (its active result, else its video). Never the earlier takes it keeps:
391
+ * a video of one clip (one ticket, so no fan-out) would join every take. A single run clears the
392
+ * batch (the editor's job patch), so a batch held is always the last run's. Undefined when it holds
393
+ * no take at all.
394
+ */
395
+ declare function ugcClipSavedList(data: unknown): string[] | undefined;
396
+ /**
397
+ * UGC Cards' two timing jobs on the joined video, and the plan they time. The plan input must
398
+ * be UGC Clips' `{ v: 1, plan, transcribeArgs }`; anything else is refused before either job.
399
+ * The transcription spreads `transcribeArgs` unread, then sets the node's own fields last, so
400
+ * the wire can add a language but never change the provider or the word timings.
401
+ */
402
+ declare function ugcCardsJobs(input: {
403
+ planOutWire: unknown;
404
+ videoUrl?: string;
405
+ transcript?: string;
406
+ }): {
407
+ alignment: {
408
+ path: "/v1/forced-alignment";
409
+ body: Record<string, unknown>;
410
+ };
411
+ transcribe: {
412
+ path: "/v1/transcribe";
413
+ body: Record<string, unknown>;
414
+ };
415
+ plan: Record<string, unknown>;
416
+ } | {
417
+ error: string;
418
+ };
419
+ /**
420
+ * The `/v1/ugc/cards` canvas body: the plan, the video, whichever timing came back as a list,
421
+ * the timing jobs that failed, and the clips' notes.
422
+ */
423
+ declare function ugcCardsBody(input: {
424
+ plan: Record<string, unknown>;
425
+ videoUrl: string;
426
+ alignment?: unknown;
427
+ words?: unknown;
428
+ failed: ReadonlyArray<"alignment" | "words">;
429
+ clipNotes: ReadonlyArray<ClipNote>;
430
+ }): Record<string, unknown>;
431
+ /** The `/v1/ugc/cards` answer → `layerPlan`, `captionPlan` (v1; the empty plan when untimed) and `report` (one line per sentence). */
432
+ declare function ugcCardsOutputs(answer: Record<string, unknown>): UgcOutputs;
433
+
434
+ type Obj = Record<string, unknown>;
435
+ /** UGC Finish's node type. Not the plugin job it runs (`ugc-finish`): a price, a dispatch or a reconcile keyed on a type never confuses the two. */
436
+ declare const UGC_FINISH_CLIPS_TYPE = "ugc-finish-clips";
437
+ /** The child steps of UGC Clips' prelude, in run order: each is a job of its own, keyed by its step. */
438
+ declare const UGC_PRELUDE_STEPS: readonly ["speech", "alignment", "split"];
439
+ type UgcPreludeStep = (typeof UGC_PRELUDE_STEPS)[number];
440
+ /** The public route each prelude step runs on, and the node type its job is read as. */
441
+ declare const UGC_PRELUDE_ROUTES: Readonly<Record<UgcPreludeStep, {
442
+ readonly path: string;
443
+ readonly jobType: string;
444
+ }>>;
445
+ /** The `/v1/ugc/clips` answer's phase: 1 = the prelude must run first, 2 = the clips; null = an answer with no phase (one call, as English). */
446
+ declare function ugcClipsPhase(answer: Readonly<Obj>): 1 | 2 | null;
447
+ /** What the prelude runs: the speech's route body, and the two that need the step before them. */
448
+ interface UgcPrelude {
449
+ readonly speech: Obj;
450
+ readonly alignment: (audioUrl: string) => Obj;
451
+ readonly split: (audioUrl: string, alignment: unknown) => Obj;
452
+ }
453
+ /**
454
+ * A phase-1 answer's three calls (`speech`, `align`, `split`, MCP argument names) → the REST bodies of
455
+ * the public routes their MCP tools dispatch to: `generate_speech` → `/v1/text-to-speech` (text, voice,
456
+ * voice type, model as provider, language code, as the verb maps them), `forced_alignment` →
457
+ * `/v1/forced-alignment` (the transcript, with the speech's audio), `ugc_split_speech` →
458
+ * `/v1/ugc/segments` (the plan, with the speech's audio and its word timings). A call that is missing
459
+ * or names another tool → the newer-app sentence: the app never guesses.
460
+ */
461
+ declare function ugcPrelude(answer: Readonly<Obj>): UgcPrelude | {
462
+ readonly error: string;
463
+ };
464
+ /** The finished speech job's audio, its word timings and its segments, as their jobs write them. */
465
+ declare function ugcPreludeOutput(step: UgcPreludeStep, output: Readonly<Obj> | undefined): {
466
+ value: unknown;
467
+ } | {
468
+ error: string;
469
+ };
470
+ /** The second `/v1/ugc/clips` call: the first call's body with the segments the split returned. */
471
+ declare function ugcClipsPhase2Body(body: Readonly<Obj>, segments: readonly unknown[]): Obj;
472
+ /** The estimate input of a video cut from one recorded speech, as the hold check names it (`runEstimate`). */
473
+ interface UgcRunEstimateInput {
474
+ readonly targetDurationSec: number;
475
+ readonly screenshotCount: number;
476
+ readonly source: "sampled";
477
+ readonly language: string;
478
+ }
479
+ /**
480
+ * The estimate input of the video a UGC Clips run belongs to, read from the plan the node was sent: its
481
+ * length, its screenshot cards and its language — the reading a kept plan is priced with. Read on a
482
+ * phase-1 answer, before the prelude spends anything, so a plan the check cannot read refuses the run
483
+ * while nothing is paid. The creator's source prices no clip, so it is not read. A plan without a length,
484
+ * or without a language this lane takes → the newer-app sentence: the check never guesses.
485
+ */
486
+ declare function ugcRunEstimateInput(plan: unknown): {
487
+ runEstimate: UgcRunEstimateInput;
488
+ } | {
489
+ error: string;
490
+ };
491
+ /**
492
+ * The quote that checks a video cut from one recorded speech before any of its clips renders: the clips
493
+ * the second `/v1/ugc/clips` call handed on, priced as the UGC Clips quote prices them (`tickets`,
494
+ * `hasCards`, `finishes`), with `runEstimate` (`ugcRunEstimateInput`). The route then also answers
495
+ * `runHold`, the most the video's estimate holds for the clips and the steps after them, which the run's
496
+ * balance was checked against before it started (`ugcRenderHoldVerdict`). No clips → the newer-app sentence.
497
+ */
498
+ declare function ugcRenderHoldBody(input: {
499
+ runEstimate: UgcRunEstimateInput;
500
+ tickets: unknown;
501
+ hasCards: boolean;
502
+ finishes: boolean;
503
+ }): {
504
+ path: "/v1/ugc/quote";
505
+ body: Obj;
506
+ } | {
507
+ error: string;
508
+ };
509
+ /**
510
+ * The hold check's answer → go on, or stop before any clip renders: the clips and the steps after them
511
+ * (`ceiling`, each clip at its hold) over what the run was checked for (`runHold`) → the over-hold
512
+ * sentence. An answer without both figures stops too (the newer-app sentence): a clip never renders
513
+ * on a figure nobody checked.
514
+ */
515
+ declare function ugcRenderHoldVerdict(answer: unknown): {
516
+ readonly ok: true;
517
+ } | {
518
+ readonly error: string;
519
+ };
520
+ /** What UGC Finish does with the clips it was handed. */
521
+ type UgcFinishPlan =
522
+ /** No finish call on the plan (English): the clips go on as they came, no call, no job. */
523
+ {
524
+ readonly kind: "pass";
525
+ readonly clips: readonly string[];
526
+ }
527
+ /** The finish job's body: the segments with their room, one roll per clip, in order. */
528
+ | {
529
+ readonly kind: "job";
530
+ readonly path: "/v1/ugc/finish";
531
+ readonly body: Obj;
532
+ };
533
+ /**
534
+ * UGC Finish's input → what it does. The `plan` input is UGC Clips' Script (sized) output; a plan
535
+ * carrying `finish` (the segmented lane) asks for the finish job over the clips, in order; any other
536
+ * plan passes the clips through. Clips are the fan-in list (`inputs.inputs`), in clip order.
537
+ */
538
+ declare function ugcFinishPlan(input: {
539
+ planOutWire: unknown;
540
+ clipUrls: readonly unknown[];
541
+ }): UgcFinishPlan | {
542
+ readonly error: string;
543
+ };
544
+ /** A finished clip, as UGC Finish hands it on: its URL and the notes its downstream nodes read. */
545
+ interface UgcFinishedClip {
546
+ readonly url: string;
547
+ readonly meta: FanOutItemMeta;
548
+ }
549
+ /**
550
+ * A finished `ugc-finish` job → the finished clips in clip order, each with its real length. `ready: false`
551
+ * (a clip that does not follow its speech) → the not-ready sentence: the node fails, never hands on a
552
+ * partial list. A dry finish's warning rides every clip's notes.
553
+ */
554
+ declare function ugcFinishOutputs(output: Readonly<Obj> | undefined): {
555
+ clips: UgcFinishedClip[];
556
+ } | {
557
+ error: string;
558
+ };
559
+ /**
560
+ * Whether a UGC Finish reads this UGC Clips node's Script (sized) output: the graph can finish a video
561
+ * whose clips are cut from one recorded speech. Read before the prelude spends anything.
562
+ */
563
+ declare function ugcFinishWired(edges: ReadonlyArray<{
564
+ readonly source?: string;
565
+ readonly target?: string;
566
+ readonly sourceHandle?: string | null;
567
+ readonly targetHandle?: string | null;
568
+ }>, nodes: ReadonlyArray<{
569
+ readonly id?: string;
570
+ readonly type?: string | null;
571
+ }>, clipsId: string): boolean;
572
+ /** UGC Clips' refusal before its prelude: the sentence when no UGC Finish reads its Script (sized) output, else null. */
573
+ declare function ugcLaneNeedsFinish(edges: Parameters<typeof ugcFinishWired>[0], nodes: Parameters<typeof ugcFinishWired>[1], clipsId: string): string | null;
574
+
575
+ export { UGC_CREATOR_CANDIDATES_KEY, UGC_CREATOR_MISSING_MESSAGE, UGC_CREATOR_PICKER_TYPES, UGC_FINISH_CLIPS_TYPE, UGC_FINISH_NEEDS_CLIPS_MESSAGE, UGC_FINISH_NOT_READY_MESSAGE, UGC_NEEDS_FINISH_MESSAGE, UGC_NEWER_APP_MESSAGE, UGC_NODE_MESSAGES, UGC_NODE_RUN_STATE_KEYS, UGC_NODE_TYPES, UGC_NOT_SERVED_MESSAGE, UGC_OVERRIDABLE_FIELDS, UGC_OVER_HOLD_MESSAGE, UGC_PICK_FIRST_MESSAGE, UGC_PICK_GONE_MESSAGE, UGC_PRELUDE_ROUTES, UGC_PRELUDE_STEPS, UGC_PRIMARY_HANDLE, UGC_PUBLISH_PRIVATE_FIELDS, UGC_SCREENSHOT_HANDLES, UGC_SCRIPT_DEFAULT_TARGET_SEC, UGC_SCRIPT_LANGUAGES, UGC_SCRIPT_MAX_TARGET_SEC, UGC_SCRIPT_MIN_TARGET_SEC, UGC_SCRIPT_NEEDS_CHANGES, UGC_VERSION_MESSAGE, type UgcCreatorCall, type UgcCreatorCandidate, type UgcCreatorCandidateCalls, type UgcCreatorFields, type UgcFinishPlan, type UgcFinishedClip, type UgcNodeMessageId, type UgcOutputs, type UgcPrelude, type UgcPreludeStep, type UgcRouteBody, type UgcRunEstimateInput, type UgcScriptLanguage, type UgcScriptResult, type UgcToolCall, findUgcLockedFields, readUgcWire, stripUgcRunState, ugcAwaitsPick, ugcCallToRouteBody, ugcCardsBody, ugcCardsJobs, ugcCardsOutputs, ugcClipBody, ugcClipOutputs, ugcClipSavedList, ugcClipsBody, ugcClipsOutputs, ugcClipsPhase, ugcClipsPhase2Body, ugcCreatorBody, ugcCreatorCallsToRender, ugcCreatorCandidate, ugcCreatorCandidates, ugcCreatorOutputs, ugcCreatorPick, ugcFailure, ugcFinishOutputs, ugcFinishPlan, ugcFinishWired, ugcKeptOutputs, ugcLaneNeedsFinish, ugcPickPending, ugcPipValue, ugcPlanLengthSec, ugcPlanScreenshotCount, ugcPrelude, ugcPreludeOutput, ugcRenderHoldBody, ugcRenderHoldVerdict, ugcRunEstimateInput, ugcRunWaitsForPick, ugcScriptBody, ugcScriptOutputs, ugcScriptResult };
@@ -0,0 +1,6 @@
1
+ export { UGC_FINISH_CLIPS_TYPE, UGC_PRELUDE_ROUTES, UGC_PRELUDE_STEPS, ugcCallToRouteBody, ugcClipsPhase, ugcClipsPhase2Body, ugcFinishOutputs, ugcFinishPlan, ugcFinishWired, ugcLaneNeedsFinish, ugcPrelude, ugcPreludeOutput, ugcRenderHoldBody, ugcRenderHoldVerdict, ugcRunEstimateInput } from '../chunk-LKAIXWK3.js';
2
+ export { UGC_CREATOR_CANDIDATES_KEY, UGC_CREATOR_MISSING_MESSAGE, UGC_CREATOR_PICKER_TYPES, UGC_FINISH_NEEDS_CLIPS_MESSAGE, UGC_FINISH_NOT_READY_MESSAGE, UGC_NEEDS_FINISH_MESSAGE, UGC_NEWER_APP_MESSAGE, UGC_NODE_MESSAGES, UGC_NODE_RUN_STATE_KEYS, UGC_NODE_TYPES, UGC_NOT_SERVED_MESSAGE, UGC_OVERRIDABLE_FIELDS, UGC_OVER_HOLD_MESSAGE, UGC_PICK_FIRST_MESSAGE, UGC_PICK_GONE_MESSAGE, UGC_PRIMARY_HANDLE, UGC_PUBLISH_PRIVATE_FIELDS, UGC_SCREENSHOT_HANDLES, UGC_SCRIPT_DEFAULT_TARGET_SEC, UGC_SCRIPT_LANGUAGES, UGC_SCRIPT_MAX_TARGET_SEC, UGC_SCRIPT_MIN_TARGET_SEC, UGC_SCRIPT_NEEDS_CHANGES, UGC_VERSION_MESSAGE, findUgcLockedFields, readUgcWire, stripUgcRunState, ugcAwaitsPick, ugcCardsBody, ugcCardsJobs, ugcCardsOutputs, ugcClipBody, ugcClipOutputs, ugcClipSavedList, ugcClipsBody, ugcClipsOutputs, ugcCreatorBody, ugcCreatorCallsToRender, ugcCreatorCandidate, ugcCreatorCandidates, ugcCreatorOutputs, ugcCreatorPick, ugcFailure, ugcKeptOutputs, ugcPickPending, ugcPipValue, ugcPlanLengthSec, ugcPlanScreenshotCount, ugcRunWaitsForPick, ugcScriptBody, ugcScriptOutputs, ugcScriptResult } from '../chunk-LPW3XNC2.js';
3
+ import '../chunk-VIWSWVAW.js';
4
+ import '../chunk-C57NEO3X.js';
5
+ //# sourceMappingURL=ugc.js.map
6
+ //# sourceMappingURL=ugc.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"ugc.js"}