@nodaro/shared 3.14.0 → 3.18.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 +1679 -81
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1822 -49
- package/dist/index.d.ts +1822 -49
- package/dist/index.js +1491 -82
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/apply-edl-credit-id.test.ts +25 -0
- package/src/__tests__/camera-switch-contract.test.ts +98 -0
- package/src/__tests__/competitors.test.ts +49 -0
- package/src/__tests__/content-recipe-ideas.test.ts +96 -0
- package/src/__tests__/edl-multicam.test.ts +192 -0
- package/src/__tests__/exposed-field-keys.test.ts +78 -0
- package/src/__tests__/instagram-scrape.test.ts +62 -0
- package/src/__tests__/llm-models.test.ts +5 -2
- package/src/__tests__/music-provider.test.ts +17 -0
- package/src/__tests__/node-runtime-keys.test.ts +11 -0
- package/src/__tests__/parameter-node-value.test.ts +2 -1
- package/src/__tests__/per-unit-video-pricing.test.ts +97 -0
- package/src/__tests__/producer-types.test.ts +35 -0
- package/src/__tests__/saved-posts.test.ts +37 -0
- package/src/__tests__/script-settings.test.ts +61 -0
- package/src/__tests__/settings-input.test.ts +252 -0
- package/src/__tests__/social-search.test.ts +243 -0
- package/src/__tests__/studio-sequence-owner.test.ts +356 -0
- package/src/__tests__/studio-take-voice.test.ts +200 -0
- package/src/__tests__/studio-transient.test.ts +71 -0
- package/src/__tests__/sub-gates.test.ts +21 -0
- package/src/__tests__/telegram-account-trigger.test.ts +120 -0
- package/src/__tests__/text-to-audio-pricing.test.ts +71 -0
- package/src/__tests__/tts-capabilities.test.ts +237 -0
- package/src/__tests__/video-analysis-pricing.test.ts +27 -13
- package/src/__tests__/video-link.test.ts +2 -2
- package/src/__tests__/video-utils.test.ts +89 -83
- package/src/__tests__/workflow-export-strip.test.ts +37 -0
- package/src/camera-switch-contract.ts +166 -0
- package/src/catalog-projection.ts +7 -0
- package/src/competitors.ts +430 -0
- package/src/content-recipe-ideas.ts +69 -0
- package/src/credit-estimators/index.ts +21 -0
- package/src/credit-estimators/ltx-extend.ts +33 -0
- package/src/credit-estimators/ltx-retake.ts +30 -0
- package/src/credit-estimators/text-to-audio.ts +58 -0
- package/src/credit-estimators/video-sfx.ts +41 -0
- package/src/credit-estimators/video-utils.ts +38 -24
- package/src/credit-identifiers.ts +22 -0
- package/src/edl-multicam.ts +220 -0
- package/src/exposed-field-keys.ts +49 -0
- package/src/fan-out-rows.ts +7 -2
- package/src/i18n/action-fx.ko.ts +18 -18
- package/src/i18n/action-fx.pt-BR.ts +66 -66
- package/src/i18n/aesthetic.ko.ts +49 -49
- package/src/i18n/aesthetic.pt-BR.ts +14 -14
- package/src/i18n/animals.ko.ts +126 -126
- package/src/i18n/animals.pt-BR.ts +33 -33
- package/src/i18n/atmosphere.ko.ts +37 -37
- package/src/i18n/atmosphere.pt-BR.ts +29 -29
- package/src/i18n/backdrop.ko.ts +40 -40
- package/src/i18n/backdrop.pt-BR.ts +38 -38
- package/src/i18n/camera-format.ko.ts +31 -31
- package/src/i18n/camera-format.pt-BR.ts +12 -12
- package/src/i18n/camera-motions.ko.ts +66 -66
- package/src/i18n/camera-motions.pt-BR.ts +51 -51
- package/src/i18n/character-fx.ko.ts +19 -19
- package/src/i18n/character-fx.pt-BR.ts +64 -52
- package/src/i18n/character-motion.ko.ts +164 -164
- package/src/i18n/character-motion.pt-BR.ts +867 -858
- package/src/i18n/color-look.ko.ts +41 -41
- package/src/i18n/color-look.pt-BR.ts +23 -23
- package/src/i18n/composition-effects.ko.ts +18 -18
- package/src/i18n/composition-effects.pt-BR.ts +17 -17
- package/src/i18n/era.ko.ts +28 -28
- package/src/i18n/era.pt-BR.ts +20 -20
- package/src/i18n/exposure-settings.ko.ts +20 -20
- package/src/i18n/exposure-settings.pt-BR.ts +3 -3
- package/src/i18n/framing.ko.ts +66 -66
- package/src/i18n/framing.pt-BR.ts +50 -50
- package/src/i18n/furniture.ko.ts +78 -78
- package/src/i18n/furniture.pt-BR.ts +46 -46
- package/src/i18n/held-prop.ko.ts +60 -60
- package/src/i18n/held-prop.pt-BR.ts +30 -30
- package/src/i18n/instrumentation.ko.ts +62 -62
- package/src/i18n/instrumentation.pt-BR.ts +64 -64
- package/src/i18n/lens.ko.ts +16 -16
- package/src/i18n/lens.pt-BR.ts +5 -5
- package/src/i18n/lighting.ko.ts +68 -68
- package/src/i18n/lighting.pt-BR.ts +43 -43
- package/src/i18n/loop-subject.ko.ts +1 -1
- package/src/i18n/loop-subject.pt-BR.ts +31 -31
- package/src/i18n/materials.ko.ts +66 -66
- package/src/i18n/materials.pt-BR.ts +22 -22
- package/src/i18n/mood.ko.ts +50 -50
- package/src/i18n/mood.pt-BR.ts +12 -12
- package/src/i18n/music-genre.ko.ts +28 -28
- package/src/i18n/music-genre.pt-BR.ts +50 -50
- package/src/i18n/music-mood.ko.ts +27 -27
- package/src/i18n/music-mood.pt-BR.ts +20 -20
- package/src/i18n/person.ko.ts +396 -396
- package/src/i18n/person.pt-BR.ts +237 -237
- package/src/i18n/photo-genre.ko.ts +46 -46
- package/src/i18n/photo-genre.pt-BR.ts +32 -32
- package/src/i18n/photographer.ko.ts +63 -63
- package/src/i18n/photographer.pt-BR.ts +15 -15
- package/src/i18n/pose.ko.ts +81 -81
- package/src/i18n/pose.pt-BR.ts +65 -65
- package/src/i18n/post-process-effects.ko.ts +18 -18
- package/src/i18n/post-process-effects.pt-BR.ts +18 -18
- package/src/i18n/render-quality.ko.ts +24 -24
- package/src/i18n/render-quality.pt-BR.ts +12 -12
- package/src/i18n/setting.ko.ts +64 -64
- package/src/i18n/setting.pt-BR.ts +41 -41
- package/src/i18n/style.ko.ts +49 -49
- package/src/i18n/style.pt-BR.ts +19 -19
- package/src/i18n/styling.ko.ts +265 -265
- package/src/i18n/styling.pt-BR.ts +141 -141
- package/src/i18n/temporal.ko.ts +18 -18
- package/src/i18n/temporal.pt-BR.ts +12 -12
- package/src/i18n/transitions.ko.ts +14 -14
- package/src/i18n/transitions.pt-BR.ts +83 -71
- package/src/i18n/vehicles.ko.ts +107 -107
- package/src/i18n/vehicles.pt-BR.ts +55 -55
- package/src/i18n/voice-character.ko.ts +19 -19
- package/src/i18n/voice-character.pt-BR.ts +19 -19
- package/src/i18n/voice-delivery.ko.ts +22 -22
- package/src/i18n/voice-delivery.pt-BR.ts +22 -22
- package/src/i18n/weapons.ko.ts +85 -85
- package/src/i18n/weapons.pt-BR.ts +46 -46
- package/src/index.ts +236 -1
- package/src/instagram-scrape.ts +91 -16
- package/src/llm-models.ts +11 -0
- package/src/model-catalog.ts +151 -16
- package/src/model-constants.ts +54 -16
- package/src/node-mappable-fields.ts +21 -5
- package/src/node-runtime-keys.ts +45 -0
- package/src/oauth-scopes.ts +28 -0
- package/src/parameter-node-value.ts +13 -5
- package/src/pipeline-defaults.ts +14 -0
- package/src/pipeline-state-types.ts +14 -0
- package/src/presentation-utils.ts +5 -1
- package/src/producer-types.ts +85 -0
- package/src/recast-segment-packs.ts +13 -0
- package/src/resolve-field-mappings.ts +15 -5
- package/src/saved-posts.ts +106 -0
- package/src/script-settings.ts +70 -0
- package/src/settings-input.ts +366 -0
- package/src/social-search.ts +467 -0
- package/src/studio-transient.ts +479 -7
- package/src/telegram-account-send.ts +32 -0
- package/src/telegram-account-trigger.ts +108 -0
- package/src/tts-capabilities.ts +75 -0
- package/src/video-analysis-pricing.ts +17 -6
- package/src/video-link.ts +16 -4
- package/src/workflow-export.ts +7 -0
package/dist/index.cjs
CHANGED
|
@@ -1079,7 +1079,7 @@ var VIDEO_MODELS = {
|
|
|
1079
1079
|
resolutions: ["720p", "1080p", "4k"],
|
|
1080
1080
|
pricing: [
|
|
1081
1081
|
{ identifier: "veo3", credits: 1e3, note: "4/6/8s with audio (flat per-generation)" },
|
|
1082
|
-
{ identifier: "veo3:4k", credits:
|
|
1082
|
+
{ identifier: "veo3:4k", credits: 1300, note: "4K (base 1080p \u2192 get-4k-video)" }
|
|
1083
1083
|
],
|
|
1084
1084
|
featured: true
|
|
1085
1085
|
},
|
|
@@ -2105,9 +2105,9 @@ var VIDEO_MODELS = {
|
|
|
2105
2105
|
kind: "video",
|
|
2106
2106
|
modes: ["video-analysis"],
|
|
2107
2107
|
family: "Nodaro",
|
|
2108
|
-
label: "Video Analysis (Fast
|
|
2108
|
+
label: "Video Analysis (Fast)",
|
|
2109
2109
|
series: "Video Analysis",
|
|
2110
|
-
description: "
|
|
2110
|
+
description: "Analyze a video into a structured shot list (scenes, camera, audio) \u2014 fast, economy tier. Billed per duration bucket.",
|
|
2111
2111
|
useCases: ["video-analysis", "shot-list", "fast"],
|
|
2112
2112
|
pricing: [
|
|
2113
2113
|
{ identifier: "video-analysis:gemini-3-flash", credits: 849, note: "10-min ceiling (no duration given)" },
|
|
@@ -2122,9 +2122,9 @@ var VIDEO_MODELS = {
|
|
|
2122
2122
|
kind: "video",
|
|
2123
2123
|
modes: ["video-analysis"],
|
|
2124
2124
|
family: "Nodaro",
|
|
2125
|
-
label: "Video Analysis (Fast)",
|
|
2125
|
+
label: "Video Analysis (Fast \u2014 legacy)",
|
|
2126
2126
|
series: "Video Analysis",
|
|
2127
|
-
description: "
|
|
2127
|
+
description: "Legacy fast-tier analysis model (backed the fast tier from 2026-07 until 2026-07-29). Kept so stored raw-model configs keep running and keep pricing under their own identifier; new fast-tier runs use the current fast model.",
|
|
2128
2128
|
useCases: ["video-analysis", "shot-list", "fast"],
|
|
2129
2129
|
pricing: [
|
|
2130
2130
|
{ identifier: "video-analysis:gemini-3.6-flash", credits: 995, note: "10-min ceiling (no duration given)" },
|
|
@@ -2238,6 +2238,56 @@ var VIDEO_MODELS = {
|
|
|
2238
2238
|
]
|
|
2239
2239
|
}
|
|
2240
2240
|
};
|
|
2241
|
+
var TTS_LANGS_MULTILINGUAL_V2 = [
|
|
2242
|
+
"en",
|
|
2243
|
+
"ja",
|
|
2244
|
+
"zh",
|
|
2245
|
+
"de",
|
|
2246
|
+
"hi",
|
|
2247
|
+
"fr",
|
|
2248
|
+
"ko",
|
|
2249
|
+
"pt",
|
|
2250
|
+
"it",
|
|
2251
|
+
"es",
|
|
2252
|
+
"id",
|
|
2253
|
+
"nl",
|
|
2254
|
+
"tr",
|
|
2255
|
+
"fil",
|
|
2256
|
+
"pl",
|
|
2257
|
+
"sv",
|
|
2258
|
+
"bg",
|
|
2259
|
+
"ro",
|
|
2260
|
+
"ar",
|
|
2261
|
+
"cs",
|
|
2262
|
+
"el",
|
|
2263
|
+
"fi",
|
|
2264
|
+
"hr",
|
|
2265
|
+
"ms",
|
|
2266
|
+
"sk",
|
|
2267
|
+
"da",
|
|
2268
|
+
"ta",
|
|
2269
|
+
"uk",
|
|
2270
|
+
"ru"
|
|
2271
|
+
];
|
|
2272
|
+
var TTS_LANGS_FLASH_V25 = [...TTS_LANGS_MULTILINGUAL_V2, "hu", "no", "vi"];
|
|
2273
|
+
var TTS_LANGS_V3 = [
|
|
2274
|
+
...TTS_LANGS_FLASH_V25,
|
|
2275
|
+
"he",
|
|
2276
|
+
"th",
|
|
2277
|
+
"bn",
|
|
2278
|
+
"ur",
|
|
2279
|
+
"fa",
|
|
2280
|
+
"sr",
|
|
2281
|
+
"lt",
|
|
2282
|
+
"lv",
|
|
2283
|
+
"et",
|
|
2284
|
+
"ka",
|
|
2285
|
+
"is",
|
|
2286
|
+
"ca",
|
|
2287
|
+
"af",
|
|
2288
|
+
"sw"
|
|
2289
|
+
];
|
|
2290
|
+
var TTS_LEVERS_V2 = ["stability", "similarity", "style", "speed", "speakerBoost"];
|
|
2241
2291
|
var AUDIO_MODELS = {
|
|
2242
2292
|
// ── ElevenLabs TTS ──
|
|
2243
2293
|
"elevenlabs-v3": {
|
|
@@ -2247,11 +2297,43 @@ var AUDIO_MODELS = {
|
|
|
2247
2297
|
family: "ElevenLabs",
|
|
2248
2298
|
label: "ElevenLabs v3",
|
|
2249
2299
|
series: "ElevenLabs",
|
|
2250
|
-
description: "
|
|
2300
|
+
description: "Expressive ElevenLabs TTS \u2014 supports [audio tags] for emotion / pacing. Direct API.",
|
|
2251
2301
|
useCases: ["tts", "voice-over", "narration", "expressive"],
|
|
2252
2302
|
features: ["audio-tags", "voice-cloning"],
|
|
2253
2303
|
pricing: [{ identifier: "elevenlabs-v3", credits: 30 }],
|
|
2254
|
-
featured: true
|
|
2304
|
+
featured: true,
|
|
2305
|
+
tts: {
|
|
2306
|
+
audioTags: true,
|
|
2307
|
+
ssmlBreaks: false,
|
|
2308
|
+
levers: ["stability"],
|
|
2309
|
+
languageCode: true,
|
|
2310
|
+
maxChars: 5e3,
|
|
2311
|
+
// official cap (probed: 5,200 chars accepted; keep the clamp)
|
|
2312
|
+
languages: TTS_LANGS_V3
|
|
2313
|
+
}
|
|
2314
|
+
},
|
|
2315
|
+
"elevenlabs-v4": {
|
|
2316
|
+
id: "elevenlabs-v4",
|
|
2317
|
+
kind: "audio",
|
|
2318
|
+
modes: ["tts"],
|
|
2319
|
+
family: "ElevenLabs",
|
|
2320
|
+
label: "ElevenLabs v4",
|
|
2321
|
+
series: "ElevenLabs",
|
|
2322
|
+
description: "Newest ElevenLabs TTS \u2014 [audio tags], stability and similarity control, up to 10,000 characters per request. Direct API.",
|
|
2323
|
+
useCases: ["tts", "voice-over", "narration", "expressive", "long-form"],
|
|
2324
|
+
features: ["audio-tags", "voice-cloning"],
|
|
2325
|
+
pricing: [{ identifier: "elevenlabs-v4", credits: 30 }],
|
|
2326
|
+
tts: {
|
|
2327
|
+
audioTags: true,
|
|
2328
|
+
ssmlBreaks: false,
|
|
2329
|
+
levers: ["stability", "similarity"],
|
|
2330
|
+
languageCode: true,
|
|
2331
|
+
maxChars: 1e4,
|
|
2332
|
+
// The curated picker, the same 46 as v3. The model itself lists 85
|
|
2333
|
+
// (it adds e.g. Cantonese, Maltese, Mongolian, Burmese, Uzbek); widening
|
|
2334
|
+
// the picker is its own change — it needs a name and a translation per language.
|
|
2335
|
+
languages: TTS_LANGS_V3
|
|
2336
|
+
}
|
|
2255
2337
|
},
|
|
2256
2338
|
"elevenlabs-turbo": {
|
|
2257
2339
|
id: "elevenlabs-turbo",
|
|
@@ -2262,7 +2344,16 @@ var AUDIO_MODELS = {
|
|
|
2262
2344
|
series: "ElevenLabs",
|
|
2263
2345
|
description: "Fast, cheap ElevenLabs TTS via the direct ElevenLabs API. Good for narration.",
|
|
2264
2346
|
useCases: ["tts", "narration", "fast"],
|
|
2265
|
-
pricing: [{ identifier: "elevenlabs-turbo", credits: 15, note: "per 1K chars" }]
|
|
2347
|
+
pricing: [{ identifier: "elevenlabs-turbo", credits: 15, note: "per 1K chars" }],
|
|
2348
|
+
tts: {
|
|
2349
|
+
audioTags: false,
|
|
2350
|
+
ssmlBreaks: true,
|
|
2351
|
+
levers: TTS_LEVERS_V2,
|
|
2352
|
+
languageCode: true,
|
|
2353
|
+
maxChars: 4e4,
|
|
2354
|
+
// == eleven_flash_v2_5 (functionally equivalent)
|
|
2355
|
+
languages: TTS_LANGS_FLASH_V25
|
|
2356
|
+
}
|
|
2266
2357
|
},
|
|
2267
2358
|
"elevenlabs-multilingual": {
|
|
2268
2359
|
id: "elevenlabs-multilingual",
|
|
@@ -2273,7 +2364,16 @@ var AUDIO_MODELS = {
|
|
|
2273
2364
|
series: "ElevenLabs",
|
|
2274
2365
|
description: "Multi-language ElevenLabs TTS via the direct ElevenLabs API.",
|
|
2275
2366
|
useCases: ["tts", "multilingual"],
|
|
2276
|
-
pricing: [{ identifier: "elevenlabs-multilingual", credits: 30, note: "per 1K chars" }]
|
|
2367
|
+
pricing: [{ identifier: "elevenlabs-multilingual", credits: 30, note: "per 1K chars" }],
|
|
2368
|
+
tts: {
|
|
2369
|
+
audioTags: false,
|
|
2370
|
+
ssmlBreaks: true,
|
|
2371
|
+
levers: TTS_LEVERS_V2,
|
|
2372
|
+
// The API reference: "This parameter is not supported for multilingual_v2 models."
|
|
2373
|
+
languageCode: false,
|
|
2374
|
+
maxChars: 1e4,
|
|
2375
|
+
languages: TTS_LANGS_MULTILINGUAL_V2
|
|
2376
|
+
}
|
|
2277
2377
|
},
|
|
2278
2378
|
"elevenlabs-dialogue": {
|
|
2279
2379
|
id: "elevenlabs-dialogue",
|
|
@@ -2288,7 +2388,17 @@ var AUDIO_MODELS = {
|
|
|
2288
2388
|
description: "Multi-speaker dialogue via the direct ElevenLabs API \u2014 give it a script, it voices each role (any voice: premade, library, or cloned).",
|
|
2289
2389
|
useCases: ["tts", "dialogue", "multi-speaker"],
|
|
2290
2390
|
features: ["audio-tags", "voice-cloning"],
|
|
2291
|
-
pricing: [{ identifier: "elevenlabs-dialogue", credits: 25, note: "per 1K chars" }]
|
|
2391
|
+
pricing: [{ identifier: "elevenlabs-dialogue", credits: 25, note: "per 1K chars" }],
|
|
2392
|
+
tts: {
|
|
2393
|
+
audioTags: true,
|
|
2394
|
+
ssmlBreaks: false,
|
|
2395
|
+
levers: ["stability"],
|
|
2396
|
+
languageCode: true,
|
|
2397
|
+
// Total across lines. The documented 2,000 is a recommendation, not a
|
|
2398
|
+
// limit (2,500 and 5,000 both probed 200); capped like v3, the model underneath.
|
|
2399
|
+
maxChars: 5e3,
|
|
2400
|
+
languages: TTS_LANGS_V3
|
|
2401
|
+
}
|
|
2292
2402
|
},
|
|
2293
2403
|
// ── ElevenLabs voice utilities ──
|
|
2294
2404
|
// (voice cloning was retired platform-wide on 2026-09-15 — no catalog entry,
|
|
@@ -2404,7 +2514,15 @@ var AUDIO_MODELS = {
|
|
|
2404
2514
|
series: "ElevenLabs",
|
|
2405
2515
|
description: "Generate short sound effects from a text prompt.",
|
|
2406
2516
|
useCases: ["sfx", "ambient"],
|
|
2407
|
-
|
|
2517
|
+
// Priced per whole second asked for (`elevenlabs-sfx:<n>s`, 1–30 s, rounded
|
|
2518
|
+
// up — textToAudioCreditId); representative rows, every second has its own.
|
|
2519
|
+
// First row = the default variant (a request with no duration bills 5 s).
|
|
2520
|
+
pricing: [
|
|
2521
|
+
{ identifier: "elevenlabs-sfx:5s", credits: 5, note: "5s \u2014 also the price when no duration is set; 1 credit per second, rounded up" },
|
|
2522
|
+
{ identifier: "elevenlabs-sfx:1s", credits: 1, note: "1s (min)" },
|
|
2523
|
+
{ identifier: "elevenlabs-sfx:10s", credits: 10, note: "10s" },
|
|
2524
|
+
{ identifier: "elevenlabs-sfx:30s", credits: 30, note: "30s (max)" }
|
|
2525
|
+
]
|
|
2408
2526
|
},
|
|
2409
2527
|
// ── Suno music ──
|
|
2410
2528
|
"suno": {
|
|
@@ -2708,6 +2826,14 @@ function nearestAspectRatio(token, allowed) {
|
|
|
2708
2826
|
}
|
|
2709
2827
|
return best;
|
|
2710
2828
|
}
|
|
2829
|
+
function fitAspectRatioToModel(modelId, ratio) {
|
|
2830
|
+
const token = ratio.trim();
|
|
2831
|
+
const allowed = MODEL_CATALOG[modelId]?.aspectRatios;
|
|
2832
|
+
if (!allowed?.length || token === "" || PASSTHROUGH_ASPECT_TOKENS.has(token.toLowerCase())) return token;
|
|
2833
|
+
const exact = allowed.find((a) => a === token) ?? allowed.find((a) => a.toLowerCase() === token.toLowerCase());
|
|
2834
|
+
if (exact !== void 0) return exact;
|
|
2835
|
+
return nearestAspectRatio(token, allowed.filter((a) => !PASSTHROUGH_ASPECT_TOKENS.has(a.toLowerCase()))) ?? allowed[0];
|
|
2836
|
+
}
|
|
2711
2837
|
function readOptionToken(value) {
|
|
2712
2838
|
if (value === void 0 || value === null) return void 0;
|
|
2713
2839
|
const s = (typeof value === "string" ? value : String(value)).trim();
|
|
@@ -2720,20 +2846,16 @@ function normalizeVideoRequestParams(modelId, input) {
|
|
|
2720
2846
|
const out = { aspectRatio: aspect, resolution: res, adjustments: [] };
|
|
2721
2847
|
if (!m) return out;
|
|
2722
2848
|
if (m.aspectRatios?.length && aspect && !PASSTHROUGH_ASPECT_TOKENS.has(aspect.toLowerCase())) {
|
|
2723
|
-
const
|
|
2724
|
-
|
|
2725
|
-
if (exact !== void 0) {
|
|
2726
|
-
out.aspectRatio = exact;
|
|
2727
|
-
} else {
|
|
2728
|
-
const next = nearestAspectRatio(aspect, allowed.filter((a) => !PASSTHROUGH_ASPECT_TOKENS.has(a.toLowerCase()))) ?? allowed[0];
|
|
2849
|
+
const next = fitAspectRatioToModel(modelId, aspect);
|
|
2850
|
+
if (next.toLowerCase() !== aspect.toLowerCase()) {
|
|
2729
2851
|
out.adjustments.push({
|
|
2730
2852
|
field: "aspectRatio",
|
|
2731
2853
|
from: aspect,
|
|
2732
2854
|
to: next,
|
|
2733
|
-
reason: `${m.label} does not support aspect ratio "${aspect}" \u2014 using "${next}" instead. Supported: ${
|
|
2855
|
+
reason: `${m.label} does not support aspect ratio "${aspect}" \u2014 using "${next}" instead. Supported: ${m.aspectRatios.join(", ")}.`
|
|
2734
2856
|
});
|
|
2735
|
-
out.aspectRatio = next;
|
|
2736
2857
|
}
|
|
2858
|
+
out.aspectRatio = next;
|
|
2737
2859
|
}
|
|
2738
2860
|
if (m.resolutions?.length && res) {
|
|
2739
2861
|
const allowed = m.resolutions;
|
|
@@ -3058,18 +3180,12 @@ function getMaxNegativePromptChars(provider) {
|
|
|
3058
3180
|
return provider && MAX_NEGATIVE_PROMPT_CHARS_BY_PROVIDER[provider] || NEGATIVE_PROMPT_MAX;
|
|
3059
3181
|
}
|
|
3060
3182
|
var TTS_TEXT_MAX = 5e3;
|
|
3061
|
-
var MAX_TTS_CHARS_BY_PROVIDER =
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
"elevenlabs-multilingual": 1e4,
|
|
3065
|
-
// eleven_multilingual_v2
|
|
3066
|
-
"elevenlabs-v3": 5e3,
|
|
3067
|
-
// official cap (probed: 5,200 chars accepted; keep the clamp)
|
|
3068
|
-
"elevenlabs-dialogue": 5e3
|
|
3069
|
-
// total across lines; ≤2,000 recommended for best quality
|
|
3070
|
-
};
|
|
3183
|
+
var MAX_TTS_CHARS_BY_PROVIDER = Object.fromEntries(
|
|
3184
|
+
Object.values(MODEL_CATALOG).filter((m) => m.tts !== void 0).map((m) => [m.id, m.tts.maxChars])
|
|
3185
|
+
);
|
|
3071
3186
|
function getMaxTtsChars(provider) {
|
|
3072
|
-
|
|
3187
|
+
const cap = provider && Object.hasOwn(MAX_TTS_CHARS_BY_PROVIDER, provider) ? MAX_TTS_CHARS_BY_PROVIDER[provider] : void 0;
|
|
3188
|
+
return cap || TTS_TEXT_MAX;
|
|
3073
3189
|
}
|
|
3074
3190
|
var SUNO_TITLE_MAX = 80;
|
|
3075
3191
|
function getMaxSunoPromptChars(model, customMode) {
|
|
@@ -3626,6 +3742,7 @@ var MOTION_TRANSFER_PROVIDERS = [
|
|
|
3626
3742
|
];
|
|
3627
3743
|
var TTS_PROVIDERS = [
|
|
3628
3744
|
"elevenlabs-v3",
|
|
3745
|
+
"elevenlabs-v4",
|
|
3629
3746
|
"elevenlabs-turbo",
|
|
3630
3747
|
"elevenlabs-multilingual",
|
|
3631
3748
|
"elevenlabs"
|
|
@@ -3635,6 +3752,7 @@ var TEXT_TO_AUDIO_PROVIDERS = [
|
|
|
3635
3752
|
// "tangoflux",
|
|
3636
3753
|
"elevenlabs-sfx"
|
|
3637
3754
|
];
|
|
3755
|
+
var DEFAULT_TEXT_TO_AUDIO_PROVIDER = "elevenlabs-sfx";
|
|
3638
3756
|
var MUSIC_PROVIDERS = [
|
|
3639
3757
|
// Replicate disabled
|
|
3640
3758
|
// "musicgen",
|
|
@@ -3648,6 +3766,14 @@ var MUSIC_PROVIDERS = [
|
|
|
3648
3766
|
// "lyria",
|
|
3649
3767
|
// "bark",
|
|
3650
3768
|
];
|
|
3769
|
+
var DEFAULT_MUSIC_PROVIDER = "minimax";
|
|
3770
|
+
var MUSIC_PROVIDER_LABELS = {
|
|
3771
|
+
minimax: "MiniMax Music"
|
|
3772
|
+
};
|
|
3773
|
+
var MUSIC_CREDIT_ID = "generate-music";
|
|
3774
|
+
function resolveMusicProvider(value) {
|
|
3775
|
+
return MUSIC_PROVIDERS.includes(value) ? value : DEFAULT_MUSIC_PROVIDER;
|
|
3776
|
+
}
|
|
3651
3777
|
var TRANSCRIBE_PROVIDERS = [
|
|
3652
3778
|
"elevenlabs-stt",
|
|
3653
3779
|
"whisper",
|
|
@@ -5192,6 +5318,12 @@ var SUNO_SELECT_OPERATIONS = [
|
|
|
5192
5318
|
"suno-add-vocals",
|
|
5193
5319
|
"suno-upload-extend"
|
|
5194
5320
|
];
|
|
5321
|
+
function speedRampCreditId(quality) {
|
|
5322
|
+
return quality === "smooth" ? "speed-ramp:smooth" : "speed-ramp";
|
|
5323
|
+
}
|
|
5324
|
+
function applyEdlCreditId(quality) {
|
|
5325
|
+
return quality === "proxy" ? "apply-edl:proxy" : "apply-edl";
|
|
5326
|
+
}
|
|
5195
5327
|
function sunoCreditType(model, operation) {
|
|
5196
5328
|
if (!SUNO_VERSION_PRICED_OPERATIONS.includes(operation)) {
|
|
5197
5329
|
return operation;
|
|
@@ -5208,20 +5340,25 @@ var SUNO_VERSION_CREDIT_KEYS = {
|
|
|
5208
5340
|
|
|
5209
5341
|
// src/credit-estimators/video-utils.ts
|
|
5210
5342
|
var VIDEO_UTIL_PRICING = {
|
|
5211
|
-
/**
|
|
5212
|
-
|
|
5213
|
-
/**
|
|
5343
|
+
/** Base credits per pricing unit. The node's own `model_pricing` row is one unit. */
|
|
5344
|
+
CREDIT_UNIT: 10,
|
|
5345
|
+
/** Base credits per 5 seconds of output (one unit), ceiling. */
|
|
5346
|
+
CREDITS_PER_5_SEC: 10,
|
|
5347
|
+
/** Smart-loop-cut work scales at one unit per ~24 frames searched. */
|
|
5214
5348
|
FRAMES_PER_CREDIT: 24,
|
|
5215
5349
|
/** Used when an upstream node hasn't produced a measurable duration yet. */
|
|
5216
5350
|
FALLBACK_DURATION_SECONDS: 8
|
|
5217
5351
|
};
|
|
5352
|
+
function unitsToCredits(units) {
|
|
5353
|
+
return VIDEO_UTIL_PRICING.CREDIT_UNIT * Math.max(1, units);
|
|
5354
|
+
}
|
|
5218
5355
|
function estimateLoopVideoCredits(data, upstreamDuration) {
|
|
5219
5356
|
const fallback = VIDEO_UTIL_PRICING.FALLBACK_DURATION_SECONDS;
|
|
5220
5357
|
const inputDuration = upstreamDuration ?? fallback;
|
|
5221
5358
|
const output = data.mode === "duration" ? data.targetDuration ?? fallback : (data.repeatCount ?? 2) * inputDuration;
|
|
5222
5359
|
const base = Math.ceil(output / 5);
|
|
5223
5360
|
const cut = data.smartLoopCutBeforeRepeat ? Math.ceil((data.smartLoopCutLookback ?? 16) / VIDEO_UTIL_PRICING.FRAMES_PER_CREDIT) : 0;
|
|
5224
|
-
return
|
|
5361
|
+
return unitsToCredits(base + cut);
|
|
5225
5362
|
}
|
|
5226
5363
|
function estimateTrimVideoCredits(data, upstreamDuration) {
|
|
5227
5364
|
const fallback = VIDEO_UTIL_PRICING.FALLBACK_DURATION_SECONDS;
|
|
@@ -5229,31 +5366,31 @@ function estimateTrimVideoCredits(data, upstreamDuration) {
|
|
|
5229
5366
|
if (data.trimMode === "smart-loop-cut") {
|
|
5230
5367
|
const base = Math.ceil(inputDuration / 5);
|
|
5231
5368
|
const cut = Math.ceil((data.smartLoopCutLookback ?? 16) / VIDEO_UTIL_PRICING.FRAMES_PER_CREDIT);
|
|
5232
|
-
return
|
|
5369
|
+
return unitsToCredits(base + cut);
|
|
5233
5370
|
}
|
|
5234
5371
|
if (data.trimMode === "frames") {
|
|
5235
5372
|
const startSec = (data.trimStartFrames ?? 0) / VIDEO_UTIL_PRICING.FRAMES_PER_CREDIT;
|
|
5236
5373
|
const endSec = (data.trimEndFrames ?? 0) / VIDEO_UTIL_PRICING.FRAMES_PER_CREDIT;
|
|
5237
5374
|
const output2 = Math.max(0, inputDuration - startSec - endSec);
|
|
5238
|
-
return
|
|
5375
|
+
return unitsToCredits(Math.ceil(output2 / 5));
|
|
5239
5376
|
}
|
|
5240
5377
|
if (data.trimMode === "seconds") {
|
|
5241
5378
|
const output2 = Math.max(0, inputDuration - (data.trimStartSeconds ?? 0) - (data.trimEndSeconds ?? 0));
|
|
5242
|
-
return
|
|
5379
|
+
return unitsToCredits(Math.ceil(output2 / 5));
|
|
5243
5380
|
}
|
|
5244
5381
|
if (data.trimMode === "keep-first-seconds") {
|
|
5245
5382
|
const output2 = Math.min(inputDuration, Math.max(0, data.keepFirstSeconds ?? 0));
|
|
5246
|
-
return
|
|
5383
|
+
return unitsToCredits(Math.ceil(output2 / 5));
|
|
5247
5384
|
}
|
|
5248
5385
|
if (data.trimMode === "keep-last-seconds") {
|
|
5249
5386
|
const output2 = Math.min(inputDuration, Math.max(0, data.keepLastSeconds ?? 0));
|
|
5250
|
-
return
|
|
5387
|
+
return unitsToCredits(Math.ceil(output2 / 5));
|
|
5251
5388
|
}
|
|
5252
5389
|
const output = (data.endTime ?? 0) - (data.startTime ?? 0);
|
|
5253
|
-
return
|
|
5390
|
+
return unitsToCredits(Math.ceil(output / 5));
|
|
5254
5391
|
}
|
|
5255
5392
|
function estimateCombineVideosCredits(data, upstreamDurations) {
|
|
5256
|
-
if (upstreamDurations.length === 0) return 1;
|
|
5393
|
+
if (upstreamDurations.length === 0) return unitsToCredits(1);
|
|
5257
5394
|
const fallback = VIDEO_UTIL_PRICING.FALLBACK_DURATION_SECONDS;
|
|
5258
5395
|
const n = upstreamDurations.length;
|
|
5259
5396
|
let total = 0;
|
|
@@ -5267,15 +5404,17 @@ function estimateCombineVideosCredits(data, upstreamDurations) {
|
|
|
5267
5404
|
total -= trimSecPerClip * n;
|
|
5268
5405
|
const base = Math.ceil(Math.max(0, total) / 5);
|
|
5269
5406
|
const inputAdder = Math.max(0, n - 2);
|
|
5270
|
-
return
|
|
5407
|
+
return unitsToCredits(base + inputAdder);
|
|
5271
5408
|
}
|
|
5272
5409
|
function estimateLoopTrimAddonCredits(loopTrim, outputDurationSeconds) {
|
|
5273
5410
|
if (!loopTrim?.enabled) return 0;
|
|
5274
5411
|
const frames = Math.max(1, Math.min(loopTrim.framesToTest ?? 16, 64));
|
|
5275
|
-
return
|
|
5412
|
+
return unitsToCredits(
|
|
5413
|
+
Math.ceil(outputDurationSeconds / 5) + Math.ceil(frames / VIDEO_UTIL_PRICING.FRAMES_PER_CREDIT)
|
|
5414
|
+
);
|
|
5276
5415
|
}
|
|
5277
5416
|
function assembleNarratedVideoCredits(blockCount) {
|
|
5278
|
-
return 3 + Math.ceil(blockCount / 6);
|
|
5417
|
+
return unitsToCredits(3 + Math.ceil(blockCount / 6));
|
|
5279
5418
|
}
|
|
5280
5419
|
|
|
5281
5420
|
// src/image-overlay-platforms.ts
|
|
@@ -5335,6 +5474,73 @@ function imageOverlayCredits(variants) {
|
|
|
5335
5474
|
return IMAGE_OVERLAY_BASE_CREDITS + IMAGE_OVERLAY_VARIANT_CREDITS * imageOverlayBillableVariants(variants).length;
|
|
5336
5475
|
}
|
|
5337
5476
|
|
|
5477
|
+
// src/credit-estimators/video-sfx.ts
|
|
5478
|
+
var VIDEO_SFX_PRICING = {
|
|
5479
|
+
/** The longest input video a run accepts, in seconds. */
|
|
5480
|
+
MAX_DURATION_SEC: 300,
|
|
5481
|
+
/** The length priced (and generated) when the input video cannot be measured. */
|
|
5482
|
+
FALLBACK_DURATION_SEC: 8
|
|
5483
|
+
};
|
|
5484
|
+
var VIDEO_SFX_BUCKETS = [
|
|
5485
|
+
{ upToSec: 8, creditId: "replicate-mmaudio:8s" },
|
|
5486
|
+
{ upToSec: 15, creditId: "replicate-mmaudio:15s" },
|
|
5487
|
+
{ upToSec: 30, creditId: "replicate-mmaudio:30s" },
|
|
5488
|
+
{ upToSec: 60, creditId: "replicate-mmaudio:60s" },
|
|
5489
|
+
{ upToSec: 120, creditId: "replicate-mmaudio:120s" },
|
|
5490
|
+
{ upToSec: 300, creditId: "replicate-mmaudio:300s" }
|
|
5491
|
+
];
|
|
5492
|
+
function videoSfxCreditId(durationSec) {
|
|
5493
|
+
const seconds = typeof durationSec === "number" && Number.isFinite(durationSec) && durationSec > 0 ? durationSec : VIDEO_SFX_PRICING.FALLBACK_DURATION_SEC;
|
|
5494
|
+
const bucket = VIDEO_SFX_BUCKETS.find((b) => seconds <= b.upToSec) ?? VIDEO_SFX_BUCKETS[VIDEO_SFX_BUCKETS.length - 1];
|
|
5495
|
+
return bucket.creditId;
|
|
5496
|
+
}
|
|
5497
|
+
|
|
5498
|
+
// src/credit-estimators/text-to-audio.ts
|
|
5499
|
+
var TEXT_TO_AUDIO_PRICING = {
|
|
5500
|
+
/** The engine priced per second of requested audio. */
|
|
5501
|
+
PER_SECOND_PROVIDER: "elevenlabs-sfx",
|
|
5502
|
+
/** The longest clip a request may ask for, in seconds. */
|
|
5503
|
+
MAX_DURATION_SEC: 30,
|
|
5504
|
+
/** The length priced when a request names none (the model picks the length). */
|
|
5505
|
+
DEFAULT_BILLED_SEC: 5
|
|
5506
|
+
};
|
|
5507
|
+
var TEXT_TO_AUDIO_SFX_CREDIT_IDS = Array.from(
|
|
5508
|
+
{ length: TEXT_TO_AUDIO_PRICING.MAX_DURATION_SEC },
|
|
5509
|
+
(_, i) => `${TEXT_TO_AUDIO_PRICING.PER_SECOND_PROVIDER}:${i + 1}s`
|
|
5510
|
+
);
|
|
5511
|
+
function textToAudioBilledSeconds(duration) {
|
|
5512
|
+
const seconds = typeof duration === "number" ? duration : typeof duration === "string" && duration.trim() !== "" ? Number(duration) : Number.NaN;
|
|
5513
|
+
if (!Number.isFinite(seconds) || seconds <= 0) return TEXT_TO_AUDIO_PRICING.DEFAULT_BILLED_SEC;
|
|
5514
|
+
return Math.min(Math.ceil(seconds), TEXT_TO_AUDIO_PRICING.MAX_DURATION_SEC);
|
|
5515
|
+
}
|
|
5516
|
+
function textToAudioCreditId(provider, duration) {
|
|
5517
|
+
const engine = provider || DEFAULT_TEXT_TO_AUDIO_PROVIDER;
|
|
5518
|
+
if (engine !== TEXT_TO_AUDIO_PRICING.PER_SECOND_PROVIDER) return engine;
|
|
5519
|
+
return `${engine}:${textToAudioBilledSeconds(duration)}s`;
|
|
5520
|
+
}
|
|
5521
|
+
|
|
5522
|
+
// src/credit-estimators/ltx-extend.ts
|
|
5523
|
+
var LTX_EXTEND_PER_SECOND_CREDIT_ID = "ltx-2.3-pro-extend:per-second";
|
|
5524
|
+
var LTX_EXTEND_DURATION = {
|
|
5525
|
+
MIN_SEC: 1,
|
|
5526
|
+
MAX_SEC: 20,
|
|
5527
|
+
DEFAULT_SEC: 6
|
|
5528
|
+
};
|
|
5529
|
+
function ltxExtendDurationSec(raw) {
|
|
5530
|
+
const n = typeof raw === "number" ? raw : typeof raw === "string" && raw.trim() !== "" ? Number(raw) : Number.NaN;
|
|
5531
|
+
if (!Number.isFinite(n)) return LTX_EXTEND_DURATION.DEFAULT_SEC;
|
|
5532
|
+
return Math.min(LTX_EXTEND_DURATION.MAX_SEC, Math.max(LTX_EXTEND_DURATION.MIN_SEC, Math.round(n)));
|
|
5533
|
+
}
|
|
5534
|
+
|
|
5535
|
+
// src/credit-estimators/ltx-retake.ts
|
|
5536
|
+
var LTX_RETAKE_PER_SECOND_CREDIT_ID = "ltx-2.3-pro-retake:per-second";
|
|
5537
|
+
var LTX_RETAKE_MIN_DURATION_SEC = 2;
|
|
5538
|
+
function ltxRetakeDurationSec(raw) {
|
|
5539
|
+
const n = typeof raw === "number" ? raw : typeof raw === "string" && raw.trim() !== "" ? Number(raw) : Number.NaN;
|
|
5540
|
+
if (!Number.isFinite(n) || n <= 0) return LTX_RETAKE_MIN_DURATION_SEC;
|
|
5541
|
+
return Math.max(LTX_RETAKE_MIN_DURATION_SEC, n);
|
|
5542
|
+
}
|
|
5543
|
+
|
|
5338
5544
|
// src/video-duration.ts
|
|
5339
5545
|
function extractVideoDurationFromNode(data) {
|
|
5340
5546
|
if (!data) return void 0;
|
|
@@ -5597,8 +5803,73 @@ var FAN_OUT_EACH_TYPES = /* @__PURE__ */ new Set([
|
|
|
5597
5803
|
// for which the list extractors return undefined, so an "each" edge falls back
|
|
5598
5804
|
// to the scalar `edl` value (no fan-out) — the same graceful degradation
|
|
5599
5805
|
// web-scrape relies on. See `unwrapEditPlanOutput` in `edit-plan-contract.ts`.
|
|
5600
|
-
"edit-plan"
|
|
5806
|
+
"edit-plan",
|
|
5807
|
+
// Content Ideas emits one creative brief per idea on `listResults`, so an
|
|
5808
|
+
// edge leaving it defaults to "each" — the node after it (typically
|
|
5809
|
+
// Generate Script) runs once per idea, on the server too.
|
|
5810
|
+
"content-ideas"
|
|
5601
5811
|
]);
|
|
5812
|
+
var FAN_OUT_EACH_HANDLES = {
|
|
5813
|
+
// Camera Switch run once per clip (Edit Plan in clips mode): each clip's
|
|
5814
|
+
// switched EDL is its own Apply EDL render. Its transcript is the same for
|
|
5815
|
+
// every clip (the master clock, renamed), so that handle stays one value
|
|
5816
|
+
// (decided 2026-10-04).
|
|
5817
|
+
"camera-switch": { each: ["edl"], primary: "edl" }
|
|
5818
|
+
};
|
|
5819
|
+
function defaultEdgeOutputMode(sourceType, sourceHandle) {
|
|
5820
|
+
if (typeof sourceType !== "string") return "last";
|
|
5821
|
+
if (FAN_OUT_EACH_TYPES.has(sourceType)) return "each";
|
|
5822
|
+
const entry = FAN_OUT_EACH_HANDLES[sourceType];
|
|
5823
|
+
if (!entry) return "last";
|
|
5824
|
+
return entry.each.includes(sourceHandle || entry.primary) ? "each" : "last";
|
|
5825
|
+
}
|
|
5826
|
+
function listResultsServeHandle(sourceType, sourceHandle) {
|
|
5827
|
+
const entry = typeof sourceType === "string" ? FAN_OUT_EACH_HANDLES[sourceType] : void 0;
|
|
5828
|
+
return !entry || entry.each.includes(sourceHandle || entry.primary);
|
|
5829
|
+
}
|
|
5830
|
+
var FAN_IN_TARGETS = {
|
|
5831
|
+
// Choose Best — every wire is a candidate.
|
|
5832
|
+
reduce: "*",
|
|
5833
|
+
// Content Ideas — one or more recipes, from several Content Recipe nodes
|
|
5834
|
+
// and/or one that ran once per post.
|
|
5835
|
+
"content-ideas": ["recipes"],
|
|
5836
|
+
// Telegram Reply — one message per run, whatever is wired into its text
|
|
5837
|
+
// input: a list (or a writer that ran once per item) arrives as one
|
|
5838
|
+
// message, never as a burst of sends to the owner's chat.
|
|
5839
|
+
"telegram-account-send": ["in"]
|
|
5840
|
+
};
|
|
5841
|
+
function isFanInNodeType(nodeType) {
|
|
5842
|
+
return typeof nodeType === "string" && Object.prototype.hasOwnProperty.call(FAN_IN_TARGETS, nodeType);
|
|
5843
|
+
}
|
|
5844
|
+
function isFanInEdge(targetType, targetHandle) {
|
|
5845
|
+
if (!isFanInNodeType(targetType)) return false;
|
|
5846
|
+
const spec = FAN_IN_TARGETS[targetType];
|
|
5847
|
+
if (spec === "*") return true;
|
|
5848
|
+
return targetHandle == null || targetHandle === "" || spec.includes(targetHandle);
|
|
5849
|
+
}
|
|
5850
|
+
|
|
5851
|
+
// src/exposed-field-keys.ts
|
|
5852
|
+
var LEGACY_EXPOSED_FIELD_KEYS = {
|
|
5853
|
+
// Published as the Text to Speech slider's key. The node's data field, and every runner, route and config
|
|
5854
|
+
// panel, has always been `similarityBoost` — so the slider moved nothing.
|
|
5855
|
+
"text-to-speech": { similarity: "similarityBoost" }
|
|
5856
|
+
};
|
|
5857
|
+
function canonicalExposedFieldKey(nodeType, key) {
|
|
5858
|
+
if (typeof nodeType !== "string" || !Object.hasOwn(LEGACY_EXPOSED_FIELD_KEYS, nodeType)) return key;
|
|
5859
|
+
const renames = LEGACY_EXPOSED_FIELD_KEYS[nodeType];
|
|
5860
|
+
return Object.hasOwn(renames, key) ? renames[key] : key;
|
|
5861
|
+
}
|
|
5862
|
+
function canonicalizeOverrideKeys(nodeType, overrides) {
|
|
5863
|
+
let out;
|
|
5864
|
+
for (const key of Object.keys(overrides)) {
|
|
5865
|
+
const current = canonicalExposedFieldKey(nodeType, key);
|
|
5866
|
+
if (current === key) continue;
|
|
5867
|
+
out ??= { ...overrides };
|
|
5868
|
+
delete out[key];
|
|
5869
|
+
if (!Object.hasOwn(overrides, current)) out[current] = overrides[key];
|
|
5870
|
+
}
|
|
5871
|
+
return out ?? overrides;
|
|
5872
|
+
}
|
|
5602
5873
|
|
|
5603
5874
|
// src/presentation-utils.ts
|
|
5604
5875
|
var INPUT_NODE_TYPES = /* @__PURE__ */ new Set([
|
|
@@ -5902,7 +6173,7 @@ var MEDIA_INPUT_FIELD_TYPES = /* @__PURE__ */ new Set([
|
|
|
5902
6173
|
"audio-url"
|
|
5903
6174
|
]);
|
|
5904
6175
|
function mergeNodeInputOverrides(nodeType, data, overrides) {
|
|
5905
|
-
const merged = { ...data, ...overrides };
|
|
6176
|
+
const merged = { ...data, ...canonicalizeOverrideKeys(nodeType, overrides) };
|
|
5906
6177
|
const schema = nodeType ? INPUT_FIELD_MAP[nodeType] : void 0;
|
|
5907
6178
|
if (schema && MEDIA_INPUT_FIELD_TYPES.has(schema.type) && schema.key in overrides && overrides[schema.key] !== data[schema.key] && !("metadata" in overrides)) {
|
|
5908
6179
|
delete merged.metadata;
|
|
@@ -6559,7 +6830,12 @@ var LLM_FEATURE_DEFAULTS = {
|
|
|
6559
6830
|
"translate": "gemini-3.6-flash",
|
|
6560
6831
|
"image-critic": "claude-sonnet-4.6",
|
|
6561
6832
|
"pick-best-llm": "claude-sonnet-4.6",
|
|
6562
|
-
"workflow-copilot": "claude-sonnet-5"
|
|
6833
|
+
"workflow-copilot": "claude-sonnet-5",
|
|
6834
|
+
// Both economy on purpose — measured: ten ideas in Hebrew took ~1 min here
|
|
6835
|
+
// and ~3.5 min (two calls) on claude-sonnet-4.6. The private plugin keeps
|
|
6836
|
+
// the same two defaults for API callers that omit the model.
|
|
6837
|
+
"content-recipe": "gemini-3.6-flash",
|
|
6838
|
+
"content-ideas": "gemini-3.6-flash"
|
|
6563
6839
|
};
|
|
6564
6840
|
var LLM_MODALITY_CAPS = {
|
|
6565
6841
|
"gemini-3-flash": { image: true, video: true, audio: true },
|
|
@@ -8348,11 +8624,16 @@ var NON_PROMPT_TEXT_LANES = {
|
|
|
8348
8624
|
negative: "*",
|
|
8349
8625
|
"system-prompt": "*",
|
|
8350
8626
|
script: ["ai-avatar"],
|
|
8351
|
-
transcript: ["add-captions", "apply-edl", "edit-plan"],
|
|
8352
|
-
edl: ["apply-edl"],
|
|
8627
|
+
transcript: ["add-captions", "apply-edl", "edit-plan", "camera-switch"],
|
|
8628
|
+
edl: ["apply-edl", "camera-switch"],
|
|
8353
8629
|
silence: ["edit-plan"],
|
|
8630
|
+
offsets: ["edit-plan"],
|
|
8354
8631
|
qrText: ["image-overlay"],
|
|
8355
|
-
transition: ["slideshow"]
|
|
8632
|
+
transition: ["slideshow"],
|
|
8633
|
+
// Content Recipe's `link` carries the post's address (inputs.sourceLink), not
|
|
8634
|
+
// the material it analyzes — a list of links fanned through it must not be
|
|
8635
|
+
// written into the material too.
|
|
8636
|
+
link: ["content-recipe"]
|
|
8356
8637
|
};
|
|
8357
8638
|
function fanOutTextFeedsPrompt(nodeType, targetHandle) {
|
|
8358
8639
|
const scope = Object.hasOwn(NON_PROMPT_TEXT_LANES, targetHandle ?? "") ? NON_PROMPT_TEXT_LANES[targetHandle ?? ""] : void 0;
|
|
@@ -8502,6 +8783,10 @@ var PARAMETER_NODE_TYPES = /* @__PURE__ */ new Set([
|
|
|
8502
8783
|
"scene-count",
|
|
8503
8784
|
"duration",
|
|
8504
8785
|
"aspect-ratio",
|
|
8786
|
+
// Generation Settings "Provider": a model id read from data at run time, like
|
|
8787
|
+
// duration / aspect-ratio (it used to be only a SKIP node, so a server run
|
|
8788
|
+
// could not read it at all).
|
|
8789
|
+
"provider",
|
|
8505
8790
|
"music-genre",
|
|
8506
8791
|
"music-mood",
|
|
8507
8792
|
"instrumentation",
|
|
@@ -8509,17 +8794,18 @@ var PARAMETER_NODE_TYPES = /* @__PURE__ */ new Set([
|
|
|
8509
8794
|
"voice-delivery"
|
|
8510
8795
|
]);
|
|
8511
8796
|
var HINT_EXEMPT_PARAMETER_TYPES = /* @__PURE__ */ new Set([
|
|
8512
|
-
"motion",
|
|
8513
8797
|
"scene-count",
|
|
8514
8798
|
"duration",
|
|
8515
|
-
"aspect-ratio"
|
|
8799
|
+
"aspect-ratio",
|
|
8800
|
+
"provider"
|
|
8516
8801
|
]);
|
|
8517
8802
|
var VIDEO_ONLY_PARAMETER_NODE_TYPES = /* @__PURE__ */ new Set([
|
|
8518
8803
|
"camera-motion",
|
|
8519
8804
|
"temporal",
|
|
8520
8805
|
"transition",
|
|
8521
8806
|
"character-fx",
|
|
8522
|
-
"character-motion"
|
|
8807
|
+
"character-motion",
|
|
8808
|
+
"motion"
|
|
8523
8809
|
]);
|
|
8524
8810
|
var EXECUTION_GRAPH_COMPOSED_PARAMETER_TYPES = /* @__PURE__ */ new Set([
|
|
8525
8811
|
"camera-motion",
|
|
@@ -8632,6 +8918,8 @@ function getParameterValue(data, nodeType) {
|
|
|
8632
8918
|
return data.seconds != null ? String(data.seconds) : void 0;
|
|
8633
8919
|
case "aspect-ratio":
|
|
8634
8920
|
return trim(data.ratio);
|
|
8921
|
+
case "provider":
|
|
8922
|
+
return trim(data.provider);
|
|
8635
8923
|
default:
|
|
8636
8924
|
return void 0;
|
|
8637
8925
|
}
|
|
@@ -9494,9 +9782,161 @@ function deriveLinkedFields(nodeType, value) {
|
|
|
9494
9782
|
return {};
|
|
9495
9783
|
}
|
|
9496
9784
|
|
|
9785
|
+
// src/settings-input.ts
|
|
9786
|
+
var SETTINGS_INPUT_HANDLE = "settings";
|
|
9787
|
+
var SETTINGS_SOURCE_FIELDS = {
|
|
9788
|
+
"aspect-ratio": "aspectRatio",
|
|
9789
|
+
duration: "duration",
|
|
9790
|
+
provider: "provider"
|
|
9791
|
+
};
|
|
9792
|
+
var SETTINGS_HINT_SOURCES = ["motion"];
|
|
9793
|
+
var SETTINGS_SOURCE_TYPES = [
|
|
9794
|
+
...Object.keys(SETTINGS_SOURCE_FIELDS),
|
|
9795
|
+
...SETTINGS_HINT_SOURCES
|
|
9796
|
+
];
|
|
9797
|
+
function fieldOf(sourceType) {
|
|
9798
|
+
return Object.prototype.hasOwnProperty.call(SETTINGS_SOURCE_FIELDS, sourceType) ? SETTINGS_SOURCE_FIELDS[sourceType] : void 0;
|
|
9799
|
+
}
|
|
9800
|
+
var VIDEO_SETTINGS = ["aspect-ratio", "duration", "provider", "motion"];
|
|
9801
|
+
var SETTINGS_CONSUMERS = {
|
|
9802
|
+
"generate-video": {
|
|
9803
|
+
accepts: VIDEO_SETTINGS,
|
|
9804
|
+
models: VIDEO_GEN_PROVIDERS,
|
|
9805
|
+
defaultModel: DEFAULT_VIDEO_PROVIDER,
|
|
9806
|
+
duration: "model"
|
|
9807
|
+
},
|
|
9808
|
+
// Generate Video Pro has Generate Video's handles by construction
|
|
9809
|
+
// (generate-video-pro-handles.ts re-exports them), so it takes the same
|
|
9810
|
+
// settings; its own models and its own duration rule.
|
|
9811
|
+
"generate-video-pro": {
|
|
9812
|
+
accepts: VIDEO_SETTINGS,
|
|
9813
|
+
models: GVP_SUPPORTED_PROVIDERS,
|
|
9814
|
+
defaultModel: GVP_DEFAULT_PROVIDER,
|
|
9815
|
+
duration: "total"
|
|
9816
|
+
},
|
|
9817
|
+
// A still image has no length, so no Duration.
|
|
9818
|
+
"generate-image": {
|
|
9819
|
+
accepts: ["aspect-ratio", "provider"],
|
|
9820
|
+
models: IMAGE_GEN_PROVIDERS,
|
|
9821
|
+
// The node's own default (NODE_DEFINITIONS) — only used to fit a wired
|
|
9822
|
+
// ratio when the node names no model.
|
|
9823
|
+
defaultModel: "nano-banana-pro",
|
|
9824
|
+
modelList: "providers"
|
|
9825
|
+
}
|
|
9826
|
+
};
|
|
9827
|
+
var SETTINGS_INPUT_CONSUMERS = Object.fromEntries(
|
|
9828
|
+
Object.entries(SETTINGS_CONSUMERS).map(([type, consumer]) => [type, consumer.accepts])
|
|
9829
|
+
);
|
|
9830
|
+
function isSettingsSourceType(type) {
|
|
9831
|
+
return typeof type === "string" && SETTINGS_SOURCE_TYPES.includes(type);
|
|
9832
|
+
}
|
|
9833
|
+
function isSettingsHintSource(type) {
|
|
9834
|
+
return typeof type === "string" && SETTINGS_HINT_SOURCES.includes(type);
|
|
9835
|
+
}
|
|
9836
|
+
function settingsInputAccepts(consumerType, sourceType) {
|
|
9837
|
+
return (SETTINGS_INPUT_CONSUMERS[consumerType] ?? []).some((t2) => t2 === sourceType);
|
|
9838
|
+
}
|
|
9839
|
+
function settingsInputFields(consumerType) {
|
|
9840
|
+
return (SETTINGS_INPUT_CONSUMERS[consumerType] ?? []).flatMap((t2) => {
|
|
9841
|
+
const field = fieldOf(t2);
|
|
9842
|
+
return field ? [field] : [];
|
|
9843
|
+
});
|
|
9844
|
+
}
|
|
9845
|
+
function settingsProviderModels(consumerType) {
|
|
9846
|
+
return SETTINGS_CONSUMERS[consumerType]?.models ?? [];
|
|
9847
|
+
}
|
|
9848
|
+
function settingsSourceForType(consumerId, consumerType, sourceType, edges, typeOf) {
|
|
9849
|
+
if (!settingsInputAccepts(consumerType, sourceType)) return void 0;
|
|
9850
|
+
let found;
|
|
9851
|
+
for (const edge of edges) {
|
|
9852
|
+
if (edge.target !== consumerId || edge.targetHandle !== SETTINGS_INPUT_HANDLE) continue;
|
|
9853
|
+
if (typeOf(edge.source) === sourceType) found = edge.source;
|
|
9854
|
+
}
|
|
9855
|
+
return found;
|
|
9856
|
+
}
|
|
9857
|
+
function settingsSourceForField(consumerId, consumerType, field, edges, typeOf) {
|
|
9858
|
+
const sourceType = (SETTINGS_INPUT_CONSUMERS[consumerType] ?? []).find((t2) => fieldOf(t2) === field);
|
|
9859
|
+
return sourceType ? settingsSourceForType(consumerId, consumerType, sourceType, edges, typeOf) : void 0;
|
|
9860
|
+
}
|
|
9861
|
+
function isSettingsHintEdge(edge, consumerType, edges, typeOf) {
|
|
9862
|
+
if (edge.targetHandle !== SETTINGS_INPUT_HANDLE) return false;
|
|
9863
|
+
const sourceType = typeOf(edge.source);
|
|
9864
|
+
if (!isSettingsHintSource(sourceType)) return false;
|
|
9865
|
+
return settingsSourceForType(edge.target, consumerType, sourceType, edges, typeOf) === edge.source;
|
|
9866
|
+
}
|
|
9867
|
+
function connectedSettingsSources(consumerId, consumerType, edges, typeOf) {
|
|
9868
|
+
const out = [];
|
|
9869
|
+
for (const sourceType of SETTINGS_INPUT_CONSUMERS[consumerType] ?? []) {
|
|
9870
|
+
const sourceId = settingsSourceForType(consumerId, consumerType, sourceType, edges, typeOf);
|
|
9871
|
+
if (!sourceId) continue;
|
|
9872
|
+
const field = fieldOf(sourceType);
|
|
9873
|
+
out.push(field ? { sourceType, field, sourceId } : { sourceType, sourceId });
|
|
9874
|
+
}
|
|
9875
|
+
return out;
|
|
9876
|
+
}
|
|
9877
|
+
function snapToModelDuration(model, seconds) {
|
|
9878
|
+
const durations = MODEL_CATALOG[model]?.durations;
|
|
9879
|
+
if (!durations || durations.length === 0 || isAutoVideoDuration(seconds)) return seconds;
|
|
9880
|
+
let best = durations[0];
|
|
9881
|
+
for (const d of durations) {
|
|
9882
|
+
const closer = Math.abs(d - seconds) < Math.abs(best - seconds);
|
|
9883
|
+
const tieShorter = Math.abs(d - seconds) === Math.abs(best - seconds) && d < best;
|
|
9884
|
+
if (closer || tieShorter) best = d;
|
|
9885
|
+
}
|
|
9886
|
+
return best;
|
|
9887
|
+
}
|
|
9888
|
+
function applySettingsInput(consumerType, consumerId, data, edges, typeOf) {
|
|
9889
|
+
const consumer = SETTINGS_CONSUMERS[consumerType];
|
|
9890
|
+
const connected = connectedSettingsSources(consumerId, consumerType, edges, typeOf);
|
|
9891
|
+
if (!consumer || connected.length === 0) return { data: { ...data } };
|
|
9892
|
+
let next = { ...data };
|
|
9893
|
+
const providerSource = connected.find((c) => c.sourceType === "provider");
|
|
9894
|
+
if (providerSource) {
|
|
9895
|
+
const value = typeof next.provider === "string" ? next.provider : "";
|
|
9896
|
+
if (!consumer.models.includes(value)) {
|
|
9897
|
+
return { data: next, problem: { kind: "provider-not-accepted", sourceId: providerSource.sourceId, value } };
|
|
9898
|
+
}
|
|
9899
|
+
if (consumer.modelList) next = { ...next, [consumer.modelList]: [value] };
|
|
9900
|
+
}
|
|
9901
|
+
const model = typeof next.provider === "string" && next.provider || consumer.defaultModel;
|
|
9902
|
+
if (consumer.duration === "model" && connected.some((c) => c.sourceType === "duration")) {
|
|
9903
|
+
const raw = next.duration;
|
|
9904
|
+
const seconds = typeof raw === "number" ? raw : typeof raw === "string" ? Number.parseInt(raw, 10) : Number.NaN;
|
|
9905
|
+
if (Number.isFinite(seconds)) next = { ...next, duration: snapToModelDuration(model, seconds) };
|
|
9906
|
+
}
|
|
9907
|
+
if (connected.some((c) => c.sourceType === "aspect-ratio") && typeof next.aspectRatio === "string") {
|
|
9908
|
+
next = { ...next, aspectRatio: fitAspectRatioToModel(model, next.aspectRatio) };
|
|
9909
|
+
}
|
|
9910
|
+
return { data: next };
|
|
9911
|
+
}
|
|
9912
|
+
function resolveWiredSettings(consumerId, consumerType, data, nodes, edges) {
|
|
9913
|
+
const byId = new Map(nodes.map((n) => [n.id, n]));
|
|
9914
|
+
const typeOf = (id) => byId.get(id)?.type;
|
|
9915
|
+
const wired = connectedSettingsSources(consumerId, consumerType, edges, typeOf).map((c) => ({
|
|
9916
|
+
...c,
|
|
9917
|
+
value: getParameterValue(byId.get(c.sourceId)?.data ?? {}, c.sourceType)
|
|
9918
|
+
}));
|
|
9919
|
+
if (wired.length === 0) return { data: { ...data }, wired };
|
|
9920
|
+
let next = { ...data };
|
|
9921
|
+
for (const w of wired) {
|
|
9922
|
+
if (w.field && w.value != null) next = { ...next, [w.field]: w.value };
|
|
9923
|
+
}
|
|
9924
|
+
const applied = applySettingsInput(consumerType, consumerId, next, edges, typeOf);
|
|
9925
|
+
return applied.problem ? { data: applied.data, wired, problem: applied.problem } : { data: applied.data, wired };
|
|
9926
|
+
}
|
|
9927
|
+
function withWiredSettings(node, nodes, edges) {
|
|
9928
|
+
const type = node.type ?? "";
|
|
9929
|
+
if (!nodes || !edges || !node.id || !SETTINGS_CONSUMERS[type]) return node;
|
|
9930
|
+
const graphNodes = nodes.flatMap((n) => n.id ? [{ id: n.id, type: n.type, data: n.data }] : []);
|
|
9931
|
+
const graphEdges = edges.map((e) => ({ source: e.source ?? "", target: e.target, targetHandle: e.targetHandle }));
|
|
9932
|
+
const { data } = resolveWiredSettings(node.id, type, node.data ?? {}, graphNodes, graphEdges);
|
|
9933
|
+
return { ...node, data };
|
|
9934
|
+
}
|
|
9935
|
+
|
|
9497
9936
|
// src/node-mappable-fields.ts
|
|
9498
9937
|
var NODE_MAPPABLE_FIELDS = {
|
|
9499
|
-
|
|
9938
|
+
// + the fields its Settings input sets (settings-input.ts).
|
|
9939
|
+
"generate-image": ["prompt", "style", "negativePrompt", ...settingsInputFields("generate-image")],
|
|
9500
9940
|
"edit-image": ["prompt", "style", "negativePrompt"],
|
|
9501
9941
|
"image-to-image": ["prompt", "style", "negativePrompt"],
|
|
9502
9942
|
"modify-image": ["prompt", "style", "negativePrompt"],
|
|
@@ -9505,10 +9945,13 @@ var NODE_MAPPABLE_FIELDS = {
|
|
|
9505
9945
|
// Unified t2v/i2v node — replaced the two deprecated keys above (kept only
|
|
9506
9946
|
// for back-compat with un-migrated workflow JSON). Mirrors text-to-video so
|
|
9507
9947
|
// fieldMappings/{} injection AND missing-ref detection work on the live node.
|
|
9508
|
-
|
|
9948
|
+
// + the fields its Settings input sets (settings-input.ts): a Generation
|
|
9949
|
+
// Settings node wired there overrides the node's own aspect ratio, duration
|
|
9950
|
+
// and model at run time, through the same resolver as a field mapping.
|
|
9951
|
+
"generate-video": ["prompt", "negativePrompt", ...settingsInputFields("generate-video")],
|
|
9509
9952
|
// Trimmed multi-segment stitch variant of generate-video — prompt only, no
|
|
9510
|
-
// negativePrompt field on the node.
|
|
9511
|
-
"generate-video-pro": ["prompt"],
|
|
9953
|
+
// negativePrompt field on the node; + the fields its Settings input sets.
|
|
9954
|
+
"generate-video-pro": ["prompt", ...settingsInputFields("generate-video-pro")],
|
|
9512
9955
|
// Span-replace sibling of generate-video-pro — prompt only, no
|
|
9513
9956
|
// negativePrompt field on the node.
|
|
9514
9957
|
"edit-video-pro": ["prompt"],
|
|
@@ -9539,7 +9982,9 @@ var NODE_MAPPABLE_FIELDS = {
|
|
|
9539
9982
|
"edit-3d-scene": ["editPrompt"],
|
|
9540
9983
|
"pro-3d-render": ["scenePrompt"],
|
|
9541
9984
|
"motion-graphics": ["motionPrompt"],
|
|
9542
|
-
|
|
9985
|
+
// Every field the panel offers a source for. Numbers arrive as text from a
|
|
9986
|
+
// Scene Count / Duration node; readScriptSettings coerces them on both engines.
|
|
9987
|
+
"generate-script": ["styleGuide", "tone", "sceneCount", "targetLength"],
|
|
9543
9988
|
"speech-to-video": ["prompt", "negativePrompt"],
|
|
9544
9989
|
"extend-video": ["prompt"],
|
|
9545
9990
|
"motion-transfer": ["prompt"],
|
|
@@ -9561,13 +10006,72 @@ var NODE_MAPPABLE_FIELDS = {
|
|
|
9561
10006
|
"location": ["locationName", "description"],
|
|
9562
10007
|
"web-scrape": ["query", "url", "target"],
|
|
9563
10008
|
"meta-ads-scrape": ["query", "pageUrls"],
|
|
9564
|
-
"instagram-scrape": ["targets"]
|
|
10009
|
+
"instagram-scrape": ["targets"],
|
|
10010
|
+
// Content Recipe's material arrives on its `in` wire and the post link on
|
|
10011
|
+
// its `link` wire (a Video URL node's page link) — only the focus is a field.
|
|
10012
|
+
"content-recipe": ["focus"],
|
|
10013
|
+
// Content Ideas folds its recipes on the `recipes` wire (FAN_IN_TARGETS);
|
|
10014
|
+
// the brand profile and the language are fields a Text node can feed.
|
|
10015
|
+
"content-ideas": ["brand", "language"],
|
|
10016
|
+
// Social Search: the keyword or account a Text node (or a List item) feeds.
|
|
10017
|
+
"social-search": ["query"]
|
|
9565
10018
|
};
|
|
9566
10019
|
var SUNO_FIELD_HANDLE_FIELDS = ["style", "lyrics", "title", "negativeStyle"];
|
|
9567
10020
|
function fieldKeyFromHandle(handleId) {
|
|
9568
10021
|
return handleId.startsWith("field-") ? handleId.slice("field-".length) : null;
|
|
9569
10022
|
}
|
|
9570
10023
|
|
|
10024
|
+
// src/oauth-scopes.ts
|
|
10025
|
+
var OAUTH_SCOPES = [
|
|
10026
|
+
"workflows:read",
|
|
10027
|
+
"workflows:write",
|
|
10028
|
+
"workflows:execute",
|
|
10029
|
+
"jobs:read",
|
|
10030
|
+
"assets:read",
|
|
10031
|
+
"assets:write",
|
|
10032
|
+
"credits:read",
|
|
10033
|
+
"apps:read",
|
|
10034
|
+
"pipelines:read",
|
|
10035
|
+
"pipelines:execute",
|
|
10036
|
+
"pipelines:approve",
|
|
10037
|
+
"presets:read",
|
|
10038
|
+
"workspaces:read",
|
|
10039
|
+
"workspaces:write"
|
|
10040
|
+
];
|
|
10041
|
+
|
|
10042
|
+
// src/recast-segment-packs.ts
|
|
10043
|
+
var RECAST_SEGMENT_PACKS = ["max", "scenes-max", "scenes"];
|
|
10044
|
+
|
|
10045
|
+
// src/script-settings.ts
|
|
10046
|
+
var SCRIPT_SCENE_COUNT_RANGE = { min: 1, max: 20 };
|
|
10047
|
+
var SCRIPT_TARGET_DURATION_RANGE = { min: 5, max: 600 };
|
|
10048
|
+
var SCRIPT_SCENE_COUNT_DEFAULT = 5;
|
|
10049
|
+
var SCRIPT_TARGET_DURATION_DEFAULT = 60;
|
|
10050
|
+
var SCRIPT_TONE_MAX_LENGTH = 200;
|
|
10051
|
+
var SCRIPT_STYLE_GUIDE_MAX_LENGTH = LLM_TEXT_INPUT_MAX;
|
|
10052
|
+
function clampInt(value, range) {
|
|
10053
|
+
const n = typeof value === "number" ? value : typeof value === "string" && value.trim().length > 0 ? Number(value) : Number.NaN;
|
|
10054
|
+
if (!Number.isFinite(n)) return void 0;
|
|
10055
|
+
return Math.min(range.max, Math.max(range.min, Math.round(n)));
|
|
10056
|
+
}
|
|
10057
|
+
function clampText(value, max) {
|
|
10058
|
+
if (typeof value !== "string") return void 0;
|
|
10059
|
+
const text = value.trim();
|
|
10060
|
+
return text.length > 0 ? text.slice(0, max) : void 0;
|
|
10061
|
+
}
|
|
10062
|
+
function readScriptSettings(data, refMap) {
|
|
10063
|
+
const styleGuide = typeof data.styleGuide === "string" && refMap && refMap.size > 0 ? resolveNodeRefs(data.styleGuide, refMap) : data.styleGuide;
|
|
10064
|
+
return {
|
|
10065
|
+
sceneCount: clampInt(data.sceneCount, SCRIPT_SCENE_COUNT_RANGE),
|
|
10066
|
+
// The panel's own fields (the ones a mapping writes) come first. `style` is
|
|
10067
|
+
// an older key for the tone, and `targetDuration` is the route's name for
|
|
10068
|
+
// the length, which workflow JSON written by an agent can carry.
|
|
10069
|
+
tone: clampText(data.tone ?? data.style, SCRIPT_TONE_MAX_LENGTH),
|
|
10070
|
+
targetDuration: clampInt(data.targetLength ?? data.targetDuration, SCRIPT_TARGET_DURATION_RANGE),
|
|
10071
|
+
styleGuide: clampText(styleGuide, SCRIPT_STYLE_GUIDE_MAX_LENGTH)
|
|
10072
|
+
};
|
|
10073
|
+
}
|
|
10074
|
+
|
|
9571
10075
|
// src/trigger-node-types.ts
|
|
9572
10076
|
var SCHEDULE_TRIGGER_NODE_TYPE = "schedule-trigger";
|
|
9573
10077
|
var WEBHOOK_TRIGGER_NODE_TYPE = "webhook-trigger";
|
|
@@ -9583,6 +10087,71 @@ function isProjectedTriggerNodeType(type) {
|
|
|
9583
10087
|
return typeof type === "string" && PROJECTED_TRIGGER_NODE_TYPES.has(type);
|
|
9584
10088
|
}
|
|
9585
10089
|
|
|
10090
|
+
// src/telegram-account-trigger.ts
|
|
10091
|
+
var TELEGRAM_ACCOUNT_TRIGGER_MESSAGE_HANDLE = "out";
|
|
10092
|
+
var TELEGRAM_ACCOUNT_TRIGGER_POST_FIELDS = [
|
|
10093
|
+
/** The post's link, when the post has a video to analyze. */
|
|
10094
|
+
"videoLink",
|
|
10095
|
+
/** The post's words, when it has no video: the message, the link's preview, or the forwarded post. */
|
|
10096
|
+
"postText",
|
|
10097
|
+
/** The link of the post this run is about, whatever its kind. */
|
|
10098
|
+
"postLink"
|
|
10099
|
+
];
|
|
10100
|
+
var TELEGRAM_ACCOUNT_TRIGGER_MESSAGE_FIELDS = [
|
|
10101
|
+
"chatId",
|
|
10102
|
+
"chatType",
|
|
10103
|
+
"messageId",
|
|
10104
|
+
"senderId"
|
|
10105
|
+
];
|
|
10106
|
+
var TELEGRAM_ACCOUNT_TRIGGER_OUTPUT_HANDLES = [
|
|
10107
|
+
TELEGRAM_ACCOUNT_TRIGGER_MESSAGE_HANDLE,
|
|
10108
|
+
...TELEGRAM_ACCOUNT_TRIGGER_POST_FIELDS
|
|
10109
|
+
];
|
|
10110
|
+
var NAMED_HANDLES = /* @__PURE__ */ new Set([...TELEGRAM_ACCOUNT_TRIGGER_POST_FIELDS, ...TELEGRAM_ACCOUNT_TRIGGER_MESSAGE_FIELDS]);
|
|
10111
|
+
function isTelegramAccountTriggerNamedHandle(handle) {
|
|
10112
|
+
return typeof handle === "string" && NAMED_HANDLES.has(handle);
|
|
10113
|
+
}
|
|
10114
|
+
function telegramAccountListeningSignature(data) {
|
|
10115
|
+
const d = data !== null && typeof data === "object" ? data : {};
|
|
10116
|
+
const list = (value) => Array.isArray(value) ? [...new Set(value.filter((x) => typeof x === "string").map((x) => x.trim()).filter((x) => x !== ""))].sort() : [];
|
|
10117
|
+
return JSON.stringify({
|
|
10118
|
+
accountId: typeof d.accountId === "string" ? d.accountId : "",
|
|
10119
|
+
chatIds: list(d.chatIds),
|
|
10120
|
+
senderIds: list(d.senderIds),
|
|
10121
|
+
messageTypeFilters: list(d.messageTypeFilters),
|
|
10122
|
+
keywords: list(d.keywords),
|
|
10123
|
+
includeOutgoing: d.inboxMode === true || d.includeOutgoing === true,
|
|
10124
|
+
inboxMode: d.inboxMode === true,
|
|
10125
|
+
isActive: d.isActive === true
|
|
10126
|
+
});
|
|
10127
|
+
}
|
|
10128
|
+
function stringField(value) {
|
|
10129
|
+
if (typeof value === "string") return value.trim();
|
|
10130
|
+
if (typeof value === "number" && Number.isFinite(value)) return String(value);
|
|
10131
|
+
return "";
|
|
10132
|
+
}
|
|
10133
|
+
function telegramAccountTriggerOutputs(triggerData) {
|
|
10134
|
+
const td = triggerData ?? {};
|
|
10135
|
+
const out = {};
|
|
10136
|
+
for (const key of TELEGRAM_ACCOUNT_TRIGGER_POST_FIELDS) out[key] = stringField(td[key]);
|
|
10137
|
+
for (const key of TELEGRAM_ACCOUNT_TRIGGER_MESSAGE_FIELDS) {
|
|
10138
|
+
const value = stringField(td[key]);
|
|
10139
|
+
if (value !== "") out[key] = value;
|
|
10140
|
+
}
|
|
10141
|
+
return out;
|
|
10142
|
+
}
|
|
10143
|
+
|
|
10144
|
+
// src/telegram-account-send.ts
|
|
10145
|
+
var TELEGRAM_ACCOUNT_SEND_NODE_TYPE = "telegram-account-send";
|
|
10146
|
+
var TELEGRAM_SEND_AS = ["account", "bot"];
|
|
10147
|
+
var TELEGRAM_SEND_DESTINATIONS = ["reply", "saved"];
|
|
10148
|
+
function telegramSendAsOf(value) {
|
|
10149
|
+
return value === "bot" ? "bot" : "account";
|
|
10150
|
+
}
|
|
10151
|
+
function telegramSendDestinationOf(value) {
|
|
10152
|
+
return value === "saved" ? "saved" : "reply";
|
|
10153
|
+
}
|
|
10154
|
+
|
|
9586
10155
|
// src/trigger-feeds.ts
|
|
9587
10156
|
function buildFeedMaps(nodes, edges) {
|
|
9588
10157
|
const live = new Set(nodes.map((n) => n.id));
|
|
@@ -10167,7 +10736,7 @@ function metaAdsScrapeCreditIdFromNode(data) {
|
|
|
10167
10736
|
|
|
10168
10737
|
// src/instagram-scrape.ts
|
|
10169
10738
|
var INSTAGRAM_SCRAPE_NODE_TYPE = "instagram-scrape";
|
|
10170
|
-
var INSTAGRAM_SCRAPE_MODES = ["profile", "hashtag"];
|
|
10739
|
+
var INSTAGRAM_SCRAPE_MODES = ["profile", "hashtag", "post"];
|
|
10171
10740
|
function isInstagramScrapeMode(value) {
|
|
10172
10741
|
return typeof value === "string" && INSTAGRAM_SCRAPE_MODES.includes(value);
|
|
10173
10742
|
}
|
|
@@ -10215,8 +10784,33 @@ var INSTAGRAM_SCRAPE_FALLBACK_CREDIT_ID = "instagram-scrape:20";
|
|
|
10215
10784
|
function isInstagramScrapeCount(value) {
|
|
10216
10785
|
return typeof value === "number" && Number.isInteger(value) && value >= 1 && value <= INSTAGRAM_SCRAPE_MAX_COUNT;
|
|
10217
10786
|
}
|
|
10218
|
-
|
|
10219
|
-
|
|
10787
|
+
var INSTAGRAM_POST_LINK_RE = /^(?:https?:\/\/)?(?:[a-z0-9-]+\.)*(?:instagram\.com|instagr\.am)\/(?:(?!(?:share|stories|explore|accounts|direct|p|reels?|tv)\/)[A-Za-z0-9._]+\/)?(p|reels?|tv)\/(?!audio(?:[/?#]|$))([A-Za-z0-9_-]+)/i;
|
|
10788
|
+
function parseInstagramPostLink(value) {
|
|
10789
|
+
const match = INSTAGRAM_POST_LINK_RE.exec(value.trim());
|
|
10790
|
+
if (!match) return null;
|
|
10791
|
+
const kind = match[1].toLowerCase();
|
|
10792
|
+
const segment = kind === "p" ? "p" : kind === "tv" ? "tv" : "reel";
|
|
10793
|
+
return { link: `https://www.instagram.com/${segment}/${match[2]}/`, shortcode: match[2] };
|
|
10794
|
+
}
|
|
10795
|
+
function instagramPostLink(value) {
|
|
10796
|
+
return parseInstagramPostLink(value)?.link ?? null;
|
|
10797
|
+
}
|
|
10798
|
+
function splitInstagramPostLinks(raw) {
|
|
10799
|
+
const seen = /* @__PURE__ */ new Set();
|
|
10800
|
+
const out = [];
|
|
10801
|
+
for (const item of raw.flatMap((entry) => entry.split(/[\s,]+/))) {
|
|
10802
|
+
const parsed = parseInstagramPostLink(item);
|
|
10803
|
+
if (!parsed || seen.has(parsed.shortcode)) continue;
|
|
10804
|
+
seen.add(parsed.shortcode);
|
|
10805
|
+
out.push(parsed.link);
|
|
10806
|
+
if (out.length >= INSTAGRAM_SCRAPE_MAX_SOURCES) break;
|
|
10807
|
+
}
|
|
10808
|
+
return out;
|
|
10809
|
+
}
|
|
10810
|
+
function splitInstagramTargets(value, mode = "profile") {
|
|
10811
|
+
const separator = mode === "post" ? /[\s,]+/ : /[\n,]+/;
|
|
10812
|
+
const raw = Array.isArray(value) ? value.filter((v) => typeof v === "string") : typeof value === "string" ? value.split(separator) : [];
|
|
10813
|
+
if (mode === "post") return splitInstagramPostLinks(raw);
|
|
10220
10814
|
const seen = /* @__PURE__ */ new Set();
|
|
10221
10815
|
const out = [];
|
|
10222
10816
|
for (const item of raw) {
|
|
@@ -10252,21 +10846,314 @@ function featuredInstagramOutputs(json, featuredIndex) {
|
|
|
10252
10846
|
...videoUrl ? { videoUrl } : {}
|
|
10253
10847
|
};
|
|
10254
10848
|
}
|
|
10849
|
+
function instagramRequestedCount(mode, count) {
|
|
10850
|
+
return mode === "post" ? 1 : count;
|
|
10851
|
+
}
|
|
10255
10852
|
function instagramScrapeSources(data) {
|
|
10256
|
-
return Math.max(1, Math.min(splitInstagramTargets(data.targets).length, INSTAGRAM_SCRAPE_MAX_SOURCES));
|
|
10853
|
+
return Math.max(1, Math.min(splitInstagramTargets(data.targets, instagramScrapeMode(data.mode)).length, INSTAGRAM_SCRAPE_MAX_SOURCES));
|
|
10257
10854
|
}
|
|
10258
10855
|
function instagramScrapeCreditIdFromNode(data) {
|
|
10259
10856
|
const count = typeof data.count === "number" ? data.count : INSTAGRAM_SCRAPE_DEFAULT_COUNT;
|
|
10260
|
-
return buildInstagramScrapeCreditId({
|
|
10857
|
+
return buildInstagramScrapeCreditId({
|
|
10858
|
+
count: instagramRequestedCount(instagramScrapeMode(data.mode), count),
|
|
10859
|
+
sources: instagramScrapeSources(data),
|
|
10860
|
+
analysis: instagramAnalysisTierFrom(data)
|
|
10861
|
+
});
|
|
10261
10862
|
}
|
|
10262
10863
|
function resolveInstagramScrapeCreditId(body) {
|
|
10263
10864
|
const raw = body;
|
|
10264
10865
|
if (!raw || typeof raw !== "object") return INSTAGRAM_SCRAPE_FALLBACK_CREDIT_ID;
|
|
10265
10866
|
const count = raw.count === void 0 ? INSTAGRAM_SCRAPE_DEFAULT_COUNT : raw.count;
|
|
10266
10867
|
if (!isInstagramScrapeCount(count)) return INSTAGRAM_SCRAPE_FALLBACK_CREDIT_ID;
|
|
10267
|
-
const
|
|
10868
|
+
const mode = instagramScrapeMode(raw.mode);
|
|
10869
|
+
const sources = splitInstagramTargets(raw.targets, mode).length;
|
|
10268
10870
|
if (sources < 1) return INSTAGRAM_SCRAPE_FALLBACK_CREDIT_ID;
|
|
10269
|
-
return buildInstagramScrapeCreditId({ count, sources, analysis: instagramAnalysisTierFrom(raw) });
|
|
10871
|
+
return buildInstagramScrapeCreditId({ count: instagramRequestedCount(mode, count), sources, analysis: instagramAnalysisTierFrom(raw) });
|
|
10872
|
+
}
|
|
10873
|
+
|
|
10874
|
+
// src/social-search.ts
|
|
10875
|
+
var SOCIAL_SEARCH_NODE_TYPE = "social-search";
|
|
10876
|
+
var SOCIAL_PLATFORMS = ["tiktok", "instagram", "youtube", "x", "reddit", "linkedin", "meta_ads"];
|
|
10877
|
+
var SOCIAL_SEARCH_MODES = ["keyword", "account", "community"];
|
|
10878
|
+
var SOCIAL_SEARCH_PLATFORM_MODES = {
|
|
10879
|
+
tiktok: ["keyword", "account"],
|
|
10880
|
+
instagram: ["keyword", "account"],
|
|
10881
|
+
youtube: ["keyword", "account"],
|
|
10882
|
+
x: ["keyword", "account"],
|
|
10883
|
+
reddit: ["keyword", "community"],
|
|
10884
|
+
linkedin: ["keyword", "account"],
|
|
10885
|
+
meta_ads: ["keyword", "account"]
|
|
10886
|
+
};
|
|
10887
|
+
var SOCIAL_SEARCH_PERIODS = ["day", "week", "month", "year", "all"];
|
|
10888
|
+
var SOCIAL_SEARCH_SORTS = ["relevance", "popular", "newest"];
|
|
10889
|
+
var SOCIAL_SEARCH_COUNTS = [20, 40, 60];
|
|
10890
|
+
var SOCIAL_SEARCH_PAGED_MODES = {
|
|
10891
|
+
tiktok: ["keyword"],
|
|
10892
|
+
instagram: ["keyword"],
|
|
10893
|
+
youtube: [],
|
|
10894
|
+
x: ["keyword", "account"],
|
|
10895
|
+
reddit: ["community"],
|
|
10896
|
+
linkedin: ["keyword"],
|
|
10897
|
+
meta_ads: ["keyword", "account"]
|
|
10898
|
+
};
|
|
10899
|
+
function socialSearchMaxCount(platform, mode) {
|
|
10900
|
+
return SOCIAL_SEARCH_PAGED_MODES[platform].includes(mode) ? 60 : 20;
|
|
10901
|
+
}
|
|
10902
|
+
var SOCIAL_SEARCH_VIDEO_KINDS = ["all", "videos", "shorts"];
|
|
10903
|
+
var SOCIAL_SEARCH_DEFAULT_PICK_TOP = 5;
|
|
10904
|
+
var SOCIAL_SEARCH_MAX_QUERY_LENGTH = 300;
|
|
10905
|
+
function isRecord(value) {
|
|
10906
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
10907
|
+
}
|
|
10908
|
+
function isSocialPost(value) {
|
|
10909
|
+
if (!isRecord(value)) return false;
|
|
10910
|
+
return typeof value.id === "string" && typeof value.url === "string" && typeof value.text === "string" && typeof value.platform === "string" && SOCIAL_PLATFORMS.includes(value.platform) && isRecord(value.author) && typeof value.author.handle === "string" && typeof value.author.name === "string" && isRecord(value.metrics) && isRecord(value.media) && Array.isArray(value.hashtags) && isRecord(value.extra);
|
|
10911
|
+
}
|
|
10912
|
+
function socialPostsFrom(value) {
|
|
10913
|
+
return Array.isArray(value) ? value.filter(isSocialPost) : [];
|
|
10914
|
+
}
|
|
10915
|
+
function oneOf(list, value, fallback) {
|
|
10916
|
+
return typeof value === "string" && list.includes(value) ? value : fallback;
|
|
10917
|
+
}
|
|
10918
|
+
function socialSearchPlatform(value) {
|
|
10919
|
+
return oneOf(SOCIAL_PLATFORMS, value, "tiktok");
|
|
10920
|
+
}
|
|
10921
|
+
function socialSearchMode(platform, value) {
|
|
10922
|
+
const allowed = SOCIAL_SEARCH_PLATFORM_MODES[platform];
|
|
10923
|
+
return oneOf(allowed, value, allowed[0]);
|
|
10924
|
+
}
|
|
10925
|
+
function socialSearchCount(value) {
|
|
10926
|
+
return value === 60 ? 60 : value === 40 ? 40 : 20;
|
|
10927
|
+
}
|
|
10928
|
+
function socialSearchPages(count) {
|
|
10929
|
+
return count === 60 ? 3 : count === 40 ? 2 : 1;
|
|
10930
|
+
}
|
|
10931
|
+
function cleanText(value, max) {
|
|
10932
|
+
return typeof value === "string" && value.trim() ? value.trim().slice(0, max) : void 0;
|
|
10933
|
+
}
|
|
10934
|
+
function socialSearchEffectiveCount(platform, mode, value) {
|
|
10935
|
+
const asked = socialSearchCount(value);
|
|
10936
|
+
const max = socialSearchMaxCount(platform, mode);
|
|
10937
|
+
return asked > max ? max : asked;
|
|
10938
|
+
}
|
|
10939
|
+
function socialSearchRegion(value) {
|
|
10940
|
+
const text = typeof value === "string" ? value.trim().toUpperCase() : "";
|
|
10941
|
+
return /^[A-Z]{2}$/.test(text) ? text : void 0;
|
|
10942
|
+
}
|
|
10943
|
+
function socialSearchCountry(value) {
|
|
10944
|
+
const text = typeof value === "string" ? value.trim().toUpperCase() : "";
|
|
10945
|
+
return /^([A-Z]{2}|ALL)$/.test(text) ? text : "ALL";
|
|
10946
|
+
}
|
|
10947
|
+
function socialSearchRequestFromNode(data, wiredQuery) {
|
|
10948
|
+
const platform = socialSearchPlatform(data.platform);
|
|
10949
|
+
const mode = socialSearchMode(platform, data.mode);
|
|
10950
|
+
const query = cleanText(wiredQuery, SOCIAL_SEARCH_MAX_QUERY_LENGTH) ?? cleanText(data.query, SOCIAL_SEARCH_MAX_QUERY_LENGTH) ?? "";
|
|
10951
|
+
const region = socialSearchRegion(data.region);
|
|
10952
|
+
const country = socialSearchCountry(data.country);
|
|
10953
|
+
const subreddit = cleanText(data.subreddit, 100);
|
|
10954
|
+
return {
|
|
10955
|
+
platform,
|
|
10956
|
+
mode,
|
|
10957
|
+
query,
|
|
10958
|
+
count: socialSearchEffectiveCount(platform, mode, data.count),
|
|
10959
|
+
period: oneOf(SOCIAL_SEARCH_PERIODS, data.period, "month"),
|
|
10960
|
+
sort: oneOf(SOCIAL_SEARCH_SORTS, data.sort, "relevance"),
|
|
10961
|
+
...platform === "tiktok" && mode === "keyword" && region ? { region } : {},
|
|
10962
|
+
...platform === "meta_ads" ? { country, activeOnly: data.activeOnly !== false } : {},
|
|
10963
|
+
...platform === "reddit" && mode === "keyword" && subreddit ? { subreddit } : {},
|
|
10964
|
+
...platform === "youtube" ? { videoKind: oneOf(SOCIAL_SEARCH_VIDEO_KINDS, data.videoKind, "all") } : {}
|
|
10965
|
+
};
|
|
10966
|
+
}
|
|
10967
|
+
function socialSearchPostLink(output) {
|
|
10968
|
+
let parsed;
|
|
10969
|
+
try {
|
|
10970
|
+
parsed = JSON.parse(output);
|
|
10971
|
+
} catch {
|
|
10972
|
+
return void 0;
|
|
10973
|
+
}
|
|
10974
|
+
const post = Array.isArray(parsed) ? parsed[0] : parsed;
|
|
10975
|
+
const url = typeof post === "object" && post !== null ? post.url : void 0;
|
|
10976
|
+
return httpLink(url);
|
|
10977
|
+
}
|
|
10978
|
+
function httpLink(value) {
|
|
10979
|
+
const link = typeof value === "string" ? value.trim() : "";
|
|
10980
|
+
return /^https?:\/\/\S+$/i.test(link) ? link : void 0;
|
|
10981
|
+
}
|
|
10982
|
+
var SOCIAL_POST_VIDEO_LINK_MARGIN_MS = 60 * 60 * 1e3;
|
|
10983
|
+
function signedLinkExpiresAt(link) {
|
|
10984
|
+
let url;
|
|
10985
|
+
try {
|
|
10986
|
+
url = new URL(link);
|
|
10987
|
+
} catch {
|
|
10988
|
+
return void 0;
|
|
10989
|
+
}
|
|
10990
|
+
const params = url.searchParams;
|
|
10991
|
+
const oe = params.get("oe");
|
|
10992
|
+
if (oe !== null && /^[0-9a-f]{6,10}$/i.test(oe)) return parseInt(oe, 16) * 1e3;
|
|
10993
|
+
const linkedin = /(^|\.)licdn\.com$/i.test(url.hostname);
|
|
10994
|
+
const seconds = params.get("x-expires") ?? params.get("Expires") ?? params.get("expires") ?? (linkedin ? params.get("e") : null);
|
|
10995
|
+
return seconds !== null && /^\d{9,11}$/.test(seconds) ? Number(seconds) * 1e3 : void 0;
|
|
10996
|
+
}
|
|
10997
|
+
function videoFileLink(value) {
|
|
10998
|
+
const link = httpLink(value);
|
|
10999
|
+
if (!link) return void 0;
|
|
11000
|
+
try {
|
|
11001
|
+
return /\.m3u8$/i.test(new URL(link).pathname) ? void 0 : link;
|
|
11002
|
+
} catch {
|
|
11003
|
+
return void 0;
|
|
11004
|
+
}
|
|
11005
|
+
}
|
|
11006
|
+
function socialSearchPostVideo(output, now = Date.now()) {
|
|
11007
|
+
let parsed;
|
|
11008
|
+
try {
|
|
11009
|
+
parsed = JSON.parse(output);
|
|
11010
|
+
} catch {
|
|
11011
|
+
return void 0;
|
|
11012
|
+
}
|
|
11013
|
+
const post = Array.isArray(parsed) ? socialPostsFrom(parsed)[0] : isSocialPost(parsed) ? parsed : void 0;
|
|
11014
|
+
if (!post) return void 0;
|
|
11015
|
+
if (post.media.kind !== "video") return { kind: "none" };
|
|
11016
|
+
const file = videoFileLink(post.media.videoUrl);
|
|
11017
|
+
if (file) {
|
|
11018
|
+
const end = signedLinkExpiresAt(file);
|
|
11019
|
+
return end !== void 0 && end - SOCIAL_POST_VIDEO_LINK_MARGIN_MS <= now ? { kind: "expired" } : { kind: "file", url: file };
|
|
11020
|
+
}
|
|
11021
|
+
const page = httpLink(post.url);
|
|
11022
|
+
return page ? { kind: "page", url: page } : void 0;
|
|
11023
|
+
}
|
|
11024
|
+
function socialPostsLongestVideoSec(posts) {
|
|
11025
|
+
const lengths = posts.filter((p) => p.media.kind === "video").map((p) => p.media.durationSec);
|
|
11026
|
+
if (lengths.length === 0) return void 0;
|
|
11027
|
+
return lengths.every((d) => typeof d === "number" && Number.isFinite(d) && d > 0) ? Math.max(...lengths) : void 0;
|
|
11028
|
+
}
|
|
11029
|
+
var SOCIAL_SEARCH_CREDITS_PER_PAGE = 20;
|
|
11030
|
+
function socialSearchCreditId(count) {
|
|
11031
|
+
return `${SOCIAL_SEARCH_NODE_TYPE}:${socialSearchPages(count)}`;
|
|
11032
|
+
}
|
|
11033
|
+
function socialSearchCreditIdFromNode(data) {
|
|
11034
|
+
const platform = socialSearchPlatform(data.platform);
|
|
11035
|
+
return socialSearchCreditId(socialSearchEffectiveCount(platform, socialSearchMode(platform, data.mode), data.count));
|
|
11036
|
+
}
|
|
11037
|
+
var SOCIAL_SEARCH_CREDIT_COSTS = Object.fromEntries([
|
|
11038
|
+
[SOCIAL_SEARCH_NODE_TYPE, SOCIAL_SEARCH_CREDITS_PER_PAGE],
|
|
11039
|
+
...SOCIAL_SEARCH_COUNTS.map((count) => [socialSearchCreditId(count), SOCIAL_SEARCH_CREDITS_PER_PAGE * socialSearchPages(count)])
|
|
11040
|
+
]);
|
|
11041
|
+
function socialSearchPickTop(value) {
|
|
11042
|
+
const n = typeof value === "number" && Number.isFinite(value) ? Math.round(value) : SOCIAL_SEARCH_DEFAULT_PICK_TOP;
|
|
11043
|
+
return Math.min(60, Math.max(1, n));
|
|
11044
|
+
}
|
|
11045
|
+
function pickSocialPosts(results, pickedIds, pickTop) {
|
|
11046
|
+
const byId = new Map(results.map((p) => [p.id, p]));
|
|
11047
|
+
const picked = (pickedIds ?? []).map((id) => byId.get(id)).filter((p) => p !== void 0);
|
|
11048
|
+
return picked.length > 0 ? picked : results.slice(0, socialSearchPickTop(pickTop));
|
|
11049
|
+
}
|
|
11050
|
+
function isSocialSearchPickFrozen(type, data) {
|
|
11051
|
+
return type === SOCIAL_SEARCH_NODE_TYPE && data.keepPicks === true && socialPostsFrom(data.generatedJson).length > 0;
|
|
11052
|
+
}
|
|
11053
|
+
function metricLine(post) {
|
|
11054
|
+
const m = post.metrics;
|
|
11055
|
+
if (m.views !== void 0) return `${m.views} views`;
|
|
11056
|
+
if (m.score !== void 0) return `${m.score} points`;
|
|
11057
|
+
if (m.likes !== void 0) return `${m.likes} likes`;
|
|
11058
|
+
return "";
|
|
11059
|
+
}
|
|
11060
|
+
function socialPostDigestLine(post, index) {
|
|
11061
|
+
const who = post.author.handle ? `@${post.author.handle.replace(/^@/, "")}` : post.author.name || post.container || "";
|
|
11062
|
+
const when = post.publishedAt ? post.publishedAt.slice(0, 10) : "";
|
|
11063
|
+
const words = (post.title || post.text).replace(/\s+/g, " ").trim();
|
|
11064
|
+
const snippet = words.length > 160 ? `${words.slice(0, 159)}\u2026` : words;
|
|
11065
|
+
const head = `${index + 1}. ${[who, when, metricLine(post)].filter(Boolean).join(" \xB7 ")}`;
|
|
11066
|
+
return [head, snippet, post.url].filter(Boolean).join("\n ");
|
|
11067
|
+
}
|
|
11068
|
+
function socialPostsDigest(posts) {
|
|
11069
|
+
return posts.map(socialPostDigestLine).join("\n\n");
|
|
11070
|
+
}
|
|
11071
|
+
|
|
11072
|
+
// src/saved-posts.ts
|
|
11073
|
+
var SAVED_POST_SOURCES = ["picker", "competitors", "manual", "api"];
|
|
11074
|
+
var SAVED_POST_NOTE_MAX = 2e3;
|
|
11075
|
+
var SAVED_POST_MAX_TAGS = 10;
|
|
11076
|
+
var SAVED_POST_TAG_MAX = 40;
|
|
11077
|
+
var SAVED_POSTS_PAGE_MAX = 100;
|
|
11078
|
+
var SAVED_POSTS_LOOKUP_MAX = 200;
|
|
11079
|
+
function normalizeSavedPostTags(tags) {
|
|
11080
|
+
if (!Array.isArray(tags)) return [];
|
|
11081
|
+
const clean2 = tags.filter((t2) => typeof t2 === "string").flatMap((t2) => t2.split(/[,,、]/)).map(
|
|
11082
|
+
(t2) => t2.replace(/[{}"\\]/g, "").trim().replace(/^#+/, "").replace(/\s+/g, " ").toLowerCase().slice(0, SAVED_POST_TAG_MAX).trim()
|
|
11083
|
+
).filter((t2) => t2.length > 0);
|
|
11084
|
+
return Array.from(new Set(clean2)).slice(0, SAVED_POST_MAX_TAGS);
|
|
11085
|
+
}
|
|
11086
|
+
|
|
11087
|
+
// src/competitors.ts
|
|
11088
|
+
var COMPETITOR_ACCOUNT_KEYS = ["tiktok", "instagram", "youtube", "x", "linkedin", "meta_ads"];
|
|
11089
|
+
var COMPETITOR_ABOUT_PLATFORMS = ["tiktok", "instagram", "youtube", "x", "reddit", "linkedin"];
|
|
11090
|
+
var COMPETITOR_DEFAULT_ABOUT_PLATFORMS = ["tiktok", "instagram", "youtube", "x", "reddit"];
|
|
11091
|
+
var COMPETITOR_SCHEDULES = ["off", "weekly", "daily"];
|
|
11092
|
+
var COMPETITOR_SCAN_MAX_SEARCHES = COMPETITOR_ACCOUNT_KEYS.length + COMPETITOR_ABOUT_PLATFORMS.length;
|
|
11093
|
+
var COMPETITOR_SCAN_NODE_TYPE = "competitor-scan";
|
|
11094
|
+
var COMPETITORS_MAX = 50;
|
|
11095
|
+
var ACTION_CARD_KINDS = [
|
|
11096
|
+
"outlier",
|
|
11097
|
+
"launch",
|
|
11098
|
+
"complaints",
|
|
11099
|
+
"spreading",
|
|
11100
|
+
"sound",
|
|
11101
|
+
"mentions_up",
|
|
11102
|
+
"pace",
|
|
11103
|
+
"market_sound",
|
|
11104
|
+
"top_in_sources"
|
|
11105
|
+
];
|
|
11106
|
+
var ADVICE_FAMILIES = ["sound", "outlier", "launch", "complaints"];
|
|
11107
|
+
function adviceFamilyOf(kind) {
|
|
11108
|
+
if (kind === "sound" || kind === "market_sound") return "sound";
|
|
11109
|
+
if (kind === "outlier" || kind === "launch" || kind === "complaints") return kind;
|
|
11110
|
+
return null;
|
|
11111
|
+
}
|
|
11112
|
+
function isMeasurableCard(card) {
|
|
11113
|
+
if (card.kind === "complaints") return card.params.own !== true;
|
|
11114
|
+
return adviceFamilyOf(card.kind) !== null;
|
|
11115
|
+
}
|
|
11116
|
+
var CARD_OUTCOME_STATES = [
|
|
11117
|
+
"worked",
|
|
11118
|
+
"flat",
|
|
11119
|
+
"missed",
|
|
11120
|
+
"waiting",
|
|
11121
|
+
"not_found",
|
|
11122
|
+
"older_than_advice",
|
|
11123
|
+
"no_baseline",
|
|
11124
|
+
"posts_since",
|
|
11125
|
+
"no_posts_yet",
|
|
11126
|
+
"no_brand"
|
|
11127
|
+
];
|
|
11128
|
+
var BRAND_LESSON_KINDS = [
|
|
11129
|
+
"short_videos",
|
|
11130
|
+
"long_videos",
|
|
11131
|
+
"format",
|
|
11132
|
+
"question_hook",
|
|
11133
|
+
"number_hook",
|
|
11134
|
+
"short_caption",
|
|
11135
|
+
"long_caption",
|
|
11136
|
+
"hashtag",
|
|
11137
|
+
"sound",
|
|
11138
|
+
"weekday"
|
|
11139
|
+
];
|
|
11140
|
+
function competitorScanSearches(c) {
|
|
11141
|
+
const accounts = COMPETITOR_ACCOUNT_KEYS.filter((k) => (c.accounts?.[k] ?? "").trim() !== "").length;
|
|
11142
|
+
const about = (c.aboutPlatforms ?? []).filter((p) => COMPETITOR_ABOUT_PLATFORMS.includes(p)).length;
|
|
11143
|
+
return accounts + about;
|
|
11144
|
+
}
|
|
11145
|
+
function competitorScanCreditId(n) {
|
|
11146
|
+
const clamped = Math.min(Math.max(Math.round(n), 1), COMPETITOR_SCAN_MAX_SEARCHES);
|
|
11147
|
+
return `${COMPETITOR_SCAN_NODE_TYPE}:${clamped}`;
|
|
11148
|
+
}
|
|
11149
|
+
var COMPETITOR_SCAN_CREDIT_COSTS = Object.fromEntries(
|
|
11150
|
+
Array.from({ length: COMPETITOR_SCAN_MAX_SEARCHES }, (_, i) => [competitorScanCreditId(i + 1), (i + 1) * SOCIAL_SEARCH_CREDITS_PER_PAGE])
|
|
11151
|
+
);
|
|
11152
|
+
function competitorScanCredits(searches) {
|
|
11153
|
+
return searches <= 0 ? 0 : COMPETITOR_SCAN_CREDIT_COSTS[competitorScanCreditId(searches)] ?? 0;
|
|
11154
|
+
}
|
|
11155
|
+
function isCompetitorAboutPlatform(value) {
|
|
11156
|
+
return COMPETITOR_ABOUT_PLATFORMS.includes(value);
|
|
10270
11157
|
}
|
|
10271
11158
|
|
|
10272
11159
|
// src/condition-variables.ts
|
|
@@ -10613,9 +11500,11 @@ function resolveFieldMappings(data, upstreamText, mappableFieldNames, getSourceO
|
|
|
10613
11500
|
const fm = data.fieldMappings;
|
|
10614
11501
|
const resolved = { ...data };
|
|
10615
11502
|
for (const field of mappableFieldNames) {
|
|
10616
|
-
const
|
|
11503
|
+
const wired = edgeSourceForField?.(field);
|
|
11504
|
+
const edge = typeof wired === "string" ? { sourceNodeId: wired } : wired;
|
|
11505
|
+
const sourceNodeId = edge?.sourceNodeId ?? fm?.[field]?.sourceNodeId;
|
|
10617
11506
|
if (sourceNodeId) {
|
|
10618
|
-
const output = getSourceOutput(sourceNodeId);
|
|
11507
|
+
const output = getSourceOutput(sourceNodeId, edge?.sourceHandle);
|
|
10619
11508
|
if (output != null) resolved[field] = output;
|
|
10620
11509
|
} else {
|
|
10621
11510
|
const current = resolved[field];
|
|
@@ -11551,6 +12440,37 @@ function togglePick(current, id, maxSelected) {
|
|
|
11551
12440
|
return [...current.slice(1), id];
|
|
11552
12441
|
}
|
|
11553
12442
|
|
|
12443
|
+
// src/tts-capabilities.ts
|
|
12444
|
+
var TTS_PROVIDER_ALIASES = {
|
|
12445
|
+
elevenlabs: "elevenlabs-turbo"
|
|
12446
|
+
};
|
|
12447
|
+
var TTS_FALLBACK_PROVIDER = "elevenlabs-turbo";
|
|
12448
|
+
function canonicalTtsProvider(provider) {
|
|
12449
|
+
return typeof provider === "string" && Object.hasOwn(TTS_PROVIDER_ALIASES, provider) ? TTS_PROVIDER_ALIASES[provider] : provider;
|
|
12450
|
+
}
|
|
12451
|
+
function findTtsCapabilities(provider) {
|
|
12452
|
+
if (typeof provider !== "string" || !provider) return void 0;
|
|
12453
|
+
const id = canonicalTtsProvider(provider);
|
|
12454
|
+
if (!Object.hasOwn(MODEL_CATALOG, id)) return void 0;
|
|
12455
|
+
const entry = MODEL_CATALOG[id];
|
|
12456
|
+
return entry.modes.includes("tts") ? entry.tts : void 0;
|
|
12457
|
+
}
|
|
12458
|
+
function getTtsCapabilities(provider) {
|
|
12459
|
+
return findTtsCapabilities(provider) ?? MODEL_CATALOG[TTS_FALLBACK_PROVIDER].tts;
|
|
12460
|
+
}
|
|
12461
|
+
function ttsSupportsAudioTags(provider) {
|
|
12462
|
+
return getTtsCapabilities(provider).audioTags;
|
|
12463
|
+
}
|
|
12464
|
+
function ttsSupportsSsmlBreaks(provider) {
|
|
12465
|
+
return getTtsCapabilities(provider).ssmlBreaks;
|
|
12466
|
+
}
|
|
12467
|
+
function ttsHasLever(provider, lever) {
|
|
12468
|
+
return getTtsCapabilities(provider).levers.includes(lever);
|
|
12469
|
+
}
|
|
12470
|
+
function ttsLanguageCodes(provider) {
|
|
12471
|
+
return getTtsCapabilities(provider).languages;
|
|
12472
|
+
}
|
|
12473
|
+
|
|
11554
12474
|
// src/safety-retry-policy.ts
|
|
11555
12475
|
function safetyRetryPolicy(modelId) {
|
|
11556
12476
|
const entry = getModel(modelId);
|
|
@@ -11836,6 +12756,10 @@ var EXECUTION_DATA_KEYS = /* @__PURE__ */ new Set([
|
|
|
11836
12756
|
// below. Without the transient half, a flip into review marks a passive tab
|
|
11837
12757
|
// dirty and a preset captures "awaiting review".
|
|
11838
12758
|
"jobAwaitingReview",
|
|
12759
|
+
// The editor cannot reach the server to read this node's job. The job keeps
|
|
12760
|
+
// running and the watch keeps polling. Pure run state, cleared by the next
|
|
12761
|
+
// check that gets through, so it is ALSO in TRANSIENT_RUNTIME_KEYS below.
|
|
12762
|
+
"jobConnectionLost",
|
|
11839
12763
|
"isStreaming",
|
|
11840
12764
|
"generatedImageUrl",
|
|
11841
12765
|
"generatedVideoUrl",
|
|
@@ -11855,6 +12779,11 @@ var EXECUTION_DATA_KEYS = /* @__PURE__ */ new Set([
|
|
|
11855
12779
|
// List fan-out window flag (abandon-guard exemption). Set/cleared by
|
|
11856
12780
|
// executeNodeForList — purely execution-related, never user-edited.
|
|
11857
12781
|
"__listRunning",
|
|
12782
|
+
// One token per paid run still out on this node that no executor mark
|
|
12783
|
+
// covers (the editor's `withRunInFlight`, around each paid call outside the
|
|
12784
|
+
// executors). Purely execution-related, never user-edited; also in
|
|
12785
|
+
// TRANSIENT_RUNTIME_KEYS.
|
|
12786
|
+
"__runsInFlight",
|
|
11858
12787
|
// Selector node dual-channel outputs (picked + rest). Server-side execution
|
|
11859
12788
|
// output, not user-edited config.
|
|
11860
12789
|
"pickedResults",
|
|
@@ -11894,23 +12823,55 @@ var EXECUTION_DATA_KEYS = /* @__PURE__ */ new Set([
|
|
|
11894
12823
|
"webhookSuccess",
|
|
11895
12824
|
"webhookStatusCode",
|
|
11896
12825
|
"webhookResponseBody",
|
|
12826
|
+
// Content Ideas: one creative brief per idea (the node's list output — kept
|
|
12827
|
+
// out of __listResults, which would clone the node). And the non-fatal notes
|
|
12828
|
+
// a Content Recipe / Content Ideas run returns ("read the first of 3 posts").
|
|
12829
|
+
// Both are RESULTS: they persist, and a preset, a template or a run-only
|
|
12830
|
+
// patch must never treat them as config.
|
|
12831
|
+
"ideaBriefs",
|
|
12832
|
+
"runWarnings",
|
|
12833
|
+
// Content Ideas: the own brand whose results the last run leaned on — a
|
|
12834
|
+
// RESULT naming the runner's brand, so a template or a preset never carries it.
|
|
12835
|
+
"brandLessons",
|
|
12836
|
+
// Social Search: every post the last search found (the picker's grid), the
|
|
12837
|
+
// ids a person picked from them, and the run's non-fatal notes ("only part
|
|
12838
|
+
// of the results loaded"). All RESULTS: a template, a preset or a run-only
|
|
12839
|
+
// patch must never carry yesterday's posts or picks as configuration.
|
|
12840
|
+
"searchResults",
|
|
12841
|
+
"pickedIds",
|
|
12842
|
+
"searchWarnings",
|
|
11897
12843
|
// When the editor's "Clear results" last emptied this node (ISO time). Not a
|
|
11898
12844
|
// result and not config: bookkeeping that tells the load-time recovery lanes
|
|
11899
12845
|
// "this node is empty ON PURPOSE" — without it, every reload reads an empty
|
|
11900
12846
|
// node as "ran while the editor was closed" and paints the last run back.
|
|
11901
12847
|
// Persisted (never transient): the reload is exactly when it is read.
|
|
11902
|
-
"resultsClearedAt"
|
|
12848
|
+
"resultsClearedAt",
|
|
12849
|
+
// The id of the trigger-started run whose results this node shows (the
|
|
12850
|
+
// editor paints a Telegram run onto the canvas). Bookkeeping, not a result
|
|
12851
|
+
// and not config: it stops a reload from painting the same run again over
|
|
12852
|
+
// edits made since. Persisted for the same reason as resultsClearedAt.
|
|
12853
|
+
"resultsRunId",
|
|
12854
|
+
// When that run ended the node (beside resultsRunId): the editor's reopen
|
|
12855
|
+
// keeps a result a NEWER run left even when its own run listing cannot see
|
|
12856
|
+
// that run. Bookkeeping, persisted for the same reason.
|
|
12857
|
+
"resultsRunEndedAt",
|
|
12858
|
+
// A trigger's last run values (also in TRANSIENT_RUNTIME_KEYS: never saved).
|
|
12859
|
+
"__triggerData"
|
|
11903
12860
|
]);
|
|
11904
12861
|
var TRANSIENT_RUNTIME_KEYS = /* @__PURE__ */ new Set([
|
|
11905
12862
|
"executionStatus",
|
|
11906
12863
|
"currentJobId",
|
|
11907
12864
|
"currentJobProgress",
|
|
11908
12865
|
"jobAwaitingReview",
|
|
12866
|
+
"jobConnectionLost",
|
|
11909
12867
|
"isStreaming",
|
|
11910
12868
|
"subWorkflowProgress",
|
|
11911
12869
|
"__listTotal",
|
|
11912
12870
|
"__listCompleted",
|
|
11913
12871
|
"__listRunning",
|
|
12872
|
+
// A paid run still out, held by the editor tab that started it. Never
|
|
12873
|
+
// saved, so a reload, which has no such run, starts without one.
|
|
12874
|
+
"__runsInFlight",
|
|
11914
12875
|
"_upstreamRefresh",
|
|
11915
12876
|
"__upstreamCount",
|
|
11916
12877
|
// Video URL node download ticks. They used to dirty the workflow twice a
|
|
@@ -11918,7 +12879,11 @@ var TRANSIENT_RUNTIME_KEYS = /* @__PURE__ */ new Set([
|
|
|
11918
12879
|
// job-progress keys above were moved here to stop. What SURVIVES a reload is
|
|
11919
12880
|
// `downloadStatus` + `downloadId`; the percent is re-read from the server.
|
|
11920
12881
|
"downloadPercent",
|
|
11921
|
-
"downloadPhase"
|
|
12882
|
+
"downloadPhase",
|
|
12883
|
+
// A trigger's last run values, shown in the editor after a run (a webhook's
|
|
12884
|
+
// body, a Telegram message and its post). Never saved: the workflow is not
|
|
12885
|
+
// where a message's content is kept — runs are, under their retention.
|
|
12886
|
+
"__triggerData"
|
|
11922
12887
|
]);
|
|
11923
12888
|
function stripTransientRuntimeData(nodes) {
|
|
11924
12889
|
return nodes.map((node) => {
|
|
@@ -11951,6 +12916,8 @@ var NODE_EXTRA_FIELDS = {
|
|
|
11951
12916
|
// (a schedule starts paused), and the rules themselves are config that
|
|
11952
12917
|
// travels.
|
|
11953
12918
|
"schedule-trigger": ["active"],
|
|
12919
|
+
// Same for a Telegram Account Trigger: listening is the importer's to start.
|
|
12920
|
+
"telegram-account-trigger": ["isActive"],
|
|
11954
12921
|
character: ["expressions", "poses", "lightingVariations", "angles", "customVariations"],
|
|
11955
12922
|
object: ["angles", "materials", "variations", "customVariations"],
|
|
11956
12923
|
creature: ["angles", "poses", "variations", "customVariations"],
|
|
@@ -11976,6 +12943,11 @@ var NODE_EXTRA_FIELDS = {
|
|
|
11976
12943
|
};
|
|
11977
12944
|
var UNOWNED_REF_FIELDS = {
|
|
11978
12945
|
"webhook-output": ["credentialId"],
|
|
12946
|
+
// The exporter's connected Telegram account and its chats (a Saved Messages
|
|
12947
|
+
// chat id IS the exporter's Telegram user id) — the importer picks their own.
|
|
12948
|
+
"telegram-account-trigger": ["accountId", "chatIds", "chatTitles", "senderIds"],
|
|
12949
|
+
// Telegram Reply: the exporter's account and their bot.
|
|
12950
|
+
"telegram-account-send": ["accountId", "connectionId"],
|
|
11979
12951
|
...Object.fromEntries([...SOCIAL_POST_NODE_TYPES].map((type) => [type, ["connectionId"]]))
|
|
11980
12952
|
};
|
|
11981
12953
|
function stripUnownedRefs(nodes) {
|
|
@@ -12654,6 +13626,11 @@ function clearImageCriticMetadata(meta) {
|
|
|
12654
13626
|
return next;
|
|
12655
13627
|
}
|
|
12656
13628
|
var VIDEO_CRITIC_FRAME_MODES = ["first_last", "first_middle_last", "five_evenly"];
|
|
13629
|
+
var VIDEO_CRITIC_RESERVED_CREDITS_PER_SHOT = {
|
|
13630
|
+
first_last: 20,
|
|
13631
|
+
first_middle_last: 30,
|
|
13632
|
+
five_evenly: 40
|
|
13633
|
+
};
|
|
12657
13634
|
var VIDEO_CRITIC_MAX_RETRIES = 1;
|
|
12658
13635
|
var VIDEO_CRITIC_MIN_ADHERENCE_SCORE = 5;
|
|
12659
13636
|
var VIDEO_CRITIC_METADATA_KEYS = [
|
|
@@ -13496,6 +14473,9 @@ var SubGateNameSchema = zod.z.enum([
|
|
|
13496
14473
|
"dialogue_recheck",
|
|
13497
14474
|
"match_cut_break_pending"
|
|
13498
14475
|
]);
|
|
14476
|
+
var ANIMATE_SUB_GATES = ["silent_cut_preview", "dialogue_recheck"];
|
|
14477
|
+
var AnimateSubGateSchema = zod.z.enum(ANIMATE_SUB_GATES);
|
|
14478
|
+
var MATCH_CUT_BREAK_GATE = "match_cut_break_pending";
|
|
13499
14479
|
var StageAwaitingSubGateEventSchema = zod.z.object({
|
|
13500
14480
|
type: zod.z.literal("stage:awaiting_sub_gate"),
|
|
13501
14481
|
pipelineId: zod.z.string().uuid(),
|
|
@@ -14576,7 +15556,8 @@ function detectVideoLinkPlatform(url) {
|
|
|
14576
15556
|
var VIDEO_LINK_TOLERANT_CONSUMER_TYPES = /* @__PURE__ */ new Set([
|
|
14577
15557
|
"suno-cover",
|
|
14578
15558
|
"transcribe",
|
|
14579
|
-
"dubbing"
|
|
15559
|
+
"dubbing",
|
|
15560
|
+
"content-recipe"
|
|
14580
15561
|
]);
|
|
14581
15562
|
function trimmed(value) {
|
|
14582
15563
|
if (typeof value !== "string") return void 0;
|
|
@@ -14593,6 +15574,9 @@ function videoLinkDownloadedFile(data) {
|
|
|
14593
15574
|
function resolveVideoLinkOutput(data) {
|
|
14594
15575
|
return videoLinkDownloadedFile(data) ?? trimmed(data.youtubeUrl);
|
|
14595
15576
|
}
|
|
15577
|
+
function videoLinkPageUrl(data) {
|
|
15578
|
+
return trimmed(data.youtubeUrl);
|
|
15579
|
+
}
|
|
14596
15580
|
function videoLinkNeedsDownload(data) {
|
|
14597
15581
|
const url = trimmed(data.youtubeUrl);
|
|
14598
15582
|
if (!url || !isSocialVideoUrl(url)) return false;
|
|
@@ -16584,20 +17568,22 @@ function stripDerivedAnalysisFields(json) {
|
|
|
16584
17568
|
|
|
16585
17569
|
// src/video-analysis-pricing.ts
|
|
16586
17570
|
var VIDEO_ANALYSIS_DURATION_BUCKETS = [60, 180, 360, 600];
|
|
16587
|
-
var
|
|
17571
|
+
var VIDEO_ANALYSIS_BUCKET_GRACE_SEC = 3;
|
|
17572
|
+
var VIDEO_ANALYSIS_DURATION_TOLERANCE_SEC = VIDEO_ANALYSIS_BUCKET_GRACE_SEC + 3;
|
|
16588
17573
|
var VIDEO_ANALYSIS_MAX_DURATION_SEC = 600;
|
|
16589
17574
|
var WINDOW_LEN = 150;
|
|
16590
17575
|
var WINDOW_STRIDE = 145;
|
|
16591
17576
|
var WINDOW_OVERLAP = 5;
|
|
16592
17577
|
var VIDEO_ANALYSIS_WINDOW = { LEN: WINDOW_LEN, STRIDE: WINDOW_STRIDE, OVERLAP: WINDOW_OVERLAP, SINGLE_MAX: 180 };
|
|
16593
17578
|
var VIDEO_ANALYSIS_BUCKET_CREDITS = {
|
|
16594
|
-
//
|
|
17579
|
+
// Current fast tier (VIDEO_ANALYSIS_TIERS.fast; it was also the fast model
|
|
17580
|
+
// before 2026-07).
|
|
16595
17581
|
"video-analysis:gemini-3-flash:60s": 181,
|
|
16596
17582
|
"video-analysis:gemini-3-flash:180s": 186,
|
|
16597
17583
|
"video-analysis:gemini-3-flash:360s": 516,
|
|
16598
17584
|
"video-analysis:gemini-3-flash:600s": 849,
|
|
16599
|
-
//
|
|
16600
|
-
//
|
|
17585
|
+
// Legacy fast-tier model (backed the fast tier 2026-07 → 2026-07-29) — kept
|
|
17586
|
+
// for stored raw-id configs; still ≤ pro per bucket.
|
|
16601
17587
|
"video-analysis:gemini-3.6-flash:60s": 205,
|
|
16602
17588
|
"video-analysis:gemini-3.6-flash:180s": 219,
|
|
16603
17589
|
"video-analysis:gemini-3.6-flash:360s": 603,
|
|
@@ -16628,7 +17614,7 @@ function videoAnalysisCreditSegment(modelOrSentinel) {
|
|
|
16628
17614
|
return modelOrSentinel === "mixed-fast" ? "mixed" : modelOrSentinel;
|
|
16629
17615
|
}
|
|
16630
17616
|
function pickVideoAnalysisBucket(durationSec) {
|
|
16631
|
-
for (const b of VIDEO_ANALYSIS_DURATION_BUCKETS) if (durationSec <= b) return b;
|
|
17617
|
+
for (const b of VIDEO_ANALYSIS_DURATION_BUCKETS) if (durationSec <= b + VIDEO_ANALYSIS_BUCKET_GRACE_SEC) return b;
|
|
16632
17618
|
return VIDEO_ANALYSIS_MAX_DURATION_SEC;
|
|
16633
17619
|
}
|
|
16634
17620
|
function buildVideoAnalysisCreditId(model, durationSec) {
|
|
@@ -16667,6 +17653,47 @@ function bucketSecondsFromAuditCreditId(id) {
|
|
|
16667
17653
|
return m ? Number(m[1]) : null;
|
|
16668
17654
|
}
|
|
16669
17655
|
|
|
17656
|
+
// src/content-recipe-ideas.ts
|
|
17657
|
+
var CONTENT_IDEAS_MAX_COUNT = 10;
|
|
17658
|
+
var CONTENT_IDEAS_DEFAULT_COUNT = 5;
|
|
17659
|
+
var CONTENT_IDEAS_PER_CHARGE = 5;
|
|
17660
|
+
var CONTENT_RECIPE_SOURCE_MAX = 3e5;
|
|
17661
|
+
var CONTENT_IDEAS_MAX_RECIPE_INPUTS = 20;
|
|
17662
|
+
var CONTENT_IDEAS_BRAND_MAX = 6e3;
|
|
17663
|
+
var CONTENT_IDEAS_LANGUAGE_MAX = 40;
|
|
17664
|
+
function clampContentIdeasCount(raw) {
|
|
17665
|
+
const n = typeof raw === "number" && Number.isFinite(raw) ? Math.floor(raw) : CONTENT_IDEAS_DEFAULT_COUNT;
|
|
17666
|
+
return Math.min(CONTENT_IDEAS_MAX_COUNT, Math.max(1, n));
|
|
17667
|
+
}
|
|
17668
|
+
function contentIdeasCreditFeature(count) {
|
|
17669
|
+
return count > CONTENT_IDEAS_PER_CHARGE ? "content-ideas:10" : "content-ideas";
|
|
17670
|
+
}
|
|
17671
|
+
function effectiveContentModel(feature, llmModel) {
|
|
17672
|
+
if (typeof llmModel === "string" && getLlmModel(llmModel)?.structuredOutputMode != null) return llmModel;
|
|
17673
|
+
return LLM_FEATURE_DEFAULTS[feature];
|
|
17674
|
+
}
|
|
17675
|
+
function contentRecipeCreditId(llmModel, reasoningEffort) {
|
|
17676
|
+
return buildLlmCreditIdentifier("content-recipe", effectiveContentModel("content-recipe", llmModel), reasoningEffort);
|
|
17677
|
+
}
|
|
17678
|
+
function contentIdeasCreditId(count, llmModel, reasoningEffort) {
|
|
17679
|
+
return buildLlmCreditIdentifier(
|
|
17680
|
+
contentIdeasCreditFeature(clampContentIdeasCount(count)),
|
|
17681
|
+
effectiveContentModel("content-ideas", llmModel),
|
|
17682
|
+
reasoningEffort
|
|
17683
|
+
);
|
|
17684
|
+
}
|
|
17685
|
+
var CONTENT_RECIPE_IDEAS_CREDIT_IDS = [
|
|
17686
|
+
"content-recipe:economy",
|
|
17687
|
+
"content-recipe",
|
|
17688
|
+
"content-recipe:premium",
|
|
17689
|
+
"content-ideas:economy",
|
|
17690
|
+
"content-ideas",
|
|
17691
|
+
"content-ideas:premium",
|
|
17692
|
+
"content-ideas:10:economy",
|
|
17693
|
+
"content-ideas:10",
|
|
17694
|
+
"content-ideas:10:premium"
|
|
17695
|
+
];
|
|
17696
|
+
|
|
16670
17697
|
// src/smart-cut-windows.ts
|
|
16671
17698
|
var SMART_CUT_WINDOW_MAX = 24;
|
|
16672
17699
|
var SMART_CUT_WINDOW_MIN = 1;
|
|
@@ -18816,6 +19843,24 @@ var STUDIO_TRANSIENT_KEYS = [
|
|
|
18816
19843
|
"freecutDraftUrl"
|
|
18817
19844
|
];
|
|
18818
19845
|
var STUDIO_SHOT_TRANSIENT_KEYS = ["pendingClips", "pendingClip", "pendingStills"];
|
|
19846
|
+
var STUDIO_SHOT_DRAFT_KEYS = ["stillSlots", "clipSlots"];
|
|
19847
|
+
var STUDIO_PREVIZ_RUN_STATE_KEYS = ["pendingJobs", "proSubmission"];
|
|
19848
|
+
var STUDIO_SHOT_PRIVATE_KEYS = [...STUDIO_SHOT_TRANSIENT_KEYS, ...STUDIO_SHOT_DRAFT_KEYS];
|
|
19849
|
+
var STUDIO_TAKE_VOICE_KEYS = ["revoiceTo", "voiceMode"];
|
|
19850
|
+
var STUDIO_TAKE_SEQUENCE_KEYS = ["sequenceEndpoints"];
|
|
19851
|
+
var STUDIO_TAKE_PRIVATE_KEYS = [...STUDIO_TAKE_VOICE_KEYS, ...STUDIO_TAKE_SEQUENCE_KEYS];
|
|
19852
|
+
var STUDIO_SEQUENCE_PLANNING_KEYS = ["sequenceRecommendations"];
|
|
19853
|
+
var STUDIO_SEQUENCE_UNIT_REVIEW_KEYS = ["continuationAcceptance"];
|
|
19854
|
+
var STUDIO_SEQUENCE_POLICY_KEYS = ["sequenceGenerationPolicies"];
|
|
19855
|
+
var STUDIO_SEQUENCE_UNIT_MANIFEST_KEYS = ["requestManifest"];
|
|
19856
|
+
var STUDIO_KEYFRAME_NODE_TRANSIENT_KEYS = ["keyframePendingImages"];
|
|
19857
|
+
var STUDIO_KEYFRAME_TRANSIENT_KEYS = ["pendingImages"];
|
|
19858
|
+
var STUDIO_KEYFRAME_REVIEW_KEYS = ["rejections"];
|
|
19859
|
+
var STUDIO_KEYFRAME_ACCEPTANCE_PRIVATE_KEYS = ["waivedReason"];
|
|
19860
|
+
var STUDIO_KEYFRAME_PRIVATE_KEYS = [...STUDIO_KEYFRAME_TRANSIENT_KEYS, ...STUDIO_KEYFRAME_REVIEW_KEYS];
|
|
19861
|
+
function isRecord2(value) {
|
|
19862
|
+
return !!value && typeof value === "object" && !Array.isArray(value);
|
|
19863
|
+
}
|
|
18819
19864
|
function withoutKeys(source, drop) {
|
|
18820
19865
|
const kept = {};
|
|
18821
19866
|
for (const [key, value] of Object.entries(source)) {
|
|
@@ -18824,15 +19869,27 @@ function withoutKeys(source, drop) {
|
|
|
18824
19869
|
}
|
|
18825
19870
|
return kept;
|
|
18826
19871
|
}
|
|
18827
|
-
function stripShots(value) {
|
|
19872
|
+
function stripShots(value, drop) {
|
|
18828
19873
|
if (!Array.isArray(value)) return value;
|
|
18829
19874
|
let changed = false;
|
|
18830
19875
|
const out = value.map((entry) => {
|
|
18831
19876
|
if (!entry || typeof entry !== "object" || Array.isArray(entry)) return entry;
|
|
18832
19877
|
const shot = entry;
|
|
18833
|
-
if (!
|
|
19878
|
+
if (!drop.some((key) => key in shot)) return entry;
|
|
18834
19879
|
changed = true;
|
|
18835
|
-
return withoutKeys(shot,
|
|
19880
|
+
return withoutKeys(shot, drop);
|
|
19881
|
+
});
|
|
19882
|
+
return changed ? out : value;
|
|
19883
|
+
}
|
|
19884
|
+
function stripPrevizRunState(value) {
|
|
19885
|
+
if (!Array.isArray(value)) return value;
|
|
19886
|
+
let changed = false;
|
|
19887
|
+
const out = value.map((entry) => {
|
|
19888
|
+
if (!isRecord2(entry)) return entry;
|
|
19889
|
+
const previz = entry.previsualization;
|
|
19890
|
+
if (!isRecord2(previz) || !STUDIO_PREVIZ_RUN_STATE_KEYS.some((key) => key in previz)) return entry;
|
|
19891
|
+
changed = true;
|
|
19892
|
+
return { ...entry, previsualization: withoutKeys(previz, STUDIO_PREVIZ_RUN_STATE_KEYS) };
|
|
18836
19893
|
});
|
|
18837
19894
|
return changed ? out : value;
|
|
18838
19895
|
}
|
|
@@ -18842,13 +19899,149 @@ function stripStudioTransientSettings(settings) {
|
|
|
18842
19899
|
if (!studio || typeof studio !== "object" || Array.isArray(studio)) return settings;
|
|
18843
19900
|
const source = studio;
|
|
18844
19901
|
const kept = withoutKeys(source, STUDIO_TRANSIENT_KEYS);
|
|
18845
|
-
const shots = stripShots(source.shots);
|
|
19902
|
+
const shots = stripPrevizRunState(stripShots(source.shots, STUDIO_SHOT_PRIVATE_KEYS));
|
|
18846
19903
|
if (source.shots !== void 0) kept.shots = shots;
|
|
18847
|
-
|
|
19904
|
+
const planned = stripLinkedOwnerState(kept);
|
|
19905
|
+
if (Object.keys(kept).length === Object.keys(source).length && shots === source.shots && planned === kept) {
|
|
18848
19906
|
return settings;
|
|
18849
19907
|
}
|
|
19908
|
+
return { ...settings, studio: planned };
|
|
19909
|
+
}
|
|
19910
|
+
function stripStudioTakeVoiceRecords(nodes) {
|
|
19911
|
+
if (!Array.isArray(nodes)) return nodes;
|
|
19912
|
+
let changed = false;
|
|
19913
|
+
const out = nodes.map((node) => {
|
|
19914
|
+
const data = isRecord2(node) ? node.data : void 0;
|
|
19915
|
+
if (!isRecord2(data)) return node;
|
|
19916
|
+
const results = stripRows(data.generatedResults, STUDIO_TAKE_PRIVATE_KEYS);
|
|
19917
|
+
const unitResults = stripRows(data.sequenceUnitResults, STUDIO_SEQUENCE_UNIT_MANIFEST_KEYS);
|
|
19918
|
+
const running = STUDIO_KEYFRAME_NODE_TRANSIENT_KEYS.some((key) => key in data);
|
|
19919
|
+
if (results === data.generatedResults && unitResults === data.sequenceUnitResults && !running) return node;
|
|
19920
|
+
changed = true;
|
|
19921
|
+
const kept = withoutKeys(data, STUDIO_KEYFRAME_NODE_TRANSIENT_KEYS);
|
|
19922
|
+
if (results !== data.generatedResults) kept.generatedResults = results;
|
|
19923
|
+
if (unitResults !== data.sequenceUnitResults) kept.sequenceUnitResults = unitResults;
|
|
19924
|
+
return { ...node, data: kept };
|
|
19925
|
+
});
|
|
19926
|
+
return changed ? out : nodes;
|
|
19927
|
+
}
|
|
19928
|
+
function stripRows(value, drop) {
|
|
19929
|
+
if (!Array.isArray(value)) return value;
|
|
19930
|
+
let changed = false;
|
|
19931
|
+
const out = value.map((row) => {
|
|
19932
|
+
if (!isRecord2(row) || !drop.some((key) => key in row)) return row;
|
|
19933
|
+
changed = true;
|
|
19934
|
+
return withoutKeys(row, drop);
|
|
19935
|
+
});
|
|
19936
|
+
return changed ? out : value;
|
|
19937
|
+
}
|
|
19938
|
+
function stripLinkedOwnerState(studio) {
|
|
19939
|
+
const takes = stripTakeUnitReviews(studio.sequenceTakes);
|
|
19940
|
+
const keyframes = stripKeyframes(studio.keyframes);
|
|
19941
|
+
const preferences = STUDIO_SEQUENCE_POLICY_KEYS.filter((key) => {
|
|
19942
|
+
const value = studio[key];
|
|
19943
|
+
return isRecord2(value) && Object.keys(value).length > 0;
|
|
19944
|
+
});
|
|
19945
|
+
if (!STUDIO_SEQUENCE_PLANNING_KEYS.some((key) => key in studio) && takes === studio.sequenceTakes && keyframes === studio.keyframes && preferences.length === 0) return studio;
|
|
19946
|
+
const kept = withoutKeys(studio, STUDIO_SEQUENCE_PLANNING_KEYS);
|
|
19947
|
+
if (takes !== studio.sequenceTakes) kept.sequenceTakes = takes;
|
|
19948
|
+
if (keyframes !== studio.keyframes) kept.keyframes = keyframes;
|
|
19949
|
+
for (const key of preferences) kept[key] = {};
|
|
19950
|
+
return kept;
|
|
19951
|
+
}
|
|
19952
|
+
function stripTakeUnitReviews(value) {
|
|
19953
|
+
if (!Array.isArray(value)) return value;
|
|
19954
|
+
let changed = false;
|
|
19955
|
+
const out = value.map((take) => {
|
|
19956
|
+
if (!isRecord2(take) || !Array.isArray(take.units)) return take;
|
|
19957
|
+
let touched = false;
|
|
19958
|
+
const units = take.units.map((unit) => {
|
|
19959
|
+
if (!isRecord2(unit) || !STUDIO_SEQUENCE_UNIT_REVIEW_KEYS.some((key) => key in unit)) return unit;
|
|
19960
|
+
touched = true;
|
|
19961
|
+
return withoutKeys(unit, STUDIO_SEQUENCE_UNIT_REVIEW_KEYS);
|
|
19962
|
+
});
|
|
19963
|
+
if (!touched) return take;
|
|
19964
|
+
changed = true;
|
|
19965
|
+
return { ...take, units };
|
|
19966
|
+
});
|
|
19967
|
+
return changed ? out : value;
|
|
19968
|
+
}
|
|
19969
|
+
function stripKeyframes(value) {
|
|
19970
|
+
if (!Array.isArray(value)) return value;
|
|
19971
|
+
let changed = false;
|
|
19972
|
+
const out = value.map((frame) => {
|
|
19973
|
+
if (!isRecord2(frame)) return frame;
|
|
19974
|
+
const kept = keyframeForReader(frame, STUDIO_KEYFRAME_REVIEW_KEYS);
|
|
19975
|
+
if (kept !== frame) changed = true;
|
|
19976
|
+
return kept;
|
|
19977
|
+
});
|
|
19978
|
+
return changed ? out : value;
|
|
19979
|
+
}
|
|
19980
|
+
function keyframeForReader(frame, drop) {
|
|
19981
|
+
const acceptance = frame.acceptance;
|
|
19982
|
+
const waived = isRecord2(acceptance) && STUDIO_KEYFRAME_ACCEPTANCE_PRIVATE_KEYS.some((key) => key in acceptance);
|
|
19983
|
+
if (!waived && !drop.some((key) => key in frame)) return frame;
|
|
19984
|
+
const kept = withoutKeys(frame, drop);
|
|
19985
|
+
if (waived) kept.acceptance = withoutKeys(acceptance, STUDIO_KEYFRAME_ACCEPTANCE_PRIVATE_KEYS);
|
|
19986
|
+
return kept;
|
|
19987
|
+
}
|
|
19988
|
+
function stripStudioDraftSettings(settings) {
|
|
19989
|
+
if (!settings || typeof settings !== "object") return settings;
|
|
19990
|
+
const studio = settings.studio;
|
|
19991
|
+
if (!isRecord2(studio)) return settings;
|
|
19992
|
+
const shots = stripShots(studio.shots, STUDIO_SHOT_PRIVATE_KEYS);
|
|
19993
|
+
const trash = stripBin(studio.trash);
|
|
19994
|
+
const planned = stripLinkedOwnerState(studio);
|
|
19995
|
+
if (shots === studio.shots && trash === studio.trash && planned === studio) return settings;
|
|
19996
|
+
const kept = { ...planned };
|
|
19997
|
+
if (shots !== studio.shots) kept.shots = shots;
|
|
19998
|
+
if (trash !== studio.trash) kept.trash = trash;
|
|
18850
19999
|
return { ...settings, studio: kept };
|
|
18851
20000
|
}
|
|
20001
|
+
function stripBin(trash) {
|
|
20002
|
+
if (!Array.isArray(trash)) return trash;
|
|
20003
|
+
let changed = false;
|
|
20004
|
+
const out = [];
|
|
20005
|
+
for (const entry of trash) {
|
|
20006
|
+
if (isRecord2(entry) && entry.kind === "slot") {
|
|
20007
|
+
changed = true;
|
|
20008
|
+
continue;
|
|
20009
|
+
}
|
|
20010
|
+
const kept = !isRecord2(entry) ? entry : entry.kind === "shot" ? binSceneForReader(entry) : entry.kind === "keyframe" ? binKeyframeForReader(entry) : binTakeForReader(entry);
|
|
20011
|
+
if (kept !== entry) changed = true;
|
|
20012
|
+
out.push(kept);
|
|
20013
|
+
}
|
|
20014
|
+
return changed ? out : trash;
|
|
20015
|
+
}
|
|
20016
|
+
function binSceneForReader(entry) {
|
|
20017
|
+
const graph = entry.graph;
|
|
20018
|
+
if (!isRecord2(graph)) return entry;
|
|
20019
|
+
const nodes = stripStudioTakeVoiceRecords(graph.nodes);
|
|
20020
|
+
const settings = stripStudioDraftSettings(graph.settings);
|
|
20021
|
+
if (nodes === graph.nodes && settings === graph.settings) return entry;
|
|
20022
|
+
return { ...entry, graph: { ...graph, nodes, settings } };
|
|
20023
|
+
}
|
|
20024
|
+
function binTakeForReader(entry) {
|
|
20025
|
+
const result = entry.result;
|
|
20026
|
+
if (!isRecord2(result) || !STUDIO_TAKE_PRIVATE_KEYS.some((key) => key in result)) return entry;
|
|
20027
|
+
return { ...entry, result: withoutKeys(result, STUDIO_TAKE_PRIVATE_KEYS) };
|
|
20028
|
+
}
|
|
20029
|
+
function binKeyframeForReader(entry) {
|
|
20030
|
+
const keyframe = entry.keyframe;
|
|
20031
|
+
if (!isRecord2(keyframe)) return entry;
|
|
20032
|
+
const kept = keyframeForReader(keyframe, STUDIO_KEYFRAME_PRIVATE_KEYS);
|
|
20033
|
+
return kept === keyframe ? entry : { ...entry, keyframe: kept };
|
|
20034
|
+
}
|
|
20035
|
+
function stripStudioDraftWorkflow(row) {
|
|
20036
|
+
const nodes = "nodes" in row ? stripStudioTakeVoiceRecords(row.nodes) : row.nodes;
|
|
20037
|
+
const settings = "settings" in row ? stripStudioDraftSettings(row.settings) : row.settings;
|
|
20038
|
+
if (nodes === row.nodes && settings === row.settings) return row;
|
|
20039
|
+
return {
|
|
20040
|
+
...row,
|
|
20041
|
+
...nodes !== row.nodes ? { nodes } : {},
|
|
20042
|
+
...settings !== row.settings ? { settings } : {}
|
|
20043
|
+
};
|
|
20044
|
+
}
|
|
18852
20045
|
var scene3DV2OverrideInputSchema = zod.z.discriminatedUnion("kind", [
|
|
18853
20046
|
zod.z.object({
|
|
18854
20047
|
kind: zod.z.literal("entity-transform"),
|
|
@@ -19293,6 +20486,123 @@ function mergeEdlSourceOffsets(edl, offsets, opts) {
|
|
|
19293
20486
|
const merged = Array.isArray(edl?.sources) ? { ...edl, sources: edl.sources.map((s) => s && typeof s === "object" && next.has(s.id) ? { ...s, offsetMs: next.get(s.id) } : s) } : { ...edl };
|
|
19294
20487
|
return { edl: merged, ...anchor !== void 0 ? { anchor } : {}, applied, ignored };
|
|
19295
20488
|
}
|
|
20489
|
+
var AUDIO_SYNC_MIN_CONFIDENCE = 0.5;
|
|
20490
|
+
function readAudioSyncRows(sync) {
|
|
20491
|
+
let value = sync;
|
|
20492
|
+
if (typeof value === "string") {
|
|
20493
|
+
try {
|
|
20494
|
+
value = JSON.parse(value);
|
|
20495
|
+
} catch {
|
|
20496
|
+
return null;
|
|
20497
|
+
}
|
|
20498
|
+
}
|
|
20499
|
+
if (!value || typeof value !== "object") return null;
|
|
20500
|
+
const { reference, offsets } = value;
|
|
20501
|
+
if (!Array.isArray(offsets)) return null;
|
|
20502
|
+
const rows = /* @__PURE__ */ new Map();
|
|
20503
|
+
for (const row of offsets) {
|
|
20504
|
+
if (!row || typeof row !== "object") return null;
|
|
20505
|
+
const { sourceId, offsetMs, confidence } = row;
|
|
20506
|
+
if (typeof sourceId !== "string" || !isFiniteNumber(offsetMs)) return null;
|
|
20507
|
+
if (!rows.has(sourceId)) rows.set(sourceId, { offsetMs, confidence: isFiniteNumber(confidence) ? confidence : 0 });
|
|
20508
|
+
}
|
|
20509
|
+
if (typeof reference === "string" && reference && !rows.has(reference)) rows.set(reference, { offsetMs: 0, confidence: 1 });
|
|
20510
|
+
return rows;
|
|
20511
|
+
}
|
|
20512
|
+
var handSet = (s) => isFiniteNumber(s.offsetMs);
|
|
20513
|
+
function plannerClockSource(sources) {
|
|
20514
|
+
return sources.find((s) => s.role === "master-audio") ?? sources[0];
|
|
20515
|
+
}
|
|
20516
|
+
function applyAudioSyncOffsets(sources, sync) {
|
|
20517
|
+
const rows = readAudioSyncRows(sync);
|
|
20518
|
+
if (!rows) return { ok: false, issues: [{ code: "not-audio-sync" }] };
|
|
20519
|
+
const list = Array.isArray(sources) ? sources.filter((s) => !!s && typeof s === "object") : [];
|
|
20520
|
+
const anchor = plannerClockSource(list);
|
|
20521
|
+
if (!anchor) return { ok: true, sources: [...list], applied: [] };
|
|
20522
|
+
const issues = [];
|
|
20523
|
+
for (const s of list) if (s.offsetMs !== void 0 && !handSet(s)) issues.push({ code: "invalid-offset", sourceId: s.id });
|
|
20524
|
+
if (handSet(anchor) && anchor.offsetMs !== 0) {
|
|
20525
|
+
issues.push({ code: "anchor-offset", sourceId: anchor.id, offsetMs: anchor.offsetMs });
|
|
20526
|
+
}
|
|
20527
|
+
const measured = {};
|
|
20528
|
+
for (const s of list) {
|
|
20529
|
+
if (s.id === anchor.id || handSet(s)) continue;
|
|
20530
|
+
const row = rows.get(s.id);
|
|
20531
|
+
if (!row) issues.push({ code: "unmeasured", sourceId: s.id });
|
|
20532
|
+
else if (!(row.confidence >= AUDIO_SYNC_MIN_CONFIDENCE)) issues.push({ code: "weak-match", sourceId: s.id, confidence: row.confidence, anchor: false });
|
|
20533
|
+
else measured[s.id] = row.offsetMs;
|
|
20534
|
+
}
|
|
20535
|
+
if (Object.keys(measured).length > 0) {
|
|
20536
|
+
const row = rows.get(anchor.id);
|
|
20537
|
+
if (!row) issues.push({ code: "anchor-unmeasured", sourceId: anchor.id });
|
|
20538
|
+
else if (!(row.confidence >= AUDIO_SYNC_MIN_CONFIDENCE)) issues.push({ code: "weak-match", sourceId: anchor.id, confidence: row.confidence, anchor: true });
|
|
20539
|
+
else measured[anchor.id] = row.offsetMs;
|
|
20540
|
+
}
|
|
20541
|
+
if (issues.length > 0) return { ok: false, issues };
|
|
20542
|
+
if (Object.keys(measured).length === 0) return { ok: true, sources: [...list], anchor: anchor.id, applied: [] };
|
|
20543
|
+
const pseudo = { version: 1, clock: "master", sources: list, segments: [] };
|
|
20544
|
+
const merged = mergeEdlSourceOffsets(pseudo, measured, { anchor: anchor.id });
|
|
20545
|
+
const byId = new Map(merged.edl.sources.map((s) => [s.id, s.offsetMs]));
|
|
20546
|
+
const applied = new Set(merged.applied);
|
|
20547
|
+
return {
|
|
20548
|
+
ok: true,
|
|
20549
|
+
sources: list.map((s) => applied.has(s.id) ? { ...s, offsetMs: byId.get(s.id) } : s),
|
|
20550
|
+
anchor: anchor.id,
|
|
20551
|
+
applied: merged.applied
|
|
20552
|
+
};
|
|
20553
|
+
}
|
|
20554
|
+
function resolveEditPlanSources(sources, opts = {}) {
|
|
20555
|
+
const list = Array.isArray(sources) ? sources.filter((s) => !!s && typeof s === "object") : [];
|
|
20556
|
+
const anchor = plannerClockSource(list);
|
|
20557
|
+
const issues = [];
|
|
20558
|
+
let planned = [...list];
|
|
20559
|
+
if (opts.offsets !== void 0) {
|
|
20560
|
+
const synced = applyAudioSyncOffsets(list, opts.offsets);
|
|
20561
|
+
if (synced.ok) planned = synced.sources;
|
|
20562
|
+
else issues.push(...synced.issues);
|
|
20563
|
+
} else {
|
|
20564
|
+
for (const s of list) if (s.offsetMs !== void 0 && !handSet(s)) issues.push({ code: "invalid-offset", sourceId: s.id });
|
|
20565
|
+
if (anchor && handSet(anchor) && anchor.offsetMs !== 0) {
|
|
20566
|
+
issues.push({ code: "anchor-offset", sourceId: anchor.id, offsetMs: anchor.offsetMs });
|
|
20567
|
+
}
|
|
20568
|
+
}
|
|
20569
|
+
const spoken = opts.transcriptSourceId ? planned.find((s) => s.id === opts.transcriptSourceId) : void 0;
|
|
20570
|
+
if (spoken && anchor && spoken.id !== anchor.id && handSet(spoken) && spoken.offsetMs !== 0) {
|
|
20571
|
+
issues.push({ code: "transcript-off-clock", sourceId: spoken.id, masterId: anchor.id, offsetMs: spoken.offsetMs });
|
|
20572
|
+
}
|
|
20573
|
+
if (issues.length > 0) return { ok: false, issues };
|
|
20574
|
+
return { ok: true, sources: planned, ...spoken ? { transcriptSourceId: spoken.id } : {} };
|
|
20575
|
+
}
|
|
20576
|
+
function editPlanTranscriptOrigin(producerId, typeOf, edges) {
|
|
20577
|
+
if (typeOf(producerId) !== "transcribe") return void 0;
|
|
20578
|
+
let current = producerId;
|
|
20579
|
+
for (let hop = 0; hop < 4; hop++) {
|
|
20580
|
+
const upstream = [...new Set(edges.filter((e) => e.target === current).map((e) => e.source))];
|
|
20581
|
+
if (upstream.length !== 1) return void 0;
|
|
20582
|
+
const up = upstream[0];
|
|
20583
|
+
if (typeOf(up) !== "extract-audio") return up;
|
|
20584
|
+
current = up;
|
|
20585
|
+
}
|
|
20586
|
+
return void 0;
|
|
20587
|
+
}
|
|
20588
|
+
function describeAudioSyncOffsetIssue(issue2, labelOf = (id) => id) {
|
|
20589
|
+
switch (issue2.code) {
|
|
20590
|
+
case "transcript-off-clock":
|
|
20591
|
+
return `the transcript was made from "${labelOf(issue2.sourceId)}", which is ${issue2.offsetMs} ms off the master "${labelOf(issue2.masterId)}" \u2014 the plan follows the master's clock, so transcribe "${labelOf(issue2.masterId)}", or mark "${labelOf(issue2.sourceId)}" as master audio`;
|
|
20592
|
+
case "not-audio-sync":
|
|
20593
|
+
return "the offsets carry no Audio Sync result \u2014 pass its job's output_data.json (on the canvas: connect Audio Sync's Offsets output and run it)";
|
|
20594
|
+
case "invalid-offset":
|
|
20595
|
+
return `the offset set on "${labelOf(issue2.sourceId)}" is not a number of milliseconds`;
|
|
20596
|
+
case "anchor-offset":
|
|
20597
|
+
return `"${labelOf(issue2.sourceId)}" is the master (the plan follows its clock), so its offset must be 0, not ${issue2.offsetMs} ms`;
|
|
20598
|
+
case "anchor-unmeasured":
|
|
20599
|
+
return `audio-sync did not measure "${labelOf(issue2.sourceId)}", the master the other sources are timed against \u2014 add it to audio-sync's sources`;
|
|
20600
|
+
case "weak-match":
|
|
20601
|
+
return issue2.anchor ? `audio-sync's match for "${labelOf(issue2.sourceId)}", the master the other sources are timed against, is too weak to trust (confidence ${issue2.confidence}; ${AUDIO_SYNC_MIN_CONFIDENCE} needed) \u2014 set the other sources' offsets by hand, or mark a better-recorded source as master audio` : `audio-sync's match for "${labelOf(issue2.sourceId)}" is too weak to trust (confidence ${issue2.confidence}; ${AUDIO_SYNC_MIN_CONFIDENCE} needed) \u2014 set its offset by hand`;
|
|
20602
|
+
case "unmeasured":
|
|
20603
|
+
return `"${labelOf(issue2.sourceId)}" was not measured by audio-sync \u2014 wire it into audio-sync, or set its offset by hand (0 if it started with the master)`;
|
|
20604
|
+
}
|
|
20605
|
+
}
|
|
19296
20606
|
var EDL_FULL_FRAME = Object.freeze({ x: 0, y: 0, w: 1, h: 1 });
|
|
19297
20607
|
function isInFrameRegion(r) {
|
|
19298
20608
|
if (!r || typeof r !== "object") return false;
|
|
@@ -19805,6 +21115,105 @@ function normalizeTranscript(input) {
|
|
|
19805
21115
|
};
|
|
19806
21116
|
}
|
|
19807
21117
|
|
|
21118
|
+
// src/camera-switch-contract.ts
|
|
21119
|
+
var CAMERA_SWITCH_DEFAULTS = Object.freeze({
|
|
21120
|
+
/** The shortest shot; a shorter turn (an interjection) holds the shot. */
|
|
21121
|
+
minShotMs: 2500,
|
|
21122
|
+
/** Cut this long before the new speaker starts. */
|
|
21123
|
+
leadMs: 200,
|
|
21124
|
+
/** With a `wide` camera: break to it after this long on one camera. */
|
|
21125
|
+
maxShotMs: 2e4,
|
|
21126
|
+
/** With a `wide` camera: every N-th cut goes to the wide (0 = off). */
|
|
21127
|
+
wideEvery: 0,
|
|
21128
|
+
/** Overlapping speech → a side-by-side / stacked layout hint. */
|
|
21129
|
+
layoutHints: false
|
|
21130
|
+
});
|
|
21131
|
+
var CAMERA_SWITCH_CREDIT_ID = "camera-switch";
|
|
21132
|
+
var parseMaybe = (raw) => {
|
|
21133
|
+
if (typeof raw !== "string") return raw;
|
|
21134
|
+
try {
|
|
21135
|
+
return JSON.parse(raw);
|
|
21136
|
+
} catch {
|
|
21137
|
+
return void 0;
|
|
21138
|
+
}
|
|
21139
|
+
};
|
|
21140
|
+
function transcriptSpeakerLabels(transcript) {
|
|
21141
|
+
const words = parseMaybe(transcript)?.words;
|
|
21142
|
+
if (!Array.isArray(words)) return [];
|
|
21143
|
+
const seen = /* @__PURE__ */ new Set();
|
|
21144
|
+
for (const w of words) {
|
|
21145
|
+
const s = w?.speaker;
|
|
21146
|
+
if (typeof s === "string" && s && !seen.has(s)) seen.add(s);
|
|
21147
|
+
}
|
|
21148
|
+
return [...seen];
|
|
21149
|
+
}
|
|
21150
|
+
function cameraSwitchCameras(edl) {
|
|
21151
|
+
const sources = parseMaybe(edl)?.sources;
|
|
21152
|
+
if (!Array.isArray(sources)) return [];
|
|
21153
|
+
return sources.filter((s) => !!s && typeof s.id === "string").filter((s) => s.kind !== "audio" && s.role !== "wide" && s.role !== "screen" && s.role !== "master-audio").map((s) => ({ id: s.id, ...s.role ? { role: s.role } : {} }));
|
|
21154
|
+
}
|
|
21155
|
+
var CAMERA_SWITCH_BOUNDS = Object.freeze({
|
|
21156
|
+
minShotMs: Object.freeze({ min: 500, max: 6e4 }),
|
|
21157
|
+
leadMs: Object.freeze({ min: 0, max: 5e3 }),
|
|
21158
|
+
maxShotMs: Object.freeze({ min: 0, max: 6e5 }),
|
|
21159
|
+
wideEvery: Object.freeze({ min: 0, max: 20 })
|
|
21160
|
+
});
|
|
21161
|
+
var CAMERA_SWITCH_NAME_MAX = 80;
|
|
21162
|
+
function clampCameraSwitchSetting(key, value) {
|
|
21163
|
+
if (typeof value !== "number" || !Number.isFinite(value)) return void 0;
|
|
21164
|
+
const { min, max } = CAMERA_SWITCH_BOUNDS[key];
|
|
21165
|
+
return Math.min(max, Math.max(min, Math.round(value)));
|
|
21166
|
+
}
|
|
21167
|
+
function cleanSpeakerNames(raw) {
|
|
21168
|
+
if (!raw || typeof raw !== "object" || Array.isArray(raw)) return {};
|
|
21169
|
+
const out = {};
|
|
21170
|
+
for (const [label, name] of Object.entries(raw)) {
|
|
21171
|
+
const trimmed2 = typeof name === "string" ? name.trim() : "";
|
|
21172
|
+
if (label && trimmed2) out[label] = trimmed2.slice(0, CAMERA_SWITCH_NAME_MAX);
|
|
21173
|
+
}
|
|
21174
|
+
return out;
|
|
21175
|
+
}
|
|
21176
|
+
function cameraSwitchEdlProblem(edl) {
|
|
21177
|
+
const v = parseMaybe(edl);
|
|
21178
|
+
if (!v || typeof v !== "object" || Array.isArray(v)) return "camera-switch: `edl` must be one edit (an EDL object).";
|
|
21179
|
+
if (Array.isArray(v.clips)) return "camera-switch: `edl` is a clip set \u2014 pass one clip's EDL (a clip set fans out one run per clip on the canvas).";
|
|
21180
|
+
if (!Array.isArray(v.sources) || !Array.isArray(v.segments)) return "camera-switch: `edl` needs `sources` and `segments`.";
|
|
21181
|
+
if (v.segments.length === 0) return "camera-switch: `edl` has no segments.";
|
|
21182
|
+
const num2 = (x) => typeof x === "number" && Number.isFinite(x) ? x : void 0;
|
|
21183
|
+
for (const [i, row] of v.segments.entries()) {
|
|
21184
|
+
const seg = row;
|
|
21185
|
+
const inMs = num2(seg?.inMs), outMs = num2(seg?.outMs);
|
|
21186
|
+
if (inMs === void 0 || outMs === void 0 || !(outMs > inMs)) return `camera-switch: segment ${i} needs a numeric inMs < outMs.`;
|
|
21187
|
+
}
|
|
21188
|
+
if (v.clock === "output") return "camera-switch: the edit must be on the master clock (an edit-plan EDL), not a rendered output's.";
|
|
21189
|
+
return null;
|
|
21190
|
+
}
|
|
21191
|
+
function defaultSpeakerMap(labels, cameraIds, existing = {}) {
|
|
21192
|
+
const out = {};
|
|
21193
|
+
labels.forEach((label, i) => {
|
|
21194
|
+
if (Object.prototype.hasOwnProperty.call(existing, label)) {
|
|
21195
|
+
const kept = existing[label];
|
|
21196
|
+
if (typeof kept === "string") out[label] = kept;
|
|
21197
|
+
return;
|
|
21198
|
+
}
|
|
21199
|
+
if (i < cameraIds.length) out[label] = cameraIds[i];
|
|
21200
|
+
});
|
|
21201
|
+
return out;
|
|
21202
|
+
}
|
|
21203
|
+
function cameraSwitchSettingsPayload(data, edl, transcript) {
|
|
21204
|
+
const existing = data.speakerMap && typeof data.speakerMap === "object" ? data.speakerMap : {};
|
|
21205
|
+
const out = {
|
|
21206
|
+
speakerMap: defaultSpeakerMap(transcriptSpeakerLabels(transcript), cameraSwitchCameras(edl).map((c) => c.id), existing),
|
|
21207
|
+
speakerNames: cleanSpeakerNames(data.speakerNames),
|
|
21208
|
+
layoutHints: data.layoutHints === true
|
|
21209
|
+
};
|
|
21210
|
+
for (const key of Object.keys(CAMERA_SWITCH_BOUNDS)) {
|
|
21211
|
+
const v = clampCameraSwitchSetting(key, data[key]);
|
|
21212
|
+
if (v !== void 0) out[key] = v;
|
|
21213
|
+
}
|
|
21214
|
+
return out;
|
|
21215
|
+
}
|
|
21216
|
+
|
|
19808
21217
|
// src/edit-plan-contract.ts
|
|
19809
21218
|
var EDIT_PLAN_MODES = ["tighten", "clips", "chapters"];
|
|
19810
21219
|
var EDIT_PLAN_TIERS = ["economy", "standard", "premium"];
|
|
@@ -19843,8 +21252,10 @@ function unwrapEditPlanOutput(outputData) {
|
|
|
19843
21252
|
}
|
|
19844
21253
|
|
|
19845
21254
|
exports.ACCESS_LEVELS = ACCESS_LEVELS;
|
|
21255
|
+
exports.ACTION_CARD_KINDS = ACTION_CARD_KINDS;
|
|
19846
21256
|
exports.ACTIVE_SCENE_HELPERS = ACTIVE_SCENE_HELPERS;
|
|
19847
21257
|
exports.ADVANCED_MODE_UNAVAILABLE_REASON = ADVANCED_MODE_UNAVAILABLE_REASON;
|
|
21258
|
+
exports.ADVICE_FAMILIES = ADVICE_FAMILIES;
|
|
19848
21259
|
exports.AGGREGATEABLE_TYPES = AGGREGATEABLE_TYPES;
|
|
19849
21260
|
exports.AGGREGATE_LANE_SOURCE_TYPES = AGGREGATE_LANE_SOURCE_TYPES;
|
|
19850
21261
|
exports.AI_AVATAR_DURATION_BUCKETS = AI_AVATAR_DURATION_BUCKETS;
|
|
@@ -19857,6 +21268,7 @@ exports.ALL_CAPTION_STYLES = ALL_CAPTION_STYLES;
|
|
|
19857
21268
|
exports.ANIMALS = ANIMALS;
|
|
19858
21269
|
exports.ANIMAL_SUBCATEGORY_LABELS = ANIMAL_SUBCATEGORY_LABELS;
|
|
19859
21270
|
exports.ANIMAL_SUBCATEGORY_ORDER = ANIMAL_SUBCATEGORY_ORDER;
|
|
21271
|
+
exports.ANIMATE_SUB_GATES = ANIMATE_SUB_GATES;
|
|
19860
21272
|
exports.ASPECT_RATIO_DIMENSIONS = ASPECT_RATIO_DIMENSIONS;
|
|
19861
21273
|
exports.AUDIO_ADDON_PROVIDERS = AUDIO_ADDON_PROVIDERS;
|
|
19862
21274
|
exports.AUDIO_CROSSFADE_CURVES = AUDIO_CROSSFADE_CURVES;
|
|
@@ -19866,8 +21278,10 @@ exports.AUDIO_FX_PRESET_LABELS = AUDIO_FX_PRESET_LABELS;
|
|
|
19866
21278
|
exports.AUDIO_FX_PRESET_SET = AUDIO_FX_PRESET_SET;
|
|
19867
21279
|
exports.AUDIO_FX_REVERB_PRESETS = AUDIO_FX_REVERB_PRESETS;
|
|
19868
21280
|
exports.AUDIO_PRODUCER_TYPES = AUDIO_PRODUCER_TYPES;
|
|
21281
|
+
exports.AUDIO_SYNC_MIN_CONFIDENCE = AUDIO_SYNC_MIN_CONFIDENCE;
|
|
19869
21282
|
exports.AddBRollResultSchema = AddBRollResultSchema;
|
|
19870
21283
|
exports.AnchorSceneStyleResultSchema = AnchorSceneStyleResultSchema;
|
|
21284
|
+
exports.AnimateSubGateSchema = AnimateSubGateSchema;
|
|
19871
21285
|
exports.AssetRefSchema = AssetRefSchema;
|
|
19872
21286
|
exports.AuditImagesResultSchema = AuditImagesResultSchema;
|
|
19873
21287
|
exports.AuditImagesShotEntrySchema = AuditImagesShotEntrySchema;
|
|
@@ -19877,13 +21291,19 @@ exports.AvatarPayloadError = AvatarPayloadError;
|
|
|
19877
21291
|
exports.BOARD_TO_ASSET_TYPE = BOARD_TO_ASSET_TYPE;
|
|
19878
21292
|
exports.BOARD_TO_COLUMN = BOARD_TO_COLUMN;
|
|
19879
21293
|
exports.BOARD_VARIANTS = BOARD_VARIANTS;
|
|
21294
|
+
exports.BRAND_LESSON_KINDS = BRAND_LESSON_KINDS;
|
|
19880
21295
|
exports.BridgeToNextSceneInputSchema = BridgeToNextSceneInputSchema;
|
|
19881
21296
|
exports.BridgeToNextSceneResultSchema = BridgeToNextSceneResultSchema;
|
|
21297
|
+
exports.CAMERA_SWITCH_BOUNDS = CAMERA_SWITCH_BOUNDS;
|
|
21298
|
+
exports.CAMERA_SWITCH_CREDIT_ID = CAMERA_SWITCH_CREDIT_ID;
|
|
21299
|
+
exports.CAMERA_SWITCH_DEFAULTS = CAMERA_SWITCH_DEFAULTS;
|
|
21300
|
+
exports.CAMERA_SWITCH_NAME_MAX = CAMERA_SWITCH_NAME_MAX;
|
|
19882
21301
|
exports.CAPTION_LEVER_BOUNDS = CAPTION_LEVER_BOUNDS;
|
|
19883
21302
|
exports.CAPTION_LOOKS = CAPTION_LOOKS;
|
|
19884
21303
|
exports.CAPTION_LOOK_IDS = CAPTION_LOOK_IDS;
|
|
19885
21304
|
exports.CAPTION_MAX_WORDS_PER_LINE_MAX = CAPTION_MAX_WORDS_PER_LINE_MAX;
|
|
19886
21305
|
exports.CAPTION_MAX_WORDS_PER_LINE_MIN = CAPTION_MAX_WORDS_PER_LINE_MIN;
|
|
21306
|
+
exports.CARD_OUTCOME_STATES = CARD_OUTCOME_STATES;
|
|
19887
21307
|
exports.CATEGORY_DURATION_DEFAULTS = CATEGORY_DURATION_DEFAULTS;
|
|
19888
21308
|
exports.CHARACTER_ASPECT_DEFAULTS = CHARACTER_ASPECT_DEFAULTS;
|
|
19889
21309
|
exports.CHARACTER_ASPECT_OPTIONS = CHARACTER_ASPECT_OPTIONS;
|
|
@@ -19918,8 +21338,24 @@ exports.COMBINE_TRANSITIONS = COMBINE_TRANSITIONS;
|
|
|
19918
21338
|
exports.COMBINE_TRANSITION_GROUP_LABELS = COMBINE_TRANSITION_GROUP_LABELS;
|
|
19919
21339
|
exports.COMBINE_TRANSITION_GROUP_ORDER = COMBINE_TRANSITION_GROUP_ORDER;
|
|
19920
21340
|
exports.COMBINE_TRANSITION_IDS = COMBINE_TRANSITION_IDS;
|
|
21341
|
+
exports.COMPETITORS_MAX = COMPETITORS_MAX;
|
|
21342
|
+
exports.COMPETITOR_ABOUT_PLATFORMS = COMPETITOR_ABOUT_PLATFORMS;
|
|
21343
|
+
exports.COMPETITOR_ACCOUNT_KEYS = COMPETITOR_ACCOUNT_KEYS;
|
|
21344
|
+
exports.COMPETITOR_DEFAULT_ABOUT_PLATFORMS = COMPETITOR_DEFAULT_ABOUT_PLATFORMS;
|
|
21345
|
+
exports.COMPETITOR_SCAN_CREDIT_COSTS = COMPETITOR_SCAN_CREDIT_COSTS;
|
|
21346
|
+
exports.COMPETITOR_SCAN_MAX_SEARCHES = COMPETITOR_SCAN_MAX_SEARCHES;
|
|
21347
|
+
exports.COMPETITOR_SCAN_NODE_TYPE = COMPETITOR_SCAN_NODE_TYPE;
|
|
21348
|
+
exports.COMPETITOR_SCHEDULES = COMPETITOR_SCHEDULES;
|
|
19921
21349
|
exports.COMPOSER_PLAN_FIELDS = COMPOSER_PLAN_FIELDS;
|
|
19922
21350
|
exports.COMPOSER_PLAN_MAP = COMPOSER_PLAN_MAP;
|
|
21351
|
+
exports.CONTENT_IDEAS_BRAND_MAX = CONTENT_IDEAS_BRAND_MAX;
|
|
21352
|
+
exports.CONTENT_IDEAS_DEFAULT_COUNT = CONTENT_IDEAS_DEFAULT_COUNT;
|
|
21353
|
+
exports.CONTENT_IDEAS_LANGUAGE_MAX = CONTENT_IDEAS_LANGUAGE_MAX;
|
|
21354
|
+
exports.CONTENT_IDEAS_MAX_COUNT = CONTENT_IDEAS_MAX_COUNT;
|
|
21355
|
+
exports.CONTENT_IDEAS_MAX_RECIPE_INPUTS = CONTENT_IDEAS_MAX_RECIPE_INPUTS;
|
|
21356
|
+
exports.CONTENT_IDEAS_PER_CHARGE = CONTENT_IDEAS_PER_CHARGE;
|
|
21357
|
+
exports.CONTENT_RECIPE_IDEAS_CREDIT_IDS = CONTENT_RECIPE_IDEAS_CREDIT_IDS;
|
|
21358
|
+
exports.CONTENT_RECIPE_SOURCE_MAX = CONTENT_RECIPE_SOURCE_MAX;
|
|
19923
21359
|
exports.CONTENT_TYPES_BY_PLATFORM = CONTENT_TYPES_BY_PLATFORM;
|
|
19924
21360
|
exports.CREATURE_ATTACH_COLUMNS = CREATURE_ATTACH_COLUMNS;
|
|
19925
21361
|
exports.CREDIT_BASE_USD = CREDIT_BASE_USD;
|
|
@@ -19939,6 +21375,7 @@ exports.DEFAULT_FRAME_DELIVERY = DEFAULT_FRAME_DELIVERY;
|
|
|
19939
21375
|
exports.DEFAULT_FRAME_FIT = DEFAULT_FRAME_FIT;
|
|
19940
21376
|
exports.DEFAULT_LABEL_BY_SOURCE = DEFAULT_LABEL_BY_SOURCE;
|
|
19941
21377
|
exports.DEFAULT_LOCATION_USAGE_MODE = DEFAULT_LOCATION_USAGE_MODE;
|
|
21378
|
+
exports.DEFAULT_MUSIC_PROVIDER = DEFAULT_MUSIC_PROVIDER;
|
|
19942
21379
|
exports.DEFAULT_OVERLAY_QR = DEFAULT_OVERLAY_QR;
|
|
19943
21380
|
exports.DEFAULT_OVERLAY_SHAPE = DEFAULT_OVERLAY_SHAPE;
|
|
19944
21381
|
exports.DEFAULT_OVERLAY_TEXT = DEFAULT_OVERLAY_TEXT;
|
|
@@ -19948,6 +21385,7 @@ exports.DEFAULT_SECTIONS = DEFAULT_SECTIONS;
|
|
|
19948
21385
|
exports.DEFAULT_SUBTITLE_LOOK = DEFAULT_SUBTITLE_LOOK;
|
|
19949
21386
|
exports.DEFAULT_SUNO_MODEL = DEFAULT_SUNO_MODEL;
|
|
19950
21387
|
exports.DEFAULT_TEMPLATE_CATEGORY = DEFAULT_TEMPLATE_CATEGORY;
|
|
21388
|
+
exports.DEFAULT_TEXT_TO_AUDIO_PROVIDER = DEFAULT_TEXT_TO_AUDIO_PROVIDER;
|
|
19951
21389
|
exports.DEFAULT_TRANSCRIBE_NODE_PROVIDER = DEFAULT_TRANSCRIBE_NODE_PROVIDER;
|
|
19952
21390
|
exports.DEFAULT_TRANSCRIBE_PROVIDER = DEFAULT_TRANSCRIBE_PROVIDER;
|
|
19953
21391
|
exports.DEFAULT_USAGE_MODE = DEFAULT_USAGE_MODE;
|
|
@@ -19998,6 +21436,8 @@ exports.EntityStaleEventSchema = EntityStaleEventSchema;
|
|
|
19998
21436
|
exports.EntityStateChangeEventSchema = EntityStateChangeEventSchema;
|
|
19999
21437
|
exports.FACE_SWAP_PROVIDERS = FACE_SWAP_PROVIDERS;
|
|
20000
21438
|
exports.FAL_LIP_SYNC_PROVIDERS = FAL_LIP_SYNC_PROVIDERS;
|
|
21439
|
+
exports.FAN_IN_TARGETS = FAN_IN_TARGETS;
|
|
21440
|
+
exports.FAN_OUT_EACH_HANDLES = FAN_OUT_EACH_HANDLES;
|
|
20001
21441
|
exports.FAN_OUT_EACH_TYPES = FAN_OUT_EACH_TYPES;
|
|
20002
21442
|
exports.FEATURED_ENTITIES = FEATURED_ENTITIES;
|
|
20003
21443
|
exports.FILM_BASE_CREDITS = FILM_BASE_CREDITS;
|
|
@@ -20081,6 +21521,7 @@ exports.KEYFRAME_CREDITS_PER_SHOT = KEYFRAME_CREDITS_PER_SHOT;
|
|
|
20081
21521
|
exports.KINETIC_CAPTION_STYLES = KINETIC_CAPTION_STYLES;
|
|
20082
21522
|
exports.KINETIC_ONLY_CAPTION_LEVER_KEYS = KINETIC_ONLY_CAPTION_LEVER_KEYS;
|
|
20083
21523
|
exports.LANGUAGES = LANGUAGES;
|
|
21524
|
+
exports.LEGACY_EXPOSED_FIELD_KEYS = LEGACY_EXPOSED_FIELD_KEYS;
|
|
20084
21525
|
exports.LEGACY_LOTTIE_HOST_REMAP = LEGACY_LOTTIE_HOST_REMAP;
|
|
20085
21526
|
exports.LEGACY_TEMPLATE_CATEGORIES = LEGACY_TEMPLATE_CATEGORIES;
|
|
20086
21527
|
exports.LIP_SYNC_DURATION_BUCKETS = LIP_SYNC_DURATION_BUCKETS;
|
|
@@ -20106,10 +21547,15 @@ exports.LOCATION_REFERENCE_PHOTO_KIND_LABELS = LOCATION_REFERENCE_PHOTO_KIND_LAB
|
|
|
20106
21547
|
exports.LOCATION_USAGE_MODES = LOCATION_USAGE_MODES;
|
|
20107
21548
|
exports.LOTTIE_OVERLAY_CATALOG = LOTTIE_OVERLAY_CATALOG;
|
|
20108
21549
|
exports.LOTTIE_SLOT_FIELD_PREFIX = LOTTIE_SLOT_FIELD_PREFIX;
|
|
21550
|
+
exports.LTX_EXTEND_DURATION = LTX_EXTEND_DURATION;
|
|
21551
|
+
exports.LTX_EXTEND_PER_SECOND_CREDIT_ID = LTX_EXTEND_PER_SECOND_CREDIT_ID;
|
|
21552
|
+
exports.LTX_RETAKE_MIN_DURATION_SEC = LTX_RETAKE_MIN_DURATION_SEC;
|
|
21553
|
+
exports.LTX_RETAKE_PER_SECOND_CREDIT_ID = LTX_RETAKE_PER_SECOND_CREDIT_ID;
|
|
20109
21554
|
exports.LocationImageCriticVerdictSchema = LocationImageCriticVerdictSchema;
|
|
20110
21555
|
exports.LocationMetadataSchema = LocationMetadataSchema;
|
|
20111
21556
|
exports.LocationsCoverageCriticIssueSchema = LocationsCoverageCriticIssueSchema;
|
|
20112
21557
|
exports.LocationsCoverageCriticVerdictSchema = LocationsCoverageCriticVerdictSchema;
|
|
21558
|
+
exports.MATCH_CUT_BREAK_GATE = MATCH_CUT_BREAK_GATE;
|
|
20113
21559
|
exports.MAX_CUSTOM_ENTRIES_PER_BOARD = MAX_CUSTOM_ENTRIES_PER_BOARD;
|
|
20114
21560
|
exports.MAX_IMAGE_PROMPT_CHARS_BY_PROVIDER = MAX_IMAGE_PROMPT_CHARS_BY_PROVIDER;
|
|
20115
21561
|
exports.MAX_LOCATION_VARIANTS = MAX_LOCATION_VARIANTS;
|
|
@@ -20149,7 +21595,9 @@ exports.MODEL_RECOMMENDATIONS = MODEL_RECOMMENDATIONS;
|
|
|
20149
21595
|
exports.MODIFY_IMAGE_PROVIDERS = MODIFY_IMAGE_PROVIDERS;
|
|
20150
21596
|
exports.MOTION_COLUMN = MOTION_COLUMN;
|
|
20151
21597
|
exports.MOTION_TRANSFER_PROVIDERS = MOTION_TRANSFER_PROVIDERS;
|
|
21598
|
+
exports.MUSIC_CREDIT_ID = MUSIC_CREDIT_ID;
|
|
20152
21599
|
exports.MUSIC_PROVIDERS = MUSIC_PROVIDERS;
|
|
21600
|
+
exports.MUSIC_PROVIDER_LABELS = MUSIC_PROVIDER_LABELS;
|
|
20153
21601
|
exports.MatchCutVerdictSchema = MatchCutVerdictSchema;
|
|
20154
21602
|
exports.NATIVE_ADAPTIVE_ASPECT = NATIVE_ADAPTIVE_ASPECT;
|
|
20155
21603
|
exports.NATIVE_NEGATIVE_PROMPT_MODELS = NATIVE_NEGATIVE_PROMPT_MODELS;
|
|
@@ -20166,6 +21614,7 @@ exports.NODE_REF_PATTERN = NODE_REF_PATTERN;
|
|
|
20166
21614
|
exports.NON_EN_LOCALE_IDS = NON_EN_LOCALE_IDS;
|
|
20167
21615
|
exports.NON_PROMPT_TEXT_LANES = NON_PROMPT_TEXT_LANES;
|
|
20168
21616
|
exports.NO_SPLIT_DELIMITER = NO_SPLIT_DELIMITER;
|
|
21617
|
+
exports.OAUTH_SCOPES = OAUTH_SCOPES;
|
|
20169
21618
|
exports.OBJECT_ASPECT_DEFAULTS = OBJECT_ASPECT_DEFAULTS;
|
|
20170
21619
|
exports.OBJECT_ASPECT_OPTIONS = OBJECT_ASPECT_OPTIONS;
|
|
20171
21620
|
exports.OBJECT_ASSET_TYPES = OBJECT_ASSET_TYPES;
|
|
@@ -20257,6 +21706,7 @@ exports.PipelineStatusSchema = PipelineStatusSchema;
|
|
|
20257
21706
|
exports.PresetSettingsSchema = PresetSettingsSchema;
|
|
20258
21707
|
exports.QA_CHECK_PROVIDERS = QA_CHECK_PROVIDERS;
|
|
20259
21708
|
exports.REASONING_OUTPUT_FLOOR = REASONING_OUTPUT_FLOOR;
|
|
21709
|
+
exports.RECAST_SEGMENT_PACKS = RECAST_SEGMENT_PACKS;
|
|
20260
21710
|
exports.REDUCE_STRATEGIES = REDUCE_STRATEGIES;
|
|
20261
21711
|
exports.REDUCE_STRATEGY_IDS = REDUCE_STRATEGY_IDS;
|
|
20262
21712
|
exports.REFERENCE_BOARD_PROVIDERS = REFERENCE_BOARD_PROVIDERS;
|
|
@@ -20272,6 +21722,12 @@ exports.REPEATABLE_NODE_TYPES = REPEATABLE_NODE_TYPES;
|
|
|
20272
21722
|
exports.REPEAT_PLACEHOLDER = REPEAT_PLACEHOLDER;
|
|
20273
21723
|
exports.REPLICATE_LIP_SYNC_PROVIDERS = REPLICATE_LIP_SYNC_PROVIDERS;
|
|
20274
21724
|
exports.RESERVED_TEMPLATE_VARS = RESERVED_TEMPLATE_VARS;
|
|
21725
|
+
exports.SAVED_POSTS_LOOKUP_MAX = SAVED_POSTS_LOOKUP_MAX;
|
|
21726
|
+
exports.SAVED_POSTS_PAGE_MAX = SAVED_POSTS_PAGE_MAX;
|
|
21727
|
+
exports.SAVED_POST_MAX_TAGS = SAVED_POST_MAX_TAGS;
|
|
21728
|
+
exports.SAVED_POST_NOTE_MAX = SAVED_POST_NOTE_MAX;
|
|
21729
|
+
exports.SAVED_POST_SOURCES = SAVED_POST_SOURCES;
|
|
21730
|
+
exports.SAVED_POST_TAG_MAX = SAVED_POST_TAG_MAX;
|
|
20275
21731
|
exports.SCENE3D_ASSERTION_RESTORED_CODE = SCENE3D_ASSERTION_RESTORED_CODE;
|
|
20276
21732
|
exports.SCENE3D_ASSET_KINDS = SCENE3D_ASSET_KINDS;
|
|
20277
21733
|
exports.SCENE3D_ASSET_ROLES = SCENE3D_ASSET_ROLES;
|
|
@@ -20326,6 +21782,12 @@ exports.SCRAPER_ACTOR_LABELS = SCRAPER_ACTOR_LABELS;
|
|
|
20326
21782
|
exports.SCRAPER_CREDIT_COSTS = SCRAPER_CREDIT_COSTS;
|
|
20327
21783
|
exports.SCRAPER_OUTPUT_FIELDS = SCRAPER_OUTPUT_FIELDS;
|
|
20328
21784
|
exports.SCRIPT_PROVIDERS = SCRIPT_PROVIDERS;
|
|
21785
|
+
exports.SCRIPT_SCENE_COUNT_DEFAULT = SCRIPT_SCENE_COUNT_DEFAULT;
|
|
21786
|
+
exports.SCRIPT_SCENE_COUNT_RANGE = SCRIPT_SCENE_COUNT_RANGE;
|
|
21787
|
+
exports.SCRIPT_STYLE_GUIDE_MAX_LENGTH = SCRIPT_STYLE_GUIDE_MAX_LENGTH;
|
|
21788
|
+
exports.SCRIPT_TARGET_DURATION_DEFAULT = SCRIPT_TARGET_DURATION_DEFAULT;
|
|
21789
|
+
exports.SCRIPT_TARGET_DURATION_RANGE = SCRIPT_TARGET_DURATION_RANGE;
|
|
21790
|
+
exports.SCRIPT_TONE_MAX_LENGTH = SCRIPT_TONE_MAX_LENGTH;
|
|
20329
21791
|
exports.SEASONS = SEASONS;
|
|
20330
21792
|
exports.SECTION_BOARD = SECTION_BOARD;
|
|
20331
21793
|
exports.SECTION_KINDS = SECTION_KINDS;
|
|
@@ -20342,6 +21804,11 @@ exports.SEEDANCE_VIDEO_EDIT_SHAPE = SEEDANCE_VIDEO_EDIT_SHAPE;
|
|
|
20342
21804
|
exports.SEED_SUPPORT = SEED_SUPPORT;
|
|
20343
21805
|
exports.SEPARATOR_DISPLAY = SEPARATOR_DISPLAY;
|
|
20344
21806
|
exports.SEPARATOR_PRESETS = SEPARATOR_PRESETS;
|
|
21807
|
+
exports.SETTINGS_HINT_SOURCES = SETTINGS_HINT_SOURCES;
|
|
21808
|
+
exports.SETTINGS_INPUT_CONSUMERS = SETTINGS_INPUT_CONSUMERS;
|
|
21809
|
+
exports.SETTINGS_INPUT_HANDLE = SETTINGS_INPUT_HANDLE;
|
|
21810
|
+
exports.SETTINGS_SOURCE_FIELDS = SETTINGS_SOURCE_FIELDS;
|
|
21811
|
+
exports.SETTINGS_SOURCE_TYPES = SETTINGS_SOURCE_TYPES;
|
|
20345
21812
|
exports.SHEET_ASPECTS = SHEET_ASPECTS;
|
|
20346
21813
|
exports.SHEET_BACKGROUNDS = SHEET_BACKGROUNDS;
|
|
20347
21814
|
exports.SHEET_PRESETS = SHEET_PRESETS;
|
|
@@ -20354,7 +21821,21 @@ exports.SLOT_TOKEN_RE = SLOT_TOKEN_RE;
|
|
|
20354
21821
|
exports.SMART_CUT_WINDOW_DEFAULT = SMART_CUT_WINDOW_DEFAULT;
|
|
20355
21822
|
exports.SMART_CUT_WINDOW_MAX = SMART_CUT_WINDOW_MAX;
|
|
20356
21823
|
exports.SMART_CUT_WINDOW_MIN = SMART_CUT_WINDOW_MIN;
|
|
21824
|
+
exports.SOCIAL_PLATFORMS = SOCIAL_PLATFORMS;
|
|
20357
21825
|
exports.SOCIAL_POST_NODE_TYPES = SOCIAL_POST_NODE_TYPES;
|
|
21826
|
+
exports.SOCIAL_POST_VIDEO_LINK_MARGIN_MS = SOCIAL_POST_VIDEO_LINK_MARGIN_MS;
|
|
21827
|
+
exports.SOCIAL_SEARCH_COUNTS = SOCIAL_SEARCH_COUNTS;
|
|
21828
|
+
exports.SOCIAL_SEARCH_CREDITS_PER_PAGE = SOCIAL_SEARCH_CREDITS_PER_PAGE;
|
|
21829
|
+
exports.SOCIAL_SEARCH_CREDIT_COSTS = SOCIAL_SEARCH_CREDIT_COSTS;
|
|
21830
|
+
exports.SOCIAL_SEARCH_DEFAULT_PICK_TOP = SOCIAL_SEARCH_DEFAULT_PICK_TOP;
|
|
21831
|
+
exports.SOCIAL_SEARCH_MAX_QUERY_LENGTH = SOCIAL_SEARCH_MAX_QUERY_LENGTH;
|
|
21832
|
+
exports.SOCIAL_SEARCH_MODES = SOCIAL_SEARCH_MODES;
|
|
21833
|
+
exports.SOCIAL_SEARCH_NODE_TYPE = SOCIAL_SEARCH_NODE_TYPE;
|
|
21834
|
+
exports.SOCIAL_SEARCH_PAGED_MODES = SOCIAL_SEARCH_PAGED_MODES;
|
|
21835
|
+
exports.SOCIAL_SEARCH_PERIODS = SOCIAL_SEARCH_PERIODS;
|
|
21836
|
+
exports.SOCIAL_SEARCH_PLATFORM_MODES = SOCIAL_SEARCH_PLATFORM_MODES;
|
|
21837
|
+
exports.SOCIAL_SEARCH_SORTS = SOCIAL_SEARCH_SORTS;
|
|
21838
|
+
exports.SOCIAL_SEARCH_VIDEO_KINDS = SOCIAL_SEARCH_VIDEO_KINDS;
|
|
20358
21839
|
exports.SOCIAL_VIDEO_HOSTS = SOCIAL_VIDEO_HOSTS;
|
|
20359
21840
|
exports.SPEAKER_EMPHASIS_STYLES = SPEAKER_EMPHASIS_STYLES;
|
|
20360
21841
|
exports.SPEAKER_LAYOUTS = SPEAKER_LAYOUTS;
|
|
@@ -20366,7 +21847,19 @@ exports.STATIC_CAPTION_STYLES = STATIC_CAPTION_STYLES;
|
|
|
20366
21847
|
exports.STRUCTURAL_SECTIONS = STRUCTURAL_SECTIONS;
|
|
20367
21848
|
exports.STRUCTURED_VISION_MODELS = STRUCTURED_VISION_MODELS;
|
|
20368
21849
|
exports.STUDIO_DEPENDENT_FRAMES_CAPABILITY = STUDIO_DEPENDENT_FRAMES_CAPABILITY;
|
|
21850
|
+
exports.STUDIO_KEYFRAME_ACCEPTANCE_PRIVATE_KEYS = STUDIO_KEYFRAME_ACCEPTANCE_PRIVATE_KEYS;
|
|
21851
|
+
exports.STUDIO_KEYFRAME_NODE_TRANSIENT_KEYS = STUDIO_KEYFRAME_NODE_TRANSIENT_KEYS;
|
|
21852
|
+
exports.STUDIO_KEYFRAME_REVIEW_KEYS = STUDIO_KEYFRAME_REVIEW_KEYS;
|
|
21853
|
+
exports.STUDIO_KEYFRAME_TRANSIENT_KEYS = STUDIO_KEYFRAME_TRANSIENT_KEYS;
|
|
21854
|
+
exports.STUDIO_PREVIZ_RUN_STATE_KEYS = STUDIO_PREVIZ_RUN_STATE_KEYS;
|
|
21855
|
+
exports.STUDIO_SEQUENCE_PLANNING_KEYS = STUDIO_SEQUENCE_PLANNING_KEYS;
|
|
21856
|
+
exports.STUDIO_SEQUENCE_POLICY_KEYS = STUDIO_SEQUENCE_POLICY_KEYS;
|
|
21857
|
+
exports.STUDIO_SEQUENCE_UNIT_MANIFEST_KEYS = STUDIO_SEQUENCE_UNIT_MANIFEST_KEYS;
|
|
21858
|
+
exports.STUDIO_SEQUENCE_UNIT_REVIEW_KEYS = STUDIO_SEQUENCE_UNIT_REVIEW_KEYS;
|
|
21859
|
+
exports.STUDIO_SHOT_DRAFT_KEYS = STUDIO_SHOT_DRAFT_KEYS;
|
|
20369
21860
|
exports.STUDIO_SHOT_TRANSIENT_KEYS = STUDIO_SHOT_TRANSIENT_KEYS;
|
|
21861
|
+
exports.STUDIO_TAKE_SEQUENCE_KEYS = STUDIO_TAKE_SEQUENCE_KEYS;
|
|
21862
|
+
exports.STUDIO_TAKE_VOICE_KEYS = STUDIO_TAKE_VOICE_KEYS;
|
|
20370
21863
|
exports.STUDIO_TRANSIENT_KEYS = STUDIO_TRANSIENT_KEYS;
|
|
20371
21864
|
exports.SUBMISSION_STATUSES = SUBMISSION_STATUSES;
|
|
20372
21865
|
exports.SUNO_ACTIVE_MODELS = SUNO_ACTIVE_MODELS;
|
|
@@ -20401,10 +21894,19 @@ exports.StyleDirectivesSchema = StyleDirectivesSchema;
|
|
|
20401
21894
|
exports.SubGateNameSchema = SubGateNameSchema;
|
|
20402
21895
|
exports.T2I_TO_I2I_VARIANT = T2I_TO_I2I_VARIANT;
|
|
20403
21896
|
exports.TASK_CHAINED_EDIT_PROVIDERS = TASK_CHAINED_EDIT_PROVIDERS;
|
|
21897
|
+
exports.TELEGRAM_ACCOUNT_SEND_NODE_TYPE = TELEGRAM_ACCOUNT_SEND_NODE_TYPE;
|
|
21898
|
+
exports.TELEGRAM_ACCOUNT_TRIGGER_MESSAGE_FIELDS = TELEGRAM_ACCOUNT_TRIGGER_MESSAGE_FIELDS;
|
|
21899
|
+
exports.TELEGRAM_ACCOUNT_TRIGGER_MESSAGE_HANDLE = TELEGRAM_ACCOUNT_TRIGGER_MESSAGE_HANDLE;
|
|
20404
21900
|
exports.TELEGRAM_ACCOUNT_TRIGGER_NODE_TYPE = TELEGRAM_ACCOUNT_TRIGGER_NODE_TYPE;
|
|
21901
|
+
exports.TELEGRAM_ACCOUNT_TRIGGER_OUTPUT_HANDLES = TELEGRAM_ACCOUNT_TRIGGER_OUTPUT_HANDLES;
|
|
21902
|
+
exports.TELEGRAM_ACCOUNT_TRIGGER_POST_FIELDS = TELEGRAM_ACCOUNT_TRIGGER_POST_FIELDS;
|
|
21903
|
+
exports.TELEGRAM_SEND_AS = TELEGRAM_SEND_AS;
|
|
21904
|
+
exports.TELEGRAM_SEND_DESTINATIONS = TELEGRAM_SEND_DESTINATIONS;
|
|
20405
21905
|
exports.TELEGRAM_TRIGGER_NODE_TYPE = TELEGRAM_TRIGGER_NODE_TYPE;
|
|
20406
21906
|
exports.TEMPLATE_CATEGORIES = TEMPLATE_CATEGORIES;
|
|
21907
|
+
exports.TEXT_TO_AUDIO_PRICING = TEXT_TO_AUDIO_PRICING;
|
|
20407
21908
|
exports.TEXT_TO_AUDIO_PROVIDERS = TEXT_TO_AUDIO_PROVIDERS;
|
|
21909
|
+
exports.TEXT_TO_AUDIO_SFX_CREDIT_IDS = TEXT_TO_AUDIO_SFX_CREDIT_IDS;
|
|
20408
21910
|
exports.TEXT_TO_VIDEO_PROVIDERS = TEXT_TO_VIDEO_PROVIDERS;
|
|
20409
21911
|
exports.TIER_MAX_PIPELINE_COST_CREDITS = TIER_MAX_PIPELINE_COST_CREDITS;
|
|
20410
21912
|
exports.TIER_PIPELINE_PARALLELISM = TIER_PIPELINE_PARALLELISM;
|
|
@@ -20415,7 +21917,9 @@ exports.TRANSCRIBE_LANES = TRANSCRIBE_LANES;
|
|
|
20415
21917
|
exports.TRANSCRIBE_PROVIDERS = TRANSCRIBE_PROVIDERS;
|
|
20416
21918
|
exports.TRANSCRIBE_PROVIDER_CAPABILITIES = TRANSCRIBE_PROVIDER_CAPABILITIES;
|
|
20417
21919
|
exports.TRANSIENT_RUNTIME_KEYS = TRANSIENT_RUNTIME_KEYS;
|
|
21920
|
+
exports.TTS_FALLBACK_PROVIDER = TTS_FALLBACK_PROVIDER;
|
|
20418
21921
|
exports.TTS_PROVIDERS = TTS_PROVIDERS;
|
|
21922
|
+
exports.TTS_PROVIDER_ALIASES = TTS_PROVIDER_ALIASES;
|
|
20419
21923
|
exports.TTS_TEXT_MAX = TTS_TEXT_MAX;
|
|
20420
21924
|
exports.TWO_K_RESOLUTION_PROVIDERS = TWO_K_RESOLUTION_PROVIDERS;
|
|
20421
21925
|
exports.TransitionTypeSchema = TransitionTypeSchema;
|
|
@@ -20430,6 +21934,7 @@ exports.VEHICLE_SUBCATEGORY_ORDER = VEHICLE_SUBCATEGORY_ORDER;
|
|
|
20430
21934
|
exports.VEO_PROVIDERS = VEO_PROVIDERS;
|
|
20431
21935
|
exports.VIDEO_ANALYSIS_AUDIO_MODES = VIDEO_ANALYSIS_AUDIO_MODES;
|
|
20432
21936
|
exports.VIDEO_ANALYSIS_BUCKET_CREDITS = VIDEO_ANALYSIS_BUCKET_CREDITS;
|
|
21937
|
+
exports.VIDEO_ANALYSIS_BUCKET_GRACE_SEC = VIDEO_ANALYSIS_BUCKET_GRACE_SEC;
|
|
20433
21938
|
exports.VIDEO_ANALYSIS_CLIP_TRANSITIONS_IN = VIDEO_ANALYSIS_CLIP_TRANSITIONS_IN;
|
|
20434
21939
|
exports.VIDEO_ANALYSIS_DEFAULT_VARIATION = VIDEO_ANALYSIS_DEFAULT_VARIATION;
|
|
20435
21940
|
exports.VIDEO_ANALYSIS_DURATION_BUCKETS = VIDEO_ANALYSIS_DURATION_BUCKETS;
|
|
@@ -20462,6 +21967,7 @@ exports.VIDEO_CRITIC_FRAME_MODES = VIDEO_CRITIC_FRAME_MODES;
|
|
|
20462
21967
|
exports.VIDEO_CRITIC_MAX_RETRIES = VIDEO_CRITIC_MAX_RETRIES;
|
|
20463
21968
|
exports.VIDEO_CRITIC_METADATA_KEYS = VIDEO_CRITIC_METADATA_KEYS;
|
|
20464
21969
|
exports.VIDEO_CRITIC_MIN_ADHERENCE_SCORE = VIDEO_CRITIC_MIN_ADHERENCE_SCORE;
|
|
21970
|
+
exports.VIDEO_CRITIC_RESERVED_CREDITS_PER_SHOT = VIDEO_CRITIC_RESERVED_CREDITS_PER_SHOT;
|
|
20465
21971
|
exports.VIDEO_DURATION_AUTO = VIDEO_DURATION_AUTO;
|
|
20466
21972
|
exports.VIDEO_DURATION_TIERS = VIDEO_DURATION_TIERS;
|
|
20467
21973
|
exports.VIDEO_GEN_COLLAPSED_T2V_IDS = VIDEO_GEN_COLLAPSED_T2V_IDS;
|
|
@@ -20498,6 +22004,7 @@ exports.VIDEO_PROVIDERS_REQUIRING_IMAGE = VIDEO_PROVIDERS_REQUIRING_IMAGE;
|
|
|
20498
22004
|
exports.VIDEO_PROVIDERS_WITHOUT_DISPATCH = VIDEO_PROVIDERS_WITHOUT_DISPATCH;
|
|
20499
22005
|
exports.VIDEO_REF_LIMITS_BY_PROVIDER = VIDEO_REF_LIMITS_BY_PROVIDER;
|
|
20500
22006
|
exports.VIDEO_REF_VIDEO_DURATION_LIMITS = VIDEO_REF_VIDEO_DURATION_LIMITS;
|
|
22007
|
+
exports.VIDEO_SFX_PRICING = VIDEO_SFX_PRICING;
|
|
20501
22008
|
exports.VIDEO_TO_VIDEO_NODE_PROVIDERS = VIDEO_TO_VIDEO_NODE_PROVIDERS;
|
|
20502
22009
|
exports.VIDEO_TO_VIDEO_PROVIDERS = VIDEO_TO_VIDEO_PROVIDERS;
|
|
20503
22010
|
exports.VIDEO_UPSCALE_PROVIDERS = VIDEO_UPSCALE_PROVIDERS;
|
|
@@ -20524,16 +22031,20 @@ exports.WORKSPACE_ROLES = WORKSPACE_ROLES;
|
|
|
20524
22031
|
exports.WorkspaceSettingsSchema = WorkspaceSettingsSchema;
|
|
20525
22032
|
exports.YOUTUBE_HOSTS = YOUTUBE_HOSTS;
|
|
20526
22033
|
exports.adCreativeAnalysisFrom = adCreativeAnalysisFrom;
|
|
22034
|
+
exports.adviceFamilyOf = adviceFamilyOf;
|
|
20527
22035
|
exports.aggregateByType = aggregateByType;
|
|
20528
22036
|
exports.aiAvatarReserveCreditId = aiAvatarReserveCreditId;
|
|
20529
22037
|
exports.alignedFieldList = alignedFieldList;
|
|
20530
22038
|
exports.analyzedSceneSchema = analyzedSceneSchema;
|
|
22039
|
+
exports.applyAudioSyncOffsets = applyAudioSyncOffsets;
|
|
20531
22040
|
exports.applyDefaultVideoSelection = applyDefaultVideoSelection;
|
|
22041
|
+
exports.applyEdlCreditId = applyEdlCreditId;
|
|
20532
22042
|
exports.applyHandleInputOverride = applyHandleInputOverride;
|
|
20533
22043
|
exports.applyRange = applyRange;
|
|
20534
22044
|
exports.applyRangeIndices = applyRangeIndices;
|
|
20535
22045
|
exports.applyScene3DEditOperations = applyScene3DEditOperations;
|
|
20536
22046
|
exports.applyScene3DV2EditOperations = applyScene3DV2EditOperations;
|
|
22047
|
+
exports.applySettingsInput = applySettingsInput;
|
|
20537
22048
|
exports.applySlots = applySlots;
|
|
20538
22049
|
exports.applyVideoAudioToggle = applyVideoAudioToggle;
|
|
20539
22050
|
exports.applyVideoNegativePrompt = applyVideoNegativePrompt;
|
|
@@ -20577,8 +22088,14 @@ exports.calculateCombinedProgress = calculateCombinedProgress;
|
|
|
20577
22088
|
exports.calculateMonetizationMarkup = calculateMonetizationMarkup;
|
|
20578
22089
|
exports.calculateMonetizedCost = calculateMonetizedCost;
|
|
20579
22090
|
exports.calculateProgress = calculateProgress;
|
|
22091
|
+
exports.cameraSwitchCameras = cameraSwitchCameras;
|
|
22092
|
+
exports.cameraSwitchEdlProblem = cameraSwitchEdlProblem;
|
|
22093
|
+
exports.cameraSwitchSettingsPayload = cameraSwitchSettingsPayload;
|
|
22094
|
+
exports.canonicalExposedFieldKey = canonicalExposedFieldKey;
|
|
20580
22095
|
exports.canonicalScene3DPlanV2Json = canonicalScene3DPlanV2Json;
|
|
22096
|
+
exports.canonicalTtsProvider = canonicalTtsProvider;
|
|
20581
22097
|
exports.canonicalVarName = canonicalVarName;
|
|
22098
|
+
exports.canonicalizeOverrideKeys = canonicalizeOverrideKeys;
|
|
20582
22099
|
exports.captionRoutesToRemotion = captionRoutesToRemotion;
|
|
20583
22100
|
exports.centreCropToAspect = centreCropToAspect;
|
|
20584
22101
|
exports.characterBoardItems = characterBoardItems;
|
|
@@ -20589,7 +22106,9 @@ exports.characterSheetRefItems = characterSheetRefItems;
|
|
|
20589
22106
|
exports.characterVariantAssetArrays = characterVariantAssetArrays;
|
|
20590
22107
|
exports.checkRefVideoDurations = checkRefVideoDurations;
|
|
20591
22108
|
exports.cinematicCreditId = cinematicCreditId;
|
|
22109
|
+
exports.clampCameraSwitchSetting = clampCameraSwitchSetting;
|
|
20592
22110
|
exports.clampCinematicDuration = clampCinematicDuration;
|
|
22111
|
+
exports.clampContentIdeasCount = clampContentIdeasCount;
|
|
20593
22112
|
exports.clampEditPlanClipCount = clampEditPlanClipCount;
|
|
20594
22113
|
exports.clampInstagramFeaturedIndex = clampInstagramFeaturedIndex;
|
|
20595
22114
|
exports.clampMetaAdsFeaturedIndex = clampMetaAdsFeaturedIndex;
|
|
@@ -20597,6 +22116,7 @@ exports.clampSmartCutWindow = clampSmartCutWindow;
|
|
|
20597
22116
|
exports.classifyCreativeFormat = classifyCreativeFormat;
|
|
20598
22117
|
exports.classifyRefToken = classifyRefToken;
|
|
20599
22118
|
exports.cleanOrphanedItems = cleanOrphanedItems;
|
|
22119
|
+
exports.cleanSpeakerNames = cleanSpeakerNames;
|
|
20600
22120
|
exports.clearImageCriticMetadata = clearImageCriticMetadata;
|
|
20601
22121
|
exports.clearVideoCriticMetadata = clearVideoCriticMetadata;
|
|
20602
22122
|
exports.clearWiredVideoOverlayImageUrls = clearWiredVideoOverlayImageUrls;
|
|
@@ -20604,20 +22124,30 @@ exports.clipLookSchema = clipLookSchema;
|
|
|
20604
22124
|
exports.collectAncestorRefs = collectAncestorRefs;
|
|
20605
22125
|
exports.combineSameLabelRefs = combineSameLabelRefs;
|
|
20606
22126
|
exports.compactWithRows = compactWithRows;
|
|
22127
|
+
exports.competitorScanCreditId = competitorScanCreditId;
|
|
22128
|
+
exports.competitorScanCredits = competitorScanCredits;
|
|
22129
|
+
exports.competitorScanSearches = competitorScanSearches;
|
|
20607
22130
|
exports.computeAggregateLanes = computeAggregateLanes;
|
|
20608
22131
|
exports.computeFrameFitPlan = computeFrameFitPlan;
|
|
20609
22132
|
exports.computeScene3DPlanV2ContentHash = computeScene3DPlanV2ContentHash;
|
|
22133
|
+
exports.connectedSettingsSources = connectedSettingsSources;
|
|
22134
|
+
exports.contentIdeasCreditFeature = contentIdeasCreditFeature;
|
|
22135
|
+
exports.contentIdeasCreditId = contentIdeasCreditId;
|
|
22136
|
+
exports.contentRecipeCreditId = contentRecipeCreditId;
|
|
20610
22137
|
exports.countRefModalityEdges = countRefModalityEdges;
|
|
20611
22138
|
exports.creditRangesAll = creditRangesAll;
|
|
20612
22139
|
exports.creditsToUsd = creditsToUsd;
|
|
20613
22140
|
exports.decodeProviderItem = decodeProviderItem;
|
|
20614
22141
|
exports.defaultCarriedFraction = defaultCarriedFraction;
|
|
22142
|
+
exports.defaultEdgeOutputMode = defaultEdgeOutputMode;
|
|
20615
22143
|
exports.defaultResolutionFor = defaultResolutionFor;
|
|
20616
22144
|
exports.defaultRoleForSource = defaultRoleForSource;
|
|
22145
|
+
exports.defaultSpeakerMap = defaultSpeakerMap;
|
|
20617
22146
|
exports.defaultVideoAspectRatio = defaultVideoAspectRatio;
|
|
20618
22147
|
exports.deriveLinkedFields = deriveLinkedFields;
|
|
20619
22148
|
exports.deriveLottieSlotFields = deriveLottieSlotFields;
|
|
20620
22149
|
exports.deriveSlotRefs = deriveSlotRefs;
|
|
22150
|
+
exports.describeAudioSyncOffsetIssue = describeAudioSyncOffsetIssue;
|
|
20621
22151
|
exports.describeEdgeBehavior = describeEdgeBehavior;
|
|
20622
22152
|
exports.describeMaskRegion = describeMaskRegion;
|
|
20623
22153
|
exports.describeNodeAdjustments = describeNodeAdjustments;
|
|
@@ -20628,7 +22158,9 @@ exports.dropUnknownSpeakers = dropUnknownSpeakers;
|
|
|
20628
22158
|
exports.durationsByMode = durationsByMode;
|
|
20629
22159
|
exports.editPlanBucketMinutes = editPlanBucketMinutes;
|
|
20630
22160
|
exports.editPlanSourceDurationSec = editPlanSourceDurationSec;
|
|
22161
|
+
exports.editPlanTranscriptOrigin = editPlanTranscriptOrigin;
|
|
20631
22162
|
exports.edlDurationMs = edlDurationMs;
|
|
22163
|
+
exports.effectiveContentModel = effectiveContentModel;
|
|
20632
22164
|
exports.effectiveReasoningEffort = effectiveReasoningEffort;
|
|
20633
22165
|
exports.encodeProviderItem = encodeProviderItem;
|
|
20634
22166
|
exports.ensureLocaleCatalogLoaded = ensureLocaleCatalogLoaded;
|
|
@@ -20671,6 +22203,7 @@ exports.findLocationMentionTokens = findLocationMentionTokens;
|
|
|
20671
22203
|
exports.findSeedance2AudioOverLimit = findSeedance2AudioOverLimit;
|
|
20672
22204
|
exports.findWordlessTranscriptFeeds = findWordlessTranscriptFeeds;
|
|
20673
22205
|
exports.firstSightExtraRole = firstSightExtraRole;
|
|
22206
|
+
exports.fitAspectRatioToModel = fitAspectRatioToModel;
|
|
20674
22207
|
exports.flattenItems = flattenItems;
|
|
20675
22208
|
exports.formatVideoOverlayError = formatVideoOverlayError;
|
|
20676
22209
|
exports.getAnimal = getAnimal;
|
|
@@ -20714,6 +22247,7 @@ exports.getSpeakerLayout = getSpeakerLayout;
|
|
|
20714
22247
|
exports.getSpeakerSwitch = getSpeakerSwitch;
|
|
20715
22248
|
exports.getStrategy = getStrategy;
|
|
20716
22249
|
exports.getTargetField = getTargetField;
|
|
22250
|
+
exports.getTtsCapabilities = getTtsCapabilities;
|
|
20717
22251
|
exports.getValidValues = getValidValues;
|
|
20718
22252
|
exports.getVehicle = getVehicle;
|
|
20719
22253
|
exports.getVehicleLabel = getVehicleLabel;
|
|
@@ -20739,6 +22273,8 @@ exports.imageReferenceLimit = imageReferenceLimit;
|
|
|
20739
22273
|
exports.inferMusicVideo = inferMusicVideo;
|
|
20740
22274
|
exports.instagramAnalysisCreditId = instagramAnalysisCreditId;
|
|
20741
22275
|
exports.instagramAnalysisTierFrom = instagramAnalysisTierFrom;
|
|
22276
|
+
exports.instagramPostLink = instagramPostLink;
|
|
22277
|
+
exports.instagramRequestedCount = instagramRequestedCount;
|
|
20742
22278
|
exports.instagramScrapeCreditIdFromNode = instagramScrapeCreditIdFromNode;
|
|
20743
22279
|
exports.instagramScrapeMode = instagramScrapeMode;
|
|
20744
22280
|
exports.instagramScrapeSources = instagramScrapeSources;
|
|
@@ -20747,11 +22283,14 @@ exports.isAggregateableType = isAggregateableType;
|
|
|
20747
22283
|
exports.isAutoVideoDuration = isAutoVideoDuration;
|
|
20748
22284
|
exports.isCharacterAspectRatio = isCharacterAspectRatio;
|
|
20749
22285
|
exports.isCollectInEdge = isCollectInEdge;
|
|
22286
|
+
exports.isCompetitorAboutPlatform = isCompetitorAboutPlatform;
|
|
20750
22287
|
exports.isCronExpression = isCronExpression;
|
|
20751
22288
|
exports.isDefaultSelectorConfig = isDefaultSelectorConfig;
|
|
20752
22289
|
exports.isEdlTargetAspect = isEdlTargetAspect;
|
|
20753
22290
|
exports.isExpandedClone = isExpandedClone;
|
|
20754
22291
|
exports.isFacebookPageUrl = isFacebookPageUrl;
|
|
22292
|
+
exports.isFanInEdge = isFanInEdge;
|
|
22293
|
+
exports.isFanInNodeType = isFanInNodeType;
|
|
20755
22294
|
exports.isFanOutUrlItem = isFanOutUrlItem;
|
|
20756
22295
|
exports.isFlux2Model = isFlux2Model;
|
|
20757
22296
|
exports.isGeminiOmniProvider = isGeminiOmniProvider;
|
|
@@ -20764,6 +22303,7 @@ exports.isKnownScene3DEngine = isKnownScene3DEngine;
|
|
|
20764
22303
|
exports.isKnownSpeakerEmphasisStyle = isKnownSpeakerEmphasisStyle;
|
|
20765
22304
|
exports.isLegacySunoModel = isLegacySunoModel;
|
|
20766
22305
|
exports.isLocationUsageMode = isLocationUsageMode;
|
|
22306
|
+
exports.isMeasurableCard = isMeasurableCard;
|
|
20767
22307
|
exports.isMetaAdsFormat = isMetaAdsFormat;
|
|
20768
22308
|
exports.isMetaAdsPlatform = isMetaAdsPlatform;
|
|
20769
22309
|
exports.isMetaAdsScrapeCount = isMetaAdsScrapeCount;
|
|
@@ -20790,7 +22330,13 @@ exports.isScene3DSchemaVersionSupported = isScene3DSchemaVersionSupported;
|
|
|
20790
22330
|
exports.isScraperActor = isScraperActor;
|
|
20791
22331
|
exports.isSeedance2Provider = isSeedance2Provider;
|
|
20792
22332
|
exports.isSeedanceVideoEditProvider = isSeedanceVideoEditProvider;
|
|
22333
|
+
exports.isSettingsHintEdge = isSettingsHintEdge;
|
|
22334
|
+
exports.isSettingsHintSource = isSettingsHintSource;
|
|
22335
|
+
exports.isSettingsSourceType = isSettingsSourceType;
|
|
22336
|
+
exports.isSocialPost = isSocialPost;
|
|
22337
|
+
exports.isSocialSearchPickFrozen = isSocialSearchPickFrozen;
|
|
20793
22338
|
exports.isSocialVideoUrl = isSocialVideoUrl;
|
|
22339
|
+
exports.isTelegramAccountTriggerNamedHandle = isTelegramAccountTriggerNamedHandle;
|
|
20794
22340
|
exports.isTemplateCategory = isTemplateCategory;
|
|
20795
22341
|
exports.isTiltDirection = isTiltDirection;
|
|
20796
22342
|
exports.isUsageMode = isUsageMode;
|
|
@@ -20808,6 +22354,7 @@ exports.knownImageSlugsFromRefs = knownImageSlugsFromRefs;
|
|
|
20808
22354
|
exports.legacyScheduleToRules = legacyScheduleToRules;
|
|
20809
22355
|
exports.listBoardTemplates = listBoardTemplates;
|
|
20810
22356
|
exports.listModels = listModels;
|
|
22357
|
+
exports.listResultsServeHandle = listResultsServeHandle;
|
|
20811
22358
|
exports.listSlotSids = listSlotSids;
|
|
20812
22359
|
exports.liveRowColumn = liveRowColumn;
|
|
20813
22360
|
exports.llmRouteDefaults = llmRouteDefaults;
|
|
@@ -20816,6 +22363,8 @@ exports.localTimeIn = localTimeIn;
|
|
|
20816
22363
|
exports.locationMentionSlug = locationMentionSlug;
|
|
20817
22364
|
exports.locationReferencePhotoKindLabel = locationReferencePhotoKindLabel;
|
|
20818
22365
|
exports.locationUsageModeLabel = locationUsageModeLabel;
|
|
22366
|
+
exports.ltxExtendDurationSec = ltxExtendDurationSec;
|
|
22367
|
+
exports.ltxRetakeDurationSec = ltxRetakeDurationSec;
|
|
20819
22368
|
exports.mapAspectRatio = mapAspectRatio;
|
|
20820
22369
|
exports.mapQuality = mapQuality;
|
|
20821
22370
|
exports.mapShotIntentToProviderDirectives = mapShotIntentToProviderDirectives;
|
|
@@ -20860,6 +22409,7 @@ exports.normalizeModelInput = normalizeModelInput;
|
|
|
20860
22409
|
exports.normalizeNodeModelParams = normalizeNodeModelParams;
|
|
20861
22410
|
exports.normalizePinterestUrl = normalizePinterestUrl;
|
|
20862
22411
|
exports.normalizeRoleSlug = normalizeRoleSlug;
|
|
22412
|
+
exports.normalizeSavedPostTags = normalizeSavedPostTags;
|
|
20863
22413
|
exports.normalizeScheduleRule = normalizeScheduleRule;
|
|
20864
22414
|
exports.normalizeScheduleRules = normalizeScheduleRules;
|
|
20865
22415
|
exports.normalizeTemplateCategory = normalizeTemplateCategory;
|
|
@@ -20895,6 +22445,7 @@ exports.parseSpeakerEmphasisStyle = parseSpeakerEmphasisStyle;
|
|
|
20895
22445
|
exports.pickAiAvatarBucket = pickAiAvatarBucket;
|
|
20896
22446
|
exports.pickIds = pickIds;
|
|
20897
22447
|
exports.pickLipSyncBucket = pickLipSyncBucket;
|
|
22448
|
+
exports.pickSocialPosts = pickSocialPosts;
|
|
20898
22449
|
exports.pickSwitchXFrameTier = pickSwitchXFrameTier;
|
|
20899
22450
|
exports.pickVideoAnalysisBucket = pickVideoAnalysisBucket;
|
|
20900
22451
|
exports.planFanOut = planFanOut;
|
|
@@ -20919,6 +22470,7 @@ exports.pro3DRenderShotStills = pro3DRenderShotStills;
|
|
|
20919
22470
|
exports.pro3DRenderTimingOverrides = pro3DRenderTimingOverrides;
|
|
20920
22471
|
exports.qualityOptionsByKind = qualityOptionsByKind;
|
|
20921
22472
|
exports.readPromptAffixes = readPromptAffixes;
|
|
22473
|
+
exports.readScriptSettings = readScriptSettings;
|
|
20922
22474
|
exports.reasoningOutputFloor = reasoningOutputFloor;
|
|
20923
22475
|
exports.refHandleCategory = refHandleCategory;
|
|
20924
22476
|
exports.referenceModalityForHandle = referenceModalityForHandle;
|
|
@@ -20942,6 +22494,7 @@ exports.resolveConditionValue = resolveConditionValue;
|
|
|
20942
22494
|
exports.resolveDefaultRole = resolveDefaultRole;
|
|
20943
22495
|
exports.resolveDescription = resolveDescription;
|
|
20944
22496
|
exports.resolveDialogueVoices = resolveDialogueVoices;
|
|
22497
|
+
exports.resolveEditPlanSources = resolveEditPlanSources;
|
|
20945
22498
|
exports.resolveEdlSegmentSlots = resolveEdlSegmentSlots;
|
|
20946
22499
|
exports.resolveEffectiveSourceType = resolveEffectiveSourceType;
|
|
20947
22500
|
exports.resolveEffectiveTier = resolveEffectiveTier;
|
|
@@ -20961,6 +22514,7 @@ exports.resolveLocationFields = resolveLocationFields;
|
|
|
20961
22514
|
exports.resolveLocationPresetCatalog = resolveLocationPresetCatalog;
|
|
20962
22515
|
exports.resolveLottieOverlaySrc = resolveLottieOverlaySrc;
|
|
20963
22516
|
exports.resolveMetaAdsScrapeCreditId = resolveMetaAdsScrapeCreditId;
|
|
22517
|
+
exports.resolveMusicProvider = resolveMusicProvider;
|
|
20964
22518
|
exports.resolveNodeRefs = resolveNodeRefs;
|
|
20965
22519
|
exports.resolveNormalizedImageGen = resolveNormalizedImageGen;
|
|
20966
22520
|
exports.resolveObjectAspectRatio = resolveObjectAspectRatio;
|
|
@@ -20983,6 +22537,7 @@ exports.resolveVideoLinkOutput = resolveVideoLinkOutput;
|
|
|
20983
22537
|
exports.resolveVideoModeForInputs = resolveVideoModeForInputs;
|
|
20984
22538
|
exports.resolveVideoOverlayGeometry = resolveVideoOverlayGeometry;
|
|
20985
22539
|
exports.resolveVideoProviderForMode = resolveVideoProviderForMode;
|
|
22540
|
+
exports.resolveWiredSettings = resolveWiredSettings;
|
|
20986
22541
|
exports.resolveXfadeName = resolveXfadeName;
|
|
20987
22542
|
exports.rewriteSceneBindings = rewriteSceneBindings;
|
|
20988
22543
|
exports.rewriteSlotTokens = rewriteSlotTokens;
|
|
@@ -21082,9 +22637,34 @@ exports.selectListItems = selectListItems;
|
|
|
21082
22637
|
exports.selectLoraRoutingForMentions = selectLoraRoutingForMentions;
|
|
21083
22638
|
exports.selectRandom = selectRandom;
|
|
21084
22639
|
exports.setRegisteredPersonPackFields = setRegisteredPersonPackFields;
|
|
22640
|
+
exports.settingsInputAccepts = settingsInputAccepts;
|
|
22641
|
+
exports.settingsInputFields = settingsInputFields;
|
|
22642
|
+
exports.settingsProviderModels = settingsProviderModels;
|
|
22643
|
+
exports.settingsSourceForField = settingsSourceForField;
|
|
22644
|
+
exports.settingsSourceForType = settingsSourceForType;
|
|
21085
22645
|
exports.settledWithLimit = settledWithLimit;
|
|
22646
|
+
exports.signedLinkExpiresAt = signedLinkExpiresAt;
|
|
21086
22647
|
exports.sizeVec3Schema = sizeVec3Schema;
|
|
21087
22648
|
exports.slotVariationSchema = slotVariationSchema;
|
|
22649
|
+
exports.snapToModelDuration = snapToModelDuration;
|
|
22650
|
+
exports.socialPostDigestLine = socialPostDigestLine;
|
|
22651
|
+
exports.socialPostsDigest = socialPostsDigest;
|
|
22652
|
+
exports.socialPostsFrom = socialPostsFrom;
|
|
22653
|
+
exports.socialPostsLongestVideoSec = socialPostsLongestVideoSec;
|
|
22654
|
+
exports.socialSearchCount = socialSearchCount;
|
|
22655
|
+
exports.socialSearchCountry = socialSearchCountry;
|
|
22656
|
+
exports.socialSearchCreditId = socialSearchCreditId;
|
|
22657
|
+
exports.socialSearchCreditIdFromNode = socialSearchCreditIdFromNode;
|
|
22658
|
+
exports.socialSearchEffectiveCount = socialSearchEffectiveCount;
|
|
22659
|
+
exports.socialSearchMaxCount = socialSearchMaxCount;
|
|
22660
|
+
exports.socialSearchMode = socialSearchMode;
|
|
22661
|
+
exports.socialSearchPages = socialSearchPages;
|
|
22662
|
+
exports.socialSearchPickTop = socialSearchPickTop;
|
|
22663
|
+
exports.socialSearchPlatform = socialSearchPlatform;
|
|
22664
|
+
exports.socialSearchPostLink = socialSearchPostLink;
|
|
22665
|
+
exports.socialSearchPostVideo = socialSearchPostVideo;
|
|
22666
|
+
exports.socialSearchRegion = socialSearchRegion;
|
|
22667
|
+
exports.socialSearchRequestFromNode = socialSearchRequestFromNode;
|
|
21088
22668
|
exports.sortCharacterEntriesForDisplay = sortCharacterEntriesForDisplay;
|
|
21089
22669
|
exports.sortListItems = sortListItems;
|
|
21090
22670
|
exports.sourceRefKey = sourceRefKey;
|
|
@@ -21092,6 +22672,7 @@ exports.speakerLayoutAllows = speakerLayoutAllows;
|
|
|
21092
22672
|
exports.speakerPresentationWarnings = speakerPresentationWarnings;
|
|
21093
22673
|
exports.speakerSwitchOverlaps = speakerSwitchOverlaps;
|
|
21094
22674
|
exports.speakerTurns = speakerTurns;
|
|
22675
|
+
exports.speedRampCreditId = speedRampCreditId;
|
|
21095
22676
|
exports.spliceDelimitedRows = spliceDelimitedRows;
|
|
21096
22677
|
exports.splitByLoopDelimiter = splitByLoopDelimiter;
|
|
21097
22678
|
exports.splitGeneratedItems = splitGeneratedItems;
|
|
@@ -21102,6 +22683,9 @@ exports.spreadJsonArrayIfSingleton = spreadJsonArrayIfSingleton;
|
|
|
21102
22683
|
exports.stringifyPathResults = stringifyPathResults;
|
|
21103
22684
|
exports.stripDerivedAnalysisFields = stripDerivedAnalysisFields;
|
|
21104
22685
|
exports.stripExportContent = stripExportContent;
|
|
22686
|
+
exports.stripStudioDraftSettings = stripStudioDraftSettings;
|
|
22687
|
+
exports.stripStudioDraftWorkflow = stripStudioDraftWorkflow;
|
|
22688
|
+
exports.stripStudioTakeVoiceRecords = stripStudioTakeVoiceRecords;
|
|
21105
22689
|
exports.stripStudioTransientSettings = stripStudioTransientSettings;
|
|
21106
22690
|
exports.stripTransientRuntimeData = stripTransientRuntimeData;
|
|
21107
22691
|
exports.stripUnownedRefs = stripUnownedRefs;
|
|
@@ -21113,7 +22697,13 @@ exports.supportsAdvancedMode = supportsAdvancedMode;
|
|
|
21113
22697
|
exports.supportsAutoVideoDuration = supportsAutoVideoDuration;
|
|
21114
22698
|
exports.supportsEndAnchor = supportsEndAnchor;
|
|
21115
22699
|
exports.supportsExtendRender = supportsExtendRender;
|
|
22700
|
+
exports.telegramAccountListeningSignature = telegramAccountListeningSignature;
|
|
22701
|
+
exports.telegramAccountTriggerOutputs = telegramAccountTriggerOutputs;
|
|
22702
|
+
exports.telegramSendAsOf = telegramSendAsOf;
|
|
22703
|
+
exports.telegramSendDestinationOf = telegramSendDestinationOf;
|
|
21116
22704
|
exports.templateCategoryStoredValues = templateCategoryStoredValues;
|
|
22705
|
+
exports.textToAudioBilledSeconds = textToAudioBilledSeconds;
|
|
22706
|
+
exports.textToAudioCreditId = textToAudioCreditId;
|
|
21117
22707
|
exports.timezoneOffsetMinutes = timezoneOffsetMinutes;
|
|
21118
22708
|
exports.toConnectedReference = toConnectedReference;
|
|
21119
22709
|
exports.toConnectedReferences = toConnectedReferences;
|
|
@@ -21123,7 +22713,12 @@ exports.transcribeLaneSupportsWordTimestamps = transcribeLaneSupportsWordTimesta
|
|
|
21123
22713
|
exports.transcribeProvidersWithWordTimestamps = transcribeProvidersWithWordTimestamps;
|
|
21124
22714
|
exports.transcribeWordTimestampsRefusal = transcribeWordTimestampsRefusal;
|
|
21125
22715
|
exports.transcriptDurationSec = transcriptDurationSec;
|
|
22716
|
+
exports.transcriptSpeakerLabels = transcriptSpeakerLabels;
|
|
21126
22717
|
exports.tryParseJson = tryParseJson;
|
|
22718
|
+
exports.ttsHasLever = ttsHasLever;
|
|
22719
|
+
exports.ttsLanguageCodes = ttsLanguageCodes;
|
|
22720
|
+
exports.ttsSupportsAudioTags = ttsSupportsAudioTags;
|
|
22721
|
+
exports.ttsSupportsSsmlBreaks = ttsSupportsSsmlBreaks;
|
|
21127
22722
|
exports.uiAspectRatioFill = uiAspectRatioFill;
|
|
21128
22723
|
exports.uiDurationFill = uiDurationFill;
|
|
21129
22724
|
exports.uiResolutionFill = uiResolutionFill;
|
|
@@ -21155,6 +22750,7 @@ exports.videoAnalysisResultSchema = videoAnalysisResultSchema;
|
|
|
21155
22750
|
exports.videoAuditCreditsForBucket = videoAuditCreditsForBucket;
|
|
21156
22751
|
exports.videoLinkDownloadedFile = videoLinkDownloadedFile;
|
|
21157
22752
|
exports.videoLinkNeedsDownload = videoLinkNeedsDownload;
|
|
22753
|
+
exports.videoLinkPageUrl = videoLinkPageUrl;
|
|
21158
22754
|
exports.videoModelCanSpeakDialogue = videoModelCanSpeakDialogue;
|
|
21159
22755
|
exports.videoModelSupportsAudio = videoModelSupportsAudio;
|
|
21160
22756
|
exports.videoNegativeSuffix = videoNegativeSuffix;
|
|
@@ -21167,7 +22763,9 @@ exports.videoOverlaySlotOfHandle = videoOverlaySlotOfHandle;
|
|
|
21167
22763
|
exports.videoOverlaySlotSources = videoOverlaySlotSources;
|
|
21168
22764
|
exports.videoProviderFoldsLoneEndFrame = videoProviderFoldsLoneEndFrame;
|
|
21169
22765
|
exports.videoProviderRequiresImage = videoProviderRequiresImage;
|
|
22766
|
+
exports.videoSfxCreditId = videoSfxCreditId;
|
|
21170
22767
|
exports.windowAnalysisSchema = windowAnalysisSchema;
|
|
22768
|
+
exports.withWiredSettings = withWiredSettings;
|
|
21171
22769
|
exports.zipMergeLists = zipMergeLists;
|
|
21172
22770
|
//# sourceMappingURL=index.cjs.map
|
|
21173
22771
|
//# sourceMappingURL=index.cjs.map
|