@nodaro/shared 3.39.0 → 3.41.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 (147) hide show
  1. package/dist/{chunk-5OED47LE.js → chunk-2BJADMEX.js} +3 -3
  2. package/dist/{chunk-5OED47LE.js.map → chunk-2BJADMEX.js.map} +1 -1
  3. package/dist/{chunk-YNJ44IAL.cjs → chunk-4IWVZR44.cjs} +5 -5
  4. package/dist/{chunk-YNJ44IAL.cjs.map → chunk-4IWVZR44.cjs.map} +1 -1
  5. package/dist/{chunk-33QG2DOW.cjs → chunk-4LKEOIOT.cjs} +6 -6
  6. package/dist/{chunk-33QG2DOW.cjs.map → chunk-4LKEOIOT.cjs.map} +1 -1
  7. package/dist/{chunk-ZG4XSEZV.js → chunk-5CKTBGB6.js} +71 -2
  8. package/dist/chunk-5CKTBGB6.js.map +1 -0
  9. package/dist/{chunk-BDSFMY4X.js → chunk-5J5L26IZ.js} +5 -5
  10. package/dist/{chunk-BDSFMY4X.js.map → chunk-5J5L26IZ.js.map} +1 -1
  11. package/dist/{chunk-VRLRPGO7.js → chunk-A4NDZBSJ.js} +93 -11
  12. package/dist/chunk-A4NDZBSJ.js.map +1 -0
  13. package/dist/{chunk-KOP7UTQR.cjs → chunk-ADYPAGQF.cjs} +71 -2
  14. package/dist/chunk-ADYPAGQF.cjs.map +1 -0
  15. package/dist/{chunk-HABDAHZR.cjs → chunk-BOUEGYGI.cjs} +118 -28
  16. package/dist/chunk-BOUEGYGI.cjs.map +1 -0
  17. package/dist/{chunk-JLKZEKQ3.cjs → chunk-BWQRAQUD.cjs} +43 -43
  18. package/dist/{chunk-JLKZEKQ3.cjs.map → chunk-BWQRAQUD.cjs.map} +1 -1
  19. package/dist/{chunk-KMNSK7T5.js → chunk-CWQC6IGE.js} +20 -5
  20. package/dist/chunk-CWQC6IGE.js.map +1 -0
  21. package/dist/{chunk-XUISP5BT.cjs → chunk-DC5EYYVX.cjs} +60 -38
  22. package/dist/chunk-DC5EYYVX.cjs.map +1 -0
  23. package/dist/{chunk-MSIIC6MY.cjs → chunk-DJIRIBKX.cjs} +4 -4
  24. package/dist/{chunk-MSIIC6MY.cjs.map → chunk-DJIRIBKX.cjs.map} +1 -1
  25. package/dist/{chunk-XA53RUSD.js → chunk-E4MLBJKG.js} +8 -8
  26. package/dist/{chunk-XA53RUSD.js.map → chunk-E4MLBJKG.js.map} +1 -1
  27. package/dist/chunk-FVZMFDRO.js +23 -0
  28. package/dist/chunk-FVZMFDRO.js.map +1 -0
  29. package/dist/{chunk-DKTRVOU5.js → chunk-GNY2S63W.js} +4 -4
  30. package/dist/{chunk-DKTRVOU5.js.map → chunk-GNY2S63W.js.map} +1 -1
  31. package/dist/{chunk-YHCG3HOR.js → chunk-GXTWKAJF.js} +3 -3
  32. package/dist/{chunk-YHCG3HOR.js.map → chunk-GXTWKAJF.js.map} +1 -1
  33. package/dist/{chunk-DE3PEIIP.cjs → chunk-IKCFSNNH.cjs} +21 -21
  34. package/dist/{chunk-DE3PEIIP.cjs.map → chunk-IKCFSNNH.cjs.map} +1 -1
  35. package/dist/{chunk-BYP62B7F.cjs → chunk-JN3V33AN.cjs} +6 -6
  36. package/dist/{chunk-BYP62B7F.cjs.map → chunk-JN3V33AN.cjs.map} +1 -1
  37. package/dist/{chunk-QXTCIJP5.js → chunk-LOTL72UI.js} +3 -3
  38. package/dist/{chunk-QXTCIJP5.js.map → chunk-LOTL72UI.js.map} +1 -1
  39. package/dist/{chunk-7QITUDRT.js → chunk-MLB6YNLS.js} +4 -4
  40. package/dist/{chunk-7QITUDRT.js.map → chunk-MLB6YNLS.js.map} +1 -1
  41. package/dist/{chunk-JABZNRXL.cjs → chunk-N2KG5AMQ.cjs} +4 -4
  42. package/dist/{chunk-JABZNRXL.cjs.map → chunk-N2KG5AMQ.cjs.map} +1 -1
  43. package/dist/{chunk-GLON7ANZ.cjs → chunk-P4QT7JGD.cjs} +7 -2
  44. package/dist/chunk-P4QT7JGD.cjs.map +1 -0
  45. package/dist/{chunk-IIGKJYWL.js → chunk-PYDZ7ZGH.js} +3 -3
  46. package/dist/{chunk-IIGKJYWL.js.map → chunk-PYDZ7ZGH.js.map} +1 -1
  47. package/dist/{chunk-ENFBA33M.cjs → chunk-RLVZ3RLE.cjs} +8 -8
  48. package/dist/{chunk-ENFBA33M.cjs.map → chunk-RLVZ3RLE.cjs.map} +1 -1
  49. package/dist/{chunk-JMUHMLJP.js → chunk-SYUY7GNT.js} +7 -5
  50. package/dist/chunk-SYUY7GNT.js.map +1 -0
  51. package/dist/{chunk-R6B2UDFR.js → chunk-T4EBNTKT.js} +7 -2
  52. package/dist/chunk-T4EBNTKT.js.map +1 -0
  53. package/dist/{chunk-VRUN5TG2.cjs → chunk-TUUEQ2WR.cjs} +8 -8
  54. package/dist/{chunk-VRUN5TG2.cjs.map → chunk-TUUEQ2WR.cjs.map} +1 -1
  55. package/dist/{chunk-HZ46RDLD.cjs → chunk-VNC5DNIQ.cjs} +11 -11
  56. package/dist/{chunk-HZ46RDLD.cjs.map → chunk-VNC5DNIQ.cjs.map} +1 -1
  57. package/dist/{chunk-MSDECC3A.cjs → chunk-VSDJCJKP.cjs} +44 -42
  58. package/dist/chunk-VSDJCJKP.cjs.map +1 -0
  59. package/dist/{chunk-GW54ANCH.js → chunk-X7IRSO4L.js} +3 -3
  60. package/dist/{chunk-GW54ANCH.js.map → chunk-X7IRSO4L.js.map} +1 -1
  61. package/dist/chunk-XOZIHGR5.cjs +27 -0
  62. package/dist/chunk-XOZIHGR5.cjs.map +1 -0
  63. package/dist/{chunk-YSEM7JDE.cjs → chunk-YEET2QGF.cjs} +4 -4
  64. package/dist/{chunk-YSEM7JDE.cjs.map → chunk-YEET2QGF.cjs.map} +1 -1
  65. package/dist/{chunk-CMH2ACOX.js → chunk-YEZ2YUKK.js} +3 -3
  66. package/dist/{chunk-CMH2ACOX.js.map → chunk-YEZ2YUKK.js.map} +1 -1
  67. package/dist/{chunk-SPP6HQMM.js → chunk-YX5FW7ON.js} +39 -5
  68. package/dist/chunk-YX5FW7ON.js.map +1 -0
  69. package/dist/{chunk-75ZMA34U.cjs → chunk-ZAOBNW6Y.cjs} +47 -11
  70. package/dist/chunk-ZAOBNW6Y.cjs.map +1 -0
  71. package/dist/{chunk-AZBIXGM5.js → chunk-ZXIP5T5V.js} +3 -3
  72. package/dist/{chunk-AZBIXGM5.js.map → chunk-ZXIP5T5V.js.map} +1 -1
  73. package/dist/entries/apps.cjs +42 -42
  74. package/dist/entries/apps.js +7 -7
  75. package/dist/entries/credits.cjs +150 -150
  76. package/dist/entries/credits.d.cts +1 -1
  77. package/dist/entries/credits.d.ts +1 -1
  78. package/dist/entries/credits.js +7 -7
  79. package/dist/entries/llm-models.d.cts +1 -1
  80. package/dist/entries/llm-models.d.ts +1 -1
  81. package/dist/entries/model-catalog.cjs +66 -66
  82. package/dist/entries/model-catalog.d.cts +2 -2
  83. package/dist/entries/model-catalog.d.ts +2 -2
  84. package/dist/entries/model-catalog.js +4 -4
  85. package/dist/entries/models.cjs +289 -229
  86. package/dist/entries/models.d.cts +39 -4
  87. package/dist/entries/models.d.ts +39 -4
  88. package/dist/entries/models.js +4 -4
  89. package/dist/entries/nodes.cjs +206 -206
  90. package/dist/entries/nodes.d.cts +1 -1
  91. package/dist/entries/nodes.d.ts +1 -1
  92. package/dist/entries/nodes.js +8 -8
  93. package/dist/entries/pipeline.cjs +149 -149
  94. package/dist/entries/pipeline.d.cts +1 -1
  95. package/dist/entries/pipeline.d.ts +1 -1
  96. package/dist/entries/pipeline.js +3 -3
  97. package/dist/entries/types.d.cts +8 -0
  98. package/dist/entries/types.d.ts +8 -0
  99. package/dist/entries/ugc.cjs +71 -71
  100. package/dist/entries/ugc.js +4 -4
  101. package/dist/entries/video.cjs +123 -115
  102. package/dist/entries/video.d.cts +26 -1
  103. package/dist/entries/video.d.ts +26 -1
  104. package/dist/entries/video.js +4 -4
  105. package/dist/entries/workflow.cjs +98 -98
  106. package/dist/entries/workflow.js +1 -1
  107. package/dist/index.cjs +1170 -1102
  108. package/dist/index.d.cts +4 -4
  109. package/dist/index.d.ts +4 -4
  110. package/dist/index.js +18 -18
  111. package/dist/{model-catalog-I48SvalA.d.ts → model-catalog-dQPdLltX.d.cts} +11 -0
  112. package/dist/{model-catalog-I48SvalA.d.cts → model-catalog-dQPdLltX.d.ts} +11 -0
  113. package/dist/{model-constants-C43YS07I.d.ts → model-constants-B5ka4TQr.d.cts} +61 -6
  114. package/dist/{model-constants-C43YS07I.d.cts → model-constants-B5ka4TQr.d.ts} +61 -6
  115. package/package.json +1 -1
  116. package/src/__tests__/cast-swap-limits.test.ts +27 -0
  117. package/src/__tests__/gvp-supported-providers.test.ts +8 -1
  118. package/src/__tests__/kling4-catalog.test.ts +129 -0
  119. package/src/__tests__/video-character-refs.test.ts +3 -2
  120. package/src/__tests__/workflow-export-strip.test.ts +14 -0
  121. package/src/cast-swap-limits.ts +46 -0
  122. package/src/catalog-projection.ts +8 -0
  123. package/src/credit-identifiers.ts +6 -0
  124. package/src/entries/models.ts +16 -0
  125. package/src/entries/video.ts +2 -0
  126. package/src/model-catalog.ts +82 -0
  127. package/src/model-constants.ts +151 -3
  128. package/src/node-default-mappings.ts +3 -0
  129. package/src/video-character-refs.ts +67 -0
  130. package/src/video-ui-defaults.ts +8 -5
  131. package/src/workflow-export.ts +7 -0
  132. package/dist/chunk-75ZMA34U.cjs.map +0 -1
  133. package/dist/chunk-GLON7ANZ.cjs.map +0 -1
  134. package/dist/chunk-HABDAHZR.cjs.map +0 -1
  135. package/dist/chunk-JMUHMLJP.js.map +0 -1
  136. package/dist/chunk-KMNSK7T5.js.map +0 -1
  137. package/dist/chunk-KOP7UTQR.cjs.map +0 -1
  138. package/dist/chunk-MSDECC3A.cjs.map +0 -1
  139. package/dist/chunk-R6B2UDFR.js.map +0 -1
  140. package/dist/chunk-SPP6HQMM.js.map +0 -1
  141. package/dist/chunk-VRLRPGO7.js.map +0 -1
  142. package/dist/chunk-W4GABGRD.js +0 -21
  143. package/dist/chunk-W4GABGRD.js.map +0 -1
  144. package/dist/chunk-XJ3HJSO5.cjs +0 -25
  145. package/dist/chunk-XJ3HJSO5.cjs.map +0 -1
  146. package/dist/chunk-XUISP5BT.cjs.map +0 -1
  147. package/dist/chunk-ZG4XSEZV.js.map +0 -1
