@nodaro/shared 3.24.0 → 3.25.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.
- package/dist/index.cjs +595 -128
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +375 -48
- package/dist/index.d.ts +375 -48
- package/dist/index.js +553 -129
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/credit-identifiers.test.ts +19 -6
- package/src/__tests__/dialogue-capabilities.test.ts +3 -2
- package/src/__tests__/edit-plan-minute-ids.test.ts +82 -0
- package/src/__tests__/json-kinds.test.ts +179 -0
- package/src/__tests__/presentation-utils.test.ts +1 -0
- package/src/__tests__/preview-gate.test.ts +2 -2
- package/src/__tests__/pricing-default-duration.test.ts +56 -15
- package/src/__tests__/private-host.test.ts +24 -0
- package/src/__tests__/render-nodes.test.ts +22 -3
- package/src/__tests__/tts-capabilities.test.ts +61 -1
- package/src/__tests__/video-link-input.test.ts +148 -0
- package/src/__tests__/video-link-needs.test.ts +67 -0
- package/src/__tests__/video-request-normalize.test.ts +18 -3
- package/src/credit-identifiers.ts +48 -37
- package/src/edit-plan-contract.ts +67 -1
- package/src/fan-out-rows.ts +2 -2
- package/src/index.ts +45 -1
- package/src/json-kinds.ts +188 -0
- package/src/model-catalog.ts +121 -8
- package/src/model-constants.ts +68 -42
- package/src/node-default-mappings.ts +1 -0
- package/src/pipeline-types.ts +13 -2
- package/src/presentation-utils.ts +8 -1
- package/src/private-host.ts +91 -0
- package/src/producer-types.ts +3 -0
- package/src/render-nodes.ts +12 -1
- package/src/scene-node-types.ts +17 -5
- package/src/social-post-readers.ts +37 -0
- package/src/video-link.ts +238 -0
- package/src/voices.ts +16 -9
package/dist/index.cjs
CHANGED
|
@@ -70,13 +70,14 @@ var MODEL_RECOMMENDATIONS = [
|
|
|
70
70
|
{ intent: "cheap batch video clips", modelIds: ["veo3.1", "wan-turbo", "bytedance-lite"], note: "VEO 3.1 Fast is the best price/quality balance with native audio." },
|
|
71
71
|
{ intent: "video with start + end frame", modelIds: ["veo3", "veo3.1", "kling-turbo", "minimax", "hailuo-standard", "seedance-2"], note: "All listed support an end frame; VEO uses imageUrls[start, end]." },
|
|
72
72
|
{ intent: "music / song generation", modelIds: ["suno-v6", "suno-v6_wild", "suno-v6_mini", "suno-v5_5"], note: "V6 is the default flagship; V6 Wild for bolder, less predictable results; V6 Mini when speed matters; v5.5 / v5 / v4 keep their own character. Same price." },
|
|
73
|
-
{ intent: "voice over / narration", modelIds: ["elevenlabs-v4", "elevenlabs-v3", "elevenlabs-turbo"], note: "v4 is the default: [audio tags] for emotion and up to 10,000 characters per request. v3 is the previous expressive model, still selectable. Turbo is
|
|
73
|
+
{ intent: "voice over / narration", modelIds: ["elevenlabs-v4", "elevenlabs-v3", "elevenlabs-v4-turbo", "elevenlabs-turbo"], note: "v4 is the default: [audio tags] for emotion and up to 10,000 characters per request. v3 is the previous expressive model, still selectable. v4 Turbo keeps v4's tags at Turbo's credit price; Turbo v2.5 is the cheapest for plain narration without tags." },
|
|
74
74
|
{ intent: "lip-sync a portrait to audio", modelIds: ["kling-avatar-pro", "kling-avatar", "infinitalk"], note: "Pro for best mouth shape; InfiniTalk for resolution control." },
|
|
75
75
|
{ intent: "transcription / captions", modelIds: ["elevenlabs-stt", "incredibly-fast-whisper", "whisper"], note: "Captions need WORD timestamps: ElevenLabs STT (always) or Incredibly Fast Whisper. Plain Whisper returns phrase segments only." },
|
|
76
76
|
{ intent: "motion transfer (drive a subject by another video)", modelIds: ["motion-transfer", "kling-3.0-motion"], note: "Kling 2.6 base is cheap; Kling 3.0 is premium." }
|
|
77
77
|
];
|
|
78
78
|
var NANO_BANANA_RATIOS = ["1:1", "16:9", "9:16", "4:3", "3:4", "3:2", "2:3", "4:5", "5:4", "21:9"];
|
|
79
79
|
var NANO_BANANA_2_LITE_RATIOS = ["auto", "1:1", "16:9", "9:16", "4:3", "3:4", "3:2", "2:3", "4:5", "5:4", "21:9", "4:1", "1:4", "8:1", "1:8"];
|
|
80
|
+
var NANO_BANANA_2_1_RATIOS = ["auto", "1:1", "16:9", "9:16", "4:3", "3:4", "3:2", "2:3", "4:5", "5:4", "21:9", "4:1", "1:4", "8:1", "1:8"];
|
|
80
81
|
var FLUX_RATIOS = ["1:1", "16:9", "9:16", "4:3", "3:4", "3:2", "2:3"];
|
|
81
82
|
var KONTEXT_RATIOS = ["1:1", "16:9", "9:16", "4:3", "3:4", "21:9"];
|
|
82
83
|
var GROK_RATIOS = ["1:1", "16:9", "9:16", "3:2", "2:3"];
|
|
@@ -146,6 +147,26 @@ var IMAGE_MODELS = {
|
|
|
146
147
|
{ identifier: "nano-banana-2:4K", credits: 50, note: "4K" }
|
|
147
148
|
]
|
|
148
149
|
},
|
|
150
|
+
"nano-banana-2-1": {
|
|
151
|
+
id: "nano-banana-2-1",
|
|
152
|
+
kind: "image",
|
|
153
|
+
// Single id for both modes, like nano-banana-2: optional input images via
|
|
154
|
+
// image_input (up to 10) on the one endpoint.
|
|
155
|
+
modes: ["t2i", "i2i"],
|
|
156
|
+
family: "Google",
|
|
157
|
+
label: "Nano Banana 2.1",
|
|
158
|
+
series: "Nano Banana",
|
|
159
|
+
description: "Google's high-efficiency image model for generation and editing \u2014 sharper quality, prompt adherence, character consistency and text rendering, up to 10 references and 4K output.",
|
|
160
|
+
useCases: ["realistic", "character", "typography", "high-res"],
|
|
161
|
+
features: ["reference-image"],
|
|
162
|
+
aspectRatios: NANO_BANANA_2_1_RATIOS,
|
|
163
|
+
resolutions: ["1K", "2K", "4K"],
|
|
164
|
+
pricing: [
|
|
165
|
+
{ identifier: "nano-banana-2-1", credits: 10, note: "1K default" },
|
|
166
|
+
{ identifier: "nano-banana-2-1:2K", credits: 20, note: "2K" },
|
|
167
|
+
{ identifier: "nano-banana-2-1:4K", credits: 30, note: "4K" }
|
|
168
|
+
]
|
|
169
|
+
},
|
|
149
170
|
"nano-banana-2-lite": {
|
|
150
171
|
id: "nano-banana-2-lite",
|
|
151
172
|
kind: "image",
|
|
@@ -961,6 +982,7 @@ var VIDEO_MODELS = {
|
|
|
961
982
|
useCases: ["realistic", "motion", "narrative"],
|
|
962
983
|
features: ["end-frame"],
|
|
963
984
|
durations: [5],
|
|
985
|
+
defaultDuration: 5,
|
|
964
986
|
pricing: [{ identifier: "minimax", credits: 143, note: "5s, 1080p" }]
|
|
965
987
|
},
|
|
966
988
|
// MiniMax Hailuo 3 (KIE "minimax-h3") — t2v / i2v (first and/or last frame) /
|
|
@@ -986,6 +1008,7 @@ var VIDEO_MODELS = {
|
|
|
986
1008
|
features: ["end-frame", "audio", "reference-image", "video-reference"],
|
|
987
1009
|
aspectRatios: VIDEO_RATIOS_SEEDANCE_2,
|
|
988
1010
|
durations: [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15],
|
|
1011
|
+
defaultDuration: 6,
|
|
989
1012
|
// First entry = default (the UI dropdown + fail-safe snap use opts[0], and
|
|
990
1013
|
// 2K is the KIE-side default). Uppercase values are the exact KIE wire enum.
|
|
991
1014
|
resolutions: ["2K", "768P"],
|
|
@@ -1011,6 +1034,7 @@ var VIDEO_MODELS = {
|
|
|
1011
1034
|
description: "Hailuo 2.3 Pro \u2014 newer Hailuo with 768P / 1080P resolutions.",
|
|
1012
1035
|
useCases: ["realistic", "motion"],
|
|
1013
1036
|
durations: [6, 10],
|
|
1037
|
+
defaultDuration: 6,
|
|
1014
1038
|
resolutions: ["768P", "1080P"],
|
|
1015
1039
|
pricing: [
|
|
1016
1040
|
{ identifier: "hailuo-2.3-pro", credits: 200, note: "10s default" },
|
|
@@ -1030,6 +1054,7 @@ var VIDEO_MODELS = {
|
|
|
1030
1054
|
description: "Cheaper Hailuo 2.3 tier \u2014 good baseline quality.",
|
|
1031
1055
|
useCases: ["realistic", "cheap"],
|
|
1032
1056
|
durations: [6, 10],
|
|
1057
|
+
defaultDuration: 6,
|
|
1033
1058
|
pricing: [
|
|
1034
1059
|
{ identifier: "hailuo-2.3", credits: 75, note: "6s default" },
|
|
1035
1060
|
{ identifier: "hailuo-2.3:6s", credits: 80, note: "6s" },
|
|
@@ -1047,6 +1072,7 @@ var VIDEO_MODELS = {
|
|
|
1047
1072
|
useCases: ["cheap", "motion"],
|
|
1048
1073
|
features: ["end-frame"],
|
|
1049
1074
|
durations: [6, 10],
|
|
1075
|
+
defaultDuration: 6,
|
|
1050
1076
|
resolutions: ["512P", "768P"],
|
|
1051
1077
|
pricing: [
|
|
1052
1078
|
{ identifier: "hailuo-standard", credits: 75, note: "6s default" },
|
|
@@ -1074,6 +1100,7 @@ var VIDEO_MODELS = {
|
|
|
1074
1100
|
// `veo3_lite` DO serve it and keep the flag.
|
|
1075
1101
|
features: ["end-frame", "audio"],
|
|
1076
1102
|
durations: [4, 6, 8],
|
|
1103
|
+
defaultDuration: 8,
|
|
1077
1104
|
aspectRatios: VIDEO_RATIOS_HV,
|
|
1078
1105
|
// 720p (default) + 1080p inline. 4K generates the base at 1080p then chains
|
|
1079
1106
|
// KIE's /api/v1/veo/get-4k-video endpoint (worker handleImageToVideo / handleTextToVideo).
|
|
@@ -1095,6 +1122,7 @@ var VIDEO_MODELS = {
|
|
|
1095
1122
|
useCases: ["cinematic", "fast", "general"],
|
|
1096
1123
|
features: ["end-frame", "audio", "reference-image"],
|
|
1097
1124
|
durations: [4, 6, 8],
|
|
1125
|
+
defaultDuration: 8,
|
|
1098
1126
|
aspectRatios: VIDEO_RATIOS_HV,
|
|
1099
1127
|
resolutions: ["720p", "1080p", "4k"],
|
|
1100
1128
|
pricing: [
|
|
@@ -1115,6 +1143,7 @@ var VIDEO_MODELS = {
|
|
|
1115
1143
|
useCases: ["cinematic", "cheap", "high-volume"],
|
|
1116
1144
|
features: ["end-frame", "audio", "reference-image"],
|
|
1117
1145
|
durations: [4, 6, 8],
|
|
1146
|
+
defaultDuration: 8,
|
|
1118
1147
|
aspectRatios: VIDEO_RATIOS_HV,
|
|
1119
1148
|
resolutions: ["720p", "1080p", "4k"],
|
|
1120
1149
|
pricing: [
|
|
@@ -1138,6 +1167,7 @@ var VIDEO_MODELS = {
|
|
|
1138
1167
|
aspectRatios: VIDEO_RATIOS_HV,
|
|
1139
1168
|
resolutions: ["720p", "1080p", "4k"],
|
|
1140
1169
|
durations: [4, 6, 8, 10],
|
|
1170
|
+
defaultDuration: 8,
|
|
1141
1171
|
pricing: [
|
|
1142
1172
|
{ identifier: "gemini-omni-video", credits: 315, note: "default \u2014 720p/1080p 4s" },
|
|
1143
1173
|
{ identifier: "gemini-omni-video:4", credits: 230, note: "720p/1080p 4s" },
|
|
@@ -1174,6 +1204,7 @@ var VIDEO_MODELS = {
|
|
|
1174
1204
|
aspectRatios: VIDEO_RATIOS_HV,
|
|
1175
1205
|
resolutions: ["720p", "1080p", "4k"],
|
|
1176
1206
|
durations: [4, 6, 8, 10],
|
|
1207
|
+
defaultDuration: 8,
|
|
1177
1208
|
pricing: [
|
|
1178
1209
|
{ identifier: "gemini-omni-flash", credits: 270, note: "default \u2014 8s 720p/1080p (the credit builder's duration fallback)" },
|
|
1179
1210
|
{ identifier: "gemini-omni-flash:4", credits: 160, note: "720p/1080p 4s" },
|
|
@@ -1201,6 +1232,7 @@ var VIDEO_MODELS = {
|
|
|
1201
1232
|
features: ["audio"],
|
|
1202
1233
|
aspectRatios: VIDEO_RATIOS_HVS,
|
|
1203
1234
|
durations: [5, 10],
|
|
1235
|
+
defaultDuration: 5,
|
|
1204
1236
|
pricing: [
|
|
1205
1237
|
{ identifier: "kling", credits: 280, note: "10s no audio default" },
|
|
1206
1238
|
{ identifier: "kling:5s", credits: 138, note: "5s no audio" },
|
|
@@ -1220,6 +1252,7 @@ var VIDEO_MODELS = {
|
|
|
1220
1252
|
useCases: ["fast", "motion", "cheap"],
|
|
1221
1253
|
features: ["end-frame"],
|
|
1222
1254
|
durations: [5, 10],
|
|
1255
|
+
defaultDuration: 5,
|
|
1223
1256
|
pricing: [
|
|
1224
1257
|
{ identifier: "kling-turbo", credits: 125, note: "5s default" },
|
|
1225
1258
|
{ identifier: "kling-turbo:5s", credits: 110 },
|
|
@@ -1237,6 +1270,7 @@ var VIDEO_MODELS = {
|
|
|
1237
1270
|
useCases: ["premium", "narrative", "cinematic"],
|
|
1238
1271
|
features: ["end-frame", "audio"],
|
|
1239
1272
|
durations: [3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15],
|
|
1273
|
+
defaultDuration: 5,
|
|
1240
1274
|
resolutions: ["720P", "1080P"],
|
|
1241
1275
|
pricing: [
|
|
1242
1276
|
{ identifier: "kling-3.0", credits: 500, note: "5s 1080p with audio" },
|
|
@@ -1259,6 +1293,7 @@ var VIDEO_MODELS = {
|
|
|
1259
1293
|
description: "Master tier I2V \u2014 strong cinematic quality.",
|
|
1260
1294
|
useCases: ["cinematic", "premium"],
|
|
1261
1295
|
durations: [5, 10],
|
|
1296
|
+
defaultDuration: 5,
|
|
1262
1297
|
pricing: [
|
|
1263
1298
|
{ identifier: "kling-master", credits: 400, note: "5s default" },
|
|
1264
1299
|
{ identifier: "kling-master:5s", credits: 400 },
|
|
@@ -1276,6 +1311,7 @@ var VIDEO_MODELS = {
|
|
|
1276
1311
|
useCases: ["motion", "cinematic", "reference"],
|
|
1277
1312
|
features: ["end-frame", "reference-image"],
|
|
1278
1313
|
durations: [3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15],
|
|
1314
|
+
defaultDuration: 5,
|
|
1279
1315
|
resolutions: ["720p", "1080p"],
|
|
1280
1316
|
aspectRatios: VIDEO_RATIOS_HVS,
|
|
1281
1317
|
pricing: [
|
|
@@ -1297,6 +1333,7 @@ var VIDEO_MODELS = {
|
|
|
1297
1333
|
description: "Grok image-to-video \u2014 stylized motion. Up to 15s.",
|
|
1298
1334
|
useCases: ["stylized", "motion"],
|
|
1299
1335
|
durations: [6, 10],
|
|
1336
|
+
defaultDuration: 6,
|
|
1300
1337
|
resolutions: ["480p", "720p"],
|
|
1301
1338
|
pricing: [
|
|
1302
1339
|
{ identifier: "grok-i2v", credits: 150, note: "6s default" },
|
|
@@ -1325,6 +1362,7 @@ var VIDEO_MODELS = {
|
|
|
1325
1362
|
useCases: ["stylized", "motion"],
|
|
1326
1363
|
aspectRatios: ["16:9", "9:16", "1:1", "4:3", "3:4"],
|
|
1327
1364
|
durations: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15],
|
|
1365
|
+
defaultDuration: 8,
|
|
1328
1366
|
resolutions: ["480p", "720p"],
|
|
1329
1367
|
pricing: [
|
|
1330
1368
|
{ identifier: "grok-imagine-video-1.5", credits: 295, note: "default 8s 480p \u2014 see :Ns:res variants" },
|
|
@@ -1346,6 +1384,7 @@ var VIDEO_MODELS = {
|
|
|
1346
1384
|
useCases: ["motion", "narrative"],
|
|
1347
1385
|
features: ["end-frame"],
|
|
1348
1386
|
durations: [4, 8, 12],
|
|
1387
|
+
defaultDuration: 8,
|
|
1349
1388
|
resolutions: ["480p", "720p", "1080p"],
|
|
1350
1389
|
pricing: [
|
|
1351
1390
|
{ identifier: "seedance", credits: 250, note: "8s default" },
|
|
@@ -1367,6 +1406,7 @@ var VIDEO_MODELS = {
|
|
|
1367
1406
|
features: ["end-frame", "audio", "reference-image", "video-reference"],
|
|
1368
1407
|
aspectRatios: VIDEO_RATIOS_SEEDANCE_2,
|
|
1369
1408
|
durations: [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15],
|
|
1409
|
+
defaultDuration: 8,
|
|
1370
1410
|
autoDuration: true,
|
|
1371
1411
|
resolutions: ["480p", "720p", "1080p", "4k"],
|
|
1372
1412
|
pricing: [
|
|
@@ -1393,6 +1433,7 @@ var VIDEO_MODELS = {
|
|
|
1393
1433
|
features: ["end-frame", "audio", "reference-image", "video-reference"],
|
|
1394
1434
|
aspectRatios: VIDEO_RATIOS_SEEDANCE_2,
|
|
1395
1435
|
durations: [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15],
|
|
1436
|
+
defaultDuration: 8,
|
|
1396
1437
|
autoDuration: true,
|
|
1397
1438
|
resolutions: ["480p", "720p"],
|
|
1398
1439
|
pricing: [
|
|
@@ -1415,6 +1456,7 @@ var VIDEO_MODELS = {
|
|
|
1415
1456
|
features: ["end-frame", "audio", "reference-image", "video-reference"],
|
|
1416
1457
|
aspectRatios: VIDEO_RATIOS_SEEDANCE_2,
|
|
1417
1458
|
durations: [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15],
|
|
1459
|
+
defaultDuration: 8,
|
|
1418
1460
|
autoDuration: true,
|
|
1419
1461
|
resolutions: ["480p", "720p"],
|
|
1420
1462
|
pricing: [
|
|
@@ -1443,6 +1485,7 @@ var VIDEO_MODELS = {
|
|
|
1443
1485
|
features: ["end-frame", "audio", "reference-image", "video-reference"],
|
|
1444
1486
|
aspectRatios: VIDEO_RATIOS_SEEDANCE_2,
|
|
1445
1487
|
durations: [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],
|
|
1488
|
+
defaultDuration: 8,
|
|
1446
1489
|
autoDuration: true,
|
|
1447
1490
|
resolutions: ["480p", "720p", "1080p"],
|
|
1448
1491
|
pricing: [
|
|
@@ -1484,6 +1527,7 @@ var VIDEO_MODELS = {
|
|
|
1484
1527
|
features: ["end-frame", "audio", "reference-image"],
|
|
1485
1528
|
aspectRatios: VIDEO_RATIOS_WAN_3,
|
|
1486
1529
|
durations: [2, 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],
|
|
1530
|
+
defaultDuration: 5,
|
|
1487
1531
|
resolutions: ["480p", "720p", "1080p"],
|
|
1488
1532
|
pricing: [
|
|
1489
1533
|
{ identifier: "wan-3", credits: 200, note: "default 5s 720p \u2014 see :Ns:res variants for exact" },
|
|
@@ -1509,6 +1553,7 @@ var VIDEO_MODELS = {
|
|
|
1509
1553
|
features: ["end-frame", "audio", "reference-image"],
|
|
1510
1554
|
aspectRatios: VIDEO_RATIOS_WAN_3,
|
|
1511
1555
|
durations: [2, 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],
|
|
1556
|
+
defaultDuration: 5,
|
|
1512
1557
|
resolutions: ["480p", "720p", "1080p"],
|
|
1513
1558
|
pricing: [
|
|
1514
1559
|
{ identifier: "wan-3-prime", credits: 320, note: "default 5s 720p \u2014 see :Ns:res variants for exact" },
|
|
@@ -1531,6 +1576,7 @@ var VIDEO_MODELS = {
|
|
|
1531
1576
|
description: "Wan 2.6 image-to-video \u2014 5/10/15s at 720p/1080p.",
|
|
1532
1577
|
useCases: ["motion", "narrative"],
|
|
1533
1578
|
durations: [5, 10, 15],
|
|
1579
|
+
defaultDuration: 5,
|
|
1534
1580
|
resolutions: ["720p", "1080p"],
|
|
1535
1581
|
pricing: [
|
|
1536
1582
|
{ identifier: "wan-i2v", credits: 175, note: "5s 720p default" },
|
|
@@ -1550,6 +1596,7 @@ var VIDEO_MODELS = {
|
|
|
1550
1596
|
useCases: ["cheap", "fast"],
|
|
1551
1597
|
aspectRatios: VIDEO_RATIOS_HVS,
|
|
1552
1598
|
durations: [5],
|
|
1599
|
+
defaultDuration: 5,
|
|
1553
1600
|
resolutions: ["480p", "720p"],
|
|
1554
1601
|
// Different KIE endpoints (i2v vs t2v) → different costs under
|
|
1555
1602
|
// composite ids. Route picks endpoint based on whether image was supplied.
|
|
@@ -1570,6 +1617,7 @@ var VIDEO_MODELS = {
|
|
|
1570
1617
|
description: "Wan 2.6 \u2014 text-to-video and video-to-video under a single id.",
|
|
1571
1618
|
useCases: ["v2v", "t2v", "restyle"],
|
|
1572
1619
|
durations: [5],
|
|
1620
|
+
defaultDuration: 5,
|
|
1573
1621
|
resolutions: ["720p", "1080p"],
|
|
1574
1622
|
pricing: [
|
|
1575
1623
|
{ identifier: "wan", credits: 175, note: "v2v 5s 720p" },
|
|
@@ -1645,6 +1693,7 @@ var VIDEO_MODELS = {
|
|
|
1645
1693
|
description: "Wan 2.7 image-to-video \u2014 2\u201315s at 720p/1080p, supports start+end frame.",
|
|
1646
1694
|
useCases: ["motion", "narrative"],
|
|
1647
1695
|
durations: [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15],
|
|
1696
|
+
defaultDuration: 5,
|
|
1648
1697
|
resolutions: ["720p", "1080p"],
|
|
1649
1698
|
features: ["end-frame"],
|
|
1650
1699
|
pricing: [
|
|
@@ -1662,6 +1711,7 @@ var VIDEO_MODELS = {
|
|
|
1662
1711
|
useCases: ["motion", "narrative"],
|
|
1663
1712
|
aspectRatios: VIDEO_RATIOS_HVS345,
|
|
1664
1713
|
durations: [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15],
|
|
1714
|
+
defaultDuration: 5,
|
|
1665
1715
|
resolutions: ["720p", "1080p"],
|
|
1666
1716
|
pricing: [
|
|
1667
1717
|
{ identifier: "wan-2.7-t2v", credits: 188, note: "5s 720p default" }
|
|
@@ -1688,6 +1738,7 @@ var VIDEO_MODELS = {
|
|
|
1688
1738
|
aspectRatios: ["16:9", "9:16"],
|
|
1689
1739
|
resolutions: ["1080p", "2k", "4k"],
|
|
1690
1740
|
durations: [6, 8, 10],
|
|
1741
|
+
defaultDuration: 6,
|
|
1691
1742
|
pricing: [
|
|
1692
1743
|
{ identifier: "ltx-2.3-pro", credits: 240, note: "default 1080p 6s" },
|
|
1693
1744
|
{ identifier: "ltx-2.3-pro:1080p:6s", credits: 240 },
|
|
@@ -1719,6 +1770,7 @@ var VIDEO_MODELS = {
|
|
|
1719
1770
|
// in credit-identifiers.ts is the per-band authority and snaps a 2k/4k
|
|
1720
1771
|
// request back onto 6/8/10s, so the reservation is always a real tier).
|
|
1721
1772
|
durations: [6, 8, 10, 12, 14, 16, 18, 20],
|
|
1773
|
+
defaultDuration: 6,
|
|
1722
1774
|
pricing: [
|
|
1723
1775
|
{ identifier: "ltx-2.3-fast", credits: 180, note: "default 1080p 6s" },
|
|
1724
1776
|
{ identifier: "ltx-2.3-fast:1080p:6s", credits: 180 },
|
|
@@ -1750,6 +1802,7 @@ var VIDEO_MODELS = {
|
|
|
1750
1802
|
useCases: ["motion", "creative"],
|
|
1751
1803
|
aspectRatios: VIDEO_RATIOS_HAPPYHORSE_11,
|
|
1752
1804
|
durations: [3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15],
|
|
1805
|
+
defaultDuration: 5,
|
|
1753
1806
|
resolutions: ["720p", "1080p"],
|
|
1754
1807
|
pricing: [
|
|
1755
1808
|
{ identifier: "happyhorse", credits: 282, note: "5s 720p default \u2014 per-second: ~5.7 cr/s @720p, ~7.3 cr/s @1080p" }
|
|
@@ -1765,6 +1818,7 @@ var VIDEO_MODELS = {
|
|
|
1765
1818
|
description: "HappyHorse 1.1 image-to-video \u2014 3\u201315s at 720p/1080p, aspect ratio inferred from input image, per-second pricing.",
|
|
1766
1819
|
useCases: ["motion", "creative"],
|
|
1767
1820
|
durations: [3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15],
|
|
1821
|
+
defaultDuration: 5,
|
|
1768
1822
|
resolutions: ["720p", "1080p"],
|
|
1769
1823
|
pricing: [
|
|
1770
1824
|
{ identifier: "happyhorse-i2v", credits: 282, note: "5s 720p default \u2014 per-second: ~5.7 cr/s @720p, ~7.3 cr/s @1080p" }
|
|
@@ -1781,6 +1835,7 @@ var VIDEO_MODELS = {
|
|
|
1781
1835
|
useCases: ["motion", "reference"],
|
|
1782
1836
|
aspectRatios: VIDEO_RATIOS_HAPPYHORSE_11,
|
|
1783
1837
|
durations: [3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15],
|
|
1838
|
+
defaultDuration: 5,
|
|
1784
1839
|
resolutions: ["720p", "1080p"],
|
|
1785
1840
|
features: ["reference-image"],
|
|
1786
1841
|
pricing: [
|
|
@@ -1814,6 +1869,7 @@ var VIDEO_MODELS = {
|
|
|
1814
1869
|
features: ["end-frame"],
|
|
1815
1870
|
aspectRatios: VIDEO_RATIOS_HVS,
|
|
1816
1871
|
durations: [5, 10],
|
|
1872
|
+
defaultDuration: 5,
|
|
1817
1873
|
resolutions: ["480p", "720p", "1080p"],
|
|
1818
1874
|
pricing: [{ identifier: "bytedance-lite", credits: 57 }]
|
|
1819
1875
|
},
|
|
@@ -1828,6 +1884,7 @@ var VIDEO_MODELS = {
|
|
|
1828
1884
|
useCases: ["motion", "narrative"],
|
|
1829
1885
|
aspectRatios: VIDEO_RATIOS_HVS,
|
|
1830
1886
|
durations: [5, 10],
|
|
1887
|
+
defaultDuration: 5,
|
|
1831
1888
|
resolutions: ["480p", "720p", "1080p"],
|
|
1832
1889
|
pricing: [{ identifier: "bytedance-pro", credits: 175 }]
|
|
1833
1890
|
},
|
|
@@ -1841,6 +1898,7 @@ var VIDEO_MODELS = {
|
|
|
1841
1898
|
description: "Faster Bytedance Pro variant.",
|
|
1842
1899
|
useCases: ["fast", "motion"],
|
|
1843
1900
|
durations: [5, 10],
|
|
1901
|
+
defaultDuration: 5,
|
|
1844
1902
|
resolutions: ["720p", "1080p"],
|
|
1845
1903
|
pricing: [{ identifier: "bytedance-pro-fast", credits: 90 }]
|
|
1846
1904
|
},
|
|
@@ -1860,6 +1918,7 @@ var VIDEO_MODELS = {
|
|
|
1860
1918
|
description: "Runway Gen-3 routed through KIE. 5/10s at 720p/1080p.",
|
|
1861
1919
|
useCases: ["motion", "narrative"],
|
|
1862
1920
|
durations: [5, 10],
|
|
1921
|
+
defaultDuration: 5,
|
|
1863
1922
|
resolutions: ["720p", "1080p"],
|
|
1864
1923
|
pricing: [{ identifier: "runway-kie", credits: 30, note: "5s 720p" }]
|
|
1865
1924
|
},
|
|
@@ -1910,6 +1969,7 @@ var VIDEO_MODELS = {
|
|
|
1910
1969
|
description: "Extend ANY video: generates the continuation (audio included) and trim-stitches it into one seamless clip.",
|
|
1911
1970
|
useCases: ["extend"],
|
|
1912
1971
|
durations: [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15],
|
|
1972
|
+
defaultDuration: 8,
|
|
1913
1973
|
resolutions: ["480p", "720p", "1080p"],
|
|
1914
1974
|
pricing: [
|
|
1915
1975
|
{ identifier: "seedance-2-extend", credits: 530, note: "default 8s 720p (ref-mode 50 + 3 stitch) \u2014 see :NsR variants" },
|
|
@@ -2289,7 +2349,8 @@ var TTS_LANGS_V3 = [
|
|
|
2289
2349
|
"sw"
|
|
2290
2350
|
];
|
|
2291
2351
|
var TTS_LEVERS_V2 = ["stability", "similarity", "style", "speed", "speakerBoost"];
|
|
2292
|
-
var DIALOGUE_V4_MAX_CHARS =
|
|
2352
|
+
var DIALOGUE_V4_MAX_CHARS = 1e4;
|
|
2353
|
+
var V4_TURBO_MAX_CHARS = 1e4;
|
|
2293
2354
|
var AUDIO_MODELS = {
|
|
2294
2355
|
// ── ElevenLabs TTS ──
|
|
2295
2356
|
"elevenlabs-v3": {
|
|
@@ -2352,6 +2413,42 @@ var AUDIO_MODELS = {
|
|
|
2352
2413
|
languages: TTS_LANGS_V3
|
|
2353
2414
|
}
|
|
2354
2415
|
},
|
|
2416
|
+
"elevenlabs-v4-turbo": {
|
|
2417
|
+
id: "elevenlabs-v4-turbo",
|
|
2418
|
+
kind: "audio",
|
|
2419
|
+
modes: ["tts"],
|
|
2420
|
+
family: "ElevenLabs",
|
|
2421
|
+
label: "ElevenLabs v4 Turbo",
|
|
2422
|
+
series: "ElevenLabs",
|
|
2423
|
+
description: "Faster, cheaper ElevenLabs v4 at lower fidelity \u2014 [audio tags], stability and similarity control, at Turbo's credit price. Prefer v4 when quality matters. Direct API.",
|
|
2424
|
+
useCases: ["tts", "voice-over", "narration", "expressive", "fast"],
|
|
2425
|
+
features: ["audio-tags", "voice-cloning"],
|
|
2426
|
+
// Flat per request at parity with Turbo v2.5 (what a run costs where length
|
|
2427
|
+
// pricing is off); per started 100 characters at Turbo's rate where it is on
|
|
2428
|
+
// (decided 2026-10-06).
|
|
2429
|
+
pricing: [
|
|
2430
|
+
{ identifier: "elevenlabs-v4-turbo", credits: 15 },
|
|
2431
|
+
{ identifier: "elevenlabs-v4-turbo:per-100-chars", credits: 2, note: SPEECH_UNIT_PRICE_NOTE }
|
|
2432
|
+
],
|
|
2433
|
+
tts: {
|
|
2434
|
+
// Every value below was measured 2026-10-07 from live calls to eleven_v4_turbo.
|
|
2435
|
+
audioTags: true,
|
|
2436
|
+
// measured 2026-10-07: a tagged line → 200; Scribe hears no tag word spoken and lists [chuckles] as an audio event
|
|
2437
|
+
ssmlBreaks: false,
|
|
2438
|
+
levers: ["stability", "similarity"],
|
|
2439
|
+
// measured 2026-10-07: /v1/models can_use_style / can_use_speaker_boost both false, as v4; stability + similarity_boost → 200
|
|
2440
|
+
languageCode: true,
|
|
2441
|
+
// measured 2026-10-07: language_code "he" with Hebrew text → 200
|
|
2442
|
+
timestamps: true,
|
|
2443
|
+
// measured 2026-10-07: /with-timestamps answers 200 at the same character cost as the plain call
|
|
2444
|
+
stitching: true,
|
|
2445
|
+
// measured 2026-10-07: previous_text / next_text → 200, at the same character cost (context not billed)
|
|
2446
|
+
maxChars: V4_TURBO_MAX_CHARS,
|
|
2447
|
+
// The curated picker, the same 46 as v4 and v3 (the model lists 85; widening is its own change).
|
|
2448
|
+
languages: TTS_LANGS_V3
|
|
2449
|
+
// measured 2026-10-07: all 46 present in the model's 85-language list
|
|
2450
|
+
}
|
|
2451
|
+
},
|
|
2355
2452
|
"elevenlabs-turbo": {
|
|
2356
2453
|
id: "elevenlabs-turbo",
|
|
2357
2454
|
kind: "audio",
|
|
@@ -3125,6 +3222,8 @@ var MAX_IMAGE_PROMPT_CHARS_BY_PROVIDER = {
|
|
|
3125
3222
|
// docs.kie.ai/market/google/nano-banana-2
|
|
3126
3223
|
"nano-banana-2-lite": 2e4,
|
|
3127
3224
|
// docs.kie.ai/market/google/nano-banana-2-lite
|
|
3225
|
+
"nano-banana-2-1": 2e4,
|
|
3226
|
+
// docs.kie.ai/market/google/nanobanana-2-1
|
|
3128
3227
|
"nano-banana-pro": 2e4,
|
|
3129
3228
|
// docs.kie.ai/market/google/pro-image-to-image
|
|
3130
3229
|
"gpt-image-2-i2i": 2e4,
|
|
@@ -3327,6 +3426,7 @@ var MODELS_WITH_REFERENCE_IMAGE_SUPPORT = /* @__PURE__ */ new Set([
|
|
|
3327
3426
|
"nano-banana-pro",
|
|
3328
3427
|
"nano-banana-2",
|
|
3329
3428
|
"nano-banana-2-lite",
|
|
3429
|
+
"nano-banana-2-1",
|
|
3330
3430
|
// T2I providers that auto-route to their i2i sibling when refs are attached
|
|
3331
3431
|
"gpt-image",
|
|
3332
3432
|
"gpt-image-2",
|
|
@@ -3394,6 +3494,7 @@ var REF_IMAGE_MAX_LIMITS = {
|
|
|
3394
3494
|
"nano-banana-pro": 8,
|
|
3395
3495
|
"nano-banana-2": 4,
|
|
3396
3496
|
"nano-banana-2-lite": 10,
|
|
3497
|
+
"nano-banana-2-1": 10,
|
|
3397
3498
|
"wan-2.7": 9,
|
|
3398
3499
|
// grok-2 reference chain consumes exactly one image (segment-map input).
|
|
3399
3500
|
"grok-2-i2i": 1,
|
|
@@ -3444,6 +3545,7 @@ var VARIABLE_PRICING_MODELS = {
|
|
|
3444
3545
|
"gpt-image-2-5-sunburst-i2i": "resolution",
|
|
3445
3546
|
"nano-banana-pro": "resolution",
|
|
3446
3547
|
"nano-banana-2": "resolution",
|
|
3548
|
+
"nano-banana-2-1": "resolution",
|
|
3447
3549
|
"flux": "resolution",
|
|
3448
3550
|
"flux-flex": "resolution",
|
|
3449
3551
|
"flux-i2i": "resolution",
|
|
@@ -3465,6 +3567,7 @@ var HIGH_QUALITY_PROVIDERS = /* @__PURE__ */ new Set(["gpt-image", "gpt-image-i2
|
|
|
3465
3567
|
var TWO_K_RESOLUTION_PROVIDERS = /* @__PURE__ */ new Set(["flux", "flux-pro-i2i", "flux-flex", "flux-i2i"]);
|
|
3466
3568
|
var RESOLUTION_2K_4K_TIERED_PROVIDERS = /* @__PURE__ */ new Set([
|
|
3467
3569
|
"nano-banana-2",
|
|
3570
|
+
"nano-banana-2-1",
|
|
3468
3571
|
"gpt-image-2",
|
|
3469
3572
|
"gpt-image-2-i2i",
|
|
3470
3573
|
"gpt-image-2-5-flare",
|
|
@@ -3481,6 +3584,7 @@ var IMAGE_GEN_PROVIDERS = [
|
|
|
3481
3584
|
"nano-banana-pro",
|
|
3482
3585
|
"nano-banana-2",
|
|
3483
3586
|
"nano-banana-2-lite",
|
|
3587
|
+
"nano-banana-2-1",
|
|
3484
3588
|
"grok",
|
|
3485
3589
|
"grok-2",
|
|
3486
3590
|
"gpt-image",
|
|
@@ -3510,6 +3614,7 @@ var IMAGE_I2I_PROVIDERS = [
|
|
|
3510
3614
|
"nano-banana",
|
|
3511
3615
|
"nano-banana-2",
|
|
3512
3616
|
"nano-banana-2-lite",
|
|
3617
|
+
"nano-banana-2-1",
|
|
3513
3618
|
"nano-banana-pro",
|
|
3514
3619
|
"grok-i2i",
|
|
3515
3620
|
"flux-i2i",
|
|
@@ -3820,6 +3925,7 @@ var MOTION_TRANSFER_PROVIDERS = [
|
|
|
3820
3925
|
var TTS_PROVIDERS = [
|
|
3821
3926
|
"elevenlabs-v3",
|
|
3822
3927
|
"elevenlabs-v4",
|
|
3928
|
+
"elevenlabs-v4-turbo",
|
|
3823
3929
|
"elevenlabs-turbo",
|
|
3824
3930
|
"elevenlabs-multilingual",
|
|
3825
3931
|
"elevenlabs"
|
|
@@ -3920,6 +4026,7 @@ var IMAGE_MASK_MODE = {
|
|
|
3920
4026
|
"nano-banana-pro": "prompt",
|
|
3921
4027
|
"nano-banana-2": "prompt",
|
|
3922
4028
|
"nano-banana-2-lite": "prompt",
|
|
4029
|
+
"nano-banana-2-1": "prompt",
|
|
3923
4030
|
"gpt-image": "prompt",
|
|
3924
4031
|
"gpt-image-2": "prompt",
|
|
3925
4032
|
"gpt-image-2-5-flare": "prompt",
|
|
@@ -4467,27 +4574,30 @@ var VIDEO_VARIABLE_PRICING = {
|
|
|
4467
4574
|
"wan-3": "duration+resolution",
|
|
4468
4575
|
"wan-3-prime": "duration+resolution"
|
|
4469
4576
|
};
|
|
4470
|
-
var PRICING_DEFAULT_DURATION_SEC =
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4577
|
+
var PRICING_DEFAULT_DURATION_SEC = Object.freeze(
|
|
4578
|
+
Object.fromEntries(
|
|
4579
|
+
Object.values(MODEL_CATALOG).filter((e) => e.kind === "video" && typeof e.defaultDuration === "number").map((e) => [e.id, e.defaultDuration])
|
|
4580
|
+
)
|
|
4581
|
+
);
|
|
4582
|
+
function snapToNearestDuration(requested, allowed) {
|
|
4583
|
+
if (!allowed || allowed.length === 0) return requested;
|
|
4584
|
+
if (allowed.includes(requested)) return requested;
|
|
4585
|
+
return allowed.reduce((best, d) => Math.abs(d - requested) < Math.abs(best - requested) ? d : best);
|
|
4586
|
+
}
|
|
4587
|
+
function videoDefaultDurationSec(provider) {
|
|
4588
|
+
const entry = MODEL_CATALOG[provider];
|
|
4589
|
+
if (typeof entry?.defaultDuration === "number") return entry.defaultDuration;
|
|
4590
|
+
const shortest = entry?.durations?.length ? Math.min(...entry.durations) : void 0;
|
|
4591
|
+
return shortest ?? 5;
|
|
4592
|
+
}
|
|
4483
4593
|
function pricedOutputDurationSec(provider, requested) {
|
|
4484
|
-
const fallback =
|
|
4594
|
+
const fallback = videoDefaultDurationSec(provider);
|
|
4485
4595
|
const parsed = typeof requested === "string" ? parseInt(requested, 10) : requested;
|
|
4486
4596
|
if (parsed === void 0 || Number.isNaN(parsed)) return fallback;
|
|
4487
4597
|
if (parsed <= 0) {
|
|
4488
4598
|
return isAutoVideoDuration(parsed) && supportsAutoVideoDuration(provider) ? maxVideoDurationSec(provider) ?? fallback : fallback;
|
|
4489
4599
|
}
|
|
4490
|
-
return parsed;
|
|
4600
|
+
return snapToNearestDuration(parsed, MODEL_CATALOG[provider]?.durations);
|
|
4491
4601
|
}
|
|
4492
4602
|
function supportsAutoVideoDuration(provider) {
|
|
4493
4603
|
return !!provider && MODEL_CATALOG[provider]?.autoDuration === true;
|
|
@@ -5398,7 +5508,6 @@ var T2V_CREDIT_OVERRIDES = {
|
|
|
5398
5508
|
"wan-turbo": "wan-turbo-t2v"
|
|
5399
5509
|
// T2V wan-turbo 720p = (I2V wan-turbo 480p = 40 cr)
|
|
5400
5510
|
};
|
|
5401
|
-
var GEMINI_OMNI_DURATIONS = [4, 6, 8, 10];
|
|
5402
5511
|
var LTX_DURATION_TIERS = {
|
|
5403
5512
|
"ltx-2.3-pro": { "1080p": [6, 8, 10], "2k": [6, 8, 10], "4k": [6, 8, 10] },
|
|
5404
5513
|
"ltx-2.3-fast": { "1080p": [6, 8, 10, 12, 14, 16, 18, 20], "2k": [6, 8, 10], "4k": [6, 8, 10] }
|
|
@@ -5408,9 +5517,7 @@ function ltxPricedTier(provider, resolution, duration) {
|
|
|
5408
5517
|
if (!bands) return void 0;
|
|
5409
5518
|
const band2 = bands[String(resolution)] ? String(resolution) : "1080p";
|
|
5410
5519
|
const allowed = bands[band2];
|
|
5411
|
-
const
|
|
5412
|
-
const want = Number.isNaN(raw) ? allowed[0] : raw;
|
|
5413
|
-
const dur = allowed.reduce((b, a) => Math.abs(a - want) < Math.abs(b - want) ? a : b);
|
|
5520
|
+
const dur = snapToNearestDuration(pricedOutputDurationSec(provider, duration), allowed);
|
|
5414
5521
|
return { band: band2, duration: dur };
|
|
5415
5522
|
}
|
|
5416
5523
|
function buildVideoCreditModelIdentifier(provider, duration, sound, nodeType, mode, resolution, hasVideoRef) {
|
|
@@ -5434,8 +5541,7 @@ function buildVideoCreditModelIdentifier(provider, duration, sound, nodeType, mo
|
|
|
5434
5541
|
if (hasVideoRef) {
|
|
5435
5542
|
return resolution === "4k" ? `${effectiveProvider}:4k:vref` : `${effectiveProvider}:vref`;
|
|
5436
5543
|
}
|
|
5437
|
-
const
|
|
5438
|
-
const d = Number.isNaN(raw) ? 8 : GEMINI_OMNI_DURATIONS.reduce((b, a) => Math.abs(a - raw) < Math.abs(b - raw) ? a : b);
|
|
5544
|
+
const d = pricedOutputDurationSec(effectiveProvider, duration);
|
|
5439
5545
|
return resolution === "4k" ? `${effectiveProvider}:4k:${d}` : `${effectiveProvider}:${d}`;
|
|
5440
5546
|
}
|
|
5441
5547
|
const ltxTier = ltxPricedTier(effectiveProvider, resolution, duration);
|
|
@@ -5494,17 +5600,20 @@ function pricedVideoSelection(opts) {
|
|
|
5494
5600
|
const adjustments = [];
|
|
5495
5601
|
const ltx = ltxPricedTier(opts.provider, opts.resolution, opts.duration);
|
|
5496
5602
|
const resolution = opts.resolution ?? (ltx ? ltx.band : PRICING_DEFAULT_RESOLUTION[opts.provider]);
|
|
5497
|
-
if (!ltx) return { resolution, adjustments };
|
|
5498
5603
|
const requested = typeof opts.duration === "string" ? parseInt(opts.duration, 10) : opts.duration;
|
|
5499
|
-
|
|
5604
|
+
const asked = requested !== void 0 && !Number.isNaN(requested);
|
|
5605
|
+
const lengthPriced = !!ltx || DURATION_PRICED_PROVIDERS.has(opts.provider) || isGeminiOmniProvider(opts.provider);
|
|
5606
|
+
if (!lengthPriced || !ltx && asked && requested <= 0) return { resolution, adjustments };
|
|
5607
|
+
const duration = ltx ? ltx.duration : pricedOutputDurationSec(opts.provider, opts.duration);
|
|
5608
|
+
if (asked && requested !== duration) {
|
|
5500
5609
|
adjustments.push({
|
|
5501
5610
|
field: "duration",
|
|
5502
5611
|
from: requested,
|
|
5503
|
-
to:
|
|
5504
|
-
reason: `LTX renders ${ltx.band} in ${ltx.duration}s steps \u2014 using ${ltx.duration}s instead of ${requested}s.`
|
|
5612
|
+
to: duration,
|
|
5613
|
+
reason: ltx ? `LTX renders ${ltx.band} in ${ltx.duration}s steps \u2014 using ${ltx.duration}s instead of ${requested}s.` : `${opts.provider} renders ${duration}s clips at the nearest length it offers \u2014 using ${duration}s instead of ${requested}s.`
|
|
5505
5614
|
});
|
|
5506
5615
|
}
|
|
5507
|
-
return { resolution, duration
|
|
5616
|
+
return { resolution, duration, adjustments };
|
|
5508
5617
|
}
|
|
5509
5618
|
function buildMotionCreditModelIdentifier(provider, resolution, videoDuration) {
|
|
5510
5619
|
if (provider === "wan-animate-move" || provider === "wan-animate-replace") {
|
|
@@ -5540,6 +5649,9 @@ function speedRampCreditId(quality) {
|
|
|
5540
5649
|
function applyEdlCreditId(quality) {
|
|
5541
5650
|
return quality === "proxy" ? "apply-edl:proxy" : "apply-edl";
|
|
5542
5651
|
}
|
|
5652
|
+
function speakerViewCreditId(quality) {
|
|
5653
|
+
return quality === "proxy" ? "speaker-view:proxy" : "speaker-view";
|
|
5654
|
+
}
|
|
5543
5655
|
function sunoCreditType(model, operation) {
|
|
5544
5656
|
if (!SUNO_VERSION_PRICED_OPERATIONS.includes(operation)) {
|
|
5545
5657
|
return operation;
|
|
@@ -5937,6 +6049,9 @@ var VIDEO_PRODUCER_TYPES = /* @__PURE__ */ new Set([
|
|
|
5937
6049
|
// doesn't reject face-swap → video-consumer edges that the orchestrator
|
|
5938
6050
|
// would happily route at runtime.
|
|
5939
6051
|
"face-swap",
|
|
6052
|
+
// Speaker View (C3.2): an EDL rendered with its speakers framed — one VIDEO
|
|
6053
|
+
// out (no audio-only render). Registered in RENDER_NODE_TYPES as well.
|
|
6054
|
+
"speaker-view",
|
|
5940
6055
|
"video-retake",
|
|
5941
6056
|
// video-sfx: adds an SFX track to a video → emits a video URL. Belongs here so
|
|
5942
6057
|
// canvas handle validation accepts video-sfx → video-consumer edges and the
|
|
@@ -6203,6 +6318,17 @@ var RENDER_NODE_TYPES = Object.freeze({
|
|
|
6203
6318
|
ownerOnlyListing: true,
|
|
6204
6319
|
latestBatch: true,
|
|
6205
6320
|
jsonKind: "transcript"
|
|
6321
|
+
}),
|
|
6322
|
+
// Speaker View (C3.2): video only; its `json` is the EDL as it drew it (the
|
|
6323
|
+
// turns split, the layouts written), so a player maps the output clock
|
|
6324
|
+
// through THAT, and Add Captions never takes it for a Transcript.
|
|
6325
|
+
"speaker-view": descriptor({
|
|
6326
|
+
mediumOf: () => "video",
|
|
6327
|
+
creditId: (quality) => speakerViewCreditId(quality),
|
|
6328
|
+
clockMapFrom: "output-json",
|
|
6329
|
+
ownerOnlyListing: true,
|
|
6330
|
+
latestBatch: true,
|
|
6331
|
+
jsonKind: "edl"
|
|
6206
6332
|
})
|
|
6207
6333
|
});
|
|
6208
6334
|
var RENDER_NODE_TYPE_IDS = Object.freeze(Object.keys(RENDER_NODE_TYPES));
|
|
@@ -6222,6 +6348,190 @@ var OWNER_ONLY_LISTING_RENDER_TYPES = Object.freeze(
|
|
|
6222
6348
|
RENDER_NODE_TYPE_IDS.filter((t2) => RENDER_NODE_TYPES[t2].ownerOnlyListing)
|
|
6223
6349
|
);
|
|
6224
6350
|
|
|
6351
|
+
// src/video-link.ts
|
|
6352
|
+
var SOCIAL_VIDEO_HOSTS = [
|
|
6353
|
+
"youtube.com",
|
|
6354
|
+
"youtu.be",
|
|
6355
|
+
"tiktok.com",
|
|
6356
|
+
"instagram.com",
|
|
6357
|
+
"twitter.com",
|
|
6358
|
+
"x.com",
|
|
6359
|
+
"facebook.com",
|
|
6360
|
+
"fb.watch",
|
|
6361
|
+
"fb.com"
|
|
6362
|
+
];
|
|
6363
|
+
var YOUTUBE_HOSTS = ["youtube.com", "youtu.be"];
|
|
6364
|
+
var INSTAGRAM_HOSTS = ["instagram.com"];
|
|
6365
|
+
var TIKTOK_HOSTS = ["tiktok.com"];
|
|
6366
|
+
var TWITTER_HOSTS = ["twitter.com", "x.com"];
|
|
6367
|
+
var FACEBOOK_HOSTS = ["facebook.com", "fb.watch", "fb.com"];
|
|
6368
|
+
function hostnameMatchesAllowlist(hostname, domains) {
|
|
6369
|
+
const h = hostname.toLowerCase().replace(/\.$/, "");
|
|
6370
|
+
return domains.some((d) => {
|
|
6371
|
+
const dom = d.toLowerCase();
|
|
6372
|
+
return h === dom || h.endsWith("." + dom);
|
|
6373
|
+
});
|
|
6374
|
+
}
|
|
6375
|
+
function hasUrlParserHazard(url) {
|
|
6376
|
+
for (let i = 0; i < url.length; i++) {
|
|
6377
|
+
const code = url.charCodeAt(i);
|
|
6378
|
+
if (code === 92 || code <= 31 || code === 127) return true;
|
|
6379
|
+
}
|
|
6380
|
+
return false;
|
|
6381
|
+
}
|
|
6382
|
+
function isSocialVideoUrl(url, domains = SOCIAL_VIDEO_HOSTS) {
|
|
6383
|
+
if (hasUrlParserHazard(url)) return false;
|
|
6384
|
+
try {
|
|
6385
|
+
const parsed = new URL(url);
|
|
6386
|
+
if (parsed.protocol !== "http:" && parsed.protocol !== "https:") return false;
|
|
6387
|
+
return hostnameMatchesAllowlist(parsed.hostname, domains);
|
|
6388
|
+
} catch {
|
|
6389
|
+
return false;
|
|
6390
|
+
}
|
|
6391
|
+
}
|
|
6392
|
+
function detectVideoLinkPlatform(url) {
|
|
6393
|
+
if (isSocialVideoUrl(url, YOUTUBE_HOSTS)) return "youtube";
|
|
6394
|
+
if (isSocialVideoUrl(url, FACEBOOK_HOSTS)) return "facebook";
|
|
6395
|
+
if (isSocialVideoUrl(url, TIKTOK_HOSTS)) return "tiktok";
|
|
6396
|
+
if (isSocialVideoUrl(url, INSTAGRAM_HOSTS)) return "instagram";
|
|
6397
|
+
if (isSocialVideoUrl(url, TWITTER_HOSTS)) return "twitter";
|
|
6398
|
+
return "unknown";
|
|
6399
|
+
}
|
|
6400
|
+
var VIDEO_LINK_TOLERANT_CONSUMER_TYPES = /* @__PURE__ */ new Set([
|
|
6401
|
+
"suno-cover",
|
|
6402
|
+
"transcribe",
|
|
6403
|
+
"dubbing",
|
|
6404
|
+
"content-recipe"
|
|
6405
|
+
]);
|
|
6406
|
+
var VIDEO_LINK_AUDIO_CONSUMER_TYPES = /* @__PURE__ */ new Set(["suno-cover", "transcribe"]);
|
|
6407
|
+
function videoLinkNeedOf(consumerTypes) {
|
|
6408
|
+
let audio = false;
|
|
6409
|
+
for (const type of consumerTypes) {
|
|
6410
|
+
if (!VIDEO_LINK_TOLERANT_CONSUMER_TYPES.has(type)) return "file";
|
|
6411
|
+
if (VIDEO_LINK_AUDIO_CONSUMER_TYPES.has(type)) audio = true;
|
|
6412
|
+
}
|
|
6413
|
+
return audio ? "audio" : "none";
|
|
6414
|
+
}
|
|
6415
|
+
function videoLinkRunNeeds(scopeIds, nodes, edges) {
|
|
6416
|
+
const byId = new Map(nodes.map((n) => [n.id, n]));
|
|
6417
|
+
const isSkipped = (id) => byId.get(id)?.data?.skipped === true;
|
|
6418
|
+
const sourcesOf = /* @__PURE__ */ new Map();
|
|
6419
|
+
for (const edge of edges) {
|
|
6420
|
+
const list = sourcesOf.get(edge.target);
|
|
6421
|
+
if (list) list.push(edge.source);
|
|
6422
|
+
else sourcesOf.set(edge.target, [edge.source]);
|
|
6423
|
+
}
|
|
6424
|
+
const inRun = /* @__PURE__ */ new Set();
|
|
6425
|
+
const queue = (scopeIds ?? nodes.map((n) => n.id)).filter((id) => !isSkipped(id));
|
|
6426
|
+
for (const id of queue) inRun.add(id);
|
|
6427
|
+
while (queue.length > 0) {
|
|
6428
|
+
const current = queue.pop();
|
|
6429
|
+
for (const source of sourcesOf.get(current) ?? []) {
|
|
6430
|
+
if (inRun.has(source)) continue;
|
|
6431
|
+
inRun.add(source);
|
|
6432
|
+
queue.push(source);
|
|
6433
|
+
}
|
|
6434
|
+
}
|
|
6435
|
+
const consumers = /* @__PURE__ */ new Map();
|
|
6436
|
+
for (const edge of edges) {
|
|
6437
|
+
if (byId.get(edge.source)?.type !== "youtube-video" || !inRun.has(edge.target)) continue;
|
|
6438
|
+
const list = consumers.get(edge.source);
|
|
6439
|
+
const type = byId.get(edge.target)?.type ?? "";
|
|
6440
|
+
if (list) list.push(type);
|
|
6441
|
+
else consumers.set(edge.source, [type]);
|
|
6442
|
+
}
|
|
6443
|
+
const needs = /* @__PURE__ */ new Map();
|
|
6444
|
+
for (const [id, types] of consumers) needs.set(id, videoLinkNeedOf(types));
|
|
6445
|
+
return needs;
|
|
6446
|
+
}
|
|
6447
|
+
function trimmed(value) {
|
|
6448
|
+
if (typeof value !== "string") return void 0;
|
|
6449
|
+
const t2 = value.trim();
|
|
6450
|
+
return t2 === "" ? void 0 : t2;
|
|
6451
|
+
}
|
|
6452
|
+
function videoLinkDownloadedFile(data) {
|
|
6453
|
+
const file = trimmed(data.downloadedVideoUrl);
|
|
6454
|
+
if (!file) return void 0;
|
|
6455
|
+
const from = trimmed(data.downloadedFromUrl);
|
|
6456
|
+
if (from && from !== trimmed(data.youtubeUrl)) return void 0;
|
|
6457
|
+
return file;
|
|
6458
|
+
}
|
|
6459
|
+
function resolveVideoLinkOutput(data) {
|
|
6460
|
+
return videoLinkDownloadedFile(data) ?? trimmed(data.youtubeUrl);
|
|
6461
|
+
}
|
|
6462
|
+
function videoLinkPageUrl(data) {
|
|
6463
|
+
return trimmed(data.youtubeUrl);
|
|
6464
|
+
}
|
|
6465
|
+
function videoLinkNeedsDownload(data) {
|
|
6466
|
+
const url = trimmed(data.youtubeUrl);
|
|
6467
|
+
if (!url || !isSocialVideoUrl(url)) return false;
|
|
6468
|
+
return videoLinkDownloadedFile(data) === void 0;
|
|
6469
|
+
}
|
|
6470
|
+
var DIRECT_VIDEO_EXTENSIONS = [".mp4", ".webm", ".mov", ".avi"];
|
|
6471
|
+
function isDirectVideoFileUrl(url) {
|
|
6472
|
+
if (hasUrlParserHazard(url)) return false;
|
|
6473
|
+
try {
|
|
6474
|
+
const parsed = new URL(url);
|
|
6475
|
+
if (parsed.protocol !== "http:" && parsed.protocol !== "https:") return false;
|
|
6476
|
+
const path = parsed.pathname.toLowerCase();
|
|
6477
|
+
return DIRECT_VIDEO_EXTENSIONS.some((ext) => path.endsWith(ext));
|
|
6478
|
+
} catch {
|
|
6479
|
+
return false;
|
|
6480
|
+
}
|
|
6481
|
+
}
|
|
6482
|
+
var AUTO_DOWNLOAD_MAX_SEC = 240;
|
|
6483
|
+
var YOUTUBE_MAX_HEIGHT = 1080;
|
|
6484
|
+
var MAX_VIDEO_LINK_INPUT_CHARS = 2048;
|
|
6485
|
+
function videoLinkInputProblem(value) {
|
|
6486
|
+
if (value === void 0 || value === null) return "empty";
|
|
6487
|
+
if (typeof value !== "string") return "invalid";
|
|
6488
|
+
const link = value.trim();
|
|
6489
|
+
if (link === "") return "empty";
|
|
6490
|
+
if (link.length > MAX_VIDEO_LINK_INPUT_CHARS) return "invalid";
|
|
6491
|
+
return isSocialVideoUrl(link) || isHttpLink(link) ? null : "invalid";
|
|
6492
|
+
}
|
|
6493
|
+
function isHttpLink(link) {
|
|
6494
|
+
if (hasUrlParserHazard(link)) return false;
|
|
6495
|
+
try {
|
|
6496
|
+
const parsed = new URL(link);
|
|
6497
|
+
return (parsed.protocol === "http:" || parsed.protocol === "https:") && parsed.hostname !== "";
|
|
6498
|
+
} catch {
|
|
6499
|
+
return false;
|
|
6500
|
+
}
|
|
6501
|
+
}
|
|
6502
|
+
var VIDEO_LINK_DERIVED_FIELDS = [
|
|
6503
|
+
"videoId",
|
|
6504
|
+
"title",
|
|
6505
|
+
"thumbnailUrl",
|
|
6506
|
+
"downloadedVideoUrl",
|
|
6507
|
+
"downloadedThumbnailUrl",
|
|
6508
|
+
"downloadedFromUrl",
|
|
6509
|
+
"downloadedSection",
|
|
6510
|
+
"downloadStatus",
|
|
6511
|
+
"downloadError",
|
|
6512
|
+
"downloadErrorCode",
|
|
6513
|
+
"downloadId",
|
|
6514
|
+
"downloadIdUrl",
|
|
6515
|
+
"downloadMode",
|
|
6516
|
+
"downloadAllowSilent",
|
|
6517
|
+
"downloadPercent",
|
|
6518
|
+
"downloadPhase",
|
|
6519
|
+
"sectionStartSec",
|
|
6520
|
+
"sectionEndSec",
|
|
6521
|
+
"needsRangeChoice",
|
|
6522
|
+
"videoDurationSec",
|
|
6523
|
+
"downloadedAudioUrl",
|
|
6524
|
+
"audioDownloadStatus",
|
|
6525
|
+
"audioDownloadError"
|
|
6526
|
+
];
|
|
6527
|
+
function dropStaleVideoLinkFields(data, incoming) {
|
|
6528
|
+
if (!("youtubeUrl" in incoming)) return data;
|
|
6529
|
+
if (trimmed(incoming.youtubeUrl) === trimmed(data.youtubeUrl)) return data;
|
|
6530
|
+
const out = { ...data };
|
|
6531
|
+
for (const key of VIDEO_LINK_DERIVED_FIELDS) delete out[key];
|
|
6532
|
+
return out;
|
|
6533
|
+
}
|
|
6534
|
+
|
|
6225
6535
|
// src/presentation-utils.ts
|
|
6226
6536
|
var INPUT_NODE_TYPES = /* @__PURE__ */ new Set([
|
|
6227
6537
|
"text-prompt",
|
|
@@ -6244,7 +6554,8 @@ var INPUT_NODE_TYPES = /* @__PURE__ */ new Set([
|
|
|
6244
6554
|
"atmosphere",
|
|
6245
6555
|
"action-fx",
|
|
6246
6556
|
"temporal",
|
|
6247
|
-
"reference-audio"
|
|
6557
|
+
"reference-audio",
|
|
6558
|
+
"youtube-video"
|
|
6248
6559
|
]);
|
|
6249
6560
|
var ALWAYS_EXCLUDED_TYPES = /* @__PURE__ */ new Set([
|
|
6250
6561
|
"sticky-note",
|
|
@@ -6462,6 +6773,8 @@ var INPUT_FIELD_MAP = {
|
|
|
6462
6773
|
"upload-video": { key: "url", type: "video-url" },
|
|
6463
6774
|
"upload-audio": { key: "url", type: "audio-url" },
|
|
6464
6775
|
"reference-audio": { key: "extractedAudioUrl", type: "audio-url" },
|
|
6776
|
+
// A LINK, not an upload (rule: `videoLinkInputProblem`, video-link.ts); still a `video-url` media input.
|
|
6777
|
+
"youtube-video": { key: "youtubeUrl", type: "video-url" },
|
|
6465
6778
|
// --- Classic parameters ---
|
|
6466
6779
|
"provider": { key: "provider", type: "select" },
|
|
6467
6780
|
"style-guide": { key: "text", type: "text" },
|
|
@@ -6533,7 +6846,9 @@ var MEDIA_INPUT_FIELD_TYPES = /* @__PURE__ */ new Set([
|
|
|
6533
6846
|
"audio-url"
|
|
6534
6847
|
]);
|
|
6535
6848
|
function mergeNodeInputOverrides(nodeType, data, overrides) {
|
|
6536
|
-
const
|
|
6849
|
+
const incoming = canonicalizeOverrideKeys(nodeType, overrides);
|
|
6850
|
+
const base = nodeType === "youtube-video" ? dropStaleVideoLinkFields(data, incoming) : data;
|
|
6851
|
+
const merged = { ...base, ...incoming };
|
|
6537
6852
|
const schema = nodeType ? INPUT_FIELD_MAP[nodeType] : void 0;
|
|
6538
6853
|
if (schema && MEDIA_INPUT_FIELD_TYPES.has(schema.type) && schema.key in overrides && overrides[schema.key] !== data[schema.key] && !("metadata" in overrides)) {
|
|
6539
6854
|
delete merged.metadata;
|
|
@@ -9010,8 +9325,8 @@ var NON_PROMPT_TEXT_LANES = {
|
|
|
9010
9325
|
negative: "*",
|
|
9011
9326
|
"system-prompt": "*",
|
|
9012
9327
|
script: ["ai-avatar"],
|
|
9013
|
-
transcript: ["add-captions", "apply-edl", "edit-plan", "camera-switch"],
|
|
9014
|
-
edl: ["apply-edl", "camera-switch"],
|
|
9328
|
+
transcript: ["add-captions", "apply-edl", "edit-plan", "camera-switch", "speaker-view"],
|
|
9329
|
+
edl: ["apply-edl", "camera-switch", "speaker-view"],
|
|
9015
9330
|
silence: ["edit-plan"],
|
|
9016
9331
|
offsets: ["edit-plan"],
|
|
9017
9332
|
qrText: ["image-overlay"],
|
|
@@ -10103,6 +10418,7 @@ var QUALITY_MAP = {
|
|
|
10103
10418
|
// Image gen — resolution-style (1K/2K/4K)
|
|
10104
10419
|
"nano-banana-pro": { field: "resolution", values: { low: "1K", mid: "2K", high: "4K" } },
|
|
10105
10420
|
"nano-banana-2": { field: "resolution", values: { low: "1K", mid: "2K", high: "4K" } },
|
|
10421
|
+
"nano-banana-2-1": { field: "resolution", values: { low: "1K", mid: "2K", high: "4K" } },
|
|
10106
10422
|
"flux": { field: "resolution", values: { low: "1K", mid: "2K", high: "2K" } },
|
|
10107
10423
|
"flux-flex": { field: "resolution", values: { low: "1K", mid: "2K", high: "2K" } },
|
|
10108
10424
|
"flux-i2i": { field: "resolution", values: { low: "1K", mid: "2K", high: "2K" } },
|
|
@@ -10593,6 +10909,83 @@ function nodeFeedsAnything(nodes, edges, nodeId) {
|
|
|
10593
10909
|
return (buildFeedMaps(nodes, edges).children.get(nodeId) ?? []).length > 0;
|
|
10594
10910
|
}
|
|
10595
10911
|
|
|
10912
|
+
// src/json-kinds.ts
|
|
10913
|
+
var JSON_OUTPUT_KINDS = Object.freeze({
|
|
10914
|
+
// Edit Plan: the plan on `edl` — a Tighten EDL, a clip set (`Edl[]`) or a chapter list.
|
|
10915
|
+
"edit-plan": { primary: "edl", pips: { edl: "edl" } },
|
|
10916
|
+
// Transcribe: its json is the normalized Transcript (its `text` pip is plain text, no kind).
|
|
10917
|
+
transcribe: { primary: "json", pips: { json: "transcript" } },
|
|
10918
|
+
// Camera Switch: the switched edit and the renamed (still a Transcript) transcript.
|
|
10919
|
+
"camera-switch": { primary: "edl", pips: { edl: "edl", transcript: "transcript" } },
|
|
10920
|
+
// Text to Dialogue: the Transcript built from the model's own word timings (its default read is the audio).
|
|
10921
|
+
"text-to-dialogue": { pips: { json: "transcript" } },
|
|
10922
|
+
// ── JSON that is neither a Transcript nor an EDL (decided 2026-10-08) ──
|
|
10923
|
+
// Forced Alignment: `{ alignment: [{ word, start, end }] }` in seconds — a word list, not a Transcript.
|
|
10924
|
+
"forced-alignment": { primary: "data", pips: { data: "other" } },
|
|
10925
|
+
// Video Analysis / Video Audit: the canonical analysis result (an audit IS an analysis).
|
|
10926
|
+
"video-analysis": { primary: "json", pips: { json: "other" } },
|
|
10927
|
+
"video-audit": { primary: "json", pips: { json: "other" } },
|
|
10928
|
+
// Silence Detect: `{ version, ranges, durationMs }`. Audio Sync: `{ version, reference, offsets, notes }`.
|
|
10929
|
+
"silence-detect": { primary: "json", pips: { json: "other" } },
|
|
10930
|
+
"audio-sync": { primary: "json", pips: { json: "other" } },
|
|
10931
|
+
// Scrapers and searches: the scraped page / ad array / post list.
|
|
10932
|
+
"web-scrape": { primary: "json", pips: { json: "other" } },
|
|
10933
|
+
"meta-ads-scrape": { primary: "json", pips: { json: "other" } },
|
|
10934
|
+
"instagram-scrape": { primary: "json", pips: { json: "other" } },
|
|
10935
|
+
"social-search": { primary: "json", pips: { json: "other" } },
|
|
10936
|
+
"telegram-channel-feed": { primary: "json", pips: { json: "other" } },
|
|
10937
|
+
// Content Recipe: the recipe's structured result.
|
|
10938
|
+
"content-recipe": { primary: "json", pips: { json: "other" } },
|
|
10939
|
+
// Collections and libraries: the stored rows, whatever the user keeps in them.
|
|
10940
|
+
"collection-read": { primary: "json", pips: { json: "other" } },
|
|
10941
|
+
"collection-write": { primary: "json", pips: { json: "other" } },
|
|
10942
|
+
"inspiration-read": { primary: "json", pips: { json: "other" } },
|
|
10943
|
+
"competitor-read": { primary: "json", pips: { json: "other" } },
|
|
10944
|
+
// Describe to Picker: the picker values read off an image.
|
|
10945
|
+
"describe-to-picker": { primary: "picker-json", pips: { "picker-json": "other" } }
|
|
10946
|
+
});
|
|
10947
|
+
var RENDER_JSON_PIP = "json";
|
|
10948
|
+
var JSON_INPUT_KINDS = Object.freeze({
|
|
10949
|
+
transcript: "transcript",
|
|
10950
|
+
edl: "edl"
|
|
10951
|
+
});
|
|
10952
|
+
var own = (table, key) => Object.hasOwn(table, key) ? table[key] : void 0;
|
|
10953
|
+
function declaredJsonOutput(nodeType, sourceHandle, renders = RENDER_NODE_TYPES) {
|
|
10954
|
+
if (typeof nodeType !== "string") return void 0;
|
|
10955
|
+
const render = own(renders, nodeType);
|
|
10956
|
+
if (render) return (sourceHandle ?? RENDER_JSON_PIP) === RENDER_JSON_PIP ? render.jsonKind : void 0;
|
|
10957
|
+
const outputs = own(JSON_OUTPUT_KINDS, nodeType);
|
|
10958
|
+
if (!outputs) return void 0;
|
|
10959
|
+
const pip = sourceHandle ?? outputs.primary;
|
|
10960
|
+
return typeof pip === "string" ? own(outputs.pips, pip) : void 0;
|
|
10961
|
+
}
|
|
10962
|
+
function declaredJsonOutputRows() {
|
|
10963
|
+
return Object.entries(JSON_OUTPUT_KINDS).flatMap(
|
|
10964
|
+
([type, o]) => Object.entries(o.pips).map(([pip, kind]) => [type, pip, kind])
|
|
10965
|
+
);
|
|
10966
|
+
}
|
|
10967
|
+
function jsonOutputKind(nodeType, sourceHandle, renders = RENDER_NODE_TYPES) {
|
|
10968
|
+
const declared = declaredJsonOutput(nodeType, sourceHandle, renders);
|
|
10969
|
+
return declared === "other" ? void 0 : declared;
|
|
10970
|
+
}
|
|
10971
|
+
function jsonInputKind(_nodeType, targetHandle) {
|
|
10972
|
+
return typeof targetHandle === "string" ? own(JSON_INPUT_KINDS, targetHandle) : void 0;
|
|
10973
|
+
}
|
|
10974
|
+
function jsonKindMismatch(sourceType, sourceHandle, targetType, targetHandle, renders = RENDER_NODE_TYPES) {
|
|
10975
|
+
const input = jsonInputKind(targetType, targetHandle);
|
|
10976
|
+
if (!input) return null;
|
|
10977
|
+
const output = jsonOutputKind(sourceType, sourceHandle, renders);
|
|
10978
|
+
return output && output !== input ? { output, input } : null;
|
|
10979
|
+
}
|
|
10980
|
+
function jsonKindMismatchMessage(mismatch, labels = {}) {
|
|
10981
|
+
const source = labels.sourceLabel ?? "This output";
|
|
10982
|
+
const target = labels.targetLabel ?? "this node";
|
|
10983
|
+
if (mismatch.output === "transcript") {
|
|
10984
|
+
return `${source} outputs a transcript, not an edit list (EDL), so it cannot feed the EDL input of ${target}. Wire an Edit Plan's or Camera Switch's edl there instead.`;
|
|
10985
|
+
}
|
|
10986
|
+
return `${source} outputs an edit list (EDL), not a transcript, so it cannot feed the Transcript input of ${target}. Wire a Transcribe node's json (or Apply EDL's or Camera Switch's transcript) there instead.`;
|
|
10987
|
+
}
|
|
10988
|
+
|
|
10596
10989
|
// src/preview-gate.ts
|
|
10597
10990
|
var PREVIEW_RENDER_NODE_TYPES = new Set(RENDER_NODE_TYPE_IDS);
|
|
10598
10991
|
var PREVIEW_REVIEW_REQUIRED = "preview_review_required";
|
|
@@ -11231,8 +11624,8 @@ function metaAdsScrapeWireSources(data, upstream) {
|
|
|
11231
11624
|
const upstreamText = typeof upstream === "string" ? upstream : void 0;
|
|
11232
11625
|
switch (metaAdsNodeMode(data.mode)) {
|
|
11233
11626
|
case "pages": {
|
|
11234
|
-
const
|
|
11235
|
-
return { mode: "pages", pageUrls:
|
|
11627
|
+
const own2 = splitMetaAdsPageUrls(data.pageUrls);
|
|
11628
|
+
return { mode: "pages", pageUrls: own2.length > 0 ? own2 : splitMetaAdsPageUrls(upstreamText) };
|
|
11236
11629
|
}
|
|
11237
11630
|
case "advertiser": {
|
|
11238
11631
|
const picks = metaAdsAdvertisersFrom(data.advertisers);
|
|
@@ -11241,8 +11634,8 @@ function metaAdsScrapeWireSources(data, upstream) {
|
|
|
11241
11634
|
return { mode: "pages", pageUrls: [], advertiserNames: names };
|
|
11242
11635
|
}
|
|
11243
11636
|
default: {
|
|
11244
|
-
const
|
|
11245
|
-
return { mode: "search", query:
|
|
11637
|
+
const own2 = typeof data.query === "string" ? data.query : "";
|
|
11638
|
+
return { mode: "search", query: own2 || upstreamText };
|
|
11246
11639
|
}
|
|
11247
11640
|
}
|
|
11248
11641
|
}
|
|
@@ -11628,6 +12021,21 @@ function normalizeSavedPostTags(tags) {
|
|
|
11628
12021
|
return Array.from(new Set(clean2)).slice(0, SAVED_POST_MAX_TAGS);
|
|
11629
12022
|
}
|
|
11630
12023
|
|
|
12024
|
+
// src/social-post-readers.ts
|
|
12025
|
+
var INSPIRATION_READ_NODE_TYPE = "inspiration-read";
|
|
12026
|
+
var COMPETITOR_READ_NODE_TYPE = "competitor-read";
|
|
12027
|
+
var SOCIAL_POST_READER_NODE_TYPES = /* @__PURE__ */ new Set([INSPIRATION_READ_NODE_TYPE, COMPETITOR_READ_NODE_TYPE]);
|
|
12028
|
+
function isSocialPostReaderNodeType(type) {
|
|
12029
|
+
return typeof type === "string" && SOCIAL_POST_READER_NODE_TYPES.has(type);
|
|
12030
|
+
}
|
|
12031
|
+
var SOCIAL_READ_LIMIT_MAX = 100;
|
|
12032
|
+
var SOCIAL_READ_DEFAULT_LIMIT = 20;
|
|
12033
|
+
var SOCIAL_READ_WINDOW_HOURS_MAX = 720;
|
|
12034
|
+
var SOCIAL_READ_WINDOW_DAYS_MAX = 365;
|
|
12035
|
+
var SOCIAL_READ_PERIODS = ["window", "day"];
|
|
12036
|
+
var COMPETITOR_READ_ROLES = ["own", "about", "all"];
|
|
12037
|
+
var SOCIAL_READ_DAY_PATTERN = /^\d{4}-\d{2}-\d{2}$/;
|
|
12038
|
+
|
|
11631
12039
|
// src/collections.ts
|
|
11632
12040
|
var COLLECTION_NAME_MAX = 80;
|
|
11633
12041
|
var COLLECTION_DESCRIPTION_MAX = 500;
|
|
@@ -14622,6 +15030,8 @@ var TransitionTypeSchema = zod.z.enum([
|
|
|
14622
15030
|
"match_cut",
|
|
14623
15031
|
"overlap"
|
|
14624
15032
|
]);
|
|
15033
|
+
var sceneRenderStateRegistry = zod.z.registry();
|
|
15034
|
+
var RENDER_STATE = { render_state: true };
|
|
14625
15035
|
var ShotSpecSchema = zod.z.object({
|
|
14626
15036
|
shot_id: zod.z.string().regex(/^shot_\d{2,3}$/, "shot_id must be shot_NN or shot_NNN"),
|
|
14627
15037
|
camera: zod.z.object({
|
|
@@ -14714,23 +15124,23 @@ var ShotSpecSchema = zod.z.object({
|
|
|
14714
15124
|
// Phase 1D.1 Method 7 — set true when the user accepts a MatchCutCritic
|
|
14715
15125
|
// 'break' verdict for this shot's pair. Stage 6 reads this to know the
|
|
14716
15126
|
// break is resolved and the scene can advance to Stage 7.
|
|
14717
|
-
accepted_match_cut_break: zod.z.boolean().optional(),
|
|
15127
|
+
accepted_match_cut_break: zod.z.boolean().optional().register(sceneRenderStateRegistry, RENDER_STATE),
|
|
14718
15128
|
// ─── Phase 1C.2 — dialogue + editor cut metadata ───────────────────────────
|
|
14719
15129
|
// All optional; planning-time ShotSpec carries none of these. Populated by
|
|
14720
15130
|
// the Editor LLM (Stage 7) and the silent-cut-preview sub-gate handler.
|
|
14721
15131
|
// True when `dialogue_line` is non-null AND the speech generator produced
|
|
14722
15132
|
// an audio track. The Editor LLM uses this to gate cut-in / cut-out into
|
|
14723
15133
|
// the dialogue_no_cut_zone (Method 5.13.1 — never trim a syllable).
|
|
14724
|
-
has_dialogue: zod.z.boolean().default(false),
|
|
15134
|
+
has_dialogue: zod.z.boolean().default(false).register(sceneRenderStateRegistry, RENDER_STATE),
|
|
14725
15135
|
// Measured length of the per-shot speech audio (Stage 7 step 4 writes this).
|
|
14726
15136
|
// Separate from `duration_seconds` (the planning intent) — the actual
|
|
14727
15137
|
// recording can run longer/shorter than the spec.
|
|
14728
|
-
actual_audio_duration_sec: zod.z.number().optional(),
|
|
15138
|
+
actual_audio_duration_sec: zod.z.number().optional().register(sceneRenderStateRegistry, RENDER_STATE),
|
|
14729
15139
|
// Inclusive [start, end] window (seconds, relative to the shot's video clip)
|
|
14730
15140
|
// during which the Editor LLM MUST NOT cut. Computed from
|
|
14731
15141
|
// `actual_audio_duration_sec` + small padding by the Editor LLM stage.
|
|
14732
15142
|
// null when has_dialogue=false (no zone to protect).
|
|
14733
|
-
dialogue_no_cut_zone: zod.z.object({ start: zod.z.number(), end: zod.z.number() }).nullable().optional(),
|
|
15143
|
+
dialogue_no_cut_zone: zod.z.object({ start: zod.z.number(), end: zod.z.number() }).nullable().optional().register(sceneRenderStateRegistry, RENDER_STATE),
|
|
14734
15144
|
// Editor LLM output (Phase 1C.2). Populated by the Editor LLM stage; the
|
|
14735
15145
|
// silent-cut-preview sub-gate may patch it via user-applied overrides.
|
|
14736
15146
|
// Mirrors the editor_decisions audit row shape (migration 135).
|
|
@@ -14740,7 +15150,7 @@ var ShotSpecSchema = zod.z.object({
|
|
|
14740
15150
|
transition_to_next: TransitionTypeSchema,
|
|
14741
15151
|
transition_duration_sec: zod.z.number().min(0).max(2).optional(),
|
|
14742
15152
|
beat_snap_seconds: zod.z.number().nullable().optional()
|
|
14743
|
-
}).optional()
|
|
15153
|
+
}).optional().register(sceneRenderStateRegistry, RENDER_STATE)
|
|
14744
15154
|
});
|
|
14745
15155
|
var AssetRefSchema = zod.z.object({
|
|
14746
15156
|
asset_id: zod.z.string().uuid(),
|
|
@@ -14828,13 +15238,18 @@ zod.z.enum(PIPELINE_MODEL_STAGES);
|
|
|
14828
15238
|
var PIPELINE_PINNABLE_IMAGE_MODELS = [
|
|
14829
15239
|
"nano-banana",
|
|
14830
15240
|
"nano-banana-pro",
|
|
14831
|
-
"nano-banana-2",
|
|
15241
|
+
"nano-banana-2-1",
|
|
14832
15242
|
"flux",
|
|
14833
15243
|
"gpt-image",
|
|
14834
15244
|
"gpt-image-2",
|
|
14835
15245
|
"gpt-image-2-5-flare",
|
|
14836
15246
|
"gpt-image-2-5-sunburst"
|
|
14837
15247
|
];
|
|
15248
|
+
var PIPELINE_LEGACY_PINNED_IMAGE_MODELS = ["nano-banana-2"];
|
|
15249
|
+
var PIPELINE_ACCEPTED_IMAGE_MODELS = [
|
|
15250
|
+
...PIPELINE_PINNABLE_IMAGE_MODELS,
|
|
15251
|
+
...PIPELINE_LEGACY_PINNED_IMAGE_MODELS
|
|
15252
|
+
];
|
|
14838
15253
|
var PIPELINE_PINNABLE_VIDEO_MODELS = [
|
|
14839
15254
|
"kling-turbo",
|
|
14840
15255
|
"kling",
|
|
@@ -14859,7 +15274,7 @@ var PIPELINE_PINNABLE_SCRIPT_LLMS = [
|
|
|
14859
15274
|
"claude-opus-4-7",
|
|
14860
15275
|
"claude-opus-5"
|
|
14861
15276
|
];
|
|
14862
|
-
var ImageModelEnum = zod.z.enum(
|
|
15277
|
+
var ImageModelEnum = zod.z.enum(PIPELINE_ACCEPTED_IMAGE_MODELS);
|
|
14863
15278
|
var VideoModelEnum = zod.z.enum(PIPELINE_PINNABLE_VIDEO_MODELS);
|
|
14864
15279
|
var ScriptLlmEnum = zod.z.enum(PIPELINE_PINNABLE_SCRIPT_LLMS);
|
|
14865
15280
|
var StageModelsSchema = zod.z.object({
|
|
@@ -16475,83 +16890,64 @@ var SUNO_TRACK_SOURCE_TYPES = /* @__PURE__ */ new Set([
|
|
|
16475
16890
|
"suno-upload-extend"
|
|
16476
16891
|
]);
|
|
16477
16892
|
|
|
16478
|
-
// src/
|
|
16479
|
-
|
|
16480
|
-
|
|
16481
|
-
|
|
16482
|
-
|
|
16483
|
-
|
|
16484
|
-
|
|
16485
|
-
|
|
16486
|
-
|
|
16487
|
-
|
|
16488
|
-
|
|
16489
|
-
|
|
16490
|
-
|
|
16491
|
-
|
|
16492
|
-
|
|
16493
|
-
var TWITTER_HOSTS = ["twitter.com", "x.com"];
|
|
16494
|
-
var FACEBOOK_HOSTS = ["facebook.com", "fb.watch", "fb.com"];
|
|
16495
|
-
function hostnameMatchesAllowlist(hostname, domains) {
|
|
16496
|
-
const h = hostname.toLowerCase().replace(/\.$/, "");
|
|
16497
|
-
return domains.some((d) => {
|
|
16498
|
-
const dom = d.toLowerCase();
|
|
16499
|
-
return h === dom || h.endsWith("." + dom);
|
|
16500
|
-
});
|
|
16501
|
-
}
|
|
16502
|
-
function hasUrlParserHazard(url) {
|
|
16503
|
-
for (let i = 0; i < url.length; i++) {
|
|
16504
|
-
const code = url.charCodeAt(i);
|
|
16505
|
-
if (code === 92 || code <= 31 || code === 127) return true;
|
|
16506
|
-
}
|
|
16507
|
-
return false;
|
|
16508
|
-
}
|
|
16509
|
-
function isSocialVideoUrl(url, domains = SOCIAL_VIDEO_HOSTS) {
|
|
16510
|
-
if (hasUrlParserHazard(url)) return false;
|
|
16511
|
-
try {
|
|
16512
|
-
const parsed = new URL(url);
|
|
16513
|
-
if (parsed.protocol !== "http:" && parsed.protocol !== "https:") return false;
|
|
16514
|
-
return hostnameMatchesAllowlist(parsed.hostname, domains);
|
|
16515
|
-
} catch {
|
|
16893
|
+
// src/private-host.ts
|
|
16894
|
+
function isPrivateOrReservedIP(ip) {
|
|
16895
|
+
const v4 = ip.match(/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/);
|
|
16896
|
+
if (v4) {
|
|
16897
|
+
const a = Number(v4[1]);
|
|
16898
|
+
const b = Number(v4[2]);
|
|
16899
|
+
if (a === 0) return true;
|
|
16900
|
+
if (a === 127) return true;
|
|
16901
|
+
if (a === 10) return true;
|
|
16902
|
+
if (a === 172 && b >= 16 && b <= 31) return true;
|
|
16903
|
+
if (a === 192 && b === 168) return true;
|
|
16904
|
+
if (a === 169 && b === 254) return true;
|
|
16905
|
+
if (a === 100 && b >= 64 && b <= 127) return true;
|
|
16906
|
+
if (a === 198 && (b === 18 || b === 19)) return true;
|
|
16907
|
+
if (a >= 224) return true;
|
|
16516
16908
|
return false;
|
|
16517
16909
|
}
|
|
16910
|
+
const lower = ip.toLowerCase();
|
|
16911
|
+
if (lower === "::" || lower === "::1") return true;
|
|
16912
|
+
if (lower.startsWith("fe80:") || lower.startsWith("fe80::")) return true;
|
|
16913
|
+
if (/^f[cd]/.test(lower)) return true;
|
|
16914
|
+
if (lower.startsWith("ff")) return true;
|
|
16915
|
+
if (lower.startsWith("::ffff:")) {
|
|
16916
|
+
const tail = lower.slice(7);
|
|
16917
|
+
if (tail.includes(".")) {
|
|
16918
|
+
return isPrivateOrReservedIP(tail);
|
|
16919
|
+
}
|
|
16920
|
+
const parts = tail.split(":");
|
|
16921
|
+
if (parts.length === 2) {
|
|
16922
|
+
const hi = parseInt(parts[0] || "0", 16);
|
|
16923
|
+
const lo = parseInt(parts[1] || "0", 16);
|
|
16924
|
+
if (Number.isFinite(hi) && Number.isFinite(lo)) {
|
|
16925
|
+
const ipv4 = `${hi >> 8 & 255}.${hi & 255}.${lo >> 8 & 255}.${lo & 255}`;
|
|
16926
|
+
return isPrivateOrReservedIP(ipv4);
|
|
16927
|
+
}
|
|
16928
|
+
}
|
|
16929
|
+
return true;
|
|
16930
|
+
}
|
|
16931
|
+
if (lower.startsWith("::") && lower !== "::" && lower !== "::1") {
|
|
16932
|
+
const tail = lower.slice(2);
|
|
16933
|
+
if (/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.test(tail)) {
|
|
16934
|
+
return isPrivateOrReservedIP(tail);
|
|
16935
|
+
}
|
|
16936
|
+
const parts = tail.split(":");
|
|
16937
|
+
if (parts.length === 2 && /^[0-9a-f]{1,4}$/.test(parts[0]) && /^[0-9a-f]{1,4}$/.test(parts[1])) {
|
|
16938
|
+
const hi = parseInt(parts[0], 16);
|
|
16939
|
+
const lo = parseInt(parts[1], 16);
|
|
16940
|
+
if (Number.isFinite(hi) && Number.isFinite(lo)) {
|
|
16941
|
+
return isPrivateOrReservedIP(`${hi >> 8 & 255}.${hi & 255}.${lo >> 8 & 255}.${lo & 255}`);
|
|
16942
|
+
}
|
|
16943
|
+
}
|
|
16944
|
+
}
|
|
16945
|
+
return false;
|
|
16518
16946
|
}
|
|
16519
|
-
function
|
|
16520
|
-
|
|
16521
|
-
if (
|
|
16522
|
-
|
|
16523
|
-
if (isSocialVideoUrl(url, INSTAGRAM_HOSTS)) return "instagram";
|
|
16524
|
-
if (isSocialVideoUrl(url, TWITTER_HOSTS)) return "twitter";
|
|
16525
|
-
return "unknown";
|
|
16526
|
-
}
|
|
16527
|
-
var VIDEO_LINK_TOLERANT_CONSUMER_TYPES = /* @__PURE__ */ new Set([
|
|
16528
|
-
"suno-cover",
|
|
16529
|
-
"transcribe",
|
|
16530
|
-
"dubbing",
|
|
16531
|
-
"content-recipe"
|
|
16532
|
-
]);
|
|
16533
|
-
function trimmed(value) {
|
|
16534
|
-
if (typeof value !== "string") return void 0;
|
|
16535
|
-
const t2 = value.trim();
|
|
16536
|
-
return t2 === "" ? void 0 : t2;
|
|
16537
|
-
}
|
|
16538
|
-
function videoLinkDownloadedFile(data) {
|
|
16539
|
-
const file = trimmed(data.downloadedVideoUrl);
|
|
16540
|
-
if (!file) return void 0;
|
|
16541
|
-
const from = trimmed(data.downloadedFromUrl);
|
|
16542
|
-
if (from && from !== trimmed(data.youtubeUrl)) return void 0;
|
|
16543
|
-
return file;
|
|
16544
|
-
}
|
|
16545
|
-
function resolveVideoLinkOutput(data) {
|
|
16546
|
-
return videoLinkDownloadedFile(data) ?? trimmed(data.youtubeUrl);
|
|
16547
|
-
}
|
|
16548
|
-
function videoLinkPageUrl(data) {
|
|
16549
|
-
return trimmed(data.youtubeUrl);
|
|
16550
|
-
}
|
|
16551
|
-
function videoLinkNeedsDownload(data) {
|
|
16552
|
-
const url = trimmed(data.youtubeUrl);
|
|
16553
|
-
if (!url || !isSocialVideoUrl(url)) return false;
|
|
16554
|
-
return videoLinkDownloadedFile(data) === void 0;
|
|
16947
|
+
function isLocalOrPrivateHostname(hostname) {
|
|
16948
|
+
const host = hostname.toLowerCase().replace(/^\[|\]$/g, "").replace(/\.$/, "");
|
|
16949
|
+
if (host === "localhost" || host.endsWith(".localhost")) return true;
|
|
16950
|
+
return isPrivateOrReservedIP(host);
|
|
16555
16951
|
}
|
|
16556
16952
|
|
|
16557
16953
|
// src/voice-changer-models.ts
|
|
@@ -17819,8 +18215,8 @@ var isSlot = (v) => typeof v === "number" && Number.isInteger(v) && v >= 1;
|
|
|
17819
18215
|
var isIndex = (v) => typeof v === "number" && Number.isInteger(v) && v >= 0;
|
|
17820
18216
|
function videoOverlayRenderOrder(layers) {
|
|
17821
18217
|
return layers.map((l, i) => {
|
|
17822
|
-
const
|
|
17823
|
-
return { i, z: typeof l?.zIndex === "number" && Number.isFinite(l.zIndex) ? l.zIndex :
|
|
18218
|
+
const own2 = isSlot(l?.planLayer) ? l.planLayer - 1 - PLAN_LAYER_Z_BASE : isSlot(l?.slot) ? l.slot - 1 : isIndex(l?.index) ? l.index : i;
|
|
18219
|
+
return { i, z: typeof l?.zIndex === "number" && Number.isFinite(l.zIndex) ? l.zIndex : own2 };
|
|
17824
18220
|
}).sort((a, b) => a.z - b.z || a.i - b.i).map((e) => e.i);
|
|
17825
18221
|
}
|
|
17826
18222
|
var evenFloor = (n) => Math.max(2, Math.floor(n / 2) * 2);
|
|
@@ -17970,8 +18366,8 @@ function assembleVideoOverlayRequest(input) {
|
|
|
17970
18366
|
for (let i = 0; i < slots; i++) {
|
|
17971
18367
|
const raw = asLayer(stored[i]);
|
|
17972
18368
|
const wiredUrl = wired[i];
|
|
17973
|
-
const
|
|
17974
|
-
const image = typeof wiredUrl === "string" && wiredUrl.length > 0 ? wiredUrl : typeof
|
|
18369
|
+
const own2 = raw?.imageUrl;
|
|
18370
|
+
const image = typeof wiredUrl === "string" && wiredUrl.length > 0 ? wiredUrl : typeof own2 === "string" && own2.length > 0 ? own2 : void 0;
|
|
17975
18371
|
if (!image) continue;
|
|
17976
18372
|
layers.push(expandVideoOverlayLayer({ ...raw ?? {}, imageUrl: image, slot: i + 1 }));
|
|
17977
18373
|
}
|
|
@@ -17987,8 +18383,8 @@ function assembleVideoOverlayRequest(input) {
|
|
|
17987
18383
|
const plan = parseVideoOverlayLayerPlan(input.planLayers);
|
|
17988
18384
|
if ("error" in plan) return { videoUrl: input.videoUrl, layers, ...rest, planError: plan.error };
|
|
17989
18385
|
const planned = expandVideoOverlayPresets(plan.layers).map((l, i) => {
|
|
17990
|
-
const { slot: _slot, ...
|
|
17991
|
-
return { ...
|
|
18386
|
+
const { slot: _slot, ...own2 } = l;
|
|
18387
|
+
return { ...own2, planLayer: i + 1 };
|
|
17992
18388
|
});
|
|
17993
18389
|
return { videoUrl: input.videoUrl, layers: [...planned, ...layers], ...rest };
|
|
17994
18390
|
}
|
|
@@ -17998,8 +18394,8 @@ function videoOverlaySlotSources(layers, wiredImageUrls) {
|
|
|
17998
18394
|
return Array.from({ length: Math.max(stored.length, wired.length) }, (_, i) => {
|
|
17999
18395
|
const w = wired[i];
|
|
18000
18396
|
if (typeof w === "string" && w.length > 0) return w;
|
|
18001
|
-
const
|
|
18002
|
-
return typeof
|
|
18397
|
+
const own2 = asLayer(stored[i])?.imageUrl;
|
|
18398
|
+
return typeof own2 === "string" && own2.length > 0 ? own2 : void 0;
|
|
18003
18399
|
});
|
|
18004
18400
|
}
|
|
18005
18401
|
function canonicalValue(v) {
|
|
@@ -22603,7 +22999,35 @@ function editPlanBucketMinutes(durationSec) {
|
|
|
22603
22999
|
return EDIT_PLAN_BUCKET_MINUTES[EDIT_PLAN_BUCKET_MINUTES.length - 1];
|
|
22604
23000
|
}
|
|
22605
23001
|
function buildEditPlanCreditId(mode, tier, durationSec) {
|
|
22606
|
-
return
|
|
23002
|
+
return editPlanMinutesCreditId(mode, tier, editPlanBucketMinutes(durationSec));
|
|
23003
|
+
}
|
|
23004
|
+
function editPlanStartedMinutes(durationSec) {
|
|
23005
|
+
const secs = typeof durationSec === "number" && Number.isFinite(durationSec) ? durationSec : EDIT_PLAN_MAX_MINUTES * 60;
|
|
23006
|
+
return Math.min(EDIT_PLAN_MAX_MINUTES, Math.max(1, Math.ceil(secs / 60)));
|
|
23007
|
+
}
|
|
23008
|
+
function editPlanMinutesCreditId(mode, tier, minutes) {
|
|
23009
|
+
return `edit-plan:${mode}:${tier}:${minutes}m`;
|
|
23010
|
+
}
|
|
23011
|
+
function editPlanReserveCreditId(mode, tier, durationSec, perMinute) {
|
|
23012
|
+
return perMinute ? editPlanMinutesCreditId(mode, tier, editPlanStartedMinutes(durationSec)) : buildEditPlanCreditId(mode, tier, durationSec);
|
|
23013
|
+
}
|
|
23014
|
+
function editPlanRateCreditId(mode, tier) {
|
|
23015
|
+
return `edit-plan:${mode}:${tier}:per-minute`;
|
|
23016
|
+
}
|
|
23017
|
+
function editPlanFlatCreditId(mode, tier) {
|
|
23018
|
+
return `edit-plan:${mode}:${tier}:flat`;
|
|
23019
|
+
}
|
|
23020
|
+
function parseEditPlanMinutesCreditId(id) {
|
|
23021
|
+
const m = /^edit-plan:([a-z]+):([a-z]+):(\d+)m$/.exec(id);
|
|
23022
|
+
if (!m) return void 0;
|
|
23023
|
+
const mode = parseEditPlanMode(m[1]);
|
|
23024
|
+
const tier = EDIT_PLAN_TIERS.includes(m[2]) ? m[2] : void 0;
|
|
23025
|
+
const minutes = Number(m[3]);
|
|
23026
|
+
if (!mode || !tier || !Number.isInteger(minutes) || minutes < 1 || minutes > EDIT_PLAN_MAX_MINUTES) return void 0;
|
|
23027
|
+
return { mode, tier, minutes };
|
|
23028
|
+
}
|
|
23029
|
+
function editPlanMinutesBaseCredits(flat, rate, minutes) {
|
|
23030
|
+
return Math.max(1, Math.ceil(flat + rate * minutes));
|
|
22607
23031
|
}
|
|
22608
23032
|
function asEditPlanMode(v) {
|
|
22609
23033
|
return parseEditPlanMode(v) ?? "tighten";
|
|
@@ -22840,8 +23264,8 @@ function savedRenderOutput(data) {
|
|
|
22840
23264
|
const selected = results[index] ?? results[0];
|
|
22841
23265
|
const selectedUrl = str5(selected?.url);
|
|
22842
23266
|
if (selectedUrl) return itemOf(selectedUrl, medium, selected);
|
|
22843
|
-
const
|
|
22844
|
-
if (
|
|
23267
|
+
const own2 = str5(data[MEDIUM_FIELD[medium]]);
|
|
23268
|
+
if (own2) return { url: own2, medium };
|
|
22845
23269
|
const other = medium === "video" ? "audio" : "video";
|
|
22846
23270
|
const otherUrl = str5(data[MEDIUM_FIELD[other]]);
|
|
22847
23271
|
return otherUrl ? { url: otherUrl, medium: other } : void 0;
|
|
@@ -23400,6 +23824,7 @@ exports.AUDIO_FX_PRESET_SET = AUDIO_FX_PRESET_SET;
|
|
|
23400
23824
|
exports.AUDIO_FX_REVERB_PRESETS = AUDIO_FX_REVERB_PRESETS;
|
|
23401
23825
|
exports.AUDIO_PRODUCER_TYPES = AUDIO_PRODUCER_TYPES;
|
|
23402
23826
|
exports.AUDIO_SYNC_MIN_CONFIDENCE = AUDIO_SYNC_MIN_CONFIDENCE;
|
|
23827
|
+
exports.AUTO_DOWNLOAD_MAX_SEC = AUTO_DOWNLOAD_MAX_SEC;
|
|
23403
23828
|
exports.AddBRollResultSchema = AddBRollResultSchema;
|
|
23404
23829
|
exports.AnchorSceneStyleResultSchema = AnchorSceneStyleResultSchema;
|
|
23405
23830
|
exports.AnimateSubGateSchema = AnimateSubGateSchema;
|
|
@@ -23483,6 +23908,8 @@ exports.COMPETITORS_MAX = COMPETITORS_MAX;
|
|
|
23483
23908
|
exports.COMPETITOR_ABOUT_PLATFORMS = COMPETITOR_ABOUT_PLATFORMS;
|
|
23484
23909
|
exports.COMPETITOR_ACCOUNT_KEYS = COMPETITOR_ACCOUNT_KEYS;
|
|
23485
23910
|
exports.COMPETITOR_DEFAULT_ABOUT_PLATFORMS = COMPETITOR_DEFAULT_ABOUT_PLATFORMS;
|
|
23911
|
+
exports.COMPETITOR_READ_NODE_TYPE = COMPETITOR_READ_NODE_TYPE;
|
|
23912
|
+
exports.COMPETITOR_READ_ROLES = COMPETITOR_READ_ROLES;
|
|
23486
23913
|
exports.COMPETITOR_SCAN_CREDIT_COSTS = COMPETITOR_SCAN_CREDIT_COSTS;
|
|
23487
23914
|
exports.COMPETITOR_SCAN_MAX_SEARCHES = COMPETITOR_SCAN_MAX_SEARCHES;
|
|
23488
23915
|
exports.COMPETITOR_SCAN_NODE_TYPE = COMPETITOR_SCAN_NODE_TYPE;
|
|
@@ -23547,6 +23974,7 @@ exports.DEFAULT_VOICE_CHANGER_MODEL = DEFAULT_VOICE_CHANGER_MODEL;
|
|
|
23547
23974
|
exports.DEFAULT_VOICE_DESIGN_MODEL = DEFAULT_VOICE_DESIGN_MODEL;
|
|
23548
23975
|
exports.DETAIL_VARIANTS = DETAIL_VARIANTS;
|
|
23549
23976
|
exports.DIALOGUE_PROVIDERS = DIALOGUE_PROVIDERS;
|
|
23977
|
+
exports.DIRECT_VIDEO_EXTENSIONS = DIRECT_VIDEO_EXTENSIONS;
|
|
23550
23978
|
exports.DURATION_PRICED_PROVIDERS = DURATION_PRICED_PROVIDERS;
|
|
23551
23979
|
exports.DYNAMIC_HANDLE_NODE_TYPES = DYNAMIC_HANDLE_NODE_TYPES;
|
|
23552
23980
|
exports.DYNAMIC_PRODUCER_TYPES = DYNAMIC_PRODUCER_TYPES;
|
|
@@ -23653,6 +24081,7 @@ exports.IMAGE_TO_VIDEO_PROVIDERS = IMAGE_TO_VIDEO_PROVIDERS;
|
|
|
23653
24081
|
exports.INPUT_FIELD_EXTRA_KEYS = INPUT_FIELD_EXTRA_KEYS;
|
|
23654
24082
|
exports.INPUT_FIELD_MAP = INPUT_FIELD_MAP2;
|
|
23655
24083
|
exports.INPUT_NODE_TYPES = INPUT_NODE_TYPES;
|
|
24084
|
+
exports.INSPIRATION_READ_NODE_TYPE = INSPIRATION_READ_NODE_TYPE;
|
|
23656
24085
|
exports.INSTAGRAM_ANALYSIS_CREDIT_ID = INSTAGRAM_ANALYSIS_CREDIT_ID;
|
|
23657
24086
|
exports.INSTAGRAM_CAROUSEL_MAX_ITEMS = INSTAGRAM_CAROUSEL_MAX_ITEMS;
|
|
23658
24087
|
exports.INSTAGRAM_CAROUSEL_MIN_ITEMS = INSTAGRAM_CAROUSEL_MIN_ITEMS;
|
|
@@ -23720,6 +24149,7 @@ exports.MAX_LOCATION_VARIANTS = MAX_LOCATION_VARIANTS;
|
|
|
23720
24149
|
exports.MAX_NEGATIVE_PROMPT_CHARS_BY_PROVIDER = MAX_NEGATIVE_PROMPT_CHARS_BY_PROVIDER;
|
|
23721
24150
|
exports.MAX_PANELS_PER_SHEET = MAX_PANELS_PER_SHEET;
|
|
23722
24151
|
exports.MAX_TTS_CHARS_BY_PROVIDER = MAX_TTS_CHARS_BY_PROVIDER;
|
|
24152
|
+
exports.MAX_VIDEO_LINK_INPUT_CHARS = MAX_VIDEO_LINK_INPUT_CHARS;
|
|
23723
24153
|
exports.MAX_VIDEO_PROMPT_CHARS_BY_PROVIDER = MAX_VIDEO_PROMPT_CHARS_BY_PROVIDER;
|
|
23724
24154
|
exports.MEMBER_STATUSES = MEMBER_STATUSES;
|
|
23725
24155
|
exports.META_ADS_ADVERTISER_MAX_RESULTS = META_ADS_ADVERTISER_MAX_RESULTS;
|
|
@@ -23810,9 +24240,11 @@ exports.PASSTHROUGH_TYPES = PASSTHROUGH_TYPES;
|
|
|
23810
24240
|
exports.PAYG_RETENTION_DAYS = PAYG_RETENTION_DAYS;
|
|
23811
24241
|
exports.PER_FORMAT_DURATION_BOUNDS = PER_FORMAT_DURATION_BOUNDS;
|
|
23812
24242
|
exports.PICKER_TO_COMBINE_TRANSITION = PICKER_TO_COMBINE_TRANSITION;
|
|
24243
|
+
exports.PIPELINE_ACCEPTED_IMAGE_MODELS = PIPELINE_ACCEPTED_IMAGE_MODELS;
|
|
23813
24244
|
exports.PIPELINE_ACTIVATION_MODES = PIPELINE_ACTIVATION_MODES;
|
|
23814
24245
|
exports.PIPELINE_FORMATS = PIPELINE_FORMATS;
|
|
23815
24246
|
exports.PIPELINE_HARD_TIMEOUT_MS = PIPELINE_HARD_TIMEOUT_MS;
|
|
24247
|
+
exports.PIPELINE_LEGACY_PINNED_IMAGE_MODELS = PIPELINE_LEGACY_PINNED_IMAGE_MODELS;
|
|
23816
24248
|
exports.PIPELINE_MODEL_STAGES = PIPELINE_MODEL_STAGES;
|
|
23817
24249
|
exports.PIPELINE_MODES = PIPELINE_MODES;
|
|
23818
24250
|
exports.PIPELINE_OUTPUT_RESOLUTIONS = PIPELINE_OUTPUT_RESOLUTIONS;
|
|
@@ -23997,7 +24429,14 @@ exports.SMART_CUT_WINDOW_MAX = SMART_CUT_WINDOW_MAX;
|
|
|
23997
24429
|
exports.SMART_CUT_WINDOW_MIN = SMART_CUT_WINDOW_MIN;
|
|
23998
24430
|
exports.SOCIAL_PLATFORMS = SOCIAL_PLATFORMS;
|
|
23999
24431
|
exports.SOCIAL_POST_NODE_TYPES = SOCIAL_POST_NODE_TYPES;
|
|
24432
|
+
exports.SOCIAL_POST_READER_NODE_TYPES = SOCIAL_POST_READER_NODE_TYPES;
|
|
24000
24433
|
exports.SOCIAL_POST_VIDEO_LINK_MARGIN_MS = SOCIAL_POST_VIDEO_LINK_MARGIN_MS;
|
|
24434
|
+
exports.SOCIAL_READ_DAY_PATTERN = SOCIAL_READ_DAY_PATTERN;
|
|
24435
|
+
exports.SOCIAL_READ_DEFAULT_LIMIT = SOCIAL_READ_DEFAULT_LIMIT;
|
|
24436
|
+
exports.SOCIAL_READ_LIMIT_MAX = SOCIAL_READ_LIMIT_MAX;
|
|
24437
|
+
exports.SOCIAL_READ_PERIODS = SOCIAL_READ_PERIODS;
|
|
24438
|
+
exports.SOCIAL_READ_WINDOW_DAYS_MAX = SOCIAL_READ_WINDOW_DAYS_MAX;
|
|
24439
|
+
exports.SOCIAL_READ_WINDOW_HOURS_MAX = SOCIAL_READ_WINDOW_HOURS_MAX;
|
|
24001
24440
|
exports.SOCIAL_SEARCH_COUNTS = SOCIAL_SEARCH_COUNTS;
|
|
24002
24441
|
exports.SOCIAL_SEARCH_CREDITS_PER_PAGE = SOCIAL_SEARCH_CREDITS_PER_PAGE;
|
|
24003
24442
|
exports.SOCIAL_SEARCH_CREDIT_COSTS = SOCIAL_SEARCH_CREDIT_COSTS;
|
|
@@ -24169,6 +24608,8 @@ exports.VIDEO_DURATION_TIERS = VIDEO_DURATION_TIERS;
|
|
|
24169
24608
|
exports.VIDEO_GEN_COLLAPSED_T2V_IDS = VIDEO_GEN_COLLAPSED_T2V_IDS;
|
|
24170
24609
|
exports.VIDEO_GEN_PROVIDERS = VIDEO_GEN_PROVIDERS;
|
|
24171
24610
|
exports.VIDEO_INPUT_LIP_SYNC_PROVIDERS = VIDEO_INPUT_LIP_SYNC_PROVIDERS;
|
|
24611
|
+
exports.VIDEO_LINK_AUDIO_CONSUMER_TYPES = VIDEO_LINK_AUDIO_CONSUMER_TYPES;
|
|
24612
|
+
exports.VIDEO_LINK_DERIVED_FIELDS = VIDEO_LINK_DERIVED_FIELDS;
|
|
24172
24613
|
exports.VIDEO_LINK_TOLERANT_CONSUMER_TYPES = VIDEO_LINK_TOLERANT_CONSUMER_TYPES;
|
|
24173
24614
|
exports.VIDEO_MODEL_CAPS = VIDEO_MODEL_CAPS;
|
|
24174
24615
|
exports.VIDEO_MODE_ALIASES = VIDEO_MODE_ALIASES;
|
|
@@ -24226,6 +24667,7 @@ exports.WORKSPACE_HEADER_LOWER = WORKSPACE_HEADER_LOWER;
|
|
|
24226
24667
|
exports.WORKSPACE_ROLES = WORKSPACE_ROLES;
|
|
24227
24668
|
exports.WorkspaceSettingsSchema = WorkspaceSettingsSchema;
|
|
24228
24669
|
exports.YOUTUBE_HOSTS = YOUTUBE_HOSTS;
|
|
24670
|
+
exports.YOUTUBE_MAX_HEIGHT = YOUTUBE_MAX_HEIGHT;
|
|
24229
24671
|
exports.adCreativeAnalysisFrom = adCreativeAnalysisFrom;
|
|
24230
24672
|
exports.adviceFamilyOf = adviceFamilyOf;
|
|
24231
24673
|
exports.aggregateByType = aggregateByType;
|
|
@@ -24349,6 +24791,8 @@ exports.countEmptyInputSkips = countEmptyInputSkips;
|
|
|
24349
24791
|
exports.countRefModalityEdges = countRefModalityEdges;
|
|
24350
24792
|
exports.creditRangesAll = creditRangesAll;
|
|
24351
24793
|
exports.creditsToUsd = creditsToUsd;
|
|
24794
|
+
exports.declaredJsonOutput = declaredJsonOutput;
|
|
24795
|
+
exports.declaredJsonOutputRows = declaredJsonOutputRows;
|
|
24352
24796
|
exports.decodeProviderItem = decodeProviderItem;
|
|
24353
24797
|
exports.defaultCarriedFraction = defaultCarriedFraction;
|
|
24354
24798
|
exports.defaultEdgeOutputMode = defaultEdgeOutputMode;
|
|
@@ -24370,14 +24814,21 @@ exports.dialogueHasLever = dialogueHasLever;
|
|
|
24370
24814
|
exports.dialogueProviderOf = dialogueProviderOf;
|
|
24371
24815
|
exports.dialogueStabilityAccepted = dialogueStabilityAccepted;
|
|
24372
24816
|
exports.dialogueSupportsTimestamps = dialogueSupportsTimestamps;
|
|
24817
|
+
exports.dropStaleVideoLinkFields = dropStaleVideoLinkFields;
|
|
24373
24818
|
exports.dropUnknownBindings = dropUnknownBindings;
|
|
24374
24819
|
exports.dropUnknownSpeakers = dropUnknownSpeakers;
|
|
24375
24820
|
exports.durationsByMode = durationsByMode;
|
|
24376
24821
|
exports.editPlanBasis = editPlanBasis;
|
|
24377
24822
|
exports.editPlanBucketMinutes = editPlanBucketMinutes;
|
|
24823
|
+
exports.editPlanFlatCreditId = editPlanFlatCreditId;
|
|
24824
|
+
exports.editPlanMinutesBaseCredits = editPlanMinutesBaseCredits;
|
|
24825
|
+
exports.editPlanMinutesCreditId = editPlanMinutesCreditId;
|
|
24826
|
+
exports.editPlanRateCreditId = editPlanRateCreditId;
|
|
24827
|
+
exports.editPlanReserveCreditId = editPlanReserveCreditId;
|
|
24378
24828
|
exports.editPlanResultPatch = editPlanResultPatch;
|
|
24379
24829
|
exports.editPlanSavedOutput = editPlanSavedOutput;
|
|
24380
24830
|
exports.editPlanSourceDurationSec = editPlanSourceDurationSec;
|
|
24831
|
+
exports.editPlanStartedMinutes = editPlanStartedMinutes;
|
|
24381
24832
|
exports.editPlanTranscriptOrigin = editPlanTranscriptOrigin;
|
|
24382
24833
|
exports.edlDurationMs = edlDurationMs;
|
|
24383
24834
|
exports.edlSegmentOutputStarts = edlSegmentOutputStarts;
|
|
@@ -24523,6 +24974,7 @@ exports.isCollectionUrl = isCollectionUrl;
|
|
|
24523
24974
|
exports.isCompetitorAboutPlatform = isCompetitorAboutPlatform;
|
|
24524
24975
|
exports.isCronExpression = isCronExpression;
|
|
24525
24976
|
exports.isDefaultSelectorConfig = isDefaultSelectorConfig;
|
|
24977
|
+
exports.isDirectVideoFileUrl = isDirectVideoFileUrl;
|
|
24526
24978
|
exports.isEdlTargetAspect = isEdlTargetAspect;
|
|
24527
24979
|
exports.isExpandedClone = isExpandedClone;
|
|
24528
24980
|
exports.isFacebookPageUrl = isFacebookPageUrl;
|
|
@@ -24539,6 +24991,7 @@ exports.isKineticCaptionStyle = isKineticCaptionStyle;
|
|
|
24539
24991
|
exports.isKnownScene3DEngine = isKnownScene3DEngine;
|
|
24540
24992
|
exports.isKnownSpeakerEmphasisStyle = isKnownSpeakerEmphasisStyle;
|
|
24541
24993
|
exports.isLegacySunoModel = isLegacySunoModel;
|
|
24994
|
+
exports.isLocalOrPrivateHostname = isLocalOrPrivateHostname;
|
|
24542
24995
|
exports.isLocationUsageMode = isLocationUsageMode;
|
|
24543
24996
|
exports.isMeasurableCard = isMeasurableCard;
|
|
24544
24997
|
exports.isMetaAdsFormat = isMetaAdsFormat;
|
|
@@ -24551,6 +25004,7 @@ exports.isObjectAspectRatio = isObjectAspectRatio;
|
|
|
24551
25004
|
exports.isOversizedScene = isOversizedScene;
|
|
24552
25005
|
exports.isPaygRetentionActive = isPaygRetentionActive;
|
|
24553
25006
|
exports.isPerSecondLipSyncProvider = isPerSecondLipSyncProvider;
|
|
25007
|
+
exports.isPrivateOrReservedIP = isPrivateOrReservedIP;
|
|
24554
25008
|
exports.isPro3DRenderJobOutput = isPro3DRenderJobOutput;
|
|
24555
25009
|
exports.isPro3DRenderQuote = isPro3DRenderQuote;
|
|
24556
25010
|
exports.isPro3DRenderRenderOnly = isPro3DRenderRenderOnly;
|
|
@@ -24572,6 +25026,7 @@ exports.isSettingsHintEdge = isSettingsHintEdge;
|
|
|
24572
25026
|
exports.isSettingsHintSource = isSettingsHintSource;
|
|
24573
25027
|
exports.isSettingsSourceType = isSettingsSourceType;
|
|
24574
25028
|
exports.isSocialPost = isSocialPost;
|
|
25029
|
+
exports.isSocialPostReaderNodeType = isSocialPostReaderNodeType;
|
|
24575
25030
|
exports.isSocialSearchPickFrozen = isSocialSearchPickFrozen;
|
|
24576
25031
|
exports.isSocialVideoUrl = isSocialVideoUrl;
|
|
24577
25032
|
exports.isTelegramAccountTriggerNamedHandle = isTelegramAccountTriggerNamedHandle;
|
|
@@ -24586,6 +25041,10 @@ exports.isVideoOverlayCorner = isVideoOverlayCorner;
|
|
|
24586
25041
|
exports.isVideoOverlayOutputAspect = isVideoOverlayOutputAspect;
|
|
24587
25042
|
exports.isVideoOverlayPresetId = isVideoOverlayPresetId;
|
|
24588
25043
|
exports.isWan3Provider = isWan3Provider;
|
|
25044
|
+
exports.jsonInputKind = jsonInputKind;
|
|
25045
|
+
exports.jsonKindMismatch = jsonKindMismatch;
|
|
25046
|
+
exports.jsonKindMismatchMessage = jsonKindMismatchMessage;
|
|
25047
|
+
exports.jsonOutputKind = jsonOutputKind;
|
|
24589
25048
|
exports.jsonResultToList = jsonResultToList;
|
|
24590
25049
|
exports.knownEntitySlugsFromRefs = knownEntitySlugsFromRefs;
|
|
24591
25050
|
exports.knownImageSlugsFromRefs = knownImageSlugsFromRefs;
|
|
@@ -24679,6 +25138,7 @@ exports.parseAspectToken = parseAspectToken;
|
|
|
24679
25138
|
exports.parseAttributedDialogue = parseAttributedDialogue;
|
|
24680
25139
|
exports.parseCaptionPlan = parseCaptionPlan;
|
|
24681
25140
|
exports.parseCharacterMentionToken = parseCharacterMentionToken;
|
|
25141
|
+
exports.parseEditPlanMinutesCreditId = parseEditPlanMinutesCreditId;
|
|
24682
25142
|
exports.parseEditPlanMode = parseEditPlanMode;
|
|
24683
25143
|
exports.parseEntityMentionToken = parseEntityMentionToken;
|
|
24684
25144
|
exports.parseGroupHandle = parseGroupHandle;
|
|
@@ -24901,6 +25361,7 @@ exports.scene3DV2OverrideInputSchema = scene3DV2OverrideInputSchema;
|
|
|
24901
25361
|
exports.scene3DV2ResourceUsage = scene3DV2ResourceUsage;
|
|
24902
25362
|
exports.scene3DVersionTokenSchema = scene3DVersionTokenSchema;
|
|
24903
25363
|
exports.scene3DZodIssues = scene3DZodIssues;
|
|
25364
|
+
exports.sceneRenderStateRegistry = sceneRenderStateRegistry;
|
|
24904
25365
|
exports.scheduleMatchesAt = scheduleMatchesAt;
|
|
24905
25366
|
exports.scheduleOccurrences = scheduleOccurrences;
|
|
24906
25367
|
exports.searchModelVariants = searchModelVariants;
|
|
@@ -24924,6 +25385,7 @@ exports.signedLinkExpiresAt = signedLinkExpiresAt;
|
|
|
24924
25385
|
exports.sizeVec3Schema = sizeVec3Schema;
|
|
24925
25386
|
exports.slotVariationSchema = slotVariationSchema;
|
|
24926
25387
|
exports.snapToModelDuration = snapToModelDuration;
|
|
25388
|
+
exports.snapToNearestDuration = snapToNearestDuration;
|
|
24927
25389
|
exports.socialPostDigestLine = socialPostDigestLine;
|
|
24928
25390
|
exports.socialPostsDigest = socialPostsDigest;
|
|
24929
25391
|
exports.socialPostsFrom = socialPostsFrom;
|
|
@@ -24949,6 +25411,7 @@ exports.speakerLayoutAllows = speakerLayoutAllows;
|
|
|
24949
25411
|
exports.speakerPresentationWarnings = speakerPresentationWarnings;
|
|
24950
25412
|
exports.speakerSwitchOverlaps = speakerSwitchOverlaps;
|
|
24951
25413
|
exports.speakerTurns = speakerTurns;
|
|
25414
|
+
exports.speakerViewCreditId = speakerViewCreditId;
|
|
24952
25415
|
exports.speechCredits = speechCredits;
|
|
24953
25416
|
exports.speechPriceUnits = speechPriceUnits;
|
|
24954
25417
|
exports.speechUnitCreditId = speechUnitCreditId;
|
|
@@ -25046,9 +25509,13 @@ exports.videoCharacterRefUnits = videoCharacterRefUnits;
|
|
|
25046
25509
|
exports.videoCharacterVoiceCap = videoCharacterVoiceCap;
|
|
25047
25510
|
exports.videoCharacterVoiceKey = videoCharacterVoiceKey;
|
|
25048
25511
|
exports.videoCharacterVoiceProblem = videoCharacterVoiceProblem;
|
|
25512
|
+
exports.videoDefaultDurationSec = videoDefaultDurationSec;
|
|
25049
25513
|
exports.videoLinkDownloadedFile = videoLinkDownloadedFile;
|
|
25514
|
+
exports.videoLinkInputProblem = videoLinkInputProblem;
|
|
25515
|
+
exports.videoLinkNeedOf = videoLinkNeedOf;
|
|
25050
25516
|
exports.videoLinkNeedsDownload = videoLinkNeedsDownload;
|
|
25051
25517
|
exports.videoLinkPageUrl = videoLinkPageUrl;
|
|
25518
|
+
exports.videoLinkRunNeeds = videoLinkRunNeeds;
|
|
25052
25519
|
exports.videoModelCanSpeakDialogue = videoModelCanSpeakDialogue;
|
|
25053
25520
|
exports.videoModelSupportsAudio = videoModelSupportsAudio;
|
|
25054
25521
|
exports.videoNegativeSuffix = videoNegativeSuffix;
|