@nodaro/shared 3.52.1 → 3.54.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 (146) hide show
  1. package/dist/{chunk-6CVY3345.js → chunk-25KAGSPT.js} +3 -3
  2. package/dist/{chunk-6CVY3345.js.map → chunk-25KAGSPT.js.map} +1 -1
  3. package/dist/{chunk-FBLMWA2R.cjs → chunk-2OYV6K7D.cjs} +4 -4
  4. package/dist/{chunk-FBLMWA2R.cjs.map → chunk-2OYV6K7D.cjs.map} +1 -1
  5. package/dist/{chunk-J3HPEKGJ.cjs → chunk-2R74OU76.cjs} +23 -23
  6. package/dist/chunk-2R74OU76.cjs.map +1 -0
  7. package/dist/{chunk-CSPELPDB.cjs → chunk-3633VD2M.cjs} +8 -8
  8. package/dist/{chunk-CSPELPDB.cjs.map → chunk-3633VD2M.cjs.map} +1 -1
  9. package/dist/{chunk-A24LLEXS.js → chunk-3CHOZ573.js} +23 -23
  10. package/dist/chunk-3CHOZ573.js.map +1 -0
  11. package/dist/{chunk-IJ6XNHSD.cjs → chunk-3GMTGX3D.cjs} +27 -27
  12. package/dist/{chunk-IJ6XNHSD.cjs.map → chunk-3GMTGX3D.cjs.map} +1 -1
  13. package/dist/{chunk-AJFQ5242.js → chunk-5DVDHL7Y.js} +5 -5
  14. package/dist/{chunk-AJFQ5242.js.map → chunk-5DVDHL7Y.js.map} +1 -1
  15. package/dist/{chunk-VNHX6TQT.cjs → chunk-5R6LTKE5.cjs} +5 -5
  16. package/dist/{chunk-VNHX6TQT.cjs.map → chunk-5R6LTKE5.cjs.map} +1 -1
  17. package/dist/{chunk-YOH5AUYL.js → chunk-6UR5UE5G.js} +9 -9
  18. package/dist/{chunk-YOH5AUYL.js.map → chunk-6UR5UE5G.js.map} +1 -1
  19. package/dist/{chunk-3RYKIUAE.js → chunk-6XVHYD5R.js} +12 -8
  20. package/dist/chunk-6XVHYD5R.js.map +1 -0
  21. package/dist/{chunk-FRXVOYL2.js → chunk-ADWIAQQS.js} +3 -3
  22. package/dist/{chunk-FRXVOYL2.js.map → chunk-ADWIAQQS.js.map} +1 -1
  23. package/dist/{chunk-VLNOQJDO.cjs → chunk-AGTCHDG5.cjs} +6 -6
  24. package/dist/{chunk-VLNOQJDO.cjs.map → chunk-AGTCHDG5.cjs.map} +1 -1
  25. package/dist/{chunk-MI63SSCJ.cjs → chunk-ATWLKUAI.cjs} +4 -4
  26. package/dist/{chunk-MI63SSCJ.cjs.map → chunk-ATWLKUAI.cjs.map} +1 -1
  27. package/dist/{chunk-FIROF3TM.js → chunk-C5S75476.js} +5 -5
  28. package/dist/{chunk-FIROF3TM.js.map → chunk-C5S75476.js.map} +1 -1
  29. package/dist/{chunk-7HWXJIQ6.cjs → chunk-C6IQCKJT.cjs} +4 -4
  30. package/dist/{chunk-7HWXJIQ6.cjs.map → chunk-C6IQCKJT.cjs.map} +1 -1
  31. package/dist/{chunk-K3QNGRRX.js → chunk-CZCOL3M5.js} +10 -6
  32. package/dist/chunk-CZCOL3M5.js.map +1 -0
  33. package/dist/{chunk-JAGYUDOK.js → chunk-DUL5ZLTJ.js} +3 -3
  34. package/dist/{chunk-JAGYUDOK.js.map → chunk-DUL5ZLTJ.js.map} +1 -1
  35. package/dist/{chunk-BG5272F5.js → chunk-E4YES25K.js} +4 -4
  36. package/dist/{chunk-BG5272F5.js.map → chunk-E4YES25K.js.map} +1 -1
  37. package/dist/{chunk-QBXC3AXS.cjs → chunk-FIYVKW7F.cjs} +12 -12
  38. package/dist/{chunk-QBXC3AXS.cjs.map → chunk-FIYVKW7F.cjs.map} +1 -1
  39. package/dist/{chunk-CQJYKSXF.js → chunk-FVVD6XY2.js} +5 -3
  40. package/dist/chunk-FVVD6XY2.js.map +1 -0
  41. package/dist/chunk-HD45Y7QU.cjs +27 -0
  42. package/dist/{chunk-H7HKLN2W.cjs.map → chunk-HD45Y7QU.cjs.map} +1 -1
  43. package/dist/{chunk-JAD2SBD4.js → chunk-HEF4BIMA.js} +4 -4
  44. package/dist/{chunk-JAD2SBD4.js.map → chunk-HEF4BIMA.js.map} +1 -1
  45. package/dist/{chunk-GL5Z3CC4.js → chunk-HG3KKCJJ.js} +3 -3
  46. package/dist/{chunk-GL5Z3CC4.js.map → chunk-HG3KKCJJ.js.map} +1 -1
  47. package/dist/{chunk-MI6CZQCG.cjs → chunk-IPCWYKX5.cjs} +45 -45
  48. package/dist/{chunk-MI6CZQCG.cjs.map → chunk-IPCWYKX5.cjs.map} +1 -1
  49. package/dist/{chunk-7YFQKR5C.cjs → chunk-KM35K2M5.cjs} +21 -21
  50. package/dist/{chunk-7YFQKR5C.cjs.map → chunk-KM35K2M5.cjs.map} +1 -1
  51. package/dist/{chunk-OWVWV4T2.js → chunk-KMSEU6FK.js} +3 -3
  52. package/dist/{chunk-OWVWV4T2.js.map → chunk-KMSEU6FK.js.map} +1 -1
  53. package/dist/{chunk-2LNQ2MDO.js → chunk-LYWJAXPT.js} +3 -3
  54. package/dist/{chunk-2LNQ2MDO.js.map → chunk-LYWJAXPT.js.map} +1 -1
  55. package/dist/{chunk-6DAWSVX2.cjs → chunk-M3SXUUWC.cjs} +13 -7
  56. package/dist/chunk-M3SXUUWC.cjs.map +1 -0
  57. package/dist/{chunk-JZJRD7RG.js → chunk-MGJR5OXO.js} +5 -5
  58. package/dist/{chunk-JZJRD7RG.js.map → chunk-MGJR5OXO.js.map} +1 -1
  59. package/dist/{chunk-AVUW7XKP.cjs → chunk-MTUNORQB.cjs} +11 -11
  60. package/dist/{chunk-AVUW7XKP.cjs.map → chunk-MTUNORQB.cjs.map} +1 -1
  61. package/dist/{chunk-6LCZPDIF.js → chunk-N3WL6IOJ.js} +3 -3
  62. package/dist/{chunk-6LCZPDIF.js.map → chunk-N3WL6IOJ.js.map} +1 -1
  63. package/dist/{chunk-XRXPWW7P.cjs → chunk-ND3IE3IB.cjs} +47 -47
  64. package/dist/{chunk-XRXPWW7P.cjs.map → chunk-ND3IE3IB.cjs.map} +1 -1
  65. package/dist/{chunk-34EXMNOX.cjs → chunk-NEIWY6CC.cjs} +6 -6
  66. package/dist/{chunk-34EXMNOX.cjs.map → chunk-NEIWY6CC.cjs.map} +1 -1
  67. package/dist/{chunk-AJPV3RZJ.js → chunk-NMX6HQC3.js} +5 -5
  68. package/dist/{chunk-AJPV3RZJ.js.map → chunk-NMX6HQC3.js.map} +1 -1
  69. package/dist/{chunk-66GADQRV.cjs → chunk-OVIIJVXH.cjs} +21 -21
  70. package/dist/{chunk-66GADQRV.cjs.map → chunk-OVIIJVXH.cjs.map} +1 -1
  71. package/dist/{chunk-5PCI6M44.cjs → chunk-PONP5J5E.cjs} +5 -3
  72. package/dist/chunk-PONP5J5E.cjs.map +1 -0
  73. package/dist/{chunk-ETU6NWE2.cjs → chunk-QP5JLSCJ.cjs} +10 -6
  74. package/dist/chunk-QP5JLSCJ.cjs.map +1 -0
  75. package/dist/{chunk-SRLWSI6Q.cjs → chunk-SEEQ3H22.cjs} +5 -5
  76. package/dist/{chunk-SRLWSI6Q.cjs.map → chunk-SEEQ3H22.cjs.map} +1 -1
  77. package/dist/{chunk-25OWMP6B.cjs → chunk-SZUDEFX2.cjs} +41 -41
  78. package/dist/{chunk-25OWMP6B.cjs.map → chunk-SZUDEFX2.cjs.map} +1 -1
  79. package/dist/{chunk-TRZMLQSL.js → chunk-YBZQXZ6A.js} +3 -3
  80. package/dist/{chunk-TRZMLQSL.js.map → chunk-YBZQXZ6A.js.map} +1 -1
  81. package/dist/{chunk-WBPJNXYN.js → chunk-ZKHQSG76.js} +4 -4
  82. package/dist/{chunk-WBPJNXYN.js.map → chunk-ZKHQSG76.js.map} +1 -1
  83. package/dist/{chunk-VSNQLSME.js → chunk-ZWB3NG4M.js} +3 -3
  84. package/dist/{chunk-VSNQLSME.js.map → chunk-ZWB3NG4M.js.map} +1 -1
  85. package/dist/entries/apps.cjs +43 -43
  86. package/dist/entries/apps.js +8 -8
  87. package/dist/entries/credits.cjs +150 -150
  88. package/dist/entries/credits.js +7 -7
  89. package/dist/entries/media.cjs +81 -73
  90. package/dist/entries/media.d.cts +60 -80
  91. package/dist/entries/media.d.ts +60 -80
  92. package/dist/entries/media.js +2 -2
  93. package/dist/entries/model-catalog.cjs +66 -66
  94. package/dist/entries/model-catalog.js +4 -4
  95. package/dist/entries/models.cjs +277 -277
  96. package/dist/entries/models.js +5 -5
  97. package/dist/entries/nodes.cjs +207 -207
  98. package/dist/entries/nodes.js +9 -9
  99. package/dist/entries/pipeline.cjs +149 -149
  100. package/dist/entries/pipeline.js +3 -3
  101. package/dist/entries/types.d.cts +13 -0
  102. package/dist/entries/types.d.ts +13 -0
  103. package/dist/entries/ugc.cjs +71 -71
  104. package/dist/entries/ugc.js +4 -4
  105. package/dist/entries/video.cjs +117 -117
  106. package/dist/entries/video.js +4 -4
  107. package/dist/entries/workflow.cjs +99 -99
  108. package/dist/entries/workflow.js +2 -2
  109. package/dist/index.cjs +1233 -1225
  110. package/dist/index.d.cts +1 -1
  111. package/dist/index.d.ts +1 -1
  112. package/dist/index.js +21 -21
  113. package/package.json +1 -1
  114. package/src/__tests__/priced-clip-seconds.test.ts +193 -0
  115. package/src/__tests__/video-depth.test.ts +61 -19
  116. package/src/__tests__/video-face-mesh.test.ts +3 -2
  117. package/src/__tests__/video-mask.test.ts +1 -1
  118. package/src/catalog-projection.ts +13 -0
  119. package/src/entries/media.ts +1 -0
  120. package/src/generated/unit-contracts.ts +1 -0
  121. package/src/i18n/style.ar.ts +5 -0
  122. package/src/i18n/style.de.ts +5 -0
  123. package/src/i18n/style.es.ts +5 -0
  124. package/src/i18n/style.fr.ts +5 -0
  125. package/src/i18n/style.he.ts +5 -0
  126. package/src/i18n/style.hi.ts +5 -0
  127. package/src/i18n/style.ja.ts +5 -0
  128. package/src/i18n/style.ko.ts +5 -0
  129. package/src/i18n/style.pt-BR.ts +5 -0
  130. package/src/i18n/style.ru.ts +5 -0
  131. package/src/i18n/style.zh-CN.ts +5 -0
  132. package/src/mask-composite.ts +6 -5
  133. package/src/model-catalog.ts +21 -21
  134. package/src/priced-clip-seconds.ts +28 -0
  135. package/src/video-depth.ts +25 -12
  136. package/src/video-face-mesh.ts +10 -4
  137. package/src/video-mask.ts +12 -7
  138. package/dist/chunk-3RYKIUAE.js.map +0 -1
  139. package/dist/chunk-5PCI6M44.cjs.map +0 -1
  140. package/dist/chunk-6DAWSVX2.cjs.map +0 -1
  141. package/dist/chunk-A24LLEXS.js.map +0 -1
  142. package/dist/chunk-CQJYKSXF.js.map +0 -1
  143. package/dist/chunk-ETU6NWE2.cjs.map +0 -1
  144. package/dist/chunk-H7HKLN2W.cjs +0 -27
  145. package/dist/chunk-J3HPEKGJ.cjs.map +0 -1
  146. package/dist/chunk-K3QNGRRX.js.map +0 -1