@@ -118,6 +118,7 @@ var VIDEO_RATIOS_SEEDANCE_2 = ["16:9", "9:16", "1:1", "4:3", "3:4", "21:9", "ada
118
118
  var VIDEO_RATIOS_HAPPYHORSE_11 = ["16:9", "9:16", "1:1", "4:3", "3:4", "4:5", "5:4", "21:9", "9:21"];
119
119
  var VIDEO_RATIOS_WAN_3 = ["adaptive", "16:9", "4:3", "1:1", "3:4", "9:16"];
120
120
  var VIDEO_RATIOS_VIDU_Q4 = ["16:9", "9:16", "1:1", "4:3", "3:4"];
121
+ var VIDEO_RATIOS_KLING_4 = ["auto", "16:9", "9:16", "1:1", "21:9"];
121
122
  var IMAGE_MODELS = {
122
123
  // ── Google Nano Banana ──
123
124
  "nano-banana": {
@@ -1431,6 +1432,74 @@ var VIDEO_MODELS = {
1431
1432
  { identifier: "kling-3-omni:15s", credits: 750 }
1432
1433
  ]
1433
1434
  },
1435
+ // Kling 4.0 — two KIE endpoints, two ids (one per entry in the model list).
1436
+ // Reference: docs.kie.ai/market/kling/v4-reference-to-video — text plus up to
1437
+ // 10 reference images, 5 reference videos (2-30s each), 7 subjects and 3
1438
+ // voices (15 materials in all); with none it is plain text-to-video. A wired
1439
+ // start frame joins the reference images. Keyframes:
1440
+ // docs.kie.ai/market/kling/v4-keyframe-to-video — start frame, up to 8
1441
+ // in-between frames (the node's Image References, in order) and an end
1442
+ // frame; with no frame it is text-to-video. Both: 3-30s, 720p/1080p, native
1443
+ // audio always on, no seed. Per-second billing; a reference-video run bills
1444
+ // its input seconds too (ee/billing/ref-video-billing.ts).
1445
+ "kling-4": {
1446
+ id: "kling-4",
1447
+ kind: "video",
1448
+ modes: ["i2v", "t2v"],
1449
+ family: "Kuaishou",
1450
+ maker: "kuaishou",
1451
+ label: "Kling 4.0",
1452
+ series: "Kling",
1453
+ description: "Kling 4.0 \u2014 up to 30s with native audio and lip-sync; reference images, videos, characters and voices, or plain text.",
1454
+ useCases: ["premium", "narrative", "cinematic", "reference"],
1455
+ // Reference VIDEOS are taken (VIDEO_REF_LIMITS_BY_PROVIDER `videos: 5`) but
1456
+ // `video-reference` is NOT declared: like wan-3, the generate-video-pro
1457
+ // extend chain (a continuation tail sent as a reference video) is unwired
1458
+ // for it, so the pro node offers it in keyframes mode only.
1459
+ features: ["audio", "reference-image", "reference-to-video", "character-subjects"],
1460
+ aspectRatios: VIDEO_RATIOS_KLING_4,
1461
+ durations: [3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30],
1462
+ defaultDuration: 5,
1463
+ resolutions: ["720p", "1080p"],
1464
+ unlistedResolutionRendersAs: "720p",
1465
+ noSeed: true,
1466
+ // neither Kling 4.0 schema has a `seed` (additionalProperties: false)
1467
+ pricing: [
1468
+ { identifier: "kling-4", credits: 360, note: "default 5s 720p \u2014 see :Ns:res variants for exact" },
1469
+ { identifier: "kling-4:5s:720p", credits: 360, note: "5s 720p (the default tier)" },
1470
+ { identifier: "kling-4:5s:1080p", credits: 540, note: "5s 1080p" },
1471
+ { identifier: "kling-4:3s:720p", credits: 220, note: "3s 720p (min)" },
1472
+ { identifier: "kling-4:30s:1080p", credits: 3190, note: "30s 1080p (max)" },
1473
+ { identifier: "kling-4:8s:720p-ref", credits: 340, note: "per-second anchor with a reference video: billed \xD7 (output + max(output, input seconds)) \xF7 8" }
1474
+ ]
1475
+ },
1476
+ "kling-4-keyframes": {
1477
+ id: "kling-4-keyframes",
1478
+ kind: "video",
1479
+ modes: ["i2v", "t2v"],
1480
+ family: "Kuaishou",
1481
+ maker: "kuaishou",
1482
+ label: "Kling 4.0 Keyframes",
1483
+ series: "Kling",
1484
+ description: "Kling 4.0 Keyframes \u2014 start frame, up to 8 in-between frames and an end frame; up to 30s with native audio.",
1485
+ useCases: ["premium", "narrative", "keyframes"],
1486
+ // `reference-to-video`: in-between frames alone (no start frame) run —
1487
+ // KIE takes `keyframe_urls` without `first_frame_url`.
1488
+ features: ["end-frame", "audio", "reference-image", "reference-to-video", "keyframes"],
1489
+ aspectRatios: VIDEO_RATIOS_KLING_4,
1490
+ durations: [3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30],
1491
+ defaultDuration: 5,
1492
+ resolutions: ["720p", "1080p"],
1493
+ unlistedResolutionRendersAs: "720p",
1494
+ noSeed: true,
1495
+ pricing: [
1496
+ { identifier: "kling-4-keyframes", credits: 360, note: "default 5s 720p \u2014 see :Ns:res variants for exact" },
1497
+ { identifier: "kling-4-keyframes:5s:720p", credits: 360, note: "5s 720p (the default tier)" },
1498
+ { identifier: "kling-4-keyframes:5s:1080p", credits: 540, note: "5s 1080p" },
1499
+ { identifier: "kling-4-keyframes:3s:720p", credits: 220, note: "3s 720p (min)" },
1500
+ { identifier: "kling-4-keyframes:30s:1080p", credits: 3190, note: "30s 1080p (max)" }
1501
+ ]
1502
+ },
1434
1503
  // ── xAI Grok video ──
1435
1504
  "grok-i2v": {
1436
1505
  id: "grok-i2v",
@@ -3598,5 +3667,5 @@ exports.resolutionOptionsByKind = resolutionOptionsByKind;
3598
3667
  exports.seedanceDraftFinalizeBillableSec = seedanceDraftFinalizeBillableSec;
3599
3668
  exports.seedanceDraftFinalizeCreditId = seedanceDraftFinalizeCreditId;
3600
3669
  exports.validateModelInput = validateModelInput;
3601
- //# sourceMappingURL=chunk-KOP7UTQR.cjs.map
3602
- //# sourceMappingURL=chunk-KOP7UTQR.cjs.map
3670
+ //# sourceMappingURL=chunk-ADYPAGQF.cjs.map
3671
+ //# sourceMappingURL=chunk-ADYPAGQF.cjs.map