@nodaro/shared 3.36.0 → 3.38.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 (144) hide show
  1. package/dist/{chunk-FKQJYMCO.js → chunk-2BHOAYZW.js} +38 -13
  2. package/dist/chunk-2BHOAYZW.js.map +1 -0
  3. package/dist/{chunk-BSQCKTXH.cjs → chunk-33QG2DOW.cjs} +6 -6
  4. package/dist/{chunk-BSQCKTXH.cjs.map → chunk-33QG2DOW.cjs.map} +1 -1
  5. package/dist/{chunk-NYMOHNYV.js → chunk-5OED47LE.js} +3 -3
  6. package/dist/{chunk-NYMOHNYV.js.map → chunk-5OED47LE.js.map} +1 -1
  7. package/dist/{chunk-GZH2SIOF.cjs → chunk-5PCI6M44.cjs} +18 -6
  8. package/dist/chunk-5PCI6M44.cjs.map +1 -0
  9. package/dist/chunk-6Q4BS6AR.js +158 -0
  10. package/dist/chunk-6Q4BS6AR.js.map +1 -0
  11. package/dist/{chunk-AXUW64ZY.js → chunk-7QITUDRT.js} +3 -3
  12. package/dist/{chunk-AXUW64ZY.js.map → chunk-7QITUDRT.js.map} +1 -1
  13. package/dist/{chunk-V3N56Z2S.cjs → chunk-7VDPBFER.cjs} +43 -12
  14. package/dist/chunk-7VDPBFER.cjs.map +1 -0
  15. package/dist/{chunk-LT5IJO4Y.cjs → chunk-AQA6YXY5.cjs} +39 -10
  16. package/dist/chunk-AQA6YXY5.cjs.map +1 -0
  17. package/dist/{chunk-7AB3AE5L.js → chunk-BDSFMY4X.js} +5 -18
  18. package/dist/chunk-BDSFMY4X.js.map +1 -0
  19. package/dist/chunk-BLZBDPZJ.js +16 -0
  20. package/dist/chunk-BLZBDPZJ.js.map +1 -0
  21. package/dist/{chunk-TCBHVIMD.js → chunk-CQJYKSXF.js} +18 -6
  22. package/dist/chunk-CQJYKSXF.js.map +1 -0
  23. package/dist/{chunk-AWWOQH46.cjs → chunk-D33YBZ3B.cjs} +170 -143
  24. package/dist/chunk-D33YBZ3B.cjs.map +1 -0
  25. package/dist/chunk-DBD4BCGH.cjs +169 -0
  26. package/dist/chunk-DBD4BCGH.cjs.map +1 -0
  27. package/dist/{chunk-7VQPHLZ5.cjs → chunk-ENFBA33M.cjs} +21 -21
  28. package/dist/{chunk-7VQPHLZ5.cjs.map → chunk-ENFBA33M.cjs.map} +1 -1
  29. package/dist/{chunk-BBLE4UTG.cjs → chunk-GLON7ANZ.cjs} +48 -15
  30. package/dist/chunk-GLON7ANZ.cjs.map +1 -0
  31. package/dist/{chunk-JSGIEF6Z.cjs → chunk-HSJU5KNR.cjs} +6 -3
  32. package/dist/chunk-HSJU5KNR.cjs.map +1 -0
  33. package/dist/{chunk-YN6AXDN5.cjs → chunk-HZ46RDLD.cjs} +9 -24
  34. package/dist/chunk-HZ46RDLD.cjs.map +1 -0
  35. package/dist/{chunk-NITAUX3A.cjs → chunk-JLKZEKQ3.cjs} +45 -28
  36. package/dist/chunk-JLKZEKQ3.cjs.map +1 -0
  37. package/dist/{chunk-WXNQMJ67.js → chunk-LOWOJN65.js} +100 -6
  38. package/dist/chunk-LOWOJN65.js.map +1 -0
  39. package/dist/chunk-M7G66F6H.js +17 -0
  40. package/dist/chunk-M7G66F6H.js.map +1 -0
  41. package/dist/chunk-PSAWDKO3.cjs +19 -0
  42. package/dist/chunk-PSAWDKO3.cjs.map +1 -0
  43. package/dist/{chunk-2HVFF5SS.js → chunk-QLCSS6DK.js} +165 -141
  44. package/dist/chunk-QLCSS6DK.js.map +1 -0
  45. package/dist/{chunk-ANOQWAMU.js → chunk-R6B2UDFR.js} +35 -5
  46. package/dist/chunk-R6B2UDFR.js.map +1 -0
  47. package/dist/chunk-T3TOSWVH.cjs +20 -0
  48. package/dist/chunk-T3TOSWVH.cjs.map +1 -0
  49. package/dist/{chunk-J65CAOUV.cjs → chunk-TGZJXCLL.cjs} +105 -5
  50. package/dist/chunk-TGZJXCLL.cjs.map +1 -0
  51. package/dist/{chunk-56VQ7V3V.js → chunk-THGNDVVH.js} +29 -4
  52. package/dist/chunk-THGNDVVH.js.map +1 -0
  53. package/dist/{chunk-XNISPHTZ.js → chunk-WPT5ZTA2.js} +6 -3
  54. package/dist/chunk-WPT5ZTA2.js.map +1 -0
  55. package/dist/{chunk-NTHRTRQK.js → chunk-XA53RUSD.js} +22 -6
  56. package/dist/chunk-XA53RUSD.js.map +1 -0
  57. package/dist/entries/apps.cjs +38 -38
  58. package/dist/entries/apps.js +3 -3
  59. package/dist/entries/credits.cjs +135 -134
  60. package/dist/entries/credits.js +3 -2
  61. package/dist/entries/llm-models.cjs +81 -49
  62. package/dist/entries/llm-models.d.cts +82 -14
  63. package/dist/entries/llm-models.d.ts +82 -14
  64. package/dist/entries/llm-models.js +2 -2
  65. package/dist/entries/media.cjs +66 -42
  66. package/dist/entries/media.d.cts +145 -4
  67. package/dist/entries/media.d.ts +145 -4
  68. package/dist/entries/media.js +1 -1
  69. package/dist/entries/models.cjs +84 -27
  70. package/dist/entries/models.d.cts +109 -3
  71. package/dist/entries/models.d.ts +109 -3
  72. package/dist/entries/models.js +3 -2
  73. package/dist/entries/nodes.cjs +204 -199
  74. package/dist/entries/nodes.d.cts +19 -2
  75. package/dist/entries/nodes.d.ts +19 -2
  76. package/dist/entries/nodes.js +5 -4
  77. package/dist/entries/pipeline.d.cts +2 -2
  78. package/dist/entries/pipeline.d.ts +2 -2
  79. package/dist/entries/social.cjs +187 -174
  80. package/dist/entries/social.d.cts +26 -1
  81. package/dist/entries/social.d.ts +26 -1
  82. package/dist/entries/social.js +3 -2
  83. package/dist/entries/workflow.cjs +157 -144
  84. package/dist/entries/workflow.d.cts +49 -1
  85. package/dist/entries/workflow.d.ts +49 -1
  86. package/dist/entries/workflow.js +4 -3
  87. package/dist/index.cjs +942 -800
  88. package/dist/index.d.cts +8 -7
  89. package/dist/index.d.ts +8 -7
  90. package/dist/index.js +14 -12
  91. package/dist/{scene-node-types-Cvbtf-0a.d.ts → model-constants-C43YS07I.d.cts} +1 -497
  92. package/dist/{scene-node-types-Cvbtf-0a.d.cts → model-constants-C43YS07I.d.ts} +1 -497
  93. package/dist/scene-node-types-BSrTKnV7.d.cts +499 -0
  94. package/dist/scene-node-types-BSrTKnV7.d.ts +499 -0
  95. package/package.json +1 -1
  96. package/src/__tests__/cast-swap-limits.test.ts +40 -0
  97. package/src/__tests__/fixtures/root-exports.baseline.json +6 -0
  98. package/src/__tests__/llm-models.test.ts +61 -18
  99. package/src/__tests__/llm-price-key.test.ts +55 -0
  100. package/src/__tests__/node-preset-extract.test.ts +10 -0
  101. package/src/__tests__/node-runtime-keys.test.ts +21 -2
  102. package/src/__tests__/render-output.test.ts +64 -0
  103. package/src/__tests__/schedule-retry.test.ts +35 -0
  104. package/src/__tests__/scrape-analysis-pricing.test.ts +41 -0
  105. package/src/__tests__/suno-separate.test.ts +78 -0
  106. package/src/__tests__/video-mask.test.ts +27 -0
  107. package/src/cast-swap-limits.ts +52 -0
  108. package/src/entries/llm-models.ts +7 -0
  109. package/src/entries/models.ts +26 -1
  110. package/src/entries/social.ts +1 -0
  111. package/src/entries/workflow.ts +6 -0
  112. package/src/generated/unit-contracts.ts +8 -2
  113. package/src/llm-models.ts +111 -23
  114. package/src/mask-composite.ts +80 -3
  115. package/src/node-preset-extract.ts +4 -0
  116. package/src/node-runtime-keys.ts +7 -0
  117. package/src/render-output.ts +36 -1
  118. package/src/schedule-retry.ts +71 -0
  119. package/src/scrape-analysis-pricing.ts +73 -0
  120. package/src/script-model.ts +21 -0
  121. package/src/suno-separate.ts +210 -0
  122. package/src/video-mask.ts +97 -0
  123. package/dist/chunk-2HVFF5SS.js.map +0 -1
  124. package/dist/chunk-56VQ7V3V.js.map +0 -1
  125. package/dist/chunk-7AB3AE5L.js.map +0 -1
  126. package/dist/chunk-ANOQWAMU.js.map +0 -1
  127. package/dist/chunk-AWWOQH46.cjs.map +0 -1
  128. package/dist/chunk-BBLE4UTG.cjs.map +0 -1
  129. package/dist/chunk-FG4E7MTG.cjs +0 -4
  130. package/dist/chunk-FG4E7MTG.cjs.map +0 -1
  131. package/dist/chunk-FKQJYMCO.js.map +0 -1
  132. package/dist/chunk-GZH2SIOF.cjs.map +0 -1
  133. package/dist/chunk-J65CAOUV.cjs.map +0 -1
  134. package/dist/chunk-JSGIEF6Z.cjs.map +0 -1
  135. package/dist/chunk-LT5IJO4Y.cjs.map +0 -1
  136. package/dist/chunk-NITAUX3A.cjs.map +0 -1
  137. package/dist/chunk-NTHRTRQK.js.map +0 -1
  138. package/dist/chunk-TCBHVIMD.js.map +0 -1
  139. package/dist/chunk-TZE673G6.js +0 -3
  140. package/dist/chunk-TZE673G6.js.map +0 -1
  141. package/dist/chunk-V3N56Z2S.cjs.map +0 -1
  142. package/dist/chunk-WXNQMJ67.js.map +0 -1
  143. package/dist/chunk-XNISPHTZ.js.map +0 -1
  144. package/dist/chunk-YN6AXDN5.cjs.map +0 -1
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkJ65CAOUV_cjs = require('../chunk-J65CAOUV.cjs');
3
+ var chunkTGZJXCLL_cjs = require('../chunk-TGZJXCLL.cjs');
4
4
  var chunk44I73CQS_cjs = require('../chunk-44I73CQS.cjs');
