@nodaro/sdk 2.29.0 → 2.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 (716) hide show
  1. package/README.md +31 -0
  2. package/dist/chunk-2DZWWIJ4.cjs +32 -0
  3. package/dist/chunk-2DZWWIJ4.cjs.map +1 -0
  4. package/dist/chunk-34PU2DAT.cjs +118 -0
  5. package/dist/chunk-34PU2DAT.cjs.map +1 -0
  6. package/dist/chunk-37Y5QAVA.js +3 -0
  7. package/dist/chunk-37Y5QAVA.js.map +1 -0
  8. package/dist/chunk-37YCKZX4.cjs +4 -0
  9. package/dist/chunk-37YCKZX4.cjs.map +1 -0
  10. package/dist/chunk-3B47IHB3.cjs +65 -0
  11. package/dist/chunk-3B47IHB3.cjs.map +1 -0
  12. package/dist/chunk-3BELHJBN.cjs +4 -0
  13. package/dist/chunk-3BELHJBN.cjs.map +1 -0
  14. package/dist/chunk-3PPSGM5X.js +3 -0
  15. package/dist/chunk-3PPSGM5X.js.map +1 -0
  16. package/dist/chunk-3QBH2VE2.cjs +80 -0
  17. package/dist/chunk-3QBH2VE2.cjs.map +1 -0
  18. package/dist/chunk-3QFTP5P5.js +102 -0
  19. package/dist/chunk-3QFTP5P5.js.map +1 -0
  20. package/dist/chunk-43FVH6LJ.cjs +123 -0
  21. package/dist/chunk-43FVH6LJ.cjs.map +1 -0
  22. package/dist/chunk-43NO4SGC.cjs +4 -0
  23. package/dist/chunk-43NO4SGC.cjs.map +1 -0
  24. package/dist/chunk-45CK55BH.cjs +4 -0
  25. package/dist/chunk-45CK55BH.cjs.map +1 -0
  26. package/dist/chunk-4CXB7RA6.js +104 -0
  27. package/dist/chunk-4CXB7RA6.js.map +1 -0
  28. package/dist/chunk-4NLVBYMW.js +280 -0
  29. package/dist/chunk-4NLVBYMW.js.map +1 -0
  30. package/dist/chunk-4WRDR4GN.js +102 -0
  31. package/dist/chunk-4WRDR4GN.js.map +1 -0
  32. package/dist/chunk-4WWSHV5G.cjs +4 -0
  33. package/dist/chunk-4WWSHV5G.cjs.map +1 -0
  34. package/dist/chunk-53SXNN3A.js +80 -0
  35. package/dist/chunk-53SXNN3A.js.map +1 -0
  36. package/dist/chunk-5ALNFATQ.cjs +27 -0
  37. package/dist/chunk-5ALNFATQ.cjs.map +1 -0
  38. package/dist/chunk-5UQNMNUE.cjs +4 -0
  39. package/dist/chunk-5UQNMNUE.cjs.map +1 -0
  40. package/dist/chunk-65E3JBFZ.js +52 -0
  41. package/dist/chunk-65E3JBFZ.js.map +1 -0
  42. package/dist/chunk-6ECW23GA.js +214 -0
  43. package/dist/chunk-6ECW23GA.js.map +1 -0
  44. package/dist/chunk-6JFNBAKV.js +3 -0
  45. package/dist/chunk-6JFNBAKV.js.map +1 -0
  46. package/dist/chunk-6OC6OKLY.cjs +4 -0
  47. package/dist/chunk-6OC6OKLY.cjs.map +1 -0
  48. package/dist/chunk-6OGGJQVA.js +25 -0
  49. package/dist/chunk-6OGGJQVA.js.map +1 -0
  50. package/dist/chunk-7A7HYFGM.js +3 -0
  51. package/dist/chunk-7A7HYFGM.js.map +1 -0
  52. package/dist/chunk-7CK6I4CT.cjs +16 -0
  53. package/dist/chunk-7CK6I4CT.cjs.map +1 -0
  54. package/dist/chunk-7LSFG2AF.js +194 -0
  55. package/dist/chunk-7LSFG2AF.js.map +1 -0
  56. package/dist/chunk-7MYKT2L4.cjs +4 -0
  57. package/dist/chunk-7MYKT2L4.cjs.map +1 -0
  58. package/dist/chunk-7QOCWJKD.cjs +25 -0
  59. package/dist/chunk-7QOCWJKD.cjs.map +1 -0
  60. package/dist/chunk-A2ZAFAWC.cjs +4 -0
  61. package/dist/chunk-A2ZAFAWC.cjs.map +1 -0
  62. package/dist/chunk-A3S55XGF.cjs +54 -0
  63. package/dist/chunk-A3S55XGF.cjs.map +1 -0
  64. package/dist/chunk-A3THLBFG.js +3 -0
  65. package/dist/chunk-A3THLBFG.js.map +1 -0
  66. package/dist/chunk-AJVSMNPZ.js +78 -0
  67. package/dist/chunk-AJVSMNPZ.js.map +1 -0
  68. package/dist/chunk-ALSLZG3U.js +124 -0
  69. package/dist/chunk-ALSLZG3U.js.map +1 -0
  70. package/dist/chunk-ALUUBPDG.cjs +4 -0
  71. package/dist/chunk-ALUUBPDG.cjs.map +1 -0
  72. package/dist/chunk-AO3W45LT.cjs +4 -0
  73. package/dist/chunk-AO3W45LT.cjs.map +1 -0
  74. package/dist/chunk-AUDHV3OE.js +3 -0
  75. package/dist/chunk-AUDHV3OE.js.map +1 -0
  76. package/dist/chunk-B7RG6AUQ.cjs +216 -0
  77. package/dist/chunk-B7RG6AUQ.cjs.map +1 -0
  78. package/dist/chunk-BAL576G2.cjs +4 -0
  79. package/dist/chunk-BAL576G2.cjs.map +1 -0
  80. package/dist/chunk-BKP6F2IX.js +3 -0
  81. package/dist/chunk-BKP6F2IX.js.map +1 -0
  82. package/dist/chunk-BLA44UCM.js +32 -0
  83. package/dist/chunk-BLA44UCM.js.map +1 -0
  84. package/dist/chunk-BPWUWUZ3.cjs +20 -0
  85. package/dist/chunk-BPWUWUZ3.cjs.map +1 -0
  86. package/dist/chunk-BRV7Z4GD.cjs +17 -0
  87. package/dist/chunk-BRV7Z4GD.cjs.map +1 -0
  88. package/dist/chunk-BU5A6K4C.js +122 -0
  89. package/dist/chunk-BU5A6K4C.js.map +1 -0
  90. package/dist/chunk-C22RJDW3.js +3 -0
  91. package/dist/chunk-C22RJDW3.js.map +1 -0
  92. package/dist/chunk-CGNVHN4V.js +3 -0
  93. package/dist/chunk-CGNVHN4V.js.map +1 -0
  94. package/dist/chunk-CJFIOVBA.js +3 -0
  95. package/dist/chunk-CJFIOVBA.js.map +1 -0
  96. package/dist/chunk-CJLLIVSB.cjs +4 -0
  97. package/dist/chunk-CJLLIVSB.cjs.map +1 -0
  98. package/dist/chunk-CK3AMMSC.js +194 -0
  99. package/dist/chunk-CK3AMMSC.js.map +1 -0
  100. package/dist/chunk-COCKKMNP.cjs +205 -0
  101. package/dist/chunk-COCKKMNP.cjs.map +1 -0
  102. package/dist/chunk-CR5E2SF3.cjs +212 -0
  103. package/dist/chunk-CR5E2SF3.cjs.map +1 -0
  104. package/dist/chunk-CRCPRZFN.js +3 -0
  105. package/dist/chunk-CRCPRZFN.js.map +1 -0
  106. package/dist/chunk-CYRFD6KR.cjs +4 -0
  107. package/dist/chunk-CYRFD6KR.cjs.map +1 -0
  108. package/dist/chunk-D3PW7AHZ.js +3 -0
  109. package/dist/chunk-D3PW7AHZ.js.map +1 -0
  110. package/dist/chunk-DKEYSJCE.cjs +82 -0
  111. package/dist/chunk-DKEYSJCE.cjs.map +1 -0
  112. package/dist/chunk-DPSMVOM3.js +15 -0
  113. package/dist/chunk-DPSMVOM3.js.map +1 -0
  114. package/dist/chunk-E2ZXHS6E.js +20 -0
  115. package/dist/chunk-E2ZXHS6E.js.map +1 -0
  116. package/dist/chunk-E37CVHWW.js +33 -0
  117. package/dist/chunk-E37CVHWW.js.map +1 -0
  118. package/dist/chunk-E5BM4BLO.js +78 -0
  119. package/dist/chunk-E5BM4BLO.js.map +1 -0
  120. package/dist/chunk-EHRWTYGR.cjs +4 -0
  121. package/dist/chunk-EHRWTYGR.cjs.map +1 -0
  122. package/dist/chunk-EJSGJDZY.js +212 -0
  123. package/dist/chunk-EJSGJDZY.js.map +1 -0
  124. package/dist/chunk-ELSOVJPF.js +3 -0
  125. package/dist/chunk-ELSOVJPF.js.map +1 -0
  126. package/dist/chunk-ERLXU47J.js +29 -0
  127. package/dist/chunk-ERLXU47J.js.map +1 -0
  128. package/dist/chunk-ES2E65HT.js +3 -0
  129. package/dist/chunk-ES2E65HT.js.map +1 -0
  130. package/dist/chunk-EXLAHZKF.js +3 -0
  131. package/dist/chunk-EXLAHZKF.js.map +1 -0
  132. package/dist/chunk-FB3S2FON.cjs +233 -0
  133. package/dist/chunk-FB3S2FON.cjs.map +1 -0
  134. package/dist/chunk-FHEYAW5H.js +3 -0
  135. package/dist/chunk-FHEYAW5H.js.map +1 -0
  136. package/dist/chunk-GA4LZZKQ.cjs +104 -0
  137. package/dist/chunk-GA4LZZKQ.cjs.map +1 -0
  138. package/dist/chunk-GAZJ2PA3.js +3 -0
  139. package/dist/chunk-GAZJ2PA3.js.map +1 -0
  140. package/dist/chunk-GB6C5OEZ.cjs +32 -0
  141. package/dist/chunk-GB6C5OEZ.cjs.map +1 -0
  142. package/dist/chunk-GB724HW2.cjs +106 -0
  143. package/dist/chunk-GB724HW2.cjs.map +1 -0
  144. package/dist/chunk-GD24ZRFD.js +3 -0
  145. package/dist/chunk-GD24ZRFD.js.map +1 -0
  146. package/dist/chunk-GI7LROLL.cjs +4 -0
  147. package/dist/chunk-GI7LROLL.cjs.map +1 -0
  148. package/dist/chunk-GRFLPEM2.cjs +16 -0
  149. package/dist/chunk-GRFLPEM2.cjs.map +1 -0
  150. package/dist/chunk-GVIFLUYZ.cjs +40 -0
  151. package/dist/chunk-GVIFLUYZ.cjs.map +1 -0
  152. package/dist/chunk-GWCOKNST.js +228 -0
  153. package/dist/chunk-GWCOKNST.js.map +1 -0
  154. package/dist/chunk-H7VQTG4M.js +35 -0
  155. package/dist/chunk-H7VQTG4M.js.map +1 -0
  156. package/dist/chunk-HAKYPZLB.cjs +242 -0
  157. package/dist/chunk-HAKYPZLB.cjs.map +1 -0
  158. package/dist/chunk-HFBR6G36.js +3 -0
  159. package/dist/chunk-HFBR6G36.js.map +1 -0
  160. package/dist/chunk-HGCVWOGK.cjs +209 -0
  161. package/dist/chunk-HGCVWOGK.cjs.map +1 -0
  162. package/dist/chunk-HLHR3R4P.js +3 -0
  163. package/dist/chunk-HLHR3R4P.js.map +1 -0
  164. package/dist/chunk-HRXXGGSJ.js +3 -0
  165. package/dist/chunk-HRXXGGSJ.js.map +1 -0
  166. package/dist/chunk-I3TYBAOX.js +3 -0
  167. package/dist/chunk-I3TYBAOX.js.map +1 -0
  168. package/dist/chunk-I4A5VJRL.js +352 -0
  169. package/dist/chunk-I4A5VJRL.js.map +1 -0
  170. package/dist/chunk-I6CXC345.js +102 -0
  171. package/dist/chunk-I6CXC345.js.map +1 -0
  172. package/dist/chunk-IGOPUMEX.cjs +4 -0
  173. package/dist/chunk-IGOPUMEX.cjs.map +1 -0
  174. package/dist/chunk-IHKIYVZQ.js +30 -0
  175. package/dist/chunk-IHKIYVZQ.js.map +1 -0
  176. package/dist/chunk-IMC2M5YM.cjs +12 -0
  177. package/dist/chunk-IMC2M5YM.cjs.map +1 -0
  178. package/dist/chunk-IQ6KWSXP.js +3 -0
  179. package/dist/chunk-IQ6KWSXP.js.map +1 -0
  180. package/dist/chunk-IS26FJO7.cjs +4 -0
  181. package/dist/chunk-IS26FJO7.cjs.map +1 -0
  182. package/dist/chunk-J4WFSKY6.js +50 -0
  183. package/dist/chunk-J4WFSKY6.js.map +1 -0
  184. package/dist/chunk-J5LGGCAS.cjs +126 -0
  185. package/dist/chunk-J5LGGCAS.cjs.map +1 -0
  186. package/dist/chunk-JDEZHITT.js +43 -0
  187. package/dist/chunk-JDEZHITT.js.map +1 -0
  188. package/dist/chunk-JGS6YBDW.js +260 -0
  189. package/dist/chunk-JGS6YBDW.js.map +1 -0
  190. package/dist/chunk-JMOKD6ZP.js +46 -0
  191. package/dist/chunk-JMOKD6ZP.js.map +1 -0
  192. package/dist/chunk-JOX5BJ6K.cjs +4 -0
  193. package/dist/chunk-JOX5BJ6K.cjs.map +1 -0
  194. package/dist/chunk-JTAW54UM.js +116 -0
  195. package/dist/chunk-JTAW54UM.js.map +1 -0
  196. package/dist/chunk-K4RQOSJH.js +203 -0
  197. package/dist/chunk-K4RQOSJH.js.map +1 -0
  198. package/dist/chunk-KAIE6WJB.cjs +4 -0
  199. package/dist/chunk-KAIE6WJB.cjs.map +1 -0
  200. package/dist/chunk-KEDPGWIK.cjs +4 -0
  201. package/dist/chunk-KEDPGWIK.cjs.map +1 -0
  202. package/dist/chunk-KG4R454Z.js +18 -0
  203. package/dist/chunk-KG4R454Z.js.map +1 -0
  204. package/dist/chunk-KGKCAGRD.cjs +22 -0
  205. package/dist/chunk-KGKCAGRD.cjs.map +1 -0
  206. package/dist/chunk-KNMW722T.cjs +48 -0
  207. package/dist/chunk-KNMW722T.cjs.map +1 -0
  208. package/dist/chunk-KTTL7BND.cjs +4 -0
  209. package/dist/chunk-KTTL7BND.cjs.map +1 -0
  210. package/dist/chunk-KXEWTYS4.cjs +80 -0
  211. package/dist/chunk-KXEWTYS4.cjs.map +1 -0
  212. package/dist/chunk-KZQKFBRN.js +3 -0
  213. package/dist/chunk-KZQKFBRN.js.map +1 -0
  214. package/dist/chunk-LAWYFC4G.cjs +37 -0
  215. package/dist/chunk-LAWYFC4G.cjs.map +1 -0
  216. package/dist/chunk-LHRQXWI5.js +3 -0
  217. package/dist/chunk-LHRQXWI5.js.map +1 -0
  218. package/dist/chunk-LKH5M44B.cjs +114 -0
  219. package/dist/chunk-LKH5M44B.cjs.map +1 -0
  220. package/dist/chunk-LLNNHLCE.cjs +4 -0
  221. package/dist/chunk-LLNNHLCE.cjs.map +1 -0
  222. package/dist/chunk-LWZLWSXD.cjs +4 -0
  223. package/dist/chunk-LWZLWSXD.cjs.map +1 -0
  224. package/dist/chunk-M6Y5TOYE.js +3 -0
  225. package/dist/chunk-M6Y5TOYE.js.map +1 -0
  226. package/dist/chunk-MBFUMWI5.cjs +31 -0
  227. package/dist/chunk-MBFUMWI5.cjs.map +1 -0
  228. package/dist/chunk-MEKI37WI.js +3 -0
  229. package/dist/chunk-MEKI37WI.js.map +1 -0
  230. package/dist/chunk-MQ74AKA2.cjs +200 -0
  231. package/dist/chunk-MQ74AKA2.cjs.map +1 -0
  232. package/dist/chunk-N6GLZOE4.cjs +282 -0
  233. package/dist/chunk-N6GLZOE4.cjs.map +1 -0
  234. package/dist/chunk-NBVARNVA.cjs +38 -0
  235. package/dist/chunk-NBVARNVA.cjs.map +1 -0
  236. package/dist/chunk-NCCBS6GU.js +42 -0
  237. package/dist/chunk-NCCBS6GU.js.map +1 -0
  238. package/dist/chunk-NGKODS3J.cjs +52 -0
  239. package/dist/chunk-NGKODS3J.cjs.map +1 -0
  240. package/dist/chunk-NJVSKUL2.cjs +4 -0
  241. package/dist/chunk-NJVSKUL2.cjs.map +1 -0
  242. package/dist/chunk-NLQQHJ25.cjs +104 -0
  243. package/dist/chunk-NLQQHJ25.cjs.map +1 -0
  244. package/dist/chunk-NNHWH7ER.js +181 -0
  245. package/dist/chunk-NNHWH7ER.js.map +1 -0
  246. package/dist/chunk-NX67YIF3.js +3 -0
  247. package/dist/chunk-NX67YIF3.js.map +1 -0
  248. package/dist/chunk-OA6FWYZF.cjs +4 -0
  249. package/dist/chunk-OA6FWYZF.cjs.map +1 -0
  250. package/dist/chunk-OJDBSKC2.js +3 -0
  251. package/dist/chunk-OJDBSKC2.js.map +1 -0
  252. package/dist/chunk-OLPA44QJ.js +3 -0
  253. package/dist/chunk-OLPA44QJ.js.map +1 -0
  254. package/dist/chunk-OMH7ATOQ.js +3 -0
  255. package/dist/chunk-OMH7ATOQ.js.map +1 -0
  256. package/dist/chunk-OPR4TULG.js +3 -0
  257. package/dist/chunk-OPR4TULG.js.map +1 -0
  258. package/dist/chunk-OSX2GVZ2.cjs +34 -0
  259. package/dist/chunk-OSX2GVZ2.cjs.map +1 -0
  260. package/dist/chunk-OXQKE5EG.cjs +282 -0
  261. package/dist/chunk-OXQKE5EG.cjs.map +1 -0
  262. package/dist/chunk-P6E4QDJN.js +30 -0
  263. package/dist/chunk-P6E4QDJN.js.map +1 -0
  264. package/dist/chunk-PEMLIAPZ.cjs +64 -0
  265. package/dist/chunk-PEMLIAPZ.cjs.map +1 -0
  266. package/dist/chunk-PGYQ754I.js +3 -0
  267. package/dist/chunk-PGYQ754I.js.map +1 -0
  268. package/dist/chunk-PHEA6FVQ.js +184 -0
  269. package/dist/chunk-PHEA6FVQ.js.map +1 -0
  270. package/dist/chunk-PMTM26LL.js +3 -0
  271. package/dist/chunk-PMTM26LL.js.map +1 -0
  272. package/dist/chunk-PY4OEKNX.cjs +4 -0
  273. package/dist/chunk-PY4OEKNX.cjs.map +1 -0
  274. package/dist/chunk-PZS2EXDR.cjs +4 -0
  275. package/dist/chunk-PZS2EXDR.cjs.map +1 -0
  276. package/dist/chunk-QRHJEITQ.cjs +4 -0
  277. package/dist/chunk-QRHJEITQ.cjs.map +1 -0
  278. package/dist/chunk-QUFU5RJ7.cjs +4 -0
  279. package/dist/chunk-QUFU5RJ7.cjs.map +1 -0
  280. package/dist/chunk-QVQCKOBM.js +3 -0
  281. package/dist/chunk-QVQCKOBM.js.map +1 -0
  282. package/dist/chunk-R63TTR35.cjs +200 -0
  283. package/dist/chunk-R63TTR35.cjs.map +1 -0
  284. package/dist/chunk-RA42NMWV.cjs +4 -0
  285. package/dist/chunk-RA42NMWV.cjs.map +1 -0
  286. package/dist/chunk-RAZN6C5R.cjs +12 -0
  287. package/dist/chunk-RAZN6C5R.cjs.map +1 -0
  288. package/dist/chunk-RHETJOUM.cjs +4 -0
  289. package/dist/chunk-RHETJOUM.cjs.map +1 -0
  290. package/dist/chunk-RJIJVVXS.js +3 -0
  291. package/dist/chunk-RJIJVVXS.js.map +1 -0
  292. package/dist/chunk-RKVRCNMB.js +3 -0
  293. package/dist/chunk-RKVRCNMB.js.map +1 -0
  294. package/dist/chunk-S7JQKNVT.cjs +187 -0
  295. package/dist/chunk-S7JQKNVT.cjs.map +1 -0
  296. package/dist/chunk-SBV5MWEL.cjs +53 -0
  297. package/dist/chunk-SBV5MWEL.cjs.map +1 -0
  298. package/dist/chunk-SFB4YLCS.js +121 -0
  299. package/dist/chunk-SFB4YLCS.js.map +1 -0
  300. package/dist/chunk-SLPD47SR.js +3 -0
  301. package/dist/chunk-SLPD47SR.js.map +1 -0
  302. package/dist/chunk-SS3B6PHT.cjs +35 -0
  303. package/dist/chunk-SS3B6PHT.cjs.map +1 -0
  304. package/dist/chunk-SUCHGNYT.js +3 -0
  305. package/dist/chunk-SUCHGNYT.js.map +1 -0
  306. package/dist/chunk-SYVNY3AH.cjs +44 -0
  307. package/dist/chunk-SYVNY3AH.cjs.map +1 -0
  308. package/dist/chunk-T3SYREY4.js +29 -0
  309. package/dist/chunk-T3SYREY4.js.map +1 -0
  310. package/dist/chunk-T7N7DFQJ.js +198 -0
  311. package/dist/chunk-T7N7DFQJ.js.map +1 -0
  312. package/dist/chunk-TRCENAIY.cjs +4 -0
  313. package/dist/chunk-TRCENAIY.cjs.map +1 -0
  314. package/dist/chunk-TVENC6PH.js +186 -0
  315. package/dist/chunk-TVENC6PH.js.map +1 -0
  316. package/dist/chunk-U4T3Z3K7.cjs +325 -0
  317. package/dist/chunk-U4T3Z3K7.cjs.map +1 -0
  318. package/dist/chunk-UIFFNTUX.js +3 -0
  319. package/dist/chunk-UIFFNTUX.js.map +1 -0
  320. package/dist/chunk-V4GPQ6Y2.js +3 -0
  321. package/dist/chunk-V4GPQ6Y2.js.map +1 -0
  322. package/dist/chunk-VGTRKXF2.js +93 -0
  323. package/dist/chunk-VGTRKXF2.js.map +1 -0
  324. package/dist/chunk-VGWOIWRQ.cjs +202 -0
  325. package/dist/chunk-VGWOIWRQ.cjs.map +1 -0
  326. package/dist/chunk-VLCNNA76.cjs +4 -0
  327. package/dist/chunk-VLCNNA76.cjs.map +1 -0
  328. package/dist/chunk-VPAUN75Q.js +3 -0
  329. package/dist/chunk-VPAUN75Q.js.map +1 -0
  330. package/dist/chunk-VT237QF2.js +3 -0
  331. package/dist/chunk-VT237QF2.js.map +1 -0
  332. package/dist/chunk-VV4TZG5S.js +321 -0
  333. package/dist/chunk-VV4TZG5S.js.map +1 -0
  334. package/dist/chunk-VYK6MBL4.cjs +4 -0
  335. package/dist/chunk-VYK6MBL4.cjs.map +1 -0
  336. package/dist/chunk-W33CKW6Q.cjs +4 -0
  337. package/dist/chunk-W33CKW6Q.cjs.map +1 -0
  338. package/dist/chunk-W5VHATSR.cjs +31 -0
  339. package/dist/chunk-W5VHATSR.cjs.map +1 -0
  340. package/dist/chunk-WEQWU2IC.js +34 -0
  341. package/dist/chunk-WEQWU2IC.js.map +1 -0
  342. package/dist/chunk-WK4VXPPZ.cjs +104 -0
  343. package/dist/chunk-WK4VXPPZ.cjs.map +1 -0
  344. package/dist/chunk-WSA4LMWR.cjs +96 -0
  345. package/dist/chunk-WSA4LMWR.cjs.map +1 -0
  346. package/dist/chunk-WUIEZ6Z4.cjs +360 -0
  347. package/dist/chunk-WUIEZ6Z4.cjs.map +1 -0
  348. package/dist/chunk-WUKIJJG2.cjs +45 -0
  349. package/dist/chunk-WUKIJJG2.cjs.map +1 -0
  350. package/dist/chunk-WVFAQBS7.js +29 -0
  351. package/dist/chunk-WVFAQBS7.js.map +1 -0
  352. package/dist/chunk-X7RDNMN7.js +3 -0
  353. package/dist/chunk-X7RDNMN7.js.map +1 -0
  354. package/dist/chunk-X7XP5WBP.cjs +4 -0
  355. package/dist/chunk-X7XP5WBP.cjs.map +1 -0
  356. package/dist/chunk-XWKNE6DH.cjs +4 -0
  357. package/dist/chunk-XWKNE6DH.cjs.map +1 -0
  358. package/dist/chunk-Y6V6CBY5.js +23 -0
  359. package/dist/chunk-Y6V6CBY5.js.map +1 -0
  360. package/dist/chunk-Y6VDCZPB.js +62 -0
  361. package/dist/chunk-Y6VDCZPB.js.map +1 -0
  362. package/dist/chunk-YDRXBRW2.cjs +184 -0
  363. package/dist/chunk-YDRXBRW2.cjs.map +1 -0
  364. package/dist/chunk-YFS2LMG4.cjs +124 -0
  365. package/dist/chunk-YFS2LMG4.cjs.map +1 -0
  366. package/dist/chunk-YN6CBIIB.js +63 -0
  367. package/dist/chunk-YN6CBIIB.js.map +1 -0
  368. package/dist/chunk-YOJ2XNQX.cjs +4 -0
  369. package/dist/chunk-YOJ2XNQX.cjs.map +1 -0
  370. package/dist/chunk-YOOZB4RL.js +3 -0
  371. package/dist/chunk-YOOZB4RL.js.map +1 -0
  372. package/dist/chunk-YVU2M7MI.js +34 -0
  373. package/dist/chunk-YVU2M7MI.js.map +1 -0
  374. package/dist/chunk-YXBZRB5H.cjs +4 -0
  375. package/dist/chunk-YXBZRB5H.cjs.map +1 -0
  376. package/dist/chunk-Z3ZKFI2M.js +43 -0
  377. package/dist/chunk-Z3ZKFI2M.js.map +1 -0
  378. package/dist/chunk-Z5GLY4R3.js +112 -0
  379. package/dist/chunk-Z5GLY4R3.js.map +1 -0
  380. package/dist/chunk-Z5OMWAQX.js +3 -0
  381. package/dist/chunk-Z5OMWAQX.js.map +1 -0
  382. package/dist/chunk-Z7LGWNI7.js +38 -0
  383. package/dist/chunk-Z7LGWNI7.js.map +1 -0
  384. package/dist/chunk-ZCWKX4V6.cjs +38 -0
  385. package/dist/chunk-ZCWKX4V6.cjs.map +1 -0
  386. package/dist/chunk-ZE5RISBZ.cjs +4 -0
  387. package/dist/chunk-ZE5RISBZ.cjs.map +1 -0
  388. package/dist/chunk-ZH4F2P2G.js +3 -0
  389. package/dist/chunk-ZH4F2P2G.js.map +1 -0
  390. package/dist/chunk-ZJGFLJ2Z.cjs +4 -0
  391. package/dist/chunk-ZJGFLJ2Z.cjs.map +1 -0
  392. package/dist/chunk-ZKBHD27K.cjs +4 -0
  393. package/dist/chunk-ZKBHD27K.cjs.map +1 -0
  394. package/dist/chunk-ZQPLRNKX.cjs +4 -0
  395. package/dist/chunk-ZQPLRNKX.cjs.map +1 -0
  396. package/dist/chunk-ZQQABQMH.cjs +31 -0
  397. package/dist/chunk-ZQQABQMH.cjs.map +1 -0
  398. package/dist/chunk-ZXJQSFIA.js +200 -0
  399. package/dist/chunk-ZXJQSFIA.js.map +1 -0
  400. package/dist/chunk-ZYPH2FPT.js +3 -0
  401. package/dist/chunk-ZYPH2FPT.js.map +1 -0
  402. package/dist/developer-apps-zSQXWmEG.d.cts +294 -0
  403. package/dist/developer-apps-zSQXWmEG.d.ts +294 -0
  404. package/dist/entries/apps.cjs +13 -0
  405. package/dist/entries/apps.cjs.map +1 -0
  406. package/dist/entries/apps.d.cts +300 -0
  407. package/dist/entries/apps.d.ts +300 -0
  408. package/dist/entries/apps.js +4 -0
  409. package/dist/entries/apps.js.map +1 -0
  410. package/dist/entries/audio.cjs +13 -0
  411. package/dist/entries/audio.cjs.map +1 -0
  412. package/dist/entries/audio.d.cts +200 -0
  413. package/dist/entries/audio.d.ts +200 -0
  414. package/dist/entries/audio.js +4 -0
  415. package/dist/entries/audio.js.map +1 -0
  416. package/dist/entries/billing.cjs +13 -0
  417. package/dist/entries/billing.cjs.map +1 -0
  418. package/dist/entries/billing.d.cts +208 -0
  419. package/dist/entries/billing.d.ts +208 -0
  420. package/dist/entries/billing.js +4 -0
  421. package/dist/entries/billing.js.map +1 -0
  422. package/dist/entries/catalogs.cjs +13 -0
  423. package/dist/entries/catalogs.cjs.map +1 -0
  424. package/dist/entries/catalogs.d.cts +82 -0
  425. package/dist/entries/catalogs.d.ts +82 -0
  426. package/dist/entries/catalogs.js +4 -0
  427. package/dist/entries/catalogs.js.map +1 -0
  428. package/dist/entries/characters.cjs +45 -0
  429. package/dist/entries/characters.cjs.map +1 -0
  430. package/dist/entries/characters.d.cts +741 -0
  431. package/dist/entries/characters.d.ts +741 -0
  432. package/dist/entries/characters.js +4 -0
  433. package/dist/entries/characters.js.map +1 -0
  434. package/dist/entries/client.cjs +78 -0
  435. package/dist/entries/client.cjs.map +1 -0
  436. package/dist/entries/client.d.cts +147 -0
  437. package/dist/entries/client.d.ts +147 -0
  438. package/dist/entries/client.js +53 -0
  439. package/dist/entries/client.js.map +1 -0
  440. package/dist/entries/collections.cjs +13 -0
  441. package/dist/entries/collections.cjs.map +1 -0
  442. package/dist/entries/collections.d.cts +77 -0
  443. package/dist/entries/collections.d.ts +77 -0
  444. package/dist/entries/collections.js +4 -0
  445. package/dist/entries/collections.js.map +1 -0
  446. package/dist/entries/community.cjs +13 -0
  447. package/dist/entries/community.cjs.map +1 -0
  448. package/dist/entries/community.d.cts +87 -0
  449. package/dist/entries/community.d.ts +87 -0
  450. package/dist/entries/community.js +4 -0
  451. package/dist/entries/community.js.map +1 -0
  452. package/dist/entries/competitors.cjs +13 -0
  453. package/dist/entries/competitors.cjs.map +1 -0
  454. package/dist/entries/competitors.d.cts +96 -0
  455. package/dist/entries/competitors.d.ts +96 -0
  456. package/dist/entries/competitors.js +4 -0
  457. package/dist/entries/competitors.js.map +1 -0
  458. package/dist/entries/copilot.cjs +15 -0
  459. package/dist/entries/copilot.cjs.map +1 -0
  460. package/dist/entries/copilot.d.cts +296 -0
  461. package/dist/entries/copilot.d.ts +296 -0
  462. package/dist/entries/copilot.js +6 -0
  463. package/dist/entries/copilot.js.map +1 -0
  464. package/dist/entries/core.cjs +26 -0
  465. package/dist/entries/core.cjs.map +1 -0
  466. package/dist/entries/core.d.cts +3 -0
  467. package/dist/entries/core.d.ts +3 -0
  468. package/dist/entries/core.js +5 -0
  469. package/dist/entries/core.js.map +1 -0
  470. package/dist/entries/creatures.cjs +29 -0
  471. package/dist/entries/creatures.cjs.map +1 -0
  472. package/dist/entries/creatures.d.cts +594 -0
  473. package/dist/entries/creatures.d.ts +594 -0
  474. package/dist/entries/creatures.js +4 -0
  475. package/dist/entries/creatures.js.map +1 -0
  476. package/dist/entries/credits.cjs +13 -0
  477. package/dist/entries/credits.cjs.map +1 -0
  478. package/dist/entries/credits.d.cts +237 -0
  479. package/dist/entries/credits.d.ts +237 -0
  480. package/dist/entries/credits.js +4 -0
  481. package/dist/entries/credits.js.map +1 -0
  482. package/dist/entries/developer-apps.cjs +13 -0
  483. package/dist/entries/developer-apps.cjs.map +1 -0
  484. package/dist/entries/developer-apps.d.cts +3 -0
  485. package/dist/entries/developer-apps.d.ts +3 -0
  486. package/dist/entries/developer-apps.js +4 -0
  487. package/dist/entries/developer-apps.js.map +1 -0
  488. package/dist/entries/edit.cjs +34 -0
  489. package/dist/entries/edit.cjs.map +1 -0
  490. package/dist/entries/edit.d.cts +705 -0
  491. package/dist/entries/edit.d.ts +705 -0
  492. package/dist/entries/edit.js +5 -0
  493. package/dist/entries/edit.js.map +1 -0
  494. package/dist/entries/errors.cjs +93 -0
  495. package/dist/entries/errors.cjs.map +1 -0
  496. package/dist/entries/errors.d.cts +338 -0
  497. package/dist/entries/errors.d.ts +338 -0
  498. package/dist/entries/errors.js +4 -0
  499. package/dist/entries/errors.js.map +1 -0
  500. package/dist/entries/executions.cjs +21 -0
  501. package/dist/entries/executions.cjs.map +1 -0
  502. package/dist/entries/executions.d.cts +120 -0
  503. package/dist/entries/executions.d.ts +120 -0
  504. package/dist/entries/executions.js +4 -0
  505. package/dist/entries/executions.js.map +1 -0
  506. package/dist/entries/gallery.cjs +13 -0
  507. package/dist/entries/gallery.cjs.map +1 -0
  508. package/dist/entries/gallery.d.cts +85 -0
  509. package/dist/entries/gallery.d.ts +85 -0
  510. package/dist/entries/gallery.js +4 -0
  511. package/dist/entries/gallery.js.map +1 -0
  512. package/dist/entries/jobs.cjs +13 -0
  513. package/dist/entries/jobs.cjs.map +1 -0
  514. package/dist/entries/jobs.d.cts +252 -0
  515. package/dist/entries/jobs.d.ts +252 -0
  516. package/dist/entries/jobs.js +4 -0
  517. package/dist/entries/jobs.js.map +1 -0
  518. package/dist/entries/library.cjs +13 -0
  519. package/dist/entries/library.cjs.map +1 -0
  520. package/dist/entries/library.d.cts +109 -0
  521. package/dist/entries/library.d.ts +109 -0
  522. package/dist/entries/library.js +4 -0
  523. package/dist/entries/library.js.map +1 -0
  524. package/dist/entries/llm.cjs +13 -0
  525. package/dist/entries/llm.cjs.map +1 -0
  526. package/dist/entries/llm.d.cts +98 -0
  527. package/dist/entries/llm.d.ts +98 -0
  528. package/dist/entries/llm.js +4 -0
  529. package/dist/entries/llm.js.map +1 -0
  530. package/dist/entries/locations.cjs +25 -0
  531. package/dist/entries/locations.cjs.map +1 -0
  532. package/dist/entries/locations.d.cts +573 -0
  533. package/dist/entries/locations.d.ts +573 -0
  534. package/dist/entries/locations.js +4 -0
  535. package/dist/entries/locations.js.map +1 -0
  536. package/dist/entries/media.cjs +15 -0
  537. package/dist/entries/media.cjs.map +1 -0
  538. package/dist/entries/media.d.cts +548 -0
  539. package/dist/entries/media.d.ts +548 -0
  540. package/dist/entries/media.js +6 -0
  541. package/dist/entries/media.js.map +1 -0
  542. package/dist/entries/models.cjs +13 -0
  543. package/dist/entries/models.cjs.map +1 -0
  544. package/dist/entries/models.d.cts +92 -0
  545. package/dist/entries/models.d.ts +92 -0
  546. package/dist/entries/models.js +4 -0
  547. package/dist/entries/models.js.map +1 -0
  548. package/dist/entries/moodboards.cjs +21 -0
  549. package/dist/entries/moodboards.cjs.map +1 -0
  550. package/dist/entries/moodboards.d.cts +77 -0
  551. package/dist/entries/moodboards.d.ts +77 -0
  552. package/dist/entries/moodboards.js +4 -0
  553. package/dist/entries/moodboards.js.map +1 -0
  554. package/dist/entries/node-presets.cjs +13 -0
  555. package/dist/entries/node-presets.cjs.map +1 -0
  556. package/dist/entries/node-presets.d.cts +217 -0
  557. package/dist/entries/node-presets.d.ts +217 -0
  558. package/dist/entries/node-presets.js +4 -0
  559. package/dist/entries/node-presets.js.map +1 -0
  560. package/dist/entries/nodes.cjs +22 -0
  561. package/dist/entries/nodes.cjs.map +1 -0
  562. package/dist/entries/nodes.d.cts +18 -0
  563. package/dist/entries/nodes.d.ts +18 -0
  564. package/dist/entries/nodes.js +5 -0
  565. package/dist/entries/nodes.js.map +1 -0
  566. package/dist/entries/oauth.cjs +13 -0
  567. package/dist/entries/oauth.cjs.map +1 -0
  568. package/dist/entries/oauth.d.cts +69 -0
  569. package/dist/entries/oauth.d.ts +69 -0
  570. package/dist/entries/oauth.js +4 -0
  571. package/dist/entries/oauth.js.map +1 -0
  572. package/dist/entries/objects.cjs +29 -0
  573. package/dist/entries/objects.cjs.map +1 -0
  574. package/dist/entries/objects.d.cts +544 -0
  575. package/dist/entries/objects.d.ts +544 -0
  576. package/dist/entries/objects.js +4 -0
  577. package/dist/entries/objects.js.map +1 -0
  578. package/dist/entries/organizations.cjs +21 -0
  579. package/dist/entries/organizations.cjs.map +1 -0
  580. package/dist/entries/organizations.d.cts +164 -0
  581. package/dist/entries/organizations.d.ts +164 -0
  582. package/dist/entries/organizations.js +4 -0
  583. package/dist/entries/organizations.js.map +1 -0
  584. package/dist/entries/palettes.cjs +21 -0
  585. package/dist/entries/palettes.cjs.map +1 -0
  586. package/dist/entries/palettes.d.cts +69 -0
  587. package/dist/entries/palettes.d.ts +69 -0
  588. package/dist/entries/palettes.js +4 -0
  589. package/dist/entries/palettes.js.map +1 -0
  590. package/dist/entries/picker-catalogs.cjs +13 -0
  591. package/dist/entries/picker-catalogs.cjs.map +1 -0
  592. package/dist/entries/picker-catalogs.d.cts +148 -0
  593. package/dist/entries/picker-catalogs.d.ts +148 -0
  594. package/dist/entries/picker-catalogs.js +4 -0
  595. package/dist/entries/picker-catalogs.js.map +1 -0
  596. package/dist/entries/pipelines.cjs +13 -0
  597. package/dist/entries/pipelines.cjs.map +1 -0
  598. package/dist/entries/pipelines.d.cts +255 -0
  599. package/dist/entries/pipelines.d.ts +255 -0
  600. package/dist/entries/pipelines.js +4 -0
  601. package/dist/entries/pipelines.js.map +1 -0
  602. package/dist/entries/projects.cjs +13 -0
  603. package/dist/entries/projects.cjs.map +1 -0
  604. package/dist/entries/projects.d.cts +49 -0
  605. package/dist/entries/projects.d.ts +49 -0
  606. package/dist/entries/projects.js +4 -0
  607. package/dist/entries/projects.js.map +1 -0
  608. package/dist/entries/prompt-helper.cjs +13 -0
  609. package/dist/entries/prompt-helper.cjs.map +1 -0
  610. package/dist/entries/prompt-helper.d.cts +73 -0
  611. package/dist/entries/prompt-helper.d.ts +73 -0
  612. package/dist/entries/prompt-helper.js +4 -0
  613. package/dist/entries/prompt-helper.js.map +1 -0
  614. package/dist/entries/recast.cjs +17 -0
  615. package/dist/entries/recast.cjs.map +1 -0
  616. package/dist/entries/recast.d.cts +229 -0
  617. package/dist/entries/recast.d.ts +229 -0
  618. package/dist/entries/recast.js +4 -0
  619. package/dist/entries/recast.js.map +1 -0
  620. package/dist/entries/reduce.cjs +13 -0
  621. package/dist/entries/reduce.cjs.map +1 -0
  622. package/dist/entries/reduce.d.cts +56 -0
  623. package/dist/entries/reduce.d.ts +56 -0
  624. package/dist/entries/reduce.js +4 -0
  625. package/dist/entries/reduce.js.map +1 -0
  626. package/dist/entries/saved-posts.cjs +13 -0
  627. package/dist/entries/saved-posts.cjs.map +1 -0
  628. package/dist/entries/saved-posts.d.cts +33 -0
  629. package/dist/entries/saved-posts.d.ts +33 -0
  630. package/dist/entries/saved-posts.js +4 -0
  631. package/dist/entries/saved-posts.js.map +1 -0
  632. package/dist/entries/scene3d.cjs +17 -0
  633. package/dist/entries/scene3d.cjs.map +1 -0
  634. package/dist/entries/scene3d.d.cts +131 -0
  635. package/dist/entries/scene3d.d.ts +131 -0
  636. package/dist/entries/scene3d.js +4 -0
  637. package/dist/entries/scene3d.js.map +1 -0
  638. package/dist/entries/sessions.cjs +13 -0
  639. package/dist/entries/sessions.cjs.map +1 -0
  640. package/dist/entries/sessions.d.cts +122 -0
  641. package/dist/entries/sessions.d.ts +122 -0
  642. package/dist/entries/sessions.js +4 -0
  643. package/dist/entries/sessions.js.map +1 -0
  644. package/dist/entries/shots.cjs +13 -0
  645. package/dist/entries/shots.cjs.map +1 -0
  646. package/dist/entries/shots.d.cts +78 -0
  647. package/dist/entries/shots.d.ts +78 -0
  648. package/dist/entries/shots.js +4 -0
  649. package/dist/entries/shots.js.map +1 -0
  650. package/dist/entries/studio.cjs +22 -0
  651. package/dist/entries/studio.cjs.map +1 -0
  652. package/dist/entries/studio.d.cts +281 -0
  653. package/dist/entries/studio.d.ts +281 -0
  654. package/dist/entries/studio.js +5 -0
  655. package/dist/entries/studio.js.map +1 -0
  656. package/dist/entries/templates.cjs +13 -0
  657. package/dist/entries/templates.cjs.map +1 -0
  658. package/dist/entries/templates.d.cts +110 -0
  659. package/dist/entries/templates.d.ts +110 -0
  660. package/dist/entries/templates.js +4 -0
  661. package/dist/entries/templates.js.map +1 -0
  662. package/dist/entries/tutorials.cjs +13 -0
  663. package/dist/entries/tutorials.cjs.map +1 -0
  664. package/dist/entries/tutorials.d.cts +63 -0
  665. package/dist/entries/tutorials.d.ts +63 -0
  666. package/dist/entries/tutorials.js +4 -0
  667. package/dist/entries/tutorials.js.map +1 -0
  668. package/dist/entries/uploads.cjs +13 -0
  669. package/dist/entries/uploads.cjs.map +1 -0
  670. package/dist/entries/uploads.d.cts +44 -0
  671. package/dist/entries/uploads.d.ts +44 -0
  672. package/dist/entries/uploads.js +4 -0
  673. package/dist/entries/uploads.js.map +1 -0
  674. package/dist/entries/video-pro.cjs +13 -0
  675. package/dist/entries/video-pro.cjs.map +1 -0
  676. package/dist/entries/video-pro.d.cts +60 -0
  677. package/dist/entries/video-pro.d.ts +60 -0
  678. package/dist/entries/video-pro.js +4 -0
  679. package/dist/entries/video-pro.js.map +1 -0
  680. package/dist/entries/voices.cjs +13 -0
  681. package/dist/entries/voices.cjs.map +1 -0
  682. package/dist/entries/voices.d.cts +498 -0
  683. package/dist/entries/voices.d.ts +498 -0
  684. package/dist/entries/voices.js +4 -0
  685. package/dist/entries/voices.js.map +1 -0
  686. package/dist/entries/webhooks.cjs +21 -0
  687. package/dist/entries/webhooks.cjs.map +1 -0
  688. package/dist/entries/webhooks.d.cts +64 -0
  689. package/dist/entries/webhooks.d.ts +64 -0
  690. package/dist/entries/webhooks.js +4 -0
  691. package/dist/entries/webhooks.js.map +1 -0
  692. package/dist/entries/workflows.cjs +13 -0
  693. package/dist/entries/workflows.cjs.map +1 -0
  694. package/dist/entries/workflows.d.cts +393 -0
  695. package/dist/entries/workflows.d.ts +393 -0
  696. package/dist/entries/workflows.js +4 -0
  697. package/dist/entries/workflows.js.map +1 -0
  698. package/dist/entries/workspaces.cjs +13 -0
  699. package/dist/entries/workspaces.cjs.map +1 -0
  700. package/dist/entries/workspaces.d.cts +124 -0
  701. package/dist/entries/workspaces.d.ts +124 -0
  702. package/dist/entries/workspaces.js +4 -0
  703. package/dist/entries/workspaces.js.map +1 -0
  704. package/dist/index.cjs +501 -5192
  705. package/dist/index.cjs.map +1 -1
  706. package/dist/index.d.cts +67 -10895
  707. package/dist/index.d.ts +67 -10895
  708. package/dist/index.js +100 -5074
  709. package/dist/index.js.map +1 -1
  710. package/dist/nodes-C-wrO6Sg.d.ts +1364 -0
  711. package/dist/nodes-J8ByUN8z.d.cts +1364 -0
  712. package/dist/studio-productions-DUHvdSvk.d.cts +572 -0
  713. package/dist/studio-productions-vbCNSbtf.d.ts +572 -0
  714. package/dist/webhooks-BJawEIz8.d.ts +198 -0
  715. package/dist/webhooks-Dn_DtNTD.d.cts +198 -0
  716. package/package.json +253 -3