@@ -468,8 +468,8 @@ var IMAGE_MODELS = {
468
468
  resolutions: ["1K", "2K", "4K"],
469
469
  pricing: [
470
470
  { identifier: "gpt-image-2", credits: 15, note: "1K default" },
471
- { identifier: "gpt-image-2:2K", credits: 30, note: "2K" },
472
- { identifier: "gpt-image-2:4K", credits: 60, note: "4K" }
471
+ { identifier: "gpt-image-2:2K", credits: 25, note: "2K" },
472
+ { identifier: "gpt-image-2:4K", credits: 40, note: "4K" }
473
473
  ],
474
474
  safetyFilter: { stochastic: true, fallback: "nano-banana-pro" },
475
475
  featured: true
@@ -490,8 +490,8 @@ var IMAGE_MODELS = {
490
490
  resolutions: ["1K", "2K", "4K"],
491
491
  pricing: [
492
492
  { identifier: "gpt-image-2-i2i", credits: 15, note: "1K default" },
493
- { identifier: "gpt-image-2-i2i:2K", credits: 30, note: "2K" },
494
- { identifier: "gpt-image-2-i2i:4K", credits: 60, note: "4K" }
493
+ { identifier: "gpt-image-2-i2i:2K", credits: 25, note: "2K" },
494
+ { identifier: "gpt-image-2-i2i:4K", credits: 40, note: "4K" }
495
495
  ]
496
496
  },
497
497
  "gpt-image-2-5-flare": {
@@ -1654,13 +1654,13 @@ var VIDEO_MODELS = {
1654
1654
  { identifier: "seedance-2-5", credits: 1260, note: "default 8s 720p \u2014 see :Ns:res variants for exact" },
1655
1655
  { identifier: "seedance-2-5:8s:480p", credits: 560, note: "8s 480p" },
1656
1656
  { identifier: "seedance-2-5:8s:720p", credits: 1260, note: "8s 720p" },
1657
- { identifier: "seedance-2-5:8s:1080p", credits: 2280, note: "8s 1080p" },
1657
+ { identifier: "seedance-2-5:8s:1080p", credits: 3160, note: "8s 1080p" },
1658
1658
  { identifier: "seedance-2-5:8s:480p-ref", credits: 340, note: "8s 480p with reference video" },
1659
1659
  { identifier: "seedance-2-5:8s:720p-ref", credits: 760, note: "8s 720p with reference video" },
1660
- { identifier: "seedance-2-5:8s:1080p-ref", credits: 1370, note: "8s 1080p with reference video" },
1660
+ { identifier: "seedance-2-5:8s:1080p-ref", credits: 1900, note: "8s 1080p with reference video" },
1661
1661
  { identifier: "seedance-2-5:30s:480p", credits: 2100, note: "30s 480p (max)" },
1662
1662
  { identifier: "seedance-2-5:30s:720p", credits: 4730, note: "30s 720p (max)" },
1663
- { identifier: "seedance-2-5:30s:1080p", credits: 8550, note: "30s 1080p (max)" }
1663
+ { identifier: "seedance-2-5:30s:1080p", credits: 11850, note: "30s 1080p (max)" }
1664
1664
  ]
1665
1665
  },
1666
1666
  // ── Wan ──
@@ -2439,9 +2439,11 @@ var VIDEO_MODELS = {
2439
2439
  { identifier: "volcengine-lipsync:300s", credits: 6e3, note: "5-min ceiling" }
2440
2440
  ]
2441
2441
  },