5
5
  var chunk6DAWSVX2_cjs = require('../chunk-6DAWSVX2.cjs');
6
6
  var chunk2NIQO2J3_cjs = require('../chunk-2NIQO2J3.cjs');
@@ -9,167 +9,191 @@ var chunk2NIQO2J3_cjs = require('../chunk-2NIQO2J3.cjs');
9
9
 
10
10
  Object.defineProperty(exports, "AUDIO_FX_PRESETS", {
11
11
  enumerable: true,
12
- get: function () { return chunkJ65CAOUV_cjs.AUDIO_FX_PRESETS; }
12
+ get: function () { return chunkTGZJXCLL_cjs.AUDIO_FX_PRESETS; }
13
13
  });
14
14
  Object.defineProperty(exports, "AUDIO_FX_PRESET_LABELS", {
15
15
  enumerable: true,
16
- get: function () { return chunkJ65CAOUV_cjs.AUDIO_FX_PRESET_LABELS; }
16
+ get: function () { return chunkTGZJXCLL_cjs.AUDIO_FX_PRESET_LABELS; }
17
17
  });
18
18
  Object.defineProperty(exports, "AUDIO_FX_PRESET_SET", {
19
19
  enumerable: true,
20
- get: function () { return chunkJ65CAOUV_cjs.AUDIO_FX_PRESET_SET; }
20
+ get: function () { return chunkTGZJXCLL_cjs.AUDIO_FX_PRESET_SET; }
21
21
  });
