@nodaro/shared 3.70.0 → 3.71.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 (136) hide show
  1. package/dist/{chunk-FMQ43SJP.cjs → chunk-4A3ITJJB.cjs} +6 -6
  2. package/dist/{chunk-FMQ43SJP.cjs.map → chunk-4A3ITJJB.cjs.map} +1 -1
  3. package/dist/{chunk-XBHDXURR.cjs → chunk-4HV3LY4A.cjs} +78 -78
  4. package/dist/chunk-4HV3LY4A.cjs.map +1 -0
  5. package/dist/{chunk-52JNQG4K.js → chunk-6FUVGATF.js} +3 -3
  6. package/dist/{chunk-52JNQG4K.js.map → chunk-6FUVGATF.js.map} +1 -1
  7. package/dist/{chunk-GC77W57T.cjs → chunk-6PEWM2B3.cjs} +9 -9
  8. package/dist/{chunk-GC77W57T.cjs.map → chunk-6PEWM2B3.cjs.map} +1 -1
  9. package/dist/{chunk-BIQ7COJP.js → chunk-BO6IKV24.js} +5 -5
  10. package/dist/{chunk-BIQ7COJP.js.map → chunk-BO6IKV24.js.map} +1 -1
  11. package/dist/{chunk-IKN54UGB.js → chunk-BQV6NV7E.js} +3 -3
  12. package/dist/{chunk-IKN54UGB.js.map → chunk-BQV6NV7E.js.map} +1 -1
  13. package/dist/{chunk-LTBM2KMY.js → chunk-BVP4M5AK.js} +235 -9
  14. package/dist/chunk-BVP4M5AK.js.map +1 -0
  15. package/dist/{chunk-OW5AXH2Y.js → chunk-CL7ECTK2.js} +5 -4
  16. package/dist/chunk-CL7ECTK2.js.map +1 -0
  17. package/dist/{chunk-R22UHRR6.js → chunk-COA2OJIH.js} +39 -23
  18. package/dist/chunk-COA2OJIH.js.map +1 -0
  19. package/dist/{chunk-HW6TLOK4.cjs → chunk-DRPHRE4J.cjs} +2 -2
  20. package/dist/{chunk-HW6TLOK4.cjs.map → chunk-DRPHRE4J.cjs.map} +1 -1
  21. package/dist/{chunk-EWNDK4FV.js → chunk-F3XG5J5V.js} +3 -3
  22. package/dist/{chunk-EWNDK4FV.js.map → chunk-F3XG5J5V.js.map} +1 -1
  23. package/dist/{chunk-4U7QAUV3.cjs → chunk-H52P7DD2.cjs} +61 -61
  24. package/dist/{chunk-4U7QAUV3.cjs.map → chunk-H52P7DD2.cjs.map} +1 -1
  25. package/dist/{chunk-MZ772ZXA.cjs → chunk-HUCGHMOI.cjs} +17 -17
  26. package/dist/{chunk-MZ772ZXA.cjs.map → chunk-HUCGHMOI.cjs.map} +1 -1
  27. package/dist/{chunk-PYYYBINP.cjs → chunk-I4C6ZYU4.cjs} +6 -6
  28. package/dist/{chunk-PYYYBINP.cjs.map → chunk-I4C6ZYU4.cjs.map} +1 -1
  29. package/dist/{chunk-QCVQVKCI.js → chunk-JPSKVBYB.js} +3 -3
  30. package/dist/{chunk-QCVQVKCI.js.map → chunk-JPSKVBYB.js.map} +1 -1
  31. package/dist/{chunk-QVAUBB2T.js → chunk-K2P7KOIT.js} +9 -9
  32. package/dist/{chunk-QVAUBB2T.js.map → chunk-K2P7KOIT.js.map} +1 -1
  33. package/dist/{chunk-QV32JI4L.cjs → chunk-K5WRF2F3.cjs} +4 -4
  34. package/dist/{chunk-QV32JI4L.cjs.map → chunk-K5WRF2F3.cjs.map} +1 -1
  35. package/dist/{chunk-YLDY23N2.js → chunk-KD4UUCMW.js} +5 -5
  36. package/dist/{chunk-YLDY23N2.js.map → chunk-KD4UUCMW.js.map} +1 -1
  37. package/dist/{chunk-OZHE77T3.cjs → chunk-LBKMQAXD.cjs} +9 -9
  38. package/dist/{chunk-OZHE77T3.cjs.map → chunk-LBKMQAXD.cjs.map} +1 -1
  39. package/dist/{chunk-HBRDKHIW.cjs → chunk-MI4WEFJ4.cjs} +21 -21
  40. package/dist/{chunk-HBRDKHIW.cjs.map → chunk-MI4WEFJ4.cjs.map} +1 -1
  41. package/dist/{chunk-DOY47F7S.cjs → chunk-MN7BUGXF.cjs} +7 -7
  42. package/dist/{chunk-DOY47F7S.cjs.map → chunk-MN7BUGXF.cjs.map} +1 -1
  43. package/dist/{chunk-BLGZW3UF.cjs → chunk-NNCHSLFD.cjs} +291 -20
  44. package/dist/chunk-NNCHSLFD.cjs.map +1 -0
  45. package/dist/{chunk-NS34PZ2S.js → chunk-PPXUSZJU.js} +3 -3
  46. package/dist/{chunk-NS34PZ2S.js.map → chunk-PPXUSZJU.js.map} +1 -1
  47. package/dist/{chunk-PKWRAMVB.js → chunk-QME5O4NG.js} +7 -5
  48. package/dist/chunk-QME5O4NG.js.map +1 -0
  49. package/dist/{chunk-42ICEVUN.js → chunk-SAOIGWA2.js} +3 -3
  50. package/dist/{chunk-42ICEVUN.js.map → chunk-SAOIGWA2.js.map} +1 -1
  51. package/dist/{chunk-V6TC2NDG.js → chunk-SHSDGAI4.js} +4 -4
  52. package/dist/{chunk-V6TC2NDG.js.map → chunk-SHSDGAI4.js.map} +1 -1
  53. package/dist/{chunk-JEUZNHLL.cjs → chunk-SR7WH4FX.cjs} +33 -33
  54. package/dist/{chunk-JEUZNHLL.cjs.map → chunk-SR7WH4FX.cjs.map} +1 -1
  55. package/dist/{chunk-2VOXSVIE.js → chunk-SZ7ALYPK.js} +3 -3
  56. package/dist/{chunk-2VOXSVIE.js.map → chunk-SZ7ALYPK.js.map} +1 -1
  57. package/dist/{chunk-O53P2D4V.js → chunk-T4YYUI5Q.js} +3 -3
  58. package/dist/{chunk-O53P2D4V.js.map → chunk-T4YYUI5Q.js.map} +1 -1
  59. package/dist/{chunk-HWBLZSM3.cjs → chunk-TOYWEF6E.cjs} +39 -23
  60. package/dist/chunk-TOYWEF6E.cjs.map +1 -0
  61. package/dist/{chunk-FWPGRC4X.cjs → chunk-U6APV2PO.cjs} +5 -5
  62. package/dist/{chunk-FWPGRC4X.cjs.map → chunk-U6APV2PO.cjs.map} +1 -1
  63. package/dist/{chunk-QCZYYAPZ.cjs → chunk-UJIPIVTB.cjs} +48 -48
  64. package/dist/{chunk-QCZYYAPZ.cjs.map → chunk-UJIPIVTB.cjs.map} +1 -1
  65. package/dist/{chunk-KKFFQUMM.js → chunk-VZIMLPDC.js} +5 -5
  66. package/dist/chunk-VZIMLPDC.js.map +1 -0
  67. package/dist/{chunk-PWIKUOLB.cjs → chunk-W4CJ2P3F.cjs} +8 -8
  68. package/dist/{chunk-PWIKUOLB.cjs.map → chunk-W4CJ2P3F.cjs.map} +1 -1
  69. package/dist/{chunk-HP3YIWNJ.js → chunk-WARGPM7P.js} +2 -2
  70. package/dist/{chunk-HP3YIWNJ.js.map → chunk-WARGPM7P.js.map} +1 -1
  71. package/dist/{chunk-POZBRZUM.cjs → chunk-WHK3HTFY.cjs} +41 -41
  72. package/dist/{chunk-POZBRZUM.cjs.map → chunk-WHK3HTFY.cjs.map} +1 -1
  73. package/dist/{chunk-H2E4QXEZ.js → chunk-X3YRSRHP.js} +3 -3
  74. package/dist/{chunk-H2E4QXEZ.js.map → chunk-X3YRSRHP.js.map} +1 -1
  75. package/dist/{chunk-HA2PVTER.js → chunk-XK75VOEH.js} +4 -4
  76. package/dist/{chunk-HA2PVTER.js.map → chunk-XK75VOEH.js.map} +1 -1
  77. package/dist/{chunk-5DRSENY3.cjs → chunk-YHZUTPZL.cjs} +14 -12
  78. package/dist/{chunk-PKWRAMVB.js.map → chunk-YHZUTPZL.cjs.map} +1 -1
  79. package/dist/{chunk-WHV7MDNC.cjs → chunk-ZJQ2L3MI.cjs} +5 -3
  80. package/dist/chunk-ZJQ2L3MI.cjs.map +1 -0
  81. package/dist/entries/apps.cjs +42 -42
  82. package/dist/entries/apps.js +7 -7
  83. package/dist/entries/credits.cjs +418 -238
  84. package/dist/entries/credits.d.cts +262 -1
  85. package/dist/entries/credits.d.ts +262 -1
  86. package/dist/entries/credits.js +9 -9
  87. package/dist/entries/edl.cjs +60 -60
  88. package/dist/entries/edl.d.cts +96 -1
  89. package/dist/entries/edl.d.ts +96 -1
  90. package/dist/entries/edl.js +1 -1
  91. package/dist/entries/model-catalog.cjs +133 -133
  92. package/dist/entries/model-catalog.js +4 -4
  93. package/dist/entries/models.cjs +404 -404
  94. package/dist/entries/models.js +5 -5
  95. package/dist/entries/nodes.cjs +212 -212
  96. package/dist/entries/nodes.js +8 -8
  97. package/dist/entries/pipeline.cjs +153 -153
  98. package/dist/entries/pipeline.js +3 -3
  99. package/dist/entries/social.cjs +195 -191
  100. package/dist/entries/social.d.cts +9 -3
  101. package/dist/entries/social.d.ts +9 -3
  102. package/dist/entries/social.js +1 -1
  103. package/dist/entries/ugc.cjs +71 -71
  104. package/dist/entries/ugc.js +4 -4
  105. package/dist/entries/video.cjs +152 -152
  106. package/dist/entries/video.js +6 -6
  107. package/dist/index.cjs +1812 -1628
  108. package/dist/index.d.cts +3 -3
  109. package/dist/index.d.ts +3 -3
  110. package/dist/index.js +20 -20
  111. package/package.json +1 -1
  112. package/src/__tests__/audio-isolation-pricing.test.ts +49 -0
  113. package/src/__tests__/competitors.test.ts +6 -1
  114. package/src/__tests__/credit-identifiers.test.ts +9 -10
  115. package/src/__tests__/motion-transfer-pricing.test.ts +252 -0
  116. package/src/__tests__/video-to-video-pricing.test.ts +151 -0
  117. package/src/audio-isolation-pricing.ts +80 -0
  118. package/src/competitors.ts +8 -2
  119. package/src/credit-identifiers.ts +6 -0
  120. package/src/entries/credits.ts +54 -0
  121. package/src/entries/edl.ts +2 -0
  122. package/src/entries/social.ts +1 -0
  123. package/src/model-catalog.ts +34 -18
  124. package/src/motion-transfer-pricing.ts +239 -0
  125. package/src/producer-types.ts +2 -0
  126. package/src/use-case-output.ts +102 -0
  127. package/src/video-to-video-pricing.ts +248 -0
  128. package/dist/chunk-5DRSENY3.cjs.map +0 -1
  129. package/dist/chunk-BLGZW3UF.cjs.map +0 -1
  130. package/dist/chunk-HWBLZSM3.cjs.map +0 -1
  131. package/dist/chunk-KKFFQUMM.js.map +0 -1
  132. package/dist/chunk-LTBM2KMY.js.map +0 -1
  133. package/dist/chunk-OW5AXH2Y.js.map +0 -1
  134. package/dist/chunk-R22UHRR6.js.map +0 -1
  135. package/dist/chunk-WHV7MDNC.cjs.map +0 -1
  136. package/dist/chunk-XBHDXURR.cjs.map +0 -1
