@nodaro/shared 3.53.0 → 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 (132) hide show
  1. package/dist/{chunk-NR5IFEYC.js → chunk-25KAGSPT.js} +3 -3
  2. package/dist/{chunk-NR5IFEYC.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-HDXAM5JW.cjs → chunk-2R74OU76.cjs} +19 -20
  6. package/dist/chunk-2R74OU76.cjs.map +1 -0
  7. package/dist/{chunk-WGXTTQNT.cjs → chunk-3633VD2M.cjs} +8 -8
  8. package/dist/{chunk-WGXTTQNT.cjs.map → chunk-3633VD2M.cjs.map} +1 -1
  9. package/dist/{chunk-DLSJTVS5.js → chunk-3CHOZ573.js} +19 -20
  10. package/dist/chunk-3CHOZ573.js.map +1 -0
  11. package/dist/{chunk-IORF5UGR.cjs → chunk-3GMTGX3D.cjs} +27 -27
  12. package/dist/{chunk-IORF5UGR.cjs.map → chunk-3GMTGX3D.cjs.map} +1 -1
  13. package/dist/{chunk-L6IGNCIV.js → chunk-5DVDHL7Y.js} +5 -5
  14. package/dist/{chunk-L6IGNCIV.js.map → chunk-5DVDHL7Y.js.map} +1 -1
  15. package/dist/{chunk-GJTRQOH6.cjs → chunk-5R6LTKE5.cjs} +5 -5
  16. package/dist/{chunk-GJTRQOH6.cjs.map → chunk-5R6LTKE5.cjs.map} +1 -1
  17. package/dist/{chunk-ZGPLTM5Y.js → chunk-6UR5UE5G.js} +9 -9
  18. package/dist/{chunk-ZGPLTM5Y.js.map → chunk-6UR5UE5G.js.map} +1 -1
  19. package/dist/{chunk-YCKHGHXN.js → chunk-6XVHYD5R.js} +11 -8
  20. package/dist/chunk-6XVHYD5R.js.map +1 -0
  21. package/dist/{chunk-A7RJOQXI.js → chunk-ADWIAQQS.js} +3 -3
  22. package/dist/{chunk-A7RJOQXI.js.map → chunk-ADWIAQQS.js.map} +1 -1
  23. package/dist/{chunk-EC4ZSWEN.cjs → chunk-AGTCHDG5.cjs} +6 -6
  24. package/dist/{chunk-EC4ZSWEN.cjs.map → chunk-AGTCHDG5.cjs.map} +1 -1
  25. package/dist/{chunk-LVXGMXJJ.cjs → chunk-ATWLKUAI.cjs} +4 -4
  26. package/dist/{chunk-LVXGMXJJ.cjs.map → chunk-ATWLKUAI.cjs.map} +1 -1
  27. package/dist/{chunk-NUFQFQ7C.js → chunk-C5S75476.js} +5 -5
  28. package/dist/{chunk-NUFQFQ7C.js.map → chunk-C5S75476.js.map} +1 -1
  29. package/dist/{chunk-6UHXNHKT.cjs → chunk-C6IQCKJT.cjs} +4 -4
  30. package/dist/{chunk-6UHXNHKT.cjs.map → chunk-C6IQCKJT.cjs.map} +1 -1
  31. package/dist/{chunk-RGXOHQWY.js → chunk-CZCOL3M5.js} +9 -5
  32. package/dist/chunk-CZCOL3M5.js.map +1 -0
  33. package/dist/{chunk-IVXWKDQ3.js → chunk-DUL5ZLTJ.js} +3 -3
  34. package/dist/{chunk-IVXWKDQ3.js.map → chunk-DUL5ZLTJ.js.map} +1 -1
  35. package/dist/{chunk-PRW25YSJ.js → chunk-E4YES25K.js} +4 -4
  36. package/dist/{chunk-PRW25YSJ.js.map → chunk-E4YES25K.js.map} +1 -1
  37. package/dist/{chunk-7MSA476R.cjs → chunk-FIYVKW7F.cjs} +12 -12
  38. package/dist/{chunk-7MSA476R.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-WLQGTQC6.cjs.map → chunk-HD45Y7QU.cjs.map} +1 -1
  43. package/dist/{chunk-3YRH7UC5.js → chunk-HEF4BIMA.js} +4 -4
  44. package/dist/{chunk-3YRH7UC5.js.map → chunk-HEF4BIMA.js.map} +1 -1
  45. package/dist/{chunk-QPSEC6UO.js → chunk-HG3KKCJJ.js} +3 -3
  46. package/dist/{chunk-QPSEC6UO.js.map → chunk-HG3KKCJJ.js.map} +1 -1
  47. package/dist/{chunk-YYERNMW4.cjs → chunk-IPCWYKX5.cjs} +45 -45
  48. package/dist/{chunk-YYERNMW4.cjs.map → chunk-IPCWYKX5.cjs.map} +1 -1
  49. package/dist/{chunk-NC4IMS67.cjs → chunk-KM35K2M5.cjs} +21 -21
  50. package/dist/{chunk-NC4IMS67.cjs.map → chunk-KM35K2M5.cjs.map} +1 -1
  51. package/dist/{chunk-YOFBLLVD.js → chunk-KMSEU6FK.js} +3 -3
  52. package/dist/{chunk-YOFBLLVD.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-GZXQ4T2W.cjs → chunk-M3SXUUWC.cjs} +12 -7
  56. package/dist/chunk-M3SXUUWC.cjs.map +1 -0
  57. package/dist/{chunk-YCUFXCWH.js → chunk-MGJR5OXO.js} +5 -5
  58. package/dist/{chunk-YCUFXCWH.js.map → chunk-MGJR5OXO.js.map} +1 -1
  59. package/dist/{chunk-5HNJLFCZ.cjs → chunk-MTUNORQB.cjs} +11 -11
  60. package/dist/{chunk-5HNJLFCZ.cjs.map → chunk-MTUNORQB.cjs.map} +1 -1
  61. package/dist/{chunk-3SU2DRME.js → chunk-N3WL6IOJ.js} +3 -3
  62. package/dist/{chunk-3SU2DRME.js.map → chunk-N3WL6IOJ.js.map} +1 -1
  63. package/dist/{chunk-HG5VWCZV.cjs → chunk-ND3IE3IB.cjs} +47 -47
  64. package/dist/{chunk-HG5VWCZV.cjs.map → chunk-ND3IE3IB.cjs.map} +1 -1
  65. package/dist/{chunk-JKVCAEIZ.cjs → chunk-NEIWY6CC.cjs} +6 -6
  66. package/dist/{chunk-JKVCAEIZ.cjs.map → chunk-NEIWY6CC.cjs.map} +1 -1
  67. package/dist/{chunk-7NRDX3KL.js → chunk-NMX6HQC3.js} +5 -5
  68. package/dist/{chunk-7NRDX3KL.js.map → chunk-NMX6HQC3.js.map} +1 -1
  69. package/dist/{chunk-KADUPASC.cjs → chunk-OVIIJVXH.cjs} +21 -21
  70. package/dist/{chunk-KADUPASC.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-NTSGMX23.cjs → chunk-QP5JLSCJ.cjs} +9 -5
  74. package/dist/chunk-QP5JLSCJ.cjs.map +1 -0
  75. package/dist/{chunk-GLED2FVJ.cjs → chunk-SEEQ3H22.cjs} +5 -5
  76. package/dist/{chunk-GLED2FVJ.cjs.map → chunk-SEEQ3H22.cjs.map} +1 -1
  77. package/dist/{chunk-3WYOLP35.cjs → chunk-SZUDEFX2.cjs} +41 -41
  78. package/dist/{chunk-3WYOLP35.cjs.map → chunk-SZUDEFX2.cjs.map} +1 -1
  79. package/dist/{chunk-HT6PACYO.js → chunk-YBZQXZ6A.js} +3 -3
  80. package/dist/{chunk-HT6PACYO.js.map → chunk-YBZQXZ6A.js.map} +1 -1
  81. package/dist/{chunk-DS4QUPGZ.js → chunk-ZKHQSG76.js} +4 -4
  82. package/dist/{chunk-DS4QUPGZ.js.map → chunk-ZKHQSG76.js.map} +1 -1
  83. package/dist/{chunk-6XYLFTLI.js → chunk-ZWB3NG4M.js} +3 -3
  84. package/dist/{chunk-6XYLFTLI.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 +51 -84
  91. package/dist/entries/media.d.ts +51 -84
  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/ugc.cjs +71 -71
  102. package/dist/entries/ugc.js +4 -4
  103. package/dist/entries/video.cjs +117 -117
  104. package/dist/entries/video.js +4 -4
  105. package/dist/entries/workflow.cjs +99 -99
  106. package/dist/entries/workflow.js +2 -2
  107. package/dist/index.cjs +1233 -1225
  108. package/dist/index.d.cts +1 -1
  109. package/dist/index.d.ts +1 -1
  110. package/dist/index.js +21 -21
  111. package/package.json +1 -1
  112. package/src/__tests__/priced-clip-seconds.test.ts +193 -0
  113. package/src/__tests__/video-depth.test.ts +28 -16
  114. package/src/__tests__/video-face-mesh.test.ts +3 -2
  115. package/src/__tests__/video-mask.test.ts +1 -1
  116. package/src/entries/media.ts +1 -0
  117. package/src/generated/unit-contracts.ts +1 -0
  118. package/src/mask-composite.ts +6 -5
  119. package/src/model-catalog.ts +17 -18
  120. package/src/priced-clip-seconds.ts +28 -0
  121. package/src/video-depth.ts +21 -19
  122. package/src/video-face-mesh.ts +5 -2
  123. package/src/video-mask.ts +12 -7
  124. package/dist/chunk-5PCI6M44.cjs.map +0 -1
  125. package/dist/chunk-CQJYKSXF.js.map +0 -1
  126. package/dist/chunk-DLSJTVS5.js.map +0 -1
  127. package/dist/chunk-GZXQ4T2W.cjs.map +0 -1
  128. package/dist/chunk-HDXAM5JW.cjs.map +0 -1
  129. package/dist/chunk-NTSGMX23.cjs.map +0 -1
  130. package/dist/chunk-RGXOHQWY.js.map +0 -1
  131. package/dist/chunk-WLQGTQC6.cjs +0 -27
  132. package/dist/chunk-YCKHGHXN.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 ──
@@ -2440,10 +2440,10 @@ var VIDEO_MODELS = {
2440
2440
  ]
2441
2441
  },