22
22
  Object.defineProperty(exports, "AUDIO_FX_REVERB_PRESETS", {
23
23
  enumerable: true,
24
- get: function () { return chunkJ65CAOUV_cjs.AUDIO_FX_REVERB_PRESETS; }
24
+ get: function () { return chunkTGZJXCLL_cjs.AUDIO_FX_REVERB_PRESETS; }
25
25
  });
26
26
  Object.defineProperty(exports, "DEFAULT_VIDEO_MASK_PROVIDER", {
27
27
  enumerable: true,
28
- get: function () { return chunkJ65CAOUV_cjs.DEFAULT_VIDEO_MASK_PROVIDER; }
28
+ get: function () { return chunkTGZJXCLL_cjs.DEFAULT_VIDEO_MASK_PROVIDER; }
29
29
  });
30
30
  Object.defineProperty(exports, "FREECUT_EXPORT_COMPLETE", {
31
31
  enumerable: true,
32
- get: function () { return chunkJ65CAOUV_cjs.FREECUT_EXPORT_COMPLETE; }
32
+ get: function () { return chunkTGZJXCLL_cjs.FREECUT_EXPORT_COMPLETE; }
33
33
  });
34
34
  Object.defineProperty(exports, "FREECUT_EXPORT_PROGRESS", {
35
35
  enumerable: true,
36
- get: function () { return chunkJ65CAOUV_cjs.FREECUT_EXPORT_PROGRESS; }
36
+ get: function () { return chunkTGZJXCLL_cjs.FREECUT_EXPORT_PROGRESS; }
37
37
  });
38
38
  Object.defineProperty(exports, "FREECUT_READY", {
39
39
  enumerable: true,
40
- get: function () { return chunkJ65CAOUV_cjs.FREECUT_READY; }
40
+ get: function () { return chunkTGZJXCLL_cjs.FREECUT_READY; }
41
41
  });
42
42
  Object.defineProperty(exports, "FREECUT_REQUEST_IMPORT", {
43
43
  enumerable: true,
44
- get: function () { return chunkJ65CAOUV_cjs.FREECUT_REQUEST_IMPORT; }
44
+ get: function () { return chunkTGZJXCLL_cjs.FREECUT_REQUEST_IMPORT; }
45
45
  });
46
46
  Object.defineProperty(exports, "GENERATE_MASK_LIMITS", {
47
47
  enumerable: true,
48
- get: function () { return chunkJ65CAOUV_cjs.GENERATE_MASK_LIMITS; }
48
+ get: function () { return chunkTGZJXCLL_cjs.GENERATE_MASK_LIMITS; }
49
49
  });
50
50
  Object.defineProperty(exports, "LEGACY_LOTTIE_HOST_REMAP", {
51
51
  enumerable: true,
52
- get: function () { return chunkJ65CAOUV_cjs.LEGACY_LOTTIE_HOST_REMAP; }
52
+ get: function () { return chunkTGZJXCLL_cjs.LEGACY_LOTTIE_HOST_REMAP; }
53
53
  });
54
54
  Object.defineProperty(exports, "LOTTIE_OVERLAY_CATALOG", {
55
55
  enumerable: true,
56
- get: function () { return chunkJ65CAOUV_cjs.LOTTIE_OVERLAY_CATALOG; }
56
+ get: function () { return chunkTGZJXCLL_cjs.LOTTIE_OVERLAY_CATALOG; }
57
57
  });
58
58
  Object.defineProperty(exports, "LOTTIE_SLOT_FIELD_PREFIX", {
59
59
  enumerable: true,
60
- get: function () { return chunkJ65CAOUV_cjs.LOTTIE_SLOT_FIELD_PREFIX; }
60
+ get: function () { return chunkTGZJXCLL_cjs.LOTTIE_SLOT_FIELD_PREFIX; }
61
61
  });
62
62
  Object.defineProperty(exports, "MASK_COMPOSITE_AUDIO_SOURCES", {
63
63
  enumerable: true,
64
- get: function () { return chunkJ65CAOUV_cjs.MASK_COMPOSITE_AUDIO_SOURCES; }
64
+ get: function () { return chunkTGZJXCLL_cjs.MASK_COMPOSITE_AUDIO_SOURCES; }
65
65
  });
66
66
  Object.defineProperty(exports, "MASK_COMPOSITE_BACKGROUND_FITS", {
67
67
  enumerable: true,
68
- get: function () { return chunkJ65CAOUV_cjs.MASK_COMPOSITE_BACKGROUND_FITS; }
68
+ get: function () { return chunkTGZJXCLL_cjs.MASK_COMPOSITE_BACKGROUND_FITS; }
69
69
  });
70
70
  Object.defineProperty(exports, "MASK_COMPOSITE_BOUNDS", {
71
71
  enumerable: true,
72
- get: function () { return chunkJ65CAOUV_cjs.MASK_COMPOSITE_BOUNDS; }
72
+ get: function () { return chunkTGZJXCLL_cjs.MASK_COMPOSITE_BOUNDS; }
73
73
  });
74
74
  Object.defineProperty(exports, "MASK_COMPOSITE_DEFAULTS", {
75
75
  enumerable: true,
76
- get: function () { return chunkJ65CAOUV_cjs.MASK_COMPOSITE_DEFAULTS; }
76
+ get: function () { return chunkTGZJXCLL_cjs.MASK_COMPOSITE_DEFAULTS; }
77
+ });
78
+ Object.defineProperty(exports, "MASK_COMPOSITE_FILLS", {
79
+ enumerable: true,
80
+ get: function () { return chunkTGZJXCLL_cjs.MASK_COMPOSITE_FILLS; }
77
81
  });
78
82
  Object.defineProperty(exports, "MASK_COMPOSITE_UNIT_SEC", {
79
83
  enumerable: true,
80
- get: function () { return chunkJ65CAOUV_cjs.MASK_COMPOSITE_UNIT_SEC; }
84
+ get: function () { return chunkTGZJXCLL_cjs.MASK_COMPOSITE_UNIT_SEC; }
81
85
  });
