@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.js
CHANGED
|
@@ -1077,7 +1077,7 @@ var VIDEO_MODELS = {
|
|
|
1077
1077
|
resolutions: ["720p", "1080p", "4k"],
|
|
1078
1078
|
pricing: [
|
|
1079
1079
|
{ identifier: "veo3", credits: 1e3, note: "4/6/8s with audio (flat per-generation)" },
|
|
1080
|
-
{ identifier: "veo3:4k", credits:
|
|
1080
|
+
{ identifier: "veo3:4k", credits: 1300, note: "4K (base 1080p \u2192 get-4k-video)" }
|
|
1081
1081
|
],
|
|
1082
1082
|
featured: true
|
|
1083
1083
|
},
|
|
@@ -2103,9 +2103,9 @@ var VIDEO_MODELS = {
|
|
|
2103
2103
|
kind: "video",
|
|
2104
2104
|
modes: ["video-analysis"],
|
|
2105
2105
|
family: "Nodaro",
|
|
2106
|
-
label: "Video Analysis (Fast
|
|
2106
|
+
label: "Video Analysis (Fast)",
|
|
2107
2107
|
series: "Video Analysis",
|
|
2108
|
-
description: "
|
|
2108
|
+
description: "Analyze a video into a structured shot list (scenes, camera, audio) \u2014 fast, economy tier. Billed per duration bucket.",
|
|
2109
2109
|
useCases: ["video-analysis", "shot-list", "fast"],
|
|
2110
2110
|
pricing: [
|
|
2111
2111
|
{ identifier: "video-analysis:gemini-3-flash", credits: 849, note: "10-min ceiling (no duration given)" },
|
|
@@ -2120,9 +2120,9 @@ var VIDEO_MODELS = {
|
|
|
2120
2120
|
kind: "video",
|
|
2121
2121
|
modes: ["video-analysis"],
|
|
2122
2122
|
family: "Nodaro",
|
|
2123
|
-
label: "Video Analysis (Fast)",
|
|
2123
|
+
label: "Video Analysis (Fast \u2014 legacy)",
|
|
2124
2124
|
series: "Video Analysis",
|
|
2125
|
-
description: "
|
|
2125
|
+
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.",
|
|
2126
2126
|
useCases: ["video-analysis", "shot-list", "fast"],
|
|
2127
2127
|
pricing: [
|
|
2128
2128
|
{ identifier: "video-analysis:gemini-3.6-flash", credits: 995, note: "10-min ceiling (no duration given)" },
|
|
@@ -2236,6 +2236,56 @@ var VIDEO_MODELS = {
|
|
|
2236
2236
|
]
|
|
2237
2237
|
}
|
|
2238
2238
|
};
|
|
2239
|
+
var TTS_LANGS_MULTILINGUAL_V2 = [
|
|
2240
|
+
"en",
|
|
2241
|
+
"ja",
|
|
2242
|
+
"zh",
|
|
2243
|
+
"de",
|
|
2244
|
+
"hi",
|
|
2245
|
+
"fr",
|
|
2246
|
+
"ko",
|
|
2247
|
+
"pt",
|
|
2248
|
+
"it",
|
|
2249
|
+
"es",
|
|
2250
|
+
"id",
|
|
2251
|
+
"nl",
|
|
2252
|
+
"tr",
|
|
2253
|
+
"fil",
|
|
2254
|
+
"pl",
|
|
2255
|
+
"sv",
|
|
2256
|
+
"bg",
|
|
2257
|
+
"ro",
|
|
2258
|
+
"ar",
|
|
2259
|
+
"cs",
|
|
2260
|
+
"el",
|
|
2261
|
+
"fi",
|
|
2262
|
+
"hr",
|
|
2263
|
+
"ms",
|
|
2264
|
+
"sk",
|
|
2265
|
+
"da",
|
|
2266
|
+
"ta",
|
|
2267
|
+
"uk",
|
|
2268
|
+
"ru"
|
|
2269
|
+
];
|
|
2270
|
+
var TTS_LANGS_FLASH_V25 = [...TTS_LANGS_MULTILINGUAL_V2, "hu", "no", "vi"];
|
|
2271
|
+
var TTS_LANGS_V3 = [
|
|
2272
|
+
...TTS_LANGS_FLASH_V25,
|
|
2273
|
+
"he",
|
|
2274
|
+
"th",
|
|
2275
|
+
"bn",
|
|
2276
|
+
"ur",
|
|
2277
|
+
"fa",
|
|
2278
|
+
"sr",
|
|
2279
|
+
"lt",
|
|
2280
|
+
"lv",
|
|
2281
|
+
"et",
|
|
2282
|
+
"ka",
|
|
2283
|
+
"is",
|
|
2284
|
+
"ca",
|
|
2285
|
+
"af",
|
|
2286
|
+
"sw"
|
|
2287
|
+
];
|
|
2288
|
+
var TTS_LEVERS_V2 = ["stability", "similarity", "style", "speed", "speakerBoost"];
|
|
2239
2289
|
var AUDIO_MODELS = {
|
|
2240
2290
|
// ── ElevenLabs TTS ──
|
|
2241
2291
|
"elevenlabs-v3": {
|
|
@@ -2245,11 +2295,43 @@ var AUDIO_MODELS = {
|
|
|
2245
2295
|
family: "ElevenLabs",
|
|
2246
2296
|
label: "ElevenLabs v3",
|
|
2247
2297
|
series: "ElevenLabs",
|
|
2248
|
-
description: "
|
|
2298
|
+
description: "Expressive ElevenLabs TTS \u2014 supports [audio tags] for emotion / pacing. Direct API.",
|
|
2249
2299
|
useCases: ["tts", "voice-over", "narration", "expressive"],
|
|
2250
2300
|
features: ["audio-tags", "voice-cloning"],
|
|
2251
2301
|
pricing: [{ identifier: "elevenlabs-v3", credits: 30 }],
|
|
2252
|
-
featured: true
|
|
2302
|
+
featured: true,
|
|
2303
|
+
tts: {
|
|
2304
|
+
audioTags: true,
|
|
2305
|
+
ssmlBreaks: false,
|
|
2306
|
+
levers: ["stability"],
|
|
2307
|
+
languageCode: true,
|
|
2308
|
+
maxChars: 5e3,
|
|
2309
|
+
// official cap (probed: 5,200 chars accepted; keep the clamp)
|
|
2310
|
+
languages: TTS_LANGS_V3
|
|
2311
|
+
}
|
|
2312
|
+
},
|
|
2313
|
+
"elevenlabs-v4": {
|
|
2314
|
+
id: "elevenlabs-v4",
|
|
2315
|
+
kind: "audio",
|
|
2316
|
+
modes: ["tts"],
|
|
2317
|
+
family: "ElevenLabs",
|
|
2318
|
+
label: "ElevenLabs v4",
|
|
2319
|
+
series: "ElevenLabs",
|
|
2320
|
+
description: "Newest ElevenLabs TTS \u2014 [audio tags], stability and similarity control, up to 10,000 characters per request. Direct API.",
|
|
2321
|
+
useCases: ["tts", "voice-over", "narration", "expressive", "long-form"],
|
|
2322
|
+
features: ["audio-tags", "voice-cloning"],
|
|
2323
|
+
pricing: [{ identifier: "elevenlabs-v4", credits: 30 }],
|
|
2324
|
+
tts: {
|
|
2325
|
+
audioTags: true,
|
|
2326
|
+
ssmlBreaks: false,
|
|
2327
|
+
levers: ["stability", "similarity"],
|
|
2328
|
+
languageCode: true,
|
|
2329
|
+
maxChars: 1e4,
|
|
2330
|
+
// The curated picker, the same 46 as v3. The model itself lists 85
|
|
2331
|
+
// (it adds e.g. Cantonese, Maltese, Mongolian, Burmese, Uzbek); widening
|
|
2332
|
+
// the picker is its own change — it needs a name and a translation per language.
|
|
2333
|
+
languages: TTS_LANGS_V3
|
|
2334
|
+
}
|
|
2253
2335
|
},
|
|
2254
2336
|
"elevenlabs-turbo": {
|
|
2255
2337
|
id: "elevenlabs-turbo",
|
|
@@ -2260,7 +2342,16 @@ var AUDIO_MODELS = {
|
|
|
2260
2342
|
series: "ElevenLabs",
|
|
2261
2343
|
description: "Fast, cheap ElevenLabs TTS via the direct ElevenLabs API. Good for narration.",
|
|
2262
2344
|
useCases: ["tts", "narration", "fast"],
|
|
2263
|
-
pricing: [{ identifier: "elevenlabs-turbo", credits: 15, note: "per 1K chars" }]
|
|
2345
|
+
pricing: [{ identifier: "elevenlabs-turbo", credits: 15, note: "per 1K chars" }],
|
|
2346
|
+
tts: {
|
|
2347
|
+
audioTags: false,
|
|
2348
|
+
ssmlBreaks: true,
|
|
2349
|
+
levers: TTS_LEVERS_V2,
|
|
2350
|
+
languageCode: true,
|
|
2351
|
+
maxChars: 4e4,
|
|
2352
|
+
// == eleven_flash_v2_5 (functionally equivalent)
|
|
2353
|
+
languages: TTS_LANGS_FLASH_V25
|
|
2354
|
+
}
|
|
2264
2355
|
},
|
|
2265
2356
|
"elevenlabs-multilingual": {
|
|
2266
2357
|
id: "elevenlabs-multilingual",
|
|
@@ -2271,7 +2362,16 @@ var AUDIO_MODELS = {
|
|
|
2271
2362
|
series: "ElevenLabs",
|
|
2272
2363
|
description: "Multi-language ElevenLabs TTS via the direct ElevenLabs API.",
|
|
2273
2364
|
useCases: ["tts", "multilingual"],
|
|
2274
|
-
pricing: [{ identifier: "elevenlabs-multilingual", credits: 30, note: "per 1K chars" }]
|
|
2365
|
+
pricing: [{ identifier: "elevenlabs-multilingual", credits: 30, note: "per 1K chars" }],
|
|
2366
|
+
tts: {
|
|
2367
|
+
audioTags: false,
|
|
2368
|
+
ssmlBreaks: true,
|
|
2369
|
+
levers: TTS_LEVERS_V2,
|
|
2370
|
+
// The API reference: "This parameter is not supported for multilingual_v2 models."
|
|
2371
|
+
languageCode: false,
|
|
2372
|
+
maxChars: 1e4,
|
|
2373
|
+
languages: TTS_LANGS_MULTILINGUAL_V2
|
|
2374
|
+
}
|
|
2275
2375
|
},
|
|
2276
2376
|
"elevenlabs-dialogue": {
|
|
2277
2377
|
id: "elevenlabs-dialogue",
|
|
@@ -2286,7 +2386,17 @@ var AUDIO_MODELS = {
|
|
|
2286
2386
|
description: "Multi-speaker dialogue via the direct ElevenLabs API \u2014 give it a script, it voices each role (any voice: premade, library, or cloned).",
|
|
2287
2387
|
useCases: ["tts", "dialogue", "multi-speaker"],
|
|
2288
2388
|
features: ["audio-tags", "voice-cloning"],
|
|
2289
|
-
pricing: [{ identifier: "elevenlabs-dialogue", credits: 25, note: "per 1K chars" }]
|
|
2389
|
+
pricing: [{ identifier: "elevenlabs-dialogue", credits: 25, note: "per 1K chars" }],
|
|
2390
|
+
tts: {
|
|
2391
|
+
audioTags: true,
|
|
2392
|
+
ssmlBreaks: false,
|
|
2393
|
+
levers: ["stability"],
|
|
2394
|
+
languageCode: true,
|
|
2395
|
+
// Total across lines. The documented 2,000 is a recommendation, not a
|
|
2396
|
+
// limit (2,500 and 5,000 both probed 200); capped like v3, the model underneath.
|
|
2397
|
+
maxChars: 5e3,
|
|
2398
|
+
languages: TTS_LANGS_V3
|
|
2399
|
+
}
|
|
2290
2400
|
},
|
|
2291
2401
|
// ── ElevenLabs voice utilities ──
|
|
2292
2402
|
// (voice cloning was retired platform-wide on 2026-09-15 — no catalog entry,
|
|
@@ -2402,7 +2512,15 @@ var AUDIO_MODELS = {
|
|
|
2402
2512
|
series: "ElevenLabs",
|
|
2403
2513
|
description: "Generate short sound effects from a text prompt.",
|
|
2404
2514
|
useCases: ["sfx", "ambient"],
|
|
2405
|
-
|
|
2515
|
+
// Priced per whole second asked for (`elevenlabs-sfx:<n>s`, 1–30 s, rounded
|
|
2516
|
+
// up — textToAudioCreditId); representative rows, every second has its own.
|
|
2517
|
+
// First row = the default variant (a request with no duration bills 5 s).
|
|
2518
|
+
pricing: [
|
|
2519
|
+
{ identifier: "elevenlabs-sfx:5s", credits: 5, note: "5s \u2014 also the price when no duration is set; 1 credit per second, rounded up" },
|
|
2520
|
+
{ identifier: "elevenlabs-sfx:1s", credits: 1, note: "1s (min)" },
|
|
2521
|
+
{ identifier: "elevenlabs-sfx:10s", credits: 10, note: "10s" },
|
|
2522
|
+
{ identifier: "elevenlabs-sfx:30s", credits: 30, note: "30s (max)" }
|
|
2523
|
+
]
|
|
2406
2524
|
},
|
|
2407
2525
|
// ── Suno music ──
|
|
2408
2526
|
"suno": {
|
|
@@ -2706,6 +2824,14 @@ function nearestAspectRatio(token, allowed) {
|
|
|
2706
2824
|
}
|
|
2707
2825
|
return best;
|
|
2708
2826
|
}
|
|
2827
|
+
function fitAspectRatioToModel(modelId, ratio) {
|
|
2828
|
+
const token = ratio.trim();
|
|
2829
|
+
const allowed = MODEL_CATALOG[modelId]?.aspectRatios;
|
|
2830
|
+
if (!allowed?.length || token === "" || PASSTHROUGH_ASPECT_TOKENS.has(token.toLowerCase())) return token;
|
|
2831
|
+
const exact = allowed.find((a) => a === token) ?? allowed.find((a) => a.toLowerCase() === token.toLowerCase());
|
|
2832
|
+
if (exact !== void 0) return exact;
|
|
2833
|
+
return nearestAspectRatio(token, allowed.filter((a) => !PASSTHROUGH_ASPECT_TOKENS.has(a.toLowerCase()))) ?? allowed[0];
|
|
2834
|
+
}
|
|
2709
2835
|
function readOptionToken(value) {
|
|
2710
2836
|
if (value === void 0 || value === null) return void 0;
|
|
2711
2837
|
const s = (typeof value === "string" ? value : String(value)).trim();
|
|
@@ -2718,20 +2844,16 @@ function normalizeVideoRequestParams(modelId, input) {
|
|
|
2718
2844
|
const out = { aspectRatio: aspect, resolution: res, adjustments: [] };
|
|
2719
2845
|
if (!m) return out;
|
|
2720
2846
|
if (m.aspectRatios?.length && aspect && !PASSTHROUGH_ASPECT_TOKENS.has(aspect.toLowerCase())) {
|
|
2721
|
-
const
|
|
2722
|
-
|
|
2723
|
-
if (exact !== void 0) {
|
|
2724
|
-
out.aspectRatio = exact;
|
|
2725
|
-
} else {
|
|
2726
|
-
const next = nearestAspectRatio(aspect, allowed.filter((a) => !PASSTHROUGH_ASPECT_TOKENS.has(a.toLowerCase()))) ?? allowed[0];
|
|
2847
|
+
const next = fitAspectRatioToModel(modelId, aspect);
|
|
2848
|
+
if (next.toLowerCase() !== aspect.toLowerCase()) {
|
|
2727
2849
|
out.adjustments.push({
|
|
2728
2850
|
field: "aspectRatio",
|
|
2729
2851
|
from: aspect,
|
|
2730
2852
|
to: next,
|
|
2731
|
-
reason: `${m.label} does not support aspect ratio "${aspect}" \u2014 using "${next}" instead. Supported: ${
|
|
2853
|
+
reason: `${m.label} does not support aspect ratio "${aspect}" \u2014 using "${next}" instead. Supported: ${m.aspectRatios.join(", ")}.`
|
|
2732
2854
|
});
|
|
2733
|
-
out.aspectRatio = next;
|
|
2734
2855
|
}
|
|
2856
|
+
out.aspectRatio = next;
|
|
2735
2857
|
}
|
|
2736
2858
|
if (m.resolutions?.length && res) {
|
|
2737
2859
|
const allowed = m.resolutions;
|
|
@@ -3056,18 +3178,12 @@ function getMaxNegativePromptChars(provider) {
|
|
|
3056
3178
|
return provider && MAX_NEGATIVE_PROMPT_CHARS_BY_PROVIDER[provider] || NEGATIVE_PROMPT_MAX;
|
|
3057
3179
|
}
|
|
3058
3180
|
var TTS_TEXT_MAX = 5e3;
|
|
3059
|
-
var MAX_TTS_CHARS_BY_PROVIDER =
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
"elevenlabs-multilingual": 1e4,
|
|
3063
|
-
// eleven_multilingual_v2
|
|
3064
|
-
"elevenlabs-v3": 5e3,
|
|
3065
|
-
// official cap (probed: 5,200 chars accepted; keep the clamp)
|
|
3066
|
-
"elevenlabs-dialogue": 5e3
|
|
3067
|
-
// total across lines; ≤2,000 recommended for best quality
|
|
3068
|
-
};
|
|
3181
|
+
var MAX_TTS_CHARS_BY_PROVIDER = Object.fromEntries(
|
|
3182
|
+
Object.values(MODEL_CATALOG).filter((m) => m.tts !== void 0).map((m) => [m.id, m.tts.maxChars])
|
|
3183
|
+
);
|
|
3069
3184
|
function getMaxTtsChars(provider) {
|
|
3070
|
-
|
|
3185
|
+
const cap = provider && Object.hasOwn(MAX_TTS_CHARS_BY_PROVIDER, provider) ? MAX_TTS_CHARS_BY_PROVIDER[provider] : void 0;
|
|
3186
|
+
return cap || TTS_TEXT_MAX;
|
|
3071
3187
|
}
|
|
3072
3188
|
var SUNO_TITLE_MAX = 80;
|
|
3073
3189
|
function getMaxSunoPromptChars(model, customMode) {
|
|
@@ -3624,6 +3740,7 @@ var MOTION_TRANSFER_PROVIDERS = [
|
|
|
3624
3740
|
];
|
|
3625
3741
|
var TTS_PROVIDERS = [
|
|
3626
3742
|
"elevenlabs-v3",
|
|
3743
|
+
"elevenlabs-v4",
|
|
3627
3744
|
"elevenlabs-turbo",
|
|
3628
3745
|
"elevenlabs-multilingual",
|
|
3629
3746
|
"elevenlabs"
|
|
@@ -3633,6 +3750,7 @@ var TEXT_TO_AUDIO_PROVIDERS = [
|
|
|
3633
3750
|
// "tangoflux",
|
|
3634
3751
|
"elevenlabs-sfx"
|
|
3635
3752
|
];
|
|
3753
|
+
var DEFAULT_TEXT_TO_AUDIO_PROVIDER = "elevenlabs-sfx";
|
|
3636
3754
|
var MUSIC_PROVIDERS = [
|
|
3637
3755
|
// Replicate disabled
|
|
3638
3756
|
// "musicgen",
|
|
@@ -3646,6 +3764,14 @@ var MUSIC_PROVIDERS = [
|
|
|
3646
3764
|
// "lyria",
|
|
3647
3765
|
// "bark",
|
|
3648
3766
|
];
|
|
3767
|
+
var DEFAULT_MUSIC_PROVIDER = "minimax";
|
|
3768
|
+
var MUSIC_PROVIDER_LABELS = {
|
|
3769
|
+
minimax: "MiniMax Music"
|
|
3770
|
+
};
|
|
3771
|
+
var MUSIC_CREDIT_ID = "generate-music";
|
|
3772
|
+
function resolveMusicProvider(value) {
|
|
3773
|
+
return MUSIC_PROVIDERS.includes(value) ? value : DEFAULT_MUSIC_PROVIDER;
|
|
3774
|
+
}
|
|
3649
3775
|
var TRANSCRIBE_PROVIDERS = [
|
|
3650
3776
|
"elevenlabs-stt",
|
|
3651
3777
|
"whisper",
|
|
@@ -5190,6 +5316,12 @@ var SUNO_SELECT_OPERATIONS = [
|
|
|
5190
5316
|
"suno-add-vocals",
|
|
5191
5317
|
"suno-upload-extend"
|
|
5192
5318
|
];
|
|
5319
|
+
function speedRampCreditId(quality) {
|
|
5320
|
+
return quality === "smooth" ? "speed-ramp:smooth" : "speed-ramp";
|
|
5321
|
+
}
|
|
5322
|
+
function applyEdlCreditId(quality) {
|
|
5323
|
+
return quality === "proxy" ? "apply-edl:proxy" : "apply-edl";
|
|
5324
|
+
}
|
|
5193
5325
|
function sunoCreditType(model, operation) {
|
|
5194
5326
|
if (!SUNO_VERSION_PRICED_OPERATIONS.includes(operation)) {
|
|
5195
5327
|
return operation;
|
|
@@ -5206,20 +5338,25 @@ var SUNO_VERSION_CREDIT_KEYS = {
|
|
|
5206
5338
|
|
|
5207
5339
|
// src/credit-estimators/video-utils.ts
|
|
5208
5340
|
var VIDEO_UTIL_PRICING = {
|
|
5209
|
-
/**
|
|
5210
|
-
|
|
5211
|
-
/**
|
|
5341
|
+
/** Base credits per pricing unit. The node's own `model_pricing` row is one unit. */
|
|
5342
|
+
CREDIT_UNIT: 10,
|
|
5343
|
+
/** Base credits per 5 seconds of output (one unit), ceiling. */
|
|
5344
|
+
CREDITS_PER_5_SEC: 10,
|
|
5345
|
+
/** Smart-loop-cut work scales at one unit per ~24 frames searched. */
|
|
5212
5346
|
FRAMES_PER_CREDIT: 24,
|
|
5213
5347
|
/** Used when an upstream node hasn't produced a measurable duration yet. */
|
|
5214
5348
|
FALLBACK_DURATION_SECONDS: 8
|
|
5215
5349
|
};
|
|
5350
|
+
function unitsToCredits(units) {
|
|
5351
|
+
return VIDEO_UTIL_PRICING.CREDIT_UNIT * Math.max(1, units);
|
|
5352
|
+
}
|
|
5216
5353
|
function estimateLoopVideoCredits(data, upstreamDuration) {
|
|
5217
5354
|
const fallback = VIDEO_UTIL_PRICING.FALLBACK_DURATION_SECONDS;
|
|
5218
5355
|
const inputDuration = upstreamDuration ?? fallback;
|
|
5219
5356
|
const output = data.mode === "duration" ? data.targetDuration ?? fallback : (data.repeatCount ?? 2) * inputDuration;
|
|
5220
5357
|
const base = Math.ceil(output / 5);
|
|
5221
5358
|
const cut = data.smartLoopCutBeforeRepeat ? Math.ceil((data.smartLoopCutLookback ?? 16) / VIDEO_UTIL_PRICING.FRAMES_PER_CREDIT) : 0;
|
|
5222
|
-
return
|
|
5359
|
+
return unitsToCredits(base + cut);
|
|
5223
5360
|
}
|
|
5224
5361
|
function estimateTrimVideoCredits(data, upstreamDuration) {
|
|
5225
5362
|
const fallback = VIDEO_UTIL_PRICING.FALLBACK_DURATION_SECONDS;
|
|
@@ -5227,31 +5364,31 @@ function estimateTrimVideoCredits(data, upstreamDuration) {
|
|
|
5227
5364
|
if (data.trimMode === "smart-loop-cut") {
|
|
5228
5365
|
const base = Math.ceil(inputDuration / 5);
|
|
5229
5366
|
const cut = Math.ceil((data.smartLoopCutLookback ?? 16) / VIDEO_UTIL_PRICING.FRAMES_PER_CREDIT);
|
|
5230
|
-
return
|
|
5367
|
+
return unitsToCredits(base + cut);
|
|
5231
5368
|
}
|
|
5232
5369
|
if (data.trimMode === "frames") {
|
|
5233
5370
|
const startSec = (data.trimStartFrames ?? 0) / VIDEO_UTIL_PRICING.FRAMES_PER_CREDIT;
|
|
5234
5371
|
const endSec = (data.trimEndFrames ?? 0) / VIDEO_UTIL_PRICING.FRAMES_PER_CREDIT;
|
|
5235
5372
|
const output2 = Math.max(0, inputDuration - startSec - endSec);
|
|
5236
|
-
return
|
|
5373
|
+
return unitsToCredits(Math.ceil(output2 / 5));
|
|
5237
5374
|
}
|
|
5238
5375
|
if (data.trimMode === "seconds") {
|
|
5239
5376
|
const output2 = Math.max(0, inputDuration - (data.trimStartSeconds ?? 0) - (data.trimEndSeconds ?? 0));
|
|
5240
|
-
return
|
|
5377
|
+
return unitsToCredits(Math.ceil(output2 / 5));
|
|
5241
5378
|
}
|
|
5242
5379
|
if (data.trimMode === "keep-first-seconds") {
|
|
5243
5380
|
const output2 = Math.min(inputDuration, Math.max(0, data.keepFirstSeconds ?? 0));
|
|
5244
|
-
return
|
|
5381
|
+
return unitsToCredits(Math.ceil(output2 / 5));
|
|
5245
5382
|
}
|
|
5246
5383
|
if (data.trimMode === "keep-last-seconds") {
|
|
5247
5384
|
const output2 = Math.min(inputDuration, Math.max(0, data.keepLastSeconds ?? 0));
|
|
5248
|
-
return
|
|
5385
|
+
return unitsToCredits(Math.ceil(output2 / 5));
|
|
5249
5386
|
}
|
|
5250
5387
|
const output = (data.endTime ?? 0) - (data.startTime ?? 0);
|
|
5251
|
-
return
|
|
5388
|
+
return unitsToCredits(Math.ceil(output / 5));
|
|
5252
5389
|
}
|
|
5253
5390
|
function estimateCombineVideosCredits(data, upstreamDurations) {
|
|
5254
|
-
if (upstreamDurations.length === 0) return 1;
|
|
5391
|
+
if (upstreamDurations.length === 0) return unitsToCredits(1);
|
|
5255
5392
|
const fallback = VIDEO_UTIL_PRICING.FALLBACK_DURATION_SECONDS;
|
|
5256
5393
|
const n = upstreamDurations.length;
|
|
5257
5394
|
let total = 0;
|
|
@@ -5265,15 +5402,17 @@ function estimateCombineVideosCredits(data, upstreamDurations) {
|
|
|
5265
5402
|
total -= trimSecPerClip * n;
|
|
5266
5403
|
const base = Math.ceil(Math.max(0, total) / 5);
|
|
5267
5404
|
const inputAdder = Math.max(0, n - 2);
|
|
5268
|
-
return
|
|
5405
|
+
return unitsToCredits(base + inputAdder);
|
|
5269
5406
|
}
|
|
5270
5407
|
function estimateLoopTrimAddonCredits(loopTrim, outputDurationSeconds) {
|
|
5271
5408
|
if (!loopTrim?.enabled) return 0;
|
|
5272
5409
|
const frames = Math.max(1, Math.min(loopTrim.framesToTest ?? 16, 64));
|
|
5273
|
-
return
|
|
5410
|
+
return unitsToCredits(
|
|
5411
|
+
Math.ceil(outputDurationSeconds / 5) + Math.ceil(frames / VIDEO_UTIL_PRICING.FRAMES_PER_CREDIT)
|
|
5412
|
+
);
|
|
5274
5413
|
}
|
|
5275
5414
|
function assembleNarratedVideoCredits(blockCount) {
|
|
5276
|
-
return 3 + Math.ceil(blockCount / 6);
|
|
5415
|
+
return unitsToCredits(3 + Math.ceil(blockCount / 6));
|
|
5277
5416
|
}
|
|
5278
5417
|
|
|
5279
5418
|
// src/image-overlay-platforms.ts
|
|
@@ -5333,6 +5472,73 @@ function imageOverlayCredits(variants) {
|
|
|
5333
5472
|
return IMAGE_OVERLAY_BASE_CREDITS + IMAGE_OVERLAY_VARIANT_CREDITS * imageOverlayBillableVariants(variants).length;
|
|
5334
5473
|
}
|
|
5335
5474
|
|
|
5475
|
+
// src/credit-estimators/video-sfx.ts
|
|
5476
|
+
var VIDEO_SFX_PRICING = {
|
|
5477
|
+
/** The longest input video a run accepts, in seconds. */
|
|
5478
|
+
MAX_DURATION_SEC: 300,
|
|
5479
|
+
/** The length priced (and generated) when the input video cannot be measured. */
|
|
5480
|
+
FALLBACK_DURATION_SEC: 8
|
|
5481
|
+
};
|
|
5482
|
+
var VIDEO_SFX_BUCKETS = [
|
|
5483
|
+
{ upToSec: 8, creditId: "replicate-mmaudio:8s" },
|
|
5484
|
+
{ upToSec: 15, creditId: "replicate-mmaudio:15s" },
|
|
5485
|
+
{ upToSec: 30, creditId: "replicate-mmaudio:30s" },
|
|
5486
|
+
{ upToSec: 60, creditId: "replicate-mmaudio:60s" },
|
|
5487
|
+
{ upToSec: 120, creditId: "replicate-mmaudio:120s" },
|
|
5488
|
+
{ upToSec: 300, creditId: "replicate-mmaudio:300s" }
|
|
5489
|
+
];
|
|
5490
|
+
function videoSfxCreditId(durationSec) {
|
|
5491
|
+
const seconds = typeof durationSec === "number" && Number.isFinite(durationSec) && durationSec > 0 ? durationSec : VIDEO_SFX_PRICING.FALLBACK_DURATION_SEC;
|
|
5492
|
+
const bucket = VIDEO_SFX_BUCKETS.find((b) => seconds <= b.upToSec) ?? VIDEO_SFX_BUCKETS[VIDEO_SFX_BUCKETS.length - 1];
|
|
5493
|
+
return bucket.creditId;
|
|
5494
|
+
}
|
|
5495
|
+
|
|
5496
|
+
// src/credit-estimators/text-to-audio.ts
|
|
5497
|
+
var TEXT_TO_AUDIO_PRICING = {
|
|
5498
|
+
/** The engine priced per second of requested audio. */
|
|
5499
|
+
PER_SECOND_PROVIDER: "elevenlabs-sfx",
|
|
5500
|
+
/** The longest clip a request may ask for, in seconds. */
|
|
5501
|
+
MAX_DURATION_SEC: 30,
|
|
5502
|
+
/** The length priced when a request names none (the model picks the length). */
|
|
5503
|
+
DEFAULT_BILLED_SEC: 5
|
|
5504
|
+
};
|
|
5505
|
+
var TEXT_TO_AUDIO_SFX_CREDIT_IDS = Array.from(
|
|
5506
|
+
{ length: TEXT_TO_AUDIO_PRICING.MAX_DURATION_SEC },
|
|
5507
|
+
(_, i) => `${TEXT_TO_AUDIO_PRICING.PER_SECOND_PROVIDER}:${i + 1}s`
|
|
5508
|
+
);
|
|
5509
|
+
function textToAudioBilledSeconds(duration) {
|
|
5510
|
+
const seconds = typeof duration === "number" ? duration : typeof duration === "string" && duration.trim() !== "" ? Number(duration) : Number.NaN;
|
|
5511
|
+
if (!Number.isFinite(seconds) || seconds <= 0) return TEXT_TO_AUDIO_PRICING.DEFAULT_BILLED_SEC;
|
|
5512
|
+
return Math.min(Math.ceil(seconds), TEXT_TO_AUDIO_PRICING.MAX_DURATION_SEC);
|
|
5513
|
+
}
|
|
5514
|
+
function textToAudioCreditId(provider, duration) {
|
|
5515
|
+
const engine = provider || DEFAULT_TEXT_TO_AUDIO_PROVIDER;
|
|
5516
|
+
if (engine !== TEXT_TO_AUDIO_PRICING.PER_SECOND_PROVIDER) return engine;
|
|
5517
|
+
return `${engine}:${textToAudioBilledSeconds(duration)}s`;
|
|
5518
|
+
}
|
|
5519
|
+
|
|
5520
|
+
// src/credit-estimators/ltx-extend.ts
|
|
5521
|
+
var LTX_EXTEND_PER_SECOND_CREDIT_ID = "ltx-2.3-pro-extend:per-second";
|
|
5522
|
+
var LTX_EXTEND_DURATION = {
|
|
5523
|
+
MIN_SEC: 1,
|
|
5524
|
+
MAX_SEC: 20,
|
|
5525
|
+
DEFAULT_SEC: 6
|
|
5526
|
+
};
|
|
5527
|
+
function ltxExtendDurationSec(raw) {
|
|
5528
|
+
const n = typeof raw === "number" ? raw : typeof raw === "string" && raw.trim() !== "" ? Number(raw) : Number.NaN;
|
|
5529
|
+
if (!Number.isFinite(n)) return LTX_EXTEND_DURATION.DEFAULT_SEC;
|
|
5530
|
+
return Math.min(LTX_EXTEND_DURATION.MAX_SEC, Math.max(LTX_EXTEND_DURATION.MIN_SEC, Math.round(n)));
|
|
5531
|
+
}
|
|
5532
|
+
|
|
5533
|
+
// src/credit-estimators/ltx-retake.ts
|
|
5534
|
+
var LTX_RETAKE_PER_SECOND_CREDIT_ID = "ltx-2.3-pro-retake:per-second";
|
|
5535
|
+
var LTX_RETAKE_MIN_DURATION_SEC = 2;
|
|
5536
|
+
function ltxRetakeDurationSec(raw) {
|
|
5537
|
+
const n = typeof raw === "number" ? raw : typeof raw === "string" && raw.trim() !== "" ? Number(raw) : Number.NaN;
|
|
5538
|
+
if (!Number.isFinite(n) || n <= 0) return LTX_RETAKE_MIN_DURATION_SEC;
|
|
5539
|
+
return Math.max(LTX_RETAKE_MIN_DURATION_SEC, n);
|
|
5540
|
+
}
|
|
5541
|
+
|
|
5336
5542
|
// src/video-duration.ts
|
|
5337
5543
|
function extractVideoDurationFromNode(data) {
|
|
5338
5544
|
if (!data) return void 0;
|
|
@@ -5595,8 +5801,73 @@ var FAN_OUT_EACH_TYPES = /* @__PURE__ */ new Set([
|
|
|
5595
5801
|
// for which the list extractors return undefined, so an "each" edge falls back
|
|
5596
5802
|
// to the scalar `edl` value (no fan-out) — the same graceful degradation
|
|
5597
5803
|
// web-scrape relies on. See `unwrapEditPlanOutput` in `edit-plan-contract.ts`.
|
|
5598
|
-
"edit-plan"
|
|
5804
|
+
"edit-plan",
|
|
5805
|
+
// Content Ideas emits one creative brief per idea on `listResults`, so an
|
|
5806
|
+
// edge leaving it defaults to "each" — the node after it (typically
|
|
5807
|
+
// Generate Script) runs once per idea, on the server too.
|
|
5808
|
+
"content-ideas"
|
|
5599
5809
|
]);
|
|
5810
|
+
var FAN_OUT_EACH_HANDLES = {
|
|
5811
|
+
// Camera Switch run once per clip (Edit Plan in clips mode): each clip's
|
|
5812
|
+
// switched EDL is its own Apply EDL render. Its transcript is the same for
|
|
5813
|
+
// every clip (the master clock, renamed), so that handle stays one value
|
|
5814
|
+
// (decided 2026-10-04).
|
|
5815
|
+
"camera-switch": { each: ["edl"], primary: "edl" }
|
|
5816
|
+
};
|
|
5817
|
+
function defaultEdgeOutputMode(sourceType, sourceHandle) {
|
|
5818
|
+
if (typeof sourceType !== "string") return "last";
|
|
5819
|
+
if (FAN_OUT_EACH_TYPES.has(sourceType)) return "each";
|
|
5820
|
+
const entry = FAN_OUT_EACH_HANDLES[sourceType];
|
|
5821
|
+
if (!entry) return "last";
|
|
5822
|
+
return entry.each.includes(sourceHandle || entry.primary) ? "each" : "last";
|
|
5823
|
+
}
|
|
5824
|
+
function listResultsServeHandle(sourceType, sourceHandle) {
|
|
5825
|
+
const entry = typeof sourceType === "string" ? FAN_OUT_EACH_HANDLES[sourceType] : void 0;
|
|
5826
|
+
return !entry || entry.each.includes(sourceHandle || entry.primary);
|
|
5827
|
+
}
|
|
5828
|
+
var FAN_IN_TARGETS = {
|
|
5829
|
+
// Choose Best — every wire is a candidate.
|
|
5830
|
+
reduce: "*",
|
|
5831
|
+
// Content Ideas — one or more recipes, from several Content Recipe nodes
|
|
5832
|
+
// and/or one that ran once per post.
|
|
5833
|
+
"content-ideas": ["recipes"],
|
|
5834
|
+
// Telegram Reply — one message per run, whatever is wired into its text
|
|
5835
|
+
// input: a list (or a writer that ran once per item) arrives as one
|
|
5836
|
+
// message, never as a burst of sends to the owner's chat.
|
|
5837
|
+
"telegram-account-send": ["in"]
|
|
5838
|
+
};
|
|
5839
|
+
function isFanInNodeType(nodeType) {
|
|
5840
|
+
return typeof nodeType === "string" && Object.prototype.hasOwnProperty.call(FAN_IN_TARGETS, nodeType);
|
|
5841
|
+
}
|
|
5842
|
+
function isFanInEdge(targetType, targetHandle) {
|
|
5843
|
+
if (!isFanInNodeType(targetType)) return false;
|
|
5844
|
+
const spec = FAN_IN_TARGETS[targetType];
|
|
5845
|
+
if (spec === "*") return true;
|
|
5846
|
+
return targetHandle == null || targetHandle === "" || spec.includes(targetHandle);
|
|
5847
|
+
}
|
|
5848
|
+
|
|
5849
|
+
// src/exposed-field-keys.ts
|
|
5850
|
+
var LEGACY_EXPOSED_FIELD_KEYS = {
|
|
5851
|
+
// Published as the Text to Speech slider's key. The node's data field, and every runner, route and config
|
|
5852
|
+
// panel, has always been `similarityBoost` — so the slider moved nothing.
|
|
5853
|
+
"text-to-speech": { similarity: "similarityBoost" }
|
|
5854
|
+
};
|
|
5855
|
+
function canonicalExposedFieldKey(nodeType, key) {
|
|
5856
|
+
if (typeof nodeType !== "string" || !Object.hasOwn(LEGACY_EXPOSED_FIELD_KEYS, nodeType)) return key;
|
|
5857
|
+
const renames = LEGACY_EXPOSED_FIELD_KEYS[nodeType];
|
|
5858
|
+
return Object.hasOwn(renames, key) ? renames[key] : key;
|
|
5859
|
+
}
|
|
5860
|
+
function canonicalizeOverrideKeys(nodeType, overrides) {
|
|
5861
|
+
let out;
|
|
5862
|
+
for (const key of Object.keys(overrides)) {
|
|
5863
|
+
const current = canonicalExposedFieldKey(nodeType, key);
|
|
5864
|
+
if (current === key) continue;
|
|
5865
|
+
out ??= { ...overrides };
|
|
5866
|
+
delete out[key];
|
|
5867
|
+
if (!Object.hasOwn(overrides, current)) out[current] = overrides[key];
|
|
5868
|
+
}
|
|
5869
|
+
return out ?? overrides;
|
|
5870
|
+
}
|
|
5600
5871
|
|
|
5601
5872
|
// src/presentation-utils.ts
|
|
5602
5873
|
var INPUT_NODE_TYPES = /* @__PURE__ */ new Set([
|
|
@@ -5900,7 +6171,7 @@ var MEDIA_INPUT_FIELD_TYPES = /* @__PURE__ */ new Set([
|
|
|
5900
6171
|
"audio-url"
|
|
5901
6172
|
]);
|
|
5902
6173
|
function mergeNodeInputOverrides(nodeType, data, overrides) {
|
|
5903
|
-
const merged = { ...data, ...overrides };
|
|
6174
|
+
const merged = { ...data, ...canonicalizeOverrideKeys(nodeType, overrides) };
|
|
5904
6175
|
const schema = nodeType ? INPUT_FIELD_MAP[nodeType] : void 0;
|
|
5905
6176
|
if (schema && MEDIA_INPUT_FIELD_TYPES.has(schema.type) && schema.key in overrides && overrides[schema.key] !== data[schema.key] && !("metadata" in overrides)) {
|
|
5906
6177
|
delete merged.metadata;
|
|
@@ -6557,7 +6828,12 @@ var LLM_FEATURE_DEFAULTS = {
|
|
|
6557
6828
|
"translate": "gemini-3.6-flash",
|
|
6558
6829
|
"image-critic": "claude-sonnet-4.6",
|
|
6559
6830
|
"pick-best-llm": "claude-sonnet-4.6",
|
|
6560
|
-
"workflow-copilot": "claude-sonnet-5"
|
|
6831
|
+
"workflow-copilot": "claude-sonnet-5",
|
|
6832
|
+
// Both economy on purpose — measured: ten ideas in Hebrew took ~1 min here
|
|
6833
|
+
// and ~3.5 min (two calls) on claude-sonnet-4.6. The private plugin keeps
|
|
6834
|
+
// the same two defaults for API callers that omit the model.
|
|
6835
|
+
"content-recipe": "gemini-3.6-flash",
|
|
6836
|
+
"content-ideas": "gemini-3.6-flash"
|
|
6561
6837
|
};
|
|
6562
6838
|
var LLM_MODALITY_CAPS = {
|
|
6563
6839
|
"gemini-3-flash": { image: true, video: true, audio: true },
|
|
@@ -8346,11 +8622,16 @@ var NON_PROMPT_TEXT_LANES = {
|
|
|
8346
8622
|
negative: "*",
|
|
8347
8623
|
"system-prompt": "*",
|
|
8348
8624
|
script: ["ai-avatar"],
|
|
8349
|
-
transcript: ["add-captions", "apply-edl", "edit-plan"],
|
|
8350
|
-
edl: ["apply-edl"],
|
|
8625
|
+
transcript: ["add-captions", "apply-edl", "edit-plan", "camera-switch"],
|
|
8626
|
+
edl: ["apply-edl", "camera-switch"],
|
|
8351
8627
|
silence: ["edit-plan"],
|
|
8628
|
+
offsets: ["edit-plan"],
|
|
8352
8629
|
qrText: ["image-overlay"],
|
|
8353
|
-
transition: ["slideshow"]
|
|
8630
|
+
transition: ["slideshow"],
|
|
8631
|
+
// Content Recipe's `link` carries the post's address (inputs.sourceLink), not
|
|
8632
|
+
// the material it analyzes — a list of links fanned through it must not be
|
|
8633
|
+
// written into the material too.
|
|
8634
|
+
link: ["content-recipe"]
|
|
8354
8635
|
};
|
|
8355
8636
|
function fanOutTextFeedsPrompt(nodeType, targetHandle) {
|
|
8356
8637
|
const scope = Object.hasOwn(NON_PROMPT_TEXT_LANES, targetHandle ?? "") ? NON_PROMPT_TEXT_LANES[targetHandle ?? ""] : void 0;
|
|
@@ -8500,6 +8781,10 @@ var PARAMETER_NODE_TYPES = /* @__PURE__ */ new Set([
|
|
|
8500
8781
|
"scene-count",
|
|
8501
8782
|
"duration",
|
|
8502
8783
|
"aspect-ratio",
|
|
8784
|
+
// Generation Settings "Provider": a model id read from data at run time, like
|
|
8785
|
+
// duration / aspect-ratio (it used to be only a SKIP node, so a server run
|
|
8786
|
+
// could not read it at all).
|
|
8787
|
+
"provider",
|
|
8503
8788
|
"music-genre",
|
|
8504
8789
|
"music-mood",
|
|
8505
8790
|
"instrumentation",
|
|
@@ -8507,17 +8792,18 @@ var PARAMETER_NODE_TYPES = /* @__PURE__ */ new Set([
|
|
|
8507
8792
|
"voice-delivery"
|
|
8508
8793
|
]);
|
|
8509
8794
|
var HINT_EXEMPT_PARAMETER_TYPES = /* @__PURE__ */ new Set([
|
|
8510
|
-
"motion",
|
|
8511
8795
|
"scene-count",
|
|
8512
8796
|
"duration",
|
|
8513
|
-
"aspect-ratio"
|
|
8797
|
+
"aspect-ratio",
|
|
8798
|
+
"provider"
|
|
8514
8799
|
]);
|
|
8515
8800
|
var VIDEO_ONLY_PARAMETER_NODE_TYPES = /* @__PURE__ */ new Set([
|
|
8516
8801
|
"camera-motion",
|
|
8517
8802
|
"temporal",
|
|
8518
8803
|
"transition",
|
|
8519
8804
|
"character-fx",
|
|
8520
|
-
"character-motion"
|
|
8805
|
+
"character-motion",
|
|
8806
|
+
"motion"
|
|
8521
8807
|
]);
|
|
8522
8808
|
var EXECUTION_GRAPH_COMPOSED_PARAMETER_TYPES = /* @__PURE__ */ new Set([
|
|
8523
8809
|
"camera-motion",
|
|
@@ -8630,6 +8916,8 @@ function getParameterValue(data, nodeType) {
|
|
|
8630
8916
|
return data.seconds != null ? String(data.seconds) : void 0;
|
|
8631
8917
|
case "aspect-ratio":
|
|
8632
8918
|
return trim(data.ratio);
|
|
8919
|
+
case "provider":
|
|
8920
|
+
return trim(data.provider);
|
|
8633
8921
|
default:
|
|
8634
8922
|
return void 0;
|
|
8635
8923
|
}
|
|
@@ -9492,9 +9780,161 @@ function deriveLinkedFields(nodeType, value) {
|
|
|
9492
9780
|
return {};
|
|
9493
9781
|
}
|
|
9494
9782
|
|
|
9783
|
+
// src/settings-input.ts
|
|
9784
|
+
var SETTINGS_INPUT_HANDLE = "settings";
|
|
9785
|
+
var SETTINGS_SOURCE_FIELDS = {
|
|
9786
|
+
"aspect-ratio": "aspectRatio",
|
|
9787
|
+
duration: "duration",
|
|
9788
|
+
provider: "provider"
|
|
9789
|
+
};
|
|
9790
|
+
var SETTINGS_HINT_SOURCES = ["motion"];
|
|
9791
|
+
var SETTINGS_SOURCE_TYPES = [
|
|
9792
|
+
...Object.keys(SETTINGS_SOURCE_FIELDS),
|
|
9793
|
+
...SETTINGS_HINT_SOURCES
|
|
9794
|
+
];
|
|
9795
|
+
function fieldOf(sourceType) {
|
|
9796
|
+
return Object.prototype.hasOwnProperty.call(SETTINGS_SOURCE_FIELDS, sourceType) ? SETTINGS_SOURCE_FIELDS[sourceType] : void 0;
|
|
9797
|
+
}
|
|
9798
|
+
var VIDEO_SETTINGS = ["aspect-ratio", "duration", "provider", "motion"];
|
|
9799
|
+
var SETTINGS_CONSUMERS = {
|
|
9800
|
+
"generate-video": {
|
|
9801
|
+
accepts: VIDEO_SETTINGS,
|
|
9802
|
+
models: VIDEO_GEN_PROVIDERS,
|
|
9803
|
+
defaultModel: DEFAULT_VIDEO_PROVIDER,
|
|
9804
|
+
duration: "model"
|
|
9805
|
+
},
|
|
9806
|
+
// Generate Video Pro has Generate Video's handles by construction
|
|
9807
|
+
// (generate-video-pro-handles.ts re-exports them), so it takes the same
|
|
9808
|
+
// settings; its own models and its own duration rule.
|
|
9809
|
+
"generate-video-pro": {
|
|
9810
|
+
accepts: VIDEO_SETTINGS,
|
|
9811
|
+
models: GVP_SUPPORTED_PROVIDERS,
|
|
9812
|
+
defaultModel: GVP_DEFAULT_PROVIDER,
|
|
9813
|
+
duration: "total"
|
|
9814
|
+
},
|
|
9815
|
+
// A still image has no length, so no Duration.
|
|
9816
|
+
"generate-image": {
|
|
9817
|
+
accepts: ["aspect-ratio", "provider"],
|
|
9818
|
+
models: IMAGE_GEN_PROVIDERS,
|
|
9819
|
+
// The node's own default (NODE_DEFINITIONS) — only used to fit a wired
|
|
9820
|
+
// ratio when the node names no model.
|
|
9821
|
+
defaultModel: "nano-banana-pro",
|
|
9822
|
+
modelList: "providers"
|
|
9823
|
+
}
|
|
9824
|
+
};
|
|
9825
|
+
var SETTINGS_INPUT_CONSUMERS = Object.fromEntries(
|
|
9826
|
+
Object.entries(SETTINGS_CONSUMERS).map(([type, consumer]) => [type, consumer.accepts])
|
|
9827
|
+
);
|
|
9828
|
+
function isSettingsSourceType(type) {
|
|
9829
|
+
return typeof type === "string" && SETTINGS_SOURCE_TYPES.includes(type);
|
|
9830
|
+
}
|
|
9831
|
+
function isSettingsHintSource(type) {
|
|
9832
|
+
return typeof type === "string" && SETTINGS_HINT_SOURCES.includes(type);
|
|
9833
|
+
}
|
|
9834
|
+
function settingsInputAccepts(consumerType, sourceType) {
|
|
9835
|
+
return (SETTINGS_INPUT_CONSUMERS[consumerType] ?? []).some((t2) => t2 === sourceType);
|
|
9836
|
+
}
|
|
9837
|
+
function settingsInputFields(consumerType) {
|
|
9838
|
+
return (SETTINGS_INPUT_CONSUMERS[consumerType] ?? []).flatMap((t2) => {
|
|
9839
|
+
const field = fieldOf(t2);
|
|
9840
|
+
return field ? [field] : [];
|
|
9841
|
+
});
|
|
9842
|
+
}
|
|
9843
|
+
function settingsProviderModels(consumerType) {
|
|
9844
|
+
return SETTINGS_CONSUMERS[consumerType]?.models ?? [];
|
|
9845
|
+
}
|
|
9846
|
+
function settingsSourceForType(consumerId, consumerType, sourceType, edges, typeOf) {
|
|
9847
|
+
if (!settingsInputAccepts(consumerType, sourceType)) return void 0;
|
|
9848
|
+
let found;
|
|
9849
|
+
for (const edge of edges) {
|
|
9850
|
+
if (edge.target !== consumerId || edge.targetHandle !== SETTINGS_INPUT_HANDLE) continue;
|
|
9851
|
+
if (typeOf(edge.source) === sourceType) found = edge.source;
|
|
9852
|
+
}
|
|
9853
|
+
return found;
|
|
9854
|
+
}
|
|
9855
|
+
function settingsSourceForField(consumerId, consumerType, field, edges, typeOf) {
|
|
9856
|
+
const sourceType = (SETTINGS_INPUT_CONSUMERS[consumerType] ?? []).find((t2) => fieldOf(t2) === field);
|
|
9857
|
+
return sourceType ? settingsSourceForType(consumerId, consumerType, sourceType, edges, typeOf) : void 0;
|
|
9858
|
+
}
|
|
9859
|
+
function isSettingsHintEdge(edge, consumerType, edges, typeOf) {
|
|
9860
|
+
if (edge.targetHandle !== SETTINGS_INPUT_HANDLE) return false;
|
|
9861
|
+
const sourceType = typeOf(edge.source);
|
|
9862
|
+
if (!isSettingsHintSource(sourceType)) return false;
|
|
9863
|
+
return settingsSourceForType(edge.target, consumerType, sourceType, edges, typeOf) === edge.source;
|
|
9864
|
+
}
|
|
9865
|
+
function connectedSettingsSources(consumerId, consumerType, edges, typeOf) {
|
|
9866
|
+
const out = [];
|
|
9867
|
+
for (const sourceType of SETTINGS_INPUT_CONSUMERS[consumerType] ?? []) {
|
|
9868
|
+
const sourceId = settingsSourceForType(consumerId, consumerType, sourceType, edges, typeOf);
|
|
9869
|
+
if (!sourceId) continue;
|
|
9870
|
+
const field = fieldOf(sourceType);
|
|
9871
|
+
out.push(field ? { sourceType, field, sourceId } : { sourceType, sourceId });
|
|
9872
|
+
}
|
|
9873
|
+
return out;
|
|
9874
|
+
}
|
|
9875
|
+
function snapToModelDuration(model, seconds) {
|
|
9876
|
+
const durations = MODEL_CATALOG[model]?.durations;
|
|
9877
|
+
if (!durations || durations.length === 0 || isAutoVideoDuration(seconds)) return seconds;
|
|
9878
|
+
let best = durations[0];
|
|
9879
|
+
for (const d of durations) {
|
|
9880
|
+
const closer = Math.abs(d - seconds) < Math.abs(best - seconds);
|
|
9881
|
+
const tieShorter = Math.abs(d - seconds) === Math.abs(best - seconds) && d < best;
|
|
9882
|
+
if (closer || tieShorter) best = d;
|
|
9883
|
+
}
|
|
9884
|
+
return best;
|
|
9885
|
+
}
|
|
9886
|
+
function applySettingsInput(consumerType, consumerId, data, edges, typeOf) {
|
|
9887
|
+
const consumer = SETTINGS_CONSUMERS[consumerType];
|
|
9888
|
+
const connected = connectedSettingsSources(consumerId, consumerType, edges, typeOf);
|
|
9889
|
+
if (!consumer || connected.length === 0) return { data: { ...data } };
|
|
9890
|
+
let next = { ...data };
|
|
9891
|
+
const providerSource = connected.find((c) => c.sourceType === "provider");
|
|
9892
|
+
if (providerSource) {
|
|
9893
|
+
const value = typeof next.provider === "string" ? next.provider : "";
|
|
9894
|
+
if (!consumer.models.includes(value)) {
|
|
9895
|
+
return { data: next, problem: { kind: "provider-not-accepted", sourceId: providerSource.sourceId, value } };
|
|
9896
|
+
}
|
|
9897
|
+
if (consumer.modelList) next = { ...next, [consumer.modelList]: [value] };
|
|
9898
|
+
}
|
|
9899
|
+
const model = typeof next.provider === "string" && next.provider || consumer.defaultModel;
|
|
9900
|
+
if (consumer.duration === "model" && connected.some((c) => c.sourceType === "duration")) {
|
|
9901
|
+
const raw = next.duration;
|
|
9902
|
+
const seconds = typeof raw === "number" ? raw : typeof raw === "string" ? Number.parseInt(raw, 10) : Number.NaN;
|
|
9903
|
+
if (Number.isFinite(seconds)) next = { ...next, duration: snapToModelDuration(model, seconds) };
|
|
9904
|
+
}
|
|
9905
|
+
if (connected.some((c) => c.sourceType === "aspect-ratio") && typeof next.aspectRatio === "string") {
|
|
9906
|
+
next = { ...next, aspectRatio: fitAspectRatioToModel(model, next.aspectRatio) };
|
|
9907
|
+
}
|
|
9908
|
+
return { data: next };
|
|
9909
|
+
}
|
|
9910
|
+
function resolveWiredSettings(consumerId, consumerType, data, nodes, edges) {
|
|
9911
|
+
const byId = new Map(nodes.map((n) => [n.id, n]));
|
|
9912
|
+
const typeOf = (id) => byId.get(id)?.type;
|
|
9913
|
+
const wired = connectedSettingsSources(consumerId, consumerType, edges, typeOf).map((c) => ({
|
|
9914
|
+
...c,
|
|
9915
|
+
value: getParameterValue(byId.get(c.sourceId)?.data ?? {}, c.sourceType)
|
|
9916
|
+
}));
|
|
9917
|
+
if (wired.length === 0) return { data: { ...data }, wired };
|
|
9918
|
+
let next = { ...data };
|
|
9919
|
+
for (const w of wired) {
|
|
9920
|
+
if (w.field && w.value != null) next = { ...next, [w.field]: w.value };
|
|
9921
|
+
}
|
|
9922
|
+
const applied = applySettingsInput(consumerType, consumerId, next, edges, typeOf);
|
|
9923
|
+
return applied.problem ? { data: applied.data, wired, problem: applied.problem } : { data: applied.data, wired };
|
|
9924
|
+
}
|
|
9925
|
+
function withWiredSettings(node, nodes, edges) {
|
|
9926
|
+
const type = node.type ?? "";
|
|
9927
|
+
if (!nodes || !edges || !node.id || !SETTINGS_CONSUMERS[type]) return node;
|
|
9928
|
+
const graphNodes = nodes.flatMap((n) => n.id ? [{ id: n.id, type: n.type, data: n.data }] : []);
|
|
9929
|
+
const graphEdges = edges.map((e) => ({ source: e.source ?? "", target: e.target, targetHandle: e.targetHandle }));
|
|
9930
|
+
const { data } = resolveWiredSettings(node.id, type, node.data ?? {}, graphNodes, graphEdges);
|
|
9931
|
+
return { ...node, data };
|
|
9932
|
+
}
|
|
9933
|
+
|
|
9495
9934
|
// src/node-mappable-fields.ts
|
|
9496
9935
|
var NODE_MAPPABLE_FIELDS = {
|
|
9497
|
-
|
|
9936
|
+
// + the fields its Settings input sets (settings-input.ts).
|
|
9937
|
+
"generate-image": ["prompt", "style", "negativePrompt", ...settingsInputFields("generate-image")],
|
|
9498
9938
|
"edit-image": ["prompt", "style", "negativePrompt"],
|
|
9499
9939
|
"image-to-image": ["prompt", "style", "negativePrompt"],
|
|
9500
9940
|
"modify-image": ["prompt", "style", "negativePrompt"],
|
|
@@ -9503,10 +9943,13 @@ var NODE_MAPPABLE_FIELDS = {
|
|
|
9503
9943
|
// Unified t2v/i2v node — replaced the two deprecated keys above (kept only
|
|
9504
9944
|
// for back-compat with un-migrated workflow JSON). Mirrors text-to-video so
|
|
9505
9945
|
// fieldMappings/{} injection AND missing-ref detection work on the live node.
|
|
9506
|
-
|
|
9946
|
+
// + the fields its Settings input sets (settings-input.ts): a Generation
|
|
9947
|
+
// Settings node wired there overrides the node's own aspect ratio, duration
|
|
9948
|
+
// and model at run time, through the same resolver as a field mapping.
|
|
9949
|
+
"generate-video": ["prompt", "negativePrompt", ...settingsInputFields("generate-video")],
|
|
9507
9950
|
// Trimmed multi-segment stitch variant of generate-video — prompt only, no
|
|
9508
|
-
// negativePrompt field on the node.
|
|
9509
|
-
"generate-video-pro": ["prompt"],
|
|
9951
|
+
// negativePrompt field on the node; + the fields its Settings input sets.
|
|
9952
|
+
"generate-video-pro": ["prompt", ...settingsInputFields("generate-video-pro")],
|
|
9510
9953
|
// Span-replace sibling of generate-video-pro — prompt only, no
|
|
9511
9954
|
// negativePrompt field on the node.
|
|
9512
9955
|
"edit-video-pro": ["prompt"],
|
|
@@ -9537,7 +9980,9 @@ var NODE_MAPPABLE_FIELDS = {
|
|
|
9537
9980
|
"edit-3d-scene": ["editPrompt"],
|
|
9538
9981
|
"pro-3d-render": ["scenePrompt"],
|
|
9539
9982
|
"motion-graphics": ["motionPrompt"],
|
|
9540
|
-
|
|
9983
|
+
// Every field the panel offers a source for. Numbers arrive as text from a
|
|
9984
|
+
// Scene Count / Duration node; readScriptSettings coerces them on both engines.
|
|
9985
|
+
"generate-script": ["styleGuide", "tone", "sceneCount", "targetLength"],
|
|
9541
9986
|
"speech-to-video": ["prompt", "negativePrompt"],
|
|
9542
9987
|
"extend-video": ["prompt"],
|
|
9543
9988
|
"motion-transfer": ["prompt"],
|
|
@@ -9559,13 +10004,72 @@ var NODE_MAPPABLE_FIELDS = {
|
|
|
9559
10004
|
"location": ["locationName", "description"],
|
|
9560
10005
|
"web-scrape": ["query", "url", "target"],
|
|
9561
10006
|
"meta-ads-scrape": ["query", "pageUrls"],
|
|
9562
|
-
"instagram-scrape": ["targets"]
|
|
10007
|
+
"instagram-scrape": ["targets"],
|
|
10008
|
+
// Content Recipe's material arrives on its `in` wire and the post link on
|
|
10009
|
+
// its `link` wire (a Video URL node's page link) — only the focus is a field.
|
|
10010
|
+
"content-recipe": ["focus"],
|
|
10011
|
+
// Content Ideas folds its recipes on the `recipes` wire (FAN_IN_TARGETS);
|
|
10012
|
+
// the brand profile and the language are fields a Text node can feed.
|
|
10013
|
+
"content-ideas": ["brand", "language"],
|
|
10014
|
+
// Social Search: the keyword or account a Text node (or a List item) feeds.
|
|
10015
|
+
"social-search": ["query"]
|
|
9563
10016
|
};
|
|
9564
10017
|
var SUNO_FIELD_HANDLE_FIELDS = ["style", "lyrics", "title", "negativeStyle"];
|
|
9565
10018
|
function fieldKeyFromHandle(handleId) {
|
|
9566
10019
|
return handleId.startsWith("field-") ? handleId.slice("field-".length) : null;
|
|
9567
10020
|
}
|
|
9568
10021
|
|
|
10022
|
+
// src/oauth-scopes.ts
|
|
10023
|
+
var OAUTH_SCOPES = [
|
|
10024
|
+
"workflows:read",
|
|
10025
|
+
"workflows:write",
|
|
10026
|
+
"workflows:execute",
|
|
10027
|
+
"jobs:read",
|
|
10028
|
+
"assets:read",
|
|
10029
|
+
"assets:write",
|
|
10030
|
+
"credits:read",
|
|
10031
|
+
"apps:read",
|
|
10032
|
+
"pipelines:read",
|
|
10033
|
+
"pipelines:execute",
|
|
10034
|
+
"pipelines:approve",
|
|
10035
|
+
"presets:read",
|
|
10036
|
+
"workspaces:read",
|
|
10037
|
+
"workspaces:write"
|
|
10038
|
+
];
|
|
10039
|
+
|
|
10040
|
+
// src/recast-segment-packs.ts
|
|
10041
|
+
var RECAST_SEGMENT_PACKS = ["max", "scenes-max", "scenes"];
|
|
10042
|
+
|
|
10043
|
+
// src/script-settings.ts
|
|
10044
|
+
var SCRIPT_SCENE_COUNT_RANGE = { min: 1, max: 20 };
|
|
10045
|
+
var SCRIPT_TARGET_DURATION_RANGE = { min: 5, max: 600 };
|
|
10046
|
+
var SCRIPT_SCENE_COUNT_DEFAULT = 5;
|
|
10047
|
+
var SCRIPT_TARGET_DURATION_DEFAULT = 60;
|
|
10048
|
+
var SCRIPT_TONE_MAX_LENGTH = 200;
|
|
10049
|
+
var SCRIPT_STYLE_GUIDE_MAX_LENGTH = LLM_TEXT_INPUT_MAX;
|
|
10050
|
+
function clampInt(value, range) {
|
|
10051
|
+
const n = typeof value === "number" ? value : typeof value === "string" && value.trim().length > 0 ? Number(value) : Number.NaN;
|
|
10052
|
+
if (!Number.isFinite(n)) return void 0;
|
|
10053
|
+
return Math.min(range.max, Math.max(range.min, Math.round(n)));
|
|
10054
|
+
}
|
|
10055
|
+
function clampText(value, max) {
|
|
10056
|
+
if (typeof value !== "string") return void 0;
|
|
10057
|
+
const text = value.trim();
|
|
10058
|
+
return text.length > 0 ? text.slice(0, max) : void 0;
|
|
10059
|
+
}
|
|
10060
|
+
function readScriptSettings(data, refMap) {
|
|
10061
|
+
const styleGuide = typeof data.styleGuide === "string" && refMap && refMap.size > 0 ? resolveNodeRefs(data.styleGuide, refMap) : data.styleGuide;
|
|
10062
|
+
return {
|
|
10063
|
+
sceneCount: clampInt(data.sceneCount, SCRIPT_SCENE_COUNT_RANGE),
|
|
10064
|
+
// The panel's own fields (the ones a mapping writes) come first. `style` is
|
|
10065
|
+
// an older key for the tone, and `targetDuration` is the route's name for
|
|
10066
|
+
// the length, which workflow JSON written by an agent can carry.
|
|
10067
|
+
tone: clampText(data.tone ?? data.style, SCRIPT_TONE_MAX_LENGTH),
|
|
10068
|
+
targetDuration: clampInt(data.targetLength ?? data.targetDuration, SCRIPT_TARGET_DURATION_RANGE),
|
|
10069
|
+
styleGuide: clampText(styleGuide, SCRIPT_STYLE_GUIDE_MAX_LENGTH)
|
|
10070
|
+
};
|
|
10071
|
+
}
|
|
10072
|
+
|
|
9569
10073
|
// src/trigger-node-types.ts
|
|
9570
10074
|
var SCHEDULE_TRIGGER_NODE_TYPE = "schedule-trigger";
|
|
9571
10075
|
var WEBHOOK_TRIGGER_NODE_TYPE = "webhook-trigger";
|
|
@@ -9581,6 +10085,71 @@ function isProjectedTriggerNodeType(type) {
|
|
|
9581
10085
|
return typeof type === "string" && PROJECTED_TRIGGER_NODE_TYPES.has(type);
|
|
9582
10086
|
}
|
|
9583
10087
|
|
|
10088
|
+
// src/telegram-account-trigger.ts
|
|
10089
|
+
var TELEGRAM_ACCOUNT_TRIGGER_MESSAGE_HANDLE = "out";
|
|
10090
|
+
var TELEGRAM_ACCOUNT_TRIGGER_POST_FIELDS = [
|
|
10091
|
+
/** The post's link, when the post has a video to analyze. */
|
|
10092
|
+
"videoLink",
|
|
10093
|
+
/** The post's words, when it has no video: the message, the link's preview, or the forwarded post. */
|
|
10094
|
+
"postText",
|
|
10095
|
+
/** The link of the post this run is about, whatever its kind. */
|
|
10096
|
+
"postLink"
|
|
10097
|
+
];
|
|
10098
|
+
var TELEGRAM_ACCOUNT_TRIGGER_MESSAGE_FIELDS = [
|
|
10099
|
+
"chatId",
|
|
10100
|
+
"chatType",
|
|
10101
|
+
"messageId",
|
|
10102
|
+
"senderId"
|
|
10103
|
+
];
|
|
10104
|
+
var TELEGRAM_ACCOUNT_TRIGGER_OUTPUT_HANDLES = [
|
|
10105
|
+
TELEGRAM_ACCOUNT_TRIGGER_MESSAGE_HANDLE,
|
|
10106
|
+
...TELEGRAM_ACCOUNT_TRIGGER_POST_FIELDS
|
|
10107
|
+
];
|
|
10108
|
+
var NAMED_HANDLES = /* @__PURE__ */ new Set([...TELEGRAM_ACCOUNT_TRIGGER_POST_FIELDS, ...TELEGRAM_ACCOUNT_TRIGGER_MESSAGE_FIELDS]);
|
|
10109
|
+
function isTelegramAccountTriggerNamedHandle(handle) {
|
|
10110
|
+
return typeof handle === "string" && NAMED_HANDLES.has(handle);
|
|
10111
|
+
}
|
|
10112
|
+
function telegramAccountListeningSignature(data) {
|
|
10113
|
+
const d = data !== null && typeof data === "object" ? data : {};
|
|
10114
|
+
const list = (value) => Array.isArray(value) ? [...new Set(value.filter((x) => typeof x === "string").map((x) => x.trim()).filter((x) => x !== ""))].sort() : [];
|
|
10115
|
+
return JSON.stringify({
|
|
10116
|
+
accountId: typeof d.accountId === "string" ? d.accountId : "",
|
|
10117
|
+
chatIds: list(d.chatIds),
|
|
10118
|
+
senderIds: list(d.senderIds),
|
|
10119
|
+
messageTypeFilters: list(d.messageTypeFilters),
|
|
10120
|
+
keywords: list(d.keywords),
|
|
10121
|
+
includeOutgoing: d.inboxMode === true || d.includeOutgoing === true,
|
|
10122
|
+
inboxMode: d.inboxMode === true,
|
|
10123
|
+
isActive: d.isActive === true
|
|
10124
|
+
});
|
|
10125
|
+
}
|
|
10126
|
+
function stringField(value) {
|
|
10127
|
+
if (typeof value === "string") return value.trim();
|
|
10128
|
+
if (typeof value === "number" && Number.isFinite(value)) return String(value);
|
|
10129
|
+
return "";
|
|
10130
|
+
}
|
|
10131
|
+
function telegramAccountTriggerOutputs(triggerData) {
|
|
10132
|
+
const td = triggerData ?? {};
|
|
10133
|
+
const out = {};
|
|
10134
|
+
for (const key of TELEGRAM_ACCOUNT_TRIGGER_POST_FIELDS) out[key] = stringField(td[key]);
|
|
10135
|
+
for (const key of TELEGRAM_ACCOUNT_TRIGGER_MESSAGE_FIELDS) {
|
|
10136
|
+
const value = stringField(td[key]);
|
|
10137
|
+
if (value !== "") out[key] = value;
|
|
10138
|
+
}
|
|
10139
|
+
return out;
|
|
10140
|
+
}
|
|
10141
|
+
|
|
10142
|
+
// src/telegram-account-send.ts
|
|
10143
|
+
var TELEGRAM_ACCOUNT_SEND_NODE_TYPE = "telegram-account-send";
|
|
10144
|
+
var TELEGRAM_SEND_AS = ["account", "bot"];
|
|
10145
|
+
var TELEGRAM_SEND_DESTINATIONS = ["reply", "saved"];
|
|
10146
|
+
function telegramSendAsOf(value) {
|
|
10147
|
+
return value === "bot" ? "bot" : "account";
|
|
10148
|
+
}
|
|
10149
|
+
function telegramSendDestinationOf(value) {
|
|
10150
|
+
return value === "saved" ? "saved" : "reply";
|
|
10151
|
+
}
|
|
10152
|
+
|
|
9584
10153
|
// src/trigger-feeds.ts
|
|
9585
10154
|
function buildFeedMaps(nodes, edges) {
|
|
9586
10155
|
const live = new Set(nodes.map((n) => n.id));
|
|
@@ -10165,7 +10734,7 @@ function metaAdsScrapeCreditIdFromNode(data) {
|
|
|
10165
10734
|
|
|
10166
10735
|
// src/instagram-scrape.ts
|
|
10167
10736
|
var INSTAGRAM_SCRAPE_NODE_TYPE = "instagram-scrape";
|
|
10168
|
-
var INSTAGRAM_SCRAPE_MODES = ["profile", "hashtag"];
|
|
10737
|
+
var INSTAGRAM_SCRAPE_MODES = ["profile", "hashtag", "post"];
|
|
10169
10738
|
function isInstagramScrapeMode(value) {
|
|
10170
10739
|
return typeof value === "string" && INSTAGRAM_SCRAPE_MODES.includes(value);
|
|
10171
10740
|
}
|
|
@@ -10213,8 +10782,33 @@ var INSTAGRAM_SCRAPE_FALLBACK_CREDIT_ID = "instagram-scrape:20";
|
|
|
10213
10782
|
function isInstagramScrapeCount(value) {
|
|
10214
10783
|
return typeof value === "number" && Number.isInteger(value) && value >= 1 && value <= INSTAGRAM_SCRAPE_MAX_COUNT;
|
|
10215
10784
|
}
|
|
10216
|
-
|
|
10217
|
-
|
|
10785
|
+
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;
|
|
10786
|
+
function parseInstagramPostLink(value) {
|
|
10787
|
+
const match = INSTAGRAM_POST_LINK_RE.exec(value.trim());
|
|
10788
|
+
if (!match) return null;
|
|
10789
|
+
const kind = match[1].toLowerCase();
|
|
10790
|
+
const segment = kind === "p" ? "p" : kind === "tv" ? "tv" : "reel";
|
|
10791
|
+
return { link: `https://www.instagram.com/${segment}/${match[2]}/`, shortcode: match[2] };
|
|
10792
|
+
}
|
|
10793
|
+
function instagramPostLink(value) {
|
|
10794
|
+
return parseInstagramPostLink(value)?.link ?? null;
|
|
10795
|
+
}
|
|
10796
|
+
function splitInstagramPostLinks(raw) {
|
|
10797
|
+
const seen = /* @__PURE__ */ new Set();
|
|
10798
|
+
const out = [];
|
|
10799
|
+
for (const item of raw.flatMap((entry) => entry.split(/[\s,]+/))) {
|
|
10800
|
+
const parsed = parseInstagramPostLink(item);
|
|
10801
|
+
if (!parsed || seen.has(parsed.shortcode)) continue;
|
|
10802
|
+
seen.add(parsed.shortcode);
|
|
10803
|
+
out.push(parsed.link);
|
|
10804
|
+
if (out.length >= INSTAGRAM_SCRAPE_MAX_SOURCES) break;
|
|
10805
|
+
}
|
|
10806
|
+
return out;
|
|
10807
|
+
}
|
|
10808
|
+
function splitInstagramTargets(value, mode = "profile") {
|
|
10809
|
+
const separator = mode === "post" ? /[\s,]+/ : /[\n,]+/;
|
|
10810
|
+
const raw = Array.isArray(value) ? value.filter((v) => typeof v === "string") : typeof value === "string" ? value.split(separator) : [];
|
|
10811
|
+
if (mode === "post") return splitInstagramPostLinks(raw);
|
|
10218
10812
|
const seen = /* @__PURE__ */ new Set();
|
|
10219
10813
|
const out = [];
|
|
10220
10814
|
for (const item of raw) {
|
|
@@ -10250,21 +10844,314 @@ function featuredInstagramOutputs(json, featuredIndex) {
|
|
|
10250
10844
|
...videoUrl ? { videoUrl } : {}
|
|
10251
10845
|
};
|
|
10252
10846
|
}
|
|
10847
|
+
function instagramRequestedCount(mode, count) {
|
|
10848
|
+
return mode === "post" ? 1 : count;
|
|
10849
|
+
}
|
|
10253
10850
|
function instagramScrapeSources(data) {
|
|
10254
|
-
return Math.max(1, Math.min(splitInstagramTargets(data.targets).length, INSTAGRAM_SCRAPE_MAX_SOURCES));
|
|
10851
|
+
return Math.max(1, Math.min(splitInstagramTargets(data.targets, instagramScrapeMode(data.mode)).length, INSTAGRAM_SCRAPE_MAX_SOURCES));
|
|
10255
10852
|
}
|
|
10256
10853
|
function instagramScrapeCreditIdFromNode(data) {
|
|
10257
10854
|
const count = typeof data.count === "number" ? data.count : INSTAGRAM_SCRAPE_DEFAULT_COUNT;
|
|
10258
|
-
return buildInstagramScrapeCreditId({
|
|
10855
|
+
return buildInstagramScrapeCreditId({
|
|
10856
|
+
count: instagramRequestedCount(instagramScrapeMode(data.mode), count),
|
|
10857
|
+
sources: instagramScrapeSources(data),
|
|
10858
|
+
analysis: instagramAnalysisTierFrom(data)
|
|
10859
|
+
});
|
|
10259
10860
|
}
|
|
10260
10861
|
function resolveInstagramScrapeCreditId(body) {
|
|
10261
10862
|
const raw = body;
|
|
10262
10863
|
if (!raw || typeof raw !== "object") return INSTAGRAM_SCRAPE_FALLBACK_CREDIT_ID;
|
|
10263
10864
|
const count = raw.count === void 0 ? INSTAGRAM_SCRAPE_DEFAULT_COUNT : raw.count;
|
|
10264
10865
|
if (!isInstagramScrapeCount(count)) return INSTAGRAM_SCRAPE_FALLBACK_CREDIT_ID;
|
|
10265
|
-
const
|
|
10866
|
+
const mode = instagramScrapeMode(raw.mode);
|
|
10867
|
+
const sources = splitInstagramTargets(raw.targets, mode).length;
|
|
10266
10868
|
if (sources < 1) return INSTAGRAM_SCRAPE_FALLBACK_CREDIT_ID;
|
|
10267
|
-
return buildInstagramScrapeCreditId({ count, sources, analysis: instagramAnalysisTierFrom(raw) });
|
|
10869
|
+
return buildInstagramScrapeCreditId({ count: instagramRequestedCount(mode, count), sources, analysis: instagramAnalysisTierFrom(raw) });
|
|
10870
|
+
}
|
|
10871
|
+
|
|
10872
|
+
// src/social-search.ts
|
|
10873
|
+
var SOCIAL_SEARCH_NODE_TYPE = "social-search";
|
|
10874
|
+
var SOCIAL_PLATFORMS = ["tiktok", "instagram", "youtube", "x", "reddit", "linkedin", "meta_ads"];
|
|
10875
|
+
var SOCIAL_SEARCH_MODES = ["keyword", "account", "community"];
|
|
10876
|
+
var SOCIAL_SEARCH_PLATFORM_MODES = {
|
|
10877
|
+
tiktok: ["keyword", "account"],
|
|
10878
|
+
instagram: ["keyword", "account"],
|
|
10879
|
+
youtube: ["keyword", "account"],
|
|
10880
|
+
x: ["keyword", "account"],
|
|
10881
|
+
reddit: ["keyword", "community"],
|
|
10882
|
+
linkedin: ["keyword", "account"],
|
|
10883
|
+
meta_ads: ["keyword", "account"]
|
|
10884
|
+
};
|
|
10885
|
+
var SOCIAL_SEARCH_PERIODS = ["day", "week", "month", "year", "all"];
|
|
10886
|
+
var SOCIAL_SEARCH_SORTS = ["relevance", "popular", "newest"];
|
|
10887
|
+
var SOCIAL_SEARCH_COUNTS = [20, 40, 60];
|
|
10888
|
+
var SOCIAL_SEARCH_PAGED_MODES = {
|
|
10889
|
+
tiktok: ["keyword"],
|
|
10890
|
+
instagram: ["keyword"],
|
|
10891
|
+
youtube: [],
|
|
10892
|
+
x: ["keyword", "account"],
|
|
10893
|
+
reddit: ["community"],
|
|
10894
|
+
linkedin: ["keyword"],
|
|
10895
|
+
meta_ads: ["keyword", "account"]
|
|
10896
|
+
};
|
|
10897
|
+
function socialSearchMaxCount(platform, mode) {
|
|
10898
|
+
return SOCIAL_SEARCH_PAGED_MODES[platform].includes(mode) ? 60 : 20;
|
|
10899
|
+
}
|
|
10900
|
+
var SOCIAL_SEARCH_VIDEO_KINDS = ["all", "videos", "shorts"];
|
|
10901
|
+
var SOCIAL_SEARCH_DEFAULT_PICK_TOP = 5;
|
|
10902
|
+
var SOCIAL_SEARCH_MAX_QUERY_LENGTH = 300;
|
|
10903
|
+
function isRecord(value) {
|
|
10904
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
10905
|
+
}
|
|
10906
|
+
function isSocialPost(value) {
|
|
10907
|
+
if (!isRecord(value)) return false;
|
|
10908
|
+
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);
|
|
10909
|
+
}
|
|
10910
|
+
function socialPostsFrom(value) {
|
|
10911
|
+
return Array.isArray(value) ? value.filter(isSocialPost) : [];
|
|
10912
|
+
}
|
|
10913
|
+
function oneOf(list, value, fallback) {
|
|
10914
|
+
return typeof value === "string" && list.includes(value) ? value : fallback;
|
|
10915
|
+
}
|
|
10916
|
+
function socialSearchPlatform(value) {
|
|
10917
|
+
return oneOf(SOCIAL_PLATFORMS, value, "tiktok");
|
|
10918
|
+
}
|
|
10919
|
+
function socialSearchMode(platform, value) {
|
|
10920
|
+
const allowed = SOCIAL_SEARCH_PLATFORM_MODES[platform];
|
|
10921
|
+
return oneOf(allowed, value, allowed[0]);
|
|
10922
|
+
}
|
|
10923
|
+
function socialSearchCount(value) {
|
|
10924
|
+
return value === 60 ? 60 : value === 40 ? 40 : 20;
|
|
10925
|
+
}
|
|
10926
|
+
function socialSearchPages(count) {
|
|
10927
|
+
return count === 60 ? 3 : count === 40 ? 2 : 1;
|
|
10928
|
+
}
|
|
10929
|
+
function cleanText(value, max) {
|
|
10930
|
+
return typeof value === "string" && value.trim() ? value.trim().slice(0, max) : void 0;
|
|
10931
|
+
}
|
|
10932
|
+
function socialSearchEffectiveCount(platform, mode, value) {
|
|
10933
|
+
const asked = socialSearchCount(value);
|
|
10934
|
+
const max = socialSearchMaxCount(platform, mode);
|
|
10935
|
+
return asked > max ? max : asked;
|
|
10936
|
+
}
|
|
10937
|
+
function socialSearchRegion(value) {
|
|
10938
|
+
const text = typeof value === "string" ? value.trim().toUpperCase() : "";
|
|
10939
|
+
return /^[A-Z]{2}$/.test(text) ? text : void 0;
|
|
10940
|
+
}
|
|
10941
|
+
function socialSearchCountry(value) {
|
|
10942
|
+
const text = typeof value === "string" ? value.trim().toUpperCase() : "";
|
|
10943
|
+
return /^([A-Z]{2}|ALL)$/.test(text) ? text : "ALL";
|
|
10944
|
+
}
|
|
10945
|
+
function socialSearchRequestFromNode(data, wiredQuery) {
|
|
10946
|
+
const platform = socialSearchPlatform(data.platform);
|
|
10947
|
+
const mode = socialSearchMode(platform, data.mode);
|
|
10948
|
+
const query = cleanText(wiredQuery, SOCIAL_SEARCH_MAX_QUERY_LENGTH) ?? cleanText(data.query, SOCIAL_SEARCH_MAX_QUERY_LENGTH) ?? "";
|
|
10949
|
+
const region = socialSearchRegion(data.region);
|
|
10950
|
+
const country = socialSearchCountry(data.country);
|
|
10951
|
+
const subreddit = cleanText(data.subreddit, 100);
|
|
10952
|
+
return {
|
|
10953
|
+
platform,
|
|
10954
|
+
mode,
|
|
10955
|
+
query,
|
|
10956
|
+
count: socialSearchEffectiveCount(platform, mode, data.count),
|
|
10957
|
+
period: oneOf(SOCIAL_SEARCH_PERIODS, data.period, "month"),
|
|
10958
|
+
sort: oneOf(SOCIAL_SEARCH_SORTS, data.sort, "relevance"),
|
|
10959
|
+
...platform === "tiktok" && mode === "keyword" && region ? { region } : {},
|
|
10960
|
+
...platform === "meta_ads" ? { country, activeOnly: data.activeOnly !== false } : {},
|
|
10961
|
+
...platform === "reddit" && mode === "keyword" && subreddit ? { subreddit } : {},
|
|
10962
|
+
...platform === "youtube" ? { videoKind: oneOf(SOCIAL_SEARCH_VIDEO_KINDS, data.videoKind, "all") } : {}
|
|
10963
|
+
};
|
|
10964
|
+
}
|
|
10965
|
+
function socialSearchPostLink(output) {
|
|
10966
|
+
let parsed;
|
|
10967
|
+
try {
|
|
10968
|
+
parsed = JSON.parse(output);
|
|
10969
|
+
} catch {
|
|
10970
|
+
return void 0;
|
|
10971
|
+
}
|
|
10972
|
+
const post = Array.isArray(parsed) ? parsed[0] : parsed;
|
|
10973
|
+
const url = typeof post === "object" && post !== null ? post.url : void 0;
|
|
10974
|
+
return httpLink(url);
|
|
10975
|
+
}
|
|
10976
|
+
function httpLink(value) {
|
|
10977
|
+
const link = typeof value === "string" ? value.trim() : "";
|
|
10978
|
+
return /^https?:\/\/\S+$/i.test(link) ? link : void 0;
|
|
10979
|
+
}
|
|
10980
|
+
var SOCIAL_POST_VIDEO_LINK_MARGIN_MS = 60 * 60 * 1e3;
|
|
10981
|
+
function signedLinkExpiresAt(link) {
|
|
10982
|
+
let url;
|
|
10983
|
+
try {
|
|
10984
|
+
url = new URL(link);
|
|
10985
|
+
} catch {
|
|
10986
|
+
return void 0;
|
|
10987
|
+
}
|
|
10988
|
+
const params = url.searchParams;
|
|
10989
|
+
const oe = params.get("oe");
|
|
10990
|
+
if (oe !== null && /^[0-9a-f]{6,10}$/i.test(oe)) return parseInt(oe, 16) * 1e3;
|
|
10991
|
+
const linkedin = /(^|\.)licdn\.com$/i.test(url.hostname);
|
|
10992
|
+
const seconds = params.get("x-expires") ?? params.get("Expires") ?? params.get("expires") ?? (linkedin ? params.get("e") : null);
|
|
10993
|
+
return seconds !== null && /^\d{9,11}$/.test(seconds) ? Number(seconds) * 1e3 : void 0;
|
|
10994
|
+
}
|
|
10995
|
+
function videoFileLink(value) {
|
|
10996
|
+
const link = httpLink(value);
|
|
10997
|
+
if (!link) return void 0;
|
|
10998
|
+
try {
|
|
10999
|
+
return /\.m3u8$/i.test(new URL(link).pathname) ? void 0 : link;
|
|
11000
|
+
} catch {
|
|
11001
|
+
return void 0;
|
|
11002
|
+
}
|
|
11003
|
+
}
|
|
11004
|
+
function socialSearchPostVideo(output, now = Date.now()) {
|
|
11005
|
+
let parsed;
|
|
11006
|
+
try {
|
|
11007
|
+
parsed = JSON.parse(output);
|
|
11008
|
+
} catch {
|
|
11009
|
+
return void 0;
|
|
11010
|
+
}
|
|
11011
|
+
const post = Array.isArray(parsed) ? socialPostsFrom(parsed)[0] : isSocialPost(parsed) ? parsed : void 0;
|
|
11012
|
+
if (!post) return void 0;
|
|
11013
|
+
if (post.media.kind !== "video") return { kind: "none" };
|
|
11014
|
+
const file = videoFileLink(post.media.videoUrl);
|
|
11015
|
+
if (file) {
|
|
11016
|
+
const end = signedLinkExpiresAt(file);
|
|
11017
|
+
return end !== void 0 && end - SOCIAL_POST_VIDEO_LINK_MARGIN_MS <= now ? { kind: "expired" } : { kind: "file", url: file };
|
|
11018
|
+
}
|
|
11019
|
+
const page = httpLink(post.url);
|
|
11020
|
+
return page ? { kind: "page", url: page } : void 0;
|
|
11021
|
+
}
|
|
11022
|
+
function socialPostsLongestVideoSec(posts) {
|
|
11023
|
+
const lengths = posts.filter((p) => p.media.kind === "video").map((p) => p.media.durationSec);
|
|
11024
|
+
if (lengths.length === 0) return void 0;
|
|
11025
|
+
return lengths.every((d) => typeof d === "number" && Number.isFinite(d) && d > 0) ? Math.max(...lengths) : void 0;
|
|
11026
|
+
}
|
|
11027
|
+
var SOCIAL_SEARCH_CREDITS_PER_PAGE = 20;
|
|
11028
|
+
function socialSearchCreditId(count) {
|
|
11029
|
+
return `${SOCIAL_SEARCH_NODE_TYPE}:${socialSearchPages(count)}`;
|
|
11030
|
+
}
|
|
11031
|
+
function socialSearchCreditIdFromNode(data) {
|
|
11032
|
+
const platform = socialSearchPlatform(data.platform);
|
|
11033
|
+
return socialSearchCreditId(socialSearchEffectiveCount(platform, socialSearchMode(platform, data.mode), data.count));
|
|
11034
|
+
}
|
|
11035
|
+
var SOCIAL_SEARCH_CREDIT_COSTS = Object.fromEntries([
|
|
11036
|
+
[SOCIAL_SEARCH_NODE_TYPE, SOCIAL_SEARCH_CREDITS_PER_PAGE],
|
|
11037
|
+
...SOCIAL_SEARCH_COUNTS.map((count) => [socialSearchCreditId(count), SOCIAL_SEARCH_CREDITS_PER_PAGE * socialSearchPages(count)])
|
|
11038
|
+
]);
|
|
11039
|
+
function socialSearchPickTop(value) {
|
|
11040
|
+
const n = typeof value === "number" && Number.isFinite(value) ? Math.round(value) : SOCIAL_SEARCH_DEFAULT_PICK_TOP;
|
|
11041
|
+
return Math.min(60, Math.max(1, n));
|
|
11042
|
+
}
|
|
11043
|
+
function pickSocialPosts(results, pickedIds, pickTop) {
|
|
11044
|
+
const byId = new Map(results.map((p) => [p.id, p]));
|
|
11045
|
+
const picked = (pickedIds ?? []).map((id) => byId.get(id)).filter((p) => p !== void 0);
|
|
11046
|
+
return picked.length > 0 ? picked : results.slice(0, socialSearchPickTop(pickTop));
|
|
11047
|
+
}
|
|
11048
|
+
function isSocialSearchPickFrozen(type, data) {
|
|
11049
|
+
return type === SOCIAL_SEARCH_NODE_TYPE && data.keepPicks === true && socialPostsFrom(data.generatedJson).length > 0;
|
|
11050
|
+
}
|
|
11051
|
+
function metricLine(post) {
|
|
11052
|
+
const m = post.metrics;
|
|
11053
|
+
if (m.views !== void 0) return `${m.views} views`;
|
|
11054
|
+
if (m.score !== void 0) return `${m.score} points`;
|
|
11055
|
+
if (m.likes !== void 0) return `${m.likes} likes`;
|
|
11056
|
+
return "";
|
|
11057
|
+
}
|
|
11058
|
+
function socialPostDigestLine(post, index) {
|
|
11059
|
+
const who = post.author.handle ? `@${post.author.handle.replace(/^@/, "")}` : post.author.name || post.container || "";
|
|
11060
|
+
const when = post.publishedAt ? post.publishedAt.slice(0, 10) : "";
|
|
11061
|
+
const words = (post.title || post.text).replace(/\s+/g, " ").trim();
|
|
11062
|
+
const snippet = words.length > 160 ? `${words.slice(0, 159)}\u2026` : words;
|
|
11063
|
+
const head = `${index + 1}. ${[who, when, metricLine(post)].filter(Boolean).join(" \xB7 ")}`;
|
|
11064
|
+
return [head, snippet, post.url].filter(Boolean).join("\n ");
|
|
11065
|
+
}
|
|
11066
|
+
function socialPostsDigest(posts) {
|
|
11067
|
+
return posts.map(socialPostDigestLine).join("\n\n");
|
|
11068
|
+
}
|
|
11069
|
+
|
|
11070
|
+
// src/saved-posts.ts
|
|
11071
|
+
var SAVED_POST_SOURCES = ["picker", "competitors", "manual", "api"];
|
|
11072
|
+
var SAVED_POST_NOTE_MAX = 2e3;
|
|
11073
|
+
var SAVED_POST_MAX_TAGS = 10;
|
|
11074
|
+
var SAVED_POST_TAG_MAX = 40;
|
|
11075
|
+
var SAVED_POSTS_PAGE_MAX = 100;
|
|
11076
|
+
var SAVED_POSTS_LOOKUP_MAX = 200;
|
|
11077
|
+
function normalizeSavedPostTags(tags) {
|
|
11078
|
+
if (!Array.isArray(tags)) return [];
|
|
11079
|
+
const clean2 = tags.filter((t2) => typeof t2 === "string").flatMap((t2) => t2.split(/[,,、]/)).map(
|
|
11080
|
+
(t2) => t2.replace(/[{}"\\]/g, "").trim().replace(/^#+/, "").replace(/\s+/g, " ").toLowerCase().slice(0, SAVED_POST_TAG_MAX).trim()
|
|
11081
|
+
).filter((t2) => t2.length > 0);
|
|
11082
|
+
return Array.from(new Set(clean2)).slice(0, SAVED_POST_MAX_TAGS);
|
|
11083
|
+
}
|
|
11084
|
+
|
|
11085
|
+
// src/competitors.ts
|
|
11086
|
+
var COMPETITOR_ACCOUNT_KEYS = ["tiktok", "instagram", "youtube", "x", "linkedin", "meta_ads"];
|
|
11087
|
+
var COMPETITOR_ABOUT_PLATFORMS = ["tiktok", "instagram", "youtube", "x", "reddit", "linkedin"];
|
|
11088
|
+
var COMPETITOR_DEFAULT_ABOUT_PLATFORMS = ["tiktok", "instagram", "youtube", "x", "reddit"];
|
|
11089
|
+
var COMPETITOR_SCHEDULES = ["off", "weekly", "daily"];
|
|
11090
|
+
var COMPETITOR_SCAN_MAX_SEARCHES = COMPETITOR_ACCOUNT_KEYS.length + COMPETITOR_ABOUT_PLATFORMS.length;
|
|
11091
|
+
var COMPETITOR_SCAN_NODE_TYPE = "competitor-scan";
|
|
11092
|
+
var COMPETITORS_MAX = 50;
|
|
11093
|
+
var ACTION_CARD_KINDS = [
|
|
11094
|
+
"outlier",
|
|
11095
|
+
"launch",
|
|
11096
|
+
"complaints",
|
|
11097
|
+
"spreading",
|
|
11098
|
+
"sound",
|
|
11099
|
+
"mentions_up",
|
|
11100
|
+
"pace",
|
|
11101
|
+
"market_sound",
|
|
11102
|
+
"top_in_sources"
|
|
11103
|
+
];
|
|
11104
|
+
var ADVICE_FAMILIES = ["sound", "outlier", "launch", "complaints"];
|
|
11105
|
+
function adviceFamilyOf(kind) {
|
|
11106
|
+
if (kind === "sound" || kind === "market_sound") return "sound";
|
|
11107
|
+
if (kind === "outlier" || kind === "launch" || kind === "complaints") return kind;
|
|
11108
|
+
return null;
|
|
11109
|
+
}
|
|
11110
|
+
function isMeasurableCard(card) {
|
|
11111
|
+
if (card.kind === "complaints") return card.params.own !== true;
|
|
11112
|
+
return adviceFamilyOf(card.kind) !== null;
|
|
11113
|
+
}
|
|
11114
|
+
var CARD_OUTCOME_STATES = [
|
|
11115
|
+
"worked",
|
|
11116
|
+
"flat",
|
|
11117
|
+
"missed",
|
|
11118
|
+
"waiting",
|
|
11119
|
+
"not_found",
|
|
11120
|
+
"older_than_advice",
|
|
11121
|
+
"no_baseline",
|
|
11122
|
+
"posts_since",
|
|
11123
|
+
"no_posts_yet",
|
|
11124
|
+
"no_brand"
|
|
11125
|
+
];
|
|
11126
|
+
var BRAND_LESSON_KINDS = [
|
|
11127
|
+
"short_videos",
|
|
11128
|
+
"long_videos",
|
|
11129
|
+
"format",
|
|
11130
|
+
"question_hook",
|
|
11131
|
+
"number_hook",
|
|
11132
|
+
"short_caption",
|
|
11133
|
+
"long_caption",
|
|
11134
|
+
"hashtag",
|
|
11135
|
+
"sound",
|
|
11136
|
+
"weekday"
|
|
11137
|
+
];
|
|
11138
|
+
function competitorScanSearches(c) {
|
|
11139
|
+
const accounts = COMPETITOR_ACCOUNT_KEYS.filter((k) => (c.accounts?.[k] ?? "").trim() !== "").length;
|
|
11140
|
+
const about = (c.aboutPlatforms ?? []).filter((p) => COMPETITOR_ABOUT_PLATFORMS.includes(p)).length;
|
|
11141
|
+
return accounts + about;
|
|
11142
|
+
}
|
|
11143
|
+
function competitorScanCreditId(n) {
|
|
11144
|
+
const clamped = Math.min(Math.max(Math.round(n), 1), COMPETITOR_SCAN_MAX_SEARCHES);
|
|
11145
|
+
return `${COMPETITOR_SCAN_NODE_TYPE}:${clamped}`;
|
|
11146
|
+
}
|
|
11147
|
+
var COMPETITOR_SCAN_CREDIT_COSTS = Object.fromEntries(
|
|
11148
|
+
Array.from({ length: COMPETITOR_SCAN_MAX_SEARCHES }, (_, i) => [competitorScanCreditId(i + 1), (i + 1) * SOCIAL_SEARCH_CREDITS_PER_PAGE])
|
|
11149
|
+
);
|
|
11150
|
+
function competitorScanCredits(searches) {
|
|
11151
|
+
return searches <= 0 ? 0 : COMPETITOR_SCAN_CREDIT_COSTS[competitorScanCreditId(searches)] ?? 0;
|
|
11152
|
+
}
|
|
11153
|
+
function isCompetitorAboutPlatform(value) {
|
|
11154
|
+
return COMPETITOR_ABOUT_PLATFORMS.includes(value);
|
|
10268
11155
|
}
|
|
10269
11156
|
|
|
10270
11157
|
// src/condition-variables.ts
|
|
@@ -10611,9 +11498,11 @@ function resolveFieldMappings(data, upstreamText, mappableFieldNames, getSourceO
|
|
|
10611
11498
|
const fm = data.fieldMappings;
|
|
10612
11499
|
const resolved = { ...data };
|
|
10613
11500
|
for (const field of mappableFieldNames) {
|
|
10614
|
-
const
|
|
11501
|
+
const wired = edgeSourceForField?.(field);
|
|
11502
|
+
const edge = typeof wired === "string" ? { sourceNodeId: wired } : wired;
|
|
11503
|
+
const sourceNodeId = edge?.sourceNodeId ?? fm?.[field]?.sourceNodeId;
|
|
10615
11504
|
if (sourceNodeId) {
|
|
10616
|
-
const output = getSourceOutput(sourceNodeId);
|
|
11505
|
+
const output = getSourceOutput(sourceNodeId, edge?.sourceHandle);
|
|
10617
11506
|
if (output != null) resolved[field] = output;
|
|
10618
11507
|
} else {
|
|
10619
11508
|
const current = resolved[field];
|
|
@@ -11549,6 +12438,37 @@ function togglePick(current, id, maxSelected) {
|
|
|
11549
12438
|
return [...current.slice(1), id];
|
|
11550
12439
|
}
|
|
11551
12440
|
|
|
12441
|
+
// src/tts-capabilities.ts
|
|
12442
|
+
var TTS_PROVIDER_ALIASES = {
|
|
12443
|
+
elevenlabs: "elevenlabs-turbo"
|
|
12444
|
+
};
|
|
12445
|
+
var TTS_FALLBACK_PROVIDER = "elevenlabs-turbo";
|
|
12446
|
+
function canonicalTtsProvider(provider) {
|
|
12447
|
+
return typeof provider === "string" && Object.hasOwn(TTS_PROVIDER_ALIASES, provider) ? TTS_PROVIDER_ALIASES[provider] : provider;
|
|
12448
|
+
}
|
|
12449
|
+
function findTtsCapabilities(provider) {
|
|
12450
|
+
if (typeof provider !== "string" || !provider) return void 0;
|
|
12451
|
+
const id = canonicalTtsProvider(provider);
|
|
12452
|
+
if (!Object.hasOwn(MODEL_CATALOG, id)) return void 0;
|
|
12453
|
+
const entry = MODEL_CATALOG[id];
|
|
12454
|
+
return entry.modes.includes("tts") ? entry.tts : void 0;
|
|
12455
|
+
}
|
|
12456
|
+
function getTtsCapabilities(provider) {
|
|
12457
|
+
return findTtsCapabilities(provider) ?? MODEL_CATALOG[TTS_FALLBACK_PROVIDER].tts;
|
|
12458
|
+
}
|
|
12459
|
+
function ttsSupportsAudioTags(provider) {
|
|
12460
|
+
return getTtsCapabilities(provider).audioTags;
|
|
12461
|
+
}
|
|
12462
|
+
function ttsSupportsSsmlBreaks(provider) {
|
|
12463
|
+
return getTtsCapabilities(provider).ssmlBreaks;
|
|
12464
|
+
}
|
|
12465
|
+
function ttsHasLever(provider, lever) {
|
|
12466
|
+
return getTtsCapabilities(provider).levers.includes(lever);
|
|
12467
|
+
}
|
|
12468
|
+
function ttsLanguageCodes(provider) {
|
|
12469
|
+
return getTtsCapabilities(provider).languages;
|
|
12470
|
+
}
|
|
12471
|
+
|
|
11552
12472
|
// src/safety-retry-policy.ts
|
|
11553
12473
|
function safetyRetryPolicy(modelId) {
|
|
11554
12474
|
const entry = getModel(modelId);
|
|
@@ -11834,6 +12754,10 @@ var EXECUTION_DATA_KEYS = /* @__PURE__ */ new Set([
|
|
|
11834
12754
|
// below. Without the transient half, a flip into review marks a passive tab
|
|
11835
12755
|
// dirty and a preset captures "awaiting review".
|
|
11836
12756
|
"jobAwaitingReview",
|
|
12757
|
+
// The editor cannot reach the server to read this node's job. The job keeps
|
|
12758
|
+
// running and the watch keeps polling. Pure run state, cleared by the next
|
|
12759
|
+
// check that gets through, so it is ALSO in TRANSIENT_RUNTIME_KEYS below.
|
|
12760
|
+
"jobConnectionLost",
|
|
11837
12761
|
"isStreaming",
|
|
11838
12762
|
"generatedImageUrl",
|
|
11839
12763
|
"generatedVideoUrl",
|
|
@@ -11853,6 +12777,11 @@ var EXECUTION_DATA_KEYS = /* @__PURE__ */ new Set([
|
|
|
11853
12777
|
// List fan-out window flag (abandon-guard exemption). Set/cleared by
|
|
11854
12778
|
// executeNodeForList — purely execution-related, never user-edited.
|
|
11855
12779
|
"__listRunning",
|
|
12780
|
+
// One token per paid run still out on this node that no executor mark
|
|
12781
|
+
// covers (the editor's `withRunInFlight`, around each paid call outside the
|
|
12782
|
+
// executors). Purely execution-related, never user-edited; also in
|
|
12783
|
+
// TRANSIENT_RUNTIME_KEYS.
|
|
12784
|
+
"__runsInFlight",
|
|
11856
12785
|
// Selector node dual-channel outputs (picked + rest). Server-side execution
|
|
11857
12786
|
// output, not user-edited config.
|
|
11858
12787
|
"pickedResults",
|
|
@@ -11892,23 +12821,55 @@ var EXECUTION_DATA_KEYS = /* @__PURE__ */ new Set([
|
|
|
11892
12821
|
"webhookSuccess",
|
|
11893
12822
|
"webhookStatusCode",
|
|
11894
12823
|
"webhookResponseBody",
|
|
12824
|
+
// Content Ideas: one creative brief per idea (the node's list output — kept
|
|
12825
|
+
// out of __listResults, which would clone the node). And the non-fatal notes
|
|
12826
|
+
// a Content Recipe / Content Ideas run returns ("read the first of 3 posts").
|
|
12827
|
+
// Both are RESULTS: they persist, and a preset, a template or a run-only
|
|
12828
|
+
// patch must never treat them as config.
|
|
12829
|
+
"ideaBriefs",
|
|
12830
|
+
"runWarnings",
|
|
12831
|
+
// Content Ideas: the own brand whose results the last run leaned on — a
|
|
12832
|
+
// RESULT naming the runner's brand, so a template or a preset never carries it.
|
|
12833
|
+
"brandLessons",
|
|
12834
|
+
// Social Search: every post the last search found (the picker's grid), the
|
|
12835
|
+
// ids a person picked from them, and the run's non-fatal notes ("only part
|
|
12836
|
+
// of the results loaded"). All RESULTS: a template, a preset or a run-only
|
|
12837
|
+
// patch must never carry yesterday's posts or picks as configuration.
|
|
12838
|
+
"searchResults",
|
|
12839
|
+
"pickedIds",
|
|
12840
|
+
"searchWarnings",
|
|
11895
12841
|
// When the editor's "Clear results" last emptied this node (ISO time). Not a
|
|
11896
12842
|
// result and not config: bookkeeping that tells the load-time recovery lanes
|
|
11897
12843
|
// "this node is empty ON PURPOSE" — without it, every reload reads an empty
|
|
11898
12844
|
// node as "ran while the editor was closed" and paints the last run back.
|
|
11899
12845
|
// Persisted (never transient): the reload is exactly when it is read.
|
|
11900
|
-
"resultsClearedAt"
|
|
12846
|
+
"resultsClearedAt",
|
|
12847
|
+
// The id of the trigger-started run whose results this node shows (the
|
|
12848
|
+
// editor paints a Telegram run onto the canvas). Bookkeeping, not a result
|
|
12849
|
+
// and not config: it stops a reload from painting the same run again over
|
|
12850
|
+
// edits made since. Persisted for the same reason as resultsClearedAt.
|
|
12851
|
+
"resultsRunId",
|
|
12852
|
+
// When that run ended the node (beside resultsRunId): the editor's reopen
|
|
12853
|
+
// keeps a result a NEWER run left even when its own run listing cannot see
|
|
12854
|
+
// that run. Bookkeeping, persisted for the same reason.
|
|
12855
|
+
"resultsRunEndedAt",
|
|
12856
|
+
// A trigger's last run values (also in TRANSIENT_RUNTIME_KEYS: never saved).
|
|
12857
|
+
"__triggerData"
|
|
11901
12858
|
]);
|
|
11902
12859
|
var TRANSIENT_RUNTIME_KEYS = /* @__PURE__ */ new Set([
|
|
11903
12860
|
"executionStatus",
|
|
11904
12861
|
"currentJobId",
|
|
11905
12862
|
"currentJobProgress",
|
|
11906
12863
|
"jobAwaitingReview",
|
|
12864
|
+
"jobConnectionLost",
|
|
11907
12865
|
"isStreaming",
|
|
11908
12866
|
"subWorkflowProgress",
|
|
11909
12867
|
"__listTotal",
|
|
11910
12868
|
"__listCompleted",
|
|
11911
12869
|
"__listRunning",
|
|
12870
|
+
// A paid run still out, held by the editor tab that started it. Never
|
|
12871
|
+
// saved, so a reload, which has no such run, starts without one.
|
|
12872
|
+
"__runsInFlight",
|
|
11912
12873
|
"_upstreamRefresh",
|
|
11913
12874
|
"__upstreamCount",
|
|
11914
12875
|
// Video URL node download ticks. They used to dirty the workflow twice a
|
|
@@ -11916,7 +12877,11 @@ var TRANSIENT_RUNTIME_KEYS = /* @__PURE__ */ new Set([
|
|
|
11916
12877
|
// job-progress keys above were moved here to stop. What SURVIVES a reload is
|
|
11917
12878
|
// `downloadStatus` + `downloadId`; the percent is re-read from the server.
|
|
11918
12879
|
"downloadPercent",
|
|
11919
|
-
"downloadPhase"
|
|
12880
|
+
"downloadPhase",
|
|
12881
|
+
// A trigger's last run values, shown in the editor after a run (a webhook's
|
|
12882
|
+
// body, a Telegram message and its post). Never saved: the workflow is not
|
|
12883
|
+
// where a message's content is kept — runs are, under their retention.
|
|
12884
|
+
"__triggerData"
|
|
11920
12885
|
]);
|
|
11921
12886
|
function stripTransientRuntimeData(nodes) {
|
|
11922
12887
|
return nodes.map((node) => {
|
|
@@ -11949,6 +12914,8 @@ var NODE_EXTRA_FIELDS = {
|
|
|
11949
12914
|
// (a schedule starts paused), and the rules themselves are config that
|
|
11950
12915
|
// travels.
|
|
11951
12916
|
"schedule-trigger": ["active"],
|
|
12917
|
+
// Same for a Telegram Account Trigger: listening is the importer's to start.
|
|
12918
|
+
"telegram-account-trigger": ["isActive"],
|
|
11952
12919
|
character: ["expressions", "poses", "lightingVariations", "angles", "customVariations"],
|
|
11953
12920
|
object: ["angles", "materials", "variations", "customVariations"],
|
|
11954
12921
|
creature: ["angles", "poses", "variations", "customVariations"],
|
|
@@ -11974,6 +12941,11 @@ var NODE_EXTRA_FIELDS = {
|
|
|
11974
12941
|
};
|
|
11975
12942
|
var UNOWNED_REF_FIELDS = {
|
|
11976
12943
|
"webhook-output": ["credentialId"],
|
|
12944
|
+
// The exporter's connected Telegram account and its chats (a Saved Messages
|
|
12945
|
+
// chat id IS the exporter's Telegram user id) — the importer picks their own.
|
|
12946
|
+
"telegram-account-trigger": ["accountId", "chatIds", "chatTitles", "senderIds"],
|
|
12947
|
+
// Telegram Reply: the exporter's account and their bot.
|
|
12948
|
+
"telegram-account-send": ["accountId", "connectionId"],
|
|
11977
12949
|
...Object.fromEntries([...SOCIAL_POST_NODE_TYPES].map((type) => [type, ["connectionId"]]))
|
|
11978
12950
|
};
|
|
11979
12951
|
function stripUnownedRefs(nodes) {
|
|
@@ -12652,6 +13624,11 @@ function clearImageCriticMetadata(meta) {
|
|
|
12652
13624
|
return next;
|
|
12653
13625
|
}
|
|
12654
13626
|
var VIDEO_CRITIC_FRAME_MODES = ["first_last", "first_middle_last", "five_evenly"];
|
|
13627
|
+
var VIDEO_CRITIC_RESERVED_CREDITS_PER_SHOT = {
|
|
13628
|
+
first_last: 20,
|
|
13629
|
+
first_middle_last: 30,
|
|
13630
|
+
five_evenly: 40
|
|
13631
|
+
};
|
|
12655
13632
|
var VIDEO_CRITIC_MAX_RETRIES = 1;
|
|
12656
13633
|
var VIDEO_CRITIC_MIN_ADHERENCE_SCORE = 5;
|
|
12657
13634
|
var VIDEO_CRITIC_METADATA_KEYS = [
|
|
@@ -13494,6 +14471,9 @@ var SubGateNameSchema = z.enum([
|
|
|
13494
14471
|
"dialogue_recheck",
|
|
13495
14472
|
"match_cut_break_pending"
|
|
13496
14473
|
]);
|
|
14474
|
+
var ANIMATE_SUB_GATES = ["silent_cut_preview", "dialogue_recheck"];
|
|
14475
|
+
var AnimateSubGateSchema = z.enum(ANIMATE_SUB_GATES);
|
|
14476
|
+
var MATCH_CUT_BREAK_GATE = "match_cut_break_pending";
|
|
13497
14477
|
var StageAwaitingSubGateEventSchema = z.object({
|
|
13498
14478
|
type: z.literal("stage:awaiting_sub_gate"),
|
|
13499
14479
|
pipelineId: z.string().uuid(),
|
|
@@ -14574,7 +15554,8 @@ function detectVideoLinkPlatform(url) {
|
|
|
14574
15554
|
var VIDEO_LINK_TOLERANT_CONSUMER_TYPES = /* @__PURE__ */ new Set([
|
|
14575
15555
|
"suno-cover",
|
|
14576
15556
|
"transcribe",
|
|
14577
|
-
"dubbing"
|
|
15557
|
+
"dubbing",
|
|
15558
|
+
"content-recipe"
|
|
14578
15559
|
]);
|
|
14579
15560
|
function trimmed(value) {
|
|
14580
15561
|
if (typeof value !== "string") return void 0;
|
|
@@ -14591,6 +15572,9 @@ function videoLinkDownloadedFile(data) {
|
|
|
14591
15572
|
function resolveVideoLinkOutput(data) {
|
|
14592
15573
|
return videoLinkDownloadedFile(data) ?? trimmed(data.youtubeUrl);
|
|
14593
15574
|
}
|
|
15575
|
+
function videoLinkPageUrl(data) {
|
|
15576
|
+
return trimmed(data.youtubeUrl);
|
|
15577
|
+
}
|
|
14594
15578
|
function videoLinkNeedsDownload(data) {
|
|
14595
15579
|
const url = trimmed(data.youtubeUrl);
|
|
14596
15580
|
if (!url || !isSocialVideoUrl(url)) return false;
|
|
@@ -16582,20 +17566,22 @@ function stripDerivedAnalysisFields(json) {
|
|
|
16582
17566
|
|
|
16583
17567
|
// src/video-analysis-pricing.ts
|
|
16584
17568
|
var VIDEO_ANALYSIS_DURATION_BUCKETS = [60, 180, 360, 600];
|
|
16585
|
-
var
|
|
17569
|
+
var VIDEO_ANALYSIS_BUCKET_GRACE_SEC = 3;
|
|
17570
|
+
var VIDEO_ANALYSIS_DURATION_TOLERANCE_SEC = VIDEO_ANALYSIS_BUCKET_GRACE_SEC + 3;
|
|
16586
17571
|
var VIDEO_ANALYSIS_MAX_DURATION_SEC = 600;
|
|
16587
17572
|
var WINDOW_LEN = 150;
|
|
16588
17573
|
var WINDOW_STRIDE = 145;
|
|
16589
17574
|
var WINDOW_OVERLAP = 5;
|
|
16590
17575
|
var VIDEO_ANALYSIS_WINDOW = { LEN: WINDOW_LEN, STRIDE: WINDOW_STRIDE, OVERLAP: WINDOW_OVERLAP, SINGLE_MAX: 180 };
|
|
16591
17576
|
var VIDEO_ANALYSIS_BUCKET_CREDITS = {
|
|
16592
|
-
//
|
|
17577
|
+
// Current fast tier (VIDEO_ANALYSIS_TIERS.fast; it was also the fast model
|
|
17578
|
+
// before 2026-07).
|
|
16593
17579
|
"video-analysis:gemini-3-flash:60s": 181,
|
|
16594
17580
|
"video-analysis:gemini-3-flash:180s": 186,
|
|
16595
17581
|
"video-analysis:gemini-3-flash:360s": 516,
|
|
16596
17582
|
"video-analysis:gemini-3-flash:600s": 849,
|
|
16597
|
-
//
|
|
16598
|
-
//
|
|
17583
|
+
// Legacy fast-tier model (backed the fast tier 2026-07 → 2026-07-29) — kept
|
|
17584
|
+
// for stored raw-id configs; still ≤ pro per bucket.
|
|
16599
17585
|
"video-analysis:gemini-3.6-flash:60s": 205,
|
|
16600
17586
|
"video-analysis:gemini-3.6-flash:180s": 219,
|
|
16601
17587
|
"video-analysis:gemini-3.6-flash:360s": 603,
|
|
@@ -16626,7 +17612,7 @@ function videoAnalysisCreditSegment(modelOrSentinel) {
|
|
|
16626
17612
|
return modelOrSentinel === "mixed-fast" ? "mixed" : modelOrSentinel;
|
|
16627
17613
|
}
|
|
16628
17614
|
function pickVideoAnalysisBucket(durationSec) {
|
|
16629
|
-
for (const b of VIDEO_ANALYSIS_DURATION_BUCKETS) if (durationSec <= b) return b;
|
|
17615
|
+
for (const b of VIDEO_ANALYSIS_DURATION_BUCKETS) if (durationSec <= b + VIDEO_ANALYSIS_BUCKET_GRACE_SEC) return b;
|
|
16630
17616
|
return VIDEO_ANALYSIS_MAX_DURATION_SEC;
|
|
16631
17617
|
}
|
|
16632
17618
|
function buildVideoAnalysisCreditId(model, durationSec) {
|
|
@@ -16665,6 +17651,47 @@ function bucketSecondsFromAuditCreditId(id) {
|
|
|
16665
17651
|
return m ? Number(m[1]) : null;
|
|
16666
17652
|
}
|
|
16667
17653
|
|
|
17654
|
+
// src/content-recipe-ideas.ts
|
|
17655
|
+
var CONTENT_IDEAS_MAX_COUNT = 10;
|
|
17656
|
+
var CONTENT_IDEAS_DEFAULT_COUNT = 5;
|
|
17657
|
+
var CONTENT_IDEAS_PER_CHARGE = 5;
|
|
17658
|
+
var CONTENT_RECIPE_SOURCE_MAX = 3e5;
|
|
17659
|
+
var CONTENT_IDEAS_MAX_RECIPE_INPUTS = 20;
|
|
17660
|
+
var CONTENT_IDEAS_BRAND_MAX = 6e3;
|
|
17661
|
+
var CONTENT_IDEAS_LANGUAGE_MAX = 40;
|
|
17662
|
+
function clampContentIdeasCount(raw) {
|
|
17663
|
+
const n = typeof raw === "number" && Number.isFinite(raw) ? Math.floor(raw) : CONTENT_IDEAS_DEFAULT_COUNT;
|
|
17664
|
+
return Math.min(CONTENT_IDEAS_MAX_COUNT, Math.max(1, n));
|
|
17665
|
+
}
|
|
17666
|
+
function contentIdeasCreditFeature(count) {
|
|
17667
|
+
return count > CONTENT_IDEAS_PER_CHARGE ? "content-ideas:10" : "content-ideas";
|
|
17668
|
+
}
|
|
17669
|
+
function effectiveContentModel(feature, llmModel) {
|
|
17670
|
+
if (typeof llmModel === "string" && getLlmModel(llmModel)?.structuredOutputMode != null) return llmModel;
|
|
17671
|
+
return LLM_FEATURE_DEFAULTS[feature];
|
|
17672
|
+
}
|
|
17673
|
+
function contentRecipeCreditId(llmModel, reasoningEffort) {
|
|
17674
|
+
return buildLlmCreditIdentifier("content-recipe", effectiveContentModel("content-recipe", llmModel), reasoningEffort);
|
|
17675
|
+
}
|
|
17676
|
+
function contentIdeasCreditId(count, llmModel, reasoningEffort) {
|
|
17677
|
+
return buildLlmCreditIdentifier(
|
|
17678
|
+
contentIdeasCreditFeature(clampContentIdeasCount(count)),
|
|
17679
|
+
effectiveContentModel("content-ideas", llmModel),
|
|
17680
|
+
reasoningEffort
|
|
17681
|
+
);
|
|
17682
|
+
}
|
|
17683
|
+
var CONTENT_RECIPE_IDEAS_CREDIT_IDS = [
|
|
17684
|
+
"content-recipe:economy",
|
|
17685
|
+
"content-recipe",
|
|
17686
|
+
"content-recipe:premium",
|
|
17687
|
+
"content-ideas:economy",
|
|
17688
|
+
"content-ideas",
|
|
17689
|
+
"content-ideas:premium",
|
|
17690
|
+
"content-ideas:10:economy",
|
|
17691
|
+
"content-ideas:10",
|
|
17692
|
+
"content-ideas:10:premium"
|
|
17693
|
+
];
|
|
17694
|
+
|
|
16668
17695
|
// src/smart-cut-windows.ts
|
|
16669
17696
|
var SMART_CUT_WINDOW_MAX = 24;
|
|
16670
17697
|
var SMART_CUT_WINDOW_MIN = 1;
|
|
@@ -18814,6 +19841,24 @@ var STUDIO_TRANSIENT_KEYS = [
|
|
|
18814
19841
|
"freecutDraftUrl"
|
|
18815
19842
|
];
|
|
18816
19843
|
var STUDIO_SHOT_TRANSIENT_KEYS = ["pendingClips", "pendingClip", "pendingStills"];
|
|
19844
|
+
var STUDIO_SHOT_DRAFT_KEYS = ["stillSlots", "clipSlots"];
|
|
19845
|
+
var STUDIO_PREVIZ_RUN_STATE_KEYS = ["pendingJobs", "proSubmission"];
|
|
19846
|
+
var STUDIO_SHOT_PRIVATE_KEYS = [...STUDIO_SHOT_TRANSIENT_KEYS, ...STUDIO_SHOT_DRAFT_KEYS];
|
|
19847
|
+
var STUDIO_TAKE_VOICE_KEYS = ["revoiceTo", "voiceMode"];
|
|
19848
|
+
var STUDIO_TAKE_SEQUENCE_KEYS = ["sequenceEndpoints"];
|
|
19849
|
+
var STUDIO_TAKE_PRIVATE_KEYS = [...STUDIO_TAKE_VOICE_KEYS, ...STUDIO_TAKE_SEQUENCE_KEYS];
|
|
19850
|
+
var STUDIO_SEQUENCE_PLANNING_KEYS = ["sequenceRecommendations"];
|
|
19851
|
+
var STUDIO_SEQUENCE_UNIT_REVIEW_KEYS = ["continuationAcceptance"];
|
|
19852
|
+
var STUDIO_SEQUENCE_POLICY_KEYS = ["sequenceGenerationPolicies"];
|
|
19853
|
+
var STUDIO_SEQUENCE_UNIT_MANIFEST_KEYS = ["requestManifest"];
|
|
19854
|
+
var STUDIO_KEYFRAME_NODE_TRANSIENT_KEYS = ["keyframePendingImages"];
|
|
19855
|
+
var STUDIO_KEYFRAME_TRANSIENT_KEYS = ["pendingImages"];
|
|
19856
|
+
var STUDIO_KEYFRAME_REVIEW_KEYS = ["rejections"];
|
|
19857
|
+
var STUDIO_KEYFRAME_ACCEPTANCE_PRIVATE_KEYS = ["waivedReason"];
|
|
19858
|
+
var STUDIO_KEYFRAME_PRIVATE_KEYS = [...STUDIO_KEYFRAME_TRANSIENT_KEYS, ...STUDIO_KEYFRAME_REVIEW_KEYS];
|
|
19859
|
+
function isRecord2(value) {
|
|
19860
|
+
return !!value && typeof value === "object" && !Array.isArray(value);
|
|
19861
|
+
}
|
|
18817
19862
|
function withoutKeys(source, drop) {
|
|
18818
19863
|
const kept = {};
|
|
18819
19864
|
for (const [key, value] of Object.entries(source)) {
|
|
@@ -18822,15 +19867,27 @@ function withoutKeys(source, drop) {
|
|
|
18822
19867
|
}
|
|
18823
19868
|
return kept;
|
|
18824
19869
|
}
|
|
18825
|
-
function stripShots(value) {
|
|
19870
|
+
function stripShots(value, drop) {
|
|
18826
19871
|
if (!Array.isArray(value)) return value;
|
|
18827
19872
|
let changed = false;
|
|
18828
19873
|
const out = value.map((entry) => {
|
|
18829
19874
|
if (!entry || typeof entry !== "object" || Array.isArray(entry)) return entry;
|
|
18830
19875
|
const shot = entry;
|
|
18831
|
-
if (!
|
|
19876
|
+
if (!drop.some((key) => key in shot)) return entry;
|
|
18832
19877
|
changed = true;
|
|
18833
|
-
return withoutKeys(shot,
|
|
19878
|
+
return withoutKeys(shot, drop);
|
|
19879
|
+
});
|
|
19880
|
+
return changed ? out : value;
|
|
19881
|
+
}
|
|
19882
|
+
function stripPrevizRunState(value) {
|
|
19883
|
+
if (!Array.isArray(value)) return value;
|
|
19884
|
+
let changed = false;
|
|
19885
|
+
const out = value.map((entry) => {
|
|
19886
|
+
if (!isRecord2(entry)) return entry;
|
|
19887
|
+
const previz = entry.previsualization;
|
|
19888
|
+
if (!isRecord2(previz) || !STUDIO_PREVIZ_RUN_STATE_KEYS.some((key) => key in previz)) return entry;
|
|
19889
|
+
changed = true;
|
|
19890
|
+
return { ...entry, previsualization: withoutKeys(previz, STUDIO_PREVIZ_RUN_STATE_KEYS) };
|
|
18834
19891
|
});
|
|
18835
19892
|
return changed ? out : value;
|
|
18836
19893
|
}
|
|
@@ -18840,13 +19897,149 @@ function stripStudioTransientSettings(settings) {
|
|
|
18840
19897
|
if (!studio || typeof studio !== "object" || Array.isArray(studio)) return settings;
|
|
18841
19898
|
const source = studio;
|
|
18842
19899
|
const kept = withoutKeys(source, STUDIO_TRANSIENT_KEYS);
|
|
18843
|
-
const shots = stripShots(source.shots);
|
|
19900
|
+
const shots = stripPrevizRunState(stripShots(source.shots, STUDIO_SHOT_PRIVATE_KEYS));
|
|
18844
19901
|
if (source.shots !== void 0) kept.shots = shots;
|
|
18845
|
-
|
|
19902
|
+
const planned = stripLinkedOwnerState(kept);
|
|
19903
|
+
if (Object.keys(kept).length === Object.keys(source).length && shots === source.shots && planned === kept) {
|
|
18846
19904
|
return settings;
|
|
18847
19905
|
}
|
|
19906
|
+
return { ...settings, studio: planned };
|
|
19907
|
+
}
|
|
19908
|
+
function stripStudioTakeVoiceRecords(nodes) {
|
|
19909
|
+
if (!Array.isArray(nodes)) return nodes;
|
|
19910
|
+
let changed = false;
|
|
19911
|
+
const out = nodes.map((node) => {
|
|
19912
|
+
const data = isRecord2(node) ? node.data : void 0;
|
|
19913
|
+
if (!isRecord2(data)) return node;
|
|
19914
|
+
const results = stripRows(data.generatedResults, STUDIO_TAKE_PRIVATE_KEYS);
|
|
19915
|
+
const unitResults = stripRows(data.sequenceUnitResults, STUDIO_SEQUENCE_UNIT_MANIFEST_KEYS);
|
|
19916
|
+
const running = STUDIO_KEYFRAME_NODE_TRANSIENT_KEYS.some((key) => key in data);
|
|
19917
|
+
if (results === data.generatedResults && unitResults === data.sequenceUnitResults && !running) return node;
|
|
19918
|
+
changed = true;
|
|
19919
|
+
const kept = withoutKeys(data, STUDIO_KEYFRAME_NODE_TRANSIENT_KEYS);
|
|
19920
|
+
if (results !== data.generatedResults) kept.generatedResults = results;
|
|
19921
|
+
if (unitResults !== data.sequenceUnitResults) kept.sequenceUnitResults = unitResults;
|
|
19922
|
+
return { ...node, data: kept };
|
|
19923
|
+
});
|
|
19924
|
+
return changed ? out : nodes;
|
|
19925
|
+
}
|
|
19926
|
+
function stripRows(value, drop) {
|
|
19927
|
+
if (!Array.isArray(value)) return value;
|
|
19928
|
+
let changed = false;
|
|
19929
|
+
const out = value.map((row) => {
|
|
19930
|
+
if (!isRecord2(row) || !drop.some((key) => key in row)) return row;
|
|
19931
|
+
changed = true;
|
|
19932
|
+
return withoutKeys(row, drop);
|
|
19933
|
+
});
|
|
19934
|
+
return changed ? out : value;
|
|
19935
|
+
}
|
|
19936
|
+
function stripLinkedOwnerState(studio) {
|
|
19937
|
+
const takes = stripTakeUnitReviews(studio.sequenceTakes);
|
|
19938
|
+
const keyframes = stripKeyframes(studio.keyframes);
|
|
19939
|
+
const preferences = STUDIO_SEQUENCE_POLICY_KEYS.filter((key) => {
|
|
19940
|
+
const value = studio[key];
|
|
19941
|
+
return isRecord2(value) && Object.keys(value).length > 0;
|
|
19942
|
+
});
|
|
19943
|
+
if (!STUDIO_SEQUENCE_PLANNING_KEYS.some((key) => key in studio) && takes === studio.sequenceTakes && keyframes === studio.keyframes && preferences.length === 0) return studio;
|
|
19944
|
+
const kept = withoutKeys(studio, STUDIO_SEQUENCE_PLANNING_KEYS);
|
|
19945
|
+
if (takes !== studio.sequenceTakes) kept.sequenceTakes = takes;
|
|
19946
|
+
if (keyframes !== studio.keyframes) kept.keyframes = keyframes;
|
|
19947
|
+
for (const key of preferences) kept[key] = {};
|
|
19948
|
+
return kept;
|
|
19949
|
+
}
|
|
19950
|
+
function stripTakeUnitReviews(value) {
|
|
19951
|
+
if (!Array.isArray(value)) return value;
|
|
19952
|
+
let changed = false;
|
|
19953
|
+
const out = value.map((take) => {
|
|
19954
|
+
if (!isRecord2(take) || !Array.isArray(take.units)) return take;
|
|
19955
|
+
let touched = false;
|
|
19956
|
+
const units = take.units.map((unit) => {
|
|
19957
|
+
if (!isRecord2(unit) || !STUDIO_SEQUENCE_UNIT_REVIEW_KEYS.some((key) => key in unit)) return unit;
|
|
19958
|
+
touched = true;
|
|
19959
|
+
return withoutKeys(unit, STUDIO_SEQUENCE_UNIT_REVIEW_KEYS);
|
|
19960
|
+
});
|
|
19961
|
+
if (!touched) return take;
|
|
19962
|
+
changed = true;
|
|
19963
|
+
return { ...take, units };
|
|
19964
|
+
});
|
|
19965
|
+
return changed ? out : value;
|
|
19966
|
+
}
|
|
19967
|
+
function stripKeyframes(value) {
|
|
19968
|
+
if (!Array.isArray(value)) return value;
|
|
19969
|
+
let changed = false;
|
|
19970
|
+
const out = value.map((frame) => {
|
|
19971
|
+
if (!isRecord2(frame)) return frame;
|
|
19972
|
+
const kept = keyframeForReader(frame, STUDIO_KEYFRAME_REVIEW_KEYS);
|
|
19973
|
+
if (kept !== frame) changed = true;
|
|
19974
|
+
return kept;
|
|
19975
|
+
});
|
|
19976
|
+
return changed ? out : value;
|
|
19977
|
+
}
|
|
19978
|
+
function keyframeForReader(frame, drop) {
|
|
19979
|
+
const acceptance = frame.acceptance;
|
|
19980
|
+
const waived = isRecord2(acceptance) && STUDIO_KEYFRAME_ACCEPTANCE_PRIVATE_KEYS.some((key) => key in acceptance);
|
|
19981
|
+
if (!waived && !drop.some((key) => key in frame)) return frame;
|
|
19982
|
+
const kept = withoutKeys(frame, drop);
|
|
19983
|
+
if (waived) kept.acceptance = withoutKeys(acceptance, STUDIO_KEYFRAME_ACCEPTANCE_PRIVATE_KEYS);
|
|
19984
|
+
return kept;
|
|
19985
|
+
}
|
|
19986
|
+
function stripStudioDraftSettings(settings) {
|
|
19987
|
+
if (!settings || typeof settings !== "object") return settings;
|
|
19988
|
+
const studio = settings.studio;
|
|
19989
|
+
if (!isRecord2(studio)) return settings;
|
|
19990
|
+
const shots = stripShots(studio.shots, STUDIO_SHOT_PRIVATE_KEYS);
|
|
19991
|
+
const trash = stripBin(studio.trash);
|
|
19992
|
+
const planned = stripLinkedOwnerState(studio);
|
|
19993
|
+
if (shots === studio.shots && trash === studio.trash && planned === studio) return settings;
|
|
19994
|
+
const kept = { ...planned };
|
|
19995
|
+
if (shots !== studio.shots) kept.shots = shots;
|
|
19996
|
+
if (trash !== studio.trash) kept.trash = trash;
|
|
18848
19997
|
return { ...settings, studio: kept };
|
|
18849
19998
|
}
|
|
19999
|
+
function stripBin(trash) {
|
|
20000
|
+
if (!Array.isArray(trash)) return trash;
|
|
20001
|
+
let changed = false;
|
|
20002
|
+
const out = [];
|
|
20003
|
+
for (const entry of trash) {
|
|
20004
|
+
if (isRecord2(entry) && entry.kind === "slot") {
|
|
20005
|
+
changed = true;
|
|
20006
|
+
continue;
|
|
20007
|
+
}
|
|
20008
|
+
const kept = !isRecord2(entry) ? entry : entry.kind === "shot" ? binSceneForReader(entry) : entry.kind === "keyframe" ? binKeyframeForReader(entry) : binTakeForReader(entry);
|
|
20009
|
+
if (kept !== entry) changed = true;
|
|
20010
|
+
out.push(kept);
|
|
20011
|
+
}
|
|
20012
|
+
return changed ? out : trash;
|
|
20013
|
+
}
|
|
20014
|
+
function binSceneForReader(entry) {
|
|
20015
|
+
const graph = entry.graph;
|
|
20016
|
+
if (!isRecord2(graph)) return entry;
|
|
20017
|
+
const nodes = stripStudioTakeVoiceRecords(graph.nodes);
|
|
20018
|
+
const settings = stripStudioDraftSettings(graph.settings);
|
|
20019
|
+
if (nodes === graph.nodes && settings === graph.settings) return entry;
|
|
20020
|
+
return { ...entry, graph: { ...graph, nodes, settings } };
|
|
20021
|
+
}
|
|
20022
|
+
function binTakeForReader(entry) {
|
|
20023
|
+
const result = entry.result;
|
|
20024
|
+
if (!isRecord2(result) || !STUDIO_TAKE_PRIVATE_KEYS.some((key) => key in result)) return entry;
|
|
20025
|
+
return { ...entry, result: withoutKeys(result, STUDIO_TAKE_PRIVATE_KEYS) };
|
|
20026
|
+
}
|
|
20027
|
+
function binKeyframeForReader(entry) {
|
|
20028
|
+
const keyframe = entry.keyframe;
|
|
20029
|
+
if (!isRecord2(keyframe)) return entry;
|
|
20030
|
+
const kept = keyframeForReader(keyframe, STUDIO_KEYFRAME_PRIVATE_KEYS);
|
|
20031
|
+
return kept === keyframe ? entry : { ...entry, keyframe: kept };
|
|
20032
|
+
}
|
|
20033
|
+
function stripStudioDraftWorkflow(row) {
|
|
20034
|
+
const nodes = "nodes" in row ? stripStudioTakeVoiceRecords(row.nodes) : row.nodes;
|
|
20035
|
+
const settings = "settings" in row ? stripStudioDraftSettings(row.settings) : row.settings;
|
|
20036
|
+
if (nodes === row.nodes && settings === row.settings) return row;
|
|
20037
|
+
return {
|
|
20038
|
+
...row,
|
|
20039
|
+
...nodes !== row.nodes ? { nodes } : {},
|
|
20040
|
+
...settings !== row.settings ? { settings } : {}
|
|
20041
|
+
};
|
|
20042
|
+
}
|
|
18850
20043
|
var scene3DV2OverrideInputSchema = z.discriminatedUnion("kind", [
|
|
18851
20044
|
z.object({
|
|
18852
20045
|
kind: z.literal("entity-transform"),
|
|
@@ -19291,6 +20484,123 @@ function mergeEdlSourceOffsets(edl, offsets, opts) {
|
|
|
19291
20484
|
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 };
|
|
19292
20485
|
return { edl: merged, ...anchor !== void 0 ? { anchor } : {}, applied, ignored };
|
|
19293
20486
|
}
|
|
20487
|
+
var AUDIO_SYNC_MIN_CONFIDENCE = 0.5;
|
|
20488
|
+
function readAudioSyncRows(sync) {
|
|
20489
|
+
let value = sync;
|
|
20490
|
+
if (typeof value === "string") {
|
|
20491
|
+
try {
|
|
20492
|
+
value = JSON.parse(value);
|
|
20493
|
+
} catch {
|
|
20494
|
+
return null;
|
|
20495
|
+
}
|
|
20496
|
+
}
|
|
20497
|
+
if (!value || typeof value !== "object") return null;
|
|
20498
|
+
const { reference, offsets } = value;
|
|
20499
|
+
if (!Array.isArray(offsets)) return null;
|
|
20500
|
+
const rows = /* @__PURE__ */ new Map();
|
|
20501
|
+
for (const row of offsets) {
|
|
20502
|
+
if (!row || typeof row !== "object") return null;
|
|
20503
|
+
const { sourceId, offsetMs, confidence } = row;
|
|
20504
|
+
if (typeof sourceId !== "string" || !isFiniteNumber(offsetMs)) return null;
|
|
20505
|
+
if (!rows.has(sourceId)) rows.set(sourceId, { offsetMs, confidence: isFiniteNumber(confidence) ? confidence : 0 });
|
|
20506
|
+
}
|
|
20507
|
+
if (typeof reference === "string" && reference && !rows.has(reference)) rows.set(reference, { offsetMs: 0, confidence: 1 });
|
|
20508
|
+
return rows;
|
|
20509
|
+
}
|
|
20510
|
+
var handSet = (s) => isFiniteNumber(s.offsetMs);
|
|
20511
|
+
function plannerClockSource(sources) {
|
|
20512
|
+
return sources.find((s) => s.role === "master-audio") ?? sources[0];
|
|
20513
|
+
}
|
|
20514
|
+
function applyAudioSyncOffsets(sources, sync) {
|
|
20515
|
+
const rows = readAudioSyncRows(sync);
|
|
20516
|
+
if (!rows) return { ok: false, issues: [{ code: "not-audio-sync" }] };
|
|
20517
|
+
const list = Array.isArray(sources) ? sources.filter((s) => !!s && typeof s === "object") : [];
|
|
20518
|
+
const anchor = plannerClockSource(list);
|
|
20519
|
+
if (!anchor) return { ok: true, sources: [...list], applied: [] };
|
|
20520
|
+
const issues = [];
|
|
20521
|
+
for (const s of list) if (s.offsetMs !== void 0 && !handSet(s)) issues.push({ code: "invalid-offset", sourceId: s.id });
|
|
20522
|
+
if (handSet(anchor) && anchor.offsetMs !== 0) {
|
|
20523
|
+
issues.push({ code: "anchor-offset", sourceId: anchor.id, offsetMs: anchor.offsetMs });
|
|
20524
|
+
}
|
|
20525
|
+
const measured = {};
|
|
20526
|
+
for (const s of list) {
|
|
20527
|
+
if (s.id === anchor.id || handSet(s)) continue;
|
|
20528
|
+
const row = rows.get(s.id);
|
|
20529
|
+
if (!row) issues.push({ code: "unmeasured", sourceId: s.id });
|
|
20530
|
+
else if (!(row.confidence >= AUDIO_SYNC_MIN_CONFIDENCE)) issues.push({ code: "weak-match", sourceId: s.id, confidence: row.confidence, anchor: false });
|
|
20531
|
+
else measured[s.id] = row.offsetMs;
|
|
20532
|
+
}
|
|
20533
|
+
if (Object.keys(measured).length > 0) {
|
|
20534
|
+
const row = rows.get(anchor.id);
|
|
20535
|
+
if (!row) issues.push({ code: "anchor-unmeasured", sourceId: anchor.id });
|
|
20536
|
+
else if (!(row.confidence >= AUDIO_SYNC_MIN_CONFIDENCE)) issues.push({ code: "weak-match", sourceId: anchor.id, confidence: row.confidence, anchor: true });
|
|
20537
|
+
else measured[anchor.id] = row.offsetMs;
|
|
20538
|
+
}
|
|
20539
|
+
if (issues.length > 0) return { ok: false, issues };
|
|
20540
|
+
if (Object.keys(measured).length === 0) return { ok: true, sources: [...list], anchor: anchor.id, applied: [] };
|
|
20541
|
+
const pseudo = { version: 1, clock: "master", sources: list, segments: [] };
|
|
20542
|
+
const merged = mergeEdlSourceOffsets(pseudo, measured, { anchor: anchor.id });
|
|
20543
|
+
const byId = new Map(merged.edl.sources.map((s) => [s.id, s.offsetMs]));
|
|
20544
|
+
const applied = new Set(merged.applied);
|
|
20545
|
+
return {
|
|
20546
|
+
ok: true,
|
|
20547
|
+
sources: list.map((s) => applied.has(s.id) ? { ...s, offsetMs: byId.get(s.id) } : s),
|
|
20548
|
+
anchor: anchor.id,
|
|
20549
|
+
applied: merged.applied
|
|
20550
|
+
};
|
|
20551
|
+
}
|
|
20552
|
+
function resolveEditPlanSources(sources, opts = {}) {
|
|
20553
|
+
const list = Array.isArray(sources) ? sources.filter((s) => !!s && typeof s === "object") : [];
|
|
20554
|
+
const anchor = plannerClockSource(list);
|
|
20555
|
+
const issues = [];
|
|
20556
|
+
let planned = [...list];
|
|
20557
|
+
if (opts.offsets !== void 0) {
|
|
20558
|
+
const synced = applyAudioSyncOffsets(list, opts.offsets);
|
|
20559
|
+
if (synced.ok) planned = synced.sources;
|
|
20560
|
+
else issues.push(...synced.issues);
|
|
20561
|
+
} else {
|
|
20562
|
+
for (const s of list) if (s.offsetMs !== void 0 && !handSet(s)) issues.push({ code: "invalid-offset", sourceId: s.id });
|
|
20563
|
+
if (anchor && handSet(anchor) && anchor.offsetMs !== 0) {
|
|
20564
|
+
issues.push({ code: "anchor-offset", sourceId: anchor.id, offsetMs: anchor.offsetMs });
|
|
20565
|
+
}
|
|
20566
|
+
}
|
|
20567
|
+
const spoken = opts.transcriptSourceId ? planned.find((s) => s.id === opts.transcriptSourceId) : void 0;
|
|
20568
|
+
if (spoken && anchor && spoken.id !== anchor.id && handSet(spoken) && spoken.offsetMs !== 0) {
|
|
20569
|
+
issues.push({ code: "transcript-off-clock", sourceId: spoken.id, masterId: anchor.id, offsetMs: spoken.offsetMs });
|
|
20570
|
+
}
|
|
20571
|
+
if (issues.length > 0) return { ok: false, issues };
|
|
20572
|
+
return { ok: true, sources: planned, ...spoken ? { transcriptSourceId: spoken.id } : {} };
|
|
20573
|
+
}
|
|
20574
|
+
function editPlanTranscriptOrigin(producerId, typeOf, edges) {
|
|
20575
|
+
if (typeOf(producerId) !== "transcribe") return void 0;
|
|
20576
|
+
let current = producerId;
|
|
20577
|
+
for (let hop = 0; hop < 4; hop++) {
|
|
20578
|
+
const upstream = [...new Set(edges.filter((e) => e.target === current).map((e) => e.source))];
|
|
20579
|
+
if (upstream.length !== 1) return void 0;
|
|
20580
|
+
const up = upstream[0];
|
|
20581
|
+
if (typeOf(up) !== "extract-audio") return up;
|
|
20582
|
+
current = up;
|
|
20583
|
+
}
|
|
20584
|
+
return void 0;
|
|
20585
|
+
}
|
|
20586
|
+
function describeAudioSyncOffsetIssue(issue2, labelOf = (id) => id) {
|
|
20587
|
+
switch (issue2.code) {
|
|
20588
|
+
case "transcript-off-clock":
|
|
20589
|
+
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`;
|
|
20590
|
+
case "not-audio-sync":
|
|
20591
|
+
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)";
|
|
20592
|
+
case "invalid-offset":
|
|
20593
|
+
return `the offset set on "${labelOf(issue2.sourceId)}" is not a number of milliseconds`;
|
|
20594
|
+
case "anchor-offset":
|
|
20595
|
+
return `"${labelOf(issue2.sourceId)}" is the master (the plan follows its clock), so its offset must be 0, not ${issue2.offsetMs} ms`;
|
|
20596
|
+
case "anchor-unmeasured":
|
|
20597
|
+
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`;
|
|
20598
|
+
case "weak-match":
|
|
20599
|
+
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`;
|
|
20600
|
+
case "unmeasured":
|
|
20601
|
+
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)`;
|
|
20602
|
+
}
|
|
20603
|
+
}
|
|
19294
20604
|
var EDL_FULL_FRAME = Object.freeze({ x: 0, y: 0, w: 1, h: 1 });
|
|
19295
20605
|
function isInFrameRegion(r) {
|
|
19296
20606
|
if (!r || typeof r !== "object") return false;
|
|
@@ -19803,6 +21113,105 @@ function normalizeTranscript(input) {
|
|
|
19803
21113
|
};
|
|
19804
21114
|
}
|
|
19805
21115
|
|
|
21116
|
+
// src/camera-switch-contract.ts
|
|
21117
|
+
var CAMERA_SWITCH_DEFAULTS = Object.freeze({
|
|
21118
|
+
/** The shortest shot; a shorter turn (an interjection) holds the shot. */
|
|
21119
|
+
minShotMs: 2500,
|
|
21120
|
+
/** Cut this long before the new speaker starts. */
|
|
21121
|
+
leadMs: 200,
|
|
21122
|
+
/** With a `wide` camera: break to it after this long on one camera. */
|
|
21123
|
+
maxShotMs: 2e4,
|
|
21124
|
+
/** With a `wide` camera: every N-th cut goes to the wide (0 = off). */
|
|
21125
|
+
wideEvery: 0,
|
|
21126
|
+
/** Overlapping speech → a side-by-side / stacked layout hint. */
|
|
21127
|
+
layoutHints: false
|
|
21128
|
+
});
|
|
21129
|
+
var CAMERA_SWITCH_CREDIT_ID = "camera-switch";
|
|
21130
|
+
var parseMaybe = (raw) => {
|
|
21131
|
+
if (typeof raw !== "string") return raw;
|
|
21132
|
+
try {
|
|
21133
|
+
return JSON.parse(raw);
|
|
21134
|
+
} catch {
|
|
21135
|
+
return void 0;
|
|
21136
|
+
}
|
|
21137
|
+
};
|
|
21138
|
+
function transcriptSpeakerLabels(transcript) {
|
|
21139
|
+
const words = parseMaybe(transcript)?.words;
|
|
21140
|
+
if (!Array.isArray(words)) return [];
|
|
21141
|
+
const seen = /* @__PURE__ */ new Set();
|
|
21142
|
+
for (const w of words) {
|
|
21143
|
+
const s = w?.speaker;
|
|
21144
|
+
if (typeof s === "string" && s && !seen.has(s)) seen.add(s);
|
|
21145
|
+
}
|
|
21146
|
+
return [...seen];
|
|
21147
|
+
}
|
|
21148
|
+
function cameraSwitchCameras(edl) {
|
|
21149
|
+
const sources = parseMaybe(edl)?.sources;
|
|
21150
|
+
if (!Array.isArray(sources)) return [];
|
|
21151
|
+
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 } : {} }));
|
|
21152
|
+
}
|
|
21153
|
+
var CAMERA_SWITCH_BOUNDS = Object.freeze({
|
|
21154
|
+
minShotMs: Object.freeze({ min: 500, max: 6e4 }),
|
|
21155
|
+
leadMs: Object.freeze({ min: 0, max: 5e3 }),
|
|
21156
|
+
maxShotMs: Object.freeze({ min: 0, max: 6e5 }),
|
|
21157
|
+
wideEvery: Object.freeze({ min: 0, max: 20 })
|
|
21158
|
+
});
|
|
21159
|
+
var CAMERA_SWITCH_NAME_MAX = 80;
|
|
21160
|
+
function clampCameraSwitchSetting(key, value) {
|
|
21161
|
+
if (typeof value !== "number" || !Number.isFinite(value)) return void 0;
|
|
21162
|
+
const { min, max } = CAMERA_SWITCH_BOUNDS[key];
|
|
21163
|
+
return Math.min(max, Math.max(min, Math.round(value)));
|
|
21164
|
+
}
|
|
21165
|
+
function cleanSpeakerNames(raw) {
|
|
21166
|
+
if (!raw || typeof raw !== "object" || Array.isArray(raw)) return {};
|
|
21167
|
+
const out = {};
|
|
21168
|
+
for (const [label, name] of Object.entries(raw)) {
|
|
21169
|
+
const trimmed2 = typeof name === "string" ? name.trim() : "";
|
|
21170
|
+
if (label && trimmed2) out[label] = trimmed2.slice(0, CAMERA_SWITCH_NAME_MAX);
|
|
21171
|
+
}
|
|
21172
|
+
return out;
|
|
21173
|
+
}
|
|
21174
|
+
function cameraSwitchEdlProblem(edl) {
|
|
21175
|
+
const v = parseMaybe(edl);
|
|
21176
|
+
if (!v || typeof v !== "object" || Array.isArray(v)) return "camera-switch: `edl` must be one edit (an EDL object).";
|
|
21177
|
+
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).";
|
|
21178
|
+
if (!Array.isArray(v.sources) || !Array.isArray(v.segments)) return "camera-switch: `edl` needs `sources` and `segments`.";
|
|
21179
|
+
if (v.segments.length === 0) return "camera-switch: `edl` has no segments.";
|
|
21180
|
+
const num2 = (x) => typeof x === "number" && Number.isFinite(x) ? x : void 0;
|
|
21181
|
+
for (const [i, row] of v.segments.entries()) {
|
|
21182
|
+
const seg = row;
|
|
21183
|
+
const inMs = num2(seg?.inMs), outMs = num2(seg?.outMs);
|
|
21184
|
+
if (inMs === void 0 || outMs === void 0 || !(outMs > inMs)) return `camera-switch: segment ${i} needs a numeric inMs < outMs.`;
|
|
21185
|
+
}
|
|
21186
|
+
if (v.clock === "output") return "camera-switch: the edit must be on the master clock (an edit-plan EDL), not a rendered output's.";
|
|
21187
|
+
return null;
|
|
21188
|
+
}
|
|
21189
|
+
function defaultSpeakerMap(labels, cameraIds, existing = {}) {
|
|
21190
|
+
const out = {};
|
|
21191
|
+
labels.forEach((label, i) => {
|
|
21192
|
+
if (Object.prototype.hasOwnProperty.call(existing, label)) {
|
|
21193
|
+
const kept = existing[label];
|
|
21194
|
+
if (typeof kept === "string") out[label] = kept;
|
|
21195
|
+
return;
|
|
21196
|
+
}
|
|
21197
|
+
if (i < cameraIds.length) out[label] = cameraIds[i];
|
|
21198
|
+
});
|
|
21199
|
+
return out;
|
|
21200
|
+
}
|
|
21201
|
+
function cameraSwitchSettingsPayload(data, edl, transcript) {
|
|
21202
|
+
const existing = data.speakerMap && typeof data.speakerMap === "object" ? data.speakerMap : {};
|
|
21203
|
+
const out = {
|
|
21204
|
+
speakerMap: defaultSpeakerMap(transcriptSpeakerLabels(transcript), cameraSwitchCameras(edl).map((c) => c.id), existing),
|
|
21205
|
+
speakerNames: cleanSpeakerNames(data.speakerNames),
|
|
21206
|
+
layoutHints: data.layoutHints === true
|
|
21207
|
+
};
|
|
21208
|
+
for (const key of Object.keys(CAMERA_SWITCH_BOUNDS)) {
|
|
21209
|
+
const v = clampCameraSwitchSetting(key, data[key]);
|
|
21210
|
+
if (v !== void 0) out[key] = v;
|
|
21211
|
+
}
|
|
21212
|
+
return out;
|
|
21213
|
+
}
|
|
21214
|
+
|
|
19806
21215
|
// src/edit-plan-contract.ts
|
|
19807
21216
|
var EDIT_PLAN_MODES = ["tighten", "clips", "chapters"];
|
|
19808
21217
|
var EDIT_PLAN_TIERS = ["economy", "standard", "premium"];
|
|
@@ -19840,6 +21249,6 @@ function unwrapEditPlanOutput(outputData) {
|
|
|
19840
21249
|
return rest;
|
|
19841
21250
|
}
|
|
19842
21251
|
|
|
19843
|
-
export { ACCESS_LEVELS, ACTIVE_SCENE_HELPERS, ADVANCED_MODE_UNAVAILABLE_REASON, AGGREGATEABLE_TYPES, AGGREGATE_LANE_SOURCE_TYPES, AI_AVATAR_DURATION_BUCKETS, AI_AVATAR_MAX_AUDIO_SEC, AI_AVATAR_MAX_DURATION_SEC, AI_AVATAR_RESERVE_IDS, AI_WRITER_PROVIDERS, ALA_CARTE_BOARDS, ALL_CAPTION_STYLES, ANIMALS, ANIMAL_SUBCATEGORY_LABELS, ANIMAL_SUBCATEGORY_ORDER, ASPECT_RATIO_DIMENSIONS, AUDIO_ADDON_PROVIDERS, AUDIO_CROSSFADE_CURVES, AUDIO_CROSSFADE_CURVE_IDS, AUDIO_FX_PRESETS, AUDIO_FX_PRESET_LABELS, AUDIO_FX_PRESET_SET, AUDIO_FX_REVERB_PRESETS, AUDIO_PRODUCER_TYPES, AddBRollResultSchema, AnchorSceneStyleResultSchema, AssetRefSchema, AuditImagesResultSchema, AuditImagesShotEntrySchema, AuditPromptIssueSchema, AuditPromptResultSchema, AvatarPayloadError, BOARD_TO_ASSET_TYPE, BOARD_TO_COLUMN, BOARD_VARIANTS, BridgeToNextSceneInputSchema, BridgeToNextSceneResultSchema, CAPTION_LEVER_BOUNDS, CAPTION_LOOKS, CAPTION_LOOK_IDS, CAPTION_MAX_WORDS_PER_LINE_MAX, CAPTION_MAX_WORDS_PER_LINE_MIN, CATEGORY_DURATION_DEFAULTS, CHARACTER_ASPECT_DEFAULTS, CHARACTER_ASPECT_OPTIONS, CHARACTER_ASSET_TYPES, CHARACTER_ASSET_VARIANTS, CHARACTER_ATTACH_COLUMNS, CHARACTER_FACETS, CHARACTER_FACET_IDS, CHARACTER_LORA_TRAINING_JOB_TYPE, CHARACTER_MOTION_PROVIDERS, CHARACTER_PICKER_DISPLAY_ORDER, CHARACTER_REFERENCE_PHOTO_KINDS, CHARACTER_STYLES, CHARACTER_VARIANT_ASSET_BUCKETS, CHAT_ENABLED_STAGES, CHAT_STAGES, CHAT_TURN_CAPS, CHAT_WIRED_STAGES, CINEMATIC_DEFAULT_DURATION_SEC, CINEMATIC_DEFAULT_RESOLUTION, CINEMATIC_MAX_DURATION_SEC, CINEMATIC_MAX_LOOKS, CINEMATIC_MAX_REFERENCE_IMAGES, CINEMATIC_MAX_REFERENCE_VIDEOS, CINEMATIC_MIN_DURATION_SEC, CINEMATIC_MIN_LOOKS, CINEMATIC_PROMPT_MAX, CINEMATIC_RESERVE_IDS, COLLABORATOR_ROLES, COLLECT_IN_HANDLE, COMBINE_TRANSITIONS, COMBINE_TRANSITION_GROUP_LABELS, COMBINE_TRANSITION_GROUP_ORDER, COMBINE_TRANSITION_IDS, COMPOSER_PLAN_FIELDS, COMPOSER_PLAN_MAP, CONTENT_TYPES_BY_PLATFORM, CREATURE_ATTACH_COLUMNS, CREDIT_BASE_USD, CREDIT_ROUNDING_RESOLUTION, CastCoverageCriticVerdictSchema, CharacterImageCriticVerdictSchema, CharacterMetadataSchema, ChatTurnResponseSchema, CriticIssueSchema, DEFAULT_AUDIO_CROSSFADE_CURVE_ID, DEFAULT_CAPTION_LOOK, DEFAULT_CARRIED_FRACTION, DEFAULT_CHARACTER_ANGLE_COUNT, DEFAULT_CHARACTER_EXPRESSION_COUNT, DEFAULT_CHARACTER_FACET, DEFAULT_FRAME_DELIVERY, DEFAULT_FRAME_FIT, DEFAULT_LABEL_BY_SOURCE, DEFAULT_LOCATION_USAGE_MODE, DEFAULT_OVERLAY_QR, DEFAULT_OVERLAY_SHAPE, DEFAULT_OVERLAY_TEXT, DEFAULT_PANEL_COUNT, DEFAULT_REF_IMAGE_MAX, DEFAULT_SECTIONS, DEFAULT_SUBTITLE_LOOK, DEFAULT_SUNO_MODEL, DEFAULT_TEMPLATE_CATEGORY, DEFAULT_TRANSCRIBE_NODE_PROVIDER, DEFAULT_TRANSCRIBE_PROVIDER, DEFAULT_USAGE_MODE, DEFAULT_VIDEO_ANALYSIS_MODEL, DEFAULT_VIDEO_ANALYSIS_TIER, DEFAULT_VIDEO_CLIP_COST, DEFAULT_VIDEO_DURATION_SEC, DEFAULT_VIDEO_OVERLAY_LAYER, DEFAULT_VIDEO_PROVIDER, DEFAULT_VOICE_CHANGER_MODEL, DEFAULT_VOICE_DESIGN_MODEL, DETAIL_VARIANTS, DURATION_PRICED_PROVIDERS, DYNAMIC_PRODUCER_TYPES, DetectionResultSchema, EDIT_PLAN_BASE_CREDIT_ID, EDIT_PLAN_BUCKET_MINUTES, EDIT_PLAN_DEFAULT_CLIP_COUNT, EDIT_PLAN_MAX_CLIP_COUNT, EDIT_PLAN_MAX_MINUTES, EDIT_PLAN_MODES, EDIT_PLAN_TIERS, EDL_FULL_FRAME, EDL_SOURCE_ROLES, EDL_TARGET_ASPECTS, EDL_VERSION, EFFORT_TIER_BUMP, EMOTIONAL_BEAT, ENTITY_ASPECT_DEFAULTS, ENTITY_BUCKET_FIELDS, ENTITY_DB_ID_FIELD, ENTITY_IMAGE_HANDLE_TYPES, ENTITY_KIND_SCALAR_FIELDS, ENTITY_NAME_FIELD, ENTITY_NODE_KINDS, ENTITY_SCALAR_FIELDS, ENTITY_SECTIONS, ENTITY_STATUSES, ENTITY_TABLE, ENTITY_TOOL_RETRY_CAP, ENTITY_TYPES, EXECUTION_DATA_KEYS, EXECUTION_GRAPH_COMPOSED_PARAMETER_TYPES, EXTEND_VIDEO_PROVIDERS, EntityMetadataSchema, EntityRejectInputSchema, EntityStaleEventSchema, EntityStateChangeEventSchema, FACE_SWAP_PROVIDERS, FAL_LIP_SYNC_PROVIDERS, FAN_OUT_EACH_TYPES, FEATURED_ENTITIES, FILM_BASE_CREDITS, FLEXIBLE_INPUT_LIP_SYNC_PROVIDERS, FLUX2_RES_MP, FLUX_LORA_CHARACTER_MODEL_ID, FRAME_DELIVERIES, FRAME_DELIVERY_BY_PROVIDER, FRAME_FITS, FRAME_FIT_STRETCH_TOLERANCE, FRAME_MODE_ADAPTIVE_ONLY_ASPECT, FRAME_TARGET_HANDLES, FREECUT_EXPORT_COMPLETE, FREECUT_EXPORT_PROGRESS, FREECUT_READY, FREECUT_REQUEST_IMPORT, FURNITURE, FURNITURE_SUBCATEGORY_LABELS, FURNITURE_SUBCATEGORY_ORDER, FixContinuityInputSchema, FixContinuityResultSchema, GEMINI_OMNI_PROVIDERS, GENERATE_TEXT_DELIMITER, GLOBAL_MAX_DURATION_SECONDS, GRANTED_ACCESS, GROUP_HANDLE_PREFIX, GUIDANCE_SCALE_SUPPORT, GVP_ANCHOR_CHOICES, GVP_DEFAULT_PROVIDER, GVP_END_FRAME_PROVIDERS, GVP_EXTEND_PROVIDERS, GVP_SUPPORTED_PROVIDERS, GenerateMotionInputSchema, GenerateMotionResultSchema, HANDLE_PORT_SEPARATOR, HELPERS_SHIPPED_IN_1B3, HIGH_QUALITY_PROVIDERS, HINT_EXEMPT_PARAMETER_TYPES, I2I_MASK_SUPPORT, I2I_STRENGTH_SUPPORT, IDEOGRAM_PROVIDERS, IMAGE_ASPECT_RATIO_VALUES, IMAGE_CRITIC_LEAF_MODES, IMAGE_CRITIC_MAX_RETRIES, IMAGE_CRITIC_METADATA_KEYS, IMAGE_CRITIC_MIN_ADHERENCE_SCORE, IMAGE_CRITIC_MODES, IMAGE_CRITIC_UNRESOLVABLE, IMAGE_EDIT_PROVIDERS, IMAGE_GEN_PROVIDERS, IMAGE_I2I_PROVIDERS, IMAGE_MASK_MODE, IMAGE_OVERLAY_BASE_CREDITS, IMAGE_OVERLAY_VARIANT_CREDITS, IMAGE_PROMPT_MAX, IMAGE_REF_TYPES, IMAGE_TO_VIDEO_PROVIDERS, INPUT_FIELD_MAP2 as INPUT_FIELD_MAP, INPUT_NODE_TYPES, INSTAGRAM_ANALYSIS_CREDIT_ID, INSTAGRAM_CAROUSEL_MAX_ITEMS, INSTAGRAM_CAROUSEL_MIN_ITEMS, INSTAGRAM_HOSTS, INSTAGRAM_SCRAPE_CREDIT_COSTS, INSTAGRAM_SCRAPE_DEFAULT_COUNT, INSTAGRAM_SCRAPE_FALLBACK_CREDIT_ID, INSTAGRAM_SCRAPE_MAX_COUNT, INSTAGRAM_SCRAPE_MAX_SOURCES, INSTAGRAM_SCRAPE_MAX_TARGET_LENGTH, INSTAGRAM_SCRAPE_MODES, INSTAGRAM_SCRAPE_NODE_TYPE, INSTAGRAM_SCRAPE_PERIODS, INSTAGRAM_SCRAPE_TIERS, ITER_CLONE_PATTERN, ImageCriticIssueSchema, ImageCriticResultSchema, ImageCriticVerdictSchema, ImprovePromptInputSchema, ImprovePromptResultSchema, KEYFRAME_CREDITS_PER_SHOT, KINETIC_CAPTION_STYLES, KINETIC_ONLY_CAPTION_LEVER_KEYS, LANGUAGES, LEGACY_LOTTIE_HOST_REMAP, LEGACY_TEMPLATE_CATEGORIES, LIP_SYNC_DURATION_BUCKETS, LIP_SYNC_MAX_AUDIO_SECONDS, LIP_SYNC_PROVIDERS, LLM_FEATURE_DEFAULTS, LLM_MODALITY_CAPS, LLM_MODELS, LLM_MODEL_IDS, LLM_REASONING_EFFORTS, LLM_ROUTE_DEFAULTS, LLM_TEXT_INPUT_MAX, LLM_VENDOR_LABELS, LLM_VENDOR_ORDER, LOCATION_ASSET_TYPES, LOCATION_ASSET_VARIANTS, LOCATION_ATMOSPHERE_PROVIDERS, LOCATION_ATTACH_COLUMNS, LOCATION_BUCKET_TO_CATALOG_ID, LOCATION_PRESET_TO_CATALOG, LOCATION_REFERENCE_PHOTO_KINDS, LOCATION_REFERENCE_PHOTO_KIND_LABELS, LOCATION_USAGE_MODES, LOTTIE_OVERLAY_CATALOG, LOTTIE_SLOT_FIELD_PREFIX, LocationImageCriticVerdictSchema, LocationMetadataSchema, LocationsCoverageCriticIssueSchema, LocationsCoverageCriticVerdictSchema, MAX_CUSTOM_ENTRIES_PER_BOARD, MAX_IMAGE_PROMPT_CHARS_BY_PROVIDER, MAX_LOCATION_VARIANTS, MAX_NEGATIVE_PROMPT_CHARS_BY_PROVIDER, MAX_PANELS_PER_SHEET, MAX_TTS_CHARS_BY_PROVIDER, MAX_VIDEO_PROMPT_CHARS_BY_PROVIDER, MEMBER_STATUSES, META_ADS_ADVERTISER_MAX_RESULTS, META_ADS_ANALYSIS_CREDITS_PER_AD, META_ADS_ANALYSIS_CREDIT_ID, META_ADS_ANALYSIS_FOCUS_MAX, META_ADS_ANALYSIS_TIERS, META_ADS_FORMATS, META_ADS_NODE_MODES, META_ADS_PLATFORMS, META_ADS_SCRAPE_COUNT_OPTIONS, META_ADS_SCRAPE_CREDIT_COSTS, META_ADS_SCRAPE_DEFAULT_COUNT, META_ADS_SCRAPE_DEFAULT_COUNTRY, META_ADS_SCRAPE_FALLBACK_CREDIT_ID, META_ADS_SCRAPE_MAX_COUNT, META_ADS_SCRAPE_MAX_QUERY_LENGTH, META_ADS_SCRAPE_MAX_SOURCES, META_ADS_SCRAPE_MODES, META_ADS_SCRAPE_NODE_TYPE, META_ADS_SCRAPE_PERIODS, META_ADS_SCRAPE_STATUSES, META_ADS_SCRAPE_TIERS, MINIMAX_H3_DEFAULT_RESOLUTION, MINIMAX_H3_PROVIDERS, MODELS_WITH_REFERENCE_IMAGE_SUPPORT, MODEL_CATALOG, MODEL_KINDS, MODEL_PARAM_NODE_TYPES, MODEL_RECOMMENDATIONS, MODIFY_IMAGE_PROVIDERS, MOTION_COLUMN, MOTION_TRANSFER_PROVIDERS, MUSIC_PROVIDERS, MatchCutVerdictSchema, NATIVE_ADAPTIVE_ASPECT, NATIVE_NEGATIVE_PROMPT_MODELS, NATIVE_NEGATIVE_VIDEO_PROVIDERS, NEGATIVE_PROMPT_MAX, NODARO_IMPORT_FILES, NODARO_LOAD_TIMELINE, NODARO_LOAD_VIDEO, NODARO_RESET_PROJECT, NODE_DEFAULT_TYPES, NODE_MAPPABLE_FIELDS, NODE_PRESET_EXPORT_KIND, NODE_REF_PATTERN, NON_EN_LOCALE_IDS, NON_PROMPT_TEXT_LANES, NO_SPLIT_DELIMITER, OBJECT_ASPECT_DEFAULTS, OBJECT_ASPECT_OPTIONS, OBJECT_ASSET_TYPES, OBJECT_ASSET_VARIANTS, OBJECT_ATTACH_COLUMNS, OBJECT_MOTION_PROVIDERS, OBJECT_PICKER_NODE_TYPES, ORG_ERROR_CODES, ORG_KINDS, ORG_ROLES, ORG_STATUSES, OUTPUT_BEARING_NODE_STATUSES, OUTPUT_FIELD_MAP, OUTPUT_FORMATS, OVERLAY_ANCHORS, OVERLAY_FONTS, OVERLAY_FONT_IDS, OVERLAY_IMAGE_MASKS, OVERLAY_LAYER_KINDS, OVERLAY_MAX_VARIANTS, OVERLAY_PLATFORMS, OVERLAY_PLATFORM_IDS, OVERLAY_SHAPES, OVERLAY_TEXT_ALIGNS, OVERLAY_VARIANT_HANDLE_PREFIX, ObjectMetadataSchema, OptimizeForModelInputSchema, OptimizeForModelResultSchema, OrgSettingsSchema, PARAMETER_NODE_TYPES, PASSTHROUGH_TYPES, PAYG_RETENTION_DAYS, PER_FORMAT_DURATION_BOUNDS, PICKER_TO_COMBINE_TRANSITION, PIPELINE_ACTIVATION_MODES, PIPELINE_FORMATS, PIPELINE_HARD_TIMEOUT_MS, PIPELINE_MODEL_STAGES, PIPELINE_MODES, PIPELINE_OUTPUT_RESOLUTIONS, PIPELINE_PINNABLE_IMAGE_MODELS, PIPELINE_PINNABLE_SCRIPT_LLMS, PIPELINE_PINNABLE_VIDEO_MODELS, PIPELINE_STAGE_NAMES, PIPELINE_STAGE_TIMEOUT_MS, PIPELINE_TYPES, PLACEHOLDER_CHARACTER_NAME, PLATFORM_LABELS, PLATFORM_SPECS, PRESET_APPLY_CLEAR_KEYS, PRESET_EXCLUDED_KEYS, PRESET_LABELS, PRESET_SETTING_KEYS, PRICING_DEFAULT_DURATION_SEC, PRICING_DEFAULT_RESOLUTION, PRO3D_RENDER_ASPECT_RATIOS, PRO3D_RENDER_CREDIT_ID, PRO3D_RENDER_DEFAULT_ENGINE, PRO3D_RENDER_DEFAULT_QUALITY, PRO3D_RENDER_DEFAULT_REPAIR_PASSES, PRO3D_RENDER_DEFAULT_STYLE, PRO3D_RENDER_ENGINES, PRO3D_RENDER_LABEL, PRO3D_RENDER_LIMITS, PRO3D_RENDER_MAX_REPAIR_PASSES, PRO3D_RENDER_MIN_REPAIR_PASSES, PRO3D_RENDER_NODE_TYPE, PRO3D_RENDER_PROMPT_MAX, PRO3D_RENDER_QUALITY_PROFILES, PRO3D_RENDER_SOURCE_KINDS, PRO3D_RENDER_STYLES, PROJECTED_TRIGGER_NODE_TYPES, PROMPT_HARD_CEILING, PROMPT_PREFIX_KEY, PROMPT_SUFFIX_KEY, PROVIDER_DIRECTIVE_DEFAULTS, PROVIDER_PLACEHOLDER_PREFIX, PipelineCompletedEventSchema, PipelineConfigSchema, PipelineDriftSummarySchema, PipelineEditorDecisionsReadyEventSchema, PipelineForkedEventSchema, PipelineInputSchema, PipelineMusicReadyEventSchema, PipelineStageNameSchema, PipelineStageStatusSchema, PipelineStateSchema, PipelineStatusSchema, PresetSettingsSchema, QA_CHECK_PROVIDERS, REASONING_OUTPUT_FLOOR, REDUCE_STRATEGIES, REDUCE_STRATEGY_IDS, REFERENCE_BOARD_PROVIDERS, REFERENCE_BOARD_TEMPLATES, REFERENCE_HANDLE_MAP, REFERENCE_ROLE_PRESETS, REF_HANDLE_CATEGORY, REF_IMAGE_MAX_LIMITS, REF_TOKEN_NAMESPACE_PREFIXES, RENDERING_SPEED_SUPPORT, RENDER_VIDEO_CREDIT_ID, REPEATABLE_NODE_TYPES, REPEAT_PLACEHOLDER, REPLICATE_LIP_SYNC_PROVIDERS, RESERVED_TEMPLATE_VARS, SCENE3D_ASSERTION_RESTORED_CODE, SCENE3D_ASSET_KINDS, SCENE3D_ASSET_ROLES, SCENE3D_ASSET_ROLE_KINDS, SCENE3D_AUTHORING_ASSUMPTION_CODE, SCENE3D_AUTHORING_ENGINES, SCENE3D_BASIC_ENGINE, SCENE3D_BASIC_SCHEMA_VERSION, SCENE3D_CAMERA_TRACK_FORMAT, SCENE3D_CAMERA_TRACK_LIMITS, SCENE3D_CAMERA_TRACK_VERSION, SCENE3D_CLAY_LIGHTING_PRESETS, SCENE3D_DEFAULT_ADVANCED_ENGINE, SCENE3D_DEFAULT_DURATION_SECONDS, SCENE3D_DEFAULT_ENTITY_CAPABILITIES, SCENE3D_DEFAULT_FPS, SCENE3D_EDIT_NODE_TYPE, SCENE3D_ENTITY_CAPABILITIES, SCENE3D_ENTITY_ROLES, SCENE3D_GENERATE_NODE_TYPE, SCENE3D_GLB_EXTRAS_ALLOWLIST, SCENE3D_GLB_EXTRAS_ENTITY_ID, SCENE3D_GLB_EXTRAS_MATERIAL_ROLE, SCENE3D_GLB_EXTRAS_SUBPART_ID, SCENE3D_LIMITS, SCENE3D_PLAN_FIELD, SCENE3D_PLAN_TYPE, SCENE3D_PRIMITIVES, SCENE3D_PRIMITIVE_MATERIAL_ROLE, SCENE3D_REMEDY_AUTO_APPLIED_CODE, SCENE3D_RENDERER_ASSET_KINDS, SCENE3D_RENDER_BASE_MAX_PX, SCENE3D_RENDER_TIERS, SCENE3D_RENDER_TIER_MULTIPLIERS, SCENE3D_RENDER_XLARGE_MIN_AREA_PX, SCENE3D_REVIEW_REFUSED_CODE, SCENE3D_REVIEW_UNAVAILABLE_CODE, SCENE3D_REVIEW_UNAVAILABLE_REASONS, SCENE3D_SCHEMA_VERSION, SCENE3D_SCHEMA_VERSION_V2, SCENE3D_SUPPORTED_SCHEMA_VERSIONS, SCENE3D_V2_CONTENT_HASH_EXCLUDED, SCENE3D_V2_ENGINES, SCENE3D_V2_LIMITS, SCENE3D_V2_OVERRIDE_OPERATION_VERSION, SCENE3D_V2_PRIMITIVES, SCENE_HELPER_NAMES, SCHEDULE_EVERY_LIMITS, SCHEDULE_RULE_KINDS, SCHEDULE_TRIGGER_NODE_TYPE, SCRAPER_ACTOR_LABELS, SCRAPER_CREDIT_COSTS, SCRAPER_OUTPUT_FIELDS, SCRIPT_PROVIDERS, SEASONS, SECTION_BOARD, SECTION_KINDS, SEEDANCE_2_5_REF_LIMITS, SEEDANCE_2_CONTINUATION_REF_SEC, SEEDANCE_2_EXTEND_STITCH, SEEDANCE_2_PROVIDERS, SEEDANCE_2_R2V_MAX_AUDIO_SEC_BY_PROVIDER, SEEDANCE_2_R2V_MIN_REF_VIDEO_SEC, SEEDANCE_2_REF_LIMITS, SEEDANCE_LIP_SYNC_PROVIDERS, SEEDANCE_VIDEO_EDIT_PROVIDERS, SEEDANCE_VIDEO_EDIT_SHAPE, SEED_SUPPORT, SEPARATOR_DISPLAY, SEPARATOR_PRESETS, SHEET_ASPECTS, SHEET_BACKGROUNDS, SHEET_PRESETS, SHEET_SKINS, SHEET_TYPES, SHORT_FILM_ANGLE_COUNT, SHORT_FILM_EXPRESSION_COUNT, SHORT_FILM_VARIANT_THRESHOLD_SEC, SLOT_TOKEN_RE, SMART_CUT_WINDOW_DEFAULT, SMART_CUT_WINDOW_MAX, SMART_CUT_WINDOW_MIN, SOCIAL_POST_NODE_TYPES, SOCIAL_VIDEO_HOSTS, SPEAKER_EMPHASIS_STYLES, SPEAKER_LAYOUTS, SPEAKER_LAYOUT_IDS, SPEAKER_SWITCHES, SPEAKER_SWITCH_IDS, STAGE_PATCH_SCHEMA, STATIC_CAPTION_STYLES, STRUCTURAL_SECTIONS, STRUCTURED_VISION_MODELS, STUDIO_DEPENDENT_FRAMES_CAPABILITY, STUDIO_SHOT_TRANSIENT_KEYS, STUDIO_TRANSIENT_KEYS, SUBMISSION_STATUSES, SUNO_ACTIVE_MODELS, SUNO_ADD_TRACK_MODELS, SUNO_DURATION_MODELS, SUNO_FIELD_HANDLE_FIELDS, SUNO_HARD_CEILING, SUNO_LEGACY_MODELS, SUNO_MODELS, SUNO_SELECT_OPERATIONS, SUNO_TEXT_MAX, SUNO_TITLE_MAX, SUNO_TRACK_SOURCE_TYPES, SUNO_VERSION_CREDIT_KEYS, SUNO_VERSION_PRICED_OPERATIONS, SUPPORTED_FONT_NAMES, SURROUND_DIRECTIONS, SWITCHX_BLOCK_FRAMES, SWITCHX_FRAME_TIERS, SceneHelperNameSchema, SceneInputModeSchema, SceneMetadataSchema, SceneNodeDataSchema, SceneSpecSchema, ScriptCriticVerdictSchema, SequenceExecutionRequiredError, ShotSpecSchema, ShowrunnerPlanSchema, StageAwaitingSubGateEventSchema, StoryboardCohesionCriticVerdictSchema, StyleDirectivesSchema, SubGateNameSchema, T2I_TO_I2I_VARIANT, TASK_CHAINED_EDIT_PROVIDERS, TELEGRAM_ACCOUNT_TRIGGER_NODE_TYPE, TELEGRAM_TRIGGER_NODE_TYPE, TEMPLATE_CATEGORIES, TEXT_TO_AUDIO_PROVIDERS, TEXT_TO_VIDEO_PROVIDERS, TIER_MAX_PIPELINE_COST_CREDITS, TIER_PIPELINE_PARALLELISM, TILT_CARRIED_FRACTION, TOPAZ_DEFAULT_UPSCALE_FACTOR, TOPAZ_UPSCALE_FACTORS, TRANSCRIBE_LANES, TRANSCRIBE_PROVIDERS, TRANSCRIBE_PROVIDER_CAPABILITIES, TRANSIENT_RUNTIME_KEYS, TTS_PROVIDERS, TTS_TEXT_MAX, TWO_K_RESOLUTION_PROVIDERS, TransitionTypeSchema, UPSCALE_IMAGE_PROVIDERS, USAGE_GROUP_BYS, USAGE_MODES, VARIABLES_HANDLE_ID, VARIABLE_PRICING_MODELS, VEHICLES, VEHICLE_SUBCATEGORY_LABELS, VEHICLE_SUBCATEGORY_ORDER, VEO_PROVIDERS, VIDEO_ANALYSIS_AUDIO_MODES, VIDEO_ANALYSIS_BUCKET_CREDITS, VIDEO_ANALYSIS_CLIP_TRANSITIONS_IN, VIDEO_ANALYSIS_DEFAULT_VARIATION, VIDEO_ANALYSIS_DURATION_BUCKETS, VIDEO_ANALYSIS_DURATION_TOLERANCE_SEC, VIDEO_ANALYSIS_ENTITY_SOURCES, VIDEO_ANALYSIS_FACELESS_ANGLES, VIDEO_ANALYSIS_LEGACY_MODELS, VIDEO_ANALYSIS_LLM_MODELS, VIDEO_ANALYSIS_MAX_DURATION_SEC, VIDEO_ANALYSIS_MAX_SCENE_SEC, VIDEO_ANALYSIS_MAX_VARIATIONS, VIDEO_ANALYSIS_MIXED_TIERS, VIDEO_ANALYSIS_SHOT_ANGLES, VIDEO_ANALYSIS_SPEED_EFFECTS, VIDEO_ANALYSIS_STORY_JUMPS, VIDEO_ANALYSIS_TEXT_KINDS, VIDEO_ANALYSIS_TIERS, VIDEO_ANALYSIS_TIER_LABELS, VIDEO_ANALYSIS_TIER_ORDER, VIDEO_ANALYSIS_TIMES_OF_DAY, VIDEO_ANALYSIS_TRANSITIONS, VIDEO_ANALYSIS_VARIATION_SLUGS, VIDEO_ANALYSIS_VISUAL_EFFECTS, VIDEO_ANALYSIS_WINDOW, VIDEO_AUDIO_CAPABILITY, VIDEO_AUDIT_BUCKET_CREDITS, VIDEO_CLIP_CREDITS, VIDEO_CRITIC_CREDITS_PER_SHOT, VIDEO_CRITIC_FRAME_MODES, VIDEO_CRITIC_MAX_RETRIES, VIDEO_CRITIC_METADATA_KEYS, VIDEO_CRITIC_MIN_ADHERENCE_SCORE, VIDEO_DURATION_AUTO, VIDEO_DURATION_TIERS, VIDEO_GEN_COLLAPSED_T2V_IDS, VIDEO_GEN_PROVIDERS, VIDEO_INPUT_LIP_SYNC_PROVIDERS, VIDEO_LINK_TOLERANT_CONSUMER_TYPES, VIDEO_MODEL_CAPS, VIDEO_MODE_ALIASES, VIDEO_ONLY_PARAMETER_NODE_TYPES, VIDEO_OUTPUT_CANVAS, VIDEO_OVERLAY_ANIMATION_MIN_SCALE, VIDEO_OVERLAY_ANIMATION_SEC, VIDEO_OVERLAY_BADGE_INSET, VIDEO_OVERLAY_BADGE_WIDTH, VIDEO_OVERLAY_BOUNDS, VIDEO_OVERLAY_BOX_FIELDS, VIDEO_OVERLAY_CORNERS, VIDEO_OVERLAY_DEFAULT_BACKGROUND, VIDEO_OVERLAY_ERROR_CODES, VIDEO_OVERLAY_FITS, VIDEO_OVERLAY_HANDLE_IDS, VIDEO_OVERLAY_LAYER_PLAN_HANDLE, VIDEO_OVERLAY_MAX_COMPOSITION_KEY_LENGTH, VIDEO_OVERLAY_MAX_LAYERS, VIDEO_OVERLAY_MAX_TIME_SEC, VIDEO_OVERLAY_MAX_TOTAL_LAYER_BYTES, VIDEO_OVERLAY_OUTPUT_ASPECTS, VIDEO_OVERLAY_PRESETS, VIDEO_OVERLAY_PRESET_IDS, VIDEO_OVERLAY_WARNING_CODES, VIDEO_PRODUCER_TYPES, VIDEO_PROMPT_MAX, VIDEO_PROVIDERS_REQUIRING_IMAGE, VIDEO_PROVIDERS_WITHOUT_DISPATCH, VIDEO_REF_LIMITS_BY_PROVIDER, VIDEO_REF_VIDEO_DURATION_LIMITS, VIDEO_TO_VIDEO_NODE_PROVIDERS, VIDEO_TO_VIDEO_PROVIDERS, VIDEO_UPSCALE_PROVIDERS, VIDEO_UTIL_PRICING, VIDEO_VARIABLE_PRICING, VOICE_CHANGER_MODELS, VOICE_CHANGER_MODEL_IDS, VOICE_DESIGN_MODELS, ValidateMatchCutInputSchema, ValidateMatchCutResultSchema, VideoCriticVerdictSchema, VoiceMatchSchema, WAN_3_DEFAULT_RESOLUTION, WAN_3_PROVIDERS, WARDROBE_VARIANTS, WEAPONS, WEAPON_SUBCATEGORY_LABELS, WEAPON_SUBCATEGORY_ORDER, WEBHOOK_TRIGGER_NODE_TYPE, WORKFLOW_VISIBILITIES, WORKSPACE_HEADER, WORKSPACE_HEADER_LOWER, WORKSPACE_ROLES, WorkspaceSettingsSchema, YOUTUBE_HOSTS, adCreativeAnalysisFrom, aggregateByType, aiAvatarReserveCreditId, alignedFieldList, analyzedSceneSchema, applyDefaultVideoSelection, applyHandleInputOverride, applyRange, applyRangeIndices, applyScene3DEditOperations, applyScene3DV2EditOperations, applySlots, applyVideoAudioToggle, applyVideoNegativePrompt, applyVideoOverlayPreset, asEditPlanMode, asEditPlanTier, aspectRatioFromDims, aspectRatioOptionsByKind, aspectRatioToNumber, assembleNarratedVideoCredits, assembleVideoOverlayRequest, assertCanvasExecutionAllowed, autoStrokeWidth, availableReasoningEfforts, bucketSecondsFromAuditCreditId, bucketSecondsFromCreditId, buildBoardPrompt, buildChildrenByParent, buildConditionVariables, buildCreditModelIdentifier, buildEditPlanCreditId, buildExpressionFromVisual, buildFeedMaps, buildInstagramScrapeCreditId, buildLipSyncCreditId, buildLlmCreditIdentifier, buildMetaAdsScrapeCreditId, buildModelMenu, buildModelTree, buildMotionCreditModelIdentifier, buildNodePresetExport, buildPanelPrompt, buildPro3DRenderSource, buildProgressSegments, buildRangeLabel, buildScraperCreditId, buildVideoAnalysisCreditId, buildVideoAuditCreditId, buildVideoCreditModelIdentifier, calculateCombinedProgress, calculateMonetizationMarkup, calculateMonetizedCost, calculateProgress, canonicalScene3DPlanV2Json, canonicalVarName, captionRoutesToRemotion, centreCropToAspect, characterBoardItems, characterBucketDisplayRank, characterMentionSlug, characterMentionableAssetArrays, characterSheetRefItems, characterVariantAssetArrays, checkRefVideoDurations, cinematicCreditId, clampCinematicDuration, clampEditPlanClipCount, clampInstagramFeaturedIndex, clampMetaAdsFeaturedIndex, clampSmartCutWindow, classifyCreativeFormat, classifyRefToken, cleanOrphanedItems, clearImageCriticMetadata, clearVideoCriticMetadata, clearWiredVideoOverlayImageUrls, clipLookSchema, collectAncestorRefs, combineSameLabelRefs, compactWithRows, computeAggregateLanes, computeFrameFitPlan, computeScene3DPlanV2ContentHash, countRefModalityEdges, creditRangesAll, creditsToUsd, decodeProviderItem, defaultCarriedFraction, defaultResolutionFor, defaultRoleForSource, defaultVideoAspectRatio, deriveLinkedFields, deriveLottieSlotFields, deriveSlotRefs, describeEdgeBehavior, describeMaskRegion, describeNodeAdjustments, describeSlotControl, detectVideoLinkPlatform, dropUnknownBindings, dropUnknownSpeakers, durationsByMode, editPlanBucketMinutes, editPlanSourceDurationSec, edlDurationMs, effectiveReasoningEffort, encodeProviderItem, ensureLocaleCatalogLoaded, entityHydrationColumns, entityMentionSlug, entityMentionSlugForRef, entityScalarFields, entitySlotSchema, entryMatchesQuery, estimateCombineVideosCredits, estimateFilmCredits, estimateLoopTrimAddonCredits, estimateLoopVideoCredits, estimateScriptDurationSec, estimateSheetCost, estimateTrimVideoCredits, evaluateCondition, evaluateConditionGroup, evaluateJsonExpression, evaluateJsonPath, expandExtraRefsToConnectedReferences, expandItemsWithRepeat, expandVideoOverlayLayer, expandVideoOverlayPresets, extractAllGeneratedResults, extractCharacterLoraFields, extractGeneratedJsonAsList, extractPresetData, extractReferencedLabels, extractVideoDurationFromNode, fanOutTextFeedsPrompt, featuredInstagramOutputs, featuredMetaAdOutputs, fieldKeyFromHandle, filterCloneNodes, findCharacterMentionTokens, findEntityMentionTokens, findImageMentionTokens, findLocationMentionTokens, findSeedance2AudioOverLimit, findWordlessTranscriptFeeds, firstSightExtraRole, flattenItems, formatVideoOverlayError, getAnimal, getAnimalLabel, getAnimalPromptHint, getAnimalTerm, getAspectRatioOptions, getAudioCrossfadeCurve, getCharacterFacet, getCombineTransition, getCreditRange, getDurationsForModel, getEffectiveRepeatCount, getFeaturedEntities, getFurniture, getFurnitureLabel, getInputFieldSchema, getInputNodes, getItemSortId, getLipSyncMaxAudioSeconds, getLlmModalityCaps, getLlmModel, getLlmTier, getLocaleDirection, getMaxImagePromptChars, getMaxNegativePromptChars, getMaxSunoPromptChars, getMaxSunoStyleChars, getMaxTtsChars, getMaxVideoPromptChars, getModel, getNodeLabel, getNodeResult, getOutputNodes, getOutputType, getParameterValue, getQualityOptions, getResolutionOptions, getRouteReachableNodeIds, getSpeakerLayout, getSpeakerSwitch, getStrategy, getTargetField, getValidValues, getVehicle, getVehicleLabel, getVideoAudioCapability, getWeapon, getWeaponLabel, groupByFamily, groupByKindAndFamily, groupHandleId, groupLlmModelsByVendor, hasContiguousSegmentDurations, hasDrawableVideoOverlayBox, hasFeature, hasUrlParserHazard, hexToRgbaArray, hostnameMatchesAllowlist, humanizeSlotSid, imageMentionSlug, imageMentionSlugForRef, imageOverlayBillableVariants, imageOverlayCredits, imageReferenceLimit, inferMusicVideo, instagramAnalysisCreditId, instagramAnalysisTierFrom, instagramScrapeCreditIdFromNode, instagramScrapeMode, instagramScrapeSources, instagramScrapeTier, isAggregateableType, isAutoVideoDuration, isCharacterAspectRatio, isCollectInEdge, isCronExpression, isDefaultSelectorConfig, isEdlTargetAspect, isExpandedClone, isFacebookPageUrl, isFanOutUrlItem, isFlux2Model, isGeminiOmniProvider, isGvpSupportedProvider, isHandleInputWired, isInstagramScrapeCount, isInstagramScrapeMode, isKineticCaptionStyle, isKnownScene3DEngine, isKnownSpeakerEmphasisStyle, isLegacySunoModel, isLocationUsageMode, isMetaAdsFormat, isMetaAdsPlatform, isMetaAdsScrapeCount, isMetaAdsScrapeMode, isMetaCdnImageUrl, isMinimaxH3Provider, isObjectAspectRatio, isOversizedScene, isPaygRetentionActive, isPerSecondLipSyncProvider, isPro3DRenderJobOutput, isPro3DRenderQuote, isPro3DRenderRenderOnly, isProjectedTriggerNodeType, isRtlText, isScene3DAuthoringEngine, isScene3DCameraTrack, isScene3DHttpUrl, isScene3DPlan, isScene3DPlanV1, isScene3DPlanV2, isScene3DReviewUnavailableReason, isScene3DSchemaVersionSupported, isScraperActor, isSeedance2Provider, isSeedanceVideoEditProvider, isSocialVideoUrl, isTemplateCategory, isTiltDirection, isUsageMode, isValidTimezone, isVeoProvider, isVideoAnalysisMixedTier, isVideoAnalysisTier, isVideoOverlayCorner, isVideoOverlayOutputAspect, isVideoOverlayPresetId, isWan3Provider, jsonResultToList, knownEntitySlugsFromRefs, knownImageSlugsFromRefs, legacyScheduleToRules, listBoardTemplates, listModels, listSlotSids, liveRowColumn, llmRouteDefaults, localMinuteKey, localTimeIn, locationMentionSlug, locationReferencePhotoKindLabel, locationUsageModeLabel, mapAspectRatio, mapQuality, mapShotIntentToProviderDirectives, matchVariant, matchesCron, matchesCronField, maxSegmentSecFor, maxSegmentsFor, maxVideoDurationSec, measuredCanvasCombinations, mergeClipLook, mergeEdlSourceOffsets, mergeExposedSettings, mergeNodeInputOverrides, metaAdsAdvertisersFrom, metaAdsAnalysisCreditId, metaAdsAnalysisTier, metaAdsAnalysisTierFrom, metaAdsNodeMode, metaAdsScrapeCreditIdFromNode, metaAdsScrapeSources, metaAdsScrapeTier, metaAdsScrapeWireSources, migrateEdgeOutputMode, migrateToItems, minSegmentSecFor, minimalRatioDimensions, modelIdsByKindMode, modelToNodeTarget, modelsForInputMode, modelsWithFeature, motionGraphicsFeature, newScene3DRevisionId, nextScheduleRuns, nodeFeedsAnything, nodeStateMayCarryOutput, normalizeCaptionNumericLevers, normalizeEdl, normalizeLottieLayers, normalizeMinimaxH3Resolution, normalizeModelInput, normalizeNodeModelParams, normalizePinterestUrl, normalizeRoleSlug, normalizeScheduleRule, normalizeScheduleRules, normalizeTemplateCategory, normalizeTranscript, normalizeVideoOverlayNodes, normalizeVideoRequestParams, normalizeWan3Resolution, orderedLlmModels, overlayFontById, overlayImageEffectsSchema, overlayPlatformById, overlayQrStyleSchema, overlayShapeElement, overlayShapeStyleSchema, overlayStrokeSchema, overlayTextStyleSchema, overlayVariantHandle, overlayVariantIdFromHandle, parseAspectToken, parseAttributedDialogue, parseCharacterMentionToken, parseEntityMentionToken, parseGroupHandle, parseHandleId, parseImageMentionToken, parseListExpression, parseLocationMentionToken, parseNodePresetExport, parseNodeRef, parseScene3DCameraTrackJson, parseScene3DPlanV2Json, parseSpeakerEmphasisStyle, pickAiAvatarBucket, pickIds, pickLipSyncBucket, pickSwitchXFrameTier, pickVideoAnalysisBucket, planFanOut, planSheetGeneration, planSheetPanels, preferredInputModeForModel, presentTypes, presetApplyClearKeys, presetDataMatches, presetEntries, previewHorizonMs, pricedOutputDurationSec, pricedVideoSelection, pro3DRenderCoreOutputSchema, pro3DRenderFrameUnit, pro3DRenderJobOutputSchema, pro3DRenderProducedSchemaVersion, pro3DRenderQuoteSchema, pro3DRenderReviewVerdictSchema, pro3DRenderShotStillSchema, pro3DRenderShotStills, pro3DRenderTimingOverrides, qualityOptionsByKind, readPromptAffixes, reasoningOutputFloor, refHandleCategory, referenceModalityForHandle, referenceSheetCreditId, registerCatalogSidecars, registerSidecarLoaders, remapMsThroughEdl, remapTranscriptThroughEdl, renderAnalyzedScene, renderVideoCreditId, requiresSequenceExecution, resetCatalogSidecars, resolutionOptionsByKind, resolveAiAvatarCreditId, resolveAudioCrossfadeCurve, resolveCaptionLevers, resolveCaptionLook, resolveCharacterAspectRatio, resolveCinematicCreditId, resolveConditionValue, resolveDefaultRole, resolveDescription, resolveDialogueVoices, resolveEdlSegmentSlots, resolveEffectiveSourceType, resolveEffectiveTier, resolveEntityAspect, resolveFieldMappings, resolveFrameDelivery, resolveFrameFitAspect, resolveGvpAnchorWire, resolveImageGenCreditIdentifier, resolveIndex, resolveInstagramScrapeCreditId, resolveLabel, resolveListExpression, resolveListFanOut, resolveLlmCreditId, resolveLocationFields, resolveLocationPresetCatalog, resolveLottieOverlaySrc, resolveMetaAdsScrapeCreditId, resolveNodeRefs, resolveNormalizedImageGen, resolveObjectAspectRatio, resolveOutputCanvas, resolvePipelineModel, resolveRelativeWindowToken, resolveScene3DAuthoringEngine, resolveScraperCreditId, resolveSelectorRefs, resolveSeparator, resolveSheetSections, resolveSlideshowTransition, resolveSourceThroughConnectedList, resolveStoredTier, resolveSwitchXCreditId, resolveTemplateCategory, resolveTopazUpscale, resolveVideoAnalysisModel, resolveVideoLinkOutput, resolveVideoModeForInputs, resolveVideoOverlayGeometry, resolveVideoProviderForMode, resolveXfadeName, rewriteSceneBindings, rewriteSlotTokens, rewriteSpeakerSlots, rgbaArrayToHex, roleToPhrase, rotationVec3Schema, ruleMatches, runSelector, safetyRetryPolicy, sanitizeRole, scaleVec3Schema, scene3DAcceptedSchemaVersionsSchema, scene3DAnchorNameSchema, scene3DAnchorSchema, scene3DAnyPlanSchema, scene3DAssetAnimationSchema, scene3DAssetIdSchema, scene3DAssetRefSchema, scene3DCameraChangesSchema, scene3DCameraKeyframeSchema, scene3DCameraSampleSchema, scene3DCameraSchema, scene3DCameraTrackIssues, scene3DCameraTrackObjectSchema, scene3DCameraTrackPlanIssues, scene3DCameraTrackSchema, scene3DClayLightingSchema, scene3DColorSchema, scene3DDeepEqual, scene3DEasingSchema, scene3DEditOperationSchema, scene3DEditOperationsSchema, scene3DEngineIdSchema, scene3DEntityAcceptsOverlay, scene3DEntityCapabilitySchema, scene3DEntityV2Schema, scene3DEntityVisualSchema, scene3DIdSchema, scene3DInputAssetSchema, scene3DInputAssetsForEngine, scene3DInputAssetsSchema, scene3DJsonByteLength, scene3DLightingChangesSchema, scene3DLightingSchema, scene3DMaterialBindingSchema, scene3DMaterialNameSchema, scene3DMaterialRoleSchema, scene3DNodeIdSchema, scene3DNodeNameSchema, scene3DObjectChangesSchema, scene3DObjectKeyframeSchema, scene3DObjectSchema, scene3DOverrideSchema, scene3DPlanIssues, scene3DPlanSchema, scene3DPlanSchemaVersion, scene3DPlanV1Issues, scene3DPlanV1ObjectSchema, scene3DPlanV1Schema, scene3DPlanV2Issues, scene3DPlanV2ObjectSchema, scene3DPlanV2Schema, scene3DPrimitiveSchema, scene3DProjectionIssues, scene3DProvenanceSchema, scene3DReferenceSchema, scene3DRenderTier, scene3DRenderTierCredits, scene3DReviewNote, scene3DReviewVerdictOf, scene3DSampleForFrame, scene3DSha256Schema, scene3DShotForFrame, scene3DShotIndexForFrame, scene3DShotSchema, scene3DUrlSchema, scene3DV2AdmissionIssues, scene3DV2EditOperationSchema, scene3DV2EditOperationsSchema, scene3DV2HierarchyDepth, scene3DV2NormalizationIssues, scene3DV2OverrideInputSchema, scene3DV2ResourceUsage, scene3DVersionTokenSchema, scene3DZodIssues, scheduleMatchesAt, scheduleOccurrences, searchModelVariants, seedance2AudioLimitSec, seedanceVideoEditCreditId, segmentDurationsFor, selectByModulo, selectByNamedKey, selectByPredicate, selectListItems, selectLoraRoutingForMentions, selectRandom, setRegisteredPersonPackFields, settledWithLimit, sizeVec3Schema, slotVariationSchema, sortCharacterEntriesForDisplay, sortListItems, sourceRefKey, speakerLayoutAllows, speakerPresentationWarnings, speakerSwitchOverlaps, speakerTurns, spliceDelimitedRows, splitByLoopDelimiter, splitGeneratedItems, splitInstagramTargets, splitMetaAdsAdvertiserNames, splitMetaAdsPageUrls, spreadJsonArrayIfSingleton, stringifyPathResults, stripDerivedAnalysisFields, stripExportContent, stripStudioTransientSettings, stripTransientRuntimeData, stripUnownedRefs, summarizeScene3DOperations, sunoCreditType, sunoModelHonoursDuration, supportedDefaultDimensions, supportsAdvancedMode, supportsAutoVideoDuration, supportsEndAnchor, supportsExtendRender, templateCategoryStoredValues, timezoneOffsetMinutes, toConnectedReference, toConnectedReferences, toCustomVideoOverlayLayer, togglePick, transcribeLaneSupportsWordTimestamps, transcribeProvidersWithWordTimestamps, transcribeWordTimestampsRefusal, transcriptDurationSec, tryParseJson, uiAspectRatioFill, uiDurationFill, uiResolutionFill, unresolvedRefTokens, unwrapEditPlanOutput, unwrapUnresolvedTokens, usageModeDirective, usageModeIncludesName, usageModeLabel, usdToCredits, validateAiAvatarPayload, validateCinematicAvatarPayload, validateDurationForFormat, validateEdl, validateEdlClipSet, validateModeActivation, validateModelInput, validateNoNestedGroups, validateObjects, validateProviderForNodeType, validateSubWorkflowRoutes, validateVideoOverlayRequest, variantJobId, vec3Schema, verifyScene3DPlanV2ContentHash, videoAnalysisCreditSegment, videoAnalysisNumWindows, videoAnalysisResultSchema, videoAuditCreditsForBucket, videoLinkDownloadedFile, videoLinkNeedsDownload, videoModelCanSpeakDialogue, videoModelSupportsAudio, videoNegativeSuffix, videoOverlayCanvas, videoOverlayCompositionKey, videoOverlayLayerLabel, videoOverlayPresetBox, videoOverlayRenderOrder, videoOverlaySlotOfHandle, videoOverlaySlotSources, videoProviderFoldsLoneEndFrame, videoProviderRequiresImage, windowAnalysisSchema, zipMergeLists };
|
|
21252
|
+
export { ACCESS_LEVELS, ACTION_CARD_KINDS, ACTIVE_SCENE_HELPERS, ADVANCED_MODE_UNAVAILABLE_REASON, ADVICE_FAMILIES, AGGREGATEABLE_TYPES, AGGREGATE_LANE_SOURCE_TYPES, AI_AVATAR_DURATION_BUCKETS, AI_AVATAR_MAX_AUDIO_SEC, AI_AVATAR_MAX_DURATION_SEC, AI_AVATAR_RESERVE_IDS, AI_WRITER_PROVIDERS, ALA_CARTE_BOARDS, ALL_CAPTION_STYLES, ANIMALS, ANIMAL_SUBCATEGORY_LABELS, ANIMAL_SUBCATEGORY_ORDER, ANIMATE_SUB_GATES, ASPECT_RATIO_DIMENSIONS, AUDIO_ADDON_PROVIDERS, AUDIO_CROSSFADE_CURVES, AUDIO_CROSSFADE_CURVE_IDS, AUDIO_FX_PRESETS, AUDIO_FX_PRESET_LABELS, AUDIO_FX_PRESET_SET, AUDIO_FX_REVERB_PRESETS, AUDIO_PRODUCER_TYPES, AUDIO_SYNC_MIN_CONFIDENCE, AddBRollResultSchema, AnchorSceneStyleResultSchema, AnimateSubGateSchema, AssetRefSchema, AuditImagesResultSchema, AuditImagesShotEntrySchema, AuditPromptIssueSchema, AuditPromptResultSchema, AvatarPayloadError, BOARD_TO_ASSET_TYPE, BOARD_TO_COLUMN, BOARD_VARIANTS, BRAND_LESSON_KINDS, BridgeToNextSceneInputSchema, BridgeToNextSceneResultSchema, CAMERA_SWITCH_BOUNDS, CAMERA_SWITCH_CREDIT_ID, CAMERA_SWITCH_DEFAULTS, CAMERA_SWITCH_NAME_MAX, CAPTION_LEVER_BOUNDS, CAPTION_LOOKS, CAPTION_LOOK_IDS, CAPTION_MAX_WORDS_PER_LINE_MAX, CAPTION_MAX_WORDS_PER_LINE_MIN, CARD_OUTCOME_STATES, CATEGORY_DURATION_DEFAULTS, CHARACTER_ASPECT_DEFAULTS, CHARACTER_ASPECT_OPTIONS, CHARACTER_ASSET_TYPES, CHARACTER_ASSET_VARIANTS, CHARACTER_ATTACH_COLUMNS, CHARACTER_FACETS, CHARACTER_FACET_IDS, CHARACTER_LORA_TRAINING_JOB_TYPE, CHARACTER_MOTION_PROVIDERS, CHARACTER_PICKER_DISPLAY_ORDER, CHARACTER_REFERENCE_PHOTO_KINDS, CHARACTER_STYLES, CHARACTER_VARIANT_ASSET_BUCKETS, CHAT_ENABLED_STAGES, CHAT_STAGES, CHAT_TURN_CAPS, CHAT_WIRED_STAGES, CINEMATIC_DEFAULT_DURATION_SEC, CINEMATIC_DEFAULT_RESOLUTION, CINEMATIC_MAX_DURATION_SEC, CINEMATIC_MAX_LOOKS, CINEMATIC_MAX_REFERENCE_IMAGES, CINEMATIC_MAX_REFERENCE_VIDEOS, CINEMATIC_MIN_DURATION_SEC, CINEMATIC_MIN_LOOKS, CINEMATIC_PROMPT_MAX, CINEMATIC_RESERVE_IDS, COLLABORATOR_ROLES, COLLECT_IN_HANDLE, COMBINE_TRANSITIONS, COMBINE_TRANSITION_GROUP_LABELS, COMBINE_TRANSITION_GROUP_ORDER, COMBINE_TRANSITION_IDS, COMPETITORS_MAX, COMPETITOR_ABOUT_PLATFORMS, COMPETITOR_ACCOUNT_KEYS, COMPETITOR_DEFAULT_ABOUT_PLATFORMS, COMPETITOR_SCAN_CREDIT_COSTS, COMPETITOR_SCAN_MAX_SEARCHES, COMPETITOR_SCAN_NODE_TYPE, COMPETITOR_SCHEDULES, COMPOSER_PLAN_FIELDS, COMPOSER_PLAN_MAP, CONTENT_IDEAS_BRAND_MAX, CONTENT_IDEAS_DEFAULT_COUNT, CONTENT_IDEAS_LANGUAGE_MAX, CONTENT_IDEAS_MAX_COUNT, CONTENT_IDEAS_MAX_RECIPE_INPUTS, CONTENT_IDEAS_PER_CHARGE, CONTENT_RECIPE_IDEAS_CREDIT_IDS, CONTENT_RECIPE_SOURCE_MAX, CONTENT_TYPES_BY_PLATFORM, CREATURE_ATTACH_COLUMNS, CREDIT_BASE_USD, CREDIT_ROUNDING_RESOLUTION, CastCoverageCriticVerdictSchema, CharacterImageCriticVerdictSchema, CharacterMetadataSchema, ChatTurnResponseSchema, CriticIssueSchema, DEFAULT_AUDIO_CROSSFADE_CURVE_ID, DEFAULT_CAPTION_LOOK, DEFAULT_CARRIED_FRACTION, DEFAULT_CHARACTER_ANGLE_COUNT, DEFAULT_CHARACTER_EXPRESSION_COUNT, DEFAULT_CHARACTER_FACET, DEFAULT_FRAME_DELIVERY, DEFAULT_FRAME_FIT, DEFAULT_LABEL_BY_SOURCE, DEFAULT_LOCATION_USAGE_MODE, DEFAULT_MUSIC_PROVIDER, DEFAULT_OVERLAY_QR, DEFAULT_OVERLAY_SHAPE, DEFAULT_OVERLAY_TEXT, DEFAULT_PANEL_COUNT, DEFAULT_REF_IMAGE_MAX, DEFAULT_SECTIONS, DEFAULT_SUBTITLE_LOOK, DEFAULT_SUNO_MODEL, DEFAULT_TEMPLATE_CATEGORY, DEFAULT_TEXT_TO_AUDIO_PROVIDER, DEFAULT_TRANSCRIBE_NODE_PROVIDER, DEFAULT_TRANSCRIBE_PROVIDER, DEFAULT_USAGE_MODE, DEFAULT_VIDEO_ANALYSIS_MODEL, DEFAULT_VIDEO_ANALYSIS_TIER, DEFAULT_VIDEO_CLIP_COST, DEFAULT_VIDEO_DURATION_SEC, DEFAULT_VIDEO_OVERLAY_LAYER, DEFAULT_VIDEO_PROVIDER, DEFAULT_VOICE_CHANGER_MODEL, DEFAULT_VOICE_DESIGN_MODEL, DETAIL_VARIANTS, DURATION_PRICED_PROVIDERS, DYNAMIC_PRODUCER_TYPES, DetectionResultSchema, EDIT_PLAN_BASE_CREDIT_ID, EDIT_PLAN_BUCKET_MINUTES, EDIT_PLAN_DEFAULT_CLIP_COUNT, EDIT_PLAN_MAX_CLIP_COUNT, EDIT_PLAN_MAX_MINUTES, EDIT_PLAN_MODES, EDIT_PLAN_TIERS, EDL_FULL_FRAME, EDL_SOURCE_ROLES, EDL_TARGET_ASPECTS, EDL_VERSION, EFFORT_TIER_BUMP, EMOTIONAL_BEAT, ENTITY_ASPECT_DEFAULTS, ENTITY_BUCKET_FIELDS, ENTITY_DB_ID_FIELD, ENTITY_IMAGE_HANDLE_TYPES, ENTITY_KIND_SCALAR_FIELDS, ENTITY_NAME_FIELD, ENTITY_NODE_KINDS, ENTITY_SCALAR_FIELDS, ENTITY_SECTIONS, ENTITY_STATUSES, ENTITY_TABLE, ENTITY_TOOL_RETRY_CAP, ENTITY_TYPES, EXECUTION_DATA_KEYS, EXECUTION_GRAPH_COMPOSED_PARAMETER_TYPES, EXTEND_VIDEO_PROVIDERS, EntityMetadataSchema, EntityRejectInputSchema, EntityStaleEventSchema, EntityStateChangeEventSchema, FACE_SWAP_PROVIDERS, FAL_LIP_SYNC_PROVIDERS, FAN_IN_TARGETS, FAN_OUT_EACH_HANDLES, FAN_OUT_EACH_TYPES, FEATURED_ENTITIES, FILM_BASE_CREDITS, FLEXIBLE_INPUT_LIP_SYNC_PROVIDERS, FLUX2_RES_MP, FLUX_LORA_CHARACTER_MODEL_ID, FRAME_DELIVERIES, FRAME_DELIVERY_BY_PROVIDER, FRAME_FITS, FRAME_FIT_STRETCH_TOLERANCE, FRAME_MODE_ADAPTIVE_ONLY_ASPECT, FRAME_TARGET_HANDLES, FREECUT_EXPORT_COMPLETE, FREECUT_EXPORT_PROGRESS, FREECUT_READY, FREECUT_REQUEST_IMPORT, FURNITURE, FURNITURE_SUBCATEGORY_LABELS, FURNITURE_SUBCATEGORY_ORDER, FixContinuityInputSchema, FixContinuityResultSchema, GEMINI_OMNI_PROVIDERS, GENERATE_TEXT_DELIMITER, GLOBAL_MAX_DURATION_SECONDS, GRANTED_ACCESS, GROUP_HANDLE_PREFIX, GUIDANCE_SCALE_SUPPORT, GVP_ANCHOR_CHOICES, GVP_DEFAULT_PROVIDER, GVP_END_FRAME_PROVIDERS, GVP_EXTEND_PROVIDERS, GVP_SUPPORTED_PROVIDERS, GenerateMotionInputSchema, GenerateMotionResultSchema, HANDLE_PORT_SEPARATOR, HELPERS_SHIPPED_IN_1B3, HIGH_QUALITY_PROVIDERS, HINT_EXEMPT_PARAMETER_TYPES, I2I_MASK_SUPPORT, I2I_STRENGTH_SUPPORT, IDEOGRAM_PROVIDERS, IMAGE_ASPECT_RATIO_VALUES, IMAGE_CRITIC_LEAF_MODES, IMAGE_CRITIC_MAX_RETRIES, IMAGE_CRITIC_METADATA_KEYS, IMAGE_CRITIC_MIN_ADHERENCE_SCORE, IMAGE_CRITIC_MODES, IMAGE_CRITIC_UNRESOLVABLE, IMAGE_EDIT_PROVIDERS, IMAGE_GEN_PROVIDERS, IMAGE_I2I_PROVIDERS, IMAGE_MASK_MODE, IMAGE_OVERLAY_BASE_CREDITS, IMAGE_OVERLAY_VARIANT_CREDITS, IMAGE_PROMPT_MAX, IMAGE_REF_TYPES, IMAGE_TO_VIDEO_PROVIDERS, INPUT_FIELD_MAP2 as INPUT_FIELD_MAP, INPUT_NODE_TYPES, INSTAGRAM_ANALYSIS_CREDIT_ID, INSTAGRAM_CAROUSEL_MAX_ITEMS, INSTAGRAM_CAROUSEL_MIN_ITEMS, INSTAGRAM_HOSTS, INSTAGRAM_SCRAPE_CREDIT_COSTS, INSTAGRAM_SCRAPE_DEFAULT_COUNT, INSTAGRAM_SCRAPE_FALLBACK_CREDIT_ID, INSTAGRAM_SCRAPE_MAX_COUNT, INSTAGRAM_SCRAPE_MAX_SOURCES, INSTAGRAM_SCRAPE_MAX_TARGET_LENGTH, INSTAGRAM_SCRAPE_MODES, INSTAGRAM_SCRAPE_NODE_TYPE, INSTAGRAM_SCRAPE_PERIODS, INSTAGRAM_SCRAPE_TIERS, ITER_CLONE_PATTERN, ImageCriticIssueSchema, ImageCriticResultSchema, ImageCriticVerdictSchema, ImprovePromptInputSchema, ImprovePromptResultSchema, KEYFRAME_CREDITS_PER_SHOT, KINETIC_CAPTION_STYLES, KINETIC_ONLY_CAPTION_LEVER_KEYS, LANGUAGES, LEGACY_EXPOSED_FIELD_KEYS, LEGACY_LOTTIE_HOST_REMAP, LEGACY_TEMPLATE_CATEGORIES, LIP_SYNC_DURATION_BUCKETS, LIP_SYNC_MAX_AUDIO_SECONDS, LIP_SYNC_PROVIDERS, LLM_FEATURE_DEFAULTS, LLM_MODALITY_CAPS, LLM_MODELS, LLM_MODEL_IDS, LLM_REASONING_EFFORTS, LLM_ROUTE_DEFAULTS, LLM_TEXT_INPUT_MAX, LLM_VENDOR_LABELS, LLM_VENDOR_ORDER, LOCATION_ASSET_TYPES, LOCATION_ASSET_VARIANTS, LOCATION_ATMOSPHERE_PROVIDERS, LOCATION_ATTACH_COLUMNS, LOCATION_BUCKET_TO_CATALOG_ID, LOCATION_PRESET_TO_CATALOG, LOCATION_REFERENCE_PHOTO_KINDS, LOCATION_REFERENCE_PHOTO_KIND_LABELS, LOCATION_USAGE_MODES, LOTTIE_OVERLAY_CATALOG, LOTTIE_SLOT_FIELD_PREFIX, LTX_EXTEND_DURATION, LTX_EXTEND_PER_SECOND_CREDIT_ID, LTX_RETAKE_MIN_DURATION_SEC, LTX_RETAKE_PER_SECOND_CREDIT_ID, LocationImageCriticVerdictSchema, LocationMetadataSchema, LocationsCoverageCriticIssueSchema, LocationsCoverageCriticVerdictSchema, MATCH_CUT_BREAK_GATE, MAX_CUSTOM_ENTRIES_PER_BOARD, MAX_IMAGE_PROMPT_CHARS_BY_PROVIDER, MAX_LOCATION_VARIANTS, MAX_NEGATIVE_PROMPT_CHARS_BY_PROVIDER, MAX_PANELS_PER_SHEET, MAX_TTS_CHARS_BY_PROVIDER, MAX_VIDEO_PROMPT_CHARS_BY_PROVIDER, MEMBER_STATUSES, META_ADS_ADVERTISER_MAX_RESULTS, META_ADS_ANALYSIS_CREDITS_PER_AD, META_ADS_ANALYSIS_CREDIT_ID, META_ADS_ANALYSIS_FOCUS_MAX, META_ADS_ANALYSIS_TIERS, META_ADS_FORMATS, META_ADS_NODE_MODES, META_ADS_PLATFORMS, META_ADS_SCRAPE_COUNT_OPTIONS, META_ADS_SCRAPE_CREDIT_COSTS, META_ADS_SCRAPE_DEFAULT_COUNT, META_ADS_SCRAPE_DEFAULT_COUNTRY, META_ADS_SCRAPE_FALLBACK_CREDIT_ID, META_ADS_SCRAPE_MAX_COUNT, META_ADS_SCRAPE_MAX_QUERY_LENGTH, META_ADS_SCRAPE_MAX_SOURCES, META_ADS_SCRAPE_MODES, META_ADS_SCRAPE_NODE_TYPE, META_ADS_SCRAPE_PERIODS, META_ADS_SCRAPE_STATUSES, META_ADS_SCRAPE_TIERS, MINIMAX_H3_DEFAULT_RESOLUTION, MINIMAX_H3_PROVIDERS, MODELS_WITH_REFERENCE_IMAGE_SUPPORT, MODEL_CATALOG, MODEL_KINDS, MODEL_PARAM_NODE_TYPES, MODEL_RECOMMENDATIONS, MODIFY_IMAGE_PROVIDERS, MOTION_COLUMN, MOTION_TRANSFER_PROVIDERS, MUSIC_CREDIT_ID, MUSIC_PROVIDERS, MUSIC_PROVIDER_LABELS, MatchCutVerdictSchema, NATIVE_ADAPTIVE_ASPECT, NATIVE_NEGATIVE_PROMPT_MODELS, NATIVE_NEGATIVE_VIDEO_PROVIDERS, NEGATIVE_PROMPT_MAX, NODARO_IMPORT_FILES, NODARO_LOAD_TIMELINE, NODARO_LOAD_VIDEO, NODARO_RESET_PROJECT, NODE_DEFAULT_TYPES, NODE_MAPPABLE_FIELDS, NODE_PRESET_EXPORT_KIND, NODE_REF_PATTERN, NON_EN_LOCALE_IDS, NON_PROMPT_TEXT_LANES, NO_SPLIT_DELIMITER, OAUTH_SCOPES, OBJECT_ASPECT_DEFAULTS, OBJECT_ASPECT_OPTIONS, OBJECT_ASSET_TYPES, OBJECT_ASSET_VARIANTS, OBJECT_ATTACH_COLUMNS, OBJECT_MOTION_PROVIDERS, OBJECT_PICKER_NODE_TYPES, ORG_ERROR_CODES, ORG_KINDS, ORG_ROLES, ORG_STATUSES, OUTPUT_BEARING_NODE_STATUSES, OUTPUT_FIELD_MAP, OUTPUT_FORMATS, OVERLAY_ANCHORS, OVERLAY_FONTS, OVERLAY_FONT_IDS, OVERLAY_IMAGE_MASKS, OVERLAY_LAYER_KINDS, OVERLAY_MAX_VARIANTS, OVERLAY_PLATFORMS, OVERLAY_PLATFORM_IDS, OVERLAY_SHAPES, OVERLAY_TEXT_ALIGNS, OVERLAY_VARIANT_HANDLE_PREFIX, ObjectMetadataSchema, OptimizeForModelInputSchema, OptimizeForModelResultSchema, OrgSettingsSchema, PARAMETER_NODE_TYPES, PASSTHROUGH_TYPES, PAYG_RETENTION_DAYS, PER_FORMAT_DURATION_BOUNDS, PICKER_TO_COMBINE_TRANSITION, PIPELINE_ACTIVATION_MODES, PIPELINE_FORMATS, PIPELINE_HARD_TIMEOUT_MS, PIPELINE_MODEL_STAGES, PIPELINE_MODES, PIPELINE_OUTPUT_RESOLUTIONS, PIPELINE_PINNABLE_IMAGE_MODELS, PIPELINE_PINNABLE_SCRIPT_LLMS, PIPELINE_PINNABLE_VIDEO_MODELS, PIPELINE_STAGE_NAMES, PIPELINE_STAGE_TIMEOUT_MS, PIPELINE_TYPES, PLACEHOLDER_CHARACTER_NAME, PLATFORM_LABELS, PLATFORM_SPECS, PRESET_APPLY_CLEAR_KEYS, PRESET_EXCLUDED_KEYS, PRESET_LABELS, PRESET_SETTING_KEYS, PRICING_DEFAULT_DURATION_SEC, PRICING_DEFAULT_RESOLUTION, PRO3D_RENDER_ASPECT_RATIOS, PRO3D_RENDER_CREDIT_ID, PRO3D_RENDER_DEFAULT_ENGINE, PRO3D_RENDER_DEFAULT_QUALITY, PRO3D_RENDER_DEFAULT_REPAIR_PASSES, PRO3D_RENDER_DEFAULT_STYLE, PRO3D_RENDER_ENGINES, PRO3D_RENDER_LABEL, PRO3D_RENDER_LIMITS, PRO3D_RENDER_MAX_REPAIR_PASSES, PRO3D_RENDER_MIN_REPAIR_PASSES, PRO3D_RENDER_NODE_TYPE, PRO3D_RENDER_PROMPT_MAX, PRO3D_RENDER_QUALITY_PROFILES, PRO3D_RENDER_SOURCE_KINDS, PRO3D_RENDER_STYLES, PROJECTED_TRIGGER_NODE_TYPES, PROMPT_HARD_CEILING, PROMPT_PREFIX_KEY, PROMPT_SUFFIX_KEY, PROVIDER_DIRECTIVE_DEFAULTS, PROVIDER_PLACEHOLDER_PREFIX, PipelineCompletedEventSchema, PipelineConfigSchema, PipelineDriftSummarySchema, PipelineEditorDecisionsReadyEventSchema, PipelineForkedEventSchema, PipelineInputSchema, PipelineMusicReadyEventSchema, PipelineStageNameSchema, PipelineStageStatusSchema, PipelineStateSchema, PipelineStatusSchema, PresetSettingsSchema, QA_CHECK_PROVIDERS, REASONING_OUTPUT_FLOOR, RECAST_SEGMENT_PACKS, REDUCE_STRATEGIES, REDUCE_STRATEGY_IDS, REFERENCE_BOARD_PROVIDERS, REFERENCE_BOARD_TEMPLATES, REFERENCE_HANDLE_MAP, REFERENCE_ROLE_PRESETS, REF_HANDLE_CATEGORY, REF_IMAGE_MAX_LIMITS, REF_TOKEN_NAMESPACE_PREFIXES, RENDERING_SPEED_SUPPORT, RENDER_VIDEO_CREDIT_ID, REPEATABLE_NODE_TYPES, REPEAT_PLACEHOLDER, REPLICATE_LIP_SYNC_PROVIDERS, RESERVED_TEMPLATE_VARS, SAVED_POSTS_LOOKUP_MAX, SAVED_POSTS_PAGE_MAX, SAVED_POST_MAX_TAGS, SAVED_POST_NOTE_MAX, SAVED_POST_SOURCES, SAVED_POST_TAG_MAX, SCENE3D_ASSERTION_RESTORED_CODE, SCENE3D_ASSET_KINDS, SCENE3D_ASSET_ROLES, SCENE3D_ASSET_ROLE_KINDS, SCENE3D_AUTHORING_ASSUMPTION_CODE, SCENE3D_AUTHORING_ENGINES, SCENE3D_BASIC_ENGINE, SCENE3D_BASIC_SCHEMA_VERSION, SCENE3D_CAMERA_TRACK_FORMAT, SCENE3D_CAMERA_TRACK_LIMITS, SCENE3D_CAMERA_TRACK_VERSION, SCENE3D_CLAY_LIGHTING_PRESETS, SCENE3D_DEFAULT_ADVANCED_ENGINE, SCENE3D_DEFAULT_DURATION_SECONDS, SCENE3D_DEFAULT_ENTITY_CAPABILITIES, SCENE3D_DEFAULT_FPS, SCENE3D_EDIT_NODE_TYPE, SCENE3D_ENTITY_CAPABILITIES, SCENE3D_ENTITY_ROLES, SCENE3D_GENERATE_NODE_TYPE, SCENE3D_GLB_EXTRAS_ALLOWLIST, SCENE3D_GLB_EXTRAS_ENTITY_ID, SCENE3D_GLB_EXTRAS_MATERIAL_ROLE, SCENE3D_GLB_EXTRAS_SUBPART_ID, SCENE3D_LIMITS, SCENE3D_PLAN_FIELD, SCENE3D_PLAN_TYPE, SCENE3D_PRIMITIVES, SCENE3D_PRIMITIVE_MATERIAL_ROLE, SCENE3D_REMEDY_AUTO_APPLIED_CODE, SCENE3D_RENDERER_ASSET_KINDS, SCENE3D_RENDER_BASE_MAX_PX, SCENE3D_RENDER_TIERS, SCENE3D_RENDER_TIER_MULTIPLIERS, SCENE3D_RENDER_XLARGE_MIN_AREA_PX, SCENE3D_REVIEW_REFUSED_CODE, SCENE3D_REVIEW_UNAVAILABLE_CODE, SCENE3D_REVIEW_UNAVAILABLE_REASONS, SCENE3D_SCHEMA_VERSION, SCENE3D_SCHEMA_VERSION_V2, SCENE3D_SUPPORTED_SCHEMA_VERSIONS, SCENE3D_V2_CONTENT_HASH_EXCLUDED, SCENE3D_V2_ENGINES, SCENE3D_V2_LIMITS, SCENE3D_V2_OVERRIDE_OPERATION_VERSION, SCENE3D_V2_PRIMITIVES, SCENE_HELPER_NAMES, SCHEDULE_EVERY_LIMITS, SCHEDULE_RULE_KINDS, SCHEDULE_TRIGGER_NODE_TYPE, SCRAPER_ACTOR_LABELS, SCRAPER_CREDIT_COSTS, SCRAPER_OUTPUT_FIELDS, SCRIPT_PROVIDERS, SCRIPT_SCENE_COUNT_DEFAULT, SCRIPT_SCENE_COUNT_RANGE, SCRIPT_STYLE_GUIDE_MAX_LENGTH, SCRIPT_TARGET_DURATION_DEFAULT, SCRIPT_TARGET_DURATION_RANGE, SCRIPT_TONE_MAX_LENGTH, SEASONS, SECTION_BOARD, SECTION_KINDS, SEEDANCE_2_5_REF_LIMITS, SEEDANCE_2_CONTINUATION_REF_SEC, SEEDANCE_2_EXTEND_STITCH, SEEDANCE_2_PROVIDERS, SEEDANCE_2_R2V_MAX_AUDIO_SEC_BY_PROVIDER, SEEDANCE_2_R2V_MIN_REF_VIDEO_SEC, SEEDANCE_2_REF_LIMITS, SEEDANCE_LIP_SYNC_PROVIDERS, SEEDANCE_VIDEO_EDIT_PROVIDERS, SEEDANCE_VIDEO_EDIT_SHAPE, SEED_SUPPORT, SEPARATOR_DISPLAY, SEPARATOR_PRESETS, SETTINGS_HINT_SOURCES, SETTINGS_INPUT_CONSUMERS, SETTINGS_INPUT_HANDLE, SETTINGS_SOURCE_FIELDS, SETTINGS_SOURCE_TYPES, SHEET_ASPECTS, SHEET_BACKGROUNDS, SHEET_PRESETS, SHEET_SKINS, SHEET_TYPES, SHORT_FILM_ANGLE_COUNT, SHORT_FILM_EXPRESSION_COUNT, SHORT_FILM_VARIANT_THRESHOLD_SEC, SLOT_TOKEN_RE, SMART_CUT_WINDOW_DEFAULT, SMART_CUT_WINDOW_MAX, SMART_CUT_WINDOW_MIN, SOCIAL_PLATFORMS, SOCIAL_POST_NODE_TYPES, SOCIAL_POST_VIDEO_LINK_MARGIN_MS, SOCIAL_SEARCH_COUNTS, SOCIAL_SEARCH_CREDITS_PER_PAGE, SOCIAL_SEARCH_CREDIT_COSTS, SOCIAL_SEARCH_DEFAULT_PICK_TOP, SOCIAL_SEARCH_MAX_QUERY_LENGTH, SOCIAL_SEARCH_MODES, SOCIAL_SEARCH_NODE_TYPE, SOCIAL_SEARCH_PAGED_MODES, SOCIAL_SEARCH_PERIODS, SOCIAL_SEARCH_PLATFORM_MODES, SOCIAL_SEARCH_SORTS, SOCIAL_SEARCH_VIDEO_KINDS, SOCIAL_VIDEO_HOSTS, SPEAKER_EMPHASIS_STYLES, SPEAKER_LAYOUTS, SPEAKER_LAYOUT_IDS, SPEAKER_SWITCHES, SPEAKER_SWITCH_IDS, STAGE_PATCH_SCHEMA, STATIC_CAPTION_STYLES, STRUCTURAL_SECTIONS, STRUCTURED_VISION_MODELS, STUDIO_DEPENDENT_FRAMES_CAPABILITY, STUDIO_KEYFRAME_ACCEPTANCE_PRIVATE_KEYS, STUDIO_KEYFRAME_NODE_TRANSIENT_KEYS, STUDIO_KEYFRAME_REVIEW_KEYS, STUDIO_KEYFRAME_TRANSIENT_KEYS, STUDIO_PREVIZ_RUN_STATE_KEYS, STUDIO_SEQUENCE_PLANNING_KEYS, STUDIO_SEQUENCE_POLICY_KEYS, STUDIO_SEQUENCE_UNIT_MANIFEST_KEYS, STUDIO_SEQUENCE_UNIT_REVIEW_KEYS, STUDIO_SHOT_DRAFT_KEYS, STUDIO_SHOT_TRANSIENT_KEYS, STUDIO_TAKE_SEQUENCE_KEYS, STUDIO_TAKE_VOICE_KEYS, STUDIO_TRANSIENT_KEYS, SUBMISSION_STATUSES, SUNO_ACTIVE_MODELS, SUNO_ADD_TRACK_MODELS, SUNO_DURATION_MODELS, SUNO_FIELD_HANDLE_FIELDS, SUNO_HARD_CEILING, SUNO_LEGACY_MODELS, SUNO_MODELS, SUNO_SELECT_OPERATIONS, SUNO_TEXT_MAX, SUNO_TITLE_MAX, SUNO_TRACK_SOURCE_TYPES, SUNO_VERSION_CREDIT_KEYS, SUNO_VERSION_PRICED_OPERATIONS, SUPPORTED_FONT_NAMES, SURROUND_DIRECTIONS, SWITCHX_BLOCK_FRAMES, SWITCHX_FRAME_TIERS, SceneHelperNameSchema, SceneInputModeSchema, SceneMetadataSchema, SceneNodeDataSchema, SceneSpecSchema, ScriptCriticVerdictSchema, SequenceExecutionRequiredError, ShotSpecSchema, ShowrunnerPlanSchema, StageAwaitingSubGateEventSchema, StoryboardCohesionCriticVerdictSchema, StyleDirectivesSchema, SubGateNameSchema, T2I_TO_I2I_VARIANT, TASK_CHAINED_EDIT_PROVIDERS, TELEGRAM_ACCOUNT_SEND_NODE_TYPE, TELEGRAM_ACCOUNT_TRIGGER_MESSAGE_FIELDS, TELEGRAM_ACCOUNT_TRIGGER_MESSAGE_HANDLE, TELEGRAM_ACCOUNT_TRIGGER_NODE_TYPE, TELEGRAM_ACCOUNT_TRIGGER_OUTPUT_HANDLES, TELEGRAM_ACCOUNT_TRIGGER_POST_FIELDS, TELEGRAM_SEND_AS, TELEGRAM_SEND_DESTINATIONS, TELEGRAM_TRIGGER_NODE_TYPE, TEMPLATE_CATEGORIES, TEXT_TO_AUDIO_PRICING, TEXT_TO_AUDIO_PROVIDERS, TEXT_TO_AUDIO_SFX_CREDIT_IDS, TEXT_TO_VIDEO_PROVIDERS, TIER_MAX_PIPELINE_COST_CREDITS, TIER_PIPELINE_PARALLELISM, TILT_CARRIED_FRACTION, TOPAZ_DEFAULT_UPSCALE_FACTOR, TOPAZ_UPSCALE_FACTORS, TRANSCRIBE_LANES, TRANSCRIBE_PROVIDERS, TRANSCRIBE_PROVIDER_CAPABILITIES, TRANSIENT_RUNTIME_KEYS, TTS_FALLBACK_PROVIDER, TTS_PROVIDERS, TTS_PROVIDER_ALIASES, TTS_TEXT_MAX, TWO_K_RESOLUTION_PROVIDERS, TransitionTypeSchema, UPSCALE_IMAGE_PROVIDERS, USAGE_GROUP_BYS, USAGE_MODES, VARIABLES_HANDLE_ID, VARIABLE_PRICING_MODELS, VEHICLES, VEHICLE_SUBCATEGORY_LABELS, VEHICLE_SUBCATEGORY_ORDER, VEO_PROVIDERS, VIDEO_ANALYSIS_AUDIO_MODES, VIDEO_ANALYSIS_BUCKET_CREDITS, VIDEO_ANALYSIS_BUCKET_GRACE_SEC, VIDEO_ANALYSIS_CLIP_TRANSITIONS_IN, VIDEO_ANALYSIS_DEFAULT_VARIATION, VIDEO_ANALYSIS_DURATION_BUCKETS, VIDEO_ANALYSIS_DURATION_TOLERANCE_SEC, VIDEO_ANALYSIS_ENTITY_SOURCES, VIDEO_ANALYSIS_FACELESS_ANGLES, VIDEO_ANALYSIS_LEGACY_MODELS, VIDEO_ANALYSIS_LLM_MODELS, VIDEO_ANALYSIS_MAX_DURATION_SEC, VIDEO_ANALYSIS_MAX_SCENE_SEC, VIDEO_ANALYSIS_MAX_VARIATIONS, VIDEO_ANALYSIS_MIXED_TIERS, VIDEO_ANALYSIS_SHOT_ANGLES, VIDEO_ANALYSIS_SPEED_EFFECTS, VIDEO_ANALYSIS_STORY_JUMPS, VIDEO_ANALYSIS_TEXT_KINDS, VIDEO_ANALYSIS_TIERS, VIDEO_ANALYSIS_TIER_LABELS, VIDEO_ANALYSIS_TIER_ORDER, VIDEO_ANALYSIS_TIMES_OF_DAY, VIDEO_ANALYSIS_TRANSITIONS, VIDEO_ANALYSIS_VARIATION_SLUGS, VIDEO_ANALYSIS_VISUAL_EFFECTS, VIDEO_ANALYSIS_WINDOW, VIDEO_AUDIO_CAPABILITY, VIDEO_AUDIT_BUCKET_CREDITS, VIDEO_CLIP_CREDITS, VIDEO_CRITIC_CREDITS_PER_SHOT, VIDEO_CRITIC_FRAME_MODES, VIDEO_CRITIC_MAX_RETRIES, VIDEO_CRITIC_METADATA_KEYS, VIDEO_CRITIC_MIN_ADHERENCE_SCORE, VIDEO_CRITIC_RESERVED_CREDITS_PER_SHOT, VIDEO_DURATION_AUTO, VIDEO_DURATION_TIERS, VIDEO_GEN_COLLAPSED_T2V_IDS, VIDEO_GEN_PROVIDERS, VIDEO_INPUT_LIP_SYNC_PROVIDERS, VIDEO_LINK_TOLERANT_CONSUMER_TYPES, VIDEO_MODEL_CAPS, VIDEO_MODE_ALIASES, VIDEO_ONLY_PARAMETER_NODE_TYPES, VIDEO_OUTPUT_CANVAS, VIDEO_OVERLAY_ANIMATION_MIN_SCALE, VIDEO_OVERLAY_ANIMATION_SEC, VIDEO_OVERLAY_BADGE_INSET, VIDEO_OVERLAY_BADGE_WIDTH, VIDEO_OVERLAY_BOUNDS, VIDEO_OVERLAY_BOX_FIELDS, VIDEO_OVERLAY_CORNERS, VIDEO_OVERLAY_DEFAULT_BACKGROUND, VIDEO_OVERLAY_ERROR_CODES, VIDEO_OVERLAY_FITS, VIDEO_OVERLAY_HANDLE_IDS, VIDEO_OVERLAY_LAYER_PLAN_HANDLE, VIDEO_OVERLAY_MAX_COMPOSITION_KEY_LENGTH, VIDEO_OVERLAY_MAX_LAYERS, VIDEO_OVERLAY_MAX_TIME_SEC, VIDEO_OVERLAY_MAX_TOTAL_LAYER_BYTES, VIDEO_OVERLAY_OUTPUT_ASPECTS, VIDEO_OVERLAY_PRESETS, VIDEO_OVERLAY_PRESET_IDS, VIDEO_OVERLAY_WARNING_CODES, VIDEO_PRODUCER_TYPES, VIDEO_PROMPT_MAX, VIDEO_PROVIDERS_REQUIRING_IMAGE, VIDEO_PROVIDERS_WITHOUT_DISPATCH, VIDEO_REF_LIMITS_BY_PROVIDER, VIDEO_REF_VIDEO_DURATION_LIMITS, VIDEO_SFX_PRICING, VIDEO_TO_VIDEO_NODE_PROVIDERS, VIDEO_TO_VIDEO_PROVIDERS, VIDEO_UPSCALE_PROVIDERS, VIDEO_UTIL_PRICING, VIDEO_VARIABLE_PRICING, VOICE_CHANGER_MODELS, VOICE_CHANGER_MODEL_IDS, VOICE_DESIGN_MODELS, ValidateMatchCutInputSchema, ValidateMatchCutResultSchema, VideoCriticVerdictSchema, VoiceMatchSchema, WAN_3_DEFAULT_RESOLUTION, WAN_3_PROVIDERS, WARDROBE_VARIANTS, WEAPONS, WEAPON_SUBCATEGORY_LABELS, WEAPON_SUBCATEGORY_ORDER, WEBHOOK_TRIGGER_NODE_TYPE, WORKFLOW_VISIBILITIES, WORKSPACE_HEADER, WORKSPACE_HEADER_LOWER, WORKSPACE_ROLES, WorkspaceSettingsSchema, YOUTUBE_HOSTS, adCreativeAnalysisFrom, adviceFamilyOf, aggregateByType, aiAvatarReserveCreditId, alignedFieldList, analyzedSceneSchema, applyAudioSyncOffsets, applyDefaultVideoSelection, applyEdlCreditId, applyHandleInputOverride, applyRange, applyRangeIndices, applyScene3DEditOperations, applyScene3DV2EditOperations, applySettingsInput, applySlots, applyVideoAudioToggle, applyVideoNegativePrompt, applyVideoOverlayPreset, asEditPlanMode, asEditPlanTier, aspectRatioFromDims, aspectRatioOptionsByKind, aspectRatioToNumber, assembleNarratedVideoCredits, assembleVideoOverlayRequest, assertCanvasExecutionAllowed, autoStrokeWidth, availableReasoningEfforts, bucketSecondsFromAuditCreditId, bucketSecondsFromCreditId, buildBoardPrompt, buildChildrenByParent, buildConditionVariables, buildCreditModelIdentifier, buildEditPlanCreditId, buildExpressionFromVisual, buildFeedMaps, buildInstagramScrapeCreditId, buildLipSyncCreditId, buildLlmCreditIdentifier, buildMetaAdsScrapeCreditId, buildModelMenu, buildModelTree, buildMotionCreditModelIdentifier, buildNodePresetExport, buildPanelPrompt, buildPro3DRenderSource, buildProgressSegments, buildRangeLabel, buildScraperCreditId, buildVideoAnalysisCreditId, buildVideoAuditCreditId, buildVideoCreditModelIdentifier, calculateCombinedProgress, calculateMonetizationMarkup, calculateMonetizedCost, calculateProgress, cameraSwitchCameras, cameraSwitchEdlProblem, cameraSwitchSettingsPayload, canonicalExposedFieldKey, canonicalScene3DPlanV2Json, canonicalTtsProvider, canonicalVarName, canonicalizeOverrideKeys, captionRoutesToRemotion, centreCropToAspect, characterBoardItems, characterBucketDisplayRank, characterMentionSlug, characterMentionableAssetArrays, characterSheetRefItems, characterVariantAssetArrays, checkRefVideoDurations, cinematicCreditId, clampCameraSwitchSetting, clampCinematicDuration, clampContentIdeasCount, clampEditPlanClipCount, clampInstagramFeaturedIndex, clampMetaAdsFeaturedIndex, clampSmartCutWindow, classifyCreativeFormat, classifyRefToken, cleanOrphanedItems, cleanSpeakerNames, clearImageCriticMetadata, clearVideoCriticMetadata, clearWiredVideoOverlayImageUrls, clipLookSchema, collectAncestorRefs, combineSameLabelRefs, compactWithRows, competitorScanCreditId, competitorScanCredits, competitorScanSearches, computeAggregateLanes, computeFrameFitPlan, computeScene3DPlanV2ContentHash, connectedSettingsSources, contentIdeasCreditFeature, contentIdeasCreditId, contentRecipeCreditId, countRefModalityEdges, creditRangesAll, creditsToUsd, decodeProviderItem, defaultCarriedFraction, defaultEdgeOutputMode, defaultResolutionFor, defaultRoleForSource, defaultSpeakerMap, defaultVideoAspectRatio, deriveLinkedFields, deriveLottieSlotFields, deriveSlotRefs, describeAudioSyncOffsetIssue, describeEdgeBehavior, describeMaskRegion, describeNodeAdjustments, describeSlotControl, detectVideoLinkPlatform, dropUnknownBindings, dropUnknownSpeakers, durationsByMode, editPlanBucketMinutes, editPlanSourceDurationSec, editPlanTranscriptOrigin, edlDurationMs, effectiveContentModel, effectiveReasoningEffort, encodeProviderItem, ensureLocaleCatalogLoaded, entityHydrationColumns, entityMentionSlug, entityMentionSlugForRef, entityScalarFields, entitySlotSchema, entryMatchesQuery, estimateCombineVideosCredits, estimateFilmCredits, estimateLoopTrimAddonCredits, estimateLoopVideoCredits, estimateScriptDurationSec, estimateSheetCost, estimateTrimVideoCredits, evaluateCondition, evaluateConditionGroup, evaluateJsonExpression, evaluateJsonPath, expandExtraRefsToConnectedReferences, expandItemsWithRepeat, expandVideoOverlayLayer, expandVideoOverlayPresets, extractAllGeneratedResults, extractCharacterLoraFields, extractGeneratedJsonAsList, extractPresetData, extractReferencedLabels, extractVideoDurationFromNode, fanOutTextFeedsPrompt, featuredInstagramOutputs, featuredMetaAdOutputs, fieldKeyFromHandle, filterCloneNodes, findCharacterMentionTokens, findEntityMentionTokens, findImageMentionTokens, findLocationMentionTokens, findSeedance2AudioOverLimit, findWordlessTranscriptFeeds, firstSightExtraRole, fitAspectRatioToModel, flattenItems, formatVideoOverlayError, getAnimal, getAnimalLabel, getAnimalPromptHint, getAnimalTerm, getAspectRatioOptions, getAudioCrossfadeCurve, getCharacterFacet, getCombineTransition, getCreditRange, getDurationsForModel, getEffectiveRepeatCount, getFeaturedEntities, getFurniture, getFurnitureLabel, getInputFieldSchema, getInputNodes, getItemSortId, getLipSyncMaxAudioSeconds, getLlmModalityCaps, getLlmModel, getLlmTier, getLocaleDirection, getMaxImagePromptChars, getMaxNegativePromptChars, getMaxSunoPromptChars, getMaxSunoStyleChars, getMaxTtsChars, getMaxVideoPromptChars, getModel, getNodeLabel, getNodeResult, getOutputNodes, getOutputType, getParameterValue, getQualityOptions, getResolutionOptions, getRouteReachableNodeIds, getSpeakerLayout, getSpeakerSwitch, getStrategy, getTargetField, getTtsCapabilities, getValidValues, getVehicle, getVehicleLabel, getVideoAudioCapability, getWeapon, getWeaponLabel, groupByFamily, groupByKindAndFamily, groupHandleId, groupLlmModelsByVendor, hasContiguousSegmentDurations, hasDrawableVideoOverlayBox, hasFeature, hasUrlParserHazard, hexToRgbaArray, hostnameMatchesAllowlist, humanizeSlotSid, imageMentionSlug, imageMentionSlugForRef, imageOverlayBillableVariants, imageOverlayCredits, imageReferenceLimit, inferMusicVideo, instagramAnalysisCreditId, instagramAnalysisTierFrom, instagramPostLink, instagramRequestedCount, instagramScrapeCreditIdFromNode, instagramScrapeMode, instagramScrapeSources, instagramScrapeTier, isAggregateableType, isAutoVideoDuration, isCharacterAspectRatio, isCollectInEdge, isCompetitorAboutPlatform, isCronExpression, isDefaultSelectorConfig, isEdlTargetAspect, isExpandedClone, isFacebookPageUrl, isFanInEdge, isFanInNodeType, isFanOutUrlItem, isFlux2Model, isGeminiOmniProvider, isGvpSupportedProvider, isHandleInputWired, isInstagramScrapeCount, isInstagramScrapeMode, isKineticCaptionStyle, isKnownScene3DEngine, isKnownSpeakerEmphasisStyle, isLegacySunoModel, isLocationUsageMode, isMeasurableCard, isMetaAdsFormat, isMetaAdsPlatform, isMetaAdsScrapeCount, isMetaAdsScrapeMode, isMetaCdnImageUrl, isMinimaxH3Provider, isObjectAspectRatio, isOversizedScene, isPaygRetentionActive, isPerSecondLipSyncProvider, isPro3DRenderJobOutput, isPro3DRenderQuote, isPro3DRenderRenderOnly, isProjectedTriggerNodeType, isRtlText, isScene3DAuthoringEngine, isScene3DCameraTrack, isScene3DHttpUrl, isScene3DPlan, isScene3DPlanV1, isScene3DPlanV2, isScene3DReviewUnavailableReason, isScene3DSchemaVersionSupported, isScraperActor, isSeedance2Provider, isSeedanceVideoEditProvider, isSettingsHintEdge, isSettingsHintSource, isSettingsSourceType, isSocialPost, isSocialSearchPickFrozen, isSocialVideoUrl, isTelegramAccountTriggerNamedHandle, isTemplateCategory, isTiltDirection, isUsageMode, isValidTimezone, isVeoProvider, isVideoAnalysisMixedTier, isVideoAnalysisTier, isVideoOverlayCorner, isVideoOverlayOutputAspect, isVideoOverlayPresetId, isWan3Provider, jsonResultToList, knownEntitySlugsFromRefs, knownImageSlugsFromRefs, legacyScheduleToRules, listBoardTemplates, listModels, listResultsServeHandle, listSlotSids, liveRowColumn, llmRouteDefaults, localMinuteKey, localTimeIn, locationMentionSlug, locationReferencePhotoKindLabel, locationUsageModeLabel, ltxExtendDurationSec, ltxRetakeDurationSec, mapAspectRatio, mapQuality, mapShotIntentToProviderDirectives, matchVariant, matchesCron, matchesCronField, maxSegmentSecFor, maxSegmentsFor, maxVideoDurationSec, measuredCanvasCombinations, mergeClipLook, mergeEdlSourceOffsets, mergeExposedSettings, mergeNodeInputOverrides, metaAdsAdvertisersFrom, metaAdsAnalysisCreditId, metaAdsAnalysisTier, metaAdsAnalysisTierFrom, metaAdsNodeMode, metaAdsScrapeCreditIdFromNode, metaAdsScrapeSources, metaAdsScrapeTier, metaAdsScrapeWireSources, migrateEdgeOutputMode, migrateToItems, minSegmentSecFor, minimalRatioDimensions, modelIdsByKindMode, modelToNodeTarget, modelsForInputMode, modelsWithFeature, motionGraphicsFeature, newScene3DRevisionId, nextScheduleRuns, nodeFeedsAnything, nodeStateMayCarryOutput, normalizeCaptionNumericLevers, normalizeEdl, normalizeLottieLayers, normalizeMinimaxH3Resolution, normalizeModelInput, normalizeNodeModelParams, normalizePinterestUrl, normalizeRoleSlug, normalizeSavedPostTags, normalizeScheduleRule, normalizeScheduleRules, normalizeTemplateCategory, normalizeTranscript, normalizeVideoOverlayNodes, normalizeVideoRequestParams, normalizeWan3Resolution, orderedLlmModels, overlayFontById, overlayImageEffectsSchema, overlayPlatformById, overlayQrStyleSchema, overlayShapeElement, overlayShapeStyleSchema, overlayStrokeSchema, overlayTextStyleSchema, overlayVariantHandle, overlayVariantIdFromHandle, parseAspectToken, parseAttributedDialogue, parseCharacterMentionToken, parseEntityMentionToken, parseGroupHandle, parseHandleId, parseImageMentionToken, parseListExpression, parseLocationMentionToken, parseNodePresetExport, parseNodeRef, parseScene3DCameraTrackJson, parseScene3DPlanV2Json, parseSpeakerEmphasisStyle, pickAiAvatarBucket, pickIds, pickLipSyncBucket, pickSocialPosts, pickSwitchXFrameTier, pickVideoAnalysisBucket, planFanOut, planSheetGeneration, planSheetPanels, preferredInputModeForModel, presentTypes, presetApplyClearKeys, presetDataMatches, presetEntries, previewHorizonMs, pricedOutputDurationSec, pricedVideoSelection, pro3DRenderCoreOutputSchema, pro3DRenderFrameUnit, pro3DRenderJobOutputSchema, pro3DRenderProducedSchemaVersion, pro3DRenderQuoteSchema, pro3DRenderReviewVerdictSchema, pro3DRenderShotStillSchema, pro3DRenderShotStills, pro3DRenderTimingOverrides, qualityOptionsByKind, readPromptAffixes, readScriptSettings, reasoningOutputFloor, refHandleCategory, referenceModalityForHandle, referenceSheetCreditId, registerCatalogSidecars, registerSidecarLoaders, remapMsThroughEdl, remapTranscriptThroughEdl, renderAnalyzedScene, renderVideoCreditId, requiresSequenceExecution, resetCatalogSidecars, resolutionOptionsByKind, resolveAiAvatarCreditId, resolveAudioCrossfadeCurve, resolveCaptionLevers, resolveCaptionLook, resolveCharacterAspectRatio, resolveCinematicCreditId, resolveConditionValue, resolveDefaultRole, resolveDescription, resolveDialogueVoices, resolveEditPlanSources, resolveEdlSegmentSlots, resolveEffectiveSourceType, resolveEffectiveTier, resolveEntityAspect, resolveFieldMappings, resolveFrameDelivery, resolveFrameFitAspect, resolveGvpAnchorWire, resolveImageGenCreditIdentifier, resolveIndex, resolveInstagramScrapeCreditId, resolveLabel, resolveListExpression, resolveListFanOut, resolveLlmCreditId, resolveLocationFields, resolveLocationPresetCatalog, resolveLottieOverlaySrc, resolveMetaAdsScrapeCreditId, resolveMusicProvider, resolveNodeRefs, resolveNormalizedImageGen, resolveObjectAspectRatio, resolveOutputCanvas, resolvePipelineModel, resolveRelativeWindowToken, resolveScene3DAuthoringEngine, resolveScraperCreditId, resolveSelectorRefs, resolveSeparator, resolveSheetSections, resolveSlideshowTransition, resolveSourceThroughConnectedList, resolveStoredTier, resolveSwitchXCreditId, resolveTemplateCategory, resolveTopazUpscale, resolveVideoAnalysisModel, resolveVideoLinkOutput, resolveVideoModeForInputs, resolveVideoOverlayGeometry, resolveVideoProviderForMode, resolveWiredSettings, resolveXfadeName, rewriteSceneBindings, rewriteSlotTokens, rewriteSpeakerSlots, rgbaArrayToHex, roleToPhrase, rotationVec3Schema, ruleMatches, runSelector, safetyRetryPolicy, sanitizeRole, scaleVec3Schema, scene3DAcceptedSchemaVersionsSchema, scene3DAnchorNameSchema, scene3DAnchorSchema, scene3DAnyPlanSchema, scene3DAssetAnimationSchema, scene3DAssetIdSchema, scene3DAssetRefSchema, scene3DCameraChangesSchema, scene3DCameraKeyframeSchema, scene3DCameraSampleSchema, scene3DCameraSchema, scene3DCameraTrackIssues, scene3DCameraTrackObjectSchema, scene3DCameraTrackPlanIssues, scene3DCameraTrackSchema, scene3DClayLightingSchema, scene3DColorSchema, scene3DDeepEqual, scene3DEasingSchema, scene3DEditOperationSchema, scene3DEditOperationsSchema, scene3DEngineIdSchema, scene3DEntityAcceptsOverlay, scene3DEntityCapabilitySchema, scene3DEntityV2Schema, scene3DEntityVisualSchema, scene3DIdSchema, scene3DInputAssetSchema, scene3DInputAssetsForEngine, scene3DInputAssetsSchema, scene3DJsonByteLength, scene3DLightingChangesSchema, scene3DLightingSchema, scene3DMaterialBindingSchema, scene3DMaterialNameSchema, scene3DMaterialRoleSchema, scene3DNodeIdSchema, scene3DNodeNameSchema, scene3DObjectChangesSchema, scene3DObjectKeyframeSchema, scene3DObjectSchema, scene3DOverrideSchema, scene3DPlanIssues, scene3DPlanSchema, scene3DPlanSchemaVersion, scene3DPlanV1Issues, scene3DPlanV1ObjectSchema, scene3DPlanV1Schema, scene3DPlanV2Issues, scene3DPlanV2ObjectSchema, scene3DPlanV2Schema, scene3DPrimitiveSchema, scene3DProjectionIssues, scene3DProvenanceSchema, scene3DReferenceSchema, scene3DRenderTier, scene3DRenderTierCredits, scene3DReviewNote, scene3DReviewVerdictOf, scene3DSampleForFrame, scene3DSha256Schema, scene3DShotForFrame, scene3DShotIndexForFrame, scene3DShotSchema, scene3DUrlSchema, scene3DV2AdmissionIssues, scene3DV2EditOperationSchema, scene3DV2EditOperationsSchema, scene3DV2HierarchyDepth, scene3DV2NormalizationIssues, scene3DV2OverrideInputSchema, scene3DV2ResourceUsage, scene3DVersionTokenSchema, scene3DZodIssues, scheduleMatchesAt, scheduleOccurrences, searchModelVariants, seedance2AudioLimitSec, seedanceVideoEditCreditId, segmentDurationsFor, selectByModulo, selectByNamedKey, selectByPredicate, selectListItems, selectLoraRoutingForMentions, selectRandom, setRegisteredPersonPackFields, settingsInputAccepts, settingsInputFields, settingsProviderModels, settingsSourceForField, settingsSourceForType, settledWithLimit, signedLinkExpiresAt, sizeVec3Schema, slotVariationSchema, snapToModelDuration, socialPostDigestLine, socialPostsDigest, socialPostsFrom, socialPostsLongestVideoSec, socialSearchCount, socialSearchCountry, socialSearchCreditId, socialSearchCreditIdFromNode, socialSearchEffectiveCount, socialSearchMaxCount, socialSearchMode, socialSearchPages, socialSearchPickTop, socialSearchPlatform, socialSearchPostLink, socialSearchPostVideo, socialSearchRegion, socialSearchRequestFromNode, sortCharacterEntriesForDisplay, sortListItems, sourceRefKey, speakerLayoutAllows, speakerPresentationWarnings, speakerSwitchOverlaps, speakerTurns, speedRampCreditId, spliceDelimitedRows, splitByLoopDelimiter, splitGeneratedItems, splitInstagramTargets, splitMetaAdsAdvertiserNames, splitMetaAdsPageUrls, spreadJsonArrayIfSingleton, stringifyPathResults, stripDerivedAnalysisFields, stripExportContent, stripStudioDraftSettings, stripStudioDraftWorkflow, stripStudioTakeVoiceRecords, stripStudioTransientSettings, stripTransientRuntimeData, stripUnownedRefs, summarizeScene3DOperations, sunoCreditType, sunoModelHonoursDuration, supportedDefaultDimensions, supportsAdvancedMode, supportsAutoVideoDuration, supportsEndAnchor, supportsExtendRender, telegramAccountListeningSignature, telegramAccountTriggerOutputs, telegramSendAsOf, telegramSendDestinationOf, templateCategoryStoredValues, textToAudioBilledSeconds, textToAudioCreditId, timezoneOffsetMinutes, toConnectedReference, toConnectedReferences, toCustomVideoOverlayLayer, togglePick, transcribeLaneSupportsWordTimestamps, transcribeProvidersWithWordTimestamps, transcribeWordTimestampsRefusal, transcriptDurationSec, transcriptSpeakerLabels, tryParseJson, ttsHasLever, ttsLanguageCodes, ttsSupportsAudioTags, ttsSupportsSsmlBreaks, uiAspectRatioFill, uiDurationFill, uiResolutionFill, unresolvedRefTokens, unwrapEditPlanOutput, unwrapUnresolvedTokens, usageModeDirective, usageModeIncludesName, usageModeLabel, usdToCredits, validateAiAvatarPayload, validateCinematicAvatarPayload, validateDurationForFormat, validateEdl, validateEdlClipSet, validateModeActivation, validateModelInput, validateNoNestedGroups, validateObjects, validateProviderForNodeType, validateSubWorkflowRoutes, validateVideoOverlayRequest, variantJobId, vec3Schema, verifyScene3DPlanV2ContentHash, videoAnalysisCreditSegment, videoAnalysisNumWindows, videoAnalysisResultSchema, videoAuditCreditsForBucket, videoLinkDownloadedFile, videoLinkNeedsDownload, videoLinkPageUrl, videoModelCanSpeakDialogue, videoModelSupportsAudio, videoNegativeSuffix, videoOverlayCanvas, videoOverlayCompositionKey, videoOverlayLayerLabel, videoOverlayPresetBox, videoOverlayRenderOrder, videoOverlaySlotOfHandle, videoOverlaySlotSources, videoProviderFoldsLoneEndFrame, videoProviderRequiresImage, videoSfxCreditId, windowAnalysisSchema, withWiredSettings, zipMergeLists };
|
|
19844
21253
|
//# sourceMappingURL=index.js.map
|
|
19845
21254
|
//# sourceMappingURL=index.js.map
|