@@ -2730,8 +2730,8 @@ var VIDEO_MODELS = {
2730
2730
  maker: "alibaba",
2731
2731
  label: "Wan 2.6",
2732
2732
  series: "Wan",
2733
- description: "Wan 2.6 \u2014 text-to-video and video-to-video under a single id.",
2734
- useCases: ["v2v", "t2v", "restyle"],
2733
+ description: "Wan 2.6 \u2014 text-to-video and video-to-video under a single id. Its video-to-video makes a new clip featuring the subject of the input video, in the scene the prompt describes; it does not edit or restyle the clip.",
2734
+ useCases: ["v2v", "t2v", "reference"],
2735
2735
  durations: [5],
2736
2736
  defaultDuration: 5,
2737
2737
  resolutions: ["720p", "1080p"],
@@ -2748,7 +2748,7 @@ var VIDEO_MODELS = {
2748
2748
  maker: "alibaba",
2749
2749
  label: "Wan Flash V2V",
2750
2750
  series: "Wan",
2751
- description: "Faster Wan V2V variant.",
2751
+ description: "Faster Wan 2.6 video-to-video: a new clip featuring the subject of the input video, in the scene the prompt describes (not an edit or restyle of the clip); optional audio and multi-shot.",
2752
2752
  useCases: ["v2v", "fast"],
2753
2753
  pricing: [{ identifier: "wan-flash", credits: 100 }]
2754
2754
  },
@@ -2760,10 +2760,13 @@ var VIDEO_MODELS = {
2760
2760
  maker: "alibaba",
2761
2761
  label: "Wan 2.7 VideoEdit",
2762
2762
  series: "Wan",
2763
- description: "Guided video editing with optional reference image, audio control, and prompt expansion.",
2763
+ description: "Guided video editing of a 2-10s clip with optional reference image, audio control, and prompt expansion; priced per second of the clip it delivers, never below the listed price.",
2764
2764
  useCases: ["v2v", "restyle", "reference"],
2765
2765
  resolutions: ["720p", "1080p"],
2766
- pricing: [{ identifier: "wan-videoedit", credits: 320 }]
2766
+ pricing: [
2767
+ { identifier: "wan-videoedit", credits: 320, note: "the least a run costs" },
2768
+ { identifier: "wan-videoedit:1080p:per-4s", credits: 240, note: "per 4 seconds of the clip it delivers (720p at this row too); charged per whole second, never below the flat row" }
2769
+ ]
2767
2770
  },
2768
2771
  // ── Wan 2.7 ──
2769
2772
  "wan-2.7": {
@@ -2984,11 +2987,13 @@ var VIDEO_MODELS = {
2984
2987
  maker: "alibaba",
2985
2988
  label: "HappyHorse Edit",
2986
2989
  series: "HappyHorse",
2987
- description: "HappyHorse video-edit \u2014 video-to-video transformation, up to 60s input, 720p/1080p output.",
2990
+ description: "HappyHorse video-edit \u2014 video-to-video transformation of a 3-60s clip, 720p/1080p output; priced per started half-second of the clip, above the listed flat price.",
2988
2991
  useCases: ["v2v", "restyle"],
2989
2992
  resolutions: ["720p", "1080p"],
2990
2993
  pricing: [
2991
- { identifier: "happyhorse-edit", credits: 350, note: "720p default (5s-equivalent flat rate)" }
2994
+ { identifier: "happyhorse-edit", credits: 350, note: "flat row of runs priced before per-clip-second pricing" },
2995
+ { identifier: "happyhorse-edit:720p:per-4s", credits: 560, note: "720p (default): per 4 seconds of the clip; charged per started half-second" },
2996
+ { identifier: "happyhorse-edit:1080p:per-4s", credits: 960, note: "1080p: per 4 seconds of the clip; charged per started half-second" }
2992
2997
  ]
2993
2998
  },
2994
2999
  // ── Vidu (ShengShu Technology) ──
@@ -3487,7 +3492,9 @@ var VIDEO_MODELS = {
3487
3492
  { identifier: "motion-transfer:10s", credits: 150 },
3488
3493
  { identifier: "motion-transfer:15s", credits: 230 },
3489
3494
  { identifier: "motion-transfer:30s", credits: 450 },
3490
- { identifier: "motion-transfer:1080p:10s", credits: 230 }
3495
+ { identifier: "motion-transfer:1080p:10s", credits: 230 },
3496
+ { identifier: "motion-transfer:720p:per-4s", credits: 126, note: "720p: per 4 seconds of the driving video; charged per whole second" },
3497
+ { identifier: "motion-transfer:1080p:per-4s", credits: 203, note: "1080p: per 4 seconds of the driving video; charged per whole second" }
3491
3498
  ]
3492
3499
  },
3493
3500
  "kling-3.0-motion": {
@@ -3506,17 +3513,21 @@ var VIDEO_MODELS = {
3506
3513
  { identifier: "kling-3.0-motion", credits: 300, note: "10s 720p default" },
3507
3514
  { identifier: "kling-3.0-motion:5s", credits: 150 },
3508
3515
  { identifier: "kling-3.0-motion:10s", credits: 300 },
3509
- { identifier: "kling-3.0-motion:1080p:10s", credits: 500 }
3516
+ { identifier: "kling-3.0-motion:1080p:10s", credits: 500 },
3517
+ { identifier: "kling-3.0-motion:720p:per-4s", credits: 228, note: "720p: per 4 seconds of the driving video; charged per whole second" },
3518
+ { identifier: "kling-3.0-motion:1080p:per-4s", credits: 302, note: "1080p: per 4 seconds of the driving video; charged per whole second" }
3510
3519
  ]
3511
3520
  },
3512
3521
  // Wan Animate (decided 2026-11-12): catalog entries so a deployment's model
3513
3522
  // restriction can name them. Before, `models.allow` could not withhold them
3514
3523
  // while the Motion Transfer node and /v1/motion-transfer kept running them
3515
- // beside the Kling models. The sizes are the three each runs at and is priced
3516
- // on today (one flat row per size, any clip length); a size it does not have
3517
- // (the route's 1080p) runs, and is charged, as 720p — `defaultResolution`, the
3518
- // size `normalizeModelInput` moves it to (`motionTransferResolution`), and
3519
- // the size a request naming none has always run at.
3524
+ // beside the Kling models. Replace runs at three sizes; Move at 720p only (the
3525
+ // one size the provider takes for it). A size a model does not have (Move's
3526
+ // 480p / 580p, the route's 1080p) runs, and is charged, as 720p —
3527
+ // `defaultResolution`, the size `normalizeModelInput` moves it to
3528
+ // (`motionTransferResolution`), and the size a request naming none has always
3529
+ // run at. Each is charged per second of the driving video at its `:per-4s`
3530
+ // row, never below its flat row for the size it runs at.
3520
3531
  "wan-animate-move": {
3521
3532
  id: "wan-animate-move",
3522
3533
  kind: "video",
@@ -3527,12 +3538,14 @@ var VIDEO_MODELS = {
3527
3538
  series: "Wan",
3528
3539
  description: "Wan 2.2 Animate: moves the subject of a still image with the motion of a driving video.",
3529
3540
  useCases: ["motion-transfer", "cheap"],
3530
- resolutions: ["480p", "580p", "720p"],
3541
+ resolutions: ["720p"],
3531
3542
  defaultResolution: "720p",
3532
3543
  pricing: [
3533
- { identifier: "wan-animate-move", credits: 255, note: "480p" },
3534
- { identifier: "wan-animate-move:580p", credits: 330, note: "580p" },
3535
- { identifier: "wan-animate-move:720p", credits: 410, note: "720p" }
3544
+ // 720p first: the size Move runs at, so its default variant's price.
3545
+ { identifier: "wan-animate-move:720p", credits: 410, note: "720p, the only size it runs at" },
3546
+ { identifier: "wan-animate-move", credits: 255, note: "480p (runs, and is charged, as 720p)" },
3547
+ { identifier: "wan-animate-move:580p", credits: 330, note: "580p (runs, and is charged, as 720p)" },
3548
+ { identifier: "wan-animate-move:720p:per-4s", credits: 125, note: "per 4 seconds of the driving video, never below the 720p row; charged per whole second" }
3536
3549
  ]
3537
3550
  },
3538
3551
  "wan-animate-replace": {
@@ -3550,7 +3563,10 @@ var VIDEO_MODELS = {
3550
3563
  pricing: [
3551
3564
  { identifier: "wan-animate-replace", credits: 255, note: "480p" },
3552
3565
  { identifier: "wan-animate-replace:580p", credits: 330, note: "580p" },
3553
- { identifier: "wan-animate-replace:720p", credits: 410, note: "720p" }
3566
+ { identifier: "wan-animate-replace:720p", credits: 410, note: "720p" },
3567
+ { identifier: "wan-animate-replace:480p:per-4s", credits: 60, note: "480p: per 4 seconds of the driving video, never below the 480p row; charged per whole second" },
3568
+ { identifier: "wan-animate-replace:580p:per-4s", credits: 95, note: "580p: per 4 seconds of the driving video, never below the 580p row; charged per whole second" },
3569
+ { identifier: "wan-animate-replace:720p:per-4s", credits: 125, note: "720p: per 4 seconds of the driving video, never below the 720p row; charged per whole second" }
3554
3570
  ]
3555
3571
  },
3556
3572
  // ── Lip sync / talking-head ──
@@ -4478,9 +4494,9 @@ var AUDIO_MODELS = {
4478
4494
  maker: "elevenlabs",
4479
4495
  label: "ElevenLabs Voice Isolation",
4480
4496
  series: "ElevenLabs",
4481
- description: "Strip background noise / music from a vocal track.",
4497
+ description: "Strip background noise / music from a vocal track. Audio up to 30 minutes; priced per started 10 seconds of the audio.",
4482
4498
  useCases: ["cleanup", "isolation"],
4483
- pricing: [{ identifier: "elevenlabs-isolation", credits: 74, note: "variable per second" }]
4499
+ pricing: [{ identifier: "elevenlabs-isolation:per-10s", credits: 10, note: "per started 10 seconds of the audio, up to 30 minutes" }]
4484
4500
  },
4485
4501
  "elevenlabs-dubbing": {
4486
4502
  id: "elevenlabs-dubbing",
@@ -5520,5 +5536,5 @@ exports.sourceImageSizeNeeded = sourceImageSizeNeeded;
5520
5536
  exports.svgLevelOptionsByKind = svgLevelOptionsByKind;
5521
5537
  exports.validateModelInput = validateModelInput;
5522
5538
  exports.videoAutoAspectRunsAt = videoAutoAspectRunsAt;
5523
- //# sourceMappingURL=chunk-HWBLZSM3.cjs.map
5524
- //# sourceMappingURL=chunk-HWBLZSM3.cjs.map
5539
+ //# sourceMappingURL=chunk-TOYWEF6E.cjs.map
5540
+ //# sourceMappingURL=chunk-TOYWEF6E.cjs.map