2442
- // ── Video Depth ── (video-depth node; billed per duration bucket via
2443
- // videoDepthCreditId in video-depth.ts — `<provider>:<bucket>s`, bare row =
2444
- // the 300 s ceiling, same shape as volcengine-lipsync.)
2442
+ // ── Video Depth ── (video-depth node; priced by the input clip's length via
2443
+ // videoDepthCreditId in video-depth.ts — `<provider>:<n>s`, one row per whole
2444
+ // second of the clip (`pricedClipSeconds`), representative rows below: `:1s` …
2445
+ // `:300s` on Video Depth Anything, `:1s` … `:80s` on Depth Anything per frame.
2446
+ // Bare row = the provider's longest clip: 300 s and 80 s.)
2445
2447
  "video-depth-anything": {
2446
2448
  id: "video-depth-anything",
2447
2449
  kind: "video",
@@ -2454,11 +2456,10 @@ var VIDEO_MODELS = {
2454
2456
  useCases: ["depth", "video-to-video", "compositing"],
2455
2457
  pricing: [
2456
2458
  { identifier: "video-depth-anything", credits: 6e3, note: "5-min ceiling (no duration given)" },
2457
- { identifier: "video-depth-anything:15s", credits: 300 },
2458
- { identifier: "video-depth-anything:30s", credits: 600 },
2459
- { identifier: "video-depth-anything:60s", credits: 1200 },
2460
- { identifier: "video-depth-anything:120s", credits: 2400 },
2461
- { identifier: "video-depth-anything:300s", credits: 6e3, note: "5-min ceiling" }
2459
+ { identifier: "video-depth-anything:1s", credits: 20, note: "1s (min) \u2014 priced per second of the clip at this row's credits, the length rounded up after ignoring up to 0.05 s past a whole second" },
2460
+ { identifier: "video-depth-anything:15s", credits: 300, note: "15s" },
2461
+ { identifier: "video-depth-anything:60s", credits: 1200, note: "1 min" },
2462
+ { identifier: "video-depth-anything:300s", credits: 6e3, note: "5-min ceiling (max)" }
2462
2463
  ]
2463
2464
  },
2464
2465
  "depth-anything-frames": {
@@ -2472,12 +2473,11 @@ var VIDEO_MODELS = {
2472
2473
  description: "Depth Anything v1 run on each frame. Grayscale or inferno colormap; may flicker between frames. Up to 80 s.",
2473
2474
  useCases: ["depth", "video-to-video"],
2474
2475
  pricing: [
2475
- { identifier: "depth-anything-frames", credits: 600, note: "5-min ceiling (no duration given)" },
2476
- { identifier: "depth-anything-frames:15s", credits: 30 },
2477
- { identifier: "depth-anything-frames:30s", credits: 60 },
2478
- { identifier: "depth-anything-frames:60s", credits: 120 },
2479
- { identifier: "depth-anything-frames:120s", credits: 240 },
2480
- { identifier: "depth-anything-frames:300s", credits: 600, note: "5-min ceiling" }
2476
+ { identifier: "depth-anything-frames", credits: 160, note: "80s ceiling (no duration given)" },
2477
+ { identifier: "depth-anything-frames:1s", credits: 2, note: "1s (min) \u2014 priced per second of the clip at this row's credits, the length rounded up after ignoring up to 0.05 s past a whole second" },
2478
+ { identifier: "depth-anything-frames:15s", credits: 30, note: "15s" },
2479
+ { identifier: "depth-anything-frames:60s", credits: 120, note: "1 min" },
2480
+ { identifier: "depth-anything-frames:80s", credits: 160, note: "80s ceiling (max)" }
2481
2481
  ]
2482
2482
  },
2483
2483
  // ── Gemini video analysis ── (Gemini-only; billed per duration bucket — the
@@ -3645,5 +3645,5 @@ exports.resolutionOptionsByKind = resolutionOptionsByKind;
3645
3645
  exports.seedanceDraftFinalizeBillableSec = seedanceDraftFinalizeBillableSec;
3646
3646
  exports.seedanceDraftFinalizeCreditId = seedanceDraftFinalizeCreditId;
3647
3647
  exports.validateModelInput = validateModelInput;
3648
- //# sourceMappingURL=chunk-J3HPEKGJ.cjs.map
3649
- //# sourceMappingURL=chunk-J3HPEKGJ.cjs.map
3648
+ //# sourceMappingURL=chunk-2R74OU76.cjs.map
3649
+ //# sourceMappingURL=chunk-2R74OU76.cjs.map