82
86
  Object.defineProperty(exports, "NODARO_IMPORT_FILES", {
83
87
  enumerable: true,
84
- get: function () { return chunkJ65CAOUV_cjs.NODARO_IMPORT_FILES; }
88
+ get: function () { return chunkTGZJXCLL_cjs.NODARO_IMPORT_FILES; }
85
89
  });
86
90
  Object.defineProperty(exports, "NODARO_LOAD_TIMELINE", {
87
91
  enumerable: true,
88
- get: function () { return chunkJ65CAOUV_cjs.NODARO_LOAD_TIMELINE; }
92
+ get: function () { return chunkTGZJXCLL_cjs.NODARO_LOAD_TIMELINE; }
89
93
  });
90
94
  Object.defineProperty(exports, "NODARO_LOAD_VIDEO", {
91
95
  enumerable: true,
92
- get: function () { return chunkJ65CAOUV_cjs.NODARO_LOAD_VIDEO; }
96
+ get: function () { return chunkTGZJXCLL_cjs.NODARO_LOAD_VIDEO; }
93
97
  });
94
98
  Object.defineProperty(exports, "NODARO_RESET_PROJECT", {
95
99
  enumerable: true,
96
- get: function () { return chunkJ65CAOUV_cjs.NODARO_RESET_PROJECT; }
100
+ get: function () { return chunkTGZJXCLL_cjs.NODARO_RESET_PROJECT; }
97
101
  });
98
102
  Object.defineProperty(exports, "VIDEO_MASK_DEFAULTS", {
99
103
  enumerable: true,
100
- get: function () { return chunkJ65CAOUV_cjs.VIDEO_MASK_DEFAULTS; }
104
+ get: function () { return chunkTGZJXCLL_cjs.VIDEO_MASK_DEFAULTS; }
101
105
  });
102
106
  Object.defineProperty(exports, "VIDEO_MASK_LIMITS", {
103
107
  enumerable: true,
104
- get: function () { return chunkJ65CAOUV_cjs.VIDEO_MASK_LIMITS; }
108
+ get: function () { return chunkTGZJXCLL_cjs.VIDEO_MASK_LIMITS; }
105
109
  });
106
110
  Object.defineProperty(exports, "VIDEO_MASK_PROVIDERS", {
107
111
  enumerable: true,
108
- get: function () { return chunkJ65CAOUV_cjs.VIDEO_MASK_PROVIDERS; }
112
+ get: function () { return chunkTGZJXCLL_cjs.VIDEO_MASK_PROVIDERS; }
109
113
  });
110
114
  Object.defineProperty(exports, "applySlots", {
111
115
  enumerable: true,
112
- get: function () { return chunkJ65CAOUV_cjs.applySlots; }
116
+ get: function () { return chunkTGZJXCLL_cjs.applySlots; }
113
117
  });
114
118
  Object.defineProperty(exports, "deriveLottieSlotFields", {
115
119
  enumerable: true,
116
- get: function () { return chunkJ65CAOUV_cjs.deriveLottieSlotFields; }
120
+ get: function () { return chunkTGZJXCLL_cjs.deriveLottieSlotFields; }
117
121
  });
118
122
  Object.defineProperty(exports, "describeMaskRegion", {
119
123
  enumerable: true,
120
- get: function () { return chunkJ65CAOUV_cjs.describeMaskRegion; }
124
+ get: function () { return chunkTGZJXCLL_cjs.describeMaskRegion; }
121
125
  });
122
126
  Object.defineProperty(exports, "describeSlotControl", {
123
127
  enumerable: true,
124
- get: function () { return chunkJ65CAOUV_cjs.describeSlotControl; }
128
+ get: function () { return chunkTGZJXCLL_cjs.describeSlotControl; }
125
129
  });
126
130
  Object.defineProperty(exports, "hexToRgbaArray", {
127
131
  enumerable: true,
128
- get: function () { return chunkJ65CAOUV_cjs.hexToRgbaArray; }
132
+ get: function () { return chunkTGZJXCLL_cjs.hexToRgbaArray; }
129
133
  });
130
134
  Object.defineProperty(exports, "humanizeSlotSid", {
131
135
  enumerable: true,
132
- get: function () { return chunkJ65CAOUV_cjs.humanizeSlotSid; }
136
+ get: function () { return chunkTGZJXCLL_cjs.humanizeSlotSid; }
133
137
  });
134
138
  Object.defineProperty(exports, "listSlotSids", {
135
139
  enumerable: true,
136
- get: function () { return chunkJ65CAOUV_cjs.listSlotSids; }
140
+ get: function () { return chunkTGZJXCLL_cjs.listSlotSids; }
141
+ });
142
+ Object.defineProperty(exports, "maskCompositeEffectiveAudioSource", {
143
+ enumerable: true,
144
+ get: function () { return chunkTGZJXCLL_cjs.maskCompositeEffectiveAudioSource; }
145
+ });
146
+ Object.defineProperty(exports, "maskCompositeFillOf", {
147
+ enumerable: true,
148
+ get: function () { return chunkTGZJXCLL_cjs.maskCompositeFillOf; }
149
+ });
150
+ Object.defineProperty(exports, "maskCompositeLeadHandle", {
151
+ enumerable: true,
152
+ get: function () { return chunkTGZJXCLL_cjs.maskCompositeLeadHandle; }
137
153
  });
138
154
  Object.defineProperty(exports, "maskCompositeUnits", {
139
155
  enumerable: true,
140
- get: function () { return chunkJ65CAOUV_cjs.maskCompositeUnits; }
156
+ get: function () { return chunkTGZJXCLL_cjs.maskCompositeUnits; }
157
+ });
158
+ Object.defineProperty(exports, "maskCompositeUsesForeground", {
159
+ enumerable: true,
160
+ get: function () { return chunkTGZJXCLL_cjs.maskCompositeUsesForeground; }
141
161
  });
142
162
  Object.defineProperty(exports, "normalizeLottieLayers", {
143
163
  enumerable: true,
144
- get: function () { return chunkJ65CAOUV_cjs.normalizeLottieLayers; }
164
+ get: function () { return chunkTGZJXCLL_cjs.normalizeLottieLayers; }
145
165
  });
146
166
  Object.defineProperty(exports, "resolveLottieOverlaySrc", {
147
167
  enumerable: true,
148
- get: function () { return chunkJ65CAOUV_cjs.resolveLottieOverlaySrc; }
168
+ get: function () { return chunkTGZJXCLL_cjs.resolveLottieOverlaySrc; }
149
169
  });