2442
2442
  // ── Video Depth ── (video-depth node; priced by the input clip's length via
2443
- // videoDepthCreditId in video-depth.ts — `<provider>:<n>s`, bare row = the
2444
- // 300 s ceiling. Video Depth Anything: one row per whole second of the clip
2445
- // (`:1s` … `:300s`, rounded up), representative rows below; Depth Anything
2446
- // per frame: one row per length bucket, same shape as volcengine-lipsync.)
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.)
2447
2447
  "video-depth-anything": {
2448
2448
  id: "video-depth-anything",
2449
2449
  kind: "video",
@@ -2456,7 +2456,7 @@ var VIDEO_MODELS = {
2456
2456
  useCases: ["depth", "video-to-video", "compositing"],
2457
2457
  pricing: [
2458
2458
  { identifier: "video-depth-anything", credits: 6e3, note: "5-min ceiling (no duration given)" },
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" },
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
2460
  { identifier: "video-depth-anything:15s", credits: 300, note: "15s" },
2461
2461
  { identifier: "video-depth-anything:60s", credits: 1200, note: "1 min" },
2462
2462
  { identifier: "video-depth-anything:300s", credits: 6e3, note: "5-min ceiling (max)" }
@@ -2473,12 +2473,11 @@ var VIDEO_MODELS = {
2473
2473
  description: "Depth Anything v1 run on each frame. Grayscale or inferno colormap; may flicker between frames. Up to 80 s.",
2474
2474
  useCases: ["depth", "video-to-video"],
2475
2475
  pricing: [
2476
- { identifier: "depth-anything-frames", credits: 600, note: "5-min ceiling (no duration given)" },
2477
- { identifier: "depth-anything-frames:15s", credits: 30 },
2478
- { identifier: "depth-anything-frames:30s", credits: 60 },
2479
- { identifier: "depth-anything-frames:60s", credits: 120 },
2480
- { identifier: "depth-anything-frames:120s", credits: 240 },
2481
- { 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)" }
2482
2481
  ]
2483
2482
  },
2484
2483
  // ── Gemini video analysis ── (Gemini-only; billed per duration bucket — the
@@ -3646,5 +3645,5 @@ exports.resolutionOptionsByKind = resolutionOptionsByKind;
3646
3645
  exports.seedanceDraftFinalizeBillableSec = seedanceDraftFinalizeBillableSec;
3647
3646
  exports.seedanceDraftFinalizeCreditId = seedanceDraftFinalizeCreditId;
3648
3647
  exports.validateModelInput = validateModelInput;
3649
- //# sourceMappingURL=chunk-HDXAM5JW.cjs.map
3650
- //# sourceMappingURL=chunk-HDXAM5JW.cjs.map
3648
+ //# sourceMappingURL=chunk-2R74OU76.cjs.map
3649
+ //# sourceMappingURL=chunk-2R74OU76.cjs.map