@@ -0,0 +1,360 @@
1
+ 'use strict';
2
+
3
+ var chunkN6GLZOE4_cjs = require('./chunk-N6GLZOE4.cjs');
4
+ var edl = require('@nodaro/shared/edl');
5
+ var nodes = require('@nodaro/shared/nodes');
6
+
7
+ // src/resources/edit-use-case-inputs.ts
8
+ var TRAILER_FORMATS = ["9:16", "1:1", "4:5", "16:9"];
9
+ var CLIP_PACK_MIN_TARGET_SEC = 5;
10
+ var CLIP_PACK_MAX_TARGET_SEC = 180;
11
+ function tightenBody(input) {
12
+ const { mediaUrl, ...rest } = input;
13
+ return { mediaUrls: [mediaUrl], ...Object.fromEntries(Object.entries(rest).filter(([, v]) => v !== void 0)) };
14
+ }
15
+ function chaptersBody(input) {
16
+ return {
17
+ mediaUrls: [input.mediaUrl],
18
+ ...input.planTier !== void 0 ? { planTier: input.planTier } : {},
19
+ ...input.instructions !== void 0 ? { instructions: input.instructions } : {},
20
+ ...input.styleGuide !== void 0 ? { styleGuide: input.styleGuide } : {}
21
+ };
22
+ }
23
+ function trailerBody(input) {
24
+ return {
25
+ mediaUrls: [input.mediaUrl],
26
+ ...input.introCardUrl !== void 0 ? { introCardUrl: input.introCardUrl } : {},
27
+ // An empty list is sent as is: the route refuses it (at least one format).
28
+ ...input.formats !== void 0 ? { formats: input.formats } : {},
29
+ ...input.reviewBeforeRender !== void 0 ? { reviewBeforeRender: input.reviewBeforeRender } : {},
30
+ ...input.planTier !== void 0 ? { planTier: input.planTier } : {},
31
+ ...input.instructions !== void 0 ? { instructions: input.instructions } : {},
32
+ ...input.styleGuide !== void 0 ? { styleGuide: input.styleGuide } : {}
33
+ };
34
+ }
35
+ function clipPackBody(input) {
36
+ const { mediaUrl, ...rest } = input;
37
+ return { mediaUrls: [mediaUrl], ...Object.fromEntries(Object.entries(rest).filter(([, v]) => v !== void 0)) };
38
+ }
39
+ var continuePathOf = (type) => `/v1/${type}/continue`;
40
+ function idempotencyHeaders(options) {
41
+ return options?.idempotencyKey ? { headers: { "Idempotency-Key": options.idempotencyKey } } : {};
42
+ }
43
+ var EditResource = class {
44
+ constructor(client) {
45
+ this.client = client;
46
+ }
47
+ client;
48
+ /**
49
+ * Detect silence ranges in an audio/video source (`POST /v1/silence-detect`).
50
+ * Keyless — one ffmpeg pass over the source's audio proxy.
51
+ */
52
+ silenceDetect(input) {
53
+ return this.client.request("POST", "/v1/silence-detect", {
54
+ body: {
55
+ audioUrl: input.audioUrl,
56
+ ...input.thresholdDb !== void 0 ? { thresholdDb: input.thresholdDb } : {},
57
+ ...input.minSilenceMs !== void 0 ? { minSilenceMs: input.minSilenceMs } : {},
58
+ ...input.padMs !== void 0 ? { padMs: input.padMs } : {},
59
+ ...input.workflowId !== void 0 ? { workflowId: input.workflowId } : {}
60
+ }
61
+ });
62
+ }
63
+ /**
64
+ * Measure how far apart the clocks of 2–6 recordings of one conversation are
65
+ * (`POST /v1/audio-sync`), by cross-correlating their audio — keyless, one
66
+ * ffmpeg decode per source. The finished job's `output_data.json` is an
67
+ * {@link AudioSyncResult}. A malformed request (fewer than 2 or more than 6
68
+ * sources, a repeated id, a `reference` that is not one of the ids) throws a
69
+ * typed `NodaroError` (400, `code: "validation_error"`) before any credits
70
+ * are reserved.
71
+ */
72
+ audioSync(input) {
73
+ return this.client.request("POST", "/v1/audio-sync", {
74
+ body: {
75
+ sources: input.sources.map((s) => ({ id: s.id, url: s.url })),
76
+ ...input.reference !== void 0 ? { reference: input.reference } : {},
77
+ ...input.workflowId !== void 0 ? { workflowId: input.workflowId } : {}
78
+ }
79
+ });
80
+ }
81
+ /**
82
+ * Which camera each speaker is on, from the cameras' own microphones (`POST
83
+ * /v1/speaker-map`), keyless. `output_data.json` is a `SpeakerMapResult`: pass
84
+ * it to {@link cameraSwitch} as `speakerMapResult`. A malformed request throws
85
+ * a `NodaroError` (400 `validation_error`; 422 `no_speakers` for a transcript
86
+ * with no speaker labels) before any credits are reserved.
87
+ */
88
+ speakerMap(input) {
89
+ return this.client.request("POST", "/v1/speaker-map", {
90
+ body: {
91
+ sources: input.sources.map((s) => ({ id: s.id, url: s.url, ...s.kind ? { kind: s.kind } : {} })),
92
+ transcript: input.transcript,
93
+ ...input.offsets !== void 0 ? { offsets: input.offsets } : {},
94
+ ...input.masterSourceId !== void 0 ? { masterSourceId: input.masterSourceId } : {},
95
+ ...input.wideSourceId !== void 0 ? { wideSourceId: input.wideSourceId } : {},
96
+ ...input.marginDb !== void 0 ? { marginDb: input.marginDb } : {},
97
+ ...input.workflowId !== void 0 ? { workflowId: input.workflowId } : {}
98
+ }
99
+ });
100
+ }
101
+ /**
102
+ * Render an edit decision list into a video or audio cut (`POST /v1/apply-edl`).
103
+ * The EDL is validated at ingress — an unresolvable source or a picture-less
104
+ * segment on a video edit throws a typed `NodaroError` (400, `code:
105
+ * "invalid_edl"`) before any credits are reserved.
106
+ */
107
+ applyEdl(input) {
108
+ return this.client.request("POST", "/v1/apply-edl", {
109
+ body: {
110
+ edl: input.edl,
111
+ ...input.sources !== void 0 ? { sources: input.sources } : {},
112
+ ...input.transcript !== void 0 ? { transcript: input.transcript } : {},
113
+ ...input.output !== void 0 ? { output: input.output } : {},
114
+ ...input.quality !== void 0 ? { quality: input.quality } : {},
115
+ ...input.crossfadeMs !== void 0 ? { crossfadeMs: input.crossfadeMs } : {},
116
+ ...input.clipKey !== void 0 ? { clipKey: input.clipKey } : {},
117
+ ...input.planBasis !== void 0 ? { planBasis: input.planBasis } : {},
118
+ ...input.workflowId !== void 0 ? { workflowId: input.workflowId } : {}
119
+ }
120
+ });
121
+ }
122
+ /**
123
+ * Tighten Episode (`POST /v1/tighten-episode`): tighten a podcast recording
124
+ * in one call — transcribe, cut the silences and filler, render, with
125
+ * optional captions, music and framing. Answers the run's job to poll; its
126
+ * `output_data` holds the episode. The run is priced as its steps at their own
127
+ * rates plus the listed per-run fee. Quote it first with
128
+ * {@link estimateTightenEpisode}.
129
+ */
130
+ tightenEpisode(input, options) {
131
+ return this.client.request("POST", "/v1/tighten-episode", { body: tightenBody(input), ...idempotencyHeaders(options) });
132
+ }
133
+ /**
134
+ * What a Tighten Episode run is estimated at (`POST /v1/tighten-episode/estimate`):
135
+ * its steps at their own rates plus its per-run fee. Nothing is created or
136
+ * charged. The estimate leans high: the render is priced at the recording's
137
+ * full length, while the charge follows the minutes actually rendered.
138
+ */
139
+ estimateTightenEpisode(input) {
140
+ return this.client.request("POST", "/v1/tighten-episode/estimate", { body: tightenBody(input) });
141
+ }
142
+ /**
143
+ * Chapters (`POST /v1/episode-chapters`): transcribe a recording and list its
144
+ * chapters in one call. Answers the run's job to poll; the finished job's
145
+ * `output_data.text` is the list as show notes (one `0:00 Title` line per
146
+ * chapter; once a chapter starts at 1:00:00 or later, every line is
147
+ * `H:MM:SS`), `output_data.json` the list itself (`{ startMs, title }[]`, the
148
+ * same rows; the first starts at 0). A run that finds no chapters fails,
149
+ * and its fee is refunded. Priced as its steps at their own rates plus the
150
+ * listed per-run fee; quote it first with {@link estimateEpisodeChapters}.
151
+ */
152
+ episodeChapters(input, options) {
153
+ return this.client.request("POST", "/v1/episode-chapters", { body: chaptersBody(input), ...idempotencyHeaders(options) });
154
+ }
155
+ /**
156
+ * What a Chapters run is estimated at (`POST /v1/episode-chapters/estimate`):
157
+ * its steps at their own rates plus its per-run fee. Nothing is created or
158
+ * charged. A recording whose length cannot be read is estimated at the
159
+ * 180-minute ceiling.
160
+ */
161
+ estimateEpisodeChapters(input) {
162
+ return this.client.request("POST", "/v1/episode-chapters/estimate", { body: chaptersBody(input) });
163
+ }
164
+ /**
165
+ * Trailer (`POST /v1/episode-trailer`): cut a 20–40 s trailer of a recording
166
+ * and deliver it in each chosen format (padded, never cropped), optionally
167
+ * after an intro card, in one call. The finished job's `output_data.formats`
168
+ * is `{ format, url }[]` in format order, the first also `output_data.videoUrl`;
169
+ * a format that failed is named in `output_data.failedFormats` (the run keeps
170
+ * the others). With `reviewBeforeRender` the run stops at a preview
171
+ * (`videoUrl`, no formats yet). Priced as its steps at their own rates plus
172
+ * the listed per-run fee; quote it first with {@link estimateEpisodeTrailer}.
173
+ */
174
+ episodeTrailer(input, options) {
175
+ return this.client.request("POST", "/v1/episode-trailer", { body: trailerBody(input), ...idempotencyHeaders(options) });
176
+ }
177
+ /**
178
+ * What a Trailer run is estimated at (`POST /v1/episode-trailer/estimate`):
179
+ * its steps at their own rates plus its per-run fee. Nothing is created or
180
+ * charged. The trailer is quoted at 40 seconds, the longest trailer the
181
+ * plan cuts; a Render final is quoted on the trailer the run cut (with the
182
+ * review's edits), plus the intro card.
183
+ */
184
+ estimateEpisodeTrailer(input) {
185
+ return this.client.request("POST", "/v1/episode-trailer/estimate", { body: trailerBody(input) });
186
+ }
187
+ /**
188
+ * Clip Pack (`POST /v1/clip-pack`): cut a recording into a pack of short
189
+ * clips in one call — the plan finds the best moments (`count`, default 8,
190
+ * of about `targetDurationSec`, default 60), each is rendered (framed 9:16
191
+ * with the speakers stacked by default; `framing: null` keeps the
192
+ * recording's shape) and captioned. An audio recording makes audio clips.
193
+ * The finished job's `output_data.clips` is `{ url, title?, hook?, clipKey,
194
+ * thumbnailUrl?, captionsFailed? }[]` in plan order, the first also
195
+ * `output_data.videoUrl` (`audioUrl` for audio clips). Every clip is tried:
196
+ * one that cannot be rendered is skipped, not charged and counted on
197
+ * `failedClips` (the pack keeps the others and its fee); a clip whose
198
+ * captions failed comes uncaptioned (`captionsFailed`, counted on
199
+ * `failedCaptions`). When no clip renders the run fails and its fee is
200
+ * refunded. With `reviewBeforeRender` the run stops at previews; Render
201
+ * final ({@link continueUseCase}) renders only the clips the edit keeps.
202
+ * Priced as its steps at their own rates plus the listed per-run fee;
203
+ * quote it first with {@link estimateClipPack}.
204
+ */
205
+ clipPack(input, options) {
206
+ return this.client.request("POST", "/v1/clip-pack", { body: clipPackBody(input), ...idempotencyHeaders(options) });
207
+ }
208
+ /**
209
+ * What a Clip Pack run is estimated at (`POST /v1/clip-pack/estimate`): its
210
+ * steps at their own rates plus its per-run fee. Nothing is created or
211
+ * charged. Each clip is quoted at twice the target length (the plan may cut
212
+ * a clip longer than asked); the charge follows each clip's real length.
213
+ */
214
+ estimateClipPack(input) {
215
+ return this.client.request("POST", "/v1/clip-pack/estimate", { body: clipPackBody(input) });
216
+ }
217
+ /**
218
+ * Continue a use-case run as a new job (`POST /v1/<type>/continue`, the
219
+ * run's own type: `input.nodeType`, else the type the job records, read with
220
+ * `GET /v1/jobs/:id`; when that read cannot tell, this rejects with a
221
+ * `NodaroError` coded `use_case_type_unknown` — pass `nodeType` then):
222
+ * `"from-failed"` keeps the steps that finished and runs the rest (the fee
223
+ * is held again; the failed run's was refunded);
224
+ * `"render-final"` renders the full-quality result after a review-on preview,
225
+ * with the preview's settings and no fee. A refusal that names another job
226
+ * (`already_running`, `continuation_superseded`,
227
+ * `render_final_already_rendered`) throws a `ContinuationRefusedError`
228
+ * carrying that `jobId`.
229
+ */
230
+ async continueUseCase(input, options) {
231
+ if (input.nodeType !== void 0 && !nodes.isUseCaseNodeType(input.nodeType)) {
232
+ throw new chunkN6GLZOE4_cjs.NodaroError(
233
+ `continueUseCase: nodeType "${String(input.nodeType)}" is not a use-case node type (${nodes.USE_CASE_NODE_TYPES.join(", ")})`,
234
+ "invalid_node_type",
235
+ 400
236
+ );
237
+ }
238
+ const type = input.nodeType ?? await this.runTypeOf(input.jobId);
239
+ return this.client.request("POST", continuePathOf(type), {
240
+ body: { jobId: input.jobId, mode: input.mode, ...input.editedEdl !== void 0 ? { editedEdl: input.editedEdl } : {} },
241
+ ...idempotencyHeaders(options)
242
+ });
243
+ }
244
+ /**
245
+ * The use-case type a run records (`input_data.type`, else its `job_type`).
246
+ * When the key lacks the `jobs:read` scope (403 naming that scope) or the job
247
+ * names no use-case type, the type cannot be read: this rejects with a
248
+ * `NodaroError` (`use_case_type_unknown`, 400) asking for `nodeType`, and
249
+ * nothing is posted (decided 2026-10-18: no route is guessed for the run).
250
+ * Any other failure of the read, any other 403 included, is thrown as is.
251
+ */
252
+ async runTypeOf(jobId) {
253
+ const unknown = () => new chunkN6GLZOE4_cjs.NodaroError("continueUseCase: the run's node type cannot be read \u2014 pass nodeType", "use_case_type_unknown", 400);
254
+ let row;
255
+ try {
256
+ row = (await this.client.request("GET", `/v1/jobs/${encodeURIComponent(jobId)}`)).data;
257
+ } catch (err) {
258
+ if (err instanceof chunkN6GLZOE4_cjs.ForbiddenError && err.missingScope === "jobs:read") throw unknown();
259
+ throw err;
260
+ }
261
+ const input = row?.input_data;
262
+ const recorded = input && typeof input === "object" && !Array.isArray(input) ? input.type : void 0;
263
+ const type = typeof recorded === "string" && recorded.length > 0 ? recorded : row?.job_type;
264
+ if (!nodes.isUseCaseNodeType(type)) throw unknown();
265
+ return type;
266
+ }
267
+ /**
268
+ * Plan a transcript-driven cut (`POST /v1/edit-plan`). Reads a timed
269
+ * transcript (plus optional silence ranges) and the media sources, and plans
270
+ * the edit. The finished job's `output_data` holds the plan: an `Edl`
271
+ * (`"tighten"` or `"trailer"`), an {@link EdlClipSet} (`"clips"`), or a
272
+ * {@link ChapterSet} (`"chapters"`) — normalize it with {@link unwrapEditPlanOutput}.
273
+ *
274
+ * On a self-hosted install the request relays to nodaro.ai and needs the
275
+ * install connected (a 503 `code: "nodaro_connection_required"` otherwise);
276
+ * on nodaro.ai it runs directly.
277
+ */
278
+ editPlan(input) {
279
+ const planned = edl.resolveEditPlanSources(input.sources, {
280
+ offsets: input.offsets,
281
+ transcriptSourceId: input.transcriptSourceId
282
+ });
283
+ if (!planned.ok) {
284
+ const message = planned.issues.map((issue) => edl.describeAudioSyncOffsetIssue(issue)).join("; ");
285
+ return Promise.reject(new chunkN6GLZOE4_cjs.NodaroError(`editPlan: ${message}`, "edit_plan_sources", 400));
286
+ }
287
+ const transcript = planned.transcriptSourceId ? { ...input.transcript, sourceId: planned.transcriptSourceId } : input.transcript;
288
+ return this.client.request("POST", "/v1/edit-plan", {
289
+ body: {
290
+ mode: input.mode,
291
+ planTier: input.planTier,
292
+ transcript,
293
+ sources: planned.sources,
294
+ ...input.silence !== void 0 ? { silence: input.silence } : {},
295
+ ...input.instructions !== void 0 ? { instructions: input.instructions } : {},
296
+ ...input.styleGuide !== void 0 ? { styleGuide: input.styleGuide } : {},
297
+ ...input.count !== void 0 ? { count: input.count } : {},
298
+ ...input.targetDurationSec !== void 0 ? { targetDurationSec: input.targetDurationSec } : {},
299
+ ...input.targetAspect !== void 0 ? { targetAspect: input.targetAspect } : {},
300
+ ...input.platform !== void 0 ? { platform: input.platform } : {},
301
+ ...input.workflowId !== void 0 ? { workflowId: input.workflowId } : {}
302
+ }
303
+ });
304
+ }
305
+ /**
306
+ * Camera Switch (podcast B5): choose which camera shows each cut of `edl`
307
+ * by who is speaking — the sound never changes. Cloud edition; a flat
308
+ * price. The finished job's `output_data.json` is the switched EDL (feed it
309
+ * to {@link applyEdl}) and `output_data.transcript` the transcript with
310
+ * `speakerNames` applied. A transcript with no speaker labels rejects with
311
+ * a {@link NodaroError} (`code: "no_speakers"`) before any request or charge.
312
+ */
313
+ cameraSwitch(input) {
314
+ if (edl.transcriptSpeakerLabels(input.transcript).length === 0) {
315
+ return Promise.reject(new chunkN6GLZOE4_cjs.NodaroError(
316
+ "cameraSwitch: the transcript has no speaker labels \u2014 transcribe with speaker detection on",
317
+ "no_speakers",
318
+ 422
319
+ ));
320
+ }
321
+ const result = input.speakerMapResult;
322
+ if (result !== void 0 && !edl.speakerMapResultOf(result)) return Promise.reject(new chunkN6GLZOE4_cjs.NodaroError("cameraSwitch: speakerMapResult is not a Speaker Map result \u2014 pass that job's output_data.json", "not_a_speaker_map", 400));
323
+ const speakerMap = result !== void 0 ? edl.cameraSwitchSpeakerMap({ speakerMap: input.speakerMap }, input.edl, input.transcript, { speakerMap: result }) : input.speakerMap;
324
+ return this.client.request("POST", "/v1/camera-switch", {
325
+ body: {
326
+ edl: input.edl,
327
+ transcript: input.transcript,
328
+ ...speakerMap !== void 0 ? { speakerMap } : {},
329
+ ...input.speakerNames !== void 0 ? { speakerNames: input.speakerNames } : {},
330
+ ...input.minShotMs !== void 0 ? { minShotMs: input.minShotMs } : {},
331
+ ...input.leadMs !== void 0 ? { leadMs: input.leadMs } : {},
332
+ ...input.maxShotMs !== void 0 ? { maxShotMs: input.maxShotMs } : {},
333
+ ...input.wideEvery !== void 0 ? { wideEvery: input.wideEvery } : {},
334
+ ...input.layoutHints !== void 0 ? { layoutHints: input.layoutHints } : {},
335
+ ...input.workflowId !== void 0 ? { workflowId: input.workflowId } : {}
336
+ }
337
+ });
338
+ }
339
+ /**
340
+ * Remap a transcript through an EDL — a PURE client-side transform (NO
341
+ * request). Returns a new transcript whose word (and segment) timings are on
342
+ * the EDL's rendered output clock, dropping words that fall in cut regions and
343
+ * clipping straddlers. Runs `@nodaro/shared`'s canonical
344
+ * `remapTranscriptThroughEdl`, the same remap `applyEdl` performs server-side.
345
+ */
346
+ remapTranscript(edl$1, transcript) {
347
+ return edl.remapTranscriptThroughEdl(edl$1, transcript);
348
+ }
349
+ };
350
+
351
+ Object.defineProperty(exports, "USE_CASE_NODE_TYPES", {
352
+ enumerable: true,
353
+ get: function () { return nodes.USE_CASE_NODE_TYPES; }
354
+ });
355
+ exports.CLIP_PACK_MAX_TARGET_SEC = CLIP_PACK_MAX_TARGET_SEC;
356
+ exports.CLIP_PACK_MIN_TARGET_SEC = CLIP_PACK_MIN_TARGET_SEC;
357
+ exports.EditResource = EditResource;
358
+ exports.TRAILER_FORMATS = TRAILER_FORMATS;
359
+ //# sourceMappingURL=chunk-WUIEZ6Z4.cjs.map
360
+ //# sourceMappingURL=chunk-WUIEZ6Z4.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/resources/edit-use-case-inputs.ts","../src/resources/edit.ts"],"names":["isUseCaseNodeType","NodaroError","USE_CASE_NODE_TYPES","ForbiddenError","resolveEditPlanSources","describeAudioSyncOffsetIssue","transcriptSpeakerLabels","speakerMapResultOf","cameraSwitchSpeakerMap","edl","remapTranscriptThroughEdl"],"mappings":";;;;;;;AAqEO,IAAM,eAAA,GAAkB,CAAC,MAAA,EAAQ,KAAA,EAAO,OAAO,MAAM;AA2BrD,IAAM,wBAAA,GAA2B;AACjC,IAAM,wBAAA,GAA2B;AAqDjC,SAAS,YAAY,KAAA,EAAqD;AAC/E,EAAA,MAAM,EAAE,QAAA,EAAU,GAAG,IAAA,EAAK,GAAI,KAAA;AAC9B,EAAA,OAAO,EAAE,WAAW,CAAC,QAAQ,GAAG,GAAG,MAAA,CAAO,YAAY,MAAA,CAAO,OAAA,CAAQ,IAAI,CAAA,CAAE,MAAA,CAAO,CAAC,GAAG,CAAC,CAAA,KAAM,CAAA,KAAM,MAAS,CAAC,CAAA,EAAE;AACjH;AAEO,SAAS,aAAa,KAAA,EAAsD;AACjF,EAAA,OAAO;AAAA,IACL,SAAA,EAAW,CAAC,KAAA,CAAM,QAAQ,CAAA;AAAA,IAC1B,GAAI,MAAM,QAAA,KAAa,MAAA,GAAY,EAAE,QAAA,EAAU,KAAA,CAAM,QAAA,EAAS,GAAI,EAAC;AAAA,IACnE,GAAI,MAAM,YAAA,KAAiB,MAAA,GAAY,EAAE,YAAA,EAAc,KAAA,CAAM,YAAA,EAAa,GAAI,EAAC;AAAA,IAC/E,GAAI,MAAM,UAAA,KAAe,MAAA,GAAY,EAAE,UAAA,EAAY,KAAA,CAAM,UAAA,EAAW,GAAI;AAAC,GAC3E;AACF;AAEO,SAAS,YAAY,KAAA,EAAqD;AAC/E,EAAA,OAAO;AAAA,IACL,SAAA,EAAW,CA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MAAA,CAAO,OAAA,CAAQ,MAAA,EAAQ,mBAAA,EAAqB;AAAA,MACtD,IAAA,EAAM;AAAA,QACJ,KAAK,KAAA,CAAM,GAAA;AAAA,QACX,YAAY,KAAA,CAAM,UAAA;AAAA,QAClB,GAAI,UAAA,KAAe,MAAA,GAAY,EAAE,UAAA,KAAe,EAAC;AAAA,QACjD,GAAI,MAAM,YAAA,KAAiB,MAAA,GAAY,EAAE,YAAA,EAAc,KAAA,CAAM,YAAA,EAAa,GAAI,EAAC;AAAA,QAC/E,GAAI,MAAM,SAAA,KAAc,MAAA,GAAY,EAAE,SAAA,EAAW,KAAA,CAAM,SAAA,EAAU,GAAI,EAAC;AAAA,QACtE,GAAI,MAAM,MAAA,KAAW,MAAA,GAAY,EAAE,MAAA,EAAQ,KAAA,CAAM,MAAA,EAAO,GAAI,EAAC;AAAA,QAC7D,GAAI,MAAM,SAAA,KAAc,MAAA,GAAY,EAAE,SAAA,EAAW,KAAA,CAAM,SAAA,EAAU,GAAI,EAAC;AAAA,QACtE,GAAI,MAAM,SAAA,KAAc,MAAA,GAAY,EAAE,SAAA,EAAW,KAAA,CAAM,SAAA,EAAU,GAAI,EAAC;AAAA,QACtE,GAAI,MAAM,WAAA,KAAgB,MAAA,GAAY,EAAE,WAAA,EAAa,KAAA,CAAM,WAAA,EAAY,GAAI,EAAC;AAAA,QAC5E,GAAI,MAAM,UAAA,KAAe,MAAA,GAAY,EAAE,UAAA,EAAY,KAAA,CAAM,UAAA,EAAW,GAAI;AAAC;AAC3E,KACD,CAAA;AAAA,EACH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASA,eAAA,CAAgBC,OAAU,UAAA,EAAoC;AAC5D,IAAA,OAAOC,6BAAA,CAA0BD,OAAK,UAAU,CAAA;AAAA,EAClD;AACF","file":"chunk-WUIEZ6Z4.cjs","sourcesContent":["/**\n * The inputs of the podcast use-case runs on the `edit` resource (Tighten\n * Episode, Chapters, Trailer, Clip Pack) and the request body each one sends.\n * Split from `edit.ts`, which holds the methods, the type list and the\n * continue routes; every name here is re-exported from there.\n */\nimport type { EditPlanTier, EdlTargetAspect, SpeakerEmphasisStyle, SpeakerSwitchId } from \"@nodaro/shared/edl\"\nimport type { CaptionStyle } from \"@nodaro/shared/captions\"\n\n/**\n * Input for {@link EditResource.tightenEpisode} and\n * {@link EditResource.estimateTightenEpisode}: one recording in, the tightened\n * episode out. Only `mediaUrl` is required; every other field left out takes\n * the node's default.\n */\nexport interface TightenEpisodeInput {\n /** The recording — a video or audio URL, up to 3 hours. */\n mediaUrl: string\n /** Optional music bed, ducked under the voice and ending with the episode. */\n musicUrl?: string\n /** `\"video\"` or `\"audio\"`; an audio recording always makes an audio episode. */\n output?: \"video\" | \"audio\"\n /**\n * Frame a video episode with Speaker View: an output aspect and a layout,\n * over automatic boxes on the speakers on screen. A layout the aspect does\n * not draw is snapped to one it does. `null` or absent: no framing.\n */\n framing?: {\n aspect: EdlTargetAspect\n layout: \"auto\" | \"single\" | \"side-by-side\" | \"stacked\" | \"grid\" | \"pip\"\n } | null\n /** Captions on a video episode (on by default). */\n captions?: boolean\n /** The captions' look. */\n captionStyle?: CaptionStyle\n /**\n * Stop at a quick preview for a person to review; render the full-quality\n * episode afterwards with {@link EditResource.continueUseCase}\n * (`mode: \"render-final\"`).\n */\n reviewBeforeRender?: boolean\n /** The planner's tier. */\n planTier?: EditPlanTier\n /** Editing instructions for the planner (up to 4 000 characters). */\n instructions?: string\n /** A style guide for the planner (up to 4 000 characters). */\n styleGuide?: string\n /** How far the music dips under the voice, 0–100 (default 75). */\n musicDuckAmount?: number\n}\n\n/**\n * Input for {@link EditResource.episodeChapters} and\n * {@link EditResource.estimateEpisodeChapters}: one recording in, its chapters\n * out. Only `mediaUrl` is required; every other field left out takes the\n * node's default.\n */\nexport interface EpisodeChaptersInput {\n /** The recording — a video or audio URL, up to 3 hours. */\n mediaUrl: string\n /** The planner's tier (default `\"economy\"`). */\n planTier?: EditPlanTier\n /** Instructions for the chapters, e.g. \"5 to 8 chapters\" (up to 4 000 characters). */\n instructions?: string\n /** A style guide for the chapter titles (up to 4 000 characters). */\n styleGuide?: string\n}\n\n/** The formats a Trailer is delivered in, in delivery order (16:9 is a 1920×1080 landscape). */\nexport const TRAILER_FORMATS = [\"9:16\", \"1:1\", \"4:5\", \"16:9\"] as const\n/** One Trailer format (see {@link TRAILER_FORMATS}). */\nexport type TrailerFormat = (typeof TRAILER_FORMATS)[number]\n\n/**\n * Input for {@link EditResource.episodeTrailer} and\n * {@link EditResource.estimateEpisodeTrailer}: one video recording in, a\n * 20–40 s trailer out in each chosen format. Only `mediaUrl` is required.\n */\nexport interface EpisodeTrailerInput {\n /** The recording — a video URL, up to 3 hours (an audio-only recording is refused). */\n mediaUrl: string\n /** An optional intro card: a short video (15 s at most) played before the trailer. */\n introCardUrl?: string\n /** The formats to deliver, padded, never cropped (default `[\"9:16\", \"1:1\", \"4:5\"]`; an empty list is refused). */\n formats?: TrailerFormat[]\n /** Stop at a preview of the trailer; render every format with {@link EditResource.continueUseCase} (`mode: \"render-final\"`). */\n reviewBeforeRender?: boolean\n /** The planner's tier (default `\"standard\"`). */\n planTier?: EditPlanTier\n /** Instructions for the trailer (up to 4 000 characters). */\n instructions?: string\n /** A style guide for the planner (up to 4 000 characters). */\n styleGuide?: string\n}\n\n/** The shortest and longest clip a Clip Pack asks the plan for, in seconds. */\nexport const CLIP_PACK_MIN_TARGET_SEC = 5\nexport const CLIP_PACK_MAX_TARGET_SEC = 180\n\n/**\n * A Clip Pack emphasis: `\"none\"`, or one or more of `\"scale\"`, `\"border\"` and\n * `\"dim\"` joined with `\"+\"` (each once — the route refuses a repeat).\n */\nexport type ClipPackEmphasis = SpeakerEmphasisStyle | `${Exclude<SpeakerEmphasisStyle, \"none\">}+${string}`\n\n/**\n * Input for {@link EditResource.clipPack} and\n * {@link EditResource.estimateClipPack}: one recording in, a pack of short\n * clips out. Only `mediaUrl` is required; every other field left out takes\n * the node's default.\n */\nexport interface ClipPackInput {\n /** The recording — a video or audio URL, up to 3 hours. An audio recording makes audio clips (no framing, no captions). */\n mediaUrl: string\n /** How many clips to find, 1–50 (default 8). The plan may find fewer. */\n count?: number\n /** Each clip's target length in seconds, {@link CLIP_PACK_MIN_TARGET_SEC}–{@link CLIP_PACK_MAX_TARGET_SEC} (default 60). */\n targetDurationSec?: number\n /**\n * Frame each video clip with Speaker View on automatic boxes over the\n * episode's speakers: the shape, and optionally the layout (default\n * `\"stacked\"`; one the shape does not draw is snapped), the switch at each\n * speaker change (default `\"pan\"`) and the emphasis (default `\"scale\"`;\n * `\"none\"`, or `\"scale\"`, `\"border\"` and `\"dim\"` joined with `\"+\"`). Left\n * out: 9:16, stacked, pan, scale. `null`: no framing (the recording's shape).\n */\n framing?: {\n aspect: EdlTargetAspect\n layout?: \"auto\" | \"single\" | \"side-by-side\" | \"stacked\" | \"grid\" | \"pip\"\n switchType?: SpeakerSwitchId\n emphasisStyle?: ClipPackEmphasis\n } | null\n /** Caption each video clip (on by default). */\n captions?: boolean\n /** The captions' look (default `\"karaoke\"`). */\n captionStyle?: CaptionStyle\n /**\n * Stop at quick previews of the clips for a person to review; render the\n * kept clips at full quality with {@link EditResource.continueUseCase}\n * (`mode: \"render-final\"`, an `editedEdl` that keeps or drops clips).\n */\n reviewBeforeRender?: boolean\n /** The planner's tier (default `\"standard\"`). */\n planTier?: EditPlanTier\n /** Instructions for picking the clips (up to 4 000 characters). */\n instructions?: string\n /** A style guide for the planner (up to 4 000 characters). */\n styleGuide?: string\n}\n\nexport function tightenBody(input: TightenEpisodeInput): Record<string, unknown> {\n const { mediaUrl, ...rest } = input\n return { mediaUrls: [mediaUrl], ...Object.fromEntries(Object.entries(rest).filter(([, v]) => v !== undefined)) }\n}\n\nexport function chaptersBody(input: EpisodeChaptersInput): Record<string, unknown> {\n return {\n mediaUrls: [input.mediaUrl],\n ...(input.planTier !== undefined ? { planTier: input.planTier } : {}),\n ...(input.instructions !== undefined ? { instructions: input.instructions } : {}),\n ...(input.styleGuide !== undefined ? { styleGuide: input.styleGuide } : {}),\n }\n}\n\nexport function trailerBody(input: EpisodeTrailerInput): Record<string, unknown> {\n return {\n mediaUrls: [input.mediaUrl],\n ...(input.introCardUrl !== undefined ? { introCardUrl: input.introCardUrl } : {}),\n // An empty list is sent as is: the route refuses it (at least one format).\n ...(input.formats !== undefined ? { formats: input.formats } : {}),\n ...(input.reviewBeforeRender !== undefined ? { reviewBeforeRender: input.reviewBeforeRender } : {}),\n ...(input.planTier !== undefined ? { planTier: input.planTier } : {}),\n ...(input.instructions !== undefined ? { instructions: input.instructions } : {}),\n ...(input.styleGuide !== undefined ? { styleGuide: input.styleGuide } : {}),\n }\n}\n\n/** Clip Pack's body: what the caller set, `framing: null` included (no framing). */\nexport function clipPackBody(input: ClipPackInput): Record<string, unknown> {\n const { mediaUrl, ...rest } = input\n return { mediaUrls: [mediaUrl], ...Object.fromEntries(Object.entries(rest).filter(([, v]) => v !== undefined)) }\n}\n","import type { NodaroClientCore } from \"../core.js\"\nimport { ForbiddenError, NodaroError } from \"../errors.js\"\nimport {\n remapTranscriptThroughEdl,\n unwrapEditPlanOutput,\n resolveEditPlanSources,\n describeAudioSyncOffsetIssue,\n transcriptSpeakerLabels,\n cameraSwitchSpeakerMap, speakerMapResultOf, type SpeakerMapResult,\n type Edl,\n type Transcript,\n type EditPlanMode,\n type EditPlanTier,\n type EdlClipSet,\n type ChapterSet,\n type EdlTargetAspect\n} from \"@nodaro/shared/edl\"\nimport { USE_CASE_NODE_TYPES, isUseCaseNodeType, type UseCaseNodeType } from \"@nodaro/shared/nodes\"\nimport type { SpeakerMapInput } from \"./speaker-map-inputs.js\"\nimport {\n chaptersBody,\n clipPackBody,\n tightenBody,\n trailerBody,\n type ClipPackInput,\n type EpisodeChaptersInput,\n type EpisodeTrailerInput,\n type TightenEpisodeInput,\n} from \"./edit-use-case-inputs.js\"\n\nexport { CLIP_PACK_MAX_TARGET_SEC, CLIP_PACK_MIN_TARGET_SEC, TRAILER_FORMATS } from \"./edit-use-case-inputs.js\"\nexport type { ClipPackEmphasis, ClipPackInput, EpisodeChaptersInput, EpisodeTrailerInput, TightenEpisodeInput, TrailerFormat } from \"./edit-use-case-inputs.js\"\n\n// Re-export the canonical EDL / transcript vocabulary from `@nodaro/shared`\n// (single source of truth — the shapes live at `packages/shared/src/edl.ts`).\n// `@nodaro/shared` is already a hard dep of this package, so there is no\n// bundle-size cost to importing from it, and an integration builds requests and\n// reads results with one dependency. `EdlClipSet` / `ChapterSet` are the raw\n// `output_data` shapes of the `clips` / `chapters` modes, and\n// `unwrapEditPlanOutput` is the sanctioned way to normalize any edit-plan job's\n// `output_data` (it also strips the relay's `viaNodaroCloud` marker).\nexport type { Edl, Transcript, EditPlanMode, EditPlanTier, EdlClipSet, ChapterSet }\nexport { unwrapEditPlanOutput }\n\n/**\n * A silence-detect job's `output_data.json` — the value to pass as\n * {@link EditPlanInput.silence}. It is NOT what {@link EditResource.silenceDetect}\n * returns (that is `{ jobId }`); fetch the finished job and read its\n * `output_data.json`. The planner reads the `ranges` array — an input without\n * one is silently ignored, so pass this whole object.\n */\nexport interface SilenceRanges {\n /** Wire version of the payload. */\n version?: number\n /** Silence spans on the source clock, in ms. */\n ranges: ReadonlyArray<{ startMs: number; endMs: number }>\n /** Total source duration, in ms. */\n durationMs?: number\n}\n\n/** Every editorial route answers with the queued job to poll. */\nexport interface EditJobResult {\n /** The queued job id — follow it via `client.jobs.getStatus(jobId)`. */\n jobId: string\n}\n\nexport interface SilenceDetectInput {\n /**\n * An audio OR video source. A single ffmpeg `silencedetect` pass runs over the\n * source's audio proxy either way — no provider key required.\n */\n audioUrl: string\n /** dBFS threshold, always ≤ 0. Default -35 (a good podcast default). */\n thresholdDb?: number\n /** Minimum silence length to report, in ms. Default 700. */\n minSilenceMs?: number\n /** Padding kept around speech, in ms — shrinks each reported range inward. Default 120. */\n padMs?: number\n /**\n * Optionally associate this run with a workflow execution (display only — it\n * ties the standalone job back to a workflow for the execution history).\n */\n workflowId?: string\n}\n\n/** One recording for {@link EditResource.audioSync}. */\nexport interface AudioSyncSource {\n /**\n * Your id for this recording (1–200 chars, unique within the request) —\n * echoed back as its offset's `sourceId`. Use the id your EDL gives the same\n * recording (`EdlSource.id`) and the result folds straight into it.\n */\n id: string\n /** An audio OR video URL — the audio track is read either way. */\n url: string\n}\n\nexport interface AudioSyncInput {\n /** The 2–6 recordings of one conversation to line up (camera files and/or a master mic). */\n sources: AudioSyncSource[]\n /**\n * The id of the source every offset is measured against (its own offset is\n * 0). Must be one of `sources`' ids; default: the first source.\n */\n reference?: string\n /** Optionally associate this run with a workflow execution (display only). */\n workflowId?: string\n}\n\n/** One recording's measured clock offset in an {@link AudioSyncResult}. */\nexport interface AudioSyncOffset {\n /** The recording's `id` from the request. */\n sourceId: string\n /**\n * Where this recording sits on the reference's clock, in integer ms:\n * `referenceMs = sourceMs + offsetMs` (the EDL's D19 sign — the value\n * `EdlSource.offsetMs` takes when the reference is the master).\n */\n offsetMs: number\n /** 0–1. Below 0.5 a `notes` line asks for a check by ear. */\n confidence: number\n /**\n * Measured clock drift against the reference, in ms gained per hour; `null`\n * when the shared stretch was too short to measure it. Drift is reported,\n * never corrected — the offset is taken at the middle of the overlap.\n */\n driftMsPerHour: number | null\n}\n\n/**\n * An audio-sync job's `output_data.json`. It is NOT what\n * {@link EditResource.audioSync} returns (that is `{ jobId }`); fetch the\n * finished job and read its `output_data.json`.\n */\nexport interface AudioSyncResult {\n /** Wire version of the payload. */\n version: number\n /** The source every offset is measured against (its own offset is 0). */\n reference: string\n offsets: AudioSyncOffset[]\n /** Human-readable warnings: low confidence, measured drift, no shared sound. */\n notes: string[]\n}\n\nexport interface ApplyEdlInput {\n /** The edit decision list to render. Media resolves from each `edl.sources[i].url`. */\n edl: Edl\n /**\n * Optional media-URL overrides for `edl.sources[i].url`, POSITIONAL in this\n * array's order. Each URL is SSRF-guarded server-side like any media the\n * platform fetches.\n */\n sources?: string[]\n /**\n * Optional transcript to remap through the cut. The rendered job returns the\n * remapped transcript on its `json` output. A word-level multi-hour transcript\n * is several MB — if you only need the re-timed transcript (not a render), use\n * {@link EditResource.remapTranscript} locally instead of sending it here.\n */\n transcript?: Transcript\n /** Render a full video (default) or an audio-only cut. */\n output?: \"video\" | \"audio\"\n /** Fast proxy draft or the final render. Default \"final\". */\n quality?: \"proxy\" | \"final\"\n /**\n * Default crossfade (ms) on boundaries with no explicit transition; 0 = hard\n * cuts. Per-boundary clamped to the ffmpeg-xfade limit server-side. Default 0.\n */\n crossfadeMs?: number\n /**\n * The plan clip this render cuts — `edlSpanKey(clip)` from `@nodaro/shared`\n * (`\"<first inMs>-<last outMs>\"`). The job's result carries it back as\n * `output_data.clipKey`, so renders of a clip set can be matched to their\n * clips. Omit for a render of no plan clip.\n */\n clipKey?: string\n /**\n * The plan value this render cuts — `renderReadBasis(value)` from\n * `@nodaro/shared` (16 lowercase hex digits), where `value` is the Edit\n * Plan's Tighten EDL with any review applied, or the clip this render cuts.\n * The job's result carries it back as `output_data.planBasis`, so a take can\n * be told apart from one cut from an earlier plan. Send it only when the EDL\n * you send IS that value (not one an intermediate step re-cut from an older\n * plan); omit it otherwise. The result's `output_data.renderBasis` (the\n * render's own settings and sources) is stamped by the server.\n */\n planBasis?: string\n /** Optionally associate this run with a workflow execution (display only). */\n workflowId?: string\n}\n\n/**\n * One media source for an edit-plan run. Mirrors the shape the workflow engine\n * sends: a stable `id` (adopted verbatim as the plan's `EdlSource` id), the\n * media `url`, and the `kind`, plus optional per-source annotations the planner\n * honors.\n */\nexport interface EditPlanSource {\n /** Stable id for this source — becomes the `EdlSource` id in the returned plan. */\n id: string\n /** The source's media URL (SSRF-guarded server-side). */\n url: string\n /** This source's medium. */\n kind: \"video\" | \"audio\"\n /** Role annotation. `\"master-audio\"` marks the clock the plan is reserved on. */\n role?: \"master-audio\" | \"camera\" | \"wide\" | \"screen\"\n /** Speaker labels present in this source. */\n speakers?: string[]\n /**\n * This source's origin on the master clock (masterMs = sourceMs + offsetMs).\n * Set by hand, it wins over a measured offset from `offsets`.\n */\n offsetMs?: number\n}\n\nexport interface EditPlanInput {\n /**\n * Planning mode. The finished job's `output_data` carries the plan — read it\n * with {@link unwrapEditPlanOutput}, which also strips the relay's\n * `viaNodaroCloud` marker:\n * - `\"tighten\"` → an `Edl`.\n * - `\"clips\"` → an {@link EdlClipSet} (`{ version, clips: Edl[] }`);\n * `unwrapEditPlanOutput` returns the bare `Edl[]`.\n * - `\"chapters\"` → a {@link ChapterSet} (`{ version, chapters: [...] }`).\n * - `\"trailer\"` → an `Edl` (one short teaser cut from the strongest moments).\n */\n mode: EditPlanMode\n /** Reasoning tier — affects plan quality AND the credit bucket. */\n planTier: EditPlanTier\n /** The timed transcript driving the plan. */\n transcript: Transcript\n /**\n * Optional detected silence ranges. Pass the silence-detect JOB'S RESULT —\n * `getStatus(jobId).data.output_data.json` (a {@link SilenceRanges} object),\n * NOT the `{ jobId }` that {@link EditResource.silenceDetect} returns. The\n * planner reads the `ranges` array; an input without one is silently ignored.\n */\n silence?: SilenceRanges\n /** The recording's media sources (1–6). */\n sources: EditPlanSource[]\n /**\n * Multicam: an {@link AudioSyncResult} (the audio-sync job's\n * `output_data.json`) measured over these same source ids. Each source's\n * measured offset is written onto its `offsetMs` BEFORE the request, on the\n * master's clock (the `master-audio` source, else the first) — a source's\n * own `offsetMs` wins. `editPlan` rejects with a {@link NodaroError}\n * (`code: \"edit_plan_sources\"`), before any request or charge, when a\n * source was not measured or matched weakly (confidence < 0.5 — set its\n * `offsetMs` by hand), or the master was not measured.\n */\n offsets?: AudioSyncResult | string\n /**\n * The id of the source the transcript was made from, when you know it. The\n * plan follows the master's clock, so a transcript made from a source that\n * is off it is rejected the same way.\n */\n transcriptSourceId?: string\n /** Free-text editing steer. */\n instructions?: string\n /** Style-guide text applied to the plan. */\n styleGuide?: string\n /** `\"clips\"` mode only: how many clips to cut. */\n count?: number\n /** `\"clips\"` mode only: target duration per clip, in seconds. */\n targetDurationSec?: number\n /** Target aspect for cut clips (`\"clips\"`) or the teaser (`\"trailer\"`). */\n targetAspect?: \"16:9\" | \"9:16\" | \"1:1\" | \"4:5\"\n /** Target platform hint (e.g. a social platform name). */\n platform?: string\n /** Optionally associate this run with a workflow execution (display only). */\n workflowId?: string\n}\n\n/** Input for {@link EditResource.cameraSwitch} (podcast B5). */\nexport interface CameraSwitchInput {\n /** One EDL — an `editPlan` result (`unwrapEditPlanOutput`), not a clip set. */\n edl: Edl\n /** The word transcript WITH speaker labels (transcribe with speaker detection). */\n transcript: Transcript\n /** Speaker label → the EDL source id of that speaker's camera. A speaker\n * left out shows the source whose `speakers` list names them, else the\n * `wide` camera, else any camera that filmed them. */\n speakerMap?: Record<string, string>\n /** A {@link EditResource.speakerMap} job's `output_data.json`: a label in `speakerMap`\n * wins, then this result, then the n-th speaker heard gets the n-th camera. */\n speakerMapResult?: SpeakerMapResult | string\n /** Speaker label → display name (on the segments and the returned transcript). */\n speakerNames?: Record<string, string>\n /** The shortest shot in ms (default 2 500): a shorter turn holds the shot. */\n minShotMs?: number\n /** Cut this long before the new speaker starts, ms (default 200). */\n leadMs?: number\n /** With a `wide` source: break to it after this long on one camera, ms (default 20 000). */\n maxShotMs?: number\n /** With a `wide` source: every N-th cut goes to the wide (default 0 = off). */\n wideEvery?: number\n /** Overlapping speech → a layout hint (default false; Apply EDL renders cut-only edits). */\n layoutHints?: boolean\n /** Optionally associate this run with a workflow execution (display only). */\n workflowId?: string\n}\n\n/**\n * The podcast use-case node types, each one a route (`POST /v1/<type>`, and\n * `POST /v1/<type>/continue` to continue one of its runs).\n */\nexport { USE_CASE_NODE_TYPES, type UseCaseNodeType }\n\n/** The route that continues a run of `type`. */\nconst continuePathOf = (type: UseCaseNodeType): `/v1/${UseCaseNodeType}/continue` => `/v1/${type}/continue`\n\n/** What a use-case run (`tightenEpisode`, `episodeChapters`, `episodeTrailer`, `clipPack`) and `continueUseCase` answer: the run's job to poll. */\nexport interface UseCaseJobResult extends EditJobResult {\n /** The run's execution (absent on a deduplicated retry). */\n executionId?: string\n /** `true` when an `Idempotency-Key` retry found the run already started: `jobId` is that run. */\n deduped?: boolean\n}\n\n/** What `tightenEpisode` answers (a {@link UseCaseJobResult}). */\nexport type TightenEpisodeJobResult = UseCaseJobResult\n\n/**\n * What a use-case run is estimated at (`data`). Every credit amount is 0\n * on an edition without credits; `durationSec` is `null` when the recording's\n * length could not be read.\n */\nexport interface UseCaseEstimate {\n /** The whole run: its steps plus the fee. */\n totalCredits: number\n /** The steps at their own rates. */\n stepsCredits: number\n /** The per-run fee. */\n feeCredits: number\n /** The recording's length, in seconds. */\n durationSec: number | null\n}\n\n/** What a Tighten Episode run is estimated at (a {@link UseCaseEstimate}). */\nexport type TightenEpisodeEstimate = UseCaseEstimate\n\n/** Input for {@link EditResource.continueUseCase}. */\nexport interface UseCaseContinueInput {\n /** The run to continue: the job `tightenEpisode`, `episodeChapters`, `episodeTrailer` or `clipPack` (or an earlier continuation) answered. */\n jobId: string\n /**\n * `\"from-failed\"` re-runs what did not finish of a failed run;\n * `\"render-final\"` renders the full-quality result after a review-on preview\n * (a Chapters run has no preview: it is refused `render_final_not_preview`;\n * a Clip Pack edit that drops every clip is refused `use_case_nothing_kept`).\n */\n mode: \"from-failed\" | \"render-final\"\n /** Render final only: the reviewer's edit of the plan (an EDL). */\n editedEdl?: unknown\n /**\n * The run's node type: its continuation goes to `POST /v1/<nodeType>/continue`.\n * Optional: when absent the job is read first (`GET /v1/jobs/:id`, which\n * needs the `jobs:read` scope on an app token) for the type the run records.\n * Required when that read cannot answer: a key without `jobs:read`, or a job\n * that records no use-case type (the call rejects with `use_case_type_unknown`).\n */\n nodeType?: UseCaseNodeType\n}\n\n/** Per-call options for the use-case requests (Tighten Episode, Chapters, Trailer, Clip Pack, and their continuations). */\nexport interface UseCaseRequestOptions {\n /**\n * Sent as the `Idempotency-Key` header. Reuse the same value when retrying\n * the same request and the server answers the run it already started\n * (`deduped: true`) instead of starting a second one.\n */\n idempotencyKey?: string\n}\n\nfunction idempotencyHeaders(options?: UseCaseRequestOptions): { headers?: Record<string, string> } {\n return options?.idempotencyKey ? { headers: { \"Idempotency-Key\": options.idempotencyKey } } : {}\n}\n\n/**\n * Editorial primitives for podcast / long-form video editing, single-camera\n * and multicam: measure the cameras' offsets ({@link audioSync}), plan the cut\n * ({@link editPlan}), put each cut on the speaker's camera\n * ({@link cameraSwitch}), render a Preview to review (`applyEdl` with\n * `quality: \"proxy\"`), then the final (`quality: \"final\"`).\n *\n * - {@link silenceDetect}, {@link audioSync} and {@link applyEdl} are core nodes\n * available on every edition.\n * - {@link editPlan} and {@link cameraSwitch} run on nodaro.ai; a self-hosted\n * install relays them once it is connected (a 503\n * `code: \"nodaro_connection_required\"` otherwise).\n * - {@link tightenEpisode} runs the whole chain (transcribe, plan, render, and\n * optionally captions, music and framing) in one call. It is core, but a\n * self-hosted install needs a nodaro.ai connection for the steps that run\n * there (a 503 `code: \"nodaro_connection_required\"` otherwise).\n * {@link continueUseCase} continues one of its runs.\n * - {@link episodeChapters} lists a recording's chapters (transcribe, then the\n * plan in chapters mode) in one call; nothing renders. Like\n * {@link tightenEpisode}, a self-hosted install needs a nodaro.ai connection.\n * - {@link episodeTrailer} cuts a 20–40 s trailer of a recording and delivers\n * it in each chosen format in one call; the same connection applies.\n * - {@link clipPack} cuts a recording into a pack of short clips (framed and\n * captioned by default) in one call; the same connection applies.\n * - {@link remapTranscript} is a PURE local transform (no request) — the same\n * remap `applyEdl` performs on its `transcript`, exposed for callers that hold\n * an EDL and a transcript and only want the re-timed transcript.\n *\n * Every request method except the estimates ({@link estimateTightenEpisode},\n * {@link estimateEpisodeChapters}, {@link estimateEpisodeTrailer},\n * {@link estimateClipPack}: a quote, `{ data }`) returns\n * {@link EditJobResult} (the use-case runs a {@link UseCaseJobResult}); poll the\n * `jobId` with `client.jobs.getStatus(jobId)`.\n */\nexport class EditResource {\n constructor(private client: NodaroClientCore) {}\n\n /**\n * Detect silence ranges in an audio/video source (`POST /v1/silence-detect`).\n * Keyless — one ffmpeg pass over the source's audio proxy.\n */\n silenceDetect(input: SilenceDetectInput): Promise<EditJobResult> {\n return this.client.request(\"POST\", \"/v1/silence-detect\", {\n body: {\n audioUrl: input.audioUrl,\n ...(input.thresholdDb !== undefined ? { thresholdDb: input.thresholdDb } : {}),\n ...(input.minSilenceMs !== undefined ? { minSilenceMs: input.minSilenceMs } : {}),\n ...(input.padMs !== undefined ? { padMs: input.padMs } : {}),\n ...(input.workflowId !== undefined ? { workflowId: input.workflowId } : {}),\n },\n })\n }\n\n /**\n * Measure how far apart the clocks of 2–6 recordings of one conversation are\n * (`POST /v1/audio-sync`), by cross-correlating their audio — keyless, one\n * ffmpeg decode per source. The finished job's `output_data.json` is an\n * {@link AudioSyncResult}. A malformed request (fewer than 2 or more than 6\n * sources, a repeated id, a `reference` that is not one of the ids) throws a\n * typed `NodaroError` (400, `code: \"validation_error\"`) before any credits\n * are reserved.\n */\n audioSync(input: AudioSyncInput): Promise<EditJobResult> {\n return this.client.request(\"POST\", \"/v1/audio-sync\", {\n body: {\n sources: input.sources.map((s) => ({ id: s.id, url: s.url })),\n ...(input.reference !== undefined ? { reference: input.reference } : {}),\n ...(input.workflowId !== undefined ? { workflowId: input.workflowId } : {}),\n },\n })\n }\n\n /**\n * Which camera each speaker is on, from the cameras' own microphones (`POST\n * /v1/speaker-map`), keyless. `output_data.json` is a `SpeakerMapResult`: pass\n * it to {@link cameraSwitch} as `speakerMapResult`. A malformed request throws\n * a `NodaroError` (400 `validation_error`; 422 `no_speakers` for a transcript\n * with no speaker labels) before any credits are reserved.\n */\n speakerMap(input: SpeakerMapInput): Promise<EditJobResult> {\n return this.client.request(\"POST\", \"/v1/speaker-map\", {\n body: {\n sources: input.sources.map((s) => ({ id: s.id, url: s.url, ...(s.kind ? { kind: s.kind } : {}) })),\n transcript: input.transcript,\n ...(input.offsets !== undefined ? { offsets: input.offsets } : {}),\n ...(input.masterSourceId !== undefined ? { masterSourceId: input.masterSourceId } : {}),\n ...(input.wideSourceId !== undefined ? { wideSourceId: input.wideSourceId } : {}),\n ...(input.marginDb !== undefined ? { marginDb: input.marginDb } : {}),\n ...(input.workflowId !== undefined ? { workflowId: input.workflowId } : {}),\n },\n })\n }\n\n /**\n * Render an edit decision list into a video or audio cut (`POST /v1/apply-edl`).\n * The EDL is validated at ingress — an unresolvable source or a picture-less\n * segment on a video edit throws a typed `NodaroError` (400, `code:\n * \"invalid_edl\"`) before any credits are reserved.\n */\n applyEdl(input: ApplyEdlInput): Promise<EditJobResult> {\n return this.client.request(\"POST\", \"/v1/apply-edl\", {\n body: {\n edl: input.edl,\n ...(input.sources !== undefined ? { sources: input.sources } : {}),\n ...(input.transcript !== undefined ? { transcript: input.transcript } : {}),\n ...(input.output !== undefined ? { output: input.output } : {}),\n ...(input.quality !== undefined ? { quality: input.quality } : {}),\n ...(input.crossfadeMs !== undefined ? { crossfadeMs: input.crossfadeMs } : {}),\n ...(input.clipKey !== undefined ? { clipKey: input.clipKey } : {}),\n ...(input.planBasis !== undefined ? { planBasis: input.planBasis } : {}),\n ...(input.workflowId !== undefined ? { workflowId: input.workflowId } : {}),\n },\n })\n }\n\n /**\n * Tighten Episode (`POST /v1/tighten-episode`): tighten a podcast recording\n * in one call — transcribe, cut the silences and filler, render, with\n * optional captions, music and framing. Answers the run's job to poll; its\n * `output_data` holds the episode. The run is priced as its steps at their own\n * rates plus the listed per-run fee. Quote it first with\n * {@link estimateTightenEpisode}.\n */\n tightenEpisode(input: TightenEpisodeInput, options?: UseCaseRequestOptions): Promise<TightenEpisodeJobResult> {\n return this.client.request(\"POST\", \"/v1/tighten-episode\", { body: tightenBody(input), ...idempotencyHeaders(options) })\n }\n\n /**\n * What a Tighten Episode run is estimated at (`POST /v1/tighten-episode/estimate`):\n * its steps at their own rates plus its per-run fee. Nothing is created or\n * charged. The estimate leans high: the render is priced at the recording's\n * full length, while the charge follows the minutes actually rendered.\n */\n estimateTightenEpisode(input: TightenEpisodeInput): Promise<{ data: TightenEpisodeEstimate }> {\n return this.client.request(\"POST\", \"/v1/tighten-episode/estimate\", { body: tightenBody(input) })\n }\n\n /**\n * Chapters (`POST /v1/episode-chapters`): transcribe a recording and list its\n * chapters in one call. Answers the run's job to poll; the finished job's\n * `output_data.text` is the list as show notes (one `0:00 Title` line per\n * chapter; once a chapter starts at 1:00:00 or later, every line is\n * `H:MM:SS`), `output_data.json` the list itself (`{ startMs, title }[]`, the\n * same rows; the first starts at 0). A run that finds no chapters fails,\n * and its fee is refunded. Priced as its steps at their own rates plus the\n * listed per-run fee; quote it first with {@link estimateEpisodeChapters}.\n */\n episodeChapters(input: EpisodeChaptersInput, options?: UseCaseRequestOptions): Promise<UseCaseJobResult> {\n return this.client.request(\"POST\", \"/v1/episode-chapters\", { body: chaptersBody(input), ...idempotencyHeaders(options) })\n }\n\n /**\n * What a Chapters run is estimated at (`POST /v1/episode-chapters/estimate`):\n * its steps at their own rates plus its per-run fee. Nothing is created or\n * charged. A recording whose length cannot be read is estimated at the\n * 180-minute ceiling.\n */\n estimateEpisodeChapters(input: EpisodeChaptersInput): Promise<{ data: UseCaseEstimate }> {\n return this.client.request(\"POST\", \"/v1/episode-chapters/estimate\", { body: chaptersBody(input) })\n }\n\n /**\n * Trailer (`POST /v1/episode-trailer`): cut a 20–40 s trailer of a recording\n * and deliver it in each chosen format (padded, never cropped), optionally\n * after an intro card, in one call. The finished job's `output_data.formats`\n * is `{ format, url }[]` in format order, the first also `output_data.videoUrl`;\n * a format that failed is named in `output_data.failedFormats` (the run keeps\n * the others). With `reviewBeforeRender` the run stops at a preview\n * (`videoUrl`, no formats yet). Priced as its steps at their own rates plus\n * the listed per-run fee; quote it first with {@link estimateEpisodeTrailer}.\n */\n episodeTrailer(input: EpisodeTrailerInput, options?: UseCaseRequestOptions): Promise<UseCaseJobResult> {\n return this.client.request(\"POST\", \"/v1/episode-trailer\", { body: trailerBody(input), ...idempotencyHeaders(options) })\n }\n\n /**\n * What a Trailer run is estimated at (`POST /v1/episode-trailer/estimate`):\n * its steps at their own rates plus its per-run fee. Nothing is created or\n * charged. The trailer is quoted at 40 seconds, the longest trailer the\n * plan cuts; a Render final is quoted on the trailer the run cut (with the\n * review's edits), plus the intro card.\n */\n estimateEpisodeTrailer(input: EpisodeTrailerInput): Promise<{ data: UseCaseEstimate }> {\n return this.client.request(\"POST\", \"/v1/episode-trailer/estimate\", { body: trailerBody(input) })\n }\n\n /**\n * Clip Pack (`POST /v1/clip-pack`): cut a recording into a pack of short\n * clips in one call — the plan finds the best moments (`count`, default 8,\n * of about `targetDurationSec`, default 60), each is rendered (framed 9:16\n * with the speakers stacked by default; `framing: null` keeps the\n * recording's shape) and captioned. An audio recording makes audio clips.\n * The finished job's `output_data.clips` is `{ url, title?, hook?, clipKey,\n * thumbnailUrl?, captionsFailed? }[]` in plan order, the first also\n * `output_data.videoUrl` (`audioUrl` for audio clips). Every clip is tried:\n * one that cannot be rendered is skipped, not charged and counted on\n * `failedClips` (the pack keeps the others and its fee); a clip whose\n * captions failed comes uncaptioned (`captionsFailed`, counted on\n * `failedCaptions`). When no clip renders the run fails and its fee is\n * refunded. With `reviewBeforeRender` the run stops at previews; Render\n * final ({@link continueUseCase}) renders only the clips the edit keeps.\n * Priced as its steps at their own rates plus the listed per-run fee;\n * quote it first with {@link estimateClipPack}.\n */\n clipPack(input: ClipPackInput, options?: UseCaseRequestOptions): Promise<UseCaseJobResult> {\n return this.client.request(\"POST\", \"/v1/clip-pack\", { body: clipPackBody(input), ...idempotencyHeaders(options) })\n }\n\n /**\n * What a Clip Pack run is estimated at (`POST /v1/clip-pack/estimate`): its\n * steps at their own rates plus its per-run fee. Nothing is created or\n * charged. Each clip is quoted at twice the target length (the plan may cut\n * a clip longer than asked); the charge follows each clip's real length.\n */\n estimateClipPack(input: ClipPackInput): Promise<{ data: UseCaseEstimate }> {\n return this.client.request(\"POST\", \"/v1/clip-pack/estimate\", { body: clipPackBody(input) })\n }\n\n /**\n * Continue a use-case run as a new job (`POST /v1/<type>/continue`, the\n * run's own type: `input.nodeType`, else the type the job records, read with\n * `GET /v1/jobs/:id`; when that read cannot tell, this rejects with a\n * `NodaroError` coded `use_case_type_unknown` — pass `nodeType` then):\n * `\"from-failed\"` keeps the steps that finished and runs the rest (the fee\n * is held again; the failed run's was refunded);\n * `\"render-final\"` renders the full-quality result after a review-on preview,\n * with the preview's settings and no fee. A refusal that names another job\n * (`already_running`, `continuation_superseded`,\n * `render_final_already_rendered`) throws a `ContinuationRefusedError`\n * carrying that `jobId`.\n */\n async continueUseCase(input: UseCaseContinueInput, options?: UseCaseRequestOptions): Promise<UseCaseJobResult> {\n if (input.nodeType !== undefined && !isUseCaseNodeType(input.nodeType)) {\n throw new NodaroError(\n `continueUseCase: nodeType \"${String(input.nodeType)}\" is not a use-case node type (${USE_CASE_NODE_TYPES.join(\", \")})`,\n \"invalid_node_type\",\n 400,\n )\n }\n const type = input.nodeType ?? (await this.runTypeOf(input.jobId))\n return this.client.request(\"POST\", continuePathOf(type), {\n body: { jobId: input.jobId, mode: input.mode, ...(input.editedEdl !== undefined ? { editedEdl: input.editedEdl } : {}) },\n ...idempotencyHeaders(options),\n })\n }\n\n /**\n * The use-case type a run records (`input_data.type`, else its `job_type`).\n * When the key lacks the `jobs:read` scope (403 naming that scope) or the job\n * names no use-case type, the type cannot be read: this rejects with a\n * `NodaroError` (`use_case_type_unknown`, 400) asking for `nodeType`, and\n * nothing is posted (decided 2026-10-18: no route is guessed for the run).\n * Any other failure of the read, any other 403 included, is thrown as is.\n */\n private async runTypeOf(jobId: string): Promise<UseCaseNodeType> {\n const unknown = () =>\n new NodaroError(\"continueUseCase: the run's node type cannot be read — pass nodeType\", \"use_case_type_unknown\", 400)\n let row: { job_type?: unknown; input_data?: unknown } | undefined\n try {\n row = (await this.client.request<{ data?: { job_type?: unknown; input_data?: unknown } }>(\"GET\", `/v1/jobs/${encodeURIComponent(jobId)}`)).data\n } catch (err) {\n if (err instanceof ForbiddenError && err.missingScope === \"jobs:read\") throw unknown()\n throw err\n }\n const input = row?.input_data\n const recorded = input && typeof input === \"object\" && !Array.isArray(input) ? (input as { type?: unknown }).type : undefined\n const type = typeof recorded === \"string\" && recorded.length > 0 ? recorded : row?.job_type\n if (!isUseCaseNodeType(type)) throw unknown()\n return type\n }\n\n /**\n * Plan a transcript-driven cut (`POST /v1/edit-plan`). Reads a timed\n * transcript (plus optional silence ranges) and the media sources, and plans\n * the edit. The finished job's `output_data` holds the plan: an `Edl`\n * (`\"tighten\"` or `\"trailer\"`), an {@link EdlClipSet} (`\"clips\"`), or a\n * {@link ChapterSet} (`\"chapters\"`) — normalize it with {@link unwrapEditPlanOutput}.\n *\n * On a self-hosted install the request relays to nodaro.ai and needs the\n * install connected (a 503 `code: \"nodaro_connection_required\"` otherwise);\n * on nodaro.ai it runs directly.\n */\n editPlan(input: EditPlanInput): Promise<EditJobResult> {\n // The same pre-dispatch check the canvas and MCP run (B4): the server never\n // sees `offsets` — they are written onto the sources here.\n const planned = resolveEditPlanSources(input.sources, {\n offsets: input.offsets,\n transcriptSourceId: input.transcriptSourceId,\n })\n if (!planned.ok) {\n const message = planned.issues.map((issue) => describeAudioSyncOffsetIssue(issue)).join(\"; \")\n return Promise.reject(new NodaroError(`editPlan: ${message}`, \"edit_plan_sources\", 400))\n }\n const transcript = planned.transcriptSourceId\n ? { ...input.transcript, sourceId: planned.transcriptSourceId }\n : input.transcript\n return this.client.request(\"POST\", \"/v1/edit-plan\", {\n body: {\n mode: input.mode,\n planTier: input.planTier,\n transcript,\n sources: planned.sources,\n ...(input.silence !== undefined ? { silence: input.silence } : {}),\n ...(input.instructions !== undefined ? { instructions: input.instructions } : {}),\n ...(input.styleGuide !== undefined ? { styleGuide: input.styleGuide } : {}),\n ...(input.count !== undefined ? { count: input.count } : {}),\n ...(input.targetDurationSec !== undefined ? { targetDurationSec: input.targetDurationSec } : {}),\n ...(input.targetAspect !== undefined ? { targetAspect: input.targetAspect } : {}),\n ...(input.platform !== undefined ? { platform: input.platform } : {}),\n ...(input.workflowId !== undefined ? { workflowId: input.workflowId } : {}),\n },\n })\n }\n\n /**\n * Camera Switch (podcast B5): choose which camera shows each cut of `edl`\n * by who is speaking — the sound never changes. Cloud edition; a flat\n * price. The finished job's `output_data.json` is the switched EDL (feed it\n * to {@link applyEdl}) and `output_data.transcript` the transcript with\n * `speakerNames` applied. A transcript with no speaker labels rejects with\n * a {@link NodaroError} (`code: \"no_speakers\"`) before any request or charge.\n */\n cameraSwitch(input: CameraSwitchInput): Promise<EditJobResult> {\n if (transcriptSpeakerLabels(input.transcript).length === 0) {\n return Promise.reject(new NodaroError(\n \"cameraSwitch: the transcript has no speaker labels — transcribe with speaker detection on\",\n \"no_speakers\",\n 422,\n ))\n }\n const result = input.speakerMapResult\n if (result !== undefined && !speakerMapResultOf(result)) return Promise.reject(new NodaroError(\"cameraSwitch: speakerMapResult is not a Speaker Map result — pass that job's output_data.json\", \"not_a_speaker_map\", 400))\n const speakerMap = result !== undefined ? cameraSwitchSpeakerMap({ speakerMap: input.speakerMap }, input.edl, input.transcript, { speakerMap: result }) : input.speakerMap\n return this.client.request(\"POST\", \"/v1/camera-switch\", {\n body: {\n edl: input.edl,\n transcript: input.transcript,\n ...(speakerMap !== undefined ? { speakerMap } : {}),\n ...(input.speakerNames !== undefined ? { speakerNames: input.speakerNames } : {}),\n ...(input.minShotMs !== undefined ? { minShotMs: input.minShotMs } : {}),\n ...(input.leadMs !== undefined ? { leadMs: input.leadMs } : {}),\n ...(input.maxShotMs !== undefined ? { maxShotMs: input.maxShotMs } : {}),\n ...(input.wideEvery !== undefined ? { wideEvery: input.wideEvery } : {}),\n ...(input.layoutHints !== undefined ? { layoutHints: input.layoutHints } : {}),\n ...(input.workflowId !== undefined ? { workflowId: input.workflowId } : {}),\n },\n })\n }\n\n /**\n * Remap a transcript through an EDL — a PURE client-side transform (NO\n * request). Returns a new transcript whose word (and segment) timings are on\n * the EDL's rendered output clock, dropping words that fall in cut regions and\n * clipping straddlers. Runs `@nodaro/shared`'s canonical\n * `remapTranscriptThroughEdl`, the same remap `applyEdl` performs server-side.\n */\n remapTranscript(edl: Edl, transcript: Transcript): Transcript {\n return remapTranscriptThroughEdl(edl, transcript)\n }\n}\n"]}
@@ -0,0 +1,45 @@
1
+ 'use strict';
2
+
3
+ // src/resources/gallery.ts
4
+ var GalleryResource = class {
5
+ constructor(client) {
6
+ this.client = client;
7
+ }
8
+ client;
9
+ /**
10
+ * `GET /v1/gallery` → a page of the public gallery, newest first (no auth
11
+ * needed), or one person's work with `userId`.
12
+ */
13
+ browse(params = {}) {
14
+ return this.client.request("GET", "/v1/gallery", {
15
+ query: {
16
+ type: params.type,
17
+ userId: params.userId,
18
+ favoritesOnly: params.favoritesOnly,
19
+ limit: params.limit,
20
+ cursor: params.cursor
21
+ }
22
+ });
23
+ }
24
+ /**
25
+ * Favorite a job, or un-favorite it when it already is
26
+ * (`POST /v1/gallery/favorite`). You can favorite your own jobs and public
27
+ * ones; another person's private job is a `NotFoundError`. OAuth apps need
28
+ * the `assets:write` scope.
29
+ */
30
+ toggleFavorite(jobId) {
31
+ return this.client.request("POST", "/v1/gallery/favorite", { body: { jobId } });
32
+ }
33
+ /**
34
+ * Your favorited job ids, newest first (`GET /v1/gallery/favorites`). OAuth
35
+ * apps need the `assets:read` or `jobs:read` scope.
36
+ */
37
+ async favorites() {
38
+ const res = await this.client.request("GET", "/v1/gallery/favorites");
39
+ return res.data;
40
+ }
41
+ };
42
+
43
+ exports.GalleryResource = GalleryResource;
44
+ //# sourceMappingURL=chunk-WUKIJJG2.cjs.map
45
+ //# sourceMappingURL=chunk-WUKIJJG2.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/resources/gallery.ts"],"names":[],"mappings":";;;AAiEO,IAAM,kBAAN,MAAsB;AAAA,EAC3B,YAAoB,MAAA,EAA0B;AAA1B,IAAA,IAAA,CAAA,MAAA,GAAA,MAAA;AAAA,EAA2B;AAAA,EAA3B,MAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMpB,MAAA,CAAO,MAAA,GAA8B,EAAC,EAAyB;AAC7D,IAAA,OAAO,IAAA,CAAK,MAAA,CAAO,OAAA,CAAqB,KAAA,EAAO,aAAA,EAAe;AAAA,MAC5D,KAAA,EAAO;AAAA,QACL,MAAM,MAAA,CAAO,IAAA;AAAA,QACb,QAAQ,MAAA,CAAO,MAAA;AAAA,QACf,eAAe,MAAA,CAAO,aAAA;AAAA,QACtB,OAAO,MAAA,CAAO,KAAA;AAAA,QACd,QAAQ,MAAA,CAAO;AAAA;AACjB,KACD,CAAA;AAAA,EACH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,eAAe,KAAA,EAA8C;AAC3D,IAAA,OAAO,IAAA,CAAK,MAAA,CAAO,OAAA,CAA8B,MAAA,EAAQ,sBAAA,EAAwB,EAAE,IAAA,EAAM,EAAE,KAAA,EAAM,EAAG,CAAA;AAAA,EACtG;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,MAAM,SAAA,GAA+B;AACnC,IAAA,MAAM,MAAM,MAAM,IAAA,CAAK,MAAA,CAAO,OAAA,CAA4B,OAAO,uBAAuB,CAAA;AACxF,IAAA,OAAO,GAAA,CAAI,IAAA;AAAA,EACb;AACF","file":"chunk-WUKIJJG2.cjs","sourcesContent":["import type { NodaroClientCore } from \"../core.js\"\n\nexport type GalleryMediaType = \"image\" | \"video\" | \"audio\"\n\n/**\n * One gallery card (`GET /v1/gallery`): a completed generation with media.\n * Mirrors the route's item shape — never whose it is.\n */\nexport interface GalleryItem {\n /** The job id — pass it to `toggleFavorite`, or `client.jobs.get`. */\n readonly id: string\n readonly type: GalleryMediaType\n /** The kind of job that made it (`generate-image`, `image-to-video`, …). */\n readonly jobName: string\n readonly outputUrl: string\n readonly thumbnailUrl: string | null\n /** When the job completed. */\n readonly createdAt: string\n readonly prompt: string | null\n readonly model: string | null\n /** A private 720p Preview render (Apply EDL at proxy quality). Present only when true. */\n readonly preview?: true\n}\n\nexport interface BrowseGalleryParams {\n /** Only this media kind. */\n readonly type?: GalleryMediaType\n /**\n * Only this person's work. Your own id lists your own items, private ones\n * included; anyone else's lists their public ones.\n */\n readonly userId?: string\n /**\n * With YOUR OWN `userId` (from `client.me()`): only the items you\n * favorited. Anyone else's favorites are refused — `UnauthorizedError`\n * without a token, `ForbiddenError` with another person's `userId` or none.\n */\n readonly favoritesOnly?: boolean\n /** Page size, 1–50 (default 20). */\n readonly limit?: number\n /** The previous page's `nextCursor`. */\n readonly cursor?: string\n}\n\nexport interface GalleryPage {\n readonly data: GalleryItem[]\n /** Pass back as `cursor` for the next page; `null` on the last one. */\n readonly nextCursor: string | null\n /** Counted on the first page only (no cursor). */\n readonly totalCount?: number\n}\n\n/** What {@link GalleryResource.toggleFavorite} answers: whether the job is now a favorite. */\nexport interface ToggleFavoriteResult {\n readonly favorited: boolean\n}\n\n/**\n * Gallery — the public gallery of completed generations, and your favorites.\n *\n * A favorite is a bookmark on a generation: one of your own, or anyone's in\n * the public gallery. Your jobs carry it as `Job.favorited`, and\n * `client.jobs.list({ favorited: true })` lists them. Not available on a\n * deployment that hides the gallery (the routes answer 404 there).\n */\nexport class GalleryResource {\n constructor(private client: NodaroClientCore) {}\n\n /**\n * `GET /v1/gallery` → a page of the public gallery, newest first (no auth\n * needed), or one person's work with `userId`.\n */\n browse(params: BrowseGalleryParams = {}): Promise<GalleryPage> {\n return this.client.request<GalleryPage>(\"GET\", \"/v1/gallery\", {\n query: {\n type: params.type,\n userId: params.userId,\n favoritesOnly: params.favoritesOnly,\n limit: params.limit,\n cursor: params.cursor,\n },\n })\n }\n\n /**\n * Favorite a job, or un-favorite it when it already is\n * (`POST /v1/gallery/favorite`). You can favorite your own jobs and public\n * ones; another person's private job is a `NotFoundError`. OAuth apps need\n * the `assets:write` scope.\n */\n toggleFavorite(jobId: string): Promise<ToggleFavoriteResult> {\n return this.client.request<ToggleFavoriteResult>(\"POST\", \"/v1/gallery/favorite\", { body: { jobId } })\n }\n\n /**\n * Your favorited job ids, newest first (`GET /v1/gallery/favorites`). OAuth\n * apps need the `assets:read` or `jobs:read` scope.\n */\n async favorites(): Promise<string[]> {\n const res = await this.client.request<{ data: string[] }>(\"GET\", \"/v1/gallery/favorites\")\n return res.data\n }\n}\n"]}
@@ -0,0 +1,29 @@
1
+ // src/resources/shots.ts
2
+ var ShotsResource = class {
3
+ constructor(client) {
4
+ this.client = client;
5
+ }
6
+ client;
7
+ /** Create a shot record. Returns the new shot's id — an unguessable
8
+ * capability string that doubles as the share-link path segment. */
9
+ create(input = {}) {
10
+ return this.client.request("POST", "/v1/shots", { body: input });
11
+ }
12
+ /** Read a shot. Public shots are readable by anyone holding the id;
13
+ * private shots resolve only for their owner (404 otherwise). */
14
+ get(id) {
15
+ return this.client.request("GET", `/v1/shots/${encodeURIComponent(id)}`);
16
+ }
17
+ /** Update an owned shot (any subset of fields, e.g. a visibility toggle). */
18
+ update(id, input) {
19
+ return this.client.request("PATCH", `/v1/shots/${encodeURIComponent(id)}`, { body: input });
20
+ }
21
+ /** Delete an owned shot. */
22
+ async delete(id) {
23
+ await this.client.request("DELETE", `/v1/shots/${encodeURIComponent(id)}`);
24
+ }
25
+ };
26
+
27
+ export { ShotsResource };
28
+ //# sourceMappingURL=chunk-WVFAQBS7.js.map
29
+ //# sourceMappingURL=chunk-WVFAQBS7.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/resources/shots.ts"],"names":[],"mappings":";AA4DO,IAAM,gBAAN,MAAoB;AAAA,EACzB,YAAoB,MAAA,EAA0B;AAA1B,IAAA,IAAA,CAAA,MAAA,GAAA,MAAA;AAAA,EAA2B;AAAA,EAA3B,MAAA;AAAA;AAAA;AAAA,EAIpB,MAAA,CAAO,KAAA,GAAyB,EAAC,EAA4B;AAC3D,IAAA,OAAO,IAAA,CAAK,OAAO,OAAA,CAAQ,MAAA,EAAQ,aAAa,EAAE,IAAA,EAAM,OAAO,CAAA;AAAA,EACjE;AAAA;AAAA;AAAA,EAIA,IAAI,EAAA,EAAqC;AACvC,IAAA,OAAO,IAAA,CAAK,OAAO,OAAA,CAAQ,KAAA,EAAO,aAAa,kBAAA,CAAmB,EAAE,CAAC,CAAA,CAAE,CAAA;AAAA,EACzE;AAAA;AAAA,EAGA,MAAA,CAAO,IAAY,KAAA,EAAiD;AAClE,IAAA,OAAO,IAAA,CAAK,MAAA,CAAO,OAAA,CAAQ,OAAA,EAAS,CAAA,UAAA,EAAa,kBAAA,CAAmB,EAAE,CAAC,CAAA,CAAA,EAAI,EAAE,IAAA,EAAM,KAAA,EAAO,CAAA;AAAA,EAC5F;AAAA;AAAA,EAGA,MAAM,OAAO,EAAA,EAA2B;AACtC,IAAA,MAAM,IAAA,CAAK,OAAO,OAAA,CAAQ,QAAA,EAAU,aAAa,kBAAA,CAAmB,EAAE,CAAC,CAAA,CAAE,CAAA;AAAA,EAC3E;AACF","file":"chunk-WVFAQBS7.js","sourcesContent":["import type { NodaroClientCore } from \"../core.js\"\n\n/**\n * Cine shots — the Share → Remix record behind `/s/:id` share links.\n * Mirrors the backend's `/v1/shots` wire contract (`shots.ts::toWire`);\n * types are declared here so the SDK stays dependency-free — same\n * convention as `ModelSummary` / `PickerCatalog`.\n */\n\n/** An `@`-mention entity reference captured in the shot's prompt state. */\nexport interface ShotEntityRef {\n entitySlug: string\n variantSlug?: string\n role?: string\n kind?: \"character\" | \"location\" | \"object\" | \"creature\"\n}\n\nexport type ShotMode = \"single\" | \"multi-shot\" | \"frame-to-motion\" | \"storyboard\"\n\nexport interface Shot {\n id: string\n mode: ShotMode\n /** Opaque picker/builder selection state — round-tripped verbatim. */\n selectionState: Record<string, unknown>\n freeText?: string\n negativePrompt?: string\n assembledPrompt?: string\n perModelPrompts?: Record<string, string>\n models?: string[]\n entityRefs?: ShotEntityRef[]\n resultUrls?: string[]\n visibility: \"private\" | \"public\"\n schemaVersion: number\n ownerId: string\n createdAt: string\n updatedAt: string\n}\n\nexport interface CreateShotInput {\n mode?: ShotMode\n selectionState?: Record<string, unknown>\n freeText?: string\n negativePrompt?: string\n assembledPrompt?: string\n perModelPrompts?: Record<string, string>\n /** Video model ids the shot targets (max 16). */\n models?: string[]\n entityRefs?: ShotEntityRef[]\n /**\n * Result media URLs (max 32). Must be plain public http(s) URLs — the\n * backend rejects signed URLs so a token can never leak into a share\n * record.\n */\n resultUrls?: string[]\n /** Rows default to private; sharing is an explicit \"make public\" action. */\n visibility?: \"private\" | \"public\"\n}\n\nexport type UpdateShotInput = CreateShotInput\n\nexport class ShotsResource {\n constructor(private client: NodaroClientCore) {}\n\n /** Create a shot record. Returns the new shot's id — an unguessable\n * capability string that doubles as the share-link path segment. */\n create(input: CreateShotInput = {}): Promise<{ id: string }> {\n return this.client.request(\"POST\", \"/v1/shots\", { body: input })\n }\n\n /** Read a shot. Public shots are readable by anyone holding the id;\n * private shots resolve only for their owner (404 otherwise). */\n get(id: string): Promise<{ shot: Shot }> {\n return this.client.request(\"GET\", `/v1/shots/${encodeURIComponent(id)}`)\n }\n\n /** Update an owned shot (any subset of fields, e.g. a visibility toggle). */\n update(id: string, input: UpdateShotInput): Promise<{ shot: Shot }> {\n return this.client.request(\"PATCH\", `/v1/shots/${encodeURIComponent(id)}`, { body: input })\n }\n\n /** Delete an owned shot. */\n async delete(id: string): Promise<void> {\n await this.client.request(\"DELETE\", `/v1/shots/${encodeURIComponent(id)}`)\n }\n}\n"]}
@@ -0,0 +1,3 @@
1
+
2
+ //# sourceMappingURL=chunk-X7RDNMN7.js.map
3
+ //# sourceMappingURL=chunk-X7RDNMN7.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"chunk-X7RDNMN7.js"}
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+
3
+ //# sourceMappingURL=chunk-X7XP5WBP.cjs.map
4
+ //# sourceMappingURL=chunk-X7XP5WBP.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"chunk-X7XP5WBP.cjs"}
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+
3
+ //# sourceMappingURL=chunk-XWKNE6DH.cjs.map
4
+ //# sourceMappingURL=chunk-XWKNE6DH.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"chunk-XWKNE6DH.cjs"}