150
170
  Object.defineProperty(exports, "resolveMaskCompositeSettings", {
151
171
  enumerable: true,
152
- get: function () { return chunkJ65CAOUV_cjs.resolveMaskCompositeSettings; }
172
+ get: function () { return chunkTGZJXCLL_cjs.resolveMaskCompositeSettings; }
153
173
  });
154
174
  Object.defineProperty(exports, "resolveVideoMaskProvider", {
155
175
  enumerable: true,
156
- get: function () { return chunkJ65CAOUV_cjs.resolveVideoMaskProvider; }
176
+ get: function () { return chunkTGZJXCLL_cjs.resolveVideoMaskProvider; }
177
+ });
178
+ Object.defineProperty(exports, "resolveVideoMaskZone", {
179
+ enumerable: true,
180
+ get: function () { return chunkTGZJXCLL_cjs.resolveVideoMaskZone; }
157
181
  });
158
182
  Object.defineProperty(exports, "rgbaArrayToHex", {
159
183
  enumerable: true,
160
- get: function () { return chunkJ65CAOUV_cjs.rgbaArrayToHex; }
184
+ get: function () { return chunkTGZJXCLL_cjs.rgbaArrayToHex; }
161
185
  });
162
186
  Object.defineProperty(exports, "videoMaskBilledSeconds", {
163
187
  enumerable: true,
164
- get: function () { return chunkJ65CAOUV_cjs.videoMaskBilledSeconds; }
188
+ get: function () { return chunkTGZJXCLL_cjs.videoMaskBilledSeconds; }
165
189
  });
166
190
  Object.defineProperty(exports, "videoMaskCreditId", {
167
191
  enumerable: true,
168
- get: function () { return chunkJ65CAOUV_cjs.videoMaskCreditId; }
192
+ get: function () { return chunkTGZJXCLL_cjs.videoMaskCreditId; }
169
193
  });
170
194
  Object.defineProperty(exports, "videoMaskCreditIds", {
171
195
  enumerable: true,
172
- get: function () { return chunkJ65CAOUV_cjs.videoMaskCreditIds; }
196
+ get: function () { return chunkTGZJXCLL_cjs.videoMaskCreditIds; }
173
197
  });
174
198
  Object.defineProperty(exports, "DEFAULT_OVERLAY_QR", {
175
199
  enumerable: true,
@@ -317,10 +317,38 @@ declare const AUDIO_FX_REVERB_PRESETS: ReadonlySet<AudioFxPreset>;
317
317
  declare const VIDEO_MASK_PROVIDERS: readonly ["sam-3.1", "sam-3"];
318
318
  type VideoMaskProvider = (typeof VIDEO_MASK_PROVIDERS)[number];
319
319
  declare const DEFAULT_VIDEO_MASK_PROVIDER: VideoMaskProvider;
320
+ /**
321
+ * `zone`: keep only the subjects whose bounding-box CENTRE lies inside an
322
+ * inner rectangle, given as margins in % of the frame (each
323
+ * `VIDEO_MASK_LIMITS.ZONE_MARGIN_PCT_MIN`–`ZONE_MARGIN_PCT_MAX`). All zero, or
324
+ * no zone, = off.
325
+ */
326
+ interface VideoMaskZone {
327
+ readonly leftPct: number;
328
+ readonly rightPct: number;
329
+ readonly topPct: number;
330
+ readonly bottomPct: number;
331
+ }
320
332
  /** A new Video Mask node's settings — spread into its node definition. */
321
333
  declare const VIDEO_MASK_DEFAULTS: {
322
334
  readonly threshold: 0.5;
323
335
  readonly provider: VideoMaskProvider;
336
+ /** Off: the mask is the model's, frame for frame (see `HOLD_EMPTY_BELOW_FRACTION`). */
337
+ readonly holdLastMask: false;
338
+ /** 0 = off: every region the model finds is kept (see `MIN_SUBJECT_HEIGHT_PCT_*`). */
339
+ readonly minSubjectHeightPct: 0;
340
+ /** 0 = off: no ceiling on a region's height (see `MAX_SUBJECT_HEIGHT_PCT_*`). */
341
+ readonly maxSubjectHeightPct: 0;
342
+ /** Off: subjects anywhere in the frame are kept (see `ZONE_MARGIN_PCT_*`). */
343
+ readonly zone: VideoMaskZone | null;
344
+ /**
345
+ * Off: one pass over the whole clip. On: the clip's scene cuts are found
346
+ * first and each shot is segmented on its own — the model starts afresh
347
+ * after every cut (finding the new shot's subjects), and `holdLastMask`
348
+ * never carries a mask across a cut. A clip with no cut (a flash is not
349
+ * one) is one shot: the same mask, fitted to the clip's exact frame count.
350
+ */
351
+ readonly perShot: false;
324
352
  };
325
353
  declare const VIDEO_MASK_LIMITS: {
326
354
  /** The longest input clip a run accepts, in seconds of PRICED length (see `videoMaskBilledSeconds`). */
@@ -335,6 +363,41 @@ declare const VIDEO_MASK_LIMITS: {
335
363
  readonly THRESHOLD_STEP: 0.05;
336
364
  /** Default detection confidence. Lower finds more (and less precise) regions. */
337
365
  readonly THRESHOLD_DEFAULT: 0.5;
366
+ /**
367
+ * `holdLastMask`: a frame whose mask covers less than this fraction of the
368
+ * picture (0.002 % — about 41 px at 1080p: a stray speck, never a subject) counts as empty — the subject lost (hidden behind a
369
+ * hand, turned away) — and shows the most recent non-empty frame's mask
370
+ * instead. Frames before the first detection stay as they are.
371
+ */
372
+ readonly HOLD_EMPTY_BELOW_FRACTION: 0.00002;
373
+ /**
374
+ * `minSubjectHeightPct`: drop every connected white region (8-connected)
375
+ * whose bounding box is shorter than this % of the frame height — extras'
376
+ * small faces behind the main subject. 0 = off. Applied before
377
+ * `holdLastMask`, so a frame left with only small regions counts as empty
378
+ * and is held from the last frame with a big subject.
379
+ */
380
+ readonly MIN_SUBJECT_HEIGHT_PCT_MIN: 0;
381
+ readonly MIN_SUBJECT_HEIGHT_PCT_MAX: 100;
382
+ /**
383
+ * `maxSubjectHeightPct`, the mirror: drop every region whose bounding box is
384
+ * TALLER than this % of the frame height (keep only the small subjects — a
385
+ * paste-back mask of the background faces). 0 = off. With both set, a
386
+ * region is kept when min ≤ height ≤ max (min > max is refused). Same pass,
387
+ * same order (before `holdLastMask`).
388
+ */
389
+ readonly MAX_SUBJECT_HEIGHT_PCT_MIN: 0;
390
+ readonly MAX_SUBJECT_HEIGHT_PCT_MAX: 100;
391
+ /**
392
+ * `zone` margins (left / right / top / bottom, % of the frame width or
393
+ * height): drop every connected region whose bounding-box centre lies
394
+ * outside `[w·left/100, w·(1−right/100)] × [h·top/100, h·(1−bottom/100)]`
395
+ * — the faces at the edges of the picture. At most 49 % a side, so the
396
+ * inner rectangle is never empty. Applied after the size cut and before
397
+ * `holdLastMask`, so a frame left with nothing inside counts as empty.
398
+ */
399
+ readonly ZONE_MARGIN_PCT_MIN: 0;
400
+ readonly ZONE_MARGIN_PCT_MAX: 49;
338
401
  };
339
402
  /** Every price row a provider can be charged from, smallest first. */
340
403
  declare function videoMaskCreditIds(provider?: VideoMaskProvider): string[];
@@ -353,6 +416,13 @@ declare function videoMaskBilledSeconds(durationSec: number, fps?: number | null
353
416
  declare function videoMaskCreditId(billedSec: number | null | undefined, provider?: VideoMaskProvider): string;
354
417
  /** Narrow an arbitrary value to a known provider, falling back to the default. */
355
418
  declare function resolveVideoMaskProvider(value: unknown): VideoMaskProvider;
419
+ /**
420
+ * A zone as the region filter reads it: each margin a finite number clamped
421
+ * to `ZONE_MARGIN_PCT_MIN`–`ZONE_MARGIN_PCT_MAX` (anything else is 0), and
422
+ * null when there is no zone or every margin is 0 (off). The one reading
423
+ * shared by the worker, a workflow run's payload and the node's own run.
424
+ */
425
+ declare function resolveVideoMaskZone(value: unknown): VideoMaskZone | null;
356
426
  /** `POST /v1/video-mask` request body. */
357
427
  interface VideoMaskRequest {
358
428
  /** The clip to segment. */
@@ -362,6 +432,22 @@ interface VideoMaskRequest {
362
432
  /** Detection confidence, `VIDEO_MASK_LIMITS.THRESHOLD_MIN`–`THRESHOLD_MAX` (default 0.5). */
363
433
  readonly threshold?: number;
364
434
  readonly provider?: VideoMaskProvider;
435
+ /** Hold the last mask where the subject is lost (default false): an empty frame
436
+ * after the first detection repeats the most recent non-empty one. */
437
+ readonly holdLastMask?: boolean;
438
+ /** Ignore subjects smaller than this % of the frame height, 0–100 (default 0 = off):
439
+ * connected regions whose bounding box is shorter are dropped from every frame. */
440
+ readonly minSubjectHeightPct?: number;
441
+ /** Ignore subjects larger than this % of the frame height, 0–100 (default 0 = off):
442
+ * connected regions whose bounding box is taller are dropped from every frame. */
443
+ readonly maxSubjectHeightPct?: number;
444
+ /** Keep only the subjects whose bounding-box centre is inside these margins, each
445
+ * 0–49 % of the frame (a margin left out is 0). null / omitted / all 0 = off. */
446
+ readonly zone?: Partial<VideoMaskZone> | null;
447
+ /** Segment each shot on its own (default false): the clip's scene cuts are found
448
+ * first and the subjects are detected again in every shot; `holdLastMask` never
449
+ * carries a mask across a cut. The output then carries `shots`. */
450
+ readonly perShot?: boolean;
365
451
  }
366
452
 
367
453
  /**
@@ -414,6 +500,15 @@ interface GenerateMaskOutput {
414
500
  * background is fitted to that frame (`backgroundFit`) and loops when shorter;
415
501
  * the mask is stretched to the frame and holds its last frame when shorter.
416
502
  *
503
+ * `fill` picks what fills the masked area. `"video"` (the default) is the
504
+ * foreground, as above. `"pixelate"` and `"blur"` fill it with the BACKGROUND
505
+ * itself, pixelated or blurred: there is no foreground then (a sent
506
+ * `foregroundUrl` is ignored), so the render follows the BACKGROUND (its size,
507
+ * frame rate and length; `backgroundFit` has nothing to fit), and the run is
508
+ * priced on the background's length. With no foreground the result always
509
+ * carries the background's sound — `audioSource` is ignored there
510
+ * ({@link maskCompositeEffectiveAudioSource}); the canvas hides the control.
511
+ *
417
512
  * Priced per started 5 seconds of the result (the foreground's length), like
418
513
  * Trim / Loop / Combine Videos: the node's own `model_pricing` row is ONE unit
419
514
  * (`maskCompositeUnits` counts them). Worked examples (repeated in
@@ -425,6 +520,9 @@ interface GenerateMaskOutput {
425
520
  /** How the background is fitted to the foreground's frame. */
426
521
  declare const MASK_COMPOSITE_BACKGROUND_FITS: readonly ["cover", "contain", "stretch"];
427
522
  type MaskCompositeBackgroundFit = (typeof MASK_COMPOSITE_BACKGROUND_FITS)[number];
523
+ /** What fills the masked area: the foreground video, or the background itself pixelated or blurred. */
524
+ declare const MASK_COMPOSITE_FILLS: readonly ["video", "pixelate", "blur"];
525
+ type MaskCompositeFill = (typeof MASK_COMPOSITE_FILLS)[number];
428
526
  /** Which sound the result carries. `mix` blends both tracks at equal level. */
429
527
  declare const MASK_COMPOSITE_AUDIO_SOURCES: readonly ["foreground", "background", "mix", "none"];
430
528
  type MaskCompositeAudioSource = (typeof MASK_COMPOSITE_AUDIO_SOURCES)[number];
@@ -435,7 +533,19 @@ declare const MASK_COMPOSITE_BOUNDS: {
435
533
  /** Grow (+) or shrink (−) the white region, pixels. */
436
534
  readonly GROW_MIN: -10;
437
535
  readonly GROW_MAX: 10;
438
- /** The longest foreground a run accepts, seconds. */
536
+ /** How strongly the foreground covers the background inside the mask
537
+ * (1 = fully, today's output; 0 = not at all). */
538
+ readonly OPACITY_MIN: 0;
539
+ readonly OPACITY_MAX: 1;
540
+ /** Pixelate: the block size as a % of the frame's WIDTH (relative, so a
541
+ * setting looks the same at any resolution); the worker makes the blocks
542
+ * max(2, round(width × pct / 100)) px. 1.25 % = 16 px on a 1280-wide frame. */
543
+ readonly PIXEL_SIZE_PCT_MIN: 0.2;
544
+ readonly PIXEL_SIZE_PCT_MAX: 10;
545
+ /** Blur: the gaussian's sigma as a % of the frame's WIDTH (2 % ≈ sigma 25 px on a 1280-wide frame). */
546
+ readonly BLUR_STRENGTH_PCT_MIN: 0.1;
547
+ readonly BLUR_STRENGTH_PCT_MAX: 5;
548
+ /** The longest leading video (the foreground; the background when `fill` is not video) a run accepts, seconds. */
439
549
  readonly MAX_DURATION_SEC: 300;
440
550
  };
441
551
  /** Seconds of result one pricing unit covers. */
@@ -451,6 +561,10 @@ declare const MASK_COMPOSITE_DEFAULTS: {
451
561
  readonly invertMask: false;
452
562
  readonly feather: 2;
453
563
  readonly grow: 0;
564
+ readonly opacity: 1;
565
+ readonly fill: MaskCompositeFill;
566
+ readonly pixelSizePct: 1.25;
567
+ readonly blurStrengthPct: 2;
454
568
  readonly backgroundFit: MaskCompositeBackgroundFit;
455
569
  readonly audioSource: MaskCompositeAudioSource;
456
570
  };
@@ -458,6 +572,14 @@ interface MaskCompositeSettings {
458
572
  readonly invertMask: boolean;
459
573
  readonly feather: number;
460
574
  readonly grow: number;
575
+ /** Inside the mask: opacity × foreground + (1 − opacity) × background. */
576
+ readonly opacity: number;
577
+ /** What fills the masked area (`video` = the foreground). */
578
+ readonly fill: MaskCompositeFill;
579
+ /** Pixelate block size, % of the frame width (used when `fill` is `pixelate`). */
580
+ readonly pixelSizePct: number;
581
+ /** Blur strength: the gaussian's sigma as a % of the frame width (used when `fill` is `blur`). */
582
+ readonly blurStrengthPct: number;
461
583
  readonly backgroundFit: MaskCompositeBackgroundFit;
462
584
  readonly audioSource: MaskCompositeAudioSource;
463
585
  }
@@ -468,10 +590,29 @@ interface MaskCompositeSettings {
468
590
  * panel. The ONE normaliser both workflow engines and the worker call.
469
591
  */
470
592
  declare function resolveMaskCompositeSettings(data: Readonly<Record<string, unknown>>): MaskCompositeSettings;
593
+ /** The fill a node, payload or request body asks for: an unknown value is `video` (the default). */
594
+ declare function maskCompositeFillOf(data: Readonly<Record<string, unknown>> | null | undefined): MaskCompositeFill;
595
+ /** Does this fill take a foreground video? Only `video` does; pixelate and blur fill from the background. */
596
+ declare function maskCompositeUsesForeground(fill: MaskCompositeFill): boolean;
597
+ /**
598
+ * The input whose size, rate and length the result has (and so the one a run
599
+ * is measured and priced on): the canvas handle — `video` (the foreground) for
600
+ * the video fill, `background-video` for pixelate and blur. The one rule the
601
+ * route, the workflow run, the run estimates and the length walks read.
602
+ */
603
+ declare function maskCompositeLeadHandle(data: Readonly<Record<string, unknown>> | null | undefined): "video" | "background-video";
604
+ /**
605
+ * The sound a render actually carries. With no foreground (pixelate / blur) it
606
+ * is ALWAYS the background's — the only track there is — whatever
607
+ * `audioSource` says (the canvas hides that control for these fills, so a
608
+ * stored `none` from the Video fill can never silently mute the result).
609
+ */
610
+ declare function maskCompositeEffectiveAudioSource(s: Pick<MaskCompositeSettings, "fill" | "audioSource">): MaskCompositeAudioSource;
471
611
  /** `POST /v1/mask-composite` request body. */
472
612
  interface MaskCompositeRequest extends Partial<MaskCompositeSettings> {
473
- /** The video whose white-masked region is kept (its size, rate and length lead). */
474
- readonly foregroundUrl: string;
613
+ /** The video whose white-masked region is kept (its size, rate and length lead).
614
+ * Required when `fill` is `video` (the default); not used by `pixelate` / `blur`. */
615
+ readonly foregroundUrl?: string;
475
616
  /** The video shown where the mask is black. */
476
617
  readonly backgroundUrl: string;
477
618
  /** The mask video — white = foreground (Video Mask's output). */
@@ -553,4 +694,4 @@ declare function overlayVariantHandle(platformId: string): string;
553
694
  /** The platform id a variant handle names, or null for any other handle. */
554
695
  declare function overlayVariantIdFromHandle(handle: string | null | undefined): string | null;
555
696
 
556
- export { AUDIO_FX_PRESETS, AUDIO_FX_PRESET_LABELS, AUDIO_FX_PRESET_SET, AUDIO_FX_REVERB_PRESETS, type AudioFxPreset, DEFAULT_VIDEO_MASK_PROVIDER, FAL_VIDEO_DEPTH_PROVIDERS, FREECUT_EXPORT_COMPLETE, FREECUT_EXPORT_PROGRESS, FREECUT_READY, FREECUT_REQUEST_IMPORT, type FreecutExportCompletePayload, type FreecutExportProgressPayload, type FreecutImportFile, type FreecutRequestImportPayload, GENERATE_MASK_LIMITS, type GenerateMaskOutput, type GenerateMaskRequest, LEGACY_LOTTIE_HOST_REMAP, LOTTIE_OVERLAY_CATALOG, LOTTIE_SLOT_FIELD_PREFIX, type LottieOverlayCatalogEntry, type LottieSlotField, MASK_COMPOSITE_AUDIO_SOURCES, MASK_COMPOSITE_BACKGROUND_FITS, MASK_COMPOSITE_BOUNDS, MASK_COMPOSITE_DEFAULTS, MASK_COMPOSITE_UNIT_SEC, type MaskCompositeAudioSource, type MaskCompositeBackgroundFit, type MaskCompositeRequest, type MaskCompositeSettings, type MaskRegionDescriptor, NODARO_IMPORT_FILES, NODARO_LOAD_TIMELINE, NODARO_LOAD_VIDEO, NODARO_RESET_PROJECT, type NodaroLoadTimelinePayload, type NodaroLoadVideoPayload, OVERLAY_MAX_VARIANTS, OVERLAY_PLATFORMS, OVERLAY_PLATFORM_IDS, OVERLAY_SHAPES, OVERLAY_VARIANT_HANDLE_PREFIX, type OverlayPlatformId, type OverlayPlatformPreset, type OverlayPlatformZone, type OverlayShape, type OverlayShapeElement, type PixelBox, REPLICATE_VIDEO_DEPTH_PROVIDERS, type SlotControlDescriptor, type SlotControlKind, VIDEO_DEPTH_BUCKETS, VIDEO_DEPTH_COLORMAPS, VIDEO_DEPTH_LIMITS, VIDEO_DEPTH_MODEL_SIZES, VIDEO_DEPTH_PROVIDERS, VIDEO_DEPTH_RESOLUTIONS, VIDEO_MASK_DEFAULTS, VIDEO_MASK_LIMITS, VIDEO_MASK_PROVIDERS, type VideoDepthColormap, type VideoDepthLever, type VideoDepthModelSize, type VideoDepthProvider, type VideoDepthResolution, type VideoMaskProvider, type VideoMaskRequest, applySlots, checkVideoDepthLength, deriveLottieSlotFields, describeMaskRegion, describeSlotControl, hexToRgbaArray, humanizeSlotSid, listSlotSids, maskCompositeUnits, normalizeLottieLayers, overlayPlatformById, overlayShapeElement, overlayVariantHandle, overlayVariantIdFromHandle, resolveLottieOverlaySrc, resolveMaskCompositeSettings, resolveVideoDepthColormap, resolveVideoDepthModelSize, resolveVideoDepthProvider, resolveVideoMaskProvider, rgbaArrayToHex, videoDepthColormaps, videoDepthCreditId, videoDepthLevers, videoDepthNeedsGrayscalePass, videoMaskBilledSeconds, videoMaskCreditId, videoMaskCreditIds };
697
+ export { AUDIO_FX_PRESETS, AUDIO_FX_PRESET_LABELS, AUDIO_FX_PRESET_SET, AUDIO_FX_REVERB_PRESETS, type AudioFxPreset, DEFAULT_VIDEO_MASK_PROVIDER, FAL_VIDEO_DEPTH_PROVIDERS, FREECUT_EXPORT_COMPLETE, FREECUT_EXPORT_PROGRESS, FREECUT_READY, FREECUT_REQUEST_IMPORT, type FreecutExportCompletePayload, type FreecutExportProgressPayload, type FreecutImportFile, type FreecutRequestImportPayload, GENERATE_MASK_LIMITS, type GenerateMaskOutput, type GenerateMaskRequest, LEGACY_LOTTIE_HOST_REMAP, LOTTIE_OVERLAY_CATALOG, LOTTIE_SLOT_FIELD_PREFIX, type LottieOverlayCatalogEntry, type LottieSlotField, MASK_COMPOSITE_AUDIO_SOURCES, MASK_COMPOSITE_BACKGROUND_FITS, MASK_COMPOSITE_BOUNDS, MASK_COMPOSITE_DEFAULTS, MASK_COMPOSITE_FILLS, MASK_COMPOSITE_UNIT_SEC, type MaskCompositeAudioSource, type MaskCompositeBackgroundFit, type MaskCompositeFill, type MaskCompositeRequest, type MaskCompositeSettings, type MaskRegionDescriptor, NODARO_IMPORT_FILES, NODARO_LOAD_TIMELINE, NODARO_LOAD_VIDEO, NODARO_RESET_PROJECT, type NodaroLoadTimelinePayload, type NodaroLoadVideoPayload, OVERLAY_MAX_VARIANTS, OVERLAY_PLATFORMS, OVERLAY_PLATFORM_IDS, OVERLAY_SHAPES, OVERLAY_VARIANT_HANDLE_PREFIX, type OverlayPlatformId, type OverlayPlatformPreset, type OverlayPlatformZone, type OverlayShape, type OverlayShapeElement, type PixelBox, REPLICATE_VIDEO_DEPTH_PROVIDERS, type SlotControlDescriptor, type SlotControlKind, VIDEO_DEPTH_BUCKETS, VIDEO_DEPTH_COLORMAPS, VIDEO_DEPTH_LIMITS, VIDEO_DEPTH_MODEL_SIZES, VIDEO_DEPTH_PROVIDERS, VIDEO_DEPTH_RESOLUTIONS, VIDEO_MASK_DEFAULTS, VIDEO_MASK_LIMITS, VIDEO_MASK_PROVIDERS, type VideoDepthColormap, type VideoDepthLever, type VideoDepthModelSize, type VideoDepthProvider, type VideoDepthResolution, type VideoMaskProvider, type VideoMaskRequest, type VideoMaskZone, applySlots, checkVideoDepthLength, deriveLottieSlotFields, describeMaskRegion, describeSlotControl, hexToRgbaArray, humanizeSlotSid, listSlotSids, maskCompositeEffectiveAudioSource, maskCompositeFillOf, maskCompositeLeadHandle, maskCompositeUnits, maskCompositeUsesForeground, normalizeLottieLayers, overlayPlatformById, overlayShapeElement, overlayVariantHandle, overlayVariantIdFromHandle, resolveLottieOverlaySrc, resolveMaskCompositeSettings, resolveVideoDepthColormap, resolveVideoDepthModelSize, resolveVideoDepthProvider, resolveVideoMaskProvider, resolveVideoMaskZone, rgbaArrayToHex, videoDepthColormaps, videoDepthCreditId, videoDepthLevers, videoDepthNeedsGrayscalePass, videoMaskBilledSeconds, videoMaskCreditId, videoMaskCreditIds };